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;
  	var uLocal_39 = 0;
  	var uLocal_40 = 0;
  	var uLocal_41 = 0;
  	var uLocal_42 = 0;
  	var uLocal_43 = 0;
  	int iLocal_44 = 0;
  	int iLocal_45 = 0;
  	int iLocal_46 = 0;
  	int iLocal_47 = 0;
  	var uLocal_48 = 0;
  	var uLocal_49 = 0;
  	var uLocal_50 = 0;
  	var uLocal_51 = 16;
  	var uLocal_52 = 0;
  	var uLocal_53 = 0;
  	var uLocal_54 = 0;
  	var uLocal_55 = 0;
  	var uLocal_56 = 0;
  	var uLocal_57 = 0;
  	var uLocal_58 = 0;
  	var uLocal_59 = 0;
  	var uLocal_60 = 0;
  	var uLocal_61 = 0;
  	var uLocal_62 = 0;
  	var uLocal_63 = 0;
  	var uLocal_64 = 0;
  	var uLocal_65 = 0;
  	var uLocal_66 = 0;
  	var uLocal_67 = 0;
  	var uLocal_68 = 0;
  	var uLocal_69 = 0;
  	var uLocal_70 = 0;
  	var uLocal_71 = 0;
  	var uLocal_72 = 0;
  	var uLocal_73 = 0;
  	var uLocal_74 = 0;
  	var uLocal_75 = 0;
  	var uLocal_76 = 0;
  	var uLocal_77 = 0;
  	var uLocal_78 = 0;
  	var uLocal_79 = 0;
  	var uLocal_80 = 0;
  	var uLocal_81 = 0;
  	var uLocal_82 = 0;
  	var uLocal_83 = 0;
  	var uLocal_84 = 0;
  	var uLocal_85 = 0;
  	var uLocal_86 = 0;
  	var uLocal_87 = 0;
  	var uLocal_88 = 0;
  	var uLocal_89 = 0;
  	var uLocal_90 = 0;
  	var uLocal_91 = 0;
  	var uLocal_92 = 0;
  	var uLocal_93 = 0;
  	var uLocal_94 = 0;
  	var uLocal_95 = 0;
  	var uLocal_96 = 0;
  	var uLocal_97 = 0;
  	var uLocal_98 = 0;
  	var uLocal_99 = 0;
  	var uLocal_100 = 0;
  	var uLocal_101 = 0;
  	var uLocal_102 = 0;
  	var uLocal_103 = 0;
  	var uLocal_104 = 0;
  	var uLocal_105 = 0;
  	var uLocal_106 = 0;
  	var uLocal_107 = 0;
  	var uLocal_108 = 0;
  	var uLocal_109 = 0;
  	var uLocal_110 = 0;
  	var uLocal_111 = 0;
  	var uLocal_112 = 0;
  	var uLocal_113 = 0;
  	var uLocal_114 = 0;
  	var uLocal_115 = 0;
  	var uLocal_116 = 0;
  	var uLocal_117 = 0;
  	var uLocal_118 = 0;
  	var uLocal_119 = 0;
  	var uLocal_120 = 0;
  	var uLocal_121 = 0;
  	var uLocal_122 = 0;
  	var uLocal_123 = 0;
  	var uLocal_124 = 0;
  	var uLocal_125 = 0;
  	var uLocal_126 = 0;
  	var uLocal_127 = 0;
  	var uLocal_128 = 0;
  	var uLocal_129 = 0;
  	var uLocal_130 = 0;
  	var uLocal_131 = 0;
  	var uLocal_132 = 0;
  	var uLocal_133 = 0;
  	var uLocal_134 = 0;
  	var uLocal_135 = 0;
  	var uLocal_136 = 0;
  	var uLocal_137 = 0;
  	var uLocal_138 = 0;
  	var uLocal_139 = 0;
  	var uLocal_140 = 0;
  	var uLocal_141 = 0;
  	var uLocal_142 = 0;
  	var uLocal_143 = 0;
  	var uLocal_144 = 0;
  	var uLocal_145 = 0;
  	var uLocal_146 = 0;
  	var uLocal_147 = 0;
  	var uLocal_148 = 0;
  	var uLocal_149 = 0;
  	var uLocal_150 = 0;
  	var uLocal_151 = 0;
  	var uLocal_152 = 0;
  	var uLocal_153 = 0;
  	var uLocal_154 = 0;
  	var uLocal_155 = 0;
  	var uLocal_156 = 0;
  	var uLocal_157 = 0;
  	var uLocal_158 = 0;
  	var uLocal_159 = 0;
  	var uLocal_160 = 0;
  	var uLocal_161 = 0;
  	var uLocal_162 = 0;
  	var uLocal_163 = 0;
  	var uLocal_164 = 0;
  	var uLocal_165 = 0;
  	var uLocal_166 = 0;
  	var uLocal_167 = 0;
  	var uLocal_168 = 0;
  	var uLocal_169 = 16;
  	var uLocal_170 = 0;
  	var uLocal_171 = 0;
  	var uLocal_172 = 0;
  	var uLocal_173 = 0;
  	var uLocal_174 = 0;
  	var uLocal_175 = 0;
  	var uLocal_176 = 0;
  	var uLocal_177 = 0;
  	var uLocal_178 = 0;
  	var uLocal_179 = 0;
  	var uLocal_180 = 0;
  	var uLocal_181 = 0;
  	var uLocal_182 = 0;
  	var uLocal_183 = 0;
  	var uLocal_184 = 0;
  	var uLocal_185 = 0;
  	var uLocal_186 = 0;
  	var uLocal_187 = 0;
  	var uLocal_188 = 0;
  	var uLocal_189 = 0;
  	var uLocal_190 = 0;
  	var uLocal_191 = 0;
  	var uLocal_192 = 0;
  	var uLocal_193 = 0;
  	var uLocal_194 = 0;
  	var uLocal_195 = 0;
  	var uLocal_196 = 0;
  	var uLocal_197 = 0;
  	var uLocal_198 = 0;
  	var uLocal_199 = 0;
  	var uLocal_200 = 0;
  	var uLocal_201 = 0;
  	var uLocal_202 = 0;
  	var uLocal_203 = 0;
  	var uLocal_204 = 0;
  	var uLocal_205 = 0;
  	var uLocal_206 = 0;
  	var uLocal_207 = 0;
  	var uLocal_208 = 0;
  	var uLocal_209 = 0;
  	var uLocal_210 = 0;
  	var uLocal_211 = 0;
  	var uLocal_212 = 0;
  	var uLocal_213 = 0;
  	var uLocal_214 = 0;
  	var uLocal_215 = 0;
  	var uLocal_216 = 0;
  	var uLocal_217 = 0;
  	var uLocal_218 = 0;
  	var uLocal_219 = 0;
  	var uLocal_220 = 0;
  	var uLocal_221 = 0;
  	var uLocal_222 = 0;
  	var uLocal_223 = 0;
  	var uLocal_224 = 0;
  	var uLocal_225 = 0;
  	var uLocal_226 = 0;
  	var uLocal_227 = 0;
  	var uLocal_228 = 0;
  	var uLocal_229 = 0;
  	var uLocal_230 = 0;
  	var uLocal_231 = 0;
  	var uLocal_232 = 0;
  	var uLocal_233 = 0;
  	var uLocal_234 = 0;
  	var uLocal_235 = 0;
  	var uLocal_236 = 0;
  	var uLocal_237 = 0;
  	var uLocal_238 = 0;
  	var uLocal_239 = 0;
  	var uLocal_240 = 0;
  	var uLocal_241 = 0;
  	var uLocal_242 = 0;
  	var uLocal_243 = 0;
  	var uLocal_244 = 0;
  	var uLocal_245 = 0;
  	var uLocal_246 = 0;
  	var uLocal_247 = 0;
  	var uLocal_248 = 0;
  	var uLocal_249 = 0;
  	var uLocal_250 = 0;
  	var uLocal_251 = 0;
  	var uLocal_252 = 0;
  	var uLocal_253 = 0;
  	var uLocal_254 = 0;
  	var uLocal_255 = 0;
  	var uLocal_256 = 0;
  	var uLocal_257 = 0;
  	var uLocal_258 = 0;
  	var uLocal_259 = 0;
  	var uLocal_260 = 0;
  	var uLocal_261 = 0;
  	var uLocal_262 = 0;
  	var uLocal_263 = 0;
  	var uLocal_264 = 0;
  	var uLocal_265 = 0;
  	var uLocal_266 = 0;
  	var uLocal_267 = 0;
  	var uLocal_268 = 0;
  	var uLocal_269 = 0;
  	var uLocal_270 = 0;
  	var uLocal_271 = 0;
  	var uLocal_272 = 0;
  	var uLocal_273 = 0;
  	var uLocal_274 = 0;
  	var uLocal_275 = 0;
  	var uLocal_276 = 0;
  	var uLocal_277 = 0;
  	var uLocal_278 = 0;
  	var uLocal_279 = 0;
  	var uLocal_280 = 0;
  	var uLocal_281 = 0;
  	var uLocal_282 = 0;
  	var uLocal_283 = 0;
  	var uLocal_284 = 0;
  	var uLocal_285 = 0;
  	var uLocal_286 = 0;
  	int iLocal_287 = 0;
  	int iLocal_288 = 0;
  	char* sLocal_289 = NULL;
  	int iLocal_290[16] = { 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 };
  	var uLocal_307 = 0;
  	float fLocal_308 = 0f;
  	struct<3> Local_309 = { 0, 0, 0 } ;
  	struct<3> Local_312 = { 0, 0, 0 } ;
  	struct<3> Local_315 = { 0, 0, 0 } ;
  	float fLocal_318 = 0f;
  	int iLocal_319 = 0;
  	int iLocal_320 = 0;
  	int iLocal_321 = 0;
  	int iLocal_322 = 0;
  	bool bLocal_323 = 0;
  	var uLocal_324 = 0;
  	struct<22> Local_325 = { 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 } ;
  	var uLocal_347 = 0;
  	var uLocal_348 = 0;
  	var uLocal_349 = 0;
  	var uLocal_350 = 0;
  	var uLocal_351 = 0;
  	var uLocal_352 = 0;
  	var uLocal_353 = 0;
  	var uLocal_354 = 0;
  	var uLocal_355 = 0;
  	var uLocal_356 = 0;
  	var uLocal_357 = 2;
  	var uLocal_358 = 0;
  	var uLocal_359 = 0;
  	var uLocal_360 = 0;
  	var uLocal_361 = 0;
  	var uLocal_362 = 0;
  	var uLocal_363 = 0;
  	var uLocal_364 = 2;
  	var uLocal_365 = 0;
  	var uLocal_366 = 0;
  	var uLocal_367 = 0;
  	var uLocal_368 = 0;
  	var uLocal_369 = 0;
  	var uLocal_370 = 0;
  	var uLocal_371 = 2;
  	var uLocal_372 = 0;
  	var uLocal_373 = 0;
  	var uLocal_374 = 0;
  	var uLocal_375 = 0;
  	var uLocal_376 = 0;
  	var uLocal_377 = 0;
  	var uLocal_378 = -1027211264;
  	var uLocal_379 = 0;
  	var uLocal_380 = 0;
  	var uLocal_381 = 0;
  	var uLocal_382 = 0;
  	var uLocal_383 = 0;
  	var uLocal_384 = 0;
  	var uLocal_385 = 0;
  	var uLocal_386 = 0;
  	var uLocal_387 = 0;
  	var uLocal_388 = 0;
  	var uLocal_389 = 0;
  	var uLocal_390 = 0;
  	var uLocal_391 = 0;
  	var uLocal_392 = 0;
  	var uLocal_393 = 0;
  	var uLocal_394 = 0;
  	var uLocal_395 = 0;
  	int iLocal_396 = 0;
  	int iLocal_397 = 0;
  	int iLocal_398 = 0;
  	char* sLocal_399 = NULL;
  	char cLocal_400[24] = "";
  	var uLocal_403 = 0;
  	var uLocal_404 = 0;
  	var uLocal_405 = 0;
  	char cLocal_406[24] = "";
  	var uLocal_409 = 0;
  	var uLocal_410 = 0;
  	var uLocal_411 = 0;
  	char cLocal_412[24] = "";
  	var uLocal_415 = 0;
  	var uLocal_416 = 0;
  	var uLocal_417 = 0;
  	var uLocal_418 = 0;
  	var uLocal_419 = 0;
  	var uLocal_420 = 0;
  	int iLocal_421 = 0;
  	var uLocal_422 = 0;
  	var uLocal_423 = 0;
  	struct<2> Local_424 = { 0, 0 } ;
  	var uLocal_426 = 0;
  	var uLocal_427 = 0;
  	int iLocal_428 = 0;
  	int iLocal_429 = 0;
  	var uLocal_430 = 0;
  	var uLocal_431 = 0;
  	var uLocal_432 = 12;
  	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 = 0;
  	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;
  	var uLocal_557 = 0;
  	var uLocal_558 = 0;
  	var uLocal_559 = 0;
  	var uLocal_560 = 0;
  	var uLocal_561 = 0;
  	var uLocal_562 = 0;
  	var uLocal_563 = 0;
  	var uLocal_564 = 0;
  	var uLocal_565 = 0;
  	var uLocal_566 = 0;
  	var uLocal_567 = 0;
  	var uLocal_568 = 0;
  	var uLocal_569 = 0;
  	var uLocal_570 = 0;
  	var uLocal_571 = 0;
  	var uLocal_572 = 0;
  	var uLocal_573 = 0;
  	var uLocal_574 = 0;
  	var uLocal_575 = 0;
  	var uLocal_576 = 0;
  	var uLocal_577 = 0;
  	var uLocal_578 = 0;
  	var uLocal_579 = 0;
  	var uLocal_580 = 0;
  	var uLocal_581 = 0;
  	var uLocal_582 = 0;
  	var uLocal_583 = 0;
  	var uLocal_584 = 0;
  	var uLocal_585 = 0;
  	var uLocal_586 = 0;
  	var uLocal_587 = 0;
  	var uLocal_588 = 0;
  	var uLocal_589 = 0;
  	var uLocal_590 = 0;
  	var uLocal_591 = 0;
  	var uLocal_592 = 0;
  	var uLocal_593 = 0;
  	var uLocal_594 = 0;
  	var uLocal_595 = 0;
  	var uLocal_596 = 0;
  	var uLocal_597 = 0;
  	var uLocal_598 = 0;
  	var uLocal_599 = 0;
  	var uLocal_600 = 0;
  	var uLocal_601 = 0;
  	var uLocal_602 = 0;
  	var uLocal_603 = 0;
  	var uLocal_604 = 0;
  	var uLocal_605 = 0;
  	var uLocal_606 = 0;
  	var uLocal_607 = 0;
  	var uLocal_608 = 0;
  	var uLocal_609 = 0;
  	var uLocal_610 = 0;
  	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 = 0;
  	var uLocal_624 = 0;
  	var uLocal_625 = 0;
  	var uLocal_626 = 0;
  	var uLocal_627 = 0;
  	var uLocal_628 = 0;
  	var uLocal_629 = 0;
  	var uLocal_630 = 0;
  	var uLocal_631 = 0;
  	var uLocal_632 = 0;
  	var uLocal_633 = 0;
  	var uLocal_634 = 0;
  	var uLocal_635 = 0;
  	var uLocal_636 = 0;
  	var uLocal_637 = 0;
  	var uLocal_638 = 0;
  	var uLocal_639 = 0;
  	var uLocal_640 = 0;
  	var uLocal_641 = 0;
  	var uLocal_642 = 0;
  	var uLocal_643 = 0;
  	var uLocal_644 = 0;
  	var uLocal_645 = 0;
  	var uLocal_646 = 0;
  	var uLocal_647 = 0;
  	var uLocal_648 = 0;
  	var uLocal_649 = 0;
  	var uLocal_650 = 0;
  	var uLocal_651 = 0;
  	var uLocal_652 = 0;
  	var uLocal_653 = 0;
  	var uLocal_654 = 0;
  	var uLocal_655 = 0;
  	var uLocal_656 = 0;
  	var uLocal_657 = 0;
  	var uLocal_658 = 0;
  	var uLocal_659 = 0;
  	var uLocal_660 = 0;
  	var uLocal_661 = 0;
  	var uLocal_662 = 0;
  	var uLocal_663 = 0;
  	var uLocal_664 = 0;
  	var uLocal_665 = 0;
  	var uLocal_666 = 0;
  	var uLocal_667 = 0;
  	var uLocal_668 = 0;
  	var uLocal_669 = 0;
  	var uLocal_670 = 0;
  	var uLocal_671 = 0;
  	var uLocal_672 = 0;
  	var uLocal_673 = 0;
  	var uLocal_674 = 0;
  	var uLocal_675 = 0;
  	var uLocal_676 = 0;
  	var uLocal_677 = 0;
  	var uLocal_678 = 0;
  	var uLocal_679 = 0;
  	var uLocal_680 = 0;
  	var uLocal_681 = 0;
  	var uLocal_682 = 0;
  	var uLocal_683 = 0;
  	var uLocal_684 = 0;
  	var uLocal_685 = 0;
  	var uLocal_686 = 0;
  	var uLocal_687 = 0;
  	var uLocal_688 = 0;
  	var uLocal_689 = 0;
  	var uLocal_690 = 0;
  	var uLocal_691 = 0;
  	var uLocal_692 = 0;
  	var uLocal_693 = 0;
  	var uLocal_694 = 0;
  	var uLocal_695 = 0;
  	var uLocal_696 = 0;
  	var uLocal_697 = 0;
  	var uLocal_698 = 0;
  	var uLocal_699 = 0;
  	var uLocal_700 = 0;
  	var uLocal_701 = 0;
  	var uLocal_702 = 0;
  	var uLocal_703 = 0;
  	var uLocal_704 = 0;
  	var uLocal_705 = 0;
  	var uLocal_706 = 0;
  	var uLocal_707 = 0;
  	var uLocal_708 = 0;
  	var uLocal_709 = 0;
  	var uLocal_710 = 0;
  	var uLocal_711 = 0;
  	var uLocal_712 = 0;
  	var uLocal_713 = 0;
  	var uLocal_714 = 0;
  	var uLocal_715 = 0;
  	var uLocal_716 = 0;
  	var uLocal_717 = 0;
  	var uLocal_718 = 0;
  	var uLocal_719 = 0;
  	var uLocal_720 = 0;
  	var uLocal_721 = 0;
  	var uLocal_722 = 0;
  	var uLocal_723 = 0;
  	var uLocal_724 = 0;
  	var uLocal_725 = 0;
  	var uLocal_726 = 0;
  	var uLocal_727 = 0;
  	var uLocal_728 = 0;
  	var uLocal_729 = 0;
  	var uLocal_730 = 0;
  	var uLocal_731 = 0;
  	var uLocal_732 = 0;
  	var uLocal_733 = 0;
  	var uLocal_734 = 0;
  	var uLocal_735 = 0;
  	var uLocal_736 = 0;
  	var uLocal_737 = 0;
  	var uLocal_738 = 0;
  	var uLocal_739 = 0;
  	var uLocal_740 = 0;
  	var uLocal_741 = 0;
  	var uLocal_742 = 0;
  	var uLocal_743 = 0;
  	var uLocal_744 = 0;
  	var uLocal_745 = 0;
  	var uLocal_746 = 0;
  	var uLocal_747 = 0;
  	var uLocal_748 = 0;
  	var uLocal_749 = 0;
  	var uLocal_750 = 0;
  	var uLocal_751 = 0;
  	var uLocal_752 = 0;
  	var uLocal_753 = 0;
  	var uLocal_754 = 0;
  	var uLocal_755 = 0;
  	var uLocal_756 = 0;
  	var uLocal_757 = 0;
  	var uLocal_758 = 0;
  	var uLocal_759 = 0;
  	var uLocal_760 = 0;
  	var uLocal_761 = 0;
  	var uLocal_762 = 0;
  	var uLocal_763 = 0;
  	var uLocal_764 = 0;
  	var uLocal_765 = 0;
  	var uLocal_766 = 0;
  	var uLocal_767 = 0;
  	var uLocal_768 = 0;
  	var uLocal_769 = 0;
  	var uLocal_770 = 0;
  	var uLocal_771 = 0;
  	var uLocal_772 = 0;
  	var uLocal_773 = 0;
  	var uLocal_774 = 0;
  	var uLocal_775 = 0;
  	var uLocal_776 = 0;
  	var uLocal_777 = 0;
  	var uLocal_778 = 0;
  	var uLocal_779 = 0;
  	var uLocal_780 = 0;
  	var uLocal_781 = 0;
  	var uLocal_782 = 0;
  	var uLocal_783 = 0;
  	var uLocal_784 = 0;
  	var uLocal_785 = 0;
  	var uLocal_786 = 0;
  	var uLocal_787 = 0;
  	var uLocal_788 = 0;
  	var uLocal_789 = 0;
  	var uLocal_790 = 0;
  	var uLocal_791 = 0;
  	var uLocal_792 = 0;
  	var uLocal_793 = 0;
  	var uLocal_794 = 0;
  	var uLocal_795 = 0;
  	var uLocal_796 = 0;
  	var uLocal_797 = 0;
  	var uLocal_798 = 0;
  	var uLocal_799 = 0;
  	var uLocal_800 = 0;
  	var uLocal_801 = 0;
  	var uLocal_802 = 0;
  	var uLocal_803 = 0;
  	var uLocal_804 = 0;
  	var uLocal_805 = 0;
  	var uLocal_806 = 0;
  	var uLocal_807 = 0;
  	var uLocal_808 = 0;
  	var uLocal_809 = 0;
  	var uLocal_810 = 0;
  	var uLocal_811 = 0;
  	var uLocal_812 = 0;
  	var uLocal_813 = 0;
  	var uLocal_814 = 0;
  	var uLocal_815 = 0;
  	var uLocal_816 = 0;
  	var uLocal_817 = 0;
  	var uLocal_818 = 0;
  	var uLocal_819 = 0;
  	var uLocal_820 = 0;
  	var uLocal_821 = 0;
  	var uLocal_822 = 0;
  	var uLocal_823 = 0;
  	var uLocal_824 = 0;
  	var uLocal_825 = 0;
  	var uLocal_826 = 0;
  	var uLocal_827 = 0;
  	var uLocal_828 = 0;
  	var uLocal_829 = 0;
  	var uLocal_830 = 0;
  	var uLocal_831 = 0;
  	var uLocal_832 = 0;
  	var uLocal_833 = 0;
  	var uLocal_834 = 0;
  	var uLocal_835 = 0;
  	var uLocal_836 = 0;
  	var uLocal_837 = 0;
  	var uLocal_838 = 0;
  	var uLocal_839 = 0;
  	var uLocal_840 = 0;
  	var uLocal_841 = 0;
  	var uLocal_842 = 0;
  	var uLocal_843 = 0;
  	var uLocal_844 = 0;
  	var uLocal_845 = 0;
  	var uLocal_846 = 0;
  	var uLocal_847 = 0;
  	var uLocal_848 = 0;
  	var uLocal_849 = 0;
  	var uLocal_850 = 0;
  	var uLocal_851 = 0;
  	var uLocal_852 = 0;
  	var uLocal_853 = 0;
  	var uLocal_854 = 0;
  	var uLocal_855 = 0;
  	var uLocal_856 = 0;
  	var uLocal_857 = 0;
  	var uLocal_858 = 0;
  	var uLocal_859 = 0;
  	var uLocal_860 = 0;
  	var uLocal_861 = 0;
  	var uLocal_862 = 0;
  	var uLocal_863 = 0;
  	var uLocal_864 = 0;
  	var uLocal_865 = 0;
  	var uLocal_866 = 0;
  	var uLocal_867 = 0;
  	var uLocal_868 = 0;
  	var uLocal_869 = 0;
  	var uLocal_870 = 0;
  	var uLocal_871 = 0;
  	var uLocal_872 = 0;
  	var uLocal_873 = 0;
  	var uLocal_874 = 0;
  	var uLocal_875 = 0;
  	var uLocal_876 = 0;
  	var uLocal_877 = 0;
  	var uLocal_878 = 0;
  	var uLocal_879 = 0;
  	var uLocal_880 = 0;
  	var uLocal_881 = 0;
  	var uLocal_882 = 0;
  	var uLocal_883 = 0;
  	var uLocal_884 = 0;
  	var uLocal_885 = 0;
  	var uLocal_886 = 0;
  	var uLocal_887 = 0;
  	var uLocal_888 = 0;
  	var uLocal_889 = 0;
  	var uLocal_890 = 0;
  	var uLocal_891 = 0;
  	var uLocal_892 = 0;
  	var uLocal_893 = 0;
  	var uLocal_894 = 0;
  	var uLocal_895 = 0;
  	var uLocal_896 = 0;
  	var uLocal_897 = 0;
  	var uLocal_898 = 0;
  	var uLocal_899 = 0;
  	var uLocal_900 = 0;
  	var uLocal_901 = 0;
  	var uLocal_902 = 0;
  	var uLocal_903 = 0;
  	var uLocal_904 = 0;
  	var uLocal_905 = 0;
  	var uLocal_906 = 0;
  	var uLocal_907 = 0;
  	var uLocal_908 = 0;
  	var uLocal_909 = 0;
  	var uLocal_910 = 0;
  	var uLocal_911 = 0;
  	var uLocal_912 = 0;
  	var uLocal_913 = 0;
  	var uLocal_914 = 0;
  	var uLocal_915 = 0;
  	var uLocal_916 = 0;
  	var uLocal_917 = 0;
  	var uLocal_918 = 0;
  	var uLocal_919 = 0;
  	var uLocal_920 = 0;
  	var uLocal_921 = 0;
  	var uLocal_922 = 0;
  	var uLocal_923 = 0;
  	var uLocal_924 = 0;
  	var uLocal_925 = 0;
  	var uLocal_926 = 0;
  	var uLocal_927 = 0;
  	var uLocal_928 = 0;
  	var uLocal_929 = 0;
  	var uLocal_930 = 0;
  	var uLocal_931 = 0;
  	var uLocal_932 = 0;
  	var uLocal_933 = 0;
  	var uLocal_934 = 0;
  	var uLocal_935 = 0;
  	var uLocal_936 = 0;
  	var uLocal_937 = 0;
  	var uLocal_938 = 0;
  	var uLocal_939 = 0;
  	var uLocal_940 = 0;
  	var uLocal_941 = 0;
  	var uLocal_942 = 0;
  	var uLocal_943 = 0;
  	var uLocal_944 = 0;
  	var uLocal_945 = 0;
  	var uLocal_946 = 0;
  	var uLocal_947 = 0;
  	var uLocal_948 = 0;
  	var uLocal_949 = 0;
  	var uLocal_950 = 0;
  	var uLocal_951 = 0;
  	var uLocal_952 = 0;
  	var uLocal_953 = 0;
  	var uLocal_954 = 0;
  	var uLocal_955 = 0;
  	var uLocal_956 = 0;
  	var uLocal_957 = 0;
  	var uLocal_958 = 0;
  	var uLocal_959 = 0;
  	var uLocal_960 = 0;
  	var uLocal_961 = 0;
  	var uLocal_962 = 0;
  	var uLocal_963 = 0;
  	var uLocal_964 = 0;
  	var uLocal_965 = 0;
  	var uLocal_966 = 0;
  	var uLocal_967 = 0;
  	var uLocal_968 = 0;
  	var uLocal_969 = 0;
  	var uLocal_970 = 0;
  	var uLocal_971 = 0;
  	var uLocal_972 = 0;
  	var uLocal_973 = 0;
  	var uLocal_974 = 0;
  	var uLocal_975 = 0;
  	var uLocal_976 = 0;
  	var uLocal_977 = 0;
  	var uLocal_978 = 0;
  	var uLocal_979 = 0;
  	var uLocal_980 = 0;
  	var uLocal_981 = 0;
  	var uLocal_982 = 0;
  	var uLocal_983 = 0;
  	var uLocal_984 = 0;
  	var uLocal_985 = 0;
  	var uLocal_986 = 0;
  	var uLocal_987 = 0;
  	var uLocal_988 = 0;
  	var uLocal_989 = 0;
  	var uLocal_990 = 0;
  	var uLocal_991 = 0;
  	var uLocal_992 = 0;
  	var uLocal_993 = 0;
  	var uLocal_994 = 0;
  	var uLocal_995 = 0;
  	var uLocal_996 = 0;
  	var uLocal_997 = 0;
  	var uLocal_998 = 0;
  	var uLocal_999 = 0;
  	var uLocal_1000 = 0;
  	var uLocal_1001 = 0;
  	var uLocal_1002 = 0;
  	var uLocal_1003 = 0;
  	var uLocal_1004 = 0;
  	var uLocal_1005 = 0;
  	var uLocal_1006 = 0;
  	var uLocal_1007 = 0;
  	var uLocal_1008 = 0;
  	var uLocal_1009 = 0;
  	var uLocal_1010 = 0;
  	var uLocal_1011 = 0;
  	var uLocal_1012 = 0;
  	var uLocal_1013 = 0;
  	var uLocal_1014 = 0;
  	var uLocal_1015 = 0;
  	var uLocal_1016 = 0;
  	var uLocal_1017 = 0;
  	var uLocal_1018 = 0;
  	var uLocal_1019 = 0;
  	var uLocal_1020 = 0;
  	var uLocal_1021 = 0;
  	var uLocal_1022 = 0;
  	var uLocal_1023 = 0;
  	var uLocal_1024 = 0;
  	var uLocal_1025 = 0;
  	var uLocal_1026 = 0;
  	var uLocal_1027 = 0;
  	var uLocal_1028 = 0;
  	var uLocal_1029 = 0;
  	var uLocal_1030 = 0;
  	var uLocal_1031 = 0;
  	var uLocal_1032 = 0;
  	var uLocal_1033 = 0;
  	var uLocal_1034 = 0;
  	var uLocal_1035 = 0;
  	var uLocal_1036 = 0;
  	var uLocal_1037 = 0;
  	var uLocal_1038 = 0;
  	var uLocal_1039 = 0;
  	var uLocal_1040 = 0;
  	var uLocal_1041 = 0;
  	var uLocal_1042 = 0;
  	var uLocal_1043 = 0;
  	var uLocal_1044 = 0;
  	var uLocal_1045 = 0;
  	var uLocal_1046 = 0;
  	var uLocal_1047 = 0;
  	var uLocal_1048 = 0;
  	var uLocal_1049 = 0;
  	var uLocal_1050 = 0;
  	var uLocal_1051 = 0;
  	var uLocal_1052 = 0;
  	var uLocal_1053 = 0;
  	var uLocal_1054 = 0;
  	var uLocal_1055 = 0;
  	var uLocal_1056 = 0;
  	var uLocal_1057 = 0;
  	var uLocal_1058 = 0;
  	var uLocal_1059 = 0;
  	var uLocal_1060 = 0;
  	var uLocal_1061 = 0;
  	var uLocal_1062 = 0;
  	var uLocal_1063 = 0;
  	var uLocal_1064 = 0;
  	var uLocal_1065 = 0;
  	var uLocal_1066 = 0;
  	var uLocal_1067 = 0;
  	var uLocal_1068 = 0;
  	var uLocal_1069 = 0;
  	var uLocal_1070 = 0;
  	var uLocal_1071 = 0;
  	var uLocal_1072 = 0;
  	var uLocal_1073 = 0;
  	var uLocal_1074 = 0;
  	var uLocal_1075 = 0;
  	var uLocal_1076 = 0;
  	var uLocal_1077 = 0;
  	var uLocal_1078 = 0;
  	var uLocal_1079 = 0;
  	var uLocal_1080 = 0;
  	var uLocal_1081 = 0;
  	var uLocal_1082 = 0;
  	var uLocal_1083 = 0;
  	var uLocal_1084 = 0;
  	var uLocal_1085 = 0;
  	var uLocal_1086 = 0;
  	var uLocal_1087 = 0;
  	var uLocal_1088 = 0;
  	var uLocal_1089 = 0;
  	var uLocal_1090 = 0;
  	var uLocal_1091 = 0;
  	var uLocal_1092 = 0;
  	var uLocal_1093 = 0;
  	var uLocal_1094 = 0;
  	var uLocal_1095 = 0;
  	var uLocal_1096 = 0;
  	var uLocal_1097 = 0;
  	var uLocal_1098 = 0;
  	var uLocal_1099 = 0;
  	var uLocal_1100 = 0;
  	var uLocal_1101 = 0;
  	var uLocal_1102 = 0;
  	var uLocal_1103 = 0;
  	var uLocal_1104 = 0;
  	var uLocal_1105 = 0;
  	var uLocal_1106 = 0;
  	var uLocal_1107 = 0;
  	var uLocal_1108 = 0;
  	var uLocal_1109 = 0;
  	var uLocal_1110 = 0;
  	var uLocal_1111 = 0;
  	var uLocal_1112 = 0;
  	var uLocal_1113 = 0;
  	var uLocal_1114 = 0;
  	var uLocal_1115 = 0;
  	var uLocal_1116 = 0;
  	var uLocal_1117 = 0;
  	var uLocal_1118 = 0;
  	var uLocal_1119 = 0;
  	var uLocal_1120 = 0;
  	var uLocal_1121 = 0;
  	var uLocal_1122 = 0;
  	var uLocal_1123 = 0;
  	var uLocal_1124 = 0;
  	var uLocal_1125 = 0;
  	var uLocal_1126 = 0;
  	var uLocal_1127 = 0;
  	var uLocal_1128 = 0;
  	var uLocal_1129 = 0;
  	var uLocal_1130 = 1065353216;
  	struct<9> Local_1131 = { 0, 0, 0, 0, 0, 0, 0, 0, 0 } ;
  	var uLocal_1140 = 0;
  	var uLocal_1141 = 0;
  	struct<263> Local_1142 = { 0, 0, 0, 32, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 16, 2, 0, 0, 0, 0, 0, 0, 2, 0, 0, 2, 0, 0, 0, 0, 0, 0, 2, 0, 0, 2, 0, 0, 0, 0, 0, 0, 2, 0, 0, 2, 0, 0, 0, 0, 0, 0, 2, 0, 0, 2, 0, 0, 0, 0, 0, 0, 2, 0, 0, 2, 0, 0, 0, 0, 0, 0, 2, 0, 0, 2, 0, 0, 0, 0, 0, 0, 2, 0, 0, 2, 0, 0, 0, 0, 0, 0, 2, 0, 0, 2, 0, 0, 0, 0, 0, 0, 2, 0, 0, 2, 0, 0, 0, 0, 0, 0, 2, 0, 0, 2, 0, 0, 0, 0, 0, 0, 2, 0, 0, 2, 0, 0, 0, 0, 0, 0, 2, 0, 0, 2, 0, 0, 0, 0, 0, 0, 2, 0, 0, 2, 0, 0, 0, 0, 0, 0, 2, 0, 0, 2, 0, 0, 0, 0, 0, 0, 2, 0, 0, 2, 0, 0, 0, 0, 0, 0, 2, 0, 0, 32, -1, 0, -1, 0, -1, 0, -1, 0, -1, 0, -1, 0, -1, 0, -1, 0, -1, 0, -1, 0, -1, 0, -1, 0, -1, 0, -1, 0, -1, 0, -1, 0, -1, 0, -1, 0, -1, 0, -1, 0, -1, 0, -1, 0, -1, 0, -1, 0, -1, 0, -1, 0, -1, 0, -1, 0, -1, 0, -1, 0, -1, 0, -1, 0, 0 } ;
  	var uLocal_1405 = 0;
  	struct<5> Local_1406[32];
  	struct<21> ScriptParam_0 = { 0, -1, -1, 0, 0, 0, 0, 0, 0, -1, 0, 0, 0, 0, 0, 0, -1, 0, 0, -1, -1 } ;
  #endregion
  
  void __EntryFunction__()
  {
  	bool bVar0;
  	
  	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_44 = 1;
  	iLocal_45 = 65;
  	iLocal_46 = 49;
  	iLocal_47 = 64;
  	iLocal_287 = joaat("prop_ld_ferris_wheel");
  	iLocal_288 = joaat("prop_ferris_car_01");
  	sLocal_289 = "MISSFINALE_C2IG_5";
  	fLocal_308 = 2f;
  	Local_309 = { -1663.97f, -1126.7f, 30.7f };
  	Local_312 = { 0.5f, 0.5f, -1.94f };
  	fLocal_318 = 13f;
  	iLocal_319 = -1;
  	iLocal_320 = -1;
  	iLocal_321 = -1;
  	iLocal_322 = -1;
  	bLocal_323 = true;
  	sLocal_399 = "anim@mp_ferris_wheel";
  	iLocal_429 = 1;
  	bVar0 = unk_0x02BFF15CAA701972();
  	if (bVar0)
  	{
  		if (!func_200(ScriptParam_0))
  		{
  			func_191();
  		}
  		func_190();
  		unk_0x191DDA30577F440A(&Global_77496, 6);
  	}
  	while (true)
  	{
  		func_189();
  		if (func_180())
  		{
  			func_191();
  		}
  		if (((!unk_0x591190E69BE43117(unk_0x7D2B9E6A64637269(), -1645.555f, -1123.872f, 17.3436f, 300f, 300f, 300f, 0, 1, 0) || func_179()) || unk_0xE45310E861787FC2()) || (func_174() && !func_172()))
  		{
  			Local_1406[unk_0xDD0E57E73E5C4BF6() /*5*/] = 3;
  		}
  		func_160();
  		if (unk_0x234B68AC2E35ED5A(uLocal_418, 3))
  		{
  			if (!Global_99422.f_1441)
  			{
  				unk_0xC664C0067EEAB8D1(&uLocal_418, 3);
  			}
  		}
  		switch (func_159(unk_0xDD0E57E73E5C4BF6()))
  		{
  			case 0:
  				if (func_158() > 0)
  				{
  					Local_1406[unk_0xDD0E57E73E5C4BF6() /*5*/] = 1;
  				}
  				break;
  			
  			case 1:
  				if (func_158() > 1)
  				{
  					if (func_153())
  					{
  						Local_1406[unk_0xDD0E57E73E5C4BF6() /*5*/] = 2;
  					}
  				}
  				break;
  			
  			case 2:
  				if (func_158() == 2)
  				{
  					func_31();
  				}
  				break;
  			
  			case 3:
  				if (!func_30(&uLocal_1140))
  				{
  					if (!unk_0xCE84F8AB9BD41C13())
  					{
  						func_22(64, 0, 0, 1, 0);
  					}
  				}
  				if (((func_20(&uLocal_1140, 3000, 0) || func_19()) || func_18()) || func_14(unk_0x1146A9AE09CE2B14()))
  				{
  					func_191();
  				}
  				break;
  		}
  		if (unk_0x443E2CA72E118E64())
  		{
  			switch (func_158())
  			{
  				case 0:
  					if (func_12())
  					{
  						Local_1142.f_1 = 1;
  					}
  					break;
  				
  				case 1:
  					if (func_11())
  					{
  						Local_1142.f_1 = 2;
  					}
  					break;
  				
  				case 2:
  					func_6();
  					func_1();
  					break;
  				}
  		}
  	}
  }
  
  void func_1()
  {
  	int iVar0;
  	var uVar1;
  	
  	if (iLocal_397 == 0)
  	{
  	}
  	if (unk_0xF46EDF82CA845956(unk_0x6750311806FF130A(iLocal_397)))
  	{
  		uVar1 = unk_0x539ED6DF32477DE0(unk_0x6750311806FF130A(iLocal_397));
  		switch (Local_1142)
  		{
  			case 0:
  				if (unk_0x234B68AC2E35ED5A(Local_1406[iLocal_397 /*5*/].f_2, 4) && !unk_0x234B68AC2E35ED5A(Local_1142.f_3[iLocal_397], 1))
  				{
  					unk_0xC664C0067EEAB8D1(&(Local_1142.f_2), 0);
  					unk_0xC664C0067EEAB8D1(&(Local_1142.f_3[iLocal_397]), 0);
  					unk_0x191DDA30577F440A(&(Local_1142.f_2), 2);
  					iLocal_421 = 30000;
  					Local_1142 = 1;
  					func_5(&uLocal_419);
  					unk_0x191DDA30577F440A(&(Local_1142.f_3[iLocal_397]), 1);
  				}
  				if (unk_0x234B68AC2E35ED5A(Local_1406[iLocal_397 /*5*/].f_2, 3) && !unk_0x234B68AC2E35ED5A(Local_1142.f_3[iLocal_397], 0))
  				{
  					iVar0 = func_4(iLocal_397);
  					if (iVar0 == -1)
  					{
  					}
  					else
  					{
  						Local_1142.f_197[iLocal_397 /*2*/].f_1 = uVar1;
  						Local_1142.f_197[iLocal_397 /*2*/] = iVar0;
  						Local_1142.f_262 = func_2();
  						unk_0x191DDA30577F440A(&(Local_1142.f_2), 0);
  						unk_0x191DDA30577F440A(&(Local_1142.f_3[iLocal_397]), 0);
  					}
  				}
  				break;
  			
  			case 1:
  				if (unk_0x234B68AC2E35ED5A(Local_1142.f_3[iLocal_397], 1))
  				{
  					unk_0xC664C0067EEAB8D1(&(Local_1142.f_3[iLocal_397]), 1);
  				}
  				break;
  		}
  	}
  	else if ((Local_1142.f_3[iLocal_397] != 0 || Local_1142.f_197[iLocal_397 /*2*/] != -1) || Local_1142.f_197[iLocal_397 /*2*/].f_1 != 0)
  	{
  		Local_1142.f_3[iLocal_397] = 0;
  		Local_1142.f_197[iLocal_397 /*2*/] = -1;
  		Local_1142.f_197[iLocal_397 /*2*/].f_1 = 0;
  		Local_1142.f_262 = func_2();
  	}
  	iLocal_397++;
  	if (iLocal_397 == unk_0x5E72DF7B8C03AA05())
  	{
  		iLocal_397 = 0;
  	}
  }
  
  int func_2()
  {
  	int iVar0;
  	int iVar1;
  	int iVar2;
  	bool bVar3;
  	
  	iVar2 = func_3();
  	iVar0 = iVar2;
  	while (iVar0 != iVar2 || !bVar3)
  	{
  		if (!bVar3)
  		{
  			bVar3 = true;
  		}
  		iVar1 = 0;
  		while (iVar1 < unk_0x5E72DF7B8C03AA05())
  		{
  			if (Local_1142.f_197[iVar1 /*2*/] == iVar0)
  			{
  				return iVar1;
  			}
  			iVar1++;
  		}
  		iVar0++;
  		if (iVar0 == 16)
  		{
  			iVar0 = 0;
  		}
  	}
  	return -1;
  }
  
  int func_3()
  {
  	int iVar0;
  	
  	iVar0 = 0;
  	while (iVar0 < 16)
  	{
  		if (iVar0 == 0)
  		{
  			iVar0 = 1;
  		}
  		if (Local_1142.f_36[iVar0 /*10*/].f_6 >= Global_2551618)
  		{
  			return iVar0;
  		}
  		iVar0++;
  	}
  	if (Local_1142.f_36[0 /*10*/].f_6 >= Global_2551618)
  	{
  		return 0;
  	}
  	else
  	{
  		return 1;
  	}
  	return -1;
  }
  
  int func_4(int iParam0)
  {
  	int iVar0;
  	int iVar1;
  	bool bVar2;
  	
  	iVar1 = 0;
  	while (iVar1 < 2)
  	{
  		if (unk_0x234B68AC2E35ED5A(Local_1406[iParam0 /*5*/].f_2, 0))
  		{
  			return Local_1406[iParam0 /*5*/].f_3;
  		}
  		else
  		{
  			iVar0 = 0;
  			while (iVar0 < 16)
  			{
  				if (iVar0 == 0)
  				{
  					iVar0 = 1;
  				}
  				if (!Local_1142.f_36[iVar0 /*10*/].f_3 >= 2)
  				{
  					if (Local_1142.f_36[iVar0 /*10*/].f_6 >= Global_2551618)
  					{
  						if (!Local_1142.f_36[iVar0 /*10*/].f_3 > 0 || bVar2)
  						{
  							return iVar0;
  						}
  					}
  				}
  				iVar0++;
  			}
  			if (!Local_1142.f_36[0 /*10*/].f_3 >= 2)
  			{
  				if (Local_1142.f_36[0 /*10*/].f_6 >= Global_2551618)
  				{
  					if (!Local_1142.f_36[0 /*10*/].f_3 > 0 || bVar2)
  					{
  						return 0;
  					}
  				}
  				else
  				{
  					return 1;
  				}
  			}
  			if (!bVar2)
  			{
  				bVar2 = true;
  			}
  			else
  			{
  				return -1;
  			}
  		}
  		iVar1++;
  	}
  	return -1;
  }
  
  void func_5(var uParam0)
  {
  	uParam0->f_1 = 0;
  }
  
  void func_6()
  {
  	int iVar0;
  	int iVar1;
  	
  	switch (Local_1142)
  	{
  		case 0:
  			break;
  		
  		case 1:
  			if (func_20(&uLocal_419, iLocal_421, 0))
  			{
  				if (func_9())
  				{
  					if (Local_1142.f_262 != -1)
  					{
  						iVar1 = Local_1142.f_197[Local_1142.f_262 /*2*/];
  						iVar0 = 0;
  						while (iVar0 < 32)
  						{
  							if (Local_1142.f_197[iVar0 /*2*/] == iVar1)
  							{
  								unk_0xC664C0067EEAB8D1(&(Local_1142.f_3[iVar0]), 0);
  								unk_0xC664C0067EEAB8D1(&(Local_1142.f_3[iVar0]), 1);
  								Local_1142.f_197[iVar0 /*2*/] = -1;
  								Local_1142.f_197[iVar0 /*2*/].f_1 = 0;
  							}
  							iVar0++;
  						}
  						Local_1142.f_197[Local_1142.f_262 /*2*/] = -1;
  						Local_1142.f_197[Local_1142.f_262 /*2*/].f_1 = 0;
  					}
  					if (func_8())
  					{
  						Local_1142.f_262 = func_2();
  					}
  					else
  					{
  						Local_1142.f_262 = -1;
  					}
  					if (Local_1142.f_262 != -1)
  					{
  						unk_0x191DDA30577F440A(&(Local_1142.f_2), 0);
  					}
  					unk_0xC664C0067EEAB8D1(&(Local_1142.f_2), 3);
  					unk_0xC664C0067EEAB8D1(&(Local_1142.f_2), 4);
  					Local_1142 = 0;
  				}
  				else
  				{
  					iLocal_421 = 1000;
  					func_5(&uLocal_419);
  				}
  			}
  			else
  			{
  				if ((30000 - func_7(&uLocal_419, 0, 0)) < 4000)
  				{
  					unk_0x191DDA30577F440A(&(Local_1142.f_2), 4);
  				}
  				if ((30000 - func_7(&uLocal_419, 0, 0)) < 3000)
  				{
  					unk_0x191DDA30577F440A(&(Local_1142.f_2), 3);
  				}
  				if (((Local_1142.f_262 != -1 && !unk_0x234B68AC2E35ED5A(Local_1406[Local_1142.f_262 /*5*/].f_2, 6)) && unk_0x591190E69BE43117(unk_0xD56332194D622ECE(Local_1142.f_197[Local_1142.f_262 /*2*/].f_1), -1661.95f, -1127.011f, 12.6973f, 1f, 1f, 2f, 0, 1, 0)) && unk_0x234B68AC2E35ED5A(Local_1142.f_2, 2))
  				{
  					if (!unk_0x234B68AC2E35ED5A(Local_1142.f_2, 1))
  					{
  						unk_0x191DDA30577F440A(&(Local_1142.f_2), 1);
  					}
  				}
  				else if (unk_0x234B68AC2E35ED5A(Local_1142.f_2, 1))
  				{
  					unk_0xC664C0067EEAB8D1(&(Local_1142.f_2), 1);
  				}
  			}
  			break;
  	}
  }
  
  int func_7(var uParam0, bool bParam1, bool bParam2)
  {
  	if (unk_0x02BFF15CAA701972() && !bParam1)
  	{
  		if (!bParam2)
  		{
  			return unk_0x2D57EADCBEDDB2AA(unk_0x551F46B3C7DFB654(), *uParam0);
  		}
  		else
  		{
  			return unk_0x2D57EADCBEDDB2AA(unk_0xCB3024ED32EBF9EC(), *uParam0);
  		}
  	}
  	return unk_0x2D57EADCBEDDB2AA(unk_0xDFB7BFA6482FEE1E(), *uParam0);
  }
  
  int func_8()
  {
  	int iVar0;
  	
  	iVar0 = 0;
  	while (iVar0 < unk_0x5E72DF7B8C03AA05())
  	{
  		if (Local_1142.f_197[iVar0 /*2*/] != -1)
  		{
  			return 1;
  		}
  		iVar0++;
  	}
  	return 0;
  }
  
  int func_9()
  {
  	int iVar0;
  	
  	iVar0 = func_10();
  	while (iVar0 >= 0)
  	{
  		if (unk_0xF46EDF82CA845956(unk_0x6750311806FF130A(iVar0)))
  		{
  			if (unk_0x234B68AC2E35ED5A(Local_1406[iVar0 /*5*/].f_2, 9) || unk_0x234B68AC2E35ED5A(Local_1406[iVar0 /*5*/].f_2, 10))
  			{
  				return 0;
  			}
  		}
  		iVar0 = (iVar0 + -1);
  	}
  	return 1;
  }
  
  int func_10()
  {
  	if (Global_2460803)
  	{
  		return 32;
  	}
  	return (32 - Global_2460804);
  }
  
  int func_11()
  {
  	int iVar0;
  	
  	iVar0 = 0;
  	while (iVar0 < 16)
  	{
  		Local_1142.f_36[iVar0 /*10*/].f_6 = (((360f / 16f) * IntToFloat(iVar0)) - 21.5f);
  		iVar0++;
  	}
  	Local_1142.f_36[0 /*10*/].f_6 = (Local_1142.f_36[0 /*10*/].f_6 + 360f);
  	return 1;
  }
  
  int func_12()
  {
  	int iVar0;
  	int iVar1;
  	
  	iVar0 = 0;
  	while (iVar0 < 32)
  	{
  		iVar1 = unk_0xC502CD39B4994F3A(iVar0);
  		if (func_13(iVar1, 0, 1))
  		{
  			if (unk_0x591190E69BE43117(unk_0xD56332194D622ECE(iVar1), -1662.01f, -1126.869f, 12.6973f, 500f, 500f, 500f, 0, 1, 0))
  			{
  				return 1;
  			}
  		}
  		iVar0++;
  	}
  	return 0;
  }
  
  int func_13(int iParam0, bool bParam1, bool bParam2)
  {
  	int iVar0;
  	
  	iVar0 = iParam0;
  	if (iVar0 != -1)
  	{
  		if (unk_0x8CFC2F41A749E236(iParam0))
  		{
  			if (bParam1)
  			{
  				if (!unk_0xCAD1755E530A6012(iParam0))
  				{
  					return 0;
  				}
  			}
  			if (bParam2)
  			{
  				if (!Global_2441237.f_3[iVar0])
  				{
  					return 0;
  				}
  			}
  			return 1;
  		}
  	}
  	return 0;
  }
  
  int func_14(int iParam0)
  {
  	if (func_15(iParam0, 1, 0))
  	{
  		if (Global_1590908[iParam0 /*874*/] != 6)
  		{
  			return 1;
  		}
  	}
  	return 0;
  }
  
  int func_15(int iParam0, bool bParam1, bool bParam2)
  {
  	if (bParam1)
  	{
  		if (func_16(iParam0))
  		{
  			return 1;
  		}
  	}
  	if (!bParam2)
  	{
  	}
  	if (Global_1590908[iParam0 /*874*/] == -1)
  	{
  		return 0;
  	}
  	return 1;
  }
  
  bool func_16(int iParam0)
  {
  	return func_17(iParam0);
  }
  
  bool func_17(int iParam0)
  {
  	return unk_0x234B68AC2E35ED5A(Global_1590908[iParam0 /*874*/].f_11.f_1, 0);
  }
  
  bool func_18()
  {
  	return unk_0x234B68AC2E35ED5A(Global_1590908[unk_0x1146A9AE09CE2B14() /*874*/].f_36.f_18, 0);
  }
  
  var func_19()
  {
  	return Global_1312902;
  }
  
  int func_20(var uParam0, int iParam1, bool bParam2)
  {
  	if (iParam1 == -1)
  	{
  		return 1;
  	}
  	func_21(uParam0, bParam2, 0);
  	if (unk_0x02BFF15CAA701972() && !bParam2)
  	{
  		if (unk_0x909F156FC4077611(unk_0x2D57EADCBEDDB2AA(unk_0x551F46B3C7DFB654(), *uParam0)) >= iParam1)
  		{
  			return 1;
  		}
  	}
  	else if (unk_0x909F156FC4077611(unk_0x2D57EADCBEDDB2AA(unk_0xDFB7BFA6482FEE1E(), *uParam0)) >= iParam1)
  	{
  		return 1;
  	}
  	return 0;
  }
  
  void func_21(var uParam0, bool bParam1, bool bParam2)
  {
  	if (uParam0->f_1 == 0)
  	{
  		if (unk_0x02BFF15CAA701972() && !bParam1)
  		{
  			if (!bParam2)
  			{
  				*uParam0 = unk_0x551F46B3C7DFB654();
  			}
  			else
  			{
  				*uParam0 = unk_0xCB3024ED32EBF9EC();
  			}
  		}
  		else
  		{
  			*uParam0 = unk_0xDFB7BFA6482FEE1E();
  		}
  		uParam0->f_1 = 1;
  	}
  }
  
  void func_22(int iParam0, int iParam1, int iParam2, bool bParam3, int iParam4)
  {
  	if (iParam0 != 198)
  	{
  		if (Global_77248)
  		{
  			Global_2441237.f_75.f_227[iParam0] = iParam1;
  		}
  		else
  		{
  			Global_112293.f_7259.f_227[iParam0] = iParam1;
  		}
  		Global_38976[iParam0] = iParam2;
  		Global_39175[iParam0] = 1;
  		func_25(iParam0, bParam3, iParam4, 0);
  		func_23(iParam0, iParam1);
  	}
  }
  
  void func_23(int iParam0, int iParam1)
  {
  	switch (iParam0)
  	{
  		case 12:
  			if (iParam1 == 0)
  			{
  				unk_0x44095C938FBA7E09("AZ_PORT_OF_LS_UNDERWATER_CREAKS", 0, 0);
  			}
  			else
  			{
  				unk_0x44095C938FBA7E09("AZ_PORT_OF_LS_UNDERWATER_CREAKS", 1, 0);
  			}
  			break;
  		
  		case 71:
  			if (iParam1 != 1)
  			{
  				unk_0x1A19852065CF1420("HEIST_SWEATSHOP_ZONES", 0, 0);
  			}
  			else
  			{
  				unk_0x1A19852065CF1420("HEIST_SWEATSHOP_ZONES", 1, 0);
  			}
  			break;
  		
  		case 65:
  			if (iParam1 == 1)
  			{
  				func_24(0, 0);
  			}
  			else
  			{
  				func_24(0, 1);
  			}
  			break;
  		
  		case 6:
  			if (iParam1 == 1)
  			{
  				unk_0x44095C938FBA7E09("AZ_UNDERWATER_EXILE_01_PLANE_WRECK", 1, 0);
  			}
  			else
  			{
  				unk_0x44095C938FBA7E09("AZ_UNDERWATER_EXILE_01_PLANE_WRECK", 0, 0);
  			}
  			break;
  		
  		case 174:
  			if (iParam1 == 2)
  			{
  				unk_0x6076D375CCB55DBA("V_CARSHOWROOM_PS_WINDOW_UNBROKEN");
  			}
  			break;
  		
  		case 37:
  			if (iParam1 == 1)
  			{
  				unk_0xCDF87F9AAD28040F("TREVOR1_TRAILER_PARK_MAIN_STAGE_RADIO", 0);
  				unk_0xCDF87F9AAD28040F("TREVOR1_TRAILER_PARK_MAIN_TRAILER_RADIO_01", 0);
  				unk_0xCDF87F9AAD28040F("TREVOR1_TRAILER_PARK_MAIN_TRAILER_RADIO_02", 0);
  				unk_0xCDF87F9AAD28040F("TREVOR1_TRAILER_PARK_MAIN_TRAILER_RADIO_03", 0);
  			}
  			break;
  	}
  }
  
  void func_24(int iParam0, bool bParam1)
  {
  	if (bParam1)
  	{
  		unk_0x191DDA30577F440A(&Global_110931, iParam0);
  	}
  	else
  	{
  		unk_0xC664C0067EEAB8D1(&Global_110931, iParam0);
  	}
  	Global_110930 = 1;
  }
  
  bool func_25(int iParam0, bool bParam1, int iParam2, bool bParam3)
  {
  	bool bVar0;
  	int iVar1;
  	int iVar2;
  	struct<5> Var3;
  	var uVar98;
  	bool bVar99;
  	int iVar100;
  	
  	Global_1659936 = 1;
  	bVar0 = false;
  	Var3.f_4 = 3;
  	Var3.f_8 = 3;
  	Var3.f_64 = 3;
  	Var3.f_75 = 3;
  	Var3.f_91 = 3;
  	func_29(&Var3, iParam0);
  	if (func_26())
  	{
  		iVar1 = Global_112293.f_7259.f_227[iParam0];
  	}
  	else
  	{
  		iVar1 = Global_2441237.f_75.f_227[iParam0];
  	}
  	iVar2 = Global_39374[iParam0];
  	if (unk_0xECEC7528A52B4EE8(unk_0x7D2B9E6A64637269()) && !bParam3)
  	{
  		Global_1659936 = 1;
  	}
  	else
  	{
  		bVar99 = true;
  		if (unk_0x15173FB88ABC94F9(unk_0x471C98FD94C0A5FD()) != unk_0x15173FB88ABC94F9("standard_global_reg"))
  		{
  			if (iParam2 == 0)
  			{
  				if (Global_38976[iParam0] && unk_0x0BABEFEA577FCFA4(unk_0xD6E677FAD7521410(unk_0x7D2B9E6A64637269(), 0), Var3, 1) < 200f)
  				{
  					bVar99 = false;
  					Global_1659936 = 1;
  				}
  				if (!unk_0xCAD1755E530A6012(unk_0x1146A9AE09CE2B14()) || unk_0x9437DA8C00A86EE5(unk_0x7D2B9E6A64637269()))
  				{
  					if (!unk_0x8B6A925F148E0E94())
  					{
  						bVar99 = false;
  						Global_1659936 = 1;
  					}
  				}
  			}
  		}
  		if (unk_0xCE84F8AB9BD41C13() && (!unk_0xF471787D45ADC2C1() || unk_0xE544790FBAA57D4F() != 5))
  		{
  			bVar99 = false;
  			Global_1659936 = 1;
  		}
  		if (bVar99)
  		{
  			switch (Var3.f_3)
  			{
  				case 0:
  					if (iVar1 == 2)
  					{
  					}
  					else
  					{
  						if (Var3.f_4[iVar1] != 0)
  						{
  							unk_0xC5CAF559D14B1D18(Var3, 10f, Var3.f_4[iVar1], 0);
  						}
  						if (Var3.f_4[iVar2] != 0)
  						{
  							unk_0xD2FBB949CDCF79AB(Var3, 10f, Var3.f_4[iVar2], 1);
  						}
  						Global_40570[iParam0] = 1;
  					}
  					bVar0 = true;
  					break;
  				
  				case 1:
  					if (iVar1 == 0)
  					{
  						if (unk_0x15173FB88ABC94F9(&(Var3.f_8[1 /*8*/])) != unk_0x15173FB88ABC94F9("") && unk_0x15173FB88ABC94F9(&(Var3.f_8[1 /*8*/])) != unk_0x15173FB88ABC94F9(&(Var3.f_8[iVar1 /*8*/])))
  						{
  							if (unk_0xD17A6DB35E21C90C(&(Var3.f_8[1 /*8*/])))
  							{
  								unk_0x43D3344EE0A5162E(&(Var3.f_8[1 /*8*/]));
  								Global_1659936 = 1;
  							}
  						}
  						if ((unk_0x15173FB88ABC94F9(&(Var3.f_8[2 /*8*/])) != unk_0x15173FB88ABC94F9("") && unk_0x15173FB88ABC94F9(&(Var3.f_8[2 /*8*/])) != unk_0x15173FB88ABC94F9("REMOVE_ALL_STATES")) && unk_0x15173FB88ABC94F9(&(Var3.f_8[2 /*8*/])) != unk_0x15173FB88ABC94F9(&(Var3.f_8[iVar1 /*8*/])))
  						{
  							if (unk_0xD17A6DB35E21C90C(&(Var3.f_8[2 /*8*/])))
  							{
  								unk_0x43D3344EE0A5162E(&(Var3.f_8[2 /*8*/]));
  								Global_1659936 = 1;
  							}
  						}
  						if (unk_0x15173FB88ABC94F9(&(Var3.f_8[0 /*8*/])) != unk_0x15173FB88ABC94F9(""))
  						{
  							if (!unk_0xD17A6DB35E21C90C(&(Var3.f_8[0 /*8*/])))
  							{
  								unk_0xD0051FAE2E1BB4C8(&(Var3.f_8[0 /*8*/]));
  								Global_1659936 = 1;
  							}
  						}
  						if (unk_0x15173FB88ABC94F9(&(Var3.f_34)) != unk_0x15173FB88ABC94F9(""))
  						{
  							if (!unk_0xD17A6DB35E21C90C(&(Var3.f_34)))
  							{
  								unk_0xD0051FAE2E1BB4C8(&(Var3.f_34));
  								Global_1659936 = 1;
  							}
  						}
  					}
  					else if (iVar1 == 1)
  					{
  						if (unk_0x15173FB88ABC94F9(&(Var3.f_34)) != unk_0x15173FB88ABC94F9(""))
  						{
  							if (unk_0xD17A6DB35E21C90C(&(Var3.f_34)))
  							{
  								unk_0x43D3344EE0A5162E(&(Var3.f_34));
  							}
  						}
  						if (unk_0x15173FB88ABC94F9(&(Var3.f_8[0 /*8*/])) != unk_0x15173FB88ABC94F9("") && unk_0x15173FB88ABC94F9(&(Var3.f_8[0 /*8*/])) != unk_0x15173FB88ABC94F9(&(Var3.f_8[iVar1 /*8*/])))
  						{
  							if (unk_0xD17A6DB35E21C90C(&(Var3.f_8[0 /*8*/])))
  							{
  								unk_0x43D3344EE0A5162E(&(Var3.f_8[0 /*8*/]));
  							}
  						}
  						if ((unk_0x15173FB88ABC94F9(&(Var3.f_8[2 /*8*/])) != unk_0x15173FB88ABC94F9("") && unk_0x15173FB88ABC94F9(&(Var3.f_8[2 /*8*/])) != unk_0x15173FB88ABC94F9("REMOVE_ALL_STATES")) && unk_0x15173FB88ABC94F9(&(Var3.f_8[2 /*8*/])) != unk_0x15173FB88ABC94F9(&(Var3.f_8[iVar1 /*8*/])))
  						{
  							if (unk_0xD17A6DB35E21C90C(&(Var3.f_8[2 /*8*/])))
  							{
  								unk_0x43D3344EE0A5162E(&(Var3.f_8[2 /*8*/]));
  							}
  						}
  						if (unk_0x15173FB88ABC94F9(&(Var3.f_8[1 /*8*/])) != unk_0x15173FB88ABC94F9(""))
  						{
  							if (!unk_0xD17A6DB35E21C90C(&(Var3.f_8[1 /*8*/])))
  							{
  								unk_0xD0051FAE2E1BB4C8(&(Var3.f_8[1 /*8*/]));
  							}
  						}
  					}
  					else if (iVar1 == 2)
  					{
  						if (unk_0x15173FB88ABC94F9(&(Var3.f_34)) != unk_0x15173FB88ABC94F9(""))
  						{
  							if (unk_0xD17A6DB35E21C90C(&(Var3.f_34)))
  							{
  								unk_0x43D3344EE0A5162E(&(Var3.f_34));
  							}
  						}
  						if (unk_0x15173FB88ABC94F9(&(Var3.f_8[0 /*8*/])) != unk_0x15173FB88ABC94F9("") && unk_0x15173FB88ABC94F9(&(Var3.f_8[0 /*8*/])) != unk_0x15173FB88ABC94F9(&(Var3.f_8[iVar1 /*8*/])))
  						{
  							if (unk_0xD17A6DB35E21C90C(&(Var3.f_8[0 /*8*/])))
  							{
  								unk_0x43D3344EE0A5162E(&(Var3.f_8[0 /*8*/]));
  							}
  						}
  						if (unk_0x15173FB88ABC94F9(&(Var3.f_8[1 /*8*/])) != unk_0x15173FB88ABC94F9("") && unk_0x15173FB88ABC94F9(&(Var3.f_8[1 /*8*/])) != unk_0x15173FB88ABC94F9(&(Var3.f_8[iVar1 /*8*/])))
  						{
  							if (unk_0xD17A6DB35E21C90C(&(Var3.f_8[1 /*8*/])))
  							{
  								unk_0x43D3344EE0A5162E(&(Var3.f_8[1 /*8*/]));
  							}
  						}
  						if (unk_0x15173FB88ABC94F9(&(Var3.f_8[2 /*8*/])) != unk_0x15173FB88ABC94F9("") && unk_0x15173FB88ABC94F9(&(Var3.f_8[2 /*8*/])) != unk_0x15173FB88ABC94F9("REMOVE_ALL_STATES"))
  						{
  							if (!unk_0xD17A6DB35E21C90C(&(Var3.f_8[2 /*8*/])))
  							{
  								unk_0xD0051FAE2E1BB4C8(&(Var3.f_8[2 /*8*/]));
  							}
  						}
  					}
  					Global_40371[iParam0] = 1;
  					Global_40570[iParam0] = 1;
  					bVar0 = true;
  					break;
  				
  				case 2:
  					iVar100 = unk_0xFA82BD1142427E0F(Var3, &(Var3.f_42));
  					if (iVar100 != 0)
  					{
  						if (unk_0x15173FB88ABC94F9(&(Var3.f_50)) != unk_0x15173FB88ABC94F9(""))
  						{
  							if (unk_0xBB61E4E5DB5BBD9B(iVar100, &(Var3.f_50)))
  							{
  								unk_0xD4B5BD42562AA87C(iVar100, &(Var3.f_50));
  							}
  						}
  						if (iVar1 == 0)
  						{
  							if (unk_0x15173FB88ABC94F9(&(Var3.f_8[1 /*8*/])) != unk_0x15173FB88ABC94F9(""))
  							{
  								if (unk_0xBB61E4E5DB5BBD9B(iVar100, &(Var3.f_8[1 /*8*/])))
  								{
  									unk_0xD4B5BD42562AA87C(iVar100, &(Var3.f_8[1 /*8*/]));
  								}
  							}
  							if ((unk_0x15173FB88ABC94F9(&(Var3.f_8[2 /*8*/])) != unk_0x15173FB88ABC94F9("") && unk_0x15173FB88ABC94F9(&(Var3.f_8[2 /*8*/])) != unk_0x15173FB88ABC94F9("REMOVE_ALL_STATES")) && unk_0x15173FB88ABC94F9(&(Var3.f_8[2 /*8*/])) != unk_0x15173FB88ABC94F9(&(Var3.f_8[iVar1 /*8*/])))
  							{
  								if (unk_0xBB61E4E5DB5BBD9B(iVar100, &(Var3.f_8[2 /*8*/])))
  								{
  									unk_0xD4B5BD42562AA87C(iVar100, &(Var3.f_8[2 /*8*/]));
  								}
  							}
  							if (unk_0x15173FB88ABC94F9(&(Var3.f_8[0 /*8*/])) != unk_0x15173FB88ABC94F9(""))
  							{
  								if (!unk_0xBB61E4E5DB5BBD9B(iVar100, &(Var3.f_8[0 /*8*/])))
  								{
  									unk_0xEFDEF37B67B5BBF4(iVar100, &(Var3.f_8[0 /*8*/]));
  								}
  							}
  						}
  						else if (iVar1 == 1)
  						{
  							if (unk_0x15173FB88ABC94F9(&(Var3.f_8[0 /*8*/])) != unk_0x15173FB88ABC94F9(""))
  							{
  								if (unk_0xBB61E4E5DB5BBD9B(iVar100, &(Var3.f_8[0 /*8*/])))
  								{
  									unk_0xD4B5BD42562AA87C(iVar100, &(Var3.f_8[0 /*8*/]));
  								}
  							}
  							if ((unk_0x15173FB88ABC94F9(&(Var3.f_8[2 /*8*/])) != unk_0x15173FB88ABC94F9("") && unk_0x15173FB88ABC94F9(&(Var3.f_8[2 /*8*/])) != unk_0x15173FB88ABC94F9("REMOVE_ALL_STATES")) && unk_0x15173FB88ABC94F9(&(Var3.f_8[2 /*8*/])) != unk_0x15173FB88ABC94F9(&(Var3.f_8[iVar1 /*8*/])))
  							{
  								if (unk_0xBB61E4E5DB5BBD9B(iVar100, &(Var3.f_8[2 /*8*/])))
  								{
  									unk_0xD4B5BD42562AA87C(iVar100, &(Var3.f_8[2 /*8*/]));
  								}
  							}
  							if (unk_0x15173FB88ABC94F9(&(Var3.f_8[1 /*8*/])) != unk_0x15173FB88ABC94F9(""))
  							{
  								if (!unk_0xBB61E4E5DB5BBD9B(iVar100, &(Var3.f_8[1 /*8*/])))
  								{
  									unk_0xEFDEF37B67B5BBF4(iVar100, &(Var3.f_8[1 /*8*/]));
  								}
  							}
  						}
  						else if (iVar1 == 2)
  						{
  							if (unk_0x15173FB88ABC94F9(&(Var3.f_8[0 /*8*/])) != unk_0x15173FB88ABC94F9(""))
  							{
  								if (unk_0xBB61E4E5DB5BBD9B(iVar100, &(Var3.f_8[0 /*8*/])))
  								{
  									unk_0xD4B5BD42562AA87C(iVar100, &(Var3.f_8[0 /*8*/]));
  								}
  							}
  							if (unk_0x15173FB88ABC94F9(&(Var3.f_8[1 /*8*/])) != unk_0x15173FB88ABC94F9(""))
  							{
  								if (unk_0xBB61E4E5DB5BBD9B(iVar100, &(Var3.f_8[1 /*8*/])))
  								{
  									unk_0xD4B5BD42562AA87C(iVar100, &(Var3.f_8[1 /*8*/]));
  								}
  							}
  							if (unk_0x15173FB88ABC94F9(&(Var3.f_8[2 /*8*/])) != unk_0x15173FB88ABC94F9("") && unk_0x15173FB88ABC94F9(&(Var3.f_8[2 /*8*/])) != unk_0x15173FB88ABC94F9("REMOVE_ALL_STATES"))
  							{
  								if (!unk_0xBB61E4E5DB5BBD9B(iVar100, &(Var3.f_8[2 /*8*/])))
  								{
  									unk_0xEFDEF37B67B5BBF4(iVar100, &(Var3.f_8[2 /*8*/]));
  								}
  							}
  						}
  						if (bParam1)
  						{
  							unk_0xB15BA3909055E465(iVar100);
  						}
  					}
  					Global_40570[iParam0] = 1;
  					Global_40371[iParam0] = 1;
  					bVar0 = true;
  					break;
  				
  				case 3:
  					if (unk_0x0BABEFEA577FCFA4(Var3, unk_0xD6E677FAD7521410(unk_0x7D2B9E6A64637269(), 0), 1) < 250f)
  					{
  						uVar98 = unk_0xE9B5676DFF7B46CD(Var3, 25f, &(Var3.f_8[0 /*8*/]));
  						if (unk_0x94DF8EC7DE1863A1(uVar98))
  						{
  							if (iVar1 == 0)
  							{
  								unk_0x6322ED685F2E1703(uVar98, 3);
  								Global_40570[iParam0] = 1;
  								bVar0 = true;
  							}
  							else if (iVar1 == 1)
  							{
  								if ((unk_0x3673B6048EE4354F(uVar98) != 6 && unk_0x3673B6048EE4354F(uVar98) != 7) && unk_0x3673B6048EE4354F(uVar98) != 8)
  								{
  									unk_0x6322ED685F2E1703(uVar98, 10);
  									Global_40570[iParam0] = 1;
  									bVar0 = true;
  								}
  							}
  							else if (iVar1 == 2)
  							{
  								bVar0 = true;
  							}
  						}
  					}
  					break;
  				
  				case 4:
  					if (iVar1 == 0)
  					{
  						unk_0xD3D73954D371F8CC(Var3, 50f, Var3.f_4[1], Var3.f_4[0], 0);
  						unk_0xC664C0067EEAB8D1(&(Global_38722[(iParam0 / 32)]), (iParam0 % 32));
  					}
  					else if (iVar1 == 1)
  					{
  						unk_0xFE0E12C8B9EF9558(Var3, 50f, Var3.f_4[0], Var3.f_4[1], 1);
  						unk_0x191DDA30577F440A(&(Global_38722[(iParam0 / 32)]), (iParam0 % 32));
  					}
  					bVar0 = true;
  					break;
  			}
  			if (bVar0)
  			{
  				Global_39175[iParam0] = 0;
  				Global_39374[iParam0] = iVar1;
  				if (!func_26())
  				{
  					if (!Global_39971[iParam0])
  					{
  						Global_39971[iParam0] = 1;
  						Global_40170++;
  					}
  				}
  			}
  		}
  	}
  	return bVar0;
  }
  
  int func_26()
  {
  	if ((func_28() == -1 || func_28() == 999) && !func_27() == 0)
  	{
  		return 1;
  	}
  	return 0;
  }
  
  int func_27()
  {
  	return Global_31346;
  }
  
  int func_28()
  {
  	return Global_31345;
  }
  
  int func_29(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;
  }
  
  bool func_30(var uParam0)
  {
  	return uParam0->f_1;
  }
  
  void func_31()
  {
  	switch (Local_1406[unk_0xDD0E57E73E5C4BF6() /*5*/].f_1)
  	{
  		case 0:
  			if (Local_1142 == 1)
  			{
  				unk_0x66AE54CE92457FEE(1);
  				unk_0xC664C0067EEAB8D1(&uLocal_418, 1);
  				unk_0xC664C0067EEAB8D1(&(Local_1406[unk_0xDD0E57E73E5C4BF6() /*5*/].f_2), 4);
  				iLocal_398 = 0;
  				Local_1406[unk_0xDD0E57E73E5C4BF6() /*5*/].f_1 = 1;
  			}
  			else
  			{
  				if (unk_0x234B68AC2E35ED5A(Local_1142.f_2, 0))
  				{
  					if (Local_1142.f_262 != -1)
  					{
  						if (Global_2551618 != Local_1142.f_36[Local_1142.f_197[Local_1142.f_262 /*2*/] /*10*/].f_6)
  						{
  							func_149();
  						}
  					}
  				}
  				else
  				{
  					func_149();
  				}
  				if (unk_0x234B68AC2E35ED5A(Local_1142.f_3[unk_0xDD0E57E73E5C4BF6()], 0))
  				{
  					Local_1406[unk_0xDD0E57E73E5C4BF6() /*5*/].f_3 = Local_1142.f_197[unk_0xDD0E57E73E5C4BF6() /*2*/];
  					if (Local_1406[unk_0xDD0E57E73E5C4BF6() /*5*/].f_3 != -1)
  					{
  						if (Global_2551618 != Local_1142.f_36[Local_1406[unk_0xDD0E57E73E5C4BF6() /*5*/].f_3 /*10*/].f_6)
  						{
  							if (unk_0x234B68AC2E35ED5A(uLocal_418, 0))
  							{
  								unk_0x66AE54CE92457FEE(1);
  								unk_0xC664C0067EEAB8D1(&uLocal_418, 0);
  							}
  							if (!unk_0x234B68AC2E35ED5A(uLocal_418, 1))
  							{
  								if (unk_0x234B68AC2E35ED5A(Local_1406[unk_0xDD0E57E73E5C4BF6() /*5*/].f_2, 0))
  								{
  									func_148("AMFW_WAIT_OFF", -1);
  								}
  								else
  								{
  									func_148("AMFW_WAIT", -1);
  								}
  								unk_0x191DDA30577F440A(&uLocal_418, 1);
  							}
  						}
  						else if (!unk_0x234B68AC2E35ED5A(Local_1406[unk_0xDD0E57E73E5C4BF6() /*5*/].f_2, 4))
  						{
  							unk_0x191DDA30577F440A(&(Local_1406[unk_0xDD0E57E73E5C4BF6() /*5*/].f_2), 4);
  							unk_0xC664C0067EEAB8D1(&(Local_1406[unk_0xDD0E57E73E5C4BF6() /*5*/].f_2), 3);
  							iLocal_429 = 1;
  						}
  					}
  					else
  					{
  						unk_0xC664C0067EEAB8D1(&(Local_1406[unk_0xDD0E57E73E5C4BF6() /*5*/].f_2), 3);
  						iLocal_429 = 1;
  					}
  				}
  				else if (!unk_0x234B68AC2E35ED5A(Local_1406[unk_0xDD0E57E73E5C4BF6() /*5*/].f_2, 8))
  				{
  					if (((((((!func_147(0) && !func_143(unk_0x1146A9AE09CE2B14())) && !func_142(unk_0x1146A9AE09CE2B14(), 21)) && !unk_0xC49311A2A500FF09(unk_0x7D2B9E6A64637269(), 1)) && !unk_0xA12BCF836724905A(unk_0x1146A9AE09CE2B14(), 0)) && unk_0x7A0F33AA19956CEB(-1661.95f, -1127.011f, 12.6973f, 1f, 0, 6) == 0) && !func_141(unk_0x7D2B9E6A64637269())) && !func_140(unk_0x1146A9AE09CE2B14()))
  					{
  						if (!func_137())
  						{
  							if (!unk_0x234B68AC2E35ED5A(Local_1406[unk_0xDD0E57E73E5C4BF6() /*5*/].f_2, 0))
  							{
  								if (unk_0x591190E69BE43117(unk_0x7D2B9E6A64637269(), -1661.95f, -1127.011f, 12.6973f, 1f, 1f, 2f, 0, 1, 0))
  								{
  									func_136("AMFW_ENTER", Global_262145.f_7960, -1);
  									unk_0x191DDA30577F440A(&uLocal_418, 0);
  									if (unk_0x86AF801D34E482FF(2, 51))
  									{
  										func_117();
  										unk_0x191DDA30577F440A(&(Local_1406[unk_0xDD0E57E73E5C4BF6() /*5*/].f_2), 3);
  									}
  								}
  								else if (unk_0x234B68AC2E35ED5A(uLocal_418, 0))
  								{
  									unk_0x66AE54CE92457FEE(1);
  									unk_0xC664C0067EEAB8D1(&uLocal_418, 0);
  								}
  							}
  						}
  						else if ((unk_0xDFB7BFA6482FEE1E() % 1000) < 50)
  						{
  						}
  					}
  				}
  			}
  			func_91();
  			break;
  		
  		case 1:
  			if (Local_1142 == 0)
  			{
  				if (unk_0x234B68AC2E35ED5A(Local_1406[unk_0xDD0E57E73E5C4BF6() /*5*/].f_2, 5) || unk_0x234B68AC2E35ED5A(Local_1406[unk_0xDD0E57E73E5C4BF6() /*5*/].f_2, 7))
  				{
  					func_83();
  					func_81(25);
  				}
  				if (!unk_0x234B68AC2E35ED5A(Local_1142.f_3[unk_0xDD0E57E73E5C4BF6()], 0))
  				{
  					unk_0xC664C0067EEAB8D1(&(Local_1406[unk_0xDD0E57E73E5C4BF6() /*5*/].f_2), 8);
  				}
  				unk_0x66AE54CE92457FEE(1);
  				unk_0xC664C0067EEAB8D1(&(Local_1406[unk_0xDD0E57E73E5C4BF6() /*5*/].f_2), 7);
  				unk_0xC664C0067EEAB8D1(&uLocal_418, 2);
  				unk_0xC664C0067EEAB8D1(&(Local_1406[unk_0xDD0E57E73E5C4BF6() /*5*/].f_2), 11);
  				unk_0xC664C0067EEAB8D1(&(Local_1406[unk_0xDD0E57E73E5C4BF6() /*5*/].f_2), 6);
  				Local_1406[unk_0xDD0E57E73E5C4BF6() /*5*/].f_1 = 0;
  				if (unk_0x234B68AC2E35ED5A(Local_1406[unk_0xDD0E57E73E5C4BF6() /*5*/].f_2, 0))
  				{
  					func_91();
  				}
  			}
  			else
  			{
  				if (unk_0x234B68AC2E35ED5A(Local_1406[unk_0xDD0E57E73E5C4BF6() /*5*/].f_2, 0))
  				{
  					if ((Local_1142.f_262 != -1 && Local_1406[unk_0xDD0E57E73E5C4BF6() /*5*/].f_3 != -1) && Local_1406[unk_0xDD0E57E73E5C4BF6() /*5*/].f_3 == Local_1142.f_197[Local_1142.f_262 /*2*/])
  					{
  						if (!unk_0x234B68AC2E35ED5A(Local_1406[unk_0xDD0E57E73E5C4BF6() /*5*/].f_2, 7))
  						{
  							if (!unk_0x234B68AC2E35ED5A(Local_1142.f_2, 4))
  							{
  								func_148("AMFW_GET_OUT", -1);
  							}
  							func_80(&uLocal_395, 0);
  							func_80(&uLocal_324, 0);
  							func_79(&Local_325, 0, 1);
  							unk_0x191DDA30577F440A(&(Local_1406[unk_0xDD0E57E73E5C4BF6() /*5*/].f_2), 7);
  						}
  						if (!unk_0x234B68AC2E35ED5A(Local_1142.f_2, 3))
  						{
  							if (unk_0x86AF801D34E482FF(2, 23))
  							{
  								func_77(func_78(1));
  							}
  						}
  					}
  					else
  					{
  						func_91();
  					}
  				}
  				else if (((((((!func_147(0) && !func_143(unk_0x1146A9AE09CE2B14())) && !func_142(unk_0x1146A9AE09CE2B14(), 21)) && !unk_0xC49311A2A500FF09(unk_0x7D2B9E6A64637269(), 1)) && !unk_0xA12BCF836724905A(unk_0x1146A9AE09CE2B14(), 0)) && unk_0x7A0F33AA19956CEB(-1661.95f, -1127.011f, 12.6973f, 1f, 0, 6) == 0) && !func_76()) && !Global_1312436.f_6)
  				{
  					if (!func_137())
  					{
  						if (unk_0x234B68AC2E35ED5A(Local_1142.f_2, 1))
  						{
  							if (Local_1142.f_197[Local_1142.f_262 /*2*/].f_1 == unk_0x1146A9AE09CE2B14())
  							{
  								if (!unk_0x234B68AC2E35ED5A(Local_1142.f_2, 3))
  								{
  									if (!unk_0x234B68AC2E35ED5A(Local_1406[unk_0xDD0E57E73E5C4BF6() /*5*/].f_2, 11))
  									{
  										func_77(func_78(1));
  										unk_0x191DDA30577F440A(&(Local_1406[unk_0xDD0E57E73E5C4BF6() /*5*/].f_2), 11);
  									}
  								}
  							}
  						}
  						else if (unk_0x591190E69BE43117(unk_0x7D2B9E6A64637269(), -1661.95f, -1127.011f, 12.6973f, 1f, 1f, 2f, 0, 1, 0))
  						{
  							if ((!unk_0x234B68AC2E35ED5A(Local_1142.f_2, 3) && !unk_0x234B68AC2E35ED5A(Local_1406[unk_0xDD0E57E73E5C4BF6() /*5*/].f_2, 9)) && Local_1142.f_262 != -1)
  							{
  								if (!Local_1142.f_36[Local_1142.f_197[Local_1142.f_262 /*2*/] /*10*/].f_3 >= 2)
  								{
  									if (unk_0x234B68AC2E35ED5A(Local_1406[unk_0xDD0E57E73E5C4BF6() /*5*/].f_2, 8))
  									{
  										func_148("AMFW_GET_IN", -1);
  									}
  									else
  									{
  										func_136("AMFW_GET_IN_P", Global_262145.f_7960, -1);
  									}
  									if (unk_0x86AF801D34E482FF(0, 23))
  									{
  										if (!unk_0x234B68AC2E35ED5A(Local_1406[unk_0xDD0E57E73E5C4BF6() /*5*/].f_2, 8))
  										{
  											func_117();
  										}
  										func_77(func_78(1));
  									}
  								}
  								else if (!unk_0x234B68AC2E35ED5A(uLocal_418, 2))
  								{
  									func_148("AMFW_CAR_FULL", -1);
  									unk_0x191DDA30577F440A(&uLocal_418, 2);
  								}
  							}
  						}
  					}
  					else if ((unk_0xDFB7BFA6482FEE1E() % 1000) < 50)
  					{
  					}
  				}
  				if (Local_1142.f_262 != -1)
  				{
  					if (unk_0x234B68AC2E35ED5A(Local_1406[unk_0xDD0E57E73E5C4BF6() /*5*/].f_2, 9))
  					{
  						func_67();
  					}
  					if (unk_0x234B68AC2E35ED5A(Local_1406[unk_0xDD0E57E73E5C4BF6() /*5*/].f_2, 10))
  					{
  						func_39();
  					}
  				}
  			}
  			break;
  	}
  	if (unk_0x234B68AC2E35ED5A(Local_1406[unk_0xDD0E57E73E5C4BF6() /*5*/].f_2, 0))
  	{
  		func_33(0);
  	}
  	if (!unk_0xCE84F8AB9BD41C13())
  	{
  		unk_0x43D3344EE0A5162E("ferris_finale_Anim");
  	}
  	func_32();
  }
  
  void func_32()
  {
  	struct<3> Var0;
  	
  	if (unk_0x4B1BAFAB7E8F4DA7(-1666.711f, -1127.518f, 12.6973f, 3f) && (unk_0x591190E69BE43117(unk_0x7D2B9E6A64637269(), -1666.711f, -1127.518f, 12.6973f, 0.5f, 0.5f, 1f, 0, 1, 0) || unk_0x591190E69BE43117(unk_0x7D2B9E6A64637269(), -1666.383f, -1126.286f, 12.6973f, 0.5f, 0.5f, 1f, 0, 1, 0)))
  	{
  		if (!unk_0x234B68AC2E35ED5A(uLocal_418, 5))
  		{
  			if (((unk_0xD03B80D5775B63DF(unk_0x7D2B9E6A64637269()) || unk_0xD9045D352687BE18(unk_0x7D2B9E6A64637269())) || unk_0xB800560AF60FDD2E(unk_0x7D2B9E6A64637269())) || unk_0x970CD43622925924(unk_0x7D2B9E6A64637269()))
  			{
  				func_5(&uLocal_422);
  				unk_0x191DDA30577F440A(&uLocal_418, 5);
  			}
  		}
  		else if (func_20(&uLocal_422, 2000, 0))
  		{
  			if (((unk_0xD03B80D5775B63DF(unk_0x7D2B9E6A64637269()) || unk_0xD9045D352687BE18(unk_0x7D2B9E6A64637269())) || unk_0xB800560AF60FDD2E(unk_0x7D2B9E6A64637269())) || unk_0x970CD43622925924(unk_0x7D2B9E6A64637269()))
  			{
  				Var0 = { unk_0xD6E677FAD7521410(unk_0x7D2B9E6A64637269(), 1) };
  				unk_0x78CDDD1E6367978D(unk_0x7D2B9E6A64637269(), Var0.x, Var0.f_1, (Var0.f_2 + 2f), 1, 0, 0, 1);
  				unk_0xC664C0067EEAB8D1(&uLocal_418, 5);
  			}
  		}
  	}
  }
  
  void func_33(int iParam0)
  {
  	if (func_38())
  	{
  		return;
  	}
  	if (!Global_19798.f_1 == 1)
  	{
  		if (func_147(0))
  		{
  			func_34(iParam0);
  		}
  		unk_0x191DDA30577F440A(&Global_7669, 2);
  	}
  }
  
  void func_34(int iParam0)
  {
  	if (func_38())
  	{
  		return;
  	}
  	if (Global_19984)
  	{
  		if (func_37())
  		{
  			func_36(1, 1);
  		}
  		else
  		{
  			func_36(0, 0);
  		}
  	}
  	if (Global_19798.f_1 == 10 || Global_19798.f_1 == 9)
  	{
  		unk_0x191DDA30577F440A(&Global_7669, 16);
  	}
  	if (unk_0x8820F6FCD373F9F7())
  	{
  		unk_0x75B41F5020877259(0);
  	}
  	Global_21125 = 5;
  	if (iParam0 == 1)
  	{
  		unk_0x191DDA30577F440A(&Global_7668, 30);
  	}
  	else
  	{
  		unk_0xC664C0067EEAB8D1(&Global_7668, 30);
  	}
  	if (!func_35())
  	{
  		Global_19798.f_1 = 3;
  	}
  }
  
  int func_35()
  {
  	if (Global_19798.f_1 == 1 || Global_19798.f_1 == 0)
  	{
  		return 1;
  	}
  	return 0;
  }
  
  void func_36(bool bParam0, bool bParam1)
  {
  	if (bParam0)
  	{
  		if (func_147(0))
  		{
  			Global_19984 = 1;
  			if (bParam1)
  			{
  				unk_0x3AEC124A3999B3D1(&Global_19735);
  			}
  			Global_19726 = { Global_19744[Global_19743 /*3*/] };
  			unk_0xA48FA5CE681A5230(Global_19726);
  		}
  	}
  	else if (Global_19984 == 1)
  	{
  		Global_19984 = 0;
  		Global_19726 = { Global_19751[Global_19743 /*3*/] };
  		if (bParam1)
  		{
  			unk_0xA48FA5CE681A5230(Global_19735);
  		}
  		else
  		{
  			unk_0xA48FA5CE681A5230(Global_19726);
  		}
  	}
  }
  
  bool func_37()
  {
  	return unk_0x234B68AC2E35ED5A(Global_1695733, 5);
  }
  
  bool func_38()
  {
  	return unk_0x234B68AC2E35ED5A(Global_1695733, 19);
  }
  
  void func_39()
  {
  	StringCopy(&cLocal_412, "exit_player_", 24);
  	if (Local_1406[unk_0xDD0E57E73E5C4BF6() /*5*/].f_4 == 0)
  	{
  		StringConCat(&cLocal_412, "one", 24);
  	}
  	else
  	{
  		StringConCat(&cLocal_412, "two", 24);
  	}
  	uLocal_427 = unk_0x88A92D91AB021F3F(Local_315, 0f, 0f, 0f, 2, 0, 0, 1065353216, 0, 1065353216);
  	unk_0x5DDC0EBEF6A48288(unk_0x7D2B9E6A64637269(), uLocal_427, sLocal_399, &cLocal_412, 8f, -8f, 131072, 0, 1148846080, 0);
  	unk_0x20F6F12F2945E30E(uLocal_427);
  	unk_0x66AE54CE92457FEE(1);
  	func_54(unk_0x1146A9AE09CE2B14(), 1, 0, 0);
  	func_45(0);
  	if (func_44(unk_0x7D2B9E6A64637269()))
  	{
  		if (unk_0x5976053523EA16C8(unk_0x7D2B9E6A64637269()))
  		{
  			unk_0x3211C35423263392(unk_0x7D2B9E6A64637269(), 1, 1);
  		}
  	}
  	func_43(func_78(0));
  	if (unk_0xB30CD10E2CD1B67D("FAIRGROUND_RIDES_FERRIS_WHALE"))
  	{
  		unk_0xC0BBE340BE2AA02D("FAIRGROUND_RIDES_FERRIS_WHALE");
  	}
  	if (unk_0xB30CD10E2CD1B67D("FAIRGROUND_RIDES_FERRIS_WHALE_ALTERNATIVE_VIEW"))
  	{
  		unk_0xC0BBE340BE2AA02D("FAIRGROUND_RIDES_FERRIS_WHALE_ALTERNATIVE_VIEW");
  	}
  	func_41();
  	unk_0x191DDA30577F440A(&(Local_1406[unk_0xDD0E57E73E5C4BF6() /*5*/].f_2), 6);
  	unk_0xC664C0067EEAB8D1(&(Local_1406[unk_0xDD0E57E73E5C4BF6() /*5*/].f_2), 7);
  	unk_0xC664C0067EEAB8D1(&(Local_1406[unk_0xDD0E57E73E5C4BF6() /*5*/].f_2), 0);
  	unk_0xC664C0067EEAB8D1(&(Local_1406[unk_0xDD0E57E73E5C4BF6() /*5*/].f_2), 5);
  	unk_0xC664C0067EEAB8D1(&(Local_1406[unk_0xDD0E57E73E5C4BF6() /*5*/].f_2), 10);
  	unk_0xC664C0067EEAB8D1(&(Global_1590908[unk_0x1146A9AE09CE2B14() /*874*/].f_873), 14);
  	func_40(func_78(1), Local_1406[unk_0xDD0E57E73E5C4BF6() /*5*/].f_4, 0);
  	Local_1406[unk_0xDD0E57E73E5C4BF6() /*5*/].f_4 = -1;
  	unk_0x78C4D915ABA04036(0);
  }
  
  void func_40(int iParam0, var uParam1, int iParam2)
  {
  	struct<4> Var0;
  	
  	Var0 = -179902936;
  	Var0.f_1 = unk_0x1146A9AE09CE2B14();
  	Var0.f_2 = uParam1;
  	Var0.f_3 = iParam2;
  	if (!iParam0 == 0)
  	{
  		unk_0xA5C82A39FF8ED272(1, &Var0, 4, iParam0);
  	}
  }
  
  void func_41()
  {
  	if (unk_0x234B68AC2E35ED5A(uLocal_418, 8))
  	{
  		func_42(&iLocal_319);
  		func_42(&iLocal_321);
  		func_42(&iLocal_322);
  		func_42(&iLocal_320);
  		unk_0x315DA2F7337A8638("SCRIPT\FERRIS_WHALE_01");
  		unk_0x315DA2F7337A8638("SCRIPT\FERRIS_WHALE_02");
  		unk_0xC664C0067EEAB8D1(&uLocal_418, 8);
  	}
  	unk_0xC664C0067EEAB8D1(&uLocal_418, 7);
  }
  
  void func_42(int iParam0)
  {
  	if (*iParam0 != -1)
  	{
  		unk_0x791B4C3811D53DFA(*iParam0);
  		unk_0xBAB6F7501A822416(*iParam0);
  		*iParam0 = -1;
  	}
  }
  
  void func_43(int iParam0)
  {
  	struct<2> Var0;
  	
  	Var0 = -744594073;
  	Var0.f_1 = unk_0x1146A9AE09CE2B14();
  	if (!iParam0 == 0)
  	{
  		unk_0xA5C82A39FF8ED272(1, &Var0, 2, iParam0);
  	}
  }
  
  bool func_44(var uParam0)
  {
  	if (!unk_0x419E13582192CFEA(uParam0))
  	{
  		return 0;
  	}
  	return !unk_0xE50EB54E0F21BED0(uParam0, 0);
  }
  
  void func_45(bool bParam0)
  {
  	if (bParam0)
  	{
  		if (!unk_0x234B68AC2E35ED5A(uLocal_418, 6))
  		{
  			func_52(0, 0);
  			unk_0x191DDA30577F440A(&uLocal_418, 6);
  		}
  	}
  	else if (unk_0x234B68AC2E35ED5A(uLocal_418, 6))
  	{
  		func_46();
  		unk_0xC664C0067EEAB8D1(&uLocal_418, 6);
  	}
  }
  
  void func_46()
  {
  	if (Global_1312436.f_1 == 1)
  	{
  		func_47(7, 0, 1);
  		Global_1312436.f_1 = 0;
  		Global_1630816[unk_0x1146A9AE09CE2B14() /*597*/].f_9 = 0;
  	}
  }
  
  void func_47(int iParam0, int iParam1, bool bParam2)
  {
  	if (func_51())
  	{
  		if (iParam1 == 1)
  		{
  			if (Global_2544210.f_4461 == -1)
  			{
  				Global_2544210.f_4461 = Global_262145.f_26682;
  			}
  			func_50(&(Global_2544210.f_4459), 0, 0);
  			if (bParam2)
  			{
  				if (Global_2544210.f_4464 == -1)
  				{
  					Global_2544210.f_4464 = Global_262145.f_26683;
  				}
  				func_50(&(Global_2544210.f_4462), 0, 0);
  			}
  			else
  			{
  				Global_1312436 = 0;
  				Global_1630816[unk_0x1146A9AE09CE2B14() /*597*/].f_8 = 0;
  				func_49(1);
  			}
  		}
  		else
  		{
  			Global_1312436 = 0;
  			Global_1630816[unk_0x1146A9AE09CE2B14() /*597*/].f_8 = 0;
  			func_49(1);
  		}
  		if ((!unk_0xE45310E861787FC2() && !func_48()) && !func_14(unk_0x1146A9AE09CE2B14()))
  		{
  			Global_968396 = 0;
  		}
  		unk_0xE6363D7A51B58AD2(0, -1, -1, iParam0);
  	}
  }
  
  bool func_48()
  {
  	return Global_2453009.f_840;
  }
  
  void func_49(bool bParam0)
  {
  	if (unk_0x02BFF15CAA701972())
  	{
  		if (!func_51())
  		{
  			if (func_13(unk_0x1146A9AE09CE2B14(), 1, 0))
  			{
  				unk_0x13812A3531901D7E(unk_0x7D2B9E6A64637269(), 1);
  				unk_0x7B28A83A0D3DD0F9(unk_0x7D2B9E6A64637269(), 342, 0);
  				unk_0x7B28A83A0D3DD0F9(unk_0x7D2B9E6A64637269(), 122, 0);
  			}
  			unk_0x235C361BD000E938(unk_0x1146A9AE09CE2B14(), 1f);
  			unk_0x319666C195174A88(0);
  			unk_0x6FB1EB7F73800604(1);
  			if (Global_1312436.f_1 == 0 || Global_1312436.f_2 == 1)
  			{
  				Global_1312436.f_2 = 0;
  				if (bParam0)
  				{
  					unk_0x2287F6D727F498F6(0, 0);
  				}
  			}
  		}
  		else
  		{
  			if (func_13(unk_0x1146A9AE09CE2B14(), 1, 1))
  			{
  				unk_0x13812A3531901D7E(unk_0x7D2B9E6A64637269(), 0);
  				unk_0x2FF622571073AA69(unk_0x7D2B9E6A64637269(), joaat("weapon_unarmed"), 1);
  				unk_0x7B28A83A0D3DD0F9(unk_0x7D2B9E6A64637269(), 342, 1);
  				unk_0x7B28A83A0D3DD0F9(unk_0x7D2B9E6A64637269(), 122, 1);
  				unk_0x235C361BD000E938(unk_0x1146A9AE09CE2B14(), 0.5f);
  				if (Global_1312436.f_1 == 0 || Global_1312436.f_2 == 1)
  				{
  					unk_0x2287F6D727F498F6(1, 0);
  				}
  			}
  			unk_0x319666C195174A88(1);
  			unk_0x6FB1EB7F73800604(0);
  		}
  	}
  }
  
  void func_50(var uParam0, bool bParam1, bool bParam2)
  {
  	if (unk_0x02BFF15CAA701972() && !bParam1)
  	{
  		if (!bParam2)
  		{
  			*uParam0 = unk_0x551F46B3C7DFB654();
  		}
  		else
  		{
  			*uParam0 = unk_0xCB3024ED32EBF9EC();
  		}
  	}
  	else
  	{
  		*uParam0 = unk_0xDFB7BFA6482FEE1E();
  	}
  	uParam0->f_1 = 1;
  }
  
  bool func_51()
  {
  	return Global_1312436;
  }
  
  void func_52(int iParam0, int iParam1)
  {
  	if (!func_15(unk_0x1146A9AE09CE2B14(), 1, 0) || iParam1)
  	{
  		if (!func_51())
  		{
  			Global_1312436.f_1 = 1;
  			Global_1630816[unk_0x1146A9AE09CE2B14() /*597*/].f_9 = 1;
  			if (iParam0 == 1)
  			{
  				Global_1312436.f_2 = 1;
  			}
  			func_53(7, 0, -1);
  		}
  	}
  }
  
  void func_53(int iParam0, int iParam1, int iParam2)
  {
  	if (!func_51() || iParam1)
  	{
  		Global_1312436 = 1;
  		func_49(1);
  		if (((!unk_0xE45310E861787FC2() && !func_48()) && !func_14(unk_0x1146A9AE09CE2B14())) && !func_143(unk_0x1146A9AE09CE2B14()))
  		{
  			Global_968396 = 1;
  		}
  		Global_1630816[unk_0x1146A9AE09CE2B14() /*597*/].f_8 = 1;
  		unk_0xE6363D7A51B58AD2(1, iParam0, iParam2, -1);
  	}
  }
  
  void func_54(int iParam0, bool bParam1, int iParam2, int iParam3)
  {
  	var uVar0;
  	bool bVar1;
  	bool bVar2;
  	bool bVar3;
  	bool bVar4;
  	bool bVar5;
  	bool bVar6;
  	bool bVar7;
  	bool bVar8;
  	bool bVar9;
  	bool bVar10;
  	bool bVar11;
  	bool bVar12;
  	bool bVar13;
  	bool bVar14;
  	bool bVar15;
  	bool bVar16;
  	bool bVar17;
  	bool bVar18;
  	bool bVar19;
  	bool bVar20;
  	bool bVar21;
  	bool bVar22;
  	bool bVar23;
  	bool bVar24;
  	bool bVar25;
  	bool bVar26;
  	var uVar27;
  	int iVar28;
  	
  	if (bParam1)
  	{
  		if (unk_0xFDC069EFB77AEBE9())
  		{
  			unk_0xA82C5CF50055A1B4(0);
  		}
  	}
  	if (func_66())
  	{
  		if (bParam1)
  		{
  			return;
  		}
  		else
  		{
  			iParam3 = 1;
  		}
  	}
  	if (!unk_0x02BFF15CAA701972())
  	{
  		uVar0 = iParam2;
  		unk_0xF99B8860747709DD(iParam0, bParam1, uVar0);
  	}
  	else
  	{
  		bVar1 = true;
  		bVar2 = iParam2 & 2 != false;
  		bVar3 = iParam2 & 4 != false;
  		bVar4 = iParam2 & 8 != false;
  		bVar5 = iParam2 & 16 != false;
  		bVar6 = iParam2 & 32 != false;
  		bVar7 = iParam2 & 64 != false;
  		bVar8 = iParam2 & 128 != false;
  		bVar9 = iParam2 & 256 != false;
  		bVar10 = iParam2 & 512 != false;
  		bVar11 = iParam2 & 1024 != false;
  		bVar12 = iParam2 & 2048 != false;
  		bVar13 = iParam2 & 4096 != false;
  		bVar14 = iParam2 & 8192 != false;
  		bVar15 = iParam2 & 16384 != false;
  		bVar16 = iParam2 & 32768 != false;
  		bVar17 = iParam2 & 65536 != false;
  		bVar18 = iParam2 & 131072 != false;
  		bVar19 = iParam2 & 262144 != false;
  		bVar20 = iParam2 & 524288 != false;
  		bVar21 = iParam2 & 1048576 != false;
  		bVar22 = iParam2 & 2097152 != false;
  		bVar23 = iParam2 & 4194304 != false;
  		bVar24 = iParam2 & 8388608 != false;
  		bVar25 = iParam2 & 16777216 != false;
  		if (iParam2 & 33554432 != 0 || unk_0xE45310E861787FC2())
  		{
  			bVar1 = false;
  		}
  		if (!func_172())
  		{
  			bVar26 = false;
  			if (bParam1 == 1)
  			{
  				bVar26 = true;
  			}
  			if (bVar16 == 0 && !bVar21)
  			{
  				bVar26 = true;
  			}
  			if (bVar10 == 1)
  			{
  				bVar26 = true;
  			}
  			if (bVar26)
  			{
  				return;
  			}
  		}
  		if (bVar18)
  		{
  		}
  		if (unk_0x8CFC2F41A749E236(iParam0) && (unk_0xCAD1755E530A6012(iParam0) || iParam3 == 1))
  		{
  			if (iParam3 && unk_0xE50EB54E0F21BED0(unk_0xD56332194D622ECE(iParam0), 0))
  			{
  				return;
  			}
  			uVar27 = unk_0xD56332194D622ECE(iParam0);
  			if (!bVar20)
  			{
  				if ((bVar19 && bParam1 == 0) && unk_0x02BFF15CAA701972())
  				{
  					unk_0x387A0B2797EBDE5F(1);
  				}
  				else if (bVar14 || (!func_63(unk_0x1146A9AE09CE2B14(), 0) && !func_62()))
  				{
  					unk_0x4603196EEEA2355C(uVar27, !bVar14, 0);
  				}
  				if (!bVar14)
  				{
  					if (unk_0x02BFF15CAA701972() && !bVar19)
  					{
  						unk_0x387A0B2797EBDE5F(0);
  					}
  					Global_2426865[iParam0 /*449*/].f_253 = 0;
  				}
  			}
  			if (bParam1)
  			{
  				if (bVar1)
  				{
  					func_59(0, 0, 0);
  					if (bVar25)
  					{
  						unk_0x961F6202C2192265();
  					}
  				}
  				if (!func_58(uVar27) && !unk_0x0D5E478A215B3F4A(uVar27))
  				{
  					if (!bVar22)
  					{
  						unk_0x3CBE9F07524C242D(uVar27, true, 0);
  					}
  				}
  				if (!unk_0x5976053523EA16C8(uVar27))
  				{
  					if (!bVar21)
  					{
  						unk_0xA2C015B68CE01357(uVar27, false);
  					}
  					unk_0x8B58E7AC53EED9F1(uVar27, 1);
  				}
  				else if (!bVar21)
  				{
  					unk_0xA2C015B68CE01357(uVar27, false);
  				}
  				unk_0x1D7A4E9E23D306D6(uVar27, true);
  				unk_0x03903A362E41A74F(iParam0, 0);
  				unk_0x480217AACC9C34FB(iParam0, 0);
  				if (unk_0x313CC23B5525839F(uVar27) && unk_0x9038A2103B9BFD38(uVar27))
  				{
  					unk_0x9C4430B10B361917(uVar27);
  				}
  				unk_0xF5143FB7B9EC876D(uVar27, 1);
  				if (unk_0xDF02DA324F934755(unk_0x1146A9AE09CE2B14()) == 0)
  				{
  					func_57();
  					func_56();
  				}
  				if (unk_0x7A4185C9A76C12B2())
  				{
  					if (!bVar23)
  					{
  					}
  				}
  				if (unk_0xCE84F8AB9BD41C13())
  				{
  				}
  				Global_2426865[iParam0 /*449*/].f_254 = 0;
  				if (!bVar24)
  				{
  					bVar3 = true;
  				}
  				if (Global_2405077.f_2679)
  				{
  					Global_2405077.f_2679 = 0;
  				}
  			}
  			else
  			{
  				if (!func_58(uVar27) && !unk_0x0D5E478A215B3F4A(uVar27))
  				{
  					if (!bVar22)
  					{
  						unk_0x3CBE9F07524C242D(uVar27, !bVar15, 0);
  					}
  					if (!unk_0x5976053523EA16C8(uVar27))
  					{
  						if (!bVar21)
  						{
  							unk_0xA2C015B68CE01357(uVar27, bVar16);
  						}
  						if (!bVar16)
  						{
  							unk_0x8B58E7AC53EED9F1(uVar27, 1);
  						}
  					}
  					if (func_55(Global_4456448.f_133963))
  					{
  						unk_0xA2C015B68CE01357(uVar27, true);
  					}
  				}
  				if (Global_1312878)
  				{
  					bVar10 = false;
  				}
  				if (bVar10)
  				{
  					unk_0x03903A362E41A74F(iParam0, 0);
  				}
  				else
  				{
  					unk_0x03903A362E41A74F(iParam0, 1);
  				}
  				unk_0x1D7A4E9E23D306D6(uVar27, bVar17);
  				if (bVar3)
  				{
  					if (!unk_0x02E166B5C96465D2(uVar27) && !unk_0xC49311A2A500FF09(uVar27, 0))
  					{
  						unk_0x16D66F11FE644901(uVar27);
  					}
  				}
  			}
  			iVar28 = 0;
  			if (bVar2)
  			{
  				iVar28 |= 2;
  			}
  			if (bVar3)
  			{
  				iVar28 |= 4;
  			}
  			if (bVar4)
  			{
  				iVar28 |= 8;
  			}
  			if (bVar5)
  			{
  				iVar28 |= 16;
  			}
  			if (bVar6)
  			{
  				iVar28 |= 32;
  			}
  			if (bVar7)
  			{
  				iVar28 |= 64;
  			}
  			if (bVar8)
  			{
  				iVar28 |= 128;
  			}
  			if (bVar9)
  			{
  				iVar28 |= 256;
  			}
  			if (bVar10)
  			{
  				iVar28 |= 512;
  			}
  			if (bVar11)
  			{
  				iVar28 |= 1024;
  			}
  			if (bVar12)
  			{
  				iVar28 |= 2048;
  			}
  			if (bVar13)
  			{
  				iVar28 |= 4096;
  			}
  			unk_0xF99B8860747709DD(iParam0, bParam1, iVar28);
  		}
  	}
  }
  
  bool func_55(int iParam0)
  {
  	return iParam0 == 17;
  }
  
  void func_56()
  {
  	struct<3> Var0;
  	
  	Global_2441237.f_1351 = 0;
  	Global_2441237.f_1352 = 0;
  	Global_2441237.f_1353 = { 9999.9f, 9999.9f, 9999.9f };
  	Global_2441237.f_1358 = -1;
  	Global_2441237.f_1359 = 0;
  	Global_2405077.f_2690 = { Var0 };
  }
  
  void func_57()
  {
  	Global_2405077.f_701 = 0;
  	Global_2405077.f_2733 = 0;
  	Global_2405077.f_514 = 0;
  	Global_2405077.f_605 = 0;
  	Global_2426865[unk_0x1146A9AE09CE2B14() /*449*/].f_216 = 0;
  	Global_2405077.f_2688 = 0;
  }
  
  int func_58(var uParam0)
  {
  	int iVar0;
  	
  	if (unk_0xC49311A2A500FF09(uParam0, 1))
  	{
  		return 1;
  	}
  	else
  	{
  		iVar0 = unk_0x4E8DA737B686529A(uParam0, -1794415470);
  		if (iVar0 == 0)
  		{
  			return 1;
  		}
  	}
  	return 0;
  }
  
  void func_59(int iParam0, int iParam1, int iParam2)
  {
  	int iVar0;
  	int iVar1;
  	
  	if (unk_0xE50EB54E0F21BED0(iParam1, 0))
  	{
  	}
  	if (iParam0 == 1)
  	{
  		if (unk_0x419E13582192CFEA(iParam1))
  		{
  			if (unk_0x72D30262CF8C8603(iParam1))
  			{
  				if (!unk_0xEBB066F8EADD0C1F(unk_0x1146A9AE09CE2B14(), unk_0xCB567ED25393C1DF(iParam1)))
  				{
  					iVar0 = 1;
  				}
  			}
  		}
  	}
  	if (iVar0 == 0)
  	{
  		if (iParam2 == 1)
  		{
  			if (iParam0 == 1)
  			{
  				func_61();
  			}
  			else if (!unk_0x234B68AC2E35ED5A(Global_2359302.f_67, 1))
  			{
  				if (unk_0x234B68AC2E35ED5A(Global_2359302.f_67, 2))
  				{
  					iVar1 = 0;
  					while (iVar1 < 8)
  					{
  						unk_0xA01D7927903507FB(iVar1, Global_2359302.f_58[iVar1]);
  						iVar1++;
  					}
  				}
  				unk_0x191DDA30577F440A(&(Global_2359302.f_67), 1);
  			}
  		}
  		if (func_63(unk_0x1146A9AE09CE2B14(), 0))
  		{
  			unk_0xEC42452B73B6CCCE(iParam0, iParam1, 1);
  		}
  		else
  		{
  			unk_0x8779A14B5EC7A124(iParam0, iParam1);
  		}
  		unk_0xC862BFF2021CFFD7(iParam0, iParam1);
  		func_60(joaat("mpply_is_char_spectating"), iParam0);
  	}
  }
  
  void func_60(int iParam0, int iParam1)
  {
  	int iVar0;
  	
  	iVar0 = iParam0;
  	if (iVar0 != 0)
  	{
  		unk_0x6ACB137CE7852248(iVar0, iParam1, 1);
  	}
  }
  
  void func_61()
  {
  	int iVar0;
  	
  	if (!unk_0xDD14CDB3B8003696())
  	{
  		if (!unk_0x234B68AC2E35ED5A(Global_2359302.f_67, 2))
  		{
  			iVar0 = 0;
  			while (iVar0 < 8)
  			{
  				Global_2359302.f_58[iVar0] = unk_0x5F95E51ABC3FC59A(iVar0);
  				iVar0++;
  			}
  			unk_0x191DDA30577F440A(&(Global_2359302.f_67), 2);
  			unk_0x191DDA30577F440A(&(Global_2359302.f_67), 0);
  		}
  	}
  }
  
  bool func_62()
  {
  	return unk_0x234B68AC2E35ED5A(Global_2359302, 3);
  }
  
  bool func_63(int iParam0, int iParam1)
  {
  	bool bVar0;
  	
  	if (iParam0 == unk_0x1146A9AE09CE2B14())
  	{
  		bVar0 = func_64(-1, 0) == 8;
  	}
  	else
  	{
  		bVar0 = Global_1590908[iParam0 /*874*/].f_205 == 8;
  	}
  	if (iParam1 == 1)
  	{
  		if (unk_0x8CFC2F41A749E236(iParam0))
  		{
  			bVar0 = unk_0x7C3E030BC3ED6671(iParam0) == 8;
  		}
  	}
  	return bVar0;
  }
  
  int func_64(int iParam0, bool bParam1)
  {
  	int iVar0;
  	int iVar1;
  	
  	iVar1 = iParam0;
  	if (iVar1 == -1)
  	{
  		iVar1 = func_65();
  	}
  	if (Global_1312882[iVar1] == 1)
  	{
  		if (bParam1)
  		{
  		}
  		iVar0 = 8;
  	}
  	else
  	{
  		iVar0 = Global_1312757[iVar1];
  		if (bParam1)
  		{
  		}
  	}
  	return iVar0;
  }
  
  int func_65()
  {
  	return Global_1312763;
  }
  
  int func_66()
  {
  	if (unk_0x234B68AC2E35ED5A(Global_1590908[unk_0x1146A9AE09CE2B14() /*874*/].f_873, 2) && !Global_2453903.f_2846.f_216 == -1)
  	{
  		return 1;
  	}
  	return 0;
  }
  
  void func_67()
  {
  	struct<3> Var0;
  	struct<3> Var3;
  	var uVar6;
  	
  	Var0 = { -1661.914f, -1126.842f, 12.6973f };
  	if (!unk_0x234B68AC2E35ED5A(uLocal_418, 7))
  	{
  		if (!unk_0x952AB441FA24BF16("SCRIPT\FERRIS_WHALE_01", 0, -1) || !unk_0x952AB441FA24BF16("SCRIPT\FERRIS_WHALE_02", 0, -1))
  		{
  			if (!func_30(&Local_424))
  			{
  				func_21(&Local_424, 1, 0);
  			}
  			else if (func_75(Local_424, 4000, 1))
  			{
  				unk_0x191DDA30577F440A(&uLocal_418, 7);
  			}
  			return;
  		}
  		else
  		{
  			unk_0x191DDA30577F440A(&uLocal_418, 8);
  			unk_0x191DDA30577F440A(&uLocal_418, 7);
  		}
  	}
  	switch (iLocal_428)
  	{
  		case 0:
  			if (func_13(unk_0x1146A9AE09CE2B14(), 1, 1) && !Global_1312436.f_6)
  			{
  				Local_1406[unk_0xDD0E57E73E5C4BF6() /*5*/].f_3 = Local_1142.f_197[Local_1142.f_262 /*2*/];
  				Local_315 = { unk_0x9E695CE384C77EF0(iLocal_290[Local_1406[unk_0xDD0E57E73E5C4BF6() /*5*/].f_3], 0f, 0f, 0f) };
  				if (!Local_1142.f_36[Local_1142.f_197[Local_1142.f_262 /*2*/] /*10*/][0])
  				{
  					Local_1406[unk_0xDD0E57E73E5C4BF6() /*5*/].f_4 = 0;
  				}
  				else if (!Local_1142.f_36[Local_1142.f_197[Local_1142.f_262 /*2*/] /*10*/][1])
  				{
  					Local_1406[unk_0xDD0E57E73E5C4BF6() /*5*/].f_4 = 1;
  				}
  				StringCopy(&cLocal_400, "enter_player_", 24);
  				StringCopy(&cLocal_406, "idle_a_player_", 24);
  				if (Local_1406[unk_0xDD0E57E73E5C4BF6() /*5*/].f_4 == 0)
  				{
  					StringConCat(&cLocal_400, "one", 24);
  					StringConCat(&cLocal_406, "one", 24);
  				}
  				else
  				{
  					StringConCat(&cLocal_400, "two", 24);
  					StringConCat(&cLocal_406, "two", 24);
  				}
  				func_54(unk_0x1146A9AE09CE2B14(), 0, 260, 0);
  				func_45(1);
  				unk_0x28A5BAF912B4E14D(unk_0x7D2B9E6A64637269(), Var0, 1f, 20000, 98.6981f, 0.2f);
  				unk_0xC664C0067EEAB8D1(&(Global_1590908[unk_0x1146A9AE09CE2B14() /*874*/].f_873), 14);
  				unk_0x78C4D915ABA04036(1);
  				func_69();
  				iLocal_428 = 1;
  			}
  			else
  			{
  				unk_0xC664C0067EEAB8D1(&(Local_1406[unk_0xDD0E57E73E5C4BF6() /*5*/].f_2), 9);
  				func_40(func_78(1), Local_1406[unk_0xDD0E57E73E5C4BF6() /*5*/].f_4, 1);
  			}
  			break;
  		
  		case 1:
  			if (unk_0x4E8DA737B686529A(unk_0x7D2B9E6A64637269(), 2106541073) != 0 && unk_0x4E8DA737B686529A(unk_0x7D2B9E6A64637269(), 2106541073) != 1)
  			{
  				uLocal_426 = unk_0x88A92D91AB021F3F(Local_315, 0f, 0f, 0f, 2, 1, 0, 1065353216, 0, 1065353216);
  				unk_0x5DDC0EBEF6A48288(unk_0x7D2B9E6A64637269(), uLocal_426, sLocal_399, &cLocal_400, 8f, -8f, 131072, 0, 1148846080, 0);
  				unk_0x20F6F12F2945E30E(uLocal_426);
  				iLocal_428 = 2;
  			}
  			break;
  		
  		case 2:
  			uVar6 = unk_0x51FB94D5F3D17E35(uLocal_426);
  			if (unk_0x0BC8768247440B3A(uVar6) > 0.99f)
  			{
  				uLocal_426 = unk_0x88A92D91AB021F3F(Local_315, 0f, 0f, 0f, 2, 0, 1, 1065353216, 0, 1065353216);
  				unk_0x5DDC0EBEF6A48288(unk_0x7D2B9E6A64637269(), uLocal_426, sLocal_399, &cLocal_406, 8f, -8f, 131072, 0, 1148846080, 0);
  				unk_0x20F6F12F2945E30E(uLocal_426);
  				iLocal_428 = 3;
  			}
  			break;
  		
  		case 3:
  			if (func_44(unk_0x7D2B9E6A64637269()))
  			{
  				unk_0x83E421E5A4A2A512(unk_0x7D2B9E6A64637269(), 1000);
  			}
  			Var3 = { unk_0x8EB57098C563AB39(iLocal_290[Local_1406[unk_0xDD0E57E73E5C4BF6() /*5*/].f_3], unk_0xD6E677FAD7521410(unk_0x7D2B9E6A64637269(), 1)) };
  			unk_0x0F1058706D5A58B4(unk_0x7D2B9E6A64637269(), iLocal_290[Local_1406[unk_0xDD0E57E73E5C4BF6() /*5*/].f_3], 0, Var3, 0f, 0f, unk_0xA8D713A937F31250(unk_0x7D2B9E6A64637269()), 0, 0, 0, 0, 2, 1);
  			unk_0xB10D331AF5A4D8F3(unk_0x7D2B9E6A64637269(), 1);
  			func_68(func_78(0), Local_1406[unk_0xDD0E57E73E5C4BF6() /*5*/].f_3, Var3, unk_0xA8D713A937F31250(unk_0x7D2B9E6A64637269()));
  			unk_0x191DDA30577F440A(&(Local_1406[unk_0xDD0E57E73E5C4BF6() /*5*/].f_2), 5);
  			unk_0x191DDA30577F440A(&(Local_1406[unk_0xDD0E57E73E5C4BF6() /*5*/].f_2), 0);
  			unk_0xC664C0067EEAB8D1(&(Local_1406[unk_0xDD0E57E73E5C4BF6() /*5*/].f_2), 9);
  			iLocal_428 = 0;
  			func_40(func_78(1), Local_1406[unk_0xDD0E57E73E5C4BF6() /*5*/].f_4, 1);
  			break;
  	}
  }
  
  void func_68(int iParam0, var uParam1, struct<3> Param2, var uParam5)
  {
  	struct<7> Var0;
  	
  	Var0 = -334317900;
  	Var0.f_1 = unk_0x1146A9AE09CE2B14();
  	Var0.f_2 = uParam1;
  	Var0.f_3 = { Param2 };
  	Var0.f_6 = uParam5;
  	if (!iParam0 == 0)
  	{
  		unk_0xA5C82A39FF8ED272(1, &Var0, 7, iParam0);
  	}
  }
  
  void func_69()
  {
  	if (func_74() || func_73())
  	{
  		func_72();
  		func_70();
  	}
  }
  
  void func_70()
  {
  	if ((!func_179() && !func_71()) && Global_2453902)
  	{
  		Global_4456448.f_85535 = 0;
  	}
  }
  
  bool func_71()
  {
  	return Global_2453009.f_691;
  }
  
  void func_72()
  {
  	Global_2453009.f_756 = 1;
  }
  
  var func_73()
  {
  	return Global_2453009.f_735;
  }
  
  bool func_74()
  {
  	return unk_0x234B68AC2E35ED5A(Global_2453009.f_2, 11);
  }
  
  int func_75(int iParam0, var uParam1, int iParam2, bool bParam3)
  {
  	if (iParam2 == -1)
  	{
  		return 1;
  	}
  	if (unk_0x02BFF15CAA701972() && !bParam3)
  	{
  		if (unk_0x909F156FC4077611(unk_0x2D57EADCBEDDB2AA(unk_0x551F46B3C7DFB654(), iParam0)) >= iParam2)
  		{
  			return 1;
  		}
  	}
  	else if (unk_0x909F156FC4077611(unk_0x2D57EADCBEDDB2AA(unk_0xDFB7BFA6482FEE1E(), iParam0)) >= iParam2)
  	{
  		return 1;
  	}
  	return 0;
  }
  
  int func_76()
  {
  	if (Global_2441237.f_1274.f_5 == -1)
  	{
  		return 0;
  	}
  	return 1;
  }
  
  void func_77(int iParam0)
  {
  	struct<2> Var0;
  	
  	Var0 = -649233912;
  	Var0.f_1 = unk_0x1146A9AE09CE2B14();
  	if (!iParam0 == 0)
  	{
  		unk_0xA5C82A39FF8ED272(1, &Var0, 2, iParam0);
  	}
  }
  
  int func_78(int iParam0)
  {
  	var uVar0;
  	int iVar1;
  	int iVar2;
  	
  	iVar1 = 0;
  	while (iVar1 < unk_0x5E72DF7B8C03AA05())
  	{
  		if (unk_0xF46EDF82CA845956(unk_0x6750311806FF130A(iVar1)))
  		{
  			iVar2 = unk_0x539ED6DF32477DE0(unk_0x6750311806FF130A(iVar1));
  			if (func_13(iVar2, 0, 0))
  			{
  				if (iVar2 != unk_0x1146A9AE09CE2B14() || iParam0)
  				{
  					unk_0x191DDA30577F440A(&uVar0, iVar2);
  				}
  			}
  		}
  		iVar1++;
  	}
  	return uVar0;
  }
  
  void func_79(var uParam0, int iParam1, bool bParam2)
  {
  	if (unk_0x0E8572B08CEB6A11(*uParam0))
  	{
  		if (bParam2)
  		{
  			unk_0x09F9466B03D29D2D(0, 0, 3000, 1, iParam1, 0);
  		}
  		if (unk_0x2671671BBCC6AD9F(*uParam0))
  		{
  			unk_0x6FA8221C9D2ECB46(*uParam0, 0);
  		}
  		unk_0xFE1DEC9C5734D0C0(*uParam0, iParam1);
  	}
  	if (uParam0->f_23)
  	{
  		unk_0x97D6BA3D63E00279();
  		uParam0->f_23 = 0;
  	}
  	uParam0->f_1 = { 0f, 0f, 0f };
  	uParam0->f_4 = { 0f, 0f, 0f };
  	uParam0->f_7 = 0f;
  	uParam0->f_20 = 0;
  	uParam0->f_21 = 0;
  	uParam0->f_22 = 0;
  	uParam0->f_8 = { 0f, 0f, 0f };
  	uParam0->f_11 = { 0f, 0f, 0f };
  	uParam0->f_14 = { 0f, 0f, 0f };
  	uParam0->f_17 = 0f;
  	uParam0->f_18 = 0f;
  }
  
  void func_80(var uParam0, int iParam1)
  {
  	if (unk_0x0E8572B08CEB6A11(*uParam0))
  	{
  		unk_0x09F9466B03D29D2D(0, iParam1, 3000, 1, 0, 0);
  		unk_0x6FA8221C9D2ECB46(*uParam0, 0);
  		unk_0xFE1DEC9C5734D0C0(*uParam0, 0);
  		*uParam0 = 0;
  	}
  }
  
  void func_81(int iParam0)
  {
  	int iVar0;
  	
  	if (Global_262145.f_8742)
  	{
  		return;
  	}
  	iVar0 = 0;
  	while (iVar0 < 3)
  	{
  		if (Global_2097152[func_82() /*5557*/].f_675.f_4237[iVar0 /*3*/] == iParam0)
  		{
  			if (Global_1312588.f_1[iVar0] == -1)
  			{
  				Global_1312588.f_1[iVar0] = iParam0;
  				Global_1312588 = 1;
  				return;
  			}
  		}
  		iVar0++;
  	}
  }
  
  int func_82()
  {
  	int iVar0;
  	
  	iVar0 = 0;
  	return iVar0;
  }
  
  void func_83()
  {
  	func_89(&uLocal_356, -1703.854f, -1082.222f, 42.006f, -8.3096f, 0f, -111.8213f, 0, 0);
  	func_87(&uLocal_356, &uLocal_395, 0, 0, 1, 1);
  	if (unk_0x234B68AC2E35ED5A(uLocal_418, 8))
  	{
  		iLocal_319 = unk_0x5AD02BBC63E31E46();
  		unk_0xE2D24A37AFCF27BF(iLocal_319, "GENERATOR", uLocal_307, "THE_FERRIS_WHALE_SOUNDSET", 0, 0);
  		iLocal_321 = unk_0x5AD02BBC63E31E46();
  		unk_0xE2D24A37AFCF27BF(iLocal_321, "SLOW_SQUEAK", uLocal_307, "THE_FERRIS_WHALE_SOUNDSET", 0, 0);
  		iLocal_322 = unk_0x5AD02BBC63E31E46();
  		unk_0xE2D24A37AFCF27BF(iLocal_322, "SLOW_SQUEAK", iLocal_290[1], "THE_FERRIS_WHALE_SOUNDSET", 0, 0);
  		iLocal_320 = unk_0x5AD02BBC63E31E46();
  		unk_0xE2D24A37AFCF27BF(iLocal_320, "CARRIAGE", iLocal_290[1], "THE_FERRIS_WHALE_SOUNDSET", 0, 0);
  	}
  	func_84();
  	unk_0xC664C0067EEAB8D1(&(Local_1406[unk_0xDD0E57E73E5C4BF6() /*5*/].f_2), 5);
  }
  
  void func_84()
  {
  	if (func_44(unk_0x7D2B9E6A64637269()))
  	{
  		func_85(&uLocal_379);
  		func_79(&Local_325, 0, 1);
  		func_87(&uLocal_356, &uLocal_395, 0, 0, 1, 1);
  		iLocal_396 = 0;
  		if (unk_0xB30CD10E2CD1B67D("FAIRGROUND_RIDES_FERRIS_WHALE"))
  		{
  			unk_0xC0BBE340BE2AA02D("FAIRGROUND_RIDES_FERRIS_WHALE");
  		}
  		unk_0xB84B43B766630B5C("FAIRGROUND_RIDES_FERRIS_WHALE_ALTERNATIVE_VIEW");
  	}
  }
  
  void func_85(var uParam0)
  {
  	if (unk_0x0E8572B08CEB6A11(uParam0->f_10))
  	{
  		func_86(uParam0);
  		unk_0xFE1DEC9C5734D0C0(uParam0->f_10, 0);
  	}
  	uParam0->f_10 = 0;
  }
  
  void func_86(var uParam0)
  {
  	if (unk_0x0E8572B08CEB6A11(uParam0->f_10))
  	{
  		unk_0x09F9466B03D29D2D(0, 0, 3000, 1, 0, 0);
  		unk_0x6FA8221C9D2ECB46(uParam0->f_10, 0);
  	}
  }
  
  void func_87(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_80(uParam1, 0);
  	Var0 = { uParam0->f_1[0 /*3*/] };
  	if (bParam2)
  	{
  		Var0.f_2 = (Var0.f_2 + uParam0->f_18);
  	}
  	*uParam1 = unk_0x4EE8324979A597B2("DEFAULT_SCRIPTED_CAMERA", Var0, uParam0->f_8[0 /*3*/], uParam0->f_15[0], 1, 2);
  	if (!unk_0x0E8572B08CEB6A11(*uParam1))
  	{
  		return;
  	}
  	uParam0->f_19 = unk_0xDFB7BFA6482FEE1E();
  	unk_0x6FA8221C9D2ECB46(*uParam1, 1);
  	unk_0x09F9466B03D29D2D(1, 0, 3000, 1, 0, 0);
  	if ((!bParam3 && uParam0->f_20 > 0) && !func_88(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];
  		}
  		unk_0xFD866EC0672D68D5(*uParam1, Var0, uParam0->f_8[1 /*3*/], fVar3, uParam0->f_20, iParam4, iParam5, 2);
  	}
  	else if (func_44(uParam0->f_21))
  	{
  		unk_0x5C062C9AFC66C513(*uParam1, uParam0->f_21, 0f, 0f, 0f, 1);
  	}
  }
  
  int func_88(struct<3> Param0)
  {
  	if ((Param0.x == 0f && Param0.f_1 == 0f) && Param0.f_2 == 0f)
  	{
  		return 1;
  	}
  	return 0;
  }
  
  void func_89(var uParam0, struct<3> Param1, struct<3> Param4, int iParam7, int iParam8)
  {
  	func_90(uParam0);
  	uParam0->f_1[0 /*3*/] = { Param1 };
  	uParam0->f_8[0 /*3*/] = { Param4 };
  	*uParam0 = 1;
  	uParam0->f_21 = iParam7;
  	uParam0->f_18 = iParam8;
  	uParam0->f_20 = 0;
  }
  
  void func_90(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_91()
  {
  	if (unk_0x234B68AC2E35ED5A(Local_1406[unk_0xDD0E57E73E5C4BF6() /*5*/].f_2, 0))
  	{
  		unk_0xAF98B1BA240CE3DB();
  		unk_0x366E7F593105797F(1, 0, 1);
  		if (unk_0x0C7C436873368EDB(2))
  		{
  			iLocal_429 = 1;
  		}
  		if (!unk_0xA300BD5F71A8C704())
  		{
  			if (unk_0x86AF801D34E482FF(2, 236))
  			{
  				if (iLocal_396 == 0)
  				{
  					func_113();
  				}
  				else
  				{
  					func_84();
  				}
  			}
  			if ((!unk_0x234B68AC2E35ED5A(Local_1406[unk_0xDD0E57E73E5C4BF6() /*5*/].f_2, 4) && !unk_0x234B68AC2E35ED5A(Local_1142.f_3[unk_0xDD0E57E73E5C4BF6()], 0)) && !unk_0x234B68AC2E35ED5A(Local_1406[unk_0xDD0E57E73E5C4BF6() /*5*/].f_2, 3))
  			{
  				if (unk_0x86AF801D34E482FF(2, 51))
  				{
  					unk_0x191DDA30577F440A(&(Local_1406[unk_0xDD0E57E73E5C4BF6() /*5*/].f_2), 3);
  					iLocal_429 = 1;
  				}
  			}
  		}
  		if (iLocal_396 == 1)
  		{
  			if (bLocal_323 == 0)
  			{
  				func_110(&uLocal_379);
  			}
  			else
  			{
  				func_106(&Local_325, 1, 1, 0, 0, 0.1f, 0, 1065353216, 0);
  				unk_0xBD833AA6EB59C81B(Local_325, unk_0x4BB6BF4A85268A22(unk_0x7D2B9E6A64637269(), 2) + Local_325.f_14, 2);
  				unk_0x71FF95CC27B74CE2(0);
  			}
  		}
  	}
  	func_92();
  }
  
  void func_92()
  {
  	if (unk_0x234B68AC2E35ED5A(Local_1406[unk_0xDD0E57E73E5C4BF6() /*5*/].f_2, 0))
  	{
  		if (unk_0x234B68AC2E35ED5A(uLocal_418, 4))
  		{
  			if (unk_0xDAE4BC89A198A6AF(uLocal_430))
  			{
  				if (iLocal_429)
  				{
  					Local_1131 = { func_105() };
  					func_103(&uLocal_431);
  					func_102(unk_0x908D1ACF42DAF9B8(2, 236, 1), "AMFW_BTNCV", &uLocal_431, 0);
  					if (!unk_0x234B68AC2E35ED5A(Local_1406[unk_0xDD0E57E73E5C4BF6() /*5*/].f_2, 3))
  					{
  						func_102(unk_0x908D1ACF42DAF9B8(2, 51, 1), "AMFW_BTNEX", &uLocal_431, 0);
  					}
  					iLocal_429 = 0;
  				}
  				unk_0x27DA7E2B98AB7899(unk_0xA05F91D121569413());
  				unk_0x51D19921B47902B3(0);
  				func_101(1);
  				func_100(1);
  				func_93(&uLocal_430, &Local_1131, &uLocal_431, func_99(&uLocal_431));
  			}
  		}
  		else
  		{
  			uLocal_430 = unk_0x42AA2CCF0B61DCD8("instructional_buttons");
  			unk_0x191DDA30577F440A(&uLocal_418, 4);
  		}
  	}
  	else
  	{
  		unk_0x3D9BC07C93913E04(&uLocal_430);
  		unk_0xC664C0067EEAB8D1(&uLocal_418, 4);
  		iLocal_429 = 1;
  	}
  }
  
  void func_93(var uParam0, var uParam1, var uParam2, int iParam3)
  {
  	int iVar0;
  	int iVar1;
  	int iVar2;
  	int iVar3;
  	var uVar4;
  	var uVar5;
  	
  	if (iParam3 == 1 || unk_0x0C7C436873368EDB(2))
  	{
  		*uParam2 = 0;
  		if (unk_0xDAE4BC89A198A6AF(*uParam0))
  		{
  			if (unk_0x3640D836D145B814())
  			{
  				unk_0x704F8697BB515627(*uParam0, "TOGGLE_MOUSE_BUTTONS");
  				unk_0x9D7453DF8B7E9E0B(0);
  				unk_0x392841D58D2EED1D();
  			}
  			unk_0x704F8697BB515627(*uParam0, "CLEAR_ALL");
  			unk_0x392841D58D2EED1D();
  		}
  		func_98(uParam2);
  	}
  	if (Global_1315740 < 2)
  	{
  		func_100(1);
  	}
  	if (*uParam2 == 0)
  	{
  		if (!unk_0xDAE4BC89A198A6AF(*uParam0))
  		{
  			*uParam0 = unk_0x42AA2CCF0B61DCD8("instructional_buttons");
  		}
  		if (unk_0xDAE4BC89A198A6AF(*uParam0))
  		{
  			unk_0xC9E2A193C0DDFC43(*uParam0, "CLEAR_ALL");
  			if (unk_0x3640D836D145B814())
  			{
  				unk_0x704F8697BB515627(*uParam0, "TOGGLE_MOUSE_BUTTONS");
  				unk_0x9D7453DF8B7E9E0B(1);
  				unk_0x392841D58D2EED1D();
  			}
  			iVar0 = 0;
  			iVar0 = 0;
  			while (iVar0 < uParam2->f_693)
  			{
  				if (unk_0x234B68AC2E35ED5A(uParam2->f_689, iVar0))
  				{
  					unk_0x704F8697BB515627(*uParam0, "SET_DATA_SLOT");
  					unk_0x9E3D03981E2E9AD9(iVar0);
  					if (!unk_0x234B68AC2E35ED5A(uParam2->f_690, iVar0))
  					{
  						iVar1 = uParam2->f_1[iVar0 /*57*/].f_54;
  						iVar2 = uParam2->f_1[iVar0 /*57*/].f_55;
  						iVar3 = uParam2->f_1[iVar0 /*57*/].f_56;
  						func_97(unk_0x908D1ACF42DAF9B8(iVar1, iVar2, 1));
  						if (iVar3 < 361)
  						{
  							func_97(unk_0x908D1ACF42DAF9B8(iVar1, iVar3, 1));
  						}
  					}
  					else
  					{
  						uVar4 = uParam2->f_1[iVar0 /*57*/].f_54;
  						uVar5 = uParam2->f_1[iVar0 /*57*/].f_55;
  						func_97(unk_0xD895F953C52A8886(uVar4, uVar5, 1));
  					}
  					if (unk_0x234B68AC2E35ED5A(uParam2->f_686, iVar0))
  					{
  						unk_0x35CA0C119E6A2A27(&(uParam2->f_1[iVar0 /*57*/].f_32));
  						if (uParam2->f_694 == iVar0)
  						{
  							unk_0x4E2EF4B6B665F3F4(uParam2->f_1[iVar0 /*57*/].f_36, 70);
  						}
  						else
  						{
  							unk_0x38CD3C04C877C35F(uParam2->f_1[iVar0 /*57*/].f_36);
  							if (unk_0x234B68AC2E35ED5A(uParam2->f_687, iVar0))
  							{
  								unk_0x38CD3C04C877C35F(uParam2->f_1[iVar0 /*57*/].f_37);
  							}
  						}
  						unk_0xD4B2C39F7AD5A6A6();
  					}
  					else if (unk_0x234B68AC2E35ED5A(uParam2->f_688, iVar0))
  					{
  						unk_0x35CA0C119E6A2A27(&(uParam2->f_1[iVar0 /*57*/].f_32));
  						unk_0xA91D83F2CC1345A6(&(uParam2->f_1[iVar0 /*57*/].f_38));
  						unk_0xD4B2C39F7AD5A6A6();
  					}
  					else
  					{
  						func_96(&(uParam2->f_1[iVar0 /*57*/].f_32));
  					}
  					if (unk_0x3640D836D145B814())
  					{
  						if (unk_0x234B68AC2E35ED5A(uParam2->f_691, iVar0))
  						{
  							unk_0x9D7453DF8B7E9E0B(1);
  							unk_0x9E3D03981E2E9AD9(uParam2->f_1[iVar0 /*57*/].f_55);
  						}
  						else
  						{
  							unk_0x9D7453DF8B7E9E0B(0);
  							unk_0x9E3D03981E2E9AD9(361);
  						}
  					}
  					unk_0x392841D58D2EED1D();
  				}
  				else
  				{
  					unk_0x704F8697BB515627(*uParam0, "SET_DATA_SLOT");
  					unk_0x9E3D03981E2E9AD9(iVar0);
  					func_97(&(uParam2->f_1[iVar0 /*57*/]));
  					if (!unk_0xAB6A270F84A8781E(&(uParam2->f_1[iVar0 /*57*/].f_16)))
  					{
  						func_97(&(uParam2->f_1[iVar0 /*57*/].f_16));
  					}
  					if (unk_0x234B68AC2E35ED5A(uParam2->f_686, iVar0))
  					{
  						unk_0x35CA0C119E6A2A27(&(uParam2->f_1[iVar0 /*57*/].f_32));
  						if (uParam2->f_694 == iVar0)
  						{
  							unk_0x4E2EF4B6B665F3F4(uParam2->f_1[iVar0 /*57*/].f_36, 70);
  						}
  						else
  						{
  							unk_0x38CD3C04C877C35F(uParam2->f_1[iVar0 /*57*/].f_36);
  							if (unk_0x234B68AC2E35ED5A(uParam2->f_687, iVar0))
  							{
  								unk_0x38CD3C04C877C35F(uParam2->f_1[iVar0 /*57*/].f_37);
  							}
  						}
  						unk_0xD4B2C39F7AD5A6A6();
  					}
  					else if (unk_0x234B68AC2E35ED5A(uParam2->f_688, iVar0))
  					{
  						unk_0x35CA0C119E6A2A27(&(uParam2->f_1[iVar0 /*57*/].f_32));
  						unk_0xA91D83F2CC1345A6(&(uParam2->f_1[iVar0 /*57*/].f_38));
  						unk_0xD4B2C39F7AD5A6A6();
  					}
  					else
  					{
  						func_96(&(uParam2->f_1[iVar0 /*57*/].f_32));
  					}
  					if (unk_0x3640D836D145B814())
  					{
  						unk_0x9D7453DF8B7E9E0B(0);
  						unk_0x9E3D03981E2E9AD9(361);
  					}
  					unk_0x392841D58D2EED1D();
  				}
  				iVar0++;
  			}
  			unk_0x704F8697BB515627(*uParam0, "SET_MAX_WIDTH");
  			unk_0x82D42F43BE26EB72(uParam2->f_699);
  			unk_0x392841D58D2EED1D();
  			unk_0x704F8697BB515627(*uParam0, "DRAW_INSTRUCTIONAL_BUTTONS");
  			unk_0x9E3D03981E2E9AD9(0);
  			unk_0x392841D58D2EED1D();
  			*uParam2 = 1;
  		}
  	}
  	uParam2->f_695 = 0.05f;
  	uParam2->f_696 = 0.045f;
  	uParam2->f_697 = 0f;
  	uParam2->f_698 = 0f;
  	if (*uParam2 == 1)
  	{
  		func_95(*uParam0, uParam1);
  	}
  	func_94();
  }
  
  void func_94()
  {
  	unk_0xEFD424FDD55A6EC7(7);
  	unk_0xEFD424FDD55A6EC7(6);
  	unk_0xEFD424FDD55A6EC7(8);
  	unk_0xEFD424FDD55A6EC7(9);
  }
  
  void func_95(var uParam0, var uParam1)
  {
  	unk_0x44EF5678D6916481(uParam0, uParam1->f_4, uParam1->f_5, uParam1->f_6, uParam1->f_7, 0);
  }
  
  void func_96(var uParam0)
  {
  	unk_0x35CA0C119E6A2A27(uParam0);
  	unk_0xD4B2C39F7AD5A6A6();
  }
  
  void func_97(char* sParam0)
  {
  	unk_0x5FEAD10623875182(sParam0);
  }
  
  void func_98(var uParam0)
  {
  	uParam0->f_692 = 0;
  }
  
  int func_99(var uParam0)
  {
  	return uParam0->f_692;
  }
  
  void func_100(int iParam0)
  {
  	Global_1315740 = iParam0;
  }
  
  void func_101(int iParam0)
  {
  	Global_1380638.f_1121 = iParam0;
  }
  
  void func_102(char* sParam0, char* sParam1, var uParam2, char* sParam3)
  {
  	int iVar0;
  	
  	if (uParam2->f_693 >= 12)
  	{
  		return;
  	}
  	iVar0 = uParam2->f_693;
  	StringCopy(&(uParam2->f_1[iVar0 /*57*/]), sParam0, 64);
  	StringCopy(&(uParam2->f_1[iVar0 /*57*/].f_16), sParam3, 64);
  	StringCopy(&(uParam2->f_1[iVar0 /*57*/].f_32), sParam1, 16);
  	uParam2->f_693++;
  }
  
  void func_103(var uParam0)
  {
  	func_104(uParam0);
  	uParam0->f_692 = 1;
  }
  
  void func_104(var uParam0)
  {
  	int iVar0;
  	
  	*uParam0 = 0;
  	iVar0 = 0;
  	iVar0 = 0;
  	while (iVar0 < 12)
  	{
  		StringCopy(&(uParam0->f_1[iVar0 /*57*/]), "", 64);
  		StringCopy(&(uParam0->f_1[iVar0 /*57*/].f_16), "", 64);
  		StringCopy(&(uParam0->f_1[iVar0 /*57*/].f_32), "", 16);
  		uParam0->f_1[iVar0 /*57*/].f_36 = 0;
  		uParam0->f_1[iVar0 /*57*/].f_37 = 0;
  		StringCopy(&(uParam0->f_1[iVar0 /*57*/].f_38), "", 64);
  		uParam0->f_1[iVar0 /*57*/].f_54 = 2;
  		uParam0->f_1[iVar0 /*57*/].f_55 = 361;
  		uParam0->f_1[iVar0 /*57*/].f_56 = 361;
  		iVar0++;
  	}
  	uParam0->f_686 = 0;
  	uParam0->f_687 = 0;
  	uParam0->f_688 = 0;
  	uParam0->f_689 = 0;
  	uParam0->f_691 = 0;
  	uParam0->f_690 = 0;
  	uParam0->f_692 = 0;
  	uParam0->f_693 = 0;
  	uParam0->f_695 = 0f;
  	uParam0->f_696 = 0f;
  	uParam0->f_697 = 0f;
  	uParam0->f_698 = 0f;
  	uParam0->f_699 = 1f;
  }
  
  struct<9> func_105()
  {
  	struct<9> Var0;
  	
  	Var0 = 0.5f;
  	Var0.f_1 = 0.5f;
  	Var0.f_2 = 1f;
  	Var0.f_3 = 1f;
  	Var0.f_4 = 255;
  	Var0.f_5 = 255;
  	Var0.f_6 = 255;
  	Var0.f_7 = 200;
  	Var0.f_8 = 0f;
  	return Var0;
  }
  
  void func_106(var uParam0, bool bParam1, bool bParam2, bool bParam3, bool bParam4, float fParam5, bool bParam6, float fParam7, bool bParam8)
  {
  	int iVar0[4];
  	float fVar5;
  	float fVar6;
  	float fVar7;
  	float fVar8;
  	float fVar9;
  	struct<3> Var10;
  	int iVar13;
  	int iVar14;
  	
  	unk_0xB5D61F76D4980A55(2);
  	func_109(&(iVar0[0]), &(iVar0[1]), &(iVar0[2]), &(iVar0[3]), 0, 0);
  	if (unk_0x3840DB3ECC7D0818())
  	{
  		iVar0[3] = (iVar0[3] * -1);
  	}
  	if (unk_0x0D901EFDFD7EF9D5(2))
  	{
  		fVar5 = unk_0x98501142AE80A99C(2, 239);
  		fVar6 = unk_0x98501142AE80A99C(2, 240);
  		fVar7 = (fVar5 - uParam0->f_29);
  		fVar8 = (fVar6 - uParam0->f_30);
  		uParam0->f_29 = fVar5;
  		uParam0->f_30 = fVar6;
  		if (bParam4)
  		{
  			iVar0[2] = -SYSTEM::ROUND(((fVar7 * fParam5) * 127f));
  			iVar0[3] = -SYSTEM::ROUND(((fVar8 * fParam5) * 127f));
  		}
  		else
  		{
  			iVar0[2] = SYSTEM::ROUND(((unk_0x98501142AE80A99C(2, 290) * fParam5) * 127f));
  			iVar0[3] = SYSTEM::ROUND(((unk_0x98501142AE80A99C(2, 291) * fParam5) * 127f));
  		}
  		iVar0[2] = func_108((iVar0[2] + uParam0->f_24), -127, 127);
  		iVar0[3] = func_108((iVar0[3] + uParam0->f_25), -127, 127);
  	}
  	if (uParam0->f_24 == iVar0[2] && uParam0->f_25 == iVar0[3])
  	{
  		if (uParam0->f_27 < unk_0xDFB7BFA6482FEE1E())
  		{
  			uParam0->f_24 = 0;
  			uParam0->f_25 = 0;
  			if (unk_0x0D901EFDFD7EF9D5(2))
  			{
  				iVar0[2] = 0;
  				iVar0[3] = 0;
  				uParam0->f_28 = 1;
  			}
  		}
  	}
  	else
  	{
  		uParam0->f_24 = iVar0[2];
  		uParam0->f_25 = iVar0[3];
  		uParam0->f_27 = unk_0xDFB7BFA6482FEE1E() + 4000;
  		uParam0->f_28 = 0;
  	}
  	if (bParam2)
  	{
  		uParam0->f_8.f_2 = (-(SYSTEM::TO_FLOAT(iVar0[2]) / 127f) * IntToFloat(uParam0->f_20));
  		uParam0->f_8.f_1 = ((-uParam0->f_8.f_2 * IntToFloat(uParam0->f_22)) / IntToFloat(uParam0->f_20));
  		uParam0->f_8 = (-(SYSTEM::TO_FLOAT(iVar0[3]) / 127f) * IntToFloat(uParam0->f_21));
  	}
  	else
  	{
  		uParam0->f_8 = { 0f, 0f, 0f };
  		uParam0->f_24 = 0;
  		uParam0->f_25 = 0;
  	}
  	fVar9 = (30f * SYSTEM::TIMESTEP());
  	Var10 = { uParam0->f_8 + uParam0->f_11 };
  	if ((unk_0x0D901EFDFD7EF9D5(2) && bParam2) && !uParam0->f_28)
  	{
  		uParam0->f_14 = Var10.x;
  		uParam0->f_14.f_1 = Var10.f_1;
  		uParam0->f_14.f_2 = Var10.f_2;
  	}
  	else
  	{
  		uParam0->f_14 = (uParam0->f_14 + func_107(((((Var10.x - uParam0->f_14) * 0.05f) * fVar9) * fParam7), -3f, 3f));
  		uParam0->f_14.f_1 = (uParam0->f_14.f_1 + func_107(((((Var10.f_1 - uParam0->f_14.f_1) * 0.05f) * fVar9) * fParam7), -3f, 3f));
  		uParam0->f_14.f_2 = (uParam0->f_14.f_2 + func_107(((((Var10.f_2 - uParam0->f_14.f_2) * 0.05f) * fVar9) * fParam7), -3f, 3f));
  	}
  	if (uParam0->f_26)
  	{
  		uParam0->f_14 = func_107(uParam0->f_14, SYSTEM::TO_FLOAT(-uParam0->f_21), SYSTEM::TO_FLOAT(uParam0->f_21));
  		uParam0->f_14.f_1 = func_107(uParam0->f_14.f_1, SYSTEM::TO_FLOAT(-uParam0->f_22), SYSTEM::TO_FLOAT(uParam0->f_22));
  		uParam0->f_14.f_2 = func_107(uParam0->f_14.f_2, SYSTEM::TO_FLOAT(-uParam0->f_20), SYSTEM::TO_FLOAT(uParam0->f_20));
  	}
  	if (unk_0x0D901EFDFD7EF9D5(0) && bParam1)
  	{
  		if (uParam0->f_28)
  		{
  			uParam0->f_17 = uParam0->f_7;
  		}
  	}
  	else
  	{
  		uParam0->f_17 = uParam0->f_7;
  	}
  	if (bParam1)
  	{
  		if (unk_0x0D901EFDFD7EF9D5(0))
  		{
  			iVar13 = 40;
  			iVar14 = 41;
  			if (bParam6)
  			{
  				iVar13 = 241;
  				iVar14 = 242;
  			}
  			if (unk_0x96DF114B59E81B9C(0, iVar13))
  			{
  				uParam0->f_17 = (uParam0->f_17 - 5f);
  				uParam0->f_27 = unk_0xDFB7BFA6482FEE1E() + 4000;
  				uParam0->f_28 = 0;
  			}
  			else if (unk_0x96DF114B59E81B9C(0, iVar14))
  			{
  				uParam0->f_17 = (uParam0->f_17 + 5f);
  				uParam0->f_27 = unk_0xDFB7BFA6482FEE1E() + 4000;
  				uParam0->f_28 = 0;
  			}
  			if (bParam3)
  			{
  				uParam0->f_17 = func_107(uParam0->f_17, (uParam0->f_7 - uParam0->f_19), uParam0->f_7);
  			}
  			else
  			{
  				uParam0->f_17 = func_107(uParam0->f_17, (uParam0->f_7 - uParam0->f_19), (uParam0->f_7 + uParam0->f_19));
  			}
  		}
  		else if (bParam8)
  		{
  			iVar0[1] = unk_0x49721683C2EB0132(2, 207);
  			iVar0[3] = unk_0x49721683C2EB0132(2, 208);
  			if (bParam3)
  			{
  				if (SYSTEM::TO_FLOAT(iVar0[3]) > 127f)
  				{
  					uParam0->f_17 = (uParam0->f_17 - IntToFloat(SYSTEM::ROUND(((SYSTEM::TO_FLOAT(iVar0[3]) / 128f) * (uParam0->f_19 / 2f)))));
  				}
  			}
  			else
  			{
  				uParam0->f_17 = (uParam0->f_17 + IntToFloat(SYSTEM::ROUND(((SYSTEM::TO_FLOAT(iVar0[1]) / 128f) * uParam0->f_19))));
  				uParam0->f_17 = (uParam0->f_17 - IntToFloat(SYSTEM::ROUND(((SYSTEM::TO_FLOAT(iVar0[3]) / 128f) * uParam0->f_19))));
  			}
  		}
  		else if (bParam3)
  		{
  			if (SYSTEM::TO_FLOAT(iVar0[1]) < 0f)
  			{
  				uParam0->f_17 = (uParam0->f_17 + IntToFloat(SYSTEM::ROUND(((SYSTEM::TO_FLOAT(iVar0[1]) / 128f) * uParam0->f_19))));
  			}
  		}
  		else
  		{
  			uParam0->f_17 = (uParam0->f_17 + IntToFloat(SYSTEM::ROUND(((SYSTEM::TO_FLOAT(iVar0[1]) / 128f) * uParam0->f_19))));
  		}
  	}
  	uParam0->f_18 = (uParam0->f_18 + (((uParam0->f_17 - uParam0->f_18) * 0.06f) * fVar9));
  	unk_0xFD866EC0672D68D5(*uParam0, uParam0->f_1, uParam0->f_4 + uParam0->f_14, uParam0->f_18, 0, 1, 1, 2);
  	if (unk_0x0E8572B08CEB6A11(*uParam0))
  	{
  		if (unk_0x2671671BBCC6AD9F(*uParam0))
  		{
  			if (unk_0xBEFF25A5E38D38C3(*uParam0))
  			{
  				unk_0xFFCFF4576AE8F21E();
  			}
  		}
  	}
  }
  
  float func_107(float fParam0, float fParam1, float fParam2)
  {
  	if (fParam0 > fParam2)
  	{
  		return fParam2;
  	}
  	else if (fParam0 < fParam1)
  	{
  		return fParam1;
  	}
  	return fParam0;
  }
  
  int func_108(int iParam0, int iParam1, int iParam2)
  {
  	if (iParam0 > iParam2)
  	{
  		return iParam2;
  	}
  	else if (iParam0 < iParam1)
  	{
  		return iParam1;
  	}
  	return iParam0;
  }
  
  void func_109(var uParam0, var uParam1, var uParam2, var uParam3, bool bParam4, bool bParam5)
  {
  	*uParam0 = SYSTEM::FLOOR((unk_0x98501142AE80A99C(2, 218) * 127f));
  	*uParam1 = SYSTEM::FLOOR((unk_0x98501142AE80A99C(2, 219) * 127f));
  	*uParam2 = SYSTEM::FLOOR((unk_0x98501142AE80A99C(2, 220) * 127f));
  	*uParam3 = SYSTEM::FLOOR((unk_0x98501142AE80A99C(2, 221) * 127f));
  	if (bParam4)
  	{
  		if (!unk_0x7739A311341A5999(2, 218))
  		{
  			*uParam0 = SYSTEM::FLOOR((unk_0xA1108F381688010B(2, 218) * 127f));
  		}
  		if (!unk_0x7739A311341A5999(2, 219))
  		{
  			*uParam1 = SYSTEM::FLOOR((unk_0xA1108F381688010B(2, 219) * 127f));
  		}
  		if (!unk_0x7739A311341A5999(2, 220))
  		{
  			*uParam2 = SYSTEM::FLOOR((unk_0xA1108F381688010B(2, 220) * 127f));
  		}
  		if (!unk_0x7739A311341A5999(2, 221))
  		{
  			*uParam3 = SYSTEM::FLOOR((unk_0xA1108F381688010B(2, 221) * 127f));
  		}
  	}
  	if (unk_0x0D901EFDFD7EF9D5(2))
  	{
  		if (bParam5)
  		{
  			if (unk_0x3840DB3ECC7D0818())
  			{
  				*uParam3 = (*uParam3 * -1);
  			}
  			if (unk_0xA65C4F563B7CF68E())
  			{
  				*uParam3 = (*uParam3 * -1);
  			}
  		}
  	}
  }
  
  void func_110(var uParam0)
  {
  	var uVar0;
  	var uVar1;
  	float fVar2;
  	
  	if (!uParam0->f_1 == 1)
  	{
  		return;
  	}
  	unk_0xB5D61F76D4980A55(2);
  	if (*uParam0 == 1)
  	{
  		if (unk_0x0BCA9ADE67DF9DD8(unk_0xBDAD193FD6CC54F5(2, 220)) > 0.1f)
  		{
  			uParam0->f_12 = (uParam0->f_12 - ((unk_0xBDAD193FD6CC54F5(2, 220) * 60f) * SYSTEM::TIMESTEP()));
  			if (uParam0->f_15)
  			{
  				if (uParam0->f_12 < -180f)
  				{
  					uParam0->f_12 = (uParam0->f_12 + 360f);
  				}
  				if (uParam0->f_12 > 180f)
  				{
  					uParam0->f_12 = (uParam0->f_12 - 360f);
  				}
  			}
  			else
  			{
  				uParam0->f_12 = func_107(uParam0->f_12, -80f, 80f);
  			}
  		}
  		if (unk_0x0BCA9ADE67DF9DD8(unk_0xBDAD193FD6CC54F5(2, 221)) > 0.1f)
  		{
  			fVar2 = ((unk_0xBDAD193FD6CC54F5(2, 221) * 60f) * SYSTEM::TIMESTEP());
  			if (unk_0x3840DB3ECC7D0818())
  			{
  				fVar2 = (fVar2 * -1f);
  			}
  			uParam0->f_11 = (uParam0->f_11 - fVar2);
  			if (uParam0->f_14)
  			{
  				if (uParam0->f_11 < -180f)
  				{
  					uParam0->f_11 = (uParam0->f_11 + 360f);
  				}
  				if (uParam0->f_11 > 180f)
  				{
  					uParam0->f_11 = (uParam0->f_11 - 360f);
  				}
  			}
  			else
  			{
  				uParam0->f_11 = func_107(uParam0->f_11, -30f, 30f);
  			}
  		}
  		if (unk_0x86AF801D34E482FF(2, 231))
  		{
  			uParam0->f_11 = 0f;
  			uParam0->f_12 = 0f;
  		}
  		if (unk_0x0BCA9ADE67DF9DD8(unk_0xBDAD193FD6CC54F5(2, 219)) > 0.1f)
  		{
  			fVar2 = ((unk_0xBDAD193FD6CC54F5(2, 219) * (60f / 2f)) * SYSTEM::TIMESTEP());
  			uParam0->f_13 = (uParam0->f_13 + fVar2);
  			uParam0->f_13 = func_107(uParam0->f_13, 20f, 50f);
  		}
  		if (unk_0x0E8572B08CEB6A11(uParam0->f_10))
  		{
  			unk_0xEF20E9A7B745D17A(uParam0->f_10, uParam0->f_13);
  			if (!func_44(uParam0->f_8) && func_44(unk_0x7D2B9E6A64637269()))
  			{
  				unk_0xBD833AA6EB59C81B(uParam0->f_10, unk_0x4BB6BF4A85268A22(unk_0x7D2B9E6A64637269(), 2) + Vector(uParam0->f_12, 0f, uParam0->f_11), 2);
  			}
  			else if (func_44(uParam0->f_8) && func_44(uParam0->f_9))
  			{
  				func_111(unk_0xD6E677FAD7521410(uParam0->f_8, 1), unk_0xD6E677FAD7521410(uParam0->f_9, 1), &uVar0, &uVar1, 1);
  				unk_0xBD833AA6EB59C81B(uParam0->f_10, Vector(uVar1, 0f, uVar0) + Vector(uParam0->f_12, 0f, uParam0->f_11), 2);
  			}
  		}
  	}
  }
  
  void func_111(struct<3> Param0, struct<3> Param3, var uParam6, var uParam7, int iParam8)
  {
  	struct<3> Var0;
  	
  	Var0 = { Param3 - Param0 };
  	func_112(Var0, uParam6, uParam7, iParam8);
  }
  
  void func_112(struct<3> Param0, var uParam3, var uParam4, int iParam5)
  {
  	float fVar0;
  	
  	if (Param0.f_1 != 0f)
  	{
  		*uParam4 = unk_0xF0AE30F012D1FD8C(Param0.x, Param0.f_1);
  	}
  	else if (Param0.x < 0f)
  	{
  		*uParam4 = -90f;
  	}
  	else
  	{
  		*uParam4 = 90f;
  	}
  	if (iParam5 == 1)
  	{
  		*uParam4 = (*uParam4 * -1f);
  		if (*uParam4 < 0f)
  		{
  			*uParam4 = (*uParam4 + 360f);
  		}
  	}
  	fVar0 = SYSTEM::SQRT(((Param0.x * Param0.x) + (Param0.f_1 * Param0.f_1)));
  	if (fVar0 != 0f)
  	{
  		*uParam3 = unk_0xF0AE30F012D1FD8C(Param0.f_2, fVar0);
  	}
  	else if (Param0.f_2 < 0f)
  	{
  		*uParam3 = -90f;
  	}
  	else
  	{
  		*uParam3 = 90f;
  	}
  }
  
  void func_113()
  {
  	struct<3> Var0;
  	
  	if (func_44(unk_0x7D2B9E6A64637269()))
  	{
  		func_80(&uLocal_395, 0);
  		Local_325.f_20 = 160;
  		Local_325.f_21 = 20;
  		if (bLocal_323)
  		{
  			Var0 = { unk_0x885F3A431ECE75E3(unk_0x7D2B9E6A64637269(), 31086, 0f, -0.25f, 0f) };
  			func_116(&Local_325, Var0, unk_0x4BB6BF4A85268A22(unk_0x7D2B9E6A64637269(), 2), 50f, Local_325.f_20, Local_325.f_21, 3, 1101004800, 0, 0, -1082130432, 0);
  			unk_0xF64CCD2B361895E2(Local_325, unk_0x7D2B9E6A64637269(), 31086, 0f, -0.25f, 0f, 1);
  		}
  		else
  		{
  			func_115(&uLocal_379, 1);
  			func_114(&uLocal_379, 0, 3000);
  		}
  		if (unk_0xB30CD10E2CD1B67D("FAIRGROUND_RIDES_FERRIS_WHALE_ALTERNATIVE_VIEW"))
  		{
  			unk_0xC0BBE340BE2AA02D("FAIRGROUND_RIDES_FERRIS_WHALE_ALTERNATIVE_VIEW");
  		}
  		unk_0xB84B43B766630B5C("FAIRGROUND_RIDES_FERRIS_WHALE");
  	}
  	iLocal_396 = 1;
  }
  
  int func_114(var uParam0, int iParam1, int iParam2)
  {
  	if (!uParam0->f_1 == 1)
  	{
  		return 0;
  	}
  	uParam0->f_13 = 50f;
  	if (!unk_0x0E8572B08CEB6A11(uParam0->f_10))
  	{
  		uParam0->f_10 = unk_0x4EE8324979A597B2("DEFAULT_SCRIPTED_CAMERA", uParam0->f_2, uParam0->f_5, 50f, 1, 2);
  	}
  	if (func_44(uParam0->f_8))
  	{
  		unk_0x612434A5544F5847(uParam0->f_10, uParam0->f_8, 0f, 0f, 0f, 1);
  	}
  	if (*uParam0 == 1)
  	{
  		if (func_44(unk_0x7D2B9E6A64637269()) && !func_44(uParam0->f_8))
  		{
  			unk_0xF64CCD2B361895E2(uParam0->f_10, unk_0x7D2B9E6A64637269(), 31086, 0f, 0.2f, 0f, 1);
  		}
  		uParam0->f_11 = 0f;
  		uParam0->f_12 = 0f;
  	}
  	else if (func_44(uParam0->f_9))
  	{
  		unk_0x5C062C9AFC66C513(uParam0->f_10, uParam0->f_9, 0f, 0f, 0f, 1);
  	}
  	if (unk_0x0E8572B08CEB6A11(uParam0->f_10))
  	{
  		unk_0x6FA8221C9D2ECB46(uParam0->f_10, 1);
  		unk_0x09F9466B03D29D2D(1, iParam1, iParam2, 1, 0, 0);
  	}
  	return 1;
  }
  
  void func_115(var uParam0, bool bParam1)
  {
  	*uParam0 = 1;
  	uParam0->f_1 = 1;
  	uParam0->f_9 = unk_0x7D2B9E6A64637269();
  	uParam0->f_11 = 0f;
  	uParam0->f_12 = 0f;
  	if (bParam1)
  	{
  		uParam0->f_15 = 1;
  	}
  }
  
  void func_116(var uParam0, struct<3> Param1, struct<3> Param4, float fParam7, var uParam8, var uParam9, int iParam10, int iParam11, int iParam12, int iParam13, float fParam14, bool bParam15)
  {
  	uParam0->f_1 = { Param1 };
  	uParam0->f_4 = { Param4 };
  	uParam0->f_7 = fParam7;
  	uParam0->f_20 = uParam8;
  	uParam0->f_21 = uParam9;
  	uParam0->f_22 = iParam10;
  	uParam0->f_8 = { 0f, 0f, 0f };
  	uParam0->f_11 = { 0f, 0f, 0f };
  	uParam0->f_14 = { 0f, 0f, 0f };
  	uParam0->f_17 = fParam7;
  	uParam0->f_18 = fParam7;
  	uParam0->f_23 = iParam12;
  	uParam0->f_19 = iParam11;
  	*uParam0 = unk_0xE862092047FB4664("DEFAULT_SCRIPTED_CAMERA", 0);
  	unk_0x6FA8221C9D2ECB46(*uParam0, 1);
  	unk_0xFD866EC0672D68D5(*uParam0, uParam0->f_1, uParam0->f_4, uParam0->f_7, 0, 1, 1, 2);
  	if (!bParam15)
  	{
  		unk_0x9C9EC7CC88D050FA(*uParam0, "HAND_SHAKE", 0.19f);
  	}
  	unk_0x09F9466B03D29D2D(1, 0, 3000, 1, 0, 0);
  	if (fParam14 > 0f)
  	{
  		unk_0xCD29B8E8A95DC63C(*uParam0, fParam14);
  	}
  	if (uParam0->f_23)
  	{
  		unk_0x79492A7A520B137D(iParam13);
  	}
  	uParam0->f_24 = 0;
  	uParam0->f_25 = 0;
  	uParam0->f_29 = 0f;
  	uParam0->f_30 = 0f;
  	uParam0->f_26 = 0;
  	uParam0->f_28 = 0;
  	uParam0->f_27 = 0;
  }
  
  void func_117()
  {
  	int iVar0;
  	
  	if (func_135(1) >= Global_262145.f_7960 || unk_0x9C0D256830690A70(Global_262145.f_7960, 0, 0, 1, -1, 0))
  	{
  		if (func_134())
  		{
  			func_122(1643659499, Global_262145.f_7960, &iVar0, 0, 1, 0);
  			Global_4265506[iVar0 /*85*/].f_1 = 2;
  		}
  		else
  		{
  			unk_0x0A211164C5B26846(Global_262145.f_7960, 2, 0, 1);
  		}
  		unk_0x191DDA30577F440A(&(Local_1406[unk_0xDD0E57E73E5C4BF6() /*5*/].f_2), 8);
  	}
  	else if (!unk_0x234B68AC2E35ED5A(uLocal_418, 3))
  	{
  		func_118(0, 31, 5);
  		unk_0x191DDA30577F440A(&uLocal_418, 3);
  	}
  }
  
  void func_118(int iParam0, int iParam1, int iParam2)
  {
  	int iVar0;
  	
  	if (!unk_0x6AA1F733791ADB84())
  	{
  		return;
  	}
  	if (unk_0x02BFF15CAA701972() && func_15(unk_0x1146A9AE09CE2B14(), 1, 0))
  	{
  		return;
  	}
  	if (unk_0x5C6675393464A814(2, 199) || unk_0x51794501073F0A33(2, 199))
  	{
  		return;
  	}
  	if (unk_0xC62ED852B1172A41() != 0)
  	{
  		return;
  	}
  	if (unk_0xA300BD5F71A8C704())
  	{
  		return;
  	}
  	if (unk_0xC1FCB6CC23926AD5())
  	{
  		return;
  	}
  	if (unk_0xD76BEAE1A33E3251())
  	{
  		return;
  	}
  	if (func_121())
  	{
  		return;
  	}
  	if (!func_119())
  	{
  		return;
  	}
  	if (unk_0x02BFF15CAA701972() || iParam0)
  	{
  		if (!Global_99422.f_1441 && !unk_0x1C8EA7DABB529A31())
  		{
  			iVar0 = 18;
  			HUD::SET_WARNING_MESSAGE_WITH_HEADER("BRSCRWTEX", "BRDISTEX", iVar0, "BRSHETEX", false, -1, 0, 0, true, 0);
  			Global_2464554 = iParam1;
  			Global_99422.f_1441 = 1;
  			Global_99422.f_1442 = iParam2;
  		}
  	}
  }
  
  int func_119()
  {
  	if (func_120())
  	{
  		return 0;
  	}
  	if (unk_0x6280556FDB0D083D() == 0)
  	{
  		return 0;
  	}
  	return 1;
  }
  
  bool func_120()
  {
  	return Global_2464001;
  }
  
  bool func_121()
  {
  	return Global_2464661;
  }
  
  void func_122(int iParam0, int iParam1, var uParam2, bool bParam3, bool bParam4, bool bParam5)
  {
  	int iVar0;
  	
  	if (!func_134())
  	{
  		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 1850983186:
  		case 763367758:
  		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_27873)
  			{
  				func_123(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_123(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 -1752851493:
  		case 1051883823:
  			if (iParam1 > 0 || Global_262145.f_27873)
  			{
  				func_123(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:
  			func_123(uParam2, -1135378931, 1445302971, 1474183246, iParam0, iParam1, iVar0, 7);
  			break;
  	}
  }
  
  int func_123(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_134())
  	{
  		bVar0 = true;
  	}
  	iVar1 = 1;
  	if (!bVar0)
  	{
  		if (!unk_0x4D51377BFFA53BFA(func_65()) || unk_0xD699DB7515D82955())
  		{
  			Global_4267008 = 1;
  			return 0;
  		}
  		if (Global_2464661)
  		{
  			if (iParam3 == 1067618600 || iParam3 == -1303831698)
  			{
  				Global_4267009 = 1;
  				return 0;
  			}
  		}
  	}
  	bVar3 = false;
  	iVar2 = 0;
  	while (iVar2 < 15)
  	{
  		if (Global_4265506[iVar2 /*85*/].f_66.f_2 == 0)
  		{
  			bVar3 = true;
  		}
  		iVar2++;
  	}
  	if (!bVar3)
  	{
  		return 0;
  	}
  	*uParam0 = 15;
  	iVar4 = 2147483647;
  	if ((bVar0 || iVar1) || unk_0x9FAA2C7154E262DA(&iVar4, iParam3, iParam4, iParam2, iParam5, iParam6))
  	{
  		if ((bVar0 || iVar1) || unk_0xDA727DD48FB63842(iVar4))
  		{
  			*uParam0 = func_130(iVar4, iParam1, iParam4, iParam2, iParam3, iParam5, 0, iParam6, iParam7, 1, 1);
  			if (iVar1 && !bVar0)
  			{
  			}
  			if (bVar0)
  			{
  				if (*uParam0 != -1)
  				{
  					Global_4265506[*uParam0 /*85*/].f_66.f_8 = 1;
  					Global_4265506[*uParam0 /*85*/].f_66.f_12 = 1;
  				}
  			}
  			Global_4266993 = 1;
  			return 1;
  		}
  	}
  	else
  	{
  		if (iParam7 & 2 != 0)
  		{
  			Global_4267007 = 1;
  			Global_4267010 = iParam4;
  			Global_4267012 = iParam3;
  			Global_4267013 = 1;
  			Global_4267011 = iParam5;
  		}
  		if (iParam7 & 8 != 0)
  		{
  			Global_4267010 = iParam4;
  			Global_4267012 = iParam3;
  			Global_4267013 = 1;
  			Global_4267011 = iParam5;
  		}
  		bVar5 = false;
  		if (bVar5)
  		{
  			func_129(1, iParam4);
  			Global_4267007 = 0;
  		}
  		if (iParam7 & 4 != 0)
  		{
  			func_124(-1, iParam4, iParam6, iParam5, -1);
  		}
  	}
  	return 0;
  }
  
  void func_124(int iParam0, int iParam1, var uParam2, var uParam3, int iParam4)
  {
  	switch (iParam1)
  	{
  		case 1704445500:
  			unk_0x191DDA30577F440A(&(Global_2426865[unk_0x1146A9AE09CE2B14() /*449*/].f_126.f_71), 0);
  			break;
  	}
  	if (iParam0 != -1)
  	{
  		func_125(iParam0);
  	}
  }
  
  void func_125(int iParam0)
  {
  	bool bVar0;
  	
  	bVar0 = false;
  	if (!func_134())
  	{
  		bVar0 = true;
  	}
  	if (iParam0 != -1)
  	{
  		if (func_128(iParam0))
  		{
  			if (!bVar0)
  			{
  				unk_0x2BC717FE20953774();
  			}
  		}
  		else if (!bVar0)
  		{
  			unk_0x9046783C7B581580(Global_4265506[iParam0 /*85*/].f_66);
  		}
  		func_126(&(Global_4265506[iParam0 /*85*/]));
  	}
  }
  
  void func_126(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_127(&(uParam0->f_14));
  	func_127(&(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_127(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_128(int iParam0)
  {
  	if (iParam0 >= 0 && iParam0 < 15)
  	{
  		return Global_4265506[iParam0 /*85*/].f_66.f_5 == 1;
  	}
  	return 0;
  }
  
  void func_129(int iParam0, var uParam1)
  {
  	Global_2465846 = uParam1;
  	Global_2465845 = iParam0;
  }
  
  int func_130(int iParam0, int iParam1, var uParam2, var uParam3, int iParam4, var uParam5, bool bParam6, var uParam7, var uParam8, int iParam9, int iParam10)
  {
  	int iVar0;
  	
  	iVar0 = 0;
  	iVar0 = 0;
  	while (iVar0 < 15)
  	{
  		if (Global_4265506[iVar0 /*85*/].f_66.f_2 == 0)
  		{
  			if (!func_134())
  			{
  				iParam0 = iVar0 + 900;
  			}
  			Global_4265506[iVar0 /*85*/].f_66.f_2 = 1;
  			Global_4265506[iVar0 /*85*/].f_66.f_1 = uParam5;
  			Global_4265506[iVar0 /*85*/].f_66.f_3 = iParam1;
  			Global_4265506[iVar0 /*85*/].f_66.f_4 = uParam2;
  			Global_4265506[iVar0 /*85*/].f_66.f_7 = uParam3;
  			Global_4265506[iVar0 /*85*/].f_66.f_5 = 0;
  			Global_4265506[iVar0 /*85*/].f_66 = iParam0;
  			Global_4265506[iVar0 /*85*/].f_66.f_6 = iParam4;
  			Global_4265506[iVar0 /*85*/].f_66.f_11 = uParam8;
  			Global_4265506[iVar0 /*85*/].f_66.f_10 = uParam7;
  			Global_4265506[iVar0 /*85*/].f_66.f_13 = iParam9;
  			Global_4265506[iVar0 /*85*/].f_66.f_12 = 0;
  			Global_4265506[iVar0 /*85*/].f_66.f_14 = unk_0x2053F6ACFD4ED4BC();
  			Global_4265506[iVar0 /*85*/].f_66.f_18 = 0;
  			Global_4266993 = 0;
  			if (bParam6)
  			{
  				Global_4265506[iVar0 /*85*/].f_66.f_5 = 1;
  			}
  			if (iParam1 == -1135378931 && iParam10)
  			{
  				func_131(Global_4265506[iVar0 /*85*/], iVar0);
  			}
  			return iVar0;
  		}
  		iVar0++;
  	}
  	return -1;
  }
  
  void func_131(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.x = -384079069;
  	Var0.f_1 = unk_0x1146A9AE09CE2B14();
  	Var0.f_2 = { Param0.f_66 };
  	Var0.f_2.f_33 = iParam85;
  	iVar36 = func_133(Var0.f_1);
  	if ((Global_262145.f_23756 && !Global_262145.f_23757) && !Global_262145.f_23758)
  	{
  		return;
  	}
  	if (!iVar36 == 0)
  	{
  		func_132();
  		unk_0xA5C82A39FF8ED272(1, &Var0, 36, iVar36);
  	}
  }
  
  void func_132()
  {
  	unk_0xA7988ABD4140D469("AM_ARENA_SHP");
  }
  
  int func_133(int iParam0)
  {
  	var uVar0;
  	
  	if (iParam0 != -1)
  	{
  		unk_0x191DDA30577F440A(&uVar0, iParam0);
  	}
  	return uVar0;
  }
  
  int func_134()
  {
  	if (unk_0x3640D836D145B814())
  	{
  		return unk_0x57FB3D94D590E8BC();
  	}
  	return 0;
  }
  
  int func_135(bool bParam0)
  {
  	int iVar0;
  	
  	if (bParam0)
  	{
  		iVar0 = unk_0x4A3CAFCAB7B02E0A();
  	}
  	iVar0 = (iVar0 + unk_0x32C1729072A82662(-1));
  	return iVar0;
  }
  
  void func_136(char* sParam0, var uParam1, int iParam2)
  {
  	unk_0xDDEC6D09154BA73A(sParam0);
  	unk_0x38CD3C04C877C35F(uParam1);
  	unk_0x4A5DC2FF6E0B609F(0, 0, 1, iParam2);
  }
  
  bool func_137()
  {
  	return (((func_139() || func_174()) || func_138() == 2) || func_138() == 16);
  }
  
  int func_138()
  {
  	return Global_968397;
  }
  
  bool func_139()
  {
  	return unk_0x234B68AC2E35ED5A(Global_2453009, 5);
  }
  
  int func_140(int iParam0)
  {
  	var uVar0;
  	int iVar1;
  	
  	if (!unk_0x02BFF15CAA701972())
  	{
  		return 0;
  	}
  	if (iParam0 == unk_0x1146A9AE09CE2B14())
  	{
  		return Global_2518926;
  	}
  	else
  	{
  		uVar0 = unk_0xD56332194D622ECE(iParam0);
  		if (unk_0x419E13582192CFEA(uVar0))
  		{
  			iVar1 = unk_0x6471F4759775FCA4(iVar0);
  			if (iVar1 == joaat("mp_m_freemode_01") || iVar1 == joaat("mp_f_freemode_01"))
  			{
  				return 0;
  			}
  			else
  			{
  				return 1;
  			}
  		}
  		else
  		{
  			return 0;
  		}
  	}
  	return 0;
  }
  
  int func_141(int iParam0)
  {
  	if (!unk_0x419E13582192CFEA(uParam0) || unk_0xE50EB54E0F21BED0(iParam0, 0))
  	{
  		return 0;
  	}
  	if (unk_0x01758128AAB0BA8F(unk_0xF94D55021DC59203(iParam0, 11, unk_0x094C1D2DFE050D6E(iParam0, 11), unk_0x288277F22D527487(iParam0, 11)), joaat("JUGG_SUIT"), 0))
  	{
  		return 1;
  	}
  	return 0;
  }
  
  bool func_142(int iParam0, int iParam1)
  {
  	return unk_0x234B68AC2E35ED5A(Global_2426865[iParam0 /*449*/].f_217, iParam1);
  }
  
  int func_143(int iParam0)
  {
  	if (func_146(iParam0))
  	{
  		return 1;
  	}
  	if (func_144(iParam0))
  	{
  		return 1;
  	}
  	return 0;
  }
  
  int func_144(int iParam0)
  {
  	int iVar0;
  	
  	iVar0 = iParam0;
  	if (iVar0 != -1)
  	{
  		return func_145(iParam0, 9);
  	}
  	return 0;
  }
  
  bool func_145(int iParam0, int iParam1)
  {
  	return unk_0x234B68AC2E35ED5A(Global_1630816[iParam0 /*597*/].f_11.f_4, iParam1);
  }
  
  int func_146(var uParam0)
  {
  	int iVar0;
  	
  	iVar0 = uParam0;
  	if (iVar0 != -1)
  	{
  		return unk_0x234B68AC2E35ED5A(Global_1630816[iVar0 /*597*/].f_1, 0);
  	}
  	return 0;
  }
  
  int func_147(int iParam0)
  {
  	if (iParam0 == 1)
  	{
  		if (Global_19798.f_1 > 3)
  		{
  			if (unk_0x234B68AC2E35ED5A(Global_7668, 14))
  			{
  				return 1;
  			}
  			else
  			{
  				return 0;
  			}
  		}
  		else
  		{
  			return 0;
  		}
  	}
  	if (unk_0x636F1F53CC61D2C9(joaat("cellphone_flashhand")) > 0)
  	{
  		return 1;
  	}
  	if (Global_19798.f_1 > 3)
  	{
  		return 1;
  	}
  	return 0;
  }
  
  void func_148(char* sParam0, int iParam1)
  {
  	unk_0xDDEC6D09154BA73A(sParam0);
  	unk_0x4A5DC2FF6E0B609F(0, 0, 1, iParam1);
  }
  
  void func_149()
  {
  	int iVar0;
  	struct<3> Var1;
  	float fVar4;
  	
  	if (iLocal_398 != 0)
  	{
  		fVar4 = (IntToFloat(unk_0x2D57EADCBEDDB2AA(unk_0xCB3024ED32EBF9EC(), iLocal_398)) / 1000f);
  	}
  	iLocal_398 = unk_0xCB3024ED32EBF9EC();
  	if (((Local_1142.f_262 != -1 && unk_0x234B68AC2E35ED5A(Local_1142.f_2, 0)) && Global_2551618 < Local_1142.f_36[Local_1142.f_197[Local_1142.f_262 /*2*/] /*10*/].f_6) && (Global_2551618 + (fLocal_308 * fVar4)) > Local_1142.f_36[Local_1142.f_197[Local_1142.f_262 /*2*/] /*10*/].f_6)
  	{
  		Global_2551618 = Local_1142.f_36[Local_1142.f_197[Local_1142.f_262 /*2*/] /*10*/].f_6;
  	}
  	else
  	{
  		Global_2551618 = (Global_2551618 + (fLocal_308 * fVar4));
  	}
  	if (Global_2551618 >= 360f)
  	{
  		Global_2551618 = (Global_2551618 - 360f);
  	}
  	if (func_44(uLocal_307))
  	{
  		unk_0x78CDDD1E6367978D(uLocal_307, Local_309, 1, 0, 0, 1);
  		unk_0xBDDCDEC7B6205897(uLocal_307, (-Global_2551618 - (360f / 16f)), 0f, 0f, 2, 1);
  		unk_0xA2C015B68CE01357(uLocal_307, true);
  	}
  	if (unk_0xB30CD10E2CD1B67D("FAIRGROUND_RIDES_FERRIS_WHALE"))
  	{
  		if (func_44(unk_0x7D2B9E6A64637269()))
  		{
  			Var1 = { unk_0xD6E677FAD7521410(unk_0x7D2B9E6A64637269(), 1) };
  		}
  		unk_0x12F409221DAE2366("FAIRGROUND_RIDES_FERRIS_WHALE", "HEIGHT", (Var1.f_2 - fLocal_318));
  	}
  	iVar0 = 0;
  	while (iVar0 < 16)
  	{
  		func_150(&(Local_1142.f_36[iVar0 /*10*/]));
  		iVar0++;
  	}
  }
  
  void func_150(var uParam0)
  {
  	struct<3> Var0;
  	
  	Var0 = { func_152(uParam0->f_5) };
  	if (func_151(iLocal_290[uParam0->f_5]))
  	{
  		unk_0x78CDDD1E6367978D(iLocal_290[uParam0->f_5], Var0, 1, 0, 0, 1);
  		unk_0x83E421E5A4A2A512(iLocal_290[uParam0->f_5], 1000);
  		unk_0xA2C015B68CE01357(iLocal_290[uParam0->f_5], true);
  	}
  }
  
  int func_151(int iParam0)
  {
  	if (unk_0x419E13582192CFEA(uParam0))
  	{
  		if (!unk_0xE50EB54E0F21BED0(iParam0, 0))
  		{
  			return 1;
  		}
  	}
  	return 0;
  }
  
  Vector3 func_152(int iParam0)
  {
  	float fVar0;
  	
  	fVar0 = ((360f / SYSTEM::TO_FLOAT(16)) * SYSTEM::TO_FLOAT(iParam0));
  	return unk_0x9E695CE384C77EF0(uLocal_307, 0f, (15.3f * SYSTEM::SIN(fVar0)), (-15.3f * SYSTEM::COS(fVar0)));
  }
  
  int func_153()
  {
  	unk_0x068BDE31F7D112BB(sLocal_399);
  	unk_0x068BDE31F7D112BB(sLocal_289);
  	unk_0x16E516CA9C88FF48(iLocal_287);
  	unk_0x16E516CA9C88FF48(iLocal_288);
  	if (!unk_0x0EC2B29D4172D225(sLocal_399))
  	{
  		return 0;
  	}
  	if (!unk_0x0EC2B29D4172D225(sLocal_289))
  	{
  		return 0;
  	}
  	if (!unk_0xA9C0BBFB9CBB66F1(iLocal_287))
  	{
  		return 0;
  	}
  	if (!unk_0xA9C0BBFB9CBB66F1(iLocal_288))
  	{
  		return 0;
  	}
  	func_156();
  	func_155(func_78(0));
  	func_154(func_78(0));
  	iLocal_428 = 0;
  	return 1;
  }
  
  void func_154(int iParam0)
  {
  	struct<2> Var0;
  	
  	Var0 = -205876858;
  	Var0.f_1 = unk_0x1146A9AE09CE2B14();
  	if (!iParam0 == 0)
  	{
  		unk_0xA5C82A39FF8ED272(1, &Var0, 2, iParam0);
  	}
  }
  
  void func_155(int iParam0)
  {
  	struct<2> Var0;
  	
  	Var0 = 1341179213;
  	Var0.f_1 = unk_0x1146A9AE09CE2B14();
  	if (!iParam0 == 0)
  	{
  		unk_0xA5C82A39FF8ED272(1, &Var0, 2, iParam0);
  	}
  }
  
  void func_156()
  {
  	int iVar0;
  	
  	iVar0 = 0;
  	Global_2551618 = 0f;
  	uLocal_307 = unk_0x795434E153F90E41(iLocal_287, 0f, 1f, 2f, 0, 0, 0);
  	unk_0x78CDDD1E6367978D(uLocal_307, Local_309, 1, 0, 0, 1);
  	unk_0xBDDCDEC7B6205897(uLocal_307, Global_2551618, 0f, 0f, 2, 1);
  	unk_0xA2C015B68CE01357(uLocal_307, true);
  	unk_0x83E421E5A4A2A512(uLocal_307, 1000);
  	unk_0x8F160110753EB17B(uLocal_307, 1);
  	unk_0x337507F493AD865C(uLocal_307, 0);
  	if (!unk_0xB30CD10E2CD1B67D("FAIRGROUND_RIDES_FERRIS_WHALE"))
  	{
  		unk_0xB84B43B766630B5C("FAIRGROUND_RIDES_FERRIS_WHALE");
  	}
  	iVar0 = 0;
  	while (iVar0 < 16)
  	{
  		func_157(&(Local_1142.f_36[iVar0 /*10*/]), iVar0);
  		iVar0++;
  	}
  	if (!unk_0xCE84F8AB9BD41C13())
  	{
  		func_22(64, 1, 0, 1, 0);
  	}
  }
  
  void func_157(var uParam0, int iParam1)
  {
  	uParam0->f_5 = iParam1;
  	iLocal_290[uParam0->f_5] = unk_0x795434E153F90E41(iLocal_288, 0f, 1f, 2f, 0, 0, 0);
  	unk_0x8F160110753EB17B(iLocal_290[uParam0->f_5], 1);
  	func_150(uParam0);
  }
  
  int func_158()
  {
  	return Local_1142.f_1;
  }
  
  int func_159(int iParam0)
  {
  	return Local_1406[iParam0 /*5*/];
  }
  
  void func_160()
  {
  	int iVar0;
  	int iVar1;
  	struct<2> Var2;
  	
  	iVar0 = 0;
  	while (iVar0 < unk_0x1131A9F5A725F45A(1))
  	{
  		iVar1 = unk_0x5F0847A02025CAB5(1, iVar0);
  		switch (iVar1)
  		{
  			case 174:
  				unk_0x53858F1E03A88AE1(1, iVar0, &Var2, 2);
  				if (func_13(Var2.f_1, 0, 1))
  				{
  					if (unk_0xFCC26BA7572E9F1F(Var2.f_1))
  					{
  						switch (Var2)
  						{
  							case 1341179213:
  								func_171(iVar0);
  								break;
  							
  							case -334317900:
  								func_170(iVar0);
  								break;
  							
  							case -744594073:
  								func_169(iVar0);
  								break;
  							
  							case -329150006:
  								func_168(iVar0);
  								break;
  							
  							case -205876858:
  								func_166(iVar0);
  								break;
  							
  							case -649233912:
  								func_164(iVar0);
  								break;
  							
  							case -1377237869:
  								func_163(iVar0);
  								break;
  							
  							case -179902936:
  								func_162(iVar0);
  								break;
  							
  							case -1461595663:
  								func_161(iVar0);
  								break;
  							}
  						}
  				}
  				break;
  		}
  		iVar0++;
  	}
  }
  
  void func_161(int iParam0)
  {
  	struct<3> Var0;
  	
  	if (unk_0x443E2CA72E118E64())
  	{
  		if (unk_0x53858F1E03A88AE1(1, iParam0, &Var0, 3))
  		{
  			Local_1142.f_3[Var0.f_2] = 0;
  			Local_1142.f_197[Var0.f_2 /*2*/] = -1;
  			Local_1142.f_197[Var0.f_2 /*2*/].f_1 = 0;
  			Local_1142.f_262 = func_2();
  		}
  	}
  }
  
  void func_162(int iParam0)
  {
  	struct<4> Var0;
  	
  	if (unk_0x443E2CA72E118E64())
  	{
  		if (unk_0x53858F1E03A88AE1(1, iParam0, &Var0, 4))
  		{
  			unk_0xC664C0067EEAB8D1(&(Local_1142.f_2), 3);
  			unk_0xC664C0067EEAB8D1(&(Local_1142.f_2), 2);
  			if ((Local_1142.f_262 != -1 && Local_1142.f_197[Local_1142.f_262 /*2*/] != -1) && Var0.f_2 != -1)
  			{
  				if (!Var0.f_3)
  				{
  					Local_1142.f_36[Local_1142.f_197[Local_1142.f_262 /*2*/] /*10*/].f_3 = (Local_1142.f_36[Local_1142.f_197[Local_1142.f_262 /*2*/] /*10*/].f_3 - 1);
  					Local_1142.f_36[Local_1142.f_197[Local_1142.f_262 /*2*/] /*10*/][Var0.f_2] = 0;
  				}
  				else
  				{
  					Local_1142.f_36[Local_1142.f_197[Local_1142.f_262 /*2*/] /*10*/].f_3++;
  					Local_1142.f_36[Local_1142.f_197[Local_1142.f_262 /*2*/] /*10*/][Var0.f_2] = 1;
  				}
  			}
  		}
  	}
  }
  
  void func_163(int iParam0)
  {
  	struct<3> Var0;
  	
  	if (unk_0x53858F1E03A88AE1(1, iParam0, &Var0, 3))
  	{
  		if (!Var0.f_2)
  		{
  			if (unk_0x234B68AC2E35ED5A(Local_1406[unk_0xDD0E57E73E5C4BF6() /*5*/].f_2, 0))
  			{
  				unk_0x191DDA30577F440A(&(Local_1406[unk_0xDD0E57E73E5C4BF6() /*5*/].f_2), 10);
  			}
  			else
  			{
  				unk_0x191DDA30577F440A(&(Local_1406[unk_0xDD0E57E73E5C4BF6() /*5*/].f_2), 9);
  			}
  		}
  	}
  }
  
  void func_164(int iParam0)
  {
  	struct<2> Var0;
  	bool bVar2;
  	
  	if (unk_0x443E2CA72E118E64())
  	{
  		if (unk_0x53858F1E03A88AE1(1, iParam0, &Var0, 2))
  		{
  			bVar2 = unk_0x234B68AC2E35ED5A(Local_1142.f_2, 3);
  			func_165(func_133(Var0.f_1), bVar2);
  			if (!bVar2)
  			{
  				unk_0x191DDA30577F440A(&(Local_1142.f_2), 3);
  			}
  		}
  	}
  }
  
  void func_165(int iParam0, bool bParam1)
  {
  	struct<3> Var0;
  	
  	Var0.x = -1377237869;
  	Var0.f_1 = unk_0x1146A9AE09CE2B14();
  	Var0.f_2 = bParam1;
  	if (!iParam0 == 0)
  	{
  		unk_0xA5C82A39FF8ED272(1, &Var0, 3, iParam0);
  	}
  }
  
  void func_166(int iParam0)
  {
  	struct<2> Var0;
  	
  	if (unk_0x443E2CA72E118E64())
  	{
  		if (unk_0x53858F1E03A88AE1(1, iParam0, &Var0, 2))
  		{
  			func_167(func_133(Var0.f_1));
  		}
  	}
  }
  
  void func_167(int iParam0)
  {
  	struct<3> Var0;
  	
  	Var0.x = -329150006;
  	Var0.f_1 = unk_0x1146A9AE09CE2B14();
  	Var0.f_2 = Global_2551618;
  	if (!iParam0 == 0)
  	{
  		unk_0xA5C82A39FF8ED272(1, &Var0, 3, iParam0);
  	}
  }
  
  void func_168(int iParam0)
  {
  	struct<3> Var0;
  	
  	if (unk_0x53858F1E03A88AE1(1, iParam0, &Var0, 3))
  	{
  		Global_2551618 = Var0.f_2;
  	}
  }
  
  void func_169(int iParam0)
  {
  	struct<2> Var0;
  	var uVar2;
  	
  	if (unk_0x53858F1E03A88AE1(1, iParam0, &Var0, 2))
  	{
  		uVar2 = unk_0xD56332194D622ECE(Var0.f_1);
  		if (func_13(Var0.f_1, 1, 1))
  		{
  			unk_0xB10D331AF5A4D8F3(uVar2, 1);
  			unk_0x3211C35423263392(uVar2, 0, 1);
  		}
  	}
  }
  
  void func_170(int iParam0)
  {
  	struct<7> Var0;
  	var uVar7;
  	
  	if (unk_0x53858F1E03A88AE1(1, iParam0, &Var0, 7))
  	{
  		if (Var0.f_2 != -1)
  		{
  			uVar7 = unk_0xD56332194D622ECE(Var0.f_1);
  			if (func_13(Var0.f_1, 1, 1))
  			{
  				unk_0xB10D331AF5A4D8F3(uVar7, 1);
  				unk_0x0F1058706D5A58B4(uVar7, iLocal_290[Var0.f_2], 0, Var0.f_3, 0f, 0f, Var0.f_6, 0, 0, 0, 0, 2, 1);
  			}
  		}
  	}
  }
  
  void func_171(int iParam0)
  {
  	struct<2> Var0;
  	struct<3> Var2;
  	
  	if (unk_0x53858F1E03A88AE1(1, iParam0, &Var0, 2))
  	{
  		if (unk_0x234B68AC2E35ED5A(Local_1406[unk_0xDD0E57E73E5C4BF6() /*5*/].f_2, 0))
  		{
  			unk_0xB10D331AF5A4D8F3(unk_0x7D2B9E6A64637269(), 1);
  			Var2 = { unk_0x8EB57098C563AB39(iLocal_290[Local_1406[unk_0xDD0E57E73E5C4BF6() /*5*/].f_3], unk_0xD6E677FAD7521410(unk_0x7D2B9E6A64637269(), 1)) };
  			func_68(func_133(Var0.f_1), Local_1406[unk_0xDD0E57E73E5C4BF6() /*5*/].f_3, Var2, unk_0xA8D713A937F31250(unk_0x7D2B9E6A64637269()));
  		}
  	}
  }
  
  int func_172()
  {
  	if (func_173() == 0)
  	{
  		return 1;
  	}
  	return 0;
  }
  
  int func_173()
  {
  	return Global_1312485.f_18;
  }
  
  int func_174()
  {
  	if (((func_178() || func_177()) || func_176()) || func_175())
  	{
  		return 1;
  	}
  	return 0;
  }
  
  bool func_175()
  {
  	return unk_0x234B68AC2E35ED5A(Global_2453009, 1);
  }
  
  bool func_176()
  {
  	return unk_0x234B68AC2E35ED5A(Global_2453009, 2);
  }
  
  bool func_177()
  {
  	return unk_0x234B68AC2E35ED5A(Global_2453009, 20);
  }
  
  bool func_178()
  {
  	return Global_2453009.f_698;
  }
  
  bool func_179()
  {
  	return Global_1590908[unk_0x1146A9AE09CE2B14() /*874*/].f_192 != 0;
  }
  
  int func_180()
  {
  	var uVar0;
  	
  	func_186(&uVar0);
  	if (Global_1312878 == 0)
  	{
  		if (!unk_0x02BFF15CAA701972())
  		{
  			return 1;
  		}
  	}
  	if (func_185())
  	{
  		return 1;
  	}
  	if (Global_2465749)
  	{
  		return 1;
  	}
  	if (func_184())
  	{
  		return 1;
  	}
  	if (func_183(159))
  	{
  		if (!func_178())
  		{
  			return 1;
  		}
  	}
  	if (func_183(157))
  	{
  		return 1;
  	}
  	if (!unk_0x0B4295B1608BB934())
  	{
  		return 1;
  	}
  	if (func_181() != 0)
  	{
  		if (unk_0x636F1F53CC61D2C9(func_181()) == 0)
  		{
  			return 1;
  		}
  	}
  	return 0;
  }
  
  int func_181()
  {
  	switch (func_28())
  	{
  		case 0:
  			return func_182();
  			break;
  		
  		case 2:
  			return joaat("creator");
  			break;
  	}
  	return 0;
  }
  
  int func_182()
  {
  	switch (Global_2465851)
  	{
  		case 0:
  			return joaat("freemode");
  		
  		default:
  	}
  	return joaat("freemode");
  }
  
  int func_183(int iParam0)
  {
  	if (unk_0x7B95B829DF1701E0(1, iParam0))
  	{
  		return 1;
  	}
  	return 0;
  }
  
  bool func_184()
  {
  	return Global_2463497;
  }
  
  bool func_185()
  {
  	return Global_2453009.f_693;
  }
  
  void func_186(var uParam0)
  {
  	int iVar0;
  	int iVar1;
  	int iVar2;
  	struct<3> Var4;
  	
  	iVar0 = 0;
  	while (iVar0 < unk_0x1131A9F5A725F45A(1))
  	{
  		iVar1 = unk_0x5F0847A02025CAB5(1, iVar0);
  		if (iVar1 == 174)
  		{
  			unk_0x53858F1E03A88AE1(1, iVar0, &iVar2, 2);
  			switch (iVar2)
  			{
  				case -771178269:
  					func_187(iVar0);
  					break;
  				
  				case -1320260596:
  					unk_0x53858F1E03A88AE1(1, iVar0, &Var4, 4);
  					if (Var4.f_2 == -2138305833)
  					{
  						*uParam0 = 1;
  					}
  					break;
  				}
  		}
  		iVar0++;
  	}
  }
  
  void func_187(int iParam0)
  {
  	struct<3> Var0;
  	var uVar3;
  	var uVar4;
  	bool bVar5;
  	
  	if (unk_0x53858F1E03A88AE1(1, iParam0, &Var0, 3))
  	{
  		if (func_13(Var0.f_1, 1, 1))
  		{
  			uVar3 = unk_0xD56332194D622ECE(Var0.f_1);
  			if (unk_0x419E13582192CFEA(uVar3))
  			{
  				if (unk_0xC49311A2A500FF09(iVar3, 0))
  				{
  					uVar4 = unk_0x75B58B38E45C6F9A(iVar3, 0);
  					if (unk_0xF2A0B4A5DE0987FB(uVar4, Var0.f_2) && unk_0x8ED8428AB65B7367())
  					{
  						if (func_188(uVar4, &bVar5))
  						{
  							unk_0x2B360ED559ED11A6(uVar4, Var0.f_2);
  						}
  						if (bVar5)
  						{
  							unk_0x795957CD3A0042C8(&uVar4);
  						}
  					}
  				}
  			}
  		}
  	}
  }
  
  int func_188(int iParam0, var uParam1)
  {
  	if (unk_0x419E13582192CFEA(uParam0))
  	{
  		if (!unk_0xEE1D92A39CF8E1E6(iParam0))
  		{
  			if (unk_0x456C91FDAFEEF560(iParam0))
  			{
  				if (!unk_0x8C6BE3ED9638F314(unk_0x6471F4759775FCA4(iParam0)))
  				{
  					unk_0x4985CD0720AFD468(iParam0, 0, 1);
  					*uParam1 = 1;
  				}
  			}
  		}
  		if (unk_0x9984C023D4E57C2E(iParam0, 0))
  		{
  			if (unk_0xA6BE8F025C6B653F(iParam0))
  			{
  				return 1;
  			}
  		}
  	}
  	return 0;
  }
  
  void func_189()
  {
  	SYSTEM::WAIT(0);
  }
  
  void func_190()
  {
  	if (!unk_0xC49311A2A500FF09(unk_0x7D2B9E6A64637269(), 0))
  	{
  	}
  }
  
  void func_191()
  {
  	func_197();
  	func_195(0);
  	func_80(&uLocal_395, 0);
  	func_80(&uLocal_324, 0);
  	func_79(&Local_325, 0, 1);
  	if (unk_0xB30CD10E2CD1B67D("FAIRGROUND_RIDES_FERRIS_WHALE"))
  	{
  		unk_0xC0BBE340BE2AA02D("FAIRGROUND_RIDES_FERRIS_WHALE");
  	}
  	unk_0xC664C0067EEAB8D1(&(Global_1590908[unk_0x1146A9AE09CE2B14() /*874*/].f_873), 14);
  	if (unk_0x02BFF15CAA701972())
  	{
  		if (unk_0x234B68AC2E35ED5A(Local_1406[unk_0xDD0E57E73E5C4BF6() /*5*/].f_2, 0) || func_179())
  		{
  			if (unk_0x5976053523EA16C8(unk_0x7D2B9E6A64637269()))
  			{
  				unk_0x3211C35423263392(unk_0x7D2B9E6A64637269(), 1, 1);
  			}
  			if (unk_0x234B68AC2E35ED5A(Local_1406[unk_0xDD0E57E73E5C4BF6() /*5*/].f_2, 0))
  			{
  				unk_0xCA089CD1A17D76DF(unk_0x7D2B9E6A64637269());
  			}
  		}
  		func_45(0);
  	}
  	func_41();
  	func_192(&uLocal_51);
  	func_192(&uLocal_169);
  	unk_0x4CB6F58014173870("fairgroundHub");
  	unk_0x4BFE89D21F9885DC();
  }
  
  void func_192(var uParam0)
  {
  	int iVar0;
  	
  	iVar0 = 0;
  	while (iVar0 < *uParam0)
  	{
  		func_193(uParam0, iVar0);
  		iVar0++;
  	}
  }
  
  int func_193(var uParam0, int iParam1)
  {
  	if (!unk_0x234B68AC2E35ED5A(uParam0->f_114, iParam1) || (*uParam0)[iParam1 /*7*/] == 0)
  	{
  		return 1;
  	}
  	switch ((*uParam0)[iParam1 /*7*/])
  	{
  		case 1:
  			if (unk_0x06332363F8F14D77((uParam0[iParam1 /*7*/])->f_3))
  			{
  				unk_0x7567983D73022C17((uParam0[iParam1 /*7*/])->f_3);
  			}
  			break;
  		
  		case 2:
  			if (unk_0x0EC2B29D4172D225((uParam0[iParam1 /*7*/])->f_3))
  			{
  				unk_0xF9135F131C423364((uParam0[iParam1 /*7*/])->f_3);
  			}
  			break;
  		
  		case 3:
  			if (unk_0xD8DCEA7B6A249141((uParam0[iParam1 /*7*/])->f_3))
  			{
  				unk_0x513390158FC17713((uParam0[iParam1 /*7*/])->f_3);
  			}
  			break;
  		
  		case 4:
  			unk_0xE76ABB7DC1AD1626();
  			break;
  		
  		case 5:
  			break;
  		
  		case 6:
  			if (unk_0xA9C0BBFB9CBB66F1((uParam0[iParam1 /*7*/])->f_1))
  			{
  				unk_0x824F744352C8BC82((uParam0[iParam1 /*7*/])->f_1);
  			}
  			break;
  		
  		case 7:
  			if (unk_0xB4C12EFC62A8536A())
  			{
  				unk_0x4D2B6680250EFCC8();
  			}
  			break;
  		
  		case 8:
  			if (unk_0x080D38ACEC5DC1A2((uParam0[iParam1 /*7*/])->f_5))
  			{
  				unk_0xE498E37B41AEA1DF((uParam0[iParam1 /*7*/])->f_5, 0);
  			}
  			break;
  		
  		case 9:
  			if (unk_0xAD9D75DD073BF477((uParam0[iParam1 /*7*/])->f_3))
  			{
  				unk_0xB5F867E143F78583((uParam0[iParam1 /*7*/])->f_3);
  			}
  			break;
  		
  		case 10:
  			if (unk_0x9CF7186A344D26A9((uParam0[iParam1 /*7*/])->f_5, (uParam0[iParam1 /*7*/])->f_3))
  			{
  				unk_0x7B6B41ECBE4B733F((uParam0[iParam1 /*7*/])->f_5, (uParam0[iParam1 /*7*/])->f_3);
  			}
  			break;
  		
  		case 11:
  			if (unk_0x9745FAC5B3E4C8B8((uParam0[iParam1 /*7*/])->f_3))
  			{
  				unk_0xD0AC51DF5D1C2659((uParam0[iParam1 /*7*/])->f_3);
  			}
  			break;
  		
  		case 12:
  			if (unk_0x13A4C28F44262AD2((uParam0[iParam1 /*7*/])->f_2))
  			{
  				unk_0x851D0D0DFC8084DB((uParam0[iParam1 /*7*/])->f_2);
  			}
  			break;
  		
  		default:
  			return 0;
  	}
  	switch ((*uParam0)[iParam1 /*7*/])
  	{
  		case 6:
  			break;
  		
  		case 7:
  			break;
  		
  		case 8:
  			break;
  		
  		case 12:
  			break;
  		
  		default:
  			break;
  	}
  	func_194(uParam0[iParam1 /*7*/]);
  	return 1;
  }
  
  void func_194(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_195(bool bParam0)
  {
  	if (bParam0)
  	{
  		func_196();
  		if (Global_19798.f_1 == 10 || Global_19798.f_1 == 9)
  		{
  			unk_0x191DDA30577F440A(&Global_7669, 16);
  		}
  		Global_19798.f_1 = 1;
  		if (func_147(0))
  		{
  			func_34(0);
  		}
  	}
  	else if (Global_19798.f_1 == 1)
  	{
  		if (!Global_19798.f_1 == 0)
  		{
  			Global_19798.f_1 = 3;
  		}
  	}
  }
  
  void func_196()
  {
  	if (Global_19798.f_1 == 9 || Global_19798.f_1 == 10)
  	{
  		Global_21178 = 0;
  		Global_21174 = 1;
  	}
  }
  
  void func_197()
  {
  	int iVar0;
  	
  	if (!unk_0xCE84F8AB9BD41C13())
  	{
  		func_22(64, 0, 0, 1, 0);
  	}
  	iVar0 = 0;
  	while (iVar0 < Local_1142.f_36)
  	{
  		func_199(&(Local_1142.f_36[iVar0 /*10*/]));
  		iVar0++;
  	}
  	if (unk_0xB30CD10E2CD1B67D("FAIRGROUND_RIDES_FERRIS_WHALE"))
  	{
  		unk_0xC0BBE340BE2AA02D("FAIRGROUND_RIDES_FERRIS_WHALE");
  	}
  	if (unk_0xB30CD10E2CD1B67D("FAIRGROUND_RIDES_FERRIS_WHALE_ALTERNATIVE_VIEW"))
  	{
  		unk_0xC0BBE340BE2AA02D("FAIRGROUND_RIDES_FERRIS_WHALE_ALTERNATIVE_VIEW");
  	}
  	func_42(&iLocal_322);
  	func_42(&iLocal_322);
  	func_42(&iLocal_319);
  	func_42(&iLocal_320);
  	func_198(&uLocal_307);
  }
  
  void func_198(var uParam0)
  {
  	if (unk_0x419E13582192CFEA(*uParam0))
  	{
  		if (unk_0xD79E16EA1337F8F9(*uParam0))
  		{
  			unk_0x3211C35423263392(*uParam0, 1, 1);
  		}
  		unk_0x04F4D55F2C0C756D(uParam0);
  	}
  }
  
  void func_199(var uParam0)
  {
  	if (iLocal_290[uParam0->f_5] == 0)
  	{
  		return;
  	}
  	func_198(&(iLocal_290[uParam0->f_5]));
  	iLocal_290[uParam0->f_5] = 0;
  }
  
  int func_200(struct<21> Param0)
  {
  	func_205(func_206(Param0), Param0);
  	unk_0x71E63FA8638D90D9(0);
  	func_202(0, -1, 0);
  	unk_0xF784CE07ED70869A(&Local_1142, 264);
  	unk_0xC84352B5E80ABF68(&Local_1406, 161);
  	unk_0x87F1904AB605184A(0);
  	Local_1406[unk_0xDD0E57E73E5C4BF6() /*5*/] = 0;
  	func_201(func_78(1));
  	return 1;
  }
  
  void func_201(int iParam0)
  {
  	struct<3> Var0;
  	
  	Var0.x = -1461595663;
  	Var0.f_1 = unk_0x1146A9AE09CE2B14();
  	Var0.f_2 = unk_0xDD0E57E73E5C4BF6();
  	if (!iParam0 == 0)
  	{
  		unk_0xA5C82A39FF8ED272(1, &Var0, 3, iParam0);
  	}
  }
  
  int func_202(int iParam0, int iParam1, bool bParam2)
  {
  	int iVar0;
  	
  	iVar0 = unk_0x41BB6B0BDB7933FF();
  	while (iVar0 != 2)
  	{
  		if (((iVar0 == 3 || iVar0 == 4) || iVar0 == 5) || iVar0 == 6)
  		{
  			if (!bParam2)
  			{
  				func_204();
  			}
  			else
  			{
  				return 0;
  			}
  		}
  		if (!func_203())
  		{
  			if (iParam0 == 0)
  			{
  				if (!unk_0x02BFF15CAA701972())
  				{
  					if (!bParam2)
  					{
  						func_204();
  					}
  					else
  					{
  						return 0;
  					}
  				}
  				if (func_185())
  				{
  					if (!bParam2)
  					{
  						func_204();
  					}
  					else
  					{
  						return 0;
  					}
  				}
  				if (func_183(157))
  				{
  					if (!bParam2)
  					{
  						func_204();
  					}
  					else
  					{
  						return 0;
  					}
  				}
  			}
  			else if (!unk_0x930F75DAF7DE892B())
  			{
  				if (!bParam2)
  				{
  					func_204();
  				}
  				else
  				{
  					return 0;
  				}
  			}
  		}
  		SYSTEM::WAIT(0);
  		iVar0 = unk_0x41BB6B0BDB7933FF();
  	}
  	if (iParam1 > -1)
  	{
  		Global_1312519 = iVar0;
  	}
  	if (iParam0 == 0)
  	{
  		if (!unk_0x02BFF15CAA701972())
  		{
  			if (!bParam2)
  			{
  				func_204();
  			}
  			else
  			{
  				return 0;
  			}
  		}
  	}
  	else if (!unk_0x930F75DAF7DE892B())
  	{
  		if (!bParam2)
  		{
  			func_204();
  		}
  		else
  		{
  			return 0;
  		}
  	}
  	return 1;
  }
  
  bool func_203()
  {
  	return Global_1312878;
  }
  
  void func_204()
  {
  	unk_0x4BFE89D21F9885DC();
  }
  
  void func_205(var uParam0, struct<17> Param1, var uParam18, var uParam19, var uParam20, var uParam21)
  {
  	if (!unk_0x02BFF15CAA701972())
  	{
  		func_204();
  	}
  	unk_0x35BEDD7AFD26FCD5(uParam0, 0, Param1.f_16);
  }
  
  int func_206(int iParam0)
  {
  	switch (iParam0)
  	{
  		case 3:
  			return 2;
  		
  		case 1:
  			return 32;
  		
  		case 32:
  			return 32;
  		
  		case 33:
  			return 32;
  		
  		case 34:
  			return 32;
  		
  		case 35:
  			return 32;
  		
  		case 36:
  			return 32;
  		
  		case 37:
  			return 32;
  		
  		case 38:
  			return 32;
  		
  		case 39:
  			return 32;
  		
  		case 40:
  			return 32;
  		
  		case 41:
  			return 32;
  		
  		case 42:
  			return 32;
  		
  		case 43:
  			return 32;
  		
  		case 44:
  			return 32;
  		
  		case 45:
  			return 32;
  		
  		case 46:
  			return 32;
  		
  		case 47:
  			return 32;
  		
  		case 48:
  			return 32;
  		
  		case 49:
  			return 32;
  		
  		case 50:
  			return 4;
  		
  		case 51:
  			return 32;
  		
  		case 52:
  			return 32;
  		
  		case 53:
  			return 32;
  		
  		case 54:
  			return 32;
  		
  		case 55:
  			return 32;
  		
  		case 56:
  			return 32;
  		
  		case 57:
  			return 32;
  		
  		case 58:
  			return 32;
  		
  		case 59:
  			return 32;
  		
  		case 60:
  			return 32;
  		
  		case 61:
  			return 32;
  		
  		case 62:
  			return 32;
  		
  		case 63:
  			return 32;
  		
  		case 64:
  			return 4;
  		
  		case 65:
  			return 32;
  		
  		case 66:
  			return 4;
  		
  		case 67:
  			return 4;
  		
  		case 68:
  			return 32;
  		
  		case 69:
  			return 32;
  		
  		case 70:
  			return 4;
  		
  		case 71:
  			return 32;
  		
  		case 72:
  			return 32;
  		
  		case 73:
  		case 74:
  			return 4;
  		
  		case 75:
  			return 32;
  		
  		case 76:
  			return 32;
  		
  		case 77:
  			return 32;
  		
  		case 78:
  			return 32;
  		
  		case joaat("mpsv_lp0_31"):
  			return 32;
  		
  		case 80:
  			return 32;
  		
  		case 81:
  			return 32;
  		
  		case 82:
  			return 32;
  		
  		case 84:
  			return 32;
  		
  		case 83:
  			return 32;
  		
  		case 85:
  			return 32;
  		
  		case 86:
  			return 8;
  		
  		case 87:
  			return 32;
  		
  		case 88:
  			return 32;
  		
  		case 89:
  			return 32;
  		
  		case 90:
  			return 32;
  		
  		case 91:
  			return 8;
  		
  		case 92:
  			return 32;
  		
  		case 93:
  			return 8;
  		
  		case 94:
  			return 8;
  		
  		case 102:
  			return 8;
  		
  		case 95:
  			return 8;
  		
  		case 96:
  			return 32;
  		
  		case 97:
  			return 32;
  		
  		case 98:
  			return 32;
  		
  		case 99:
  			return 8;
  		
  		case 100:
  			return 32;
  		
  		case 101:
  			return 32;
  		
  		case 103:
  			return 32;
  		
  		case 104:
  			return 32;
  		
  		case 105:
  			return 32;
  		
  		case 106:
  			return 8;
  		
  		case 107:
  			return 8;
  		
  		case 108:
  			return 8;
  		
  		case 109:
  			return 8;
  		
  		case 110:
  			return 8;
  		
  		case 111:
  			return 8;
  		
  		case 112:
  			return 8;
  		
  		case 113:
  			return 8;
  		
  		case 114:
  			return 32;
  		
  		case 115:
  			return 8;
  		
  		case 116:
  			return 8;
  		
  		case 117:
  			return 8;
  		
  		case 118:
  			return 8;
  		
  		case 119:
  			return 32;
  		
  		case 120:
  			return 32;
  		
  		case 121:
  			return 32;
  		
  		case 122:
  			return 32;
  		
  		case 123:
  			return 8;
  		
  		case 124:
  			return 8;
  		
  		case 125:
  			return 8;
  		
  		case 126:
  			return 8;
  		
  		case 12:
  			return 32;
  		
  		case 4:
  			return 16;
  		
  		case 13:
  			return 32;
  		
  		case 5:
  			return 16;
  		
  		case 6:
  			return 2;
  		
  		case 8:
  			return 2;
  		
  		case 9:
  			return 2;
  		
  		case 7:
  			return 16;
  		
  		case 10:
  			return 2;
  		
  		case 11:
  			return 4;
  		
  		case 15:
  			return 32;
  		
  		case 16:
  			return 32;
  		
  		case 27:
  			return 2;
  		
  		case 25:
  			return 2;
  		
  		case 26:
  			return 2;
  		
  		case 18:
  			return 32;
  		
  		case 28:
  			return 32;
  		
  		case 29:
  			return 2;
  		
  		case 30:
  			return 32;
  		
  		case 31:
  			return 32;
  		
  		case 17:
  			return 2;
  		
  		case 141:
  			return 32;
  		
  		case 142:
  			return 32;
  		
  		case 19:
  			return 32;
  		
  		case 22:
  			return 32;
  		
  		case 23:
  			return 32;
  		
  		case 24:
  			return 32;
  		
  		case 20:
  			return 2;
  		
  		case 0:
  			return 0;
  		
  		case 21:
  			return 32;
  		
  		case 153:
  			return 32;
  		
  		case 154:
  			return 32;
  		
  		case 143:
  			return 32;
  		
  		case 144:
  			return 32;
  		
  		case 148:
  			return 32;
  		
  		case 146:
  			return 32;
  		
  		case 147:
  			return 32;
  		
  		case 151:
  			return 32;
  		
  		case 152:
  			return 32;
  		
  		case 149:
  			return 32;
  		
  		case 150:
  			return 32;
  		
  		case 155:
  			return 32;
  		
  		case 156:
  			return 32;
  		
  		case 157:
  			return 32;
  		
  		case 158:
  			return 32;
  		
  		case 159:
  			return 2;
  		
  		case 164:
  			return 1;
  		
  		case 160:
  			return 2;
  		
  		case 161:
  			return 4;
  		
  		case 162:
  			return 2;
  		
  		case 163:
  			return 2;
  		
  		case 145:
  			return 1;
  		
  		case 165:
  			return 2;
  		
  		case 166:
  		case 167:
  		case 168:
  		case 169:
  		case 170:
  		case 171:
  			return 0;
  		
  		case 187:
  			return 1;
  		
  		case 172:
  			return 4;
  		
  		case 175:
  			return 4;
  		
  		case 176:
  			return 1;
  		
  		case 177:
  			return 1;
  		
  		case 183:
  			return 1;
  		
  		case 179:
  			return 2;
  		
  		case 184:
  			return 1;
  		
  		case 180:
  			return 1;
  		
  		case 178:
  			return 2;
  		
  		case 181:
  			return 8;
  		
  		case 182:
  			return 8;
  		
  		case 185:
  			return 1;
  		
  		case 186:
  			return 2;
  		
  		case 173:
  			return 16;
  		
  		case 174:
  			return 32;
  		
  		default:
  	}
  	switch (func_207(func_208(iParam0, 1)))
  	{
  		case 0:
  			return 8;
  		
  		case 1:
  			return 32;
  		
  		case 2:
  			return 32;
  		
  		default:
  	}
  	return 0;
  }
  
  int func_207(int iParam0)
  {
  	switch (iParam0)
  	{
  		case 150:
  			return 1;
  		
  		case 24:
  			return 2;
  		
  		case 26:
  			return 2;
  		
  		case 256:
  			return 0;
  		
  		case 258:
  			return 0;
  		
  		case 259:
  			return 2;
  		
  		case 271:
  			return 0;
  		
  		case 273:
  			return 2;
  		
  		case 276:
  			return 0;
  		
  		case 277:
  			return 0;
  		
  		case 269:
  			return 2;
  		
  		case 270:
  			return 2;
  		
  		case 275:
  			return 2;
  		
  		default:
  	}
  	return -1;
  }
  
  int func_208(int iParam0, bool bParam1)
  {
  	switch (iParam0)
  	{
  		case 159:
  			return 15;
  		
  		case 166:
  			return 8;
  		
  		case 160:
  			return 14;
  		
  		case 164:
  			return 122;
  		
  		case 167:
  			return 1;
  		
  		case 165:
  			return 5;
  		
  		case 168:
  			return 6;
  		
  		case 161:
  			return 11;
  		
  		case 169:
  			return 0;
  		
  		case 170:
  			return 2;
  		
  		case 162:
  			return 13;
  		
  		case 171:
  			return 3;
  		
  		case 163:
  			return 12;
  		
  		case 49:
  			return 148;
  		
  		case 52:
  			return 151;
  		
  		case 53:
  			return 152;
  		
  		case 54:
  			return 157;
  		
  		case 55:
  			return 153;
  		
  		case 56:
  			return 154;
  		
  		case 57:
  			return 155;
  		
  		case 58:
  			return 159;
  		
  		case 51:
  			return 162;
  		
  		case 60:
  			return 142;
  		
  		case 62:
  			return 160;
  		
  		case 63:
  			return 164;
  		
  		case 64:
  			return 163;
  		
  		case 65:
  			return 166;
  		
  		case 66:
  			return 167;
  		
  		case 67:
  			return 168;
  		
  		case 68:
  			return 169;
  		
  		case 69:
  			return 170;
  		
  		case 70:
  			return 171;
  		
  		case 71:
  			return 172;
  		
  		case 72:
  			return 173;
  		
  		case 73:
  			return 178;
  		
  		case 74:
  			return 188;
  		
  		case 75:
  			return 214;
  		
  		case 76:
  			return 215;
  		
  		case 77:
  			return 216;
  		
  		case 78:
  			return 217;
  		
  		case joaat("mpsv_lp0_31"):
  			return 218;
  		
  		case 80:
  			return 219;
  		
  		case 81:
  			return 220;
  		
  		case 82:
  			return 221;
  		
  		case 84:
  			return 179;
  		
  		case 83:
  			return 189;
  		
  		case 85:
  			return 180;
  		
  		case 87:
  			return 182;
  		
  		case 88:
  			return 183;
  		
  		case 89:
  			return 185;
  		
  		case 90:
  			return 186;
  		
  		case 91:
  			return 190;
  		
  		case 92:
  			return 191;
  		
  		case 93:
  			return 192;
  		
  		case 94:
  			return 193;
  		
  		case 102:
  			return 205;
  		
  		case 95:
  			return 194;
  		
  		case 96:
  			return 197;
  		
  		case 97:
  			return 198;
  		
  		case 99:
  			return 199;
  		
  		case 100:
  			return 200;
  		
  		case 101:
  			return 201;
  		
  		case 103:
  			return 207;
  		
  		case 104:
  			return 208;
  		
  		case 105:
  			return 209;
  		
  		case 106:
  			return 210;
  		
  		case 98:
  			return 195;
  		
  		case 107:
  			return 225;
  		
  		case 108:
  			return 226;
  		
  		case 109:
  			return 227;
  		
  		case 110:
  			return 229;
  		
  		case 111:
  			return 230;
  		
  		case 113:
  			return 233;
  		
  		case 115:
  			return 237;
  		
  		case 116:
  			return 238;
  		
  		case 117:
  			return 239;
  		
  		case 118:
  			return 240;
  		
  		case 119:
  			return 241;
  		
  		case 120:
  			return 242;
  		
  		case 121:
  			return 244;
  		
  		case 122:
  			return 248;
  		
  		case 123:
  			return 249;
  		
  		case 124:
  			return 250;
  		
  		case 125:
  			return 243;
  		
  		case 126:
  			return 158;
  		
  		case 86:
  			return 181;
  		
  		case 127:
  			return 150;
  		
  		case 128:
  			return 24;
  		
  		case 129:
  			return 26;
  		
  		case 130:
  			return 256;
  		
  		case 131:
  			return 258;
  		
  		case 133:
  			return 259;
  		
  		case 134:
  			return 271;
  		
  		case 135:
  			return 273;
  		
  		case 136:
  			return 276;
  		
  		case 137:
  			return 277;
  		
  		case 138:
  			return 269;
  		
  		case 139:
  			return 270;
  		
  		case 140:
  			return 275;
  		
  		default:
  	}
  	if (bParam1)
  	{
  	}
  	return 281;
  }
  
  