text: #region Local Var
  	var uLocal_0 = 0;
  	var uLocal_1 = 0;
  	int iLocal_2 = 0;
  	int iLocal_3 = 0;
  	int iLocal_4 = 0;
  	int iLocal_5 = 0;
  	int iLocal_6 = 0;
  	int iLocal_7 = 0;
  	int iLocal_8 = 0;
  	int iLocal_9 = 0;
  	int iLocal_10 = 0;
  	int iLocal_11 = 0;
  	var uLocal_12 = 0;
  	var uLocal_13 = 0;
  	float fLocal_14 = 0f;
  	var uLocal_15 = 0;
  	var uLocal_16 = 0;
  	int iLocal_17 = 0;
  	var uLocal_18 = 0;
  	var uLocal_19 = 0;
  	char* sLocal_20 = NULL;
  	float fLocal_21 = 0f;
  	var uLocal_22 = 0;
  	var uLocal_23 = 0;
  	var uLocal_24 = 0;
  	float fLocal_25 = 0f;
  	float fLocal_26 = 0f;
  	var uLocal_27 = 0;
  	var uLocal_28 = 0;
  	var uLocal_29 = 0;
  	float fLocal_30 = 0f;
  	float fLocal_31 = 0f;
  	float fLocal_32 = 0f;
  	var uLocal_33 = 0;
  	var uLocal_34 = 0;
  	int iLocal_35 = 0;
  	var uLocal_36 = 0;
  	var uLocal_37 = 0;
  	var uLocal_38 = 0;
  	int iLocal_39 = 0;
  	int iLocal_40 = 0;
  	int iLocal_41 = 0;
  	int iLocal_42 = 0;
  	var uLocal_43 = 0;
  	var uLocal_44 = 0;
  	var uLocal_45 = 0;
  	int iLocal_46 = 0;
  	int iLocal_47 = 0;
  	var uLocal_48 = 0;
  	int iLocal_49 = 0;
  	var uLocal_50 = 100;
  	var uLocal_51 = 0;
  	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 = 20;
  	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 = 0;
  	var uLocal_170 = 0;
  	var uLocal_171 = 0;
  	var uLocal_172 = 20;
  	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;
  	float fLocal_210 = 0f;
  	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 = -1;
  	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;
  	int iLocal_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 = 50;
  	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;
  	var uLocal_287 = 0;
  	var uLocal_288 = 0;
  	var uLocal_289 = 0;
  	var uLocal_290 = 0;
  	var uLocal_291 = 0;
  	var uLocal_292 = 0;
  	var uLocal_293 = 0;
  	var uLocal_294 = 0;
  	var uLocal_295 = 0;
  	var uLocal_296 = 0;
  	var uLocal_297 = 0;
  	var uLocal_298 = 0;
  	var uLocal_299 = 0;
  	var uLocal_300 = 0;
  	var uLocal_301 = 0;
  	var uLocal_302 = 0;
  	var uLocal_303 = 0;
  	var uLocal_304 = 0;
  	var uLocal_305 = 0;
  	var uLocal_306 = 0;
  	var uLocal_307 = 0;
  	var uLocal_308 = 0;
  	var uLocal_309 = 0;
  	var uLocal_310 = 0;
  	var uLocal_311 = 0;
  	var uLocal_312 = 0;
  	var uLocal_313 = 0;
  	var uLocal_314 = 0;
  	var uLocal_315 = 0;
  	var uLocal_316 = 0;
  	var uLocal_317 = 0;
  	var uLocal_318 = 0;
  	var uLocal_319 = 0;
  	var uLocal_320 = 0;
  	var uLocal_321 = 0;
  	var uLocal_322 = 0;
  	var uLocal_323 = 0;
  	var uLocal_324 = 0;
  	var uLocal_325 = 50;
  	var uLocal_326 = 0;
  	var uLocal_327 = 0;
  	var uLocal_328 = 0;
  	var uLocal_329 = 0;
  	var uLocal_330 = 0;
  	var uLocal_331 = 0;
  	var uLocal_332 = 0;
  	var uLocal_333 = 0;
  	var uLocal_334 = 0;
  	var uLocal_335 = 0;
  	var uLocal_336 = 0;
  	var uLocal_337 = 0;
  	var uLocal_338 = 0;
  	var uLocal_339 = 0;
  	var uLocal_340 = 0;
  	var uLocal_341 = 0;
  	var uLocal_342 = 0;
  	var uLocal_343 = 0;
  	var uLocal_344 = 0;
  	var uLocal_345 = 0;
  	var uLocal_346 = 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 = 0;
  	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 = 0;
  	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 = 0;
  	var uLocal_372 = 0;
  	var uLocal_373 = 0;
  	var uLocal_374 = 0;
  	var uLocal_375 = 0;
  	var uLocal_376 = 50;
  	var uLocal_377 = 0;
  	var uLocal_378 = 0;
  	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;
  	var uLocal_396 = 0;
  	var uLocal_397 = 0;
  	var uLocal_398 = 0;
  	var uLocal_399 = 0;
  	var uLocal_400 = 0;
  	var uLocal_401 = 0;
  	var uLocal_402 = 0;
  	var uLocal_403 = 0;
  	var uLocal_404 = 0;
  	var uLocal_405 = 0;
  	var uLocal_406 = 0;
  	var uLocal_407 = 0;
  	var uLocal_408 = 0;
  	var uLocal_409 = 0;
  	var uLocal_410 = 0;
  	var uLocal_411 = 0;
  	var uLocal_412 = 0;
  	var uLocal_413 = 0;
  	var uLocal_414 = 0;
  	var uLocal_415 = 0;
  	var uLocal_416 = 0;
  	var uLocal_417 = 0;
  	var uLocal_418 = 0;
  	var uLocal_419 = 0;
  	var uLocal_420 = 0;
  	var uLocal_421 = 0;
  	var uLocal_422 = 0;
  	var uLocal_423 = 0;
  	var uLocal_424 = 0;
  	var uLocal_425 = 0;
  	var uLocal_426 = 0;
  	var uLocal_427 = 50;
  	var uLocal_428 = 0;
  	var uLocal_429 = 0;
  	var uLocal_430 = 0;
  	var uLocal_431 = 0;
  	var uLocal_432 = 0;
  	var uLocal_433 = 0;
  	var uLocal_434 = 0;
  	var uLocal_435 = 0;
  	var uLocal_436 = 0;
  	var uLocal_437 = 0;
  	var uLocal_438 = 0;
  	var uLocal_439 = 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 = 20;
  	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 = 17;
  	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 = 17;
  	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 = 12;
  	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 = 12;
  	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 = 12;
  	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 = 9;
  	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 = 9;
  	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;
  	int iLocal_616 = 0;
  	int iLocal_617 = 0;
  	int iLocal_618 = 0;
  	int iLocal_619 = 0;
  	int iLocal_620 = 0;
  	var uLocal_621 = 0;
  	int iLocal_622[4] = { 0, 0, 0, 0 };
  	int iLocal_627[4] = { 0, 0, 0, 0 };
  	int iLocal_632[4] = { 0, 0, 0, 0 };
  	int iLocal_637 = 0;
  	int iLocal_638 = 0;
  	int iLocal_639 = 0;
  	int iLocal_640 = 0;
  	int iLocal_641 = 0;
  	int iLocal_642 = 0;
  	float fLocal_643 = 0f;
  	float fLocal_644 = 0f;
  	float fLocal_645 = 0f;
  	float fLocal_646 = 0f;
  	int iLocal_647 = 0;
  	int iLocal_648 = 0;
  	int iLocal_649 = 0;
  	int iLocal_650 = 0;
  	int* iLocal_651 = NULL;
  	int iLocal_652 = 0;
  	int iLocal_653 = 0;
  	int iLocal_654 = 0;
  	int iLocal_655 = 0;
  	int iLocal_656 = 0;
  	var uLocal_657 = 16;
  	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;
  #endregion
  
  void __EntryFunction__()
  {
  	iLocal_2 = 1;
  	iLocal_3 = 134;
  	iLocal_4 = 134;
  	iLocal_5 = 1;
  	iLocal_6 = 1;
  	iLocal_7 = 1;
  	iLocal_8 = 134;
  	iLocal_9 = 1;
  	iLocal_10 = 12;
  	iLocal_11 = 12;
  	fLocal_14 = 0.001f;
  	iLocal_17 = -1;
  	sLocal_20 = "NULL";
  	fLocal_21 = 0f;
  	fLocal_25 = -0.0375f;
  	fLocal_26 = 0.17f;
  	fLocal_30 = 80f;
  	fLocal_31 = 140f;
  	fLocal_32 = 180f;
  	iLocal_35 = 3;
  	iLocal_39 = 1;
  	iLocal_40 = 65;
  	iLocal_41 = 49;
  	iLocal_42 = 64;
  	iLocal_46 = -1;
  	iLocal_47 = -1;
  	iLocal_49 = -1;
  	fLocal_210 = ((0.05f + 0.275f) - 0.01f);
  	iLocal_251 = 1;
  	iLocal_618 = -1;
  	iLocal_637 = -1;
  	iLocal_638 = 2000;
  	iLocal_642 = 2000000;
  	fLocal_643 = 0f;
  	fLocal_644 = 0f;
  	fLocal_645 = 0f;
  	fLocal_646 = 0f;
  	iLocal_654 = -1;
  	if (SCRIPT::_GET_NUMBER_OF_REFERENCES_OF_SCRIPT_WITH_NAME_HASH(MISC::GET_HASH_KEY("appImportExport")) > 1)
  	{
  		func_408(1, 0);
  	}
  	iLocal_639 = GRAPHICS::REQUEST_SCALEFORM_MOVIE("IMPORT_EXPORT_WAREHOUSE");
  	func_405(1);
  	func_403(1);
  	func_402();
  	HUD::THEFEED_PAUSE();
  	while (!GRAPHICS::HAS_SCALEFORM_MOVIE_LOADED(iLocal_639))
  	{
  		SYSTEM::WAIT(0);
  	}
  	Global_76650 = 1;
  	Global_75128 = 0;
  	if (func_401(PLAYER::PLAYER_ID()))
  	{
  		uLocal_621 = func_399(PLAYER::PLAYER_ID());
  	}
  	Global_1946899 = 0;
  	func_387(PLAYER::PLAYER_ID(), 0, 0, 0);
  	func_386();
  	func_379();
  	if (MISC::IS_PC_VERSION())
  	{
  		func_378(1, 1, 1, 1);
  	}
  	func_377();
  	if (func_376())
  	{
  		MISC::SET_BIT(&iLocal_620, 1);
  	}
  	if (func_375())
  	{
  		MISC::SET_BIT(&iLocal_620, 3);
  	}
  	func_372();
  	AUDIO::START_AUDIO_SCENE("GTAO_Computer_Screen_Active_Scene");
  	while (Global_76650)
  	{
  		if (MISC::IS_BIT_SET(Global_1853128[PLAYER::PLAYER_ID() /*888*/].f_267.f_28, 14))
  		{
  			func_408(0, 1);
  		}
  		else if (HUD::IS_PAUSE_MENU_ACTIVE())
  		{
  			if (iLocal_656 == 0)
  			{
  				func_408(0, 1);
  			}
  		}
  		else if (!NETWORK::NETWORK_IS_GAME_IN_PROGRESS())
  		{
  			func_408(0, 1);
  		}
  		else if (ENTITY::IS_ENTITY_DEAD(PLAYER::PLAYER_PED_ID(), false))
  		{
  			func_408(0, 1);
  		}
  		else if (!func_401(PLAYER::PLAYER_ID()) && !func_371())
  		{
  			if (func_370("IEAPPINPUTTRIG") || func_370("IEAPPINPUTTRPC"))
  			{
  				HUD::CLEAR_HELP(true);
  			}
  			func_408(0, 1);
  		}
  		switch (iLocal_656)
  		{
  			case 0:
  				func_358();
  				if (!MISC::IS_BIT_SET(iLocal_620, 3))
  				{
  					func_355();
  					func_332();
  				}
  				if (!MISC::IS_BIT_SET(iLocal_620, 1))
  				{
  					func_324();
  				}
  				if (!iLocal_616)
  				{
  					func_319();
  					func_259();
  				}
  				else if (func_258(PLAYER::PLAYER_ID()) && NETWORK::NETWORK_IS_PLAYER_IN_MP_CUTSCENE(PLAYER::PLAYER_ID()))
  				{
  					iLocal_656 = 1;
  					if (MISC::IS_PC_VERSION())
  					{
  						func_378(0, 1, 1, 1);
  					}
  				}
  				break;
  			
  			case 1:
  				func_256();
  				if (!func_255(&uLocal_822))
  				{
  					func_254(&uLocal_822, 0, 0);
  				}
  				else if (func_253(&uLocal_822, 301000, 0))
  				{
  					Global_1946899 = 0;
  					func_408(0, 1);
  				}
  				if (func_252(PLAYER::PLAYER_ID()))
  				{
  					iLocal_656 = 2;
  					func_251(&uLocal_822);
  				}
  				else if (!func_258(PLAYER::PLAYER_ID()))
  				{
  					Global_1946899 = 0;
  					func_408(0, 1);
  				}
  				break;
  			
  			case 2:
  				if (func_78(func_250(), 1))
  				{
  					func_4();
  					while (func_1(PLAYER::PLAYER_ID()))
  					{
  						SYSTEM::WAIT(0);
  					}
  					func_408(0, 0);
  				}
  				else if (iLocal_618 == 17)
  				{
  					Global_1946919 = 0;
  				}
  				else
  				{
  					Global_1946919 = 1;
  				}
  				func_408(0, 1);
  				break;
  		}
  		SYSTEM::WAIT(0);
  	}
  }
  
  int func_1(int iParam0)
  {
  	if (iParam0 != func_3())
  	{
  		if (func_2(iParam0, 1, 1))
  		{
  			return Global_2689156[iParam0 /*453*/].f_319.f_6 != -1;
  		}
  		else if ((Global_1575046 && iParam0 == PLAYER::PLAYER_ID()) && func_2(iParam0, 1, 0))
  		{
  			return Global_2689156[iParam0 /*453*/].f_319.f_6 != -1;
  		}
  	}
  	return 0;
  }
  
  int func_2(int iParam0, bool bParam1, bool bParam2)
  {
  	int iVar0;
  	
  	iVar0 = iParam0;
  	if (iVar0 != -1)
  	{
  		if (NETWORK::NETWORK_IS_PLAYER_ACTIVE(iParam0))
  		{
  			if (bParam1)
  			{
  				if (!PLAYER::IS_PLAYER_PLAYING(iParam0))
  				{
  					return 0;
  				}
  			}
  			if (bParam2)
  			{
  				if (!Global_2703656.f_3[iVar0])
  				{
  					return 0;
  				}
  			}
  			return 1;
  		}
  	}
  	return 0;
  }
  
  int func_3()
  {
  	return -1;
  }
  
  void func_4()
  {
  	int iVar0;
  	var uVar1[4];
  	bool bVar6;
  	
  	bVar6 = func_250();
  	MISC::CLEAR_BIT(&(Global_1946934.f_4), 5);
  	iVar0 = 0;
  	while (iVar0 < 4)
  	{
  		if (bVar6)
  		{
  			uVar1[iVar0] = iLocal_627[iVar0];
  		}
  		else
  		{
  			uVar1[iVar0] = iLocal_622[iVar0];
  		}
  		iVar0++;
  	}
  	if (iLocal_637 == 0 || func_250())
  	{
  		func_77(PLAYER::PLAYER_ID(), 1);
  	}
  	if (func_68(iLocal_637, func_76(bVar6), bVar6))
  	{
  		func_49(188, uVar1[0], uVar1[1], uVar1[2], uVar1[3], 0);
  		func_11(&uVar1);
  		if (Global_75128)
  		{
  			iVar0 = 0;
  			while (iVar0 < 4)
  			{
  				Global_1893548[PLAYER::PLAYER_ID() /*600*/].f_11.f_332[iVar0] = -1;
  				iVar0++;
  			}
  		}
  		else
  		{
  			func_5();
  		}
  	}
  }
  
  void func_5()
  {
  	int iVar0;
  	
  	iVar0 = func_9();
  	iVar0++;
  	func_6(5330, iVar0, -1, 1, 0);
  }
  
  void func_6(int iParam0, int iParam1, int iParam2, bool bParam3, bool bParam4)
  {
  	int iVar0;
  	
  	if (bParam4)
  	{
  	}
  	iVar0 = Global_2821895[iParam0 /*3*/][func_7(iParam2)];
  	if (iVar0 != 0)
  	{
  		STATS::STAT_SET_INT(iVar0, iParam1, bParam3);
  	}
  }
  
  int func_7(var uParam0)
  {
  	int iVar0;
  	int iVar1;
  	
  	iVar0 = uParam0;
  	if (iVar0 == -1)
  	{
  		iVar1 = func_8();
  		if (iVar1 > -1)
  		{
  			Global_2821607 = 0;
  			iVar0 = iVar1;
  		}
  		else
  		{
  			iVar0 = 0;
  			Global_2821607 = 1;
  		}
  	}
  	return iVar0;
  }
  
  int func_8()
  {
  	return Global_1574907;
  }
  
  int func_9()
  {
  	return func_10(5330, -1, 0);
  }
  
  int func_10(int iParam0, int iParam1, int iParam2)
  {
  	int iVar0;
  	var uVar1;
  	
  	if (iParam0 != 12597)
  	{
  		if (iParam2 == 0)
  		{
  		}
  		iVar0 = Global_2821895[iParam0 /*3*/][func_7(iParam1)];
  		if (STATS::STAT_GET_INT(iVar0, &uVar1, -1))
  		{
  			return uVar1;
  		}
  	}
  	return 0;
  }
  
  void func_11(var uParam0)
  {
  	int iVar0;
  	int iVar1[4];
  	int iVar6[4];
  	int iVar11;
  	
  	iVar0 = 0;
  	while (iVar0 < 4)
  	{
  		if ((*uParam0)[iVar0] == 0)
  		{
  			iVar6[iVar0] = 0;
  			iVar1[iVar0] = -1;
  		}
  		else
  		{
  			iVar6[iVar0] = 0;
  			iVar1[iVar0] = func_48((*uParam0)[iVar0]);
  		}
  		iVar0++;
  	}
  	if (func_47())
  	{
  		while (!func_28(&iVar1, &iVar6, &iVar11))
  		{
  			SYSTEM::WAIT(0);
  		}
  		if (iVar11 == 2)
  		{
  			func_12(uParam0);
  		}
  		else
  		{
  			Global_75128 = 1;
  		}
  	}
  	else
  	{
  		func_12(uParam0);
  	}
  }
  
  void func_12(var uParam0)
  {
  	int iVar0;
  	int iVar1;
  	int iVar2;
  	
  	iVar0 = 0;
  	while (iVar0 < *uParam0)
  	{
  		iVar1 = (*uParam0)[iVar0];
  		if (iVar1 != 0)
  		{
  			func_26(iVar1);
  			func_25(iVar1);
  			func_17(iVar1);
  			iVar2 = (Global_1853128[PLAYER::PLAYER_ID() /*888*/].f_267.f_138.f_1 - 1);
  			if (iVar2 >= 0)
  			{
  				func_16(iVar2);
  			}
  		}
  		iVar0++;
  	}
  	if (!func_47())
  	{
  		func_13(-1558535687, 10, 0);
  	}
  }
  
  void func_13(int iParam0, int iParam1, int iParam2)
  {
  	int iVar0;
  	
  	if (func_15(iParam1, iParam2))
  	{
  		iVar0 = func_14();
  		Global_2725118[iVar0] = iParam1;
  		Global_2725129[iVar0] = iParam0;
  	}
  }
  
  int func_14()
  {
  	int iVar0;
  	int iVar1;
  	
  	iVar0 = 9;
  	iVar1 = 0;
  	while (iVar1 <= 9)
  	{
  		if (Global_2725118[iVar1] == 0)
  		{
  			iVar0 = iVar1;
  			iVar1 = 10;
  		}
  		iVar1++;
  	}
  	return iVar0;
  }
  
  int func_15(int iParam0, var uParam1)
  {
  	if (Global_1575034)
  	{
  		return 0;
  	}
  	if (iParam0 == 22)
  	{
  		return 1;
  	}
  	if ((((((((uParam1 || !Global_1575046) || iParam0 == 3) || iParam0 == 10) || iParam0 == 11) || iParam0 == 27) || iParam0 == 28) || iParam0 == 29) || iParam0 == 30)
  	{
  		return 1;
  	}
  	else
  	{
  		return 0;
  	}
  	return 1;
  }
  
  void func_16(int iParam0)
  {
  	if (iParam0 >= 0 && iParam0 <= 40)
  	{
  		Global_1853128[PLAYER::PLAYER_ID() /*888*/].f_267.f_138.f_1 = iParam0;
  	}
  }
  
  void func_17(int iParam0)
  {
  	int iVar0;
  	
  	iVar0 = 0;
  	while (iVar0 < 40)
  	{
  		if (func_23(func_24(iVar0), -1) == iParam0)
  		{
  			func_22(func_24(iVar0), 0, -1);
  		}
  		else
  		{
  			iVar0++;
  		}
  	}
  	func_18();
  }
  
  void func_18()
  {
  	int iVar0;
  	int iVar1;
  	int iVar2[40];
  	int iVar43[4];
  	
  	iVar1 = 0;
  	while (iVar1 < 40)
  	{
  		iVar2[iVar1] = func_23(func_24(iVar1), -1);
  		if ((iVar2[iVar1] / 32) < iVar43)
  		{
  			if (!MISC::IS_BIT_SET(iVar43[(iVar2[iVar1] / 32)], (iVar2[iVar1] % 32)))
  			{
  				MISC::SET_BIT(&(iVar43[(iVar2[iVar1] / 32)]), (iVar2[iVar1] % 32));
  			}
  			else if (iVar2[iVar1] != 0)
  			{
  				iVar2[iVar1] = 0;
  			}
  		}
  		else
  		{
  			iVar2[iVar1] = 0;
  		}
  		iVar1++;
  	}
  	iVar1 = 0;
  	while (iVar1 < 39)
  	{
  		if (iVar2[iVar1] == 0 || !func_19(PLAYER::PLAYER_ID(), iVar2[iVar1]))
  		{
  			iVar0 = iVar1;
  			while (iVar0 <= 38)
  			{
  				iVar2[iVar0] = iVar2[iVar0 + 1];
  				iVar2[iVar0 + 1] = 0;
  				iVar0++;
  			}
  		}
  		iVar1++;
  	}
  	iVar1 = 0;
  	while (iVar1 < 40)
  	{
  		func_22(func_24(iVar1), iVar2[iVar1], -1);
  		iVar1++;
  	}
  }
  
  int func_19(int iParam0, int iParam1)
  {
  	int iVar0;
  	
  	if (func_20(iParam0))
  	{
  		iVar0 = 0;
  		while (iVar0 < 40)
  		{
  			if (Global_1853128[iParam0 /*888*/].f_267.f_138.f_2[iVar0] == iParam1 || Global_1853128[iParam0 /*888*/].f_267.f_138.f_2[iVar0] == (1000 + iParam1))
  			{
  				return 1;
  			}
  			iVar0++;
  		}
  	}
  	return 0;
  }
  
  bool func_20(int iParam0)
  {
  	return func_21(iParam0) != 0;
  }
  
  int func_21(int iParam0)
  {
  	if (iParam0 == func_3())
  	{
  		return 0;
  	}
  	return Global_1853128[iParam0 /*888*/].f_267.f_138;
  }
  
  void func_22(int iParam0, int iParam1, int iParam2)
  {
  	if (iParam2 == -1)
  	{
  		iParam2 = func_8();
  	}
  	if (iParam1 < 0)
  	{
  		iParam1 = 255;
  	}
  	STATS::_SET_PACKED_STAT_INT(iParam0, iParam1, iParam2);
  }
  
  int func_23(int iParam0, int iParam1)
  {
  	if (iParam1 == -1)
  	{
  		iParam1 = func_8();
  	}
  	return STATS::_GET_PACKED_STAT_INT(iParam0, iParam1);
  }
  
  int func_24(int iParam0)
  {
  	switch (iParam0)
  	{
  		case 0:
  			return 15224;
  		
  		case 1:
  			return 15225;
  		
  		case 2:
  			return 15226;
  		
  		case 3:
  			return 15227;
  		
  		case 4:
  			return 15228;
  		
  		case 5:
  			return 15229;
  		
  		case 6:
  			return 15230;
  		
  		case 7:
  			return 15231;
  		
  		case 8:
  			return 15232;
  		
  		case 9:
  			return 15233;
  		
  		case 10:
  			return 15234;
  		
  		case 11:
  			return 15235;
  		
  		case 12:
  			return 15236;
  		
  		case 13:
  			return 15237;
  		
  		case 14:
  			return 15238;
  		
  		case 15:
  			return 15239;
  		
  		case 16:
  			return 15240;
  		
  		case 17:
  			return 15241;
  		
  		case 18:
  			return 15242;
  		
  		case 19:
  			return 15243;
  		
  		case 20:
  			return 15244;
  		
  		case 21:
  			return 15245;
  		
  		case 22:
  			return 15246;
  		
  		case 23:
  			return 15247;
  		
  		case 24:
  			return 15248;
  		
  		case 25:
  			return 15249;
  		
  		case 26:
  			return 15250;
  		
  		case 27:
  			return 15251;
  		
  		case 28:
  			return 15252;
  		
  		case 29:
  			return 15253;
  		
  		case 30:
  			return 15254;
  		
  		case 31:
  			return 15255;
  		
  		case 32:
  			return 15256;
  		
  		case 33:
  			return 15257;
  		
  		case 34:
  			return 15258;
  		
  		case 35:
  			return 15259;
  		
  		case 36:
  			return 15260;
  		
  		case 37:
  			return 15261;
  		
  		case 38:
  			return 15262;
  		
  		case 39:
  			return 15263;
  		
  		default:
  	}
  	return 15224;
  }
  
  void func_25(int iParam0)
  {
  	int iVar0;
  	
  	iVar0 = 0;
  	while (iVar0 < 40)
  	{
  		if (Global_1853128[PLAYER::PLAYER_ID() /*888*/].f_267.f_138.f_2[iVar0] == iParam0 || Global_1853128[PLAYER::PLAYER_ID() /*888*/].f_267.f_138.f_2[iVar0] == (1000 + iParam0))
  		{
  			Global_1853128[PLAYER::PLAYER_ID() /*888*/].f_267.f_138.f_2[iVar0] = 0;
  		}
  		else
  		{
  			iVar0++;
  		}
  	}
  }
  
  void func_26(int iParam0)
  {
  	int iVar0;
  	
  	iVar0 = 0;
  	while (iVar0 < 40)
  	{
  		if (func_10(func_27(iVar0), -1, 0) == iParam0)
  		{
  			func_6(func_27(iVar0), 0, -1, 1, 0);
  		}
  		else
  		{
  			iVar0++;
  		}
  	}
  }
  
  int func_27(int iParam0)
  {
  	switch (iParam0)
  	{
  		case 0:
  			return 3979;
  		
  		case 1:
  			return 3980;
  		
  		case 2:
  			return 3981;
  		
  		case 3:
  			return 3982;
  		
  		case 4:
  			return 3983;
  		
  		case 5:
  			return 3984;
  		
  		case 6:
  			return 3985;
  		
  		case 7:
  			return 3986;
  		
  		case 8:
  			return 3987;
  		
  		case 9:
  			return 3988;
  		
  		case 10:
  			return 3989;
  		
  		case 11:
  			return 3990;
  		
  		case 12:
  			return 3991;
  		
  		case 13:
  			return 3992;
  		
  		case 14:
  			return 3993;
  		
  		case 15:
  			return 3994;
  		
  		case 16:
  			return 3995;
  		
  		case 17:
  			return 3996;
  		
  		case 18:
  			return 3997;
  		
  		case 19:
  			return 3998;
  		
  		case 20:
  			return 3999;
  		
  		case 21:
  			return 4000;
  		
  		case 22:
  			return 4001;
  		
  		case 23:
  			return 4002;
  		
  		case 24:
  			return 4003;
  		
  		case 25:
  			return 4004;
  		
  		case 26:
  			return 4005;
  		
  		case 27:
  			return 4006;
  		
  		case 28:
  			return 4007;
  		
  		case 29:
  			return 4008;
  		
  		case 30:
  			return 4009;
  		
  		case 31:
  			return 4010;
  		
  		case 32:
  			return 4011;
  		
  		case 33:
  			return 4012;
  		
  		case 34:
  			return 4013;
  		
  		case 35:
  			return 4014;
  		
  		case 36:
  			return 4015;
  		
  		case 37:
  			return 4016;
  		
  		case 38:
  			return 4017;
  		
  		case 39:
  			return 4018;
  		
  		default:
  	}
  	return 3979;
  }
  
  bool func_28(int iParam0, int iParam1, var uParam2)
  {
  	int iVar0;
  	int iVar1;
  	
  	if (*uParam2 != 0 && *uParam2 != 1)
  	{
  		*uParam2 = 0;
  	}
  	if (*iParam0 != *iParam1 || *iParam0 > 70)
  	{
  		*uParam2 = 3;
  		return 1;
  	}
  	switch (*uParam2)
  	{
  		case 0:
  			iVar0 = 0;
  			while (iVar0 < *iParam1)
  			{
  				if ((*iParam0)[iVar0] != -1)
  				{
  					if ((*iParam1)[iVar0] > 0)
  					{
  					}
  					else if ((*iParam1)[iVar0] == 0)
  					{
  					}
  					else
  					{
  						(*iParam1)[iVar0] = 0;
  					}
  					iVar1 = func_46((*iParam0)[iVar0]);
  					if (func_42(78225582, -1494913648, iVar1, -716644653, (*iParam1)[iVar0], 0, 0, 4, 0, 3))
  					{
  						*uParam2 = 1;
  					}
  					else
  					{
  						*uParam2 = 3;
  					}
  				}
  				iVar0++;
  			}
  			if (*uParam2 == 1 && func_37())
  			{
  			}
  			else
  			{
  				*uParam2 = 3;
  				func_31(func_35());
  			}
  			break;
  		
  		case 1:
  			if (func_30(func_35()))
  			{
  				if (func_29(func_35()) == 2)
  				{
  					*uParam2 = 2;
  					func_31(func_35());
  				}
  				else
  				{
  					*uParam2 = 3;
  					func_31(func_35());
  				}
  			}
  			break;
  	}
  	return *uParam2 != 1;
  }
  
  int func_29(int iParam0)
  {
  	if (iParam0 >= 0 && iParam0 < 15)
  	{
  		return Global_4528329[iParam0 /*85*/].f_66.f_2;
  	}
  	return 0;
  }
  
  int func_30(int iParam0)
  {
  	if (iParam0 >= 0 && iParam0 < 15)
  	{
  		return Global_4528329[iParam0 /*85*/].f_66.f_2 != 1;
  	}
  	return 0;
  }
  
  void func_31(int iParam0)
  {
  	bool bVar0;
  	
  	bVar0 = false;
  	if (!func_47())
  	{
  		bVar0 = true;
  	}
  	if (iParam0 != -1)
  	{
  		if (func_34(iParam0))
  		{
  			if (!bVar0)
  			{
  				NETSHOPPING::_NET_GAMESERVER_BASKET_DELETE();
  			}
  		}
  		else if (!bVar0)
  		{
  			NETSHOPPING::NET_GAMESERVER_END_SERVICE(Global_4528329[iParam0 /*85*/].f_66);
  		}
  		func_32(&(Global_4528329[iParam0 /*85*/]));
  	}
  }
  
  void func_32(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_33(&(uParam0->f_14));
  	func_33(&(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_33(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_34(int iParam0)
  {
  	if (iParam0 >= 0 && iParam0 < 15)
  	{
  		return Global_4528329[iParam0 /*85*/].f_66.f_5 == 1;
  	}
  	return 0;
  }
  
  int func_35()
  {
  	int iVar0;
  	
  	iVar0 = 0;
  	iVar0 = 0;
  	while (iVar0 < 15)
  	{
  		if (func_36(iVar0) != 2147483647)
  		{
  			if (func_34(iVar0))
  			{
  				return iVar0;
  			}
  		}
  		iVar0++;
  	}
  	return -1;
  }
  
  int func_36(int iParam0)
  {
  	if (iParam0 >= 0 && iParam0 < 15)
  	{
  		return Global_4528329[iParam0 /*85*/].f_66;
  	}
  	return -1;
  }
  
  int func_37()
  {
  	bool bVar0;
  	int iVar1;
  	int iVar2;
  	int iVar3;
  	
  	bVar0 = false;
  	if (!func_47())
  	{
  		bVar0 = true;
  	}
  	iVar1 = 1;
  	iVar2 = func_35();
  	if (iVar2 == -1)
  	{
  		return 0;
  	}
  	if (!bVar0)
  	{
  		if (!NETSHOPPING::NET_GAMESERVER_IS_SESSION_VALID(func_8()) || NETSHOPPING::NET_GAMESERVER_IS_SESSION_REFRESH_PENDING())
  		{
  			if (func_41(Global_4528329[iVar2 /*85*/].f_66.f_6, Global_4528329[iVar2 /*85*/].f_66.f_4, Global_4528329[iVar2 /*85*/].f_66.f_1) == 1)
  			{
  				Global_4529831 = 1;
  			}
  			return 0;
  		}
  		if (Global_2726388)
  		{
  			if (Global_4528329[iVar2 /*85*/].f_66.f_6 == 1067618600 || Global_4528329[iVar2 /*85*/].f_66.f_6 == -1303831698)
  			{
  				Global_4529832 = 1;
  				return 0;
  			}
  		}
  	}
  	iVar3 = func_36(iVar2);
  	if (iVar3 != 2147483647)
  	{
  		if ((bVar0 || iVar1) || NETSHOPPING::NET_GAMESERVER_CHECKOUT_START(iVar3))
  		{
  			Global_4528329[iVar2 /*85*/].f_66.f_13 = 1;
  			Global_4528329[iVar2 /*85*/].f_66.f_12 = 0;
  			Global_4528329[iVar2 /*85*/].f_66.f_14 = MISC::GET_FRAME_COUNT();
  			if (bVar0)
  			{
  				Global_4528329[iVar2 /*85*/].f_66.f_8 = 1;
  				Global_4528329[iVar2 /*85*/].f_66.f_12 = 1;
  			}
  			Global_4528329[iVar2 /*85*/].f_66.f_18 = 0;
  			if (bVar0 || iVar1)
  			{
  				func_38(Global_4528329[iVar2 /*85*/], iVar2);
  			}
  			Global_4529816 = 1;
  			return 1;
  		}
  	}
  	return 0;
  }
  
  void func_38(struct<67> Param0, var uParam67, var uParam68, var uParam69, var uParam70, var uParam71, var uParam72, var uParam73, var uParam74, var uParam75, var uParam76, var uParam77, var uParam78, var uParam79, var uParam80, var uParam81, var uParam82, var uParam83, var uParam84, int iParam85)
  {
  	struct<3> Var0;
  	int iVar36;
  	
  	if (iParam85 < 0)
  	{
  		return;
  	}
  	Var0.f_2 = 2147483647;
  	Var0.f_0 = -1141953949;
  	Var0.f_1 = PLAYER::PLAYER_ID();
  	Var0.f_2 = { Param0.f_66 };
  	Var0.f_2.f_33 = iParam85;
  	iVar36 = func_40(Var0.f_1);
  	if ((Global_262145.f_23844 && !Global_262145.f_23845) && !Global_262145.f_23846)
  	{
  		return;
  	}
  	if (!iVar36 == 0)
  	{
  		func_39();
  		SCRIPT::_TRIGGER_SCRIPT_EVENT_2(1, &Var0, 36, iVar36);
  	}
  }
  
  void func_39()
  {
  	SCRIPT::REQUEST_SCRIPT("AM_ARENA_SHP");
  }
  
  var func_40(int iParam0)
  {
  	var uVar0;
  	
  	if (iParam0 != -1)
  	{
  		MISC::SET_BIT(&uVar0, iParam0);
  	}
  	return uVar0;
  }
  
  int func_41(int iParam0, int iParam1, int iParam2)
  {
  	if (iParam0 == -433440095 || iParam0 == 1474183246)
  	{
  		switch (iParam1)
  		{
  			case 1940862352:
  				if (iParam2 >= 10000)
  				{
  					return 1;
  				}
  				else
  				{
  					return 0;
  				}
  				break;
  			
  			case -31156877:
  			case -327918414:
  			case 550898518:
  			case 835976347:
  			case 1347433368:
  			case -1100963799:
  				if (iParam2 >= 1000)
  				{
  					return 1;
  				}
  				else
  				{
  					return 2;
  				}
  				break;
  			
  			case 1982688246:
  				return 0;
  				break;
  			
  			case 1718438689:
  			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 -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 -664597565:
  			case 599804707:
  			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 443347049:
  			case 403506509:
  			case -883876414:
  			case -1064150715:
  			case -1387253055:
  			case -716963152:
  			case 1138089938:
  			case -561012053:
  			case 1240683675:
  			case 1241904665:
  			case -494565059:
  			case 827308208:
  			case -1857685192:
  			case 1698417709:
  			case -2017925037:
  			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 1668610896:
  			case -2032529561:
  				return 1;
  				break;
  			
  			case 1515774909:
  			case 1173654533:
  			case -899802304:
  			case -663944335:
  			case 1208553146:
  			case -613221010:
  			case -671062876:
  			case 291576838:
  			case -1276678868:
  			case 711665950:
  			case -407201236:
  			case -754024203:
  			case -1885444887:
  			case 1931729587:
  			case 1064954035:
  			case -180141073:
  			case 2131324797:
  			case 283351220:
  			case 1108628223:
  			case -876847842:
  			case 68030260:
  				return 2;
  				break;
  			
  			default:
  				return 0;
  				break;
  		}
  		switch (iParam1)
  		{
  			case -319306689:
  			case -466527264:
  			case 1925965142:
  			case 592152676:
  			case 2035612943:
  			case 1568659720:
  			case -1224479447:
  			case 1220095570:
  			case 2050320631:
  			case 592672421:
  			case -842062976:
  			case 14658715:
  			case -604793592:
  			case -823426392:
  			case -1401862980:
  			case -173354274:
  			case 409533976:
  			case -1472522337:
  			case 542574408:
  			case -1261799063:
  			case 784631574:
  			case -2027479156:
  			case -837690641:
  			case -1029672338:
  			case -1503749970:
  			case -1843409092:
  			case 1669058563:
  			case 2102747615:
  			case 2030771998:
  			case 1708747007:
  			case 645293860:
  			case -818859193:
  			case 300796227:
  			case -1999832346:
  			case 1058055395:
  			case -321151125:
  			case 2078731875:
  			case 1280785534:
  			case -1878824774:
  			case 247992227:
  			case -229237358:
  			case -1123183389:
  			case 1814197076:
  			case 713955548:
  			case -2026544524:
  			case -719580138:
  			case -163417439:
  			case -550417574:
  				return 1;
  				break;
  			
  			case 1775876058:
  			case -518651910:
  				return 2;
  				break;
  		}
  	}
  	else if ((iParam0 == -1134853190 || iParam0 == 925407197) || iParam0 == -1589378882)
  	{
  		return 0;
  	}
  	return 1;
  }
  
  int func_42(int iParam0, int iParam1, int iParam2, int iParam3, int iParam4, int iParam5, int iParam6, int iParam7, int iParam8, int iParam9)
  {
  	bool bVar0;
  	int iVar1;
  	struct<4> Var2;
  	
  	bVar0 = false;
  	if (!func_47())
  	{
  		bVar0 = true;
  	}
  	if (!bVar0)
  	{
  		if (!NETSHOPPING::NET_GAMESERVER_IS_SESSION_VALID(func_8()) || NETSHOPPING::NET_GAMESERVER_IS_SESSION_REFRESH_PENDING())
  		{
  			Global_4529831 = 1;
  			return 0;
  		}
  		if (Global_2726388)
  		{
  			if (iParam1 == 1067618600 || iParam1 == -1303831698)
  			{
  				Global_4529832 = 1;
  				return 0;
  			}
  		}
  	}
  	if (iParam2 == 0)
  	{
  		return 0;
  	}
  	iVar1 = func_35();
  	if (iVar1 == -1)
  	{
  		if (!func_44(&iVar1, iParam0, iParam1, iParam3, iParam7, iParam9))
  		{
  			return 0;
  		}
  	}
  	if (iVar1 != -1)
  	{
  		if (iParam8 != 0 && func_43(iParam1))
  		{
  			Var2.f_0 = iParam8;
  			Var2.f_1 = iParam2;
  			Var2.f_2 = iParam5;
  			Var2.f_3 = iParam6;
  		}
  		else
  		{
  			Var2.f_0 = iParam2;
  			Var2.f_1 = iParam8;
  			Var2.f_2 = iParam5;
  			Var2.f_3 = iParam6;
  		}
  		Global_4528329[iVar1 /*85*/].f_66.f_1 = Var2.f_2;
  		Global_4528329[iVar1 /*85*/].f_66.f_15 = Var2.f_0;
  		Global_4528329[iVar1 /*85*/].f_66.f_16 = Var2.f_1;
  		if (bVar0 || NETSHOPPING::NET_GAMESERVER_BASKET_ADD_ITEM(&Var2, iParam4))
  		{
  			return 1;
  		}
  	}
  	return 0;
  }
  
  int func_43(int iParam0)
  {
  	switch (iParam0)
  	{
  		case -221807075:
  		case -1224924353:
  		case -2121967344:
  		case 1394405165:
  		case -2052814106:
  		case 1701289268:
  		case -1796535835:
  		case -1928802392:
  		case 581564040:
  		case 23048035:
  		case 2117376854:
  		case -1377881127:
  		case -504675202:
  		case 1906937290:
  		case -1616616027:
  		case -1799524201:
  		case 269396419:
  		case 69656641:
  		case -103880010:
  		case -1494913648:
  			return 1;
  			break;
  	}
  	return 0;
  }
  
  int func_44(int iParam0, int iParam1, int iParam2, int iParam3, int iParam4, var uParam5)
  {
  	bool bVar0;
  	int iVar1;
  	bool bVar2;
  	var uVar3;
  	
  	bVar0 = false;
  	if (!func_47())
  	{
  		bVar0 = true;
  	}
  	if (!bVar0)
  	{
  		if (!NETSHOPPING::NET_GAMESERVER_IS_SESSION_VALID(func_8()) || NETSHOPPING::NET_GAMESERVER_IS_SESSION_REFRESH_PENDING())
  		{
  			Global_4529831 = 1;
  			return 0;
  		}
  		if (Global_2726388)
  		{
  			if (iParam2 == 1067618600 || iParam2 == -1303831698)
  			{
  				Global_4529832 = 1;
  				return 0;
  			}
  		}
  	}
  	bVar2 = false;
  	iVar1 = 0;
  	while (iVar1 < 15)
  	{
  		if (Global_4528329[iVar1 /*85*/].f_66.f_2 == 0)
  		{
  			bVar2 = true;
  		}
  		else if (Global_4528329[iVar1 /*85*/].f_66.f_5 == 1)
  		{
  			return 0;
  		}
  		iVar1++;
  	}
  	if (!bVar2)
  	{
  		return 0;
  	}
  	*iParam0 = 0;
  	if (!bVar0)
  	{
  		if (NETSHOPPING::NET_GAMESERVER_BASKET_END())
  		{
  			NETSHOPPING::_NET_GAMESERVER_BASKET_DELETE();
  		}
  	}
  	if (bVar0 || NETSHOPPING::NET_GAMESERVER_BASKET_START(&uVar3, iParam2, iParam3, iParam4))
  	{
  		*iParam0 = func_45(uVar3, iParam1, -2085313189, iParam3, iParam2, 0, 1, iParam4, uParam5, 0, bVar0);
  		return 1;
  	}
  	return 0;
  }
  
  int func_45(var uParam0, int iParam1, int iParam2, int iParam3, int iParam4, int iParam5, bool bParam6, int iParam7, var uParam8, int iParam9, bool bParam10)
  {
  	int iVar0;
  	
  	iVar0 = 0;
  	iVar0 = 0;
  	while (iVar0 < 15)
  	{
  		if (Global_4528329[iVar0 /*85*/].f_66.f_2 == 0)
  		{
  			if (!func_47())
  			{
  				uParam0 = iVar0 + 900;
  			}
  			Global_4528329[iVar0 /*85*/].f_66.f_2 = 1;
  			Global_4528329[iVar0 /*85*/].f_66.f_1 = iParam5;
  			Global_4528329[iVar0 /*85*/].f_66.f_3 = iParam1;
  			Global_4528329[iVar0 /*85*/].f_66.f_4 = iParam2;
  			Global_4528329[iVar0 /*85*/].f_66.f_7 = iParam3;
  			Global_4528329[iVar0 /*85*/].f_66.f_5 = 0;
  			Global_4528329[iVar0 /*85*/].f_66 = uParam0;
  			Global_4528329[iVar0 /*85*/].f_66.f_6 = iParam4;
  			Global_4528329[iVar0 /*85*/].f_66.f_11 = uParam8;
  			Global_4528329[iVar0 /*85*/].f_66.f_10 = iParam7;
  			Global_4528329[iVar0 /*85*/].f_66.f_13 = iParam9;
  			Global_4528329[iVar0 /*85*/].f_66.f_12 = 0;
  			Global_4528329[iVar0 /*85*/].f_66.f_14 = MISC::GET_FRAME_COUNT();
  			Global_4528329[iVar0 /*85*/].f_66.f_18 = 0;
  			Global_4529816 = 0;
  			if (bParam6)
  			{
  				Global_4528329[iVar0 /*85*/].f_66.f_5 = 1;
  			}
  			if (iParam1 == -1135378931 && bParam10)
  			{
  				func_38(Global_4528329[iVar0 /*85*/], iVar0);
  			}
  			return iVar0;
  		}
  		iVar0++;
  	}
  	return -1;
  }
  
  int func_46(int iParam0)
  {
  	char cVar0[64];
  	
  	StringCopy(&cVar0, "MP_STAT_IE_WH_OWNED_VEHICLE_", 64);
  	StringIntConCat(&cVar0, iParam0, 64);
  	StringConCat(&cVar0, "_v0", 64);
  	if (MISC::IS_STRING_NULL_OR_EMPTY(&cVar0))
  	{
  		return -1;
  	}
  	return MISC::GET_HASH_KEY(&cVar0);
  }
  
  int func_47()
  {
  	if (MISC::IS_PC_VERSION())
  	{
  		return NETSHOPPING::_NET_GAMESERVER_USE_SERVER_TRANSACTIONS();
  	}
  	return 0;
  }
  
  int func_48(int iParam0)
  {
  	int iVar0;
  	
  	iVar0 = 0;
  	while (iVar0 < 40)
  	{
  		if (Global_1853128[PLAYER::PLAYER_ID() /*888*/].f_267.f_138.f_2[iVar0] == iParam0 || Global_1853128[PLAYER::PLAYER_ID() /*888*/].f_267.f_138.f_2[iVar0] == (1000 + iParam0))
  		{
  			return iVar0;
  		}
  		iVar0++;
  	}
  	return -1;
  }
  
  void func_49(int iParam0, var uParam1, var uParam2, var uParam3, var uParam4, int iParam5)
  {
  	if (iParam0 != 178 && iParam0 != 188)
  	{
  	}
  	if (iParam0 == 188)
  	{
  		func_67(8);
  	}
  	func_66(uParam1, uParam2, uParam3, uParam4, iParam5);
  	func_50(iParam0, -1);
  }
  
  void func_50(int iParam0, int iParam1)
  {
  	if ((func_65() || !func_62(1)) || func_61(iParam0) == 3)
  	{
  		if (!func_59(PLAYER::PLAYER_ID(), 0) && !func_59(PLAYER::PLAYER_ID(), 3))
  		{
  			func_58(iParam0);
  			func_51(iParam0, func_55(1, 1), func_54(), func_53(), func_52(), iParam1);
  		}
  	}
  }
  
  void func_51(int iParam0, int iParam1, var uParam2, var uParam3, var uParam4, var uParam5)
  {
  	struct<7> Var0;
  	
  	Var0.f_0 = 985284033;
  	Var0.f_1 = PLAYER::PLAYER_ID();
  	Var0.f_2 = iParam0;
  	Var0.f_3 = uParam2;
  	Var0.f_4 = uParam3;
  	Var0.f_5 = uParam4;
  	Var0.f_6 = uParam5;
  	if (!iParam1 == 0)
  	{
  		SCRIPT::_TRIGGER_SCRIPT_EVENT_2(1, &Var0, 7, iParam1);
  	}
  }
  
  var func_52()
  {
  	return Global_2810287.f_5193.f_346;
  }
  
  var func_53()
  {
  	return Global_2810287.f_5193.f_345;
  }
  
  var func_54()
  {
  	return Global_2810287.f_5193.f_344;
  }
  
  int func_55(int iParam0, bool bParam1)
  {
  	var uVar0;
  	int iVar1;
  	int iVar2;
  	
  	iVar1 = 0;
  	while (iVar1 < 32)
  	{
  		iVar2 = PLAYER::INT_TO_PLAYERINDEX(iVar1);
  		if (func_2(iVar2, 0, 0))
  		{
  			if (iVar2 != PLAYER::PLAYER_ID() || iParam0)
  			{
  				if (bParam1)
  				{
  					MISC::SET_BIT(&uVar0, iVar1);
  				}
  				else if (!func_56(iVar2, 0))
  				{
  					MISC::SET_BIT(&uVar0, iVar1);
  				}
  			}
  		}
  		iVar1++;
  	}
  	return uVar0;
  }
  
  bool func_56(int iParam0, int iParam1)
  {
  	bool bVar0;
  	
  	if (iParam0 == PLAYER::PLAYER_ID())
  	{
  		bVar0 = func_57(-1, 0) == 8;
  	}
  	else
  	{
  		bVar0 = Global_1853128[iParam0 /*888*/].f_205 == 8;
  	}
  	if (iParam1 == 1)
  	{
  		if (NETWORK::NETWORK_IS_PLAYER_ACTIVE(iParam0))
  		{
  			bVar0 = PLAYER::GET_PLAYER_TEAM(iParam0) == 8;
  		}
  	}
  	return bVar0;
  }
  
  int func_57(int iParam0, bool bParam1)
  {
  	int iVar0;
  	int iVar1;
  	
  	iVar1 = iParam0;
  	if (iVar1 == -1)
  	{
  		iVar1 = func_8();
  	}
  	if (Global_1575026[iVar1] == 1)
  	{
  		if (bParam1)
  		{
  		}
  		iVar0 = 8;
  	}
  	else
  	{
  		iVar0 = Global_1574901[iVar1];
  		if (bParam1)
  		{
  		}
  	}
  	return iVar0;
  }
  
  void func_58(int iParam0)
  {
  	Global_1893548[PLAYER::PLAYER_ID() /*600*/].f_11.f_32 = iParam0;
  }
  
  int func_59(int iParam0, int iParam1)
  {
  	if (func_60(iParam0, 0))
  	{
  		return func_61(Global_1893548[iParam0 /*600*/].f_11.f_33) == iParam1;
  	}
  	return 0;
  }
  
  int func_60(int iParam0, int iParam1)
  {
  	if (Global_1893548[iParam0 /*600*/].f_11.f_33 != -1 || (iParam1 && Global_1893548[iParam0 /*600*/].f_11.f_32 != -1))
  	{
  		return 1;
  	}
  	return 0;
  }
  
  int func_61(int iParam0)
  {
  	switch (iParam0)
  	{
  		case 153:
  		case 154:
  		case 155:
  		case 162:
  		case 160:
  		case 163:
  		case 167:
  		case 168:
  		case 169:
  		case 171:
  		case 172:
  		case 178:
  		case 190:
  		case 191:
  		case 192:
  		case 189:
  		case 193:
  		case 194:
  		case 199:
  		case 205:
  		case 210:
  		case 225:
  		case 226:
  		case 227:
  		case 229:
  		case 230:
  		case 233:
  		case 237:
  		case 238:
  		case 239:
  		case 240:
  		case 249:
  		case 250:
  		case 243:
  		case 158:
  		case 181:
  		case 256:
  		case 258:
  		case 262:
  		case 263:
  		case 264:
  		case 271:
  		case 277:
  			return 0;
  		
  		case 276:
  			return 3;
  		
  		case 152:
  		case 159:
  		case 142:
  		case 164:
  		case 157:
  		case 166:
  		case 170:
  		case 173:
  		case 180:
  		case 183:
  		case 185:
  		case 182:
  		case 186:
  		case 197:
  		case 200:
  		case 201:
  		case 198:
  		case 195:
  		case 207:
  		case 208:
  		case 209:
  		case 214:
  		case 215:
  		case 216:
  		case 217:
  		case 218:
  		case 219:
  		case 220:
  		case 221:
  		case 241:
  		case 242:
  		case 244:
  		case 248:
  			return 1;
  		
  		case 148:
  		case 179:
  			return 2;
  		
  		default:
  	}
  	return -1;
  }
  
  bool func_62(bool bParam0)
  {
  	return func_63(PLAYER::PLAYER_ID(), bParam0);
  }
  
  bool func_63(int iParam0, bool bParam1)
  {
  	if (!bParam1)
  	{
  		if (func_64(iParam0))
  		{
  			return 0;
  		}
  	}
  	return Global_1893548[iParam0 /*600*/].f_11 != func_3();
  }
  
  int func_64(int iParam0)
  {
  	if (iParam0 != func_3())
  	{
  		if (Global_1893548[iParam0 /*600*/].f_11 != func_3())
  		{
  			return Global_1893548[iParam0 /*600*/].f_11 == iParam0;
  		}
  	}
  	return 0;
  }
  
  bool func_65()
  {
  	return func_64(PLAYER::PLAYER_ID());
  }
  
  void func_66(var uParam0, var uParam1, var uParam2, var uParam3, var uParam4)
  {
  	Global_1893548[PLAYER::PLAYER_ID() /*600*/].f_11.f_187[0] = uParam0;
  	Global_1893548[PLAYER::PLAYER_ID() /*600*/].f_11.f_187[1] = uParam1;
  	Global_1893548[PLAYER::PLAYER_ID() /*600*/].f_11.f_187[2] = uParam2;
  	Global_1893548[PLAYER::PLAYER_ID() /*600*/].f_11.f_187[3] = uParam3;
  	Global_1893548[PLAYER::PLAYER_ID() /*600*/].f_11.f_187.f_5 = uParam4;
  }
  
  void func_67(int iParam0)
  {
  	if (Global_2810287.f_5193.f_344 != iParam0)
  	{
  		Global_2810287.f_5193.f_344 = iParam0;
  	}
  }
  
  int func_68(int iParam0, int iParam1, bool bParam2)
  {
  	int iVar0;
  	int iVar1[13];
  	bool bVar15;
  	bool bVar16;
  	int iVar17;
  	int iVar18;
  	var uVar19;
  	var uVar22;
  	var uVar23;
  	
  	if (!func_62(1))
  	{
  		return 0;
  	}
  	if (!func_65())
  	{
  		return 0;
  	}
  	iVar0 = 0;
  	while (iVar0 < 4)
  	{
  		Global_1893548[PLAYER::PLAYER_ID() /*600*/].f_11.f_332[iVar0] = -1;
  		iVar0++;
  	}
  	if (bParam2)
  	{
  		iVar1[0] = 0;
  		iVar1[1] = 1;
  		iVar1[2] = 2;
  		iVar1[3] = 3;
  		iVar1[4] = 4;
  		iVar1[5] = 5;
  		iVar1[6] = 6;
  		iVar1[7] = 11;
  		iVar1[8] = 14;
  		iVar1[9] = 17;
  		iVar1[10] = 21;
  		iVar1[11] = 23;
  		iVar1[12] = 25;
  		iVar17 = 13;
  		bVar15 = true;
  	}
  	else if (iParam0 == 2)
  	{
  		iVar1[0] = 19;
  		iVar1[1] = 20;
  		iVar1[2] = 21;
  		iVar1[3] = 22;
  		iVar1[4] = 23;
  		iVar1[5] = 24;
  		iVar1[6] = 25;
  		iVar1[7] = 26;
  		iVar17 = 8;
  		bVar15 = true;
  	}
  	else if (iParam0 == 0)
  	{
  		iVar1[0] = 0;
  		iVar1[1] = 1;
  		iVar1[2] = 2;
  		iVar1[3] = 3;
  		iVar1[4] = 4;
  		iVar1[5] = 5;
  		iVar1[6] = 6;
  		iVar1[7] = 7;
  		iVar1[8] = 8;
  		iVar1[9] = 9;
  		iVar1[10] = 10;
  		iVar17 = 11;
  	}
  	else if (iParam0 == 1)
  	{
  		iVar1[0] = 11;
  		iVar1[1] = 12;
  		iVar1[2] = 13;
  		iVar1[3] = 14;
  		iVar1[4] = 15;
  		iVar1[5] = 16;
  		iVar1[6] = 17;
  		iVar1[7] = 18;
  		iVar17 = 8;
  		bVar15 = true;
  	}
  	else if (iParam0 == 4)
  	{
  		iVar18 = func_21(func_75());
  		if (iVar18 != 0)
  		{
  			iVar0 = 0;
  			while (iVar0 < 4)
  			{
  				Global_1893548[PLAYER::PLAYER_ID() /*600*/].f_11.f_332[iVar0] = func_74(iVar18);
  				iVar0++;
  			}
  			bVar16 = true;
  		}
  	}
  	if (iParam0 != 4)
  	{
  		if (bVar15)
  		{
  			if (iVar17 >= 1)
  			{
  				uVar19 = 2;
  				uVar22 = func_69(&iVar1, iVar17, &uVar19);
  				iVar0 = 0;
  				while (iVar0 < iParam1)
  				{
  					Global_1893548[PLAYER::PLAYER_ID() /*600*/].f_11.f_332[iVar0] = uVar22;
  					iVar0++;
  				}
  				bVar16 = true;
  			}
  		}
  		else if (iVar17 >= iParam1)
  		{
  			uVar23 = 2;
  			iVar0 = 0;
  			while (iVar0 < iParam1)
  			{
  				Global_1893548[PLAYER::PLAYER_ID() /*600*/].f_11.f_332[iVar0] = func_69(&iVar1, iVar17, &uVar23);
  				iVar0++;
  			}
  			bVar16 = true;
  		}
  	}
  	if (bVar16)
  	{
  		return 1;
  	}
  	return 0;
  }
  
  int func_69(int iParam0, int iParam1, var uParam2)
  {
  	float fVar0;
  	float fVar1;
  	var uVar2[13];
  	int iVar16;
  	int iVar17;
  	struct<3> Var18;
  	struct<3> Var21;
  	int iVar24;
  	int iVar25;
  	int iVar26;
  	struct<3> Var27;
  	float fVar30;
  	float fVar31;
  	int iVar32;
  	int iVar33;
  	int iVar34;
  	
  	if (!func_62(1))
  	{
  		return -1;
  	}
  	fVar0 = Global_262145.f_17900;
  	fVar1 = Global_262145.f_17901;
  	iVar17 = func_73(PLAYER::PLAYER_ID());
  	if (Global_1853128[iVar17 /*888*/].f_267[5] > -1)
  	{
  		Var18 = { Global_1312124[Global_1853128[iVar17 /*888*/].f_267[5] /*1951*/].f_38[0 /*27*/].f_23 };
  		Var18.f_2 = 0f;
  	}
  	else
  	{
  		return -1;
  	}
  	if (func_20(iVar17))
  	{
  		Var21 = { Global_1946934.f_532[func_72(func_21(iVar17)) /*3*/] };
  		Var21.f_2 = 0f;
  	}
  	else
  	{
  		return -1;
  	}
  	if (iParam1 > 0)
  	{
  		iVar24 = 0;
  		while (iVar24 < iParam1)
  		{
  			Var27 = { func_71((*iParam0)[iVar24]) };
  			Var27.f_2 = 0f;
  			fVar30 = SYSTEM::VDIST(Var27, Var18);
  			fVar31 = SYSTEM::VDIST(Var27, Var21);
  			if (fVar30 >= fVar0 && fVar31 >= fVar1)
  			{
  				func_70((*iParam0)[iVar24], &iVar25, &iVar26);
  				if (!MISC::IS_BIT_SET((*uParam2)[iVar25], iVar26))
  				{
  					uVar2[iVar16] = (*iParam0)[iVar24];
  					iVar16++;
  				}
  			}
  			iVar24++;
  		}
  		if (iVar16 > 0)
  		{
  			iVar32 = MISC::GET_RANDOM_INT_IN_RANGE(0, iVar16);
  			func_70(uVar2[iVar32], &iVar25, &iVar26);
  			MISC::SET_BIT(uParam2[iVar25], iVar26);
  			return uVar2[iVar32];
  		}
  		else
  		{
  			iVar24 = 0;
  			while (iVar24 < iParam1)
  			{
  				func_70((*iParam0)[iVar24], &iVar25, &iVar26);
  				if (!MISC::IS_BIT_SET((*uParam2)[iVar25], iVar26))
  				{
  					uVar2[iVar16] = (*iParam0)[iVar24];
  					iVar16++;
  				}
  				iVar24++;
  			}
  			if (iVar16 > 0)
  			{
  				iVar33 = MISC::GET_RANDOM_INT_IN_RANGE(0, iVar16);
  				func_70(uVar2[iVar33], &iVar25, &iVar26);
  				MISC::SET_BIT(uParam2[iVar25], iVar26);
  				return uVar2[iVar33];
  			}
  			else
  			{
  				iVar34 = MISC::GET_RANDOM_INT_IN_RANGE(0, iParam1);
  				func_70(uVar2[iVar34], &iVar25, &iVar26);
  				MISC::SET_BIT(uParam2[iVar25], iVar26);
  				return uVar2[iVar34];
  			}
  		}
  	}
  	else
  	{
  		return -1;
  	}
  	return -1;
  }
  
  void func_70(int iParam0, int iParam1, int iParam2)
  {
  	*iParam1 = SYSTEM::FLOOR((SYSTEM::TO_FLOAT(iParam0) / 32f));
  	*iParam2 = (iParam0 - *iParam1 * 32);
  }
  
  Vector3 func_71(int iParam0)
  {
  	switch (iParam0)
  	{
  		case 19:
  			return -2597.411f, 1930.107f, 166.3086f;
  		
  		case 20:
  			return -1920.153f, 2048.602f, 139.7356f;
  		
  		case 21:
  			return -68.3441f, 894.488f, 234.5414f;
  		
  		case 22:
  			return 1407.563f, 1118.505f, 113.8377f;
  		
  		case 23:
  			return -1788.983f, 455.5039f, 127.3081f;
  		
  		case 24:
  			return 217.052f, 757.9442f, 203.6637f;
  		
  		case 25:
  			return -1615.404f, 17.2934f, 61.1779f;
  		
  		case 26:
  			return -3102.533f, 716.4913f, 19.297f;
  		
  		case 0:
  			return 880.8726f, -2919.058f, 4.9006f;
  		
  		case 1:
  			return 928.5625f, -2920.391f, 4.9021f;
  		
  		case 2:
  			return 972.3794f, -2920.422f, 4.9021f;
  		
  		case 3:
  			return 1091.055f, -2920.289f, 4.9021f;
  		
  		case 4:
  			return 1148.923f, -2920.104f, 4.9021f;
  		
  		case 5:
  			return 1180.085f, -2970.068f, 4.9021f;
  		
  		case 6:
  			return -1082.496f, -500.419f, 35.432f;
  		
  		case 7:
  			return 165.3373f, 2284.929f, 92.178f;
  		
  		case 8:
  			return -2221.172f, 3484.129f, 29.1695f;
  		
  		case 9:
  			return 2906.938f, 4345.68f, 49.3003f;
  		
  		case 10:
  			return 1579.18f, 6438.313f, 23.7935f;
  		
  		case 11:
  			return 477.29f, -1889.14f, 25.0946f;
  		
  		case 12:
  			return 2534.13f, 2584.07f, 36.9449f;
  		
  		case 13:
  			return 452.3711f, 3573.672f, 32.2386f;
  		
  		case 14:
  			return -222.6743f, 6249.478f, 30.4912f;
  		
  		case 15:
  			return -65.6218f, 81.307f, 70.5533f;
  		
  		case 16:
  			return -28.1873f, -1083.637f, 25.5732f;
  		
  		case 17:
  			return 2510.956f, 4109.705f, 37.5692f;
  		
  		case 18:
  			return -763.496f, -243.3722f, 36.2426f;
  		
  		case 27:
  			return 859.9324f, -1350.51f, 25.0668f;
  		
  		case 28:
  			return 417.7273f, -1618.991f, 28.2898f;
  		
  		case 29:
  			return 452.691f, -1007.568f, 26.12f;
  		
  		case 30:
  			return -1120.411f, -842.7603f, 12.3767f;
  		
  		case 31:
  			return -1326.011f, -1502.188f, 3.3245f;
  		
  		case 32:
  			return -576.611f, -130.9079f, 33.659f;
  		
  		case 33:
  			return 537.8883f, -32.6088f, 69.6464f;
  		
  		case 34:
  			return 1858.998f, 3676.471f, 32.546f;
  		
  		case 35:
  			return -433.4332f, 6042.402f, 30.3373f;
  		
  		case 36:
  			return -633.966f, -1780.525f, 23.0708f;
  		
  		case 37:
  			return 995.0766f, -1858.65f, 29.8898f;
  		
  		case 38:
  			return -70.5644f, -1822.705f, 25.942f;
  		
  		case 39:
  			return 38.8324f, -1284.2f, 28.278f;
  		
  		case 40:
  			return 1211.217f, -1262.491f, 34.2267f;
  		
  		case 41:
  			return 804.3043f, -2225.151f, 28.5425f;
  		
  		case 42:
  			return 1764.46f, -1648.041f, 111.649f;
  		
  		case 43:
  			return 144.143f, -3003.358f, 6.031f;
  		
  		case 44:
  			return -513.2193f, -2200.612f, 5.394f;
  		
  		case 45:
  			return -1153.689f, -2172.111f, 12.2625f;
  		
  		case 46:
  			return -511.2002f, -1736.564f, 18.1967f;
  		
  		case 47:
  			return 2352.237f, 3036.937f, 47.1521f;
  		
  		case 48:
  			return -194.5653f, 6268.56f, 30.4893f;
  		
  		default:
  	}
  	return 0f, 0f, 0f;
  }
  
  int func_72(int iParam0)
  {
  	switch (iParam0)
  	{
  		case 1:
  			return 60;
  			break;
  		
  		case 2:
  			return 61;
  			break;
  		
  		case 3:
  			return 62;
  			break;
  		
  		case 4:
  			return 63;
  			break;
  		
  		case 5:
  			return 64;
  			break;
  		
  		case 6:
  			return 65;
  			break;
  		
  		case 7:
  			return 66;
  			break;
  		
  		case 8:
  			return 67;
  			break;
  		
  		case 9:
  			return 68;
  			break;
  		
  		case 10:
  			return 69;
  			break;
  	}
  	return -1;
  }
  
  int func_73(int iParam0)
  {
  	if (iParam0 != func_3())
  	{
  		return Global_1893548[iParam0 /*600*/].f_11;
  	}
  	return func_3();
  }
  
  int func_74(int iParam0)
  {
  	switch (iParam0)
  	{
  		case 1:
  			return 36;
  		
  		case 2:
  			return 37;
  		
  		case 3:
  			return 38;
  		
  		case 4:
  			return 39;
  		
  		case 5:
  			return 40;
  		
  		case 6:
  			return 41;
  		
  		case 7:
  			return 42;
  		
  		case 8:
  			return 43;
  		
  		case 9:
  			return 44;
  		
  		case 10:
  			return 45;
  		
  		default:
  	}
  	return -1;
  }
  
  int func_75()
  {
  	return Global_1893548[PLAYER::PLAYER_ID() /*600*/].f_11;
  }
  
  int func_76(bool bParam0)
  {
  	int iVar0;
  	int iVar1;
  	
  	iVar0 = 0;
  	while (iVar0 < 4)
  	{
  		if (!bParam0)
  		{
  			if (iLocal_622[iVar0] != 0)
  			{
  				iVar1++;
  			}
  		}
  		else if (iLocal_627[iVar0] != 0)
  		{
  			iVar1++;
  		}
  		iVar0++;
  	}
  	return iVar1;
  }
  
  void func_77(int iParam0, bool bParam1)
  {
  	if (bParam1)
  	{
  		if (iParam0 != func_3())
  		{
  			if (!MISC::IS_BIT_SET(Global_2689156[iParam0 /*453*/].f_199, 19))
  			{
  				MISC::SET_BIT(&(Global_2689156[iParam0 /*453*/].f_199), 19);
  			}
  		}
  	}
  	else if (iParam0 != func_3())
  	{
  		if (MISC::IS_BIT_SET(Global_2689156[iParam0 /*453*/].f_199, 19))
  		{
  			MISC::CLEAR_BIT(&(Global_2689156[iParam0 /*453*/].f_199), 19);
  		}
  	}
  }
  
  int func_78(bool bParam0, bool bParam1)
  {
  	int iVar0;
  	int iVar1;
  	
  	if (!func_20(PLAYER::PLAYER_ID()))
  	{
  		iLocal_618 = 16;
  		return 0;
  	}
  	if (!func_249(PLAYER::PLAYER_ID(), 188, 0))
  	{
  		iLocal_618 = func_87(PLAYER::PLAYER_ID(), 188, 0);
  		if (iLocal_618 == 16)
  		{
  			iLocal_618 = 19;
  		}
  		else if (iLocal_618 == 15)
  		{
  			iLocal_618 = 20;
  		}
  		return 0;
  	}
  	if (!func_64(PLAYER::PLAYER_ID()))
  	{
  		iLocal_618 = 14;
  		return 0;
  	}
  	if (func_85(PLAYER::PLAYER_ID()))
  	{
  		iLocal_618 = 15;
  		return 0;
  	}
  	if (func_83(PLAYER::PLAYER_ID()))
  	{
  		iLocal_618 = 13;
  		return 0;
  	}
  	if (NETWORK::NETWORK_IS_ACTIVITY_SESSION())
  	{
  		iLocal_618 = 12;
  		return 0;
  	}
  	if (func_82() < func_76(bParam0))
  	{
  		iLocal_618 = 17;
  		return 0;
  	}
  	if (func_80())
  	{
  		iLocal_618 = 18;
  		return 0;
  	}
  	if (bParam1)
  	{
  		iVar0 = 0;
  		while (iVar0 < 4)
  		{
  			iVar1 = Global_1835008[iVar0 /*103*/].f_100;
  			if (iVar1 != func_3())
  			{
  				if (((!NETWORK::NETWORK_IS_PLAYER_CONNECTED(iVar1) || !func_2(iVar1, 1, 1)) || !func_401(iVar1)) || func_79(iVar1))
  				{
  					if (Global_1835008[iVar0 /*103*/].f_101 == 0 || Global_1835008[iVar0 /*103*/].f_101 == -1)
  					{
  					}
  					else
  					{
  						iLocal_618 = 17;
  						return 0;
  					}
  				}
  			}
  			iVar0++;
  		}
  	}
  	return 1;
  }
  
  int func_79(int iParam0)
  {
  	if (iParam0 != func_3() && func_2(iParam0, 1, 1))
  	{
  		return MISC::IS_BIT_SET(Global_2689156[iParam0 /*453*/].f_319, 3);
  	}
  	return 0;
  }
  
  int func_80()
  {
  	if (Global_1946900 && func_81())
  	{
  		return 1;
  	}
  	return 0;
  }
  
  var func_81()
  {
  	return Global_2726388;
  }
  
  int func_82()
  {
  	int iVar0;
  	int iVar1;
  	
  	if (func_401(PLAYER::PLAYER_ID()))
  	{
  		iVar1++;
  	}
  	iVar0 = 0;
  	while (iVar0 < 7)
  	{
  		if (Global_1893548[PLAYER::PLAYER_ID() /*600*/].f_11.f_11[iVar0] != func_3())
  		{
  			if ((func_401(Global_1893548[PLAYER::PLAYER_ID() /*600*/].f_11.f_11[iVar0]) && func_2(Global_1893548[PLAYER::PLAYER_ID() /*600*/].f_11.f_11[iVar0], 1, 1)) && !func_79(Global_1893548[PLAYER::PLAYER_ID() /*600*/].f_11.f_11[iVar0]))
  			{
  				iVar1++;
  			}
  		}
  		iVar0++;
  	}
  	return iVar1;
  }
  
  int func_83(int iParam0)
  {
  	int iVar0;
  	
  	iVar0 = iParam0;
  	if (iVar0 != -1)
  	{
  		return func_84(iParam0, 9);
  	}
  	return 0;
  }
  
  bool func_84(int iParam0, int iParam1)
  {
  	return MISC::IS_BIT_SET(Global_1893548[iParam0 /*600*/].f_11.f_4, iParam1);
  }
  
  bool func_85(int iParam0)
  {
  	return func_86(iParam0, 1);
  }
  
  int func_86(int iParam0, int iParam1)
  {
  	if (iParam0 != func_3())
  	{
  		if (Global_1893548[iParam0 /*600*/].f_11 != func_3())
  		{
  			if (Global_1893548[iParam0 /*600*/].f_11 == iParam0 && Global_1893548[iParam0 /*600*/].f_11.f_428 == iParam1)
  			{
  				return 1;
  			}
  		}
  	}
  	return 0;
  }
  
  int func_87(int iParam0, int iParam1, bool bParam2)
  {
  	int iVar0;
  	int iVar1;
  	
  	if (!func_117(func_221(iParam1, -1, -1, -1), func_178(iParam1, -1, 1, -1, -1, iParam0), func_126(iParam1, -1, -1, -1, -1, iParam0), 0, 1))
  	{
  		return 0;
  	}
  	iVar0 = iParam1;
  	if (func_85(iParam0))
  	{
  		if (iParam1 == 153)
  		{
  			iVar0 = 211;
  		}
  	}
  	if (func_115(iParam1) >= func_114(iVar0))
  	{
  		return 5;
  	}
  	if (func_113(iParam0))
  	{
  		return 6;
  	}
  	if (func_112(iParam0))
  	{
  		return 14;
  	}
  	iVar1 = func_107(iParam0);
  	if (iVar1 != -1)
  	{
  		return iVar1;
  	}
  	if (func_61(iParam1) == 1)
  	{
  		if ((func_106() || func_105()) || ((!bParam2 && func_104() != 0) && func_61(iParam1) == 1))
  		{
  			return 2;
  		}
  	}
  	else if (func_61(iParam1) == 2)
  	{
  		if (!func_101(iParam1))
  		{
  			return 3;
  		}
  		if (!bParam2)
  		{
  			if (Global_1893548[iParam0 /*600*/].f_11.f_34 != func_3())
  			{
  				return 9;
  			}
  		}
  		if (func_100(iParam0))
  		{
  			return 10;
  		}
  	}
  	else if (func_98(iParam1))
  	{
  		if (func_97(iParam0) <= 0)
  		{
  			return 4;
  		}
  	}
  	if (func_96(iParam1))
  	{
  		if (func_95())
  		{
  			return 13;
  		}
  		if (func_93())
  		{
  			return 12;
  		}
  	}
  	if (func_97(iParam0) + 1 < func_92(iVar0))
  	{
  		return 4;
  	}
  	switch (iParam1)
  	{
  		case 157:
  			break;
  		
  		case 152:
  		case 164:
  		case 173:
  		case 170:
  		case 201:
  		case 200:
  			if (!func_89(iParam0, 0))
  			{
  				return 1;
  			}
  			break;
  		
  		case 189:
  			if (func_88(iParam0, 21) || func_88(iParam0, 25))
  			{
  				return 0;
  			}
  			break;
  	}
  	return -1;
  }
  
  bool func_88(int iParam0, int iParam1)
  {
  	return MISC::IS_BIT_SET(Global_2689156[iParam0 /*453*/].f_217, iParam1);
  }
  
  int func_89(int iParam0, int iParam1)
  {
  	int iVar0;
  	int iVar1;
  	
  	iVar0 = 0;
  	while (iVar0 < 32)
  	{
  		iVar1 = PLAYER::INT_TO_PLAYERINDEX(iVar0);
  		if (NETWORK::NETWORK_IS_PLAYER_ACTIVE(iVar1))
  		{
  			if (!func_90(iVar1, iParam0, 1))
  			{
  				if (iParam1 || !func_84(iVar1, 31))
  				{
  					return 1;
  				}
  			}
  		}
  		iVar0++;
  	}
  	return 0;
  }
  
  int func_90(int iParam0, int iParam1, bool bParam2)
  {
  	if (iParam1 != func_3())
  	{
  		if (!bParam2)
  		{
  			if (func_91(iParam0, iParam1))
  			{
  				return 0;
  			}
  		}
  		if (Global_1893548[iParam0 /*600*/].f_11 != func_3())
  		{
  			return iParam1 == Global_1893548[iParam0 /*600*/].f_11;
  		}
  	}
  	return 0;
  }
  
  int func_91(int iParam0, int iParam1)
  {
  	if (iParam1 != func_3())
  	{
  		if (iParam0 != func_3())
  		{
  			if (Global_1893548[iParam0 /*600*/].f_11 != func_3())
  			{
  				if (Global_1893548[iParam0 /*600*/].f_11 == iParam0)
  				{
  					return iParam1 == iParam0;
  				}
  			}
  		}
  	}
  	return 0;
  }
  
  int func_92(int iParam0)
  {
  	switch (iParam0)
  	{
  		case 180:
  			return Global_262145.f_18429;
  		
  		case 183:
  			return Global_262145.f_18437;
  		
  		case 185:
  			return Global_262145.f_18446;
  		
  		case 182:
  			return Global_262145.f_18457;
  		
  		case 186:
  			return Global_262145.f_18466;
  		
  		case 195:
  			return Global_262145.f_18484;
  		
  		case 198:
  			return Global_262145.f_18494;
  		
  		case 197:
  			return Global_262145.f_18506;
  		
  		case 207:
  			return Global_262145.f_18514;
  		
  		case 209:
  			return Global_262145.f_18527;
  		
  		case 208:
  			return Global_262145.f_18535;
  		
  		case 201:
  			return Global_262145.f_18568;
  		
  		case 211:
  			return Global_262145.f_18636;
  		
  		case 193:
  			return Global_262145.f_18659;
  		
  		case 205:
  			return Global_262145.f_18677;
  		
  		case 189:
  			return Global_262145.f_18642;
  		
  		case 216:
  			return 2;
  		
  		case 220:
  			return 2;
  		
  		default:
  	}
  	return 1;
  }
  
  int func_93()
  {
  	if (func_94())
  	{
  		return 1;
  	}
  	return Global_2714627.f_744;
  }
  
  bool func_94()
  {
  	return Global_1575005 == 10;
  }
  
  bool func_95()
  {
  	return Global_262145.f_15486;
  }
  
  int func_96(int iParam0)
  {
  	switch (iParam0)
  	{
  		case 167:
  		case 169:
  		case 168:
  			return 1;
  		
  		default:
  	}
  	return 0;
  }
  
  int func_97(int iParam0)
  {
  	if (func_73(iParam0) == func_3())
  	{
  		return 0;
  	}
  	return Global_1893548[iParam0 /*600*/].f_11.f_19;
  }
  
  int func_98(int iParam0)
  {
  	switch (iParam0)
  	{
  		case 155:
  		case 160:
  		case 153:
  		case 162:
  		case 154:
  		case 163:
  		case 171:
  		case 172:
  		case 240:
  		case 239:
  			return 1;
  		
  		default:
  	}
  	return func_99(iParam0, 0);
  	return 0;
  }
  
  int func_99(int iParam0, int iParam1)
  {
  	switch (iParam0)
  	{
  		case 199:
  		case 205:
  		case 210:
  		case 211:
  			return 1;
  		
  		default:
  	}
  	if (iParam1 == 0)
  	{
  		switch (iParam0)
  		{
  			case 194:
  			case 193:
  			case 189:
  			case 153:
  				return 1;
  			}
  		
  		default:
  	}
  	return 0;
  }
  
  int func_100(int iParam0)
  {
  	int iVar0;
  	int iVar1;
  	
  	iVar0 = 0;
  	while (iVar0 < 32)
  	{
  		iVar1 = PLAYER::INT_TO_PLAYERINDEX(iVar0);
  		if (NETWORK::NETWORK_IS_PLAYER_ACTIVE(iVar1))
  		{
  			if ((Global_1893548[iParam0 /*600*/].f_11.f_34 != func_3() && Global_1893548[iParam0 /*600*/].f_11.f_34 == iVar1) && Global_1893548[iVar1 /*600*/].f_11.f_34 == iParam0)
  			{
  				return 1;
  			}
  		}
  		iVar0++;
  	}
  	return 0;
  }
  
  int func_101(int iParam0)
  {
  	switch (iParam0)
  	{
  		case 179:
  			if (func_103() < 2)
  			{
  				return 0;
  			}
  			break;
  		
  		case 148:
  			if (func_102() < 2)
  			{
  				return 0;
  			}
  			break;
  		
  		default:
  			if (func_102() < 2)
  			{
  				return 0;
  			}
  			break;
  	}
  	return 1;
  }
  
  int func_102()
  {
  	int iVar0;
  	int iVar1;
  	int iVar2;
  	
  	iVar0 = 0;
  	while (iVar0 < 32)
  	{
  		iVar2 = PLAYER::INT_TO_PLAYERINDEX(iVar0);
  		if (NETWORK::NETWORK_IS_PLAYER_ACTIVE(iVar2))
  		{
  			if (func_64(iVar2))
  			{
  				iVar1++;
  			}
  		}
  		iVar0++;
  	}
  	return iVar1;
  }
  
  int func_103()
  {
  	int iVar0;
  	int iVar1;
  	int iVar2;
  	
  	iVar0 = 0;
  	while (iVar0 < 32)
  	{
  		iVar2 = PLAYER::INT_TO_PLAYERINDEX(iVar0);
  		if (NETWORK::NETWORK_IS_PLAYER_ACTIVE(iVar2))
  		{
  			if (func_85(iVar2))
  			{
  				iVar1++;
  			}
  		}
  		iVar0++;
  	}
  	return iVar1;
  }
  
  int func_104()
  {
  	return Global_1893548[PLAYER::PLAYER_ID() /*600*/].f_11.f_103;
  }
  
  bool func_105()
  {
  	return Global_1921036.f_11.f_144 != -1;
  }
  
  bool func_106()
  {
  	return Global_1921036.f_11.f_143 != -1;
  }
  
  int func_107(int iParam0)
  {
  	int iVar0;
  	int iVar1;
  	
  	iVar0 = 0;
  	while (iVar0 < func_109())
  	{
  		iVar1 = Global_1893548[iParam0 /*600*/].f_11.f_11[iVar0];
  		if (iVar1 != func_3())
  		{
  			if (NETWORK::NETWORK_IS_PLAYER_ACTIVE(iVar1))
  			{
  				if (func_113(iVar1))
  				{
  					return 7;
  				}
  				if (func_112(iVar1))
  				{
  					return 15;
  				}
  				if (func_108(iVar1))
  				{
  					return 16;
  				}
  			}
  		}
  		iVar0++;
  	}
  	return -1;
  }
  
  int func_108(int iParam0)
  {
  	if (iParam0 == func_3())
  	{
  		return 0;
  	}
  	if (((((MISC::IS_BIT_SET(Global_2689156[iParam0 /*453*/].f_319.f_4, 2) || MISC::IS_BIT_SET(Global_2689156[iParam0 /*453*/].f_319.f_4, 3)) || MISC::IS_BIT_SET(Global_2689156[iParam0 /*453*/].f_319.f_4, 5)) || MISC::IS_BIT_SET(Global_2689156[iParam0 /*453*/].f_319.f_4, 6)) || MISC::IS_BIT_SET(Global_2689156[iParam0 /*453*/].f_319.f_4, 7)) || MISC::IS_BIT_SET(Global_1853128[iParam0 /*888*/].f_267.f_379.f_1, 1))
  	{
  		return 1;
  	}
  	return 0;
  }
  
  int func_109()
  {
  	return (func_110() - 1);
  }
  
  int func_110()
  {
  	return func_111(PLAYER::PLAYER_ID());
  }
  
  int func_111(int iParam0)
  {
  	int iVar0;
  	
  	iVar0 = Global_1893548[iParam0 /*600*/].f_11;
  	if (iVar0 != func_3() && Global_1893548[iVar0 /*600*/].f_11.f_428 == 1)
  	{
  		return 8;
  	}
  	return 4;
  }
  
  int func_112(int iParam0)
  {
  	int iVar0;
  	int iVar1;
  	
  	if (!NETWORK::NETWORK_IS_GAME_IN_PROGRESS())
  	{
  		return 0;
  	}
  	if (iParam0 == PLAYER::PLAYER_ID())
  	{
  		return Global_2783989;
  	}
  	else
  	{
  		iVar0 = PLAYER::GET_PLAYER_PED(iParam0);
  		if (ENTITY::DOES_ENTITY_EXIST(iVar0))
  		{
  			iVar1 = ENTITY::GET_ENTITY_MODEL(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_113(int iParam0)
  {
  	int iVar0;
  	
  	iVar0 = iParam0;
  	if (iVar0 != -1)
  	{
  		return MISC::IS_BIT_SET(Global_1893548[iVar0 /*600*/].f_1, 0);
  	}
  	return 0;
  }
  
  int func_114(int iParam0)
  {
  	switch (iParam0)
  	{
  		case 162:
  			return Global_262145.f_12830;
  		
  		case 155:
  			return Global_262145.f_12855;
  		
  		case 153:
  			return Global_262145.f_12819;
  		
  		case 163:
  			return Global_262145.f_12795;
  		
  		case 160:
  			return Global_262145.f_12808;
  		
  		case 154:
  			return Global_262145.f_12865;
  		
  		case 169:
  			return 1;
  		
  		case 171:
  			return Global_262145.f_15313;
  		
  		case 172:
  			return Global_262145.f_15332;
  		
  		case 148:
  			return Global_262145.f_18543;
  		
  		case 179:
  			return Global_262145.f_18551;
  		
  		case 201:
  			return Global_262145.f_18565;
  		
  		case 200:
  			return Global_262145.f_18605;
  		
  		case 211:
  			return Global_262145.f_18634;
  		
  		case 194:
  			return Global_262145.f_18646;
  		
  		case 193:
  			return Global_262145.f_18657;
  		
  		case 210:
  			return Global_262145.f_18669;
  		
  		case 205:
  			return Global_262145.f_18675;
  		
  		case 199:
  			return Global_262145.f_18688;
  		
  		case 249:
  			return 1;
  		
  		case 238:
  			return 1;
  		
  		default:
  	}
  	return 2147483647;
  }
  
  int func_115(int iParam0)
  {
  	return Global_1921036.f_11.f_147[func_116(iParam0)];
  }
  
  int func_116(int iParam0)
  {
  	switch (iParam0)
  	{
  		case 148:
  			return 0;
  		
  		case 152:
  			return 1;
  		
  		case 151:
  			return 2;
  		
  		case 142:
  			return 3;
  		
  		case 157:
  			return 4;
  		
  		case 159:
  			return 5;
  		
  		case 164:
  			return 6;
  		
  		case 160:
  			return 7;
  		
  		case 162:
  			return 8;
  		
  		case 163:
  			return 9;
  		
  		case 154:
  			return 10;
  		
  		case 155:
  			return 11;
  		
  		case 153:
  			return 12;
  		
  		case 166:
  			return 13;
  		
  		case 167:
  			return 14;
  		
  		case 168:
  			return 15;
  		
  		case 169:
  			return 16;
  		
  		case 170:
  			return 17;
  		
  		case 171:
  			return 18;
  		
  		case 172:
  			return 19;
  		
  		case 173:
  			return 20;
  		
  		case 178:
  			return 21;
  		
  		case 179:
  			return 22;
  		
  		case 180:
  			return 23;
  		
  		case 182:
  			return 24;
  		
  		case 183:
  			return 25;
  		
  		case 185:
  			return 26;
  		
  		case 186:
  			return 27;
  		
  		case 189:
  			return 28;
  		
  		case 190:
  			return 29;
  		
  		case 191:
  			return 30;
  		
  		case 192:
  			return 31;
  		
  		case 193:
  			return 32;
  		
  		case 194:
  			return 33;
  		
  		case 195:
  			return 34;
  		
  		case 197:
  			return 35;
  		
  		case 198:
  			return 36;
  		
  		case 199:
  			return 37;
  		
  		case 200:
  			return 38;
  		
  		case 201:
  			return 39;
  		
  		case 205:
  			return 40;
  		
  		case 207:
  			return 41;
  		
  		case 208:
  			return 42;
  		
  		case 209:
  			return 43;
  		
  		case 210:
  			return 44;
  		
  		case 214:
  			return 45;
  		
  		case 215:
  			return 46;
  		
  		case 216:
  			return 47;
  		
  		case 217:
  			return 48;
  		
  		case 218:
  			return 49;
  		
  		case 219:
  			return 50;
  		
  		case 220:
  			return 51;
  		
  		case 221:
  			return 52;
  		
  		case 188:
  			return 53;
  		
  		case 225:
  			return 54;
  		
  		case 226:
  			return 55;
  		
  		case 227:
  			return 56;
  		
  		case 229:
  			return 57;
  		
  		case 230:
  			return 58;
  		
  		case 233:
  			return 59;
  		
  		case 237:
  			return 60;
  		
  		case 238:
  			return 61;
  		
  		case 239:
  			return 62;
  		
  		case 240:
  			return 63;
  		
  		case 241:
  			return 64;
  		
  		case 242:
  			return 65;
  		
  		case 244:
  			return 66;
  		
  		case 248:
  			return 67;
  		
  		case 249:
  			return 68;
  		
  		case 250:
  			return 69;
  		
  		case 243:
  			return 70;
  		
  		case 158:
  			return 71;
  		
  		case 256:
  			return 72;
  		
  		case 258:
  			return 73;
  		
  		case 271:
  			return 74;
  		
  		case 276:
  			return 75;
  		
  		case 277:
  			return 76;
  		
  		case 262:
  			return 79;
  		
  		case 263:
  			return 78;
  		
  		case 264:
  			return 77;
  		
  		default:
  	}
  	return -1;
  }
  
  int func_117(int iParam0, int iParam1, int iParam2, bool bParam3, bool bParam4)
  {
  	if ((func_125(iParam0, bParam3, bParam4) || func_124(iParam1, bParam3, bParam4)) || func_118(iParam2, bParam3, bParam4))
  	{
  		return 1;
  	}
  	return 0;
  }
  
  int func_118(int iParam0, bool bParam1, bool bParam2)
  {
  	return func_119(2, iParam0, 0, bParam1, bParam2);
  }
  
  int func_119(int iParam0, int iParam1, bool bParam2, bool bParam3, bool bParam4)
  {
  	int iVar0;
  	int iVar1;
  	
  	if (!MISC::IS_BIT_SET(Global_1656872, 0))
  	{
  		return 0;
  	}
  	if ((bParam2 && !bParam3) && iParam1 <= (func_123(iParam0) - func_122(iParam0, 0)))
  	{
  		return 1;
  	}
  	else
  	{
  		if (bParam3)
  		{
  			if (bParam2)
  			{
  				iVar0 = (iParam1 - func_122(iParam0, 0));
  			}
  			else
  			{
  				iVar0 = iParam1;
  			}
  			iVar1 = (func_123(iParam0) - func_121(iParam0));
  		}
  		else
  		{
  			if (bParam2)
  			{
  				iVar0 = (iParam1 - func_122(iParam0, 0));
  			}
  			else
  			{
  				iVar0 = iParam1;
  			}
  			iVar1 = (func_123(iParam0) - func_122(iParam0, 1));
  		}
  		if (!bParam4 && Global_1853128[PLAYER::PLAYER_ID() /*888*/] != 3)
  		{
  			iVar1 = (iVar1 - func_120(iParam0));
  		}
  		if (iVar0 < iVar1)
  		{
  			return 1;
  		}
  	}
  	return 0;
  }
  
  int func_120(int iParam0)
  {
  	switch (iParam0)
  	{
  		case 0:
  			return 10;
  			break;
  		
  		case 1:
  			return 10;
  			break;
  		
  		case 2:
  			return 10;
  			break;
  	}
  	return 0;
  }
  
  int func_121(int iParam0)
  {
  	switch (iParam0)
  	{
  		case 0:
  			return Global_1656872.f_1;
  			break;
  		
  		case 1:
  			return Global_1656872.f_2;
  			break;
  		
  		case 2:
  			return Global_1656872.f_3;
  			break;
  	}
  	return 0;
  }
  
  int func_122(int iParam0, bool bParam1)
  {
  	int iVar0;
  	
  	iVar0 = PLAYER::PLAYER_ID();
  	switch (iParam0)
  	{
  		case 0:
  			if (!NETWORK::NETWORK_GET_THIS_SCRIPT_IS_NETWORK_SCRIPT())
  			{
  				return Global_2689156[iVar0 /*453*/].f_218;
  			}
  			else
  			{
  				return NETWORK::GET_NUM_RESERVED_MISSION_PEDS(!bParam1, 0);
  			}
  			break;
  		
  		case 1:
  			if (!NETWORK::NETWORK_GET_THIS_SCRIPT_IS_NETWORK_SCRIPT())
  			{
  				return Global_2689156[iVar0 /*453*/].f_219;
  			}
  			else
  			{
  				return NETWORK::GET_NUM_RESERVED_MISSION_VEHICLES(!bParam1, 0);
  			}
  			break;
  		
  		case 2:
  			if (!NETWORK::NETWORK_GET_THIS_SCRIPT_IS_NETWORK_SCRIPT())
  			{
  				return Global_2689156[iVar0 /*453*/].f_220;
  			}
  			else
  			{
  				return NETWORK::GET_NUM_RESERVED_MISSION_OBJECTS(!bParam1, 0);
  			}
  			break;
  	}
  	return 0;
  }
  
  int func_123(int iParam0)
  {
  	switch (iParam0)
  	{
  		case 0:
  			return Global_1656880;
  			break;
  		
  		case 1:
  			return Global_1656881;
  			break;
  		
  		case 2:
  			return Global_1656882;
  			break;
  	}
  	return 0;
  }
  
  int func_124(int iParam0, bool bParam1, bool bParam2)
  {
  	return func_119(1, iParam0, 0, bParam1, bParam2);
  }
  
  int func_125(int iParam0, bool bParam1, bool bParam2)
  {
  	return func_119(0, iParam0, 0, bParam1, bParam2);
  }
  
  int func_126(int iParam0, int iParam1, int iParam2, int iParam3, int iParam4, int iParam5)
  {
  	switch (iParam0)
  	{
  		case 148:
  		case 152:
  		case 162:
  		case 160:
  		case 163:
  			return 0;
  		
  		case 159:
  		case 142:
  			return 1;
  		
  		case 167:
  			return func_177(iParam1);
  		
  		case 170:
  			return 2;
  		
  		case 171:
  			return 0;
  		
  		case 172:
  			return 9;
  		
  		case 173:
  			return 0;
  		
  		case 168:
  			return 5;
  		
  		case 178:
  		case 188:
  			return func_175(iParam1, iParam2, iParam3);
  		
  		case 225:
  		case 226:
  			return func_169(iParam1, iParam2, iParam3, iParam4);
  		
  		case 227:
  			return 0;
  		
  		case 229:
  		case 230:
  			return func_157(iParam1, iParam2, iParam3, PLAYER::INT_TO_PLAYERINDEX(iParam5), iParam4);
  		
  		case 233:
  			return func_150(iParam1, iParam2, iParam3, PLAYER::INT_TO_PLAYERINDEX(iParam5), iParam4);
  		
  		case 179:
  			return 0;
  		
  		case 182:
  			return 7;
  		
  		case 185:
  			return 6;
  		
  		case 186:
  			return 2;
  		
  		case 180:
  			return 9;
  		
  		case 190:
  			return 8;
  		
  		case 191:
  			return 0;
  		
  		case 192:
  			return func_142(iParam1, iParam2);
  		
  		case 193:
  			return 0;
  		
  		case 194:
  			return 0;
  		
  		case 199:
  			return 0;
  		
  		case 195:
  			return 9;
  		
  		case 201:
  			return 16;
  		
  		case 198:
  			return 12;
  		
  		case 205:
  			return 8;
  		
  		case 207:
  			return 0;
  		
  		case 208:
  			return 15;
  		
  		case 209:
  			return 0;
  		
  		case 210:
  			return 0;
  		
  		case 214:
  			return 9;
  		
  		case 215:
  			return 0;
  		
  		case 216:
  			return 16;
  		
  		case 217:
  			return 0;
  		
  		case 218:
  			return 0;
  		
  		case 219:
  			return 0;
  		
  		case 220:
  			return 30;
  		
  		case 221:
  			return 30;
  		
  		case 237:
  		case 250:
  			return func_139(iParam1, iParam2, iParam3);
  		
  		case 238:
  		case 249:
  			return func_138(iParam1);
  		
  		case 239:
  			return 4;
  		
  		case 240:
  			return 1;
  		
  		case 241:
  			return 1;
  		
  		case 242:
  			return 1;
  		
  		case 244:
  			return 4;
  		
  		case 248:
  			return 5;
  		
  		case 243:
  			return func_134(iParam1, iParam2, PLAYER::INT_TO_PLAYERINDEX(iParam5), iParam4);
  		
  		case 158:
  			return func_130(iParam1, iParam2, PLAYER::INT_TO_PLAYERINDEX(iParam5), iParam4);
  		
  		case 181:
  			return func_127(iParam1, iParam2, PLAYER::INT_TO_PLAYERINDEX(iParam5), iParam4);
  		
  		default:
  	}
  	return 0;
  }
  
  int func_127(int iParam0, int iParam1, int iParam2, int iParam3)
  {
  	int iVar0;
  	
  	iVar0 = func_129(iParam0, iParam1, iParam3);
  	iVar0 = (iVar0 + func_128(iParam0, iParam2));
  	return iVar0;
  }
  
  int func_128(int iParam0, var uParam1)
  {
  	switch (iParam0)
  	{
  		case 2:
  			return 5;
  		
  		default:
  	}
  	return 1;
  }
  
  int func_129(int iParam0, var uParam1, var uParam2)
  {
  	switch (iParam0)
  	{
  		case 0:
  			return 1;
  		
  		default:
  	}
  	return 0;
  }
  
  int func_130(int iParam0, int iParam1, int iParam2, int iParam3)
  {
  	int iVar0;
  	
  	iVar0 = func_133(iParam0, iParam1, iParam3);
  	iVar0 = (iVar0 + func_131(iParam0, iParam2));
  	return iVar0;
  }
  
  int func_131(int iParam0, int iParam1)
  {
  	struct<3> Var0;
  	
  	Var0 = -1;
  	Var0.f_1 = -1;
  	Var0.f_2 = -1;
  	switch (iParam0)
  	{
  		case 4:
  		case 2:
  		case 1:
  		case 3:
  		case 30:
  		case 31:
  		case 32:
  		case 28:
  		case 29:
  		case 52:
  		case 37:
  			return 0;
  		
  		case 19:
  		case 20:
  			return 1;
  		
  		case 38:
  		case 8:
  		case 14:
  		case 17:
  		case 11:
  		case 18:
  		case 21:
  		case 22:
  		case 7:
  		case 34:
  		case 23:
  		case 41:
  		case 49:
  		case 48:
  		case 27:
  		case 15:
  		case 50:
  		case 24:
  		case 6:
  		case 9:
  		case 10:
  		case 47:
  		case 42:
  		case 26:
  		case 25:
  			return 2;
  		
  		case 43:
  			return 3;
  		
  		case 16:
  			return 4;
  		
  		case 12:
  		case 13:
  			if (func_63(iParam1, 1))
  			{
  				Var0 = { func_132(iParam1) };
  			}
  			if (Var0.f_1 == 4)
  			{
  				return 4;
  			}
  			else
  			{
  				return 2;
  			}
  			break;
  		
  		case 33:
  			return 5;
  	}
  	return 1;
  }
  
  Vector3 func_132(int iParam0)
  {
  	return Global_1893548[iParam0 /*600*/].f_11.f_305;
  }
  
  int func_133(int iParam0, int iParam1, var uParam2)
  {
  	switch (iParam0)
  	{
  		case 0:
  			return 5;
  		
  		case 24:
  			return 1;
  		
  		case 10:
  			switch (iParam1)
  			{
  				case 30:
  					return 11;
  				
  				case 31:
  				case 32:
  					return 9;
  				
  				default:
  			}
  			break;
  		
  		case 36:
  			return 0;
  		
  		case 38:
  			return 3;
  		
  		case 40:
  			return 4;
  		
  		case 41:
  			return 4;
  		
  		case 8:
  			return 13;
  		
  		case 13:
  			switch (iParam1)
  			{
  				case 38:
  				case 39:
  					return 10;
  				
  				case 40:
  					return 11;
  				
  				default:
  			}
  			break;
  		
  		case 35:
  			return 5;
  		
  		case 46:
  			return 2;
  		
  		case 9:
  			return 8;
  		
  		case 4:
  			return 7;
  		
  		case 14:
  			return 11;
  		
  		case 17:
  			return 8;
  		
  		case 47:
  			return 11;
  		
  		case 11:
  			return 9;
  		
  		case 18:
  			return 13;
  		
  		case 6:
  			return 17;
  		
  		case 48:
  			return 21;
  		
  		case 33:
  			return 5;
  		
  		case 44:
  			return 2;
  		
  		case 21:
  			return 22;
  		
  		case 22:
  			return 12;
  		
  		case 7:
  			return 10;
  		
  		case 2:
  			return 0;
  		
  		case 34:
  			switch (iParam1)
  			{
  				case 91:
  					return 16;
  				
  				case 92:
  					return 14;
  				
  				default:
  			}
  			break;
  		
  		case 27:
  			return 12;
  		
  		case 23:
  			return 17;
  		
  		case 31:
  			return 3;
  		
  		case 12:
  			return 4;
  		
  		case 3:
  			return 2;
  		
  		case 49:
  			return 15;
  		
  		case 19:
  			return 14;
  		
  		case 50:
  			return 12;
  		
  		case 20:
  			return 12;
  		
  		case 32:
  			return 15;
  		
  		case 30:
  			return 6;
  		
  		case 16:
  			return 12;
  		
  		case 39:
  			return 5;
  		
  		case 42:
  			return 3;
  		
  		case 37:
  			return 19;
  		
  		case 52:
  			return 6;
  		
  		case 15:
  			return 2;
  		
  		case 25:
  			switch (iParam1)
  			{
  				case 69:
  					return 11;
  				
  				case 70:
  					return 12;
  				
  				default:
  			}
  			break;
  	}
  	return 0;
  }
  
  int func_134(int iParam0, int iParam1, int iParam2, int iParam3)
  {
  	int iVar0;
  	
  	iVar0 = func_137(iParam0, iParam1, iParam3);
  	if (!func_136(iParam0))
  	{
  		iVar0 = (iVar0 + func_135(iParam0, iParam2));
  	}
  	return iVar0;
  }
  
  int func_135(int iParam0, int iParam1)
  {
  	switch (iParam0)
  	{
  		case 14:
  		case 5:
  		case 0:
  		case 3:
  		case 2:
  			return 0;
  		
  		case 6:
  			if (func_97(iParam1) + 1 == 1)
  			{
  				return 1;
  			}
  			else
  			{
  				return 2;
  			}
  			break;
  	}
  	return 1;
  }
  
  int func_136(int iParam0)
  {
  	return 0;
  }
  
  int func_137(int iParam0, int iParam1, int iParam2)
  {
  	switch (iParam0)
  	{
  		case 13:
  			return 3;
  		
  		case 5:
  			switch (iParam1)
  			{
  				case 15:
  					return 17;
  				
  				case 16:
  					return 12;
  				
  				case 17:
  					return 12;
  				
  				default:
  			}
  			break;
  		
  		case 11:
  			switch (iParam1)
  			{
  				case 35:
  				case 36:
  					return 1;
  				
  				default:
  			}
  			break;
  		
  		case 6:
  			switch (iParam1)
  			{
  				case 18:
  					return 3;
  				
  				default:
  			}
  			break;
  		
  		case 12:
  			return 15;
  		
  		case 0:
  			return 1;
  		
  		case 9:
  			switch (iParam1)
  			{
  				case 28:
  					switch (iParam2)
  					{
  						case 0:
  							return 1;
  						
  						case 1:
  							return 0;
  						
  						case 2:
  							return 3;
  						
  						default:
  					}
  					break;
  				
  				case 29:
  					switch (iParam2)
  					{
  						case 0:
  							return 1;
  						
  						case 1:
  							return 2;
  						
  						case 2:
  							return 0;
  						
  						default:
  					}
  					break;
  				
  				case 30:
  					switch (iParam2)
  					{
  						case 0:
  							return 0;
  						
  						case 1:
  							return 0;
  						
  						case 2:
  							return 0;
  						
  						default:
  					}
  					break;
  			}
  			break;
  		
  		case 3:
  			switch (iParam1)
  			{
  				case 10:
  					return 6;
  				
  				default:
  			}
  			return 5;
  		
  		case 2:
  			switch (iParam1)
  			{
  				case 6:
  					return 22;
  				
  				case 7:
  					return 23;
  				
  				case 8:
  					return 25;
  				
  				default:
  			}
  			break;
  		
  		case 8:
  			switch (iParam1)
  			{
  				case 25:
  					return 3;
  				
  				case 26:
  					return 8;
  				
  				case 27:
  					return 4;
  				
  				default:
  			}
  			break;
  	}
  	return 0;
  }
  
  int func_138(int iParam0)
  {
  	switch (iParam0)
  	{
  		case 0:
  			return 3;
  		
  		case 1:
  			return 3;
  		
  		case 2:
  			return 4;
  		
  		case 3:
  			return 0;
  		
  		case 4:
  			return 3;
  		
  		case 5:
  			return 0;
  		
  		default:
  	}
  	return 0;
  }
  
  int func_139(int iParam0, int iParam1, int iParam2)
  {
  	int iVar0;
  	
  	iVar0 = func_141(iParam0, iParam1);
  	if (func_140(iParam0))
  	{
  		iVar0 = (iVar0 + iParam2);
  	}
  	return iVar0;
  }
  
  int func_140(int iParam0)
  {
  	return 1;
  }
  
  int func_141(int iParam0, int iParam1)
  {
  	switch (iParam0)
  	{
  		case 12:
  			return 3;
  		
  		case 9:
  			switch (iParam1)
  			{
  				case 71:
  				case 72:
  				case 73:
  					return 3;
  				
  				default:
  			}
  			break;
  		
  		case 11:
  			switch (iParam1)
  			{
  				case 77:
  					return 2;
  				
  				default:
  			}
  			break;
  		
  		case 17:
  			switch (iParam1)
  			{
  				case 102:
  				case 103:
  				case 104:
  					return 4;
  				
  				default:
  			}
  			break;
  		
  		case 23:
  			switch (iParam1)
  			{
  				case 133:
  				case 135:
  					return 1;
  				
  				case 136:
  					return 2;
  				
  				default:
  			}
  			break;
  		
  		case 1:
  			return 10;
  		
  		case 18:
  			return 3;
  		
  		case 3:
  			return 4;
  		
  		case 21:
  			return 2;
  		
  		case 0:
  			switch (iParam1)
  			{
  				case 0:
  					return 9;
  				
  				case 1:
  					return 9;
  				
  				case 2:
  					return 8;
  				
  				case 3:
  					return 6;
  				
  				case 4:
  					return 8;
  				
  				case 5:
  					return 8;
  				
  				case 6:
  					return 8;
  				
  				case 7:
  					return 8;
  				
  				case 8:
  					return 8;
  				
  				case 9:
  					return 6;
  				
  				default:
  			}
  			break;
  	}
  	return 0;
  }
  
  int func_142(int iParam0, int iParam1)
  {
  	int iVar0;
  	
  	iVar0 = func_149(iParam0, iParam1);
  	if (!func_148(iParam0))
  	{
  		iVar0 = (iVar0 + func_143(iParam0, func_147() + 1));
  	}
  	if (iParam0 == 14 || ((((func_148(iParam0) && iParam0 != 9) && iParam0 != 16) && iParam0 != 7) && iParam0 != 17))
  	{
  		iVar0 = (iVar0 + func_143(iParam0, func_147() + 1));
  	}
  	if (iParam0 == 7)
  	{
  		iVar0 += 6;
  	}
  	if (iParam0 == 17)
  	{
  		iVar0 += 2;
  	}
  	return iVar0;
  }
  
  int func_143(int iParam0, int iParam1)
  {
  	int iVar0;
  	int iVar1;
  	int iVar2;
  	
  	if (func_146(iParam0))
  	{
  		iVar0 = 1;
  	}
  	else
  	{
  		if (iVar0 == 0)
  		{
  			iVar0 = iParam1;
  			iVar1 = func_145(iParam0, iParam1);
  			iVar2 = func_144(iParam0);
  			if (iVar0 > iVar1)
  			{
  				iVar0 = iVar1;
  			}
  			else if (iVar0 < iVar2)
  			{
  				iVar0 = iVar2;
  			}
  		}
  		if (func_148(iParam0))
  		{
  			if (iVar0 > Global_262145.f_18180)
  			{
  				iVar0 = Global_262145.f_18180;
  			}
  		}
  		else
  		{
  			if (iVar0 < Global_262145.f_18179)
  			{
  				iVar0 = Global_262145.f_18179;
  			}
  			if (iVar0 > Global_262145.f_18178)
  			{
  				iVar0 = Global_262145.f_18178;
  			}
  		}
  	}
  	return iVar0;
  }
  
  int func_144(int iParam0)
  {
  	switch (iParam0)
  	{
  		case 5:
  			return Global_262145.f_18217;
  		
  		case 10:
  			return Global_262145.f_18242;
  		
  		default:
  	}
  	return 1;
  }
  
  int func_145(int iParam0, int iParam1)
  {
  	if (func_148(iParam0))
  	{
  		if (iParam1 >= Global_262145.f_18181)
  		{
  			return 2;
  		}
  		return 1;
  	}
  	switch (iParam0)
  	{
  		case 5:
  			return Global_262145.f_18218;
  		
  		case 10:
  			return Global_262145.f_18243;
  		
  		default:
  	}
  	return 8;
  }
  
  int func_146(int iParam0)
  {
  	switch (iParam0)
  	{
  		case 15:
  		case 16:
  		case 17:
  		case 18:
  		case 19:
  			return 1;
  		
  		default:
  	}
  	return 0;
  }
  
  int func_147()
  {
  	if (func_75() == func_3())
  	{
  		return 0;
  	}
  	return func_97(func_75());
  }
  
  int func_148(int iParam0)
  {
  	switch (iParam0)
  	{
  		case 14:
  		case 32:
  		case 0:
  		case 2:
  		case 4:
  		case 18:
  		case 6:
  		case 5:
  		case 10:
  		case 12:
  		case 13:
  			return 0;
  		
  		default:
  	}
  	return 1;
  }
  
  int func_149(int iParam0, int iParam1)
  {
  	switch (iParam0)
  	{
  		case 32:
  			switch (iParam1)
  			{
  				case 195:
  					return 3;
  				
  				case 196:
  					return 3;
  				
  				case 197:
  					return 3;
  				
  				case 198:
  					return 3;
  				
  				case 199:
  					return 3;
  				
  				default:
  			}
  			break;
  		
  		case 37:
  			switch (iParam1)
  			{
  				case 231:
  					return 2;
  				
  				default:
  			}
  			break;
  		
  		case 1:
  			switch (iParam1)
  			{
  				case 7:
  					return 9;
  				
  				case 8:
  					return 8;
  				
  				case 9:
  					return 7;
  				
  				case 10:
  					return 4;
  				
  				case 11:
  					return 5;
  				
  				case 12:
  					return 6;
  				
  				default:
  			}
  			break;
  		
  		case 0:
  			switch (iParam1)
  			{
  				case 1:
  					return 10;
  				
  				case 2:
  					return 10;
  				
  				case 3:
  					return 8;
  				
  				case 4:
  					return 10;
  				
  				case 5:
  					return 10;
  				
  				case 6:
  					return 10;
  				
  				default:
  			}
  			break;
  		
  		case 2:
  			switch (iParam1)
  			{
  				case 13:
  					return 10;
  				
  				case 14:
  					return 8;
  				
  				case 15:
  					return 8;
  				
  				case 16:
  					return 8;
  				
  				case 17:
  					return 10;
  				
  				case 18:
  					return 9;
  				
  				default:
  			}
  			break;
  		
  		case 4:
  			switch (iParam1)
  			{
  				case 19:
  					return 5;
  				
  				case 20:
  					return 8;
  				
  				case 21:
  					return 4;
  				
  				case 22:
  					return 0;
  				
  				case 23:
  					return 10;
  				
  				case 24:
  					return 1;
  				
  				default:
  			}
  			break;
  		
  		case 6:
  			switch (iParam1)
  			{
  				case 25:
  					return 20;
  				
  				case 26:
  					return 15;
  				
  				case 27:
  					return 13;
  				
  				case 28:
  					return 16;
  				
  				case 29:
  					return 14;
  				
  				case 30:
  					return 14;
  				
  				default:
  			}
  			break;
  		
  		case 3:
  			switch (iParam1)
  			{
  				case 74:
  					return 7;
  				
  				case 75:
  					return 5;
  				
  				case 76:
  					return 5;
  				
  				case 77:
  					return 4;
  				
  				default:
  			}
  			break;
  		
  		case 8:
  			switch (iParam1)
  			{
  				case 64:
  					return 1;
  				
  				case 67:
  					return 1;
  				
  				default:
  			}
  			break;
  		
  		case 14:
  			switch (iParam1)
  			{
  				case 38:
  					return 6;
  				
  				case 39:
  					return 6;
  				
  				case 40:
  					return 7;
  				
  				case 41:
  					return 6;
  				
  				default:
  			}
  			break;
  	}
  	return 0;
  }
  
  int func_150(int iParam0, int iParam1, int iParam2, int iParam3, int iParam4)
  {
  	int iVar0;
  	
  	iVar0 = func_156(iParam0, iParam1, iParam2, iParam4);
  	if (!func_155(iParam0))
  	{
  		if (iParam3 != func_3())
  		{
  			iVar0 = (iVar0 + func_152(iParam0, func_97(iParam3) + 1, iParam3, -1, iParam2));
  		}
  	}
  	if (func_151(iParam0))
  	{
  		iVar0 = (iVar0 + iParam2);
  	}
  	return iVar0;
  }
  
  int func_151(int iParam0)
  {
  	switch (iParam0)
  	{
  		case 2:
  		case 5:
  		case 7:
  			return 1;
  		
  		default:
  	}
  	return 0;
  }
  
  int func_152(int iParam0, var uParam1, int iParam2, int iParam3, int iParam4)
  {
  	int iVar0;
  	
  	if (iParam4 > 0)
  	{
  		return iParam4;
  	}
  	switch (iParam0)
  	{
  		case 5:
  		case 7:
  		case 6:
  		case 4:
  		case 10:
  			iVar0 = 1;
  			break;
  		
  		case 8:
  			iVar0 = 2;
  			break;
  		
  		case 3:
  		case 2:
  			iVar0 = 4;
  			break;
  		
  		default:
  			if (func_155(iParam0))
  			{
  				iVar0 = 2;
  			}
  			else
  			{
  				iVar0 = 1;
  			}
  			break;
  	}
  	if (iVar0 > func_154(iParam0))
  	{
  		iVar0 = func_154(iParam0);
  	}
  	else if (iVar0 < func_153(iParam0))
  	{
  		iVar0 = func_153(iParam0);
  	}
  	return iVar0;
  }
  
  int func_153(int iParam0)
  {
  	return 1;
  }
  
  int func_154(int iParam0)
  {
  	return 4;
  }
  
  int func_155(int iParam0)
  {
  	switch (iParam0)
  	{
  		case 3:
  		case 2:
  		case 4:
  		case 5:
  		case 6:
  		case 7:
  		case 10:
  			return 1;
  		
  		default:
  	}
  	return 0;
  }
  
  int func_156(int iParam0, int iParam1, var uParam2, var uParam3)
  {
  	int iVar0;
  	
  	switch (iParam0)
  	{
  		case 0:
  			return 0;
  		
  		case 1:
  			return 0;
  		
  		case 2:
  			return 5;
  		
  		case 3:
  			iVar0 = 1;
  			switch (iParam1)
  			{
  				case 26:
  					return iVar0 + 1;
  				
  				case 34:
  					return iVar0 + 1;
  				
  				default:
  			}
  			return iVar0;
  			break;
  		
  		case 4:
  			return 1;
  		
  		case 5:
  			return 1;
  		
  		case 8:
  			return 7;
  		
  		case 12:
  			switch (iParam1)
  			{
  				case 125:
  					return 6;
  				
  				default:
  			}
  			return 2;
  			break;
  		
  		case 9:
  			return 0;
  		
  		case 13:
  			return 1;
  		
  		case 10:
  			return 12;
  	}
  	return 0;
  }
  
  int func_157(int iParam0, int iParam1, int iParam2, int iParam3, int iParam4)
  {
  	int iVar0;
  	
  	iVar0 = func_168(iParam0, iParam1, iParam2, iParam4);
  	if (!func_167(iParam0))
  	{
  		if (iParam3 != func_3())
  		{
  			iVar0 = (iVar0 + func_159(iParam0, func_97(iParam3) + 1, iParam3, -1, iParam2));
  		}
  	}
  	if (func_158(iParam0))
  	{
  		iVar0 = (iVar0 + iParam2);
  	}
  	return iVar0;
  }
  
  int func_158(int iParam0)
  {
  	switch (iParam0)
  	{
  		case 23:
  			return 1;
  		
  		default:
  	}
  	return 0;
  }
  
  int func_159(int iParam0, int iParam1, int iParam2, int iParam3, int iParam4)
  {
  	int iVar0;
  	int iVar1;
  	
  	if (iParam4 > 0)
  	{
  		return iParam4;
  	}
  	if (func_166(iParam0))
  	{
  		iVar1 = func_165(iParam3);
  		switch (iParam0)
  		{
  			case 21:
  				iVar0 = 1;
  				break;
  			
  			case 23:
  				switch (iVar1)
  				{
  					case 1:
  						iVar0 = 1;
  						break;
  					
  					case 2:
  						iVar0 = 2;
  						break;
  					
  					case 3:
  						iVar0 = 2;
  						break;
  				}
  				break;
  			
  			case 15:
  				switch (iVar1)
  				{
  					case 1:
  						iVar0 = 3;
  						break;
  					
  					case 2:
  						iVar0 = 6;
  						break;
  					
  					case 3:
  						iVar0 = 8;
  						break;
  				}
  				break;
  			
  			case 20:
  			case 24:
  			case 22:
  			case 16:
  			case 17:
  				switch (iVar1)
  				{
  					case 1:
  						iVar0 = 1;
  						break;
  					
  					case 2:
  						iVar0 = 2;
  						break;
  					
  					case 3:
  						iVar0 = 3;
  						break;
  				}
  				break;
  			
  			case 25:
  				switch (iVar1)
  				{
  					case 1:
  						iVar0 = 2;
  						break;
  					
  					case 2:
  						iVar0 = 3;
  						break;
  					
  					case 3:
  						iVar0 = 3;
  						break;
  				}
  				break;
  		}
  		return iVar0;
  	}
  	else if (func_164(iParam0))
  	{
  		iVar0 = 1;
  		return iVar0;
  	}
  	else
  	{
  		iVar0 = iParam1;
  		if (iVar0 > func_163(iParam2))
  		{
  			iVar0 = func_163(iParam2);
  		}
  	}
  	if (iVar0 > func_161(iParam0))
  	{
  		iVar0 = func_161(iParam0);
  	}
  	else if (iVar0 < func_160(iParam0))
  	{
  		iVar0 = func_160(iParam0);
  	}
  	return iVar0;
  }
  
  int func_160(int iParam0)
  {
  	switch (iParam0)
  	{
  		case 15:
  			return 3;
  		
  		default:
  	}
  	return 1;
  }
  
  int func_161(int iParam0)
  {
  	if (!func_166(iParam0))
  	{
  		if (func_167(iParam0))
  		{
  			if (func_162(iParam0))
  			{
  				return 2;
  			}
  			return 3;
  		}
  	}
  	else
  	{
  		switch (iParam0)
  		{
  			case 21:
  				return 1;
  			
  			case 23:
  				return 2;
  			
  			case 15:
  				return 9;
  			
  			default:
  		}
  		return 3;
  	}
  	return 4;
  }
  
  int func_162(int iParam0)
  {
  	switch (iParam0)
  	{
  		case 12:
  			return 1;
  		
  		default:
  	}
  	return 0;
  }
  
  int func_163(int iParam0)
  {
  	if (iParam0 == func_3() || Global_1853128[iParam0 /*888*/].f_267.f_274 == 0)
  	{
  		return 50;
  	}
  	return (50 - Global_1853128[iParam0 /*888*/].f_267.f_274.f_3);
  }
  
  int func_164(int iParam0)
  {
  	switch (iParam0)
  	{
  		case 26:
  			return 1;
  		
  		default:
  	}
  	return 0;
  }
  
  int func_165(int iParam0)
  {
  	if (iParam0 > 25)
  	{
  		return 3;
  	}
  	else if (iParam0 > 10)
  	{
  		return 2;
  	}
  	return 1;
  }
  
  int func_166(int iParam0)
  {
  	switch (iParam0)
  	{
  		case 15:
  		case 16:
  		case 17:
  		case 18:
  		case 19:
  		case 20:
  		case 21:
  		case 22:
  		case 23:
  		case 24:
  		case 25:
  			return 1;
  		
  		default:
  	}
  	return 0;
  }
  
  int func_167(int iParam0)
  {
  	if (func_166(iParam0) || func_164(iParam0))
  	{
  		return 1;
  	}
  	return 0;
  }
  
  int func_168(int iParam0, int iParam1, int iParam2, var uParam3)
  {
  	switch (iParam0)
  	{
  		case 1:
  			return 1;
  		
  		case 2:
  			return 12;
  		
  		case 11:
  			return 1;
  		
  		case 5:
  			return 10;
  		
  		case 12:
  			switch (iParam1)
  			{
  				case 0:
  					return 3;
  				
  				case 1:
  					return 3;
  				
  				case 2:
  					return 10;
  				
  				default:
  			}
  			break;
  		
  		case 10:
  			switch (iParam1)
  			{
  				case 34:
  					return 17;
  				
  				case 35:
  					return 20;
  				
  				case 36:
  					return 22;
  				
  				default:
  			}
  			break;
  		
  		case 9:
  			switch (iParam1)
  			{
  				case 6:
  					return 9;
  				
  				case 7:
  					return 0;
  				
  				case 8:
  					return 5;
  				
  				default:
  			}
  			break;
  		
  		case 0:
  			switch (iParam2)
  			{
  				case 1:
  					return 7;
  				
  				case 2:
  					return 14;
  				
  				case 3:
  					return 14;
  				
  				case 4:
  					return 14;
  				
  				default:
  			}
  			break;
  		
  		case 8:
  			return 2;
  		
  		case 23:
  			return (2 * iParam2);
  		
  		case 24:
  			return (2 * iParam2);
  		
  		case 26:
  			return 2;
  	}
  	return 0;
  }
  
  int func_169(int iParam0, int iParam1, int iParam2, int iParam3)
  {
  	int iVar0;
  	
  	iVar0 = func_174(iParam0, iParam1, iParam2, iParam3);
  	if (!func_173(iParam0))
  	{
  		iVar0 = (iVar0 + func_171(iParam0, func_147() + 1, -1, iParam2));
  	}
  	if (func_170(iParam0))
  	{
  		iVar0 = (iVar0 + iParam2);
  	}
  	return iVar0;
  }
  
  int func_170(int iParam0)
  {
  	switch (iParam0)
  	{
  		case 0:
  		case 12:
  		case 6:
  		case 14:
  		case 15:
  		case 16:
  		case 17:
  		case 7:
  			return 1;
  		
  		default:
  	}
  	return 0;
  }
  
  int func_171(int iParam0, int iParam1, int iParam2, int iParam3)
  {
  	int iVar0;
  	
  	if (iParam3 > 0)
  	{
  		return iParam3;
  	}
  	if (func_172(iParam0))
  	{
  		if (iParam2 <= Global_262145.f_21474)
  		{
  			iVar0 = 1;
  			if (iParam0 == 15)
  			{
  				iVar0 = 2;
  			}
  		}
  		else if (iParam2 <= Global_262145.f_21475)
  		{
  			iVar0 = 2;
  			if (iParam0 == 18)
  			{
  				iVar0 = 1;
  			}
  		}
  		else
  		{
  			iVar0 = 3;
  			if (iParam0 == 18)
  			{
  				iVar0 = 2;
  			}
  			else if (iParam0 == 19 || iParam0 == 2)
  			{
  				iVar0 = 4;
  			}
  		}
  	}
  	else if (iParam0 == 8)
  	{
  		if (iParam1 < 4)
  		{
  			iVar0 = 1;
  		}
  		else
  		{
  			iVar0 = 2;
  		}
  	}
  	else if (iParam0 == 0 || iParam0 == 20)
  	{
  		iVar0 = 1;
  	}
  	else if (func_173(iParam0))
  	{
  		if (iParam1 < Global_262145.f_21434)
  		{
  			iVar0 = 1;
  		}
  		else
  		{
  			iVar0 = 2;
  		}
  	}
  	else
  	{
  		iVar0 = iParam1;
  	}
  	if (iVar0 == 0)
  	{
  		iVar0 = 1;
  	}
  	return iVar0;
  }
  
  int func_172(int iParam0)
  {
  	switch (iParam0)
  	{
  		case 14:
  		case 15:
  		case 16:
  		case 17:
  		case 18:
  		case 19:
  			return 1;
  		
  		default:
  	}
  	return 0;
  }
  
  int func_173(int iParam0)
  {
  	switch (iParam0)
  	{
  		case 0:
  		case 3:
  		case 6:
  		case 7:
  		case 10:
  		case 11:
  		case 12:
  		case 14:
  		case 15:
  		case 16:
  		case 17:
  		case 19:
  		case 18:
  			return 1;
  		
  		default:
  	}
  	return 0;
  }
  
  int func_174(int iParam0, int iParam1, int iParam2, int iParam3)
  {
  	switch (iParam0)
  	{
  		case 0:
  			return 0;
  		
  		case 1:
  			switch (iParam1)
  			{
  				case 0:
  					return 3;
  				
  				case 1:
  					return 6;
  				
  				case 2:
  					return 8;
  				
  				default:
  			}
  			break;
  		
  		case 2:
  			switch (iParam1)
  			{
  				case 3:
  					return 0;
  				
  				case 4:
  					return 0;
  				
  				case 5:
  					return 0;
  				
  				case 6:
  					return 0;
  				
  				case 7:
  					return 0;
  				
  				case 8:
  					return 0;
  				
  				default:
  			}
  			break;
  		
  		case 3:
  			switch (iParam1)
  			{
  				case 9:
  					return 0;
  				
  				case 10:
  					return 0;
  				
  				case 11:
  					return 0;
  				
  				case 12:
  					return 0;
  				
  				default:
  			}
  			break;
  		
  		case 4:
  			switch (iParam1)
  			{
  				case 14:
  					return 10;
  				
  				case 15:
  					return 12;
  				
  				case 13:
  					return 2;
  				
  				default:
  			}
  			break;
  		
  		case 5:
  			switch (iParam1)
  			{
  				case 16:
  					return 0;
  				
  				case 17:
  					return 0;
  				
  				case 18:
  					return 0;
  				
  				default:
  			}
  			break;
  		
  		case 6:
  			switch (iParam1)
  			{
  				case 19:
  					return 15;
  				
  				case 20:
  					return 15;
  				
  				case 21:
  					return 11;
  				
  				default:
  			}
  			break;
  		
  		case 7:
  			switch (iParam1)
  			{
  				case 22:
  					return 10;
  				
  				case 23:
  					return 7;
  				
  				case 24:
  					return 6;
  				
  				default:
  			}
  			break;
  		
  		case 8:
  			switch (iParam1)
  			{
  				case 25:
  					return (6 + iParam2 * 2);
  				
  				case 26:
  					return (7 + iParam2 * 2);
  				
  				default:
  			}
  			break;
  		
  		case 9:
  			switch (iParam1)
  			{
  				case 27:
  					return 9;
  				
  				case 28:
  					return 10;
  				
  				default:
  			}
  			break;
  		
  		case 10:
  			switch (iParam1)
  			{
  				case 29:
  					return 6;
  				
  				case 30:
  					return 6;
  				
  				case 31:
  					return 6;
  				
  				default:
  			}
  			break;
  		
  		case 11:
  			switch (iParam1)
  			{
  				case 32:
  					return 8;
  				
  				case 33:
  					return 8;
  				
  				case 34:
  					return 8;
  				
  				default:
  			}
  			break;
  		
  		case 12:
  			return 0;
  		
  		case 13:
  			switch (iParam1)
  			{
  				case 35:
  					return 18;
  				
  				case 36:
  					return 9;
  				
  				case 37:
  					return 0;
  				
  				default:
  			}
  			break;
  		
  		case 14:
  			switch (iParam3)
  			{
  				case 0:
  					return 9;
  				
  				case 1:
  					return 16;
  				
  				case 2:
  					return 6;
  				
  				case 3:
  					return 3;
  				
  				case 4:
  					return 9;
  				
  				case 5:
  					return 6;
  				
  				case 6:
  					return 6;
  				
  				case 7:
  					return 3;
  				
  				case 8:
  					return 3;
  				
  				case 9:
  					return 3;
  				
  				case 10:
  					return 0;
  				
  				case 11:
  					return 9;
  				
  				case 12:
  					return 3;
  				
  				default:
  			}
  			break;
  		
  		case 15:
  			return iParam2;
  		
  		case 16:
  			return 0;
  		
  		case 17:
  			return 0;
  		
  		case 18:
  			return 0;
  		
  		case 19:
  			return 0;
  		
  		case 20:
  			return 13;
  	}
  	return 0;
  }
  
  int func_175(int iParam0, int iParam1, var uParam2)
  {
  	int iVar0;
  	
  	iVar0 = func_176(iParam0, iParam1);
  	if (iParam0 == 15)
  	{
  		iVar0++;
  	}
  	return iVar0;
  }
  
  int func_176(int iParam0, int iParam1)
  {
  	switch (iParam0)
  	{
  		case 6:
  			switch (iParam1)
  			{
  				case 18:
  					return 9;
  				
  				case 19:
  					return 7;
  				
  				case 20:
  					return 8;
  				
  				default:
  			}
  			break;
  		
  		case 9:
  			switch (iParam1)
  			{
  				case 27:
  					return 1;
  				
  				case 28:
  					return 1;
  				
  				case 29:
  					return 1;
  				
  				default:
  			}
  			break;
  		
  		case 10:
  			switch (iParam1)
  			{
  				case 21:
  					return 2;
  				
  				case 22:
  					return 2;
  				
  				case 23:
  					return 2;
  				
  				default:
  			}
  			break;
  		
  		case 14:
  			switch (iParam1)
  			{
  				case 36:
  					return 8;
  				
  				case 37:
  					return 7;
  				
  				case 38:
  					return 8;
  				
  				default:
  			}
  			break;
  		
  		case 2:
  			switch (iParam1)
  			{
  				case 39:
  					return 8;
  				
  				case 40:
  					return 6;
  				
  				case 41:
  					return 2;
  				
  				default:
  			}
  			break;
  		
  		case 4:
  			switch (iParam1)
  			{
  				case 1:
  					return 5;
  				
  				case 2:
  					return 5;
  				
  				case 3:
  					return 5;
  				
  				default:
  			}
  			break;
  		
  		case 17:
  			switch (iParam1)
  			{
  				case 42:
  					return 1;
  				
  				case 43:
  					return 1;
  				
  				case 44:
  					return 1;
  				
  				default:
  			}
  			break;
  		
  		case 15:
  			switch (iParam1)
  			{
  				case 45:
  					return 12;
  				
  				case 46:
  					return 12;
  				
  				case 47:
  					return 12;
  				
  				default:
  			}
  			break;
  		
  		case 16:
  			switch (iParam1)
  			{
  				case 48:
  					return 7;
  				
  				case 49:
  					return 7;
  				
  				case 50:
  					return 7;
  				
  				default:
  			}
  			break;
  		
  		case 12:
  			return 3;
  	}
  	return 0;
  }
  
  int func_177(int iParam0)
  {
  	switch (iParam0)
  	{
  		case 0:
  			return 0;
  		
  		case 1:
  			return 0;
  		
  		case 2:
  			return 0;
  		
  		case 3:
  			return 0;
  		
  		case 4:
  			return 0;
  		
  		case 5:
  			return 0;
  		
  		case 6:
  			return 0;
  		
  		case 7:
  			return 0;
  		
  		case 8:
  			return 0;
  		
  		case 9:
  			return 0;
  		
  		case 10:
  			return 0;
  		
  		case 11:
  			return 0;
  		
  		case 12:
  			return 3;
  		
  		case 13:
  			return 0;
  		
  		case 14:
  			return 0;
  		
  		case 15:
  			return 0;
  		
  		case 16:
  			return 1;
  		
  		case 17:
  			return 3;
  		
  		case 19:
  			return 0;
  		
  		case 18:
  			return 0;
  		
  		default:
  	}
  	return 1;
  }
  
  int func_178(int iParam0, int iParam1, int iParam2, int iParam3, int iParam4, int iParam5)
  {
  	switch (iParam0)
  	{
  		case 148:
  		case 152:
  		case 162:
  		case 160:
  		case 163:
  			return 0;
  		
  		case 157:
  			return 4;
  		
  		case 167:
  			return func_220(iParam1);
  		
  		case 170:
  			return 2;
  		
  		case 171:
  			return 0;
  		
  		case 172:
  			return 5;
  		
  		case 173:
  			return 14;
  		
  		case 168:
  			return 8;
  		
  		case 178:
  		case 188:
  			return func_216(iParam1, iParam3, iParam4);
  		
  		case 225:
  		case 226:
  			return func_212(iParam1, iParam3, iParam4, 0, 0);
  		
  		case 227:
  			return 0;
  		
  		case 229:
  		case 230:
  			return func_206(iParam1, iParam3, iParam4, PLAYER::INT_TO_PLAYERINDEX(iParam5), 0, 0, 0);
  		
  		case 233:
  			return func_200(iParam1, iParam3, iParam4, PLAYER::INT_TO_PLAYERINDEX(iParam5), 0, 0, 0);
  			return 6;
  		
  		case 190:
  			return 18;
  		
  		case 191:
  			return 0;
  		
  		case 192:
  			return func_199(iParam1, iParam3);
  		
  		case 179:
  			return 0;
  		
  		case 183:
  			return 5;
  		
  		case 182:
  			return 14;
  		
  		case 185:
  			return 24;
  		
  		case 186:
  			return 13;
  		
  		case 180:
  			return 6;
  		
  		case 193:
  			return 6;
  		
  		case 194:
  			return 0;
  		
  		case 197:
  			return 4;
  		
  		case 199:
  			return 0;
  		
  		case 195:
  			return 20;
  		
  		case 201:
  			return 0;
  		
  		case 198:
  			return 8;
  		
  		case 205:
  			return 1;
  		
  		case 207:
  			return 8;
  		
  		case 208:
  			return 2;
  		
  		case 209:
  			return 6;
  		
  		case 210:
  			return 0;
  		
  		case 214:
  			return 5;
  		
  		case 215:
  			return 11;
  		
  		case 216:
  			return 8;
  		
  		case 217:
  			return 24;
  		
  		case 218:
  			return 23;
  		
  		case 219:
  			return 1;
  		
  		case 220:
  			return 4;
  		
  		case 221:
  			return 4;
  		
  		case 237:
  		case 250:
  			return func_198(iParam1, iParam3, iParam4);
  		
  		case 238:
  		case 249:
  			return func_197(iParam1);
  		
  		case 239:
  			return 4;
  		
  		case 240:
  			return 11;
  		
  		case 241:
  			return 3;
  		
  		case 242:
  			return 5;
  		
  		case 244:
  			return 4;
  		
  		case 248:
  			return 1;
  		
  		case 243:
  			return func_191(iParam1, iParam3, PLAYER::INT_TO_PLAYERINDEX(iParam5), 0, -1, 0, 0);
  		
  		case 158:
  			return func_185(iParam1, iParam3, PLAYER::INT_TO_PLAYERINDEX(iParam5), 0, -1, 0, 0);
  		
  		case 181:
  			return func_179(iParam1, iParam3, PLAYER::INT_TO_PLAYERINDEX(iParam5), 0, -1, 0, 0);
  		
  		default:
  	}
  	return 0;
  }
  
  int func_179(int iParam0, int iParam1, int iParam2, bool bParam3, int iParam4, bool bParam5, bool bParam6)
  {
  	int iVar0;
  	
  	switch (iParam0)
  	{
  		case 0:
  			iVar0 = iVar0;
  			break;
  	}
  	if (!bParam5)
  	{
  		iVar0 = (iVar0 + func_184(iParam0, -1));
  	}
  	if (!bParam6)
  	{
  		if (func_183(0, iParam1) != -1)
  		{
  			iVar0 = (iVar0 + func_182(func_97(iParam2) + 1, iParam0, iParam2));
  		}
  	}
  	if (!bParam3)
  	{
  		if (func_181(iParam0, iParam1))
  		{
  			iVar0 = (iVar0 + func_180(iParam0, iParam1));
  		}
  	}
  	return iVar0;
  }
  
  int func_180(int iParam0, int iParam1)
  {
  	switch (iParam0)
  	{
  		case 2:
  			return 2;
  		
  		default:
  	}
  	return 0;
  }
  
  bool func_181(int iParam0, int iParam1)
  {
  	return func_180(iParam0, iParam1) > 0;
  }
  
  int func_182(var uParam0, int iParam1, int iParam2)
  {
  	switch (iParam1)
  	{
  		case 2:
  			return 3;
  		
  		default:
  	}
  	return 1;
  }
  
  int func_183(int iParam0, int iParam1)
  {
  	switch (iParam1)
  	{
  		case 0:
  			switch (iParam0)
  			{
  				case 0:
  					return 0;
  				
  				case 1:
  					return 0;
  				
  				default:
  			}
  			break;
  	}
  	return -1;
  }
  
  int func_184(int iParam0, int iParam1)
  {
  	switch (iParam0)
  	{
  		case 2:
  			return 0;
  		
  		default:
  	}
  	return 0;
  }
  
  int func_185(int iParam0, int iParam1, int iParam2, bool bParam3, int iParam4, bool bParam5, bool bParam6)
  {
  	int iVar0;
  	
  	switch (iParam0)
  	{
  		case 0:
  			iVar0++;
  			break;
  		
  		case 24:
  			iVar0++;
  			break;
  		
  		case 10:
  			switch (iParam1)
  			{
  				case 30:
  					iVar0 += 4;
  					break;
  				
  				case 31:
  				case 32:
  					iVar0 += 3;
  					break;
  			}
  			break;
  		
  		case 33:
  			switch (iParam1)
  			{
  				case 89:
  					iVar0++;
  					break;
  				
  				case 90:
  					iVar0 += 2;
  					break;
  			}
  			break;
  		
  		case 36:
  			iVar0 += 2;
  			break;
  		
  		case 37:
  			iVar0 += 2;
  			break;
  		
  		case 38:
  			iVar0++;
  			break;
  		
  		case 8:
  			iVar0 += 7;
  			break;
  		
  		case 13:
  			switch (iParam1)
  			{
  				case 38:
  					iVar0 += 3;
  					break;
  				
  				case 39:
  					iVar0 += 3;
  					break;
  				
  				case 40:
  					iVar0 += 4;
  					break;
  			}
  			break;
  		
  		case 16:
  			iVar0 += 12;
  			break;
  		
  		case 35:
  			iVar0 += 4;
  			break;
  		
  		case 4:
  			iVar0 += 16;
  			break;
  		
  		case 46:
  			iVar0++;
  			break;
  		
  		case 9:
  			iVar0 += 7;
  			break;
  		
  		case 14:
  			iVar0 += 7;
  			break;
  		
  		case 17:
  			iVar0 += 7;
  			break;
  		
  		case 47:
  			iVar0 += 2;
  			break;
  		
  		case 11:
  			iVar0 += 3;
  			break;
  		
  		case 18:
  			iVar0 += 4;
  			break;
  		
  		case 6:
  			iVar0 += 11;
  			break;
  		
  		case 48:
  			iVar0 += 2;
  			break;
  		
  		case 44:
  			iVar0 += 2;
  			break;
  		
  		case 21:
  			iVar0 += 8;
  			break;
  		
  		case 22:
  			iVar0 += 3;
  			break;
  		
  		case 7:
  			iVar0 += 7;
  			break;
  		
  		case 15:
  			iVar0++;
  			break;
  		
  		case 2:
  			iVar0++;
  			break;
  		
  		case 34:
  			iVar0 += 5;
  			break;
  		
  		case 27:
  			iVar0 += 9;
  			break;
  		
  		case 26:
  			iVar0 += 3;
  			break;
  		
  		case 31:
  			iVar0++;
  			break;
  		
  		case 3:
  			iVar0 += 21;
  			break;
  		
  		case 12:
  			iVar0 += 20;
  			break;
  		
  		case 41:
  			iVar0 += 11;
  			break;
  		
  		case 49:
  			iVar0 += 3;
  			break;
  		
  		case 29:
  			iVar0++;
  			break;
  		
  		case 5:
  			iVar0 += 3;
  			break;
  		
  		case 50:
  			iVar0 += 4;
  			break;
  		
  		case 23:
  			iVar0 += 4;
  			break;
  		
  		case 20:
  			iVar0 += 3;
  			break;
  		
  		case 32:
  			iVar0 = iVar0;
  			break;
  		
  		case 51:
  			iVar0 += 4;
  			break;
  		
  		case 52:
  			iVar0 += 6;
  			break;
  		
  		case 39:
  			iVar0 += 2;
  			break;
  		
  		case 40:
  			iVar0++;
  			break;
  		
  		case 25:
  			iVar0 += 3;
  			break;
  	}
  	if (!bParam5)
  	{
  		iVar0 = (iVar0 + func_190(iParam0, -1));
  	}
  	if (!bParam6)
  	{
  		if (func_189(0, iParam1) != -1)
  		{
  			iVar0 = (iVar0 + func_188(func_97(iParam2) + 1, iParam0, iParam2));
  		}
  	}
  	if (!bParam3)
  	{
  		if (func_187(iParam0, iParam1))
  		{
  			iVar0 = (iVar0 + func_186(iParam0, iParam1));
  		}
  	}
  	return iVar0;
  }
  
  int func_186(int iParam0, int iParam1)
  {
  	switch (iParam0)
  	{
  		case 0:
  		case 13:
  		case 18:
  		case 34:
  		case 27:
  		case 49:
  		case 48:
  		case 6:
  		case 50:
  		case 7:
  		case 16:
  		case 47:
  		case 5:
  		case 25:
  		case 26:
  		case 22:
  		case 11:
  		case 17:
  		case 14:
  			return 2;
  		
  		default:
  	}
  	return 0;
  }
  
  bool func_187(int iParam0, int iParam1)
  {
  	return func_186(iParam0, iParam1) > 0;
  }
  
  int func_188(int iParam0, int iParam1, int iParam2)
  {
  	struct<3> Var0;
  	
  	Var0 = -1;
  	Var0.f_1 = -1;
  	Var0.f_2 = -1;
  	switch (iParam1)
  	{
  		case 43:
  			return 3;
  		
  		case 17:
  		case 18:
  		case 15:
  			return 2;
  		
  		case 12:
  		case 13:
  			if (iParam2 != func_3())
  			{
  				if (func_63(iParam2, 1))
  				{
  					Var0 = { func_132(iParam2) };
  				}
  			}
  			else
  			{
  				return 4;
  			}
  			if (Var0.f_1 == 4)
  			{
  				return 4;
  			}
  			else
  			{
  				return 2;
  			}
  			break;
  		
  		case 53:
  			if (iParam0 == 1)
  			{
  			}
  			break;
  	}
  	return 1;
  }
  
  int func_189(int iParam0, int iParam1)
  {
  	switch (iParam1)
  	{
  		case 96:
  		case 97:
  		case 98:
  		case 108:
  		case 109:
  		case 110:
  		case 118:
  		case 119:
  		case 120:
  		case 105:
  		case 106:
  		case 107:
  			return 0;
  		
  		case 66:
  		case 67:
  		case 68:
  		case 30:
  		case 31:
  		case 32:
  		case 121:
  		case 122:
  		case 123:
  			return 1;
  		
  		case 93:
  		case 94:
  		case 95:
  			return 3;
  		
  		case 0:
  		case 1:
  		case 2:
  		case 3:
  		case 4:
  			return 1;
  		
  		case 116:
  		case 117:
  			return 2;
  		
  		case 20:
  			return 9;
  		
  		case 21:
  			return 5;
  		
  		case 27:
  		case 28:
  		case 29:
  			return 7;
  		
  		case 114:
  		case 115:
  			return iParam0;
  		
  		case 46:
  		case 47:
  		case 48:
  			switch (iParam0)
  			{
  				case 0:
  					return 2;
  				
  				case 1:
  					return 3;
  				
  				case 2:
  					return 4;
  				
  				case 3:
  					return 5;
  				
  				default:
  			}
  			break;
  		
  		case 38:
  		case 39:
  		case 40:
  			switch (iParam0)
  			{
  				case 0:
  					return 3;
  				
  				case 1:
  					return 4;
  				
  				case 2:
  					return 5;
  				
  				case 3:
  					return 6;
  				
  				default:
  			}
  			break;
  		
  		case 41:
  		case 42:
  			switch (iParam0)
  			{
  				case 0:
  					return 5;
  				
  				case 1:
  					return 6;
  				
  				default:
  			}
  			break;
  		
  		case 49:
  		case 50:
  			switch (iParam0)
  			{
  				case 0:
  					return 7;
  				
  				case 1:
  					return 8;
  				
  				default:
  			}
  			break;
  		
  		case 33:
  		case 34:
  		case 35:
  			switch (iParam0)
  			{
  				case 0:
  				case 1:
  					return 3;
  				
  				default:
  			}
  			break;
  		
  		case 51:
  		case 52:
  			switch (iParam0)
  			{
  				case 0:
  					return 1;
  				
  				case 1:
  					return 2;
  				
  				default:
  			}
  			break;
  		
  		case 43:
  		case 44:
  		case 45:
  			switch (iParam0)
  			{
  				case 0:
  					return 1;
  				
  				case 1:
  					return 2;
  				
  				default:
  			}
  			break;
  		
  		case 36:
  		case 37:
  			switch (iParam0)
  			{
  				case 0:
  					return 20;
  				
  				case 1:
  					return 21;
  				
  				case 2:
  					return 22;
  				
  				case 3:
  					return 23;
  				
  				default:
  			}
  			break;
  		
  		case 17:
  		case 18:
  		case 19:
  			return 3;
  		
  		case 131:
  			return 4;
  	}
  	return -1;
  }
  
  int func_190(int iParam0, int iParam1)
  {
  	switch (iParam0)
  	{
  		case 53:
  			return 0;
  		
  		default:
  	}
  	return 0;
  }
  
  int func_191(int iParam0, int iParam1, int iParam2, bool bParam3, int iParam4, bool bParam5, bool bParam6)
  {
  	int iVar0;
  	
  	switch (iParam0)
  	{
  		case 13:
  			iVar0 += 4;
  			break;
  		
  		case 1:
  			iVar0 += 10;
  			break;
  		
  		case 15:
  			iVar0 += 21;
  			break;
  		
  		case 14:
  			iVar0 += 2;
  			break;
  		
  		case 11:
  			switch (iParam1)
  			{
  				case 35:
  					iVar0 += 4;
  					break;
  				
  				case 36:
  					iVar0 += 5;
  					break;
  				
  				case 37:
  					iVar0 += 5;
  					break;
  			}
  			break;
  		
  		case 5:
  			iVar0 += 3;
  			break;
  		
  		case 6:
  			iVar0 += 2;
  			break;
  		
  		case 0:
  			switch (iParam1)
  			{
  				case 0:
  					iVar0 += 5;
  					break;
  				
  				case 1:
  					iVar0 += 5;
  					break;
  			}
  			break;
  		
  		case 10:
  			switch (iParam1)
  			{
  				case 31:
  					iVar0 += 2;
  					break;
  				
  				case 32:
  					iVar0++;
  					break;
  				
  				case 33:
  					iVar0 += 2;
  					break;
  				
  				case 34:
  					iVar0 += 2;
  					break;
  			}
  			break;
  		
  		case 12:
  			iVar0 += 3;
  			break;
  		
  		case 9:
  			switch (iParam1)
  			{
  				case 28:
  					switch (iParam4)
  					{
  						case 0:
  							iVar0 += 3;
  							break;
  						
  						case 1:
  							iVar0 += 4;
  							break;
  						
  						case 2:
  							iVar0 += 3;
  							break;
  					}
  					break;
  				
  				case 29:
  					switch (iParam4)
  					{
  						case 0:
  							iVar0 += 4;
  							break;
  						
  						case 1:
  							iVar0 += 3;
  							break;
  						
  						case 2:
  							iVar0 += 3;
  							break;
  					}
  					break;
  				
  				case 30:
  					switch (iParam4)
  					{
  						case 0:
  							iVar0 += 3;
  							break;
  						
  						case 1:
  							iVar0 += 3;
  							break;
  						
  						case 2:
  							iVar0 += 3;
  							break;
  					}
  					break;
  			}
  			break;
  		
  		case 3:
  			iVar0 += 6;
  			break;
  		
  		case 4:
  			switch (iParam1)
  			{
  				case 12:
  					iVar0 += 7;
  					break;
  				
  				case 13:
  					iVar0 += 10;
  					break;
  				
  				case 14:
  					iVar0 += 8;
  					break;
  			}
  			break;
  		
  		case 2:
  			iVar0 += 3;
  			break;
  		
  		case 8:
  			iVar0 = iVar0;
  			break;
  		
  		case 7:
  			iVar0++;
  			break;
  	}
  	if (!bParam5)
  	{
  		if (func_136(iParam0))
  		{
  			iVar0 = (iVar0 + func_135(iParam0, iParam2));
  		}
  		iVar0 = (iVar0 + func_196(iParam0, -1));
  	}
  	if (!bParam6)
  	{
  		if (func_195(0, iParam1) != -1)
  		{
  			iVar0 = (iVar0 + func_194(func_97(iParam2) + 1, iParam0));
  		}
  	}
  	if (!bParam3)
  	{
  		if (func_193(iParam0, iParam1))
  		{
  			iVar0 = (iVar0 + func_192(iParam0, iParam1));
  		}
  	}
  	return iVar0;
  }
  
  int func_192(int iParam0, int iParam1)
  {
  	switch (iParam0)
  	{
  		case 4:
  		case 9:
  		case 8:
  			return 2;
  		
  		default:
  	}
  	switch (iParam1)
  	{
  		case 37:
  			return 2;
  		
  		default:
  	}
  	return 0;
  }
  
  bool func_193(int iParam0, int iParam1)
  {
  	return func_192(iParam0, iParam1) > 0;
  }
  
  int func_194(int iParam0, int iParam1)
  {
  	switch (iParam1)
  	{
  		case 6:
  			if (iParam0 == 1)
  			{
  				return 1;
  			}
  			else
  			{
  				return 2;
  			}
  			break;
  	}
  	return 1;
  }
  
  int func_195(int iParam0, int iParam1)
  {
  	switch (iParam1)
  	{
  		case 46:
  		case 47:
  		case 48:
  			switch (iParam0)
  			{
  				case 0:
  					return 20;
  				
  				default:
  			}
  			break;
  		
  		case 35:
  		case 36:
  		case 37:
  			return 0;
  		
  		case 2:
  		case 3:
  		case 4:
  		case 5:
  			return 0;
  		
  		case 28:
  		case 29:
  		case 30:
  			return 0;
  		
  		case 18:
  		case 19:
  		case 20:
  		case 21:
  			switch (iParam0)
  			{
  				case 0:
  					return 2;
  				
  				case 1:
  					return 3;
  				
  				default:
  			}
  			break;
  		
  		case 31:
  		case 32:
  		case 33:
  		case 34:
  			return 0;
  		
  		case 38:
  		case 39:
  		case 40:
  			return 0;
  		
  		case 12:
  			return 6;
  		
  		case 13:
  			return 9;
  		
  		case 14:
  			return 7;
  		
  		case 22:
  		case 23:
  		case 24:
  			return 0;
  		
  		case 25:
  		case 26:
  		case 27:
  			return 0;
  	}
  	return -1;
  }
  
  int func_196(int iParam0, int iParam1)
  {
  	switch (iParam0)
  	{
  		case 16:
  			return 0;
  		
  		default:
  	}
  	return 0;
  }
  
  int func_197(int iParam0)
  {
  	switch (iParam0)
  	{
  		case 0:
  			return 5;
  		
  		case 1:
  			return 4;
  		
  		case 2:
  			return 6;
  		
  		case 3:
  			return 1;
  		
  		case 4:
  			return 3;
  		
  		case 5:
  			return 4;
  		
  		default:
  	}
  	return 0;
  }
  
  int func_198(int iParam0, int iParam1, int iParam2)
  {
  	int iVar0;
  	
  	switch (iParam0)
  	{
  		case 12:
  			switch (iParam1)
  			{
  				case 80:
  					iVar0++;
  					break;
  				
  				case 81:
  					iVar0++;
  					break;
  				
  				case 82:
  					iVar0++;
  					break;
  			}
  			break;
  		
  		case 22:
  			iVar0 += 4;
  			break;
  		
  		case 18:
  			iVar0 += 4;
  			break;
  		
  		case 9:
  			switch (iParam1)
  			{
  				case 71:
  				case 72:
  				case 73:
  					iVar0 += 3;
  					break;
  			}
  			break;
  		
  		case 11:
  			switch (iParam1)
  			{
  				case 77:
  				case 78:
  				case joaat("mpsv_lp0_31"):
  					iVar0 += 2;
  					break;
  			}
  			break;
  		
  		case 15:
  			iVar0++;
  			break;
  		
  		case 23:
  			iVar0++;
  			break;
  		
  		case 20:
  			iVar0 += 4;
  			break;
  		
  		case 17:
  			iVar0++;
  			break;
  		
  		case 19:
  			iVar0++;
  			break;
  		
  		case 16:
  			iVar0++;
  			break;
  		
  		case 3:
  			iVar0 += 8;
  			break;
  		
  		case 14:
  			iVar0++;
  			break;
  		
  		case 10:
  			iVar0 += 8;
  			break;
  		
  		case 4:
  		case 24:
  		case 2:
  			iVar0++;
  			break;
  		
  		case 1:
  			iVar0 += 5;
  			break;
  		
  		case 5:
  			iVar0 += 3;
  			break;
  		
  		case 0:
  			iVar0 += 3;
  			break;
  	}
  	if (func_140(iParam0))
  	{
  		iVar0 = (iVar0 + iParam2);
  	}
  	return iVar0;
  }
  
  int func_199(int iParam0, int iParam1)
  {
  	int iVar0;
  	
  	switch (iParam0)
  	{
  		case 20:
  			iVar0 = iVar0;
  			break;
  		
  		case 0:
  			switch (iParam1)
  			{
  				case 1:
  					iVar0 += 7;
  					break;
  				
  				case 2:
  					iVar0 += 6;
  					break;
  				
  				case 3:
  					iVar0 += 4;
  					break;
  				
  				case 4:
  					iVar0 += 2;
  					break;
  				
  				case 5:
  					iVar0 += 3;
  					break;
  				
  				case 6:
  					iVar0 += 2;
  					break;
  			}
  			break;
  		
  		case 1:
  			switch (iParam1)
  			{
  				case 7:
  					iVar0 += 4;
  					break;
  				
  				case 8:
  					iVar0 += 4;
  					break;
  				
  				case 9:
  					iVar0 += 2;
  					break;
  				
  				case 10:
  					iVar0 += 2;
  					break;
  				
  				case 11:
  					iVar0 += 2;
  					break;
  				
  				case 12:
  					iVar0 += 4;
  					break;
  			}
  			break;
  		
  		case 2:
  			switch (iParam1)
  			{
  				case 13:
  					iVar0 += 2;
  					break;
  				
  				case 14:
  					iVar0 += 4;
  					break;
  				
  				case 15:
  					iVar0 += 6;
  					break;
  				
  				case 16:
  					iVar0 += 3;
  					break;
  				
  				case 17:
  					iVar0 += 3;
  					break;
  				
  				case 18:
  					iVar0 += 2;
  					break;
  			}
  			break;
  		
  		case 4:
  			switch (iParam1)
  			{
  				case 19:
  					iVar0 += 5;
  					break;
  				
  				case 20:
  					iVar0 += 4;
  					break;
  				
  				case 21:
  					iVar0 += 6;
  					break;
  				
  				case 22:
  					iVar0 += 2;
  					break;
  				
  				case 23:
  					iVar0 += 4;
  					break;
  				
  				case 24:
  					iVar0 += 5;
  					break;
  			}
  			break;
  		
  		case 6:
  			switch (iParam1)
  			{
  				case 19:
  					iVar0 += 5;
  					break;
  				
  				case 20:
  					iVar0 += 4;
  					break;
  				
  				case 21:
  					iVar0 += 6;
  					break;
  				
  				case 22:
  					iVar0 += 2;
  					break;
  				
  				case 23:
  					iVar0 += 4;
  					break;
  				
  				case 24:
  					iVar0 += 5;
  					break;
  			}
  			break;
  		
  		case 5:
  			switch (iParam1)
  			{
  				case 31:
  					iVar0 += 5;
  					break;
  				
  				case 32:
  					iVar0 += 2;
  					break;
  				
  				case 33:
  					iVar0 += 3;
  					break;
  				
  				case 34:
  					iVar0 += 5;
  					break;
  				
  				case 35:
  					iVar0 += 5;
  					break;
  				
  				case 36:
  					iVar0 += 5;
  					break;
  			}
  			break;
  		
  		case 9:
  			switch (iParam1)
  			{
  				case 68:
  					iVar0 = iVar0;
  					break;
  				
  				case 69:
  					iVar0 = iVar0;
  					break;
  				
  				case 70:
  					iVar0 = iVar0;
  					break;
  				
  				case 71:
  					iVar0 = iVar0;
  					break;
  				
  				case 72:
  					iVar0 = iVar0;
  					break;
  				
  				case 73:
  					iVar0 = iVar0;
  					break;
  			}
  			break;
  		
  		case 3:
  			switch (iParam1)
  			{
  				case 74:
  					iVar0++;
  					break;
  				
  				case 75:
  					iVar0++;
  					break;
  				
  				case 76:
  					iVar0++;
  					break;
  				
  				case 77:
  					iVar0++;
  					break;
  			}
  			break;
  		
  		case 10:
  			switch (iParam1)
  			{
  				case 78:
  					iVar0 = iVar0;
  					break;
  				
  				case joaat("mpsv_lp0_31"):
  					iVar0 = iVar0;
  					break;
  				
  				case 80:
  					iVar0 = iVar0;
  					break;
  				
  				case 81:
  					iVar0 = iVar0;
  					break;
  				
  				case 82:
  					iVar0 = iVar0;
  					break;
  				
  				case 83:
  					iVar0 = iVar0;
  					break;
  				
  				case 84:
  					iVar0 = iVar0;
  					break;
  			}
  			break;
  		
  		case 7:
  			iVar0 += 4;
  			break;
  		
  		case 8:
  			switch (iParam1)
  			{
  				case 62:
  					iVar0 += 6;
  					break;
  				
  				case 63:
  					iVar0 += 6;
  					break;
  				
  				case 64:
  					iVar0 += 6;
  					break;
  				
  				case 65:
  					iVar0 += 6;
  					break;
  				
  				case 66:
  					iVar0 += 6;
  					break;
  				
  				case 67:
  					iVar0 += 6;
  					break;
  			}
  			break;
  		
  		case 11:
  			switch (iParam1)
  			{
  				case 85:
  					iVar0 = iVar0;
  					break;
  				
  				case 86:
  					iVar0 = iVar0;
  					break;
  				
  				case 87:
  					iVar0 = iVar0;
  					break;
  				
  				case 88:
  					iVar0 = iVar0;
  					break;
  				
  				case 89:
  					iVar0 = iVar0;
  					break;
  			}
  			break;
  		
  		case 12:
  			switch (iParam1)
  			{
  				case 90:
  					iVar0 += 2;
  					break;
  				
  				case 91:
  					iVar0 += 2;
  					break;
  				
  				case 92:
  					iVar0 += 2;
  					break;
  				
  				case 93:
  					iVar0 += 2;
  					break;
  				
  				case 94:
  					iVar0 += 2;
  					break;
  			}
  			break;
  		
  		case 13:
  			switch (iParam1)
  			{
  				case 37:
  					iVar0 += 3;
  					break;
  			}
  			break;
  		
  		case 14:
  			switch (iParam1)
  			{
  				case 38:
  					iVar0 += 4;
  					break;
  				
  				case 39:
  					iVar0 += 4;
  					break;
  				
  				case 40:
  					iVar0 += 4;
  					break;
  				
  				case 41:
  					iVar0 += 4;
  					break;
  			}
  			break;
  		
  		case 15:
  			iVar0 = iVar0;
  			break;
  		
  		case 16:
  			iVar0 = iVar0;
  			break;
  		
  		case 17:
  			iVar0 = iVar0;
  			break;
  		
  		case 18:
  			iVar0 = iVar0;
  			break;
  		
  		case 19:
  			iVar0 = iVar0;
  			break;
  		
  		default:
  			iVar0 = iVar0;
  			break;
  	}
  	if ((func_148(iParam0) && iParam0 != 7) || iParam0 == 12)
  	{
  		iVar0 = (iVar0 + func_143(iParam0, func_147() + 1));
  	}
  	return iVar0;
  }
  
  int func_200(int iParam0, int iParam1, int iParam2, int iParam3, bool bParam4, bool bParam5, bool bParam6)
  {
  	int iVar0;
  	
  	switch (iParam0)
  	{
  		case 0:
  			iVar0 = iVar0;
  			break;
  		
  		case 1:
  			iVar0 += 5;
  			break;
  		
  		case 2:
  			iVar0 += 2;
  			break;
  		
  		case 3:
  			iVar0++;
  			break;
  		
  		case 4:
  			iVar0 += 3;
  			break;
  		
  		case 5:
  			iVar0 += 2;
  			break;
  		
  		case 8:
  			iVar0 += 3;
  			break;
  		
  		case 6:
  			iVar0++;
  			break;
  		
  		case 12:
  			iVar0 += 2;
  			break;
  		
  		case 7:
  			iVar0 += 6;
  			break;
  		
  		case 9:
  			iVar0 = iVar0;
  			break;
  		
  		case 11:
  			iVar0 = iVar0;
  			break;
  		
  		case 13:
  			iVar0 += 2;
  			break;
  		
  		case 10:
  			iVar0 += 4;
  			break;
  	}
  	if (!bParam5)
  	{
  		if (func_155(iParam0))
  		{
  			if (iParam3 != func_3())
  			{
  				iVar0 = (iVar0 + func_152(iParam0, func_97(iParam3) + 1, iParam3, -1, iParam2));
  			}
  		}
  		if (iParam3 != func_3())
  		{
  			iVar0 = (iVar0 + func_205(iParam0, func_97(iParam3) + 1));
  		}
  	}
  	if (!bParam6)
  	{
  		if (func_204(0, iParam1) != -1)
  		{
  			if (iParam3 != func_3())
  			{
  				iVar0 = (iVar0 + func_203(func_97(iParam3) + 1, iParam0));
  			}
  		}
  	}
  	if (!bParam4)
  	{
  		if (func_202(iParam0))
  		{
  			iVar0 = (iVar0 + func_201(iParam0));
  		}
  	}
  	return iVar0;
  }
  
  int func_201(int iParam0)
  {
  	switch (iParam0)
  	{
  		case 0:
  		case 2:
  		case 8:
  		case 1:
  		case 12:
  		case 10:
  		case 11:
  		case 13:
  			return 2;
  		
  		default:
  	}
  	return 0;
  }
  
  bool func_202(int iParam0)
  {
  	return func_201(iParam0) > 0;
  }
  
  int func_203(var uParam0, int iParam1)
  {
  	return 2;
  }
  
  int func_204(int iParam0, int iParam1)
  {
  	switch (iParam1)
  	{
  		case 136:
  			switch (iParam0)
  			{
  				case 0:
  					return 1;
  				
  				case 1:
  					return 1;
  				
  				case 2:
  					return 2;
  				
  				case 3:
  					return 2;
  				
  				default:
  			}
  			break;
  	}
  	return -1;
  }
  
  int func_205(int iParam0, int iParam1)
  {
  	int iVar0;
  	
  	switch (iParam0)
  	{
  		case 0:
  			return 0;
  		
  		case 8:
  			if (iParam1 > 4)
  			{
  				return 4;
  			}
  			return iParam1;
  		
  		case 1:
  			iVar0 = func_10(5328, -1, 0);
  			if (MISC::IS_BIT_SET(iVar0, 7))
  			{
  				if (iParam1 > 4)
  				{
  					return 4;
  				}
  				return iParam1;
  			}
  			else
  			{
  				return 0;
  			}
  			break;
  	}
  	return 0;
  }
  
  int func_206(int iParam0, int iParam1, int iParam2, int iParam3, bool bParam4, bool bParam5, bool bParam6)
  {
  	int iVar0;
  	
  	switch (iParam0)
  	{
  		case 11:
  			iVar0 += 9;
  			break;
  		
  		case 1:
  			iVar0 = iVar0;
  			break;
  		
  		case 7:
  			iVar0 += 10;
  			break;
  		
  		case 2:
  			iVar0 += 12;
  			break;
  		
  		case 4:
  			iVar0 += 10;
  			break;
  		
  		case 8:
  			iVar0++;
  			break;
  		
  		case 5:
  			iVar0 += 2;
  			break;
  		
  		case 12:
  			switch (iParam1)
  			{
  				case 0:
  					iVar0++;
  					break;
  				
  				case 1:
  					iVar0++;
  					break;
  				
  				case 2:
  					iVar0 = iVar0;
  					break;
  			}
  			break;
  		
  		case 14:
  			switch (iParam1)
  			{
  				case 3:
  					iVar0 += 4;
  					break;
  				
  				case 4:
  					iVar0 += 2;
  					break;
  				
  				case 5:
  					iVar0 += 5;
  					break;
  			}
  			break;
  		
  		case 3:
  			if (iParam2 >= 4)
  			{
  				iVar0 += 10;
  			}
  			else if (iParam2 == 3)
  			{
  				iVar0 += 8;
  			}
  			else if (iParam2 == 2)
  			{
  				iVar0 += 7;
  			}
  			else if (iParam2 == 1)
  			{
  				iVar0 += 6;
  			}
  			break;
  		
  		case 10:
  			switch (iParam1)
  			{
  				case 34:
  					iVar0++;
  					break;
  			}
  			break;
  		
  		case 9:
  			switch (iParam1)
  			{
  				case 6:
  					iVar0++;
  					break;
  				
  				case 7:
  					iVar0 += 4;
  					break;
  				
  				case 8:
  					iVar0 += 2;
  					break;
  			}
  			break;
  		
  		case 0:
  			if (iParam2 >= 3)
  			{
  				iVar0 += 2;
  			}
  			else
  			{
  				iVar0++;
  			}
  			break;
  		
  		case 23:
  			iVar0 = (iVar0 + iParam2);
  			break;
  		
  		case 20:
  			iVar0 += 5;
  			break;
  		
  		case 22:
  			iVar0 = (iVar0 + (5 * iParam2));
  			break;
  		
  		case 25:
  			iVar0 = (iVar0 + iParam2);
  			break;
  		
  		case 24:
  			iVar0 = (iVar0 + (3 * iParam2));
  			break;
  		
  		case 16:
  			iVar0 = (iVar0 + (5 * iParam2));
  			break;
  		
  		case 17:
  			iVar0 += 5;
  			break;
  		
  		case 26:
  			iVar0++;
  			break;
  	}
  	if (!bParam5)
  	{
  		if (func_167(iParam0))
  		{
  			if (iParam3 != func_3())
  			{
  				iVar0 = (iVar0 + func_159(iParam0, func_97(iParam3) + 1, iParam3, -1, iParam2));
  			}
  		}
  		if (iParam3 != func_3())
  		{
  			iVar0 = (iVar0 + func_211(iParam0, func_97(iParam3) + 1));
  		}
  	}
  	if (!bParam6)
  	{
  		if (func_210(0, iParam1) != -1)
  		{
  			if (iParam3 != func_3())
  			{
  				iVar0 = (iVar0 + func_209(func_97(iParam3) + 1, iParam0));
  			}
  		}
  	}
  	if (!bParam4)
  	{
  		if (func_208(iParam0))
  		{
  			iVar0 = (iVar0 + func_207(iParam0));
  		}
  	}
  	return iVar0;
  }
  
  int func_207(int iParam0)
  {
  	switch (iParam0)
  	{
  		case 12:
  		case 11:
  		case 1:
  		case 2:
  		case 14:
  		case 4:
  		case 10:
  		case 7:
  		case 3:
  		case 8:
  		case 0:
  		case 5:
  			return 2;
  		
  		case 21:
  		case 16:
  		case 17:
  			return 2;
  		
  		default:
  	}
  	return 0;
  }
  
  bool func_208(int iParam0)
  {
  	return func_207(iParam0) > 0;
  }
  
  int func_209(int iParam0, int iParam1)
  {
  	switch (iParam0)
  	{
  		case 1:
  			if (func_162(iParam1))
  			{
  				return 1;
  			}
  			else
  			{
  				return 1;
  			}
  			break;
  		
  		case 2:
  			if (func_162(iParam1))
  			{
  				return 1;
  			}
  			else
  			{
  				return 1;
  			}
  			break;
  		
  		case 3:
  			if (func_162(iParam1))
  			{
  				return 2;
  			}
  			else
  			{
  				return 2;
  			}
  			break;
  		
  		case 4:
  			if (func_162(iParam1))
  			{
  				return 2;
  			}
  			else
  			{
  				return 2;
  			}
  			break;
  		
  		case 5:
  			if (func_162(iParam1))
  			{
  				return 2;
  			}
  			else
  			{
  				return 2;
  			}
  			break;
  		
  		case 6:
  			if (func_162(iParam1))
  			{
  				return 2;
  			}
  			else
  			{
  				return 2;
  			}
  			break;
  		
  		case 7:
  			if (func_162(iParam1))
  			{
  				return 2;
  			}
  			else
  			{
  				return 2;
  			}
  			break;
  		
  		case 8:
  			if (func_162(iParam1))
  			{
  				return 2;
  			}
  			else
  			{
  				return 2;
  			}
  			break;
  	}
  	return 1;
  }
  
  int func_210(int iParam0, int iParam1)
  {
  	switch (iParam1)
  	{
  		case 0:
  			switch (iParam0)
  			{
  				case 0:
  					return 1;
  				
  				case 1:
  					return 1;
  				
  				case 2:
  					return 2;
  				
  				case 3:
  					return 2;
  				
  				default:
  			}
  			break;
  		
  		case 1:
  			switch (iParam0)
  			{
  				case 0:
  					return 1;
  				
  				case 1:
  					return 1;
  				
  				case 2:
  					return 2;
  				
  				case 3:
  					return 2;
  				
  				default:
  			}
  			break;
  		
  		case 2:
  			switch (iParam0)
  			{
  				case 0:
  					return 0;
  				
  				case 1:
  					return 0;
  				
  				case 2:
  					return 1;
  				
  				case 3:
  					return 1;
  				
  				default:
  			}
  			break;
  		
  		case 19:
  			switch (iParam0)
  			{
  				case 0:
  					return 12;
  				
  				case 1:
  					return 12;
  				
  				case 2:
  					return 13;
  				
  				case 3:
  					return 13;
  				
  				default:
  			}
  			break;
  		
  		case 20:
  			switch (iParam0)
  			{
  				case 0:
  					return 12;
  				
  				case 1:
  					return 12;
  				
  				case 2:
  					return 13;
  				
  				case 3:
  					return 13;
  				
  				default:
  			}
  			break;
  		
  		case 21:
  			switch (iParam0)
  			{
  				case 0:
  					return 12;
  				
  				case 1:
  					return 12;
  				
  				case 2:
  					return 13;
  				
  				case 3:
  					return 13;
  				
  				default:
  			}
  			break;
  		
  		case 6:
  			switch (iParam0)
  			{
  				case 0:
  					return 1;
  				
  				case 1:
  					return 1;
  				
  				case 2:
  					return 2;
  				
  				case 3:
  					return 2;
  				
  				default:
  			}
  			break;
  		
  		case 7:
  			switch (iParam0)
  			{
  				case 0:
  					return 4;
  				
  				case 1:
  					return 4;
  				
  				case 2:
  					return 5;
  				
  				case 3:
  					return 5;
  				
  				default:
  			}
  			break;
  		
  		case 8:
  			switch (iParam0)
  			{
  				case 0:
  					return 2;
  				
  				case 1:
  					return 2;
  				
  				case 2:
  					return 3;
  				
  				case 3:
  					return 3;
  				
  				default:
  			}
  			break;
  		
  		case 48:
  		case 49:
  		case 50:
  			switch (iParam0)
  			{
  				case 0:
  					return 2;
  				
  				case 1:
  					return 2;
  				
  				case 2:
  					return 3;
  				
  				case 3:
  					return 3;
  				
  				default:
  			}
  			break;
  		
  		case 9:
  		case 10:
  		case 11:
  		case 12:
  		case 13:
  		case 14:
  		case 15:
  		case 16:
  		case 17:
  		case 18:
  			switch (iParam0)
  			{
  				case 0:
  					return 0;
  				
  				case 1:
  					return 0;
  				
  				case 2:
  					return 1;
  				
  				case 3:
  					return 1;
  				
  				default:
  			}
  			break;
  		
  		case 28:
  		case 29:
  		case 30:
  			switch (iParam0)
  			{
  				case 0:
  					return 6;
  				
  				case 1:
  					return 7;
  				
  				case 2:
  					return 8;
  				
  				case 3:
  					return 9;
  				
  				default:
  			}
  			break;
  		
  		case 43:
  		case 44:
  		case 45:
  		case 46:
  		case 47:
  			switch (iParam0)
  			{
  				case 0:
  					return 0;
  				
  				case 1:
  					return 0;
  				
  				case 2:
  					return 1;
  				
  				case 3:
  					return 1;
  				
  				default:
  			}
  			break;
  		
  		case 40:
  		case 41:
  		case 42:
  			switch (iParam0)
  			{
  				case 0:
  					return 0;
  				
  				case 1:
  					return 0;
  				
  				case 2:
  					return 0;
  				
  				case 3:
  					return 0;
  				
  				default:
  			}
  			break;
  	}
  	return -1;
  }
  
  int func_211(int iParam0, int iParam1)
  {
  	switch (iParam0)
  	{
  		case 1:
  			if (iParam1 > 4)
  			{
  				return 2;
  			}
  			return 1;
  		
  		case 14:
  			if (iParam1 > 3)
  			{
  				return 2;
  			}
  			return 1;
  		
  		case 7:
  			if (iParam1 > 4)
  			{
  				return 4;
  			}
  			return iParam1;
  		
  		case 2:
  		case 4:
  		case 3:
  			if (iParam1 > 4)
  			{
  				return 4;
  			}
  			return iParam1;
  		
  		case 10:
  			if (iParam1 > 4)
  			{
  				return 2;
  			}
  			return 1;
  		
  		case 9:
  			return 1;
  		
  		case 0:
  			if (iParam1 > 1)
  			{
  				return 2;
  			}
  			return 1;
  		
  		case 8:
  			if (iParam1 > 3)
  			{
  				return 2;
  			}
  			return 1;
  		
  		case 5:
  			if (iParam1 > 2)
  			{
  				return 2;
  			}
  			return 1;
  		
  		case 13:
  			if (iParam1 > 4)
  			{
  				return 4;
  			}
  			return iParam1;
  		
  		case 11:
  			if (iParam1 > 2)
  			{
  				return 2;
  			}
  			return 1;
  		
  		default:
  	}
  	return SYSTEM::CEIL((IntToFloat(iParam1) / 2f));
  }
  
  int func_212(int iParam0, int iParam1, int iParam2, bool bParam3, bool bParam4)
  {
  	int iVar0;
  	
  	switch (iParam0)
  	{
  		case 0:
  			iVar0 = iVar0;
  			break;
  		
  		case 1:
  			switch (iParam1)
  			{
  				case 0:
  					iVar0 += 3;
  					break;
  				
  				case 1:
  					iVar0 += 3;
  					break;
  				
  				case 2:
  					iVar0 += 3;
  					break;
  			}
  			break;
  		
  		case 2:
  			if (iParam2 >= 4)
  			{
  				iVar0 = (iVar0 + iParam2 + 2);
  			}
  			else
  			{
  				iVar0 += 5;
  			}
  			break;
  		
  		case 3:
  			switch (iParam1)
  			{
  				case 9:
  					iVar0 += 3;
  					break;
  				
  				case 10:
  					iVar0 += 3;
  					break;
  				
  				case 11:
  					iVar0 += 2;
  					break;
  				
  				case 12:
  					iVar0 += 2;
  					break;
  			}
  			break;
  		
  		case 4:
  			switch (iParam1)
  			{
  				case 14:
  					iVar0 += 2;
  					break;
  				
  				case 15:
  					iVar0 += 4;
  					break;
  				
  				case 13:
  					iVar0 += 2;
  					break;
  			}
  			break;
  		
  		case 5:
  			iVar0 += 4;
  			break;
  		
  		case 6:
  			switch (iParam1)
  			{
  				case 19:
  					iVar0 += 5;
  					break;
  				
  				case 20:
  					iVar0 += 5;
  					break;
  				
  				case 21:
  					iVar0 += 5;
  					break;
  			}
  			break;
  		
  		case 7:
  			switch (iParam1)
  			{
  				case 22:
  					iVar0 += 4;
  					break;
  				
  				case 23:
  					iVar0 += 3;
  					break;
  				
  				case 24:
  					iVar0 += 3;
  					break;
  			}
  			if (func_171(iParam0, func_147() + 1, -1, iParam2) == 1)
  			{
  				iVar0++;
  			}
  			break;
  		
  		case 8:
  			switch (iParam1)
  			{
  				case 25:
  					iVar0 += 5;
  					break;
  				
  				case 26:
  					iVar0 += 5;
  					break;
  			}
  			break;
  		
  		case 9:
  			switch (iParam1)
  			{
  				case 27:
  					iVar0 += 2;
  					break;
  				
  				case 28:
  					iVar0 += 2;
  					break;
  			}
  			break;
  		
  		case 10:
  			switch (iParam1)
  			{
  				case 29:
  					iVar0 += 4;
  					break;
  				
  				case 30:
  					iVar0 += 4;
  					break;
  				
  				case 31:
  					iVar0 += 4;
  					break;
  			}
  			break;
  		
  		case 11:
  			switch (iParam1)
  			{
  				case 32:
  					iVar0 += 2;
  					break;
  				
  				case 33:
  					iVar0 += 2;
  					break;
  				
  				case 34:
  					iVar0 += 2;
  					break;
  			}
  			break;
  		
  		case 12:
  			iVar0 = iVar0;
  			break;
  		
  		case 13:
  			switch (iParam1)
  			{
  				case 35:
  					iVar0 += 3;
  					break;
  				
  				case 36:
  					iVar0 += 3;
  					break;
  				
  				case 37:
  					iVar0 += 2;
  					break;
  			}
  			break;
  		
  		case 14:
  			iVar0 += 8;
  			break;
  		
  		case 15:
  			iVar0 = iVar0;
  			break;
  		
  		case 16:
  			iVar0 = iVar0;
  			break;
  		
  		case 17:
  			iVar0 = iVar0;
  			break;
  		
  		case 19:
  			iVar0 = iVar0;
  			break;
  		
  		case 18:
  			iVar0 = (iVar0 + iParam2);
  			break;
  		
  		case 20:
  			iVar0 += 5;
  			break;
  	}
  	if (!bParam4)
  	{
  		if (func_173(iParam0))
  		{
  			iVar0 = (iVar0 + func_171(iParam0, func_147() + 1, -1, iParam2));
  		}
  		iVar0 = (iVar0 + func_215(iParam0, func_147() + 1));
  	}
  	if (!bParam3)
  	{
  		if (func_214(iParam0))
  		{
  			iVar0 = (iVar0 + func_213(iParam0));
  		}
  	}
  	return iVar0;
  }
  
  int func_213(int iParam0)
  {
  	switch (iParam0)
  	{
  		case 1:
  		case 2:
  		case 4:
  		case 5:
  		case 6:
  		case 7:
  		case 9:
  		case 10:
  		case 11:
  		case 12:
  		case 13:
  		case 15:
  		case 16:
  		case 17:
  		case 19:
  		case 8:
  			return 2;
  		
  		default:
  	}
  	return 0;
  }
  
  bool func_214(int iParam0)
  {
  	return func_213(iParam0) > 0;
  }
  
  int func_215(int iParam0, int iParam1)
  {
  	switch (iParam0)
  	{
  		case 2:
  			if (iParam1 == 1)
  			{
  				return 1;
  			}
  			return SYSTEM::FLOOR((IntToFloat(iParam1) / 1.5f));
  		
  		case 5:
  			if (iParam1 == 1)
  			{
  				return 1;
  			}
  			return SYSTEM::FLOOR((IntToFloat(iParam1) / 2f));
  		
  		default:
  	}
  	return 0;
  }
  
  int func_216(int iParam0, int iParam1, int iParam2)
  {
  	int iVar0;
  	
  	switch (iParam0)
  	{
  		case 0:
  			iVar0 = iVar0;
  			break;
  		
  		case 1:
  			iVar0 = iVar0;
  			break;
  		
  		case 7:
  			iVar0 = iVar0;
  			break;
  		
  		case 8:
  			iVar0 = iVar0;
  			break;
  		
  		case 5:
  			iVar0 = iVar0;
  			break;
  		
  		case 11:
  			iVar0 += 3;
  			break;
  		
  		case 13:
  			iVar0 = iVar0;
  			break;
  		
  		case 4:
  			switch (iParam1)
  			{
  				case 1:
  					iVar0 += 2;
  					break;
  				
  				case 2:
  					iVar0 += 2;
  					break;
  				
  				case 3:
  					iVar0 += 2;
  					break;
  			}
  			break;
  		
  		case 6:
  			switch (iParam1)
  			{
  				case 18:
  					iVar0 += 2;
  					break;
  				
  				case 19:
  					iVar0 += 2;
  					break;
  				
  				case 20:
  					iVar0 += 2;
  					break;
  			}
  			break;
  		
  		case 10:
  			switch (iParam1)
  			{
  				case 21:
  					iVar0 += 7;
  					break;
  				
  				case 22:
  					iVar0 += 7;
  					break;
  				
  				case 23:
  					iVar0 += 7;
  					break;
  			}
  			break;
  		
  		case 9:
  			switch (iParam1)
  			{
  				case 27:
  					iVar0 = iVar0;
  					break;
  				
  				case 28:
  					iVar0 = iVar0;
  					break;
  				
  				case 29:
  					iVar0 = iVar0;
  					break;
  			}
  			break;
  		
  		case 3:
  			switch (iParam1)
  			{
  				case 30:
  					iVar0 += 2;
  					break;
  				
  				case 31:
  					iVar0 += 2;
  					break;
  				
  				case 32:
  					iVar0 += 2;
  					break;
  			}
  			break;
  		
  		case 14:
  			switch (iParam1)
  			{
  				case 36:
  					iVar0 += 7;
  					break;
  				
  				case 37:
  					iVar0 += 7;
  					break;
  				
  				case 38:
  					iVar0 += 7;
  					break;
  			}
  			break;
  		
  		case 2:
  			switch (iParam1)
  			{
  				case 39:
  					iVar0 += 4;
  					break;
  				
  				case 40:
  					iVar0 += 4;
  					break;
  				
  				case 41:
  					iVar0 += 6;
  					break;
  			}
  			break;
  		
  		case 17:
  			switch (iParam1)
  			{
  				case 42:
  					iVar0 += 2;
  					break;
  				
  				case 43:
  					iVar0 += 2;
  					break;
  				
  				case 44:
  					iVar0 += 2;
  					break;
  			}
  			break;
  		
  		case 15:
  			switch (iParam1)
  			{
  				case 45:
  					iVar0 += 6;
  					break;
  				
  				case 46:
  					iVar0 += 6;
  					break;
  				
  				case 47:
  					iVar0 += 6;
  					break;
  			}
  			break;
  		
  		case 16:
  			switch (iParam1)
  			{
  				case 48:
  					iVar0 += 2;
  					break;
  				
  				case 49:
  					iVar0 += 2;
  					break;
  				
  				case 50:
  					iVar0 += 2;
  					break;
  			}
  			break;
  		
  		case 12:
  			iVar0 += 11;
  			break;
  	}
  	iVar0 = (iVar0 + func_219(iParam0, func_147() + 1, iParam2));
  	iVar0 = (iVar0 + func_217(iParam0));
  	return iVar0;
  }
  
  int func_217(int iParam0)
  {
  	if (func_218(iParam0))
  	{
  		return 2;
  	}
  	return 0;
  }
  
  int func_218(int iParam0)
  {
  	switch (iParam0)
  	{
  		case 7:
  		case 2:
  		case 9:
  		case 4:
  		case 17:
  		case 15:
  		case 16:
  		case 8:
  		case 10:
  			return 1;
  		
  		default:
  	}
  	return 0;
  }
  
  int func_219(int iParam0, var uParam1, int iParam2)
  {
  	int iVar0;
  	
  	if (iVar0 == 0)
  	{
  		if (iParam0 == 8)
  		{
  			iVar0 = iParam2;
  		}
  		else
  		{
  			iVar0 = 1;
  		}
  	}
  	if (iVar0 == 0)
  	{
  		iVar0 = 1;
  	}
  	return iVar0;
  }
  
  int func_220(int iParam0)
  {
  	switch (iParam0)
  	{
  		case 0:
  			return 1;
  		
  		case 1:
  			return 1;
  		
  		case 2:
  			return 0;
  		
  		case 3:
  			return 3;
  		
  		case 4:
  			return 8;
  		
  		case 5:
  			return 3;
  		
  		case 6:
  			return 1;
  		
  		case 7:
  			return 1;
  		
  		case 8:
  			return 6;
  		
  		case 9:
  			return 6;
  		
  		case 10:
  			return 3;
  		
  		case 11:
  			return 3;
  		
  		case 12:
  			return 2;
  		
  		case 13:
  			return 1;
  		
  		case 14:
  			return 3;
  		
  		case 15:
  			return 5;
  		
  		case 16:
  			return 6;
  		
  		case 17:
  			return 2;
  		
  		case 19:
  			return 4;
  		
  		case 18:
  			return 5;
  		
  		default:
  	}
  	return 2;
  }
  
  int func_221(int iParam0, int iParam1, int iParam2, int iParam3)
  {
  	switch (iParam0)
  	{
  		case 148:
  		case 152:
  		case 162:
  		case 160:
  		case 163:
  			return 0;
  		
  		case 167:
  			return func_248(iParam1);
  		
  		case 168:
  			return 12;
  		
  		case 170:
  			return 4;
  		
  		case 171:
  			return 0;
  		
  		case 172:
  			return 0;
  		
  		case 173:
  			return 4;
  		
  		case 178:
  		case 188:
  			return func_245(iParam1, iParam2, iParam3);
  		
  		case 225:
  		case 226:
  			return func_242(iParam1, iParam2, iParam3, 0);
  		
  		case 227:
  			return 0;
  		
  		case 229:
  		case 230:
  			return func_239(iParam1, iParam2, iParam3, 0);
  		
  		case 233:
  			return func_236(iParam1, iParam2, iParam3, 0);
  		
  		case 190:
  			return 20;
  		
  		case 191:
  			return 4;
  		
  		case 192:
  			return func_235(iParam1, iParam2);
  		
  		case 179:
  			return 0;
  		
  		case 183:
  			return 15;
  		
  		case 182:
  			return 20;
  		
  		case 185:
  			return 21;
  		
  		case 186:
  			return 36;
  		
  		case 180:
  			return 10;
  		
  		case 193:
  			return 10;
  		
  		case 194:
  			return 0;
  		
  		case 197:
  			return 12;
  		
  		case 199:
  			return 6;
  		
  		case 195:
  			return 15;
  		
  		case 201:
  			return 0;
  		
  		case 198:
  			return 18;
  		
  		case 205:
  			return 1;
  		
  		case 207:
  			return 24;
  		
  		case 208:
  			return 14;
  		
  		case 209:
  			return 11;
  		
  		case 210:
  			return 0;
  		
  		case 214:
  			return 12;
  		
  		case 215:
  			return 20;
  		
  		case 216:
  			return 20;
  		
  		case 217:
  			return func_234();
  		
  		case 218:
  			return func_233();
  		
  		case 219:
  			return 0;
  		
  		case 220:
  			return 0;
  		
  		case 221:
  			return 0;
  		
  		case 237:
  		case 250:
  			return func_232(iParam1, iParam2, iParam3);
  		
  		case 238:
  		case 249:
  			return func_231(iParam1, iParam2);
  		
  		case 239:
  			return 6;
  		
  		case 240:
  			return 11;
  		
  		case 241:
  			return 14;
  		
  		case 242:
  			return 14;
  		
  		case 244:
  			return 9;
  		
  		case 248:
  			return 10;
  		
  		case 243:
  			return func_228(iParam1, iParam2, 0, -1);
  		
  		case 158:
  			return func_225(iParam1, iParam2, 0, -1);
  		
  		case 181:
  			return func_222(iParam1, iParam2, 0, -1);
  		
  		default:
  	}
  	return 0;
  }
  
  int func_222(int iParam0, int iParam1, bool bParam2, int iParam3)
  {
  	int iVar0;
  	
  	switch (iParam0)
  	{
  		case 2:
  			iVar0 += 6;
  			break;
  	}
  	if (!bParam2)
  	{
  		if (func_181(iParam0, iParam1))
  		{
  			iVar0 = (iVar0 + func_223(iParam0, iParam1));
  		}
  	}
  	return iVar0;
  }
  
  int func_223(int iParam0, var uParam1)
  {
  	if (func_181(iParam0, uParam1))
  	{
  		return (func_180(iParam0, uParam1) + func_224(iParam0, uParam1));
  	}
  	return 0;
  }
  
  int func_224(int iParam0, var uParam1)
  {
  	switch (iParam0)
  	{
  		case 2:
  			return 2;
  		
  		default:
  	}
  	return 0;
  }
  
  int func_225(int iParam0, int iParam1, bool bParam2, int iParam3)
  {
  	int iVar0;
  	
  	switch (iParam0)
  	{
  		case 0:
  			iVar0 += 6;
  			break;
  		
  		case 24:
  			iVar0 += 2;
  			break;
  		
  		case 10:
  			switch (iParam1)
  			{
  				case 30:
  					iVar0 += 12;
  					break;
  				
  				case 31:
  				case 32:
  					iVar0 += 10;
  					break;
  			}
  			break;
  		
  		case 33:
  			switch (iParam1)
  			{
  				case 88:
  					iVar0 += 10;
  					break;
  				
  				case 89:
  					iVar0 += 9;
  					break;
  				
  				case 90:
  					iVar0 += 10;
  					break;
  			}
  			break;
  		
  		case 36:
  			iVar0 += 9;
  			break;
  		
  		case 43:
  			iVar0 += 6;
  			break;
  		
  		case 38:
  			iVar0 += 6;
  			break;
  		
  		case 40:
  			iVar0 += 6;
  			break;
  		
  		case 8:
  			iVar0 += 16;
  			break;
  		
  		case 16:
  			iVar0 += 14;
  			break;
  		
  		case 35:
  			iVar0 += 13;
  			break;
  		
  		case 4:
  			iVar0 += 32;
  			break;
  		
  		case 45:
  			iVar0 += 2;
  			break;
  		
  		case 46:
  			iVar0 += 9;
  			break;
  		
  		case 9:
  			iVar0 += 15;
  			break;
  		
  		case 14:
  			iVar0 += 16;
  			break;
  		
  		case 17:
  			iVar0 += 14;
  			break;
  		
  		case 47:
  			iVar0 += 13;
  			break;
  		
  		case 11:
  			iVar0 += 11;
  			break;
  		
  		case 18:
  			iVar0 += 24;
  			break;
  		
  		case 6:
  			iVar0 += 14;
  			break;
  		
  		case 48:
  			iVar0 += 15;
  			break;
  		
  		case 44:
  			iVar0 += 9;
  			break;
  		
  		case 21:
  			iVar0 += 20;
  			break;
  		
  		case 22:
  			iVar0 += 14;
  			break;
  		
  		case 7:
  			iVar0 += 22;
  			break;
  		
  		case 15:
  			iVar0 += 10;
  			break;
  		
  		case 2:
  			iVar0 += 2;
  			break;
  		
  		case 34:
  			iVar0 += 18;
  			break;
  		
  		case 27:
  			iVar0 += 16;
  			break;
  		
  		case 26:
  			iVar0 += 10;
  			break;
  		
  		case 23:
  			iVar0 += 10;
  			break;
  		
  		case 31:
  			iVar0 += 20;
  			break;
  		
  		case 3:
  			iVar0 += 14;
  			break;
  		
  		case 12:
  			iVar0 += 7;
  			break;
  		
  		case 41:
  			iVar0 += 10;
  			break;
  		
  		case 49:
  			iVar0 += 30;
  			break;
  		
  		case 19:
  			iVar0 += 15;
  			break;
  		
  		case 5:
  			iVar0 += 7;
  			break;
  		
  		case 30:
  			iVar0++;
  			break;
  		
  		case 13:
  			iVar0 += 20;
  			break;
  		
  		case 29:
  			iVar0 += 9;
  			break;
  		
  		case 50:
  			iVar0 += 24;
  			break;
  		
  		case 20:
  			iVar0 += 26;
  			break;
  		
  		case 32:
  			iVar0 += 30;
  			break;
  		
  		case 28:
  			iVar0 += 3;
  			break;
  		
  		case 42:
  			iVar0 += 13;
  			break;
  		
  		case 52:
  			iVar0 += 12;
  			break;
  		
  		case 39:
  			iVar0 += 5;
  			break;
  		
  		case 37:
  			iVar0 += 6;
  			break;
  		
  		case 25:
  			iVar0 += 6;
  			break;
  		
  		case 51:
  			iVar0 += 20;
  			break;
  	}
  	if (!bParam2)
  	{
  		if (func_187(iParam0, iParam1))
  		{
  			iVar0 = (iVar0 + func_226(iParam0, iParam1));
  		}
  	}
  	return iVar0;
  }
  
  int func_226(int iParam0, int iParam1)
  {
  	if (func_187(iParam0, iParam1))
  	{
  		return (func_186(iParam0, iParam1) + func_227(iParam0, iParam1));
  	}
  	return 0;
  }
  
  int func_227(int iParam0, int iParam1)
  {
  	switch (iParam0)
  	{
  		case 0:
  		case 13:
  		case 18:
  		case 34:
  		case 49:
  		case 48:
  		case 7:
  		case 16:
  		case 5:
  		case 26:
  		case 22:
  		case 25:
  		case 11:
  		case 17:
  		case 14:
  			return 2;
  		
  		case 6:
  		case 50:
  		case 47:
  			return 4;
  		
  		case 27:
  			return 2;
  		
  		default:
  	}
  	return 0;
  }
  
  int func_228(int iParam0, int iParam1, bool bParam2, int iParam3)
  {
  	int iVar0;
  	
  	switch (iParam0)
  	{
  		case 13:
  			iVar0 += 8;
  			break;
  		
  		case 1:
  			switch (iParam1)
  			{
  				case 2:
  					iVar0 += 10;
  					break;
  				
  				case 3:
  					iVar0 += 10;
  					break;
  				
  				case 4:
  					iVar0 += 14;
  					break;
  				
  				case 5:
  					iVar0 += 10;
  					break;
  			}
  			break;
  		
  		case 15:
  			iVar0 += 20;
  			break;
  		
  		case 14:
  			iVar0 += 19;
  			break;
  		
  		case 11:
  			switch (iParam1)
  			{
  				case 35:
  					iVar0 += 6;
  					break;
  				
  				case 36:
  					iVar0 += 7;
  					break;
  				
  				case 37:
  					iVar0 += 17;
  					break;
  			}
  			break;
  		
  		case 6:
  			iVar0 += 8;
  			break;
  		
  		case 5:
  			iVar0 += 11;
  			break;
  		
  		case 0:
  			iVar0 += 12;
  			break;
  		
  		case 10:
  			switch (iParam1)
  			{
  				case 31:
  					iVar0++;
  					break;
  				
  				case 32:
  					iVar0 += 7;
  					break;
  				
  				case 33:
  					iVar0 += 2;
  					break;
  				
  				case 34:
  					iVar0++;
  					break;
  			}
  			break;
  		
  		case 12:
  			iVar0 += 30;
  			break;
  		
  		case 9:
  			switch (iParam1)
  			{
  				case 28:
  					iVar0 += 10;
  					break;
  				
  				case 29:
  					iVar0 += 8;
  					break;
  				
  				case 30:
  					iVar0 += 9;
  					break;
  			}
  			break;
  		
  		case 3:
  			iVar0 += 19;
  			break;
  		
  		case 4:
  			switch (iParam1)
  			{
  				case 12:
  					iVar0 += 12;
  					break;
  				
  				case 13:
  					iVar0 += 14;
  					break;
  				
  				case 14:
  					iVar0 += 12;
  					break;
  			}
  			break;
  		
  		case 2:
  			iVar0 += 12;
  			break;
  		
  		case 8:
  			iVar0 += 7;
  			break;
  		
  		case 7:
  			iVar0++;
  			break;
  	}
  	if (!bParam2)
  	{
  		if (func_193(iParam0, iParam1))
  		{
  			iVar0 = (iVar0 + func_229(iParam0, iParam1));
  		}
  	}
  	return iVar0;
  }
  
  int func_229(int iParam0, int iParam1)
  {
  	if (func_193(iParam0, iParam1))
  	{
  		return (func_192(iParam0, iParam1) + func_230(iParam0, iParam1));
  	}
  	return 0;
  }
  
  int func_230(int iParam0, int iParam1)
  {
  	switch (iParam0)
  	{
  		case 4:
  		case 9:
  		case 8:
  			return 2;
  		
  		default:
  	}
  	switch (iParam1)
  	{
  		case 37:
  			return 2;
  		
  		default:
  	}
  	return 0;
  }
  
  int func_231(int iParam0, int iParam1)
  {
  	switch (iParam0)
  	{
  		case 0:
  			return 14;
  		
  		case 1:
  			return 7;
  		
  		case 2:
  			return 27;
  		
  		case 3:
  			return 3;
  		
  		case 4:
  			return 8;
  		
  		case 5:
  			switch (iParam1)
  			{
  				case 0:
  				case 2:
  					return 11;
  				
  				case 1:
  					return 9;
  				
  				default:
  			}
  			break;
  	}
  	return 0;
  }
  
  int func_232(int iParam0, int iParam1, int iParam2)
  {
  	int iVar0;
  	
  	switch (iParam0)
  	{
  		case 0:
  			switch (iParam1)
  			{
  				case 0:
  				case 1:
  				case 2:
  				case 3:
  				case 4:
  				case 5:
  				case 6:
  				case 7:
  				case 8:
  				case 9:
  					iVar0 += 19;
  					break;
  			}
  			break;
  		
  		case 11:
  			switch (iParam1)
  			{
  				case 77:
  				case 78:
  				case joaat("mpsv_lp0_31"):
  					iVar0 += 2;
  					break;
  			}
  			break;
  		
  		case 9:
  			switch (iParam1)
  			{
  				case 71:
  				case 72:
  				case 73:
  					iVar0 += 9;
  					break;
  			}
  			break;
  		
  		case 12:
  			switch (iParam1)
  			{
  				case 80:
  				case 81:
  				case 82:
  					iVar0 += 3;
  					break;
  			}
  			break;
  		
  		case 22:
  			iVar0 += 8;
  			break;
  		
  		case 15:
  			iVar0++;
  			break;
  		
  		case 23:
  			iVar0 += 3;
  			break;
  		
  		case 20:
  			iVar0 += 12;
  			break;
  		
  		case 18:
  			iVar0 += 20;
  			break;
  		
  		case 17:
  			iVar0 += 9;
  			break;
  		
  		case 19:
  			iVar0++;
  			break;
  		
  		case 3:
  			iVar0 += 5;
  			break;
  		
  		case 14:
  			iVar0++;
  			break;
  		
  		case 10:
  			iVar0 += 17;
  			break;
  		
  		case 4:
  			iVar0 += 3;
  			break;
  		
  		case 1:
  			iVar0 += 30;
  			break;
  		
  		case 2:
  			iVar0 += 4;
  			break;
  		
  		case 5:
  			iVar0 += 16;
  			break;
  	}
  	return iVar0;
  }
  
  int func_233()
  {
  	int iVar0;
  	
  	iVar0 = 32;
  	return iVar0;
  }
  
  int func_234()
  {
  	int iVar0;
  	
  	iVar0 = 8;
  	return iVar0;
  }
  
  int func_235(int iParam0, int iParam1)
  {
  	int iVar0;
  	
  	switch (iParam0)
  	{
  		case 20:
  			iVar0 += 2;
  			break;
  		
  		case 0:
  			switch (iParam1)
  			{
  				case 1:
  					iVar0 += 16;
  					break;
  				
  				case 2:
  					iVar0 += 14;
  					break;
  				
  				case 3:
  					iVar0 += 13;
  					break;
  				
  				case 4:
  					iVar0 += 12;
  					break;
  				
  				case 5:
  					iVar0 += 12;
  					break;
  				
  				case 6:
  					iVar0 += 12;
  					break;
  			}
  			break;
  		
  		case 1:
  			switch (iParam1)
  			{
  				case 7:
  					iVar0 += 12;
  					break;
  				
  				case 8:
  					iVar0 += 12;
  					break;
  				
  				case 9:
  					iVar0 += 12;
  					break;
  				
  				case 10:
  					iVar0 += 12;
  					break;
  				
  				case 11:
  					iVar0 += 12;
  					break;
  				
  				case 12:
  					iVar0 += 12;
  					break;
  			}
  			break;
  		
  		case 2:
  			switch (iParam1)
  			{
  				case 13:
  					iVar0 += 17;
  					break;
  				
  				case 14:
  					iVar0 += 12;
  					break;
  				
  				case 15:
  					iVar0 += 13;
  					break;
  				
  				case 16:
  					iVar0 += 14;
  					break;
  				
  				case 17:
  					iVar0 += 12;
  					break;
  				
  				case 18:
  					iVar0 += 14;
  					break;
  			}
  			break;
  		
  		case 4:
  			switch (iParam1)
  			{
  				case 19:
  					iVar0 += 14;
  					break;
  				
  				case 20:
  					iVar0 += 14;
  					break;
  				
  				case 21:
  					iVar0 += 14;
  					break;
  				
  				case 22:
  					iVar0 += 14;
  					break;
  				
  				case 23:
  					iVar0 += 14;
  					break;
  				
  				case 24:
  					iVar0 += 14;
  					break;
  			}
  			break;
  		
  		case 6:
  			switch (iParam1)
  			{
  				case 25:
  					iVar0 += 4;
  					break;
  				
  				case 26:
  					iVar0 += 4;
  					break;
  				
  				case 27:
  					iVar0 += 4;
  					break;
  				
  				case 28:
  					iVar0 += 4;
  					break;
  				
  				case 29:
  					iVar0 += 4;
  					break;
  				
  				case 30:
  					iVar0 += 4;
  					break;
  			}
  			break;
  		
  		case 5:
  			switch (iParam1)
  			{
  				case 31:
  					iVar0 += 13;
  					break;
  				
  				case 32:
  					iVar0 += 13;
  					break;
  				
  				case 33:
  					iVar0 += 13;
  					break;
  				
  				case 34:
  					iVar0 += 13;
  					break;
  				
  				case 35:
  					iVar0 += 13;
  					break;
  				
  				case 36:
  					iVar0 += 13;
  					break;
  			}
  			break;
  		
  		case 9:
  			switch (iParam1)
  			{
  				case 68:
  					iVar0 = iVar0;
  					break;
  				
  				case 69:
  					iVar0 = iVar0;
  					break;
  				
  				case 70:
  					iVar0 = iVar0;
  					break;
  				
  				case 71:
  					iVar0 = iVar0;
  					break;
  				
  				case 72:
  					iVar0 = iVar0;
  					break;
  				
  				case 73:
  					iVar0 = iVar0;
  					break;
  			}
  			break;
  		
  		case 3:
  			switch (iParam1)
  			{
  				case 74:
  					iVar0 += 10;
  					break;
  				
  				case 75:
  					iVar0 += 10;
  					break;
  				
  				case 76:
  					iVar0 += 10;
  					break;
  				
  				case 77:
  					iVar0 += 10;
  					break;
  			}
  			break;
  		
  		case 10:
  			switch (iParam1)
  			{
  				case 78:
  					iVar0 += 3;
  					break;
  				
  				case joaat("mpsv_lp0_31"):
  					iVar0 += 3;
  					break;
  				
  				case 80:
  					iVar0 += 3;
  					break;
  				
  				case 81:
  					iVar0 += 3;
  					break;
  				
  				case 82:
  					iVar0 += 5;
  					break;
  				
  				case 83:
  					iVar0 += 3;
  					break;
  				
  				case 84:
  					iVar0 += 3;
  					break;
  			}
  			break;
  		
  		case 7:
  			iVar0 += 8;
  			break;
  		
  		case 8:
  			switch (iParam1)
  			{
  				case 62:
  					iVar0 += 8;
  					break;
  				
  				case 63:
  					iVar0 += 8;
  					break;
  				
  				case 64:
  					iVar0 += 8;
  					break;
  				
  				case 65:
  					iVar0 += 8;
  					break;
  				
  				case 66:
  					iVar0 += 8;
  					break;
  				
  				case 67:
  					iVar0 += 8;
  					break;
  			}
  			break;
  		
  		case 11:
  			switch (iParam1)
  			{
  				case 85:
  					iVar0 += 3;
  					break;
  				
  				case 86:
  					iVar0 += 3;
  					break;
  				
  				case 87:
  					iVar0 += 3;
  					break;
  				
  				case 88:
  					iVar0 += 3;
  					break;
  				
  				case 89:
  					iVar0 += 3;
  					break;
  			}
  			break;
  		
  		case 12:
  			switch (iParam1)
  			{
  				case 90:
  					iVar0 += 2;
  					break;
  				
  				case 91:
  					iVar0 += 2;
  					break;
  				
  				case 92:
  					iVar0 += 2;
  					break;
  				
  				case 93:
  					iVar0 += 2;
  					break;
  				
  				case 94:
  					iVar0 += 2;
  					break;
  			}
  			break;
  		
  		case 13:
  			switch (iParam1)
  			{
  				case 37:
  					iVar0 += 18;
  					break;
  			}
  			break;
  		
  		case 14:
  			switch (iParam1)
  			{
  				case 38:
  					iVar0 += 8;
  					break;
  				
  				case 39:
  					iVar0 += 8;
  					break;
  				
  				case 40:
  					iVar0 += 8;
  					break;
  				
  				case 41:
  					iVar0 += 8;
  					break;
  			}
  			break;
  		
  		case 15:
  			iVar0 = iVar0;
  			break;
  		
  		case 16:
  			iVar0 = iVar0;
  			break;
  		
  		case 17:
  			iVar0 = iVar0;
  			break;
  		
  		case 18:
  			iVar0 = iVar0;
  			break;
  		
  		case 19:
  			iVar0 = iVar0;
  			break;
  		
  		default:
  			iVar0 = iVar0;
  			break;
  	}
  	if (iParam0 == 12 || iParam0 == 9)
  	{
  		iVar0 = (iVar0 + func_143(iParam0, func_147() + 1));
  	}
  	return iVar0;
  }
  
  int func_236(int iParam0, int iParam1, int iParam2, bool bParam3)
  {
  	int iVar0;
  	
  	switch (iParam0)
  	{
  		case 0:
  			iVar0 = iVar0;
  			break;
  		
  		case 1:
  			iVar0 += 14;
  			break;
  		
  		case 2:
  			iVar0 += 12;
  			break;
  		
  		case 3:
  			iVar0 += 23;
  			break;
  		
  		case 4:
  			iVar0 += 20;
  			break;
  		
  		case 5:
  			iVar0 += 5;
  			break;
  		
  		case 8:
  			iVar0 += 11;
  			break;
  		
  		case 6:
  			iVar0 += 7;
  			break;
  		
  		case 12:
  			iVar0 += 8;
  			break;
  		
  		case 7:
  			iVar0 += 18;
  			break;
  		
  		case 9:
  			iVar0 = iVar0;
  			break;
  		
  		case 11:
  			iVar0 += 12;
  			break;
  		
  		case 13:
  			iVar0++;
  			break;
  		
  		case 10:
  			iVar0 += 16;
  			break;
  	}
  	if (!bParam3)
  	{
  		if (func_202(iParam0))
  		{
  			iVar0 = (iVar0 + func_237(iParam0, iParam1));
  		}
  	}
  	return iVar0;
  }
  
  int func_237(int iParam0, var uParam1)
  {
  	if (func_202(iParam0))
  	{
  		return (func_201(iParam0) + func_238(iParam0, uParam1));
  	}
  	return 0;
  }
  
  int func_238(int iParam0, var uParam1)
  {
  	switch (iParam0)
  	{
  		case 0:
  			return 6;
  		
  		case 2:
  		case 12:
  		case 1:
  		case 11:
  		case 10:
  			return 2;
  		
  		case 8:
  			return 4;
  		
  		default:
  	}
  	return 0;
  }
  
  int func_239(int iParam0, int iParam1, int iParam2, bool bParam3)
  {
  	int iVar0;
  	
  	switch (iParam0)
  	{
  		case 12:
  			iVar0 += 16;
  			break;
  		
  		case 11:
  			iVar0 += 21;
  			break;
  		
  		case 1:
  			iVar0 += 4;
  			break;
  		
  		case 14:
  			iVar0 += 15;
  			break;
  		
  		case 7:
  			iVar0 += 10;
  			break;
  		
  		case 2:
  			iVar0 += 15;
  			break;
  		
  		case 4:
  			iVar0 += 9;
  			break;
  		
  		case 10:
  			iVar0 += 20;
  			break;
  		
  		case 3:
  			iVar0 += 7;
  			break;
  		
  		case 8:
  			iVar0 += 2;
  			break;
  		
  		case 5:
  			iVar0 += 10;
  			break;
  		
  		case 9:
  			switch (iParam1)
  			{
  				case 7:
  					iVar0 += 17;
  					break;
  				
  				default:
  					iVar0 += 16;
  					break;
  			}
  			break;
  		
  		case 0:
  			if (iParam2 >= 3)
  			{
  				iVar0 += 2;
  			}
  			else
  			{
  				iVar0++;
  			}
  			break;
  		
  		case 23:
  			iVar0 = (iVar0 + iParam2);
  			break;
  		
  		case 20:
  			iVar0 += 10;
  			break;
  		
  		case 22:
  			iVar0 = (iVar0 + (5 * iParam2));
  			break;
  		
  		case 25:
  			iVar0 = (iVar0 + iParam2);
  			break;
  		
  		case 24:
  			iVar0 = (iVar0 + (3 * iParam2));
  			break;
  		
  		case 26:
  			iVar0 += 2;
  			break;
  	}
  	if (!bParam3)
  	{
  		if (func_208(iParam0))
  		{
  			iVar0 = (iVar0 + func_240(iParam0, iParam1));
  		}
  	}
  	return iVar0;
  }
  
  int func_240(int iParam0, int iParam1)
  {
  	if (func_208(iParam0))
  	{
  		return (func_207(iParam0) + func_241(iParam0, iParam1));
  	}
  	return 0;
  }
  
  int func_241(int iParam0, int iParam1)
  {
  	switch (iParam0)
  	{
  		case 11:
  		case 14:
  		case 2:
  		case 10:
  		case 5:
  			return 2;
  		
  		case 1:
  		case 0:
  			return 4;
  		
  		case 4:
  			return 1;
  		
  		case 12:
  			switch (iParam1)
  			{
  				case 2:
  					return 2;
  				
  				default:
  			}
  			break;
  		
  		case 21:
  			return 2;
  		
  		case 17:
  			return 4;
  	}
  	return 0;
  }
  
  int func_242(int iParam0, int iParam1, int iParam2, bool bParam3)
  {
  	int iVar0;
  	
  	switch (iParam0)
  	{
  		case 0:
  			iVar0 = iVar0;
  			break;
  		
  		case 1:
  			switch (iParam1)
  			{
  				case 0:
  					iVar0 += 18;
  					break;
  				
  				case 1:
  					iVar0 += 18;
  					break;
  				
  				case 2:
  					iVar0 += 18;
  					break;
  			}
  			break;
  		
  		case 2:
  			if (iParam2 >= 4)
  			{
  				iVar0 = (iVar0 + iParam2 + 2);
  			}
  			else
  			{
  				iVar0 += 5;
  			}
  			break;
  		
  		case 3:
  			switch (iParam1)
  			{
  				case 9:
  					iVar0 += 4;
  					break;
  				
  				case 10:
  					iVar0 += 4;
  					break;
  				
  				case 11:
  					iVar0 += 4;
  					break;
  				
  				case 12:
  					iVar0 += 4;
  					break;
  			}
  			break;
  		
  		case 4:
  			switch (iParam1)
  			{
  				case 13:
  					iVar0 += 20;
  					break;
  				
  				case 14:
  					iVar0 += 20;
  					break;
  				
  				case 15:
  					iVar0 += 20;
  					break;
  			}
  			break;
  		
  		case 5:
  			iVar0 += 12;
  			break;
  		
  		case 6:
  			switch (iParam1)
  			{
  				case 19:
  					iVar0 += 24;
  					break;
  				
  				case 20:
  					iVar0 += 24;
  					break;
  				
  				case 21:
  					iVar0 += 24;
  					break;
  			}
  			break;
  		
  		case 7:
  			switch (iParam1)
  			{
  				case 22:
  					iVar0 += 12;
  					break;
  				
  				case 23:
  					iVar0 += 12;
  					break;
  				
  				case 24:
  					iVar0 += 12;
  					break;
  			}
  			break;
  		
  		case 8:
  			switch (iParam1)
  			{
  				case 25:
  					iVar0 += 16;
  					break;
  				
  				case 26:
  					iVar0 += 15;
  					break;
  			}
  			break;
  		
  		case 9:
  			switch (iParam1)
  			{
  				case 27:
  					iVar0 += 25;
  					break;
  				
  				case 28:
  					iVar0 += 25;
  					break;
  			}
  			break;
  		
  		case 10:
  			switch (iParam1)
  			{
  				case 29:
  					iVar0 += 15;
  					break;
  				
  				case 30:
  					iVar0 += 15;
  					break;
  				
  				case 31:
  					iVar0 += 15;
  					break;
  			}
  			break;
  		
  		case 11:
  			switch (iParam1)
  			{
  				case 32:
  					iVar0 += 12;
  					break;
  				
  				case 33:
  					iVar0 += 12;
  					break;
  				
  				case 34:
  					iVar0 += 12;
  					break;
  			}
  			break;
  		
  		case 12:
  			iVar0 = iVar0;
  			break;
  		
  		case 13:
  			switch (iParam1)
  			{
  				case 35:
  					iVar0 += 22;
  					break;
  				
  				case 36:
  					iVar0 += 22;
  					break;
  				
  				case 37:
  					iVar0 += 22;
  					break;
  			}
  			break;
  		
  		case 14:
  			iVar0 += 16;
  			break;
  		
  		case 15:
  			iVar0 = iVar0;
  			break;
  		
  		case 16:
  			iVar0 = iVar0;
  			break;
  		
  		case 17:
  			iVar0 = iVar0;
  			break;
  		
  		case 18:
  			iVar0 = iVar0;
  			break;
  		
  		case 19:
  			iVar0 = iVar0;
  			break;
  		
  		case 20:
  			iVar0 += 22;
  			break;
  	}
  	if (!bParam3)
  	{
  		if (func_214(iParam0))
  		{
  			iVar0 = (iVar0 + func_243(iParam0));
  		}
  	}
  	return iVar0;
  }
  
  int func_243(int iParam0)
  {
  	if (func_214(iParam0))
  	{
  		return (func_213(iParam0) + func_244(iParam0));
  	}
  	return 0;
  }
  
  int func_244(int iParam0)
  {
  	switch (iParam0)
  	{
  		case 1:
  		case 2:
  		case 4:
  		case 6:
  		case 7:
  		case 9:
  		case 12:
  		case 13:
  		case 17:
  		case 11:
  			return 2;
  		
  		case 15:
  		case 16:
  		case 19:
  			return 3;
  		
  		case 10:
  		case 8:
  		case 5:
  			return 4;
  		
  		default:
  	}
  	return 0;
  }
  
  int func_245(int iParam0, int iParam1, var uParam2)
  {
  	int iVar0;
  	
  	switch (iParam0)
  	{
  		case 0:
  			iVar0 = iVar0;
  			break;
  		
  		case 1:
  			iVar0 += 5;
  			break;
  		
  		case 7:
  			iVar0 += 6;
  			break;
  		
  		case 8:
  			iVar0 = iVar0;
  			break;
  		
  		case 5:
  			iVar0 = iVar0;
  			break;
  		
  		case 11:
  			iVar0 += 6;
  			break;
  		
  		case 2:
  			iVar0 += 10;
  			break;
  		
  		case 12:
  			iVar0 += 11;
  			break;
  		
  		case 13:
  			iVar0 += 10;
  			break;
  		
  		case 4:
  			switch (iParam1)
  			{
  				case 1:
  					iVar0 += 12;
  					break;
  				
  				case 2:
  					iVar0 += 12;
  					break;
  				
  				case 3:
  					iVar0 += 12;
  					break;
  			}
  			break;
  		
  		case 6:
  			switch (iParam1)
  			{
  				case 18:
  					iVar0 += 8;
  					break;
  				
  				case 19:
  					iVar0 += 8;
  					break;
  				
  				case 20:
  					iVar0 += 8;
  					break;
  			}
  			break;
  		
  		case 10:
  			switch (iParam1)
  			{
  				case 21:
  					iVar0 += 14;
  					break;
  				
  				case 22:
  					iVar0 += 14;
  					break;
  				
  				case 23:
  					iVar0 += 14;
  					break;
  			}
  			break;
  		
  		case 9:
  			switch (iParam1)
  			{
  				case 27:
  					iVar0 += 14;
  					break;
  				
  				case 28:
  					iVar0 += 14;
  					break;
  				
  				case 29:
  					iVar0 += 14;
  					break;
  			}
  			break;
  		
  		case 3:
  			switch (iParam1)
  			{
  				case 30:
  					iVar0 += 3;
  					break;
  				
  				case 31:
  					iVar0 += 3;
  					break;
  				
  				case 32:
  					iVar0 += 3;
  					break;
  			}
  			break;
  		
  		case 14:
  			switch (iParam1)
  			{
  				case 36:
  					iVar0 += 18;
  					break;
  				
  				case 37:
  					iVar0 += 18;
  					break;
  				
  				case 38:
  					iVar0 += 18;
  					break;
  			}
  			break;
  		
  		case 17:
  			switch (iParam1)
  			{
  				case 42:
  					iVar0 += 10;
  					break;
  				
  				case 43:
  					iVar0 += 10;
  					break;
  				
  				case 44:
  					iVar0 += 10;
  					break;
  			}
  			break;
  		
  		case 15:
  			switch (iParam1)
  			{
  				case 45:
  					iVar0 += 17;
  					break;
  				
  				case 46:
  					iVar0 += 17;
  					break;
  				
  				case 47:
  					iVar0 += 17;
  					break;
  			}
  			break;
  		
  		case 16:
  			switch (iParam1)
  			{
  				case 48:
  					iVar0 += 11;
  					break;
  				
  				case 49:
  					iVar0 += 11;
  					break;
  				
  				case 50:
  					iVar0 += 11;
  					break;
  			}
  			break;
  	}
  	iVar0 = (iVar0 + func_246(iParam0));
  	return iVar0;
  }
  
  int func_246(int iParam0)
  {
  	if (func_218(iParam0))
  	{
  		if (func_247(iParam0))
  		{
  			return 4;
  		}
  		return 2;
  	}
  	return 0;
  }
  
  int func_247(int iParam0)
  {
  	switch (iParam0)
  	{
  		case 7:
  		case 2:
  		case 9:
  		case 4:
  		case 17:
  		case 15:
  		case 16:
  		case 8:
  		case 10:
  			return 1;
  		
  		default:
  	}
  	return 0;
  }
  
  int func_248(int iParam0)
  {
  	switch (iParam0)
  	{
  		case 0:
  			return 0;
  		
  		case 1:
  			return 0;
  		
  		case 2:
  			return 0;
  		
  		case 3:
  			return 5;
  		
  		case 4:
  			return 12;
  		
  		case 5:
  			return 4;
  		
  		case 6:
  			return 4;
  		
  		case 7:
  			return 2;
  		
  		case 8:
  			return 12;
  		
  		case 9:
  			return 12;
  		
  		case 10:
  			return 9;
  		
  		case 11:
  			return 8;
  		
  		case 12:
  			return 7;
  		
  		case 13:
  			return 5;
  		
  		case 14:
  			return 12;
  		
  		case 15:
  			return 13;
  		
  		case 16:
  			return 5;
  		
  		case 17:
  			return 15;
  		
  		case 19:
  			return 4;
  		
  		case 18:
  			return 11;
  		
  		default:
  	}
  	return 8;
  }
  
  bool func_249(int iParam0, int iParam1, bool bParam2)
  {
  	return func_87(iParam0, iParam1, bParam2) == -1;
  }
  
  bool func_250()
  {
  	return Global_1893548[PLAYER::PLAYER_ID() /*600*/].f_11.f_331 != 2000;
  }
  
  void func_251(var uParam0)
  {
  	uParam0->f_1 = 0;
  }
  
  bool func_252(int iParam0)
  {
  	if (iParam0 == func_3())
  	{
  		return 0;
  	}
  	return MISC::IS_BIT_SET(Global_2689156[iParam0 /*453*/].f_199, 19);
  }
  
  int func_253(var uParam0, int iParam1, bool bParam2)
  {
  	if (iParam1 == -1)
  	{
  		return 1;
  	}
  	func_254(uParam0, bParam2, 0);
  	if (NETWORK::NETWORK_IS_GAME_IN_PROGRESS() && !bParam2)
  	{
  		if (MISC::ABSI(NETWORK::GET_TIME_DIFFERENCE(NETWORK::GET_NETWORK_TIME(), *uParam0)) >= iParam1)
  		{
  			return 1;
  		}
  	}
  	else if (MISC::ABSI(NETWORK::GET_TIME_DIFFERENCE(MISC::GET_GAME_TIMER(), *uParam0)) >= iParam1)
  	{
  		return 1;
  	}
  	return 0;
  }
  
  void func_254(var uParam0, bool bParam1, bool bParam2)
  {
  	if (uParam0->f_1 == 0)
  	{
  		if (NETWORK::NETWORK_IS_GAME_IN_PROGRESS() && !bParam1)
  		{
  			if (!bParam2)
  			{
  				*uParam0 = NETWORK::GET_NETWORK_TIME();
  			}
  			else
  			{
  				*uParam0 = NETWORK::GET_NETWORK_TIME_ACCURATE();
  			}
  		}
  		else
  		{
  			*uParam0 = MISC::GET_GAME_TIMER();
  		}
  		uParam0->f_1 = 1;
  	}
  }
  
  bool func_255(var uParam0)
  {
  	return uParam0->f_1;
  }
  
  void func_256()
  {
  	if (!Global_1574737)
  	{
  		return;
  	}
  	func_257();
  }
  
  void func_257()
  {
  	Global_1574737 = 0;
  	StringCopy(&(Global_1574737.f_1), "", 32);
  	Global_1574737.f_9 = 0;
  }
  
  bool func_258(int iParam0)
  {
  	if (iParam0 == func_3())
  	{
  		return 0;
  	}
  	return MISC::IS_BIT_SET(Global_2689156[iParam0 /*453*/].f_199, 18);
  }
  
  void func_259()
  {
  	int iVar0;
  	bool bVar1;
  	bool bVar2;
  	int iVar3;
  	
  	if (iLocal_642 == 2000000)
  	{
  		PAD::ENABLE_CONTROL_ACTION(2, 201, true);
  		PAD::ENABLE_CONTROL_ACTION(2, 237, true);
  		if (PAD::IS_CONTROL_JUST_PRESSED(2, 201) || PAD::IS_CONTROL_JUST_PRESSED(2, 237))
  		{
  			GRAPHICS::BEGIN_SCALEFORM_MOVIE_METHOD(iLocal_639, "GET_CURRENT_SELECTION");
  			iLocal_640 = GRAPHICS::END_SCALEFORM_MOVIE_METHOD_RETURN_VALUE();
  			GRAPHICS::BEGIN_SCALEFORM_MOVIE_METHOD(iLocal_639, "GET_CURRENT_TAB_ID");
  			iLocal_641 = GRAPHICS::END_SCALEFORM_MOVIE_METHOD_RETURN_VALUE();
  			iLocal_642 = 1000000;
  		}
  	}
  	if (iLocal_642 == 1000000 && (GRAPHICS::IS_SCALEFORM_MOVIE_METHOD_RETURN_VALUE_READY(iLocal_640) && GRAPHICS::IS_SCALEFORM_MOVIE_METHOD_RETURN_VALUE_READY(iLocal_641)))
  	{
  		iLocal_619 = GRAPHICS::GET_SCALEFORM_MOVIE_METHOD_RETURN_VALUE_INT(iLocal_641);
  		iVar0 = GRAPHICS::GET_SCALEFORM_MOVIE_METHOD_RETURN_VALUE_INT(iLocal_640);
  		bVar1 = true;
  		bVar2 = true;
  		iLocal_642 = iVar0;
  		if (func_318(iVar0))
  		{
  			if (!func_317(8))
  			{
  				func_314("AH_BUYER_T", func_316(), "OR_OVRLY_OK", "", -1, -1);
  				bVar1 = false;
  			}
  			else if (func_312(PLAYER::PLAYER_ID()))
  			{
  				func_314("AH_VEH_SEL_T", "AHA_ARCADE_BLCK", "OR_OVRLY_OK", "", -1, -1);
  				bVar1 = false;
  			}
  			else if (!func_311(iVar0, 0))
  			{
  				if (func_76(0) == 4)
  				{
  					func_314("AH_BUYER_T", "AH_MAX_PLAYERD", "OR_OVRLY_OK", "", -1, -1);
  					bVar1 = false;
  				}
  				else if (func_76(0) < func_82())
  				{
  					func_310(iVar0, 0);
  				}
  				else
  				{
  					func_314("AH_BUYER_T", "AH_NE_PLAYERD", "OR_OVRLY_OK", "", -1, -1);
  					bVar1 = false;
  				}
  			}
  			else
  			{
  				if (iVar0 > 10000)
  				{
  					iVar0 = (iVar0 - 10000);
  				}
  				func_309(iVar0);
  			}
  			iLocal_642 = 2000000;
  		}
  		else if (func_308(iVar0))
  		{
  			iVar3 = iVar0;
  			if (!func_317(8))
  			{
  				func_314("AH_BUYER_T", func_316(), "OR_OVRLY_OK", "", -1, -1);
  				bVar1 = false;
  			}
  			else if (func_312(PLAYER::PLAYER_ID()))
  			{
  				func_314("AH_VEH_SEL_T", "AHA_ARCADE_BLCK", "OR_OVRLY_OK", "", -1, -1);
  				bVar1 = false;
  			}
  			else if (!func_307(iVar3))
  			{
  				func_314("AH_BUYER_T", func_306(iVar3), "OR_OVRLY_OK", "", -1, -1);
  				bVar1 = false;
  			}
  			else if (func_82() < func_305(iVar3))
  			{
  				func_314("AH_BUYER_T", "AH_COL_PLAYERD", "OR_OVRLY_OK", "", -1, -1);
  				bVar1 = false;
  			}
  			else if (iLocal_638 == iVar3)
  			{
  				iLocal_638 = 2000;
  				func_304(1, 0);
  			}
  			else if (func_303())
  			{
  				func_304(1, 0);
  				GRAPHICS::CALL_SCALEFORM_MOVIE_METHOD_WITH_NUMBER(iLocal_639, "SET_INPUT_EVENT", SYSTEM::TO_FLOAT(iLocal_638), -1f, -1f, -1f, -1f);
  				iLocal_638 = iVar3;
  				func_300(iVar3);
  			}
  			else
  			{
  				iLocal_638 = iVar3;
  				func_300(iVar3);
  			}
  			iLocal_642 = 2000000;
  		}
  		else
  		{
  			switch (iVar0)
  			{
  				case 101:
  					break;
  				
  				case 102:
  					break;
  				
  				case 1002:
  					break;
  				
  				case 1007:
  					break;
  				
  				case 1008:
  					break;
  				
  				case 1009:
  					break;
  				
  				case 1000:
  					bVar2 = false;
  					func_299(0);
  					break;
  				
  				case 1001:
  					bVar2 = false;
  					func_299(1);
  					break;
  				
  				default:
  					break;
  				}
  		}
  		if (bVar1)
  		{
  			GRAPHICS::CALL_SCALEFORM_MOVIE_METHOD_WITH_NUMBER(iLocal_639, "SET_INPUT_EVENT", SYSTEM::TO_FLOAT(iVar0), -1f, -1f, -1f, -1f);
  		}
  		if (bVar2)
  		{
  			func_299(iLocal_619);
  		}
  	}
  	func_260(&iLocal_642);
  }
  
  void func_260(int iParam0)
  {
  	bool bVar0;
  	struct<4> Var1;
  	int iVar5;
  	int iVar6;
  	int iVar7;
  	int iVar8;
  	int iVar9;
  	int iVar10;
  	int iVar11;
  	int iVar12;
  	
  	if (*iParam0 < 1000000)
  	{
  		if (func_80())
  		{
  			if ((*iParam0 == 1007 || *iParam0 == 1008) || *iParam0 == 1009)
  			{
  				func_314("AH_BUYER_T", "AH_SAVING_DOWN", "WHOUSE_CONF", "", -1, -1);
  				iLocal_617 = 0;
  				*iParam0 = 2000000;
  				return;
  			}
  		}
  		if (*iParam0 == 101)
  		{
  			if (iLocal_617)
  			{
  				bVar0 = func_303();
  				if (iLocal_619 != 1)
  				{
  					bVar0 = false;
  				}
  				if (func_78(bVar0, 0))
  				{
  					func_298(bVar0);
  					func_285(bVar0);
  					func_284();
  				}
  				else
  				{
  					Var1 = { func_282(bVar0) };
  					func_284();
  					GRAPHICS::CALL_SCALEFORM_MOVIE_METHOD_WITH_NUMBER(iLocal_639, "SET_INPUT_EVENT", SYSTEM::TO_FLOAT(202), -1f, -1f, -1f, -1f);
  					if (iLocal_618 == 17 && !bVar0)
  					{
  						iVar6 = (func_76(bVar0) - func_82());
  						iVar5 = 0;
  						while (iVar5 < iVar6)
  						{
  							func_281();
  							iVar5++;
  						}
  					}
  					func_314("AH_BUYER_T", &Var1, "OR_OVRLY_OK", "", -1, -1);
  				}
  			}
  			else
  			{
  				func_284();
  			}
  		}
  		else if (*iParam0 == 102)
  		{
  			func_284();
  		}
  		else if (*iParam0 == 1002)
  		{
  			if (!func_317(8))
  			{
  				func_314("AH_BUYER_T", func_316(), "OR_OVRLY_OK", "", -1, -1);
  			}
  			else if (func_312(PLAYER::PLAYER_ID()))
  			{
  				func_314("AH_VEH_SEL_T", "AHA_ARCADE_BLCK", "OR_OVRLY_OK", "", -1, -1);
  			}
  			else if ((iLocal_622[0] == 0 && iLocal_619 == 0) || (iLocal_627[0] == 0 && iLocal_619 == 1))
  			{
  				func_314("AH_VEH_SEL_T", "AH_VEH_SEL_D", "OR_OVRLY_OK", "", -1, -1);
  			}
  			else if (!func_64(PLAYER::PLAYER_ID()))
  			{
  				func_314("AH_BUYER_T", "AH_NBOSS", "OR_OVRLY_OK", "", -1, -1);
  			}
  			else if (func_303() && iLocal_619 == 1)
  			{
  				if (func_80())
  				{
  					func_314("AH_BUYER_T", "AH_SAVING_DOWN", "WHOUSE_CONF", "", -1, -1);
  				}
  				else
  				{
  					func_314("AH_BUYER_T", "AH_BUYER_D3", "WHOUSE_CONF", "WHOUSE_CANC", -1, -1);
  					iLocal_637 = 2;
  					iLocal_617 = 1;
  				}
  			}
  			else
  			{
  				func_280();
  			}
  		}
  		else if (*iParam0 == 1007)
  		{
  			if (func_279(0))
  			{
  				func_314("AH_BUYER_T", func_278(1, 1, -1, 1), "WHOUSE_CONF", "", -1, -1);
  				iLocal_617 = 0;
  			}
  			else if (func_277(0))
  			{
  				iVar7 = func_261(6, 1);
  				iVar8 = func_261(6, 0);
  				if (iVar7 <= 0)
  				{
  					iVar7 = -1;
  				}
  				func_314("AH_BUYER_T", func_278(1, 0, iVar7, 0), "WHOUSE_CONF", "WHOUSE_CANC", iVar7, iVar8);
  				iLocal_637 = 0;
  				iLocal_617 = 1;
  			}
  			else
  			{
  				func_314("AH_BUYER_T", func_278(1, 1, -1, 0), "WHOUSE_CONF", "", -1, -1);
  				iLocal_617 = 0;
  			}
  		}
  		else if (*iParam0 == 1008)
  		{
  			if (func_279(1))
  			{
  				func_314("AH_BUYER_T", func_278(1, 1, -1, 1), "WHOUSE_CONF", "", -1, -1);
  				iLocal_617 = 0;
  			}
  			else if (func_277(1))
  			{
  				iVar9 = func_261(11, 1);
  				iVar10 = func_261(11, 0);
  				func_314("AH_BUYER_T", func_278(0, 0, -1, 0), "WHOUSE_CONF", "WHOUSE_CANC", iVar9, iVar10);
  				iLocal_637 = 1;
  				iLocal_617 = 1;
  			}
  			else
  			{
  				func_314("AH_BUYER_T", func_278(1, 1, -1, 0), "WHOUSE_CONF", "", -1, -1);
  				iLocal_617 = 0;
  			}
  		}
  		else if (*iParam0 == 1009)
  		{
  			if (func_279(2))
  			{
  				func_314("AH_BUYER_T", func_278(1, 1, -1, 1), "WHOUSE_CONF", "", -1, -1);
  				iLocal_617 = 0;
  			}
  			else if (func_277(2))
  			{
  				iVar11 = func_261(19, 1);
  				iVar12 = func_261(19, 0);
  				func_314("AH_BUYER_T", func_278(0, 0, -1, 0), "WHOUSE_CONF", "WHOUSE_CANC", iVar11, iVar12);
  				iLocal_637 = 2;
  				iLocal_617 = 1;
  			}
  			else
  			{
  				func_314("AH_BUYER_T", func_278(1, 1, -1, 0), "WHOUSE_CONF", "", -1, -1);
  				iLocal_617 = 0;
  			}
  		}
  		*iParam0 = 2000000;
  	}
  }
  
  int func_261(int iParam0, bool bParam1)
  {
  	int iVar0;
  	int iVar1;
  	int iVar2;
  	
  	iVar0 = 0;
  	while (iVar0 < 4)
  	{
  		if (iLocal_622[iVar0] != 0)
  		{
  			iVar2 = iLocal_622[iVar0];
  			iVar1 = (iVar1 + func_262(func_276(iVar2), iParam0, bParam1, 0, 0));
  		}
  		iVar0++;
  	}
  	return iVar1;
  }
  
  int func_262(int iParam0, int iParam1, bool bParam2, bool bParam3, bool bParam4)
  {
  	var uVar0;
  	int iVar6;
  	int iVar7;
  	int iVar8;
  	
  	if (func_275(iParam0))
  	{
  		if (bParam3)
  		{
  			if (func_271(&uVar0, iParam0, 0, -1))
  			{
  				return uVar0;
  			}
  		}
  		else
  		{
  			iVar6 = func_270(iParam0);
  			iVar7 = 0;
  			iVar8 = 0;
  			if (func_269(iParam1) && !bParam4)
  			{
  				iVar8 = func_267(func_268(iVar6));
  				iVar7 = func_266(iVar6, bParam4);
  			}
  			else if (func_265(iParam1) || bParam4)
  			{
  				iVar8 = func_264(func_268(iVar6));
  				iVar7 = func_263(iVar6, bParam4);
  			}
  			else
  			{
  				iVar8 = Global_262145.f_19209;
  				iVar7 = func_268(iVar6);
  			}
  			if (bParam2)
  			{
  				iVar7 = iVar8;
  			}
  			return iVar7;
  		}
  	}
  	return 0;
  }
  
  int func_263(int iParam0, bool bParam1)
  {
  	int iVar0;
  	int iVar1;
  	
  	iVar0 = SYSTEM::CEIL((IntToFloat(func_268(iParam0)) * Global_262145.f_19213));
  	iVar1 = 0;
  	if (!bParam1)
  	{
  		iVar1 = func_264(func_268(iParam0));
  	}
  	return (iVar0 + iVar1);
  }
  
  int func_264(int iParam0)
  {
  	return SYSTEM::CEIL((IntToFloat(iParam0) * Global_262145.f_19211));
  }
  
  int func_265(int iParam0)
  {
  	switch (iParam0)
  	{
  		case 19:
  		case 20:
  		case 21:
  		case 22:
  		case 23:
  		case 24:
  		case 25:
  		case 26:
  			return 1;
  		
  		default:
  	}
  	return 0;
  }
  
  int func_266(int iParam0, bool bParam1)
  {
  	int iVar0;
  	int iVar1;
  	
  	iVar0 = SYSTEM::CEIL((IntToFloat(func_268(iParam0)) * Global_262145.f_19212));
  	iVar1 = 0;
  	if (!bParam1)
  	{
  		iVar1 = func_267(func_268(iParam0));
  	}
  	return (iVar0 + iVar1);
  }
  
  int func_267(int iParam0)
  {
  	return SYSTEM::CEIL((IntToFloat(iParam0) * Global_262145.f_19210));
  }
  
  int func_268(int iParam0)
  {
  	switch (iParam0)
  	{
  		case 3:
  			return Global_262145.f_19206;
  		
  		case 2:
  			return Global_262145.f_19207;
  		
  		case 1:
  			return Global_262145.f_19208;
  		
  		default:
  	}
  	return 0;
  }
  
  int func_269(int iParam0)
  {
  	switch (iParam0)
  	{
  		case 11:
  		case 12:
  		case 13:
  		case 14:
  		case 15:
  		case 16:
  		case 17:
  		case 18:
  			return 1;
  		
  		default:
  	}
  	return 0;
  }
  
  int func_270(int iParam0)
  {
  	switch (iParam0)
  	{
  		case joaat("prototipo"):
  		case joaat("tyrus"):
  		case joaat("t20"):
  		case joaat("sheava"):
  		case joaat("osiris"):
  		case joaat("fmj"):
  		case joaat("reaper"):
  		case joaat("pfister811"):
  		case joaat("mamba"):
  		case joaat("btype3"):
  		case joaat("feltzer3"):
  		case joaat("ztype"):
  			return 3;
  		
  		case joaat("tropos"):
  		case joaat("entityxf"):
  		case joaat("sultanrs"):
  		case joaat("zentorno"):
  		case joaat("omnis"):
  		case joaat("coquette3"):
  		case joaat("seven70"):
  		case joaat("verlierer2"):
  		case joaat("coquette2"):
  		case joaat("cheetah"):
  			return 2;
  		
  		case joaat("bestiagts"):
  		case joaat("nightshade"):
  		case joaat("banshee2"):
  		case joaat("sabregt2"):
  		case joaat("turismor"):
  		case joaat("tampa"):
  		case joaat("massacro"):
  		case joaat("jester"):
  		case joaat("alpha"):
  		case joaat("feltzer2"):
  			return 1;
  		
  		default:
  	}
  	return 1;
  }
  
  int func_271(var uParam0, int iParam1, bool bParam2, int iParam3)
  {
  	bool bVar0;
  	int iVar1;
  	int iVar2;
  	bool bVar3;
  	
  	bVar0 = NETWORK::NETWORK_IS_GAME_IN_PROGRESS();
  	if (iParam3 == 0)
  	{
  		bVar0 = true;
  	}
  	else if (iParam3 == 1)
  	{
  		bVar0 = false;
  	}
  	iVar1 = -1;
  	iVar2 = -1;
  	if (!STREAMING::IS_MODEL_A_VEHICLE(iParam1))
  	{
  		bVar3 = false;
  		if (iParam1 == 0)
  		{
  		}
  		else if (iParam1 == Global_74982)
  		{
  		}
  		else if (iParam1 == Global_74983)
  		{
  		}
  		else if (iParam1 == Global_74984)
  		{
  			iVar1 = 500000;
  			if (bVar0)
  			{
  				if (Global_262145.f_21362 >= 0)
  				{
  					iVar1 = Global_262145.f_21362;
  				}
  			}
  			bVar3 = true;
  		}
  		else if (iParam1 == Global_74985)
  		{
  		}
  		else if (iParam1 == Global_74986)
  		{
  		}
  		else if (iParam1 == joaat("kosatka"))
  		{
  		}
  		if (!bVar3)
  		{
  			return 0;
  		}
  	}
  	switch (iParam1)
  	{
  		case joaat("adder"):
  			iVar1 = 1000000;
  			break;
  		
  		case joaat("akuma"):
  			iVar1 = 9000;
  			break;
  		
  		case joaat("asea"):
  			iVar1 = 12000;
  			break;
  		
  		case joaat("asterope"):
  			iVar1 = 26000;
  			break;
  		
  		case joaat("bagger"):
  			iVar1 = 16000;
  			if (bVar0)
  			{
  				if (Global_262145.f_17717 >= 0)
  				{
  					iVar1 = Global_262145.f_17717;
  				}
  			}
  			break;
  		
  		case joaat("baller"):
  			iVar1 = 90000;
  			break;
  		
  		case joaat("baller2"):
  			iVar1 = 90000;
  			break;
  		
  		case joaat("banshee"):
  			iVar1 = 90000;
  			break;
  		
  		case joaat("bati"):
  			iVar1 = 10000;
  			break;
  		
  		case joaat("bati2"):
  			iVar1 = 10000;
  			break;
  		
  		case joaat("bfinjection"):
  			iVar1 = 16000;
  			break;
  		
  		case joaat("bison"):
  			iVar1 = 30000;
  			break;
  		
  		case joaat("bison2"):
  			iVar1 = 30000;
  			break;
  		
  		case joaat("bison3"):
  			iVar1 = 30000;
  			break;
  		
  		case joaat("bjxl"):
  			iVar1 = 27000;
  			if (bVar0)
  			{
  				if (Global_262145.f_24545 >= 0)
  				{
  					iVar1 = Global_262145.f_24545;
  				}
  			}
  			break;
  		
  		case joaat("blazer"):
  			iVar1 = 8000;
  			break;
  		
  		case joaat("blazer2"):
  			iVar1 = 62000;
  			if (bVar0)
  			{
  				iVar1 = Global_262145.f_28235;
  			}
  			break;
  		
  		case joaat("blista"):
  			iVar1 = 16000;
  			break;
  		
  		case joaat("bobcatxl"):
  			iVar1 = 23000;
  			break;
  		
  		case joaat("bodhi2"):
  			iVar1 = 12000;
  			break;
  		
  		case joaat("boxville"):
  			if (!bParam2)
  			{
  				iVar1 = 298500;
  				if (bVar0)
  				{
  					iVar1 = Global_262145.f_28161;
  				}
  			}
  			else
  			{
  				iVar1 = 398000;
  				if (bVar0)
  				{
  					iVar1 = Global_262145.f_28160;
  				}
  				iVar2 = 298500;
  				if (bVar0)
  				{
  					iVar2 = Global_262145.f_28161;
  				}
  			}
  			break;
  		
  		case joaat("stockade"):
  			if (!bParam2)
  			{
  				iVar1 = 1680000;
  				if (bVar0)
  				{
  					iVar1 = Global_262145.f_28163;
  				}
  			}
  			else
  			{
  				iVar1 = 2240000;
  				if (bVar0)
  				{
  					iVar1 = Global_262145.f_28162;
  				}
  				iVar2 = 1680000;
  				if (bVar0)
  				{
  					iVar2 = Global_262145.f_28163;
  				}
  			}
  			break;
  		
  		case joaat("boxville2"):
  			iVar1 = 25000;
  			break;
  		
  		case joaat("boxville3"):
  			iVar1 = 25000;
  			break;
  		
  		case joaat("buccaneer"):
  			iVar1 = 28000;
  			break;
  		
  		case joaat("buffalo"):
  			iVar1 = 35000;
  			break;
  		
  		case joaat("buffalo2"):
  			iVar1 = 96000;
  			break;
  		
  		case joaat("bullet"):
  			iVar1 = 150000;
  			break;
  		
  		case joaat("burrito"):
  			iVar1 = 13000;
  			break;
  		
  		case joaat("burrito2"):
  			if (bParam2)
  			{
  				iVar1 = 450000;
  				if (bVar0)
  				{
  					iVar1 = Global_262145.f_28159;
  				}
  			}
  			else
  			{
  				iVar1 = 598500;
  				if (bVar0)
  				{
  					iVar1 = Global_262145.f_28158;
  				}
  				iVar2 = 450000;
  				if (bVar0)
  				{
  					iVar2 = Global_262145.f_28159;
  				}
  			}
  			break;
  		
  		case joaat("burrito3"):
  			iVar1 = 13000;
  			break;
  		
  		case joaat("burrito4"):
  			iVar1 = 13000;
  			break;
  		
  		case joaat("carbonizzare"):
  			iVar1 = 195000;
  			break;
  		
  		case joaat("carbonrs"):
  			iVar1 = 40000;
  			break;
  		
  		case joaat("cavalcade"):
  			iVar1 = 60000;
  			break;
  		
  		case joaat("cavalcade2"):
  			iVar1 = 70000;
  			break;
  		
  		case joaat("cheetah"):
  			iVar1 = 650000;
  			break;
  		
  		case joaat("cogcabrio"):
  			iVar1 = 185000;
  			break;
  		
  		case joaat("comet2"):
  			iVar1 = 85000;
  			break;
  		
  		case joaat("coquette"):
  			iVar1 = 55000;
  			break;
  		
  		case joaat("daemon"):
  			iVar1 = 20000;
  			break;
  		
  		case joaat("dilettante"):
  			iVar1 = 25000;
  			break;
  		
  		case joaat("dominator"):
  			iVar1 = 35000;
  			if (bVar0 && Global_262145.f_7431 >= 0)
  			{
  				iVar1 = Global_262145.f_7431;
  			}
  			if (bParam2)
  			{
  				iVar2 = iVar1;
  				iVar1 = SYSTEM::ROUND((SYSTEM::TO_FLOAT(35000) * 0.75f));
  				if (bVar0 && Global_262145.f_25588 >= 0)
  				{
  					iVar1 = Global_262145.f_25588;
  				}
  			}
  			break;
  		
  		case joaat("double"):
  			iVar1 = 12000;
  			break;
  		
  		case joaat("dubsta"):
  			iVar1 = 120000;
  			break;
  		
  		case joaat("dubsta2"):
  			iVar1 = 120000;
  			break;
  		
  		case joaat("elegy2"):
  			if (!bParam2)
  			{
  				iVar1 = 95000;
  				if (bVar0)
  				{
  					if (Global_262145.f_19442 >= 0)
  					{
  						iVar1 = Global_262145.f_19442;
  					}
  				}
  			}
  			else
  			{
  				iVar1 = 0;
  				if (bVar0)
  				{
  					if (Global_262145.f_8400 >= 0)
  					{
  						iVar1 = Global_262145.f_8400;
  					}
  				}
  			}
  			break;
  		
  		case joaat("emperor"):
  			iVar1 = 8000;
  			break;
  		
  		case joaat("emperor2"):
  			iVar1 = 5000;
  			break;
  		
  		case joaat("emperor3"):
  			iVar1 = 5000;
  			break;
  		
  		case joaat("entityxf"):
  			iVar1 = 795000;
  			break;
  		
  		case joaat("exemplar"):
  			iVar1 = 205000;
  			break;
  		
  		case joaat("f620"):
  			iVar1 = 80000;
  			break;
  		
  		case joaat("faggio2"):
  			iVar1 = 5000;
  			break;
  		
  		case joaat("felon"):
  			iVar1 = 100000;
  			break;
  		
  		case joaat("felon2"):
  			iVar1 = 95000;
  			break;
  		
  		case joaat("feltzer2"):
  			iVar1 = 145000;
  			break;
  		
  		case joaat("fq2"):
  			iVar1 = 50000;
  			if (bVar0)
  			{
  				if (Global_262145.f_24546 >= 0)
  				{
  					iVar1 = Global_262145.f_24546;
  				}
  			}
  			break;
  		
  		case joaat("fugitive"):
  			iVar1 = 24000;
  			break;
  		
  		case joaat("fusilade"):
  			iVar1 = 36000;
  			break;
  		
  		case joaat("futo"):
  			iVar1 = 9000;
  			if (bVar0)
  			{
  				if (Global_262145.f_24539 >= 0)
  				{
  					iVar1 = Global_262145.f_24539;
  				}
  			}
  			break;
  		
  		case joaat("gauntlet"):
  			iVar1 = 32000;
  			break;
  		
  		case joaat("gburrito"):
  			iVar1 = 16000;
  			break;
  		
  		case joaat("granger"):
  			iVar1 = 35000;
  			break;
  		
  		case joaat("gresley"):
  			iVar1 = 29000;
  			break;
  		
  		case joaat("habanero"):
  			iVar1 = 42000;
  			if (bVar0)
  			{
  				if (Global_262145.f_24547 >= 0)
  				{
  					iVar1 = Global_262145.f_24547;
  				}
  			}
  			break;
  		
  		case joaat("hexer"):
  			iVar1 = 15000;
  			break;
  		
  		case joaat("hotknife"):
  			iVar1 = 90000;
  			break;
  		
  		case joaat("infernus"):
  			iVar1 = 440000;
  			break;
  		
  		case joaat("ingot"):
  			iVar1 = 9000;
  			break;
  		
  		case joaat("intruder"):
  			iVar1 = 16000;
  			break;
  		
  		case joaat("issi2"):
  			iVar1 = 18000;
  			break;
  		
  		case joaat("jackal"):
  			iVar1 = 60000;
  			break;
  		
  		case joaat("jb700"):
  			iVar1 = 475000;
  			break;
  		
  		case joaat("khamelion"):
  			iVar1 = 100000;
  			break;
  		
  		case joaat("landstalker"):
  			iVar1 = 58000;
  			break;
  		
  		case joaat("lguard"):
  			iVar1 = 865000;
  			if (bVar0)
  			{
  				iVar1 = Global_262145.f_28234;
  			}
  			break;
  		
  		case joaat("firetruk"):
  			if (!bParam2)
  			{
  				iVar1 = 2471250;
  				if (bVar0)
  				{
  					iVar1 = Global_262145.f_28157;
  				}
  			}
  			else
  			{
  				iVar1 = 3295000;
  				if (bVar0)
  				{
  					iVar1 = Global_262145.f_28156;
  				}
  				iVar2 = 2471250;
  				if (bVar0)
  				{
  					iVar2 = Global_262145.f_28157;
  				}
  			}
  			break;
  		
  		case joaat("manana"):
  			iVar1 = 10000;
  			if (bVar0)
  			{
  				if (Global_262145.f_29025 >= 0)
  				{
  					iVar1 = Global_262145.f_29025;
  				}
  			}
  			break;
  		
  		case joaat("mesa"):
  			iVar1 = 30000;
  			break;
  		
  		case joaat("minivan"):
  			iVar1 = 30000;
  			break;
  		
  		case joaat("monroe"):
  			iVar1 = 490000;
  			break;
  		
  		case joaat("nemesis"):
  			iVar1 = 12000;
  			break;
  		
  		case joaat("ninef"):
  			iVar1 = 120000;
  			break;
  		
  		case joaat("ninef2"):
  			iVar1 = 130000;
  			break;
  		
  		case joaat("oracle"):
  			iVar1 = 82000;
  			break;
  		
  		case joaat("oracle2"):
  			iVar1 = 80000;
  			break;
  		
  		case joaat("patriot"):
  			iVar1 = 50000;
  			if (bVar0)
  			{
  				if (Global_262145.f_24543 >= 0)
  				{
  					iVar1 = Global_262145.f_24543;
  				}
  			}
  			break;
  		
  		case joaat("pcj"):
  			iVar1 = 9000;
  			break;
  		
  		case joaat("penumbra"):
  			iVar1 = 24000;
  			break;
  		
  		case joaat("peyote"):
  			iVar1 = 12000;
  			if (bVar0)
  			{
  				if (Global_262145.f_29026 >= 0)
  				{
  					iVar1 = Global_262145.f_29026;
  				}
  			}
  			break;
  		
  		case joaat("phoenix"):
  			iVar1 = 20000;
  			break;
  		
  		case joaat("prairie"):
  			iVar1 = 25000;
  			if (bVar0)
  			{
  				if (Global_262145.f_24542 >= 0)
  				{
  					iVar1 = Global_262145.f_24542;
  				}
  			}
  			break;
  		
  		case joaat("pranger"):
  			iVar1 = 35000;
  			break;
  		
  		case joaat("premier"):
  			iVar1 = 10000;
  			break;
  		
  		case joaat("primo"):
  			iVar1 = 9000;
  			break;
  		
  		case joaat("radi"):
  			iVar1 = 32000;
  			break;
  		
  		case joaat("rancherxl"):
  			iVar1 = 9000;
  			break;
  		
  		case joaat("rancherxl2"):
  			iVar1 = 9000;
  			break;
  		
  		case joaat("rapidgt"):
  			iVar1 = 118000;
  			break;
  		
  		case joaat("rapidgt2"):
  			iVar1 = 136000;
  			break;
  		
  		case joaat("ratloader"):
  			iVar1 = 6000;
  			break;
  		
  		case joaat("rebel"):
  			iVar1 = 7000;
  			break;
  		
  		case joaat("rebel2"):
  			iVar1 = 22000;
  			break;
  		
  		case joaat("regina"):
  			iVar1 = 8000;
  			break;
  		
  		case joaat("rocoto"):
  			iVar1 = 85000;
  			break;
  		
  		case joaat("ruffian"):
  			iVar1 = 10000;
  			break;
  		
  		case joaat("ruiner"):
  			iVar1 = 10000;
  			if (bVar0)
  			{
  				if (Global_262145.f_24540 >= 0)
  				{
  					iVar1 = Global_262145.f_24540;
  				}
  			}
  			break;
  		
  		case joaat("rumpo"):
  			iVar1 = 13000;
  			break;
  		
  		case joaat("sabregt"):
  			iVar1 = 15000;
  			if (bVar0)
  			{
  				if (Global_262145.f_14778 >= 0)
  				{
  					iVar1 = Global_262145.f_14778;
  				}
  			}
  			break;
  		
  		case joaat("sadler"):
  			iVar1 = 35000;
  			break;
  		
  		case joaat("sanchez"):
  			iVar1 = 7000;
  			break;
  		
  		case joaat("sandking"):
  			iVar1 = 45000;
  			break;
  		
  		case joaat("sandking2"):
  			iVar1 = 45000;
  			break;
  		
  		case joaat("schafter2"):
  			iVar1 = 65000;
  			break;
  		
  		case joaat("schwarzer"):
  			iVar1 = 80000;
  			break;
  		
  		case joaat("seashark"):
  			iVar1 = 16899;
  			break;
  		
  		case joaat("seminole"):
  			iVar1 = 30000;
  			break;
  		
  		case joaat("sentinel"):
  			iVar1 = 60000;
  			break;
  		
  		case joaat("sentinel2"):
  			iVar1 = 60000;
  			break;
  		
  		case joaat("serrano"):
  			iVar1 = 60000;
  			if (bVar0)
  			{
  				if (Global_262145.f_24544 >= 0)
  				{
  					iVar1 = Global_262145.f_24544;
  				}
  			}
  			break;
  		
  		case joaat("speedo"):
  			iVar1 = 15000;
  			break;
  		
  		case joaat("speedo2"):
  			iVar1 = 15000;
  			break;
  		
  		case joaat("stanier"):
  			iVar1 = 10000;
  			break;
  		
  		case joaat("stinger"):
  			iVar1 = 1000000;
  			break;
  		
  		case joaat("stingergt"):
  			iVar1 = 1000000;
  			break;
  		
  		case joaat("stratum"):
  			iVar1 = 10000;
  			break;
  		
  		case joaat("stretch"):
  			iVar1 = 30000;
  			break;
  		
  		case joaat("sultan"):
  			iVar1 = 12000;
  			break;
  		
  		case joaat("superd"):
  			iVar1 = 250000;
  			break;
  		
  		case joaat("surano"):
  			iVar1 = 99000;
  			break;
  		
  		case joaat("surge"):
  			iVar1 = 38000;
  			break;
  		
  		case joaat("tailgater"):
  			iVar1 = 55000;
  			break;
  		
  		case joaat("taxi"):
  			iVar1 = 13000;
  			break;
  		
  		case joaat("tornado"):
  			iVar1 = 30000;
  			if (bVar0)
  			{
  				if (Global_262145.f_14779 >= 0)
  				{
  					iVar1 = Global_262145.f_14779;
  				}
  			}
  			break;
  		
  		case joaat("tornado2"):
  			iVar1 = 30000;
  			if (bVar0)
  			{
  				if (Global_262145.f_14779 >= 0)
  				{
  					iVar1 = Global_262145.f_14779;
  				}
  			}
  			break;
  		
  		case joaat("tornado3"):
  			iVar1 = 30000;
  			if (bVar0)
  			{
  				if (Global_262145.f_14779 >= 0)
  				{
  					iVar1 = Global_262145.f_14779;
  				}
  			}
  			break;
  		
  		case joaat("tornado4"):
  			iVar1 = 30000;
  			if (bVar0)
  			{
  				if (Global_262145.f_14779 >= 0)
  				{
  					iVar1 = Global_262145.f_14779;
  				}
  			}
  			break;
  		
  		case joaat("vacca"):
  			iVar1 = 240000;
  			break;
  		
  		case joaat("vader"):
  			iVar1 = 9000;
  			break;
  		
  		case joaat("vigero"):
  			iVar1 = 21000;
  			break;
  		
  		case joaat("voltic"):
  			iVar1 = 80000;
  			break;
  		
  		case joaat("voodoo2"):
  			iVar1 = 5000;
  			break;
  		
  		case joaat("washington"):
  			iVar1 = 15000;
  			break;
  		
  		case joaat("youga"):
  			iVar1 = 16000;
  			break;
  		
  		case joaat("zion"):
  			iVar1 = 50000;
  			break;
  		
  		case joaat("zion2"):
  			iVar1 = 65000;
  			break;
  		
  		case joaat("bmx"):
  			iVar1 = 500;
  			break;
  		
  		case joaat("scorcher"):
  			iVar1 = 1000;
  			break;
  		
  		case joaat("tribike"):
  			iVar1 = 2500;
  			break;
  		
  		case joaat("tribike2"):
  			iVar1 = 2500;
  			break;
  		
  		case joaat("tribike3"):
  			iVar1 = 2500;
  			break;
  		
  		case joaat("cruiser"):
  			iVar1 = 3000;
  			break;
  		
  		case joaat("ztype"):
  			if (bVar0)
  			{
  				iVar1 = 1000000;
  			}
  			else
  			{
  				iVar1 = 10000000;
  			}
  			break;
  	}
  	if (bVar0 || iParam3 == 1)
  	{
  		switch (iParam1)
  		{
  			case joaat("adder"):
  				iVar1 = 1000000;
  				break;
  			
  			case joaat("airbus"):
  				iVar1 = 550000;
  				break;
  			
  			case joaat("akuma"):
  				iVar1 = 9000;
  				break;
  			
  			case joaat("annihilator"):
  				iVar1 = 4000000;
  				break;
  			
  			case joaat("baller2"):
  				iVar1 = 90000;
  				break;
  			
  			case joaat("banshee"):
  				iVar1 = 105000;
  				break;
  			
  			case joaat("barracks"):
  				iVar1 = 450000;
  				break;
  			
  			case joaat("bati"):
  				iVar1 = 15000;
  				break;
  			
  			case joaat("bati2"):
  				iVar1 = 15000;
  				break;
  			
  			case joaat("bfinjection"):
  				iVar1 = 16000;
  				break;
  			
  			case joaat("bison"):
  				iVar1 = 30000;
  				break;
  			
  			case joaat("blazer"):
  				iVar1 = 8000;
  				break;
  			
  			case joaat("bmx"):
  				iVar1 = 800;
  				break;
  			
  			case joaat("bullet"):
  				iVar1 = 155000;
  				break;
  			
  			case joaat("bus"):
  				iVar1 = 500000;
  				break;
  			
  			case joaat("buzzard"):
  				iVar1 = 2000000;
  				break;
  			
  			case joaat("carbonizzare"):
  				iVar1 = 195000;
  				break;
  			
  			case joaat("carbonrs"):
  				iVar1 = 40000;
  				break;
  			
  			case joaat("cargobob"):
  				iVar1 = 185000;
  				break;
  			
  			case joaat("cheetah"):
  				iVar1 = 650000;
  				break;
  			
  			case joaat("coach"):
  				iVar1 = 525000;
  				break;
  			
  			case joaat("cogcabrio"):
  				iVar1 = 185000;
  				break;
  			
  			case joaat("comet2"):
  				iVar1 = 100000;
  				break;
  			
  			case joaat("coquette"):
  				iVar1 = 138000;
  				break;
  			
  			case joaat("cruiser"):
  				iVar1 = 800;
  				break;
  			
  			case joaat("crusader"):
  				iVar1 = 225000;
  				break;
  			
  			case joaat("cuban800"):
  				iVar1 = 240000;
  				break;
  			
  			case joaat("dilettante"):
  				iVar1 = 25000;
  				break;
  			
  			case joaat("double"):
  				iVar1 = 12000;
  				break;
  			
  			case joaat("dubsta"):
  				iVar1 = 70000;
  				break;
  			
  			case joaat("dubsta2"):
  				iVar1 = 70000;
  				break;
  			
  			case joaat("dump"):
  				iVar1 = 1000000;
  				break;
  			
  			case joaat("duster"):
  				iVar1 = 275000;
  				break;
  			
  			case joaat("elegy2"):
  				if (!bParam2)
  				{
  					iVar1 = 95000;
  					if (bVar0)
  					{
  						if (Global_262145.f_19442 >= 0)
  						{
  							iVar1 = Global_262145.f_19442;
  						}
  					}
  				}
  				else
  				{
  					iVar1 = 0;
  					if (bVar0)
  					{
  						if (Global_262145.f_8400 >= 0)
  						{
  							iVar1 = Global_262145.f_8400;
  						}
  					}
  				}
  				break;
  			
  			case joaat("entityxf"):
  				iVar1 = 795000;
  				break;
  			
  			case joaat("exemplar"):
  				iVar1 = 205000;
  				break;
  			
  			case joaat("faggio2"):
  				iVar1 = 5000;
  				break;
  			
  			case joaat("felon"):
  				iVar1 = 90000;
  				break;
  			
  			case joaat("felon2"):
  				iVar1 = 95000;
  				break;
  			
  			case joaat("feltzer2"):
  				iVar1 = 145000;
  				break;
  			
  			case joaat("frogger"):
  				iVar1 = 1300000;
  				break;
  			
  			case joaat("fugitive"):
  				iVar1 = 24000;
  				break;
  			
  			case joaat("gauntlet"):
  				iVar1 = 32000;
  				break;
  			
  			case joaat("hexer"):
  				iVar1 = 15000;
  				break;
  			
  			case joaat("hotknife"):
  				iVar1 = 90000;
  				break;
  			
  			case joaat("infernus"):
  				iVar1 = 440000;
  				break;
  			
  			case joaat("issi2"):
  				iVar1 = 18000;
  				break;
  			
  			case joaat("jb700"):
  				iVar1 = 350000;
  				break;
  			
  			case joaat("jetmax"):
  				iVar1 = 299000;
  				break;
  			
  			case joaat("journey"):
  				iVar1 = 15000;
  				break;
  			
  			case joaat("khamelion"):
  				iVar1 = 100000;
  				break;
  			
  			case joaat("luxor"):
  				iVar1 = 1500000;
  				break;
  			
  			case joaat("mammatus"):
  				iVar1 = 300000;
  				break;
  			
  			case joaat("marquis"):
  				iVar1 = 413990;
  				break;
  			
  			case joaat("maverick"):
  				iVar1 = 780000;
  				break;
  			
  			case joaat("monroe"):
  				iVar1 = 490000;
  				break;
  			
  			case joaat("mule"):
  				iVar1 = 27000;
  				break;
  			
  			case joaat("ninef"):
  				iVar1 = 120000;
  				break;
  			
  			case joaat("ninef2"):
  				iVar1 = 130000;
  				break;
  			
  			case joaat("oracle2"):
  				iVar1 = 80000;
  				break;
  			
  			case joaat("pcj"):
  				iVar1 = 9000;
  				break;
  			
  			case joaat("picador"):
  				iVar1 = 9000;
  				break;
  			
  			case joaat("rapidgt"):
  				iVar1 = 132000;
  				break;
  			
  			case joaat("rapidgt2"):
  				iVar1 = 140000;
  				break;
  			
  			case joaat("rentalbus"):
  				iVar1 = 30000;
  				break;
  			
  			case joaat("rocoto"):
  				iVar1 = 85000;
  				break;
  			
  			case joaat("ruffian"):
  				iVar1 = 10000;
  				break;
  			
  			case joaat("sanchez"):
  				iVar1 = 7000;
  				break;
  			
  			case joaat("sandking"):
  				iVar1 = 45000;
  				break;
  			
  			case joaat("schwarzer"):
  				iVar1 = 80000;
  				break;
  			
  			case joaat("scorcher"):
  				iVar1 = 2000;
  				break;
  			
  			case joaat("shamal"):
  				iVar1 = 1150000;
  				break;
  			
  			case joaat("squalo"):
  				iVar1 = 196621;
  				break;
  			
  			case joaat("stinger"):
  				iVar1 = 850000;
  				break;
  			
  			case joaat("stingergt"):
  				iVar1 = 875000;
  				break;
  			
  			case joaat("stretch"):
  				iVar1 = 30000;
  				break;
  			
  			case joaat("stunt"):
  				iVar1 = 250000;
  				break;
  			
  			case joaat("suntrap"):
  				iVar1 = 25160;
  				break;
  			
  			case joaat("superd"):
  				iVar1 = 250000;
  				break;
  			
  			case joaat("surano"):
  				iVar1 = 110000;
  				break;
  			
  			case joaat("titan"):
  				iVar1 = 5000000;
  				break;
  			
  			case joaat("tribike"):
  				iVar1 = 10000;
  				break;
  			
  			case joaat("tribike2"):
  				iVar1 = 10000;
  				break;
  			
  			case joaat("tribike3"):
  				iVar1 = 10000;
  				break;
  			
  			case joaat("tropic"):
  				iVar1 = 22000;
  				break;
  			
  			case joaat("vacca"):
  				iVar1 = 240000;
  				break;
  			
  			case joaat("vader"):
  				iVar1 = 9000;
  				break;
  			
  			case joaat("velum"):
  				iVar1 = 450000;
  				break;
  			
  			case joaat("vigero"):
  				iVar1 = 21000;
  				break;
  			
  			case joaat("voltic"):
  				iVar1 = 150000;
  				break;
  			
  			case joaat("zion"):
  				iVar1 = 60000;
  				break;
  			
  			case joaat("zion2"):
  				iVar1 = 65000;
  				break;
  			
  			case joaat("ztype"):
  				iVar1 = 950000;
  				break;
  		}
  		switch (iParam1)
  		{
  			case joaat("annihilator"):
  				iVar1 = 1825000;
  				break;
  			
  			case joaat("blazer3"):
  				iVar1 = 69000;
  				break;
  			
  			case joaat("bodhi2"):
  				iVar1 = 25000;
  				break;
  			
  			case joaat("buzzard"):
  				iVar1 = 1750000;
  				break;
  			
  			case joaat("dilettante2"):
  				iVar1 = 25000;
  				break;
  			
  			case joaat("dloader"):
  				iVar1 = 15000;
  				break;
  			
  			case joaat("dune2"):
  				iVar1 = 1000000;
  				break;
  			
  			case joaat("frogger"):
  				iVar1 = 1300000;
  				break;
  			
  			case joaat("luxor"):
  				iVar1 = 1625000;
  				break;
  			
  			case joaat("mesa3"):
  				iVar1 = 87000;
  				break;
  			
  			case joaat("peyote"):
  				iVar1 = 38000;
  				if (bVar0)
  				{
  					if (Global_262145.f_29026 >= 0)
  					{
  						iVar1 = Global_262145.f_29026;
  					}
  				}
  				break;
  			
  			case joaat("rhino"):
  				iVar1 = 1500000;
  				if (bVar0)
  				{
  					if (Global_262145.f_4069 >= 0)
  					{
  						iVar1 = Global_262145.f_4069;
  					}
  				}
  				break;
  			
  			case joaat("romero"):
  				iVar1 = 45000;
  				if (bVar0)
  				{
  					if (Global_262145.f_24541 >= 0)
  					{
  						iVar1 = Global_262145.f_24541;
  					}
  				}
  				break;
  			
  			case joaat("sentinel2"):
  				iVar1 = 95000;
  				break;
  			
  			case joaat("shamal"):
  				iVar1 = 1150000;
  				break;
  			
  			case joaat("surfer"):
  				iVar1 = 11000;
  				break;
  			
  			case joaat("surfer2"):
  				iVar1 = 5000;
  				break;
  			
  			case joaat("titan"):
  				iVar1 = 2000000;
  				break;
  			
  			case joaat("towtruck2"):
  				iVar1 = 32000;
  				break;
  		}
  		switch (iParam1)
  		{
  			case joaat("bodhi2"):
  				iVar1 = 25000;
  				if (bVar0)
  				{
  					if (Global_262145.f_4712 >= 0)
  					{
  						iVar1 = Global_262145.f_4712;
  					}
  				}
  				break;
  			
  			case joaat("dune"):
  				iVar1 = 20000;
  				if (bVar0 || iParam3 == 1)
  				{
  					iVar1 = 20000;
  					if (Global_262145.f_4713 >= 0 && bVar0)
  					{
  						iVar1 = Global_262145.f_4713;
  					}
  				}
  				break;
  			
  			case joaat("rebel"):
  				iVar1 = 3000;
  				break;
  			
  			case joaat("sadler"):
  				iVar1 = 35000;
  				break;
  			
  			case joaat("sanchez2"):
  				iVar1 = 8000;
  				break;
  			
  			case joaat("sandking2"):
  				iVar1 = 38000;
  				break;
  		}
  		switch (iParam1)
  		{
  			case joaat("asea"):
  				iVar1 = 12000;
  				break;
  			
  			case joaat("asterope"):
  				iVar1 = 26000;
  				if (bVar0)
  				{
  					if (Global_262145.f_6828 >= 0)
  					{
  						iVar1 = Global_262145.f_6828;
  					}
  				}
  				break;
  			
  			case joaat("bobcatxl"):
  				iVar1 = 23000;
  				if (bVar0)
  				{
  					if (Global_262145.f_6829 >= 0)
  					{
  						iVar1 = Global_262145.f_6829;
  					}
  				}
  				break;
  			
  			case joaat("cavalcade"):
  				iVar1 = 60000;
  				if (bVar0 || iParam3 == 1)
  				{
  					iVar1 = 60000;
  					if (Global_262145.f_4026 >= 0 && bVar0)
  					{
  						iVar1 = Global_262145.f_4026;
  					}
  				}
  				break;
  			
  			case joaat("cavalcade2"):
  				iVar1 = 60000;
  				if (bVar0 || iParam3 == 1)
  				{
  					iVar1 = 70000;
  					if (Global_262145.f_6830 >= 0 && bVar0)
  					{
  						iVar1 = Global_262145.f_6830;
  					}
  				}
  				break;
  			
  			case joaat("granger"):
  				iVar1 = 35000;
  				if (bVar0)
  				{
  					if (Global_262145.f_6831 >= 0)
  					{
  						iVar1 = Global_262145.f_6831;
  					}
  				}
  				break;
  			
  			case joaat("ingot"):
  				iVar1 = 9000;
  				if (bVar0)
  				{
  					if (Global_262145.f_6832 >= 0)
  					{
  						iVar1 = Global_262145.f_6832;
  					}
  				}
  				break;
  			
  			case joaat("intruder"):
  				iVar1 = 16000;
  				if (bVar0)
  				{
  					if (Global_262145.f_6833 >= 0)
  					{
  						iVar1 = Global_262145.f_6833;
  					}
  				}
  				break;
  			
  			case joaat("minivan"):
  				iVar1 = 30000;
  				if (bVar0)
  				{
  					if (Global_262145.f_6834 >= 0)
  					{
  						iVar1 = Global_262145.f_6834;
  					}
  				}
  				break;
  			
  			case joaat("premier"):
  				iVar1 = 10000;
  				if (bVar0)
  				{
  					if (Global_262145.f_6835 >= 0)
  					{
  						iVar1 = Global_262145.f_6835;
  					}
  				}
  				break;
  			
  			case joaat("radi"):
  				iVar1 = 32000;
  				if (bVar0)
  				{
  					if (Global_262145.f_6836 >= 0)
  					{
  						iVar1 = Global_262145.f_6836;
  					}
  				}
  				break;
  			
  			case joaat("rancherxl"):
  				iVar1 = 9000;
  				if (bVar0)
  				{
  					if (Global_262145.f_6837 >= 0)
  					{
  						iVar1 = Global_262145.f_6837;
  					}
  				}
  				break;
  			
  			case joaat("ratloader"):
  				iVar1 = 6000;
  				if (bVar0)
  				{
  					if (Global_262145.f_6857 >= 0)
  					{
  						iVar1 = Global_262145.f_6857;
  					}
  				}
  				break;
  			
  			case joaat("stanier"):
  				iVar1 = 10000;
  				if (bVar0)
  				{
  					if (Global_262145.f_6838 >= 0)
  					{
  						iVar1 = Global_262145.f_6838;
  					}
  				}
  				break;
  			
  			case joaat("stratum"):
  				iVar1 = 10000;
  				if (bVar0)
  				{
  					if (Global_262145.f_6839 >= 0)
  					{
  						iVar1 = Global_262145.f_6839;
  					}
  				}
  				break;
  			
  			case joaat("washington"):
  				iVar1 = 15000;
  				if (bVar0)
  				{
  					if (Global_262145.f_6840 >= 0)
  					{
  						iVar1 = Global_262145.f_6840;
  					}
  				}
  				break;
  			
  			case joaat("cargobob"):
  				iVar1 = 1790000;
  				if (bVar0)
  				{
  					if (Global_262145.f_16372 >= 0)
  					{
  						iVar1 = Global_262145.f_16372;
  					}
  				}
  				break;
  			
  			case joaat("cargobob2"):
  				iVar1 = 1995000;
  				if (bVar0)
  				{
  					if (Global_262145.f_16373 >= 0)
  					{
  						iVar1 = Global_262145.f_16373;
  					}
  				}
  				break;
  			
  			case joaat("tug"):
  				iVar1 = 1250000;
  				if (bVar0)
  				{
  					if (Global_262145.f_16379 >= 0)
  					{
  						iVar1 = Global_262145.f_16379;
  					}
  				}
  				break;
  			
  			case joaat("nimbus"):
  				iVar1 = 1900000;
  				if (bVar0)
  				{
  					if (Global_262145.f_16377 >= 0)
  					{
  						iVar1 = Global_262145.f_16377;
  					}
  				}
  				break;
  			
  			case joaat("brickade"):
  				iVar1 = 1110000;
  				if (bVar0)
  				{
  					if (Global_262145.f_16375 >= 0)
  					{
  						iVar1 = Global_262145.f_16375;
  					}
  				}
  				break;
  			
  			case joaat("windsor2"):
  				iVar1 = 900000;
  				if (bVar0)
  				{
  					if (Global_262145.f_16381 >= 0)
  					{
  						iVar1 = Global_262145.f_16381;
  					}
  				}
  				break;
  			
  			case joaat("prototipo"):
  				iVar1 = 2700000;
  				if (bVar0)
  				{
  					if (Global_262145.f_16386 >= 0)
  					{
  						iVar1 = Global_262145.f_16386;
  					}
  				}
  				break;
  			
  			case joaat("fmj"):
  				iVar1 = 1750000;
  				if (bVar0)
  				{
  					if (Global_262145.f_16376 >= 0)
  					{
  						iVar1 = Global_262145.f_16376;
  					}
  				}
  				break;
  			
  			case joaat("bestiagts"):
  				iVar1 = 610000;
  				if (bVar0)
  				{
  					if (Global_262145.f_16374 >= 0)
  					{
  						iVar1 = Global_262145.f_16374;
  					}
  				}
  				break;
  			
  			case joaat("xls"):
  				iVar1 = 253000;
  				if (bVar0)
  				{
  					if (Global_262145.f_16382 >= 0)
  					{
  						iVar1 = Global_262145.f_16382;
  					}
  				}
  				break;
  			
  			case joaat("xls2"):
  				iVar1 = 522000;
  				if (bVar0)
  				{
  					if (Global_262145.f_16383 >= 0)
  					{
  						iVar1 = Global_262145.f_16383;
  					}
  				}
  				break;
  			
  			case joaat("seven70"):
  				iVar1 = 695000;
  				if (bVar0)
  				{
  					if (Global_262145.f_16384 >= 0)
  					{
  						iVar1 = Global_262145.f_16384;
  					}
  				}
  				break;
  			
  			case joaat("pfister811"):
  				iVar1 = 1135000;
  				if (bVar0)
  				{
  					if (Global_262145.f_16385 >= 0)
  					{
  						iVar1 = Global_262145.f_16385;
  					}
  				}
  				break;
  			
  			case joaat("reaper"):
  				iVar1 = 1595000;
  				if (bVar0)
  				{
  					if (Global_262145.f_15849 >= 0)
  					{
  						iVar1 = Global_262145.f_15849;
  					}
  				}
  				break;
  			
  			case joaat("rumpo3"):
  				iVar1 = 130000;
  				if (bVar0)
  				{
  					if (Global_262145.f_16378 >= 0)
  					{
  						iVar1 = Global_262145.f_16378;
  					}
  				}
  				break;
  			
  			case joaat("volatus"):
  				iVar1 = 2295000;
  				if (bVar0)
  				{
  					if (Global_262145.f_16380 >= 0)
  					{
  						iVar1 = Global_262145.f_16380;
  					}
  				}
  				break;
  			
  			case joaat("le7b"):
  				iVar1 = 2475000;
  				if (bVar0)
  				{
  					if (Global_262145.f_17153 >= 0)
  					{
  						iVar1 = Global_262145.f_17153;
  					}
  				}
  				break;
  			
  			case joaat("omnis"):
  				if (!bParam2)
  				{
  					iVar1 = 701000;
  					if (bVar0)
  					{
  						if (Global_262145.f_17154 >= 0)
  						{
  							iVar1 = Global_262145.f_17154;
  						}
  					}
  				}
  				else
  				{
  					iVar1 = 0;
  				}
  				break;
  			
  			case joaat("tropos"):
  				iVar1 = 816000;
  				if (bVar0)
  				{
  					if (Global_262145.f_17155 >= 0)
  					{
  						iVar1 = Global_262145.f_17155;
  					}
  				}
  				break;
  			
  			case joaat("brioso"):
  				iVar1 = 155000;
  				if (bVar0)
  				{
  					if (Global_262145.f_17156 >= 0)
  					{
  						iVar1 = Global_262145.f_17156;
  					}
  				}
  				break;
  			
  			case joaat("trophytruck"):
  				iVar1 = 550000;
  				if (bVar0)
  				{
  					if (Global_262145.f_17157 >= 0)
  					{
  						iVar1 = Global_262145.f_17157;
  					}
  				}
  				break;
  			
  			case joaat("trophytruck2"):
  				iVar1 = 695000;
  				if (bVar0)
  				{
  					if (Global_262145.f_17158 >= 0)
  					{
  						iVar1 = Global_262145.f_17158;
  					}
  				}
  				break;
  			
  			case joaat("contender"):
  				iVar1 = 250000;
  				if (bVar0)
  				{
  					if (Global_262145.f_17159 >= 0)
  					{
  						iVar1 = Global_262145.f_17159;
  					}
  				}
  				break;
  			
  			case joaat("cliffhanger"):
  				iVar1 = 225000;
  				if (bVar0)
  				{
  					if (Global_262145.f_17160 >= 0)
  					{
  						iVar1 = Global_262145.f_17160;
  					}
  				}
  				break;
  			
  			case joaat("bf400"):
  				iVar1 = 95000;
  				if (bVar0)
  				{
  					if (Global_262145.f_17161 >= 0)
  					{
  						iVar1 = Global_262145.f_17161;
  					}
  				}
  				break;
  			
  			case joaat("tyrus"):
  				iVar1 = 2550000;
  				if (bVar0)
  				{
  					if (Global_262145.f_17151 >= 0)
  					{
  						iVar1 = Global_262145.f_17151;
  					}
  				}
  				break;
  			
  			case joaat("lynx"):
  				iVar1 = 1735000;
  				if (bVar0)
  				{
  					if (Global_262145.f_17162 >= 0)
  					{
  						iVar1 = Global_262145.f_17162;
  					}
  				}
  				break;
  			
  			case joaat("sheava"):
  				iVar1 = 1995000;
  				if (bVar0)
  				{
  					if (Global_262145.f_17150 >= 0)
  					{
  						iVar1 = Global_262145.f_17150;
  					}
  				}
  				break;
  			
  			case joaat("rallytruck"):
  				if (!bParam2)
  				{
  					iVar1 = 1300000;
  					if (bVar0)
  					{
  						if (Global_262145.f_17164 >= 0)
  						{
  							iVar1 = Global_262145.f_17164;
  						}
  					}
  				}
  				else
  				{
  					iVar1 = 1385000;
  					if (bVar0)
  					{
  						if (Global_262145.f_17165 >= 0)
  						{
  							iVar1 = Global_262145.f_17165;
  						}
  					}
  				}
  				break;
  			
  			case joaat("tampa2"):
  				iVar1 = 995000;
  				if (bVar0)
  				{
  					if (Global_262145.f_17152 >= 0)
  					{
  						iVar1 = Global_262145.f_17152;
  					}
  				}
  				break;
  			
  			case joaat("gargoyle"):
  				iVar1 = 120000;
  				if (bVar0 && Global_262145.f_17163 >= 0)
  				{
  					iVar1 = Global_262145.f_17163;
  				}
  				if (bParam2)
  				{
  					iVar2 = iVar1;
  					iVar1 = SYSTEM::ROUND((SYSTEM::TO_FLOAT(120000) * 0.75f));
  					if (bVar0 && Global_262145.f_25591 >= 0)
  					{
  						iVar1 = Global_262145.f_25591;
  					}
  				}
  				break;
  			
  			case joaat("esskey"):
  				iVar1 = 264000;
  				if (bVar0)
  				{
  					if (Global_262145.f_17722 >= 0)
  					{
  						iVar1 = Global_262145.f_17722;
  					}
  				}
  				break;
  			
  			case joaat("nightblade"):
  				iVar1 = 100000;
  				if (bVar0)
  				{
  					if (Global_262145.f_17725 >= 0)
  					{
  						iVar1 = Global_262145.f_17725;
  					}
  				}
  				break;
  			
  			case joaat("defiler"):
  				if (bParam2)
  				{
  					iVar1 = 309000;
  					if (bVar0)
  					{
  						if (Global_262145.f_28168 >= 0)
  						{
  							iVar1 = Global_262145.f_28168;
  						}
  					}
  				}
  				else
  				{
  					iVar1 = 412000;
  					if (bVar0)
  					{
  						if (Global_262145.f_17721 >= 0)
  						{
  							iVar1 = Global_262145.f_17721;
  						}
  					}
  					iVar2 = 309000;
  					if (bVar0)
  					{
  						if (Global_262145.f_28168 >= 0)
  						{
  							iVar2 = Global_262145.f_28168;
  						}
  					}
  				}
  				break;
  			
  			case joaat("avarus"):
  				iVar1 = 116000;
  				if (bVar0)
  				{
  					if (Global_262145.f_17716 >= 0)
  					{
  						iVar1 = Global_262145.f_17716;
  					}
  				}
  				break;
  			
  			case joaat("zombiea"):
  				iVar1 = 99000;
  				if (bVar0)
  				{
  					if (Global_262145.f_17732 >= 0)
  					{
  						iVar1 = Global_262145.f_17732;
  					}
  				}
  				break;
  			
  			case joaat("zombieb"):
  				if (!bParam2)
  				{
  					iVar1 = 122000;
  					if (bVar0)
  					{
  						if (Global_262145.f_17733 >= 0)
  						{
  							iVar1 = Global_262145.f_17733;
  						}
  					}
  				}
  				else
  				{
  					iVar1 = 0;
  				}
  				break;
  			
  			case joaat("chimera"):
  				iVar1 = 210000;
  				if (bVar0)
  				{
  					if (Global_262145.f_17719 >= 0)
  					{
  						iVar1 = Global_262145.f_17719;
  					}
  				}
  				break;
  			
  			case joaat("daemon2"):
  				iVar1 = 145000;
  				if (bVar0)
  				{
  					if (Global_262145.f_17720 >= 0)
  					{
  						iVar1 = Global_262145.f_17720;
  					}
  				}
  				break;
  			
  			case joaat("ratbike"):
  				iVar1 = 48000;
  				if (bVar0)
  				{
  					if (Global_262145.f_17727 >= 0)
  					{
  						iVar1 = Global_262145.f_17727;
  					}
  				}
  				break;
  			
  			case joaat("shotaro"):
  				iVar1 = 2225000;
  				if (bVar0)
  				{
  					if (Global_262145.f_17729 >= 0)
  					{
  						iVar1 = Global_262145.f_17729;
  					}
  				}
  				break;
  			
  			case joaat("raptor"):
  				iVar1 = 648000;
  				if (bVar0)
  				{
  					if (Global_262145.f_17726 >= 0)
  					{
  						iVar1 = Global_262145.f_17726;
  					}
  				}
  				break;
  			
  			case joaat("hakuchou2"):
  				iVar1 = 976000;
  				if (bVar0)
  				{
  					if (Global_262145.f_17723 >= 0)
  					{
  						iVar1 = Global_262145.f_17723;
  					}
  				}
  				break;
  			
  			case joaat("blazer4"):
  				iVar1 = 81000;
  				if (bVar0)
  				{
  					if (Global_262145.f_17718 >= 0)
  					{
  						iVar1 = Global_262145.f_17718;
  					}
  				}
  				break;
  			
  			case joaat("sanctus"):
  				iVar1 = 1995000;
  				if (bVar0)
  				{
  					if (Global_262145.f_17728 >= 0)
  					{
  						iVar1 = Global_262145.f_17728;
  					}
  				}
  				break;
  			
  			case joaat("vortex"):
  				if (!bParam2)
  				{
  					iVar1 = 356000;
  					if (bVar0)
  					{
  						if (Global_262145.f_17730 >= 0)
  						{
  							iVar1 = Global_262145.f_17730;
  						}
  					}
  				}
  				else
  				{
  					iVar1 = 0;
  				}
  				break;
  			
  			case joaat("manchez"):
  				if (bParam2)
  				{
  					iVar1 = 50250;
  					if (bVar0)
  					{
  						if (Global_262145.f_28169 >= 0)
  						{
  							iVar1 = Global_262145.f_28169;
  						}
  					}
  				}
  				else
  				{
  					iVar1 = 67000;
  					if (bVar0)
  					{
  						if (Global_262145.f_17724 >= 0)
  						{
  							iVar1 = Global_262145.f_17724;
  						}
  					}
  					iVar2 = 50250;
  					if (bVar0)
  					{
  						if (Global_262145.f_28169 >= 0)
  						{
  							iVar2 = Global_262145.f_28169;
  						}
  					}
  				}
  				break;
  			
  			case joaat("tornado6"):
  				iVar1 = 378000;
  				if (bVar0)
  				{
  					if (Global_262145.f_18791 >= 0)
  					{
  						iVar1 = Global_262145.f_18791;
  					}
  				}
  				break;
  			
  			case joaat("youga2"):
  				iVar1 = 195000;
  				if (bVar0)
  				{
  					if (Global_262145.f_18794 >= 0)
  					{
  						iVar1 = Global_262145.f_18794;
  					}
  				}
  				break;
  			
  			case joaat("wolfsbane"):
  				if (bParam2)
  				{
  					iVar1 = joaat("a_m_y_genstreet_28_lod");
  					if (bVar0)
  					{
  					}
  				}
  				else
  				{
  					iVar1 = 95000;
  					if (bVar0)
  					{
  						if (Global_262145.f_17731 >= 0)
  						{
  							iVar1 = Global_262145.f_17731;
  						}
  					}
  					iVar2 = joaat("a_m_y_genstreet_28_lod");
  					if (bVar0)
  					{
  					}
  				}
  				break;
  			
  			case joaat("faggio3"):
  				iVar1 = 55000;
  				if (bVar0)
  				{
  					if (Global_262145.f_18792 >= 0)
  					{
  						iVar1 = Global_262145.f_18792;
  					}
  				}
  				break;
  			
  			case joaat("faggio"):
  				iVar1 = 47500;
  				if (bVar0)
  				{
  					if (Global_262145.f_18793 >= 0)
  					{
  						iVar1 = Global_262145.f_18793;
  					}
  				}
  				break;
  			
  			case joaat("dune5"):
  				if (!bParam2)
  				{
  					iVar1 = 3192000;
  					if (bVar0)
  					{
  						if (Global_262145.f_19412 >= 0)
  						{
  							iVar1 = Global_262145.f_19412;
  						}
  					}
  				}
  				else
  				{
  					iVar1 = 2400000;
  					if (bVar0)
  					{
  						if (Global_262145.f_19413 >= 0)
  						{
  							iVar1 = Global_262145.f_19413;
  						}
  					}
  				}
  				break;
  			
  			case joaat("phantom2"):
  				if (!bParam2)
  				{
  					iVar1 = 2553600;
  					if (bVar0)
  					{
  						if (Global_262145.f_19414 >= 0)
  						{
  							iVar1 = Global_262145.f_19414;
  						}
  					}
  				}
  				else
  				{
  					iVar1 = 1920000;
  					if (bVar0)
  					{
  						if (Global_262145.f_19415 >= 0)
  						{
  							iVar1 = Global_262145.f_19415;
  						}
  					}
  				}
  				break;
  			
  			case joaat("technical2"):
  				if (!bParam2)
  				{
  					iVar1 = 1489600;
  					if (bVar0)
  					{
  						if (Global_262145.f_19416 >= 0)
  						{
  							iVar1 = Global_262145.f_19416;
  						}
  					}
  				}
  				else
  				{
  					iVar1 = 1120000;
  					if (bVar0)
  					{
  						if (Global_262145.f_19417 >= 0)
  						{
  							iVar1 = Global_262145.f_19417;
  						}
  					}
  				}
  				break;
  			
  			case joaat("blazer5"):
  				if (!bParam2)
  				{
  					iVar1 = 1755600;
  					if (bVar0)
  					{
  						if (Global_262145.f_19418 >= 0)
  						{
  							iVar1 = Global_262145.f_19418;
  						}
  					}
  				}
  				else
  				{
  					iVar1 = 1320000;
  					if (bVar0)
  					{
  						if (Global_262145.f_19419 >= 0)
  						{
  							iVar1 = Global_262145.f_19419;
  						}
  					}
  				}
  				break;
  			
  			case joaat("boxville5"):
  				if (!bParam2)
  				{
  					iVar1 = 2926000;
  					if (bVar0)
  					{
  						if (Global_262145.f_19420 >= 0)
  						{
  							iVar1 = Global_262145.f_19420;
  						}
  					}
  				}
  				else
  				{
  					iVar1 = 2200000;
  					if (bVar0)
  					{
  						if (Global_262145.f_19421 >= 0)
  						{
  							iVar1 = Global_262145.f_19421;
  						}
  					}
  				}
  				break;
  			
  			case joaat("wastelander"):
  				if (!bParam2)
  				{
  					iVar1 = 658350;
  					if (bVar0)
  					{
  						if (Global_262145.f_19422 >= 0)
  						{
  							iVar1 = Global_262145.f_19422;
  						}
  					}
  				}
  				else
  				{
  					iVar1 = 495000;
  					if (bVar0)
  					{
  						if (Global_262145.f_19423 >= 0)
  						{
  							iVar1 = Global_262145.f_19423;
  						}
  					}
  				}
  				break;
  			
  			case joaat("ruiner2"):
  				if (!bParam2)
  				{
  					iVar1 = 5745600;
  					if (bVar0)
  					{
  						if (Global_262145.f_19424 >= 0)
  						{
  							iVar1 = Global_262145.f_19424;
  						}
  					}
  				}
  				else
  				{
  					iVar1 = 4320000;
  					if (bVar0)
  					{
  						if (Global_262145.f_19425 >= 0)
  						{
  							iVar1 = Global_262145.f_19425;
  						}
  					}
  				}
  				break;
  			
  			case joaat("voltic2"):
  				if (!bParam2)
  				{
  					iVar1 = 3830400;
  					if (bVar0)
  					{
  						if (Global_262145.f_19426 >= 0)
  						{
  							iVar1 = Global_262145.f_19426;
  						}
  					}
  				}
  				else
  				{
  					iVar1 = 2880000;
  					if (bVar0)
  					{
  						if (Global_262145.f_19427 >= 0)
  						{
  							iVar1 = Global_262145.f_19427;
  						}
  					}
  				}
  				break;
  			
  			case joaat("penetrator"):
  				iVar1 = 880000;
  				if (bVar0)
  				{
  					if (Global_262145.f_19440 >= 0)
  					{
  						iVar1 = Global_262145.f_19440;
  					}
  				}
  				break;
  			
  			case joaat("tempesta"):
  				iVar1 = 1329000;
  				if (bVar0 && Global_262145.f_19441 >= 0)
  				{
  					iVar1 = Global_262145.f_19441;
  				}
  				if (bParam2)
  				{
  					iVar2 = iVar1;
  					iVar1 = SYSTEM::ROUND((SYSTEM::TO_FLOAT(1329000) * 0.75f));
  				}
  				break;
  			
  			case joaat("italigtb"):
  				iVar1 = 1189000;
  				if (bVar0)
  				{
  					if (Global_262145.f_19428 >= 0)
  					{
  						iVar1 = Global_262145.f_19428;
  					}
  				}
  				break;
  			
  			case joaat("italigtb2"):
  				iVar1 = (Global_262145.f_19428 + func_274(iParam1));
  				break;
  			
  			case joaat("nero"):
  				iVar1 = 1440000;
  				if (bVar0)
  				{
  					if (Global_262145.f_19432 >= 0)
  					{
  						iVar1 = Global_262145.f_19432;
  					}
  				}
  				break;
  			
  			case joaat("nero2"):
  				iVar1 = (Global_262145.f_19432 + func_274(iParam1));
  				break;
  			
  			case joaat("diablous"):
  				iVar1 = 169000;
  				if (bVar0)
  				{
  					if (Global_262145.f_19438 >= 0)
  					{
  						iVar1 = Global_262145.f_19438;
  					}
  				}
  				break;
  			
  			case joaat("diablous2"):
  				iVar1 = (Global_262145.f_19438 + func_274(iParam1));
  				break;
  			
  			case joaat("fcr"):
  				iVar1 = 135000;
  				if (bVar0)
  				{
  					if (Global_262145.f_19436 >= 0)
  					{
  						iVar1 = Global_262145.f_19436;
  					}
  				}
  				break;
  			
  			case joaat("fcr2"):
  				iVar1 = (Global_262145.f_19436 + func_274(iParam1));
  				break;
  			
  			case joaat("specter"):
  				iVar1 = 599000;
  				if (bVar0)
  				{
  					if (Global_262145.f_19430 >= 0)
  					{
  						iVar1 = Global_262145.f_19430;
  					}
  				}
  				break;
  			
  			case joaat("specter2"):
  				iVar1 = (Global_262145.f_19430 + func_274(iParam1));
  				break;
  			
  			case joaat("comet3"):
  				iVar1 = (85000 + func_274(iParam1));
  				break;
  			
  			case joaat("elegy"):
  				iVar1 = (Global_262145.f_19442 + func_274(iParam1));
  				break;
  			
  			case joaat("infernus2"):
  				iVar1 = 915000;
  				if (bVar0)
  				{
  					if (Global_262145.f_20076 >= 0)
  					{
  						iVar1 = Global_262145.f_20076;
  					}
  				}
  				break;
  			
  			case joaat("gp1"):
  				iVar1 = 1260000;
  				if (bVar0)
  				{
  					if (Global_262145.f_20075 >= 0)
  					{
  						iVar1 = Global_262145.f_20075;
  					}
  				}
  				break;
  			
  			case joaat("ruston"):
  				iVar1 = 430000;
  				if (bVar0)
  				{
  					if (Global_262145.f_20077 >= 0)
  					{
  						iVar1 = Global_262145.f_20077;
  					}
  				}
  				break;
  			
  			case joaat("turismo2"):
  				iVar1 = 705000;
  				if (bVar0)
  				{
  					if (Global_262145.f_20078 >= 0)
  					{
  						iVar1 = Global_262145.f_20078;
  					}
  				}
  				break;
  			
  			case joaat("ardent"):
  				iVar1 = 1150000;
  				if (bVar0)
  				{
  					if (Global_262145.f_21165 >= 0)
  					{
  						iVar1 = Global_262145.f_21165;
  					}
  				}
  				break;
  			
  			case joaat("cheetah2"):
  				iVar1 = 865000;
  				if (bVar0)
  				{
  					if (Global_262145.f_21168 >= 0)
  					{
  						iVar1 = Global_262145.f_21168;
  					}
  				}
  				break;
  			
  			case joaat("nightshark"):
  				iVar1 = 1245000;
  				if (bVar0)
  				{
  					if (Global_262145.f_21166 >= 0)
  					{
  						iVar1 = Global_262145.f_21166;
  					}
  				}
  				break;
  			
  			case joaat("torero"):
  				iVar1 = 998000;
  				if (bVar0)
  				{
  					if (Global_262145.f_21167 >= 0)
  					{
  						iVar1 = Global_262145.f_21167;
  					}
  				}
  				break;
  			
  			case joaat("vagner"):
  				iVar1 = 1535000;
  				if (bVar0)
  				{
  					if (Global_262145.f_21169 >= 0)
  					{
  						iVar1 = Global_262145.f_21169;
  					}
  				}
  				break;
  			
  			case joaat("xa21"):
  				iVar1 = 2375000;
  				if (bVar0)
  				{
  					if (Global_262145.f_21170 >= 0)
  					{
  						iVar1 = Global_262145.f_21170;
  					}
  				}
  				break;
  			
  			case joaat("apc"):
  				iVar1 = 2325000;
  				if (bVar0)
  				{
  					if (Global_262145.f_21157 >= 0)
  					{
  						iVar1 = Global_262145.f_21157;
  					}
  				}
  				iVar2 = iVar1;
  				if (!bParam2)
  				{
  					iVar1 = SYSTEM::ROUND((SYSTEM::TO_FLOAT(iVar1) * ((100f + SYSTEM::TO_FLOAT(Global_262145.f_21156)) / 100f)));
  				}
  				break;
  			
  			case joaat("dune3"):
  				iVar1 = 850000;
  				if (bVar0)
  				{
  					if (Global_262145.f_21158 >= 0)
  					{
  						iVar1 = Global_262145.f_21158;
  					}
  				}
  				iVar2 = iVar1;
  				if (!bParam2)
  				{
  					iVar1 = SYSTEM::ROUND((SYSTEM::TO_FLOAT(iVar1) * ((100f + SYSTEM::TO_FLOAT(Global_262145.f_21156)) / 100f)));
  				}
  				break;
  			
  			case joaat("halftrack"):
  				iVar1 = 1695000;
  				if (bVar0)
  				{
  					if (Global_262145.f_21159 >= 0)
  					{
  						iVar1 = Global_262145.f_21159;
  					}
  				}
  				iVar2 = iVar1;
  				if (!bParam2)
  				{
  					iVar1 = SYSTEM::ROUND((SYSTEM::TO_FLOAT(iVar1) * ((100f + SYSTEM::TO_FLOAT(Global_262145.f_21156)) / 100f)));
  				}
  				break;
  			
  			case joaat("oppressor"):
  				iVar1 = 2650000;
  				if (bVar0)
  				{
  					if (Global_262145.f_21160 >= 0)
  					{
  						iVar1 = Global_262145.f_21160;
  					}
  				}
  				iVar2 = iVar1;
  				if (!bParam2)
  				{
  					iVar1 = SYSTEM::ROUND((SYSTEM::TO_FLOAT(iVar1) * ((100f + SYSTEM::TO_FLOAT(Global_262145.f_21156)) / 100f)));
  				}
  				break;
  			
  			case joaat("tampa3"):
  				iVar1 = 1585000;
  				if (bVar0)
  				{
  					if (Global_262145.f_21161 >= 0)
  					{
  						iVar1 = Global_262145.f_21161;
  					}
  				}
  				iVar2 = iVar1;
  				if (!bParam2)
  				{
  					iVar1 = SYSTEM::ROUND((SYSTEM::TO_FLOAT(iVar1) * ((100f + SYSTEM::TO_FLOAT(Global_262145.f_21156)) / 100f)));
  				}
  				break;
  			
  			case joaat("trailersmall2"):
  				iVar1 = 1400000;
  				if (bVar0)
  				{
  					if (Global_262145.f_21162 >= 0)
  					{
  						iVar1 = Global_262145.f_21162;
  					}
  				}
  				iVar2 = iVar1;
  				if (!bParam2)
  				{
  					iVar1 = SYSTEM::ROUND((SYSTEM::TO_FLOAT(iVar1) * ((100f + SYSTEM::TO_FLOAT(Global_262145.f_21156)) / 100f)));
  				}
  				break;
  			
  			case joaat("phantom3"):
  				if (!bParam2)
  				{
  					iVar1 = 1225000;
  					if (bVar0)
  					{
  						if (Global_262145.f_21234 >= 0)
  						{
  							iVar1 = Global_262145.f_21234;
  						}
  					}
  				}
  				else
  				{
  					iVar1 = 0;
  				}
  				break;
  			
  			case joaat("hauler2"):
  				if (!bParam2)
  				{
  					iVar1 = 1400000;
  					if (bVar0)
  					{
  						if (Global_262145.f_21235 >= 0)
  						{
  							iVar1 = Global_262145.f_21235;
  						}
  					}
  				}
  				else
  				{
  					iVar1 = 0;
  				}
  				break;
  			
  			case joaat("lazer"):
  				iVar1 = 6500000;
  				if (bVar0)
  				{
  					if (Global_262145.f_22329 >= 0)
  					{
  						iVar1 = Global_262145.f_22329;
  					}
  				}
  				break;
  			
  			case joaat("microlight"):
  				if (bParam2)
  				{
  					iVar1 = 500000;
  					if (bVar0)
  					{
  						if (Global_262145.f_22328 >= 0)
  						{
  							iVar1 = Global_262145.f_22328;
  						}
  					}
  				}
  				else
  				{
  					iVar1 = SYSTEM::ROUND((SYSTEM::TO_FLOAT(500000) * ((100f + SYSTEM::TO_FLOAT(33)) / 100f)));
  					if (bVar0)
  					{
  						if (Global_262145.f_22348 >= 0)
  						{
  							iVar1 = Global_262145.f_22348;
  						}
  					}
  				}
  				break;
  			
  			case joaat("mogul"):
  				if (bParam2)
  				{
  					iVar1 = 2350000;
  					if (bVar0)
  					{
  						if (Global_262145.f_22321 >= 0)
  						{
  							iVar1 = Global_262145.f_22321;
  						}
  					}
  				}
  				else
  				{
  					iVar1 = SYSTEM::ROUND((SYSTEM::TO_FLOAT(2350000) * ((100f + SYSTEM::TO_FLOAT(33)) / 100f)));
  					if (bVar0)
  					{
  						if (Global_262145.f_22341 >= 0)
  						{
  							iVar1 = Global_262145.f_22341;
  						}
  					}
  				}
  				break;
  			
  			case joaat("rogue"):
  				if (bParam2)
  				{
  					iVar1 = 1200000;
  					if (bVar0)
  					{
  						if (Global_262145.f_22325 >= 0)
  						{
  							iVar1 = Global_262145.f_22325;
  						}
  					}
  				}
  				else
  				{
  					iVar1 = SYSTEM::ROUND((SYSTEM::TO_FLOAT(1200000) * ((100f + SYSTEM::TO_FLOAT(33)) / 100f)));
  					if (bVar0)
  					{
  						if (Global_262145.f_22345 >= 0)
  						{
  							iVar1 = Global_262145.f_22345;
  						}
  					}
  				}
  				break;
  			
  			case joaat("starling"):
  				if (bParam2)
  				{
  					iVar1 = 2750000;
  					if (bVar0)
  					{
  						if (Global_262145.f_22320 >= 0)
  						{
  							iVar1 = Global_262145.f_22320;
  						}
  					}
  				}
  				else
  				{
  					iVar1 = SYSTEM::ROUND((SYSTEM::TO_FLOAT(2750000) * ((100f + SYSTEM::TO_FLOAT(33)) / 100f)));
  					if (bVar0)
  					{
  						if (Global_262145.f_22340 >= 0)
  						{
  							iVar1 = Global_262145.f_22340;
  						}
  					}
  				}
  				break;
  			
  			case joaat("seabreeze"):
  				if (bParam2)
  				{
  					iVar1 = 850000;
  					if (bVar0)
  					{
  						if (Global_262145.f_22327 >= 0)
  						{
  							iVar1 = Global_262145.f_22327;
  						}
  					}
  				}
  				else
  				{
  					iVar1 = SYSTEM::ROUND((SYSTEM::TO_FLOAT(850000) * ((100f + SYSTEM::TO_FLOAT(33)) / 100f)));
  					if (bVar0)
  					{
  						if (Global_262145.f_22347 >= 0)
  						{
  							iVar1 = Global_262145.f_22347;
  						}
  					}
  				}
  				break;
  			
  			case joaat("tula"):
  				if (bParam2)
  				{
  					iVar1 = 3890000;
  					if (bVar0)
  					{
  						if (Global_262145.f_22316 >= 0)
  						{
  							iVar1 = Global_262145.f_22316;
  						}
  					}
  				}
  				else
  				{
  					iVar1 = SYSTEM::ROUND((SYSTEM::TO_FLOAT(3890000) * ((100f + SYSTEM::TO_FLOAT(33)) / 100f)));
  					if (bVar0)
  					{
  						if (Global_262145.f_22336 >= 0)
  						{
  							iVar1 = Global_262145.f_22336;
  						}
  					}
  				}
  				break;
  			
  			case joaat("pyro"):
  				if (bParam2)
  				{
  					iVar1 = 3350000;
  					if (bVar0)
  					{
  						if (Global_262145.f_22318 >= 0)
  						{
  							iVar1 = Global_262145.f_22318;
  						}
  					}
  				}
  				else
  				{
  					iVar1 = SYSTEM::ROUND((SYSTEM::TO_FLOAT(3350000) * ((100f + SYSTEM::TO_FLOAT(33)) / 100f)));
  					if (bVar0)
  					{
  						if (Global_262145.f_22338 >= 0)
  						{
  							iVar1 = Global_262145.f_22338;
  						}
  					}
  				}
  				break;
  			
  			case joaat("molotok"):
  				if (bParam2)
  				{
  					iVar1 = 3600000;
  					if (bVar0)
  					{
  						if (Global_262145.f_22317 >= 0)
  						{
  							iVar1 = Global_262145.f_22317;
  						}
  					}
  				}
  				else
  				{
  					iVar1 = SYSTEM::ROUND((SYSTEM::TO_FLOAT(3600000) * ((100f + SYSTEM::TO_FLOAT(33)) / 100f)));
  					if (bVar0)
  					{
  						if (Global_262145.f_22337 >= 0)
  						{
  							iVar1 = Global_262145.f_22337;
  						}
  					}
  				}
  				break;
  			
  			case joaat("nokota"):
  				if (bParam2)
  				{
  					iVar1 = 1995000;
  					if (bVar0)
  					{
  						if (Global_262145.f_22322 >= 0)
  						{
  							iVar1 = Global_262145.f_22322;
  						}
  					}
  				}
  				else
  				{
  					iVar1 = SYSTEM::ROUND((SYSTEM::TO_FLOAT(1995000) * ((100f + SYSTEM::TO_FLOAT(33)) / 100f)));
  					if (bVar0)
  					{
  						if (Global_262145.f_22342 >= 0)
  						{
  							iVar1 = Global_262145.f_22342;
  						}
  					}
  				}
  				break;
  			
  			case joaat("bombushka"):
  				if (bParam2)
  				{
  					iVar1 = 4450000;
  					if (bVar0)
  					{
  						if (Global_262145.f_22315 >= 0)
  						{
  							iVar1 = Global_262145.f_22315;
  						}
  					}
  				}
  				else
  				{
  					iVar1 = SYSTEM::ROUND((SYSTEM::TO_FLOAT(4450000) * ((100f + SYSTEM::TO_FLOAT(33)) / 100f)));
  					if (bVar0)
  					{
  						if (Global_262145.f_22335 >= 0)
  						{
  							iVar1 = Global_262145.f_22335;
  						}
  					}
  				}
  				break;
  			
  			case joaat("hunter"):
  				if (bParam2)
  				{
  					iVar1 = 3100000;
  					if (bVar0)
  					{
  						if (Global_262145.f_22319 >= 0)
  						{
  							iVar1 = Global_262145.f_22319;
  						}
  					}
  				}
  				else
  				{
  					iVar1 = SYSTEM::ROUND((SYSTEM::TO_FLOAT(3100000) * ((100f + SYSTEM::TO_FLOAT(33)) / 100f)));
  					if (bVar0)
  					{
  						if (Global_262145.f_22339 >= 0)
  						{
  							iVar1 = Global_262145.f_22339;
  						}
  					}
  				}
  				break;
  			
  			case joaat("havok"):
  				if (bParam2)
  				{
  					iVar1 = 1730000;
  					if (bVar0)
  					{
  						if (Global_262145.f_22323 >= 0)
  						{
  							iVar1 = Global_262145.f_22323;
  						}
  					}
  				}
  				else
  				{
  					iVar1 = SYSTEM::ROUND((SYSTEM::TO_FLOAT(1730000) * ((100f + SYSTEM::TO_FLOAT(33)) / 100f)));
  					if (bVar0)
  					{
  						if (Global_262145.f_22343 >= 0)
  						{
  							iVar1 = Global_262145.f_22343;
  						}
  					}
  				}
  				break;
  			
  			case joaat("howard"):
  				if (bParam2)
  				{
  					iVar1 = 975000;
  					if (bVar0)
  					{
  						if (Global_262145.f_22326 >= 0)
  						{
  							iVar1 = Global_262145.f_22326;
  						}
  					}
  				}
  				else
  				{
  					iVar1 = SYSTEM::ROUND((SYSTEM::TO_FLOAT(975000) * ((100f + SYSTEM::TO_FLOAT(33)) / 100f)));
  					if (bVar0)
  					{
  						if (Global_262145.f_22346 >= 0)
  						{
  							iVar1 = Global_262145.f_22346;
  						}
  					}
  				}
  				break;
  			
  			case joaat("alphaz1"):
  				if (bParam2)
  				{
  					iVar1 = 1595000;
  					if (bVar0)
  					{
  						if (Global_262145.f_22324 >= 0)
  						{
  							iVar1 = Global_262145.f_22324;
  						}
  					}
  				}
  				else
  				{
  					iVar1 = SYSTEM::ROUND((SYSTEM::TO_FLOAT(1595000) * ((100f + SYSTEM::TO_FLOAT(33)) / 100f)));
  					if (bVar0)
  					{
  						if (Global_262145.f_22344 >= 0)
  						{
  							iVar1 = Global_262145.f_22344;
  						}
  					}
  				}
  				break;
  			
  			case joaat("cyclone"):
  				iVar1 = 1890000;
  				if (bVar0)
  				{
  					if (Global_262145.f_22330 >= 0)
  					{
  						iVar1 = Global_262145.f_22330;
  					}
  				}
  				break;
  			
  			case joaat("visione"):
  				iVar1 = 2250000;
  				if (bVar0)
  				{
  					if (Global_262145.f_22331 >= 0)
  					{
  						iVar1 = Global_262145.f_22331;
  					}
  				}
  				break;
  			
  			case joaat("vigilante"):
  				iVar1 = 3750000;
  				if (bVar0)
  				{
  					if (Global_262145.f_22334 >= 0)
  					{
  						iVar1 = Global_262145.f_22334;
  					}
  				}
  				break;
  			
  			case joaat("retinue"):
  				iVar1 = 615000;
  				if (bVar0)
  				{
  					if (Global_262145.f_22332 >= 0)
  					{
  						iVar1 = Global_262145.f_22332;
  					}
  				}
  				break;
  			
  			case joaat("rapidgt3"):
  				iVar1 = 885000;
  				if (bVar0)
  				{
  					if (Global_262145.f_22333 >= 0)
  					{
  						iVar1 = Global_262145.f_22333;
  					}
  				}
  				break;
  		}
  		switch (iParam1)
  		{
  			case joaat("deluxo"):
  				if (bParam2)
  				{
  					iVar1 = 3550000;
  					if (bVar0)
  					{
  						if (Global_262145.f_23661 >= 0)
  						{
  							iVar1 = Global_262145.f_23661;
  						}
  					}
  				}
  				else
  				{
  					iVar1 = 4721500;
  					if (bVar0)
  					{
  						if (Global_262145.f_23652 >= 0)
  						{
  							iVar1 = Global_262145.f_23652;
  						}
  					}
  					iVar2 = 3550000;
  					if (bVar0)
  					{
  						if (Global_262145.f_23661 >= 0)
  						{
  							iVar2 = Global_262145.f_23661;
  						}
  					}
  				}
  				break;
  			
  			case joaat("stromberg"):
  				if (bParam2)
  				{
  					iVar1 = 2395000;
  					if (bVar0)
  					{
  						if (Global_262145.f_23662 >= 0)
  						{
  							iVar1 = Global_262145.f_23662;
  						}
  					}
  				}
  				else
  				{
  					iVar1 = 3185350;
  					if (bVar0)
  					{
  						if (Global_262145.f_23653 >= 0)
  						{
  							iVar1 = Global_262145.f_23653;
  						}
  					}
  					iVar2 = 2395000;
  					if (bVar0)
  					{
  						if (Global_262145.f_23662 >= 0)
  						{
  							iVar2 = Global_262145.f_23662;
  						}
  					}
  				}
  				break;
  			
  			case joaat("riot2"):
  				if (bParam2)
  				{
  					iVar1 = 2350000;
  					if (bVar0)
  					{
  						if (Global_262145.f_23663 >= 0)
  						{
  							iVar1 = Global_262145.f_23663;
  						}
  					}
  				}
  				else
  				{
  					iVar1 = 3125500;
  					if (bVar0)
  					{
  						if (Global_262145.f_23654 >= 0)
  						{
  							iVar1 = Global_262145.f_23654;
  						}
  					}
  					iVar2 = 2350000;
  					if (bVar0)
  					{
  						if (Global_262145.f_23663 >= 0)
  						{
  							iVar2 = Global_262145.f_23663;
  						}
  					}
  				}
  				break;
  			
  			case joaat("chernobog"):
  				if (bParam2)
  				{
  					iVar1 = 2490000;
  					if (bVar0)
  					{
  						if (Global_262145.f_23664 >= 0)
  						{
  							iVar1 = Global_262145.f_23664;
  						}
  					}
  				}
  				else
  				{
  					iVar1 = 3311700;
  					if (bVar0)
  					{
  						if (Global_262145.f_23655 >= 0)
  						{
  							iVar1 = Global_262145.f_23655;
  						}
  					}
  					iVar2 = 2490000;
  					if (bVar0)
  					{
  						if (Global_262145.f_23664 >= 0)
  						{
  							iVar2 = Global_262145.f_23664;
  						}
  					}
  				}
  				break;
  			
  			case joaat("khanjali"):
  				if (bParam2)
  				{
  					iVar1 = 2895000;
  					if (bVar0)
  					{
  						if (Global_262145.f_23666 >= 0)
  						{
  							iVar1 = Global_262145.f_23666;
  						}
  					}
  				}
  				else
  				{
  					iVar1 = 3850350;
  					if (bVar0)
  					{
  						if (Global_262145.f_23657 >= 0)
  						{
  							iVar1 = Global_262145.f_23657;
  						}
  					}
  					iVar2 = 2895000;
  					if (bVar0)
  					{
  						if (Global_262145.f_23666 >= 0)
  						{
  							iVar2 = Global_262145.f_23666;
  						}
  					}
  				}
  				break;
  			
  			case joaat("akula"):
  				if (bParam2)
  				{
  					iVar1 = 2785000;
  					if (bVar0)
  					{
  						if (Global_262145.f_23667 >= 0)
  						{
  							iVar1 = Global_262145.f_23667;
  						}
  					}
  				}
  				else
  				{
  					iVar1 = 3704050;
  					if (bVar0)
  					{
  						if (Global_262145.f_23658 >= 0)
  						{
  							iVar1 = Global_262145.f_23658;
  						}
  					}
  					iVar2 = 2785000;
  					if (bVar0)
  					{
  						if (Global_262145.f_23667 >= 0)
  						{
  							iVar2 = Global_262145.f_23667;
  						}
  					}
  				}
  				break;
  			
  			case joaat("thruster"):
  				if (bParam2)
  				{
  					iVar1 = 2750000;
  					if (bVar0)
  					{
  						if (Global_262145.f_23660 >= 0)
  						{
  							iVar1 = Global_262145.f_23660;
  						}
  					}
  				}
  				else
  				{
  					iVar1 = 3657500;
  					if (bVar0)
  					{
  						if (Global_262145.f_23651 >= 0)
  						{
  							iVar1 = Global_262145.f_23651;
  						}
  					}
  					iVar2 = 2750000;
  					if (bVar0)
  					{
  						if (Global_262145.f_23660 >= 0)
  						{
  							iVar2 = Global_262145.f_23660;
  						}
  					}
  				}
  				break;
  			
  			case joaat("barrage"):
  				if (bParam2)
  				{
  					iVar1 = 1595000;
  					if (bVar0)
  					{
  						if (Global_262145.f_23665 >= 0)
  						{
  							iVar1 = Global_262145.f_23665;
  						}
  					}
  				}
  				else
  				{
  					iVar1 = 2121350;
  					if (bVar0)
  					{
  						if (Global_262145.f_23656 >= 0)
  						{
  							iVar1 = Global_262145.f_23656;
  						}
  					}
  					iVar2 = 1595000;
  					if (bVar0)
  					{
  						if (Global_262145.f_23665 >= 0)
  						{
  							iVar2 = Global_262145.f_23665;
  						}
  					}
  				}
  				break;
  			
  			case joaat("volatol"):
  				if (bParam2)
  				{
  					iVar1 = 2800000;
  					if (bVar0)
  					{
  						if (Global_262145.f_23668 >= 0)
  						{
  							iVar1 = Global_262145.f_23668;
  						}
  					}
  				}
  				else
  				{
  					iVar1 = 3724000;
  					if (bVar0)
  					{
  						if (Global_262145.f_23659 >= 0)
  						{
  							iVar1 = Global_262145.f_23659;
  						}
  					}
  					iVar2 = 2800000;
  					if (bVar0)
  					{
  						if (Global_262145.f_23668 >= 0)
  						{
  							iVar2 = Global_262145.f_23668;
  						}
  					}
  				}
  				break;
  			
  			case joaat("comet4"):
  				iVar1 = 710000;
  				if (bVar0)
  				{
  					if (Global_262145.f_23669 >= 0)
  					{
  						iVar1 = Global_262145.f_23669;
  					}
  				}
  				break;
  			
  			case joaat("neon"):
  				iVar1 = 1500000;
  				if (bVar0)
  				{
  					if (Global_262145.f_23681 >= 0)
  					{
  						iVar1 = Global_262145.f_23681;
  					}
  				}
  				break;
  			
  			case joaat("streiter"):
  				iVar1 = 500000;
  				if (bVar0)
  				{
  					if (Global_262145.f_23674 >= 0)
  					{
  						iVar1 = Global_262145.f_23674;
  					}
  				}
  				break;
  			
  			case joaat("sentinel3"):
  				if (bParam2)
  				{
  					iVar1 = 487500;
  					if (bVar0)
  					{
  						if (Global_262145.f_28165 >= 0)
  						{
  							iVar1 = Global_262145.f_28165;
  						}
  					}
  				}
  				else
  				{
  					iVar1 = 650000;
  					if (bVar0)
  					{
  						if (Global_262145.f_23684 >= 0)
  						{
  							iVar1 = Global_262145.f_23684;
  						}
  					}
  					iVar2 = 487500;
  					if (bVar0)
  					{
  						if (Global_262145.f_28165 >= 0)
  						{
  							iVar2 = Global_262145.f_28165;
  						}
  					}
  				}
  				break;
  			
  			case joaat("yosemite"):
  				iVar1 = 485000;
  				if (bVar0)
  				{
  					if (Global_262145.f_23683 >= 0)
  					{
  						iVar1 = Global_262145.f_23683;
  					}
  				}
  				break;
  			
  			case joaat("sc1"):
  				iVar1 = 1603000;
  				if (bVar0)
  				{
  					if (Global_262145.f_23673 >= 0)
  					{
  						iVar1 = Global_262145.f_23673;
  					}
  				}
  				break;
  			
  			case joaat("autarch"):
  				iVar1 = 1955000;
  				if (bVar0)
  				{
  					if (Global_262145.f_23678 >= 0)
  					{
  						iVar1 = Global_262145.f_23678;
  					}
  				}
  				break;
  			
  			case joaat("gt500"):
  				iVar1 = 785000;
  				if (bVar0)
  				{
  					if (Global_262145.f_23687 >= 0)
  					{
  						iVar1 = Global_262145.f_23687;
  					}
  				}
  				break;
  			
  			case joaat("hustler"):
  				iVar1 = 625000;
  				if (bVar0)
  				{
  					if (Global_262145.f_23675 >= 0)
  					{
  						iVar1 = Global_262145.f_23675;
  					}
  				}
  				break;
  			
  			case joaat("revolter"):
  				iVar1 = 1610000;
  				if (bVar0)
  				{
  					if (Global_262145.f_23671 >= 0)
  					{
  						iVar1 = Global_262145.f_23671;
  					}
  				}
  				break;
  			
  			case joaat("pariah"):
  				iVar1 = 1420000;
  				if (bVar0)
  				{
  					if (Global_262145.f_23682 >= 0)
  					{
  						iVar1 = Global_262145.f_23682;
  					}
  				}
  				break;
  			
  			case joaat("raiden"):
  				iVar1 = 1375000;
  				if (bVar0)
  				{
  					if (Global_262145.f_23685 >= 0)
  					{
  						iVar1 = Global_262145.f_23685;
  					}
  				}
  				break;
  			
  			case joaat("savestra"):
  				iVar1 = 990000;
  				if (bVar0)
  				{
  					if (Global_262145.f_23670 >= 0)
  					{
  						iVar1 = Global_262145.f_23670;
  					}
  				}
  				break;
  			
  			case joaat("riata"):
  				iVar1 = 380000;
  				if (bVar0)
  				{
  					if (Global_262145.f_23680 >= 0)
  					{
  						iVar1 = Global_262145.f_23680;
  					}
  				}
  				break;
  			
  			case joaat("hermes"):
  				iVar1 = 535000;
  				if (bVar0)
  				{
  					if (Global_262145.f_23676 >= 0)
  					{
  						iVar1 = Global_262145.f_23676;
  					}
  				}
  				break;
  			
  			case joaat("comet5"):
  				iVar1 = 1145000;
  				if (bVar0)
  				{
  					if (Global_262145.f_23679 >= 0)
  					{
  						iVar1 = Global_262145.f_23679;
  					}
  				}
  				break;
  			
  			case joaat("z190"):
  				iVar1 = 900000;
  				if (bVar0)
  				{
  					if (Global_262145.f_23677 >= 0)
  					{
  						iVar1 = Global_262145.f_23677;
  					}
  				}
  				break;
  			
  			case joaat("viseris"):
  				iVar1 = 875000;
  				if (bVar0)
  				{
  					if (Global_262145.f_23672 >= 0)
  					{
  						iVar1 = Global_262145.f_23672;
  					}
  				}
  				break;
  			
  			case joaat("kamacho"):
  				iVar1 = 345000;
  				if (bVar0)
  				{
  					if (Global_262145.f_23686 >= 0)
  					{
  						iVar1 = Global_262145.f_23686;
  					}
  				}
  				break;
  			
  			case joaat("gb200"):
  				iVar1 = 940000;
  				if (bVar0)
  				{
  					if (Global_262145.f_23886 >= 0)
  					{
  						iVar1 = Global_262145.f_23886;
  					}
  				}
  				break;
  			
  			case joaat("fagaloa"):
  				iVar1 = 335000;
  				if (bVar0)
  				{
  					if (Global_262145.f_23892 >= 0)
  					{
  						iVar1 = Global_262145.f_23892;
  					}
  				}
  				break;
  			
  			case joaat("ellie"):
  				if (bParam2)
  				{
  					iVar1 = 423750;
  					if (bVar0)
  					{
  						if (Global_262145.f_28167 >= 0)
  						{
  							iVar1 = Global_262145.f_28167;
  						}
  					}
  				}
  				else
  				{
  					iVar1 = 565000;
  					if (bVar0)
  					{
  						if (Global_262145.f_23890 >= 0)
  						{
  							iVar1 = Global_262145.f_23890;
  						}
  					}
  					iVar2 = 423750;
  					if (bVar0)
  					{
  						if (Global_262145.f_28167 >= 0)
  						{
  							iVar2 = Global_262145.f_28167;
  						}
  					}
  				}
  				break;
  			
  			case joaat("issi3"):
  				iVar1 = 360000;
  				if (bVar0 && Global_262145.f_23891 >= 0)
  				{
  					iVar1 = Global_262145.f_23891;
  				}
  				if (bParam2)
  				{
  					iVar2 = iVar1;
  					iVar1 = SYSTEM::ROUND((SYSTEM::TO_FLOAT(360000) * 0.75f));
  					if (bVar0 && Global_262145.f_25590 >= 0)
  					{
  						iVar1 = Global_262145.f_25590;
  					}
  				}
  				break;
  			
  			case joaat("michelli"):
  				iVar1 = 1225000;
  				if (bVar0)
  				{
  					if (Global_262145.f_23885 >= 0)
  					{
  						iVar1 = Global_262145.f_23885;
  					}
  				}
  				break;
  			
  			case joaat("flashgt"):
  				iVar1 = 1675000;
  				if (bVar0)
  				{
  					if (Global_262145.f_23884 >= 0)
  					{
  						iVar1 = Global_262145.f_23884;
  					}
  				}
  				break;
  			
  			case joaat("hotring"):
  				iVar1 = 830000;
  				if (bVar0)
  				{
  					if (Global_262145.f_23887 >= 0)
  					{
  						iVar1 = Global_262145.f_23887;
  					}
  				}
  				break;
  			
  			case joaat("tezeract"):
  				iVar1 = 2825000;
  				if (bVar0)
  				{
  					if (Global_262145.f_23880 >= 0)
  					{
  						iVar1 = Global_262145.f_23880;
  					}
  				}
  				break;
  			
  			case joaat("tyrant"):
  				iVar1 = 2515000;
  				if (bVar0)
  				{
  					if (Global_262145.f_23881 >= 0)
  					{
  						iVar1 = Global_262145.f_23881;
  					}
  				}
  				break;
  			
  			case joaat("dominator3"):
  				iVar1 = 725000;
  				if (bVar0 && Global_262145.f_23889 >= 0)
  				{
  					iVar1 = Global_262145.f_23889;
  				}
  				if (bParam2)
  				{
  					iVar2 = iVar1;
  					iVar1 = SYSTEM::ROUND((SYSTEM::TO_FLOAT(725000) * 0.75f));
  				}
  				break;
  			
  			case joaat("taipan"):
  				iVar1 = 1980000;
  				if (bVar0)
  				{
  					if (Global_262145.f_23883 >= 0)
  					{
  						iVar1 = Global_262145.f_23883;
  					}
  				}
  				break;
  			
  			case joaat("entity2"):
  				iVar1 = 2305000;
  				if (bVar0)
  				{
  					if (Global_262145.f_23882 >= 0)
  					{
  						iVar1 = Global_262145.f_23882;
  					}
  				}
  				break;
  			
  			case joaat("jester3"):
  				iVar1 = 790000;
  				if (bVar0)
  				{
  					if (Global_262145.f_23888 >= 0)
  					{
  						iVar1 = Global_262145.f_23888;
  					}
  				}
  				break;
  			
  			case joaat("cheburek"):
  				iVar1 = 145000;
  				if (bVar0)
  				{
  					if (Global_262145.f_23893 >= 0)
  					{
  						iVar1 = Global_262145.f_23893;
  					}
  				}
  				break;
  			
  			case joaat("caracara"):
  				iVar1 = 1775000;
  				if (bVar0)
  				{
  					if (Global_262145.f_23894 >= 0)
  					{
  						iVar1 = Global_262145.f_23894;
  					}
  				}
  				break;
  			
  			case joaat("seasparrow"):
  				iVar1 = 1815000;
  				if (bVar0)
  				{
  					if (Global_262145.f_23895 >= 0)
  					{
  						iVar1 = Global_262145.f_23895;
  					}
  				}
  				break;
  			
  			case joaat("terbyte"):
  				if (!bParam2)
  				{
  					iVar1 = 1375000;
  					if (bVar0)
  					{
  						if (Global_262145.f_24633 >= 0)
  						{
  							iVar1 = Global_262145.f_24633;
  						}
  					}
  				}
  				else
  				{
  					iVar1 = 0;
  				}
  				break;
  			
  			case joaat("mule4"):
  				if (bParam2)
  				{
  					iVar1 = 72000;
  					if (bVar0)
  					{
  						if (Global_262145.f_24549 >= 0)
  						{
  							iVar1 = Global_262145.f_24549;
  						}
  					}
  				}
  				else
  				{
  					iVar1 = 95760;
  					if (bVar0)
  					{
  						if (Global_262145.f_24555 >= 0)
  						{
  							iVar1 = Global_262145.f_24555;
  						}
  					}
  					iVar2 = 72000;
  					if (bVar0)
  					{
  						if (Global_262145.f_24549 >= 0)
  						{
  							iVar2 = Global_262145.f_24549;
  						}
  					}
  				}
  				break;
  			
  			case joaat("pounder2"):
  				if (bParam2)
  				{
  					iVar1 = 241000;
  					if (bVar0)
  					{
  						if (Global_262145.f_24548 >= 0)
  						{
  							iVar1 = Global_262145.f_24548;
  						}
  					}
  				}
  				else
  				{
  					iVar1 = 320530;
  					if (bVar0)
  					{
  						if (Global_262145.f_24554 >= 0)
  						{
  							iVar1 = Global_262145.f_24554;
  						}
  					}
  					iVar2 = 241000;
  					if (bVar0)
  					{
  						if (Global_262145.f_24548 >= 0)
  						{
  							iVar2 = Global_262145.f_24548;
  						}
  					}
  				}
  				break;
  			
  			case joaat("swinger"):
  				iVar1 = 909000;
  				if (bVar0)
  				{
  					if (Global_262145.f_24520 >= 0)
  					{
  						iVar1 = Global_262145.f_24520;
  					}
  				}
  				break;
  			
  			case joaat("menacer"):
  				iVar1 = 1775000;
  				if (bVar0)
  				{
  					if (Global_262145.f_24551 >= 0)
  					{
  						iVar1 = Global_262145.f_24551;
  					}
  				}
  				break;
  			
  			case joaat("scramjet"):
  				if (bParam2)
  				{
  					iVar1 = 3480000;
  					if (bVar0)
  					{
  						if (Global_262145.f_24552 >= 0)
  						{
  							iVar1 = Global_262145.f_24552;
  						}
  					}
  				}
  				else
  				{
  					iVar1 = 4628400;
  					if (bVar0)
  					{
  						if (Global_262145.f_24557 >= 0)
  						{
  							iVar1 = Global_262145.f_24557;
  						}
  					}
  					iVar2 = 3480000;
  					if (bVar0)
  					{
  						if (Global_262145.f_24552 >= 0)
  						{
  							iVar2 = Global_262145.f_24552;
  						}
  					}
  				}
  				break;
  			
  			case joaat("strikeforce"):
  				iVar1 = 3800000;
  				if (bVar0)
  				{
  					if (Global_262145.f_24553 >= 0)
  					{
  						iVar1 = Global_262145.f_24553;
  					}
  				}
  				break;
  			
  			case joaat("oppressor2"):
  				if (bParam2)
  				{
  					iVar1 = 2925000;
  					if (bVar0)
  					{
  						if (Global_262145.f_24550 >= 0)
  						{
  							iVar1 = Global_262145.f_24550;
  						}
  					}
  				}
  				else
  				{
  					iVar1 = 3890250;
  					if (bVar0)
  					{
  						if (Global_262145.f_24556 >= 0)
  						{
  							iVar1 = Global_262145.f_24556;
  						}
  					}
  					iVar2 = 2925000;
  					if (bVar0)
  					{
  						if (Global_262145.f_24550 >= 0)
  						{
  							iVar2 = Global_262145.f_24550;
  						}
  					}
  				}
  				break;
  			
  			case joaat("patriot2"):
  				if (bParam2)
  				{
  					iVar1 = 460000;
  					if (bVar0)
  					{
  						if (Global_262145.f_24517 >= 0)
  						{
  							iVar1 = Global_262145.f_24517;
  						}
  					}
  				}
  				else
  				{
  					iVar1 = 611800;
  					if (bVar0)
  					{
  						if (Global_262145.f_24558 >= 0)
  						{
  							iVar1 = Global_262145.f_24558;
  						}
  					}
  					iVar2 = 460000;
  					if (bVar0)
  					{
  						if (Global_262145.f_24517 >= 0)
  						{
  							iVar2 = Global_262145.f_24517;
  						}
  					}
  				}
  				break;
  			
  			case joaat("stafford"):
  				iVar1 = 1272000;
  				if (bVar0)
  				{
  					if (Global_262145.f_24518 >= 0)
  					{
  						iVar1 = Global_262145.f_24518;
  					}
  				}
  				break;
  			
  			case joaat("freecrawler"):
  				iVar1 = 597000;
  				if (bVar0)
  				{
  					if (Global_262145.f_24519 >= 0)
  					{
  						iVar1 = Global_262145.f_24519;
  					}
  				}
  				break;
  			
  			case joaat("blimp3"):
  				if (bParam2)
  				{
  					iVar1 = 895000;
  					if (bVar0)
  					{
  						if (Global_262145.f_24522 >= 0)
  						{
  							iVar1 = Global_262145.f_24522;
  						}
  					}
  				}
  				else
  				{
  					iVar1 = 1190350;
  					if (bVar0)
  					{
  						if (Global_262145.f_24560 >= 0)
  						{
  							iVar1 = Global_262145.f_24560;
  						}
  					}
  					iVar2 = 895000;
  					if (bVar0)
  					{
  						if (Global_262145.f_24522 >= 0)
  						{
  							iVar2 = Global_262145.f_24522;
  						}
  					}
  				}
  				break;
  			
  			case joaat("pbus2"):
  				if (bParam2)
  				{
  					iVar1 = 1385000;
  					if (bVar0)
  					{
  						if (Global_262145.f_24521 >= 0)
  						{
  							iVar1 = Global_262145.f_24521;
  						}
  					}
  				}
  				else
  				{
  					iVar1 = 1842050;
  					if (bVar0)
  					{
  						if (Global_262145.f_24559 >= 0)
  						{
  							iVar1 = Global_262145.f_24559;
  						}
  					}
  					iVar2 = 1385000;
  					if (bVar0)
  					{
  						if (Global_262145.f_24521 >= 0)
  						{
  							iVar2 = Global_262145.f_24521;
  						}
  					}
  				}
  				break;
  			
  			case joaat("cerberus"):
  				iVar1 = 3870300;
  				if (bVar0 && Global_262145.f_25656 >= 0)
  				{
  					iVar1 = Global_262145.f_25656;
  				}
  				if (bParam2)
  				{
  					iVar2 = iVar1;
  					iVar1 = 2910000;
  					if (bVar0 && Global_262145.f_25671 >= 0)
  					{
  						iVar1 = Global_262145.f_25671;
  					}
  				}
  				break;
  			
  			case joaat("cerberus2"):
  				iVar1 = 3870300;
  				if (bVar0 && Global_262145.f_25661 >= 0)
  				{
  					iVar1 = Global_262145.f_25661;
  				}
  				if (bParam2)
  				{
  					iVar2 = iVar1;
  					iVar1 = 2910000;
  					if (bVar0 && Global_262145.f_25676 >= 0)
  					{
  						iVar1 = Global_262145.f_25676;
  					}
  				}
  				break;
  			
  			case joaat("cerberus3"):
  				iVar1 = 3870300;
  				if (bVar0 && Global_262145.f_25666 >= 0)
  				{
  					iVar1 = Global_262145.f_25666;
  				}
  				if (bParam2)
  				{
  					iVar2 = iVar1;
  					iVar1 = 2910000;
  					if (bVar0 && Global_262145.f_25681 >= 0)
  					{
  						iVar1 = Global_262145.f_25681;
  					}
  				}
  				break;
  			
  			case joaat("brutus"):
  				iVar1 = 2666650;
  				if (bVar0 && Global_262145.f_25657 >= 0)
  				{
  					iVar1 = Global_262145.f_25657;
  				}
  				if (bParam2)
  				{
  					iVar2 = iVar1;
  					iVar1 = 2005000;
  					if (bVar0 && Global_262145.f_25672 >= 0)
  					{
  						iVar1 = Global_262145.f_25672;
  					}
  				}
  				break;
  			
  			case joaat("brutus2"):
  				iVar1 = 2666650;
  				if (bVar0 && Global_262145.f_25662 >= 0)
  				{
  					iVar1 = Global_262145.f_25662;
  				}
  				if (bParam2)
  				{
  					iVar2 = iVar1;
  					iVar1 = 2005000;
  					if (bVar0 && Global_262145.f_25677 >= 0)
  					{
  						iVar1 = Global_262145.f_25677;
  					}
  				}
  				break;
  			
  			case joaat("brutus3"):
  				iVar1 = 2666650;
  				if (bVar0 && Global_262145.f_25667 >= 0)
  				{
  					iVar1 = Global_262145.f_25667;
  				}
  				if (bParam2)
  				{
  					iVar2 = iVar1;
  					iVar1 = 2005000;
  					if (bVar0 && Global_262145.f_25682 >= 0)
  					{
  						iVar1 = Global_262145.f_25682;
  					}
  				}
  				break;
  			
  			case joaat("scarab"):
  				iVar1 = 3076290;
  				if (bVar0 && Global_262145.f_25658 >= 0)
  				{
  					iVar1 = Global_262145.f_25658;
  				}
  				if (bParam2)
  				{
  					iVar2 = iVar1;
  					iVar1 = 2313000;
  					if (bVar0 && Global_262145.f_25673 >= 0)
  					{
  						iVar1 = Global_262145.f_25673;
  					}
  				}
  				break;
  			
  			case joaat("scarab2"):
  				iVar1 = 3076290;
  				if (bVar0 && Global_262145.f_25663 >= 0)
  				{
  					iVar1 = Global_262145.f_25663;
  				}
  				if (bParam2)
  				{
  					iVar2 = iVar1;
  					iVar1 = 2313000;
  					if (bVar0 && Global_262145.f_25678 >= 0)
  					{
  						iVar1 = Global_262145.f_25678;
  					}
  				}
  				break;
  			
  			case joaat("scarab3"):
  				iVar1 = 3076290;
  				if (bVar0 && Global_262145.f_25668 >= 0)
  				{
  					iVar1 = Global_262145.f_25668;
  				}
  				if (bParam2)
  				{
  					iVar2 = iVar1;
  					iVar1 = 2313000;
  					if (bVar0 && Global_262145.f_25683 >= 0)
  					{
  						iVar1 = Global_262145.f_25683;
  					}
  				}
  				break;
  			
  			case joaat("imperator"):
  				iVar1 = 2284940;
  				if (bVar0 && Global_262145.f_25659 >= 0)
  				{
  					iVar1 = Global_262145.f_25659;
  				}
  				if (bParam2)
  				{
  					iVar2 = iVar1;
  					iVar1 = 1718000;
  					if (bVar0 && Global_262145.f_25674 >= 0)
  					{
  						iVar1 = Global_262145.f_25674;
  					}
  				}
  				break;
  			
  			case joaat("imperator2"):
  				iVar1 = 2284940;
  				if (bVar0 && Global_262145.f_25664 >= 0)
  				{
  					iVar1 = Global_262145.f_25664;
  				}
  				if (bParam2)
  				{
  					iVar2 = iVar1;
  					iVar1 = 1718000;
  					if (bVar0 && Global_262145.f_25679 >= 0)
  					{
  						iVar1 = Global_262145.f_25679;
  					}
  				}
  				break;
  			
  			case joaat("imperator3"):
  				iVar1 = 2284940;
  				if (bVar0 && Global_262145.f_25669 >= 0)
  				{
  					iVar1 = Global_262145.f_25669;
  				}
  				if (bParam2)
  				{
  					iVar2 = iVar1;
  					iVar1 = 1718000;
  					if (bVar0 && Global_262145.f_25684 >= 0)
  					{
  						iVar1 = Global_262145.f_25684;
  					}
  				}
  				break;
  			
  			case joaat("zr380"):
  				iVar1 = 2138640;
  				if (bVar0 && Global_262145.f_25660 >= 0)
  				{
  					iVar1 = Global_262145.f_25660;
  				}
  				if (bParam2)
  				{
  					iVar2 = iVar1;
  					iVar1 = 1608000;
  					if (bVar0 && Global_262145.f_25675 >= 0)
  					{
  						iVar1 = Global_262145.f_25675;
  					}
  				}
  				break;
  			
  			case joaat("zr3802"):
  				iVar1 = 2138640;
  				if (bVar0 && Global_262145.f_25665 >= 0)
  				{
  					iVar1 = Global_262145.f_25665;
  				}
  				if (bParam2)
  				{
  					iVar2 = iVar1;
  					iVar1 = 1608000;
  					if (bVar0 && Global_262145.f_25680 >= 0)
  					{
  						iVar1 = Global_262145.f_25680;
  					}
  				}
  				break;
  			
  			case joaat("zr3803"):
  				iVar1 = 2138640;
  				if (bVar0 && Global_262145.f_25670 >= 0)
  				{
  					iVar1 = Global_262145.f_25670;
  				}
  				if (bParam2)
  				{
  					iVar2 = iVar1;
  					iVar1 = 1608000;
  					if (bVar0 && Global_262145.f_25685 >= 0)
  					{
  						iVar1 = Global_262145.f_25685;
  					}
  				}
  				break;
  			
  			case joaat("impaler"):
  				iVar1 = 331835;
  				if (bVar0 && Global_262145.f_25584 >= 0)
  				{
  					iVar1 = Global_262145.f_25584;
  				}
  				if (bParam2)
  				{
  					iVar2 = iVar1;
  					iVar1 = 249500;
  					if (bVar0 && Global_262145.f_25589 >= 0)
  					{
  						iVar1 = Global_262145.f_25589;
  					}
  				}
  				break;
  			
  			case joaat("vamos"):
  				iVar1 = 596000;
  				if (bVar0 && Global_262145.f_25691 >= 0)
  				{
  					iVar1 = Global_262145.f_25691;
  				}
  				break;
  			
  			case joaat("tulip"):
  				iVar1 = 718000;
  				if (bVar0 && Global_262145.f_25693 >= 0)
  				{
  					iVar1 = Global_262145.f_25693;
  				}
  				break;
  			
  			case joaat("deveste"):
  				iVar1 = 1795000;
  				if (bVar0 && Global_262145.f_25686 >= 0)
  				{
  					iVar1 = Global_262145.f_25686;
  				}
  				break;
  			
  			case joaat("schlagen"):
  				iVar1 = 1300000;
  				if (bVar0 && Global_262145.f_25687 >= 0)
  				{
  					iVar1 = Global_262145.f_25687;
  				}
  				break;
  			
  			case joaat("toros"):
  				iVar1 = 498000;
  				if (bVar0 && Global_262145.f_25688 >= 0)
  				{
  					iVar1 = Global_262145.f_25688;
  				}
  				break;
  			
  			case joaat("deviant"):
  				iVar1 = 512000;
  				if (bVar0 && Global_262145.f_25689 >= 0)
  				{
  					iVar1 = Global_262145.f_25689;
  				}
  				break;
  			
  			case joaat("clique"):
  				iVar1 = 909000;
  				if (bVar0 && Global_262145.f_25690 >= 0)
  				{
  					iVar1 = Global_262145.f_25690;
  				}
  				break;
  			
  			case joaat("italigto"):
  				iVar1 = 1965000;
  				if (bVar0 && Global_262145.f_25692 >= 0)
  				{
  					iVar1 = Global_262145.f_25692;
  				}
  				break;
  			
  			case joaat("rcbandito"):
  				iVar1 = 1590000;
  				if (bVar0 && Global_262145.f_25694 >= 0)
  				{
  					iVar1 = Global_262145.f_25694;
  				}
  				break;
  			
  			case joaat("blista3"):
  				iVar1 = 0;
  				break;
  			
  			case joaat("slamvan4"):
  				iVar1 = 0;
  				break;
  			
  			case joaat("slamvan5"):
  				iVar1 = 100000;
  				break;
  			
  			case joaat("thrax"):
  				iVar1 = 2325000;
  				if (bVar0 && Global_262145.f_26541 >= 0)
  				{
  					iVar1 = Global_262145.f_26541;
  				}
  				break;
  			
  			case joaat("drafter"):
  				iVar1 = 718000;
  				if (bVar0 && Global_262145.f_26542 >= 0)
  				{
  					iVar1 = Global_262145.f_26542;
  				}
  				break;
  			
  			case joaat("locust"):
  				iVar1 = 1625000;
  				if (bVar0 && Global_262145.f_26538 >= 0)
  				{
  					iVar1 = Global_262145.f_26538;
  				}
  				break;
  			
  			case joaat("novak"):
  				iVar1 = 608000;
  				if (bVar0 && Global_262145.f_26544 >= 0)
  				{
  					iVar1 = Global_262145.f_26544;
  				}
  				break;
  			
  			case joaat("zorrusso"):
  				iVar1 = 1925000;
  				if (bVar0 && Global_262145.f_26543 >= 0)
  				{
  					iVar1 = Global_262145.f_26543;
  				}
  				break;
  			
  			case joaat("gauntlet3"):
  				if (bParam2)
  				{
  					iVar1 = 461250;
  					if (bVar0)
  					{
  						if (Global_262145.f_28166 >= 0)
  						{
  							iVar1 = Global_262145.f_28166;
  						}
  					}
  				}
  				else
  				{
  					iVar1 = 615000;
  					if (bVar0)
  					{
  						if (Global_262145.f_26539 >= 0)
  						{
  							iVar1 = Global_262145.f_26539;
  						}
  					}
  					iVar2 = 461250;
  					if (bVar0)
  					{
  						if (Global_262145.f_28166 >= 0)
  						{
  							iVar2 = Global_262145.f_28166;
  						}
  					}
  				}
  				break;
  			
  			case joaat("issi7"):
  				iVar1 = 897000;
  				if (bVar0 && Global_262145.f_26545 >= 0)
  				{
  					iVar1 = Global_262145.f_26545;
  				}
  				break;
  			
  			case joaat("zion3"):
  				iVar1 = 812000;
  				if (bVar0 && Global_262145.f_26540 >= 0)
  				{
  					iVar1 = Global_262145.f_26540;
  				}
  				break;
  			
  			case joaat("nebula"):
  				iVar1 = 797000;
  				if (bVar0 && Global_262145.f_26547 >= 0)
  				{
  					iVar1 = Global_262145.f_26547;
  				}
  				break;
  			
  			case joaat("hellion"):
  				iVar1 = 835000;
  				if (bVar0 && Global_262145.f_26546 >= 0)
  				{
  					iVar1 = Global_262145.f_26546;
  				}
  				break;
  			
  			case joaat("dynasty"):
  				iVar1 = 450000;
  				if (bVar0 && Global_262145.f_26548 >= 0)
  				{
  					iVar1 = Global_262145.f_26548;
  				}
  				break;
  			
  			case joaat("rrocket"):
  				iVar1 = 925000;
  				if (bVar0 && Global_262145.f_26556 >= 0)
  				{
  					iVar1 = Global_262145.f_26556;
  				}
  				break;
  			
  			case joaat("peyote2"):
  				iVar1 = 805000;
  				if (bVar0 && Global_262145.f_26555 >= 0)
  				{
  					iVar1 = Global_262145.f_26555;
  				}
  				break;
  			
  			case joaat("gauntlet4"):
  				iVar1 = 745000;
  				if (bVar0 && Global_262145.f_26554 >= 0)
  				{
  					iVar1 = Global_262145.f_26554;
  				}
  				break;
  			
  			case joaat("caracara2"):
  				iVar1 = 875000;
  				if (bVar0 && Global_262145.f_26553 >= 0)
  				{
  					iVar1 = Global_262145.f_26553;
  				}
  				break;
  			
  			case joaat("jugular"):
  				if (bParam2)
  				{
  					iVar1 = 918750;
  					if (bVar0)
  					{
  						if (Global_262145.f_28164 >= 0)
  						{
  							iVar1 = Global_262145.f_28164;
  						}
  					}
  				}
  				else
  				{
  					iVar1 = 1225000;
  					if (bVar0)
  					{
  						if (Global_262145.f_26866 >= 0)
  						{
  							iVar1 = Global_262145.f_26866;
  						}
  					}
  					iVar2 = 918750;
  					if (bVar0)
  					{
  						if (Global_262145.f_28164 >= 0)
  						{
  							iVar2 = Global_262145.f_28164;
  						}
  					}
  				}
  				break;
  			
  			case joaat("s80"):
  				iVar1 = 2575000;
  				if (bVar0 && Global_262145.f_26552 >= 0)
  				{
  					iVar1 = Global_262145.f_26552;
  				}
  				break;
  			
  			case joaat("krieger"):
  				iVar1 = 2875000;
  				if (bVar0 && Global_262145.f_26551 >= 0)
  				{
  					iVar1 = Global_262145.f_26551;
  				}
  				break;
  			
  			case joaat("emerus"):
  				iVar1 = 2750000;
  				if (bVar0 && Global_262145.f_26550 >= 0)
  				{
  					iVar1 = Global_262145.f_26550;
  				}
  				break;
  			
  			case joaat("neo"):
  				iVar1 = 1875000;
  				if (bVar0 && Global_262145.f_26549 >= 0)
  				{
  					iVar1 = Global_262145.f_26549;
  				}
  				break;
  			
  			case joaat("paragon"):
  				iVar1 = 905000;
  				if (bVar0 && Global_262145.f_26931 >= 0)
  				{
  					iVar1 = Global_262145.f_26931;
  				}
  				break;
  		}
  		switch (iParam1)
  		{
  			case joaat("asbo"):
  				if (bParam2)
  				{
  					iVar1 = 306000;
  					if (bVar0)
  					{
  						if (Global_262145.f_28131 >= 0)
  						{
  							iVar1 = Global_262145.f_28131;
  						}
  					}
  				}
  				else
  				{
  					iVar1 = 408000;
  					if (bVar0)
  					{
  						if (Global_262145.f_28130 >= 0)
  						{
  							iVar1 = Global_262145.f_28130;
  						}
  					}
  					iVar2 = 306000;
  					if (bVar0)
  					{
  						if (Global_262145.f_28131 >= 0)
  						{
  							iVar2 = Global_262145.f_28131;
  						}
  					}
  				}
  				break;
  			
  			case joaat("kanjo"):
  				if (bParam2)
  				{
  					iVar1 = 435000;
  					if (bVar0)
  					{
  						if (Global_262145.f_28133 >= 0)
  						{
  							iVar1 = Global_262145.f_28133;
  						}
  					}
  				}
  				else
  				{
  					iVar1 = 580000;
  					if (bVar0)
  					{
  						if (Global_262145.f_28132 >= 0)
  						{
  							iVar1 = Global_262145.f_28132;
  						}
  					}
  					iVar2 = 435000;
  					if (bVar0)
  					{
  						if (Global_262145.f_28133 >= 0)
  						{
  							iVar2 = Global_262145.f_28133;
  						}
  					}
  				}
  				break;
  			
  			case joaat("everon"):
  				if (bParam2)
  				{
  					iVar1 = 1106250;
  					if (bVar0)
  					{
  						if (Global_262145.f_28135 >= 0)
  						{
  							iVar1 = Global_262145.f_28135;
  						}
  					}
  				}
  				else
  				{
  					iVar1 = 1475000;
  					if (bVar0)
  					{
  						if (Global_262145.f_28134 >= 0)
  						{
  							iVar1 = Global_262145.f_28134;
  						}
  					}
  					iVar2 = 1106250;
  					if (bVar0)
  					{
  						if (Global_262145.f_28135 >= 0)
  						{
  							iVar2 = Global_262145.f_28135;
  						}
  					}
  				}
  				break;
  			
  			case joaat("retinue2"):
  				if (bParam2)
  				{
  					iVar1 = 1215000;
  					if (bVar0)
  					{
  						if (Global_262145.f_28137 >= 0)
  						{
  							iVar1 = Global_262145.f_28137;
  						}
  					}
  				}
  				else
  				{
  					iVar1 = 1620000;
  					if (bVar0)
  					{
  						if (Global_262145.f_28136 >= 0)
  						{
  							iVar1 = Global_262145.f_28136;
  						}
  					}
  					iVar2 = 1215000;
  					if (bVar0)
  					{
  						if (Global_262145.f_28137 >= 0)
  						{
  							iVar2 = Global_262145.f_28137;
  						}
  					}
  				}
  				break;
  			
  			case joaat("yosemite2"):
  				if (bParam2)
  				{
  					iVar1 = 981000;
  					if (bVar0)
  					{
  						if (Global_262145.f_28139 >= 0)
  						{
  							iVar1 = Global_262145.f_28139;
  						}
  					}
  				}
  				else
  				{
  					iVar1 = 1308000;
  					if (bVar0)
  					{
  						if (Global_262145.f_28138 >= 0)
  						{
  							iVar1 = Global_262145.f_28138;
  						}
  					}
  					iVar2 = 981000;
  					if (bVar0)
  					{
  						if (Global_262145.f_28139 >= 0)
  						{
  							iVar2 = Global_262145.f_28139;
  						}
  					}
  				}
  				break;
  			
  			case joaat("sugoi"):
  				if (bParam2)
  				{
  					iVar1 = 918000;
  					if (bVar0)
  					{
  						if (Global_262145.f_28141 >= 0)
  						{
  							iVar1 = Global_262145.f_28141;
  						}
  					}
  				}
  				else
  				{
  					iVar1 = 1224000;
  					if (bVar0)
  					{
  						if (Global_262145.f_28140 >= 0)
  						{
  							iVar1 = Global_262145.f_28140;
  						}
  					}
  					iVar2 = 918000;
  					if (bVar0)
  					{
  						if (Global_262145.f_28141 >= 0)
  						{
  							iVar2 = Global_262145.f_28141;
  						}
  					}
  				}
  				break;
  			
  			case joaat("sultan2"):
  				if (bParam2)
  				{
  					iVar1 = 1288500;
  					if (bVar0)
  					{
  						if (Global_262145.f_28143 >= 0)
  						{
  							iVar1 = Global_262145.f_28143;
  						}
  					}
  				}
  				else
  				{
  					iVar1 = 1718000;
  					if (bVar0)
  					{
  						if (Global_262145.f_28142 >= 0)
  						{
  							iVar1 = Global_262145.f_28142;
  						}
  					}
  					iVar2 = 1288500;
  					if (bVar0)
  					{
  						if (Global_262145.f_28143 >= 0)
  						{
  							iVar2 = Global_262145.f_28143;
  						}
  					}
  				}
  				break;
  			
  			case joaat("outlaw"):
  				if (bParam2)
  				{
  					iVar1 = 951000;
  					if (bVar0)
  					{
  						if (Global_262145.f_28145 >= 0)
  						{
  							iVar1 = Global_262145.f_28145;
  						}
  					}
  				}
  				else
  				{
  					iVar1 = 1268000;
  					if (bVar0)
  					{
  						if (Global_262145.f_28144 >= 0)
  						{
  							iVar1 = Global_262145.f_28144;
  						}
  					}
  					iVar2 = 951000;
  					if (bVar0)
  					{
  						if (Global_262145.f_28145 >= 0)
  						{
  							iVar2 = Global_262145.f_28145;
  						}
  					}
  				}
  				break;
  			
  			case joaat("vagrant"):
  				if (bParam2)
  				{
  					iVar1 = 1660500;
  					if (bVar0)
  					{
  						if (Global_262145.f_28147 >= 0)
  						{
  							iVar1 = Global_262145.f_28147;
  						}
  					}
  				}
  				else
  				{
  					iVar1 = 2214000;
  					if (bVar0)
  					{
  						if (Global_262145.f_28146 >= 0)
  						{
  							iVar1 = Global_262145.f_28146;
  						}
  					}
  					iVar2 = 1660500;
  					if (bVar0)
  					{
  						if (Global_262145.f_28147 >= 0)
  						{
  							iVar2 = Global_262145.f_28147;
  						}
  					}
  				}
  				break;
  			
  			case joaat("komoda"):
  				if (bParam2)
  				{
  					iVar1 = 1275000;
  					if (bVar0)
  					{
  						if (Global_262145.f_28149 >= 0)
  						{
  							iVar1 = Global_262145.f_28149;
  						}
  					}
  				}
  				else
  				{
  					iVar1 = 1700000;
  					if (bVar0)
  					{
  						if (Global_262145.f_28148 >= 0)
  						{
  							iVar1 = Global_262145.f_28148;
  						}
  					}
  					iVar2 = 1275000;
  					if (bVar0)
  					{
  						if (Global_262145.f_28149 >= 0)
  						{
  							iVar2 = Global_262145.f_28149;
  						}
  					}
  				}
  				break;
  			
  			case joaat("stryder"):
  				if (bParam2)
  				{
  					iVar1 = 502500;
  					if (bVar0)
  					{
  						if (Global_262145.f_28151 >= 0)
  						{
  							iVar1 = Global_262145.f_28151;
  						}
  					}
  				}
  				else
  				{
  					iVar1 = 670000;
  					if (bVar0)
  					{
  						if (Global_262145.f_28150 >= 0)
  						{
  							iVar1 = Global_262145.f_28150;
  						}
  					}
  					iVar2 = 502500;
  					if (bVar0)
  					{
  						if (Global_262145.f_28151 >= 0)
  						{
  							iVar2 = Global_262145.f_28151;
  						}
  					}
  				}
  				break;
  			
  			case joaat("furia"):
  				if (bParam2)
  				{
  					iVar1 = 2055000;
  					if (bVar0)
  					{
  						if (Global_262145.f_28153 >= 0)
  						{
  							iVar1 = Global_262145.f_28153;
  						}
  					}
  				}
  				else
  				{
  					iVar1 = 2740000;
  					if (bVar0)
  					{
  						if (Global_262145.f_28152 >= 0)
  						{
  							iVar1 = Global_262145.f_28152;
  						}
  					}
  					iVar2 = 2055000;
  					if (bVar0)
  					{
  						if (Global_262145.f_28153 >= 0)
  						{
  							iVar2 = Global_262145.f_28153;
  						}
  					}
  				}
  				break;
  			
  			case joaat("zhaba"):
  				if (bParam2)
  				{
  					iVar1 = 1800000;
  					if (bVar0)
  					{
  						if (Global_262145.f_28155 >= 0)
  						{
  							iVar1 = Global_262145.f_28155;
  						}
  					}
  				}
  				else
  				{
  					iVar1 = 2400000;
  					if (bVar0)
  					{
  						if (Global_262145.f_28154 >= 0)
  						{
  							iVar1 = Global_262145.f_28154;
  						}
  					}
  					iVar2 = 1800000;
  					if (bVar0)
  					{
  						if (Global_262145.f_28155 >= 0)
  						{
  							iVar2 = Global_262145.f_28155;
  						}
  					}
  				}
  				break;
  			
  			case joaat("jb7002"):
  				iVar1 = 1470000;
  				if (bVar0)
  				{
  					if (Global_262145.f_28233 >= 0)
  					{
  						iVar1 = Global_262145.f_28233;
  					}
  				}
  				break;
  			
  			case joaat("minitank"):
  				iVar1 = 2275000;
  				if (bVar0)
  				{
  					if (Global_262145.f_28224 >= 0)
  					{
  						iVar1 = Global_262145.f_28224;
  					}
  				}
  				break;
  			
  			case joaat("formula"):
  				iVar1 = 3515000;
  				if (bVar0)
  				{
  					if (Global_262145.f_28303 >= 0)
  					{
  						iVar1 = Global_262145.f_28303;
  					}
  				}
  				break;
  			
  			case joaat("formula2"):
  				iVar1 = 3115000;
  				if (bVar0)
  				{
  					if (Global_262145.f_28306 >= 0)
  					{
  						iVar1 = Global_262145.f_28306;
  					}
  				}
  				break;
  			
  			case joaat("imorgon"):
  				iVar1 = 2165000;
  				if (bVar0)
  				{
  					if (Global_262145.f_28309 >= 0)
  					{
  						iVar1 = Global_262145.f_28309;
  					}
  				}
  				break;
  			
  			case joaat("rebla"):
  				iVar1 = 1175000;
  				if (bVar0)
  				{
  					if (Global_262145.f_28310 >= 0)
  					{
  						iVar1 = Global_262145.f_28310;
  					}
  				}
  				break;
  			
  			case joaat("vstr"):
  				iVar1 = 1285000;
  				if (bVar0)
  				{
  					if (Global_262145.f_28311 >= 0)
  					{
  						iVar1 = Global_262145.f_28311;
  					}
  				}
  				break;
  			
  			case joaat("tigon"):
  				iVar1 = 2310000;
  				if (bVar0)
  				{
  					if (Global_262145.f_29012 >= 0)
  					{
  						iVar1 = Global_262145.f_29012;
  					}
  				}
  				break;
  			
  			case joaat("openwheel1"):
  				iVar1 = 3400000;
  				if (bVar0)
  				{
  					if (Global_262145.f_29016 >= 0)
  					{
  						iVar1 = Global_262145.f_29016;
  					}
  				}
  				break;
  			
  			case joaat("openwheel2"):
  				iVar1 = 2997000;
  				if (bVar0)
  				{
  					if (Global_262145.f_29017 >= 0)
  					{
  						iVar1 = Global_262145.f_29017;
  					}
  				}
  				break;
  			
  			case joaat("coquette4"):
  				iVar1 = 1510000;
  				if (bVar0)
  				{
  					if (Global_262145.f_29018 >= 0)
  					{
  						iVar1 = Global_262145.f_29018;
  					}
  				}
  				break;
  			
  			case joaat("peyote3"):
  				iVar1 = 620000;
  				if (bVar0)
  				{
  					iVar1 = (Global_262145.f_29026 + func_274(iParam1));
  				}
  				break;
  			
  			case joaat("yosemite3"):
  				iVar1 = 700000;
  				if (bVar0)
  				{
  					iVar1 = (Global_262145.f_23683 + func_274(iParam1));
  				}
  				break;
  			
  			case joaat("gauntlet5"):
  				iVar1 = 815000;
  				if (bVar0)
  				{
  					iVar1 = (Global_262145.f_26539 + func_274(iParam1));
  				}
  				break;
  			
  			case joaat("landstalker2"):
  				iVar1 = 1220000;
  				if (bVar0)
  				{
  					if (Global_262145.f_29008 >= 0)
  					{
  						iVar1 = Global_262145.f_29008;
  					}
  				}
  				break;
  			
  			case joaat("glendale2"):
  				iVar1 = 520000;
  				if (bVar0)
  				{
  					iVar1 = (Global_262145.f_7903 + func_274(iParam1));
  				}
  				break;
  			
  			case joaat("club"):
  				iVar1 = 1280000;
  				if (bVar0)
  				{
  					if (Global_262145.f_29010 >= 0)
  					{
  						iVar1 = Global_262145.f_29010;
  					}
  				}
  				break;
  			
  			case joaat("dukes3"):
  				iVar1 = 378000;
  				if (bVar0)
  				{
  					if (Global_262145.f_29004 >= 0)
  					{
  						iVar1 = Global_262145.f_29004;
  					}
  				}
  				break;
  			
  			case joaat("youga3"):
  				iVar1 = 1288000;
  				if (bVar0)
  				{
  					iVar1 = (Global_262145.f_18794 + func_274(iParam1));
  				}
  				break;
  			
  			case joaat("manana2"):
  				iVar1 = 925000;
  				if (bVar0)
  				{
  					iVar1 = (Global_262145.f_29025 + func_274(iParam1));
  				}
  				break;
  			
  			case joaat("penumbra2"):
  				iVar1 = 1380000;
  				if (bVar0)
  				{
  					if (Global_262145.f_29011 >= 0)
  					{
  						iVar1 = Global_262145.f_29011;
  					}
  				}
  				break;
  			
  			case joaat("seminole2"):
  				iVar1 = 678000;
  				if (bVar0)
  				{
  					if (Global_262145.f_29006 >= 0)
  					{
  						iVar1 = Global_262145.f_29006;
  					}
  				}
  				break;
  			
  			case joaat("manchez2"):
  				iVar1 = 225000;
  				if (bVar0)
  				{
  					if (Global_262145.f_30436 >= 0)
  					{
  						iVar1 = Global_262145.f_30436;
  					}
  				}
  				break;
  			
  			case joaat("verus"):
  				iVar1 = 192000;
  				if (bVar0)
  				{
  					if (Global_262145.f_30437 >= 0)
  					{
  						iVar1 = Global_262145.f_30437;
  					}
  				}
  				break;
  			
  			case joaat("veto"):
  				iVar1 = 895000;
  				if (bVar0)
  				{
  					if (Global_262145.f_30442 >= 0)
  					{
  						iVar1 = Global_262145.f_30442;
  					}
  				}
  				break;
  			
  			case joaat("veto2"):
  				iVar1 = 995000;
  				if (bVar0)
  				{
  					if (Global_262145.f_30443 >= 0)
  					{
  						iVar1 = Global_262145.f_30443;
  					}
  				}
  				break;
  			
  			case joaat("slamtruck"):
  				iVar1 = 1310000;
  				if (bVar0)
  				{
  					if (Global_262145.f_30441 >= 0)
  					{
  						iVar1 = Global_262145.f_30441;
  					}
  				}
  				break;
  			
  			case joaat("toreador"):
  				iVar1 = 3660000;
  				if (bVar0)
  				{
  					if (Global_262145.f_30427 >= 0)
  					{
  						iVar1 = Global_262145.f_30427;
  					}
  				}
  				break;
  			
  			case joaat("dinghy5"):
  				iVar1 = 1850000;
  				if (bVar0)
  				{
  					if (Global_262145.f_30432 >= 0)
  					{
  						iVar1 = Global_262145.f_30432;
  					}
  				}
  				break;
  			
  			case joaat("squaddie"):
  				iVar1 = 1130000;
  				if (bVar0)
  				{
  					if (Global_262145.f_30435 >= 0)
  					{
  						iVar1 = Global_262145.f_30435;
  					}
  				}
  				break;
  			
  			case joaat("winky"):
  				iVar1 = 1100000;
  				if (bVar0 && Global_262145.f_30433 >= 0)
  				{
  					iVar1 = Global_262145.f_30433;
  				}
  				if (bParam2)
  				{
  					iVar2 = iVar1;
  					iVar1 = 825000;
  					if (bVar0 && Global_262145.f_30448 >= 0)
  					{
  						iVar1 = Global_262145.f_30448;
  					}
  				}
  				break;
  			
  			case joaat("annihilator2"):
  				iVar1 = 3870000;
  				if (bVar0 && Global_262145.f_30428 >= 0)
  				{
  					iVar1 = Global_262145.f_30428;
  				}
  				if (bParam2)
  				{
  					iVar2 = iVar1;
  					iVar1 = 2902500;
  					if (bVar0 && Global_262145.f_30444 >= 0)
  					{
  						iVar1 = Global_262145.f_30444;
  					}
  				}
  				break;
  			
  			case joaat("alkonost"):
  				iVar1 = 4350000;
  				if (bVar0 && Global_262145.f_30429 >= 0)
  				{
  					iVar1 = Global_262145.f_30429;
  				}
  				if (bParam2)
  				{
  					iVar2 = iVar1;
  					iVar1 = 3262500;
  					if (bVar0 && Global_262145.f_30445 >= 0)
  					{
  						iVar1 = Global_262145.f_30445;
  					}
  				}
  				break;
  			
  			case joaat("brioso2"):
  				iVar1 = 610000;
  				if (bVar0 && Global_262145.f_30439 >= 0)
  				{
  					iVar1 = Global_262145.f_30439;
  				}
  				if (bParam2)
  				{
  					iVar2 = iVar1;
  					iVar1 = 457500;
  					if (bVar0 && Global_262145.f_30451 >= 0)
  					{
  						iVar1 = Global_262145.f_30451;
  					}
  				}
  				break;
  			
  			case joaat("weevil"):
  				iVar1 = 870000;
  				if (bVar0 && Global_262145.f_30438 >= 0)
  				{
  					iVar1 = Global_262145.f_30438;
  				}
  				if (bParam2)
  				{
  					iVar2 = iVar1;
  					iVar1 = 652500;
  					if (bVar0 && Global_262145.f_30450 >= 0)
  					{
  						iVar1 = Global_262145.f_30450;
  					}
  				}
  				break;
  			
  			case joaat("italirsx"):
  				iVar1 = 3465000;
  				if (bVar0 && Global_262145.f_30440 >= 0)
  				{
  					iVar1 = Global_262145.f_30440;
  				}
  				if (bParam2)
  				{
  					iVar2 = iVar1;
  					iVar1 = 2598750;
  					if (bVar0 && Global_262145.f_30452 >= 0)
  					{
  						iVar1 = Global_262145.f_30452;
  					}
  				}
  				break;
  			
  			case joaat("longfin"):
  				iVar1 = 2125000;
  				if (bVar0 && Global_262145.f_30431 >= 0)
  				{
  					iVar1 = Global_262145.f_30431;
  				}
  				if (bParam2)
  				{
  					iVar2 = iVar1;
  					iVar1 = 1593750;
  					if (bVar0 && Global_262145.f_30447 >= 0)
  					{
  						iVar1 = Global_262145.f_30447;
  					}
  				}
  				break;
  			
  			case joaat("vetir"):
  				iVar1 = 1630000;
  				if (bVar0 && Global_262145.f_30434 >= 0)
  				{
  					iVar1 = Global_262145.f_30434;
  				}
  				if (bParam2)
  				{
  					iVar2 = iVar1;
  					iVar1 = 1222500;
  					if (bVar0 && Global_262145.f_30449 >= 0)
  					{
  						iVar1 = Global_262145.f_30449;
  					}
  				}
  				break;
  			
  			case joaat("patrolboat"):
  				iVar1 = 2955000;
  				if (bVar0 && Global_262145.f_30430 >= 0)
  				{
  					iVar1 = Global_262145.f_30430;
  				}
  				if (bParam2)
  				{
  					iVar2 = iVar1;
  					iVar1 = 2216250;
  					if (bVar0 && Global_262145.f_30446 >= 0)
  					{
  						iVar1 = Global_262145.f_30446;
  					}
  				}
  				break;
  			
  			case joaat("kosatka"):
  				if (!bParam2)
  				{
  					iVar1 = 2200000;
  					if (bVar0)
  					{
  						if (Global_262145.f_30255 >= 0)
  						{
  							iVar1 = Global_262145.f_30255;
  						}
  					}
  				}
  				else
  				{
  					iVar1 = 2200000;
  					if (bVar0)
  					{
  						if (Global_262145.f_30125 >= 0)
  						{
  							iVar1 = Global_262145.f_30125;
  						}
  					}
  				}
  				break;
  			
  			case joaat("calico"):
  				iVar1 = 1995000;
  				if (bVar0 && Global_262145.f_30843 >= 0)
  				{
  					iVar1 = Global_262145.f_30843;
  				}
  				if (bParam2)
  				{
  					iVar2 = iVar1;
  					iVar1 = 1496250;
  					if (bVar0 && Global_262145.f_30860 >= 0)
  					{
  						iVar1 = Global_262145.f_30860;
  					}
  				}
  				break;
  			
  			case joaat("comet6"):
  				iVar1 = 1878000;
  				if (bVar0 && Global_262145.f_30845 >= 0)
  				{
  					iVar1 = Global_262145.f_30845;
  				}
  				if (bParam2)
  				{
  					iVar2 = iVar1;
  					iVar1 = 1408500;
  					if (bVar0 && Global_262145.f_30862 >= 0)
  					{
  						iVar1 = Global_262145.f_30862;
  					}
  				}
  				break;
  			
  			case joaat("cypher"):
  				iVar1 = 1550000;
  				if (bVar0 && Global_262145.f_30856 >= 0)
  				{
  					iVar1 = Global_262145.f_30856;
  				}
  				if (bParam2)
  				{
  					iVar2 = iVar1;
  					iVar1 = 1162500;
  					if (bVar0 && Global_262145.f_30873 >= 0)
  					{
  						iVar1 = Global_262145.f_30873;
  					}
  				}
  				break;
  			
  			case joaat("dominator7"):
  				iVar1 = 1775000;
  				if (bVar0 && Global_262145.f_30858 >= 0)
  				{
  					iVar1 = Global_262145.f_30858;
  				}
  				if (bParam2)
  				{
  					iVar2 = iVar1;
  					iVar1 = 1331250;
  					if (bVar0 && Global_262145.f_30875 >= 0)
  					{
  						iVar1 = Global_262145.f_30875;
  					}
  				}
  				break;
  			
  			case joaat("jester4"):
  				iVar1 = 1970000;
  				if (bVar0 && Global_262145.f_30847 >= 0)
  				{
  					iVar1 = Global_262145.f_30847;
  				}
  				if (bParam2)
  				{
  					iVar2 = iVar1;
  					iVar1 = 1477500;
  					if (bVar0 && Global_262145.f_30864 >= 0)
  					{
  						iVar1 = Global_262145.f_30864;
  					}
  				}
  				break;
  			
  			case joaat("remus"):
  				iVar1 = 1370000;
  				if (bVar0 && Global_262145.f_30844 >= 0)
  				{
  					iVar1 = Global_262145.f_30844;
  				}
  				if (bParam2)
  				{
  					iVar2 = iVar1;
  					iVar1 = 1027500;
  					if (bVar0 && Global_262145.f_30861 >= 0)
  					{
  						iVar1 = Global_262145.f_30861;
  					}
  				}
  				break;
  			
  			case joaat("vectre"):
  				iVar1 = 1785000;
  				if (bVar0 && Global_262145.f_30849 >= 0)
  				{
  					iVar1 = Global_262145.f_30849;
  				}
  				if (bParam2)
  				{
  					iVar2 = iVar1;
  					iVar1 = 1338750;
  					if (bVar0 && Global_262145.f_30866 >= 0)
  					{
  						iVar1 = Global_262145.f_30866;
  					}
  				}
  				break;
  			
  			case joaat("zr350"):
  				iVar1 = 1615000;
  				if (bVar0 && Global_262145.f_30842 >= 0)
  				{
  					iVar1 = Global_262145.f_30842;
  				}
  				if (bParam2)
  				{
  					iVar2 = iVar1;
  					iVar1 = 1211250;
  					if (bVar0 && Global_262145.f_30859 >= 0)
  					{
  						iVar1 = Global_262145.f_30859;
  					}
  				}
  				break;
  			
  			case joaat("warrener2"):
  				iVar1 = 1260000;
  				if (bVar0 && Global_262145.f_30850 >= 0)
  				{
  					iVar1 = Global_262145.f_30850;
  				}
  				if (bParam2)
  				{
  					iVar2 = iVar1;
  					iVar1 = 945000;
  					if (bVar0 && Global_262145.f_30867 >= 0)
  					{
  						iVar1 = Global_262145.f_30867;
  					}
  				}
  				break;
  			
  			case joaat("rt3000"):
  				iVar1 = 1715000;
  				if (bVar0 && Global_262145.f_30852 >= 0)
  				{
  					iVar1 = Global_262145.f_30852;
  				}
  				if (bParam2)
  				{
  					iVar2 = iVar1;
  					iVar1 = 1286250;
  					if (bVar0 && Global_262145.f_30869 >= 0)
  					{
  						iVar1 = Global_262145.f_30869;
  					}
  				}
  				break;
  			
  			case joaat("futo2"):
  				iVar1 = 1590000;
  				if (bVar0 && Global_262145.f_30853 >= 0)
  				{
  					iVar1 = Global_262145.f_30853;
  				}
  				if (bParam2)
  				{
  					iVar2 = iVar1;
  					iVar1 = 1192500;
  					if (bVar0 && Global_262145.f_30870 >= 0)
  					{
  						iVar1 = Global_262145.f_30870;
  					}
  				}
  				break;
  			
  			case joaat("tailgater2"):
  				iVar1 = 1495000;
  				if (bVar0 && Global_262145.f_30855 >= 0)
  				{
  					iVar1 = Global_262145.f_30855;
  				}
  				if (bParam2)
  				{
  					iVar2 = iVar1;
  					iVar1 = 1121250;
  					if (bVar0 && Global_262145.f_30872 >= 0)
  					{
  						iVar1 = Global_262145.f_30872;
  					}
  				}
  				break;
  			
  			case joaat("sultan3"):
  				iVar1 = 1789000;
  				if (bVar0 && Global_262145.f_30851 >= 0)
  				{
  					iVar1 = Global_262145.f_30851;
  				}
  				if (bParam2)
  				{
  					iVar2 = iVar1;
  					iVar1 = 1341750;
  					if (bVar0 && Global_262145.f_30868 >= 0)
  					{
  						iVar1 = Global_262145.f_30868;
  					}
  				}
  				break;
  			
  			case joaat("dominator8"):
  				iVar1 = 1220000;
  				if (bVar0 && Global_262145.f_30857 >= 0)
  				{
  					iVar1 = Global_262145.f_30857;
  				}
  				if (bParam2)
  				{
  					iVar2 = iVar1;
  					iVar1 = 915000;
  					if (bVar0 && Global_262145.f_30874 >= 0)
  					{
  						iVar1 = Global_262145.f_30874;
  					}
  				}
  				break;
  			
  			case joaat("euros"):
  				iVar1 = 1800000;
  				if (bVar0 && Global_262145.f_30846 >= 0)
  				{
  					iVar1 = Global_262145.f_30846;
  				}
  				if (bParam2)
  				{
  					iVar2 = iVar1;
  					iVar1 = 1350000;
  					if (bVar0 && Global_262145.f_30863 >= 0)
  					{
  						iVar1 = Global_262145.f_30863;
  					}
  				}
  				break;
  			
  			case joaat("growler"):
  				iVar1 = 1627000;
  				if (bVar0 && Global_262145.f_30854 >= 0)
  				{
  					iVar1 = Global_262145.f_30854;
  				}
  				if (bParam2)
  				{
  					iVar2 = iVar1;
  					iVar1 = 1220250;
  					if (bVar0 && Global_262145.f_30871 >= 0)
  					{
  						iVar1 = Global_262145.f_30871;
  					}
  				}
  				break;
  			
  			case joaat("previon"):
  				iVar1 = 1490000;
  				if (bVar0 && Global_262145.f_30848 >= 0)
  				{
  					iVar1 = Global_262145.f_30848;
  				}
  				if (bParam2)
  				{
  					iVar2 = iVar1;
  					iVar1 = 1117500;
  					if (bVar0 && Global_262145.f_30865 >= 0)
  					{
  						iVar1 = Global_262145.f_30865;
  					}
  				}
  				break;
  			
  			case joaat("astron"):
  				iVar1 = 1580000;
  				if (bVar0)
  				{
  					if (Global_262145.f_32086 >= 0)
  					{
  						iVar1 = Global_262145.f_32086;
  					}
  				}
  				break;
  			
  			case joaat("baller7"):
  				iVar1 = 890000;
  				if (bVar0 && Global_262145.f_32091 >= 0)
  				{
  					iVar1 = Global_262145.f_32091;
  				}
  				if (bParam2)
  				{
  					iVar2 = iVar1;
  					iVar1 = 667500;
  					if (bVar0 && Global_262145.f_32102 >= 0)
  					{
  						iVar1 = Global_262145.f_32102;
  					}
  				}
  				break;
  			
  			case joaat("buffalo4"):
  				iVar1 = 2150000;
  				if (bVar0 && Global_262145.f_32084 >= 0)
  				{
  					iVar1 = Global_262145.f_32084;
  				}
  				if (bParam2)
  				{
  					iVar2 = iVar1;
  					iVar1 = 1612500;
  					if (bVar0 && Global_262145.f_32099 >= 0)
  					{
  						iVar1 = Global_262145.f_32099;
  					}
  				}
  				break;
  			
  			case joaat("comet7"):
  				iVar1 = 1797000;
  				if (bVar0)
  				{
  					if (Global_262145.f_32093 >= 0)
  					{
  						iVar1 = Global_262145.f_32093;
  					}
  				}
  				break;
  			
  			case joaat("cinquemila"):
  				iVar1 = 1740000;
  				if (bVar0)
  				{
  					if (Global_262145.f_32092 >= 0)
  					{
  						iVar1 = Global_262145.f_32092;
  					}
  				}
  				break;
  			
  			case joaat("deity"):
  				iVar1 = 1845000;
  				if (bVar0 && Global_262145.f_32085 >= 0)
  				{
  					iVar1 = Global_262145.f_32085;
  				}
  				if (bParam2)
  				{
  					iVar2 = iVar1;
  					iVar1 = 1383750;
  					if (bVar0 && Global_262145.f_32100 >= 0)
  					{
  						iVar1 = Global_262145.f_32100;
  					}
  				}
  				break;
  			
  			case joaat("granger2"):
  				iVar1 = 1380000;
  				if (bVar0 && Global_262145.f_32088 >= 0)
  				{
  					iVar1 = Global_262145.f_32088;
  				}
  				if (bParam2)
  				{
  					iVar2 = iVar1;
  					iVar1 = 1035000;
  					if (bVar0 && Global_262145.f_32103 >= 0)
  					{
  						iVar1 = Global_262145.f_32103;
  					}
  				}
  				break;
  			
  			case joaat("ignus"):
  				iVar1 = 2765000;
  				if (bVar0)
  				{
  					if (Global_262145.f_32087 >= 0)
  					{
  						iVar1 = Global_262145.f_32087;
  					}
  				}
  				break;
  			
  			case joaat("jubilee"):
  				iVar1 = 1650000;
  				if (bVar0 && Global_262145.f_32090 >= 0)
  				{
  					iVar1 = Global_262145.f_32090;
  				}
  				if (bParam2)
  				{
  					iVar2 = iVar1;
  					iVar1 = 1237500;
  					if (bVar0 && Global_262145.f_32101 >= 0)
  					{
  						iVar1 = Global_262145.f_32101;
  					}
  				}
  				break;
  			
  			case joaat("patriot3"):
  				iVar1 = 1710000;
  				if (bVar0 && Global_262145.f_32089 >= 0)
  				{
  					iVar1 = Global_262145.f_32089;
  				}
  				if (bParam2)
  				{
  					iVar2 = iVar1;
  					iVar1 = 1282500;
  					if (bVar0 && Global_262145.f_32104 >= 0)
  					{
  						iVar1 = Global_262145.f_32104;
  					}
  				}
  				break;
  			
  			case joaat("champion"):
  				iVar1 = 2995000;
  				if (bVar0 && Global_262145.f_32083 >= 0)
  				{
  					iVar1 = Global_262145.f_32083;
  				}
  				if (bParam2)
  				{
  					iVar2 = iVar1;
  					iVar1 = 2246250;
  					if (bVar0 && Global_262145.f_32098 >= 0)
  					{
  						iVar1 = Global_262145.f_32098;
  					}
  				}
  				break;
  			
  			case joaat("reever"):
  				iVar1 = 1900000;
  				if (bVar0)
  				{
  					if (Global_262145.f_32095 >= 0)
  					{
  						iVar1 = Global_262145.f_32095;
  					}
  				}
  				break;
  			
  			case joaat("shinobi"):
  				iVar1 = 2480500;
  				if (bVar0)
  				{
  					if (Global_262145.f_32097 >= 0)
  					{
  						iVar1 = Global_262145.f_32097;
  					}
  				}
  				break;
  			
  			case joaat("zeno"):
  				iVar1 = 2820000;
  				if (bVar0)
  				{
  					if (Global_262145.f_32094 >= 0)
  					{
  						iVar1 = Global_262145.f_32094;
  					}
  				}
  				break;
  		}
  		if (iParam1 == joaat("iwagen"))
  		{
  			iVar1 = 1720000;
  			if (bVar0)
  			{
  				if (Global_262145.f_32096 >= 0)
  				{
  					iVar1 = Global_262145.f_32096;
  				}
  			}
  		}
  	}
  	switch (iParam1)
  	{
  		case joaat("paradise"):
  			iVar1 = 50000;
  			if (bVar0 || iParam3 == 1)
  			{
  				iVar1 = 25000;
  				if (Global_262145.f_7424 >= 0 && bVar0)
  				{
  					iVar1 = Global_262145.f_7424;
  				}
  			}
  			break;
  		
  		case joaat("bifta"):
  			iVar1 = 75000;
  			if (bVar0)
  			{
  				if (Global_262145.f_7422 >= 0)
  				{
  					iVar1 = Global_262145.f_7422;
  				}
  			}
  			break;
  		
  		case joaat("kalahari"):
  			iVar1 = 40000;
  			if (bVar0 || iParam3 == 1)
  			{
  				iVar1 = 40000;
  				if (Global_262145.f_7423 >= 0 && bVar0)
  				{
  					iVar1 = Global_262145.f_7423;
  				}
  			}
  			break;
  		
  		case joaat("speeder"):
  			iVar1 = 325000;
  			if (bVar0)
  			{
  				if (Global_262145.f_7425 >= 0)
  				{
  					iVar1 = Global_262145.f_7425;
  				}
  			}
  			break;
  		
  		case joaat("btype"):
  			iVar1 = 1150000;
  			if (bVar0 || iParam3 == 1)
  			{
  				iVar1 = 750000;
  				if (Global_262145.f_6852 >= 0 && bVar0)
  				{
  					iVar1 = Global_262145.f_6852;
  				}
  			}
  			break;
  		
  		case joaat("jester"):
  			iVar1 = 240000;
  			if (bVar0)
  			{
  				if (Global_262145.f_6824 >= 0)
  				{
  					iVar1 = Global_262145.f_6824;
  				}
  			}
  			break;
  		
  		case joaat("turismor"):
  			if (!bParam2)
  			{
  				iVar1 = 500000;
  				if (bVar0)
  				{
  					if (Global_262145.f_6826 >= 0)
  					{
  						iVar1 = Global_262145.f_6826;
  					}
  				}
  			}
  			else
  			{
  				iVar1 = 0;
  			}
  			break;
  		
  		case joaat("alpha"):
  			iVar1 = 150000;
  			if (bVar0)
  			{
  				if (Global_262145.f_6822 >= 0)
  				{
  					iVar1 = Global_262145.f_6822;
  				}
  			}
  			break;
  		
  		case joaat("vestra"):
  			iVar1 = 950000;
  			if (bVar0)
  			{
  				if (Global_262145.f_6877 >= 0)
  				{
  					iVar1 = Global_262145.f_6877;
  				}
  			}
  			break;
  		
  		case joaat("massacro"):
  			iVar1 = 275000;
  			if (bVar0)
  			{
  				if (Global_262145.f_6825 >= 0)
  				{
  					iVar1 = Global_262145.f_6825;
  				}
  			}
  			break;
  		
  		case joaat("zentorno"):
  			iVar1 = 725000;
  			if (bVar0)
  			{
  				if (Global_262145.f_6827 >= 0)
  				{
  					iVar1 = Global_262145.f_6827;
  				}
  			}
  			break;
  		
  		case joaat("huntley"):
  			if (!bParam2)
  			{
  				iVar1 = 195000;
  				if (bVar0)
  				{
  					if (Global_262145.f_6823 >= 0)
  					{
  						iVar1 = Global_262145.f_6823;
  					}
  				}
  			}
  			else
  			{
  				iVar1 = 0;
  			}
  			break;
  		
  		case joaat("thrust"):
  			iVar1 = 75000;
  			if (bVar0)
  			{
  				if (Global_262145.f_7426 >= 0)
  				{
  					iVar1 = Global_262145.f_7426;
  				}
  			}
  			break;
  		
  		case joaat("blade"):
  			iVar1 = 160000;
  			if (bVar0)
  			{
  				if (Global_262145.f_7902 >= 0)
  				{
  					iVar1 = Global_262145.f_7902;
  				}
  			}
  			break;
  		
  		case joaat("warrener"):
  			iVar1 = 125000;
  			if (bVar0 || iParam3 == 1)
  			{
  				iVar1 = 120000;
  				if (Global_262145.f_7905 >= 0 && bVar0)
  				{
  					iVar1 = Global_262145.f_7905;
  				}
  			}
  			break;
  		
  		case joaat("glendale"):
  			iVar1 = 200000;
  			if (bVar0 && Global_262145.f_7903 >= 0)
  			{
  				iVar1 = Global_262145.f_7903;
  			}
  			if (bParam2)
  			{
  				iVar2 = iVar1;
  				iVar1 = SYSTEM::ROUND((SYSTEM::TO_FLOAT(200000) * 0.75f));
  				if (bVar0 && Global_262145.f_25586 >= 0)
  				{
  					iVar1 = Global_262145.f_25586;
  				}
  			}
  			break;
  		
  		case joaat("rhapsody"):
  			iVar1 = 100000;
  			if (bVar0 || iParam3 == 1)
  			{
  				iVar1 = 140000;
  				if (Global_262145.f_7904 >= 0 && bVar0)
  				{
  					iVar1 = Global_262145.f_7904;
  				}
  			}
  			break;
  		
  		case joaat("panto"):
  			iVar1 = 85000;
  			if (bVar0)
  			{
  				if (Global_262145.f_7906 >= 0)
  				{
  					iVar1 = Global_262145.f_7906;
  				}
  			}
  			break;
  		
  		case joaat("dubsta3"):
  			iVar1 = 249000;
  			if (bVar0)
  			{
  				if (Global_262145.f_7907 >= 0)
  				{
  					iVar1 = Global_262145.f_7907;
  				}
  			}
  			break;
  		
  		case joaat("pigalle"):
  			iVar1 = 400000;
  			if (bVar0)
  			{
  				if (Global_262145.f_7901 >= 0)
  				{
  					iVar1 = Global_262145.f_7901;
  				}
  			}
  			break;
  		
  		case joaat("besra"):
  			iVar1 = 658000;
  			if (bVar0 || iParam3 == 1)
  			{
  				iVar1 = 1150000;
  				if (Global_262145.f_8328 >= 0 && bVar0)
  				{
  					iVar1 = Global_262145.f_8328;
  				}
  			}
  			break;
  		
  		case joaat("miljet"):
  			iVar1 = 1750000;
  			if (bVar0 || iParam3 == 1)
  			{
  				iVar1 = 1700000;
  				if (Global_262145.f_8329 >= 0 && bVar0)
  				{
  					iVar1 = Global_262145.f_8329;
  				}
  			}
  			break;
  		
  		case joaat("swift"):
  			if (!bParam2)
  			{
  				iVar1 = 1500000;
  				if (bVar0)
  				{
  					if (Global_262145.f_8330 >= 0)
  					{
  						iVar1 = Global_262145.f_8330;
  					}
  				}
  			}
  			else
  			{
  				iVar1 = 1600000;
  				if (bVar0)
  				{
  					if (Global_262145.f_8331 >= 0)
  					{
  						iVar1 = Global_262145.f_8331;
  					}
  				}
  			}
  			break;
  		
  		case joaat("coquette2"):
  			if (bParam2)
  			{
  				iVar1 = 350000;
  				if (bVar0 || iParam3 == 1)
  				{
  					iVar1 = 665000;
  					if (Global_262145.f_8326 >= 0 && bVar0)
  					{
  						iVar1 = Global_262145.f_8326;
  					}
  				}
  			}
  			else
  			{
  				iVar1 = 395000;
  				if (bVar0 || iParam3 == 1)
  				{
  					iVar1 = 665000;
  					if (Global_262145.f_8327 >= 0 && bVar0)
  					{
  						iVar1 = Global_262145.f_8327;
  					}
  				}
  			}
  			break;
  		
  		case joaat("sovereign"):
  			iVar1 = 120000;
  			if (bVar0)
  			{
  				if (Global_262145.f_8071 >= 0)
  				{
  					iVar1 = Global_262145.f_8071;
  				}
  			}
  			break;
  		
  		case joaat("monster"):
  			iVar1 = 742000;
  			if (bVar0 || iParam3 == 1)
  			{
  				iVar1 = 742014;
  				if (Global_262145.f_8070 >= 0 && bVar0)
  				{
  					iVar1 = Global_262145.f_8070;
  				}
  			}
  			break;
  		
  		case joaat("innovation"):
  			iVar1 = 92500;
  			if (bVar0)
  			{
  				if (Global_262145.f_8644 >= 0)
  				{
  					iVar1 = Global_262145.f_8644;
  				}
  			}
  			break;
  		
  		case joaat("hakuchou"):
  			iVar1 = 82000;
  			if (bVar0)
  			{
  				if (Global_262145.f_8645 >= 0)
  				{
  					iVar1 = Global_262145.f_8645;
  				}
  			}
  			break;
  		
  		case joaat("furoregt"):
  			iVar1 = 448000;
  			if (bVar0)
  			{
  				if (Global_262145.f_8646 >= 0)
  				{
  					iVar1 = Global_262145.f_8646;
  				}
  			}
  			break;
  		
  		case joaat("boxville4"):
  			if (!bParam2)
  			{
  				iVar1 = 45000;
  				if (bVar0)
  				{
  					if (Global_262145.f_8877 >= 0)
  					{
  						iVar1 = Global_262145.f_8877;
  					}
  				}
  			}
  			else
  			{
  				iVar1 = 59850;
  				if (bVar0)
  				{
  					if (Global_262145.f_19977 >= 0)
  					{
  						iVar1 = Global_262145.f_19977;
  					}
  				}
  			}
  			break;
  		
  		case joaat("casco"):
  			if (!bParam2)
  			{
  				iVar1 = 680000;
  				if (bVar0)
  				{
  					if (Global_262145.f_8878 >= 0)
  					{
  						iVar1 = Global_262145.f_8878;
  					}
  				}
  			}
  			else
  			{
  				iVar1 = 904400;
  				if (bVar0)
  				{
  					if (Global_262145.f_19978 >= 0)
  					{
  						iVar1 = Global_262145.f_19978;
  					}
  				}
  			}
  			break;
  		
  		case joaat("dinghy3"):
  			if (!bParam2)
  			{
  				iVar1 = 125000;
  				if (bVar0)
  				{
  					if (Global_262145.f_8879 >= 0)
  					{
  						iVar1 = Global_262145.f_8879;
  					}
  				}
  			}
  			else
  			{
  				iVar1 = 166250;
  				if (bVar0)
  				{
  					if (Global_262145.f_19979 >= 0)
  					{
  						iVar1 = Global_262145.f_19979;
  					}
  				}
  			}
  			break;
  		
  		case joaat("enduro"):
  			iVar1 = 48000;
  			if (bVar0)
  			{
  				if (Global_262145.f_8880 >= 0)
  				{
  					iVar1 = Global_262145.f_8880;
  				}
  			}
  			break;
  		
  		case joaat("gburrito2"):
  			if (!bParam2)
  			{
  				iVar1 = 65000;
  				if (bVar0)
  				{
  					if (Global_262145.f_8881 >= 0)
  					{
  						iVar1 = Global_262145.f_8881;
  					}
  				}
  			}
  			else
  			{
  				iVar1 = 86450;
  				if (bVar0)
  				{
  					if (Global_262145.f_19980 >= 0)
  					{
  						iVar1 = Global_262145.f_19980;
  					}
  				}
  			}
  			break;
  		
  		case joaat("guardian"):
  			iVar1 = 375000;
  			if (bVar0)
  			{
  				if (Global_262145.f_8882 >= 0)
  				{
  					iVar1 = Global_262145.f_8882;
  				}
  			}
  			break;
  		
  		case joaat("hydra"):
  			if (!bParam2)
  			{
  				iVar1 = 3000000;
  				if (bVar0)
  				{
  					if (Global_262145.f_8883 >= 0)
  					{
  						iVar1 = Global_262145.f_8883;
  					}
  				}
  			}
  			else
  			{
  				iVar1 = 3990000;
  				if (bVar0)
  				{
  					if (Global_262145.f_19981 >= 0)
  					{
  						iVar1 = Global_262145.f_19981;
  					}
  				}
  			}
  			break;
  		
  		case joaat("insurgent"):
  			if (!bParam2)
  			{
  				iVar1 = 1350000;
  				if (bVar0)
  				{
  					if (Global_262145.f_8884 >= 0)
  					{
  						iVar1 = Global_262145.f_8884;
  					}
  				}
  			}
  			else
  			{
  				iVar1 = 1795500;
  				if (bVar0)
  				{
  					if (Global_262145.f_19982 >= 0)
  					{
  						iVar1 = Global_262145.f_19982;
  					}
  				}
  			}
  			break;
  		
  		case joaat("insurgent2"):
  			if (!bParam2)
  			{
  				iVar1 = 675000;
  				if (bVar0)
  				{
  					if (Global_262145.f_8885 >= 0)
  					{
  						iVar1 = Global_262145.f_8885;
  					}
  				}
  			}
  			else
  			{
  				iVar1 = 897750;
  				if (bVar0)
  				{
  					if (Global_262145.f_19983 >= 0)
  					{
  						iVar1 = Global_262145.f_19983;
  					}
  				}
  			}
  			break;
  		
  		case joaat("kuruma"):
  			if (!bParam2)
  			{
  				iVar1 = 95000;
  				if (bVar0)
  				{
  					if (Global_262145.f_8886 >= 0)
  					{
  						iVar1 = Global_262145.f_8886;
  					}
  				}
  			}
  			else
  			{
  				iVar1 = 126350;
  				if (bVar0)
  				{
  					if (Global_262145.f_19984 >= 0)
  					{
  						iVar1 = Global_262145.f_19984;
  					}
  				}
  			}
  			break;
  		
  		case joaat("kuruma2"):
  			if (!bParam2)
  			{
  				iVar1 = 525000;
  				if (bVar0)
  				{
  					if (Global_262145.f_8887 >= 0)
  					{
  						iVar1 = Global_262145.f_8887;
  					}
  				}
  			}
  			else
  			{
  				iVar1 = 698250;
  				if (bVar0)
  				{
  					if (Global_262145.f_19985 >= 0)
  					{
  						iVar1 = Global_262145.f_19985;
  					}
  				}
  			}
  			break;
  		
  		case joaat("lectro"):
  			if (!bParam2)
  			{
  				iVar1 = 750000;
  				if (bVar0)
  				{
  					if (Global_262145.f_8888 >= 0)
  					{
  						iVar1 = Global_262145.f_8888;
  					}
  				}
  			}
  			else
  			{
  				iVar1 = 997500;
  				if (bVar0)
  				{
  					if (Global_262145.f_19986 >= 0)
  					{
  						iVar1 = Global_262145.f_19986;
  					}
  				}
  			}
  			break;
  		
  		case joaat("pbus"):
  			if (!bParam2)
  			{
  				iVar1 = 550000;
  				if (bVar0)
  				{
  					if (Global_262145.f_8894 >= 0)
  					{
  						iVar1 = Global_262145.f_8894;
  					}
  				}
  			}
  			else
  			{
  				iVar1 = 731500;
  				if (bVar0)
  				{
  					if (Global_262145.f_19992 >= 0)
  					{
  						iVar1 = Global_262145.f_19992;
  					}
  				}
  			}
  			break;
  		
  		case joaat("mule3"):
  			if (!bParam2)
  			{
  				iVar1 = 32500;
  				if (bVar0)
  				{
  					if (Global_262145.f_8889 >= 0)
  					{
  						iVar1 = Global_262145.f_8889;
  					}
  				}
  			}
  			else
  			{
  				iVar1 = 43225;
  				if (bVar0)
  				{
  					if (Global_262145.f_19987 >= 0)
  					{
  						iVar1 = Global_262145.f_19987;
  					}
  				}
  			}
  			break;
  		
  		case joaat("savage"):
  			if (!bParam2)
  			{
  				iVar1 = 1950000;
  				if (bVar0)
  				{
  					if (Global_262145.f_8890 >= 0)
  					{
  						iVar1 = Global_262145.f_8890;
  					}
  				}
  			}
  			else
  			{
  				iVar1 = 2593500;
  				if (bVar0)
  				{
  					if (Global_262145.f_19988 >= 0)
  					{
  						iVar1 = Global_262145.f_19988;
  					}
  				}
  			}
  			break;
  		
  		case joaat("valkyrie"):
  			if (!bParam2)
  			{
  				iVar1 = 2850000;
  				if (bVar0)
  				{
  					if (Global_262145.f_8892 >= 0)
  					{
  						iVar1 = Global_262145.f_8892;
  					}
  				}
  			}
  			else
  			{
  				iVar1 = 3790500;
  				if (bVar0)
  				{
  					if (Global_262145.f_19990 >= 0)
  					{
  						iVar1 = Global_262145.f_19990;
  					}
  				}
  			}
  			break;
  		
  		case joaat("technical"):
  			if (!bParam2)
  			{
  				iVar1 = 950000;
  				if (bVar0)
  				{
  					if (Global_262145.f_8891 >= 0)
  					{
  						iVar1 = Global_262145.f_8891;
  					}
  				}
  			}
  			else
  			{
  				iVar1 = 1263500;
  				if (bVar0)
  				{
  					if (Global_262145.f_19989 >= 0)
  					{
  						iVar1 = Global_262145.f_19989;
  					}
  				}
  			}
  			break;
  		
  		case joaat("velum2"):
  			if (!bParam2)
  			{
  				iVar1 = 995000;
  				if (bVar0)
  				{
  					if (Global_262145.f_8893 >= 0)
  					{
  						iVar1 = Global_262145.f_8893;
  					}
  				}
  			}
  			else
  			{
  				iVar1 = 1323350;
  				if (bVar0)
  				{
  					if (Global_262145.f_19991 >= 0)
  					{
  						iVar1 = Global_262145.f_19991;
  					}
  				}
  			}
  			break;
  		
  		case joaat("dodo"):
  			iVar1 = 500000;
  			if (bVar0)
  			{
  				if (!bParam2)
  				{
  					if (Global_262145.f_8981 >= 0)
  					{
  						iVar1 = Global_262145.f_8981;
  					}
  				}
  				else
  				{
  					iVar1 = Global_262145.f_19995;
  				}
  			}
  			break;
  		
  		case joaat("marshall"):
  			iVar1 = 250000;
  			if (bVar0 || iParam3 == 1)
  			{
  				if (!bParam2)
  				{
  					iVar1 = 500000;
  					if (Global_262145.f_8983 >= 0 && bVar0)
  					{
  						iVar1 = Global_262145.f_8983;
  					}
  				}
  				else
  				{
  					iVar1 = Global_262145.f_19994;
  				}
  			}
  			break;
  		
  		case joaat("submersible2"):
  			iVar1 = 1325000;
  			if (bVar0)
  			{
  				if (!bParam2)
  				{
  					if (Global_262145.f_8985 >= 0)
  					{
  						iVar1 = Global_262145.f_8985;
  					}
  				}
  				else
  				{
  					iVar1 = Global_262145.f_19996;
  				}
  			}
  			break;
  		
  		case joaat("blista2"):
  			iVar1 = 42000;
  			if (bVar0)
  			{
  				if (!bParam2)
  				{
  					if (Global_262145.f_8980 >= 0)
  					{
  						iVar1 = Global_262145.f_8980;
  					}
  				}
  				else
  				{
  					iVar1 = Global_262145.f_19999;
  				}
  			}
  			break;
  		
  		case joaat("stalion"):
  			iVar1 = 71000;
  			if (bVar0)
  			{
  				if (!bParam2)
  				{
  					if (Global_262145.f_8984 >= 0)
  					{
  						iVar1 = Global_262145.f_8984;
  					}
  				}
  				else
  				{
  					iVar1 = Global_262145.f_19998;
  				}
  			}
  			break;
  		
  		case joaat("dukes"):
  			iVar1 = 62000;
  			if (bVar0)
  			{
  				if (!bParam2)
  				{
  					iVar1 = 62000;
  					if (Global_262145.f_8982 >= 0)
  					{
  						iVar1 = Global_262145.f_8982;
  					}
  				}
  				else
  				{
  					iVar1 = Global_262145.f_19997;
  				}
  			}
  			break;
  		
  		case joaat("dukes2"):
  			iVar1 = 279000;
  			if (bVar0 || iParam3 == 1)
  			{
  				if (!bParam2)
  				{
  					iVar1 = 665000;
  					if (Global_262145.f_19993 >= 0 && bVar0)
  					{
  						iVar1 = Global_262145.f_19993;
  					}
  				}
  				else
  				{
  					iVar1 = Global_262145.f_20000;
  				}
  			}
  			break;
  		
  		case joaat("stalion2"):
  			iVar1 = 277000;
  			if (bVar0)
  			{
  				if (Global_262145.f_17169 >= 0)
  				{
  					iVar1 = Global_262145.f_17169;
  				}
  			}
  			break;
  		
  		case joaat("dominator2"):
  			iVar1 = 315000;
  			if (bVar0 && Global_262145.f_17167 >= 0)
  			{
  				iVar1 = Global_262145.f_17167;
  			}
  			if (bParam2)
  			{
  				iVar2 = iVar1;
  				iVar1 = SYSTEM::ROUND((SYSTEM::TO_FLOAT(315000) * 0.75f));
  			}
  			break;
  		
  		case joaat("gauntlet2"):
  			iVar1 = 230000;
  			if (bVar0)
  			{
  				if (Global_262145.f_17168 >= 0)
  				{
  					iVar1 = Global_262145.f_17168;
  				}
  			}
  			break;
  		
  		case joaat("buffalo3"):
  			iVar1 = 535000;
  			if (bVar0)
  			{
  				if (Global_262145.f_17166 >= 0)
  				{
  					iVar1 = Global_262145.f_17166;
  				}
  			}
  			break;
  		
  		case joaat("slamvan"):
  			iVar1 = 49500;
  			if (bVar0 && Global_262145.f_9197 >= 0)
  			{
  				iVar1 = Global_262145.f_9197;
  			}
  			if (bParam2)
  			{
  				iVar2 = iVar1;
  				iVar1 = SYSTEM::ROUND((SYSTEM::TO_FLOAT(49500) * 0.75f));
  				if (bVar0 && Global_262145.f_25587 >= 0)
  				{
  					iVar1 = Global_262145.f_25587;
  				}
  			}
  			break;
  		
  		case joaat("ratloader2"):
  			iVar1 = 37500;
  			if (bVar0 && Global_262145.f_9196 >= 0)
  			{
  				iVar1 = Global_262145.f_9196;
  			}
  			if (bParam2)
  			{
  				iVar2 = iVar1;
  				iVar1 = SYSTEM::ROUND((SYSTEM::TO_FLOAT(37500) * 0.75f));
  				if (bVar0 && Global_262145.f_25585 >= 0)
  				{
  					iVar1 = Global_262145.f_25585;
  				}
  			}
  			break;
  		
  		case joaat("jester2"):
  			iVar1 = 350000;
  			if (bVar0)
  			{
  				if (Global_262145.f_9194 >= 0)
  				{
  					iVar1 = Global_262145.f_9194;
  				}
  			}
  			break;
  		
  		case joaat("massacro2"):
  			iVar1 = 385000;
  			if (bVar0)
  			{
  				if (Global_262145.f_9195 >= 0)
  				{
  					iVar1 = Global_262145.f_9195;
  				}
  			}
  			break;
  		
  		case joaat("feltzer3"):
  			iVar1 = 975000;
  			if (bVar0)
  			{
  				if (Global_262145.f_10852 >= 0)
  				{
  					iVar1 = Global_262145.f_10852;
  				}
  			}
  			break;
  		
  		case joaat("luxor2"):
  			iVar1 = 10000000;
  			if (bVar0)
  			{
  				if (Global_262145.f_10853 >= 0)
  				{
  					iVar1 = Global_262145.f_10853;
  				}
  			}
  			break;
  		
  		case joaat("osiris"):
  			iVar1 = 1950000;
  			if (bVar0)
  			{
  				if (Global_262145.f_10854 >= 0)
  				{
  					iVar1 = Global_262145.f_10854;
  				}
  			}
  			break;
  		
  		case joaat("swift2"):
  			iVar1 = 5150000;
  			if (bVar0)
  			{
  				if (Global_262145.f_10855 >= 0)
  				{
  					iVar1 = Global_262145.f_10855;
  				}
  			}
  			break;
  		
  		case joaat("virgo"):
  			iVar1 = 195000;
  			if (bVar0)
  			{
  				if (Global_262145.f_10856 >= 0)
  				{
  					iVar1 = Global_262145.f_10856;
  				}
  			}
  			break;
  		
  		case joaat("windsor"):
  			if (!bParam2)
  			{
  				iVar1 = 845000;
  				if (bVar0)
  				{
  					if (Global_262145.f_10857 >= 0)
  					{
  						iVar1 = Global_262145.f_10857;
  					}
  				}
  			}
  			else
  			{
  				iVar1 = 0;
  			}
  			break;
  		
  		case joaat("brawler"):
  			iVar1 = 715000;
  			if (bVar0)
  			{
  				if (Global_262145.f_11149 >= 0)
  				{
  					iVar1 = Global_262145.f_11149;
  				}
  			}
  			break;
  		
  		case joaat("chino"):
  			iVar1 = 225000;
  			if (bVar0)
  			{
  				if (Global_262145.f_11150 >= 0)
  				{
  					iVar1 = Global_262145.f_11150;
  				}
  			}
  			break;
  		
  		case joaat("coquette3"):
  			iVar1 = 695000;
  			if (bVar0)
  			{
  				if (Global_262145.f_11151 >= 0)
  				{
  					iVar1 = Global_262145.f_11151;
  				}
  			}
  			break;
  		
  		case joaat("t20"):
  			iVar1 = 2200000;
  			if (bVar0)
  			{
  				if (Global_262145.f_11152 >= 0)
  				{
  					iVar1 = Global_262145.f_11152;
  				}
  			}
  			break;
  		
  		case joaat("toro"):
  			iVar1 = 1750000;
  			if (bVar0)
  			{
  				if (Global_262145.f_11153 >= 0)
  				{
  					iVar1 = Global_262145.f_11153;
  				}
  			}
  			break;
  		
  		case joaat("vindicator"):
  			iVar1 = 630000;
  			if (bVar0)
  			{
  				if (Global_262145.f_11154 >= 0)
  				{
  					iVar1 = Global_262145.f_11154;
  				}
  			}
  			break;
  		
  		case joaat("chino2"):
  			iVar1 = 225000;
  			iVar1 = (Global_262145.f_12131 + func_274(iParam1));
  			break;
  		
  		case joaat("primo2"):
  			iVar1 = 100000;
  			if (bVar0 && Global_262145.f_12130 >= 0)
  			{
  				iVar1 = (Global_262145.f_12130 + func_274(iParam1));
  			}
  			break;
  		
  		case joaat("moonbeam"):
  			iVar1 = 32500;
  			if (bVar0 && Global_262145.f_12127 >= 0)
  			{
  				iVar1 = Global_262145.f_12127;
  			}
  			break;
  		
  		case joaat("moonbeam2"):
  			iVar1 = (Global_262145.f_12127 + func_274(iParam1));
  			break;
  		
  		case joaat("faction"):
  			iVar1 = 36000;
  			if (bVar0 && Global_262145.f_12126 >= 0)
  			{
  				iVar1 = Global_262145.f_12126;
  			}
  			break;
  		
  		case joaat("faction2"):
  			iVar1 = 95000;
  			iVar1 = (Global_262145.f_12126 + func_274(iParam1));
  			break;
  		
  		case joaat("buccaneer"):
  			iVar1 = 29000;
  			if (bVar0 && Global_262145.f_12128 >= 0)
  			{
  				iVar1 = Global_262145.f_12128;
  			}
  			break;
  		
  		case joaat("buccaneer2"):
  			iVar1 = 85000;
  			iVar1 = (Global_262145.f_12128 + func_274(iParam1));
  			break;
  		
  		case joaat("voodoo2"):
  			iVar1 = 5500;
  			if (bVar0 && Global_262145.f_12129 >= 0)
  			{
  				iVar1 = Global_262145.f_12129;
  			}
  			break;
  		
  		case joaat("voodoo"):
  			iVar1 = 105000;
  			iVar1 = (Global_262145.f_12129 + func_274(iParam1));
  			break;
  		
  		case joaat("dominator4"):
  		case joaat("dominator5"):
  		case joaat("dominator6"):
  			iVar1 = (Global_262145.f_25588 + func_274(iParam1));
  			break;
  		
  		case joaat("slamvan4"):
  		case joaat("slamvan5"):
  		case joaat("slamvan6"):
  			iVar1 = (Global_262145.f_9197 + func_274(iParam1));
  			break;
  		
  		case joaat("issi4"):
  		case joaat("issi5"):
  		case joaat("issi6"):
  			iVar1 = (Global_262145.f_23891 + func_274(iParam1));
  			break;
  		
  		case joaat("impaler2"):
  		case joaat("impaler3"):
  		case joaat("impaler4"):
  			iVar1 = (Global_262145.f_25589 + func_274(iParam1));
  			break;
  		
  		case joaat("deathbike"):
  		case joaat("deathbike2"):
  		case joaat("deathbike3"):
  			iVar1 = (Global_262145.f_25591 + func_274(iParam1));
  			break;
  		
  		case joaat("monster3"):
  		case joaat("monster4"):
  		case joaat("monster5"):
  			iVar1 = (Global_262145.f_25585 + func_274(iParam1));
  			break;
  		
  		case joaat("bruiser"):
  		case joaat("bruiser2"):
  		case joaat("bruiser3"):
  			iVar1 = (Global_262145.f_25586 + func_274(iParam1));
  			break;
  		
  		case joaat("btype2"):
  			iVar1 = 550000;
  			if (bVar0 && Global_262145.f_12348 >= 0)
  			{
  				iVar1 = Global_262145.f_12348;
  			}
  			break;
  		
  		case joaat("lurcher"):
  			iVar1 = 650000;
  			if (bVar0 && Global_262145.f_12349 >= 0)
  			{
  				iVar1 = Global_262145.f_12349;
  			}
  			break;
  		
  		case joaat("baller3"):
  			iVar1 = 149000;
  			if (bVar0 && Global_262145.f_13045 >= 0)
  			{
  				iVar1 = Global_262145.f_13045;
  			}
  			break;
  		
  		case joaat("baller5"):
  			iVar1 = 374000;
  			if (bVar0 && Global_262145.f_13046 >= 0)
  			{
  				iVar1 = Global_262145.f_13046;
  			}
  			break;
  		
  		case joaat("baller4"):
  			iVar1 = 247000;
  			if (bVar0 && Global_262145.f_13047 >= 0)
  			{
  				iVar1 = Global_262145.f_13047;
  			}
  			break;
  		
  		case joaat("baller6"):
  			iVar1 = 513000;
  			if (bVar0 && Global_262145.f_13048 >= 0)
  			{
  				iVar1 = Global_262145.f_13048;
  			}
  			break;
  		
  		case joaat("cog55"):
  			iVar1 = 154000;
  			if (bVar0 && Global_262145.f_13049 >= 0)
  			{
  				iVar1 = Global_262145.f_13049;
  			}
  			break;
  		
  		case joaat("cog552"):
  			iVar1 = 396000;
  			if (bVar0 && Global_262145.f_13050 >= 0)
  			{
  				iVar1 = Global_262145.f_13050;
  			}
  			break;
  		
  		case joaat("cognoscenti"):
  			iVar1 = 254000;
  			if (bVar0 && Global_262145.f_13051 >= 0)
  			{
  				iVar1 = Global_262145.f_13051;
  			}
  			break;
  		
  		case joaat("cognoscenti2"):
  			iVar1 = 558000;
  			if (bVar0 && Global_262145.f_13052 >= 0)
  			{
  				iVar1 = Global_262145.f_13052;
  			}
  			break;
  		
  		case joaat("limo2"):
  			iVar1 = 1650000;
  			if (bVar0 && Global_262145.f_13053 >= 0)
  			{
  				iVar1 = Global_262145.f_13053;
  			}
  			break;
  		
  		case joaat("mamba"):
  			iVar1 = 995000;
  			if (bVar0 && Global_262145.f_13054 >= 0)
  			{
  				iVar1 = Global_262145.f_13054;
  			}
  			break;
  		
  		case joaat("nightshade"):
  			iVar1 = 585000;
  			if (bVar0 && Global_262145.f_13055 >= 0)
  			{
  				iVar1 = Global_262145.f_13055;
  			}
  			break;
  		
  		case joaat("schafter3"):
  			iVar1 = 116000;
  			if (bVar0 && Global_262145.f_13056 >= 0)
  			{
  				iVar1 = Global_262145.f_13056;
  			}
  			break;
  		
  		case joaat("schafter5"):
  			iVar1 = 325000;
  			if (bVar0 && Global_262145.f_13057 >= 0)
  			{
  				iVar1 = Global_262145.f_13057;
  			}
  			break;
  		
  		case joaat("schafter4"):
  			iVar1 = 208000;
  			if (bVar0 && Global_262145.f_13058 >= 0)
  			{
  				iVar1 = Global_262145.f_13058;
  			}
  			break;
  		
  		case joaat("schafter6"):
  			iVar1 = 438000;
  			if (bVar0 && Global_262145.f_13059 >= 0)
  			{
  				iVar1 = Global_262145.f_13059;
  			}
  			break;
  		
  		case joaat("verlierer2"):
  			iVar1 = 695000;
  			if (bVar0 && Global_262145.f_13060 >= 0)
  			{
  				iVar1 = Global_262145.f_13060;
  			}
  			break;
  		
  		case joaat("supervolito"):
  			iVar1 = 2113000;
  			if (bVar0 && Global_262145.f_13061 >= 0)
  			{
  				iVar1 = Global_262145.f_13061;
  			}
  			break;
  		
  		case joaat("supervolito2"):
  			iVar1 = 3330000;
  			if (bVar0 && Global_262145.f_13062 >= 0)
  			{
  				iVar1 = Global_262145.f_13062;
  			}
  			break;
  		
  		case joaat("tampa"):
  			iVar1 = 375000;
  			if (bVar0 && Global_262145.f_13122 >= 0)
  			{
  				iVar1 = Global_262145.f_13122;
  			}
  			break;
  		
  		case joaat("sultan"):
  			if (bVar0 && Global_262145.f_13241 >= 0)
  			{
  				iVar1 = Global_262145.f_13241;
  			}
  			break;
  		
  		case joaat("sultanrs"):
  			iVar1 = (Global_262145.f_13241 + func_274(iParam1));
  			break;
  		
  		case joaat("banshee"):
  			if (bVar0 && Global_262145.f_13243 >= 0)
  			{
  				iVar1 = Global_262145.f_13243;
  			}
  			break;
  		
  		case joaat("banshee2"):
  			iVar1 = (Global_262145.f_13243 + func_274(iParam1));
  			break;
  		
  		case joaat("btype3"):
  			iVar1 = 982000;
  			if (bVar0 && Global_262145.f_13271 >= 0)
  			{
  				iVar1 = Global_262145.f_13271;
  			}
  			break;
  		
  		case joaat("faction3"):
  			iVar1 = (Global_262145.f_12126 + func_274(iParam1));
  			break;
  		
  		case joaat("minivan2"):
  			iVar1 = (Global_262145.f_6834 + func_274(iParam1));
  			break;
  		
  		case joaat("sabregt2"):
  			iVar1 = (Global_262145.f_14778 + func_274(iParam1));
  			break;
  		
  		case joaat("slamvan3"):
  			iVar1 = (Global_262145.f_9197 + func_274(iParam1));
  			break;
  		
  		case joaat("tornado5"):
  			iVar1 = (Global_262145.f_14779 + func_274(iParam1));
  			break;
  		
  		case joaat("virgo3"):
  			iVar1 = Global_262145.f_14777;
  			break;
  		
  		case joaat("virgo2"):
  			iVar1 = (Global_262145.f_14777 + func_274(iParam1));
  			break;
  		
  		case joaat("technical3"):
  			iVar1 = (950000 + func_274(iParam1));
  			if (bVar0)
  			{
  				if (Global_262145.f_8891 >= 0)
  				{
  					iVar1 = (Global_262145.f_8891 + func_274(iParam1));
  				}
  			}
  			break;
  		
  		case joaat("insurgent3"):
  			iVar1 = (1350000 + func_274(iParam1));
  			if (bVar0)
  			{
  				if (Global_262145.f_8884 >= 0)
  				{
  					iVar1 = (Global_262145.f_8884 + func_274(iParam1));
  				}
  			}
  			break;
  	}
  	switch (iParam1)
  	{
  		case joaat("f620"):
  			if (bVar0)
  			{
  				if (Global_262145.f_7432 >= 0)
  				{
  					iVar1 = Global_262145.f_7432;
  				}
  			}
  			break;
  		
  		case joaat("fusilade"):
  			if (bVar0)
  			{
  				if (Global_262145.f_7433 >= 0)
  				{
  					iVar1 = Global_262145.f_7433;
  				}
  			}
  			break;
  		
  		case joaat("penumbra"):
  			if (bVar0)
  			{
  				if (Global_262145.f_7434 >= 0)
  				{
  					iVar1 = Global_262145.f_7434;
  				}
  			}
  			break;
  		
  		case joaat("sentinel"):
  			if (bVar0)
  			{
  				if (Global_262145.f_7435 >= 0)
  				{
  					iVar1 = Global_262145.f_7435;
  				}
  			}
  			break;
  		
  		case joaat("sentinel2"):
  			if (bVar0)
  			{
  				if (Global_262145.f_7436 >= 0)
  				{
  					iVar1 = Global_262145.f_7436;
  				}
  			}
  			break;
  	}
  	if (bVar0)
  	{
  		switch (iParam1)
  		{
  			case joaat("elegy2"):
  				if (bParam2)
  				{
  					if (Global_262145.f_4039 >= 0)
  					{
  						iVar1 = Global_262145.f_4039;
  					}
  				}
  				break;
  			
  			case joaat("khamelion"):
  				if (Global_262145.f_4055 >= 0)
  				{
  					iVar1 = Global_262145.f_4055;
  				}
  				break;
  			
  			case joaat("hotknife"):
  				if (Global_262145.f_4049 >= 0)
  				{
  					iVar1 = Global_262145.f_4049;
  				}
  				break;
  			
  			case joaat("carbonrs"):
  				if (Global_262145.f_4025 >= 0)
  				{
  					iVar1 = Global_262145.f_4025;
  				}
  				break;
  			}
  	}
  	if (bVar0 || iParam3 == 1)
  	{
  		if (bParam2)
  		{
  			switch (iParam1)
  			{
  				case joaat("coquette"):
  					iVar1 = 138000;
  					if (Global_262145.f_7429 >= 0 && bVar0)
  					{
  						iVar1 = Global_262145.f_7429;
  					}
  					break;
  				
  				case joaat("banshee"):
  					iVar1 = 126000;
  					if (Global_262145.f_7428 >= 0 && bVar0)
  					{
  						iVar1 = Global_262145.f_7428;
  					}
  					break;
  				
  				case joaat("stinger"):
  					iVar1 = 850000;
  					if (Global_262145.f_7430 >= 0 && bVar0)
  					{
  						iVar1 = Global_262145.f_7430;
  					}
  					break;
  				
  				case joaat("voltic"):
  					iVar1 = 150000;
  					if (Global_262145.f_4095 >= 0 && bVar0)
  					{
  						iVar1 = Global_262145.f_4095;
  					}
  					break;
  				
  				case joaat("chino"):
  					iVar1 = 225000;
  					if (Global_262145.f_12131 >= 0 && bVar0)
  					{
  						iVar1 = Global_262145.f_12131;
  					}
  					break;
  				
  				case joaat("kalahari"):
  					iVar1 = 40000;
  					if (Global_262145.f_8647 >= 0 && bVar0)
  					{
  						iVar1 = Global_262145.f_8647;
  					}
  					break;
  				
  				case joaat("slamvan"):
  					iVar1 = 49500;
  					if (Global_262145.f_14781 >= 0 && bVar0)
  					{
  						iVar1 = Global_262145.f_14781;
  					}
  					if (bParam2)
  					{
  						iVar2 = iVar1;
  						iVar1 = SYSTEM::ROUND((SYSTEM::TO_FLOAT(iVar1) * 0.75f));
  						if (bVar0 && Global_262145.f_25587 >= 0)
  						{
  							iVar1 = Global_262145.f_25587;
  						}
  					}
  					break;
  				
  				case joaat("minivan"):
  					iVar1 = 30000;
  					if (Global_262145.f_14780 >= 0 && bVar0)
  					{
  						iVar1 = Global_262145.f_14780;
  					}
  					break;
  			}
  		}
  		else
  		{
  			switch (iParam1)
  			{
  				case joaat("voltic"):
  					if (Global_262145.f_7427 >= 0 && bVar0)
  					{
  						iVar1 = Global_262145.f_7427;
  					}
  					break;
  				
  				case joaat("banshee"):
  					if (Global_262145.f_13243 >= 0 && bVar0)
  					{
  						iVar1 = Global_262145.f_13243;
  					}
  					break;
  				}
  			}
  	}
  	if (iVar1 == -1)
  	{
  		return 0;
  	}
  	if (iVar2 == -1)
  	{
  		iVar2 = iVar1;
  	}
  	*uParam0 = iVar1;
  	uParam0->f_3 = SYSTEM::FLOOR((IntToFloat(SYSTEM::FLOOR((IntToFloat(iVar1) * 0.5f))) * 0.1f));
  	uParam0->f_5 = SYSTEM::FLOOR((IntToFloat(SYSTEM::FLOOR((IntToFloat(iVar1) * 0.5f))) * 0.25f));
  	uParam0->f_1 = SYSTEM::FLOOR((IntToFloat(iVar1) * 0.5f));
  	if (!func_272(iParam1))
  	{
  		uParam0->f_2 = SYSTEM::FLOOR((IntToFloat(SYSTEM::FLOOR((IntToFloat(iVar2) * 0.5f))) * 0.25f));
  		uParam0->f_4 = SYSTEM::FLOOR((IntToFloat(uParam0->f_2) * 0.1f));
  		if (uParam0->f_4 > Global_262145.f_16572 && uParam0->f_4 <= Global_262145.f_16573)
  		{
  			uParam0->f_4 = Global_262145.f_16572;
  		}
  	}
  	else
  	{
  		uParam0->f_2 = SYSTEM::FLOOR((IntToFloat(iVar2) * 0.06f));
  		uParam0->f_4 = SYSTEM::FLOOR((IntToFloat(uParam0->f_2) * 0.1f));
  		if (uParam0->f_4 > Global_262145.f_23761)
  		{
  			uParam0->f_4 = Global_262145.f_23761;
  		}
  	}
  	if (bVar0)
  	{
  		uParam0->f_3 = SYSTEM::FLOOR((IntToFloat(uParam0->f_1) * 0.2f));
  	}
  	return 1;
  }
  
  int func_272(int iParam0)
  {
  	switch (iParam0)
  	{
  		case joaat("apc"):
  		case joaat("dune3"):
  		case joaat("halftrack"):
  		case joaat("oppressor"):
  		case joaat("tampa3"):
  		case joaat("technical3"):
  		case joaat("insurgent3"):
  		case joaat("vigilante"):
  		case joaat("barrage"):
  		case joaat("ardent"):
  		case joaat("nightshark"):
  		case joaat("deluxo"):
  		case joaat("stromberg"):
  		case joaat("comet4"):
  		case joaat("revolter"):
  		case joaat("savestra"):
  		case joaat("viseris"):
  		case joaat("thruster"):
  		case joaat("riot2"):
  		case joaat("chernobog"):
  		case joaat("khanjali"):
  		case joaat("technical2"):
  		case joaat("boxville5"):
  		case joaat("wastelander"):
  		case joaat("phantom2"):
  		case joaat("voltic2"):
  		case joaat("dune5"):
  		case joaat("ruiner2"):
  		case joaat("blazer5"):
  		case joaat("caracara"):
  		case joaat("mule4"):
  		case joaat("pounder2"):
  		case joaat("scramjet"):
  		case joaat("oppressor2"):
  		case joaat("menacer"):
  		case joaat("paragon2"):
  			return 1;
  			break;
  		
  		default:
  			if (Global_2783653 != 0)
  			{
  				if (Global_2783653 == iParam0)
  				{
  					return 1;
  				}
  			}
  			if (func_273(iParam0))
  			{
  				return 1;
  			}
  			break;
  	}
  	return 0;
  }
  
  int func_273(int iParam0)
  {
  	switch (iParam0)
  	{
  		case joaat("scarab"):
  		case joaat("bruiser"):
  		case joaat("cerberus"):
  		case joaat("monster3"):
  		case joaat("dominator4"):
  		case joaat("impaler2"):
  		case joaat("imperator"):
  		case joaat("issi4"):
  		case joaat("deathbike"):
  		case joaat("zr380"):
  		case joaat("slamvan4"):
  		case joaat("brutus"):
  		case joaat("imperator2"):
  		case joaat("imperator3"):
  		case joaat("deathbike3"):
  		case joaat("deathbike2"):
  		case joaat("impaler3"):
  		case joaat("brutus2"):
  		case joaat("bruiser2"):
  		case joaat("slamvan5"):
  		case joaat("issi5"):
  		case joaat("monster4"):
  		case joaat("scarab2"):
  		case joaat("cerberus2"):
  		case joaat("dominator5"):
  		case joaat("zr3802"):
  		case joaat("impaler4"):
  		case joaat("brutus3"):
  		case joaat("bruiser3"):
  		case joaat("slamvan6"):
  		case joaat("issi6"):
  		case joaat("monster5"):
  		case joaat("scarab3"):
  		case joaat("cerberus3"):
  		case joaat("dominator6"):
  		case joaat("zr3803"):
  			return 1;
  		
  		default:
  	}
  	return 0;
  }
  
  int func_274(int iParam0)
  {
  	switch (iParam0)
  	{
  		case joaat("chino2"):
  			return Global_262145.f_12133;
  			break;
  		
  		case joaat("primo2"):
  			return Global_262145.f_12136;
  			break;
  		
  		case joaat("moonbeam2"):
  			return Global_262145.f_12135;
  			break;
  		
  		case joaat("faction2"):
  			return Global_262145.f_12134;
  			break;
  		
  		case joaat("buccaneer2"):
  			return Global_262145.f_12132;
  			break;
  		
  		case joaat("voodoo"):
  			return Global_262145.f_12137;
  			break;
  		
  		case joaat("sultanrs"):
  			return Global_262145.f_13242;
  			break;
  		
  		case joaat("banshee2"):
  			return Global_262145.f_13244;
  			break;
  		
  		case joaat("faction3"):
  			return Global_262145.f_14782;
  			break;
  		
  		case joaat("minivan2"):
  			return Global_262145.f_14783;
  			break;
  		
  		case joaat("sabregt2"):
  			return Global_262145.f_14784;
  			break;
  		
  		case joaat("slamvan3"):
  			return Global_262145.f_14785;
  			break;
  		
  		case joaat("tornado5"):
  			return Global_262145.f_14786;
  			break;
  		
  		case joaat("virgo2"):
  			return Global_262145.f_14787;
  			break;
  		
  		case joaat("comet3"):
  			return Global_262145.f_19435;
  			break;
  		
  		case joaat("diablous2"):
  			return Global_262145.f_19439;
  			break;
  		
  		case joaat("fcr2"):
  			return Global_262145.f_19437;
  			break;
  		
  		case joaat("italigtb2"):
  			return Global_262145.f_19429;
  			break;
  		
  		case joaat("specter2"):
  			return Global_262145.f_19431;
  			break;
  		
  		case joaat("nero2"):
  			return Global_262145.f_19433;
  			break;
  		
  		case joaat("elegy"):
  			return Global_262145.f_19434;
  			break;
  		
  		case joaat("technical3"):
  			return Global_262145.f_21164;
  			break;
  		
  		case joaat("insurgent3"):
  			return Global_262145.f_21163;
  			break;
  		
  		case joaat("bruiser"):
  			return Global_262145.f_25636;
  			break;
  		
  		case joaat("monster3"):
  			return Global_262145.f_25635;
  			break;
  		
  		case joaat("impaler2"):
  			return Global_262145.f_25639;
  			break;
  		
  		case joaat("issi4"):
  			return Global_262145.f_25640;
  			break;
  		
  		case joaat("deathbike"):
  			return Global_262145.f_25641;
  			break;
  		
  		case joaat("dominator4"):
  			return Global_262145.f_25638;
  			break;
  		
  		case joaat("slamvan4"):
  			return Global_262145.f_25637;
  			break;
  		
  		case joaat("deathbike3"):
  			return Global_262145.f_25655;
  			break;
  		
  		case joaat("deathbike2"):
  			return Global_262145.f_25648;
  			break;
  		
  		case joaat("impaler3"):
  			return Global_262145.f_25646;
  			break;
  		
  		case joaat("bruiser2"):
  			return Global_262145.f_25643;
  			break;
  		
  		case joaat("slamvan5"):
  			return Global_262145.f_25644;
  			break;
  		
  		case joaat("issi5"):
  			return Global_262145.f_25647;
  			break;
  		
  		case joaat("monster4"):
  			return Global_262145.f_25642;
  			break;
  		
  		case joaat("dominator5"):
  			return Global_262145.f_25645;
  			break;
  		
  		case joaat("impaler4"):
  			return Global_262145.f_25653;
  			break;
  		
  		case joaat("bruiser3"):
  			return Global_262145.f_25650;
  			break;
  		
  		case joaat("slamvan6"):
  			return Global_262145.f_25651;
  			break;
  		
  		case joaat("issi6"):
  			return Global_262145.f_25654;
  			break;
  		
  		case joaat("monster5"):
  			return Global_262145.f_25649;
  			break;
  		
  		case joaat("dominator6"):
  			return Global_262145.f_25652;
  			break;
  		
  		case joaat("youga3"):
  			return Global_262145.f_29024;
  			break;
  		
  		case joaat("gauntlet5"):
  			return Global_262145.f_29019;
  			break;
  		
  		case joaat("manana2"):
  			return Global_262145.f_29023;
  			break;
  		
  		case joaat("peyote3"):
  			return Global_262145.f_29021;
  			break;
  		
  		case joaat("yosemite3"):
  			return Global_262145.f_29020;
  			break;
  		
  		case joaat("glendale2"):
  			return Global_262145.f_29022;
  			break;
  	}
  	return 0;
  }
  
  int func_275(int iParam0)
  {
  	int iVar0;
  	
  	if (iParam0 == 0)
  	{
  		return 0;
  	}
  	if (!STREAMING::IS_MODEL_A_VEHICLE(iParam0))
  	{
  		return 0;
  	}
  	iVar0 = VEHICLE::GET_VEHICLE_CLASS_FROM_NAME(iParam0);
  	if ((((((((((((((VEHICLE::IS_THIS_MODEL_A_BOAT(iParam0) || VEHICLE::IS_THIS_MODEL_A_PLANE(iParam0)) || VEHICLE::IS_THIS_MODEL_A_HELI(iParam0)) || VEHICLE::IS_THIS_MODEL_A_BICYCLE(iParam0)) || VEHICLE::IS_THIS_MODEL_A_PLANE(iParam0)) || VEHICLE::IS_THIS_MODEL_A_JETSKI(iParam0)) || VEHICLE::IS_THIS_MODEL_A_TRAIN(iParam0)) || iVar0 == 2) || iVar0 == 12) || iVar0 == 18) || iVar0 == 19) || iVar0 == 11) || iVar0 == 20) || iVar0 == 10) || iVar0 == 17)
  	{
  		return 0;
  	}
  	return 1;
  }
  
  int func_276(int iParam0)
  {
  	switch (iParam0)
  	{
  		case 1:
  		case 2:
  		case 3:
  			return joaat("prototipo");
  		
  		case 4:
  		case 5:
  		case 6:
  			return joaat("tyrus");
  		
  		case 7:
  		case 8:
  		case 9:
  			return joaat("bestiagts");
  		
  		case 10:
  		case 11:
  		case 12:
  			return joaat("t20");
  		
  		case 13:
  		case 14:
  		case 15:
  			return joaat("sheava");
  		
  		case 16:
  		case 17:
  		case 18:
  			return joaat("osiris");
  		
  		case 19:
  		case 20:
  		case 21:
  			return joaat("fmj");
  		
  		case 22:
  		case 23:
  		case 24:
  			return joaat("reaper");
  		
  		case 25:
  		case 26:
  		case 27:
  			return joaat("pfister811");
  		
  		case 28:
  		case 29:
  		case 30:
  			return joaat("alpha");
  		
  		case 31:
  		case 32:
  		case 33:
  			return joaat("mamba");
  		
  		case 34:
  		case 35:
  		case 36:
  			return joaat("tampa");
  		
  		case 37:
  		case 38:
  		case 39:
  			return joaat("btype3");
  		
  		case 40:
  		case 41:
  		case 42:
  			return joaat("feltzer3");
  		
  		case 43:
  		case 44:
  		case 45:
  			return joaat("ztype");
  		
  		case 46:
  		case 47:
  		case 48:
  			return joaat("tropos");
  		
  		case 49:
  		case 50:
  		case 51:
  			return joaat("entityxf");
  		
  		case 52:
  		case 53:
  		case 54:
  			return joaat("sultanrs");
  		
  		case 55:
  		case 56:
  		case 57:
  			return joaat("zentorno");
  		
  		case 58:
  		case 59:
  		case 60:
  			return joaat("omnis");
  		
  		case 61:
  		case 62:
  		case 63:
  			return joaat("coquette3");
  		
  		case 64:
  		case 65:
  		case 66:
  			return joaat("seven70");
  		
  		case 67:
  		case 68:
  		case 69:
  			return joaat("verlierer2");
  		
  		case 70:
  		case 71:
  		case 72:
  			return joaat("feltzer2");
  		
  		case 73:
  		case 74:
  		case 75:
  			return joaat("coquette2");
  		
  		case 76:
  		case 77:
  		case 78:
  			return joaat("cheetah");
  		
  		case joaat("mpsv_lp0_31"):
  		case 80:
  		case 81:
  			return joaat("nightshade");
  		
  		case 82:
  		case 83:
  		case 84:
  			return joaat("banshee2");
  		
  		case 85:
  		case 86:
  		case 87:
  			return joaat("turismor");
  		
  		case 88:
  		case 89:
  		case 90:
  			return joaat("massacro");
  		
  		case 91:
  		case 92:
  		case 93:
  			return joaat("sabregt2");
  		
  		case 94:
  		case 95:
  		case 96:
  			return joaat("jester");
  		
  		default:
  	}
  	return 0;
  }
  
  int func_277(int iParam0)
  {
  	int iVar0;
  	
  	if (iParam0 == 0)
  	{
  		iVar0 = func_261(6, 1);
  	}
  	else if (iParam0 == 1)
  	{
  		iVar0 = func_261(11, 1);
  	}
  	else if (iParam0 == 2)
  	{
  		iVar0 = func_261(19, 1);
  	}
  	if (iVar0 > 0 && !MONEY::NETWORK_CAN_SPEND_MONEY(iVar0, false, true, false, -1, 0))
  	{
  		return 0;
  	}
  	return 1;
  }
  
  char* func_278(bool bParam0, bool bParam1, int iParam2, bool bParam3)
  {
  	if (bParam3)
  	{
  		return "AH_BUYER_D6";
  	}
  	else if (bParam1)
  	{
  		if (func_76(0) == 1)
  		{
  			return "AH_BUYER_NM2";
  		}
  		else
  		{
  			return "AH_BUYER_NM1";
  		}
  	}
  	else if (bParam0)
  	{
  		if (func_76(0) == 1)
  		{
  			if (iParam2 > 0)
  			{
  				return "AH_BUYER_D4";
  			}
  			else
  			{
  				return "AH_BUYER_D2";
  			}
  		}
  		else if (iParam2 > 0)
  		{
  			return "AH_BUYER_D5";
  		}
  	}
  	else if (func_76(0) == 1)
  	{
  		return "AH_BUYER_D4";
  	}
  	else
  	{
  		return "AH_BUYER_D5";
  	}
  	return "AH_BUYER_D1";
  }
  
  int func_279(int iParam0)
  {
  	if (func_80())
  	{
  		return 1;
  	}
  	if (iParam0 == 0)
  	{
  		return Global_262145.f_19190;
  	}
  	else if (iParam0 == 1)
  	{
  		return Global_262145.f_19191;
  	}
  	else if (iParam0 == 2)
  	{
  		return Global_262145.f_19192;
  	}
  	return 0;
  }
  
  void func_280()
  {
  	int iVar0;
  	int iVar1;
  	int iVar2;
  	int iVar3;
  	int iVar4;
  	int iVar5;
  	bool bVar6;
  	bool bVar7;
  	bool bVar8;
  	
  	iVar0 = func_261(6, 0);
  	iVar1 = func_261(11, 0);
  	iVar2 = func_261(19, 0);
  	iVar3 = func_261(6, 1);
  	iVar4 = func_261(11, 1);
  	iVar5 = func_261(19, 1);
  	bVar6 = true;
  	bVar7 = true;
  	bVar8 = true;
  	if ((iVar3 > 0 && !MONEY::NETWORK_CAN_SPEND_MONEY(iVar3, false, true, false, -1, 0)) || func_279(0))
  	{
  		bVar6 = false;
  	}
  	if ((iVar4 > 0 && !MONEY::NETWORK_CAN_SPEND_MONEY(iVar4, false, true, false, -1, 0)) || func_279(1))
  	{
  		bVar7 = false;
  	}
  	if ((iVar5 > 0 && !MONEY::NETWORK_CAN_SPEND_MONEY(iVar5, false, true, false, -1, 0)) || func_279(2))
  	{
  		bVar8 = false;
  	}
  	GRAPHICS::BEGIN_SCALEFORM_MOVIE_METHOD(iLocal_639, "SHOW_BUYERS");
  	GRAPHICS::SCALEFORM_MOVIE_METHOD_ADD_PARAM_INT(iVar3);
  	GRAPHICS::SCALEFORM_MOVIE_METHOD_ADD_PARAM_INT(iVar4);
  	GRAPHICS::SCALEFORM_MOVIE_METHOD_ADD_PARAM_INT(iVar5);
  	GRAPHICS::SCALEFORM_MOVIE_METHOD_ADD_PARAM_INT(iVar0);
  	GRAPHICS::SCALEFORM_MOVIE_METHOD_ADD_PARAM_INT(iVar1);
  	GRAPHICS::SCALEFORM_MOVIE_METHOD_ADD_PARAM_INT(iVar2);
  	GRAPHICS::SCALEFORM_MOVIE_METHOD_ADD_PARAM_BOOL(bVar6);
  	GRAPHICS::SCALEFORM_MOVIE_METHOD_ADD_PARAM_BOOL(bVar7);
  	GRAPHICS::SCALEFORM_MOVIE_METHOD_ADD_PARAM_BOOL(bVar8);
  	GRAPHICS::END_SCALEFORM_MOVIE_METHOD();
  	func_299(2);
  }
  
  void func_281()
  {
  	int iVar0;
  	
  	iVar0 = 3;
  	while (iVar0 >= 0)
  	{
  		if (iLocal_622[iVar0] != 0)
  		{
  			GRAPHICS::CALL_SCALEFORM_MOVIE_METHOD_WITH_NUMBER(iLocal_639, "SET_INPUT_EVENT", SYSTEM::TO_FLOAT(iLocal_622[iVar0]), -1f, -1f, -1f, -1f);
  			iLocal_622[iVar0] = 0;
  		}
  		else
  		{
  			iVar0 = (iVar0 + -1);
  		}
  	}
  }
  
  struct<4> func_282(bool bParam0)
  {
  	struct<4> Var0;
  	
  	switch (iLocal_618)
  	{
  		case 12:
  			StringCopy(&Var0, "AH_SES", 16);
  			return Var0;
  		
  		case 13:
  			StringCopy(&Var0, "AH_CRIT", 16);
  			return Var0;
  		
  		case 14:
  			StringCopy(&Var0, "AH_NBOSS", 16);
  			return Var0;
  		
  		case 15:
  			StringCopy(&Var0, "AH_NBOSS", 16);
  			return Var0;
  		
  		case 18:
  			StringCopy(&Var0, "AH_SAVING_DOWN", 16);
  			return Var0;
  		
  		case 17:
  			StringCopy(&Var0, "AH_NEPLYRS", 16);
  			StringIntConCat(&Var0, func_76(bParam0), 16);
  			return Var0;
  		
  		case 20:
  			if (func_85(PLAYER::PLAYER_ID()))
  			{
  				StringCopy(&Var0, "GENERAL_MLF_G1", 16);
  			}
  			else if (func_283(PLAYER::PLAYER_ID()))
  			{
  				StringCopy(&Var0, "GENERAL_MLF_G2", 16);
  			}
  			else
  			{
  				StringCopy(&Var0, "GENERAL_MLF_G3", 16);
  			}
  			return Var0;
  		
  		case 19:
  			if (func_85(PLAYER::PLAYER_ID()))
  			{
  				StringCopy(&Var0, "GENERAL_MLF_G4", 16);
  			}
  			else if (func_283(PLAYER::PLAYER_ID()))
  			{
  				StringCopy(&Var0, "GENERAL_MLF_G5", 16);
  			}
  			else
  			{
  				StringCopy(&Var0, "GENERAL_MLF_G6", 16);
  			}
  			return Var0;
  			break;
  	}
  	if (NETWORK::NETWORK_IS_ACTIVITY_SESSION())
  	{
  		StringCopy(&Var0, "AH_SES", 16);
  		return Var0;
  	}
  	StringCopy(&Var0, "AH_SELL_NA", 16);
  	return Var0;
  }
  
  bool func_283(int iParam0)
  {
  	if (iParam0 == -1)
  	{
  		return 0;
  	}
  	return MISC::IS_BIT_SET(Global_1853128[iParam0 /*888*/].f_267.f_28, 26);
  }
  
  void func_284()
  {
  	GRAPHICS::BEGIN_SCALEFORM_MOVIE_METHOD(iLocal_639, "HIDE_OVERLAY");
  	GRAPHICS::END_SCALEFORM_MOVIE_METHOD();
  	iLocal_655 = 0;
  	if (iLocal_617)
  	{
  		iLocal_617 = 0;
  	}
  }
  
  void func_285(bool bParam0)
  {
  	int iVar0;
  	var uVar1[4];
  	var uVar6;
  	
  	iVar0 = 0;
  	while (iVar0 < 4)
  	{
  		if ((!bParam0 && iLocal_622[iVar0] != 0) || (bParam0 && iLocal_627[iVar0] != 0))
  		{
  			uVar6 = iLocal_622[iVar0];
  			if (bParam0)
  			{
  				uVar6 = iLocal_627[iVar0];
  			}
  			Global_1835008[iVar0 /*103*/].f_101 = uVar6;
  			Global_1835008[iVar0 /*103*/].f_100 = iLocal_632[iVar0];
  		}
  		else
  		{
  			func_296(&uVar1);
  			Global_1835008[iVar0 /*103*/].f_101 = -1;
  			Global_1835008[iVar0 /*103*/].f_100 = uVar1[0];
  			iLocal_632[iVar0] = uVar1[0];
  		}
  		iVar0++;
  	}
  	if (iLocal_637 != 0 && !bParam0)
  	{
  		if (func_295())
  		{
  			func_293();
  		}
  		func_292(1);
  		iLocal_616 = 1;
  	}
  	else
  	{
  		func_77(PLAYER::PLAYER_ID(), 1);
  		iLocal_656 = 2;
  	}
  	if (bParam0)
  	{
  		func_291(iLocal_638);
  	}
  	else
  	{
  		func_290();
  	}
  	func_289(0);
  	func_286(iLocal_632[0], iLocal_632[1], iLocal_632[2], iLocal_632[3], Global_1835008[0 /*103*/].f_101, Global_1835008[1 /*103*/].f_101, Global_1835008[2 /*103*/].f_101, Global_1835008[3 /*103*/].f_101, iLocal_637, bParam0);
  	Global_1946899 = 1;
  }
  
  void func_286(var uParam0, var uParam1, var uParam2, var uParam3, var uParam4, var uParam5, var uParam6, var uParam7, int iParam8, bool bParam9)
  {
  	struct<14> Var0;
  	int iVar14;
  	
  	Var0.f_2 = 4;
  	Var0.f_7 = 4;
  	Var0.f_0 = 1622472682;
  	Var0.f_1 = PLAYER::PLAYER_ID();
  	Var0.f_2[0] = uParam0;
  	Var0.f_2[1] = uParam1;
  	Var0.f_2[2] = uParam2;
  	Var0.f_2[3] = uParam3;
  	Var0.f_7[0] = uParam4;
  	Var0.f_7[1] = uParam5;
  	Var0.f_7[2] = uParam6;
  	Var0.f_7[3] = uParam7;
  	Var0.f_12 = iParam8;
  	Var0.f_13 = bParam9;
  	iVar14 = func_287(1, 1);
  	if (!iVar14 == 0)
  	{
  		SCRIPT::_TRIGGER_SCRIPT_EVENT_2(1, &Var0, 14, iVar14);
  	}
  }
  
  var func_287(bool bParam0, bool bParam1)
  {
  	var uVar0;
  	int iVar1;
  	int iVar2;
  	int iVar3;
  	
  	if (func_64(PLAYER::PLAYER_ID()))
  	{
  		iVar2 = PLAYER::PLAYER_ID();
  	}
  	else
  	{
  		iVar2 = func_75();
  	}
  	if (iVar2 == PLAYER::PLAYER_ID() || func_2(iVar2, bParam0, 1))
  	{
  		MISC::SET_BIT(&uVar0, iVar2);
  	}
  	iVar1 = 0;
  	while (iVar1 < 32)
  	{
  		iVar3 = iVar1;
  		if ((iVar2 != iVar3 && func_288(iVar3, iVar2)) && func_2(iVar3, bParam0, 1))
  		{
  			MISC::SET_BIT(&uVar0, iVar1);
  		}
  		iVar1++;
  	}
  	if (!bParam1)
  	{
  		MISC::CLEAR_BIT(&uVar0, PLAYER::PLAYER_ID());
  	}
  	return uVar0;
  }
  
  int func_288(int iParam0, int iParam1)
  {
  	int iVar0;
  	
  	iVar0 = func_73(iParam0);
  	if (!iVar0 == func_3())
  	{
  		if (iVar0 == func_73(iParam1))
  		{
  			return 1;
  		}
  	}
  	return 0;
  }
  
  void func_289(bool bParam0)
  {
  	if (bParam0)
  	{
  		if (!MISC::IS_BIT_SET(Global_2689156[PLAYER::PLAYER_ID() /*453*/].f_200, 6))
  		{
  			MISC::SET_BIT(&(Global_2689156[PLAYER::PLAYER_ID() /*453*/].f_200), 6);
  		}
  	}
  	else if (MISC::IS_BIT_SET(Global_2689156[PLAYER::PLAYER_ID() /*453*/].f_200, 6))
  	{
  		MISC::CLEAR_BIT(&(Global_2689156[PLAYER::PLAYER_ID() /*453*/].f_200), 6);
  	}
  }
  
  void func_290()
  {
  	int iVar0;
  	
  	iVar0 = 0;
  	while (iVar0 < 4)
  	{
  		Global_2783349.f_20[iVar0] = 0;
  		iVar0++;
  	}
  	Global_2783349.f_25 = 0;
  	Global_2783349.f_19 = 2000;
  	Global_1893548[PLAYER::PLAYER_ID() /*600*/].f_11.f_331 = 2000;
  }
  
  void func_291(int iParam0)
  {
  	if (func_307(iParam0))
  	{
  		Global_1893548[PLAYER::PLAYER_ID() /*600*/].f_11.f_331 = iParam0;
  	}
  }
  
  void func_292(bool bParam0)
  {
  	if (bParam0)
  	{
  		if (!MISC::IS_BIT_SET(Global_2689156[PLAYER::PLAYER_ID() /*453*/].f_199, 18))
  		{
  			MISC::SET_BIT(&(Global_2689156[PLAYER::PLAYER_ID() /*453*/].f_199), 18);
  		}
  	}
  	else if (MISC::IS_BIT_SET(Global_2689156[PLAYER::PLAYER_ID() /*453*/].f_199, 18))
  	{
  		MISC::CLEAR_BIT(&(Global_2689156[PLAYER::PLAYER_ID() /*453*/].f_199), 18);
  	}
  }
  
  void func_293()
  {
  	Global_20151 = 0;
  	func_294();
  }
  
  void func_294()
  {
  	AUDIO::RESTART_SCRIPTED_CONVERSATION();
  	Global_22296 = 0;
  	if ((AUDIO::IS_MOBILE_PHONE_CALL_ONGOING() || Global_19954.f_1 == 9) || Global_19953 == 1)
  	{
  		AUDIO::STOP_SCRIPTED_CONVERSATION(false);
  		Global_21285 = 6;
  		Global_19954.f_1 = 3;
  		return;
  	}
  	if (AUDIO::IS_SCRIPTED_CONVERSATION_ONGOING())
  	{
  		AUDIO::STOP_SCRIPTED_CONVERSATION(true);
  		Global_21285 = 6;
  		return;
  	}
  }
  
  int func_295()
  {
  	if (Global_21285 != 0 || AUDIO::IS_SCRIPTED_CONVERSATION_ONGOING())
  	{
  		return 1;
  	}
  	return 0;
  }
  
  void func_296(var uParam0)
  {
  	int iVar0;
  	int iVar1;
  	int iVar2;
  	
  	iVar2 = 4;
  	if (!func_297(PLAYER::PLAYER_ID()))
  	{
  		(*uParam0)[iVar1] = PLAYER::PLAYER_ID();
  		iVar1++;
  		iVar2 = (iVar2 - 1);
  	}
  	iVar0 = 0;
  	while (iVar0 < iVar2)
  	{
  		if ((((Global_1893548[PLAYER::PLAYER_ID() /*600*/].f_11.f_11[iVar0] != func_3() && func_2(Global_1893548[PLAYER::PLAYER_ID() /*600*/].f_11.f_11[iVar0], 1, 1)) && !func_297(Global_1893548[PLAYER::PLAYER_ID() /*600*/].f_11.f_11[iVar0])) && func_401(Global_1893548[PLAYER::PLAYER_ID() /*600*/].f_11.f_11[iVar0])) && !func_79(Global_1893548[PLAYER::PLAYER_ID() /*600*/].f_11.f_11[iVar0]))
  		{
  			(*uParam0)[iVar1] = Global_1893548[PLAYER::PLAYER_ID() /*600*/].f_11.f_11[iVar0];
  			iVar1++;
  		}
  		else
  		{
  			(*uParam0)[iVar1] = func_3();
  		}
  		iVar0++;
  	}
  }
  
  int func_297(int iParam0)
  {
  	int iVar0;
  	
  	iVar0 = 0;
  	while (iVar0 < 4)
  	{
  		if (iLocal_632[iVar0] == iParam0)
  		{
  			return 1;
  		}
  		iVar0++;
  	}
  	return 0;
  }
  
  void func_298(bool bParam0)
  {
  	int iVar0;
  	var uVar1[4];
  	
  	iVar0 = 0;
  	while (iVar0 < 4)
  	{
  		if ((!bParam0 && iLocal_622[iVar0] != 0) || (bParam0 && iLocal_627[iVar0] != 0))
  		{
  			if (iVar0 == 0)
  			{
  				iLocal_632[iVar0] = PLAYER::PLAYER_ID();
  			}
  			else
  			{
  				func_296(&uVar1);
  				iLocal_632[iVar0] = uVar1[0];
  			}
  		}
  		iVar0++;
  	}
  }
  
  void func_299(int iParam0)
  {
  	if (iLocal_619 != iParam0)
  	{
  		iLocal_619 = iParam0;
  	}
  }
  
  void func_300(int iParam0)
  {
  	struct<2> Var0;
  	int iVar7;
  	
  	Var0.f_1 = 4;
  	func_301(&Var0, iParam0);
  	iVar7 = 0;
  	while (iVar7 < 4)
  	{
  		func_310(Var0.f_1[iVar7], 1);
  		iVar7++;
  	}
  }
  
  void func_301(var uParam0, int iParam1)
  {
  	*uParam0 = func_305(iParam1);
  	uParam0->f_6 = func_302(iParam1);
  	switch (iParam1)
  	{
  		case 2001:
  			uParam0->f_1[0] = 28;
  			uParam0->f_1[1] = 23;
  			uParam0->f_1[2] = 90;
  			uParam0->f_1[3] = 55;
  			break;
  		
  		case 2002:
  			uParam0->f_1[0] = 76;
  			uParam0->f_1[1] = 4;
  			uParam0->f_1[2] = 19;
  			uParam0->f_1[3] = 50;
  			break;
  		
  		case 2003:
  			uParam0->f_1[0] = 82;
  			uParam0->f_1[1] = 42;
  			uParam0->f_1[2] = 65;
  			uParam0->f_1[3] = 87;
  			break;
  		
  		case 2004:
  			uParam0->f_1[0] = 59;
  			uParam0->f_1[1] = 48;
  			uParam0->f_1[2] = 96;
  			uParam0->f_1[3] = 52;
  			break;
  		
  		case 2005:
  			uParam0->f_1[0] = 73;
  			uParam0->f_1[1] = 67;
  			uParam0->f_1[2] = 15;
  			uParam0->f_1[3] = 0;
  			break;
  		
  		case 2006:
  			uParam0->f_1[0] = 93;
  			uParam0->f_1[1] = 34;
  			uParam0->f_1[2] = 32;
  			uParam0->f_1[3] = 0;
  			break;
  		
  		case 2007:
  			uParam0->f_1[0] = 2;
  			uParam0->f_1[1] = 12;
  			uParam0->f_1[2] = 18;
  			uParam0->f_1[3] = 0;
  			break;
  		
  		case 2008:
  			uParam0->f_1[0] = 70;
  			uParam0->f_1[1] = 27;
  			uParam0->f_1[2] = 7;
  			uParam0->f_1[3] = 0;
  			break;
  		
  		case 2009:
  			uParam0->f_1[0] = 61;
  			uParam0->f_1[1] = 80;
  			uParam0->f_1[2] = 0;
  			uParam0->f_1[3] = 0;
  			break;
  		
  		case 2010:
  			uParam0->f_1[0] = 43;
  			uParam0->f_1[1] = 38;
  			uParam0->f_1[2] = 0;
  			uParam0->f_1[3] = 0;
  			break;
  	}
  }
  
  int func_302(int iParam0)
  {
  	switch (iParam0)
  	{
  		case 2001:
  			return 100000;
  		
  		case 2002:
  			return 200000;
  		
  		case 2003:
  			return 300000;
  		
  		case 2004:
  			return 400000;
  		
  		case 2005:
  			return 500000;
  		
  		case 2006:
  			return 600000;
  		
  		case 2007:
  			return 700000;
  		
  		case 2008:
  			return 800000;
  		
  		case 2009:
  			return 900000;
  		
  		case 2010:
  			return 1000000;
  		
  		default:
  	}
  	return 0;
  }
  
  bool func_303()
  {
  	return iLocal_638 != 2000;
  }
  
  void func_304(bool bParam0, bool bParam1)
  {
  	int iVar0;
  	
  	iVar0 = 0;
  	while (iVar0 < 4)
  	{
  		if (!bParam0)
  		{
  			iLocal_622[iVar0] = 0;
  		}
  		else
  		{
  			iLocal_627[iVar0] = 0;
  		}
  		iVar0++;
  	}
  	if (bParam1)
  	{
  		GRAPHICS::CALL_SCALEFORM_MOVIE_METHOD_WITH_NUMBER(iLocal_639, "SET_INPUT_EVENT", SYSTEM::TO_FLOAT(iLocal_638), -1f, -1f, -1f, -1f);
  	}
  }
  
  int func_305(int iParam0)
  {
  	switch (iParam0)
  	{
  		case 2001:
  			return 4;
  		
  		case 2002:
  			return 4;
  		
  		case 2003:
  			return 4;
  		
  		case 2004:
  			return 4;
  		
  		case 2005:
  			return 3;
  		
  		case 2006:
  			return 3;
  		
  		case 2007:
  			return 3;
  		
  		case 2008:
  			return 3;
  		
  		case 2009:
  			return 2;
  		
  		case 2010:
  			return 2;
  		
  		default:
  	}
  	return 0;
  }
  
  char* func_306(int iParam0)
  {
  	int iVar0;
  	
  	iVar0 = func_305(iParam0);
  	switch (iVar0)
  	{
  		case 2:
  			return "AH_COL_2VEH";
  		
  		case 3:
  			return "AH_COL_3VEH";
  		
  		case 4:
  			return "AH_COL_4VEH";
  		
  		default:
  	}
  	return "AH_COL_2VEH";
  }
  
  int func_307(int iParam0)
  {
  	int iVar0;
  	struct<2> Var1;
  	
  	Var1.f_1 = 4;
  	func_301(&Var1, iParam0);
  	iVar0 = 0;
  	while (iVar0 < Var1.f_0)
  	{
  		if (!func_19(PLAYER::PLAYER_ID(), Var1.f_1[iVar0]))
  		{
  			return 0;
  		}
  		iVar0++;
  	}
  	return 1;
  }
  
  int func_308(int iParam0)
  {
  	int iVar0;
  	int iVar1;
  	
  	iVar0 = 2001;
  	iVar1 = 2011;
  	if ((iParam0 >= iVar0 && iParam0 < iVar1) || (iParam0 > iVar0 + 18000 && iParam0 < iVar1 + 18000))
  	{
  		return 1;
  	}
  	return 0;
  }
  
  void func_309(int iParam0)
  {
  	int iVar0;
  	
  	if (iParam0 > 10000)
  	{
  		iParam0 = (iParam0 - 10000);
  	}
  	iVar0 = 0;
  	while (iVar0 < 4)
  	{
  		if (iVar0 == 3)
  		{
  			iLocal_622[iVar0] = 0;
  		}
  		else if (iLocal_622[iVar0] == iParam0)
  		{
  			if (iLocal_622[iVar0 + 1] != 0)
  			{
  				iLocal_622[iVar0] = iLocal_622[iVar0 + 1];
  				iLocal_622[iVar0 + 1] = iParam0;
  			}
  			else
  			{
  				iLocal_622[iVar0] = 0;
  				return;
  			}
  		}
  		iVar0++;
  	}
  }
  
  void func_310(int iParam0, bool bParam1)
  {
  	int iVar0;
  	
  	iVar0 = 0;
  	while (iVar0 < 4)
  	{
  		if (bParam1)
  		{
  			if (iLocal_627[iVar0] == 0)
  			{
  				iLocal_627[iVar0] = iParam0;
  				return;
  			}
  		}
  		else if (iLocal_622[iVar0] == 0)
  		{
  			iLocal_622[iVar0] = iParam0;
  			return;
  		}
  		iVar0++;
  	}
  }
  
  int func_311(int iParam0, bool bParam1)
  {
  	int iVar0;
  	int iVar1;
  	
  	iVar1 = iParam0;
  	if (iParam0 > 10000)
  	{
  		iVar1 = (iVar1 - 10000);
  	}
  	iVar0 = 0;
  	while (iVar0 < 4)
  	{
  		if (bParam1)
  		{
  			if (iLocal_627[iVar0] == iVar1)
  			{
  				return 1;
  			}
  		}
  		else if (iLocal_622[iVar0] == iVar1)
  		{
  			return 1;
  		}
  		iVar0++;
  	}
  	return 0;
  }
  
  int func_312(int iParam0)
  {
  	if (iParam0 != func_3())
  	{
  		if (func_2(iParam0, 1, 1))
  		{
  			if (Global_2689156[iParam0 /*453*/].f_319.f_6 != -1)
  			{
  				return func_313(Global_2689156[iParam0 /*453*/].f_319.f_6) == 17;
  			}
  		}
  	}
  	return 0;
  }
  
  int func_313(int iParam0)
  {
  	switch (iParam0)
  	{
  		case 0:
  		case 1:
  		case 2:
  		case 3:
  		case 4:
  		case 5:
  		case 6:
  		case 7:
  		case 8:
  		case 9:
  		case 10:
  		case 11:
  		case 12:
  		case 13:
  		case 14:
  		case 15:
  		case 16:
  		case 17:
  		case 18:
  		case 19:
  		case 20:
  		case 21:
  			return 0;
  			break;
  		
  		case 60:
  		case 61:
  		case 62:
  		case 63:
  		case 64:
  		case 65:
  		case 66:
  		case 67:
  		case 68:
  		case 69:
  			return 1;
  			break;
  		
  		case 22:
  		case 23:
  		case 24:
  		case 25:
  		case 26:
  		case 27:
  		case 28:
  		case 29:
  		case 30:
  		case 31:
  		case 32:
  		case 33:
  		case 34:
  		case 35:
  		case 36:
  		case 37:
  		case 38:
  		case 39:
  		case 40:
  		case 41:
  			return 2;
  			break;
  		
  		case 43:
  		case 42:
  		case 44:
  		case 45:
  		case 46:
  		case 47:
  		case 48:
  		case 49:
  		case 50:
  		case 51:
  		case 52:
  		case 53:
  		case 54:
  		case 55:
  		case 56:
  		case 57:
  		case 58:
  		case 59:
  		case 98:
  		case 99:
  		case 100:
  		case 112:
  		case 113:
  		case 114:
  		case 115:
  		case 119:
  		case 116:
  		case 118:
  		case 120:
  		case 121:
  		case 126:
  		case 127:
  		case 134:
  		case 135:
  		case 136:
  		case 137:
  		case 138:
  		case 139:
  		case 140:
  		case 141:
  		case 142:
  		case 143:
  		case 144:
  			return 3;
  			break;
  		
  		case 70:
  		case 71:
  		case 72:
  		case 73:
  		case 74:
  		case 75:
  		case 76:
  		case 77:
  		case 78:
  		case joaat("mpsv_lp0_31"):
  		case 80:
  			return 4;
  			break;
  		
  		case 81:
  			return 5;
  			break;
  		
  		case 82:
  			return 6;
  			break;
  		
  		case 83:
  		case 84:
  		case 85:
  		case 86:
  		case 87:
  			return 7;
  			break;
  		
  		case 88:
  			return 8;
  			break;
  		
  		case 89:
  		case 90:
  		case 91:
  		case 92:
  		case 93:
  		case 94:
  		case 95:
  		case 96:
  		case 97:
  			return 9;
  			break;
  		
  		case 101:
  			return 10;
  			break;
  		
  		case 102:
  		case 103:
  		case 104:
  		case 105:
  		case 106:
  		case 107:
  		case 108:
  		case 109:
  		case 110:
  		case 111:
  			return 11;
  			break;
  		
  		case 117:
  			return 12;
  			break;
  		
  		case 122:
  			return 13;
  			break;
  		
  		case 123:
  			return 14;
  			break;
  		
  		case 124:
  			return 15;
  			break;
  		
  		case 125:
  			return 16;
  			break;
  		
  		case 128:
  		case 129:
  		case 130:
  		case 131:
  		case 132:
  		case 133:
  			return 17;
  			break;
  		
  		case 145:
  			return 18;
  			break;
  		
  		case 146:
  			return 19;
  			break;
  		
  		case 147:
  			return 20;
  			break;
  		
  		case 148:
  			return 21;
  			break;
  		
  		case 149:
  		case 151:
  		case 153:
  		case 152:
  		case 150:
  			return 22;
  			break;
  		
  		case 154:
  			return 23;
  			break;
  		
  		case 155:
  		case 156:
  		case 157:
  		case 158:
  			return 24;
  	}
  	return -1;
  }
  
  void func_314(char* sParam0, char* sParam1, char* sParam2, char* sParam3, int iParam4, int iParam5)
  {
  	GRAPHICS::BEGIN_SCALEFORM_MOVIE_METHOD(iLocal_639, "SHOW_OVERLAY");
  	func_315(sParam0);
  	GRAPHICS::BEGIN_TEXT_COMMAND_SCALEFORM_STRING(sParam1);
  	if (iParam4 != -1)
  	{
  		HUD::ADD_TEXT_COMPONENT_INTEGER(iParam4);
  	}
  	if (iParam5 != -1)
  	{
  		HUD::ADD_TEXT_COMPONENT_INTEGER(iParam5);
  	}
  	GRAPHICS::END_TEXT_COMMAND_SCALEFORM_STRING();
  	func_315(sParam2);
  	func_315(sParam3);
  	GRAPHICS::END_SCALEFORM_MOVIE_METHOD();
  	iLocal_655 = 1;
  }
  
  void func_315(char* sParam0)
  {
  	GRAPHICS::BEGIN_TEXT_COMMAND_SCALEFORM_STRING(sParam0);
  	GRAPHICS::END_TEXT_COMMAND_SCALEFORM_STRING();
  }
  
  char* func_316()
  {
  	if (Global_1853128[PLAYER::PLAYER_ID() /*888*/].f_267.f_138.f_1 > 1)
  	{
  		return "AH_COOLDOWN2";
  	}
  	return "AH_COOLDOWN";
  }
  
  int func_317(int iParam0)
  {
  	if (iParam0 == 8)
  	{
  		if (func_255(&(Global_2784975.f_144)) && !func_253(&(Global_2784975.f_144), Global_2785467, 0))
  		{
  			return 0;
  		}
  	}
  	else if (func_255(&(Global_2784975.f_146)) && !func_253(&(Global_2784975.f_146), Global_262145.f_19108, 1))
  	{
  		return 0;
  	}
  	return 1;
  }
  
  int func_318(int iParam0)
  {
  	int iVar0;
  	int iVar1;
  	
  	iVar0 = 0;
  	iVar1 = 97;
  	if ((iParam0 > iVar0 && iParam0 < iVar1) || (iParam0 > iVar0 + 10000 && iParam0 < iVar1 + 10000))
  	{
  		return 1;
  	}
  	return 0;
  }
  
  void func_319()
  {
  	PAD::ENABLE_CONTROL_ACTION(2, 205, true);
  	if (PAD::IS_CONTROL_JUST_PRESSED(2, 205))
  	{
  		if (!iLocal_655)
  		{
  			func_299(0);
  			GRAPHICS::CALL_SCALEFORM_MOVIE_METHOD_WITH_NUMBER(iLocal_639, "SET_INPUT_EVENT", SYSTEM::TO_FLOAT(205), -1f, -1f, -1f, -1f);
  		}
  	}
  	PAD::ENABLE_CONTROL_ACTION(2, 206, true);
  	if (PAD::IS_CONTROL_JUST_PRESSED(2, 206))
  	{
  		if (!iLocal_655)
  		{
  			func_299(1);
  			GRAPHICS::CALL_SCALEFORM_MOVIE_METHOD_WITH_NUMBER(iLocal_639, "SET_INPUT_EVENT", SYSTEM::TO_FLOAT(206), -1f, -1f, -1f, -1f);
  		}
  	}
  	PAD::ENABLE_CONTROL_ACTION(2, 207, true);
  	if (PAD::IS_CONTROL_PRESSED(2, 207))
  	{
  		GRAPHICS::CALL_SCALEFORM_MOVIE_METHOD_WITH_NUMBER(iLocal_639, "SET_INPUT_EVENT", SYSTEM::TO_FLOAT(207), -1f, -1f, -1f, -1f);
  	}
  	if (PAD::IS_CONTROL_JUST_RELEASED(2, 207))
  	{
  		GRAPHICS::CALL_SCALEFORM_MOVIE_METHOD_WITH_NUMBER(iLocal_639, "SET_INPUT_RELEASE_EVENT", SYSTEM::TO_FLOAT(207), -1f, -1f, -1f, -1f);
  	}
  	PAD::ENABLE_CONTROL_ACTION(2, 208, true);
  	if (PAD::IS_CONTROL_PRESSED(2, 208))
  	{
  		GRAPHICS::CALL_SCALEFORM_MOVIE_METHOD_WITH_NUMBER(iLocal_639, "SET_INPUT_EVENT", SYSTEM::TO_FLOAT(208), -1f, -1f, -1f, -1f);
  	}
  	if (PAD::IS_CONTROL_JUST_RELEASED(2, 208))
  	{
  		GRAPHICS::CALL_SCALEFORM_MOVIE_METHOD_WITH_NUMBER(iLocal_639, "SET_INPUT_RELEASE_EVENT", SYSTEM::TO_FLOAT(208), -1f, -1f, -1f, -1f);
  	}
  	func_323();
  	PAD::ENABLE_CONTROL_ACTION(2, 201, true);
  	if (PAD::IS_CONTROL_JUST_PRESSED(2, 201))
  	{
  		GRAPHICS::CALL_SCALEFORM_MOVIE_METHOD_WITH_NUMBER(iLocal_639, "SET_INPUT_EVENT", SYSTEM::TO_FLOAT(201), -1f, -1f, -1f, -1f);
  	}
  	PAD::ENABLE_CONTROL_ACTION(2, 202, true);
  	if (PAD::IS_CONTROL_JUST_PRESSED(2, 202))
  	{
  		GRAPHICS::CALL_SCALEFORM_MOVIE_METHOD_WITH_NUMBER(iLocal_639, "SET_INPUT_EVENT", SYSTEM::TO_FLOAT(202), -1f, -1f, -1f, -1f);
  	}
  	if (PAD::IS_CONTROL_JUST_RELEASED(2, 202))
  	{
  		func_322();
  	}
  	PAD::ENABLE_CONTROL_ACTION(2, 203, true);
  	if (PAD::IS_CONTROL_JUST_PRESSED(2, 203))
  	{
  		GRAPHICS::CALL_SCALEFORM_MOVIE_METHOD_WITH_NUMBER(iLocal_639, "SET_INPUT_EVENT", SYSTEM::TO_FLOAT(203), -1f, -1f, -1f, -1f);
  	}
  	if (PAD::_IS_USING_KEYBOARD_2(2))
  	{
  		func_321();
  		if (PAD::IS_CONTROL_JUST_RELEASED(2, 237))
  		{
  			GRAPHICS::CALL_SCALEFORM_MOVIE_METHOD_WITH_NUMBER(iLocal_639, "SET_INPUT_RELEASE_EVENT", SYSTEM::TO_FLOAT(237), -1f, -1f, -1f, -1f);
  		}
  		if (PAD::IS_CONTROL_JUST_RELEASED(2, 238))
  		{
  			GRAPHICS::CALL_SCALEFORM_MOVIE_METHOD_WITH_NUMBER(iLocal_639, "SET_INPUT_RELEASE_EVENT", SYSTEM::TO_FLOAT(238), -1f, -1f, -1f, -1f);
  		}
  		func_320(0, 1);
  	}
  	else
  	{
  		func_320(1, 1);
  	}
  	if ((PAD::IS_CONTROL_JUST_PRESSED(2, 204) || PAD::IS_DISABLED_CONTROL_JUST_PRESSED(2, 204)) && !PAD::_IS_USING_KEYBOARD(2))
  	{
  		func_408(0, 1);
  	}
  }
  
  void func_320(bool bParam0, bool bParam1)
  {
  	int iVar0;
  	int iVar1;
  	int iVar2;
  	int iVar3;
  	bool bVar4;
  	
  	if (bParam0)
  	{
  		PAD::ENABLE_CONTROL_ACTION(2, 195, true);
  		PAD::ENABLE_CONTROL_ACTION(2, 196, true);
  		iVar0 = PAD::GET_CONTROL_VALUE(2, 195);
  		iVar1 = PAD::GET_CONTROL_VALUE(2, 196);
  		if (((iVar0 != 127 || iLocal_647 != 127) || iVar1 != 127) || iLocal_648 != 127)
  		{
  			GRAPHICS::BEGIN_SCALEFORM_MOVIE_METHOD(iLocal_639, "SET_ANALOG_STICK_INPUT");
  			iLocal_647 = iVar0;
  			iLocal_648 = iVar1;
  			GRAPHICS::SCALEFORM_MOVIE_METHOD_ADD_PARAM_BOOL(true);
  			GRAPHICS::SCALEFORM_MOVIE_METHOD_ADD_PARAM_INT(iLocal_647);
  			GRAPHICS::SCALEFORM_MOVIE_METHOD_ADD_PARAM_INT(iLocal_648);
  			GRAPHICS::SCALEFORM_MOVIE_METHOD_ADD_PARAM_BOOL(false);
  			GRAPHICS::END_SCALEFORM_MOVIE_METHOD();
  		}
  	}
  	if (bParam1)
  	{
  		PAD::ENABLE_CONTROL_ACTION(2, 197, true);
  		PAD::ENABLE_CONTROL_ACTION(2, 198, true);
  		iVar2 = PAD::GET_CONTROL_VALUE(2, 197);
  		iVar3 = PAD::GET_CONTROL_VALUE(2, 198);
  		if (((iVar2 != 127 || iLocal_649 != 127) || iVar3 != 127) || iLocal_650 != 127)
  		{
  			bVar4 = (PAD::IS_CONTROL_PRESSED(2, 242) || PAD::IS_DISABLED_CONTROL_PRESSED(2, 242));
  			if (!bVar4)
  			{
  				bVar4 = (PAD::IS_CONTROL_PRESSED(2, 241) || PAD::IS_DISABLED_CONTROL_PRESSED(2, 241));
  			}
  			GRAPHICS::BEGIN_SCALEFORM_MOVIE_METHOD(iLocal_639, "SET_ANALOG_STICK_INPUT");
  			iLocal_649 = iVar2;
  			iLocal_650 = iVar3;
  			GRAPHICS::SCALEFORM_MOVIE_METHOD_ADD_PARAM_BOOL(false);
  			GRAPHICS::SCALEFORM_MOVIE_METHOD_ADD_PARAM_INT(iLocal_649);
  			GRAPHICS::SCALEFORM_MOVIE_METHOD_ADD_PARAM_INT(iLocal_650);
  			GRAPHICS::SCALEFORM_MOVIE_METHOD_ADD_PARAM_BOOL(bVar4);
  			GRAPHICS::END_SCALEFORM_MOVIE_METHOD();
  		}
  	}
  }
  
  void func_321()
  {
  	fLocal_643 = PAD::GET_DISABLED_CONTROL_NORMAL(2, 239);
  	fLocal_644 = PAD::GET_DISABLED_CONTROL_NORMAL(2, 240);
  	if (fLocal_643 != fLocal_645 || fLocal_644 != fLocal_646)
  	{
  		GRAPHICS::BEGIN_SCALEFORM_MOVIE_METHOD(iLocal_639, "SET_MOUSE_INPUT");
  		GRAPHICS::SCALEFORM_MOVIE_METHOD_ADD_PARAM_FLOAT(fLocal_643);
  		GRAPHICS::SCALEFORM_MOVIE_METHOD_ADD_PARAM_FLOAT(fLocal_644);
  		GRAPHICS::END_SCALEFORM_MOVIE_METHOD();
  		fLocal_645 = fLocal_643;
  		fLocal_646 = fLocal_644;
  	}
  	PAD::ENABLE_CONTROL_ACTION(2, 237, true);
  	if (PAD::IS_CONTROL_JUST_PRESSED(2, 237))
  	{
  		GRAPHICS::CALL_SCALEFORM_MOVIE_METHOD_WITH_NUMBER(iLocal_639, "SET_INPUT_EVENT", SYSTEM::TO_FLOAT(237), -1f, -1f, -1f, -1f);
  	}
  	PAD::ENABLE_CONTROL_ACTION(2, 238, true);
  	if (PAD::IS_CONTROL_JUST_PRESSED(2, 238))
  	{
  		GRAPHICS::CALL_SCALEFORM_MOVIE_METHOD_WITH_NUMBER(iLocal_639, "SET_INPUT_EVENT", SYSTEM::TO_FLOAT(202), -1f, -1f, -1f, -1f);
  		func_322();
  	}
  }
  
  void func_322()
  {
  	if (iLocal_655)
  	{
  		func_284();
  	}
  	else if (iLocal_619 == 2)
  	{
  		func_299(0);
  	}
  	else if (func_303() && iLocal_619 == 1)
  	{
  		func_304(1, 1);
  		iLocal_638 = 2000;
  	}
  	else if (func_76(0) > 0 && iLocal_619 == 0)
  	{
  		func_281();
  	}
  	else
  	{
  		func_408(0, 1);
  	}
  }
  
  void func_323()
  {
  	PAD::ENABLE_CONTROL_ACTION(2, 188, true);
  	if (PAD::IS_CONTROL_JUST_PRESSED(2, 188))
  	{
  		GRAPHICS::CALL_SCALEFORM_MOVIE_METHOD_WITH_NUMBER(iLocal_639, "SET_INPUT_EVENT", SYSTEM::TO_FLOAT(188), -1f, -1f, -1f, -1f);
  	}
  	PAD::ENABLE_CONTROL_ACTION(2, 187, true);
  	if (PAD::IS_CONTROL_JUST_PRESSED(2, 187))
  	{
  		GRAPHICS::CALL_SCALEFORM_MOVIE_METHOD_WITH_NUMBER(iLocal_639, "SET_INPUT_EVENT", SYSTEM::TO_FLOAT(187), -1f, -1f, -1f, -1f);
  	}
  	PAD::ENABLE_CONTROL_ACTION(2, 189, true);
  	if (PAD::IS_CONTROL_JUST_PRESSED(2, 189))
  	{
  		GRAPHICS::CALL_SCALEFORM_MOVIE_METHOD_WITH_NUMBER(iLocal_639, "SET_INPUT_EVENT", SYSTEM::TO_FLOAT(189), -1f, -1f, -1f, -1f);
  	}
  	PAD::ENABLE_CONTROL_ACTION(2, 190, true);
  	if (PAD::IS_CONTROL_JUST_PRESSED(2, 190))
  	{
  		GRAPHICS::CALL_SCALEFORM_MOVIE_METHOD_WITH_NUMBER(iLocal_639, "SET_INPUT_EVENT", SYSTEM::TO_FLOAT(190), -1f, -1f, -1f, -1f);
  	}
  }
  
  void func_324()
  {
  	char* sVar0;
  	
  	if (!MISC::IS_BIT_SET(iLocal_620, 0) && !MISC::IS_BIT_SET(iLocal_620, 2))
  	{
  		if (func_329(16))
  		{
  			sVar0 = "IE_SEC_TUT7";
  			iLocal_653 = 9000;
  			MISC::SET_BIT(&Global_1946781, 16);
  			func_326(&iLocal_651, &iLocal_652, 18);
  		}
  		else if (func_329(17))
  		{
  			sVar0 = "IE_SEC_TUT8";
  			iLocal_653 = 9500;
  			MISC::SET_BIT(&Global_1946781, 17);
  			func_326(&iLocal_651, &iLocal_652, 21);
  		}
  		else if (func_329(18))
  		{
  			sVar0 = "IE_SEC_TUT13";
  			iLocal_653 = 10000;
  			MISC::SET_BIT(&Global_1946781, 18);
  			func_326(&iLocal_651, &iLocal_652, 36);
  		}
  		else if (func_329(19))
  		{
  			sVar0 = "IE_SEC_TUT9";
  			iLocal_653 = 10000;
  			MISC::SET_BIT(&Global_1946781, 19);
  			func_326(&iLocal_651, &iLocal_652, 24);
  		}
  		else if (func_329(20))
  		{
  			sVar0 = "IE_SEC_TUT10";
  			iLocal_653 = 8500;
  			MISC::SET_BIT(&Global_1946781, 20);
  			func_326(&iLocal_651, &iLocal_652, 27);
  		}
  		else if (func_329(21))
  		{
  			sVar0 = "IE_SEC_TUT11";
  			iLocal_653 = 8500;
  			MISC::SET_BIT(&Global_1946781, 21);
  			func_326(&iLocal_651, &iLocal_652, 30);
  		}
  		else if (func_329(22))
  		{
  			sVar0 = "IE_SEC_TUT12";
  			iLocal_653 = 8000;
  			MISC::SET_BIT(&Global_1946781, 22);
  			func_326(&iLocal_651, &iLocal_652, 33);
  		}
  	}
  	if (!MISC::IS_STRING_NULL_OR_EMPTY(sVar0) && !MISC::IS_BIT_SET(iLocal_620, 0))
  	{
  		func_325(sVar0, iLocal_653);
  		MISC::SET_BIT(&iLocal_620, 0);
  	}
  	else if (MISC::IS_BIT_SET(iLocal_620, 0))
  	{
  		if (!func_255(&uLocal_824))
  		{
  			func_254(&uLocal_824, 0, 0);
  		}
  		else if (func_253(&uLocal_824, iLocal_653, 0))
  		{
  			MISC::CLEAR_BIT(&iLocal_620, 0);
  			iLocal_653 = 0;
  			func_251(&uLocal_824);
  			if (func_376())
  			{
  				MISC::SET_BIT(&iLocal_620, 1);
  			}
  		}
  	}
  }
  
  void func_325(char* sParam0, int iParam1)
  {
  	HUD::BEGIN_TEXT_COMMAND_DISPLAY_HELP(sParam0);
  	HUD::END_TEXT_COMMAND_DISPLAY_HELP(0, false, true, iParam1);
  }
  
  void func_326(int* iParam0, int iParam1, int iParam2)
  {
  	int iVar0;
  	
  	iVar0 = func_328(*iParam0, *iParam1, iParam2);
  	if (iVar0 < 3)
  	{
  		func_327(iParam0, iParam1, iParam2, iVar0 + 1);
  	}
  }
  
  void func_327(int* iParam0, var uParam1, var uParam2, int iParam3)
  {
  	int iVar0;
  	int iVar1;
  	bool bVar2;
  	int iVar3;
  	
  	iVar0 = uParam2;
  	if (iParam3 > 3)
  	{
  		iParam3 = 3;
  	}
  	iVar1 = 0;
  	while (iVar1 < iParam3)
  	{
  		bVar2 = false;
  		iVar3 = (iVar0 + iVar1);
  		if (iVar3 > 31)
  		{
  			bVar2 = true;
  			iVar3 = (iVar3 - 32);
  		}
  		if (!bVar2)
  		{
  			MISC::SET_BIT(iParam0, iVar3);
  		}
  		else
  		{
  			MISC::SET_BIT(iParam0, iVar3);
  		}
  		iVar1++;
  	}
  	if (*iParam0 != 0)
  	{
  		func_6(5369, *iParam0, -1, 1, 0);
  	}
  	if (*uParam1 != 0)
  	{
  		func_6(5370, *uParam1, -1, 1, 0);
  	}
  }
  
  int func_328(int iParam0, int iParam1, var uParam2)
  {
  	bool bVar0;
  	int iVar1;
  	int iVar2;
  	int iVar3;
  	int iVar4;
  	
  	bVar0 = false;
  	iVar3 = uParam2;
  	iVar1 = 0;
  	while (iVar1 < 3)
  	{
  		iVar4 = (iVar3 + iVar1);
  		if (iVar4 > 31)
  		{
  			bVar0 = true;
  			iVar4 = (iVar4 - 32);
  		}
  		if (!bVar0)
  		{
  			if (MISC::IS_BIT_SET(iParam0, iVar4))
  			{
  				iVar2++;
  			}
  		}
  		else if (MISC::IS_BIT_SET(iParam1, iVar4))
  		{
  			iVar2++;
  		}
  		iVar1++;
  	}
  	return iVar2;
  }
  
  int func_329(int iParam0)
  {
  	int iVar0;
  	
  	iVar0 = iParam0;
  	switch (iParam0)
  	{
  		case 16:
  			if ((!func_331(iLocal_651, iLocal_652, 18) && !MISC::IS_BIT_SET(Global_1946781, iVar0)) && !MISC::IS_BIT_SET(iLocal_620, 4))
  			{
  				return 1;
  			}
  			break;
  		
  		case 17:
  			if (((!func_331(iLocal_651, iLocal_652, 21) && !MISC::IS_BIT_SET(Global_1946781, iVar0)) && !MISC::IS_BIT_SET(iLocal_620, 5)) && iLocal_619 == 2)
  			{
  				return 1;
  			}
  			break;
  		
  		case 18:
  			if (((!func_331(iLocal_651, iLocal_652, 24) && !MISC::IS_BIT_SET(Global_1946781, iVar0)) && !MISC::IS_BIT_SET(iLocal_620, 5)) && iLocal_619 == 2)
  			{
  				return 1;
  			}
  			break;
  		
  		case 19:
  			if (((!func_331(iLocal_651, iLocal_652, 27) && !MISC::IS_BIT_SET(Global_1946781, iVar0)) && !MISC::IS_BIT_SET(iLocal_620, 6)) && iLocal_619 == 1)
  			{
  				return 1;
  			}
  			break;
  		
  		case 20:
  			if ((((!func_331(iLocal_651, iLocal_652, 30) && !MISC::IS_BIT_SET(Global_1946781, iVar0)) && !MISC::IS_BIT_SET(iLocal_620, 6)) && iLocal_619 == 1) && func_330())
  			{
  				return 1;
  			}
  			break;
  		
  		case 21:
  			if ((!func_331(iLocal_651, iLocal_652, 33) && !MISC::IS_BIT_SET(Global_1946781, iVar0)) && !func_317(8))
  			{
  				return 1;
  			}
  			break;
  		
  		case 22:
  			if (((!func_331(iLocal_651, iLocal_652, 36) && !MISC::IS_BIT_SET(Global_1946781, iVar0)) && !MISC::IS_BIT_SET(iLocal_620, 5)) && iLocal_619 == 2)
  			{
  				return 1;
  			}
  			break;
  	}
  	return 0;
  }
  
  int func_330()
  {
  	int iVar0;
  	
  	iVar0 = 2001;
  	while (iVar0 <= (2011 - 1))
  	{
  		if (func_307(iVar0))
  		{
  			return 1;
  		}
  		iVar0++;
  	}
  	return 0;
  }
  
  bool func_331(int iParam0, int iParam1, int iParam2)
  {
  	return func_328(iParam0, iParam1, iParam2) == 3;
  }
  
  void func_332()
  {
  	if (iLocal_654 != -1)
  	{
  		func_333(iLocal_654);
  	}
  }
  
  void func_333(int iParam0)
  {
  	if (func_334(&uLocal_657, "IMMECAU", func_354(iParam0), 8, 0, 0, 0))
  	{
  		iLocal_654 = -1;
  	}
  }
  
  bool func_334(var uParam0, char* sParam1, char* sParam2, int iParam3, int iParam4, int iParam5, int iParam6)
  {
  	func_353(uParam0, 145, sParam1, iParam4, iParam5, iParam6);
  	if (iParam3 > 7)
  	{
  		if (iParam3 < 12)
  		{
  			iParam3 = 7;
  		}
  	}
  	Global_21292 = 0;
  	Global_21294 = 0;
  	Global_21299 = 0;
  	Global_22276 = 0;
  	Global_22278 = 0;
  	Global_22282 = 0;
  	Global_2883585 = 0;
  	return func_335(sParam2, iParam3, 0);
  }
  
  int func_335(char* sParam0, int iParam1, bool bParam2)
  {
  	Global_21286 = 0;
  	if (Global_21285 == 0 || Global_21287 == 2)
  	{
  		if (Global_21285 != 0)
  		{
  			if (iParam1 > Global_21287)
  			{
  				if (Global_21292 == 0)
  				{
  					AUDIO::STOP_SCRIPTED_CONVERSATION(false);
  					Global_19954.f_1 = 3;
  					Global_21285 = 0;
  					Global_21286 = 1;
  					Global_21338 = 0;
  					Global_21281 = 0;
  					Global_21282 = 0;
  					Global_21296 = 0;
  					Global_21295 = 0;
  					Global_19953 = 0;
  				}
  				else
  				{
  					func_294();
  					return 0;
  				}
  			}
  			else
  			{
  				return 0;
  			}
  		}
  		if (AUDIO::IS_SCRIPTED_CONVERSATION_ONGOING())
  		{
  			return 0;
  		}
  		if (func_352(8, -1))
  		{
  			return 0;
  		}
  		Global_21361 = { Global_21355 };
  		func_351();
  		Global_20574 = { Global_20739 };
  		Global_21291 = Global_21292;
  		Global_21298 = Global_21299;
  		Global_2883586 = Global_2883585;
  		Global_21300 = { Global_21316 };
  		Global_21293 = Global_21294;
  		Global_22275 = Global_22276;
  		Global_22283 = { Global_22289 };
  		Global_22277 = Global_22278;
  		Global_22279 = Global_22280;
  		Global_22281 = Global_22282;
  		Global_20904.f_370 = Global_22274;
  		Global_20904.f_368 = Global_22272;
  		Global_20904.f_369 = Global_22273;
  		Global_21281 = Global_21282;
  		if (Global_21291)
  		{
  			MISC::CLEAR_BIT(&Global_7824, 20);
  			MISC::CLEAR_BIT(&Global_7825, 17);
  			MISC::CLEAR_BIT(&Global_7826, 0);
  			if (bParam2)
  			{
  				func_343();
  				if (Global_8629[Global_19954 /*2811*/][0 /*281*/].f_259 == 2)
  				{
  					if (iParam1 == 13)
  					{
  					}
  					else
  					{
  						return 0;
  					}
  				}
  				if (Global_19954.f_1 > 3)
  				{
  					return 0;
  				}
  			}
  			if (Global_19920 == 1)
  			{
  				return 0;
  			}
  			if (PLAYER::IS_PLAYER_PLAYING(PLAYER::PLAYER_ID()))
  			{
  				if (PED::IS_PED_IN_MELEE_COMBAT(PLAYER::PLAYER_PED_ID()))
  				{
  					return 0;
  				}
  				if (func_342())
  				{
  					return 0;
  				}
  				if (TASK::IS_PED_SPRINTING(PLAYER::PLAYER_PED_ID()))
  				{
  					return 0;
  				}
  				if (PED::IS_PED_RAGDOLL(PLAYER::PLAYER_PED_ID()))
  				{
  					return 0;
  				}
  				if (PED::IS_PED_IN_PARACHUTE_FREE_FALL(PLAYER::PLAYER_PED_ID()))
  				{
  					return 0;
  				}
  				if (WEAPON::GET_IS_PED_GADGET_EQUIPPED(PLAYER::PLAYER_PED_ID(), joaat("gadget_parachute")))
  				{
  					return 0;
  				}
  				if (!Global_77852)
  				{
  					if (ENTITY::IS_ENTITY_IN_WATER(PLAYER::PLAYER_PED_ID()))
  					{
  						return 0;
  					}
  					if (PLAYER::IS_PLAYER_CLIMBING(PLAYER::PLAYER_ID()))
  					{
  						return 0;
  					}
  					if (PED::IS_PED_PLANTING_BOMB(PLAYER::PLAYER_PED_ID()))
  					{
  						return 0;
  					}
  					if (PLAYER::IS_SPECIAL_ABILITY_ACTIVE(PLAYER::PLAYER_ID(), 0))
  					{
  						return 0;
  					}
  				}
  			}
  			if (func_341())
  			{
  				return 0;
  			}
  			else
  			{
  				switch (Global_19954.f_1)
  				{
  					case 7:
  						return 0;
  						break;
  					
  					case 8:
  						return 0;
  						break;
  					
  					case 9:
  						break;
  					
  					case 10:
  						break;
  					
  					default:
  						break;
  				}
  				if (MISC::IS_BIT_SET(Global_7824, 9))
  				{
  					return 0;
  				}
  			}
  			func_340();
  			Global_21295 = bParam2;
  		}
  		Global_21287 = iParam1;
  		StringCopy(&Global_20904, sParam0, 24);
  		Global_20151 = 0;
  		func_339();
  		func_336();
  		return 1;
  	}
  	if (Global_21285 == 5)
  	{
  		return 0;
  	}
  	if (iParam1 < Global_21287 || iParam1 == Global_21287)
  	{
  		return 0;
  	}
  	if (iParam1 == 2)
  	{
  	}
  	else
  	{
  		func_294();
  	}
  	return 0;
  }
  
  void func_336()
  {
  	if (!func_337())
  	{
  		return;
  	}
  	if (Global_21291)
  	{
  		MemCopy(&(Global_1973333.f_1), {Global_20904}, 4);
  		Global_1973333 = Global_7139;
  		Global_1973333.f_6 = Global_21295;
  	}
  }
  
  int func_337()
  {
  	if (!Global_262145.f_28526)
  	{
  		return 0;
  	}
  	if (!Global_77852)
  	{
  		return 0;
  	}
  	if (PLAYER::PLAYER_ID() == func_3())
  	{
  		return 0;
  	}
  	if (func_338(PLAYER::PLAYER_ID()))
  	{
  		return 0;
  	}
  	if (MISC::IS_BIT_SET(Global_1893548[PLAYER::PLAYER_ID() /*600*/].f_1, 7))
  	{
  		return 0;
  	}
  	if (NETWORK::NETWORK_IS_ACTIVITY_SESSION())
  	{
  		return 0;
  	}
  	return 1;
  }
  
  bool func_338(int iParam0)
  {
  	return func_84(iParam0, 20);
  }
  
  void func_339()
  {
  	int iVar0;
  	
  	iVar0 = 0;
  	while (iVar0 <= 69)
  	{
  		StringCopy(&(Global_20153[iVar0 /*6*/]), "", 24);
  		iVar0++;
  	}
  	AUDIO::STOP_SCRIPTED_CONVERSATION(false);
  	Global_21285 = 1;
  }
  
  void func_340()
  {
  	Global_21338 = Global_21337;
  	Global_21332 = Global_21333;
  	Global_21379 = { Global_21367 };
  	Global_21385 = { Global_21373 };
  	Global_21340 = Global_21339;
  	Global_21409 = { Global_21391 };
  	Global_21415 = { Global_21397 };
  	Global_21421 = { Global_21403 };
  	Global_21427 = { Global_21433 };
  	Global_7139 = Global_7140;
  	Global_7141 = Global_7142;
  	Global_21296 = Global_21297;
  	Global_21298 = Global_21299;
  	Global_21300 = { Global_21316 };
  	Global_21289 = Global_21290;
  	Global_22301 = 0;
  	Global_21334 = 0;
  	Global_21335 = 0;
  	MISC::CLEAR_BIT(&Global_7825, 16);
  }
  
  int func_341()
  {
  	if (Global_19954.f_1 == 1 || Global_19954.f_1 == 0)
  	{
  		return 1;
  	}
  	return 0;
  }
  
  int func_342()
  {
  	int iVar0;
  	int iVar1;
  	
  	if (Global_77852)
  	{
  		iVar0 = 0;
  		WEAPON::GET_CURRENT_PED_WEAPON(PLAYER::PLAYER_PED_ID(), &iVar1, true);
  		if (PLAYER::IS_PLAYER_PLAYING(PLAYER::PLAYER_ID()))
  		{
  			if ((iVar1 == joaat("weapon_sniperrifle") || iVar1 == joaat("weapon_heavysniper")) || iVar1 == joaat("weapon_remotesniper"))
  			{
  				iVar0 = 1;
  			}
  		}
  		if (CAM::IS_AIM_CAM_ACTIVE() && iVar0 == 1)
  		{
  			return 1;
  		}
  		else
  		{
  			return 0;
  		}
  	}
  	if (PLAYER::IS_PLAYER_PLAYING(PLAYER::PLAYER_ID()))
  	{
  		if (PED::GET_PED_CONFIG_FLAG(PLAYER::PLAYER_PED_ID(), 78, true))
  		{
  			return 1;
  		}
  		else
  		{
  			return 0;
  		}
  	}
  	return 1;
  }
  
  void func_343()
  {
  	if (func_350(14))
  	{
  		if (!ENTITY::IS_ENTITY_DEAD(PLAYER::PLAYER_PED_ID(), false))
  		{
  			if (ENTITY::GET_ENTITY_MODEL(PLAYER::PLAYER_PED_ID()) == Global_112915.f_28050[0 /*29*/])
  			{
  				Global_19954 = 0;
  			}
  			else if (ENTITY::GET_ENTITY_MODEL(PLAYER::PLAYER_PED_ID()) == Global_112915.f_28050[1 /*29*/])
  			{
  				Global_19954 = 1;
  			}
  			else if (ENTITY::GET_ENTITY_MODEL(PLAYER::PLAYER_PED_ID()) == Global_112915.f_28050[2 /*29*/])
  			{
  				Global_19954 = 2;
  			}
  			else
  			{
  				Global_19954 = 0;
  			}
  		}
  	}
  	else
  	{
  		Global_19954 = func_344();
  		if (Global_19954 == 145)
  		{
  			Global_19954 = 3;
  		}
  		if (Global_77852)
  		{
  			Global_19954 = 3;
  		}
  		if (Global_19954 > 3)
  		{
  			Global_19954 = 3;
  		}
  	}
  }
  
  var func_344()
  {
  	func_345();
  	return Global_112915.f_2363.f_539.f_4321;
  }
  
  void func_345()
  {
  	int iVar0;
  	
  	if (ENTITY::DOES_ENTITY_EXIST(PLAYER::PLAYER_PED_ID()))
  	{
  		if (func_348(Global_112915.f_2363.f_539.f_4321) != ENTITY::GET_ENTITY_MODEL(PLAYER::PLAYER_PED_ID()))
  		{
  			iVar0 = func_347(PLAYER::PLAYER_PED_ID());
  			if (func_346(iVar0) && (!func_350(14) || Global_111866))
  			{
  				if (Global_112915.f_2363.f_539.f_4321 != iVar0 && func_346(Global_112915.f_2363.f_539.f_4321))
  				{
  					Global_112915.f_2363.f_539.f_4322 = Global_112915.f_2363.f_539.f_4321;
  				}
  				Global_112915.f_2363.f_539.f_4323 = iVar0;
  				Global_112915.f_2363.f_539.f_4321 = iVar0;
  				return;
  			}
  		}
  		else
  		{
  			if (Global_112915.f_2363.f_539.f_4321 != 145)
  			{
  				Global_112915.f_2363.f_539.f_4323 = Global_112915.f_2363.f_539.f_4321;
  			}
  			return;
  		}
  	}
  	Global_112915.f_2363.f_539.f_4321 = 145;
  }
  
  bool func_346(int iParam0)
  {
  	return iParam0 < 3;
  }
  
  int func_347(int iParam0)
  {
  	int iVar0;
  	int iVar1;
  	
  	if (ENTITY::DOES_ENTITY_EXIST(iParam0))
  	{
  		iVar1 = ENTITY::GET_ENTITY_MODEL(iParam0);
  		iVar0 = 0;
  		while (iVar0 <= 2)
  		{
  			if (func_348(iVar0) == iVar1)
  			{
  				return iVar0;
  			}
  			iVar0++;
  		}
  	}
  	return 145;
  }
  
  int func_348(int iParam0)
  {
  	if (func_346(iParam0))
  	{
  		return func_349(iParam0);
  	}
  	else if (iParam0 != 145)
  	{
  	}
  	return 0;
  }
  
  var func_349(int iParam0)
  {
  	return Global_1918[iParam0 /*29*/];
  }
  
  bool func_350(int iParam0)
  {
  	return Global_42596 == iParam0;
  }
  
  void func_351()
  {
  	int iVar0;
  	
  	iVar0 = 0;
  	while (iVar0 <= 15)
  	{
  		Global_20574[iVar0 /*10*/] = 0;
  		StringCopy(&(Global_20574[iVar0 /*10*/].f_1), "", 24);
  		Global_20574[iVar0 /*10*/].f_7 = 0;
  		Global_20574[iVar0 /*10*/].f_8 = 0;
  		iVar0++;
  	}
  	Global_20574.f_161 = -99;
  	Global_20574.f_162 = { 0f, 0f, 0f };
  }
  
  bool func_352(int iParam0, int iParam1)
  {
  	switch (iParam0)
  	{
  		case 5:
  			if (iParam1 > -1)
  			{
  				return Global_1644209.f_203[iParam1];
  			}
  			break;
  	}
  	return MISC::IS_BIT_SET(Global_1644209.f_1048, iParam0);
  }
  
  void func_353(var uParam0, int iParam1, char* sParam2, int iParam3, int iParam4, var uParam5)
  {
  	Global_20739 = { *uParam0 };
  	Global_7140 = iParam1;
  	StringCopy(&Global_21355, sParam2, 24);
  	Global_22274 = uParam5;
  	if (iParam3 == 0)
  	{
  		Global_22272 = 1;
  		Global_22270 = 0;
  	}
  	else
  	{
  		Global_22272 = 0;
  		Global_22270 = 1;
  	}
  	if (iParam4 == 0)
  	{
  		Global_22273 = 1;
  		Global_22271 = 0;
  	}
  	else
  	{
  		Global_22273 = 0;
  		Global_22271 = 1;
  	}
  }
  
  char* func_354(int iParam0)
  {
  	switch (iParam0)
  	{
  		case 0:
  			return "IMMEC_TUT1";
  		
  		case 1:
  			return "IMMEC_TUT2";
  		
  		case 2:
  			return "IMMEC_TUT3";
  		
  		default:
  	}
  	return "IMMEC_TUT1";
  }
  
  void func_355()
  {
  	bool bVar0;
  	
  	if (!MISC::IS_BIT_SET(iLocal_620, 2) && !func_295())
  	{
  		if (!func_357(3814, -1))
  		{
  			bVar0 = true;
  			iLocal_653 = 6750;
  			iLocal_654 = 0;
  			func_356(3814, 1, -1);
  			MISC::SET_BIT(&iLocal_620, 4);
  		}
  		else if (iLocal_619 == 2 && !func_357(3815, -1))
  		{
  			bVar0 = true;
  			iLocal_653 = 8000;
  			iLocal_654 = 1;
  			func_356(3815, 1, -1);
  			MISC::SET_BIT(&iLocal_620, 5);
  		}
  		else if (iLocal_619 == 1 && !func_357(3816, -1))
  		{
  			bVar0 = true;
  			iLocal_653 = 6000;
  			iLocal_654 = 2;
  			func_356(3816, 1, -1);
  			MISC::SET_BIT(&iLocal_620, 6);
  		}
  	}
  	if (bVar0)
  	{
  		MISC::SET_BIT(&iLocal_620, 2);
  	}
  	else if (MISC::IS_BIT_SET(iLocal_620, 2))
  	{
  		if (!func_255(&uLocal_824))
  		{
  			func_254(&uLocal_824, 0, 0);
  		}
  		else if (func_253(&uLocal_824, iLocal_653, 0))
  		{
  			MISC::CLEAR_BIT(&iLocal_620, 2);
  			iLocal_653 = 0;
  			func_251(&uLocal_824);
  			if (func_375())
  			{
  				MISC::SET_BIT(&iLocal_620, 3);
  			}
  		}
  	}
  }
  
  void func_356(int iParam0, bool bParam1, int iParam2)
  {
  	if (iParam2 == -1)
  	{
  		iParam2 = func_8();
  	}
  	STATS::_SET_PACKED_STAT_BOOL(iParam0, bParam1, iParam2);
  }
  
  bool func_357(int iParam0, int iParam1)
  {
  	if (iParam1 == -1)
  	{
  		iParam1 = func_8();
  	}
  	return STATS::_GET_PACKED_STAT_BOOL(iParam0, iParam1);
  }
  
  void func_358()
  {
  	HUD::HIDE_HUD_AND_RADAR_THIS_FRAME();
  	HUD::HIDE_SCRIPTED_HUD_COMPONENT_THIS_FRAME(19);
  	CAM::SET_GAMEPLAY_CAM_RELATIVE_PITCH(0f, 1f);
  	CAM::SET_GAMEPLAY_CAM_RELATIVE_HEADING(0f);
  	func_367();
  	if (Global_77852)
  	{
  		HUD::SHOW_HUD_COMPONENT_THIS_FRAME(4);
  		HUD::SHOW_HUD_COMPONENT_THIS_FRAME(5);
  		HUD::SHOW_HUD_COMPONENT_THIS_FRAME(13);
  		HUD::SHOW_HUD_COMPONENT_THIS_FRAME(3);
  	}
  	HUD::THEFEED_HIDE_THIS_FRAME();
  	PAD::ENABLE_CONTROL_ACTION(2, 199, true);
  	GRAPHICS::SET_SCRIPT_GFX_DRAW_ORDER(1);
  	GRAPHICS::DRAW_SCALEFORM_MOVIE_FULLSCREEN(iLocal_639, 255, 255, 255, 255, 0);
  	func_365();
  	func_362(0);
  	func_359(1);
  }
  
  void func_359(bool bParam0)
  {
  	if (bParam0)
  	{
  		func_361();
  	}
  	func_360(4, -1);
  	func_360(6, -1);
  	func_360(7, -1);
  	func_360(3, -1);
  	func_360(1, -1);
  	func_360(2, -1);
  	func_360(11, -1);
  	func_360(13, -1);
  	func_360(14, -1);
  	func_360(16, -1);
  }
  
  void func_360(int iParam0, int iParam1)
  {
  	MISC::SET_BIT(&(Global_1644209.f_1047), iParam0);
  	switch (iParam0)
  	{
  		case 5:
  			if (iParam1 > -1)
  			{
  				Global_1644209.f_170[iParam1] = 1;
  			}
  			break;
  	}
  }
  
  void func_361()
  {
  	Global_2810287.f_4599 = 0;
  }
  
  void func_362(int iParam0)
  {
  	if (func_364())
  	{
  		return;
  	}
  	if (!Global_19954.f_1 == 1)
  	{
  		if (func_363(0))
  		{
  			func_405(iParam0);
  		}
  		MISC::SET_BIT(&Global_7825, 2);
  	}
  }
  
  int func_363(int iParam0)
  {
  	if (iParam0 == 1)
  	{
  		if (Global_19954.f_1 > 3)
  		{
  			if (MISC::IS_BIT_SET(Global_7824, 14))
  			{
  				return 1;
  			}
  			else
  			{
  				return 0;
  			}
  		}
  		else
  		{
  			return 0;
  		}
  	}
  	if (SCRIPT::_GET_NUMBER_OF_REFERENCES_OF_SCRIPT_WITH_NAME_HASH(joaat("cellphone_flashhand")) > 0)
  	{
  		return 1;
  	}
  	if (Global_19954.f_1 > 3)
  	{
  		return 1;
  	}
  	return 0;
  }
  
  bool func_364()
  {
  	return MISC::IS_BIT_SET(Global_1958920, 19);
  }
  
  void func_365()
  {
  	RECORDING::_STOP_RECORDING_THIS_FRAME();
  	func_366();
  }
  
  void func_366()
  {
  	Global_22691.f_134 = 1;
  }
  
  void func_367()
  {
  	func_368(1);
  	if (!PLAYER::IS_SYSTEM_UI_BEING_DISPLAYED() && !HUD::IS_PAUSE_MENU_ACTIVE())
  	{
  		PAD::DISABLE_ALL_CONTROL_ACTIONS(0);
  		PAD::DISABLE_CONTROL_ACTION(2, 200, true);
  	}
  }
  
  void func_368(bool bParam0)
  {
  	if (bParam0)
  	{
  		if (func_369())
  		{
  			Global_2714627.f_41 = 1;
  		}
  	}
  	else
  	{
  		Global_2714627.f_41 = 0;
  	}
  }
  
  bool func_369()
  {
  	return MISC::IS_BIT_SET(Global_2714627.f_2, 11);
  }
  
  bool func_370(char* sParam0)
  {
  	HUD::BEGIN_TEXT_COMMAND_IS_THIS_HELP_MESSAGE_BEING_DISPLAYED(sParam0);
  	return HUD::END_TEXT_COMMAND_IS_THIS_HELP_MESSAGE_BEING_DISPLAYED(0);
  }
  
  bool func_371()
  {
  	return Global_1964903 != -1;
  }
  
  void func_372()
  {
  	func_374(1);
  	func_373(&uLocal_657, 2, 0, "SECUROMECH", 0, 1);
  }
  
  void func_373(var uParam0, int iParam1, int iParam2, char* sParam3, int iParam4, int iParam5)
  {
  	if ((uParam0[iParam1 /*10*/])->f_7 == 1)
  	{
  	}
  	(*uParam0)[iParam1 /*10*/] = iParam2;
  	StringCopy(&((uParam0[iParam1 /*10*/])->f_1), sParam3, 24);
  	(uParam0[iParam1 /*10*/])->f_7 = 1;
  	(uParam0[iParam1 /*10*/])->f_8 = iParam4;
  	(uParam0[iParam1 /*10*/])->f_9 = iParam5;
  	if (!Global_77852)
  	{
  		if (!PED::IS_PED_INJURED(iParam2))
  		{
  			if ((uParam0[iParam1 /*10*/])->f_8 == 0)
  			{
  				PED::SET_PED_CAN_PLAY_AMBIENT_ANIMS(iParam2, false);
  			}
  			else
  			{
  				PED::SET_PED_CAN_PLAY_AMBIENT_ANIMS(iParam2, true);
  			}
  		}
  		if (!PED::IS_PED_INJURED(iParam2))
  		{
  			if ((uParam0[iParam1 /*10*/])->f_9 == 0)
  			{
  				PED::SET_PED_CAN_USE_AUTO_CONVERSATION_LOOKAT(iParam2, false);
  			}
  			else
  			{
  				PED::SET_PED_CAN_USE_AUTO_CONVERSATION_LOOKAT(iParam2, true);
  			}
  		}
  	}
  }
  
  void func_374(bool bParam0)
  {
  	if (bParam0)
  	{
  		Global_1835497 = 1;
  	}
  	else
  	{
  		Global_1835497 = 0;
  	}
  }
  
  int func_375()
  {
  	if ((func_357(3814, -1) && func_357(3815, -1)) && func_357(3816, -1))
  	{
  		return 1;
  	}
  	return 0;
  }
  
  int func_376()
  {
  	if (((((func_331(iLocal_651, iLocal_652, 18) && func_331(iLocal_651, iLocal_652, 21)) && func_331(iLocal_651, iLocal_652, 24)) && func_331(iLocal_651, iLocal_652, 27)) && func_331(iLocal_651, iLocal_652, 30)) && func_331(iLocal_651, iLocal_652, 33))
  	{
  		return 1;
  	}
  	return 0;
  }
  
  void func_377()
  {
  	iLocal_651 = func_10(5369, -1, 0);
  	iLocal_652 = func_10(5370, -1, 0);
  }
  
  int func_378(bool bParam0, bool bParam1, int iParam2, bool bParam3)
  {
  	int iVar0;
  	
  	iVar0 = 0;
  	if (MISC::IS_PC_VERSION())
  	{
  		if (CUTSCENE::_0xA0FE76168A189DDB() != bParam0 && iParam2)
  		{
  			CUTSCENE::_0x20746F7B1032A3C7(bParam0, bParam1, true, bParam3);
  			iVar0 = 1;
  		}
  	}
  	return iVar0;
  }
  
  void func_379()
  {
  	int iVar0;
  	int iVar1;
  	int iVar2;
  	
  	iVar0 = 0;
  	while (iVar0 < 40)
  	{
  		iVar1 = Global_1853128[PLAYER::PLAYER_ID() /*888*/].f_267.f_138.f_2[iVar0];
  		if (iVar1 > 1000)
  		{
  			iVar1 = (iVar1 - 1000);
  		}
  		if (iVar1 > 0 && iVar1 < 97)
  		{
  			func_385(iVar1, 0);
  		}
  		iVar0++;
  	}
  	iVar0 = 2001;
  	while (iVar0 <= (2011 - 1))
  	{
  		func_382(iVar0);
  		iVar0++;
  	}
  	if (!func_317(8))
  	{
  		iVar2 = func_381(8);
  		GRAPHICS::BEGIN_SCALEFORM_MOVIE_METHOD(iLocal_639, "SET_COOLDOWN");
  		GRAPHICS::SCALEFORM_MOVIE_METHOD_ADD_PARAM_INT(iVar2);
  		GRAPHICS::END_SCALEFORM_MOVIE_METHOD();
  	}
  	func_380();
  }
  
  void func_380()
  {
  	GRAPHICS::BEGIN_SCALEFORM_MOVIE_METHOD(iLocal_639, "SHOW_EXPORT_SCREEN");
  	GRAPHICS::END_SCALEFORM_MOVIE_METHOD();
  }
  
  int func_381(int iParam0)
  {
  	int iVar0;
  	
  	if (iParam0 == 8)
  	{
  		iVar0 = (Global_2785467 - MISC::ABSI(NETWORK::GET_TIME_DIFFERENCE(NETWORK::GET_NETWORK_TIME(), Global_2784975.f_144)));
  		iVar0 = (iVar0 / 1000);
  	}
  	else
  	{
  		iVar0 = (Global_262145.f_19108 - MISC::ABSI(NETWORK::GET_TIME_DIFFERENCE(MISC::GET_GAME_TIMER(), Global_2784975.f_146)));
  		iVar0 = (iVar0 / 1000);
  	}
  	return iVar0;
  }
  
  void func_382(int iParam0)
  {
  	int iVar0;
  	
  	if (func_384(iParam0))
  	{
  		return;
  	}
  	iVar0 = func_383(iParam0, 1);
  	GRAPHICS::BEGIN_SCALEFORM_MOVIE_METHOD(iLocal_639, "UPDATE_COLLECTION");
  	GRAPHICS::SCALEFORM_MOVIE_METHOD_ADD_PARAM_INT(iParam0);
  	GRAPHICS::SCALEFORM_MOVIE_METHOD_ADD_PARAM_INT(iVar0);
  	GRAPHICS::SCALEFORM_MOVIE_METHOD_ADD_PARAM_BOOL(false);
  	GRAPHICS::END_SCALEFORM_MOVIE_METHOD();
  }
  
  int func_383(int iParam0, int iParam1)
  {
  	int iVar0;
  	int iVar1;
  	
  	iVar0 = func_305(iParam0);
  	if (iParam1 > iVar0)
  	{
  		iParam1 = iVar0;
  	}
  	switch (iParam0)
  	{
  		case 2001:
  			iVar1 = Global_262145.f_19322;
  			break;
  		
  		case 2002:
  			iVar1 = Global_262145.f_19323;
  			break;
  		
  		case 2003:
  			iVar1 = Global_262145.f_19324;
  			break;
  		
  		case 2004:
  			iVar1 = Global_262145.f_19325;
  			break;
  		
  		case 2005:
  			iVar1 = Global_262145.f_19326;
  			break;
  		
  		case 2006:
  			iVar1 = Global_262145.f_19327;
  			break;
  		
  		case 2007:
  			iVar1 = Global_262145.f_19328;
  			break;
  		
  		case 2008:
  			iVar1 = Global_262145.f_19329;
  			break;
  		
  		case 2009:
  			iVar1 = Global_262145.f_19330;
  			break;
  		
  		case 2010:
  			iVar1 = Global_262145.f_19331;
  			break;
  	}
  	if (iParam1 != -1)
  	{
  		iVar0 = iParam1;
  	}
  	return (iVar0 * iVar1);
  }
  
  int func_384(int iParam0)
  {
  	switch (iParam0)
  	{
  		case 2001:
  			return Global_262145.f_19332;
  		
  		case 2002:
  			return Global_262145.f_19333;
  		
  		case 2003:
  			return Global_262145.f_19334;
  		
  		case 2004:
  			return Global_262145.f_19335;
  		
  		case 2005:
  			return Global_262145.f_19336;
  		
  		case 2006:
  			return Global_262145.f_19337;
  		
  		case 2007:
  			return Global_262145.f_19338;
  		
  		case 2008:
  			return Global_262145.f_19339;
  		
  		case 2009:
  			return Global_262145.f_19340;
  		
  		case 2010:
  			return Global_262145.f_19341;
  		
  		default:
  	}
  	return 1;
  }
  
  void func_385(int iParam0, bool bParam1)
  {
  	int iVar0;
  	int iVar1;
  	int iVar2;
  	int iVar3;
  	
  	iVar0 = func_262(func_276(iParam0), 6, 0, 0, 0);
  	iVar1 = func_262(func_276(iParam0), 19, 0, 0, 1);
  	iVar2 = func_262(func_276(iParam0), 6, 0, 1, 0);
  	iVar3 = 0;
  	if (iVar0 >= Global_262145.f_19206)
  	{
  		iVar3 = 2;
  	}
  	else if (iVar0 >= Global_262145.f_19207)
  	{
  		iVar3 = 1;
  	}
  	GRAPHICS::BEGIN_SCALEFORM_MOVIE_METHOD(iLocal_639, "UPDATE_VEHICLE");
  	GRAPHICS::SCALEFORM_MOVIE_METHOD_ADD_PARAM_INT(iParam0);
  	GRAPHICS::SCALEFORM_MOVIE_METHOD_ADD_PARAM_INT(iVar0);
  	GRAPHICS::SCALEFORM_MOVIE_METHOD_ADD_PARAM_INT(iVar1);
  	GRAPHICS::SCALEFORM_MOVIE_METHOD_ADD_PARAM_BOOL(bParam1);
  	GRAPHICS::SCALEFORM_MOVIE_METHOD_ADD_PARAM_BOOL(true);
  	GRAPHICS::SCALEFORM_MOVIE_METHOD_ADD_PARAM_INT(iVar3);
  	GRAPHICS::SCALEFORM_MOVIE_METHOD_ADD_PARAM_INT(iVar2);
  	GRAPHICS::END_SCALEFORM_MOVIE_METHOD();
  }
  
  void func_386()
  {
  	int iVar0;
  	
  	iVar0 = 0;
  	while (iVar0 < 4)
  	{
  		iLocal_632[iVar0] = func_3();
  		iVar0++;
  	}
  }
  
  void func_387(int iParam0, bool bParam1, int iParam2, int iParam3)
  {
  	int iVar0;
  	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;
  	int iVar27;
  	int iVar28;
  	
  	if (bParam1)
  	{
  		if (SCRIPT::GET_NO_LOADING_SCREEN())
  		{
  			SCRIPT::SET_NO_LOADING_SCREEN(false);
  		}
  	}
  	if (func_398())
  	{
  		if (bParam1)
  		{
  			return;
  		}
  		else
  		{
  			iParam3 = 1;
  		}
  	}
  	if (!NETWORK::NETWORK_IS_GAME_IN_PROGRESS())
  	{
  		iVar0 = iParam2;
  		PLAYER::SET_PLAYER_CONTROL(iParam0, bParam1, iVar0);
  	}
  	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 || NETWORK::NETWORK_IS_ACTIVITY_SESSION())
  		{
  			bVar1 = false;
  		}
  		if (!func_396())
  		{
  			bVar26 = false;
  			if (bParam1 == 1)
  			{
  				bVar26 = true;
  			}
  			if (bVar16 == 0 && !bVar21)
  			{
  				bVar26 = true;
  			}
  			if (bVar10 == 1)
  			{
  				bVar26 = true;
  			}
  			if (bVar26)
  			{
  				return;
  			}
  		}
  		if (bVar18)
  		{
  		}
  		if (NETWORK::NETWORK_IS_PLAYER_ACTIVE(iParam0) && (PLAYER::IS_PLAYER_PLAYING(iParam0) || iParam3 == 1))
  		{
  			if (iParam3 && ENTITY::IS_ENTITY_DEAD(PLAYER::GET_PLAYER_PED(iParam0), false))
  			{
  				return;
  			}
  			iVar27 = PLAYER::GET_PLAYER_PED(iParam0);
  			if (!bVar20)
  			{
  				if ((bVar19 && bParam1 == 0) && NETWORK::NETWORK_IS_GAME_IN_PROGRESS())
  				{
  					NETWORK::FADE_OUT_LOCAL_PLAYER(true);
  				}
  				else if (bVar14 || (!func_56(PLAYER::PLAYER_ID(), 0) && !func_395()))
  				{
  					ENTITY::SET_ENTITY_VISIBLE(iVar27, !bVar14, false);
  				}
  				if (!bVar14)
  				{
  					if (NETWORK::NETWORK_IS_GAME_IN_PROGRESS() && !bVar19)
  					{
  						NETWORK::FADE_OUT_LOCAL_PLAYER(false);
  					}
  					Global_2689156[iParam0 /*453*/].f_253 = 0;
  				}
  			}
  			if (bParam1)
  			{
  				if (bVar1)
  				{
  					func_392(0, 0, 0);
  					if (bVar25)
  					{
  						STREAMING::CLEAR_FOCUS();
  					}
  				}
  				if (!func_391(iVar27) && !ENTITY::IS_ENTITY_ATTACHED_TO_ANY_VEHICLE(iVar27))
  				{
  					if (!bVar22)
  					{
  						ENTITY::SET_ENTITY_COLLISION(iVar27, true, false);
  					}
  				}
  				if (!ENTITY::IS_ENTITY_ATTACHED(iVar27))
  				{
  					if (!bVar21)
  					{
  						ENTITY::FREEZE_ENTITY_POSITION(iVar27, false);
  					}
  					ENTITY::_SET_ENTITY_CLEANUP_BY_ENGINE(iVar27, true);
  				}
  				else if (!bVar21)
  				{
  					ENTITY::FREEZE_ENTITY_POSITION(iVar27, false);
  				}
  				PED::SET_PED_CAN_BE_TARGETTED(iVar27, true);
  				PLAYER::SET_PLAYER_INVINCIBLE(iParam0, false);
  				PLAYER::_SET_PLAYER_INVINCIBLE_KEEP_RAGDOLL_ENABLED(iParam0, false);
  				if (PED::HAS_PED_HEAD_BLEND_FINISHED(iVar27) && PED::HAVE_ALL_STREAMING_REQUESTS_COMPLETED(iVar27))
  				{
  					PED::FINALIZE_HEAD_BLEND(iVar27);
  				}
  				PED::SET_PED_CAN_RAGDOLL(iVar27, true);
  				if (PLAYER::IS_PLAYER_CONTROL_ON(PLAYER::PLAYER_ID()) == 0)
  				{
  					func_390();
  					func_389();
  				}
  				if (PLAYER::IS_PLAYER_TELEPORT_ACTIVE())
  				{
  					if (!bVar23)
  					{
  					}
  				}
  				if (STREAMING::IS_NEW_LOAD_SCENE_ACTIVE())
  				{
  				}
  				Global_2689156[iParam0 /*453*/].f_254 = 0;
  				if (!bVar24)
  				{
  					bVar3 = true;
  				}
  				if (Global_2667222.f_2679)
  				{
  					Global_2667222.f_2679 = 0;
  				}
  			}
  			else
  			{
  				if (!func_391(iVar27) && !ENTITY::IS_ENTITY_ATTACHED_TO_ANY_VEHICLE(iVar27))
  				{
  					if (!bVar22)
  					{
  						ENTITY::SET_ENTITY_COLLISION(iVar27, !bVar15, false);
  					}
  					if (!ENTITY::IS_ENTITY_ATTACHED(iVar27))
  					{
  						if (!bVar21)
  						{
  							ENTITY::FREEZE_ENTITY_POSITION(iVar27, bVar16);
  						}
  						if (!bVar16)
  						{
  							ENTITY::_SET_ENTITY_CLEANUP_BY_ENGINE(iVar27, true);
  						}
  					}
  					if (func_388(Global_4718592.f_138117))
  					{
  						ENTITY::FREEZE_ENTITY_POSITION(iVar27, true);
  					}
  				}
  				if (Global_1575022)
  				{
  					bVar10 = false;
  				}
  				if (bVar10)
  				{
  					PLAYER::SET_PLAYER_INVINCIBLE(iParam0, false);
  				}
  				else
  				{
  					PLAYER::SET_PLAYER_INVINCIBLE(iParam0, true);
  				}
  				PED::SET_PED_CAN_BE_TARGETTED(iVar27, bVar17);
  				if (bVar3)
  				{
  					if (!PED::IS_PED_FATALLY_INJURED(iVar27) && !PED::IS_PED_IN_ANY_VEHICLE(iVar27, false))
  					{
  						TASK::CLEAR_PED_TASKS_IMMEDIATELY(iVar27);
  					}
  				}
  			}
  			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;
  			}
  			PLAYER::SET_PLAYER_CONTROL(iParam0, bParam1, iVar28);
  		}
  	}
  }
  
  bool func_388(int iParam0)
  {
  	return iParam0 == 17;
  }
  
  void func_389()
  {
  	struct<3> Var0;
  	
  	Global_2703656.f_924 = 0;
  	Global_2703656.f_925 = 0;
  	Global_2703656.f_926 = { 9999.9f, 9999.9f, 9999.9f };
  	Global_2703656.f_931 = -1;
  	Global_2703656.f_932 = 0;
  	Global_2667222.f_2690 = { Var0 };
  }
  
  void func_390()
  {
  	Global_2667222.f_701 = 0;
  	Global_2667222.f_2733 = 0;
  	Global_2667222.f_514 = 0;
  	Global_2667222.f_605 = 0;
  	Global_2689156[PLAYER::PLAYER_ID() /*453*/].f_216 = 0;
  	Global_2667222.f_2688 = 0;
  }
  
  int func_391(int iParam0)
  {
  	int iVar0;
  	
  	if (PED::IS_PED_IN_ANY_VEHICLE(iParam0, true))
  	{
  		return 1;
  	}
  	else
  	{
  		iVar0 = TASK::GET_SCRIPT_TASK_STATUS(iParam0, -1794415470);
  		if (iVar0 == 0)
  		{
  			return 1;
  		}
  	}
  	return 0;
  }
  
  void func_392(bool bParam0, int iParam1, int iParam2)
  {
  	int iVar0;
  	int iVar1;
  	
  	if (ENTITY::IS_ENTITY_DEAD(iParam1, false))
  	{
  	}
  	if (bParam0 == 1)
  	{
  		if (ENTITY::DOES_ENTITY_EXIST(iParam1))
  		{
  			if (PED::IS_PED_A_PLAYER(iParam1))
  			{
  				if (!NETWORK::_NETWORK_IS_PLAYER_EQUAL_TO_INDEX(PLAYER::PLAYER_ID(), NETWORK::NETWORK_GET_PLAYER_INDEX_FROM_PED(iParam1)))
  				{
  					iVar0 = 1;
  				}
  			}
  		}
  	}
  	if (iVar0 == 0)
  	{
  		if (iParam2 == 1)
  		{
  			if (bParam0 == 1)
  			{
  				func_394();
  			}
  			else if (!MISC::IS_BIT_SET(Global_2621446.f_67, 1))
  			{
  				if (MISC::IS_BIT_SET(Global_2621446.f_67, 2))
  				{
  					iVar1 = 0;
  					while (iVar1 < 8)
  					{
  						CAM::SET_CAM_VIEW_MODE_FOR_CONTEXT(iVar1, Global_2621446.f_58[iVar1]);
  						iVar1++;
  					}
  				}
  				MISC::SET_BIT(&(Global_2621446.f_67), 1);
  			}
  		}
  		if (func_56(PLAYER::PLAYER_ID(), 0))
  		{
  			NETWORK::NETWORK_SET_IN_SPECTATOR_MODE_EXTENDED(bParam0, iParam1, true);
  		}
  		else
  		{
  			NETWORK::NETWORK_SET_IN_SPECTATOR_MODE(bParam0, iParam1);
  		}
  		HUD::SET_MINIMAP_IN_SPECTATOR_MODE(bParam0, iParam1);
  		func_393(joaat("mpply_is_char_spectating"), bParam0);
  	}
  }
  
  void func_393(int iParam0, bool bParam1)
  {
  	int iVar0;
  	
  	iVar0 = iParam0;
  	if (iVar0 != 0)
  	{
  		STATS::STAT_SET_BOOL(iVar0, bParam1, true);
  	}
  }
  
  void func_394()
  {
  	int iVar0;
  	
  	if (!NETWORK::NETWORK_IS_IN_SPECTATOR_MODE())
  	{
  		if (!MISC::IS_BIT_SET(Global_2621446.f_67, 2))
  		{
  			iVar0 = 0;
  			while (iVar0 < 8)
  			{
  				Global_2621446.f_58[iVar0] = CAM::GET_CAM_VIEW_MODE_FOR_CONTEXT(iVar0);
  				iVar0++;
  			}
  			MISC::SET_BIT(&(Global_2621446.f_67), 2);
  			MISC::SET_BIT(&(Global_2621446.f_67), 0);
  		}
  	}
  }
  
  bool func_395()
  {
  	return MISC::IS_BIT_SET(Global_2621446, 3);
  }
  
  int func_396()
  {
  	if (func_397() == 0)
  	{
  		return 1;
  	}
  	return 0;
  }
  
  int func_397()
  {
  	return Global_1574629.f_18;
  }
  
  int func_398()
  {
  	if (MISC::IS_BIT_SET(Global_1853128[PLAYER::PLAYER_ID() /*888*/].f_887, 2) && !Global_2715542.f_2846.f_216 == -1)
  	{
  		return 1;
  	}
  	return 0;
  }
  
  int func_399(int iParam0)
  {
  	if (func_401(iParam0))
  	{
  		return func_400(Global_2689156[iParam0 /*453*/].f_319.f_6);
  	}
  	return 0;
  }
  
  int func_400(int iParam0)
  {
  	switch (iParam0)
  	{
  		case 60:
  			return 1;
  			break;
  		
  		case 61:
  			return 2;
  			break;
  		
  		case 62:
  			return 3;
  			break;
  		
  		case 63:
  			return 4;
  			break;
  		
  		case 64:
  			return 5;
  			break;
  		
  		case 65:
  			return 6;
  			break;
  		
  		case 66:
  			return 7;
  			break;
  		
  		case 67:
  			return 8;
  			break;
  		
  		case 68:
  			return 9;
  			break;
  		
  		case 69:
  			return 10;
  			break;
  	}
  	return 0;
  }
  
  int func_401(int iParam0)
  {
  	if (iParam0 != func_3())
  	{
  		if (func_2(iParam0, 1, 1))
  		{
  			if (Global_2689156[iParam0 /*453*/].f_319.f_6 != -1)
  			{
  				return func_313(Global_2689156[iParam0 /*453*/].f_319.f_6) == 1;
  			}
  		}
  	}
  	return 0;
  }
  
  void func_402()
  {
  	Global_1574737 = 1;
  	StringCopy(&(Global_1574737.f_1), SCRIPT::GET_THIS_SCRIPT_NAME(), 32);
  	Global_1574737.f_9 = MISC::GET_HASH_KEY(&(Global_1574737.f_1));
  }
  
  void func_403(bool bParam0)
  {
  	if (bParam0)
  	{
  		func_404();
  		if (Global_19954.f_1 == 10 || Global_19954.f_1 == 9)
  		{
  			MISC::SET_BIT(&Global_7825, 16);
  		}
  		Global_19954.f_1 = 1;
  		if (func_363(0))
  		{
  			func_405(0);
  		}
  	}
  	else if (Global_19954.f_1 == 1)
  	{
  		if (!Global_19954.f_1 == 0)
  		{
  			Global_19954.f_1 = 3;
  		}
  	}
  }
  
  void func_404()
  {
  	if (Global_19954.f_1 == 9 || Global_19954.f_1 == 10)
  	{
  		Global_21338 = 0;
  		Global_21334 = 1;
  	}
  }
  
  void func_405(int iParam0)
  {
  	if (func_364())
  	{
  		return;
  	}
  	if (Global_20144)
  	{
  		if (func_407())
  		{
  			func_406(1, 1);
  		}
  		else
  		{
  			func_406(0, 0);
  		}
  	}
  	if (Global_19954.f_1 == 10 || Global_19954.f_1 == 9)
  	{
  		MISC::SET_BIT(&Global_7825, 16);
  	}
  	if (AUDIO::IS_MOBILE_PHONE_CALL_ONGOING())
  	{
  		AUDIO::STOP_SCRIPTED_CONVERSATION(false);
  	}
  	Global_21285 = 5;
  	if (iParam0 == 1)
  	{
  		MISC::SET_BIT(&Global_7824, 30);
  	}
  	else
  	{
  		MISC::CLEAR_BIT(&Global_7824, 30);
  	}
  	if (!func_341())
  	{
  		Global_19954.f_1 = 3;
  	}
  }
  
  void func_406(bool bParam0, bool bParam1)
  {
  	if (bParam0)
  	{
  		if (func_363(0))
  		{
  			Global_20144 = 1;
  			if (bParam1)
  			{
  				MOBILE::GET_MOBILE_PHONE_POSITION(&Global_19891);
  			}
  			Global_19882 = { Global_19900[Global_19899 /*3*/] };
  			MOBILE::SET_MOBILE_PHONE_POSITION(Global_19882);
  		}
  	}
  	else if (Global_20144 == 1)
  	{
  		Global_20144 = 0;
  		Global_19882 = { Global_19907[Global_19899 /*3*/] };
  		if (bParam1)
  		{
  			MOBILE::SET_MOBILE_PHONE_POSITION(Global_19891);
  		}
  		else
  		{
  			MOBILE::SET_MOBILE_PHONE_POSITION(Global_19882);
  		}
  	}
  }
  
  bool func_407()
  {
  	return MISC::IS_BIT_SET(Global_1958920, 5);
  }
  
  void func_408(int iParam0, bool bParam1)
  {
  	Global_76650 = iParam0;
  	func_403(0);
  	func_256();
  	GRAPHICS::SET_SCALEFORM_MOVIE_AS_NO_LONGER_NEEDED(&iLocal_639);
  	if (bParam1)
  	{
  		func_387(PLAYER::PLAYER_ID(), 1, 8388608, 0);
  		AUDIO::STOP_AUDIO_SCENE("GTAO_Computer_Screen_Active_Scene");
  	}
  	if (MISC::IS_PC_VERSION() && CUTSCENE::_0xA0FE76168A189DDB())
  	{
  		func_378(0, 1, 1, 1);
  	}
  	HUD::THEFEED_RESUME();
  	SCRIPT::TERMINATE_THIS_THREAD();
  }
  
  