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;
  	var uLocal_20 = 0;
  	char* sLocal_21 = NULL;
  	var uLocal_22 = 0;
  	var uLocal_23 = 0;
  	float fLocal_24 = 0f;
  	var uLocal_25 = 0;
  	var uLocal_26 = 0;
  	var uLocal_27 = 0;
  	float fLocal_28 = 0f;
  	float fLocal_29 = 0f;
  	var uLocal_30 = 0;
  	var uLocal_31 = 0;
  	var uLocal_32 = 0;
  	float fLocal_33 = 0f;
  	float fLocal_34 = 0f;
  	float fLocal_35 = 0f;
  	var uLocal_36 = 0;
  	var uLocal_37 = 0;
  	int iLocal_38 = 0;
  	int iLocal_39 = 0;
  	int iLocal_40 = 0;
  	int iLocal_41 = 0;
  	float fLocal_42 = 0f;
  	struct<3> Local_43 = { 0, 0, 0 } ;
  	bool bLocal_46 = 0;
  	struct<3> Local_47 = { 0, 0, 0 } ;
  	struct<3> Local_50 = { 0, 0, 0 } ;
  	struct<3> Local_53 = { 0, 0, 0 } ;
  	struct<3> Local_56 = { 0, 0, 0 } ;
  	struct<3> Local_59 = { 0, 0, 0 } ;
  	struct<3> Local_62 = { 0, 0, 0 } ;
  	float fLocal_65 = 0f;
  	bool bLocal_66 = 0;
  	int iLocal_67 = 0;
  	int iLocal_68 = 0;
  	int iLocal_69 = 0;
  	int iLocal_70 = 0;
  	int iLocal_71 = 0;
  	int iLocal_72 = 0;
  	int iLocal_73 = 0;
  	float fLocal_74 = 0f;
  	float fLocal_75 = 0f;
  	struct<345> Local_76 = { 2, 0, 0, 0, 0, 0, 0, 2, 0, 0, 0, 0, 0, 0, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, -1, -1, 0, 0, 0, 0, 0, 0, 0, 4, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, -1, -1, 0, 0, 0, 0, 0, 0, 0, 4, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, -1, -1, 0, 0, 0, 0, 0, 0, 0, 4, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1075838976, 0, -1, -1, -1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 2, 0, 0, 2, 0, 0, 2, 0, 0, 2, 0, 0, 0, 0, 1065353216, 2, 0, 0, 2, 0, 0, 0, 0, 0, -1, -1, -1, 0, 1, 0, 2, 0, 0, 0, 0, 2, 0, 0, 2, 0, 0, 0, 1050253722, 2, 0, 0, 2, 0, 0, 7, 0, 2, 0, 0, 0, 0, 0, 0, 2, 0, 0, 0, 0, 0, 0, 2, 0, 0, 0, 0, 0, 0, -1027211264, 0, 2, 0, 0, 0, 0, 0, 0, 2, 0, 0, 0, 0, 0, 0, 2, 0, 0, 0, 0, 0, 0, -1027211264, 0, 2, 0, 0, 0, 0, 0, 0, 2, 0, 0, 0, 0, 0, 0, 2, 0, 0, 0, 0, 0, 0, -1027211264, 0, 2, 0, 0, 0, 0, 0, 0, 2, 0, 0, 0, 0, 0, 0, 2, 0, 0, 0, 0, 0, 0, -1027211264, 0, 2, 0, 0, 0, 0, 0, 0, 2, 0, 0, 0, 0, 0, 0, 2, 0, 0, 0, 0, 0, 0, -1027211264, 0, 2, 0, 0, 0, 0, 0, 0, 2, 0, 0, 0, 0, 0, 0, 2, 0, 0, 0, 0, 0, 0, -1027211264, 0, 2, 0, 0, 0, 0, 0, 0, 2, 0, 0, 0, 0, 0, 0, 2, 0, 0, 0, 0, 0, 0, -1027211264, 0, 0, 1069547520, 0, 1061997773, 0, 0, 0, 0, 0, 0 } ;
  	var uLocal_421 = 0;
  	var uLocal_422 = 0;
  	var uLocal_423 = 0;
  	var uLocal_424 = 0;
  	var uLocal_425 = 0;
  	var uLocal_426 = 0;
  	var uLocal_427 = 1;
  	var uLocal_428 = 0;
  	var uLocal_429 = 0;
  	var uLocal_430 = 0;
  	var uLocal_431 = 0;
  	var uLocal_432 = 0;
  	var uLocal_433 = 0;
  	var uLocal_434 = 0;
  	var uLocal_435 = 0;
  	var uLocal_436 = 0;
  	var uLocal_437 = 0;
  	var uLocal_438 = 0;
  	var uLocal_439 = 16;
  	var uLocal_440 = 0;
  	var uLocal_441 = 0;
  	var uLocal_442 = 0;
  	var uLocal_443 = 0;
  	var uLocal_444 = 0;
  	var uLocal_445 = 0;
  	var uLocal_446 = 0;
  	var uLocal_447 = 0;
  	var uLocal_448 = 0;
  	var uLocal_449 = 0;
  	var uLocal_450 = 0;
  	var uLocal_451 = 0;
  	var uLocal_452 = 0;
  	var uLocal_453 = 0;
  	var uLocal_454 = 0;
  	var uLocal_455 = 0;
  	var uLocal_456 = 0;
  	var uLocal_457 = 0;
  	var uLocal_458 = 0;
  	var uLocal_459 = 0;
  	var uLocal_460 = 0;
  	var uLocal_461 = 0;
  	var uLocal_462 = 0;
  	var uLocal_463 = 0;
  	var uLocal_464 = 0;
  	var uLocal_465 = 0;
  	var uLocal_466 = 0;
  	var uLocal_467 = 0;
  	var uLocal_468 = 0;
  	var uLocal_469 = 0;
  	var uLocal_470 = 0;
  	var uLocal_471 = 0;
  	var uLocal_472 = 0;
  	var uLocal_473 = 0;
  	var uLocal_474 = 0;
  	var uLocal_475 = 0;
  	var uLocal_476 = 0;
  	var uLocal_477 = 0;
  	var uLocal_478 = 0;
  	var uLocal_479 = 0;
  	var uLocal_480 = 0;
  	var uLocal_481 = 0;
  	var uLocal_482 = 0;
  	var uLocal_483 = 0;
  	var uLocal_484 = 0;
  	var uLocal_485 = 0;
  	var uLocal_486 = 0;
  	var uLocal_487 = 0;
  	var uLocal_488 = 0;
  	var uLocal_489 = 0;
  	var uLocal_490 = 0;
  	var uLocal_491 = 0;
  	var uLocal_492 = 0;
  	var uLocal_493 = 0;
  	var uLocal_494 = 0;
  	var uLocal_495 = 0;
  	var uLocal_496 = 0;
  	var uLocal_497 = 0;
  	var uLocal_498 = 0;
  	var uLocal_499 = 0;
  	var uLocal_500 = 0;
  	var uLocal_501 = 0;
  	var uLocal_502 = 0;
  	var uLocal_503 = 0;
  	var uLocal_504 = 0;
  	var uLocal_505 = 0;
  	var uLocal_506 = 0;
  	var uLocal_507 = 0;
  	var uLocal_508 = 0;
  	var uLocal_509 = 0;
  	var uLocal_510 = 0;
  	var uLocal_511 = 0;
  	var uLocal_512 = 0;
  	var uLocal_513 = 0;
  	var uLocal_514 = 0;
  	var uLocal_515 = 0;
  	var uLocal_516 = 0;
  	var uLocal_517 = 0;
  	var uLocal_518 = 0;
  	var uLocal_519 = 0;
  	var uLocal_520 = 0;
  	var uLocal_521 = 0;
  	var uLocal_522 = 0;
  	var uLocal_523 = 0;
  	var uLocal_524 = 0;
  	var uLocal_525 = 0;
  	var uLocal_526 = 0;
  	var uLocal_527 = 0;
  	var uLocal_528 = 0;
  	var uLocal_529 = 0;
  	var uLocal_530 = 0;
  	var uLocal_531 = 0;
  	var uLocal_532 = 0;
  	var uLocal_533 = 0;
  	var uLocal_534 = 0;
  	var uLocal_535 = 0;
  	var uLocal_536 = 0;
  	var uLocal_537 = 0;
  	var uLocal_538 = 0;
  	var uLocal_539 = 0;
  	var uLocal_540 = 0;
  	var uLocal_541 = 0;
  	var uLocal_542 = 0;
  	var uLocal_543 = 0;
  	var uLocal_544 = 0;
  	var uLocal_545 = 0;
  	var uLocal_546 = 0;
  	var uLocal_547 = 0;
  	var uLocal_548 = 0;
  	var uLocal_549 = 0;
  	var uLocal_550 = 0;
  	var uLocal_551 = 0;
  	var uLocal_552 = 0;
  	var uLocal_553 = 0;
  	var uLocal_554 = 0;
  	var uLocal_555 = 0;
  	var uLocal_556 = 0;
  	float fLocal_557 = 0f;
  	bool bLocal_558 = 0;
  	int iLocal_559 = 0;
  	bool bLocal_560 = 0;
  	int iLocal_561 = 0;
  	struct<24> Local_562[2];
  	var uLocal_611 = 0;
  	var uLocal_612 = 0;
  	var uLocal_613 = 0;
  	var uLocal_614 = 0;
  	var uLocal_615 = 0;
  	var uLocal_616 = 0;
  	var uLocal_617 = 0;
  	var uLocal_618 = 0;
  	var uLocal_619 = 0;
  	var uLocal_620 = 0;
  	var uLocal_621 = 0;
  	var uLocal_622 = 0;
  	var uLocal_623 = -1;
  	var uLocal_624 = 0;
  	var uLocal_625 = 0;
  	var uLocal_626 = 0;
  	var uLocal_627 = 0;
  	int iLocal_628 = 0;
  	float fLocal_629 = 0f;
  	struct<3> Local_630 = { 0, 0, 0 } ;
  	float fLocal_633 = 0f;
  	float fLocal_634 = 0f;
  #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_21 = "NULL";
  	fLocal_24 = 0f;
  	fLocal_28 = -0.0375f;
  	fLocal_29 = 0.17f;
  	fLocal_33 = 80f;
  	fLocal_34 = 140f;
  	fLocal_35 = 180f;
  	iLocal_38 = 3;
  	iLocal_40 = 125;
  	iLocal_41 = 128;
  	fLocal_42 = 0.625f;
  	Local_43 = { 0f, 0f, (0.55f * 1.1f) };
  	Local_47 = { 0f, 0f, -1.125f };
  	Local_50 = { 0f, 0f, 0f };
  	Local_53 = { 0f, 90f, 0f };
  	Local_56 = { 90f, 90f, 0f };
  	Local_59 = { 0f, 0f, 0f };
  	Local_62 = { 0f, 0.1f, -0.76f };
  	fLocal_65 = 1f;
  	iLocal_71 = -1;
  	iLocal_72 = 1;
  	iLocal_73 = 1;
  	fLocal_74 = 1f;
  	fLocal_75 = 3f;
  	iLocal_628 = -1;
  	fLocal_629 = 0.75f;
  	Local_630 = { 0.1f, 0f, -1f };
  	fLocal_633 = 2.1f;
  	fLocal_634 = 3f;
  	if (SCRIPT::_GET_NUMBER_OF_REFERENCES_OF_SCRIPT_WITH_NAME_HASH(joaat("carwash2")) > 1)
  	{
  		SCRIPT::TERMINATE_THIS_THREAD();
  	}
  	if (NETWORK::NETWORK_IS_GAME_IN_PROGRESS())
  	{
  		MISC::NETWORK_SET_SCRIPT_IS_SAFE_FOR_NETWORK_GAME();
  		MISC::SET_THIS_SCRIPT_CAN_BE_PAUSED(false);
  	}
  	else if (PLAYER::HAS_FORCE_CLEANUP_OCCURRED(67))
  	{
  		func_391(0);
  	}
  	if (NETWORK::NETWORK_IS_GAME_IN_PROGRESS())
  	{
  		func_333();
  	}
  	else
  	{
  		func_1();
  	}
  }
  
  void func_1()
  {
  	int iVar0;
  	
  	func_332(PLAYER::PLAYER_PED_ID());
  	if (!PED::IS_PED_IN_ANY_VEHICLE(PLAYER::PLAYER_PED_ID(), false))
  	{
  		SCRIPT::TERMINATE_THIS_THREAD();
  	}
  	iLocal_628 = -1;
  	if (!func_326())
  	{
  		func_391(0);
  	}
  	MISC::SET_MISSION_FLAG(true);
  	func_211(0f, 0f, 0f, 1, 1, 1, 0, 1, 1, 1, 1, 1, 1);
  	FIRE::STOP_FIRE_IN_RANGE(ENTITY::GET_ENTITY_COORDS(PLAYER::PLAYER_PED_ID(), true), 60f);
  	func_179();
  	HUD::CLEAR_HELP(true);
  	iVar0 = PED::GET_VEHICLE_PED_IS_IN(PLAYER::PLAYER_PED_ID(), false);
  	Local_76.f_336 = 1.75f;
  	func_173(iVar0, &Local_76, 0);
  	fLocal_557 = VEHICLE::GET_VEHICLE_DIRT_LEVEL(iVar0);
  	bLocal_560 = VEHICLE::DOES_VEHICLE_HAVE_ROOF(iVar0);
  	while (true)
  	{
  		if ((!func_332(iVar0) || !PED::IS_PED_IN_ANY_VEHICLE(PLAYER::PLAYER_PED_ID(), false)) || !VEHICLE::IS_VEHICLE_DRIVEABLE(iVar0, false))
  		{
  			func_172(iVar0);
  			func_114(2);
  			func_391(0);
  		}
  		func_111();
  		func_88(&Local_76);
  		func_85(&Local_76, iVar0, fLocal_557);
  		if (func_16(&Local_76, iVar0))
  		{
  			func_3(1, 1, 1, 1);
  			func_172(iVar0);
  			if (CAM::IS_SCREEN_FADED_OUT())
  			{
  				func_391(1);
  			}
  			else
  			{
  				func_114(2);
  				func_391(0);
  			}
  		}
  		if (Local_76.f_344 == 0)
  		{
  			if (PAD::IS_CONTROL_PRESSED(2, 18))
  			{
  				func_2(500, 0);
  				Local_76.f_344 = 1;
  				func_172(iVar0);
  			}
  		}
  		else if (CAM::IS_SCREEN_FADED_OUT())
  		{
  			func_391(1);
  		}
  		SYSTEM::WAIT(0);
  	}
  }
  
  void func_2(int iParam0, bool bParam1)
  {
  	if (CAM::IS_SCREEN_FADED_IN())
  	{
  		if (!CAM::IS_SCREEN_FADING_OUT())
  		{
  			CAM::DO_SCREEN_FADE_OUT(iParam0);
  			if (bParam1)
  			{
  				while (!CAM::IS_SCREEN_FADED_OUT())
  				{
  					SYSTEM::WAIT(0);
  				}
  			}
  		}
  	}
  }
  
  void func_3(int iParam0, int iParam1, int iParam2, bool bParam3)
  {
  	int iVar0;
  	
  	iVar0 = PLAYER::GET_PLAYER_INDEX();
  	PLAYER::SET_EVERYONE_IGNORE_PLAYER(iVar0, false);
  	PLAYER::SET_PLAYER_CONTROL(iVar0, bParam3, 0);
  	func_6(0, 1, 0, 0, 0, 0, 0);
  	if (iParam2 == 1)
  	{
  		HUD::DISPLAY_RADAR(true);
  		HUD::DISPLAY_HUD(true);
  	}
  	HUD::CLEAR_HELP(true);
  	if (iParam0 == 1)
  	{
  		CAM::SET_WIDESCREEN_BORDERS(false, 0);
  	}
  	if (iParam1 == 1)
  	{
  		if ((iLocal_39 != 0 && iLocal_39 != joaat("object")) && iLocal_39 != joaat("gadget_parachute"))
  		{
  			if (func_5(PLAYER::PLAYER_PED_ID()))
  			{
  				if (WEAPON::HAS_PED_GOT_WEAPON(PLAYER::PLAYER_PED_ID(), iLocal_39, false))
  				{
  					WEAPON::SET_CURRENT_PED_WEAPON(PLAYER::PLAYER_PED_ID(), iLocal_39, false);
  				}
  			}
  		}
  	}
  	if (func_4(PLAYER::PLAYER_PED_ID()))
  	{
  		PED::SET_PED_STEALTH_MOVEMENT(PLAYER::PLAYER_PED_ID(), false, 0);
  	}
  }
  
  int func_4(int iParam0)
  {
  	if (func_5(iParam0))
  	{
  		if (!PED::IS_PED_INJURED(iParam0))
  		{
  			return 1;
  		}
  	}
  	return 0;
  }
  
  int func_5(int iParam0)
  {
  	if (ENTITY::DOES_ENTITY_EXIST(iParam0))
  	{
  		if (!ENTITY::IS_ENTITY_DEAD(iParam0, false))
  		{
  			return 1;
  		}
  	}
  	return 0;
  }
  
  void func_6(bool bParam0, bool bParam1, int iParam2, bool bParam3, bool bParam4, bool bParam5, bool bParam6)
  {
  	if (bParam0)
  	{
  		PLAYER::SPECIAL_ABILITY_DEACTIVATE_FAST(PLAYER::PLAYER_ID(), 0);
  		PLAYER::SET_ALL_RANDOM_PEDS_FLEE(PLAYER::PLAYER_ID(), true);
  		PLAYER::SET_POLICE_IGNORE_PLAYER(PLAYER::PLAYER_ID(), true);
  		func_15(1);
  		HUD::THEFEED_FLUSH_QUEUE();
  		HUD::THEFEED_PAUSE();
  		if (Global_19954.f_1 > 3 && !bParam6)
  		{
  			if (AUDIO::IS_MOBILE_PHONE_CALL_ONGOING())
  			{
  				AUDIO::STOP_SCRIPTED_CONVERSATION(false);
  			}
  			if (!func_14())
  			{
  				Global_19954.f_1 = 3;
  			}
  			Global_21285 = 5;
  		}
  		func_13(1, bParam3, iParam2, 0);
  		Global_62702 = 1;
  		Global_75030 = 1;
  		Global_77856 = 1;
  	}
  	else
  	{
  		func_15(0);
  		HUD::THEFEED_RESUME();
  		Global_62702 = 0;
  		if (bParam1)
  		{
  			GRAPHICS::CASCADE_SHADOWS_INIT_SESSION();
  		}
  		PLAYER::SET_ALL_RANDOM_PEDS_FLEE(PLAYER::PLAYER_ID(), false);
  		PLAYER::SET_POLICE_IGNORE_PLAYER(PLAYER::PLAYER_ID(), false);
  		func_13(0, bParam3, iParam2, 0);
  		if (NETWORK::NETWORK_IS_GAME_IN_PROGRESS())
  		{
  			if (((((!PED::IS_PED_INJURED(PLAYER::PLAYER_PED_ID()) && !func_11(PLAYER::PLAYER_ID())) && !func_8(PLAYER::PLAYER_ID(), 0)) && !func_7()) && !bParam4) && !bParam5)
  			{
  				ENTITY::SET_ENTITY_INVINCIBLE(PLAYER::PLAYER_PED_ID(), false);
  			}
  		}
  		else if (((!PED::IS_PED_INJURED(PLAYER::PLAYER_PED_ID()) && !func_11(PLAYER::PLAYER_ID())) && !bParam4) && !bParam5)
  		{
  			ENTITY::SET_ENTITY_INVINCIBLE(PLAYER::PLAYER_PED_ID(), false);
  		}
  		Global_77856 = 0;
  	}
  }
  
  bool func_7()
  {
  	return BitTest(Global_1853131[PLAYER::PLAYER_ID() /*888*/].f_36.f_18, 14);
  }
  
  bool func_8(int iParam0, int iParam1)
  {
  	bool bVar0;
  	
  	if (iParam0 == PLAYER::PLAYER_ID())
  	{
  		bVar0 = func_9(-1, 0) == 8;
  	}
  	else
  	{
  		bVar0 = Global_1853131[iParam0 /*888*/].f_205 == 8;
  	}
  	if (iParam1 == 1)
  	{
  		if (NETWORK::NETWORK_IS_PLAYER_ACTIVE(iParam0))
  		{
  			bVar0 = PLAYER::GET_PLAYER_TEAM(iParam0) == 8;
  		}
  	}
  	return bVar0;
  }
  
  int func_9(int iParam0, bool bParam1)
  {
  	int iVar0;
  	int iVar1;
  	
  	iVar1 = iParam0;
  	if (iVar1 == -1)
  	{
  		iVar1 = func_10();
  	}
  	if (Global_1575034[iVar1] == 1)
  	{
  		if (bParam1)
  		{
  		}
  		iVar0 = 8;
  	}
  	else
  	{
  		iVar0 = Global_1574909[iVar1];
  		if (bParam1)
  		{
  		}
  	}
  	return iVar0;
  }
  
  int func_10()
  {
  	return Global_1574915;
  }
  
  int func_11(int iParam0)
  {
  	if (func_8(iParam0, 0))
  	{
  		return 1;
  	}
  	if (func_12())
  	{
  		if (iParam0 == PLAYER::PLAYER_ID())
  		{
  			return 1;
  		}
  	}
  	if (BitTest(Global_2689224[iParam0 /*451*/].f_197, 2))
  	{
  		return 1;
  	}
  	return 0;
  }
  
  bool func_12()
  {
  	return BitTest(Global_2621446, 3);
  }
  
  int func_13(bool bParam0, bool bParam1, var uParam2, bool bParam3)
  {
  	int iVar0;
  	
  	iVar0 = 0;
  	if (MISC::IS_PC_VERSION())
  	{
  		if (CUTSCENE::_0xA0FE76168A189DDB() != bParam0 && uParam2)
  		{
  			CUTSCENE::_0x20746F7B1032A3C7(bParam0, bParam1, true, bParam3);
  			iVar0 = 1;
  		}
  	}
  	return iVar0;
  }
  
  int func_14()
  {
  	if (Global_19954.f_1 == 1 || Global_19954.f_1 == 0)
  	{
  		return 1;
  	}
  	return 0;
  }
  
  void func_15(int iParam0)
  {
  	if (iParam0 == 1)
  	{
  		MISC::SET_BIT(&Global_7824, 13);
  	}
  	else
  	{
  		MISC::CLEAR_BIT(&Global_7824, 13);
  	}
  }
  
  int func_16(var uParam0, int iParam1)
  {
  	int iVar0;
  	float fVar1;
  	int iVar2;
  	int iVar3;
  	
  	fVar1 = func_84(uParam0, iParam1);
  	iVar2 = 0;
  	iVar3 = 0;
  	if (!func_332(iParam1))
  	{
  		func_71(uParam0, iParam1);
  		return 1;
  	}
  	if (NETWORK::NETWORK_IS_GAME_IN_PROGRESS())
  	{
  		if (NETWORK::IS_COMMERCE_STORE_OPEN())
  		{
  			func_70(uParam0);
  		}
  	}
  	if (HUD::IS_PAUSE_MENU_ACTIVE())
  	{
  		func_70(uParam0);
  	}
  	iVar0 = VEHICLE::GET_PED_IN_VEHICLE_SEAT(iParam1, -1, false);
  	if (func_69(iVar0))
  	{
  		iLocal_69 = (TASK::GET_SCRIPT_TASK_STATUS(iVar0, 242628503) == 1 || TASK::GET_SCRIPT_TASK_STATUS(iVar0, 242628503) == 0);
  		if (iLocal_69)
  		{
  			iLocal_71 = TASK::GET_SEQUENCE_PROGRESS(iVar0);
  			iLocal_70 = (TASK::GET_SCRIPT_TASK_STATUS(iVar0, 242628503) == 7 && iLocal_71 == (uParam0->f_350 - 1));
  		}
  		if (iLocal_67)
  		{
  			if (PED::IS_PED_IN_ANY_VEHICLE(iVar0, false))
  			{
  				TASK::TASK_LEAVE_ANY_VEHICLE(iVar0, 0, 0);
  			}
  			iLocal_67 = 0;
  		}
  		if (iLocal_68)
  		{
  			func_68(iParam1, uParam0);
  			iLocal_68 = 0;
  		}
  	}
  	if (Global_77858)
  	{
  		if (func_67(PLAYER::PLAYER_ID(), 21))
  		{
  			iVar2 = 1;
  		}
  		if (func_67(PLAYER::PLAYER_ID(), 25))
  		{
  			iVar2 = 1;
  		}
  		if (!func_69(iVar0))
  		{
  			iVar2 = 1;
  		}
  		if (PED::IS_PED_IN_VEHICLE(iVar0, iParam1, false))
  		{
  			if (!PED::IS_PED_SITTING_IN_VEHICLE(iVar0, iParam1))
  			{
  				iVar2 = 1;
  			}
  		}
  		if (!func_65(PLAYER::PLAYER_PED_ID()))
  		{
  			iVar2 = 1;
  		}
  		if (func_63(iParam1, 3))
  		{
  			iVar2 = 1;
  		}
  		if (!func_62())
  		{
  			iVar2 = 1;
  		}
  		if (PED::IS_PED_BEING_JACKED(iVar0))
  		{
  			iVar2 = 1;
  		}
  		if (func_61(iParam1))
  		{
  			iVar2 = 1;
  		}
  		if (func_58(uParam0))
  		{
  			func_71(uParam0, iParam1);
  			return 1;
  		}
  		if (iVar2 == 1)
  		{
  			func_71(uParam0, iParam1);
  			return 1;
  		}
  		if (!NETWORK::NETWORK_HAS_CONTROL_OF_ENTITY(iParam1))
  		{
  			NETWORK::NETWORK_USE_LOGARITHMIC_BLENDING_THIS_FRAME(iParam1);
  		}
  	}
  	else if (func_58(uParam0) && uParam0->f_344 == 0)
  	{
  		func_2(500, 1);
  		func_57(iParam1, 100f, 0f);
  		uParam0->f_344 = 1;
  		return 1;
  	}
  	if (iVar0 == PLAYER::PLAYER_PED_ID())
  	{
  		if (!iLocal_69 && (iLocal_71 > -1 && iLocal_71 < uParam0->f_350))
  		{
  			func_68(iParam1, uParam0);
  		}
  		if (iLocal_70)
  		{
  		}
  	}
  	if (func_52(uParam0, iParam1))
  	{
  		func_71(uParam0, iParam1);
  		return 1;
  	}
  	if (uParam0->f_339 != 99)
  	{
  		func_46(0);
  		PLAYER::SET_EVERYONE_IGNORE_PLAYER(PLAYER::PLAYER_ID(), true);
  		if (uParam0->f_339 > 0)
  		{
  			HUD::HIDE_HUD_AND_RADAR_THIS_FRAME();
  			if (func_45(uParam0->f_334) != 1)
  			{
  				func_38(uParam0->f_334, 1, 0, 1, 0);
  			}
  		}
  	}
  	switch (uParam0->f_339)
  	{
  		case 0:
  			func_36(*(uParam0[0 /*3*/]), *(uParam0[1 /*3*/]), 3f, !Global_77858);
  			PATHFIND::SET_PED_PATHS_IN_AREA(uParam0->f_352, uParam0->f_355, false, 0);
  			if (func_45(uParam0->f_334) != 1)
  			{
  				func_38(uParam0->f_334, 1, 0, 1, 0);
  			}
  			func_34(&(uParam0->f_172[0 /*23*/]), &(uParam0->f_340), uParam0->f_342, 0, 19, 19);
  			func_70(uParam0);
  			if (!Global_77858)
  			{
  				MISC::CLEAR_AREA_OF_PEDS(func_33(PLAYER::GET_PLAYER_INDEX()), 50f, 0);
  			}
  			uParam0->f_339++;
  			if (!AUDIO::IS_AUDIO_SCENE_ACTIVE("CAR_WASH_SCENE"))
  			{
  				AUDIO::START_AUDIO_SCENE("CAR_WASH_SCENE");
  			}
  			if (!Global_77858)
  			{
  				ENTITY::SET_ENTITY_COORDS(PED::GET_VEHICLE_PED_IS_IN(PLAYER::PLAYER_PED_ID(), false), uParam0->f_21, true, false, false, true);
  				ENTITY::SET_ENTITY_HEADING(PED::GET_VEHICLE_PED_IS_IN(PLAYER::PLAYER_PED_ID(), false), uParam0->f_24);
  				if (VEHICLE::IS_VEHICLE_A_CONVERTIBLE(iParam1, false))
  				{
  					VEHICLE::RAISE_CONVERTIBLE_ROOF(iParam1, true);
  				}
  				func_32(iParam1, 2);
  			}
  			else if (NETWORK::NETWORK_HAS_CONTROL_OF_ENTITY(iParam1))
  			{
  				func_32(iParam1, 10);
  				if (VEHICLE::IS_VEHICLE_A_CONVERTIBLE(iParam1, false))
  				{
  					VEHICLE::RAISE_CONVERTIBLE_ROOF(iParam1, false);
  				}
  			}
  			break;
  		
  		case 1:
  			if (func_31(&(uParam0->f_172[0 /*23*/]), fVar1))
  			{
  				func_36(*(uParam0[0 /*3*/]), *(uParam0[1 /*3*/]), 3f, !Global_77858);
  				func_34(&(uParam0->f_172[1 /*23*/]), &(uParam0->f_340), uParam0->f_342, 0, 0, 1);
  				func_30(iParam1);
  				func_70(uParam0);
  				uParam0->f_339++;
  			}
  			break;
  		
  		case 2:
  			if (func_31(&(uParam0->f_172[1 /*23*/]), fVar1))
  			{
  				func_36(*(uParam0[0 /*3*/]), *(uParam0[1 /*3*/]), 3f, !Global_77858);
  				if (uParam0->f_172[2 /*23*/])
  				{
  					func_34(&(uParam0->f_172[2 /*23*/]), &(uParam0->f_340), uParam0->f_342, 0, 0, 1);
  					uParam0->f_339++;
  				}
  				else
  				{
  					func_34(&(uParam0->f_172[6 /*23*/]), &(uParam0->f_340), uParam0->f_342, 0, 0, 1);
  					func_57(iParam1, 50f, 0f);
  					uParam0->f_339 = 98;
  				}
  				func_30(iParam1);
  				func_70(uParam0);
  			}
  			break;
  		
  		case 3:
  			if (func_31(&(uParam0->f_172[2 /*23*/]), fVar1))
  			{
  				func_36(*(uParam0[0 /*3*/]), *(uParam0[1 /*3*/]), 3f, !Global_77858);
  				if (uParam0->f_172[3 /*23*/])
  				{
  					func_34(&(uParam0->f_172[3 /*23*/]), &(uParam0->f_340), uParam0->f_342, 0, 0, 1);
  					uParam0->f_339++;
  				}
  				else
  				{
  					func_34(&(uParam0->f_172[6 /*23*/]), &(uParam0->f_340), uParam0->f_342, 0, 0, 1);
  					func_57(iParam1, 50f, 0f);
  					uParam0->f_339 = 98;
  				}
  				func_30(iParam1);
  				func_70(uParam0);
  			}
  			break;
  		
  		case 4:
  			if (func_31(&(uParam0->f_172[3 /*23*/]), fVar1))
  			{
  				func_36(*(uParam0[0 /*3*/]), *(uParam0[1 /*3*/]), 3f, !Global_77858);
  				if (uParam0->f_172[4 /*23*/])
  				{
  					func_34(&(uParam0->f_172[4 /*23*/]), &(uParam0->f_340), uParam0->f_342, 0, 0, 1);
  					uParam0->f_339++;
  				}
  				else
  				{
  					func_34(&(uParam0->f_172[6 /*23*/]), &(uParam0->f_340), uParam0->f_342, 0, 0, 1);
  					func_57(iParam1, 50f, 0f);
  					uParam0->f_339 = 98;
  				}
  				func_30(iParam1);
  				func_70(uParam0);
  			}
  			break;
  		
  		case 5:
  			if (func_31(&(uParam0->f_172[4 /*23*/]), fVar1))
  			{
  				func_36(*(uParam0[0 /*3*/]), *(uParam0[1 /*3*/]), 3f, !Global_77858);
  				if (uParam0->f_172[5 /*23*/])
  				{
  					func_34(&(uParam0->f_172[5 /*23*/]), &(uParam0->f_340), uParam0->f_342, 0, 0, 1);
  					uParam0->f_339++;
  				}
  				else
  				{
  					func_34(&(uParam0->f_172[6 /*23*/]), &(uParam0->f_340), uParam0->f_342, 0, 0, 1);
  					func_57(iParam1, 50f, 0f);
  					uParam0->f_339 = 98;
  				}
  				func_30(iParam1);
  				func_70(uParam0);
  			}
  			break;
  		
  		case 6:
  			if (func_31(&(uParam0->f_172[5 /*23*/]), fVar1) && fVar1 >= uParam0->f_338)
  			{
  				func_36(*(uParam0[0 /*3*/]), *(uParam0[1 /*3*/]), 3f, !Global_77858);
  				if (!MISC::IS_POSITION_OCCUPIED(uParam0->f_172[6 /*23*/].f_1[0 /*3*/], 2f, false, true, false, false, false, iParam1, false))
  				{
  					func_34(&(uParam0->f_172[6 /*23*/]), &(uParam0->f_340), uParam0->f_342, 0, 3, 1);
  				}
  				func_57(iParam1, 100f, 0f);
  				if (!Global_77858)
  				{
  				}
  				uParam0->f_339 = 98;
  				func_30(iParam1);
  				func_70(uParam0);
  			}
  			break;
  		
  		case 98:
  			if (MISC::IS_POSITION_OCCUPIED(uParam0->f_172[6 /*23*/].f_1[0 /*3*/], 2f, false, true, false, false, false, iParam1, false))
  			{
  				iVar3 = 1;
  			}
  			if (func_31(&(uParam0->f_172[6 /*23*/]), fVar1) || iVar3)
  			{
  				func_36(*(uParam0[0 /*3*/]), *(uParam0[1 /*3*/]), 3f, !Global_77858);
  				func_26(uParam0->f_340, 0);
  				if (AUDIO::IS_AUDIO_SCENE_ACTIVE("CAR_WASH_SCENE"))
  				{
  					AUDIO::STOP_AUDIO_SCENE("CAR_WASH_SCENE");
  				}
  				if (func_65(PLAYER::PLAYER_PED_ID()))
  				{
  					TASK::CLEAR_PED_TASKS(PLAYER::PLAYER_PED_ID());
  				}
  				func_24(PLAYER::PLAYER_PED_ID());
  				PLAYER::SET_PLAYER_CONTROL(PLAYER::PLAYER_ID(), true, 0);
  				uParam0->f_339 = 99;
  				uParam0->f_348 = 0;
  				uParam0->f_349 = 0;
  				iLocal_70 = 0;
  				iLocal_69 = 0;
  				iLocal_71 = -1;
  				PLAYER::SET_EVERYONE_IGNORE_PLAYER(PLAYER::PLAYER_ID(), false);
  				func_57(iParam1, 100f, 0f);
  				func_172(iParam1);
  				if (!Global_77858)
  				{
  				}
  				func_32(iParam1, 1);
  				PATHFIND::SET_PED_PATHS_BACK_TO_ORIGINAL(uParam0->f_352, uParam0->f_355, 0);
  				func_17(302, 0, 0);
  				return 1;
  			}
  			else
  			{
  				HUD::HIDE_HUD_AND_RADAR_THIS_FRAME();
  			}
  			break;
  		
  		case 99:
  			if (AUDIO::IS_AUDIO_SCENE_ACTIVE("CAR_WASH_SCENE"))
  			{
  				AUDIO::STOP_AUDIO_SCENE("CAR_WASH_SCENE");
  			}
  			func_26(uParam0->f_340, 0);
  			uParam0->f_348 = 0;
  			uParam0->f_349 = 0;
  			uParam0->f_341 = 0;
  			iLocal_70 = 0;
  			iLocal_69 = 0;
  			iLocal_71 = -1;
  			break;
  	}
  	return 0;
  }
  
  void func_17(int iParam0, int iParam1, int iParam2)
  {
  	bool bVar0;
  	
  	if (iParam0 < 0)
  	{
  	}
  	if (iParam0 == 321 || iParam0 > 321)
  	{
  	}
  	else
  	{
  		func_23((891 + iParam0), 1, -1);
  	}
  	bVar0 = true;
  	if (Global_112922.f_10194[iParam0 /*12*/].f_5 == 1)
  	{
  		if (Global_112922.f_10194[iParam0 /*12*/].f_6 == 11 || Global_112922.f_10194[iParam0 /*12*/].f_6 == 12)
  		{
  			bVar0 = false;
  		}
  	}
  	else
  	{
  		Global_112922.f_10194[iParam0 /*12*/].f_5 = 1;
  		Global_112922.f_10194[iParam0 /*12*/].f_10 = iParam1;
  		Global_112922.f_10194[iParam0 /*12*/].f_11 = iParam2;
  		if (iParam0 == 287)
  		{
  			STATS::PRESENCE_EVENT_UPDATESTAT_INT(joaat("num_hidden_packages_0"), 50, 0);
  		}
  		if (iParam0 == 286)
  		{
  			STATS::PRESENCE_EVENT_UPDATESTAT_INT(joaat("num_hidden_packages_1"), 50, 0);
  		}
  		if (iParam0 == 299)
  		{
  			STATS::PRESENCE_EVENT_UPDATESTAT_INT(joaat("num_hidden_packages_3"), 50, 0);
  		}
  	}
  	if (bVar0)
  	{
  		func_18();
  	}
  }
  
  void func_18()
  {
  	int iVar0;
  	float fVar1;
  	float fVar2;
  	float fVar3;
  	float fVar4;
  	float fVar5;
  	float fVar6;
  	float fVar7;
  	float fVar8;
  	int iVar9;
  	
  	iVar0 = 0;
  	Global_112658 = 0;
  	Global_112659 = 0;
  	Global_112660 = 0;
  	Global_112661 = 0;
  	Global_112662 = 0;
  	Global_112663 = 0;
  	Global_112664 = 0;
  	fVar1 = 0f;
  	fVar2 = 0f;
  	fVar3 = 0f;
  	fVar4 = 0f;
  	fVar5 = 0f;
  	fVar6 = 0f;
  	fVar7 = 0f;
  	fVar8 = Global_112922.f_10194.f_3853;
  	Global_112922.f_10194.f_3853 = 0f;
  	while (iVar0 < 321)
  	{
  		if (Global_112922.f_10194[iVar0 /*12*/].f_5 == 1)
  		{
  			switch (Global_112922.f_10194[iVar0 /*12*/].f_6)
  			{
  				case 1:
  					Global_112658++;
  					fVar1 = (fVar1 + Global_112922.f_10194[iVar0 /*12*/].f_4);
  					break;
  				
  				case 3:
  					Global_112659++;
  					fVar2 = (fVar2 + Global_112922.f_10194[iVar0 /*12*/].f_4);
  					break;
  				
  				case 5:
  					Global_112660++;
  					fVar3 = (fVar3 + Global_112922.f_10194[iVar0 /*12*/].f_4);
  					break;
  				
  				case 7:
  					Global_112661++;
  					fVar4 = (fVar4 + Global_112922.f_10194[iVar0 /*12*/].f_4);
  					break;
  				
  				case 9:
  					Global_112662++;
  					fVar5 = (fVar5 + (Global_112922.f_10194[iVar0 /*12*/].f_4 * 4f));
  					break;
  				
  				case 11:
  					Global_112663++;
  					fVar6 = (fVar6 + Global_112922.f_10194[iVar0 /*12*/].f_4);
  					break;
  				
  				case 13:
  					Global_112664++;
  					fVar7 = (fVar7 + Global_112922.f_10194[iVar0 /*12*/].f_4);
  					break;
  				
  				default:
  					break;
  				}
  		}
  		iVar0++;
  	}
  	if (Global_112641 > 0)
  	{
  		if (Global_112658 == Global_112641)
  		{
  			fVar1 = 55f;
  		}
  	}
  	if (Global_112642 > 0)
  	{
  		if (Global_112659 == Global_112642)
  		{
  			fVar2 = 10f;
  		}
  	}
  	if (Global_112643 > 0)
  	{
  		if (Global_112660 == Global_112643)
  		{
  			fVar3 = 0f;
  		}
  	}
  	if (Global_112644 > 0)
  	{
  		if (Global_112661 == Global_112644)
  		{
  			fVar4 = 10f;
  		}
  	}
  	if (Global_112645 > 0)
  	{
  		if (((Global_112662 == Global_112645 || (Global_112645 * 10 / Global_112662) < 41) || Global_112662 > Global_112648) || Global_112662 == Global_112648)
  		{
  			if (!BitTest(Global_112922.f_10194.f_3856, 14))
  			{
  				if (Global_112662 == Global_112645)
  				{
  					STATS::PRESENCE_EVENT_UPDATESTAT_INT(joaat("num_rndevents_completed"), Global_112645, 0);
  					MISC::SET_BIT(&(Global_112922.f_10194.f_3856), 14);
  				}
  			}
  			fVar5 = 5f;
  		}
  	}
  	if (Global_112646 > 0)
  	{
  		if (Global_112663 == Global_112646)
  		{
  			fVar6 = 15f;
  		}
  	}
  	if (Global_112647 > 0)
  	{
  		if (Global_112664 == Global_112647)
  		{
  			fVar7 = 5f;
  		}
  	}
  	Global_112922.f_10194.f_3853 = ((((((fVar1 + fVar2) + fVar3) + fVar4) + fVar5) + fVar6) + fVar7);
  	if (Global_112662 > Global_112648 || Global_112662 == Global_112648)
  	{
  		iVar9 = Global_112648;
  	}
  	else
  	{
  		iVar9 = Global_112662;
  	}
  	STATS::STAT_SET_INT(joaat("num_missions_completed"), Global_112658, true);
  	STATS::STAT_SET_INT(joaat("num_missions_available"), Global_112641, true);
  	STATS::STAT_SET_INT(joaat("num_minigames_completed"), Global_112659, true);
  	STATS::STAT_SET_INT(joaat("num_minigames_available"), Global_112642, true);
  	STATS::STAT_SET_INT(joaat("num_oddjobs_completed"), Global_112660, true);
  	STATS::STAT_SET_INT(joaat("num_oddjobs_available"), Global_112643, true);
  	STATS::STAT_SET_INT(joaat("num_rndpeople_completed"), Global_112661, true);
  	STATS::STAT_SET_INT(joaat("num_rndpeople_available"), Global_112644, true);
  	STATS::STAT_SET_INT(joaat("num_rndevents_completed"), iVar9, true);
  	STATS::STAT_SET_INT(joaat("num_rndevents_available"), Global_112648, true);
  	STATS::STAT_SET_INT(joaat("num_misc_completed"), (Global_112664 + Global_112663), true);
  	STATS::STAT_SET_INT(joaat("num_misc_available"), (Global_112647 + Global_112646), true);
  	Global_112665 = (Global_112658 * 100 / Global_112641);
  	Global_112667 = ((Global_112660 + Global_112659) * 100 / (Global_112643 + Global_112642));
  	Global_112666 = ((Global_112661 + iVar9) * 100 / (Global_112644 + Global_112648));
  	Global_112668 = ((Global_112663 + Global_112664) * 100 / (Global_112646 + Global_112647));
  	STATS::STAT_SET_FLOAT(joaat("total_progress_made"), Global_112922.f_10194.f_3853, true);
  	STATS::STAT_SET_INT(joaat("percent_story_missions"), Global_112665, true);
  	STATS::STAT_SET_INT(joaat("percent_ambient_missions"), Global_112666, true);
  	STATS::STAT_SET_INT(joaat("percent_oddjobs"), Global_112667, true);
  	if (fVar8 > 0f && SYSTEM::FLOOR(fVar8) < SYSTEM::FLOOR(Global_112922.f_10194.f_3853))
  	{
  		func_22(13, SYSTEM::FLOOR(Global_112922.f_10194.f_3853));
  	}
  	if (!DATAFILE::DATAFILE_IS_SAVE_PENDING())
  	{
  		if (!Global_77858)
  		{
  			if (func_21() == 2 == 0 && !NETWORK::NETWORK_IS_GAME_IN_PROGRESS())
  			{
  				if (NETWORK::NETWORK_IS_CLOUD_AVAILABLE())
  				{
  					Global_112656 = 0;
  				}
  				if (!Global_62696)
  				{
  					func_19();
  				}
  			}
  		}
  	}
  }
  
  int func_19()
  {
  	if (func_20(0))
  	{
  		return 0;
  	}
  	if (Global_100019.f_8)
  	{
  		if (Global_100019.f_10 > 0)
  		{
  			return 0;
  		}
  	}
  	else if (Global_100019.f_10 > 1)
  	{
  		return 0;
  	}
  	Global_100019.f_10++;
  	return 1;
  }
  
  int func_20(bool bParam0)
  {
  	if (!bParam0 && SCRIPT::_GET_NUMBER_OF_REFERENCES_OF_SCRIPT_WITH_NAME_HASH(joaat("benchmark")) > 0)
  	{
  		return 1;
  	}
  	return BitTest(Global_78106, 0);
  }
  
  int func_21()
  {
  	return Global_31511;
  }
  
  int func_22(int iParam0, int iParam1)
  {
  	int iVar0;
  	
  	if (iParam0 < 0)
  	{
  		return 0;
  	}
  	if (iParam0 > 78)
  	{
  		return 0;
  	}
  	if (iParam1 <= 0 || iParam1 > 100)
  	{
  		return 0;
  	}
  	iVar0 = PLAYER::_GET_ACHIEVEMENT_PROGRESS(iParam0);
  	if (iParam1 > iVar0)
  	{
  		return PLAYER::_SET_ACHIEVEMENT_PROGRESS(iParam0, iParam1);
  	}
  	return 0;
  }
  
  void func_23(int iParam0, bool bParam1, int iParam2)
  {
  	if (iParam2 == -1)
  	{
  		iParam2 = func_10();
  	}
  	STATS::_SET_PACKED_STAT_BOOL(iParam0, bParam1, iParam2);
  }
  
  void func_24(int iParam0)
  {
  	int iVar0;
  	
  	iVar0 = NETWORK::NETWORK_GET_PLAYER_INDEX_FROM_PED(iParam0);
  	if (iVar0 == func_25())
  	{
  		return;
  	}
  	Global_2689224[iVar0 /*451*/].f_241 = 0;
  }
  
  int func_25()
  {
  	return -1;
  }
  
  void func_26(int iParam0, bool bParam1)
  {
  	int iVar0;
  	
  	if (CAM::DOES_CAM_EXIST(iParam0))
  	{
  		func_29(&iParam0, 0);
  		func_28(bParam1);
  		PLAYER::SET_EVERYONE_IGNORE_PLAYER(PLAYER::PLAYER_ID(), false);
  		if (PED::IS_PED_IN_ANY_VEHICLE(PLAYER::PLAYER_PED_ID(), false))
  		{
  			iVar0 = PED::GET_VEHICLE_PED_IS_IN(PLAYER::PLAYER_PED_ID(), false);
  			if (func_332(iVar0))
  			{
  				if (!func_27(iVar0, 1))
  				{
  					if (VEHICLE::GET_PED_IN_VEHICLE_SEAT(iVar0, -1, false) == PLAYER::PLAYER_PED_ID())
  					{
  						func_32(iVar0, 1);
  					}
  				}
  			}
  		}
  	}
  }
  
  int func_27(int iParam0, bool bParam1)
  {
  	if (Global_77858)
  	{
  		if (ENTITY::DOES_ENTITY_EXIST(iParam0) && (!bParam1 || VEHICLE::IS_VEHICLE_DRIVEABLE(iParam0, false)))
  		{
  			if (DECORATOR::DECOR_EXIST_ON(iParam0, "Player_Vehicle"))
  			{
  				return 1;
  			}
  		}
  	}
  	return 0;
  }
  
  void func_28(bool bParam0)
  {
  	if (bParam0)
  	{
  	}
  }
  
  void func_29(int iParam0, bool bParam1)
  {
  	if (CAM::DOES_CAM_EXIST(*iParam0))
  	{
  		CAM::RENDER_SCRIPT_CAMS(false, bParam1, 3000, true, false, 0);
  		CAM::SET_CAM_ACTIVE(*iParam0, false);
  		CAM::DESTROY_CAM(*iParam0, false);
  		*iParam0 = 0;
  	}
  }
  
  void func_30(int iParam0)
  {
  	if (NETWORK::NETWORK_IS_GAME_IN_PROGRESS())
  	{
  		if (NETWORK::NETWORK_HAS_CONTROL_OF_ENTITY(iParam0))
  		{
  			VEHICLE::SET_VEHICLE_DOORS_SHUT(iParam0, true);
  		}
  		return;
  	}
  	VEHICLE::SET_VEHICLE_DOORS_SHUT(iParam0, true);
  }
  
  int func_31(var uParam0, float fParam1)
  {
  	bool bVar0;
  	
  	bVar0 = (fParam1 != -99f && uParam0->f_22 != -99f);
  	if (!*uParam0 == 1)
  	{
  		return 0;
  	}
  	if (bVar0 && fParam1 >= uParam0->f_22)
  	{
  		return 1;
  	}
  	if (MISC::GET_GAME_TIMER() > (uParam0->f_19 + uParam0->f_20))
  	{
  		return fParam1 >= uParam0->f_22;
  	}
  	return 0;
  }
  
  void func_32(int iParam0, int iParam1)
  {
  	if (!NETWORK::NETWORK_IS_GAME_IN_PROGRESS())
  	{
  		VEHICLE::SET_VEHICLE_DOORS_LOCKED(iParam0, iParam1);
  		return;
  	}
  	if (!func_27(iParam0, 1))
  	{
  		VEHICLE::SET_VEHICLE_DOORS_LOCKED(iParam0, iParam1);
  	}
  }
  
  Vector3 func_33(int iParam0)
  {
  	return ENTITY::GET_ENTITY_COORDS(PLAYER::GET_PLAYER_PED(iParam0), false);
  }
  
  void func_34(var uParam0, var uParam1, bool bParam2, bool bParam3, int iParam4, int iParam5)
  {
  	struct<3> Var0;
  	float fVar3;
  	
  	fVar3 = uParam0->f_15[1];
  	if (*uParam0 == 0)
  	{
  		return;
  	}
  	func_29(uParam1, 0);
  	Var0 = { uParam0->f_1[0 /*3*/] };
  	if (bParam2)
  	{
  		Var0.f_2 = (Var0.f_2 + uParam0->f_18);
  	}
  	*uParam1 = CAM::CREATE_CAM_WITH_PARAMS("DEFAULT_SCRIPTED_CAMERA", Var0, uParam0->f_8[0 /*3*/], uParam0->f_15[0], true, 2);
  	if (!CAM::DOES_CAM_EXIST(*uParam1))
  	{
  		return;
  	}
  	uParam0->f_19 = MISC::GET_GAME_TIMER();
  	CAM::SET_CAM_ACTIVE(*uParam1, true);
  	CAM::RENDER_SCRIPT_CAMS(true, false, 3000, true, false, 0);
  	if ((!bParam3 && uParam0->f_20 > 0) && !func_35(uParam0->f_1[1 /*3*/]))
  	{
  		Var0 = { uParam0->f_1[1 /*3*/] };
  		if (bParam2)
  		{
  			Var0.f_2 = (Var0.f_2 + uParam0->f_18);
  		}
  		if (fVar3 == 0f)
  		{
  			fVar3 = uParam0->f_15[0];
  		}
  		CAM::SET_CAM_PARAMS(*uParam1, Var0, uParam0->f_8[1 /*3*/], fVar3, uParam0->f_20, iParam4, iParam5, 2);
  	}
  	else if (func_332(uParam0->f_21))
  	{
  		CAM::POINT_CAM_AT_ENTITY(*uParam1, uParam0->f_21, 0f, 0f, 0f, true);
  	}
  }
  
  int func_35(struct<3> Param0)
  {
  	if ((Param0.f_0 == 0f && Param0.f_1 == 0f) && Param0.f_2 == 0f)
  	{
  		return 1;
  	}
  	return 0;
  }
  
  void func_36(struct<3> Param0, struct<3> Param3, float fParam6, bool bParam7)
  {
  	float fVar0;
  	struct<3> Var1;
  	struct<3> Var4;
  	float fVar7;
  	
  	fVar0 = MISC::GET_DISTANCE_BETWEEN_COORDS(Param0, Param3, true);
  	Var1 = { Param0 };
  	Var4 = { func_37(Param3 - Param0) };
  	while (fVar7 < fVar0)
  	{
  		FIRE::STOP_FIRE_IN_RANGE(Var1, fParam6);
  		if (bParam7)
  		{
  			MISC::CLEAR_AREA_OF_PROJECTILES(Var1, fParam6, 0);
  		}
  		Var1 = { Var1 + Var4 * FtoV((fParam6 / 2f)) };
  		fVar7 = (fVar7 + (fParam6 / 2f));
  	}
  }
  
  Vector3 func_37(struct<3> Param0)
  {
  	float fVar0;
  	float fVar1;
  	
  	fVar0 = SYSTEM::VMAG(Param0);
  	if (fVar0 != 0f)
  	{
  		fVar1 = (1f / fVar0);
  		Param0 = { Param0 * Vector(fVar1, fVar1, fVar1) };
  	}
  	else
  	{
  		Param0.f_0 = 0f;
  		Param0.f_1 = 0f;
  		Param0.f_2 = 0f;
  	}
  	return Param0;
  }
  
  void func_38(int iParam0, int iParam1, int iParam2, bool bParam3, int iParam4)
  {
  	if (iParam0 != 198)
  	{
  		if (Global_77858)
  		{
  			Global_42136.f_227[iParam0] = iParam1;
  		}
  		else
  		{
  			Global_112922.f_7261.f_227[iParam0] = iParam1;
  		}
  		Global_39142[iParam0] = iParam2;
  		Global_39341[iParam0] = 1;
  		func_41(iParam0, bParam3, iParam4, 0);
  		func_39(iParam0, iParam1);
  	}
  }
  
  void func_39(int iParam0, int iParam1)
  {
  	switch (iParam0)
  	{
  		case 12:
  			if (iParam1 == 0)
  			{
  				AUDIO::SET_AMBIENT_ZONE_STATE_PERSISTENT("AZ_PORT_OF_LS_UNDERWATER_CREAKS", false, false);
  			}
  			else
  			{
  				AUDIO::SET_AMBIENT_ZONE_STATE_PERSISTENT("AZ_PORT_OF_LS_UNDERWATER_CREAKS", true, false);
  			}
  			break;
  		
  		case 71:
  			if (iParam1 != 1)
  			{
  				AUDIO::SET_AMBIENT_ZONE_LIST_STATE_PERSISTENT("HEIST_SWEATSHOP_ZONES", false, false);
  			}
  			else
  			{
  				AUDIO::SET_AMBIENT_ZONE_LIST_STATE_PERSISTENT("HEIST_SWEATSHOP_ZONES", true, false);
  			}
  			break;
  		
  		case 65:
  			if (iParam1 == 1)
  			{
  				func_40(0, 0);
  			}
  			else
  			{
  				func_40(0, 1);
  			}
  			break;
  		
  		case 6:
  			if (iParam1 == 1)
  			{
  				AUDIO::SET_AMBIENT_ZONE_STATE_PERSISTENT("AZ_UNDERWATER_EXILE_01_PLANE_WRECK", true, false);
  			}
  			else
  			{
  				AUDIO::SET_AMBIENT_ZONE_STATE_PERSISTENT("AZ_UNDERWATER_EXILE_01_PLANE_WRECK", false, false);
  			}
  			break;
  		
  		case 174:
  			if (iParam1 == 2)
  			{
  				AUDIO::REMOVE_PORTAL_SETTINGS_OVERRIDE("V_CARSHOWROOM_PS_WINDOW_UNBROKEN");
  			}
  			break;
  		
  		case 37:
  			if (iParam1 == 1)
  			{
  				AUDIO::SET_STATIC_EMITTER_ENABLED("TREVOR1_TRAILER_PARK_MAIN_STAGE_RADIO", false);
  				AUDIO::SET_STATIC_EMITTER_ENABLED("TREVOR1_TRAILER_PARK_MAIN_TRAILER_RADIO_01", false);
  				AUDIO::SET_STATIC_EMITTER_ENABLED("TREVOR1_TRAILER_PARK_MAIN_TRAILER_RADIO_02", false);
  				AUDIO::SET_STATIC_EMITTER_ENABLED("TREVOR1_TRAILER_PARK_MAIN_TRAILER_RADIO_03", false);
  			}
  			break;
  	}
  }
  
  void func_40(bool bParam0, bool bParam1)
  {
  	if (bParam1)
  	{
  		MISC::SET_BIT(&Global_111560, iParam0);
  	}
  	else
  	{
  		MISC::CLEAR_BIT(&Global_111560, bParam0);
  	}
  	Global_111559 = 1;
  }
  
  bool func_41(int iParam0, bool bParam1, int iParam2, bool bParam3)
  {
  	bool bVar0;
  	int iVar1;
  	int iVar2;
  	struct<5> Var3;
  	int iVar98;
  	bool bVar99;
  	int iVar100;
  	
  	Global_1922796 = 1;
  	bVar0 = false;
  	Var3.f_4 = 3;
  	Var3.f_8 = 3;
  	Var3.f_64 = 3;
  	Var3.f_75 = 3;
  	Var3.f_91 = 3;
  	func_44(&Var3, iParam0);
  	if (func_42())
  	{
  		iVar1 = Global_112922.f_7261.f_227[iParam0];
  	}
  	else
  	{
  		iVar1 = Global_42136.f_227[iParam0];
  	}
  	iVar2 = Global_39540[iParam0];
  	if (PED::IS_PED_INJURED(PLAYER::PLAYER_PED_ID()) && !bParam3)
  	{
  		Global_1922796 = 1;
  	}
  	else
  	{
  		bVar99 = true;
  		if (MISC::GET_HASH_KEY(SCRIPT::GET_THIS_SCRIPT_NAME()) != MISC::GET_HASH_KEY("standard_global_reg"))
  		{
  			if (iParam2 == 0)
  			{
  				if (Global_39142[iParam0] && MISC::GET_DISTANCE_BETWEEN_COORDS(ENTITY::GET_ENTITY_COORDS(PLAYER::PLAYER_PED_ID(), false), Var3, true) < 200f)
  				{
  					bVar99 = false;
  					Global_1922796 = 1;
  				}
  				if (!PLAYER::IS_PLAYER_PLAYING(PLAYER::PLAYER_ID()) || TASK::IS_PED_BEING_ARRESTED(PLAYER::PLAYER_PED_ID()))
  				{
  					if (!CAM::IS_SCREEN_FADED_OUT())
  					{
  						bVar99 = false;
  						Global_1922796 = 1;
  					}
  				}
  			}
  		}
  		if (STREAMING::IS_NEW_LOAD_SCENE_ACTIVE() && (!STREAMING::IS_PLAYER_SWITCH_IN_PROGRESS() || STREAMING::GET_PLAYER_SWITCH_STATE() != 5))
  		{
  			bVar99 = false;
  			Global_1922796 = 1;
  		}
  		if (bVar99)
  		{
  			switch (Var3.f_3)
  			{
  				case 0:
  					if (iVar1 == 2)
  					{
  					}
  					else
  					{
  						if (Var3.f_4[iVar1] != 0)
  						{
  							ENTITY::REMOVE_MODEL_HIDE(Var3, 10f, Var3.f_4[iVar1], false);
  						}
  						if (Var3.f_4[iVar2] != 0)
  						{
  							ENTITY::CREATE_MODEL_HIDE(Var3, 10f, Var3.f_4[iVar2], true);
  						}
  						Global_40736[iParam0] = 1;
  					}
  					bVar0 = true;
  					break;
  				
  				case 1:
  					if (iVar1 == 0)
  					{
  						if (MISC::GET_HASH_KEY(&(Var3.f_8[1 /*8*/])) != MISC::GET_HASH_KEY("") && MISC::GET_HASH_KEY(&(Var3.f_8[1 /*8*/])) != MISC::GET_HASH_KEY(&(Var3.f_8[iVar1 /*8*/])))
  						{
  							if (STREAMING::IS_IPL_ACTIVE(&(Var3.f_8[1 /*8*/])))
  							{
  								STREAMING::REMOVE_IPL(&(Var3.f_8[1 /*8*/]));
  								Global_1922796 = 1;
  							}
  						}
  						if ((MISC::GET_HASH_KEY(&(Var3.f_8[2 /*8*/])) != MISC::GET_HASH_KEY("") && MISC::GET_HASH_KEY(&(Var3.f_8[2 /*8*/])) != MISC::GET_HASH_KEY("REMOVE_ALL_STATES")) && MISC::GET_HASH_KEY(&(Var3.f_8[2 /*8*/])) != MISC::GET_HASH_KEY(&(Var3.f_8[iVar1 /*8*/])))
  						{
  							if (STREAMING::IS_IPL_ACTIVE(&(Var3.f_8[2 /*8*/])))
  							{
  								STREAMING::REMOVE_IPL(&(Var3.f_8[2 /*8*/]));
  								Global_1922796 = 1;
  							}
  						}
  						if (MISC::GET_HASH_KEY(&(Var3.f_8[0 /*8*/])) != MISC::GET_HASH_KEY(""))
  						{
  							if (!STREAMING::IS_IPL_ACTIVE(&(Var3.f_8[0 /*8*/])))
  							{
  								STREAMING::REQUEST_IPL(&(Var3.f_8[0 /*8*/]));
  								Global_1922796 = 1;
  							}
  						}
  						if (MISC::GET_HASH_KEY(&(Var3.f_34)) != MISC::GET_HASH_KEY(""))
  						{
  							if (!STREAMING::IS_IPL_ACTIVE(&(Var3.f_34)))
  							{
  								STREAMING::REQUEST_IPL(&(Var3.f_34));
  								Global_1922796 = 1;
  							}
  						}
  					}
  					else if (iVar1 == 1)
  					{
  						if (MISC::GET_HASH_KEY(&(Var3.f_34)) != MISC::GET_HASH_KEY(""))
  						{
  							if (STREAMING::IS_IPL_ACTIVE(&(Var3.f_34)))
  							{
  								STREAMING::REMOVE_IPL(&(Var3.f_34));
  							}
  						}
  						if (MISC::GET_HASH_KEY(&(Var3.f_8[0 /*8*/])) != MISC::GET_HASH_KEY("") && MISC::GET_HASH_KEY(&(Var3.f_8[0 /*8*/])) != MISC::GET_HASH_KEY(&(Var3.f_8[iVar1 /*8*/])))
  						{
  							if (STREAMING::IS_IPL_ACTIVE(&(Var3.f_8[0 /*8*/])))
  							{
  								STREAMING::REMOVE_IPL(&(Var3.f_8[0 /*8*/]));
  							}
  						}
  						if ((MISC::GET_HASH_KEY(&(Var3.f_8[2 /*8*/])) != MISC::GET_HASH_KEY("") && MISC::GET_HASH_KEY(&(Var3.f_8[2 /*8*/])) != MISC::GET_HASH_KEY("REMOVE_ALL_STATES")) && MISC::GET_HASH_KEY(&(Var3.f_8[2 /*8*/])) != MISC::GET_HASH_KEY(&(Var3.f_8[iVar1 /*8*/])))
  						{
  							if (STREAMING::IS_IPL_ACTIVE(&(Var3.f_8[2 /*8*/])))
  							{
  								STREAMING::REMOVE_IPL(&(Var3.f_8[2 /*8*/]));
  							}
  						}
  						if (MISC::GET_HASH_KEY(&(Var3.f_8[1 /*8*/])) != MISC::GET_HASH_KEY(""))
  						{
  							if (!STREAMING::IS_IPL_ACTIVE(&(Var3.f_8[1 /*8*/])))
  							{
  								STREAMING::REQUEST_IPL(&(Var3.f_8[1 /*8*/]));
  							}
  						}
  					}
  					else if (iVar1 == 2)
  					{
  						if (MISC::GET_HASH_KEY(&(Var3.f_34)) != MISC::GET_HASH_KEY(""))
  						{
  							if (STREAMING::IS_IPL_ACTIVE(&(Var3.f_34)))
  							{
  								STREAMING::REMOVE_IPL(&(Var3.f_34));
  							}
  						}
  						if (MISC::GET_HASH_KEY(&(Var3.f_8[0 /*8*/])) != MISC::GET_HASH_KEY("") && MISC::GET_HASH_KEY(&(Var3.f_8[0 /*8*/])) != MISC::GET_HASH_KEY(&(Var3.f_8[iVar1 /*8*/])))
  						{
  							if (STREAMING::IS_IPL_ACTIVE(&(Var3.f_8[0 /*8*/])))
  							{
  								STREAMING::REMOVE_IPL(&(Var3.f_8[0 /*8*/]));
  							}
  						}
  						if (MISC::GET_HASH_KEY(&(Var3.f_8[1 /*8*/])) != MISC::GET_HASH_KEY("") && MISC::GET_HASH_KEY(&(Var3.f_8[1 /*8*/])) != MISC::GET_HASH_KEY(&(Var3.f_8[iVar1 /*8*/])))
  						{
  							if (STREAMING::IS_IPL_ACTIVE(&(Var3.f_8[1 /*8*/])))
  							{
  								STREAMING::REMOVE_IPL(&(Var3.f_8[1 /*8*/]));
  							}
  						}
  						if (MISC::GET_HASH_KEY(&(Var3.f_8[2 /*8*/])) != MISC::GET_HASH_KEY("") && MISC::GET_HASH_KEY(&(Var3.f_8[2 /*8*/])) != MISC::GET_HASH_KEY("REMOVE_ALL_STATES"))
  						{
  							if (!STREAMING::IS_IPL_ACTIVE(&(Var3.f_8[2 /*8*/])))
  							{
  								STREAMING::REQUEST_IPL(&(Var3.f_8[2 /*8*/]));
  							}
  						}
  					}
  					Global_40537[iParam0] = 1;
  					Global_40736[iParam0] = 1;
  					bVar0 = true;
  					break;
  				
  				case 2:
  					iVar100 = INTERIOR::GET_INTERIOR_AT_COORDS_WITH_TYPE(Var3, &(Var3.f_42));
  					if (iVar100 != 0)
  					{
  						if (MISC::GET_HASH_KEY(&(Var3.f_50)) != MISC::GET_HASH_KEY(""))
  						{
  							if (INTERIOR::IS_INTERIOR_ENTITY_SET_ACTIVE(iVar100, &(Var3.f_50)))
  							{
  								INTERIOR::DEACTIVATE_INTERIOR_ENTITY_SET(iVar100, &(Var3.f_50));
  							}
  						}
  						if (iVar1 == 0)
  						{
  							if (MISC::GET_HASH_KEY(&(Var3.f_8[1 /*8*/])) != MISC::GET_HASH_KEY(""))
  							{
  								if (INTERIOR::IS_INTERIOR_ENTITY_SET_ACTIVE(iVar100, &(Var3.f_8[1 /*8*/])))
  								{
  									INTERIOR::DEACTIVATE_INTERIOR_ENTITY_SET(iVar100, &(Var3.f_8[1 /*8*/]));
  								}
  							}
  							if ((MISC::GET_HASH_KEY(&(Var3.f_8[2 /*8*/])) != MISC::GET_HASH_KEY("") && MISC::GET_HASH_KEY(&(Var3.f_8[2 /*8*/])) != MISC::GET_HASH_KEY("REMOVE_ALL_STATES")) && MISC::GET_HASH_KEY(&(Var3.f_8[2 /*8*/])) != MISC::GET_HASH_KEY(&(Var3.f_8[iVar1 /*8*/])))
  							{
  								if (INTERIOR::IS_INTERIOR_ENTITY_SET_ACTIVE(iVar100, &(Var3.f_8[2 /*8*/])))
  								{
  									INTERIOR::DEACTIVATE_INTERIOR_ENTITY_SET(iVar100, &(Var3.f_8[2 /*8*/]));
  								}
  							}
  							if (MISC::GET_HASH_KEY(&(Var3.f_8[0 /*8*/])) != MISC::GET_HASH_KEY(""))
  							{
  								if (!INTERIOR::IS_INTERIOR_ENTITY_SET_ACTIVE(iVar100, &(Var3.f_8[0 /*8*/])))
  								{
  									INTERIOR::ACTIVATE_INTERIOR_ENTITY_SET(iVar100, &(Var3.f_8[0 /*8*/]));
  								}
  							}
  						}
  						else if (iVar1 == 1)
  						{
  							if (MISC::GET_HASH_KEY(&(Var3.f_8[0 /*8*/])) != MISC::GET_HASH_KEY(""))
  							{
  								if (INTERIOR::IS_INTERIOR_ENTITY_SET_ACTIVE(iVar100, &(Var3.f_8[0 /*8*/])))
  								{
  									INTERIOR::DEACTIVATE_INTERIOR_ENTITY_SET(iVar100, &(Var3.f_8[0 /*8*/]));
  								}
  							}
  							if ((MISC::GET_HASH_KEY(&(Var3.f_8[2 /*8*/])) != MISC::GET_HASH_KEY("") && MISC::GET_HASH_KEY(&(Var3.f_8[2 /*8*/])) != MISC::GET_HASH_KEY("REMOVE_ALL_STATES")) && MISC::GET_HASH_KEY(&(Var3.f_8[2 /*8*/])) != MISC::GET_HASH_KEY(&(Var3.f_8[iVar1 /*8*/])))
  							{
  								if (INTERIOR::IS_INTERIOR_ENTITY_SET_ACTIVE(iVar100, &(Var3.f_8[2 /*8*/])))
  								{
  									INTERIOR::DEACTIVATE_INTERIOR_ENTITY_SET(iVar100, &(Var3.f_8[2 /*8*/]));
  								}
  							}
  							if (MISC::GET_HASH_KEY(&(Var3.f_8[1 /*8*/])) != MISC::GET_HASH_KEY(""))
  							{
  								if (!INTERIOR::IS_INTERIOR_ENTITY_SET_ACTIVE(iVar100, &(Var3.f_8[1 /*8*/])))
  								{
  									INTERIOR::ACTIVATE_INTERIOR_ENTITY_SET(iVar100, &(Var3.f_8[1 /*8*/]));
  								}
  							}
  						}
  						else if (iVar1 == 2)
  						{
  							if (MISC::GET_HASH_KEY(&(Var3.f_8[0 /*8*/])) != MISC::GET_HASH_KEY(""))
  							{
  								if (INTERIOR::IS_INTERIOR_ENTITY_SET_ACTIVE(iVar100, &(Var3.f_8[0 /*8*/])))
  								{
  									INTERIOR::DEACTIVATE_INTERIOR_ENTITY_SET(iVar100, &(Var3.f_8[0 /*8*/]));
  								}
  							}
  							if (MISC::GET_HASH_KEY(&(Var3.f_8[1 /*8*/])) != MISC::GET_HASH_KEY(""))
  							{
  								if (INTERIOR::IS_INTERIOR_ENTITY_SET_ACTIVE(iVar100, &(Var3.f_8[1 /*8*/])))
  								{
  									INTERIOR::DEACTIVATE_INTERIOR_ENTITY_SET(iVar100, &(Var3.f_8[1 /*8*/]));
  								}
  							}
  							if (MISC::GET_HASH_KEY(&(Var3.f_8[2 /*8*/])) != MISC::GET_HASH_KEY("") && MISC::GET_HASH_KEY(&(Var3.f_8[2 /*8*/])) != MISC::GET_HASH_KEY("REMOVE_ALL_STATES"))
  							{
  								if (!INTERIOR::IS_INTERIOR_ENTITY_SET_ACTIVE(iVar100, &(Var3.f_8[2 /*8*/])))
  								{
  									INTERIOR::ACTIVATE_INTERIOR_ENTITY_SET(iVar100, &(Var3.f_8[2 /*8*/]));
  								}
  							}
  						}
  						if (bParam1)
  						{
  							INTERIOR::REFRESH_INTERIOR(iVar100);
  						}
  					}
  					Global_40736[iParam0] = 1;
  					Global_40537[iParam0] = 1;
  					bVar0 = true;
  					break;
  				
  				case 3:
  					if (MISC::GET_DISTANCE_BETWEEN_COORDS(Var3, ENTITY::GET_ENTITY_COORDS(PLAYER::PLAYER_PED_ID(), false), true) < 250f)
  					{
  						iVar98 = OBJECT::GET_RAYFIRE_MAP_OBJECT(Var3, 25f, &(Var3.f_8[0 /*8*/]));
  						if (OBJECT::DOES_RAYFIRE_MAP_OBJECT_EXIST(iVar98))
  						{
  							if (iVar1 == 0)
  							{
  								OBJECT::SET_STATE_OF_RAYFIRE_MAP_OBJECT(iVar98, 3);
  								Global_40736[iParam0] = 1;
  								bVar0 = true;
  							}
  							else if (iVar1 == 1)
  							{
  								if ((OBJECT::GET_STATE_OF_RAYFIRE_MAP_OBJECT(iVar98) != 6 && OBJECT::GET_STATE_OF_RAYFIRE_MAP_OBJECT(iVar98) != 7) && OBJECT::GET_STATE_OF_RAYFIRE_MAP_OBJECT(iVar98) != 8)
  								{
  									OBJECT::SET_STATE_OF_RAYFIRE_MAP_OBJECT(iVar98, 10);
  									Global_40736[iParam0] = 1;
  									bVar0 = true;
  								}
  							}
  							else if (iVar1 == 2)
  							{
  								bVar0 = true;
  							}
  						}
  					}
  					break;
  				
  				case 4:
  					if (iVar1 == 0)
  					{
  						ENTITY::REMOVE_MODEL_SWAP(Var3, 50f, Var3.f_4[1], Var3.f_4[0], false);
  						MISC::CLEAR_BIT(&(Global_38888[(iParam0 / 32)]), (iParam0 % 32));
  					}
  					else if (iVar1 == 1)
  					{
  						ENTITY::CREATE_MODEL_SWAP(Var3, 50f, Var3.f_4[0], Var3.f_4[1], true);
  						MISC::SET_BIT(&(Global_38888[(iParam0 / 32)]), (iParam0 % 32));
  					}
  					bVar0 = true;
  					break;
  			}
  			if (bVar0)
  			{
  				Global_39341[iParam0] = 0;
  				Global_39540[iParam0] = iVar1;
  				if (!func_42())
  				{
  					if (!Global_40137[iParam0])
  					{
  						Global_40137[iParam0] = 1;
  						Global_40336++;
  					}
  				}
  			}
  		}
  	}
  	return bVar0;
  }
  
  int func_42()
  {
  	if ((func_21() == -1 || func_21() == 999) && !func_43() == 0)
  	{
  		return 1;
  	}
  	return 0;
  }
  
  int func_43()
  {
  	return Global_31512;
  }
  
  int func_44(var uParam0, int iParam1)
  {
  	int iVar0;
  	
  	iVar0 = 0;
  	while (iVar0 < 3)
  	{
  		uParam0->f_4[iVar0] = 0;
  		StringCopy(&(uParam0->f_8[iVar0 /*8*/]), "", 32);
  		uParam0->f_64[iVar0] = 0;
  		uParam0->f_75[iVar0] = 0;
  		uParam0->f_91[iVar0] = 0;
  		iVar0++;
  	}
  	*uParam0 = { 0f, 0f, 0f };
  	uParam0->f_3 = 0;
  	uParam0->f_33 = 0;
  	StringCopy(&(uParam0->f_34), "", 32);
  	StringCopy(&(uParam0->f_42), "", 32);
  	StringCopy(&(uParam0->f_50), "", 32);
  	uParam0->f_58 = { 0f, 0f, 0f };
  	uParam0->f_61 = { 0f, 0f, 0f };
  	uParam0->f_68 = { 0f, 0f, 0f };
  	uParam0->f_71 = { 0f, 0f, 0f };
  	uParam0->f_74 = 0f;
  	uParam0->f_79 = { 0f, 0f, 0f };
  	uParam0->f_82 = { 0f, 0f, 0f };
  	uParam0->f_85 = { 0f, 0f, 0f };
  	uParam0->f_88 = { 0f, 0f, 0f };
  	switch (iParam1)
  	{
  		case 3:
  			uParam0->f_3 = 1;
  			StringCopy(&(uParam0->f_8[0 /*8*/]), "TRV1_Trail_start", 32);
  			StringCopy(&(uParam0->f_8[1 /*8*/]), "TRV1_Trail_end", 32);
  			StringCopy(&(uParam0->f_8[2 /*8*/]), "TRV1_Trail_Finish", 32);
  			uParam0->f_33 = 1;
  			*uParam0 = { -24.685f, 3032.92f, 40.331f };
  			break;
  		
  		case 4:
  			uParam0->f_3 = 1;
  			StringCopy(&(uParam0->f_8[0 /*8*/]), "CS3_05_water_grp1", 32);
  			StringCopy(&(uParam0->f_8[1 /*8*/]), "CS3_05_water_grp2", 32);
  			*uParam0 = { -24.685f, 3032.92f, 40.331f };
  			break;
  		
  		case 0:
  			uParam0->f_3 = 1;
  			StringCopy(&(uParam0->f_8[0 /*8*/]), "gasstation_ipl_group1", 32);
  			StringCopy(&(uParam0->f_8[1 /*8*/]), "gasstation_ipl_group2", 32);
  			*uParam0 = { -93.4f, 6410.9f, 36.8f };
  			break;
  		
  		case 1:
  			uParam0->f_3 = 1;
  			StringCopy(&(uParam0->f_8[0 /*8*/]), "DES_Smash2_startimap", 32);
  			StringCopy(&(uParam0->f_8[1 /*8*/]), "DES_Smash2_endimap", 32);
  			*uParam0 = { 890.3647f, -2367.289f, 28.10582f };
  			break;
  		
  		case 2:
  			uParam0->f_3 = 1;
  			StringCopy(&(uParam0->f_8[0 /*8*/]), "DES_StiltHouse_imapstart", 32);
  			StringCopy(&(uParam0->f_8[1 /*8*/]), "DES_StiltHouse_imapend", 32);
  			StringCopy(&(uParam0->f_8[2 /*8*/]), "des_stilthouse_rebuild", 32);
  			uParam0->f_33 = 0;
  			*uParam0 = { -1020.5f, 663.41f, 154.75f };
  			uParam0->f_58 = { -1018.913f, 603.2904f, 105.6611f };
  			uParam0->f_61 = { -1038.913f, 639.2904f, 135.6611f };
  			uParam0->f_64[0] = 1;
  			uParam0->f_64[1] = 0;
  			break;
  		
  		case 5:
  			uParam0->f_3 = 1;
  			StringCopy(&(uParam0->f_8[0 /*8*/]), "bnkheist_apt_norm", 32);
  			StringCopy(&(uParam0->f_8[1 /*8*/]), "bnkheist_apt_dest", 32);
  			break;
  		
  		case 196:
  			uParam0->f_3 = 1;
  			StringCopy(&(uParam0->f_8[0 /*8*/]), "", 32);
  			StringCopy(&(uParam0->f_8[1 /*8*/]), "bnkheist_apt_dest_vfx", 32);
  			StringCopy(&(uParam0->f_8[2 /*8*/]), "REMOVE_ALL_STATES", 32);
  			uParam0->f_33 = 1;
  			break;
  		
  		case 6:
  			uParam0->f_3 = 1;
  			StringCopy(&(uParam0->f_8[0 /*8*/]), "", 32);
  			StringCopy(&(uParam0->f_8[1 /*8*/]), "crashed_cargoplane", 32);
  			break;
  		
  		case 7:
  			uParam0->f_3 = 1;
  			StringCopy(&(uParam0->f_8[0 /*8*/]), "", 32);
  			StringCopy(&(uParam0->f_8[1 /*8*/]), "prop_jb700_covered", 32);
  			*uParam0 = { 490.8999f, -1334.068f, 28.3298f };
  			break;
  		
  		case 8:
  			uParam0->f_3 = 1;
  			StringCopy(&(uParam0->f_8[0 /*8*/]), "", 32);
  			StringCopy(&(uParam0->f_8[1 /*8*/]), "prop_entityXF_covered", 32);
  			*uParam0 = { 490.8999f, -1334.068f, 28.3298f };
  			break;
  		
  		case 9:
  			uParam0->f_3 = 1;
  			StringCopy(&(uParam0->f_8[0 /*8*/]), "", 32);
  			StringCopy(&(uParam0->f_8[1 /*8*/]), "prop_cheetah_covered", 32);
  			*uParam0 = { 490.8999f, -1334.068f, 28.3298f };
  			break;
  		
  		case 10:
  			uParam0->f_3 = 1;
  			StringCopy(&(uParam0->f_8[0 /*8*/]), "", 32);
  			StringCopy(&(uParam0->f_8[1 /*8*/]), "prop_ztype_covered", 32);
  			*uParam0 = { 490.8999f, -1334.068f, 28.3298f };
  			break;
  		
  		case 11:
  			uParam0->f_3 = 1;
  			StringCopy(&(uParam0->f_8[0 /*8*/]), "", 32);
  			StringCopy(&(uParam0->f_8[1 /*8*/]), "BH1_48_Killed_Michael", 32);
  			break;
  		
  		case 12:
  			uParam0->f_3 = 1;
  			StringCopy(&(uParam0->f_8[0 /*8*/]), "cargoship", 32);
  			StringCopy(&(uParam0->f_8[1 /*8*/]), "sunkcargoship", 32);
  			uParam0->f_68 = { -162.8918f, -2365.769f, 0f };
  			uParam0->f_71 = { 190.75f, 31.25f, 21f };
  			uParam0->f_74 = 0f;
  			uParam0->f_75[0] = 0;
  			uParam0->f_75[1] = 1;
  			break;
  		
  		case 13:
  			uParam0->f_3 = 1;
  			StringCopy(&(uParam0->f_8[0 /*8*/]), "ship_occ_grp1", 32);
  			StringCopy(&(uParam0->f_8[1 /*8*/]), "ship_occ_grp2", 32);
  			break;
  		
  		case 14:
  			uParam0->f_3 = 1;
  			StringCopy(&(uParam0->f_8[0 /*8*/]), "smboat", 32);
  			break;
  		
  		case 15:
  			uParam0->f_3 = 1;
  			StringCopy(&(uParam0->f_8[0 /*8*/]), "", 32);
  			StringCopy(&(uParam0->f_8[1 /*8*/]), "gasparticle_grp2", 32);
  			*uParam0 = { -95.2f, 6411.3f, 31.5f };
  			break;
  		
  		case 16:
  			uParam0->f_3 = 1;
  			StringCopy(&(uParam0->f_8[0 /*8*/]), "CS1_02_cf_offmission", 32);
  			StringCopy(&(uParam0->f_8[1 /*8*/]), "CS1_02_cf_onmission1", 32);
  			*uParam0 = { -146.3837f, 6161.5f, 30.2062f };
  			break;
  		
  		case 17:
  			uParam0->f_3 = 1;
  			StringCopy(&(uParam0->f_8[0 /*8*/]), "", 32);
  			StringCopy(&(uParam0->f_8[1 /*8*/]), "CS1_02_cf_onmission2", 32);
  			*uParam0 = { -146.3837f, 6161.5f, 30.2062f };
  			break;
  		
  		case 18:
  			uParam0->f_3 = 1;
  			StringCopy(&(uParam0->f_8[0 /*8*/]), "", 32);
  			StringCopy(&(uParam0->f_8[1 /*8*/]), "CS1_02_cf_onmission3", 32);
  			*uParam0 = { -146.3837f, 6161.5f, 30.2062f };
  			break;
  		
  		case 19:
  			uParam0->f_3 = 1;
  			StringCopy(&(uParam0->f_8[0 /*8*/]), "", 32);
  			StringCopy(&(uParam0->f_8[1 /*8*/]), "CS1_02_cf_onmission4", 32);
  			*uParam0 = { -146.3837f, 6161.5f, 30.2062f };
  			break;
  		
  		case 20:
  			uParam0->f_3 = 1;
  			StringCopy(&(uParam0->f_8[0 /*8*/]), "jetstealtunnel", 32);
  			StringCopy(&(uParam0->f_8[1 /*8*/]), "", 32);
  			*uParam0 = { 801.7f, -1810.8f, 23.3f };
  			break;
  		
  		case 21:
  			uParam0->f_3 = 1;
  			StringCopy(&(uParam0->f_8[0 /*8*/]), "Jetsteal_ipl_grp1", 32);
  			StringCopy(&(uParam0->f_8[1 /*8*/]), "Jetsteal_ipl_grp2", 32);
  			StringCopy(&(uParam0->f_8[2 /*8*/]), "REMOVE_ALL_STATES", 32);
  			uParam0->f_33 = 1;
  			*uParam0 = { 787.3967f, -1808.858f, 29.8532f };
  			uParam0->f_58 = { 814f, -1750f, 20f };
  			uParam0->f_61 = { 790f, -1899f, 35f };
  			uParam0->f_64[0] = 1;
  			uParam0->f_64[1] = 0;
  			uParam0->f_64[2] = 0;
  			break;
  		
  		case 22:
  			uParam0->f_3 = 1;
  			StringCopy(&(uParam0->f_8[0 /*8*/]), "BH1_47_JoshHse_UnBurnt", 32);
  			StringCopy(&(uParam0->f_8[1 /*8*/]), "BH1_47_JoshHse_Burnt", 32);
  			break;
  		
  		case 23:
  			uParam0->f_3 = 1;
  			StringCopy(&(uParam0->f_8[0 /*8*/]), "", 32);
  			StringCopy(&(uParam0->f_8[1 /*8*/]), "bh1_47_joshhse_firevfx", 32);
  			break;
  		
  		case 24:
  			uParam0->f_3 = 1;
  			StringCopy(&(uParam0->f_8[0 /*8*/]), "SC1_30_Keep_Closed", 32);
  			break;
  		
  		case 25:
  			uParam0->f_3 = 1;
  			StringCopy(&(uParam0->f_8[0 /*8*/]), "triathlon2_VBprops", 32);
  			break;
  		
  		case 26:
  			uParam0->f_3 = 1;
  			StringCopy(&(uParam0->f_8[0 /*8*/]), "", 32);
  			StringCopy(&(uParam0->f_8[1 /*8*/]), "DT1_05_REQUEST", 32);
  			*uParam0 = { 163.4f, -745.7f, 251f };
  			break;
  		
  		case 27:
  			uParam0->f_3 = 1;
  			StringCopy(&(uParam0->f_8[0 /*8*/]), "FBI_colPLUG", 32);
  			StringCopy(&(uParam0->f_8[1 /*8*/]), "", 32);
  			*uParam0 = { 74.29f, -736.05f, 46.76f };
  			break;
  		
  		case 28:
  			uParam0->f_3 = 1;
  			StringCopy(&(uParam0->f_8[0 /*8*/]), "", 32);
  			StringCopy(&(uParam0->f_8[1 /*8*/]), "FBI_repair", 32);
  			*uParam0 = { 74.29f, -736.05f, 46.76f };
  			break;
  		
  		case 29:
  			uParam0->f_3 = 4;
  			uParam0->f_4[0] = joaat("dt1_05_build1_h");
  			uParam0->f_4[1] = joaat("dt1_05_build1_damage");
  			*uParam0 = { 136.004f, -749.287f, 153.302f };
  			break;
  		
  		case 30:
  			uParam0->f_3 = 4;
  			uParam0->f_4[0] = -112041596;
  			uParam0->f_4[1] = joaat("dt1_05_build1_damage_lod");
  			*uParam0 = { 136.004f, -749.287f, 153.302f };
  			break;
  		
  		case 31:
  			uParam0->f_3 = 4;
  			uParam0->f_4[0] = joaat("dt1_05_slod");
  			uParam0->f_4[1] = joaat("dt1_05_damage_slod");
  			*uParam0 = { 178.534f, -668.835f, 37.2113f };
  			break;
  		
  		case 32:
  			uParam0->f_3 = 1;
  			StringCopy(&(uParam0->f_8[0 /*8*/]), "FIB_heist_lights", 32);
  			StringCopy(&(uParam0->f_8[1 /*8*/]), "", 32);
  			*uParam0 = { 136.004f, -749.287f, 153.302f };
  			break;
  		
  		case 33:
  			uParam0->f_3 = 1;
  			StringCopy(&(uParam0->f_8[0 /*8*/]), "", 32);
  			StringCopy(&(uParam0->f_8[1 /*8*/]), "FIB_heist_dmg", 32);
  			*uParam0 = { 136.004f, -749.287f, 153.302f };
  			break;
  		
  		case 34:
  			uParam0->f_3 = 1;
  			StringCopy(&(uParam0->f_8[0 /*8*/]), "", 32);
  			StringCopy(&(uParam0->f_8[1 /*8*/]), "DT1_05_rubble", 32);
  			*uParam0 = { 74.29f, -736.05f, 46.76f };
  			break;
  		
  		case 35:
  			uParam0->f_3 = 1;
  			StringCopy(&(uParam0->f_8[0 /*8*/]), "FIBlobbyfake", 32);
  			StringCopy(&(uParam0->f_8[1 /*8*/]), "FIBlobby", 32);
  			*uParam0 = { 105.4557f, -745.4835f, 44.7548f };
  			break;
  		
  		case 36:
  			uParam0->f_3 = 1;
  			StringCopy(&(uParam0->f_8[0 /*8*/]), "DT1_05_HC_REMOVE", 32);
  			StringCopy(&(uParam0->f_8[1 /*8*/]), "DT1_05_HC_REQ", 32);
  			*uParam0 = { 169f, -670.3f, 41.9f };
  			break;
  		
  		case 37:
  			uParam0->f_3 = 1;
  			*uParam0 = { 50.2f, 3743.9f, 40.9f };
  			uParam0->f_79 = { 16.9757f, 3614.307f, 30.0677f };
  			uParam0->f_82 = { 145.2451f, 3748.912f, 49.6958f };
  			uParam0->f_85 = { 16.9757f, 3614.307f, 30.0677f };
  			uParam0->f_88 = { 145.2451f, 3748.912f, 49.6958f };
  			uParam0->f_91[0] = 0;
  			uParam0->f_91[1] = 1;
  			break;
  		
  		case 38:
  			uParam0->f_3 = 1;
  			StringCopy(&(uParam0->f_8[0 /*8*/]), "trailerparkA_grp1", 32);
  			StringCopy(&(uParam0->f_8[1 /*8*/]), "trailerparkA_grp2", 32);
  			*uParam0 = { 50.2f, 3743.9f, 40.9f };
  			break;
  		
  		case 39:
  			uParam0->f_3 = 1;
  			StringCopy(&(uParam0->f_8[0 /*8*/]), "occl_trailerA_grp1", 32);
  			StringCopy(&(uParam0->f_8[1 /*8*/]), "", 32);
  			*uParam0 = { 50.2f, 3743.9f, 40.9f };
  			break;
  		
  		case 40:
  			uParam0->f_3 = 1;
  			StringCopy(&(uParam0->f_8[0 /*8*/]), "trailerparkB_grp1", 32);
  			StringCopy(&(uParam0->f_8[1 /*8*/]), "trailerparkB_grp2", 32);
  			*uParam0 = { 106.7f, 3732.1f, 40.8f };
  			break;
  		
  		case 41:
  			uParam0->f_3 = 1;
  			StringCopy(&(uParam0->f_8[0 /*8*/]), "occl_trailerB_grp1", 32);
  			StringCopy(&(uParam0->f_8[1 /*8*/]), "", 32);
  			*uParam0 = { 106.7f, 3732.1f, 40.8f };
  			break;
  		
  		case 42:
  			uParam0->f_3 = 1;
  			StringCopy(&(uParam0->f_8[0 /*8*/]), "trailerparkC_grp1", 32);
  			StringCopy(&(uParam0->f_8[1 /*8*/]), "trailerparkC_grp2", 32);
  			*uParam0 = { 72.7f, 3695.4f, 42f };
  			break;
  		
  		case 43:
  			uParam0->f_3 = 1;
  			StringCopy(&(uParam0->f_8[0 /*8*/]), "occl_trailerC_grp1", 32);
  			StringCopy(&(uParam0->f_8[1 /*8*/]), "", 32);
  			*uParam0 = { 72.7f, 3695.4f, 42f };
  			break;
  		
  		case 44:
  			uParam0->f_3 = 1;
  			StringCopy(&(uParam0->f_8[0 /*8*/]), "trailerparkD_grp1", 32);
  			StringCopy(&(uParam0->f_8[1 /*8*/]), "trailerparkD_grp2", 32);
  			*uParam0 = { 43.8f, 3699.7f, 41.3f };
  			break;
  		
  		case 45:
  			uParam0->f_3 = 1;
  			StringCopy(&(uParam0->f_8[0 /*8*/]), "occl_trailerD_grp1", 32);
  			StringCopy(&(uParam0->f_8[1 /*8*/]), "", 32);
  			*uParam0 = { 43.8f, 3699.7f, 41.3f };
  			break;
  		
  		case 46:
  			uParam0->f_3 = 1;
  			StringCopy(&(uParam0->f_8[0 /*8*/]), "trailerparkE_grp1", 32);
  			StringCopy(&(uParam0->f_8[1 /*8*/]), "trailerparkE_grp2", 32);
  			*uParam0 = { 28.5f, 3668f, 40.4f };
  			break;
  		
  		case 47:
  			uParam0->f_3 = 1;
  			StringCopy(&(uParam0->f_8[0 /*8*/]), "occl_trailerE_grp1", 32);
  			StringCopy(&(uParam0->f_8[1 /*8*/]), "", 32);
  			*uParam0 = { 28.5f, 3668f, 40.4f };
  			break;
  		
  		case 48:
  			uParam0->f_3 = 1;
  			StringCopy(&(uParam0->f_34), "des_methtrailer", 32);
  			StringCopy(&(uParam0->f_8[0 /*8*/]), "methtrailer_grp1", 32);
  			StringCopy(&(uParam0->f_8[1 /*8*/]), "methtrailer_grp2", 32);
  			StringCopy(&(uParam0->f_8[2 /*8*/]), "methtrailer_grp3", 32);
  			uParam0->f_33 = 1;
  			*uParam0 = { 29.4838f, 3735.593f, 38.688f };
  			uParam0->f_68 = { 31.134f, 3738.783f, 39.062f };
  			uParam0->f_71 = { 13.6f, 20f, 8.9f };
  			uParam0->f_74 = 48f;
  			uParam0->f_75[0] = 0;
  			uParam0->f_75[1] = 1;
  			uParam0->f_75[2] = 1;
  			break;
  		
  		case 49:
  			uParam0->f_3 = 1;
  			StringCopy(&(uParam0->f_8[0 /*8*/]), "occl_meth_grp1", 32);
  			StringCopy(&(uParam0->f_8[1 /*8*/]), "", 32);
  			*uParam0 = { 29.4838f, 3735.593f, 38.688f };
  			break;
  		
  		case 50:
  			uParam0->f_3 = 1;
  			StringCopy(&(uParam0->f_8[0 /*8*/]), "des_farmhs_startimap", 32);
  			StringCopy(&(uParam0->f_8[1 /*8*/]), "des_farmhs_endimap", 32);
  			StringCopy(&(uParam0->f_8[2 /*8*/]), "REMOVE_ALL_STATES", 32);
  			uParam0->f_33 = 1;
  			*uParam0 = { 2450.595f, 4959.929f, 44.2575f };
  			uParam0->f_79 = { 2383.756f, 4929.988f, 39.52461f };
  			uParam0->f_82 = { 2505.756f, 5023.988f, 67.52461f };
  			break;
  		
  		case 55:
  			uParam0->f_3 = 1;
  			StringCopy(&(uParam0->f_8[0 /*8*/]), "des_farmhs_start_occl", 32);
  			StringCopy(&(uParam0->f_8[1 /*8*/]), "des_farmhs_end_occl", 32);
  			StringCopy(&(uParam0->f_8[2 /*8*/]), "", 32);
  			*uParam0 = { 2450.595f, 4959.929f, 44.2575f };
  			break;
  		
  		case 51:
  			uParam0->f_3 = 1;
  			StringCopy(&(uParam0->f_8[0 /*8*/]), "farm", 32);
  			StringCopy(&(uParam0->f_8[1 /*8*/]), "farm", 32);
  			StringCopy(&(uParam0->f_8[2 /*8*/]), "farm_burnt", 32);
  			uParam0->f_33 = 1;
  			*uParam0 = { 2444.8f, 4976.4f, 50.5f };
  			break;
  		
  		case 52:
  			uParam0->f_3 = 1;
  			StringCopy(&(uParam0->f_8[0 /*8*/]), "farm_props", 32);
  			StringCopy(&(uParam0->f_8[1 /*8*/]), "", 32);
  			StringCopy(&(uParam0->f_8[2 /*8*/]), "farm_burnt_props", 32);
  			uParam0->f_33 = 1;
  			*uParam0 = { 2447.9f, 4973.4f, 47.7f };
  			break;
  		
  		case 53:
  			uParam0->f_3 = 1;
  			StringCopy(&(uParam0->f_8[0 /*8*/]), "des_farmhouse", 32);
  			StringCopy(&(uParam0->f_8[1 /*8*/]), "des_farmhouse", 32);
  			StringCopy(&(uParam0->f_8[2 /*8*/]), "REMOVE_ALL_STATES", 32);
  			uParam0->f_33 = 1;
  			*uParam0 = { 2447.9f, 4973.4f, 47.7f };
  			break;
  		
  		case 54:
  			uParam0->f_3 = 1;
  			StringCopy(&(uParam0->f_8[0 /*8*/]), "farmint_cap", 32);
  			StringCopy(&(uParam0->f_8[1 /*8*/]), "farmint", 32);
  			StringCopy(&(uParam0->f_8[2 /*8*/]), "", 32);
  			*uParam0 = { 2447.9f, 4973.4f, 47.7f };
  			break;
  		
  		case 56:
  			uParam0->f_3 = 1;
  			StringCopy(&(uParam0->f_8[0 /*8*/]), "tankerexp_grp0", 32);
  			StringCopy(&(uParam0->f_8[1 /*8*/]), "tankerexp_grp3", 32);
  			*uParam0 = { 1676.415f, -1626.37f, 111.4848f };
  			break;
  		
  		case 57:
  			uParam0->f_3 = 1;
  			StringCopy(&(uParam0->f_8[0 /*8*/]), "", 32);
  			StringCopy(&(uParam0->f_8[1 /*8*/]), "tankerexp_grp1", 32);
  			*uParam0 = { 1676.415f, -1626.37f, 111.4848f };
  			break;
  		
  		case 58:
  			uParam0->f_3 = 1;
  			StringCopy(&(uParam0->f_8[0 /*8*/]), "", 32);
  			StringCopy(&(uParam0->f_8[1 /*8*/]), "tankerexp_grp2", 32);
  			*uParam0 = { 1676.415f, -1626.37f, 111.4848f };
  			break;
  		
  		case 59:
  			uParam0->f_3 = 1;
  			StringCopy(&(uParam0->f_8[0 /*8*/]), "", 32);
  			StringCopy(&(uParam0->f_8[1 /*8*/]), "DES_tankerexp", 32);
  			*uParam0 = { 1676.415f, -1626.37f, 111.4848f };
  			break;
  		
  		case 60:
  			uParam0->f_3 = 1;
  			StringCopy(&(uParam0->f_8[0 /*8*/]), "dockcrane1", 32);
  			*uParam0 = { 889.3f, -2910.9f, 40f };
  			break;
  		
  		case 61:
  			uParam0->f_3 = 1;
  			StringCopy(&(uParam0->f_8[0 /*8*/]), "CanyonRvrShallow", 32);
  			StringCopy(&(uParam0->f_8[1 /*8*/]), "CanyonRvrDeep", 32);
  			*uParam0 = { -1600.619f, 4443.457f, 0.725f };
  			break;
  		
  		case 62:
  			uParam0->f_3 = 1;
  			StringCopy(&(uParam0->f_8[0 /*8*/]), "", 32);
  			StringCopy(&(uParam0->f_8[1 /*8*/]), "Garage_door_locked", 32);
  			*uParam0 = { 966.1f, -114.8f, 75.2f };
  			break;
  		
  		case 63:
  			uParam0->f_3 = 1;
  			StringCopy(&(uParam0->f_8[0 /*8*/]), "ch1_02_closed", 32);
  			StringCopy(&(uParam0->f_8[1 /*8*/]), "ch1_02_open", 32);
  			*uParam0 = { -3086.428f, 339.2523f, 6.3717f };
  			break;
  		
  		case 64:
  			uParam0->f_3 = 1;
  			StringCopy(&(uParam0->f_8[0 /*8*/]), "ferris_finale_Anim", 32);
  			StringCopy(&(uParam0->f_8[1 /*8*/]), "", 32);
  			*uParam0 = { -1675.178f, -1143.605f, 12.0175f };
  			break;
  		
  		case 65:
  			uParam0->f_3 = 1;
  			StringCopy(&(uParam0->f_8[0 /*8*/]), "railing_start", 32);
  			StringCopy(&(uParam0->f_8[1 /*8*/]), "railing_end", 32);
  			*uParam0 = { -532.1309f, 4526.187f, 88.7955f };
  			break;
  		
  		case 66:
  			uParam0->f_3 = 1;
  			StringCopy(&(uParam0->f_8[0 /*8*/]), "canyonriver01", 32);
  			StringCopy(&(uParam0->f_8[1 /*8*/]), "canyonriver01_traincrash", 32);
  			*uParam0 = { -532.1309f, 4526.187f, 88.7955f };
  			break;
  		
  		case 67:
  			uParam0->f_3 = 1;
  			StringCopy(&(uParam0->f_8[0 /*8*/]), "DT1_05_WOFFM", 32);
  			StringCopy(&(uParam0->f_8[1 /*8*/]), "DT1_05_FIB2_Mission", 32);
  			StringCopy(&(uParam0->f_8[2 /*8*/]), "DT1_05_WOFFM", 32);
  			*uParam0 = { 131.29f, -631.22f, 261.85f };
  			break;
  		
  		case 68:
  			uParam0->f_3 = 1;
  			StringCopy(&(uParam0->f_8[0 /*8*/]), "", 32);
  			StringCopy(&(uParam0->f_8[1 /*8*/]), "coronertrash", 32);
  			*uParam0 = { 233.9f, -1355f, 30.3f };
  			break;
  		
  		case 69:
  			uParam0->f_3 = 1;
  			StringCopy(&(uParam0->f_8[0 /*8*/]), "Coroner_Int_off", 32);
  			StringCopy(&(uParam0->f_8[1 /*8*/]), "Coroner_Int_on", 32);
  			*uParam0 = { 234.4f, -1355.6f, 40.5f };
  			break;
  		
  		case 70:
  			uParam0->f_3 = 1;
  			StringCopy(&(uParam0->f_8[0 /*8*/]), "id2_14_pre_no_int", 32);
  			StringCopy(&(uParam0->f_8[1 /*8*/]), "", 32);
  			*uParam0 = { 716.84f, -962.05f, 31.59f };
  			break;
  		
  		case 71:
  			uParam0->f_3 = 1;
  			StringCopy(&(uParam0->f_8[0 /*8*/]), "", 32);
  			StringCopy(&(uParam0->f_8[1 /*8*/]), "id2_14_during1", 32);
  			StringCopy(&(uParam0->f_8[2 /*8*/]), "id2_14_during2", 32);
  			*uParam0 = { 716.84f, -962.05f, 31.59f };
  			break;
  		
  		case 72:
  			uParam0->f_3 = 1;
  			StringCopy(&(uParam0->f_8[0 /*8*/]), "", 32);
  			StringCopy(&(uParam0->f_8[1 /*8*/]), "id2_14_on_fire", 32);
  			StringCopy(&(uParam0->f_8[2 /*8*/]), "id2_14_post_no_int", 32);
  			*uParam0 = { 716.84f, -962.05f, 31.59f };
  			break;
  		
  		case 73:
  			uParam0->f_3 = 1;
  			StringCopy(&(uParam0->f_8[0 /*8*/]), "", 32);
  			StringCopy(&(uParam0->f_8[1 /*8*/]), "id2_14_during_door", 32);
  			*uParam0 = { 716.84f, -962.05f, 31.59f };
  			break;
  		
  		case 74:
  			uParam0->f_3 = 1;
  			StringCopy(&(uParam0->f_8[0 /*8*/]), "burnt_switch_off", 32);
  			StringCopy(&(uParam0->f_8[1 /*8*/]), "", 32);
  			*uParam0 = { 716.84f, -962.05f, 31.59f };
  			break;
  		
  		case 75:
  			uParam0->f_3 = 1;
  			StringCopy(&(uParam0->f_8[0 /*8*/]), "RC12B_Default", 32);
  			StringCopy(&(uParam0->f_8[1 /*8*/]), "RC12B_Destroyed", 32);
  			StringCopy(&(uParam0->f_8[2 /*8*/]), "RC12B_Fixed", 32);
  			uParam0->f_33 = 0;
  			*uParam0 = { 330.4596f, -584.8196f, 42.3174f };
  			break;
  		
  		case 76:
  			uParam0->f_3 = 1;
  			StringCopy(&(uParam0->f_8[0 /*8*/]), "RC12B_HospitalInterior", 32);
  			StringCopy(&(uParam0->f_8[1 /*8*/]), "", 32);
  			uParam0->f_33 = 0;
  			*uParam0 = { 330.4596f, -584.8196f, 42.3174f };
  			break;
  		
  		case 105:
  			uParam0->f_3 = 1;
  			StringCopy(&(uParam0->f_8[0 /*8*/]), "", 32);
  			StringCopy(&(uParam0->f_8[1 /*8*/]), "SM_15_BldGRAF1", 32);
  			*uParam0 = { 330.4596f, -584.8196f, 42.3174f };
  			break;
  		
  		case 106:
  			uParam0->f_3 = 1;
  			StringCopy(&(uParam0->f_8[0 /*8*/]), "", 32);
  			StringCopy(&(uParam0->f_8[1 /*8*/]), "CH3_RD2_BishopsChickenGraffiti", 32);
  			*uParam0 = { 1861.28f, 2402.11f, 58.53f };
  			break;
  		
  		case 107:
  			uParam0->f_3 = 1;
  			StringCopy(&(uParam0->f_8[0 /*8*/]), "", 32);
  			StringCopy(&(uParam0->f_8[1 /*8*/]), "FruitBB", 32);
  			*uParam0 = { -1327.46f, -274.82f, 54.25f };
  			break;
  		
  		case 108:
  			uParam0->f_3 = 1;
  			StringCopy(&(uParam0->f_8[0 /*8*/]), "", 32);
  			StringCopy(&(uParam0->f_8[1 /*8*/]), "CS5_04_MazeBillboardGraffiti", 32);
  			*uParam0 = { 2697.32f, 3162.18f, 58.1f };
  			break;
  		
  		case 109:
  			uParam0->f_3 = 1;
  			StringCopy(&(uParam0->f_8[0 /*8*/]), "", 32);
  			StringCopy(&(uParam0->f_8[1 /*8*/]), "CS5_Roads_RonOilGraffiti", 32);
  			*uParam0 = { 2119.12f, 3058.21f, 53.25f };
  			break;
  		
  		case 110:
  			uParam0->f_3 = 1;
  			StringCopy(&(uParam0->f_8[0 /*8*/]), "", 32);
  			StringCopy(&(uParam0->f_8[1 /*8*/]), "ap1_03_bbrd_dcl", 32);
  			*uParam0 = { -804.25f, -2276.88f, 23.59f };
  			break;
  		
  		case 111:
  			uParam0->f_3 = 1;
  			StringCopy(&(uParam0->f_8[0 /*8*/]), "HW1_02_OldBill", 32);
  			StringCopy(&(uParam0->f_8[1 /*8*/]), "HW1_02_NewBill", 32);
  			*uParam0 = { 296.5f, 173.3f, 100.4f };
  			break;
  		
  		case 112:
  			uParam0->f_3 = 1;
  			StringCopy(&(uParam0->f_8[0 /*8*/]), "HW1_Emissive_OldBill", 32);
  			StringCopy(&(uParam0->f_8[1 /*8*/]), "HW1_Emissive_NewBill", 32);
  			*uParam0 = { 296.5f, 173.3f, 100.4f };
  			break;
  		
  		case 77:
  			uParam0->f_3 = 1;
  			StringCopy(&(uParam0->f_8[0 /*8*/]), "", 32);
  			StringCopy(&(uParam0->f_8[1 /*8*/]), "", 32);
  			StringCopy(&(uParam0->f_8[2 /*8*/]), "", 32);
  			uParam0->f_33 = 1;
  			*uParam0 = { 480.9554f, -1321.21f, 28.2037f };
  			uParam0->f_85 = { 508.3f, -1299.3f, 39.4f };
  			uParam0->f_88 = { 459.9f, -1363.2f, 21.4f };
  			uParam0->f_91[0] = 0;
  			uParam0->f_91[1] = 1;
  			uParam0->f_91[2] = 0;
  			break;
  		
  		case 78:
  			uParam0->f_3 = 1;
  			StringCopy(&(uParam0->f_8[0 /*8*/]), "TrevorsTrailer", 32);
  			StringCopy(&(uParam0->f_8[1 /*8*/]), "TrevorsTrailerTrash", 32);
  			StringCopy(&(uParam0->f_8[2 /*8*/]), "TrevorsTrailerTidy", 32);
  			*uParam0 = { 1973f, 3815f, 34f };
  			uParam0->f_33 = 0;
  			break;
  		
  		case joaat("mpsv_lp0_31"):
  			uParam0->f_3 = 1;
  			StringCopy(&(uParam0->f_8[0 /*8*/]), "scafstartimap", 32);
  			StringCopy(&(uParam0->f_8[1 /*8*/]), "scafendimap", 32);
  			*uParam0 = { -1088.6f, -1650.6f, 6.4f };
  			break;
  		
  		case 80:
  			uParam0->f_3 = 1;
  			StringCopy(&(uParam0->f_8[0 /*8*/]), "", 32);
  			StringCopy(&(uParam0->f_8[1 /*8*/]), "chop_props", 32);
  			*uParam0 = { -13.83f, -1455.45f, 31.81f };
  			break;
  		
  		case 113:
  			uParam0->f_3 = 1;
  			StringCopy(&(uParam0->f_8[0 /*8*/]), "", 32);
  			StringCopy(&(uParam0->f_8[1 /*8*/]), "AP1_04_TriAf01", 32);
  			*uParam0 = { -1277.629f, -2030.913f, 1.2823f };
  			break;
  		
  		case 114:
  			uParam0->f_3 = 1;
  			StringCopy(&(uParam0->f_8[0 /*8*/]), "", 32);
  			StringCopy(&(uParam0->f_8[1 /*8*/]), "CS2_06_TriAf02", 32);
  			*uParam0 = { 2384.969f, 4277.583f, 30.379f };
  			break;
  		
  		case 115:
  			uParam0->f_3 = 1;
  			StringCopy(&(uParam0->f_8[0 /*8*/]), "", 32);
  			StringCopy(&(uParam0->f_8[1 /*8*/]), "CS4_04_TriAf03", 32);
  			*uParam0 = { 1577.881f, 3836.107f, 30.7717f };
  			break;
  		
  		case 87:
  			uParam0->f_3 = 1;
  			StringCopy(&(uParam0->f_8[0 /*8*/]), "DT1_21_prop_lift_on", 32);
  			StringCopy(&(uParam0->f_8[1 /*8*/]), "", 32);
  			*uParam0 = { -180.5771f, -1016.928f, 28.2893f };
  			break;
  		
  		case 88:
  			uParam0->f_3 = 1;
  			StringCopy(&(uParam0->f_8[0 /*8*/]), "jewel2fake", 32);
  			StringCopy(&(uParam0->f_8[1 /*8*/]), "post_hiest_unload", 32);
  			StringCopy(&(uParam0->f_8[2 /*8*/]), "bh1_16_refurb", 32);
  			*uParam0 = { -630.4205f, -236.7843f, 37.057f };
  			uParam0->f_79 = { (-623.6868f - 11f), (-231.935f - 11f), (40.30703f - 3.25f) };
  			uParam0->f_82 = { (-623.6868f + 11f), (-231.935f + 11f), (40.30703f + 3.25f) };
  			break;
  		
  		case 89:
  			uParam0->f_3 = 1;
  			StringCopy(&(uParam0->f_8[0 /*8*/]), "bh1_16_doors_shut", 32);
  			StringCopy(&(uParam0->f_8[1 /*8*/]), "refit_unload", 32);
  			*uParam0 = { -583.1606f, -282.3967f, 35.394f };
  			break;
  		
  		case 90:
  			uParam0->f_3 = 1;
  			StringCopy(&(uParam0->f_8[0 /*8*/]), "v_tunnel_hole_swap", 32);
  			StringCopy(&(uParam0->f_8[1 /*8*/]), "v_tunnel_hole", 32);
  			*uParam0 = { -14.651f, -604.3639f, 25.1823f };
  			break;
  		
  		case 91:
  			uParam0->f_3 = 1;
  			StringCopy(&(uParam0->f_8[0 /*8*/]), "cs5_4_trains", 32);
  			StringCopy(&(uParam0->f_8[1 /*8*/]), "", 32);
  			*uParam0 = { 2773.61f, 2835.327f, 35.1903f };
  			break;
  		
  		case 94:
  			uParam0->f_3 = 1;
  			StringCopy(&(uParam0->f_8[0 /*8*/]), "airfield", 32);
  			StringCopy(&(uParam0->f_8[1 /*8*/]), "", 32);
  			*uParam0 = { 1743.682f, 3286.251f, 40.0875f };
  			break;
  		
  		case 95:
  			uParam0->f_3 = 1;
  			StringCopy(&(uParam0->f_8[0 /*8*/]), "", 32);
  			StringCopy(&(uParam0->f_8[1 /*8*/]), "", 32);
  			StringCopy(&(uParam0->f_8[2 /*8*/]), "REMOVE_ALL_STATES", 32);
  			uParam0->f_33 = 1;
  			*uParam0 = { 1222.9f, 1877.9f, 79.9f };
  			uParam0->f_58 = { 1206.8f, 1803f, 43.9f };
  			uParam0->f_61 = { 1329f, 2060.4f, 143.9f };
  			uParam0->f_64[0] = 0;
  			uParam0->f_64[1] = 1;
  			uParam0->f_64[2] = 0;
  			break;
  		
  		case 104:
  			uParam0->f_3 = 1;
  			StringCopy(&(uParam0->f_8[0 /*8*/]), "SC1_01_OldBill", 32);
  			StringCopy(&(uParam0->f_8[1 /*8*/]), "SC1_01_NewBill", 32);
  			*uParam0 = { -351f, -1324f, 44.02f };
  			break;
  		
  		case 103:
  			uParam0->f_3 = 1;
  			StringCopy(&(uParam0->f_8[0 /*8*/]), "DT1_17_OldBill", 32);
  			StringCopy(&(uParam0->f_8[1 /*8*/]), "DT1_17_NewBill", 32);
  			*uParam0 = { 391.81f, -962.71f, 41.97f };
  			break;
  		
  		case 102:
  			uParam0->f_3 = 1;
  			StringCopy(&(uParam0->f_8[0 /*8*/]), "SC1_14_OldBill", 32);
  			StringCopy(&(uParam0->f_8[1 /*8*/]), "SC1_14_NewBill", 32);
  			*uParam0 = { 424.2f, -1944.31f, 33.09f };
  			break;
  		
  		case 92:
  			uParam0->f_3 = 1;
  			StringCopy(&(uParam0->f_8[0 /*8*/]), "ld_rail_01_track", 32);
  			StringCopy(&(uParam0->f_8[1 /*8*/]), "", 32);
  			*uParam0 = { 2626.374f, 2949.869f, 39.1409f };
  			break;
  		
  		case 93:
  			uParam0->f_3 = 1;
  			StringCopy(&(uParam0->f_8[0 /*8*/]), "ld_rail_02_track", 32);
  			StringCopy(&(uParam0->f_8[1 /*8*/]), "", 32);
  			*uParam0 = { 2626.374f, 2949.869f, 39.1409f };
  			break;
  		
  		case 118:
  			uParam0->f_3 = 2;
  			StringCopy(&(uParam0->f_8[0 /*8*/]), "V_Michael_M_items", 32);
  			StringCopy(&(uParam0->f_8[1 /*8*/]), "V_Michael_M_moved", 32);
  			StringCopy(&(uParam0->f_42), "V_Michael", 32);
  			*uParam0 = { -811.2679f, 179.3344f, 75.7408f };
  			break;
  		
  		case 116:
  			uParam0->f_3 = 2;
  			StringCopy(&(uParam0->f_8[0 /*8*/]), "V_Michael_D_items", 32);
  			StringCopy(&(uParam0->f_8[1 /*8*/]), "V_Michael_D_Moved", 32);
  			StringCopy(&(uParam0->f_42), "V_Michael", 32);
  			*uParam0 = { -802.0311f, 172.9131f, 75.7408f };
  			break;
  		
  		case 117:
  			uParam0->f_3 = 2;
  			StringCopy(&(uParam0->f_8[0 /*8*/]), "V_Michael_S_items", 32);
  			StringCopy(&(uParam0->f_8[1 /*8*/]), "V_Michael_S_items_swap", 32);
  			StringCopy(&(uParam0->f_42), "V_Michael", 32);
  			*uParam0 = { -808.033f, 172.1309f, 75.7406f };
  			break;
  		
  		case 119:
  			uParam0->f_3 = 2;
  			StringCopy(&(uParam0->f_8[0 /*8*/]), "V_Michael_L_Items", 32);
  			StringCopy(&(uParam0->f_8[1 /*8*/]), "V_Michael_L_Moved", 32);
  			StringCopy(&(uParam0->f_42), "V_Michael", 32);
  			*uParam0 = { -808.033f, 172.1309f, 75.7406f };
  			break;
  		
  		case 120:
  			uParam0->f_3 = 2;
  			StringCopy(&(uParam0->f_8[0 /*8*/]), "", 32);
  			StringCopy(&(uParam0->f_8[1 /*8*/]), "V_Michael_M_items_swap", 32);
  			StringCopy(&(uParam0->f_42), "V_Michael", 32);
  			*uParam0 = { -808.033f, 172.1309f, 75.7406f };
  			break;
  		
  		case 122:
  			uParam0->f_3 = 2;
  			StringCopy(&(uParam0->f_8[0 /*8*/]), "", 32);
  			StringCopy(&(uParam0->f_8[1 /*8*/]), "V_Michael_FameShame", 32);
  			StringCopy(&(uParam0->f_42), "V_Michael", 32);
  			*uParam0 = { -802.0311f, 172.9131f, 75.7408f };
  			break;
  		
  		case 121:
  			uParam0->f_3 = 2;
  			StringCopy(&(uParam0->f_8[0 /*8*/]), "", 32);
  			StringCopy(&(uParam0->f_8[1 /*8*/]), "V_Michael_JewelHeist", 32);
  			StringCopy(&(uParam0->f_42), "V_Michael", 32);
  			*uParam0 = { -813.3f, 177.5f, 75.76f };
  			break;
  		
  		case 123:
  			uParam0->f_3 = 2;
  			StringCopy(&(uParam0->f_8[0 /*8*/]), "", 32);
  			StringCopy(&(uParam0->f_8[1 /*8*/]), "Michael_premier", 32);
  			StringCopy(&(uParam0->f_42), "V_Michael", 32);
  			*uParam0 = { -813.3f, 177.5f, 75.76f };
  			break;
  		
  		case 124:
  			uParam0->f_3 = 2;
  			StringCopy(&(uParam0->f_8[0 /*8*/]), "", 32);
  			StringCopy(&(uParam0->f_8[1 /*8*/]), "V_Michael_plane_ticket", 32);
  			StringCopy(&(uParam0->f_42), "V_Michael", 32);
  			*uParam0 = { -813.3f, 177.5f, 75.76f };
  			break;
  		
  		case 170:
  			uParam0->f_3 = 2;
  			StringCopy(&(uParam0->f_8[0 /*8*/]), "", 32);
  			StringCopy(&(uParam0->f_8[1 /*8*/]), "burgershot_yoga", 32);
  			StringCopy(&(uParam0->f_42), "V_Michael", 32);
  			*uParam0 = { -813.3f, 177.5f, 75.76f };
  			break;
  		
  		case 171:
  			uParam0->f_3 = 2;
  			StringCopy(&(uParam0->f_8[0 /*8*/]), "", 32);
  			StringCopy(&(uParam0->f_8[1 /*8*/]), "V_Michael_Scuba", 32);
  			StringCopy(&(uParam0->f_42), "V_Michael_Garage", 32);
  			*uParam0 = { -810.5301f, 187.7868f, 71.4786f };
  			break;
  		
  		case 125:
  			uParam0->f_3 = 2;
  			StringCopy(&(uParam0->f_8[0 /*8*/]), "V_Michael_bed_tidy", 32);
  			StringCopy(&(uParam0->f_8[1 /*8*/]), "V_Michael_bed_Messy", 32);
  			StringCopy(&(uParam0->f_42), "V_Michael", 32);
  			*uParam0 = { -811.2679f, 179.3344f, 75.7408f };
  			break;
  		
  		case 164:
  			uParam0->f_3 = 2;
  			StringCopy(&(uParam0->f_8[0 /*8*/]), "", 32);
  			StringCopy(&(uParam0->f_8[1 /*8*/]), "Jewel_Gasmasks", 32);
  			StringCopy(&(uParam0->f_42), "V_Sweat", 32);
  			*uParam0 = { 707.2563f, -965.147f, 29.4179f };
  			break;
  		
  		case 165:
  			uParam0->f_3 = 2;
  			StringCopy(&(uParam0->f_8[0 /*8*/]), "", 32);
  			StringCopy(&(uParam0->f_8[1 /*8*/]), "V_53_Agency _Overalls", 32);
  			StringCopy(&(uParam0->f_42), "V_Sweat", 32);
  			*uParam0 = { 707.2563f, -965.147f, 29.4179f };
  			break;
  		
  		case 166:
  			uParam0->f_3 = 2;
  			StringCopy(&(uParam0->f_8[0 /*8*/]), "", 32);
  			StringCopy(&(uParam0->f_8[1 /*8*/]), "V_53_Agency_Blueprint", 32);
  			StringCopy(&(uParam0->f_42), "V_Sweat", 32);
  			*uParam0 = { 707.2563f, -965.147f, 29.4179f };
  			break;
  		
  		case 167:
  			uParam0->f_3 = 2;
  			StringCopy(&(uParam0->f_8[0 /*8*/]), "", 32);
  			StringCopy(&(uParam0->f_8[1 /*8*/]), "V_35_KitBag", 32);
  			StringCopy(&(uParam0->f_42), "V_Sweat", 32);
  			*uParam0 = { 707.2563f, -965.147f, 29.4179f };
  			break;
  		
  		case 168:
  			uParam0->f_3 = 2;
  			StringCopy(&(uParam0->f_8[0 /*8*/]), "", 32);
  			StringCopy(&(uParam0->f_8[1 /*8*/]), "V_35_Body_Armour", 32);
  			StringCopy(&(uParam0->f_42), "V_Sweat", 32);
  			*uParam0 = { 707.2563f, -965.147f, 29.4179f };
  			break;
  		
  		case 169:
  			uParam0->f_3 = 2;
  			StringCopy(&(uParam0->f_8[0 /*8*/]), "", 32);
  			StringCopy(&(uParam0->f_8[1 /*8*/]), "V_35_Fireman", 32);
  			StringCopy(&(uParam0->f_42), "V_Sweat", 32);
  			*uParam0 = { 707.2563f, -965.147f, 29.4179f };
  			break;
  		
  		case 126:
  			uParam0->f_3 = 2;
  			StringCopy(&(uParam0->f_8[0 /*8*/]), "", 32);
  			StringCopy(&(uParam0->f_8[1 /*8*/]), "V_26_Trevor_Helmet1", 32);
  			StringCopy(&(uParam0->f_42), "V_Trailer", 32);
  			*uParam0 = { 1973.805f, 3818.555f, 32.4363f };
  			break;
  		
  		case 127:
  			uParam0->f_3 = 2;
  			StringCopy(&(uParam0->f_8[0 /*8*/]), "", 32);
  			StringCopy(&(uParam0->f_8[1 /*8*/]), "V_26_Trevor_Helmet3", 32);
  			StringCopy(&(uParam0->f_42), "V_TrailerTRASH", 32);
  			*uParam0 = { 1973.805f, 3818.555f, 32.4363f };
  			break;
  		
  		case 128:
  			uParam0->f_3 = 2;
  			StringCopy(&(uParam0->f_8[0 /*8*/]), "", 32);
  			StringCopy(&(uParam0->f_8[1 /*8*/]), "V_26_Trevor_Helmet2", 32);
  			StringCopy(&(uParam0->f_42), "V_TrailerTidy", 32);
  			*uParam0 = { 1973.805f, 3818.555f, 32.4363f };
  			break;
  		
  		case 129:
  			uParam0->f_3 = 2;
  			StringCopy(&(uParam0->f_8[0 /*8*/]), "", 32);
  			StringCopy(&(uParam0->f_8[1 /*8*/]), "V_24_Trevor_Briefcase1", 32);
  			StringCopy(&(uParam0->f_42), "V_Trailer", 32);
  			*uParam0 = { 1973.805f, 3818.555f, 32.4363f };
  			break;
  		
  		case 130:
  			uParam0->f_3 = 2;
  			StringCopy(&(uParam0->f_8[0 /*8*/]), "", 32);
  			StringCopy(&(uParam0->f_8[1 /*8*/]), "V_24_Trevor_Briefcase3", 32);
  			StringCopy(&(uParam0->f_42), "V_TrailerTRASH", 32);
  			*uParam0 = { 1973.805f, 3818.555f, 32.4363f };
  			break;
  		
  		case 131:
  			uParam0->f_3 = 2;
  			StringCopy(&(uParam0->f_8[0 /*8*/]), "", 32);
  			StringCopy(&(uParam0->f_8[1 /*8*/]), "V_24_Trevor_Briefcase2", 32);
  			StringCopy(&(uParam0->f_42), "V_TrailerTidy", 32);
  			*uParam0 = { 1973.805f, 3818.555f, 32.4363f };
  			break;
  		
  		case 132:
  			uParam0->f_3 = 2;
  			StringCopy(&(uParam0->f_8[0 /*8*/]), "", 32);
  			StringCopy(&(uParam0->f_8[1 /*8*/]), "V_26_Michael_Stay1", 32);
  			StringCopy(&(uParam0->f_42), "V_Trailer", 32);
  			*uParam0 = { 1973.805f, 3818.555f, 32.4363f };
  			break;
  		
  		case 133:
  			uParam0->f_3 = 2;
  			StringCopy(&(uParam0->f_8[0 /*8*/]), "", 32);
  			StringCopy(&(uParam0->f_8[1 /*8*/]), "V_26_Michael_Stay3", 32);
  			StringCopy(&(uParam0->f_42), "V_TrailerTRASH", 32);
  			*uParam0 = { 1973.805f, 3818.555f, 32.4363f };
  			break;
  		
  		case 134:
  			uParam0->f_3 = 2;
  			StringCopy(&(uParam0->f_8[0 /*8*/]), "", 32);
  			StringCopy(&(uParam0->f_8[1 /*8*/]), "V_26_Michael_Stay2", 32);
  			StringCopy(&(uParam0->f_42), "V_TrailerTidy", 32);
  			*uParam0 = { 1973.805f, 3818.555f, 32.4363f };
  			break;
  		
  		case 179:
  			uParam0->f_3 = 2;
  			StringCopy(&(uParam0->f_8[0 /*8*/]), "shutter_open", 32);
  			StringCopy(&(uParam0->f_8[1 /*8*/]), "shutter_closed", 32);
  			StringCopy(&(uParam0->f_42), "v_carshowroom", 32);
  			*uParam0 = { -30.8793f, -1088.336f, 25.4221f };
  			uParam0->f_68 = { -29.3f, -1086.35f, 25.57f };
  			uParam0->f_71 = { 5.5f, 3f, 2f };
  			uParam0->f_74 = -10f;
  			uParam0->f_75[0] = 0;
  			uParam0->f_75[1] = 1;
  			break;
  		
  		case 174:
  			uParam0->f_3 = 2;
  			StringCopy(&(uParam0->f_8[0 /*8*/]), "csr_beforeMission", 32);
  			StringCopy(&(uParam0->f_8[1 /*8*/]), "csr_afterMissionA", 32);
  			StringCopy(&(uParam0->f_8[2 /*8*/]), "csr_afterMissionB", 32);
  			StringCopy(&(uParam0->f_50), "csr_inMission", 32);
  			uParam0->f_33 = 0;
  			StringCopy(&(uParam0->f_42), "v_carshowroom", 32);
  			*uParam0 = { -59.7936f, -1098.784f, 27.2612f };
  			break;
  		
  		case 175:
  			uParam0->f_3 = 1;
  			StringCopy(&(uParam0->f_8[0 /*8*/]), "", 32);
  			StringCopy(&(uParam0->f_8[1 /*8*/]), "", 32);
  			StringCopy(&(uParam0->f_8[2 /*8*/]), "", 32);
  			StringCopy(&(uParam0->f_42), "v_carshowroom", 32);
  			*uParam0 = { -49.21f, -1090.28f, 25.42f };
  			uParam0->f_68 = { -49.21f, -1090.28f, 25.42f };
  			uParam0->f_71 = { 2.5f, 3f, 3f };
  			uParam0->f_74 = 0f;
  			uParam0->f_75[0] = 0;
  			uParam0->f_75[1] = 1;
  			uParam0->f_75[2] = 0;
  			break;
  		
  		case 176:
  			uParam0->f_3 = 1;
  			StringCopy(&(uParam0->f_8[0 /*8*/]), "", 32);
  			StringCopy(&(uParam0->f_8[1 /*8*/]), "", 32);
  			StringCopy(&(uParam0->f_8[2 /*8*/]), "", 32);
  			StringCopy(&(uParam0->f_42), "v_carshowroom", 32);
  			*uParam0 = { -49.28f, -1092.66f, 25.42f };
  			uParam0->f_68 = { -49.28f, -1092.66f, 25.42f };
  			uParam0->f_71 = { 3f, 1f, 3f };
  			uParam0->f_74 = 0f;
  			uParam0->f_75[0] = 0;
  			uParam0->f_75[1] = 1;
  			uParam0->f_75[2] = 0;
  			break;
  		
  		case 177:
  			uParam0->f_3 = 1;
  			StringCopy(&(uParam0->f_8[0 /*8*/]), "", 32);
  			StringCopy(&(uParam0->f_8[1 /*8*/]), "", 32);
  			StringCopy(&(uParam0->f_8[2 /*8*/]), "", 32);
  			StringCopy(&(uParam0->f_42), "v_carshowroom", 32);
  			*uParam0 = { -53.07f, -1096.73f, 25.5f };
  			uParam0->f_68 = { -53.07f, -1096.73f, 25.5f };
  			uParam0->f_71 = { 1f, 3f, 2f };
  			uParam0->f_74 = -45f;
  			uParam0->f_75[0] = 0;
  			uParam0->f_75[1] = 1;
  			uParam0->f_75[2] = 0;
  			break;
  		
  		case 178:
  			uParam0->f_3 = 1;
  			StringCopy(&(uParam0->f_8[0 /*8*/]), "", 32);
  			StringCopy(&(uParam0->f_8[1 /*8*/]), "carshowroom_broken", 32);
  			StringCopy(&(uParam0->f_8[2 /*8*/]), "carshowroom_boarded", 32);
  			uParam0->f_33 = 0;
  			*uParam0 = { -59.7936f, -1098.784f, 27.2612f };
  			break;
  		
  		case 173:
  			uParam0->f_3 = 1;
  			StringCopy(&(uParam0->f_8[0 /*8*/]), "shr_int", 32);
  			StringCopy(&(uParam0->f_8[1 /*8*/]), "fakeint", 32);
  			uParam0->f_33 = 0;
  			*uParam0 = { -59.7936f, -1098.784f, 27.2612f };
  			break;
  		
  		case 180:
  			uParam0->f_3 = 1;
  			StringCopy(&(uParam0->f_8[0 /*8*/]), "DT1_03_Shutter", 32);
  			StringCopy(&(uParam0->f_8[1 /*8*/]), "", 32);
  			StringCopy(&(uParam0->f_42), "", 32);
  			*uParam0 = { 23.9346f, -669.7552f, 30.8853f };
  			break;
  		
  		case 181:
  			uParam0->f_3 = 2;
  			StringCopy(&(uParam0->f_8[0 /*8*/]), "Hospitaldoorsanim", 32);
  			StringCopy(&(uParam0->f_8[1 /*8*/]), "", 32);
  			StringCopy(&(uParam0->f_8[2 /*8*/]), "Hospitaldoorsfixed", 32);
  			StringCopy(&(uParam0->f_42), "v_hospital", 32);
  			uParam0->f_33 = 0;
  			*uParam0 = { 300.9423f, -586.1784f, 42.2919f };
  			break;
  		
  		case 135:
  			uParam0->f_3 = 2;
  			StringCopy(&(uParam0->f_8[0 /*8*/]), "swap_clean_apt", 32);
  			StringCopy(&(uParam0->f_8[1 /*8*/]), "layer_mess_A", 32);
  			StringCopy(&(uParam0->f_42), "v_trevors", 32);
  			*uParam0 = { -1157.129f, -1523.028f, 9.6327f };
  			break;
  		
  		case 136:
  			uParam0->f_3 = 2;
  			StringCopy(&(uParam0->f_8[0 /*8*/]), "", 32);
  			StringCopy(&(uParam0->f_8[1 /*8*/]), "layer_mess_B", 32);
  			StringCopy(&(uParam0->f_8[2 /*8*/]), "", 32);
  			StringCopy(&(uParam0->f_42), "v_trevors", 32);
  			*uParam0 = { -1157.129f, -1523.028f, 9.6327f };
  			break;
  		
  		case 137:
  			uParam0->f_3 = 2;
  			StringCopy(&(uParam0->f_8[0 /*8*/]), "", 32);
  			StringCopy(&(uParam0->f_8[1 /*8*/]), "layer_mess_C", 32);
  			StringCopy(&(uParam0->f_8[2 /*8*/]), "", 32);
  			StringCopy(&(uParam0->f_42), "v_trevors", 32);
  			*uParam0 = { -1157.129f, -1523.028f, 9.6327f };
  			break;
  		
  		case 138:
  			uParam0->f_3 = 2;
  			StringCopy(&(uParam0->f_8[0 /*8*/]), "", 32);
  			StringCopy(&(uParam0->f_8[1 /*8*/]), "layer_sextoys_a", 32);
  			StringCopy(&(uParam0->f_8[2 /*8*/]), "", 32);
  			StringCopy(&(uParam0->f_42), "v_trevors", 32);
  			*uParam0 = { -1157.129f, -1523.028f, 9.6327f };
  			break;
  		
  		case 139:
  			uParam0->f_3 = 2;
  			StringCopy(&(uParam0->f_8[0 /*8*/]), "", 32);
  			StringCopy(&(uParam0->f_8[1 /*8*/]), "layer_wade_shit", 32);
  			StringCopy(&(uParam0->f_42), "v_trevors", 32);
  			*uParam0 = { -1157.129f, -1523.028f, 9.6327f };
  			break;
  		
  		case 140:
  			uParam0->f_3 = 2;
  			StringCopy(&(uParam0->f_8[0 /*8*/]), "", 32);
  			StringCopy(&(uParam0->f_8[1 /*8*/]), "swap_wade_sofa_A", 32);
  			StringCopy(&(uParam0->f_42), "v_trevors", 32);
  			*uParam0 = { -1157.129f, -1523.028f, 9.6327f };
  			break;
  		
  		case 141:
  			uParam0->f_3 = 2;
  			StringCopy(&(uParam0->f_8[0 /*8*/]), "layer_debra_pic", 32);
  			StringCopy(&(uParam0->f_8[1 /*8*/]), "", 32);
  			StringCopy(&(uParam0->f_42), "v_trevors", 32);
  			*uParam0 = { -1157.129f, -1523.028f, 9.6327f };
  			break;
  		
  		case 142:
  			uParam0->f_3 = 2;
  			StringCopy(&(uParam0->f_8[0 /*8*/]), "", 32);
  			StringCopy(&(uParam0->f_8[1 /*8*/]), "layer_torture", 32);
  			StringCopy(&(uParam0->f_42), "v_trevors", 32);
  			*uParam0 = { -1157.129f, -1523.028f, 9.6327f };
  			break;
  		
  		case 143:
  			uParam0->f_3 = 2;
  			StringCopy(&(uParam0->f_8[0 /*8*/]), "swap_sofa_A", 32);
  			StringCopy(&(uParam0->f_8[1 /*8*/]), "swap_sofa_B", 32);
  			StringCopy(&(uParam0->f_42), "v_trevors", 32);
  			*uParam0 = { -1157.129f, -1523.028f, 9.6327f };
  			break;
  		
  		case 144:
  			uParam0->f_3 = 2;
  			StringCopy(&(uParam0->f_8[0 /*8*/]), "", 32);
  			StringCopy(&(uParam0->f_8[1 /*8*/]), "layer_whiskey", 32);
  			StringCopy(&(uParam0->f_42), "v_trevors", 32);
  			*uParam0 = { -1157.129f, -1523.028f, 9.6327f };
  			break;
  		
  		case 145:
  			uParam0->f_3 = 2;
  			StringCopy(&(uParam0->f_8[0 /*8*/]), "swap_mrJam_A", 32);
  			StringCopy(&(uParam0->f_8[1 /*8*/]), "swap_mrJam_B", 32);
  			StringCopy(&(uParam0->f_8[2 /*8*/]), "", 32);
  			StringCopy(&(uParam0->f_42), "v_trevors", 32);
  			*uParam0 = { -1157.129f, -1523.028f, 9.6327f };
  			break;
  		
  		case 146:
  			uParam0->f_3 = 2;
  			StringCopy(&(uParam0->f_8[0 /*8*/]), "", 32);
  			StringCopy(&(uParam0->f_8[1 /*8*/]), "swap_mrJam_C", 32);
  			StringCopy(&(uParam0->f_42), "v_trevors", 32);
  			*uParam0 = { -1157.129f, -1523.028f, 9.6327f };
  			break;
  		
  		case 147:
  			uParam0->f_3 = 1;
  			StringCopy(&(uParam0->f_8[0 /*8*/]), "vb_30_emissive", 32);
  			StringCopy(&(uParam0->f_8[1 /*8*/]), "vb_30_murder", 32);
  			uParam0->f_33 = 0;
  			*uParam0 = { -1150.039f, -1521.761f, 9.6331f };
  			break;
  		
  		case 148:
  			uParam0->f_3 = 1;
  			StringCopy(&(uParam0->f_8[0 /*8*/]), "", 32);
  			StringCopy(&(uParam0->f_8[1 /*8*/]), "vb_30_crimetape", 32);
  			uParam0->f_33 = 0;
  			*uParam0 = { -1150.039f, -1521.761f, 9.6331f };
  			break;
  		
  		case 149:
  			uParam0->f_3 = 1;
  			StringCopy(&(uParam0->f_8[0 /*8*/]), "sheriff_cap", 32);
  			StringCopy(&(uParam0->f_8[1 /*8*/]), "", 32);
  			uParam0->f_33 = 0;
  			*uParam0 = { 1856.029f, 3682.998f, 33.2675f };
  			break;
  		
  		case 150:
  			uParam0->f_3 = 1;
  			StringCopy(&(uParam0->f_8[0 /*8*/]), "CS1_16_Sheriff_Cap", 32);
  			StringCopy(&(uParam0->f_8[1 /*8*/]), "", 32);
  			uParam0->f_33 = 0;
  			*uParam0 = { -440.5073f, 6018.766f, 30.49f };
  			break;
  		
  		case 151:
  			uParam0->f_3 = 1;
  			StringCopy(&(uParam0->f_8[0 /*8*/]), "", 32);
  			StringCopy(&(uParam0->f_8[1 /*8*/]), "ufo", 32);
  			uParam0->f_33 = 0;
  			*uParam0 = { 487.31f, 5588.386f, 793.0532f };
  			break;
  		
  		case 152:
  			uParam0->f_3 = 1;
  			StringCopy(&(uParam0->f_8[0 /*8*/]), "", 32);
  			StringCopy(&(uParam0->f_8[1 /*8*/]), "ufo_eye", 32);
  			uParam0->f_33 = 0;
  			*uParam0 = { 487.31f, 5588.386f, 793.0532f };
  			break;
  		
  		case 153:
  			uParam0->f_3 = 2;
  			StringCopy(&(uParam0->f_8[0 /*8*/]), "V_57_FranklinStuff", 32);
  			StringCopy(&(uParam0->f_8[1 /*8*/]), "V_57_Franklin_LEFT", 32);
  			StringCopy(&(uParam0->f_42), "v_franklins", 32);
  			*uParam0 = { -13.9623f, -1440.614f, 30.1015f };
  			break;
  		
  		case 154:
  			uParam0->f_3 = 2;
  			StringCopy(&(uParam0->f_8[0 /*8*/]), "", 32);
  			StringCopy(&(uParam0->f_8[1 /*8*/]), "V_57_GangBandana", 32);
  			StringCopy(&(uParam0->f_42), "v_franklins", 32);
  			*uParam0 = { -13.9623f, -1440.614f, 30.1015f };
  			break;
  		
  		case 155:
  			uParam0->f_3 = 2;
  			StringCopy(&(uParam0->f_8[0 /*8*/]), "", 32);
  			StringCopy(&(uParam0->f_8[1 /*8*/]), "V_57_Safari", 32);
  			StringCopy(&(uParam0->f_42), "v_franklins", 32);
  			*uParam0 = { -13.9623f, -1440.614f, 30.1015f };
  			break;
  		
  		case 172:
  			uParam0->f_3 = 2;
  			StringCopy(&(uParam0->f_8[0 /*8*/]), "", 32);
  			StringCopy(&(uParam0->f_8[1 /*8*/]), "V_19_Trevor_Mess", 32);
  			StringCopy(&(uParam0->f_42), "v_strip3", 32);
  			*uParam0 = { 96.4811f, -1291.294f, 28.2688f };
  			break;
  		
  		case 182:
  			uParam0->f_3 = 1;
  			StringCopy(&(uParam0->f_8[0 /*8*/]), "", 32);
  			StringCopy(&(uParam0->f_8[1 /*8*/]), "", 32);
  			StringCopy(&(uParam0->f_8[2 /*8*/]), "", 32);
  			uParam0->f_33 = 0;
  			*uParam0 = { 139.5795f, -3092.962f, 8.64631f };
  			uParam0->f_79 = { Vector(8.64631f, -3092.962f, 139.5795f) - Vector(4.1875f, 24f, 33.3125f) };
  			uParam0->f_82 = { Vector(8.64631f, -3092.962f, 139.5795f) + Vector(4.1875f, 24f, 33.3125f) };
  			uParam0->f_85 = { Vector(8.64631f, -3092.962f, 139.5795f) - Vector(4.1875f, 24f, 33.3125f) };
  			uParam0->f_88 = { Vector(8.64631f, -3092.962f, 139.5795f) + Vector(4.1875f, 24f, 33.3125f) };
  			uParam0->f_91[0] = 0;
  			uParam0->f_91[1] = 1;
  			uParam0->f_91[2] = 1;
  			break;
  		
  		case 183:
  			uParam0->f_3 = 1;
  			StringCopy(&(uParam0->f_8[0 /*8*/]), "", 32);
  			StringCopy(&(uParam0->f_8[1 /*8*/]), "", 32);
  			StringCopy(&(uParam0->f_8[2 /*8*/]), "", 32);
  			uParam0->f_33 = 0;
  			*uParam0 = { 203.7784f, -3131.767f, 7.041344f };
  			uParam0->f_79 = { Vector(7.041344f, -3131.767f, 203.7784f) - Vector(2.5625f, 2.75f, 4.875f) };
  			uParam0->f_82 = { Vector(7.041344f, -3131.767f, 203.7784f) + Vector(2.5625f, 2.75f, 4.875f) };
  			break;
  		
  		case 184:
  			uParam0->f_3 = 1;
  			StringCopy(&(uParam0->f_8[0 /*8*/]), "", 32);
  			StringCopy(&(uParam0->f_8[1 /*8*/]), "", 32);
  			StringCopy(&(uParam0->f_8[2 /*8*/]), "", 32);
  			uParam0->f_33 = 0;
  			*uParam0 = { 144.7706f, -2982.659f, 7.952507f };
  			uParam0->f_79 = { Vector(7.952507f, -2982.659f, 144.7706f) - Vector(3.125f, 3.4375f, 5.3125f) };
  			uParam0->f_82 = { Vector(7.952507f, -2982.659f, 144.7706f) + Vector(3.125f, 3.4375f, 5.3125f) };
  			break;
  		
  		case 185:
  			uParam0->f_3 = 1;
  			StringCopy(&(uParam0->f_8[0 /*8*/]), "", 32);
  			StringCopy(&(uParam0->f_8[1 /*8*/]), "", 32);
  			StringCopy(&(uParam0->f_8[2 /*8*/]), "", 32);
  			uParam0->f_33 = 1;
  			*uParam0 = { -1154.965f, -1520.983f, 9.132731f };
  			uParam0->f_79 = { -1154.965f, -1520.983f, 9.132731f };
  			uParam0->f_82 = { -1158.965f, -1524.983f, 11.63273f };
  			break;
  		
  		case 187:
  			uParam0->f_3 = 1;
  			StringCopy(&(uParam0->f_8[0 /*8*/]), "", 32);
  			StringCopy(&(uParam0->f_8[1 /*8*/]), "", 32);
  			StringCopy(&(uParam0->f_8[2 /*8*/]), "", 32);
  			uParam0->f_33 = 1;
  			*uParam0 = { -1052.204f, 371.9537f, 67.914f };
  			uParam0->f_79 = { -1052.204f, 371.9537f, 67.914f };
  			uParam0->f_82 = { -1048.064f, 368.0221f, 70.9128f };
  			break;
  		
  		case 186:
  			uParam0->f_3 = 1;
  			StringCopy(&(uParam0->f_8[0 /*8*/]), "", 32);
  			StringCopy(&(uParam0->f_8[1 /*8*/]), "", 32);
  			StringCopy(&(uParam0->f_8[2 /*8*/]), "", 32);
  			uParam0->f_33 = 1;
  			*uParam0 = { 1954.984f, 3792.991f, 30.3086f };
  			uParam0->f_79 = { 1954.984f, 3792.991f, 30.3086f };
  			uParam0->f_82 = { 1983.45f, 3830.78f, 36.2726f };
  			break;
  		
  		case 188:
  			uParam0->f_3 = 1;
  			StringCopy(&(uParam0->f_8[0 /*8*/]), "", 32);
  			StringCopy(&(uParam0->f_8[1 /*8*/]), "", 32);
  			StringCopy(&(uParam0->f_8[2 /*8*/]), "", 32);
  			uParam0->f_33 = 1;
  			*uParam0 = { -1122.202f, 48.5724f, 51.4652f };
  			uParam0->f_79 = { -1122.202f, 48.5724f, 51.4652f };
  			uParam0->f_82 = { -1076.233f, 92.1041f, 60.0617f };
  			break;
  		
  		case 81:
  			uParam0->f_3 = 1;
  			StringCopy(&(uParam0->f_8[0 /*8*/]), "", 32);
  			StringCopy(&(uParam0->f_8[1 /*8*/]), "KorizTempWalls", 32);
  			StringCopy(&(uParam0->f_8[2 /*8*/]), "", 32);
  			uParam0->f_33 = 0;
  			*uParam0 = { -2199.138f, 223.4648f, 181.1118f };
  			break;
  		
  		case 82:
  			uParam0->f_3 = 1;
  			StringCopy(&(uParam0->f_8[0 /*8*/]), "", 32);
  			StringCopy(&(uParam0->f_8[1 /*8*/]), "mic3_chopper_debris", 32);
  			StringCopy(&(uParam0->f_8[2 /*8*/]), "", 32);
  			uParam0->f_33 = 0;
  			*uParam0 = { -2242.785f, 263.4779f, 173.6154f };
  			break;
  		
  		case 83:
  			uParam0->f_3 = 1;
  			StringCopy(&(uParam0->f_8[0 /*8*/]), "chemgrill_grp1", 32);
  			StringCopy(&(uParam0->f_8[1 /*8*/]), "", 32);
  			*uParam0 = { 3832.9f, 3665.5f, -23.4f };
  			break;
  		
  		case 84:
  			uParam0->f_3 = 1;
  			StringCopy(&(uParam0->f_8[0 /*8*/]), "", 32);
  			StringCopy(&(uParam0->f_8[1 /*8*/]), "Plane_crash_trench", 32);
  			StringCopy(&(uParam0->f_8[2 /*8*/]), "", 32);
  			uParam0->f_33 = 0;
  			*uParam0 = { 2814.7f, 4758.5f, 47.9f };
  			break;
  		
  		case 85:
  			uParam0->f_3 = 1;
  			StringCopy(&(uParam0->f_8[0 /*8*/]), "golfflags", 32);
  			StringCopy(&(uParam0->f_8[1 /*8*/]), "", 32);
  			*uParam0 = { -1096.505f, 4.5754f, 49.8103f };
  			break;
  		
  		case 86:
  			uParam0->f_3 = 1;
  			StringCopy(&(uParam0->f_8[0 /*8*/]), "yogagame", 32);
  			StringCopy(&(uParam0->f_8[1 /*8*/]), "", 32);
  			*uParam0 = { -781.6566f, 186.8937f, 71.8352f };
  			break;
  		
  		case 189:
  			uParam0->f_3 = 1;
  			StringCopy(&(uParam0->f_8[0 /*8*/]), "Carwash_with_spinners", 32);
  			StringCopy(&(uParam0->f_8[1 /*8*/]), "Carwash_without_spinners", 32);
  			uParam0->f_33 = 0;
  			*uParam0 = { 55.7f, -1391.3f, 30.5f };
  			break;
  		
  		case 190:
  			uParam0->f_3 = 1;
  			StringCopy(&(uParam0->f_8[0 /*8*/]), "KT_CarWash", 32);
  			StringCopy(&(uParam0->f_8[1 /*8*/]), "KT_CarWash_NoBrush", 32);
  			uParam0->f_33 = 0;
  			*uParam0 = { 700.091f, -933.641f, 20.308f };
  			break;
  		
  		case 191:
  			uParam0->f_3 = 1;
  			*uParam0 = { -1096.381f, -836.17f, 36.6755f };
  			uParam0->f_85 = { *uParam0 - Vector(25f, 25f, 15f) };
  			uParam0->f_88 = { *uParam0 + Vector(25f, 25f, 15f) };
  			uParam0->f_91[0] = 1;
  			uParam0->f_91[1] = 0;
  			break;
  		
  		case 192:
  			uParam0->f_3 = 1;
  			*uParam0 = { 449.6558f, -980.1375f, 42.6918f };
  			uParam0->f_85 = { *uParam0 - Vector(25f, 25f, 15f) };
  			uParam0->f_88 = { *uParam0 + Vector(25f, 25f, 15f) };
  			uParam0->f_91[0] = 1;
  			uParam0->f_91[1] = 0;
  			break;
  		
  		case 193:
  			uParam0->f_3 = 1;
  			*uParam0 = { 363.0175f, -1598.079f, 35.9502f };
  			uParam0->f_85 = { *uParam0 - Vector(25f, 25f, 15f) };
  			uParam0->f_88 = { *uParam0 + Vector(25f, 25f, 15f) };
  			uParam0->f_91[0] = 1;
  			uParam0->f_91[1] = 0;
  			break;
  		
  		case 194:
  			uParam0->f_3 = 1;
  			StringCopy(&(uParam0->f_8[0 /*8*/]), "", 32);
  			StringCopy(&(uParam0->f_8[1 /*8*/]), "CS3_07_MPGates", 32);
  			StringCopy(&(uParam0->f_8[2 /*8*/]), "", 32);
  			*uParam0 = { -1601.424f, 2808.213f, 16.2598f };
  			break;
  		
  		case 97:
  			uParam0->f_3 = 1;
  			StringCopy(&(uParam0->f_8[0 /*8*/]), "DT1_03_Gr_Closed", 32);
  			StringCopy(&(uParam0->f_8[1 /*8*/]), "", 32);
  			*uParam0 = { 23.7318f, -647.2123f, 37.9549f };
  			break;
  		
  		case 98:
  			uParam0->f_3 = 1;
  			StringCopy(&(uParam0->f_8[0 /*8*/]), "", 32);
  			StringCopy(&(uParam0->f_8[1 /*8*/]), "FINBANK", 32);
  			*uParam0 = { 12.9689f, -648.4698f, 9.7693f };
  			break;
  		
  		case 99:
  			uParam0->f_3 = 1;
  			StringCopy(&(uParam0->f_8[0 /*8*/]), "", 32);
  			StringCopy(&(uParam0->f_8[1 /*8*/]), "PAPER1_RCM_ALT", 32);
  			StringCopy(&(uParam0->f_8[2 /*8*/]), "PAPER1_RCM", 32);
  			*uParam0 = { -1459.127f, 486.1281f, 115.2016f };
  			break;
  		
  		case 100:
  			uParam0->f_3 = 1;
  			StringCopy(&(uParam0->f_8[0 /*8*/]), "SP1_10_fake_interior", 32);
  			StringCopy(&(uParam0->f_8[1 /*8*/]), "SP1_10_real_interior", 32);
  			*uParam0 = { -248.4916f, -2010.509f, 34.5743f };
  			break;
  		
  		case 101:
  			uParam0->f_3 = 1;
  			StringCopy(&(uParam0->f_8[0 /*8*/]), "facelobbyfake", 32);
  			StringCopy(&(uParam0->f_8[1 /*8*/]), "facelobby", 32);
  			*uParam0 = { -1081.347f, -263.1502f, 38.7152f };
  			break;
  		
  		case 195:
  			uParam0->f_3 = 1;
  			StringCopy(&(uParam0->f_8[0 /*8*/]), "atriumglstatic", 32);
  			StringCopy(&(uParam0->f_8[1 /*8*/]), "atriumglmission", 32);
  			StringCopy(&(uParam0->f_8[2 /*8*/]), "atriumglcut", 32);
  			*uParam0 = { 136.1795f, -750.701f, 262.0516f };
  			break;
  		
  		case 197:
  			uParam0->f_3 = 1;
  			StringCopy(&(uParam0->f_8[0 /*8*/]), "", 32);
  			StringCopy(&(uParam0->f_8[1 /*8*/]), "racetrack01", 32);
  			*uParam0 = { 2096f, 3168.7f, 42.9f };
  			break;
  	}
  	switch (iParam1)
  	{
  		case 156:
  			uParam0->f_3 = 2;
  			StringCopy(&(uParam0->f_8[0 /*8*/]), "", 32);
  			StringCopy(&(uParam0->f_8[1 /*8*/]), "showhome_only", 32);
  			StringCopy(&(uParam0->f_42), "v_franklinshouse", 32);
  			*uParam0 = { 7.0256f, 537.3075f, 175.0281f };
  			break;
  		
  		case 157:
  			uParam0->f_3 = 2;
  			StringCopy(&(uParam0->f_8[0 /*8*/]), "", 32);
  			StringCopy(&(uParam0->f_8[1 /*8*/]), "franklin_unpacking", 32);
  			StringCopy(&(uParam0->f_42), "v_franklinshouse", 32);
  			*uParam0 = { 7.0256f, 537.3075f, 175.0281f };
  			break;
  		
  		case 158:
  			uParam0->f_3 = 2;
  			StringCopy(&(uParam0->f_8[0 /*8*/]), "", 32);
  			StringCopy(&(uParam0->f_8[1 /*8*/]), "franklin_settled", 32);
  			StringCopy(&(uParam0->f_42), "v_franklinshouse", 32);
  			*uParam0 = { 7.0256f, 537.3075f, 175.0281f };
  			break;
  		
  		case 163:
  			uParam0->f_3 = 2;
  			StringCopy(&(uParam0->f_8[0 /*8*/]), "", 32);
  			StringCopy(&(uParam0->f_8[1 /*8*/]), "progress_tshirt", 32);
  			StringCopy(&(uParam0->f_42), "v_franklinshouse", 32);
  			*uParam0 = { 7.0256f, 537.3075f, 175.0281f };
  			break;
  		
  		case 159:
  			uParam0->f_3 = 2;
  			StringCopy(&(uParam0->f_8[0 /*8*/]), "", 32);
  			StringCopy(&(uParam0->f_8[1 /*8*/]), "bong_and_wine", 32);
  			StringCopy(&(uParam0->f_42), "v_franklinshouse", 32);
  			*uParam0 = { 7.0256f, 537.3075f, 175.0281f };
  			break;
  		
  		case 161:
  			uParam0->f_3 = 2;
  			StringCopy(&(uParam0->f_8[0 /*8*/]), "", 32);
  			StringCopy(&(uParam0->f_8[1 /*8*/]), "progress_flyer", 32);
  			StringCopy(&(uParam0->f_42), "v_franklinshouse", 32);
  			*uParam0 = { 7.0256f, 537.3075f, 175.0281f };
  			break;
  		
  		case 162:
  			uParam0->f_3 = 2;
  			StringCopy(&(uParam0->f_8[0 /*8*/]), "", 32);
  			StringCopy(&(uParam0->f_8[1 /*8*/]), "progress_tux", 32);
  			StringCopy(&(uParam0->f_42), "v_franklinshouse", 32);
  			*uParam0 = { 7.0256f, 537.3075f, 175.0281f };
  			break;
  		
  		case 160:
  			uParam0->f_3 = 2;
  			StringCopy(&(uParam0->f_8[0 /*8*/]), "locked", 32);
  			StringCopy(&(uParam0->f_8[1 /*8*/]), "unlocked", 32);
  			StringCopy(&(uParam0->f_42), "v_franklinshouse", 32);
  			*uParam0 = { 7.0256f, 537.3075f, 175.0281f };
  			break;
  		
  		case 96:
  			uParam0->f_3 = 1;
  			StringCopy(&(uParam0->f_8[0 /*8*/]), "", 32);
  			StringCopy(&(uParam0->f_8[1 /*8*/]), "chophillskennel", 32);
  			*uParam0 = { 19.0568f, 536.4818f, 169.6277f };
  			break;
  	}
  	return 1;
  }
  
  int func_45(int iParam0)
  {
  	if (iParam0 != 198)
  	{
  		if (Global_77858)
  		{
  			return Global_42136.f_227[iParam0];
  		}
  		else
  		{
  			return Global_112922.f_7261.f_227[iParam0];
  		}
  	}
  	return 0;
  }
  
  void func_46(int iParam0)
  {
  	if (func_51())
  	{
  		return;
  	}
  	if (!Global_19954.f_1 == 1)
  	{
  		if (func_50(0))
  		{
  			func_47(iParam0);
  		}
  		MISC::SET_BIT(&Global_7825, 2);
  	}
  }
  
  void func_47(int iParam0)
  {
  	if (func_51())
  	{
  		return;
  	}
  	if (Global_20144)
  	{
  		if (func_49())
  		{
  			func_48(1, 1);
  		}
  		else
  		{
  			func_48(0, 0);
  		}
  	}
  	if (Global_19954.f_1 == 10 || Global_19954.f_1 == 9)
  	{
  		MISC::SET_BIT(&Global_7825, 16);
  	}
  	if (AUDIO::IS_MOBILE_PHONE_CALL_ONGOING())
  	{
  		AUDIO::STOP_SCRIPTED_CONVERSATION(false);
  	}
  	Global_21285 = 5;
  	if (iParam0 == 1)
  	{
  		MISC::SET_BIT(&Global_7824, 30);
  	}
  	else
  	{
  		MISC::CLEAR_BIT(&Global_7824, 30);
  	}
  	if (!func_14())
  	{
  		Global_19954.f_1 = 3;
  	}
  }
  
  void func_48(bool bParam0, bool bParam1)
  {
  	if (bParam0)
  	{
  		if (func_50(0))
  		{
  			Global_20144 = 1;
  			if (bParam1)
  			{
  				MOBILE::GET_MOBILE_PHONE_POSITION(&Global_19891);
  			}
  			Global_19882 = { Global_19900[Global_19899 /*3*/] };
  			MOBILE::SET_MOBILE_PHONE_POSITION(Global_19882);
  		}
  	}
  	else if (Global_20144 == 1)
  	{
  		Global_20144 = 0;
  		Global_19882 = { Global_19907[Global_19899 /*3*/] };
  		if (bParam1)
  		{
  			MOBILE::SET_MOBILE_PHONE_POSITION(Global_19891);
  		}
  		else
  		{
  			MOBILE::SET_MOBILE_PHONE_POSITION(Global_19882);
  		}
  	}
  }
  
  bool func_49()
  {
  	return BitTest(Global_1958928, 5);
  }
  
  int func_50(int iParam0)
  {
  	if (iParam0 == 1)
  	{
  		if (Global_19954.f_1 > 3)
  		{
  			if (BitTest(Global_7824, 14))
  			{
  				return 1;
  			}
  			else
  			{
  				return 0;
  			}
  		}
  		else
  		{
  			return 0;
  		}
  	}
  	if (SCRIPT::_GET_NUMBER_OF_REFERENCES_OF_SCRIPT_WITH_NAME_HASH(joaat("cellphone_flashhand")) > 0)
  	{
  		return 1;
  	}
  	if (Global_19954.f_1 > 3)
  	{
  		return 1;
  	}
  	return 0;
  }
  
  bool func_51()
  {
  	return BitTest(Global_1958928, 19);
  }
  
  int func_52(var uParam0, int iParam1)
  {
  	var uVar0;
  	struct<3> Var1;
  	struct<2> Var4;
  	struct<2> Var7;
  	var uVar10;
  	var uVar13;
  	int iVar16;
  	int iVar17;
  	
  	if (MISC::GET_GAME_TIMER() < uParam0->f_346)
  	{
  		return 0;
  	}
  	if (uParam0->f_348 == 0)
  	{
  		MISC::GET_MODEL_DIMENSIONS(ENTITY::GET_ENTITY_MODEL(iParam1), &Var4, &Var7);
  		if (uParam0->f_359 == 0)
  		{
  			Var1 = { ENTITY::GET_OFFSET_FROM_ENTITY_IN_WORLD_COORDS(iParam1, 0f, (Var7.f_1 + 0.325f), 0f) };
  		}
  		else
  		{
  			Var1 = { ENTITY::GET_OFFSET_FROM_ENTITY_IN_WORLD_COORDS(iParam1, 0f, (Var4.f_1 - 0.325f), 0f) };
  		}
  		if (Global_77858)
  		{
  			uParam0->f_348 = SHAPETEST::START_SHAPE_TEST_CAPSULE(Var1 - Vector(0.1f, 0f, 0f), Var1 + Vector(0.1f, 0f, 0f), 0.75f, 18, iParam1, 4);
  		}
  		else
  		{
  			uParam0->f_348 = SHAPETEST::START_SHAPE_TEST_CAPSULE(Var1 - Vector(0.1f, 0f, 0f), Var1 + Vector(0.1f, 0f, 0f), 0.75f, 2, iParam1, 4);
  		}
  		return 0;
  	}
  	else
  	{
  		iVar16 = SHAPETEST::GET_SHAPE_TEST_RESULT(uParam0->f_348, &uVar0, &uVar10, &uVar13, &iVar17);
  		if (iVar16 == 2)
  		{
  			if (ENTITY::DOES_ENTITY_EXIST(iVar17))
  			{
  				if (func_53(iVar17))
  				{
  					uParam0->f_349++;
  					return 1;
  				}
  				else
  				{
  					uParam0->f_349 = 0;
  				}
  			}
  		}
  		uParam0->f_346 = MISC::GET_GAME_TIMER() + 500;
  		uParam0->f_348 = 0;
  	}
  	return 0;
  }
  
  int func_53(int iParam0)
  {
  	if (ENTITY::DOES_ENTITY_EXIST(iParam0))
  	{
  		if (ENTITY::IS_ENTITY_A_VEHICLE(iParam0))
  		{
  			return 1;
  		}
  		if (ENTITY::IS_ENTITY_A_PED(iParam0))
  		{
  			return 0;
  		}
  		if (func_56(iParam0))
  		{
  			return 0;
  		}
  		if (func_55(iParam0))
  		{
  			return 1;
  		}
  		if (func_54(iParam0))
  		{
  			return 1;
  		}
  	}
  	return 0;
  }
  
  bool func_54(int iParam0)
  {
  	struct<3> Var0;
  	struct<3> Var3;
  	struct<3> Var6;
  	
  	MISC::GET_MODEL_DIMENSIONS(ENTITY::GET_ENTITY_MODEL(iParam0), &Var0, &Var3);
  	Var6.f_0 = MISC::ABSF((Var3.f_0 - Var0.f_0));
  	Var6.f_1 = MISC::ABSF((Var3.f_1 - Var0.f_1));
  	Var6.f_2 = MISC::ABSF((Var3.f_2 - Var0.f_2));
  	return ((Var6.f_0 >= 1.4f && Var6.f_1 >= 1.4f) && Var6.f_2 >= 1.4f);
  }
  
  int func_55(int iParam0)
  {
  	if (ENTITY::GET_ENTITY_MODEL(iParam0) == joaat("prop_dumpster_01a"))
  	{
  		return 1;
  	}
  	if (ENTITY::GET_ENTITY_MODEL(iParam0) == joaat("prop_dumpster_02a"))
  	{
  		return 1;
  	}
  	if (ENTITY::GET_ENTITY_MODEL(iParam0) == joaat("prop_dumpster_02b"))
  	{
  		return 1;
  	}
  	if (ENTITY::GET_ENTITY_MODEL(iParam0) == joaat("prop_dumpster_3a"))
  	{
  		return 1;
  	}
  	if (ENTITY::GET_ENTITY_MODEL(iParam0) == joaat("prop_dumpster_4a"))
  	{
  		return 1;
  	}
  	if (ENTITY::GET_ENTITY_MODEL(iParam0) == joaat("prop_dumpster_4b"))
  	{
  		return 1;
  	}
  	return 0;
  }
  
  int func_56(int iParam0)
  {
  	if (ENTITY::GET_ENTITY_MODEL(iParam0) == joaat("prop_carwash_roller_horz"))
  	{
  		return 1;
  	}
  	if (ENTITY::GET_ENTITY_MODEL(iParam0) == joaat("prop_carwash_roller_vert"))
  	{
  		return 1;
  	}
  	if (ENTITY::GET_ENTITY_MODEL(iParam0) == joaat("prop_ld_test_01"))
  	{
  		return 1;
  	}
  	return 0;
  }
  
  void func_57(int iParam0, float fParam1, float fParam2)
  {
  	if (NETWORK::NETWORK_HAS_CONTROL_OF_ENTITY(iParam0))
  	{
  		GRAPHICS::WASH_DECALS_FROM_VEHICLE(iParam0, fParam1);
  		VEHICLE::SET_VEHICLE_DIRT_LEVEL(iParam0, fParam2);
  	}
  }
  
  bool func_58(var uParam0)
  {
  	int iVar0;
  	
  	iVar0 = func_60(uParam0->f_351 == 1, 20000, 15000);
  	if (Global_77858)
  	{
  		return (func_59(uParam0) > iVar0 && uParam0->f_341);
  	}
  	return MISC::GET_GAME_TIMER() > (uParam0->f_361 + iVar0);
  }
  
  int func_59(var uParam0)
  {
  	if (Global_77858)
  	{
  		return NETWORK::GET_TIME_DIFFERENCE(NETWORK::GET_NETWORK_TIME(), uParam0->f_362);
  	}
  	return (MISC::GET_GAME_TIMER() - uParam0->f_361);
  }
  
  int func_60(bool bParam0, int iParam1, int iParam2)
  {
  	if (bParam0)
  	{
  		return iParam1;
  	}
  	return iParam2;
  }
  
  int func_61(int iParam0)
  {
  	if (!VEHICLE::DOES_VEHICLE_HAVE_STUCK_VEHICLE_CHECK(iParam0))
  	{
  		return 0;
  	}
  	if (((VEHICLE::IS_VEHICLE_STUCK_TIMER_UP(iParam0, 0, 5000) || VEHICLE::IS_VEHICLE_STUCK_TIMER_UP(iParam0, 1, 5000)) || VEHICLE::IS_VEHICLE_STUCK_TIMER_UP(iParam0, 2, 5000)) || VEHICLE::IS_VEHICLE_STUCK_TIMER_UP(iParam0, 3, 5000))
  	{
  		return 1;
  	}
  	return 0;
  }
  
  int func_62()
  {
  	int iVar0;
  	
  	iVar0 = 0;
  	while (iVar0 < 32)
  	{
  		if (Global_2689224[iVar0 /*451*/].f_241)
  		{
  			return 1;
  		}
  		iVar0++;
  	}
  	return 0;
  }
  
  int func_63(int iParam0, int iParam1)
  {
  	int iVar0;
  	
  	if (func_64(iParam0))
  	{
  		iVar0 = 0;
  		if (VEHICLE::IS_VEHICLE_TYRE_BURST(iParam0, 0, false) && VEHICLE::IS_VEHICLE_TYRE_BURST(iParam0, 1, false))
  		{
  			return 1;
  		}
  		if (VEHICLE::IS_VEHICLE_TYRE_BURST(iParam0, 4, false) && VEHICLE::IS_VEHICLE_TYRE_BURST(iParam0, 5, false))
  		{
  			return 1;
  		}
  		if (VEHICLE::IS_VEHICLE_TYRE_BURST(iParam0, 0, false))
  		{
  			iVar0++;
  		}
  		if (VEHICLE::IS_VEHICLE_TYRE_BURST(iParam0, 1, false))
  		{
  			iVar0++;
  		}
  		if (VEHICLE::IS_VEHICLE_TYRE_BURST(iParam0, 4, false))
  		{
  			iVar0++;
  		}
  		if (VEHICLE::IS_VEHICLE_TYRE_BURST(iParam0, 5, false))
  		{
  			iVar0++;
  		}
  		if (iVar0 >= iParam1)
  		{
  			return 1;
  		}
  	}
  	return 0;
  }
  
  int func_64(int iParam0)
  {
  	if (func_5(iParam0))
  	{
  		if (VEHICLE::IS_VEHICLE_DRIVEABLE(iParam0, false))
  		{
  			if (!FIRE::IS_ENTITY_ON_FIRE(iParam0))
  			{
  				return 1;
  			}
  		}
  	}
  	return 0;
  }
  
  int func_65(int iParam0)
  {
  	int iVar0;
  	int iVar1;
  	int iVar2;
  	
  	if (!func_69(iParam0))
  	{
  		return 0;
  	}
  	if (!PED::IS_PED_IN_ANY_VEHICLE(iParam0, false))
  	{
  		return 0;
  	}
  	iVar0 = PED::GET_VEHICLE_PED_IS_IN(iParam0, false);
  	if (!func_332(iVar0))
  	{
  		return 0;
  	}
  	iVar1 = VEHICLE::GET_PED_IN_VEHICLE_SEAT(iVar0, -1, false);
  	if (!func_69(iVar1))
  	{
  		return 0;
  	}
  	if (Global_77858)
  	{
  		iVar2 = NETWORK::NETWORK_GET_PLAYER_INDEX_FROM_PED(iVar1);
  		if (iVar2 == func_25())
  		{
  			return 0;
  		}
  		if (!func_66(iVar2, 1, 0))
  		{
  			Global_2689224[iVar2 /*451*/].f_241 = 0;
  			return 0;
  		}
  		return Global_2689224[iVar2 /*451*/].f_241;
  	}
  	return 1;
  }
  
  int func_66(int iParam0, bool bParam1, bool bParam2)
  {
  	int iVar0;
  	
  	iVar0 = iParam0;
  	if (iVar0 != -1)
  	{
  		if (NETWORK::NETWORK_IS_PLAYER_ACTIVE(iParam0))
  		{
  			if (bParam1)
  			{
  				if (!PLAYER::IS_PLAYER_PLAYING(iParam0))
  				{
  					return 0;
  				}
  			}
  			if (bParam2)
  			{
  				if (iVar0 == Global_2703660.f_3)
  				{
  					return Global_2703660.f_2;
  				}
  				else if (Global_2689224[iVar0 /*451*/] != 4)
  				{
  					return 0;
  				}
  			}
  			return 1;
  		}
  	}
  	return 0;
  }
  
  bool func_67(int iParam0, int iParam1)
  {
  	return BitTest(Global_2689224[iParam0 /*451*/].f_215, iParam1);
  }
  
  int func_68(int iParam0, var uParam1)
  {
  	int iVar0;
  	int iVar1;
  	
  	if (!func_332(iParam0))
  	{
  		return 0;
  	}
  	iVar0 = VEHICLE::GET_PED_IN_VEHICLE_SEAT(iParam0, -1, false);
  	if (!func_332(iParam0))
  	{
  		return 0;
  	}
  	if (!TASK::GET_IS_WAYPOINT_RECORDING_LOADED(uParam1->f_335))
  	{
  		return 0;
  	}
  	VEHICLE::SET_VEHICLE_DOORS_SHUT(iParam0, true);
  	if (NETWORK::NETWORK_HAS_CONTROL_OF_ENTITY(iParam0))
  	{
  		VEHICLE::SET_VEHICLE_DOORS_LOCKED_FOR_ALL_PLAYERS(iParam0, true);
  	}
  	TASK::OPEN_SEQUENCE_TASK(&iVar1);
  	TASK::TASK_VEHICLE_FOLLOW_WAYPOINT_RECORDING(0, iParam0, uParam1->f_335, 262144, 0, 546, -1, uParam1->f_336, false, 1.25f);
  	TASK::TASK_STAND_STILL(0, 3000);
  	TASK::CLOSE_SEQUENCE_TASK(iVar1);
  	TASK::TASK_PERFORM_SEQUENCE(iVar0, iVar1);
  	TASK::CLEAR_SEQUENCE_TASK(&iVar1);
  	TASK::VEHICLE_WAYPOINT_PLAYBACK_OVERRIDE_SPEED(iParam0, uParam1->f_336);
  	iLocal_71 = -1;
  	uParam1->f_350 = 2;
  	return 1;
  }
  
  bool func_69(int iParam0)
  {
  	if (!ENTITY::DOES_ENTITY_EXIST(iParam0))
  	{
  		return 0;
  	}
  	if (ENTITY::IS_ENTITY_DEAD(iParam0, false))
  	{
  		return 0;
  	}
  	if (NETWORK::NETWORK_IS_GAME_IN_PROGRESS())
  	{
  		if (!PED::IS_PED_A_PLAYER(iParam0))
  		{
  			return 0;
  		}
  	}
  	return !PED::IS_PED_DEAD_OR_DYING(iParam0, true);
  }
  
  void func_70(var uParam0)
  {
  	uParam0->f_341 = 1;
  	if (Global_77858)
  	{
  		uParam0->f_362 = NETWORK::GET_NETWORK_TIME();
  	}
  	else
  	{
  		uParam0->f_361 = MISC::GET_GAME_TIMER();
  	}
  	if (NETWORK::NETWORK_IS_GAME_IN_PROGRESS())
  	{
  		if (NETWORK::IS_COMMERCE_STORE_OPEN())
  		{
  			return;
  		}
  	}
  }
  
  void func_71(var uParam0, int iParam1)
  {
  	int iVar0;
  	
  	uParam0->f_339 = 99;
  	func_83(uParam0, 0);
  	func_82(uParam0);
  	func_81(uParam0);
  	func_26(uParam0->f_340, 1);
  	func_80(PLAYER::PLAYER_PED_ID(), 0);
  	func_72(&(uParam0->f_51));
  	func_72(&(uParam0->f_30));
  	func_72(&(uParam0->f_72));
  	PLAYER::SET_EVERYONE_IGNORE_PLAYER(PLAYER::PLAYER_ID(), false);
  	PLAYER::SET_PLAYER_CONTROL(PLAYER::PLAYER_ID(), true, 0);
  	if (Global_77858)
  	{
  		iVar0 = NETWORK::NETWORK_GET_PLAYER_INDEX_FROM_PED(PLAYER::PLAYER_PED_ID());
  		if (iVar0 != func_25())
  		{
  			if (Global_2689224[iVar0 /*451*/].f_241 == 1)
  			{
  				Global_2689224[iVar0 /*451*/].f_241 = 0;
  			}
  		}
  	}
  	if (ENTITY::DOES_ENTITY_EXIST(iParam1))
  	{
  		func_32(iParam1, 1);
  		func_172(iParam1);
  		if (NETWORK::NETWORK_IS_GAME_IN_PROGRESS())
  		{
  			if (NETWORK::NETWORK_HAS_CONTROL_OF_ENTITY(iParam1))
  			{
  				VEHICLE::SET_VEHICLE_DOORS_LOCKED_FOR_ALL_PLAYERS(iParam1, false);
  			}
  		}
  	}
  	PATHFIND::SET_PED_PATHS_BACK_TO_ORIGINAL(uParam0->f_352, uParam0->f_355, 0);
  	uParam0->f_348 = 0;
  	uParam0->f_349 = 0;
  	uParam0->f_358 = 1;
  	uParam0->f_341 = 0;
  	if (AUDIO::IS_AUDIO_SCENE_ACTIVE("CAR_WASH_SCENE"))
  	{
  		AUDIO::STOP_AUDIO_SCENE("CAR_WASH_SCENE");
  	}
  }
  
  void func_72(var uParam0)
  {
  	func_73(uParam0);
  }
  
  void func_73(var uParam0)
  {
  	uParam0->f_2 = 3;
  	func_75(uParam0);
  	func_74(&(uParam0->f_3));
  }
  
  void func_74(int* iParam0)
  {
  	if (ENTITY::DOES_ENTITY_EXIST(*iParam0))
  	{
  		if (ENTITY::IS_ENTITY_ATTACHED_TO_ANY_PED(*iParam0))
  		{
  			ENTITY::DETACH_ENTITY(*iParam0, true, true);
  		}
  		OBJECT::DELETE_OBJECT(iParam0);
  	}
  }
  
  void func_75(var uParam0)
  {
  	if (func_79(uParam0->f_2))
  	{
  		func_77(uParam0);
  		func_76(&(uParam0->f_6));
  		func_76(&(uParam0->f_5));
  		uParam0->f_2 = 0;
  	}
  }
  
  void func_76(var uParam0)
  {
  	if (*uParam0 != -1)
  	{
  		AUDIO::STOP_SOUND(*uParam0);
  		AUDIO::RELEASE_SOUND_ID(*uParam0);
  		*uParam0 = -1;
  	}
  }
  
  void func_77(var uParam0)
  {
  	int iVar0;
  	
  	iVar0 = 0;
  	while (iVar0 < uParam0->f_14)
  	{
  		func_78(&(uParam0->f_14[iVar0]));
  		iVar0++;
  	}
  }
  
  void func_78(var uParam0)
  {
  	if (*uParam0 != 0)
  	{
  		if (GRAPHICS::DOES_PARTICLE_FX_LOOPED_EXIST(*uParam0))
  		{
  			GRAPHICS::STOP_PARTICLE_FX_LOOPED(*uParam0, false);
  		}
  		else
  		{
  			GRAPHICS::REMOVE_PARTICLE_FX(*uParam0, false);
  		}
  		*uParam0 = 0;
  	}
  }
  
  bool func_79(int iParam0)
  {
  	return !(iParam0 == 0 || iParam0 == 5);
  }
  
  void func_80(int iParam0, int iParam1)
  {
  	int iVar0;
  	
  	iVar0 = NETWORK::NETWORK_GET_PLAYER_INDEX_FROM_PED(iParam0);
  	if (iVar0 == func_25())
  	{
  		return;
  	}
  	if (!func_69(iParam0))
  	{
  		Global_2689224[iVar0 /*451*/].f_241 = 0;
  		return;
  	}
  	Global_2689224[iVar0 /*451*/].f_241 = iParam1;
  }
  
  void func_81(var uParam0)
  {
  	func_77(&(uParam0->f_51));
  	func_77(&(uParam0->f_30));
  	func_77(&(uParam0->f_72));
  	func_78(&(uParam0->f_120.f_6[0]));
  	func_78(&(uParam0->f_120.f_6[1]));
  	func_78(&(uParam0->f_93.f_21));
  }
  
  void func_82(var uParam0)
  {
  	func_76(&(uParam0->f_93.f_16));
  	func_76(&(uParam0->f_93.f_17));
  	func_76(&(uParam0->f_93.f_18));
  	func_76(&(uParam0->f_120.f_27));
  	func_76(&(uParam0->f_120.f_28));
  	func_76(&(uParam0->f_120.f_29));
  	func_76(&(uParam0->f_30.f_5));
  	func_76(&(uParam0->f_30.f_6));
  	func_76(&(uParam0->f_51.f_5));
  	func_76(&(uParam0->f_51.f_6));
  	func_76(&(uParam0->f_72.f_5));
  	func_76(&(uParam0->f_72.f_6));
  }
  
  void func_83(var uParam0, int iParam1)
  {
  	if (ENTITY::DOES_ENTITY_EXIST(uParam0->f_93.f_19))
  	{
  		ENTITY::SET_ENTITY_COLLISION(uParam0->f_93.f_19, true, false);
  	}
  	func_172(iParam1);
  }
  
  float func_84(var uParam0, int iParam1)
  {
  	if (!func_5(iParam1))
  	{
  		return 0f;
  	}
  	return MISC::_0x7F8F6405F4777AF6(ENTITY::GET_ENTITY_COORDS(iParam1, true), uParam0->f_14[0 /*3*/], uParam0->f_14[1 /*3*/], false);
  }
  
  float func_85(var uParam0, int iParam1, float fParam2)
  {
  	struct<3> Var0;
  	float fVar3;
  	
  	fVar3 = MISC::_0x7F8F6405F4777AF6(ENTITY::GET_ENTITY_COORDS(iParam1, true), *(uParam0[0 /*3*/]), *(uParam0[1 /*3*/]), false);
  	if (fVar3 <= 1f)
  	{
  		if (PED::IS_PED_IN_VEHICLE(PLAYER::PLAYER_PED_ID(), iParam1, false))
  		{
  			PAD::DISABLE_CONTROL_ACTION(0, 75, true);
  			PAD::DISABLE_CONTROL_ACTION(0, 101, true);
  		}
  		if (VEHICLE::GET_PED_IN_VEHICLE_SEAT(iParam1, -1, false) == PLAYER::PLAYER_PED_ID())
  		{
  			func_111();
  		}
  		if (NETWORK::NETWORK_HAS_CONTROL_OF_ENTITY(iParam1))
  		{
  			Var0 = { MISC::_0x21C235BC64831E5A(ENTITY::GET_ENTITY_COORDS(iParam1, true), *(uParam0[0 /*3*/]), *(uParam0[1 /*3*/]), false) };
  			if (func_87(iParam1, Var0, 1) < 4f)
  			{
  				if (fVar3 > 0f)
  				{
  					func_57(iParam1, 0.005f, (fParam2 * (1f - fVar3)));
  				}
  			}
  		}
  	}
  	if (NETWORK::NETWORK_IS_GAME_IN_PROGRESS() == 0)
  	{
  		func_86(uParam0, iParam1);
  	}
  	if (NETWORK::NETWORK_HAS_CONTROL_OF_ENTITY(iParam1))
  	{
  		if ((fVar3 > 0.85f && !uParam0->f_343) && uParam0->f_337 > 0f)
  		{
  			TASK::VEHICLE_WAYPOINT_PLAYBACK_OVERRIDE_SPEED(iParam1, uParam0->f_337);
  			uParam0->f_343 = 1;
  		}
  	}
  	return fVar3;
  }
  
  void func_86(var uParam0, int iParam1)
  {
  	if (ENTITY::DOES_ENTITY_EXIST(uParam0->f_93.f_19))
  	{
  		ENTITY::SET_ENTITY_NO_COLLISION_ENTITY(iParam1, uParam0->f_93.f_19, true);
  		ENTITY::SET_ENTITY_NO_COLLISION_ENTITY(uParam0->f_93.f_19, iParam1, true);
  	}
  	if (ENTITY::DOES_ENTITY_EXIST(uParam0->f_120.f_3[0]))
  	{
  		ENTITY::SET_ENTITY_NO_COLLISION_ENTITY(iParam1, uParam0->f_120.f_3[0], true);
  		ENTITY::SET_ENTITY_NO_COLLISION_ENTITY(uParam0->f_120.f_3[0], iParam1, true);
  	}
  	if (ENTITY::DOES_ENTITY_EXIST(uParam0->f_120.f_3[1]))
  	{
  		ENTITY::SET_ENTITY_NO_COLLISION_ENTITY(iParam1, uParam0->f_120.f_3[1], true);
  		ENTITY::SET_ENTITY_NO_COLLISION_ENTITY(uParam0->f_120.f_3[1], iParam1, true);
  	}
  }
  
  float func_87(int iParam0, struct<3> Param1, bool bParam4)
  {
  	struct<3> Var0;
  	
  	if (!ENTITY::IS_ENTITY_DEAD(iParam0, false))
  	{
  		Var0 = { ENTITY::GET_ENTITY_COORDS(iParam0, true) };
  	}
  	else
  	{
  		Var0 = { ENTITY::GET_ENTITY_COORDS(iParam0, false) };
  	}
  	return MISC::GET_DISTANCE_BETWEEN_COORDS(Var0, Param1, bParam4);
  }
  
  void func_88(var uParam0)
  {
  	bool bVar0;
  	
  	bVar0 = true;
  	if (Global_77858)
  	{
  		bVar0 = func_62();
  		if (bVar0)
  		{
  			uParam0->f_347 = MISC::GET_GAME_TIMER();
  		}
  		if (bVar0 == 0 && uParam0->f_360 == 1)
  		{
  			uParam0->f_120.f_16 = 0f;
  			uParam0->f_341 = 0;
  		}
  	}
  	if (NETWORK::NETWORK_IS_GAME_IN_PROGRESS() && iLocal_72)
  	{
  		func_109(&(uParam0->f_120), bVar0, uParam0->f_358);
  	}
  	else
  	{
  		func_104(&(uParam0->f_120), bVar0, uParam0->f_358);
  	}
  	if (Global_77858)
  	{
  		uParam0->f_360 = bVar0;
  		if (MISC::GET_GAME_TIMER() > uParam0->f_347 + 1500)
  		{
  			uParam0->f_348 = 0;
  			uParam0->f_349 = 0;
  			return;
  		}
  	}
  	func_99(&(uParam0->f_93), bVar0);
  	func_89(&(uParam0->f_51), bVar0);
  	func_89(&(uParam0->f_30), bVar0);
  	func_89(&(uParam0->f_72), bVar0);
  }
  
  void func_89(var uParam0, bool bParam1)
  {
  	var uVar0;
  	struct<3> Var1;
  	struct<3> Var4;
  	struct<3> Var7;
  	var uVar10;
  	int iVar13;
  	int iVar14;
  	
  	if (!func_332(uParam0->f_3) || *uParam0 == 0)
  	{
  		return;
  	}
  	if (func_79(uParam0->f_2))
  	{
  		if (bParam1 == 0)
  		{
  			uParam0->f_2 = 5;
  		}
  		if (NETWORK::NETWORK_IS_GAME_IN_PROGRESS() && !func_62())
  		{
  			uParam0->f_2 = 5;
  		}
  	}
  	switch (uParam0->f_2)
  	{
  		case 0:
  			if (MISC::GET_GAME_TIMER() > uParam0->f_20 && bParam1 == 1)
  			{
  				if (uParam0->f_1 == 0)
  				{
  					if (uParam0->f_19 == 0)
  					{
  						if (MISC::GET_GAME_TIMER() > uParam0->f_20)
  						{
  							Var1 = { ENTITY::GET_OFFSET_FROM_ENTITY_IN_WORLD_COORDS(uParam0->f_3, (-uParam0->f_8 * 0.8f), 0f, (-uParam0->f_9 * 0.75f)) };
  							Var4 = { ENTITY::GET_OFFSET_FROM_ENTITY_IN_WORLD_COORDS(uParam0->f_3, (uParam0->f_8 * 0.8f), 0f, (-uParam0->f_9 * 0.75f)) };
  							uParam0->f_19 = SHAPETEST::START_SHAPE_TEST_LOS_PROBE(Var1, Var4, 2, uParam0->f_3, 4);
  							FIRE::STOP_FIRE_IN_RANGE(uParam0->f_10, uParam0->f_7);
  						}
  					}
  					else
  					{
  						iVar13 = SHAPETEST::GET_SHAPE_TEST_RESULT(uParam0->f_19, &uVar0, &Var7, &uVar10, &iVar14);
  						if (iVar13 == 2)
  						{
  							if (func_97(iVar14, 1))
  							{
  								uParam0->f_2 = 1;
  							}
  							uParam0->f_20 = (MISC::GET_GAME_TIMER() + iLocal_41);
  						}
  						uParam0->f_19 = 0;
  					}
  				}
  				else
  				{
  					uParam0->f_20 = (MISC::GET_GAME_TIMER() + iLocal_41);
  					if (func_95(uParam0->f_10, uParam0->f_7, 1))
  					{
  						uParam0->f_2 = 1;
  						uParam0->f_19 = 0;
  					}
  				}
  			}
  			break;
  		
  		case 1:
  			uParam0->f_2 = 3;
  			func_93(uParam0, 0);
  			FIRE::STOP_FIRE_IN_RANGE(uParam0->f_10, (uParam0->f_7 * 1.2f));
  			uParam0->f_5 = AUDIO::GET_SOUND_ID();
  			if (uParam0->f_1 == 0)
  			{
  				AUDIO::PLAY_SOUND_FROM_ENTITY(uParam0->f_5, "SPRAY", uParam0->f_3, "CARWASH_SOUNDS", false, 0);
  			}
  			else
  			{
  				AUDIO::PLAY_SOUND_FROM_ENTITY(uParam0->f_5, "DRYER", uParam0->f_3, "CARWASH_SOUNDS", false, 0);
  			}
  			break;
  		
  		case 3:
  			if (bParam1 == 0)
  			{
  				uParam0->f_2 = 5;
  				return;
  			}
  			if (NETWORK::NETWORK_IS_GAME_IN_PROGRESS() && !func_62())
  			{
  				uParam0->f_2 = 5;
  				return;
  			}
  			if (uParam0->f_1 == 0)
  			{
  				FIRE::STOP_FIRE_IN_RANGE(uParam0->f_10, (uParam0->f_7 * 1.2f));
  				if (uParam0->f_19 == 0)
  				{
  					if (MISC::GET_GAME_TIMER() > uParam0->f_20)
  					{
  						Var1 = { ENTITY::GET_OFFSET_FROM_ENTITY_IN_WORLD_COORDS(uParam0->f_3, (-uParam0->f_8 * 0.8f), 0f, (-uParam0->f_9 * 0.75f)) };
  						Var4 = { ENTITY::GET_OFFSET_FROM_ENTITY_IN_WORLD_COORDS(uParam0->f_3, (uParam0->f_8 * 0.8f), 0f, (-uParam0->f_9 * 0.75f)) };
  						uParam0->f_19 = SHAPETEST::START_SHAPE_TEST_LOS_PROBE(Var1, Var4, 2, uParam0->f_3, 4);
  					}
  				}
  				else
  				{
  					iVar13 = SHAPETEST::GET_SHAPE_TEST_RESULT(uParam0->f_19, &uVar0, &Var7, &uVar10, &iVar14);
  					if (iVar13 == 2)
  					{
  						if (!func_97(iVar14, 1))
  						{
  							uParam0->f_2 = 5;
  						}
  						else
  						{
  							if (uParam0->f_6 == -1)
  							{
  								uParam0->f_6 = AUDIO::GET_SOUND_ID();
  								AUDIO::PLAY_SOUND_FROM_ENTITY(uParam0->f_6, "SPRAY_CAR", uParam0->f_3, "CARWASH_SOUNDS", false, 0);
  							}
  							if (func_92(PLAYER::PLAYER_PED_ID(), ENTITY::GET_VEHICLE_INDEX_FROM_ENTITY_INDEX(iVar14), 0))
  							{
  								func_90(iLocal_41, 64);
  							}
  						}
  						uParam0->f_20 = (MISC::GET_GAME_TIMER() + iLocal_41);
  					}
  					uParam0->f_19 = 0;
  				}
  				if ((PED::IS_PED_ON_ANY_BIKE(PLAYER::PLAYER_PED_ID()) || PED::IS_PED_ON_FOOT(PLAYER::PLAYER_PED_ID())) || (PED::IS_PED_IN_ANY_VEHICLE(PLAYER::PLAYER_PED_ID(), false) && !VEHICLE::ARE_ALL_VEHICLE_WINDOWS_INTACT(PED::GET_VEHICLE_PED_IS_IN(PLAYER::PLAYER_PED_ID(), false))))
  				{
  					Var7 = { ENTITY::GET_OFFSET_FROM_ENTITY_GIVEN_WORLD_COORDS(uParam0->f_3, ENTITY::GET_ENTITY_COORDS(PLAYER::PLAYER_PED_ID(), true)) };
  					if ((MISC::ABSF(Var7.f_0) < uParam0->f_8 && MISC::ABSF(Var7.f_1) < 1.2f) && Var7.f_2 < (-uParam0->f_9 * 0.25f))
  					{
  						PED::SET_PED_WETNESS_HEIGHT(PLAYER::PLAYER_PED_ID(), 3f);
  					}
  				}
  			}
  			else if (MISC::GET_GAME_TIMER() > uParam0->f_4)
  			{
  				func_90(iLocal_40, 16);
  				if (!func_95(uParam0->f_10, (uParam0->f_7 * 1.25f), 1))
  				{
  					uParam0->f_2 = 5;
  				}
  				uParam0->f_4 = (MISC::GET_GAME_TIMER() + iLocal_40);
  			}
  			break;
  		
  		case 5:
  			func_77(uParam0);
  			func_76(&(uParam0->f_6));
  			func_76(&(uParam0->f_5));
  			uParam0->f_2 = 0;
  			break;
  	}
  }
  
  void func_90(int iParam0, int iParam1)
  {
  	float fVar0;
  	
  	if (func_65(PLAYER::PLAYER_PED_ID()))
  	{
  		fVar0 = (SYSTEM::TO_FLOAT(iParam1) * fLocal_65);
  		fVar0 = func_91(fVar0, 0f, 256f);
  		PAD::SET_PAD_SHAKE(0, iParam0, SYSTEM::FLOOR(fVar0));
  	}
  }
  
  float func_91(float fParam0, float fParam1, float fParam2)
  {
  	if (fParam0 > fParam2)
  	{
  		return fParam2;
  	}
  	else if (fParam0 < fParam1)
  	{
  		return fParam1;
  	}
  	return fParam0;
  }
  
  int func_92(int iParam0, int iParam1, bool bParam2)
  {
  	if (ENTITY::DOES_ENTITY_EXIST(iParam0) && !ENTITY::IS_ENTITY_DEAD(iParam0, false))
  	{
  		if (ENTITY::DOES_ENTITY_EXIST(iParam1) && !ENTITY::IS_ENTITY_DEAD(iParam1, false))
  		{
  			if (PED::IS_PED_IN_VEHICLE(iParam0, iParam1, bParam2))
  			{
  				return 1;
  			}
  		}
  	}
  	return 0;
  }
  
  void func_93(var uParam0, char* sParam1)
  {
  	if (!func_94(sParam1))
  	{
  		uParam0->f_13 = sParam1;
  	}
  	func_77(uParam0);
  	func_35(Local_59);
  	if (uParam0->f_1 == 0)
  	{
  		uParam0->f_14[0] = GRAPHICS::START_PARTICLE_FX_LOOPED_ON_ENTITY(uParam0->f_13, uParam0->f_3, uParam0->f_8, 0f, (-uParam0->f_9 * 0.25f), -Local_56, 1f, false, false, false);
  		uParam0->f_14[1] = GRAPHICS::START_PARTICLE_FX_LOOPED_ON_ENTITY(uParam0->f_13, uParam0->f_3, -uParam0->f_8, 0f, (-uParam0->f_9 * 0.25f), Local_56, 1f, false, false, false);
  		uParam0->f_14[2] = GRAPHICS::START_PARTICLE_FX_LOOPED_ON_ENTITY(uParam0->f_13, uParam0->f_3, uParam0->f_8, 0f, (-uParam0->f_9 * 0.75f), -Local_56, 1f, false, false, false);
  		uParam0->f_14[3] = GRAPHICS::START_PARTICLE_FX_LOOPED_ON_ENTITY(uParam0->f_13, uParam0->f_3, -uParam0->f_8, 0f, (-uParam0->f_9 * 0.75f), Local_56, 1f, false, false, false);
  	}
  	else
  	{
  		uParam0->f_14[0] = GRAPHICS::START_PARTICLE_FX_LOOPED_ON_ENTITY(uParam0->f_13, uParam0->f_3, Local_62, 0f, 90f, 0f, 1f, false, false, false);
  		uParam0->f_14[1] = GRAPHICS::START_PARTICLE_FX_LOOPED_ON_ENTITY(uParam0->f_13, uParam0->f_3, -1.96f, 0.1f, -2.16f, 0f, 35f, 0f, 1f, false, false, false);
  		uParam0->f_14[2] = GRAPHICS::START_PARTICLE_FX_LOOPED_ON_ENTITY(uParam0->f_13, uParam0->f_3, 1.96f, 0.1f, -2.16f, 0f, 145f, 0f, 1f, false, false, false);
  	}
  }
  
  int func_94(char* sParam0)
  {
  	if (MISC::IS_STRING_NULL(sParam0))
  	{
  		return 1;
  	}
  	else if (MISC::ARE_STRINGS_EQUAL(sParam0, "") || MISC::ARE_STRINGS_EQUAL(sParam0, "0"))
  	{
  		return 1;
  	}
  	return 0;
  }
  
  bool func_95(struct<3> Param0, float fParam3, int iParam4)
  {
  	if (PED::IS_PED_IN_ANY_VEHICLE(PLAYER::PLAYER_PED_ID(), false) && func_96(PED::GET_VEHICLE_PED_IS_IN(PLAYER::PLAYER_PED_ID(), false), Param0, fParam3))
  	{
  		return 1;
  	}
  	if (!CAM::IS_SPHERE_VISIBLE(Param0, fParam3) && iParam4 == 1)
  	{
  		return 0;
  	}
  	return MISC::IS_POSITION_OCCUPIED(Param0, fParam3, false, true, false, false, false, 0, true);
  }
  
  bool func_96(int iParam0, struct<3> Param1, float fParam4)
  {
  	return SYSTEM::VDIST2(ENTITY::GET_ENTITY_COORDS(iParam0, true), Param1) <= (fParam4 * fParam4);
  }
  
  int func_97(int iParam0, bool bParam1)
  {
  	int iVar0;
  	
  	if (ENTITY::IS_ENTITY_A_VEHICLE(iParam0) && func_332(iParam0))
  	{
  		iVar0 = ENTITY::GET_VEHICLE_INDEX_FROM_ENTITY_INDEX(iParam0);
  		if (bParam1)
  		{
  			if (!func_69(VEHICLE::GET_PED_IN_VEHICLE_SEAT(iVar0, -1, false)))
  			{
  				return 0;
  			}
  		}
  		if (!func_98(iVar0))
  		{
  			return 0;
  		}
  		return 1;
  	}
  	return 0;
  }
  
  bool func_98(int iParam0)
  {
  	if (!func_332(iParam0))
  	{
  		return 0;
  	}
  	return DECORATOR::DECOR_EXIST_ON(iParam0, "Carwash_Vehicle_Decorator");
  }
  
  void func_99(var uParam0, bool bParam1)
  {
  	var uVar0;
  	var uVar1;
  	var uVar4;
  	int iVar7;
  	int iVar8;
  	struct<3> Var9;
  	float fVar12;
  	
  	Var9 = { uParam0->f_2 };
  	fVar12 = (360f * SYSTEM::TIMESTEP());
  	Var9.f_2 = uParam0->f_22;
  	if (func_79(*uParam0))
  	{
  		if (bParam1 == 0)
  		{
  			*uParam0 = 5;
  		}
  		if (NETWORK::NETWORK_IS_GAME_IN_PROGRESS() && !func_62())
  		{
  			*uParam0 = 5;
  		}
  	}
  	switch (*uParam0)
  	{
  		case 0:
  			if (Global_77858)
  			{
  				if (!func_62())
  				{
  					return;
  				}
  			}
  			if (VEHICLE::IS_ANY_VEHICLE_NEAR_POINT(uParam0->f_2, 4f))
  			{
  				if (uParam0->f_20 == 0)
  				{
  					if (MISC::GET_GAME_TIMER() > uParam0->f_26)
  					{
  						uParam0->f_20 = SHAPETEST::START_SHAPE_TEST_CAPSULE(uParam0->f_2, uParam0->f_2 - Vector(6f, 0f, 0f), (uParam0->f_15 * 1.2f), 2, uParam0->f_19, 4);
  					}
  				}
  				else
  				{
  					iVar7 = SHAPETEST::GET_SHAPE_TEST_RESULT(uParam0->f_20, &uVar0, &uVar1, &uVar4, &iVar8);
  					if (iVar7 == 2)
  					{
  						if (func_97(iVar8, 1))
  						{
  							*uParam0 = 1;
  							func_76(&(uParam0->f_16));
  							uParam0->f_16 = AUDIO::GET_SOUND_ID();
  							AUDIO::PLAY_SOUND_FROM_ENTITY(uParam0->f_16, "BRUSHES_SPINNING", uParam0->f_19, "CARWASH_SOUNDS", false, 0);
  						}
  					}
  					uParam0->f_20 = 0;
  					uParam0->f_26 = (MISC::GET_GAME_TIMER() + iLocal_41);
  				}
  			}
  			break;
  		
  		case 1:
  			if (bParam1 == 0)
  			{
  				*uParam0 = 5;
  			}
  			else
  			{
  				uParam0->f_13 = (uParam0->f_13 + fVar12);
  				if (uParam0->f_13 >= 360f)
  				{
  					uParam0->f_13 = 360f;
  					*uParam0 = 3;
  					func_103(uParam0);
  					func_76(&(uParam0->f_17));
  					uParam0->f_17 = AUDIO::GET_SOUND_ID();
  					AUDIO::PLAY_SOUND_FROM_ENTITY(uParam0->f_17, "BRUSHES_MOVE", uParam0->f_19, "CARWASH_SOUNDS", false, 0);
  				}
  			}
  			if (NETWORK::NETWORK_IS_GAME_IN_PROGRESS() && !func_62())
  			{
  				*uParam0 = 5;
  			}
  			break;
  		
  		case 3:
  			if (bParam1 == 0)
  			{
  				*uParam0 = 5;
  			}
  			else if (MISC::GET_GAME_TIMER() > uParam0->f_25)
  			{
  				if (!func_95(Var9, uParam0->f_15, 1))
  				{
  					func_78(&(uParam0->f_21));
  					*uParam0 = 5;
  				}
  				uParam0->f_25 = (MISC::GET_GAME_TIMER() + iLocal_40);
  			}
  			if (NETWORK::NETWORK_IS_GAME_IN_PROGRESS() && !func_62())
  			{
  				*uParam0 = 5;
  			}
  			break;
  		
  		case 5:
  			uParam0->f_20 = 0;
  			func_78(&(uParam0->f_21));
  			func_76(&(uParam0->f_18));
  			uParam0->f_13 = (uParam0->f_13 - fVar12);
  			if (uParam0->f_13 <= 0f)
  			{
  				uParam0->f_13 = 0f;
  				*uParam0 = 0;
  				func_76(&(uParam0->f_17));
  				func_76(&(uParam0->f_16));
  			}
  			break;
  	}
  	uParam0->f_12 = (uParam0->f_12 + (uParam0->f_13 * SYSTEM::TIMESTEP()));
  	if (uParam0->f_12 > 360f)
  	{
  		uParam0->f_12 = (uParam0->f_12 - 360f);
  	}
  	func_100(uParam0);
  	ENTITY::SET_ENTITY_HEADING(uParam0->f_19, uParam0->f_11);
  	ENTITY::SET_ENTITY_ROTATION(uParam0->f_19, ENTITY::GET_ENTITY_ROTATION(uParam0->f_19, 2) + Vector(0f, 0f, uParam0->f_12), 2, true);
  }
  
  void func_100(var uParam0)
  {
  	int iVar0;
  	struct<3> Var1;
  	struct<3> Var4;
  	var uVar7;
  	int iVar10;
  	int iVar11;
  	
  	if (!uParam0->f_1 == 1)
  	{
  		return;
  	}
  	if (func_79(*uParam0))
  	{
  		if (uParam0->f_20 == 0)
  		{
  			if (MISC::GET_GAME_TIMER() > uParam0->f_26)
  			{
  				uParam0->f_20 = SHAPETEST::START_SHAPE_TEST_LOS_PROBE(uParam0->f_2, uParam0->f_2 - Vector(5f, 0f, 0f), 2, uParam0->f_19, 4);
  				if (uParam0->f_20 == 0)
  				{
  				}
  			}
  		}
  		else
  		{
  			iVar10 = SHAPETEST::GET_SHAPE_TEST_RESULT(uParam0->f_20, &iVar0, &Var4, &uVar7, &iVar11);
  			if (iVar10 == 2)
  			{
  				if (iVar0 > 0)
  				{
  					if (uParam0->f_22 == 0f)
  					{
  						uParam0->f_22 = (Var4.f_2 + 0.55f);
  					}
  					uParam0->f_5 = { Var4 + Local_43 };
  					if (uParam0->f_5.f_2 == uParam0->f_22)
  					{
  						uParam0->f_23 = (uParam0->f_2.f_2 - (0.55f * 1.1f));
  					}
  					else
  					{
  						uParam0->f_23 = (uParam0->f_5.f_2 + 0.1f);
  						if (func_97(iVar11, 1))
  						{
  							ENTITY::SET_ENTITY_NO_COLLISION_ENTITY(iVar11, uParam0->f_19, true);
  							ENTITY::SET_ENTITY_NO_COLLISION_ENTITY(uParam0->f_19, iVar11, true);
  							if (uParam0->f_18 == -1)
  							{
  								uParam0->f_18 = AUDIO::GET_SOUND_ID();
  								AUDIO::PLAY_SOUND_FROM_ENTITY(uParam0->f_18, "BRUSHES_HIT_CAR", uParam0->f_19, "CARWASH_SOUNDS", false, 0);
  							}
  						}
  					}
  				}
  			}
  			uParam0->f_20 = 0;
  			uParam0->f_26 = (MISC::GET_GAME_TIMER() + iLocal_41);
  		}
  	}
  	else
  	{
  		func_76(&(uParam0->f_18));
  		uParam0->f_23 = uParam0->f_24;
  	}
  	Var1 = { ENTITY::GET_ENTITY_COORDS(uParam0->f_19, true) };
  	if (Var1.f_2 < uParam0->f_23)
  	{
  		Var1.f_2 = (Var1.f_2 + (uParam0->f_14 * SYSTEM::TIMESTEP()));
  		if (Var1.f_2 > uParam0->f_23)
  		{
  			Var1.f_2 = uParam0->f_23;
  		}
  	}
  	if (Var1.f_2 > uParam0->f_23)
  	{
  		Var1.f_2 = (Var1.f_2 - (uParam0->f_14 * SYSTEM::TIMESTEP()));
  		if (Var1.f_2 < uParam0->f_23)
  		{
  			func_90(64, 64);
  			Var1.f_2 = uParam0->f_23;
  		}
  	}
  	if (uParam0->f_22 != 0f)
  	{
  		Var1.f_2 = func_91(Var1.f_2, uParam0->f_22, uParam0->f_24);
  	}
  	if (!func_102(uParam0->f_8, Var1, 0))
  	{
  		ENTITY::SET_ENTITY_COORDS(uParam0->f_19, Var1, true, false, false, true);
  	}
  	uParam0->f_8 = { Var1 };
  	if (bLocal_46 == 1)
  	{
  		func_101(uParam0->f_2, uParam0->f_2.f_1, (uParam0->f_22 - 0.55f), uParam0->f_15, 0, 0, 255, 255, 32);
  		GRAPHICS::DRAW_DEBUG_SPHERE(uParam0->f_2, 0.0625f, 0, 0, 255, 255);
  		GRAPHICS::DRAW_DEBUG_LINE(uParam0->f_2, uParam0->f_5 - Local_43, 0, 0, 255, 255);
  		GRAPHICS::DRAW_DEBUG_SPHERE(uParam0->f_5 - Local_43, 0.03125f, 0, 0, 255, 255);
  	}
  }
  
  void func_101(struct<3> Param0, float fParam3, int iParam4, int iParam5, int iParam6, int iParam7, int iParam8)
  {
  	int iVar0;
  	float fVar1;
  	struct<3> Var2;
  	struct<3> Var5;
  	float fVar8;
  	
  	fVar1 = (360f / SYSTEM::TO_FLOAT(iParam8));
  	Var2 = { Param0 };
  	Var5 = { Param0 };
  	fVar8 = 0f;
  	Var2 = { Param0 };
  	Var2.f_0 = (Var2.f_0 + (SYSTEM::SIN((fVar8 - fVar1)) * fParam3));
  	Var2.f_1 = (Var2.f_1 + (SYSTEM::COS((fVar8 - fVar1)) * fParam3));
  	iVar0 = 0;
  	while (iVar0 <= iParam8)
  	{
  		Var5 = { Param0 };
  		Var5.f_0 = (Var5.f_0 + (SYSTEM::SIN(fVar8) * fParam3));
  		Var5.f_1 = (Var5.f_1 + (SYSTEM::COS(fVar8) * fParam3));
  		GRAPHICS::DRAW_DEBUG_LINE(Var2, Var5, iParam4, iParam5, iParam6, iParam7);
  		Var2 = { Var5 };
  		fVar8 = (fVar8 + fVar1);
  		iVar0++;
  	}
  }
  
  bool func_102(struct<3> Param0, struct<3> Param3, bool bParam6)
  {
  	if (bParam6)
  	{
  		return (Param0.f_0 == Param3.f_0 && Param0.f_1 == Param3.f_1);
  	}
  	return ((Param0.f_0 == Param3.f_0 && Param0.f_1 == Param3.f_1) && Param0.f_2 == Param3.f_2);
  }
  
  void func_103(var uParam0)
  {
  	func_78(&(uParam0->f_21));
  	if (func_332(uParam0->f_19))
  	{
  		if (!GRAPHICS::DOES_PARTICLE_FX_LOOPED_EXIST(uParam0->f_21))
  		{
  			uParam0->f_21 = GRAPHICS::START_PARTICLE_FX_LOOPED_ON_ENTITY("ent_amb_car_wash", uParam0->f_19, 0f, 0f, 0f, Local_53, 1f, false, false, false);
  		}
  	}
  }
  
  void func_104(var uParam0, bool bParam1, bool bParam2)
  {
  	struct<3> Var0;
  	float fVar3;
  	struct<3> Var4;
  	struct<3> Var7;
  	int iVar10;
  	int iVar11;
  	struct<3> Var12;
  	var uVar15;
  	int iVar18;
  	int iVar19;
  	int iVar20;
  	float fVar21;
  	float fVar22;
  	struct<2> Var23;
  	struct<2> Var26;
  	int iVar29;
  	int iVar30;
  	float fVar31;
  	float fVar32;
  	
  	fVar3 = (360f * SYSTEM::TIMESTEP());
  	iVar30 = -1;
  	if (!*uParam0 == 1)
  	{
  		return;
  	}
  	func_108(uParam0);
  	if (func_79(uParam0->f_2))
  	{
  		if (bParam1 == 0)
  		{
  			uParam0->f_2 = 5;
  		}
  		if (NETWORK::NETWORK_IS_GAME_IN_PROGRESS() && !func_62())
  		{
  			bParam1 = false;
  			uParam0->f_2 = 5;
  		}
  		if (bParam1 == 0)
  		{
  			uParam0->f_16 = (uParam0->f_16 - (fVar3 * 2f));
  			if (uParam0->f_16 <= 0f)
  			{
  				uParam0->f_16 = 0f;
  				func_76(&(uParam0->f_28));
  			}
  		}
  	}
  	else
  	{
  		uParam0->f_16 = (uParam0->f_16 - (fVar3 * 2f));
  		if (uParam0->f_16 <= 0f)
  		{
  			uParam0->f_16 = 0f;
  			func_76(&(uParam0->f_28));
  		}
  	}
  	fVar31 = -1.5f;
  	fVar32 = -0.55f;
  	if (!bParam2 && uParam0->f_2 != 5)
  	{
  		if (MISC::GET_GAME_TIMER() > uParam0->f_44)
  		{
  			Var0 = { ENTITY::GET_OFFSET_FROM_ENTITY_IN_WORLD_COORDS(uParam0->f_1, 0f, uParam0->f_18[0], 0f) };
  			uParam0->f_33[0] = func_95(Var0, uParam0->f_21[0], 1);
  			Var0 = { ENTITY::GET_OFFSET_FROM_ENTITY_IN_WORLD_COORDS(uParam0->f_1, 0f, uParam0->f_18[1], 0f) };
  			uParam0->f_33[1] = func_95(Var0, uParam0->f_21[1], 1);
  			uParam0->f_44 = (MISC::GET_GAME_TIMER() + iLocal_41);
  		}
  		if (bLocal_46 == 1)
  		{
  			Var0 = { ENTITY::GET_OFFSET_FROM_ENTITY_IN_WORLD_COORDS(uParam0->f_1, 0f, uParam0->f_18[0], 0f) };
  			if (uParam0->f_33[0])
  			{
  				func_101(Var0, uParam0->f_21[0], 0, 255, 0, 255, 32);
  			}
  			else
  			{
  				func_101(Var0, uParam0->f_21[0], 255, 0, 0, 255, 32);
  			}
  			Var0 = { ENTITY::GET_OFFSET_FROM_ENTITY_IN_WORLD_COORDS(uParam0->f_1, 0f, uParam0->f_18[1], 0f) };
  			if (uParam0->f_33[1])
  			{
  				func_101(Var0, uParam0->f_21[1], 0, 255, 0, 255, 32);
  			}
  			else
  			{
  				func_101(Var0, uParam0->f_21[1], 0, 0, 255, 255, 32);
  			}
  			GRAPHICS::DRAW_DEBUG_LINE(ENTITY::GET_OFFSET_FROM_ENTITY_IN_WORLD_COORDS(uParam0->f_1, -2.5f, fVar31, 0.5f), ENTITY::GET_OFFSET_FROM_ENTITY_IN_WORLD_COORDS(uParam0->f_1, 2.5f, fVar31, 0.5f), 0, 0, 255, 255);
  			Var0 = { ENTITY::GET_OFFSET_FROM_ENTITY_IN_WORLD_COORDS(uParam0->f_1, 0f, 0f, 0.5f) };
  			GRAPHICS::DRAW_DEBUG_LINE(Var0, Var0 + ENTITY::GET_ENTITY_FORWARD_VECTOR(uParam0->f_1), 0, 0, 255, 255);
  		}
  	}
  	switch (uParam0->f_2)
  	{
  		case 0:
  			if (!bParam2)
  			{
  				if (bParam1 == 1 && uParam0->f_33[0])
  				{
  					func_76(&(uParam0->f_27));
  					uParam0->f_27 = AUDIO::GET_SOUND_ID();
  					AUDIO::PLAY_SOUND_FROM_ENTITY(uParam0->f_27, "BRUSHES_SPINNING", uParam0->f_1, "CARWASH_SOUNDS", false, 0);
  					uParam0->f_12[0] = -0.55f;
  					uParam0->f_12[1] = 0.55f;
  					uParam0->f_31 = 0;
  					uParam0->f_2 = 1;
  					uParam0->f_46[0] = 0;
  					uParam0->f_46[1] = 0;
  					uParam0->f_49[0] = 0;
  					uParam0->f_49[1] = 0;
  				}
  			}
  			break;
  		
  		case 1:
  			uParam0->f_16 = (uParam0->f_16 + fVar3);
  			Var0 = { ENTITY::GET_OFFSET_FROM_ENTITY_IN_WORLD_COORDS(uParam0->f_1, 0f, uParam0->f_18[0], 0f) };
  			iVar29 = VEHICLE::GET_RANDOM_VEHICLE_IN_SPHERE(Var0, 2f, 0, 2064);
  			if (func_97(iVar29, 1))
  			{
  				ENTITY::SET_ENTITY_NO_COLLISION_ENTITY(iVar29, uParam0->f_3[0], true);
  				ENTITY::SET_ENTITY_NO_COLLISION_ENTITY(iVar29, uParam0->f_3[1], true);
  			}
  			if (uParam0->f_16 >= 360f)
  			{
  				uParam0->f_16 = 360f;
  				func_107(uParam0);
  				uParam0->f_28 = AUDIO::GET_SOUND_ID();
  				AUDIO::PLAY_SOUND_FROM_ENTITY(uParam0->f_28, "BRUSHES_MOVE", uParam0->f_1, "CARWASH_SOUNDS", false, 0);
  				uParam0->f_2 = 2;
  			}
  			break;
  		
  		case 2:
  			if (uParam0->f_36 == 0)
  			{
  				if (bLocal_66)
  				{
  					Var0 = { ENTITY::GET_OFFSET_FROM_ENTITY_IN_WORLD_COORDS(uParam0->f_1, 0f, -1f, 0f) };
  					uParam0->f_36 = SHAPETEST::START_SHAPE_TEST_CAPSULE(Var0, Var0 + Vector(1f, 0f, 0f), 2.5f, 2, 0, 4);
  				}
  				else
  				{
  					Var0 = { ENTITY::GET_OFFSET_FROM_ENTITY_IN_WORLD_COORDS(uParam0->f_1, -3f, fVar31, 0.5f) };
  					uParam0->f_36 = SHAPETEST::START_SHAPE_TEST_LOS_PROBE(Var0, ENTITY::GET_OFFSET_FROM_ENTITY_IN_WORLD_COORDS(uParam0->f_1, 0f, fVar31, 0.5f), 2, 0, 7);
  				}
  				if (uParam0->f_36 == 0)
  				{
  				}
  			}
  			else
  			{
  				iVar11 = SHAPETEST::GET_SHAPE_TEST_RESULT(uParam0->f_36, &iVar19, &Var12, &uVar15, &iVar10);
  				if (iVar11 == 2)
  				{
  					if (func_97(iVar10, 1))
  					{
  						uParam0->f_37 = ENTITY::GET_VEHICLE_INDEX_FROM_ENTITY_INDEX(iVar10);
  						if (func_5(uParam0->f_37))
  						{
  						}
  						MISC::GET_MODEL_DIMENSIONS(ENTITY::GET_ENTITY_MODEL(uParam0->f_37), &Var23, &Var26);
  						fVar21 = MISC::ABSF((Var26.f_0 - Var23.f_0));
  						if (bLocal_66)
  						{
  							uParam0->f_12[0] = -((0.55f * 0.75f) + (fVar21 / 2f));
  							uParam0->f_12[1] = ((0.55f * 0.75f) + (fVar21 / 2f));
  						}
  						else
  						{
  							Var0 = { ENTITY::GET_OFFSET_FROM_ENTITY_GIVEN_WORLD_COORDS(uParam0->f_1, Var12 + ENTITY::GET_ENTITY_FORWARD_VECTOR(uParam0->f_1) * Vector(-fVar31, -fVar31, -fVar31)) };
  							uParam0->f_17 = 1.5f;
  						}
  						if (iVar19 == 0)
  						{
  							uParam0->f_12[0] = -(0.55f + (fVar21 / 2f));
  							uParam0->f_12[1] = (0.55f + (fVar21 / 2f));
  						}
  						uParam0->f_2 = 3;
  						uParam0->f_17 = 1.5f;
  						uParam0->f_46[0] = 0;
  						uParam0->f_46[1] = 0;
  						uParam0->f_49[0] = 0;
  						uParam0->f_49[1] = 0;
  						uParam0->f_41[0] = MISC::GET_GAME_TIMER() + 32;
  						uParam0->f_41[1] = MISC::GET_GAME_TIMER() + 64;
  					}
  				}
  				uParam0->f_36 = 0;
  			}
  			break;
  		
  		case 3:
  			if (func_5(uParam0->f_37))
  			{
  				ENTITY::SET_ENTITY_NO_COLLISION_ENTITY(uParam0->f_37, uParam0->f_3[0], true);
  				ENTITY::SET_ENTITY_NO_COLLISION_ENTITY(uParam0->f_37, uParam0->f_3[1], true);
  				MISC::GET_MODEL_DIMENSIONS(ENTITY::GET_ENTITY_MODEL(uParam0->f_37), &Var23, &Var26);
  				fVar22 = (MISC::ABSF((Var26.f_1 - Var23.f_1)) / 2f);
  				fVar21 = MISC::ABSF((Var26.f_0 - Var23.f_0));
  				iVar20 = func_105(ENTITY::GET_ENTITY_FORWARD_VECTOR(uParam0->f_1), ENTITY::GET_OFFSET_FROM_ENTITY_IN_WORLD_COORDS(uParam0->f_1, 0f, fVar22, 0f), ENTITY::GET_ENTITY_COORDS(uParam0->f_37, true));
  				if (iVar20 == 1)
  				{
  					uParam0->f_12[0] = -0.55f;
  					uParam0->f_12[1] = 0.55f;
  				}
  				else if (bLocal_66)
  				{
  					uParam0->f_12[0] = -((0.55f * fLocal_42) + (fVar21 / 2f));
  					uParam0->f_12[1] = ((0.55f * fLocal_42) + (fVar21 / 2f));
  					uParam0->f_17 = 1f;
  				}
  				else
  				{
  					iVar18 = 0;
  					while (iVar18 < uParam0->f_3)
  					{
  						Var4 = { ENTITY::GET_OFFSET_FROM_ENTITY_IN_WORLD_COORDS(uParam0->f_1, 0f, fVar32, 0.5f) };
  						if (iVar18 == 0)
  						{
  							Var7 = { ENTITY::GET_OFFSET_FROM_ENTITY_IN_WORLD_COORDS(uParam0->f_1, -fLocal_75, fVar32, 0.5f) };
  						}
  						else
  						{
  							Var7 = { ENTITY::GET_OFFSET_FROM_ENTITY_IN_WORLD_COORDS(uParam0->f_1, fLocal_75, fVar32, 0.5f) };
  						}
  						iVar30 = ENTITY::GET_ENTITY_BONE_INDEX_BY_NAME(uParam0->f_37, "seat_dside_f");
  						if (iVar30 != -1)
  						{
  							Var0 = { ENTITY::GET_WORLD_POSITION_OF_ENTITY_BONE(uParam0->f_37, iVar30) };
  							Var4.f_2 = Var0.f_2;
  							Var7.f_2 = Var0.f_2;
  						}
  						if (bLocal_46)
  						{
  							GRAPHICS::DRAW_DEBUG_LINE(Var4, Var7, 0, 0, 255, 255);
  						}
  						if (uParam0->f_38[iVar18] == 0)
  						{
  							if (MISC::GET_GAME_TIMER() > uParam0->f_41[iVar18])
  							{
  								if (iLocal_73 == 1 || VEHICLE::GET_VEHICLE_MOD(uParam0->f_37, 0) != -1)
  								{
  									uParam0->f_38[iVar18] = SHAPETEST::START_SHAPE_TEST_SWEPT_SPHERE(Var7, Var4, fLocal_74, 2, 0, 4);
  								}
  								else
  								{
  									uParam0->f_38[iVar18] = SHAPETEST::START_SHAPE_TEST_LOS_PROBE(Var7, Var4, 2, 0, 7);
  								}
  								if (uParam0->f_38[iVar18] == 0)
  								{
  								}
  							}
  						}
  						else
  						{
  							iVar11 = SHAPETEST::GET_SHAPE_TEST_RESULT(uParam0->f_38[iVar18], &iVar19, &Var12, &uVar15, &iVar10);
  							if (iVar11 == 2)
  							{
  								uParam0->f_49[iVar18] = uParam0->f_46[iVar18];
  								uParam0->f_46[iVar18] = 0;
  								if (iVar19 > 0)
  								{
  									if (bLocal_46)
  									{
  										GRAPHICS::DRAW_DEBUG_SPHERE(Var12, 0.06625f, 0, 0, 255, 255);
  									}
  									uParam0->f_46[iVar18] = 1;
  								}
  								if (func_97(iVar10, 1))
  								{
  									Var0 = { ENTITY::GET_OFFSET_FROM_ENTITY_GIVEN_WORLD_COORDS(uParam0->f_1, Var12 + ENTITY::GET_ENTITY_FORWARD_VECTOR(uParam0->f_1) * Vector(-fVar32, -fVar32, -fVar32)) };
  									uParam0->f_46[iVar18] = 1;
  									if (iVar18 == 0)
  									{
  										uParam0->f_12[iVar18] = (Var0.f_0 - 0.55f);
  									}
  									else
  									{
  										uParam0->f_12[iVar18] = (Var0.f_0 + 0.55f);
  									}
  								}
  							}
  							uParam0->f_38[iVar18] = 0;
  							uParam0->f_41[iVar18] = MISC::GET_GAME_TIMER() + 120;
  						}
  						if (uParam0->f_49[iVar18] != uParam0->f_46[iVar18])
  						{
  							if (uParam0->f_49[iVar18] == 1 && uParam0->f_46[iVar18] == 0)
  							{
  							}
  							if (uParam0->f_49[iVar18] == 0 && uParam0->f_46[iVar18] == 1)
  							{
  							}
  						}
  						iVar18++;
  					}
  				}
  				iVar20 = func_105(ENTITY::GET_ENTITY_FORWARD_VECTOR(uParam0->f_1), ENTITY::GET_OFFSET_FROM_ENTITY_IN_WORLD_COORDS(uParam0->f_1, 0f, (fVar22 * 1.25f), 0f), ENTITY::GET_ENTITY_COORDS(uParam0->f_37, true));
  				if (iVar20 == 1)
  				{
  					uParam0->f_16 = (uParam0->f_16 - (fVar3 * 2f));
  					if (uParam0->f_16 < 0f)
  					{
  						uParam0->f_16 = 0f;
  						func_76(&(uParam0->f_29));
  						func_76(&(uParam0->f_27));
  						func_78(&(uParam0->f_6[0]));
  						func_78(&(uParam0->f_6[1]));
  					}
  				}
  			}
  			if (!(uParam0->f_33[0] || uParam0->f_33[1]))
  			{
  				func_78(&(uParam0->f_6[0]));
  				func_78(&(uParam0->f_6[1]));
  				uParam0->f_2 = 5;
  			}
  			break;
  		
  		case 4:
  			if (func_5(uParam0->f_37))
  			{
  				ENTITY::SET_ENTITY_NO_COLLISION_ENTITY(uParam0->f_37, uParam0->f_3[0], true);
  				ENTITY::SET_ENTITY_NO_COLLISION_ENTITY(uParam0->f_37, uParam0->f_3[1], true);
  				MISC::GET_MODEL_DIMENSIONS(ENTITY::GET_ENTITY_MODEL(uParam0->f_37), &Var23, &Var26);
  				fVar22 = (MISC::ABSF((Var26.f_1 - Var23.f_1)) / 2f);
  				fVar21 = MISC::ABSF((Var26.f_0 - Var23.f_0));
  				iVar20 = func_105(ENTITY::GET_ENTITY_FORWARD_VECTOR(uParam0->f_1), ENTITY::GET_OFFSET_FROM_ENTITY_IN_WORLD_COORDS(uParam0->f_1, 0f, (fVar22 * 1.25f), 0f), ENTITY::GET_ENTITY_COORDS(uParam0->f_37, true));
  				if (iVar20 == 1)
  				{
  					uParam0->f_16 = (uParam0->f_16 - (fVar3 * 2f));
  					if (uParam0->f_16 < 0f)
  					{
  						uParam0->f_16 = 0f;
  						func_76(&(uParam0->f_29));
  						func_76(&(uParam0->f_27));
  						func_78(&(uParam0->f_6[0]));
  						func_78(&(uParam0->f_6[1]));
  						uParam0->f_2 = 5;
  					}
  				}
  			}
  			if (!(uParam0->f_33[0] || uParam0->f_33[1]))
  			{
  				func_78(&(uParam0->f_6[0]));
  				func_78(&(uParam0->f_6[1]));
  				uParam0->f_2 = 5;
  			}
  			break;
  		
  		case 5:
  			func_76(&(uParam0->f_29));
  			func_76(&(uParam0->f_27));
  			func_78(&(uParam0->f_6[0]));
  			func_78(&(uParam0->f_6[1]));
  			uParam0->f_16 = (uParam0->f_16 - fVar3);
  			uParam0->f_12[0] = -1.75f;
  			uParam0->f_12[1] = 1.75f;
  			uParam0->f_17 = 1.5f;
  			uParam0->f_46[0] = 0;
  			uParam0->f_46[1] = 0;
  			uParam0->f_49[0] = 0;
  			uParam0->f_49[1] = 0;
  			if (uParam0->f_16 <= 0f)
  			{
  				uParam0->f_16 = 0f;
  				func_76(&(uParam0->f_28));
  			}
  			if (MISC::GET_GAME_TIMER() > uParam0->f_44)
  			{
  				if (!func_95(uParam0->f_24, 1f, 1))
  				{
  					uParam0->f_31 = 1;
  					ENTITY::SET_ENTITY_COLLISION(uParam0->f_3[0], uParam0->f_31, false);
  					ENTITY::SET_ENTITY_COLLISION(uParam0->f_3[1], uParam0->f_31, false);
  					uParam0->f_44 = 0;
  					uParam0->f_2 = 0;
  				}
  				else
  				{
  					uParam0->f_44 = (MISC::GET_GAME_TIMER() + iLocal_41);
  				}
  			}
  			break;
  	}
  }
  
  int func_105(struct<3> Param0, struct<3> Param3, struct<3> Param6)
  {
  	float fVar0;
  	
  	fVar0 = func_106(Param6 - Param3, Param0);
  	if (fVar0 < 0f)
  	{
  		return -1;
  	}
  	else if (fVar0 > 0f)
  	{
  		return 1;
  	}
  	return 0;
  }
  
  float func_106(struct<3> Param0, struct<3> Param3)
  {
  	return (((Param0.f_0 * Param3.f_0) + (Param0.f_1 * Param3.f_1)) + (Param0.f_2 * Param3.f_2));
  }
  
  void func_107(var uParam0)
  {
  	int iVar0;
  	
  	iVar0 = 0;
  	while (iVar0 < uParam0->f_3)
  	{
  		func_78(&(uParam0->f_6[iVar0]));
  		if (func_332(uParam0->f_3[iVar0]))
  		{
  			if (!GRAPHICS::DOES_PARTICLE_FX_LOOPED_EXIST(uParam0->f_6[iVar0]))
  			{
  				uParam0->f_6[iVar0] = GRAPHICS::START_PARTICLE_FX_LOOPED_ON_ENTITY("ent_amb_car_wash", uParam0->f_3[iVar0], Local_47, Local_50, 1f, false, false, false);
  			}
  		}
  		iVar0++;
  	}
  }
  
  void func_108(var uParam0)
  {
  	int iVar0;
  	float fVar1;
  	var uVar2[2];
  	
  	fVar1 = uParam0->f_15;
  	if (uParam0->f_16 >= 360f)
  	{
  		uParam0->f_16 = 360f;
  	}
  	if (uParam0->f_16 <= 0f)
  	{
  		uParam0->f_16 = 0f;
  	}
  	uParam0->f_15 = (uParam0->f_15 + (uParam0->f_16 * SYSTEM::TIMESTEP()));
  	if (uParam0->f_15 < 0f)
  	{
  		uParam0->f_15 = (uParam0->f_15 + 360f);
  	}
  	if (uParam0->f_15 > 360f)
  	{
  		uParam0->f_15 = (uParam0->f_15 - 360f);
  	}
  	iVar0 = 0;
  	while (iVar0 < uParam0->f_3)
  	{
  		uVar2[iVar0] = uParam0->f_9[iVar0];
  		if (uParam0->f_9[iVar0] < uParam0->f_12[iVar0])
  		{
  			uParam0->f_9[iVar0] = (uParam0->f_9[iVar0] + (uParam0->f_17 * SYSTEM::TIMESTEP()));
  			if (uParam0->f_9[iVar0] > uParam0->f_12[iVar0])
  			{
  				func_90(iLocal_41, 64);
  				uParam0->f_9[iVar0] = uParam0->f_12[iVar0];
  			}
  		}
  		if (uParam0->f_9[iVar0] > uParam0->f_12[iVar0])
  		{
  			uParam0->f_9[iVar0] = (uParam0->f_9[iVar0] - (uParam0->f_17 * SYSTEM::TIMESTEP()));
  			if (uParam0->f_9[iVar0] < uParam0->f_12[iVar0])
  			{
  				func_90(iLocal_41, 64);
  				uParam0->f_9[iVar0] = uParam0->f_12[iVar0];
  			}
  		}
  		if (uVar2[iVar0] != uParam0->f_9[iVar0])
  		{
  			ENTITY::SET_ENTITY_COORDS(uParam0->f_3[iVar0], ENTITY::GET_OFFSET_FROM_ENTITY_IN_WORLD_COORDS(uParam0->f_1, uParam0->f_9[iVar0], 0f, 1.5f), true, false, false, true);
  		}
  		if (fVar1 != uParam0->f_15)
  		{
  			ENTITY::SET_ENTITY_HEADING(uParam0->f_3[iVar0], uParam0->f_15);
  		}
  		iVar0++;
  	}
  }
  
  void func_109(var uParam0, bool bParam1, bool bParam2)
  {
  	struct<3> Var0;
  	struct<3> Var3;
  	struct<3> Var6;
  	int iVar9;
  	float fVar10;
  	float fVar11;
  	int iVar12;
  	int iVar13;
  	int iVar14;
  	int iVar15;
  	struct<3> Var16;
  	var uVar19;
  	float fVar22;
  	int iVar23;
  	int iVar24;
  	float fVar25;
  	struct<2> Var26;
  	struct<2> Var29;
  	
  	fVar10 = -1.5f;
  	fVar11 = -0.55f;
  	fVar22 = (360f * SYSTEM::TIMESTEP());
  	iVar23 = -1;
  	if (!*uParam0 == 1)
  	{
  		return;
  	}
  	func_108(uParam0);
  	if (func_79(uParam0->f_2))
  	{
  		if (bParam1 == 0)
  		{
  			uParam0->f_2 = 5;
  		}
  		if (NETWORK::NETWORK_IS_GAME_IN_PROGRESS() && !func_62())
  		{
  			bParam1 = false;
  			uParam0->f_2 = 5;
  		}
  		if (bParam1 == 0)
  		{
  			uParam0->f_16 = (uParam0->f_16 - (fVar22 * 2f));
  			if (uParam0->f_16 <= 0f)
  			{
  				uParam0->f_16 = 0f;
  				func_76(&(uParam0->f_28));
  			}
  		}
  	}
  	else
  	{
  		uParam0->f_16 = (uParam0->f_16 - (fVar22 * 2f));
  		if (uParam0->f_16 <= 0f)
  		{
  			uParam0->f_16 = 0f;
  			func_76(&(uParam0->f_28));
  		}
  	}
  	if (!bParam2 && uParam0->f_2 != 5)
  	{
  		if (MISC::GET_GAME_TIMER() > uParam0->f_44)
  		{
  			Var0 = { ENTITY::GET_OFFSET_FROM_ENTITY_IN_WORLD_COORDS(uParam0->f_1, 0f, uParam0->f_18[0], 0f) };
  			uParam0->f_33[0] = func_95(Var0, uParam0->f_21[0], 1);
  			Var0 = { ENTITY::GET_OFFSET_FROM_ENTITY_IN_WORLD_COORDS(uParam0->f_1, 0f, uParam0->f_18[1], 0f) };
  			uParam0->f_33[1] = func_95(Var0, uParam0->f_21[1], 1);
  			uParam0->f_44 = (MISC::GET_GAME_TIMER() + iLocal_41);
  		}
  	}
  	if (bLocal_46 == 1)
  	{
  		Var0 = { ENTITY::GET_OFFSET_FROM_ENTITY_IN_WORLD_COORDS(uParam0->f_1, 0f, uParam0->f_18[0], 0f) };
  		if (uParam0->f_33[0])
  		{
  			func_101(Var0, uParam0->f_21[0], 0, 255, 0, 255, 32);
  		}
  		else
  		{
  			func_101(Var0, uParam0->f_21[0], 255, 0, 0, 255, 32);
  		}
  		Var0 = { ENTITY::GET_OFFSET_FROM_ENTITY_IN_WORLD_COORDS(uParam0->f_1, 0f, uParam0->f_18[1], 0f) };
  		if (uParam0->f_33[1])
  		{
  			func_101(Var0, uParam0->f_21[1], 0, 255, 0, 255, 32);
  		}
  		else
  		{
  			func_101(Var0, uParam0->f_21[1], 0, 0, 255, 255, 32);
  		}
  		GRAPHICS::DRAW_DEBUG_LINE(ENTITY::GET_OFFSET_FROM_ENTITY_IN_WORLD_COORDS(uParam0->f_1, -2.5f, fVar10, 0.5f), ENTITY::GET_OFFSET_FROM_ENTITY_IN_WORLD_COORDS(uParam0->f_1, 2.5f, fVar10, 0.5f), 0, 0, 255, 255);
  		Var0 = { ENTITY::GET_OFFSET_FROM_ENTITY_IN_WORLD_COORDS(uParam0->f_1, 0f, 0f, 0.5f) };
  		GRAPHICS::DRAW_DEBUG_LINE(Var0, Var0 + ENTITY::GET_ENTITY_FORWARD_VECTOR(uParam0->f_1), 0, 0, 255, 255);
  	}
  	switch (uParam0->f_2)
  	{
  		case 0:
  			if (!uParam0->f_33[0])
  			{
  				return;
  			}
  			if (uParam0->f_36 == 0)
  			{
  				Var0 = { ENTITY::GET_OFFSET_FROM_ENTITY_IN_WORLD_COORDS(uParam0->f_1, 0f, uParam0->f_18[0], 0f) };
  				uParam0->f_36 = SHAPETEST::START_SHAPE_TEST_CAPSULE(Var0, Var0 + Vector(1f, 0f, 0f), 2.25f, 2, 0, 4);
  			}
  			else
  			{
  				iVar15 = SHAPETEST::GET_SHAPE_TEST_RESULT(uParam0->f_36, &iVar13, &Var16, &uVar19, &iVar14);
  				if (iVar15 == 2)
  				{
  					if (func_97(iVar14, 1))
  					{
  						iVar9 = ENTITY::GET_VEHICLE_INDEX_FROM_ENTITY_INDEX(iVar14);
  						if (func_110(ENTITY::GET_ENTITY_FORWARD_VECTOR(iVar9), ENTITY::GET_ENTITY_FORWARD_VECTOR(uParam0->f_1), 10f))
  						{
  							Var0 = { ENTITY::GET_ENTITY_SPEED_VECTOR(iVar9, true) };
  							if (Var0.f_1 <= 0f)
  							{
  							}
  							else
  							{
  								uParam0->f_2 = 1;
  								uParam0->f_37 = iVar9;
  								func_76(&(uParam0->f_27));
  								uParam0->f_27 = AUDIO::GET_SOUND_ID();
  								AUDIO::PLAY_SOUND_FROM_ENTITY(uParam0->f_27, "BRUSHES_SPINNING", uParam0->f_1, "CARWASH_SOUNDS", false, 0);
  							}
  						}
  					}
  				}
  				uParam0->f_36 = 0;
  			}
  			break;
  		
  		case 1:
  			uParam0->f_16 = (uParam0->f_16 + fVar22);
  			ENTITY::SET_ENTITY_NO_COLLISION_ENTITY(uParam0->f_37, uParam0->f_3[0], true);
  			ENTITY::SET_ENTITY_NO_COLLISION_ENTITY(uParam0->f_37, uParam0->f_3[1], true);
  			if (func_5(uParam0->f_37))
  			{
  			}
  			if (uParam0->f_16 >= 360f)
  			{
  				uParam0->f_16 = 360f;
  				func_107(uParam0);
  				uParam0->f_28 = AUDIO::GET_SOUND_ID();
  				AUDIO::PLAY_SOUND_FROM_ENTITY(uParam0->f_28, "BRUSHES_MOVE", uParam0->f_1, "CARWASH_SOUNDS", false, 0);
  				uParam0->f_2 = 2;
  			}
  			break;
  		
  		case 2:
  			uParam0->f_2 = 3;
  			break;
  		
  		case 3:
  			if (!func_97(uParam0->f_37, 1))
  			{
  				uParam0->f_2 = 4;
  				return;
  			}
  			if (!func_69(VEHICLE::GET_PED_IN_VEHICLE_SEAT(uParam0->f_37, -1, false)))
  			{
  				uParam0->f_2 = 4;
  				return;
  			}
  			if (NETWORK::NETWORK_IS_GAME_IN_PROGRESS() && !func_62())
  			{
  				uParam0->f_2 = 4;
  				return;
  			}
  			MISC::GET_MODEL_DIMENSIONS(ENTITY::GET_ENTITY_MODEL(uParam0->f_37), &Var26, &Var29);
  			fVar25 = (MISC::ABSF((Var29.f_1 - Var26.f_1)) / 2f);
  			iVar24 = func_105(ENTITY::GET_ENTITY_FORWARD_VECTOR(uParam0->f_1), ENTITY::GET_OFFSET_FROM_ENTITY_IN_WORLD_COORDS(uParam0->f_1, 0f, fVar25, 0f), ENTITY::GET_ENTITY_COORDS(uParam0->f_37, true));
  			if (iVar24 == 1)
  			{
  				uParam0->f_12[0] = -0.55f;
  				uParam0->f_12[1] = 0.55f;
  				uParam0->f_2 = 4;
  				return;
  			}
  			iVar12 = 0;
  			while (iVar12 < uParam0->f_3)
  			{
  				if (iVar12 == 0)
  				{
  					Var3 = { ENTITY::GET_OFFSET_FROM_ENTITY_IN_WORLD_COORDS(uParam0->f_1, 1f, fVar11, 0.5f) };
  					Var6 = { ENTITY::GET_OFFSET_FROM_ENTITY_IN_WORLD_COORDS(uParam0->f_1, -fLocal_75, fVar11, 0.5f) };
  				}
  				else
  				{
  					Var3 = { ENTITY::GET_OFFSET_FROM_ENTITY_IN_WORLD_COORDS(uParam0->f_1, -1f, fVar11, 0.5f) };
  					Var6 = { ENTITY::GET_OFFSET_FROM_ENTITY_IN_WORLD_COORDS(uParam0->f_1, fLocal_75, fVar11, 0.5f) };
  				}
  				iVar23 = ENTITY::GET_ENTITY_BONE_INDEX_BY_NAME(uParam0->f_37, "seat_dside_f");
  				if (iVar23 != -1)
  				{
  					Var0 = { ENTITY::GET_WORLD_POSITION_OF_ENTITY_BONE(uParam0->f_37, iVar23) };
  					Var3.f_2 = Var0.f_2;
  					Var6.f_2 = Var0.f_2;
  				}
  				if (uParam0->f_38[iVar12] == 0)
  				{
  					if (MISC::GET_GAME_TIMER() > uParam0->f_41[iVar12])
  					{
  						if (iLocal_73 == 1 || VEHICLE::GET_VEHICLE_MOD(uParam0->f_37, 0) != -1)
  						{
  							uParam0->f_38[iVar12] = SHAPETEST::START_SHAPE_TEST_SWEPT_SPHERE(Var6, Var3, fLocal_74, 2, 0, 4);
  						}
  						else
  						{
  							uParam0->f_38[iVar12] = SHAPETEST::START_SHAPE_TEST_LOS_PROBE(Var6, Var3, 2, 0, 7);
  						}
  						if (uParam0->f_38[iVar12] == 0)
  						{
  						}
  					}
  				}
  				else
  				{
  					iVar15 = SHAPETEST::GET_SHAPE_TEST_RESULT(uParam0->f_38[iVar12], &iVar13, &Var16, &uVar19, &iVar14);
  					if (iVar15 == 2)
  					{
  						uParam0->f_49[iVar12] = uParam0->f_46[iVar12];
  						uParam0->f_46[iVar12] = 0;
  						if (iVar13 > 0)
  						{
  							GRAPHICS::DRAW_DEBUG_SPHERE(Var16, 0.06625f, 0, 0, 255, 255);
  							uParam0->f_46[iVar12] = 1;
  						}
  						if (func_97(iVar14, 1))
  						{
  							Var0 = { ENTITY::GET_OFFSET_FROM_ENTITY_GIVEN_WORLD_COORDS(uParam0->f_1, Var16 + ENTITY::GET_ENTITY_FORWARD_VECTOR(uParam0->f_1) * Vector(-fVar11, -fVar11, -fVar11)) };
  							if (iVar12 == 0)
  							{
  								uParam0->f_12[iVar12] = (Var0.f_0 - 0.55f);
  							}
  							else
  							{
  								uParam0->f_12[iVar12] = (Var0.f_0 + 0.55f);
  							}
  						}
  					}
  					uParam0->f_38[iVar12] = 0;
  					uParam0->f_41[iVar12] = MISC::GET_GAME_TIMER() + 120;
  				}
  				if (uParam0->f_49[iVar12] != uParam0->f_46[iVar12])
  				{
  					if (uParam0->f_49[iVar12] == 1 && uParam0->f_46[iVar12] == 0)
  					{
  					}
  					if (uParam0->f_49[iVar12] == 0 && uParam0->f_46[iVar12] == 1)
  					{
  					}
  				}
  				iVar12++;
  			}
  			ENTITY::SET_ENTITY_NO_COLLISION_ENTITY(uParam0->f_37, uParam0->f_3[0], true);
  			ENTITY::SET_ENTITY_NO_COLLISION_ENTITY(uParam0->f_37, uParam0->f_3[1], true);
  			if (bParam2)
  			{
  				uParam0->f_2 = 4;
  				return;
  			}
  			break;
  		
  		case 4:
  			uParam0->f_37 = 0;
  			uParam0->f_12[0] = (-uParam0->f_30 / 2f);
  			uParam0->f_12[1] = (uParam0->f_30 / 2f);
  			uParam0->f_16 = (uParam0->f_16 - fVar22);
  			if (uParam0->f_16 <= 0f)
  			{
  				uParam0->f_16 = 0f;
  				func_76(&(uParam0->f_29));
  				func_76(&(uParam0->f_27));
  				func_78(&(uParam0->f_6[0]));
  				func_78(&(uParam0->f_6[1]));
  			}
  			if ((uParam0->f_12[0] == uParam0->f_9[0] && uParam0->f_12[1] == uParam0->f_9[1]) && uParam0->f_16 == 0f)
  			{
  				func_76(&(uParam0->f_28));
  				uParam0->f_2 = 5;
  			}
  			break;
  		
  		case 5:
  			func_76(&(uParam0->f_28));
  			func_76(&(uParam0->f_29));
  			func_76(&(uParam0->f_27));
  			func_78(&(uParam0->f_6[0]));
  			func_78(&(uParam0->f_6[1]));
  			uParam0->f_12[0] = (-uParam0->f_30 / 2f);
  			uParam0->f_12[1] = (uParam0->f_30 / 2f);
  			uParam0->f_17 = 1.5f;
  			if (MISC::GET_GAME_TIMER() > uParam0->f_44)
  			{
  				if (!func_95(uParam0->f_24, 1f, 1))
  				{
  					uParam0->f_31 = 1;
  					uParam0->f_44 = 0;
  					uParam0->f_2 = 0;
  				}
  				else
  				{
  					uParam0->f_44 = (MISC::GET_GAME_TIMER() + iLocal_41);
  				}
  			}
  			break;
  	}
  }
  
  bool func_110(struct<3> Param0, struct<3> Param3, float fParam6)
  {
  	return MISC::ACOS(func_106(Param3, Param0)) <= fParam6;
  }
  
  void func_111()
  {
  	PAD::DISABLE_CONTROL_ACTION(0, 101, true);
  	PAD::DISABLE_CONTROL_ACTION(0, 75, true);
  	PAD::DISABLE_CONTROL_ACTION(0, 74, true);
  	PAD::DISABLE_CONTROL_ACTION(0, 225, true);
  	PAD::DISABLE_CONTROL_ACTION(0, 69, true);
  	PAD::DISABLE_CONTROL_ACTION(0, 70, true);
  	PAD::DISABLE_CONTROL_ACTION(0, 91, true);
  	PAD::DISABLE_CONTROL_ACTION(0, 92, true);
  	func_113();
  	if (!Global_77858)
  	{
  		func_112();
  	}
  }
  
  void func_112()
  {
  	Global_22691.f_6 = 1;
  }
  
  void func_113()
  {
  	PAD::DISABLE_CONTROL_ACTION(0, 21, true);
  	PAD::DISABLE_CONTROL_ACTION(0, 37, true);
  	PAD::DISABLE_CONTROL_ACTION(0, 25, true);
  	PAD::DISABLE_CONTROL_ACTION(0, 141, true);
  	PAD::DISABLE_CONTROL_ACTION(0, 140, true);
  	PAD::DISABLE_CONTROL_ACTION(0, 24, true);
  	PAD::DISABLE_CONTROL_ACTION(0, 257, true);
  	PAD::DISABLE_CONTROL_ACTION(0, 22, true);
  	PAD::DISABLE_CONTROL_ACTION(0, 23, true);
  }
  
  void func_114(int iParam0)
  {
  	int iVar0;
  	int iVar1;
  	int iVar2;
  	int iVar3;
  	
  	if (!Global_77858)
  	{
  		func_128(15, 1);
  	}
  	else
  	{
  		iVar0 = PED::GET_VEHICLE_PED_IS_IN(PLAYER::PLAYER_PED_ID(), false);
  		if (func_332(iVar0))
  		{
  			if (VEHICLE::GET_PED_IN_VEHICLE_SEAT(iVar0, -1, false) == PLAYER::PLAYER_PED_ID())
  			{
  				iVar2 = 15;
  				if (!MONEY::_NETWORK_CAN_SPEND_MONEY_2(iVar2, false, false, true, &iVar3, -1, 0))
  				{
  					iVar2 = (iVar2 - iVar3);
  					if (iVar2 <= 0)
  					{
  						return;
  					}
  				}
  				if (func_127())
  				{
  					func_115(1182673174, iVar2, &iVar1, 0, 0, 1);
  					Global_4528329[iVar1 /*85*/] = ENTITY::GET_ENTITY_MODEL(iVar0);
  					Global_4528329[iVar1 /*85*/].f_1 = iParam0;
  				}
  				else
  				{
  					MONEY::NETWORK_SPENT_CARWASH(iVar2, ENTITY::GET_ENTITY_MODEL(iVar0), iParam0, false, true);
  				}
  			}
  		}
  	}
  }
  
  void func_115(int iParam0, int iParam1, var uParam2, bool bParam3, bool bParam4, bool bParam5)
  {
  	int iVar0;
  	
  	if (!func_127())
  	{
  		return;
  	}
  	iVar0 = 1;
  	if (bParam4)
  	{
  		iVar0 = 4;
  	}
  	else if (bParam3)
  	{
  		iVar0 = 2;
  	}
  	else if (bParam5)
  	{
  		iVar0 = 8;
  	}
  	switch (iParam0)
  	{
  		case -1645229221:
  		case -585718395:
  		case -1359375127:
  		case 454359403:
  		case -982394051:
  		case 1643659499:
  		case -2072289654:
  		case 650665123:
  		case 1654961868:
  		case -876847842:
  		case 68030260:
  		case -2122299283:
  		case 366672791:
  		case 283351220:
  		case 291576838:
  		case 1182673174:
  		case -516219046:
  		case 1036455748:
  		case 277665518:
  		case 2043854386:
  		case 1839532116:
  		case 1022400740:
  		case 1940862352:
  		case -1389227906:
  		case 711665950:
  		case 1704445500:
  		case 1515774909:
  		case 1173654533:
  		case -899802304:
  		case -663944335:
  		case 1208553146:
  		case -613221010:
  		case -671062876:
  		case -407201236:
  		case -754024203:
  		case -1885444887:
  		case 1931729587:
  		case 1064954035:
  		case -180141073:
  		case 2131324797:
  		case 1612072658:
  		case -517447402:
  		case 1948102096:
  		case 1108628223:
  		case -1834046564:
  		case -1239008812:
  		case -222363842:
  		case -1276678868:
  		case 1564537328:
  		case -96593501:
  		case 742499889:
  		case 2050093329:
  		case -1752488069:
  		case 634375935:
  		case 1941570214:
  		case 665109499:
  		case -1330755006:
  		case 1976384368:
  		case 268924934:
  		case 1869490922:
  		case -336803850:
  		case -1412692765:
  		case 618167454:
  		case 980623936:
  		case 437291904:
  		case -135813048:
  		case -930104477:
  		case -1420909320:
  		case -1733398043:
  		case -1892760262:
  		case -1545737048:
  		case 2039302543:
  		case 402505853:
  		case -1143510182:
  		case 1678112166:
  		case 837955913:
  		case -1532467144:
  		case 1815541181:
  			if (iParam1 > 0 || Global_262145.f_28039)
  			{
  				func_116(uParam2, -1135378931, 537254313, 1474183246, iParam0, iParam1, iVar0, 7);
  			}
  			break;
  		
  		case -31156877:
  		case -1027218631:
  		case -1398318418:
  		case 1652884147:
  		case -57868256:
  		case -1216489292:
  		case -46622315:
  		case -352356931:
  		case -990286235:
  		case 563463121:
  		case 1734805203:
  		case 941287179:
  		case -1186079845:
  		case -1985150258:
  		case -1127021384:
  		case -109201286:
  		case 312105838:
  		case 1982688246:
  		case -661030418:
  		case 1301046174:
  		case -1586170317:
  		case 393059668:
  		case 23796958:
  		case -1077156170:
  		case 1780666425:
  		case -2043695058:
  		case -1922554349:
  		case 1287308202:
  		case 691372038:
  		case 1480707108:
  		case 1512499951:
  		case 562283735:
  		case -154732333:
  		case -1362660491:
  		case 645708827:
  		case 767907967:
  		case -1970151306:
  		case 718859568:
  		case -1955564771:
  		case 892388724:
  		case -1426920838:
  		case 1349151477:
  		case 1620609399:
  		case 1961641934:
  		case 210955503:
  		case -59668082:
  		case 1736933716:
  		case -1468524125:
  		case 111573502:
  		case 1525644423:
  		case 968073639:
  		case 1577781788:
  		case -934465332:
  		case -1194253122:
  		case -212607085:
  		case -815546555:
  		case 1048226110:
  		case 569170531:
  		case -856006867:
  		case 848090538:
  		case -47546905:
  		case -293060240:
  		case 463142405:
  		case 1550217370:
  		case -101307780:
  		case -664597565:
  		case 599804707:
  		case -327918414:
  		case 550898518:
  		case 835976347:
  		case 1347433368:
  		case 1052472386:
  		case -2130199671:
  		case -1227654538:
  		case 1864522104:
  		case 215608230:
  		case -876012764:
  		case -722894325:
  		case 1407278493:
  		case -1579394494:
  		case -27443911:
  		case 1179783540:
  		case 923419301:
  		case -308826175:
  		case 603298940:
  		case -12619854:
  		case -311112675:
  		case 870439158:
  		case -974288740:
  		case -4138654:
  		case -1180954122:
  		case -1918051016:
  		case 844330594:
  		case 1934825517:
  		case 1852024236:
  		case 2099238988:
  		case 1952643559:
  		case -1172900789:
  		case -2015399333:
  		case -1574795641:
  		case -961034881:
  		case 1135468152:
  		case 1265272476:
  		case -634726636:
  		case 696556762:
  		case 403506509:
  		case -883876414:
  		case -1064150715:
  		case -1387253055:
  		case -716963152:
  		case 1138089938:
  		case -561012053:
  			func_116(uParam2, -1135378931, 1445302971, 1474183246, iParam0, iParam1, iVar0, 7);
  			break;
  	}
  	switch (iParam0)
  	{
  		case -1342064661:
  		case -1693570755:
  		case 1868043300:
  		case -697248883:
  		case -1295545795:
  		case 914079366:
  		case 395122350:
  		case -331981076:
  		case 1671535231:
  		case -1896606724:
  		case -1291433573:
  		case 538631715:
  		case 133782822:
  		case 2081885153:
  		case -1314365345:
  		case 1322977732:
  		case 396623013:
  		case 1981664462:
  		case -1921250821:
  		case -1370731547:
  		case 1683798242:
  		case -910968288:
  		case -168319378:
  		case 1637817605:
  		case 830018386:
  		case 1051883823:
  			if (iParam1 > 0 || Global_262145.f_28039)
  			{
  				func_116(uParam2, -1135378931, 537254313, 1474183246, iParam0, iParam1, iVar0, 7);
  			}
  			break;
  		
  		case 1240683675:
  		case 1241904665:
  		case -1100963799:
  		case -494565059:
  		case 827308208:
  		case -1857685192:
  		case 1698417709:
  		case 1057653594:
  		case 1810506918:
  		case 451427308:
  		case 824622151:
  		case 1253978276:
  		case -1576080766:
  		case 1508411869:
  		case 1428501742:
  		case -1918967151:
  		case 1261538664:
  		case 1180397655:
  		case 1414674366:
  		case 261460130:
  		case -2027658376:
  		case -2017925037:
  		case 1668610896:
  		case -2032529561:
  		case -1224479447:
  		case -319306689:
  		case -466527264:
  		case 1925965142:
  		case 592152676:
  		case 2035612943:
  		case 1568659720:
  		case 1220095570:
  		case 2050320631:
  		case 592672421:
  		case 1775876058:
  		case -842062976:
  		case -518651910:
  		case 14658715:
  		case -604793592:
  		case -823426392:
  		case -1401862980:
  		case -173354274:
  		case 409533976:
  		case -1472522337:
  		case 542574408:
  		case -1261799063:
  		case 784631574:
  		case -2027479156:
  		case -837690641:
  		case -1029672338:
  		case -1503749970:
  		case -1843409092:
  		case 1669058563:
  		case 2102747615:
  		case 2030771998:
  		case 1708747007:
  		case 645293860:
  		case -818859193:
  		case 300796227:
  		case -1999832346:
  		case 1058055395:
  		case -321151125:
  		case 2078731875:
  		case 1280785534:
  		case -1878824774:
  		case 247992227:
  		case -229237358:
  		case -1123183389:
  		case 1814197076:
  		case 713955548:
  		case -2026544524:
  		case -719580138:
  		case -163417439:
  		case -550417574:
  			func_116(uParam2, -1135378931, 1445302971, 1474183246, iParam0, iParam1, iVar0, 7);
  			break;
  	}
  }
  
  int func_116(var uParam0, int iParam1, int iParam2, int iParam3, int iParam4, int iParam5, int iParam6, int iParam7)
  {
  	bool bVar0;
  	int iVar1;
  	int iVar2;
  	bool bVar3;
  	int iVar4;
  	bool bVar5;
  	
  	bVar0 = false;
  	if (!func_127())
  	{
  		bVar0 = true;
  	}
  	iVar1 = 1;
  	if (!bVar0)
  	{
  		if (!NETSHOPPING::NET_GAMESERVER_IS_SESSION_VALID(func_10()) || NETSHOPPING::NET_GAMESERVER_IS_SESSION_REFRESH_PENDING())
  		{
  			Global_4529831 = 1;
  			return 0;
  		}
  		if (Global_2726400)
  		{
  			if (iParam3 == 1067618600 || iParam3 == -1303831698)
  			{
  				Global_4529832 = 1;
  				return 0;
  			}
  		}
  	}
  	bVar3 = false;
  	iVar2 = 0;
  	while (iVar2 < 15)
  	{
  		if (Global_4528329[iVar2 /*85*/].f_66.f_2 == 0)
  		{
  			bVar3 = true;
  		}
  		iVar2++;
  	}
  	if (!bVar3)
  	{
  		return 0;
  	}
  	*uParam0 = 15;
  	iVar4 = 2147483647;
  	if ((bVar0 || iVar1) || NETSHOPPING::NET_GAMESERVER_BEGIN_SERVICE(&iVar4, iParam3, iParam4, iParam2, iParam5, iParam6))
  	{
  		if ((bVar0 || iVar1) || NETSHOPPING::NET_GAMESERVER_CHECKOUT_START(iVar4))
  		{
  			*uParam0 = func_123(iVar4, iParam1, iParam4, iParam2, iParam3, iParam5, 0, iParam6, iParam7, 1, 1);
  			if (iVar1 && !bVar0)
  			{
  			}
  			if (bVar0)
  			{
  				if (*uParam0 != -1)
  				{
  					Global_4528329[*uParam0 /*85*/].f_66.f_8 = 1;
  					Global_4528329[*uParam0 /*85*/].f_66.f_12 = 1;
  				}
  			}
  			Global_4529816 = 1;
  			return 1;
  		}
  	}
  	else
  	{
  		if (iParam7 & 2 != 0)
  		{
  			Global_4529830 = 1;
  			Global_4529833 = iParam4;
  			Global_4529835 = iParam3;
  			Global_4529836 = 1;
  			Global_4529834 = iParam5;
  		}
  		if (iParam7 & 8 != 0)
  		{
  			Global_4529833 = iParam4;
  			Global_4529835 = iParam3;
  			Global_4529836 = 1;
  			Global_4529834 = iParam5;
  		}
  		bVar5 = false;
  		if (bVar5)
  		{
  			func_122(1, iParam4);
  			Global_4529830 = 0;
  		}
  		if (iParam7 & 4 != 0)
  		{
  			func_117(-1, iParam4, iParam6, iParam5, -1);
  		}
  	}
  	return 0;
  }
  
  void func_117(int iParam0, int iParam1, int iParam2, int iParam3, int iParam4)
  {
  	switch (iParam1)
  	{
  		case 1704445500:
  			MISC::SET_BIT(&(Global_2689224[PLAYER::PLAYER_ID() /*451*/].f_124.f_71), false);
  			break;
  	}
  	if (iParam0 != -1)
  	{
  		func_118(iParam0);
  	}
  }
  
  void func_118(int iParam0)
  {
  	bool bVar0;
  	
  	bVar0 = false;
  	if (!func_127())
  	{
  		bVar0 = true;
  	}
  	if (iParam0 != -1)
  	{
  		if (func_121(iParam0))
  		{
  			if (!bVar0)
  			{
  				NETSHOPPING::_NET_GAMESERVER_BASKET_DELETE();
  			}
  		}
  		else if (!bVar0)
  		{
  			NETSHOPPING::NET_GAMESERVER_END_SERVICE(Global_4528329[iParam0 /*85*/].f_66);
  		}
  		func_119(&(Global_4528329[iParam0 /*85*/]));
  	}
  }
  
  void func_119(var uParam0)
  {
  	uParam0->f_66 = 0;
  	uParam0->f_66 = 2147483647;
  	uParam0->f_66.f_1 = 0;
  	uParam0->f_66.f_2 = 0;
  	uParam0->f_66.f_3 = -1593119440;
  	uParam0->f_66.f_4 = -2085313189;
  	uParam0->f_66.f_5 = 0;
  	uParam0->f_66.f_6 = 1227573907;
  	uParam0->f_66.f_7 = -1161833819;
  	*uParam0 = 0;
  	uParam0->f_1 = 0;
  	uParam0->f_13 = 0;
  	uParam0->f_2 = 0;
  	func_120(&(uParam0->f_14));
  	func_120(&(uParam0->f_14.f_13));
  	StringCopy(&(uParam0->f_14.f_26), "", 32);
  	StringCopy(&(uParam0->f_14.f_34), "", 24);
  	StringCopy(&(uParam0->f_14.f_40), "", 16);
  	StringCopy(&(uParam0->f_14.f_44), "", 32);
  	uParam0->f_3 = 0;
  	uParam0->f_4 = 0;
  	uParam0->f_5 = 0;
  	uParam0->f_6 = 0;
  	uParam0->f_7 = 0;
  	uParam0->f_8 = 0;
  	uParam0->f_66.f_8 = 0;
  	uParam0->f_66.f_9 = 0;
  	uParam0->f_66.f_10 = 0;
  	uParam0->f_66.f_11 = 0;
  	uParam0->f_66.f_13 = 0;
  	uParam0->f_66.f_12 = 0;
  	uParam0->f_66.f_14 = 0;
  	uParam0->f_66.f_15 = 0;
  	uParam0->f_66.f_16 = 0;
  	uParam0->f_66.f_18 = 0;
  }
  
  void func_120(var uParam0)
  {
  	*uParam0 = 0;
  	uParam0->f_1 = 0;
  	uParam0->f_2 = 0;
  	uParam0->f_3 = 0;
  	uParam0->f_4 = 0;
  	uParam0->f_5 = 0;
  	uParam0->f_6 = 0;
  	uParam0->f_7 = 0;
  	uParam0->f_8 = 0;
  	uParam0->f_9 = 0;
  	uParam0->f_10 = 0;
  	uParam0->f_11 = 0;
  	uParam0->f_12 = 0;
  }
  
  int func_121(int iParam0)
  {
  	if (iParam0 >= 0 && iParam0 < 15)
  	{
  		return Global_4528329[iParam0 /*85*/].f_66.f_5 == 1;
  	}
  	return 0;
  }
  
  void func_122(int iParam0, int iParam1)
  {
  	Global_2727588 = iParam1;
  	Global_2727587 = iParam0;
  }
  
  int func_123(int iParam0, int iParam1, int iParam2, int iParam3, int iParam4, int iParam5, bool bParam6, int iParam7, var uParam8, int iParam9, int iParam10)
  {
  	int iVar0;
  	
  	iVar0 = 0;
  	iVar0 = 0;
  	while (iVar0 < 15)
  	{
  		if (Global_4528329[iVar0 /*85*/].f_66.f_2 == 0)
  		{
  			if (!func_127())
  			{
  				iParam0 = iVar0 + 900;
  			}
  			Global_4528329[iVar0 /*85*/].f_66.f_2 = 1;
  			Global_4528329[iVar0 /*85*/].f_66.f_1 = iParam5;
  			Global_4528329[iVar0 /*85*/].f_66.f_3 = iParam1;
  			Global_4528329[iVar0 /*85*/].f_66.f_4 = iParam2;
  			Global_4528329[iVar0 /*85*/].f_66.f_7 = iParam3;
  			Global_4528329[iVar0 /*85*/].f_66.f_5 = 0;
  			Global_4528329[iVar0 /*85*/].f_66 = iParam0;
  			Global_4528329[iVar0 /*85*/].f_66.f_6 = iParam4;
  			Global_4528329[iVar0 /*85*/].f_66.f_11 = uParam8;
  			Global_4528329[iVar0 /*85*/].f_66.f_10 = iParam7;
  			Global_4528329[iVar0 /*85*/].f_66.f_13 = iParam9;
  			Global_4528329[iVar0 /*85*/].f_66.f_12 = 0;
  			Global_4528329[iVar0 /*85*/].f_66.f_14 = MISC::GET_FRAME_COUNT();
  			Global_4528329[iVar0 /*85*/].f_66.f_18 = 0;
  			Global_4529816 = 0;
  			if (bParam6)
  			{
  				Global_4528329[iVar0 /*85*/].f_66.f_5 = 1;
  			}
  			if (iParam1 == -1135378931 && iParam10)
  			{
  				func_124(Global_4528329[iVar0 /*85*/], iVar0);
  			}
  			return iVar0;
  		}
  		iVar0++;
  	}
  	return -1;
  }
  
  void func_124(struct<67> Param0, var uParam67, var uParam68, var uParam69, var uParam70, var uParam71, var uParam72, var uParam73, var uParam74, var uParam75, var uParam76, var uParam77, var uParam78, var uParam79, var uParam80, var uParam81, var uParam82, var uParam83, var uParam84, int iParam85)
  {
  	struct<3> Var0;
  	int iVar36;
  	
  	if (iParam85 < 0)
  	{
  		return;
  	}
  	Var0.f_2 = 2147483647;
  	Var0.f_0 = -1141953949;
  	Var0.f_1 = PLAYER::PLAYER_ID();
  	Var0.f_2 = { Param0.f_66 };
  	Var0.f_2.f_33 = iParam85;
  	iVar36 = func_126(Var0.f_1);
  	if ((Global_262145.f_23845 && !Global_262145.f_23846) && !Global_262145.f_23847)
  	{
  		return;
  	}
  	if (!iVar36 == 0)
  	{
  		func_125();
  		SCRIPT::_TRIGGER_SCRIPT_EVENT_2(1, &Var0, 36, iVar36);
  	}
  }
  
  void func_125()
  {
  	SCRIPT::REQUEST_SCRIPT("AM_ARENA_SHP");
  }
  
  var func_126(bool bParam0)
  {
  	var uVar0;
  	
  	if (iParam0 != -1)
  	{
  		MISC::SET_BIT(&uVar0, iParam0);
  	}
  	return uVar0;
  }
  
  int func_127()
  {
  	if (MISC::IS_PC_VERSION())
  	{
  		return NETSHOPPING::_NET_GAMESERVER_USE_SERVER_TRANSACTIONS();
  	}
  	return 0;
  }
  
  void func_128(int iParam0, int iParam1)
  {
  	int iVar0;
  	
  	if (NETWORK::NETWORK_IS_GAME_IN_PROGRESS())
  	{
  		iVar0 = func_169(PLAYER::PLAYER_ID());
  		if (iVar0 > 0)
  		{
  			if (iVar0 >= iParam0)
  			{
  				func_167(-iParam0, 1, 1, 0);
  			}
  			else
  			{
  				func_167(-iVar0, 1, 1, 0);
  			}
  		}
  	}
  	else
  	{
  		func_129(func_161(), iParam1, iParam0);
  	}
  }
  
  int func_129(int iParam0, int iParam1, int iParam2)
  {
  	if (func_160(iParam0) == 3)
  	{
  		return 0;
  	}
  	if (func_160(iParam0) == 4)
  	{
  		return 0;
  	}
  	return func_130(func_160(iParam0), 0, iParam1, iParam2, 0);
  }
  
  int func_130(int iParam0, int iParam1, int iParam2, int iParam3, bool bParam4)
  {
  	float fVar0;
  	bool bVar1;
  	int iVar2;
  	int iVar3;
  	int iVar4;
  	int iVar5;
  	
  	func_159();
  	if (iParam3 < 1)
  	{
  		return 0;
  	}
  	fVar0 = 1f;
  	switch (iParam1)
  	{
  		case 0:
  			switch (iParam0)
  			{
  				case 0:
  					func_158(99, 1);
  					func_157(joaat("sp0_money_total_spent"), iParam3);
  					break;
  				
  				case 1:
  					func_157(joaat("sp1_money_total_spent"), iParam3);
  					break;
  				
  				case 2:
  					func_157(joaat("sp2_money_total_spent"), iParam3);
  					break;
  			}
  			func_142(0);
  			switch (iParam2)
  			{
  				case 127:
  				case 129:
  				case 125:
  				case 126:
  				case 128:
  					if (func_139(5))
  					{
  						fVar0 = 0.9f;
  						bVar1 = 5;
  					}
  					break;
  				
  				case 63:
  				case 64:
  				case 65:
  				case 66:
  				case 67:
  				case 68:
  					switch (iParam0)
  					{
  						case 0:
  							func_157(joaat("sp0_money_spent_on_tattoos"), iParam3);
  							break;
  						
  						case 1:
  							func_157(joaat("sp1_money_spent_on_tattoos"), iParam3);
  							break;
  						
  						case 2:
  							func_157(joaat("sp2_money_spent_on_tattoos"), iParam3);
  							break;
  					}
  					if (func_139(1))
  					{
  						fVar0 = 0f;
  						bVar1 = true;
  					}
  					break;
  				
  				case 21:
  					switch (iParam0)
  					{
  						case 0:
  							func_157(joaat("sp0_money_spent_on_taxis"), iParam3);
  							break;
  						
  						case 1:
  							func_157(joaat("sp1_money_spent_on_taxis"), iParam3);
  							break;
  						
  						case 2:
  							func_157(joaat("sp2_money_spent_on_taxis"), iParam3);
  							break;
  					}
  					break;
  				
  				case 25:
  					switch (iParam0)
  					{
  						case 0:
  							func_157(joaat("sp0_money_spent_in_strip_clubs"), iParam3);
  							break;
  						
  						case 1:
  							func_157(joaat("sp1_money_spent_in_strip_clubs"), iParam3);
  							break;
  						
  						case 2:
  							func_157(joaat("sp2_money_spent_in_strip_clubs"), iParam3);
  							break;
  					}
  					break;
  				
  				case 99:
  				case 100:
  				case 101:
  				case 102:
  				case 104:
  				case 105:
  				case 106:
  				case 107:
  				case 108:
  				case 109:
  				case 110:
  				case 111:
  				case 112:
  				case 113:
  					switch (iParam0)
  					{
  						case 0:
  							func_157(joaat("sp0_money_spent_property"), iParam3);
  							break;
  						
  						case 1:
  							func_157(joaat("sp1_money_spent_property"), iParam3);
  							break;
  						
  						case 2:
  							func_157(joaat("sp2_money_spent_property"), iParam3);
  							break;
  					}
  					break;
  				
  				default:
  					switch (SCRIPT::GET_HASH_OF_THIS_SCRIPT_NAME())
  					{
  						case joaat("clothes_shop_sp"):
  							switch (iParam0)
  							{
  								case 0:
  									func_157(joaat("sp0_money_spent_in_clothes"), iParam3);
  									break;
  								
  								case 1:
  									func_157(joaat("sp1_money_spent_in_clothes"), iParam3);
  									break;
  								
  								case 2:
  									func_157(joaat("sp2_money_spent_in_clothes"), iParam3);
  									break;
  							}
  							break;
  						
  						case joaat("hairdo_shop_sp"):
  							switch (iParam0)
  							{
  								case 0:
  									func_157(joaat("sp0_money_spent_on_hairdos"), iParam3);
  									break;
  								
  								case 1:
  									func_157(joaat("sp1_money_spent_on_hairdos"), iParam3);
  									break;
  								
  								case 2:
  									func_157(joaat("sp2_money_spent_on_hairdos"), iParam3);
  									break;
  							}
  							if (func_139(0))
  							{
  								fVar0 = 0f;
  								bVar1 = false;
  							}
  							break;
  						
  						case joaat("gunclub_shop"):
  							switch (iParam0)
  							{
  								case 0:
  									func_157(joaat("sp0_money_spent_in_buying_guns"), iParam3);
  									break;
  								
  								case 1:
  									func_157(joaat("sp1_money_spent_in_buying_guns"), iParam3);
  									break;
  								
  								case 2:
  									func_157(joaat("sp2_money_spent_in_buying_guns"), iParam3);
  									break;
  							}
  							break;
  						
  						case joaat("carmod_shop"):
  							switch (iParam0)
  							{
  								case 0:
  									func_157(joaat("sp0_money_spent_car_mods"), iParam3);
  									break;
  								
  								case 1:
  									func_157(joaat("sp1_money_spent_car_mods"), iParam3);
  									break;
  								
  								case 2:
  									func_157(joaat("sp2_money_spent_car_mods"), iParam3);
  									break;
  							}
  							func_138(iParam3);
  							break;
  					}
  					break;
  			}
  			break;
  		
  		case 1:
  			switch (iParam0)
  			{
  				case 0:
  					func_158(95, iParam3);
  					break;
  				
  				case 1:
  					func_158(97, iParam3);
  					break;
  				
  				case 2:
  					func_158(96, iParam3);
  					break;
  			}
  			func_158(98, iParam3);
  			break;
  	}
  	iVar2 = iParam0;
  	iParam3 = SYSTEM::FLOOR((fVar0 * SYSTEM::TO_FLOAT(iParam3)));
  	iVar3 = 0;
  	iVar4 = iParam3;
  	if (fVar0 == 0f)
  	{
  		func_133(bVar1);
  		return 1;
  	}
  	else if (fVar0 != 1f)
  	{
  		func_133(bVar1);
  	}
  	iVar5 = (Global_59870[iVar2] + iParam3);
  	switch (iParam1)
  	{
  		case 1:
  			if (Global_59870[iVar2] >= 0 && iParam3 > 0)
  			{
  				if (iVar5 <= 0)
  				{
  					Global_59870[iVar2] = 2147483647;
  				}
  				else
  				{
  					Global_59870[iVar2] = (Global_59870[iVar2] + iParam3);
  				}
  			}
  			switch (iParam0)
  			{
  				case 0:
  					func_157(joaat("sp0_total_cash_earned"), iParam3);
  					break;
  				
  				case 1:
  					func_157(joaat("sp1_total_cash_earned"), iParam3);
  					break;
  				
  				case 2:
  					func_157(joaat("sp2_total_cash_earned"), iParam3);
  					break;
  			}
  			break;
  		
  		case 0:
  			if (!bParam4)
  			{
  				if ((Global_59870[iVar2] - iParam3) < 0)
  				{
  					return 0;
  				}
  			}
  			iVar3 = Global_59870[iVar2];
  			Global_59870[iVar2] = (Global_59870[iVar2] - iParam3);
  			if (bParam4)
  			{
  				iVar4 = iVar3;
  			}
  			break;
  	}
  	if (iParam2 == 1)
  	{
  		if (iVar4 > 20)
  		{
  		}
  	}
  	else
  	{
  		Global_112922.f_20564.f_233[iVar2 /*69*/].f_2[Global_112922.f_20564.f_233[iVar2 /*69*/].f_1 /*6*/] = iParam1;
  		Global_112922.f_20564.f_233[iVar2 /*69*/].f_2[Global_112922.f_20564.f_233[iVar2 /*69*/].f_1 /*6*/].f_1 = iParam2;
  		Global_112922.f_20564.f_233[iVar2 /*69*/].f_2[Global_112922.f_20564.f_233[iVar2 /*69*/].f_1 /*6*/].f_2 = iParam3;
  		Global_112922.f_20564.f_233[iVar2 /*69*/]++;
  		Global_112922.f_20564.f_233[iVar2 /*69*/].f_1++;
  		if (Global_112922.f_20564.f_233[iVar2 /*69*/].f_1 > 10)
  		{
  			Global_112922.f_20564.f_233[iVar2 /*69*/].f_1 = 0;
  		}
  	}
  	func_132(iParam0);
  	if (Global_42602 == 15)
  	{
  		func_131(0);
  	}
  	return 1;
  }
  
  void func_131(bool bParam0)
  {
  	int iVar0;
  	int iVar1;
  	
  	iVar0 = 0;
  	iVar1 = 0;
  	iVar0 = 0;
  	while (iVar0 < 3)
  	{
  		iVar1 = 0;
  		while (iVar1 < 11)
  		{
  			Global_112922.f_20564.f_233[iVar0 /*69*/].f_2[iVar1 /*6*/].f_3 = Global_112922.f_20564.f_233[iVar0 /*69*/].f_2[iVar1 /*6*/];
  			Global_112922.f_20564.f_233[iVar0 /*69*/].f_2[iVar1 /*6*/].f_4 = Global_112922.f_20564.f_233[iVar0 /*69*/].f_2[iVar1 /*6*/].f_1;
  			Global_112922.f_20564.f_233[iVar0 /*69*/].f_2[iVar1 /*6*/].f_5 = Global_112922.f_20564.f_233[iVar0 /*69*/].f_2[iVar1 /*6*/].f_2;
  			iVar1++;
  		}
  		iVar0++;
  	}
  	iVar0 = 0;
  	while (iVar0 < 10)
  	{
  		Global_59878[iVar0 /*3*/][0] = Global_112922.f_20564[iVar0];
  		Global_59878.f_31[iVar0 /*3*/][0] = Global_112922.f_20564.f_11[iVar0];
  		Global_59878.f_62[iVar0 /*3*/][0] = Global_112922.f_20564.f_22[iVar0];
  		Global_59878.f_93[iVar0 /*3*/][0] = Global_112922.f_20564.f_33[iVar0];
  		Global_59878.f_124[iVar0 /*3*/][0] = Global_112922.f_20564.f_44[iVar0];
  		Global_59878.f_155[iVar0 /*3*/][0] = Global_112922.f_20564.f_55[iVar0];
  		Global_59878.f_186[iVar0 /*3*/][0] = Global_112922.f_20564.f_66[iVar0];
  		Global_59878.f_217[iVar0 /*3*/][0] = Global_112922.f_20564.f_77[iVar0];
  		Global_59878.f_248[iVar0 /*3*/][0] = Global_112922.f_20564.f_88[iVar0];
  		if (!bParam0)
  		{
  			Global_59878[iVar0 /*3*/][1] = Global_112922.f_20564[iVar0];
  			Global_59878.f_31[iVar0 /*3*/][1] = Global_112922.f_20564.f_11[iVar0];
  			Global_59878.f_62[iVar0 /*3*/][1] = Global_112922.f_20564.f_22[iVar0];
  			Global_59878.f_93[iVar0 /*3*/][1] = Global_112922.f_20564.f_33[iVar0];
  			Global_59878.f_124[iVar0 /*3*/][1] = Global_112922.f_20564.f_44[iVar0];
  			Global_59878.f_155[iVar0 /*3*/][1] = Global_112922.f_20564.f_55[iVar0];
  			Global_59878.f_186[iVar0 /*3*/][1] = Global_112922.f_20564.f_66[iVar0];
  			Global_59878.f_217[iVar0 /*3*/][1] = Global_112922.f_20564.f_77[iVar0];
  			Global_59878.f_248[iVar0 /*3*/][1] = Global_112922.f_20564.f_88[iVar0];
  		}
  		iVar0++;
  	}
  }
  
  void func_132(int iParam0)
  {
  	int iVar0;
  	
  	iVar0 = Global_59870[iParam0];
  	switch (iParam0)
  	{
  		case 0:
  			STATS::STAT_SET_INT(joaat("sp0_total_cash"), iVar0, true);
  			break;
  		
  		case 1:
  			STATS::STAT_SET_INT(joaat("sp1_total_cash"), iVar0, true);
  			break;
  		
  		case 2:
  			STATS::STAT_SET_INT(joaat("sp2_total_cash"), iVar0, true);
  			break;
  	}
  }
  
  void func_133(bool bParam0)
  {
  	bool bVar0;
  	char cVar1[64];
  	
  	if (bParam0 == 8)
  	{
  		func_23(129, 0, -1);
  		return;
  	}
  	if (bParam0 == 9)
  	{
  		func_23(135, 0, -1);
  		return;
  	}
  	if (bParam0 == 10)
  	{
  		func_23(136, 0, -1);
  		return;
  	}
  	if (bParam0 == 11)
  	{
  		func_23(137, 0, -1);
  		return;
  	}
  	if (bParam0 == 12)
  	{
  		func_136(8271, 0, -1, 1, 0);
  		return;
  	}
  	if (bParam0 == 13)
  	{
  		func_136(8272, 0, -1, 1, 0);
  		return;
  	}
  	if (bParam0 == 14)
  	{
  		func_136(8273, 0, -1, 1, 0);
  		return;
  	}
  	if (bParam0 == 15)
  	{
  		func_136(8274, 0, -1, 1, 0);
  		return;
  	}
  	if (bParam0 == 16)
  	{
  		func_136(8275, 0, -1, 1, 0);
  		return;
  	}
  	if (bParam0 == 17)
  	{
  		func_136(8276, 0, -1, 1, 0);
  		return;
  	}
  	bVar0 = false;
  	if (!NETWORK::NETWORK_IS_GAME_IN_PROGRESS())
  	{
  		if (BitTest(Global_112922.f_20564.f_471, bParam0))
  		{
  			bVar0 = true;
  			MISC::CLEAR_BIT(&(Global_112922.f_20564.f_471), bParam0);
  		}
  	}
  	else if (BitTest(Global_112922.f_20564.f_471, bParam0) || BitTest(Global_2359296[func_135() /*5559*/].f_675.f_10, bParam0))
  	{
  		bVar0 = true;
  		MISC::CLEAR_BIT(&(Global_112922.f_20564.f_471), bParam0);
  		MISC::CLEAR_BIT(&(Global_2359296[func_135() /*5559*/].f_675.f_10), bParam0);
  	}
  	if (bVar0)
  	{
  		StringCopy(&cVar1, "CHAR_LIFEINVADER", 64);
  		HUD::BEGIN_TEXT_COMMAND_THEFEED_POST("COUP_RED");
  		HUD::ADD_TEXT_COMPONENT_SUBSTRING_TEXT_LABEL(func_134(bParam0));
  		HUD::END_TEXT_COMMAND_THEFEED_POST_MESSAGETEXT(&cVar1, &cVar1, true, 0, "", 0);
  	}
  }
  
  char* func_134(bool bParam0)
  {
  	switch (bParam0)
  	{
  		case 0:
  			return "COUP_HAIRC";
  		
  		case 1:
  			return "COUP_TATTOO";
  		
  		case 2:
  			return "COUP_WARSTOCK";
  		
  		case 3:
  			return "COUP_MOSPORT";
  		
  		case 4:
  			return "COUP_ELITAS";
  		
  		case 5:
  			return "COUP_MEDSPENS";
  		
  		case 6:
  			return "COUP_SPRUNK";
  		
  		case 7:
  			return "COUP_RESPRAY";
  		
  		case 8:
  			return "COUP_XMAS2017";
  		
  		case 9:
  			return "COUP_CAR_XMAS2018";
  		
  		case 10:
  			return "COUP_HELI_XMAS2018";
  		
  		case 11:
  			return "COUP_CAR2_XMAS2018";
  		
  		case 12:
  			return "COUP_CAS_ELITAS";
  		
  		case 13:
  			return "COUP_CAS_DOCKTEASE";
  		
  		case 14:
  			return "COUP_CAS_MOSPORT";
  		
  		case 15:
  			return "COUP_CAS_SSASA";
  		
  		case 16:
  			return "COUP_CAS_WARSTOCK";
  		
  		case 17:
  			return "COUP_CAS_PANDM";
  			break;
  		
  		default:
  			break;
  	}
  	return "";
  }
  
  int func_135()
  {
  	int iVar0;
  	
  	iVar0 = 0;
  	return iVar0;
  }
  
  void func_136(int iParam0, int iParam1, int iParam2, bool bParam3, bool bParam4)
  {
  	int iVar0;
  	
  	if (bParam4)
  	{
  	}
  	iVar0 = Global_2822371[iParam0 /*3*/][func_137(iParam2)];
  	if (iVar0 != 0)
  	{
  		STATS::STAT_SET_INT(iVar0, iParam1, bParam3);
  	}
  }
  
  int func_137(var uParam0)
  {
  	int iVar0;
  	int iVar1;
  	
  	iVar0 = uParam0;
  	if (iVar0 == -1)
  	{
  		iVar1 = func_10();
  		if (iVar1 > -1)
  		{
  			Global_2822083 = 0;
  			iVar0 = iVar1;
  		}
  		else
  		{
  			iVar0 = 0;
  			Global_2822083 = 1;
  		}
  	}
  	return iVar0;
  }
  
  void func_138(int iParam0)
  {
  	func_158(93, iParam0);
  	func_158(29, iParam0);
  	func_158(30, iParam0);
  }
  
  int func_139(int iParam0)
  {
  	int iVar0;
  	int iVar1;
  	int iVar2;
  	int iVar3;
  	int iVar4;
  	int iVar5;
  	int iVar6;
  	int iVar7;
  	int iVar8;
  	int iVar9;
  	int iVar10;
  	int iVar11;
  	
  	if (iParam0 == 8)
  	{
  		return func_141(129, -1);
  	}
  	if (iParam0 == 9)
  	{
  		return func_141(135, -1);
  	}
  	if (iParam0 == 10)
  	{
  		return func_141(136, -1);
  	}
  	if (iParam0 == 11)
  	{
  		return func_141(137, -1);
  	}
  	if (iParam0 == 12)
  	{
  		iVar0 = NETWORK::GET_CLOUD_TIME_AS_INT();
  		iVar1 = func_140(8271, -1, 0);
  		if (iVar1 == 0 || iVar0 >= iVar1)
  		{
  			return 0;
  		}
  		return 1;
  	}
  	if (iParam0 == 13)
  	{
  		iVar2 = NETWORK::GET_CLOUD_TIME_AS_INT();
  		iVar3 = func_140(8272, -1, 0);
  		if (iVar3 == 0 || iVar2 >= iVar3)
  		{
  			return 0;
  		}
  		return 1;
  	}
  	if (iParam0 == 14)
  	{
  		iVar4 = NETWORK::GET_CLOUD_TIME_AS_INT();
  		iVar5 = func_140(8273, -1, 0);
  		if (iVar5 == 0 || iVar4 >= iVar5)
  		{
  			return 0;
  		}
  		return 1;
  	}
  	if (iParam0 == 15)
  	{
  		iVar6 = NETWORK::GET_CLOUD_TIME_AS_INT();
  		iVar7 = func_140(8274, -1, 0);
  		if (iVar7 == 0 || iVar6 >= iVar7)
  		{
  			return 0;
  		}
  		return 1;
  	}
  	if (iParam0 == 16)
  	{
  		iVar8 = NETWORK::GET_CLOUD_TIME_AS_INT();
  		iVar9 = func_140(8275, -1, 0);
  		if (iVar9 == 0 || iVar8 >= iVar9)
  		{
  			return 0;
  		}
  		return 1;
  	}
  	if (iParam0 == 17)
  	{
  		iVar10 = NETWORK::GET_CLOUD_TIME_AS_INT();
  		iVar11 = func_140(8276, -1, 0);
  		if (iVar11 == 0 || iVar10 >= iVar11)
  		{
  			return 0;
  		}
  		return 1;
  	}
  	if (!NETWORK::NETWORK_IS_GAME_IN_PROGRESS())
  	{
  		return BitTest(Global_112922.f_20564.f_471, iParam0);
  	}
  	return BitTest(Global_2359296[func_135() /*5559*/].f_675.f_10, iParam0);
  }
  
  int func_140(int iParam0, int iParam1, int iParam2)
  {
  	int iVar0;
  	var uVar1;
  	
  	if (iParam0 != 12581)
  	{
  		if (iParam2 == 0)
  		{
  		}
  		iVar0 = Global_2822371[iParam0 /*3*/][func_137(iParam1)];
  		if (STATS::STAT_GET_INT(iVar0, &uVar1, -1))
  		{
  			return uVar1;
  		}
  	}
  	return 0;
  }
  
  bool func_141(int iParam0, int iParam1)
  {
  	if (iParam1 == -1)
  	{
  		iParam1 = func_10();
  	}
  	return STATS::_GET_PACKED_STAT_BOOL(iParam0, iParam1);
  }
  
  int func_142(bool bParam0)
  {
  	int iVar0;
  	int iVar1;
  	int iVar2;
  	
  	iVar1 = 0;
  	if (PLAYER::HAS_ACHIEVEMENT_BEEN_PASSED(27))
  	{
  		return 0;
  	}
  	if (STATS::STAT_GET_INT(joaat("sp0_money_total_spent"), &iVar0, -1))
  	{
  		iVar1 = (iVar1 + iVar0);
  	}
  	if (STATS::STAT_GET_INT(joaat("sp1_money_total_spent"), &iVar0, -1))
  	{
  		iVar1 = (iVar1 + iVar0);
  	}
  	if (STATS::STAT_GET_INT(joaat("sp2_money_total_spent"), &iVar0, -1))
  	{
  		iVar1 = (iVar1 + iVar0);
  	}
  	if (bParam0)
  	{
  	}
  	iVar2 = 0;
  	STATS::STAT_GET_INT(joaat("num_cash_spent"), &iVar2, -1);
  	if (iVar1 > 0 && (iVar2 / 2000000) != (iVar1 / 2000000))
  	{
  		STATS::STAT_SET_INT(joaat("num_cash_spent"), iVar1, true);
  		func_22(27, iVar1);
  	}
  	if (iVar1 < 200000000)
  	{
  		return 0;
  	}
  	func_143(27, 1);
  	return 1;
  }
  
  int func_143(int iParam0, int iParam1)
  {
  	if (iParam0 >= 78)
  	{
  		return 0;
  	}
  	return func_144(iParam0, iParam1);
  }
  
  int func_144(int iParam0, int iParam1)
  {
  	if (func_156(14) && !func_155(iParam0))
  	{
  		return 0;
  	}
  	if (PLAYER::HAS_ACHIEVEMENT_BEEN_PASSED(iParam0) && iParam1 == 1)
  	{
  		return 0;
  	}
  	if (Global_31761 != 0 && !Global_77858)
  	{
  		return 0;
  	}
  	if (func_154(&Global_4535627))
  	{
  		if (func_152(&Global_4535627, iParam0))
  		{
  			return 0;
  		}
  		if (func_145(&Global_4535627, iParam0))
  		{
  			return 1;
  		}
  	}
  	else
  	{
  		if (!PLAYER::GIVE_ACHIEVEMENT_TO_PLAYER(iParam0))
  		{
  			return 0;
  		}
  		if (PLAYER::HAS_ACHIEVEMENT_BEEN_PASSED(iParam0))
  		{
  			return 1;
  		}
  		return 0;
  	}
  	return 0;
  }
  
  int func_145(var uParam0, int iParam1)
  {
  	int iVar0;
  	var uVar1[78];
  	
  	if (PLAYER::HAS_ACHIEVEMENT_BEEN_PASSED(iParam1))
  	{
  		return 0;
  	}
  	if (func_156(14) && !func_155(iParam1))
  	{
  		return 0;
  	}
  	if (func_152(uParam0, iParam1))
  	{
  		return 0;
  	}
  	if (func_151(uParam0) < 0f)
  	{
  		func_150(uParam0, 0);
  	}
  	func_148(&uVar1);
  	iVar0 = 0;
  	iVar0 = 0;
  	while (iVar0 < (*uParam0 - 1))
  	{
  		uVar1[iVar0 + 1] = (*uParam0)[iVar0];
  		iVar0++;
  	}
  	func_146(&uVar1, iParam1);
  	iVar0 = 0;
  	iVar0 = 0;
  	while (iVar0 < *uParam0)
  	{
  		(*uParam0)[iVar0] = uVar1[iVar0];
  		iVar0++;
  	}
  	return 1;
  }
  
  int func_146(var uParam0, int iParam1)
  {
  	int iVar0;
  	
  	if (PLAYER::HAS_ACHIEVEMENT_BEEN_PASSED(iParam1))
  	{
  		return 0;
  	}
  	if (func_156(14) && !func_155(iParam1))
  	{
  		return 0;
  	}
  	if (func_152(uParam0, iParam1))
  	{
  		return 0;
  	}
  	if (func_151(uParam0) < 0f)
  	{
  		func_150(uParam0, 0);
  	}
  	iVar0 = 0;
  	while (iVar0 < *uParam0)
  	{
  		if (func_147(uParam0, iVar0))
  		{
  			(*uParam0)[iVar0] = iParam1;
  			return 1;
  		}
  		iVar0++;
  	}
  	return 0;
  }
  
  bool func_147(var uParam0, int iParam1)
  {
  	return (*uParam0)[iParam1] == 78;
  }
  
  void func_148(var uParam0)
  {
  	int iVar0;
  	
  	iVar0 = 0;
  	while (iVar0 < *uParam0)
  	{
  		func_149(uParam0, iVar0);
  		iVar0++;
  	}
  	func_150(uParam0, (Global_4535626 - 0.5f));
  }
  
  void func_149(var uParam0, int iParam1)
  {
  	(*uParam0)[iParam1] = 78;
  }
  
  void func_150(var uParam0, float fParam1)
  {
  	if (fParam1 == 0f)
  	{
  		uParam0->f_80 = 0f;
  	}
  	else
  	{
  		uParam0->f_80 = fParam1;
  	}
  }
  
  float func_151(var uParam0)
  {
  	return uParam0->f_80;
  }
  
  bool func_152(var uParam0, int iParam1)
  {
  	return func_153(uParam0, iParam1) != -1;
  }
  
  int func_153(var uParam0, int iParam1)
  {
  	int iVar0;
  	
  	iVar0 = 0;
  	while (iVar0 < *uParam0)
  	{
  		if ((*uParam0)[iVar0] == iParam1)
  		{
  			return iVar0;
  		}
  		iVar0++;
  	}
  	return -1;
  }
  
  bool func_154(var uParam0)
  {
  	return uParam0->f_79 == 1;
  }
  
  int func_155(int iParam0)
  {
  	switch (iParam0)
  	{
  		case 60:
  		case 61:
  		case 62:
  		case 63:
  		case 64:
  		case 65:
  		case 66:
  		case 67:
  		case 68:
  		case 69:
  			return 1;
  		
  		default:
  	}
  	return 0;
  }
  
  bool func_156(int iParam0)
  {
  	return Global_42602 == iParam0;
  }
  
  void func_157(int iParam0, int iParam1)
  {
  	int iVar0;
  	
  	STATS::STAT_GET_INT(iParam0, &iVar0, -1);
  	iVar0 = (iVar0 + iParam1);
  	STATS::STAT_SET_INT(iParam0, iVar0, true);
  }
  
  void func_158(int iParam0, int iParam1)
  {
  	int iVar0;
  	
  	if (iParam1 < 1)
  	{
  		return;
  	}
  	if (Global_58438[iParam0 /*7*/].f_2)
  	{
  		return;
  	}
  	if (NETWORK::NETWORK_IS_GAME_IN_PROGRESS())
  	{
  		return;
  	}
  	if (Global_58438[iParam0 /*7*/])
  	{
  		STATS::STAT_GET_INT(Global_58438[iParam0 /*7*/].f_1, &iVar0, -1);
  		iVar0 = (iVar0 + iParam1);
  		STATS::STAT_SET_INT(Global_58438[iParam0 /*7*/].f_1, iVar0, true);
  	}
  }
  
  void func_159()
  {
  	int iVar0;
  	
  	if (NETWORK::NETWORK_IS_SIGNED_IN())
  	{
  		STATS::STAT_GET_INT(joaat("sp0_total_cash"), &iVar0, -1);
  		if (!Global_59870[0] == iVar0)
  		{
  			Global_59870[0] = iVar0;
  		}
  		STATS::STAT_GET_INT(joaat("sp1_total_cash"), &iVar0, -1);
  		if (!Global_59870[1] == iVar0)
  		{
  			Global_59870[1] = iVar0;
  		}
  		STATS::STAT_GET_INT(joaat("sp2_total_cash"), &iVar0, -1);
  		if (!Global_59870[2] == iVar0)
  		{
  			Global_59870[2] = iVar0;
  		}
  	}
  }
  
  int func_160(int iParam0)
  {
  	return Global_1918[iParam0 /*29*/].f_17;
  }
  
  int func_161()
  {
  	func_162();
  	return Global_112922.f_2363.f_539.f_4321;
  }
  
  void func_162()
  {
  	int iVar0;
  	
  	if (ENTITY::DOES_ENTITY_EXIST(PLAYER::PLAYER_PED_ID()))
  	{
  		if (func_165(Global_112922.f_2363.f_539.f_4321) != ENTITY::GET_ENTITY_MODEL(PLAYER::PLAYER_PED_ID()))
  		{
  			iVar0 = func_164(PLAYER::PLAYER_PED_ID());
  			if (func_163(iVar0) && (!func_156(14) || Global_111873))
  			{
  				if (Global_112922.f_2363.f_539.f_4321 != iVar0 && func_163(Global_112922.f_2363.f_539.f_4321))
  				{
  					Global_112922.f_2363.f_539.f_4322 = Global_112922.f_2363.f_539.f_4321;
  				}
  				Global_112922.f_2363.f_539.f_4323 = iVar0;
  				Global_112922.f_2363.f_539.f_4321 = iVar0;
  				return;
  			}
  		}
  		else
  		{
  			if (Global_112922.f_2363.f_539.f_4321 != 145)
  			{
  				Global_112922.f_2363.f_539.f_4323 = Global_112922.f_2363.f_539.f_4321;
  			}
  			return;
  		}
  	}
  	Global_112922.f_2363.f_539.f_4321 = 145;
  }
  
  bool func_163(int iParam0)
  {
  	return iParam0 < 3;
  }
  
  int func_164(int iParam0)
  {
  	int iVar0;
  	int iVar1;
  	
  	if (ENTITY::DOES_ENTITY_EXIST(iParam0))
  	{
  		iVar1 = ENTITY::GET_ENTITY_MODEL(iParam0);
  		iVar0 = 0;
  		while (iVar0 <= 2)
  		{
  			if (func_165(iVar0) == iVar1)
  			{
  				return iVar0;
  			}
  			iVar0++;
  		}
  	}
  	return 145;
  }
  
  int func_165(int iParam0)
  {
  	if (func_163(iParam0))
  	{
  		return func_166(iParam0);
  	}
  	else if (iParam0 != 145)
  	{
  	}
  	return 0;
  }
  
  var func_166(int iParam0)
  {
  	return Global_1918[iParam0 /*29*/];
  }
  
  void func_167(int iParam0, int iParam1, int iParam2, float fParam3)
  {
  	int iVar0;
  	int iVar1;
  	float fVar2;
  	
  	if (iParam1 < 1)
  	{
  		iParam1 = 1;
  	}
  	iVar0 = (iParam0 * iParam1);
  	fParam3 = 0f;
  	if (iVar0 > 0)
  	{
  		fVar2 = (100f - fParam3);
  		iVar1 = SYSTEM::FLOOR((IntToFloat(iVar0) * (fVar2 / 100f)));
  	}
  	else
  	{
  		iVar1 = iVar0;
  	}
  	Global_1853131[PLAYER::PLAYER_ID() /*888*/].f_205.f_4 = iVar1;
  	Global_1853131[PLAYER::PLAYER_ID() /*888*/].f_205.f_3 = (Global_1853131[PLAYER::PLAYER_ID() /*888*/].f_205.f_3 + iVar1);
  	if (iParam2 == 1)
  	{
  		func_168(iVar1, 0);
  	}
  }
  
  void func_168(int iParam0, bool bParam1)
  {
  	if (bParam1)
  	{
  	}
  	iParam0 = iParam0;
  }
  
  var func_169(int iParam0)
  {
  	var uVar0;
  	
  	uVar0 = func_170(iParam0);
  	return uVar0;
  }
  
  int func_170(int iParam0)
  {
  	if (iParam0 > -1)
  	{
  		if (iParam0 == PLAYER::PLAYER_ID())
  		{
  			return MONEY::NETWORK_GET_VC_WALLET_BALANCE(-1);
  		}
  		else if (func_171(iParam0))
  		{
  			return Global_1853131[iParam0 /*888*/].f_205.f_3;
  		}
  		else
  		{
  			return 0;
  		}
  	}
  	return 0;
  }
  
  int func_171(int iParam0)
  {
  	if (iParam0 == -1)
  	{
  		return 0;
  	}
  	else
  	{
  		return BitTest(Global_2703660.f_1, iParam0);
  	}
  	return 1;
  }
  
  void func_172(int iParam0)
  {
  	if (!func_5(iParam0))
  	{
  		return;
  	}
  	if (VEHICLE::DOES_VEHICLE_HAVE_STUCK_VEHICLE_CHECK(iParam0))
  	{
  		VEHICLE::REMOVE_VEHICLE_STUCK_CHECK(iParam0);
  	}
  	if (DECORATOR::DECOR_EXIST_ON(iParam0, "Carwash_Vehicle_Decorator"))
  	{
  		DECORATOR::DECOR_REMOVE(iParam0, "Carwash_Vehicle_Decorator");
  	}
  	if (NETWORK::NETWORK_IS_GAME_IN_PROGRESS())
  	{
  		if (NETWORK::NETWORK_HAS_CONTROL_OF_ENTITY(iParam0))
  		{
  			VEHICLE::SET_VEHICLE_DOORS_LOCKED_FOR_ALL_PLAYERS(iParam0, false);
  		}
  	}
  }
  
  int func_173(int iParam0, var uParam1, int iParam2)
  {
  	int iVar0;
  	int iVar1;
  	
  	if (!func_332(iParam0))
  	{
  		return 0;
  	}
  	iVar0 = VEHICLE::GET_PED_IN_VEHICLE_SEAT(iParam0, -1, false);
  	if (!func_332(iParam0))
  	{
  		return 0;
  	}
  	if (VEHICLE::DOES_VEHICLE_HAVE_ROOF(iParam0))
  	{
  	}
  	if (VEHICLE::IS_VEHICLE_A_CONVERTIBLE(iParam0, true))
  	{
  	}
  	if (MISC::IS_STRING_NULL_OR_EMPTY(uParam1->f_335))
  	{
  		func_175(iParam0, uParam1, 0f, uParam1->f_336);
  		return 0;
  	}
  	if (!TASK::GET_IS_WAYPOINT_RECORDING_LOADED(uParam1->f_335))
  	{
  	}
  	if (Global_77858)
  	{
  		PLAYER::SET_PLAYER_CONTROL(PLAYER::PLAYER_ID(), false, 512);
  		if (NETWORK::NETWORK_HAS_CONTROL_OF_ENTITY(iParam0))
  		{
  			VEHICLE::SET_VEHICLE_DOORS_LOCKED_FOR_ALL_PLAYERS(iParam0, true);
  		}
  	}
  	VEHICLE::SET_VEHICLE_DOORS_SHUT(iParam0, false);
  	TASK::CLEAR_PED_TASKS(iVar0);
  	ENTITY::SET_ENTITY_VELOCITY(iParam0, 0f, 0f, 0f);
  	uParam1->f_350 = 2;
  	TASK::OPEN_SEQUENCE_TASK(&iVar1);
  	if (iParam2 > 0)
  	{
  		TASK::TASK_STAND_STILL(0, iParam2);
  		uParam1->f_350++;
  	}
  	TASK::TASK_VEHICLE_FOLLOW_WAYPOINT_RECORDING(0, iParam0, uParam1->f_335, 262144, 0, 546, -1, uParam1->f_336, false, 1.25f);
  	TASK::TASK_STAND_STILL(0, 3000);
  	TASK::CLOSE_SEQUENCE_TASK(iVar1);
  	TASK::TASK_PERFORM_SEQUENCE(iVar0, iVar1);
  	TASK::CLEAR_SEQUENCE_TASK(&iVar1);
  	TASK::VEHICLE_WAYPOINT_PLAYBACK_OVERRIDE_SPEED(iParam0, uParam1->f_336);
  	iLocal_71 = -1;
  	uParam1->f_358 = 0;
  	func_174();
  	VEHICLE::ADD_VEHICLE_STUCK_CHECK_WITH_WARP(iParam0, 0.2f, 1000, false, false, false, -1);
  	if (!DECORATOR::DECOR_EXIST_ON(iParam0, "Carwash_Vehicle_Decorator"))
  	{
  		DECORATOR::DECOR_SET_BOOL(iParam0, "Carwash_Vehicle_Decorator", true);
  	}
  	func_70(uParam1);
  	return 1;
  }
  
  void func_174()
  {
  	var uVar0;
  	var uVar3;
  	
  	if (PED::IS_PED_IN_ANY_VEHICLE(PLAYER::PLAYER_PED_ID(), false))
  	{
  		MISC::GET_MODEL_DIMENSIONS(ENTITY::GET_ENTITY_MODEL(PED::GET_VEHICLE_PED_IS_IN(PLAYER::PLAYER_PED_ID(), false)), &uVar0, &uVar3);
  		if (func_5(PED::GET_VEHICLE_PED_IS_IN(PLAYER::PLAYER_PED_ID(), false)))
  		{
  		}
  	}
  }
  
  void func_175(int iParam0, var uParam1, float fParam2, float fParam3)
  {
  	struct<3> Var0;
  	float fVar3;
  	int iVar4;
  	
  	Var0 = { func_178(*(uParam1[0 /*3*/]), *(uParam1[1 /*3*/]), fParam2, 0) };
  	fVar3 = func_177(*(uParam1[0 /*3*/]), *(uParam1[1 /*3*/]), 1);
  	func_176(iParam0, Var0 + Vector(0.1f, 0f, 0f));
  	ENTITY::SET_ENTITY_HEADING(iParam0, fVar3);
  	ENTITY::FREEZE_ENTITY_POSITION(iParam0, false);
  	if (fParam3 == 0f)
  	{
  		return;
  	}
  	VEHICLE::SET_VEHICLE_ENGINE_ON(iParam0, true, true, false);
  	if (fParam2 > 1f)
  	{
  		return;
  	}
  	VEHICLE::SET_VEHICLE_FORWARD_SPEED(iParam0, fParam3);
  	iVar4 = VEHICLE::GET_PED_IN_VEHICLE_SEAT(iParam0, -1, false);
  	if (!func_69(iVar4))
  	{
  		return;
  	}
  	Var0 = { func_178(*(uParam1[0 /*3*/]), *(uParam1[1 /*3*/]), 1.1f, 0) };
  	TASK::TASK_VEHICLE_DRIVE_TO_COORD(iVar4, iParam0, Var0, fParam3, 0, ENTITY::GET_ENTITY_MODEL(iParam0), 262144, 0.5f, 1000f);
  }
  
  Vector3 func_176(int iParam0, struct<3> Param1)
  {
  	var uVar0;
  	
  	Param1.f_2 = (Param1.f_2 + 0.15f);
  	if (MISC::GET_GROUND_Z_FOR_3D_COORD(Param1, &uVar0, false, false))
  	{
  		Param1.f_2 = uVar0;
  	}
  	if (func_332(iParam0))
  	{
  		ENTITY::SET_ENTITY_COORDS(iParam0, Param1, true, false, false, true);
  	}
  	return Param1;
  }
  
  float func_177(struct<2> Param0, var uParam2, struct<2> Param3, var uParam5, int iParam6)
  {
  	float fVar0;
  	float fVar1;
  	float fVar2;
  	
  	fVar1 = (Param3.f_0 - Param0.f_0);
  	fVar2 = (Param3.f_1 - Param0.f_1);
  	if (fVar2 != 0f)
  	{
  		fVar0 = MISC::ATAN2(fVar1, fVar2);
  	}
  	else if (fVar1 < 0f)
  	{
  		fVar0 = -90f;
  	}
  	else
  	{
  		fVar0 = 90f;
  	}
  	if (iParam6 == 1)
  	{
  		fVar0 = (fVar0 * -1f);
  		if (fVar0 < 0f)
  		{
  			fVar0 = (fVar0 + 360f);
  		}
  	}
  	return fVar0;
  }
  
  Vector3 func_178(struct<3> Param0, struct<3> Param3, float fParam6, bool bParam7)
  {
  	if (bParam7)
  	{
  		fParam6 = func_91(fParam6, 0f, 1f);
  	}
  	return Param0 + Vector(fParam6, fParam6, fParam6) * Param3 - Param0;
  }
  
  void func_179()
  {
  	struct<3> Var0;
  	float fVar3;
  	
  	func_208(&Local_76, -700.1f, -922.2f, 18.4f, -700.1f, -943.6f, 18.7f);
  	func_207(&Local_76, -700.1f, -926.6f, 18.7f, -699.9344f, -939.5706f, 18.01449f);
  	func_206(&Local_76, -699.9368f, -940.4027f, 20f, -699.8781f, -926.0388f, 20f);
  	func_205(-701.15f, -947.1219f, 18.49169f, 6.2f, &(Local_76.f_352), &(Local_76.f_355));
  	func_204(&Local_76, "carwash2_r");
  	Local_76.f_338 = 0.6f;
  	Local_76.f_351 = 2;
  	Local_76.f_21 = { -700.0682f, -921.149f, 18.7028f };
  	Local_76.f_337 = 4f;
  	func_200(&(Local_76.f_172[0 /*23*/]), -701.0261f, -918.9723f, 21.3734f, 1.9948f, 0f, -121.2536f, -701.1696f, -918.9987f, 20.313f, -2.3997f, 0f, -166.3155f, func_60(Global_77858, 5000, 8500), 0);
  	func_199(&(Local_76.f_172[0 /*23*/]), 50f, 0);
  	func_198(&(Local_76.f_172[0 /*23*/]), 0.105457f);
  	func_200(&(Local_76.f_172[1 /*23*/]), -701.5583f, -942.6389f, 20.2026f, -4.1156f, 0f, -23.5382f, -698.8515f, -942.399f, 20.1769f, -4.1156f, 0f, 16.0096f, 8500, 0);
  	func_199(&(Local_76.f_172[1 /*23*/]), 50f, 0);
  	func_198(&(Local_76.f_172[1 /*23*/]), 0.74f);
  	func_332(PLAYER::PLAYER_PED_ID());
  	if (!Global_77858)
  	{
  		func_197();
  	}
  	func_200(&(Local_76.f_172[6 /*23*/]), -699.0652f, -951.9319f, 18.9507f, 7.8579f, 0f, 8.784f, -698.65f, -952.932f, 19.26f, 0.7437f, 0f, 23.8817f, 7200, 0.45f);
  	func_199(&(Local_76.f_172[6 /*23*/]), 40.022f, 0);
  	Var0 = { PED::GET_PED_BONE_COORDS(PLAYER::PLAYER_PED_ID(), 31086, 0f, 0f, 0f) };
  	if (MISC::GET_GROUND_Z_FOR_3D_COORD(Var0, &fVar3, false, false) && (Var0.f_2 - fVar3) > 1.35f)
  	{
  		Local_76.f_342 = 1;
  	}
  	if (!Global_77858)
  	{
  		func_34(&(Local_76.f_172[0 /*23*/]), &(Local_76.f_340), Local_76.f_342, 1, 1, 1);
  	}
  	func_196(&Local_76, 190);
  	if (NETWORK::NETWORK_IS_GAME_IN_PROGRESS())
  	{
  		func_195(&uLocal_439, Local_76.f_335);
  	}
  	else
  	{
  		func_188(&uLocal_439, Local_76.f_335);
  	}
  	func_187(&(Local_76.f_30), -699.97f, -927.7f, 20.8279f, 0f, 4.85f, 0, 0.3f);
  	func_186(&(Local_76.f_30), "ent_amb_car_wash_jet_soap");
  	func_185(60);
  	func_184(&(Local_76.f_120), -699.97f, -935f, 17.9f, 180f, 3.6f, 0.2f);
  	func_183(&(Local_76.f_93), -699.97f, -931.7f, 21.3f, 0f, 18.56449f);
  	func_185(60);
  	func_187(&(Local_76.f_51), -699.97f, -938.8f, 20.8279f, 180f, 4.85f, 0, 0.3f);
  	func_186(&(Local_76.f_51), "ent_amb_car_wash_jet");
  	func_185(60);
  	func_180(&uLocal_439);
  	TASK::SET_SCENARIO_TYPE_ENABLED("DRIVE", false);
  	TASK::SET_SCENARIO_TYPE_ENABLED("WORLD_VEHICLE_DRIVE_SOLO", false);
  	if (NETWORK::NETWORK_IS_GAME_IN_PROGRESS())
  	{
  	}
  }
  
  void func_180(var uParam0)
  {
  	func_181(uParam0, 0);
  	func_181(uParam0, 1);
  	func_181(uParam0, 2);
  }
  
  int func_181(var uParam0, bool bParam1)
  {
  	if (!BitTest(uParam0->f_114, bParam1) || (*uParam0)[bParam1 /*7*/] == 0)
  	{
  		return 1;
  	}
  	switch ((*uParam0)[bParam1 /*7*/])
  	{
  		case 1:
  			if (PED::HAS_ACTION_MODE_ASSET_LOADED((uParam0[bParam1 /*7*/])->f_3))
  			{
  				PED::REMOVE_ACTION_MODE_ASSET((uParam0[bParam1 /*7*/])->f_3);
  			}
  			break;
  		
  		case 2:
  			if (STREAMING::HAS_ANIM_DICT_LOADED((uParam0[bParam1 /*7*/])->f_3))
  			{
  				STREAMING::REMOVE_ANIM_DICT((uParam0[bParam1 /*7*/])->f_3);
  			}
  			break;
  		
  		case 3:
  			if (STREAMING::HAS_ANIM_SET_LOADED((uParam0[bParam1 /*7*/])->f_3))
  			{
  				STREAMING::REMOVE_ANIM_SET((uParam0[bParam1 /*7*/])->f_3);
  			}
  			break;
  		
  		case 4:
  			AUDIO::RELEASE_SCRIPT_AUDIO_BANK();
  			break;
  		
  		case 5:
  			break;
  		
  		case 6:
  			if (STREAMING::HAS_MODEL_LOADED((uParam0[bParam1 /*7*/])->f_1))
  			{
  				STREAMING::SET_MODEL_AS_NO_LONGER_NEEDED((uParam0[bParam1 /*7*/])->f_1);
  			}
  			break;
  		
  		case 7:
  			if (STREAMING::HAS_PTFX_ASSET_LOADED())
  			{
  				STREAMING::REMOVE_PTFX_ASSET();
  			}
  			break;
  		
  		case 8:
  			if (HUD::HAS_ADDITIONAL_TEXT_LOADED((uParam0[bParam1 /*7*/])->f_5))
  			{
  				HUD::CLEAR_ADDITIONAL_TEXT((uParam0[bParam1 /*7*/])->f_5, false);
  			}
  			break;
  		
  		case 9:
  			if (GRAPHICS::HAS_STREAMED_TEXTURE_DICT_LOADED((uParam0[bParam1 /*7*/])->f_3))
  			{
  				GRAPHICS::SET_STREAMED_TEXTURE_DICT_AS_NO_LONGER_NEEDED((uParam0[bParam1 /*7*/])->f_3);
  			}
  			break;
  		
  		case 10:
  			if (VEHICLE::HAS_VEHICLE_RECORDING_BEEN_LOADED((uParam0[bParam1 /*7*/])->f_5, (uParam0[bParam1 /*7*/])->f_3))
  			{
  				VEHICLE::REMOVE_VEHICLE_RECORDING((uParam0[bParam1 /*7*/])->f_5, (uParam0[bParam1 /*7*/])->f_3);
  			}
  			break;
  		
  		case 11:
  			if (TASK::GET_IS_WAYPOINT_RECORDING_LOADED((uParam0[bParam1 /*7*/])->f_3))
  			{
  				TASK::REMOVE_WAYPOINT_RECORDING((uParam0[bParam1 /*7*/])->f_3);
  			}
  			break;
  		
  		case 12:
  			if (WEAPON::HAS_WEAPON_ASSET_LOADED((uParam0[bParam1 /*7*/])->f_2))
  			{
  				WEAPON::REMOVE_WEAPON_ASSET((uParam0[bParam1 /*7*/])->f_2);
  			}
  			break;
  		
  		default:
  			return 0;
  	}
  	switch ((*uParam0)[bParam1 /*7*/])
  	{
  		case 6:
  			break;
  		
  		case 7:
  			break;
  		
  		case 8:
  			break;
  		
  		case 12:
  			break;
  		
  		default:
  			break;
  	}
  	func_182(uParam0[bParam1 /*7*/]);
  	return 1;
  }
  
  void func_182(var uParam0)
  {
  	*uParam0 = 0;
  	uParam0->f_1 = 0;
  	uParam0->f_2 = 0;
  	uParam0->f_3 = 0;
  	uParam0->f_4 = 0;
  	uParam0->f_5 = 0;
  }
  
  void func_183(var uParam0, struct<3> Param1, float fParam4, float fParam5)
  {
  	float fVar0;
  	
  	uParam0->f_2 = { Param1 };
  	uParam0->f_19 = OBJECT::CREATE_OBJECT(joaat("prop_carwash_roller_horz"), Param1, false, true, false);
  	uParam0->f_5 = { Param1 };
  	uParam0->f_23 = Param1.f_2;
  	uParam0->f_24 = Param1.f_2;
  	uParam0->f_11 = fParam4;
  	uParam0->f_1 = 1;
  	uParam0->f_25 = (MISC::GET_GAME_TIMER() + MISC::GET_RANDOM_INT_IN_RANGE(1, iLocal_40));
  	uParam0->f_26 = (MISC::GET_GAME_TIMER() + MISC::GET_RANDOM_INT_IN_RANGE(2, iLocal_41));
  	uParam0->f_15 = 1.25f;
  	if (fParam5 == 0f)
  	{
  		if (MISC::GET_GROUND_Z_FOR_3D_COORD(Param1, &fVar0, false, false))
  		{
  			if (fVar0 != 0f && fVar0 != -200f)
  			{
  				uParam0->f_22 = (fVar0 + 0.55f);
  			}
  		}
  	}
  	else
  	{
  		uParam0->f_22 = fParam5;
  	}
  	if (func_332(uParam0->f_19))
  	{
  		ENTITY::SET_ENTITY_HEADING(uParam0->f_19, fParam4);
  		ENTITY::FREEZE_ENTITY_POSITION(uParam0->f_19, true);
  		ENTITY::SET_ENTITY_COLLISION(uParam0->f_19, true, false);
  		ENTITY::SET_ENTITY_INVINCIBLE(uParam0->f_19, true);
  	}
  	func_99(uParam0, 1);
  }
  
  void func_184(var uParam0, struct<3> Param1, float fParam4, float fParam5, float fParam6)
  {
  	var uVar0;
  	struct<3> Var1;
  	
  	if (MISC::GET_GROUND_Z_FOR_3D_COORD(Param1 + Vector(0.3f, 0f, 0f), &uVar0, false, false))
  	{
  	}
  	uParam0->f_24 = { Param1 };
  	uParam0->f_30 = fParam5;
  	Param1.f_2 = (Param1.f_2 + fParam6);
  	uParam0->f_24 = { Param1 };
  	uParam0->f_1 = OBJECT::CREATE_OBJECT(joaat("prop_ld_test_01"), Param1, false, true, false);
  	if (func_5(uParam0->f_1))
  	{
  		ENTITY::FREEZE_ENTITY_POSITION(uParam0->f_1, true);
  		ENTITY::SET_ENTITY_COORDS_NO_OFFSET(uParam0->f_1, Param1, false, false, true);
  		ENTITY::SET_ENTITY_HEADING(uParam0->f_1, fParam4);
  		ENTITY::SET_ENTITY_COLLISION(uParam0->f_1, false, false);
  	}
  	Var1 = { ENTITY::GET_OFFSET_FROM_ENTITY_IN_WORLD_COORDS(uParam0->f_1, (-fParam5 / 2f), 0f, 1.5f) };
  	uParam0->f_3[0] = OBJECT::CREATE_OBJECT(joaat("prop_carwash_roller_vert"), Var1, false, true, false);
  	uParam0->f_12[0] = (-fParam5 / 2f);
  	uParam0->f_9[0] = (-fParam5 / 2f);
  	ENTITY::FREEZE_ENTITY_POSITION(uParam0->f_3[0], true);
  	ENTITY::SET_ENTITY_COLLISION(uParam0->f_3[0], true, false);
  	ENTITY::SET_ENTITY_INVINCIBLE(uParam0->f_3[0], true);
  	ENTITY::SET_ENTITY_HAS_GRAVITY(uParam0->f_3[0], false);
  	ENTITY::SET_ENTITY_COORDS(uParam0->f_3[0], Var1, true, false, false, true);
  	Var1 = { ENTITY::GET_OFFSET_FROM_ENTITY_IN_WORLD_COORDS(uParam0->f_1, (fParam5 / 2f), 0f, 1.5f) };
  	uParam0->f_3[1] = OBJECT::CREATE_OBJECT(joaat("prop_carwash_roller_vert"), Var1, false, true, false);
  	uParam0->f_12[1] = (fParam5 / 2f);
  	uParam0->f_9[1] = (fParam5 / 2f);
  	ENTITY::FREEZE_ENTITY_POSITION(uParam0->f_3[1], true);
  	ENTITY::SET_ENTITY_COLLISION(uParam0->f_3[1], true, false);
  	ENTITY::SET_ENTITY_INVINCIBLE(uParam0->f_3[1], true);
  	ENTITY::SET_ENTITY_HAS_GRAVITY(uParam0->f_3[1], false);
  	ENTITY::SET_ENTITY_COORDS(uParam0->f_3[1], Var1, true, false, false, true);
  	uParam0->f_15 = 0f;
  	uParam0->f_2 = 0;
  	*uParam0 = 1;
  	uParam0->f_18[0] = -1.275f;
  	uParam0->f_21[0] = 1.25f;
  	uParam0->f_18[1] = 0f;
  	uParam0->f_21[1] = 0.62f;
  	uParam0->f_12[0] = -1.75f;
  	uParam0->f_12[1] = 1.75f;
  	uParam0->f_44 = 0;
  }
  
  void func_185(int iParam0)
  {
  	int iVar0;
  	
  	if (!NETWORK::NETWORK_IS_GAME_IN_PROGRESS())
  	{
  		return;
  	}
  	iVar0 = NETWORK::GET_NETWORK_TIME();
  	while (MISC::ABSI(NETWORK::GET_TIME_DIFFERENCE(NETWORK::GET_NETWORK_TIME(), iVar0)) < iParam0)
  	{
  		SYSTEM::WAIT(0);
  	}
  }
  
  void func_186(var uParam0, char* sParam1)
  {
  	uParam0->f_13 = sParam1;
  }
  
  void func_187(var uParam0, struct<3> Param1, float fParam4, float fParam5, int iParam6, float fParam7)
  {
  	float fVar0;
  	
  	if (MISC::IS_STRING_NULL_OR_EMPTY(uParam0->f_13))
  	{
  		uParam0->f_13 = "ent_amb_car_wash_jet";
  	}
  	*uParam0 = 1;
  	uParam0->f_8 = (fParam5 / 2f);
  	uParam0->f_3 = OBJECT::CREATE_OBJECT(joaat("prop_ld_test_01"), Param1, false, true, false);
  	uParam0->f_1 = iParam6;
  	if (func_332(uParam0->f_3))
  	{
  		ENTITY::SET_ENTITY_HEADING(uParam0->f_3, fParam4);
  		ENTITY::FREEZE_ENTITY_POSITION(uParam0->f_3, true);
  	}
  	if (MISC::GET_GROUND_Z_FOR_3D_COORD(Param1, &fVar0, false, false))
  	{
  		uParam0->f_9 = MISC::ABSF((Param1.f_2 - fVar0));
  	}
  	uParam0->f_7 = fParam7;
  	uParam0->f_10 = { Param1 };
  	uParam0->f_10.f_2 = fVar0;
  }
  
  void func_188(var uParam0, char* sParam1)
  {
  	func_194(uParam0, 0, joaat("prop_carwash_roller_horz"));
  	func_194(uParam0, 1, joaat("prop_carwash_roller_vert"));
  	func_194(uParam0, 2, joaat("prop_ld_test_01"));
  	func_193(uParam0, 3, 4, "SCRIPT\CARWASH", 0);
  	func_192(uParam0, 4);
  	if (!MISC::IS_STRING_NULL_OR_EMPTY(sParam1))
  	{
  		func_193(uParam0, 5, 11, sParam1, 0);
  	}
  	while (!func_189(uParam0))
  	{
  		PAD::SET_INPUT_EXCLUSIVE(2, 51);
  		PAD::SET_INPUT_EXCLUSIVE(2, 75);
  		func_111();
  		SYSTEM::WAIT(0);
  	}
  }
  
  bool func_189(var uParam0)
  {
  	bool bVar0;
  	int iVar1;
  	
  	if (MISC::GET_GAME_TIMER() > uParam0->f_116 || uParam0->f_116 == 0)
  	{
  		if (uParam0->f_115 < *uParam0)
  		{
  			func_191(uParam0, uParam0->f_115);
  			uParam0->f_115++;
  		}
  		uParam0->f_116 = MISC::GET_GAME_TIMER() + 32;
  	}
  	bVar0 = false;
  	while (bVar0 < *uParam0)
  	{
  		if (func_190(uParam0, bVar0))
  		{
  			iVar1++;
  		}
  		bVar0++;
  	}
  	return iVar1 == *uParam0;
  }
  
  int func_190(var uParam0, bool bParam1)
  {
  	if (BitTest(uParam0->f_114, bParam1))
  	{
  		return 1;
  	}
  	if ((*uParam0)[bParam1 /*7*/] == 0)
  	{
  		return 1;
  	}
  	if (!BitTest(uParam0->f_113, bParam1))
  	{
  		return 0;
  	}
  	if (MISC::GET_GAME_TIMER() > (uParam0[bParam1 /*7*/])->f_6)
  	{
  		uParam0->f_117 = 1;
  		return 1;
  	}
  	switch ((*uParam0)[bParam1 /*7*/])
  	{
  		case 0:
  			return 1;
  		
  		case 1:
  			if (!PED::HAS_ACTION_MODE_ASSET_LOADED((uParam0[bParam1 /*7*/])->f_3))
  			{
  				return 0;
  			}
  			break;
  		
  		case 2:
  			if (!STREAMING::HAS_ANIM_DICT_LOADED((uParam0[bParam1 /*7*/])->f_3))
  			{
  				return 0;
  			}
  			break;
  		
  		case 3:
  			if (!STREAMING::HAS_ANIM_SET_LOADED((uParam0[bParam1 /*7*/])->f_3))
  			{
  				return 0;
  			}
  			break;
  		
  		case 4:
  			if (!AUDIO::REQUEST_SCRIPT_AUDIO_BANK((uParam0[bParam1 /*7*/])->f_3, false, -1))
  			{
  				return 0;
  			}
  			break;
  		
  		case 5:
  			if (!AUDIO::LOAD_STREAM((uParam0[bParam1 /*7*/])->f_3, 0))
  			{
  				return 0;
  			}
  			break;
  		
  		case 6:
  			if (!STREAMING::HAS_MODEL_LOADED((uParam0[bParam1 /*7*/])->f_1))
  			{
  				return 0;
  			}
  			break;
  		
  		case 7:
  			if (!STREAMING::HAS_PTFX_ASSET_LOADED())
  			{
  				return 0;
  			}
  			break;
  		
  		case 8:
  			if (!HUD::HAS_ADDITIONAL_TEXT_LOADED((uParam0[bParam1 /*7*/])->f_5))
  			{
  				return 0;
  			}
  			break;
  		
  		case 9:
  			if (!GRAPHICS::HAS_STREAMED_TEXTURE_DICT_LOADED((uParam0[bParam1 /*7*/])->f_3))
  			{
  				return 0;
  			}
  			break;
  		
  		case 10:
  			if (!VEHICLE::HAS_VEHICLE_RECORDING_BEEN_LOADED((uParam0[bParam1 /*7*/])->f_5, (uParam0[bParam1 /*7*/])->f_3))
  			{
  				return 0;
  			}
  			break;
  		
  		case 11:
  			if (!TASK::GET_IS_WAYPOINT_RECORDING_LOADED((uParam0[bParam1 /*7*/])->f_3))
  			{
  				return 0;
  			}
  			break;
  		
  		case 12:
  			if (!WEAPON::HAS_WEAPON_ASSET_LOADED((uParam0[bParam1 /*7*/])->f_2))
  			{
  				return 0;
  			}
  			break;
  		
  		default:
  			return 0;
  	}
  	MISC::SET_BIT(&(uParam0->f_114), bParam1);
  	switch ((*uParam0)[bParam1 /*7*/])
  	{
  		case 6:
  			break;
  		
  		case 7:
  			break;
  		
  		case 8:
  			break;
  		
  		case 12:
  			break;
  		
  		default:
  			break;
  	}
  	return 1;
  }
  
  int func_191(var uParam0, bool bParam1)
  {
  	if (BitTest(uParam0->f_113, iParam1) || BitTest(uParam0->f_114, iParam1))
  	{
  		return 1;
  	}
  	switch ((*uParam0)[iParam1 /*7*/])
  	{
  		case 1:
  			PED::REQUEST_ACTION_MODE_ASSET((uParam0[iParam1 /*7*/])->f_3);
  			break;
  		
  		case 2:
  			STREAMING::REQUEST_ANIM_DICT((uParam0[iParam1 /*7*/])->f_3);
  			break;
  		
  		case 3:
  			STREAMING::REQUEST_ANIM_SET((uParam0[iParam1 /*7*/])->f_3);
  			break;
  		
  		case 4:
  			AUDIO::REQUEST_SCRIPT_AUDIO_BANK((uParam0[iParam1 /*7*/])->f_3, false, -1);
  			break;
  		
  		case 5:
  			AUDIO::LOAD_STREAM((uParam0[iParam1 /*7*/])->f_3, (uParam0[iParam1 /*7*/])->f_4);
  			break;
  		
  		case 6:
  			STREAMING::REQUEST_MODEL((uParam0[iParam1 /*7*/])->f_1);
  			break;
  		
  		case 7:
  			STREAMING::REQUEST_PTFX_ASSET();
  			break;
  		
  		case 8:
  			HUD::REQUEST_ADDITIONAL_TEXT((uParam0[iParam1 /*7*/])->f_3, (uParam0[iParam1 /*7*/])->f_5);
  			break;
  		
  		case 9:
  			GRAPHICS::REQUEST_STREAMED_TEXTURE_DICT((uParam0[iParam1 /*7*/])->f_3, false);
  			break;
  		
  		case 10:
  			VEHICLE::REQUEST_VEHICLE_RECORDING((uParam0[iParam1 /*7*/])->f_5, (uParam0[iParam1 /*7*/])->f_3);
  			break;
  		
  		case 11:
  			TASK::REQUEST_WAYPOINT_RECORDING((uParam0[iParam1 /*7*/])->f_3);
  			break;
  		
  		case 12:
  			WEAPON::REQUEST_WEAPON_ASSET((uParam0[iParam1 /*7*/])->f_2, 31, 0);
  			break;
  		
  		default:
  			return 0;
  	}
  	switch ((*uParam0)[iParam1 /*7*/])
  	{
  		case 6:
  			break;
  		
  		case 7:
  			break;
  		
  		case 8:
  			break;
  		
  		case 12:
  			break;
  		
  		default:
  			break;
  	}
  	uParam0->f_117 = 0;
  	(uParam0[iParam1 /*7*/])->f_6 = MISC::GET_GAME_TIMER() + 10000;
  	MISC::SET_BIT(&(uParam0->f_113), iParam1);
  	return 1;
  }
  
  int func_192(var uParam0, int iParam1)
  {
  	if (BitTest(uParam0->f_113, iParam1) || BitTest(uParam0->f_114, iParam1))
  	{
  		return 1;
  	}
  	func_182(uParam0[iParam1 /*7*/]);
  	(*uParam0)[iParam1 /*7*/] = 7;
  	(uParam0[iParam1 /*7*/])->f_3 = "script";
  	return 1;
  }
  
  int func_193(var uParam0, int iParam1, int iParam2, char* sParam3, char* sParam4)
  {
  	if (BitTest(uParam0->f_113, iParam1) || BitTest(uParam0->f_114, iParam1))
  	{
  		return 1;
  	}
  	if (MISC::IS_STRING_NULL_OR_EMPTY(sParam3))
  	{
  		return 0;
  	}
  	switch (iParam2)
  	{
  		case 1:
  			PED::REQUEST_ACTION_MODE_ASSET(sParam3);
  			break;
  		
  		case 2:
  			STREAMING::REQUEST_ANIM_DICT(sParam3);
  			break;
  		
  		case 3:
  			STREAMING::REQUEST_ANIM_SET(sParam3);
  			break;
  		
  		case 4:
  			AUDIO::REQUEST_SCRIPT_AUDIO_BANK(sParam3, false, -1);
  			break;
  		
  		case 5:
  			AUDIO::LOAD_STREAM(sParam3, sParam4);
  			break;
  		
  		case 9:
  			GRAPHICS::REQUEST_STREAMED_TEXTURE_DICT(sParam3, false);
  			break;
  		
  		case 11:
  			TASK::REQUEST_WAYPOINT_RECORDING(sParam3);
  			break;
  		
  		default:
  			return 0;
  	}
  	func_182(uParam0[iParam1 /*7*/]);
  	(*uParam0)[iParam1 /*7*/] = iParam2;
  	(uParam0[iParam1 /*7*/])->f_3 = sParam3;
  	(uParam0[iParam1 /*7*/])->f_4 = sParam4;
  	return 1;
  }
  
  int func_194(var uParam0, int iParam1, int iParam2)
  {
  	if (BitTest(uParam0->f_113, iParam1) || BitTest(uParam0->f_114, iParam1))
  	{
  		return 1;
  	}
  	if (iParam2 == 0)
  	{
  		return 0;
  	}
  	func_182(uParam0[iParam1 /*7*/]);
  	(*uParam0)[iParam1 /*7*/] = 6;
  	(uParam0[iParam1 /*7*/])->f_1 = iParam2;
  	return 1;
  }
  
  void func_195(var uParam0, char* sParam1)
  {
  	func_194(uParam0, 0, joaat("prop_carwash_roller_horz"));
  	func_194(uParam0, 1, joaat("prop_carwash_roller_vert"));
  	func_194(uParam0, 2, joaat("prop_ld_test_01"));
  	if (AUDIO::HINT_SCRIPT_AUDIO_BANK("SCRIPT\CARWASH", 0, -1))
  	{
  	}
  	func_192(uParam0, 3);
  	if (!MISC::IS_STRING_NULL_OR_EMPTY(sParam1))
  	{
  		func_193(uParam0, 4, 11, sParam1, 0);
  	}
  	while (!func_189(uParam0))
  	{
  		PAD::SET_INPUT_EXCLUSIVE(2, 51);
  		PAD::SET_INPUT_EXCLUSIVE(2, 75);
  		func_111();
  		SYSTEM::WAIT(0);
  	}
  }
  
  void func_196(var uParam0, int iParam1)
  {
  	uParam0->f_334 = iParam1;
  	func_38(uParam0->f_334, 1, 0, 1, 0);
  }
  
  void func_197()
  {
  	int iVar0;
  	struct<2> Var1;
  	var uVar4;
  	
  	iVar0 = PED::GET_VEHICLE_PED_IS_IN(PLAYER::PLAYER_PED_ID(), false);
  	MISC::GET_MODEL_DIMENSIONS(ENTITY::GET_ENTITY_MODEL(iVar0), &Var1, &uVar4);
  	if (Var1.f_1 < -3.8f)
  	{
  		func_200(&(Local_76.f_172[2 /*23*/]), -699.969f, -929.1818f, 19.2126f, -0.8962f, -0.0038f, -179.6509f, -699.9516f, -932.04f, 19.1679f, -0.8962f, -0.0038f, -179.6509f, 6500, 1.5f);
  	}
  	else
  	{
  		func_200(&(Local_76.f_172[2 /*23*/]), -700.0016f, -932.0601f, 18.7178f, -8.6749f, 0f, -179.6145f, -700.0532f, -936.7521f, 18.6515f, 3.9366f, 0f, 179.651f, 6500, 1.5f);
  	}
  	Local_76.f_172[2 /*23*/].f_1[0 /*3*/].f_1 = (Local_76.f_172[2 /*23*/].f_1[0 /*3*/].f_1 + fLocal_629);
  	Local_76.f_172[2 /*23*/].f_1[1 /*3*/].f_1 = (Local_76.f_172[2 /*23*/].f_1[1 /*3*/].f_1 + fLocal_629);
  	func_199(&(Local_76.f_172[2 /*23*/]), 50f, 0);
  	func_198(&(Local_76.f_172[2 /*23*/]), 1.107178f);
  }
  
  void func_198(var uParam0, float fParam1)
  {
  	uParam0->f_22 = fParam1;
  }
  
  void func_199(var uParam0, float fParam1, float fParam2)
  {
  	uParam0->f_15[0] = fParam1;
  	if (fParam2 == 0f)
  	{
  		uParam0->f_15[1] = fParam1;
  	}
  	else
  	{
  		uParam0->f_15[1] = fParam2;
  	}
  }
  
  void func_200(var uParam0, struct<3> Param1, struct<3> Param4, struct<3> Param7, struct<3> Param10, int iParam13, int iParam14)
  {
  	func_202(uParam0, Param1, Param4, 0, iParam14);
  	func_201(uParam0, Param7, Param10, iParam13);
  }
  
  void func_201(var uParam0, struct<3> Param1, struct<3> Param4, var uParam7)
  {
  	uParam0->f_1[1 /*3*/] = { Param1 };
  	uParam0->f_8[1 /*3*/] = { Param4 };
  	*uParam0 = 1;
  	uParam0->f_20 = uParam7;
  }
  
  void func_202(var uParam0, struct<3> Param1, struct<3> Param4, int iParam7, var uParam8)
  {
  	func_203(uParam0);
  	uParam0->f_1[0 /*3*/] = { Param1 };
  	uParam0->f_8[0 /*3*/] = { Param4 };
  	*uParam0 = 1;
  	uParam0->f_21 = iParam7;
  	uParam0->f_18 = uParam8;
  	uParam0->f_20 = 0;
  }
  
  void func_203(var uParam0)
  {
  	*uParam0 = 0;
  	uParam0->f_1[0 /*3*/] = { 0f, 0f, 0f };
  	uParam0->f_1[1 /*3*/] = { 0f, 0f, 0f };
  	uParam0->f_8[0 /*3*/] = { 0f, 0f, 0f };
  	uParam0->f_8[1 /*3*/] = { 0f, 0f, 0f };
  	uParam0->f_15[0] = 50f;
  	uParam0->f_15[1] = 0f;
  	uParam0->f_21 = 0;
  	uParam0->f_20 = 0;
  }
  
  void func_204(var uParam0, char* sParam1)
  {
  	uParam0->f_335 = sParam1;
  }
  
  void func_205(struct<3> Param0, float fParam3, var uParam4, var uParam5)
  {
  	struct<3> Var0;
  	
  	Var0 = { fParam3, fParam3, fParam3 };
  	*uParam4 = { Param0 - Var0 };
  	*uParam5 = { Param0 + Var0 };
  }
  
  void func_206(var uParam0, struct<3> Param1, struct<3> Param4)
  {
  	uParam0->f_7[0 /*3*/] = { Param1 };
  	uParam0->f_7[1 /*3*/] = { Param4 };
  	if (MISC::ABSF((Param4.f_0 - Param1.f_0)) > MISC::ABSF((Param4.f_1 - Param1.f_1)))
  	{
  		uParam0->f_29 = 0;
  	}
  	else
  	{
  		uParam0->f_29 = 0;
  	}
  }
  
  void func_207(var uParam0, struct<3> Param1, struct<3> Param4)
  {
  	uParam0->f_14[0 /*3*/] = { Param1 };
  	uParam0->f_14[1 /*3*/] = { Param4 };
  }
  
  void func_208(var uParam0, struct<3> Param1, struct<3> Param4)
  {
  	*(uParam0[0 /*3*/]) = { Param1 };
  	*(uParam0[1 /*3*/]) = { Param4 };
  	uParam0->f_26 = { func_37(Param4 - Param1) };
  	uParam0->f_24 = func_210(*(uParam0[0 /*3*/]), *(uParam0[1 /*3*/]));
  	func_209(*(uParam0[0 /*3*/]), *(uParam0[1 /*3*/]), 3f, 0, !Global_77858, 0, 1, !Global_77858);
  }
  
  void func_209(struct<3> Param0, struct<3> Param3, float fParam6, bool bParam7, bool bParam8, bool bParam9, bool bParam10, bool bParam11)
  {
  	float fVar0;
  	float fVar1;
  	struct<3> Var2;
  	struct<3> Var5;
  	
  	fVar0 = MISC::GET_DISTANCE_BETWEEN_COORDS(Param0, Param3, true);
  	Var2 = { Param0 };
  	Var5 = { func_37(Param3 - Param0) };
  	while (fVar1 < fVar0)
  	{
  		if (bParam7)
  		{
  			MISC::CLEAR_AREA_OF_PEDS(Var2, fParam6, 0);
  		}
  		if (bParam9)
  		{
  			MISC::CLEAR_AREA_OF_OBJECTS(Var2, fParam6, 0);
  		}
  		if (bParam8)
  		{
  			MISC::CLEAR_AREA_OF_VEHICLES(Var2, fParam6, false, false, false, false, false, false, 0);
  		}
  		if (bParam10)
  		{
  			FIRE::STOP_FIRE_IN_RANGE(Var2, fParam6);
  		}
  		if (bParam11)
  		{
  			MISC::CLEAR_AREA_OF_PROJECTILES(Var2, fParam6, 0);
  		}
  		Var2 = { Var2 + Var5 * FtoV((fParam6 / 2f)) };
  		fVar1 = (fVar1 + (fParam6 / 2f));
  	}
  }
  
  float func_210(struct<2> Param0, var uParam2, struct<2> Param3, var uParam5)
  {
  	return MISC::GET_HEADING_FROM_VECTOR_2D((Param3.f_0 - Param0.f_0), (Param3.f_1 - Param0.f_1));
  }
  
  void func_211(struct<3> Param0, int iParam3, int iParam4, int iParam5, int iParam6, int iParam7, bool bParam8, bool bParam9, bool bParam10, int iParam11, bool bParam12)
  {
  	int iVar0;
  	
  	iVar0 = PLAYER::GET_PLAYER_INDEX();
  	if (PLAYER::IS_PLAYER_PLAYING(iVar0))
  	{
  		func_325(0);
  		if (bParam9)
  		{
  			PLAYER::REMOVE_PLAYER_HELMET(PLAYER::GET_PLAYER_INDEX(), true);
  		}
  		if (bParam8)
  		{
  			switch (func_161())
  			{
  				case 0:
  					if (func_324(PLAYER::PLAYER_PED_ID(), 8, 15))
  					{
  						func_213(PLAYER::PLAYER_PED_ID(), 8, 0, 1, -1, 0, 0, 0, -1, -1, -1, 0, 0, 0);
  					}
  					if (func_324(PLAYER::PLAYER_PED_ID(), 9, 6))
  					{
  						func_213(PLAYER::PLAYER_PED_ID(), 9, 0, 1, -1, 0, 0, 0, -1, -1, -1, 0, 0, 0);
  					}
  					break;
  				
  				case 1:
  					if (func_324(PLAYER::PLAYER_PED_ID(), 8, 1) || func_324(PLAYER::PLAYER_PED_ID(), 8, 10))
  					{
  						func_213(PLAYER::PLAYER_PED_ID(), 8, 26, 1, -1, 0, 0, 0, -1, -1, -1, 0, 0, 0);
  					}
  					break;
  				
  				case 2:
  					if (func_324(PLAYER::PLAYER_PED_ID(), 8, 4))
  					{
  						func_213(PLAYER::PLAYER_PED_ID(), 8, 15, 1, -1, 0, 0, 0, -1, -1, -1, 0, 0, 0);
  					}
  					break;
  				}
  		}
  		if (iParam6 == 1)
  		{
  			MISC::CLEAR_AREA_OF_PEDS(func_33(PLAYER::GET_PLAYER_INDEX()), 50f, 0);
  		}
  		if (iParam7 == 1)
  		{
  			MISC::CLEAR_AREA_OF_OBJECTS(Param0, 30f, 0);
  		}
  		if (bParam10)
  		{
  			FIRE::STOP_FIRE_IN_RANGE(Param0, 30f);
  		}
  		MISC::CLEAR_AREA_OF_PROJECTILES(Param0, 30f, 0);
  		PLAYER::SET_PLAYER_WANTED_LEVEL(iVar0, 0, false);
  		PLAYER::SET_PLAYER_WANTED_LEVEL_NOW(iVar0, false);
  		PLAYER::SET_EVERYONE_IGNORE_PLAYER(iVar0, true);
  		if (bParam12)
  		{
  			HUD::DISPLAY_RADAR(false);
  			HUD::DISPLAY_HUD(false);
  		}
  		HUD::CLEAR_PRINTS();
  		if (iParam11 == 1)
  		{
  			HUD::CLEAR_HELP(true);
  		}
  		if (iParam3 == 1)
  		{
  			CAM::SET_WIDESCREEN_BORDERS(true, 0);
  		}
  		if (iParam4 == 1)
  		{
  			iLocal_39 = 0;
  			if (func_5(PLAYER::PLAYER_PED_ID()))
  			{
  				iLocal_39 = WEAPON::GET_SELECTED_PED_WEAPON(PLAYER::PLAYER_PED_ID());
  				WEAPON::SET_CURRENT_PED_WEAPON(PLAYER::PLAYER_PED_ID(), joaat("weapon_unarmed"), true);
  			}
  		}
  		if (iParam5 == 1)
  		{
  			func_212(500, 0);
  		}
  	}
  }
  
  void func_212(int iParam0, bool bParam1)
  {
  	if (CAM::IS_SCREEN_FADED_OUT() || CAM::IS_SCREEN_FADING_OUT())
  	{
  		if (!CAM::IS_SCREEN_FADING_IN())
  		{
  			CAM::DO_SCREEN_FADE_IN(iParam0);
  		}
  	}
  	if (bParam1)
  	{
  		while (!CAM::IS_SCREEN_FADED_IN())
  		{
  			SYSTEM::WAIT(0);
  		}
  	}
  }
  
  int func_213(int iParam0, int iParam1, int iParam2, int iParam3, int iParam4, int iParam5, int iParam6, int iParam7, int iParam8, int iParam9, int iParam10, int iParam11, int iParam12, int iParam13)
  {
  	int iVar0;
  	int iVar1;
  	int iVar2;
  	int iVar3;
  	int iVar4;
  	int iVar5;
  	int iVar6;
  	int iVar7;
  	int iVar8;
  	int iVar9;
  	int iVar10;
  	var uVar11;
  	var uVar28;
  	var uVar38;
  	struct<14> Var55;
  	var uVar69;
  	
  	if (PED::IS_PED_INJURED(iParam0) || iParam2 == -99)
  	{
  		return 0;
  	}
  	Global_77667++;
  	iVar5 = -99;
  	iVar6 = -99;
  	iVar7 = -99;
  	iVar8 = -99;
  	iVar9 = -99;
  	iVar10 = ENTITY::GET_ENTITY_MODEL(iParam0);
  	if (iParam5 == 0)
  	{
  		Global_77669[1 /*14*/] = { func_260(iVar10, iParam1, iParam2, -1) };
  		if (!func_259(iParam3))
  		{
  			Global_77667 = (Global_77667 - 1);
  			return 0;
  		}
  		func_255(iParam1);
  	}
  	if (iParam1 == 12)
  	{
  		if (iParam7 == 1)
  		{
  			if (iVar10 == joaat("player_one"))
  			{
  				iVar5 = func_253(iParam0, 8);
  				if (iVar5 != 9)
  				{
  					iVar5 = -99;
  				}
  			}
  			iVar6 = func_253(iParam0, 9);
  			if (iVar10 == joaat("player_zero"))
  			{
  				if (iVar6 >= 9 && iVar6 <= 14)
  				{
  				}
  				else
  				{
  					iVar6 = -99;
  				}
  			}
  			else if (iVar10 == joaat("player_one"))
  			{
  				if (iVar6 >= 5 && iVar6 <= 10)
  				{
  				}
  				else
  				{
  					iVar6 = -99;
  				}
  			}
  			else if (iVar10 == joaat("player_two"))
  			{
  				if ((iVar6 >= 9 && iVar6 <= 14) || (iVar6 >= 15 && iVar6 <= 16))
  				{
  				}
  				else
  				{
  					iVar6 = -99;
  				}
  			}
  			iVar7 = func_252(iParam0, 1);
  			if (!func_251(iVar10, 14, iVar7, -1))
  			{
  				iVar7 = -99;
  			}
  			iVar8 = func_252(iParam0, 0);
  			if (!func_250(iVar10, 14, iVar8, -1) && !func_249(iVar10, 14, iVar8, -1))
  			{
  				iVar8 = -99;
  			}
  			if (iVar10 == joaat("player_one"))
  			{
  				iVar9 = func_252(iParam0, 2);
  			}
  		}
  		PED::CLEAR_ALL_PED_PROPS(iParam0);
  		uVar11 = 15;
  		if (iParam5 == 1)
  		{
  			uVar11 = { Global_77712 };
  		}
  		else
  		{
  			uVar11 = { func_245(iVar10, iParam2) };
  		}
  		iVar0 = 0;
  		while (iVar0 <= 14)
  		{
  			if (uVar11[iVar0] != -99)
  			{
  				Global_77669[1 /*14*/] = { func_260(iVar10, iVar0, uVar11[iVar0], -1) };
  				if (BitTest(Global_77669[1 /*14*/].f_6, 0))
  				{
  					if (iVar0 == 13)
  					{
  						uVar28 = 9;
  						if (iParam5 == 1)
  						{
  							uVar28 = { Global_77729 };
  						}
  						else
  						{
  							uVar28 = { func_242(iVar10, uVar11[iVar0]) };
  						}
  						iVar1 = 0;
  						while (iVar1 <= 8)
  						{
  							Global_77669[1 /*14*/] = { func_260(iVar10, 14, uVar28[iVar1], -1) };
  							func_233(iParam0, Global_77669[1 /*14*/].f_12, Global_77669[1 /*14*/].f_3, Global_77669[1 /*14*/].f_4);
  							func_255(14);
  							if (Global_77667 == 1)
  							{
  								iVar2 = 0;
  								while (iVar2 < 15)
  								{
  									iVar3 = func_225(iParam0, iVar10, 14, uVar28[iVar1], iVar2, 0);
  									if (iVar3 != -99)
  									{
  										func_213(iParam0, iVar2, iVar3, 0, -1, 0, 0, 0, -1, -1, -1, 0, 0, 0);
  									}
  									iVar2++;
  								}
  							}
  							iVar1++;
  						}
  					}
  					else if (iVar0 != 14 && iVar0 != 12)
  					{
  						if ((iVar10 == joaat("player_one") && iVar0 == 2) && uVar11[iVar0] == 20)
  						{
  							func_224(iVar10, 2, 20, &iVar4);
  						}
  						if (iParam4 == -1)
  						{
  							PED::SET_PED_COMPONENT_VARIATION(iParam0, func_223(iVar0), Global_77669[1 /*14*/].f_3, Global_77669[1 /*14*/].f_4, PED::GET_PED_PALETTE_VARIATION(iParam0, func_223(iVar0)));
  						}
  						else
  						{
  							PED::SET_PED_COMPONENT_VARIATION(iParam0, func_223(iVar0), Global_77669[1 /*14*/].f_3, Global_77669[1 /*14*/].f_4, iParam4);
  						}
  						func_255(iVar0);
  						if (Global_77667 == 1)
  						{
  							iVar2 = 0;
  							while (iVar2 < 15)
  							{
  								iVar3 = func_225(iParam0, iVar10, iVar0, uVar11[iVar0], iVar2, 0);
  								if (iVar3 != -99)
  								{
  									func_213(iParam0, iVar2, iVar3, 0, -1, 0, 0, 0, -1, -1, -1, 0, 0, 0);
  								}
  								iVar2++;
  							}
  						}
  					}
  				}
  			}
  			else if (iVar0 != 12 && iVar0 != 14)
  			{
  				Global_77669[1 /*14*/] = { func_260(iVar10, iVar0, func_222(iParam0, iVar0, -1), -1) };
  				if (BitTest(Global_77669[1 /*14*/].f_6, 3))
  				{
  					if (iVar0 == 2)
  					{
  						if (iVar10 == joaat("player_one"))
  						{
  							if (func_221(iParam0, iVar10, &iVar4, 1))
  							{
  								func_213(iParam0, 2, iVar4, 0, -1, 0, 0, 0, -1, -1, -1, 0, 0, 0);
  							}
  						}
  					}
  					else
  					{
  						uVar38 = { func_245(iVar10, 0) };
  						func_213(iParam0, iVar0, uVar38[iVar0], 0, -1, 0, 0, 0, -1, -1, -1, 0, 0, 0);
  					}
  				}
  			}
  			iVar0++;
  		}
  		if (iParam7 == 1)
  		{
  			Var55 = { func_260(iVar10, 8, iVar5, -1) };
  			if (iVar5 != -99)
  			{
  				if (func_219(iVar10, iParam2, 8, iVar5, &uVar11, &Var55))
  				{
  					func_213(iParam0, 8, iVar5, iParam3, iParam4, iParam5, iParam6, iParam7, -1, -1, -1, 0, 0, 0);
  				}
  			}
  			Var55 = { func_260(iVar10, 9, iVar6, -1) };
  			if (iVar6 != -99)
  			{
  				if (func_219(iVar10, iParam2, 9, iVar6, &uVar11, &Var55))
  				{
  					func_213(iParam0, 9, iVar6, iParam3, iParam4, iParam5, iParam6, iParam7, -1, -1, -1, 0, 0, 0);
  				}
  			}
  			Var55 = { func_260(iVar10, 14, iVar7, -1) };
  			if (iVar7 != -99)
  			{
  				if (func_219(iVar10, iParam2, 14, iVar7, &uVar11, &Var55))
  				{
  					func_213(iParam0, 14, iVar7, iParam3, iParam4, iParam5, iParam6, iParam7, -1, -1, -1, 0, 0, 0);
  				}
  			}
  			Var55 = { func_260(iVar10, 14, iVar8, -1) };
  			if (iVar8 != -99)
  			{
  				if (func_219(iVar10, iParam2, 14, iVar8, &uVar11, &Var55))
  				{
  					func_213(iParam0, 14, iVar8, iParam3, iParam4, iParam5, iParam6, iParam7, -1, -1, -1, 0, 0, 0);
  				}
  			}
  			Var55 = { func_260(iVar10, 14, iVar9, -1) };
  			if (iVar9 != -99)
  			{
  				if (func_219(iVar10, iParam2, 14, iVar9, &uVar11, &Var55))
  				{
  					func_213(iParam0, 14, iVar9, iParam3, iParam4, iParam5, iParam6, iParam7, -1, -1, -1, 0, 0, 0);
  				}
  			}
  		}
  	}
  	else if (iParam1 == 13)
  	{
  		uVar69 = { func_242(iVar10, iParam2) };
  		iVar1 = 0;
  		while (iVar1 <= 8)
  		{
  			Global_77669[1 /*14*/] = { func_260(iVar10, 14, uVar69[iVar1], -1) };
  			func_233(iParam0, Global_77669[1 /*14*/].f_12, Global_77669[1 /*14*/].f_3, Global_77669[1 /*14*/].f_4);
  			func_255(14);
  			if (Global_77667 == 1)
  			{
  				iVar2 = 0;
  				while (iVar2 < 15)
  				{
  					iVar3 = func_225(iParam0, iVar10, 14, uVar69[iVar1], iVar2, 0);
  					if (iVar3 != -99)
  					{
  						func_213(iParam0, iVar2, iVar3, 0, -1, 0, 0, 0, -1, -1, -1, 0, 0, 0);
  					}
  					iVar2++;
  				}
  			}
  			iVar1++;
  		}
  	}
  	else if (iParam1 == 14)
  	{
  		func_233(iParam0, Global_77669[1 /*14*/].f_12, Global_77669[1 /*14*/].f_3, Global_77669[1 /*14*/].f_4);
  		func_255(iParam1);
  		if (Global_77667 == 1)
  		{
  			iVar2 = 0;
  			while (iVar2 < 15)
  			{
  				iVar3 = func_225(iParam0, iVar10, iParam1, iParam2, iVar2, 0);
  				if (iVar3 != -99)
  				{
  					func_213(iParam0, iVar2, iVar3, 0, -1, 0, 0, 0, -1, -1, -1, 0, 0, 0);
  				}
  				iVar2++;
  			}
  		}
  	}
  	else
  	{
  		if (iParam4 == -1)
  		{
  			PED::SET_PED_COMPONENT_VARIATION(iParam0, func_223(iParam1), Global_77669[1 /*14*/].f_3, Global_77669[1 /*14*/].f_4, PED::GET_PED_PALETTE_VARIATION(iParam0, func_223(iParam1)));
  		}
  		else
  		{
  			PED::SET_PED_COMPONENT_VARIATION(iParam0, func_223(iParam1), Global_77669[1 /*14*/].f_3, Global_77669[1 /*14*/].f_4, iParam4);
  		}
  		if (Global_77667 == 1)
  		{
  			iVar2 = 0;
  			while (iVar2 < 15)
  			{
  				iVar3 = func_225(iParam0, iVar10, iParam1, iParam2, iVar2, 0);
  				if (iVar3 != -99)
  				{
  					func_213(iParam0, iVar2, iVar3, 0, -1, 0, 0, 0, -1, -1, -1, 0, 0, 0);
  				}
  				iVar2++;
  			}
  		}
  		if (iParam6 == 0)
  		{
  			func_216(iVar10, iParam1, iParam2);
  		}
  	}
  	if (Global_77667 == 1)
  	{
  		if (func_221(iParam0, iVar10, &iVar4, 0))
  		{
  			func_213(iParam0, 2, iVar4, 0, -1, 0, 0, 0, -1, -1, -1, 0, 0, 0);
  		}
  		if (func_214(iParam0, iVar10, &iVar4))
  		{
  			func_213(iParam0, 1, iVar4, 0, -1, 0, 0, 0, -1, -1, -1, 0, 0, 0);
  		}
  	}
  	Global_77667 = (Global_77667 - 1);
  	return 1;
  }
  
  int func_214(int iParam0, int iParam1, int iParam2)
  {
  	int iVar0;
  	
  	iVar0 = func_215(iParam1);
  	if (Global_112922.f_2363.f_539[iVar0 /*65*/].f_63 != -99)
  	{
  		if (!func_324(iParam0, Global_112922.f_2363.f_539[iVar0 /*65*/].f_64, Global_112922.f_2363.f_539[iVar0 /*65*/].f_63))
  		{
  			*iParam2 = Global_112922.f_2363.f_539[iVar0 /*65*/].f_62;
  			Global_112922.f_2363.f_539[iVar0 /*65*/].f_63 = -99;
  			Global_112922.f_2363.f_539[iVar0 /*65*/].f_64 = 1;
  			return 1;
  		}
  	}
  	return 0;
  }
  
  int func_215(int iParam0)
  {
  	switch (iParam0)
  	{
  		case joaat("player_zero"):
  			return 0;
  			break;
  		
  		case joaat("player_one"):
  			return 1;
  			break;
  		
  		case joaat("player_two"):
  			return 2;
  			break;
  		
  		default:
  			break;
  	}
  	return 145;
  }
  
  void func_216(int iParam0, int iParam1, int iParam2)
  {
  	int iVar0;
  	int iVar1;
  	
  	if (iParam0 == joaat("player_zero"))
  	{
  		iVar0 = 5;
  	}
  	else if (iParam0 == joaat("player_one"))
  	{
  		iVar0 = 2;
  	}
  	else if (iParam0 == joaat("player_two"))
  	{
  		iVar0 = 4;
  	}
  	if (func_218(iParam0, 12, iVar0))
  	{
  		if (func_217(iParam0, iParam1, iParam2))
  		{
  			iVar1 = func_215(iParam0);
  			if (iParam1 == 3)
  			{
  				Global_112922.f_2363.f_539.f_196[iVar1] = iParam2;
  			}
  			else if (iParam1 == 4)
  			{
  				Global_112922.f_2363.f_539.f_200[iVar1] = iParam2;
  			}
  		}
  	}
  }
  
  int func_217(int iParam0, int iParam1, int iParam2)
  {
  	if (iParam0 == joaat("player_zero"))
  	{
  		if (iParam1 == 4)
  		{
  			if (iParam2 >= 47 && iParam2 <= 54)
  			{
  				return 1;
  			}
  		}
  		else if (iParam1 == 3)
  		{
  			if (iParam2 >= 77 && iParam2 <= 84)
  			{
  				return 1;
  			}
  		}
  	}
  	else if (iParam0 == joaat("player_one"))
  	{
  		if (iParam1 == 4)
  		{
  			if (iParam2 >= 14 && iParam2 <= 21)
  			{
  				return 1;
  			}
  		}
  		else if (iParam1 == 3)
  		{
  			if (iParam2 >= 41 && iParam2 <= 56)
  			{
  				return 1;
  			}
  		}
  	}
  	else if (iParam0 == joaat("player_two"))
  	{
  		if (iParam1 == 4)
  		{
  			if (iParam2 >= 18 && iParam2 <= 29)
  			{
  				return 1;
  			}
  		}
  		else if (iParam1 == 3)
  		{
  			if (iParam2 >= 54 && iParam2 <= 69)
  			{
  				return 1;
  			}
  		}
  	}
  	return 0;
  }
  
  bool func_218(int iParam0, int iParam1, int iParam2)
  {
  	Global_77669[1 /*14*/] = { func_260(iParam0, iParam1, iParam2, -1) };
  	return BitTest(Global_77669[1 /*14*/].f_6, 2);
  }
  
  int func_219(int iParam0, int iParam1, int iParam2, int iParam3, var uParam4, var uParam5)
  {
  	var uVar0;
  	int iVar10;
  	
  	if ((*uParam4)[iParam2] == iParam3)
  	{
  		return 1;
  	}
  	if (((*uParam4)[iParam2] == -99 && iParam2 != 14) && iParam2 != 13)
  	{
  		return 1;
  	}
  	if (iParam2 == 13 || (iParam2 == 14 && (*uParam4)[13] == 31))
  	{
  		if ((((((((iParam3 == 0 || iParam3 == 1) || iParam3 == 2) || iParam3 == 3) || iParam3 == 4) || iParam3 == 5) || iParam3 == 6) || iParam3 == 7) || iParam3 == 8)
  		{
  			return 1;
  		}
  	}
  	if (iParam3 == -99 || uParam5->f_1 == -1)
  	{
  		return 1;
  	}
  	if (iParam2 == 14)
  	{
  		uVar0 = { func_242(iParam0, (*uParam4)[13]) };
  		iVar10 = 0;
  		while (iVar10 <= 8)
  		{
  			if (uVar0[iVar10] == iParam3)
  			{
  				return 1;
  			}
  			iVar10++;
  		}
  	}
  	if (func_220(iParam0, iParam2, iParam3))
  	{
  		return 1;
  	}
  	if (iParam0 == joaat("player_zero"))
  	{
  		if (func_251(iParam0, iParam2, iParam3, -1))
  		{
  			if ((((((iParam1 == 1 || iParam1 == 2) || iParam1 == 10) || iParam1 == 11) || iParam1 == 12) || iParam1 == 18) || iParam1 == 50)
  			{
  				return 0;
  			}
  			return 1;
  		}
  		else if (func_250(iParam0, iParam2, iParam3, -1))
  		{
  			if (((((((((iParam1 == 1 || iParam1 == 2) || iParam1 == 4) || iParam1 == 5) || iParam1 == 10) || iParam1 == 11) || iParam1 == 12) || iParam1 == 14) || iParam1 == 18) || iParam1 == 50)
  			{
  				return 0;
  			}
  			if (iParam2 == 8)
  			{
  				if ((*uParam4)[8] != 0)
  				{
  					return 0;
  				}
  			}
  			else if (iParam2 == 9)
  			{
  				if ((*uParam4)[9] != 0)
  				{
  					return 0;
  				}
  			}
  			return 1;
  		}
  		else if (func_249(iParam0, iParam2, iParam3, -1))
  		{
  			if (((((((((iParam1 == 1 || iParam1 == 2) || iParam1 == 4) || iParam1 == 5) || iParam1 == 10) || iParam1 == 11) || iParam1 == 12) || iParam1 == 14) || iParam1 == 18) || iParam1 == 50)
  			{
  				return 0;
  			}
  			return 1;
  		}
  	}
  	else if (iParam0 == joaat("player_one"))
  	{
  		if (func_251(iParam0, iParam2, iParam3, -1))
  		{
  			if ((iParam1 == 3 || iParam1 == 5) || iParam1 == 7)
  			{
  				return 0;
  			}
  			return 1;
  		}
  		else if (func_250(iParam0, iParam2, iParam3, -1))
  		{
  			if ((((iParam1 == 3 || iParam1 == 5) || iParam1 == 7) || iParam1 == 8) || iParam1 == 21)
  			{
  				if (iParam2 == 8)
  				{
  					if (iParam3 == 9)
  					{
  						if (iParam1 == 8 || iParam1 == 21)
  						{
  							return 1;
  						}
  					}
  					else
  					{
  						return 0;
  					}
  				}
  				else
  				{
  					return 0;
  				}
  			}
  			if (iParam2 == 8)
  			{
  				if ((*uParam4)[8] != 26)
  				{
  					return 0;
  				}
  			}
  			else if (iParam2 == 9)
  			{
  				if ((*uParam4)[9] != 0)
  				{
  					return 0;
  				}
  				if (((iParam1 == 43 || iParam1 == 44) || iParam1 == 45) || iParam1 == 46)
  				{
  					if (iParam3 >= 5 && iParam3 <= 10)
  					{
  						return 0;
  					}
  				}
  			}
  			else if (iParam2 == 14)
  			{
  				if (((iParam1 == 43 || iParam1 == 44) || iParam1 == 45) || iParam1 == 46)
  				{
  					if (iParam3 >= 26 && iParam3 <= 39)
  					{
  						return 0;
  					}
  				}
  			}
  			return 1;
  		}
  		else if (func_249(iParam0, iParam2, iParam3, -1))
  		{
  			if (((((iParam1 == 3 || iParam1 == 3) || iParam1 == 5) || iParam1 == 7) || iParam1 == 8) || iParam1 == 21)
  			{
  				return 0;
  			}
  			return 1;
  		}
  		else if (iParam2 == 14)
  		{
  			if (iParam3 >= 159 && iParam3 <= 174)
  			{
  				return 1;
  			}
  		}
  	}
  	else if (iParam0 == joaat("player_two"))
  	{
  		if (iParam1 == 2)
  		{
  			if (iParam2 == 14 && iParam3 == 0)
  			{
  				return 1;
  			}
  		}
  		if (func_251(iParam0, iParam2, iParam3, -1))
  		{
  			if (((((iParam1 == 1 || iParam1 == 2) || iParam1 == 6) || iParam1 == 8) || iParam1 == 45) || iParam1 == 12)
  			{
  				return 0;
  			}
  			return 1;
  		}
  		else if (func_250(iParam0, iParam2, iParam3, -1))
  		{
  			if (((((((iParam1 == 1 || iParam1 == 2) || iParam1 == 3) || iParam1 == 6) || iParam1 == 8) || iParam1 == 11) || iParam1 == 45) || iParam1 == 12)
  			{
  				return 0;
  			}
  			if (iParam2 == 8)
  			{
  				if ((*uParam4)[8] != 15)
  				{
  					return 0;
  				}
  			}
  			else if (iParam2 == 9)
  			{
  				if ((*uParam4)[9] != 0)
  				{
  					return 0;
  				}
  			}
  			return 1;
  		}
  		else if (func_249(iParam0, iParam2, iParam3, -1))
  		{
  			if ((((((iParam1 == 1 || iParam1 == 2) || iParam1 == 3) || iParam1 == 6) || iParam1 == 8) || iParam1 == 11) || iParam1 == 12)
  			{
  				return 0;
  			}
  			return 1;
  		}
  	}
  	return 0;
  }
  
  int func_220(int iParam0, int iParam1, int iParam2)
  {
  	switch (iParam0)
  	{
  		case joaat("player_zero"):
  			switch (iParam1)
  			{
  				case 8:
  					if (iParam2 == 15)
  					{
  						return 1;
  					}
  					break;
  				
  				case 9:
  					if (iParam2 == 6)
  					{
  						return 1;
  					}
  					break;
  			}
  			break;
  		
  		case joaat("player_one"):
  			switch (iParam1)
  			{
  				case 8:
  					if (iParam2 == 1 || iParam2 == 10)
  					{
  						return 1;
  					}
  					break;
  			}
  			break;
  		
  		case joaat("player_two"):
  			switch (iParam1)
  			{
  				case 8:
  					if (iParam2 == 4)
  					{
  						return 1;
  					}
  					break;
  			}
  			break;
  	}
  	return 0;
  }
  
  int func_221(int iParam0, int iParam1, int iParam2, int iParam3)
  {
  	int iVar0;
  	
  	iVar0 = func_215(iParam1);
  	if (Global_112922.f_2363.f_539[iVar0 /*65*/].f_60 != -99)
  	{
  		if (!func_324(iParam0, Global_112922.f_2363.f_539[iVar0 /*65*/].f_61, Global_112922.f_2363.f_539[iVar0 /*65*/].f_60) || iParam3 == 1)
  		{
  			*iParam2 = Global_112922.f_2363.f_539[iVar0 /*65*/].f_59;
  			Global_112922.f_2363.f_539[iVar0 /*65*/].f_60 = -99;
  			Global_112922.f_2363.f_539[iVar0 /*65*/].f_61 = 2;
  			return 1;
  		}
  	}
  	return 0;
  }
  
  int func_222(int iParam0, int iParam1, int iParam2)
  {
  	int iVar0;
  	int iVar1;
  	
  	if (!PED::IS_PED_INJURED(iParam0))
  	{
  		if (iParam1 == 12)
  		{
  			iVar0 = 0;
  			while (iVar0 <= 53)
  			{
  				if (func_324(iParam0, iParam1, iVar0))
  				{
  					return iVar0;
  				}
  				iVar0++;
  			}
  		}
  		else if (iParam1 == 13)
  		{
  			iVar1 = 0;
  			while (iVar1 <= 19)
  			{
  				if (func_324(iParam0, iParam1, iVar1))
  				{
  					return iVar1;
  				}
  				iVar1++;
  			}
  			return 31;
  		}
  		else if (iParam1 == 14)
  		{
  			if (iParam2 == -1)
  			{
  			}
  			else
  			{
  				return func_252(iParam0, iParam2);
  			}
  		}
  		else
  		{
  			return func_253(iParam0, iParam1);
  		}
  	}
  	return -99;
  }
  
  int func_223(int iParam0)
  {
  	switch (iParam0)
  	{
  		case 0:
  			return 0;
  			break;
  		
  		case 2:
  			return 2;
  			break;
  		
  		case 3:
  			return 3;
  			break;
  		
  		case 4:
  			return 4;
  			break;
  		
  		case 6:
  			return 6;
  			break;
  		
  		case 5:
  			return 5;
  			break;
  		
  		case 8:
  			return 8;
  			break;
  		
  		case 9:
  			return 9;
  			break;
  		
  		case 10:
  			return 10;
  			break;
  		
  		case 1:
  			return 1;
  			break;
  		
  		case 7:
  			return 7;
  			break;
  		
  		case 11:
  			return 11;
  			break;
  	}
  	return 0;
  }
  
  int func_224(int iParam0, int iParam1, int iParam2, int iParam3)
  {
  	int iVar0;
  	
  	*iParam3 = -99;
  	switch (iParam0)
  	{
  		case joaat("player_zero"):
  			switch (iParam1)
  			{
  				case 8:
  					if (iParam2 == 7 || iParam2 == 23)
  					{
  						*iParam3 = 1;
  					}
  					break;
  				
  				case 9:
  					if (iParam2 == 8 || (iParam2 >= 9 && iParam2 <= 14))
  					{
  						*iParam3 = 1;
  					}
  					break;
  				
  				case 10:
  					if (iParam2 >= 44 && iParam2 <= 47)
  					{
  						*iParam3 = 1;
  					}
  					break;
  				
  				case 14:
  					if ((((((iParam2 >= 31 && iParam2 <= 32) || (iParam2 >= 33 && iParam2 <= 34)) || (iParam2 >= 35 && iParam2 <= 36)) || iParam2 == 37) || (iParam2 >= 40 && iParam2 <= 41)) || iParam2 == 46)
  					{
  						*iParam3 = 1;
  					}
  					break;
  			}
  			break;
  		
  		case joaat("player_one"):
  			switch (iParam1)
  			{
  				case 2:
  					if (iParam2 == 20)
  					{
  						*iParam3 = 20;
  					}
  					break;
  				
  				case 8:
  					if (iParam2 == 4)
  					{
  						*iParam3 = 19;
  					}
  					break;
  				
  				case 9:
  					if (iParam2 >= 5 && iParam2 <= 10)
  					{
  						*iParam3 = 19;
  					}
  					break;
  				
  				case 10:
  					if (iParam2 >= 47 && iParam2 <= 50)
  					{
  						*iParam3 = 19;
  					}
  					break;
  				
  				case 14:
  					if (((((iParam2 >= 26 && iParam2 <= 27) || (iParam2 >= 28 && iParam2 <= 29)) || (iParam2 >= 30 && iParam2 <= 31)) || iParam2 == 32) || (iParam2 >= 35 && iParam2 <= 36))
  					{
  						*iParam3 = 19;
  					}
  					break;
  			}
  			break;
  		
  		case joaat("player_two"):
  			switch (iParam1)
  			{
  				case 8:
  					if (iParam2 == 7)
  					{
  						*iParam3 = 2;
  					}
  					break;
  				
  				case 9:
  					if ((iParam2 >= 9 && iParam2 <= 14) || (iParam2 >= 15 && iParam2 <= 16))
  					{
  						*iParam3 = 2;
  					}
  					break;
  				
  				case 10:
  					if (iParam2 >= 29 && iParam2 <= 32)
  					{
  						*iParam3 = 2;
  					}
  					break;
  				
  				case 14:
  					if ((((((iParam2 >= 47 && iParam2 <= 48) || (iParam2 >= 49 && iParam2 <= 50)) || (iParam2 >= 51 && iParam2 <= 52)) || iParam2 == 53) || (iParam2 >= 56 && iParam2 <= 57)) || iParam2 == 62)
  					{
  						*iParam3 = 2;
  					}
  					break;
  			}
  			break;
  	}
  	if (*iParam3 != -99)
  	{
  		iVar0 = func_215(iParam0);
  		Global_112922.f_2363.f_539[iVar0 /*65*/].f_60 = iParam2;
  		Global_112922.f_2363.f_539[iVar0 /*65*/].f_61 = iParam1;
  		return 1;
  	}
  	return 0;
  }
  
  int func_225(int iParam0, int iParam1, int iParam2, int iParam3, int iParam4, int iParam5)
  {
  	int iVar0;
  	int iVar1;
  	int iVar2;
  	int iVar3;
  	int iVar4;
  	int iVar5;
  	int iVar6;
  	int iVar7;
  	int iVar8;
  	int iVar9;
  	
  	iVar0 = -99;
  	if (iParam4 == 0)
  	{
  		switch (iParam2)
  		{
  			case 2:
  				iVar1 = func_253(iParam0, 1);
  				iVar0 = func_232(iParam1, iParam3, iVar1);
  				break;
  			
  			case 1:
  				iVar2 = func_253(iParam0, 2);
  				iVar0 = func_232(iParam1, iVar2, iParam3);
  				break;
  		}
  	}
  	else if (iParam4 == 2)
  	{
  		func_224(iParam1, iParam2, iParam3, &iVar0);
  	}
  	else if (iParam4 == 1)
  	{
  		func_231(iParam1, iParam2, iParam3, &iVar0);
  	}
  	else if (iParam4 == 6)
  	{
  		if (iParam2 == 4)
  		{
  			if (func_230(iParam1, iParam3, &iVar0))
  			{
  			}
  		}
  	}
  	else
  	{
  		switch (iParam1)
  		{
  			case joaat("player_zero"):
  				switch (iParam4)
  				{
  					case 3:
  						switch (iParam2)
  						{
  							case 10:
  								switch (iParam3)
  								{
  									case 36:
  										iVar0 = 17;
  										break;
  									
  									case 37:
  										iVar0 = 17;
  										break;
  									
  									case 38:
  										iVar0 = 18;
  										break;
  									
  									case 39:
  										iVar0 = 18;
  										break;
  									
  									case 40:
  										iVar0 = 19;
  										break;
  									
  									case 41:
  										iVar0 = 19;
  										break;
  									
  									case 42:
  										iVar0 = 20;
  										break;
  									
  									case 43:
  										iVar0 = 20;
  										break;
  								}
  								break;
  							
  							case 11:
  								if (iParam3 >= 2 && iParam3 <= 7)
  								{
  									if (!func_229(iParam0, 3, 44, 59))
  									{
  										iVar0 = 44;
  									}
  								}
  								else if (((iParam3 >= 8 && iParam3 <= 17) || (iParam3 >= 18 && iParam3 <= 27)) || (iParam3 >= 28 && iParam3 <= 43))
  								{
  									if (!func_229(iParam0, 3, 135, 150))
  									{
  										iVar0 = func_228(iParam1, 3, 135, 150);
  									}
  								}
  								break;
  						}
  						break;
  					
  					case 10:
  						switch (iParam2)
  						{
  							case 3:
  								switch (iParam3)
  								{
  									case 63:
  										iVar0 = 4;
  										break;
  									
  									case 61:
  										iVar0 = 3;
  										break;
  									
  									case 16:
  										iVar0 = 1;
  										break;
  									
  									case 114:
  										iVar0 = 15;
  										break;
  									
  									case 115:
  										iVar0 = 17;
  										break;
  									
  									case 116:
  										iVar0 = 16;
  										break;
  									
  									case 117:
  										iVar0 = 18;
  										break;
  									
  									case 118:
  										iVar0 = 20;
  										break;
  									
  									case 119:
  										iVar0 = 19;
  										break;
  									
  									case 125:
  										iVar0 = 21;
  										break;
  									
  									case 120:
  										iVar0 = 22;
  										break;
  									
  									case 124:
  										iVar0 = 23;
  										break;
  									
  									case 126:
  										iVar0 = 24;
  										break;
  									
  									case 121:
  										iVar0 = 25;
  										break;
  									
  									case 127:
  										iVar0 = 26;
  										break;
  									
  									case 128:
  										iVar0 = 27;
  										break;
  									
  									case 85:
  										iVar0 = 6;
  										break;
  									
  									case 77:
  										iVar0 = 7;
  										break;
  									
  									case 78:
  										iVar0 = 8;
  										break;
  									
  									case joaat("mpsv_lp0_31"):
  										iVar0 = 9;
  										break;
  									
  									case 80:
  										iVar0 = 10;
  										break;
  									
  									case 81:
  										iVar0 = 11;
  										break;
  									
  									case 82:
  										iVar0 = 12;
  										break;
  									
  									case 83:
  										iVar0 = 13;
  										break;
  									
  									case 84:
  										iVar0 = 14;
  										break;
  									
  									case 21:
  										iVar0 = 31;
  										break;
  									
  									case 22:
  										iVar0 = 30;
  										break;
  									
  									case 23:
  										iVar0 = 29;
  										break;
  									
  									case 24:
  										iVar0 = 28;
  										break;
  									
  									case 25:
  										iVar0 = 33;
  										break;
  									
  									case 26:
  										iVar0 = 35;
  										break;
  									
  									case 27:
  										iVar0 = 34;
  										break;
  									
  									case 28:
  										iVar0 = 32;
  										break;
  									
  									default:
  										if (iParam3 >= 17 && iParam3 <= 20)
  										{
  										}
  										else
  										{
  											iVar0 = 0;
  										}
  										break;
  								}
  								break;
  							
  							case 11:
  								if (iParam3 != 0)
  								{
  									iVar0 = 0;
  								}
  								break;
  						}
  						break;
  					
  					case 11:
  						if (iParam2 == 3)
  						{
  							if ((iParam3 >= 44 && iParam3 <= 59) || (iParam3 >= 135 && iParam3 <= 150))
  							{
  							}
  							else
  							{
  								iVar0 = 0;
  							}
  						}
  						else if (iParam2 == 10)
  						{
  							if (iParam3 >= 36 && iParam3 <= 43)
  							{
  								iVar0 = 0;
  							}
  						}
  						break;
  				}
  				break;
  			
  			case joaat("player_one"):
  				switch (iParam4)
  				{
  					case 10:
  						switch (iParam2)
  						{
  							case 3:
  								switch (iParam3)
  								{
  									case 17:
  										iVar0 = 2;
  										break;
  									
  									case 90:
  										iVar0 = 1;
  										break;
  									
  									case 268:
  										iVar0 = 3;
  										break;
  									
  									case 269:
  										iVar0 = 5;
  										break;
  									
  									case 270:
  										iVar0 = 4;
  										break;
  									
  									case 271:
  										iVar0 = 6;
  										break;
  									
  									case 272:
  										iVar0 = 8;
  										break;
  									
  									case 273:
  										iVar0 = 7;
  										break;
  									
  									case 279:
  										iVar0 = 9;
  										break;
  									
  									case 274:
  										iVar0 = 10;
  										break;
  									
  									case 278:
  										iVar0 = 11;
  										break;
  									
  									case 280:
  										iVar0 = 12;
  										break;
  									
  									case 275:
  										iVar0 = 13;
  										break;
  									
  									case 281:
  										iVar0 = 14;
  										break;
  									
  									case 282:
  										iVar0 = 15;
  										break;
  									
  									case 107:
  										iVar0 = 16;
  										break;
  									
  									case 108:
  										iVar0 = 17;
  										break;
  									
  									case 109:
  										iVar0 = 18;
  										break;
  									
  									case 110:
  										iVar0 = 19;
  										break;
  									
  									case 111:
  										iVar0 = 20;
  										break;
  									
  									case 112:
  										iVar0 = 21;
  										break;
  									
  									case 113:
  										iVar0 = 22;
  										break;
  									
  									case 114:
  										iVar0 = 23;
  										break;
  									
  									case 115:
  										iVar0 = 24;
  										break;
  									
  									case 116:
  										iVar0 = 25;
  										break;
  									
  									case 117:
  										iVar0 = 52;
  										break;
  									
  									case 118:
  										iVar0 = 27;
  										break;
  									
  									case 119:
  										iVar0 = 28;
  										break;
  									
  									case 120:
  										iVar0 = 29;
  										break;
  									
  									case 121:
  										iVar0 = 30;
  										break;
  									
  									case 122:
  										iVar0 = 31;
  										break;
  									
  									case 296:
  										iVar0 = 32;
  										break;
  									
  									case 297:
  										iVar0 = 33;
  										break;
  									
  									case 298:
  										iVar0 = 34;
  										break;
  									
  									case 299:
  										iVar0 = 35;
  										break;
  									
  									case 300:
  										iVar0 = 36;
  										break;
  									
  									case 301:
  										iVar0 = 37;
  										break;
  									
  									case 302:
  										iVar0 = 38;
  										break;
  									
  									case 309:
  										iVar0 = 39;
  										break;
  									
  									case 310:
  										iVar0 = 40;
  										break;
  									
  									case 311:
  										iVar0 = 41;
  										break;
  									
  									case 312:
  										iVar0 = 42;
  										break;
  									
  									case 313:
  										iVar0 = 43;
  										break;
  									
  									case 314:
  										iVar0 = 44;
  										break;
  									
  									case 315:
  										iVar0 = 45;
  										break;
  									
  									case 316:
  										iVar0 = 46;
  										break;
  									
  									case 317:
  										iVar0 = 51;
  										break;
  									
  									default:
  										iVar0 = 0;
  										break;
  								}
  								break;
  							
  							case 11:
  								if (iParam3 != 0)
  								{
  									iVar0 = 0;
  								}
  								break;
  						}
  						break;
  					
  					case 3:
  						switch (iParam2)
  						{
  							case 11:
  								if (iParam3 >= 47 && iParam3 <= 62)
  								{
  									if (!func_229(iParam0, 3, 209, 222))
  									{
  										iVar0 = func_228(iParam1, 3, 209, 222);
  									}
  								}
  								else if ((iParam3 >= 1 && iParam3 <= 4) || (iParam3 >= 5 && iParam3 <= 8))
  								{
  									if (!func_229(iParam0, 3, 243, 258))
  									{
  										if (iParam3 == 1 || iParam3 == 5)
  										{
  											iVar0 = func_228(iParam1, 3, 243, 246);
  										}
  										else if (iParam3 == 2 || iParam3 == 6)
  										{
  											iVar0 = func_228(iParam1, 3, 247, 250);
  										}
  										else if (iParam3 == 3 || iParam3 == 7)
  										{
  											iVar0 = func_228(iParam1, 3, 251, 254);
  										}
  										else if (iParam3 == 4 || iParam3 == 8)
  										{
  											iVar0 = func_228(iParam1, 3, 255, 258);
  										}
  									}
  								}
  								else if (iParam3 == 41 || iParam3 == 42)
  								{
  									if (!func_229(iParam0, 3, 176, 191) && !func_229(iParam0, 3, 227, 242))
  									{
  										iVar0 = func_228(iParam1, 3, 176, 191);
  									}
  								}
  								break;
  						}
  						break;
  					
  					case 8:
  						if (iParam2 == 11 || iParam2 == 3)
  						{
  							if (iParam2 == 11)
  							{
  								iVar5 = iParam3;
  								iVar4 = func_253(iParam0, 3);
  							}
  							else if (iParam2 == 3)
  							{
  								iVar4 = iParam3;
  								iVar5 = func_253(iParam0, 11);
  								iVar5 = func_227(iParam1, iVar4, iVar5, 0);
  							}
  							iVar3 = func_253(iParam0, 8);
  							if (((iVar5 >= 5 && iVar5 <= 8) || (iVar5 >= 25 && iVar5 <= 40)) || (iVar5 >= 42 && iVar5 <= 43))
  							{
  								if (!func_226(joaat("player_one"), iVar3, iVar5, iVar4, &iVar6))
  								{
  									if (iVar6 != -99)
  									{
  										iVar0 = iVar6;
  									}
  								}
  							}
  							else if (((iVar3 >= 27 && iVar3 <= 42) || (iVar3 >= 43 && iVar3 <= 58)) || (iVar3 >= 59 && iVar3 <= 74))
  							{
  								iVar0 = 26;
  							}
  						}
  						break;
  					
  					case 11:
  						if (iParam2 == 3)
  						{
  							if (iParam3 >= 209 && iParam3 <= 222)
  							{
  							}
  							else if (((iParam3 >= 176 && iParam3 <= 191) || (iParam3 >= 227 && iParam3 <= 242)) || (iParam3 >= 243 && iParam3 <= 258))
  							{
  								iVar7 = func_253(iParam0, 8);
  								iVar8 = func_253(iParam0, 11);
  								if (((iVar7 >= 27 && iVar7 <= 42) || (iVar7 >= 43 && iVar7 <= 58)) || (iVar7 >= 59 && iVar7 <= 74))
  								{
  									iVar0 = func_227(iParam1, iParam3, iVar8, 0);
  								}
  								else
  								{
  									iVar0 = func_227(iParam1, iParam3, iVar8, 1);
  								}
  							}
  							else if (iParam3 >= 41 && iParam3 <= 56)
  							{
  								iVar0 = 45;
  							}
  							else if (iParam3 >= 223 && iParam3 <= 226)
  							{
  								iVar0 = 44;
  							}
  							else
  							{
  								iVar0 = 0;
  							}
  						}
  						else if (iParam2 == 8)
  						{
  							if (((iParam3 >= 27 && iParam3 <= 42) || (iParam3 >= 43 && iParam3 <= 58)) || (iParam3 >= 59 && iParam3 <= 74))
  							{
  								iVar9 = func_253(iParam0, 11);
  								iVar0 = func_227(iParam1, -99, iVar9, 0);
  							}
  						}
  						break;
  				}
  				break;
  			
  			case joaat("player_two"):
  				switch (iParam4)
  				{
  					case 10:
  						switch (iParam2)
  						{
  							case 3:
  								switch (iParam3)
  								{
  									case 50:
  										iVar0 = 3;
  										break;
  									
  									case 81:
  										iVar0 = 5;
  										break;
  									
  									case 82:
  										iVar0 = 6;
  										break;
  									
  									case 83:
  										iVar0 = 7;
  										break;
  									
  									case 84:
  										iVar0 = 10;
  										break;
  									
  									case 85:
  										iVar0 = 9;
  										break;
  									
  									case 86:
  										iVar0 = 8;
  										break;
  									
  									case 92:
  										iVar0 = 22;
  										break;
  									
  									case 87:
  										iVar0 = 23;
  										break;
  									
  									case 91:
  										iVar0 = 24;
  										break;
  									
  									case 93:
  										iVar0 = 25;
  										break;
  									
  									case 88:
  										iVar0 = 26;
  										break;
  									
  									case 94:
  										iVar0 = 27;
  										break;
  									
  									case 120:
  										iVar0 = 11;
  										break;
  									
  									case 121:
  										iVar0 = 13;
  										break;
  									
  									case 122:
  										iVar0 = 14;
  										break;
  									
  									case 124:
  										iVar0 = 12;
  										break;
  									
  									case 126:
  										iVar0 = 18;
  										break;
  									
  									case 128:
  										iVar0 = 17;
  										break;
  									
  									case 130:
  										iVar0 = 19;
  										break;
  									
  									case 131:
  										iVar0 = 16;
  										break;
  									
  									case 134:
  										iVar0 = 15;
  										break;
  									
  									case 135:
  										iVar0 = 20;
  										break;
  									
  									default:
  										iVar0 = 0;
  										break;
  								}
  								break;
  						}
  						break;
  				}
  				break;
  			}
  	}
  	return iVar0;
  }
  
  int func_226(int iParam0, int iParam1, int iParam2, int iParam3, var uParam4)
  {
  	int iVar0;
  	
  	switch (iParam0)
  	{
  		case joaat("player_zero"):
  			break;
  		
  		case joaat("player_one"):
  			*uParam4 = 0;
  			if (iParam1 >= 27 && iParam1 <= 42)
  			{
  				if (iParam2 != -99)
  				{
  					if ((iParam2 >= 5 && iParam2 <= 8) || (iParam2 >= 25 && iParam2 <= 40))
  					{
  					}
  					else
  					{
  						if (iParam2 >= 42 && iParam2 <= 43)
  						{
  							if (iParam3 >= 176 && iParam3 <= 191)
  							{
  								iVar0 = (iParam1 - 27);
  								*uParam4 = (59 + iVar0);
  							}
  							else if (iParam3 >= 227 && iParam3 <= 242)
  							{
  								iVar0 = (iParam1 - 27);
  								*uParam4 = (43 + iVar0);
  							}
  						}
  						return 0;
  					}
  				}
  				if (iParam3 != -99)
  				{
  					if (((iParam3 >= 227 && iParam3 <= 242) || (iParam3 >= 176 && iParam3 <= 191)) || (iParam3 >= 243 && iParam3 <= 258))
  					{
  					}
  					else
  					{
  						return 0;
  					}
  				}
  			}
  			else if (iParam1 >= 43 && iParam1 <= 58)
  			{
  				if (iParam2 != -99)
  				{
  					if (iParam2 >= 42 && iParam2 <= 43)
  					{
  					}
  					else
  					{
  						if ((iParam2 >= 5 && iParam2 <= 8) || (iParam2 >= 25 && iParam2 <= 40))
  						{
  							iVar0 = (iParam1 - 43);
  							*uParam4 = (27 + iVar0);
  						}
  						return 0;
  					}
  				}
  				if (iParam3 != -99)
  				{
  					if (iParam3 >= 227 && iParam3 <= 242)
  					{
  					}
  					else
  					{
  						if (iParam3 >= 176 && iParam3 <= 191)
  						{
  							if (iParam2 >= 42 && iParam2 <= 43)
  							{
  								iVar0 = (iParam1 - 43);
  								*uParam4 = (59 + iVar0);
  							}
  						}
  						return 0;
  					}
  				}
  			}
  			else if (iParam1 >= 59 && iParam1 <= 74)
  			{
  				if (iParam2 != -99)
  				{
  					if (iParam2 >= 42 && iParam2 <= 43)
  					{
  					}
  					else
  					{
  						if ((iParam2 >= 5 && iParam2 <= 8) || (iParam2 >= 25 && iParam2 <= 40))
  						{
  							iVar0 = (iParam1 - 59);
  							*uParam4 = (27 + iVar0);
  						}
  						return 0;
  					}
  				}
  				if (iParam3 != -99)
  				{
  					if (iParam3 >= 176 && iParam3 <= 191)
  					{
  					}
  					else
  					{
  						if (iParam3 >= 227 && iParam3 <= 242)
  						{
  							if (iParam2 >= 42 && iParam2 <= 43)
  							{
  								iVar0 = (iParam1 - 59);
  								*uParam4 = (43 + iVar0);
  							}
  						}
  						else if ((iParam2 >= 5 && iParam2 <= 8) || (iParam2 >= 25 && iParam2 <= 40))
  						{
  							iVar0 = (iParam1 - 59);
  							*uParam4 = (27 + iVar0);
  						}
  						return 0;
  					}
  				}
  			}
  			break;
  		
  		case joaat("player_two"):
  			if (iParam1 == 12)
  			{
  				if (iParam3 != 241)
  				{
  					return 0;
  				}
  			}
  			break;
  	}
  	return 1;
  }
  
  int func_227(int iParam0, int iParam1, int iParam2, int iParam3)
  {
  	int iVar0;
  	
  	if (iParam1 >= 243 && iParam1 <= 246)
  	{
  		if (iParam3 == 1)
  		{
  			return 1;
  		}
  		else
  		{
  			return 5;
  		}
  	}
  	else if (iParam1 >= 247 && iParam1 <= 250)
  	{
  		if (iParam3 == 1)
  		{
  			return 2;
  		}
  		else
  		{
  			return 6;
  		}
  	}
  	else if (iParam1 >= 251 && iParam1 <= 254)
  	{
  		if (iParam3 == 1)
  		{
  			return 3;
  		}
  		else
  		{
  			return 7;
  		}
  	}
  	else if (iParam1 >= 255 && iParam1 <= 258)
  	{
  		if (iParam3 == 1)
  		{
  			return 4;
  		}
  		else
  		{
  			return 8;
  		}
  	}
  	else if (iParam1 >= 255 && iParam1 <= 258)
  	{
  		if (iParam3 == 1)
  		{
  			return 4;
  		}
  		else
  		{
  			return 8;
  		}
  	}
  	else if ((iParam1 >= 176 && iParam1 <= 191) || (iParam1 >= 227 && iParam1 <= 242))
  	{
  		if (iParam2 >= 9 && iParam2 <= 24)
  		{
  			if (iParam3 == 1)
  			{
  				return iParam2;
  			}
  			else
  			{
  				iVar0 = (iParam2 - 9);
  				iParam2 = (25 + iVar0);
  				return iParam2;
  			}
  		}
  		else if (iParam2 >= 25 && iParam2 <= 40)
  		{
  			if (iParam3 == 1)
  			{
  				iVar0 = (iParam2 - 25);
  				iParam2 = (9 + iVar0);
  				return iParam2;
  			}
  			else
  			{
  				return iParam2;
  			}
  		}
  		else if (iParam2 == 41 || iParam2 == 42)
  		{
  			if (iParam3 == 1)
  			{
  				return 41;
  			}
  			else
  			{
  				return 42;
  			}
  		}
  		else
  		{
  			if (iParam3 == 1)
  			{
  				iParam2 = func_228(iParam0, 11, 9, 24);
  			}
  			else
  			{
  				iParam2 = func_228(iParam0, 11, 25, 40);
  			}
  			if (iParam2 == -99)
  			{
  				if (iParam3 == 1)
  				{
  					return 41;
  				}
  				else
  				{
  					return 42;
  				}
  			}
  			else
  			{
  				return iParam2;
  			}
  		}
  	}
  	else if (iParam2 >= 1 && iParam2 <= 4)
  	{
  		if (iParam3 == 1)
  		{
  			return iParam2;
  		}
  		else
  		{
  			iVar0 = (iParam2 - 1);
  			iParam2 = (5 + iVar0);
  			return iParam2;
  		}
  	}
  	else if (iParam2 >= 5 && iParam2 <= 8)
  	{
  		if (iParam3 == 1)
  		{
  			iVar0 = (iParam2 - 5);
  			iParam2 = (1 + iVar0);
  			return iParam2;
  		}
  		else
  		{
  			return iParam2;
  		}
  	}
  	else if (iParam2 >= 9 && iParam2 <= 24)
  	{
  		if (iParam3 == 1)
  		{
  			return iParam2;
  		}
  		else
  		{
  			iVar0 = (iParam2 - 9);
  			iParam2 = (25 + iVar0);
  			return iParam2;
  		}
  	}
  	else if (iParam2 >= 25 && iParam2 <= 40)
  	{
  		if (iParam3 == 1)
  		{
  			iVar0 = (iParam2 - 25);
  			iParam2 = (9 + iVar0);
  			return iParam2;
  		}
  		else
  		{
  			return iParam2;
  		}
  	}
  	else if (iParam2 == 41 || iParam2 == 42)
  	{
  		if (iParam3 == 1)
  		{
  			return 41;
  		}
  		else
  		{
  			return 42;
  		}
  	}
  	return -99;
  }
  
  int func_228(int iParam0, int iParam1, int iParam2, int iParam3)
  {
  	int iVar0;
  	int iVar1;
  	
  	iVar0 = iParam2;
  	while (iVar0 <= (iParam3 - 1))
  	{
  		iVar1 = iVar0;
  		if (func_218(iParam0, iParam1, iVar1))
  		{
  			return iVar1;
  		}
  		iVar0++;
  	}
  	return -99;
  }
  
  int func_229(int iParam0, int iParam1, int iParam2, int iParam3)
  {
  	int iVar0;
  	
  	iVar0 = func_253(iParam0, iParam1);
  	if (iVar0 >= iParam2 && iVar0 <= iParam3)
  	{
  		return 1;
  	}
  	return 0;
  }
  
  int func_230(int iParam0, int iParam1, int iParam2)
  {
  	*iParam2 = -99;
  	switch (iParam0)
  	{
  		case joaat("player_zero"):
  			if ((((((((((((((((((iParam1 == 16 || iParam1 == 17) || iParam1 == 21) || iParam1 == 22) || iParam1 == 32) || (iParam1 >= 34 && iParam1 <= 39)) || (iParam1 >= 41 && iParam1 <= 45)) || iParam1 == 46) || (iParam1 >= 47 && iParam1 <= 54)) || (iParam1 >= 55 && iParam1 <= 70)) || (iParam1 >= 72 && iParam1 <= 79)) || iParam1 == 80) || (iParam1 >= 81 && iParam1 <= 83)) || (iParam1 >= 84 && iParam1 <= 87)) || iParam1 == 88) || (iParam1 >= 89 && iParam1 <= 91)) || iParam1 == 95) || (iParam1 >= 96 && iParam1 <= 111)) || iParam1 == 112)
  			{
  				*iParam2 = 6;
  				return 1;
  			}
  			break;
  		
  		case joaat("player_one"):
  			if ((((((iParam1 == 12 || (iParam1 >= 14 && iParam1 <= 21)) || iParam1 == 32) || iParam1 == 52) || (iParam1 >= 69 && iParam1 <= 70)) || iParam1 == 71) || (iParam1 >= 72 && iParam1 <= 77))
  			{
  				*iParam2 = 17;
  				return 1;
  			}
  			break;
  		
  		case joaat("player_two"):
  			if (((((((((((((((iParam1 == 4 || iParam1 == 5) || iParam1 == 6) || iParam1 == 7) || iParam1 == 14) || (iParam1 >= 18 && iParam1 <= 29)) || iParam1 == 31) || iParam1 == 32) || iParam1 == 33) || iParam1 == 34) || (iParam1 >= 35 && iParam1 <= 42)) || (iParam1 >= 43 && iParam1 <= 53)) || (iParam1 >= 54 && iParam1 <= 61)) || (iParam1 >= 71 && iParam1 <= 80)) || (iParam1 >= 81 && iParam1 <= 90)) || (iParam1 >= 94 && iParam1 <= 103))
  			{
  				*iParam2 = 8;
  				return 1;
  			}
  			break;
  	}
  	return 0;
  }
  
  int func_231(int iParam0, int iParam1, int iParam2, int iParam3)
  {
  	int iVar0;
  	
  	*iParam3 = -99;
  	switch (iParam0)
  	{
  		case joaat("player_zero"):
  			switch (iParam1)
  			{
  				case 10:
  					if (iParam2 >= 44 && iParam2 <= 47)
  					{
  						*iParam3 = 0;
  					}
  					break;
  				
  				case 14:
  					if (((((((iParam2 >= 31 && iParam2 <= 32) || (iParam2 >= 33 && iParam2 <= 34)) || (iParam2 >= 35 && iParam2 <= 36)) || iParam2 == 37) || (iParam2 >= 38 && iParam2 <= 39)) || (iParam2 >= 40 && iParam2 <= 41)) || (iParam2 >= 42 && iParam2 <= 44))
  					{
  						*iParam3 = 0;
  					}
  					break;
  			}
  			break;
  		
  		case joaat("player_one"):
  			switch (iParam1)
  			{
  				case 10:
  					if (iParam2 >= 47 && iParam2 <= 50)
  					{
  						*iParam3 = 0;
  					}
  					break;
  				
  				case 14:
  					if (((((iParam2 >= 26 && iParam2 <= 27) || (iParam2 >= 28 && iParam2 <= 29)) || (iParam2 >= 30 && iParam2 <= 31)) || iParam2 == 32) || (iParam2 >= 35 && iParam2 <= 36))
  					{
  						*iParam3 = 0;
  					}
  					break;
  			}
  			break;
  		
  		case joaat("player_two"):
  			switch (iParam1)
  			{
  				case 9:
  					if (iParam2 >= 15 && iParam2 <= 16)
  					{
  						*iParam3 = 0;
  					}
  					break;
  				
  				case 10:
  					if (iParam2 >= 29 && iParam2 <= 32)
  					{
  						*iParam3 = 0;
  					}
  					break;
  				
  				case 14:
  					if (((((((iParam2 >= 47 && iParam2 <= 48) || (iParam2 >= 49 && iParam2 <= 50)) || (iParam2 >= 51 && iParam2 <= 52)) || iParam2 == 53) || (iParam2 >= 54 && iParam2 <= 55)) || (iParam2 >= 56 && iParam2 <= 57)) || (iParam2 >= 58 && iParam2 <= 60))
  					{
  						*iParam3 = 0;
  					}
  					break;
  			}
  			break;
  	}
  	if (*iParam3 != -99)
  	{
  		iVar0 = func_215(iParam0);
  		Global_112922.f_2363.f_539[iVar0 /*65*/].f_63 = iParam2;
  		Global_112922.f_2363.f_539[iVar0 /*65*/].f_64 = iParam1;
  		return 1;
  	}
  	return 0;
  }
  
  int func_232(int iParam0, int iParam1, int iParam2)
  {
  	switch (iParam0)
  	{
  		case joaat("player_zero"):
  			if (iParam1 == 1)
  			{
  				if (iParam2 == 0)
  				{
  					return 1;
  				}
  				else if (iParam2 == 4)
  				{
  					return 5;
  				}
  				else
  				{
  					return 3;
  				}
  			}
  			else if (iParam2 == 0)
  			{
  				return 0;
  			}
  			else if (iParam2 == 4)
  			{
  				return 4;
  			}
  			else
  			{
  				return 2;
  			}
  			break;
  		
  		case joaat("player_one"):
  			if (iParam1 >= 0 && iParam1 <= 15)
  			{
  				if (iParam2 == 0)
  				{
  					return 0;
  				}
  				else
  				{
  					return 3;
  				}
  			}
  			else if (iParam1 >= 16 && iParam1 <= 17)
  			{
  				if (iParam2 == 0)
  				{
  					return 2;
  				}
  				else
  				{
  					return 5;
  				}
  			}
  			else if (iParam1 == 18)
  			{
  				if (iParam2 == 0)
  				{
  					return 6;
  				}
  				else
  				{
  					return 7;
  				}
  			}
  			else if (iParam1 == 19)
  			{
  				if (iParam2 == 0)
  				{
  					return 1;
  				}
  				else
  				{
  					return 4;
  				}
  			}
  			else if (iParam2 == 0)
  			{
  				return 1;
  			}
  			else
  			{
  				return 4;
  			}
  			break;
  		
  		case joaat("player_two"):
  			if (iParam1 == 2)
  			{
  				if (iParam2 == 0)
  				{
  					return 2;
  				}
  				else
  				{
  					return 3;
  				}
  			}
  			else if (iParam1 == 3)
  			{
  				if (iParam2 == 0)
  				{
  					return 4;
  				}
  				else
  				{
  					return 6;
  				}
  			}
  			else if (iParam1 == 8)
  			{
  				return 5;
  			}
  			else if (iParam2 == 0)
  			{
  				return 0;
  			}
  			else
  			{
  				return 1;
  			}
  			break;
  	}
  	return -99;
  }
  
  void func_233(int iParam0, int iParam1, int iParam2, int iParam3)
  {
  	int iVar0;
  	
  	if (iParam2 == -1)
  	{
  		PED::CLEAR_PED_PROP(iParam0, iParam1);
  		if (iParam1 == 0)
  		{
  			PED::SET_PED_CONFIG_FLAG(iParam0, 34, false);
  			PED::SET_PED_CONFIG_FLAG(iParam0, 36, false);
  		}
  	}
  	else
  	{
  		PED::SET_PED_PROP_INDEX(iParam0, iParam1, iParam2, iParam3, NETWORK::NETWORK_IS_GAME_IN_PROGRESS());
  		if (iParam1 == 0)
  		{
  			iVar0 = func_238(iParam0, iParam2, iParam3, iParam1);
  			if (func_234(ENTITY::GET_ENTITY_MODEL(iParam0), 14, iVar0, FILES::GET_HASH_NAME_FOR_PROP(iParam0, 0, iParam2, iParam3)))
  			{
  				PED::SET_PED_CONFIG_FLAG(iParam0, 34, true);
  				PED::SET_PED_CONFIG_FLAG(iParam0, 36, true);
  			}
  			else
  			{
  				PED::SET_PED_CONFIG_FLAG(iParam0, 34, false);
  				PED::SET_PED_CONFIG_FLAG(iParam0, 36, false);
  			}
  		}
  	}
  }
  
  int func_234(int iParam0, int iParam1, int iParam2, int iParam3)
  {
  	switch (iParam0)
  	{
  		case joaat("mp_m_freemode_01"):
  			switch (iParam1)
  			{
  				case 14:
  					if (iParam3 == -1)
  					{
  						iParam3 = func_235(iParam0, iParam2, 14, 3);
  					}
  					if ((iParam2 >= 131 && iParam2 <= 154) || (iParam2 >= 327 && FILES::DOES_SHOP_PED_APPAREL_HAVE_RESTRICTION_TAG(iParam3, joaat("HELMET"), 1)))
  					{
  						return 1;
  					}
  					break;
  			}
  			break;
  		
  		case joaat("mp_f_freemode_01"):
  			switch (iParam1)
  			{
  				case 14:
  					if (iParam3 == -1)
  					{
  						iParam3 = func_235(iParam0, iParam2, 14, 4);
  					}
  					if ((iParam2 >= 131 && iParam2 <= 154) || (iParam2 >= 327 && FILES::DOES_SHOP_PED_APPAREL_HAVE_RESTRICTION_TAG(iParam3, joaat("HELMET"), 1)))
  					{
  						return 1;
  					}
  					break;
  			}
  			break;
  	}
  	return 0;
  }
  
  int func_235(int iParam0, int iParam1, int iParam2, int iParam3)
  {
  	struct<2> Var0;
  	int iVar17;
  	int iVar18;
  	struct<2> Var19;
  	int iVar36;
  	int iVar37;
  	
  	if (iParam2 == 12)
  	{
  	}
  	else if (iParam2 == 13)
  	{
  	}
  	else if (iParam2 == 14)
  	{
  		FILES::INIT_SHOP_PED_PROP(&Var0);
  		iVar17 = (iParam1 - func_237(iParam0));
  		if (iVar17 < 0)
  		{
  			return -1;
  		}
  		iVar18 = FILES::SETUP_SHOP_PED_APPAREL_QUERY_TU(iParam3, 10, -1, true, -1, -1);
  		if (iVar18 <= iVar17)
  		{
  			return -1;
  		}
  		FILES::GET_SHOP_PED_QUERY_PROP(iVar17, &Var0);
  		return Var0.f_1;
  	}
  	else
  	{
  		FILES::INIT_SHOP_PED_COMPONENT(&Var19);
  		iVar36 = (iParam1 - func_236(iParam0, func_223(iParam2)));
  		if (iVar36 < 0)
  		{
  			return -1;
  		}
  		if ((iParam0 == Global_77791.f_26[iParam2] && iParam1 == Global_77791[iParam2]) && Global_77791.f_13[iParam2] != 0)
  		{
  			return Global_77791.f_13[iParam2];
  		}
  		iVar37 = FILES::SETUP_SHOP_PED_APPAREL_QUERY_TU(iParam3, 10, -1, false, -1, func_223(iParam2));
  		if (iVar37 <= iVar36)
  		{
  			return -1;
  		}
  		FILES::GET_SHOP_PED_QUERY_COMPONENT(iVar36, &Var19);
  		Global_77791.f_13[iParam2] = Var19.f_1;
  		Global_77791[iParam2] = iParam1;
  		Global_77791.f_26[iParam2] = iParam0;
  		return Var19.f_1;
  	}
  	return -1;
  }
  
  int func_236(int iParam0, int iParam1)
  {
  	switch (iParam0)
  	{
  		case joaat("player_zero"):
  			switch (iParam1)
  			{
  				case 0:
  					return 7;
  					break;
  				
  				case 1:
  					return 5;
  					break;
  				
  				case 2:
  					return 6;
  					break;
  				
  				case 3:
  					return 181;
  					break;
  				
  				case 4:
  					return 113;
  					break;
  				
  				case 5:
  					return 14;
  					break;
  				
  				case 6:
  					return 99;
  					break;
  				
  				case 7:
  					return 1;
  					break;
  				
  				case 8:
  					return 24;
  					break;
  				
  				case 9:
  					return 20;
  					break;
  				
  				case 10:
  					return 48;
  					break;
  				
  				case 11:
  					return 45;
  					break;
  			}
  			break;
  		
  		case joaat("player_one"):
  			switch (iParam1)
  			{
  				case 0:
  					return 10;
  					break;
  				
  				case 1:
  					return 5;
  					break;
  				
  				case 2:
  					return 21;
  					break;
  				
  				case 3:
  					return 318;
  					break;
  				
  				case 4:
  					return 117;
  					break;
  				
  				case 5:
  					return 7;
  					break;
  				
  				case 6:
  					return 134;
  					break;
  				
  				case 7:
  					return 1;
  					break;
  				
  				case 8:
  					return 77;
  					break;
  				
  				case 9:
  					return 12;
  					break;
  				
  				case 10:
  					return 53;
  					break;
  				
  				case 11:
  					return 63;
  					break;
  			}
  			break;
  		
  		case joaat("player_two"):
  			switch (iParam1)
  			{
  				case 0:
  					return 7;
  					break;
  				
  				case 1:
  					return 6;
  					break;
  				
  				case 2:
  					return 9;
  					break;
  				
  				case 3:
  					return 242;
  					break;
  				
  				case 4:
  					return 104;
  					break;
  				
  				case 5:
  					return 7;
  					break;
  				
  				case 6:
  					return 84;
  					break;
  				
  				case 7:
  					return 1;
  					break;
  				
  				case 8:
  					return 18;
  					break;
  				
  				case 9:
  					return 17;
  					break;
  				
  				case 10:
  					return 33;
  					break;
  				
  				case 11:
  					return 1;
  					break;
  			}
  			break;
  	}
  	switch (iParam0)
  	{
  		case joaat("mp_m_freemode_01"):
  			switch (iParam1)
  			{
  				case 0:
  					return 0;
  					break;
  				
  				case 1:
  					return 26;
  					break;
  				
  				case 2:
  					return 91;
  					break;
  				
  				case 3:
  					return 16;
  					break;
  				
  				case 4:
  					return 256;
  					break;
  				
  				case 5:
  					return 9;
  					break;
  				
  				case 6:
  					return 256;
  					break;
  				
  				case 7:
  					return 92;
  					break;
  				
  				case 8:
  					return 241;
  					break;
  				
  				case 9:
  					return 46;
  					break;
  				
  				case 10:
  					return 7;
  					break;
  				
  				case 11:
  					return 237;
  					break;
  			}
  			break;
  		
  		case joaat("mp_f_freemode_01"):
  			switch (iParam1)
  			{
  				case 0:
  					return 0;
  					break;
  				
  				case 1:
  					return 26;
  					break;
  				
  				case 2:
  					return 92;
  					break;
  				
  				case 3:
  					return 16;
  					break;
  				
  				case 4:
  					return 256;
  					break;
  				
  				case 5:
  					return 9;
  					break;
  				
  				case 6:
  					return 256;
  					break;
  				
  				case 7:
  					return 55;
  					break;
  				
  				case 8:
  					return 136;
  					break;
  				
  				case 9:
  					return 36;
  					break;
  				
  				case 10:
  					return 6;
  					break;
  				
  				case 11:
  					return 256;
  					break;
  			}
  			break;
  	}
  	return -99;
  }
  
  int func_237(int iParam0)
  {
  	switch (iParam0)
  	{
  		case joaat("player_zero"):
  			return 113;
  			break;
  		
  		case joaat("player_one"):
  			return 175;
  			break;
  		
  		case joaat("player_two"):
  			return 155;
  			break;
  	}
  	switch (iParam0)
  	{
  		case joaat("mp_m_freemode_01"):
  			return 327;
  			break;
  		
  		case joaat("mp_f_freemode_01"):
  			return 327;
  			break;
  	}
  	return -99;
  }
  
  int func_238(int iParam0, int iParam1, int iParam2, int iParam3)
  {
  	int iVar0;
  	int iVar1;
  	int iVar2;
  	int iVar3;
  	int iVar4;
  	int iVar5;
  	int iVar6;
  	
  	if (iParam1 == -1)
  	{
  		return func_241(iParam3);
  	}
  	iVar0 = ENTITY::GET_ENTITY_MODEL(iParam0);
  	iVar1 = FILES::GET_HASH_NAME_FOR_PROP(iParam0, iParam3, iParam1, iParam2);
  	if (iVar1 != -1 && iVar1 != 0)
  	{
  		if (iVar0 == joaat("mp_m_freemode_01"))
  		{
  			return func_240(ENTITY::GET_ENTITY_MODEL(iParam0), iVar1, 14, 3);
  		}
  		else if (iVar0 == joaat("mp_f_freemode_01"))
  		{
  			return func_240(ENTITY::GET_ENTITY_MODEL(iParam0), iVar1, 14, 4);
  		}
  	}
  	iVar2 = PED::GET_NUMBER_OF_PED_PROP_DRAWABLE_VARIATIONS(iParam0, iParam3);
  	iVar4 = 0;
  	while (iVar4 <= (iVar2 - 1))
  	{
  		iVar6 = PED::GET_NUMBER_OF_PED_PROP_TEXTURE_VARIATIONS(iParam0, iParam3, iVar4);
  		if (iVar4 != iParam1)
  		{
  			iVar3 = (iVar3 + iVar6);
  		}
  		else
  		{
  			iVar5 = 0;
  			while (iVar5 <= (iVar6 - 1))
  			{
  				if (iVar4 == iParam1 && iVar5 == iParam2)
  				{
  					iVar3 = (iVar3 + func_239(iParam0, iParam3));
  					return iVar3;
  				}
  				else
  				{
  					iVar3++;
  				}
  				iVar5++;
  			}
  		}
  		iVar4++;
  	}
  	return func_241(iParam3);
  }
  
  int func_239(int iParam0, int iParam1)
  {
  	int iVar0;
  	
  	iVar0 = ENTITY::GET_ENTITY_MODEL(iParam0);
  	switch (iVar0)
  	{
  		case joaat("player_zero"):
  			switch (iParam1)
  			{
  				case 0:
  					return 10;
  					break;
  				
  				case 1:
  					return 58;
  					break;
  				
  				case 2:
  					return 112;
  					break;
  			}
  			break;
  		
  		case joaat("player_one"):
  			switch (iParam1)
  			{
  				case 0:
  					return 10;
  					break;
  				
  				case 1:
  					return 82;
  					break;
  				
  				case 2:
  					return 158;
  					break;
  			}
  			break;
  		
  		case joaat("player_two"):
  			switch (iParam1)
  			{
  				case 0:
  					return 10;
  					break;
  				
  				case 1:
  					return 88;
  					break;
  				
  				case 2:
  					return 154;
  					break;
  			}
  			break;
  		
  		case joaat("mp_m_freemode_01"):
  			switch (iParam1)
  			{
  				case 0:
  					return 10;
  					break;
  				
  				case 1:
  					return 155;
  					break;
  				
  				case 6:
  					return 319;
  					break;
  			}
  			break;
  		
  		case joaat("mp_f_freemode_01"):
  			switch (iParam1)
  			{
  				case 0:
  					return 10;
  					break;
  				
  				case 1:
  					return 155;
  					break;
  				
  				case 6:
  					return 319;
  					break;
  			}
  			break;
  	}
  	return -99;
  }
  
  int func_240(int iParam0, int iParam1, int iParam2, int iParam3)
  {
  	int iVar0;
  	int iVar1;
  	
  	if (iParam2 == 12)
  	{
  	}
  	else if (iParam2 == 13)
  	{
  	}
  	else if (iParam2 == 14)
  	{
  		FILES::SETUP_SHOP_PED_APPAREL_QUERY_TU(iParam3, 10, -1, true, -1, -1);
  		iVar0 = FILES::_0x6CEBE002E58DEE97(iParam1);
  		if (iVar0 != -1)
  		{
  			return (func_237(iParam0) + iVar0);
  		}
  	}
  	else
  	{
  		FILES::SETUP_SHOP_PED_APPAREL_QUERY_TU(iParam3, 10, -1, false, -1, func_223(iParam2));
  		iVar1 = FILES::_0x96E2929292A4DB77(iParam1);
  		if (iVar1 != -1)
  		{
  			return (func_236(iParam0, func_223(iParam2)) + iVar1);
  		}
  	}
  	return -99;
  }
  
  int func_241(int iParam0)
  {
  	switch (iParam0)
  	{
  		case 0:
  			return 0;
  			break;
  		
  		case 1:
  			return 1;
  			break;
  		
  		case 2:
  			return 2;
  			break;
  		
  		case 3:
  			return 3;
  			break;
  		
  		case 4:
  			return 4;
  			break;
  		
  		case 5:
  			return 5;
  			break;
  		
  		case 6:
  			return 6;
  			break;
  		
  		case 7:
  			return 7;
  			break;
  		
  		case 8:
  			return 8;
  			break;
  	}
  	return 0;
  }
  
  struct<10> func_242(int iParam0, int iParam1)
  {
  	int iVar0;
  	struct<10> Var1;
  	
  	Var1 = 9;
  	iVar0 = 0;
  	while (iVar0 <= 8)
  	{
  		Var1[iVar0] = -99;
  		iVar0++;
  	}
  	switch (iParam0)
  	{
  		case joaat("player_zero"):
  			switch (iParam1)
  			{
  				case 31:
  					func_244(&Var1, 0, 1, 2, 3, 4, 5, 6, 7, 8);
  					break;
  				
  				case 0:
  					func_244(&Var1, 10, 1, 2, 3, 4, 5, 6, 7, 8);
  					break;
  				
  				case 1:
  					func_244(&Var1, 19, 1, 2, 3, 4, 5, 6, 7, 8);
  					break;
  				
  				case 2:
  					func_244(&Var1, 14, 1, 2, 3, 4, 5, 6, 7, 8);
  					break;
  				
  				case 3:
  					func_244(&Var1, 18, 1, 2, 3, 4, 5, 6, 7, 8);
  					break;
  				
  				case 4:
  					func_244(&Var1, 0, 59, 112, 3, 4, 5, 6, 7, 8);
  					break;
  				
  				case 5:
  					func_244(&Var1, 0, 60, 112, 3, 4, 5, 6, 7, 8);
  					break;
  				
  				case 6:
  					func_244(&Var1, 15, 1, 2, 3, 4, 5, 6, 7, 8);
  					break;
  				
  				case 7:
  					func_244(&Var1, 0, 60, 2, 3, 4, 5, 6, 7, 8);
  					break;
  				
  				case 8:
  					func_244(&Var1, 55, 1, 2, 3, 4, 5, 6, 7, 8);
  					break;
  				
  				case 9:
  					func_244(&Var1, 0, 1, 112, 3, 4, 5, 6, 7, 8);
  					break;
  				
  				default:
  					func_243(&Var1, iParam0, iParam1, 10);
  					break;
  			}
  			break;
  		
  		case joaat("player_one"):
  			switch (iParam1)
  			{
  				case 31:
  					func_244(&Var1, 0, 1, 2, 3, 4, 5, 6, 7, 8);
  					break;
  				
  				case 0:
  					func_244(&Var1, 10, 1, 2, 3, 4, 5, 6, 7, 8);
  					break;
  				
  				case 1:
  					func_244(&Var1, 0, 82, 158, 3, 4, 5, 6, 7, 8);
  					break;
  				
  				case 2:
  					func_244(&Var1, 0, 1, 158, 3, 4, 5, 6, 7, 8);
  					break;
  				
  				case 3:
  					func_244(&Var1, 15, 1, 2, 3, 4, 5, 6, 7, 8);
  					break;
  				
  				case 4:
  					func_244(&Var1, 41, 1, 2, 3, 4, 5, 6, 7, 8);
  					break;
  				
  				case 5:
  					func_244(&Var1, 40, 1, 2, 3, 4, 5, 6, 7, 8);
  					break;
  				
  				case 6:
  					func_244(&Var1, 41, 95, 2, 3, 4, 5, 6, 7, 8);
  					break;
  				
  				case 7:
  					func_244(&Var1, 0, 95, 2, 3, 4, 5, 6, 7, 8);
  					break;
  				
  				case 8:
  					func_244(&Var1, 69, 95, 2, 3, 4, 5, 6, 7, 8);
  					break;
  				
  				default:
  					func_243(&Var1, iParam0, iParam1, 9);
  					break;
  			}
  			break;
  		
  		case joaat("player_two"):
  			switch (iParam1)
  			{
  				case 31:
  					func_244(&Var1, 0, 1, 2, 3, 4, 5, 6, 7, 8);
  					break;
  				
  				case 0:
  					func_244(&Var1, 11, 1, 2, 3, 4, 5, 6, 7, 8);
  					break;
  				
  				case 1:
  					func_244(&Var1, 17, 90, 2, 3, 4, 5, 6, 7, 8);
  					break;
  				
  				case 2:
  					func_244(&Var1, 15, 1, 2, 3, 4, 5, 6, 7, 8);
  					break;
  				
  				case 3:
  					func_244(&Var1, 0, 88, 154, 3, 4, 5, 6, 7, 8);
  					break;
  				
  				case 4:
  					func_244(&Var1, 0, 1, 154, 3, 4, 5, 6, 7, 8);
  					break;
  				
  				case 5:
  					func_244(&Var1, 16, 1, 2, 3, 4, 5, 6, 7, 8);
  					break;
  				
  				case 6:
  					func_244(&Var1, 36, 1, 2, 3, 4, 5, 6, 7, 8);
  					break;
  				
  				case 7:
  					func_244(&Var1, 0, 123, 2, 3, 4, 5, 6, 7, 8);
  					break;
  				
  				case 8:
  					func_244(&Var1, 69, 1, 2, 3, 4, 5, 6, 7, 8);
  					break;
  				
  				default:
  					func_243(&Var1, iParam0, iParam1, 9);
  					break;
  			}
  			break;
  		
  		case joaat("mp_m_freemode_01"):
  			switch (iParam1)
  			{
  				case 31:
  					func_244(&Var1, 0, 1, 2, 3, 4, 5, 6, 7, 8);
  					break;
  				
  				case 0:
  					func_244(&Var1, 129, 167, 2, 3, 4, 5, 6, 7, 8);
  					break;
  				
  				case 1:
  					func_244(&Var1, 90, 1, 2, 3, 4, 5, 6, 7, 8);
  					break;
  				
  				case 2:
  					func_244(&Var1, 23, 251, 2, 3, 4, 5, 6, 7, 8);
  					break;
  				
  				case 3:
  					func_244(&Var1, 36, 262, 2, 3, 4, 5, 6, 7, 8);
  					break;
  				
  				case 4:
  					func_244(&Var1, 88, 1, 2, 3, 4, 5, 6, 7, 8);
  					break;
  				
  				case 5:
  					func_244(&Var1, 125, 175, 2, 3, 4, 5, 6, 7, 8);
  					break;
  				
  				case 6:
  					func_244(&Var1, 35, 1, 2, 3, 4, 5, 6, 7, 8);
  					break;
  				
  				case 7:
  					func_244(&Var1, 44, 208, 2, 3, 4, 5, 6, 7, 8);
  					break;
  				
  				case 8:
  					func_244(&Var1, 52, 189, 2, 3, 4, 5, 6, 7, 8);
  					break;
  				
  				case 9:
  					func_244(&Var1, 0, 261, 2, 3, 4, 5, 6, 7, 8);
  					break;
  				
  				case 10:
  					func_244(&Var1, 0, 243, 2, 3, 4, 5, 6, 7, 8);
  					break;
  				
  				case 11:
  					func_244(&Var1, 0, 243, 2, 3, 4, 5, 6, 7, 8);
  					break;
  				
  				case 12:
  					func_244(&Var1, 0, 212, 2, 3, 4, 5, 6, 7, 8);
  					break;
  				
  				case 13:
  					func_244(&Var1, 64, 291, 2, 3, 4, 5, 6, 7, 8);
  					break;
  				
  				case 14:
  					func_244(&Var1, 61, 207, 2, 3, 4, 5, 6, 7, 8);
  					break;
  				
  				case 15:
  					func_244(&Var1, 0, 291, 2, 3, 4, 5, 6, 7, 8);
  					break;
  				
  				case 16:
  					func_244(&Var1, 0, 208, 2, 3, 4, 5, 6, 7, 8);
  					break;
  				
  				case 17:
  					func_244(&Var1, 0, 229, 2, 3, 4, 5, 6, 7, 8);
  					break;
  				
  				case 18:
  					func_244(&Var1, 36, 249, 2, 3, 4, 5, 6, 7, 8);
  					break;
  				
  				case 19:
  					func_244(&Var1, 0, 259, 2, 3, 4, 5, 6, 7, 8);
  					break;
  				
  				case 20:
  					func_244(&Var1, 0, 174, 2, 3, 4, 5, 6, 7, 8);
  					break;
  				
  				case 21:
  					func_244(&Var1, 35, 180, 2, 3, 4, 5, 6, 7, 8);
  					break;
  				
  				case 22:
  					func_244(&Var1, 36, 1, 2, 3, 4, 5, 6, 7, 8);
  					break;
  				
  				case 23:
  					func_244(&Var1, 0, 259, 2, 3, 4, 5, 6, 7, 8);
  					break;
  				
  				case 24:
  					func_244(&Var1, 35, 1, 2, 3, 4, 5, 6, 7, 8);
  					break;
  				
  				default:
  					func_243(&Var1, iParam0, iParam1, 25);
  					break;
  			}
  			break;
  		
  		case joaat("mp_f_freemode_01"):
  			switch (iParam1)
  			{
  				case 31:
  					func_244(&Var1, 0, 1, 2, 3, 4, 5, 6, 7, 8);
  					break;
  				
  				case 0:
  					func_244(&Var1, 35, 233, 2, 3, 4, 5, 6, 7, 8);
  					break;
  				
  				case 1:
  					func_244(&Var1, 36, 178, 2, 3, 4, 5, 6, 7, 8);
  					break;
  				
  				case 2:
  					func_244(&Var1, 53, 221, 2, 3, 4, 5, 6, 7, 8);
  					break;
  				
  				case 3:
  					func_244(&Var1, 38, 170, 2, 3, 4, 5, 6, 7, 8);
  					break;
  				
  				case 4:
  					func_244(&Var1, 37, 1, 2, 3, 4, 5, 6, 7, 8);
  					break;
  				
  				case 5:
  					func_244(&Var1, 113, 203, 2, 3, 4, 5, 6, 7, 8);
  					break;
  				
  				case 6:
  					func_244(&Var1, 114, 183, 2, 3, 4, 5, 6, 7, 8);
  					break;
  				
  				case 7:
  					func_244(&Var1, 0, 221, 2, 3, 4, 5, 6, 7, 8);
  					break;
  				
  				case 8:
  					func_244(&Var1, 0, 221, 2, 3, 4, 5, 6, 7, 8);
  					break;
  				
  				case 9:
  					func_244(&Var1, 0, 199, 2, 3, 4, 5, 6, 7, 8);
  					break;
  				
  				case 10:
  					func_244(&Var1, 0, 182, 2, 3, 4, 5, 6, 7, 8);
  					break;
  				
  				case 11:
  					func_244(&Var1, 0, 233, 2, 3, 4, 5, 6, 7, 8);
  					break;
  				
  				case 12:
  					func_244(&Var1, 107, 167, 2, 3, 4, 5, 6, 7, 8);
  					break;
  				
  				case 13:
  					func_244(&Var1, 109, 170, 2, 3, 4, 5, 323, 7, 8);
  					break;
  				
  				case 14:
  					func_244(&Var1, 119, 237, 2, 3, 4, 5, 6, 7, 8);
  					break;
  				
  				case 15:
  					func_244(&Var1, 0, 221, 2, 3, 4, 5, 6, 7, 8);
  					break;
  				
  				case 16:
  					func_244(&Var1, 114, 1, 2, 3, 4, 5, 6, 7, 8);
  					break;
  				
  				case 17:
  					func_244(&Var1, 35, 268, 2, 3, 4, 5, 6, 7, 8);
  					break;
  				
  				case 18:
  					func_244(&Var1, 0, 266, 2, 3, 4, 5, 6, 7, 8);
  					break;
  				
  				case 19:
  					func_244(&Var1, 42, 1, 2, 3, 4, 5, 6, 7, 8);
  					break;
  				
  				case 20:
  					func_244(&Var1, 76, 1, 2, 3, 4, 5, 6, 7, 8);
  					break;
  				
  				case 21:
  					func_244(&Var1, 39, 235, 2, 3, 4, 5, 6, 7, 8);
  					break;
  				
  				case 22:
  					func_244(&Var1, 41, 183, 2, 3, 4, 5, 6, 7, 8);
  					break;
  				
  				case 23:
  					func_244(&Var1, 111, 194, 2, 3, 4, 5, 6, 7, 8);
  					break;
  				
  				default:
  					func_243(&Var1, iParam0, iParam1, 25);
  					break;
  			}
  			break;
  	}
  	return Var1;
  }
  
  void func_243(int iParam0, int iParam1, int iParam2, int iParam3)
  {
  	int iVar0;
  	struct<4> Var1;
  	struct<3> Var16;
  	int iVar19;
  	
  	if (iParam2 != 0 && iParam2 != -99)
  	{
  		(*iParam0)[0] = 0;
  		(*iParam0)[1] = 1;
  		(*iParam0)[2] = 2;
  		(*iParam0)[3] = 3;
  		(*iParam0)[4] = 4;
  		(*iParam0)[5] = 5;
  		(*iParam0)[6] = 6;
  		(*iParam0)[7] = 7;
  		(*iParam0)[8] = 8;
  		iVar0 = 0;
  		if (iParam1 == joaat("player_zero"))
  		{
  			iVar0 = 0;
  		}
  		else if (iParam1 == joaat("player_one"))
  		{
  			iVar0 = 1;
  		}
  		else if (iParam1 == joaat("player_two"))
  		{
  			iVar0 = 2;
  		}
  		else if (iParam1 == joaat("mp_m_freemode_01"))
  		{
  			iVar0 = 3;
  		}
  		else if (iParam1 == joaat("mp_f_freemode_01"))
  		{
  			iVar0 = 4;
  		}
  		FILES::GET_SHOP_PED_OUTFIT(iParam2, &Var1);
  		if (!FILES::IS_CONTENT_ITEM_LOCKED(Var1.f_0))
  		{
  			iVar19 = 0;
  			while (iVar19 < Var1.f_3)
  			{
  				if (FILES::GET_SHOP_PED_OUTFIT_PROP_VARIANT(Var1.f_1, iVar19, &Var16) && Var16.f_2 != -1)
  				{
  					if ((Var16.f_0 != 0 && Var16.f_0 != -1) && Var16.f_0 != joaat("0"))
  					{
  						(*iParam0)[Var16.f_2] = func_240(iParam1, Var16.f_0, 14, iVar0);
  					}
  					else if (Var16.f_1 != -1)
  					{
  						(*iParam0)[Var16.f_2] = Var16.f_1;
  					}
  				}
  				iVar19++;
  			}
  		}
  	}
  }
  
  void func_244(int iParam0, int iParam1, int iParam2, int iParam3, int iParam4, int iParam5, int iParam6, int iParam7, int iParam8, int iParam9)
  {
  	(*iParam0)[0] = iParam1;
  	(*iParam0)[1] = iParam2;
  	(*iParam0)[2] = iParam3;
  	(*iParam0)[3] = iParam4;
  	(*iParam0)[4] = iParam5;
  	(*iParam0)[5] = iParam6;
  	(*iParam0)[6] = iParam7;
  	(*iParam0)[7] = iParam8;
  	(*iParam0)[8] = iParam9;
  }
  
  struct<17> func_245(int iParam0, int iParam1)
  {
  	int iVar0;
  	struct<17> Var1;
  	
  	Var1 = 15;
  	iVar0 = 0;
  	while (iVar0 <= 14)
  	{
  		Var1[iVar0] = -99;
  		iVar0++;
  	}
  	Var1.f_16 = 0;
  	switch (iParam0)
  	{
  		case joaat("player_zero"):
  			switch (iParam1)
  			{
  				case 0:
  					if (Global_112922.f_9085.f_99.f_58[120])
  					{
  						func_248(&Var1, -99, -99, 1, 1, 0, 0, 0, 0, 0, -99, 0, 0, 31);
  					}
  					else
  					{
  						func_248(&Var1, -99, -99, 0, 0, 0, 0, 0, 0, 0, -99, 0, 0, 31);
  					}
  					break;
  				
  				case 1:
  					func_248(&Var1, -99, -99, 16, 16, 6, 1, 1, 0, 1, -99, 0, 0, 0);
  					break;
  				
  				case 2:
  					func_248(&Var1, -99, -99, 36, 21, 6, 1, 5, 0, 0, -99, 0, 0, 8);
  					break;
  				
  				case 3:
  					func_248(&Var1, -99, -99, 65, 36, 6, 0, 2, 0, 0, -99, 0, 0, 31);
  					break;
  				
  				case 4:
  					func_248(&Var1, -99, -99, 61, 32, 6, 0, 0, 7, 3, -99, 0, 0, 2);
  					break;
  				
  				case 5:
  					func_248(&Var1, -99, -99, Global_112922.f_2363.f_539.f_196[0], Global_112922.f_2363.f_539.f_200[0], 6, 3, 0, 0, 0, -99, 0, 0, 3);
  					break;
  				
  				case 6:
  					func_248(&Var1, -99, -99, 92, 72, 7, 0, 0, 0, 0, -99, 0, 0, 31);
  					break;
  				
  				case 7:
  					func_248(&Var1, -99, -99, 85, 95, 6, 0, 0, 0, 0, -99, 0, 0, 31);
  					break;
  				
  				case 8:
  					func_248(&Var1, -99, -99, 170, 80, 6, 0, 0, 0, 0, -99, 0, 0, 31);
  					break;
  				
  				case 9:
  					func_248(&Var1, -99, -99, 171, 89, 6, 0, 0, 0, 0, -99, 0, 0, 31);
  					break;
  				
  				case 10:
  					func_248(&Var1, -99, -99, 33, 18, 8, 10, 3, 8, 0, -99, 0, 0, 4);
  					break;
  				
  				case 11:
  					func_248(&Var1, -99, -99, 33, 18, 17, 10, 4, 8, 0, -99, 0, 0, 5);
  					break;
  				
  				case 12:
  					func_248(&Var1, -99, -99, 35, 20, 9, 10, 23, 0, 0, -99, 0, 0, 31);
  					break;
  				
  				case 13:
  					func_248(&Var1, -99, -99, 69, 40, 13, 0, 0, 0, 0, -99, 0, 0, 31);
  					break;
  				
  				case 14:
  					func_248(&Var1, -99, -99, 62, 33, 38, 0, 8, 0, 0, -99, 0, 0, 6);
  					break;
  				
  				case 15:
  					func_248(&Var1, -99, -99, 63, 34, 6, 10, 0, 0, 4, -99, 0, 0, 31);
  					break;
  				
  				case 16:
  					func_248(&Var1, -99, -99, 174, 93, 18, 0, 18, 0, 0, -99, 0, 0, 31);
  					break;
  				
  				case 17:
  					func_248(&Var1, -99, -99, 76, 46, 6, 10, 0, 0, 0, -99, 0, 0, 31);
  					break;
  				
  				case 18:
  					func_248(&Var1, -99, -99, 35, 20, 9, 10, 0, 4, 0, -99, 0, 0, 7);
  					break;
  				
  				case 19:
  					func_248(&Var1, -99, -99, 64, 35, 6, 0, 0, 0, 0, -99, 0, 0, 31);
  					break;
  				
  				case 20:
  					func_248(&Var1, -99, -99, 66, 37, 6, 0, 0, 0, 0, -99, 0, 0, 31);
  					break;
  				
  				case 21:
  					func_248(&Var1, -99, -99, 67, 38, 6, 0, 0, 0, 0, -99, 0, 0, 31);
  					break;
  				
  				case 22:
  					func_248(&Var1, -99, -99, 68, 39, 6, 0, 0, 0, 0, -99, 0, 0, 31);
  					break;
  				
  				case 23:
  					func_248(&Var1, -99, -99, 177, 94, 19, 9, 0, 0, 0, -99, 0, 0, 31);
  					break;
  				
  				case 24:
  					func_248(&Var1, -99, -99, 35, 20, 9, 10, 4, 0, 0, -99, 0, 0, 31);
  					break;
  				
  				case 25:
  					func_248(&Var1, -99, -99, 97, 81, 6, 0, 0, 0, 0, -99, 0, 0, 31);
  					break;
  				
  				case 26:
  					func_248(&Var1, -99, -99, 3, 3, 0, 0, 0, 0, 0, -99, 0, 0, 31);
  					break;
  				
  				case 27:
  					func_248(&Var1, -99, -99, 129, 81, 6, 0, 0, 0, 0, -99, 0, 0, 31);
  					break;
  				
  				case 28:
  					func_248(&Var1, -99, -99, 170, 80, 6, 0, 13, 0, 0, -99, 0, 0, 31);
  					break;
  				
  				case 29:
  					func_248(&Var1, -99, -99, 2, 2, 0, 0, 0, 0, 0, -99, 0, 0, 31);
  					break;
  				
  				case 30:
  					func_248(&Var1, -99, -99, 161, 3, 0, 0, 0, 0, 0, -99, 0, 0, 31);
  					break;
  				
  				case 31:
  					func_248(&Var1, -99, -99, 3, 3, 0, 12, 0, 0, 0, -99, 0, 1, 31);
  					break;
  				
  				case 32:
  					func_248(&Var1, -99, -99, 85, 55, 6, 0, 0, 0, 0, -99, 0, 0, 31);
  					break;
  				
  				case 33:
  					func_248(&Var1, -99, -99, 86, 4, 20, 0, 0, 0, 0, -99, 0, 0, 31);
  					break;
  				
  				case 34:
  					func_248(&Var1, -99, -99, 44, 97, 6, 0, 0, 0, 0, -99, 0, 2, 31);
  					break;
  				
  				case 35:
  					func_248(&Var1, -99, -99, 85, 81, 6, 0, 0, 0, 0, -99, 0, 0, 31);
  					break;
  				
  				case 36:
  					func_248(&Var1, -99, -99, 4, 4, 0, 0, 0, 0, 0, -99, 0, 0, 31);
  					break;
  				
  				case 37:
  					func_248(&Var1, -99, -99, 5, 5, 0, 0, 0, 0, 0, -99, 0, 0, 31);
  					break;
  				
  				case 38:
  					func_248(&Var1, -99, -99, 6, 6, 0, 0, 0, 0, 0, -99, 0, 0, 31);
  					break;
  				
  				case 39:
  					func_248(&Var1, -99, -99, 7, 7, 0, 0, 0, 0, 0, -99, 0, 0, 31);
  					break;
  				
  				case 40:
  					func_248(&Var1, -99, -99, 8, 8, 0, 0, 0, 0, 0, -99, 0, 0, 31);
  					break;
  				
  				case 41:
  					func_248(&Var1, -99, -99, 9, 9, 0, 0, 0, 0, 0, -99, 0, 0, 31);
  					break;
  				
  				case 42:
  					func_248(&Var1, -99, -99, 10, 10, 0, 0, 0, 0, 0, -99, 0, 0, 31);
  					break;
  				
  				case 43:
  					func_248(&Var1, -99, -99, 11, 11, 0, 0, 0, 0, 0, -99, 0, 0, 31);
  					break;
  				
  				case 44:
  					func_248(&Var1, -99, -99, 12, 12, 0, 0, 0, 0, 0, -99, 0, 0, 31);
  					break;
  				
  				case 45:
  					func_248(&Var1, -99, -99, 13, 13, 0, 0, 0, 0, 0, -99, 0, 0, 31);
  					break;
  				
  				case 46:
  					func_248(&Var1, -99, -99, 14, 14, 0, 0, 0, 0, 0, -99, 0, 0, 31);
  					break;
  				
  				case 47:
  					func_248(&Var1, -99, -99, 15, 15, 0, 0, 0, 0, 0, -99, 0, 0, 31);
  					break;
  				
  				case 48:
  					func_248(&Var1, -99, -99, 91, 71, 14, 13, 0, 0, 0, -99, 0, 0, 31);
  					break;
  				
  				case 49:
  					func_248(&Var1, -99, -99, 35, 20, 9, 10, 0, 0, 0, -99, 0, 0, 31);
  					break;
  				
  				case 50:
  					func_248(&Var1, -99, -99, 33, 18, 8, 10, 3, 8, 0, -99, 0, 0, 9);
  					break;
  				
  				case 51:
  					func_248(&Var1, -99, -99, 169, 95, 6, 0, 0, 0, 0, -99, 0, 0, 31);
  					break;
  				
  				case 52:
  					func_248(&Var1, -99, -99, 169, 72, 6, 0, 0, 0, 0, -99, 0, 0, 31);
  					break;
  				
  				default:
  					func_246(&Var1, iParam0, iParam1, 53);
  					break;
  			}
  			break;
  		
  		case joaat("player_one"):
  			switch (iParam1)
  			{
  				case 0:
  					func_248(&Var1, -99, -99, 73, 24, 18, 0, 26, 0, 0, -99, 0, 0, 31);
  					break;
  				
  				case 1:
  					func_248(&Var1, -99, -99, 22, 10, 64, 0, 24, 0, 0, -99, 0, 43, 31);
  					break;
  				
  				case 2:
  					func_248(&Var1, -99, -99, Global_112922.f_2363.f_539.f_196[1], Global_112922.f_2363.f_539.f_200[1], 17, 2, 26, 0, 0, -99, 0, 45, 31);
  					break;
  				
  				case 3:
  					func_248(&Var1, -99, -99, 23, 11, 13, 5, 2, 4, 0, -99, 0, 0, 1);
  					break;
  				
  				case 4:
  					func_248(&Var1, -99, -99, 23, 11, 34, 5, 26, 0, 0, -99, 0, 0, 2);
  					break;
  				
  				case 5:
  					func_248(&Var1, -99, 20, 159, 69, 17, 5, 26, 0, 0, -99, 0, 0, 31);
  					break;
  				
  				case 6:
  					func_248(&Var1, -99, -99, 40, 13, 14, 0, 0, 0, 0, -99, 0, 0, 31);
  					break;
  				
  				case 7:
  					func_248(&Var1, -99, -99, 90, 32, 17, 1, 8, 0, 1, -99, 0, 0, 3);
  					break;
  				
  				case 8:
  					func_248(&Var1, -99, -99, 17, 5, 12, 0, 26, 0, 2, -99, 0, 0, 5);
  					break;
  				
  				case 9:
  					func_248(&Var1, -99, -99, 16, 4, 12, 0, 26, 0, 0, -99, 0, 0, 31);
  					break;
  				
  				case 10:
  					func_248(&Var1, -99, -99, 208, 71, 17, 0, 26, 0, 0, -99, 0, 0, 31);
  					break;
  				
  				case 11:
  					func_248(&Var1, -99, -99, 259, 10, 35, 0, 24, 0, 0, -99, 0, 43, 31);
  					break;
  				
  				case 12:
  					func_248(&Var1, -99, -99, 18, 6, 12, 0, 26, 0, 0, -99, 0, 0, 31);
  					break;
  				
  				case 13:
  					func_248(&Var1, -99, -99, 19, 7, 12, 0, 26, 0, 0, -99, 0, 0, 31);
  					break;
  				
  				case 14:
  					func_248(&Var1, -99, -99, 20, 8, 12, 0, 26, 0, 0, -99, 0, 0, 31);
  					break;
  				
  				case 15:
  					func_248(&Var1, -99, -99, 21, 9, 12, 0, 26, 0, 0, -99, 0, 0, 31);
  					break;
  				
  				case 16:
  					func_248(&Var1, -99, -99, 135, 40, 0, 0, 26, 0, 0, -99, 0, 0, 31);
  					break;
  				
  				case 17:
  					func_248(&Var1, -99, -99, 74, 24, 52, 0, 26, 0, 0, -99, 0, 0, 31);
  					break;
  				
  				case 18:
  					func_248(&Var1, -99, -99, 176, 53, 26, 5, 26, 0, 0, -99, 0, 41, 31);
  					break;
  				
  				case 19:
  					func_248(&Var1, -99, -99, 125, 24, 18, 0, 26, 0, 0, -99, 0, 0, 31);
  					break;
  				
  				case 20:
  					func_248(&Var1, -99, -99, 162, 24, 36, 0, 26, 0, 0, -99, 0, 0, 31);
  					break;
  				
  				case 21:
  					func_248(&Var1, -99, -99, 75, 24, 36, 0, 26, 0, 0, -99, 0, 0, 4);
  					break;
  				
  				case 22:
  					func_248(&Var1, -99, -99, 227, 53, 25, 0, 27, 0, 0, -99, 0, 25, 31);
  					break;
  				
  				case 23:
  					func_248(&Var1, -99, -99, 228, 54, 25, 0, 28, 0, 0, -99, 0, 26, 31);
  					break;
  				
  				case 24:
  					func_248(&Var1, -99, -99, 229, 55, 25, 0, 29, 0, 0, -99, 0, 27, 31);
  					break;
  				
  				case 25:
  					func_248(&Var1, -99, -99, 230, 56, 25, 0, 30, 0, 0, -99, 0, 28, 31);
  					break;
  				
  				case 26:
  					func_248(&Var1, -99, -99, 231, 57, 25, 0, 31, 0, 0, -99, 0, 29, 31);
  					break;
  				
  				case 27:
  					func_248(&Var1, -99, -99, 232, 58, 25, 0, 32, 0, 0, -99, 0, 30, 31);
  					break;
  				
  				case 28:
  					func_248(&Var1, -99, -99, 233, 59, 25, 0, 33, 0, 0, -99, 0, 31, 31);
  					break;
  				
  				case 29:
  					func_248(&Var1, -99, -99, 234, 60, 25, 0, 34, 0, 0, -99, 0, 32, 31);
  					break;
  				
  				case 30:
  					func_248(&Var1, -99, -99, 235, 61, 25, 0, 35, 0, 0, -99, 0, 33, 31);
  					break;
  				
  				case 31:
  					func_248(&Var1, -99, -99, 236, 62, 25, 0, 36, 0, 0, -99, 0, 34, 31);
  					break;
  				
  				case 32:
  					func_248(&Var1, -99, -99, 237, 63, 25, 0, 37, 0, 0, -99, 0, 35, 31);
  					break;
  				
  				case 33:
  					func_248(&Var1, -99, -99, 238, 64, 25, 0, 38, 0, 0, -99, 0, 36, 31);
  					break;
  				
  				case 34:
  					func_248(&Var1, -99, -99, 239, 65, 25, 0, 39, 0, 0, -99, 0, 37, 31);
  					break;
  				
  				case 35:
  					func_248(&Var1, -99, -99, 240, 66, 25, 0, 40, 0, 0, -99, 0, 38, 31);
  					break;
  				
  				case 36:
  					func_248(&Var1, -99, -99, 241, 67, 25, 0, 41, 0, 0, -99, 0, 39, 31);
  					break;
  				
  				case 37:
  					func_248(&Var1, -99, -99, 242, 68, 25, 0, 42, 0, 0, -99, 0, 40, 31);
  					break;
  				
  				case 38:
  					func_248(&Var1, -99, -99, 260, 72, 17, 0, 26, 0, 0, -99, 0, 0, 31);
  					break;
  				
  				case 39:
  					func_248(&Var1, -99, -99, 125, 24, 0, 0, 26, 0, 0, -99, 0, 0, 31);
  					break;
  				
  				case 40:
  					func_248(&Var1, -99, -99, 123, 24, 0, 0, 26, 0, 0, -99, 0, 0, 31);
  					break;
  				
  				case 41:
  					func_248(&Var1, -99, -99, 159, 69, 17, 5, 26, 0, 0, -99, 0, 0, 31);
  					break;
  				
  				case 42:
  					func_248(&Var1, -99, -99, 89, 22, 15, 6, 26, 0, 0, -99, 0, 0, 31);
  					break;
  				
  				case 43:
  					func_248(&Var1, -99, -99, 317, 69, 17, 0, 0, 0, 51, -99, 0, 0, 6);
  					break;
  				
  				case 44:
  					func_248(&Var1, -99, -99, 30, 23, 16, 0, 0, 0, 0, -99, 0, 0, 7);
  					break;
  				
  				case 45:
  					func_248(&Var1, -99, -99, 106, 70, 17, 5, 26, 0, 0, -99, 0, 0, 8);
  					break;
  				
  				case 46:
  					func_248(&Var1, -99, -99, 117, 24, 20, 5, 26, 0, 52, -99, 0, 0, 31);
  					break;
  				
  				default:
  					func_246(&Var1, iParam0, iParam1, 47);
  					break;
  			}
  			break;
  		
  		case joaat("player_two"):
  			switch (iParam1)
  			{
  				case 0:
  					func_248(&Var1, -99, -99, 0, 91, 28, 0, 0, 0, 0, -99, 0, 0, 31);
  					break;
  				
  				case 1:
  					func_248(&Var1, -99, -99, 17, 5, 8, 2, 3, 0, 0, -99, 0, 0, 8);
  					break;
  				
  				case 2:
  					func_248(&Var1, -99, -99, 43, 8, 12, 3, 5, 0, 0, -99, 0, 0, 1);
  					break;
  				
  				case 3:
  					func_248(&Var1, -99, -99, 50, 14, 8, 0, 15, 6, 3, -99, 0, 0, 2);
  					break;
  				
  				case 4:
  					func_248(&Var1, -99, -99, Global_112922.f_2363.f_539.f_196[2], Global_112922.f_2363.f_539.f_200[2], 8, 0, 0, 0, 0, -99, 0, 0, 31);
  					break;
  				
  				case 5:
  					func_248(&Var1, -99, -99, 95, 33, 8, 0, 15, 0, 0, -99, 0, 0, 6);
  					break;
  				
  				case 6:
  					func_248(&Var1, -99, -99, 49, 13, 10, 4, 6, 0, 0, -99, 0, 0, 3);
  					break;
  				
  				case 7:
  					func_248(&Var1, -99, -99, 49, 13, 14, 4, 15, 0, 0, -99, 0, 0, 4);
  					break;
  				
  				case 8:
  					func_248(&Var1, -99, -99, 79, 32, 8, 5, 7, 0, 0, -99, 0, 0, 31);
  					break;
  				
  				case 9:
  					func_248(&Var1, -99, -99, 53, 17, 11, 0, 15, 0, 0, -99, 0, 0, 31);
  					break;
  				
  				case 10:
  					func_248(&Var1, -99, -99, 96, 81, 8, 0, 0, 0, 0, -99, 0, 0, 31);
  					break;
  				
  				case 11:
  					func_248(&Var1, -99, -99, 51, 15, 33, 0, 8, 0, 0, -99, 0, 0, 5);
  					break;
  				
  				case 12:
  					func_248(&Var1, -99, -99, 0, 93, 29, 0, 13, 0, 0, -99, 0, 0, 31);
  					break;
  				
  				case 13:
  					func_248(&Var1, -99, -99, 52, 16, 30, 5, 15, 0, 0, -99, 0, 0, 31);
  					break;
  				
  				case 14:
  					func_248(&Var1, -99, -99, 241, 92, 16, 0, 12, 0, 0, -99, 0, 0, 31);
  					break;
  				
  				case 15:
  					func_248(&Var1, -99, -99, 97, 34, 8, 0, 0, 0, 0, -99, 0, 0, 31);
  					break;
  				
  				case 16:
  					func_248(&Var1, -99, -99, 44, 9, 12, 0, 15, 0, 0, -99, 0, 0, 31);
  					break;
  				
  				case 17:
  					func_248(&Var1, -99, -99, 45, 10, 12, 0, 15, 0, 0, -99, 0, 0, 31);
  					break;
  				
  				case 18:
  					func_248(&Var1, -99, -99, 46, 11, 12, 0, 15, 0, 0, -99, 0, 0, 31);
  					break;
  				
  				case 19:
  					func_248(&Var1, -99, -99, 47, 12, 12, 0, 15, 0, 0, -99, 0, 0, 31);
  					break;
  				
  				case 20:
  					func_248(&Var1, -99, -99, 161, 53, 8, 0, 15, 0, 0, -99, 0, 0, 31);
  					break;
  				
  				case 21:
  					func_248(&Var1, -99, -99, 0, 44, 8, 0, 0, 0, 0, -99, 0, 0, 31);
  					break;
  				
  				case 22:
  					func_248(&Var1, -99, -99, 98, 0, 28, 0, 15, 0, 0, -99, 0, 0, 31);
  					break;
  				
  				case 23:
  					func_248(&Var1, -99, -99, 27, 0, 31, 0, 15, 0, 0, -99, 0, 0, 31);
  					break;
  				
  				case 24:
  					func_248(&Var1, -99, -99, 190, 71, 8, 0, 15, 0, 0, -99, 0, 0, 31);
  					break;
  				
  				case 25:
  					func_248(&Var1, -99, -99, 191, 72, 8, 0, 15, 0, 0, -99, 0, 0, 31);
  					break;
  				
  				case 26:
  					func_248(&Var1, -99, -99, 192, 73, 8, 0, 15, 0, 0, -99, 0, 0, 31);
  					break;
  				
  				case 27:
  					func_248(&Var1, -99, -99, 193, 74, 8, 0, 15, 0, 0, -99, 0, 0, 31);
  					break;
  				
  				case 28:
  					func_248(&Var1, -99, -99, 194, 75, 8, 0, 15, 0, 0, -99, 0, 0, 31);
  					break;
  				
  				case 29:
  					func_248(&Var1, -99, -99, 195, 76, 8, 0, 15, 0, 0, -99, 0, 0, 31);
  					break;
  				
  				case 30:
  					func_248(&Var1, -99, -99, 196, 77, 8, 0, 15, 0, 0, -99, 0, 0, 31);
  					break;
  				
  				case 31:
  					func_248(&Var1, -99, -99, 197, 78, 8, 0, 15, 0, 0, -99, 0, 0, 31);
  					break;
  				
  				case 32:
  					func_248(&Var1, -99, -99, 198, 79, 8, 0, 15, 0, 0, -99, 0, 0, 31);
  					break;
  				
  				case 33:
  					func_248(&Var1, -99, -99, 199, 80, 8, 0, 15, 0, 0, -99, 0, 0, 31);
  					break;
  				
  				case 34:
  					func_248(&Var1, -99, -99, 200, 62, 16, 0, 15, 0, 0, -99, 0, 0, 31);
  					break;
  				
  				case 35:
  					func_248(&Var1, -99, -99, 201, 63, 16, 0, 15, 0, 0, -99, 0, 0, 31);
  					break;
  				
  				case 36:
  					func_248(&Var1, -99, -99, 202, 64, 16, 0, 15, 0, 0, -99, 0, 0, 31);
  					break;
  				
  				case 37:
  					func_248(&Var1, -99, -99, 203, 65, 16, 0, 15, 0, 0, -99, 0, 0, 31);
  					break;
  				
  				case 38:
  					func_248(&Var1, -99, -99, 204, 66, 16, 0, 15, 0, 0, -99, 0, 0, 31);
  					break;
  				
  				case 39:
  					func_248(&Var1, -99, -99, 205, 67, 16, 0, 15, 0, 0, -99, 0, 0, 31);
  					break;
  				
  				case 40:
  					func_248(&Var1, -99, -99, 206, 68, 16, 0, 15, 0, 0, -99, 0, 0, 31);
  					break;
  				
  				case 41:
  					func_248(&Var1, -99, -99, 2, 43, 8, 0, 0, 0, 0, -99, 0, 0, 31);
  					break;
  				
  				case 42:
  					func_248(&Var1, -99, -99, 55, 0, 28, 0, 0, 0, 0, -99, 0, 0, 31);
  					break;
  				
  				case 43:
  					func_248(&Var1, -99, -99, 0, 52, 8, 0, 0, 0, 0, -99, 0, 0, 31);
  					break;
  				
  				case 44:
  					func_248(&Var1, -99, -99, 70, 30, 32, 6, 15, 0, 0, -99, 0, 0, 31);
  					break;
  				
  				case 45:
  					func_248(&Var1, -99, -99, 19, 91, 28, 0, 0, 0, 0, -99, 0, 0, 7);
  					break;
  				
  				case 46:
  					func_248(&Var1, -99, -99, 0, 0, 28, 0, 0, 0, 0, -99, 0, 0, 31);
  					break;
  				
  				case 47:
  					func_248(&Var1, -99, -99, 79, 32, 8, 5, 15, 0, 0, -99, 0, 0, 31);
  					break;
  				
  				default:
  					func_246(&Var1, iParam0, iParam1, 48);
  					break;
  			}
  			break;
  		
  		case joaat("mp_m_freemode_01"):
  			switch (iParam1)
  			{
  				case 0:
  					func_248(&Var1, -99, -99, 0, 0, 10, -99, 0, -99, -99, 0, 0, 0, 31);
  					break;
  				
  				case 1:
  					func_248(&Var1, -99, -99, 1, 127, 38, -99, 2, 0, 0, 0, 0, 62, 0);
  					break;
  				
  				case 2:
  					func_248(&Var1, -99, -99, 0, 248, 45, -99, 240, 0, 0, 0, 0, 144, 1);
  					break;
  				
  				case 3:
  					func_248(&Var1, -99, -99, 4, 31, 25, -99, 240, 0, 0, 0, 0, 231, 2);
  					break;
  				
  				case 4:
  					func_248(&Var1, -99, -99, 1, 66, 10, -99, 21, 0, 0, 0, 0, 123, 3);
  					break;
  				
  				case 5:
  					func_248(&Var1, -99, -99, 1, 93, 141, -99, 3, 0, 0, 0, 0, 114, 4);
  					break;
  				
  				case 6:
  					func_248(&Var1, -99, -99, 1, 116, 113, -99, 7, 0, 0, 0, 0, 113, 5);
  					break;
  				
  				case 7:
  					func_248(&Var1, -99, -99, 1, 61, 136, -99, 27, 0, 0, 0, 0, 61, 6);
  					break;
  				
  				case 8:
  					func_248(&Var1, -99, -99, 0, 112, 10, -99, 240, 0, 0, 0, 0, 8, 7);
  					break;
  				
  				case 9:
  					func_248(&Var1, -99, -99, 4, 131, 24, -99, 240, 0, 0, 0, 0, 223, 8);
  					break;
  				
  				case 10:
  					func_248(&Var1, -99, -99, 1, 209, 188, -99, 208, 0, 0, 0, 0, 64, 9);
  					break;
  				
  				case 11:
  					func_248(&Var1, -99, -99, 1, 209, 160, -99, 211, 0, 0, 0, 43, 157, 10);
  					break;
  				
  				case 12:
  					func_248(&Var1, -99, -99, 1, 162, 174, -99, 201, 0, 0, 0, 0, 158, 11);
  					break;
  				
  				case 13:
  					func_248(&Var1, -99, -99, 1, 4, 240, -99, 34, 0, 0, 0, 0, 97, 12);
  					break;
  				
  				case 14:
  					func_248(&Var1, -99, -99, 1, 128, 232, -99, 43, 0, 0, 0, 0, 102, 13);
  					break;
  				
  				case 15:
  					func_248(&Var1, -99, -99, 1, 66, 65, -99, 224, 0, 0, 0, 0, 100, 14);
  					break;
  				
  				case 16:
  					func_248(&Var1, -99, -99, 1, 65, 172, -99, 202, 0, 0, 0, 0, 64, 15);
  					break;
  				
  				case 17:
  					func_248(&Var1, -99, -99, 1, 64, 10, -99, 1, 0, 0, 0, 0, 66, 16);
  					break;
  				
  				case 18:
  					func_248(&Var1, -99, -99, 5, 98, 80, -99, 240, 0, 0, 0, 0, 87, 17);
  					break;
  				
  				case 19:
  					func_248(&Var1, -99, -99, 5, 192, 96, -99, 240, 0, 0, 0, 0, 80, 18);
  					break;
  				
  				case 20:
  					func_248(&Var1, -99, -99, 1, 124, 96, -99, 11, 0, 0, 0, 0, 110, 19);
  					break;
  				
  				case 21:
  					func_248(&Var1, -99, -99, 0, 80, 114, -99, 240, 0, 0, 0, 0, 2, 20);
  					break;
  				
  				case 22:
  					func_248(&Var1, -99, -99, 6, 43, 112, -99, 82, 0, 0, 0, 0, 48, 21);
  					break;
  				
  				case 23:
  					func_248(&Var1, -99, -99, 1, 116, 144, -99, 2, 0, 0, 0, 0, 108, 22);
  					break;
  				
  				case 24:
  					func_248(&Var1, -99, -99, 1, 63, 38, -99, 3, 0, 0, 0, 0, 63, 23);
  					break;
  				
  				case 25:
  					func_248(&Var1, -99, -99, 2, 64, 10, -99, 240, 0, 0, 0, 0, 41, 24);
  					break;
  				
  				default:
  					func_246(&Var1, iParam0, iParam1, 26);
  					break;
  			}
  			break;
  		
  		case joaat("mp_f_freemode_01"):
  			switch (iParam1)
  			{
  				case 0:
  					func_248(&Var1, -99, -99, 0, 0, 0, -99, 0, -99, -99, 0, -99, 0, 31);
  					break;
  				
  				case 1:
  					func_248(&Var1, -99, -99, 5, 136, 241, -99, 47, 0, 0, 0, 0, 21, 31);
  					break;
  				
  				case 2:
  					func_248(&Var1, -99, -99, 4, 1, 96, -99, 32, 0, 0, 0, 7, 215, 0);
  					break;
  				
  				case 3:
  					func_248(&Var1, -99, -99, 1, 73, 241, -99, 3, 0, 0, 0, 0, 25, 1);
  					break;
  				
  				case 4:
  					func_248(&Var1, -99, -99, 2, 88, 217, -99, 32, 0, 0, 0, 0, 33, 2);
  					break;
  				
  				case 5:
  					func_248(&Var1, -99, -99, 9, 7, 98, -99, 32, 0, 0, 0, 7, 153, 3);
  					break;
  				
  				case 6:
  					func_248(&Var1, -99, -99, 1, 140, 241, -99, 7, 0, 0, 0, 31, 16, 4);
  					break;
  				
  				case 7:
  					func_248(&Var1, -99, -99, 4, 139, 112, -99, 32, 0, 0, 0, 49, 78, 5);
  					break;
  				
  				case 8:
  					func_248(&Var1, -99, -99, 1, 193, 48, -99, 108, 0, 0, 0, 0, 17, 6);
  					break;
  				
  				case 9:
  					func_248(&Var1, -99, -99, 5, 114, 97, -99, 103, 0, 0, 0, 0, 98, 7);
  					break;
  				
  				case 10:
  					func_248(&Var1, -99, -99, 9, 134, 239, -99, 32, 0, 0, 0, 2, 144, 8);
  					break;
  				
  				case 11:
  					func_248(&Var1, -99, -99, 5, 152, 96, -99, 10, 0, 0, 0, 31, 96, 9);
  					break;
  				
  				case 12:
  					func_248(&Var1, -99, -99, 6, 129, 1, -99, 96, 0, 0, 0, 5, 120, 10);
  					break;
  				
  				case 13:
  					func_248(&Var1, -99, -99, 5, 0, 0, -99, 10, 0, 0, 0, 0, 130, 31);
  					break;
  				
  				case 14:
  					func_248(&Var1, -99, -99, 4, 159, 96, -99, 32, 0, 0, 0, 22, 214, 11);
  					break;
  				
  				case 15:
  					func_248(&Var1, -99, -99, 9, 232, 213, -99, 32, 0, 0, 0, 22, 147, 12);
  					break;
  				
  				case 16:
  					func_248(&Var1, -99, -99, 2, 8, 98, -99, 32, 0, 0, 0, 33, 39, 13);
  					break;
  				
  				case 17:
  					func_248(&Var1, -99, -99, 5, 150, 235, -99, 106, 0, 0, 0, 0, 128, 14);
  					break;
  				
  				case 18:
  					func_248(&Var1, -99, -99, 6, 96, 97, -99, 7, 0, 0, 0, 32, 114, 15);
  					break;
  				
  				case 19:
  					func_248(&Var1, -99, -99, 4, 48, 64, -99, 32, 0, 0, 0, 0, 89, 16);
  					break;
  				
  				case 20:
  					func_248(&Var1, -99, -99, 4, 62, 64, -99, 32, 0, 0, 0, 0, 78, 17);
  					break;
  				
  				case 21:
  					func_248(&Var1, -99, -99, 4, 49, 65, -99, 32, 0, 0, 0, 8, 80, 31);
  					break;
  				
  				case 22:
  					func_248(&Var1, -99, -99, 3, 20, 16, -99, 32, 0, 0, 0, 0, 49, 18);
  					break;
  				
  				case 23:
  					func_248(&Var1, -99, -99, 0, 73, 178, -99, 32, 0, 0, 0, 38, 11, 19);
  					break;
  				
  				case 24:
  					func_248(&Var1, -99, -99, 5, 135, 53, -99, 9, 0, 0, 0, 29, 27, 20);
  					break;
  				
  				case 25:
  					func_248(&Var1, -99, -99, 7, 233, 176, -99, 120, 0, 0, 0, 11, 160, 21);
  					break;
  				
  				case 26:
  					func_248(&Var1, -99, -99, 4, 34, 179, -99, 32, 0, 0, 0, 0, 77, 22);
  					break;
  				
  				case 27:
  					func_248(&Var1, -99, -99, 15, 131, 93, -99, 32, 0, 0, 0, 0, 250, 23);
  					break;
  				
  				default:
  					func_246(&Var1, iParam0, iParam1, 28);
  					break;
  			}
  			break;
  	}
  	return Var1;
  }
  
  void func_246(var uParam0, int iParam1, int iParam2, int iParam3)
  {
  	int iVar0;
  	struct<5> Var1;
  	struct<3> Var16;
  	struct<2> Var19;
  	int iVar36;
  	
  	(*uParam0)[0] = 0;
  	(*uParam0)[2] = -99;
  	(*uParam0)[3] = 0;
  	(*uParam0)[4] = 0;
  	(*uParam0)[6] = 0;
  	(*uParam0)[5] = 0;
  	(*uParam0)[8] = 0;
  	(*uParam0)[9] = 0;
  	(*uParam0)[10] = 0;
  	(*uParam0)[1] = 0;
  	(*uParam0)[7] = 0;
  	(*uParam0)[11] = 0;
  	(*uParam0)[13] = -99;
  	(*uParam0)[14] = -99;
  	uParam0->f_16 = 0;
  	iVar0 = 0;
  	if (iParam1 == joaat("player_zero"))
  	{
  		iVar0 = 0;
  		(*uParam0)[13] = (10 + (iParam2 - iParam3));
  	}
  	else if (iParam1 == joaat("player_one"))
  	{
  		iVar0 = 1;
  		(*uParam0)[13] = (9 + (iParam2 - iParam3));
  	}
  	else if (iParam1 == joaat("player_two"))
  	{
  		iVar0 = 2;
  		(*uParam0)[13] = (9 + (iParam2 - iParam3));
  	}
  	else if (iParam1 == joaat("mp_m_freemode_01"))
  	{
  		iVar0 = 3;
  	}
  	else if (iParam1 == joaat("mp_f_freemode_01"))
  	{
  		iVar0 = 4;
  	}
  	FILES::SETUP_SHOP_PED_OUTFIT_QUERY(iVar0, false);
  	FILES::GET_SHOP_PED_QUERY_OUTFIT((iParam2 - iParam3), &Var1);
  	if (!FILES::IS_CONTENT_ITEM_LOCKED(Var1.f_0))
  	{
  		iVar36 = 0;
  		while (iVar36 < Var1.f_4)
  		{
  			if (FILES::GET_SHOP_PED_OUTFIT_COMPONENT_VARIANT(Var1.f_1, iVar36, &Var16))
  			{
  				if ((Var16.f_0 != 0 && Var16.f_0 != -1) && Var16.f_0 != joaat("0"))
  				{
  					if (Var16.f_2 == 10)
  					{
  						FILES::INIT_SHOP_PED_COMPONENT(&Var19);
  						FILES::GET_SHOP_PED_COMPONENT(Var16.f_0, &Var19);
  						if (Var16.f_0 != Var19.f_1)
  						{
  							uParam0->f_16 = 1;
  						}
  					}
  					if (Var16.f_2 == 10 && uParam0->f_16)
  					{
  						(*uParam0)[func_247(Var16.f_2)] = Var16.f_0;
  						uParam0->f_16 = 1;
  					}
  					else
  					{
  						(*uParam0)[func_247(Var16.f_2)] = func_240(iParam1, Var16.f_0, func_247(Var16.f_2), iVar0);
  					}
  				}
  				else if (Var16.f_1 != -1)
  				{
  					(*uParam0)[func_247(Var16.f_2)] = Var16.f_1;
  				}
  			}
  			iVar36++;
  		}
  		if (Var1.f_3 == 0)
  		{
  			(*uParam0)[13] = -99;
  		}
  		else
  		{
  			(*uParam0)[13] = Var1.f_1;
  		}
  	}
  }
  
  int func_247(int iParam0)
  {
  	switch (iParam0)
  	{
  		case 0:
  			return 0;
  			break;
  		
  		case 2:
  			return 2;
  			break;
  		
  		case 3:
  			return 3;
  			break;
  		
  		case 4:
  			return 4;
  			break;
  		
  		case 6:
  			return 6;
  			break;
  		
  		case 5:
  			return 5;
  			break;
  		
  		case 8:
  			return 8;
  			break;
  		
  		case 9:
  			return 9;
  			break;
  		
  		case 10:
  			return 10;
  			break;
  		
  		case 1:
  			return 1;
  			break;
  		
  		case 7:
  			return 7;
  			break;
  		
  		case 11:
  			return 11;
  			break;
  	}
  	return 0;
  }
  
  void func_248(var uParam0, int iParam1, int iParam2, int iParam3, int iParam4, int iParam5, int iParam6, int iParam7, int iParam8, int iParam9, int iParam10, int iParam11, int iParam12, int iParam13)
  {
  	(*uParam0)[0] = iParam1;
  	(*uParam0)[2] = iParam2;
  	(*uParam0)[3] = iParam3;
  	(*uParam0)[4] = iParam4;
  	(*uParam0)[6] = iParam5;
  	(*uParam0)[5] = iParam6;
  	(*uParam0)[8] = iParam7;
  	(*uParam0)[9] = iParam8;
  	(*uParam0)[10] = iParam9;
  	(*uParam0)[1] = iParam10;
  	(*uParam0)[7] = iParam11;
  	(*uParam0)[11] = iParam12;
  	(*uParam0)[13] = iParam13;
  	(*uParam0)[14] = -99;
  }
  
  int func_249(int iParam0, int iParam1, int iParam2, int iParam3)
  {
  	switch (iParam0)
  	{
  		case joaat("player_zero"):
  			switch (iParam1)
  			{
  				case 14:
  					if (iParam2 == 16)
  					{
  						return 1;
  					}
  					break;
  			}
  			break;
  		
  		case joaat("player_one"):
  			switch (iParam1)
  			{
  				case 14:
  					if ((iParam2 == 40 || (iParam2 >= 41 && iParam2 <= 56)) || (iParam2 >= 64 && iParam2 <= 79))
  					{
  						return 1;
  					}
  					break;
  			}
  			break;
  		
  		case joaat("player_two"):
  			switch (iParam1)
  			{
  				case 14:
  					if ((iParam2 >= 17 && iParam2 <= 18) || (iParam2 >= 71 && iParam2 <= 86))
  					{
  						return 1;
  					}
  					break;
  			}
  			break;
  		
  		case joaat("mp_m_freemode_01"):
  			switch (iParam1)
  			{
  				case 14:
  					if (iParam2 >= 18 && iParam2 <= 130)
  					{
  						return 1;
  					}
  					else if (iParam2 >= 10 && iParam2 <= 17)
  					{
  						return 1;
  					}
  					else if (iParam2 >= 327)
  					{
  						if (iParam3 == -1)
  						{
  							iParam3 = func_235(iParam0, iParam2, 14, 3);
  						}
  						return (FILES::DOES_SHOP_PED_APPAREL_HAVE_RESTRICTION_TAG(iParam3, joaat("HAT"), 1) || FILES::DOES_SHOP_PED_APPAREL_HAVE_RESTRICTION_TAG(func_235(iParam0, iParam2, 14, 3), -1842686353, 1));
  					}
  					break;
  				
  				case 1:
  					if (iParam2 >= 26)
  					{
  						if (iParam3 == -1)
  						{
  							iParam3 = func_235(iParam0, iParam2, 1, 3);
  						}
  						return (FILES::DOES_SHOP_PED_APPAREL_HAVE_RESTRICTION_TAG(iParam3, joaat("HAT"), 0) || FILES::DOES_SHOP_PED_APPAREL_HAVE_RESTRICTION_TAG(func_235(iParam0, iParam2, 1, 3), -1842686353, 0));
  					}
  					break;
  			}
  			break;
  		
  		case joaat("mp_f_freemode_01"):
  			switch (iParam1)
  			{
  				case 14:
  					if (iParam2 >= 18 && iParam2 <= 130)
  					{
  						return 1;
  					}
  					else if (iParam2 >= 10 && iParam2 <= 17)
  					{
  						return 1;
  					}
  					else if (iParam2 >= 327)
  					{
  						if (iParam3 == -1)
  						{
  							iParam3 = func_235(iParam0, iParam2, 14, 4);
  						}
  						return (FILES::DOES_SHOP_PED_APPAREL_HAVE_RESTRICTION_TAG(iParam3, joaat("HAT"), 1) || FILES::DOES_SHOP_PED_APPAREL_HAVE_RESTRICTION_TAG(func_235(iParam0, iParam2, 14, 4), -1842686353, 1));
  					}
  					break;
  				
  				case 1:
  					if (iParam2 >= 26)
  					{
  						if (iParam3 == -1)
  						{
  							iParam3 = func_235(iParam0, iParam2, 1, 4);
  						}
  						return (FILES::DOES_SHOP_PED_APPAREL_HAVE_RESTRICTION_TAG(iParam3, joaat("HAT"), 0) || FILES::DOES_SHOP_PED_APPAREL_HAVE_RESTRICTION_TAG(func_235(iParam0, iParam2, 1, 4), -1842686353, 0));
  					}
  					break;
  			}
  			break;
  	}
  	return 0;
  }
  
  int func_250(int iParam0, int iParam1, int iParam2, int iParam3)
  {
  	if (iParam0 == joaat("player_zero"))
  	{
  		if (iParam1 == 6)
  		{
  			if (iParam2 == 10)
  			{
  				return 1;
  			}
  		}
  		else if (iParam1 == 8)
  		{
  			if ((iParam2 == 9 || iParam2 == 7) || iParam2 == 23)
  			{
  				return 1;
  			}
  		}
  		else if (iParam1 == 9)
  		{
  			if (iParam2 >= 9 && iParam2 <= 14)
  			{
  				return 1;
  			}
  		}
  		else if (iParam1 == 14)
  		{
  			if ((((((((((((((((iParam2 == 12 || iParam2 == 59) || iParam2 == 60) || iParam2 == 31) || iParam2 == 32) || iParam2 == 33) || iParam2 == 34) || iParam2 == 35) || iParam2 == 36) || iParam2 == 37) || iParam2 == 38) || iParam2 == 39) || iParam2 == 40) || iParam2 == 41) || (iParam2 >= 42 && iParam2 <= 44)) || iParam2 == 54) || iParam2 == 55)
  			{
  				return 1;
  			}
  		}
  	}
  	else if (iParam0 == joaat("player_one"))
  	{
  		if (iParam1 == 2)
  		{
  			if (iParam2 == 20)
  			{
  				return 1;
  			}
  		}
  		else if (iParam1 == 8)
  		{
  			if ((iParam2 == 3 || iParam2 == 5) || iParam2 == 9)
  			{
  				return 1;
  			}
  		}
  		else if (iParam1 == 9)
  		{
  			if (iParam2 >= 5 && iParam2 <= 10)
  			{
  				return 1;
  			}
  		}
  		else if (iParam1 == 14)
  		{
  			if (((((((((((((iParam2 == 82 || iParam2 == 10) || iParam2 == 26) || iParam2 == 27) || iParam2 == 28) || iParam2 == 29) || iParam2 == 30) || iParam2 == 31) || iParam2 == 32) || iParam2 == 33) || iParam2 == 34) || iParam2 == 35) || iParam2 == 36) || (iParam2 >= 37 && iParam2 <= 39))
  			{
  				return 1;
  			}
  		}
  	}
  	else if (iParam0 == joaat("player_two"))
  	{
  		if (iParam1 == 8)
  		{
  			if (iParam2 == 14 || iParam2 == 7)
  			{
  				return 1;
  			}
  		}
  		else if (iParam1 == 9)
  		{
  			if (((iParam2 == 8 || (iParam2 >= 9 && iParam2 <= 14)) || iParam2 == 15) || iParam2 == 16)
  			{
  				return 1;
  			}
  		}
  		else if (iParam1 == 14)
  		{
  			if (((((((((((((iParam2 == 88 || iParam2 == 12) || iParam2 == 47) || iParam2 == 48) || iParam2 == 49) || iParam2 == 50) || iParam2 == 51) || iParam2 == 52) || iParam2 == 53) || iParam2 == 54) || iParam2 == 55) || iParam2 == 56) || iParam2 == 57) || (iParam2 >= 58 && iParam2 <= 60))
  			{
  				return 1;
  			}
  		}
  	}
  	else if (iParam0 == joaat("mp_m_freemode_01"))
  	{
  		if (iParam1 == 1)
  		{
  			if (iParam2 > 0)
  			{
  				if (iParam2 >= 26)
  				{
  					if (iParam3 == -1)
  					{
  						iParam3 = func_235(iParam0, iParam2, 1, 3);
  					}
  					if (FILES::DOES_SHOP_PED_APPAREL_HAVE_RESTRICTION_TAG(iParam3, joaat("HAT"), 0) || FILES::DOES_SHOP_PED_APPAREL_HAVE_RESTRICTION_TAG(iParam3, joaat("HAIR_SHRINK"), 0))
  					{
  						return 0;
  					}
  				}
  				return 1;
  			}
  		}
  	}
  	else if (iParam0 == joaat("mp_f_freemode_01"))
  	{
  		if (iParam1 == 1)
  		{
  			if (iParam2 > 0)
  			{
  				if (iParam2 >= 26)
  				{
  					if (iParam3 == -1)
  					{
  						iParam3 = func_235(iParam0, iParam2, 1, 4);
  					}
  					if (FILES::DOES_SHOP_PED_APPAREL_HAVE_RESTRICTION_TAG(iParam3, joaat("HAT"), 0) || FILES::DOES_SHOP_PED_APPAREL_HAVE_RESTRICTION_TAG(iParam3, joaat("HAIR_SHRINK"), 0))
  					{
  						return 0;
  					}
  				}
  				return 1;
  			}
  		}
  	}
  	return 0;
  }
  
  int func_251(int iParam0, int iParam1, int iParam2, int iParam3)
  {
  	switch (iParam0)
  	{
  		case joaat("player_zero"):
  			if (iParam1 == 14)
  			{
  				if ((((((((iParam2 == 58 || iParam2 == 61) || (iParam2 >= 62 && iParam2 <= 69)) || (iParam2 >= 70 && iParam2 <= 79)) || (iParam2 >= 80 && iParam2 <= 89)) || iParam2 == 90) || (iParam2 >= 91 && iParam2 <= 102)) || (iParam2 >= 103 && iParam2 <= 110)) || iParam2 == 111)
  				{
  					return 1;
  				}
  			}
  			break;
  		
  		case joaat("player_one"):
  			if (iParam1 == 14)
  			{
  				if (((((((((((iParam2 >= 83 && iParam2 <= 92) || iParam2 == 93) || iParam2 == 94) || (iParam2 >= 95 && iParam2 <= 101)) || (iParam2 >= 102 && iParam2 <= 111)) || (iParam2 >= 112 && iParam2 <= 121)) || (iParam2 >= 122 && iParam2 <= 131)) || (iParam2 >= 132 && iParam2 <= 139)) || (iParam2 >= 140 && iParam2 <= 149)) || (iParam2 >= 150 && iParam2 <= 156)) || iParam2 == 157)
  				{
  					return 1;
  				}
  			}
  			break;
  		
  		case joaat("player_two"):
  			if (iParam1 == 14)
  			{
  				if (((((((((iParam2 == 89 || (iParam2 >= 90 && iParam2 <= 99)) || (iParam2 >= 100 && iParam2 <= 109)) || iParam2 == 111) || iParam2 == 112) || (iParam2 >= 113 && iParam2 <= 122)) || (iParam2 >= 123 && iParam2 <= 132)) || (iParam2 >= 133 && iParam2 <= 142)) || (iParam2 >= 143 && iParam2 <= 152)) || iParam2 == 153)
  				{
  					return 1;
  				}
  			}
  			break;
  		
  		case joaat("mp_m_freemode_01"):
  			if (iParam1 == 14)
  			{
  				if (iParam2 >= 155 && iParam2 <= 318)
  				{
  					return 1;
  				}
  				else if (iParam2 >= 327)
  				{
  					if (iParam3 == -1)
  					{
  						iParam3 = func_235(iParam0, iParam2, 14, 3);
  					}
  					return FILES::DOES_SHOP_PED_APPAREL_HAVE_RESTRICTION_TAG(iParam3, joaat("GLASSES"), 1);
  				}
  			}
  			break;
  		
  		case joaat("mp_f_freemode_01"):
  			if (iParam1 == 14)
  			{
  				if (iParam2 >= 155 && iParam2 <= 318)
  				{
  					return 1;
  				}
  				else if (iParam2 >= 327)
  				{
  					if (iParam3 == -1)
  					{
  						iParam3 = func_235(iParam0, iParam2, 14, 4);
  					}
  					return FILES::DOES_SHOP_PED_APPAREL_HAVE_RESTRICTION_TAG(iParam3, joaat("GLASSES"), 1);
  				}
  			}
  			break;
  	}
  	return 0;
  }
  
  int func_252(int iParam0, int iParam1)
  {
  	int iVar0;
  	int iVar1;
  	
  	if (PED::IS_PED_INJURED(iParam0))
  	{
  		return -99;
  	}
  	iVar0 = PED::GET_PED_PROP_INDEX(iParam0, iParam1);
  	if (iVar0 == -1)
  	{
  		return func_241(iParam1);
  	}
  	iVar1 = PED::GET_PED_PROP_TEXTURE_INDEX(iParam0, iParam1);
  	return func_238(iParam0, iVar0, iVar1, iParam1);
  }
  
  int func_253(int iParam0, int iParam1)
  {
  	int iVar0;
  	int iVar1;
  	int iVar2;
  	
  	if (((iParam1 == 12 || iParam1 == 13) || iParam1 == 14) || PED::IS_PED_INJURED(iParam0))
  	{
  		return -99;
  	}
  	iVar0 = func_223(iParam1);
  	iVar1 = PED::GET_PED_DRAWABLE_VARIATION(iParam0, iVar0);
  	iVar2 = PED::GET_PED_TEXTURE_VARIATION(iParam0, iVar0);
  	return func_254(iParam0, iVar1, iVar2, iParam1);
  }
  
  int func_254(int iParam0, int iParam1, int iParam2, int iParam3)
  {
  	int iVar0;
  	int iVar1;
  	int iVar2;
  	int iVar3;
  	
  	iVar0 = func_223(iParam3);
  	iVar1 = PED::GET_NUMBER_OF_PED_DRAWABLE_VARIATIONS(iParam0, iVar0);
  	iVar3 = 0;
  	while (iVar3 <= (iVar1 - 1))
  	{
  		if (iVar3 != iParam1)
  		{
  			iVar2 = (iVar2 + PED::GET_NUMBER_OF_PED_TEXTURE_VARIATIONS(iParam0, iVar0, iVar3));
  		}
  		else
  		{
  			iVar2 = (iVar2 + iParam2);
  			return iVar2;
  		}
  		iVar3++;
  	}
  	return -99;
  }
  
  void func_255(int iParam0)
  {
  	if (BitTest(Global_77669[1 /*14*/].f_6, 1) && !BitTest(Global_77669[1 /*14*/].f_6, 6))
  	{
  		func_258(iParam0, Global_77669[1 /*14*/].f_5, Global_77669[1 /*14*/].f_2, 2, Global_77669[1 /*14*/].f_1, 1, 0);
  	}
  	if (BitTest(Global_77669[1 /*14*/].f_6, 1) && BitTest(Global_77669[1 /*14*/].f_6, 6))
  	{
  		if (iParam0 == 12)
  		{
  			func_256(Global_2883588, 2, 1, 1, -1);
  		}
  		else if (iParam0 == 13)
  		{
  		}
  		else if (iParam0 == 14)
  		{
  			func_256(Global_2883588, 2, 1, 1, -1);
  		}
  		else
  		{
  			func_256(Global_2883588, 2, 1, 1, -1);
  		}
  	}
  }
  
  void func_256(int iParam0, int iParam1, bool bParam2, bool bParam3, int iParam4)
  {
  	int iVar0;
  	bool bVar1;
  	int iVar2;
  	int iVar3;
  	
  	iVar0 = Global_77666;
  	if (iParam4 != -1)
  	{
  		iVar0 = iParam4;
  	}
  	if (func_257(iParam0, iParam1, &iVar2, &bVar1, bParam2, bParam3))
  	{
  		iVar3 = func_140(iVar2, iVar0, 0);
  		MISC::SET_BIT(&iVar3, bVar1);
  		func_136(iVar2, iVar3, iVar0, 1, 0);
  	}
  }
  
  bool func_257(int iParam0, int iParam1, var uParam2, var uParam3, bool bParam4, bool bParam5)
  {
  	int iVar0;
  	
  	*uParam2 = 12581;
  	if ((bParam4 && Global_4532516) || (!bParam4 && bParam5))
  	{
  		switch (iParam1)
  		{
  			case 1:
  				switch (iParam0)
  				{
  					case joaat("DLC_MP_STUNT_M_PHEAD_15_0"):
  					case joaat("DLC_MP_STUNT_M_PHEAD_0_0"):
  						*uParam2 = 972;
  						*uParam3 = 19;
  						return 1;
  						break;
  					
  					case joaat("DLC_MP_STUNT_M_PHEAD_15_1"):
  					case joaat("DLC_MP_STUNT_M_PHEAD_0_1"):
  						*uParam2 = 972;
  						*uParam3 = 20;
  						return 1;
  						break;
  					
  					case joaat("DLC_MP_STUNT_M_PHEAD_15_2"):
  					case joaat("DLC_MP_STUNT_M_PHEAD_0_2"):
  						*uParam2 = 972;
  						*uParam3 = 21;
  						return 1;
  						break;
  					
  					case joaat("DLC_MP_STUNT_M_PHEAD_15_3"):
  					case joaat("DLC_MP_STUNT_M_PHEAD_0_3"):
  						*uParam2 = 972;
  						*uParam3 = 22;
  						return 1;
  						break;
  					
  					case joaat("DLC_MP_STUNT_M_PHEAD_15_4"):
  					case joaat("DLC_MP_STUNT_M_PHEAD_0_4"):
  						*uParam2 = 972;
  						*uParam3 = 23;
  						return 1;
  						break;
  					
  					case joaat("DLC_MP_STUNT_M_PHEAD_15_5"):
  					case joaat("DLC_MP_STUNT_M_PHEAD_0_5"):
  						*uParam2 = 972;
  						*uParam3 = 24;
  						return 1;
  						break;
  					
  					case joaat("DLC_MP_STUNT_M_PHEAD_15_6"):
  					case joaat("DLC_MP_STUNT_M_PHEAD_0_6"):
  						*uParam2 = 972;
  						*uParam3 = 25;
  						return 1;
  						break;
  					
  					case joaat("DLC_MP_STUNT_M_PHEAD_15_7"):
  					case joaat("DLC_MP_STUNT_M_PHEAD_0_7"):
  						*uParam2 = 972;
  						*uParam3 = 26;
  						return 1;
  						break;
  					
  					case joaat("DLC_MP_BIKER_M_SPECIAL_0_0"):
  					case joaat("DLC_MP_BIKER_M_SPECIAL_2_0"):
  					case joaat("DLC_MP_BIKER_M_SPECIAL_4_0"):
  						*uParam2 = 936;
  						*uParam3 = 0;
  						return 1;
  						break;
  					
  					case joaat("DLC_MP_BIKER_M_SPECIAL_0_1"):
  					case joaat("DLC_MP_BIKER_M_SPECIAL_2_1"):
  					case joaat("DLC_MP_BIKER_M_SPECIAL_4_1"):
  						*uParam2 = 936;
  						*uParam3 = 1;
  						return 1;
  						break;
  					
  					case joaat("DLC_MP_BIKER_M_SPECIAL_0_2"):
  					case joaat("DLC_MP_BIKER_M_SPECIAL_2_2"):
  					case joaat("DLC_MP_BIKER_M_SPECIAL_4_2"):
  						*uParam2 = 936;
  						*uParam3 = 2;
  						return 1;
  						break;
  					
  					case joaat("DLC_MP_BIKER_M_SPECIAL_0_3"):
  					case joaat("DLC_MP_BIKER_M_SPECIAL_2_3"):
  					case joaat("DLC_MP_BIKER_M_SPECIAL_4_3"):
  						*uParam2 = 936;
  						*uParam3 = 3;
  						return 1;
  						break;
  					
  					case joaat("DLC_MP_BIKER_M_SPECIAL_0_4"):
  					case joaat("DLC_MP_BIKER_M_SPECIAL_2_4"):
  					case joaat("DLC_MP_BIKER_M_SPECIAL_4_4"):
  						*uParam2 = 936;
  						*uParam3 = 4;
  						return 1;
  						break;
  					
  					case joaat("DLC_MP_BIKER_M_SPECIAL_0_5"):
  					case joaat("DLC_MP_BIKER_M_SPECIAL_2_5"):
  					case joaat("DLC_MP_BIKER_M_SPECIAL_4_5"):
  						*uParam2 = 936;
  						*uParam3 = 5;
  						return 1;
  						break;
  					
  					case joaat("DLC_MP_BIKER_M_SPECIAL_0_7"):
  					case joaat("DLC_MP_BIKER_M_SPECIAL_2_7"):
  					case joaat("DLC_MP_BIKER_M_SPECIAL_4_7"):
  						*uParam2 = 936;
  						*uParam3 = 7;
  						return 1;
  						break;
  					
  					case joaat("DLC_MP_BIKER_M_SPECIAL_0_8"):
  					case joaat("DLC_MP_BIKER_M_SPECIAL_2_8"):
  					case joaat("DLC_MP_BIKER_M_SPECIAL_4_8"):
  						*uParam2 = 936;
  						*uParam3 = 8;
  						return 1;
  						break;
  					
  					case joaat("DLC_MP_BIKER_M_SPECIAL_0_11"):
  					case joaat("DLC_MP_BIKER_M_SPECIAL_2_11"):
  					case joaat("DLC_MP_BIKER_M_SPECIAL_4_11"):
  						*uParam2 = 936;
  						*uParam3 = 11;
  						return 1;
  						break;
  				}
  				break;
  			
  			case 2:
  				switch (iParam0)
  				{
  					case joaat("DLC_MP_STUNT_M_PHEAD_15_0"):
  					case joaat("DLC_MP_STUNT_M_PHEAD_0_0"):
  						*uParam2 = 1024;
  						*uParam3 = 19;
  						return 1;
  						break;
  					
  					case joaat("DLC_MP_STUNT_M_PHEAD_15_1"):
  					case joaat("DLC_MP_STUNT_M_PHEAD_0_1"):
  						*uParam2 = 1024;
  						*uParam3 = 20;
  						return 1;
  						break;
  					
  					case joaat("DLC_MP_STUNT_M_PHEAD_15_2"):
  					case joaat("DLC_MP_STUNT_M_PHEAD_0_2"):
  						*uParam2 = 1024;
  						*uParam3 = 21;
  						return 1;
  						break;
  					
  					case joaat("DLC_MP_STUNT_M_PHEAD_15_3"):
  					case joaat("DLC_MP_STUNT_M_PHEAD_0_3"):
  						*uParam2 = 1024;
  						*uParam3 = 22;
  						return 1;
  						break;
  					
  					case joaat("DLC_MP_STUNT_M_PHEAD_15_4"):
  					case joaat("DLC_MP_STUNT_M_PHEAD_0_4"):
  						*uParam2 = 1024;
  						*uParam3 = 23;
  						return 1;
  						break;
  					
  					case joaat("DLC_MP_STUNT_M_PHEAD_15_5"):
  					case joaat("DLC_MP_STUNT_M_PHEAD_0_5"):
  						*uParam2 = 1024;
  						*uParam3 = 24;
  						return 1;
  						break;
  					
  					case joaat("DLC_MP_STUNT_M_PHEAD_15_6"):
  					case joaat("DLC_MP_STUNT_M_PHEAD_0_6"):
  						*uParam2 = 1024;
  						*uParam3 = 25;
  						return 1;
  						break;
  					
  					case joaat("DLC_MP_STUNT_M_PHEAD_15_7"):
  					case joaat("DLC_MP_STUNT_M_PHEAD_0_7"):
  						*uParam2 = 1024;
  						*uParam3 = 26;
  						return 1;
  						break;
  				}
  				break;
  		}
  	}
  	else
  	{
  		switch (iParam1)
  		{
  			case 1:
  				switch (iParam0)
  				{
  					case joaat("DLC_MP_STUNT_F_PHEAD_15_0"):
  					case joaat("DLC_MP_STUNT_F_PHEAD_0_0"):
  						*uParam2 = 972;
  						*uParam3 = 19;
  						return 1;
  						break;
  					
  					case joaat("DLC_MP_STUNT_F_PHEAD_15_1"):
  					case joaat("DLC_MP_STUNT_F_PHEAD_0_1"):
  						*uParam2 = 972;
  						*uParam3 = 20;
  						return 1;
  						break;
  					
  					case joaat("DLC_MP_STUNT_F_PHEAD_15_2"):
  					case joaat("DLC_MP_STUNT_F_PHEAD_0_2"):
  						*uParam2 = 972;
  						*uParam3 = 21;
  						return 1;
  						break;
  					
  					case joaat("DLC_MP_STUNT_F_PHEAD_15_3"):
  					case joaat("DLC_MP_STUNT_F_PHEAD_0_3"):
  						*uParam2 = 972;
  						*uParam3 = 22;
  						return 1;
  						break;
  					
  					case joaat("DLC_MP_STUNT_F_PHEAD_15_4"):
  					case joaat("DLC_MP_STUNT_F_PHEAD_0_4"):
  						*uParam2 = 972;
  						*uParam3 = 23;
  						return 1;
  						break;
  					
  					case joaat("DLC_MP_STUNT_F_PHEAD_15_5"):
  					case joaat("DLC_MP_STUNT_F_PHEAD_0_5"):
  						*uParam2 = 972;
  						*uParam3 = 24;
  						return 1;
  						break;
  					
  					case joaat("DLC_MP_STUNT_F_PHEAD_15_6"):
  					case joaat("DLC_MP_STUNT_F_PHEAD_0_6"):
  						*uParam2 = 972;
  						*uParam3 = 25;
  						return 1;
  						break;
  					
  					case joaat("DLC_MP_STUNT_F_PHEAD_15_7"):
  					case joaat("DLC_MP_STUNT_F_PHEAD_0_7"):
  						*uParam2 = 972;
  						*uParam3 = 26;
  						return 1;
  						break;
  				}
  				break;
  			
  			case 2:
  				switch (iParam0)
  				{
  					case joaat("DLC_MP_STUNT_F_PHEAD_15_0"):
  					case joaat("DLC_MP_STUNT_F_PHEAD_0_0"):
  						*uParam2 = 1024;
  						*uParam3 = 19;
  						return 1;
  						break;
  					
  					case joaat("DLC_MP_STUNT_F_PHEAD_15_1"):
  					case joaat("DLC_MP_STUNT_F_PHEAD_0_1"):
  						*uParam2 = 1024;
  						*uParam3 = 20;
  						return 1;
  						break;
  					
  					case joaat("DLC_MP_STUNT_F_PHEAD_15_2"):
  					case joaat("DLC_MP_STUNT_F_PHEAD_0_2"):
  						*uParam2 = 1024;
  						*uParam3 = 21;
  						return 1;
  						break;
  					
  					case joaat("DLC_MP_STUNT_F_PHEAD_15_3"):
  					case joaat("DLC_MP_STUNT_F_PHEAD_0_3"):
  						*uParam2 = 1024;
  						*uParam3 = 22;
  						return 1;
  						break;
  					
  					case joaat("DLC_MP_STUNT_F_PHEAD_15_4"):
  					case joaat("DLC_MP_STUNT_F_PHEAD_0_4"):
  						*uParam2 = 1024;
  						*uParam3 = 23;
  						return 1;
  						break;
  					
  					case joaat("DLC_MP_STUNT_F_PHEAD_15_5"):
  					case joaat("DLC_MP_STUNT_F_PHEAD_0_5"):
  						*uParam2 = 1024;
  						*uParam3 = 24;
  						return 1;
  						break;
  					
  					case joaat("DLC_MP_STUNT_F_PHEAD_15_6"):
  					case joaat("DLC_MP_STUNT_F_PHEAD_0_6"):
  						*uParam2 = 1024;
  						*uParam3 = 25;
  						return 1;
  						break;
  					
  					case joaat("DLC_MP_STUNT_F_PHEAD_15_7"):
  					case joaat("DLC_MP_STUNT_F_PHEAD_0_7"):
  						*uParam2 = 1024;
  						*uParam3 = 26;
  						return 1;
  						break;
  				}
  				break;
  			}
  	}
  	iVar0 = -1;
  	if (bParam4)
  	{
  		if (Global_4532516)
  		{
  			iVar0 = PED::_0x1E77FA7A62EE6C4C(iParam0);
  		}
  		else
  		{
  			iVar0 = PED::_0xF033419D1B81FAE8(iParam0);
  		}
  	}
  	else if (bParam5)
  	{
  		iVar0 = PED::_0x1E77FA7A62EE6C4C(iParam0);
  	}
  	else
  	{
  		iVar0 = PED::_0xF033419D1B81FAE8(iParam0);
  	}
  	if (iVar0 == -1)
  	{
  		return 0;
  	}
  	switch (iParam1)
  	{
  		case 1:
  			switch (SYSTEM::FLOOR((SYSTEM::TO_FLOAT(iVar0) / 32f)))
  			{
  				case 0:
  					*uParam2 = 1761;
  					break;
  				
  				case 1:
  					*uParam2 = 1762;
  					break;
  				
  				case 2:
  					*uParam2 = 1763;
  					break;
  				
  				case 3:
  					*uParam2 = 1764;
  					break;
  				
  				case 4:
  					*uParam2 = 1765;
  					break;
  				
  				case 5:
  					*uParam2 = 1766;
  					break;
  				
  				case 6:
  					*uParam2 = 1773;
  					break;
  				
  				case 7:
  					*uParam2 = 1774;
  					break;
  				
  				case 8:
  					*uParam2 = 1775;
  					break;
  				
  				case 9:
  					*uParam2 = 1776;
  					break;
  				
  				case 10:
  					*uParam2 = 1777;
  					break;
  				
  				case 11:
  					*uParam2 = 1778;
  					break;
  				
  				case 12:
  					*uParam2 = 1779;
  					break;
  				
  				case 13:
  					*uParam2 = 1787;
  					break;
  				
  				case 14:
  					*uParam2 = 1788;
  					break;
  				
  				case 15:
  					*uParam2 = 1889;
  					break;
  				
  				case 16:
  					*uParam2 = 1890;
  					break;
  				
  				case 17:
  					*uParam2 = 1921;
  					break;
  				
  				case 18:
  					*uParam2 = 1935;
  					break;
  				
  				case 19:
  					*uParam2 = 1936;
  					break;
  				
  				case 20:
  					*uParam2 = 1937;
  					break;
  				
  				case 21:
  					*uParam2 = 1938;
  					break;
  				
  				case 22:
  					*uParam2 = 1939;
  					break;
  				
  				case 23:
  					*uParam2 = 2043;
  					break;
  				
  				case 24:
  					*uParam2 = 2044;
  					break;
  				
  				case 25:
  					*uParam2 = 2070;
  					break;
  				
  				case 26:
  					*uParam2 = 2071;
  					break;
  				
  				case 27:
  					*uParam2 = 2072;
  					break;
  				
  				case 28:
  					*uParam2 = 2073;
  					break;
  				
  				case 29:
  					*uParam2 = 2074;
  					break;
  				
  				case 30:
  					*uParam2 = 2075;
  					break;
  				
  				case 31:
  					*uParam2 = 2076;
  					break;
  				
  				case 32:
  					*uParam2 = 2077;
  					break;
  				
  				case 33:
  					*uParam2 = 2078;
  					break;
  				
  				case 34:
  					*uParam2 = 2079;
  					break;
  				
  				case 35:
  					*uParam2 = 2326;
  					break;
  				
  				case 36:
  					*uParam2 = 2327;
  					break;
  				
  				case 37:
  					*uParam2 = 2391;
  					break;
  				
  				case 38:
  					*uParam2 = 2392;
  					break;
  				
  				case 39:
  					*uParam2 = 2393;
  					break;
  				
  				case 40:
  					*uParam2 = 2394;
  					break;
  				
  				case 41:
  					*uParam2 = 2453;
  					break;
  				
  				case 42:
  					*uParam2 = 2454;
  					break;
  				
  				case 43:
  					*uParam2 = 2455;
  					break;
  				
  				case 44:
  					*uParam2 = 2456;
  					break;
  				
  				case 45:
  					*uParam2 = 2457;
  					break;
  				
  				case 46:
  					*uParam2 = 2458;
  					break;
  				
  				case 47:
  					*uParam2 = 2459;
  					break;
  				
  				case 48:
  					*uParam2 = 2460;
  					break;
  				
  				case 49:
  					*uParam2 = 2461;
  					break;
  				
  				case 50:
  					*uParam2 = 2462;
  					break;
  				
  				case 51:
  					*uParam2 = 2591;
  					break;
  				
  				case 52:
  					*uParam2 = 2592;
  					break;
  				
  				case 53:
  					*uParam2 = 2593;
  					break;
  				
  				case 54:
  					*uParam2 = 2594;
  					break;
  				
  				case 55:
  					*uParam2 = 2595;
  					break;
  				
  				case 56:
  					*uParam2 = 2596;
  					break;
  				
  				case 57:
  					*uParam2 = 2597;
  					break;
  				
  				case 58:
  					*uParam2 = 2598;
  					break;
  				
  				case 59:
  					*uParam2 = 2599;
  					break;
  				
  				case 60:
  					*uParam2 = 2600;
  					break;
  				
  				case 61:
  					*uParam2 = 2601;
  					break;
  				
  				case 62:
  					*uParam2 = 3198;
  					break;
  				
  				case 63:
  					*uParam2 = 3199;
  					break;
  				
  				case 64:
  					*uParam2 = 3200;
  					break;
  				
  				case 65:
  					*uParam2 = 3201;
  					break;
  				
  				case 66:
  					*uParam2 = 3202;
  					break;
  				
  				case 67:
  					*uParam2 = 3203;
  					break;
  				
  				case 68:
  					*uParam2 = 3671;
  					break;
  				
  				case 69:
  					*uParam2 = 3672;
  					break;
  				
  				case 70:
  					*uParam2 = 3673;
  					break;
  				
  				case 71:
  					*uParam2 = 3674;
  					break;
  				
  				case 72:
  					*uParam2 = 3675;
  					break;
  				
  				case 73:
  					*uParam2 = 3676;
  					break;
  				
  				case 74:
  					*uParam2 = 3677;
  					break;
  				
  				case 75:
  					*uParam2 = 3678;
  					break;
  				
  				case 76:
  					*uParam2 = 3679;
  					break;
  				
  				case 77:
  					*uParam2 = 3680;
  					break;
  				
  				case 78:
  					*uParam2 = 3794;
  					break;
  				
  				case joaat("mpsv_lp0_31"):
  					*uParam2 = 3795;
  					break;
  				
  				case 80:
  					*uParam2 = 3796;
  					break;
  				
  				case 81:
  					*uParam2 = 3797;
  					break;
  				
  				case 82:
  					*uParam2 = 3798;
  					break;
  				
  				case 83:
  					*uParam2 = 3799;
  					break;
  				
  				case 84:
  					*uParam2 = 3800;
  					break;
  				
  				case 85:
  					*uParam2 = 3801;
  					break;
  				
  				case 86:
  					*uParam2 = 3904;
  					break;
  				
  				case 87:
  					*uParam2 = 3905;
  					break;
  				
  				case 88:
  					*uParam2 = 3906;
  					break;
  				
  				case 89:
  					*uParam2 = 5339;
  					break;
  				
  				case 90:
  					*uParam2 = 5340;
  					break;
  				
  				case 91:
  					*uParam2 = 5341;
  					break;
  				
  				case 92:
  					*uParam2 = 5342;
  					break;
  				
  				case 93:
  					*uParam2 = 5343;
  					break;
  				
  				case 94:
  					*uParam2 = 5344;
  					break;
  				
  				case 95:
  					*uParam2 = 5345;
  					break;
  				
  				case 96:
  					*uParam2 = 5346;
  					break;
  				
  				case 97:
  					*uParam2 = 5347;
  					break;
  				
  				case 98:
  					*uParam2 = 5348;
  					break;
  				
  				case 99:
  					*uParam2 = 5349;
  					break;
  			}
  			switch (SYSTEM::FLOOR((SYSTEM::TO_FLOAT(iVar0) / 32f)))
  			{
  				case 100:
  					*uParam2 = 5350;
  					break;
  				
  				case 101:
  					*uParam2 = 5396;
  					break;
  				
  				case 102:
  					*uParam2 = 5397;
  					break;
  				
  				case 103:
  					*uParam2 = 5398;
  					break;
  				
  				case 104:
  					*uParam2 = 5399;
  					break;
  				
  				case 105:
  					*uParam2 = 5400;
  					break;
  				
  				case 106:
  					*uParam2 = 5401;
  					break;
  				
  				case 107:
  					*uParam2 = 5402;
  					break;
  				
  				case 108:
  					*uParam2 = 5403;
  					break;
  				
  				case 109:
  					*uParam2 = 5404;
  					break;
  				
  				case 110:
  					*uParam2 = 5405;
  					break;
  				
  				case 111:
  					*uParam2 = 5406;
  					break;
  				
  				case 112:
  					*uParam2 = 5407;
  					break;
  				
  				case 113:
  					*uParam2 = 5408;
  					break;
  				
  				case 114:
  					*uParam2 = 5409;
  					break;
  				
  				case 115:
  					*uParam2 = 5410;
  					break;
  				
  				case 116:
  					*uParam2 = 5411;
  					break;
  				
  				case 117:
  					*uParam2 = 5412;
  					break;
  				
  				case 118:
  					*uParam2 = 5413;
  					break;
  				
  				case 119:
  					*uParam2 = 5414;
  					break;
  				
  				case 120:
  					*uParam2 = 5415;
  					break;
  				
  				case 121:
  					*uParam2 = 5416;
  					break;
  				
  				case 122:
  					*uParam2 = 5417;
  					break;
  				
  				case 123:
  					*uParam2 = 5418;
  					break;
  				
  				case 124:
  					*uParam2 = 6124;
  					break;
  				
  				case 125:
  					*uParam2 = 6125;
  					break;
  				
  				case 126:
  					*uParam2 = 6126;
  					break;
  				
  				case 127:
  					*uParam2 = 6127;
  					break;
  				
  				case 128:
  					*uParam2 = 6128;
  					break;
  				
  				case 129:
  					*uParam2 = 6129;
  					break;
  				
  				case 130:
  					*uParam2 = 6130;
  					break;
  				
  				case 131:
  					*uParam2 = 6131;
  					break;
  				
  				case 132:
  					*uParam2 = 6132;
  					break;
  				
  				case 133:
  					*uParam2 = 6133;
  					break;
  				
  				case 134:
  					*uParam2 = 6134;
  					break;
  				
  				case 135:
  					*uParam2 = 6135;
  					break;
  				
  				case 136:
  					*uParam2 = 6136;
  					break;
  				
  				case 137:
  					*uParam2 = 6137;
  					break;
  				
  				case 138:
  					*uParam2 = 6138;
  					break;
  				
  				case 139:
  					*uParam2 = 6437;
  					break;
  				
  				case 140:
  					*uParam2 = 6438;
  					break;
  				
  				case 141:
  					*uParam2 = 6439;
  					break;
  				
  				case 142:
  					*uParam2 = 6440;
  					break;
  				
  				case 143:
  					*uParam2 = 6441;
  					break;
  				
  				case 144:
  					*uParam2 = 6442;
  					break;
  				
  				case 145:
  					*uParam2 = 6443;
  					break;
  				
  				case 146:
  					*uParam2 = 6444;
  					break;
  				
  				case 147:
  					*uParam2 = 6445;
  					break;
  				
  				case 148:
  					*uParam2 = 6446;
  					break;
  				
  				case 149:
  					*uParam2 = 6447;
  					break;
  				
  				case 150:
  					*uParam2 = 6448;
  					break;
  				
  				case 151:
  					*uParam2 = 6449;
  					break;
  				
  				case 152:
  					*uParam2 = 6450;
  					break;
  				
  				case 153:
  					*uParam2 = 6451;
  					break;
  				
  				case 154:
  					*uParam2 = 7268;
  					break;
  				
  				case 155:
  					*uParam2 = 7269;
  					break;
  				
  				case 156:
  					*uParam2 = 7270;
  					break;
  				
  				case 157:
  					*uParam2 = 7271;
  					break;
  				
  				case 158:
  					*uParam2 = 7272;
  					break;
  				
  				case 159:
  					*uParam2 = 7273;
  					break;
  				
  				case 160:
  					*uParam2 = 7274;
  					break;
  				
  				case 161:
  					*uParam2 = 7881;
  					break;
  				
  				case 162:
  					*uParam2 = 7882;
  					break;
  				
  				case 163:
  					*uParam2 = 7883;
  					break;
  				
  				case 164:
  					*uParam2 = 7884;
  					break;
  				
  				case 165:
  					*uParam2 = 7885;
  					break;
  				
  				case 166:
  					*uParam2 = 7886;
  					break;
  				
  				case 167:
  					*uParam2 = 7887;
  					break;
  				
  				case 168:
  					*uParam2 = 7888;
  					break;
  				
  				case 169:
  					*uParam2 = 7889;
  					break;
  				
  				case 170:
  					*uParam2 = 7890;
  					break;
  				
  				case 171:
  					*uParam2 = 7891;
  					break;
  				
  				case 172:
  					*uParam2 = 7892;
  					break;
  				
  				case 173:
  					*uParam2 = 7893;
  					break;
  				
  				case 174:
  					*uParam2 = 7894;
  					break;
  				
  				case 175:
  					*uParam2 = 7895;
  					break;
  				
  				case 176:
  					*uParam2 = 8301;
  					break;
  				
  				case 177:
  					*uParam2 = 8302;
  					break;
  				
  				case 178:
  					*uParam2 = 8303;
  					break;
  				
  				case 179:
  					*uParam2 = 8304;
  					break;
  				
  				case 180:
  					*uParam2 = 8305;
  					break;
  				
  				case 181:
  					*uParam2 = 8306;
  					break;
  				
  				case 182:
  					*uParam2 = 8307;
  					break;
  				
  				case 183:
  					*uParam2 = 8308;
  					break;
  				
  				case 184:
  					*uParam2 = 8309;
  					break;
  				
  				case 185:
  					*uParam2 = 8310;
  					break;
  				
  				case 186:
  					*uParam2 = 8311;
  					break;
  				
  				case 187:
  					*uParam2 = 8312;
  					break;
  				
  				case 188:
  					*uParam2 = 8313;
  					break;
  				
  				case 189:
  					*uParam2 = 8314;
  					break;
  				
  				case 190:
  					*uParam2 = 8315;
  					break;
  				
  				case 191:
  					*uParam2 = 8316;
  					break;
  				
  				case 192:
  					*uParam2 = 8317;
  					break;
  				
  				case 193:
  					*uParam2 = 8318;
  					break;
  				
  				case 194:
  					*uParam2 = 8319;
  					break;
  				
  				case 195:
  					*uParam2 = 8320;
  					break;
  				
  				case 196:
  					*uParam2 = 8321;
  					break;
  				
  				case 197:
  					*uParam2 = 8322;
  					break;
  				
  				case 198:
  					*uParam2 = 8323;
  					break;
  				
  				case 199:
  					*uParam2 = 8324;
  					break;
  			}
  			switch (SYSTEM::FLOOR((SYSTEM::TO_FLOAT(iVar0) / 32f)))
  			{
  				case 200:
  					*uParam2 = 8325;
  					break;
  				
  				case 201:
  					*uParam2 = 8940;
  					break;
  				
  				case 202:
  					*uParam2 = 8941;
  					break;
  				
  				case 203:
  					*uParam2 = 8942;
  					break;
  				
  				case 204:
  					*uParam2 = 8943;
  					break;
  				
  				case 205:
  					*uParam2 = 8944;
  					break;
  				
  				case 206:
  					*uParam2 = 9423;
  					break;
  				
  				case 207:
  					*uParam2 = 9424;
  					break;
  				
  				case 208:
  					*uParam2 = 9425;
  					break;
  				
  				case 209:
  					*uParam2 = 9426;
  					break;
  				
  				case 210:
  					*uParam2 = 9427;
  					break;
  				
  				case 211:
  					*uParam2 = 9428;
  					break;
  				
  				case 212:
  					*uParam2 = 9429;
  					break;
  				
  				case 213:
  					*uParam2 = 9430;
  					break;
  				
  				case 214:
  					*uParam2 = 9431;
  					break;
  				
  				case 215:
  					*uParam2 = 9432;
  					break;
  				
  				case 216:
  					*uParam2 = 9433;
  					break;
  				
  				case 217:
  					*uParam2 = 9434;
  					break;
  				
  				case 218:
  					*uParam2 = 9435;
  					break;
  				
  				case 219:
  					*uParam2 = 9436;
  					break;
  				
  				case 220:
  					*uParam2 = 9437;
  					break;
  				
  				case 221:
  					*uParam2 = 9438;
  					break;
  				
  				case 222:
  					*uParam2 = 9439;
  					break;
  				
  				case 223:
  					*uParam2 = 9440;
  					break;
  				
  				case 224:
  					*uParam2 = 9441;
  					break;
  				
  				case 225:
  					*uParam2 = 9442;
  					break;
  				
  				case 226:
  					*uParam2 = 9443;
  					break;
  				
  				case 227:
  					*uParam2 = 9444;
  					break;
  				
  				case 228:
  					*uParam2 = 9445;
  					break;
  				
  				case 229:
  					*uParam2 = 9446;
  					break;
  				
  				case 230:
  					*uParam2 = 9447;
  					break;
  			}
  			switch (SYSTEM::FLOOR((SYSTEM::TO_FLOAT(iVar0) / 32f)))
  			{
  				case 231:
  					*uParam2 = 10302;
  					break;
  				
  				case 232:
  					*uParam2 = 10303;
  					break;
  				
  				case 233:
  					*uParam2 = 10304;
  					break;
  				
  				case 234:
  					*uParam2 = 10305;
  					break;
  				
  				case 235:
  					*uParam2 = 10306;
  					break;
  				
  				case 236:
  					*uParam2 = 10307;
  					break;
  				
  				case 237:
  					*uParam2 = 10308;
  					break;
  				
  				case 238:
  					*uParam2 = 10309;
  					break;
  				
  				case 239:
  					*uParam2 = 10310;
  					break;
  				
  				case 240:
  					*uParam2 = 10311;
  					break;
  				
  				case 241:
  					*uParam2 = 10312;
  					break;
  				
  				case 242:
  					*uParam2 = 10313;
  					break;
  				
  				case 243:
  					*uParam2 = 10314;
  					break;
  				
  				case 244:
  					*uParam2 = 10315;
  					break;
  				
  				case 245:
  					*uParam2 = 10316;
  					break;
  				
  				case 246:
  					*uParam2 = 10317;
  					break;
  				
  				case 247:
  					*uParam2 = 10318;
  					break;
  				
  				case 248:
  					*uParam2 = 10319;
  					break;
  				
  				case 249:
  					*uParam2 = 10320;
  					break;
  				
  				case 250:
  					*uParam2 = 10321;
  					break;
  			}
  			break;
  		
  		case 2:
  			switch (SYSTEM::FLOOR((SYSTEM::TO_FLOAT(iVar0) / 32f)))
  			{
  				case 0:
  					*uParam2 = 1767;
  					break;
  				
  				case 1:
  					*uParam2 = 1768;
  					break;
  				
  				case 2:
  					*uParam2 = 1769;
  					break;
  				
  				case 3:
  					*uParam2 = 1770;
  					break;
  				
  				case 4:
  					*uParam2 = 1771;
  					break;
  				
  				case 5:
  					*uParam2 = 1772;
  					break;
  				
  				case 6:
  					*uParam2 = 1780;
  					break;
  				
  				case 7:
  					*uParam2 = 1781;
  					break;
  				
  				case 8:
  					*uParam2 = 1782;
  					break;
  				
  				case 9:
  					*uParam2 = 1783;
  					break;
  				
  				case 10:
  					*uParam2 = 1784;
  					break;
  				
  				case 11:
  					*uParam2 = 1785;
  					break;
  				
  				case 12:
  					*uParam2 = 1786;
  					break;
  				
  				case 13:
  					*uParam2 = 1789;
  					break;
  				
  				case 14:
  					*uParam2 = 1790;
  					break;
  				
  				case 15:
  					*uParam2 = 1891;
  					break;
  				
  				case 16:
  					*uParam2 = 1892;
  					break;
  				
  				case 17:
  					*uParam2 = 1922;
  					break;
  				
  				case 18:
  					*uParam2 = 1940;
  					break;
  				
  				case 19:
  					*uParam2 = 1941;
  					break;
  				
  				case 20:
  					*uParam2 = 1942;
  					break;
  				
  				case 21:
  					*uParam2 = 1943;
  					break;
  				
  				case 22:
  					*uParam2 = 1944;
  					break;
  				
  				case 23:
  					*uParam2 = 2045;
  					break;
  				
  				case 24:
  					*uParam2 = 2046;
  					break;
  				
  				case 25:
  					*uParam2 = 2080;
  					break;
  				
  				case 26:
  					*uParam2 = 2081;
  					break;
  				
  				case 27:
  					*uParam2 = 2082;
  					break;
  				
  				case 28:
  					*uParam2 = 2083;
  					break;
  				
  				case 29:
  					*uParam2 = 2084;
  					break;
  				
  				case 30:
  					*uParam2 = 2085;
  					break;
  				
  				case 31:
  					*uParam2 = 2086;
  					break;
  				
  				case 32:
  					*uParam2 = 2087;
  					break;
  				
  				case 33:
  					*uParam2 = 2088;
  					break;
  				
  				case 34:
  					*uParam2 = 2089;
  					break;
  				
  				case 35:
  					*uParam2 = 2328;
  					break;
  				
  				case 36:
  					*uParam2 = 2329;
  					break;
  				
  				case 37:
  					*uParam2 = 2395;
  					break;
  				
  				case 38:
  					*uParam2 = 2396;
  					break;
  				
  				case 39:
  					*uParam2 = 2397;
  					break;
  				
  				case 40:
  					*uParam2 = 2398;
  					break;
  				
  				case 41:
  					*uParam2 = 2463;
  					break;
  				
  				case 42:
  					*uParam2 = 2464;
  					break;
  				
  				case 43:
  					*uParam2 = 2465;
  					break;
  				
  				case 44:
  					*uParam2 = 2466;
  					break;
  				
  				case 45:
  					*uParam2 = 2467;
  					break;
  				
  				case 46:
  					*uParam2 = 2468;
  					break;
  				
  				case 47:
  					*uParam2 = 2469;
  					break;
  				
  				case 48:
  					*uParam2 = 2470;
  					break;
  				
  				case 49:
  					*uParam2 = 2471;
  					break;
  				
  				case 50:
  					*uParam2 = 2472;
  					break;
  				
  				case 51:
  					*uParam2 = 2602;
  					break;
  				
  				case 52:
  					*uParam2 = 2603;
  					break;
  				
  				case 53:
  					*uParam2 = 2604;
  					break;
  				
  				case 54:
  					*uParam2 = 2605;
  					break;
  				
  				case 55:
  					*uParam2 = 2606;
  					break;
  				
  				case 56:
  					*uParam2 = 2607;
  					break;
  				
  				case 57:
  					*uParam2 = 2608;
  					break;
  				
  				case 58:
  					*uParam2 = 2609;
  					break;
  				
  				case 59:
  					*uParam2 = 2610;
  					break;
  				
  				case 60:
  					*uParam2 = 2611;
  					break;
  				
  				case 61:
  					*uParam2 = 2612;
  					break;
  				
  				case 62:
  					*uParam2 = 3204;
  					break;
  				
  				case 63:
  					*uParam2 = 3205;
  					break;
  				
  				case 64:
  					*uParam2 = 3206;
  					break;
  				
  				case 65:
  					*uParam2 = 3207;
  					break;
  				
  				case 66:
  					*uParam2 = 3208;
  					break;
  				
  				case 67:
  					*uParam2 = 3209;
  					break;
  				
  				case 68:
  					*uParam2 = 3681;
  					break;
  				
  				case 69:
  					*uParam2 = 3682;
  					break;
  				
  				case 70:
  					*uParam2 = 3683;
  					break;
  				
  				case 71:
  					*uParam2 = 3684;
  					break;
  				
  				case 72:
  					*uParam2 = 3685;
  					break;
  				
  				case 73:
  					*uParam2 = 3686;
  					break;
  				
  				case 74:
  					*uParam2 = 3687;
  					break;
  				
  				case 75:
  					*uParam2 = 3688;
  					break;
  				
  				case 76:
  					*uParam2 = 3689;
  					break;
  				
  				case 77:
  					*uParam2 = 3690;
  					break;
  				
  				case 78:
  					*uParam2 = 3802;
  					break;
  				
  				case joaat("mpsv_lp0_31"):
  					*uParam2 = 3803;
  					break;
  				
  				case 80:
  					*uParam2 = 3804;
  					break;
  				
  				case 81:
  					*uParam2 = 3805;
  					break;
  				
  				case 82:
  					*uParam2 = 3806;
  					break;
  				
  				case 83:
  					*uParam2 = 3807;
  					break;
  				
  				case 84:
  					*uParam2 = 3808;
  					break;
  				
  				case 85:
  					*uParam2 = 3809;
  					break;
  				
  				case 86:
  					*uParam2 = 3907;
  					break;
  				
  				case 87:
  					*uParam2 = 3908;
  					break;
  				
  				case 88:
  					*uParam2 = 3909;
  					break;
  				
  				case 89:
  					*uParam2 = 5351;
  					break;
  				
  				case 90:
  					*uParam2 = 5352;
  					break;
  				
  				case 91:
  					*uParam2 = 5353;
  					break;
  				
  				case 92:
  					*uParam2 = 5354;
  					break;
  				
  				case 93:
  					*uParam2 = 5355;
  					break;
  				
  				case 94:
  					*uParam2 = 5356;
  					break;
  				
  				case 95:
  					*uParam2 = 5357;
  					break;
  				
  				case 96:
  					*uParam2 = 5358;
  					break;
  				
  				case 97:
  					*uParam2 = 5359;
  					break;
  				
  				case 98:
  					*uParam2 = 5360;
  					break;
  				
  				case 99:
  					*uParam2 = 5361;
  					break;
  			}
  			switch (SYSTEM::FLOOR((SYSTEM::TO_FLOAT(iVar0) / 32f)))
  			{
  				case 100:
  					*uParam2 = 5362;
  					break;
  				
  				case 101:
  					*uParam2 = 5419;
  					break;
  				
  				case 102:
  					*uParam2 = 5420;
  					break;
  				
  				case 103:
  					*uParam2 = 5421;
  					break;
  				
  				case 104:
  					*uParam2 = 5422;
  					break;
  				
  				case 105:
  					*uParam2 = 5423;
  					break;
  				
  				case 106:
  					*uParam2 = 5424;
  					break;
  				
  				case 107:
  					*uParam2 = 5425;
  					break;
  				
  				case 108:
  					*uParam2 = 5426;
  					break;
  				
  				case 109:
  					*uParam2 = 5427;
  					break;
  				
  				case 110:
  					*uParam2 = 5428;
  					break;
  				
  				case 111:
  					*uParam2 = 5429;
  					break;
  				
  				case 112:
  					*uParam2 = 5430;
  					break;
  				
  				case 113:
  					*uParam2 = 5431;
  					break;
  				
  				case 114:
  					*uParam2 = 5432;
  					break;
  				
  				case 115:
  					*uParam2 = 5433;
  					break;
  				
  				case 116:
  					*uParam2 = 5434;
  					break;
  				
  				case 117:
  					*uParam2 = 5435;
  					break;
  				
  				case 118:
  					*uParam2 = 5436;
  					break;
  				
  				case 119:
  					*uParam2 = 5437;
  					break;
  				
  				case 120:
  					*uParam2 = 5438;
  					break;
  				
  				case 121:
  					*uParam2 = 5439;
  					break;
  				
  				case 122:
  					*uParam2 = 5440;
  					break;
  				
  				case 123:
  					*uParam2 = 5441;
  					break;
  				
  				case 124:
  					*uParam2 = 6139;
  					break;
  				
  				case 125:
  					*uParam2 = 6140;
  					break;
  				
  				case 126:
  					*uParam2 = 6141;
  					break;
  				
  				case 127:
  					*uParam2 = 6142;
  					break;
  				
  				case 128:
  					*uParam2 = 6143;
  					break;
  				
  				case 129:
  					*uParam2 = 6144;
  					break;
  				
  				case 130:
  					*uParam2 = 6145;
  					break;
  				
  				case 131:
  					*uParam2 = 6146;
  					break;
  				
  				case 132:
  					*uParam2 = 6147;
  					break;
  				
  				case 133:
  					*uParam2 = 6148;
  					break;
  				
  				case 134:
  					*uParam2 = 6149;
  					break;
  				
  				case 135:
  					*uParam2 = 6150;
  					break;
  				
  				case 136:
  					*uParam2 = 6151;
  					break;
  				
  				case 137:
  					*uParam2 = 6152;
  					break;
  				
  				case 138:
  					*uParam2 = 6153;
  					break;
  				
  				case 139:
  					*uParam2 = 6452;
  					break;
  				
  				case 140:
  					*uParam2 = 6453;
  					break;
  				
  				case 141:
  					*uParam2 = 6454;
  					break;
  				
  				case 142:
  					*uParam2 = 6455;
  					break;
  				
  				case 143:
  					*uParam2 = 6456;
  					break;
  				
  				case 144:
  					*uParam2 = 6457;
  					break;
  				
  				case 145:
  					*uParam2 = 6458;
  					break;
  				
  				case 146:
  					*uParam2 = 6459;
  					break;
  				
  				case 147:
  					*uParam2 = 6460;
  					break;
  				
  				case 148:
  					*uParam2 = 6461;
  					break;
  				
  				case 149:
  					*uParam2 = 6462;
  					break;
  				
  				case 150:
  					*uParam2 = 6463;
  					break;
  				
  				case 151:
  					*uParam2 = 6464;
  					break;
  				
  				case 152:
  					*uParam2 = 6465;
  					break;
  				
  				case 153:
  					*uParam2 = 6466;
  					break;
  				
  				case 154:
  					*uParam2 = 7275;
  					break;
  				
  				case 155:
  					*uParam2 = 7276;
  					break;
  				
  				case 156:
  					*uParam2 = 7277;
  					break;
  				
  				case 157:
  					*uParam2 = 7278;
  					break;
  				
  				case 158:
  					*uParam2 = 7279;
  					break;
  				
  				case 159:
  					*uParam2 = 7280;
  					break;
  				
  				case 160:
  					*uParam2 = 7281;
  					break;
  				
  				case 161:
  					*uParam2 = 7896;
  					break;
  				
  				case 162:
  					*uParam2 = 7897;
  					break;
  				
  				case 163:
  					*uParam2 = 7898;
  					break;
  				
  				case 164:
  					*uParam2 = 7899;
  					break;
  				
  				case 165:
  					*uParam2 = 7900;
  					break;
  				
  				case 166:
  					*uParam2 = 7901;
  					break;
  				
  				case 167:
  					*uParam2 = 7902;
  					break;
  				
  				case 168:
  					*uParam2 = 7903;
  					break;
  				
  				case 169:
  					*uParam2 = 7904;
  					break;
  				
  				case 170:
  					*uParam2 = 7905;
  					break;
  				
  				case 171:
  					*uParam2 = 7906;
  					break;
  				
  				case 172:
  					*uParam2 = 7907;
  					break;
  				
  				case 173:
  					*uParam2 = 7908;
  					break;
  				
  				case 174:
  					*uParam2 = 7909;
  					break;
  				
  				case 175:
  					*uParam2 = 7910;
  					break;
  				
  				case 176:
  					*uParam2 = 8326;
  					break;
  				
  				case 177:
  					*uParam2 = 8327;
  					break;
  				
  				case 178:
  					*uParam2 = 8328;
  					break;
  				
  				case 179:
  					*uParam2 = 8329;
  					break;
  				
  				case 180:
  					*uParam2 = 8330;
  					break;
  				
  				case 181:
  					*uParam2 = 8331;
  					break;
  				
  				case 182:
  					*uParam2 = 8332;
  					break;
  				
  				case 183:
  					*uParam2 = 8333;
  					break;
  				
  				case 184:
  					*uParam2 = 8334;
  					break;
  				
  				case 185:
  					*uParam2 = 8335;
  					break;
  				
  				case 186:
  					*uParam2 = 8336;
  					break;
  				
  				case 187:
  					*uParam2 = 8337;
  					break;
  				
  				case 188:
  					*uParam2 = 8338;
  					break;
  				
  				case 189:
  					*uParam2 = 8339;
  					break;
  				
  				case 190:
  					*uParam2 = 8340;
  					break;
  				
  				case 191:
  					*uParam2 = 8341;
  					break;
  				
  				case 192:
  					*uParam2 = 8342;
  					break;
  				
  				case 193:
  					*uParam2 = 8343;
  					break;
  				
  				case 194:
  					*uParam2 = 8344;
  					break;
  				
  				case 195:
  					*uParam2 = 8345;
  					break;
  				
  				case 196:
  					*uParam2 = 8346;
  					break;
  				
  				case 197:
  					*uParam2 = 8347;
  					break;
  				
  				case 198:
  					*uParam2 = 8348;
  					break;
  				
  				case 199:
  					*uParam2 = 8349;
  					break;
  			}
  			switch (SYSTEM::FLOOR((SYSTEM::TO_FLOAT(iVar0) / 32f)))
  			{
  				case 200:
  					*uParam2 = 8350;
  					break;
  				
  				case 201:
  					*uParam2 = 8945;
  					break;
  				
  				case 202:
  					*uParam2 = 8946;
  					break;
  				
  				case 203:
  					*uParam2 = 8947;
  					break;
  				
  				case 204:
  					*uParam2 = 8948;
  					break;
  				
  				case 205:
  					*uParam2 = 8949;
  					break;
  				
  				case 206:
  					*uParam2 = 9448;
  					break;
  				
  				case 207:
  					*uParam2 = 9449;
  					break;
  				
  				case 208:
  					*uParam2 = 9450;
  					break;
  				
  				case 209:
  					*uParam2 = 9451;
  					break;
  				
  				case 210:
  					*uParam2 = 9452;
  					break;
  				
  				case 211:
  					*uParam2 = 9453;
  					break;
  				
  				case 212:
  					*uParam2 = 9454;
  					break;
  				
  				case 213:
  					*uParam2 = 9455;
  					break;
  				
  				case 214:
  					*uParam2 = 9456;
  					break;
  				
  				case 215:
  					*uParam2 = 9457;
  					break;
  				
  				case 216:
  					*uParam2 = 9458;
  					break;
  				
  				case 217:
  					*uParam2 = 9459;
  					break;
  				
  				case 218:
  					*uParam2 = 9460;
  					break;
  				
  				case 219:
  					*uParam2 = 9461;
  					break;
  				
  				case 220:
  					*uParam2 = 9462;
  					break;
  				
  				case 221:
  					*uParam2 = 9463;
  					break;
  				
  				case 222:
  					*uParam2 = 9464;
  					break;
  				
  				case 223:
  					*uParam2 = 9465;
  					break;
  				
  				case 224:
  					*uParam2 = 9466;
  					break;
  				
  				case 225:
  					*uParam2 = 9467;
  					break;
  				
  				case 226:
  					*uParam2 = 9468;
  					break;
  				
  				case 227:
  					*uParam2 = 9469;
  					break;
  				
  				case 228:
  					*uParam2 = 9470;
  					break;
  				
  				case 229:
  					*uParam2 = 9471;
  					break;
  				
  				case 230:
  					*uParam2 = 9472;
  					break;
  			}
  			switch (SYSTEM::FLOOR((SYSTEM::TO_FLOAT(iVar0) / 32f)))
  			{
  				case 231:
  					*uParam2 = 10322;
  					break;
  				
  				case 232:
  					*uParam2 = 10323;
  					break;
  				
  				case 233:
  					*uParam2 = 10324;
  					break;
  				
  				case 234:
  					*uParam2 = 10325;
  					break;
  				
  				case 235:
  					*uParam2 = 10326;
  					break;
  				
  				case 236:
  					*uParam2 = 10327;
  					break;
  				
  				case 237:
  					*uParam2 = 10328;
  					break;
  				
  				case 238:
  					*uParam2 = 10329;
  					break;
  				
  				case 239:
  					*uParam2 = 10330;
  					break;
  				
  				case 240:
  					*uParam2 = 10331;
  					break;
  				
  				case 241:
  					*uParam2 = 10332;
  					break;
  				
  				case 242:
  					*uParam2 = 10333;
  					break;
  				
  				case 243:
  					*uParam2 = 10334;
  					break;
  				
  				case 244:
  					*uParam2 = 10335;
  					break;
  				
  				case 245:
  					*uParam2 = 10336;
  					break;
  				
  				case 246:
  					*uParam2 = 10337;
  					break;
  				
  				case 247:
  					*uParam2 = 10338;
  					break;
  				
  				case 248:
  					*uParam2 = 10339;
  					break;
  				
  				case 249:
  					*uParam2 = 10340;
  					break;
  				
  				case 250:
  					*uParam2 = 10341;
  					break;
  			}
  			break;
  	}
  	*uParam3 = (iVar0 % 32);
  	return *uParam2 != 12581;
  }
  
  int func_258(int iParam0, int iParam1, int iParam2, int iParam3, bool bParam4, int iParam5, int iParam6)
  {
  	if (iParam0 == 0)
  	{
  		if (iParam5 == 1)
  		{
  			MISC::SET_BIT(&(Global_112922.f_2363[iParam1 /*164*/][iParam3]), bParam4);
  		}
  		if (iParam6 == 1)
  		{
  			MISC::CLEAR_BIT(&(Global_112922.f_2363[iParam1 /*164*/][iParam3]), bParam4);
  		}
  		return BitTest(Global_112922.f_2363[iParam1 /*164*/][iParam3], bParam4);
  	}
  	else if (iParam0 == 1)
  	{
  		if (iParam5 == 1)
  		{
  			MISC::SET_BIT(&(Global_112922.f_2363[iParam1 /*164*/].f_4[iParam3]), bParam4);
  		}
  		if (iParam6 == 1)
  		{
  			MISC::CLEAR_BIT(&(Global_112922.f_2363[iParam1 /*164*/].f_4[iParam3]), bParam4);
  		}
  		return BitTest(Global_112922.f_2363[iParam1 /*164*/].f_4[iParam3], bParam4);
  	}
  	else if (iParam0 == 2)
  	{
  		if (iParam5 == 1)
  		{
  			MISC::SET_BIT(&(Global_112922.f_2363[iParam1 /*164*/].f_8[iParam3]), bParam4);
  		}
  		if (iParam6 == 1)
  		{
  			MISC::CLEAR_BIT(&(Global_112922.f_2363[iParam1 /*164*/].f_8[iParam3]), bParam4);
  		}
  		return BitTest(Global_112922.f_2363[iParam1 /*164*/].f_8[iParam3], bParam4);
  	}
  	else if (iParam0 == 3)
  	{
  		if (iParam2 == 0)
  		{
  			if (iParam5 == 1)
  			{
  				MISC::SET_BIT(&(Global_112922.f_2363[iParam1 /*164*/].f_12[iParam3]), bParam4);
  			}
  			if (iParam6 == 1)
  			{
  				MISC::CLEAR_BIT(&(Global_112922.f_2363[iParam1 /*164*/].f_12[iParam3]), bParam4);
  			}
  			return BitTest(Global_112922.f_2363[iParam1 /*164*/].f_12[iParam3], bParam4);
  		}
  		else if (iParam2 == 1)
  		{
  			if (iParam5 == 1)
  			{
  				MISC::SET_BIT(&(Global_112922.f_2363[iParam1 /*164*/].f_16[iParam3]), bParam4);
  			}
  			if (iParam6 == 1)
  			{
  				MISC::CLEAR_BIT(&(Global_112922.f_2363[iParam1 /*164*/].f_16[iParam3]), bParam4);
  			}
  			return BitTest(Global_112922.f_2363[iParam1 /*164*/].f_16[iParam3], bParam4);
  		}
  		else if (iParam2 == 2)
  		{
  			if (iParam5 == 1)
  			{
  				MISC::SET_BIT(&(Global_112922.f_2363[iParam1 /*164*/].f_20[iParam3]), bParam4);
  			}
  			if (iParam6 == 1)
  			{
  				MISC::CLEAR_BIT(&(Global_112922.f_2363[iParam1 /*164*/].f_20[iParam3]), bParam4);
  			}
  			return BitTest(Global_112922.f_2363[iParam1 /*164*/].f_20[iParam3], bParam4);
  		}
  		else if (iParam2 == 3)
  		{
  			if (iParam5 == 1)
  			{
  				MISC::SET_BIT(&(Global_112922.f_2363[iParam1 /*164*/].f_24[iParam3]), bParam4);
  			}
  			if (iParam6 == 1)
  			{
  				MISC::CLEAR_BIT(&(Global_112922.f_2363[iParam1 /*164*/].f_24[iParam3]), bParam4);
  			}
  			return BitTest(Global_112922.f_2363[iParam1 /*164*/].f_24[iParam3], bParam4);
  		}
  		else if (iParam2 == 4)
  		{
  			if (iParam5 == 1)
  			{
  				MISC::SET_BIT(&(Global_112922.f_2363[iParam1 /*164*/].f_28[iParam3]), bParam4);
  			}
  			if (iParam6 == 1)
  			{
  				MISC::CLEAR_BIT(&(Global_112922.f_2363[iParam1 /*164*/].f_28[iParam3]), bParam4);
  			}
  			return BitTest(Global_112922.f_2363[iParam1 /*164*/].f_28[iParam3], bParam4);
  		}
  		else if (iParam2 == 5)
  		{
  			if (iParam5 == 1)
  			{
  				MISC::SET_BIT(&(Global_112922.f_2363[iParam1 /*164*/].f_32[iParam3]), bParam4);
  			}
  			if (iParam6 == 1)
  			{
  				MISC::CLEAR_BIT(&(Global_112922.f_2363[iParam1 /*164*/].f_32[iParam3]), bParam4);
  			}
  			return BitTest(Global_112922.f_2363[iParam1 /*164*/].f_32[iParam3], bParam4);
  		}
  		else if (iParam2 == 6)
  		{
  			if (iParam5 == 1)
  			{
  				MISC::SET_BIT(&(Global_112922.f_2363[iParam1 /*164*/].f_36[iParam3]), bParam4);
  			}
  			if (iParam6 == 1)
  			{
  				MISC::CLEAR_BIT(&(Global_112922.f_2363[iParam1 /*164*/].f_36[iParam3]), bParam4);
  			}
  			return BitTest(Global_112922.f_2363[iParam1 /*164*/].f_36[iParam3], bParam4);
  		}
  		else if (iParam2 == 7)
  		{
  			if (iParam5 == 1)
  			{
  				MISC::SET_BIT(&(Global_112922.f_2363[iParam1 /*164*/].f_40[iParam3]), bParam4);
  			}
  			if (iParam6 == 1)
  			{
  				MISC::CLEAR_BIT(&(Global_112922.f_2363[iParam1 /*164*/].f_40[iParam3]), bParam4);
  			}
  			return BitTest(Global_112922.f_2363[iParam1 /*164*/].f_40[iParam3], bParam4);
  		}
  		else if (iParam2 == 8)
  		{
  			if (iParam5 == 1)
  			{
  				MISC::SET_BIT(&(Global_112922.f_2363[iParam1 /*164*/].f_44[iParam3]), bParam4);
  			}
  			if (iParam6 == 1)
  			{
  				MISC::CLEAR_BIT(&(Global_112922.f_2363[iParam1 /*164*/].f_44[iParam3]), bParam4);
  			}
  			return BitTest(Global_112922.f_2363[iParam1 /*164*/].f_44[iParam3], bParam4);
  		}
  		else if (iParam2 == 9)
  		{
  			if (iParam5 == 1)
  			{
  				MISC::SET_BIT(&(Global_112922.f_2363[iParam1 /*164*/].f_48[iParam3]), bParam4);
  			}
  			if (iParam6 == 1)
  			{
  				MISC::CLEAR_BIT(&(Global_112922.f_2363[iParam1 /*164*/].f_48[iParam3]), bParam4);
  			}
  			return BitTest(Global_112922.f_2363[iParam1 /*164*/].f_48[iParam3], bParam4);
  		}
  	}
  	else if (iParam0 == 4)
  	{
  		if (iParam2 == 0)
  		{
  			if (iParam5 == 1)
  			{
  				MISC::SET_BIT(&(Global_112922.f_2363[iParam1 /*164*/].f_52[iParam3]), bParam4);
  			}
  			if (iParam6 == 1)
  			{
  				MISC::CLEAR_BIT(&(Global_112922.f_2363[iParam1 /*164*/].f_52[iParam3]), bParam4);
  			}
  			return BitTest(Global_112922.f_2363[iParam1 /*164*/].f_52[iParam3], bParam4);
  		}
  		else if (iParam2 == 1)
  		{
  			if (iParam5 == 1)
  			{
  				MISC::SET_BIT(&(Global_112922.f_2363[iParam1 /*164*/].f_56[iParam3]), bParam4);
  			}
  			if (iParam6 == 1)
  			{
  				MISC::CLEAR_BIT(&(Global_112922.f_2363[iParam1 /*164*/].f_56[iParam3]), bParam4);
  			}
  			return BitTest(Global_112922.f_2363[iParam1 /*164*/].f_56[iParam3], bParam4);
  		}
  		else if (iParam2 == 2)
  		{
  			if (iParam5 == 1)
  			{
  				MISC::SET_BIT(&(Global_112922.f_2363[iParam1 /*164*/].f_60[iParam3]), bParam4);
  			}
  			if (iParam6 == 1)
  			{
  				MISC::CLEAR_BIT(&(Global_112922.f_2363[iParam1 /*164*/].f_60[iParam3]), bParam4);
  			}
  			return BitTest(Global_112922.f_2363[iParam1 /*164*/].f_60[iParam3], bParam4);
  		}
  		else if (iParam2 == 3)
  		{
  			if (iParam5 == 1)
  			{
  				MISC::SET_BIT(&(Global_112922.f_2363[iParam1 /*164*/].f_64[iParam3]), bParam4);
  			}
  			if (iParam6 == 1)
  			{
  				MISC::CLEAR_BIT(&(Global_112922.f_2363[iParam1 /*164*/].f_64[iParam3]), bParam4);
  			}
  			return BitTest(Global_112922.f_2363[iParam1 /*164*/].f_64[iParam3], bParam4);
  		}
  	}
  	else if (iParam0 == 5)
  	{
  		if (iParam5 == 1)
  		{
  			MISC::SET_BIT(&(Global_112922.f_2363[iParam1 /*164*/].f_68[iParam3]), bParam4);
  		}
  		if (iParam6 == 1)
  		{
  			MISC::CLEAR_BIT(&(Global_112922.f_2363[iParam1 /*164*/].f_68[iParam3]), bParam4);
  		}
  		return BitTest(Global_112922.f_2363[iParam1 /*164*/].f_68[iParam3], bParam4);
  	}
  	else if (iParam0 == 6)
  	{
  		if (iParam2 == 0)
  		{
  			if (iParam5 == 1)
  			{
  				MISC::SET_BIT(&(Global_112922.f_2363[iParam1 /*164*/].f_72[iParam3]), bParam4);
  			}
  			if (iParam6 == 1)
  			{
  				MISC::CLEAR_BIT(&(Global_112922.f_2363[iParam1 /*164*/].f_72[iParam3]), bParam4);
  			}
  			return BitTest(Global_112922.f_2363[iParam1 /*164*/].f_72[iParam3], bParam4);
  		}
  		else if (iParam2 == 1)
  		{
  			if (iParam5 == 1)
  			{
  				MISC::SET_BIT(&(Global_112922.f_2363[iParam1 /*164*/].f_76[iParam3]), bParam4);
  			}
  			if (iParam6 == 1)
  			{
  				MISC::CLEAR_BIT(&(Global_112922.f_2363[iParam1 /*164*/].f_76[iParam3]), bParam4);
  			}
  			return BitTest(Global_112922.f_2363[iParam1 /*164*/].f_76[iParam3], bParam4);
  		}
  		else if (iParam2 == 2)
  		{
  			if (iParam5 == 1)
  			{
  				MISC::SET_BIT(&(Global_112922.f_2363[iParam1 /*164*/].f_80[iParam3]), bParam4);
  			}
  			if (iParam6 == 1)
  			{
  				MISC::CLEAR_BIT(&(Global_112922.f_2363[iParam1 /*164*/].f_80[iParam3]), bParam4);
  			}
  			return BitTest(Global_112922.f_2363[iParam1 /*164*/].f_80[iParam3], bParam4);
  		}
  		else if (iParam2 == 3)
  		{
  			if (iParam5 == 1)
  			{
  				MISC::SET_BIT(&(Global_112922.f_2363[iParam1 /*164*/].f_84[iParam3]), bParam4);
  			}
  			if (iParam6 == 1)
  			{
  				MISC::CLEAR_BIT(&(Global_112922.f_2363[iParam1 /*164*/].f_84[iParam3]), bParam4);
  			}
  			return BitTest(Global_112922.f_2363[iParam1 /*164*/].f_84[iParam3], bParam4);
  		}
  		else if (iParam2 == 4)
  		{
  			if (iParam5 == 1)
  			{
  				MISC::SET_BIT(&(Global_112922.f_2363[iParam1 /*164*/].f_88[iParam3]), bParam4);
  			}
  			if (iParam6 == 1)
  			{
  				MISC::CLEAR_BIT(&(Global_112922.f_2363[iParam1 /*164*/].f_88[iParam3]), bParam4);
  			}
  			return BitTest(Global_112922.f_2363[iParam1 /*164*/].f_88[iParam3], bParam4);
  		}
  	}
  	else if (iParam0 == 7)
  	{
  		if (iParam5 == 1)
  		{
  			MISC::SET_BIT(&(Global_112922.f_2363[iParam1 /*164*/].f_92[iParam3]), bParam4);
  		}
  		if (iParam6 == 1)
  		{
  			MISC::CLEAR_BIT(&(Global_112922.f_2363[iParam1 /*164*/].f_92[iParam3]), bParam4);
  		}
  		return BitTest(Global_112922.f_2363[iParam1 /*164*/].f_92[iParam3], bParam4);
  	}
  	else if (iParam0 == 8)
  	{
  		if (iParam2 == 0)
  		{
  			if (iParam5 == 1)
  			{
  				MISC::SET_BIT(&(Global_112922.f_2363[iParam1 /*164*/].f_96[iParam3]), bParam4);
  			}
  			if (iParam6 == 1)
  			{
  				MISC::CLEAR_BIT(&(Global_112922.f_2363[iParam1 /*164*/].f_96[iParam3]), bParam4);
  			}
  			return BitTest(Global_112922.f_2363[iParam1 /*164*/].f_96[iParam3], bParam4);
  		}
  		else if (iParam2 == 1)
  		{
  			if (iParam5 == 1)
  			{
  				MISC::SET_BIT(&(Global_112922.f_2363[iParam1 /*164*/].f_100[iParam3]), bParam4);
  			}
  			if (iParam6 == 1)
  			{
  				MISC::CLEAR_BIT(&(Global_112922.f_2363[iParam1 /*164*/].f_100[iParam3]), bParam4);
  			}
  			return BitTest(Global_112922.f_2363[iParam1 /*164*/].f_100[iParam3], bParam4);
  		}
  		else if (iParam2 == 2)
  		{
  			if (iParam5 == 1)
  			{
  				MISC::SET_BIT(&(Global_112922.f_2363[iParam1 /*164*/].f_104[iParam3]), bParam4);
  			}
  			if (iParam6 == 1)
  			{
  				MISC::CLEAR_BIT(&(Global_112922.f_2363[iParam1 /*164*/].f_104[iParam3]), bParam4);
  			}
  			return BitTest(Global_112922.f_2363[iParam1 /*164*/].f_104[iParam3], bParam4);
  		}
  	}
  	else if (iParam0 == 9)
  	{
  		if (iParam5 == 1)
  		{
  			MISC::SET_BIT(&(Global_112922.f_2363[iParam1 /*164*/].f_108[iParam3]), bParam4);
  		}
  		if (iParam6 == 1)
  		{
  			MISC::CLEAR_BIT(&(Global_112922.f_2363[iParam1 /*164*/].f_108[iParam3]), bParam4);
  		}
  		return BitTest(Global_112922.f_2363[iParam1 /*164*/].f_108[iParam3], bParam4);
  	}
  	else if (iParam0 == 10)
  	{
  		if (iParam2 == 0)
  		{
  			if (iParam5 == 1)
  			{
  				MISC::SET_BIT(&(Global_112922.f_2363[iParam1 /*164*/].f_112[iParam3]), bParam4);
  			}
  			if (iParam6 == 1)
  			{
  				MISC::CLEAR_BIT(&(Global_112922.f_2363[iParam1 /*164*/].f_112[iParam3]), bParam4);
  			}
  			return BitTest(Global_112922.f_2363[iParam1 /*164*/].f_112[iParam3], bParam4);
  		}
  		else if (iParam2 == 1)
  		{
  			if (iParam5 == 1)
  			{
  				MISC::SET_BIT(&(Global_112922.f_2363[iParam1 /*164*/].f_116[iParam3]), bParam4);
  			}
  			if (iParam6 == 1)
  			{
  				MISC::CLEAR_BIT(&(Global_112922.f_2363[iParam1 /*164*/].f_116[iParam3]), bParam4);
  			}
  			return BitTest(Global_112922.f_2363[iParam1 /*164*/].f_116[iParam3], bParam4);
  		}
  	}
  	else if (iParam0 == 11)
  	{
  		if (iParam2 == 0)
  		{
  			if (iParam5 == 1)
  			{
  				MISC::SET_BIT(&(Global_112922.f_2363[iParam1 /*164*/].f_120[iParam3]), bParam4);
  			}
  			if (iParam6 == 1)
  			{
  				MISC::CLEAR_BIT(&(Global_112922.f_2363[iParam1 /*164*/].f_120[iParam3]), bParam4);
  			}
  			return BitTest(Global_112922.f_2363[iParam1 /*164*/].f_120[iParam3], bParam4);
  		}
  		else if (iParam2 == 1)
  		{
  			if (iParam5 == 1)
  			{
  				MISC::SET_BIT(&(Global_112922.f_2363[iParam1 /*164*/].f_124[iParam3]), bParam4);
  			}
  			if (iParam6 == 1)
  			{
  				MISC::CLEAR_BIT(&(Global_112922.f_2363[iParam1 /*164*/].f_124[iParam3]), bParam4);
  			}
  			return BitTest(Global_112922.f_2363[iParam1 /*164*/].f_124[iParam3], bParam4);
  		}
  	}
  	else if (iParam0 == 12)
  	{
  		if (iParam2 == 0)
  		{
  			if (iParam5 == 1)
  			{
  				MISC::SET_BIT(&(Global_112922.f_2363[iParam1 /*164*/].f_128[iParam3]), bParam4);
  			}
  			if (iParam6 == 1)
  			{
  				MISC::CLEAR_BIT(&(Global_112922.f_2363[iParam1 /*164*/].f_128[iParam3]), bParam4);
  			}
  			return BitTest(Global_112922.f_2363[iParam1 /*164*/].f_128[iParam3], bParam4);
  		}
  		else if (iParam2 == 1)
  		{
  			if (iParam5 == 1)
  			{
  				MISC::SET_BIT(&(Global_112922.f_2363[iParam1 /*164*/].f_132[iParam3]), bParam4);
  			}
  			if (iParam6 == 1)
  			{
  				MISC::CLEAR_BIT(&(Global_112922.f_2363[iParam1 /*164*/].f_132[iParam3]), bParam4);
  			}
  			return BitTest(Global_112922.f_2363[iParam1 /*164*/].f_132[iParam3], bParam4);
  		}
  	}
  	else if (iParam0 == 13)
  	{
  		if (iParam5 == 1)
  		{
  			MISC::SET_BIT(&(Global_112922.f_2363[iParam1 /*164*/].f_136[iParam3]), bParam4);
  		}
  		if (iParam6 == 1)
  		{
  			MISC::CLEAR_BIT(&(Global_112922.f_2363[iParam1 /*164*/].f_136[iParam3]), bParam4);
  		}
  		return BitTest(Global_112922.f_2363[iParam1 /*164*/].f_136[iParam3], bParam4);
  	}
  	else if (iParam0 == 14)
  	{
  		if (iParam2 == 0)
  		{
  			if (iParam5 == 1)
  			{
  				MISC::SET_BIT(&(Global_112922.f_2363[iParam1 /*164*/].f_140[iParam3]), bParam4);
  			}
  			if (iParam6 == 1)
  			{
  				MISC::CLEAR_BIT(&(Global_112922.f_2363[iParam1 /*164*/].f_140[iParam3]), bParam4);
  			}
  			return BitTest(Global_112922.f_2363[iParam1 /*164*/].f_140[iParam3], bParam4);
  		}
  		else if (iParam2 == 1)
  		{
  			if (iParam5 == 1)
  			{
  				MISC::SET_BIT(&(Global_112922.f_2363[iParam1 /*164*/].f_144[iParam3]), bParam4);
  			}
  			if (iParam6 == 1)
  			{
  				MISC::CLEAR_BIT(&(Global_112922.f_2363[iParam1 /*164*/].f_144[iParam3]), bParam4);
  			}
  			return BitTest(Global_112922.f_2363[iParam1 /*164*/].f_144[iParam3], bParam4);
  		}
  		else if (iParam2 == 2)
  		{
  			if (iParam5 == 1)
  			{
  				MISC::SET_BIT(&(Global_112922.f_2363[iParam1 /*164*/].f_148[iParam3]), bParam4);
  			}
  			if (iParam6 == 1)
  			{
  				MISC::CLEAR_BIT(&(Global_112922.f_2363[iParam1 /*164*/].f_148[iParam3]), bParam4);
  			}
  			return BitTest(Global_112922.f_2363[iParam1 /*164*/].f_148[iParam3], bParam4);
  		}
  		else if (iParam2 == 3)
  		{
  			if (iParam5 == 1)
  			{
  				MISC::SET_BIT(&(Global_112922.f_2363[iParam1 /*164*/].f_152[iParam3]), bParam4);
  			}
  			if (iParam6 == 1)
  			{
  				MISC::CLEAR_BIT(&(Global_112922.f_2363[iParam1 /*164*/].f_152[iParam3]), bParam4);
  			}
  			return BitTest(Global_112922.f_2363[iParam1 /*164*/].f_152[iParam3], bParam4);
  		}
  		else if (iParam2 == 4)
  		{
  			if (iParam5 == 1)
  			{
  				MISC::SET_BIT(&(Global_112922.f_2363[iParam1 /*164*/].f_156[iParam3]), bParam4);
  			}
  			if (iParam6 == 1)
  			{
  				MISC::CLEAR_BIT(&(Global_112922.f_2363[iParam1 /*164*/].f_156[iParam3]), bParam4);
  			}
  			return BitTest(Global_112922.f_2363[iParam1 /*164*/].f_156[iParam3], bParam4);
  		}
  		else if (iParam2 == 5)
  		{
  			if (iParam5 == 1)
  			{
  				MISC::SET_BIT(&(Global_112922.f_2363[iParam1 /*164*/].f_160[iParam3]), bParam4);
  			}
  			if (iParam6 == 1)
  			{
  				MISC::CLEAR_BIT(&(Global_112922.f_2363[iParam1 /*164*/].f_160[iParam3]), bParam4);
  			}
  			return BitTest(Global_112922.f_2363[iParam1 /*164*/].f_160[iParam3], bParam4);
  		}
  	}
  	return 0;
  }
  
  int func_259(int iParam0)
  {
  	if (!BitTest(Global_77669[1 /*14*/].f_6, 0))
  	{
  		return 0;
  	}
  	if (iParam0 == 1)
  	{
  		if (!BitTest(Global_77669[1 /*14*/].f_6, 1))
  		{
  			return 0;
  		}
  		if (!BitTest(Global_77669[1 /*14*/].f_6, 2))
  		{
  			return 0;
  		}
  	}
  	return 1;
  }
  
  struct<14> func_260(int iParam0, int iParam1, int iParam2, int iParam3)
  {
  	func_323();
  	if (iParam0 == joaat("player_zero"))
  	{
  		func_305(iParam1, iParam2);
  	}
  	else if (iParam0 == joaat("player_one"))
  	{
  		func_286(iParam1, iParam2);
  	}
  	else if (iParam0 == joaat("player_two"))
  	{
  		func_261(iParam1, iParam2);
  	}
  	return Global_77669[0 /*14*/];
  }
  
  void func_261(int iParam0, int iParam1)
  {
  	switch (iParam0)
  	{
  		case 0:
  			func_285(iParam1);
  			break;
  		
  		case 2:
  			func_284(iParam1);
  			break;
  		
  		case 3:
  			func_281(iParam1);
  			break;
  		
  		case 4:
  			func_280(iParam1);
  			break;
  		
  		case 6:
  			func_279(iParam1);
  			break;
  		
  		case 5:
  			func_278(iParam1);
  			break;
  		
  		case 8:
  			func_277(iParam1);
  			break;
  		
  		case 9:
  			func_276(iParam1);
  			break;
  		
  		case 10:
  			func_275(iParam1);
  			break;
  		
  		case 1:
  			func_274(iParam1);
  			break;
  		
  		case 7:
  			func_273(iParam1);
  			break;
  		
  		case 11:
  			func_272(iParam1);
  			break;
  		
  		case 12:
  			func_271(iParam1);
  			break;
  		
  		case 13:
  			func_270(iParam1);
  			break;
  		
  		case 14:
  			func_262(iParam1);
  			break;
  	}
  }
  
  void func_262(int iParam0)
  {
  	bool bVar0;
  	int iVar1;
  	struct<2> Var2;
  	int iVar6;
  	int iVar7;
  	int iVar8;
  	int iVar9;
  	int iVar10;
  	
  	bVar0 = false;
  	iVar1 = 10;
  	iVar6 = 0;
  	iVar7 = 0;
  	iVar8 = -1;
  	iVar9 = 2;
  	iVar10 = 14;
  	Global_77669[0 /*14*/].f_5 = 2;
  	switch (iParam0)
  	{
  		case 0:
  			StringCopy(&Var2, "NO_LABEL", 16);
  			iVar6 = -1;
  			iVar7 = 0;
  			iVar1 = 0;
  			iVar8 = 0;
  			break;
  		
  		case 1:
  			StringCopy(&Var2, "NO_LABEL", 16);
  			iVar6 = -1;
  			iVar7 = 0;
  			iVar1 = 0;
  			iVar8 = 1;
  			break;
  		
  		case 2:
  			StringCopy(&Var2, "NO_LABEL", 16);
  			iVar6 = -1;
  			iVar7 = 0;
  			iVar1 = 0;
  			iVar8 = 2;
  			break;
  		
  		case 3:
  			StringCopy(&Var2, "NO_LABEL", 16);
  			iVar6 = -1;
  			iVar7 = 0;
  			iVar1 = 0;
  			iVar8 = 3;
  			break;
  		
  		case 4:
  			StringCopy(&Var2, "NO_LABEL", 16);
  			iVar6 = -1;
  			iVar7 = 0;
  			iVar1 = 0;
  			iVar8 = 4;
  			break;
  		
  		case 5:
  			StringCopy(&Var2, "NO_LABEL", 16);
  			iVar6 = -1;
  			iVar7 = 0;
  			iVar1 = 0;
  			iVar8 = 5;
  			break;
  		
  		case 6:
  			StringCopy(&Var2, "NO_LABEL", 16);
  			iVar6 = -1;
  			iVar7 = 0;
  			iVar1 = 0;
  			iVar8 = 6;
  			break;
  		
  		case 7:
  			StringCopy(&Var2, "NO_LABEL", 16);
  			iVar6 = -1;
  			iVar7 = 0;
  			iVar1 = 0;
  			iVar8 = 7;
  			break;
  		
  		case 8:
  			StringCopy(&Var2, "NO_LABEL", 16);
  			iVar6 = -1;
  			iVar7 = 0;
  			iVar1 = 0;
  			iVar8 = 8;
  			break;
  		
  		case 154:
  			StringCopy(&Var2, "NO_LABEL", 16);
  			iVar6 = 0;
  			iVar7 = 0;
  			bVar0 = true;
  			iVar8 = 2;
  			break;
  		
  		case 88:
  			StringCopy(&Var2, "NO_LABEL", 16);
  			iVar6 = 0;
  			iVar7 = 0;
  			bVar0 = true;
  			iVar8 = 10;
  			break;
  		
  		case 89:
  			StringCopy(&Var2, "PROPS_P2_E1", 16);
  			iVar6 = 1;
  			iVar7 = 0;
  			iVar1 = 45;
  			iVar8 = 10;
  			break;
  		
  		case 90:
  			StringCopy(&Var2, "PROPS_P2_E2", 16);
  			iVar6 = 2;
  			iVar7 = 0;
  			iVar8 = 10;
  			break;
  		
  		case 91:
  			StringCopy(&Var2, "PROPS_P2_E2_1", 16);
  			iVar6 = 2;
  			iVar7 = 1;
  			iVar1 = 50;
  			iVar8 = 10;
  			break;
  		
  		case 92:
  			StringCopy(&Var2, "PROPS_P2_E2_2", 16);
  			iVar6 = 2;
  			iVar7 = 2;
  			iVar1 = 55;
  			iVar8 = 10;
  			break;
  		
  		case 93:
  			StringCopy(&Var2, "PROPS_P2_E2_3", 16);
  			iVar6 = 2;
  			iVar7 = 3;
  			iVar1 = 52;
  			iVar8 = 10;
  			break;
  		
  		case 94:
  			StringCopy(&Var2, "PROPS_P2_E2_4", 16);
  			iVar6 = 2;
  			iVar7 = 4;
  			iVar1 = 54;
  			iVar8 = 10;
  			break;
  		
  		case 95:
  			StringCopy(&Var2, "PROPS_P2_E2_5", 16);
  			iVar6 = 2;
  			iVar7 = 5;
  			iVar1 = 54;
  			iVar8 = 10;
  			break;
  		
  		case 96:
  			StringCopy(&Var2, "PROPS_P2_E2_6", 16);
  			iVar6 = 2;
  			iVar7 = 6;
  			iVar1 = 55;
  			iVar8 = 10;
  			break;
  		
  		case 97:
  			StringCopy(&Var2, "PROPS_P2_E2_7", 16);
  			iVar6 = 2;
  			iVar7 = 7;
  			iVar1 = 55;
  			iVar8 = 10;
  			break;
  		
  		case 98:
  			StringCopy(&Var2, "PROPS_P2_E2_8", 16);
  			iVar6 = 2;
  			iVar7 = 8;
  			iVar1 = 58;
  			iVar8 = 10;
  			break;
  		
  		case 99:
  			StringCopy(&Var2, "PROPS_P2_E2_9", 16);
  			iVar6 = 2;
  			iVar7 = 9;
  			iVar1 = 58;
  			iVar8 = 10;
  			break;
  		
  		case 100:
  			StringCopy(&Var2, "PROPS_P2_E3", 16);
  			iVar6 = 3;
  			iVar7 = 0;
  			iVar1 = 75;
  			iVar8 = 10;
  			break;
  		
  		case 101:
  			StringCopy(&Var2, "PROPS_P2_E3_1", 16);
  			iVar6 = 3;
  			iVar7 = 1;
  			iVar1 = 75;
  			iVar8 = 10;
  			break;
  		
  		case 102:
  			StringCopy(&Var2, "PROPS_P2_E3_2", 16);
  			iVar6 = 3;
  			iVar7 = 2;
  			iVar1 = 75;
  			iVar8 = 10;
  			break;
  		
  		case 103:
  			StringCopy(&Var2, "PROPS_P2_E3_3", 16);
  			iVar6 = 3;
  			iVar7 = 3;
  			iVar1 = 75;
  			iVar8 = 10;
  			break;
  		
  		case 104:
  			StringCopy(&Var2, "PROPS_P2_E3_4", 16);
  			iVar6 = 3;
  			iVar7 = 4;
  			iVar1 = 75;
  			iVar8 = 10;
  			break;
  		
  		case 105:
  			StringCopy(&Var2, "PROPS_P2_E3_5", 16);
  			iVar6 = 3;
  			iVar7 = 5;
  			iVar1 = 75;
  			iVar8 = 10;
  			break;
  		
  		case 106:
  			StringCopy(&Var2, "PROPS_P2_E3_6", 16);
  			iVar6 = 3;
  			iVar7 = 6;
  			iVar1 = 75;
  			iVar8 = 10;
  			break;
  		
  		case 107:
  			StringCopy(&Var2, "PROPS_P2_E3_7", 16);
  			iVar6 = 3;
  			iVar7 = 7;
  			iVar1 = 75;
  			iVar8 = 10;
  			break;
  		
  		case 108:
  			StringCopy(&Var2, "PROPS_P2_E3_8", 16);
  			iVar6 = 3;
  			iVar7 = 8;
  			iVar1 = 75;
  			iVar8 = 10;
  			break;
  		
  		case 109:
  			StringCopy(&Var2, "PROPS_P2_E3_9", 16);
  			iVar6 = 3;
  			iVar7 = 9;
  			iVar1 = 75;
  			iVar8 = 10;
  			break;
  		
  		case 110:
  			StringCopy(&Var2, "NO_LABEL", 16);
  			iVar6 = 4;
  			iVar7 = 0;
  			iVar8 = 10;
  			break;
  		
  		case 111:
  			StringCopy(&Var2, "NO_LABEL", 16);
  			iVar6 = 5;
  			iVar7 = 0;
  			iVar8 = 10;
  			break;
  		
  		case 112:
  			StringCopy(&Var2, "NO_LABEL", 16);
  			iVar6 = 6;
  			iVar7 = 0;
  			iVar8 = 10;
  			break;
  		
  		case 113:
  			StringCopy(&Var2, "PROPS_P2_E7_0", 16);
  			iVar6 = 7;
  			iVar7 = 0;
  			iVar1 = 60;
  			iVar8 = 10;
  			break;
  		
  		case 114:
  			StringCopy(&Var2, "PROPS_P2_E7_1", 16);
  			iVar6 = 7;
  			iVar7 = 1;
  			iVar1 = 50;
  			iVar8 = 10;
  			break;
  		
  		case 115:
  			StringCopy(&Var2, "PROPS_P2_E7_2", 16);
  			iVar6 = 7;
  			iVar7 = 2;
  			iVar1 = 50;
  			iVar8 = 10;
  			break;
  		
  		case 116:
  			StringCopy(&Var2, "PROPS_P2_E7_3", 16);
  			iVar6 = 7;
  			iVar7 = 3;
  			iVar1 = 59;
  			iVar8 = 10;
  			break;
  		
  		case 117:
  			StringCopy(&Var2, "PROPS_P2_E7_4", 16);
  			iVar6 = 7;
  			iVar7 = 4;
  			iVar1 = 55;
  			iVar8 = 10;
  			break;
  		
  		case 118:
  			StringCopy(&Var2, "PROPS_P2_E7_5", 16);
  			iVar6 = 7;
  			iVar7 = 5;
  			iVar1 = 55;
  			iVar8 = 10;
  			break;
  		
  		case 119:
  			StringCopy(&Var2, "PROPS_P2_E7_6", 16);
  			iVar6 = 7;
  			iVar7 = 6;
  			iVar1 = 65;
  			iVar8 = 10;
  			break;
  		
  		case 120:
  			StringCopy(&Var2, "PROPS_P2_E7_7", 16);
  			iVar6 = 7;
  			iVar7 = 7;
  			iVar1 = 59;
  			iVar8 = 10;
  			break;
  		
  		case 121:
  			StringCopy(&Var2, "PROPS_P2_E7_8", 16);
  			iVar6 = 7;
  			iVar7 = 8;
  			iVar1 = 79;
  			iVar8 = 10;
  			break;
  		
  		case 122:
  			StringCopy(&Var2, "PROPS_P2_E7_9", 16);
  			iVar6 = 7;
  			iVar7 = 9;
  			iVar1 = 79;
  			iVar8 = 10;
  			break;
  		
  		case 123:
  			StringCopy(&Var2, "PROPS_P2_E8_0", 16);
  			iVar6 = 8;
  			iVar7 = 0;
  			iVar1 = 150;
  			iVar8 = 10;
  			break;
  		
  		case 124:
  			StringCopy(&Var2, "PROPS_P2_E8_1", 16);
  			iVar6 = 8;
  			iVar7 = 1;
  			iVar1 = 150;
  			iVar8 = 10;
  			break;
  		
  		case 125:
  			StringCopy(&Var2, "PROPS_P2_E8_2", 16);
  			iVar6 = 8;
  			iVar7 = 2;
  			iVar1 = 170;
  			iVar8 = 10;
  			break;
  		
  		case 126:
  			StringCopy(&Var2, "PROPS_P2_E8_3", 16);
  			iVar6 = 8;
  			iVar7 = 3;
  			iVar1 = 175;
  			iVar8 = 10;
  			break;
  		
  		case 127:
  			StringCopy(&Var2, "PROPS_P2_E8_4", 16);
  			iVar6 = 8;
  			iVar7 = 4;
  			iVar1 = 180;
  			iVar8 = 10;
  			break;
  		
  		case 128:
  			StringCopy(&Var2, "PROPS_P2_E8_5", 16);
  			iVar6 = 8;
  			iVar7 = 5;
  			iVar1 = 185;
  			iVar8 = 10;
  			break;
  		
  		case 129:
  			StringCopy(&Var2, "PROPS_P2_E8_6", 16);
  			iVar6 = 8;
  			iVar7 = 6;
  			iVar1 = 189;
  			iVar8 = 10;
  			break;
  		
  		case 130:
  			StringCopy(&Var2, "PROPS_P2_E8_7", 16);
  			iVar6 = 8;
  			iVar7 = 7;
  			iVar1 = 195;
  			iVar8 = 10;
  			break;
  		
  		case 131:
  			StringCopy(&Var2, "PROPS_P2_E8_8", 16);
  			iVar6 = 8;
  			iVar7 = 8;
  			iVar1 = 210;
  			iVar8 = 10;
  			break;
  		
  		case 132:
  			StringCopy(&Var2, "PROPS_P2_E8_9", 16);
  			iVar6 = 8;
  			iVar7 = 9;
  			iVar1 = 215;
  			iVar8 = 10;
  			break;
  		
  		case 133:
  			StringCopy(&Var2, "PROPS_P2_E9_0", 16);
  			iVar6 = 9;
  			iVar7 = 0;
  			iVar1 = 165;
  			iVar8 = 10;
  			break;
  		
  		case 134:
  			StringCopy(&Var2, "PROPS_P2_E9_1", 16);
  			iVar6 = 9;
  			iVar7 = 1;
  			iVar1 = 165;
  			iVar8 = 10;
  			break;
  		
  		case 135:
  			StringCopy(&Var2, "PROPS_P2_E9_2", 16);
  			iVar6 = 9;
  			iVar7 = 2;
  			iVar1 = 169;
  			iVar8 = 10;
  			break;
  		
  		case 136:
  			StringCopy(&Var2, "PROPS_P2_E9_3", 16);
  			iVar6 = 9;
  			iVar7 = 3;
  			iVar1 = 169;
  			iVar8 = 10;
  			break;
  		
  		case 137:
  			StringCopy(&Var2, "PROPS_P2_E9_4", 16);
  			iVar6 = 9;
  			iVar7 = 4;
  			iVar1 = 175;
  			iVar8 = 10;
  			break;
  		
  		case 138:
  			StringCopy(&Var2, "PROPS_P2_E9_5", 16);
  			iVar6 = 9;
  			iVar7 = 5;
  			iVar1 = 175;
  			iVar8 = 10;
  			break;
  		
  		case 139:
  			StringCopy(&Var2, "PROPS_P2_E9_6", 16);
  			iVar6 = 9;
  			iVar7 = 6;
  			iVar1 = 175;
  			iVar8 = 10;
  			break;
  		
  		case 140:
  			StringCopy(&Var2, "PROPS_P2_E9_7", 16);
  			iVar6 = 9;
  			iVar7 = 7;
  			iVar1 = 189;
  			iVar8 = 10;
  			break;
  		
  		case 141:
  			StringCopy(&Var2, "PROPS_P2_E9_8", 16);
  			iVar6 = 9;
  			iVar7 = 8;
  			iVar1 = 195;
  			iVar8 = 10;
  			break;
  		
  		case 142:
  			StringCopy(&Var2, "PROPS_P2_E9_9", 16);
  			iVar6 = 9;
  			iVar7 = 9;
  			iVar1 = 195;
  			iVar8 = 10;
  			break;
  		
  		case 143:
  			StringCopy(&Var2, "PROPS_P2_E10_0", 16);
  			iVar6 = 10;
  			iVar7 = 0;
  			iVar1 = 49;
  			iVar8 = 10;
  			break;
  		
  		case 144:
  			StringCopy(&Var2, "PROPS_P2_E10_1", 16);
  			iVar6 = 10;
  			iVar7 = 1;
  			iVar1 = 50;
  			iVar8 = 10;
  			break;
  		
  		case 145:
  			StringCopy(&Var2, "PROPS_P2_E10_2", 16);
  			iVar6 = 10;
  			iVar7 = 2;
  			iVar1 = 52;
  			iVar8 = 10;
  			break;
  		
  		case 146:
  			StringCopy(&Var2, "PROPS_P2_E10_3", 16);
  			iVar6 = 10;
  			iVar7 = 3;
  			iVar1 = 55;
  			iVar8 = 10;
  			break;
  		
  		case 147:
  			StringCopy(&Var2, "PROPS_P2_E10_4", 16);
  			iVar6 = 10;
  			iVar7 = 4;
  			iVar1 = 60;
  			iVar8 = 10;
  			break;
  		
  		case 148:
  			StringCopy(&Var2, "PROPS_P2_E10_5", 16);
  			iVar6 = 10;
  			iVar7 = 5;
  			iVar1 = 58;
  			iVar8 = 10;
  			break;
  		
  		case 149:
  			StringCopy(&Var2, "PROPS_P2_E10_6", 16);
  			iVar6 = 10;
  			iVar7 = 6;
  			iVar1 = 60;
  			iVar8 = 10;
  			break;
  		
  		case 150:
  			StringCopy(&Var2, "PROPS_P2_E10_7", 16);
  			iVar6 = 10;
  			iVar7 = 7;
  			iVar1 = 63;
  			iVar8 = 10;
  			break;
  		
  		case 151:
  			StringCopy(&Var2, "PROPS_P2_E10_8", 16);
  			iVar6 = 10;
  			iVar7 = 8;
  			iVar1 = 65;
  			iVar8 = 10;
  			break;
  		
  		case 152:
  			StringCopy(&Var2, "PROPS_P2_E10_9", 16);
  			iVar6 = 10;
  			iVar7 = 9;
  			iVar1 = 68;
  			iVar8 = 10;
  			break;
  		
  		case 153:
  			StringCopy(&Var2, "NO_LABEL", 16);
  			iVar6 = 11;
  			iVar7 = 0;
  			iVar1 = 100;
  			iVar8 = 10;
  			break;
  		
  		case 10:
  			StringCopy(&Var2, "NO_LABEL", 16);
  			iVar6 = 0;
  			iVar7 = 0;
  			bVar0 = true;
  			iVar8 = 0;
  			break;
  		
  		case 11:
  			StringCopy(&Var2, "NO_LABEL", 16);
  			iVar6 = 1;
  			iVar7 = 0;
  			bVar0 = true;
  			iVar8 = 0;
  			break;
  		
  		case 12:
  			StringCopy(&Var2, "PROPS_P2_H2_0", 16);
  			iVar6 = 2;
  			iVar7 = 0;
  			iVar1 = 320;
  			iVar8 = 0;
  			break;
  		
  		case 13:
  			StringCopy(&Var2, "NO_LABEL", 16);
  			iVar6 = 3;
  			iVar7 = 0;
  			bVar0 = true;
  			iVar8 = 0;
  			break;
  		
  		case 14:
  			StringCopy(&Var2, "NO_LABEL", 16);
  			iVar6 = 4;
  			iVar7 = 0;
  			bVar0 = true;
  			iVar8 = 0;
  			break;
  		
  		case 15:
  			StringCopy(&Var2, "NO_LABEL", 16);
  			iVar6 = 5;
  			iVar7 = 0;
  			bVar0 = true;
  			iVar8 = 0;
  			break;
  		
  		case 16:
  			StringCopy(&Var2, "NO_LABEL", 16);
  			iVar6 = 6;
  			iVar7 = 0;
  			bVar0 = true;
  			iVar8 = 0;
  			break;
  		
  		case 17:
  			StringCopy(&Var2, "PROPS_P2_H7_0", 16);
  			iVar6 = 7;
  			iVar7 = 0;
  			iVar8 = 0;
  			break;
  		
  		case 18:
  			StringCopy(&Var2, "PROPS_P2_H7_1", 16);
  			iVar6 = 7;
  			iVar7 = 1;
  			iVar8 = 0;
  			break;
  		
  		case 19:
  			StringCopy(&Var2, "NO_LABEL", 16);
  			iVar6 = 8;
  			iVar7 = 0;
  			bVar0 = true;
  			iVar8 = 0;
  			break;
  		
  		case 20:
  			StringCopy(&Var2, "NO_LABEL", 16);
  			iVar6 = 9;
  			iVar7 = 0;
  			iVar8 = 0;
  			break;
  		
  		case 21:
  			StringCopy(&Var2, "NO_LABEL", 16);
  			iVar6 = 9;
  			iVar7 = 1;
  			iVar8 = 0;
  			break;
  		
  		case 22:
  			StringCopy(&Var2, "NO_LABEL", 16);
  			iVar6 = 9;
  			iVar7 = 2;
  			iVar8 = 0;
  			break;
  		
  		case 23:
  			StringCopy(&Var2, "NO_LABEL", 16);
  			iVar6 = 9;
  			iVar7 = 3;
  			iVar8 = 0;
  			break;
  		
  		case 24:
  			StringCopy(&Var2, "NO_LABEL", 16);
  			iVar6 = 9;
  			iVar7 = 4;
  			iVar8 = 0;
  			break;
  		
  		case 25:
  			StringCopy(&Var2, "NO_LABEL", 16);
  			iVar6 = 9;
  			iVar7 = 5;
  			iVar8 = 0;
  			break;
  		
  		case 26:
  			StringCopy(&Var2, "NO_LABEL", 16);
  			iVar6 = 9;
  			iVar7 = 6;
  			iVar8 = 0;
  			break;
  		
  		case 27:
  			StringCopy(&Var2, "NO_LABEL", 16);
  			iVar6 = 9;
  			iVar7 = 7;
  			iVar8 = 0;
  			break;
  		
  		case 28:
  			StringCopy(&Var2, "NO_LABEL", 16);
  			iVar6 = 9;
  			iVar7 = 8;
  			iVar8 = 0;
  			break;
  		
  		case 29:
  			StringCopy(&Var2, "NO_LABEL", 16);
  			iVar6 = 9;
  			iVar7 = 9;
  			iVar8 = 0;
  			break;
  		
  		case 30:
  			StringCopy(&Var2, "NO_LABEL", 16);
  			iVar6 = 9;
  			iVar7 = 10;
  			iVar8 = 0;
  			break;
  		
  		case 31:
  			StringCopy(&Var2, "NO_LABEL", 16);
  			iVar6 = 9;
  			iVar7 = 11;
  			iVar8 = 0;
  			break;
  		
  		case 32:
  			StringCopy(&Var2, "NO_LABEL", 16);
  			iVar6 = 9;
  			iVar7 = 12;
  			iVar8 = 0;
  			break;
  		
  		case 33:
  			StringCopy(&Var2, "NO_LABEL", 16);
  			iVar6 = 9;
  			iVar7 = 13;
  			iVar8 = 0;
  			break;
  		
  		case 34:
  			StringCopy(&Var2, "NO_LABEL", 16);
  			iVar6 = 9;
  			iVar7 = 14;
  			iVar8 = 0;
  			break;
  		
  		case 35:
  			StringCopy(&Var2, "NO_LABEL", 16);
  			iVar6 = 9;
  			iVar7 = 15;
  			iVar8 = 0;
  			break;
  		
  		case 36:
  			StringCopy(&Var2, "NO_LABEL", 16);
  			iVar6 = 10;
  			iVar7 = 0;
  			bVar0 = true;
  			iVar8 = 0;
  			break;
  		
  		case 37:
  			StringCopy(&Var2, "NO_LABEL", 16);
  			iVar6 = 11;
  			iVar7 = 0;
  			iVar8 = 0;
  			break;
  		
  		case 38:
  			StringCopy(&Var2, "NO_LABEL", 16);
  			iVar6 = 11;
  			iVar7 = 1;
  			iVar8 = 0;
  			break;
  		
  		case 39:
  			StringCopy(&Var2, "NO_LABEL", 16);
  			iVar6 = 11;
  			iVar7 = 2;
  			iVar8 = 0;
  			break;
  		
  		case 40:
  			StringCopy(&Var2, "NO_LABEL", 16);
  			iVar6 = 11;
  			iVar7 = 3;
  			iVar8 = 0;
  			break;
  		
  		case 41:
  			StringCopy(&Var2, "NO_LABEL", 16);
  			iVar6 = 11;
  			iVar7 = 4;
  			iVar8 = 0;
  			break;
  		
  		case 42:
  			StringCopy(&Var2, "NO_LABEL", 16);
  			iVar6 = 11;
  			iVar7 = 5;
  			iVar8 = 0;
  			break;
  		
  		case 43:
  			StringCopy(&Var2, "NO_LABEL", 16);
  			iVar6 = 11;
  			iVar7 = 6;
  			iVar8 = 0;
  			break;
  		
  		case 44:
  			StringCopy(&Var2, "NO_LABEL", 16);
  			iVar6 = 11;
  			iVar7 = 7;
  			iVar8 = 0;
  			break;
  		
  		case 45:
  			StringCopy(&Var2, "NO_LABEL", 16);
  			iVar6 = 12;
  			iVar7 = 0;
  			iVar8 = 0;
  			break;
  		
  		case 46:
  			StringCopy(&Var2, "NO_LABEL", 16);
  			iVar6 = 13;
  			iVar7 = 0;
  			iVar8 = 0;
  			break;
  		
  		case 47:
  			StringCopy(&Var2, "PROPS_P1_H8_0", 16);
  			iVar6 = 14;
  			iVar7 = 0;
  			iVar1 = 270;
  			iVar8 = 0;
  			break;
  		
  		case 48:
  			StringCopy(&Var2, "PROPS_P1_H8_1", 16);
  			iVar6 = 14;
  			iVar7 = 1;
  			iVar1 = 270;
  			iVar8 = 0;
  			break;
  		
  		case 49:
  			StringCopy(&Var2, "PROPS_P1_H9_0", 16);
  			iVar6 = 15;
  			iVar7 = 0;
  			iVar1 = 200;
  			iVar8 = 0;
  			break;
  		
  		case 50:
  			StringCopy(&Var2, "PROPS_P1_H9_1", 16);
  			iVar6 = 15;
  			iVar7 = 1;
  			iVar1 = 200;
  			iVar8 = 0;
  			break;
  		
  		case 51:
  			StringCopy(&Var2, "PROPS_P1_H10_0", 16);
  			iVar6 = 16;
  			iVar7 = 0;
  			iVar1 = 350;
  			iVar8 = 0;
  			break;
  		
  		case 52:
  			StringCopy(&Var2, "PROPS_P1_H10_1", 16);
  			iVar6 = 16;
  			iVar7 = 1;
  			iVar1 = 350;
  			iVar8 = 0;
  			break;
  		
  		case 53:
  			StringCopy(&Var2, "PROPS_P1_H11_0", 16);
  			iVar6 = 17;
  			iVar7 = 0;
  			iVar1 = 450;
  			iVar8 = 0;
  			break;
  		
  		case 54:
  			StringCopy(&Var2, "PROPS_P1_H12_0", 16);
  			iVar6 = 18;
  			iVar7 = 0;
  			iVar1 = 500;
  			iVar8 = 0;
  			break;
  		
  		case 55:
  			StringCopy(&Var2, "PROPS_P1_H12_1", 16);
  			iVar6 = 18;
  			iVar7 = 1;
  			iVar1 = 500;
  			iVar8 = 0;
  			break;
  		
  		case 56:
  			StringCopy(&Var2, "PROPS_P1_H13_0", 16);
  			iVar6 = 19;
  			iVar7 = 0;
  			iVar1 = 50;
  			iVar8 = 0;
  			break;
  		
  		case 57:
  			StringCopy(&Var2, "PROPS_P1_H13_1", 16);
  			iVar6 = 19;
  			iVar7 = 1;
  			iVar1 = 50;
  			iVar8 = 0;
  			break;
  		
  		case 58:
  			StringCopy(&Var2, "PROPS_P1_H14_0", 16);
  			iVar6 = 20;
  			iVar7 = 0;
  			iVar1 = 99;
  			iVar8 = 0;
  			break;
  		
  		case 59:
  			StringCopy(&Var2, "PROPS_P1_H14_1", 16);
  			iVar6 = 20;
  			iVar7 = 1;
  			iVar1 = 99;
  			iVar8 = 0;
  			break;
  		
  		case 60:
  			StringCopy(&Var2, "PROPS_P1_H14_2", 16);
  			iVar6 = 20;
  			iVar7 = 2;
  			iVar1 = 99;
  			iVar8 = 0;
  			break;
  		
  		case 61:
  			StringCopy(&Var2, "NO_LABEL", 16);
  			iVar6 = 21;
  			iVar7 = 0;
  			iVar8 = 0;
  			break;
  		
  		case 62:
  			StringCopy(&Var2, "NO_LABEL", 16);
  			iVar6 = 22;
  			iVar7 = 0;
  			iVar8 = 0;
  			break;
  		
  		case 63:
  			StringCopy(&Var2, "NO_LABEL", 16);
  			iVar6 = 23;
  			iVar7 = 0;
  			iVar8 = 0;
  			break;
  		
  		case 64:
  			StringCopy(&Var2, "NO_LABEL", 16);
  			iVar6 = 23;
  			iVar7 = 1;
  			iVar8 = 0;
  			break;
  		
  		case 65:
  			StringCopy(&Var2, "NO_LABEL", 16);
  			iVar6 = 23;
  			iVar7 = 2;
  			iVar8 = 0;
  			break;
  		
  		case 66:
  			StringCopy(&Var2, "NO_LABEL", 16);
  			iVar6 = 23;
  			iVar7 = 3;
  			iVar8 = 0;
  			break;
  		
  		case 67:
  			StringCopy(&Var2, "NO_LABEL", 16);
  			iVar6 = 23;
  			iVar7 = 4;
  			iVar8 = 0;
  			break;
  		
  		case 68:
  			StringCopy(&Var2, "NO_LABEL", 16);
  			iVar6 = 23;
  			iVar7 = 5;
  			iVar8 = 0;
  			break;
  		
  		case 69:
  			StringCopy(&Var2, "NO_LABEL", 16);
  			iVar6 = 24;
  			iVar7 = 0;
  			iVar8 = 0;
  			break;
  		
  		case 70:
  			StringCopy(&Var2, "NO_LABEL", 16);
  			iVar6 = 25;
  			iVar7 = 0;
  			iVar8 = 0;
  			break;
  		
  		case 71:
  			StringCopy(&Var2, "PROPS_P1_H26_0", 16);
  			iVar6 = 26;
  			iVar7 = 0;
  			iVar1 = 20;
  			iVar8 = 0;
  			break;
  		
  		case 72:
  			StringCopy(&Var2, "PROPS_P1_H26_1", 16);
  			iVar6 = 26;
  			iVar7 = 1;
  			iVar1 = 25;
  			iVar8 = 0;
  			break;
  		
  		case 73:
  			StringCopy(&Var2, "PROPS_P1_H26_2", 16);
  			iVar6 = 26;
  			iVar7 = 2;
  			iVar1 = 25;
  			iVar8 = 0;
  			break;
  		
  		case 74:
  			StringCopy(&Var2, "PROPS_P1_H26_3", 16);
  			iVar6 = 26;
  			iVar7 = 3;
  			iVar1 = 22;
  			iVar8 = 0;
  			break;
  		
  		case 75:
  			StringCopy(&Var2, "PROPS_P1_H26_4", 16);
  			iVar6 = 26;
  			iVar7 = 4;
  			iVar1 = 20;
  			iVar8 = 0;
  			break;
  		
  		case 76:
  			StringCopy(&Var2, "PROPS_P1_H26_5", 16);
  			iVar6 = 26;
  			iVar7 = 5;
  			iVar1 = 25;
  			iVar8 = 0;
  			break;
  		
  		case 77:
  			StringCopy(&Var2, "PROPS_P1_H26_6", 16);
  			iVar6 = 26;
  			iVar7 = 6;
  			iVar1 = 28;
  			iVar8 = 0;
  			break;
  		
  		case 78:
  			StringCopy(&Var2, "PROPS_P1_H26_7", 16);
  			iVar6 = 26;
  			iVar7 = 7;
  			iVar1 = 24;
  			iVar8 = 0;
  			break;
  		
  		case joaat("mpsv_lp0_31"):
  			StringCopy(&Var2, "PROPS_P1_H26_8", 16);
  			iVar6 = 26;
  			iVar7 = 8;
  			iVar1 = 25;
  			iVar8 = 0;
  			break;
  		
  		case 80:
  			StringCopy(&Var2, "PROPS_P1_H26_9", 16);
  			iVar6 = 26;
  			iVar7 = 9;
  			iVar1 = 22;
  			iVar8 = 0;
  			break;
  		
  		case 81:
  			StringCopy(&Var2, "PROPS_P1_H26_10", 16);
  			iVar6 = 26;
  			iVar7 = 10;
  			iVar1 = 18;
  			iVar8 = 0;
  			break;
  		
  		case 82:
  			StringCopy(&Var2, "PROPS_P1_H26_11", 16);
  			iVar6 = 26;
  			iVar7 = 11;
  			iVar1 = 20;
  			iVar8 = 0;
  			break;
  		
  		case 83:
  			StringCopy(&Var2, "PROPS_P1_H26_12", 16);
  			iVar6 = 26;
  			iVar7 = 12;
  			iVar1 = 24;
  			iVar8 = 0;
  			break;
  		
  		case 84:
  			StringCopy(&Var2, "PROPS_P1_H26_13", 16);
  			iVar6 = 26;
  			iVar7 = 13;
  			iVar1 = 22;
  			iVar8 = 0;
  			break;
  		
  		case 85:
  			StringCopy(&Var2, "PROPS_P1_H26_14", 16);
  			iVar6 = 26;
  			iVar7 = 14;
  			iVar1 = 25;
  			iVar8 = 0;
  			break;
  		
  		case 86:
  			StringCopy(&Var2, "PROPS_P1_H26_15", 16);
  			iVar6 = 26;
  			iVar7 = 15;
  			iVar1 = 25;
  			iVar8 = 0;
  			break;
  		
  		case 87:
  			StringCopy(&Var2, "NO_LABEL", 16);
  			iVar6 = 27;
  			iVar7 = 0;
  			iVar8 = 0;
  			break;
  		
  		default:
  			func_269(iVar10, iParam0, 155, -1);
  			return;
  			break;
  	}
  	func_263(&(Global_77669[0 /*14*/]), iVar10, iParam0, &Var2, iVar6, iVar7, iVar1, bVar0, iVar8, iVar9, 0);
  }
  
  void func_263(var uParam0, int iParam1, int iParam2, char* sParam3, int iParam4, int iParam5, int iParam6, bool bParam7, int iParam8, int iParam9, bool bParam10)
  {
  	var uVar0;
  	int iVar1;
  	
  	uParam0->f_6 = 0;
  	*uParam0 = iParam9;
  	uParam0->f_1 = (iParam2 % 32);
  	uParam0->f_2 = (iParam2 / 32);
  	uParam0->f_3 = iParam4;
  	uParam0->f_4 = iParam5;
  	uParam0->f_7 = iParam6;
  	StringCopy(&(uParam0->f_8), sParam3, 16);
  	uParam0->f_13 = iParam8;
  	uParam0->f_12 = func_268(iParam8);
  	if ((uParam0->f_2 >= 10 && uParam0->f_5 >= 0) && uParam0->f_5 < 3)
  	{
  		if (!bParam10)
  		{
  		}
  		uParam0->f_2 = 0;
  	}
  	if (MISC::GET_HASH_KEY(sParam3) != MISC::GET_HASH_KEY("NO_LABEL"))
  	{
  	}
  	if (bParam7)
  	{
  		MISC::SET_BIT(&(uParam0->f_6), 3);
  	}
  	if (bParam10)
  	{
  		MISC::SET_BIT(&(uParam0->f_6), false);
  		if (uParam0->f_5 >= 0 && uParam0->f_5 < 3)
  		{
  			MISC::SET_BIT(&(uParam0->f_6), 5);
  		}
  		MISC::SET_BIT(&(uParam0->f_6), true);
  		MISC::SET_BIT(&(uParam0->f_6), 2);
  		MISC::SET_BIT(&(uParam0->f_6), 6);
  		if (func_156(14))
  		{
  			return;
  		}
  		if (iParam1 == 1)
  		{
  			if (FILES::DOES_SHOP_PED_APPAREL_HAVE_RESTRICTION_TAG(Global_2883588, joaat("REBREATHER"), 0))
  			{
  				MISC::SET_BIT(&(uParam0->f_6), 7);
  			}
  		}
  		if (iParam1 == 12)
  		{
  			if (!func_267(Global_2883588, 1, 1, 1, -1))
  			{
  				MISC::CLEAR_BIT(&(uParam0->f_6), 2);
  			}
  			if (!func_267(Global_2883588, 2, 1, 1, -1))
  			{
  				MISC::SET_BIT(&(uParam0->f_6), 4);
  			}
  		}
  		else if (iParam1 == 13)
  		{
  		}
  		else if (iParam1 == 14)
  		{
  			if (!func_267(Global_2883588, 1, 1, 1, -1))
  			{
  				MISC::CLEAR_BIT(&(uParam0->f_6), 2);
  			}
  			if (!func_267(Global_2883588, 2, 1, 1, -1))
  			{
  				MISC::SET_BIT(&(uParam0->f_6), 4);
  			}
  		}
  		else
  		{
  			if (!func_267(Global_2883588, 1, 1, 1, -1))
  			{
  				MISC::CLEAR_BIT(&(uParam0->f_6), 2);
  			}
  			if (!func_267(Global_2883588, 2, 1, 1, -1))
  			{
  				MISC::SET_BIT(&(uParam0->f_6), 4);
  			}
  		}
  		if (FILES::IS_CONTENT_ITEM_LOCKED(Global_2883589))
  		{
  			MISC::CLEAR_BIT(&(uParam0->f_6), true);
  			MISC::CLEAR_BIT(&(uParam0->f_6), false);
  		}
  	}
  	else if (uParam0->f_5 >= 0 && uParam0->f_5 < 3)
  	{
  		MISC::SET_BIT(&(uParam0->f_6), false);
  		MISC::SET_BIT(&(uParam0->f_6), 5);
  		if (func_258(iParam1, uParam0->f_5, uParam0->f_2, 0, uParam0->f_1, 0, 0))
  		{
  			MISC::SET_BIT(&(uParam0->f_6), true);
  		}
  		if (func_258(iParam1, uParam0->f_5, uParam0->f_2, 1, uParam0->f_1, 0, 0))
  		{
  			MISC::SET_BIT(&(uParam0->f_6), 2);
  		}
  		if (!func_258(iParam1, uParam0->f_5, uParam0->f_2, 2, uParam0->f_1, 0, 0))
  		{
  			MISC::SET_BIT(&(uParam0->f_6), 4);
  		}
  	}
  	else
  	{
  		MISC::SET_BIT(&(uParam0->f_6), false);
  		if ((((((((((iParam1 == 11 || iParam1 == 4) || iParam1 == 6) || iParam1 == 1) || iParam1 == 14) || iParam1 == 2) || iParam1 == 8) || iParam1 == 9) || iParam1 == 10) || iParam1 == 7) || iParam1 == 12)
  		{
  			if (func_156(14))
  			{
  				return;
  			}
  			uVar0 = func_140(func_266(iParam1, uParam0->f_2), Global_77666, 0);
  			if (BitTest(uVar0, uParam0->f_1))
  			{
  				MISC::SET_BIT(&(uParam0->f_6), true);
  			}
  			uVar0 = func_140(func_265(iParam1, uParam0->f_2), Global_77666, 0);
  			if (BitTest(uVar0, uParam0->f_1))
  			{
  				MISC::SET_BIT(&(uParam0->f_6), 2);
  			}
  			if (func_264(iParam1, uParam0->f_2, &iVar1))
  			{
  				uVar0 = func_140(iVar1, Global_77666, 0);
  				if (!BitTest(uVar0, uParam0->f_1))
  				{
  					MISC::SET_BIT(&(uParam0->f_6), 4);
  				}
  			}
  		}
  		else
  		{
  			MISC::SET_BIT(&(uParam0->f_6), true);
  			MISC::SET_BIT(&(uParam0->f_6), 2);
  		}
  	}
  	if (iParam1 == 14)
  	{
  		if (iParam4 == -1)
  		{
  			MISC::SET_BIT(&(uParam0->f_6), true);
  			MISC::SET_BIT(&(uParam0->f_6), 2);
  		}
  	}
  }
  
  bool func_264(int iParam0, int iParam1, var uParam2)
  {
  	*uParam2 = 979;
  	switch (iParam1)
  	{
  		case 0:
  			switch (iParam0)
  			{
  				case 2:
  					*uParam2 = 980;
  					break;
  				
  				case 3:
  					*uParam2 = 1430;
  					break;
  				
  				case 4:
  					*uParam2 = 996;
  					break;
  				
  				case 6:
  					*uParam2 = 1004;
  					break;
  				
  				case 8:
  					*uParam2 = 1431;
  					break;
  				
  				case 9:
  					*uParam2 = 1439;
  					break;
  				
  				case 10:
  					*uParam2 = 1441;
  					break;
  				
  				case 1:
  					*uParam2 = 1012;
  					break;
  				
  				case 7:
  					*uParam2 = 1442;
  					break;
  				
  				case 11:
  					*uParam2 = 988;
  					break;
  				
  				case 14:
  					*uParam2 = 1020;
  					break;
  				
  				case 12:
  					*uParam2 = 1031;
  					break;
  			}
  			break;
  		
  		case 1:
  			switch (iParam0)
  			{
  				case 2:
  					*uParam2 = 981;
  					break;
  				
  				case 4:
  					*uParam2 = 997;
  					break;
  				
  				case 6:
  					*uParam2 = 1005;
  					break;
  				
  				case 8:
  					*uParam2 = 1432;
  					break;
  				
  				case 9:
  					*uParam2 = 1440;
  					break;
  				
  				case 7:
  					*uParam2 = 1443;
  					break;
  				
  				case 11:
  					*uParam2 = 989;
  					break;
  				
  				case 14:
  					*uParam2 = 1021;
  					break;
  			}
  			break;
  		
  		case 2:
  			switch (iParam0)
  			{
  				case 2:
  					*uParam2 = 982;
  					break;
  				
  				case 4:
  					*uParam2 = 998;
  					break;
  				
  				case 6:
  					*uParam2 = 1006;
  					break;
  				
  				case 8:
  					*uParam2 = 1433;
  					break;
  				
  				case 7:
  					*uParam2 = 1444;
  					break;
  				
  				case 11:
  					*uParam2 = 990;
  					break;
  				
  				case 14:
  					*uParam2 = 1022;
  					break;
  			}
  			break;
  		
  		case 3:
  			switch (iParam0)
  			{
  				case 4:
  					*uParam2 = 999;
  					break;
  				
  				case 6:
  					*uParam2 = 1007;
  					break;
  				
  				case 8:
  					*uParam2 = 1434;
  					break;
  				
  				case 11:
  					*uParam2 = 991;
  					break;
  				
  				case 14:
  					*uParam2 = 1023;
  					break;
  			}
  			break;
  		
  		case 4:
  			switch (iParam0)
  			{
  				case 4:
  					*uParam2 = 1000;
  					break;
  				
  				case 6:
  					*uParam2 = 1008;
  					break;
  				
  				case 8:
  					*uParam2 = 1435;
  					break;
  				
  				case 11:
  					*uParam2 = 992;
  					break;
  				
  				case 14:
  					*uParam2 = 1024;
  					break;
  			}
  			break;
  		
  		case 5:
  			switch (iParam0)
  			{
  				case 4:
  					*uParam2 = 1001;
  					break;
  				
  				case 6:
  					*uParam2 = 1009;
  					break;
  				
  				case 8:
  					*uParam2 = 1436;
  					break;
  				
  				case 11:
  					*uParam2 = 993;
  					break;
  				
  				case 14:
  					*uParam2 = 1025;
  					break;
  			}
  			break;
  		
  		case 6:
  			switch (iParam0)
  			{
  				case 4:
  					*uParam2 = 1002;
  					break;
  				
  				case 6:
  					*uParam2 = 1010;
  					break;
  				
  				case 8:
  					*uParam2 = 1437;
  					break;
  				
  				case 11:
  					*uParam2 = 994;
  					break;
  				
  				case 14:
  					*uParam2 = 1026;
  					break;
  			}
  			break;
  		
  		case 7:
  			switch (iParam0)
  			{
  				case 4:
  					*uParam2 = 1003;
  					break;
  				
  				case 6:
  					*uParam2 = 1011;
  					break;
  				
  				case 8:
  					*uParam2 = 1438;
  					break;
  				
  				case 11:
  					*uParam2 = 995;
  					break;
  				
  				case 14:
  					*uParam2 = 1027;
  					break;
  			}
  			break;
  		
  		case 8:
  			switch (iParam0)
  			{
  				case 14:
  					*uParam2 = 1028;
  					break;
  			}
  			break;
  		
  		case 9:
  			switch (iParam0)
  			{
  				case 14:
  					*uParam2 = 1029;
  					break;
  			}
  			break;
  		
  		case 10:
  			switch (iParam0)
  			{
  				case 14:
  					*uParam2 = 1030;
  					break;
  			}
  			break;
  	}
  	return *uParam2 != 979;
  }
  
  int func_265(int iParam0, int iParam1)
  {
  	switch (iParam1)
  	{
  		case 0:
  			switch (iParam0)
  			{
  				case 2:
  					return 928;
  					break;
  				
  				case 3:
  					return 1415;
  					break;
  				
  				case 4:
  					return 944;
  					break;
  				
  				case 6:
  					return 952;
  					break;
  				
  				case 8:
  					return 1416;
  					break;
  				
  				case 9:
  					return 1424;
  					break;
  				
  				case 10:
  					return 1426;
  					break;
  				
  				case 1:
  					return 960;
  					break;
  				
  				case 7:
  					return 1427;
  					break;
  				
  				case 11:
  					return 936;
  					break;
  				
  				case 14:
  					return 968;
  					break;
  				
  				case 12:
  					return 979;
  					break;
  			}
  			break;
  		
  		case 1:
  			switch (iParam0)
  			{
  				case 2:
  					return 929;
  					break;
  				
  				case 4:
  					return 945;
  					break;
  				
  				case 6:
  					return 953;
  					break;
  				
  				case 8:
  					return 1417;
  					break;
  				
  				case 9:
  					return 1425;
  					break;
  				
  				case 7:
  					return 1428;
  					break;
  				
  				case 11:
  					return 937;
  					break;
  				
  				case 14:
  					return 969;
  					break;
  			}
  			break;
  		
  		case 2:
  			switch (iParam0)
  			{
  				case 2:
  					return 930;
  					break;
  				
  				case 4:
  					return 946;
  					break;
  				
  				case 6:
  					return 954;
  					break;
  				
  				case 8:
  					return 1418;
  					break;
  				
  				case 7:
  					return 1429;
  					break;
  				
  				case 11:
  					return 938;
  					break;
  				
  				case 14:
  					return 970;
  					break;
  			}
  			break;
  		
  		case 3:
  			switch (iParam0)
  			{
  				case 4:
  					return 947;
  					break;
  				
  				case 6:
  					return 955;
  					break;
  				
  				case 8:
  					return 1419;
  					break;
  				
  				case 11:
  					return 939;
  					break;
  				
  				case 14:
  					return 971;
  					break;
  			}
  			break;
  		
  		case 4:
  			switch (iParam0)
  			{
  				case 4:
  					return 948;
  					break;
  				
  				case 6:
  					return 956;
  					break;
  				
  				case 8:
  					return 1420;
  					break;
  				
  				case 11:
  					return 940;
  					break;
  				
  				case 14:
  					return 972;
  					break;
  			}
  			break;
  		
  		case 5:
  			switch (iParam0)
  			{
  				case 4:
  					return 949;
  					break;
  				
  				case 6:
  					return 957;
  					break;
  				
  				case 8:
  					return 1421;
  					break;
  				
  				case 11:
  					return 941;
  					break;
  				
  				case 14:
  					return 973;
  					break;
  			}
  			break;
  		
  		case 6:
  			switch (iParam0)
  			{
  				case 4:
  					return 950;
  					break;
  				
  				case 6:
  					return 958;
  					break;
  				
  				case 8:
  					return 1422;
  					break;
  				
  				case 11:
  					return 942;
  					break;
  				
  				case 14:
  					return 974;
  					break;
  			}
  			break;
  		
  		case 7:
  			switch (iParam0)
  			{
  				case 4:
  					return 951;
  					break;
  				
  				case 6:
  					return 959;
  					break;
  				
  				case 8:
  					return 1423;
  					break;
  				
  				case 11:
  					return 943;
  					break;
  				
  				case 14:
  					return 975;
  					break;
  			}
  			break;
  		
  		case 8:
  			switch (iParam0)
  			{
  				case 14:
  					return 976;
  					break;
  			}
  			break;
  		
  		case 9:
  			switch (iParam0)
  			{
  				case 14:
  					return 977;
  					break;
  			}
  			break;
  		
  		case 10:
  			switch (iParam0)
  			{
  				case 14:
  					return 978;
  					break;
  			}
  			break;
  	}
  	return 936;
  }
  
  int func_266(int iParam0, int iParam1)
  {
  	switch (iParam1)
  	{
  		case 0:
  			switch (iParam0)
  			{
  				case 2:
  					return 876;
  					break;
  				
  				case 3:
  					return 1400;
  					break;
  				
  				case 4:
  					return 892;
  					break;
  				
  				case 6:
  					return 900;
  					break;
  				
  				case 8:
  					return 1401;
  					break;
  				
  				case 9:
  					return 1409;
  					break;
  				
  				case 10:
  					return 1411;
  					break;
  				
  				case 1:
  					return 908;
  					break;
  				
  				case 7:
  					return 1412;
  					break;
  				
  				case 11:
  					return 884;
  					break;
  				
  				case 14:
  					return 916;
  					break;
  				
  				case 12:
  					return 927;
  					break;
  			}
  			break;
  		
  		case 1:
  			switch (iParam0)
  			{
  				case 2:
  					return 877;
  					break;
  				
  				case 4:
  					return 893;
  					break;
  				
  				case 6:
  					return 901;
  					break;
  				
  				case 8:
  					return 1402;
  					break;
  				
  				case 9:
  					return 1410;
  					break;
  				
  				case 7:
  					return 1413;
  					break;
  				
  				case 11:
  					return 885;
  					break;
  				
  				case 14:
  					return 917;
  					break;
  			}
  			break;
  		
  		case 2:
  			switch (iParam0)
  			{
  				case 2:
  					return 878;
  					break;
  				
  				case 4:
  					return 894;
  					break;
  				
  				case 6:
  					return 902;
  					break;
  				
  				case 8:
  					return 1403;
  					break;
  				
  				case 7:
  					return 1414;
  					break;
  				
  				case 11:
  					return 886;
  					break;
  				
  				case 14:
  					return 918;
  					break;
  			}
  			break;
  		
  		case 3:
  			switch (iParam0)
  			{
  				case 4:
  					return 895;
  					break;
  				
  				case 6:
  					return 903;
  					break;
  				
  				case 8:
  					return 1404;
  					break;
  				
  				case 11:
  					return 887;
  					break;
  				
  				case 14:
  					return 919;
  					break;
  			}
  			break;
  		
  		case 4:
  			switch (iParam0)
  			{
  				case 4:
  					return 896;
  					break;
  				
  				case 6:
  					return 904;
  					break;
  				
  				case 8:
  					return 1405;
  					break;
  				
  				case 11:
  					return 888;
  					break;
  				
  				case 14:
  					return 920;
  					break;
  			}
  			break;
  		
  		case 5:
  			switch (iParam0)
  			{
  				case 4:
  					return 897;
  					break;
  				
  				case 6:
  					return 905;
  					break;
  				
  				case 8:
  					return 1406;
  					break;
  				
  				case 11:
  					return 889;
  					break;
  				
  				case 14:
  					return 921;
  					break;
  			}
  			break;
  		
  		case 6:
  			switch (iParam0)
  			{
  				case 4:
  					return 898;
  					break;
  				
  				case 6:
  					return 906;
  					break;
  				
  				case 8:
  					return 1407;
  					break;
  				
  				case 11:
  					return 890;
  					break;
  				
  				case 14:
  					return 922;
  					break;
  			}
  			break;
  		
  		case 7:
  			switch (iParam0)
  			{
  				case 4:
  					return 899;
  					break;
  				
  				case 6:
  					return 907;
  					break;
  				
  				case 8:
  					return 1408;
  					break;
  				
  				case 11:
  					return 891;
  					break;
  				
  				case 14:
  					return 923;
  					break;
  			}
  			break;
  		
  		case 8:
  			switch (iParam0)
  			{
  				case 14:
  					return 924;
  					break;
  			}
  			break;
  		
  		case 9:
  			switch (iParam0)
  			{
  				case 14:
  					return 925;
  					break;
  			}
  			break;
  		
  		case 10:
  			switch (iParam0)
  			{
  				case 14:
  					return 926;
  					break;
  			}
  			break;
  	}
  	return 884;
  }
  
  int func_267(int iParam0, int iParam1, bool bParam2, bool bParam3, int iParam4)
  {
  	int iVar0;
  	var uVar1;
  	int iVar2;
  	var uVar3;
  	
  	iVar0 = Global_77666;
  	if (iParam4 != -1)
  	{
  		iVar0 = iParam4;
  	}
  	if (func_257(iParam0, iParam1, &iVar2, &uVar1, bParam2, bParam3))
  	{
  		uVar3 = func_140(iVar2, iVar0, 0);
  		return BitTest(uVar3, uVar1);
  	}
  	return 0;
  }
  
  int func_268(int iParam0)
  {
  	switch (iParam0)
  	{
  		case -1:
  			return 0;
  			break;
  		
  		case 0:
  			return 0;
  			break;
  		
  		case 1:
  			return 1;
  			break;
  		
  		case 2:
  			return 2;
  			break;
  		
  		case 3:
  			return 3;
  			break;
  		
  		case 4:
  			return 4;
  			break;
  		
  		case 5:
  			return 5;
  			break;
  		
  		case 6:
  			return 6;
  			break;
  		
  		case 7:
  			return 7;
  			break;
  		
  		case 8:
  			return 8;
  			break;
  		
  		case 9:
  			return 0;
  			break;
  		
  		case 10:
  			return 1;
  			break;
  		
  		case 11:
  			return 0;
  			break;
  		
  		case 12:
  			return 0;
  			break;
  		
  		case 13:
  			return 0;
  			break;
  	}
  	return 0;
  }
  
  void func_269(int iParam0, int iParam1, int iParam2, int iParam3)
  {
  	int iVar0;
  	int iVar1;
  	struct<8> Var2;
  	int iVar17;
  	int iVar18;
  	struct<10> Var19;
  	int iVar36;
  	int iVar37;
  	int iVar38;
  	struct<10> Var39;
  	int iVar56;
  	int iVar57;
  	
  	iVar0 = (iParam1 - iParam2);
  	iVar0 = iVar0;
  	if (iVar0 < 0)
  	{
  		return;
  	}
  	iVar1 = Global_77669[0 /*14*/].f_5;
  	if (iParam0 == 12)
  	{
  		iVar17 = (iParam1 - iParam2);
  		if (iVar17 >= 0)
  		{
  			iVar18 = FILES::SETUP_SHOP_PED_OUTFIT_QUERY(iVar1, false);
  			if (iVar18 > iVar17)
  			{
  				FILES::GET_SHOP_PED_QUERY_OUTFIT(iVar17, &Var2);
  				Global_2883588 = Var2.f_1;
  				Global_2883589 = Var2.f_0;
  				func_263(&(Global_77669[0 /*14*/]), iParam0, iParam1, &(Var2.f_7), 0, 0, Var2.f_2, 0, -1, 2, 1);
  				return;
  			}
  		}
  	}
  	else if (iParam0 == 13)
  	{
  		func_263(&(Global_77669[0 /*14*/]), iParam0, iParam1, "NO_LABEL", 0, 0, 0, 1, -1, 2, 1);
  	}
  	else if (iParam0 == 14)
  	{
  		FILES::INIT_SHOP_PED_PROP(&Var19);
  		iVar37 = (iParam1 - iParam2);
  		if (iVar37 >= 0)
  		{
  			iVar38 = FILES::SETUP_SHOP_PED_APPAREL_QUERY_TU(iVar1, 10, -1, true, -1, -1);
  			if (iVar38 > iVar37)
  			{
  				FILES::GET_SHOP_PED_QUERY_PROP(iVar37, &Var19);
  				if (Var19.f_6 == 0)
  				{
  					iVar36 = 9;
  				}
  				else if (Var19.f_6 == 1)
  				{
  					iVar36 = 10;
  				}
  				else if (Var19.f_6 == 2)
  				{
  					iVar36 = 2;
  				}
  				else if (Var19.f_6 == 3)
  				{
  					iVar36 = 3;
  				}
  				else if (Var19.f_6 == 4)
  				{
  					iVar36 = 4;
  				}
  				else if (Var19.f_6 == 5)
  				{
  					iVar36 = 5;
  				}
  				else if (Var19.f_6 == 6)
  				{
  					iVar36 = 6;
  				}
  				else if (Var19.f_6 == 7)
  				{
  					iVar36 = 7;
  				}
  				else if (Var19.f_6 == 8)
  				{
  					iVar36 = 8;
  				}
  				else
  				{
  					iVar36 = -1;
  				}
  				Global_2883588 = Var19.f_1;
  				Global_2883589 = Var19.f_0;
  				func_263(&(Global_77669[0 /*14*/]), iParam0, iParam1, &(Var19.f_9), Var19.f_3, Var19.f_4, Var19.f_5, FILES::DOES_SHOP_PED_APPAREL_HAVE_RESTRICTION_TAG(Var19.f_1, joaat("OUTFIT_ONLY"), 0), iVar36, 2, Var19.f_1 != 0);
  				return;
  			}
  		}
  	}
  	else
  	{
  		FILES::INIT_SHOP_PED_COMPONENT(&Var39);
  		if (iParam3 != -1 && Global_77839)
  		{
  			FILES::GET_SHOP_PED_COMPONENT(iParam3, &Var39);
  			Global_2883588 = Var39.f_1;
  			Global_2883589 = Var39.f_0;
  			func_263(&(Global_77669[0 /*14*/]), iParam0, iParam1, &(Var39.f_9), Var39.f_3, Var39.f_4, Var39.f_5, FILES::DOES_SHOP_PED_APPAREL_HAVE_RESTRICTION_TAG(Var39.f_1, joaat("OUTFIT_ONLY"), 0), -1, 2, Var39.f_1 != 0);
  			return;
  		}
  		iVar56 = (iParam1 - iParam2);
  		if (iVar56 >= 0)
  		{
  			iVar57 = FILES::SETUP_SHOP_PED_APPAREL_QUERY_TU(iVar1, 10, -1, false, -1, func_223(iParam0));
  			if (iVar57 > iVar56)
  			{
  				FILES::GET_SHOP_PED_QUERY_COMPONENT(iVar56, &Var39);
  				Global_2883588 = Var39.f_1;
  				Global_2883589 = Var39.f_0;
  				func_263(&(Global_77669[0 /*14*/]), iParam0, iParam1, &(Var39.f_9), Var39.f_3, Var39.f_4, Var39.f_5, FILES::DOES_SHOP_PED_APPAREL_HAVE_RESTRICTION_TAG(Var39.f_1, joaat("OUTFIT_ONLY"), 0), -1, 2, Var39.f_1 != 0);
  				return;
  			}
  		}
  	}
  }
  
  void func_270(int iParam0)
  {
  	bool bVar0;
  	int iVar1;
  	struct<2> Var2;
  	int iVar6;
  	int iVar7;
  	int iVar8;
  	int iVar9;
  	int iVar10;
  	
  	bVar0 = false;
  	iVar1 = 10;
  	iVar6 = 0;
  	iVar7 = 0;
  	iVar8 = -1;
  	iVar9 = 2;
  	iVar10 = 13;
  	Global_77669[0 /*14*/].f_5 = 2;
  	switch (iParam0)
  	{
  		case 31:
  			StringCopy(&Var2, "NO_LABEL", 16);
  			iVar6 = 0;
  			iVar7 = 0;
  			break;
  		
  		case 0:
  			StringCopy(&Var2, "NO_LABEL", 16);
  			iVar6 = 0;
  			iVar7 = 0;
  			bVar0 = true;
  			break;
  		
  		case 1:
  			StringCopy(&Var2, "NO_LABEL", 16);
  			iVar6 = 0;
  			iVar7 = 0;
  			break;
  		
  		case 2:
  			StringCopy(&Var2, "NO_LABEL", 16);
  			iVar6 = 0;
  			iVar7 = 0;
  			bVar0 = true;
  			break;
  		
  		case 3:
  			StringCopy(&Var2, "NO_LABEL", 16);
  			iVar6 = 0;
  			iVar7 = 0;
  			bVar0 = true;
  			break;
  		
  		case 4:
  			StringCopy(&Var2, "NO_LABEL", 16);
  			iVar6 = 0;
  			iVar7 = 0;
  			bVar0 = true;
  			break;
  		
  		case 5:
  			StringCopy(&Var2, "NO_LABEL", 16);
  			iVar6 = 0;
  			iVar7 = 0;
  			bVar0 = true;
  			break;
  		
  		case 6:
  			StringCopy(&Var2, "NO_LABEL", 16);
  			iVar6 = 0;
  			iVar7 = 0;
  			break;
  		
  		case 7:
  			StringCopy(&Var2, "NO_LABEL", 16);
  			iVar6 = 0;
  			iVar7 = 0;
  			break;
  		
  		case 8:
  			StringCopy(&Var2, "NO_LABEL", 16);
  			iVar6 = 0;
  			iVar7 = 0;
  			bVar0 = true;
  			break;
  		
  		default:
  			func_269(iVar10, iParam0, 9, -1);
  			return;
  			break;
  	}
  	func_263(&(Global_77669[0 /*14*/]), iVar10, iParam0, &Var2, iVar6, iVar7, iVar1, bVar0, iVar8, iVar9, 0);
  }
  
  void func_271(int iParam0)
  {
  	bool bVar0;
  	int iVar1;
  	struct<2> Var2;
  	int iVar6;
  	int iVar7;
  	int iVar8;
  	int iVar9;
  	int iVar10;
  	
  	bVar0 = false;
  	iVar1 = 10;
  	iVar6 = 0;
  	iVar7 = 0;
  	iVar8 = -1;
  	iVar9 = 2;
  	iVar10 = 12;
  	Global_77669[0 /*14*/].f_5 = 2;
  	switch (iParam0)
  	{
  		case 0:
  			StringCopy(&Var2, "OUTFIT_P2_0", 16);
  			iVar6 = 0;
  			iVar7 = 0;
  			bVar0 = true;
  			break;
  		
  		case 1:
  			StringCopy(&Var2, "NO_LABEL", 16);
  			iVar6 = 0;
  			iVar7 = 0;
  			break;
  		
  		case 2:
  			StringCopy(&Var2, "OUTFIT_P2_5", 16);
  			iVar6 = 0;
  			iVar7 = 0;
  			break;
  		
  		case 3:
  			StringCopy(&Var2, "OUTFIT_P2_6", 16);
  			iVar6 = 0;
  			iVar7 = 0;
  			break;
  		
  		case 4:
  			StringCopy(&Var2, "OUTFIT_P2_7", 16);
  			iVar6 = 0;
  			iVar7 = 0;
  			break;
  		
  		case 5:
  			StringCopy(&Var2, "OUTFIT_P2_8", 16);
  			iVar6 = 0;
  			iVar7 = 0;
  			break;
  		
  		case 6:
  			StringCopy(&Var2, "OUTFIT_P2_9", 16);
  			iVar6 = 0;
  			iVar7 = 0;
  			break;
  		
  		case 7:
  			StringCopy(&Var2, "OUTFIT_P2_10", 16);
  			iVar6 = 0;
  			iVar7 = 0;
  			break;
  		
  		case 8:
  			StringCopy(&Var2, "OUTFIT_P2_12", 16);
  			iVar6 = 0;
  			iVar7 = 0;
  			break;
  		
  		case 9:
  			StringCopy(&Var2, "OUTFIT_P2_13", 16);
  			iVar6 = 0;
  			iVar7 = 0;
  			break;
  		
  		case 10:
  			StringCopy(&Var2, "OUTFIT_P2_14", 16);
  			iVar6 = 0;
  			iVar7 = 0;
  			break;
  		
  		case 11:
  			StringCopy(&Var2, "OUTFIT_P2_15", 16);
  			iVar6 = 0;
  			iVar7 = 0;
  			break;
  		
  		case 12:
  			StringCopy(&Var2, "OUTFIT_P2_16", 16);
  			iVar6 = 0;
  			iVar7 = 0;
  			break;
  		
  		case 13:
  			StringCopy(&Var2, "OUTFIT_P2_17", 16);
  			iVar6 = 0;
  			iVar7 = 0;
  			break;
  		
  		case 14:
  			StringCopy(&Var2, "OUTFIT_P2_18", 16);
  			iVar6 = 0;
  			iVar7 = 0;
  			iVar1 = 10000;
  			break;
  		
  		case 15:
  			StringCopy(&Var2, "OUTFIT_P2_19", 16);
  			iVar6 = 0;
  			iVar7 = 0;
  			break;
  		
  		case 16:
  			StringCopy(&Var2, "OUTFIT_P2_20", 16);
  			iVar6 = 0;
  			iVar7 = 0;
  			break;
  		
  		case 17:
  			StringCopy(&Var2, "OUTFIT_P2_21", 16);
  			iVar6 = 0;
  			iVar7 = 0;
  			iVar1 = 105;
  			break;
  		
  		case 18:
  			StringCopy(&Var2, "OUTFIT_P2_22", 16);
  			iVar6 = 0;
  			iVar7 = 0;
  			iVar1 = 105;
  			break;
  		
  		case 19:
  			StringCopy(&Var2, "OUTFIT_P2_23", 16);
  			iVar6 = 0;
  			iVar7 = 0;
  			iVar1 = 105;
  			break;
  		
  		case 20:
  			StringCopy(&Var2, "OUTFIT_P2_24", 16);
  			iVar6 = 0;
  			iVar7 = 0;
  			break;
  		
  		case 21:
  			StringCopy(&Var2, "OUTFIT_P2_25", 16);
  			iVar6 = 0;
  			iVar7 = 0;
  			break;
  		
  		case 22:
  			StringCopy(&Var2, "OUTFIT_P2_26", 16);
  			iVar6 = 0;
  			iVar7 = 0;
  			break;
  		
  		case 23:
  			StringCopy(&Var2, "OUTFIT_P2_27", 16);
  			iVar6 = 0;
  			iVar7 = 0;
  			break;
  		
  		case 24:
  			StringCopy(&Var2, "OUTFIT_P2_28", 16);
  			iVar6 = 0;
  			iVar7 = 0;
  			iVar1 = 119;
  			break;
  		
  		case 25:
  			StringCopy(&Var2, "OUTFIT_P2_29", 16);
  			iVar6 = 0;
  			iVar7 = 0;
  			iVar1 = 99;
  			break;
  		
  		case 26:
  			StringCopy(&Var2, "OUTFIT_P2_30", 16);
  			iVar6 = 0;
  			iVar7 = 0;
  			iVar1 = 129;
  			break;
  		
  		case 27:
  			StringCopy(&Var2, "OUTFIT_P2_44", 16);
  			iVar6 = 0;
  			iVar7 = 0;
  			iVar1 = 125;
  			break;
  		
  		case 28:
  			StringCopy(&Var2, "OUTFIT_P2_45", 16);
  			iVar6 = 0;
  			iVar7 = 0;
  			iVar1 = 120;
  			break;
  		
  		case 29:
  			StringCopy(&Var2, "OUTFIT_P2_46", 16);
  			iVar6 = 0;
  			iVar7 = 0;
  			iVar1 = 139;
  			break;
  		
  		case 30:
  			StringCopy(&Var2, "OUTFIT_P2_47", 16);
  			iVar6 = 0;
  			iVar7 = 0;
  			iVar1 = 149;
  			break;
  		
  		case 31:
  			StringCopy(&Var2, "OUTFIT_P2_48", 16);
  			iVar6 = 0;
  			iVar7 = 0;
  			iVar1 = 145;
  			break;
  		
  		case 32:
  			StringCopy(&Var2, "OUTFIT_P2_49", 16);
  			iVar6 = 0;
  			iVar7 = 0;
  			iVar1 = 140;
  			break;
  		
  		case 33:
  			StringCopy(&Var2, "OUTFIT_P2_50", 16);
  			iVar6 = 0;
  			iVar7 = 0;
  			iVar1 = 135;
  			break;
  		
  		case 34:
  			StringCopy(&Var2, "OUTFIT_P2_31", 16);
  			iVar6 = 0;
  			iVar7 = 0;
  			iVar1 = 4900;
  			break;
  		
  		case 35:
  			StringCopy(&Var2, "OUTFIT_P2_32", 16);
  			iVar6 = 0;
  			iVar7 = 0;
  			iVar1 = 5900;
  			break;
  		
  		case 36:
  			StringCopy(&Var2, "OUTFIT_P2_33", 16);
  			iVar6 = 0;
  			iVar7 = 0;
  			iVar1 = 4500;
  			break;
  		
  		case 37:
  			StringCopy(&Var2, "OUTFIT_P2_34", 16);
  			iVar6 = 0;
  			iVar7 = 0;
  			iVar1 = 4900;
  			break;
  		
  		case 38:
  			StringCopy(&Var2, "OUTFIT_P2_35", 16);
  			iVar6 = 0;
  			iVar7 = 0;
  			iVar1 = 4500;
  			break;
  		
  		case 39:
  			StringCopy(&Var2, "OUTFIT_P2_36", 16);
  			iVar6 = 0;
  			iVar7 = 0;
  			iVar1 = 5900;
  			break;
  		
  		case 40:
  			StringCopy(&Var2, "OUTFIT_P2_37", 16);
  			iVar6 = 0;
  			iVar7 = 0;
  			iVar1 = 5500;
  			break;
  		
  		case 41:
  			StringCopy(&Var2, "OUTFIT_P2_38", 16);
  			iVar6 = 0;
  			iVar7 = 0;
  			break;
  		
  		case 42:
  			StringCopy(&Var2, "OUTFIT_P2_39", 16);
  			iVar6 = 0;
  			iVar7 = 0;
  			break;
  		
  		case 43:
  			StringCopy(&Var2, "OUTFIT_P2_40", 16);
  			iVar6 = 0;
  			iVar7 = 0;
  			break;
  		
  		case 44:
  			StringCopy(&Var2, "OUTFIT_P2_41", 16);
  			iVar6 = 0;
  			iVar7 = 0;
  			break;
  		
  		case 45:
  			StringCopy(&Var2, "OUTFIT_P2_42", 16);
  			iVar6 = 0;
  			iVar7 = 0;
  			break;
  		
  		case 46:
  			StringCopy(&Var2, "OUTFIT_P2_43", 16);
  			iVar6 = 0;
  			iVar7 = 0;
  			break;
  		
  		case 47:
  			StringCopy(&Var2, "OUTFIT_P2_12", 16);
  			iVar6 = 0;
  			iVar7 = 0;
  			break;
  		
  		default:
  			func_269(iVar10, iParam0, 48, -1);
  			return;
  			break;
  	}
  	func_263(&(Global_77669[0 /*14*/]), iVar10, iParam0, &Var2, iVar6, iVar7, iVar1, bVar0, iVar8, iVar9, 0);
  }
  
  void func_272(int iParam0)
  {
  	bool bVar0;
  	int iVar1;
  	struct<2> Var2;
  	int iVar6;
  	int iVar7;
  	int iVar8;
  	int iVar9;
  	int iVar10;
  	
  	bVar0 = false;
  	iVar1 = 10;
  	iVar6 = 0;
  	iVar7 = 0;
  	iVar8 = -1;
  	iVar9 = 2;
  	iVar10 = 11;
  	Global_77669[0 /*14*/].f_5 = 2;
  	switch (iParam0)
  	{
  		case 0:
  			StringCopy(&Var2, "NO_LABEL", 16);
  			iVar6 = 0;
  			iVar7 = 0;
  			break;
  		
  		default:
  			func_269(iVar10, iParam0, 1, -1);
  			return;
  			break;
  	}
  	func_263(&(Global_77669[0 /*14*/]), iVar10, iParam0, &Var2, iVar6, iVar7, iVar1, bVar0, iVar8, iVar9, 0);
  }
  
  void func_273(int iParam0)
  {
  	bool bVar0;
  	int iVar1;
  	struct<2> Var2;
  	int iVar6;
  	int iVar7;
  	int iVar8;
  	int iVar9;
  	int iVar10;
  	
  	bVar0 = false;
  	iVar1 = 10;
  	iVar6 = 0;
  	iVar7 = 0;
  	iVar8 = -1;
  	iVar9 = 2;
  	iVar10 = 7;
  	Global_77669[0 /*14*/].f_5 = 2;
  	switch (iParam0)
  	{
  		case 0:
  			StringCopy(&Var2, "NO_LABEL", 16);
  			iVar6 = 0;
  			iVar7 = 0;
  			break;
  		
  		default:
  			func_269(iVar10, iParam0, 1, -1);
  			return;
  			break;
  	}
  	func_263(&(Global_77669[0 /*14*/]), iVar10, iParam0, &Var2, iVar6, iVar7, iVar1, bVar0, iVar8, iVar9, 0);
  }
  
  void func_274(int iParam0)
  {
  	bool bVar0;
  	int iVar1;
  	struct<2> Var2;
  	int iVar6;
  	int iVar7;
  	int iVar8;
  	int iVar9;
  	int iVar10;
  	
  	bVar0 = false;
  	iVar1 = 10;
  	iVar6 = 0;
  	iVar7 = 0;
  	iVar8 = -1;
  	iVar9 = 2;
  	iVar10 = 1;
  	Global_77669[0 /*14*/].f_5 = 2;
  	switch (iParam0)
  	{
  		case 0:
  			StringCopy(&Var2, "BERD_P2_0_0", 16);
  			iVar6 = 0;
  			iVar7 = 0;
  			break;
  		
  		case 1:
  			StringCopy(&Var2, "BERD_P2_1_0", 16);
  			iVar6 = 1;
  			iVar7 = 0;
  			break;
  		
  		case 2:
  			StringCopy(&Var2, "BERD_P2_2_0", 16);
  			iVar6 = 2;
  			iVar7 = 0;
  			break;
  		
  		case 3:
  			StringCopy(&Var2, "BERD_P2_3_0", 16);
  			iVar6 = 3;
  			iVar7 = 0;
  			break;
  		
  		case 4:
  			StringCopy(&Var2, "BERD_P2_4_0", 16);
  			iVar6 = 4;
  			iVar7 = 0;
  			break;
  		
  		case 5:
  			StringCopy(&Var2, "BERD_P2_5_0", 16);
  			iVar6 = 5;
  			iVar7 = 0;
  			break;
  		
  		default:
  			func_269(iVar10, iParam0, 6, -1);
  			return;
  			break;
  	}
  	func_263(&(Global_77669[0 /*14*/]), iVar10, iParam0, &Var2, iVar6, iVar7, iVar1, bVar0, iVar8, iVar9, 0);
  }
  
  void func_275(int iParam0)
  {
  	bool bVar0;
  	int iVar1;
  	struct<2> Var2;
  	int iVar6;
  	int iVar7;
  	int iVar8;
  	int iVar9;
  	int iVar10;
  	
  	bVar0 = false;
  	iVar1 = 10;
  	iVar6 = 0;
  	iVar7 = 0;
  	iVar8 = -1;
  	iVar9 = 2;
  	iVar10 = 10;
  	Global_77669[0 /*14*/].f_5 = 2;
  	switch (iParam0)
  	{
  		case 0:
  			StringCopy(&Var2, "NO_LABEL", 16);
  			iVar6 = 0;
  			iVar7 = 0;
  			break;
  		
  		case 1:
  			StringCopy(&Var2, "NO_LABEL", 16);
  			iVar6 = 1;
  			iVar7 = 0;
  			break;
  		
  		case 2:
  			StringCopy(&Var2, "NO_LABEL", 16);
  			iVar6 = 2;
  			iVar7 = 0;
  			break;
  		
  		case 3:
  			StringCopy(&Var2, "NO_LABEL", 16);
  			iVar6 = 3;
  			iVar7 = 0;
  			break;
  		
  		case 4:
  			StringCopy(&Var2, "NO_LABEL", 16);
  			iVar6 = 4;
  			iVar7 = 0;
  			break;
  		
  		case 5:
  			StringCopy(&Var2, "NO_LABEL", 16);
  			iVar6 = 5;
  			iVar7 = 0;
  			break;
  		
  		case 6:
  			StringCopy(&Var2, "NO_LABEL", 16);
  			iVar6 = 5;
  			iVar7 = 1;
  			break;
  		
  		case 7:
  			StringCopy(&Var2, "NO_LABEL", 16);
  			iVar6 = 5;
  			iVar7 = 2;
  			break;
  		
  		case 8:
  			StringCopy(&Var2, "NO_LABEL", 16);
  			iVar6 = 5;
  			iVar7 = 3;
  			break;
  		
  		case 9:
  			StringCopy(&Var2, "NO_LABEL", 16);
  			iVar6 = 5;
  			iVar7 = 4;
  			break;
  		
  		case 10:
  			StringCopy(&Var2, "NO_LABEL", 16);
  			iVar6 = 5;
  			iVar7 = 5;
  			break;
  		
  		case 11:
  			StringCopy(&Var2, "NO_LABEL", 16);
  			iVar6 = 6;
  			iVar7 = 0;
  			break;
  		
  		case 12:
  			StringCopy(&Var2, "NO_LABEL", 16);
  			iVar6 = 6;
  			iVar7 = 1;
  			break;
  		
  		case 13:
  			StringCopy(&Var2, "NO_LABEL", 16);
  			iVar6 = 6;
  			iVar7 = 2;
  			break;
  		
  		case 14:
  			StringCopy(&Var2, "NO_LABEL", 16);
  			iVar6 = 6;
  			iVar7 = 3;
  			break;
  		
  		case 15:
  			StringCopy(&Var2, "NO_LABEL", 16);
  			iVar6 = 6;
  			iVar7 = 4;
  			break;
  		
  		case 16:
  			StringCopy(&Var2, "NO_LABEL", 16);
  			iVar6 = 6;
  			iVar7 = 5;
  			break;
  		
  		case 17:
  			StringCopy(&Var2, "NO_LABEL", 16);
  			iVar6 = 6;
  			iVar7 = 6;
  			break;
  		
  		case 18:
  			StringCopy(&Var2, "NO_LABEL", 16);
  			iVar6 = 6;
  			iVar7 = 7;
  			break;
  		
  		case 19:
  			StringCopy(&Var2, "NO_LABEL", 16);
  			iVar6 = 6;
  			iVar7 = 8;
  			break;
  		
  		case 20:
  			StringCopy(&Var2, "NO_LABEL", 16);
  			iVar6 = 6;
  			iVar7 = 9;
  			break;
  		
  		case 21:
  			StringCopy(&Var2, "NO_LABEL", 16);
  			iVar6 = 7;
  			iVar7 = 0;
  			break;
  		
  		case 22:
  			StringCopy(&Var2, "NO_LABEL", 16);
  			iVar6 = 8;
  			iVar7 = 0;
  			break;
  		
  		case 23:
  			StringCopy(&Var2, "NO_LABEL", 16);
  			iVar6 = 8;
  			iVar7 = 1;
  			break;
  		
  		case 24:
  			StringCopy(&Var2, "NO_LABEL", 16);
  			iVar6 = 8;
  			iVar7 = 2;
  			break;
  		
  		case 25:
  			StringCopy(&Var2, "NO_LABEL", 16);
  			iVar6 = 8;
  			iVar7 = 3;
  			break;
  		
  		case 26:
  			StringCopy(&Var2, "NO_LABEL", 16);
  			iVar6 = 8;
  			iVar7 = 4;
  			break;
  		
  		case 27:
  			StringCopy(&Var2, "NO_LABEL", 16);
  			iVar6 = 8;
  			iVar7 = 5;
  			break;
  		
  		case 28:
  			StringCopy(&Var2, "NO_LABEL", 16);
  			iVar6 = 8;
  			iVar7 = 6;
  			break;
  		
  		case 29:
  			StringCopy(&Var2, "NO_LABEL", 16);
  			iVar6 = 9;
  			iVar7 = 0;
  			break;
  		
  		case 30:
  			StringCopy(&Var2, "NO_LABEL", 16);
  			iVar6 = 9;
  			iVar7 = 1;
  			break;
  		
  		case 31:
  			StringCopy(&Var2, "NO_LABEL", 16);
  			iVar6 = 9;
  			iVar7 = 2;
  			break;
  		
  		case 32:
  			StringCopy(&Var2, "NO_LABEL", 16);
  			iVar6 = 9;
  			iVar7 = 3;
  			break;
  		
  		default:
  			func_269(iVar10, iParam0, 33, -1);
  			return;
  			break;
  	}
  	func_263(&(Global_77669[0 /*14*/]), iVar10, iParam0, &Var2, iVar6, iVar7, iVar1, bVar0, iVar8, iVar9, 0);
  }
  
  void func_276(int iParam0)
  {
  	bool bVar0;
  	int iVar1;
  	struct<2> Var2;
  	int iVar6;
  	int iVar7;
  	int iVar8;
  	int iVar9;
  	int iVar10;
  	
  	bVar0 = false;
  	iVar1 = 10;
  	iVar6 = 0;
  	iVar7 = 0;
  	iVar8 = -1;
  	iVar9 = 2;
  	iVar10 = 9;
  	Global_77669[0 /*14*/].f_5 = 2;
  	switch (iParam0)
  	{
  		case 0:
  			StringCopy(&Var2, "NO_LABEL", 16);
  			iVar6 = 0;
  			iVar7 = 0;
  			break;
  		
  		case 1:
  			StringCopy(&Var2, "NO_LABEL", 16);
  			iVar6 = 1;
  			iVar7 = 0;
  			break;
  		
  		case 2:
  			StringCopy(&Var2, "NO_LABEL", 16);
  			iVar6 = 1;
  			iVar7 = 1;
  			break;
  		
  		case 3:
  			StringCopy(&Var2, "NO_LABEL", 16);
  			iVar6 = 1;
  			iVar7 = 2;
  			break;
  		
  		case 4:
  			StringCopy(&Var2, "NO_LABEL", 16);
  			iVar6 = 1;
  			iVar7 = 3;
  			break;
  		
  		case 5:
  			StringCopy(&Var2, "NO_LABEL", 16);
  			iVar6 = 2;
  			iVar7 = 0;
  			bVar0 = true;
  			break;
  		
  		case 6:
  			StringCopy(&Var2, "NO_LABEL", 16);
  			iVar6 = 3;
  			iVar7 = 0;
  			bVar0 = true;
  			break;
  		
  		case 7:
  			StringCopy(&Var2, "NO_LABEL", 16);
  			iVar6 = 4;
  			iVar7 = 0;
  			break;
  		
  		case 8:
  			StringCopy(&Var2, "NO_LABEL", 16);
  			iVar6 = 5;
  			iVar7 = 0;
  			bVar0 = true;
  			break;
  		
  		case 9:
  			StringCopy(&Var2, "SPEC2_P0_08_0", 16);
  			iVar6 = 6;
  			iVar7 = 0;
  			iVar1 = 125;
  			break;
  		
  		case 10:
  			StringCopy(&Var2, "SPEC2_P0_08_1", 16);
  			iVar6 = 6;
  			iVar7 = 1;
  			iVar1 = 150;
  			break;
  		
  		case 11:
  			StringCopy(&Var2, "SPEC2_P0_08_2", 16);
  			iVar6 = 6;
  			iVar7 = 2;
  			iVar1 = 175;
  			break;
  		
  		case 12:
  			StringCopy(&Var2, "SPEC2_P0_08_3", 16);
  			iVar6 = 6;
  			iVar7 = 3;
  			iVar1 = 85;
  			break;
  		
  		case 13:
  			StringCopy(&Var2, "SPEC2_P0_08_4", 16);
  			iVar6 = 6;
  			iVar7 = 4;
  			iVar1 = 150;
  			break;
  		
  		case 14:
  			StringCopy(&Var2, "SPEC2_P0_08_5", 16);
  			iVar6 = 6;
  			iVar7 = 5;
  			iVar1 = 175;
  			break;
  		
  		case 15:
  			StringCopy(&Var2, "PROPS_P1_H8_0", 16);
  			iVar6 = 7;
  			iVar7 = 0;
  			iVar1 = 270;
  			break;
  		
  		case 16:
  			StringCopy(&Var2, "PROPS_P1_H8_1", 16);
  			iVar6 = 7;
  			iVar7 = 1;
  			iVar1 = 270;
  			break;
  		
  		default:
  			func_269(iVar10, iParam0, 17, -1);
  			return;
  			break;
  	}
  	func_263(&(Global_77669[0 /*14*/]), iVar10, iParam0, &Var2, iVar6, iVar7, iVar1, bVar0, iVar8, iVar9, 0);
  }
  
  void func_277(int iParam0)
  {
  	bool bVar0;
  	int iVar1;
  	struct<2> Var2;
  	int iVar6;
  	int iVar7;
  	int iVar8;
  	int iVar9;
  	int iVar10;
  	
  	bVar0 = false;
  	iVar1 = 10;
  	iVar6 = 0;
  	iVar7 = 0;
  	iVar8 = -1;
  	iVar9 = 2;
  	iVar10 = 8;
  	Global_77669[0 /*14*/].f_5 = 2;
  	switch (iParam0)
  	{
  		case 0:
  			StringCopy(&Var2, "SPEC_P2_0_0", 16);
  			iVar6 = 0;
  			iVar7 = 0;
  			break;
  		
  		case 1:
  			StringCopy(&Var2, "SPEC_P2_0_1", 16);
  			iVar6 = 0;
  			iVar7 = 1;
  			break;
  		
  		case 2:
  			StringCopy(&Var2, "NO_LABEL", 16);
  			iVar6 = 1;
  			iVar7 = 0;
  			bVar0 = true;
  			break;
  		
  		case 3:
  			StringCopy(&Var2, "NO_LABEL", 16);
  			iVar6 = 2;
  			iVar7 = 0;
  			bVar0 = true;
  			break;
  		
  		case 4:
  			StringCopy(&Var2, "NO_LABEL", 16);
  			iVar6 = 3;
  			iVar7 = 0;
  			bVar0 = true;
  			break;
  		
  		case 5:
  			StringCopy(&Var2, "NO_LABEL", 16);
  			iVar6 = 4;
  			iVar7 = 0;
  			bVar0 = true;
  			break;
  		
  		case 6:
  			StringCopy(&Var2, "NO_LABEL", 16);
  			iVar6 = 5;
  			iVar7 = 0;
  			bVar0 = true;
  			break;
  		
  		case 7:
  			StringCopy(&Var2, "NO_LABEL", 16);
  			iVar6 = 6;
  			iVar7 = 0;
  			bVar0 = true;
  			break;
  		
  		case 8:
  			StringCopy(&Var2, "NO_LABEL", 16);
  			iVar6 = 7;
  			iVar7 = 0;
  			bVar0 = true;
  			break;
  		
  		case 9:
  			StringCopy(&Var2, "NO_LABEL", 16);
  			iVar6 = 8;
  			iVar7 = 0;
  			bVar0 = true;
  			break;
  		
  		case 10:
  			StringCopy(&Var2, "NO_LABEL", 16);
  			iVar6 = 9;
  			iVar7 = 0;
  			bVar0 = true;
  			break;
  		
  		case 11:
  			StringCopy(&Var2, "NO_LABEL", 16);
  			iVar6 = 10;
  			iVar7 = 0;
  			bVar0 = true;
  			break;
  		
  		case 12:
  			StringCopy(&Var2, "NO_LABEL", 16);
  			iVar6 = 11;
  			iVar7 = 0;
  			break;
  		
  		case 13:
  			StringCopy(&Var2, "NO_LABEL", 16);
  			iVar6 = 12;
  			iVar7 = 0;
  			bVar0 = true;
  			break;
  		
  		case 14:
  			StringCopy(&Var2, "NO_LABEL", 16);
  			iVar6 = 13;
  			iVar7 = 0;
  			bVar0 = true;
  			break;
  		
  		case 15:
  			StringCopy(&Var2, "NO_LABEL", 16);
  			iVar6 = 14;
  			iVar7 = 0;
  			break;
  		
  		case 16:
  			StringCopy(&Var2, "NO_LABEL", 16);
  			iVar6 = 15;
  			iVar7 = 0;
  			bVar0 = true;
  			break;
  		
  		case 17:
  			StringCopy(&Var2, "NO_LABEL", 16);
  			iVar6 = 16;
  			iVar7 = 0;
  			bVar0 = true;
  			break;
  		
  		default:
  			func_269(iVar10, iParam0, 18, -1);
  			return;
  			break;
  	}
  	func_263(&(Global_77669[0 /*14*/]), iVar10, iParam0, &Var2, iVar6, iVar7, iVar1, bVar0, iVar8, iVar9, 0);
  }
  
  void func_278(int iParam0)
  {
  	bool bVar0;
  	int iVar1;
  	struct<2> Var2;
  	int iVar6;
  	int iVar7;
  	int iVar8;
  	int iVar9;
  	int iVar10;
  	
  	bVar0 = false;
  	iVar1 = 10;
  	iVar6 = 0;
  	iVar7 = 0;
  	iVar8 = -1;
  	iVar9 = 2;
  	iVar10 = 5;
  	Global_77669[0 /*14*/].f_5 = 2;
  	switch (iParam0)
  	{
  		case 0:
  			StringCopy(&Var2, "NO_LABEL", 16);
  			iVar6 = 0;
  			iVar7 = 0;
  			break;
  		
  		case 1:
  			StringCopy(&Var2, "NO_LABEL", 16);
  			iVar6 = 0;
  			iVar7 = 1;
  			bVar0 = true;
  			break;
  		
  		case 2:
  			StringCopy(&Var2, "NO_LABEL", 16);
  			iVar6 = 1;
  			iVar7 = 0;
  			bVar0 = true;
  			break;
  		
  		case 3:
  			StringCopy(&Var2, "NO_LABEL", 16);
  			iVar6 = 2;
  			iVar7 = 0;
  			bVar0 = true;
  			break;
  		
  		case 4:
  			StringCopy(&Var2, "NO_LABEL", 16);
  			iVar6 = 3;
  			iVar7 = 0;
  			bVar0 = true;
  			break;
  		
  		case 5:
  			StringCopy(&Var2, "NO_LABEL", 16);
  			iVar6 = 4;
  			iVar7 = 0;
  			bVar0 = true;
  			break;
  		
  		case 6:
  			StringCopy(&Var2, "NO_LABEL", 16);
  			iVar6 = 5;
  			iVar7 = 0;
  			bVar0 = true;
  			break;
  		
  		default:
  			func_269(iVar10, iParam0, 7, -1);
  			return;
  			break;
  	}
  	func_263(&(Global_77669[0 /*14*/]), iVar10, iParam0, &Var2, iVar6, iVar7, iVar1, bVar0, iVar8, iVar9, 0);
  }
  
  void func_279(int iParam0)
  {
  	bool bVar0;
  	int iVar1;
  	struct<2> Var2;
  	int iVar6;
  	int iVar7;
  	int iVar8;
  	int iVar9;
  	int iVar10;
  	
  	bVar0 = false;
  	iVar1 = 10;
  	iVar6 = 0;
  	iVar7 = 0;
  	iVar8 = -1;
  	iVar9 = 2;
  	iVar10 = 6;
  	Global_77669[0 /*14*/].f_5 = 2;
  	switch (iParam0)
  	{
  		case 0:
  			StringCopy(&Var2, "FEET_P2_0_0", 16);
  			iVar6 = 0;
  			iVar7 = 0;
  			break;
  		
  		case 1:
  			StringCopy(&Var2, "FEET_P2_0_1", 16);
  			iVar6 = 0;
  			iVar7 = 1;
  			iVar1 = 22;
  			break;
  		
  		case 2:
  			StringCopy(&Var2, "FEET_P2_0_2", 16);
  			iVar6 = 0;
  			iVar7 = 2;
  			iVar1 = 45;
  			break;
  		
  		case 3:
  			StringCopy(&Var2, "FEET_P2_0_3", 16);
  			iVar6 = 0;
  			iVar7 = 3;
  			iVar1 = 65;
  			break;
  		
  		case 4:
  			StringCopy(&Var2, "FEET_P2_0_4", 16);
  			iVar6 = 0;
  			iVar7 = 4;
  			iVar1 = 58;
  			break;
  		
  		case 5:
  			StringCopy(&Var2, "FEET_P2_0_5", 16);
  			iVar6 = 0;
  			iVar7 = 5;
  			iVar1 = 72;
  			break;
  		
  		case 6:
  			StringCopy(&Var2, "FEET_P2_0_6", 16);
  			iVar6 = 0;
  			iVar7 = 6;
  			iVar1 = 68;
  			break;
  		
  		case 7:
  			StringCopy(&Var2, "FEET_P2_0_7", 16);
  			iVar6 = 0;
  			iVar7 = 7;
  			iVar1 = 60;
  			break;
  		
  		case 8:
  			StringCopy(&Var2, "NO_LABEL", 16);
  			iVar6 = 1;
  			iVar7 = 0;
  			break;
  		
  		case 9:
  			StringCopy(&Var2, "NO_LABEL", 16);
  			iVar6 = 2;
  			iVar7 = 0;
  			bVar0 = true;
  			break;
  		
  		case 10:
  			StringCopy(&Var2, "NO_LABEL", 16);
  			iVar6 = 3;
  			iVar7 = 0;
  			bVar0 = true;
  			break;
  		
  		case 11:
  			StringCopy(&Var2, "NO_LABEL", 16);
  			iVar6 = 4;
  			iVar7 = 0;
  			bVar0 = true;
  			break;
  		
  		case 12:
  			StringCopy(&Var2, "FEET_P2_5_0", 16);
  			iVar6 = 5;
  			iVar7 = 0;
  			break;
  		
  		case 13:
  			StringCopy(&Var2, "NO_LABEL", 16);
  			iVar6 = 6;
  			iVar7 = 0;
  			bVar0 = true;
  			break;
  		
  		case 14:
  			StringCopy(&Var2, "NO_LABEL", 16);
  			iVar6 = 7;
  			iVar7 = 0;
  			bVar0 = true;
  			break;
  		
  		case 15:
  			StringCopy(&Var2, "FEET_P2_8_0", 16);
  			iVar6 = 8;
  			iVar7 = 0;
  			bVar0 = true;
  			break;
  		
  		case 16:
  			StringCopy(&Var2, "FEET_P2_9_0", 16);
  			iVar6 = 9;
  			iVar7 = 0;
  			break;
  		
  		case 17:
  			StringCopy(&Var2, "FEET_P2_9_1", 16);
  			iVar6 = 9;
  			iVar7 = 1;
  			iVar1 = 680;
  			break;
  		
  		case 18:
  			StringCopy(&Var2, "FEET_P2_9_2", 16);
  			iVar6 = 9;
  			iVar7 = 2;
  			iVar1 = 650;
  			break;
  		
  		case 19:
  			StringCopy(&Var2, "FEET_P2_9_3", 16);
  			iVar6 = 9;
  			iVar7 = 3;
  			iVar1 = 670;
  			break;
  		
  		case 20:
  			StringCopy(&Var2, "FEET_P2_9_4", 16);
  			iVar6 = 9;
  			iVar7 = 4;
  			iVar1 = 700;
  			break;
  		
  		case 21:
  			StringCopy(&Var2, "FEET_P2_9_5", 16);
  			iVar6 = 9;
  			iVar7 = 5;
  			iVar1 = 680;
  			break;
  		
  		case 22:
  			StringCopy(&Var2, "FEET_P2_9_6", 16);
  			iVar6 = 9;
  			iVar7 = 6;
  			iVar1 = 720;
  			break;
  		
  		case 23:
  			StringCopy(&Var2, "FEET_P2_9_7", 16);
  			iVar6 = 9;
  			iVar7 = 7;
  			iVar1 = 740;
  			break;
  		
  		case 24:
  			StringCopy(&Var2, "FEET_P2_9_8", 16);
  			iVar6 = 9;
  			iVar7 = 8;
  			iVar1 = 760;
  			break;
  		
  		case 25:
  			StringCopy(&Var2, "FEET_P2_9_9", 16);
  			iVar6 = 9;
  			iVar7 = 9;
  			iVar1 = 780;
  			break;
  		
  		case 26:
  			StringCopy(&Var2, "FEET_P2_9_10", 16);
  			iVar6 = 9;
  			iVar7 = 10;
  			iVar1 = 750;
  			break;
  		
  		case 27:
  			StringCopy(&Var2, "FEET_P2_9_11", 16);
  			iVar6 = 9;
  			iVar7 = 11;
  			iVar1 = 700;
  			break;
  		
  		case 28:
  			StringCopy(&Var2, "FEET_P2_10_0", 16);
  			iVar6 = 10;
  			iVar7 = 0;
  			break;
  		
  		case 29:
  			StringCopy(&Var2, "NO_LABEL", 16);
  			iVar6 = 11;
  			iVar7 = 0;
  			bVar0 = true;
  			break;
  		
  		case 30:
  			StringCopy(&Var2, "NO_LABEL", 16);
  			iVar6 = 12;
  			iVar7 = 0;
  			bVar0 = true;
  			break;
  		
  		case 31:
  			StringCopy(&Var2, "NO_LABEL", 16);
  			iVar6 = 13;
  			iVar7 = 0;
  			bVar0 = true;
  			break;
  		
  		case 32:
  			StringCopy(&Var2, "NO_LABEL", 16);
  			iVar6 = 14;
  			iVar7 = 0;
  			bVar0 = true;
  			break;
  		
  		case 33:
  			StringCopy(&Var2, "NO_LABEL", 16);
  			iVar6 = 15;
  			iVar7 = 0;
  			bVar0 = true;
  			break;
  		
  		case 34:
  			StringCopy(&Var2, "NO_LABEL", 16);
  			iVar6 = 16;
  			iVar7 = 0;
  			break;
  		
  		case 35:
  			StringCopy(&Var2, "NO_LABEL", 16);
  			iVar6 = 17;
  			iVar7 = 0;
  			break;
  		
  		case 36:
  			StringCopy(&Var2, "FEET_P2_18_0", 16);
  			iVar6 = 18;
  			iVar7 = 0;
  			iVar1 = 790;
  			break;
  		
  		case 37:
  			StringCopy(&Var2, "FEET_P2_18_1", 16);
  			iVar6 = 18;
  			iVar7 = 1;
  			iVar1 = 750;
  			break;
  		
  		case 38:
  			StringCopy(&Var2, "FEET_P2_18_2", 16);
  			iVar6 = 18;
  			iVar7 = 2;
  			iVar1 = 860;
  			break;
  		
  		case 39:
  			StringCopy(&Var2, "FEET_P2_18_3", 16);
  			iVar6 = 18;
  			iVar7 = 3;
  			iVar1 = 750;
  			break;
  		
  		case 40:
  			StringCopy(&Var2, "FEET_P2_18_4", 16);
  			iVar6 = 18;
  			iVar7 = 4;
  			iVar1 = 790;
  			break;
  		
  		case 41:
  			StringCopy(&Var2, "FEET_P2_18_5", 16);
  			iVar6 = 18;
  			iVar7 = 5;
  			iVar1 = 840;
  			break;
  		
  		case 42:
  			StringCopy(&Var2, "FEET_P2_18_6", 16);
  			iVar6 = 18;
  			iVar7 = 6;
  			iVar1 = 820;
  			break;
  		
  		case 43:
  			StringCopy(&Var2, "FEET_P2_18_7", 16);
  			iVar6 = 18;
  			iVar7 = 7;
  			iVar1 = 800;
  			break;
  		
  		case 44:
  			StringCopy(&Var2, "FEET_P2_18_8", 16);
  			iVar6 = 18;
  			iVar7 = 8;
  			iVar1 = 850;
  			break;
  		
  		case 45:
  			StringCopy(&Var2, "FEET_P2_18_9", 16);
  			iVar6 = 18;
  			iVar7 = 9;
  			iVar1 = 870;
  			break;
  		
  		case 46:
  			StringCopy(&Var2, "FEET_P2_18_10", 16);
  			iVar6 = 18;
  			iVar7 = 10;
  			iVar1 = 720;
  			break;
  		
  		case 47:
  			StringCopy(&Var2, "FEET_P2_18_11", 16);
  			iVar6 = 18;
  			iVar7 = 11;
  			iVar1 = 740;
  			break;
  		
  		case 48:
  			StringCopy(&Var2, "FEET_P2_18_12", 16);
  			iVar6 = 18;
  			iVar7 = 12;
  			iVar1 = 800;
  			break;
  		
  		case 49:
  			StringCopy(&Var2, "FEET_P2_18_13", 16);
  			iVar6 = 18;
  			iVar7 = 13;
  			iVar1 = 750;
  			break;
  		
  		case 50:
  			StringCopy(&Var2, "FEET_P2_18_14", 16);
  			iVar6 = 18;
  			iVar7 = 14;
  			iVar1 = 770;
  			break;
  		
  		case 51:
  			StringCopy(&Var2, "FEET_P2_18_15", 16);
  			iVar6 = 18;
  			iVar7 = 15;
  			iVar1 = 860;
  			break;
  		
  		case 52:
  			StringCopy(&Var2, "FEET_P2_19_0", 16);
  			iVar6 = 19;
  			iVar7 = 0;
  			iVar1 = 850;
  			break;
  		
  		case 53:
  			StringCopy(&Var2, "FEET_P2_19_1", 16);
  			iVar6 = 19;
  			iVar7 = 1;
  			iVar1 = 800;
  			break;
  		
  		case 54:
  			StringCopy(&Var2, "FEET_P2_19_2", 16);
  			iVar6 = 19;
  			iVar7 = 2;
  			iVar1 = 780;
  			break;
  		
  		case 55:
  			StringCopy(&Var2, "FEET_P2_19_3", 16);
  			iVar6 = 19;
  			iVar7 = 3;
  			iVar1 = 890;
  			break;
  		
  		case 56:
  			StringCopy(&Var2, "FEET_P2_19_4", 16);
  			iVar6 = 19;
  			iVar7 = 4;
  			iVar1 = 820;
  			break;
  		
  		case 57:
  			StringCopy(&Var2, "FEET_P2_19_5", 16);
  			iVar6 = 19;
  			iVar7 = 5;
  			iVar1 = 840;
  			break;
  		
  		case 58:
  			StringCopy(&Var2, "FEET_P2_19_6", 16);
  			iVar6 = 19;
  			iVar7 = 6;
  			iVar1 = 870;
  			break;
  		
  		case 59:
  			StringCopy(&Var2, "FEET_P2_19_7", 16);
  			iVar6 = 19;
  			iVar7 = 7;
  			iVar1 = 930;
  			break;
  		
  		case 60:
  			StringCopy(&Var2, "FEET_P2_19_8", 16);
  			iVar6 = 19;
  			iVar7 = 8;
  			iVar1 = 880;
  			break;
  		
  		case 61:
  			StringCopy(&Var2, "FEET_P2_19_9", 16);
  			iVar6 = 19;
  			iVar7 = 9;
  			iVar1 = 900;
  			break;
  		
  		case 62:
  			StringCopy(&Var2, "FEET_P2_19_10", 16);
  			iVar6 = 19;
  			iVar7 = 10;
  			iVar1 = 920;
  			break;
  		
  		case 63:
  			StringCopy(&Var2, "FEET_P2_19_11", 16);
  			iVar6 = 19;
  			iVar7 = 11;
  			iVar1 = 970;
  			break;
  		
  		case 64:
  			StringCopy(&Var2, "FEET_P2_19_12", 16);
  			iVar6 = 19;
  			iVar7 = 12;
  			iVar1 = 990;
  			break;
  		
  		case 65:
  			StringCopy(&Var2, "FEET_P2_19_13", 16);
  			iVar6 = 19;
  			iVar7 = 13;
  			iVar1 = 960;
  			break;
  		
  		case 66:
  			StringCopy(&Var2, "FEET_P2_19_14", 16);
  			iVar6 = 19;
  			iVar7 = 14;
  			iVar1 = 980;
  			break;
  		
  		case 67:
  			StringCopy(&Var2, "FEET_P2_19_15", 16);
  			iVar6 = 19;
  			iVar7 = 15;
  			iVar1 = 950;
  			break;
  		
  		case 68:
  			StringCopy(&Var2, "FEET_P2_20_0", 16);
  			iVar6 = 20;
  			iVar7 = 0;
  			iVar1 = 110;
  			break;
  		
  		case 69:
  			StringCopy(&Var2, "FEET_P2_20_1", 16);
  			iVar6 = 20;
  			iVar7 = 1;
  			iVar1 = 115;
  			break;
  		
  		case 70:
  			StringCopy(&Var2, "FEET_P2_20_2", 16);
  			iVar6 = 20;
  			iVar7 = 2;
  			iVar1 = 120;
  			break;
  		
  		case 71:
  			StringCopy(&Var2, "FEET_P2_20_3", 16);
  			iVar6 = 20;
  			iVar7 = 3;
  			iVar1 = 110;
  			break;
  		
  		case 72:
  			StringCopy(&Var2, "FEET_P2_20_4", 16);
  			iVar6 = 20;
  			iVar7 = 4;
  			iVar1 = 125;
  			break;
  		
  		case 73:
  			StringCopy(&Var2, "FEET_P2_20_5", 16);
  			iVar6 = 20;
  			iVar7 = 5;
  			iVar1 = 128;
  			break;
  		
  		case 74:
  			StringCopy(&Var2, "FEET_P2_20_6", 16);
  			iVar6 = 20;
  			iVar7 = 6;
  			iVar1 = 135;
  			break;
  		
  		case 75:
  			StringCopy(&Var2, "FEET_P2_20_7", 16);
  			iVar6 = 20;
  			iVar7 = 7;
  			iVar1 = 130;
  			break;
  		
  		case 76:
  			StringCopy(&Var2, "FEET_P2_20_8", 16);
  			iVar6 = 20;
  			iVar7 = 8;
  			iVar1 = 145;
  			break;
  		
  		case 77:
  			StringCopy(&Var2, "FEET_P2_20_9", 16);
  			iVar6 = 20;
  			iVar7 = 9;
  			iVar1 = 110;
  			break;
  		
  		case 78:
  			StringCopy(&Var2, "FEET_P2_20_10", 16);
  			iVar6 = 20;
  			iVar7 = 10;
  			iVar1 = 120;
  			break;
  		
  		case joaat("mpsv_lp0_31"):
  			StringCopy(&Var2, "FEET_P2_20_11", 16);
  			iVar6 = 20;
  			iVar7 = 11;
  			iVar1 = 150;
  			break;
  		
  		case 80:
  			StringCopy(&Var2, "FEET_P2_20_12", 16);
  			iVar6 = 20;
  			iVar7 = 12;
  			iVar1 = 125;
  			break;
  		
  		case 81:
  			StringCopy(&Var2, "FEET_P2_20_13", 16);
  			iVar6 = 20;
  			iVar7 = 13;
  			iVar1 = 120;
  			break;
  		
  		case 82:
  			StringCopy(&Var2, "FEET_P2_20_14", 16);
  			iVar6 = 20;
  			iVar7 = 14;
  			iVar1 = 130;
  			break;
  		
  		case 83:
  			StringCopy(&Var2, "FEET_P2_20_15", 16);
  			iVar6 = 20;
  			iVar7 = 15;
  			iVar1 = 110;
  			break;
  		
  		default:
  			func_269(iVar10, iParam0, 84, -1);
  			return;
  			break;
  	}
  	func_263(&(Global_77669[0 /*14*/]), iVar10, iParam0, &Var2, iVar6, iVar7, iVar1, bVar0, iVar8, iVar9, 0);
  }
  
  void func_280(int iParam0)
  {
  	bool bVar0;
  	int iVar1;
  	struct<2> Var2;
  	int iVar6;
  	int iVar7;
  	int iVar8;
  	int iVar9;
  	int iVar10;
  	
  	bVar0 = false;
  	iVar1 = 10;
  	iVar6 = 0;
  	iVar7 = 0;
  	iVar8 = -1;
  	iVar9 = 2;
  	iVar10 = 4;
  	Global_77669[0 /*14*/].f_5 = 2;
  	switch (iParam0)
  	{
  		case 0:
  			StringCopy(&Var2, "LEGS_P2_0_0", 16);
  			iVar6 = 0;
  			iVar7 = 0;
  			break;
  		
  		case 1:
  			StringCopy(&Var2, "LEGS_P2_0_1", 16);
  			iVar6 = 0;
  			iVar7 = 1;
  			iVar1 = 95;
  			break;
  		
  		case 2:
  			StringCopy(&Var2, "LEGS_P2_0_2", 16);
  			iVar6 = 0;
  			iVar7 = 2;
  			iVar1 = 129;
  			break;
  		
  		case 3:
  			StringCopy(&Var2, "LEGS_P2_0_3", 16);
  			iVar6 = 0;
  			iVar7 = 3;
  			iVar1 = 115;
  			break;
  		
  		case 4:
  			StringCopy(&Var2, "NO_LABEL", 16);
  			iVar6 = 1;
  			iVar7 = 0;
  			bVar0 = true;
  			break;
  		
  		case 5:
  			StringCopy(&Var2, "NO_LABEL", 16);
  			iVar6 = 2;
  			iVar7 = 0;
  			bVar0 = true;
  			break;
  		
  		case 6:
  			StringCopy(&Var2, "NO_LABEL", 16);
  			iVar6 = 3;
  			iVar7 = 0;
  			bVar0 = true;
  			break;
  		
  		case 7:
  			StringCopy(&Var2, "NO_LABEL", 16);
  			iVar6 = 4;
  			iVar7 = 0;
  			bVar0 = true;
  			break;
  		
  		case 8:
  			StringCopy(&Var2, "NO_LABEL", 16);
  			iVar6 = 5;
  			iVar7 = 0;
  			bVar0 = true;
  			break;
  		
  		case 9:
  			StringCopy(&Var2, "NO_LABEL", 16);
  			iVar6 = 5;
  			iVar7 = 1;
  			bVar0 = true;
  			break;
  		
  		case 10:
  			StringCopy(&Var2, "NO_LABEL", 16);
  			iVar6 = 5;
  			iVar7 = 2;
  			bVar0 = true;
  			break;
  		
  		case 11:
  			StringCopy(&Var2, "NO_LABEL", 16);
  			iVar6 = 5;
  			iVar7 = 3;
  			bVar0 = true;
  			break;
  		
  		case 12:
  			StringCopy(&Var2, "NO_LABEL", 16);
  			iVar6 = 5;
  			iVar7 = 4;
  			bVar0 = true;
  			break;
  		
  		case 13:
  			StringCopy(&Var2, "NO_LABEL", 16);
  			iVar6 = 6;
  			iVar7 = 0;
  			bVar0 = true;
  			break;
  		
  		case 14:
  			StringCopy(&Var2, "NO_LABEL", 16);
  			iVar6 = 7;
  			iVar7 = 0;
  			bVar0 = true;
  			break;
  		
  		case 15:
  			StringCopy(&Var2, "NO_LABEL", 16);
  			iVar6 = 8;
  			iVar7 = 0;
  			bVar0 = true;
  			break;
  		
  		case 16:
  			StringCopy(&Var2, "NO_LABEL", 16);
  			iVar6 = 9;
  			iVar7 = 0;
  			bVar0 = true;
  			break;
  		
  		case 17:
  			StringCopy(&Var2, "NO_LABEL", 16);
  			iVar6 = 10;
  			iVar7 = 0;
  			bVar0 = true;
  			break;
  		
  		case 18:
  			StringCopy(&Var2, "LEGS_P2_11_0", 16);
  			iVar6 = 11;
  			iVar7 = 0;
  			break;
  		
  		case 19:
  			StringCopy(&Var2, "LEGS_P2_11_1", 16);
  			iVar6 = 11;
  			iVar7 = 1;
  			iVar1 = 750;
  			break;
  		
  		case 20:
  			StringCopy(&Var2, "LEGS_P2_11_2", 16);
  			iVar6 = 11;
  			iVar7 = 2;
  			iVar1 = 650;
  			break;
  		
  		case 21:
  			StringCopy(&Var2, "LEGS_P2_11_3", 16);
  			iVar6 = 11;
  			iVar7 = 3;
  			iVar1 = 850;
  			break;
  		
  		case 22:
  			StringCopy(&Var2, "LEGS_P2_11_4", 16);
  			iVar6 = 11;
  			iVar7 = 4;
  			iVar1 = 850;
  			break;
  		
  		case 23:
  			StringCopy(&Var2, "LEGS_P2_11_5", 16);
  			iVar6 = 11;
  			iVar7 = 5;
  			iVar1 = 750;
  			break;
  		
  		case 24:
  			StringCopy(&Var2, "LEGS_P2_11_6", 16);
  			iVar6 = 11;
  			iVar7 = 6;
  			iVar1 = 690;
  			break;
  		
  		case 25:
  			StringCopy(&Var2, "LEGS_P2_11_7", 16);
  			iVar6 = 11;
  			iVar7 = 7;
  			iVar1 = 820;
  			break;
  		
  		case 26:
  			StringCopy(&Var2, "LEGS_P2_11_8", 16);
  			iVar6 = 11;
  			iVar7 = 8;
  			iVar1 = 650;
  			break;
  		
  		case 27:
  			StringCopy(&Var2, "LEGS_P2_11_9", 16);
  			iVar6 = 11;
  			iVar7 = 9;
  			iVar1 = 690;
  			break;
  		
  		case 28:
  			StringCopy(&Var2, "LEGS_P2_11_10", 16);
  			iVar6 = 11;
  			iVar7 = 10;
  			iVar1 = 690;
  			break;
  		
  		case 29:
  			StringCopy(&Var2, "LEGS_P2_11_11", 16);
  			iVar6 = 11;
  			iVar7 = 11;
  			iVar1 = 820;
  			break;
  		
  		case 30:
  			StringCopy(&Var2, "NO_LABEL", 16);
  			iVar6 = 12;
  			iVar7 = 0;
  			bVar0 = true;
  			break;
  		
  		case 31:
  			StringCopy(&Var2, "NO_LABEL", 16);
  			iVar6 = 13;
  			iVar7 = 0;
  			bVar0 = true;
  			break;
  		
  		case 32:
  			StringCopy(&Var2, "LEGS_P2_14_0", 16);
  			iVar6 = 14;
  			iVar7 = 0;
  			break;
  		
  		case 33:
  			StringCopy(&Var2, "LEGS_P2_15_0", 16);
  			iVar6 = 15;
  			iVar7 = 0;
  			break;
  		
  		case 34:
  			StringCopy(&Var2, "LEGS_P2_16_0", 16);
  			iVar6 = 16;
  			iVar7 = 0;
  			bVar0 = true;
  			break;
  		
  		case 35:
  			StringCopy(&Var2, "LEGS_P2_17_0", 16);
  			iVar6 = 17;
  			iVar7 = 0;
  			iVar1 = 58;
  			break;
  		
  		case 36:
  			StringCopy(&Var2, "LEGS_P2_17_1", 16);
  			iVar6 = 17;
  			iVar7 = 1;
  			iVar1 = 68;
  			break;
  		
  		case 37:
  			StringCopy(&Var2, "LEGS_P2_17_2", 16);
  			iVar6 = 17;
  			iVar7 = 2;
  			iVar1 = 65;
  			break;
  		
  		case 38:
  			StringCopy(&Var2, "LEGS_P2_17_3", 16);
  			iVar6 = 17;
  			iVar7 = 3;
  			iVar1 = 60;
  			break;
  		
  		case 39:
  			StringCopy(&Var2, "LEGS_P2_17_4", 16);
  			iVar6 = 17;
  			iVar7 = 4;
  			iVar1 = 65;
  			break;
  		
  		case 40:
  			StringCopy(&Var2, "LEGS_P2_17_5", 16);
  			iVar6 = 17;
  			iVar7 = 5;
  			iVar1 = 63;
  			break;
  		
  		case 41:
  			StringCopy(&Var2, "LEGS_P2_17_6", 16);
  			iVar6 = 17;
  			iVar7 = 6;
  			iVar1 = 60;
  			break;
  		
  		case 42:
  			StringCopy(&Var2, "LEGS_P2_17_7", 16);
  			iVar6 = 17;
  			iVar7 = 7;
  			iVar1 = 58;
  			break;
  		
  		case 43:
  			StringCopy(&Var2, "LEGS_P2_18_0", 16);
  			iVar6 = 18;
  			iVar7 = 0;
  			break;
  		
  		case 44:
  			StringCopy(&Var2, "LEGS_P2_18_1", 16);
  			iVar6 = 18;
  			iVar7 = 1;
  			break;
  		
  		case 45:
  			StringCopy(&Var2, "LEGS_P2_18_2", 16);
  			iVar6 = 18;
  			iVar7 = 2;
  			iVar1 = 99;
  			break;
  		
  		case 46:
  			StringCopy(&Var2, "LEGS_P2_18_3", 16);
  			iVar6 = 18;
  			iVar7 = 3;
  			iVar1 = 105;
  			break;
  		
  		case 47:
  			StringCopy(&Var2, "LEGS_P2_18_4", 16);
  			iVar6 = 18;
  			iVar7 = 4;
  			iVar1 = 110;
  			break;
  		
  		case 48:
  			StringCopy(&Var2, "LEGS_P2_18_5", 16);
  			iVar6 = 18;
  			iVar7 = 5;
  			iVar1 = 110;
  			break;
  		
  		case 49:
  			StringCopy(&Var2, "LEGS_P2_18_6", 16);
  			iVar6 = 18;
  			iVar7 = 6;
  			iVar1 = 99;
  			break;
  		
  		case 50:
  			StringCopy(&Var2, "LEGS_P2_18_7", 16);
  			iVar6 = 18;
  			iVar7 = 7;
  			iVar1 = 110;
  			break;
  		
  		case 51:
  			StringCopy(&Var2, "LEGS_P2_18_8", 16);
  			iVar6 = 18;
  			iVar7 = 8;
  			iVar1 = 110;
  			break;
  		
  		case 52:
  			StringCopy(&Var2, "LEGS_P2_18_9", 16);
  			iVar6 = 18;
  			iVar7 = 9;
  			iVar1 = 105;
  			break;
  		
  		case 53:
  			StringCopy(&Var2, "LEGS_P2_18_10", 16);
  			iVar6 = 18;
  			iVar7 = 10;
  			iVar1 = 105;
  			break;
  		
  		case 54:
  			StringCopy(&Var2, "LEGS_P2_19_0", 16);
  			iVar6 = 19;
  			iVar7 = 0;
  			iVar1 = 15;
  			break;
  		
  		case 55:
  			StringCopy(&Var2, "LEGS_P2_19_1", 16);
  			iVar6 = 19;
  			iVar7 = 1;
  			iVar1 = 15;
  			break;
  		
  		case 56:
  			StringCopy(&Var2, "LEGS_P2_19_2", 16);
  			iVar6 = 19;
  			iVar7 = 2;
  			iVar1 = 15;
  			break;
  		
  		case 57:
  			StringCopy(&Var2, "LEGS_P2_19_3", 16);
  			iVar6 = 19;
  			iVar7 = 3;
  			iVar1 = 15;
  			break;
  		
  		case 58:
  			StringCopy(&Var2, "LEGS_P2_19_4", 16);
  			iVar6 = 19;
  			iVar7 = 4;
  			iVar1 = 15;
  			break;
  		
  		case 59:
  			StringCopy(&Var2, "LEGS_P2_19_5", 16);
  			iVar6 = 19;
  			iVar7 = 5;
  			iVar1 = 15;
  			break;
  		
  		case 60:
  			StringCopy(&Var2, "LEGS_P2_19_6", 16);
  			iVar6 = 19;
  			iVar7 = 6;
  			iVar1 = 15;
  			break;
  		
  		case 61:
  			StringCopy(&Var2, "LEGS_P2_19_7", 16);
  			iVar6 = 19;
  			iVar7 = 7;
  			iVar1 = 15;
  			break;
  		
  		case 62:
  			StringCopy(&Var2, "LEGS_P2_20_0", 16);
  			iVar6 = 20;
  			iVar7 = 0;
  			iVar1 = 600;
  			break;
  		
  		case 63:
  			StringCopy(&Var2, "LEGS_P2_20_1", 16);
  			iVar6 = 20;
  			iVar7 = 1;
  			iVar1 = 600;
  			break;
  		
  		case 64:
  			StringCopy(&Var2, "LEGS_P2_20_2", 16);
  			iVar6 = 20;
  			iVar7 = 2;
  			iVar1 = 600;
  			break;
  		
  		case 65:
  			StringCopy(&Var2, "LEGS_P2_20_3", 16);
  			iVar6 = 20;
  			iVar7 = 3;
  			iVar1 = 600;
  			break;
  		
  		case 66:
  			StringCopy(&Var2, "LEGS_P2_20_4", 16);
  			iVar6 = 20;
  			iVar7 = 4;
  			iVar1 = 600;
  			break;
  		
  		case 67:
  			StringCopy(&Var2, "LEGS_P2_20_5", 16);
  			iVar6 = 20;
  			iVar7 = 5;
  			iVar1 = 600;
  			break;
  		
  		case 68:
  			StringCopy(&Var2, "LEGS_P2_20_6", 16);
  			iVar6 = 20;
  			iVar7 = 6;
  			iVar1 = 600;
  			break;
  		
  		case 69:
  			StringCopy(&Var2, "LEGS_P2_20_7", 16);
  			iVar6 = 20;
  			iVar7 = 7;
  			iVar1 = 600;
  			break;
  		
  		case 70:
  			StringCopy(&Var2, "LEGS_P2_20_8", 16);
  			iVar6 = 20;
  			iVar7 = 8;
  			iVar1 = 600;
  			break;
  		
  		case 71:
  			StringCopy(&Var2, "LEGS_P2_21_0", 16);
  			iVar6 = 21;
  			iVar7 = 0;
  			iVar1 = 80;
  			break;
  		
  		case 72:
  			StringCopy(&Var2, "LEGS_P2_21_1", 16);
  			iVar6 = 21;
  			iVar7 = 1;
  			iVar1 = 80;
  			break;
  		
  		case 73:
  			StringCopy(&Var2, "LEGS_P2_21_2", 16);
  			iVar6 = 21;
  			iVar7 = 2;
  			iVar1 = 80;
  			break;
  		
  		case 74:
  			StringCopy(&Var2, "LEGS_P2_21_3", 16);
  			iVar6 = 21;
  			iVar7 = 3;
  			iVar1 = 80;
  			break;
  		
  		case 75:
  			StringCopy(&Var2, "LEGS_P2_21_4", 16);
  			iVar6 = 21;
  			iVar7 = 4;
  			iVar1 = 80;
  			break;
  		
  		case 76:
  			StringCopy(&Var2, "LEGS_P2_21_5", 16);
  			iVar6 = 21;
  			iVar7 = 5;
  			iVar1 = 80;
  			break;
  		
  		case 77:
  			StringCopy(&Var2, "LEGS_P2_21_6", 16);
  			iVar6 = 21;
  			iVar7 = 6;
  			iVar1 = 80;
  			break;
  		
  		case 78:
  			StringCopy(&Var2, "LEGS_P2_21_7", 16);
  			iVar6 = 21;
  			iVar7 = 7;
  			iVar1 = 80;
  			break;
  		
  		case joaat("mpsv_lp0_31"):
  			StringCopy(&Var2, "LEGS_P2_21_8", 16);
  			iVar6 = 21;
  			iVar7 = 8;
  			iVar1 = 80;
  			break;
  		
  		case 80:
  			StringCopy(&Var2, "LEGS_P2_21_9", 16);
  			iVar6 = 21;
  			iVar7 = 9;
  			iVar1 = 80;
  			break;
  		
  		case 81:
  			StringCopy(&Var2, "LEGS_P2_22_0", 16);
  			iVar6 = 22;
  			iVar7 = 0;
  			break;
  		
  		case 82:
  			StringCopy(&Var2, "LEGS_P2_22_1", 16);
  			iVar6 = 22;
  			iVar7 = 1;
  			iVar1 = 12;
  			break;
  		
  		case 83:
  			StringCopy(&Var2, "LEGS_P2_22_2", 16);
  			iVar6 = 22;
  			iVar7 = 2;
  			iVar1 = 12;
  			break;
  		
  		case 84:
  			StringCopy(&Var2, "LEGS_P2_22_3", 16);
  			iVar6 = 22;
  			iVar7 = 3;
  			iVar1 = 22;
  			break;
  		
  		case 85:
  			StringCopy(&Var2, "LEGS_P2_22_4", 16);
  			iVar6 = 22;
  			iVar7 = 4;
  			iVar1 = 18;
  			break;
  		
  		case 86:
  			StringCopy(&Var2, "LEGS_P2_22_5", 16);
  			iVar6 = 22;
  			iVar7 = 5;
  			iVar1 = 20;
  			break;
  		
  		case 87:
  			StringCopy(&Var2, "LEGS_P2_22_6", 16);
  			iVar6 = 22;
  			iVar7 = 6;
  			iVar1 = 30;
  			break;
  		
  		case 88:
  			StringCopy(&Var2, "LEGS_P2_22_7", 16);
  			iVar6 = 22;
  			iVar7 = 7;
  			iVar1 = 30;
  			break;
  		
  		case 89:
  			StringCopy(&Var2, "LEGS_P2_22_8", 16);
  			iVar6 = 22;
  			iVar7 = 8;
  			iVar1 = 30;
  			break;
  		
  		case 90:
  			StringCopy(&Var2, "LEGS_P2_22_9", 16);
  			iVar6 = 22;
  			iVar7 = 9;
  			iVar1 = 30;
  			break;
  		
  		case 91:
  			StringCopy(&Var2, "LEGS_P2_23_0", 16);
  			iVar6 = 23;
  			iVar7 = 0;
  			break;
  		
  		case 92:
  			StringCopy(&Var2, "LEGS_P2_24_0", 16);
  			iVar6 = 24;
  			iVar7 = 0;
  			break;
  		
  		case 93:
  			StringCopy(&Var2, "NO_LABEL", 16);
  			iVar6 = 25;
  			iVar7 = 0;
  			bVar0 = true;
  			break;
  		
  		case 94:
  			StringCopy(&Var2, "NO_LABEL", 16);
  			iVar6 = 26;
  			iVar7 = 0;
  			break;
  		
  		case 95:
  			StringCopy(&Var2, "NO_LABEL", 16);
  			iVar6 = 26;
  			iVar7 = 1;
  			break;
  		
  		case 96:
  			StringCopy(&Var2, "NO_LABEL", 16);
  			iVar6 = 26;
  			iVar7 = 2;
  			break;
  		
  		case 97:
  			StringCopy(&Var2, "NO_LABEL", 16);
  			iVar6 = 26;
  			iVar7 = 3;
  			break;
  		
  		case 98:
  			StringCopy(&Var2, "NO_LABEL", 16);
  			iVar6 = 26;
  			iVar7 = 4;
  			break;
  		
  		case 99:
  			StringCopy(&Var2, "NO_LABEL", 16);
  			iVar6 = 26;
  			iVar7 = 5;
  			break;
  		
  		case 100:
  			StringCopy(&Var2, "NO_LABEL", 16);
  			iVar6 = 26;
  			iVar7 = 6;
  			break;
  		
  		case 101:
  			StringCopy(&Var2, "NO_LABEL", 16);
  			iVar6 = 26;
  			iVar7 = 7;
  			break;
  		
  		case 102:
  			StringCopy(&Var2, "NO_LABEL", 16);
  			iVar6 = 26;
  			iVar7 = 8;
  			break;
  		
  		case 103:
  			StringCopy(&Var2, "NO_LABEL", 16);
  			iVar6 = 26;
  			iVar7 = 9;
  			break;
  		
  		default:
  			func_269(iVar10, iParam0, 104, -1);
  			return;
  			break;
  	}
  	func_263(&(Global_77669[0 /*14*/]), iVar10, iParam0, &Var2, iVar6, iVar7, iVar1, bVar0, iVar8, iVar9, 0);
  }
  
  void func_281(int iParam0)
  {
  	if (iParam0 < 136)
  	{
  		func_283(iParam0);
  	}
  	else
  	{
  		func_282(iParam0);
  	}
  	if (Global_77669[0 /*14*/].f_2 == -1)
  	{
  		func_269(3, iParam0, 242, -1);
  	}
  }
  
  void func_282(int iParam0)
  {
  	bool bVar0;
  	int iVar1;
  	struct<2> Var2;
  	int iVar6;
  	int iVar7;
  	int iVar8;
  	int iVar9;
  	int iVar10;
  	
  	bVar0 = false;
  	iVar1 = 10;
  	iVar6 = 0;
  	iVar7 = 0;
  	iVar8 = -1;
  	iVar9 = 2;
  	iVar10 = 3;
  	Global_77669[0 /*14*/].f_5 = 2;
  	switch (iParam0)
  	{
  		case 136:
  			StringCopy(&Var2, "TORSO_P2_21_0", 16);
  			iVar6 = 21;
  			iVar7 = 0;
  			iVar1 = 32;
  			break;
  		
  		case 137:
  			StringCopy(&Var2, "TORSO_P2_21_1", 16);
  			iVar6 = 21;
  			iVar7 = 1;
  			iVar1 = 39;
  			break;
  		
  		case 138:
  			StringCopy(&Var2, "TORSO_P2_21_2", 16);
  			iVar6 = 21;
  			iVar7 = 2;
  			iVar1 = 40;
  			break;
  		
  		case 139:
  			StringCopy(&Var2, "TORSO_P2_21_3", 16);
  			iVar6 = 21;
  			iVar7 = 3;
  			iVar1 = 42;
  			break;
  		
  		case 140:
  			StringCopy(&Var2, "TORSO_P2_21_4", 16);
  			iVar6 = 21;
  			iVar7 = 4;
  			iVar1 = 45;
  			break;
  		
  		case 141:
  			StringCopy(&Var2, "TORSO_P2_21_5", 16);
  			iVar6 = 21;
  			iVar7 = 5;
  			iVar1 = 48;
  			break;
  		
  		case 142:
  			StringCopy(&Var2, "TORSO_P2_21_6", 16);
  			iVar6 = 21;
  			iVar7 = 6;
  			iVar1 = 52;
  			break;
  		
  		case 143:
  			StringCopy(&Var2, "TORSO_P2_21_7", 16);
  			iVar6 = 21;
  			iVar7 = 7;
  			iVar1 = 55;
  			break;
  		
  		case 144:
  			StringCopy(&Var2, "TORSO_P2_22_0", 16);
  			iVar6 = 22;
  			iVar7 = 0;
  			iVar1 = 390;
  			break;
  		
  		case 145:
  			StringCopy(&Var2, "TORSO_P2_22_1", 16);
  			iVar6 = 22;
  			iVar7 = 1;
  			iVar1 = 390;
  			break;
  		
  		case 146:
  			StringCopy(&Var2, "TORSO_P2_22_2", 16);
  			iVar6 = 22;
  			iVar7 = 2;
  			iVar1 = 560;
  			break;
  		
  		case 147:
  			StringCopy(&Var2, "TORSO_P2_22_3", 16);
  			iVar6 = 22;
  			iVar7 = 3;
  			iVar1 = 390;
  			break;
  		
  		case 148:
  			StringCopy(&Var2, "TORSO_P2_22_4", 16);
  			iVar6 = 22;
  			iVar7 = 4;
  			iVar1 = 390;
  			break;
  		
  		case 149:
  			StringCopy(&Var2, "TORSO_P2_22_5", 16);
  			iVar6 = 22;
  			iVar7 = 5;
  			iVar1 = 390;
  			break;
  		
  		case 150:
  			StringCopy(&Var2, "TORSO_P2_22_6", 16);
  			iVar6 = 22;
  			iVar7 = 6;
  			iVar1 = 560;
  			break;
  		
  		case 151:
  			StringCopy(&Var2, "TORSO_P2_22_7", 16);
  			iVar6 = 22;
  			iVar7 = 7;
  			iVar1 = 390;
  			break;
  		
  		case 152:
  			StringCopy(&Var2, "TORSO_P2_22_8", 16);
  			iVar6 = 22;
  			iVar7 = 8;
  			iVar1 = 390;
  			break;
  		
  		case 153:
  			StringCopy(&Var2, "TORSO_P2_22_9", 16);
  			iVar6 = 22;
  			iVar7 = 9;
  			iVar1 = 390;
  			break;
  		
  		case 154:
  			StringCopy(&Var2, "TORSO_P2_22_10", 16);
  			iVar6 = 22;
  			iVar7 = 10;
  			iVar1 = 390;
  			break;
  		
  		case 155:
  			StringCopy(&Var2, "TORSO_P2_22_11", 16);
  			iVar6 = 22;
  			iVar7 = 11;
  			iVar1 = 3950;
  			break;
  		
  		case 156:
  			StringCopy(&Var2, "TORSO_P2_23_0", 16);
  			iVar6 = 23;
  			iVar7 = 0;
  			iVar1 = 150;
  			break;
  		
  		case 157:
  			StringCopy(&Var2, "TORSO_P2_23_1", 16);
  			iVar6 = 23;
  			iVar7 = 1;
  			break;
  		
  		case 158:
  			StringCopy(&Var2, "TORSO_P2_23_2", 16);
  			iVar6 = 23;
  			iVar7 = 2;
  			iVar1 = 150;
  			break;
  		
  		case 159:
  			StringCopy(&Var2, "TORSO_P2_23_3", 16);
  			iVar6 = 23;
  			iVar7 = 3;
  			iVar1 = 150;
  			break;
  		
  		case 160:
  			StringCopy(&Var2, "TORSO_P2_23_4", 16);
  			iVar6 = 23;
  			iVar7 = 4;
  			iVar1 = 160;
  			break;
  		
  		case 161:
  			StringCopy(&Var2, "TORSO_P2_23_5", 16);
  			iVar6 = 23;
  			iVar7 = 5;
  			break;
  		
  		case 162:
  			StringCopy(&Var2, "TORSO_P2_24_0", 16);
  			iVar6 = 24;
  			iVar7 = 0;
  			iVar1 = 19;
  			break;
  		
  		case 163:
  			StringCopy(&Var2, "TORSO_P2_24_1", 16);
  			iVar6 = 24;
  			iVar7 = 1;
  			iVar1 = 20;
  			break;
  		
  		case 164:
  			StringCopy(&Var2, "TORSO_P2_24_2", 16);
  			iVar6 = 24;
  			iVar7 = 2;
  			iVar1 = 19;
  			break;
  		
  		case 165:
  			StringCopy(&Var2, "TORSO_P2_24_3", 16);
  			iVar6 = 24;
  			iVar7 = 3;
  			iVar1 = 22;
  			break;
  		
  		case 166:
  			StringCopy(&Var2, "TORSO_P2_24_4", 16);
  			iVar6 = 24;
  			iVar7 = 4;
  			iVar1 = 20;
  			break;
  		
  		case 167:
  			StringCopy(&Var2, "TORSO_P2_24_5", 16);
  			iVar6 = 24;
  			iVar7 = 5;
  			iVar1 = 28;
  			break;
  		
  		case 168:
  			StringCopy(&Var2, "TORSO_P2_24_6", 16);
  			iVar6 = 24;
  			iVar7 = 6;
  			iVar1 = 28;
  			break;
  		
  		case 169:
  			StringCopy(&Var2, "TORSO_P2_24_7", 16);
  			iVar6 = 24;
  			iVar7 = 7;
  			iVar1 = 25;
  			break;
  		
  		case 170:
  			StringCopy(&Var2, "TORSO_P2_24_8", 16);
  			iVar6 = 24;
  			iVar7 = 8;
  			iVar1 = 22;
  			break;
  		
  		case 171:
  			StringCopy(&Var2, "TORSO_P2_24_9", 16);
  			iVar6 = 24;
  			iVar7 = 9;
  			iVar1 = 19;
  			break;
  		
  		case 172:
  			StringCopy(&Var2, "TORSO_P2_24_10", 16);
  			iVar6 = 24;
  			iVar7 = 10;
  			iVar1 = 22;
  			break;
  		
  		case 173:
  			StringCopy(&Var2, "TORSO_P2_24_11", 16);
  			iVar6 = 24;
  			iVar7 = 11;
  			iVar1 = 19;
  			break;
  		
  		case 174:
  			StringCopy(&Var2, "TORSO_P2_24_12", 16);
  			iVar6 = 24;
  			iVar7 = 12;
  			iVar1 = 20;
  			break;
  		
  		case 175:
  			StringCopy(&Var2, "TORSO_P2_24_13", 16);
  			iVar6 = 24;
  			iVar7 = 13;
  			iVar1 = 25;
  			break;
  		
  		case 176:
  			StringCopy(&Var2, "TORSO_P2_24_14", 16);
  			iVar6 = 24;
  			iVar7 = 14;
  			iVar1 = 20;
  			break;
  		
  		case 177:
  			StringCopy(&Var2, "TORSO_P2_24_15", 16);
  			iVar6 = 24;
  			iVar7 = 15;
  			iVar1 = 28;
  			break;
  		
  		case 178:
  			StringCopy(&Var2, "TORSO_P2_25_0", 16);
  			iVar6 = 25;
  			iVar7 = 0;
  			iVar1 = 35;
  			break;
  		
  		case 179:
  			StringCopy(&Var2, "TORSO_P2_25_1", 16);
  			iVar6 = 25;
  			iVar7 = 1;
  			iVar1 = 40;
  			break;
  		
  		case 180:
  			StringCopy(&Var2, "TORSO_P2_25_2", 16);
  			iVar6 = 25;
  			iVar7 = 2;
  			iVar1 = 45;
  			break;
  		
  		case 181:
  			StringCopy(&Var2, "TORSO_P2_25_3", 16);
  			iVar6 = 25;
  			iVar7 = 3;
  			iVar1 = 45;
  			break;
  		
  		case 182:
  			StringCopy(&Var2, "TORSO_P2_25_4", 16);
  			iVar6 = 25;
  			iVar7 = 4;
  			iVar1 = 49;
  			break;
  		
  		case 183:
  			StringCopy(&Var2, "TORSO_P2_25_5", 16);
  			iVar6 = 25;
  			iVar7 = 5;
  			iVar1 = 820;
  			break;
  		
  		case 184:
  			StringCopy(&Var2, "TORSO_P2_25_6", 16);
  			iVar6 = 25;
  			iVar7 = 6;
  			iVar1 = 790;
  			break;
  		
  		case 185:
  			StringCopy(&Var2, "TORSO_P2_25_7", 16);
  			iVar6 = 25;
  			iVar7 = 7;
  			iVar1 = 820;
  			break;
  		
  		case 186:
  			StringCopy(&Var2, "TORSO_P2_25_8", 16);
  			iVar6 = 25;
  			iVar7 = 8;
  			iVar1 = 929;
  			break;
  		
  		case 187:
  			StringCopy(&Var2, "TORSO_P2_25_9", 16);
  			iVar6 = 25;
  			iVar7 = 9;
  			iVar1 = 40;
  			break;
  		
  		case 188:
  			StringCopy(&Var2, "TORSO_P2_25_10", 16);
  			iVar6 = 25;
  			iVar7 = 10;
  			iVar1 = 850;
  			break;
  		
  		case 189:
  			StringCopy(&Var2, "TORSO_P2_25_11", 16);
  			iVar6 = 25;
  			iVar7 = 11;
  			iVar1 = 790;
  			break;
  		
  		case 190:
  			StringCopy(&Var2, "TORSO_P2_26_0", 16);
  			iVar6 = 26;
  			iVar7 = 0;
  			break;
  		
  		case 191:
  			StringCopy(&Var2, "TORSO_P2_26_1", 16);
  			iVar6 = 26;
  			iVar7 = 1;
  			break;
  		
  		case 192:
  			StringCopy(&Var2, "TORSO_P2_26_2", 16);
  			iVar6 = 26;
  			iVar7 = 2;
  			break;
  		
  		case 193:
  			StringCopy(&Var2, "TORSO_P2_26_3", 16);
  			iVar6 = 26;
  			iVar7 = 3;
  			break;
  		
  		case 194:
  			StringCopy(&Var2, "TORSO_P2_26_4", 16);
  			iVar6 = 26;
  			iVar7 = 4;
  			break;
  		
  		case 195:
  			StringCopy(&Var2, "TORSO_P2_26_5", 16);
  			iVar6 = 26;
  			iVar7 = 5;
  			break;
  		
  		case 196:
  			StringCopy(&Var2, "TORSO_P2_26_6", 16);
  			iVar6 = 26;
  			iVar7 = 6;
  			break;
  		
  		case 197:
  			StringCopy(&Var2, "TORSO_P2_26_7", 16);
  			iVar6 = 26;
  			iVar7 = 7;
  			break;
  		
  		case 198:
  			StringCopy(&Var2, "TORSO_P2_26_8", 16);
  			iVar6 = 26;
  			iVar7 = 8;
  			break;
  		
  		case 199:
  			StringCopy(&Var2, "TORSO_P2_26_9", 16);
  			iVar6 = 26;
  			iVar7 = 9;
  			break;
  		
  		case 200:
  			StringCopy(&Var2, "TORSO_P2_27_0", 16);
  			iVar6 = 27;
  			iVar7 = 0;
  			iVar1 = 2200;
  			break;
  		
  		case 201:
  			StringCopy(&Var2, "TORSO_P2_27_1", 16);
  			iVar6 = 27;
  			iVar7 = 1;
  			iVar1 = 2500;
  			break;
  		
  		case 202:
  			StringCopy(&Var2, "TORSO_P2_27_2", 16);
  			iVar6 = 27;
  			iVar7 = 2;
  			iVar1 = 2500;
  			break;
  		
  		case 203:
  			StringCopy(&Var2, "TORSO_P2_27_3", 16);
  			iVar6 = 27;
  			iVar7 = 3;
  			iVar1 = 2200;
  			break;
  		
  		case 204:
  			StringCopy(&Var2, "TORSO_P2_27_4", 16);
  			iVar6 = 27;
  			iVar7 = 4;
  			iVar1 = 2500;
  			break;
  		
  		case 205:
  			StringCopy(&Var2, "TORSO_P2_27_5", 16);
  			iVar6 = 27;
  			iVar7 = 5;
  			iVar1 = 2500;
  			break;
  		
  		case 206:
  			StringCopy(&Var2, "TORSO_P2_27_6", 16);
  			iVar6 = 27;
  			iVar7 = 6;
  			iVar1 = 2200;
  			break;
  		
  		case 207:
  			StringCopy(&Var2, "TORSO_P2_28_0", 16);
  			iVar6 = 28;
  			iVar7 = 0;
  			iVar1 = 1100;
  			break;
  		
  		case 208:
  			StringCopy(&Var2, "TORSO_P2_28_1", 16);
  			iVar6 = 28;
  			iVar7 = 1;
  			iVar1 = 1200;
  			break;
  		
  		case 209:
  			StringCopy(&Var2, "TORSO_P2_28_2", 16);
  			iVar6 = 28;
  			iVar7 = 2;
  			iVar1 = 1220;
  			break;
  		
  		case 210:
  			StringCopy(&Var2, "TORSO_P2_28_3", 16);
  			iVar6 = 28;
  			iVar7 = 3;
  			iVar1 = 1250;
  			break;
  		
  		case 211:
  			StringCopy(&Var2, "TORSO_P2_28_4", 16);
  			iVar6 = 28;
  			iVar7 = 4;
  			iVar1 = 1300;
  			break;
  		
  		case 212:
  			StringCopy(&Var2, "TORSO_P2_28_5", 16);
  			iVar6 = 28;
  			iVar7 = 5;
  			iVar1 = 1360;
  			break;
  		
  		case 213:
  			StringCopy(&Var2, "TORSO_P2_28_6", 16);
  			iVar6 = 28;
  			iVar7 = 6;
  			iVar1 = 35;
  			break;
  		
  		case 214:
  			StringCopy(&Var2, "TORSO_P2_28_7", 16);
  			iVar6 = 28;
  			iVar7 = 7;
  			iVar1 = 38;
  			break;
  		
  		case 215:
  			StringCopy(&Var2, "TORSO_P2_28_8", 16);
  			iVar6 = 28;
  			iVar7 = 8;
  			iVar1 = 40;
  			break;
  		
  		case 216:
  			StringCopy(&Var2, "TORSO_P2_28_9", 16);
  			iVar6 = 28;
  			iVar7 = 9;
  			iVar1 = 42;
  			break;
  		
  		case 217:
  			StringCopy(&Var2, "TORSO_P2_28_10", 16);
  			iVar6 = 28;
  			iVar7 = 10;
  			iVar1 = 50;
  			break;
  		
  		case 218:
  			StringCopy(&Var2, "TORSO_P2_28_11", 16);
  			iVar6 = 28;
  			iVar7 = 11;
  			iVar1 = 45;
  			break;
  		
  		case 219:
  			StringCopy(&Var2, "TORSO_P2_28_12", 16);
  			iVar6 = 28;
  			iVar7 = 12;
  			iVar1 = 45;
  			break;
  		
  		case 220:
  			StringCopy(&Var2, "TORSO_P2_28_13", 16);
  			iVar6 = 28;
  			iVar7 = 13;
  			iVar1 = 44;
  			break;
  		
  		case 221:
  			StringCopy(&Var2, "TORSO_P2_28_14", 16);
  			iVar6 = 28;
  			iVar7 = 14;
  			iVar1 = 46;
  			break;
  		
  		case 222:
  			StringCopy(&Var2, "TORSO_P2_28_15", 16);
  			iVar6 = 28;
  			iVar7 = 15;
  			iVar1 = 52;
  			break;
  		
  		case 223:
  			StringCopy(&Var2, "TORSO_P2_29_0", 16);
  			iVar6 = 29;
  			iVar7 = 0;
  			iVar1 = 3200;
  			break;
  		
  		case 224:
  			StringCopy(&Var2, "TORSO_P2_29_1", 16);
  			iVar6 = 29;
  			iVar7 = 1;
  			iVar1 = 3200;
  			break;
  		
  		case 225:
  			StringCopy(&Var2, "TORSO_P2_29_2", 16);
  			iVar6 = 29;
  			iVar7 = 2;
  			iVar1 = 2550;
  			break;
  		
  		case 226:
  			StringCopy(&Var2, "TORSO_P2_29_3", 16);
  			iVar6 = 29;
  			iVar7 = 3;
  			iVar1 = 2750;
  			break;
  		
  		case 227:
  			StringCopy(&Var2, "TORSO_P2_29_4", 16);
  			iVar6 = 29;
  			iVar7 = 4;
  			iVar1 = 2590;
  			break;
  		
  		case 228:
  			StringCopy(&Var2, "TORSO_P2_29_5", 16);
  			iVar6 = 29;
  			iVar7 = 5;
  			iVar1 = 2750;
  			break;
  		
  		case 229:
  			StringCopy(&Var2, "TORSO_P2_29_6", 16);
  			iVar6 = 29;
  			iVar7 = 6;
  			iVar1 = 2550;
  			break;
  		
  		case 230:
  			StringCopy(&Var2, "TORSO_P2_29_7", 16);
  			iVar6 = 29;
  			iVar7 = 7;
  			iVar1 = 2590;
  			break;
  		
  		case 231:
  			StringCopy(&Var2, "TORSO_P2_29_8", 16);
  			iVar6 = 29;
  			iVar7 = 8;
  			iVar1 = 2720;
  			break;
  		
  		case 232:
  			StringCopy(&Var2, "TORSO_P2_29_9", 16);
  			iVar6 = 29;
  			iVar7 = 9;
  			iVar1 = 2750;
  			break;
  		
  		case 233:
  			StringCopy(&Var2, "TORSO_P2_30_0", 16);
  			iVar6 = 30;
  			iVar7 = 0;
  			iVar1 = 3250;
  			break;
  		
  		case 234:
  			StringCopy(&Var2, "TORSO_P2_30_1", 16);
  			iVar6 = 30;
  			iVar7 = 1;
  			iVar1 = 2950;
  			break;
  		
  		case 235:
  			StringCopy(&Var2, "TORSO_P2_30_2", 16);
  			iVar6 = 30;
  			iVar7 = 2;
  			iVar1 = 3100;
  			break;
  		
  		case 236:
  			StringCopy(&Var2, "TORSO_P2_30_3", 16);
  			iVar6 = 30;
  			iVar7 = 3;
  			iVar1 = 3150;
  			break;
  		
  		case 237:
  			StringCopy(&Var2, "TORSO_P2_30_4", 16);
  			iVar6 = 30;
  			iVar7 = 4;
  			iVar1 = 3240;
  			break;
  		
  		case 238:
  			StringCopy(&Var2, "TORSO_P2_30_5", 16);
  			iVar6 = 30;
  			iVar7 = 5;
  			iVar1 = 3350;
  			break;
  		
  		case 239:
  			StringCopy(&Var2, "TORSO_P2_30_6", 16);
  			iVar6 = 30;
  			iVar7 = 6;
  			iVar1 = 3400;
  			break;
  		
  		case 240:
  			StringCopy(&Var2, "TORSO_P2_30_7", 16);
  			iVar6 = 30;
  			iVar7 = 7;
  			iVar1 = 3280;
  			break;
  		
  		case 241:
  			StringCopy(&Var2, "TORSO_P2_31_0", 16);
  			iVar6 = 31;
  			iVar7 = 0;
  			break;
  		
  		default:
  			return;
  			break;
  	}
  	func_263(&(Global_77669[0 /*14*/]), iVar10, iParam0, &Var2, iVar6, iVar7, iVar1, bVar0, iVar8, iVar9, 0);
  }
  
  void func_283(int iParam0)
  {
  	bool bVar0;
  	int iVar1;
  	struct<2> Var2;
  	int iVar6;
  	int iVar7;
  	int iVar8;
  	int iVar9;
  	int iVar10;
  	
  	bVar0 = false;
  	iVar1 = 10;
  	iVar6 = 0;
  	iVar7 = 0;
  	iVar8 = -1;
  	iVar9 = 2;
  	iVar10 = 3;
  	Global_77669[0 /*14*/].f_5 = 2;
  	switch (iParam0)
  	{
  		case 0:
  			StringCopy(&Var2, "TORSO_P2_0_0", 16);
  			iVar6 = 0;
  			iVar7 = 0;
  			break;
  		
  		case 1:
  			StringCopy(&Var2, "TORSO_P2_0_1", 16);
  			iVar6 = 0;
  			iVar7 = 1;
  			iVar1 = 25;
  			break;
  		
  		case 2:
  			StringCopy(&Var2, "TORSO_P2_0_2", 16);
  			iVar6 = 0;
  			iVar7 = 2;
  			break;
  		
  		case 3:
  			StringCopy(&Var2, "TORSO_P2_0_3", 16);
  			iVar6 = 0;
  			iVar7 = 3;
  			iVar1 = 15;
  			break;
  		
  		case 4:
  			StringCopy(&Var2, "TORSO_P2_0_4", 16);
  			iVar6 = 0;
  			iVar7 = 4;
  			iVar1 = 25;
  			break;
  		
  		case 5:
  			StringCopy(&Var2, "TORSO_P2_0_5", 16);
  			iVar6 = 0;
  			iVar7 = 5;
  			iVar1 = 25;
  			break;
  		
  		case 6:
  			StringCopy(&Var2, "TORSO_P2_0_6", 16);
  			iVar6 = 0;
  			iVar7 = 6;
  			iVar1 = 22;
  			break;
  		
  		case 7:
  			StringCopy(&Var2, "TORSO_P2_0_7", 16);
  			iVar6 = 0;
  			iVar7 = 7;
  			iVar1 = 22;
  			break;
  		
  		case 8:
  			StringCopy(&Var2, "TORSO_P2_0_8", 16);
  			iVar6 = 0;
  			iVar7 = 8;
  			iVar1 = 20;
  			break;
  		
  		case 9:
  			StringCopy(&Var2, "TORSO_P2_0_9", 16);
  			iVar6 = 0;
  			iVar7 = 9;
  			iVar1 = 20;
  			break;
  		
  		case 10:
  			StringCopy(&Var2, "TORSO_P2_0_10", 16);
  			iVar6 = 0;
  			iVar7 = 10;
  			iVar1 = 24;
  			break;
  		
  		case 11:
  			StringCopy(&Var2, "TORSO_P2_0_11", 16);
  			iVar6 = 0;
  			iVar7 = 11;
  			iVar1 = 26;
  			break;
  		
  		case 12:
  			StringCopy(&Var2, "TORSO_P2_0_12", 16);
  			iVar6 = 0;
  			iVar7 = 12;
  			iVar1 = 28;
  			break;
  		
  		case 13:
  			StringCopy(&Var2, "TORSO_P2_0_13", 16);
  			iVar6 = 0;
  			iVar7 = 13;
  			iVar1 = 29;
  			break;
  		
  		case 14:
  			StringCopy(&Var2, "TORSO_P2_0_14", 16);
  			iVar6 = 0;
  			iVar7 = 14;
  			iVar1 = 22;
  			break;
  		
  		case 15:
  			StringCopy(&Var2, "TORSO_P2_0_15", 16);
  			iVar6 = 0;
  			iVar7 = 15;
  			iVar1 = 20;
  			break;
  		
  		case 16:
  			StringCopy(&Var2, "NO_LABEL", 16);
  			iVar6 = 1;
  			iVar7 = 0;
  			bVar0 = true;
  			break;
  		
  		case 17:
  			StringCopy(&Var2, "NO_LABEL", 16);
  			iVar6 = 2;
  			iVar7 = 0;
  			bVar0 = true;
  			break;
  		
  		case 18:
  			StringCopy(&Var2, "TORSO_P2_3_0", 16);
  			iVar6 = 3;
  			iVar7 = 0;
  			iVar1 = 35;
  			break;
  		
  		case 19:
  			StringCopy(&Var2, "TORSO_P2_3_1", 16);
  			iVar6 = 3;
  			iVar7 = 1;
  			iVar1 = 22;
  			break;
  		
  		case 20:
  			StringCopy(&Var2, "TORSO_P2_3_2", 16);
  			iVar6 = 3;
  			iVar7 = 2;
  			iVar1 = 25;
  			break;
  		
  		case 21:
  			StringCopy(&Var2, "TORSO_P2_3_3", 16);
  			iVar6 = 3;
  			iVar7 = 3;
  			iVar1 = 38;
  			break;
  		
  		case 22:
  			StringCopy(&Var2, "TORSO_P2_3_4", 16);
  			iVar6 = 3;
  			iVar7 = 4;
  			iVar1 = 40;
  			break;
  		
  		case 23:
  			StringCopy(&Var2, "TORSO_P2_3_5", 16);
  			iVar6 = 3;
  			iVar7 = 5;
  			iVar1 = 40;
  			break;
  		
  		case 24:
  			StringCopy(&Var2, "TORSO_P2_3_6", 16);
  			iVar6 = 3;
  			iVar7 = 6;
  			iVar1 = 40;
  			break;
  		
  		case 25:
  			StringCopy(&Var2, "TORSO_P2_3_7", 16);
  			iVar6 = 3;
  			iVar7 = 7;
  			iVar1 = 40;
  			break;
  		
  		case 26:
  			StringCopy(&Var2, "TORSO_P2_3_8", 16);
  			iVar6 = 3;
  			iVar7 = 8;
  			iVar1 = 40;
  			break;
  		
  		case 27:
  			StringCopy(&Var2, "TORSO_P2_4_0", 16);
  			iVar6 = 4;
  			iVar7 = 0;
  			break;
  		
  		case 28:
  			StringCopy(&Var2, "TORSO_P2_4_1", 16);
  			iVar6 = 4;
  			iVar7 = 1;
  			iVar1 = 500;
  			break;
  		
  		case 29:
  			StringCopy(&Var2, "TORSO_P2_4_2", 16);
  			iVar6 = 4;
  			iVar7 = 2;
  			iVar1 = 560;
  			break;
  		
  		case 30:
  			StringCopy(&Var2, "TORSO_P2_4_3", 16);
  			iVar6 = 4;
  			iVar7 = 3;
  			iVar1 = 600;
  			break;
  		
  		case 31:
  			StringCopy(&Var2, "TORSO_P2_4_4tu", 16);
  			iVar6 = 4;
  			iVar7 = 4;
  			iVar1 = 650;
  			break;
  		
  		case 32:
  			StringCopy(&Var2, "TORSO_P2_4_5tu", 16);
  			iVar6 = 4;
  			iVar7 = 5;
  			iVar1 = 500;
  			break;
  		
  		case 33:
  			StringCopy(&Var2, "TORSO_P2_4_6tu", 16);
  			iVar6 = 4;
  			iVar7 = 6;
  			iVar1 = 560;
  			break;
  		
  		case 34:
  			StringCopy(&Var2, "TORSO_P2_4_7", 16);
  			iVar6 = 4;
  			iVar7 = 7;
  			iVar1 = 500;
  			break;
  		
  		case 35:
  			StringCopy(&Var2, "TORSO_P2_4_8", 16);
  			iVar6 = 4;
  			iVar7 = 8;
  			iVar1 = 650;
  			break;
  		
  		case 36:
  			StringCopy(&Var2, "TORSO_P2_4_9", 16);
  			iVar6 = 4;
  			iVar7 = 9;
  			iVar1 = 540;
  			break;
  		
  		case 37:
  			StringCopy(&Var2, "TORSO_P2_4_10", 16);
  			iVar6 = 4;
  			iVar7 = 10;
  			iVar1 = 690;
  			break;
  		
  		case 38:
  			StringCopy(&Var2, "TORSO_P2_4_11", 16);
  			iVar6 = 4;
  			iVar7 = 11;
  			iVar1 = 560;
  			break;
  		
  		case 39:
  			StringCopy(&Var2, "TORSO_P2_4_12", 16);
  			iVar6 = 4;
  			iVar7 = 12;
  			iVar1 = 590;
  			break;
  		
  		case 40:
  			StringCopy(&Var2, "TORSO_P2_4_13", 16);
  			iVar6 = 4;
  			iVar7 = 13;
  			iVar1 = 690;
  			break;
  		
  		case 41:
  			StringCopy(&Var2, "TORSO_P2_4_14", 16);
  			iVar6 = 4;
  			iVar7 = 14;
  			iVar1 = 540;
  			break;
  		
  		case 42:
  			StringCopy(&Var2, "TORSO_P2_4_15", 16);
  			iVar6 = 4;
  			iVar7 = 15;
  			iVar1 = 500;
  			break;
  		
  		case 43:
  			StringCopy(&Var2, "NO_LABEL", 16);
  			iVar6 = 5;
  			iVar7 = 0;
  			bVar0 = true;
  			break;
  		
  		case 44:
  			StringCopy(&Var2, "NO_LABEL", 16);
  			iVar6 = 5;
  			iVar7 = 1;
  			bVar0 = true;
  			break;
  		
  		case 45:
  			StringCopy(&Var2, "NO_LABEL", 16);
  			iVar6 = 5;
  			iVar7 = 2;
  			bVar0 = true;
  			break;
  		
  		case 46:
  			StringCopy(&Var2, "NO_LABEL", 16);
  			iVar6 = 5;
  			iVar7 = 3;
  			bVar0 = true;
  			break;
  		
  		case 47:
  			StringCopy(&Var2, "NO_LABEL", 16);
  			iVar6 = 5;
  			iVar7 = 4;
  			bVar0 = true;
  			break;
  		
  		case 48:
  			StringCopy(&Var2, "NO_LABEL", 16);
  			iVar6 = 5;
  			iVar7 = 5;
  			bVar0 = true;
  			break;
  		
  		case 49:
  			StringCopy(&Var2, "NO_LABEL", 16);
  			iVar6 = 6;
  			iVar7 = 0;
  			bVar0 = true;
  			break;
  		
  		case 50:
  			StringCopy(&Var2, "NO_LABEL", 16);
  			iVar6 = 7;
  			iVar7 = 0;
  			bVar0 = true;
  			break;
  		
  		case 51:
  			StringCopy(&Var2, "NO_LABEL", 16);
  			iVar6 = 8;
  			iVar7 = 0;
  			bVar0 = true;
  			break;
  		
  		case 52:
  			StringCopy(&Var2, "NO_LABEL", 16);
  			iVar6 = 9;
  			iVar7 = 0;
  			bVar0 = true;
  			break;
  		
  		case 53:
  			StringCopy(&Var2, "NO_LABEL", 16);
  			iVar6 = 10;
  			iVar7 = 0;
  			bVar0 = true;
  			break;
  		
  		case 54:
  			StringCopy(&Var2, "TORSO_P2_11_0", 16);
  			iVar6 = 11;
  			iVar7 = 0;
  			break;
  		
  		case 55:
  			StringCopy(&Var2, "TORSO_P2_11_1", 16);
  			iVar6 = 11;
  			iVar7 = 1;
  			break;
  		
  		case 56:
  			StringCopy(&Var2, "TORSO_P2_11_2", 16);
  			iVar6 = 11;
  			iVar7 = 2;
  			iVar1 = 25;
  			break;
  		
  		case 57:
  			StringCopy(&Var2, "TORSO_P2_11_3", 16);
  			iVar6 = 11;
  			iVar7 = 3;
  			iVar1 = 27;
  			break;
  		
  		case 58:
  			StringCopy(&Var2, "TORSO_P2_11_4", 16);
  			iVar6 = 11;
  			iVar7 = 4;
  			iVar1 = 22;
  			break;
  		
  		case 59:
  			StringCopy(&Var2, "TORSO_P2_11_5", 16);
  			iVar6 = 11;
  			iVar7 = 5;
  			iVar1 = 350;
  			break;
  		
  		case 60:
  			StringCopy(&Var2, "TORSO_P2_11_6", 16);
  			iVar6 = 11;
  			iVar7 = 6;
  			iVar1 = 27;
  			break;
  		
  		case 61:
  			StringCopy(&Var2, "TORSO_P2_11_7", 16);
  			iVar6 = 11;
  			iVar7 = 7;
  			iVar1 = 370;
  			break;
  		
  		case 62:
  			StringCopy(&Var2, "TORSO_P2_11_8", 16);
  			iVar6 = 11;
  			iVar7 = 8;
  			iVar1 = 25;
  			break;
  		
  		case 63:
  			StringCopy(&Var2, "TORSO_P2_11_9", 16);
  			iVar6 = 11;
  			iVar7 = 9;
  			iVar1 = 22;
  			break;
  		
  		case 64:
  			StringCopy(&Var2, "TORSO_P2_11_10", 16);
  			iVar6 = 11;
  			iVar7 = 10;
  			iVar1 = 25;
  			break;
  		
  		case 65:
  			StringCopy(&Var2, "TORSO_P2_11_11", 16);
  			iVar6 = 11;
  			iVar7 = 11;
  			break;
  		
  		case 66:
  			StringCopy(&Var2, "TORSO_P2_11_12", 16);
  			iVar6 = 11;
  			iVar7 = 12;
  			iVar1 = 22;
  			break;
  		
  		case 67:
  			StringCopy(&Var2, "TORSO_P2_11_13", 16);
  			iVar6 = 11;
  			iVar7 = 13;
  			iVar1 = 27;
  			break;
  		
  		case 68:
  			StringCopy(&Var2, "TORSO_P2_11_14", 16);
  			iVar6 = 11;
  			iVar7 = 14;
  			iVar1 = 25;
  			break;
  		
  		case 69:
  			StringCopy(&Var2, "TORSO_P2_11_15", 16);
  			iVar6 = 11;
  			iVar7 = 15;
  			iVar1 = 27;
  			break;
  		
  		case 70:
  			StringCopy(&Var2, "NO_LABEL", 16);
  			iVar6 = 12;
  			iVar7 = 0;
  			bVar0 = true;
  			iVar9 = 1;
  			break;
  		
  		case 71:
  			StringCopy(&Var2, "TORSO_P2_13_0", 16);
  			iVar6 = 13;
  			iVar7 = 0;
  			break;
  		
  		case 72:
  			StringCopy(&Var2, "TORSO_P2_13_1", 16);
  			iVar6 = 13;
  			iVar7 = 1;
  			iVar1 = 39;
  			break;
  		
  		case 73:
  			StringCopy(&Var2, "TORSO_P2_13_2", 16);
  			iVar6 = 13;
  			iVar7 = 2;
  			iVar1 = 42;
  			break;
  		
  		case 74:
  			StringCopy(&Var2, "TORSO_P2_13_3", 16);
  			iVar6 = 13;
  			iVar7 = 3;
  			iVar1 = 49;
  			break;
  		
  		case 75:
  			StringCopy(&Var2, "TORSO_P2_13_4", 16);
  			iVar6 = 13;
  			iVar7 = 4;
  			iVar1 = 35;
  			break;
  		
  		case 76:
  			StringCopy(&Var2, "TORSO_P2_13_5", 16);
  			iVar6 = 13;
  			iVar7 = 5;
  			iVar1 = 50;
  			break;
  		
  		case 77:
  			StringCopy(&Var2, "TORSO_P2_13_6", 16);
  			iVar6 = 13;
  			iVar7 = 6;
  			iVar1 = 50;
  			break;
  		
  		case 78:
  			StringCopy(&Var2, "TORSO_P2_13_7", 16);
  			iVar6 = 13;
  			iVar7 = 7;
  			iVar1 = 50;
  			break;
  		
  		case joaat("mpsv_lp0_31"):
  			StringCopy(&Var2, "TORSO_P2_14_0", 16);
  			iVar6 = 14;
  			iVar7 = 0;
  			break;
  		
  		case 80:
  			StringCopy(&Var2, "TORSO_P2_14_1", 16);
  			iVar6 = 14;
  			iVar7 = 1;
  			iVar1 = 88;
  			break;
  		
  		case 81:
  			StringCopy(&Var2, "TORSO_P2_14_2", 16);
  			iVar6 = 14;
  			iVar7 = 2;
  			iVar1 = 60;
  			break;
  		
  		case 82:
  			StringCopy(&Var2, "TORSO_P2_14_3", 16);
  			iVar6 = 14;
  			iVar7 = 3;
  			iVar1 = 80;
  			break;
  		
  		case 83:
  			StringCopy(&Var2, "TORSO_P2_14_4", 16);
  			iVar6 = 14;
  			iVar7 = 4;
  			iVar1 = 70;
  			break;
  		
  		case 84:
  			StringCopy(&Var2, "TORSO_P2_14_5", 16);
  			iVar6 = 14;
  			iVar7 = 5;
  			iVar1 = 80;
  			break;
  		
  		case 85:
  			StringCopy(&Var2, "TORSO_P2_14_6", 16);
  			iVar6 = 14;
  			iVar7 = 6;
  			iVar1 = 70;
  			break;
  		
  		case 86:
  			StringCopy(&Var2, "TORSO_P2_14_7", 16);
  			iVar6 = 14;
  			iVar7 = 7;
  			iVar1 = 90;
  			break;
  		
  		case 87:
  			StringCopy(&Var2, "TORSO_P2_14_8", 16);
  			iVar6 = 14;
  			iVar7 = 8;
  			iVar1 = 95;
  			break;
  		
  		case 88:
  			StringCopy(&Var2, "TORSO_P2_14_9", 16);
  			iVar6 = 14;
  			iVar7 = 9;
  			iVar1 = 105;
  			break;
  		
  		case 89:
  			StringCopy(&Var2, "TORSO_P2_14_10", 16);
  			iVar6 = 14;
  			iVar7 = 10;
  			iVar1 = 95;
  			break;
  		
  		case 90:
  			StringCopy(&Var2, "TORSO_P2_14_11", 16);
  			iVar6 = 14;
  			iVar7 = 11;
  			iVar1 = 110;
  			break;
  		
  		case 91:
  			StringCopy(&Var2, "TORSO_P2_14_12", 16);
  			iVar6 = 14;
  			iVar7 = 12;
  			iVar1 = 98;
  			break;
  		
  		case 92:
  			StringCopy(&Var2, "TORSO_P2_14_13", 16);
  			iVar6 = 14;
  			iVar7 = 13;
  			iVar1 = 88;
  			break;
  		
  		case 93:
  			StringCopy(&Var2, "TORSO_P2_14_14", 16);
  			iVar6 = 14;
  			iVar7 = 14;
  			iVar1 = 98;
  			break;
  		
  		case 94:
  			StringCopy(&Var2, "TORSO_P2_14_15", 16);
  			iVar6 = 14;
  			iVar7 = 15;
  			iVar1 = 110;
  			break;
  		
  		case 95:
  			StringCopy(&Var2, "TORSO_P2_15_0", 16);
  			iVar6 = 15;
  			iVar7 = 0;
  			bVar0 = true;
  			break;
  		
  		case 96:
  			StringCopy(&Var2, "TORSO_P2_16_0", 16);
  			iVar6 = 16;
  			iVar7 = 0;
  			break;
  		
  		case 97:
  			StringCopy(&Var2, "TORSO_P2_17_0", 16);
  			iVar6 = 17;
  			iVar7 = 0;
  			bVar0 = true;
  			break;
  		
  		case 98:
  			StringCopy(&Var2, "TORSO_P2_18_0", 16);
  			iVar6 = 18;
  			iVar7 = 0;
  			break;
  		
  		case 99:
  			StringCopy(&Var2, "TORSO_P2_18_1", 16);
  			iVar6 = 18;
  			iVar7 = 1;
  			iVar1 = 520;
  			break;
  		
  		case 100:
  			StringCopy(&Var2, "TORSO_P2_18_2", 16);
  			iVar6 = 18;
  			iVar7 = 2;
  			iVar1 = 490;
  			break;
  		
  		case 101:
  			StringCopy(&Var2, "TORSO_P2_18_3", 16);
  			iVar6 = 18;
  			iVar7 = 3;
  			iVar1 = 450;
  			break;
  		
  		case 102:
  			StringCopy(&Var2, "TORSO_P2_18_4", 16);
  			iVar6 = 18;
  			iVar7 = 4;
  			iVar1 = 420;
  			break;
  		
  		case 103:
  			StringCopy(&Var2, "TORSO_P2_18_5", 16);
  			iVar6 = 18;
  			iVar7 = 5;
  			iVar1 = 420;
  			break;
  		
  		case 104:
  			StringCopy(&Var2, "TORSO_P2_19_0", 16);
  			iVar6 = 19;
  			iVar7 = 0;
  			iVar1 = 85;
  			break;
  		
  		case 105:
  			StringCopy(&Var2, "TORSO_P2_19_1", 16);
  			iVar6 = 19;
  			iVar7 = 1;
  			iVar1 = 85;
  			break;
  		
  		case 106:
  			StringCopy(&Var2, "TORSO_P2_19_2", 16);
  			iVar6 = 19;
  			iVar7 = 2;
  			iVar1 = 75;
  			break;
  		
  		case 107:
  			StringCopy(&Var2, "TORSO_P2_19_3", 16);
  			iVar6 = 19;
  			iVar7 = 3;
  			iVar1 = 68;
  			break;
  		
  		case 108:
  			StringCopy(&Var2, "TORSO_P2_19_4", 16);
  			iVar6 = 19;
  			iVar7 = 4;
  			iVar1 = 68;
  			break;
  		
  		case 109:
  			StringCopy(&Var2, "TORSO_P2_19_5", 16);
  			iVar6 = 19;
  			iVar7 = 5;
  			iVar1 = 78;
  			break;
  		
  		case 110:
  			StringCopy(&Var2, "TORSO_P2_19_6", 16);
  			iVar6 = 19;
  			iVar7 = 6;
  			iVar1 = 85;
  			break;
  		
  		case 111:
  			StringCopy(&Var2, "TORSO_P2_19_7", 16);
  			iVar6 = 19;
  			iVar7 = 7;
  			iVar1 = 68;
  			break;
  		
  		case 112:
  			StringCopy(&Var2, "TORSO_P2_19_8", 16);
  			iVar6 = 19;
  			iVar7 = 8;
  			iVar1 = 75;
  			break;
  		
  		case 113:
  			StringCopy(&Var2, "TORSO_P2_19_9", 16);
  			iVar6 = 19;
  			iVar7 = 9;
  			iVar1 = 75;
  			break;
  		
  		case 114:
  			StringCopy(&Var2, "TORSO_P2_19_10", 16);
  			iVar6 = 19;
  			iVar7 = 10;
  			iVar1 = 78;
  			break;
  		
  		case 115:
  			StringCopy(&Var2, "TORSO_P2_19_11", 16);
  			iVar6 = 19;
  			iVar7 = 11;
  			iVar1 = 75;
  			break;
  		
  		case 116:
  			StringCopy(&Var2, "TORSO_P2_19_12", 16);
  			iVar6 = 19;
  			iVar7 = 12;
  			iVar1 = 75;
  			break;
  		
  		case 117:
  			StringCopy(&Var2, "TORSO_P2_19_13", 16);
  			iVar6 = 19;
  			iVar7 = 13;
  			iVar1 = 75;
  			break;
  		
  		case 118:
  			StringCopy(&Var2, "TORSO_P2_19_14", 16);
  			iVar6 = 19;
  			iVar7 = 14;
  			iVar1 = 78;
  			break;
  		
  		case 119:
  			StringCopy(&Var2, "TORSO_P2_19_15", 16);
  			iVar6 = 19;
  			iVar7 = 15;
  			iVar1 = 78;
  			break;
  		
  		case 120:
  			StringCopy(&Var2, "TORSO_P2_20_0", 16);
  			iVar6 = 20;
  			iVar7 = 0;
  			iVar1 = 40;
  			break;
  		
  		case 121:
  			StringCopy(&Var2, "TORSO_P2_20_1", 16);
  			iVar6 = 20;
  			iVar7 = 1;
  			iVar1 = 32;
  			break;
  		
  		case 122:
  			StringCopy(&Var2, "TORSO_P2_20_2", 16);
  			iVar6 = 20;
  			iVar7 = 2;
  			iVar1 = 32;
  			break;
  		
  		case 123:
  			StringCopy(&Var2, "TORSO_P2_20_3", 16);
  			iVar6 = 20;
  			iVar7 = 3;
  			iVar1 = 32;
  			break;
  		
  		case 124:
  			StringCopy(&Var2, "TORSO_P2_20_4", 16);
  			iVar6 = 20;
  			iVar7 = 4;
  			break;
  		
  		case 125:
  			StringCopy(&Var2, "TORSO_P2_20_5", 16);
  			iVar6 = 20;
  			iVar7 = 5;
  			iVar1 = 38;
  			break;
  		
  		case 126:
  			StringCopy(&Var2, "TORSO_P2_20_6", 16);
  			iVar6 = 20;
  			iVar7 = 6;
  			iVar1 = 35;
  			break;
  		
  		case 127:
  			StringCopy(&Var2, "TORSO_P2_20_7", 16);
  			iVar6 = 20;
  			iVar7 = 7;
  			iVar1 = 38;
  			break;
  		
  		case 128:
  			StringCopy(&Var2, "TORSO_P2_20_8", 16);
  			iVar6 = 20;
  			iVar7 = 8;
  			iVar1 = 29;
  			break;
  		
  		case 129:
  			StringCopy(&Var2, "TORSO_P2_20_9", 16);
  			iVar6 = 20;
  			iVar7 = 9;
  			iVar1 = 32;
  			break;
  		
  		case 130:
  			StringCopy(&Var2, "TORSO_P2_20_10", 16);
  			iVar6 = 20;
  			iVar7 = 10;
  			iVar1 = 29;
  			break;
  		
  		case 131:
  			StringCopy(&Var2, "TORSO_P2_20_11", 16);
  			iVar6 = 20;
  			iVar7 = 11;
  			iVar1 = 35;
  			break;
  		
  		case 132:
  			StringCopy(&Var2, "TORSO_P2_20_12", 16);
  			iVar6 = 20;
  			iVar7 = 12;
  			iVar1 = 32;
  			break;
  		
  		case 133:
  			StringCopy(&Var2, "TORSO_P2_20_13", 16);
  			iVar6 = 20;
  			iVar7 = 13;
  			iVar1 = 35;
  			break;
  		
  		case 134:
  			StringCopy(&Var2, "TORSO_P2_20_14", 16);
  			iVar6 = 20;
  			iVar7 = 14;
  			iVar1 = 32;
  			break;
  		
  		case 135:
  			StringCopy(&Var2, "TORSO_P2_20_15", 16);
  			iVar6 = 20;
  			iVar7 = 15;
  			iVar1 = 40;
  			break;
  		
  		default:
  			return;
  			break;
  	}
  	func_263(&(Global_77669[0 /*14*/]), iVar10, iParam0, &Var2, iVar6, iVar7, iVar1, bVar0, iVar8, iVar9, 0);
  }
  
  void func_284(int iParam0)
  {
  	bool bVar0;
  	int iVar1;
  	struct<2> Var2;
  	int iVar6;
  	int iVar7;
  	int iVar8;
  	int iVar9;
  	int iVar10;
  	
  	bVar0 = false;
  	iVar1 = 10;
  	iVar6 = 0;
  	iVar7 = 0;
  	iVar8 = -1;
  	iVar9 = 2;
  	iVar10 = 2;
  	Global_77669[0 /*14*/].f_5 = 2;
  	switch (iParam0)
  	{
  		case 0:
  			StringCopy(&Var2, "HAIR_P2_0_0", 16);
  			iVar6 = 0;
  			iVar7 = 0;
  			break;
  		
  		case 1:
  			StringCopy(&Var2, "HAIR_P2_0_1", 16);
  			iVar6 = 0;
  			iVar7 = 1;
  			break;
  		
  		case 2:
  			StringCopy(&Var2, "HAIR_P2_1_0", 16);
  			iVar6 = 1;
  			iVar7 = 0;
  			break;
  		
  		case 3:
  			StringCopy(&Var2, "HAIR_P2_2_0", 16);
  			iVar6 = 2;
  			iVar7 = 0;
  			break;
  		
  		case 4:
  			StringCopy(&Var2, "HAIR_P2_3_0", 16);
  			iVar6 = 3;
  			iVar7 = 0;
  			break;
  		
  		case 5:
  			StringCopy(&Var2, "HAIR_P2_4_0", 16);
  			iVar6 = 4;
  			iVar7 = 0;
  			break;
  		
  		case 6:
  			StringCopy(&Var2, "HAIR_P2_5_0", 16);
  			iVar6 = 5;
  			iVar7 = 0;
  			break;
  		
  		case 7:
  			StringCopy(&Var2, "HAIR_P2_6_0", 16);
  			iVar6 = 6;
  			iVar7 = 0;
  			break;
  		
  		case 8:
  			StringCopy(&Var2, "HAIR_P2_7_0", 16);
  			iVar6 = 7;
  			iVar7 = 0;
  			break;
  		
  		default:
  			func_269(iVar10, iParam0, 9, -1);
  			return;
  			break;
  	}
  	func_263(&(Global_77669[0 /*14*/]), iVar10, iParam0, &Var2, iVar6, iVar7, iVar1, bVar0, iVar8, iVar9, 0);
  }
  
  void func_285(int iParam0)
  {
  	bool bVar0;
  	int iVar1;
  	struct<2> Var2;
  	int iVar6;
  	int iVar7;
  	int iVar8;
  	int iVar9;
  	int iVar10;
  	
  	bVar0 = false;
  	iVar1 = 10;
  	iVar6 = 0;
  	iVar7 = 0;
  	iVar8 = -1;
  	iVar9 = 2;
  	iVar10 = 0;
  	Global_77669[0 /*14*/].f_5 = 2;
  	switch (iParam0)
  	{
  		case 0:
  			StringCopy(&Var2, "NO_LABEL", 16);
  			iVar6 = 0;
  			iVar7 = 0;
  			break;
  		
  		case 1:
  			StringCopy(&Var2, "NO_LABEL", 16);
  			iVar6 = 0;
  			iVar7 = 1;
  			break;
  		
  		case 2:
  			StringCopy(&Var2, "NO_LABEL", 16);
  			iVar6 = 0;
  			iVar7 = 2;
  			break;
  		
  		case 3:
  			StringCopy(&Var2, "NO_LABEL", 16);
  			iVar6 = 0;
  			iVar7 = 3;
  			break;
  		
  		case 4:
  			StringCopy(&Var2, "NO_LABEL", 16);
  			iVar6 = 0;
  			iVar7 = 4;
  			break;
  		
  		case 5:
  			StringCopy(&Var2, "NO_LABEL", 16);
  			iVar6 = 0;
  			iVar7 = 5;
  			break;
  		
  		case 6:
  			StringCopy(&Var2, "NO_LABEL", 16);
  			iVar6 = 0;
  			iVar7 = 6;
  			break;
  		
  		default:
  			func_269(iVar10, iParam0, 7, -1);
  			return;
  			break;
  	}
  	func_263(&(Global_77669[0 /*14*/]), iVar10, iParam0, &Var2, iVar6, iVar7, iVar1, bVar0, iVar8, iVar9, 0);
  }
  
  void func_286(int iParam0, int iParam1)
  {
  	switch (iParam0)
  	{
  		case 0:
  			func_304(iParam1);
  			break;
  		
  		case 2:
  			func_303(iParam1);
  			break;
  		
  		case 3:
  			func_299(iParam1);
  			break;
  		
  		case 4:
  			func_298(iParam1);
  			break;
  		
  		case 6:
  			func_297(iParam1);
  			break;
  		
  		case 5:
  			func_296(iParam1);
  			break;
  		
  		case 8:
  			func_295(iParam1);
  			break;
  		
  		case 9:
  			func_294(iParam1);
  			break;
  		
  		case 10:
  			func_293(iParam1);
  			break;
  		
  		case 1:
  			func_292(iParam1);
  			break;
  		
  		case 7:
  			func_291(iParam1);
  			break;
  		
  		case 11:
  			func_290(iParam1);
  			break;
  		
  		case 12:
  			func_289(iParam1);
  			break;
  		
  		case 13:
  			func_288(iParam1);
  			break;
  		
  		case 14:
  			func_287(iParam1);
  			break;
  	}
  }
  
  void func_287(int iParam0)
  {
  	bool bVar0;
  	int iVar1;
  	struct<2> Var2;
  	int iVar6;
  	int iVar7;
  	int iVar8;
  	int iVar9;
  	int iVar10;
  	
  	bVar0 = false;
  	iVar1 = 10;
  	iVar6 = 0;
  	iVar7 = 0;
  	iVar8 = -1;
  	iVar9 = 2;
  	iVar10 = 14;
  	Global_77669[0 /*14*/].f_5 = 1;
  	switch (iParam0)
  	{
  		case 0:
  			StringCopy(&Var2, "NO_LABEL", 16);
  			iVar6 = -1;
  			iVar7 = 0;
  			iVar1 = 0;
  			iVar8 = 0;
  			break;
  		
  		case 1:
  			StringCopy(&Var2, "NO_LABEL", 16);
  			iVar6 = -1;
  			iVar7 = 0;
  			iVar1 = 0;
  			iVar8 = 1;
  			break;
  		
  		case 2:
  			StringCopy(&Var2, "NO_LABEL", 16);
  			iVar6 = -1;
  			iVar7 = 0;
  			iVar1 = 0;
  			iVar8 = 2;
  			break;
  		
  		case 3:
  			StringCopy(&Var2, "NO_LABEL", 16);
  			iVar6 = -1;
  			iVar7 = 0;
  			iVar1 = 0;
  			iVar8 = 3;
  			break;
  		
  		case 4:
  			StringCopy(&Var2, "NO_LABEL", 16);
  			iVar6 = -1;
  			iVar7 = 0;
  			iVar1 = 0;
  			iVar8 = 4;
  			break;
  		
  		case 5:
  			StringCopy(&Var2, "NO_LABEL", 16);
  			iVar6 = -1;
  			iVar7 = 0;
  			iVar1 = 0;
  			iVar8 = 5;
  			break;
  		
  		case 6:
  			StringCopy(&Var2, "NO_LABEL", 16);
  			iVar6 = -1;
  			iVar7 = 0;
  			iVar1 = 0;
  			iVar8 = 6;
  			break;
  		
  		case 7:
  			StringCopy(&Var2, "NO_LABEL", 16);
  			iVar6 = -1;
  			iVar7 = 0;
  			iVar1 = 0;
  			iVar8 = 7;
  			break;
  		
  		case 8:
  			StringCopy(&Var2, "NO_LABEL", 16);
  			iVar6 = -1;
  			iVar7 = 0;
  			iVar1 = 0;
  			iVar8 = 8;
  			break;
  		
  		case 158:
  			StringCopy(&Var2, "NO_LABEL", 16);
  			iVar6 = 0;
  			iVar7 = 0;
  			bVar0 = true;
  			iVar8 = 2;
  			break;
  		
  		case 159:
  			StringCopy(&Var2, "PROPS_P1_EA1_0", 16);
  			iVar6 = 1;
  			iVar7 = 0;
  			iVar1 = 4590;
  			iVar8 = 2;
  			break;
  		
  		case 160:
  			StringCopy(&Var2, "PROPS_P1_EA1_1", 16);
  			iVar6 = 1;
  			iVar7 = 1;
  			iVar1 = 4100;
  			iVar8 = 2;
  			break;
  		
  		case 161:
  			StringCopy(&Var2, "PROPS_P1_EA1_2", 16);
  			iVar6 = 1;
  			iVar7 = 2;
  			iVar1 = 3850;
  			iVar8 = 2;
  			break;
  		
  		case 162:
  			StringCopy(&Var2, "PROPS_P1_EA1_3", 16);
  			iVar6 = 1;
  			iVar7 = 3;
  			iVar1 = 1850;
  			iVar8 = 2;
  			break;
  		
  		case 163:
  			StringCopy(&Var2, "PROPS_P1_EA1_4", 16);
  			iVar6 = 1;
  			iVar7 = 4;
  			iVar1 = 5250;
  			iVar8 = 2;
  			break;
  		
  		case 164:
  			StringCopy(&Var2, "PROPS_P1_EA1_5", 16);
  			iVar6 = 1;
  			iVar7 = 5;
  			iVar1 = 2700;
  			iVar8 = 2;
  			break;
  		
  		case 165:
  			StringCopy(&Var2, "PROPS_P1_EA1_6", 16);
  			iVar6 = 1;
  			iVar7 = 6;
  			iVar1 = 3100;
  			iVar8 = 2;
  			break;
  		
  		case 166:
  			StringCopy(&Var2, "PROPS_P1_EA1_7", 16);
  			iVar6 = 1;
  			iVar7 = 7;
  			iVar1 = 5050;
  			iVar8 = 2;
  			break;
  		
  		case 167:
  			StringCopy(&Var2, "PROPS_P1_EA2_0", 16);
  			iVar6 = 2;
  			iVar7 = 0;
  			iVar1 = 2500;
  			iVar8 = 2;
  			break;
  		
  		case 168:
  			StringCopy(&Var2, "PROPS_P1_EA2_1", 16);
  			iVar6 = 2;
  			iVar7 = 1;
  			iVar1 = 1950;
  			iVar8 = 2;
  			break;
  		
  		case 169:
  			StringCopy(&Var2, "PROPS_P1_EA2_2", 16);
  			iVar6 = 2;
  			iVar7 = 2;
  			iVar1 = 3900;
  			iVar8 = 2;
  			break;
  		
  		case 170:
  			StringCopy(&Var2, "PROPS_P1_EA2_3", 16);
  			iVar6 = 2;
  			iVar7 = 3;
  			iVar1 = 3550;
  			iVar8 = 2;
  			break;
  		
  		case 171:
  			StringCopy(&Var2, "PROPS_P1_EA2_4", 16);
  			iVar6 = 2;
  			iVar7 = 4;
  			iVar1 = 4500;
  			iVar8 = 2;
  			break;
  		
  		case 172:
  			StringCopy(&Var2, "PROPS_P1_EA2_5", 16);
  			iVar6 = 2;
  			iVar7 = 5;
  			iVar1 = 2700;
  			iVar8 = 2;
  			break;
  		
  		case 173:
  			StringCopy(&Var2, "PROPS_P1_EA2_6", 16);
  			iVar6 = 2;
  			iVar7 = 6;
  			iVar1 = 3100;
  			iVar8 = 2;
  			break;
  		
  		case 174:
  			StringCopy(&Var2, "PROPS_P1_EA2_7", 16);
  			iVar6 = 2;
  			iVar7 = 7;
  			iVar1 = 2950;
  			iVar8 = 2;
  			break;
  		
  		case 82:
  			StringCopy(&Var2, "NO_LABEL", 16);
  			iVar6 = 0;
  			iVar7 = 0;
  			bVar0 = true;
  			iVar8 = 10;
  			break;
  		
  		case 83:
  			StringCopy(&Var2, "PROPS_P1_E1_0", 16);
  			iVar6 = 1;
  			iVar7 = 0;
  			iVar1 = 75;
  			iVar8 = 10;
  			break;
  		
  		case 84:
  			StringCopy(&Var2, "PROPS_P1_E1_1", 16);
  			iVar6 = 1;
  			iVar7 = 1;
  			iVar1 = 75;
  			iVar8 = 10;
  			break;
  		
  		case 85:
  			StringCopy(&Var2, "PROPS_P1_E1_2", 16);
  			iVar6 = 1;
  			iVar7 = 2;
  			iVar1 = 75;
  			iVar8 = 10;
  			break;
  		
  		case 86:
  			StringCopy(&Var2, "PROPS_P1_E1_3", 16);
  			iVar6 = 1;
  			iVar7 = 3;
  			iVar1 = 75;
  			iVar8 = 10;
  			break;
  		
  		case 87:
  			StringCopy(&Var2, "PROPS_P1_E1_4", 16);
  			iVar6 = 1;
  			iVar7 = 4;
  			iVar1 = 75;
  			iVar8 = 10;
  			break;
  		
  		case 88:
  			StringCopy(&Var2, "PROPS_P1_E1_5", 16);
  			iVar6 = 1;
  			iVar7 = 5;
  			iVar1 = 75;
  			iVar8 = 10;
  			break;
  		
  		case 89:
  			StringCopy(&Var2, "PROPS_P1_E1_6", 16);
  			iVar6 = 1;
  			iVar7 = 6;
  			iVar1 = 75;
  			iVar8 = 10;
  			break;
  		
  		case 90:
  			StringCopy(&Var2, "PROPS_P1_E1_7", 16);
  			iVar6 = 1;
  			iVar7 = 7;
  			iVar1 = 75;
  			iVar8 = 10;
  			break;
  		
  		case 91:
  			StringCopy(&Var2, "PROPS_P1_E1_8", 16);
  			iVar6 = 1;
  			iVar7 = 8;
  			iVar1 = 75;
  			iVar8 = 10;
  			break;
  		
  		case 92:
  			StringCopy(&Var2, "PROPS_P1_E1_9", 16);
  			iVar6 = 1;
  			iVar7 = 9;
  			iVar1 = 75;
  			iVar8 = 10;
  			break;
  		
  		case 93:
  			StringCopy(&Var2, "PROPS_P1_E2", 16);
  			iVar6 = 2;
  			iVar7 = 0;
  			iVar8 = 10;
  			break;
  		
  		case 94:
  			StringCopy(&Var2, "PROPS_P1_E3", 16);
  			iVar6 = 3;
  			iVar7 = 0;
  			iVar1 = 110;
  			iVar8 = 10;
  			break;
  		
  		case 95:
  			StringCopy(&Var2, "PROPS_P1_E4_0", 16);
  			iVar6 = 4;
  			iVar7 = 0;
  			iVar1 = 120;
  			iVar8 = 10;
  			break;
  		
  		case 96:
  			StringCopy(&Var2, "PROPS_P1_E4_1", 16);
  			iVar6 = 4;
  			iVar7 = 1;
  			iVar1 = 128;
  			iVar8 = 10;
  			break;
  		
  		case 97:
  			StringCopy(&Var2, "PROPS_P1_E4_2", 16);
  			iVar6 = 4;
  			iVar7 = 2;
  			iVar1 = 130;
  			iVar8 = 10;
  			break;
  		
  		case 98:
  			StringCopy(&Var2, "PROPS_P1_E4_3", 16);
  			iVar6 = 4;
  			iVar7 = 3;
  			iVar1 = 140;
  			iVar8 = 10;
  			break;
  		
  		case 99:
  			StringCopy(&Var2, "PROPS_P1_E4_4", 16);
  			iVar6 = 4;
  			iVar7 = 4;
  			iVar1 = 145;
  			iVar8 = 10;
  			break;
  		
  		case 100:
  			StringCopy(&Var2, "PROPS_P1_E4_5", 16);
  			iVar6 = 4;
  			iVar7 = 5;
  			iVar1 = 135;
  			iVar8 = 10;
  			break;
  		
  		case 101:
  			StringCopy(&Var2, "PROPS_P1_E4_6", 16);
  			iVar6 = 4;
  			iVar7 = 6;
  			iVar1 = 138;
  			iVar8 = 10;
  			break;
  		
  		case 102:
  			StringCopy(&Var2, "PROPS_P1_E5_0", 16);
  			iVar6 = 5;
  			iVar7 = 0;
  			iVar1 = 110;
  			iVar8 = 10;
  			break;
  		
  		case 103:
  			StringCopy(&Var2, "PROPS_P1_E5_1", 16);
  			iVar6 = 5;
  			iVar7 = 1;
  			iVar1 = 112;
  			iVar8 = 10;
  			break;
  		
  		case 104:
  			StringCopy(&Var2, "PROPS_P1_E5_2", 16);
  			iVar6 = 5;
  			iVar7 = 2;
  			iVar1 = 115;
  			iVar8 = 10;
  			break;
  		
  		case 105:
  			StringCopy(&Var2, "PROPS_P1_E5_3", 16);
  			iVar6 = 5;
  			iVar7 = 3;
  			iVar1 = 118;
  			iVar8 = 10;
  			break;
  		
  		case 106:
  			StringCopy(&Var2, "PROPS_P1_E5_4", 16);
  			iVar6 = 5;
  			iVar7 = 4;
  			iVar1 = 120;
  			iVar8 = 10;
  			break;
  		
  		case 107:
  			StringCopy(&Var2, "PROPS_P1_E5_5", 16);
  			iVar6 = 5;
  			iVar7 = 5;
  			iVar1 = 125;
  			iVar8 = 10;
  			break;
  		
  		case 108:
  			StringCopy(&Var2, "PROPS_P1_E5_6", 16);
  			iVar6 = 5;
  			iVar7 = 6;
  			iVar1 = 128;
  			iVar8 = 10;
  			break;
  		
  		case 109:
  			StringCopy(&Var2, "PROPS_P1_E5_7", 16);
  			iVar6 = 5;
  			iVar7 = 7;
  			iVar1 = 138;
  			iVar8 = 10;
  			break;
  		
  		case 110:
  			StringCopy(&Var2, "PROPS_P1_E5_8", 16);
  			iVar6 = 5;
  			iVar7 = 8;
  			iVar1 = 140;
  			iVar8 = 10;
  			break;
  		
  		case 111:
  			StringCopy(&Var2, "PROPS_P1_E5_9", 16);
  			iVar6 = 5;
  			iVar7 = 9;
  			iVar1 = 155;
  			iVar8 = 10;
  			break;
  		
  		case 112:
  			StringCopy(&Var2, "PROPS_P1_E6_0", 16);
  			iVar6 = 6;
  			iVar7 = 0;
  			iVar1 = 55;
  			iVar8 = 10;
  			break;
  		
  		case 113:
  			StringCopy(&Var2, "PROPS_P1_E6_1", 16);
  			iVar6 = 6;
  			iVar7 = 1;
  			iVar1 = 55;
  			iVar8 = 10;
  			break;
  		
  		case 114:
  			StringCopy(&Var2, "PROPS_P1_E6_2", 16);
  			iVar6 = 6;
  			iVar7 = 2;
  			iVar1 = 58;
  			iVar8 = 10;
  			break;
  		
  		case 115:
  			StringCopy(&Var2, "PROPS_P1_E6_3", 16);
  			iVar6 = 6;
  			iVar7 = 3;
  			iVar1 = 58;
  			iVar8 = 10;
  			break;
  		
  		case 116:
  			StringCopy(&Var2, "PROPS_P1_E6_4", 16);
  			iVar6 = 6;
  			iVar7 = 4;
  			iVar1 = 60;
  			iVar8 = 10;
  			break;
  		
  		case 117:
  			StringCopy(&Var2, "PROPS_P1_E6_5", 16);
  			iVar6 = 6;
  			iVar7 = 5;
  			iVar1 = 62;
  			iVar8 = 10;
  			break;
  		
  		case 118:
  			StringCopy(&Var2, "PROPS_P1_E6_6", 16);
  			iVar6 = 6;
  			iVar7 = 6;
  			iVar1 = 65;
  			iVar8 = 10;
  			break;
  		
  		case 119:
  			StringCopy(&Var2, "PROPS_P1_E6_7", 16);
  			iVar6 = 6;
  			iVar7 = 7;
  			iVar1 = 68;
  			iVar8 = 10;
  			break;
  		
  		case 120:
  			StringCopy(&Var2, "PROPS_P1_E6_8", 16);
  			iVar6 = 6;
  			iVar7 = 8;
  			iVar1 = 68;
  			iVar8 = 10;
  			break;
  		
  		case 121:
  			StringCopy(&Var2, "PROPS_P1_E6_9", 16);
  			iVar6 = 6;
  			iVar7 = 9;
  			iVar1 = 72;
  			iVar8 = 10;
  			break;
  		
  		case 122:
  			StringCopy(&Var2, "PROPS_P1_E7_0", 16);
  			iVar6 = 7;
  			iVar7 = 0;
  			iVar1 = 145;
  			iVar8 = 10;
  			break;
  		
  		case 123:
  			StringCopy(&Var2, "PROPS_P1_E7_1", 16);
  			iVar6 = 7;
  			iVar7 = 1;
  			iVar1 = 149;
  			iVar8 = 10;
  			break;
  		
  		case 124:
  			StringCopy(&Var2, "PROPS_P1_E7_2", 16);
  			iVar6 = 7;
  			iVar7 = 2;
  			iVar1 = 139;
  			iVar8 = 10;
  			break;
  		
  		case 125:
  			StringCopy(&Var2, "PROPS_P1_E7_3", 16);
  			iVar6 = 7;
  			iVar7 = 3;
  			iVar1 = 149;
  			iVar8 = 10;
  			break;
  		
  		case 126:
  			StringCopy(&Var2, "PROPS_P1_E7_4", 16);
  			iVar6 = 7;
  			iVar7 = 4;
  			iVar1 = 135;
  			iVar8 = 10;
  			break;
  		
  		case 127:
  			StringCopy(&Var2, "PROPS_P1_E7_5", 16);
  			iVar6 = 7;
  			iVar7 = 5;
  			iVar1 = 138;
  			iVar8 = 10;
  			break;
  		
  		case 128:
  			StringCopy(&Var2, "PROPS_P1_E7_6", 16);
  			iVar6 = 7;
  			iVar7 = 6;
  			iVar1 = 140;
  			iVar8 = 10;
  			break;
  		
  		case 129:
  			StringCopy(&Var2, "PROPS_P1_E7_7", 16);
  			iVar6 = 7;
  			iVar7 = 7;
  			iVar1 = 145;
  			iVar8 = 10;
  			break;
  		
  		case 130:
  			StringCopy(&Var2, "PROPS_P1_E7_8", 16);
  			iVar6 = 7;
  			iVar7 = 8;
  			iVar1 = 159;
  			iVar8 = 10;
  			break;
  		
  		case 131:
  			StringCopy(&Var2, "PROPS_P1_E7_9", 16);
  			iVar6 = 7;
  			iVar7 = 9;
  			iVar1 = 155;
  			iVar8 = 10;
  			break;
  		
  		case 132:
  			StringCopy(&Var2, "PROPS_P1_E8_0", 16);
  			iVar6 = 8;
  			iVar7 = 0;
  			iVar1 = 198;
  			iVar8 = 10;
  			break;
  		
  		case 133:
  			StringCopy(&Var2, "PROPS_P1_E8_1", 16);
  			iVar6 = 8;
  			iVar7 = 1;
  			iVar1 = 210;
  			iVar8 = 10;
  			break;
  		
  		case 134:
  			StringCopy(&Var2, "PROPS_P1_E8_2", 16);
  			iVar6 = 8;
  			iVar7 = 2;
  			iVar1 = 185;
  			iVar8 = 10;
  			break;
  		
  		case 135:
  			StringCopy(&Var2, "PROPS_P1_E8_3", 16);
  			iVar6 = 8;
  			iVar7 = 3;
  			iVar1 = 220;
  			iVar8 = 10;
  			break;
  		
  		case 136:
  			StringCopy(&Var2, "PROPS_P1_E8_4", 16);
  			iVar6 = 8;
  			iVar7 = 4;
  			iVar1 = 190;
  			iVar8 = 10;
  			break;
  		
  		case 137:
  			StringCopy(&Var2, "PROPS_P1_E8_5", 16);
  			iVar6 = 8;
  			iVar7 = 5;
  			iVar1 = 200;
  			iVar8 = 10;
  			break;
  		
  		case 138:
  			StringCopy(&Var2, "PROPS_P1_E8_6", 16);
  			iVar6 = 8;
  			iVar7 = 6;
  			iVar1 = 208;
  			iVar8 = 10;
  			break;
  		
  		case 139:
  			StringCopy(&Var2, "PROPS_P1_E8_7", 16);
  			iVar6 = 8;
  			iVar7 = 7;
  			iVar1 = 210;
  			iVar8 = 10;
  			break;
  		
  		case 140:
  			StringCopy(&Var2, "PROPS_P1_E9_0", 16);
  			iVar6 = 9;
  			iVar7 = 0;
  			iVar1 = 165;
  			iVar8 = 10;
  			break;
  		
  		case 141:
  			StringCopy(&Var2, "PROPS_P1_E9_1", 16);
  			iVar6 = 9;
  			iVar7 = 1;
  			iVar1 = 185;
  			iVar8 = 10;
  			break;
  		
  		case 142:
  			StringCopy(&Var2, "PROPS_P1_E9_2", 16);
  			iVar6 = 9;
  			iVar7 = 2;
  			iVar1 = 190;
  			iVar8 = 10;
  			break;
  		
  		case 143:
  			StringCopy(&Var2, "PROPS_P1_E9_3", 16);
  			iVar6 = 9;
  			iVar7 = 3;
  			iVar1 = 178;
  			iVar8 = 10;
  			break;
  		
  		case 144:
  			StringCopy(&Var2, "PROPS_P1_E9_4", 16);
  			iVar6 = 9;
  			iVar7 = 4;
  			iVar1 = 180;
  			iVar8 = 10;
  			break;
  		
  		case 145:
  			StringCopy(&Var2, "PROPS_P1_E9_5", 16);
  			iVar6 = 9;
  			iVar7 = 5;
  			iVar1 = 168;
  			iVar8 = 10;
  			break;
  		
  		case 146:
  			StringCopy(&Var2, "PROPS_P1_E9_6", 16);
  			iVar6 = 9;
  			iVar7 = 6;
  			iVar1 = 170;
  			iVar8 = 10;
  			break;
  		
  		case 147:
  			StringCopy(&Var2, "PROPS_P1_E9_7", 16);
  			iVar6 = 9;
  			iVar7 = 7;
  			iVar1 = 175;
  			iVar8 = 10;
  			break;
  		
  		case 148:
  			StringCopy(&Var2, "PROPS_P1_E9_8", 16);
  			iVar6 = 9;
  			iVar7 = 8;
  			iVar1 = 170;
  			iVar8 = 10;
  			break;
  		
  		case 149:
  			StringCopy(&Var2, "PROPS_P1_E9_9", 16);
  			iVar6 = 9;
  			iVar7 = 9;
  			iVar1 = 178;
  			iVar8 = 10;
  			break;
  		
  		case 150:
  			StringCopy(&Var2, "PROPS_P1_E10_0", 16);
  			iVar6 = 10;
  			iVar7 = 0;
  			iVar1 = 140;
  			iVar8 = 10;
  			break;
  		
  		case 151:
  			StringCopy(&Var2, "PROPS_P1_E10_1", 16);
  			iVar6 = 10;
  			iVar7 = 1;
  			iVar1 = 145;
  			iVar8 = 10;
  			break;
  		
  		case 152:
  			StringCopy(&Var2, "PROPS_P1_E10_2", 16);
  			iVar6 = 10;
  			iVar7 = 2;
  			iVar1 = 150;
  			iVar8 = 10;
  			break;
  		
  		case 153:
  			StringCopy(&Var2, "PROPS_P1_E10_3", 16);
  			iVar6 = 10;
  			iVar7 = 3;
  			iVar1 = 165;
  			iVar8 = 10;
  			break;
  		
  		case 154:
  			StringCopy(&Var2, "PROPS_P1_E10_4", 16);
  			iVar6 = 10;
  			iVar7 = 4;
  			iVar1 = 168;
  			iVar8 = 10;
  			break;
  		
  		case 155:
  			StringCopy(&Var2, "PROPS_P1_E10_5", 16);
  			iVar6 = 10;
  			iVar7 = 5;
  			iVar1 = 178;
  			iVar8 = 10;
  			break;
  		
  		case 156:
  			StringCopy(&Var2, "PROPS_P1_E10_6", 16);
  			iVar6 = 10;
  			iVar7 = 6;
  			iVar1 = 160;
  			iVar8 = 10;
  			break;
  		
  		case 157:
  			StringCopy(&Var2, "NO_LABEL", 16);
  			iVar6 = 11;
  			iVar7 = 0;
  			iVar1 = 100;
  			iVar8 = 10;
  			break;
  		
  		case 10:
  			StringCopy(&Var2, "PROPS_P1_H0_0", 16);
  			iVar6 = 0;
  			iVar7 = 0;
  			iVar1 = 320;
  			iVar8 = 0;
  			break;
  		
  		case 11:
  			StringCopy(&Var2, "NO_LABEL", 16);
  			iVar6 = 1;
  			iVar7 = 0;
  			bVar0 = true;
  			iVar8 = 0;
  			break;
  		
  		case 12:
  			StringCopy(&Var2, "NO_LABEL", 16);
  			iVar6 = 2;
  			iVar7 = 0;
  			bVar0 = true;
  			iVar8 = 0;
  			break;
  		
  		case 13:
  			StringCopy(&Var2, "PROPS_P1_H3_0", 16);
  			iVar6 = 3;
  			iVar7 = 0;
  			iVar8 = 0;
  			break;
  		
  		case 14:
  			StringCopy(&Var2, "NO_LABEL", 16);
  			iVar6 = 4;
  			iVar7 = 0;
  			iVar8 = 0;
  			break;
  		
  		case 15:
  			StringCopy(&Var2, "NO_LABEL", 16);
  			iVar6 = 5;
  			iVar7 = 0;
  			bVar0 = true;
  			iVar8 = 0;
  			break;
  		
  		case 16:
  			StringCopy(&Var2, "NO_LABEL", 16);
  			iVar6 = 6;
  			iVar7 = 0;
  			iVar8 = 0;
  			break;
  		
  		case 17:
  			StringCopy(&Var2, "NO_LABEL", 16);
  			iVar6 = 6;
  			iVar7 = 1;
  			iVar8 = 0;
  			break;
  		
  		case 18:
  			StringCopy(&Var2, "NO_LABEL", 16);
  			iVar6 = 6;
  			iVar7 = 2;
  			iVar8 = 0;
  			break;
  		
  		case 19:
  			StringCopy(&Var2, "NO_LABEL", 16);
  			iVar6 = 6;
  			iVar7 = 3;
  			iVar8 = 0;
  			break;
  		
  		case 20:
  			StringCopy(&Var2, "NO_LABEL", 16);
  			iVar6 = 6;
  			iVar7 = 4;
  			iVar8 = 0;
  			break;
  		
  		case 21:
  			StringCopy(&Var2, "NO_LABEL", 16);
  			iVar6 = 6;
  			iVar7 = 5;
  			iVar8 = 0;
  			break;
  		
  		case 22:
  			StringCopy(&Var2, "NO_LABEL", 16);
  			iVar6 = 6;
  			iVar7 = 6;
  			iVar8 = 0;
  			break;
  		
  		case 23:
  			StringCopy(&Var2, "NO_LABEL", 16);
  			iVar6 = 6;
  			iVar7 = 7;
  			iVar8 = 0;
  			break;
  		
  		case 24:
  			StringCopy(&Var2, "NO_LABEL", 16);
  			iVar6 = 6;
  			iVar7 = 8;
  			iVar8 = 0;
  			break;
  		
  		case 25:
  			StringCopy(&Var2, "NO_LABEL", 16);
  			iVar6 = 7;
  			iVar7 = 0;
  			bVar0 = true;
  			iVar8 = 0;
  			break;
  		
  		case 26:
  			StringCopy(&Var2, "PROPS_P1_H8_0", 16);
  			iVar6 = 8;
  			iVar7 = 0;
  			iVar1 = 270;
  			iVar8 = 0;
  			break;
  		
  		case 27:
  			StringCopy(&Var2, "PROPS_P1_H8_1", 16);
  			iVar6 = 8;
  			iVar7 = 1;
  			iVar1 = 270;
  			iVar8 = 0;
  			break;
  		
  		case 28:
  			StringCopy(&Var2, "PROPS_P1_H9_0", 16);
  			iVar6 = 9;
  			iVar7 = 0;
  			iVar1 = 200;
  			iVar8 = 0;
  			break;
  		
  		case 29:
  			StringCopy(&Var2, "PROPS_P1_H9_1", 16);
  			iVar6 = 9;
  			iVar7 = 1;
  			iVar1 = 200;
  			iVar8 = 0;
  			break;
  		
  		case 30:
  			StringCopy(&Var2, "PROPS_P1_H10_0", 16);
  			iVar6 = 10;
  			iVar7 = 0;
  			iVar1 = 350;
  			iVar8 = 0;
  			break;
  		
  		case 31:
  			StringCopy(&Var2, "PROPS_P1_H10_1", 16);
  			iVar6 = 10;
  			iVar7 = 1;
  			iVar1 = 350;
  			iVar8 = 0;
  			break;
  		
  		case 32:
  			StringCopy(&Var2, "PROPS_P1_H11_0", 16);
  			iVar6 = 11;
  			iVar7 = 0;
  			iVar1 = 450;
  			iVar8 = 0;
  			break;
  		
  		case 33:
  			StringCopy(&Var2, "PROPS_P1_H12_0", 16);
  			iVar6 = 12;
  			iVar7 = 0;
  			iVar1 = 500;
  			iVar8 = 0;
  			break;
  		
  		case 34:
  			StringCopy(&Var2, "PROPS_P1_H12_1", 16);
  			iVar6 = 12;
  			iVar7 = 1;
  			iVar1 = 500;
  			iVar8 = 0;
  			break;
  		
  		case 35:
  			StringCopy(&Var2, "PROPS_P1_H13_0", 16);
  			iVar6 = 13;
  			iVar7 = 0;
  			iVar1 = 50;
  			iVar8 = 0;
  			break;
  		
  		case 36:
  			StringCopy(&Var2, "PROPS_P1_H13_1", 16);
  			iVar6 = 13;
  			iVar7 = 1;
  			iVar1 = 50;
  			iVar8 = 0;
  			break;
  		
  		case 37:
  			StringCopy(&Var2, "PROPS_P1_H14_0", 16);
  			iVar6 = 14;
  			iVar7 = 0;
  			iVar1 = 99;
  			iVar8 = 0;
  			break;
  		
  		case 38:
  			StringCopy(&Var2, "PROPS_P1_H14_1", 16);
  			iVar6 = 14;
  			iVar7 = 1;
  			iVar1 = 99;
  			iVar8 = 0;
  			break;
  		
  		case 39:
  			StringCopy(&Var2, "PROPS_P1_H14_2", 16);
  			iVar6 = 14;
  			iVar7 = 2;
  			iVar1 = 99;
  			iVar8 = 0;
  			break;
  		
  		case 40:
  			StringCopy(&Var2, "NO_LABEL", 16);
  			iVar6 = 15;
  			iVar7 = 0;
  			bVar0 = true;
  			iVar8 = 0;
  			break;
  		
  		case 41:
  			StringCopy(&Var2, "PROPS_P1_H19_0", 16);
  			iVar6 = 16;
  			iVar7 = 0;
  			iVar8 = 0;
  			break;
  		
  		case 42:
  			StringCopy(&Var2, "PROPS_P1_H19_1", 16);
  			iVar6 = 16;
  			iVar7 = 1;
  			iVar8 = 0;
  			break;
  		
  		case 43:
  			StringCopy(&Var2, "PROPS_P1_H19_2", 16);
  			iVar6 = 16;
  			iVar7 = 2;
  			iVar8 = 0;
  			break;
  		
  		case 44:
  			StringCopy(&Var2, "PROPS_P1_H19_3", 16);
  			iVar6 = 16;
  			iVar7 = 3;
  			iVar8 = 0;
  			break;
  		
  		case 45:
  			StringCopy(&Var2, "PROPS_P1_H19_4", 16);
  			iVar6 = 16;
  			iVar7 = 4;
  			iVar8 = 0;
  			break;
  		
  		case 46:
  			StringCopy(&Var2, "PROPS_P1_H19_5", 16);
  			iVar6 = 16;
  			iVar7 = 5;
  			iVar8 = 0;
  			break;
  		
  		case 47:
  			StringCopy(&Var2, "PROPS_P1_H19_6", 16);
  			iVar6 = 16;
  			iVar7 = 6;
  			iVar8 = 0;
  			break;
  		
  		case 48:
  			StringCopy(&Var2, "PROPS_P1_H19_7", 16);
  			iVar6 = 16;
  			iVar7 = 7;
  			iVar8 = 0;
  			break;
  		
  		case 49:
  			StringCopy(&Var2, "PROPS_P1_H19_8", 16);
  			iVar6 = 16;
  			iVar7 = 8;
  			iVar8 = 0;
  			break;
  		
  		case 50:
  			StringCopy(&Var2, "PROPS_P1_H19_9", 16);
  			iVar6 = 16;
  			iVar7 = 9;
  			iVar8 = 0;
  			break;
  		
  		case 51:
  			StringCopy(&Var2, "PROPS_P1_H19_10", 16);
  			iVar6 = 16;
  			iVar7 = 10;
  			iVar8 = 0;
  			break;
  		
  		case 52:
  			StringCopy(&Var2, "PROPS_P1_H19_11", 16);
  			iVar6 = 16;
  			iVar7 = 11;
  			iVar8 = 0;
  			break;
  		
  		case 53:
  			StringCopy(&Var2, "PROPS_P1_H19_12", 16);
  			iVar6 = 16;
  			iVar7 = 12;
  			iVar8 = 0;
  			break;
  		
  		case 54:
  			StringCopy(&Var2, "PROPS_P1_H19_13", 16);
  			iVar6 = 16;
  			iVar7 = 13;
  			iVar8 = 0;
  			break;
  		
  		case 55:
  			StringCopy(&Var2, "PROPS_P1_H19_14", 16);
  			iVar6 = 16;
  			iVar7 = 14;
  			iVar8 = 0;
  			break;
  		
  		case 56:
  			StringCopy(&Var2, "PROPS_P1_H19_15", 16);
  			iVar6 = 16;
  			iVar7 = 15;
  			iVar8 = 0;
  			break;
  		
  		case 57:
  			StringCopy(&Var2, "NO_LABEL", 16);
  			iVar6 = 17;
  			iVar7 = 0;
  			iVar8 = 0;
  			break;
  		
  		case 58:
  			StringCopy(&Var2, "NO_LABEL", 16);
  			iVar6 = 17;
  			iVar7 = 1;
  			iVar8 = 0;
  			break;
  		
  		case 59:
  			StringCopy(&Var2, "NO_LABEL", 16);
  			iVar6 = 17;
  			iVar7 = 2;
  			iVar8 = 0;
  			break;
  		
  		case 60:
  			StringCopy(&Var2, "NO_LABEL", 16);
  			iVar6 = 17;
  			iVar7 = 3;
  			iVar8 = 0;
  			break;
  		
  		case 61:
  			StringCopy(&Var2, "NO_LABEL", 16);
  			iVar6 = 17;
  			iVar7 = 4;
  			iVar8 = 0;
  			break;
  		
  		case 62:
  			StringCopy(&Var2, "NO_LABEL", 16);
  			iVar6 = 17;
  			iVar7 = 5;
  			iVar8 = 0;
  			break;
  		
  		case 63:
  			StringCopy(&Var2, "NO_LABEL", 16);
  			iVar6 = 18;
  			iVar7 = 0;
  			iVar8 = 0;
  			break;
  		
  		case 64:
  			StringCopy(&Var2, "PROPS_P1_H19_0", 16);
  			iVar6 = 19;
  			iVar7 = 0;
  			iVar1 = 30;
  			iVar8 = 0;
  			break;
  		
  		case 65:
  			StringCopy(&Var2, "PROPS_P1_H19_1", 16);
  			iVar6 = 19;
  			iVar7 = 1;
  			iVar1 = 30;
  			iVar8 = 0;
  			break;
  		
  		case 66:
  			StringCopy(&Var2, "PROPS_P1_H19_2", 16);
  			iVar6 = 19;
  			iVar7 = 2;
  			iVar1 = 32;
  			iVar8 = 0;
  			break;
  		
  		case 67:
  			StringCopy(&Var2, "PROPS_P1_H19_3", 16);
  			iVar6 = 19;
  			iVar7 = 3;
  			iVar1 = 35;
  			iVar8 = 0;
  			break;
  		
  		case 68:
  			StringCopy(&Var2, "PROPS_P1_H19_4", 16);
  			iVar6 = 19;
  			iVar7 = 4;
  			iVar1 = 38;
  			iVar8 = 0;
  			break;
  		
  		case 69:
  			StringCopy(&Var2, "PROPS_P1_H19_5", 16);
  			iVar6 = 19;
  			iVar7 = 5;
  			iVar1 = 42;
  			iVar8 = 0;
  			break;
  		
  		case 70:
  			StringCopy(&Var2, "PROPS_P1_H19_6", 16);
  			iVar6 = 19;
  			iVar7 = 6;
  			iVar1 = 42;
  			iVar8 = 0;
  			break;
  		
  		case 71:
  			StringCopy(&Var2, "PROPS_P1_H19_7", 16);
  			iVar6 = 19;
  			iVar7 = 7;
  			iVar1 = 40;
  			iVar8 = 0;
  			break;
  		
  		case 72:
  			StringCopy(&Var2, "PROPS_P1_H19_8", 16);
  			iVar6 = 19;
  			iVar7 = 8;
  			iVar1 = 45;
  			iVar8 = 0;
  			break;
  		
  		case 73:
  			StringCopy(&Var2, "PROPS_P1_H19_9", 16);
  			iVar6 = 19;
  			iVar7 = 9;
  			iVar1 = 48;
  			iVar8 = 0;
  			break;
  		
  		case 74:
  			StringCopy(&Var2, "PROPS_P1_H19_10", 16);
  			iVar6 = 19;
  			iVar7 = 10;
  			iVar1 = 25;
  			iVar8 = 0;
  			break;
  		
  		case 75:
  			StringCopy(&Var2, "PROPS_P1_H19_11", 16);
  			iVar6 = 19;
  			iVar7 = 11;
  			iVar1 = 25;
  			iVar8 = 0;
  			break;
  		
  		case 76:
  			StringCopy(&Var2, "PROPS_P1_H19_12", 16);
  			iVar6 = 19;
  			iVar7 = 12;
  			iVar1 = 28;
  			iVar8 = 0;
  			break;
  		
  		case 77:
  			StringCopy(&Var2, "PROPS_P1_H19_13", 16);
  			iVar6 = 19;
  			iVar7 = 13;
  			iVar1 = 28;
  			iVar8 = 0;
  			break;
  		
  		case 78:
  			StringCopy(&Var2, "PROPS_P1_H19_14", 16);
  			iVar6 = 19;
  			iVar7 = 14;
  			iVar1 = 30;
  			iVar8 = 0;
  			break;
  		
  		case joaat("mpsv_lp0_31"):
  			StringCopy(&Var2, "PROPS_P1_H19_15", 16);
  			iVar6 = 19;
  			iVar7 = 15;
  			iVar1 = 35;
  			iVar8 = 0;
  			break;
  		
  		case 80:
  			StringCopy(&Var2, "NO_LABEL", 16);
  			iVar6 = 20;
  			iVar7 = 0;
  			iVar8 = 0;
  			break;
  		
  		case 81:
  			StringCopy(&Var2, "NO_LABEL", 16);
  			iVar6 = 21;
  			iVar7 = 0;
  			iVar8 = 0;
  			break;
  		
  		default:
  			func_269(iVar10, iParam0, 175, -1);
  			return;
  			break;
  	}
  	func_263(&(Global_77669[0 /*14*/]), iVar10, iParam0, &Var2, iVar6, iVar7, iVar1, bVar0, iVar8, iVar9, 0);
  }
  
  void func_288(int iParam0)
  {
  	bool bVar0;
  	int iVar1;
  	struct<2> Var2;
  	int iVar6;
  	int iVar7;
  	int iVar8;
  	int iVar9;
  	int iVar10;
  	
  	bVar0 = false;
  	iVar1 = 10;
  	iVar6 = 0;
  	iVar7 = 0;
  	iVar8 = -1;
  	iVar9 = 2;
  	iVar10 = 13;
  	Global_77669[0 /*14*/].f_5 = 1;
  	switch (iParam0)
  	{
  		case 31:
  			StringCopy(&Var2, "NO_LABEL", 16);
  			iVar6 = 0;
  			iVar7 = 0;
  			break;
  		
  		case 0:
  			StringCopy(&Var2, "NO_LABEL", 16);
  			iVar6 = 0;
  			iVar7 = 0;
  			break;
  		
  		case 1:
  			StringCopy(&Var2, "NO_LABEL", 16);
  			iVar6 = 0;
  			iVar7 = 0;
  			bVar0 = true;
  			break;
  		
  		case 2:
  			StringCopy(&Var2, "NO_LABEL", 16);
  			iVar6 = 0;
  			iVar7 = 0;
  			bVar0 = true;
  			break;
  		
  		case 3:
  			StringCopy(&Var2, "NO_LABEL", 16);
  			iVar6 = 0;
  			iVar7 = 0;
  			bVar0 = true;
  			break;
  		
  		case 4:
  			StringCopy(&Var2, "NO_LABEL", 16);
  			iVar6 = 0;
  			iVar7 = 0;
  			break;
  		
  		case 5:
  			StringCopy(&Var2, "NO_LABEL", 16);
  			iVar6 = 0;
  			iVar7 = 0;
  			bVar0 = true;
  			break;
  		
  		case 6:
  			StringCopy(&Var2, "NO_LABEL", 16);
  			iVar6 = 0;
  			iVar7 = 0;
  			break;
  		
  		case 7:
  			StringCopy(&Var2, "NO_LABEL", 16);
  			iVar6 = 0;
  			iVar7 = 0;
  			break;
  		
  		case 8:
  			StringCopy(&Var2, "NO_LABEL", 16);
  			iVar6 = 0;
  			iVar7 = 0;
  			break;
  		
  		default:
  			func_269(iVar10, iParam0, 9, -1);
  			return;
  			break;
  	}
  	func_263(&(Global_77669[0 /*14*/]), iVar10, iParam0, &Var2, iVar6, iVar7, iVar1, bVar0, iVar8, iVar9, 0);
  }
  
  void func_289(int iParam0)
  {
  	bool bVar0;
  	int iVar1;
  	struct<2> Var2;
  	int iVar6;
  	int iVar7;
  	int iVar8;
  	int iVar9;
  	int iVar10;
  	
  	bVar0 = false;
  	iVar1 = 10;
  	iVar6 = 0;
  	iVar7 = 0;
  	iVar8 = -1;
  	iVar9 = 2;
  	iVar10 = 12;
  	Global_77669[0 /*14*/].f_5 = 1;
  	switch (iParam0)
  	{
  		case 0:
  			StringCopy(&Var2, "OUTFIT_P1_0", 16);
  			iVar6 = 0;
  			iVar7 = 0;
  			bVar0 = true;
  			break;
  		
  		case 1:
  			StringCopy(&Var2, "OUTFIT_P1_2", 16);
  			iVar6 = 0;
  			iVar7 = 0;
  			break;
  		
  		case 2:
  			StringCopy(&Var2, "OUTFIT_P1_4", 16);
  			iVar6 = 0;
  			iVar7 = 0;
  			break;
  		
  		case 3:
  			StringCopy(&Var2, "NO_LABEL", 16);
  			iVar6 = 0;
  			iVar7 = 0;
  			break;
  		
  		case 4:
  			StringCopy(&Var2, "OUTFIT_P1_7", 16);
  			iVar6 = 0;
  			iVar7 = 0;
  			break;
  		
  		case 5:
  			StringCopy(&Var2, "OUTFIT_P1_10", 16);
  			iVar6 = 0;
  			iVar7 = 0;
  			break;
  		
  		case 6:
  			StringCopy(&Var2, "OUTFIT_P1_11", 16);
  			iVar6 = 0;
  			iVar7 = 0;
  			break;
  		
  		case 7:
  			StringCopy(&Var2, "OUTFIT_P1_12", 16);
  			iVar6 = 0;
  			iVar7 = 0;
  			break;
  		
  		case 8:
  			StringCopy(&Var2, "OUTFIT_P1_13", 16);
  			iVar6 = 0;
  			iVar7 = 0;
  			break;
  		
  		case 9:
  			StringCopy(&Var2, "OUTFIT_P1_15", 16);
  			iVar6 = 0;
  			iVar7 = 0;
  			break;
  		
  		case 10:
  			StringCopy(&Var2, "OUTFIT_P1_16", 16);
  			iVar6 = 0;
  			iVar7 = 0;
  			break;
  		
  		case 11:
  			StringCopy(&Var2, "OUTFIT_P1_17", 16);
  			iVar6 = 0;
  			iVar7 = 0;
  			iVar1 = 10000;
  			break;
  		
  		case 12:
  			StringCopy(&Var2, "OUTFIT_P1_18", 16);
  			iVar6 = 0;
  			iVar7 = 0;
  			break;
  		
  		case 13:
  			StringCopy(&Var2, "OUTFIT_P1_19", 16);
  			iVar6 = 0;
  			iVar7 = 0;
  			iVar1 = 105;
  			break;
  		
  		case 14:
  			StringCopy(&Var2, "OUTFIT_P1_20", 16);
  			iVar6 = 0;
  			iVar7 = 0;
  			iVar1 = 105;
  			break;
  		
  		case 15:
  			StringCopy(&Var2, "OUTFIT_P1_21", 16);
  			iVar6 = 0;
  			iVar7 = 0;
  			iVar1 = 105;
  			break;
  		
  		case 16:
  			StringCopy(&Var2, "OUTFIT_P1_22", 16);
  			iVar6 = 0;
  			iVar7 = 0;
  			break;
  		
  		case 17:
  			StringCopy(&Var2, "OUTFIT_P1_23", 16);
  			iVar6 = 0;
  			iVar7 = 0;
  			break;
  		
  		case 18:
  			StringCopy(&Var2, "OUTFIT_P1_24", 16);
  			iVar6 = 0;
  			iVar7 = 0;
  			break;
  		
  		case 19:
  			StringCopy(&Var2, "OUTFIT_P1_25", 16);
  			iVar6 = 0;
  			iVar7 = 0;
  			break;
  		
  		case 20:
  			StringCopy(&Var2, "OUTFIT_P1_26", 16);
  			iVar6 = 0;
  			iVar7 = 0;
  			break;
  		
  		case 21:
  			StringCopy(&Var2, "OUTFIT_P1_27", 16);
  			iVar6 = 0;
  			iVar7 = 0;
  			break;
  		
  		case 22:
  			StringCopy(&Var2, "OUTFIT_P1_28", 16);
  			iVar6 = 0;
  			iVar7 = 0;
  			iVar1 = 4000;
  			break;
  		
  		case 23:
  			StringCopy(&Var2, "OUTFIT_P1_29", 16);
  			iVar6 = 0;
  			iVar7 = 0;
  			iVar1 = 4500;
  			break;
  		
  		case 24:
  			StringCopy(&Var2, "OUTFIT_P1_30", 16);
  			iVar6 = 0;
  			iVar7 = 0;
  			iVar1 = 4500;
  			break;
  		
  		case 25:
  			StringCopy(&Var2, "OUTFIT_P1_31", 16);
  			iVar6 = 0;
  			iVar7 = 0;
  			iVar1 = 4650;
  			break;
  		
  		case 26:
  			StringCopy(&Var2, "OUTFIT_P1_32", 16);
  			iVar6 = 0;
  			iVar7 = 0;
  			iVar1 = 4900;
  			break;
  		
  		case 27:
  			StringCopy(&Var2, "OUTFIT_P1_33", 16);
  			iVar6 = 0;
  			iVar7 = 0;
  			iVar1 = 5000;
  			break;
  		
  		case 28:
  			StringCopy(&Var2, "OUTFIT_P1_34", 16);
  			iVar6 = 0;
  			iVar7 = 0;
  			iVar1 = 4750;
  			break;
  		
  		case 29:
  			StringCopy(&Var2, "OUTFIT_P1_35", 16);
  			iVar6 = 0;
  			iVar7 = 0;
  			iVar1 = 4750;
  			break;
  		
  		case 30:
  			StringCopy(&Var2, "OUTFIT_P1_36", 16);
  			iVar6 = 0;
  			iVar7 = 0;
  			iVar1 = 5200;
  			break;
  		
  		case 31:
  			StringCopy(&Var2, "OUTFIT_P1_37", 16);
  			iVar6 = 0;
  			iVar7 = 0;
  			iVar1 = 5200;
  			break;
  		
  		case 32:
  			StringCopy(&Var2, "OUTFIT_P1_38", 16);
  			iVar6 = 0;
  			iVar7 = 0;
  			iVar1 = 5500;
  			break;
  		
  		case 33:
  			StringCopy(&Var2, "OUTFIT_P1_39", 16);
  			iVar6 = 0;
  			iVar7 = 0;
  			iVar1 = 5900;
  			break;
  		
  		case 34:
  			StringCopy(&Var2, "OUTFIT_P1_40", 16);
  			iVar6 = 0;
  			iVar7 = 0;
  			iVar1 = 5900;
  			break;
  		
  		case 35:
  			StringCopy(&Var2, "OUTFIT_P1_41", 16);
  			iVar6 = 0;
  			iVar7 = 0;
  			iVar1 = 5900;
  			break;
  		
  		case 36:
  			StringCopy(&Var2, "OUTFIT_P1_42", 16);
  			iVar6 = 0;
  			iVar7 = 0;
  			iVar1 = 5900;
  			break;
  		
  		case 37:
  			StringCopy(&Var2, "OUTFIT_P1_43", 16);
  			iVar6 = 0;
  			iVar7 = 0;
  			iVar1 = 5900;
  			break;
  		
  		case 38:
  			StringCopy(&Var2, "OUTFIT_P1_47", 16);
  			iVar6 = 0;
  			iVar7 = 0;
  			iVar1 = 3000;
  			break;
  		
  		case 39:
  			StringCopy(&Var2, "OUTFIT_P1_48", 16);
  			iVar6 = 0;
  			iVar7 = 0;
  			iVar1 = 3000;
  			break;
  		
  		case 40:
  			StringCopy(&Var2, "OUTFIT_P1_49", 16);
  			iVar6 = 0;
  			iVar7 = 0;
  			iVar1 = 3000;
  			break;
  		
  		case 41:
  			StringCopy(&Var2, "OUTFIT_P1_10", 16);
  			iVar6 = 0;
  			iVar7 = 0;
  			break;
  		
  		case 42:
  			StringCopy(&Var2, "OUTFIT_P1_50", 16);
  			iVar6 = 0;
  			iVar7 = 0;
  			break;
  		
  		case 43:
  			StringCopy(&Var2, "OUTFIT_P1_51", 16);
  			iVar6 = 0;
  			iVar7 = 0;
  			break;
  		
  		case 44:
  			StringCopy(&Var2, "OUTFIT_P1_52", 16);
  			iVar6 = 0;
  			iVar7 = 0;
  			break;
  		
  		case 45:
  			StringCopy(&Var2, "OUTFIT_P1_53", 16);
  			iVar6 = 0;
  			iVar7 = 0;
  			break;
  		
  		case 46:
  			StringCopy(&Var2, "OUTFIT_P1_54", 16);
  			iVar6 = 0;
  			iVar7 = 0;
  			break;
  		
  		default:
  			func_269(iVar10, iParam0, 47, -1);
  			return;
  			break;
  	}
  	func_263(&(Global_77669[0 /*14*/]), iVar10, iParam0, &Var2, iVar6, iVar7, iVar1, bVar0, iVar8, iVar9, 0);
  }
  
  void func_290(int iParam0)
  {
  	bool bVar0;
  	int iVar1;
  	struct<2> Var2;
  	int iVar6;
  	int iVar7;
  	int iVar8;
  	int iVar9;
  	int iVar10;
  	
  	bVar0 = false;
  	iVar1 = 10;
  	iVar6 = 0;
  	iVar7 = 0;
  	iVar8 = -1;
  	iVar9 = 2;
  	iVar10 = 11;
  	Global_77669[0 /*14*/].f_5 = 1;
  	switch (iParam0)
  	{
  		case 0:
  			StringCopy(&Var2, "NO_LABEL", 16);
  			iVar6 = 0;
  			iVar7 = 0;
  			break;
  		
  		case 1:
  			StringCopy(&Var2, "NO_LABEL", 16);
  			iVar6 = 1;
  			iVar7 = 0;
  			break;
  		
  		case 2:
  			StringCopy(&Var2, "NO_LABEL", 16);
  			iVar6 = 1;
  			iVar7 = 1;
  			break;
  		
  		case 3:
  			StringCopy(&Var2, "NO_LABEL", 16);
  			iVar6 = 1;
  			iVar7 = 2;
  			break;
  		
  		case 4:
  			StringCopy(&Var2, "NO_LABEL", 16);
  			iVar6 = 1;
  			iVar7 = 3;
  			break;
  		
  		case 5:
  			StringCopy(&Var2, "JBIB_P1_1_0", 16);
  			iVar6 = 2;
  			iVar7 = 0;
  			break;
  		
  		case 6:
  			StringCopy(&Var2, "JBIB_P1_1_1", 16);
  			iVar6 = 2;
  			iVar7 = 1;
  			break;
  		
  		case 7:
  			StringCopy(&Var2, "JBIB_P1_1_2", 16);
  			iVar6 = 2;
  			iVar7 = 2;
  			break;
  		
  		case 8:
  			StringCopy(&Var2, "JBIB_P1_1_3", 16);
  			iVar6 = 2;
  			iVar7 = 3;
  			break;
  		
  		case 9:
  			StringCopy(&Var2, "JBIB_P1_3_0", 16);
  			iVar6 = 3;
  			iVar7 = 0;
  			break;
  		
  		case 10:
  			StringCopy(&Var2, "JBIB_P1_3_1", 16);
  			iVar6 = 3;
  			iVar7 = 1;
  			break;
  		
  		case 11:
  			StringCopy(&Var2, "JBIB_P1_3_2", 16);
  			iVar6 = 3;
  			iVar7 = 2;
  			break;
  		
  		case 12:
  			StringCopy(&Var2, "JBIB_P1_3_3", 16);
  			iVar6 = 3;
  			iVar7 = 3;
  			break;
  		
  		case 13:
  			StringCopy(&Var2, "JBIB_P1_3_4", 16);
  			iVar6 = 3;
  			iVar7 = 4;
  			break;
  		
  		case 14:
  			StringCopy(&Var2, "JBIB_P1_3_5", 16);
  			iVar6 = 3;
  			iVar7 = 5;
  			break;
  		
  		case 15:
  			StringCopy(&Var2, "JBIB_P1_3_6", 16);
  			iVar6 = 3;
  			iVar7 = 6;
  			break;
  		
  		case 16:
  			StringCopy(&Var2, "JBIB_P1_3_7", 16);
  			iVar6 = 3;
  			iVar7 = 7;
  			break;
  		
  		case 17:
  			StringCopy(&Var2, "JBIB_P1_3_8", 16);
  			iVar6 = 3;
  			iVar7 = 8;
  			break;
  		
  		case 18:
  			StringCopy(&Var2, "JBIB_P1_3_9", 16);
  			iVar6 = 3;
  			iVar7 = 9;
  			break;
  		
  		case 19:
  			StringCopy(&Var2, "JBIB_P1_3_10", 16);
  			iVar6 = 3;
  			iVar7 = 10;
  			break;
  		
  		case 20:
  			StringCopy(&Var2, "JBIB_P1_3_11", 16);
  			iVar6 = 3;
  			iVar7 = 11;
  			break;
  		
  		case 21:
  			StringCopy(&Var2, "JBIB_P1_3_12", 16);
  			iVar6 = 3;
  			iVar7 = 12;
  			break;
  		
  		case 22:
  			StringCopy(&Var2, "JBIB_P1_3_13", 16);
  			iVar6 = 3;
  			iVar7 = 13;
  			break;
  		
  		case 23:
  			StringCopy(&Var2, "JBIB_P1_3_14", 16);
  			iVar6 = 3;
  			iVar7 = 14;
  			break;
  		
  		case 24:
  			StringCopy(&Var2, "JBIB_P1_3_15", 16);
  			iVar6 = 3;
  			iVar7 = 15;
  			break;
  		
  		case 25:
  			StringCopy(&Var2, "JBIB_P1_3_0", 16);
  			iVar6 = 4;
  			iVar7 = 0;
  			break;
  		
  		case 26:
  			StringCopy(&Var2, "JBIB_P1_3_1", 16);
  			iVar6 = 4;
  			iVar7 = 1;
  			break;
  		
  		case 27:
  			StringCopy(&Var2, "JBIB_P1_3_2", 16);
  			iVar6 = 4;
  			iVar7 = 2;
  			break;
  		
  		case 28:
  			StringCopy(&Var2, "JBIB_P1_3_3", 16);
  			iVar6 = 4;
  			iVar7 = 3;
  			break;
  		
  		case 29:
  			StringCopy(&Var2, "JBIB_P1_3_4", 16);
  			iVar6 = 4;
  			iVar7 = 4;
  			break;
  		
  		case 30:
  			StringCopy(&Var2, "JBIB_P1_3_5", 16);
  			iVar6 = 4;
  			iVar7 = 5;
  			break;
  		
  		case 31:
  			StringCopy(&Var2, "JBIB_P1_3_6", 16);
  			iVar6 = 4;
  			iVar7 = 6;
  			break;
  		
  		case 32:
  			StringCopy(&Var2, "JBIB_P1_3_7", 16);
  			iVar6 = 4;
  			iVar7 = 7;
  			break;
  		
  		case 33:
  			StringCopy(&Var2, "JBIB_P1_3_8", 16);
  			iVar6 = 4;
  			iVar7 = 8;
  			break;
  		
  		case 34:
  			StringCopy(&Var2, "JBIB_P1_3_9", 16);
  			iVar6 = 4;
  			iVar7 = 9;
  			break;
  		
  		case 35:
  			StringCopy(&Var2, "JBIB_P1_3_10", 16);
  			iVar6 = 4;
  			iVar7 = 10;
  			break;
  		
  		case 36:
  			StringCopy(&Var2, "JBIB_P1_3_11", 16);
  			iVar6 = 4;
  			iVar7 = 11;
  			break;
  		
  		case 37:
  			StringCopy(&Var2, "JBIB_P1_3_12", 16);
  			iVar6 = 4;
  			iVar7 = 12;
  			break;
  		
  		case 38:
  			StringCopy(&Var2, "JBIB_P1_3_13", 16);
  			iVar6 = 4;
  			iVar7 = 13;
  			break;
  		
  		case 39:
  			StringCopy(&Var2, "JBIB_P1_3_14", 16);
  			iVar6 = 4;
  			iVar7 = 14;
  			break;
  		
  		case 40:
  			StringCopy(&Var2, "JBIB_P1_3_15", 16);
  			iVar6 = 4;
  			iVar7 = 15;
  			break;
  		
  		case 41:
  			StringCopy(&Var2, "JBIB_P1_5_0", 16);
  			iVar6 = 5;
  			iVar7 = 0;
  			break;
  		
  		case 42:
  			StringCopy(&Var2, "JBIB_P1_6_0", 16);
  			iVar6 = 6;
  			iVar7 = 0;
  			break;
  		
  		case 43:
  			StringCopy(&Var2, "JBIB_P1_6_1", 16);
  			iVar6 = 6;
  			iVar7 = 1;
  			break;
  		
  		case 44:
  			StringCopy(&Var2, "JBIB_P1_7_0", 16);
  			iVar6 = 7;
  			iVar7 = 0;
  			break;
  		
  		case 45:
  			StringCopy(&Var2, "JBIB_P1_8_0", 16);
  			iVar6 = 8;
  			iVar7 = 0;
  			break;
  		
  		case 46:
  			StringCopy(&Var2, "JBIB_P1_9_0", 16);
  			iVar6 = 9;
  			iVar7 = 0;
  			break;
  		
  		case 47:
  			StringCopy(&Var2, "JBIB_P1_10_0", 16);
  			iVar6 = 10;
  			iVar7 = 0;
  			break;
  		
  		case 48:
  			StringCopy(&Var2, "JBIB_P1_10_1", 16);
  			iVar6 = 10;
  			iVar7 = 1;
  			iVar1 = 48;
  			break;
  		
  		case 49:
  			StringCopy(&Var2, "JBIB_P1_10_2", 16);
  			iVar6 = 10;
  			iVar7 = 2;
  			iVar1 = 35;
  			break;
  		
  		case 50:
  			StringCopy(&Var2, "JBIB_P1_10_3", 16);
  			iVar6 = 10;
  			iVar7 = 3;
  			iVar1 = 32;
  			break;
  		
  		case 51:
  			StringCopy(&Var2, "JBIB_P1_10_4", 16);
  			iVar6 = 10;
  			iVar7 = 4;
  			iVar1 = 35;
  			break;
  		
  		case 52:
  			StringCopy(&Var2, "JBIB_P1_10_5", 16);
  			iVar6 = 10;
  			iVar7 = 5;
  			iVar1 = 48;
  			break;
  		
  		case 53:
  			StringCopy(&Var2, "JBIB_P1_10_6", 16);
  			iVar6 = 10;
  			iVar7 = 6;
  			iVar1 = 52;
  			break;
  		
  		case 54:
  			StringCopy(&Var2, "JBIB_P1_10_7", 16);
  			iVar6 = 10;
  			iVar7 = 7;
  			iVar1 = 38;
  			break;
  		
  		case 55:
  			StringCopy(&Var2, "JBIB_P1_10_8", 16);
  			iVar6 = 10;
  			iVar7 = 8;
  			iVar1 = 42;
  			break;
  		
  		case 56:
  			StringCopy(&Var2, "JBIB_P1_10_9", 16);
  			iVar6 = 10;
  			iVar7 = 9;
  			iVar1 = 38;
  			break;
  		
  		case 57:
  			StringCopy(&Var2, "JBIB_P1_10_10", 16);
  			iVar6 = 10;
  			iVar7 = 10;
  			iVar1 = 35;
  			break;
  		
  		case 58:
  			StringCopy(&Var2, "JBIB_P1_10_11", 16);
  			iVar6 = 10;
  			iVar7 = 11;
  			iVar1 = 48;
  			break;
  		
  		case 59:
  			StringCopy(&Var2, "JBIB_P1_10_12", 16);
  			iVar6 = 10;
  			iVar7 = 12;
  			iVar1 = 42;
  			break;
  		
  		case 60:
  			StringCopy(&Var2, "JBIB_P1_10_13", 16);
  			iVar6 = 10;
  			iVar7 = 13;
  			iVar1 = 45;
  			break;
  		
  		case 61:
  			StringCopy(&Var2, "JBIB_P1_10_14", 16);
  			iVar6 = 10;
  			iVar7 = 14;
  			iVar1 = 45;
  			break;
  		
  		case 62:
  			StringCopy(&Var2, "JBIB_P1_10_15", 16);
  			iVar6 = 10;
  			iVar7 = 15;
  			iVar1 = 49;
  			break;
  		
  		default:
  			func_269(iVar10, iParam0, 63, -1);
  			return;
  			break;
  	}
  	func_263(&(Global_77669[0 /*14*/]), iVar10, iParam0, &Var2, iVar6, iVar7, iVar1, bVar0, iVar8, iVar9, 0);
  }
  
  void func_291(int iParam0)
  {
  	bool bVar0;
  	int iVar1;
  	struct<2> Var2;
  	int iVar6;
  	int iVar7;
  	int iVar8;
  	int iVar9;
  	int iVar10;
  	
  	bVar0 = false;
  	iVar1 = 10;
  	iVar6 = 0;
  	iVar7 = 0;
  	iVar8 = -1;
  	iVar9 = 2;
  	iVar10 = 7;
  	Global_77669[0 /*14*/].f_5 = 1;
  	switch (iParam0)
  	{
  		case 0:
  			StringCopy(&Var2, "NO_LABEL", 16);
  			iVar6 = 0;
  			iVar7 = 0;
  			break;
  		
  		default:
  			func_269(iVar10, iParam0, 1, -1);
  			return;
  			break;
  	}
  	func_263(&(Global_77669[0 /*14*/]), iVar10, iParam0, &Var2, iVar6, iVar7, iVar1, bVar0, iVar8, iVar9, 0);
  }
  
  void func_292(int iParam0)
  {
  	bool bVar0;
  	int iVar1;
  	struct<2> Var2;
  	int iVar6;
  	int iVar7;
  	int iVar8;
  	int iVar9;
  	int iVar10;
  	
  	bVar0 = false;
  	iVar1 = 10;
  	iVar6 = 0;
  	iVar7 = 0;
  	iVar8 = -1;
  	iVar9 = 2;
  	iVar10 = 1;
  	Global_77669[0 /*14*/].f_5 = 1;
  	switch (iParam0)
  	{
  		case 0:
  			StringCopy(&Var2, "BERD_P1_0_0", 16);
  			iVar6 = 0;
  			iVar7 = 0;
  			break;
  		
  		case 1:
  			StringCopy(&Var2, "BERD_P1_1_0", 16);
  			iVar6 = 1;
  			iVar7 = 0;
  			break;
  		
  		case 2:
  			StringCopy(&Var2, "BERD_P1_2_0", 16);
  			iVar6 = 2;
  			iVar7 = 0;
  			break;
  		
  		case 3:
  			StringCopy(&Var2, "BERD_P1_3_0", 16);
  			iVar6 = 3;
  			iVar7 = 0;
  			break;
  		
  		case 4:
  			StringCopy(&Var2, "BERD_P1_4_0", 16);
  			iVar6 = 4;
  			iVar7 = 0;
  			break;
  		
  		default:
  			func_269(iVar10, iParam0, 5, -1);
  			return;
  			break;
  	}
  	func_263(&(Global_77669[0 /*14*/]), iVar10, iParam0, &Var2, iVar6, iVar7, iVar1, bVar0, iVar8, iVar9, 0);
  }
  
  void func_293(int iParam0)
  {
  	bool bVar0;
  	int iVar1;
  	struct<2> Var2;
  	int iVar6;
  	int iVar7;
  	int iVar8;
  	int iVar9;
  	int iVar10;
  	
  	bVar0 = false;
  	iVar1 = 10;
  	iVar6 = 0;
  	iVar7 = 0;
  	iVar8 = -1;
  	iVar9 = 2;
  	iVar10 = 10;
  	Global_77669[0 /*14*/].f_5 = 1;
  	switch (iParam0)
  	{
  		case 0:
  			StringCopy(&Var2, "NO_LABEL", 16);
  			iVar6 = 0;
  			iVar7 = 0;
  			break;
  		
  		case 1:
  			StringCopy(&Var2, "NO_LABEL", 16);
  			iVar6 = 1;
  			iVar7 = 0;
  			break;
  		
  		case 2:
  			StringCopy(&Var2, "NO_LABEL", 16);
  			iVar6 = 2;
  			iVar7 = 0;
  			break;
  		
  		case 3:
  			StringCopy(&Var2, "NO_LABEL", 16);
  			iVar6 = 3;
  			iVar7 = 0;
  			break;
  		
  		case 4:
  			StringCopy(&Var2, "NO_LABEL", 16);
  			iVar6 = 3;
  			iVar7 = 1;
  			break;
  		
  		case 5:
  			StringCopy(&Var2, "NO_LABEL", 16);
  			iVar6 = 3;
  			iVar7 = 2;
  			break;
  		
  		case 6:
  			StringCopy(&Var2, "NO_LABEL", 16);
  			iVar6 = 3;
  			iVar7 = 3;
  			break;
  		
  		case 7:
  			StringCopy(&Var2, "NO_LABEL", 16);
  			iVar6 = 3;
  			iVar7 = 4;
  			break;
  		
  		case 8:
  			StringCopy(&Var2, "NO_LABEL", 16);
  			iVar6 = 3;
  			iVar7 = 5;
  			break;
  		
  		case 9:
  			StringCopy(&Var2, "NO_LABEL", 16);
  			iVar6 = 4;
  			iVar7 = 0;
  			break;
  		
  		case 10:
  			StringCopy(&Var2, "NO_LABEL", 16);
  			iVar6 = 4;
  			iVar7 = 1;
  			break;
  		
  		case 11:
  			StringCopy(&Var2, "NO_LABEL", 16);
  			iVar6 = 4;
  			iVar7 = 2;
  			break;
  		
  		case 12:
  			StringCopy(&Var2, "NO_LABEL", 16);
  			iVar6 = 4;
  			iVar7 = 3;
  			break;
  		
  		case 13:
  			StringCopy(&Var2, "NO_LABEL", 16);
  			iVar6 = 4;
  			iVar7 = 4;
  			break;
  		
  		case 14:
  			StringCopy(&Var2, "NO_LABEL", 16);
  			iVar6 = 4;
  			iVar7 = 5;
  			break;
  		
  		case 15:
  			StringCopy(&Var2, "NO_LABEL", 16);
  			iVar6 = 4;
  			iVar7 = 6;
  			break;
  		
  		case 16:
  			StringCopy(&Var2, "NO_LABEL", 16);
  			iVar6 = 5;
  			iVar7 = 0;
  			break;
  		
  		case 17:
  			StringCopy(&Var2, "NO_LABEL", 16);
  			iVar6 = 5;
  			iVar7 = 1;
  			break;
  		
  		case 18:
  			StringCopy(&Var2, "NO_LABEL", 16);
  			iVar6 = 5;
  			iVar7 = 2;
  			break;
  		
  		case 19:
  			StringCopy(&Var2, "NO_LABEL", 16);
  			iVar6 = 5;
  			iVar7 = 3;
  			break;
  		
  		case 20:
  			StringCopy(&Var2, "NO_LABEL", 16);
  			iVar6 = 5;
  			iVar7 = 4;
  			break;
  		
  		case 21:
  			StringCopy(&Var2, "NO_LABEL", 16);
  			iVar6 = 5;
  			iVar7 = 5;
  			break;
  		
  		case 22:
  			StringCopy(&Var2, "NO_LABEL", 16);
  			iVar6 = 5;
  			iVar7 = 6;
  			break;
  		
  		case 23:
  			StringCopy(&Var2, "NO_LABEL", 16);
  			iVar6 = 5;
  			iVar7 = 7;
  			break;
  		
  		case 24:
  			StringCopy(&Var2, "NO_LABEL", 16);
  			iVar6 = 5;
  			iVar7 = 8;
  			break;
  		
  		case 25:
  			StringCopy(&Var2, "NO_LABEL", 16);
  			iVar6 = 5;
  			iVar7 = 9;
  			break;
  		
  		case 26:
  			StringCopy(&Var2, "NO_LABEL", 16);
  			iVar6 = 5;
  			iVar7 = 10;
  			break;
  		
  		case 27:
  			StringCopy(&Var2, "NO_LABEL", 16);
  			iVar6 = 5;
  			iVar7 = 11;
  			break;
  		
  		case 28:
  			StringCopy(&Var2, "NO_LABEL", 16);
  			iVar6 = 5;
  			iVar7 = 12;
  			break;
  		
  		case 29:
  			StringCopy(&Var2, "NO_LABEL", 16);
  			iVar6 = 5;
  			iVar7 = 13;
  			break;
  		
  		case 30:
  			StringCopy(&Var2, "NO_LABEL", 16);
  			iVar6 = 5;
  			iVar7 = 14;
  			break;
  		
  		case 31:
  			StringCopy(&Var2, "NO_LABEL", 16);
  			iVar6 = 5;
  			iVar7 = 15;
  			break;
  		
  		case 32:
  			StringCopy(&Var2, "NO_LABEL", 16);
  			iVar6 = 6;
  			iVar7 = 0;
  			break;
  		
  		case 33:
  			StringCopy(&Var2, "NO_LABEL", 16);
  			iVar6 = 6;
  			iVar7 = 1;
  			break;
  		
  		case 34:
  			StringCopy(&Var2, "NO_LABEL", 16);
  			iVar6 = 6;
  			iVar7 = 2;
  			break;
  		
  		case 35:
  			StringCopy(&Var2, "NO_LABEL", 16);
  			iVar6 = 6;
  			iVar7 = 3;
  			break;
  		
  		case 36:
  			StringCopy(&Var2, "NO_LABEL", 16);
  			iVar6 = 6;
  			iVar7 = 4;
  			break;
  		
  		case 37:
  			StringCopy(&Var2, "NO_LABEL", 16);
  			iVar6 = 6;
  			iVar7 = 5;
  			break;
  		
  		case 38:
  			StringCopy(&Var2, "NO_LABEL", 16);
  			iVar6 = 6;
  			iVar7 = 6;
  			break;
  		
  		case 39:
  			StringCopy(&Var2, "NO_LABEL", 16);
  			iVar6 = 7;
  			iVar7 = 0;
  			break;
  		
  		case 40:
  			StringCopy(&Var2, "NO_LABEL", 16);
  			iVar6 = 7;
  			iVar7 = 1;
  			break;
  		
  		case 41:
  			StringCopy(&Var2, "NO_LABEL", 16);
  			iVar6 = 7;
  			iVar7 = 2;
  			break;
  		
  		case 42:
  			StringCopy(&Var2, "NO_LABEL", 16);
  			iVar6 = 7;
  			iVar7 = 3;
  			break;
  		
  		case 43:
  			StringCopy(&Var2, "NO_LABEL", 16);
  			iVar6 = 7;
  			iVar7 = 4;
  			break;
  		
  		case 44:
  			StringCopy(&Var2, "NO_LABEL", 16);
  			iVar6 = 7;
  			iVar7 = 5;
  			break;
  		
  		case 45:
  			StringCopy(&Var2, "NO_LABEL", 16);
  			iVar6 = 7;
  			iVar7 = 6;
  			break;
  		
  		case 46:
  			StringCopy(&Var2, "NO_LABEL", 16);
  			iVar6 = 7;
  			iVar7 = 7;
  			break;
  		
  		case 47:
  			StringCopy(&Var2, "NO_LABEL", 16);
  			iVar6 = 8;
  			iVar7 = 0;
  			break;
  		
  		case 48:
  			StringCopy(&Var2, "NO_LABEL", 16);
  			iVar6 = 8;
  			iVar7 = 1;
  			break;
  		
  		case 49:
  			StringCopy(&Var2, "NO_LABEL", 16);
  			iVar6 = 8;
  			iVar7 = 2;
  			break;
  		
  		case 50:
  			StringCopy(&Var2, "NO_LABEL", 16);
  			iVar6 = 8;
  			iVar7 = 3;
  			break;
  		
  		case 51:
  			StringCopy(&Var2, "NO_LABEL", 16);
  			iVar6 = 9;
  			iVar7 = 0;
  			break;
  		
  		case 52:
  			StringCopy(&Var2, "NO_LABEL", 16);
  			iVar6 = 10;
  			iVar7 = 0;
  			break;
  		
  		default:
  			func_269(iVar10, iParam0, 53, -1);
  			return;
  			break;
  	}
  	func_263(&(Global_77669[0 /*14*/]), iVar10, iParam0, &Var2, iVar6, iVar7, iVar1, bVar0, iVar8, iVar9, 0);
  }
  
  void func_294(int iParam0)
  {
  	bool bVar0;
  	int iVar1;
  	struct<2> Var2;
  	int iVar6;
  	int iVar7;
  	int iVar8;
  	int iVar9;
  	int iVar10;
  	
  	bVar0 = false;
  	iVar1 = 10;
  	iVar6 = 0;
  	iVar7 = 0;
  	iVar8 = -1;
  	iVar9 = 2;
  	iVar10 = 9;
  	Global_77669[0 /*14*/].f_5 = 1;
  	switch (iParam0)
  	{
  		case 0:
  			StringCopy(&Var2, "NO_LABEL", 16);
  			iVar6 = 0;
  			iVar7 = 0;
  			break;
  		
  		case 1:
  			StringCopy(&Var2, "NO_LABEL", 16);
  			iVar6 = 1;
  			iVar7 = 0;
  			bVar0 = true;
  			break;
  		
  		case 2:
  			StringCopy(&Var2, "NO_LABEL", 16);
  			iVar6 = 2;
  			iVar7 = 0;
  			bVar0 = true;
  			break;
  		
  		case 3:
  			StringCopy(&Var2, "NO_LABEL", 16);
  			iVar6 = 3;
  			iVar7 = 0;
  			bVar0 = true;
  			break;
  		
  		case 4:
  			StringCopy(&Var2, "NO_LABEL", 16);
  			iVar6 = 4;
  			iVar7 = 0;
  			bVar0 = true;
  			break;
  		
  		case 5:
  			StringCopy(&Var2, "SPEC2_P0_08_0", 16);
  			iVar6 = 5;
  			iVar7 = 0;
  			iVar1 = 125;
  			break;
  		
  		case 6:
  			StringCopy(&Var2, "SPEC2_P0_08_1", 16);
  			iVar6 = 5;
  			iVar7 = 1;
  			iVar1 = 150;
  			break;
  		
  		case 7:
  			StringCopy(&Var2, "SPEC2_P0_08_2", 16);
  			iVar6 = 5;
  			iVar7 = 2;
  			iVar1 = 175;
  			break;
  		
  		case 8:
  			StringCopy(&Var2, "SPEC2_P0_08_3", 16);
  			iVar6 = 5;
  			iVar7 = 3;
  			iVar1 = 85;
  			break;
  		
  		case 9:
  			StringCopy(&Var2, "SPEC2_P0_08_4", 16);
  			iVar6 = 5;
  			iVar7 = 4;
  			iVar1 = 150;
  			break;
  		
  		case 10:
  			StringCopy(&Var2, "SPEC2_P0_08_5", 16);
  			iVar6 = 5;
  			iVar7 = 5;
  			iVar1 = 175;
  			break;
  		
  		case 11:
  			StringCopy(&Var2, "NO_LABEL", 16);
  			iVar6 = 6;
  			iVar7 = 0;
  			break;
  		
  		default:
  			func_269(iVar10, iParam0, 12, -1);
  			return;
  			break;
  	}
  	func_263(&(Global_77669[0 /*14*/]), iVar10, iParam0, &Var2, iVar6, iVar7, iVar1, bVar0, iVar8, iVar9, 0);
  }
  
  void func_295(int iParam0)
  {
  	bool bVar0;
  	int iVar1;
  	struct<2> Var2;
  	int iVar6;
  	int iVar7;
  	int iVar8;
  	int iVar9;
  	int iVar10;
  	
  	bVar0 = false;
  	iVar1 = 10;
  	iVar6 = 0;
  	iVar7 = 0;
  	iVar8 = -1;
  	iVar9 = 2;
  	iVar10 = 8;
  	Global_77669[0 /*14*/].f_5 = 1;
  	switch (iParam0)
  	{
  		case 0:
  			StringCopy(&Var2, "NO_LABEL", 16);
  			iVar6 = 0;
  			iVar7 = 0;
  			break;
  		
  		case 1:
  			StringCopy(&Var2, "NO_LABEL", 16);
  			iVar6 = 1;
  			iVar7 = 0;
  			break;
  		
  		case 2:
  			StringCopy(&Var2, "NO_LABEL", 16);
  			iVar6 = 2;
  			iVar7 = 0;
  			bVar0 = true;
  			break;
  		
  		case 3:
  			StringCopy(&Var2, "NO_LABEL", 16);
  			iVar6 = 3;
  			iVar7 = 0;
  			bVar0 = true;
  			break;
  		
  		case 4:
  			StringCopy(&Var2, "NO_LABEL", 16);
  			iVar6 = 4;
  			iVar7 = 0;
  			bVar0 = true;
  			break;
  		
  		case 5:
  			StringCopy(&Var2, "NO_LABEL", 16);
  			iVar6 = 5;
  			iVar7 = 0;
  			bVar0 = true;
  			break;
  		
  		case 6:
  			StringCopy(&Var2, "NO_LABEL", 16);
  			iVar6 = 6;
  			iVar7 = 0;
  			bVar0 = true;
  			break;
  		
  		case 7:
  			StringCopy(&Var2, "NO_LABEL", 16);
  			iVar6 = 7;
  			iVar7 = 0;
  			bVar0 = true;
  			break;
  		
  		case 8:
  			StringCopy(&Var2, "NO_LABEL", 16);
  			iVar6 = 8;
  			iVar7 = 0;
  			bVar0 = true;
  			break;
  		
  		case 9:
  			StringCopy(&Var2, "SPEC_P1_9_0", 16);
  			iVar6 = 9;
  			iVar7 = 0;
  			break;
  		
  		case 10:
  			StringCopy(&Var2, "NO_LABEL", 16);
  			iVar6 = 10;
  			iVar7 = 0;
  			bVar0 = true;
  			break;
  		
  		case 11:
  			StringCopy(&Var2, "SPEC_P1_11_0", 16);
  			iVar6 = 11;
  			iVar7 = 0;
  			iVar1 = 195;
  			break;
  		
  		case 12:
  			StringCopy(&Var2, "SPEC_P1_11_1", 16);
  			iVar6 = 11;
  			iVar7 = 1;
  			iVar1 = 195;
  			break;
  		
  		case 13:
  			StringCopy(&Var2, "SPEC_P1_11_2", 16);
  			iVar6 = 11;
  			iVar7 = 2;
  			iVar1 = 195;
  			break;
  		
  		case 14:
  			StringCopy(&Var2, "SPEC_P1_11_3", 16);
  			iVar6 = 11;
  			iVar7 = 3;
  			iVar1 = 250;
  			break;
  		
  		case 15:
  			StringCopy(&Var2, "SPEC_P1_11_4", 16);
  			iVar6 = 11;
  			iVar7 = 4;
  			iVar1 = 250;
  			break;
  		
  		case 16:
  			StringCopy(&Var2, "SPEC_P1_11_5", 16);
  			iVar6 = 11;
  			iVar7 = 5;
  			iVar1 = 250;
  			break;
  		
  		case 17:
  			StringCopy(&Var2, "SPEC_P1_11_6", 16);
  			iVar6 = 11;
  			iVar7 = 6;
  			iVar1 = 195;
  			break;
  		
  		case 18:
  			StringCopy(&Var2, "SPEC_P1_11_7", 16);
  			iVar6 = 11;
  			iVar7 = 7;
  			iVar1 = 250;
  			break;
  		
  		case 19:
  			StringCopy(&Var2, "SPEC_P1_11_8", 16);
  			iVar6 = 11;
  			iVar7 = 8;
  			iVar1 = 250;
  			break;
  		
  		case 20:
  			StringCopy(&Var2, "SPEC_P1_11_9", 16);
  			iVar6 = 11;
  			iVar7 = 9;
  			iVar1 = 250;
  			break;
  		
  		case 21:
  			StringCopy(&Var2, "SPEC_P1_11_10", 16);
  			iVar6 = 11;
  			iVar7 = 10;
  			iVar1 = 250;
  			break;
  		
  		case 22:
  			StringCopy(&Var2, "SPEC_P1_11_11", 16);
  			iVar6 = 11;
  			iVar7 = 11;
  			iVar1 = 195;
  			break;
  		
  		case 23:
  			StringCopy(&Var2, "SPEC_P1_11_12", 16);
  			iVar6 = 11;
  			iVar7 = 12;
  			iVar1 = 250;
  			break;
  		
  		case 24:
  			StringCopy(&Var2, "NO_LABEL", 16);
  			iVar6 = 12;
  			iVar7 = 0;
  			bVar0 = true;
  			break;
  		
  		case 25:
  			StringCopy(&Var2, "NO_LABEL", 16);
  			iVar6 = 13;
  			iVar7 = 0;
  			bVar0 = true;
  			break;
  		
  		case 26:
  			StringCopy(&Var2, "NO_LABEL", 16);
  			iVar6 = 14;
  			iVar7 = 0;
  			break;
  		
  		case 27:
  			StringCopy(&Var2, "SPEC_P1_15_0", 16);
  			iVar6 = 15;
  			iVar7 = 0;
  			break;
  		
  		case 28:
  			StringCopy(&Var2, "SPEC_P1_15_1", 16);
  			iVar6 = 15;
  			iVar7 = 1;
  			break;
  		
  		case 29:
  			StringCopy(&Var2, "SPEC_P1_15_2", 16);
  			iVar6 = 15;
  			iVar7 = 2;
  			break;
  		
  		case 30:
  			StringCopy(&Var2, "SPEC_P1_15_3", 16);
  			iVar6 = 15;
  			iVar7 = 3;
  			break;
  		
  		case 31:
  			StringCopy(&Var2, "SPEC_P1_15_4", 16);
  			iVar6 = 15;
  			iVar7 = 4;
  			break;
  		
  		case 32:
  			StringCopy(&Var2, "SPEC_P1_15_5", 16);
  			iVar6 = 15;
  			iVar7 = 5;
  			break;
  		
  		case 33:
  			StringCopy(&Var2, "SPEC_P1_15_6", 16);
  			iVar6 = 15;
  			iVar7 = 6;
  			break;
  		
  		case 34:
  			StringCopy(&Var2, "SPEC_P1_15_7", 16);
  			iVar6 = 15;
  			iVar7 = 7;
  			break;
  		
  		case 35:
  			StringCopy(&Var2, "SPEC_P1_15_8", 16);
  			iVar6 = 15;
  			iVar7 = 8;
  			break;
  		
  		case 36:
  			StringCopy(&Var2, "SPEC_P1_15_9", 16);
  			iVar6 = 15;
  			iVar7 = 9;
  			break;
  		
  		case 37:
  			StringCopy(&Var2, "SPEC_P1_15_10", 16);
  			iVar6 = 15;
  			iVar7 = 10;
  			break;
  		
  		case 38:
  			StringCopy(&Var2, "SPEC_P1_15_11", 16);
  			iVar6 = 15;
  			iVar7 = 11;
  			break;
  		
  		case 39:
  			StringCopy(&Var2, "SPEC_P1_15_12", 16);
  			iVar6 = 15;
  			iVar7 = 12;
  			break;
  		
  		case 40:
  			StringCopy(&Var2, "SPEC_P1_15_13", 16);
  			iVar6 = 15;
  			iVar7 = 13;
  			break;
  		
  		case 41:
  			StringCopy(&Var2, "SPEC_P1_15_14", 16);
  			iVar6 = 15;
  			iVar7 = 14;
  			break;
  		
  		case 42:
  			StringCopy(&Var2, "SPEC_P1_15_15", 16);
  			iVar6 = 15;
  			iVar7 = 15;
  			break;
  		
  		case 43:
  			StringCopy(&Var2, "SPEC_P1_15_0", 16);
  			iVar6 = 16;
  			iVar7 = 0;
  			break;
  		
  		case 44:
  			StringCopy(&Var2, "SPEC_P1_15_1", 16);
  			iVar6 = 16;
  			iVar7 = 1;
  			break;
  		
  		case 45:
  			StringCopy(&Var2, "SPEC_P1_15_2", 16);
  			iVar6 = 16;
  			iVar7 = 2;
  			break;
  		
  		case 46:
  			StringCopy(&Var2, "SPEC_P1_15_3", 16);
  			iVar6 = 16;
  			iVar7 = 3;
  			break;
  		
  		case 47:
  			StringCopy(&Var2, "SPEC_P1_15_4", 16);
  			iVar6 = 16;
  			iVar7 = 4;
  			break;
  		
  		case 48:
  			StringCopy(&Var2, "SPEC_P1_15_5", 16);
  			iVar6 = 16;
  			iVar7 = 5;
  			break;
  		
  		case 49:
  			StringCopy(&Var2, "SPEC_P1_15_6", 16);
  			iVar6 = 16;
  			iVar7 = 6;
  			break;
  		
  		case 50:
  			StringCopy(&Var2, "SPEC_P1_15_7", 16);
  			iVar6 = 16;
  			iVar7 = 7;
  			break;
  		
  		case 51:
  			StringCopy(&Var2, "SPEC_P1_15_8", 16);
  			iVar6 = 16;
  			iVar7 = 8;
  			break;
  		
  		case 52:
  			StringCopy(&Var2, "SPEC_P1_15_9", 16);
  			iVar6 = 16;
  			iVar7 = 9;
  			break;
  		
  		case 53:
  			StringCopy(&Var2, "SPEC_P1_15_10", 16);
  			iVar6 = 16;
  			iVar7 = 10;
  			break;
  		
  		case 54:
  			StringCopy(&Var2, "SPEC_P1_15_11", 16);
  			iVar6 = 16;
  			iVar7 = 11;
  			break;
  		
  		case 55:
  			StringCopy(&Var2, "SPEC_P1_15_12", 16);
  			iVar6 = 16;
  			iVar7 = 12;
  			break;
  		
  		case 56:
  			StringCopy(&Var2, "SPEC_P1_15_13", 16);
  			iVar6 = 16;
  			iVar7 = 13;
  			break;
  		
  		case 57:
  			StringCopy(&Var2, "SPEC_P1_15_14", 16);
  			iVar6 = 16;
  			iVar7 = 14;
  			break;
  		
  		case 58:
  			StringCopy(&Var2, "SPEC_P1_15_15", 16);
  			iVar6 = 16;
  			iVar7 = 15;
  			break;
  		
  		case 59:
  			StringCopy(&Var2, "SPEC_P1_15_0", 16);
  			iVar6 = 17;
  			iVar7 = 0;
  			break;
  		
  		case 60:
  			StringCopy(&Var2, "SPEC_P1_15_1", 16);
  			iVar6 = 17;
  			iVar7 = 1;
  			break;
  		
  		case 61:
  			StringCopy(&Var2, "SPEC_P1_15_2", 16);
  			iVar6 = 17;
  			iVar7 = 2;
  			break;
  		
  		case 62:
  			StringCopy(&Var2, "SPEC_P1_15_3", 16);
  			iVar6 = 17;
  			iVar7 = 3;
  			break;
  		
  		case 63:
  			StringCopy(&Var2, "SPEC_P1_15_4", 16);
  			iVar6 = 17;
  			iVar7 = 4;
  			break;
  		
  		case 64:
  			StringCopy(&Var2, "SPEC_P1_15_5", 16);
  			iVar6 = 17;
  			iVar7 = 5;
  			break;
  		
  		case 65:
  			StringCopy(&Var2, "SPEC_P1_15_6", 16);
  			iVar6 = 17;
  			iVar7 = 6;
  			break;
  		
  		case 66:
  			StringCopy(&Var2, "SPEC_P1_15_7", 16);
  			iVar6 = 17;
  			iVar7 = 7;
  			break;
  		
  		case 67:
  			StringCopy(&Var2, "SPEC_P1_15_8", 16);
  			iVar6 = 17;
  			iVar7 = 8;
  			break;
  		
  		case 68:
  			StringCopy(&Var2, "SPEC_P1_15_9", 16);
  			iVar6 = 17;
  			iVar7 = 9;
  			break;
  		
  		case 69:
  			StringCopy(&Var2, "SPEC_P1_15_10", 16);
  			iVar6 = 17;
  			iVar7 = 10;
  			break;
  		
  		case 70:
  			StringCopy(&Var2, "SPEC_P1_15_11", 16);
  			iVar6 = 17;
  			iVar7 = 11;
  			break;
  		
  		case 71:
  			StringCopy(&Var2, "SPEC_P1_15_12", 16);
  			iVar6 = 17;
  			iVar7 = 12;
  			break;
  		
  		case 72:
  			StringCopy(&Var2, "SPEC_P1_15_13", 16);
  			iVar6 = 17;
  			iVar7 = 13;
  			break;
  		
  		case 73:
  			StringCopy(&Var2, "SPEC_P1_15_14", 16);
  			iVar6 = 17;
  			iVar7 = 14;
  			break;
  		
  		case 74:
  			StringCopy(&Var2, "SPEC_P1_15_15", 16);
  			iVar6 = 17;
  			iVar7 = 15;
  			break;
  		
  		case 75:
  			StringCopy(&Var2, "NO_LABEL", 16);
  			iVar6 = 18;
  			iVar7 = 0;
  			break;
  		
  		case 76:
  			StringCopy(&Var2, "NO_LABEL", 16);
  			iVar6 = 19;
  			iVar7 = 0;
  			break;
  		
  		default:
  			func_269(iVar10, iParam0, 77, -1);
  			return;
  			break;
  	}
  	func_263(&(Global_77669[0 /*14*/]), iVar10, iParam0, &Var2, iVar6, iVar7, iVar1, bVar0, iVar8, iVar9, 0);
  }
  
  void func_296(int iParam0)
  {
  	bool bVar0;
  	int iVar1;
  	struct<2> Var2;
  	int iVar6;
  	int iVar7;
  	int iVar8;
  	int iVar9;
  	int iVar10;
  	
  	bVar0 = false;
  	iVar1 = 10;
  	iVar6 = 0;
  	iVar7 = 0;
  	iVar8 = -1;
  	iVar9 = 2;
  	iVar10 = 5;
  	Global_77669[0 /*14*/].f_5 = 1;
  	switch (iParam0)
  	{
  		case 0:
  			StringCopy(&Var2, "NO_LABEL", 16);
  			iVar6 = 0;
  			iVar7 = 0;
  			break;
  		
  		case 1:
  			StringCopy(&Var2, "NO_LABEL", 16);
  			iVar6 = 1;
  			iVar7 = 0;
  			bVar0 = true;
  			break;
  		
  		case 2:
  			StringCopy(&Var2, "NO_LABEL", 16);
  			iVar6 = 2;
  			iVar7 = 0;
  			bVar0 = true;
  			break;
  		
  		case 3:
  			StringCopy(&Var2, "NO_LABEL", 16);
  			iVar6 = 2;
  			iVar7 = 1;
  			bVar0 = true;
  			break;
  		
  		case 4:
  			StringCopy(&Var2, "NO_LABEL", 16);
  			iVar6 = 3;
  			iVar7 = 0;
  			bVar0 = true;
  			break;
  		
  		case 5:
  			StringCopy(&Var2, "NO_LABEL", 16);
  			iVar6 = 4;
  			iVar7 = 0;
  			bVar0 = true;
  			break;
  		
  		case 6:
  			StringCopy(&Var2, "NO_LABEL", 16);
  			iVar6 = 5;
  			iVar7 = 0;
  			bVar0 = true;
  			break;
  		
  		default:
  			func_269(iVar10, iParam0, 7, -1);
  			return;
  			break;
  	}
  	func_263(&(Global_77669[0 /*14*/]), iVar10, iParam0, &Var2, iVar6, iVar7, iVar1, bVar0, iVar8, iVar9, 0);
  }
  
  void func_297(int iParam0)
  {
  	bool bVar0;
  	int iVar1;
  	struct<2> Var2;
  	int iVar6;
  	int iVar7;
  	int iVar8;
  	int iVar9;
  	int iVar10;
  	
  	bVar0 = false;
  	iVar1 = 10;
  	iVar6 = 0;
  	iVar7 = 0;
  	iVar8 = -1;
  	iVar9 = 2;
  	iVar10 = 6;
  	Global_77669[0 /*14*/].f_5 = 1;
  	switch (iParam0)
  	{
  		case 0:
  			StringCopy(&Var2, "FEET_P1_00_0", 16);
  			iVar6 = 0;
  			iVar7 = 0;
  			break;
  		
  		case 1:
  			StringCopy(&Var2, "FEET_P1_00_1", 16);
  			iVar6 = 0;
  			iVar7 = 1;
  			iVar1 = 80;
  			break;
  		
  		case 2:
  			StringCopy(&Var2, "FEET_P1_00_2", 16);
  			iVar6 = 0;
  			iVar7 = 2;
  			iVar1 = 80;
  			break;
  		
  		case 3:
  			StringCopy(&Var2, "FEET_P1_00_3", 16);
  			iVar6 = 0;
  			iVar7 = 3;
  			iVar1 = 89;
  			break;
  		
  		case 4:
  			StringCopy(&Var2, "FEET_P1_00_4", 16);
  			iVar6 = 0;
  			iVar7 = 4;
  			iVar1 = 45;
  			break;
  		
  		case 5:
  			StringCopy(&Var2, "FEET_P1_00_5", 16);
  			iVar6 = 0;
  			iVar7 = 5;
  			iVar1 = 35;
  			break;
  		
  		case 6:
  			StringCopy(&Var2, "FEET_P1_00_6", 16);
  			iVar6 = 0;
  			iVar7 = 6;
  			iVar1 = 89;
  			break;
  		
  		case 7:
  			StringCopy(&Var2, "FEET_P1_00_7", 16);
  			iVar6 = 0;
  			iVar7 = 7;
  			iVar1 = 95;
  			break;
  		
  		case 8:
  			StringCopy(&Var2, "FEET_P1_00_8", 16);
  			iVar6 = 0;
  			iVar7 = 8;
  			iVar1 = 115;
  			break;
  		
  		case 9:
  			StringCopy(&Var2, "FEET_P1_00_9", 16);
  			iVar6 = 0;
  			iVar7 = 9;
  			iVar1 = 40;
  			break;
  		
  		case 10:
  			StringCopy(&Var2, "FEET_P1_00_10", 16);
  			iVar6 = 0;
  			iVar7 = 10;
  			iVar1 = 145;
  			break;
  		
  		case 11:
  			StringCopy(&Var2, "FEET_P1_00_11", 16);
  			iVar6 = 0;
  			iVar7 = 11;
  			iVar1 = 145;
  			break;
  		
  		case 12:
  			StringCopy(&Var2, "FEET_P1_01_0", 16);
  			iVar6 = 1;
  			iVar7 = 0;
  			break;
  		
  		case 13:
  			StringCopy(&Var2, "NO_LABEL", 16);
  			iVar6 = 2;
  			iVar7 = 0;
  			bVar0 = true;
  			break;
  		
  		case 14:
  			StringCopy(&Var2, "NO_LABEL", 16);
  			iVar6 = 3;
  			iVar7 = 0;
  			bVar0 = true;
  			break;
  		
  		case 15:
  			StringCopy(&Var2, "NO_LABEL", 16);
  			iVar6 = 4;
  			iVar7 = 0;
  			bVar0 = true;
  			break;
  		
  		case 16:
  			StringCopy(&Var2, "NO_LABEL", 16);
  			iVar6 = 4;
  			iVar7 = 1;
  			bVar0 = true;
  			break;
  		
  		case 17:
  			StringCopy(&Var2, "NO_LABEL", 16);
  			iVar6 = 5;
  			iVar7 = 0;
  			break;
  		
  		case 18:
  			StringCopy(&Var2, "FEET_P1_06_0", 16);
  			iVar6 = 6;
  			iVar7 = 0;
  			break;
  		
  		case 19:
  			StringCopy(&Var2, "FEET_P1_06_1", 16);
  			iVar6 = 6;
  			iVar7 = 1;
  			iVar1 = 180;
  			break;
  		
  		case 20:
  			StringCopy(&Var2, "FEET_P1_06_2", 16);
  			iVar6 = 6;
  			iVar7 = 2;
  			iVar1 = 80;
  			break;
  		
  		case 21:
  			StringCopy(&Var2, "FEET_P1_06_3", 16);
  			iVar6 = 6;
  			iVar7 = 3;
  			iVar1 = 200;
  			break;
  		
  		case 22:
  			StringCopy(&Var2, "FEET_P1_06_4", 16);
  			iVar6 = 6;
  			iVar7 = 4;
  			iVar1 = 220;
  			break;
  		
  		case 23:
  			StringCopy(&Var2, "FEET_P1_06_5", 16);
  			iVar6 = 6;
  			iVar7 = 5;
  			iVar1 = 235;
  			break;
  		
  		case 24:
  			StringCopy(&Var2, "NO_LABEL", 16);
  			iVar6 = 7;
  			iVar7 = 0;
  			bVar0 = true;
  			break;
  		
  		case 25:
  			StringCopy(&Var2, "FEET_P1_08_0", 16);
  			iVar6 = 8;
  			iVar7 = 0;
  			iVar1 = 870;
  			break;
  		
  		case 26:
  			StringCopy(&Var2, "FEET_P1_08_1", 16);
  			iVar6 = 8;
  			iVar7 = 1;
  			iVar1 = 870;
  			break;
  		
  		case 27:
  			StringCopy(&Var2, "FEET_P1_08_2", 16);
  			iVar6 = 8;
  			iVar7 = 2;
  			iVar1 = 870;
  			break;
  		
  		case 28:
  			StringCopy(&Var2, "FEET_P1_08_3", 16);
  			iVar6 = 8;
  			iVar7 = 3;
  			iVar1 = 1275;
  			break;
  		
  		case 29:
  			StringCopy(&Var2, "FEET_P1_08_4", 16);
  			iVar6 = 8;
  			iVar7 = 4;
  			iVar1 = 1275;
  			break;
  		
  		case 30:
  			StringCopy(&Var2, "FEET_P1_08_5", 16);
  			iVar6 = 8;
  			iVar7 = 5;
  			iVar1 = 1275;
  			break;
  		
  		case 31:
  			StringCopy(&Var2, "FEET_P1_08_6", 16);
  			iVar6 = 8;
  			iVar7 = 6;
  			iVar1 = 1275;
  			break;
  		
  		case 32:
  			StringCopy(&Var2, "FEET_P1_08_7", 16);
  			iVar6 = 8;
  			iVar7 = 7;
  			iVar1 = 1275;
  			break;
  		
  		case 33:
  			StringCopy(&Var2, "FEET_P1_08_8", 16);
  			iVar6 = 8;
  			iVar7 = 8;
  			iVar1 = 1275;
  			break;
  		
  		case 34:
  			StringCopy(&Var2, "NO_LABEL", 16);
  			iVar6 = 9;
  			iVar7 = 0;
  			bVar0 = true;
  			break;
  		
  		case 35:
  			StringCopy(&Var2, "FEET_P1_10_0", 16);
  			iVar6 = 10;
  			iVar7 = 0;
  			bVar0 = true;
  			break;
  		
  		case 36:
  			StringCopy(&Var2, "FEET_P1_11_0", 16);
  			iVar6 = 11;
  			iVar7 = 0;
  			break;
  		
  		case 37:
  			StringCopy(&Var2, "FEET_P1_11_1", 16);
  			iVar6 = 11;
  			iVar7 = 1;
  			iVar1 = 50;
  			break;
  		
  		case 38:
  			StringCopy(&Var2, "FEET_P1_11_2", 16);
  			iVar6 = 11;
  			iVar7 = 2;
  			iVar1 = 50;
  			break;
  		
  		case 39:
  			StringCopy(&Var2, "FEET_P1_11_3", 16);
  			iVar6 = 11;
  			iVar7 = 3;
  			iVar1 = 50;
  			break;
  		
  		case 40:
  			StringCopy(&Var2, "FEET_P1_11_4", 16);
  			iVar6 = 11;
  			iVar7 = 4;
  			iVar1 = 50;
  			break;
  		
  		case 41:
  			StringCopy(&Var2, "FEET_P1_11_5", 16);
  			iVar6 = 11;
  			iVar7 = 5;
  			iVar1 = 50;
  			break;
  		
  		case 42:
  			StringCopy(&Var2, "FEET_P1_11_6", 16);
  			iVar6 = 11;
  			iVar7 = 6;
  			iVar1 = 50;
  			break;
  		
  		case 43:
  			StringCopy(&Var2, "FEET_P1_11_7", 16);
  			iVar6 = 11;
  			iVar7 = 7;
  			iVar1 = 50;
  			break;
  		
  		case 44:
  			StringCopy(&Var2, "FEET_P1_11_8", 16);
  			iVar6 = 11;
  			iVar7 = 8;
  			iVar1 = 50;
  			break;
  		
  		case 45:
  			StringCopy(&Var2, "FEET_P1_11_9", 16);
  			iVar6 = 11;
  			iVar7 = 9;
  			iVar1 = 50;
  			break;
  		
  		case 46:
  			StringCopy(&Var2, "FEET_P1_11_10", 16);
  			iVar6 = 11;
  			iVar7 = 10;
  			iVar1 = 50;
  			break;
  		
  		case 47:
  			StringCopy(&Var2, "FEET_P1_11_11", 16);
  			iVar6 = 11;
  			iVar7 = 11;
  			iVar1 = 50;
  			break;
  		
  		case 48:
  			StringCopy(&Var2, "FEET_P1_11_12", 16);
  			iVar6 = 11;
  			iVar7 = 12;
  			iVar1 = 50;
  			break;
  		
  		case 49:
  			StringCopy(&Var2, "FEET_P1_11_13", 16);
  			iVar6 = 11;
  			iVar7 = 13;
  			iVar1 = 50;
  			break;
  		
  		case 50:
  			StringCopy(&Var2, "FEET_P1_11_14", 16);
  			iVar6 = 11;
  			iVar7 = 14;
  			iVar1 = 50;
  			break;
  		
  		case 51:
  			StringCopy(&Var2, "FEET_P1_11_15", 16);
  			iVar6 = 11;
  			iVar7 = 15;
  			iVar1 = 50;
  			break;
  		
  		case 52:
  			StringCopy(&Var2, "FEET_P1_12_0", 16);
  			iVar6 = 12;
  			iVar7 = 0;
  			break;
  		
  		case 53:
  			StringCopy(&Var2, "FEET_P1_12_1", 16);
  			iVar6 = 12;
  			iVar7 = 1;
  			iVar1 = 25;
  			break;
  		
  		case 54:
  			StringCopy(&Var2, "FEET_P1_12_2", 16);
  			iVar6 = 12;
  			iVar7 = 2;
  			iVar1 = 20;
  			break;
  		
  		case 55:
  			StringCopy(&Var2, "FEET_P1_12_3", 16);
  			iVar6 = 12;
  			iVar7 = 3;
  			iVar1 = 24;
  			break;
  		
  		case 56:
  			StringCopy(&Var2, "FEET_P1_12_4", 16);
  			iVar6 = 12;
  			iVar7 = 4;
  			iVar1 = 25;
  			break;
  		
  		case 57:
  			StringCopy(&Var2, "FEET_P1_12_5", 16);
  			iVar6 = 12;
  			iVar7 = 5;
  			iVar1 = 27;
  			break;
  		
  		case 58:
  			StringCopy(&Var2, "FEET_P1_12_6", 16);
  			iVar6 = 12;
  			iVar7 = 6;
  			iVar1 = 29;
  			break;
  		
  		case 59:
  			StringCopy(&Var2, "FEET_P1_12_7", 16);
  			iVar6 = 12;
  			iVar7 = 7;
  			iVar1 = 27;
  			break;
  		
  		case 60:
  			StringCopy(&Var2, "FEET_P1_12_8", 16);
  			iVar6 = 12;
  			iVar7 = 8;
  			iVar1 = 25;
  			break;
  		
  		case 61:
  			StringCopy(&Var2, "FEET_P1_12_9", 16);
  			iVar6 = 12;
  			iVar7 = 9;
  			iVar1 = 30;
  			break;
  		
  		case 62:
  			StringCopy(&Var2, "FEET_P1_12_10", 16);
  			iVar6 = 12;
  			iVar7 = 10;
  			iVar1 = 28;
  			break;
  		
  		case 63:
  			StringCopy(&Var2, "FEET_P1_12_11", 16);
  			iVar6 = 12;
  			iVar7 = 11;
  			iVar1 = 30;
  			break;
  		
  		case 64:
  			StringCopy(&Var2, "FEET_P1_13_0", 16);
  			iVar6 = 13;
  			iVar7 = 0;
  			bVar0 = true;
  			break;
  		
  		case 65:
  			StringCopy(&Var2, "FEET_P1_14_0", 16);
  			iVar6 = 14;
  			iVar7 = 0;
  			iVar1 = 155;
  			break;
  		
  		case 66:
  			StringCopy(&Var2, "FEET_P1_14_1", 16);
  			iVar6 = 14;
  			iVar7 = 1;
  			iVar1 = 155;
  			break;
  		
  		case 67:
  			StringCopy(&Var2, "FEET_P1_14_2", 16);
  			iVar6 = 14;
  			iVar7 = 2;
  			iVar1 = 165;
  			break;
  		
  		case 68:
  			StringCopy(&Var2, "FEET_P1_14_3", 16);
  			iVar6 = 14;
  			iVar7 = 3;
  			iVar1 = 170;
  			break;
  		
  		case 69:
  			StringCopy(&Var2, "FEET_P1_14_4", 16);
  			iVar6 = 14;
  			iVar7 = 4;
  			iVar1 = 160;
  			break;
  		
  		case 70:
  			StringCopy(&Var2, "FEET_P1_14_5", 16);
  			iVar6 = 14;
  			iVar7 = 5;
  			iVar1 = 165;
  			break;
  		
  		case 71:
  			StringCopy(&Var2, "FEET_P1_14_6", 16);
  			iVar6 = 14;
  			iVar7 = 6;
  			iVar1 = 170;
  			break;
  		
  		case 72:
  			StringCopy(&Var2, "FEET_P1_14_7", 16);
  			iVar6 = 14;
  			iVar7 = 7;
  			iVar1 = 160;
  			break;
  		
  		case 73:
  			StringCopy(&Var2, "NO_LABEL", 16);
  			iVar6 = 15;
  			iVar7 = 0;
  			break;
  		
  		case 74:
  			StringCopy(&Var2, "FEET_P1_16_0", 16);
  			iVar6 = 16;
  			iVar7 = 0;
  			iVar1 = 720;
  			break;
  		
  		case 75:
  			StringCopy(&Var2, "FEET_P1_16_1", 16);
  			iVar6 = 16;
  			iVar7 = 1;
  			iVar1 = 680;
  			break;
  		
  		case 76:
  			StringCopy(&Var2, "FEET_P1_16_2", 16);
  			iVar6 = 16;
  			iVar7 = 2;
  			iVar1 = 650;
  			break;
  		
  		case 77:
  			StringCopy(&Var2, "FEET_P1_16_3", 16);
  			iVar6 = 16;
  			iVar7 = 3;
  			iVar1 = 670;
  			break;
  		
  		case 78:
  			StringCopy(&Var2, "FEET_P1_16_4", 16);
  			iVar6 = 16;
  			iVar7 = 4;
  			iVar1 = 700;
  			break;
  		
  		case joaat("mpsv_lp0_31"):
  			StringCopy(&Var2, "FEET_P1_16_5", 16);
  			iVar6 = 16;
  			iVar7 = 5;
  			iVar1 = 680;
  			break;
  		
  		case 80:
  			StringCopy(&Var2, "FEET_P1_16_6", 16);
  			iVar6 = 16;
  			iVar7 = 6;
  			iVar1 = 720;
  			break;
  		
  		case 81:
  			StringCopy(&Var2, "FEET_P1_16_7", 16);
  			iVar6 = 16;
  			iVar7 = 7;
  			iVar1 = 740;
  			break;
  		
  		case 82:
  			StringCopy(&Var2, "FEET_P1_16_8", 16);
  			iVar6 = 16;
  			iVar7 = 8;
  			iVar1 = 760;
  			break;
  		
  		case 83:
  			StringCopy(&Var2, "FEET_P1_16_9", 16);
  			iVar6 = 16;
  			iVar7 = 9;
  			iVar1 = 780;
  			break;
  		
  		case 84:
  			StringCopy(&Var2, "FEET_P1_16_10", 16);
  			iVar6 = 16;
  			iVar7 = 10;
  			iVar1 = 750;
  			break;
  		
  		case 85:
  			StringCopy(&Var2, "FEET_P1_16_11", 16);
  			iVar6 = 16;
  			iVar7 = 11;
  			iVar1 = 700;
  			break;
  		
  		case 86:
  			StringCopy(&Var2, "FEET_P1_17_0", 16);
  			iVar6 = 17;
  			iVar7 = 0;
  			iVar1 = 790;
  			break;
  		
  		case 87:
  			StringCopy(&Var2, "FEET_P1_17_1", 16);
  			iVar6 = 17;
  			iVar7 = 1;
  			iVar1 = 750;
  			break;
  		
  		case 88:
  			StringCopy(&Var2, "FEET_P1_17_2", 16);
  			iVar6 = 17;
  			iVar7 = 2;
  			iVar1 = 860;
  			break;
  		
  		case 89:
  			StringCopy(&Var2, "FEET_P1_17_3", 16);
  			iVar6 = 17;
  			iVar7 = 3;
  			iVar1 = 750;
  			break;
  		
  		case 90:
  			StringCopy(&Var2, "FEET_P1_17_4", 16);
  			iVar6 = 17;
  			iVar7 = 4;
  			iVar1 = 790;
  			break;
  		
  		case 91:
  			StringCopy(&Var2, "FEET_P1_17_5", 16);
  			iVar6 = 17;
  			iVar7 = 5;
  			iVar1 = 840;
  			break;
  		
  		case 92:
  			StringCopy(&Var2, "FEET_P1_17_6", 16);
  			iVar6 = 17;
  			iVar7 = 6;
  			iVar1 = 820;
  			break;
  		
  		case 93:
  			StringCopy(&Var2, "FEET_P1_17_7", 16);
  			iVar6 = 17;
  			iVar7 = 7;
  			iVar1 = 800;
  			break;
  		
  		case 94:
  			StringCopy(&Var2, "FEET_P1_17_8", 16);
  			iVar6 = 17;
  			iVar7 = 8;
  			iVar1 = 850;
  			break;
  		
  		case 95:
  			StringCopy(&Var2, "FEET_P1_17_9", 16);
  			iVar6 = 17;
  			iVar7 = 9;
  			iVar1 = 870;
  			break;
  		
  		case 96:
  			StringCopy(&Var2, "FEET_P1_17_10", 16);
  			iVar6 = 17;
  			iVar7 = 10;
  			iVar1 = 720;
  			break;
  		
  		case 97:
  			StringCopy(&Var2, "FEET_P1_17_11", 16);
  			iVar6 = 17;
  			iVar7 = 11;
  			iVar1 = 740;
  			break;
  		
  		case 98:
  			StringCopy(&Var2, "FEET_P1_17_12", 16);
  			iVar6 = 17;
  			iVar7 = 12;
  			iVar1 = 800;
  			break;
  		
  		case 99:
  			StringCopy(&Var2, "FEET_P1_17_13", 16);
  			iVar6 = 17;
  			iVar7 = 13;
  			iVar1 = 750;
  			break;
  		
  		case 100:
  			StringCopy(&Var2, "FEET_P1_17_14", 16);
  			iVar6 = 17;
  			iVar7 = 14;
  			iVar1 = 770;
  			break;
  		
  		case 101:
  			StringCopy(&Var2, "FEET_P1_17_15", 16);
  			iVar6 = 17;
  			iVar7 = 15;
  			iVar1 = 860;
  			break;
  		
  		case 102:
  			StringCopy(&Var2, "FEET_P1_18_0", 16);
  			iVar6 = 18;
  			iVar7 = 0;
  			iVar1 = 850;
  			break;
  		
  		case 103:
  			StringCopy(&Var2, "FEET_P1_18_1", 16);
  			iVar6 = 18;
  			iVar7 = 1;
  			iVar1 = 800;
  			break;
  		
  		case 104:
  			StringCopy(&Var2, "FEET_P1_18_2", 16);
  			iVar6 = 18;
  			iVar7 = 2;
  			iVar1 = 780;
  			break;
  		
  		case 105:
  			StringCopy(&Var2, "FEET_P1_18_3", 16);
  			iVar6 = 18;
  			iVar7 = 3;
  			iVar1 = 890;
  			break;
  		
  		case 106:
  			StringCopy(&Var2, "FEET_P1_18_4", 16);
  			iVar6 = 18;
  			iVar7 = 4;
  			iVar1 = 820;
  			break;
  		
  		case 107:
  			StringCopy(&Var2, "FEET_P1_18_5", 16);
  			iVar6 = 18;
  			iVar7 = 5;
  			iVar1 = 840;
  			break;
  		
  		case 108:
  			StringCopy(&Var2, "FEET_P1_18_6", 16);
  			iVar6 = 18;
  			iVar7 = 6;
  			iVar1 = 870;
  			break;
  		
  		case 109:
  			StringCopy(&Var2, "FEET_P1_18_7", 16);
  			iVar6 = 18;
  			iVar7 = 7;
  			iVar1 = 930;
  			break;
  		
  		case 110:
  			StringCopy(&Var2, "FEET_P1_18_8", 16);
  			iVar6 = 18;
  			iVar7 = 8;
  			iVar1 = 880;
  			break;
  		
  		case 111:
  			StringCopy(&Var2, "FEET_P1_18_9", 16);
  			iVar6 = 18;
  			iVar7 = 9;
  			iVar1 = 900;
  			break;
  		
  		case 112:
  			StringCopy(&Var2, "FEET_P1_18_10", 16);
  			iVar6 = 18;
  			iVar7 = 10;
  			iVar1 = 920;
  			break;
  		
  		case 113:
  			StringCopy(&Var2, "FEET_P1_18_11", 16);
  			iVar6 = 18;
  			iVar7 = 11;
  			iVar1 = 970;
  			break;
  		
  		case 114:
  			StringCopy(&Var2, "FEET_P1_18_12", 16);
  			iVar6 = 18;
  			iVar7 = 12;
  			iVar1 = 990;
  			break;
  		
  		case 115:
  			StringCopy(&Var2, "FEET_P1_18_13", 16);
  			iVar6 = 18;
  			iVar7 = 13;
  			iVar1 = 960;
  			break;
  		
  		case 116:
  			StringCopy(&Var2, "FEET_P1_18_14", 16);
  			iVar6 = 18;
  			iVar7 = 14;
  			iVar1 = 980;
  			break;
  		
  		case 117:
  			StringCopy(&Var2, "FEET_P1_18_15", 16);
  			iVar6 = 18;
  			iVar7 = 15;
  			iVar1 = 950;
  			break;
  		
  		case 118:
  			StringCopy(&Var2, "FEET_P1_19_0", 16);
  			iVar6 = 19;
  			iVar7 = 0;
  			iVar1 = 110;
  			break;
  		
  		case 119:
  			StringCopy(&Var2, "FEET_P1_19_1", 16);
  			iVar6 = 19;
  			iVar7 = 1;
  			iVar1 = 115;
  			break;
  		
  		case 120:
  			StringCopy(&Var2, "FEET_P1_19_2", 16);
  			iVar6 = 19;
  			iVar7 = 2;
  			iVar1 = 120;
  			break;
  		
  		case 121:
  			StringCopy(&Var2, "FEET_P1_19_3", 16);
  			iVar6 = 19;
  			iVar7 = 3;
  			iVar1 = 110;
  			break;
  		
  		case 122:
  			StringCopy(&Var2, "FEET_P1_19_4", 16);
  			iVar6 = 19;
  			iVar7 = 4;
  			iVar1 = 125;
  			break;
  		
  		case 123:
  			StringCopy(&Var2, "FEET_P1_19_5", 16);
  			iVar6 = 19;
  			iVar7 = 5;
  			iVar1 = 128;
  			break;
  		
  		case 124:
  			StringCopy(&Var2, "FEET_P1_19_6", 16);
  			iVar6 = 19;
  			iVar7 = 6;
  			iVar1 = 135;
  			break;
  		
  		case 125:
  			StringCopy(&Var2, "FEET_P1_19_7", 16);
  			iVar6 = 19;
  			iVar7 = 7;
  			iVar1 = 130;
  			break;
  		
  		case 126:
  			StringCopy(&Var2, "FEET_P1_19_8", 16);
  			iVar6 = 19;
  			iVar7 = 8;
  			iVar1 = 145;
  			break;
  		
  		case 127:
  			StringCopy(&Var2, "FEET_P1_19_9", 16);
  			iVar6 = 19;
  			iVar7 = 9;
  			iVar1 = 110;
  			break;
  		
  		case 128:
  			StringCopy(&Var2, "FEET_P1_19_10", 16);
  			iVar6 = 19;
  			iVar7 = 10;
  			iVar1 = 120;
  			break;
  		
  		case 129:
  			StringCopy(&Var2, "FEET_P1_19_11", 16);
  			iVar6 = 19;
  			iVar7 = 11;
  			iVar1 = 150;
  			break;
  		
  		case 130:
  			StringCopy(&Var2, "FEET_P1_19_12", 16);
  			iVar6 = 19;
  			iVar7 = 12;
  			iVar1 = 125;
  			break;
  		
  		case 131:
  			StringCopy(&Var2, "FEET_P1_19_13", 16);
  			iVar6 = 19;
  			iVar7 = 13;
  			iVar1 = 120;
  			break;
  		
  		case 132:
  			StringCopy(&Var2, "FEET_P1_19_14", 16);
  			iVar6 = 19;
  			iVar7 = 14;
  			iVar1 = 130;
  			break;
  		
  		case 133:
  			StringCopy(&Var2, "FEET_P1_19_15", 16);
  			iVar6 = 19;
  			iVar7 = 15;
  			iVar1 = 110;
  			break;
  		
  		default:
  			func_269(iVar10, iParam0, 134, -1);
  			return;
  			break;
  	}
  	func_263(&(Global_77669[0 /*14*/]), iVar10, iParam0, &Var2, iVar6, iVar7, iVar1, bVar0, iVar8, iVar9, 0);
  }
  
  void func_298(int iParam0)
  {
  	bool bVar0;
  	int iVar1;
  	struct<2> Var2;
  	int iVar6;
  	int iVar7;
  	int iVar8;
  	int iVar9;
  	int iVar10;
  	
  	bVar0 = false;
  	iVar1 = 10;
  	iVar6 = 0;
  	iVar7 = 0;
  	iVar8 = -1;
  	iVar9 = 2;
  	iVar10 = 4;
  	Global_77669[0 /*14*/].f_5 = 1;
  	switch (iParam0)
  	{
  		case 0:
  			StringCopy(&Var2, "LEGS_P1_0_0", 16);
  			iVar6 = 0;
  			iVar7 = 0;
  			break;
  		
  		case 1:
  			StringCopy(&Var2, "LEGS_P1_0_1", 16);
  			iVar6 = 0;
  			iVar7 = 1;
  			iVar1 = 32;
  			break;
  		
  		case 2:
  			StringCopy(&Var2, "LEGS_P1_0_2", 16);
  			iVar6 = 0;
  			iVar7 = 2;
  			iVar1 = 38;
  			break;
  		
  		case 3:
  			StringCopy(&Var2, "LEGS_P1_0_3", 16);
  			iVar6 = 0;
  			iVar7 = 3;
  			iVar1 = 44;
  			break;
  		
  		case 4:
  			StringCopy(&Var2, "NO_LABEL", 16);
  			iVar6 = 1;
  			iVar7 = 0;
  			bVar0 = true;
  			break;
  		
  		case 5:
  			StringCopy(&Var2, "NO_LABEL", 16);
  			iVar6 = 1;
  			iVar7 = 1;
  			bVar0 = true;
  			break;
  		
  		case 6:
  			StringCopy(&Var2, "NO_LABEL", 16);
  			iVar6 = 1;
  			iVar7 = 2;
  			bVar0 = true;
  			break;
  		
  		case 7:
  			StringCopy(&Var2, "NO_LABEL", 16);
  			iVar6 = 1;
  			iVar7 = 3;
  			bVar0 = true;
  			break;
  		
  		case 8:
  			StringCopy(&Var2, "NO_LABEL", 16);
  			iVar6 = 1;
  			iVar7 = 4;
  			bVar0 = true;
  			break;
  		
  		case 9:
  			StringCopy(&Var2, "NO_LABEL", 16);
  			iVar6 = 1;
  			iVar7 = 5;
  			bVar0 = true;
  			break;
  		
  		case 10:
  			StringCopy(&Var2, "LEGS_P1_2_0", 16);
  			iVar6 = 2;
  			iVar7 = 0;
  			bVar0 = true;
  			break;
  		
  		case 11:
  			StringCopy(&Var2, "NO_LABEL", 16);
  			iVar6 = 3;
  			iVar7 = 0;
  			bVar0 = true;
  			break;
  		
  		case 12:
  			StringCopy(&Var2, "NO_LABEL", 16);
  			iVar6 = 4;
  			iVar7 = 0;
  			bVar0 = true;
  			break;
  		
  		case 13:
  			StringCopy(&Var2, "NO_LABEL", 16);
  			iVar6 = 5;
  			iVar7 = 0;
  			bVar0 = true;
  			break;
  		
  		case 14:
  			StringCopy(&Var2, "LEGS_P1_6_0", 16);
  			iVar6 = 6;
  			iVar7 = 0;
  			break;
  		
  		case 15:
  			StringCopy(&Var2, "LEGS_P1_6_1", 16);
  			iVar6 = 6;
  			iVar7 = 1;
  			iVar1 = 690;
  			break;
  		
  		case 16:
  			StringCopy(&Var2, "LEGS_P1_6_2", 16);
  			iVar6 = 6;
  			iVar7 = 2;
  			iVar1 = 720;
  			break;
  		
  		case 17:
  			StringCopy(&Var2, "LEGS_P1_6_3", 16);
  			iVar6 = 6;
  			iVar7 = 3;
  			iVar1 = 850;
  			break;
  		
  		case 18:
  			StringCopy(&Var2, "LEGS_P1_6_4", 16);
  			iVar6 = 6;
  			iVar7 = 4;
  			iVar1 = 850;
  			break;
  		
  		case 19:
  			StringCopy(&Var2, "LEGS_P1_6_5", 16);
  			iVar6 = 6;
  			iVar7 = 5;
  			iVar1 = 740;
  			break;
  		
  		case 20:
  			StringCopy(&Var2, "LEGS_P1_6_6", 16);
  			iVar6 = 6;
  			iVar7 = 6;
  			iVar1 = 750;
  			break;
  		
  		case 21:
  			StringCopy(&Var2, "LEGS_P1_6_7", 16);
  			iVar6 = 6;
  			iVar7 = 7;
  			iVar1 = 790;
  			break;
  		
  		case 22:
  			StringCopy(&Var2, "NO_LABEL", 16);
  			iVar6 = 7;
  			iVar7 = 0;
  			bVar0 = true;
  			break;
  		
  		case 23:
  			StringCopy(&Var2, "NO_LABEL", 16);
  			iVar6 = 7;
  			iVar7 = 1;
  			bVar0 = true;
  			break;
  		
  		case 24:
  			StringCopy(&Var2, "LEGS_P1_8_0", 16);
  			iVar6 = 8;
  			iVar7 = 0;
  			break;
  		
  		case 25:
  			StringCopy(&Var2, "LEGS_P1_8_1", 16);
  			iVar6 = 8;
  			iVar7 = 1;
  			iVar1 = 145;
  			break;
  		
  		case 26:
  			StringCopy(&Var2, "LEGS_P1_8_2", 16);
  			iVar6 = 8;
  			iVar7 = 2;
  			iVar1 = 140;
  			break;
  		
  		case 27:
  			StringCopy(&Var2, "LEGS_P1_8_3", 16);
  			iVar6 = 8;
  			iVar7 = 3;
  			iVar1 = 148;
  			break;
  		
  		case 28:
  			StringCopy(&Var2, "LEGS_P1_8_4", 16);
  			iVar6 = 8;
  			iVar7 = 4;
  			iVar1 = 150;
  			break;
  		
  		case 29:
  			StringCopy(&Var2, "LEGS_P1_8_5", 16);
  			iVar6 = 8;
  			iVar7 = 5;
  			iVar1 = 154;
  			break;
  		
  		case 30:
  			StringCopy(&Var2, "LEGS_P1_8_6", 16);
  			iVar6 = 8;
  			iVar7 = 6;
  			iVar1 = 158;
  			break;
  		
  		case 31:
  			StringCopy(&Var2, "NO_LABEL", 16);
  			iVar6 = 9;
  			iVar7 = 0;
  			bVar0 = true;
  			break;
  		
  		case 32:
  			StringCopy(&Var2, "NO_LABEL", 16);
  			iVar6 = 10;
  			iVar7 = 0;
  			bVar0 = true;
  			break;
  		
  		case 33:
  			StringCopy(&Var2, "LEGS_P1_11_0", 16);
  			iVar6 = 11;
  			iVar7 = 0;
  			iVar1 = 820;
  			break;
  		
  		case 34:
  			StringCopy(&Var2, "LEGS_P1_11_1", 16);
  			iVar6 = 11;
  			iVar7 = 1;
  			iVar1 = 820;
  			break;
  		
  		case 35:
  			StringCopy(&Var2, "LEGS_P1_11_2", 16);
  			iVar6 = 11;
  			iVar7 = 2;
  			iVar1 = 850;
  			break;
  		
  		case 36:
  			StringCopy(&Var2, "LEGS_P1_11_3", 16);
  			iVar6 = 11;
  			iVar7 = 3;
  			iVar1 = 850;
  			break;
  		
  		case 37:
  			StringCopy(&Var2, "LEGS_P1_11_4", 16);
  			iVar6 = 11;
  			iVar7 = 4;
  			iVar1 = 920;
  			break;
  		
  		case 38:
  			StringCopy(&Var2, "LEGS_P1_11_5", 16);
  			iVar6 = 11;
  			iVar7 = 5;
  			iVar1 = 950;
  			break;
  		
  		case 39:
  			StringCopy(&Var2, "NO_LABEL", 16);
  			iVar6 = 12;
  			iVar7 = 0;
  			break;
  		
  		case 40:
  			StringCopy(&Var2, "LEGS_P1_13_0", 16);
  			iVar6 = 13;
  			iVar7 = 0;
  			break;
  		
  		case 41:
  			StringCopy(&Var2, "LEGS_P1_13_1", 16);
  			iVar6 = 13;
  			iVar7 = 1;
  			iVar1 = 45;
  			break;
  		
  		case 42:
  			StringCopy(&Var2, "LEGS_P1_13_2", 16);
  			iVar6 = 13;
  			iVar7 = 2;
  			iVar1 = 48;
  			break;
  		
  		case 43:
  			StringCopy(&Var2, "LEGS_P1_13_3", 16);
  			iVar6 = 13;
  			iVar7 = 3;
  			iVar1 = 45;
  			break;
  		
  		case 44:
  			StringCopy(&Var2, "LEGS_P1_13_4", 16);
  			iVar6 = 13;
  			iVar7 = 4;
  			iVar1 = 48;
  			break;
  		
  		case 45:
  			StringCopy(&Var2, "LEGS_P1_13_5", 16);
  			iVar6 = 13;
  			iVar7 = 5;
  			iVar1 = 52;
  			break;
  		
  		case 46:
  			StringCopy(&Var2, "LEGS_P1_13_6", 16);
  			iVar6 = 13;
  			iVar7 = 6;
  			iVar1 = 55;
  			break;
  		
  		case 47:
  			StringCopy(&Var2, "LEGS_P1_13_7", 16);
  			iVar6 = 13;
  			iVar7 = 7;
  			iVar1 = 58;
  			break;
  		
  		case 48:
  			StringCopy(&Var2, "LEGS_P1_13_8", 16);
  			iVar6 = 13;
  			iVar7 = 8;
  			iVar1 = 60;
  			break;
  		
  		case 49:
  			StringCopy(&Var2, "LEGS_P1_13_9", 16);
  			iVar6 = 13;
  			iVar7 = 9;
  			iVar1 = 58;
  			break;
  		
  		case 50:
  			StringCopy(&Var2, "LEGS_P1_13_10", 16);
  			iVar6 = 13;
  			iVar7 = 10;
  			iVar1 = 62;
  			break;
  		
  		case 51:
  			StringCopy(&Var2, "LEGS_P1_13_11", 16);
  			iVar6 = 13;
  			iVar7 = 11;
  			iVar1 = 65;
  			break;
  		
  		case 52:
  			StringCopy(&Var2, "LEGS_P1_14_0", 16);
  			iVar6 = 14;
  			iVar7 = 0;
  			break;
  		
  		case 53:
  			StringCopy(&Var2, "LEGS_P1_15_0", 16);
  			iVar6 = 15;
  			iVar7 = 0;
  			break;
  		
  		case 54:
  			StringCopy(&Var2, "LEGS_P1_15_1", 16);
  			iVar6 = 15;
  			iVar7 = 1;
  			break;
  		
  		case 55:
  			StringCopy(&Var2, "LEGS_P1_15_2", 16);
  			iVar6 = 15;
  			iVar7 = 2;
  			break;
  		
  		case 56:
  			StringCopy(&Var2, "LEGS_P1_15_3", 16);
  			iVar6 = 15;
  			iVar7 = 3;
  			break;
  		
  		case 57:
  			StringCopy(&Var2, "LEGS_P1_15_4", 16);
  			iVar6 = 15;
  			iVar7 = 4;
  			break;
  		
  		case 58:
  			StringCopy(&Var2, "LEGS_P1_15_5", 16);
  			iVar6 = 15;
  			iVar7 = 5;
  			break;
  		
  		case 59:
  			StringCopy(&Var2, "LEGS_P1_15_6", 16);
  			iVar6 = 15;
  			iVar7 = 6;
  			break;
  		
  		case 60:
  			StringCopy(&Var2, "LEGS_P1_15_7", 16);
  			iVar6 = 15;
  			iVar7 = 7;
  			break;
  		
  		case 61:
  			StringCopy(&Var2, "LEGS_P1_15_8", 16);
  			iVar6 = 15;
  			iVar7 = 8;
  			break;
  		
  		case 62:
  			StringCopy(&Var2, "LEGS_P1_15_9", 16);
  			iVar6 = 15;
  			iVar7 = 9;
  			break;
  		
  		case 63:
  			StringCopy(&Var2, "LEGS_P1_15_10", 16);
  			iVar6 = 15;
  			iVar7 = 10;
  			break;
  		
  		case 64:
  			StringCopy(&Var2, "LEGS_P1_15_11", 16);
  			iVar6 = 15;
  			iVar7 = 11;
  			break;
  		
  		case 65:
  			StringCopy(&Var2, "LEGS_P1_15_12", 16);
  			iVar6 = 15;
  			iVar7 = 12;
  			break;
  		
  		case 66:
  			StringCopy(&Var2, "LEGS_P1_15_13", 16);
  			iVar6 = 15;
  			iVar7 = 13;
  			break;
  		
  		case 67:
  			StringCopy(&Var2, "LEGS_P1_15_14", 16);
  			iVar6 = 15;
  			iVar7 = 14;
  			break;
  		
  		case 68:
  			StringCopy(&Var2, "LEGS_P1_15_15", 16);
  			iVar6 = 15;
  			iVar7 = 15;
  			break;
  		
  		case 69:
  			StringCopy(&Var2, "LEGS_P1_16_0", 16);
  			iVar6 = 16;
  			iVar7 = 0;
  			bVar0 = true;
  			break;
  		
  		case 70:
  			StringCopy(&Var2, "NO_LABEL", 16);
  			iVar6 = 16;
  			iVar7 = 1;
  			bVar0 = true;
  			break;
  		
  		case 71:
  			StringCopy(&Var2, "NO_LABEL", 16);
  			iVar6 = 17;
  			iVar7 = 0;
  			bVar0 = true;
  			break;
  		
  		case 72:
  			StringCopy(&Var2, "LEGS_P1_18_0", 16);
  			iVar6 = 18;
  			iVar7 = 0;
  			break;
  		
  		case 73:
  			StringCopy(&Var2, "LEGS_P1_18_1", 16);
  			iVar6 = 18;
  			iVar7 = 1;
  			iVar1 = 160;
  			break;
  		
  		case 74:
  			StringCopy(&Var2, "LEGS_P1_18_2", 16);
  			iVar6 = 18;
  			iVar7 = 2;
  			iVar1 = 180;
  			break;
  		
  		case 75:
  			StringCopy(&Var2, "LEGS_P1_18_3", 16);
  			iVar6 = 18;
  			iVar7 = 3;
  			iVar1 = 180;
  			break;
  		
  		case 76:
  			StringCopy(&Var2, "LEGS_P1_18_4", 16);
  			iVar6 = 18;
  			iVar7 = 4;
  			break;
  		
  		case 77:
  			StringCopy(&Var2, "LEGS_P1_18_5", 16);
  			iVar6 = 18;
  			iVar7 = 5;
  			break;
  		
  		case 78:
  			StringCopy(&Var2, "LEGS_P1_19_0", 16);
  			iVar6 = 19;
  			iVar7 = 0;
  			bVar0 = true;
  			break;
  		
  		case joaat("mpsv_lp0_31"):
  			StringCopy(&Var2, "LEGS_P1_20_0", 16);
  			iVar6 = 20;
  			iVar7 = 0;
  			iVar1 = 118;
  			break;
  		
  		case 80:
  			StringCopy(&Var2, "LEGS_P1_20_1", 16);
  			iVar6 = 20;
  			iVar7 = 1;
  			iVar1 = 120;
  			break;
  		
  		case 81:
  			StringCopy(&Var2, "LEGS_P1_20_2", 16);
  			iVar6 = 20;
  			iVar7 = 2;
  			iVar1 = 128;
  			break;
  		
  		case 82:
  			StringCopy(&Var2, "LEGS_P1_20_3", 16);
  			iVar6 = 20;
  			iVar7 = 3;
  			iVar1 = 128;
  			break;
  		
  		case 83:
  			StringCopy(&Var2, "LEGS_P1_20_4", 16);
  			iVar6 = 20;
  			iVar7 = 4;
  			iVar1 = 130;
  			break;
  		
  		case 84:
  			StringCopy(&Var2, "LEGS_P1_20_5", 16);
  			iVar6 = 20;
  			iVar7 = 5;
  			iVar1 = 145;
  			break;
  		
  		case 85:
  			StringCopy(&Var2, "LEGS_P1_20_6", 16);
  			iVar6 = 20;
  			iVar7 = 6;
  			iVar1 = 138;
  			break;
  		
  		case 86:
  			StringCopy(&Var2, "LEGS_P1_20_7", 16);
  			iVar6 = 20;
  			iVar7 = 7;
  			iVar1 = 132;
  			break;
  		
  		case 87:
  			StringCopy(&Var2, "LEGS_P1_20_8", 16);
  			iVar6 = 20;
  			iVar7 = 8;
  			iVar1 = 148;
  			break;
  		
  		case 88:
  			StringCopy(&Var2, "LEGS_P1_21_0", 16);
  			iVar6 = 21;
  			iVar7 = 0;
  			iVar1 = 118;
  			break;
  		
  		case 89:
  			StringCopy(&Var2, "LEGS_P1_21_1", 16);
  			iVar6 = 21;
  			iVar7 = 1;
  			iVar1 = 118;
  			break;
  		
  		case 90:
  			StringCopy(&Var2, "LEGS_P1_21_2", 16);
  			iVar6 = 21;
  			iVar7 = 2;
  			iVar1 = 118;
  			break;
  		
  		case 91:
  			StringCopy(&Var2, "LEGS_P1_21_3", 16);
  			iVar6 = 21;
  			iVar7 = 3;
  			iVar1 = 129;
  			break;
  		
  		case 92:
  			StringCopy(&Var2, "LEGS_P1_21_4", 16);
  			iVar6 = 21;
  			iVar7 = 4;
  			iVar1 = 135;
  			break;
  		
  		case 93:
  			StringCopy(&Var2, "LEGS_P1_21_5", 16);
  			iVar6 = 21;
  			iVar7 = 5;
  			iVar1 = 135;
  			break;
  		
  		case 94:
  			StringCopy(&Var2, "LEGS_P1_21_6", 16);
  			iVar6 = 21;
  			iVar7 = 6;
  			iVar1 = 118;
  			break;
  		
  		case 95:
  			StringCopy(&Var2, "LEGS_P1_21_7", 16);
  			iVar6 = 21;
  			iVar7 = 7;
  			iVar1 = 118;
  			break;
  		
  		case 96:
  			StringCopy(&Var2, "LEGS_P1_21_8", 16);
  			iVar6 = 21;
  			iVar7 = 8;
  			iVar1 = 118;
  			break;
  		
  		case 97:
  			StringCopy(&Var2, "LEGS_P1_22_0", 16);
  			iVar6 = 22;
  			iVar7 = 0;
  			iVar1 = 55;
  			break;
  		
  		case 98:
  			StringCopy(&Var2, "LEGS_P1_22_1", 16);
  			iVar6 = 22;
  			iVar7 = 1;
  			iVar1 = 55;
  			break;
  		
  		case 99:
  			StringCopy(&Var2, "LEGS_P1_22_2", 16);
  			iVar6 = 22;
  			iVar7 = 2;
  			iVar1 = 59;
  			break;
  		
  		case 100:
  			StringCopy(&Var2, "LEGS_P1_22_3", 16);
  			iVar6 = 22;
  			iVar7 = 3;
  			iVar1 = 59;
  			break;
  		
  		case 101:
  			StringCopy(&Var2, "LEGS_P1_22_4", 16);
  			iVar6 = 22;
  			iVar7 = 4;
  			iVar1 = 65;
  			break;
  		
  		case 102:
  			StringCopy(&Var2, "LEGS_P1_22_5", 16);
  			iVar6 = 22;
  			iVar7 = 5;
  			iVar1 = 65;
  			break;
  		
  		case 103:
  			StringCopy(&Var2, "LEGS_P1_22_6", 16);
  			iVar6 = 22;
  			iVar7 = 6;
  			iVar1 = 69;
  			break;
  		
  		case 104:
  			StringCopy(&Var2, "LEGS_P1_22_7", 16);
  			iVar6 = 22;
  			iVar7 = 7;
  			iVar1 = 69;
  			break;
  		
  		case 105:
  			StringCopy(&Var2, "LEGS_P1_22_8", 16);
  			iVar6 = 22;
  			iVar7 = 8;
  			iVar1 = 75;
  			break;
  		
  		case 106:
  			StringCopy(&Var2, "LEGS_P1_22_9", 16);
  			iVar6 = 22;
  			iVar7 = 9;
  			iVar1 = 75;
  			break;
  		
  		case 107:
  			StringCopy(&Var2, "LEGS_P1_22_10", 16);
  			iVar6 = 22;
  			iVar7 = 10;
  			iVar1 = 65;
  			break;
  		
  		case 108:
  			StringCopy(&Var2, "LEGS_P1_22_11", 16);
  			iVar6 = 22;
  			iVar7 = 11;
  			iVar1 = 65;
  			break;
  		
  		case 109:
  			StringCopy(&Var2, "LEGS_P1_22_12", 16);
  			iVar6 = 22;
  			iVar7 = 12;
  			iVar1 = 65;
  			break;
  		
  		case 110:
  			StringCopy(&Var2, "LEGS_P1_22_13", 16);
  			iVar6 = 22;
  			iVar7 = 13;
  			iVar1 = 65;
  			break;
  		
  		case 111:
  			StringCopy(&Var2, "LEGS_P1_23_0", 16);
  			iVar6 = 23;
  			iVar7 = 0;
  			iVar1 = 38;
  			break;
  		
  		case 112:
  			StringCopy(&Var2, "LEGS_P1_23_1", 16);
  			iVar6 = 23;
  			iVar7 = 1;
  			iVar1 = 38;
  			break;
  		
  		case 113:
  			StringCopy(&Var2, "LEGS_P1_23_2", 16);
  			iVar6 = 23;
  			iVar7 = 2;
  			iVar1 = 28;
  			break;
  		
  		case 114:
  			StringCopy(&Var2, "LEGS_P1_23_3", 16);
  			iVar6 = 23;
  			iVar7 = 3;
  			iVar1 = 34;
  			break;
  		
  		case 115:
  			StringCopy(&Var2, "LEGS_P1_23_4", 16);
  			iVar6 = 23;
  			iVar7 = 4;
  			iVar1 = 36;
  			break;
  		
  		case 116:
  			StringCopy(&Var2, "LEGS_P1_23_5", 16);
  			iVar6 = 23;
  			iVar7 = 5;
  			iVar1 = 32;
  			break;
  		
  		default:
  			func_269(iVar10, iParam0, 117, -1);
  			return;
  			break;
  	}
  	func_263(&(Global_77669[0 /*14*/]), iVar10, iParam0, &Var2, iVar6, iVar7, iVar1, bVar0, iVar8, iVar9, 0);
  }
  
  void func_299(int iParam0)
  {
  	if (iParam0 < 107)
  	{
  		func_302(iParam0);
  	}
  	else if (iParam0 < 227)
  	{
  		func_301(iParam0);
  	}
  	else
  	{
  		func_300(iParam0);
  	}
  	if (Global_77669[0 /*14*/].f_2 == -1)
  	{
  		func_269(3, iParam0, 318, -1);
  	}
  }
  
  void func_300(int iParam0)
  {
  	bool bVar0;
  	int iVar1;
  	struct<2> Var2;
  	int iVar6;
  	int iVar7;
  	int iVar8;
  	int iVar9;
  	int iVar10;
  	
  	bVar0 = false;
  	iVar1 = 10;
  	iVar6 = 0;
  	iVar7 = 0;
  	iVar8 = -1;
  	iVar9 = 2;
  	iVar10 = 3;
  	Global_77669[0 /*14*/].f_5 = 1;
  	switch (iParam0)
  	{
  		case 227:
  			StringCopy(&Var2, "TORSO_P1_18_0", 16);
  			iVar6 = 23;
  			iVar7 = 0;
  			iVar9 = 3;
  			break;
  		
  		case 228:
  			StringCopy(&Var2, "TORSO_P1_18_1", 16);
  			iVar6 = 23;
  			iVar7 = 1;
  			iVar9 = 3;
  			break;
  		
  		case 229:
  			StringCopy(&Var2, "TORSO_P1_18_2", 16);
  			iVar6 = 23;
  			iVar7 = 2;
  			iVar9 = 3;
  			break;
  		
  		case 230:
  			StringCopy(&Var2, "TORSO_P1_18_3", 16);
  			iVar6 = 23;
  			iVar7 = 3;
  			iVar9 = 3;
  			break;
  		
  		case 231:
  			StringCopy(&Var2, "TORSO_P1_18_4", 16);
  			iVar6 = 23;
  			iVar7 = 4;
  			iVar9 = 3;
  			break;
  		
  		case 232:
  			StringCopy(&Var2, "TORSO_P1_18_5", 16);
  			iVar6 = 23;
  			iVar7 = 5;
  			iVar9 = 3;
  			break;
  		
  		case 233:
  			StringCopy(&Var2, "TORSO_P1_18_6", 16);
  			iVar6 = 23;
  			iVar7 = 6;
  			iVar9 = 3;
  			break;
  		
  		case 234:
  			StringCopy(&Var2, "TORSO_P1_18_7", 16);
  			iVar6 = 23;
  			iVar7 = 7;
  			iVar9 = 3;
  			break;
  		
  		case 235:
  			StringCopy(&Var2, "TORSO_P1_18_8", 16);
  			iVar6 = 23;
  			iVar7 = 8;
  			iVar9 = 3;
  			break;
  		
  		case 236:
  			StringCopy(&Var2, "TORSO_P1_18_9", 16);
  			iVar6 = 23;
  			iVar7 = 9;
  			iVar9 = 3;
  			break;
  		
  		case 237:
  			StringCopy(&Var2, "TORSO_P1_18_10", 16);
  			iVar6 = 23;
  			iVar7 = 10;
  			iVar9 = 3;
  			break;
  		
  		case 238:
  			StringCopy(&Var2, "TORSO_P1_18_11", 16);
  			iVar6 = 23;
  			iVar7 = 11;
  			iVar9 = 3;
  			break;
  		
  		case 239:
  			StringCopy(&Var2, "TORSO_P1_18_12", 16);
  			iVar6 = 23;
  			iVar7 = 12;
  			iVar9 = 3;
  			break;
  		
  		case 240:
  			StringCopy(&Var2, "TORSO_P1_18_13", 16);
  			iVar6 = 23;
  			iVar7 = 13;
  			iVar9 = 3;
  			break;
  		
  		case 241:
  			StringCopy(&Var2, "TORSO_P1_18_14", 16);
  			iVar6 = 23;
  			iVar7 = 14;
  			iVar9 = 3;
  			break;
  		
  		case 242:
  			StringCopy(&Var2, "TORSO_P1_18_15", 16);
  			iVar6 = 23;
  			iVar7 = 15;
  			iVar9 = 3;
  			break;
  		
  		case 243:
  			StringCopy(&Var2, "TORSO_P1_24_0", 16);
  			iVar6 = 24;
  			iVar7 = 0;
  			iVar1 = 2200;
  			iVar9 = 3;
  			break;
  		
  		case 244:
  			StringCopy(&Var2, "TORSO_P1_24_1", 16);
  			iVar6 = 24;
  			iVar7 = 1;
  			iVar1 = 2200;
  			iVar9 = 3;
  			break;
  		
  		case 245:
  			StringCopy(&Var2, "TORSO_P1_24_2", 16);
  			iVar6 = 24;
  			iVar7 = 2;
  			iVar1 = 2200;
  			iVar9 = 3;
  			break;
  		
  		case 246:
  			StringCopy(&Var2, "TORSO_P1_24_3", 16);
  			iVar6 = 24;
  			iVar7 = 3;
  			iVar1 = 2200;
  			iVar9 = 3;
  			break;
  		
  		case 247:
  			StringCopy(&Var2, "TORSO_P1_24_4", 16);
  			iVar6 = 24;
  			iVar7 = 4;
  			iVar1 = 2200;
  			iVar9 = 3;
  			break;
  		
  		case 248:
  			StringCopy(&Var2, "TORSO_P1_24_5", 16);
  			iVar6 = 24;
  			iVar7 = 5;
  			iVar1 = 2200;
  			iVar9 = 3;
  			break;
  		
  		case 249:
  			StringCopy(&Var2, "TORSO_P1_24_6", 16);
  			iVar6 = 24;
  			iVar7 = 6;
  			iVar1 = 2200;
  			iVar9 = 3;
  			break;
  		
  		case 250:
  			StringCopy(&Var2, "TORSO_P1_24_7", 16);
  			iVar6 = 24;
  			iVar7 = 7;
  			iVar1 = 2200;
  			iVar9 = 3;
  			break;
  		
  		case 251:
  			StringCopy(&Var2, "TORSO_P1_24_8", 16);
  			iVar6 = 24;
  			iVar7 = 8;
  			iVar1 = 2200;
  			iVar9 = 3;
  			break;
  		
  		case 252:
  			StringCopy(&Var2, "TORSO_P1_24_9", 16);
  			iVar6 = 24;
  			iVar7 = 9;
  			iVar1 = 2200;
  			iVar9 = 3;
  			break;
  		
  		case 253:
  			StringCopy(&Var2, "TORSO_P1_24_10", 16);
  			iVar6 = 24;
  			iVar7 = 10;
  			iVar1 = 2200;
  			iVar9 = 3;
  			break;
  		
  		case 254:
  			StringCopy(&Var2, "TORSO_P1_24_11", 16);
  			iVar6 = 24;
  			iVar7 = 11;
  			iVar1 = 2200;
  			iVar9 = 3;
  			break;
  		
  		case 255:
  			StringCopy(&Var2, "TORSO_P1_24_12", 16);
  			iVar6 = 24;
  			iVar7 = 12;
  			iVar1 = 2200;
  			iVar9 = 3;
  			break;
  		
  		case 256:
  			StringCopy(&Var2, "TORSO_P1_24_13", 16);
  			iVar6 = 24;
  			iVar7 = 13;
  			iVar1 = 2200;
  			iVar9 = 3;
  			break;
  		
  		case 257:
  			StringCopy(&Var2, "TORSO_P1_24_14", 16);
  			iVar6 = 24;
  			iVar7 = 14;
  			iVar1 = 2200;
  			iVar9 = 3;
  			break;
  		
  		case 258:
  			StringCopy(&Var2, "TORSO_P1_24_15", 16);
  			iVar6 = 24;
  			iVar7 = 15;
  			iVar1 = 2200;
  			iVar9 = 3;
  			break;
  		
  		case 259:
  			StringCopy(&Var2, "TORSO_P1_25_0", 16);
  			iVar6 = 25;
  			iVar7 = 0;
  			bVar0 = true;
  			iVar9 = 3;
  			break;
  		
  		case 260:
  			StringCopy(&Var2, "NO_LABEL", 16);
  			iVar6 = 26;
  			iVar7 = 0;
  			iVar9 = 1;
  			break;
  		
  		case 261:
  			StringCopy(&Var2, "TORSO_P1_27_0", 16);
  			iVar6 = 27;
  			iVar7 = 0;
  			iVar1 = 150;
  			break;
  		
  		case 262:
  			StringCopy(&Var2, "TORSO_P1_27_1", 16);
  			iVar6 = 27;
  			iVar7 = 1;
  			iVar1 = 160;
  			break;
  		
  		case 263:
  			StringCopy(&Var2, "TORSO_P1_27_2", 16);
  			iVar6 = 27;
  			iVar7 = 2;
  			iVar1 = 150;
  			break;
  		
  		case 264:
  			StringCopy(&Var2, "TORSO_P1_27_3", 16);
  			iVar6 = 27;
  			iVar7 = 3;
  			iVar1 = 150;
  			break;
  		
  		case 265:
  			StringCopy(&Var2, "TORSO_P1_27_4", 16);
  			iVar6 = 27;
  			iVar7 = 4;
  			iVar1 = 160;
  			break;
  		
  		case 266:
  			StringCopy(&Var2, "TORSO_P1_27_5", 16);
  			iVar6 = 27;
  			iVar7 = 5;
  			iVar1 = 160;
  			break;
  		
  		case 267:
  			StringCopy(&Var2, "TORSO_P1_28_0", 16);
  			iVar6 = 28;
  			iVar7 = 0;
  			iVar1 = 88;
  			break;
  		
  		case 268:
  			StringCopy(&Var2, "TORSO_P1_28_1", 16);
  			iVar6 = 28;
  			iVar7 = 1;
  			iVar1 = 60;
  			break;
  		
  		case 269:
  			StringCopy(&Var2, "TORSO_P1_28_2", 16);
  			iVar6 = 28;
  			iVar7 = 2;
  			iVar1 = 70;
  			break;
  		
  		case 270:
  			StringCopy(&Var2, "TORSO_P1_28_3", 16);
  			iVar6 = 28;
  			iVar7 = 3;
  			iVar1 = 80;
  			break;
  		
  		case 271:
  			StringCopy(&Var2, "TORSO_P1_28_4", 16);
  			iVar6 = 28;
  			iVar7 = 4;
  			iVar1 = 90;
  			break;
  		
  		case 272:
  			StringCopy(&Var2, "TORSO_P1_28_5", 16);
  			iVar6 = 28;
  			iVar7 = 5;
  			iVar1 = 80;
  			break;
  		
  		case 273:
  			StringCopy(&Var2, "TORSO_P1_28_6", 16);
  			iVar6 = 28;
  			iVar7 = 6;
  			iVar1 = 70;
  			break;
  		
  		case 274:
  			StringCopy(&Var2, "TORSO_P1_28_7", 16);
  			iVar6 = 28;
  			iVar7 = 7;
  			iVar1 = 95;
  			break;
  		
  		case 275:
  			StringCopy(&Var2, "TORSO_P1_28_8", 16);
  			iVar6 = 28;
  			iVar7 = 8;
  			iVar1 = 105;
  			break;
  		
  		case 276:
  			StringCopy(&Var2, "TORSO_P1_28_9", 16);
  			iVar6 = 28;
  			iVar7 = 9;
  			iVar1 = 95;
  			break;
  		
  		case 277:
  			StringCopy(&Var2, "TORSO_P1_28_10", 16);
  			iVar6 = 28;
  			iVar7 = 10;
  			iVar1 = 110;
  			break;
  		
  		case 278:
  			StringCopy(&Var2, "TORSO_P1_28_11", 16);
  			iVar6 = 28;
  			iVar7 = 11;
  			iVar1 = 98;
  			break;
  		
  		case 279:
  			StringCopy(&Var2, "TORSO_P1_28_12", 16);
  			iVar6 = 28;
  			iVar7 = 12;
  			iVar1 = 88;
  			break;
  		
  		case 280:
  			StringCopy(&Var2, "TORSO_P1_28_13", 16);
  			iVar6 = 28;
  			iVar7 = 13;
  			iVar1 = 98;
  			break;
  		
  		case 281:
  			StringCopy(&Var2, "TORSO_P1_28_14", 16);
  			iVar6 = 28;
  			iVar7 = 14;
  			iVar1 = 110;
  			break;
  		
  		case 282:
  			StringCopy(&Var2, "TORSO_P1_28_15", 16);
  			iVar6 = 28;
  			iVar7 = 15;
  			iVar1 = 98;
  			break;
  		
  		case 283:
  			StringCopy(&Var2, "TORSO_P1_29_0", 16);
  			iVar6 = 29;
  			iVar7 = 0;
  			iVar1 = 250;
  			break;
  		
  		case 284:
  			StringCopy(&Var2, "TORSO_P1_29_1", 16);
  			iVar6 = 29;
  			iVar7 = 1;
  			iVar1 = 270;
  			break;
  		
  		case 285:
  			StringCopy(&Var2, "TORSO_P1_29_2", 16);
  			iVar6 = 29;
  			iVar7 = 2;
  			iVar1 = 280;
  			break;
  		
  		case 286:
  			StringCopy(&Var2, "TORSO_P1_29_3", 16);
  			iVar6 = 29;
  			iVar7 = 3;
  			iVar1 = 275;
  			break;
  		
  		case 287:
  			StringCopy(&Var2, "TORSO_P1_29_4", 16);
  			iVar6 = 29;
  			iVar7 = 4;
  			iVar1 = 290;
  			break;
  		
  		case 288:
  			StringCopy(&Var2, "TORSO_P1_29_5", 16);
  			iVar6 = 29;
  			iVar7 = 5;
  			iVar1 = 35;
  			break;
  		
  		case 289:
  			StringCopy(&Var2, "TORSO_P1_29_6", 16);
  			iVar6 = 29;
  			iVar7 = 6;
  			iVar1 = 35;
  			break;
  		
  		case 290:
  			StringCopy(&Var2, "TORSO_P1_29_7", 16);
  			iVar6 = 29;
  			iVar7 = 7;
  			iVar1 = 35;
  			break;
  		
  		case 291:
  			StringCopy(&Var2, "TORSO_P1_29_8", 16);
  			iVar6 = 29;
  			iVar7 = 8;
  			iVar1 = 295;
  			break;
  		
  		case 292:
  			StringCopy(&Var2, "TORSO_P1_29_9", 16);
  			iVar6 = 29;
  			iVar7 = 9;
  			iVar1 = 35;
  			break;
  		
  		case 293:
  			StringCopy(&Var2, "TORSO_P1_29_10", 16);
  			iVar6 = 29;
  			iVar7 = 10;
  			iVar1 = 35;
  			break;
  		
  		case 294:
  			StringCopy(&Var2, "TORSO_P1_29_11", 16);
  			iVar6 = 29;
  			iVar7 = 11;
  			iVar1 = 35;
  			break;
  		
  		case 295:
  			StringCopy(&Var2, "TORSO_P1_29_12", 16);
  			iVar6 = 29;
  			iVar7 = 12;
  			break;
  		
  		case 296:
  			StringCopy(&Var2, "TORSO_P1_30_0", 16);
  			iVar6 = 30;
  			iVar7 = 0;
  			iVar1 = 1750;
  			break;
  		
  		case 297:
  			StringCopy(&Var2, "TORSO_P1_30_1", 16);
  			iVar6 = 30;
  			iVar7 = 1;
  			iVar1 = 1920;
  			break;
  		
  		case 298:
  			StringCopy(&Var2, "TORSO_P1_30_2", 16);
  			iVar6 = 30;
  			iVar7 = 2;
  			iVar1 = 1890;
  			break;
  		
  		case 299:
  			StringCopy(&Var2, "TORSO_P1_30_3", 16);
  			iVar6 = 30;
  			iVar7 = 3;
  			iVar1 = 1850;
  			break;
  		
  		case 300:
  			StringCopy(&Var2, "TORSO_P1_30_4", 16);
  			iVar6 = 30;
  			iVar7 = 4;
  			iVar1 = 1750;
  			break;
  		
  		case 301:
  			StringCopy(&Var2, "TORSO_P1_30_5", 16);
  			iVar6 = 30;
  			iVar7 = 5;
  			iVar1 = 1990;
  			break;
  		
  		case 302:
  			StringCopy(&Var2, "TORSO_P1_30_6", 16);
  			iVar6 = 30;
  			iVar7 = 6;
  			iVar1 = 1820;
  			break;
  		
  		case 303:
  			StringCopy(&Var2, "TORSO_P1_30_7", 16);
  			iVar6 = 30;
  			iVar7 = 7;
  			iVar1 = 1990;
  			break;
  		
  		case 304:
  			StringCopy(&Var2, "TORSO_P1_30_8", 16);
  			iVar6 = 30;
  			iVar7 = 8;
  			iVar1 = 1920;
  			break;
  		
  		case 305:
  			StringCopy(&Var2, "TORSO_P1_30_9", 16);
  			iVar6 = 30;
  			iVar7 = 9;
  			iVar1 = 1850;
  			break;
  		
  		case 306:
  			StringCopy(&Var2, "TORSO_P1_30_10", 16);
  			iVar6 = 30;
  			iVar7 = 10;
  			iVar1 = 1990;
  			break;
  		
  		case 307:
  			StringCopy(&Var2, "TORSO_P1_30_11", 16);
  			iVar6 = 30;
  			iVar7 = 11;
  			iVar1 = 1790;
  			break;
  		
  		case 308:
  			StringCopy(&Var2, "TORSO_P1_30_12", 16);
  			iVar6 = 30;
  			iVar7 = 12;
  			iVar1 = 1790;
  			break;
  		
  		case 309:
  			StringCopy(&Var2, "TORSO_P1_31_0", 16);
  			iVar6 = 31;
  			iVar7 = 0;
  			iVar1 = 69;
  			break;
  		
  		case 310:
  			StringCopy(&Var2, "TORSO_P1_31_1", 16);
  			iVar6 = 31;
  			iVar7 = 1;
  			iVar1 = 75;
  			break;
  		
  		case 311:
  			StringCopy(&Var2, "TORSO_P1_31_2", 16);
  			iVar6 = 31;
  			iVar7 = 2;
  			iVar1 = 75;
  			break;
  		
  		case 312:
  			StringCopy(&Var2, "TORSO_P1_31_3", 16);
  			iVar6 = 31;
  			iVar7 = 3;
  			iVar1 = 79;
  			break;
  		
  		case 313:
  			StringCopy(&Var2, "TORSO_P1_31_4", 16);
  			iVar6 = 31;
  			iVar7 = 4;
  			iVar1 = 79;
  			break;
  		
  		case 314:
  			StringCopy(&Var2, "TORSO_P1_31_5", 16);
  			iVar6 = 31;
  			iVar7 = 5;
  			iVar1 = 89;
  			break;
  		
  		case 315:
  			StringCopy(&Var2, "TORSO_P1_31_6", 16);
  			iVar6 = 31;
  			iVar7 = 6;
  			iVar1 = 85;
  			break;
  		
  		case 316:
  			StringCopy(&Var2, "TORSO_P1_31_7", 16);
  			iVar6 = 31;
  			iVar7 = 7;
  			iVar1 = 85;
  			break;
  		
  		case 317:
  			StringCopy(&Var2, "TORSO_P1_31_8", 16);
  			iVar6 = 31;
  			iVar7 = 8;
  			break;
  		
  		default:
  			return;
  			break;
  	}
  	func_263(&(Global_77669[0 /*14*/]), iVar10, iParam0, &Var2, iVar6, iVar7, iVar1, bVar0, iVar8, iVar9, 0);
  }
  
  void func_301(int iParam0)
  {
  	bool bVar0;
  	int iVar1;
  	struct<2> Var2;
  	int iVar6;
  	int iVar7;
  	int iVar8;
  	int iVar9;
  	int iVar10;
  	
  	bVar0 = false;
  	iVar1 = 10;
  	iVar6 = 0;
  	iVar7 = 0;
  	iVar8 = -1;
  	iVar9 = 2;
  	iVar10 = 3;
  	Global_77669[0 /*14*/].f_5 = 1;
  	switch (iParam0)
  	{
  		case 107:
  			StringCopy(&Var2, "TORSO_P1_12_0", 16);
  			iVar6 = 12;
  			iVar7 = 0;
  			iVar1 = 195;
  			break;
  		
  		case 108:
  			StringCopy(&Var2, "TORSO_P1_12_1", 16);
  			iVar6 = 12;
  			iVar7 = 1;
  			iVar1 = 420;
  			break;
  		
  		case 109:
  			StringCopy(&Var2, "TORSO_P1_12_2", 16);
  			iVar6 = 12;
  			iVar7 = 2;
  			iVar1 = 390;
  			break;
  		
  		case 110:
  			StringCopy(&Var2, "TORSO_P1_12_3", 16);
  			iVar6 = 12;
  			iVar7 = 3;
  			iVar1 = 450;
  			break;
  		
  		case 111:
  			StringCopy(&Var2, "TORSO_P1_12_4", 16);
  			iVar6 = 12;
  			iVar7 = 4;
  			iVar1 = 400;
  			break;
  		
  		case 112:
  			StringCopy(&Var2, "TORSO_P1_12_5", 16);
  			iVar6 = 12;
  			iVar7 = 5;
  			iVar1 = 390;
  			break;
  		
  		case 113:
  			StringCopy(&Var2, "TORSO_P1_12_6", 16);
  			iVar6 = 12;
  			iVar7 = 6;
  			iVar1 = 570;
  			break;
  		
  		case 114:
  			StringCopy(&Var2, "TORSO_P1_12_7", 16);
  			iVar6 = 12;
  			iVar7 = 7;
  			iVar1 = 390;
  			break;
  		
  		case 115:
  			StringCopy(&Var2, "TORSO_P1_12_8", 16);
  			iVar6 = 12;
  			iVar7 = 8;
  			iVar1 = 470;
  			break;
  		
  		case 116:
  			StringCopy(&Var2, "TORSO_P1_12_9", 16);
  			iVar6 = 12;
  			iVar7 = 9;
  			iVar1 = 390;
  			break;
  		
  		case 117:
  			StringCopy(&Var2, "TORSO_P1_12_10", 16);
  			iVar6 = 12;
  			iVar7 = 10;
  			iVar1 = 520;
  			break;
  		
  		case 118:
  			StringCopy(&Var2, "TORSO_P1_12_11", 16);
  			iVar6 = 12;
  			iVar7 = 11;
  			iVar1 = 490;
  			break;
  		
  		case 119:
  			StringCopy(&Var2, "TORSO_P1_12_12", 16);
  			iVar6 = 12;
  			iVar7 = 12;
  			iVar1 = 490;
  			break;
  		
  		case 120:
  			StringCopy(&Var2, "TORSO_P1_12_13", 16);
  			iVar6 = 12;
  			iVar7 = 13;
  			iVar1 = 590;
  			break;
  		
  		case 121:
  			StringCopy(&Var2, "TORSO_P1_12_14", 16);
  			iVar6 = 12;
  			iVar7 = 14;
  			iVar1 = 560;
  			break;
  		
  		case 122:
  			StringCopy(&Var2, "TORSO_P1_12_15", 16);
  			iVar6 = 12;
  			iVar7 = 15;
  			iVar1 = 520;
  			break;
  		
  		case 123:
  			StringCopy(&Var2, "TORSO_P1_13_0", 16);
  			iVar6 = 13;
  			iVar7 = 0;
  			break;
  		
  		case 124:
  			StringCopy(&Var2, "TORSO_P1_13_1", 16);
  			iVar6 = 13;
  			iVar7 = 1;
  			break;
  		
  		case 125:
  			StringCopy(&Var2, "TORSO_P1_13_2", 16);
  			iVar6 = 13;
  			iVar7 = 2;
  			break;
  		
  		case 126:
  			StringCopy(&Var2, "TORSO_P1_13_3", 16);
  			iVar6 = 13;
  			iVar7 = 3;
  			iVar1 = 90;
  			break;
  		
  		case 127:
  			StringCopy(&Var2, "TORSO_P1_13_4", 16);
  			iVar6 = 13;
  			iVar7 = 4;
  			iVar1 = 85;
  			break;
  		
  		case 128:
  			StringCopy(&Var2, "TORSO_P1_13_5", 16);
  			iVar6 = 13;
  			iVar7 = 5;
  			iVar1 = 45;
  			break;
  		
  		case 129:
  			StringCopy(&Var2, "TORSO_P1_13_6", 16);
  			iVar6 = 13;
  			iVar7 = 6;
  			iVar1 = 90;
  			break;
  		
  		case 130:
  			StringCopy(&Var2, "TORSO_P1_13_7", 16);
  			iVar6 = 13;
  			iVar7 = 7;
  			iVar1 = 47;
  			break;
  		
  		case 131:
  			StringCopy(&Var2, "TORSO_P1_13_8", 16);
  			iVar6 = 13;
  			iVar7 = 8;
  			iVar1 = 45;
  			break;
  		
  		case 132:
  			StringCopy(&Var2, "TORSO_P1_13_9", 16);
  			iVar6 = 13;
  			iVar7 = 9;
  			iVar1 = 48;
  			break;
  		
  		case 133:
  			StringCopy(&Var2, "TORSO_P1_13_10", 16);
  			iVar6 = 13;
  			iVar7 = 10;
  			iVar1 = 45;
  			break;
  		
  		case 134:
  			StringCopy(&Var2, "TORSO_P1_13_11", 16);
  			iVar6 = 13;
  			iVar7 = 11;
  			iVar1 = 85;
  			break;
  		
  		case 135:
  			StringCopy(&Var2, "TORSO_P1_13_12", 16);
  			iVar6 = 13;
  			iVar7 = 12;
  			iVar1 = 45;
  			break;
  		
  		case 136:
  			StringCopy(&Var2, "TORSO_P1_13_13", 16);
  			iVar6 = 13;
  			iVar7 = 13;
  			iVar1 = 47;
  			break;
  		
  		case 137:
  			StringCopy(&Var2, "TORSO_P1_13_14", 16);
  			iVar6 = 13;
  			iVar7 = 14;
  			iVar1 = 45;
  			break;
  		
  		case 138:
  			StringCopy(&Var2, "TORSO_P1_13_15", 16);
  			iVar6 = 13;
  			iVar7 = 15;
  			iVar1 = 48;
  			break;
  		
  		case 139:
  			StringCopy(&Var2, "TORSO_P1_14_0", 16);
  			iVar6 = 14;
  			iVar7 = 0;
  			iVar1 = 290;
  			break;
  		
  		case 140:
  			StringCopy(&Var2, "TORSO_P1_14_1", 16);
  			iVar6 = 14;
  			iVar7 = 1;
  			iVar1 = 290;
  			break;
  		
  		case 141:
  			StringCopy(&Var2, "TORSO_P1_14_2", 16);
  			iVar6 = 14;
  			iVar7 = 2;
  			iVar1 = 290;
  			break;
  		
  		case 142:
  			StringCopy(&Var2, "TORSO_P1_14_3", 16);
  			iVar6 = 14;
  			iVar7 = 3;
  			iVar1 = 290;
  			break;
  		
  		case 143:
  			StringCopy(&Var2, "TORSO_P1_14_4", 16);
  			iVar6 = 14;
  			iVar7 = 4;
  			iVar1 = 290;
  			break;
  		
  		case 144:
  			StringCopy(&Var2, "TORSO_P1_14_5", 16);
  			iVar6 = 14;
  			iVar7 = 5;
  			iVar1 = 290;
  			break;
  		
  		case 145:
  			StringCopy(&Var2, "TORSO_P1_14_6", 16);
  			iVar6 = 14;
  			iVar7 = 6;
  			iVar1 = 65;
  			break;
  		
  		case 146:
  			StringCopy(&Var2, "TORSO_P1_14_7", 16);
  			iVar6 = 14;
  			iVar7 = 7;
  			iVar1 = 65;
  			break;
  		
  		case 147:
  			StringCopy(&Var2, "TORSO_P1_15_0", 16);
  			iVar6 = 15;
  			iVar7 = 0;
  			iVar1 = 200;
  			break;
  		
  		case 148:
  			StringCopy(&Var2, "TORSO_P1_15_1", 16);
  			iVar6 = 15;
  			iVar7 = 1;
  			iVar1 = 220;
  			break;
  		
  		case 149:
  			StringCopy(&Var2, "TORSO_P1_15_2", 16);
  			iVar6 = 15;
  			iVar7 = 2;
  			iVar1 = 220;
  			break;
  		
  		case 150:
  			StringCopy(&Var2, "TORSO_P1_15_3", 16);
  			iVar6 = 15;
  			iVar7 = 3;
  			iVar1 = 240;
  			break;
  		
  		case 151:
  			StringCopy(&Var2, "TORSO_P1_15_4", 16);
  			iVar6 = 15;
  			iVar7 = 4;
  			break;
  		
  		case 152:
  			StringCopy(&Var2, "TORSO_P1_15_5", 16);
  			iVar6 = 15;
  			iVar7 = 5;
  			iVar1 = 250;
  			break;
  		
  		case 153:
  			StringCopy(&Var2, "TORSO_P1_15_6", 16);
  			iVar6 = 15;
  			iVar7 = 6;
  			iVar1 = 260;
  			break;
  		
  		case 154:
  			StringCopy(&Var2, "TORSO_P1_15_7", 16);
  			iVar6 = 15;
  			iVar7 = 7;
  			iVar1 = 40;
  			break;
  		
  		case 155:
  			StringCopy(&Var2, "TORSO_P1_15_8", 16);
  			iVar6 = 15;
  			iVar7 = 8;
  			iVar1 = 50;
  			break;
  		
  		case 156:
  			StringCopy(&Var2, "TORSO_P1_15_9", 16);
  			iVar6 = 15;
  			iVar7 = 9;
  			iVar1 = 45;
  			break;
  		
  		case 157:
  			StringCopy(&Var2, "TORSO_P1_15_10", 16);
  			iVar6 = 15;
  			iVar7 = 10;
  			iVar1 = 40;
  			break;
  		
  		case 158:
  			StringCopy(&Var2, "TORSO_P1_15_11", 16);
  			iVar6 = 15;
  			iVar7 = 11;
  			iVar1 = 55;
  			break;
  		
  		case 159:
  			StringCopy(&Var2, "TORSO_P1_16_0", 16);
  			iVar6 = 16;
  			iVar7 = 0;
  			break;
  		
  		case 160:
  			StringCopy(&Var2, "TORSO_P1_17_0", 16);
  			iVar6 = 17;
  			iVar7 = 0;
  			iVar1 = 40;
  			break;
  		
  		case 161:
  			StringCopy(&Var2, "TORSO_P1_17_1", 16);
  			iVar6 = 17;
  			iVar7 = 1;
  			iVar1 = 50;
  			break;
  		
  		case 162:
  			StringCopy(&Var2, "TORSO_P1_17_2", 16);
  			iVar6 = 17;
  			iVar7 = 2;
  			break;
  		
  		case 163:
  			StringCopy(&Var2, "TORSO_P1_17_3", 16);
  			iVar6 = 17;
  			iVar7 = 3;
  			iVar1 = 50;
  			break;
  		
  		case 164:
  			StringCopy(&Var2, "TORSO_P1_17_4", 16);
  			iVar6 = 17;
  			iVar7 = 4;
  			iVar1 = 50;
  			break;
  		
  		case 165:
  			StringCopy(&Var2, "TORSO_P1_17_5", 16);
  			iVar6 = 17;
  			iVar7 = 5;
  			iVar1 = 50;
  			break;
  		
  		case 166:
  			StringCopy(&Var2, "TORSO_P1_17_6", 16);
  			iVar6 = 17;
  			iVar7 = 6;
  			iVar1 = 50;
  			break;
  		
  		case 167:
  			StringCopy(&Var2, "TORSO_P1_17_7", 16);
  			iVar6 = 17;
  			iVar7 = 7;
  			iVar1 = 50;
  			break;
  		
  		case 168:
  			StringCopy(&Var2, "TORSO_P1_17_8", 16);
  			iVar6 = 17;
  			iVar7 = 8;
  			iVar1 = 50;
  			break;
  		
  		case 169:
  			StringCopy(&Var2, "TORSO_P1_17_9", 16);
  			iVar6 = 17;
  			iVar7 = 9;
  			iVar1 = 50;
  			break;
  		
  		case 170:
  			StringCopy(&Var2, "TORSO_P1_17_10", 16);
  			iVar6 = 17;
  			iVar7 = 10;
  			iVar1 = 50;
  			break;
  		
  		case 171:
  			StringCopy(&Var2, "TORSO_P1_17_11", 16);
  			iVar6 = 17;
  			iVar7 = 11;
  			iVar1 = 50;
  			break;
  		
  		case 172:
  			StringCopy(&Var2, "TORSO_P1_17_12", 16);
  			iVar6 = 17;
  			iVar7 = 12;
  			iVar1 = 50;
  			break;
  		
  		case 173:
  			StringCopy(&Var2, "TORSO_P1_17_13", 16);
  			iVar6 = 17;
  			iVar7 = 13;
  			iVar1 = 50;
  			break;
  		
  		case 174:
  			StringCopy(&Var2, "TORSO_P1_17_14", 16);
  			iVar6 = 17;
  			iVar7 = 14;
  			iVar1 = 50;
  			break;
  		
  		case 175:
  			StringCopy(&Var2, "TORSO_P1_17_15", 16);
  			iVar6 = 17;
  			iVar7 = 15;
  			iVar1 = 50;
  			break;
  		
  		case 176:
  			StringCopy(&Var2, "TORSO_P1_18_0", 16);
  			iVar6 = 18;
  			iVar7 = 0;
  			iVar9 = 3;
  			break;
  		
  		case 177:
  			StringCopy(&Var2, "TORSO_P1_18_1", 16);
  			iVar6 = 18;
  			iVar7 = 1;
  			iVar9 = 3;
  			break;
  		
  		case 178:
  			StringCopy(&Var2, "TORSO_P1_18_2", 16);
  			iVar6 = 18;
  			iVar7 = 2;
  			iVar9 = 3;
  			break;
  		
  		case 179:
  			StringCopy(&Var2, "TORSO_P1_18_3", 16);
  			iVar6 = 18;
  			iVar7 = 3;
  			iVar9 = 3;
  			break;
  		
  		case 180:
  			StringCopy(&Var2, "TORSO_P1_18_4", 16);
  			iVar6 = 18;
  			iVar7 = 4;
  			iVar9 = 3;
  			break;
  		
  		case 181:
  			StringCopy(&Var2, "TORSO_P1_18_5", 16);
  			iVar6 = 18;
  			iVar7 = 5;
  			iVar9 = 3;
  			break;
  		
  		case 182:
  			StringCopy(&Var2, "TORSO_P1_18_6", 16);
  			iVar6 = 18;
  			iVar7 = 6;
  			iVar9 = 3;
  			break;
  		
  		case 183:
  			StringCopy(&Var2, "TORSO_P1_18_7", 16);
  			iVar6 = 18;
  			iVar7 = 7;
  			iVar9 = 3;
  			break;
  		
  		case 184:
  			StringCopy(&Var2, "TORSO_P1_18_8", 16);
  			iVar6 = 18;
  			iVar7 = 8;
  			iVar9 = 3;
  			break;
  		
  		case 185:
  			StringCopy(&Var2, "TORSO_P1_18_9", 16);
  			iVar6 = 18;
  			iVar7 = 9;
  			iVar9 = 3;
  			break;
  		
  		case 186:
  			StringCopy(&Var2, "TORSO_P1_18_10", 16);
  			iVar6 = 18;
  			iVar7 = 10;
  			iVar9 = 3;
  			break;
  		
  		case 187:
  			StringCopy(&Var2, "TORSO_P1_18_11", 16);
  			iVar6 = 18;
  			iVar7 = 11;
  			iVar9 = 3;
  			break;
  		
  		case 188:
  			StringCopy(&Var2, "TORSO_P1_18_12", 16);
  			iVar6 = 18;
  			iVar7 = 12;
  			iVar9 = 3;
  			break;
  		
  		case 189:
  			StringCopy(&Var2, "TORSO_P1_18_13", 16);
  			iVar6 = 18;
  			iVar7 = 13;
  			iVar9 = 3;
  			break;
  		
  		case 190:
  			StringCopy(&Var2, "TORSO_P1_18_14", 16);
  			iVar6 = 18;
  			iVar7 = 14;
  			iVar9 = 3;
  			break;
  		
  		case 191:
  			StringCopy(&Var2, "TORSO_P1_18_15", 16);
  			iVar6 = 18;
  			iVar7 = 15;
  			iVar9 = 3;
  			break;
  		
  		case 192:
  			StringCopy(&Var2, "TORSO_P1_19_0", 16);
  			iVar6 = 19;
  			iVar7 = 0;
  			iVar1 = 480;
  			iVar9 = 3;
  			break;
  		
  		case 193:
  			StringCopy(&Var2, "TORSO_P1_19_1", 16);
  			iVar6 = 19;
  			iVar7 = 1;
  			iVar1 = 440;
  			iVar9 = 3;
  			break;
  		
  		case 194:
  			StringCopy(&Var2, "TORSO_P1_19_2", 16);
  			iVar6 = 19;
  			iVar7 = 2;
  			iVar1 = 440;
  			iVar9 = 3;
  			break;
  		
  		case 195:
  			StringCopy(&Var2, "TORSO_P1_19_3", 16);
  			iVar6 = 19;
  			iVar7 = 3;
  			iVar1 = 520;
  			iVar9 = 3;
  			break;
  		
  		case 196:
  			StringCopy(&Var2, "TORSO_P1_19_4", 16);
  			iVar6 = 19;
  			iVar7 = 4;
  			iVar1 = 440;
  			iVar9 = 3;
  			break;
  		
  		case 197:
  			StringCopy(&Var2, "TORSO_P1_19_5", 16);
  			iVar6 = 19;
  			iVar7 = 5;
  			iVar1 = 440;
  			iVar9 = 3;
  			break;
  		
  		case 198:
  			StringCopy(&Var2, "TORSO_P1_19_6", 16);
  			iVar6 = 19;
  			iVar7 = 6;
  			iVar1 = 480;
  			iVar9 = 3;
  			break;
  		
  		case 199:
  			StringCopy(&Var2, "TORSO_P1_19_7", 16);
  			iVar6 = 19;
  			iVar7 = 7;
  			iVar1 = 480;
  			iVar9 = 3;
  			break;
  		
  		case 200:
  			StringCopy(&Var2, "TORSO_P1_19_8", 16);
  			iVar6 = 19;
  			iVar7 = 8;
  			iVar1 = 480;
  			iVar9 = 3;
  			break;
  		
  		case 201:
  			StringCopy(&Var2, "TORSO_P1_19_9", 16);
  			iVar6 = 19;
  			iVar7 = 9;
  			iVar1 = 480;
  			iVar9 = 3;
  			break;
  		
  		case 202:
  			StringCopy(&Var2, "TORSO_P1_19_10", 16);
  			iVar6 = 19;
  			iVar7 = 10;
  			iVar1 = 480;
  			iVar9 = 3;
  			break;
  		
  		case 203:
  			StringCopy(&Var2, "TORSO_P1_19_11", 16);
  			iVar6 = 19;
  			iVar7 = 11;
  			iVar1 = 480;
  			iVar9 = 3;
  			break;
  		
  		case 204:
  			StringCopy(&Var2, "TORSO_P1_19_12", 16);
  			iVar6 = 19;
  			iVar7 = 12;
  			iVar1 = 520;
  			iVar9 = 3;
  			break;
  		
  		case 205:
  			StringCopy(&Var2, "TORSO_P1_19_13", 16);
  			iVar6 = 19;
  			iVar7 = 13;
  			iVar1 = 520;
  			iVar9 = 3;
  			break;
  		
  		case 206:
  			StringCopy(&Var2, "TORSO_P1_19_14", 16);
  			iVar6 = 19;
  			iVar7 = 14;
  			iVar1 = 520;
  			iVar9 = 3;
  			break;
  		
  		case 207:
  			StringCopy(&Var2, "TORSO_P1_19_15", 16);
  			iVar6 = 19;
  			iVar7 = 15;
  			iVar1 = 440;
  			iVar9 = 3;
  			break;
  		
  		case 208:
  			StringCopy(&Var2, "NO_LABEL", 16);
  			iVar6 = 20;
  			iVar7 = 0;
  			bVar0 = true;
  			iVar9 = 4;
  			break;
  		
  		case 209:
  			StringCopy(&Var2, "TORSO_P1_21_0", 16);
  			iVar6 = 21;
  			iVar7 = 0;
  			iVar1 = 220;
  			break;
  		
  		case 210:
  			StringCopy(&Var2, "TORSO_P1_21_1", 16);
  			iVar6 = 21;
  			iVar7 = 1;
  			iVar1 = 200;
  			break;
  		
  		case 211:
  			StringCopy(&Var2, "TORSO_P1_21_2", 16);
  			iVar6 = 21;
  			iVar7 = 2;
  			iVar1 = 240;
  			break;
  		
  		case 212:
  			StringCopy(&Var2, "TORSO_P1_21_3", 16);
  			iVar6 = 21;
  			iVar7 = 3;
  			iVar1 = 240;
  			break;
  		
  		case 213:
  			StringCopy(&Var2, "TORSO_P1_21_4", 16);
  			iVar6 = 21;
  			iVar7 = 4;
  			iVar1 = 260;
  			break;
  		
  		case 214:
  			StringCopy(&Var2, "TORSO_P1_21_5", 16);
  			iVar6 = 21;
  			iVar7 = 5;
  			iVar1 = 275;
  			break;
  		
  		case 215:
  			StringCopy(&Var2, "TORSO_P1_21_6", 16);
  			iVar6 = 21;
  			iVar7 = 6;
  			iVar1 = 275;
  			break;
  		
  		case 216:
  			StringCopy(&Var2, "TORSO_P1_21_7", 16);
  			iVar6 = 21;
  			iVar7 = 7;
  			iVar1 = 280;
  			break;
  		
  		case 217:
  			StringCopy(&Var2, "TORSO_P1_21_8", 16);
  			iVar6 = 21;
  			iVar7 = 8;
  			iVar1 = 280;
  			break;
  		
  		case 218:
  			StringCopy(&Var2, "TORSO_P1_21_9", 16);
  			iVar6 = 21;
  			iVar7 = 9;
  			iVar1 = 280;
  			break;
  		
  		case 219:
  			StringCopy(&Var2, "TORSO_P1_21_10", 16);
  			iVar6 = 21;
  			iVar7 = 10;
  			iVar1 = 280;
  			break;
  		
  		case 220:
  			StringCopy(&Var2, "TORSO_P1_21_11", 16);
  			iVar6 = 21;
  			iVar7 = 11;
  			iVar1 = 280;
  			break;
  		
  		case 221:
  			StringCopy(&Var2, "TORSO_P1_21_12", 16);
  			iVar6 = 21;
  			iVar7 = 12;
  			iVar1 = 280;
  			break;
  		
  		case 222:
  			StringCopy(&Var2, "TORSO_P1_21_13", 16);
  			iVar6 = 21;
  			iVar7 = 13;
  			iVar1 = 280;
  			break;
  		
  		case 223:
  			StringCopy(&Var2, "TORSO_P1_22_0", 16);
  			iVar6 = 22;
  			iVar7 = 0;
  			iVar1 = 3100;
  			iVar9 = 3;
  			break;
  		
  		case 224:
  			StringCopy(&Var2, "TORSO_P1_22_1", 16);
  			iVar6 = 22;
  			iVar7 = 1;
  			iVar1 = 2800;
  			iVar9 = 3;
  			break;
  		
  		case 225:
  			StringCopy(&Var2, "TORSO_P1_22_2", 16);
  			iVar6 = 22;
  			iVar7 = 2;
  			iVar1 = 2500;
  			iVar9 = 3;
  			break;
  		
  		case 226:
  			StringCopy(&Var2, "TORSO_P1_22_3", 16);
  			iVar6 = 22;
  			iVar7 = 3;
  			iVar1 = 3000;
  			iVar9 = 3;
  			break;
  		
  		default:
  			return;
  			break;
  	}
  	func_263(&(Global_77669[0 /*14*/]), iVar10, iParam0, &Var2, iVar6, iVar7, iVar1, bVar0, iVar8, iVar9, 0);
  }
  
  void func_302(int iParam0)
  {
  	bool bVar0;
  	int iVar1;
  	struct<2> Var2;
  	int iVar6;
  	int iVar7;
  	int iVar8;
  	int iVar9;
  	int iVar10;
  	
  	bVar0 = false;
  	iVar1 = 10;
  	iVar6 = 0;
  	iVar7 = 0;
  	iVar8 = -1;
  	iVar9 = 2;
  	iVar10 = 3;
  	Global_77669[0 /*14*/].f_5 = 1;
  	switch (iParam0)
  	{
  		case 0:
  			StringCopy(&Var2, "TORSO_P1_0_0", 16);
  			iVar6 = 0;
  			iVar7 = 0;
  			break;
  		
  		case 1:
  			StringCopy(&Var2, "TORSO_P1_0_1", 16);
  			iVar6 = 0;
  			iVar7 = 1;
  			break;
  		
  		case 2:
  			StringCopy(&Var2, "TORSO_P1_0_2", 16);
  			iVar6 = 0;
  			iVar7 = 2;
  			iVar1 = 180;
  			break;
  		
  		case 3:
  			StringCopy(&Var2, "TORSO_P1_0_3", 16);
  			iVar6 = 0;
  			iVar7 = 3;
  			iVar1 = 22;
  			break;
  		
  		case 4:
  			StringCopy(&Var2, "TORSO_P1_0_4", 16);
  			iVar6 = 0;
  			iVar7 = 4;
  			iVar1 = 20;
  			break;
  		
  		case 5:
  			StringCopy(&Var2, "TORSO_P1_0_5", 16);
  			iVar6 = 0;
  			iVar7 = 5;
  			iVar1 = 18;
  			break;
  		
  		case 6:
  			StringCopy(&Var2, "TORSO_P1_0_6", 16);
  			iVar6 = 0;
  			iVar7 = 6;
  			iVar1 = 19;
  			break;
  		
  		case 7:
  			StringCopy(&Var2, "TORSO_P1_0_7", 16);
  			iVar6 = 0;
  			iVar7 = 7;
  			iVar1 = 22;
  			break;
  		
  		case 8:
  			StringCopy(&Var2, "TORSO_P1_0_8", 16);
  			iVar6 = 0;
  			iVar7 = 8;
  			iVar1 = 20;
  			break;
  		
  		case 9:
  			StringCopy(&Var2, "TORSO_P1_0_9", 16);
  			iVar6 = 0;
  			iVar7 = 9;
  			iVar1 = 19;
  			break;
  		
  		case 10:
  			StringCopy(&Var2, "TORSO_P1_0_10", 16);
  			iVar6 = 0;
  			iVar7 = 10;
  			iVar1 = 19;
  			break;
  		
  		case 11:
  			StringCopy(&Var2, "TORSO_P1_0_11", 16);
  			iVar6 = 0;
  			iVar7 = 11;
  			iVar1 = 18;
  			break;
  		
  		case 12:
  			StringCopy(&Var2, "TORSO_P1_0_12", 16);
  			iVar6 = 0;
  			iVar7 = 12;
  			iVar1 = 20;
  			break;
  		
  		case 13:
  			StringCopy(&Var2, "TORSO_P1_0_13", 16);
  			iVar6 = 0;
  			iVar7 = 13;
  			iVar1 = 22;
  			break;
  		
  		case 14:
  			StringCopy(&Var2, "TORSO_P1_0_14", 16);
  			iVar6 = 0;
  			iVar7 = 14;
  			iVar1 = 19;
  			break;
  		
  		case 15:
  			StringCopy(&Var2, "TORSO_P1_0_15", 16);
  			iVar6 = 0;
  			iVar7 = 15;
  			iVar1 = 22;
  			break;
  		
  		case 16:
  			StringCopy(&Var2, "NO_LABEL", 16);
  			iVar6 = 1;
  			iVar7 = 0;
  			bVar0 = true;
  			iVar9 = 4;
  			break;
  		
  		case 17:
  			StringCopy(&Var2, "NO_LABEL", 16);
  			iVar6 = 1;
  			iVar7 = 1;
  			bVar0 = true;
  			iVar9 = 4;
  			break;
  		
  		case 18:
  			StringCopy(&Var2, "NO_LABEL", 16);
  			iVar6 = 1;
  			iVar7 = 2;
  			bVar0 = true;
  			iVar9 = 4;
  			break;
  		
  		case 19:
  			StringCopy(&Var2, "NO_LABEL", 16);
  			iVar6 = 1;
  			iVar7 = 3;
  			bVar0 = true;
  			iVar9 = 4;
  			break;
  		
  		case 20:
  			StringCopy(&Var2, "NO_LABEL", 16);
  			iVar6 = 1;
  			iVar7 = 4;
  			bVar0 = true;
  			iVar9 = 4;
  			break;
  		
  		case 21:
  			StringCopy(&Var2, "NO_LABEL", 16);
  			iVar6 = 1;
  			iVar7 = 5;
  			bVar0 = true;
  			iVar9 = 4;
  			break;
  		
  		case 22:
  			StringCopy(&Var2, "TORSO_P1_2_0", 16);
  			iVar6 = 2;
  			iVar7 = 0;
  			bVar0 = true;
  			iVar9 = 3;
  			break;
  		
  		case 23:
  			StringCopy(&Var2, "NO_LABEL", 16);
  			iVar6 = 3;
  			iVar7 = 0;
  			bVar0 = true;
  			iVar9 = 1;
  			break;
  		
  		case 24:
  			StringCopy(&Var2, "TORSO_P1_4_0", 16);
  			iVar6 = 4;
  			iVar7 = 0;
  			iVar1 = 20;
  			iVar9 = 2;
  			break;
  		
  		case 25:
  			StringCopy(&Var2, "TORSO_P1_4_1", 16);
  			iVar6 = 4;
  			iVar7 = 1;
  			iVar1 = 22;
  			iVar9 = 2;
  			break;
  		
  		case 26:
  			StringCopy(&Var2, "TORSO_P1_4_2", 16);
  			iVar6 = 4;
  			iVar7 = 2;
  			iVar1 = 20;
  			iVar9 = 2;
  			break;
  		
  		case 27:
  			StringCopy(&Var2, "TORSO_P1_4_3", 16);
  			iVar6 = 4;
  			iVar7 = 3;
  			iVar1 = 25;
  			iVar9 = 2;
  			break;
  		
  		case 28:
  			StringCopy(&Var2, "TORSO_P1_4_4", 16);
  			iVar6 = 4;
  			iVar7 = 4;
  			iVar1 = 23;
  			iVar9 = 2;
  			break;
  		
  		case 29:
  			StringCopy(&Var2, "TORSO_P1_4_5", 16);
  			iVar6 = 4;
  			iVar7 = 5;
  			iVar1 = 25;
  			iVar9 = 2;
  			break;
  		
  		case 30:
  			StringCopy(&Var2, "TORSO_P1_4_6", 16);
  			iVar6 = 4;
  			iVar7 = 6;
  			iVar1 = 28;
  			iVar9 = 2;
  			break;
  		
  		case 31:
  			StringCopy(&Var2, "TORSO_P1_4_7", 16);
  			iVar6 = 4;
  			iVar7 = 7;
  			iVar1 = 26;
  			iVar9 = 2;
  			break;
  		
  		case 32:
  			StringCopy(&Var2, "TORSO_P1_4_8", 16);
  			iVar6 = 4;
  			iVar7 = 8;
  			iVar1 = 24;
  			iVar9 = 2;
  			break;
  		
  		case 33:
  			StringCopy(&Var2, "TORSO_P1_4_9", 16);
  			iVar6 = 4;
  			iVar7 = 9;
  			iVar1 = 27;
  			iVar9 = 2;
  			break;
  		
  		case 34:
  			StringCopy(&Var2, "TORSO_P1_4_10", 16);
  			iVar6 = 4;
  			iVar7 = 10;
  			iVar1 = 29;
  			iVar9 = 2;
  			break;
  		
  		case 35:
  			StringCopy(&Var2, "TORSO_P1_4_11", 16);
  			iVar6 = 4;
  			iVar7 = 11;
  			iVar1 = 28;
  			iVar9 = 2;
  			break;
  		
  		case 36:
  			StringCopy(&Var2, "TORSO_P1_4_12", 16);
  			iVar6 = 4;
  			iVar7 = 12;
  			iVar1 = 25;
  			iVar9 = 2;
  			break;
  		
  		case 37:
  			StringCopy(&Var2, "TORSO_P1_4_13", 16);
  			iVar6 = 4;
  			iVar7 = 13;
  			iVar1 = 22;
  			iVar9 = 2;
  			break;
  		
  		case 38:
  			StringCopy(&Var2, "TORSO_P1_4_14", 16);
  			iVar6 = 4;
  			iVar7 = 14;
  			iVar1 = 27;
  			iVar9 = 2;
  			break;
  		
  		case 39:
  			StringCopy(&Var2, "TORSO_P1_4_15", 16);
  			iVar6 = 4;
  			iVar7 = 15;
  			iVar1 = 29;
  			iVar9 = 2;
  			break;
  		
  		case 40:
  			StringCopy(&Var2, "NO_LABEL", 16);
  			iVar6 = 5;
  			iVar7 = 0;
  			bVar0 = true;
  			iVar9 = 4;
  			break;
  		
  		case 41:
  			StringCopy(&Var2, "TORSO_P1_6_0", 16);
  			iVar6 = 6;
  			iVar7 = 0;
  			iVar9 = 3;
  			break;
  		
  		case 42:
  			StringCopy(&Var2, "TORSO_P1_6_1", 16);
  			iVar6 = 6;
  			iVar7 = 1;
  			iVar1 = 1270;
  			iVar9 = 3;
  			break;
  		
  		case 43:
  			StringCopy(&Var2, "TORSO_P1_6_2", 16);
  			iVar6 = 6;
  			iVar7 = 2;
  			iVar1 = 1270;
  			iVar9 = 3;
  			break;
  		
  		case 44:
  			StringCopy(&Var2, "TORSO_P1_6_3", 16);
  			iVar6 = 6;
  			iVar7 = 3;
  			iVar1 = 1270;
  			iVar9 = 3;
  			break;
  		
  		case 45:
  			StringCopy(&Var2, "TORSO_P1_6_4", 16);
  			iVar6 = 6;
  			iVar7 = 4;
  			iVar1 = 1090;
  			iVar9 = 3;
  			break;
  		
  		case 46:
  			StringCopy(&Var2, "TORSO_P1_6_5", 16);
  			iVar6 = 6;
  			iVar7 = 5;
  			iVar1 = 1090;
  			iVar9 = 3;
  			break;
  		
  		case 47:
  			StringCopy(&Var2, "TORSO_P1_6_6", 16);
  			iVar6 = 6;
  			iVar7 = 6;
  			iVar1 = 1120;
  			iVar9 = 3;
  			break;
  		
  		case 48:
  			StringCopy(&Var2, "TORSO_P1_6_7", 16);
  			iVar6 = 6;
  			iVar7 = 7;
  			iVar1 = 1120;
  			iVar9 = 3;
  			break;
  		
  		case 49:
  			StringCopy(&Var2, "TORSO_P1_6_8", 16);
  			iVar6 = 6;
  			iVar7 = 8;
  			iVar1 = 1290;
  			iVar9 = 3;
  			break;
  		
  		case 50:
  			StringCopy(&Var2, "TORSO_P1_6_9", 16);
  			iVar6 = 6;
  			iVar7 = 9;
  			iVar1 = 1290;
  			iVar9 = 3;
  			break;
  		
  		case 51:
  			StringCopy(&Var2, "TORSO_P1_6_10", 16);
  			iVar6 = 6;
  			iVar7 = 10;
  			iVar1 = 1320;
  			iVar9 = 3;
  			break;
  		
  		case 52:
  			StringCopy(&Var2, "TORSO_P1_6_11", 16);
  			iVar6 = 6;
  			iVar7 = 11;
  			iVar1 = 1320;
  			iVar9 = 3;
  			break;
  		
  		case 53:
  			StringCopy(&Var2, "TORSO_P1_6_12", 16);
  			iVar6 = 6;
  			iVar7 = 12;
  			iVar1 = 1590;
  			iVar9 = 3;
  			break;
  		
  		case 54:
  			StringCopy(&Var2, "TORSO_P1_6_13", 16);
  			iVar6 = 6;
  			iVar7 = 13;
  			iVar1 = 1590;
  			iVar9 = 3;
  			break;
  		
  		case 55:
  			StringCopy(&Var2, "TORSO_P1_6_14", 16);
  			iVar6 = 6;
  			iVar7 = 14;
  			iVar1 = 1590;
  			iVar9 = 3;
  			break;
  		
  		case 56:
  			StringCopy(&Var2, "TORSO_P1_6_15", 16);
  			iVar6 = 6;
  			iVar7 = 15;
  			iVar1 = 1320;
  			iVar9 = 3;
  			break;
  		
  		case 57:
  			StringCopy(&Var2, "TORSO_P1_7_0", 16);
  			iVar6 = 7;
  			iVar7 = 0;
  			iVar1 = 98;
  			break;
  		
  		case 58:
  			StringCopy(&Var2, "TORSO_P1_7_1", 16);
  			iVar6 = 7;
  			iVar7 = 1;
  			iVar1 = 98;
  			break;
  		
  		case 59:
  			StringCopy(&Var2, "TORSO_P1_7_2", 16);
  			iVar6 = 7;
  			iVar7 = 2;
  			iVar1 = 110;
  			break;
  		
  		case 60:
  			StringCopy(&Var2, "TORSO_P1_7_3", 16);
  			iVar6 = 7;
  			iVar7 = 3;
  			iVar1 = 110;
  			break;
  		
  		case 61:
  			StringCopy(&Var2, "TORSO_P1_7_4", 16);
  			iVar6 = 7;
  			iVar7 = 4;
  			iVar1 = 118;
  			break;
  		
  		case 62:
  			StringCopy(&Var2, "TORSO_P1_7_5", 16);
  			iVar6 = 7;
  			iVar7 = 5;
  			iVar1 = 120;
  			break;
  		
  		case 63:
  			StringCopy(&Var2, "TORSO_P1_7_6", 16);
  			iVar6 = 7;
  			iVar7 = 6;
  			iVar1 = 120;
  			break;
  		
  		case 64:
  			StringCopy(&Var2, "TORSO_P1_7_7", 16);
  			iVar6 = 7;
  			iVar7 = 7;
  			iVar1 = 129;
  			break;
  		
  		case 65:
  			StringCopy(&Var2, "TORSO_P1_7_8", 16);
  			iVar6 = 7;
  			iVar7 = 8;
  			iVar1 = 125;
  			break;
  		
  		case 66:
  			StringCopy(&Var2, "TORSO_P1_7_9", 16);
  			iVar6 = 7;
  			iVar7 = 9;
  			iVar1 = 125;
  			break;
  		
  		case 67:
  			StringCopy(&Var2, "TORSO_P1_7_10", 16);
  			iVar6 = 7;
  			iVar7 = 10;
  			iVar1 = 129;
  			break;
  		
  		case 68:
  			StringCopy(&Var2, "TORSO_P1_7_11", 16);
  			iVar6 = 7;
  			iVar7 = 11;
  			iVar1 = 129;
  			break;
  		
  		case 69:
  			StringCopy(&Var2, "TORSO_P1_7_12", 16);
  			iVar6 = 7;
  			iVar7 = 12;
  			iVar1 = 135;
  			break;
  		
  		case 70:
  			StringCopy(&Var2, "TORSO_P1_7_13", 16);
  			iVar6 = 7;
  			iVar7 = 13;
  			iVar1 = 139;
  			break;
  		
  		case 71:
  			StringCopy(&Var2, "TORSO_P1_7_14", 16);
  			iVar6 = 7;
  			iVar7 = 14;
  			iVar1 = 145;
  			break;
  		
  		case 72:
  			StringCopy(&Var2, "TORSO_P1_7_15", 16);
  			iVar6 = 7;
  			iVar7 = 15;
  			iVar1 = 145;
  			break;
  		
  		case 73:
  			StringCopy(&Var2, "TORSO_P1_8_0", 16);
  			iVar6 = 8;
  			iVar7 = 0;
  			break;
  		
  		case 74:
  			StringCopy(&Var2, "TORSO_P1_8_1", 16);
  			iVar6 = 8;
  			iVar7 = 1;
  			break;
  		
  		case 75:
  			StringCopy(&Var2, "TORSO_P1_8_2", 16);
  			iVar6 = 8;
  			iVar7 = 2;
  			break;
  		
  		case 76:
  			StringCopy(&Var2, "TORSO_P1_8_3", 16);
  			iVar6 = 8;
  			iVar7 = 3;
  			break;
  		
  		case 77:
  			StringCopy(&Var2, "TORSO_P1_8_4", 16);
  			iVar6 = 8;
  			iVar7 = 4;
  			iVar1 = 30;
  			break;
  		
  		case 78:
  			StringCopy(&Var2, "TORSO_P1_8_5", 16);
  			iVar6 = 8;
  			iVar7 = 5;
  			iVar1 = 38;
  			break;
  		
  		case joaat("mpsv_lp0_31"):
  			StringCopy(&Var2, "TORSO_P1_8_6", 16);
  			iVar6 = 8;
  			iVar7 = 6;
  			iVar1 = 32;
  			break;
  		
  		case 80:
  			StringCopy(&Var2, "TORSO_P1_8_7", 16);
  			iVar6 = 8;
  			iVar7 = 7;
  			iVar1 = 30;
  			break;
  		
  		case 81:
  			StringCopy(&Var2, "TORSO_P1_8_8", 16);
  			iVar6 = 8;
  			iVar7 = 8;
  			iVar1 = 33;
  			break;
  		
  		case 82:
  			StringCopy(&Var2, "TORSO_P1_8_9", 16);
  			iVar6 = 8;
  			iVar7 = 9;
  			iVar1 = 35;
  			break;
  		
  		case 83:
  			StringCopy(&Var2, "TORSO_P1_8_10", 16);
  			iVar6 = 8;
  			iVar7 = 10;
  			iVar1 = 35;
  			break;
  		
  		case 84:
  			StringCopy(&Var2, "TORSO_P1_8_11", 16);
  			iVar6 = 8;
  			iVar7 = 11;
  			iVar1 = 38;
  			break;
  		
  		case 85:
  			StringCopy(&Var2, "TORSO_P1_8_12", 16);
  			iVar6 = 8;
  			iVar7 = 12;
  			iVar1 = 33;
  			break;
  		
  		case 86:
  			StringCopy(&Var2, "TORSO_P1_8_13", 16);
  			iVar6 = 8;
  			iVar7 = 13;
  			iVar1 = 35;
  			break;
  		
  		case 87:
  			StringCopy(&Var2, "TORSO_P1_8_14", 16);
  			iVar6 = 8;
  			iVar7 = 14;
  			iVar1 = 38;
  			break;
  		
  		case 88:
  			StringCopy(&Var2, "TORSO_P1_8_15", 16);
  			iVar6 = 8;
  			iVar7 = 15;
  			iVar1 = 32;
  			break;
  		
  		case 89:
  			StringCopy(&Var2, "NO_LABEL", 16);
  			iVar6 = 9;
  			iVar7 = 0;
  			bVar0 = true;
  			break;
  		
  		case 90:
  			StringCopy(&Var2, "NO_LABEL", 16);
  			iVar6 = 10;
  			iVar7 = 0;
  			bVar0 = true;
  			break;
  		
  		case 91:
  			StringCopy(&Var2, "TORSO_P1_11_0", 16);
  			iVar6 = 11;
  			iVar7 = 0;
  			break;
  		
  		case 92:
  			StringCopy(&Var2, "TORSO_P1_11_1", 16);
  			iVar6 = 11;
  			iVar7 = 1;
  			iVar1 = 59;
  			break;
  		
  		case 93:
  			StringCopy(&Var2, "TORSO_P1_11_2", 16);
  			iVar6 = 11;
  			iVar7 = 2;
  			break;
  		
  		case 94:
  			StringCopy(&Var2, "TORSO_P1_11_3", 16);
  			iVar6 = 11;
  			iVar7 = 3;
  			iVar1 = 25;
  			break;
  		
  		case 95:
  			StringCopy(&Var2, "TORSO_P1_11_4", 16);
  			iVar6 = 11;
  			iVar7 = 4;
  			iVar1 = 29;
  			break;
  		
  		case 96:
  			StringCopy(&Var2, "TORSO_P1_11_5", 16);
  			iVar6 = 11;
  			iVar7 = 5;
  			iVar1 = 27;
  			break;
  		
  		case 97:
  			StringCopy(&Var2, "TORSO_P1_11_6", 16);
  			iVar6 = 11;
  			iVar7 = 6;
  			iVar1 = 25;
  			break;
  		
  		case 98:
  			StringCopy(&Var2, "TORSO_P1_11_7", 16);
  			iVar6 = 11;
  			iVar7 = 7;
  			iVar1 = 27;
  			break;
  		
  		case 99:
  			StringCopy(&Var2, "TORSO_P1_11_8", 16);
  			iVar6 = 11;
  			iVar7 = 8;
  			iVar1 = 28;
  			break;
  		
  		case 100:
  			StringCopy(&Var2, "TORSO_P1_11_9", 16);
  			iVar6 = 11;
  			iVar7 = 9;
  			iVar1 = 30;
  			break;
  		
  		case 101:
  			StringCopy(&Var2, "TORSO_P1_11_10", 16);
  			iVar6 = 11;
  			iVar7 = 10;
  			iVar1 = 29;
  			break;
  		
  		case 102:
  			StringCopy(&Var2, "TORSO_P1_11_11", 16);
  			iVar6 = 11;
  			iVar7 = 11;
  			iVar1 = 27;
  			break;
  		
  		case 103:
  			StringCopy(&Var2, "TORSO_P1_11_12", 16);
  			iVar6 = 11;
  			iVar7 = 12;
  			iVar1 = 29;
  			break;
  		
  		case 104:
  			StringCopy(&Var2, "TORSO_P1_11_13", 16);
  			iVar6 = 11;
  			iVar7 = 13;
  			iVar1 = 32;
  			break;
  		
  		case 105:
  			StringCopy(&Var2, "TORSO_P1_11_14", 16);
  			iVar6 = 11;
  			iVar7 = 14;
  			iVar1 = 30;
  			break;
  		
  		case 106:
  			StringCopy(&Var2, "TORSO_P1_11_15", 16);
  			iVar6 = 11;
  			iVar7 = 15;
  			iVar1 = 28;
  			break;
  		
  		default:
  			return;
  			break;
  	}
  	func_263(&(Global_77669[0 /*14*/]), iVar10, iParam0, &Var2, iVar6, iVar7, iVar1, bVar0, iVar8, iVar9, 0);
  }
  
  void func_303(int iParam0)
  {
  	bool bVar0;
  	int iVar1;
  	struct<2> Var2;
  	int iVar6;
  	int iVar7;
  	int iVar8;
  	int iVar9;
  	int iVar10;
  	
  	bVar0 = false;
  	iVar1 = 10;
  	iVar6 = 0;
  	iVar7 = 0;
  	iVar8 = -1;
  	iVar9 = 2;
  	iVar10 = 2;
  	Global_77669[0 /*14*/].f_5 = 1;
  	switch (iParam0)
  	{
  		case 0:
  			StringCopy(&Var2, "HAIR_P1_0_0", 16);
  			iVar6 = 0;
  			iVar7 = 0;
  			break;
  		
  		case 1:
  			StringCopy(&Var2, "HAIR_P1_0_1", 16);
  			iVar6 = 0;
  			iVar7 = 1;
  			break;
  		
  		case 2:
  			StringCopy(&Var2, "HAIR_P1_0_2", 16);
  			iVar6 = 0;
  			iVar7 = 2;
  			break;
  		
  		case 3:
  			StringCopy(&Var2, "HAIR_P1_0_3", 16);
  			iVar6 = 0;
  			iVar7 = 3;
  			iVar9 = 3;
  			break;
  		
  		case 4:
  			StringCopy(&Var2, "HAIR_P1_0_4", 16);
  			iVar6 = 0;
  			iVar7 = 4;
  			iVar9 = 3;
  			break;
  		
  		case 5:
  			StringCopy(&Var2, "HAIR_P1_0_5", 16);
  			iVar6 = 0;
  			iVar7 = 5;
  			iVar9 = 3;
  			break;
  		
  		case 6:
  			StringCopy(&Var2, "HAIR_P1_0_6", 16);
  			iVar6 = 0;
  			iVar7 = 6;
  			iVar9 = 3;
  			break;
  		
  		case 7:
  			StringCopy(&Var2, "HAIR_P1_0_7", 16);
  			iVar6 = 0;
  			iVar7 = 7;
  			iVar9 = 3;
  			break;
  		
  		case 8:
  			StringCopy(&Var2, "HAIR_P1_0_8", 16);
  			iVar6 = 0;
  			iVar7 = 8;
  			iVar9 = 3;
  			break;
  		
  		case 9:
  			StringCopy(&Var2, "HAIR_P1_0_9", 16);
  			iVar6 = 0;
  			iVar7 = 9;
  			iVar9 = 3;
  			break;
  		
  		case 10:
  			StringCopy(&Var2, "HAIR_P1_0_10", 16);
  			iVar6 = 0;
  			iVar7 = 10;
  			iVar9 = 3;
  			break;
  		
  		case 11:
  			StringCopy(&Var2, "HAIR_P1_0_11", 16);
  			iVar6 = 0;
  			iVar7 = 11;
  			iVar9 = 3;
  			break;
  		
  		case 12:
  			StringCopy(&Var2, "HAIR_P1_0_12", 16);
  			iVar6 = 0;
  			iVar7 = 12;
  			iVar9 = 3;
  			break;
  		
  		case 13:
  			StringCopy(&Var2, "HAIR_P1_0_13", 16);
  			iVar6 = 0;
  			iVar7 = 13;
  			break;
  		
  		case 14:
  			StringCopy(&Var2, "HAIR_P1_0_14", 16);
  			iVar6 = 0;
  			iVar7 = 14;
  			iVar9 = 3;
  			break;
  		
  		case 15:
  			StringCopy(&Var2, "HAIR_P1_0_15", 16);
  			iVar6 = 0;
  			iVar7 = 15;
  			iVar9 = 3;
  			break;
  		
  		case 16:
  			StringCopy(&Var2, "HAIR_P1_1_0", 16);
  			iVar6 = 1;
  			iVar7 = 0;
  			iVar9 = 3;
  			break;
  		
  		case 17:
  			StringCopy(&Var2, "HAIR_P1_2_0", 16);
  			iVar6 = 2;
  			iVar7 = 0;
  			iVar9 = 3;
  			break;
  		
  		case 18:
  			StringCopy(&Var2, "HAIR_P1_3_0", 16);
  			iVar6 = 3;
  			iVar7 = 0;
  			iVar9 = 3;
  			break;
  		
  		case 19:
  			StringCopy(&Var2, "HAIR_P1_4_0", 16);
  			iVar6 = 4;
  			iVar7 = 0;
  			break;
  		
  		case 20:
  			StringCopy(&Var2, "NO_LABEL", 16);
  			iVar6 = 5;
  			iVar7 = 0;
  			bVar0 = true;
  			break;
  		
  		default:
  			func_269(iVar10, iParam0, 21, -1);
  			return;
  			break;
  	}
  	func_263(&(Global_77669[0 /*14*/]), iVar10, iParam0, &Var2, iVar6, iVar7, iVar1, bVar0, iVar8, iVar9, 0);
  }
  
  void func_304(int iParam0)
  {
  	bool bVar0;
  	int iVar1;
  	struct<2> Var2;
  	int iVar6;
  	int iVar7;
  	int iVar8;
  	int iVar9;
  	int iVar10;
  	
  	bVar0 = false;
  	iVar1 = 10;
  	iVar6 = 0;
  	iVar7 = 0;
  	iVar8 = -1;
  	iVar9 = 2;
  	iVar10 = 0;
  	Global_77669[0 /*14*/].f_5 = 1;
  	switch (iParam0)
  	{
  		case 0:
  			StringCopy(&Var2, "NO_LABEL", 16);
  			iVar6 = 0;
  			iVar7 = 0;
  			break;
  		
  		case 1:
  			StringCopy(&Var2, "NO_LABEL", 16);
  			iVar6 = 0;
  			iVar7 = 1;
  			break;
  		
  		case 2:
  			StringCopy(&Var2, "NO_LABEL", 16);
  			iVar6 = 0;
  			iVar7 = 2;
  			break;
  		
  		case 3:
  			StringCopy(&Var2, "NO_LABEL", 16);
  			iVar6 = 0;
  			iVar7 = 3;
  			break;
  		
  		case 4:
  			StringCopy(&Var2, "NO_LABEL", 16);
  			iVar6 = 0;
  			iVar7 = 4;
  			break;
  		
  		case 5:
  			StringCopy(&Var2, "NO_LABEL", 16);
  			iVar6 = 0;
  			iVar7 = 5;
  			break;
  		
  		case 6:
  			StringCopy(&Var2, "NO_LABEL", 16);
  			iVar6 = 0;
  			iVar7 = 6;
  			break;
  		
  		case 7:
  			StringCopy(&Var2, "NO_LABEL", 16);
  			iVar6 = 0;
  			iVar7 = 7;
  			break;
  		
  		case 8:
  			StringCopy(&Var2, "NO_LABEL", 16);
  			iVar6 = 0;
  			iVar7 = 8;
  			break;
  		
  		case 9:
  			StringCopy(&Var2, "NO_LABEL", 16);
  			iVar6 = 0;
  			iVar7 = 9;
  			break;
  		
  		default:
  			func_269(iVar10, iParam0, 10, -1);
  			return;
  			break;
  	}
  	func_263(&(Global_77669[0 /*14*/]), iVar10, iParam0, &Var2, iVar6, iVar7, iVar1, bVar0, iVar8, iVar9, 0);
  }
  
  void func_305(int iParam0, int iParam1)
  {
  	switch (iParam0)
  	{
  		case 0:
  			func_322(iParam1);
  			break;
  		
  		case 2:
  			func_321(iParam1);
  			break;
  		
  		case 3:
  			func_318(iParam1);
  			break;
  		
  		case 4:
  			func_317(iParam1);
  			break;
  		
  		case 6:
  			func_316(iParam1);
  			break;
  		
  		case 5:
  			func_315(iParam1);
  			break;
  		
  		case 8:
  			func_314(iParam1);
  			break;
  		
  		case 9:
  			func_313(iParam1);
  			break;
  		
  		case 10:
  			func_312(iParam1);
  			break;
  		
  		case 1:
  			func_311(iParam1);
  			break;
  		
  		case 7:
  			func_310(iParam1);
  			break;
  		
  		case 11:
  			func_309(iParam1);
  			break;
  		
  		case 12:
  			func_308(iParam1);
  			break;
  		
  		case 13:
  			func_307(iParam1);
  			break;
  		
  		case 14:
  			func_306(iParam1);
  			break;
  	}
  }
  
  void func_306(int iParam0)
  {
  	bool bVar0;
  	int iVar1;
  	struct<2> Var2;
  	int iVar6;
  	int iVar7;
  	int iVar8;
  	int iVar9;
  	int iVar10;
  	
  	bVar0 = false;
  	iVar1 = 10;
  	iVar6 = 0;
  	iVar7 = 0;
  	iVar8 = -1;
  	iVar9 = 2;
  	iVar10 = 14;
  	Global_77669[0 /*14*/].f_5 = 0;
  	switch (iParam0)
  	{
  		case 0:
  			StringCopy(&Var2, "NO_LABEL", 16);
  			iVar6 = -1;
  			iVar7 = 0;
  			iVar1 = 0;
  			iVar8 = 0;
  			break;
  		
  		case 1:
  			StringCopy(&Var2, "NO_LABEL", 16);
  			iVar6 = -1;
  			iVar7 = 0;
  			iVar1 = 0;
  			iVar8 = 1;
  			break;
  		
  		case 2:
  			StringCopy(&Var2, "NO_LABEL", 16);
  			iVar6 = -1;
  			iVar7 = 0;
  			iVar1 = 0;
  			iVar8 = 2;
  			break;
  		
  		case 3:
  			StringCopy(&Var2, "NO_LABEL", 16);
  			iVar6 = -1;
  			iVar7 = 0;
  			iVar1 = 0;
  			iVar8 = 3;
  			break;
  		
  		case 4:
  			StringCopy(&Var2, "NO_LABEL", 16);
  			iVar6 = -1;
  			iVar7 = 0;
  			iVar1 = 0;
  			iVar8 = 4;
  			break;
  		
  		case 5:
  			StringCopy(&Var2, "NO_LABEL", 16);
  			iVar6 = -1;
  			iVar7 = 0;
  			iVar1 = 0;
  			iVar8 = 5;
  			break;
  		
  		case 6:
  			StringCopy(&Var2, "NO_LABEL", 16);
  			iVar6 = -1;
  			iVar7 = 0;
  			iVar1 = 0;
  			iVar8 = 6;
  			break;
  		
  		case 7:
  			StringCopy(&Var2, "NO_LABEL", 16);
  			iVar6 = -1;
  			iVar7 = 0;
  			iVar1 = 0;
  			iVar8 = 7;
  			break;
  		
  		case 8:
  			StringCopy(&Var2, "NO_LABEL", 16);
  			iVar6 = -1;
  			iVar7 = 0;
  			iVar1 = 0;
  			iVar8 = 8;
  			break;
  		
  		case 10:
  			StringCopy(&Var2, "NO_LABEL", 16);
  			iVar6 = 0;
  			iVar7 = 0;
  			bVar0 = true;
  			iVar8 = 0;
  			break;
  		
  		case 11:
  			StringCopy(&Var2, "PROPS_P0_H1", 16);
  			iVar6 = 1;
  			iVar7 = 0;
  			iVar8 = 0;
  			break;
  		
  		case 12:
  			StringCopy(&Var2, "PROPS_P0_H2", 16);
  			iVar6 = 2;
  			iVar7 = 0;
  			iVar1 = 320;
  			iVar8 = 11;
  			break;
  		
  		case 13:
  			StringCopy(&Var2, "NO_LABEL", 16);
  			iVar6 = 3;
  			iVar7 = 0;
  			bVar0 = true;
  			iVar8 = 0;
  			break;
  		
  		case 14:
  			StringCopy(&Var2, "NO_LABEL", 16);
  			iVar6 = 4;
  			iVar7 = 0;
  			bVar0 = true;
  			iVar8 = 0;
  			break;
  		
  		case 15:
  			StringCopy(&Var2, "NO_LABEL", 16);
  			iVar6 = 5;
  			iVar7 = 0;
  			bVar0 = true;
  			iVar8 = 0;
  			break;
  		
  		case 16:
  			StringCopy(&Var2, "NO_LABEL", 16);
  			iVar6 = 6;
  			iVar7 = 0;
  			bVar0 = true;
  			iVar8 = 0;
  			break;
  		
  		case 17:
  			StringCopy(&Var2, "NO_LABEL", 16);
  			iVar6 = 7;
  			iVar7 = 0;
  			bVar0 = true;
  			iVar8 = 0;
  			break;
  		
  		case 18:
  			StringCopy(&Var2, "NO_LABEL", 16);
  			iVar6 = 8;
  			iVar7 = 0;
  			bVar0 = true;
  			iVar8 = 0;
  			break;
  		
  		case 19:
  			StringCopy(&Var2, "NO_LABEL", 16);
  			iVar6 = 9;
  			iVar7 = 0;
  			bVar0 = true;
  			iVar8 = 0;
  			break;
  		
  		case 20:
  			StringCopy(&Var2, "NO_LABEL", 16);
  			iVar6 = 10;
  			iVar7 = 0;
  			bVar0 = true;
  			iVar8 = 0;
  			break;
  		
  		case 21:
  			StringCopy(&Var2, "NO_LABEL", 16);
  			iVar6 = 11;
  			iVar7 = 0;
  			iVar8 = 0;
  			break;
  		
  		case 22:
  			StringCopy(&Var2, "NO_LABEL", 16);
  			iVar6 = 11;
  			iVar7 = 1;
  			iVar8 = 0;
  			break;
  		
  		case 23:
  			StringCopy(&Var2, "NO_LABEL", 16);
  			iVar6 = 11;
  			iVar7 = 2;
  			iVar8 = 0;
  			break;
  		
  		case 24:
  			StringCopy(&Var2, "NO_LABEL", 16);
  			iVar6 = 11;
  			iVar7 = 3;
  			iVar8 = 0;
  			break;
  		
  		case 25:
  			StringCopy(&Var2, "NO_LABEL", 16);
  			iVar6 = 11;
  			iVar7 = 4;
  			iVar8 = 0;
  			break;
  		
  		case 26:
  			StringCopy(&Var2, "NO_LABEL", 16);
  			iVar6 = 11;
  			iVar7 = 5;
  			iVar8 = 0;
  			break;
  		
  		case 27:
  			StringCopy(&Var2, "NO_LABEL", 16);
  			iVar6 = 11;
  			iVar7 = 6;
  			iVar8 = 0;
  			break;
  		
  		case 28:
  			StringCopy(&Var2, "NO_LABEL", 16);
  			iVar6 = 11;
  			iVar7 = 7;
  			iVar8 = 0;
  			break;
  		
  		case 29:
  			StringCopy(&Var2, "PROPS_P0_H12", 16);
  			iVar6 = 12;
  			iVar7 = 0;
  			iVar8 = 0;
  			break;
  		
  		case 30:
  			StringCopy(&Var2, "NO_LABEL", 16);
  			iVar6 = 13;
  			iVar7 = 0;
  			iVar8 = 0;
  			break;
  		
  		case 31:
  			StringCopy(&Var2, "PROPS_P1_H8_0", 16);
  			iVar6 = 14;
  			iVar7 = 0;
  			iVar1 = 270;
  			iVar8 = 0;
  			break;
  		
  		case 32:
  			StringCopy(&Var2, "PROPS_P1_H8_1", 16);
  			iVar6 = 14;
  			iVar7 = 1;
  			iVar1 = 270;
  			iVar8 = 0;
  			break;
  		
  		case 33:
  			StringCopy(&Var2, "PROPS_P1_H9_0", 16);
  			iVar6 = 15;
  			iVar7 = 0;
  			iVar1 = 200;
  			iVar8 = 0;
  			break;
  		
  		case 34:
  			StringCopy(&Var2, "PROPS_P1_H9_1", 16);
  			iVar6 = 15;
  			iVar7 = 1;
  			iVar1 = 200;
  			iVar8 = 0;
  			break;
  		
  		case 35:
  			StringCopy(&Var2, "PROPS_P1_H10_0", 16);
  			iVar6 = 16;
  			iVar7 = 0;
  			iVar1 = 350;
  			iVar8 = 0;
  			break;
  		
  		case 36:
  			StringCopy(&Var2, "PROPS_P1_H10_1", 16);
  			iVar6 = 16;
  			iVar7 = 1;
  			iVar1 = 350;
  			iVar8 = 0;
  			break;
  		
  		case 37:
  			StringCopy(&Var2, "PROPS_P1_H11_0", 16);
  			iVar6 = 17;
  			iVar7 = 0;
  			iVar1 = 450;
  			iVar8 = 0;
  			break;
  		
  		case 38:
  			StringCopy(&Var2, "PROPS_P1_H12_0", 16);
  			iVar6 = 18;
  			iVar7 = 0;
  			iVar1 = 500;
  			iVar8 = 0;
  			break;
  		
  		case 39:
  			StringCopy(&Var2, "PROPS_P1_H12_1", 16);
  			iVar6 = 18;
  			iVar7 = 1;
  			iVar1 = 500;
  			iVar8 = 0;
  			break;
  		
  		case 40:
  			StringCopy(&Var2, "PROPS_P1_H13_0", 16);
  			iVar6 = 19;
  			iVar7 = 0;
  			iVar1 = 50;
  			iVar8 = 0;
  			break;
  		
  		case 41:
  			StringCopy(&Var2, "PROPS_P1_H13_1", 16);
  			iVar6 = 19;
  			iVar7 = 1;
  			iVar1 = 50;
  			iVar8 = 0;
  			break;
  		
  		case 42:
  			StringCopy(&Var2, "PROPS_P1_H14_0", 16);
  			iVar6 = 20;
  			iVar7 = 0;
  			iVar1 = 99;
  			iVar8 = 0;
  			break;
  		
  		case 43:
  			StringCopy(&Var2, "PROPS_P1_H14_1", 16);
  			iVar6 = 20;
  			iVar7 = 1;
  			iVar1 = 99;
  			iVar8 = 0;
  			break;
  		
  		case 44:
  			StringCopy(&Var2, "PROPS_P1_H14_2", 16);
  			iVar6 = 20;
  			iVar7 = 2;
  			iVar1 = 99;
  			iVar8 = 0;
  			break;
  		
  		case 45:
  			StringCopy(&Var2, "NO_LABEL", 16);
  			iVar6 = 21;
  			iVar7 = 0;
  			iVar8 = 0;
  			break;
  		
  		case 46:
  			StringCopy(&Var2, "NO_LABEL", 16);
  			iVar6 = 22;
  			iVar7 = 0;
  			iVar8 = 0;
  			break;
  		
  		case 47:
  			StringCopy(&Var2, "NO_LABEL", 16);
  			iVar6 = 23;
  			iVar7 = 0;
  			iVar8 = 0;
  			break;
  		
  		case 48:
  			StringCopy(&Var2, "NO_LABEL", 16);
  			iVar6 = 23;
  			iVar7 = 1;
  			iVar8 = 0;
  			break;
  		
  		case 49:
  			StringCopy(&Var2, "NO_LABEL", 16);
  			iVar6 = 23;
  			iVar7 = 2;
  			iVar8 = 0;
  			break;
  		
  		case 50:
  			StringCopy(&Var2, "NO_LABEL", 16);
  			iVar6 = 23;
  			iVar7 = 3;
  			iVar8 = 0;
  			break;
  		
  		case 51:
  			StringCopy(&Var2, "NO_LABEL", 16);
  			iVar6 = 23;
  			iVar7 = 4;
  			iVar8 = 0;
  			break;
  		
  		case 52:
  			StringCopy(&Var2, "NO_LABEL", 16);
  			iVar6 = 23;
  			iVar7 = 5;
  			iVar8 = 0;
  			break;
  		
  		case 53:
  			StringCopy(&Var2, "NO_LABEL", 16);
  			iVar6 = 24;
  			iVar7 = 0;
  			iVar8 = 0;
  			break;
  		
  		case 54:
  			StringCopy(&Var2, "NO_LABEL", 16);
  			iVar6 = 25;
  			iVar7 = 0;
  			iVar8 = 0;
  			break;
  		
  		case 55:
  			StringCopy(&Var2, "NO_LABEL", 16);
  			iVar6 = 26;
  			iVar7 = 0;
  			iVar8 = 0;
  			break;
  		
  		case 56:
  			StringCopy(&Var2, "NO_LABEL", 16);
  			iVar6 = 27;
  			iVar7 = 0;
  			iVar8 = 0;
  			break;
  		
  		case 57:
  			StringCopy(&Var2, "NO_LABEL", 16);
  			iVar6 = 28;
  			iVar7 = 0;
  			iVar8 = 0;
  			break;
  		
  		case 58:
  			StringCopy(&Var2, "PROPS_P0_E0", 16);
  			iVar6 = 0;
  			iVar7 = 0;
  			iVar1 = 45;
  			iVar8 = 10;
  			break;
  		
  		case 59:
  			StringCopy(&Var2, "NO_LABEL", 16);
  			iVar6 = 1;
  			iVar7 = 0;
  			bVar0 = true;
  			iVar8 = 10;
  			break;
  		
  		case 60:
  			StringCopy(&Var2, "NO_LABEL", 16);
  			iVar6 = 2;
  			iVar7 = 0;
  			bVar0 = true;
  			iVar8 = 10;
  			break;
  		
  		case 61:
  			StringCopy(&Var2, "PROPS_P0_E3", 16);
  			iVar6 = 3;
  			iVar7 = 0;
  			iVar1 = 55;
  			iVar8 = 10;
  			break;
  		
  		case 62:
  			StringCopy(&Var2, "PROPS_P0_E4", 16);
  			iVar6 = 4;
  			iVar7 = 0;
  			iVar1 = 58;
  			iVar8 = 10;
  			break;
  		
  		case 63:
  			StringCopy(&Var2, "PROPS_P0_E4_1", 16);
  			iVar6 = 4;
  			iVar7 = 1;
  			iVar1 = 56;
  			iVar8 = 10;
  			break;
  		
  		case 64:
  			StringCopy(&Var2, "PROPS_P0_E4_2", 16);
  			iVar6 = 4;
  			iVar7 = 2;
  			iVar1 = 60;
  			iVar8 = 10;
  			break;
  		
  		case 65:
  			StringCopy(&Var2, "PROPS_P0_E4_3", 16);
  			iVar6 = 4;
  			iVar7 = 3;
  			iVar1 = 65;
  			iVar8 = 10;
  			break;
  		
  		case 66:
  			StringCopy(&Var2, "PROPS_P0_E4_4", 16);
  			iVar6 = 4;
  			iVar7 = 4;
  			iVar1 = 62;
  			iVar8 = 10;
  			break;
  		
  		case 67:
  			StringCopy(&Var2, "PROPS_P0_E4_5", 16);
  			iVar6 = 4;
  			iVar7 = 5;
  			iVar1 = 65;
  			iVar8 = 10;
  			break;
  		
  		case 68:
  			StringCopy(&Var2, "PROPS_P0_E4_6", 16);
  			iVar6 = 4;
  			iVar7 = 6;
  			iVar1 = 68;
  			iVar8 = 10;
  			break;
  		
  		case 69:
  			StringCopy(&Var2, "PROPS_P0_E4_7", 16);
  			iVar6 = 4;
  			iVar7 = 7;
  			iVar1 = 68;
  			iVar8 = 10;
  			break;
  		
  		case 70:
  			StringCopy(&Var2, "PROPS_P0_E5", 16);
  			iVar6 = 5;
  			iVar7 = 0;
  			iVar1 = 65;
  			iVar8 = 10;
  			break;
  		
  		case 71:
  			StringCopy(&Var2, "PROPS_P0_E5_1", 16);
  			iVar6 = 5;
  			iVar7 = 1;
  			iVar1 = 69;
  			iVar8 = 10;
  			break;
  		
  		case 72:
  			StringCopy(&Var2, "PROPS_P0_E5_2", 16);
  			iVar6 = 5;
  			iVar7 = 2;
  			iVar1 = 72;
  			iVar8 = 10;
  			break;
  		
  		case 73:
  			StringCopy(&Var2, "PROPS_P0_E5_3", 16);
  			iVar6 = 5;
  			iVar7 = 3;
  			iVar1 = 70;
  			iVar8 = 10;
  			break;
  		
  		case 74:
  			StringCopy(&Var2, "PROPS_P0_E5_4", 16);
  			iVar6 = 5;
  			iVar7 = 4;
  			iVar1 = 74;
  			iVar8 = 10;
  			break;
  		
  		case 75:
  			StringCopy(&Var2, "PROPS_P0_E5_5", 16);
  			iVar6 = 5;
  			iVar7 = 5;
  			iVar1 = 78;
  			iVar8 = 10;
  			break;
  		
  		case 76:
  			StringCopy(&Var2, "PROPS_P0_E5_6", 16);
  			iVar6 = 5;
  			iVar7 = 6;
  			iVar1 = 82;
  			iVar8 = 10;
  			break;
  		
  		case 77:
  			StringCopy(&Var2, "PROPS_P0_E5_7", 16);
  			iVar6 = 5;
  			iVar7 = 7;
  			iVar1 = 85;
  			iVar8 = 10;
  			break;
  		
  		case 78:
  			StringCopy(&Var2, "PROPS_P0_E5_8", 16);
  			iVar6 = 5;
  			iVar7 = 8;
  			iVar1 = 85;
  			iVar8 = 10;
  			break;
  		
  		case joaat("mpsv_lp0_31"):
  			StringCopy(&Var2, "PROPS_P0_E5_9", 16);
  			iVar6 = 5;
  			iVar7 = 9;
  			iVar8 = 10;
  			break;
  		
  		case 80:
  			StringCopy(&Var2, "PROPS_P0_E6", 16);
  			iVar6 = 6;
  			iVar7 = 0;
  			iVar1 = 69;
  			iVar8 = 10;
  			break;
  		
  		case 81:
  			StringCopy(&Var2, "PROPS_P0_E6_1", 16);
  			iVar6 = 6;
  			iVar7 = 1;
  			iVar1 = 69;
  			iVar8 = 10;
  			break;
  		
  		case 82:
  			StringCopy(&Var2, "PROPS_P0_E6_2", 16);
  			iVar6 = 6;
  			iVar7 = 2;
  			iVar1 = 69;
  			iVar8 = 10;
  			break;
  		
  		case 83:
  			StringCopy(&Var2, "PROPS_P0_E6_3", 16);
  			iVar6 = 6;
  			iVar7 = 3;
  			iVar1 = 69;
  			iVar8 = 10;
  			break;
  		
  		case 84:
  			StringCopy(&Var2, "PROPS_P0_E6_4", 16);
  			iVar6 = 6;
  			iVar7 = 4;
  			iVar1 = 69;
  			iVar8 = 10;
  			break;
  		
  		case 85:
  			StringCopy(&Var2, "PROPS_P0_E6_5", 16);
  			iVar6 = 6;
  			iVar7 = 5;
  			iVar1 = 69;
  			iVar8 = 10;
  			break;
  		
  		case 86:
  			StringCopy(&Var2, "PROPS_P0_E6_6", 16);
  			iVar6 = 6;
  			iVar7 = 6;
  			iVar1 = 69;
  			iVar8 = 10;
  			break;
  		
  		case 87:
  			StringCopy(&Var2, "PROPS_P0_E6_7", 16);
  			iVar6 = 6;
  			iVar7 = 7;
  			iVar1 = 69;
  			iVar8 = 10;
  			break;
  		
  		case 88:
  			StringCopy(&Var2, "PROPS_P0_E6_8", 16);
  			iVar6 = 6;
  			iVar7 = 8;
  			iVar1 = 69;
  			iVar8 = 10;
  			break;
  		
  		case 89:
  			StringCopy(&Var2, "PROPS_P0_E6_9", 16);
  			iVar6 = 6;
  			iVar7 = 9;
  			iVar1 = 69;
  			iVar8 = 10;
  			break;
  		
  		case 90:
  			StringCopy(&Var2, "PROPS_P0_E7", 16);
  			iVar6 = 7;
  			iVar7 = 0;
  			iVar8 = 10;
  			break;
  		
  		case 91:
  			StringCopy(&Var2, "PROPS_P0_E8", 16);
  			iVar6 = 8;
  			iVar7 = 0;
  			iVar1 = 170;
  			iVar8 = 10;
  			break;
  		
  		case 92:
  			StringCopy(&Var2, "PROPS_P0_E8_1", 16);
  			iVar6 = 8;
  			iVar7 = 1;
  			iVar1 = 175;
  			iVar8 = 10;
  			break;
  		
  		case 93:
  			StringCopy(&Var2, "PROPS_P0_E8_2", 16);
  			iVar6 = 8;
  			iVar7 = 2;
  			iVar1 = 180;
  			iVar8 = 10;
  			break;
  		
  		case 94:
  			StringCopy(&Var2, "PROPS_P0_E8_3", 16);
  			iVar6 = 8;
  			iVar7 = 3;
  			iVar1 = 185;
  			iVar8 = 10;
  			break;
  		
  		case 95:
  			StringCopy(&Var2, "PROPS_P0_E8_4", 16);
  			iVar6 = 8;
  			iVar7 = 4;
  			iVar1 = 189;
  			iVar8 = 10;
  			break;
  		
  		case 96:
  			StringCopy(&Var2, "PROPS_P0_E8_5", 16);
  			iVar6 = 8;
  			iVar7 = 5;
  			iVar1 = 195;
  			iVar8 = 10;
  			break;
  		
  		case 97:
  			StringCopy(&Var2, "PROPS_P0_E8_6", 16);
  			iVar6 = 8;
  			iVar7 = 6;
  			iVar1 = 235;
  			iVar8 = 10;
  			break;
  		
  		case 98:
  			StringCopy(&Var2, "PROPS_P0_E8_7", 16);
  			iVar6 = 8;
  			iVar7 = 7;
  			iVar1 = 245;
  			iVar8 = 10;
  			break;
  		
  		case 99:
  			StringCopy(&Var2, "PROPS_P0_E8_8", 16);
  			iVar6 = 8;
  			iVar7 = 8;
  			iVar1 = 250;
  			iVar8 = 10;
  			break;
  		
  		case 100:
  			StringCopy(&Var2, "PROPS_P0_E8_9", 16);
  			iVar6 = 8;
  			iVar7 = 9;
  			iVar1 = 275;
  			iVar8 = 10;
  			break;
  		
  		case 101:
  			StringCopy(&Var2, "PROPS_P0_E8_10", 16);
  			iVar6 = 8;
  			iVar7 = 10;
  			iVar1 = 280;
  			iVar8 = 10;
  			break;
  		
  		case 102:
  			StringCopy(&Var2, "PROPS_P0_E8_11", 16);
  			iVar6 = 8;
  			iVar7 = 11;
  			iVar1 = 295;
  			iVar8 = 10;
  			break;
  		
  		case 103:
  			StringCopy(&Var2, "PROPS_P0_E9", 16);
  			iVar6 = 9;
  			iVar7 = 0;
  			iVar1 = 179;
  			iVar8 = 10;
  			break;
  		
  		case 104:
  			StringCopy(&Var2, "PROPS_P0_E9_1", 16);
  			iVar6 = 9;
  			iVar7 = 1;
  			iVar1 = 159;
  			iVar8 = 10;
  			break;
  		
  		case 105:
  			StringCopy(&Var2, "PROPS_P0_E9_2", 16);
  			iVar6 = 9;
  			iVar7 = 2;
  			iVar1 = 165;
  			iVar8 = 10;
  			break;
  		
  		case 106:
  			StringCopy(&Var2, "PROPS_P0_E9_3", 16);
  			iVar6 = 9;
  			iVar7 = 3;
  			iVar1 = 155;
  			iVar8 = 10;
  			break;
  		
  		case 107:
  			StringCopy(&Var2, "PROPS_P0_E9_4", 16);
  			iVar6 = 9;
  			iVar7 = 4;
  			iVar1 = 175;
  			iVar8 = 10;
  			break;
  		
  		case 108:
  			StringCopy(&Var2, "PROPS_P0_E9_5", 16);
  			iVar6 = 9;
  			iVar7 = 5;
  			iVar1 = 185;
  			iVar8 = 10;
  			break;
  		
  		case 109:
  			StringCopy(&Var2, "PROPS_P0_E9_6", 16);
  			iVar6 = 9;
  			iVar7 = 6;
  			iVar1 = 189;
  			iVar8 = 10;
  			break;
  		
  		case 110:
  			StringCopy(&Var2, "PROPS_P0_E9_7", 16);
  			iVar6 = 9;
  			iVar7 = 7;
  			iVar1 = 225;
  			iVar8 = 10;
  			break;
  		
  		case 111:
  			StringCopy(&Var2, "NO_LABEL", 16);
  			iVar6 = 10;
  			iVar7 = 0;
  			iVar1 = 100;
  			iVar8 = 10;
  			break;
  		
  		case 112:
  			StringCopy(&Var2, "NO_LABEL", 16);
  			iVar6 = 0;
  			iVar7 = 0;
  			bVar0 = true;
  			iVar8 = 2;
  			break;
  		
  		default:
  			func_269(iVar10, iParam0, 113, -1);
  			return;
  			break;
  	}
  	func_263(&(Global_77669[0 /*14*/]), iVar10, iParam0, &Var2, iVar6, iVar7, iVar1, bVar0, iVar8, iVar9, 0);
  }
  
  void func_307(int iParam0)
  {
  	bool bVar0;
  	int iVar1;
  	struct<2> Var2;
  	int iVar6;
  	int iVar7;
  	int iVar8;
  	int iVar9;
  	int iVar10;
  	
  	bVar0 = false;
  	iVar1 = 10;
  	iVar6 = 0;
  	iVar7 = 0;
  	iVar8 = -1;
  	iVar9 = 2;
  	iVar10 = 13;
  	Global_77669[0 /*14*/].f_5 = 0;
  	switch (iParam0)
  	{
  		case 31:
  			StringCopy(&Var2, "NO_LABEL", 16);
  			iVar6 = 0;
  			iVar7 = 0;
  			break;
  		
  		case 0:
  			StringCopy(&Var2, "NO_LABEL", 16);
  			iVar6 = 0;
  			iVar7 = 0;
  			bVar0 = true;
  			break;
  		
  		case 1:
  			StringCopy(&Var2, "NO_LABEL", 16);
  			iVar6 = 0;
  			iVar7 = 0;
  			bVar0 = true;
  			break;
  		
  		case 2:
  			StringCopy(&Var2, "NO_LABEL", 16);
  			iVar6 = 0;
  			iVar7 = 0;
  			bVar0 = true;
  			break;
  		
  		case 3:
  			StringCopy(&Var2, "NO_LABEL", 16);
  			iVar6 = 0;
  			iVar7 = 0;
  			bVar0 = true;
  			break;
  		
  		case 4:
  			StringCopy(&Var2, "NO_LABEL", 16);
  			iVar6 = 0;
  			iVar7 = 0;
  			bVar0 = true;
  			break;
  		
  		case 5:
  			StringCopy(&Var2, "NO_LABEL", 16);
  			iVar6 = 0;
  			iVar7 = 0;
  			bVar0 = true;
  			break;
  		
  		case 6:
  			StringCopy(&Var2, "NO_LABEL", 16);
  			iVar6 = 0;
  			iVar7 = 0;
  			bVar0 = true;
  			break;
  		
  		case 7:
  			StringCopy(&Var2, "NO_LABEL", 16);
  			iVar6 = 0;
  			iVar7 = 0;
  			bVar0 = true;
  			break;
  		
  		case 8:
  			StringCopy(&Var2, "NO_LABEL", 16);
  			iVar6 = 0;
  			iVar7 = 0;
  			bVar0 = true;
  			break;
  		
  		case 9:
  			StringCopy(&Var2, "NO_LABEL", 16);
  			iVar6 = 0;
  			iVar7 = 0;
  			bVar0 = true;
  			break;
  		
  		default:
  			func_269(iVar10, iParam0, 10, -1);
  			return;
  			break;
  	}
  	func_263(&(Global_77669[0 /*14*/]), iVar10, iParam0, &Var2, iVar6, iVar7, iVar1, bVar0, iVar8, iVar9, 0);
  }
  
  void func_308(int iParam0)
  {
  	bool bVar0;
  	int iVar1;
  	struct<2> Var2;
  	int iVar6;
  	int iVar7;
  	int iVar8;
  	int iVar9;
  	int iVar10;
  	
  	bVar0 = false;
  	iVar1 = 10;
  	iVar6 = 0;
  	iVar7 = 0;
  	iVar8 = -1;
  	iVar9 = 2;
  	iVar10 = 12;
  	Global_77669[0 /*14*/].f_5 = 0;
  	switch (iParam0)
  	{
  		case 0:
  			StringCopy(&Var2, "OUTFIT_P0_0", 16);
  			iVar6 = 0;
  			iVar7 = 0;
  			bVar0 = true;
  			break;
  		
  		case 1:
  			StringCopy(&Var2, "OUTFIT_P0_1", 16);
  			iVar6 = 0;
  			iVar7 = 0;
  			break;
  		
  		case 2:
  			StringCopy(&Var2, "NO_LABEL", 16);
  			iVar6 = 0;
  			iVar7 = 0;
  			break;
  		
  		case 3:
  			StringCopy(&Var2, "OUTFIT_P0_4", 16);
  			iVar6 = 0;
  			iVar7 = 0;
  			break;
  		
  		case 4:
  			StringCopy(&Var2, "OUTFIT_P0_7", 16);
  			iVar6 = 0;
  			iVar7 = 0;
  			break;
  		
  		case 5:
  			StringCopy(&Var2, "OUTFIT_P0_8", 16);
  			iVar6 = 0;
  			iVar7 = 0;
  			break;
  		
  		case 6:
  			StringCopy(&Var2, "OUTFIT_P0_9", 16);
  			iVar6 = 0;
  			iVar7 = 0;
  			break;
  		
  		case 7:
  			StringCopy(&Var2, "NO_LABEL", 16);
  			iVar6 = 0;
  			iVar7 = 0;
  			break;
  		
  		case 8:
  			StringCopy(&Var2, "OUTFIT_P0_11", 16);
  			iVar6 = 0;
  			iVar7 = 0;
  			break;
  		
  		case 9:
  			StringCopy(&Var2, "OUTFIT_P0_12", 16);
  			iVar6 = 0;
  			iVar7 = 0;
  			break;
  		
  		case 10:
  			StringCopy(&Var2, "NO_LABEL", 16);
  			iVar6 = 0;
  			iVar7 = 0;
  			break;
  		
  		case 11:
  			StringCopy(&Var2, "OUTFIT_P0_14", 16);
  			iVar6 = 0;
  			iVar7 = 0;
  			break;
  		
  		case 12:
  			StringCopy(&Var2, "OUTFIT_P0_17", 16);
  			iVar6 = 0;
  			iVar7 = 0;
  			break;
  		
  		case 13:
  			StringCopy(&Var2, "OUTFIT_P0_18", 16);
  			iVar6 = 0;
  			iVar7 = 0;
  			break;
  		
  		case 14:
  			StringCopy(&Var2, "OUTFIT_P0_19", 16);
  			iVar6 = 0;
  			iVar7 = 0;
  			break;
  		
  		case 15:
  			StringCopy(&Var2, "OUTFIT_P0_20", 16);
  			iVar6 = 0;
  			iVar7 = 0;
  			break;
  		
  		case 16:
  			StringCopy(&Var2, "OUTFIT_P0_22", 16);
  			iVar6 = 0;
  			iVar7 = 0;
  			iVar1 = 10000;
  			break;
  		
  		case 17:
  			StringCopy(&Var2, "OUTFIT_P0_23", 16);
  			iVar6 = 0;
  			iVar7 = 0;
  			break;
  		
  		case 18:
  			StringCopy(&Var2, "OUTFIT_P0_24", 16);
  			iVar6 = 0;
  			iVar7 = 0;
  			break;
  		
  		case 19:
  			StringCopy(&Var2, "OUTFIT_P0_26", 16);
  			iVar6 = 0;
  			iVar7 = 0;
  			break;
  		
  		case 20:
  			StringCopy(&Var2, "OUTFIT_P0_28", 16);
  			iVar6 = 0;
  			iVar7 = 0;
  			iVar1 = 105;
  			break;
  		
  		case 21:
  			StringCopy(&Var2, "OUTFIT_P0_29", 16);
  			iVar6 = 0;
  			iVar7 = 0;
  			iVar1 = 105;
  			break;
  		
  		case 22:
  			StringCopy(&Var2, "OUTFIT_P0_30", 16);
  			iVar6 = 0;
  			iVar7 = 0;
  			iVar1 = 105;
  			break;
  		
  		case 23:
  			StringCopy(&Var2, "OUTFIT_P0_31", 16);
  			iVar6 = 0;
  			iVar7 = 0;
  			break;
  		
  		case 24:
  			StringCopy(&Var2, "OUTFIT_P0_32", 16);
  			iVar6 = 0;
  			iVar7 = 0;
  			break;
  		
  		case 25:
  			StringCopy(&Var2, "OUTFIT_P0_33", 16);
  			iVar6 = 0;
  			iVar7 = 0;
  			break;
  		
  		case 26:
  			StringCopy(&Var2, "OUTFIT_P0_34", 16);
  			iVar6 = 0;
  			iVar7 = 0;
  			break;
  		
  		case 27:
  			StringCopy(&Var2, "OUTFIT_P0_35", 16);
  			iVar6 = 0;
  			iVar7 = 0;
  			break;
  		
  		case 28:
  			StringCopy(&Var2, "OUTFIT_P0_11", 16);
  			iVar6 = 0;
  			iVar7 = 0;
  			break;
  		
  		case 29:
  			StringCopy(&Var2, "OUTFIT_P0_36", 16);
  			iVar6 = 0;
  			iVar7 = 0;
  			iVar1 = 4900;
  			break;
  		
  		case 30:
  			StringCopy(&Var2, "OUTFIT_P0_37", 16);
  			iVar6 = 0;
  			iVar7 = 0;
  			iVar1 = 840;
  			break;
  		
  		case 31:
  			StringCopy(&Var2, "OUTFIT_P0_38", 16);
  			iVar6 = 0;
  			iVar7 = 0;
  			break;
  		
  		case 32:
  			StringCopy(&Var2, "OUTFIT_P0_39", 16);
  			iVar6 = 0;
  			iVar7 = 0;
  			break;
  		
  		case 33:
  			StringCopy(&Var2, "OUTFIT_P0_40", 16);
  			iVar6 = 0;
  			iVar7 = 0;
  			break;
  		
  		case 34:
  			StringCopy(&Var2, "OUTFIT_P0_41", 16);
  			iVar6 = 0;
  			iVar7 = 0;
  			break;
  		
  		case 35:
  			StringCopy(&Var2, "OUTFIT_P0_42", 16);
  			iVar6 = 0;
  			iVar7 = 0;
  			break;
  		
  		case 36:
  			StringCopy(&Var2, "OUTFIT_P0_43", 16);
  			iVar6 = 0;
  			iVar7 = 0;
  			break;
  		
  		case 37:
  			StringCopy(&Var2, "OUTFIT_P0_44", 16);
  			iVar6 = 0;
  			iVar7 = 0;
  			iVar1 = 3900;
  			break;
  		
  		case 38:
  			StringCopy(&Var2, "OUTFIT_P0_45", 16);
  			iVar6 = 0;
  			iVar7 = 0;
  			iVar1 = 4000;
  			break;
  		
  		case 39:
  			StringCopy(&Var2, "OUTFIT_P0_46", 16);
  			iVar6 = 0;
  			iVar7 = 0;
  			iVar1 = 5900;
  			break;
  		
  		case 40:
  			StringCopy(&Var2, "OUTFIT_P0_47", 16);
  			iVar6 = 0;
  			iVar7 = 0;
  			iVar1 = 4600;
  			break;
  		
  		case 41:
  			StringCopy(&Var2, "OUTFIT_P0_48", 16);
  			iVar6 = 0;
  			iVar7 = 0;
  			iVar1 = 5500;
  			break;
  		
  		case 42:
  			StringCopy(&Var2, "OUTFIT_P0_49", 16);
  			iVar6 = 0;
  			iVar7 = 0;
  			iVar1 = 4400;
  			break;
  		
  		case 43:
  			StringCopy(&Var2, "OUTFIT_P0_50", 16);
  			iVar6 = 0;
  			iVar7 = 0;
  			iVar1 = 4400;
  			break;
  		
  		case 44:
  			StringCopy(&Var2, "OUTFIT_P0_51", 16);
  			iVar6 = 0;
  			iVar7 = 0;
  			iVar1 = 4900;
  			break;
  		
  		case 45:
  			StringCopy(&Var2, "OUTFIT_P0_52", 16);
  			iVar6 = 0;
  			iVar7 = 0;
  			iVar1 = 5500;
  			break;
  		
  		case 46:
  			StringCopy(&Var2, "OUTFIT_P0_53", 16);
  			iVar6 = 0;
  			iVar7 = 0;
  			iVar1 = 4500;
  			break;
  		
  		case 47:
  			StringCopy(&Var2, "OUTFIT_P0_54", 16);
  			iVar6 = 0;
  			iVar7 = 0;
  			iVar1 = 5900;
  			break;
  		
  		case 48:
  			StringCopy(&Var2, "OUTFIT_P0_55", 16);
  			iVar6 = 0;
  			iVar7 = 0;
  			break;
  		
  		case 49:
  			StringCopy(&Var2, "OUTFIT_P0_17", 16);
  			iVar6 = 0;
  			iVar7 = 0;
  			break;
  		
  		case 50:
  			StringCopy(&Var2, "NO_LABEL", 16);
  			iVar6 = 0;
  			iVar7 = 0;
  			break;
  		
  		case 51:
  			StringCopy(&Var2, "NO_LABEL", 16);
  			iVar6 = 0;
  			iVar7 = 0;
  			break;
  		
  		case 52:
  			StringCopy(&Var2, "NO_LABEL", 16);
  			iVar6 = 0;
  			iVar7 = 0;
  			break;
  		
  		default:
  			func_269(iVar10, iParam0, 53, -1);
  			return;
  			break;
  	}
  	func_263(&(Global_77669[0 /*14*/]), iVar10, iParam0, &Var2, iVar6, iVar7, iVar1, bVar0, iVar8, iVar9, 0);
  }
  
  void func_309(int iParam0)
  {
  	bool bVar0;
  	int iVar1;
  	struct<2> Var2;
  	int iVar6;
  	int iVar7;
  	int iVar8;
  	int iVar9;
  	int iVar10;
  	
  	bVar0 = false;
  	iVar1 = 10;
  	iVar6 = 0;
  	iVar7 = 0;
  	iVar8 = -1;
  	iVar9 = 2;
  	iVar10 = 11;
  	Global_77669[0 /*14*/].f_5 = 0;
  	switch (iParam0)
  	{
  		case 0:
  			StringCopy(&Var2, "NO_LABEL", 16);
  			iVar6 = 0;
  			iVar7 = 0;
  			break;
  		
  		case 1:
  			StringCopy(&Var2, "NO_LABEL", 16);
  			iVar6 = 1;
  			iVar7 = 0;
  			break;
  		
  		case 2:
  			StringCopy(&Var2, "JBIB_P0_02_0", 16);
  			iVar6 = 2;
  			iVar7 = 0;
  			break;
  		
  		case 3:
  			StringCopy(&Var2, "JBIB_P0_02_1", 16);
  			iVar6 = 2;
  			iVar7 = 1;
  			break;
  		
  		case 4:
  			StringCopy(&Var2, "JBIB_P0_02_2", 16);
  			iVar6 = 2;
  			iVar7 = 2;
  			break;
  		
  		case 5:
  			StringCopy(&Var2, "JBIB_P0_02_3", 16);
  			iVar6 = 2;
  			iVar7 = 3;
  			break;
  		
  		case 6:
  			StringCopy(&Var2, "JBIB_P0_02_4", 16);
  			iVar6 = 2;
  			iVar7 = 4;
  			break;
  		
  		case 7:
  			StringCopy(&Var2, "JBIB_P0_02_5", 16);
  			iVar6 = 2;
  			iVar7 = 5;
  			break;
  		
  		case 8:
  			StringCopy(&Var2, "JBIB_P0_03_0", 16);
  			iVar6 = 3;
  			iVar7 = 0;
  			iVar1 = 390;
  			break;
  		
  		case 9:
  			StringCopy(&Var2, "JBIB_P0_03_1", 16);
  			iVar6 = 3;
  			iVar7 = 1;
  			iVar1 = 390;
  			break;
  		
  		case 10:
  			StringCopy(&Var2, "JBIB_P0_03_2", 16);
  			iVar6 = 3;
  			iVar7 = 2;
  			iVar1 = 420;
  			break;
  		
  		case 11:
  			StringCopy(&Var2, "JBIB_P0_03_3", 16);
  			iVar6 = 3;
  			iVar7 = 3;
  			iVar1 = 420;
  			break;
  		
  		case 12:
  			StringCopy(&Var2, "JBIB_P0_03_4", 16);
  			iVar6 = 3;
  			iVar7 = 4;
  			iVar1 = 490;
  			break;
  		
  		case 13:
  			StringCopy(&Var2, "JBIB_P0_03_5", 16);
  			iVar6 = 3;
  			iVar7 = 5;
  			iVar1 = 490;
  			break;
  		
  		case 14:
  			StringCopy(&Var2, "JBIB_P0_03_6", 16);
  			iVar6 = 3;
  			iVar7 = 6;
  			iVar1 = 540;
  			break;
  		
  		case 15:
  			StringCopy(&Var2, "JBIB_P0_03_7", 16);
  			iVar6 = 3;
  			iVar7 = 7;
  			iVar1 = 540;
  			break;
  		
  		case 16:
  			StringCopy(&Var2, "JBIB_P0_03_8", 16);
  			iVar6 = 3;
  			iVar7 = 8;
  			iVar1 = 550;
  			break;
  		
  		case 17:
  			StringCopy(&Var2, "JBIB_P0_03_9", 16);
  			iVar6 = 3;
  			iVar7 = 9;
  			iVar1 = 540;
  			break;
  		
  		case 18:
  			StringCopy(&Var2, "JBIB_P0_04_0", 16);
  			iVar6 = 4;
  			iVar7 = 0;
  			iVar1 = 850;
  			break;
  		
  		case 19:
  			StringCopy(&Var2, "JBIB_P0_04_1", 16);
  			iVar6 = 4;
  			iVar7 = 1;
  			iVar1 = 850;
  			break;
  		
  		case 20:
  			StringCopy(&Var2, "JBIB_P0_04_2", 16);
  			iVar6 = 4;
  			iVar7 = 2;
  			iVar1 = 890;
  			break;
  		
  		case 21:
  			StringCopy(&Var2, "JBIB_P0_04_3", 16);
  			iVar6 = 4;
  			iVar7 = 3;
  			iVar1 = 890;
  			break;
  		
  		case 22:
  			StringCopy(&Var2, "JBIB_P0_04_4", 16);
  			iVar6 = 4;
  			iVar7 = 4;
  			iVar1 = 920;
  			break;
  		
  		case 23:
  			StringCopy(&Var2, "JBIB_P0_04_5", 16);
  			iVar6 = 4;
  			iVar7 = 5;
  			iVar1 = 920;
  			break;
  		
  		case 24:
  			StringCopy(&Var2, "JBIB_P0_04_6", 16);
  			iVar6 = 4;
  			iVar7 = 6;
  			iVar1 = 950;
  			break;
  		
  		case 25:
  			StringCopy(&Var2, "JBIB_P0_04_7", 16);
  			iVar6 = 4;
  			iVar7 = 7;
  			iVar1 = 980;
  			break;
  		
  		case 26:
  			StringCopy(&Var2, "JBIB_P0_04_8", 16);
  			iVar6 = 4;
  			iVar7 = 8;
  			iVar1 = 1050;
  			break;
  		
  		case 27:
  			StringCopy(&Var2, "JBIB_P0_04_9", 16);
  			iVar6 = 4;
  			iVar7 = 9;
  			iVar1 = 1100;
  			break;
  		
  		case 28:
  			StringCopy(&Var2, "JBIB_P0_05_0", 16);
  			iVar6 = 5;
  			iVar7 = 0;
  			iVar1 = 1890;
  			break;
  		
  		case 29:
  			StringCopy(&Var2, "JBIB_P0_05_1", 16);
  			iVar6 = 5;
  			iVar7 = 1;
  			iVar1 = 1820;
  			break;
  		
  		case 30:
  			StringCopy(&Var2, "JBIB_P0_05_2", 16);
  			iVar6 = 5;
  			iVar7 = 2;
  			iVar1 = 1820;
  			break;
  		
  		case 31:
  			StringCopy(&Var2, "JBIB_P0_05_3", 16);
  			iVar6 = 5;
  			iVar7 = 3;
  			iVar1 = 1850;
  			break;
  		
  		case 32:
  			StringCopy(&Var2, "JBIB_P0_05_4", 16);
  			iVar6 = 5;
  			iVar7 = 4;
  			iVar1 = 1850;
  			break;
  		
  		case 33:
  			StringCopy(&Var2, "JBIB_P0_05_5", 16);
  			iVar6 = 5;
  			iVar7 = 5;
  			iVar1 = 1900;
  			break;
  		
  		case 34:
  			StringCopy(&Var2, "JBIB_P0_05_6", 16);
  			iVar6 = 5;
  			iVar7 = 6;
  			iVar1 = 1920;
  			break;
  		
  		case 35:
  			StringCopy(&Var2, "JBIB_P0_05_7", 16);
  			iVar6 = 5;
  			iVar7 = 7;
  			iVar1 = 1980;
  			break;
  		
  		case 36:
  			StringCopy(&Var2, "JBIB_P0_05_8", 16);
  			iVar6 = 5;
  			iVar7 = 8;
  			iVar1 = 2100;
  			break;
  		
  		case 37:
  			StringCopy(&Var2, "JBIB_P0_05_9", 16);
  			iVar6 = 5;
  			iVar7 = 9;
  			iVar1 = 2120;
  			break;
  		
  		case 38:
  			StringCopy(&Var2, "JBIB_P0_05_10", 16);
  			iVar6 = 5;
  			iVar7 = 10;
  			iVar1 = 2000;
  			break;
  		
  		case 39:
  			StringCopy(&Var2, "JBIB_P0_05_11", 16);
  			iVar6 = 5;
  			iVar7 = 11;
  			iVar1 = 2200;
  			break;
  		
  		case 40:
  			StringCopy(&Var2, "JBIB_P0_05_12", 16);
  			iVar6 = 5;
  			iVar7 = 12;
  			iVar1 = 2280;
  			break;
  		
  		case 41:
  			StringCopy(&Var2, "JBIB_P0_05_13", 16);
  			iVar6 = 5;
  			iVar7 = 13;
  			iVar1 = 2300;
  			break;
  		
  		case 42:
  			StringCopy(&Var2, "JBIB_P0_05_14", 16);
  			iVar6 = 5;
  			iVar7 = 14;
  			iVar1 = 2350;
  			break;
  		
  		case 43:
  			StringCopy(&Var2, "JBIB_P0_05_15", 16);
  			iVar6 = 5;
  			iVar7 = 15;
  			iVar1 = 2280;
  			break;
  		
  		case 44:
  			StringCopy(&Var2, "JBIB_P0_06_0", 16);
  			iVar6 = 6;
  			iVar7 = 0;
  			break;
  		
  		default:
  			func_269(iVar10, iParam0, 45, -1);
  			return;
  			break;
  	}
  	func_263(&(Global_77669[0 /*14*/]), iVar10, iParam0, &Var2, iVar6, iVar7, iVar1, bVar0, iVar8, iVar9, 0);
  }
  
  void func_310(int iParam0)
  {
  	bool bVar0;
  	int iVar1;
  	struct<2> Var2;
  	int iVar6;
  	int iVar7;
  	int iVar8;
  	int iVar9;
  	int iVar10;
  	
  	bVar0 = false;
  	iVar1 = 10;
  	iVar6 = 0;
  	iVar7 = 0;
  	iVar8 = -1;
  	iVar9 = 2;
  	iVar10 = 7;
  	Global_77669[0 /*14*/].f_5 = 0;
  	switch (iParam0)
  	{
  		case 0:
  			StringCopy(&Var2, "NO_LABEL", 16);
  			iVar6 = 0;
  			iVar7 = 0;
  			break;
  		
  		default:
  			func_269(iVar10, iParam0, 1, -1);
  			return;
  			break;
  	}
  	func_263(&(Global_77669[0 /*14*/]), iVar10, iParam0, &Var2, iVar6, iVar7, iVar1, bVar0, iVar8, iVar9, 0);
  }
  
  void func_311(int iParam0)
  {
  	bool bVar0;
  	int iVar1;
  	struct<2> Var2;
  	int iVar6;
  	int iVar7;
  	int iVar8;
  	int iVar9;
  	int iVar10;
  	
  	bVar0 = false;
  	iVar1 = 10;
  	iVar6 = 0;
  	iVar7 = 0;
  	iVar8 = -1;
  	iVar9 = 2;
  	iVar10 = 1;
  	Global_77669[0 /*14*/].f_5 = 0;
  	switch (iParam0)
  	{
  		case 0:
  			StringCopy(&Var2, "BERD_P0_0_0", 16);
  			iVar6 = 0;
  			iVar7 = 0;
  			break;
  		
  		case 1:
  			StringCopy(&Var2, "BERD_P0_1_0", 16);
  			iVar6 = 1;
  			iVar7 = 0;
  			break;
  		
  		case 2:
  			StringCopy(&Var2, "BERD_P0_2_0", 16);
  			iVar6 = 2;
  			iVar7 = 0;
  			break;
  		
  		case 3:
  			StringCopy(&Var2, "BERD_P0_3_0", 16);
  			iVar6 = 3;
  			iVar7 = 0;
  			break;
  		
  		case 4:
  			StringCopy(&Var2, "BERD_P0_4_0", 16);
  			iVar6 = 4;
  			iVar7 = 0;
  			break;
  		
  		default:
  			func_269(iVar10, iParam0, 5, -1);
  			return;
  			break;
  	}
  	func_263(&(Global_77669[0 /*14*/]), iVar10, iParam0, &Var2, iVar6, iVar7, iVar1, bVar0, iVar8, iVar9, 0);
  }
  
  void func_312(int iParam0)
  {
  	bool bVar0;
  	int iVar1;
  	struct<2> Var2;
  	int iVar6;
  	int iVar7;
  	int iVar8;
  	int iVar9;
  	int iVar10;
  	
  	bVar0 = false;
  	iVar1 = 10;
  	iVar6 = 0;
  	iVar7 = 0;
  	iVar8 = -1;
  	iVar9 = 2;
  	iVar10 = 10;
  	Global_77669[0 /*14*/].f_5 = 0;
  	switch (iParam0)
  	{
  		case 0:
  			StringCopy(&Var2, "NO_LABEL", 16);
  			iVar6 = 0;
  			iVar7 = 0;
  			break;
  		
  		case 1:
  			StringCopy(&Var2, "NO_LABEL", 16);
  			iVar6 = 1;
  			iVar7 = 0;
  			break;
  		
  		case 2:
  			StringCopy(&Var2, "NO_LABEL", 16);
  			iVar6 = 2;
  			iVar7 = 0;
  			break;
  		
  		case 3:
  			StringCopy(&Var2, "NO_LABEL", 16);
  			iVar6 = 3;
  			iVar7 = 0;
  			break;
  		
  		case 4:
  			StringCopy(&Var2, "NO_LABEL", 16);
  			iVar6 = 4;
  			iVar7 = 0;
  			break;
  		
  		case 5:
  			StringCopy(&Var2, "NO_LABEL", 16);
  			iVar6 = 5;
  			iVar7 = 0;
  			break;
  		
  		case 6:
  			StringCopy(&Var2, "NO_LABEL", 16);
  			iVar6 = 6;
  			iVar7 = 0;
  			break;
  		
  		case 7:
  			StringCopy(&Var2, "NO_LABEL", 16);
  			iVar6 = 7;
  			iVar7 = 0;
  			break;
  		
  		case 8:
  			StringCopy(&Var2, "NO_LABEL", 16);
  			iVar6 = 7;
  			iVar7 = 1;
  			break;
  		
  		case 9:
  			StringCopy(&Var2, "NO_LABEL", 16);
  			iVar6 = 7;
  			iVar7 = 2;
  			break;
  		
  		case 10:
  			StringCopy(&Var2, "NO_LABEL", 16);
  			iVar6 = 7;
  			iVar7 = 3;
  			break;
  		
  		case 11:
  			StringCopy(&Var2, "NO_LABEL", 16);
  			iVar6 = 7;
  			iVar7 = 4;
  			break;
  		
  		case 12:
  			StringCopy(&Var2, "NO_LABEL", 16);
  			iVar6 = 7;
  			iVar7 = 5;
  			break;
  		
  		case 13:
  			StringCopy(&Var2, "NO_LABEL", 16);
  			iVar6 = 7;
  			iVar7 = 6;
  			break;
  		
  		case 14:
  			StringCopy(&Var2, "NO_LABEL", 16);
  			iVar6 = 7;
  			iVar7 = 7;
  			break;
  		
  		case 15:
  			StringCopy(&Var2, "NO_LABEL", 16);
  			iVar6 = 8;
  			iVar7 = 0;
  			break;
  		
  		case 16:
  			StringCopy(&Var2, "NO_LABEL", 16);
  			iVar6 = 8;
  			iVar7 = 1;
  			break;
  		
  		case 17:
  			StringCopy(&Var2, "NO_LABEL", 16);
  			iVar6 = 8;
  			iVar7 = 2;
  			break;
  		
  		case 18:
  			StringCopy(&Var2, "NO_LABEL", 16);
  			iVar6 = 8;
  			iVar7 = 3;
  			break;
  		
  		case 19:
  			StringCopy(&Var2, "NO_LABEL", 16);
  			iVar6 = 8;
  			iVar7 = 4;
  			break;
  		
  		case 20:
  			StringCopy(&Var2, "NO_LABEL", 16);
  			iVar6 = 8;
  			iVar7 = 5;
  			break;
  		
  		case 21:
  			StringCopy(&Var2, "NO_LABEL", 16);
  			iVar6 = 9;
  			iVar7 = 0;
  			break;
  		
  		case 22:
  			StringCopy(&Var2, "NO_LABEL", 16);
  			iVar6 = 9;
  			iVar7 = 1;
  			break;
  		
  		case 23:
  			StringCopy(&Var2, "NO_LABEL", 16);
  			iVar6 = 9;
  			iVar7 = 2;
  			break;
  		
  		case 24:
  			StringCopy(&Var2, "NO_LABEL", 16);
  			iVar6 = 9;
  			iVar7 = 3;
  			break;
  		
  		case 25:
  			StringCopy(&Var2, "NO_LABEL", 16);
  			iVar6 = 9;
  			iVar7 = 4;
  			break;
  		
  		case 26:
  			StringCopy(&Var2, "NO_LABEL", 16);
  			iVar6 = 9;
  			iVar7 = 5;
  			break;
  		
  		case 27:
  			StringCopy(&Var2, "NO_LABEL", 16);
  			iVar6 = 9;
  			iVar7 = 6;
  			break;
  		
  		case 28:
  			StringCopy(&Var2, "NO_LABEL", 16);
  			iVar6 = 10;
  			iVar7 = 0;
  			break;
  		
  		case 29:
  			StringCopy(&Var2, "NO_LABEL", 16);
  			iVar6 = 10;
  			iVar7 = 1;
  			break;
  		
  		case 30:
  			StringCopy(&Var2, "NO_LABEL", 16);
  			iVar6 = 10;
  			iVar7 = 2;
  			break;
  		
  		case 31:
  			StringCopy(&Var2, "NO_LABEL", 16);
  			iVar6 = 10;
  			iVar7 = 3;
  			break;
  		
  		case 32:
  			StringCopy(&Var2, "NO_LABEL", 16);
  			iVar6 = 10;
  			iVar7 = 4;
  			break;
  		
  		case 33:
  			StringCopy(&Var2, "NO_LABEL", 16);
  			iVar6 = 10;
  			iVar7 = 5;
  			break;
  		
  		case 34:
  			StringCopy(&Var2, "NO_LABEL", 16);
  			iVar6 = 10;
  			iVar7 = 6;
  			break;
  		
  		case 35:
  			StringCopy(&Var2, "NO_LABEL", 16);
  			iVar6 = 10;
  			iVar7 = 7;
  			break;
  		
  		case 36:
  			StringCopy(&Var2, "DECL_P0_10_8", 16);
  			iVar6 = 10;
  			iVar7 = 8;
  			break;
  		
  		case 37:
  			StringCopy(&Var2, "DECL_P0_10_9", 16);
  			iVar6 = 10;
  			iVar7 = 9;
  			break;
  		
  		case 38:
  			StringCopy(&Var2, "DECL_P0_10_10", 16);
  			iVar6 = 10;
  			iVar7 = 10;
  			break;
  		
  		case 39:
  			StringCopy(&Var2, "DECL_P0_10_11", 16);
  			iVar6 = 10;
  			iVar7 = 11;
  			break;
  		
  		case 40:
  			StringCopy(&Var2, "DECL_P0_10_12", 16);
  			iVar6 = 10;
  			iVar7 = 12;
  			break;
  		
  		case 41:
  			StringCopy(&Var2, "DECL_P0_10_13", 16);
  			iVar6 = 10;
  			iVar7 = 13;
  			break;
  		
  		case 42:
  			StringCopy(&Var2, "DECL_P0_10_14", 16);
  			iVar6 = 10;
  			iVar7 = 14;
  			break;
  		
  		case 43:
  			StringCopy(&Var2, "DECL_P0_10_15", 16);
  			iVar6 = 10;
  			iVar7 = 15;
  			break;
  		
  		case 44:
  			StringCopy(&Var2, "NO_LABEL", 16);
  			iVar6 = 11;
  			iVar7 = 0;
  			break;
  		
  		case 45:
  			StringCopy(&Var2, "NO_LABEL", 16);
  			iVar6 = 11;
  			iVar7 = 1;
  			break;
  		
  		case 46:
  			StringCopy(&Var2, "NO_LABEL", 16);
  			iVar6 = 11;
  			iVar7 = 2;
  			break;
  		
  		case 47:
  			StringCopy(&Var2, "NO_LABEL", 16);
  			iVar6 = 11;
  			iVar7 = 3;
  			break;
  		
  		default:
  			func_269(iVar10, iParam0, 48, -1);
  			return;
  			break;
  	}
  	func_263(&(Global_77669[0 /*14*/]), iVar10, iParam0, &Var2, iVar6, iVar7, iVar1, bVar0, iVar8, iVar9, 0);
  }
  
  void func_313(int iParam0)
  {
  	bool bVar0;
  	int iVar1;
  	struct<2> Var2;
  	int iVar6;
  	int iVar7;
  	int iVar8;
  	int iVar9;
  	int iVar10;
  	
  	bVar0 = false;
  	iVar1 = 10;
  	iVar6 = 0;
  	iVar7 = 0;
  	iVar8 = -1;
  	iVar9 = 2;
  	iVar10 = 9;
  	Global_77669[0 /*14*/].f_5 = 0;
  	switch (iParam0)
  	{
  		case 0:
  			StringCopy(&Var2, "NO_LABEL", 16);
  			iVar6 = 0;
  			iVar7 = 0;
  			break;
  		
  		case 1:
  			StringCopy(&Var2, "NO_LABEL", 16);
  			iVar6 = 1;
  			iVar7 = 0;
  			break;
  		
  		case 2:
  			StringCopy(&Var2, "NO_LABEL", 16);
  			iVar6 = 1;
  			iVar7 = 1;
  			break;
  		
  		case 3:
  			StringCopy(&Var2, "NO_LABEL", 16);
  			iVar6 = 2;
  			iVar7 = 0;
  			break;
  		
  		case 4:
  			StringCopy(&Var2, "NO_LABEL", 16);
  			iVar6 = 3;
  			iVar7 = 0;
  			bVar0 = true;
  			break;
  		
  		case 5:
  			StringCopy(&Var2, "NO_LABEL", 16);
  			iVar6 = 4;
  			iVar7 = 0;
  			bVar0 = true;
  			break;
  		
  		case 6:
  			StringCopy(&Var2, "NO_LABEL", 16);
  			iVar6 = 5;
  			iVar7 = 0;
  			break;
  		
  		case 7:
  			StringCopy(&Var2, "NO_LABEL", 16);
  			iVar6 = 6;
  			iVar7 = 0;
  			bVar0 = true;
  			break;
  		
  		case 8:
  			StringCopy(&Var2, "NO_LABEL", 16);
  			iVar6 = 7;
  			iVar7 = 0;
  			bVar0 = true;
  			break;
  		
  		case 9:
  			StringCopy(&Var2, "SPEC2_P0_08_0", 16);
  			iVar6 = 8;
  			iVar7 = 0;
  			iVar1 = 125;
  			break;
  		
  		case 10:
  			StringCopy(&Var2, "SPEC2_P0_08_1", 16);
  			iVar6 = 8;
  			iVar7 = 1;
  			iVar1 = 150;
  			break;
  		
  		case 11:
  			StringCopy(&Var2, "SPEC2_P0_08_2", 16);
  			iVar6 = 8;
  			iVar7 = 2;
  			iVar1 = 175;
  			break;
  		
  		case 12:
  			StringCopy(&Var2, "SPEC2_P0_08_3", 16);
  			iVar6 = 8;
  			iVar7 = 3;
  			iVar1 = 85;
  			break;
  		
  		case 13:
  			StringCopy(&Var2, "SPEC2_P0_08_4", 16);
  			iVar6 = 8;
  			iVar7 = 4;
  			iVar1 = 150;
  			break;
  		
  		case 14:
  			StringCopy(&Var2, "SPEC2_P0_08_5", 16);
  			iVar6 = 8;
  			iVar7 = 5;
  			iVar1 = 175;
  			break;
  		
  		case 15:
  			StringCopy(&Var2, "NO_LABEL", 16);
  			iVar6 = 9;
  			iVar7 = 0;
  			bVar0 = true;
  			break;
  		
  		case 16:
  			StringCopy(&Var2, "NO_LABEL", 16);
  			iVar6 = 10;
  			iVar7 = 0;
  			bVar0 = true;
  			break;
  		
  		case 17:
  			StringCopy(&Var2, "NO_LABEL", 16);
  			iVar6 = 10;
  			iVar7 = 1;
  			bVar0 = true;
  			break;
  		
  		case 18:
  			StringCopy(&Var2, "NO_LABEL", 16);
  			iVar6 = 11;
  			iVar7 = 0;
  			bVar0 = true;
  			break;
  		
  		case 19:
  			StringCopy(&Var2, "NO_LABEL", 16);
  			iVar6 = 12;
  			iVar7 = 0;
  			bVar0 = true;
  			break;
  		
  		default:
  			func_269(iVar10, iParam0, 20, -1);
  			return;
  			break;
  	}
  	func_263(&(Global_77669[0 /*14*/]), iVar10, iParam0, &Var2, iVar6, iVar7, iVar1, bVar0, iVar8, iVar9, 0);
  }
  
  void func_314(int iParam0)
  {
  	bool bVar0;
  	int iVar1;
  	struct<2> Var2;
  	int iVar6;
  	int iVar7;
  	int iVar8;
  	int iVar9;
  	int iVar10;
  	
  	bVar0 = false;
  	iVar1 = 10;
  	iVar6 = 0;
  	iVar7 = 0;
  	iVar8 = -1;
  	iVar9 = 2;
  	iVar10 = 8;
  	Global_77669[0 /*14*/].f_5 = 0;
  	switch (iParam0)
  	{
  		case 0:
  			StringCopy(&Var2, "NO_LABEL", 16);
  			iVar6 = 0;
  			iVar7 = 0;
  			break;
  		
  		case 1:
  			StringCopy(&Var2, "NO_LABEL", 16);
  			iVar6 = 1;
  			iVar7 = 0;
  			bVar0 = true;
  			break;
  		
  		case 2:
  			StringCopy(&Var2, "NO_LABEL", 16);
  			iVar6 = 2;
  			iVar7 = 0;
  			bVar0 = true;
  			break;
  		
  		case 3:
  			StringCopy(&Var2, "NO_LABEL", 16);
  			iVar6 = 3;
  			iVar7 = 0;
  			bVar0 = true;
  			break;
  		
  		case 4:
  			StringCopy(&Var2, "NO_LABEL", 16);
  			iVar6 = 4;
  			iVar7 = 0;
  			bVar0 = true;
  			break;
  		
  		case 5:
  			StringCopy(&Var2, "NO_LABEL", 16);
  			iVar6 = 5;
  			iVar7 = 0;
  			bVar0 = true;
  			break;
  		
  		case 6:
  			StringCopy(&Var2, "NO_LABEL", 16);
  			iVar6 = 6;
  			iVar7 = 0;
  			bVar0 = true;
  			break;
  		
  		case 7:
  			StringCopy(&Var2, "NO_LABEL", 16);
  			iVar6 = 7;
  			iVar7 = 0;
  			bVar0 = true;
  			break;
  		
  		case 8:
  			StringCopy(&Var2, "NO_LABEL", 16);
  			iVar6 = 8;
  			iVar7 = 0;
  			bVar0 = true;
  			break;
  		
  		case 9:
  			StringCopy(&Var2, "NO_LABEL", 16);
  			iVar6 = 9;
  			iVar7 = 0;
  			bVar0 = true;
  			break;
  		
  		case 10:
  			StringCopy(&Var2, "SPEC_P0_10", 16);
  			iVar6 = 10;
  			iVar7 = 0;
  			break;
  		
  		case 11:
  			StringCopy(&Var2, "NO_LABEL", 16);
  			iVar6 = 11;
  			iVar7 = 0;
  			bVar0 = true;
  			break;
  		
  		case 12:
  			StringCopy(&Var2, "NO_LABEL", 16);
  			iVar6 = 12;
  			iVar7 = 0;
  			bVar0 = true;
  			break;
  		
  		case 13:
  			StringCopy(&Var2, "NO_LABEL", 16);
  			iVar6 = 13;
  			iVar7 = 0;
  			bVar0 = true;
  			break;
  		
  		case 14:
  			StringCopy(&Var2, "NO_LABEL", 16);
  			iVar6 = 14;
  			iVar7 = 0;
  			bVar0 = true;
  			break;
  		
  		case 15:
  			StringCopy(&Var2, "NO_LABEL", 16);
  			iVar6 = 15;
  			iVar7 = 0;
  			bVar0 = true;
  			break;
  		
  		case 16:
  			StringCopy(&Var2, "SPEC_P0_16", 16);
  			iVar6 = 16;
  			iVar7 = 0;
  			break;
  		
  		case 17:
  			StringCopy(&Var2, "NO_LABEL", 16);
  			iVar6 = 17;
  			iVar7 = 0;
  			bVar0 = true;
  			break;
  		
  		case 18:
  			StringCopy(&Var2, "NO_LABEL", 16);
  			iVar6 = 18;
  			iVar7 = 0;
  			bVar0 = true;
  			break;
  		
  		case 19:
  			StringCopy(&Var2, "NO_LABEL", 16);
  			iVar6 = 19;
  			iVar7 = 0;
  			bVar0 = true;
  			break;
  		
  		case 20:
  			StringCopy(&Var2, "NO_LABEL", 16);
  			iVar6 = 20;
  			iVar7 = 0;
  			bVar0 = true;
  			break;
  		
  		case 21:
  			StringCopy(&Var2, "NO_LABEL", 16);
  			iVar6 = 21;
  			iVar7 = 0;
  			bVar0 = true;
  			break;
  		
  		case 22:
  			StringCopy(&Var2, "NO_LABEL", 16);
  			iVar6 = 22;
  			iVar7 = 0;
  			bVar0 = true;
  			break;
  		
  		case 23:
  			StringCopy(&Var2, "NO_LABEL", 16);
  			iVar6 = 23;
  			iVar7 = 0;
  			bVar0 = true;
  			break;
  		
  		default:
  			func_269(iVar10, iParam0, 24, -1);
  			return;
  			break;
  	}
  	func_263(&(Global_77669[0 /*14*/]), iVar10, iParam0, &Var2, iVar6, iVar7, iVar1, bVar0, iVar8, iVar9, 0);
  }
  
  void func_315(int iParam0)
  {
  	bool bVar0;
  	int iVar1;
  	struct<2> Var2;
  	int iVar6;
  	int iVar7;
  	int iVar8;
  	int iVar9;
  	int iVar10;
  	
  	bVar0 = false;
  	iVar1 = 10;
  	iVar6 = 0;
  	iVar7 = 0;
  	iVar8 = -1;
  	iVar9 = 2;
  	iVar10 = 5;
  	Global_77669[0 /*14*/].f_5 = 0;
  	switch (iParam0)
  	{
  		case 0:
  			StringCopy(&Var2, "NO_LABEL", 16);
  			iVar6 = 0;
  			iVar7 = 0;
  			break;
  		
  		case 1:
  			StringCopy(&Var2, "NO_LABEL", 16);
  			iVar6 = 1;
  			iVar7 = 0;
  			bVar0 = true;
  			break;
  		
  		case 2:
  			StringCopy(&Var2, "NO_LABEL", 16);
  			iVar6 = 2;
  			iVar7 = 0;
  			bVar0 = true;
  			break;
  		
  		case 3:
  			StringCopy(&Var2, "NO_LABEL", 16);
  			iVar6 = 3;
  			iVar7 = 0;
  			bVar0 = true;
  			break;
  		
  		case 4:
  			StringCopy(&Var2, "NO_LABEL", 16);
  			iVar6 = 3;
  			iVar7 = 1;
  			bVar0 = true;
  			break;
  		
  		case 5:
  			StringCopy(&Var2, "NO_LABEL", 16);
  			iVar6 = 3;
  			iVar7 = 2;
  			bVar0 = true;
  			break;
  		
  		case 6:
  			StringCopy(&Var2, "NO_LABEL", 16);
  			iVar6 = 3;
  			iVar7 = 3;
  			bVar0 = true;
  			break;
  		
  		case 7:
  			StringCopy(&Var2, "NO_LABEL", 16);
  			iVar6 = 3;
  			iVar7 = 4;
  			bVar0 = true;
  			break;
  		
  		case 8:
  			StringCopy(&Var2, "NO_LABEL", 16);
  			iVar6 = 4;
  			iVar7 = 0;
  			bVar0 = true;
  			break;
  		
  		case 9:
  			StringCopy(&Var2, "NO_LABEL", 16);
  			iVar6 = 5;
  			iVar7 = 0;
  			bVar0 = true;
  			break;
  		
  		case 10:
  			StringCopy(&Var2, "NO_LABEL", 16);
  			iVar6 = 6;
  			iVar7 = 0;
  			bVar0 = true;
  			break;
  		
  		case 11:
  			StringCopy(&Var2, "NO_LABEL", 16);
  			iVar6 = 7;
  			iVar7 = 0;
  			bVar0 = true;
  			break;
  		
  		case 12:
  			StringCopy(&Var2, "NO_LABEL", 16);
  			iVar6 = 8;
  			iVar7 = 0;
  			bVar0 = true;
  			break;
  		
  		case 13:
  			StringCopy(&Var2, "NO_LABEL", 16);
  			iVar6 = 9;
  			iVar7 = 0;
  			bVar0 = true;
  			break;
  		
  		default:
  			func_269(iVar10, iParam0, 14, -1);
  			return;
  			break;
  	}
  	func_263(&(Global_77669[0 /*14*/]), iVar10, iParam0, &Var2, iVar6, iVar7, iVar1, bVar0, iVar8, iVar9, 0);
  }
  
  void func_316(int iParam0)
  {
  	bool bVar0;
  	int iVar1;
  	struct<2> Var2;
  	int iVar6;
  	int iVar7;
  	int iVar8;
  	int iVar9;
  	int iVar10;
  	
  	bVar0 = false;
  	iVar1 = 10;
  	iVar6 = 0;
  	iVar7 = 0;
  	iVar8 = -1;
  	iVar9 = 2;
  	iVar10 = 6;
  	Global_77669[0 /*14*/].f_5 = 0;
  	switch (iParam0)
  	{
  		case 0:
  			StringCopy(&Var2, "FEET_P0_0_0", 16);
  			iVar6 = 0;
  			iVar7 = 0;
  			break;
  		
  		case 1:
  			StringCopy(&Var2, "FEET_P0_0_1", 16);
  			iVar6 = 0;
  			iVar7 = 1;
  			iVar1 = 665;
  			break;
  		
  		case 2:
  			StringCopy(&Var2, "FEET_P0_0_2", 16);
  			iVar6 = 0;
  			iVar7 = 2;
  			iVar1 = 620;
  			break;
  		
  		case 3:
  			StringCopy(&Var2, "FEET_P0_0_3", 16);
  			iVar6 = 0;
  			iVar7 = 3;
  			iVar1 = 540;
  			break;
  		
  		case 4:
  			StringCopy(&Var2, "FEET_P0_0_4", 16);
  			iVar6 = 0;
  			iVar7 = 4;
  			iVar1 = 580;
  			break;
  		
  		case 5:
  			StringCopy(&Var2, "FEET_P0_0_5", 16);
  			iVar6 = 0;
  			iVar7 = 5;
  			iVar1 = 650;
  			break;
  		
  		case 6:
  			StringCopy(&Var2, "NO_LABEL", 16);
  			iVar6 = 1;
  			iVar7 = 0;
  			break;
  		
  		case 7:
  			StringCopy(&Var2, "NO_LABEL", 16);
  			iVar6 = 2;
  			iVar7 = 0;
  			break;
  		
  		case 8:
  			StringCopy(&Var2, "NO_LABEL", 16);
  			iVar6 = 3;
  			iVar7 = 0;
  			bVar0 = true;
  			break;
  		
  		case 9:
  			StringCopy(&Var2, "NO_LABEL", 16);
  			iVar6 = 4;
  			iVar7 = 0;
  			bVar0 = true;
  			break;
  		
  		case 10:
  			StringCopy(&Var2, "NO_LABEL", 16);
  			iVar6 = 5;
  			iVar7 = 0;
  			bVar0 = true;
  			break;
  		
  		case 11:
  			StringCopy(&Var2, "NO_LABEL", 16);
  			iVar6 = 6;
  			iVar7 = 0;
  			bVar0 = true;
  			break;
  		
  		case 12:
  			StringCopy(&Var2, "NO_LABEL", 16);
  			iVar6 = 7;
  			iVar7 = 0;
  			bVar0 = true;
  			break;
  		
  		case 13:
  			StringCopy(&Var2, "NO_LABEL", 16);
  			iVar6 = 8;
  			iVar7 = 0;
  			bVar0 = true;
  			break;
  		
  		case 14:
  			StringCopy(&Var2, "NO_LABEL", 16);
  			iVar6 = 9;
  			iVar7 = 0;
  			bVar0 = true;
  			break;
  		
  		case 15:
  			StringCopy(&Var2, "NO_LABEL", 16);
  			iVar6 = 10;
  			iVar7 = 0;
  			bVar0 = true;
  			break;
  		
  		case 16:
  			StringCopy(&Var2, "NO_LABEL", 16);
  			iVar6 = 11;
  			iVar7 = 0;
  			bVar0 = true;
  			break;
  		
  		case 17:
  			StringCopy(&Var2, "NO_LABEL", 16);
  			iVar6 = 12;
  			iVar7 = 0;
  			bVar0 = true;
  			break;
  		
  		case 18:
  			StringCopy(&Var2, "FEET_P0_13_0", 16);
  			iVar6 = 13;
  			iVar7 = 0;
  			break;
  		
  		case 19:
  			StringCopy(&Var2, "NO_LABEL", 16);
  			iVar6 = 14;
  			iVar7 = 0;
  			bVar0 = true;
  			break;
  		
  		case 20:
  			StringCopy(&Var2, "FEET_P0_15_0", 16);
  			iVar6 = 15;
  			iVar7 = 0;
  			break;
  		
  		case 21:
  			StringCopy(&Var2, "FEET_P0_15_1", 16);
  			iVar6 = 15;
  			iVar7 = 1;
  			iVar1 = 64;
  			break;
  		
  		case 22:
  			StringCopy(&Var2, "FEET_P0_15_2", 16);
  			iVar6 = 15;
  			iVar7 = 2;
  			iVar1 = 56;
  			break;
  		
  		case 23:
  			StringCopy(&Var2, "FEET_P0_15_3", 16);
  			iVar6 = 15;
  			iVar7 = 3;
  			iVar1 = 69;
  			break;
  		
  		case 24:
  			StringCopy(&Var2, "FEET_P0_15_4", 16);
  			iVar6 = 15;
  			iVar7 = 4;
  			iVar1 = 59;
  			break;
  		
  		case 25:
  			StringCopy(&Var2, "FEET_P0_15_5", 16);
  			iVar6 = 15;
  			iVar7 = 5;
  			iVar1 = 62;
  			break;
  		
  		case 26:
  			StringCopy(&Var2, "FEET_P0_15_6", 16);
  			iVar6 = 15;
  			iVar7 = 6;
  			iVar1 = 74;
  			break;
  		
  		case 27:
  			StringCopy(&Var2, "FEET_P0_15_7", 16);
  			iVar6 = 15;
  			iVar7 = 7;
  			iVar1 = 68;
  			break;
  		
  		case 28:
  			StringCopy(&Var2, "FEET_P0_15_8", 16);
  			iVar6 = 15;
  			iVar7 = 8;
  			iVar1 = 72;
  			break;
  		
  		case 29:
  			StringCopy(&Var2, "FEET_P0_15_9", 16);
  			iVar6 = 15;
  			iVar7 = 9;
  			iVar1 = 70;
  			break;
  		
  		case 30:
  			StringCopy(&Var2, "FEET_P0_16_0", 16);
  			iVar6 = 16;
  			iVar7 = 0;
  			iVar1 = 48;
  			break;
  		
  		case 31:
  			StringCopy(&Var2, "FEET_P0_16_1", 16);
  			iVar6 = 16;
  			iVar7 = 1;
  			iVar1 = 48;
  			break;
  		
  		case 32:
  			StringCopy(&Var2, "FEET_P0_16_2", 16);
  			iVar6 = 16;
  			iVar7 = 2;
  			iVar1 = 55;
  			break;
  		
  		case 33:
  			StringCopy(&Var2, "FEET_P0_16_3", 16);
  			iVar6 = 16;
  			iVar7 = 3;
  			iVar1 = 75;
  			break;
  		
  		case 34:
  			StringCopy(&Var2, "FEET_P0_16_4", 16);
  			iVar6 = 16;
  			iVar7 = 4;
  			iVar1 = 65;
  			break;
  		
  		case 35:
  			StringCopy(&Var2, "FEET_P0_16_5", 16);
  			iVar6 = 16;
  			iVar7 = 5;
  			iVar1 = 68;
  			break;
  		
  		case 36:
  			StringCopy(&Var2, "FEET_P0_16_6", 16);
  			iVar6 = 16;
  			iVar7 = 6;
  			iVar1 = 58;
  			break;
  		
  		case 37:
  			StringCopy(&Var2, "FEET_P0_16_7", 16);
  			iVar6 = 16;
  			iVar7 = 7;
  			iVar1 = 68;
  			break;
  		
  		case 38:
  			StringCopy(&Var2, "NO_LABEL", 16);
  			iVar6 = 17;
  			iVar7 = 0;
  			bVar0 = true;
  			break;
  		
  		case 39:
  			StringCopy(&Var2, "FEET_P0_18_0", 16);
  			iVar6 = 18;
  			iVar7 = 0;
  			iVar1 = 790;
  			break;
  		
  		case 40:
  			StringCopy(&Var2, "FEET_P0_18_1", 16);
  			iVar6 = 18;
  			iVar7 = 1;
  			iVar1 = 750;
  			break;
  		
  		case 41:
  			StringCopy(&Var2, "FEET_P0_18_2", 16);
  			iVar6 = 18;
  			iVar7 = 2;
  			iVar1 = 860;
  			break;
  		
  		case 42:
  			StringCopy(&Var2, "FEET_P0_18_3", 16);
  			iVar6 = 18;
  			iVar7 = 3;
  			iVar1 = 750;
  			break;
  		
  		case 43:
  			StringCopy(&Var2, "FEET_P0_18_4", 16);
  			iVar6 = 18;
  			iVar7 = 4;
  			iVar1 = 790;
  			break;
  		
  		case 44:
  			StringCopy(&Var2, "FEET_P0_18_5", 16);
  			iVar6 = 18;
  			iVar7 = 5;
  			iVar1 = 840;
  			break;
  		
  		case 45:
  			StringCopy(&Var2, "FEET_P0_18_6", 16);
  			iVar6 = 18;
  			iVar7 = 6;
  			iVar1 = 820;
  			break;
  		
  		case 46:
  			StringCopy(&Var2, "FEET_P0_18_7", 16);
  			iVar6 = 18;
  			iVar7 = 7;
  			iVar1 = 800;
  			break;
  		
  		case 47:
  			StringCopy(&Var2, "FEET_P0_18_8", 16);
  			iVar6 = 18;
  			iVar7 = 8;
  			iVar1 = 850;
  			break;
  		
  		case 48:
  			StringCopy(&Var2, "FEET_P0_18_9", 16);
  			iVar6 = 18;
  			iVar7 = 9;
  			iVar1 = 870;
  			break;
  		
  		case 49:
  			StringCopy(&Var2, "FEET_P0_18_10", 16);
  			iVar6 = 18;
  			iVar7 = 10;
  			iVar1 = 720;
  			break;
  		
  		case 50:
  			StringCopy(&Var2, "FEET_P0_18_11", 16);
  			iVar6 = 18;
  			iVar7 = 11;
  			iVar1 = 740;
  			break;
  		
  		case 51:
  			StringCopy(&Var2, "FEET_P0_18_12", 16);
  			iVar6 = 18;
  			iVar7 = 12;
  			iVar1 = 800;
  			break;
  		
  		case 52:
  			StringCopy(&Var2, "FEET_P0_18_13", 16);
  			iVar6 = 18;
  			iVar7 = 13;
  			iVar1 = 750;
  			break;
  		
  		case 53:
  			StringCopy(&Var2, "FEET_P0_18_14", 16);
  			iVar6 = 18;
  			iVar7 = 14;
  			iVar1 = 770;
  			break;
  		
  		case 54:
  			StringCopy(&Var2, "FEET_P0_18_15", 16);
  			iVar6 = 18;
  			iVar7 = 15;
  			iVar1 = 860;
  			break;
  		
  		case 55:
  			StringCopy(&Var2, "FEET_P0_19_0", 16);
  			iVar6 = 19;
  			iVar7 = 0;
  			iVar1 = 850;
  			break;
  		
  		case 56:
  			StringCopy(&Var2, "FEET_P0_19_1", 16);
  			iVar6 = 19;
  			iVar7 = 1;
  			iVar1 = 800;
  			break;
  		
  		case 57:
  			StringCopy(&Var2, "FEET_P0_19_2", 16);
  			iVar6 = 19;
  			iVar7 = 2;
  			iVar1 = 780;
  			break;
  		
  		case 58:
  			StringCopy(&Var2, "FEET_P0_19_3", 16);
  			iVar6 = 19;
  			iVar7 = 3;
  			iVar1 = 890;
  			break;
  		
  		case 59:
  			StringCopy(&Var2, "FEET_P0_19_4", 16);
  			iVar6 = 19;
  			iVar7 = 4;
  			iVar1 = 820;
  			break;
  		
  		case 60:
  			StringCopy(&Var2, "FEET_P0_19_5", 16);
  			iVar6 = 19;
  			iVar7 = 5;
  			iVar1 = 840;
  			break;
  		
  		case 61:
  			StringCopy(&Var2, "FEET_P0_19_6", 16);
  			iVar6 = 19;
  			iVar7 = 6;
  			iVar1 = 870;
  			break;
  		
  		case 62:
  			StringCopy(&Var2, "FEET_P0_19_7", 16);
  			iVar6 = 19;
  			iVar7 = 7;
  			iVar1 = 930;
  			break;
  		
  		case 63:
  			StringCopy(&Var2, "FEET_P0_19_8", 16);
  			iVar6 = 19;
  			iVar7 = 8;
  			iVar1 = 880;
  			break;
  		
  		case 64:
  			StringCopy(&Var2, "FEET_P0_19_9", 16);
  			iVar6 = 19;
  			iVar7 = 9;
  			iVar1 = 900;
  			break;
  		
  		case 65:
  			StringCopy(&Var2, "FEET_P0_19_10", 16);
  			iVar6 = 19;
  			iVar7 = 10;
  			iVar1 = 920;
  			break;
  		
  		case 66:
  			StringCopy(&Var2, "FEET_P0_19_11", 16);
  			iVar6 = 19;
  			iVar7 = 11;
  			iVar1 = 970;
  			break;
  		
  		case 67:
  			StringCopy(&Var2, "FEET_P0_19_12", 16);
  			iVar6 = 19;
  			iVar7 = 12;
  			iVar1 = 990;
  			break;
  		
  		case 68:
  			StringCopy(&Var2, "FEET_P0_19_13", 16);
  			iVar6 = 19;
  			iVar7 = 13;
  			iVar1 = 960;
  			break;
  		
  		case 69:
  			StringCopy(&Var2, "FEET_P0_19_14", 16);
  			iVar6 = 19;
  			iVar7 = 14;
  			iVar1 = 980;
  			break;
  		
  		case 70:
  			StringCopy(&Var2, "FEET_P0_19_15", 16);
  			iVar6 = 19;
  			iVar7 = 15;
  			iVar1 = 950;
  			break;
  		
  		case 71:
  			StringCopy(&Var2, "FEET_P0_20_0", 16);
  			iVar6 = 20;
  			iVar7 = 0;
  			iVar1 = 110;
  			break;
  		
  		case 72:
  			StringCopy(&Var2, "FEET_P0_20_1", 16);
  			iVar6 = 20;
  			iVar7 = 1;
  			iVar1 = 115;
  			break;
  		
  		case 73:
  			StringCopy(&Var2, "FEET_P0_20_2", 16);
  			iVar6 = 20;
  			iVar7 = 2;
  			iVar1 = 120;
  			break;
  		
  		case 74:
  			StringCopy(&Var2, "FEET_P0_20_3", 16);
  			iVar6 = 20;
  			iVar7 = 3;
  			iVar1 = 110;
  			break;
  		
  		case 75:
  			StringCopy(&Var2, "FEET_P0_20_4", 16);
  			iVar6 = 20;
  			iVar7 = 4;
  			iVar1 = 125;
  			break;
  		
  		case 76:
  			StringCopy(&Var2, "FEET_P0_20_5", 16);
  			iVar6 = 20;
  			iVar7 = 5;
  			iVar1 = 128;
  			break;
  		
  		case 77:
  			StringCopy(&Var2, "FEET_P0_20_6", 16);
  			iVar6 = 20;
  			iVar7 = 6;
  			iVar1 = 135;
  			break;
  		
  		case 78:
  			StringCopy(&Var2, "FEET_P0_20_7", 16);
  			iVar6 = 20;
  			iVar7 = 7;
  			iVar1 = 130;
  			break;
  		
  		case joaat("mpsv_lp0_31"):
  			StringCopy(&Var2, "FEET_P0_20_8", 16);
  			iVar6 = 20;
  			iVar7 = 8;
  			iVar1 = 145;
  			break;
  		
  		case 80:
  			StringCopy(&Var2, "FEET_P0_20_9", 16);
  			iVar6 = 20;
  			iVar7 = 9;
  			iVar1 = 110;
  			break;
  		
  		case 81:
  			StringCopy(&Var2, "FEET_P0_20_10", 16);
  			iVar6 = 20;
  			iVar7 = 10;
  			iVar1 = 120;
  			break;
  		
  		case 82:
  			StringCopy(&Var2, "FEET_P0_20_11", 16);
  			iVar6 = 20;
  			iVar7 = 11;
  			iVar1 = 150;
  			break;
  		
  		case 83:
  			StringCopy(&Var2, "FEET_P0_20_12", 16);
  			iVar6 = 20;
  			iVar7 = 12;
  			iVar1 = 125;
  			break;
  		
  		case 84:
  			StringCopy(&Var2, "FEET_P0_20_13", 16);
  			iVar6 = 20;
  			iVar7 = 13;
  			iVar1 = 120;
  			break;
  		
  		case 85:
  			StringCopy(&Var2, "FEET_P0_20_14", 16);
  			iVar6 = 20;
  			iVar7 = 14;
  			iVar1 = 130;
  			break;
  		
  		case 86:
  			StringCopy(&Var2, "FEET_P0_20_15", 16);
  			iVar6 = 20;
  			iVar7 = 15;
  			iVar1 = 110;
  			break;
  		
  		case 87:
  			StringCopy(&Var2, "FEET_P0_21_0", 16);
  			iVar6 = 21;
  			iVar7 = 0;
  			iVar1 = 720;
  			break;
  		
  		case 88:
  			StringCopy(&Var2, "FEET_P0_21_1", 16);
  			iVar6 = 21;
  			iVar7 = 1;
  			iVar1 = 680;
  			break;
  		
  		case 89:
  			StringCopy(&Var2, "FEET_P0_21_2", 16);
  			iVar6 = 21;
  			iVar7 = 2;
  			iVar1 = 650;
  			break;
  		
  		case 90:
  			StringCopy(&Var2, "FEET_P0_21_3", 16);
  			iVar6 = 21;
  			iVar7 = 3;
  			iVar1 = 670;
  			break;
  		
  		case 91:
  			StringCopy(&Var2, "FEET_P0_21_4", 16);
  			iVar6 = 21;
  			iVar7 = 4;
  			iVar1 = 700;
  			break;
  		
  		case 92:
  			StringCopy(&Var2, "FEET_P0_21_5", 16);
  			iVar6 = 21;
  			iVar7 = 5;
  			iVar1 = 680;
  			break;
  		
  		case 93:
  			StringCopy(&Var2, "FEET_P0_21_6", 16);
  			iVar6 = 21;
  			iVar7 = 6;
  			iVar1 = 720;
  			break;
  		
  		case 94:
  			StringCopy(&Var2, "FEET_P0_21_7", 16);
  			iVar6 = 21;
  			iVar7 = 7;
  			iVar1 = 740;
  			break;
  		
  		case 95:
  			StringCopy(&Var2, "FEET_P0_21_8", 16);
  			iVar6 = 21;
  			iVar7 = 8;
  			iVar1 = 760;
  			break;
  		
  		case 96:
  			StringCopy(&Var2, "FEET_P0_21_9", 16);
  			iVar6 = 21;
  			iVar7 = 9;
  			iVar1 = 780;
  			break;
  		
  		case 97:
  			StringCopy(&Var2, "FEET_P0_21_10", 16);
  			iVar6 = 21;
  			iVar7 = 10;
  			iVar1 = 750;
  			break;
  		
  		case 98:
  			StringCopy(&Var2, "FEET_P0_21_11", 16);
  			iVar6 = 21;
  			iVar7 = 11;
  			iVar1 = 700;
  			break;
  		
  		default:
  			func_269(iVar10, iParam0, 99, -1);
  			return;
  			break;
  	}
  	func_263(&(Global_77669[0 /*14*/]), iVar10, iParam0, &Var2, iVar6, iVar7, iVar1, bVar0, iVar8, iVar9, 0);
  }
  
  void func_317(int iParam0)
  {
  	bool bVar0;
  	int iVar1;
  	struct<2> Var2;
  	int iVar6;
  	int iVar7;
  	int iVar8;
  	int iVar9;
  	int iVar10;
  	
  	bVar0 = false;
  	iVar1 = 10;
  	iVar6 = 0;
  	iVar7 = 0;
  	iVar8 = -1;
  	iVar9 = 2;
  	iVar10 = 4;
  	Global_77669[0 /*14*/].f_5 = 0;
  	switch (iParam0)
  	{
  		case 0:
  			StringCopy(&Var2, "LEGS_P0_0_0", 16);
  			iVar6 = 0;
  			iVar7 = 0;
  			break;
  		
  		case 1:
  			StringCopy(&Var2, "LEGS_P0_0_0", 16);
  			iVar6 = 0;
  			iVar7 = 1;
  			break;
  		
  		case 2:
  			StringCopy(&Var2, "LEGS_P0_0_2", 16);
  			iVar6 = 0;
  			iVar7 = 2;
  			break;
  		
  		case 3:
  			StringCopy(&Var2, "LEGS_P0_0_3", 16);
  			iVar6 = 0;
  			iVar7 = 3;
  			break;
  		
  		case 4:
  			StringCopy(&Var2, "LEGS_P0_0_4", 16);
  			iVar6 = 0;
  			iVar7 = 4;
  			break;
  		
  		case 5:
  			StringCopy(&Var2, "LEGS_P0_0_5", 16);
  			iVar6 = 0;
  			iVar7 = 5;
  			break;
  		
  		case 6:
  			StringCopy(&Var2, "LEGS_P0_0_6", 16);
  			iVar6 = 0;
  			iVar7 = 6;
  			break;
  		
  		case 7:
  			StringCopy(&Var2, "LEGS_P0_0_7", 16);
  			iVar6 = 0;
  			iVar7 = 7;
  			break;
  		
  		case 8:
  			StringCopy(&Var2, "LEGS_P0_0_8", 16);
  			iVar6 = 0;
  			iVar7 = 8;
  			break;
  		
  		case 9:
  			StringCopy(&Var2, "LEGS_P0_0_9", 16);
  			iVar6 = 0;
  			iVar7 = 9;
  			break;
  		
  		case 10:
  			StringCopy(&Var2, "LEGS_P0_0_10", 16);
  			iVar6 = 0;
  			iVar7 = 10;
  			break;
  		
  		case 11:
  			StringCopy(&Var2, "LEGS_P0_0_11", 16);
  			iVar6 = 0;
  			iVar7 = 11;
  			break;
  		
  		case 12:
  			StringCopy(&Var2, "LEGS_P0_0_12", 16);
  			iVar6 = 0;
  			iVar7 = 12;
  			break;
  		
  		case 13:
  			StringCopy(&Var2, "LEGS_P0_0_13", 16);
  			iVar6 = 0;
  			iVar7 = 13;
  			break;
  		
  		case 14:
  			StringCopy(&Var2, "LEGS_P0_0_14", 16);
  			iVar6 = 0;
  			iVar7 = 14;
  			break;
  		
  		case 15:
  			StringCopy(&Var2, "LEGS_P0_0_15", 16);
  			iVar6 = 0;
  			iVar7 = 15;
  			break;
  		
  		case 16:
  			StringCopy(&Var2, "NO_LABEL", 16);
  			iVar6 = 1;
  			iVar7 = 0;
  			bVar0 = true;
  			break;
  		
  		case 17:
  			StringCopy(&Var2, "NO_LABEL", 16);
  			iVar6 = 2;
  			iVar7 = 0;
  			bVar0 = true;
  			break;
  		
  		case 18:
  			StringCopy(&Var2, "NO_LABEL", 16);
  			iVar6 = 3;
  			iVar7 = 0;
  			bVar0 = true;
  			break;
  		
  		case 19:
  			StringCopy(&Var2, "NO_LABEL", 16);
  			iVar6 = 3;
  			iVar7 = 1;
  			bVar0 = true;
  			break;
  		
  		case 20:
  			StringCopy(&Var2, "NO_LABEL", 16);
  			iVar6 = 4;
  			iVar7 = 0;
  			bVar0 = true;
  			break;
  		
  		case 21:
  			StringCopy(&Var2, "NO_LABEL", 16);
  			iVar6 = 5;
  			iVar7 = 0;
  			bVar0 = true;
  			break;
  		
  		case 22:
  			StringCopy(&Var2, "NO_LABEL", 16);
  			iVar6 = 6;
  			iVar7 = 0;
  			bVar0 = true;
  			break;
  		
  		case 23:
  			StringCopy(&Var2, "LEGS_P0_7_0", 16);
  			iVar6 = 7;
  			iVar7 = 0;
  			iVar1 = 115;
  			break;
  		
  		case 24:
  			StringCopy(&Var2, "LEGS_P0_7_1", 16);
  			iVar6 = 7;
  			iVar7 = 1;
  			iVar1 = 115;
  			break;
  		
  		case 25:
  			StringCopy(&Var2, "LEGS_P0_7_2", 16);
  			iVar6 = 7;
  			iVar7 = 2;
  			iVar1 = 128;
  			break;
  		
  		case 26:
  			StringCopy(&Var2, "LEGS_P0_7_3", 16);
  			iVar6 = 7;
  			iVar7 = 3;
  			iVar1 = 118;
  			break;
  		
  		case 27:
  			StringCopy(&Var2, "LEGS_P0_7_4", 16);
  			iVar6 = 7;
  			iVar7 = 4;
  			iVar1 = 125;
  			break;
  		
  		case 28:
  			StringCopy(&Var2, "LEGS_P0_7_5", 16);
  			iVar6 = 7;
  			iVar7 = 5;
  			iVar1 = 128;
  			break;
  		
  		case 29:
  			StringCopy(&Var2, "LEGS_P0_7_6", 16);
  			iVar6 = 7;
  			iVar7 = 6;
  			iVar1 = 128;
  			break;
  		
  		case 30:
  			StringCopy(&Var2, "LEGS_P0_7_7", 16);
  			iVar6 = 7;
  			iVar7 = 7;
  			iVar1 = 125;
  			break;
  		
  		case 31:
  			StringCopy(&Var2, "NO_LABEL", 16);
  			iVar6 = 8;
  			iVar7 = 0;
  			bVar0 = true;
  			break;
  		
  		case 32:
  			StringCopy(&Var2, "NO_LABEL", 16);
  			iVar6 = 9;
  			iVar7 = 0;
  			bVar0 = true;
  			break;
  		
  		case 33:
  			StringCopy(&Var2, "NO_LABEL", 16);
  			iVar6 = 10;
  			iVar7 = 0;
  			bVar0 = true;
  			break;
  		
  		case 34:
  			StringCopy(&Var2, "NO_LABEL", 16);
  			iVar6 = 11;
  			iVar7 = 0;
  			bVar0 = true;
  			break;
  		
  		case 35:
  			StringCopy(&Var2, "NO_LABEL", 16);
  			iVar6 = 11;
  			iVar7 = 1;
  			bVar0 = true;
  			break;
  		
  		case 36:
  			StringCopy(&Var2, "NO_LABEL", 16);
  			iVar6 = 11;
  			iVar7 = 2;
  			bVar0 = true;
  			break;
  		
  		case 37:
  			StringCopy(&Var2, "NO_LABEL", 16);
  			iVar6 = 11;
  			iVar7 = 3;
  			bVar0 = true;
  			break;
  		
  		case 38:
  			StringCopy(&Var2, "NO_LABEL", 16);
  			iVar6 = 11;
  			iVar7 = 4;
  			bVar0 = true;
  			break;
  		
  		case 39:
  			StringCopy(&Var2, "NO_LABEL", 16);
  			iVar6 = 11;
  			iVar7 = 5;
  			bVar0 = true;
  			break;
  		
  		case 40:
  			StringCopy(&Var2, "NO_LABEL", 16);
  			iVar6 = 12;
  			iVar7 = 0;
  			bVar0 = true;
  			break;
  		
  		case 41:
  			StringCopy(&Var2, "LEGS_P0_13_0", 16);
  			iVar6 = 13;
  			iVar7 = 0;
  			iVar1 = 68;
  			break;
  		
  		case 42:
  			StringCopy(&Var2, "LEGS_P0_13_1", 16);
  			iVar6 = 13;
  			iVar7 = 1;
  			iVar1 = 68;
  			break;
  		
  		case 43:
  			StringCopy(&Var2, "LEGS_P0_13_2", 16);
  			iVar6 = 13;
  			iVar7 = 2;
  			iVar1 = 68;
  			break;
  		
  		case 44:
  			StringCopy(&Var2, "LEGS_P0_13_3", 16);
  			iVar6 = 13;
  			iVar7 = 3;
  			iVar1 = 68;
  			break;
  		
  		case 45:
  			StringCopy(&Var2, "LEGS_P0_13_4", 16);
  			iVar6 = 13;
  			iVar7 = 4;
  			iVar1 = 68;
  			break;
  		
  		case 46:
  			StringCopy(&Var2, "NO_LABEL", 16);
  			iVar6 = 14;
  			iVar7 = 0;
  			bVar0 = true;
  			break;
  		
  		case 47:
  			StringCopy(&Var2, "LEGS_P0_15_0", 16);
  			iVar6 = 15;
  			iVar7 = 0;
  			break;
  		
  		case 48:
  			StringCopy(&Var2, "LEGS_P0_15_1", 16);
  			iVar6 = 15;
  			iVar7 = 1;
  			iVar1 = 550;
  			break;
  		
  		case 49:
  			StringCopy(&Var2, "LEGS_P0_15_2", 16);
  			iVar6 = 15;
  			iVar7 = 2;
  			iVar1 = 650;
  			break;
  		
  		case 50:
  			StringCopy(&Var2, "LEGS_P0_15_3", 16);
  			iVar6 = 15;
  			iVar7 = 3;
  			iVar1 = 875;
  			break;
  		
  		case 51:
  			StringCopy(&Var2, "LEGS_P0_15_4", 16);
  			iVar6 = 15;
  			iVar7 = 4;
  			iVar1 = 820;
  			break;
  		
  		case 52:
  			StringCopy(&Var2, "LEGS_P0_15_5", 16);
  			iVar6 = 15;
  			iVar7 = 5;
  			iVar1 = 720;
  			break;
  		
  		case 53:
  			StringCopy(&Var2, "LEGS_P0_15_6", 16);
  			iVar6 = 15;
  			iVar7 = 6;
  			iVar1 = 750;
  			break;
  		
  		case 54:
  			StringCopy(&Var2, "LEGS_P0_15_7", 16);
  			iVar6 = 15;
  			iVar7 = 7;
  			iVar1 = 850;
  			break;
  		
  		case 55:
  			StringCopy(&Var2, "LEGS_P0_16_0", 16);
  			iVar6 = 16;
  			iVar7 = 0;
  			break;
  		
  		case 56:
  			StringCopy(&Var2, "LEGS_P0_16_1", 16);
  			iVar6 = 16;
  			iVar7 = 1;
  			iVar1 = 48;
  			break;
  		
  		case 57:
  			StringCopy(&Var2, "LEGS_P0_16_2", 16);
  			iVar6 = 16;
  			iVar7 = 2;
  			iVar1 = 48;
  			break;
  		
  		case 58:
  			StringCopy(&Var2, "LEGS_P0_16_3", 16);
  			iVar6 = 16;
  			iVar7 = 3;
  			iVar1 = 38;
  			break;
  		
  		case 59:
  			StringCopy(&Var2, "LEGS_P0_16_4", 16);
  			iVar6 = 16;
  			iVar7 = 4;
  			iVar1 = 38;
  			break;
  		
  		case 60:
  			StringCopy(&Var2, "LEGS_P0_16_5", 16);
  			iVar6 = 16;
  			iVar7 = 5;
  			iVar1 = 42;
  			break;
  		
  		case 61:
  			StringCopy(&Var2, "LEGS_P0_16_6", 16);
  			iVar6 = 16;
  			iVar7 = 6;
  			iVar1 = 58;
  			break;
  		
  		case 62:
  			StringCopy(&Var2, "LEGS_P0_16_7", 16);
  			iVar6 = 16;
  			iVar7 = 7;
  			iVar1 = 46;
  			break;
  		
  		case 63:
  			StringCopy(&Var2, "LEGS_P0_16_8", 16);
  			iVar6 = 16;
  			iVar7 = 8;
  			iVar1 = 46;
  			break;
  		
  		case 64:
  			StringCopy(&Var2, "LEGS_P0_16_9", 16);
  			iVar6 = 16;
  			iVar7 = 9;
  			iVar1 = 46;
  			break;
  		
  		case 65:
  			StringCopy(&Var2, "LEGS_P0_16_10", 16);
  			iVar6 = 16;
  			iVar7 = 10;
  			iVar1 = 68;
  			break;
  		
  		case 66:
  			StringCopy(&Var2, "LEGS_P0_16_11", 16);
  			iVar6 = 16;
  			iVar7 = 11;
  			iVar1 = 58;
  			break;
  		
  		case 67:
  			StringCopy(&Var2, "LEGS_P0_16_12", 16);
  			iVar6 = 16;
  			iVar7 = 12;
  			iVar1 = 50;
  			break;
  		
  		case 68:
  			StringCopy(&Var2, "LEGS_P0_16_13", 16);
  			iVar6 = 16;
  			iVar7 = 13;
  			iVar1 = 68;
  			break;
  		
  		case 69:
  			StringCopy(&Var2, "LEGS_P0_16_14", 16);
  			iVar6 = 16;
  			iVar7 = 14;
  			iVar1 = 68;
  			break;
  		
  		case 70:
  			StringCopy(&Var2, "LEGS_P0_16_15", 16);
  			iVar6 = 16;
  			iVar7 = 15;
  			iVar1 = 42;
  			break;
  		
  		case 71:
  			StringCopy(&Var2, "NO_LABEL", 16);
  			iVar6 = 17;
  			iVar7 = 0;
  			bVar0 = true;
  			break;
  		
  		case 72:
  			StringCopy(&Var2, "LEGS_P0_18_0", 16);
  			iVar6 = 18;
  			iVar7 = 0;
  			break;
  		
  		case 73:
  			StringCopy(&Var2, "LEGS_P0_18_1", 16);
  			iVar6 = 18;
  			iVar7 = 1;
  			iVar1 = 250;
  			break;
  		
  		case 74:
  			StringCopy(&Var2, "LEGS_P0_18_2", 16);
  			iVar6 = 18;
  			iVar7 = 2;
  			iVar1 = 250;
  			break;
  		
  		case 75:
  			StringCopy(&Var2, "LEGS_P0_18_3", 16);
  			iVar6 = 18;
  			iVar7 = 3;
  			iVar1 = 290;
  			break;
  		
  		case 76:
  			StringCopy(&Var2, "LEGS_P0_18_4", 16);
  			iVar6 = 18;
  			iVar7 = 4;
  			iVar1 = 270;
  			break;
  		
  		case 77:
  			StringCopy(&Var2, "LEGS_P0_18_5", 16);
  			iVar6 = 18;
  			iVar7 = 5;
  			iVar1 = 270;
  			break;
  		
  		case 78:
  			StringCopy(&Var2, "LEGS_P0_18_6", 16);
  			iVar6 = 18;
  			iVar7 = 6;
  			iVar1 = 15;
  			break;
  		
  		case joaat("mpsv_lp0_31"):
  			StringCopy(&Var2, "LEGS_P0_18_7", 16);
  			iVar6 = 18;
  			iVar7 = 7;
  			iVar1 = 12;
  			break;
  		
  		case 80:
  			StringCopy(&Var2, "NO_LABEL", 16);
  			iVar6 = 19;
  			iVar7 = 0;
  			bVar0 = true;
  			break;
  		
  		case 81:
  			StringCopy(&Var2, "LEGS_P0_20_0", 16);
  			iVar6 = 20;
  			iVar7 = 0;
  			break;
  		
  		case 82:
  			StringCopy(&Var2, "LEGS_P0_20_1", 16);
  			iVar6 = 20;
  			iVar7 = 1;
  			iVar1 = 118;
  			break;
  		
  		case 83:
  			StringCopy(&Var2, "LEGS_P0_20_2", 16);
  			iVar6 = 20;
  			iVar7 = 2;
  			iVar1 = 110;
  			break;
  		
  		case 84:
  			StringCopy(&Var2, "LEGS_P0_21_0", 16);
  			iVar6 = 21;
  			iVar7 = 0;
  			iVar1 = 88;
  			break;
  		
  		case 85:
  			StringCopy(&Var2, "LEGS_P0_21_1", 16);
  			iVar6 = 21;
  			iVar7 = 1;
  			iVar1 = 95;
  			break;
  		
  		case 86:
  			StringCopy(&Var2, "LEGS_P0_21_2", 16);
  			iVar6 = 21;
  			iVar7 = 2;
  			iVar1 = 95;
  			break;
  		
  		case 87:
  			StringCopy(&Var2, "LEGS_P0_21_3", 16);
  			iVar6 = 21;
  			iVar7 = 3;
  			iVar1 = 98;
  			break;
  		
  		case 88:
  			StringCopy(&Var2, "LEGS_P0_22_0", 16);
  			iVar6 = 22;
  			iVar7 = 0;
  			iVar1 = 140;
  			break;
  		
  		case 89:
  			StringCopy(&Var2, "LEGS_P0_23_0", 16);
  			iVar6 = 23;
  			iVar7 = 0;
  			break;
  		
  		case 90:
  			StringCopy(&Var2, "LEGS_P0_23_1", 16);
  			iVar6 = 23;
  			iVar7 = 1;
  			iVar1 = 150;
  			break;
  		
  		case 91:
  			StringCopy(&Var2, "LEGS_P0_23_2", 16);
  			iVar6 = 23;
  			iVar7 = 2;
  			iVar1 = 130;
  			break;
  		
  		case 92:
  			StringCopy(&Var2, "NO_LABEL", 16);
  			iVar6 = 24;
  			iVar7 = 0;
  			bVar0 = true;
  			break;
  		
  		case 93:
  			StringCopy(&Var2, "NO_LABEL", 16);
  			iVar6 = 25;
  			iVar7 = 0;
  			bVar0 = true;
  			break;
  		
  		case 94:
  			StringCopy(&Var2, "NO_LABEL", 16);
  			iVar6 = 26;
  			iVar7 = 0;
  			bVar0 = true;
  			break;
  		
  		case 95:
  			StringCopy(&Var2, "LEGS_P0_27_0", 16);
  			iVar6 = 27;
  			iVar7 = 0;
  			break;
  		
  		case 96:
  			StringCopy(&Var2, "LEGS_P0_28_0", 16);
  			iVar6 = 28;
  			iVar7 = 0;
  			iVar1 = 45;
  			break;
  		
  		case 97:
  			StringCopy(&Var2, "LEGS_P0_28_1", 16);
  			iVar6 = 28;
  			iVar7 = 1;
  			iVar1 = 48;
  			break;
  		
  		case 98:
  			StringCopy(&Var2, "LEGS_P0_28_2", 16);
  			iVar6 = 28;
  			iVar7 = 2;
  			iVar1 = 48;
  			break;
  		
  		case 99:
  			StringCopy(&Var2, "LEGS_P0_28_3", 16);
  			iVar6 = 28;
  			iVar7 = 3;
  			iVar1 = 52;
  			break;
  		
  		case 100:
  			StringCopy(&Var2, "LEGS_P0_28_4", 16);
  			iVar6 = 28;
  			iVar7 = 4;
  			iVar1 = 52;
  			break;
  		
  		case 101:
  			StringCopy(&Var2, "LEGS_P0_28_5", 16);
  			iVar6 = 28;
  			iVar7 = 5;
  			iVar1 = 55;
  			break;
  		
  		case 102:
  			StringCopy(&Var2, "LEGS_P0_28_6", 16);
  			iVar6 = 28;
  			iVar7 = 6;
  			iVar1 = 55;
  			break;
  		
  		case 103:
  			StringCopy(&Var2, "LEGS_P0_28_7", 16);
  			iVar6 = 28;
  			iVar7 = 7;
  			iVar1 = 55;
  			break;
  		
  		case 104:
  			StringCopy(&Var2, "LEGS_P0_28_8", 16);
  			iVar6 = 28;
  			iVar7 = 8;
  			iVar1 = 58;
  			break;
  		
  		case 105:
  			StringCopy(&Var2, "LEGS_P0_28_9", 16);
  			iVar6 = 28;
  			iVar7 = 9;
  			iVar1 = 58;
  			break;
  		
  		case 106:
  			StringCopy(&Var2, "LEGS_P0_28_10", 16);
  			iVar6 = 28;
  			iVar7 = 10;
  			iVar1 = 60;
  			break;
  		
  		case 107:
  			StringCopy(&Var2, "LEGS_P0_28_11", 16);
  			iVar6 = 28;
  			iVar7 = 11;
  			iVar1 = 60;
  			break;
  		
  		case 108:
  			StringCopy(&Var2, "LEGS_P0_28_12", 16);
  			iVar6 = 28;
  			iVar7 = 12;
  			iVar1 = 62;
  			break;
  		
  		case 109:
  			StringCopy(&Var2, "LEGS_P0_28_13", 16);
  			iVar6 = 28;
  			iVar7 = 13;
  			iVar1 = 62;
  			break;
  		
  		case 110:
  			StringCopy(&Var2, "LEGS_P0_28_14", 16);
  			iVar6 = 28;
  			iVar7 = 14;
  			iVar1 = 65;
  			break;
  		
  		case 111:
  			StringCopy(&Var2, "LEGS_P0_28_15", 16);
  			iVar6 = 28;
  			iVar7 = 15;
  			iVar1 = 65;
  			break;
  		
  		case 112:
  			StringCopy(&Var2, "NO_LABEL", 16);
  			iVar6 = 29;
  			iVar7 = 0;
  			break;
  		
  		default:
  			func_269(iVar10, iParam0, 113, -1);
  			return;
  			break;
  	}
  	func_263(&(Global_77669[0 /*14*/]), iVar10, iParam0, &Var2, iVar6, iVar7, iVar1, bVar0, iVar8, iVar9, 0);
  }
  
  void func_318(int iParam0)
  {
  	if (iParam0 < 60)
  	{
  		func_320(iParam0);
  	}
  	else
  	{
  		func_319(iParam0);
  	}
  	if (Global_77669[0 /*14*/].f_2 == -1)
  	{
  		func_269(3, iParam0, 181, -1);
  	}
  }
  
  void func_319(int iParam0)
  {
  	bool bVar0;
  	int iVar1;
  	struct<2> Var2;
  	int iVar6;
  	int iVar7;
  	int iVar8;
  	int iVar9;
  	int iVar10;
  	
  	bVar0 = false;
  	iVar1 = 10;
  	iVar6 = 0;
  	iVar7 = 0;
  	iVar8 = -1;
  	iVar9 = 2;
  	iVar10 = 3;
  	Global_77669[0 /*14*/].f_5 = 0;
  	switch (iParam0)
  	{
  		case 60:
  			StringCopy(&Var2, "NO_LABEL", 16);
  			iVar6 = 9;
  			iVar7 = 0;
  			bVar0 = true;
  			break;
  		
  		case 61:
  			StringCopy(&Var2, "NO_LABEL", 16);
  			iVar6 = 10;
  			iVar7 = 0;
  			bVar0 = true;
  			break;
  		
  		case 62:
  			StringCopy(&Var2, "NO_LABEL", 16);
  			iVar6 = 11;
  			iVar7 = 0;
  			bVar0 = true;
  			break;
  		
  		case 63:
  			StringCopy(&Var2, "NO_LABEL", 16);
  			iVar6 = 12;
  			iVar7 = 0;
  			bVar0 = true;
  			break;
  		
  		case 64:
  			StringCopy(&Var2, "NO_LABEL", 16);
  			iVar6 = 12;
  			iVar7 = 1;
  			bVar0 = true;
  			break;
  		
  		case 65:
  			StringCopy(&Var2, "NO_LABEL", 16);
  			iVar6 = 12;
  			iVar7 = 2;
  			bVar0 = true;
  			break;
  		
  		case 66:
  			StringCopy(&Var2, "NO_LABEL", 16);
  			iVar6 = 12;
  			iVar7 = 3;
  			bVar0 = true;
  			break;
  		
  		case 67:
  			StringCopy(&Var2, "NO_LABEL", 16);
  			iVar6 = 12;
  			iVar7 = 4;
  			bVar0 = true;
  			break;
  		
  		case 68:
  			StringCopy(&Var2, "NO_LABEL", 16);
  			iVar6 = 12;
  			iVar7 = 5;
  			bVar0 = true;
  			break;
  		
  		case 69:
  			StringCopy(&Var2, "NO_LABEL", 16);
  			iVar6 = 13;
  			iVar7 = 0;
  			bVar0 = true;
  			break;
  		
  		case 70:
  			StringCopy(&Var2, "TORSO_P0_14_0", 16);
  			iVar6 = 14;
  			iVar7 = 0;
  			iVar1 = 120;
  			break;
  		
  		case 71:
  			StringCopy(&Var2, "TORSO_P0_14_1", 16);
  			iVar6 = 14;
  			iVar7 = 1;
  			iVar1 = 120;
  			break;
  		
  		case 72:
  			StringCopy(&Var2, "TORSO_P0_14_2", 16);
  			iVar6 = 14;
  			iVar7 = 2;
  			iVar1 = 120;
  			break;
  		
  		case 73:
  			StringCopy(&Var2, "TORSO_P0_14_3", 16);
  			iVar6 = 14;
  			iVar7 = 3;
  			iVar1 = 120;
  			break;
  		
  		case 74:
  			StringCopy(&Var2, "TORSO_P0_14_4", 16);
  			iVar6 = 14;
  			iVar7 = 4;
  			iVar1 = 120;
  			break;
  		
  		case 75:
  			StringCopy(&Var2, "TORSO_P0_14_5", 16);
  			iVar6 = 14;
  			iVar7 = 5;
  			iVar1 = 120;
  			break;
  		
  		case 76:
  			StringCopy(&Var2, "NO_LABEL", 16);
  			iVar6 = 15;
  			iVar7 = 0;
  			bVar0 = true;
  			break;
  		
  		case 77:
  			StringCopy(&Var2, "TORSO_P0_16_0", 16);
  			iVar6 = 16;
  			iVar7 = 0;
  			break;
  		
  		case 78:
  			StringCopy(&Var2, "TORSO_P0_16_1", 16);
  			iVar6 = 16;
  			iVar7 = 1;
  			iVar1 = 20;
  			break;
  		
  		case joaat("mpsv_lp0_31"):
  			StringCopy(&Var2, "TORSO_P0_16_2", 16);
  			iVar6 = 16;
  			iVar7 = 2;
  			iVar1 = 24;
  			break;
  		
  		case 80:
  			StringCopy(&Var2, "TORSO_P0_16_3", 16);
  			iVar6 = 16;
  			iVar7 = 3;
  			iVar1 = 22;
  			break;
  		
  		case 81:
  			StringCopy(&Var2, "TORSO_P0_16_4", 16);
  			iVar6 = 16;
  			iVar7 = 4;
  			iVar1 = 25;
  			break;
  		
  		case 82:
  			StringCopy(&Var2, "TORSO_P0_16_5", 16);
  			iVar6 = 16;
  			iVar7 = 5;
  			iVar1 = 25;
  			break;
  		
  		case 83:
  			StringCopy(&Var2, "TORSO_P0_16_6", 16);
  			iVar6 = 16;
  			iVar7 = 6;
  			iVar1 = 22;
  			break;
  		
  		case 84:
  			StringCopy(&Var2, "TORSO_P0_16_7", 16);
  			iVar6 = 16;
  			iVar7 = 7;
  			iVar1 = 27;
  			break;
  		
  		case 85:
  			StringCopy(&Var2, "TORSO_P0_17_0", 16);
  			iVar6 = 17;
  			iVar7 = 0;
  			break;
  		
  		case 86:
  			StringCopy(&Var2, "TORSO_P0_17_1", 16);
  			iVar6 = 17;
  			iVar7 = 1;
  			break;
  		
  		case 87:
  			StringCopy(&Var2, "TORSO_P0_17_2", 16);
  			iVar6 = 17;
  			iVar7 = 2;
  			break;
  		
  		case 88:
  			StringCopy(&Var2, "TORSO_P0_17_3", 16);
  			iVar6 = 17;
  			iVar7 = 3;
  			iVar1 = 48;
  			break;
  		
  		case 89:
  			StringCopy(&Var2, "TORSO_P0_17_4", 16);
  			iVar6 = 17;
  			iVar7 = 4;
  			iVar1 = 40;
  			break;
  		
  		case 90:
  			StringCopy(&Var2, "TORSO_P0_17_5", 16);
  			iVar6 = 17;
  			iVar7 = 5;
  			iVar1 = 45;
  			break;
  		
  		case 91:
  			StringCopy(&Var2, "NO_LABEL", 16);
  			iVar6 = 18;
  			iVar7 = 0;
  			bVar0 = true;
  			break;
  		
  		case 92:
  			StringCopy(&Var2, "TORSO_P0_19_0", 16);
  			iVar6 = 19;
  			iVar7 = 0;
  			break;
  		
  		case 93:
  			StringCopy(&Var2, "TORSO_P0_19_1", 16);
  			iVar6 = 19;
  			iVar7 = 1;
  			iVar1 = 190;
  			break;
  		
  		case 94:
  			StringCopy(&Var2, "TORSO_P0_19_2", 16);
  			iVar6 = 19;
  			iVar7 = 2;
  			iVar1 = 190;
  			break;
  		
  		case 95:
  			StringCopy(&Var2, "TORSO_P0_19_3", 16);
  			iVar6 = 19;
  			iVar7 = 3;
  			iVar1 = 190;
  			break;
  		
  		case 96:
  			StringCopy(&Var2, "TORSO_P0_19_4", 16);
  			iVar6 = 19;
  			iVar7 = 4;
  			iVar1 = 210;
  			break;
  		
  		case 97:
  			StringCopy(&Var2, "TORSO_P0_20_0", 16);
  			iVar6 = 20;
  			iVar7 = 0;
  			break;
  		
  		case 98:
  			StringCopy(&Var2, "TORSO_P0_20_1", 16);
  			iVar6 = 20;
  			iVar7 = 1;
  			iVar1 = 115;
  			break;
  		
  		case 99:
  			StringCopy(&Var2, "TORSO_P0_20_2", 16);
  			iVar6 = 20;
  			iVar7 = 2;
  			iVar1 = 55;
  			break;
  		
  		case 100:
  			StringCopy(&Var2, "TORSO_P0_20_3", 16);
  			iVar6 = 20;
  			iVar7 = 3;
  			iVar1 = 110;
  			break;
  		
  		case 101:
  			StringCopy(&Var2, "TORSO_P0_20_4", 16);
  			iVar6 = 20;
  			iVar7 = 4;
  			iVar1 = 99;
  			break;
  		
  		case 102:
  			StringCopy(&Var2, "TORSO_P0_20_5", 16);
  			iVar6 = 20;
  			iVar7 = 5;
  			iVar1 = 49;
  			break;
  		
  		case 103:
  			StringCopy(&Var2, "TORSO_P0_20_6", 16);
  			iVar6 = 20;
  			iVar7 = 6;
  			iVar1 = 120;
  			break;
  		
  		case 104:
  			StringCopy(&Var2, "TORSO_P0_20_7", 16);
  			iVar6 = 20;
  			iVar7 = 7;
  			iVar1 = 45;
  			break;
  		
  		case 105:
  			StringCopy(&Var2, "TORSO_P0_20_8", 16);
  			iVar6 = 20;
  			iVar7 = 8;
  			iVar1 = 115;
  			break;
  		
  		case 106:
  			StringCopy(&Var2, "TORSO_P0_20_9", 16);
  			iVar6 = 20;
  			iVar7 = 9;
  			iVar1 = 105;
  			break;
  		
  		case 107:
  			StringCopy(&Var2, "TORSO_P0_20_10", 16);
  			iVar6 = 20;
  			iVar7 = 10;
  			iVar1 = 90;
  			break;
  		
  		case 108:
  			StringCopy(&Var2, "TORSO_P0_20_11", 16);
  			iVar6 = 20;
  			iVar7 = 11;
  			iVar1 = 95;
  			break;
  		
  		case 109:
  			StringCopy(&Var2, "TORSO_P0_20_12", 16);
  			iVar6 = 20;
  			iVar7 = 12;
  			iVar1 = 39;
  			break;
  		
  		case 110:
  			StringCopy(&Var2, "TORSO_P0_20_13", 16);
  			iVar6 = 20;
  			iVar7 = 13;
  			iVar1 = 95;
  			break;
  		
  		case 111:
  			StringCopy(&Var2, "TORSO_P0_20_14", 16);
  			iVar6 = 20;
  			iVar7 = 14;
  			iVar1 = 35;
  			break;
  		
  		case 112:
  			StringCopy(&Var2, "TORSO_P0_20_15", 16);
  			iVar6 = 20;
  			iVar7 = 15;
  			iVar1 = 95;
  			break;
  		
  		case 113:
  			StringCopy(&Var2, "TORSO_P0_21_0", 16);
  			iVar6 = 21;
  			iVar7 = 0;
  			iVar1 = 88;
  			break;
  		
  		case 114:
  			StringCopy(&Var2, "TORSO_P0_21_1", 16);
  			iVar6 = 21;
  			iVar7 = 1;
  			iVar1 = 60;
  			break;
  		
  		case 115:
  			StringCopy(&Var2, "TORSO_P0_21_2", 16);
  			iVar6 = 21;
  			iVar7 = 2;
  			iVar1 = 70;
  			break;
  		
  		case 116:
  			StringCopy(&Var2, "TORSO_P0_21_3", 16);
  			iVar6 = 21;
  			iVar7 = 3;
  			iVar1 = 80;
  			break;
  		
  		case 117:
  			StringCopy(&Var2, "TORSO_P0_21_4", 16);
  			iVar6 = 21;
  			iVar7 = 4;
  			iVar1 = 90;
  			break;
  		
  		case 118:
  			StringCopy(&Var2, "TORSO_P0_21_5", 16);
  			iVar6 = 21;
  			iVar7 = 5;
  			iVar1 = 80;
  			break;
  		
  		case 119:
  			StringCopy(&Var2, "TORSO_P0_21_6", 16);
  			iVar6 = 21;
  			iVar7 = 6;
  			iVar1 = 70;
  			break;
  		
  		case 120:
  			StringCopy(&Var2, "TORSO_P0_21_7", 16);
  			iVar6 = 21;
  			iVar7 = 7;
  			iVar1 = 95;
  			break;
  		
  		case 121:
  			StringCopy(&Var2, "TORSO_P0_21_8", 16);
  			iVar6 = 21;
  			iVar7 = 8;
  			iVar1 = 105;
  			break;
  		
  		case 122:
  			StringCopy(&Var2, "TORSO_P0_21_9", 16);
  			iVar6 = 21;
  			iVar7 = 9;
  			iVar1 = 95;
  			break;
  		
  		case 123:
  			StringCopy(&Var2, "TORSO_P0_21_10", 16);
  			iVar6 = 21;
  			iVar7 = 10;
  			iVar1 = 110;
  			break;
  		
  		case 124:
  			StringCopy(&Var2, "TORSO_P0_21_11", 16);
  			iVar6 = 21;
  			iVar7 = 11;
  			iVar1 = 98;
  			break;
  		
  		case 125:
  			StringCopy(&Var2, "TORSO_P0_21_12", 16);
  			iVar6 = 21;
  			iVar7 = 12;
  			iVar1 = 88;
  			break;
  		
  		case 126:
  			StringCopy(&Var2, "TORSO_P0_21_13", 16);
  			iVar6 = 21;
  			iVar7 = 13;
  			iVar1 = 98;
  			break;
  		
  		case 127:
  			StringCopy(&Var2, "TORSO_P0_21_14", 16);
  			iVar6 = 21;
  			iVar7 = 14;
  			iVar1 = 110;
  			break;
  		
  		case 128:
  			StringCopy(&Var2, "TORSO_P0_21_15", 16);
  			iVar6 = 21;
  			iVar7 = 15;
  			iVar1 = 98;
  			break;
  		
  		case 129:
  			StringCopy(&Var2, "TORSO_P0_22_0", 16);
  			iVar6 = 22;
  			iVar7 = 0;
  			break;
  		
  		case 130:
  			StringCopy(&Var2, "TORSO_P0_22_1", 16);
  			iVar6 = 22;
  			iVar7 = 1;
  			iVar1 = 4950;
  			break;
  		
  		case 131:
  			StringCopy(&Var2, "TORSO_P0_22_2", 16);
  			iVar6 = 22;
  			iVar7 = 2;
  			iVar1 = 4195;
  			break;
  		
  		case 132:
  			StringCopy(&Var2, "TORSO_P0_22_3", 16);
  			iVar6 = 22;
  			iVar7 = 3;
  			iVar1 = 3195;
  			break;
  		
  		case 133:
  			StringCopy(&Var2, "TORSO_P0_22_4", 16);
  			iVar6 = 22;
  			iVar7 = 4;
  			iVar1 = 2950;
  			break;
  		
  		case 134:
  			StringCopy(&Var2, "TORSO_P0_22_5", 16);
  			iVar6 = 22;
  			iVar7 = 5;
  			iVar1 = 3950;
  			break;
  		
  		case 135:
  			StringCopy(&Var2, "TORSO_P0_23_0", 16);
  			iVar6 = 23;
  			iVar7 = 0;
  			iVar1 = 3200;
  			break;
  		
  		case 136:
  			StringCopy(&Var2, "TORSO_P0_23_1", 16);
  			iVar6 = 23;
  			iVar7 = 1;
  			iVar1 = 3200;
  			break;
  		
  		case 137:
  			StringCopy(&Var2, "TORSO_P0_23_2", 16);
  			iVar6 = 23;
  			iVar7 = 2;
  			iVar1 = 3200;
  			break;
  		
  		case 138:
  			StringCopy(&Var2, "TORSO_P0_23_3", 16);
  			iVar6 = 23;
  			iVar7 = 3;
  			iVar1 = 3200;
  			break;
  		
  		case 139:
  			StringCopy(&Var2, "TORSO_P0_23_4", 16);
  			iVar6 = 23;
  			iVar7 = 4;
  			iVar1 = 3200;
  			break;
  		
  		case 140:
  			StringCopy(&Var2, "TORSO_P0_23_5", 16);
  			iVar6 = 23;
  			iVar7 = 5;
  			iVar1 = 3200;
  			break;
  		
  		case 141:
  			StringCopy(&Var2, "TORSO_P0_23_6", 16);
  			iVar6 = 23;
  			iVar7 = 6;
  			iVar1 = 3200;
  			break;
  		
  		case 142:
  			StringCopy(&Var2, "TORSO_P0_23_7", 16);
  			iVar6 = 23;
  			iVar7 = 7;
  			iVar1 = 3200;
  			break;
  		
  		case 143:
  			StringCopy(&Var2, "TORSO_P0_23_8", 16);
  			iVar6 = 23;
  			iVar7 = 8;
  			iVar1 = 3200;
  			break;
  		
  		case 144:
  			StringCopy(&Var2, "TORSO_P0_23_9", 16);
  			iVar6 = 23;
  			iVar7 = 9;
  			iVar1 = 3200;
  			break;
  		
  		case 145:
  			StringCopy(&Var2, "TORSO_P0_23_10", 16);
  			iVar6 = 23;
  			iVar7 = 10;
  			iVar1 = 3200;
  			break;
  		
  		case 146:
  			StringCopy(&Var2, "TORSO_P0_23_11", 16);
  			iVar6 = 23;
  			iVar7 = 11;
  			iVar1 = 3200;
  			break;
  		
  		case 147:
  			StringCopy(&Var2, "TORSO_P0_23_12", 16);
  			iVar6 = 23;
  			iVar7 = 12;
  			iVar1 = 3200;
  			break;
  		
  		case 148:
  			StringCopy(&Var2, "TORSO_P0_23_13", 16);
  			iVar6 = 23;
  			iVar7 = 13;
  			iVar1 = 3200;
  			break;
  		
  		case 149:
  			StringCopy(&Var2, "TORSO_P0_23_14", 16);
  			iVar6 = 23;
  			iVar7 = 14;
  			iVar1 = 3200;
  			break;
  		
  		case 150:
  			StringCopy(&Var2, "TORSO_P0_23_15", 16);
  			iVar6 = 23;
  			iVar7 = 15;
  			iVar1 = 3200;
  			break;
  		
  		case 151:
  			StringCopy(&Var2, "TORSO_P0_24_0", 16);
  			iVar6 = 24;
  			iVar7 = 0;
  			iVar1 = 1350;
  			break;
  		
  		case 152:
  			StringCopy(&Var2, "TORSO_P0_24_1", 16);
  			iVar6 = 24;
  			iVar7 = 1;
  			iVar1 = 1400;
  			break;
  		
  		case 153:
  			StringCopy(&Var2, "TORSO_P0_24_2", 16);
  			iVar6 = 24;
  			iVar7 = 2;
  			iVar1 = 1200;
  			break;
  		
  		case 154:
  			StringCopy(&Var2, "TORSO_P0_24_3", 16);
  			iVar6 = 24;
  			iVar7 = 3;
  			iVar1 = 1250;
  			break;
  		
  		case 155:
  			StringCopy(&Var2, "TORSO_P0_24_4", 16);
  			iVar6 = 24;
  			iVar7 = 4;
  			iVar1 = 1350;
  			break;
  		
  		case 156:
  			StringCopy(&Var2, "TORSO_P0_24_5", 16);
  			iVar6 = 24;
  			iVar7 = 5;
  			iVar1 = 1300;
  			break;
  		
  		case 157:
  			StringCopy(&Var2, "TORSO_P0_24_6", 16);
  			iVar6 = 24;
  			iVar7 = 6;
  			iVar1 = 1380;
  			break;
  		
  		case 158:
  			StringCopy(&Var2, "TORSO_P0_24_7", 16);
  			iVar6 = 24;
  			iVar7 = 7;
  			iVar1 = 1340;
  			break;
  		
  		case 159:
  			StringCopy(&Var2, "TORSO_P0_24_8", 16);
  			iVar6 = 24;
  			iVar7 = 8;
  			iVar1 = 1380;
  			break;
  		
  		case 160:
  			StringCopy(&Var2, "TORSO_P0_24_9", 16);
  			iVar6 = 24;
  			iVar7 = 9;
  			iVar1 = 1250;
  			break;
  		
  		case 161:
  			StringCopy(&Var2, "TORSO_P0_25_0", 16);
  			iVar6 = 25;
  			iVar7 = 0;
  			iVar1 = 840;
  			break;
  		
  		case 162:
  			StringCopy(&Var2, "TORSO_P0_25_1", 16);
  			iVar6 = 25;
  			iVar7 = 1;
  			iVar1 = 840;
  			break;
  		
  		case 163:
  			StringCopy(&Var2, "TORSO_P0_25_2", 16);
  			iVar6 = 25;
  			iVar7 = 2;
  			iVar1 = 840;
  			break;
  		
  		case 164:
  			StringCopy(&Var2, "TORSO_P0_25_3", 16);
  			iVar6 = 25;
  			iVar7 = 3;
  			iVar1 = 840;
  			break;
  		
  		case 165:
  			StringCopy(&Var2, "TORSO_P0_25_4", 16);
  			iVar6 = 25;
  			iVar7 = 4;
  			iVar1 = 840;
  			break;
  		
  		case 166:
  			StringCopy(&Var2, "TORSO_P0_25_5", 16);
  			iVar6 = 25;
  			iVar7 = 5;
  			iVar1 = 840;
  			break;
  		
  		case 167:
  			StringCopy(&Var2, "TORSO_P0_25_6", 16);
  			iVar6 = 25;
  			iVar7 = 6;
  			iVar1 = 840;
  			break;
  		
  		case 168:
  			StringCopy(&Var2, "TORSO_P0_25_7", 16);
  			iVar6 = 25;
  			iVar7 = 7;
  			iVar1 = 840;
  			break;
  		
  		case 169:
  			StringCopy(&Var2, "TORSO_P0_26_0", 16);
  			iVar6 = 26;
  			iVar7 = 0;
  			break;
  		
  		case 170:
  			StringCopy(&Var2, "NO_LABEL", 16);
  			iVar6 = 27;
  			iVar7 = 0;
  			bVar0 = true;
  			break;
  		
  		case 171:
  			StringCopy(&Var2, "TORSO_P0_28_0", 16);
  			iVar6 = 28;
  			iVar7 = 0;
  			break;
  		
  		case 172:
  			StringCopy(&Var2, "TORSO_P0_28_1", 16);
  			iVar6 = 28;
  			iVar7 = 1;
  			iVar1 = 130;
  			break;
  		
  		case 173:
  			StringCopy(&Var2, "TORSO_P0_28_2", 16);
  			iVar6 = 28;
  			iVar7 = 2;
  			iVar1 = 110;
  			break;
  		
  		case 174:
  			StringCopy(&Var2, "TORSO_P0_29_0", 16);
  			iVar6 = 29;
  			iVar7 = 0;
  			bVar0 = true;
  			break;
  		
  		case 175:
  			StringCopy(&Var2, "TORSO_P0_30_0", 16);
  			iVar6 = 30;
  			iVar7 = 0;
  			iVar1 = 290;
  			break;
  		
  		case 176:
  			StringCopy(&Var2, "TORSO_P0_30_1", 16);
  			iVar6 = 30;
  			iVar7 = 1;
  			iVar1 = 320;
  			break;
  		
  		case 177:
  			StringCopy(&Var2, "TORSO_P0_31_0", 16);
  			iVar6 = 31;
  			iVar7 = 0;
  			iVar1 = 59;
  			break;
  		
  		case 178:
  			StringCopy(&Var2, "TORSO_P0_31_1", 16);
  			iVar6 = 31;
  			iVar7 = 1;
  			iVar1 = 55;
  			break;
  		
  		case 179:
  			StringCopy(&Var2, "TORSO_P0_31_2", 16);
  			iVar6 = 31;
  			iVar7 = 2;
  			iVar1 = 59;
  			break;
  		
  		case 180:
  			StringCopy(&Var2, "TORSO_P0_31_3", 16);
  			iVar6 = 31;
  			iVar7 = 3;
  			iVar1 = 49;
  			break;
  		
  		default:
  			return;
  			break;
  	}
  	func_263(&(Global_77669[0 /*14*/]), iVar10, iParam0, &Var2, iVar6, iVar7, iVar1, bVar0, iVar8, iVar9, 0);
  }
  
  void func_320(int iParam0)
  {
  	bool bVar0;
  	int iVar1;
  	struct<2> Var2;
  	int iVar6;
  	int iVar7;
  	int iVar8;
  	int iVar9;
  	int iVar10;
  	
  	bVar0 = false;
  	iVar1 = 10;
  	iVar6 = 0;
  	iVar7 = 0;
  	iVar8 = -1;
  	iVar9 = 2;
  	iVar10 = 3;
  	Global_77669[0 /*14*/].f_5 = 0;
  	switch (iParam0)
  	{
  		case 0:
  			StringCopy(&Var2, "TORSO_P0_0_0", 16);
  			iVar6 = 0;
  			iVar7 = 0;
  			break;
  		
  		case 1:
  			StringCopy(&Var2, "TORSO_P0_0_0", 16);
  			iVar6 = 0;
  			iVar7 = 1;
  			break;
  		
  		case 2:
  			StringCopy(&Var2, "TORSO_P0_0_2", 16);
  			iVar6 = 0;
  			iVar7 = 2;
  			iVar1 = 3500;
  			break;
  		
  		case 3:
  			StringCopy(&Var2, "TORSO_P0_0_3", 16);
  			iVar6 = 0;
  			iVar7 = 3;
  			break;
  		
  		case 4:
  			StringCopy(&Var2, "TORSO_P0_0_4", 16);
  			iVar6 = 0;
  			iVar7 = 4;
  			break;
  		
  		case 5:
  			StringCopy(&Var2, "TORSO_P0_0_5", 16);
  			iVar6 = 0;
  			iVar7 = 5;
  			break;
  		
  		case 6:
  			StringCopy(&Var2, "TORSO_P0_0_6", 16);
  			iVar6 = 0;
  			iVar7 = 6;
  			break;
  		
  		case 7:
  			StringCopy(&Var2, "TORSO_P0_0_7", 16);
  			iVar6 = 0;
  			iVar7 = 7;
  			break;
  		
  		case 8:
  			StringCopy(&Var2, "TORSO_P0_0_8", 16);
  			iVar6 = 0;
  			iVar7 = 8;
  			break;
  		
  		case 9:
  			StringCopy(&Var2, "TORSO_P0_0_9", 16);
  			iVar6 = 0;
  			iVar7 = 9;
  			break;
  		
  		case 10:
  			StringCopy(&Var2, "TORSO_P0_0_10", 16);
  			iVar6 = 0;
  			iVar7 = 10;
  			break;
  		
  		case 11:
  			StringCopy(&Var2, "TORSO_P0_0_11", 16);
  			iVar6 = 0;
  			iVar7 = 11;
  			break;
  		
  		case 12:
  			StringCopy(&Var2, "TORSO_P0_0_12", 16);
  			iVar6 = 0;
  			iVar7 = 12;
  			break;
  		
  		case 13:
  			StringCopy(&Var2, "TORSO_P0_0_13", 16);
  			iVar6 = 0;
  			iVar7 = 13;
  			break;
  		
  		case 14:
  			StringCopy(&Var2, "TORSO_P0_0_14", 16);
  			iVar6 = 0;
  			iVar7 = 14;
  			break;
  		
  		case 15:
  			StringCopy(&Var2, "TORSO_P0_0_15", 16);
  			iVar6 = 0;
  			iVar7 = 15;
  			break;
  		
  		case 16:
  			StringCopy(&Var2, "NO_LABEL", 16);
  			iVar6 = 1;
  			iVar7 = 0;
  			bVar0 = true;
  			break;
  		
  		case 17:
  			StringCopy(&Var2, "NO_LABEL", 16);
  			iVar6 = 2;
  			iVar7 = 0;
  			iVar1 = 20;
  			break;
  		
  		case 18:
  			StringCopy(&Var2, "NO_LABEL", 16);
  			iVar6 = 2;
  			iVar7 = 1;
  			iVar1 = 18;
  			break;
  		
  		case 19:
  			StringCopy(&Var2, "NO_LABEL", 16);
  			iVar6 = 2;
  			iVar7 = 2;
  			iVar1 = 22;
  			break;
  		
  		case 20:
  			StringCopy(&Var2, "NO_LABEL", 16);
  			iVar6 = 2;
  			iVar7 = 3;
  			iVar1 = 25;
  			break;
  		
  		case 21:
  			StringCopy(&Var2, "TORSO_P0_2_4", 16);
  			iVar6 = 2;
  			iVar7 = 4;
  			iVar1 = 19;
  			break;
  		
  		case 22:
  			StringCopy(&Var2, "TORSO_P0_2_5", 16);
  			iVar6 = 2;
  			iVar7 = 5;
  			iVar1 = 20;
  			break;
  		
  		case 23:
  			StringCopy(&Var2, "TORSO_P0_2_6", 16);
  			iVar6 = 2;
  			iVar7 = 6;
  			iVar1 = 22;
  			break;
  		
  		case 24:
  			StringCopy(&Var2, "TORSO_P0_2_7", 16);
  			iVar6 = 2;
  			iVar7 = 7;
  			iVar1 = 18;
  			break;
  		
  		case 25:
  			StringCopy(&Var2, "TORSO_P0_2_8", 16);
  			iVar6 = 2;
  			iVar7 = 8;
  			iVar1 = 39;
  			break;
  		
  		case 26:
  			StringCopy(&Var2, "TORSO_P0_2_9", 16);
  			iVar6 = 2;
  			iVar7 = 9;
  			iVar1 = 32;
  			break;
  		
  		case 27:
  			StringCopy(&Var2, "TORSO_P0_2_10", 16);
  			iVar6 = 2;
  			iVar7 = 10;
  			iVar1 = 35;
  			break;
  		
  		case 28:
  			StringCopy(&Var2, "TORSO_P0_2_11", 16);
  			iVar6 = 2;
  			iVar7 = 11;
  			iVar1 = 35;
  			break;
  		
  		case 29:
  			StringCopy(&Var2, "TORSO_P0_2_12", 16);
  			iVar6 = 2;
  			iVar7 = 12;
  			iVar1 = 210;
  			break;
  		
  		case 30:
  			StringCopy(&Var2, "TORSO_P0_2_13", 16);
  			iVar6 = 2;
  			iVar7 = 13;
  			iVar1 = 250;
  			break;
  		
  		case 31:
  			StringCopy(&Var2, "TORSO_P0_2_14", 16);
  			iVar6 = 2;
  			iVar7 = 14;
  			iVar1 = 290;
  			break;
  		
  		case 32:
  			StringCopy(&Var2, "TORSO_P0_2_15", 16);
  			iVar6 = 2;
  			iVar7 = 15;
  			iVar1 = 310;
  			break;
  		
  		case 33:
  			StringCopy(&Var2, "NO_LABEL", 16);
  			iVar6 = 3;
  			iVar7 = 0;
  			bVar0 = true;
  			break;
  		
  		case 34:
  			StringCopy(&Var2, "NO_LABEL", 16);
  			iVar6 = 3;
  			iVar7 = 1;
  			bVar0 = true;
  			break;
  		
  		case 35:
  			StringCopy(&Var2, "NO_LABEL", 16);
  			iVar6 = 4;
  			iVar7 = 0;
  			bVar0 = true;
  			break;
  		
  		case 36:
  			StringCopy(&Var2, "NO_LABEL", 16);
  			iVar6 = 5;
  			iVar7 = 0;
  			bVar0 = true;
  			break;
  		
  		case 37:
  			StringCopy(&Var2, "NO_LABEL", 16);
  			iVar6 = 6;
  			iVar7 = 0;
  			bVar0 = true;
  			break;
  		
  		case 38:
  			StringCopy(&Var2, "TORSO_P0_7_0", 16);
  			iVar6 = 7;
  			iVar7 = 0;
  			iVar1 = 150;
  			break;
  		
  		case 39:
  			StringCopy(&Var2, "TORSO_P0_7_1", 16);
  			iVar6 = 7;
  			iVar7 = 1;
  			iVar1 = 160;
  			break;
  		
  		case 40:
  			StringCopy(&Var2, "TORSO_P0_7_2", 16);
  			iVar6 = 7;
  			iVar7 = 2;
  			iVar1 = 150;
  			break;
  		
  		case 41:
  			StringCopy(&Var2, "TORSO_P0_7_3", 16);
  			iVar6 = 7;
  			iVar7 = 3;
  			iVar1 = 150;
  			break;
  		
  		case 42:
  			StringCopy(&Var2, "TORSO_P0_7_4", 16);
  			iVar6 = 7;
  			iVar7 = 4;
  			iVar1 = 160;
  			break;
  		
  		case 43:
  			StringCopy(&Var2, "TORSO_P0_7_5", 16);
  			iVar6 = 7;
  			iVar7 = 5;
  			iVar1 = 160;
  			break;
  		
  		case 44:
  			StringCopy(&Var2, "TORSO_P0_8_0", 16);
  			iVar6 = 8;
  			iVar7 = 0;
  			break;
  		
  		case 45:
  			StringCopy(&Var2, "TORSO_P0_8_1", 16);
  			iVar6 = 8;
  			iVar7 = 1;
  			iVar1 = 52;
  			break;
  		
  		case 46:
  			StringCopy(&Var2, "TORSO_P0_8_2", 16);
  			iVar6 = 8;
  			iVar7 = 2;
  			iVar1 = 52;
  			break;
  		
  		case 47:
  			StringCopy(&Var2, "TORSO_P0_8_3", 16);
  			iVar6 = 8;
  			iVar7 = 3;
  			iVar1 = 55;
  			break;
  		
  		case 48:
  			StringCopy(&Var2, "TORSO_P0_8_4", 16);
  			iVar6 = 8;
  			iVar7 = 4;
  			iVar1 = 55;
  			break;
  		
  		case 49:
  			StringCopy(&Var2, "TORSO_P0_8_5", 16);
  			iVar6 = 8;
  			iVar7 = 5;
  			iVar1 = 58;
  			break;
  		
  		case 50:
  			StringCopy(&Var2, "TORSO_P0_8_6", 16);
  			iVar6 = 8;
  			iVar7 = 6;
  			iVar1 = 58;
  			break;
  		
  		case 51:
  			StringCopy(&Var2, "TORSO_P0_8_7", 16);
  			iVar6 = 8;
  			iVar7 = 7;
  			iVar1 = 62;
  			break;
  		
  		case 52:
  			StringCopy(&Var2, "TORSO_P0_8_8", 16);
  			iVar6 = 8;
  			iVar7 = 8;
  			iVar1 = 65;
  			break;
  		
  		case 53:
  			StringCopy(&Var2, "TORSO_P0_8_9", 16);
  			iVar6 = 8;
  			iVar7 = 9;
  			iVar1 = 65;
  			break;
  		
  		case 54:
  			StringCopy(&Var2, "TORSO_P0_8_10", 16);
  			iVar6 = 8;
  			iVar7 = 10;
  			iVar1 = 68;
  			break;
  		
  		case 55:
  			StringCopy(&Var2, "TORSO_P0_8_11", 16);
  			iVar6 = 8;
  			iVar7 = 11;
  			iVar1 = 68;
  			break;
  		
  		case 56:
  			StringCopy(&Var2, "TORSO_P0_8_12", 16);
  			iVar6 = 8;
  			iVar7 = 12;
  			iVar1 = 55;
  			break;
  		
  		case 57:
  			StringCopy(&Var2, "TORSO_P0_8_13", 16);
  			iVar6 = 8;
  			iVar7 = 13;
  			iVar1 = 62;
  			break;
  		
  		case 58:
  			StringCopy(&Var2, "TORSO_P0_8_14", 16);
  			iVar6 = 8;
  			iVar7 = 14;
  			iVar1 = 58;
  			break;
  		
  		case 59:
  			StringCopy(&Var2, "TORSO_P0_8_15", 16);
  			iVar6 = 8;
  			iVar7 = 15;
  			iVar1 = 58;
  			break;
  		
  		default:
  			return;
  			break;
  	}
  	func_263(&(Global_77669[0 /*14*/]), iVar10, iParam0, &Var2, iVar6, iVar7, iVar1, bVar0, iVar8, iVar9, 0);
  }
  
  void func_321(int iParam0)
  {
  	bool bVar0;
  	int iVar1;
  	struct<2> Var2;
  	int iVar6;
  	int iVar7;
  	int iVar8;
  	int iVar9;
  	int iVar10;
  	
  	bVar0 = false;
  	iVar1 = 10;
  	iVar6 = 0;
  	iVar7 = 0;
  	iVar8 = -1;
  	iVar9 = 2;
  	iVar10 = 2;
  	Global_77669[0 /*14*/].f_5 = 0;
  	switch (iParam0)
  	{
  		case 0:
  			StringCopy(&Var2, "HAIR_P0_0_0", 16);
  			iVar6 = 0;
  			iVar7 = 0;
  			break;
  		
  		case 1:
  			StringCopy(&Var2, "HAIR_P0_1_0", 16);
  			iVar6 = 1;
  			iVar7 = 0;
  			break;
  		
  		case 2:
  			StringCopy(&Var2, "HAIR_P0_2_0", 16);
  			iVar6 = 2;
  			iVar7 = 0;
  			break;
  		
  		case 3:
  			StringCopy(&Var2, "HAIR_P0_3_0", 16);
  			iVar6 = 3;
  			iVar7 = 0;
  			break;
  		
  		case 4:
  			StringCopy(&Var2, "HAIR_P0_4_0", 16);
  			iVar6 = 4;
  			iVar7 = 0;
  			break;
  		
  		case 5:
  			StringCopy(&Var2, "NO_LABEL", 16);
  			iVar6 = 5;
  			iVar7 = 0;
  			break;
  		
  		default:
  			func_269(iVar10, iParam0, 6, -1);
  			return;
  			break;
  	}
  	func_263(&(Global_77669[0 /*14*/]), iVar10, iParam0, &Var2, iVar6, iVar7, iVar1, bVar0, iVar8, iVar9, 0);
  }
  
  void func_322(int iParam0)
  {
  	bool bVar0;
  	int iVar1;
  	struct<2> Var2;
  	int iVar6;
  	int iVar7;
  	int iVar8;
  	int iVar9;
  	int iVar10;
  	
  	bVar0 = false;
  	iVar1 = 10;
  	iVar6 = 0;
  	iVar7 = 0;
  	iVar8 = -1;
  	iVar9 = 2;
  	iVar10 = 0;
  	Global_77669[0 /*14*/].f_5 = 0;
  	switch (iParam0)
  	{
  		case 0:
  			StringCopy(&Var2, "NO_LABEL", 16);
  			iVar6 = 0;
  			iVar7 = 0;
  			break;
  		
  		case 1:
  			StringCopy(&Var2, "NO_LABEL", 16);
  			iVar6 = 0;
  			iVar7 = 1;
  			break;
  		
  		case 2:
  			StringCopy(&Var2, "NO_LABEL", 16);
  			iVar6 = 0;
  			iVar7 = 2;
  			break;
  		
  		case 3:
  			StringCopy(&Var2, "NO_LABEL", 16);
  			iVar6 = 0;
  			iVar7 = 3;
  			break;
  		
  		case 4:
  			StringCopy(&Var2, "NO_LABEL", 16);
  			iVar6 = 0;
  			iVar7 = 4;
  			break;
  		
  		case 5:
  			StringCopy(&Var2, "NO_LABEL", 16);
  			iVar6 = 0;
  			iVar7 = 5;
  			break;
  		
  		case 6:
  			StringCopy(&Var2, "NO_LABEL", 16);
  			iVar6 = 0;
  			iVar7 = 6;
  			break;
  		
  		default:
  			func_269(iVar10, iParam0, 7, -1);
  			return;
  			break;
  	}
  	func_263(&(Global_77669[0 /*14*/]), iVar10, iParam0, &Var2, iVar6, iVar7, iVar1, bVar0, iVar8, iVar9, 0);
  }
  
  void func_323()
  {
  	Global_77669[0 /*14*/].f_1 = -1;
  	Global_77669[0 /*14*/].f_2 = -1;
  	Global_77669[0 /*14*/].f_5 = -1;
  	Global_77669[0 /*14*/].f_3 = -1;
  	Global_77669[0 /*14*/].f_4 = -1;
  	Global_77669[0 /*14*/].f_7 = 0;
  	Global_77669[0 /*14*/].f_6 = 0;
  	Global_77669[0 /*14*/].f_13 = -1;
  	Global_77669[0 /*14*/].f_12 = 0;
  	Global_77669[0 /*14*/] = 0;
  	StringCopy(&(Global_77669[0 /*14*/].f_8), "NO_LABEL", 16);
  }
  
  int func_324(int iParam0, int iParam1, int iParam2)
  {
  	int iVar0;
  	int iVar1;
  	int iVar2;
  	int iVar3;
  	int iVar4;
  	var uVar5;
  	var uVar22;
  	int iVar32;
  	var uVar33;
  	
  	if (PED::IS_PED_INJURED(iParam0))
  	{
  		return 0;
  	}
  	iVar0 = ENTITY::GET_ENTITY_MODEL(iParam0);
  	Global_77669[1 /*14*/] = { func_260(iVar0, iParam1, iParam2, -1) };
  	if (!BitTest(Global_77669[1 /*14*/].f_6, 0))
  	{
  		return 0;
  	}
  	if (iParam1 == 12)
  	{
  		uVar5 = { func_245(iVar0, iParam2) };
  		iVar2 = 0;
  		while (iVar2 <= 14)
  		{
  			if ((uVar5[iVar2] != -99 && iVar2 != 12) && iVar2 != 14)
  			{
  				if (!func_324(iParam0, iVar2, uVar5[iVar2]))
  				{
  					if (iVar2 == 13)
  					{
  						uVar22 = { func_242(iVar0, uVar5[iVar2]) };
  						iVar3 = 0;
  						while (iVar3 <= 8)
  						{
  							if (!func_324(iParam0, 14, uVar22[iVar3]))
  							{
  								iVar4 = 0;
  								while (iVar4 <= 19)
  								{
  									Global_77669[2 /*14*/] = { func_260(iVar0, 14, iVar4, -1) };
  									if (Global_77669[2 /*14*/].f_12 == iVar3)
  									{
  										if (func_324(iParam0, 14, iVar4))
  										{
  											if (!func_219(iVar0, iParam2, 14, iVar4, &uVar5, &(Global_77669[2 /*14*/])))
  											{
  												return 0;
  											}
  										}
  									}
  									iVar4++;
  								}
  							}
  							iVar3++;
  						}
  					}
  					else
  					{
  						iVar1 = func_253(iParam0, iVar2);
  						Global_77669[2 /*14*/] = { func_260(iVar0, iVar2, iVar1, -1) };
  						if (!func_219(iVar0, iParam2, iVar2, iVar1, &uVar5, &(Global_77669[2 /*14*/])))
  						{
  							return 0;
  						}
  					}
  				}
  			}
  			iVar2++;
  		}
  		return 1;
  	}
  	else if (iParam1 == 13)
  	{
  		uVar33 = { func_242(iVar0, iParam2) };
  		iVar32 = 0;
  		while (iVar32 <= 8)
  		{
  			if (!func_324(iParam0, 14, uVar33[iVar32]))
  			{
  				return 0;
  			}
  			iVar32++;
  		}
  		return 1;
  	}
  	else if (iParam1 == 14)
  	{
  		if (PED::GET_PED_PROP_INDEX(iParam0, Global_77669[1 /*14*/].f_12) == Global_77669[1 /*14*/].f_3 && (PED::GET_PED_PROP_TEXTURE_INDEX(iParam0, Global_77669[1 /*14*/].f_12) == Global_77669[1 /*14*/].f_4 || Global_77669[1 /*14*/].f_3 == -1))
  		{
  			return 1;
  		}
  	}
  	else if (Global_77669[1 /*14*/].f_3 == PED::GET_PED_DRAWABLE_VARIATION(iParam0, func_223(iParam1)) && Global_77669[1 /*14*/].f_4 == PED::GET_PED_TEXTURE_VARIATION(iParam0, func_223(iParam1)))
  	{
  		return 1;
  	}
  	return 0;
  }
  
  void func_325(bool bParam0)
  {
  	int iVar0;
  	
  	iVar0 = PLAYER::GET_PLAYER_INDEX();
  	if (!PLAYER::IS_PLAYER_DEAD(iVar0))
  	{
  		if (bParam0)
  		{
  		}
  		PLAYER::SET_PLAYER_CONTROL(iVar0, bParam0, 16);
  		PLAYER::SET_PLAYER_CONTROL(iVar0, bParam0, 32);
  	}
  	func_6(1, 1, 0, 0, 0, 0, 0);
  }
  
  int func_326()
  {
  	int iVar0;
  	
  	iVar0 = MISC::GET_GAME_TIMER() + 100;
  	while (MISC::GET_GAME_TIMER() < iVar0)
  	{
  		switch (func_327(&iLocal_628, 0, 9, 0, 0))
  		{
  			case 1:
  				return 1;
  			
  			case 0:
  				return 0;
  			
  			default:
  		}
  		SYSTEM::WAIT(0);
  	}
  	return 0;
  }
  
  int func_327(int iParam0, int iParam1, int iParam2, bool bParam3, int iParam4)
  {
  	int iVar0;
  	
  	if (iParam1 == 7)
  	{
  		return 0;
  	}
  	if (!bParam3)
  	{
  		if (Global_97458.f_44 == 1)
  		{
  			return 2;
  		}
  	}
  	if (iParam1 == 0)
  	{
  		if (func_331(0))
  		{
  			return 0;
  		}
  		Global_42566++;
  		*iParam0 = Global_42566;
  		PLAYER::SET_PLAYER_INVINCIBLE(PLAYER::GET_PLAYER_INDEX(), false);
  		Global_22691.f_5 = 0;
  		if (iParam2 != 5)
  		{
  			PLAYER::FORCE_CLEANUP(8);
  		}
  		Global_42602 = iParam2;
  		Global_42564 = *iParam0;
  		Global_42565 = iParam4;
  		Global_42563 = 0;
  		return 1;
  	}
  	if (*iParam0 != -1)
  	{
  		if (Global_42563 > 0)
  		{
  			iVar0 = 0;
  			iVar0 = 0;
  			while (iVar0 < Global_42563)
  			{
  				if (Global_42569[iVar0 /*4*/] == *iParam0)
  				{
  					return 2;
  				}
  				iVar0++;
  			}
  		}
  		else if (Global_42564 == *iParam0)
  		{
  			return 1;
  		}
  		*iParam0 = -1;
  	}
  	if (*iParam0 == -1)
  	{
  		if (!func_329(iParam2))
  		{
  			return 0;
  		}
  		if (Global_42563 == 8)
  		{
  			return 0;
  		}
  		Global_42566++;
  		*iParam0 = Global_42566;
  		Global_42569[Global_42563 /*4*/] = Global_42566;
  		Global_42569[Global_42563 /*4*/].f_1 = iParam1;
  		Global_42569[Global_42563 /*4*/].f_2 = iParam2;
  		Global_42569[Global_42563 /*4*/].f_3 = 0;
  		Global_42563++;
  		if (iParam4 != 0)
  		{
  			func_328(iParam0, iParam4);
  		}
  	}
  	return 2;
  }
  
  void func_328(var uParam0, int iParam1)
  {
  	int iVar0;
  	
  	if (Global_42563 == 0)
  	{
  		return;
  	}
  	if (*uParam0 == -1)
  	{
  		return;
  	}
  	iVar0 = 0;
  	iVar0 = 0;
  	while (iVar0 < Global_42563)
  	{
  		if (Global_42569[iVar0 /*4*/] == *uParam0)
  		{
  			Global_42569[iVar0 /*4*/].f_3 = iParam1;
  		}
  		iVar0++;
  	}
  	*uParam0 = -1;
  }
  
  bool func_329(int iParam0)
  {
  	return func_330(iParam0, Global_42602);
  }
  
  int func_330(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;
  }
  
  int func_331(int iParam0)
  {
  	if (Global_42602 == 15)
  	{
  		return 0;
  	}
  	if (func_329(iParam0))
  	{
  		return 0;
  	}
  	return 1;
  }
  
  bool func_332(int iParam0)
  {
  	if (!ENTITY::DOES_ENTITY_EXIST(iParam0))
  	{
  		return 0;
  	}
  	return !ENTITY::IS_ENTITY_DEAD(iParam0, false);
  }
  
  void func_333()
  {
  	int iVar0;
  	bool bVar1;
  	int iVar2;
  	int iVar3;
  	struct<3> Var4;
  	int iVar7;
  	int iVar8;
  	var uVar9;
  	var uVar12;
  	int iVar15;
  	struct<3> Var16;
  	struct<3> Var19;
  	float fVar22;
  	int iVar23;
  	
  	while (CAM::IS_SCREEN_FADED_OUT() || func_390())
  	{
  		SYSTEM::WAIT(0);
  	}
  	func_179();
  	func_388(&(Local_562[0 /*24*/]), 1, "", func_389(157), 15, "", 0, 2.5f);
  	func_387(&(Local_562[0 /*24*/]), Local_76.f_26, 15f);
  	func_384(&uLocal_611, 1);
  	Local_76.f_336 = 1.5f;
  	while (true)
  	{
  		func_332(PLAYER::PLAYER_PED_ID());
  		if (NETWORK::NETWORK_IS_GAME_IN_PROGRESS())
  		{
  			if (func_377())
  			{
  				PLAYER::SET_PLAYER_CONTROL(PLAYER::PLAYER_ID(), true, 0);
  				func_391(0);
  			}
  		}
  		bVar1 = false;
  		if (PED::IS_PED_IN_ANY_VEHICLE(PLAYER::PLAYER_PED_ID(), false))
  		{
  			iVar3 = PED::GET_VEHICLE_PED_IS_IN(PLAYER::PLAYER_PED_ID(), false);
  			bVar1 = (func_374(iVar3) || func_373(iVar3));
  			bLocal_560 = VEHICLE::DOES_VEHICLE_HAVE_ROOF(iVar3);
  			func_28(bLocal_560);
  		}
  		func_88(&Local_76);
  		iVar2 = bLocal_558;
  		bLocal_558 = func_65(PLAYER::PLAYER_PED_ID());
  		if (iVar2 == 0 && bLocal_558 == 1)
  		{
  		}
  		if (iVar2 == 1 && bLocal_558 == 0)
  		{
  		}
  		if (bLocal_558)
  		{
  			if (iVar2 != bLocal_558)
  			{
  				Local_76.f_339 = 0;
  				func_197();
  			}
  			func_85(&Local_76, iVar3, fLocal_557);
  			if (func_16(&Local_76, iVar3))
  			{
  				if (Local_76.f_358 == 0)
  				{
  					func_114(2);
  				}
  				func_172(iVar3);
  				func_82(&Local_76);
  				func_24(PLAYER::PLAYER_PED_ID());
  				PLAYER::SET_PLAYER_CONTROL(PLAYER::PLAYER_ID(), true, 0);
  				TASK::CLEAR_PED_TASKS(PLAYER::PLAYER_PED_ID());
  			}
  		}
  		else
  		{
  			func_26(Local_76.f_340, 1);
  			func_24(PLAYER::PLAYER_PED_ID());
  			if (iVar2 == 1 && bLocal_558 == 0)
  			{
  				PLAYER::SET_PLAYER_CONTROL(PLAYER::PLAYER_ID(), true, 0);
  			}
  			if (func_372(&(Local_562[0 /*24*/])))
  			{
  				Var16 = { OBJECT::_GET_OBJECT_OFFSET_FROM_COORDS(Local_76.f_7[0 /*3*/] + Local_76.f_7[1 /*3*/] / Vector(2f, 2f, 2f), Local_76.f_24, Local_630) };
  				Var19 = { fLocal_633, SYSTEM::VDIST(Local_76.f_7[0 /*3*/], Local_76.f_7[1 /*3*/]), fLocal_634 };
  				fVar22 = Local_76.f_24;
  				if (iLocal_561 == 0)
  				{
  					if (MISC::GET_GAME_TIMER() > iVar0)
  					{
  						iLocal_561 = SHAPETEST::START_SHAPE_TEST_BOX(Var16, Var19, 0f, 0f, fVar22, 0, 18, iVar3, 4);
  					}
  				}
  				else
  				{
  					iVar7 = SHAPETEST::GET_SHAPE_TEST_RESULT(iLocal_561, &iVar15, &uVar9, &uVar12, &iVar8);
  					if (iVar7 == 2)
  					{
  						iLocal_559 = 0;
  						if (iVar15 > 0)
  						{
  							if (func_53(iVar8))
  							{
  								iLocal_559 = 1;
  							}
  						}
  						iLocal_561 = 0;
  					}
  					if (iVar7 == 0)
  					{
  						iLocal_561 = 0;
  					}
  					iVar0 = MISC::GET_GAME_TIMER() + 250;
  				}
  			}
  			Local_562[0 /*24*/].f_8 = iLocal_559;
  			if (!iLocal_559 && func_372(&(Local_562[0 /*24*/])))
  			{
  				iVar23 = func_371(&(Local_562[0 /*24*/]));
  				if (iVar23 > 1)
  				{
  				}
  			}
  			if (func_336(&Local_562, &uLocal_611, bVar1, 0, 0, 1424))
  			{
  				if (func_332(iVar3))
  				{
  					func_36(Local_76[0 /*3*/], Local_76[1 /*3*/], 3f, 0);
  					func_334(iVar3, &Local_76, 1);
  					func_80(PLAYER::PLAYER_PED_ID(), 1);
  					func_173(iVar3, &Local_76, 0);
  					fLocal_557 = VEHICLE::GET_VEHICLE_DIRT_LEVEL(iVar3);
  					Local_76.f_339 = 0;
  					Local_76.f_343 = 0;
  					iLocal_559 = 0;
  				}
  			}
  		}
  		Var4 = { ENTITY::GET_ENTITY_COORDS(PLAYER::PLAYER_PED_ID(), true) };
  		if (func_8(PLAYER::PLAYER_ID(), 0))
  		{
  			Var4.f_2 = 18.5f;
  		}
  		if (SYSTEM::VDIST2(Var4, -700.6f, -933.4f, 18.5f) > (90f * 90f))
  		{
  			func_391(0);
  		}
  		SYSTEM::WAIT(0);
  	}
  }
  
  void func_334(int iParam0, var uParam1, int iParam2)
  {
  	struct<3> Var0;
  	
  	if (func_332(iParam0))
  	{
  		func_34(&(uParam1->f_172[0 /*23*/]), &(uParam1->f_340), uParam1->f_342, 1, 1, 1);
  		Var0 = { ENTITY::GET_ENTITY_FORWARD_VECTOR(iParam0) };
  		if (!func_335(uParam1->f_26, Var0, 30f) || iParam2 == 1)
  		{
  			func_176(iParam0, MISC::_0x21C235BC64831E5A(ENTITY::GET_ENTITY_COORDS(iParam0, true), *(uParam1[0 /*3*/]), *(uParam1[1 /*3*/]), false) + Vector(0.1f, 0f, 0f));
  			ENTITY::SET_ENTITY_HEADING(iParam0, uParam1->f_24);
  			VEHICLE::SET_VEHICLE_ON_GROUND_PROPERLY(iParam0, 5f);
  			VEHICLE::SET_VEHICLE_FORWARD_SPEED(iParam0, 0f);
  		}
  		VEHICLE::SET_VEHICLE_DOORS_SHUT(iParam0, false);
  		uParam1->f_339 = 0;
  		uParam1->f_345 = 0;
  		uParam1->f_348 = 0;
  		uParam1->f_349 = 0;
  		if (Global_77858)
  		{
  			if (!NETWORK::NETWORK_HAS_CONTROL_OF_ENTITY(iParam0))
  			{
  				return;
  			}
  		}
  		func_32(iParam0, 2);
  		if (VEHICLE::IS_VEHICLE_A_CONVERTIBLE(iParam0, false))
  		{
  			VEHICLE::RAISE_CONVERTIBLE_ROOF(iParam0, false);
  		}
  	}
  }
  
  bool func_335(struct<3> Param0, struct<3> Param3, float fParam6)
  {
  	return MISC::ACOS(MISC::ABSF(func_106(Param3, Param0))) <= fParam6;
  }
  
  int func_336(var uParam0, var uParam1, bool bParam2, bool bParam3, bool bParam4, int iParam5)
  {
  	int iVar0;
  	var uVar1;
  	
  	if (uParam1->f_10)
  	{
  		iVar0 = 0;
  		iVar0 = 0;
  		while (iVar0 < *uParam0)
  		{
  			func_367(uParam0[iVar0 /*24*/]);
  			iVar0++;
  		}
  	}
  	switch (uParam1->f_13)
  	{
  		case 0:
  			iVar0 = 0;
  			if (func_359(uParam1->f_16))
  			{
  				iVar0 = 0;
  				while (iVar0 < *uParam0)
  				{
  					if (func_372(uParam0[iVar0 /*24*/]) && (*uParam0)[iVar0 /*24*/])
  					{
  						uParam1->f_12 = iVar0;
  						if (func_67(PLAYER::PLAYER_ID(), 21) || func_67(PLAYER::PLAYER_ID(), 25))
  						{
  							func_358(uParam1, 6);
  						}
  						else if ((uParam0[iVar0 /*24*/])->f_7 || (MISC::GET_MISSION_FLAG() && uParam1->f_16 == 0))
  						{
  							func_358(uParam1, 6);
  						}
  						else if (PLAYER::GET_PLAYER_WANTED_LEVEL(PLAYER::PLAYER_ID()) > 0)
  						{
  							func_358(uParam1, 8);
  						}
  						else if (bParam2)
  						{
  							func_358(uParam1, 3);
  						}
  						else if ((uParam0[iVar0 /*24*/])->f_8)
  						{
  							func_358(uParam1, 2);
  						}
  						else if (!func_356((uParam0[uParam1->f_12 /*24*/])->f_9))
  						{
  							func_358(uParam1, 1);
  						}
  						else if (func_354())
  						{
  							func_358(uParam1, 7);
  						}
  						else if (func_353(uParam0[iVar0 /*24*/], &uVar1))
  						{
  							func_358(uParam1, 4);
  						}
  					}
  					iVar0++;
  				}
  			}
  			else
  			{
  				func_352(uParam1);
  			}
  			break;
  		
  		case 2:
  			if (!uParam1->f_9)
  			{
  				func_350(uParam1, uParam1->f_6);
  			}
  			if (func_348(uParam0[uParam1->f_12 /*24*/]) || (uParam0[iVar0 /*24*/])->f_8 == 0)
  			{
  				func_358(uParam1, 0);
  				return 0;
  			}
  			break;
  		
  		case 1:
  			if (!uParam1->f_9)
  			{
  				func_343(uParam1, uParam1->f_2, (uParam0[uParam1->f_12 /*24*/])->f_9);
  			}
  			if (func_348(uParam0[uParam1->f_12 /*24*/]) || func_356((uParam0[uParam1->f_12 /*24*/])->f_9))
  			{
  				func_358(uParam1, 0);
  				return 0;
  			}
  			break;
  		
  		case 6:
  			if (!uParam1->f_9)
  			{
  				func_350(uParam1, uParam1->f_1);
  			}
  			if (func_348(uParam0[uParam1->f_12 /*24*/]) || !func_359(uParam1->f_16))
  			{
  				func_358(uParam1, 0);
  				return 0;
  			}
  			break;
  		
  		case 3:
  			if (!uParam1->f_9)
  			{
  				func_350(uParam1, uParam1->f_3);
  			}
  			if ((func_348(uParam0[uParam1->f_12 /*24*/]) || bParam2 == 0) || !func_359(uParam1->f_16))
  			{
  				func_358(uParam1, 0);
  				return 0;
  			}
  			break;
  		
  		case 7:
  			if (!uParam1->f_9)
  			{
  				func_350(uParam1, uParam1->f_5);
  			}
  			if (func_348(uParam0[uParam1->f_12 /*24*/]) || !func_359(uParam1->f_16))
  			{
  				func_358(uParam1, 0);
  				return 0;
  			}
  			break;
  		
  		case 8:
  			if (!uParam1->f_9)
  			{
  				func_350(uParam1, uParam1->f_4);
  			}
  			if (func_348(uParam0[uParam1->f_12 /*24*/]) || PLAYER::GET_PLAYER_WANTED_LEVEL(PLAYER::PLAYER_ID()) == 0)
  			{
  				func_358(uParam1, 0);
  				return 0;
  			}
  			break;
  		
  		case 9:
  			if (!uParam1->f_9)
  			{
  				if (func_342())
  				{
  					func_350(uParam1, uParam1->f_7);
  				}
  				else
  				{
  					func_350(uParam1, uParam1->f_8);
  				}
  			}
  			if (func_348(uParam0[uParam1->f_12 /*24*/]) || func_340(uParam0[uParam1->f_12 /*24*/]))
  			{
  				func_358(uParam1, 0);
  				return 0;
  			}
  			break;
  		
  		case 4:
  			PAD::SET_INPUT_EXCLUSIVE(2, 51);
  			PAD::DISABLE_CONTROL_ACTION(0, 101, true);
  			func_112();
  			if (PLAYER::GET_PLAYER_WANTED_LEVEL(PLAYER::PLAYER_ID()) > 0)
  			{
  				func_358(uParam1, 8);
  				return 0;
  			}
  			if ((uParam0[uParam1->f_12 /*24*/])->f_8)
  			{
  				func_358(uParam1, 2);
  				return 0;
  			}
  			if (func_348(uParam0[uParam1->f_12 /*24*/]) || !func_359(uParam1->f_16))
  			{
  				func_358(uParam1, 0);
  				return 0;
  			}
  			if (Global_75027)
  			{
  				return 0;
  			}
  			if ((uParam0[uParam1->f_12 /*24*/])->f_6 == 1)
  			{
  				if (!PED::IS_PED_IN_ANY_VEHICLE(PLAYER::PLAYER_PED_ID(), false) || func_339(PLAYER::PLAYER_PED_ID(), 0) != -1)
  				{
  					func_358(uParam1, 0);
  					return 0;
  				}
  			}
  			if ((uParam0[uParam1->f_12 /*24*/])->f_7 || (MISC::GET_MISSION_FLAG() && uParam1->f_16 == 0))
  			{
  				func_358(uParam1, 6);
  				return 0;
  			}
  			if (func_354())
  			{
  				func_358(uParam1, 7);
  				return 0;
  			}
  			if (!func_356((uParam0[uParam1->f_12 /*24*/])->f_9))
  			{
  				func_358(uParam1, 1);
  				return 0;
  			}
  			if (bParam2)
  			{
  				func_358(uParam1, 3);
  				return 0;
  			}
  			if (!bParam2 && !uParam1->f_9)
  			{
  				func_343(uParam1, *uParam1, (uParam0[uParam1->f_12 /*24*/])->f_9);
  			}
  			if ((uParam0[uParam1->f_12 /*24*/])->f_6 == 1)
  			{
  				if (PED::IS_PED_IN_ANY_VEHICLE(PLAYER::PLAYER_PED_ID(), false) && !PED::IS_PED_SITTING_IN_ANY_VEHICLE(PLAYER::PLAYER_PED_ID()))
  				{
  					return 0;
  				}
  			}
  			if (HUD::IS_PAUSE_MENU_ACTIVE() || PLAYER::IS_SYSTEM_UI_BEING_DISPLAYED())
  			{
  				return 0;
  			}
  			if (PED::IS_PED_ON_FOOT(PLAYER::PLAYER_PED_ID()))
  			{
  				if ((PED::IS_PED_FALLING(PLAYER::PLAYER_PED_ID()) || PED::IS_PED_JUMPING(PLAYER::PLAYER_PED_ID())) || PED::IS_PED_JUMPING_OUT_OF_VEHICLE(PLAYER::PLAYER_PED_ID()))
  				{
  					return 0;
  				}
  				if ((PED::IS_PED_RUNNING_RAGDOLL_TASK(PLAYER::PLAYER_PED_ID()) || PED::IS_PED_RAGDOLL(PLAYER::PLAYER_PED_ID())) || TASK::IS_PED_GETTING_UP(PLAYER::PLAYER_PED_ID()))
  				{
  					return 0;
  				}
  				if (PED::IS_PED_CLIMBING(PLAYER::PLAYER_PED_ID()))
  				{
  					return 0;
  				}
  				if (PED::IS_PED_DUCKING(PLAYER::PLAYER_PED_ID()) || PED::IS_PED_SWIMMING(PLAYER::PLAYER_PED_ID()))
  				{
  					return 0;
  				}
  				if (ENTITY::GET_ENTITY_SPEED(PLAYER::PLAYER_PED_ID()) > 0.05f)
  				{
  					return 0;
  				}
  			}
  			if ((PAD::IS_CONTROL_JUST_PRESSED(2, 51) && uParam1->f_9 == 1) && bParam2 == 0)
  			{
  				if (!func_340(uParam0[uParam1->f_12 /*24*/]))
  				{
  					func_358(uParam1, 9);
  				}
  				else
  				{
  					func_358(uParam1, 5);
  				}
  			}
  			break;
  		
  		case 5:
  			if (NETWORK::NETWORK_IS_GAME_IN_PROGRESS())
  			{
  				if (AUDIO::REQUEST_SCRIPT_AUDIO_BANK("SCRIPT\CARWASH", false, -1))
  				{
  				}
  			}
  			func_352(uParam1);
  			(uParam0[uParam1->f_12 /*24*/])->f_8 = 0;
  			if (!bParam4)
  			{
  				func_358(uParam1, 0);
  				return 1;
  			}
  			HUD::CLEAR_HELP(true);
  			MISC::CLEAR_AREA_OF_PROJECTILES(ENTITY::GET_ENTITY_COORDS(PLAYER::PLAYER_PED_ID(), true), 20f, 0);
  			if (!MISC::IS_STRING_NULL_OR_EMPTY((uParam0[uParam1->f_12 /*24*/])->f_5))
  			{
  				SCRIPT::REQUEST_SCRIPT((uParam0[uParam1->f_12 /*24*/])->f_5);
  				while (!SCRIPT::HAS_SCRIPT_LOADED((uParam0[uParam1->f_12 /*24*/])->f_5))
  				{
  					func_112();
  					if (func_332(PLAYER::PLAYER_PED_ID()))
  					{
  						if (PED::IS_PED_IN_ANY_VEHICLE(PLAYER::PLAYER_PED_ID(), false) && !Global_77858)
  						{
  							func_337(PED::GET_VEHICLE_PED_IS_IN(PLAYER::PLAYER_PED_ID(), false), 2f, 1, 1056964608, 0, 1, 0);
  						}
  					}
  					PAD::SET_INPUT_EXCLUSIVE(2, 51);
  					SCRIPT::REQUEST_SCRIPT((uParam0[uParam1->f_12 /*24*/])->f_5);
  					PAD::DISABLE_CONTROL_ACTION(0, 101, true);
  					PAD::DISABLE_CONTROL_ACTION(0, 75, true);
  					PAD::DISABLE_CONTROL_ACTION(0, 23, true);
  					SYSTEM::WAIT(0);
  				}
  				if (bParam3)
  				{
  					CAM::DO_SCREEN_FADE_OUT(250);
  				}
  				if (SCRIPT::HAS_SCRIPT_LOADED((uParam0[uParam1->f_12 /*24*/])->f_5))
  				{
  					if (bParam3)
  					{
  						while (!CAM::IS_SCREEN_FADED_OUT())
  						{
  							if (func_332(PLAYER::PLAYER_PED_ID()))
  							{
  								if (PED::IS_PED_IN_ANY_VEHICLE(PLAYER::PLAYER_PED_ID(), false) && !Global_77858)
  								{
  									func_337(PED::GET_VEHICLE_PED_IS_IN(PLAYER::PLAYER_PED_ID(), false), 2f, 1, 1056964608, 0, 1, 0);
  								}
  							}
  							PAD::SET_INPUT_EXCLUSIVE(2, 51);
  							PAD::DISABLE_CONTROL_ACTION(0, 101, true);
  							PAD::DISABLE_CONTROL_ACTION(0, 75, true);
  							PAD::DISABLE_CONTROL_ACTION(0, 23, true);
  							func_112();
  							SYSTEM::WAIT(0);
  						}
  					}
  					SYSTEM::START_NEW_SCRIPT((uParam0[uParam1->f_12 /*24*/])->f_5, iParam5);
  					SCRIPT::SET_SCRIPT_AS_NO_LONGER_NEEDED((uParam0[uParam1->f_12 /*24*/])->f_5);
  					return 1;
  				}
  			}
  			break;
  	}
  	return 0;
  }
  
  int func_337(int iParam0, float fParam1, int iParam2, float fParam3, bool bParam4, bool bParam5, bool bParam6)
  {
  	PAD::DISABLE_CONTROL_ACTION(0, 71, true);
  	PAD::DISABLE_CONTROL_ACTION(0, 72, true);
  	PAD::DISABLE_CONTROL_ACTION(0, 76, true);
  	PAD::DISABLE_CONTROL_ACTION(0, 73, true);
  	PAD::DISABLE_CONTROL_ACTION(0, 59, true);
  	PAD::DISABLE_CONTROL_ACTION(0, 60, true);
  	if (bParam5)
  	{
  		PAD::DISABLE_CONTROL_ACTION(0, 75, true);
  	}
  	PAD::DISABLE_CONTROL_ACTION(0, 80, true);
  	if (!bParam6)
  	{
  		PAD::DISABLE_CONTROL_ACTION(0, 69, true);
  		PAD::DISABLE_CONTROL_ACTION(0, 70, true);
  		PAD::DISABLE_CONTROL_ACTION(0, 68, true);
  	}
  	PAD::DISABLE_CONTROL_ACTION(0, 74, true);
  	PAD::DISABLE_CONTROL_ACTION(0, 86, true);
  	PAD::DISABLE_CONTROL_ACTION(0, 81, true);
  	PAD::DISABLE_CONTROL_ACTION(0, 82, true);
  	PAD::DISABLE_CONTROL_ACTION(0, 138, true);
  	PAD::DISABLE_CONTROL_ACTION(0, 136, true);
  	PAD::DISABLE_CONTROL_ACTION(0, 114, true);
  	PAD::DISABLE_CONTROL_ACTION(0, 107, true);
  	PAD::DISABLE_CONTROL_ACTION(0, 110, true);
  	PAD::DISABLE_CONTROL_ACTION(0, 89, true);
  	PAD::DISABLE_CONTROL_ACTION(0, 89, true);
  	PAD::DISABLE_CONTROL_ACTION(0, 87, true);
  	PAD::DISABLE_CONTROL_ACTION(0, 88, true);
  	PAD::DISABLE_CONTROL_ACTION(0, 113, true);
  	PAD::DISABLE_CONTROL_ACTION(0, 115, true);
  	PAD::DISABLE_CONTROL_ACTION(0, 116, true);
  	PAD::DISABLE_CONTROL_ACTION(0, 117, true);
  	PAD::DISABLE_CONTROL_ACTION(0, 118, true);
  	PAD::DISABLE_CONTROL_ACTION(0, 119, true);
  	PAD::DISABLE_CONTROL_ACTION(0, 352, true);
  	PAD::DISABLE_CONTROL_ACTION(0, 131, true);
  	PAD::DISABLE_CONTROL_ACTION(0, 132, true);
  	PAD::DISABLE_CONTROL_ACTION(0, 123, true);
  	PAD::DISABLE_CONTROL_ACTION(0, 126, true);
  	PAD::DISABLE_CONTROL_ACTION(0, 129, true);
  	PAD::DISABLE_CONTROL_ACTION(0, 130, true);
  	PAD::DISABLE_CONTROL_ACTION(0, 133, true);
  	PAD::DISABLE_CONTROL_ACTION(0, 134, true);
  	CAM::_0x17FCA7199A530203();
  	func_338(iParam0);
  	if ((MISC::GET_GAME_TIMER() - Global_29) > 500)
  	{
  		VEHICLE::BRING_VEHICLE_TO_HALT(iParam0, fParam1, iParam2, bParam4);
  	}
  	Global_29 = MISC::GET_GAME_TIMER();
  	if (!ENTITY::IS_ENTITY_DEAD(iParam0, false))
  	{
  		if (MISC::ABSF(ENTITY::GET_ENTITY_SPEED(iParam0)) <= fParam3)
  		{
  			return 1;
  		}
  	}
  	return 0;
  }
  
  void func_338(int iParam0)
  {
  	if (!ENTITY::IS_ENTITY_DEAD(iParam0, false))
  	{
  		if (VEHICLE::_GET_HAS_ROCKET_BOOST(iParam0))
  		{
  			if (VEHICLE::_IS_VEHICLE_ROCKET_BOOST_ACTIVE(iParam0))
  			{
  				VEHICLE::_SET_VEHICLE_ROCKET_BOOST_ACTIVE(iParam0, false);
  			}
  		}
  	}
  }
  
  int func_339(int iParam0, bool bParam1)
  {
  	int iVar0;
  	int iVar1;
  	int iVar2;
  	int iVar3;
  	
  	if (!PED::IS_PED_INJURED(iParam0))
  	{
  		if (PED::IS_PED_IN_ANY_VEHICLE(iParam0, bParam1))
  		{
  			iVar0 = PED::GET_VEHICLE_PED_IS_IN(iParam0, bParam1);
  			if (ENTITY::DOES_ENTITY_EXIST(iVar0))
  			{
  				iVar1 = VEHICLE::GET_VEHICLE_MODEL_NUMBER_OF_SEATS(ENTITY::GET_ENTITY_MODEL(iVar0));
  				if (iVar1 == 1)
  				{
  					iVar3 = -1;
  					return iVar3;
  				}
  				iVar2 = 0;
  				while (iVar2 < iVar1)
  				{
  					iVar3 = (iVar2 - 1);
  					if (!VEHICLE::IS_VEHICLE_SEAT_FREE(iVar0, iVar3, false))
  					{
  						if (VEHICLE::GET_PED_IN_VEHICLE_SEAT(iVar0, iVar3, false) == iParam0)
  						{
  							return iVar3;
  						}
  					}
  					iVar2++;
  				}
  			}
  		}
  	}
  	return iVar3;
  }
  
  int func_340(var uParam0)
  {
  	struct<3> Var0;
  	int iVar3;
  	int iVar4;
  	
  	iVar4 = PLAYER::PLAYER_PED_ID();
  	if (uParam0->f_15 == 360f)
  	{
  		return 1;
  	}
  	if (func_35(uParam0->f_12))
  	{
  		return 1;
  	}
  	if (PED::IS_PED_IN_ANY_VEHICLE(PLAYER::PLAYER_PED_ID(), false))
  	{
  		iVar3 = PED::GET_VEHICLE_PED_IS_IN(PLAYER::PLAYER_PED_ID(), false);
  		if (func_332(iVar3))
  		{
  			Var0 = { ENTITY::GET_ENTITY_ROTATION(iVar3, 2) };
  			if (Var0.f_1 > 45f || Var0.f_1 < -45f)
  			{
  				return 0;
  			}
  			iVar4 = iVar3;
  		}
  	}
  	Var0 = { ENTITY::GET_ENTITY_FORWARD_VECTOR(iVar4) };
  	if (func_341(uParam0->f_12, Var0) > SYSTEM::COS(uParam0->f_15))
  	{
  		return 1;
  	}
  	return 0;
  }
  
  float func_341(struct<2> Param0, var uParam2, struct<2> Param3, var uParam5)
  {
  	return ((Param0.f_0 * Param3.f_0) + (Param0.f_1 * Param3.f_1));
  }
  
  bool func_342()
  {
  	int iVar0;
  	
  	if (PED::IS_PED_IN_ANY_VEHICLE(PLAYER::PLAYER_PED_ID(), false))
  	{
  		iVar0 = PED::GET_VEHICLE_PED_IS_IN(PLAYER::PLAYER_PED_ID(), false);
  		return ENTITY::IS_ENTITY_UPRIGHT(iVar0, 90f);
  	}
  	return ENTITY::IS_ENTITY_UPRIGHT(PLAYER::PLAYER_PED_ID(), 90f);
  }
  
  int func_343(var uParam0, char* sParam1, int iParam2)
  {
  	if (MISC::IS_STRING_NULL_OR_EMPTY(sParam1))
  	{
  		return 0;
  	}
  	if (func_345(uParam0) || !HUD::IS_HELP_MESSAGE_BEING_DISPLAYED())
  	{
  		HUD::CLEAR_HELP(true);
  		func_344(sParam1, iParam2);
  		uParam0->f_14 = sParam1;
  		uParam0->f_15 = iParam2;
  		uParam0->f_9 = 1;
  		return 1;
  	}
  	return 0;
  }
  
  void func_344(char* sParam0, int iParam1)
  {
  	HUD::BEGIN_TEXT_COMMAND_DISPLAY_HELP(sParam0);
  	HUD::ADD_TEXT_COMPONENT_INTEGER(iParam1);
  	HUD::END_TEXT_COMMAND_DISPLAY_HELP(0, true, true, -1);
  }
  
  int func_345(var uParam0)
  {
  	if (MISC::IS_STRING_NULL_OR_EMPTY(uParam0->f_14))
  	{
  		return 0;
  	}
  	if (!HUD::IS_HELP_MESSAGE_BEING_DISPLAYED())
  	{
  		return 0;
  	}
  	if (MISC::ARE_STRINGS_EQUAL(*uParam0, uParam0->f_14) || MISC::ARE_STRINGS_EQUAL(uParam0->f_2, uParam0->f_14))
  	{
  		return func_347(uParam0->f_14, uParam0->f_15);
  	}
  	return func_346(uParam0->f_14);
  }
  
  bool func_346(char* sParam0)
  {
  	HUD::BEGIN_TEXT_COMMAND_IS_THIS_HELP_MESSAGE_BEING_DISPLAYED(sParam0);
  	return HUD::END_TEXT_COMMAND_IS_THIS_HELP_MESSAGE_BEING_DISPLAYED(0);
  }
  
  bool func_347(char* sParam0, int iParam1)
  {
  	HUD::BEGIN_TEXT_COMMAND_IS_THIS_HELP_MESSAGE_BEING_DISPLAYED(sParam0);
  	HUD::ADD_TEXT_COMPONENT_INTEGER(iParam1);
  	return HUD::END_TEXT_COMMAND_IS_THIS_HELP_MESSAGE_BEING_DISPLAYED(0);
  }
  
  bool func_348(var uParam0)
  {
  	struct<8> Var0;
  	
  	Var0 = 2;
  	if (uParam0->f_6 == 0)
  	{
  		if (PED::IS_PED_IN_ANY_VEHICLE(PLAYER::PLAYER_PED_ID(), false))
  		{
  			return 1;
  		}
  	}
  	else if (uParam0->f_6 == 1)
  	{
  		if (!PED::IS_PED_IN_ANY_VEHICLE(PLAYER::PLAYER_PED_ID(), false))
  		{
  			return 1;
  		}
  		if (func_339(PLAYER::PLAYER_PED_ID(), 0) != -1)
  		{
  			return 1;
  		}
  	}
  	if (uParam0->f_11 == 0)
  	{
  		return !func_96(PLAYER::PLAYER_PED_ID(), uParam0->f_1, (uParam0->f_10 + 2f));
  	}
  	Var0 = { func_349(uParam0->f_16, 2f) };
  	return !ENTITY::IS_ENTITY_IN_ANGLED_AREA(PLAYER::PLAYER_PED_ID(), Var0[0 /*3*/], Var0[1 /*3*/], Var0.f_7, false, true, 0);
  }
  
  struct<8> func_349(struct<8> Param0, float fParam8)
  {
  	struct<8> Var0;
  	struct<3> Var8;
  	
  	Var0 = 2;
  	Var8 = { func_37(Param0[1 /*3*/] - Param0[0 /*3*/]) * Vector(fParam8, fParam8, fParam8) };
  	Var0[0 /*3*/] = { Param0[0 /*3*/] - Var8 };
  	Var0[1 /*3*/] = { Param0[1 /*3*/] + Var8 };
  	Var0.f_7 = (Param0.f_7 + (fParam8 * 2f));
  	return Var0;
  }
  
  int func_350(var uParam0, char* sParam1)
  {
  	if (MISC::IS_STRING_NULL_OR_EMPTY(sParam1))
  	{
  		return 0;
  	}
  	if (func_345(uParam0) || !HUD::IS_HELP_MESSAGE_BEING_DISPLAYED())
  	{
  		HUD::CLEAR_HELP(true);
  		func_351(sParam1);
  		uParam0->f_14 = sParam1;
  		uParam0->f_15 = 0;
  		uParam0->f_9 = 1;
  		return 1;
  	}
  	return 0;
  }
  
  void func_351(char* sParam0)
  {
  	HUD::BEGIN_TEXT_COMMAND_DISPLAY_HELP(sParam0);
  	HUD::END_TEXT_COMMAND_DISPLAY_HELP(0, true, true, -1);
  }
  
  void func_352(var uParam0)
  {
  	if (func_345(uParam0))
  	{
  		HUD::CLEAR_HELP(true);
  	}
  	uParam0->f_14 = 0;
  	uParam0->f_15 = 0;
  	if (uParam0->f_9 == 1)
  	{
  		uParam0->f_9 = 0;
  	}
  }
  
  int func_353(var uParam0, var uParam1)
  {
  	int iVar0;
  	int iVar1;
  	int iVar2;
  	float fVar3;
  	float fVar4;
  	var uVar5[32];
  	
  	iVar2 = -1;
  	fVar4 = 1f;
  	if (!NETWORK::NETWORK_IS_GAME_IN_PROGRESS())
  	{
  		return 1;
  	}
  	if (!PED::IS_PED_IN_ANY_VEHICLE(PLAYER::PLAYER_PED_ID(), false))
  	{
  		return 0;
  	}
  	iVar0 = PED::GET_PED_NEARBY_VEHICLES(PLAYER::PLAYER_PED_ID(), &uVar5);
  	iVar1 = 0;
  	while (iVar1 < iVar0)
  	{
  		if (func_332(uVar5[iVar1]))
  		{
  			fVar3 = func_87(uVar5[iVar1], uParam0->f_1, 1);
  			if (fVar3 < fVar4 || fVar4 == -1f)
  			{
  				fVar4 = fVar3;
  				iVar2 = iVar1;
  			}
  		}
  		iVar1++;
  	}
  	if (iVar2 == -1)
  	{
  		return 0;
  	}
  	if (VEHICLE::GET_PED_IN_VEHICLE_SEAT(uVar5[iVar2], -1, false) != PLAYER::PLAYER_PED_ID())
  	{
  		return 0;
  	}
  	*uParam1 = uVar5[iVar2];
  	return 1;
  }
  
  bool func_354()
  {
  	int iVar0;
  	
  	if (!PED::IS_PED_IN_ANY_VEHICLE(PLAYER::PLAYER_PED_ID(), false))
  	{
  		return 0;
  	}
  	iVar0 = PED::GET_VEHICLE_PED_IS_IN(PLAYER::PLAYER_PED_ID(), false);
  	if (FIRE::IS_ENTITY_ON_FIRE(iVar0))
  	{
  		return 1;
  	}
  	if (func_355(iVar0))
  	{
  		return 1;
  	}
  	if (func_63(iVar0, 3))
  	{
  		return 1;
  	}
  	return !VEHICLE::IS_VEHICLE_DRIVEABLE(iVar0, false);
  }
  
  int func_355(int iParam0)
  {
  	if (ENTITY::DOES_ENTITY_EXIST(iParam0))
  	{
  		if (ENTITY::IS_ENTITY_DEAD(iParam0, false))
  		{
  			return 1;
  		}
  		else if (!VEHICLE::IS_VEHICLE_DRIVEABLE(iParam0, false))
  		{
  			if (!FIRE::IS_ENTITY_ON_FIRE(iParam0))
  			{
  				return 1;
  			}
  		}
  	}
  	else
  	{
  		return 1;
  	}
  	return 0;
  }
  
  bool func_356(int iParam0)
  {
  	if (NETWORK::NETWORK_IS_GAME_IN_PROGRESS())
  	{
  		return MONEY::NETWORK_GET_CAN_SPEND_FROM_BANK_AND_WALLET(iParam0, -1);
  	}
  	return func_357(func_161()) >= iParam0;
  }
  
  int func_357(int iParam0)
  {
  	var uVar0;
  	
  	switch (iParam0)
  	{
  		case 0:
  			STATS::STAT_GET_INT(joaat("sp0_total_cash"), &uVar0, -1);
  			return uVar0;
  		
  		case 1:
  			STATS::STAT_GET_INT(joaat("sp1_total_cash"), &uVar0, -1);
  			return uVar0;
  		
  		case 2:
  			STATS::STAT_GET_INT(joaat("sp2_total_cash"), &uVar0, -1);
  			return uVar0;
  		
  		default:
  	}
  	return 0;
  }
  
  void func_358(var uParam0, int iParam1)
  {
  	uParam0->f_13 = iParam1;
  	func_352(uParam0);
  }
  
  int func_359(int iParam0)
  {
  	if (iParam0 == 0)
  	{
  		if (func_366())
  		{
  			return 0;
  		}
  	}
  	if (HUD::IS_PAUSE_MENU_ACTIVE())
  	{
  		return 0;
  	}
  	if (PLAYER::IS_SYSTEM_UI_BEING_DISPLAYED())
  	{
  		return 0;
  	}
  	if (func_365())
  	{
  		return 0;
  	}
  	if (Global_62690)
  	{
  		return 0;
  	}
  	if (func_364(0))
  	{
  		return 0;
  	}
  	if (func_50(0))
  	{
  		return 0;
  	}
  	if (func_360(PLAYER::PLAYER_ID()))
  	{
  		return 0;
  	}
  	return 1;
  }
  
  int func_360(int iParam0)
  {
  	if (func_363(iParam0))
  	{
  		return 1;
  	}
  	if (func_361(iParam0))
  	{
  		return 1;
  	}
  	return 0;
  }
  
  int func_361(int iParam0)
  {
  	int iVar0;
  	
  	iVar0 = iParam0;
  	if (iVar0 != -1)
  	{
  		return func_362(iParam0, 9);
  	}
  	return 0;
  }
  
  var func_362(int iParam0, int iParam1)
  {
  	return BitTest(Global_1893551[iParam0 /*599*/].f_10.f_4, iParam1);
  }
  
  int func_363(var uParam0)
  {
  	int iVar0;
  	
  	iVar0 = uParam0;
  	if (iVar0 != -1)
  	{
  		return BitTest(Global_1893551[iVar0 /*599*/].f_1, 0);
  	}
  	return 0;
  }
  
  bool func_364(bool bParam0)
  {
  	if (bParam0)
  	{
  		return (Global_22691.f_4 && Global_22691.f_104 == 4);
  	}
  	return Global_22691.f_4;
  }
  
  bool func_365()
  {
  	return MISC::GET_GAME_TIMER() <= Global_22830.f_6141 + 100;
  }
  
  int func_366()
  {
  	if (Global_42602 == 15)
  	{
  		return 0;
  	}
  	return 1;
  }
  
  void func_367(var uParam0)
  {
  	if (uParam0->f_11 == 1)
  	{
  		func_368(&(uParam0->f_16), 255, 100, 0, 100);
  	}
  	else
  	{
  		func_101(uParam0->f_1, uParam0->f_10, 0, 0, 255, 255, 32);
  	}
  }
  
  void func_368(var uParam0, int iParam1, int iParam2, int iParam3, int iParam4)
  {
  	func_369(*(uParam0[0 /*3*/]), *(uParam0[1 /*3*/]), uParam0->f_7, iParam1, iParam2, iParam3, iParam4);
  }
  
  void func_369(struct<3> Param0, struct<3> Param3, float fParam6, int iParam7, int iParam8, int iParam9, int iParam10)
  {
  	struct<3> Var0;
  	struct<3> Var3;
  	float fVar6;
  	struct<3> Var7;
  	struct<3> Var10;
  	struct<3> Var13[8];
  	int iVar38;
  	
  	if (fParam6 == 0f)
  	{
  		return;
  	}
  	Var0 = { func_37(Param3 - Param0) };
  	Var3 = { func_370(Var0, 0f, 0f, 1f) };
  	fVar6 = (fParam6 / 2f);
  	Var7 = { Param0 };
  	Var10 = { Param3 };
  	Var10.f_2 = Param0.f_2;
  	Var13[0 /*3*/] = { Var7 - Var3 * Vector(fVar6, fVar6, fVar6) };
  	Var13[1 /*3*/] = { Var7 + Var3 * Vector(fVar6, fVar6, fVar6) };
  	Var13[2 /*3*/] = { Var10 + Var3 * Vector(fVar6, fVar6, fVar6) };
  	Var13[3 /*3*/] = { Var10 - Var3 * Vector(fVar6, fVar6, fVar6) };
  	GRAPHICS::DRAW_DEBUG_LINE(Var13[0 /*3*/], Var13[1 /*3*/], iParam7, iParam8, iParam9, iParam10);
  	GRAPHICS::DRAW_DEBUG_LINE(Var13[1 /*3*/], Var13[2 /*3*/], iParam7, iParam8, iParam9, iParam10);
  	GRAPHICS::DRAW_DEBUG_LINE(Var13[2 /*3*/], Var13[3 /*3*/], iParam7, iParam8, iParam9, iParam10);
  	GRAPHICS::DRAW_DEBUG_LINE(Var13[3 /*3*/], Var13[0 /*3*/], iParam7, iParam8, iParam9, iParam10);
  	iVar38 = 0;
  	while (iVar38 <= 3)
  	{
  		Var13[(4 + iVar38) /*3*/] = { Var13[iVar38 /*3*/] };
  		Var13[(4 + iVar38) /*3*/].f_2 = Param3.f_2;
  		iVar38++;
  	}
  	GRAPHICS::DRAW_DEBUG_LINE(Var13[4 /*3*/], Var13[5 /*3*/], iParam7, iParam8, iParam9, iParam10);
  	GRAPHICS::DRAW_DEBUG_LINE(Var13[5 /*3*/], Var13[6 /*3*/], iParam7, iParam8, iParam9, iParam10);
  	GRAPHICS::DRAW_DEBUG_LINE(Var13[6 /*3*/], Var13[7 /*3*/], iParam7, iParam8, iParam9, iParam10);
  	GRAPHICS::DRAW_DEBUG_LINE(Var13[7 /*3*/], Var13[4 /*3*/], iParam7, iParam8, iParam9, iParam10);
  	GRAPHICS::DRAW_DEBUG_LINE(Var13[0 /*3*/], Var13[4 /*3*/], iParam7, iParam8, iParam9, iParam10);
  	GRAPHICS::DRAW_DEBUG_LINE(Var13[1 /*3*/], Var13[5 /*3*/], iParam7, iParam8, iParam9, iParam10);
  	GRAPHICS::DRAW_DEBUG_LINE(Var13[2 /*3*/], Var13[6 /*3*/], iParam7, iParam8, iParam9, iParam10);
  	GRAPHICS::DRAW_DEBUG_LINE(Var13[3 /*3*/], Var13[7 /*3*/], iParam7, iParam8, iParam9, iParam10);
  }
  
  Vector3 func_370(struct<3> Param0, struct<3> Param3)
  {
  	return ((Param0.f_1 * Param3.f_2) - (Param0.f_2 * Param3.f_1)), ((Param0.f_2 * Param3.f_0) - (Param0.f_0 * Param3.f_2)), ((Param0.f_0 * Param3.f_1) - (Param0.f_1 * Param3.f_0));
  }
  
  int func_371(var uParam0)
  {
  	int iVar0;
  	int iVar1;
  	var uVar2[32];
  	float fVar35;
  	int iVar36;
  	
  	iVar0 = PED::GET_PED_NEARBY_VEHICLES(PLAYER::PLAYER_PED_ID(), &uVar2);
  	iVar1 = 0;
  	while (iVar1 < iVar0)
  	{
  		if (func_332(uVar2[iVar1]))
  		{
  			fVar35 = func_87(uVar2[iVar1], uParam0->f_1, 1);
  			if (fVar35 <= (uParam0->f_10 * 2.5f))
  			{
  				iVar36++;
  			}
  		}
  		iVar1++;
  	}
  	return iVar36;
  }
  
  bool func_372(var uParam0)
  {
  	func_332(PLAYER::PLAYER_PED_ID());
  	if (*uParam0 == 0)
  	{
  		return 0;
  	}
  	if (func_364(0))
  	{
  		return 0;
  	}
  	if (func_365())
  	{
  		return 0;
  	}
  	if (uParam0->f_6 == 0)
  	{
  		if (PED::IS_PED_IN_ANY_VEHICLE(PLAYER::PLAYER_PED_ID(), false))
  		{
  			return 0;
  		}
  	}
  	else if (uParam0->f_6 == 1)
  	{
  		if (!PED::IS_PED_IN_ANY_VEHICLE(PLAYER::PLAYER_PED_ID(), false))
  		{
  			return 0;
  		}
  		if (func_339(PLAYER::PLAYER_PED_ID(), 0) != -1)
  		{
  			return 0;
  		}
  	}
  	if (uParam0->f_11 == 1)
  	{
  		return ENTITY::IS_ENTITY_IN_ANGLED_AREA(PLAYER::PLAYER_PED_ID(), uParam0->f_16[0 /*3*/], uParam0->f_16[1 /*3*/], uParam0->f_16.f_7, false, true, 0);
  	}
  	return func_96(PLAYER::PLAYER_PED_ID(), uParam0->f_1, uParam0->f_10);
  }
  
  int func_373(int iParam0)
  {
  	if (!VEHICLE::IS_THIS_MODEL_A_CAR(ENTITY::GET_ENTITY_MODEL(iParam0)))
  	{
  		return 1;
  	}
  	if (VEHICLE::IS_VEHICLE_DOOR_DAMAGED(iParam0, 0))
  	{
  		return 1;
  	}
  	if (VEHICLE::IS_VEHICLE_DOOR_DAMAGED(iParam0, 1))
  	{
  		return 1;
  	}
  	if (VEHICLE::IS_VEHICLE_DOOR_DAMAGED(iParam0, 2))
  	{
  		return 1;
  	}
  	if (VEHICLE::IS_VEHICLE_DOOR_DAMAGED(iParam0, 3))
  	{
  		return 1;
  	}
  	if (VEHICLE::IS_VEHICLE_A_CONVERTIBLE(iParam0, true))
  	{
  		if (VEHICLE::GET_CONVERTIBLE_ROOF_STATE(iParam0) == 6)
  		{
  			return 1;
  		}
  	}
  	return 0;
  }
  
  int func_374(int iParam0)
  {
  	struct<3> Var0;
  	struct<3> Var3;
  	
  	if (!func_5(iParam0))
  	{
  		return 0;
  	}
  	if (!VEHICLE::DOES_VEHICLE_HAVE_ROOF(iParam0))
  	{
  		return 1;
  	}
  	if (VEHICLE::IS_VEHICLE_ATTACHED_TO_TRAILER(iParam0))
  	{
  		return 1;
  	}
  	if (!VEHICLE::IS_THIS_MODEL_A_CAR(ENTITY::GET_ENTITY_MODEL(iParam0)))
  	{
  		return 1;
  	}
  	if (FIRE::IS_ENTITY_ON_FIRE(iParam0))
  	{
  		return 1;
  	}
  	if (func_375(iParam0))
  	{
  		return 1;
  	}
  	MISC::GET_MODEL_DIMENSIONS(ENTITY::GET_ENTITY_MODEL(iParam0), &Var0, &Var3);
  	if (ENTITY::GET_ENTITY_MODEL(iParam0) != joaat("zeno"))
  	{
  		if (MISC::ABSF((Var3.f_0 - Var0.f_0)) > 3.4f)
  		{
  			return 1;
  		}
  	}
  	if (MISC::ABSF((Var3.f_2 - Var0.f_2)) > 2.9f)
  	{
  		return 1;
  	}
  	if (Global_77858)
  	{
  		if (!NETWORK::NETWORK_HAS_CONTROL_OF_ENTITY(iParam0))
  		{
  			return 0;
  		}
  	}
  	if (VEHICLE::IS_VEHICLE_A_CONVERTIBLE(iParam0, true) && !VEHICLE::DOES_VEHICLE_HAVE_ROOF(iParam0))
  	{
  		return 1;
  	}
  	if (!VEHICLE::IS_VEHICLE_A_CONVERTIBLE(iParam0, true) && !VEHICLE::DOES_VEHICLE_HAVE_ROOF(iParam0))
  	{
  		return 1;
  	}
  	if (ENTITY::GET_ENTITY_MODEL(iParam0) == joaat("btype") || ENTITY::GET_ENTITY_MODEL(iParam0) == joaat("btype3"))
  	{
  		if (((((func_5(VEHICLE::GET_PED_IN_VEHICLE_SEAT(iParam0, 3, false)) || func_5(VEHICLE::GET_PED_IN_VEHICLE_SEAT(iParam0, 4, false))) || func_5(VEHICLE::GET_PED_IN_VEHICLE_SEAT(iParam0, 5, false))) || func_5(VEHICLE::GET_PED_IN_VEHICLE_SEAT(iParam0, 6, false))) || func_5(VEHICLE::GET_PED_IN_VEHICLE_SEAT(iParam0, 7, false))) || func_5(VEHICLE::GET_PED_IN_VEHICLE_SEAT(iParam0, 8, false)))
  		{
  			return 1;
  		}
  	}
  	return 0;
  }
  
  int func_375(int iParam0)
  {
  	int iVar0;
  	
  	iVar0 = ENTITY::GET_ENTITY_MODEL(iParam0);
  	if (func_376(iVar0))
  	{
  		return 1;
  	}
  	if (iVar0 == joaat("regina"))
  	{
  		if (VEHICLE::IS_VEHICLE_EXTRA_TURNED_ON(iParam0, 2))
  		{
  			return 1;
  		}
  		if (VEHICLE::IS_VEHICLE_EXTRA_TURNED_ON(iParam0, 3) && VEHICLE::IS_VEHICLE_EXTRA_TURNED_ON(iParam0, 4))
  		{
  			return 1;
  		}
  	}
  	if (iVar0 == joaat("banshee") && VEHICLE::IS_VEHICLE_EXTRA_TURNED_ON(iParam0, 1))
  	{
  		return 1;
  	}
  	if (iVar0 == joaat("peyote") && VEHICLE::IS_VEHICLE_EXTRA_TURNED_ON(iParam0, 1))
  	{
  		return 1;
  	}
  	if (iVar0 == joaat("coquette") && !VEHICLE::DOES_VEHICLE_HAVE_ROOF(iParam0))
  	{
  		return 1;
  	}
  	if (iVar0 == joaat("manana") && VEHICLE::IS_VEHICLE_EXTRA_TURNED_ON(iParam0, 1))
  	{
  		return 1;
  	}
  	if (iVar0 == joaat("mesa") && !VEHICLE::IS_VEHICLE_EXTRA_TURNED_ON(iParam0, 1))
  	{
  		return 1;
  	}
  	if (iVar0 == joaat("voltic") && VEHICLE::IS_VEHICLE_EXTRA_TURNED_ON(iParam0, 1))
  	{
  		return 1;
  	}
  	if (iVar0 == joaat("bobcatxl") && !VEHICLE::IS_VEHICLE_EXTRA_TURNED_ON(iParam0, 1))
  	{
  		return 1;
  	}
  	if (iVar0 == joaat("ruiner"))
  	{
  		if (VEHICLE::IS_VEHICLE_EXTRA_TURNED_ON(iParam0, 3) && !VEHICLE::IS_VEHICLE_EXTRA_TURNED_ON(iParam0, 7))
  		{
  			return 0;
  		}
  		return 1;
  	}
  	if (iVar0 == joaat("yosemite3"))
  	{
  		if (VEHICLE::GET_VEHICLE_MOD(iParam0, 5) == 4)
  		{
  			return 1;
  		}
  	}
  	if (iVar0 == joaat("rt3000") && VEHICLE::GET_VEHICLE_MOD(iParam0, 10) == 3)
  	{
  		return 1;
  	}
  	return 0;
  }
  
  int func_376(int iParam0)
  {
  	if (!VEHICLE::IS_THIS_MODEL_A_CAR(iParam0))
  	{
  		return 1;
  	}
  	switch (iParam0)
  	{
  		case joaat("ambulance"):
  		case joaat("armytrailer"):
  		case joaat("airtug"):
  		case joaat("bifta"):
  		case joaat("bison2"):
  		case joaat("bison3"):
  		case joaat("bodhi2"):
  		case joaat("boxville"):
  		case joaat("boxville2"):
  		case joaat("boxville3"):
  		case joaat("bulldozer"):
  		case joaat("caddy"):
  		case joaat("caddy2"):
  		case joaat("cutter"):
  		case joaat("dilettante2"):
  		case joaat("dubsta3"):
  		case joaat("dump"):
  		case joaat("dune"):
  		case joaat("dloader"):
  		case joaat("forklift"):
  		case joaat("guardian"):
  		case joaat("graintrailer"):
  		case joaat("handler"):
  		case joaat("insurgent"):
  		case joaat("insurgent2"):
  		case joaat("kalahari"):
  		case joaat("mesa3"):
  		case joaat("mixer"):
  		case joaat("mixer2"):
  		case joaat("mower"):
  		case joaat("packer"):
  		case joaat("pbus"):
  		case joaat("ratloader"):
  		case joaat("rentalbus"):
  		case joaat("rhino"):
  		case joaat("ripley"):
  		case joaat("riot"):
  		case joaat("sadler"):
  		case joaat("sadler2"):
  		case joaat("sandking"):
  		case joaat("sandking2"):
  		case joaat("scrap"):
  		case joaat("stockade"):
  		case joaat("stockade3"):
  		case joaat("technical"):
  		case joaat("tractor"):
  		case joaat("tractor2"):
  		case joaat("tornado4"):
  		case joaat("tourbus"):
  		case joaat("limo2"):
  		case joaat("raptor"):
  		case joaat("ratloader2"):
  		case joaat("dune3"):
  		case joaat("dune4"):
  		case joaat("dune5"):
  		case joaat("vigilante"):
  		case joaat("deluxo"):
  		case joaat("caracara"):
  		case joaat("scramjet"):
  		case joaat("menacer"):
  		case joaat("caracara2"):
  		case joaat("locust"):
  		case joaat("jugular"):
  		case joaat("zorrusso"):
  		case joaat("formula"):
  		case joaat("everon"):
  		case joaat("zhaba"):
  		case joaat("outlaw"):
  		case joaat("vagrant"):
  		case joaat("formula2"):
  		case joaat("minitank"):
  		case joaat("peyote3"):
  		case joaat("youga3"):
  		case joaat("openwheel1"):
  		case joaat("openwheel2"):
  		case joaat("winky"):
  		case joaat("slamtruck"):
  		case joaat("veto"):
  		case joaat("veto2"):
  		case joaat("squaddie"):
  		case joaat("comet7"):
  			return 1;
  			break;
  	}
  	return 0;
  }
  
  int func_377()
  {
  	if (Global_1575030 == 0)
  	{
  		if (!NETWORK::NETWORK_IS_GAME_IN_PROGRESS())
  		{
  			return 1;
  		}
  	}
  	if (func_383())
  	{
  		return 1;
  	}
  	if (Global_2727490)
  	{
  		return 1;
  	}
  	if (func_382())
  	{
  		return 1;
  	}
  	if (func_381(159))
  	{
  		if (!func_380())
  		{
  			return 1;
  		}
  	}
  	if (func_381(157))
  	{
  		return 1;
  	}
  	if (!NETWORK::NETWORK_IS_SIGNED_ONLINE())
  	{
  		return 1;
  	}
  	if (func_378() != 0)
  	{
  		if (SCRIPT::_GET_NUMBER_OF_REFERENCES_OF_SCRIPT_WITH_NAME_HASH(func_378()) == 0)
  		{
  			return 1;
  		}
  	}
  	return 0;
  }
  
  int func_378()
  {
  	switch (func_21())
  	{
  		case 0:
  			return func_379();
  			break;
  		
  		case 2:
  			return joaat("creator");
  			break;
  	}
  	return 0;
  }
  
  int func_379()
  {
  	switch (Global_2727594)
  	{
  		case 0:
  			return joaat("freemode");
  		
  		default:
  	}
  	return joaat("freemode");
  }
  
  bool func_380()
  {
  	return Global_2714635.f_698;
  }
  
  int func_381(int iParam0)
  {
  	if (SCRIPT::GET_EVENT_EXISTS(1, iParam0))
  	{
  		return 1;
  	}
  	return 0;
  }
  
  bool func_382()
  {
  	return Global_2725233;
  }
  
  bool func_383()
  {
  	return Global_2714635.f_693;
  }
  
  void func_384(var uParam0, int iParam1)
  {
  	*uParam0 = "CWASH_RIDEHLP";
  	uParam0->f_1 = "";
  	uParam0->f_3 = "CWASH_NOWAY";
  	uParam0->f_4 = "CWASH_WANTED";
  	uParam0->f_5 = "CWASH_CARBROKE";
  	uParam0->f_6 = "CWASH_BLOCKED";
  	uParam0->f_7 = "CWASH_WRONGWAY";
  	uParam0->f_8 = "CWASH_UPSIDEDO";
  	uParam0->f_16 = iParam1;
  	if (!Global_77858)
  	{
  		uParam0->f_2 = "CWASH_NOMONEY";
  		return;
  	}
  	if (MISC::IS_PS3_VERSION() || func_386())
  	{
  		uParam0->f_2 = "CWASH_POOR_PSN";
  	}
  	else if (MISC::IS_XBOX360_VERSION() || func_385())
  	{
  		uParam0->f_2 = "CWASH_POOR_XBX";
  	}
  	else
  	{
  		uParam0->f_2 = "CWASH_POOR_STD";
  	}
  }
  
  bool func_385()
  {
  	return (MISC::IS_DURANGO_VERSION() || unk_0xC545AB1CF97ABB34());
  }
  
  bool func_386()
  {
  	return (MISC::IS_ORBIS_VERSION() || unk_0x807ABE1AB65C24D2());
  }
  
  void func_387(var uParam0, struct<3> Param1, float fParam4)
  {
  	uParam0->f_12 = { func_37(Param1 * Vector(5f, 5f, 5f)) };
  	uParam0->f_15 = func_91(fParam4, 0f, 360f);
  }
  
  void func_388(var uParam0, int iParam1, char* sParam2, struct<3> Param3, int iParam6, char* sParam7, int iParam8, float fParam9)
  {
  	uParam0->f_5 = sParam2;
  	uParam0->f_1 = { Param3 };
  	uParam0->f_4 = sParam7;
  	uParam0->f_9 = iParam6;
  	uParam0->f_7 = iParam8;
  	uParam0->f_6 = iParam1;
  	uParam0->f_11 = 0;
  	*uParam0 = 1;
  	uParam0->f_12 = { 0f, 0f, 0f };
  	uParam0->f_15 = 360f;
  	if (iParam1 == 0)
  	{
  		uParam0->f_10 = 2.75f;
  	}
  	else
  	{
  		uParam0->f_10 = (2.75f * 2f);
  	}
  	if (fParam9 > 0f)
  	{
  		uParam0->f_10 = fParam9;
  	}
  }
  
  Vector3 func_389(int iParam0)
  {
  	int iVar0;
  	
  	iVar0 = iParam0;
  	return Global_31890[iVar0 /*23*/][0 /*3*/];
  }
  
  var func_390()
  {
  	return Global_1575054;
  }
  
  void func_391(int iParam0)
  {
  	func_395(&Local_76);
  	func_394(&Local_76, iParam0);
  	func_393(&uLocal_439);
  	if (Global_77858 == 0)
  	{
  		func_392(&iLocal_628);
  	}
  	SCRIPT::TERMINATE_THIS_THREAD();
  }
  
  void func_392(int iParam0)
  {
  	if (*iParam0 == -1)
  	{
  		return;
  	}
  	if (!*iParam0 == Global_42564)
  	{
  		*iParam0 = -1;
  		return;
  	}
  	*iParam0 = -1;
  	Global_42563 = 0;
  	Global_42565 = 0;
  	Global_42602 = 15;
  	Global_62693 = 0;
  	Global_62694 = 0;
  }
  
  void func_393(var uParam0)
  {
  	bool bVar0;
  	
  	bVar0 = false;
  	while (bVar0 < *uParam0)
  	{
  		func_181(uParam0, bVar0);
  		bVar0++;
  	}
  }
  
  void func_394(var uParam0, int iParam1)
  {
  	struct<3> Var0;
  	int iVar3;
  	
  	func_395(uParam0);
  	if (Global_77858)
  	{
  		iVar3 = NETWORK::NETWORK_GET_PLAYER_INDEX_FROM_PED(PLAYER::PLAYER_PED_ID());
  		if (iVar3 != func_25())
  		{
  			if (Global_2689224[iVar3 /*451*/].f_241 == 1)
  			{
  				Global_2689224[iVar3 /*451*/].f_241 = 0;
  			}
  		}
  	}
  	if (iParam1 == 1)
  	{
  		TASK::CLEAR_PED_TASKS(PLAYER::PLAYER_PED_ID());
  		func_175(PED::GET_VEHICLE_PED_IS_IN(PLAYER::PLAYER_PED_ID(), false), uParam0, 1f, 0f);
  		VEHICLE::SET_VEHICLE_ON_GROUND_PROPERLY(PED::GET_VEHICLE_PED_IS_IN(PLAYER::PLAYER_PED_ID(), false), 5f);
  		ENTITY::SET_ENTITY_VELOCITY(PED::GET_VEHICLE_PED_IS_IN(PLAYER::PLAYER_PED_ID(), false), 0f, 0f, 0f);
  		SYSTEM::WAIT(0);
  		func_69(PLAYER::PLAYER_PED_ID());
  		Var0 = { ENTITY::GET_ENTITY_COORDS(PED::GET_VEHICLE_PED_IS_IN(PLAYER::PLAYER_PED_ID(), false), true) };
  		Var0.f_2 = -200f;
  		ENTITY::SET_ENTITY_COORDS(PED::GET_VEHICLE_PED_IS_IN(PLAYER::PLAYER_PED_ID(), false), Var0, true, false, false, true);
  		func_57(PED::GET_VEHICLE_PED_IS_IN(PLAYER::PLAYER_PED_ID(), false), 500f, 0f);
  		func_32(PED::GET_VEHICLE_PED_IS_IN(PLAYER::PLAYER_PED_ID(), false), 1);
  		SYSTEM::WAIT(125);
  		CAM::DO_SCREEN_FADE_IN(500);
  		SYSTEM::WAIT(1000);
  		func_17(302, 0, 0);
  		func_114(uParam0->f_351);
  	}
  	else if (!NETWORK::NETWORK_IS_GAME_IN_PROGRESS())
  	{
  		TASK::CLEAR_PED_TASKS(PLAYER::PLAYER_PED_ID());
  	}
  	if (!Global_77858)
  	{
  		BRAIN::_0x6D6840CEE8845831("launcher_CarWash");
  	}
  }
  
  void func_395(var uParam0)
  {
  	int iVar0;
  	int iVar1;
  	
  	if (!NETWORK::NETWORK_IS_GAME_IN_PROGRESS())
  	{
  		func_3(1, 1, 1, 1);
  	}
  	func_24(PLAYER::PLAYER_PED_ID());
  	func_402(0);
  	uParam0->f_348 = 0;
  	uParam0->f_349 = 0;
  	func_83(uParam0, 0);
  	func_82(uParam0);
  	func_81(uParam0);
  	func_399(&(uParam0->f_120));
  	func_396(&(uParam0->f_93));
  	func_72(&(uParam0->f_51));
  	func_72(&(uParam0->f_30));
  	func_72(&(uParam0->f_72));
  	func_38(uParam0->f_334, 0, 0, 1, 0);
  	func_29(&(uParam0->f_340), 0);
  	if (AUDIO::IS_AUDIO_SCENE_ACTIVE("CAR_WASH_SCENE"))
  	{
  		AUDIO::STOP_AUDIO_SCENE("CAR_WASH_SCENE");
  	}
  	if (ENTITY::DOES_ENTITY_EXIST(PLAYER::PLAYER_PED_ID()))
  	{
  		ENTITY::IS_ENTITY_DEAD(PLAYER::PLAYER_PED_ID(), false);
  		if (PED::IS_PED_IN_ANY_VEHICLE(PLAYER::PLAYER_PED_ID(), false))
  		{
  			iVar0 = PED::GET_VEHICLE_PED_IS_IN(PLAYER::PLAYER_PED_ID(), false);
  			if (func_332(iVar0))
  			{
  				func_32(iVar0, 1);
  				func_172(iVar0);
  			}
  		}
  	}
  	if (Global_77858)
  	{
  		iVar1 = NETWORK::NETWORK_GET_PLAYER_INDEX_FROM_PED(PLAYER::PLAYER_PED_ID());
  		if (iVar1 != func_25())
  		{
  			if (Global_2689224[iVar1 /*451*/].f_241 == 1)
  			{
  				Global_2689224[iVar1 /*451*/].f_241 = 0;
  			}
  		}
  	}
  	iVar0 = PLAYER::GET_PLAYERS_LAST_VEHICLE();
  	if (func_332(iVar0))
  	{
  		func_32(iVar0, 1);
  		func_172(iVar0);
  	}
  	PATHFIND::SET_PED_PATHS_BACK_TO_ORIGINAL(uParam0->f_352, uParam0->f_355, 0);
  	TASK::SET_SCENARIO_TYPE_ENABLED("DRIVE", true);
  	TASK::SET_SCENARIO_TYPE_ENABLED("WORLD_VEHICLE_DRIVE_SOLO", true);
  }
  
  void func_396(var uParam0)
  {
  	func_397(uParam0);
  	func_74(&(uParam0->f_19));
  }
  
  void func_397(var uParam0)
  {
  	*uParam0 = 3;
  	func_398(uParam0);
  }
  
  void func_398(var uParam0)
  {
  	if (func_79(*uParam0))
  	{
  		func_78(&(uParam0->f_21));
  		func_76(&(uParam0->f_17));
  		func_76(&(uParam0->f_16));
  		func_76(&(uParam0->f_18));
  		*uParam0 = 0;
  	}
  }
  
  void func_399(var uParam0)
  {
  	func_400(uParam0);
  	func_74(&(uParam0->f_3[0]));
  	func_74(&(uParam0->f_3[1]));
  }
  
  void func_400(var uParam0)
  {
  	uParam0->f_2 = 0;
  	func_401(uParam0);
  	func_74(&(uParam0->f_1));
  }
  
  void func_401(var uParam0)
  {
  	if (func_79(uParam0->f_2))
  	{
  		func_78(&(uParam0->f_6[0]));
  		func_78(&(uParam0->f_6[1]));
  		func_76(&(uParam0->f_28));
  		func_76(&(uParam0->f_27));
  		func_76(&(uParam0->f_29));
  		uParam0->f_2 = 0;
  	}
  }
  
  void func_402(bool bParam0)
  {
  	if (bParam0)
  	{
  		func_403();
  		if (Global_19954.f_1 == 10 || Global_19954.f_1 == 9)
  		{
  			MISC::SET_BIT(&Global_7825, 16);
  		}
  		Global_19954.f_1 = 1;
  		if (func_50(0))
  		{
  			func_47(0);
  		}
  	}
  	else if (Global_19954.f_1 == 1)
  	{
  		if (!Global_19954.f_1 == 0)
  		{
  			Global_19954.f_1 = 3;
  		}
  	}
  }
  
  void func_403()
  {
  	if (Global_19954.f_1 == 9 || Global_19954.f_1 == 10)
  	{
  		Global_21338 = 0;
  		Global_21334 = 1;
  	}
  }
  
  