#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;
	char* sLocal_18 = NULL;
	var uLocal_19 = 0;
	var uLocal_20 = 0;
	var uLocal_21 = 0;
	var uLocal_22 = 0;
	float fLocal_23 = 0f;
	float fLocal_24 = 0f;
	float fLocal_25 = 0f;
	var uLocal_26 = 0;
	var uLocal_27 = 0;
	float fLocal_28 = 0f;
	var uLocal_29 = 0;
	var uLocal_30 = 0;
	var uLocal_31 = 0;
	float fLocal_32 = 0f;
	float fLocal_33 = 0f;
	var uLocal_34 = 0;
	var uLocal_35 = 0;
	int iLocal_36 = 0;
	var uLocal_37 = 0;
	var uLocal_38 = 0;
	var uLocal_39 = 0;
	int iLocal_40 = 0;
	int iLocal_41 = 0;
	int iLocal_42 = 0;
	int iLocal_43 = 0;
	var uLocal_44 = 0;
	var uLocal_45 = 0;
	var uLocal_46 = 0;
	var uLocal_47 = 0;
	var uLocal_48 = 0;
	var uLocal_49 = 0;
	var uLocal_50 = 0;
	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 = 10;
	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 = 2;
	var uLocal_69 = 0;
	var uLocal_70 = 0;
	var uLocal_71 = 8;
	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 = 8;
	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;
	float fLocal_90 = 0f;
	var uLocal_91 = 0;
	var uLocal_92 = 0;
	float fLocal_93 = 0f;
	float fLocal_94 = 0f;
	float fLocal_95 = 0f;
	float fLocal_96 = 0f;
	float fLocal_97 = 0f;
	var uLocal_98 = 0;
	float fLocal_99 = 0f;
	var uLocal_100 = 0;
	var uLocal_101 = 0;
	var uLocal_102 = 0;
	var uLocal_103 = 0;
	var uLocal_104 = 17;
	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 = 17;
	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 = 12;
	var uLocal_147 = 0;
	var uLocal_148 = 0;
	var uLocal_149 = 0;
	var uLocal_150 = 0;
	var uLocal_151 = 0;
	var uLocal_152 = 0;
	var uLocal_153 = 0;
	var uLocal_154 = 0;
	var uLocal_155 = 0;
	var uLocal_156 = 0;
	var uLocal_157 = 0;
	var uLocal_158 = 0;
	var uLocal_159 = 12;
	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 = 12;
	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 = 9;
	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 = 9;
	var uLocal_196 = 0;
	var uLocal_197 = 0;
	var uLocal_198 = 0;
	var uLocal_199 = 0;
	var uLocal_200 = 0;
	var uLocal_201 = 0;
	var uLocal_202 = 0;
	var uLocal_203 = 0;
	var uLocal_204 = 0;
	var uLocal_205 = 0;
	var uLocal_206 = 0;
	var uLocal_207 = 0;
	var uLocal_208 = 0;
	var uLocal_209 = 0;
	var uLocal_210 = 0;
	var uLocal_211 = 0;
	var uLocal_212 = 0;
	var uLocal_213 = 0;
	var uLocal_214 = 0;
	var uLocal_215 = 0;
	vector3 vLocal_216[72] = {{ 0f, 0f, 0f }, { 0f, 0f, 0f }, { 0f, 0f, 0f }, { 0f, 0f, 0f }, { 0f, 0f, 0f }, { 0f, 0f, 0f }, { 0f, 0f, 0f }, { 0f, 0f, 0f }, { 0f, 0f, 0f }, { 0f, 0f, 0f }, { 0f, 0f, 0f }, { 0f, 0f, 0f }, { 0f, 0f, 0f }, { 0f, 0f, 0f }, { 0f, 0f, 0f }, { 0f, 0f, 0f }, { 0f, 0f, 0f }, { 0f, 0f, 0f }, { 0f, 0f, 0f }, { 0f, 0f, 0f }, { 0f, 0f, 0f }, { 0f, 0f, 0f }, { 0f, 0f, 0f }, { 0f, 0f, 0f }, { 0f, 0f, 0f }, { 0f, 0f, 0f }, { 0f, 0f, 0f }, { 0f, 0f, 0f }, { 0f, 0f, 0f }, { 0f, 0f, 0f }, { 0f, 0f, 0f }, { 0f, 0f, 0f }, { 0f, 0f, 0f }, { 0f, 0f, 0f }, { 0f, 0f, 0f }, { 0f, 0f, 0f }, { 0f, 0f, 0f }, { 0f, 0f, 0f }, { 0f, 0f, 0f }, { 0f, 0f, 0f }, { 0f, 0f, 0f }, { 0f, 0f, 0f }, { 0f, 0f, 0f }, { 0f, 0f, 0f }, { 0f, 0f, 0f }, { 0f, 0f, 0f }, { 0f, 0f, 0f }, { 0f, 0f, 0f }, { 0f, 0f, 0f }, { 0f, 0f, 0f }, { 0f, 0f, 0f }, { 0f, 0f, 0f }, { 0f, 0f, 0f }, { 0f, 0f, 0f }, { 0f, 0f, 0f }, { 0f, 0f, 0f }, { 0f, 0f, 0f }, { 0f, 0f, 0f }, { 0f, 0f, 0f }, { 0f, 0f, 0f }, { 0f, 0f, 0f }, { 0f, 0f, 0f }, { 0f, 0f, 0f }, { 0f, 0f, 0f }, { 0f, 0f, 0f }, { 0f, 0f, 0f }, { 0f, 0f, 0f }, { 0f, 0f, 0f }, { 0f, 0f, 0f }, { 0f, 0f, 0f }, { 0f, 0f, 0f }, { 0f, 0f, 0f } };
	vector3 vLocal_433[72] = {{ 0f, 0f, 0f }, { 0f, 0f, 0f }, { 0f, 0f, 0f }, { 0f, 0f, 0f }, { 0f, 0f, 0f }, { 0f, 0f, 0f }, { 0f, 0f, 0f }, { 0f, 0f, 0f }, { 0f, 0f, 0f }, { 0f, 0f, 0f }, { 0f, 0f, 0f }, { 0f, 0f, 0f }, { 0f, 0f, 0f }, { 0f, 0f, 0f }, { 0f, 0f, 0f }, { 0f, 0f, 0f }, { 0f, 0f, 0f }, { 0f, 0f, 0f }, { 0f, 0f, 0f }, { 0f, 0f, 0f }, { 0f, 0f, 0f }, { 0f, 0f, 0f }, { 0f, 0f, 0f }, { 0f, 0f, 0f }, { 0f, 0f, 0f }, { 0f, 0f, 0f }, { 0f, 0f, 0f }, { 0f, 0f, 0f }, { 0f, 0f, 0f }, { 0f, 0f, 0f }, { 0f, 0f, 0f }, { 0f, 0f, 0f }, { 0f, 0f, 0f }, { 0f, 0f, 0f }, { 0f, 0f, 0f }, { 0f, 0f, 0f }, { 0f, 0f, 0f }, { 0f, 0f, 0f }, { 0f, 0f, 0f }, { 0f, 0f, 0f }, { 0f, 0f, 0f }, { 0f, 0f, 0f }, { 0f, 0f, 0f }, { 0f, 0f, 0f }, { 0f, 0f, 0f }, { 0f, 0f, 0f }, { 0f, 0f, 0f }, { 0f, 0f, 0f }, { 0f, 0f, 0f }, { 0f, 0f, 0f }, { 0f, 0f, 0f }, { 0f, 0f, 0f }, { 0f, 0f, 0f }, { 0f, 0f, 0f }, { 0f, 0f, 0f }, { 0f, 0f, 0f }, { 0f, 0f, 0f }, { 0f, 0f, 0f }, { 0f, 0f, 0f }, { 0f, 0f, 0f }, { 0f, 0f, 0f }, { 0f, 0f, 0f }, { 0f, 0f, 0f }, { 0f, 0f, 0f }, { 0f, 0f, 0f }, { 0f, 0f, 0f }, { 0f, 0f, 0f }, { 0f, 0f, 0f }, { 0f, 0f, 0f }, { 0f, 0f, 0f }, { 0f, 0f, 0f }, { 0f, 0f, 0f } };
	float fLocal_650 = 0f;
	float fLocal_651 = 0f;
	int iLocal_652 = 0;
	struct<86> Local_653 = { 0, 0, 0, 0, 0, 0, 0, -1, -1, 0, 0, 0, 0, 0, 0, -1, -1, -1, -1, 0, 20, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 } ;
	int iLocal_739 = 0;
	int iLocal_740 = 0;
	int iLocal_741 = 0;
	struct<12> Local_742 = { 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 } ;
	int iLocal_754 = 0;
	int iLocal_755 = 0;
	struct<49> Local_756[32];
	var uLocal_2325 = 0;
	var uLocal_2326 = 0;
	var uLocal_2327 = 0;
	var uLocal_2328 = 0;
	var uLocal_2329 = 0;
	var uLocal_2330 = 0;
	var uLocal_2331 = 0;
	var uLocal_2332 = 0;
	var uLocal_2333 = 0;
	var uLocal_2334 = 0;
	var uLocal_2335 = 0;
	var uLocal_2336 = 0;
	var uLocal_2337 = 0;
	var uLocal_2338 = 0;
	var uLocal_2339 = 0;
	var uLocal_2340 = 0;
	var uLocal_2341 = 0;
	var uLocal_2342 = 0;
	var uLocal_2343 = 0;
	var uLocal_2344 = 0;
	var uLocal_2345 = 0;
	var uLocal_2346 = 0;
	var uLocal_2347 = 0;
	var uLocal_2348 = 0;
	var uLocal_2349 = 0;
	var uLocal_2350 = 0;
	var uLocal_2351 = 0;
	var uLocal_2352 = 0;
	var uLocal_2353 = -1;
	var uLocal_2354 = 0;
	var uLocal_2355 = 0;
	var uLocal_2356 = 0;
	var uLocal_2357 = 0;
	var uLocal_2358 = 0;
	var uLocal_2359 = 0;
	var uLocal_2360 = 0;
	var uLocal_2361 = 1;
	var uLocal_2362 = 0;
	var uLocal_2363 = 32;
	var uLocal_2364 = 0;
	var uLocal_2365 = -1;
	var uLocal_2366 = 0;
	var uLocal_2367 = -1;
	var uLocal_2368 = 0;
	var uLocal_2369 = -1;
	var uLocal_2370 = 0;
	var uLocal_2371 = -1;
	var uLocal_2372 = 0;
	var uLocal_2373 = -1;
	var uLocal_2374 = 0;
	var uLocal_2375 = -1;
	var uLocal_2376 = 0;
	var uLocal_2377 = -1;
	var uLocal_2378 = 0;
	var uLocal_2379 = -1;
	var uLocal_2380 = 0;
	var uLocal_2381 = -1;
	var uLocal_2382 = 0;
	var uLocal_2383 = -1;
	var uLocal_2384 = 0;
	var uLocal_2385 = -1;
	var uLocal_2386 = 0;
	var uLocal_2387 = -1;
	var uLocal_2388 = 0;
	var uLocal_2389 = -1;
	var uLocal_2390 = 0;
	var uLocal_2391 = -1;
	var uLocal_2392 = 0;
	var uLocal_2393 = -1;
	var uLocal_2394 = 0;
	var uLocal_2395 = -1;
	var uLocal_2396 = 0;
	var uLocal_2397 = -1;
	var uLocal_2398 = 0;
	var uLocal_2399 = -1;
	var uLocal_2400 = 0;
	var uLocal_2401 = -1;
	var uLocal_2402 = 0;
	var uLocal_2403 = -1;
	var uLocal_2404 = 0;
	var uLocal_2405 = -1;
	var uLocal_2406 = 0;
	var uLocal_2407 = -1;
	var uLocal_2408 = 0;
	var uLocal_2409 = -1;
	var uLocal_2410 = 0;
	var uLocal_2411 = -1;
	var uLocal_2412 = 0;
	var uLocal_2413 = -1;
	var uLocal_2414 = 0;
	var uLocal_2415 = -1;
	var uLocal_2416 = 0;
	var uLocal_2417 = -1;
	var uLocal_2418 = 0;
	var uLocal_2419 = -1;
	var uLocal_2420 = 0;
	var uLocal_2421 = -1;
	var uLocal_2422 = 0;
	var uLocal_2423 = -1;
	var uLocal_2424 = 0;
	var uLocal_2425 = -1;
	var uLocal_2426 = 0;
	var uLocal_2427 = -1;
	var uLocal_2428 = -1;
	var uLocal_2429 = 0;
	var uLocal_2430 = 0;
	var uLocal_2431 = 0;
	var uLocal_2432 = 0;
	var uLocal_2433 = 0;
	var uLocal_2434 = 32;
	var uLocal_2435 = 0;
	var uLocal_2436 = 0;
	var uLocal_2437 = 0;
	var uLocal_2438 = 0;
	var uLocal_2439 = 0;
	var uLocal_2440 = 0;
	var uLocal_2441 = 0;
	var uLocal_2442 = 0;
	var uLocal_2443 = 0;
	var uLocal_2444 = 0;
	var uLocal_2445 = 0;
	var uLocal_2446 = 0;
	var uLocal_2447 = 0;
	var uLocal_2448 = 0;
	var uLocal_2449 = 0;
	var uLocal_2450 = 0;
	var uLocal_2451 = 0;
	var uLocal_2452 = 0;
	var uLocal_2453 = 0;
	var uLocal_2454 = 0;
	var uLocal_2455 = 0;
	var uLocal_2456 = 0;
	var uLocal_2457 = 0;
	var uLocal_2458 = 0;
	var uLocal_2459 = 0;
	var uLocal_2460 = 0;
	var uLocal_2461 = 0;
	var uLocal_2462 = 0;
	var uLocal_2463 = 0;
	var uLocal_2464 = 0;
	var uLocal_2465 = 0;
	var uLocal_2466 = 0;
	var uLocal_2467 = 0;
	var uLocal_2468 = 0;
	var uLocal_2469 = 0;
	var uLocal_2470 = 0;
	var uLocal_2471 = 0;
	var uLocal_2472 = 0;
	var uLocal_2473 = 0;
	var uLocal_2474 = 0;
	var uLocal_2475 = 0;
	var uLocal_2476 = 0;
	var uLocal_2477 = 0;
	var uLocal_2478 = 0;
	var uLocal_2479 = 0;
	var uLocal_2480 = 0;
	var uLocal_2481 = 0;
	var uLocal_2482 = 0;
	var uLocal_2483 = 0;
	var uLocal_2484 = 0;
	var uLocal_2485 = 0;
	var uLocal_2486 = 0;
	var uLocal_2487 = 0;
	var uLocal_2488 = 0;
	var uLocal_2489 = 0;
	var uLocal_2490 = 0;
	var uLocal_2491 = 0;
	var uLocal_2492 = 0;
	var uLocal_2493 = 0;
	var uLocal_2494 = 0;
	var uLocal_2495 = 0;
	var uLocal_2496 = 0;
	var uLocal_2497 = 0;
	var uLocal_2498 = 0;
	var uLocal_2499 = 0;
	var uLocal_2500 = 0;
	var uLocal_2501 = 0;
	var uLocal_2502 = 0;
	var uLocal_2503 = 0;
	var uLocal_2504 = 0;
	var uLocal_2505 = 0;
	var uLocal_2506 = 0;
	var uLocal_2507 = 0;
	var uLocal_2508 = 0;
	var uLocal_2509 = 0;
	var uLocal_2510 = 0;
	var uLocal_2511 = 0;
	var uLocal_2512 = 0;
	var uLocal_2513 = 0;
	var uLocal_2514 = 0;
	var uLocal_2515 = 0;
	var uLocal_2516 = 0;
	var uLocal_2517 = 0;
	var uLocal_2518 = 0;
	var uLocal_2519 = 0;
	var uLocal_2520 = 0;
	var uLocal_2521 = 0;
	var uLocal_2522 = 0;
	var uLocal_2523 = 0;
	var uLocal_2524 = 0;
	var uLocal_2525 = 0;
	var uLocal_2526 = 0;
	var uLocal_2527 = 0;
	var uLocal_2528 = 0;
	var uLocal_2529 = 0;
	var uLocal_2530 = 0;
	var uLocal_2531 = 0;
	var uLocal_2532 = 0;
	var uLocal_2533 = 0;
	var uLocal_2534 = 0;
	var uLocal_2535 = 0;
	var uLocal_2536 = 0;
	var uLocal_2537 = 0;
	var uLocal_2538 = 0;
	var uLocal_2539 = 0;
	var uLocal_2540 = 0;
	var uLocal_2541 = 0;
	var uLocal_2542 = 0;
	var uLocal_2543 = 0;
	var uLocal_2544 = 0;
	var uLocal_2545 = 0;
	var uLocal_2546 = 0;
	var uLocal_2547 = 0;
	var uLocal_2548 = 0;
	var uLocal_2549 = 0;
	var uLocal_2550 = 0;
	var uLocal_2551 = 0;
	var uLocal_2552 = 0;
	var uLocal_2553 = 0;
	var uLocal_2554 = 0;
	var uLocal_2555 = 0;
	var uLocal_2556 = 0;
	var uLocal_2557 = 0;
	var uLocal_2558 = 0;
	var uLocal_2559 = 0;
	var uLocal_2560 = 0;
	var uLocal_2561 = 0;
	var uLocal_2562 = 0;
	var uLocal_2563 = 0;
	var uLocal_2564 = 0;
	var uLocal_2565 = 0;
	var uLocal_2566 = 0;
	var uLocal_2567 = 0;
	var uLocal_2568 = 0;
	var uLocal_2569 = 0;
	var uLocal_2570 = 0;
	var uLocal_2571 = 0;
	var uLocal_2572 = 0;
	var uLocal_2573 = 0;
	var uLocal_2574 = 0;
	var uLocal_2575 = 0;
	var uLocal_2576 = 0;
	var uLocal_2577 = 0;
	var uLocal_2578 = 0;
	var uLocal_2579 = 0;
	var uLocal_2580 = 0;
	var uLocal_2581 = 0;
	var uLocal_2582 = 0;
	var uLocal_2583 = 0;
	var uLocal_2584 = 0;
	var uLocal_2585 = 0;
	var uLocal_2586 = 0;
	var uLocal_2587 = 0;
	var uLocal_2588 = 0;
	var uLocal_2589 = 0;
	var uLocal_2590 = 0;
	var uLocal_2591 = 0;
	var uLocal_2592 = 0;
	var uLocal_2593 = 0;
	var uLocal_2594 = 0;
	var uLocal_2595 = 0;
	var uLocal_2596 = 0;
	var uLocal_2597 = 0;
	var uLocal_2598 = 0;
	var uLocal_2599 = 0;
	var uLocal_2600 = 0;
	var uLocal_2601 = 0;
	var uLocal_2602 = 0;
	var uLocal_2603 = 0;
	var uLocal_2604 = 0;
	var uLocal_2605 = 0;
	var uLocal_2606 = 0;
	var uLocal_2607 = 0;
	var uLocal_2608 = 0;
	var uLocal_2609 = 0;
	var uLocal_2610 = 0;
	var uLocal_2611 = 0;
	var uLocal_2612 = 0;
	var uLocal_2613 = 0;
	var uLocal_2614 = 0;
	var uLocal_2615 = 0;
	var uLocal_2616 = 0;
	var uLocal_2617 = 0;
	var uLocal_2618 = 0;
	var uLocal_2619 = 0;
	var uLocal_2620 = 0;
	var uLocal_2621 = 0;
	var uLocal_2622 = 0;
	var uLocal_2623 = 0;
	var uLocal_2624 = 0;
	var uLocal_2625 = 0;
	var uLocal_2626 = 0;
	var uLocal_2627 = 0;
	var uLocal_2628 = 0;
	var uLocal_2629 = 0;
	var uLocal_2630 = 0;
	var uLocal_2631 = 0;
	var uLocal_2632 = 0;
	var uLocal_2633 = 0;
	var uLocal_2634 = 0;
	var uLocal_2635 = 0;
	var uLocal_2636 = 0;
	var uLocal_2637 = 0;
	var uLocal_2638 = 0;
	var uLocal_2639 = 0;
	var uLocal_2640 = 0;
	var uLocal_2641 = 0;
	var uLocal_2642 = 0;
	var uLocal_2643 = 0;
	var uLocal_2644 = 0;
	var uLocal_2645 = 0;
	var uLocal_2646 = 0;
	var uLocal_2647 = 0;
	var uLocal_2648 = 0;
	var uLocal_2649 = 0;
	var uLocal_2650 = 0;
	var uLocal_2651 = 0;
	var uLocal_2652 = 0;
	var uLocal_2653 = 0;
	var uLocal_2654 = 0;
	var uLocal_2655 = 0;
	var uLocal_2656 = 0;
	var uLocal_2657 = 0;
	var uLocal_2658 = 0;
	var uLocal_2659 = 0;
	var uLocal_2660 = 0;
	var uLocal_2661 = 0;
	var uLocal_2662 = 0;
	var uLocal_2663 = 0;
	var uLocal_2664 = 0;
	var uLocal_2665 = 0;
	var uLocal_2666 = 0;
	var uLocal_2667 = 0;
	var uLocal_2668 = 0;
	var uLocal_2669 = 0;
	var uLocal_2670 = 0;
	var uLocal_2671 = 0;
	var uLocal_2672 = 0;
	var uLocal_2673 = 0;
	var uLocal_2674 = 0;
	var uLocal_2675 = 0;
	var uLocal_2676 = 0;
	var uLocal_2677 = 0;
	var uLocal_2678 = 0;
	var uLocal_2679 = 0;
	var uLocal_2680 = 0;
	var uLocal_2681 = 0;
	var uLocal_2682 = 0;
	var uLocal_2683 = 0;
	var uLocal_2684 = 0;
	var uLocal_2685 = 0;
	var uLocal_2686 = 0;
	var uLocal_2687 = 0;
	var uLocal_2688 = 0;
	var uLocal_2689 = 0;
	var uLocal_2690 = 0;
	var uLocal_2691 = 0;
	var uLocal_2692 = 0;
	var uLocal_2693 = 0;
	var uLocal_2694 = 0;
	var uLocal_2695 = 0;
	var uLocal_2696 = 0;
	var uLocal_2697 = 0;
	var uLocal_2698 = 0;
	var uLocal_2699 = 0;
	var uLocal_2700 = 0;
	var uLocal_2701 = 0;
	var uLocal_2702 = 0;
	var uLocal_2703 = 0;
	var uLocal_2704 = 0;
	var uLocal_2705 = 0;
	var uLocal_2706 = 0;
	var uLocal_2707 = 0;
	var uLocal_2708 = 0;
	var uLocal_2709 = 0;
	var uLocal_2710 = 0;
	var uLocal_2711 = 0;
	var uLocal_2712 = 0;
	var uLocal_2713 = 0;
	var uLocal_2714 = 0;
	var uLocal_2715 = 0;
	var uLocal_2716 = 0;
	var uLocal_2717 = 0;
	var uLocal_2718 = 0;
	var uLocal_2719 = 0;
	var uLocal_2720 = 0;
	var uLocal_2721 = 0;
	var uLocal_2722 = 0;
	var uLocal_2723 = 0;
	var uLocal_2724 = 0;
	var uLocal_2725 = 0;
	var uLocal_2726 = 0;
	var uLocal_2727 = 0;
	var uLocal_2728 = 0;
	var uLocal_2729 = 0;
	var uLocal_2730 = 0;
	var uLocal_2731 = 0;
	var uLocal_2732 = 0;
	var uLocal_2733 = 0;
	var uLocal_2734 = 0;
	var uLocal_2735 = 0;
	var uLocal_2736 = 0;
	var uLocal_2737 = 0;
	var uLocal_2738 = 0;
	var uLocal_2739 = 0;
	var uLocal_2740 = 0;
	var uLocal_2741 = 0;
	var uLocal_2742 = 0;
	var uLocal_2743 = 0;
	var uLocal_2744 = 0;
	var uLocal_2745 = 0;
	var uLocal_2746 = 0;
	var uLocal_2747 = 0;
	var uLocal_2748 = 0;
	var uLocal_2749 = 0;
	var uLocal_2750 = 0;
	var uLocal_2751 = 0;
	var uLocal_2752 = 0;
	var uLocal_2753 = 0;
	var uLocal_2754 = 0;
	var uLocal_2755 = 0;
	var uLocal_2756 = 0;
	var uLocal_2757 = 0;
	var uLocal_2758 = 0;
	var uLocal_2759 = 0;
	var uLocal_2760 = 0;
	var uLocal_2761 = 0;
	var uLocal_2762 = 0;
	var uLocal_2763 = 0;
	var uLocal_2764 = 0;
	var uLocal_2765 = 0;
	var uLocal_2766 = 0;
	var uLocal_2767 = 0;
	var uLocal_2768 = 0;
	var uLocal_2769 = 0;
	var uLocal_2770 = 0;
	var uLocal_2771 = 0;
	var uLocal_2772 = 0;
	var uLocal_2773 = 0;
	var uLocal_2774 = 0;
	var uLocal_2775 = 0;
	var uLocal_2776 = 0;
	var uLocal_2777 = 0;
	var uLocal_2778 = 0;
	var uLocal_2779 = 0;
	var uLocal_2780 = 0;
	var uLocal_2781 = 0;
	var uLocal_2782 = 0;
	var uLocal_2783 = 0;
	var uLocal_2784 = 0;
	var uLocal_2785 = 0;
	var uLocal_2786 = 0;
	var uLocal_2787 = 0;
	var uLocal_2788 = 0;
	var uLocal_2789 = 0;
	var uLocal_2790 = 0;
	var uLocal_2791 = 0;
	var uLocal_2792 = 0;
	var uLocal_2793 = 0;
	var uLocal_2794 = 0;
	var uLocal_2795 = 0;
	var uLocal_2796 = 0;
	var uLocal_2797 = 0;
	var uLocal_2798 = 0;
	var uLocal_2799 = 0;
	var uLocal_2800 = 0;
	var uLocal_2801 = 0;
	var uLocal_2802 = 0;
	var uLocal_2803 = 0;
	var uLocal_2804 = 0;
	var uLocal_2805 = 0;
	var uLocal_2806 = 0;
	var uLocal_2807 = 0;
	var uLocal_2808 = 0;
	var uLocal_2809 = 0;
	var uLocal_2810 = 0;
	var uLocal_2811 = 0;
	var uLocal_2812 = 0;
	var uLocal_2813 = 0;
	var uLocal_2814 = 0;
	var uLocal_2815 = 0;
	var uLocal_2816 = 0;
	var uLocal_2817 = 0;
	var uLocal_2818 = 0;
	var uLocal_2819 = 0;
	var uLocal_2820 = 0;
	var uLocal_2821 = 0;
	var uLocal_2822 = 0;
	var uLocal_2823 = 0;
	var uLocal_2824 = 0;
	var uLocal_2825 = 0;
	var uLocal_2826 = 0;
	var uLocal_2827 = 0;
	var uLocal_2828 = 0;
	var uLocal_2829 = 0;
	var uLocal_2830 = 0;
	var uLocal_2831 = 0;
	var uLocal_2832 = 0;
	var uLocal_2833 = 0;
	var uLocal_2834 = 0;
	var uLocal_2835 = 0;
	var uLocal_2836 = 0;
	var uLocal_2837 = 0;
	var uLocal_2838 = 0;
	var uLocal_2839 = 0;
	var uLocal_2840 = 0;
	var uLocal_2841 = 0;
	var uLocal_2842 = 0;
	var uLocal_2843 = 0;
	var uLocal_2844 = 0;
	var uLocal_2845 = 0;
	var uLocal_2846 = 0;
	var uLocal_2847 = 0;
	var uLocal_2848 = 0;
	var uLocal_2849 = 0;
	var uLocal_2850 = 0;
	int iLocal_2851 = 0;
	var uLocal_2852 = 0;
	var uLocal_2853 = 0;
	struct<4> Local_2854[32];
	int iLocal_2983 = 0;
	int iLocal_2984 = 0;
	struct<18> Local_2985[32];
	vector3 vLocal_3562[32] = {{ 0f, 0f, 0f }, { 0f, 0f, 0f }, { 0f, 0f, 0f }, { 0f, 0f, 0f }, { 0f, 0f, 0f }, { 0f, 0f, 0f }, { 0f, 0f, 0f }, { 0f, 0f, 0f }, { 0f, 0f, 0f }, { 0f, 0f, 0f }, { 0f, 0f, 0f }, { 0f, 0f, 0f }, { 0f, 0f, 0f }, { 0f, 0f, 0f }, { 0f, 0f, 0f }, { 0f, 0f, 0f }, { 0f, 0f, 0f }, { 0f, 0f, 0f }, { 0f, 0f, 0f }, { 0f, 0f, 0f }, { 0f, 0f, 0f }, { 0f, 0f, 0f }, { 0f, 0f, 0f }, { 0f, 0f, 0f }, { 0f, 0f, 0f }, { 0f, 0f, 0f }, { 0f, 0f, 0f }, { 0f, 0f, 0f }, { 0f, 0f, 0f }, { 0f, 0f, 0f }, { 0f, 0f, 0f }, { 0f, 0f, 0f } };
	vector3 vLocal_3659[20] = {{ 0f, 0f, 1.401298E-43f }, { 0f, 0f, 1.401298E-43f }, { 0f, 0f, 1.401298E-43f }, { 0f, 0f, 1.401298E-43f }, { 0f, 0f, 1.401298E-43f }, { 0f, 0f, 1.401298E-43f }, { 0f, 0f, 1.401298E-43f }, { 0f, 0f, 1.401298E-43f }, { 0f, 0f, 1.401298E-43f }, { 0f, 0f, 1.401298E-43f }, { 0f, 0f, 1.401298E-43f }, { 0f, 0f, 1.401298E-43f }, { 0f, 0f, 1.401298E-43f }, { 0f, 0f, 1.401298E-43f }, { 0f, 0f, 1.401298E-43f }, { 0f, 0f, 1.401298E-43f }, { 0f, 0f, 1.401298E-43f }, { 0f, 0f, 1.401298E-43f }, { 0f, 0f, 1.401298E-43f }, { 0f, 0f, 1.401298E-43f } };
	var uLocal_3720 = 0;
	var uLocal_3721 = 0;
	var uLocal_3722 = 0;
	var uLocal_3723 = 0;
	var uLocal_3724 = 0;
	var uLocal_3725 = 0;
	var uLocal_3726 = 0;
	int iLocal_3727 = 0;
	int iLocal_3728 = 0;
	int iLocal_3729 = 0;
	int iLocal_3730 = 0;
	int iLocal_3731 = 0;
	int iLocal_3732 = 0;
	var uLocal_3733 = 0;
	var uLocal_3734 = 0;
	int iLocal_3735 = 0;
	int iLocal_3736 = 0;
	int iLocal_3737 = 0;
	int iLocal_3738 = 0;
	int iLocal_3739 = 0;
	var uLocal_3740 = 0;
	int iLocal_3741 = 0;
	var uLocal_3742 = 0;
	var uLocal_3743 = 0;
	int iLocal_3744 = 0;
	int iLocal_3745 = 0;
	int iLocal_3746 = 0;
	int iLocal_3747 = 0;
	int iLocal_3748 = 0;
	int iLocal_3749 = 0;
	int iLocal_3750 = 0;
	var uLocal_3751 = 0;
	var uLocal_3752 = 0;
	vector3 vLocal_3753 = { 0f, 0f, 0f };
	var uLocal_3756 = 0;
	var uLocal_3757 = 0;
	var uLocal_3758 = 0;
	int iLocal_3759 = 0;
	int iLocal_3760 = 0;
	var uLocal_3761 = 0;
	var uLocal_3762 = 0;
	int iLocal_3763 = 0;
	vector3 vLocal_3764 = { 0f, 0f, 0f };
	var uLocal_3767 = 15;
	var uLocal_3768 = 0;
	var uLocal_3769 = 0;
	var uLocal_3770 = 0;
	var uLocal_3771 = 0;
	var uLocal_3772 = 0;
	var uLocal_3773 = 0;
	var uLocal_3774 = 0;
	var uLocal_3775 = 0;
	var uLocal_3776 = 0;
	var uLocal_3777 = 0;
	var uLocal_3778 = 0;
	var uLocal_3779 = 0;
	var uLocal_3780 = 0;
	var uLocal_3781 = 0;
	var uLocal_3782 = 0;
	var uLocal_3783 = 0;
	var uLocal_3784 = 0;
	var uLocal_3785 = 0;
	var uLocal_3786 = 15;
	var uLocal_3787 = 0;
	var uLocal_3788 = 0;
	var uLocal_3789 = 0;
	var uLocal_3790 = 0;
	var uLocal_3791 = 0;
	var uLocal_3792 = 0;
	var uLocal_3793 = 0;
	var uLocal_3794 = 0;
	var uLocal_3795 = 0;
	var uLocal_3796 = 0;
	var uLocal_3797 = 0;
	var uLocal_3798 = 0;
	var uLocal_3799 = 0;
	var uLocal_3800 = 0;
	var uLocal_3801 = 0;
	var uLocal_3802 = 0;
	var uLocal_3803 = 0;
	var uLocal_3804 = 0;
	var uLocal_3805 = 0;
	var uLocal_3806 = 0;
	var uLocal_3807 = 0;
	var uLocal_3808 = 0;
	var uLocal_3809 = 0;
	var uLocal_3810 = 0;
	var uLocal_3811 = 0;
	var uLocal_3812 = 0;
	var uLocal_3813 = 49;
	var uLocal_3814 = 0;
	var uLocal_3815 = 0;
	var uLocal_3816 = 0;
	var uLocal_3817 = 0;
	var uLocal_3818 = 0;
	var uLocal_3819 = 0;
	var uLocal_3820 = 0;
	var uLocal_3821 = 0;
	var uLocal_3822 = 0;
	var uLocal_3823 = 0;
	var uLocal_3824 = 0;
	var uLocal_3825 = 0;
	var uLocal_3826 = 0;
	var uLocal_3827 = 0;
	var uLocal_3828 = 0;
	var uLocal_3829 = 0;
	var uLocal_3830 = 0;
	var uLocal_3831 = 0;
	var uLocal_3832 = 0;
	var uLocal_3833 = 0;
	var uLocal_3834 = 0;
	var uLocal_3835 = 0;
	var uLocal_3836 = 0;
	var uLocal_3837 = 0;
	var uLocal_3838 = 0;
	var uLocal_3839 = 0;
	var uLocal_3840 = 0;
	var uLocal_3841 = 0;
	var uLocal_3842 = 0;
	var uLocal_3843 = 0;
	var uLocal_3844 = 0;
	var uLocal_3845 = 0;
	var uLocal_3846 = 0;
	var uLocal_3847 = 0;
	var uLocal_3848 = 0;
	var uLocal_3849 = 0;
	var uLocal_3850 = 0;
	var uLocal_3851 = 0;
	var uLocal_3852 = 0;
	var uLocal_3853 = 0;
	var uLocal_3854 = 0;
	var uLocal_3855 = 0;
	var uLocal_3856 = 0;
	var uLocal_3857 = 0;
	var uLocal_3858 = 0;
	var uLocal_3859 = 0;
	var uLocal_3860 = 0;
	var uLocal_3861 = 0;
	var uLocal_3862 = 0;
	var uLocal_3863 = 2;
	var uLocal_3864 = 0;
	var uLocal_3865 = 0;
	var uLocal_3866 = 0;
	var uLocal_3867 = 0;
	var uLocal_3868 = 0;
	var uLocal_3869 = 0;
	var uLocal_3870 = 0;
	var uLocal_3871 = 0;
	var uLocal_3872 = 0;
	var uLocal_3873 = 0;
	var uLocal_3874 = 0;
	var uLocal_3875 = 0;
	var uLocal_3876 = 0;
	var uLocal_3877 = 0;
	var uLocal_3878 = 0;
	var uLocal_3879 = 0;
	var uLocal_3880 = 0;
	var uLocal_3881 = 0;
	var uLocal_3882 = -1;
	var uLocal_3883 = 0;
	var uLocal_3884 = 0;
	var uLocal_3885 = 0;
	var uLocal_3886 = 0;
	var uLocal_3887 = 0;
	var uLocal_3888 = 0;
	var uLocal_3889 = 0;
	var uLocal_3890 = 0;
	var uLocal_3891 = 0;
	var uLocal_3892 = 0;
	var uLocal_3893 = 0;
	var uLocal_3894 = 0;
	var uLocal_3895 = 0;
	var uLocal_3896 = 0;
	var uLocal_3897 = 0;
	var uLocal_3898 = 0;
	var uLocal_3899 = -1;
	var uLocal_3900 = 1;
	var uLocal_3901 = 0;
	var uLocal_3902 = 132;
	var uLocal_3903 = -1;
	var uLocal_3904 = 0;
	var uLocal_3905 = 15;
	var uLocal_3906 = 0;
	var uLocal_3907 = 0;
	var uLocal_3908 = 0;
	var uLocal_3909 = 0;
	var uLocal_3910 = 0;
	var uLocal_3911 = 0;
	var uLocal_3912 = 0;
	var uLocal_3913 = 0;
	var uLocal_3914 = 0;
	var uLocal_3915 = 0;
	var uLocal_3916 = 0;
	var uLocal_3917 = 0;
	var uLocal_3918 = 0;
	var uLocal_3919 = 0;
	var uLocal_3920 = 0;
	var uLocal_3921 = 0;
	var uLocal_3922 = 0;
	var uLocal_3923 = 0;
	var uLocal_3924 = 0;
	var uLocal_3925 = 0;
	var uLocal_3926 = 0;
	var uLocal_3927 = 0;
	var uLocal_3928 = 0;
	var uLocal_3929 = 0;
	var uLocal_3930 = 0;
	var uLocal_3931 = 0;
	var uLocal_3932 = 0;
	var uLocal_3933 = 0;
	var uLocal_3934 = 0;
	var uLocal_3935 = 0;
	var uLocal_3936 = 0;
	var uLocal_3937 = 0;
	var uLocal_3938 = 0;
	var uLocal_3939 = 0;
	var uLocal_3940 = 0;
	var uLocal_3941 = 0;
	var uLocal_3942 = 0;
	var uLocal_3943 = 0;
	var uLocal_3944 = 0;
	var uLocal_3945 = 0;
	var uLocal_3946 = 0;
	var uLocal_3947 = 0;
	var uLocal_3948 = 0;
	var uLocal_3949 = 0;
	var uLocal_3950 = 0;
	var uLocal_3951 = 0;
	var uLocal_3952 = 0;
	var uLocal_3953 = 0;
	var uLocal_3954 = 0;
	var uLocal_3955 = 0;
	var uLocal_3956 = 0;
	var uLocal_3957 = 0;
	var uLocal_3958 = 0;
	var uLocal_3959 = 0;
	var uLocal_3960 = 0;
	var uLocal_3961 = 0;
	var uLocal_3962 = 0;
	var uLocal_3963 = 0;
	var uLocal_3964 = 0;
	var uLocal_3965 = 0;
	var uLocal_3966 = 0;
	var uLocal_3967 = 0;
	var uLocal_3968 = 0;
	var uLocal_3969 = 0;
	var uLocal_3970 = 0;
	var uLocal_3971 = 0;
	var uLocal_3972 = 0;
	var uLocal_3973 = 0;
	var uLocal_3974 = 0;
	var uLocal_3975 = 0;
	var uLocal_3976 = 0;
	var uLocal_3977 = 0;
	var uLocal_3978 = 0;
	var uLocal_3979 = 0;
	var uLocal_3980 = 0;
	var uLocal_3981 = 0;
	var uLocal_3982 = 0;
	var uLocal_3983 = 0;
	var uLocal_3984 = 0;
	var uLocal_3985 = 0;
	var uLocal_3986 = 0;
	var uLocal_3987 = 0;
	var uLocal_3988 = 0;
	var uLocal_3989 = 0;
	var uLocal_3990 = 0;
	var uLocal_3991 = 0;
	var uLocal_3992 = 0;
	var uLocal_3993 = 0;
	var uLocal_3994 = 0;
	var uLocal_3995 = 0;
	var uLocal_3996 = 0;
	var uLocal_3997 = 0;
	var uLocal_3998 = 0;
	var uLocal_3999 = 0;
	var uLocal_4000 = 0;
	var uLocal_4001 = 0;
	var uLocal_4002 = 0;
	var uLocal_4003 = 0;
	var uLocal_4004 = 0;
	var uLocal_4005 = 0;
	var uLocal_4006 = 0;
	var uLocal_4007 = 0;
	var uLocal_4008 = 0;
	var uLocal_4009 = 0;
	var uLocal_4010 = 0;
	var uLocal_4011 = 0;
	var uLocal_4012 = 0;
	var uLocal_4013 = 0;
	var uLocal_4014 = 0;
	var uLocal_4015 = 0;
	var uLocal_4016 = 0;
	var uLocal_4017 = 0;
	var uLocal_4018 = 0;
	var uLocal_4019 = 0;
	var uLocal_4020 = 0;
	var uLocal_4021 = 0;
	var uLocal_4022 = 0;
	var uLocal_4023 = 0;
	var uLocal_4024 = 0;
	var uLocal_4025 = 0;
	var uLocal_4026 = 0;
	var uLocal_4027 = 0;
	var uLocal_4028 = 0;
	var uLocal_4029 = 0;
	var uLocal_4030 = 0;
	var uLocal_4031 = 0;
	var uLocal_4032 = 0;
	var uLocal_4033 = 0;
	var uLocal_4034 = 0;
	var uLocal_4035 = 0;
	var uLocal_4036 = 0;
	var uLocal_4037 = 0;
	var uLocal_4038 = 0;
	var uLocal_4039 = 0;
	var uLocal_4040 = 0;
	var uLocal_4041 = 0;
	var uLocal_4042 = 0;
	var uLocal_4043 = 0;
	var uLocal_4044 = 0;
	var uLocal_4045 = 0;
	var uLocal_4046 = 0;
	var uLocal_4047 = 0;
	var uLocal_4048 = 0;
	var uLocal_4049 = 0;
	var uLocal_4050 = 0;
	var uLocal_4051 = 0;
	var uLocal_4052 = 0;
	var uLocal_4053 = 0;
	var uLocal_4054 = 0;
	var uLocal_4055 = 0;
	var uLocal_4056 = 0;
	var uLocal_4057 = 0;
	var uLocal_4058 = 0;
	var uLocal_4059 = 0;
	var uLocal_4060 = 0;
	var uLocal_4061 = 0;
	var uLocal_4062 = 0;
	var uLocal_4063 = 0;
	var uLocal_4064 = 0;
	var uLocal_4065 = 0;
	var uLocal_4066 = 0;
	var uLocal_4067 = 0;
	var uLocal_4068 = 0;
	var uLocal_4069 = 0;
	var uLocal_4070 = 0;
	var uLocal_4071 = 0;
	var uLocal_4072 = 0;
	var uLocal_4073 = 0;
	var uLocal_4074 = 0;
	var uLocal_4075 = 0;
	var uLocal_4076 = 0;
	var uLocal_4077 = 0;
	var uLocal_4078 = 0;
	var uLocal_4079 = 0;
	var uLocal_4080 = 0;
	var uLocal_4081 = 0;
	var uLocal_4082 = 0;
	var uLocal_4083 = 0;
	var uLocal_4084 = 0;
	var uLocal_4085 = 0;
	var uLocal_4086 = 0;
	var uLocal_4087 = 0;
	var uLocal_4088 = 0;
	var uLocal_4089 = 0;
	var uLocal_4090 = 0;
	var uLocal_4091 = 0;
	var uLocal_4092 = 0;
	var uLocal_4093 = 0;
	var uLocal_4094 = 0;
	var uLocal_4095 = 0;
	var uLocal_4096 = 0;
	var uLocal_4097 = 0;
	var uLocal_4098 = 0;
	var uLocal_4099 = 0;
	var uLocal_4100 = 0;
	var uLocal_4101 = 0;
	var uLocal_4102 = 0;
	var uLocal_4103 = 0;
	var uLocal_4104 = 0;
	var uLocal_4105 = 0;
	var uLocal_4106 = 0;
	var uLocal_4107 = 0;
	var uLocal_4108 = 0;
	var uLocal_4109 = 0;
	var uLocal_4110 = 0;
	var uLocal_4111 = 0;
	var uLocal_4112 = 0;
	var uLocal_4113 = 0;
	var uLocal_4114 = 0;
	var uLocal_4115 = 0;
	var uLocal_4116 = 0;
	var uLocal_4117 = 0;
	var uLocal_4118 = 0;
	var uLocal_4119 = 0;
	var uLocal_4120 = 0;
	var uLocal_4121 = 0;
	var uLocal_4122 = 0;
	var uLocal_4123 = 0;
	var uLocal_4124 = 0;
	var uLocal_4125 = 0;
	var uLocal_4126 = 0;
	var uLocal_4127 = 0;
	var uLocal_4128 = 0;
	var uLocal_4129 = 0;
	var uLocal_4130 = 0;
	var uLocal_4131 = 0;
	var uLocal_4132 = 0;
	var uLocal_4133 = 0;
	var uLocal_4134 = 0;
	var uLocal_4135 = 0;
	var uLocal_4136 = 0;
	var uLocal_4137 = 0;
	var uLocal_4138 = 0;
	var uLocal_4139 = 0;
	var uLocal_4140 = 0;
	var uLocal_4141 = 0;
	var uLocal_4142 = 0;
	var uLocal_4143 = 0;
	var uLocal_4144 = 0;
	var uLocal_4145 = 0;
	var uLocal_4146 = 15;
	var uLocal_4147 = 0;
	var uLocal_4148 = 0;
	var uLocal_4149 = 0;
	var uLocal_4150 = 0;
	var uLocal_4151 = 0;
	var uLocal_4152 = 0;
	var uLocal_4153 = 0;
	var uLocal_4154 = 0;
	var uLocal_4155 = 0;
	var uLocal_4156 = 0;
	var uLocal_4157 = 0;
	var uLocal_4158 = 0;
	var uLocal_4159 = 0;
	var uLocal_4160 = 0;
	var uLocal_4161 = 0;
	var uLocal_4162 = 0;
	var uLocal_4163 = 0;
	var uLocal_4164 = 0;
	var uLocal_4165 = 0;
	var uLocal_4166 = 0;
	var uLocal_4167 = 0;
	var uLocal_4168 = 0;
	var uLocal_4169 = 0;
	var uLocal_4170 = 0;
	var uLocal_4171 = 0;
	var uLocal_4172 = 0;
	var uLocal_4173 = 0;
	var uLocal_4174 = 0;
	var uLocal_4175 = 0;
	var uLocal_4176 = 0;
	var uLocal_4177 = 0;
	var uLocal_4178 = 0;
	var uLocal_4179 = 0;
	var uLocal_4180 = 0;
	var uLocal_4181 = 0;
	var uLocal_4182 = 0;
	var uLocal_4183 = -1;
	var uLocal_4184 = 0;
	var uLocal_4185 = -1;
	var uLocal_4186 = 0;
	var uLocal_4187 = 0;
	var uLocal_4188 = 0;
	var uLocal_4189 = 0;
	var uLocal_4190 = -1;
	var uLocal_4191 = 0;
	var uLocal_4192 = 0;
	var uLocal_4193 = 0;
	var uLocal_4194 = 0;
	var uLocal_4195 = 0;
	var uLocal_4196 = 15;
	var uLocal_4197 = 0;
	var uLocal_4198 = 0;
	var uLocal_4199 = 0;
	var uLocal_4200 = 0;
	var uLocal_4201 = 0;
	var uLocal_4202 = 0;
	var uLocal_4203 = 0;
	var uLocal_4204 = 0;
	var uLocal_4205 = 0;
	var uLocal_4206 = 0;
	var uLocal_4207 = 0;
	var uLocal_4208 = 0;
	var uLocal_4209 = 0;
	var uLocal_4210 = 0;
	var uLocal_4211 = 0;
	var uLocal_4212 = 0;
	var uLocal_4213 = 0;
	var uLocal_4214 = 0;
	var uLocal_4215 = 0;
	var uLocal_4216 = 12;
	var uLocal_4217 = 0;
	var uLocal_4218 = 0;
	var uLocal_4219 = 0;
	var uLocal_4220 = 0;
	var uLocal_4221 = 0;
	var uLocal_4222 = 0;
	var uLocal_4223 = 0;
	var uLocal_4224 = 0;
	var uLocal_4225 = 0;
	var uLocal_4226 = 0;
	var uLocal_4227 = 0;
	var uLocal_4228 = 0;
	var uLocal_4229 = 0;
	var uLocal_4230 = 0;
	var uLocal_4231 = 0;
	var uLocal_4232 = 0;
	var uLocal_4233 = 0;
	var uLocal_4234 = 0;
	var uLocal_4235 = 0;
	var uLocal_4236 = 0;
	var uLocal_4237 = 0;
	var uLocal_4238 = 0;
	var uLocal_4239 = 0;
	var uLocal_4240 = 0;
	var uLocal_4241 = 0;
	var uLocal_4242 = 0;
	var uLocal_4243 = 0;
	var uLocal_4244 = 0;
	var uLocal_4245 = 0;
	var uLocal_4246 = 0;
	var uLocal_4247 = 0;
	var uLocal_4248 = 0;
	var uLocal_4249 = 0;
	var uLocal_4250 = 0;
	var uLocal_4251 = 0;
	var uLocal_4252 = 0;
	var uLocal_4253 = 0;
	var uLocal_4254 = 0;
	var uLocal_4255 = 0;
	var uLocal_4256 = 0;
	var uLocal_4257 = 0;
	var uLocal_4258 = 0;
	var uLocal_4259 = 0;
	var uLocal_4260 = 0;
	var uLocal_4261 = 0;
	var uLocal_4262 = 0;
	var uLocal_4263 = 0;
	var uLocal_4264 = 0;
	var uLocal_4265 = 0;
	var uLocal_4266 = 0;
	var uLocal_4267 = 0;
	var uLocal_4268 = 0;
	var uLocal_4269 = 0;
	var uLocal_4270 = 0;
	var uLocal_4271 = 0;
	var uLocal_4272 = 0;
	var uLocal_4273 = 0;
	var uLocal_4274 = 0;
	var uLocal_4275 = 0;
	var uLocal_4276 = 0;
	var uLocal_4277 = 0;
	var uLocal_4278 = 0;
	var uLocal_4279 = 0;
	var uLocal_4280 = 0;
	var uLocal_4281 = 0;
	var uLocal_4282 = 0;
	var uLocal_4283 = 0;
	var uLocal_4284 = 0;
	var uLocal_4285 = 0;
	var uLocal_4286 = 0;
	var uLocal_4287 = 0;
	var uLocal_4288 = 0;
	var uLocal_4289 = 0;
	var uLocal_4290 = 0;
	var uLocal_4291 = 0;
	var uLocal_4292 = 0;
	var uLocal_4293 = 0;
	var uLocal_4294 = 0;
	var uLocal_4295 = 0;
	var uLocal_4296 = 0;
	var uLocal_4297 = 0;
	var uLocal_4298 = 0;
	var uLocal_4299 = 0;
	var uLocal_4300 = 0;
	var uLocal_4301 = 0;
	var uLocal_4302 = 0;
	var uLocal_4303 = 0;
	var uLocal_4304 = 0;
	var uLocal_4305 = 0;
	var uLocal_4306 = 0;
	var uLocal_4307 = 0;
	var uLocal_4308 = 0;
	var uLocal_4309 = 0;
	var uLocal_4310 = 0;
	var uLocal_4311 = 0;
	var uLocal_4312 = 0;
	var uLocal_4313 = 0;
	var uLocal_4314 = 0;
	var uLocal_4315 = 0;
	var uLocal_4316 = 0;
	var uLocal_4317 = 0;
	var uLocal_4318 = 0;
	var uLocal_4319 = 0;
	var uLocal_4320 = 0;
	var uLocal_4321 = 0;
	var uLocal_4322 = 0;
	var uLocal_4323 = 0;
	var uLocal_4324 = 0;
	var uLocal_4325 = 0;
	var uLocal_4326 = 0;
	var uLocal_4327 = 0;
	var uLocal_4328 = 0;
	var uLocal_4329 = 0;
	var uLocal_4330 = 0;
	var uLocal_4331 = 0;
	var uLocal_4332 = 0;
	var uLocal_4333 = 0;
	var uLocal_4334 = 0;
	var uLocal_4335 = 0;
	var uLocal_4336 = 0;
	var uLocal_4337 = 0;
	var uLocal_4338 = 0;
	var uLocal_4339 = 0;
	var uLocal_4340 = 0;
	var uLocal_4341 = 0;
	var uLocal_4342 = 0;
	var uLocal_4343 = 0;
	var uLocal_4344 = 0;
	var uLocal_4345 = 0;
	var uLocal_4346 = 0;
	var uLocal_4347 = 0;
	var uLocal_4348 = 0;
	var uLocal_4349 = 0;
	var uLocal_4350 = 0;
	var uLocal_4351 = 0;
	var uLocal_4352 = 0;
	var uLocal_4353 = 0;
	var uLocal_4354 = 0;
	var uLocal_4355 = 0;
	var uLocal_4356 = 0;
	var uLocal_4357 = 0;
	var uLocal_4358 = 0;
	var uLocal_4359 = 0;
	var uLocal_4360 = 0;
	var uLocal_4361 = 0;
	var uLocal_4362 = 0;
	var uLocal_4363 = 0;
	var uLocal_4364 = 0;
	var uLocal_4365 = 0;
	var uLocal_4366 = 0;
	var uLocal_4367 = 0;
	var uLocal_4368 = 0;
	var uLocal_4369 = 0;
	var uLocal_4370 = 0;
	var uLocal_4371 = 0;
	var uLocal_4372 = 0;
	var uLocal_4373 = 0;
	var uLocal_4374 = 0;
	var uLocal_4375 = 0;
	var uLocal_4376 = 0;
	var uLocal_4377 = 0;
	var uLocal_4378 = 0;
	var uLocal_4379 = 0;
	var uLocal_4380 = 0;
	var uLocal_4381 = 0;
	var uLocal_4382 = 0;
	var uLocal_4383 = 0;
	var uLocal_4384 = 0;
	var uLocal_4385 = 0;
	var uLocal_4386 = 0;
	var uLocal_4387 = 0;
	var uLocal_4388 = 0;
	var uLocal_4389 = 0;
	var uLocal_4390 = 0;
	var uLocal_4391 = 0;
	var uLocal_4392 = 0;
	var uLocal_4393 = 0;
	var uLocal_4394 = 0;
	var uLocal_4395 = 0;
	var uLocal_4396 = 0;
	var uLocal_4397 = 0;
	var uLocal_4398 = 0;
	var uLocal_4399 = 0;
	var uLocal_4400 = 0;
	var uLocal_4401 = 0;
	var uLocal_4402 = 0;
	var uLocal_4403 = 0;
	var uLocal_4404 = 0;
	var uLocal_4405 = 0;
	var uLocal_4406 = 0;
	var uLocal_4407 = 0;
	var uLocal_4408 = 0;
	var uLocal_4409 = 0;
	var uLocal_4410 = 0;
	var uLocal_4411 = 0;
	var uLocal_4412 = 0;
	var uLocal_4413 = 0;
	var uLocal_4414 = 0;
	var uLocal_4415 = 0;
	var uLocal_4416 = 0;
	var uLocal_4417 = 0;
	var uLocal_4418 = 0;
	var uLocal_4419 = 0;
	var uLocal_4420 = 0;
	var uLocal_4421 = 0;
	var uLocal_4422 = 0;
	var uLocal_4423 = 0;
	var uLocal_4424 = 0;
	var uLocal_4425 = 0;
	var uLocal_4426 = 0;
	var uLocal_4427 = 0;
	var uLocal_4428 = 0;
	var uLocal_4429 = 0;
	var uLocal_4430 = 0;
	var uLocal_4431 = 0;
	var uLocal_4432 = 0;
	var uLocal_4433 = 0;
	var uLocal_4434 = 0;
	var uLocal_4435 = 0;
	var uLocal_4436 = 0;
	var uLocal_4437 = 0;
	var uLocal_4438 = 0;
	var uLocal_4439 = 0;
	var uLocal_4440 = 0;
	var uLocal_4441 = 0;
	var uLocal_4442 = 0;
	var uLocal_4443 = 0;
	var uLocal_4444 = 0;
	var uLocal_4445 = 0;
	var uLocal_4446 = 0;
	var uLocal_4447 = 0;
	var uLocal_4448 = 0;
	var uLocal_4449 = 0;
	var uLocal_4450 = 0;
	var uLocal_4451 = 0;
	var uLocal_4452 = 0;
	var uLocal_4453 = 0;
	var uLocal_4454 = 0;
	var uLocal_4455 = 0;
	var uLocal_4456 = 0;
	var uLocal_4457 = 0;
	var uLocal_4458 = 0;
	var uLocal_4459 = 0;
	var uLocal_4460 = 0;
	var uLocal_4461 = 0;
	var uLocal_4462 = 0;
	var uLocal_4463 = 0;
	var uLocal_4464 = 0;
	var uLocal_4465 = 0;
	var uLocal_4466 = 0;
	var uLocal_4467 = 0;
	var uLocal_4468 = 0;
	var uLocal_4469 = 0;
	var uLocal_4470 = 0;
	var uLocal_4471 = 0;
	var uLocal_4472 = 0;
	var uLocal_4473 = 0;
	var uLocal_4474 = 0;
	var uLocal_4475 = 0;
	var uLocal_4476 = 0;
	var uLocal_4477 = 0;
	var uLocal_4478 = 0;
	var uLocal_4479 = 0;
	var uLocal_4480 = 0;
	var uLocal_4481 = 0;
	var uLocal_4482 = 0;
	var uLocal_4483 = 0;
	var uLocal_4484 = 0;
	var uLocal_4485 = 0;
	var uLocal_4486 = 0;
	var uLocal_4487 = 0;
	var uLocal_4488 = 0;
	var uLocal_4489 = 0;
	var uLocal_4490 = 0;
	var uLocal_4491 = 0;
	var uLocal_4492 = 0;
	var uLocal_4493 = 0;
	var uLocal_4494 = 0;
	var uLocal_4495 = 0;
	var uLocal_4496 = 0;
	var uLocal_4497 = 0;
	var uLocal_4498 = 0;
	var uLocal_4499 = 0;
	var uLocal_4500 = 0;
	var uLocal_4501 = 0;
	var uLocal_4502 = 0;
	var uLocal_4503 = 0;
	var uLocal_4504 = 0;
	var uLocal_4505 = 0;
	var uLocal_4506 = 0;
	var uLocal_4507 = 0;
	var uLocal_4508 = 0;
	var uLocal_4509 = 0;
	var uLocal_4510 = 0;
	var uLocal_4511 = 0;
	var uLocal_4512 = 0;
	var uLocal_4513 = 0;
	var uLocal_4514 = 0;
	var uLocal_4515 = 0;
	var uLocal_4516 = 0;
	var uLocal_4517 = 0;
	var uLocal_4518 = 0;
	var uLocal_4519 = 0;
	var uLocal_4520 = 0;
	var uLocal_4521 = 0;
	var uLocal_4522 = 0;
	var uLocal_4523 = 0;
	var uLocal_4524 = 0;
	var uLocal_4525 = 0;
	var uLocal_4526 = 0;
	var uLocal_4527 = 0;
	var uLocal_4528 = 0;
	var uLocal_4529 = 0;
	var uLocal_4530 = 0;
	var uLocal_4531 = 0;
	var uLocal_4532 = 0;
	var uLocal_4533 = 0;
	var uLocal_4534 = 0;
	var uLocal_4535 = 0;
	var uLocal_4536 = 0;
	var uLocal_4537 = 0;
	var uLocal_4538 = 0;
	var uLocal_4539 = 0;
	var uLocal_4540 = 0;
	var uLocal_4541 = 0;
	var uLocal_4542 = 0;
	var uLocal_4543 = 0;
	var uLocal_4544 = 0;
	var uLocal_4545 = 0;
	var uLocal_4546 = 0;
	var uLocal_4547 = 0;
	var uLocal_4548 = 0;
	var uLocal_4549 = 0;
	var uLocal_4550 = 0;
	var uLocal_4551 = 0;
	var uLocal_4552 = 0;
	var uLocal_4553 = 0;
	var uLocal_4554 = 0;
	var uLocal_4555 = 0;
	var uLocal_4556 = 0;
	var uLocal_4557 = 0;
	var uLocal_4558 = 0;
	var uLocal_4559 = 0;
	var uLocal_4560 = 0;
	var uLocal_4561 = 0;
	var uLocal_4562 = 0;
	var uLocal_4563 = 0;
	var uLocal_4564 = 0;
	var uLocal_4565 = 0;
	var uLocal_4566 = 0;
	var uLocal_4567 = 0;
	var uLocal_4568 = 0;
	var uLocal_4569 = 0;
	var uLocal_4570 = 0;
	var uLocal_4571 = 0;
	var uLocal_4572 = 0;
	var uLocal_4573 = 0;
	var uLocal_4574 = 0;
	var uLocal_4575 = 0;
	var uLocal_4576 = 0;
	var uLocal_4577 = 0;
	var uLocal_4578 = 0;
	var uLocal_4579 = 0;
	var uLocal_4580 = 0;
	var uLocal_4581 = 0;
	var uLocal_4582 = 0;
	var uLocal_4583 = 0;
	var uLocal_4584 = 0;
	var uLocal_4585 = 0;
	var uLocal_4586 = 0;
	var uLocal_4587 = 0;
	var uLocal_4588 = 0;
	var uLocal_4589 = 0;
	var uLocal_4590 = 0;
	var uLocal_4591 = 0;
	var uLocal_4592 = 0;
	var uLocal_4593 = 0;
	var uLocal_4594 = 0;
	var uLocal_4595 = 0;
	var uLocal_4596 = 0;
	var uLocal_4597 = 0;
	var uLocal_4598 = 0;
	var uLocal_4599 = 0;
	var uLocal_4600 = 0;
	var uLocal_4601 = 0;
	var uLocal_4602 = 0;
	var uLocal_4603 = 0;
	var uLocal_4604 = 0;
	var uLocal_4605 = 0;
	var uLocal_4606 = 0;
	var uLocal_4607 = 0;
	var uLocal_4608 = 0;
	var uLocal_4609 = 0;
	var uLocal_4610 = 0;
	var uLocal_4611 = 0;
	var uLocal_4612 = 0;
	var uLocal_4613 = 0;
	var uLocal_4614 = 0;
	var uLocal_4615 = 0;
	var uLocal_4616 = 0;
	var uLocal_4617 = 0;
	var uLocal_4618 = 0;
	var uLocal_4619 = 0;
	var uLocal_4620 = 0;
	var uLocal_4621 = 0;
	var uLocal_4622 = 0;
	var uLocal_4623 = 0;
	var uLocal_4624 = 0;
	var uLocal_4625 = 0;
	var uLocal_4626 = 0;
	var uLocal_4627 = 0;
	var uLocal_4628 = 0;
	var uLocal_4629 = 0;
	var uLocal_4630 = 0;
	var uLocal_4631 = 0;
	var uLocal_4632 = 0;
	var uLocal_4633 = 0;
	var uLocal_4634 = 0;
	var uLocal_4635 = 0;
	var uLocal_4636 = 0;
	var uLocal_4637 = 0;
	var uLocal_4638 = 0;
	var uLocal_4639 = 0;
	var uLocal_4640 = 0;
	var uLocal_4641 = 0;
	var uLocal_4642 = 0;
	var uLocal_4643 = 0;
	var uLocal_4644 = 0;
	var uLocal_4645 = 0;
	var uLocal_4646 = 0;
	var uLocal_4647 = 0;
	var uLocal_4648 = 0;
	var uLocal_4649 = 0;
	var uLocal_4650 = 0;
	var uLocal_4651 = 0;
	var uLocal_4652 = 0;
	var uLocal_4653 = 0;
	var uLocal_4654 = 0;
	var uLocal_4655 = 0;
	var uLocal_4656 = 0;
	var uLocal_4657 = 0;
	var uLocal_4658 = 0;
	var uLocal_4659 = 0;
	var uLocal_4660 = 0;
	var uLocal_4661 = 0;
	var uLocal_4662 = 0;
	var uLocal_4663 = 0;
	var uLocal_4664 = 0;
	var uLocal_4665 = 0;
	var uLocal_4666 = 0;
	var uLocal_4667 = 0;
	var uLocal_4668 = 0;
	var uLocal_4669 = 0;
	var uLocal_4670 = 0;
	var uLocal_4671 = 0;
	var uLocal_4672 = 0;
	var uLocal_4673 = 0;
	var uLocal_4674 = 0;
	var uLocal_4675 = 0;
	var uLocal_4676 = 0;
	var uLocal_4677 = 0;
	var uLocal_4678 = 0;
	var uLocal_4679 = 0;
	var uLocal_4680 = 0;
	var uLocal_4681 = 0;
	var uLocal_4682 = 0;
	var uLocal_4683 = 0;
	var uLocal_4684 = 0;
	var uLocal_4685 = 0;
	var uLocal_4686 = 0;
	var uLocal_4687 = 0;
	var uLocal_4688 = 0;
	var uLocal_4689 = 0;
	var uLocal_4690 = 0;
	var uLocal_4691 = 0;
	var uLocal_4692 = 0;
	var uLocal_4693 = 0;
	var uLocal_4694 = 0;
	var uLocal_4695 = 0;
	var uLocal_4696 = 0;
	var uLocal_4697 = 0;
	var uLocal_4698 = 0;
	var uLocal_4699 = 0;
	var uLocal_4700 = 0;
	var uLocal_4701 = 0;
	var uLocal_4702 = 0;
	var uLocal_4703 = 0;
	var uLocal_4704 = 0;
	var uLocal_4705 = 0;
	var uLocal_4706 = 0;
	var uLocal_4707 = 0;
	var uLocal_4708 = 0;
	var uLocal_4709 = 0;
	var uLocal_4710 = 0;
	var uLocal_4711 = 0;
	var uLocal_4712 = 0;
	var uLocal_4713 = 0;
	var uLocal_4714 = 0;
	var uLocal_4715 = 0;
	var uLocal_4716 = 0;
	var uLocal_4717 = 0;
	var uLocal_4718 = 0;
	var uLocal_4719 = 0;
	var uLocal_4720 = 0;
	var uLocal_4721 = 0;
	var uLocal_4722 = 0;
	var uLocal_4723 = 0;
	var uLocal_4724 = 0;
	var uLocal_4725 = 0;
	var uLocal_4726 = 0;
	var uLocal_4727 = 0;
	var uLocal_4728 = 0;
	var uLocal_4729 = 0;
	var uLocal_4730 = 0;
	var uLocal_4731 = 0;
	var uLocal_4732 = 0;
	var uLocal_4733 = 0;
	var uLocal_4734 = 0;
	var uLocal_4735 = 0;
	var uLocal_4736 = 0;
	var uLocal_4737 = 0;
	var uLocal_4738 = 0;
	var uLocal_4739 = 0;
	var uLocal_4740 = 0;
	var uLocal_4741 = 0;
	var uLocal_4742 = 0;
	var uLocal_4743 = 0;
	var uLocal_4744 = 0;
	var uLocal_4745 = 0;
	var uLocal_4746 = 0;
	var uLocal_4747 = 0;
	var uLocal_4748 = 0;
	var uLocal_4749 = 0;
	var uLocal_4750 = 0;
	var uLocal_4751 = 0;
	var uLocal_4752 = 0;
	var uLocal_4753 = 0;
	var uLocal_4754 = 0;
	var uLocal_4755 = 0;
	var uLocal_4756 = 0;
	var uLocal_4757 = 0;
	var uLocal_4758 = 0;
	var uLocal_4759 = 0;
	var uLocal_4760 = 0;
	var uLocal_4761 = 0;
	var uLocal_4762 = 0;
	var uLocal_4763 = 0;
	var uLocal_4764 = 0;
	var uLocal_4765 = 0;
	var uLocal_4766 = 0;
	var uLocal_4767 = 0;
	var uLocal_4768 = 0;
	var uLocal_4769 = 0;
	var uLocal_4770 = 0;
	var uLocal_4771 = 0;
	var uLocal_4772 = 0;
	var uLocal_4773 = 0;
	var uLocal_4774 = 0;
	var uLocal_4775 = 0;
	var uLocal_4776 = 0;
	var uLocal_4777 = 0;
	var uLocal_4778 = 0;
	var uLocal_4779 = 0;
	var uLocal_4780 = 0;
	var uLocal_4781 = 0;
	var uLocal_4782 = 0;
	var uLocal_4783 = 0;
	var uLocal_4784 = 0;
	var uLocal_4785 = 0;
	var uLocal_4786 = 0;
	var uLocal_4787 = 0;
	var uLocal_4788 = 0;
	var uLocal_4789 = 0;
	var uLocal_4790 = 0;
	var uLocal_4791 = 0;
	var uLocal_4792 = 0;
	var uLocal_4793 = 0;
	var uLocal_4794 = 0;
	var uLocal_4795 = 0;
	var uLocal_4796 = 0;
	var uLocal_4797 = 0;
	var uLocal_4798 = 0;
	var uLocal_4799 = 0;
	var uLocal_4800 = 0;
	var uLocal_4801 = 0;
	var uLocal_4802 = 0;
	var uLocal_4803 = 0;
	var uLocal_4804 = 0;
	var uLocal_4805 = 0;
	var uLocal_4806 = 0;
	var uLocal_4807 = 0;
	var uLocal_4808 = 0;
	var uLocal_4809 = 0;
	var uLocal_4810 = 0;
	var uLocal_4811 = 0;
	var uLocal_4812 = 0;
	var uLocal_4813 = 0;
	var uLocal_4814 = 0;
	var uLocal_4815 = 0;
	var uLocal_4816 = 0;
	var uLocal_4817 = 0;
	var uLocal_4818 = 0;
	var uLocal_4819 = 0;
	var uLocal_4820 = 0;
	var uLocal_4821 = 0;
	var uLocal_4822 = 0;
	var uLocal_4823 = 0;
	var uLocal_4824 = 0;
	var uLocal_4825 = 0;
	var uLocal_4826 = 0;
	var uLocal_4827 = 0;
	var uLocal_4828 = 0;
	var uLocal_4829 = 0;
	var uLocal_4830 = 0;
	var uLocal_4831 = 0;
	var uLocal_4832 = 0;
	var uLocal_4833 = 0;
	var uLocal_4834 = 0;
	var uLocal_4835 = 0;
	var uLocal_4836 = 0;
	var uLocal_4837 = 0;
	var uLocal_4838 = 0;
	var uLocal_4839 = 0;
	var uLocal_4840 = 0;
	var uLocal_4841 = 0;
	var uLocal_4842 = 0;
	var uLocal_4843 = 0;
	var uLocal_4844 = 0;
	var uLocal_4845 = 0;
	var uLocal_4846 = 0;
	var uLocal_4847 = 0;
	var uLocal_4848 = 0;
	var uLocal_4849 = 0;
	var uLocal_4850 = 0;
	var uLocal_4851 = 0;
	var uLocal_4852 = 0;
	var uLocal_4853 = 0;
	var uLocal_4854 = 0;
	var uLocal_4855 = 0;
	var uLocal_4856 = 0;
	var uLocal_4857 = 0;
	var uLocal_4858 = 0;
	var uLocal_4859 = 0;
	var uLocal_4860 = 0;
	var uLocal_4861 = 0;
	var uLocal_4862 = 0;
	var uLocal_4863 = 0;
	var uLocal_4864 = 0;
	var uLocal_4865 = 0;
	var uLocal_4866 = 0;
	var uLocal_4867 = 0;
	var uLocal_4868 = 0;
	var uLocal_4869 = 0;
	var uLocal_4870 = 0;
	var uLocal_4871 = 0;
	var uLocal_4872 = 0;
	var uLocal_4873 = 0;
	var uLocal_4874 = 0;
	var uLocal_4875 = 0;
	var uLocal_4876 = 0;
	var uLocal_4877 = 0;
	var uLocal_4878 = 0;
	var uLocal_4879 = 0;
	var uLocal_4880 = 0;
	var uLocal_4881 = 0;
	var uLocal_4882 = 0;
	var uLocal_4883 = 0;
	var uLocal_4884 = 0;
	var uLocal_4885 = 0;
	var uLocal_4886 = 0;
	var uLocal_4887 = 0;
	var uLocal_4888 = 0;
	var uLocal_4889 = 0;
	var uLocal_4890 = 0;
	var uLocal_4891 = 0;
	var uLocal_4892 = 0;
	var uLocal_4893 = 0;
	var uLocal_4894 = 0;
	var uLocal_4895 = 0;
	var uLocal_4896 = 0;
	var uLocal_4897 = 0;
	var uLocal_4898 = 0;
	var uLocal_4899 = 0;
	var uLocal_4900 = 0;
	var uLocal_4901 = 1065353216;
	var uLocal_4902 = 0;
	var uLocal_4903 = 15;
	var uLocal_4904 = 0;
	var uLocal_4905 = 0;
	var uLocal_4906 = 0;
	var uLocal_4907 = 0;
	var uLocal_4908 = 0;
	var uLocal_4909 = 0;
	var uLocal_4910 = 0;
	var uLocal_4911 = 0;
	var uLocal_4912 = 0;
	var uLocal_4913 = 0;
	var uLocal_4914 = 0;
	var uLocal_4915 = 0;
	var uLocal_4916 = 0;
	var uLocal_4917 = 0;
	var uLocal_4918 = 0;
	var uLocal_4919 = 0;
	var uLocal_4920 = 0;
	var uLocal_4921 = 0;
	var uLocal_4922 = 0;
	var uLocal_4923 = 0;
	var uLocal_4924 = 0;
	var uLocal_4925 = 0;
	var uLocal_4926 = 0;
	var uLocal_4927 = 0;
	var uLocal_4928 = 0;
	var uLocal_4929 = 0;
	var uLocal_4930 = 0;
	var uLocal_4931 = 0;
	int iLocal_4932 = 0;
	int iLocal_4933 = 0;
	int iLocal_4934 = 0;
	int iLocal_4935 = 0;
	int iLocal_4936 = 0;
	int iLocal_4937 = 0;
	struct<20> Local_4938 = { 0, -1, -1, 0, 0, 0, 0, 0, 0, -1, 0, 0, 0, 0, 0, 0, -1, 0, 0, -1 } ;
#endregion

void __EntryFunction__()//Position - 0x0
{
	int iVar0;
	int iVar1;
	int iVar2;
	int iVar3;
	
	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_18 = "NULL";
	fLocal_23 = 80f;
	fLocal_24 = 140f;
	fLocal_25 = 180f;
	fLocal_28 = 0f;
	fLocal_32 = -0.0375f;
	fLocal_33 = 0.17f;
	iLocal_36 = 3;
	iLocal_40 = 1;
	iLocal_41 = 65;
	iLocal_42 = 49;
	iLocal_43 = 64;
	fLocal_90 = ((0.05f + 0.275f) - 0.01f);
	fLocal_93 = -0.05f;
	fLocal_94 = 0.92f;
	fLocal_95 = 1.94f;
	fLocal_96 = 2.99f;
	fLocal_97 = 3.7f;
	fLocal_99 = 1f;
	fLocal_651 = 9999.99f;
	iLocal_3735 = -1;
	iLocal_3736 = -1;
	iLocal_3738 = -1;
	iLocal_3739 = -1;
	iLocal_3747 = -1;
	iLocal_3759 = -1;
	if (network::network_is_game_in_progress() && func_1644(player::player_id(), 0, 1))
	{
		func_1635(Local_4938);
	}
	else
	{
		func_1605();
	}
	while (true)
	{
		func_1604();
		if (func_1598())
		{
			func_1605();
		}
		if (func_1597())
		{
			func_1605();
		}
		func_1596(2);
		iLocal_3739 = -1;
		if (gameplay::is_bit_set(iLocal_3730, player::player_id()))
		{
			if (gameplay::is_bit_set(iLocal_3731, network::participant_id_to_int()))
			{
				if (func_1595(player::player_ped_id()))
				{
					func_1594(2);
				}
				if (!func_1592(player::player_id()))
				{
					iLocal_3739 = network::participant_id_to_int();
				}
				else if (func_1591() && !func_1590())
				{
					iVar0 = func_1588();
					if (ped::is_ped_a_player(iVar0))
					{
						iVar1 = network::_network_get_ped_player(iVar0);
						if (network::network_is_player_a_participant(iVar1))
						{
							iVar2 = network::network_get_participant_index(iVar1);
							iLocal_3739 = iVar2;
						}
					}
				}
			}
		}
		func_1567();
		if (func_1566() == network::participant_id_to_int())
		{
			if (func_1565(network::participant_id_to_int()) < 3)
			{
				if (func_1560())
				{
					func_1559(18);
					func_1558(3);
				}
				if (func_1557())
				{
					func_1559(18);
					func_1558(3);
				}
				if (func_1556())
				{
					func_1559(18);
					func_1558(3);
				}
				if (Global_2394716)
				{
					func_1559(18);
					func_1558(3);
				}
			}
		}
		if (func_1555() == 0)
		{
			if (func_1552(2, 0, 1, 0, 0))
			{
				func_1559(20);
				func_1559(18);
				if (func_1565(network::participant_id_to_int()) < 3)
				{
					func_1558(3);
				}
			}
		}
		func_1443();
		func_1440();
		func_1431();
		func_1429();
		if (!func_1427(1, 0) && iLocal_3739 == network::participant_id_to_int())
		{
			if (!gameplay::is_bit_set(iLocal_3732, Local_2985[network::participant_id_to_int() /*18*/].f_1))
			{
				if (func_1426() <= IntToFloat(func_1425()))
				{
					if (!func_1424(6, network::participant_id_to_int()))
					{
						func_1423(6);
					}
				}
			}
		}
		else if (func_1424(6, network::participant_id_to_int()))
		{
			func_1422(6);
		}
		switch (func_1565(network::participant_id_to_int()))
		{
			case 0:
				if (func_1421() == 1)
				{
					func_1558(1);
				}
				else if (func_1421() == 4)
				{
					func_1558(4);
				}
				break;
			
			case 1:
				if (func_1421() == 1)
				{
					func_699();
				}
				else if (func_1421() == 4)
				{
					func_698(&(Local_653.f_81));
					func_1558(3);
				}
				break;
			
			case 3:
				func_694();
				func_687();
				func_672();
				if (func_671(&(Local_653.f_81)))
				{
					if (func_670(&(Local_653.f_81)))
					{
						iVar3 = true;
					}
				}
				else
				{
					iVar3 = true;
				}
				if (func_669(18))
				{
					iVar3 = true;
				}
				if (iVar3)
				{
					if (func_669(20))
					{
						func_560();
					}
					if (func_1566() == network::participant_id_to_int())
					{
						if (func_1644(player::player_id(), 1, 1))
						{
							if (func_1555() == 3 || func_1555() == 4)
							{
								if (func_384())
								{
									func_1558(4);
								}
							}
							else if (func_62(1))
							{
								func_1558(4);
							}
						}
					}
					else
					{
						func_1558(4);
					}
				}
				break;
			
			case 2:
				func_1558(4);
			
			case 4:
				func_1605();
				break;
		}
		if (network::network_is_host_of_this_script())
		{
			switch (func_1421())
			{
				case 0:
					func_61(1);
					break;
				
				case 1:
					func_1();
					break;
				
				case 4:
					break;
				}
		}
	}
}

void func_1()//Position - 0x3F1
{
	switch (func_60())
	{
		case 0:
			func_59(1);
			break;
		
		case 1:
			if (!func_671(&(Local_653.f_1.f_4)))
			{
				func_58(&(Local_653.f_1.f_4), 0, 0);
			}
			else if (func_57(&(Local_653.f_1.f_4), Global_262145.f_9719, 0))
			{
				if (func_41())
				{
					func_35(vLocal_3562[func_40() /*3*/], func_36(1, 1));
					func_10();
					func_9(&(Local_653.f_1.f_4));
					func_58(&(Local_653.f_1.f_2), 0, 0);
					func_59(2);
				}
				else
				{
					func_8(8);
					func_59(3);
				}
			}
			break;
		
		case 2:
			if (func_1555() == 0)
			{
				if (func_7() != -1)
				{
					func_8(4);
					func_59(3);
				}
			}
			if (func_1555() == 0)
			{
				if (func_1566() != -1)
				{
					if (!gameplay::is_bit_set(iLocal_3731, func_1566()))
					{
						func_8(6);
						func_59(3);
					}
					else if (!gameplay::is_bit_set(iLocal_3730, func_40()))
					{
						func_8(6);
						func_59(3);
					}
					else if (func_6(func_40()))
					{
						func_8(6);
						func_59(3);
					}
					else if (func_5(5))
					{
						if (gameplay::is_bit_set(iLocal_3732, func_40()))
						{
							if (func_4() == 0)
							{
								if (func_5(3))
								{
									func_8(5);
								}
								else if (func_5(1))
								{
									func_8(7);
								}
								else if (func_5(4))
								{
									func_8(2);
								}
								else if (func_5(2))
								{
									func_8(2);
								}
							}
							else if (func_4() == 1)
							{
								func_8(2);
							}
							if (func_1555() == 0)
							{
								func_8(2);
							}
							func_59(3);
						}
					}
				}
			}
			if (func_1555() == 0)
			{
				if (gameplay::is_bit_set(iLocal_3731, func_1566()))
				{
					if (func_1424(4, func_1566()))
					{
						func_8(3);
						func_59(3);
					}
				}
			}
			if (func_1555() == 0)
			{
				if (func_2())
				{
					func_672();
					func_8(1);
					func_59(3);
				}
			}
			break;
		
		case 3:
			if (func_5(0))
			{
				func_59(4);
			}
			break;
		
		case 4:
			func_59(5);
			break;
		
		case 5:
			func_61(4);
			break;
	}
}

bool func_2()//Position - 0x612
{
	if (func_3(&(Local_653.f_1.f_2), 0, 0) >= Global_262145.f_9718)
	{
		return true;
	}
	return false;
}

int func_3(var uParam0, int iParam1, int iParam2)//Position - 0x636
{
	if (network::network_is_game_in_progress() && !iParam1)
	{
		if (!iParam2)
		{
			return network::get_time_difference(network::get_network_time(), *uParam0);
		}
		else
		{
			return network::get_time_difference(network::_0x89023FBBF9200E9F(), *uParam0);
		}
	}
	return network::get_time_difference(gameplay::get_game_timer(), *uParam0);
}

var func_4()//Position - 0x67D
{
	return Local_653.f_1.f_1;
}

int func_5(int iParam0)//Position - 0x68C
{
	return gameplay::is_bit_set(Local_653.f_83, iParam0);
}

int func_6(int iParam0)//Position - 0x69F
{
	return Global_1589933[iParam0 /*601*/].f_187 != 0;
}

var func_7()//Position - 0x6B4
{
	return Local_653.f_1.f_14;
}

void func_8(int iParam0)//Position - 0x6C3
{
	Local_653.f_1.f_18 = iParam0;
}

void func_9(var uParam0)//Position - 0x6D4
{
	uParam0->f_1 = 0;
}

void func_10()//Position - 0x6E1
{
	int iVar0;
	int iVar1;
	int iVar2;
	int iVar3[20];
	
	func_31();
	func_17();
	iVar0 = 0;
	while (iVar0 < 20)
	{
		iVar3[iVar0] = iVar0;
		iVar0++;
	}
	iVar0 = 0;
	while (iVar0 < 20)
	{
		iVar1 = gameplay::get_random_int_in_range(0, 20);
		iVar2 = iVar3[iVar0];
		iVar3[iVar0] = iVar3[iVar1];
		iVar3[iVar1] = iVar2;
		iVar0++;
	}
	iVar0 = 0;
	while (iVar0 < 20)
	{
		iVar1 = gameplay::get_random_int_in_range(0, 20);
		iVar2 = iVar3[iVar0];
		iVar3[iVar0] = iVar3[iVar1];
		iVar3[iVar1] = iVar2;
		iVar0++;
	}
	iVar0 = 0;
	while (iVar0 < 20)
	{
		iVar1 = gameplay::get_random_int_in_range(0, 20);
		iVar2 = iVar3[iVar0];
		iVar3[iVar0] = iVar3[iVar1];
		iVar3[iVar1] = iVar2;
		iVar0++;
	}
	iVar0 = 0;
	while (iVar0 < Global_262145.f_9743)
	{
		Local_653.f_1.f_19[iVar0 /*3*/] = { func_11(iVar3[iVar0]) };
		iVar0++;
	}
}

Vector3 func_11(int iParam0)//Position - 0x7E9
{
	switch (func_16())
	{
		case 0:
			switch (func_15())
			{
				case 0:
					switch (iParam0)
					{
						case 0:
							return 60.6494f, 3716.353f, 38.7534f;
						
						case 1:
							return -500.9855f, 4518.503f, 85.0273f;
						
						case 2:
							return -527.979f, 5291.333f, 73.1858f;
						
						case 3:
							return 354.9309f, 4436.367f, 62.2071f;
						
						case 4:
							return -879.134f, 4412.521f, 19.9037f;
						
						case 5:
							return -1954.19f, 4460.734f, 33.9471f;
						
						case 6:
							return -1103.792f, 2693.216f, 17.7398f;
						
						case 7:
							return -1572.8f, 2776.851f, 16.1917f;
						
						case 8:
							return -2554.72f, 2330.554f, 32.06f;
						
						case 9:
							return -1579.27f, 5169.073f, 18.5721f;
						
						case 10:
							return -678.772f, 5798.004f, 16.331f;
						
						case 11:
							return -162.405f, 6424.979f, 30.8992f;
						
						case 12:
							return 420.6905f, 6475.517f, 27.8125f;
						
						case 13:
							return 88.466f, 7076.672f, 0.8722f;
						
						case 14:
							return -783.2772f, 5119.83f, 141.8702f;
						
						case 15:
							return -2133.3f, 3415.716f, 30.49f;
						
						case 16:
							return 256.2022f, 2578.14f, 44.244f;
						
						case 17:
							return -3012.17f, 3399.483f, 9.4533f;
						
						case 18:
							return -283.639f, 2538.775f, 73.6463f;
						
						case 19:
							return -646.4211f, 4009.931f, 124.8905f;
						
						default:
					}
					break;
				
				case 1:
					switch (iParam0)
					{
						case 0:
							return 18.0979f, 3678.936f, 38.755f;
						
						case 1:
							return -1691.731f, 4597.982f, 46.9681f;
						
						case 2:
							return -2204.33f, 4258.148f, 46.6784f;
						
						case 3:
							return -1583.94f, 4201.873f, 79.7031f;
						
						case 4:
							return -84.1272f, 4581.544f, 122.1646f;
						
						case 5:
							return -283.1379f, 3675.942f, 64.8241f;
						
						case 6:
							return -1019.954f, 4945.819f, 198.1698f;
						
						case 7:
							return -476.4f, 5352.671f, 79.7186f;
						
						case 8:
							return -1371.387f, 4799.256f, 128.0101f;
						
						case 9:
							return -165.553f, 6575.823f, 11.7782f;
						
						case 10:
							return -465.667f, 5999.553f, 30.3055f;
						
						case 11:
							return 758.9827f, 6452.188f, 30.8672f;
						
						case 12:
							return -898.653f, 6043.334f, 42.0464f;
						
						case 13:
							return -2073.772f, 2694.612f, 2.6679f;
						
						case 14:
							return -417.102f, 2964.439f, 23.9395f;
						
						case 15:
							return -1829.66f, 2214.377f, 85.9864f;
						
						case 16:
							return -2591.11f, 3153.813f, 13.5211f;
						
						case 17:
							return -1434.97f, 5408.573f, 24.719f;
						
						case 18:
							return 288.4566f, 2862.962f, 42.6424f;
						
						case 19:
							return -543.895f, 4356.474f, 63.9277f;
						
						default:
					}
					break;
				
				case 2:
					switch (iParam0)
					{
						case 0:
							return -667.619f, 4148.763f, 157.8432f;
						
						case 1:
							return -1638.28f, 4728.878f, 52.475f;
						
						case 2:
							return -506.992f, 5272.484f, 79.6101f;
						
						case 3:
							return -770.0641f, 5584.228f, 32.4857f;
						
						case 4:
							return -24.2919f, 6272.453f, 30.234f;
						
						case 5:
							return -2254.01f, 4418.163f, 38.4088f;
						
						case 6:
							return -2647.193f, 2950.202f, 7.7383f;
						
						case 7:
							return -1923.13f, 2074.452f, 138.9418f;
						
						case 8:
							return -331.19f, 2788.228f, 58.4295f;
						
						case 9:
							return 98.7507f, 3741.897f, 38.7249f;
						
						case 10:
							return -165.59f, 4248.214f, 43.9326f;
						
						case 11:
							return -387.3348f, 4905.573f, 192.1761f;
						
						case 12:
							return 117.2856f, 6614.791f, 30.8528f;
						
						case 13:
							return -897.6235f, 6046.576f, 42.5315f;
						
						case 14:
							return -1623.62f, 3197.239f, 29.0322f;
						
						case 15:
							return -600.2745f, 2092.925f, 130.2987f;
						
						case 16:
							return -1049.09f, 4759.822f, 234.8129f;
						
						case 17:
							return -2976.189f, 2117.808f, 40.126f;
						
						case 18:
							return 192.3478f, 2787.877f, 44.6449f;
						
						case 19:
							return -1619.75f, 4391.951f, 1.3766f;
						
						default:
					}
					break;
			}
			break;
		
		case 1:
			switch (func_14())
			{
				case 0:
					switch (iParam0)
					{
						case 0:
							return 3333.308f, 5173.045f, 17.334f;
						
						case 1:
							return 2902.259f, 4380.882f, 49.3692f;
						
						case 2:
							return 2379.229f, 3072.314f, 47.153f;
						
						case 3:
							return 741.4068f, 2574.961f, 74.5234f;
						
						case 4:
							return 1627.106f, 3601.59f, 34.2867f;
						
						case 5:
							return 1802.179f, 4612.114f, 36.1828f;
						
						case 6:
							return 2202.711f, 5567.547f, 52.7958f;
						
						case 7:
							return 340.0788f, 3568.105f, 32.4699f;
						
						case 8:
							return 1760.029f, 3047.52f, 61.034f;
						
						case 9:
							return 2506.045f, 3783.487f, 50.4234f;
						
						case 10:
							return 2576.003f, 2569.901f, 33.73f;
						
						case 11:
							return 1957.025f, 2062.29f, 83.5513f;
						
						case 12:
							return 709.8304f, 4174.877f, 39.7104f;
						
						case 13:
							return 1869.198f, 6407.897f, 45.5522f;
						
						case 14:
							return 2386.272f, 5914.32f, 71.932f;
						
						case 15:
							return 2544.489f, 4660.61f, 33.0768f;
						
						case 16:
							return 3498.131f, 3678.998f, 32.913f;
						
						case 17:
							return 1370.153f, 2182.128f, 96.842f;
						
						case 18:
							return 2980.779f, 3495.813f, 70.3818f;
						
						case 19:
							return 1853.474f, 4991.999f, 52.5337f;
						
						default:
					}
					break;
				
				case 1:
					switch (iParam0)
					{
						case 0:
							return 1962.481f, 5161.141f, 46.2136f;
						
						case 1:
							return 1587.434f, 6575.072f, 13.3922f;
						
						case 2:
							return 1343.231f, 4319.792f, 37.0156f;
						
						case 3:
							return 2706.569f, 1572.454f, 23.5127f;
						
						case 4:
							return 2827.893f, 2807.42f, 56.3817f;
						
						case 5:
							return 2615.974f, 3664.341f, 101.1075f;
						
						case 6:
							return 927.7864f, 2862.624f, 59.2884f;
						
						case 7:
							return 2760.003f, 4756.592f, 43.5179f;
						
						case 8:
							return 3702.667f, 4464.36f, 22.2115f;
						
						case 9:
							return 2691.361f, 5325.436f, 78.9108f;
						
						case 10:
							return 1983.582f, 3819.107f, 31.2944f;
						
						case 11:
							return 1499.871f, 3590.165f, 34.3923f;
						
						case 12:
							return 449.8463f, 3562.69f, 32.2386f;
						
						case 13:
							return 1855.506f, 2586.193f, 44.672f;
						
						case 14:
							return 814.4625f, 2177.089f, 51.2767f;
						
						case 15:
							return 3514.011f, 3760.738f, 29.0498f;
						
						case 16:
							return 2465.545f, 4081.937f, 37.0654f;
						
						case 17:
							return 2369.577f, 5772.774f, 45.056f;
						
						case 18:
							return 1720.596f, 4708.748f, 41.3499f;
						
						case 19:
							return 406.5959f, 2994.589f, 39.3562f;
						
						default:
					}
					break;
				
				case 2:
					switch (iParam0)
					{
						case 0:
							return 1140.085f, 2345.897f, 53.4358f;
						
						case 1:
							return 2468.26f, 1585.599f, 31.7203f;
						
						case 2:
							return 1637.309f, 3875.385f, 33.0311f;
						
						case 3:
							return 2675.917f, 3923.699f, 41.9335f;
						
						case 4:
							return 2807.929f, 3870.42f, 49.4683f;
						
						case 5:
							return 1952.915f, 4651.176f, 39.6817f;
						
						case 6:
							return 2553.204f, 5624.554f, 60.3892f;
						
						case 7:
							return 2080.566f, 2950.647f, 45.6336f;
						
						case 8:
							return 476.5016f, 4319.071f, 57.593f;
						
						case 9:
							return 1482.183f, 6401.372f, 21.5773f;
						
						case 10:
							return 606.1604f, 3196.212f, 38.3064f;
						
						case 11:
							return 869.4146f, 2870.985f, 55.9367f;
						
						case 12:
							return 1581.824f, 2167.044f, 78.3125f;
						
						case 13:
							return 1769.895f, 3306.106f, 40.1558f;
						
						case 14:
							return 2348.826f, 2585.213f, 45.6677f;
						
						case 15:
							return 2752.395f, 3470.895f, 54.7239f;
						
						case 16:
							return 2930.009f, 4605.931f, 47.6526f;
						
						case 17:
							return 2532.954f, 4817.711f, 33.0208f;
						
						case 18:
							return 2257.293f, 5173.737f, 58.8145f;
						
						case 19:
							return 2490.398f, 5762.287f, 69.0921f;
						
						default:
					}
					break;
			}
			break;
		
		case 2:
			switch (func_13())
			{
				case 0:
					switch (iParam0)
					{
						case 0:
							return -1143.704f, -527.3066f, 31.5764f;
						
						case 1:
							return -1695.533f, -295.7492f, 50.8123f;
						
						case 2:
							return -3238.389f, 990.7311f, 11.4421f;
						
						case 3:
							return -429.2764f, 1115.734f, 325.768f;
						
						case 4:
							return 301.0331f, 199.3712f, 103.3263f;
						
						case 5:
							return -1018.978f, -223.8663f, 36.9415f;
						
						case 6:
							return -1221.84f, -1649.904f, 3.252f;
						
						case 7:
							return -889.7106f, -2191.198f, 7.5239f;
						
						case 8:
							return -147.0518f, -873.681f, 28.7611f;
						
						case 9:
							return -16.8606f, -1085.071f, 25.6656f;
						
						case 10:
							return 86.1082f, -1953.379f, 19.8402f;
						
						case 11:
							return -1940.936f, 1777.483f, 173.1246f;
						
						case 12:
							return -1469.392f, 884.9769f, 182.0226f;
						
						case 13:
							return -540.6651f, 437.7372f, 97.6902f;
						
						case 14:
							return -121.4641f, -224.7865f, 43.8313f;
						
						case 15:
							return -622.1915f, -918.7624f, 22.5724f;
						
						case 16:
							return -262.7169f, -1896.883f, 26.7554f;
						
						case 17:
							return -1331.406f, -1094.223f, 5.9714f;
						
						case 18:
							return 220.3f, -2393.6f, 8.2f;
						
						case 19:
							return 245.0228f, -386.8258f, 44.4038f;
						
						default:
					}
					break;
				
				case 1:
					switch (iParam0)
					{
						case 0:
							return -2319.258f, 385.4325f, 173.4667f;
						
						case 1:
							return -3068.426f, 781.3279f, 20.3519f;
						
						case 2:
							return -173.0154f, 820.308f, 202.1197f;
						
						case 3:
							return -432.3228f, 1598.7f, 355.7407f;
						
						case 4:
							return -1526.005f, -924.8728f, 9.1219f;
						
						case 5:
							return -731.3326f, -1418.419f, 4.0005f;
						
						case 6:
							return -1380.037f, 55.9278f, 52.6801f;
						
						case 7:
							return 219.5366f, -994.8997f, 28.1337f;
						
						case 8:
							return -921.9598f, -725.2501f, 18.9185f;
						
						case 9:
							return -561.322f, -133.5207f, 37.0715f;
						
						case 10:
							return -648.5416f, 134.043f, 56.21f;
						
						case 11:
							return 141.1357f, -3108.83f, 4.8963f;
						
						case 12:
							return -756.8464f, -2295.487f, 11.8583f;
						
						case 13:
							return 148.3493f, -1316.661f, 27.9568f;
						
						case 14:
							return -229.014f, -639.0449f, 32.459f;
						
						case 15:
							return -452.0465f, -987.7502f, 22.5453f;
						
						case 16:
							return -134.8617f, 380.4401f, 112.0776f;
						
						case 17:
							return -1501.019f, 1494.905f, 115.0624f;
						
						case 18:
							return -112.7636f, -1603.834f, 30.7043f;
						
						case 19:
							return -1862.799f, -356.2964f, 48.2105f;
						
						default:
					}
					break;
				
				case 2:
					switch (iParam0)
					{
						case 0:
							return -1644.781f, 217.4754f, 59.6411f;
						
						case 1:
							return -1497.123f, 87.3942f, 54.1503f;
						
						case 2:
							return 234.8292f, 1174.529f, 224.4599f;
						
						case 3:
							return 7.8968f, 881.3893f, 201.8878f;
						
						case 4:
							return -1988.66f, 549.9285f, 109.4543f;
						
						case 5:
							return -2716.46f, 1505.06f, 105.5562f;
						
						case 6:
							return -1336.064f, -3044.716f, 12.9444f;
						
						case 7:
							return -430.9725f, -2667.316f, 5.0002f;
						
						case 8:
							return -800.557f, -1305.266f, 4.004f;
						
						case 9:
							return -1293.26f, -694.4807f, 23.945f;
						
						case 10:
							return -534.2971f, -221.9456f, 36.6498f;
						
						case 11:
							return -334.2248f, -394.1065f, 29.1848f;
						
						case 12:
							return -2.8971f, -737.8043f, 43.2647f;
						
						case 13:
							return -890.7894f, -2188.925f, 7.537f;
						
						case 14:
							return 286.0641f, -1575.25f, 29.5322f;
						
						case 15:
							return -1339.735f, -1419.366f, 3.3134f;
						
						case 16:
							return -150.2143f, 280.59f, 92.7769f;
						
						case 17:
							return -747.6499f, 829.1489f, 212.8836f;
						
						case 18:
							return -3021.388f, 84.0667f, 10.6696f;
						
						case 19:
							return -888.8259f, -853.0222f, 19.5661f;
						
						default:
					}
					break;
			}
			break;
		
		case 3:
			switch (func_12())
			{
				case 0:
					switch (iParam0)
					{
						case 0:
							return 902.287f, 510.7179f, 120.8523f;
						
						case 1:
							return 1456.203f, 1113.483f, 113.334f;
						
						case 2:
							return 2762.125f, 1590.052f, 23.501f;
						
						case 3:
							return 2578.003f, 458.7128f, 107.4552f;
						
						case 4:
							return 1663.747f, 1.9511f, 172.7751f;
						
						case 5:
							return 1052.874f, -724.9408f, 56.4864f;
						
						case 6:
							return 484.3263f, -3049.799f, 5.2247f;
						
						case 7:
							return 982.731f, -1920.772f, 30.1349f;
						
						case 8:
							return 1148.709f, -1329.514f, 33.6567f;
						
						case 9:
							return 408.8101f, -209.592f, 58.9155f;
						
						case 10:
							return 461.308f, -752.5385f, 26.3581f;
						
						case 11:
							return 815.4747f, -2977.246f, 5.0207f;
						
						case 12:
							return 2825.034f, -651.0193f, 0.8965f;
						
						case 13:
							return 660.889f, -1502.251f, 9.6817f;
						
						case 14:
							return 1103.755f, -2209.416f, 29.9045f;
						
						case 15:
							return 470.2669f, -2185.725f, 4.9177f;
						
						case 16:
							return 1736.99f, -1597.736f, 111.5363f;
						
						case 17:
							return 984.1426f, -106.7406f, 73.3531f;
						
						case 18:
							return 760.9095f, -1194.129f, 23.2907f;
						
						case 19:
							return 1437.606f, -967.2255f, 47.8342f;
						
						default:
					}
					break;
				
				case 1:
					switch (iParam0)
					{
						case 0:
							return 1284.452f, -1748.1f, 51.06f;
						
						case 1:
							return 899.0267f, -1732.873f, 29.4219f;
						
						case 2:
							return 844.1935f, -1342.289f, 25.0612f;
						
						case 3:
							return 1533.455f, 825.0833f, 76.4297f;
						
						case 4:
							return 2574.259f, 595.1662f, 100.5051f;
						
						case 5:
							return 1174.323f, -397.1559f, 66.7877f;
						
						case 6:
							return 1120.473f, -1084.133f, 27.0693f;
						
						case 7:
							return 854.0258f, -2128.92f, 29.4338f;
						
						case 8:
							return 558.5102f, -2599.741f, 4.8526f;
						
						case 9:
							return 306.5786f, -1453.526f, 28.9674f;
						
						case 10:
							return 481.9433f, -859.8637f, 24.4724f;
						
						case 11:
							return 1251.554f, -2568.382f, 41.7161f;
						
						case 12:
							return 363.4163f, -2013.077f, 22.1949f;
						
						case 13:
							return 1887.98f, 281.3989f, 161.7714f;
						
						case 14:
							return 1048.488f, -33.3615f, 75.1848f;
						
						case 15:
							return 532.1608f, -28.1916f, 69.6295f;
						
						case 16:
							return 699.9807f, -302.5707f, 58.2413f;
						
						case 17:
							return 755.5129f, 1284.896f, 359.2967f;
						
						case 18:
							return 2263.135f, 2041.89f, 127.7688f;
						
						case 19:
							return 745.4241f, 221.6368f, 86.03f;
						
						default:
					}
					break;
				
				case 2:
					switch (iParam0)
					{
						case 0:
							return 711.9951f, 1196.154f, 324.311f;
						
						case 1:
							return 1535.637f, 1702.351f, 108.696f;
						
						case 2:
							return 2466.849f, 1467.346f, 35.2036f;
						
						case 3:
							return 1928.797f, 542.422f, 173.2023f;
						
						case 4:
							return 823.4749f, -2355.177f, 29.3347f;
						
						case 5:
							return 554.8793f, -1776.526f, 28.1688f;
						
						case 6:
							return 577.5936f, -1433.598f, 18.6988f;
						
						case 7:
							return 889.3414f, -537.8987f, 57.1785f;
						
						case 8:
							return 997.0569f, 487.5795f, 98.0672f;
						
						case 9:
							return 693.1806f, -1012.603f, 21.7255f;
						
						case 10:
							return 918.2639f, 50.3715f, 79.7648f;
						
						case 11:
							return 437.7138f, 219.698f, 102.1676f;
						
						case 12:
							return 325.8159f, -209.7308f, 53.0863f;
						
						case 13:
							return 2477.303f, -383.8761f, 93.4022f;
						
						case 14:
							return 1505.583f, -2134.085f, 75.3714f;
						
						case 15:
							return 1939.191f, -1415.971f, 146.844f;
						
						case 16:
							return 1200.177f, -1478.33f, 33.8595f;
						
						case 17:
							return 1202.14f, -3242.363f, 4.8994f;
						
						case 18:
							return 1097.627f, -2047.111f, 30.0051f;
						
						case 19:
							return 1400.881f, -572.3765f, 73.3388f;
						
						default:
					}
					break;
			}
			break;
	}
	return 0f, 0f, 0f;
}

var func_12()//Position - 0x1F85
{
	return Local_653.f_1.f_13;
}

var func_13()//Position - 0x1F94
{
	return Local_653.f_1.f_12;
}

var func_14()//Position - 0x1FA3
{
	return Local_653.f_1.f_11;
}

var func_15()//Position - 0x1FB2
{
	return Local_653.f_1.f_10;
}

var func_16()//Position - 0x1FC1
{
	return Local_653.f_1.f_9;
}

void func_17()//Position - 0x1FD0
{
	int iVar0;
	int iVar1[3];
	int iVar5;
	int iVar6;
	int iVar7;
	
	iVar6 = func_16();
	iVar5 = 0;
	while (iVar5 < 3)
	{
		if (func_26(iVar5) && !func_24(146, iVar6, iVar5, 0))
		{
			iVar1[iVar0] = iVar5;
			iVar0++;
		}
		iVar5++;
	}
	iVar7 = gameplay::get_random_int_in_range(0, iVar0);
	switch (func_16())
	{
		case 0:
			func_23(iVar1[iVar7]);
			break;
		
		case 1:
			func_22(iVar1[iVar7]);
			break;
		
		case 2:
			func_21(iVar1[iVar7]);
			break;
		
		case 3:
			func_18(iVar1[iVar7]);
			break;
	}
}

void func_18(var uParam0)//Position - 0x207B
{
	Local_653.f_1.f_13 = uParam0;
	func_19(func_20(146, func_16(), Local_653.f_1.f_10, 0));
}

void func_19(var uParam0)//Position - 0x20A2
{
	vector3 vVar0;
	int iVar3;
	
	vVar0.x = 441;
	vVar0.y = player::player_id();
	vVar0.z = uParam0;
	iVar3 = func_36(1, 1);
	if (!iVar3 == 0)
	{
		script::trigger_script_event(1, &vVar0, 3, iVar3);
	}
}

int func_20(int iParam0, int iParam1, int iParam2, int iParam3)//Position - 0x20DA
{
	switch (iParam0)
	{
		case 136:
		case 139:
		case 141:
		case 133:
		case 138:
		case 144:
			return iParam1;
		
		case 132:
			switch (iParam2)
			{
				case 0:
					switch (iParam2)
					{
						case 0:
							return 0;
						
						case 1:
							return 1;
						
						case 2:
							return 2;
						
						case 3:
							return 3;
						
						default:
					}
					break;
				
				case 1:
					switch (iParam2)
					{
						case 0:
							return 4;
						
						case 1:
							return 5;
						
						case 2:
							return 6;
						
						case 3:
							return 7;
						
						default:
					}
					break;
			}
			break;
		
		case 131:
			switch (iParam3)
			{
				case 0:
					switch (iParam1)
					{
						case 0:
							switch (iParam2)
							{
								case 0:
									return 0;
								
								case 1:
									return 1;
								
								case 2:
									return 2;
								
								case 3:
									return 3;
								
								case 4:
									return 4;
								
								default:
							}
							break;
						
						case 1:
							switch (iParam2)
							{
								case 0:
									return 5;
								
								case 1:
									return 6;
								
								case 2:
									return 7;
								
								case 3:
									return 8;
								
								case 4:
									return 9;
								
								default:
							}
							break;
						
						case 2:
							switch (iParam2)
							{
								case 0:
									return 10;
								
								case 1:
									return 11;
								
								case 2:
									return 12;
								
								case 3:
									return 13;
								
								case 4:
									return 14;
								
								default:
							}
							break;
						
						case 3:
							switch (iParam2)
							{
								case 0:
									return 15;
								
								case 1:
									return 16;
								
								case 2:
									return 17;
								
								case 3:
									return 18;
								
								case 4:
									return 19;
								
								default:
							}
							break;
						
						case 4:
							switch (iParam2)
							{
								case 0:
									return 20;
								
								case 1:
									return 21;
								
								case 2:
									return 22;
								
								case 3:
									return 24;
								
								case 4:
									return 25;
								
								default:
							}
							break;
						
						case 5:
							switch (iParam2)
							{
								case 0:
									return 26;
								
								case 1:
									return 27;
								
								case 2:
									return 28;
								
								case 3:
									return 29;
								
								case 4:
									return 30;
								
								default:
							}
							break;
						
						case 6:
							switch (iParam2)
							{
								case 0:
									return 31;
								
								case 1:
									return 32;
								
								case 2:
									return 33;
								
								case 3:
									return 34;
								
								case 4:
									return 35;
								
								default:
							}
							break;
					}
					break;
				
				case 1:
					switch (iParam1)
					{
						case 0:
							switch (iParam2)
							{
								case 0:
									return 0;
								
								case 1:
									return 1;
								
								case 2:
									return 2;
								
								case 3:
									return 3;
								
								case 4:
									return 4;
								
								default:
							}
							break;
						
						case 1:
							switch (iParam2)
							{
								case 0:
									return 5;
								
								case 1:
									return 6;
								
								case 2:
									return 7;
								
								case 3:
									return 8;
								
								case 4:
									return 9;
								
								default:
							}
							break;
						
						case 2:
							switch (iParam2)
							{
								case 0:
									return 10;
								
								case 1:
									return 11;
								
								case 2:
									return 12;
								
								case 3:
									return 13;
								
								case 4:
									return 14;
								
								default:
							}
							break;
					}
					break;
				
				case 2:
					switch (iParam1)
					{
						case 0:
							switch (iParam2)
							{
								case 0:
									return 41;
								
								default:
							}
							break;
						
						case 1:
							switch (iParam2)
							{
								case 1:
									return 42;
								
								default:
							}
							break;
						
						case 2:
							switch (iParam2)
							{
								case 2:
									return 43;
								
								default:
							}
							break;
						
						case 3:
							switch (iParam2)
							{
								case 3:
									return 44;
								
								default:
							}
							break;
						
						case 4:
							switch (iParam2)
							{
								case 4:
									return 45;
								
								default:
							}
							break;
					}
					break;
			}
			break;
		
		case 129:
			switch (iParam1)
			{
				case 0:
					switch (iParam2)
					{
						case 0:
							return 0;
						
						case 1:
							return 1;
						
						case 2:
							return 2;
						
						case 3:
							return 3;
						
						default:
					}
					break;
				
				case 1:
					switch (iParam2)
					{
						case 0:
							return 4;
						
						case 1:
							return 5;
						
						case 2:
							return 6;
						
						case 3:
							return 7;
						
						case 4:
							return 8;
						
						default:
					}
					break;
				
				case 2:
					switch (iParam2)
					{
						case 0:
							return 9;
						
						case 1:
							return 10;
						
						case 2:
							return 11;
						
						default:
					}
					break;
				
				case 3:
					switch (iParam2)
					{
						case 0:
							return 12;
						
						case 1:
							return 13;
						
						case 2:
							return 14;
						
						case 3:
							return 15;
						
						case 4:
							return 16;
						
						default:
					}
					break;
				
				case 4:
					switch (iParam2)
					{
						case 0:
							return 17;
						
						case 1:
							return 18;
						
						case 2:
							return 19;
						
						case 3:
							return 20;
						
						case 4:
							return 21;
						
						default:
					}
					break;
				
				case 5:
					switch (iParam2)
					{
						case 0:
							return 22;
						
						case 1:
							return 24;
						
						case 2:
							return 25;
						
						case 3:
							return 26;
						
						default:
					}
					break;
				
				case 6:
					switch (iParam2)
					{
						case 0:
							return 27;
						
						case 1:
							return 28;
						
						case 2:
							return 29;
						
						default:
					}
					break;
				
				case 7:
					switch (iParam2)
					{
						case 0:
							return 30;
						
						case 1:
							return 31;
						
						case 2:
							return 32;
						
						default:
					}
					break;
				
				case 8:
					switch (iParam2)
					{
						case 0:
							return 33;
						
						case 1:
							return 34;
						
						case 2:
							return 35;
						
						case 3:
							return 36;
						
						default:
					}
					break;
				
				case 9:
					switch (iParam2)
					{
						case 0:
							return 37;
						
						case 1:
							return 38;
						
						case 2:
							return 39;
						
						case 3:
							return 40;
						
						default:
					}
					break;
			}
			break;
		
		case 140:
			switch (iParam1)
			{
				case 0:
					switch (iParam2)
					{
						case 0:
							return 0;
						
						case 1:
							return 1;
						
						case 2:
							return 2;
						
						default:
					}
					break;
				
				case 1:
					switch (iParam2)
					{
						case 0:
							return 3;
						
						case 1:
							return 4;
						
						case 2:
							return 5;
						
						default:
					}
					break;
				
				case 2:
					switch (iParam2)
					{
						case 0:
							return 6;
						
						case 1:
							return 7;
						
						case 2:
							return 8;
						
						default:
					}
					break;
				
				case 3:
					switch (iParam2)
					{
						case 0:
							return 9;
						
						case 1:
							return 10;
						
						case 2:
							return 11;
						
						default:
					}
					break;
				
				case 4:
					switch (iParam2)
					{
						case 0:
							return 12;
						
						case 1:
							return 13;
						
						case 2:
							return 14;
						
						default:
					}
					break;
			}
			break;
		
		case 146:
			switch (iParam1)
			{
				case 0:
					switch (iParam2)
					{
						case 0:
							return 0;
						
						case 1:
							return 1;
						
						case 2:
							return 2;
						
						default:
					}
					break;
				
				case 1:
					switch (iParam2)
					{
						case 0:
							return 3;
						
						case 1:
							return 4;
						
						case 2:
							return 5;
						
						default:
					}
					break;
				
				case 2:
					switch (iParam2)
					{
						case 0:
							return 6;
						
						case 1:
							return 7;
						
						case 2:
							return 8;
						
						default:
					}
					break;
				
				case 3:
					switch (iParam2)
					{
						case 0:
							return 9;
						
						case 1:
							return 10;
						
						case 2:
							return 11;
						
						default:
					}
					break;
			}
			break;
	}
	return -1;
}

void func_21(var uParam0)//Position - 0x2939
{
	Local_653.f_1.f_12 = uParam0;
	func_19(func_20(146, func_16(), Local_653.f_1.f_10, 0));
}

void func_22(var uParam0)//Position - 0x2960
{
	Local_653.f_1.f_11 = uParam0;
	func_19(func_20(146, func_16(), Local_653.f_1.f_10, 0));
}

void func_23(var uParam0)//Position - 0x2987
{
	Local_653.f_1.f_10 = uParam0;
	func_19(func_20(146, func_16(), Local_653.f_1.f_10, 0));
}

bool func_24(int iParam0, int iParam1, int iParam2, int iParam3)//Position - 0x29AE
{
	int iVar0;
	int iVar1;
	
	switch (iParam0)
	{
		case 132:
		case 144:
			return false;
		
		default:
	}
	iVar1 = func_25(iParam0);
	iVar0 = 0;
	while (iVar0 < 23)
	{
		if (iVar0 < Global_262145.f_6911)
		{
			if (Global_2477219.f_148[iVar0 /*2*/] == iVar1 && Global_2477219.f_148[iVar0 /*2*/].f_1 == func_20(iParam0, iParam1, iParam2, iParam3))
			{
				return true;
			}
		}
		iVar0++;
	}
	return false;
}

int func_25(int iParam0)//Position - 0x2A27
{
	switch (iParam0)
	{
		case 136:
			return 12;
		
		case 139:
			return 14;
		
		case 141:
			return 16;
		
		case 133:
			return 9;
		
		case 138:
			return 13;
		
		case 144:
			return 17;
		
		case 132:
			return 8;
		
		case 131:
			return 10;
		
		case 146:
			return 18;
		
		case 129:
			return 11;
		
		case 140:
			return 15;
		
		default:
	}
	return -1;
}

int func_26(int iParam0)//Position - 0x2AB0
{
	switch (func_16())
	{
		case 0:
			return func_30(iParam0);
		
		case 1:
			return func_29(iParam0);
		
		case 2:
			return func_28(iParam0);
		
		case 3:
			return func_27(iParam0);
		
		default:
	}
	return 1;
}

bool func_27(int iParam0)//Position - 0x2AFE
{
	switch (iParam0)
	{
		case 0:
			if (Global_262145.f_9740)
			{
				return false;
			}
			break;
		
		case 1:
			if (Global_262145.f_9741)
			{
				return false;
			}
			break;
		
		case 2:
			if (Global_262145.f_9742)
			{
				return false;
			}
			break;
	}
	return true;
}

bool func_28(int iParam0)//Position - 0x2B53
{
	switch (iParam0)
	{
		case 0:
			if (Global_262145.f_9737)
			{
				return false;
			}
			break;
		
		case 1:
			if (Global_262145.f_9738)
			{
				return false;
			}
			break;
		
		case 2:
			if (Global_262145.f_9739)
			{
				return false;
			}
			break;
	}
	return true;
}

bool func_29(int iParam0)//Position - 0x2BA8
{
	switch (iParam0)
	{
		case 0:
			if (Global_262145.f_9734)
			{
				return false;
			}
			break;
		
		case 1:
			if (Global_262145.f_9735)
			{
				return false;
			}
			break;
		
		case 2:
			if (Global_262145.f_9736)
			{
				return false;
			}
			break;
	}
	return true;
}

bool func_30(int iParam0)//Position - 0x2BFD
{
	switch (iParam0)
	{
		case 0:
			if (Global_262145.f_9731)
			{
				return false;
			}
			break;
		
		case 1:
			if (Global_262145.f_9732)
			{
				return false;
			}
			break;
		
		case 2:
			if (Global_262145.f_9733)
			{
				return false;
			}
			break;
	}
	return true;
}

void func_31()//Position - 0x2C52
{
	float fVar0;
	float fVar1;
	int iVar2;
	int iVar3;
	vector3 vVar4[4];
	
	vVar4[0 /*3*/] = { -3500f, 4000f, 30f };
	vVar4[1 /*3*/] = { 4000f, 4000f, 30f };
	vVar4[2 /*3*/] = { -3500f, -2000f, 30f };
	vVar4[3 /*3*/] = { 4000f, -2000f, 30f };
	fVar0 = 99999.9f;
	iVar2 = -1;
	iVar3 = 0;
	while (iVar3 < 4)
	{
		if (func_34(iVar3))
		{
			fVar1 = system::vdist(func_33(), vVar4[iVar3 /*3*/]);
			if (fVar1 < fVar0)
			{
				iVar2 = iVar3;
				fVar0 = fVar1;
			}
		}
		iVar3++;
	}
	func_32(iVar2);
}

void func_32(int iParam0)//Position - 0x2D04
{
	Local_653.f_1.f_9 = iParam0;
}

Vector3 func_33()//Position - 0x2D15
{
	return vLocal_3753;
}

bool func_34(int iParam0)//Position - 0x2D22
{
	switch (iParam0)
	{
		case 0:
			if (Global_262145.f_9727)
			{
				return false;
			}
			break;
		
		case 1:
			if (Global_262145.f_9728)
			{
				return false;
			}
			break;
		
		case 2:
			if (Global_262145.f_9729)
			{
				return false;
			}
			break;
		
		case 3:
			if (Global_262145.f_9730)
			{
				return false;
			}
			break;
	}
	return true;
}

void func_35(var uParam0, int iParam1)//Position - 0x2D8E
{
	vector3 vVar0;
	
	vVar0.x = 450;
	vVar0.y = player::player_id();
	vVar0.z = uParam0;
	if (!iParam1 == 0)
	{
		script::trigger_script_event(1, &vVar0, 3, iParam1);
	}
}

var func_36(int iParam0, int iParam1)//Position - 0x2DBE
{
	var uVar0;
	int iVar1;
	int iVar2;
	
	iVar1 = 0;
	while (iVar1 < 32)
	{
		iVar2 = player::int_to_playerindex(iVar1);
		if (func_1644(iVar2, 0, 0))
		{
			if (iVar2 != player::player_id() || iParam0)
			{
				if (iParam1)
				{
					gameplay::set_bit(&uVar0, iVar1);
				}
				else if (!func_37(iVar2, 0))
				{
					gameplay::set_bit(&uVar0, iVar1);
				}
			}
		}
		iVar1++;
	}
	return uVar0;
}

int func_37(int iParam0, int iParam1)//Position - 0x2E23
{
	int iVar0;
	
	if (iParam0 == player::player_id())
	{
		iVar0 = func_38(-1, 0) == 8;
	}
	else
	{
		iVar0 = Global_1589933[iParam0 /*601*/].f_202 == 8;
	}
	if (iParam1 == 1)
	{
		if (network::network_is_player_active(iParam0))
		{
			iVar0 = player::get_player_team(iParam0) == 8;
		}
	}
	return iVar0;
}

int func_38(int iParam0, int iParam1)//Position - 0x2E6E
{
	int iVar0;
	int iVar1;
	
	iVar1 = iParam0;
	if (iVar1 == -1)
	{
		iVar1 = func_39();
	}
	if (Global_1315209[iVar1] == 1)
	{
		if (iParam1)
		{
		}
		iVar0 = 8;
	}
	else
	{
		iVar0 = Global_1312725[iVar1];
		if (iParam1)
		{
		}
	}
	return iVar0;
}

var func_39()//Position - 0x2EAF
{
	return Global_1312731;
}

var func_40()//Position - 0x2EBB
{
	return Local_653.f_1.f_7;
}

bool func_41()//Position - 0x2ECA
{
	int iVar0;
	var uVar1[100];
	int iVar102[32];
	int iVar135;
	int iVar136;
	int iVar137;
	
	iVar136 = -1;
	iVar0 = 0;
	while (iVar0 < 32)
	{
		iVar102[iVar0] = -1;
		iVar0++;
	}
	func_50(0, &iVar0, &iVar102, &iVar135);
	if (iVar135 <= 0)
	{
		iVar0 = 0;
		iVar135 = 0;
		iVar0 = 0;
		while (iVar0 < 32)
		{
			iVar102[iVar0] = -1;
			iVar0++;
		}
		func_50(1, &iVar0, &iVar102, &iVar135);
	}
	iVar0 = 0;
	while (iVar0 < 32)
	{
		if (gameplay::is_bit_set(iLocal_3731, iVar0))
		{
			if (gameplay::is_bit_set(iLocal_3730, Local_2985[iVar0 /*18*/].f_1))
			{
				if (func_1424(1, iVar0))
				{
					iVar136 = iVar0;
				}
			}
		}
		iVar0++;
	}
	if (iVar136 == -1)
	{
		if (iVar135 > 0)
		{
			iVar137 = 0;
			while (iVar137 < 100)
			{
				uVar1[iVar137] = iVar102[gameplay::get_random_int_in_range(0, iVar135)];
				iVar137++;
			}
			iVar137 = gameplay::get_random_int_in_range(50, 100);
			func_49(uVar1[iVar137]);
			func_43(Local_2985[uVar1[iVar137] /*18*/].f_1);
			func_42(entity::get_entity_coords(vLocal_3562[Local_2985[func_1566() /*18*/].f_1 /*3*/].f_2, 0));
			return true;
		}
	}
	else
	{
		func_49(iVar136);
		func_43(Local_2985[iVar136 /*18*/].f_1);
		func_42(entity::get_entity_coords(vLocal_3562[func_40() /*3*/].f_2, 0));
		return true;
	}
	return false;
}

void func_42(vector3 vParam0)//Position - 0x3019
{
	vLocal_3753 = { vParam0 };
}

void func_43(var uParam0)//Position - 0x302A
{
	Local_653.f_1.f_7 = uParam0;
	if (gameplay::is_bit_set(iLocal_3730, func_40()))
	{
		func_48();
		if (!func_47())
		{
			func_46(1);
		}
	}
	else
	{
		func_44();
	}
}

void func_44()//Position - 0x3061
{
	Global_2494149.f_4696 = func_45();
}

int func_45()//Position - 0x3074
{
	return -1;
}

void func_46(int iParam0)//Position - 0x307D
{
	Global_2494149.f_4698 = iParam0;
}

var func_47()//Position - 0x308E
{
	return Global_2494149.f_4698;
}

void func_48()//Position - 0x309D
{
	Global_2494149.f_4696 = vLocal_3562[func_40() /*3*/];
}

void func_49(int iParam0)//Position - 0x30B5
{
	Local_653.f_1.f_6 = iParam0;
}

void func_50(int iParam0, int iParam1, int iParam2, int iParam3)//Position - 0x30C6
{
	*iParam1 = 0;
	while (*iParam1 < 32)
	{
		if (gameplay::is_bit_set(iLocal_3731, *iParam1))
		{
			if (gameplay::is_bit_set(iLocal_3730, Local_2985[*iParam1 /*18*/].f_1))
			{
				if ((((((((!func_6(Local_2985[*iParam1 /*18*/].f_1) && !gameplay::is_bit_set(Global_1589933[Local_2985[*iParam1 /*18*/].f_1 /*601*/].f_257.f_13, 11)) && !func_1424(10, *iParam1)) && !func_1592(Local_2985[*iParam1 /*18*/].f_1)) && !network::_0x1AD5B71586B94820(Local_2985[*iParam1 /*18*/].f_1, "am_ferriswheel", -1)) && (!func_56(Local_2985[*iParam1 /*18*/].f_1) || iParam0)) && !func_54(Local_2985[*iParam1 /*18*/].f_1)) && !func_52(Local_2985[*iParam1 /*18*/].f_1)) && !func_51(Local_2985[*iParam1 /*18*/].f_1))
				{
					if (func_1424(0, *iParam1))
					{
						(*iParam2)[*iParam3] = *iParam1;
						*iParam3++;
					}
				}
			}
		}
		*iParam1++;
	}
}

int func_51(int iParam0)//Position - 0x31EC
{
	if (iParam0 != func_45() && func_1644(iParam0, 1, 1))
	{
		return gameplay::is_bit_set(Global_2421621[iParam0 /*358*/].f_312, 3);
	}
	return false;
}

int func_52(int iParam0)//Position - 0x3220
{
	if (iParam0 != func_45())
	{
		if (func_1644(iParam0, 1, 1))
		{
			if (Global_2421621[iParam0 /*358*/].f_312.f_1 != -1)
			{
				return func_53(Global_2421621[iParam0 /*358*/].f_312.f_1) == 0;
			}
		}
	}
	return false;
}

int func_53(int iParam0)//Position - 0x3266
{
	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 57:
		case 58:
		case 59:
		case 60:
		case 61:
		case 62:
		case 63:
		case 64:
		case 65:
		case 66:
			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:
			return 3;
			break;
	}
	return -1;
}

bool func_54(int iParam0)//Position - 0x3424
{
	if (func_55(Global_1589933[iParam0 /*601*/].f_257.f_15))
	{
		return true;
	}
	return false;
}

bool func_55(int iParam0)//Position - 0x3446
{
	switch (iParam0)
	{
		case 87:
		case 88:
		case 89:
		case 90:
			return true;
			break;
	}
	return false;
}

int func_56(int iParam0)//Position - 0x3475
{
	if (iParam0 != func_45())
	{
		if (Global_1618089[iParam0 /*390*/].f_11 != func_45())
		{
			return Global_1618089[iParam0 /*390*/].f_11 == iParam0;
		}
	}
	return false;
}

bool func_57(var uParam0, int iParam1, int iParam2)//Position - 0x34AA
{
	if (iParam1 == -1)
	{
		return true;
	}
	func_58(uParam0, iParam2, 0);
	if (network::network_is_game_in_progress() && !iParam2)
	{
		if (gameplay::absi(network::get_time_difference(network::get_network_time(), *uParam0)) >= iParam1)
		{
			return true;
		}
	}
	else if (gameplay::absi(network::get_time_difference(gameplay::get_game_timer(), *uParam0)) >= iParam1)
	{
		return true;
	}
	return false;
}

void func_58(var uParam0, int iParam1, int iParam2)//Position - 0x3508
{
	if (uParam0->f_1 == 0)
	{
		if (network::network_is_game_in_progress() && !iParam1)
		{
			if (!iParam2)
			{
				*uParam0 = network::get_network_time();
			}
			else
			{
				*uParam0 = network::_0x89023FBBF9200E9F();
			}
		}
		else
		{
			*uParam0 = gameplay::get_game_timer();
		}
		uParam0->f_1 = 1;
	}
}

void func_59(int iParam0)//Position - 0x354D
{
	Local_653.f_1 = iParam0;
}

var func_60()//Position - 0x355C
{
	return Local_653.f_1;
}

void func_61(int iParam0)//Position - 0x3569
{
	Local_653 = iParam0;
}

bool func_62(int iParam0)//Position - 0x3576
{
	switch (Global_2452438)
	{
		case 0:
			if (func_383())
			{
				if (cam::is_screen_faded_in() || cam::is_screen_fading_in())
				{
					cam::do_screen_fade_out(500);
				}
				Global_2452438 = 1;
			}
			else
			{
				return true;
			}
			break;
		
		case 1:
			if (cam::is_screen_faded_out())
			{
				if (func_383())
				{
					func_64();
					ped::_0x4668D80430D6C299(player::player_ped_id());
					entity::set_entity_visible(player::player_ped_id(), false, 0);
					Global_2452438 = 2;
					func_9(&Global_2452439);
				}
				else
				{
					return true;
				}
			}
			break;
		
		case 2:
			if ((func_63(&Global_2452439, 500, 0) && ped::has_ped_head_blend_finished(player::player_ped_id())) && ped::_0x7350823473013C02(player::player_ped_id()))
			{
				if (iParam0)
				{
					if (cam::is_screen_faded_out() || cam::is_screen_fading_out())
					{
						cam::do_screen_fade_in(500);
					}
					entity::set_entity_visible(player::player_ped_id(), true, 0);
					Global_2452438 = 3;
				}
				else
				{
					Global_2452438 = 4;
				}
			}
			break;
		
		case 3:
			if (cam::is_screen_faded_in())
			{
				Global_2452438 = 0;
				func_9(&Global_2452439);
				return true;
			}
			else if (cam::is_screen_faded_out() || cam::is_screen_fading_out())
			{
				cam::do_screen_fade_in(500);
			}
			break;
		
		case 4:
			Global_2452438 = 0;
			func_9(&Global_2452439);
			return true;
			break;
	}
	return false;
}

bool func_63(var uParam0, int iParam1, int iParam2)//Position - 0x36BF
{
	if (iParam1 == -1)
	{
		return true;
	}
	func_58(uParam0, iParam2, 0);
	if (network::network_is_game_in_progress() && !iParam2)
	{
		if (gameplay::absi(network::get_time_difference(network::get_network_time(), *uParam0)) >= iParam1)
		{
			func_9(uParam0);
			return true;
		}
	}
	else if (gameplay::absi(network::get_time_difference(gameplay::get_game_timer(), *uParam0)) >= iParam1)
	{
		func_9(uParam0);
		return true;
	}
	return false;
}

void func_64()//Position - 0x3729
{
	if (ped::is_ped_injured(player::player_ped_id()))
	{
		network::network_resurrect_local_player(entity::get_entity_coords(player::player_ped_id(), 0), 0f, 0, 0, 1);
	}
	if (!ped::is_ped_injured(player::player_ped_id()))
	{
		ped::set_ped_max_health(player::player_ped_id(), Global_2452441);
		entity::set_entity_health(player::player_ped_id(), Global_2452441);
		func_380();
		player::_0xFF300C7649724A0B(player::player_id(), 1);
		network::_0xC505036A35AFD01B(0);
		ped::set_ped_suffers_critical_hits(player::player_ped_id(), 1);
		func_379(5000);
		func_9(&(Global_2404994.f_2289));
		if (Global_2404994.f_2291 > 0)
		{
			decisionevent::remove_shocking_event(Global_2404994.f_2291);
		}
		ped::set_ped_config_flag(player::player_ped_id(), 189, false);
		ped::set_ped_config_flag(player::player_ped_id(), 407, false);
		ped::set_ped_config_flag(player::player_ped_id(), 410, false);
		player::set_player_melee_weapon_damage_modifier(player::player_id(), 1f, 1);
		ped::set_ped_config_flag(player::player_ped_id(), 411, false);
		ped::set_ped_config_flag(player::player_ped_id(), 410, false);
		unk_0x711794453CFD692B(player::player_ped_id(), 0);
		gameplay::_0x4EBB7E87AA0DBED4(0);
		func_378(0);
		unk_0x8D768602ADEF2245(player::player_id(), -1f);
		player::set_player_vehicle_defense_modifier(player::player_id(), 1f);
		func_65();
		Global_2452438 = 0;
		func_9(&Global_2452439);
		gameplay::clear_bit(&(Global_2421621[player::player_id() /*358*/].f_198), 29);
	}
}

void func_65()//Position - 0x384A
{
	int iVar0;
	int iVar1;
	int iVar2;
	int iVar3;
	struct<10> Var4;
	int iVar14;
	int iVar15;
	var uVar16;
	int iVar17;
	
	iVar0 = func_39();
	if (func_375(386, iVar0, -1) == 0)
	{
		iVar1 = true;
	}
	else
	{
		iVar1 = false;
	}
	func_374(iVar0);
	func_361();
	func_360(iVar0, iVar1);
	iVar2 = func_359(2095, iVar0, 0) >= true;
	iVar3 = player::player_ped_id();
	func_265(0, 3, iVar3, iVar0, 0, 0, 0);
	func_254(1);
	func_251(iVar3, iVar0);
	if (!iVar2)
	{
		func_250(player::player_ped_id(), iVar0);
	}
	else
	{
		func_238(iVar3, iVar0, 0);
	}
	ped::_get_ped_head_blend_data(player::player_ped_id(), &Var4);
	func_237(2089, Var4, iVar0, 1, 0);
	func_237(2090, Var4.f_1, iVar0, 1, 0);
	func_237(2091, Var4.f_2, iVar0, 1, 0);
	func_237(2092, Var4.f_3, iVar0, 1, 0);
	func_237(2093, Var4.f_4, iVar0, 1, 0);
	func_237(2094, Var4.f_5, iVar0, 1, 0);
	func_236(134, Var4.f_6, iVar0, 1);
	func_236(135, Var4.f_7, iVar0, 1);
	func_236(136, Var4.f_8, iVar0, 1);
	func_234(160, Var4.f_9, iVar0, 1);
	iVar14 = func_359(2145, iVar0, 0);
	iVar15 = func_359(2152, iVar0, 0);
	uVar16 = func_359(2045, iVar0, 0);
	iVar17 = uVar16;
	func_66(player::player_ped_id(), 2, iVar17, 0, -1, 0, 0, 0, iVar14, iVar15, -1, 0, 0, 0);
	if (!gameplay::is_pc_version())
	{
		func_237(747, func_375(385, iVar0, -1), iVar0, 1, 0);
		func_237(2045, func_375(385, iVar0, -1), iVar0, 1, 0);
		func_234(161, 1, -1, 1);
	}
	else if (func_375(385, iVar0, -1) != 0)
	{
		func_237(747, func_375(385, iVar0, -1), iVar0, 1, 0);
		func_237(2045, func_375(385, iVar0, -1), iVar0, 1, 0);
		func_234(161, 1, -1, 1);
	}
	uVar16 = func_359(2045, iVar0, 0);
}

bool func_66(int iParam0, int iParam1, int iParam2, int iParam3, int iParam4, int iParam5, int iParam6, int iParam7, int iParam8, int iParam9, int iParam10, int iParam11, int iParam12, int iParam13)//Position - 0x3A2E
{
	int iVar0;
	int iVar1;
	int iVar2;
	int iVar3;
	var uVar4;
	int iVar5;
	int iVar6;
	int iVar7;
	int iVar8;
	int iVar9;
	int iVar10;
	int iVar11;
	int iVar12;
	var uVar13;
	var uVar14;
	var uVar15;
	var uVar32;
	var uVar42;
	int iVar59;
	var uVar60;
	int iVar70;
	int iVar71;
	int iVar72;
	int iVar73;
	int iVar74;
	int iVar75;
	int iVar76;
	int iVar77;
	int iVar78;
	int iVar79;
	int iVar80;
	int iVar81;
	int iVar82;
	int iVar83;
	int iVar84;
	int iVar85;
	int iVar86;
	int iVar87;
	int iVar88;
	int iVar89;
	int iVar90;
	int iVar91;
	int iVar92;
	float fVar93;
	int iVar94;
	int iVar95;
	int iVar96;
	int iVar97;
	int iVar98;
	int iVar99;
	int iVar100;
	int iVar101;
	int iVar102;
	int iVar103;
	int iVar104;
	var uVar105;
	int iVar106;
	int iVar107;
	int iVar108;
	int iVar109;
	int iVar110;
	int iVar111;
	int iVar112;
	int iVar113;
	int iVar114;
	int iVar115;
	int iVar116;
	var uVar117;
	int iVar118;
	int iVar119;
	int iVar120;
	int iVar121;
	var uVar122;
	int iVar123;
	int iVar124;
	int iVar125;
	int iVar126;
	var uVar127;
	int iVar128;
	int iVar129;
	int iVar130;
	int iVar131;
	var uVar132;
	int iVar133;
	int iVar134;
	int iVar135;
	int iVar136;
	int iVar137;
	
	if (!network::network_is_game_in_progress())
	{
		if ((Global_1315163 != 4 && Global_1315163 != 5) && Global_1315163 != 7)
		{
			return false;
		}
	}
	if (ped::is_ped_injured(iParam0) || iParam2 == -99)
	{
		return false;
	}
	if (iParam0 == player::player_ped_id() && Global_2421621[player::player_id() /*358*/].f_225 == 2)
	{
		if (!iParam12)
		{
			return false;
		}
	}
	if (iParam10 == -1)
	{
		iParam10 = Global_69516;
	}
	Global_69517++;
	iVar5 = entity::get_entity_model(iParam0);
	iVar6 = -99;
	iVar7 = -99;
	iVar8 = -1;
	iVar9 = -99;
	iVar10 = -99;
	iVar11 = -1;
	iVar12 = -1;
	if (iParam5 == 0)
	{
		Global_69518[1 /*14*/] = { func_192(iVar5, iParam1, iParam2) };
		if (!func_191(iParam3))
		{
			Global_69517 = (Global_69517 - 1);
			return false;
		}
		func_186(iVar5, iParam1, iParam2, 1);
	}
	if (iParam1 == 12)
	{
		uVar13 = Global_2621444;
		uVar14 = Global_2621445;
		ped::clear_all_ped_props(iParam0);
		uVar15 = 15;
		if (iParam5 == 1)
		{
			uVar15 = { Global_69561 };
		}
		else
		{
			uVar15 = { func_182(iVar5, iParam2) };
		}
		iVar0 = 0;
		while (iVar0 <= 14)
		{
			if (uVar15[iVar0] != -99)
			{
				if (iVar0 == 10 && uVar15.f_16)
				{
					Global_69518[1 /*14*/] = { func_192(iVar5, 10, 0) };
					if (iParam4 == -1)
					{
						ped::set_ped_component_variation(iParam0, func_181(iVar0), Global_69518[1 /*14*/].f_3, Global_69518[1 /*14*/].f_4, ped::get_ped_palette_variation(iParam0, func_181(iVar0)));
					}
					else
					{
						ped::set_ped_component_variation(iParam0, func_181(iVar0), Global_69518[1 /*14*/].f_3, Global_69518[1 /*14*/].f_4, iParam4);
					}
					if (gameplay::is_bit_set(Global_69518[1 /*14*/].f_6, 1))
					{
						func_186(iVar5, 10, 0, 1);
					}
				}
				else
				{
					Global_69518[1 /*14*/] = { func_192(iVar5, iVar0, uVar15[iVar0]) };
					if (gameplay::is_bit_set(Global_69518[1 /*14*/].f_6, 0) || iVar0 == 13)
					{
						if (iVar0 == 13)
						{
							uVar32 = 9;
							if (iParam5 == 1)
							{
								uVar32 = { Global_69578 };
							}
							else
							{
								uVar32 = { func_178(iVar5, uVar15[iVar0]) };
							}
							iVar1 = 0;
							while (iVar1 <= 8)
							{
								Global_69518[1 /*14*/] = { func_192(iVar5, 14, uVar32[iVar1]) };
								func_177(iParam0, Global_69518[1 /*14*/].f_12, Global_69518[1 /*14*/].f_3, Global_69518[1 /*14*/].f_4);
								if (gameplay::is_bit_set(Global_69518[1 /*14*/].f_6, 1))
								{
									func_186(iVar5, iVar0, uVar15[iVar0], 1);
								}
								iVar1++;
							}
						}
						else if (iVar0 != 14 && iVar0 != 12)
						{
							if (iVar0 != 1)
							{
								if (iParam4 == -1)
								{
									ped::set_ped_component_variation(iParam0, func_181(iVar0), Global_69518[1 /*14*/].f_3, Global_69518[1 /*14*/].f_4, ped::get_ped_palette_variation(iParam0, func_181(iVar0)));
								}
								else
								{
									ped::set_ped_component_variation(iParam0, func_181(iVar0), Global_69518[1 /*14*/].f_3, Global_69518[1 /*14*/].f_4, iParam4);
								}
							}
							else
							{
								func_66(iParam0, iVar0, uVar15[iVar0], 0, -1, 0, 0, 0, -1, -1, -1, 0, 0, 0);
							}
							if (gameplay::is_bit_set(Global_69518[1 /*14*/].f_6, 1))
							{
								func_186(iVar5, iVar0, uVar15[iVar0], 1);
							}
						}
					}
				}
			}
			else if (iVar0 != 12 && iVar0 != 14)
			{
				Global_69518[1 /*14*/] = { func_192(iVar5, iVar0, func_173(iParam0, iVar0, -1)) };
				if (gameplay::is_bit_set(Global_69518[1 /*14*/].f_6, 3))
				{
					uVar42 = { func_182(iVar5, 0) };
					func_66(iParam0, iVar0, uVar42[iVar0], 0, -1, 0, 0, 0, -1, -1, -1, 0, 0, 0);
				}
			}
			iVar0++;
		}
		Global_2621444 = uVar13;
		Global_2621445 = uVar14;
		if (iParam5 == 0)
		{
			iVar59 = func_172();
			if (iVar59 != -1)
			{
				func_170(iVar59, 0, iParam10);
			}
			func_167(iParam0, 11, uVar15[11], iParam6, 0);
		}
	}
	else if (iParam1 == 13)
	{
		uVar60 = { func_178(iVar5, iParam2) };
		iVar1 = 0;
		while (iVar1 <= 8)
		{
			Global_69518[1 /*14*/] = { func_192(iVar5, 14, uVar60[iVar1]) };
			func_177(iParam0, Global_69518[1 /*14*/].f_12, Global_69518[1 /*14*/].f_3, Global_69518[1 /*14*/].f_4);
			if (gameplay::is_bit_set(Global_69518[1 /*14*/].f_6, 1))
			{
				func_186(iVar5, 14, uVar60[iVar1], 1);
			}
			if (iParam5 == 0)
			{
				if (Global_69517 == 1)
				{
					iVar2 = 0;
					while (iVar2 < 15)
					{
						iVar3 = func_165(iParam0, iVar5, 14, uVar60[iVar1], iVar2, 0);
						if (iVar3 != -99)
						{
							func_66(iParam0, iVar2, iVar3, 0, -1, 0, 0, 0, -1, -1, -1, 0, 0, 0);
						}
						iVar2++;
					}
				}
			}
			iVar1++;
		}
	}
	else if (iParam1 == 14)
	{
		func_177(iParam0, Global_69518[1 /*14*/].f_12, Global_69518[1 /*14*/].f_3, Global_69518[1 /*14*/].f_4);
		if (gameplay::is_bit_set(Global_69518[1 /*14*/].f_6, 1))
		{
			func_186(iVar5, iParam1, iParam2, 1);
		}
		if (Global_69518[1 /*14*/].f_12 == 0)
		{
			func_161(iParam0);
		}
		if (iParam5 == 0)
		{
			if (Global_69517 == 1)
			{
				iVar2 = 0;
				while (iVar2 < 15)
				{
					iVar3 = func_165(iParam0, iVar5, iParam1, iParam2, iVar2, 0);
					if (iVar3 != -99)
					{
						func_66(iParam0, iVar2, iVar3, 0, -1, 0, 0, 0, -1, -1, -1, 0, 0, 0);
					}
					iVar2++;
				}
			}
		}
	}
	else
	{
		if (iParam1 == 11)
		{
			if (iParam5 == 0)
			{
				iVar70 = -1;
				if (gameplay::is_bit_set(Global_69518[1 /*14*/].f_6, 6) && dlc1::_0x341DE7ED1D2A1BFD(Global_2621444, -1996375172, 11))
				{
					ped::_0xCC9682B8951C5229(iParam0, Global_1316386, Global_1316387, Global_1316388, 0);
					ped::_0xCC9682B8951C5229(iParam0, Global_1316386, Global_1316387, Global_1316388, 1);
					ped::_0xCC9682B8951C5229(iParam0, Global_1316386, Global_1316387, Global_1316388, 2);
					ped::_0xCC9682B8951C5229(iParam0, Global_1316386, Global_1316387, Global_1316388, 3);
				}
				iVar71 = func_159(iParam0, 11);
				iVar72 = func_159(iParam0, 8);
				iVar73 = func_159(iParam0, 4);
				iVar8 = dlc1::get_hash_name_for_component(iParam0, 8, ped::get_ped_drawable_variation(iParam0, 8), ped::get_ped_texture_variation(iParam0, 8));
				if (dlc1::_0x341DE7ED1D2A1BFD(iVar8, 240476421, 8))
				{
					if (iVar5 == joaat("mp_m_freemode_01"))
					{
						iVar70 = func_158(iVar5, iParam2, 11, 3);
					}
					else if (iVar5 == joaat("mp_f_freemode_01"))
					{
						iVar70 = func_158(iVar5, iParam2, 11, 4);
					}
					if ((((dlc1::_0x341DE7ED1D2A1BFD(iVar70, 320460654, 0) || dlc1::_0x341DE7ED1D2A1BFD(iVar70, -2017999390, 0)) || dlc1::_0x341DE7ED1D2A1BFD(iVar70, -1410897066, 0)) || dlc1::_0x341DE7ED1D2A1BFD(iVar70, -826135203, 0)) || dlc1::_0x341DE7ED1D2A1BFD(iVar70, -1855618474, 0))
					{
					}
					else
					{
						iVar9 = func_159(iParam0, 8);
					}
				}
				iVar74 = dlc1::get_hash_name_for_component(iParam0, 3, ped::get_ped_drawable_variation(iParam0, 3), 0);
				if (dlc1::_0x341DE7ED1D2A1BFD(iVar74, -356646862, 0))
				{
					iVar75 = func_157(iVar5, iVar72, iVar71, iVar73);
					if (iVar75 == -99)
					{
						iVar75 = func_165(iParam0, iVar5, 11, iVar71, 3, 0);
					}
					switch (iVar74)
					{
						case 1165919867:
						case 1606204151:
						case 1774276352:
						case 1934254610:
						case 980775017:
						case 399321881:
							iVar75 = 11;
							iVar70 = func_158(iVar5, iParam2, 11, 4);
							if (!dlc1::_0x341DE7ED1D2A1BFD(iVar70, -530089825, 0))
							{
								iVar75 = -99;
							}
							break;
					}
					if (iVar75 != -99)
					{
						iVar76 = 0;
						while (iVar76 < 15)
						{
							if (func_156(iVar5, iVar75, iVar76) == iVar74)
							{
								iVar11 = iVar76;
								iVar12 = ped::get_ped_texture_variation(iParam0, 3);
							}
							iVar76++;
						}
					}
				}
				iVar70 = -1;
				if ((iVar5 == joaat("mp_f_freemode_01") && iParam2 >= 256) && dlc1::_0x341DE7ED1D2A1BFD(func_158(iVar5, iParam2, 11, 4), -1200513218, 0))
				{
					iVar71 = func_159(iParam0, 11);
					if (iVar71 >= 256)
					{
						iVar70 = func_158(iVar5, iVar71, 11, 4);
					}
					if (iVar71 >= 256 && dlc1::_0x341DE7ED1D2A1BFD(iVar70, 1965569012, 0))
					{
						iVar77 = func_154(iVar5, iVar71, iParam2, ped::get_ped_texture_variation(iParam0, 11));
						if (iVar77 != -99)
						{
							func_66(iParam0, 8, iVar77, 0, iParam4, 0, 0, 0, -1, -1, -1, 0, 0, 0);
							Global_69518[1 /*14*/] = { func_192(iVar5, iParam1, iParam2) };
						}
					}
				}
				else if (func_153(iVar5, iParam2))
				{
					if (iVar5 == joaat("mp_m_freemode_01"))
					{
						if (iVar71 >= 237)
						{
							iVar70 = func_158(iVar5, iVar71, 11, 3);
						}
					}
					else if (iVar5 == joaat("mp_f_freemode_01"))
					{
						if (iVar71 >= 256)
						{
							iVar70 = func_158(iVar5, iVar71, 11, 4);
						}
					}
					iVar9 = -99;
					if (!func_153(iVar5, iVar71))
					{
						if ((iVar5 == joaat("mp_f_freemode_01") && iVar71 >= 256) && (dlc1::_0x341DE7ED1D2A1BFD(iVar70, -1200513218, 0) || dlc1::_0x341DE7ED1D2A1BFD(iVar70, 1965569012, 0)))
						{
						}
						else if ((iVar5 == joaat("mp_f_freemode_01") && iVar71 >= 256) && ((((((((dlc1::_0x341DE7ED1D2A1BFD(iVar70, 684992453, 0) || dlc1::_0x341DE7ED1D2A1BFD(iVar70, 916636514, 0)) || dlc1::_0x341DE7ED1D2A1BFD(iVar70, -1939378450, 0)) || dlc1::_0x341DE7ED1D2A1BFD(iVar70, -820724897, 0)) || dlc1::_0x341DE7ED1D2A1BFD(iVar70, 153792394, 0)) || dlc1::_0x341DE7ED1D2A1BFD(iVar70, -872449705, 0)) || dlc1::_0x341DE7ED1D2A1BFD(iVar70, 700658917, 0)) || dlc1::_0x341DE7ED1D2A1BFD(iVar70, -549843760, 0)) || dlc1::_0x341DE7ED1D2A1BFD(iVar70, 1830529185, 0)))
						{
						}
						else
						{
							iVar78 = func_154(iVar5, iVar71, iParam2, ped::get_ped_texture_variation(iParam0, 11));
							if (iVar78 != -99)
							{
								func_66(iParam0, 8, iVar78, 0, iParam4, 0, 0, 0, -1, -1, -1, 0, 0, 0);
								Global_69518[1 /*14*/] = { func_192(iVar5, iParam1, iParam2) };
								iVar9 = -99;
							}
							else
							{
								if (iVar5 == joaat("mp_m_freemode_01"))
								{
									iVar79 = func_151(iVar5, 11, -1);
									Global_69518[1 /*14*/] = { func_192(iVar5, 11, iVar79) };
									iVar78 = func_154(iVar5, iVar79, iParam2, Global_69518[1 /*14*/].f_4);
									if (iVar78 == -99 || dlc1::_0x341DE7ED1D2A1BFD(func_158(iVar5, iParam2, 11, 3), -1237899132, 0))
									{
										iVar78 = 240;
									}
								}
								else if (iVar5 == joaat("mp_f_freemode_01"))
								{
									if (dlc1::_0x341DE7ED1D2A1BFD(func_158(iVar5, iParam2, 11, 4), -1237899132, 0))
									{
										iVar78 = 120;
									}
									else
									{
										iVar78 = 48;
									}
								}
								func_66(iParam0, 8, iVar78, 0, iParam4, 0, 0, 0, -1, -1, -1, 0, 0, 0);
								Global_69518[1 /*14*/] = { func_192(iVar5, iParam1, iParam2) };
							}
						}
					}
					else
					{
						Global_69518[1 /*14*/] = { func_192(iVar5, 11, iVar71) };
						iVar80 = Global_69518[1 /*14*/].f_3;
						Global_69518[1 /*14*/] = { func_192(iVar5, 11, iParam2) };
						iVar81 = Global_69518[1 /*14*/].f_3;
						if (iVar80 != iVar81)
						{
							Global_69518[1 /*14*/] = { func_192(iVar5, 8, iVar72) };
							iVar82 = Global_69518[1 /*14*/].f_4;
							iVar83 = func_150(iVar5, iVar72, iVar82);
							if (iVar83 == -99)
							{
								iVar84 = iVar72;
								if (iVar5 == joaat("mp_m_freemode_01"))
								{
									iVar85 = func_158(iVar5, iParam2, 11, 3);
									if (((iParam2 >= 96 && iParam2 <= 107) || func_149(iVar85) == 6) || dlc1::_0x341DE7ED1D2A1BFD(iVar85, -1237899132, 0))
									{
										iVar83 = func_151(iVar5, 11, -1);
										Global_69518[1 /*14*/] = { func_192(iVar5, 11, iVar83) };
										iVar84 = func_154(iVar5, iVar83, iParam2, Global_69518[1 /*14*/].f_4);
									}
								}
								if (iVar5 == joaat("mp_f_freemode_01") && (iVar72 == 32 || iVar72 == 33))
								{
									if (!dlc1::_0x341DE7ED1D2A1BFD(func_158(iVar5, iParam2, 11, 4), -491588875, 0))
									{
										iVar83 = func_151(iVar5, 11, -1);
										Global_69518[1 /*14*/] = { func_192(iVar5, 11, iVar83) };
										iVar84 = func_154(iVar5, iVar83, iParam2, Global_69518[1 /*14*/].f_4);
									}
								}
								iVar86 = -1;
								if (iVar5 == joaat("mp_m_freemode_01"))
								{
									iVar86 = func_158(iVar5, iVar72, 8, 3);
								}
								else if (iVar5 == joaat("mp_f_freemode_01"))
								{
									iVar86 = func_158(iVar5, iVar72, 8, 4);
								}
								if (dlc1::_0x341DE7ED1D2A1BFD(iVar86, -316495692, 0))
								{
									iVar83 = func_151(iVar5, 11, -1);
									Global_69518[1 /*14*/] = { func_192(iVar5, 11, iVar83) };
									iVar84 = func_154(iVar5, iVar83, iParam2, Global_69518[1 /*14*/].f_4);
								}
							}
							else
							{
								iVar84 = func_154(iVar5, iVar83, iParam2, iVar82);
								if (iVar5 == joaat("mp_m_freemode_01"))
								{
									if (dlc1::_0x341DE7ED1D2A1BFD(func_158(iVar5, iParam2, 11, 3), -1719338724, 0))
									{
										if (!func_148(iVar5, func_159(iParam0, 4), iVar83))
										{
											iVar84 = 240;
										}
									}
								}
								else if (iVar5 == joaat("mp_f_freemode_01"))
								{
									if (dlc1::_0x341DE7ED1D2A1BFD(func_158(iVar5, iParam2, 11, 4), -1719338724, 0))
									{
										if (!func_148(iVar5, func_159(iParam0, 4), iVar83))
										{
											iVar84 = 48;
										}
									}
								}
							}
							if (iVar84 != -99)
							{
								func_66(iParam0, 8, iVar84, 0, iParam4, 0, 0, 0, -1, -1, -1, 0, 0, 0);
							}
							else if (iVar5 == joaat("mp_m_freemode_01"))
							{
								iVar83 = func_151(iVar5, 11, -1);
								Global_69518[1 /*14*/] = { func_192(iVar5, 11, iVar83) };
								iVar84 = func_154(iVar5, iVar83, iParam2, Global_69518[1 /*14*/].f_4);
								if (iVar84 == -99)
								{
									iVar84 = 240;
								}
								func_66(iParam0, 8, iVar84, 0, iParam4, 0, 0, 0, -1, -1, -1, 0, 0, 0);
							}
							else if (iVar5 == joaat("mp_f_freemode_01"))
							{
								func_66(iParam0, 8, 48, 0, iParam4, 0, 0, 0, -1, -1, -1, 0, 0, 0);
							}
							Global_69518[1 /*14*/] = { func_192(iVar5, iParam1, iParam2) };
						}
					}
				}
				else
				{
					func_145(iVar5, iParam2);
					if (!iParam13)
					{
						ped::set_ped_component_variation(iParam0, 10, 0, 0, ped::get_ped_palette_variation(iParam0, 10));
					}
				}
			}
			func_167(iParam0, iParam1, iParam2, iParam6, 0);
			if (iParam5 == 0)
			{
				iVar6 = func_157(iVar5, func_173(iParam0, 8, -1), iParam2, func_173(iParam0, 4, -1));
			}
		}
		else if (iParam1 == 2)
		{
			if (iParam5 == 0)
			{
				if (iParam8 == -1)
				{
					iParam8 = func_359(2145, iParam10, 0);
				}
				if (iParam9 == -1)
				{
					iParam9 = func_359(2152, iParam10, 0);
				}
				ped::_set_ped_hair_color(iParam0, iParam8, iParam9);
			}
			if (iParam7 == 0)
			{
				func_106(iParam0, iParam2, iParam10, iParam11);
			}
		}
		else if (iParam1 == 8)
		{
			func_167(iParam0, iParam1, iParam2, iParam6, 0);
			iVar87 = func_159(iParam0, 11);
			if (func_153(iVar5, iVar87))
			{
				iVar88 = func_150(iVar5, iParam2, Global_69518[1 /*14*/].f_4);
				func_145(iVar5, iVar88);
			}
			if (iParam5 == 0)
			{
				iVar6 = func_157(iVar5, iParam2, func_159(iParam0, 11), func_159(iParam0, 4));
			}
		}
		else if (iParam1 == 9)
		{
			if (iParam2 >= 1 && iParam2 <= 41)
			{
				iVar89 = func_159(iParam0, 7);
				if (!func_103(iVar5, iVar89, 9, -99, -99, -99, iParam0, 0, iParam2, -99, -99, -99))
				{
					ped::set_ped_component_variation(iParam0, func_181(7), 0, 0, 0);
				}
			}
		}
		else if (iParam1 == 1)
		{
			if (((iVar5 == joaat("mp_m_freemode_01") && iParam2 >= 26) && dlc1::_0x341DE7ED1D2A1BFD(Global_2621444, -921710083, 0)) || ((iVar5 == joaat("mp_f_freemode_01") && iParam2 >= 26) && dlc1::_0x341DE7ED1D2A1BFD(Global_2621444, -921710083, 0)))
			{
				iVar90 = func_359(2092, iParam10, 0);
				iVar91 = func_359(2093, iParam10, 0);
				iVar92 = func_359(2094, iParam10, 0);
				fVar93 = func_102(135, iParam10);
				if (iVar5 == joaat("mp_m_freemode_01"))
				{
					ped::set_ped_head_blend_data(iParam0, 0, 0, 0, iVar90, iVar91, iVar92, 0f, fVar93, 0f, 0);
				}
				else if (iVar5 == joaat("mp_f_freemode_01"))
				{
					ped::set_ped_head_blend_data(iParam0, 21, 0, 0, iVar90, iVar91, iVar92, 0f, fVar93, 0f, 0);
				}
				iVar94 = 0;
				while (iVar94 < 20)
				{
					ped::_set_ped_face_feature(iParam0, iVar94, 0f);
					iVar94++;
				}
			}
			else
			{
				func_101(iParam0, iParam10);
			}
		}
		else if (iParam1 == 4)
		{
			iVar95 = func_159(iParam0, 11);
			iVar96 = func_159(iParam0, 8);
			if (iVar5 == joaat("mp_m_freemode_01"))
			{
				if (dlc1::_0x341DE7ED1D2A1BFD(func_158(iVar5, iVar95, 11, 3), -1719338724, 0))
				{
					if (!func_148(iVar5, iParam2, func_150(iVar5, iVar96, 0)))
					{
						func_66(iParam0, 8, 240, 0, iParam4, 0, 0, 0, -1, -1, -1, 0, 0, 0);
						Global_69518[1 /*14*/] = { func_192(iVar5, iParam1, iParam2) };
					}
				}
			}
			else if (iVar5 == joaat("mp_f_freemode_01"))
			{
				if (dlc1::_0x341DE7ED1D2A1BFD(func_158(iVar5, iVar95, 11, 4), -1719338724, 0))
				{
					if (!func_148(iVar5, iParam2, func_150(iVar5, iVar96, 0)))
					{
						func_66(iParam0, 8, 78, 0, iParam4, 0, 0, 0, -1, -1, -1, 0, 0, 0);
						Global_69518[1 /*14*/] = { func_192(iVar5, iParam1, iParam2) };
					}
				}
			}
			if (iParam5 == 0)
			{
				iVar6 = func_157(iVar5, func_159(iParam0, 8), func_159(iParam0, 11), iParam2);
			}
			iVar97 = dlc1::get_hash_name_for_component(iParam0, 3, ped::get_ped_drawable_variation(iParam0, 3), 0);
			if (dlc1::_0x341DE7ED1D2A1BFD(iVar97, -356646862, 0))
			{
				iVar98 = func_157(iVar5, iVar96, iVar95, iParam2);
				if (iVar98 == -99)
				{
					iVar98 = func_165(iParam0, iVar5, 11, iVar95, 3, 0);
				}
				switch (iVar97)
				{
					case 1165919867:
					case 1606204151:
					case 1774276352:
					case 1934254610:
					case 980775017:
					case 399321881:
						iVar98 = 11;
						iVar99 = func_158(iVar5, iParam2, 11, 4);
						if (!dlc1::_0x341DE7ED1D2A1BFD(iVar99, -530089825, 0))
						{
							iVar98 = -99;
						}
						break;
				}
				if (iVar98 != -99)
				{
					iVar100 = 0;
					while (iVar100 < 15)
					{
						if (func_156(iVar5, iVar98, iVar100) == iVar97)
						{
							iVar11 = iVar100;
							iVar12 = ped::get_ped_texture_variation(iParam0, 3);
						}
						iVar100++;
					}
				}
			}
		}
		if (iParam4 == -1)
		{
			ped::set_ped_component_variation(iParam0, func_181(iParam1), Global_69518[1 /*14*/].f_3, Global_69518[1 /*14*/].f_4, ped::get_ped_palette_variation(iParam0, func_181(iParam1)));
		}
		else
		{
			ped::set_ped_component_variation(iParam0, func_181(iParam1), Global_69518[1 /*14*/].f_3, Global_69518[1 /*14*/].f_4, iParam4);
		}
		if (iParam5 == 0)
		{
			if (Global_69517 == 1)
			{
				iVar2 = 0;
				while (iVar2 < 15)
				{
					iVar3 = func_165(iParam0, iVar5, iParam1, iParam2, iVar2, 0);
					if (iVar3 != -99)
					{
						func_66(iParam0, iVar2, iVar3, 0, -1, 0, 0, 0, -1, -1, -1, 0, 0, iParam1 == 10);
						if (iVar2 == 3)
						{
							switch (Global_2621444)
							{
								case 1165919867:
								case 1606204151:
								case 1774276352:
								case 1934254610:
								case 980775017:
								case 399321881:
									iVar11 = -1;
									break;
							}
						}
						else if (iVar2 == 8)
						{
							if (iVar6 != -99)
							{
								iVar6 = func_157(iVar5, iVar3, func_159(iParam0, 11), func_159(iParam0, 4));
							}
						}
					}
					iVar2++;
				}
			}
			if (iParam1 == 11 || iParam1 == 8)
			{
				if (func_100(iParam0))
				{
					iVar101 = func_99(iVar5, iParam1, iParam2);
					if (iVar101 > 0)
					{
						iVar101 = (iVar101 + ped::get_ped_texture_variation(iParam0, 9));
						if (!func_93(iParam0, 9, iVar101))
						{
							func_66(iParam0, 9, iVar101, 0, iParam4, 0, 0, 0, -1, -1, -1, 0, 0, 0);
						}
					}
					else
					{
						func_66(iParam0, 9, 0, 0, iParam4, 0, 0, 0, -1, -1, -1, 0, 0, 0);
					}
					iVar8 = dlc1::get_hash_name_for_component(iParam0, 8, ped::get_ped_drawable_variation(iParam0, 8), ped::get_ped_texture_variation(iParam0, 8));
					if (dlc1::_0x341DE7ED1D2A1BFD(iVar8, 240476421, 8))
					{
						func_66(iParam0, 9, 0, 0, iParam4, 0, 0, 0, -1, -1, -1, 0, 0, 0);
					}
				}
				iVar102 = func_359(2034, -1, 0);
				if (ped::get_ped_drawable_variation(iParam0, 5) != 0)
				{
					ped::set_ped_component_variation(iParam0, 5, func_89(iParam0, iVar102), func_88(iParam0, iVar102), func_87(iParam0, iVar102));
				}
				if (iParam0 == player::player_ped_id())
				{
					player::set_player_parachute_variation_override(player::player_id(), 5, func_89(player::player_ped_id(), iVar102), func_88(player::player_ped_id(), iVar102), 0);
					player::set_player_parachute_pack_tint_index(player::player_id(), func_87(player::player_ped_id(), iVar102));
					func_84(player::player_id(), iVar102);
				}
			}
			if (iParam1 == 7)
			{
				if ((iVar5 == joaat("mp_m_freemode_01") && iParam2 >= 92) || (iVar5 == joaat("mp_f_freemode_01") && iParam2 >= 55))
				{
					if (dlc1::_0x341DE7ED1D2A1BFD(Global_2621444, -319568873, 0))
					{
						func_66(iParam0, 9, 0, 0, iParam4, 0, 0, 0, -1, -1, -1, 0, 0, 0);
					}
				}
			}
			if (iVar5 == joaat("mp_f_freemode_01") && (iParam1 == 11 || iParam1 == 4))
			{
				if (iParam1 == 11)
				{
					iVar103 = func_173(iParam0, 4, -1);
					iVar104 = iParam2;
				}
				else
				{
					iVar103 = iParam2;
					iVar104 = func_173(iParam0, 11, -1);
				}
				if (func_83(iVar5, 11, iVar104, -1))
				{
					if (!func_82(iVar5, 4, iVar103, -1))
					{
						if (func_81(iVar5, 4, iVar103, &uVar105))
						{
							func_66(iParam0, 4, uVar105, 0, iParam4, 0, 0, 0, -1, -1, -1, 0, 0, 0);
						}
					}
				}
				else if (func_82(iVar5, 4, iVar103, -1))
				{
					if (func_80(iVar5, 4, iVar103, &uVar105))
					{
						func_66(iParam0, 4, uVar105, 0, iParam4, 0, 0, 0, -1, -1, -1, 0, 0, 0);
					}
				}
			}
			if (iParam1 == 4 || iParam1 == 6)
			{
				iVar106 = ped::get_ped_drawable_variation(iParam0, 6);
				iVar107 = ped::get_ped_texture_variation(iParam0, 6);
				iVar108 = dlc1::get_hash_name_for_component(iParam0, 6, iVar106, iVar107);
				iVar109 = ped::get_ped_drawable_variation(iParam0, 4);
				iVar110 = ped::get_ped_texture_variation(iParam0, 4);
				iVar111 = dlc1::get_hash_name_for_component(iParam0, 4, iVar109, iVar110);
				iVar112 = func_159(iParam0, 4);
				iVar113 = func_159(iParam0, 6);
				if (func_79(iVar5, iVar108))
				{
					if (dlc1::_0x341DE7ED1D2A1BFD(iVar108, 1812005517, 0) != func_78(iVar5, iVar112, iVar108))
					{
						iVar114 = dlc1::_0xC17AD0E5752BECDA(iVar108);
						iVar115 = 0;
						while (iVar115 < iVar114)
						{
							dlc1::get_variant_component(iVar108, iVar115, &iVar116, &uVar117, &iVar118);
							if (iVar118 == 6)
							{
								if (iVar116 != 0 && iVar116 != 1849449579)
								{
									if (iVar5 == joaat("mp_m_freemode_01"))
									{
										iVar113 = func_75(iVar5, iVar116, 6, 3);
										iVar108 = iVar116;
										func_66(iParam0, 6, iVar113, 0, iParam4, 0, 0, 0, -1, -1, -1, 0, 0, 0);
									}
									else if (iVar5 == joaat("mp_f_freemode_01"))
									{
										iVar113 = func_75(iVar5, iVar116, 6, 4);
										iVar108 = iVar116;
										func_66(iParam0, 6, iVar113, 0, iParam4, 0, 0, 0, -1, -1, -1, 0, 0, 0);
									}
									iVar115 = iVar114 + 1;
								}
							}
							iVar115++;
						}
					}
					else if (dlc1::_0x341DE7ED1D2A1BFD(iVar111, -2042643157, 0) != func_74(iVar5, iVar113, iVar111))
					{
						iVar119 = dlc1::_0xC17AD0E5752BECDA(iVar111);
						iVar120 = 0;
						while (iVar120 < iVar119)
						{
							dlc1::get_variant_component(iVar111, iVar120, &iVar121, &uVar122, &iVar123);
							if (iVar123 == 4)
							{
								if (iVar121 != 0 && iVar121 != 1849449579)
								{
									if (iVar5 == joaat("mp_m_freemode_01"))
									{
										iVar112 = func_75(iVar5, iVar121, 4, 3);
										iVar111 = iVar121;
										func_66(iParam0, 4, iVar112, 0, iParam4, 0, 0, 0, -1, -1, -1, 0, 0, 0);
									}
									else if (iVar5 == joaat("mp_f_freemode_01"))
									{
										iVar112 = func_75(iVar5, iVar121, 4, 4);
										iVar111 = iVar121;
										func_66(iParam0, 4, iVar112, 0, iParam4, 0, 0, 0, -1, -1, -1, 0, 0, 0);
									}
									iVar120 = iVar119 + 1;
								}
							}
							iVar120++;
						}
					}
				}
				if (func_79(iVar5, iVar111))
				{
					if (dlc1::_0x341DE7ED1D2A1BFD(iVar111, -2042643157, 0) != func_74(iVar5, iVar113, iVar111))
					{
						iVar124 = dlc1::_0xC17AD0E5752BECDA(iVar111);
						iVar125 = 0;
						while (iVar125 < iVar124)
						{
							dlc1::get_variant_component(iVar111, iVar125, &iVar126, &uVar127, &iVar128);
							if (iVar128 == 4)
							{
								if (iVar126 != 0 && iVar126 != 1849449579)
								{
									if (iVar5 == joaat("mp_m_freemode_01"))
									{
										iVar112 = func_75(iVar5, iVar126, 4, 3);
										iVar111 = iVar126;
										func_66(iParam0, 4, iVar112, 0, iParam4, 0, 0, 0, -1, -1, -1, 0, 0, 0);
									}
									else if (iVar5 == joaat("mp_f_freemode_01"))
									{
										iVar112 = func_75(iVar5, iVar126, 4, 4);
										iVar111 = iVar126;
										func_66(iParam0, 4, iVar112, 0, iParam4, 0, 0, 0, -1, -1, -1, 0, 0, 0);
									}
									iVar125 = iVar124 + 1;
								}
							}
							iVar125++;
						}
					}
					else if (dlc1::_0x341DE7ED1D2A1BFD(iVar108, 1812005517, 0) != func_78(iVar5, iVar112, iVar108))
					{
						iVar129 = dlc1::_0xC17AD0E5752BECDA(iVar108);
						iVar130 = 0;
						while (iVar130 < iVar129)
						{
							dlc1::get_variant_component(iVar108, iVar130, &iVar131, &uVar132, &iVar133);
							if (iVar133 == 6)
							{
								if (iVar131 != 0 && iVar131 != 1849449579)
								{
									if (iVar5 == joaat("mp_m_freemode_01"))
									{
										iVar113 = func_75(iVar5, iVar131, 6, 3);
										iVar108 = iVar131;
										func_66(iParam0, 6, iVar113, 0, iParam4, 0, 0, 0, -1, -1, -1, 0, 0, 0);
									}
									else if (iVar5 == joaat("mp_f_freemode_01"))
									{
										iVar113 = func_75(iVar5, iVar131, 6, 4);
										iVar108 = iVar131;
										func_66(iParam0, 6, iVar113, 0, iParam4, 0, 0, 0, -1, -1, -1, 0, 0, 0);
									}
									iVar130 = iVar129 + 1;
								}
							}
							iVar130++;
						}
					}
				}
			}
			if (iParam1 == 11 || iParam1 == 1)
			{
				func_161(iParam0);
				iVar134 = ped::get_ped_drawable_variation(iParam0, 1);
				iVar135 = ped::get_ped_texture_variation(iParam0, 1);
				iVar136 = dlc1::get_hash_name_for_component(iParam0, 1, iVar134, iVar135);
				if (dlc1::_0x341DE7ED1D2A1BFD(iVar136, 838607662, 0))
				{
					iVar3 = func_165(iParam0, iVar5, iParam1, iParam2, 14, 0);
					if (iVar3 != -99)
					{
						func_66(iParam0, 14, iVar3, 0, -1, 0, 0, 0, -1, -1, -1, 0, 0, 0);
					}
					iVar3 = func_165(iParam0, iVar5, iParam1, iParam2, 14, 1);
					if (iVar3 != -99)
					{
						func_66(iParam0, 14, iVar3, 0, -1, 0, 0, 0, -1, -1, -1, 0, 0, 0);
					}
				}
			}
		}
	}
	if (iParam1 != 2)
	{
		if (func_67(iParam0, &uVar4))
		{
			func_66(iParam0, 2, uVar4, 0, -1, 0, 0, 0, -1, -1, -1, 0, 0, 0);
		}
	}
	if (iVar6 != -99 && !iParam13)
	{
		func_66(iParam0, 3, iVar6, 0, iParam4, 0, 0, 0, -1, -1, -1, 0, 0, 0);
	}
	if (iVar9 != -99)
	{
		func_66(iParam0, 8, iVar9, 0, iParam4, 0, 0, 0, -1, -1, -1, 0, 0, 0);
	}
	if (iVar7 != -99)
	{
		func_66(iParam0, 1, iVar7, 0, -1, 0, 0, 0, -1, -1, -1, 0, 0, 0);
	}
	if (iVar11 != -1)
	{
		iVar137 = func_156(iVar5, func_173(iParam0, 3, -1), iVar11);
		if (iVar137 != -1)
		{
			if (iVar5 == joaat("mp_m_freemode_01"))
			{
				iVar10 = func_75(iVar5, iVar137, 3, 3);
			}
			else if (iVar5 == joaat("mp_f_freemode_01"))
			{
				iVar10 = func_75(iVar5, iVar137, 3, 4);
			}
			if (iVar10 != -99)
			{
				iVar10 = (iVar10 + iVar12);
				func_66(iParam0, 3, iVar10, 0, iParam4, 0, 0, 0, -1, -1, -1, 0, 0, 0);
			}
		}
	}
	Global_69517 = (Global_69517 - 1);
	return true;
}

bool func_67(int iParam0, var uParam1)//Position - 0x54CD
{
	int iVar0;
	int iVar1;
	
	*uParam1 = func_173(player::player_ped_id(), 2, -1);
	if (func_359(748, Global_69516, 0) != -99 && func_71())
	{
		if (func_70() == 4)
		{
			return true;
		}
		if (func_359(748, Global_69516, 0) == 0 && func_359(749, Global_69516, 0) == 0)
		{
			if (func_68(161, Global_69516))
			{
				if (func_359(2045, Global_69516, 0) == 0)
				{
					return false;
				}
			}
			else if (func_359(747, Global_69516, 0) == 0)
			{
				return false;
			}
		}
		iVar0 = func_359(748, Global_69516, 0);
		iVar1 = func_359(749, Global_69516, 0);
		if (!func_93(iParam0, iVar1, iVar0))
		{
			if (func_68(161, Global_69516))
			{
				*uParam1 = func_359(2045, Global_69516, 0);
			}
			else
			{
				*uParam1 = func_359(747, Global_69516, 0);
			}
			func_237(748, -99, Global_69516, 1, 0);
			func_237(749, 2, Global_69516, 1, 0);
			return true;
		}
	}
	return false;
}

int func_68(int iParam0, int iParam1)//Position - 0x55E1
{
	int iVar0;
	var uVar1;
	
	iVar0 = Global_2522528[iParam0 /*3*/][func_69(iParam1)];
	if (stats::stat_get_bool(iVar0, &uVar1, -1))
	{
		return uVar1;
	}
	return 0;
}

int func_69(int iParam0)//Position - 0x560D
{
	int iVar0;
	int iVar1;
	
	iVar0 = iParam0;
	if (iVar0 == -1)
	{
		iVar1 = func_39();
		if (iVar1 > -1)
		{
			Global_2503486 = 0;
			iVar0 = iVar1;
		}
		else
		{
			iVar0 = 0;
			Global_2503486 = 1;
		}
	}
	return iVar0;
}

var func_70()//Position - 0x5641
{
	return Global_1315163;
}

bool func_71()//Position - 0x564D
{
	if (func_73() && func_72(0))
	{
		return true;
	}
	return false;
}

var func_72(int iParam0)//Position - 0x566B
{
	return Global_1312369[iParam0];
}

var func_73()//Position - 0x567B
{
	return func_72(func_39() + 1);
}

bool func_74(int iParam0, int iParam1, int iParam2)//Position - 0x568D
{
	int iVar0;
	
	iVar0 = -1;
	switch (iParam0)
	{
		case joaat("mp_m_freemode_01"):
			if (iParam1 >= 256)
			{
				iVar0 = func_158(iParam0, iParam1, 6, 3);
			}
			if (dlc1::_0x341DE7ED1D2A1BFD(iParam2, -56268180, 0))
			{
				if ((((((((((dlc1::_0x341DE7ED1D2A1BFD(iVar0, -713698407, 0) || dlc1::_0x341DE7ED1D2A1BFD(iVar0, 140732128, 0)) || dlc1::_0x341DE7ED1D2A1BFD(iVar0, 2106216756, 0)) || dlc1::_0x341DE7ED1D2A1BFD(iVar0, -849839091, 0)) || dlc1::_0x341DE7ED1D2A1BFD(iVar0, -1446333198, 0)) || dlc1::_0x341DE7ED1D2A1BFD(iVar0, -269266203, 0)) || dlc1::_0x341DE7ED1D2A1BFD(iVar0, 201427653, 0)) || dlc1::_0x341DE7ED1D2A1BFD(iVar0, 967829025, 0)) || dlc1::_0x341DE7ED1D2A1BFD(iVar0, -685039259, 0)) || dlc1::_0x341DE7ED1D2A1BFD(iVar0, -1266557933, 0)) || dlc1::_0x341DE7ED1D2A1BFD(iVar0, -364248070, 0))
				{
					return true;
				}
			}
			break;
		
		case joaat("mp_f_freemode_01"):
			break;
	}
	return false;
	return false;
}

int func_75(int iParam0, int iParam1, int iParam2, int iParam3)//Position - 0x57A0
{
	struct<2> Var0;
	int iVar17;
	int iVar18;
	int iVar19;
	struct<2> Var20;
	int iVar37;
	int iVar38;
	int iVar39;
	
	if (iParam2 == 12)
	{
	}
	else if (iParam2 == 13)
	{
	}
	else if (iParam2 == 14)
	{
		dlc1::init_shop_ped_prop(&Var0);
		iVar18 = 0;
		iVar19 = dlc1::_get_num_props_from_outfit(iParam3, 6, -1, 1, -1, -1);
		iVar17 = 0;
		while (iVar17 < iVar19)
		{
			dlc1::get_shop_ped_query_prop(iVar17, &Var0);
			if (!dlc1::_is_dlc_data_empty(Var0))
			{
				if (iParam1 == Var0.f_1)
				{
					return (func_77(iParam0) + iVar18);
				}
				iVar18++;
			}
			iVar17++;
		}
	}
	else
	{
		dlc1::init_shop_ped_component(&Var20);
		iVar38 = 0;
		iVar39 = dlc1::_get_num_props_from_outfit(iParam3, 6, -1, 0, -1, func_181(iParam2));
		iVar37 = 0;
		while (iVar37 < iVar39)
		{
			dlc1::get_shop_ped_query_component(iVar37, &Var20);
			if (!dlc1::_is_dlc_data_empty(Var20))
			{
				if (iParam1 == Var20.f_1)
				{
					return (func_76(iParam0, func_181(iParam2)) + iVar38);
				}
				iVar38++;
			}
			iVar37++;
		}
	}
	return -99;
}

int func_76(int iParam0, int iParam1)//Position - 0x5880
{
	switch (iParam0)
	{
		case joaat("player_zero"):
			switch (iParam1)
			{
				case 0:
					return 7;
					break;
				
				case 1:
					return 5;
					break;
				
				case 2:
					return 6;
					break;
				
				case 3:
					return 181;
					break;
				
				case 4:
					return 113;
					break;
				
				case 5:
					return 14;
					break;
				
				case 6:
					return 99;
					break;
				
				case 7:
					return 1;
					break;
				
				case 8:
					return 24;
					break;
				
				case 9:
					return 20;
					break;
				
				case 10:
					return 48;
					break;
				
				case 11:
					return 45;
					break;
			}
			break;
		
		case joaat("player_one"):
			switch (iParam1)
			{
				case 0:
					return 10;
					break;
				
				case 1:
					return 5;
					break;
				
				case 2:
					return 21;
					break;
				
				case 3:
					return 318;
					break;
				
				case 4:
					return 117;
					break;
				
				case 5:
					return 7;
					break;
				
				case 6:
					return 134;
					break;
				
				case 7:
					return 1;
					break;
				
				case 8:
					return 77;
					break;
				
				case 9:
					return 12;
					break;
				
				case 10:
					return 53;
					break;
				
				case 11:
					return 63;
					break;
			}
			break;
		
		case joaat("player_two"):
			switch (iParam1)
			{
				case 0:
					return 7;
					break;
				
				case 1:
					return 6;
					break;
				
				case 2:
					return 9;
					break;
				
				case 3:
					return 242;
					break;
				
				case 4:
					return 104;
					break;
				
				case 5:
					return 7;
					break;
				
				case 6:
					return 84;
					break;
				
				case 7:
					return 1;
					break;
				
				case 8:
					return 18;
					break;
				
				case 9:
					return 17;
					break;
				
				case 10:
					return 33;
					break;
				
				case 11:
					return 1;
					break;
			}
			break;
	}
	switch (iParam0)
	{
		case joaat("mp_m_freemode_01"):
			switch (iParam1)
			{
				case 0:
					return 0;
					break;
				
				case 1:
					return 26;
					break;
				
				case 2:
					return 91;
					break;
				
				case 3:
					return 16;
					break;
				
				case 4:
					return 256;
					break;
				
				case 5:
					return 9;
					break;
				
				case 6:
					return 256;
					break;
				
				case 7:
					return 92;
					break;
				
				case 8:
					return 241;
					break;
				
				case 9:
					return 46;
					break;
				
				case 10:
					return 7;
					break;
				
				case 11:
					return 237;
					break;
			}
			break;
		
		case joaat("mp_f_freemode_01"):
			switch (iParam1)
			{
				case 0:
					return 0;
					break;
				
				case 1:
					return 26;
					break;
				
				case 2:
					return 92;
					break;
				
				case 3:
					return 16;
					break;
				
				case 4:
					return 256;
					break;
				
				case 5:
					return 9;
					break;
				
				case 6:
					return 256;
					break;
				
				case 7:
					return 55;
					break;
				
				case 8:
					return 136;
					break;
				
				case 9:
					return 36;
					break;
				
				case 10:
					return 6;
					break;
				
				case 11:
					return 256;
					break;
			}
			break;
	}
	return -99;
}

int func_77(int iParam0)//Position - 0x5C27
{
	switch (iParam0)
	{
		case joaat("player_zero"):
			return 113;
			break;
		
		case joaat("player_one"):
			return 175;
			break;
		
		case joaat("player_two"):
			return 155;
			break;
	}
	switch (iParam0)
	{
		case joaat("mp_m_freemode_01"):
			return 327;
			break;
		
		case joaat("mp_f_freemode_01"):
			return 327;
			break;
	}
	return -99;
}

int func_78(int iParam0, int iParam1, int iParam2)//Position - 0x5C88
{
	int iVar0;
	int iVar1;
	int iVar2;
	
	iVar0 = -1;
	iVar1 = -1;
	switch (iParam0)
	{
		case joaat("mp_m_freemode_01"):
			if (iParam1 >= 256)
			{
				iVar0 = func_158(iParam0, iParam1, 4, 3);
				iVar1 = func_149(iVar0);
			}
			if (dlc1::_0x341DE7ED1D2A1BFD(iParam2, -364248070, 0) || dlc1::_0x341DE7ED1D2A1BFD(iParam2, -56268180, 0))
			{
				iVar2 = 1;
				if (((((((((((((((((((iParam1 >= 32 && iParam1 <= 47) || (iParam1 >= 64 && iParam1 <= 79)) || (iParam1 >= 96 && iParam1 <= 111)) || (iParam1 >= 176 && iParam1 <= 191)) || (iParam1 >= 192 && iParam1 <= 207)) || (iParam1 >= 224 && iParam1 <= 239)) || (iParam1 >= 240 && iParam1 <= 255)) || iVar1 == 2) || iVar1 == 4) || iVar1 == 6) || iVar1 == 11) || iVar1 == 12) || iVar1 == 14) || iVar1 == 15) || dlc1::_0x341DE7ED1D2A1BFD(iVar0, 320460654, 0)) || dlc1::_0x341DE7ED1D2A1BFD(iVar0, -269266203, 0)) || dlc1::_0x341DE7ED1D2A1BFD(iVar0, 201427653, 0)) || dlc1::_0x341DE7ED1D2A1BFD(iVar0, 967829025, 0)) || dlc1::_0x341DE7ED1D2A1BFD(iVar0, -685039259, 0))
				{
					iVar2 = 0;
				}
				switch (iVar0)
				{
					case -439764935:
					case 1858824227:
					case -44268217:
					case 301706885:
					case 1283072893:
					case -1590178565:
					case 1995307108:
					case 1029014836:
					case -365568266:
					case -138446327:
					case -2034722819:
					case -1219513062:
					case 153704652:
					case 356276239:
					case 586511233:
					case 1558996842:
					case 1183988406:
					case 1000678684:
					case 761792674:
					case -145679239:
					case 686423978:
					case -763407658:
					case 74266289:
					case 987390769:
					case 1591372991:
					case 1834027448:
					case 913054691:
					case 1142372153:
					case -1698011990:
					case -1443101939:
					case 2133699953:
					case -1924511318:
					case -475531676:
					case -237137197:
					case 754461254:
					case -1155840382:
					case 629180074:
					case 859251223:
					case 1610316715:
					case 901392169:
					case -92983136:
					case 1346362420:
					case 485782942:
					case 312004063:
					case 6695290:
					case 1724446270:
					case -448105673:
					case -611098679:
					case -1111088081:
					case -1406369540:
					case -1912159043:
					case 2076516410:
					case 1919618438:
					case 45227112:
					case -2129094253:
					case -421370587:
					case -675363106:
						iVar2 = 0;
						break;
				}
				return iVar2;
			}
			break;
		
		case joaat("mp_f_freemode_01"):
			if (iParam1 >= 256)
			{
				iVar0 = func_158(iParam0, iParam1, 4, 4);
				iVar1 = func_149(iVar0);
			}
			if (dlc1::_0x341DE7ED1D2A1BFD(iParam2, -364248070, 0) || dlc1::_0x341DE7ED1D2A1BFD(iParam2, -56268180, 0))
			{
				if ((((((((((((((((((((((((iParam1 >= 16 && iParam1 <= 31) || (iParam1 >= 48 && iParam1 <= 63)) || (iParam1 >= 96 && iParam1 <= 111)) || iVar1 == 1) || iVar1 == 3) || iVar1 == 6) || dlc1::_0x341DE7ED1D2A1BFD(iVar0, 1863955539, 0)) || dlc1::_0x341DE7ED1D2A1BFD(iVar0, 2106216756, 0)) || dlc1::_0x341DE7ED1D2A1BFD(iVar0, -761463976, 0)) || dlc1::_0x341DE7ED1D2A1BFD(iVar0, 684992453, 0)) || dlc1::_0x341DE7ED1D2A1BFD(iVar0, 916636514, 0)) || dlc1::_0x341DE7ED1D2A1BFD(iVar0, -1939378450, 0)) || dlc1::_0x341DE7ED1D2A1BFD(iVar0, 264959411, 0)) || dlc1::_0x341DE7ED1D2A1BFD(iVar0, -1127835965, 0)) || dlc1::_0x341DE7ED1D2A1BFD(iVar0, -1119232689, 0)) || dlc1::_0x341DE7ED1D2A1BFD(iVar0, -1207283343, 0)) || dlc1::_0x341DE7ED1D2A1BFD(iVar0, -849839091, 0)) || dlc1::_0x341DE7ED1D2A1BFD(iVar0, -2088146832, 0)) || dlc1::_0x341DE7ED1D2A1BFD(iVar0, -1446333198, 0)) || dlc1::_0x341DE7ED1D2A1BFD(iVar0, -430330349, 0)) || dlc1::_0x341DE7ED1D2A1BFD(iVar0, -1103045158, 0)) || dlc1::_0x341DE7ED1D2A1BFD(iVar0, 1055526375, 0)) || dlc1::_0x341DE7ED1D2A1BFD(iVar0, -2020757158, 0)) || dlc1::_0x341DE7ED1D2A1BFD(iVar0, -1325813684, 0))
				{
					return 1;
				}
			}
			break;
	}
	return 0;
}

bool func_79(int iParam0, int iParam1)//Position - 0x616E
{
	switch (iParam0)
	{
		case joaat("mp_m_freemode_01"):
			if (dlc1::_0x341DE7ED1D2A1BFD(iParam1, -364248070, 0) || dlc1::_0x341DE7ED1D2A1BFD(iParam1, -56268180, 0))
			{
				return true;
			}
			break;
		
		case joaat("mp_f_freemode_01"):
			if (dlc1::_0x341DE7ED1D2A1BFD(iParam1, -364248070, 0) || dlc1::_0x341DE7ED1D2A1BFD(iParam1, -56268180, 0))
			{
				return true;
			}
			break;
	}
	return false;
}

bool func_80(int iParam0, int iParam1, int iParam2, var uParam3)//Position - 0x61DA
{
	int iVar0;
	int iVar1;
	int iVar2;
	int iVar3;
	var uVar4;
	int iVar5;
	
	switch (iParam0)
	{
		case joaat("mp_f_freemode_01"):
			switch (iParam1)
			{
				case 4:
					if (iParam2 >= 256)
					{
						iVar0 = func_158(iParam0, iParam2, iParam1, 4);
						if (iVar0 != -1)
						{
							iVar1 = dlc1::_0xC17AD0E5752BECDA(iVar0);
							iVar2 = 0;
							while (iVar2 < iVar1)
							{
								dlc1::get_variant_component(iVar0, iVar2, &iVar3, &uVar4, &iVar5);
								if (iVar5 == 4)
								{
									if (iVar3 != 0 && iVar3 != 1849449579)
									{
										if (!dlc1::_0x341DE7ED1D2A1BFD(iVar3, -1100807313, 0))
										{
											*uParam3 = func_75(iParam0, iVar3, iParam1, 4);
											return true;
										}
									}
								}
								iVar2++;
							}
						}
					}
					break;
			}
			break;
	}
	return false;
}

bool func_81(int iParam0, int iParam1, int iParam2, var uParam3)//Position - 0x6283
{
	int iVar0;
	int iVar1;
	int iVar2;
	int iVar3;
	var uVar4;
	int iVar5;
	
	switch (iParam0)
	{
		case joaat("mp_f_freemode_01"):
			switch (iParam1)
			{
				case 4:
					if (iParam2 >= 256)
					{
						iVar0 = func_158(iParam0, iParam2, iParam1, 4);
						if (iVar0 != -1)
						{
							iVar1 = dlc1::_0xC17AD0E5752BECDA(iVar0);
							iVar2 = 0;
							while (iVar2 < iVar1)
							{
								dlc1::get_variant_component(iVar0, iVar2, &iVar3, &uVar4, &iVar5);
								if (iVar5 == 4)
								{
									if (iVar3 != 0 && iVar3 != 1849449579)
									{
										if (dlc1::_0x341DE7ED1D2A1BFD(iVar3, -1100807313, 0))
										{
											*uParam3 = func_75(iParam0, iVar3, iParam1, 4);
											return true;
										}
									}
								}
								iVar2++;
							}
						}
					}
					break;
			}
			break;
	}
	return false;
}

bool func_82(int iParam0, int iParam1, int iParam2, int iParam3)//Position - 0x632B
{
	switch (iParam0)
	{
		case joaat("mp_f_freemode_01"):
			switch (iParam1)
			{
				case 4:
					if (iParam2 >= 256)
					{
						if (iParam3 == -1)
						{
							iParam3 = func_158(iParam0, iParam2, 4, 4);
						}
						if (dlc1::_0x341DE7ED1D2A1BFD(iParam3, -1100807313, 0))
						{
							return true;
						}
					}
					break;
			}
			break;
	}
	return false;
}

int func_83(int iParam0, int iParam1, int iParam2, int iParam3)//Position - 0x6381
{
	switch (iParam0)
	{
		case joaat("mp_f_freemode_01"):
			switch (iParam1)
			{
				case 11:
					if (iParam2 >= 256)
					{
						if (iParam3 == -1)
						{
							iParam3 = func_158(iParam0, iParam2, 11, 4);
						}
						return dlc1::_0x341DE7ED1D2A1BFD(iParam3, -530089825, 0);
					}
					break;
			}
			break;
	}
	return false;
}

void func_84(int iParam0, int iParam1)//Position - 0x63D4
{
	if (func_86())
	{
		if (iParam1 > 46)
		{
			player::set_player_parachute_pack_model_override(iParam0, 1766664132);
		}
		else if (iParam1 > 26)
		{
			player::set_player_parachute_pack_model_override(iParam0, 1277738372);
		}
		else if (iParam1 > 0)
		{
			player::set_player_parachute_pack_model_override(iParam0, 1269440357);
		}
		else
		{
			player::clear_player_parachute_pack_model_override(iParam0);
		}
	}
	else if (func_85())
	{
		if (iParam1 > 0)
		{
			player::set_player_parachute_pack_model_override(iParam0, 1479397204);
		}
		else
		{
			player::clear_player_parachute_pack_model_override(iParam0);
		}
	}
}

int func_85()//Position - 0x644B
{
	return dlc2::is_dlc_present(1428761799);
}

int func_86()//Position - 0x645C
{
	return dlc2::is_dlc_present(-1005876368);
}

bool func_87(int iParam0, int iParam1)//Position - 0x646D
{
	return false;
}

int func_88(int iParam0, int iParam1)//Position - 0x6476
{
	if (iParam1 > 62)
	{
		return (iParam1 - 63);
	}
	if (iParam1 > 51)
	{
		return (iParam1 - 52);
	}
	if (iParam1 > 46)
	{
		return (iParam1 - 47);
	}
	if (iParam1 > 26)
	{
		return (iParam1 - 27);
	}
	if (iParam1 > 0)
	{
		return (iParam1 - 1);
	}
	return iParam1;
}

int func_89(int iParam0, int iParam1)//Position - 0x64D8
{
	int iVar0;
	int iVar1;
	int iVar2;
	int iVar3;
	int iVar4;
	int iVar5;
	int iVar6;
	int iVar7;
	
	iVar0 = ped::get_ped_drawable_variation(iParam0, 11);
	if (ped::get_ped_drawable_variation(iParam0, 9) != 0)
	{
		iVar1 = true;
	}
	iVar2 = entity::get_entity_model(iParam0);
	iVar3 = dlc1::get_hash_name_for_component(iParam0, 8, ped::get_ped_drawable_variation(iParam0, 8), ped::get_ped_texture_variation(iParam0, 8));
	if (dlc1::_0x341DE7ED1D2A1BFD(iVar3, 240476421, 8))
	{
		return func_92(iParam0, iParam1);
	}
	iVar4 = 0;
	if (iParam1 > 61)
	{
		iVar4 = 50;
	}
	else if (iParam1 > 51)
	{
		return iParam1;
	}
	else if (iParam1 > 46)
	{
		iVar4 = 30;
	}
	else if (iParam1 > 26)
	{
		iVar4 = 20;
	}
	else if (iParam1 > 0)
	{
		iVar4 = 9;
	}
	else
	{
		iVar4 = 0;
	}
	if (iVar0 > 15)
	{
		iVar5 = dlc1::get_hash_name_for_component(iParam0, 11, iVar0, ped::get_ped_texture_variation(iParam0, 11));
		if (dlc1::_0x341DE7ED1D2A1BFD(iVar5, 655081063, 0))
		{
			if (iVar1)
			{
				return (8 + iVar4);
			}
			else
			{
				return (2 + iVar4);
			}
		}
		else if (dlc1::_0x341DE7ED1D2A1BFD(iVar5, -530089825, 0))
		{
			if (iVar1)
			{
				return (6 + iVar4);
			}
			else
			{
				return (6 + iVar4);
			}
		}
		else if (dlc1::_0x341DE7ED1D2A1BFD(iVar5, -713698407, 0))
		{
			if (iParam1 > 46)
			{
				return 39;
			}
			else if (iParam1 > 26)
			{
				return 29;
			}
			else if (iParam1 > 0)
			{
				return 18;
			}
			else
			{
				return 19;
			}
		}
		else if (dlc1::_0x341DE7ED1D2A1BFD(iVar5, -1882920022, 0))
		{
			if (iVar2 == joaat("mp_m_freemode_01"))
			{
				if (iVar1)
				{
					return (8 + iVar4);
				}
				else
				{
					return (2 + iVar4);
				}
			}
			else if (iVar1)
			{
				return (8 + iVar4);
			}
			else
			{
				return (2 + iVar4);
			}
		}
		else if (dlc1::_0x341DE7ED1D2A1BFD(iVar5, -317649054, 0))
		{
			if (iVar2 == joaat("mp_m_freemode_01"))
			{
				if (iVar1)
				{
					return (8 + iVar4);
				}
				else
				{
					return (2 + iVar4);
				}
			}
			else if (iVar1)
			{
				return (8 + iVar4);
			}
			else
			{
				return (2 + iVar4);
			}
		}
		else if (dlc1::_0x341DE7ED1D2A1BFD(iVar5, 1536649085, 0))
		{
			iVar6 = func_91(iVar5, 0);
			if (iVar2 == joaat("mp_m_freemode_01"))
			{
				switch (iVar6)
				{
					case 0:
						return (2 + iVar4);
						break;
					
					case 2:
						if (iParam1 > 46)
						{
							return 39;
						}
						else if (iParam1 > 26)
						{
							return 29;
						}
						else if (iParam1 > 0)
						{
							return 18;
						}
						else
						{
							return 19;
						}
						break;
					
					default:
						iVar0 = func_149(iVar5);
						break;
				}
			}
			else
			{
				switch (iVar6)
				{
					case 2:
						return (7 + iVar4);
						break;
					
					default:
						iVar0 = func_149(iVar5);
						break;
					}
			}
		}
		else if (dlc1::_0x341DE7ED1D2A1BFD(iVar5, 248194463, 0))
		{
			if (dlc1::_0x341DE7ED1D2A1BFD(iVar5, -1347486026, 0))
			{
				return (3 + iVar4);
			}
			else
			{
				return (7 + iVar4);
			}
		}
		else if (dlc1::_0x341DE7ED1D2A1BFD(iVar5, 396458410, 0))
		{
			iVar7 = func_90(iVar5, 0);
			switch (iVar7)
			{
				case 4:
					if (iParam1 > 46)
					{
						return 39;
					}
					else if (iParam1 > 26)
					{
						return 28;
					}
					else if (iParam1 > 0)
					{
						return 17;
					}
					else
					{
						return 8;
					}
					break;
				
				case 5:
					if (iVar2 == joaat("mp_m_freemode_01"))
					{
					}
					else
					{
						return (8 + iVar4);
					}
					break;
				
				case 6:
					if (iVar2 == joaat("mp_m_freemode_01"))
					{
					}
					else
					{
						return (8 + iVar4);
					}
					break;
				
				case 7:
					if (iVar2 == joaat("mp_m_freemode_01"))
					{
					}
					else
					{
						return (8 + iVar4);
					}
					break;
				
				case 11:
					if (iVar2 == joaat("mp_m_freemode_01"))
					{
					}
					else
					{
						return (8 + iVar4);
					}
					break;
				
				case 12:
					if (iVar2 == joaat("mp_m_freemode_01"))
					{
					}
					else
					{
						return (8 + iVar4);
					}
					break;
				
				case 14:
					if (iParam1 > 46)
					{
						return 39;
					}
					else if (iParam1 > 26)
					{
						return 29;
					}
					else if (iParam1 > 0)
					{
						return 18;
					}
					else
					{
						return 19;
					}
					break;
				
				default:
					iVar0 = func_149(iVar5);
					break;
			}
		}
		else if (dlc1::_0x341DE7ED1D2A1BFD(iVar5, -779835469, 0))
		{
			if (iVar2 == joaat("mp_m_freemode_01"))
			{
				if (iVar1)
				{
					return (8 + iVar4);
				}
				else
				{
					return (3 + iVar4);
				}
			}
			else if (iVar1)
			{
				return (8 + iVar4);
			}
			else
			{
				return (2 + iVar4);
			}
		}
		else if (dlc1::_0x341DE7ED1D2A1BFD(iVar5, -1119232689, 0))
		{
			if (iVar2 == joaat("mp_m_freemode_01"))
			{
				return (3 + iVar4);
			}
			else if (iVar1)
			{
				return (8 + iVar4);
			}
			else
			{
				return (1 + iVar4);
			}
		}
		else if (dlc1::_0x341DE7ED1D2A1BFD(iVar5, -2102859770, 0))
		{
			if (iVar2 == joaat("mp_m_freemode_01"))
			{
				return (2 + iVar4);
			}
			else
			{
				return (2 + iVar4);
			}
		}
		else if (dlc1::_0x341DE7ED1D2A1BFD(iVar5, 1784133476, 0))
		{
			if (iVar2 == joaat("mp_m_freemode_01"))
			{
				return (2 + iVar4);
			}
			else if (iVar1)
			{
				return (8 + iVar4);
			}
			else
			{
				return (1 + iVar4);
			}
		}
		else if (dlc1::_0x341DE7ED1D2A1BFD(iVar5, -1607949555, 0))
		{
			if (iVar2 == joaat("mp_m_freemode_01"))
			{
				return (3 + iVar4);
			}
			else
			{
				return (4 + iVar4);
			}
		}
		else if (dlc1::_0x341DE7ED1D2A1BFD(iVar5, 1976716889, 0))
		{
			if (iVar2 == joaat("mp_m_freemode_01"))
			{
				return (3 + iVar4);
			}
			else
			{
				return (8 + iVar4);
			}
		}
		else if (dlc1::_0x341DE7ED1D2A1BFD(iVar5, 2099109084, 0))
		{
			if (iVar2 == joaat("mp_m_freemode_01"))
			{
				return (2 + iVar4);
			}
			else
			{
				return (8 + iVar4);
			}
		}
		else if (dlc1::_0x341DE7ED1D2A1BFD(iVar5, -1488441032, 0))
		{
			if (iVar2 == joaat("mp_m_freemode_01"))
			{
				if (iParam1 > 46)
				{
					return 39;
				}
				else if (iParam1 > 26)
				{
					return 29;
				}
				else if (iParam1 > 0)
				{
					return 18;
				}
				else
				{
					return 19;
				}
			}
			else
			{
				return (4 + iVar4);
			}
		}
		else if (dlc1::_0x341DE7ED1D2A1BFD(iVar5, -1719167561, 0) || dlc1::_0x341DE7ED1D2A1BFD(iVar5, 1431529976, 0))
		{
			if (iVar2 == joaat("mp_m_freemode_01"))
			{
				return (3 + iVar4);
			}
			else
			{
				return (8 + iVar4);
			}
		}
		else if (dlc1::_0x341DE7ED1D2A1BFD(iVar5, -1274099003, 0) || dlc1::_0x341DE7ED1D2A1BFD(iVar5, 1723403459, 0))
		{
			if (iVar2 == joaat("mp_m_freemode_01"))
			{
				return (3 + iVar4);
			}
			else
			{
				return (8 + iVar4);
			}
		}
		else if (dlc1::_0x341DE7ED1D2A1BFD(iVar5, 912543594, 0))
		{
			if (iVar2 == joaat("mp_m_freemode_01"))
			{
				return (2 + iVar4);
			}
		}
		else if ((dlc1::_0x341DE7ED1D2A1BFD(iVar5, -1086258388, 0) || dlc1::_0x341DE7ED1D2A1BFD(iVar5, 103539798, 0)) || dlc1::_0x341DE7ED1D2A1BFD(iVar5, -994703884, 0))
		{
			if (iVar2 == joaat("mp_m_freemode_01"))
			{
				if (iVar1)
				{
					return (8 + iVar4);
				}
				else
				{
					return (6 + iVar4);
				}
			}
			else if (iVar1)
			{
				return (8 + iVar4);
			}
			else
			{
				return (7 + iVar4);
			}
		}
		else if (dlc1::_0x341DE7ED1D2A1BFD(iVar5, 2044466679, 0))
		{
			if (iVar2 == joaat("mp_m_freemode_01"))
			{
				if (iParam1 > 46)
				{
					return 39;
				}
				else if (iParam1 > 26)
				{
					return 29;
				}
				else if (iParam1 > 0)
				{
					return 18;
				}
				else
				{
					return 19;
				}
			}
			else if (iVar1)
			{
				return (4 + iVar4);
			}
		}
		else if (dlc1::_0x341DE7ED1D2A1BFD(iVar5, -2020757158, 0))
		{
			if (iVar2 == joaat("mp_m_freemode_01"))
			{
				return (3 + iVar4);
			}
			else if (iVar1)
			{
				return (8 + iVar4);
			}
			else
			{
				return (2 + iVar4);
			}
		}
		else if (dlc1::_0x341DE7ED1D2A1BFD(iVar5, -1064262817, 0))
		{
			if (iVar2 == joaat("mp_m_freemode_01"))
			{
				if (iVar1)
				{
					return (8 + iVar4);
				}
				else
				{
					return (2 + iVar4);
				}
			}
			else if (iVar1)
			{
				return func_92(iParam0, iParam1);
			}
			else
			{
				return (8 + iVar4);
			}
		}
		else if (dlc1::_0x341DE7ED1D2A1BFD(iVar5, -1419806467, 0))
		{
			if (iVar2 == joaat("mp_m_freemode_01"))
			{
				return (7 + iVar4);
			}
			else
			{
				return (8 + iVar4);
			}
		}
		else if (dlc1::_0x341DE7ED1D2A1BFD(iVar5, -1053842259, 0))
		{
			if (iVar2 == joaat("mp_m_freemode_01"))
			{
				if (iVar1)
				{
					return (8 + iVar4);
				}
				else
				{
					return (2 + iVar4);
				}
			}
			else
			{
				return (8 + iVar4);
			}
		}
		else if (dlc1::_0x341DE7ED1D2A1BFD(iVar5, -1358888880, 0))
		{
			if (iVar2 == joaat("mp_m_freemode_01"))
			{
				return (3 + iVar4);
			}
			else
			{
				return (4 + iVar4);
			}
		}
		else if (dlc1::_0x341DE7ED1D2A1BFD(iVar5, -441291342, 0))
		{
			if (iVar2 == joaat("mp_m_freemode_01"))
			{
				return (3 + iVar4);
			}
			else
			{
				return (8 + iVar4);
			}
		}
		else if (dlc1::_0x341DE7ED1D2A1BFD(iVar5, -747583185, 0))
		{
			if (iVar2 == joaat("mp_f_freemode_01"))
			{
				if (iVar1)
				{
					return func_92(iParam0, iParam1);
				}
				else
				{
					return (2 + iVar4);
				}
			}
		}
		else if (dlc1::_0x341DE7ED1D2A1BFD(iVar5, -1986415230, 0))
		{
			if (iVar2 == joaat("mp_m_freemode_01"))
			{
			}
			else
			{
				return (8 + iVar4);
			}
		}
		else if (dlc1::_0x341DE7ED1D2A1BFD(iVar5, -2088146832, 0))
		{
			if (iVar2 == joaat("mp_m_freemode_01"))
			{
				if (iVar1)
				{
					return (8 + iVar4);
				}
				else
				{
					return (6 + iVar4);
				}
			}
		}
		else if (dlc1::_0x341DE7ED1D2A1BFD(iVar5, -785939537, 0))
		{
			if (iVar2 == joaat("mp_m_freemode_01"))
			{
				if (iVar1)
				{
					return (8 + iVar4);
				}
				else
				{
					return (3 + iVar4);
				}
			}
			else
			{
				return (8 + iVar4);
			}
		}
		else if (dlc1::_0x341DE7ED1D2A1BFD(iVar5, -872449705, 0))
		{
			if (iVar2 == joaat("mp_m_freemode_01"))
			{
				if (iVar1)
				{
					return (8 + iVar4);
				}
				else
				{
					return (2 + iVar4);
				}
			}
			else
			{
				return (8 + iVar4);
			}
		}
		else if (dlc1::_0x341DE7ED1D2A1BFD(iVar5, 700658917, 0))
		{
			if (iVar2 == joaat("mp_m_freemode_01"))
			{
				return (8 + iVar4);
			}
			else
			{
				return (8 + iVar4);
			}
		}
		else if (dlc1::_0x341DE7ED1D2A1BFD(iVar5, 1714969731, 0))
		{
			if (iVar2 == joaat("mp_m_freemode_01"))
			{
				if (iVar1)
				{
					return (8 + iVar4);
				}
				else
				{
					return (2 + iVar4);
				}
			}
			else
			{
				return (8 + iVar4);
			}
		}
		else if (dlc1::_0x341DE7ED1D2A1BFD(iVar5, 745826556, 0))
		{
			if (iVar2 == joaat("mp_m_freemode_01"))
			{
				return (8 + iVar4);
			}
			else
			{
				return (8 + iVar4);
			}
		}
		else if (dlc1::_0x341DE7ED1D2A1BFD(iVar5, 1055526375, 0))
		{
			if (iVar2 == joaat("mp_m_freemode_01"))
			{
				return (8 + iVar4);
			}
			else
			{
				return (8 + iVar4);
			}
		}
		else if (dlc1::_0x341DE7ED1D2A1BFD(iVar5, 144417099, 0))
		{
			if (iVar2 == joaat("mp_m_freemode_01"))
			{
				return (8 + iVar4);
			}
			else
			{
				return (8 + iVar4);
			}
		}
		else if (dlc1::_0x341DE7ED1D2A1BFD(iVar5, 492620493, 0))
		{
			if (iVar2 == joaat("mp_m_freemode_01"))
			{
				return (8 + iVar4);
			}
			else
			{
				return (8 + iVar4);
			}
		}
		else if (dlc1::_0x341DE7ED1D2A1BFD(iVar5, -416620954, 0))
		{
			if (iVar2 == joaat("mp_m_freemode_01"))
			{
				if (iVar1)
				{
					return (8 + iVar4);
				}
				else
				{
					return (3 + iVar4);
				}
			}
			else
			{
				return (4 + iVar4);
			}
		}
		else if (dlc1::_0x341DE7ED1D2A1BFD(iVar5, -102825006, 0))
		{
			if (iVar2 == joaat("mp_m_freemode_01"))
			{
				if (iVar1)
				{
					return (8 + iVar4);
				}
				else
				{
					return (2 + iVar4);
				}
			}
			else
			{
				return (7 + iVar4);
			}
		}
		else if (dlc1::_0x341DE7ED1D2A1BFD(iVar5, -733792105, 0))
		{
			if (iVar2 == joaat("mp_m_freemode_01"))
			{
				if (iVar1)
				{
					return (8 + iVar4);
				}
				else
				{
					return (7 + iVar4);
				}
			}
			else
			{
				return (4 + iVar4);
			}
		}
		else if (dlc1::_0x341DE7ED1D2A1BFD(iVar5, 137011325, 0))
		{
			if (iVar2 == joaat("mp_m_freemode_01"))
			{
				if (iVar1)
				{
					return (8 + iVar4);
				}
				else
				{
					return (3 + iVar4);
				}
			}
		}
		else if (dlc1::_0x341DE7ED1D2A1BFD(iVar5, -641612092, 0))
		{
			if (iVar2 == joaat("mp_m_freemode_01"))
			{
			}
			else
			{
				return (6 + iVar4);
			}
		}
		else if (dlc1::_0x341DE7ED1D2A1BFD(iVar5, -1351486939, 0))
		{
			if (iVar2 == joaat("mp_m_freemode_01"))
			{
				if (iVar1)
				{
					return (8 + iVar4);
				}
				else
				{
					return (2 + iVar4);
				}
			}
			else if (iVar1)
			{
				return func_92(iParam0, iParam1);
			}
			else
			{
				return (2 + iVar4);
			}
		}
		else if (dlc1::_0x341DE7ED1D2A1BFD(iVar5, -2119756144, 0))
		{
			if (iVar2 == joaat("mp_m_freemode_01"))
			{
				if (iVar1)
				{
					return (8 + iVar4);
				}
				else
				{
					return (3 + iVar4);
				}
			}
			else
			{
				return (8 + iVar4);
			}
		}
		else if (dlc1::_0x341DE7ED1D2A1BFD(iVar5, -1507532917, 0))
		{
			if (iVar2 == joaat("mp_m_freemode_01"))
			{
				return func_92(iParam0, iParam1);
			}
			else
			{
				return (7 + iVar4);
			}
		}
		else if (dlc1::_0x341DE7ED1D2A1BFD(iVar5, 947651647, 0))
		{
			if (iVar2 == joaat("mp_m_freemode_01"))
			{
			}
			else
			{
				return (8 + iVar4);
			}
		}
		else if (dlc1::_0x341DE7ED1D2A1BFD(iVar5, -1506370874, 0))
		{
			if (iVar2 == joaat("mp_m_freemode_01"))
			{
				return (8 + iVar4);
			}
			else
			{
				return (8 + iVar4);
			}
		}
		else if (dlc1::_0x341DE7ED1D2A1BFD(iVar5, -1786447517, 0))
		{
			if (iVar2 == joaat("mp_m_freemode_01"))
			{
				return (8 + iVar4);
			}
			else
			{
				return (8 + iVar4);
			}
		}
		else if (dlc1::_0x341DE7ED1D2A1BFD(iVar5, -1010805287, 0))
		{
			if (iVar2 == joaat("mp_m_freemode_01"))
			{
				return (8 + iVar4);
			}
			else
			{
				return (8 + iVar4);
			}
		}
		else if (dlc1::_0x341DE7ED1D2A1BFD(iVar5, -1325813684, 0))
		{
			if (iVar2 == joaat("mp_m_freemode_01"))
			{
				return (8 + iVar4);
			}
			else if (iVar1)
			{
				return func_92(iParam0, iParam1);
			}
			else
			{
				return (8 + iVar4);
			}
		}
		else if (dlc1::_0x341DE7ED1D2A1BFD(iVar5, -549843760, 0))
		{
			if (iVar2 == joaat("mp_m_freemode_01"))
			{
				return (8 + iVar4);
			}
			else
			{
				return (8 + iVar4);
			}
		}
		else if (dlc1::_0x341DE7ED1D2A1BFD(iVar5, -828478571, 0))
		{
			if (iVar2 == joaat("mp_m_freemode_01"))
			{
				return func_92(iParam0, iParam1);
			}
			else if (iVar1)
			{
				return (55 + iVar4);
			}
			else
			{
				return (8 + iVar4);
			}
		}
		else if (dlc1::_0x341DE7ED1D2A1BFD(iVar5, 1690933245, 0))
		{
			if (iVar2 == joaat("mp_m_freemode_01"))
			{
				return (8 + iVar4);
			}
			else if (iVar1)
			{
				return func_92(iParam0, iParam1);
			}
			else
			{
				return (8 + iVar4);
			}
		}
		else if (dlc1::_0x341DE7ED1D2A1BFD(iVar5, 1360588936, 0))
		{
			if (iVar2 == joaat("mp_m_freemode_01"))
			{
				return (8 + iVar4);
			}
			else
			{
				return (8 + iVar4);
			}
		}
		else if (dlc1::_0x341DE7ED1D2A1BFD(iVar5, 2136821028, 0))
		{
			if (iVar2 == joaat("mp_m_freemode_01"))
			{
				return (8 + iVar4);
			}
			else
			{
				return (8 + iVar4);
			}
		}
		else if (dlc1::_0x341DE7ED1D2A1BFD(iVar5, 1830529185, 0))
		{
			if (iVar2 == joaat("mp_m_freemode_01"))
			{
				return (8 + iVar4);
			}
			else
			{
				return (8 + iVar4);
			}
		}
		else if (dlc1::_0x341DE7ED1D2A1BFD(iVar5, -269266203, 0))
		{
			if (iVar2 == joaat("mp_m_freemode_01"))
			{
				return (3 + iVar4);
			}
			else
			{
				return (4 + iVar4);
			}
		}
		else if (dlc1::_0x341DE7ED1D2A1BFD(iVar5, 201427653, 0))
		{
			if (iVar2 == joaat("mp_m_freemode_01"))
			{
				return (8 + iVar4);
			}
			else
			{
				return (4 + iVar4);
			}
		}
		else if (dlc1::_0x341DE7ED1D2A1BFD(iVar5, 967829025, 0))
		{
			if (iVar2 == joaat("mp_m_freemode_01"))
			{
				return (8 + iVar4);
			}
			else
			{
				return (4 + iVar4);
			}
		}
		else if (dlc1::_0x341DE7ED1D2A1BFD(iVar5, -685039259, 0))
		{
			if (iVar2 == joaat("mp_m_freemode_01"))
			{
				return (3 + iVar4);
			}
			else
			{
				return (4 + iVar4);
			}
		}
		else if (dlc1::_0x341DE7ED1D2A1BFD(iVar5, -1266557933, 0))
		{
			if (iVar2 == joaat("mp_m_freemode_01"))
			{
				return func_92(iParam0, iParam1);
			}
			else
			{
				return (8 + iVar4);
			}
		}
		else if (dlc1::_0x341DE7ED1D2A1BFD(iVar5, -979468724, 0))
		{
			if (iVar2 == joaat("mp_m_freemode_01"))
			{
				return func_92(iParam0, iParam1);
			}
			else
			{
				return (8 + iVar4);
			}
		}
		else if (dlc1::_0x341DE7ED1D2A1BFD(iVar5, -1813210391, 0))
		{
			if (iVar2 == joaat("mp_m_freemode_01"))
			{
				return (3 + iVar4);
			}
			else
			{
				return (8 + iVar4);
			}
		}
		else if (dlc1::_0x341DE7ED1D2A1BFD(iVar5, 263623295, 0))
		{
			if (iVar2 == joaat("mp_m_freemode_01"))
			{
				return func_92(iParam0, iParam1);
			}
			else
			{
				return (8 + iVar4);
			}
		}
		else if (dlc1::_0x341DE7ED1D2A1BFD(iVar5, -309899747, 0))
		{
			if (iVar2 == joaat("mp_m_freemode_01"))
			{
				return (8 + iVar4);
			}
			else
			{
				return (8 + iVar4);
			}
		}
		else if (dlc1::_0x341DE7ED1D2A1BFD(iVar5, -89003918, 0))
		{
			if (iVar2 == joaat("mp_m_freemode_01"))
			{
				return (8 + iVar4);
			}
			else
			{
				return (8 + iVar4);
			}
		}
		else if (dlc1::_0x341DE7ED1D2A1BFD(iVar5, -747858475, 0))
		{
			if (iVar2 == joaat("mp_m_freemode_01"))
			{
				return func_92(iParam0, iParam1);
			}
			else
			{
				return func_92(iParam0, iParam1);
			}
		}
		else if (dlc1::_0x341DE7ED1D2A1BFD(iVar5, 490219883, 0))
		{
			if (iVar2 == joaat("mp_m_freemode_01"))
			{
				return func_92(iParam0, iParam1);
			}
			else
			{
				return (8 + iVar4);
			}
		}
		else if (dlc1::_0x341DE7ED1D2A1BFD(iVar5, 1208450825, 0))
		{
			if (iVar2 == joaat("mp_m_freemode_01"))
			{
				return func_92(iParam0, iParam1);
			}
			else
			{
				return (8 + iVar4);
			}
		}
		else if (dlc1::_0x341DE7ED1D2A1BFD(iVar5, 297865853, 0))
		{
			if (iVar2 == joaat("mp_m_freemode_01"))
			{
				return func_92(iParam0, iParam1);
			}
			else
			{
				return (8 + iVar4);
			}
		}
		else if (dlc1::_0x341DE7ED1D2A1BFD(iVar5, 602650322, 0))
		{
			if (iVar2 == joaat("mp_m_freemode_01"))
			{
				return func_92(iParam0, iParam1);
			}
			else
			{
				return (8 + iVar4);
			}
		}
		else if (dlc1::_0x341DE7ED1D2A1BFD(iVar5, 905042630, 0))
		{
			if (iVar2 == joaat("mp_m_freemode_01"))
			{
				return func_92(iParam0, iParam1);
			}
			else
			{
				return (8 + iVar4);
			}
		}
		else if (dlc1::_0x341DE7ED1D2A1BFD(iVar5, 1204125293, 0))
		{
			if (iVar2 == joaat("mp_m_freemode_01"))
			{
				return func_92(iParam0, iParam1);
			}
			else
			{
				return (8 + iVar4);
			}
		}
		else if (dlc1::_0x341DE7ED1D2A1BFD(iVar5, 310055897, 0))
		{
			if (iVar2 == joaat("mp_m_freemode_01"))
			{
				return func_92(iParam0, iParam1);
			}
			else
			{
				return (8 + iVar4);
			}
		}
		else if (dlc1::_0x341DE7ED1D2A1BFD(iVar5, 606713654, 0))
		{
			if (iVar2 == joaat("mp_m_freemode_01"))
			{
				return func_92(iParam0, iParam1);
			}
			else
			{
				return func_92(iParam0, iParam1);
			}
		}
		else if (dlc1::_0x341DE7ED1D2A1BFD(iVar5, 1831422288, 0))
		{
			if (iVar2 == joaat("mp_m_freemode_01"))
			{
				return (8 + iVar4);
			}
			else
			{
				return (8 + iVar4);
			}
		}
		else if (dlc1::_0x341DE7ED1D2A1BFD(iVar5, -838136846, 0))
		{
			if (iVar2 == joaat("mp_m_freemode_01"))
			{
				return (8 + iVar4);
			}
			else
			{
				return (8 + iVar4);
			}
		}
		else if (dlc1::_0x341DE7ED1D2A1BFD(iVar5, 655638019, 0))
		{
			if (iVar2 == joaat("mp_m_freemode_01"))
			{
				return (8 + iVar4);
			}
			else
			{
				return (8 + iVar4);
			}
		}
		else if (dlc1::_0x341DE7ED1D2A1BFD(iVar5, 970679185, 0))
		{
			if (iVar2 == joaat("mp_m_freemode_01"))
			{
				return (3 + iVar4);
			}
			else
			{
				return (8 + iVar4);
			}
		}
		else if (dlc1::_0x341DE7ED1D2A1BFD(iVar5, 83294665, 0))
		{
			if (iVar2 == joaat("mp_m_freemode_01"))
			{
				return (8 + iVar4);
			}
			else
			{
				return (8 + iVar4);
			}
		}
		else if (dlc1::_0x341DE7ED1D2A1BFD(iVar5, 382246252, 0))
		{
			if (iVar2 == joaat("mp_m_freemode_01"))
			{
				return (8 + iVar4);
			}
			else
			{
				return (4 + iVar4);
			}
		}
		else if (dlc1::_0x341DE7ED1D2A1BFD(iVar5, -99064836, 0))
		{
			if (iVar2 == joaat("mp_m_freemode_01"))
			{
				return func_92(iParam0, iParam1);
			}
			else
			{
				return (8 + iVar4);
			}
		}
		else if (dlc1::_0x341DE7ED1D2A1BFD(iVar5, -697656159, 0))
		{
			if (iVar2 == joaat("mp_m_freemode_01"))
			{
				return func_92(iParam0, iParam1) + 15;
			}
		}
		else if (dlc1::_0x341DE7ED1D2A1BFD(iVar5, -398213037, 0))
		{
			if (iVar2 == joaat("mp_m_freemode_01"))
			{
				return func_92(iParam0, iParam1) + 15;
			}
		}
		else if (dlc1::_0x341DE7ED1D2A1BFD(iVar5, 1380605304, 0))
		{
			if (iVar2 == joaat("mp_m_freemode_01"))
			{
			}
			else
			{
				return func_92(iParam0, iParam1);
			}
		}
		else if (dlc1::_0x341DE7ED1D2A1BFD(iVar5, -306768813, 0))
		{
			if (iVar2 == joaat("mp_m_freemode_01"))
			{
			}
			else
			{
				return func_92(iParam0, iParam1) + 15;
			}
		}
		else if (dlc1::_0x341DE7ED1D2A1BFD(iVar5, -58412562, 0))
		{
			if (iVar2 == joaat("mp_m_freemode_01"))
			{
			}
			else
			{
				return func_92(iParam0, iParam1) + 15;
			}
		}
		else if (dlc1::_0x341DE7ED1D2A1BFD(iVar5, 1711219157, 0))
		{
			if (iVar2 == joaat("mp_m_freemode_01"))
			{
				return func_92(iParam0, iParam1) + 15;
			}
			else
			{
				return func_92(iParam0, iParam1) + 15;
			}
		}
		else if (dlc1::_0x341DE7ED1D2A1BFD(iVar5, 1466664110, 0))
		{
			if (iVar2 == joaat("mp_m_freemode_01"))
			{
				return func_92(iParam0, iParam1) + 15;
			}
			else
			{
				return func_92(iParam0, iParam1) + 15;
			}
		}
		else if (dlc1::_0x341DE7ED1D2A1BFD(iVar5, -1968575702, 0))
		{
			if (iVar2 == joaat("mp_m_freemode_01"))
			{
				return func_92(iParam0, iParam1) + 15;
			}
			else
			{
				return func_92(iParam0, iParam1) + 15;
			}
		}
		else if (dlc1::_0x341DE7ED1D2A1BFD(iVar5, 245429010, 0))
		{
			if (iVar2 == joaat("mp_m_freemode_01"))
			{
				return (48 + iVar4);
			}
			else
			{
				return func_92(iParam0, iParam1) + 15;
			}
		}
		else if (dlc1::_0x341DE7ED1D2A1BFD(iVar5, 15161247, 0))
		{
			if (iVar2 == joaat("mp_m_freemode_01"))
			{
				return (48 + iVar4);
			}
			else
			{
				return (48 + iVar4);
			}
		}
		else if (dlc1::_0x341DE7ED1D2A1BFD(iVar5, 1965569012, 0) && iVar2 == joaat("mp_f_freemode_01"))
		{
			if (iVar1)
			{
				return (8 + iVar4);
			}
			else
			{
				return (1 + iVar4);
			}
		}
		else if (dlc1::_0x341DE7ED1D2A1BFD(iVar5, 2026620439, 0) && iVar2 == joaat("mp_f_freemode_01"))
		{
			if (iVar1)
			{
				return (8 + iVar4);
			}
			else
			{
				return (2 + iVar4);
			}
		}
		else if (dlc1::_0x341DE7ED1D2A1BFD(iVar5, -1410897066, 0))
		{
			if (iVar2 == joaat("mp_m_freemode_01"))
			{
				return (3 + iVar4);
			}
			else
			{
				return (8 + iVar4);
			}
		}
		else if ((dlc1::_0x341DE7ED1D2A1BFD(iVar5, -2017999390, 0) || dlc1::_0x341DE7ED1D2A1BFD(iVar5, 320460654, 0)) || dlc1::_0x341DE7ED1D2A1BFD(iVar5, -826135203, 0))
		{
			return (7 + iVar4);
		}
		else
		{
			iVar0 = func_149(iVar5);
		}
	}
	if (iVar2 == joaat("mp_m_freemode_01"))
	{
		switch (iVar0)
		{
			case 0:
				if (iVar1)
				{
					return (2 + iVar4);
				}
				else
				{
					return (1 + iVar4);
				}
				break;
			
			case 1:
				if (iVar1)
				{
					return (2 + iVar4);
				}
				else
				{
					return (1 + iVar4);
				}
				break;
			
			case 2:
				if (iVar1)
				{
					return (7 + iVar4);
				}
				else
				{
					return (7 + iVar4);
				}
				break;
			
			case 3:
				if (iVar1)
				{
					return (3 + iVar4);
				}
				else
				{
					return (3 + iVar4);
				}
				break;
			
			case 4:
				if (iVar1)
				{
					return (3 + iVar4);
				}
				else
				{
					return (3 + iVar4);
				}
				break;
			
			case 5:
				if (iVar1)
				{
					return (2 + iVar4);
				}
				else
				{
					return (1 + iVar4);
				}
				break;
			
			case 6:
				if (iVar1)
				{
					return (2 + iVar4);
				}
				else
				{
					return (2 + iVar4);
				}
				break;
			
			case 7:
				if (iVar1)
				{
					return (3 + iVar4);
				}
				else
				{
					return (3 + iVar4);
				}
				break;
			
			case 8:
				if (iVar1)
				{
					return (8 + iVar4);
				}
				else
				{
					return (1 + iVar4);
				}
				break;
			
			case 9:
				if (iVar1)
				{
					return (2 + iVar4);
				}
				else
				{
					return (1 + iVar4);
				}
				break;
			
			case 10:
				if (iVar1)
				{
					return (3 + iVar4);
				}
				else
				{
					return (3 + iVar4);
				}
				break;
			
			case 11:
				if (iVar1)
				{
					return (8 + iVar4);
				}
				else
				{
					return (2 + iVar4);
				}
				break;
			
			case 12:
				if (iVar1)
				{
					return (2 + iVar4);
				}
				else
				{
					return (1 + iVar4);
				}
				break;
			
			case 13:
				if (iVar1)
				{
					return (7 + iVar4);
				}
				else
				{
					return (2 + iVar4);
				}
				break;
			
			case 14:
				if (iVar1)
				{
					return (6 + iVar4);
				}
				else
				{
					return (6 + iVar4);
				}
				break;
			
			case 15:
				if (iVar1)
				{
					return (2 + iVar4);
				}
				else
				{
					return (5 + iVar4);
				}
				break;
		}
	}
	else
	{
		switch (iVar0)
		{
			case 0:
				if (iVar1)
				{
					return (2 + iVar4);
				}
				else
				{
					return (1 + iVar4);
				}
				break;
			
			case 1:
				if (iVar1)
				{
					return (7 + iVar4);
				}
				else
				{
					return (7 + iVar4);
				}
				break;
			
			case 2:
				if (iVar1)
				{
					return (4 + iVar4);
				}
				else
				{
					return (3 + iVar4);
				}
				break;
			
			case 3:
				if (iVar1)
				{
					return (6 + iVar4);
				}
				else
				{
					return (5 + iVar4);
				}
				break;
			
			case 4:
				if (iVar1)
				{
					return (2 + iVar4);
				}
				else
				{
					return (1 + iVar4);
				}
				break;
			
			case 5:
				if (iVar1)
				{
					return (2 + iVar4);
				}
				else
				{
					return (1 + iVar4);
				}
				break;
			
			case 6:
				if (iVar1)
				{
					return (7 + iVar4);
				}
				else
				{
					return (7 + iVar4);
				}
				break;
			
			case 7:
				if (iVar1)
				{
					return (7 + iVar4);
				}
				else
				{
					return (7 + iVar4);
				}
				break;
			
			case 8:
				if (iVar1)
				{
					return (7 + iVar4);
				}
				else
				{
					return (7 + iVar4);
				}
				break;
			
			case 9:
				return (2 + iVar4);
				break;
			
			case 10:
				if (iVar1)
				{
					return (7 + iVar4);
				}
				else
				{
					return (7 + iVar4);
				}
				break;
			
			case 11:
				if (iVar1)
				{
					return (2 + iVar4);
				}
				else
				{
					return (1 + iVar4);
				}
				break;
			
			case 12:
				if (iVar1)
				{
					return (2 + iVar4);
				}
				else
				{
					return (1 + iVar4);
				}
				break;
			
			case 13:
				if (iVar1)
				{
					return (2 + iVar4);
				}
				else
				{
					return (1 + iVar4);
				}
				break;
			
			case 14:
				if (iVar1)
				{
					return (8 + iVar4);
				}
				else
				{
					return (4 + iVar4);
				}
				break;
			
			case 15:
				if (iVar1)
				{
					return (2 + iVar4);
				}
				else
				{
					return (1 + iVar4);
				}
				break;
			}
	}
	return (1 + iVar4);
	return 0;
}

int func_90(int iParam0, int iParam1)//Position - 0x7F51
{
	int iVar0;
	
	iVar0 = -1;
	if (dlc1::_0x341DE7ED1D2A1BFD(iParam0, 140732128, iParam1))
	{
		iVar0 = 0;
	}
	else if (dlc1::_0x341DE7ED1D2A1BFD(iParam0, 1863955539, iParam1))
	{
		iVar0 = 1;
	}
	else if (dlc1::_0x341DE7ED1D2A1BFD(iParam0, 2106216756, iParam1))
	{
		iVar0 = 2;
	}
	else if (dlc1::_0x341DE7ED1D2A1BFD(iParam0, -761463976, iParam1))
	{
		iVar0 = 3;
	}
	else if (dlc1::_0x341DE7ED1D2A1BFD(iParam0, 1627756587, iParam1))
	{
		iVar0 = 4;
	}
	else if (dlc1::_0x341DE7ED1D2A1BFD(iParam0, 684992453, iParam1))
	{
		iVar0 = 5;
	}
	else if (dlc1::_0x341DE7ED1D2A1BFD(iParam0, 916636514, iParam1))
	{
		iVar0 = 6;
	}
	else if (dlc1::_0x341DE7ED1D2A1BFD(iParam0, -1939378450, iParam1))
	{
		iVar0 = 7;
	}
	else if (dlc1::_0x341DE7ED1D2A1BFD(iParam0, 441715397, iParam1))
	{
		iVar0 = 8;
	}
	else if (dlc1::_0x341DE7ED1D2A1BFD(iParam0, 264959411, iParam1))
	{
		iVar0 = 9;
	}
	else if (dlc1::_0x341DE7ED1D2A1BFD(iParam0, -1127835965, iParam1))
	{
		iVar0 = 10;
	}
	else if (dlc1::_0x341DE7ED1D2A1BFD(iParam0, -820724897, iParam1))
	{
		iVar0 = 11;
	}
	else if (dlc1::_0x341DE7ED1D2A1BFD(iParam0, 153792394, iParam1))
	{
		iVar0 = 12;
	}
	else if (dlc1::_0x341DE7ED1D2A1BFD(iParam0, -672871169, iParam1))
	{
		iVar0 = 13;
	}
	else if (dlc1::_0x341DE7ED1D2A1BFD(iParam0, 572416369, iParam1))
	{
		iVar0 = 14;
	}
	else if (dlc1::_0x341DE7ED1D2A1BFD(iParam0, -196114988, iParam1))
	{
		iVar0 = 15;
	}
	else if (dlc1::_0x341DE7ED1D2A1BFD(iParam0, 1322269404, iParam1))
	{
		iVar0 = 16;
	}
	else if (dlc1::_0x341DE7ED1D2A1BFD(iParam0, 548036233, iParam1))
	{
		iVar0 = 17;
	}
	return iVar0;
}

int func_91(int iParam0, int iParam1)//Position - 0x80F5
{
	int iVar0;
	
	iVar0 = -1;
	if (dlc1::_0x341DE7ED1D2A1BFD(iParam0, -870074461, iParam1))
	{
		iVar0 = 0;
	}
	else if (dlc1::_0x341DE7ED1D2A1BFD(iParam0, -1174924468, iParam1))
	{
		iVar0 = 1;
	}
	else if (dlc1::_0x341DE7ED1D2A1BFD(iParam0, -868698159, iParam1))
	{
		iVar0 = 2;
	}
	else if (dlc1::_0x341DE7ED1D2A1BFD(iParam0, -1177480446, iParam1))
	{
		iVar0 = 3;
	}
	else if (dlc1::_0x341DE7ED1D2A1BFD(iParam0, -1347486026, iParam1))
	{
		iVar0 = 4;
	}
	else if (dlc1::_0x341DE7ED1D2A1BFD(iParam0, -1655154167, iParam1))
	{
		iVar0 = 5;
	}
	else if (dlc1::_0x341DE7ED1D2A1BFD(iParam0, -2105858993, iParam1))
	{
		iVar0 = 6;
	}
	else if (dlc1::_0x341DE7ED1D2A1BFD(iParam0, 1893564692, iParam1))
	{
		iVar0 = 7;
	}
	else if (dlc1::_0x341DE7ED1D2A1BFD(iParam0, 1710451520, iParam1))
	{
		iVar0 = 8;
	}
	else if (dlc1::_0x341DE7ED1D2A1BFD(iParam0, 1416808511, iParam1))
	{
		iVar0 = 9;
	}
	else if (dlc1::_0x341DE7ED1D2A1BFD(iParam0, 1641506460, iParam1))
	{
		iVar0 = 10;
	}
	else if (dlc1::_0x341DE7ED1D2A1BFD(iParam0, 699233865, iParam1))
	{
		iVar0 = 11;
	}
	else if (dlc1::_0x341DE7ED1D2A1BFD(iParam0, 393400788, iParam1))
	{
		iVar0 = 12;
	}
	else if (dlc1::_0x341DE7ED1D2A1BFD(iParam0, 216120498, iParam1))
	{
		iVar0 = 13;
	}
	return iVar0;
}

int func_92(int iParam0, int iParam1)//Position - 0x8239
{
	if (iParam1 > 61)
	{
		return 61;
	}
	if (iParam1 > 51)
	{
		return 51;
	}
	if (iParam1 > 46)
	{
		return 51;
	}
	if (iParam1 > 26)
	{
		return 50;
	}
	if (iParam1 > 0)
	{
		return 49;
	}
	return 48;
}

int func_93(int iParam0, int iParam1, int iParam2)//Position - 0x828D
{
	int iVar0;
	int iVar1;
	var uVar2;
	var uVar3;
	int iVar4;
	int iVar5;
	int iVar6;
	int iVar7;
	var uVar8;
	var uVar25;
	int iVar35;
	var uVar36;
	int iVar46;
	int iVar47;
	var uVar48;
	var uVar49;
	int iVar50;
	struct<5> Var51;
	var uVar68;
	
	if (ped::is_ped_injured(iParam0))
	{
		return 0;
	}
	iVar0 = entity::get_entity_model(iParam0);
	Global_69518[1 /*14*/] = { func_192(iVar0, iParam1, iParam2) };
	uVar2 = Global_2621444;
	uVar3 = Global_2621445;
	if (!gameplay::is_bit_set(Global_69518[1 /*14*/].f_6, 0))
	{
		return 0;
	}
	if (iParam1 == 12)
	{
		uVar8 = { func_182(iVar0, iParam2) };
		iVar7 = 0;
		while (iVar7 < 7)
		{
			switch (iVar7)
			{
				case 0:
					iVar4 = 1;
					break;
				
				case 1:
					iVar4 = 4;
					break;
				
				case 2:
					iVar4 = 6;
					break;
				
				case 3:
					iVar4 = 7;
					break;
				
				case 4:
					iVar4 = 8;
					break;
				
				case 5:
					iVar4 = 11;
					break;
				
				case 6:
					iVar4 = 13;
					break;
			}
			if (uVar8[iVar4] != -99)
			{
				if (!func_93(iParam0, iVar4, uVar8[iVar4]))
				{
					Global_2621444 = uVar2;
					Global_2621445 = uVar3;
					return 0;
					if (iVar4 == 13)
					{
						uVar25 = { func_178(iVar0, uVar8[iVar4]) };
						iVar5 = 0;
						while (iVar5 <= 8)
						{
							if (!func_93(iParam0, 14, uVar25[iVar5]))
							{
								iVar6 = 0;
								while (iVar6 <= 19)
								{
									Global_69518[2 /*14*/] = { func_192(iVar0, 14, iVar6) };
									if (Global_69518[2 /*14*/].f_12 == iVar5)
									{
										if (func_93(iParam0, 14, iVar6))
										{
											if (!func_94(iVar0, iParam2, 14, iVar6, &uVar8, &(Global_69518[2 /*14*/])))
											{
												Global_2621444 = uVar2;
												Global_2621445 = uVar3;
												return 0;
											}
										}
									}
									iVar6++;
								}
							}
							iVar5++;
						}
					}
					else
					{
						iVar1 = func_159(iParam0, iVar4);
						Global_69518[2 /*14*/] = { func_192(iVar0, iVar4, iVar1) };
						if (!func_94(iVar0, iParam2, iVar4, iVar1, &uVar8, &(Global_69518[2 /*14*/])))
						{
							Global_2621444 = uVar2;
							Global_2621445 = uVar3;
							return 0;
						}
					}
				}
			}
			iVar7++;
		}
		if ((uVar8[10] != 0 && uVar8[10] != 1849449579) && uVar8.f_16)
		{
			if (func_359(1751, Global_69516, 0) != uVar8[10])
			{
				Global_2621444 = uVar2;
				Global_2621445 = uVar3;
				return 0;
			}
		}
		Global_2621444 = uVar2;
		Global_2621445 = uVar3;
		return 1;
	}
	else if (iParam1 == 13)
	{
		uVar36 = { func_178(iVar0, iParam2) };
		iVar35 = 0;
		while (iVar35 <= 8)
		{
			if (!func_93(iParam0, 14, uVar36[iVar35]))
			{
				return 0;
			}
			iVar35++;
		}
		return 1;
	}
	else if (iParam1 == 14)
	{
		if (ped::get_ped_prop_index(iParam0, Global_69518[1 /*14*/].f_12) == Global_69518[1 /*14*/].f_3 && (ped::get_ped_prop_texture_index(iParam0, Global_69518[1 /*14*/].f_12) == Global_69518[1 /*14*/].f_4 || Global_69518[1 /*14*/].f_3 == -1))
		{
			return 1;
		}
		if (((Global_69518[1 /*14*/].f_12 == 0 && gameplay::is_bit_set(Global_69518[1 /*14*/].f_6, 6)) && dlc1::_0x341DE7ED1D2A1BFD(Global_2621444, -1033433901, 1)) && unk_0xD40AAC51E8E4C663(Global_2621444) > 0)
		{
			iVar50 = unk_0xD40AAC51E8E4C663(Global_2621444);
			iVar46 = 0;
			while (iVar46 < iVar50)
			{
				unk_0xD81B7F27BC773E66(Global_2621444, iVar46, &iVar47, &uVar48, &uVar49);
				if (iVar47 != 0 && iVar47 != 1849449579)
				{
					dlc1::init_shop_ped_prop(&Var51);
					dlc1::_0x5D5CAFF661DDF6FC(iVar47, &Var51);
					if (Var51.f_3 == ped::get_ped_prop_index(iParam0, Global_69518[1 /*14*/].f_12) && Var51.f_4 == ped::get_ped_prop_texture_index(iParam0, Global_69518[1 /*14*/].f_12))
					{
						return 1;
					}
				}
				iVar46++;
			}
		}
	}
	else
	{
		if (Global_69518[1 /*14*/].f_3 == ped::get_ped_drawable_variation(iParam0, func_181(iParam1)) && Global_69518[1 /*14*/].f_4 == ped::get_ped_texture_variation(iParam0, func_181(iParam1)))
		{
			return 1;
		}
		if (iParam1 == 4)
		{
			if (func_83(iVar0, 11, func_159(iParam0, 11), -1))
			{
				if (func_81(iVar0, 4, iParam2, &uVar68))
				{
					return func_93(iParam0, 4, uVar68);
				}
			}
			else if (func_80(iVar0, 4, iParam2, &uVar68))
			{
				return func_93(iParam0, 4, uVar68);
			}
		}
	}
	return 0;
}

bool func_94(int iParam0, int iParam1, int iParam2, int iParam3, var uParam4, var uParam5)//Position - 0x86CE
{
	var uVar0;
	int iVar10;
	
	if ((*uParam4)[iParam2] == iParam3)
	{
		return true;
	}
	if (((*uParam4)[iParam2] == -99 && iParam2 != 14) && iParam2 != 13)
	{
		return true;
	}
	if (iParam2 == 13 || (iParam2 == 14 && (*uParam4)[13] == 31))
	{
		if ((((((((iParam3 == 0 || iParam3 == 1) || iParam3 == 2) || iParam3 == 3) || iParam3 == 4) || iParam3 == 5) || iParam3 == 6) || iParam3 == 7) || iParam3 == 8)
		{
			return true;
		}
	}
	if (iParam3 == -99 || uParam5->f_1 == -1)
	{
		return true;
	}
	if (iParam2 == 14)
	{
		uVar0 = { func_178(iParam0, (*uParam4)[13]) };
		iVar10 = 0;
		while (iVar10 <= 8)
		{
			if (uVar0[iVar10] == iParam3)
			{
				return true;
			}
			iVar10++;
		}
	}
	if (func_98(iParam0, iParam2, iParam3))
	{
		return true;
	}
	if (iParam0 == joaat("player_zero"))
	{
		if (func_97(iParam0, iParam2, iParam3, -1))
		{
			if ((((((iParam1 == 1 || iParam1 == 2) || iParam1 == 10) || iParam1 == 11) || iParam1 == 12) || iParam1 == 18) || iParam1 == 50)
			{
				return false;
			}
			return true;
		}
		else if (func_96(iParam0, iParam2, iParam3, -1))
		{
			if (((((((((iParam1 == 1 || iParam1 == 2) || iParam1 == 4) || iParam1 == 5) || iParam1 == 10) || iParam1 == 11) || iParam1 == 12) || iParam1 == 14) || iParam1 == 18) || iParam1 == 50)
			{
				return false;
			}
			if (iParam2 == 8)
			{
				if ((*uParam4)[8] != 0)
				{
					return false;
				}
			}
			else if (iParam2 == 9)
			{
				if ((*uParam4)[9] != 0)
				{
					return false;
				}
			}
			return true;
		}
		else if (func_95(iParam0, iParam2, iParam3, -1))
		{
			if (((((((((iParam1 == 1 || iParam1 == 2) || iParam1 == 4) || iParam1 == 5) || iParam1 == 10) || iParam1 == 11) || iParam1 == 12) || iParam1 == 14) || iParam1 == 18) || iParam1 == 50)
			{
				return false;
			}
			return true;
		}
	}
	else if (iParam0 == joaat("player_one"))
	{
		if (func_97(iParam0, iParam2, iParam3, -1))
		{
			if ((iParam1 == 3 || iParam1 == 5) || iParam1 == 7)
			{
				return false;
			}
			return true;
		}
		else if (func_96(iParam0, iParam2, iParam3, -1))
		{
			if ((((iParam1 == 3 || iParam1 == 5) || iParam1 == 7) || iParam1 == 8) || iParam1 == 21)
			{
				if (iParam2 == 8)
				{
					if (iParam3 == 9)
					{
						if (iParam1 == 8 || iParam1 == 21)
						{
							return true;
						}
					}
					else
					{
						return false;
					}
				}
				else
				{
					return false;
				}
			}
			if (iParam2 == 8)
			{
				if ((*uParam4)[8] != 26)
				{
					return false;
				}
			}
			else if (iParam2 == 9)
			{
				if ((*uParam4)[9] != 0)
				{
					return false;
				}
				if (((iParam1 == 43 || iParam1 == 44) || iParam1 == 45) || iParam1 == 46)
				{
					if (iParam3 >= 5 && iParam3 <= 10)
					{
						return false;
					}
				}
			}
			else if (iParam2 == 14)
			{
				if (((iParam1 == 43 || iParam1 == 44) || iParam1 == 45) || iParam1 == 46)
				{
					if (iParam3 >= 26 && iParam3 <= 39)
					{
						return false;
					}
				}
			}
			return true;
		}
		else if (func_95(iParam0, iParam2, iParam3, -1))
		{
			if (((((iParam1 == 3 || iParam1 == 3) || iParam1 == 5) || iParam1 == 7) || iParam1 == 8) || iParam1 == 21)
			{
				return false;
			}
			return true;
		}
		else if (iParam2 == 14)
		{
			if (iParam3 >= 159 && iParam3 <= 174)
			{
				return true;
			}
		}
	}
	else if (iParam0 == joaat("player_two"))
	{
		if (iParam1 == 2)
		{
			if (iParam2 == 14 && iParam3 == 0)
			{
				return true;
			}
		}
		if (func_97(iParam0, iParam2, iParam3, -1))
		{
			if (((((iParam1 == 1 || iParam1 == 2) || iParam1 == 6) || iParam1 == 8) || iParam1 == 45) || iParam1 == 12)
			{
				return false;
			}
			return true;
		}
		else if (func_96(iParam0, iParam2, iParam3, -1))
		{
			if (((((((iParam1 == 1 || iParam1 == 2) || iParam1 == 3) || iParam1 == 6) || iParam1 == 8) || iParam1 == 11) || iParam1 == 45) || iParam1 == 12)
			{
				return false;
			}
			if (iParam2 == 8)
			{
				if ((*uParam4)[8] != 15)
				{
					return false;
				}
			}
			else if (iParam2 == 9)
			{
				if ((*uParam4)[9] != 0)
				{
					return false;
				}
			}
			return true;
		}
		else if (func_95(iParam0, iParam2, iParam3, -1))
		{
			if ((((((iParam1 == 1 || iParam1 == 2) || iParam1 == 3) || iParam1 == 6) || iParam1 == 8) || iParam1 == 11) || iParam1 == 12)
			{
				return false;
			}
			return true;
		}
	}
	return false;
}

int func_95(int iParam0, int iParam1, int iParam2, int iParam3)//Position - 0x8CD2
{
	switch (iParam0)
	{
		case joaat("player_zero"):
			switch (iParam1)
			{
				case 14:
					if (iParam2 == 16)
					{
						return true;
					}
					break;
			}
			break;
		
		case joaat("player_one"):
			switch (iParam1)
			{
				case 14:
					if ((iParam2 == 40 || (iParam2 >= 41 && iParam2 <= 56)) || (iParam2 >= 64 && iParam2 <= 79))
					{
						return true;
					}
					break;
			}
			break;
		
		case joaat("player_two"):
			switch (iParam1)
			{
				case 14:
					if ((iParam2 >= 17 && iParam2 <= 18) || (iParam2 >= 71 && iParam2 <= 86))
					{
						return true;
					}
					break;
			}
			break;
		
		case joaat("mp_m_freemode_01"):
			switch (iParam1)
			{
				case 14:
					if (iParam2 >= 18 && iParam2 <= 130)
					{
						return true;
					}
					else if (iParam2 >= 10 && iParam2 <= 17)
					{
						return true;
					}
					else if (iParam2 >= 327)
					{
						if (iParam3 == -1)
						{
							iParam3 = func_158(iParam0, iParam2, 14, 3);
						}
						return (dlc1::_0x341DE7ED1D2A1BFD(iParam3, -1757550583, 1) || dlc1::_0x341DE7ED1D2A1BFD(func_158(iParam0, iParam2, 14, 3), -1842686353, 1));
					}
					break;
				
				case 1:
					if (iParam2 >= 26)
					{
						if (iParam3 == -1)
						{
							iParam3 = func_158(iParam0, iParam2, 1, 3);
						}
						return (dlc1::_0x341DE7ED1D2A1BFD(iParam3, -1757550583, 0) || dlc1::_0x341DE7ED1D2A1BFD(func_158(iParam0, iParam2, 1, 3), -1842686353, 0));
					}
					break;
			}
			break;
		
		case joaat("mp_f_freemode_01"):
			switch (iParam1)
			{
				case 14:
					if (iParam2 >= 18 && iParam2 <= 130)
					{
						return true;
					}
					else if (iParam2 >= 10 && iParam2 <= 17)
					{
						return true;
					}
					else if (iParam2 >= 327)
					{
						if (iParam3 == -1)
						{
							iParam3 = func_158(iParam0, iParam2, 14, 4);
						}
						return (dlc1::_0x341DE7ED1D2A1BFD(iParam3, -1757550583, 1) || dlc1::_0x341DE7ED1D2A1BFD(func_158(iParam0, iParam2, 14, 4), -1842686353, 1));
					}
					break;
				
				case 1:
					if (iParam2 >= 26)
					{
						if (iParam3 == -1)
						{
							iParam3 = func_158(iParam0, iParam2, 1, 4);
						}
						return (dlc1::_0x341DE7ED1D2A1BFD(iParam3, -1757550583, 0) || dlc1::_0x341DE7ED1D2A1BFD(func_158(iParam0, iParam2, 1, 4), -1842686353, 0));
					}
					break;
			}
			break;
	}
	return false;
}

bool func_96(int iParam0, int iParam1, int iParam2, int iParam3)//Position - 0x8F4F
{
	if (iParam0 == joaat("player_zero"))
	{
		if (iParam1 == 6)
		{
			if (iParam2 == 10)
			{
				return true;
			}
		}
		else if (iParam1 == 8)
		{
			if ((iParam2 == 9 || iParam2 == 7) || iParam2 == 23)
			{
				return true;
			}
		}
		else if (iParam1 == 9)
		{
			if (iParam2 >= 9 && iParam2 <= 14)
			{
				return true;
			}
		}
		else if (iParam1 == 14)
		{
			if ((((((((((((((((iParam2 == 12 || iParam2 == 59) || iParam2 == 60) || iParam2 == 31) || iParam2 == 32) || iParam2 == 33) || iParam2 == 34) || iParam2 == 35) || iParam2 == 36) || iParam2 == 37) || iParam2 == 38) || iParam2 == 39) || iParam2 == 40) || iParam2 == 41) || (iParam2 >= 42 && iParam2 <= 44)) || iParam2 == 54) || iParam2 == 55)
			{
				return true;
			}
		}
	}
	else if (iParam0 == joaat("player_one"))
	{
		if (iParam1 == 2)
		{
			if (iParam2 == 20)
			{
				return true;
			}
		}
		else if (iParam1 == 8)
		{
			if ((iParam2 == 3 || iParam2 == 5) || iParam2 == 9)
			{
				return true;
			}
		}
		else if (iParam1 == 9)
		{
			if (iParam2 >= 5 && iParam2 <= 10)
			{
				return true;
			}
		}
		else if (iParam1 == 14)
		{
			if (((((((((((((iParam2 == 82 || iParam2 == 10) || iParam2 == 26) || iParam2 == 27) || iParam2 == 28) || iParam2 == 29) || iParam2 == 30) || iParam2 == 31) || iParam2 == 32) || iParam2 == 33) || iParam2 == 34) || iParam2 == 35) || iParam2 == 36) || (iParam2 >= 37 && iParam2 <= 39))
			{
				return true;
			}
		}
	}
	else if (iParam0 == joaat("player_two"))
	{
		if (iParam1 == 8)
		{
			if (iParam2 == 14 || iParam2 == 7)
			{
				return true;
			}
		}
		else if (iParam1 == 9)
		{
			if (((iParam2 == 8 || (iParam2 >= 9 && iParam2 <= 14)) || iParam2 == 15) || iParam2 == 16)
			{
				return true;
			}
		}
		else if (iParam1 == 14)
		{
			if (((((((((((((iParam2 == 88 || iParam2 == 12) || iParam2 == 47) || iParam2 == 48) || iParam2 == 49) || iParam2 == 50) || iParam2 == 51) || iParam2 == 52) || iParam2 == 53) || iParam2 == 54) || iParam2 == 55) || iParam2 == 56) || iParam2 == 57) || (iParam2 >= 58 && iParam2 <= 60))
			{
				return true;
			}
		}
	}
	else if (iParam0 == joaat("mp_m_freemode_01"))
	{
		if (iParam1 == 1)
		{
			if (iParam2 > 0)
			{
				if (iParam2 >= 26)
				{
					if (iParam3 == -1)
					{
						iParam3 = func_158(iParam0, iParam2, 1, 3);
					}
					if (dlc1::_0x341DE7ED1D2A1BFD(iParam3, -1757550583, 0))
					{
						return false;
					}
				}
				return true;
			}
		}
	}
	else if (iParam0 == joaat("mp_f_freemode_01"))
	{
		if (iParam1 == 1)
		{
			if (iParam2 > 0)
			{
				if (iParam2 >= 26)
				{
					if (iParam3 == -1)
					{
						iParam3 = func_158(iParam0, iParam2, 1, 4);
					}
					if (dlc1::_0x341DE7ED1D2A1BFD(iParam3, -1757550583, 0))
					{
						return false;
					}
				}
				return true;
			}
		}
	}
	return false;
}

int func_97(int iParam0, int iParam1, int iParam2, int iParam3)//Position - 0x9350
{
	switch (iParam0)
	{
		case joaat("player_zero"):
			if (iParam1 == 14)
			{
				if ((((((((iParam2 == 58 || iParam2 == 61) || (iParam2 >= 62 && iParam2 <= 69)) || (iParam2 >= 70 && iParam2 <= 79)) || (iParam2 >= 80 && iParam2 <= 89)) || iParam2 == 90) || (iParam2 >= 91 && iParam2 <= 102)) || (iParam2 >= 103 && iParam2 <= 110)) || iParam2 == 111)
				{
					return true;
				}
			}
			break;
		
		case joaat("player_one"):
			if (iParam1 == 14)
			{
				if (((((((((((iParam2 >= 83 && iParam2 <= 92) || iParam2 == 93) || iParam2 == 94) || (iParam2 >= 95 && iParam2 <= 101)) || (iParam2 >= 102 && iParam2 <= 111)) || (iParam2 >= 112 && iParam2 <= 121)) || (iParam2 >= 122 && iParam2 <= 131)) || (iParam2 >= 132 && iParam2 <= 139)) || (iParam2 >= 140 && iParam2 <= 149)) || (iParam2 >= 150 && iParam2 <= 156)) || iParam2 == 157)
				{
					return true;
				}
			}
			break;
		
		case joaat("player_two"):
			if (iParam1 == 14)
			{
				if (((((((((iParam2 == 89 || (iParam2 >= 90 && iParam2 <= 99)) || (iParam2 >= 100 && iParam2 <= 109)) || iParam2 == 111) || iParam2 == 112) || (iParam2 >= 113 && iParam2 <= 122)) || (iParam2 >= 123 && iParam2 <= 132)) || (iParam2 >= 133 && iParam2 <= 142)) || (iParam2 >= 143 && iParam2 <= 152)) || iParam2 == 153)
				{
					return true;
				}
			}
			break;
		
		case joaat("mp_m_freemode_01"):
			if (iParam1 == 14)
			{
				if (iParam2 >= 155 && iParam2 <= 318)
				{
					return true;
				}
				else if (iParam2 >= 327)
				{
					if (iParam3 == -1)
					{
						iParam3 = func_158(iParam0, iParam2, 14, 3);
					}
					return dlc1::_0x341DE7ED1D2A1BFD(iParam3, 97230661, 1);
				}
			}
			break;
		
		case joaat("mp_f_freemode_01"):
			if (iParam1 == 14)
			{
				if (iParam2 >= 155 && iParam2 <= 318)
				{
					return true;
				}
				else if (iParam2 >= 327)
				{
					if (iParam3 == -1)
					{
						iParam3 = func_158(iParam0, iParam2, 14, 4);
					}
					return dlc1::_0x341DE7ED1D2A1BFD(iParam3, 97230661, 1);
				}
			}
			break;
	}
	return false;
}

bool func_98(int iParam0, int iParam1, int iParam2)//Position - 0x9643
{
	switch (iParam0)
	{
		case joaat("player_zero"):
			switch (iParam1)
			{
				case 8:
					if (iParam2 == 15)
					{
						return true;
					}
					break;
				
				case 9:
					if (iParam2 == 6)
					{
						return true;
					}
					break;
			}
			break;
		
		case joaat("player_one"):
			switch (iParam1)
			{
				case 8:
					if (iParam2 == 1 || iParam2 == 10)
					{
						return true;
					}
					break;
			}
			break;
		
		case joaat("player_two"):
			switch (iParam1)
			{
				case 8:
					if (iParam2 == 4)
					{
						return true;
					}
					break;
			}
			break;
	}
	return false;
}

int func_99(int iParam0, int iParam1, int iParam2)//Position - 0x96DC
{
	int iVar0;
	int iVar1;
	int iVar2;
	int iVar3;
	var uVar4;
	int iVar5;
	int iVar6;
	int iVar7;
	int iVar8;
	int iVar9;
	var uVar10;
	int iVar11;
	
	if (iParam1 == 11)
	{
		if (iParam0 == joaat("mp_m_freemode_01"))
		{
			if (((((iParam2 >= 0 && iParam2 <= 15) || (iParam2 >= 16 && iParam2 <= 31)) || (iParam2 >= 80 && iParam2 <= 95)) || (iParam2 >= 140 && iParam2 <= 155)) || (iParam2 >= 188 && iParam2 <= 203))
			{
				return 1;
			}
			else if (iParam2 >= 32 && iParam2 <= 47)
			{
				return 6;
			}
			else if (((iParam2 >= 48 && iParam2 <= 63) || (iParam2 >= 64 && iParam2 <= 79)) || (iParam2 >= 108 && iParam2 <= 123))
			{
				return 11;
			}
			else if (iParam2 >= 96 && iParam2 <= 107)
			{
				return 41;
			}
			else if (iParam2 >= 156 && iParam2 <= 171)
			{
				return 36;
			}
			else if (iParam2 >= 172 && iParam2 <= 187)
			{
				return 31;
			}
			else if (iParam2 >= 204 && iParam2 <= 219)
			{
				return 16;
			}
			else if ((iParam2 >= 220 && iParam2 <= 235) || (iParam2 >= 124 && iParam2 <= 139))
			{
				return 26;
			}
			else if (iParam2 == 236)
			{
				return 21;
			}
			else if (iParam2 >= 237)
			{
				iVar0 = func_158(iParam0, iParam2, 11, 3);
				if (iVar0 != -1)
				{
					iVar1 = dlc1::_0xC17AD0E5752BECDA(iVar0);
					iVar2 = 0;
					while (iVar2 < iVar1)
					{
						dlc1::get_variant_component(iVar0, iVar2, &iVar3, &uVar4, &iVar5);
						if (iVar5 == 9)
						{
							if (iVar3 != 0 && iVar3 != 1849449579)
							{
								return func_75(iParam0, iVar3, 9, 3);
							}
							else
							{
								return uVar4;
							}
						}
						iVar2++;
					}
				}
				return -99;
			}
		}
		else if (iParam0 == joaat("mp_f_freemode_01"))
		{
			if ((((((iParam2 >= 0 && iParam2 <= 15) || (iParam2 >= 64 && iParam2 <= 79)) || (iParam2 >= 176 && iParam2 <= 191)) || (iParam2 >= 192 && iParam2 <= 207)) || (iParam2 >= 208 && iParam2 <= 223)) || (iParam2 >= 240 && iParam2 <= 255))
			{
				return 1;
			}
			else if (((iParam2 >= 16 && iParam2 <= 31) || (iParam2 >= 112 && iParam2 <= 127)) || (iParam2 >= 128 && iParam2 <= 143))
			{
				return 16;
			}
			else if (iParam2 >= 32 && iParam2 <= 47)
			{
				return 6;
			}
			else if (iParam2 >= 48 && iParam2 <= 63)
			{
				return 11;
			}
			else if ((iParam2 >= 96 && iParam2 <= 111) || (iParam2 >= 160 && iParam2 <= 175))
			{
				return 21;
			}
			else if (iParam2 >= 224 && iParam2 <= 239)
			{
				return 26;
			}
			else if (iParam2 >= 144 && iParam2 <= 159)
			{
				return 0;
			}
			else if (iParam2 >= 80 && iParam2 <= 95)
			{
				return 31;
			}
			else if (iParam2 >= 256)
			{
				iVar6 = func_158(iParam0, iParam2, 11, 4);
				if (iVar6 != -1)
				{
					iVar7 = dlc1::_0xC17AD0E5752BECDA(iVar6);
					iVar8 = 0;
					while (iVar8 < iVar7)
					{
						dlc1::get_variant_component(iVar6, iVar8, &iVar9, &uVar10, &iVar11);
						if (iVar11 == 9)
						{
							if (iVar9 != 0 && iVar9 != 1849449579)
							{
								return func_75(iParam0, iVar9, 9, 4);
							}
							else
							{
								return uVar10;
							}
						}
						iVar8++;
					}
				}
				return -99;
			}
		}
	}
	return -99;
}

bool func_100(int iParam0)//Position - 0x9ADD
{
	int iVar0;
	
	if (!ped::is_ped_injured(iParam0))
	{
		iVar0 = entity::get_entity_model(iParam0);
		if (iVar0 == joaat("mp_m_freemode_01"))
		{
			if (func_159(iParam0, 9) != 0)
			{
				return true;
			}
		}
		else if (iVar0 == joaat("mp_f_freemode_01"))
		{
			if (func_159(iParam0, 9) != 0)
			{
				return true;
			}
		}
	}
	return false;
}

void func_101(int iParam0, int iParam1)//Position - 0x9B2F
{
	struct<10> Var0;
	int iVar10;
	int iVar11;
	int iVar12;
	int iVar13;
	int iVar14;
	int iVar15;
	float fVar16;
	float fVar17;
	float fVar18;
	int iVar19;
	int iVar20;
	
	if (!ped::has_ped_head_blend_finished(iParam0))
	{
	}
	ped::_get_ped_head_blend_data(iParam0, &Var0);
	iVar10 = func_359(2089, iParam1, 0);
	iVar11 = func_359(2090, iParam1, 0);
	iVar12 = func_359(2091, iParam1, 0);
	iVar13 = func_359(2092, iParam1, 0);
	iVar14 = func_359(2093, iParam1, 0);
	iVar15 = func_359(2094, iParam1, 0);
	fVar16 = func_102(134, iParam1);
	fVar17 = func_102(135, iParam1);
	fVar18 = func_102(136, iParam1);
	iVar19 = func_68(160, iParam1);
	if (((((((((Var0 != iVar10 || Var0.f_1 != iVar11) || Var0.f_2 != iVar12) || Var0.f_3 != iVar13) || Var0.f_4 != iVar14) || Var0.f_5 != iVar15) || Var0.f_6 != fVar16) || Var0.f_7 != fVar17) || Var0.f_8 != fVar18) || Var0.f_9 != iVar19)
	{
		ped::set_ped_head_blend_data(iParam0, iVar10, iVar11, iVar12, iVar13, iVar14, iVar15, fVar16, fVar17, fVar18, iVar19);
		iVar20 = func_359(2095, iParam1, 0);
		if (iVar20 > 0)
		{
			func_238(iParam0, iParam1, 0);
		}
	}
}

float func_102(int iParam0, int iParam1)//Position - 0x9C6F
{
	int iVar0;
	var uVar1;
	
	iVar0 = Global_2521840[iParam0 /*3*/][func_69(iParam1)];
	if (stats::stat_get_float(iVar0, &uVar1, -1))
	{
		return uVar1;
	}
	return 0f;
}

bool func_103(int iParam0, int iParam1, int iParam2, int iParam3, int iParam4, int iParam5, int iParam6, int iParam7, int iParam8, int iParam9, int iParam10, int iParam11)//Position - 0x9C9B
{
	int iVar0;
	int iVar1;
	int iVar2;
	int iVar3;
	int iVar4;
	int iVar5;
	int iVar6;
	int iVar7;
	int iVar8;
	int iVar9;
	int iVar10;
	int iVar11;
	int iVar12;
	int iVar13;
	int iVar14;
	struct<7> Var15;
	int iVar32;
	
	if (iParam0 == joaat("mp_m_freemode_01"))
	{
		iVar1 = -1;
		iVar2 = -1;
		if (Global_2592857 == iParam1)
		{
			iVar2 = Global_2592856;
			iVar1 = Global_2592855;
		}
		else if (iParam1 >= 92)
		{
			iVar2 = func_158(iParam0, iParam1, 7, 3);
			iVar1 = func_149(iVar2);
			Global_2592857 = iParam1;
			Global_2592856 = iVar2;
			Global_2592855 = iVar1;
		}
		iVar3 = -1;
		iVar4 = -1;
		if (Global_2592860 == iParam3)
		{
			iVar4 = Global_2592859;
			iVar3 = Global_2592858;
		}
		else if (iParam3 >= 237)
		{
			iVar4 = func_158(iParam0, iParam3, 11, 3);
			iVar3 = func_149(iVar4);
			Global_2592860 = iParam3;
			Global_2592859 = iVar4;
			Global_2592858 = iVar3;
		}
		iVar5 = -1;
		iVar6 = -1;
		if (Global_2592863 == iParam4)
		{
			iVar6 = Global_2592862;
			iVar5 = Global_2592861;
		}
		else if (iParam4 >= 241)
		{
			iVar6 = func_158(iParam0, iParam4, 8, 3);
			iVar5 = func_149(iVar6);
			Global_2592863 = iParam4;
			Global_2592862 = iVar6;
			Global_2592861 = iVar5;
		}
		if (iParam3 != -99)
		{
			if (dlc1::_0x341DE7ED1D2A1BFD(iVar4, -1855618474, 0))
			{
				if (iParam1 != 0)
				{
					return false;
				}
			}
		}
		if (dlc1::_0x341DE7ED1D2A1BFD(iVar2, -120244486, 0))
		{
			if (iParam9 != -99)
			{
				iVar7 = -1;
				if (iParam9 >= 327)
				{
					iVar7 = func_158(iParam0, iParam9, 14, 3);
				}
				if (((iParam9 >= 27 && iParam9 <= 34) || (iParam9 >= 75 && iParam9 <= 82)) || (iParam9 >= 107 && iParam9 <= 114))
				{
					return false;
				}
				switch (iVar7)
				{
					case 1411612772:
					case 1399488226:
					case 1103092621:
					case 798340921:
					case 495850282:
					case -1972900644:
					case 2016102499:
					case 1719477511:
					case 288210625:
					case -882756821:
					case -1242625979:
					case -1358792084:
					case -1854813796:
					case -1257185072:
					case -75666008:
					case -451657514:
					case -1339992339:
					case -1987638855:
					case 1148780446:
					case 1379309694:
					case 491826867:
					case 1855607109:
					case -1962767847:
					case -1654116636:
					case -1485356286:
					case -1178212449:
					case -766633809:
					case 665568109:
					case -288304716:
					case 1772824957:
					case 1533381874:
					case -2012223930:
					case 2008237453:
					case -1304118613:
					case -1543430620:
					case -854101936:
					case -1061103709:
					case -616035151:
					case 1307111925:
					case 1759289928:
						return false;
						break;
					}
				}
		}
		if (iParam3 != -99)
		{
			if (iVar2 != -1 && dlc1::_0x341DE7ED1D2A1BFD(iVar2, -1473812293, 0))
			{
				if (dlc1::_0x341DE7ED1D2A1BFD(iVar2, 1396865968, 0))
				{
					if ((((((((((((((((((((((((((((((((((((((((dlc1::_0x341DE7ED1D2A1BFD(iVar4, -63750166, 0) || dlc1::_0x341DE7ED1D2A1BFD(iVar4, -870074461, 0)) || dlc1::_0x341DE7ED1D2A1BFD(iVar4, -868698159, 0)) || dlc1::_0x341DE7ED1D2A1BFD(iVar4, 1769225721, 0)) || dlc1::_0x341DE7ED1D2A1BFD(iVar4, -1834446747, 0)) || dlc1::_0x341DE7ED1D2A1BFD(iVar4, -1119232689, 0)) || dlc1::_0x341DE7ED1D2A1BFD(iVar4, -2102859770, 0)) || dlc1::_0x341DE7ED1D2A1BFD(iVar4, 1784133476, 0)) || dlc1::_0x341DE7ED1D2A1BFD(iVar4, 2099109084, 0)) || dlc1::_0x341DE7ED1D2A1BFD(iVar4, -1488441032, 0)) || dlc1::_0x341DE7ED1D2A1BFD(iVar4, -1719167561, 0)) || dlc1::_0x341DE7ED1D2A1BFD(iVar4, -1274099003, 0)) || dlc1::_0x341DE7ED1D2A1BFD(iVar4, -1410897066, 0)) || dlc1::_0x341DE7ED1D2A1BFD(iVar4, 320460654, 0)) || dlc1::_0x341DE7ED1D2A1BFD(iVar4, -826135203, 0)) || dlc1::_0x341DE7ED1D2A1BFD(iVar4, 1431529976, 0)) || dlc1::_0x341DE7ED1D2A1BFD(iVar4, 1723403459, 0)) || dlc1::_0x341DE7ED1D2A1BFD(iVar4, 2044466679, 0)) || dlc1::_0x341DE7ED1D2A1BFD(iVar4, -2020757158, 0)) || dlc1::_0x341DE7ED1D2A1BFD(iVar4, -1064262817, 0)) || dlc1::_0x341DE7ED1D2A1BFD(iVar4, -1419806467, 0)) || dlc1::_0x341DE7ED1D2A1BFD(iVar4, -1053842259, 0)) || dlc1::_0x341DE7ED1D2A1BFD(iVar4, -1358888880, 0)) || dlc1::_0x341DE7ED1D2A1BFD(iVar4, -441291342, 0)) || dlc1::_0x341DE7ED1D2A1BFD(iVar4, -785939537, 0)) || dlc1::_0x341DE7ED1D2A1BFD(iVar4, -1507532917, 0)) || dlc1::_0x341DE7ED1D2A1BFD(iVar4, -1446333198, 0)) || dlc1::_0x341DE7ED1D2A1BFD(iVar4, 492620493, 0)) || dlc1::_0x341DE7ED1D2A1BFD(iVar4, -416620954, 0)) || dlc1::_0x341DE7ED1D2A1BFD(iVar4, -102825006, 0)) || dlc1::_0x341DE7ED1D2A1BFD(iVar4, 137011325, 0)) || dlc1::_0x341DE7ED1D2A1BFD(iVar4, -641612092, 0)) || dlc1::_0x341DE7ED1D2A1BFD(iVar4, -1506370874, 0)) || dlc1::_0x341DE7ED1D2A1BFD(iVar4, -1786447517, 0)) || dlc1::_0x341DE7ED1D2A1BFD(iVar4, -1010805287, 0)) || dlc1::_0x341DE7ED1D2A1BFD(iVar4, -1325813684, 0)) || dlc1::_0x341DE7ED1D2A1BFD(iVar4, -549843760, 0)) || dlc1::_0x341DE7ED1D2A1BFD(iVar4, 1690933245, 0)) || dlc1::_0x341DE7ED1D2A1BFD(iVar4, 1360588936, 0)) || dlc1::_0x341DE7ED1D2A1BFD(iVar4, 2136821028, 0)) || dlc1::_0x341DE7ED1D2A1BFD(iVar4, 1830529185, 0))
					{
						return false;
					}
					else if (func_105(iParam0, iParam3))
					{
					}
					else
					{
						return false;
					}
				}
				else if (dlc1::_0x341DE7ED1D2A1BFD(iVar4, -63750166, 0))
				{
					return false;
				}
				else if (func_105(iParam0, iParam3))
				{
					return false;
				}
				else if (dlc1::_0x341DE7ED1D2A1BFD(iVar2, -120244486, 0))
				{
					if ((((((((((((iParam3 >= 188 && iParam3 <= 203) || (iParam3 >= 220 && iParam3 <= 235)) || iVar3 == 12) || iVar3 == 14) || dlc1::_0x341DE7ED1D2A1BFD(iVar4, -1127835965, 0)) || dlc1::_0x341DE7ED1D2A1BFD(iVar4, -1506370874, 0)) || dlc1::_0x341DE7ED1D2A1BFD(iVar4, -1786447517, 0)) || dlc1::_0x341DE7ED1D2A1BFD(iVar4, -1010805287, 0)) || dlc1::_0x341DE7ED1D2A1BFD(iVar4, -1325813684, 0)) || dlc1::_0x341DE7ED1D2A1BFD(iVar4, 1690933245, 0)) || dlc1::_0x341DE7ED1D2A1BFD(iVar4, 1360588936, 0)) || dlc1::_0x341DE7ED1D2A1BFD(iVar4, 2136821028, 0))
					{
						return false;
					}
				}
			}
			if (iVar2 != -1 && dlc1::_0x341DE7ED1D2A1BFD(iVar2, -353070590, 0))
			{
				if (((dlc1::_0x341DE7ED1D2A1BFD(iVar4, -870074461, 0) || dlc1::_0x341DE7ED1D2A1BFD(iVar4, -868698159, 0)) || dlc1::_0x341DE7ED1D2A1BFD(iVar4, 1769225721, 0)) || dlc1::_0x341DE7ED1D2A1BFD(iVar4, -1834446747, 0))
				{
				}
				else
				{
					return false;
				}
			}
		}
		if (iParam3 != -99)
		{
			if (iVar2 != -1 && dlc1::_0x341DE7ED1D2A1BFD(iVar2, 654065530, 0))
			{
				if (dlc1::_0x341DE7ED1D2A1BFD(iVar4, -7109286, 0) || dlc1::_0x341DE7ED1D2A1BFD(iVar4, -641612092, 0))
				{
					return true;
				}
				else
				{
					return false;
				}
			}
		}
		if (iVar2 != -1 && dlc1::_0x341DE7ED1D2A1BFD(iVar2, 596326873, 0))
		{
			if (iParam3 != -99)
			{
				if (dlc1::_0x341DE7ED1D2A1BFD(iVar2, -319568873, 0))
				{
					if ((iParam3 >= 96 && iParam3 <= 107) || iVar3 == 6)
					{
						return false;
					}
				}
				if (iParam3 == 236)
				{
					if (dlc1::_0x341DE7ED1D2A1BFD(iVar2, 525778571, 0))
					{
						return false;
					}
				}
				else if ((((((((((((((((((((((((((((((((((((((((((((((((((((((((iParam3 >= 172 && iParam3 <= 187) || (iParam3 >= 188 && iParam3 <= 203)) || (iParam3 >= 204 && iParam3 <= 219)) || (iParam3 >= 220 && iParam3 <= 235)) || iVar3 == 11) || iVar3 == 12) || iVar3 == 13) || iVar3 == 14) || dlc1::_0x341DE7ED1D2A1BFD(iVar4, 974680318, 0)) || dlc1::_0x341DE7ED1D2A1BFD(iVar4, 1625463492, 0)) || dlc1::_0x341DE7ED1D2A1BFD(iVar4, -713698407, 0)) || dlc1::_0x341DE7ED1D2A1BFD(iVar4, 1843965488, 0)) || dlc1::_0x341DE7ED1D2A1BFD(iVar4, -779835469, 0)) || dlc1::_0x341DE7ED1D2A1BFD(iVar4, -1086258388, 0)) || dlc1::_0x341DE7ED1D2A1BFD(iVar4, 1627756587, 0)) || dlc1::_0x341DE7ED1D2A1BFD(iVar4, 1021189127, 0)) || dlc1::_0x341DE7ED1D2A1BFD(iVar4, -1939378450, 0)) || dlc1::_0x341DE7ED1D2A1BFD(iVar4, 441715397, 0)) || dlc1::_0x341DE7ED1D2A1BFD(iVar4, 264959411, 0)) || dlc1::_0x341DE7ED1D2A1BFD(iVar4, -1127835965, 0)) || dlc1::_0x341DE7ED1D2A1BFD(iVar4, 153792394, 0)) || dlc1::_0x341DE7ED1D2A1BFD(iVar4, -672871169, 0)) || dlc1::_0x341DE7ED1D2A1BFD(iVar4, 572416369, 0)) || dlc1::_0x341DE7ED1D2A1BFD(iVar4, -196114988, 0)) || dlc1::_0x341DE7ED1D2A1BFD(iVar4, 1322269404, 0)) || dlc1::_0x341DE7ED1D2A1BFD(iVar4, 1769225721, 0)) || dlc1::_0x341DE7ED1D2A1BFD(iVar4, -1655154167, 0)) || dlc1::_0x341DE7ED1D2A1BFD(iVar4, -1607949555, 0)) || dlc1::_0x341DE7ED1D2A1BFD(iVar4, 2099109084, 0)) || dlc1::_0x341DE7ED1D2A1BFD(iVar4, -1488441032, 0)) || dlc1::_0x341DE7ED1D2A1BFD(iVar4, -1719167561, 0)) || dlc1::_0x341DE7ED1D2A1BFD(iVar4, 320460654, 0)) || dlc1::_0x341DE7ED1D2A1BFD(iVar4, -2017999390, 0)) || dlc1::_0x341DE7ED1D2A1BFD(iVar4, -1410897066, 0)) || dlc1::_0x341DE7ED1D2A1BFD(iVar4, -826135203, 0)) || dlc1::_0x341DE7ED1D2A1BFD(iVar4, 1431529976, 0)) || dlc1::_0x341DE7ED1D2A1BFD(iVar4, 1723403459, 0)) || dlc1::_0x341DE7ED1D2A1BFD(iVar4, 2044466679, 0)) || dlc1::_0x341DE7ED1D2A1BFD(iVar4, -1419806467, 0)) || dlc1::_0x341DE7ED1D2A1BFD(iVar4, -1053842259, 0)) || dlc1::_0x341DE7ED1D2A1BFD(iVar4, -1358888880, 0)) || dlc1::_0x341DE7ED1D2A1BFD(iVar4, -785939537, 0)) || dlc1::_0x341DE7ED1D2A1BFD(iVar4, -416620954, 0)) || dlc1::_0x341DE7ED1D2A1BFD(iVar4, -102825006, 0)) || dlc1::_0x341DE7ED1D2A1BFD(iVar4, 137011325, 0)) || dlc1::_0x341DE7ED1D2A1BFD(iVar4, -641612092, 0)) || dlc1::_0x341DE7ED1D2A1BFD(iVar4, -1351486939, 0)) || dlc1::_0x341DE7ED1D2A1BFD(iVar4, -491588875, 0)) || dlc1::_0x341DE7ED1D2A1BFD(iVar4, -1506370874, 0)) || dlc1::_0x341DE7ED1D2A1BFD(iVar4, -1786447517, 0)) || dlc1::_0x341DE7ED1D2A1BFD(iVar4, -1010805287, 0)) || dlc1::_0x341DE7ED1D2A1BFD(iVar4, -1325813684, 0)) || dlc1::_0x341DE7ED1D2A1BFD(iVar4, -828478571, 0)) || dlc1::_0x341DE7ED1D2A1BFD(iVar4, 1690933245, 0)) || dlc1::_0x341DE7ED1D2A1BFD(iVar4, 2136821028, 0)) || dlc1::_0x341DE7ED1D2A1BFD(iVar4, 2136821028, 0))
				{
					return false;
				}
				else if (!dlc1::_0x341DE7ED1D2A1BFD(iVar2, 525778571, 0))
				{
					return false;
				}
			}
			else if (iParam4 != -99)
			{
				if (((((((((((((((iParam4 >= 48 && iParam4 <= 63) || (iParam4 >= 64 && iParam4 <= 79)) || (iParam4 >= 96 && iParam4 <= 111)) || (iParam4 >= 112 && iParam4 <= 127)) || (iParam4 >= 192 && iParam4 <= 207)) || (iParam4 >= 208 && iParam4 <= 223)) || iVar5 == 3) || iVar5 == 4) || iVar5 == 6) || iVar5 == 7) || iVar5 == 12) || iVar5 == 13) || dlc1::_0x341DE7ED1D2A1BFD(iVar6, 651155766, 0)) || dlc1::_0x341DE7ED1D2A1BFD(iVar6, -1786447517, 0)) || dlc1::_0x341DE7ED1D2A1BFD(iVar6, -1010805287, 0))
				{
					return false;
				}
			}
		}
		if (iVar2 != -1 && dlc1::_0x341DE7ED1D2A1BFD(iVar2, -319568873, 0))
		{
			if (iParam8 != -99)
			{
				return false;
			}
		}
		if (iVar2 != -1 && dlc1::_0x341DE7ED1D2A1BFD(iVar2, -713698407, 0))
		{
			if (iParam9 >= 327 && dlc1::_0x341DE7ED1D2A1BFD(func_158(iParam0, iParam9, 14, 3), -713698407, 1))
			{
			}
			else if (iParam2 == 14 || (iParam2 == 1 && iParam10 != 0))
			{
				return false;
			}
		}
		else if ((iParam9 >= 327 && dlc1::_0x341DE7ED1D2A1BFD(func_158(iParam0, iParam9, 14, 3), -713698407, 1)) && iParam1 != 0)
		{
			return false;
		}
		if (iVar2 != -1 && dlc1::_0x341DE7ED1D2A1BFD(iVar2, -1119006951, 0))
		{
			if (iParam3 != -99)
			{
				if (((((((((((((((((((((((((((((((((((((((iParam3 >= 140 && iParam3 <= 155) || (iParam3 >= 188 && iParam3 <= 203)) || (iParam3 >= 204 && iParam3 <= 219)) || (iParam3 >= 220 && iParam3 <= 235)) || iVar3 == 9) || iVar3 == 12) || iVar3 == 13) || iVar3 == 14) || dlc1::_0x341DE7ED1D2A1BFD(iVar4, 248194463, 0)) || dlc1::_0x341DE7ED1D2A1BFD(iVar4, 572350888, 0)) || dlc1::_0x341DE7ED1D2A1BFD(iVar4, -1817355735, 0)) || dlc1::_0x341DE7ED1D2A1BFD(iVar4, -713698407, 0)) || dlc1::_0x341DE7ED1D2A1BFD(iVar4, 1843965488, 0)) || dlc1::_0x341DE7ED1D2A1BFD(iVar4, 140732128, 0)) || dlc1::_0x341DE7ED1D2A1BFD(iVar4, 1863955539, 0)) || dlc1::_0x341DE7ED1D2A1BFD(iVar4, 1627756587, 0)) || dlc1::_0x341DE7ED1D2A1BFD(iVar4, 441715397, 0)) || dlc1::_0x341DE7ED1D2A1BFD(iVar4, 153792394, 0)) || dlc1::_0x341DE7ED1D2A1BFD(iVar4, 572416369, 0)) || dlc1::_0x341DE7ED1D2A1BFD(iVar4, 2099109084, 0)) || dlc1::_0x341DE7ED1D2A1BFD(iVar4, -1488441032, 0)) || dlc1::_0x341DE7ED1D2A1BFD(iVar4, 1538937264, 0)) || dlc1::_0x341DE7ED1D2A1BFD(iVar4, 2044466679, 0)) || dlc1::_0x341DE7ED1D2A1BFD(iVar4, -1064262817, 0)) || dlc1::_0x341DE7ED1D2A1BFD(iVar4, -1053842259, 0)) || dlc1::_0x341DE7ED1D2A1BFD(iVar4, -1358888880, 0)) || dlc1::_0x341DE7ED1D2A1BFD(iVar4, -441291342, 0)) || dlc1::_0x341DE7ED1D2A1BFD(iVar4, -785939537, 0)) || dlc1::_0x341DE7ED1D2A1BFD(iVar4, -641612092, 0)) || dlc1::_0x341DE7ED1D2A1BFD(iVar4, -1506370874, 0)) || dlc1::_0x341DE7ED1D2A1BFD(iVar4, -1786447517, 0)) || dlc1::_0x341DE7ED1D2A1BFD(iVar4, -1010805287, 0)) || dlc1::_0x341DE7ED1D2A1BFD(iVar4, -1325813684, 0)) || dlc1::_0x341DE7ED1D2A1BFD(iVar4, -828478571, 0)) || dlc1::_0x341DE7ED1D2A1BFD(iVar4, 1690933245, 0)) || dlc1::_0x341DE7ED1D2A1BFD(iVar4, 1360588936, 0)) || dlc1::_0x341DE7ED1D2A1BFD(iVar4, 2136821028, 0)) || dlc1::_0x341DE7ED1D2A1BFD(iVar4, 602650322, 0)) || dlc1::_0x341DE7ED1D2A1BFD(iVar4, -99064836, 0))
				{
					return false;
				}
			}
			else if (iParam4 != -99)
			{
				if ((((((((((((((((((((((((iParam4 >= 48 && iParam4 <= 63) || (iParam4 >= 64 && iParam4 <= 79)) || (iParam4 >= 96 && iParam4 <= 111)) || (iParam4 >= 112 && iParam4 <= 127)) || (iParam4 >= 144 && iParam4 <= 159)) || (iParam4 >= 160 && iParam4 <= 175)) || (iParam4 >= 176 && iParam4 <= 191)) || (iParam4 >= 192 && iParam4 <= 207)) || (iParam4 >= 208 && iParam4 <= 223)) || iVar5 == 3) || iVar5 == 4) || iVar5 == 6) || iVar5 == 7) || iVar5 == 9) || iVar5 == 10) || iVar5 == 11) || iVar5 == 12) || iVar5 == 13) || dlc1::_0x341DE7ED1D2A1BFD(iVar6, -1778265882, 0)) || dlc1::_0x341DE7ED1D2A1BFD(iVar6, 1965569012, 0)) || dlc1::_0x341DE7ED1D2A1BFD(iVar6, 651155766, 0)) || dlc1::_0x341DE7ED1D2A1BFD(iVar6, -1914383230, 0)) || dlc1::_0x341DE7ED1D2A1BFD(iVar6, 1553766533, 0)) || dlc1::_0x341DE7ED1D2A1BFD(iVar6, 505220913, 0))
				{
					return false;
				}
			}
		}
		if ((iParam1 >= 1 && iParam1 <= 3) || iVar1 == 1)
		{
			if (iParam5 != -99)
			{
				if (iParam5 != 15)
				{
					return false;
				}
			}
			if (iParam3 != -99)
			{
				if (iParam3 != 236)
				{
					return false;
				}
			}
			if (iVar4 != -1 && dlc1::_0x341DE7ED1D2A1BFD(iVar4, 2066241403, 0))
			{
				return false;
			}
		}
		else if ((iParam1 >= 4 && iParam1 <= 6) || iVar1 == 2)
		{
			if (iParam3 != -99)
			{
				if ((((((((((iParam3 >= 0 && iParam3 <= 15) || (iParam3 >= 16 && iParam3 <= 31)) || (iParam3 >= 32 && iParam3 <= 47)) || (iParam3 >= 80 && iParam3 <= 95)) || (iParam3 >= 124 && iParam3 <= 139)) || iVar3 == 0) || iVar3 == 1) || iVar3 == 2) || iVar3 == 5) || iVar3 == 8)
				{
				}
				else
				{
					return false;
				}
			}
			else if (iParam4 != -99)
			{
				if ((((((((((((iParam4 >= 0 && iParam4 <= 15) || (iParam4 >= 16 && iParam4 <= 31)) || (iParam4 >= 32 && iParam4 <= 47)) || (iParam4 >= 80 && iParam4 <= 95)) || (iParam4 >= 128 && iParam4 <= 143)) || iParam4 == 240) || iVar5 == 0) || iVar5 == 1) || iVar5 == 2) || iVar5 == 5) || iVar5 == 8) || iVar5 == 15)
				{
				}
				else
				{
					return false;
				}
			}
			else if (iParam8 != -99)
			{
				if (!(iParam8 >= 1 && iParam8 <= 41))
				{
				}
				else
				{
					return false;
				}
			}
		}
		else if ((iParam1 >= 10 && iParam1 <= 25) || iVar1 == 4)
		{
			if (iParam3 != -99)
			{
				if ((((((((((((((((((iParam3 >= 0 && iParam3 <= 15) || (iParam3 >= 16 && iParam3 <= 31)) || (iParam3 >= 32 && iParam3 <= 47)) || (iParam3 >= 80 && iParam3 <= 95)) || (iParam3 >= 124 && iParam3 <= 139)) || (iParam3 >= 140 && iParam3 <= 155)) || (iParam3 >= 172 && iParam3 <= 187)) || (iParam3 >= 204 && iParam3 <= 219)) || iParam3 == 236) || iVar3 == 0) || iVar3 == 1) || iVar3 == 2) || iVar3 == 5) || iVar3 == 8) || iVar3 == 9) || iVar3 == 11) || iVar3 == 13) || iVar3 == 15)
				{
				}
				else
				{
					return false;
				}
			}
		}
		else if ((iParam1 >= 32 && iParam1 <= 37) || iVar1 == 6)
		{
			if (iParam3 != -99)
			{
				if ((((iParam3 >= 96 && iParam3 <= 107) || (iParam3 >= 156 && iParam3 <= 171)) || iVar3 == 6) || iVar3 == 10)
				{
				}
				else
				{
					return false;
				}
			}
		}
		else if (((((iParam1 >= 41 && iParam1 <= 56) || (iParam1 >= 73 && iParam1 <= 88)) || iVar1 == 10) || iVar1 == 12) || (iVar2 != -1 && dlc1::_0x341DE7ED1D2A1BFD(iVar2, -920534092, 0)))
		{
			if (iParam3 != -99)
			{
				if (((iParam3 >= 204 && iParam3 <= 219) || func_153(iParam0, iParam3)) || iVar3 == 13)
				{
					if (((dlc1::_0x341DE7ED1D2A1BFD(iVar4, -1446333198, 0) || dlc1::_0x341DE7ED1D2A1BFD(iVar4, 492620493, 0)) || dlc1::_0x341DE7ED1D2A1BFD(iVar4, -1351486939, 0)) || dlc1::_0x341DE7ED1D2A1BFD(iVar4, -7109286, 0))
					{
						return false;
					}
				}
				else
				{
					return false;
				}
			}
			else if (iParam4 != -99)
			{
				if ((((((iParam4 >= 160 && iParam4 <= 175) || (iParam4 >= 208 && iParam4 <= 223)) || iVar5 == 10) || iVar5 == 13) || (iVar6 != -1 && dlc1::_0x341DE7ED1D2A1BFD(iVar6, -1778265882, 0))) || (iVar6 != -1 && dlc1::_0x341DE7ED1D2A1BFD(iVar6, 505220913, 0)))
				{
				}
				else
				{
					iVar0 = func_159(iParam6, 11);
					if ((iVar0 >= 204 && iVar0 <= 219) || (iVar0 >= 237 && func_149(func_158(iParam0, iVar0, 11, 3)) == 13))
					{
						return true;
					}
					if (iParam7 == 1)
					{
						if ((iParam4 >= 176 && iParam4 <= 191) || iVar5 == 11)
						{
							return true;
						}
					}
					return false;
				}
			}
		}
		else if ((iParam1 >= 57 && iParam1 <= 72) || iVar1 == 11)
		{
			if (iParam3 != -99)
			{
				if (((((iParam3 >= 204 && iParam3 <= 219) || (iParam3 >= 172 && iParam3 <= 187)) || func_153(iParam0, iParam3)) || iVar3 == 13) || iVar3 == 11)
				{
					if ((dlc1::_0x341DE7ED1D2A1BFD(iVar4, -1446333198, 0) || dlc1::_0x341DE7ED1D2A1BFD(iVar4, 492620493, 0)) || dlc1::_0x341DE7ED1D2A1BFD(iVar4, -7109286, 0))
					{
						return false;
					}
				}
				else
				{
					return false;
				}
			}
			else if (iParam4 != -99)
			{
				if ((((((((((((((((((iParam4 >= 64 && iParam4 <= 79) || (iParam4 >= 96 && iParam4 <= 111)) || (iParam4 >= 160 && iParam4 <= 175)) || (iParam4 >= 208 && iParam4 <= 223)) || iVar5 == 4) || iVar5 == 6) || iVar5 == 10) || iVar5 == 13) || (iVar6 != -1 && dlc1::_0x341DE7ED1D2A1BFD(iVar6, -1778265882, 0))) || (iVar6 != -1 && dlc1::_0x341DE7ED1D2A1BFD(iVar6, 1965569012, 0))) || (iVar6 != -1 && dlc1::_0x341DE7ED1D2A1BFD(iVar6, 651155766, 0))) || (iVar6 != -1 && dlc1::_0x341DE7ED1D2A1BFD(iVar6, 505220913, 0))) || dlc1::_0x341DE7ED1D2A1BFD(iVar6, -893126917, 0)) || iVar6 == 2018316953) || iVar6 == 1771468076) || iVar6 == 1529567318) || iVar6 == 1299823859) || iVar6 == 1130047658)
				{
				}
				else
				{
					iVar0 = func_159(iParam6, 11);
					if ((iVar0 >= 204 && iVar0 <= 219) || (iVar0 >= 237 && func_149(func_158(iParam0, iVar0, 11, 3)) == 13))
					{
						return true;
					}
					if (iParam7 == 1)
					{
						if ((((((iParam4 >= 48 && iParam4 <= 63) || (iParam4 >= 112 && iParam4 <= 127)) || (iParam4 >= 176 && iParam4 <= 191)) || iVar5 == 3) || iVar5 == 7) || iVar5 == 11)
						{
							if (!dlc1::_0x341DE7ED1D2A1BFD(iVar6, -7109286, 0))
							{
								return true;
							}
						}
					}
					return false;
				}
			}
		}
		else if (iParam1 >= 92 && dlc1::_0x341DE7ED1D2A1BFD(iVar2, -1950939707, 0))
		{
			if (iParam3 != -99)
			{
				if ((((((((((((((((((((((iParam3 >= 172 && iParam3 <= 187) || iVar3 == 11) || iVar4 == -27166014) || iVar4 == -273228435) || iVar4 == -2118057713) || iVar4 == -1809078812) || iVar4 == -1522415600) || iVar4 == -1212584705) || iVar4 == -886664231) || iVar4 == -646500230) || iVar4 == -290891042) || iVar4 == 15400801) || iVar4 == -485413449) || iVar4 == -254359230) || dlc1::_0x341DE7ED1D2A1BFD(iVar4, 1769225721, 0)) || iVar4 == 1343601766) || iVar4 == 567992305) || iVar4 == -192707261) || iVar4 == 1156347903) || iVar4 == 1853344529) || iVar4 == 1597648022) || iVar4 == -1995669446)
				{
					if (!dlc1::_0x341DE7ED1D2A1BFD(iVar4, -7109286, 0))
					{
					}
					else
					{
						return false;
					}
				}
				else
				{
					return false;
				}
			}
			else if (iParam4 != -99)
			{
				if (((((((((((iParam4 >= 64 && iParam4 <= 79) || (iParam4 >= 96 && iParam4 <= 111)) || iVar5 == 4) || iVar5 == 6) || (iVar6 != -1 && dlc1::_0x341DE7ED1D2A1BFD(iVar6, 1965569012, 0))) || dlc1::_0x341DE7ED1D2A1BFD(iVar6, -893126917, 0)) || iVar6 == 2018316953) || iVar6 == 1771468076) || iVar6 == 1529567318) || iVar6 == 1299823859) || iVar6 == 1130047658)
				{
				}
				else
				{
					if (iParam7 == 1)
					{
						if ((((((iParam4 >= 48 && iParam4 <= 63) || (iParam4 >= 112 && iParam4 <= 127)) || (iParam4 >= 176 && iParam4 <= 191)) || iVar5 == 3) || iVar5 == 7) || iVar5 == 11)
						{
							if (!dlc1::_0x341DE7ED1D2A1BFD(iVar6, -7109286, 0))
							{
								return true;
							}
						}
					}
					return false;
				}
			}
		}
		else if (iParam1 >= 92 && dlc1::_0x341DE7ED1D2A1BFD(iVar2, -1371423804, 0))
		{
			if (iParam3 != -99)
			{
				if (iVar4 != -1 && dlc1::_0x341DE7ED1D2A1BFD(iVar4, 1625463492, 0))
				{
				}
				else
				{
					return false;
				}
			}
			else if (iParam4 != -99)
			{
				if (((iVar6 != -1 && dlc1::_0x341DE7ED1D2A1BFD(iVar6, 651155766, 0)) && dlc1::_0x341DE7ED1D2A1BFD(iVar2, -277681306, 0)) || ((iVar6 != -1 && dlc1::_0x341DE7ED1D2A1BFD(iVar6, 505220913, 0)) && !dlc1::_0x341DE7ED1D2A1BFD(iVar2, -277681306, 0)))
				{
				}
				else
				{
					return false;
				}
			}
		}
		else if (iParam1 >= 92 && dlc1::_0x341DE7ED1D2A1BFD(iVar2, -108328099, 0))
		{
			if (iParam4 != -99)
			{
				if (((((((((((((((((((((((((((((((((((((((((iParam4 >= 48 && iParam4 <= 63) || (iParam4 >= 112 && iParam4 <= 127)) || (iParam4 >= 176 && iParam4 <= 191)) || iVar6 == 2018316953) || iVar6 == 1771468076) || iVar6 == 1529567318) || iVar6 == 1299823859) || iVar6 == 1130047658) || iVar6 == 936913256) || iVar6 == -1891018679) || iVar6 == -1583940380) || iVar6 == -693410036) || iVar6 == -2129413154) || iVar6 == -1280171750) || iVar6 == -971192849) || iVar6 == 389965873) || iVar6 == -1451291468) || iVar6 == -50613332) || iVar6 == 318070129) || iVar6 == -1851794728) || iVar6 == 673515492) || iVar6 == 889168281) || iVar6 == 1270009599) || iVar6 == 1866208765) || iVar6 == 1546649325) || iVar6 == 1180816209) || iVar6 == -1305325922) || iVar6 == 242616108) || iVar6 == 1085565864) || iVar6 == -1968210019) || iVar6 == 2028002304) || iVar6 == 830393657) || iVar6 == -473747009) || iVar6 == 240453350) || iVar6 == 1083927410) || iVar6 == -374729298) || iVar6 == 399897093) || dlc1::_0x341DE7ED1D2A1BFD(iVar6, 684992453, 0)) || dlc1::_0x341DE7ED1D2A1BFD(iVar6, 1458930564, 0)) || dlc1::_0x341DE7ED1D2A1BFD(iVar6, 2048281121, 0)) || dlc1::_0x341DE7ED1D2A1BFD(iVar6, 19149565, 0))
				{
					if (!dlc1::_0x341DE7ED1D2A1BFD(iVar6, -7109286, 0))
					{
					}
					else
					{
						return false;
					}
				}
				else
				{
					if (iParam7 == 1)
					{
						if ((((((iParam4 >= 64 && iParam4 <= 79) || (iParam4 >= 96 && iParam4 <= 111)) || (iParam4 >= 160 && iParam4 <= 175)) || iVar5 == 4) || iVar5 == 6) || iVar5 == 10)
						{
							if (!dlc1::_0x341DE7ED1D2A1BFD(iVar6, -7109286, 0))
							{
								return true;
							}
						}
					}
					return false;
				}
			}
		}
		else if (iParam1 >= 92 && dlc1::_0x341DE7ED1D2A1BFD(iVar2, -378906828, 0))
		{
			if (iParam3 != -99)
			{
				if (((((iParam3 >= 64 && iParam3 <= 79) || (iParam3 >= 156 && iParam3 <= 171)) || iVar3 == 4) || iVar3 == 10) || dlc1::_0x341DE7ED1D2A1BFD(iVar4, 470686834, 0))
				{
				}
				else
				{
					return false;
				}
			}
			else if (iParam4 != -99)
			{
				if (((((((((((((((((((((((((((iParam4 >= 176 && iParam4 <= 191) || iVar6 == 2018316953) || iVar6 == 1771468076) || iVar6 == 1529567318) || iVar6 == 1299823859) || iVar6 == 1130047658) || iVar6 == 936913256) || iVar6 == -1891018679) || iVar6 == -1583940380) || iVar6 == -693410036) || iVar6 == -2129413154) || iVar6 == -1280171750) || iVar6 == -971192849) || iVar6 == 389965873) || iVar6 == -1451291468) || iVar6 == -50613332) || iVar6 == 318070129) || iVar6 == -1851794728) || iVar6 == 673515492) || iVar6 == 889168281) || iVar6 == 1270009599) || iVar6 == 1866208765) || iVar6 == 1546649325) || iVar6 == 1180816209) || iVar6 == -374729298) || iVar6 == 399897093) || dlc1::_0x341DE7ED1D2A1BFD(iVar6, 684992453, 0))
				{
					if (!dlc1::_0x341DE7ED1D2A1BFD(iVar6, -7109286, 0))
					{
					}
					else
					{
						return false;
					}
				}
				else
				{
					if (iParam7 == 1)
					{
						if ((iParam4 >= 160 && iParam4 <= 175) || iVar5 == 10)
						{
							if (!dlc1::_0x341DE7ED1D2A1BFD(iVar6, -7109286, 0))
							{
								return true;
							}
						}
					}
					return false;
				}
			}
		}
		else if (iParam1 >= 92 && dlc1::_0x341DE7ED1D2A1BFD(iVar2, -695703461, 0))
		{
			if (iParam3 != -99)
			{
				if (((((iParam3 >= 64 && iParam3 <= 79) || (iParam3 >= 188 && iParam3 <= 203)) || iVar3 == 12) || iVar3 == 4) || dlc1::_0x341DE7ED1D2A1BFD(iVar4, 470686834, 0))
				{
				}
				else
				{
					return false;
				}
			}
			else if (iParam4 != -99)
			{
				if (((iParam4 >= 192 && iParam4 <= 207) || func_104(iVar6)) || (iVar6 != -1 && dlc1::_0x341DE7ED1D2A1BFD(iVar6, 310957510, 0)))
				{
				}
				else
				{
					return false;
				}
			}
		}
		else if (iParam1 >= 92 && dlc1::_0x341DE7ED1D2A1BFD(iVar2, -1473812293, 0))
		{
			if (iParam3 != -99)
			{
				if ((iParam3 >= 172 && iParam3 <= 187) || iVar3 == 11)
				{
					return false;
				}
				else if ((iVar4 != -1 && dlc1::_0x341DE7ED1D2A1BFD(iVar4, 1627756587, 0)) || (iVar4 != -1 && dlc1::_0x341DE7ED1D2A1BFD(iVar4, 1322269404, 0)))
				{
					return false;
				}
				else if (iVar4 != -1 && dlc1::_0x341DE7ED1D2A1BFD(iVar4, -713698407, 0))
				{
					return false;
				}
			}
			if (iParam8 != -99)
			{
				if (!(iParam8 >= 1 && iParam8 <= 41))
				{
				}
				else
				{
					return false;
				}
			}
		}
	}
	else if (iParam0 == joaat("mp_f_freemode_01"))
	{
		iVar8 = -1;
		iVar9 = -1;
		if (iParam1 >= 55)
		{
			iVar9 = func_158(iParam0, iParam1, 7, 4);
			iVar8 = func_149(iVar9);
		}
		iVar10 = -1;
		iVar11 = -1;
		if (iParam3 >= 256)
		{
			iVar11 = func_158(iParam0, iParam3, 11, 4);
			iVar10 = func_149(iVar11);
		}
		iVar12 = -1;
		if (iParam9 >= 327)
		{
			iVar12 = func_158(iParam0, iParam9, 14, 4);
		}
		iVar13 = -1;
		iVar14 = -1;
		if (iParam4 >= 136)
		{
			iVar13 = func_158(iParam0, iParam4, 8, 4);
			iVar14 = func_149(iVar13);
		}
		if (iParam3 != -99)
		{
			if (dlc1::_0x341DE7ED1D2A1BFD(iVar11, -1855618474, 0))
			{
				if (iParam1 != 0)
				{
					return false;
				}
			}
		}
		if ((iVar9 == 281786684 || iVar9 == 653911448) || iVar9 == -1519558015)
		{
			if (iParam9 != -99)
			{
				switch (iVar12)
				{
					case 1446628467:
					case -1938048778:
					case 2041418586:
					case -1342898200:
					case 2026483804:
					case -1977527541:
					case -1670449242:
					case -1385031204:
					case -1088111295:
					case -1530918836:
					case -1221415631:
					case -629869643:
					case 530255864:
					case 38181873:
					case 319110510:
					case 482562282:
					case -1178170642:
					case -880726429:
					case -699776011:
					case -401873032:
					case -700496933:
					case -404429018:
					case -2134238990:
					case -2136376254:
					case 1861212367:
					case -789144321:
					case -223092615:
					case 763352592:
					case -549897852:
					case -1976889495:
					case -1410575637:
					case -428980242:
					case -1731482454:
					case -1390357480:
						return false;
						break;
					}
				}
		}
		if (iParam3 != -99)
		{
			if (iVar9 != -1 && dlc1::_0x341DE7ED1D2A1BFD(iVar9, -1473812293, 0))
			{
				if (dlc1::_0x341DE7ED1D2A1BFD(iVar9, 1396865968, 0))
				{
					if (((((((((((((((dlc1::_0x341DE7ED1D2A1BFD(iVar11, -63750166, 0) || dlc1::_0x341DE7ED1D2A1BFD(iVar11, -1410897066, 0)) || dlc1::_0x341DE7ED1D2A1BFD(iVar11, 320460654, 0)) || dlc1::_0x341DE7ED1D2A1BFD(iVar11, -826135203, 0)) || dlc1::_0x341DE7ED1D2A1BFD(iVar11, -747583185, 0)) || dlc1::_0x341DE7ED1D2A1BFD(iVar11, -416620954, 0)) || dlc1::_0x341DE7ED1D2A1BFD(iVar11, -733792105, 0)) || dlc1::_0x341DE7ED1D2A1BFD(iVar11, -641612092, 0)) || dlc1::_0x341DE7ED1D2A1BFD(iVar11, -1507532917, 0)) || dlc1::_0x341DE7ED1D2A1BFD(iVar11, 1360588936, 0)) || dlc1::_0x341DE7ED1D2A1BFD(iVar11, -549843760, 0)) || dlc1::_0x341DE7ED1D2A1BFD(iVar11, 1830529185, 0)) || dlc1::_0x341DE7ED1D2A1BFD(iVar11, -1506370874, 0)) || dlc1::_0x341DE7ED1D2A1BFD(iVar11, -1786447517, 0)) || dlc1::_0x341DE7ED1D2A1BFD(iVar11, -1010805287, 0)) || dlc1::_0x341DE7ED1D2A1BFD(iVar11, 2136821028, 0))
					{
						return false;
					}
					else if (func_105(iParam0, iParam3))
					{
					}
					else
					{
						return false;
					}
				}
				else if (func_105(iParam0, iParam3))
				{
					return false;
				}
			}
			if (iVar9 != -1 && dlc1::_0x341DE7ED1D2A1BFD(iVar9, -353070590, 0))
			{
				if ((((dlc1::_0x341DE7ED1D2A1BFD(iVar11, -870074461, 0) || dlc1::_0x341DE7ED1D2A1BFD(iVar11, -1174924468, 0)) || dlc1::_0x341DE7ED1D2A1BFD(iVar11, -868698159, 0)) || dlc1::_0x341DE7ED1D2A1BFD(iVar11, 1769225721, 0)) || dlc1::_0x341DE7ED1D2A1BFD(iVar11, -1834446747, 0))
				{
				}
				else
				{
					return false;
				}
			}
		}
		if (iVar9 != -1 && dlc1::_0x341DE7ED1D2A1BFD(iVar9, -713698407, 0))
		{
			if (iParam9 >= 327 && dlc1::_0x341DE7ED1D2A1BFD(func_158(iParam0, iParam9, 14, 4), -713698407, 1))
			{
			}
			else if (iParam2 == 14 || (iParam2 == 1 && iParam10 != 0))
			{
				return false;
			}
		}
		else if ((iParam9 >= 327 && dlc1::_0x341DE7ED1D2A1BFD(func_158(iParam0, iParam9, 14, 4), -713698407, 1)) && iParam1 != 0)
		{
			return false;
		}
		if (iVar9 != -1 && (dlc1::_0x341DE7ED1D2A1BFD(iVar9, -920534092, 0) || dlc1::_0x341DE7ED1D2A1BFD(iVar9, 1537081084, 0)))
		{
			if (iParam2 == 11)
			{
				if ((((((((((((dlc1::_0x341DE7ED1D2A1BFD(iVar11, 684992453, 0) || dlc1::_0x341DE7ED1D2A1BFD(iVar11, 916636514, 0)) || dlc1::_0x341DE7ED1D2A1BFD(iVar11, -1939378450, 0)) || dlc1::_0x341DE7ED1D2A1BFD(iVar11, -820724897, 0)) || dlc1::_0x341DE7ED1D2A1BFD(iVar11, 153792394, 0)) || dlc1::_0x341DE7ED1D2A1BFD(iVar11, -872449705, 0)) || dlc1::_0x341DE7ED1D2A1BFD(iVar11, 1714969731, 0)) || dlc1::_0x341DE7ED1D2A1BFD(iVar11, 1055526375, 0)) || dlc1::_0x341DE7ED1D2A1BFD(iVar11, 947651647, 0)) || dlc1::_0x341DE7ED1D2A1BFD(iVar11, -549843760, 0)) || dlc1::_0x341DE7ED1D2A1BFD(iVar11, 1830529185, 0)) || (iParam3 >= 112 && iParam3 <= 127)) || iVar10 == 7)
				{
				}
				else if ((dlc1::_0x341DE7ED1D2A1BFD(iVar11, 700658917, 0) || dlc1::_0x341DE7ED1D2A1BFD(iVar11, 745826556, 0)) || dlc1::_0x341DE7ED1D2A1BFD(iVar11, 144417099, 0))
				{
					if (dlc1::_0x341DE7ED1D2A1BFD(iVar9, 1537081084, 0))
					{
					}
					else
					{
						return false;
					}
				}
				else
				{
					return false;
				}
			}
			else if (iParam2 == 8)
			{
				if (dlc1::_0x341DE7ED1D2A1BFD(iVar13, 1553766533, 0) || dlc1::_0x341DE7ED1D2A1BFD(iVar13, -1914383230, 0))
				{
					if (dlc1::_0x341DE7ED1D2A1BFD(iVar9, -920534092, 0))
					{
						if (dlc1::_0x341DE7ED1D2A1BFD(iVar13, 441715397, 0) || dlc1::_0x341DE7ED1D2A1BFD(iVar13, 264959411, 0))
						{
							if (dlc1::_0x341DE7ED1D2A1BFD(iVar9, 1828206051, 0))
							{
							}
							else
							{
								return false;
							}
						}
						else if (dlc1::_0x341DE7ED1D2A1BFD(iVar9, 1828206051, 0))
						{
							return false;
						}
					}
				}
				else
				{
					return false;
				}
			}
		}
		if (iParam9 != -99)
		{
			if (iVar12 != -1 && dlc1::_0x341DE7ED1D2A1BFD(iVar12, 1406402954, 1))
			{
				if ((((iParam1 >= 1 && iParam1 <= 12) || iVar8 == 1) || iVar8 == 2) || (iVar9 != -1 && dlc1::_0x341DE7ED1D2A1BFD(iVar9, 1406402954, 0)))
				{
					return false;
				}
			}
		}
		if (iVar9 != -1 && dlc1::_0x341DE7ED1D2A1BFD(iVar9, 596326873, 0))
		{
			if (iParam3 != -99)
			{
				if (((((((dlc1::_0x341DE7ED1D2A1BFD(iVar11, -1358888880, 0) || dlc1::_0x341DE7ED1D2A1BFD(iVar11, -102825006, 0)) || dlc1::_0x341DE7ED1D2A1BFD(iVar11, -733792105, 0)) || dlc1::_0x341DE7ED1D2A1BFD(iVar11, -641612092, 0)) || dlc1::_0x341DE7ED1D2A1BFD(iVar11, -1507532917, 0)) || dlc1::_0x341DE7ED1D2A1BFD(iVar11, -828478571, 0)) || dlc1::_0x341DE7ED1D2A1BFD(iVar11, 1360588936, 0)) || dlc1::_0x341DE7ED1D2A1BFD(iVar11, 974680318, 0))
				{
					return false;
				}
				else if (func_153(iParam0, iParam3))
				{
				}
				else if (((((((((((((((((((iParam3 >= 32 && iParam3 <= 47) || (iParam3 >= 176 && iParam3 <= 191)) || iVar10 == 2) || iVar10 == 11) || dlc1::_0x341DE7ED1D2A1BFD(iVar11, 2026620439, 0)) || dlc1::_0x341DE7ED1D2A1BFD(iVar11, -761463976, 0)) || dlc1::_0x341DE7ED1D2A1BFD(iVar11, -1347486026, 0)) || dlc1::_0x341DE7ED1D2A1BFD(iVar11, -939525357, 0)) || dlc1::_0x341DE7ED1D2A1BFD(iVar11, -1119232689, 0)) || dlc1::_0x341DE7ED1D2A1BFD(iVar11, -2102859770, 0)) || dlc1::_0x341DE7ED1D2A1BFD(iVar11, 1784133476, 0)) || dlc1::_0x341DE7ED1D2A1BFD(iVar11, -1488441032, 0)) || dlc1::_0x341DE7ED1D2A1BFD(iVar11, 2044466679, 0)) || dlc1::_0x341DE7ED1D2A1BFD(iVar11, -2020757158, 0)) || dlc1::_0x341DE7ED1D2A1BFD(iVar11, -430330349, 0)) || dlc1::_0x341DE7ED1D2A1BFD(iVar11, -1351486939, 0)) || dlc1::_0x341DE7ED1D2A1BFD(iVar11, 2030343924, 0)) || iVar11 == 998321559) || iVar11 == 619380843)
				{
					if (!dlc1::_0x341DE7ED1D2A1BFD(iVar9, 525778571, 0))
					{
						return false;
					}
				}
				else if (((((((((((((((((((((((((((((((((((((((((((((((iParam3 >= 48 && iParam3 <= 63) || (iParam3 >= 144 && iParam3 <= 159)) || (iParam3 >= 224 && iParam3 <= 239)) || iVar10 == 3) || iVar10 == 9) || iVar10 == 14) || dlc1::_0x341DE7ED1D2A1BFD(iVar11, -530089825, 0)) || dlc1::_0x341DE7ED1D2A1BFD(iVar11, 1965569012, 0)) || dlc1::_0x341DE7ED1D2A1BFD(iVar11, -1200513218, 0)) || dlc1::_0x341DE7ED1D2A1BFD(iVar11, -713698407, 0)) || dlc1::_0x341DE7ED1D2A1BFD(iVar11, 1843965488, 0)) || dlc1::_0x341DE7ED1D2A1BFD(iVar11, -55104292, 0)) || dlc1::_0x341DE7ED1D2A1BFD(iVar11, -779835469, 0)) || dlc1::_0x341DE7ED1D2A1BFD(iVar11, -1086258388, 0)) || dlc1::_0x341DE7ED1D2A1BFD(iVar11, 140732128, 0)) || dlc1::_0x341DE7ED1D2A1BFD(iVar11, 2106216756, 0)) || dlc1::_0x341DE7ED1D2A1BFD(iVar11, 1627756587, 0)) || dlc1::_0x341DE7ED1D2A1BFD(iVar11, 441715397, 0)) || dlc1::_0x341DE7ED1D2A1BFD(iVar11, 264959411, 0)) || dlc1::_0x341DE7ED1D2A1BFD(iVar11, -1127835965, 0)) || dlc1::_0x341DE7ED1D2A1BFD(iVar11, -672871169, 0)) || dlc1::_0x341DE7ED1D2A1BFD(iVar11, 572416369, 0)) || dlc1::_0x341DE7ED1D2A1BFD(iVar11, -196114988, 0)) || dlc1::_0x341DE7ED1D2A1BFD(iVar11, -1607949555, 0)) || dlc1::_0x341DE7ED1D2A1BFD(iVar11, 1976716889, 0)) || dlc1::_0x341DE7ED1D2A1BFD(iVar11, 2099109084, 0)) || dlc1::_0x341DE7ED1D2A1BFD(iVar11, -1488441032, 0)) || dlc1::_0x341DE7ED1D2A1BFD(iVar11, 320460654, 0)) || dlc1::_0x341DE7ED1D2A1BFD(iVar11, -2017999390, 0)) || dlc1::_0x341DE7ED1D2A1BFD(iVar11, -1410897066, 0)) || dlc1::_0x341DE7ED1D2A1BFD(iVar11, -826135203, 0)) || dlc1::_0x341DE7ED1D2A1BFD(iVar11, -1053842259, 0)) || dlc1::_0x341DE7ED1D2A1BFD(iVar11, -1358888880, 0)) || dlc1::_0x341DE7ED1D2A1BFD(iVar11, -441291342, 0)) || dlc1::_0x341DE7ED1D2A1BFD(iVar11, -747583185, 0)) || dlc1::_0x341DE7ED1D2A1BFD(iVar11, 1407863332, 0)) || dlc1::_0x341DE7ED1D2A1BFD(iVar11, -1986415230, 0)) || dlc1::_0x341DE7ED1D2A1BFD(iVar11, -785939537, 0)) || dlc1::_0x341DE7ED1D2A1BFD(iVar11, -1103045158, 0)) || dlc1::_0x341DE7ED1D2A1BFD(iVar11, -102825006, 0)) || dlc1::_0x341DE7ED1D2A1BFD(iVar11, -641612092, 0)) || dlc1::_0x341DE7ED1D2A1BFD(iVar11, -1507532917, 0)) || dlc1::_0x341DE7ED1D2A1BFD(iVar11, -1506370874, 0)) || dlc1::_0x341DE7ED1D2A1BFD(iVar11, -1786447517, 0)) || dlc1::_0x341DE7ED1D2A1BFD(iVar11, -1010805287, 0)) || dlc1::_0x341DE7ED1D2A1BFD(iVar11, 2136821028, 0)) || dlc1::_0x341DE7ED1D2A1BFD(iVar11, 1360588936, 0))
				{
					return false;
				}
				else if (dlc1::_0x341DE7ED1D2A1BFD(iVar9, 525778571, 0))
				{
					return false;
				}
			}
			else if (iParam4 != -99)
			{
				if (((((((((((((((((((((((((((((((((((((((((((((((((((((((((((iParam4 >= 71 && iParam4 <= 86) || iVar14 == 11) || dlc1::_0x341DE7ED1D2A1BFD(iVar13, 1455992833, 0)) || dlc1::_0x341DE7ED1D2A1BFD(iVar13, 153792394, 0)) || dlc1::_0x341DE7ED1D2A1BFD(iVar13, -870074461, 0)) || dlc1::_0x341DE7ED1D2A1BFD(iVar13, -1174924468, 0)) || dlc1::_0x341DE7ED1D2A1BFD(iVar13, -868698159, 0)) || dlc1::_0x341DE7ED1D2A1BFD(iVar13, -1177480446, 0)) || dlc1::_0x341DE7ED1D2A1BFD(iVar13, -1347486026, 0)) || dlc1::_0x341DE7ED1D2A1BFD(iVar13, -1655154167, 0)) || dlc1::_0x341DE7ED1D2A1BFD(iVar13, -2105858993, 0)) || dlc1::_0x341DE7ED1D2A1BFD(iVar13, 1893564692, 0)) || dlc1::_0x341DE7ED1D2A1BFD(iVar13, 1710451520, 0)) || dlc1::_0x341DE7ED1D2A1BFD(iVar13, 1416808511, 0)) || dlc1::_0x341DE7ED1D2A1BFD(iVar13, 1641506460, 0)) || dlc1::_0x341DE7ED1D2A1BFD(iVar13, 699233865, 0)) || iVar13 == -565297075) || iVar13 == 262349558) || iVar13 == -917804055) || iVar13 == -1156067454) || iVar13 == -2124751863) || iVar13 == 1812836719) || iVar13 == 1582116924) || iVar13 == 877452376) || iVar13 == 1117419763) || iVar13 == 732885188) || iVar13 == -1037820496) || iVar13 == -79097863) || dlc1::_0x341DE7ED1D2A1BFD(iVar13, -1119232689, 0)) || dlc1::_0x341DE7ED1D2A1BFD(iVar13, -2102859770, 0)) || dlc1::_0x341DE7ED1D2A1BFD(iVar13, 1784133476, 0)) || dlc1::_0x341DE7ED1D2A1BFD(iVar13, -1607949555, 0)) || dlc1::_0x341DE7ED1D2A1BFD(iVar13, 1976716889, 0)) || dlc1::_0x341DE7ED1D2A1BFD(iVar13, 2099109084, 0)) || dlc1::_0x341DE7ED1D2A1BFD(iVar13, -1488441032, 0)) || dlc1::_0x341DE7ED1D2A1BFD(iVar13, 2044466679, 0)) || dlc1::_0x341DE7ED1D2A1BFD(iVar13, -2020757158, 0)) || dlc1::_0x341DE7ED1D2A1BFD(iVar13, -1064262817, 0)) || dlc1::_0x341DE7ED1D2A1BFD(iVar13, -1419806467, 0)) || dlc1::_0x341DE7ED1D2A1BFD(iVar13, -1053842259, 0)) || dlc1::_0x341DE7ED1D2A1BFD(iVar13, -1358888880, 0)) || dlc1::_0x341DE7ED1D2A1BFD(iVar13, -849839091, 0)) || dlc1::_0x341DE7ED1D2A1BFD(iVar13, -2088146832, 0)) || dlc1::_0x341DE7ED1D2A1BFD(iVar13, -352447393, 0)) || dlc1::_0x341DE7ED1D2A1BFD(iVar13, -642551350, 0)) || dlc1::_0x341DE7ED1D2A1BFD(iVar13, -819569488, 0)) || dlc1::_0x341DE7ED1D2A1BFD(iVar13, -2020068325, 0)) || dlc1::_0x341DE7ED1D2A1BFD(iVar13, -1786447517, 0)) || dlc1::_0x341DE7ED1D2A1BFD(iVar13, -1010805287, 0)) || dlc1::_0x341DE7ED1D2A1BFD(iVar13, -1325813684, 0)) || dlc1::_0x341DE7ED1D2A1BFD(iVar13, -549843760, 0)) || dlc1::_0x341DE7ED1D2A1BFD(iVar13, -269266203, 0)) || dlc1::_0x341DE7ED1D2A1BFD(iVar13, 201427653, 0)) || dlc1::_0x341DE7ED1D2A1BFD(iVar13, 967829025, 0)) || dlc1::_0x341DE7ED1D2A1BFD(iVar13, -685039259, 0)) || dlc1::_0x341DE7ED1D2A1BFD(iVar13, -1266557933, 0)) || dlc1::_0x341DE7ED1D2A1BFD(iVar13, -979468724, 0)) || dlc1::_0x341DE7ED1D2A1BFD(iVar13, -58412562, 0)) || dlc1::_0x341DE7ED1D2A1BFD(iVar13, 974680318, 0))
				{
					if (!dlc1::_0x341DE7ED1D2A1BFD(iVar9, 525778571, 0))
					{
						return false;
					}
				}
				else if (((((((dlc1::_0x341DE7ED1D2A1BFD(iVar13, 1965569012, 0) || dlc1::_0x341DE7ED1D2A1BFD(iVar13, 684992453, 0)) || dlc1::_0x341DE7ED1D2A1BFD(iVar13, 916636514, 0)) || dlc1::_0x341DE7ED1D2A1BFD(iVar13, -1939378450, 0)) || dlc1::_0x341DE7ED1D2A1BFD(iVar13, 441715397, 0)) || dlc1::_0x341DE7ED1D2A1BFD(iVar13, 264959411, 0)) || dlc1::_0x341DE7ED1D2A1BFD(iVar13, 1353777856, 0)) || dlc1::_0x341DE7ED1D2A1BFD(iVar13, -1207283343, 0))
				{
					return false;
				}
				else if (func_150(iParam0, iParam4, 0) != -99)
				{
					if (dlc1::_0x341DE7ED1D2A1BFD(iVar9, 525778571, 0))
					{
						return false;
					}
				}
			}
			if (iParam8 != -99)
			{
				if (!(iParam8 >= 1 && iParam8 <= 31))
				{
				}
				else
				{
					return false;
				}
			}
		}
		if (iParam3 != -99)
		{
			if (iVar9 != -1 && dlc1::_0x341DE7ED1D2A1BFD(iVar9, 654065530, 0))
			{
				if (dlc1::_0x341DE7ED1D2A1BFD(iVar11, -1351486939, 0))
				{
					return true;
				}
				else
				{
					return false;
				}
			}
		}
		if (((iParam1 >= 13 && iParam1 <= 18) || iVar8 == 3) || (iVar9 != -1 && dlc1::_0x341DE7ED1D2A1BFD(iVar9, -1320139576, 0)))
		{
			if (iParam3 != -99)
			{
				if (((((((((iParam3 >= 48 && iParam3 <= 63) || (iParam3 >= 112 && iParam3 <= 127)) || (iParam3 >= 160 && iParam3 <= 175)) || iVar10 == 3) || iVar10 == 7) || iVar10 == 10) || (iParam3 >= 256 && dlc1::_0x341DE7ED1D2A1BFD(iVar11, 2026620439, 0))) || (iParam3 >= 256 && dlc1::_0x341DE7ED1D2A1BFD(iVar11, -1882920022, 0))) || (iParam3 >= 256 && dlc1::_0x341DE7ED1D2A1BFD(iVar11, 1147939952, 0)))
				{
					return false;
				}
			}
			else if (iParam4 != -99)
			{
				if (iParam4 >= 136 && dlc1::_0x341DE7ED1D2A1BFD(func_158(iParam0, iParam4, 8, 4), 1147939952, 0))
				{
					return false;
				}
			}
			else if (iParam9 != -99)
			{
				if (iVar12 != -1 && dlc1::_0x341DE7ED1D2A1BFD(iVar12, -1320139576, 1))
				{
					return false;
				}
			}
		}
		else if ((iParam1 >= 19 && iParam1 <= 24) || iVar8 == 4)
		{
			if (iParam3 != -99)
			{
				if (((((((((iParam3 >= 48 && iParam3 <= 63) || (iParam3 >= 112 && iParam3 <= 127)) || (iParam3 >= 160 && iParam3 <= 175)) || iVar10 == 3) || iVar10 == 7) || iVar10 == 10) || (iParam3 >= 256 && dlc1::_0x341DE7ED1D2A1BFD(iVar11, 2026620439, 0))) || (iParam3 >= 256 && dlc1::_0x341DE7ED1D2A1BFD(iVar11, -1882920022, 0))) || (iParam3 >= 256 && dlc1::_0x341DE7ED1D2A1BFD(iVar11, 1147939952, 0)))
				{
					return false;
				}
			}
			else if (iParam4 != -99)
			{
				if (iParam4 >= 136 && dlc1::_0x341DE7ED1D2A1BFD(func_158(iParam0, iParam4, 8, 4), 1147939952, 0))
				{
					return false;
				}
			}
			else if (iParam9 != -99)
			{
				if (iVar12 != -1 && dlc1::_0x341DE7ED1D2A1BFD(iVar12, -1320139576, 1))
				{
					dlc1::_0x5D5CAFF661DDF6FC(iVar12, &Var15);
					if (Var15.f_6 == 7)
					{
						return false;
					}
				}
			}
		}
		else if ((iParam1 >= 25 && iParam1 <= 30) || iVar8 == 5)
		{
			if (iParam3 != -99)
			{
				if (((((((((iParam3 >= 48 && iParam3 <= 63) || (iParam3 >= 112 && iParam3 <= 127)) || (iParam3 >= 160 && iParam3 <= 175)) || iVar10 == 3) || iVar10 == 7) || iVar10 == 10) || (iParam3 >= 256 && dlc1::_0x341DE7ED1D2A1BFD(iVar11, 2026620439, 0))) || (iParam3 >= 256 && dlc1::_0x341DE7ED1D2A1BFD(iVar11, -1882920022, 0))) || (iParam3 >= 256 && dlc1::_0x341DE7ED1D2A1BFD(iVar11, 1147939952, 0)))
				{
					return false;
				}
			}
			else if (iParam4 != -99)
			{
				if (iParam4 >= 136 && dlc1::_0x341DE7ED1D2A1BFD(func_158(iParam0, iParam4, 8, 4), 1147939952, 0))
				{
					return false;
				}
			}
			else if (iParam9 != -99)
			{
				if (iVar12 != -1 && dlc1::_0x341DE7ED1D2A1BFD(iVar12, -1320139576, 1))
				{
					return false;
				}
			}
		}
		else if ((iParam1 >= 31 && iParam1 <= 36) || iVar8 == 6)
		{
			if (iParam3 != -99)
			{
				if ((((((((((((((((((((((((((((((((((((((((((((iParam3 >= 48 && iParam3 <= 63) || (iParam3 >= 144 && iParam3 <= 159)) || (iParam3 >= 224 && iParam3 <= 239)) || iVar10 == 3) || iVar10 == 9) || iVar10 == 14) || (iParam3 >= 256 && dlc1::_0x341DE7ED1D2A1BFD(iVar11, 1965569012, 0))) || (iParam3 >= 256 && dlc1::_0x341DE7ED1D2A1BFD(iVar11, 2026620439, 0))) || (iParam3 >= 256 && dlc1::_0x341DE7ED1D2A1BFD(iVar11, -1882920022, 0))) || (iParam3 >= 256 && dlc1::_0x341DE7ED1D2A1BFD(iVar11, 396458410, 0))) || (iParam3 >= 256 && dlc1::_0x341DE7ED1D2A1BFD(iVar11, -761463976, 0))) || (iParam3 >= 256 && dlc1::_0x341DE7ED1D2A1BFD(iVar11, 103539798, 0))) || (iParam3 >= 256 && dlc1::_0x341DE7ED1D2A1BFD(iVar11, -1347486026, 0))) || (iParam3 >= 256 && dlc1::_0x341DE7ED1D2A1BFD(iVar11, -994703884, 0))) || (iParam3 >= 256 && dlc1::_0x341DE7ED1D2A1BFD(iVar11, -1119232689, 0))) || dlc1::_0x341DE7ED1D2A1BFD(iVar11, 320460654, 0)) || dlc1::_0x341DE7ED1D2A1BFD(iVar11, -2017999390, 0)) || dlc1::_0x341DE7ED1D2A1BFD(iVar11, -1410897066, 0)) || dlc1::_0x341DE7ED1D2A1BFD(iVar11, -826135203, 0)) || dlc1::_0x341DE7ED1D2A1BFD(iVar11, 2044466679, 0)) || dlc1::_0x341DE7ED1D2A1BFD(iVar11, -2020757158, 0)) || dlc1::_0x341DE7ED1D2A1BFD(iVar11, -1064262817, 0)) || dlc1::_0x341DE7ED1D2A1BFD(iVar11, -1053842259, 0)) || dlc1::_0x341DE7ED1D2A1BFD(iVar11, -1358888880, 0)) || dlc1::_0x341DE7ED1D2A1BFD(iVar11, -441291342, 0)) || dlc1::_0x341DE7ED1D2A1BFD(iVar11, -747583185, 0)) || dlc1::_0x341DE7ED1D2A1BFD(iVar11, -1986415230, 0)) || dlc1::_0x341DE7ED1D2A1BFD(iVar11, -430330349, 0)) || dlc1::_0x341DE7ED1D2A1BFD(iVar11, -102825006, 0)) || dlc1::_0x341DE7ED1D2A1BFD(iVar11, -733792105, 0)) || dlc1::_0x341DE7ED1D2A1BFD(iVar11, -641612092, 0)) || dlc1::_0x341DE7ED1D2A1BFD(iVar11, -1351486939, 0)) || dlc1::_0x341DE7ED1D2A1BFD(iVar11, -1507532917, 0)) || dlc1::_0x341DE7ED1D2A1BFD(iVar11, 2030343924, 0)) || dlc1::_0x341DE7ED1D2A1BFD(iVar11, -828478571, 0)) || dlc1::_0x341DE7ED1D2A1BFD(iVar11, 1360588936, 0)) || dlc1::_0x341DE7ED1D2A1BFD(iVar11, -1506370874, 0)) || dlc1::_0x341DE7ED1D2A1BFD(iVar11, -1786447517, 0)) || dlc1::_0x341DE7ED1D2A1BFD(iVar11, -1010805287, 0)) || dlc1::_0x341DE7ED1D2A1BFD(iVar11, 2136821028, 0)) || dlc1::_0x341DE7ED1D2A1BFD(iVar11, 602650322, 0)) || dlc1::_0x341DE7ED1D2A1BFD(iVar11, 905042630, 0)) || dlc1::_0x341DE7ED1D2A1BFD(iVar11, 1204125293, 0)) || dlc1::_0x341DE7ED1D2A1BFD(iVar11, -1855618474, 0))
				{
					return false;
				}
			}
		}
		else if (((iParam1 >= 37 && iParam1 <= 42) || iVar8 == 7) || (iParam1 >= 55 && dlc1::_0x341DE7ED1D2A1BFD(iVar9, 2083259958, 0)))
		{
			if (iParam3 != -99)
			{
				if ((((((((((((((((((((((((((((((((((((((((((((iParam3 >= 32 && iParam3 <= 47) || (iParam3 >= 48 && iParam3 <= 63)) || (iParam3 >= 144 && iParam3 <= 159)) || (iParam3 >= 224 && iParam3 <= 239)) || iVar10 == 2) || iVar10 == 3) || iVar10 == 9) || iVar10 == 14) || (iParam3 >= 256 && dlc1::_0x341DE7ED1D2A1BFD(iVar11, 2026620439, 0))) || (iParam3 >= 256 && dlc1::_0x341DE7ED1D2A1BFD(iVar11, -1882920022, 0))) || (iParam3 >= 256 && dlc1::_0x341DE7ED1D2A1BFD(iVar11, 396458410, 0))) || (iParam3 >= 256 && dlc1::_0x341DE7ED1D2A1BFD(iVar11, -761463976, 0))) || (iParam3 >= 256 && dlc1::_0x341DE7ED1D2A1BFD(iVar11, 821147517, 0))) || (iParam3 >= 256 && dlc1::_0x341DE7ED1D2A1BFD(iVar11, 103539798, 0))) || (iParam3 >= 256 && dlc1::_0x341DE7ED1D2A1BFD(iVar11, -1347486026, 0))) || (iParam3 >= 256 && dlc1::_0x341DE7ED1D2A1BFD(iVar11, -994703884, 0))) || (iParam3 >= 256 && dlc1::_0x341DE7ED1D2A1BFD(iVar11, -1119232689, 0))) || (iParam3 >= 256 && dlc1::_0x341DE7ED1D2A1BFD(iVar11, -1607949555, 0))) || dlc1::_0x341DE7ED1D2A1BFD(iVar11, 320460654, 0)) || dlc1::_0x341DE7ED1D2A1BFD(iVar11, -2017999390, 0)) || dlc1::_0x341DE7ED1D2A1BFD(iVar11, -1410897066, 0)) || dlc1::_0x341DE7ED1D2A1BFD(iVar11, -826135203, 0)) || dlc1::_0x341DE7ED1D2A1BFD(iVar11, 1965569012, 0)) || dlc1::_0x341DE7ED1D2A1BFD(iVar11, -1064262817, 0)) || dlc1::_0x341DE7ED1D2A1BFD(iVar11, -1053842259, 0)) || dlc1::_0x341DE7ED1D2A1BFD(iVar11, -1358888880, 0)) || dlc1::_0x341DE7ED1D2A1BFD(iVar11, -441291342, 0)) || dlc1::_0x341DE7ED1D2A1BFD(iVar11, -747583185, 0)) || dlc1::_0x341DE7ED1D2A1BFD(iVar11, -1986415230, 0)) || dlc1::_0x341DE7ED1D2A1BFD(iVar11, -430330349, 0)) || dlc1::_0x341DE7ED1D2A1BFD(iVar11, -102825006, 0)) || dlc1::_0x341DE7ED1D2A1BFD(iVar11, -733792105, 0)) || dlc1::_0x341DE7ED1D2A1BFD(iVar11, -641612092, 0)) || dlc1::_0x341DE7ED1D2A1BFD(iVar11, -1351486939, 0)) || dlc1::_0x341DE7ED1D2A1BFD(iVar11, -1507532917, 0)) || dlc1::_0x341DE7ED1D2A1BFD(iVar11, 2030343924, 0)) || dlc1::_0x341DE7ED1D2A1BFD(iVar11, -828478571, 0)) || dlc1::_0x341DE7ED1D2A1BFD(iVar11, 1360588936, 0)) || dlc1::_0x341DE7ED1D2A1BFD(iVar11, -1506370874, 0)) || dlc1::_0x341DE7ED1D2A1BFD(iVar11, -1786447517, 0)) || dlc1::_0x341DE7ED1D2A1BFD(iVar11, -1010805287, 0)) || dlc1::_0x341DE7ED1D2A1BFD(iVar11, 2136821028, 0)) || dlc1::_0x341DE7ED1D2A1BFD(iVar11, 1831422288, 0)) || dlc1::_0x341DE7ED1D2A1BFD(iVar11, 974680318, 0))
				{
					return false;
				}
				else if (((((((((((iParam3 >= 112 && iParam3 <= 127) || (iParam3 >= 160 && iParam3 <= 175)) || (iParam3 >= 192 && iParam3 <= 207)) || iVar10 == 7) || iVar10 == 10) || iVar10 == 12) || (iParam3 >= 256 && dlc1::_0x341DE7ED1D2A1BFD(iVar11, 1147939952, 0))) || (iParam3 >= 256 && dlc1::_0x341DE7ED1D2A1BFD(iVar11, -1200513218, 0))) || (iParam3 >= 256 && dlc1::_0x341DE7ED1D2A1BFD(iVar11, 2026620439, 0))) || (iParam3 >= 256 && dlc1::_0x341DE7ED1D2A1BFD(iVar11, -1882920022, 0))) || dlc1::_0x341DE7ED1D2A1BFD(iVar11, -747583185, 0))
				{
					if (iParam1 >= 55 && dlc1::_0x341DE7ED1D2A1BFD(iVar9, 2083259958, 0))
					{
						return false;
					}
				}
			}
			else if (iParam4 != -99)
			{
				if (dlc1::_0x341DE7ED1D2A1BFD(iVar13, 1965569012, 0))
				{
					if (dlc1::_0x341DE7ED1D2A1BFD(iVar9, 2083259958, 0))
					{
						return false;
					}
				}
				else if (((dlc1::_0x341DE7ED1D2A1BFD(iVar13, -1786447517, 0) || dlc1::_0x341DE7ED1D2A1BFD(iVar13, -1010805287, 0)) || dlc1::_0x341DE7ED1D2A1BFD(iVar13, -1325813684, 0)) || dlc1::_0x341DE7ED1D2A1BFD(iVar13, -549843760, 0))
				{
					return false;
				}
				else if ((dlc1::_0x341DE7ED1D2A1BFD(iVar13, -1703203608, 0) || dlc1::_0x341DE7ED1D2A1BFD(iVar13, -1415000253, 0)) || dlc1::_0x341DE7ED1D2A1BFD(iVar13, -168336417, 0))
				{
					return false;
				}
			}
			else if (iParam9 != -99)
			{
				if (iVar12 != -1 && dlc1::_0x341DE7ED1D2A1BFD(iVar12, -1320139576, 1))
				{
					return false;
				}
			}
		}
		else if ((iParam1 >= 43 && iParam1 <= 48) || iVar8 == 8)
		{
			if (iParam3 != -99)
			{
				if ((((((((((((((((((((((iParam3 >= 0 && iParam3 <= 15) || (iParam3 >= 32 && iParam3 <= 47)) || (iParam3 >= 64 && iParam3 <= 79)) || (iParam3 >= 80 && iParam3 <= 95)) || (iParam3 >= 144 && iParam3 <= 159)) || (iParam3 >= 176 && iParam3 <= 191)) || (iParam3 >= 192 && iParam3 <= 207)) || (iParam3 >= 208 && iParam3 <= 223)) || (iParam3 >= 240 && iParam3 <= 255)) || iVar10 == 0) || iVar10 == 2) || iVar10 == 4) || iVar10 == 5) || iVar10 == 9) || iVar10 == 11) || iVar10 == 12) || iVar10 == 13) || iVar10 == 15) || (iParam3 >= 256 && dlc1::_0x341DE7ED1D2A1BFD(iVar11, -1200513218, 0))) || (iParam3 >= 256 && dlc1::_0x341DE7ED1D2A1BFD(iVar11, -530089825, 0))) || (iParam3 >= 256 && dlc1::_0x341DE7ED1D2A1BFD(iVar11, 103539798, 0))) || (iParam3 >= 256 && dlc1::_0x341DE7ED1D2A1BFD(iVar11, -994703884, 0)))
				{
				}
				else
				{
					return false;
				}
			}
		}
		else if ((iParam1 >= 49 && iParam1 <= 54) || iVar8 == 9)
		{
			if (iParam3 != -99)
			{
				if ((((((((((((((((iParam3 >= 0 && iParam3 <= 15) || (iParam3 >= 64 && iParam3 <= 79)) || (iParam3 >= 80 && iParam3 <= 95)) || (iParam3 >= 176 && iParam3 <= 191)) || (iParam3 >= 192 && iParam3 <= 207)) || (iParam3 >= 208 && iParam3 <= 223)) || (iParam3 >= 240 && iParam3 <= 255)) || iVar10 == 0) || iVar10 == 4) || iVar10 == 5) || iVar10 == 11) || iVar10 == 12) || iVar10 == 13) || iVar10 == 15) || (iParam3 >= 256 && dlc1::_0x341DE7ED1D2A1BFD(iVar11, -1200513218, 0))) || (iParam3 >= 256 && dlc1::_0x341DE7ED1D2A1BFD(iVar11, -530089825, 0)))
				{
				}
				else
				{
					return false;
				}
			}
			else if (iParam4 != -99)
			{
				if (dlc1::_0x341DE7ED1D2A1BFD(iVar13, -7109286, 0))
				{
					return false;
				}
				else if (((dlc1::_0x341DE7ED1D2A1BFD(iVar13, -1786447517, 0) || dlc1::_0x341DE7ED1D2A1BFD(iVar13, -1010805287, 0)) || dlc1::_0x341DE7ED1D2A1BFD(iVar13, -1325813684, 0)) || dlc1::_0x341DE7ED1D2A1BFD(iVar13, -549843760, 0))
				{
					return false;
				}
			}
			if (iParam8 != -99)
			{
				if (!(iParam8 >= 1 && iParam8 <= 31))
				{
				}
				else
				{
					return false;
				}
			}
		}
		else if (iParam1 >= 55 && dlc1::_0x341DE7ED1D2A1BFD(iVar9, 1716958480, 0))
		{
			if (iParam3 != -99)
			{
				if (iVar11 != -1 && dlc1::_0x341DE7ED1D2A1BFD(iVar11, -747583185, 0))
				{
					return true;
				}
				else
				{
					return false;
				}
			}
			if (iParam11 != -99)
			{
				iVar32 = -1;
				if (iParam11 >= 256)
				{
					iVar32 = func_158(iParam0, iParam11, 4, 4);
				}
				if (dlc1::_0x341DE7ED1D2A1BFD(iVar32, -33031567, 0))
				{
					return true;
				}
				else
				{
					return false;
				}
			}
		}
	}
	return true;
}

bool func_104(int iParam0)//Position - 0xE315
{
	if (iParam0 != -1)
	{
		return false;
	}
	switch (iParam0)
	{
		case -783649692:
		case 691352495:
		case 1313566316:
		case 451909412:
		case 1552550633:
		case -206550874:
		case 860928119:
		case -445797343:
		case 1107219923:
		case -173716332:
		case -2017140386:
		case -538304226:
		case -1235599732:
		case -592242000:
		case 1815489089:
		case -831095241:
		case 2062043045:
		case -1092100326:
		case -1065332020:
		case -1465994616:
		case -1516536717:
		case 507503642:
		case -1470397961:
		case -1392082519:
		case 264425668:
		case -88859389:
		case 560755735:
		case 157858412:
		case -593565059:
		case -513152401:
		case -286945526:
		case 2004948615:
			return true;
			break;
	}
	return false;
}

int func_105(int iParam0, int iParam1)//Position - 0xE3F6
{
	int iVar0;
	int iVar1;
	int iVar2;
	
	if (iParam0 == joaat("mp_m_freemode_01"))
	{
		iVar0 = func_158(iParam0, iParam1, 11, 3);
		if (iVar0 != -1)
		{
			if ((((((((((((((((((((((((((((((dlc1::_0x341DE7ED1D2A1BFD(iVar0, -1119232689, 0) || dlc1::_0x341DE7ED1D2A1BFD(iVar0, -2102859770, 0)) || dlc1::_0x341DE7ED1D2A1BFD(iVar0, 1784133476, 0)) || dlc1::_0x341DE7ED1D2A1BFD(iVar0, 1976716889, 0)) || dlc1::_0x341DE7ED1D2A1BFD(iVar0, 2099109084, 0)) || dlc1::_0x341DE7ED1D2A1BFD(iVar0, -1488441032, 0)) || dlc1::_0x341DE7ED1D2A1BFD(iVar0, -1719167561, 0)) || dlc1::_0x341DE7ED1D2A1BFD(iVar0, -1274099003, 0)) || dlc1::_0x341DE7ED1D2A1BFD(iVar0, -1410897066, 0)) || dlc1::_0x341DE7ED1D2A1BFD(iVar0, 320460654, 0)) || dlc1::_0x341DE7ED1D2A1BFD(iVar0, -826135203, 0)) || dlc1::_0x341DE7ED1D2A1BFD(iVar0, 1431529976, 0)) || dlc1::_0x341DE7ED1D2A1BFD(iVar0, 1723403459, 0)) || dlc1::_0x341DE7ED1D2A1BFD(iVar0, 2044466679, 0)) || dlc1::_0x341DE7ED1D2A1BFD(iVar0, -2020757158, 0)) || dlc1::_0x341DE7ED1D2A1BFD(iVar0, -1064262817, 0)) || dlc1::_0x341DE7ED1D2A1BFD(iVar0, -1419806467, 0)) || dlc1::_0x341DE7ED1D2A1BFD(iVar0, -1053842259, 0)) || dlc1::_0x341DE7ED1D2A1BFD(iVar0, -1358888880, 0)) || dlc1::_0x341DE7ED1D2A1BFD(iVar0, -441291342, 0)) || dlc1::_0x341DE7ED1D2A1BFD(iVar0, -785939537, 0)) || dlc1::_0x341DE7ED1D2A1BFD(iVar0, -1446333198, 0)) || dlc1::_0x341DE7ED1D2A1BFD(iVar0, 492620493, 0)) || dlc1::_0x341DE7ED1D2A1BFD(iVar0, -1506370874, 0)) || dlc1::_0x341DE7ED1D2A1BFD(iVar0, -1786447517, 0)) || dlc1::_0x341DE7ED1D2A1BFD(iVar0, -1010805287, 0)) || dlc1::_0x341DE7ED1D2A1BFD(iVar0, -1325813684, 0)) || dlc1::_0x341DE7ED1D2A1BFD(iVar0, 1690933245, 0)) || dlc1::_0x341DE7ED1D2A1BFD(iVar0, 1360588936, 0)) || dlc1::_0x341DE7ED1D2A1BFD(iVar0, 2136821028, 0)) || dlc1::_0x341DE7ED1D2A1BFD(iVar0, -1603194928, 0))
			{
				return 1;
			}
		}
		if (iVar0 != -1)
		{
			if (dlc1::_0x341DE7ED1D2A1BFD(iVar0, -2017999390, 0))
			{
				return 1;
			}
		}
		return func_153(iParam0, iParam1);
	}
	else if (iParam0 == joaat("mp_f_freemode_01"))
	{
		iVar1 = func_158(iParam0, iParam1, 11, 4);
		iVar2 = -1;
		if (iVar1 != -1)
		{
			iVar2 = func_149(iVar1);
		}
		if ((((((((((((((((((((((((((((((((((((iParam1 >= 16 && iParam1 < 32) || (iParam1 >= 48 && iParam1 < 64)) || (iParam1 >= 96 && iParam1 < 112)) || (iParam1 >= 112 && iParam1 < 128)) || (iParam1 >= 128 && iParam1 < 144)) || (iParam1 >= 144 && iParam1 < 160)) || (iParam1 >= 160 && iParam1 < 176)) || (iParam1 >= 224 && iParam1 < 240)) || iVar2 == 1) || iVar2 == 3) || iVar2 == 6) || iVar2 == 7) || iVar2 == 8) || iVar2 == 9) || iVar2 == 10) || iVar2 == 14) || dlc1::_0x341DE7ED1D2A1BFD(iVar1, -1393156190, 0)) || dlc1::_0x341DE7ED1D2A1BFD(iVar1, 1843965488, 0)) || dlc1::_0x341DE7ED1D2A1BFD(iVar1, 441715397, 0)) || dlc1::_0x341DE7ED1D2A1BFD(iVar1, 264959411, 0)) || dlc1::_0x341DE7ED1D2A1BFD(iVar1, -1410897066, 0)) || dlc1::_0x341DE7ED1D2A1BFD(iVar1, 320460654, 0)) || dlc1::_0x341DE7ED1D2A1BFD(iVar1, -2017999390, 0)) || dlc1::_0x341DE7ED1D2A1BFD(iVar1, -826135203, 0)) || dlc1::_0x341DE7ED1D2A1BFD(iVar1, -747583185, 0)) || dlc1::_0x341DE7ED1D2A1BFD(iVar1, -102825006, 0)) || dlc1::_0x341DE7ED1D2A1BFD(iVar1, -733792105, 0)) || dlc1::_0x341DE7ED1D2A1BFD(iVar1, -641612092, 0)) || dlc1::_0x341DE7ED1D2A1BFD(iVar1, -1507532917, 0)) || dlc1::_0x341DE7ED1D2A1BFD(iVar1, -1506370874, 0)) || dlc1::_0x341DE7ED1D2A1BFD(iVar1, -1786447517, 0)) || dlc1::_0x341DE7ED1D2A1BFD(iVar1, -1010805287, 0)) || dlc1::_0x341DE7ED1D2A1BFD(iVar1, -1325813684, 0)) || dlc1::_0x341DE7ED1D2A1BFD(iVar1, 1690933245, 0)) || dlc1::_0x341DE7ED1D2A1BFD(iVar1, 1360588936, 0)) || dlc1::_0x341DE7ED1D2A1BFD(iVar1, 2136821028, 0))
		{
			return 1;
		}
	}
	return 0;
}

void func_106(int iParam0, int iParam1, int iParam2, int iParam3)//Position - 0xE8FF
{
	int iVar0;
	int iVar1;
	
	iVar0 = entity::get_entity_model(iParam0);
	func_144(gameplay::get_hash_key("hairOverlay"), iParam0);
	iVar1 = func_143(iVar0, iParam1);
	if (iVar1 != -1)
	{
		if (iParam2 == -1)
		{
			iParam2 = Global_69516;
		}
		func_170(iVar1, 1, iParam2);
	}
	func_107(iParam0, iParam3, 0);
}

void func_107(int iParam0, int iParam1, int iParam2)//Position - 0xE94A
{
	int iVar0;
	struct<9> Var1;
	int iVar14;
	int iVar15;
	int iVar16;
	int iVar17;
	int iVar18;
	int iVar19;
	int iVar20;
	struct<8> Var21;
	int iVar36;
	
	if (!ped::is_ped_injured(iParam0))
	{
		iVar0 = Global_69516;
		ped::_clear_ped_facial_decorations(iParam0);
		iVar14 = func_142(iParam0);
		iVar15 = func_130(iParam0);
		iVar16 = func_128(iParam0);
		iVar17 = func_127(iParam0);
		if (iParam1)
		{
			iVar16 = true;
		}
		if (iParam2)
		{
			iVar16 = false;
		}
		iVar18 = 0;
		while (iVar18 < 127)
		{
			if (func_120(iVar18, iVar0))
			{
				if (func_112(&Var1, iVar18, iVar14, iParam0, -1))
				{
					if (func_109(iParam0, &Var1, Var1.f_4, Var1.f_8, iVar15, iVar16, iParam1, iVar17))
					{
						ped::_set_ped_decoration(iParam0, Var1.f_4, Var1.f_5);
					}
				}
			}
			iVar18++;
		}
		if (func_120(123, iVar0))
		{
			if (ped::_get_tattoo_zone(-1719270477, -1824026490) != 7)
			{
				ped::_set_ped_decoration(iParam0, -1719270477, -1824026490);
			}
		}
		iVar20 = dlc1::_0x278F76C3B0A8F109(iVar14);
		iVar19 = 0;
		while (iVar19 < iVar20)
		{
			if (dlc1::_0xFF56381874F82086(iVar14, iVar19, &Var21))
			{
				if (!dlc1::_is_dlc_data_empty(Var21))
				{
					iVar36 = (129 + iVar19);
					if (func_120(iVar36, iVar0))
					{
						if (func_109(iParam0, &(Var21.f_7), Var21.f_2, Var21.f_6, iVar15, iVar16, iParam1, iVar17))
						{
							ped::_set_ped_decoration(iParam0, Var21.f_2, Var21.f_3);
							func_108(iParam0, Var21.f_2, Var21.f_3);
						}
					}
				}
			}
			iVar19++;
		}
	}
}

void func_108(int iParam0, int iParam1, int iParam2)//Position - 0xEA99
{
	switch (iParam1)
	{
		case -1194930348:
			switch (iParam2)
			{
				case -841238543:
					ped::_set_ped_decoration(iParam0, -1194930348, -441419962);
					break;
				
				case -1405854945:
					ped::_set_ped_decoration(iParam0, -1194930348, 1647997020);
					break;
			}
			break;
		
		case -777275782:
			switch (iParam2)
			{
				case 671171671:
					ped::_set_ped_decoration(iParam0, -777275782, 904519720);
					break;
				
				case 1911627074:
					ped::_set_ped_decoration(iParam0, -777275782, -607391498);
					break;
			}
			break;
		
		case 484754152:
			switch (iParam2)
			{
				case 266230635:
					ped::_set_ped_decoration(iParam0, 484754152, -588549683);
					ped::_set_ped_decoration(iParam0, 484754152, 464027076);
					break;
				
				case -1261787835:
					ped::_set_ped_decoration(iParam0, 484754152, -965491494);
					ped::_set_ped_decoration(iParam0, 484754152, 939374190);
					break;
			}
			break;
	}
}

bool func_109(int iParam0, char* sParam1, int iParam2, int iParam3, int iParam4, int iParam5, int iParam6, int iParam7)//Position - 0xEB8E
{
	int iVar0;
	int iVar1;
	
	iVar0 = entity::get_entity_model(iParam0);
	if (iParam3 == 0)
	{
		iVar1 = func_111(iVar0, sParam1, iParam3);
		iParam3 = gameplay::get_hash_key(func_110(iVar1));
	}
	if (iParam2 == 449512698)
	{
		return false;
	}
	switch (iParam3)
	{
		case -793495770:
		case -763917073:
		case -1409061796:
		case -2066166276:
		case 849089063:
		case 1192230427:
		case -454273031:
		case -1459967458:
		case 1548327796:
		case -1238079313:
		case 129912816:
		case -1469750959:
		case 1586504577:
		case 1753976524:
		case 1361645381:
		case -388268096:
			if (iParam4)
			{
				return false;
			}
			if ((((iParam3 == -793495770 || (iParam3 == -1409061796 && iVar0 == joaat("mp_f_freemode_01"))) || iParam3 == -2066166276) || iParam3 == 849089063) || iParam3 == 1192230427)
			{
				if (!iParam5)
				{
					if (Global_2593812 == -1)
					{
						if (!Global_91538.f_1456)
						{
							if (func_120(13, -1))
							{
								return false;
							}
							else if (func_120(14, -1))
							{
								return false;
							}
							else if (func_120(15, -1))
							{
								return false;
							}
							else if (func_120(16, -1))
							{
								return false;
							}
							else if (func_120(71, -1))
							{
								return false;
							}
							else if (func_120(72, -1))
							{
							}
						}
					}
					else if (Global_2593812 == 13)
					{
						return false;
					}
					else if (Global_2593812 == 14)
					{
						return false;
					}
					else if (Global_2593812 == 15)
					{
						return false;
					}
					else if (Global_2593812 == 16)
					{
						return false;
					}
					else if (Global_2593812 == 71)
					{
						return false;
					}
					else if (Global_2593812 == 72)
					{
					}
				}
			}
			else if (iParam3 == -763917073)
			{
				if (!iParam5)
				{
					if (Global_2593812 == -1)
					{
						if (!Global_91538.f_1456)
						{
							if (func_120(13, -1))
							{
								return false;
							}
							else if (func_120(14, -1))
							{
								return false;
							}
							else if (func_120(15, -1))
							{
								return false;
							}
							else if (func_120(16, -1))
							{
								return false;
							}
							else if (func_120(71, -1))
							{
								return false;
							}
							else if (func_120(72, -1))
							{
							}
						}
					}
					else if (Global_2593812 == 13)
					{
						return false;
					}
					else if (Global_2593812 == 14)
					{
						return false;
					}
					else if (Global_2593812 == 15)
					{
						return false;
					}
					else if (Global_2593812 == 16)
					{
						return false;
					}
					else if (Global_2593812 == 71)
					{
						return false;
					}
					else if (Global_2593812 == 72)
					{
					}
				}
			}
			else if ((iParam3 == 129912816 || iParam3 == 1361645381) || iParam3 == -1469750959)
			{
				if (!iParam5)
				{
					if (Global_2593812 == -1)
					{
						if (!Global_91538.f_1456)
						{
							if (func_120(13, -1))
							{
							}
							else if (func_120(14, -1))
							{
								return false;
							}
							else if (func_120(15, -1))
							{
								return false;
							}
							else if (func_120(16, -1))
							{
							}
							else if (func_120(71, -1))
							{
								return false;
							}
							else if (func_120(72, -1))
							{
							}
						}
					}
					else if (Global_2593812 == 13)
					{
					}
					else if (Global_2593812 == 14)
					{
						return false;
					}
					else if (Global_2593812 == 15)
					{
						return false;
					}
					else if (Global_2593812 == 16)
					{
					}
					else if (Global_2593812 == 71)
					{
						return false;
					}
					else if (Global_2593812 == 72)
					{
					}
				}
			}
			break;
		
		case 1484379715:
		case 711089605:
		case 1206993109:
		case 32564956:
		case 1618133209:
		case 314326195:
		case 1928884106:
		case 1565386395:
		case 2107621060:
			if (iParam7)
			{
				return false;
			}
			if (!iParam5)
			{
				if (Global_2593812 == -1)
				{
					if (!Global_91538.f_1456)
					{
						if (func_120(13, -1))
						{
						}
						else if (func_120(14, -1))
						{
						}
						else if (func_120(15, -1))
						{
							return false;
						}
						else if (func_120(16, -1))
						{
						}
						else if (func_120(71, -1))
						{
						}
						else if (func_120(72, -1))
						{
							return false;
						}
					}
				}
				else if (Global_2593812 == 13)
				{
				}
				else if (Global_2593812 == 14)
				{
				}
				else if (Global_2593812 == 15)
				{
					return false;
				}
				else if (Global_2593812 == 16)
				{
				}
				else if (Global_2593812 == 71)
				{
				}
				else if (Global_2593812 == 72)
				{
					return false;
				}
			}
			break;
		
		case 1019352240:
			if (iParam7)
			{
				if (iVar0 == joaat("mp_m_freemode_01"))
				{
					if (Global_2593812 == -1)
					{
						if (!Global_91538.f_1456)
						{
							if (func_120(15, -1))
							{
								return false;
							}
						}
					}
					else if (Global_2593812 == 15)
					{
						return false;
					}
				}
			}
			if (iParam5)
			{
				return false;
			}
			if (iParam4)
			{
				if (Global_2593812 == -1)
				{
					if (!Global_91538.f_1456)
					{
						if (func_120(13, -1))
						{
							return false;
						}
						else if (func_120(14, -1))
						{
							return false;
						}
						else if (func_120(15, -1))
						{
							return false;
						}
						else if (func_120(16, -1))
						{
						}
						else if (func_120(71, -1))
						{
						}
						else if (func_120(72, -1))
						{
						}
					}
				}
				else if (Global_2593812 == 13)
				{
					return false;
				}
				else if (Global_2593812 == 14)
				{
					return false;
				}
				else if (Global_2593812 == 15)
				{
					return false;
				}
				else if (Global_2593812 == 16)
				{
				}
				else if (Global_2593812 == 71)
				{
				}
				else if (Global_2593812 == 72)
				{
				}
			}
			break;
		
		case 0:
		case 2:
		case -518474626:
			if (iParam4)
			{
				if (!gameplay::is_string_null_or_empty(sParam1))
				{
					switch (gameplay::get_hash_key(sParam1))
					{
						case 1774176944:
						case 1363941829:
						case -328314869:
						case -1903783095:
						case -1674924399:
						case -106785870:
						case -344656041:
						case 1480281490:
						case -2097372400:
						case 118598456:
						case -1386676768:
						case 1464947154:
						case -1282504117:
						case -1877294236:
						case 736950162:
							return false;
							break;
						}
					}
			}
			if (iVar0 == joaat("mp_m_freemode_01"))
			{
			}
			else if (iVar0 == joaat("mp_f_freemode_01"))
			{
				if (!iParam5)
				{
					if (Global_2593812 == -1)
					{
						if (!Global_91538.f_1456)
						{
							if (func_120(13, -1))
							{
							}
							else if (func_120(14, -1))
							{
							}
							else if (func_120(15, -1))
							{
							}
							else if (func_120(16, -1))
							{
							}
							else if (func_120(71, -1))
							{
							}
							else if (func_120(72, -1))
							{
							}
						}
					}
					else if (Global_2593812 == 13)
					{
						return false;
					}
					else if (Global_2593812 == 14)
					{
					}
					else if (Global_2593812 == 15)
					{
						return false;
					}
					else if (Global_2593812 == 16)
					{
					}
					else if (Global_2593812 == 71)
					{
					}
					else if (Global_2593812 == 72)
					{
					}
				}
			}
			break;
		
		case 277073536:
			if (iParam6)
			{
				return false;
			}
			break;
	}
	return true;
}

char* func_110(int iParam0)//Position - 0xF2D5
{
	switch (iParam0)
	{
		case 0:
			return "ARM_LEFT_FULL_SLEEVE";
			break;
		
		case 1:
			return "ARM_LEFT_SHORT_SLEEVE";
			break;
		
		case 2:
			return "ARM_LEFT_LOWER_SLEEVE";
			break;
		
		case 3:
			return "ARM_LEFT_LOWER_INNER";
			break;
		
		case 4:
			return "ARM_LEFT_LOWER_OUTER";
			break;
		
		case 5:
			return "ARM_LEFT_WRIST";
			break;
		
		case 6:
			return "ARM_LEFT_UPPER_SLEEVE";
			break;
		
		case 7:
			return "ARM_LEFT_UPPER_TRICEP";
			break;
		
		case 8:
			return "ARM_LEFT_UPPER_SIDE";
			break;
		
		case 9:
			return "ARM_LEFT_UPPER_BICEP";
			break;
		
		case 10:
			return "ARM_LEFT_SHOULDER";
			break;
		
		case 11:
			return "ARM_LEFT_ELBOW";
			break;
		
		case 12:
			return "ARM_RIGHT_FULL_SLEEVE";
			break;
		
		case 13:
			return "ARM_RIGHT_SHORT_SLEEVE";
			break;
		
		case 14:
			return "ARM_RIGHT_LOWER_SLEEVE";
			break;
		
		case 15:
			return "ARM_RIGHT_LOWER_INNER";
			break;
		
		case 16:
			return "ARM_RIGHT_LOWER_OUTER";
			break;
		
		case 17:
			return "ARM_RIGHT_WRIST";
			break;
		
		case 18:
			return "ARM_RIGHT_UPPER_SLEEVE";
			break;
		
		case 19:
			return "ARM_RIGHT_UPPER_TRICEP";
			break;
		
		case 20:
			return "ARM_RIGHT_UPPER_SIDE";
			break;
		
		case 21:
			return "ARM_RIGHT_UPPER_BICEP";
			break;
		
		case 22:
			return "ARM_RIGHT_SHOULDER";
			break;
		
		case 23:
			return "ARM_RIGHT_ELBOW";
			break;
		
		case 24:
			return "HAND_LEFT";
			break;
		
		case 25:
			return "HAND_RIGHT";
			break;
		
		case 26:
			return "BACK_FULL";
			break;
		
		case 27:
			return "BACK_FULL_ARMS_FULL_BACK";
			break;
		
		case 28:
			return "BACK_FULL_SHORT";
			break;
		
		case 29:
			return "BACK_MID";
			break;
		
		case 30:
			return "BACK_UPPER";
			break;
		
		case 31:
			return "BACK_UPPER_LEFT";
			break;
		
		case 32:
			return "BACK_UPPER_RIGHT";
			break;
		
		case 33:
			return "BACK_LOWER";
			break;
		
		case 34:
			return "BACK_LOWER_LEFT";
			break;
		
		case 35:
			return "BACK_LOWER_MID";
			break;
		
		case 36:
			return "BACK_LOWER_RIGHT";
			break;
		
		case 37:
			return "CHEST_FULL";
			break;
		
		case 38:
			return "CHEST_STOM";
			break;
		
		case 39:
			return "CHEST_STOM_FULL";
			break;
		
		case 40:
			return "CHEST_LEFT";
			break;
		
		case 41:
			return "CHEST_UPPER_LEFT";
			break;
		
		case 42:
			return "CHEST_RIGHT";
			break;
		
		case 43:
			return "CHEST_UPPER_RIGHT";
			break;
		
		case 44:
			return "CHEST_MID";
			break;
		
		case 45:
			return "TORSO_SIDE_RIGHT";
			break;
		
		case 46:
			return "TORSO_SIDE_LEFT";
			break;
		
		case 47:
			return "STOMACH_FULL";
			break;
		
		case 48:
			return "STOMACH_UPPER";
			break;
		
		case 49:
			return "STOMACH_UPPER_LEFT";
			break;
		
		case 50:
			return "STOMACH_UPPER_RIGHT";
			break;
		
		case 51:
			return "STOMACH_LOWER";
			break;
		
		case 52:
			return "STOMACH_LOWER_LEFT";
			break;
		
		case 53:
			return "STOMACH_LOWER_RIGHT";
			break;
		
		case 54:
			return "STOMACH_LEFT";
			break;
		
		case 55:
			return "STOMACH_RIGHT";
			break;
		
		case 56:
			return "FACE";
			break;
		
		case 57:
			return "HEAD_LEFT";
			break;
		
		case 58:
			return "HEAD_RIGHT";
			break;
		
		case 59:
			return "NECK_FRONT";
			break;
		
		case 60:
			return "NECK_BACK";
			break;
		
		case 61:
			return "NECK_LEFT_FULL";
			break;
		
		case 62:
			return "NECK_LEFT_BACK";
			break;
		
		case 63:
			return "NECK_RIGHT_FULL";
			break;
		
		case 64:
			return "NECK_RIGHT_BACK";
			break;
		
		case 65:
			return "LEG_LEFT_FULL_SLEEVE";
			break;
		
		case 66:
			return "LEG_LEFT_FULL_FRONT";
			break;
		
		case 67:
			return "LEG_LEFT_FULL_BACK";
			break;
		
		case 68:
			return "LEG_LEFT_UPPER_SLEEVE";
			break;
		
		case 69:
			return "LEG_LEFT_UPPER_FRONT";
			break;
		
		case 70:
			return "LEG_LEFT_UPPER_BACK";
			break;
		
		case 71:
			return "LEG_LEFT_UPPER_OUTER";
			break;
		
		case 72:
			return "LEG_LEFT_UPPER_INNER";
			break;
		
		case 73:
			return "LEG_LEFT_LOWER_SLEEVE";
			break;
		
		case 74:
			return "LEG_LEFT_LOWER_FRONT";
			break;
		
		case 75:
			return "LEG_LEFT_LOWER_BACK";
			break;
		
		case 76:
			return "LEG_LEFT_LOWER_OUTER";
			break;
		
		case 77:
			return "LEG_LEFT_LOWER_INNER";
			break;
		
		case 78:
			return "LEG_LEFT_KNEE";
			break;
		
		case 79:
			return "LEG_LEFT_ANKLE";
			break;
		
		case 80:
			return "LEG_LEFT_CALF";
			break;
		
		case 81:
			return "LEG_RIGHT_FULL_SLEEVE";
			break;
		
		case 82:
			return "LEG_RIGHT_FULL_FRONT";
			break;
		
		case 83:
			return "LEG_RIGHT_FULL_BACK";
			break;
		
		case 84:
			return "LEG_RIGHT_UPPER_SLEEVE";
			break;
		
		case 85:
			return "LEG_RIGHT_UPPER_FRONT";
			break;
		
		case 86:
			return "LEG_RIGHT_UPPER_BACK";
			break;
		
		case 87:
			return "LEG_RIGHT_UPPER_OUTER";
			break;
		
		case 88:
			return "LEG_RIGHT_UPPER_INNER";
			break;
		
		case 89:
			return "LEG_RIGHT_LOWER_SLEEVE";
			break;
		
		case 90:
			return "LEG_RIGHT_LOWER_FRONT";
			break;
		
		case 91:
			return "LEG_RIGHT_LOWER_BACK";
			break;
		
		case 92:
			return "LEG_RIGHT_LOWER_OUTER";
			break;
		
		case 93:
			return "LEG_RIGHT_LOWER_INNER";
			break;
		
		case 94:
			return "LEG_RIGHT_KNEE";
			break;
		
		case 95:
			return "LEG_RIGHT_ANKLE";
			break;
		
		case 96:
			return "LEG_RIGHT_CALF";
			break;
		
		case 97:
			return "FOOT_LEFT";
			break;
		
		case 98:
			return "FOOT_RIGHT";
			break;
	}
	return "";
}

int func_111(int iParam0, char* sParam1, int iParam2)//Position - 0xF90D
{
	switch (iParam2)
	{
		case 1019352240:
		case 2140335355:
		case 277073536:
			return -1;
			break;
	}
	switch (iParam2)
	{
		case -1775023605:
			return 0;
			break;
		
		case 917950949:
			return 1;
			break;
		
		case -1684314297:
			return 2;
			break;
		
		case -1546663824:
			return 3;
			break;
		
		case -2119253768:
			return 4;
			break;
		
		case 1639951086:
			return 5;
			break;
		
		case 1372660034:
			return 6;
			break;
		
		case -1524227787:
			return 7;
			break;
		
		case -311742370:
			return 8;
			break;
		
		case -2057190659:
			return 9;
			break;
		
		case -686545645:
			return 10;
			break;
		
		case -80377674:
			return 11;
			break;
		
		case -1055976551:
			return 12;
			break;
		
		case 1963750528:
			return 13;
			break;
		
		case 796226384:
			return 14;
			break;
		
		case 123428314:
			return 15;
			break;
		
		case 1944550961:
			return 16;
			break;
		
		case 2136911405:
			return 17;
			break;
		
		case -1309595991:
			return 18;
			break;
		
		case 1470319061:
			return 19;
			break;
		
		case -1716562576:
			return 20;
			break;
		
		case -1940582056:
			return 21;
			break;
		
		case 1089807219:
			return 22;
			break;
		
		case -1073830579:
			return 23;
			break;
		
		case 1071134407:
			return 24;
			break;
		
		case 1455567330:
			return 25;
			break;
		
		case 711089605:
			return 26;
			break;
		
		case 1206993109:
			return 27;
			break;
		
		case 32564956:
			return 28;
			break;
		
		case 314326195:
			return 29;
			break;
		
		case 1928884106:
			return 30;
			break;
		
		case 1565386395:
			return 31;
			break;
		
		case 2107621060:
			return 32;
			break;
		
		case 1618133209:
			return 33;
			break;
		
		case -951899470:
			return 34;
			break;
		
		case 2048696626:
			return 35;
			break;
		
		case 74017048:
			return 36;
			break;
		
		case -793495770:
			return 37;
			break;
		
		case 849089063:
			return 38;
			break;
		
		case 1192230427:
			return 39;
			break;
		
		case -763917073:
			return 40;
			break;
		
		case 337552605:
			return 41;
			break;
		
		case -2066166276:
			return 42;
			break;
		
		case 100935796:
			return 43;
			break;
		
		case -1409061796:
			return 44;
			break;
		
		case 1548327796:
			return 45;
			break;
		
		case -1459967458:
			return 46;
			break;
		
		case 129912816:
			return 47;
			break;
		
		case 1387715942:
			return 48;
			break;
		
		case -1871804242:
			return 49;
			break;
		
		case 1603728616:
			return 50;
			break;
		
		case -742053244:
			return 51;
			break;
		
		case 1586504577:
			return 52;
			break;
		
		case 1753976524:
			return 53;
			break;
		
		case -1469750959:
			return 54;
			break;
		
		case -388268096:
			return 55;
			break;
		
		case -1538681432:
			return 56;
			break;
		
		case -737856380:
			return 57;
			break;
		
		case 1261643197:
			return 58;
			break;
		
		case 436139458:
			return 59;
			break;
		
		case 1012782925:
			return 60;
			break;
		
		case -277214012:
			return 61;
			break;
		
		case -484264198:
			return 62;
			break;
		
		case 1708200656:
			return 63;
			break;
		
		case 758827473:
			return 64;
			break;
		
		case 1039283199:
			return 65;
			break;
		
		case 325801797:
			return 66;
			break;
		
		case -1946435033:
			return 67;
			break;
		
		case -1917346117:
			return 68;
			break;
		
		case -382139768:
			return 69;
			break;
		
		case 1725561361:
			return 70;
			break;
		
		case -266913369:
			return 71;
			break;
		
		case 511433871:
			return 72;
			break;
		
		case -1399656601:
			return 73;
			break;
		
		case -1560441083:
			return 74;
			break;
		
		case 1034503747:
			return 75;
			break;
		
		case -1170681301:
			return 76;
			break;
		
		case 660577126:
			return 77;
			break;
		
		case -818089340:
			return 78;
			break;
		
		case 1052642087:
			return 79;
			break;
		
		case 134497037:
			return 80;
			break;
		
		case -624267373:
			return 81;
			break;
		
		case -1178847967:
			return 82;
			break;
		
		case -197292861:
			return 83;
			break;
		
		case 730193962:
			return 84;
			break;
		
		case 1469472731:
			return 85;
			break;
		
		case -1918884694:
			return 86;
			break;
		
		case -1670727628:
			return 87;
			break;
		
		case -1389296468:
			return 88;
			break;
		
		case -405262373:
			return 89;
			break;
		
		case -1619609833:
			return 90;
			break;
		
		case 2060550302:
			return 91;
			break;
		
		case -1202647020:
			return 92;
			break;
		
		case 12584588:
			return 93;
			break;
		
		case -1559605744:
			return 94;
			break;
		
		case -88374898:
			return 95;
			break;
		
		case -292219126:
			return 96;
			break;
		
		case -634232984:
			return 97;
			break;
		
		case -1259754598:
			return 98;
			break;
	}
	switch (gameplay::get_hash_key(sParam1))
	{
		case 1948764112:
			return -1;
			break;
		
		case 1099734529:
			return 12;
			break;
		
		case 1875475066:
			return 12;
			break;
		
		case -2027116220:
			if (iParam0 == joaat("mp_m_freemode_01"))
			{
				return 75;
			}
			else
			{
				return 65;
			}
			break;
		
		case 973279522:
			return 26;
			break;
		
		case -344656041:
			return 47;
			break;
		
		case 437243648:
			return 1;
			break;
		
		case -1636967950:
			return 75;
			break;
		
		case -1759426263:
			return 1;
			break;
		
		case 1702259548:
			return 89;
			break;
		
		case 1471205329:
			return 73;
			break;
		
		case -33154131:
			return 22;
			break;
		
		case -1364624791:
			return 91;
			break;
		
		case 2048169112:
			return 26;
			break;
		
		case -2132107540:
			return 73;
			break;
		
		case -2097372400:
			return 38;
			break;
		
		case -106785870:
			if (iParam0 == joaat("mp_m_freemode_01"))
			{
				return 40;
			}
			else
			{
				return 42;
			}
			break;
		
		case 1116120433:
			return 31;
			break;
		
		case 118598456:
			return 42;
			break;
		
		case 1480281490:
			return 47;
			break;
		
		case -652292269:
			return 75;
			break;
		
		case -1179283327:
			return 20;
			break;
		
		case 860620540:
			return 32;
			break;
		
		case -880004050:
			return 14;
			break;
		
		case -1386676768:
			return 52;
			break;
		
		case 2104696341:
			return 30;
			break;
		
		case -1952728474:
			return 6;
			break;
		
		case 1464947154:
			return 80;
			break;
		
		case -1134718043:
			return 13;
			break;
		
		case -440373586:
			if (iParam0 == joaat("mp_m_freemode_01"))
			{
				return 67;
			}
			else
			{
				return 75;
			}
			break;
		
		case -1282504117:
			if (iParam0 == joaat("mp_m_freemode_01"))
			{
				return 40;
			}
			else
			{
				return 42;
			}
			break;
		
		case -1035884623:
			return 73;
			break;
		
		case -1877294236:
			return 47;
			break;
		
		case 1289632992:
			return 73;
			break;
		
		case 1152623695:
			return 10;
			break;
		
		case 1705208746:
			return 26;
			break;
		
		case 1774176944:
			return 42;
			break;
		
		case -2016202731:
			return 89;
			break;
		
		case 474241973:
			return 16;
			break;
		
		case 1549424756:
			return 91;
			break;
		
		case 1915520024:
			return 82;
			break;
		
		case -654914345:
			return 13;
			break;
		
		case -1745115353:
			return 75;
			break;
		
		case 1466027815:
			return 26;
			break;
		
		case -161772432:
			return 10;
			break;
		
		case 74131599:
			return 90;
			break;
		
		case 363383562:
			return 89;
			break;
		
		case 736950162:
			return 38;
			break;
		
		case 1291882802:
			return 20;
			break;
		
		case -281772534:
			return 26;
			break;
		
		case -837798134:
			return 18;
			break;
		
		case 62456:
			return 56;
			break;
		
		case -800320369:
			return 3;
			break;
		
		case 1363941829:
			return 47;
			break;
		
		case 1586377801:
			if (iParam0 == joaat("mp_m_freemode_01"))
			{
				return 28;
			}
			else
			{
				return 26;
			}
			break;
		
		case -1514257748:
			return 89;
			break;
		
		case -1023836894:
			return 6;
			break;
		
		case -1974105125:
			return 33;
			break;
		
		case -558386018:
			return 16;
			break;
		
		case -328314869:
			return 40;
			break;
		
		case -1903783095:
			return 40;
			break;
		
		case -1674924399:
			return 40;
			break;
		
		case -252323802:
			return 33;
			break;
		
		case 11466648:
			return 6;
			break;
		
		case 927130819:
			if (iParam0 == joaat("mp_m_freemode_01"))
			{
				return 28;
			}
			else
			{
				return 26;
			}
			break;
		
		case -978943608:
			if (iParam0 == joaat("mp_m_freemode_01"))
			{
				return 28;
			}
			else
			{
				return 26;
			}
			break;
		
		case 452144164:
			if (iParam0 == joaat("mp_m_freemode_01"))
			{
				return 28;
			}
			else
			{
				return 26;
			}
			break;
		
		case 691194019:
			if (iParam0 == joaat("mp_m_freemode_01"))
			{
				return 28;
			}
			else
			{
				return 26;
			}
			break;
		
		case -1516865571:
			return 44;
			break;
		
		case 2130586285:
			return 32;
			break;
		
		case 386521802:
			return 3;
			break;
		
		case 579924440:
			return 33;
			break;
		
		case 741770527:
			return 31;
			break;
		
		case 1173403795:
			return 33;
			break;
		
		case -569087776:
			return 45;
			break;
		
		case -1344959389:
			return 89;
			break;
		
		case -211217527:
			return 64;
			break;
		
		case 86488838:
			return 53;
			break;
		
		case 705494964:
			return 52;
			break;
		
		case -137684175:
			return 30;
			break;
		
		case -979388709:
			return 41;
			break;
		
		case 324653646:
			return 43;
			break;
		
		case -518820414:
			return 52;
			break;
		
		case -1361737401:
			return 20;
			break;
		
		case 2010946386:
			return 8;
			break;
		
		case -894811920:
			return 10;
			break;
		
		case 165068612:
			return 28;
			break;
		
		case 1549427782:
			return 40;
			break;
		
		case -927613913:
			return 42;
			break;
		
		case 385144996:
			return 56;
			break;
		
		case -814626401:
			return 57;
			break;
		
		case -1248225809:
			return 52;
			break;
		
		case 1910378101:
			return 8;
			break;
		
		case -2124501642:
			return 91;
			break;
		
		case -1943747838:
			return 20;
			break;
		
		case -1570115700:
			return 75;
			break;
		
		case 931699147:
			return 62;
			break;
		
		case 1019520067:
			return 63;
			break;
		
		case -859358814:
			return 20;
			break;
		
		case -1157818866:
			return 58;
			break;
		
		case -247856505:
			return 47;
			break;
		
		case -1628534963:
			return 37;
			break;
		
		case -1051898870:
			return 33;
			break;
		
		case 1334929540:
			return 80;
			break;
		
		case 1097124907:
			return 64;
			break;
		
		case 747545215:
			return 62;
			break;
		
		case 61892743:
			return 96;
			break;
		
		case 501548332:
			return 15;
			break;
		
		case -244169717:
			return 48;
			break;
		
		case 421886905:
			return 37;
			break;
		
		case -1398791504:
			return 33;
			break;
		
		case -106152761:
			return 3;
			break;
		
		case 125491300:
			return 41;
			break;
		
		case -1576950557:
			return 52;
			break;
		
		case -1815115649:
			return 53;
			break;
		
		case -1043396870:
			return 59;
			break;
		
		case -1388618285:
			return 3;
			break;
		
		case -948484638:
			return 48;
			break;
		
		case 643387405:
			return 33;
			break;
		
		case 979630098:
			return 64;
			break;
		
		case 211688583:
			return 62;
			break;
		
		case 1343791995:
			return 60;
			break;
		
		case 576309246:
			return 20;
			break;
		
		case 949154944:
			return 40;
			break;
		
		case -622511834:
			return 42;
			break;
		
		case -275651969:
			return 11;
			break;
		
		case -1256283855:
			return 15;
			break;
		
		case 955525350:
			return 40;
			break;
		
		case 1252641873:
			return 22;
			break;
		
		case -2034766264:
			return 40;
			break;
		
		case 1748021562:
			return 22;
			break;
		
		case -657146050:
			return 30;
			break;
		
		case -955835485:
			return 19;
			break;
		
		case -1269959119:
			return 40;
			break;
		
		case -1478763187:
			return 4;
			break;
		
		case -1881592504:
			return 15;
			break;
		
		case 2115996117:
			return 62;
			break;
		
		case 1824417551:
			return 45;
			break;
		
		case 1502068898:
			return 24;
			break;
		
		case -2019287742:
			return 22;
			break;
		
		case -1780827729:
			return 80;
			break;
		
		case -1966497207:
			return 25;
			break;
		
		case -2126999769:
			return 30;
			break;
		
		case 2014772448:
			return 30;
			break;
		
		case 1705760778:
			return 44;
			break;
		
		case 497993745:
			return 15;
			break;
		
		case 1142887665:
			return 9;
			break;
		
		case 22777707:
			return 3;
			break;
		
		case 799173624:
			return 16;
			break;
		
		case -410297401:
			return 17;
			break;
		
		case 214410819:
			return 75;
			break;
		
		case -2098342992:
			return 23;
			break;
		
		case -1280920283:
			return 64;
			break;
		
		case -1501455653:
			return 16;
			break;
		
		case 2117454408:
			return 25;
			break;
		
		case -1945704982:
			return 32;
			break;
		
		case -1581870771:
			return 31;
			break;
		
		case -1350521631:
			return 10;
			break;
		
		case -954508266:
			return 5;
			break;
		
		case -716244867:
			return 4;
			break;
		
		case 185361399:
			return 52;
			break;
		
		case -1208107213:
			return 35;
			break;
		
		case -812421538:
			return 30;
			break;
		
		case -566096965:
			return 32;
			break;
		
		case -316757644:
			return 38;
			break;
		
		case -103496992:
			return 24;
			break;
		
		case 391708136:
			return 52;
			break;
		
		case 616667309:
			return 20;
			break;
		
		case 870102755:
			return 10;
			break;
		
		case 1093030262:
			return 92;
			break;
		
		case 1378218869:
			return 0;
			break;
		
		case 332555747:
			return 80;
			break;
		
		case 1077526193:
			return 34;
			break;
		
		case 1332632858:
			return 91;
			break;
		
		case 1556379590:
			return 10;
			break;
		
		case 1780093553:
			return 22;
			break;
		
		case 2001284303:
			return 14;
			break;
		
		case -2059941716:
			return 30;
			break;
		
		case -1759875983:
			return 40;
			break;
		
		case -1521153818:
			return 24;
			break;
	}
	if (iParam2 == 0 && gameplay::is_string_null_or_empty(sParam1))
	{
		return -1;
	}
	switch (iParam2)
	{
		case -518474626:
			return -1;
			break;
	}
	return -1;
}

int func_112(char* sParam0, int iParam1, int iParam2, int iParam3, int iParam4)//Position - 0x10A9E
{
	int iVar0;
	int iVar1;
	
	func_119(sParam0, -1, 0, "", "", "", "", iParam2, -1, 0);
	if (entity::does_entity_exist(iParam3) && !ped::is_ped_injured(iParam3))
	{
		iVar0 = entity::get_entity_model(iParam3);
	}
	switch (iParam2)
	{
		case 0:
			switch (iParam1)
			{
				case 0:
					func_119(sParam0, iParam1, iParam3, "TAT_MIC_01", "singleplayer_overlays", "MK_000", "", iParam2, 300, 3);
					break;
				
				case 1:
					func_119(sParam0, iParam1, iParam3, "TAT_MIC_02", "singleplayer_overlays", "MK_001", "", iParam2, 450, 0);
					break;
				
				case 2:
					func_119(sParam0, iParam1, iParam3, "TAT_MIC_03", "singleplayer_overlays", "MK_002", "", iParam2, 250, 4);
					break;
				
				case 3:
					func_119(sParam0, iParam1, iParam3, "TAT_MIC_04", "singleplayer_overlays", "MK_003", "", iParam2, 175, 0);
					break;
				
				case 4:
					func_119(sParam0, iParam1, iParam3, "TAT_MIC_06", "singleplayer_overlays", "MK_005", "", iParam2, 380, 0);
					break;
				
				case 5:
					func_119(sParam0, iParam1, iParam3, "TAT_MIC_07", "singleplayer_overlays", "MK_006", "", iParam2, 180, 0);
					break;
				
				case 6:
					func_119(sParam0, iParam1, iParam3, "TAT_MIC_08", "singleplayer_overlays", "MK_007", "", iParam2, 240, 0);
					break;
				
				case 7:
					func_119(sParam0, iParam1, iParam3, "TAT_MIC_10", "singleplayer_overlays", "MK_009", "", iParam2, 195, 0);
					break;
				
				case 8:
					func_119(sParam0, iParam1, iParam3, "TAT_MIC_11", "singleplayer_overlays", "MK_010", "", iParam2, 280, 6);
					break;
				
				case 9:
					if (func_118() || func_117())
					{
						iVar1 = 400;
						if (func_116() && (func_115() || func_114()))
						{
							iVar1 = 0;
						}
						func_119(sParam0, iParam1, iParam3, "TAT_MIC_12", "singleplayer_overlays", "MK_011", "", iParam2, iVar1, 2);
					}
					break;
				
				case 10:
					func_119(sParam0, iParam1, iParam3, "TAT_MIC_13", "singleplayer_overlays", "MK_012", "", iParam2, 320, 3);
					break;
				
				case 11:
					func_119(sParam0, iParam1, iParam3, "TAT_MIC_14", "singleplayer_overlays", "MK_013", "", iParam2, 500, 2);
					break;
				
				case 12:
					func_119(sParam0, iParam1, iParam3, "TAT_MIC_16", "singleplayer_overlays", "MK_015", "", iParam2, 220, 0);
					break;
				
				case 13:
					func_119(sParam0, iParam1, iParam3, "TAT_MIC_17", "singleplayer_overlays", "MK_016", "", iParam2, 320, 4);
					break;
				
				case 14:
					func_119(sParam0, iParam1, iParam3, "TAT_MIC_18", "singleplayer_overlays", "MK_017", "", iParam2, 140, 2);
					break;
				
				case 15:
					func_119(sParam0, iParam1, iParam3, "TAT_MIC_20", "singleplayer_overlays", "MK_019", "", iParam2, 350, 0);
					break;
				
				case 16:
					func_119(sParam0, iParam1, iParam3, "TAT_MIC_21", "singleplayer_overlays", "MK_020", "", iParam2, 350, 0);
					break;
				
				case 17:
					func_119(sParam0, iParam1, iParam3, "TAT_MIC_05", "singleplayer_overlays", "MK_004", "", iParam2, 120, 1);
					break;
				
				case 18:
					func_119(sParam0, iParam1, iParam3, "TAT_MIC_09", "singleplayer_overlays", "MK_008", "", iParam2, 99, 1);
					break;
				
				case 19:
					func_119(sParam0, iParam1, iParam3, "TAT_MIC_15", "singleplayer_overlays", "MK_014", "", iParam2, 400, 1);
					break;
				
				case 20:
					func_119(sParam0, iParam1, iParam3, "TAT_MIC_19", "singleplayer_overlays", "MK_018", "", iParam2, 420, 1);
					break;
				
				default:
					func_113(sParam0, iParam2, iParam1, 21);
					break;
			}
			break;
		
		case 1:
			switch (iParam1)
			{
				case 0:
					if (func_118() || func_117())
					{
						iVar1 = 450;
						if (func_116() && (func_115() || func_114()))
						{
							iVar1 = 0;
						}
						func_119(sParam0, iParam1, iParam3, "TAT_FRA_01", "singleplayer_overlays", "fr_000", "", iParam2, iVar1, 0);
					}
					break;
				
				case 1:
					func_119(sParam0, iParam1, iParam3, "TAT_FRA_02", "singleplayer_overlays", "fr_001", "", iParam2, 230, 0);
					break;
				
				case 2:
					func_119(sParam0, iParam1, iParam3, "TAT_FRA_03", "singleplayer_overlays", "fr_002", "", iParam2, 310, 0);
					break;
				
				case 3:
					func_119(sParam0, iParam1, iParam3, "TAT_FRA_04", "singleplayer_overlays", "fr_003", "", iParam2, 260, 0);
					break;
				
				case 4:
					func_119(sParam0, iParam1, iParam3, "TAT_FRA_07", "singleplayer_overlays", "fr_006", "", iParam2, 240, 2);
					break;
				
				case 5:
					func_119(sParam0, iParam1, iParam3, "TAT_FRA_08", "singleplayer_overlays", "fr_007", "", iParam2, 190, 3);
					break;
				
				case 6:
					func_119(sParam0, iParam1, iParam3, "TAT_FRA_09", "singleplayer_overlays", "fr_008", "", iParam2, 200, 2);
					break;
				
				case 7:
					func_119(sParam0, iParam1, iParam3, "TAT_FRA_10", "singleplayer_overlays", "fr_009", "", iParam2, 225, 0);
					break;
				
				case 8:
					func_119(sParam0, iParam1, iParam3, "TAT_FRA_12", "singleplayer_overlays", "fr_011", "", iParam2, 195, 0);
					break;
				
				case 9:
					func_119(sParam0, iParam1, iParam3, "TAT_FRA_13", "singleplayer_overlays", "fr_012", "", iParam2, 275, 2);
					break;
				
				case 10:
					func_119(sParam0, iParam1, iParam3, "TAT_FRA_14", "singleplayer_overlays", "fr_013", "", iParam2, 80, 0);
					break;
				
				case 11:
					func_119(sParam0, iParam1, iParam3, "TAT_FRA_15", "singleplayer_overlays", "fr_014", "", iParam2, 95, 0);
					break;
				
				case 12:
					func_119(sParam0, iParam1, iParam3, "TAT_FRA_16", "singleplayer_overlays", "fr_015", "", iParam2, 300, 3);
					break;
				
				case 13:
					func_119(sParam0, iParam1, iParam3, "TAT_FRA_17", "singleplayer_overlays", "fr_016", "", iParam2, 450, 3);
					break;
				
				case 14:
					func_119(sParam0, iParam1, iParam3, "TAT_FRA_18", "singleplayer_overlays", "fr_017", "", iParam2, 345, 3);
					break;
				
				case 15:
					func_119(sParam0, iParam1, iParam3, "TAT_FRA_19", "singleplayer_overlays", "fr_018", "", iParam2, 550, 0);
					break;
				
				case 16:
					func_119(sParam0, iParam1, iParam3, "TAT_FRA_20", "singleplayer_overlays", "fr_019", "", iParam2, 200, 0);
					break;
				
				case 17:
					func_119(sParam0, iParam1, iParam3, "TAT_FRA_21", "singleplayer_overlays", "fr_020", "", iParam2, 180, 0);
					break;
				
				case 18:
					func_119(sParam0, iParam1, iParam3, "TAT_FRA_22", "singleplayer_overlays", "fr_021", "", iParam2, 140, 0);
					break;
				
				case 19:
					func_119(sParam0, iParam1, iParam3, "TAT_FRA_24", "singleplayer_overlays", "fr_023", "", iParam2, 245, 0);
					break;
				
				case 20:
					break;
				
				case 21:
					func_119(sParam0, iParam1, iParam3, "TAT_FRA_26", "singleplayer_overlays", "fr_025", "", iParam2, 370, 0);
					break;
				
				case 22:
					func_119(sParam0, iParam1, iParam3, "TAT_FRA_27", "singleplayer_overlays", "fr_026", "", iParam2, 350, 0);
					break;
				
				case 23:
					func_119(sParam0, iParam1, iParam3, "TAT_FRA_28", "singleplayer_overlays", "fr_027", "", iParam2, 310, 0);
					break;
				
				case 24:
					func_119(sParam0, iParam1, iParam3, "TAT_FRA_29", "singleplayer_overlays", "fr_028", "", iParam2, 210, 0);
					break;
				
				case 25:
					func_119(sParam0, iParam1, iParam3, "TAT_FRA_30", "singleplayer_overlays", "fr_029", "", iParam2, 245, 0);
					break;
				
				case 26:
					func_119(sParam0, iParam1, iParam3, "TAT_FRA_31", "singleplayer_overlays", "fr_030", "", iParam2, 85, 0);
					break;
				
				case 27:
					func_119(sParam0, iParam1, iParam3, "TAT_FRA_32", "singleplayer_overlays", "fr_031", "", iParam2, 210, 0);
					break;
				
				case 28:
					func_119(sParam0, iParam1, iParam3, "TAT_FRA_33", "singleplayer_overlays", "fr_032", "", iParam2, 225, 0);
					break;
				
				case 29:
					func_119(sParam0, iParam1, iParam3, "TAT_FRA_34", "singleplayer_overlays", "fr_033", "", iParam2, 145, 0);
					break;
				
				case 30:
					func_119(sParam0, iParam1, iParam3, "TAT_FRA_35", "singleplayer_overlays", "fr_034", "", iParam2, 230, 0);
					break;
				
				case 31:
					func_119(sParam0, iParam1, iParam3, "TAT_FRA_36", "singleplayer_overlays", "fr_035", "", iParam2, 195, 0);
					break;
				
				case 32:
					func_119(sParam0, iParam1, iParam3, "TAT_FRA_37", "singleplayer_overlays", "fr_036", "", iParam2, 255, 0);
					break;
				
				case 33:
					func_119(sParam0, iParam1, iParam3, "TAT_FRA_38", "singleplayer_overlays", "fr_037", "", iParam2, 300, 0);
					break;
				
				case 34:
					func_119(sParam0, iParam1, iParam3, "TAT_FRA_40", "singleplayer_overlays", "fr_039", "", iParam2, 300, 0);
					break;
				
				case 35:
					func_119(sParam0, iParam1, iParam3, "TAT_FRA_05", "singleplayer_overlays", "fr_004", "", iParam2, 255, 1);
					break;
				
				case 36:
					func_119(sParam0, iParam1, iParam3, "TAT_FRA_06", "singleplayer_overlays", "fr_005", "", iParam2, 175, 1);
					break;
				
				case 37:
					func_119(sParam0, iParam1, iParam3, "TAT_FRA_11", "singleplayer_overlays", "fr_010", "", iParam2, 520, 1);
					break;
				
				case 38:
					func_119(sParam0, iParam1, iParam3, "TAT_FRA_23", "singleplayer_overlays", "fr_022", "", iParam2, 125, 1);
					break;
				
				case 39:
					func_119(sParam0, iParam1, iParam3, "TAT_FRA_39", "singleplayer_overlays", "fr_038", "", iParam2, 365, 1);
					break;
				
				default:
					func_113(sParam0, iParam2, iParam1, 40);
					break;
			}
			break;
		
		case 2:
			switch (iParam1)
			{
				case 0:
					func_119(sParam0, iParam1, iParam3, "TAT_TRV_01", "singleplayer_overlays", "tp_000", "", iParam2, 120, 0);
					break;
				
				case 1:
					func_119(sParam0, iParam1, iParam3, "TAT_TRV_02", "singleplayer_overlays", "tp_001", "", iParam2, 150, 3);
					break;
				
				case 2:
					func_119(sParam0, iParam1, iParam3, "TAT_TRV_03", "singleplayer_overlays", "tp_002", "", iParam2, 100, 0);
					break;
				
				case 3:
					func_119(sParam0, iParam1, iParam3, "TAT_TRV_04", "singleplayer_overlays", "tp_003", "", iParam2, 140, 0);
					break;
				
				case 4:
					func_119(sParam0, iParam1, iParam3, "TAT_TRV_05", "singleplayer_overlays", "tp_004", "", iParam2, 250, 0);
					break;
				
				case 5:
					if (func_118() || func_117())
					{
						iVar1 = 380;
						if (func_116() && (func_115() || func_114()))
						{
							iVar1 = 0;
						}
						func_119(sParam0, iParam1, iParam3, "TAT_TRV_06", "singleplayer_overlays", "tp_005", "", iParam2, iVar1, 3);
					}
					break;
				
				case 6:
					func_119(sParam0, iParam1, iParam3, "TAT_TRV_07", "singleplayer_overlays", "tp_006", "", iParam2, 120, 0);
					break;
				
				case 7:
					func_119(sParam0, iParam1, iParam3, "TAT_TRV_08", "singleplayer_overlays", "tp_007", "", iParam2, 250, 0);
					break;
				
				case 8:
					func_119(sParam0, iParam1, iParam3, "TAT_TRV_09", "singleplayer_overlays", "tp_008", "", iParam2, 50, 3);
					break;
				
				case 9:
					func_119(sParam0, iParam1, iParam3, "TAT_TRV_10", "singleplayer_overlays", "tp_009", "", iParam2, 135, 2);
					break;
				
				case 10:
					func_119(sParam0, iParam1, iParam3, "TAT_TRV_11", "singleplayer_overlays", "tp_010", "", iParam2, 245, 0);
					break;
				
				case 11:
					func_119(sParam0, iParam1, iParam3, "TAT_TRV_12", "singleplayer_overlays", "tp_011", "", iParam2, 280, 0);
					break;
				
				case 12:
					func_119(sParam0, iParam1, iParam3, "TAT_TRV_13", "singleplayer_overlays", "tp_012", "", iParam2, 65, 0);
					break;
				
				case 13:
					func_119(sParam0, iParam1, iParam3, "TAT_TRV_14", "singleplayer_overlays", "tp_013", "", iParam2, 150, 6);
					break;
				
				case 14:
					func_119(sParam0, iParam1, iParam3, "TAT_TRV_15", "singleplayer_overlays", "tp_014", "", iParam2, 200, 0);
					break;
				
				case 15:
					func_119(sParam0, iParam1, iParam3, "TAT_TRV_16", "singleplayer_overlays", "tp_015", "", iParam2, 145, 0);
					break;
				
				case 16:
					func_119(sParam0, iParam1, iParam3, "TAT_TRV_17", "singleplayer_overlays", "tp_016", "", iParam2, 290, 0);
					break;
				
				case 17:
					func_119(sParam0, iParam1, iParam3, "TAT_TRV_18", "singleplayer_overlays", "tp_017", "", iParam2, 350, 3);
					break;
				
				case 18:
					func_119(sParam0, iParam1, iParam3, "TAT_TRV_19", "singleplayer_overlays", "tp_018", "", iParam2, 70, 0);
					break;
				
				case 19:
					func_119(sParam0, iParam1, iParam3, "TAT_TRV_20", "singleplayer_overlays", "tp_019", "", iParam2, 180, 6);
					break;
				
				case 20:
					func_119(sParam0, iParam1, iParam3, "TAT_TRV_21", "singleplayer_overlays", "tp_020", "", iParam2, 230, 0);
					break;
				
				case 21:
					func_119(sParam0, iParam1, iParam3, "TAT_TRV_22", "singleplayer_overlays", "tp_021", "", iParam2, 200, 0);
					break;
				
				case 22:
					func_119(sParam0, iParam1, iParam3, "TAT_TRV_24", "singleplayer_overlays", "tp_023", "", iParam2, 240, 0);
					break;
				
				case 23:
					func_119(sParam0, iParam1, iParam3, "TAT_TRV_25", "singleplayer_overlays", "tp_024", "", iParam2, 195, 0);
					break;
				
				case 24:
					func_119(sParam0, iParam1, iParam3, "TAT_TRV_26", "singleplayer_overlays", "tp_025", "", iParam2, 225, 2);
					break;
				
				case 25:
					func_119(sParam0, iParam1, iParam3, "TAT_TRV_28", "singleplayer_overlays", "tp_027", "", iParam2, 175, 0);
					break;
				
				case 26:
					func_119(sParam0, iParam1, iParam3, "TAT_TRV_29", "singleplayer_overlays", "tp_028", "", iParam2, 65, 0);
					break;
				
				case 27:
					func_119(sParam0, iParam1, iParam3, "TAT_TRV_30", "singleplayer_overlays", "tp_029", "", iParam2, 50, 0);
					break;
				
				case 28:
					func_119(sParam0, iParam1, iParam3, "TAT_TRV_31", "singleplayer_overlays", "tp_030", "", iParam2, 70, 0);
					break;
				
				case 29:
					func_119(sParam0, iParam1, iParam3, "TAT_TRV_34", "singleplayer_overlays", "tp_033", "", iParam2, 70, 0);
					break;
				
				case 30:
					func_119(sParam0, iParam1, iParam3, "TAT_TRV_23", "singleplayer_overlays", "tp_022", "", iParam2, 500, 1);
					break;
				
				case 31:
					func_119(sParam0, iParam1, iParam3, "TAT_TRV_27", "singleplayer_overlays", "tp_026", "", iParam2, 300, 1);
					break;
				
				case 32:
					func_119(sParam0, iParam1, iParam3, "TAT_TRV_32", "singleplayer_overlays", "tp_031", "", iParam2, 190, 1);
					break;
				
				case 33:
					func_119(sParam0, iParam1, iParam3, "TAT_TRV_33", "singleplayer_overlays", "tp_032", "", iParam2, 129, 1);
					break;
				
				default:
					func_113(sParam0, iParam2, iParam1, 34);
					break;
			}
			break;
		
		case 3:
		case 4:
			switch (iParam1)
			{
				case 0:
					func_119(sParam0, iParam1, iParam3, "TAT_FM_008", "multiplayer_overlays", "000", "", iParam2, system::round((system::to_float(20000) * Global_262145.f_2904)), 0);
					break;
				
				case 1:
					func_119(sParam0, iParam1, iParam3, "TAT_FM_009", "multiplayer_overlays", "001", "", iParam2, system::round((system::to_float(1400) * Global_262145.f_2905)), 2);
					break;
				
				case 2:
					func_119(sParam0, iParam1, iParam3, "TAT_FM_010", "multiplayer_overlays", "002", "", iParam2, system::round((system::to_float(9750) * Global_262145.f_2906)), 3);
					break;
				
				case 3:
					func_119(sParam0, iParam1, iParam3, "TAT_FM_011", "multiplayer_overlays", "003", "", iParam2, system::round((system::to_float(2150) * Global_262145.f_2907)), 0);
					break;
				
				case 4:
					func_119(sParam0, iParam1, iParam3, "TAT_FM_012", "multiplayer_overlays", "004", "", iParam2, system::round((system::to_float(10000) * Global_262145.f_2908)), 0);
					break;
				
				case 54:
					func_119(sParam0, iParam1, iParam3, "TAT_FM_013", "multiplayer_overlays", "005", "", iParam2, system::round((system::to_float(12400) * Global_262145.f_2909)), 1);
					break;
				
				case 5:
					func_119(sParam0, iParam1, iParam3, "TAT_FM_014", "multiplayer_overlays", "006", "", iParam2, system::round((system::to_float(3500) * Global_262145.f_2910)), 0);
					break;
				
				case 6:
					func_119(sParam0, iParam1, iParam3, "TAT_FM_015", "multiplayer_overlays", "007", "", iParam2, system::round((system::to_float(4950) * Global_262145.f_2911)), 2);
					break;
				
				case 55:
					func_119(sParam0, iParam1, iParam3, "TAT_FM_016", "multiplayer_overlays", "008", "", iParam2, system::round((system::to_float(1350) * Global_262145.f_2912)), 1);
					break;
				
				case 7:
					func_119(sParam0, iParam1, iParam3, "TAT_FM_017", "multiplayer_overlays", "009", "", iParam2, system::round((system::to_float(1450) * Global_262145.f_2913)), 0);
					break;
				
				case 8:
					func_119(sParam0, iParam1, iParam3, "TAT_FM_018", "multiplayer_overlays", "010", "", iParam2, system::round((system::to_float(2700) * Global_262145.f_2914)), 7);
					break;
				
				case 9:
					func_119(sParam0, iParam1, iParam3, "TAT_FM_019", "multiplayer_overlays", "011", "rank", iParam2, system::round((system::to_float(1200) * Global_262145.f_2915)), 0);
					break;
				
				case 10:
					func_119(sParam0, iParam1, iParam3, "TAT_FM_020", "multiplayer_overlays", "012", "rank", iParam2, system::round((system::to_float(1500) * Global_262145.f_2916)), 0);
					break;
				
				case 11:
					func_119(sParam0, iParam1, iParam3, "TAT_FM_021", "multiplayer_overlays", "013", "rank", iParam2, system::round((system::to_float(2650) * Global_262145.f_2917)), 0);
					break;
				
				case 56:
					func_119(sParam0, iParam1, iParam3, "TAT_FM_022", "multiplayer_overlays", "014", "", iParam2, system::round((system::to_float(1900) * Global_262145.f_2918)), 1);
					break;
				
				case 12:
					func_119(sParam0, iParam1, iParam3, "TAT_FM_023", "multiplayer_overlays", "015", "", iParam2, system::round((system::to_float(4950) * Global_262145.f_2919)), 2);
					break;
				
				case 57:
					func_119(sParam0, iParam1, iParam3, "TAT_FM_024", "multiplayer_overlays", "016", "", iParam2, system::round((system::to_float(2400) * Global_262145.f_2920)), 1);
					break;
				
				case 58:
					func_119(sParam0, iParam1, iParam3, "TAT_FM_025", "multiplayer_overlays", "017", "", iParam2, system::round((system::to_float(5100) * Global_262145.f_2921)), 1);
					break;
				
				case 59:
					func_119(sParam0, iParam1, iParam3, "TAT_FM_026", "multiplayer_overlays", "018", "", iParam2, system::round((system::to_float(7400) * Global_262145.f_2922)), 1);
					break;
				
				case 60:
					func_119(sParam0, iParam1, iParam3, "TAT_FM_027", "multiplayer_overlays", "019", "", iParam2, system::round((system::to_float(10000) * Global_262145.f_2923)), 1);
					break;
				
				case 17:
					func_119(sParam0, iParam1, iParam3, "TAT_FM_201", "multiplayer_overlays", "005", "", iParam2, system::round((system::to_float(2400) * Global_262145.f_2928)), 2);
					break;
				
				case 18:
					func_119(sParam0, iParam1, iParam3, "TAT_FM_202", "multiplayer_overlays", "006", "", iParam2, system::round((system::to_float(5100) * Global_262145.f_2929)), 2);
					break;
				
				case 19:
					func_119(sParam0, iParam1, iParam3, "TAT_FM_203", "multiplayer_overlays", "015", "", iParam2, system::round((system::to_float(3600) * Global_262145.f_2930)), 2);
					break;
				
				case 20:
					func_119(sParam0, iParam1, iParam3, "TAT_FM_204", "multiplayer_overlays", "000", "", iParam2, system::round((system::to_float(10000) * Global_262145.f_2931)), 3);
					break;
				
				case 21:
					func_119(sParam0, iParam1, iParam3, "TAT_FM_205", "multiplayer_overlays", "001", "", iParam2, system::round((system::to_float(12500) * Global_262145.f_2932)), 3);
					break;
				
				case 22:
					func_119(sParam0, iParam1, iParam3, "TAT_FM_206", "multiplayer_overlays", "003", "", iParam2, system::round((system::to_float(10000) * Global_262145.f_2933)), 3);
					break;
				
				case 23:
					func_119(sParam0, iParam1, iParam3, "TAT_FM_207", "multiplayer_overlays", "014", "", iParam2, system::round((system::to_float(5000) * Global_262145.f_2934)), 3);
					break;
				
				case 24:
					func_119(sParam0, iParam1, iParam3, "TAT_FM_208", "multiplayer_overlays", "018", "", iParam2, system::round((system::to_float(7500) * Global_262145.f_2935)), 3);
					break;
				
				case 25:
					func_119(sParam0, iParam1, iParam3, "TAT_FM_209", "multiplayer_overlays", "002", "", iParam2, system::round((system::to_float(3750) * Global_262145.f_2936)), 2);
					break;
				
				case 26:
					func_119(sParam0, iParam1, iParam3, "TAT_FM_210", "multiplayer_overlays", "007", "", iParam2, system::round((system::to_float(3750) * Global_262145.f_2937)), 3);
					break;
				
				case 27:
					func_119(sParam0, iParam1, iParam3, "TAT_FM_211", "multiplayer_overlays", "008", "", iParam2, system::round((system::to_float(4800) * Global_262145.f_2938)), 3);
					break;
				
				case 28:
					func_119(sParam0, iParam1, iParam3, "TAT_FM_212", "multiplayer_overlays", "017", "", iParam2, system::round((system::to_float(3500) * Global_262145.f_2939)), 3);
					break;
				
				case 61:
					func_119(sParam0, iParam1, iParam3, "TAT_FM_213", "multiplayer_overlays", "009", "", iParam2, system::round((system::to_float(12350) * Global_262145.f_2940)), 1);
					break;
				
				case 62:
					func_119(sParam0, iParam1, iParam3, "TAT_FM_214", "multiplayer_overlays", "011", "", iParam2, system::round((system::to_float(1900) * Global_262145.f_2941)), 1);
					break;
				
				case 63:
					func_119(sParam0, iParam1, iParam3, "TAT_FM_215", "multiplayer_overlays", "013", "", iParam2, system::round((system::to_float(4500) * Global_262145.f_2942)), 1);
					break;
				
				case 64:
					func_119(sParam0, iParam1, iParam3, "TAT_FM_216", "multiplayer_overlays", "016", "", iParam2, system::round((system::to_float(12250) * Global_262145.f_2943)), 1);
					break;
				
				case 65:
					func_119(sParam0, iParam1, iParam3, "TAT_FM_217", "multiplayer_overlays", "019", "", iParam2, system::round((system::to_float(12300) * Global_262145.f_2944)), 1);
					break;
				
				case 29:
					func_119(sParam0, iParam1, iParam3, "TAT_FM_218", "multiplayer_overlays", "010", "", iParam2, system::round((system::to_float(2500) * Global_262145.f_2945)), 0);
					break;
				
				case 30:
					func_119(sParam0, iParam1, iParam3, "TAT_FM_219", "multiplayer_overlays", "004", "", iParam2, system::round((system::to_float(10000) * Global_262145.f_2946)), 0);
					break;
				
				case 31:
					func_119(sParam0, iParam1, iParam3, "TAT_FM_220", "multiplayer_overlays", "012", "", iParam2, system::round((system::to_float(10000) * Global_262145.f_2947)), 0);
					break;
				
				case 66:
					func_119(sParam0, iParam1, iParam3, "TAT_FM_221", "multiplayer_overlays", "020", "", iParam2, system::round((system::to_float(7500) * Global_262145.f_2948)), 1);
					break;
				
				case 32:
					func_119(sParam0, iParam1, iParam3, "TAT_FM_222", "multiplayer_overlays", "021", "", iParam2, system::round((system::to_float(5000) * Global_262145.f_2949)), 2);
					break;
				
				case 33:
					func_119(sParam0, iParam1, iParam3, "TAT_FM_223", "multiplayer_overlays", "022", "", iParam2, system::round((system::to_float(7300) * Global_262145.f_2950)), 3);
					break;
				
				case 34:
					func_119(sParam0, iParam1, iParam3, "TAT_FM_224", "multiplayer_overlays", "023", "", iParam2, system::round((system::to_float(7250) * Global_262145.f_2951)), 2);
					break;
				
				case 35:
					func_119(sParam0, iParam1, iParam3, "TAT_FM_225", "multiplayer_overlays", "024", "", iParam2, system::round((system::to_float(11900) * Global_262145.f_2952)), 0);
					break;
				
				case 36:
					func_119(sParam0, iParam1, iParam3, "TAT_FM_226", "multiplayer_overlays", "025", "", iParam2, system::round((system::to_float(2750) * Global_262145.f_2953)), 0);
					break;
				
				case 37:
					func_119(sParam0, iParam1, iParam3, "TAT_FM_227", "multiplayer_overlays", "026", "", iParam2, system::round((system::to_float(1750) * Global_262145.f_2954)), 0);
					break;
				
				case 38:
					func_119(sParam0, iParam1, iParam3, "TAT_FM_228", "multiplayer_overlays", "027", "", iParam2, system::round((system::to_float(7300) * Global_262145.f_2955)), 3);
					break;
				
				case 39:
					func_119(sParam0, iParam1, iParam3, "TAT_FM_229", "multiplayer_overlays", "028", "", iParam2, system::round((system::to_float(3250) * Global_262145.f_2956)), 2);
					break;
				
				case 40:
					func_119(sParam0, iParam1, iParam3, "TAT_FM_230", "multiplayer_overlays", "029", "", iParam2, system::round((system::to_float(1000) * Global_262145.f_2957)), 0);
					break;
				
				case 67:
					func_119(sParam0, iParam1, iParam3, "TAT_FM_231", "multiplayer_overlays", "030", "", iParam2, system::round((system::to_float(5000) * Global_262145.f_2958)), 1);
					break;
				
				case 41:
					func_119(sParam0, iParam1, iParam3, "TAT_FM_232", "multiplayer_overlays", "031", "", iParam2, system::round((system::to_float(7500) * Global_262145.f_2959)), 2);
					break;
				
				case 68:
					func_119(sParam0, iParam1, iParam3, "TAT_FM_233", "multiplayer_overlays", "032", "", iParam2, system::round((system::to_float(5100) * Global_262145.f_2960)), 1);
					break;
				
				case 42:
					func_119(sParam0, iParam1, iParam3, "TAT_FM_234", "multiplayer_overlays", "033", "", iParam2, system::round((system::to_float(5050) * Global_262145.f_2961)), 0);
					break;
				
				case 43:
					func_119(sParam0, iParam1, iParam3, "TAT_FM_235", "multiplayer_overlays", "034", "", iParam2, system::round((system::to_float(2450) * Global_262145.f_2962)), 2);
					break;
				
				case 44:
					func_119(sParam0, iParam1, iParam3, "TAT_FM_236", "multiplayer_overlays", "035", "", iParam2, system::round((system::to_float(4950) * Global_262145.f_2963)), 0);
					break;
				
				case 45:
					func_119(sParam0, iParam1, iParam3, "TAT_FM_237", "multiplayer_overlays", "036", "", iParam2, system::round((system::to_float(5100) * Global_262145.f_2964)), 0);
					break;
				
				case 46:
					func_119(sParam0, iParam1, iParam3, "TAT_FM_238", "multiplayer_overlays", "037", "", iParam2, system::round((system::to_float(12250) * Global_262145.f_2965)), 0);
					break;
				
				case 47:
					func_119(sParam0, iParam1, iParam3, "TAT_FM_239", "multiplayer_overlays", "038", "", iParam2, system::round((system::to_float(1150) * Global_262145.f_2966)), 3);
					break;
				
				case 48:
					func_119(sParam0, iParam1, iParam3, "TAT_FM_240", "multiplayer_overlays", "039", "", iParam2, system::round((system::to_float(7500) * Global_262145.f_2967)), 3);
					break;
				
				case 49:
					func_119(sParam0, iParam1, iParam3, "TAT_FM_241", "multiplayer_overlays", "040", "", iParam2, system::round((system::to_float(7600) * Global_262145.f_2968)), 3);
					break;
				
				case 50:
					func_119(sParam0, iParam1, iParam3, "TAT_FM_242", "multiplayer_overlays", "041", "", iParam2, system::round((system::to_float(2600) * Global_262145.f_2969)), 2);
					break;
				
				case 51:
					func_119(sParam0, iParam1, iParam3, "TAT_FM_243", "multiplayer_overlays", "042", "", iParam2, system::round((system::to_float(2500) * Global_262145.f_2970)), 3);
					break;
				
				case 52:
					func_119(sParam0, iParam1, iParam3, "TAT_FM_244", "multiplayer_overlays", "043", "", iParam2, system::round((system::to_float(7450) * Global_262145.f_2971)), 3);
					break;
				
				case 53:
					func_119(sParam0, iParam1, iParam3, "TAT_FM_245", "multiplayer_overlays", "044", "", iParam2, system::round((system::to_float(7500) * Global_262145.f_2972)), 0);
					break;
				
				case 69:
					func_119(sParam0, iParam1, iParam3, "TAT_FM_246", "multiplayer_overlays", "045", "", iParam2, system::round((system::to_float(10000) * Global_262145.f_2973)), 1);
					break;
				
				case 70:
					func_119(sParam0, iParam1, iParam3, "TAT_FM_247", "multiplayer_overlays", "047", "", iParam2, system::round((system::to_float(2500) * Global_262145.f_2974)), 2);
					break;
			}
			if (iVar0 == joaat("mp_m_freemode_01"))
			{
				switch (iParam1)
				{
					case 73:
						func_119(sParam0, iParam1, iParam3, "NO_LABEL", "multiplayer_overlays", "mp_fm_branding_001", "torsoDecal", iParam2, 100, 0);
						break;
					
					case 74:
						func_119(sParam0, iParam1, iParam3, "NO_LABEL", "multiplayer_overlays", "mp_fm_branding_002", "torsoDecal", iParam2, 100, 0);
						break;
					
					case 75:
						func_119(sParam0, iParam1, iParam3, "NO_LABEL", "multiplayer_overlays", "mp_fm_branding_003", "torsoDecal", iParam2, 100, 0);
						break;
					
					case 76:
						func_119(sParam0, iParam1, iParam3, "NO_LABEL", "multiplayer_overlays", "mp_fm_branding_004", "torsoDecal", iParam2, 100, 0);
						break;
					
					case 77:
						func_119(sParam0, iParam1, iParam3, "NO_LABEL", "multiplayer_overlays", "mp_fm_branding_005", "torsoDecal", iParam2, 100, 0);
						break;
					
					case 78:
						func_119(sParam0, iParam1, iParam3, "NO_LABEL", "multiplayer_overlays", "mp_fm_branding_006", "torsoDecal", iParam2, 100, 0);
						break;
					
					case 79:
						func_119(sParam0, iParam1, iParam3, "NO_LABEL", "multiplayer_overlays", "mp_fm_branding_009", "torsoDecal", iParam2, 100, 0);
						break;
					
					case 80:
						func_119(sParam0, iParam1, iParam3, "NO_LABEL", "multiplayer_overlays", "mp_fm_branding_013", "torsoDecal", iParam2, 100, 0);
						break;
					
					case 81:
						func_119(sParam0, iParam1, iParam3, "NO_LABEL", "multiplayer_overlays", "mp_fm_branding_014", "torsoDecal", iParam2, 100, 0);
						break;
					
					case 82:
						func_119(sParam0, iParam1, iParam3, "NO_LABEL", "multiplayer_overlays", "mp_fm_branding_015", "torsoDecal", iParam2, 100, 0);
						break;
					
					case 83:
						func_119(sParam0, iParam1, iParam3, "NO_LABEL", "multiplayer_overlays", "mp_fm_branding_016", "torsoDecal", iParam2, 100, 0);
						break;
					
					case 84:
						func_119(sParam0, iParam1, iParam3, "NO_LABEL", "multiplayer_overlays", "mp_fm_branding_019", "torsoDecal", iParam2, 100, 0);
						break;
					
					case 85:
						func_119(sParam0, iParam1, iParam3, "NO_LABEL", "multiplayer_overlays", "mp_fm_branding_020", "torsoDecal", iParam2, 100, 0);
						break;
					
					case 86:
						func_119(sParam0, iParam1, iParam3, "NO_LABEL", "multiplayer_overlays", "mp_fm_branding_036", "torsoDecal", iParam2, 100, 0);
						break;
					
					case 90:
						func_119(sParam0, iParam1, iParam3, "NO_LABEL", "multiplayer_overlays", "mp_fm_branding_017", "torsoDecal", iParam2, 100, 0);
						break;
					
					case 91:
						func_119(sParam0, iParam1, iParam3, "NO_LABEL", "multiplayer_overlays", "mp_fm_branding_018", "torsoDecal", iParam2, 100, 0);
						break;
					
					case 124:
						func_119(sParam0, iParam1, iParam3, "NO_LABEL", "multiplayer_overlays", "mp_fm_branding_046", "torsoDecal", iParam2, 100, 0);
						break;
					
					case 125:
						func_119(sParam0, iParam1, iParam3, "NO_LABEL", "multiplayer_overlays", "mp_fm_branding_045", "torsoDecal", iParam2, 100, 0);
						break;
					
					case 87:
						func_119(sParam0, iParam1, iParam3, "NO_LABEL", "multiplayer_overlays", "FM_Tshirt_Award_000", "torsoDecal", iParam2, system::round((system::to_float(100) * Global_262145.f_2975)), 0);
						break;
					
					case 88:
						func_119(sParam0, iParam1, iParam3, "NO_LABEL", "multiplayer_overlays", "FM_Tshirt_Award_001", "torsoDecal", iParam2, system::round((system::to_float(100) * Global_262145.f_2976)), 0);
						break;
					
					case 89:
						func_119(sParam0, iParam1, iParam3, "NO_LABEL", "multiplayer_overlays", "FM_Tshirt_Award_002", "torsoDecal", iParam2, system::round((system::to_float(100) * Global_262145.f_2977)), 0);
						break;
					
					case 93:
						func_119(sParam0, iParam1, iParam3, "NO_LABEL", "multiplayer_overlays", "NG_M_Hair_001", "hairOverlay", iParam2, 100, 0);
						break;
					
					case 94:
						func_119(sParam0, iParam1, iParam3, "NO_LABEL", "multiplayer_overlays", "NG_M_Hair_002", "hairOverlay", iParam2, 100, 0);
						break;
					
					case 95:
						func_119(sParam0, iParam1, iParam3, "NO_LABEL", "multiplayer_overlays", "NG_M_Hair_003", "hairOverlay", iParam2, 100, 0);
						break;
					
					case 96:
						func_119(sParam0, iParam1, iParam3, "NO_LABEL", "multiplayer_overlays", "NG_M_Hair_004", "hairOverlay", iParam2, 100, 0);
						break;
					
					case 97:
						func_119(sParam0, iParam1, iParam3, "NO_LABEL", "multiplayer_overlays", "NG_M_Hair_005", "hairOverlay", iParam2, 100, 0);
						break;
					
					case 98:
						func_119(sParam0, iParam1, iParam3, "NO_LABEL", "multiplayer_overlays", "NG_M_Hair_006", "hairOverlay", iParam2, 100, 0);
						break;
					
					case 99:
						func_119(sParam0, iParam1, iParam3, "NO_LABEL", "multiplayer_overlays", "NG_M_Hair_007", "hairOverlay", iParam2, 100, 0);
						break;
					
					case 100:
						func_119(sParam0, iParam1, iParam3, "NO_LABEL", "multiplayer_overlays", "NG_M_Hair_008", "hairOverlay", iParam2, 100, 0);
						break;
					
					case 101:
						func_119(sParam0, iParam1, iParam3, "NO_LABEL", "multiplayer_overlays", "NG_M_Hair_009", "hairOverlay", iParam2, 100, 0);
						break;
					
					case 102:
						func_119(sParam0, iParam1, iParam3, "NO_LABEL", "multiplayer_overlays", "NG_M_Hair_010", "hairOverlay", iParam2, 100, 0);
						break;
					
					case 103:
						func_119(sParam0, iParam1, iParam3, "NO_LABEL", "multiplayer_overlays", "NG_M_Hair_011", "hairOverlay", iParam2, 100, 0);
						break;
					
					case 104:
						func_119(sParam0, iParam1, iParam3, "NO_LABEL", "multiplayer_overlays", "NG_M_Hair_012", "hairOverlay", iParam2, 100, 0);
						break;
					
					case 105:
						func_119(sParam0, iParam1, iParam3, "NO_LABEL", "multiplayer_overlays", "NG_M_Hair_013", "hairOverlay", iParam2, 100, 0);
						break;
					
					case 106:
						func_119(sParam0, iParam1, iParam3, "NO_LABEL", "multiplayer_overlays", "NG_M_Hair_014", "hairOverlay", iParam2, 100, 0);
						break;
					
					case 107:
						func_119(sParam0, iParam1, iParam3, "NO_LABEL", "multiplayer_overlays", "NG_M_Hair_015", "hairOverlay", iParam2, 100, 0);
						break;
					
					case 108:
						func_119(sParam0, iParam1, iParam3, "NO_LABEL", "multiplayer_overlays", "NGBea_M_Hair_000", "hairOverlay", iParam2, 100, 0);
						break;
					
					case 109:
						func_119(sParam0, iParam1, iParam3, "NO_LABEL", "multiplayer_overlays", "NGBea_M_Hair_001", "hairOverlay", iParam2, 100, 0);
						break;
					
					case 110:
						func_119(sParam0, iParam1, iParam3, "NO_LABEL", "multiplayer_overlays", "NGBus_M_Hair_000", "hairOverlay", iParam2, 100, 0);
						break;
					
					case 111:
						func_119(sParam0, iParam1, iParam3, "NO_LABEL", "multiplayer_overlays", "NGBus_M_Hair_001", "hairOverlay", iParam2, 100, 0);
						break;
					
					case 112:
						func_119(sParam0, iParam1, iParam3, "NO_LABEL", "multiplayer_overlays", "NGHip_M_Hair_000", "hairOverlay", iParam2, 100, 0);
						break;
					
					case 113:
						func_119(sParam0, iParam1, iParam3, "NO_LABEL", "multiplayer_overlays", "NGHip_M_Hair_001", "hairOverlay", iParam2, 100, 0);
						break;
					
					case 114:
						func_119(sParam0, iParam1, iParam3, "NO_LABEL", "multiplayer_overlays", "NGInd_M_Hair_000", "hairOverlay", iParam2, 100, 0);
						break;
					
					case 115:
						func_119(sParam0, iParam1, iParam3, "NO_LABEL", "multiplayer_overlays", "not_in_use", "hairOverlay", iParam2, 100, 0);
						break;
					
					case 116:
						func_119(sParam0, iParam1, iParam3, "NO_LABEL", "multiplayer_overlays", "not_in_use", "hairOverlay", iParam2, 100, 0);
						break;
					
					case 117:
						func_119(sParam0, iParam1, iParam3, "NO_LABEL", "multiplayer_overlays", "not_in_use", "hairOverlay", iParam2, 100, 0);
						break;
					
					case 123:
						func_119(sParam0, iParam1, iParam3, "NO_LABEL", "mpBeach_overlays", "FM_Hair_Fuzz", "hairOverlay", iParam2, 100, 0);
						break;
					
					case 13:
						func_119(sParam0, iParam1, iParam3, "TAT_FM_100", "multiplayer_overlays", "000_A", "crewLogo", iParam2, system::round((system::to_float(5000) * Global_262145.f_2924)), 0);
						break;
					
					case 14:
						func_119(sParam0, iParam1, iParam3, "TAT_FM_101", "multiplayer_overlays", "000_B", "crewLogo", iParam2, system::round((system::to_float(10000) * Global_262145.f_2925)), 0);
						break;
					
					case 15:
						func_119(sParam0, iParam1, iParam3, "TAT_FMM_CLB", "multiplayer_overlays", "000_C", "crewLogo", iParam2, system::round((system::to_float(10000) * Global_262145.f_2926)), 2);
						break;
					
					case 16:
						func_119(sParam0, iParam1, iParam3, "TAT_FM_100", "multiplayer_overlays", "000_D", "crewLogo", iParam2, system::round((system::to_float(5000) * Global_262145.f_2927)), 0);
						break;
					
					case 71:
						func_119(sParam0, iParam1, iParam3, "TAT_FM_101", "multiplayer_overlays", "000_E", "crewLogo", iParam2, system::round((system::to_float(10000) * Global_262145.f_2927)), 0);
						break;
					
					case 72:
						func_119(sParam0, iParam1, iParam3, "TAT_FMM_CLB", "multiplayer_overlays", "000_F", "crewLogo", iParam2, system::round((system::to_float(10000) * Global_262145.f_2927)), 0);
						break;
				}
			}
			else if (iVar0 == joaat("mp_f_freemode_01"))
			{
				switch (iParam1)
				{
					case 73:
						func_119(sParam0, iParam1, iParam3, "NO_LABEL", "multiplayer_overlays", "mp_fm_branding_027_f", "torsoDecal", iParam2, 100, 0);
						break;
					
					case 74:
						func_119(sParam0, iParam1, iParam3, "NO_LABEL", "multiplayer_overlays", "mp_fm_branding_028_f", "torsoDecal", iParam2, 100, 0);
						break;
					
					case 75:
						func_119(sParam0, iParam1, iParam3, "NO_LABEL", "multiplayer_overlays", "mp_fm_branding_034_f", "torsoDecal", iParam2, 100, 0);
						break;
					
					case 76:
						func_119(sParam0, iParam1, iParam3, "NO_LABEL", "multiplayer_overlays", "mp_fm_branding_036_f", "torsoDecal", iParam2, 100, 0);
						break;
					
					case 77:
						func_119(sParam0, iParam1, iParam3, "NO_LABEL", "multiplayer_overlays", "mp_fm_branding_048", "torsoDecal", iParam2, 100, 0);
						break;
					
					case 78:
						func_119(sParam0, iParam1, iParam3, "NO_LABEL", "multiplayer_overlays", "mp_fm_branding_052", "torsoDecal", iParam2, 100, 0);
						break;
					
					case 79:
						func_119(sParam0, iParam1, iParam3, "NO_LABEL", "multiplayer_overlays", "mp_fm_branding_053", "torsoDecal", iParam2, 100, 0);
						break;
					
					case 80:
						func_119(sParam0, iParam1, iParam3, "NO_LABEL", "multiplayer_overlays", "mp_fm_branding_054", "torsoDecal", iParam2, 100, 0);
						break;
					
					case 81:
						func_119(sParam0, iParam1, iParam3, "NO_LABEL", "multiplayer_overlays", "mp_fm_branding_055", "torsoDecal", iParam2, 100, 0);
						break;
					
					case 82:
						func_119(sParam0, iParam1, iParam3, "NO_LABEL", "multiplayer_overlays", "mp_fm_branding_056", "torsoDecal", iParam2, 100, 0);
						break;
					
					case 83:
						func_119(sParam0, iParam1, iParam3, "NO_LABEL", "multiplayer_overlays", "mp_fm_branding_058", "torsoDecal", iParam2, 100, 0);
						break;
					
					case 84:
						func_119(sParam0, iParam1, iParam3, "NO_LABEL", "multiplayer_overlays", "mp_fm_branding_067", "torsoDecal", iParam2, 100, 0);
						break;
					
					case 85:
						func_119(sParam0, iParam1, iParam3, "NO_LABEL", "multiplayer_overlays", "mp_fm_branding_068", "torsoDecal", iParam2, 100, 0);
						break;
					
					case 92:
						func_119(sParam0, iParam1, iParam3, "NO_LABEL", "multiplayer_overlays", "mp_fm_branding_051", "torsoDecal", iParam2, 100, 0);
						break;
					
					case 87:
						func_119(sParam0, iParam1, iParam3, "NO_LABEL", "multiplayer_overlays", "FM_Tshirt_Award_F_000", "torsoDecal", iParam2, system::round((system::to_float(100) * Global_262145.f_2975)), 0);
						break;
					
					case 88:
						func_119(sParam0, iParam1, iParam3, "NO_LABEL", "multiplayer_overlays", "FM_Tshirt_Award_F_001", "torsoDecal", iParam2, system::round((system::to_float(100) * Global_262145.f_2976)), 0);
						break;
					
					case 89:
						func_119(sParam0, iParam1, iParam3, "NO_LABEL", "multiplayer_overlays", "FM_Tshirt_Award_F_002", "torsoDecal", iParam2, system::round((system::to_float(100) * Global_262145.f_2977)), 0);
						break;
					
					case 93:
						func_119(sParam0, iParam1, iParam3, "NO_LABEL", "multiplayer_overlays", "NG_F_Hair_001", "hairOverlay", iParam2, 100, 0);
						break;
					
					case 94:
						func_119(sParam0, iParam1, iParam3, "NO_LABEL", "multiplayer_overlays", "NG_F_Hair_002", "hairOverlay", iParam2, 100, 0);
						break;
					
					case 95:
						func_119(sParam0, iParam1, iParam3, "NO_LABEL", "multiplayer_overlays", "NG_F_Hair_003", "hairOverlay", iParam2, 100, 0);
						break;
					
					case 96:
						func_119(sParam0, iParam1, iParam3, "NO_LABEL", "multiplayer_overlays", "NG_F_Hair_004", "hairOverlay", iParam2, 100, 0);
						break;
					
					case 97:
						func_119(sParam0, iParam1, iParam3, "NO_LABEL", "multiplayer_overlays", "NG_F_Hair_005", "hairOverlay", iParam2, 100, 0);
						break;
					
					case 98:
						func_119(sParam0, iParam1, iParam3, "NO_LABEL", "multiplayer_overlays", "NG_F_Hair_006", "hairOverlay", iParam2, 100, 0);
						break;
					
					case 99:
						func_119(sParam0, iParam1, iParam3, "NO_LABEL", "multiplayer_overlays", "NG_F_Hair_007", "hairOverlay", iParam2, 100, 0);
						break;
					
					case 100:
						func_119(sParam0, iParam1, iParam3, "NO_LABEL", "multiplayer_overlays", "NG_F_Hair_008", "hairOverlay", iParam2, 100, 0);
						break;
					
					case 101:
						func_119(sParam0, iParam1, iParam3, "NO_LABEL", "multiplayer_overlays", "NG_F_Hair_009", "hairOverlay", iParam2, 100, 0);
						break;
					
					case 102:
						func_119(sParam0, iParam1, iParam3, "NO_LABEL", "multiplayer_overlays", "NG_F_Hair_010", "hairOverlay", iParam2, 100, 0);
						break;
					
					case 103:
						func_119(sParam0, iParam1, iParam3, "NO_LABEL", "multiplayer_overlays", "NG_F_Hair_011", "hairOverlay", iParam2, 100, 0);
						break;
					
					case 104:
						func_119(sParam0, iParam1, iParam3, "NO_LABEL", "multiplayer_overlays", "NG_F_Hair_012", "hairOverlay", iParam2, 100, 0);
						break;
					
					case 105:
						func_119(sParam0, iParam1, iParam3, "NO_LABEL", "multiplayer_overlays", "NG_F_Hair_013", "hairOverlay", iParam2, 100, 0);
						break;
					
					case 106:
						func_119(sParam0, iParam1, iParam3, "NO_LABEL", "multiplayer_overlays", "NG_F_Hair_014", "hairOverlay", iParam2, 100, 0);
						break;
					
					case 107:
						func_119(sParam0, iParam1, iParam3, "NO_LABEL", "multiplayer_overlays", "NG_F_Hair_015", "hairOverlay", iParam2, 100, 0);
						break;
					
					case 108:
						func_119(sParam0, iParam1, iParam3, "NO_LABEL", "multiplayer_overlays", "NGBea_F_Hair_000", "hairOverlay", iParam2, 100, 0);
						break;
					
					case 109:
						func_119(sParam0, iParam1, iParam3, "NO_LABEL", "multiplayer_overlays", "NGBea_F_Hair_001", "hairOverlay", iParam2, 100, 0);
						break;
					
					case 110:
						func_119(sParam0, iParam1, iParam3, "NO_LABEL", "multiplayer_overlays", "NGBus_F_Hair_000", "hairOverlay", iParam2, 100, 0);
						break;
					
					case 111:
						func_119(sParam0, iParam1, iParam3, "NO_LABEL", "multiplayer_overlays", "NGBus_F_Hair_001", "hairOverlay", iParam2, 100, 0);
						break;
					
					case 112:
						func_119(sParam0, iParam1, iParam3, "NO_LABEL", "multiplayer_overlays", "NGHip_F_Hair_000", "hairOverlay", iParam2, 100, 0);
						break;
					
					case 113:
						func_119(sParam0, iParam1, iParam3, "NO_LABEL", "multiplayer_overlays", "NGHip_F_Hair_001", "hairOverlay", iParam2, 100, 0);
						break;
					
					case 114:
						func_119(sParam0, iParam1, iParam3, "NO_LABEL", "multiplayer_overlays", "NGInd_F_Hair_000", "hairOverlay", iParam2, 100, 0);
						break;
					
					case 115:
						func_119(sParam0, iParam1, iParam3, "NO_LABEL", "multiplayer_overlays", "not_in_use", "hairOverlay", iParam2, 100, 0);
						break;
					
					case 116:
						func_119(sParam0, iParam1, iParam3, "NO_LABEL", "multiplayer_overlays", "not_in_use", "hairOverlay", iParam2, 100, 0);
						break;
					
					case 117:
						func_119(sParam0, iParam1, iParam3, "NO_LABEL", "multiplayer_overlays", "not_in_use", "hairOverlay", iParam2, 100, 0);
						break;
					
					case 118:
						func_119(sParam0, iParam1, iParam3, "NO_LABEL", "multiplayer_overlays", "not_in_use", "hairOverlay", iParam2, 100, 0);
						break;
					
					case 119:
						func_119(sParam0, iParam1, iParam3, "NO_LABEL", "multiplayer_overlays", "not_in_use", "hairOverlay", iParam2, 100, 0);
						break;
					
					case 120:
						func_119(sParam0, iParam1, iParam3, "NO_LABEL", "multiplayer_overlays", "not_in_use", "hairOverlay", iParam2, 100, 0);
						break;
					
					case 121:
						func_119(sParam0, iParam1, iParam3, "NO_LABEL", "multiplayer_overlays", "not_in_use", "hairOverlay", iParam2, 100, 0);
						break;
					
					case 122:
						func_119(sParam0, iParam1, iParam3, "NO_LABEL", "multiplayer_overlays", "not_in_use", "hairOverlay", iParam2, 100, 0);
						break;
					
					case 123:
						func_119(sParam0, iParam1, iParam3, "NO_LABEL", "mpBeach_overlays", "FM_Hair_Fuzz", "hairOverlay", iParam2, 100, 0);
						break;
					
					case 13:
						func_119(sParam0, iParam1, iParam3, "TAT_FM_100", "multiplayer_overlays", "000_A", "crewLogo", iParam2, system::round((system::to_float(5000) * Global_262145.f_2924)), 0);
						break;
					
					case 14:
						func_119(sParam0, iParam1, iParam3, "TAT_FM_100", "multiplayer_overlays", "000_B", "crewLogo", iParam2, system::round((system::to_float(5000) * Global_262145.f_2925)), 0);
						break;
					
					case 15:
						func_119(sParam0, iParam1, iParam3, "TAT_FM_101", "multiplayer_overlays", "000_C", "crewLogo", iParam2, system::round((system::to_float(10000) * Global_262145.f_2926)), 2);
						break;
					
					case 16:
						func_119(sParam0, iParam1, iParam3, "TAT_FM_101", "multiplayer_overlays", "000_D", "crewLogo", iParam2, system::round((system::to_float(10000) * Global_262145.f_2927)), 0);
						break;
					}
			}
			break;
	}
	if ((iParam2 == 3 || iParam2 == 4) && iParam1 >= 129)
	{
		func_113(sParam0, iParam2, iParam1, 129);
	}
	if (iParam4 == 22)
	{
		sParam0->f_7 *= 2;
	}
	return sParam0->f_11 != -1;
}

void func_113(char* sParam0, int iParam1, int iParam2, int iParam3)//Position - 0x13B50
{
	int iVar0;
	int iVar1;
	struct<8> Var2;
	
	iVar0 = (iParam2 - iParam3);
	iVar1 = dlc1::_0x278F76C3B0A8F109(iParam1);
	if (iVar1 > 0 && iVar0 < iVar1)
	{
		if (dlc1::_0xFF56381874F82086(iParam1, iVar0, &Var2))
		{
			if (!dlc1::_is_dlc_data_empty(Var2))
			{
				sParam0->f_11 = iParam2;
				MemCopy(sParam0, {Var2.f_7}, 4);
				sParam0->f_5 = Var2.f_3;
				sParam0->f_4 = Var2.f_2;
				sParam0->f_8 = Var2.f_6;
				sParam0->f_6 = iParam1;
				sParam0->f_7 = Var2.f_4;
				sParam0->f_9 = (iParam2 / 32);
				sParam0->f_10 = (iParam2 % 32);
				sParam0->f_12 = Var2.f_5;
			}
		}
	}
}

bool func_114()//Position - 0x13BE2
{
	int iVar0;
	int iVar1;
	int iVar2;
	int iVar3;
	int iVar4;
	
	if (gameplay::is_bit_set(Global_25, 5))
	{
		if (gameplay::is_bit_set(Global_25, 1) || gameplay::is_bit_set(Global_25, 3))
		{
			return true;
		}
		else
		{
			return false;
		}
	}
	if (stats::stat_get_int(joaat("sp_unlock_exclus_content"), &iVar0, -1))
	{
		if (gameplay::is_bit_set(iVar0, 5))
		{
			if (gameplay::is_bit_set(iVar0, 1) || gameplay::is_bit_set(iVar0, 3))
			{
				return true;
			}
			else
			{
				return false;
			}
		}
	}
	if (stats::stat_slot_is_loaded(0))
	{
		if (Global_139116.f_3)
		{
			iVar2 = joaat("mpply_plat_up_lb_check");
			if (stats::stat_get_int(iVar2, &iVar1, -1))
			{
				if (gameplay::is_bit_set(iVar1, 5))
				{
					return true;
				}
			}
		}
	}
	if (gameplay::_0x5AA3BEFA29F03AD4())
	{
		iVar3 = gameplay::get_profile_setting(866);
		if (gameplay::is_bit_set(iVar3, 1) || gameplay::is_bit_set(iVar3, 3))
		{
			return true;
		}
	}
	if (network::network_is_signed_in())
	{
		if (network::_network_are_ros_available())
		{
			if (network::_0x91B87C55093DE351())
			{
				stats::stat_get_int(joaat("sp_unlock_exclus_content"), &iVar4, -1);
				gameplay::set_bit(&iVar4, 1);
				gameplay::set_bit(&iVar4, 3);
				gameplay::set_bit(&iVar4, 5);
				gameplay::set_bit(&Global_25, 1);
				gameplay::set_bit(&Global_25, 3);
				gameplay::set_bit(&Global_25, 5);
				stats::stat_set_int(joaat("sp_unlock_exclus_content"), iVar4, 1);
				if (gameplay::_0x5AA3BEFA29F03AD4())
				{
					iVar4 = gameplay::get_profile_setting(866);
					gameplay::set_bit(&iVar4, 1);
					gameplay::set_bit(&iVar4, 3);
					stats::_0xDAC073C7901F9E15(iVar4);
				}
				return true;
			}
		}
	}
	return false;
}

bool func_115()//Position - 0x13D36
{
	int iVar0;
	int iVar1;
	int iVar2;
	int iVar3;
	
	if (gameplay::is_bit_set(Global_25, 6))
	{
		if (gameplay::is_bit_set(Global_25, 2) || gameplay::is_bit_set(Global_25, 4))
		{
			return true;
		}
		else
		{
			return false;
		}
	}
	if (stats::stat_get_int(joaat("sp_unlock_exclus_content"), &iVar0, -1))
	{
		if (gameplay::is_bit_set(iVar0, 6))
		{
			if (gameplay::is_bit_set(iVar0, 2) || gameplay::is_bit_set(iVar0, 4))
			{
				return true;
			}
			else
			{
				return false;
			}
		}
	}
	if (stats::stat_slot_is_loaded(0))
	{
		if (Global_139116.f_3)
		{
			iVar2 = joaat("mpply_plat_up_lb_check");
			if (stats::stat_get_int(iVar2, &iVar1, -1))
			{
				if (gameplay::is_bit_set(iVar1, 8))
				{
					return true;
				}
			}
		}
	}
	if (gameplay::_0x5AA3BEFA29F03AD4())
	{
		iVar3 = gameplay::get_profile_setting(866);
		if (gameplay::is_bit_set(iVar3, 2) || gameplay::is_bit_set(iVar3, 4))
		{
			return true;
		}
	}
	return false;
}

bool func_116()//Position - 0x13E07
{
	int iVar0;
	
	if (network::network_is_signed_in())
	{
		if (network::_network_are_ros_available())
		{
			if (network::_0x593570C289A77688())
			{
				stats::stat_get_int(joaat("sp_unlock_exclus_content"), &iVar0, -1);
				gameplay::set_bit(&iVar0, 2);
				gameplay::set_bit(&iVar0, 4);
				gameplay::set_bit(&iVar0, 6);
				gameplay::set_bit(&Global_25, 2);
				gameplay::set_bit(&Global_25, 4);
				gameplay::set_bit(&Global_25, 6);
				stats::stat_set_int(joaat("sp_unlock_exclus_content"), iVar0, 1);
				if (gameplay::_0x5AA3BEFA29F03AD4())
				{
					iVar0 = gameplay::get_profile_setting(866);
					gameplay::set_bit(&iVar0, 0);
					stats::_0xDAC073C7901F9E15(iVar0);
				}
				return true;
			}
		}
	}
	if (Global_139115 == 2)
	{
		return true;
	}
	else if (Global_139115 == 3)
	{
		return false;
	}
	if (gameplay::_0x5AA3BEFA29F03AD4())
	{
		if (gameplay::is_bit_set(gameplay::get_profile_setting(866), 0))
		{
			return true;
		}
	}
	return false;
}

bool func_117()//Position - 0x13EC2
{
	return true;
}

bool func_118()//Position - 0x13ECB
{
	return true;
}

void func_119(char* sParam0, int iParam1, int iParam2, char* sParam3, char* sParam4, char* sParam5, char* sParam6, int iParam7, int iParam8, int iParam9)//Position - 0x13ED4
{
	char cVar0[32];
	
	sParam0->f_11 = iParam1;
	StringCopy(sParam0, sParam3, 16);
	sParam0->f_4 = gameplay::get_hash_key(sParam4);
	sParam0->f_5 = gameplay::get_hash_key(sParam5);
	sParam0->f_8 = gameplay::get_hash_key(sParam6);
	sParam0->f_6 = iParam7;
	sParam0->f_7 = iParam8;
	sParam0->f_9 = (iParam1 / 32);
	sParam0->f_10 = (iParam1 % 32);
	sParam0->f_12 = iParam9;
	if (entity::does_entity_exist(iParam2) && !ped::is_ped_injured(iParam2))
	{
		if ((sParam0->f_6 == 0 || sParam0->f_6 == 1) || sParam0->f_6 == 2)
		{
		}
		else if (sParam0->f_6 == 3 || sParam0->f_6 == 4)
		{
			StringCopy(&cVar0, "", 32);
			if (((((sParam0->f_11 == 13 || sParam0->f_11 == 14) || sParam0->f_11 == 15) || sParam0->f_11 == 16) || sParam0->f_11 == 71) || sParam0->f_11 == 72)
			{
				StringConCat(&cVar0, "FM_", 32);
				StringConCat(&cVar0, "CREW_", 32);
				if (entity::get_entity_model(iParam2) == joaat("mp_m_freemode_01"))
				{
					StringConCat(&cVar0, "M_", 32);
				}
				else
				{
					StringConCat(&cVar0, "F_", 32);
				}
				StringConCat(&cVar0, sParam5, 32);
			}
			else if (gameplay::are_strings_equal(sParam6, "torsoDecal") || gameplay::are_strings_equal(sParam6, "hairOverlay"))
			{
				StringCopy(&cVar0, sParam5, 32);
			}
			else
			{
				if (((((((((((((((((((sParam0->f_11 == 0 || sParam0->f_11 == 1) || sParam0->f_11 == 2) || sParam0->f_11 == 4) || sParam0->f_11 == 3) || sParam0->f_11 == 54) || sParam0->f_11 == 5) || sParam0->f_11 == 6) || sParam0->f_11 == 55) || sParam0->f_11 == 7) || sParam0->f_11 == 8) || sParam0->f_11 == 9) || sParam0->f_11 == 10) || sParam0->f_11 == 11) || sParam0->f_11 == 56) || sParam0->f_11 == 12) || sParam0->f_11 == 57) || sParam0->f_11 == 58) || sParam0->f_11 == 59) || sParam0->f_11 == 60)
				{
					StringConCat(&cVar0, "FM_Tat_Award_", 32);
				}
				else
				{
					StringConCat(&cVar0, "FM_Tat_", 32);
				}
				if (entity::get_entity_model(iParam2) == joaat("mp_m_freemode_01") || sParam0->f_11 == 20)
				{
					StringConCat(&cVar0, "M_", 32);
				}
				else
				{
					StringConCat(&cVar0, "F_", 32);
				}
				StringConCat(&cVar0, sParam5, 32);
			}
			sParam0->f_5 = gameplay::get_hash_key(&cVar0);
			if (ped::_get_tattoo_zone(sParam0->f_4, sParam0->f_5) == 7)
			{
				sParam0->f_11 = -1;
			}
		}
	}
}

int func_120(int iParam0, int iParam1)//Position - 0x1418B
{
	int iVar0;
	int iVar1;
	
	if (iParam0 == -1)
	{
		return false;
	}
	iVar0 = func_122(iParam0, iParam1);
	iVar1 = func_121(iParam0);
	if (iVar1 < 0 || iVar1 >= 32)
	{
		return false;
	}
	return gameplay::is_bit_set(iVar0, iVar1);
}

int func_121(int iParam0)//Position - 0x141CD
{
	return (iParam0 % 32);
}

var func_122(int iParam0, int iParam1)//Position - 0x141DA
{
	var uVar0;
	
	uVar0 = func_359(func_123(iParam0), iParam1, 0);
	return uVar0;
}

int func_123(int iParam0)//Position - 0x141F3
{
	int iVar0;
	int iVar1;
	
	iVar0 = iParam0;
	iVar1 = func_126(iVar0);
	if ((func_125() == 0 || func_124() == 0) || (func_125() == 999 && func_124() == 999))
	{
		switch (iVar1)
		{
			case 0:
				return 1043;
				break;
			
			case 1:
				return 1044;
				break;
			
			case 2:
				return 1045;
				break;
			
			case 3:
				return 1046;
				break;
			
			case 4:
				return 1047;
				break;
			
			case 5:
				return 1048;
				break;
			
			case 6:
				return 1482;
				break;
			
			case 7:
				return 1483;
				break;
			
			case 8:
				return 1484;
				break;
			
			case 9:
				return 1485;
				break;
			
			case 10:
				return 1941;
				break;
			
			case 11:
				return 1942;
				break;
			
			case 12:
				return 1943;
				break;
			
			case 13:
				return 2405;
				break;
			
			case 14:
				return 2425;
				break;
			
			case 15:
				return 2428;
				break;
			
			case 16:
				return 2431;
				break;
			
			case 17:
				return 2594;
				break;
			
			case 18:
				return 2597;
				break;
			
			case 19:
				return 2600;
				break;
			
			case 20:
				return 3756;
				break;
			
			case 21:
				return 3759;
				break;
			
			case 22:
				return 3834;
				break;
			
			case 23:
				return 3837;
				break;
			
			case 24:
				return 3840;
				break;
			
			case 25:
				return 3843;
				break;
			
			case 26:
				return 5334;
			
			case 27:
				return 5337;
				break;
			}
	}
	return 6022;
}

var func_124()//Position - 0x143E2
{
	return Global_25186;
}

var func_125()//Position - 0x143ED
{
	return Global_25185;
}

int func_126(int iParam0)//Position - 0x143F8
{
	return (iParam0 / 32);
}

bool func_127(int iParam0)//Position - 0x14405
{
	int iVar0;
	int iVar1;
	int iVar2;
	int iVar3;
	int iVar4;
	int iVar5;
	int iVar6;
	
	if (!ped::is_ped_injured(iParam0))
	{
		if (entity::get_entity_model(iParam0) == joaat("mp_m_freemode_01"))
		{
			iVar0 = ped::get_ped_drawable_variation(iParam0, 11);
			iVar2 = func_359(1751, -1, 0);
			if (iVar0 > 15)
			{
				iVar3 = func_173(iParam0, 11, -1);
				if (iVar3 >= 237)
				{
					iVar4 = func_158(joaat("mp_m_freemode_01"), iVar3, 11, 3);
					if ((dlc1::_0x341DE7ED1D2A1BFD(iVar4, 1113995558, 0) || dlc1::_0x341DE7ED1D2A1BFD(iVar4, -1467682989, 0)) || dlc1::_0x341DE7ED1D2A1BFD(iVar4, 362493804, 0))
					{
						if (iVar2 == 671171671)
						{
							return true;
						}
					}
					else if (dlc1::_0x341DE7ED1D2A1BFD(iVar4, -1393156190, 0) && !dlc1::_0x341DE7ED1D2A1BFD(iVar4, -1237899132, 0))
					{
						return true;
					}
				}
			}
		}
		else if (entity::get_entity_model(iParam0) == joaat("mp_f_freemode_01"))
		{
			iVar0 = ped::get_ped_drawable_variation(iParam0, 11);
			iVar1 = ped::get_ped_texture_variation(iParam0, 11);
			iVar2 = func_359(1751, -1, 0);
			if (iVar0 == 3)
			{
				if (iVar1 == 14)
				{
					return true;
				}
			}
			else if (iVar0 > 15)
			{
				iVar5 = func_173(iParam0, 11, -1);
				if (iVar5 >= 256)
				{
					iVar6 = func_158(joaat("mp_f_freemode_01"), iVar5, 11, 4);
					if ((dlc1::_0x341DE7ED1D2A1BFD(iVar6, 1113995558, 0) || dlc1::_0x341DE7ED1D2A1BFD(iVar6, -1467682989, 0)) || dlc1::_0x341DE7ED1D2A1BFD(iVar6, 362493804, 0))
					{
						if (iVar2 == 1911627074)
						{
							return true;
						}
					}
					else if (dlc1::_0x341DE7ED1D2A1BFD(iVar6, -1393156190, 0) && !dlc1::_0x341DE7ED1D2A1BFD(iVar6, -1237899132, 0))
					{
						return true;
					}
				}
			}
		}
	}
	return false;
}

bool func_128(int iParam0)//Position - 0x145A7
{
	int iVar0;
	
	if (network::network_is_activity_session())
	{
		iVar0 = Global_1589933[player::player_id() /*601*/].f_95.f_28;
		if (iVar0 != -1 && iVar0 < 4)
		{
			if (func_129(iVar0) != -1 && func_129(iVar0) != 0)
			{
				return true;
			}
		}
	}
	if (!ped::is_ped_injured(iParam0))
	{
		if (entity::get_entity_model(iParam0) == joaat("mp_m_freemode_01"))
		{
			if (ped::get_ped_drawable_variation(iParam0, 11) == 15)
			{
				return true;
			}
		}
	}
	return false;
}

int func_129(int iParam0)//Position - 0x14623
{
	if (iParam0 <= -1 || iParam0 >= 4)
	{
		return -1;
	}
	return Global_2443860.f_5859[iParam0];
}

bool func_130(int iParam0)//Position - 0x1464B
{
	int iVar0;
	int iVar1;
	int iVar2;
	int iVar3;
	int iVar4;
	int iVar5;
	int iVar6;
	int iVar7;
	int iVar8;
	int iVar9;
	int iVar10;
	int iVar11;
	int iVar12;
	int iVar13;
	
	if (!ped::is_ped_injured(iParam0))
	{
		if (entity::get_entity_model(iParam0) == joaat("mp_m_freemode_01"))
		{
			iVar0 = ped::get_ped_drawable_variation(iParam0, 11);
			iVar1 = ped::get_ped_texture_variation(iParam0, 11);
			switch (iVar0)
			{
				case 0:
					switch (iVar1)
					{
						case 1:
						case 3:
						case 5:
						case 7:
						case 4:
						case 8:
						case 11:
							return true;
							break;
					}
					break;
				
				case 1:
					switch (iVar1)
					{
						case 3:
						case 5:
						case 6:
						case 8:
						case 4:
						case 14:
							return true;
							break;
						
						case 1:
						case 7:
						case 12:
							iVar2 = func_135(joaat("mp_m_freemode_01"), 11, func_173(iParam0, 11, -1), 0);
							if (((iVar1 == 1 && iVar2 == 88) || (iVar1 == 7 && iVar2 == 89)) || (iVar1 == 12 && iVar2 == 87))
							{
								return true;
							}
							break;
					}
					break;
				
				case 2:
					switch (iVar1)
					{
						case 9:
							return true;
							break;
					}
					break;
				
				case 5:
					if (func_120(13, -1))
					{
						return true;
					}
					else if (func_120(14, -1))
					{
						return true;
					}
					else if (func_120(15, -1))
					{
						return true;
					}
					else if (func_120(16, -1))
					{
						return true;
					}
					else if (func_120(71, -1))
					{
						return true;
					}
					else if (func_120(72, -1))
					{
					}
					else if (func_132(player::player_id(), 1) && Global_1618089[player::player_id() /*390*/].f_11.f_68.f_21 != 0)
					{
						return true;
					}
					break;
				
				default:
					if (iVar0 > 15)
					{
						iVar3 = func_173(iParam0, 11, -1);
						if (iVar3 >= 237)
						{
							iVar4 = func_158(joaat("mp_m_freemode_01"), iVar3, 11, 3);
							if ((dlc1::_0x341DE7ED1D2A1BFD(iVar4, 1113995558, 0) || dlc1::_0x341DE7ED1D2A1BFD(iVar4, -1467682989, 0)) || dlc1::_0x341DE7ED1D2A1BFD(iVar4, 362493804, 0))
							{
								return true;
							}
						}
					}
					break;
			}
			iVar0 = ped::get_ped_drawable_variation(iParam0, 8);
			iVar1 = ped::get_ped_texture_variation(iParam0, 8);
			switch (iVar0)
			{
				case 0:
					switch (iVar1)
					{
						case 1:
						case 3:
						case 5:
						case 7:
						case 4:
						case 8:
						case 11:
							return true;
							break;
					}
					break;
				
				case 1:
					switch (iVar1)
					{
						case 3:
						case 5:
						case 6:
						case 8:
						case 4:
						case 14:
						case 1:
						case 7:
						case 12:
							return true;
							break;
					}
					break;
				
				case 2:
					switch (iVar1)
					{
						case 1:
						case 3:
						case 5:
						case 7:
						case 4:
						case 8:
						case 11:
							return true;
							break;
					}
					break;
				
				case 14:
					switch (iVar1)
					{
						case 3:
						case 5:
						case 6:
						case 8:
						case 4:
						case 14:
						case 1:
						case 7:
						case 12:
							return true;
							break;
					}
					break;
				
				default:
					if (iVar0 > 15)
					{
						iVar5 = func_173(iParam0, 8, -1);
						if (iVar5 >= 241)
						{
							iVar6 = func_158(joaat("mp_m_freemode_01"), iVar5, 8, 3);
							if ((dlc1::_0x341DE7ED1D2A1BFD(iVar6, 1113995558, 0) || dlc1::_0x341DE7ED1D2A1BFD(iVar6, -1467682989, 0)) || dlc1::_0x341DE7ED1D2A1BFD(iVar6, 362493804, 0))
							{
								return true;
							}
						}
					}
					break;
			}
		}
		else if (entity::get_entity_model(iParam0) == joaat("mp_f_freemode_01"))
		{
			iVar0 = ped::get_ped_drawable_variation(iParam0, 11);
			iVar1 = ped::get_ped_texture_variation(iParam0, 11);
			switch (iVar0)
			{
				case 0:
					switch (iVar1)
					{
						case 1:
						case 2:
							return true;
							break;
						
						case 7:
						case 4:
						case 9:
							iVar7 = func_135(joaat("mp_f_freemode_01"), 11, func_173(iParam0, 11, -1), 0);
							if (((iVar1 == 7 && iVar7 == 88) || (iVar1 == 4 && iVar7 == 89)) || (iVar1 == 9 && iVar7 == 87))
							{
								return true;
							}
							break;
					}
					break;
				
				case 2:
					switch (iVar1)
					{
						case 0:
						case 1:
						case 2:
						case 3:
						case 4:
							return true;
							break;
					}
					break;
				
				case 3:
					switch (iVar1)
					{
						case 14:
							return true;
							break;
					}
					break;
				
				case 11:
					switch (iVar1)
					{
						case 10:
						case 11:
						case 15:
							return true;
							break;
					}
					break;
				
				default:
					if (iVar0 > 15)
					{
						iVar8 = func_173(iParam0, 11, -1);
						if (iVar8 >= 256)
						{
							iVar9 = func_158(joaat("mp_f_freemode_01"), iVar8, 11, 4);
							if ((dlc1::_0x341DE7ED1D2A1BFD(iVar9, 1113995558, 0) || dlc1::_0x341DE7ED1D2A1BFD(iVar9, -1467682989, 0)) || dlc1::_0x341DE7ED1D2A1BFD(iVar9, 362493804, 0))
							{
								return true;
							}
						}
					}
					break;
			}
			iVar0 = ped::get_ped_drawable_variation(iParam0, 8);
			iVar1 = ped::get_ped_texture_variation(iParam0, 8);
			switch (iVar0)
			{
				case 0:
					switch (iVar1)
					{
						case 1:
						case 2:
							return true;
							break;
						
						case 7:
						case 4:
						case 9:
							iVar10 = func_135(joaat("mp_f_freemode_01"), 11, func_173(iParam0, 11, -1), 0);
							if (((iVar1 == 7 && iVar10 == 88) || (iVar1 == 4 && iVar10 == 89)) || (iVar1 == 9 && iVar10 == 87))
							{
								return true;
							}
							break;
					}
					break;
				
				case 1:
					switch (iVar1)
					{
						case 1:
						case 2:
							return true;
							break;
						
						case 7:
						case 4:
						case 9:
							iVar11 = func_135(joaat("mp_f_freemode_01"), 11, func_173(iParam0, 11, -1), 0);
							if (((iVar1 == 7 && iVar11 == 88) || (iVar1 == 4 && iVar11 == 89)) || (iVar1 == 9 && iVar11 == 87))
							{
								return true;
							}
							break;
					}
					break;
				
				case 2:
					switch (iVar1)
					{
						case 1:
						case 3:
						case 5:
						case 7:
						case 4:
						case 8:
						case 11:
							return true;
							break;
					}
					break;
				
				case 11:
					switch (iVar1)
					{
						case 10:
						case 11:
						case 15:
							return true;
							break;
					}
					break;
				
				case 14:
					switch (iVar1)
					{
						case 3:
						case 5:
						case 6:
						case 8:
						case 4:
						case 14:
						case 1:
						case 7:
						case 12:
							return true;
							break;
					}
					break;
				
				default:
					if (iVar0 > 15)
					{
						iVar12 = func_173(iParam0, 8, -1);
						if (iVar12 >= 136)
						{
							iVar13 = func_158(joaat("mp_f_freemode_01"), iVar12, 8, 4);
							if ((dlc1::_0x341DE7ED1D2A1BFD(iVar13, 1113995558, 0) || dlc1::_0x341DE7ED1D2A1BFD(iVar13, -1467682989, 0)) || dlc1::_0x341DE7ED1D2A1BFD(iVar13, 362493804, 0))
							{
								return true;
							}
						}
					}
					break;
				}
		}
		if (func_131(iParam0))
		{
			return true;
		}
	}
	return false;
}

bool func_131(int iParam0)//Position - 0x14E1D
{
	struct<5> Var0;
	int iVar17;
	int iVar18;
	int iVar19;
	
	iVar17 = entity::get_entity_model(iParam0) == joaat("mp_m_freemode_01");
	iVar18 = ped::get_ped_drawable_variation(iParam0, 11);
	iVar19 = ped::get_ped_texture_variation(iParam0, 11);
	if (iVar17)
	{
		dlc1::get_shop_ped_component(103980309, &Var0);
	}
	else
	{
		dlc1::get_shop_ped_component(-31075674, &Var0);
	}
	if (iVar18 == Var0.f_3 && iVar19 == Var0.f_4)
	{
		return true;
	}
	return false;
}

int func_132(int iParam0, int iParam1)//Position - 0x14E80
{
	return func_133(iParam0, iParam1, 1);
}

bool func_133(int iParam0, int iParam1, int iParam2)//Position - 0x14E91
{
	int iVar0;
	
	if (iParam0 == func_45())
	{
		return false;
	}
	if (!iParam1)
	{
		if (func_134(iParam0, iParam2))
		{
			return false;
		}
	}
	iVar0 = Global_1618089[iParam0 /*390*/].f_11;
	if (iVar0 != func_45() && Global_1618089[iVar0 /*390*/].f_11.f_289 == iParam2)
	{
		return true;
	}
	return false;
}

bool func_134(int iParam0, int iParam1)//Position - 0x14EED
{
	if (iParam0 != func_45())
	{
		if (Global_1618089[iParam0 /*390*/].f_11 != func_45())
		{
			if (Global_1618089[iParam0 /*390*/].f_11 == iParam0 && Global_1618089[iParam0 /*390*/].f_11.f_289 == iParam1)
			{
				return true;
			}
		}
	}
	return false;
}

int func_135(int iParam0, int iParam1, int iParam2, int iParam3)//Position - 0x14F3C
{
	int iVar0;
	int iVar1;
	int iVar2;
	int iVar3;
	var uVar4;
	int iVar5;
	int iVar6;
	int iVar7;
	int iVar8;
	int iVar9;
	var uVar10;
	int iVar11;
	int iVar12;
	int iVar13;
	int iVar14;
	int iVar15;
	var uVar16;
	int iVar17;
	int iVar18;
	int iVar19;
	int iVar20;
	int iVar21;
	var uVar22;
	int iVar23;
	
	if (iParam0 == joaat("mp_m_freemode_01"))
	{
		if (iParam1 == 11)
		{
			if (iParam2 == 1)
			{
				return 73;
			}
			else if (iParam2 == 3)
			{
				return 74;
			}
			else if (iParam2 == 5)
			{
				return 75;
			}
			else if (iParam2 == 7)
			{
				return 76;
			}
			else if (iParam2 == 4)
			{
				return 77;
			}
			else if (iParam2 == 8)
			{
				return 78;
			}
			else if (iParam2 == 11)
			{
				return 79;
			}
			else if (iParam2 == 19)
			{
				return 80;
			}
			else if (iParam2 == 21)
			{
				return 81;
			}
			else if (iParam2 == 22)
			{
				return 82;
			}
			else if (iParam2 == 24)
			{
				return 83;
			}
			else if (iParam2 == 20)
			{
				return 84;
			}
			else if (iParam2 == 30)
			{
				return 85;
			}
			else if (iParam2 == 23)
			{
				if (func_139(89, -1))
				{
					return 89;
				}
			}
			else if (iParam2 == 17)
			{
				if (func_139(88, -1))
				{
					return 88;
				}
			}
			else if (iParam2 == 28)
			{
				if (func_139(87, -1))
				{
					return 87;
				}
			}
			else if (iParam2 == 41)
			{
				return 86;
			}
			else if (iParam2 >= 237)
			{
				iVar0 = func_158(iParam0, iParam2, 11, 3);
				if (iVar0 != -1)
				{
					if (dlc1::_0x341DE7ED1D2A1BFD(iVar0, 1113995558, 0) || dlc1::_0x341DE7ED1D2A1BFD(iVar0, 362493804, 0))
					{
						iVar1 = dlc1::_get_num_forced_components(iVar0);
						iVar2 = 0;
						while (iVar2 < iVar1)
						{
							dlc1::get_forced_component(iVar0, iVar2, &iVar3, &uVar4, &iVar5);
							if (iVar5 == 10)
							{
								if (iVar3 != 0 && iVar3 != 1849449579)
								{
									return func_136(iVar3, 3);
								}
								else
								{
									return uVar4;
								}
							}
							iVar2++;
						}
					}
					else if (dlc1::_0x341DE7ED1D2A1BFD(iVar0, -1467682989, 0))
					{
						if (iParam3 == 0)
						{
							iParam3 = func_359(1751, -1, 0);
						}
						return func_136(iParam3, 3);
					}
				}
			}
		}
		else if (iParam1 == 8)
		{
			if (iParam2 == 1)
			{
				return 73;
			}
			else if (iParam2 == 3)
			{
				return 74;
			}
			else if (iParam2 == 5)
			{
				return 75;
			}
			else if (iParam2 == 7)
			{
				return 76;
			}
			else if (iParam2 == 4)
			{
				return 77;
			}
			else if (iParam2 == 8)
			{
				return 78;
			}
			else if (iParam2 == 11)
			{
				return 79;
			}
			else if (iParam2 == 23)
			{
				if (func_139(89, -1))
				{
					return 89;
				}
			}
			else if (iParam2 == 17)
			{
				if (func_139(88, -1))
				{
					return 88;
				}
			}
			else if (iParam2 == 28)
			{
				if (func_139(87, -1))
				{
					return 87;
				}
			}
			else if (iParam2 == 33)
			{
				return 73;
			}
			else if (iParam2 == 35)
			{
				return 74;
			}
			else if (iParam2 == 37)
			{
				return 75;
			}
			else if (iParam2 == 39)
			{
				return 76;
			}
			else if (iParam2 == 36)
			{
				return 77;
			}
			else if (iParam2 == 40)
			{
				return 78;
			}
			else if (iParam2 == 43)
			{
				return 79;
			}
			else if (iParam2 == 19)
			{
				return 80;
			}
			else if (iParam2 == 21)
			{
				return 81;
			}
			else if (iParam2 == 22)
			{
				return 82;
			}
			else if (iParam2 == 24)
			{
				return 83;
			}
			else if (iParam2 == 20)
			{
				return 84;
			}
			else if (iParam2 == 30)
			{
				return 85;
			}
			else if (iParam2 == 227)
			{
				return 80;
			}
			else if (iParam2 == 229)
			{
				return 81;
			}
			else if (iParam2 == 230)
			{
				return 82;
			}
			else if (iParam2 == 232)
			{
				return 83;
			}
			else if (iParam2 == 228)
			{
				return 84;
			}
			else if (iParam2 == 238)
			{
				return 85;
			}
			else if (iParam2 == 231)
			{
				if (func_139(89, -1))
				{
					return 89;
				}
			}
			else if (iParam2 == 225)
			{
				if (func_139(88, -1))
				{
					return 88;
				}
			}
			else if (iParam2 == 236)
			{
				if (func_139(87, -1))
				{
					return 87;
				}
			}
			else if (iParam2 >= 241)
			{
				iVar6 = func_158(iParam0, iParam2, 8, 3);
				if (iVar6 != -1)
				{
					if (dlc1::_0x341DE7ED1D2A1BFD(iVar6, 1113995558, 0) || dlc1::_0x341DE7ED1D2A1BFD(iVar6, 362493804, 0))
					{
						iVar7 = dlc1::_get_num_forced_components(iVar6);
						iVar8 = 0;
						while (iVar8 < iVar7)
						{
							dlc1::get_forced_component(iVar6, iVar8, &iVar9, &uVar10, &iVar11);
							if (iVar11 == 10)
							{
								if (iVar9 != 0 && iVar9 != 1849449579)
								{
									return func_136(iVar9, 3);
								}
								else
								{
									return uVar10;
								}
							}
							iVar8++;
						}
					}
					else if (dlc1::_0x341DE7ED1D2A1BFD(iVar6, -1467682989, 0))
					{
						if (iParam3 == 0)
						{
							iParam3 = func_359(1751, -1, 0);
						}
						return func_136(iParam3, 3);
					}
				}
			}
		}
	}
	else if (iParam0 == joaat("mp_f_freemode_01"))
	{
		if (iParam1 == 11)
		{
			if (iParam2 == 1)
			{
				return 75;
			}
			else if (iParam2 == 2)
			{
				return 77;
			}
			else if (iParam2 == 4)
			{
				if (func_139(89, -1))
				{
					return 89;
				}
			}
			else if (iParam2 == 7)
			{
				if (func_139(88, -1))
				{
					return 88;
				}
			}
			else if (iParam2 == 9)
			{
				if (func_139(87, -1))
				{
					return 87;
				}
			}
			else if (iParam2 == 32)
			{
				return 78;
			}
			else if (iParam2 == 33)
			{
				return 79;
			}
			else if (iParam2 == 34)
			{
				return 80;
			}
			else if (iParam2 == 35)
			{
				return 81;
			}
			else if (iParam2 == 36)
			{
				return 82;
			}
			else if (iParam2 == 62)
			{
				return 76;
			}
			else if (iParam2 == 63)
			{
				return 83;
			}
			else if (iParam2 == 186)
			{
				return 84;
			}
			else if (iParam2 == 187)
			{
				return 85;
			}
			else if (iParam2 == 191)
			{
				return 74;
			}
			else if (iParam2 >= 256)
			{
				iVar12 = func_158(iParam0, iParam2, 11, 4);
				if (iVar12 != -1)
				{
					if (dlc1::_0x341DE7ED1D2A1BFD(iVar12, 1113995558, 0) || dlc1::_0x341DE7ED1D2A1BFD(iVar12, 362493804, 0))
					{
						iVar13 = dlc1::_get_num_forced_components(iVar12);
						iVar14 = 0;
						while (iVar14 < iVar13)
						{
							dlc1::get_forced_component(iVar12, iVar14, &iVar15, &uVar16, &iVar17);
							if (iVar17 == 10)
							{
								if (iVar15 != 0 && iVar15 != 1849449579)
								{
									return func_136(iVar15, 4);
								}
								else
								{
									return uVar16;
								}
							}
							iVar14++;
						}
					}
					else if (dlc1::_0x341DE7ED1D2A1BFD(iVar12, -1467682989, 0))
					{
						if (iParam3 == 0)
						{
							iParam3 = func_359(1751, -1, 0);
						}
						return func_136(iParam3, 4);
					}
				}
			}
		}
		else if (iParam1 == 8)
		{
			if (iParam2 == 1)
			{
				return 75;
			}
			else if (iParam2 == 2)
			{
				return 77;
			}
			else if (iParam2 == 4)
			{
				if (func_139(89, -1))
				{
					return 89;
				}
			}
			else if (iParam2 == 7)
			{
				if (func_139(88, -1))
				{
					return 88;
				}
			}
			else if (iParam2 == 9)
			{
				if (func_139(87, -1))
				{
					return 87;
				}
			}
			else if (iParam2 == 17)
			{
				return 75;
			}
			else if (iParam2 == 18)
			{
				return 77;
			}
			else if (iParam2 == 20)
			{
				if (func_139(89, -1))
				{
					return 89;
				}
			}
			else if (iParam2 == 23)
			{
				if (func_139(88, -1))
				{
					return 88;
				}
			}
			else if (iParam2 == 25)
			{
				if (func_139(87, -1))
				{
					return 87;
				}
			}
			else if (iParam2 == 81)
			{
				return 84;
			}
			else if (iParam2 == 82)
			{
				return 85;
			}
			else if (iParam2 == 86)
			{
				return 74;
			}
			else if (iParam2 >= 136)
			{
				iVar18 = func_158(iParam0, iParam2, 8, 4);
				if (iVar18 != -1)
				{
					if (dlc1::_0x341DE7ED1D2A1BFD(iVar18, 1113995558, 0) || dlc1::_0x341DE7ED1D2A1BFD(iVar18, 362493804, 0))
					{
						iVar19 = dlc1::_get_num_forced_components(iVar18);
						iVar20 = 0;
						while (iVar20 < iVar19)
						{
							dlc1::get_forced_component(iVar18, iVar20, &iVar21, &uVar22, &iVar23);
							if (iVar23 == 10)
							{
								if (iVar21 != 0 && iVar21 != 1849449579)
								{
									return func_136(iVar21, 4);
								}
								else
								{
									return uVar22;
								}
							}
							iVar20++;
						}
					}
					else if (dlc1::_0x341DE7ED1D2A1BFD(iVar18, -1467682989, 0))
					{
						if (iParam3 == 0)
						{
							iParam3 = func_359(1751, -1, 0);
						}
						return func_136(iParam3, 4);
					}
				}
			}
		}
	}
	return -1;
}

int func_136(int iParam0, int iParam1)//Position - 0x1579C
{
	var uVar0;
	int iVar1;
	int iVar2;
	struct<4> Var3;
	
	if (iParam1 == 3)
	{
		if (func_138(iParam0, &uVar0))
		{
			return uVar0;
		}
	}
	else if (iParam1 == 4)
	{
		if (func_137(iParam0, &uVar0))
		{
			return uVar0;
		}
	}
	iVar2 = dlc1::_0x278F76C3B0A8F109(iParam1);
	iVar1 = 0;
	while (iVar1 < iVar2)
	{
		if (dlc1::_0xFF56381874F82086(iParam1, iVar1, &Var3))
		{
			if (iParam0 == Var3.f_3)
			{
				return (129 + iVar1);
			}
		}
		iVar1++;
	}
	return -1;
}

bool func_137(int iParam0, var uParam1)//Position - 0x1580D
{
	int iVar0;
	
	iVar0 = -1;
	switch (iParam0)
	{
		case 497719213:
			iVar0 = 0;
			break;
		
		case -1575660783:
			iVar0 = 1;
			break;
		
		case -720631087:
			iVar0 = 2;
			break;
		
		case 2143620721:
			iVar0 = 3;
			break;
		
		case 2049754822:
			iVar0 = 4;
			break;
		
		case -1293749076:
			iVar0 = 5;
			break;
		
		case -1571403599:
			iVar0 = 6;
			break;
		
		case -711123906:
			iVar0 = 7;
			break;
		
		case 152801037:
			iVar0 = 8;
			break;
		
		case -1324018585:
			iVar0 = 9;
			break;
		
		case -481068829:
			iVar0 = 10;
			break;
		
		case -1486741196:
			iVar0 = 11;
			break;
		
		case 939412564:
			iVar0 = 12;
			break;
		
		case 1187637739:
			iVar0 = 13;
			break;
		
		case -1092669445:
			iVar0 = 14;
			break;
		
		case 1659530389:
			iVar0 = 15;
			break;
		
		case 996857777:
			iVar0 = 16;
			break;
		
		case 817476859:
			iVar0 = 17;
			break;
		
		case -17051268:
			iVar0 = 18;
			break;
		
		case 1293774274:
			iVar0 = 19;
			break;
		
		case 567121699:
			iVar0 = 20;
			break;
		
		case -1179302160:
			iVar0 = 21;
			break;
		
		case -949165473:
			iVar0 = 22;
			break;
		
		case 354975189:
			iVar0 = 23;
			break;
		
		case -489121482:
			iVar0 = 24;
			break;
		
		case -1636954018:
			iVar0 = 25;
			break;
		
		case -1277740240:
			iVar0 = 26;
			break;
		
		case -1047439708:
			iVar0 = 27;
			break;
		
		case -814026121:
			iVar0 = 28;
			break;
		
		case 1732157956:
			iVar0 = 29;
			break;
		
		case 1024282018:
			iVar0 = 30;
			break;
		
		case -2099685063:
			iVar0 = 31;
			break;
		
		case 1483932781:
			iVar0 = 32;
			break;
		
		case 1406925627:
			iVar0 = 33;
			break;
		
		case 698590923:
			iVar0 = 34;
			break;
		
		case 1869001296:
			iVar0 = 35;
			break;
		
		case 1169907450:
			iVar0 = 36;
			break;
		
		case 717727185:
			iVar0 = 37;
			break;
		
		case 1058197095:
			iVar0 = 38;
			break;
		
		case 434115743:
			iVar0 = 39;
			break;
		
		case 665432114:
			iVar0 = 40;
			break;
		
		case 1198780358:
			iVar0 = 41;
			break;
		
		case -2128873857:
			iVar0 = 42;
			break;
		
		case -148547780:
			iVar0 = 43;
			break;
		
		case 1819096318:
			iVar0 = 44;
			break;
		
		case 1051122042:
			iVar0 = 45;
			break;
		
		case -1350495965:
			iVar0 = 46;
			break;
		
		case -150859291:
			iVar0 = 47;
			break;
		
		case -1186193045:
			iVar0 = 48;
			break;
		
		case -1206837515:
			iVar0 = 49;
			break;
		
		case -1513653662:
			iVar0 = 50;
			break;
		
		case -543948331:
			iVar0 = 51;
			break;
		
		case -175559233:
			iVar0 = 52;
			break;
		
		case -131530830:
			iVar0 = 53;
			break;
		
		case -1816086813:
			iVar0 = 54;
			break;
		
		case -2113006722:
			iVar0 = 55;
			break;
		
		case -1101886458:
			iVar0 = 56;
			break;
		
		case -1398740829:
			iVar0 = 57;
			break;
		
		case 1939258347:
			iVar0 = 58;
			break;
		
		case -1004151544:
			iVar0 = 59;
			break;
		
		case -822873436:
			iVar0 = 60;
			break;
		
		case -1445222284:
			iVar0 = 61;
			break;
		
		case -63910623:
			iVar0 = 62;
			break;
		
		case 101834979:
			iVar0 = 63;
			break;
		
		case -673512330:
			iVar0 = 64;
			break;
		
		case -423845319:
			iVar0 = 65;
			break;
		
		case 963561372:
			iVar0 = 66;
			break;
		
		case 1384839636:
			iVar0 = 67;
			break;
		
		case -1712879828:
			iVar0 = 68;
			break;
		
		case -951688727:
			iVar0 = 69;
			break;
		
		case -1132639145:
			iVar0 = 70;
			break;
		
		case -513632731:
			iVar0 = 71;
			break;
		
		case 263680718:
			iVar0 = 72;
			break;
		
		case 36296627:
			iVar0 = 73;
			break;
		
		case 800240324:
			iVar0 = 74;
			break;
		
		case 614243480:
			iVar0 = 75;
			break;
		
		case 1408138043:
			iVar0 = 76;
			break;
		
		case 957564293:
			iVar0 = 77;
			break;
		
		case -1614279399:
			iVar0 = 78;
			break;
		
		case -1451286393:
			iVar0 = 79;
			break;
		
		case -1758069771:
			iVar0 = 80;
			break;
		
		case -1225475222:
			iVar0 = 81;
			break;
		
		case -1992892433:
			iVar0 = 82;
			break;
		
		case -1838157215:
			iVar0 = 83;
			break;
		
		case 1688803028:
			iVar0 = 84;
			break;
		
		case 1844259164:
			iVar0 = 85;
			break;
		
		case 1070943545:
			iVar0 = 86;
			break;
		
		case 1234460855:
			iVar0 = 87;
			break;
		
		case -753798460:
			iVar0 = 88;
			break;
		
		case -1453351072:
			iVar0 = 89;
			break;
		
		case -1308053326:
			iVar0 = 90;
			break;
		
		case -2083859401:
			iVar0 = 91;
			break;
		
		case 1586137527:
			iVar0 = 92;
			break;
		
		case 1884564810:
			iVar0 = 93;
			break;
		
		case 1092964089:
			iVar0 = 94;
			break;
		
		case 1264280421:
			iVar0 = 95;
			break;
		
		case 496601058:
			iVar0 = 96;
			break;
		
		case 861352797:
			iVar0 = 97;
			break;
		
		case 1418328330:
			iVar0 = 98;
			break;
		
		case 1784554566:
			iVar0 = 99;
			break;
	}
	switch (iParam0)
	{
		case 2081736627:
			iVar0 = 100;
			break;
		
		case -1897271971:
			iVar0 = 101;
			break;
		
		case -1666742056:
			iVar0 = 102;
			break;
		
		case -1282165072:
			iVar0 = 103;
			break;
		
		case -1052880379:
			iVar0 = 104;
			break;
		
		case -745474390:
			iVar0 = 105;
			break;
		
		case -515796465:
			iVar0 = 106;
			break;
		
		case -811206225:
			iVar0 = 107;
			break;
		
		case -1586815686:
			iVar0 = 108;
			break;
		
		case -1423429452:
			iVar0 = 109;
			break;
		
		case -1697869815:
			iVar0 = 110;
			break;
		
		case -1470846183:
			iVar0 = 111;
			break;
		
		case 1093884035:
			iVar0 = 112;
			break;
		
		case 861256904:
			iVar0 = 113;
			break;
		
		case 603201029:
			iVar0 = 114;
			break;
		
		case 1991426949:
			iVar0 = 115;
			break;
		
		case -135838228:
			iVar0 = 116;
			break;
		
		case 121616864:
			iVar0 = 117;
			break;
		
		case -834517002:
			iVar0 = 118;
			break;
		
		case -403932342:
			iVar0 = 119;
			break;
		
		case -1179738417:
			iVar0 = 120;
			break;
		
		case -1022250603:
			iVar0 = 121;
			break;
		
		case 558694786:
			iVar0 = 122;
			break;
		
		case 569279177:
			iVar0 = 123;
			break;
		
		case 544309199:
			iVar0 = 124;
			break;
		
		case 1190448341:
			iVar0 = 125;
			break;
		
		case 885139568:
			iVar0 = 126;
			break;
		
		case -1845683606:
			iVar0 = 127;
			break;
		
		case -1555317497:
			iVar0 = 128;
			break;
		
		case 1704673699:
			iVar0 = 129;
			break;
		
		case 1993401358:
			iVar0 = 130;
			break;
		
		case 1227065524:
			iVar0 = 131;
			break;
		
		case -533227790:
			iVar0 = 132;
			break;
		
		case 309459814:
			iVar0 = 133;
			break;
		
		case 77815753:
			iVar0 = 134;
			break;
		
		case -280939203:
			iVar0 = 135;
			break;
		
		case 1246882601:
			iVar0 = 136;
			break;
		
		case 314833986:
			iVar0 = 137;
			break;
		
		case -25635924:
			iVar0 = 138;
			break;
		
		case 351567983:
			iVar0 = 139;
			break;
		
		case -2027428652:
			iVar0 = 140;
			break;
		
		case 962677064:
			iVar0 = 141;
			break;
		
		case -105475497:
			iVar0 = 142;
			break;
		
		case 766835283:
			iVar0 = 143;
			break;
		
		case 471979821:
			iVar0 = 144;
			break;
		
		case 1122542778:
			iVar0 = 145;
			break;
		
		case 815530017:
			iVar0 = 146;
			break;
		
		case 1157900525:
			iVar0 = 147;
			break;
		
		case 859243859:
			iVar0 = 148;
			break;
		
		case 2032013608:
			iVar0 = 149;
			break;
		
		case 1471663700:
			iVar0 = 150;
			break;
		
		case -1679206722:
			iVar0 = 151;
			break;
		
		case -309397848:
			iVar0 = 152;
			break;
		
		case 534666054:
			iVar0 = 153;
			break;
		
		case -769376301:
			iVar0 = 154;
			break;
		
		case 1531057961:
			iVar0 = 155;
			break;
		
		case 1986678137:
			iVar0 = 156;
			break;
		
		case 2142789653:
			iVar0 = 157;
			break;
		
		case 7463306:
			iVar0 = 158;
			break;
		
		case 308053343:
			iVar0 = 159;
			break;
		
		case 753842819:
			iVar0 = 160;
			break;
		
		case 1052794406:
			iVar0 = 161;
			break;
		
		case -695726661:
			iVar0 = 162;
			break;
		
		case -1001821890:
			iVar0 = 163;
			break;
		
		case -1425459522:
			iVar0 = 164;
			break;
		
		case 1412653072:
			iVar0 = 165;
			break;
		
		case 1163510365:
			iVar0 = 166;
			break;
		
		case 933242602:
			iVar0 = 167;
			break;
		
		case -1347021116:
			iVar0 = 168;
			break;
		
		case 1297354841:
			iVar0 = 169;
			break;
		
		case -839806574:
			iVar0 = 170;
			break;
		
		case -542100209:
			iVar0 = 171;
			break;
		
		case 1472218269:
			iVar0 = 172;
			break;
		
		case 1783196079:
			iVar0 = 173;
			break;
		
		case 1007062314:
			iVar0 = 174;
			break;
		
		case -870732522:
			iVar0 = 175;
			break;
		
		case 547542627:
			iVar0 = 176;
			break;
		
		case 863894553:
			iVar0 = 177;
			break;
		
		case -2099242332:
			iVar0 = 178;
			break;
		
		case -1860028632:
			iVar0 = 179;
			break;
		
		case -560967165:
			iVar0 = 180;
			break;
		
		case -59437904:
			iVar0 = 181;
			break;
		
		case 757067269:
			iVar0 = 182;
			break;
		
		case 455625238:
			iVar0 = 183;
			break;
		
		case -1750514914:
			iVar0 = 184;
			break;
		
		case -983982466:
			iVar0 = 185;
			break;
		
		case -232228837:
			iVar0 = 186;
			break;
		
		case 1558269323:
			iVar0 = 187;
			break;
		
		case 2070579873:
			iVar0 = 188;
			break;
		
		case -1203181916:
			iVar0 = 189;
			break;
		
		case -2112587204:
			iVar0 = 190;
			break;
		
		case 1942412705:
			iVar0 = 191;
			break;
		
		case -1846437386:
			iVar0 = 192;
			break;
		
		case 61799795:
			iVar0 = 193;
			break;
		
		case -1388490611:
			iVar0 = 194;
			break;
		
		case -1627212776:
			iVar0 = 195;
			break;
		
		case 1525246127:
			iVar0 = 196;
			break;
		
		case -11341151:
			iVar0 = 197;
			break;
		
		case 516055815:
			iVar0 = 198;
			break;
		
		case -1034642040:
			iVar0 = 199;
			break;
	}
	switch (iParam0)
	{
		case 1022637316:
			iVar0 = 200;
			break;
		
		case -1677156418:
			iVar0 = 201;
			break;
		
		case -1130213300:
			iVar0 = 202;
			break;
		
		case 104062694:
			iVar0 = 203;
			break;
		
		case 869579299:
			iVar0 = 204;
			break;
		
		case 1201332655:
			iVar0 = 205;
			break;
		
		case 1028967715:
			iVar0 = 206;
			break;
		
		case -1651634800:
			iVar0 = 207;
			break;
		
		case -892278763:
			iVar0 = 208;
			break;
		
		case -1032005779:
			iVar0 = 209;
			break;
		
		case -255675400:
			iVar0 = 210;
			break;
		
		case 1890137027:
			iVar0 = 211;
			break;
		
		case -406805808:
			iVar0 = 212;
			break;
		
		case -592540500:
			iVar0 = 213;
			break;
		
		case 205417419:
			iVar0 = 214;
			break;
		
		case -2127276619:
			iVar0 = 215;
			break;
		
		case -1362677538:
			iVar0 = 216;
			break;
		
		case -1549722990:
			iVar0 = 217;
			break;
		
		case 3495990:
			iVar0 = 218;
			break;
		
		case -285526590:
			iVar0 = 219;
			break;
		
		case 1907377338:
			iVar0 = 220;
			break;
		
		case 2136399879:
			iVar0 = 221;
			break;
		
		case 1568410532:
			iVar0 = 222;
			break;
		
		case 1068879892:
			iVar0 = 223;
			break;
		
		case -1592750929:
			iVar0 = 224;
			break;
		
		case 772896404:
			iVar0 = 225;
			break;
		
		case -1999229916:
			iVar0 = 226;
			break;
		
		case -744701520:
			iVar0 = 227;
			break;
		
		case -425039925:
			iVar0 = 228;
			break;
		
		case -798409911:
			iVar0 = 229;
			break;
		
		case 1379974898:
			iVar0 = 230;
			break;
		
		case -1681436154:
			iVar0 = 231;
			break;
		
		case -1486919370:
			iVar0 = 232;
			break;
		
		case 2014677667:
			iVar0 = 233;
			break;
		
		case 325697857:
			iVar0 = 234;
			break;
		
		case -1188819501:
			iVar0 = 235;
			break;
		
		case -1765193438:
			iVar0 = 236;
			break;
		
		case -1416269126:
			iVar0 = 237;
			break;
		
		case -2111365154:
			iVar0 = 238;
			break;
		
		case -1880573087:
			iVar0 = 239;
			break;
		
		case 1421296887:
			iVar0 = 240;
			break;
		
		case 1655562468:
			iVar0 = 241;
			break;
		
		case 946048080:
			iVar0 = 242;
			break;
		
		case 1188768063:
			iVar0 = 243;
			break;
		
		case 498456313:
			iVar0 = 244;
			break;
		
		case 323007907:
			iVar0 = 245;
			break;
		
		case -1325371100:
			iVar0 = 246;
			break;
		
		case -829313978:
			iVar0 = 247;
			break;
		
		case -530624543:
			iVar0 = 248;
			break;
		
		case -299046020:
			iVar0 = 249;
			break;
		
		case 1812260650:
			iVar0 = 250;
			break;
		
		case 2043511487:
			iVar0 = 251;
			break;
		
		case -1753235933:
			iVar0 = 252;
			break;
		
		case -1525589690:
			iVar0 = 253;
			break;
		
		case 31003408:
			iVar0 = 254;
			break;
		
		case -1864998224:
			iVar0 = 255;
			break;
		
		case -2140814897:
			iVar0 = 256;
			break;
		
		case 223468453:
			iVar0 = 257;
			break;
		
		case -83970305:
			iVar0 = 258;
			break;
		
		case -406843262:
			iVar0 = 259;
			break;
		
		case -954740942:
			iVar0 = 260;
			break;
		
		case -1675526854:
			iVar0 = 261;
			break;
		
		case 2111717556:
			iVar0 = 262;
			break;
		
		case -415395003:
			iVar0 = 263;
			break;
		
		case 427521984:
			iVar0 = 264;
			break;
		
		case 1570178485:
			iVar0 = 265;
			break;
		
		case -1619850916:
			iVar0 = 266;
			break;
		
		case -713067148:
			iVar0 = 267;
			break;
		
		case 946477614:
			iVar0 = 268;
			break;
		
		case -1423343701:
			iVar0 = 269;
			break;
		
		case 445931457:
			iVar0 = 270;
			break;
		
		case 678558588:
			iVar0 = 271;
			break;
		
		case -854631987:
			iVar0 = 272;
			break;
		
		case -1707871209:
			iVar0 = 273;
			break;
		
		case 1675446188:
			iVar0 = 274;
			break;
		
		case 1911627074:
			iVar0 = 275;
			break;
		
		case -607391498:
			iVar0 = 276;
			break;
		
		case -1544625218:
			iVar0 = 277;
			break;
		
		case 1185175875:
			iVar0 = 278;
			break;
		
		case 155591269:
			iVar0 = 279;
			break;
		
		case -1057958846:
			iVar0 = 280;
			break;
		
		case -1853795495:
			iVar0 = 281;
			break;
		
		case -1860485560:
			iVar0 = 282;
			break;
		
		case 499288642:
			iVar0 = 283;
			break;
		
		case -7887054:
			iVar0 = 284;
			break;
		
		case -1553041502:
			iVar0 = 285;
			break;
		
		case -1080591445:
			iVar0 = 286;
			break;
		
		case -741060436:
			iVar0 = 287;
			break;
		
		case 645634644:
			iVar0 = 288;
			break;
		
		case -1096728771:
			iVar0 = 289;
			break;
		
		case 503268386:
			iVar0 = 290;
			break;
		
		case 109804153:
			iVar0 = 291;
			break;
		
		case 1410910279:
			iVar0 = 292;
			break;
		
		case 1501700194:
			iVar0 = 293;
			break;
		
		case -1793199216:
			iVar0 = 294;
			break;
		
		case 1405944575:
			iVar0 = 295;
			break;
		
		case 1731382556:
			iVar0 = 296;
			break;
		
		case 1743809026:
			iVar0 = 297;
			break;
		
		case 1589237530:
			iVar0 = 298;
			break;
		
		case -1558441108:
			iVar0 = 299;
			break;
	}
	switch (iParam0)
	{
		case 793815980:
			iVar0 = 303;
			break;
		
		case 87277824:
			iVar0 = 304;
			break;
		
		case 1305470790:
			iVar0 = 305;
			break;
		
		case 252924758:
			iVar0 = 306;
			break;
		
		case 1043745875:
			iVar0 = 307;
			break;
		
		case 24304530:
			iVar0 = 308;
			break;
		
		case 582246031:
			iVar0 = 309;
			break;
		
		case 1840225396:
			iVar0 = 310;
			break;
		
		case -47863515:
			iVar0 = 311;
			break;
		
		case 26968202:
			iVar0 = 312;
			break;
		
		case 1720638120:
			iVar0 = 313;
			break;
		
		case 1372737856:
			iVar0 = 314;
			break;
		
		case -675719916:
			iVar0 = 315;
			break;
		
		case -610888268:
			iVar0 = 316;
			break;
		
		case -129698248:
			iVar0 = 317;
			break;
		
		case 1060644905:
			iVar0 = 318;
			break;
		
		case 776078819:
			iVar0 = 319;
			break;
		
		case -1069464482:
			iVar0 = 320;
			break;
		
		case -1342875239:
			iVar0 = 321;
			break;
		
		case 1967892405:
			iVar0 = 322;
			break;
		
		case 642864781:
			iVar0 = 323;
			break;
		
		case 1270860039:
			iVar0 = 324;
			break;
		
		case -1290780406:
			iVar0 = 325;
			break;
		
		case 1127641545:
			iVar0 = 326;
			break;
		
		case -1221948530:
			iVar0 = 327;
			break;
		
		case 1954153055:
			iVar0 = 328;
			break;
		
		case 543727307:
			iVar0 = 329;
			break;
		
		case -1806626643:
			iVar0 = 330;
			break;
		
		case 1146362323:
			iVar0 = 331;
			break;
		
		case -1918158051:
			iVar0 = 332;
			break;
		
		case -1835082731:
			iVar0 = 333;
			break;
		
		case 1935907419:
			iVar0 = 334;
			break;
		
		case 961997868:
			iVar0 = 335;
			break;
		
		case -415246024:
			iVar0 = 336;
			break;
		
		case -2003529037:
			iVar0 = 337;
			break;
		
		case -1272951326:
			iVar0 = 338;
			break;
		
		case 837851491:
			iVar0 = 339;
			break;
		
		case -64649653:
			iVar0 = 340;
			break;
		
		case 1997623301:
			iVar0 = 341;
			break;
		
		case 1177835340:
			iVar0 = 342;
			break;
		
		case -1261787835:
			iVar0 = 343;
			break;
		
		case -965491494:
			iVar0 = 344;
			break;
		
		case 939374190:
			iVar0 = 345;
			break;
		
		case 149461503:
			iVar0 = 346;
			break;
		
		case -1117498985:
			iVar0 = 347;
			break;
		
		case 1184468662:
			iVar0 = 348;
			break;
		
		case -772488648:
			iVar0 = 349;
			break;
		
		case -1399171334:
			iVar0 = 350;
			break;
		
		case -963164512:
			iVar0 = 351;
			break;
		
		case -1284517669:
			iVar0 = 352;
			break;
		
		case 1613773443:
			iVar0 = 353;
			break;
		
		case 1963092516:
			iVar0 = 354;
			break;
		
		case -878642668:
			iVar0 = 355;
			break;
		
		case -1618544925:
			iVar0 = 356;
			break;
		
		case 1185417232:
			iVar0 = 357;
			break;
		
		case -1649044153:
			iVar0 = 358;
			break;
		
		case -1293956525:
			iVar0 = 359;
			break;
		
		case -84085370:
			iVar0 = 360;
			break;
		
		case -943861479:
			iVar0 = 361;
			break;
		
		case -1355455834:
			iVar0 = 362;
			break;
		
		case 711764191:
			iVar0 = 363;
			break;
		
		case 41616632:
			iVar0 = 364;
			break;
		
		case -2053984264:
			iVar0 = 365;
			break;
		
		case -522832741:
			iVar0 = 366;
			break;
		
		case 711940316:
			iVar0 = 367;
			break;
		
		case -1512107004:
			iVar0 = 368;
			break;
		
		case -273305505:
			iVar0 = 369;
			break;
		
		case -779122930:
			iVar0 = 370;
			break;
		
		case 565678099:
			iVar0 = 371;
			break;
		
		case 2130135469:
			iVar0 = 372;
			break;
		
		case 2142072717:
			iVar0 = 373;
			break;
		
		case -636638153:
			iVar0 = 374;
			break;
		
		case 289539239:
			iVar0 = 375;
			break;
		
		case -1040822561:
			iVar0 = 376;
			break;
		
		case 217486581:
			iVar0 = 377;
			break;
		
		case -2147244302:
			iVar0 = 378;
			break;
		
		case 830186237:
			iVar0 = 379;
			break;
		
		case -1902384566:
			iVar0 = 380;
			break;
		
		case 1471583453:
			iVar0 = 381;
			break;
		
		case 2007332931:
			iVar0 = 382;
			break;
		
		case 1104156493:
			iVar0 = 383;
			break;
		
		case 616400258:
			iVar0 = 384;
			break;
		
		case 511243162:
			iVar0 = 385;
			break;
		
		case -477451680:
			iVar0 = 386;
			break;
		
		case 743616295:
			iVar0 = 387;
			break;
		
		case 712215816:
			iVar0 = 388;
			break;
		
		case 1475570942:
			iVar0 = 389;
			break;
		
		case -1768978416:
			iVar0 = 390;
			break;
		
		case -2139711822:
			iVar0 = 391;
			break;
		
		case -1509236263:
			iVar0 = 392;
			break;
		
		case -1143383459:
			iVar0 = 393;
			break;
		
		case -1690206781:
			iVar0 = 394;
			break;
		
		case 1947095236:
			iVar0 = 395;
			break;
		
		case 300333876:
			iVar0 = 396;
			break;
		
		case 37732721:
			iVar0 = 397;
			break;
		
		case 959183706:
			iVar0 = 398;
			break;
		
		case -1542393224:
			iVar0 = 399;
			break;
	}
	switch (iParam0)
	{
		case 874488242:
			iVar0 = 400;
			break;
		
		case 1389335000:
			iVar0 = 401;
			break;
		
		case -366075547:
			iVar0 = 402;
			break;
		
		case -1125431584:
			iVar0 = 403;
			break;
		
		case -2000068963:
			iVar0 = 404;
			break;
		
		case 1497445248:
			iVar0 = 405;
			break;
		
		case 1989766704:
			iVar0 = 406;
			break;
		
		case -2086401979:
			iVar0 = 407;
			break;
		
		case -1846467361:
			iVar0 = 408;
			break;
		
		case -1325458477:
			iVar0 = 409;
			break;
		
		case -566725051:
			iVar0 = 410;
			break;
		
		case -787850263:
			iVar0 = 411;
			break;
		
		case -1885021085:
			iVar0 = 412;
			break;
		
		case 979307144:
			iVar0 = 413;
			break;
		
		case -473732439:
			iVar0 = 414;
			break;
		
		case 2062186390:
			iVar0 = 415;
			break;
		
		case -60867780:
			iVar0 = 416;
			break;
		
		case 926967912:
			iVar0 = 417;
			break;
		
		case -1886278590:
			iVar0 = 418;
			break;
		
		case -1314959708:
			iVar0 = 419;
			break;
		
		case -1696774529:
			iVar0 = 420;
			break;
		
		case -356446484:
			iVar0 = 421;
			break;
		
		case 857810380:
			iVar0 = 422;
			break;
		
		case -629676646:
			iVar0 = 423;
			break;
		
		case -1879530481:
			iVar0 = 424;
			break;
		
		case -1265847311:
			iVar0 = 425;
			break;
		
		case 32094424:
			iVar0 = 426;
			break;
		
		case 1969286744:
			iVar0 = 427;
			break;
		
		case 560620683:
			iVar0 = 428;
			break;
		
		case -148312642:
			iVar0 = 429;
			break;
		
		case -578277428:
			iVar0 = 430;
			break;
		
		case -718909970:
			iVar0 = 431;
			break;
		
		case -859026859:
			iVar0 = 432;
			break;
		
		case -839897805:
			iVar0 = 433;
			break;
		
		case 1676439910:
			iVar0 = 434;
			break;
		
		case -294157184:
			iVar0 = 435;
			break;
		
		case -1222200221:
			iVar0 = 436;
			break;
		
		case 874532672:
			iVar0 = 437;
			break;
		
		case -135929055:
			iVar0 = 438;
			break;
		
		case 1654917353:
			iVar0 = 439;
			break;
		
		case -13131391:
			iVar0 = 440;
			break;
		
		case 154845196:
			iVar0 = 441;
			break;
		
		case -1147884322:
			iVar0 = 442;
			break;
		
		case 291693311:
			iVar0 = 443;
			break;
		
		case -1401933531:
			iVar0 = 444;
			break;
		
		case 1820267020:
			iVar0 = 445;
			break;
		
		case 2134488961:
			iVar0 = 446;
			break;
		
		case -1861952745:
			iVar0 = 447;
			break;
		
		case 994458405:
			iVar0 = 448;
			break;
		
		case -1931715008:
			iVar0 = 449;
			break;
		
		case 1308745884:
			iVar0 = 450;
			break;
		
		case -1322955084:
			iVar0 = 451;
			break;
		
		case -816658183:
			iVar0 = 452;
			break;
		
		case -988307698:
			iVar0 = 453;
			break;
		
		case -1341411308:
			iVar0 = 454;
			break;
		
		case 1865570599:
			iVar0 = 455;
			break;
		
		case -549458010:
			iVar0 = 456;
			break;
		
		case -1328545177:
			iVar0 = 457;
			break;
		
		case -1361353619:
			iVar0 = 458;
			break;
		
		case 1103253806:
			iVar0 = 459;
			break;
		
		case -24183456:
			iVar0 = 460;
			break;
		
		case 436214104:
			iVar0 = 461;
			break;
		
		case 2072615278:
			iVar0 = 462;
			break;
		
		case -1131891426:
			iVar0 = 463;
			break;
		
		case 1392085456:
			iVar0 = 464;
			break;
		
		case 2035895234:
			iVar0 = 465;
			break;
		
		case 368784798:
			iVar0 = 466;
			break;
		
		case 1398938833:
			iVar0 = 467;
			break;
		
		case 1250040566:
			iVar0 = 468;
			break;
		
		case 2133228190:
			iVar0 = 469;
			break;
		
		case 675551540:
			iVar0 = 470;
			break;
		
		case -1826137848:
			iVar0 = 471;
			break;
		
		case -144105601:
			iVar0 = 472;
			break;
		
		case -748983650:
			iVar0 = 473;
			break;
		
		case 630291027:
			iVar0 = 474;
			break;
		
		case 293950434:
			iVar0 = 475;
			break;
		
		case 1857352111:
			iVar0 = 476;
			break;
		
		case -777671131:
			iVar0 = 477;
			break;
		
		case 221602924:
			iVar0 = 478;
			break;
		
		case 2039295216:
			iVar0 = 479;
			break;
		
		case 1800147054:
			iVar0 = 480;
			break;
		
		case -2019505897:
			iVar0 = 481;
			break;
		
		case 1647997020:
			iVar0 = 482;
			break;
		
		case -1405854945:
			iVar0 = 483;
			break;
		
		case -1171294997:
			iVar0 = 484;
			break;
		
		case -77076350:
			iVar0 = 485;
			break;
		
		case 775569873:
			iVar0 = 486;
			break;
		
		case 330569485:
			iVar0 = 487;
			break;
		
		case -1549217620:
			iVar0 = 488;
			break;
		
		case 1674429052:
			iVar0 = 489;
			break;
		
		case -254669596:
			iVar0 = 490;
			break;
		
		case 1802602254:
			iVar0 = 491;
			break;
		
		case -941072260:
			iVar0 = 492;
			break;
		
		case -1844749517:
			iVar0 = 493;
			break;
		
		case 82745424:
			iVar0 = 494;
			break;
		
		case -673460083:
			iVar0 = 495;
			break;
		
		case -99954496:
			iVar0 = 496;
			break;
		
		case 2078163456:
			iVar0 = 497;
			break;
		
		case 1362343227:
			iVar0 = 498;
			break;
		
		case 1176005743:
			iVar0 = 499;
			break;
	}
	switch (iParam0)
	{
		case -1504557219:
			iVar0 = 500;
			break;
		
		case 367912881:
			iVar0 = 501;
			break;
		
		case -836343280:
			iVar0 = 502;
			break;
		
		case -46521805:
			iVar0 = 503;
			break;
		
		case -743048780:
			iVar0 = 504;
			break;
		
		case 1294865118:
			iVar0 = 505;
			break;
		
		case -1479686374:
			iVar0 = 506;
			break;
		
		case 256017193:
			iVar0 = 507;
			break;
		
		case 1232443120:
			iVar0 = 508;
			break;
		
		case -803282271:
			iVar0 = 509;
			break;
		
		case 1788600442:
			iVar0 = 510;
			break;
		
		case 1439605343:
			iVar0 = 511;
			break;
		
		case -1094679264:
			iVar0 = 512;
			break;
		
		case 1230482241:
			iVar0 = 513;
			break;
		
		case 2054714291:
			iVar0 = 514;
			break;
		
		case 192117676:
			iVar0 = 515;
			break;
		
		case -2071204405:
			iVar0 = 516;
			break;
		
		case -1618181476:
			iVar0 = 517;
			break;
		
		case -1408253665:
			iVar0 = 518;
			break;
		
		case -134185391:
			iVar0 = 519;
			break;
		
		case -785783411:
			iVar0 = 520;
			break;
		
		case -633466710:
			iVar0 = 521;
			break;
		
		case -2072487372:
			iVar0 = 522;
			break;
		
		case 1211025296:
			iVar0 = 523;
			break;
		
		case 742659337:
			iVar0 = 524;
			break;
		
		case 1365533160:
			iVar0 = 525;
			break;
		
		case 1213205618:
			iVar0 = 526;
			break;
		
		case -164052103:
			iVar0 = 527;
			break;
		
		case -1306490297:
			iVar0 = 528;
			break;
		
		case -994802645:
			iVar0 = 529;
			break;
		
		case 637406209:
			iVar0 = 530;
			break;
		
		case -170855031:
			iVar0 = 531;
			break;
		
		case 1333098305:
			iVar0 = 532;
			break;
		
		case 119103934:
			iVar0 = 533;
			break;
		
		case -141369051:
			iVar0 = 534;
			break;
		
		case -593355218:
			iVar0 = 535;
			break;
		
		case 316832763:
			iVar0 = 536;
			break;
		
		case -393713544:
			iVar0 = 537;
			break;
		
		case -1876234625:
			iVar0 = 538;
			break;
		
		case -1453082334:
			iVar0 = 539;
			break;
		
		case -1397705983:
			iVar0 = 540;
			break;
		
		case -1278086171:
			iVar0 = 541;
			break;
		
		case -1510892268:
			iVar0 = 542;
			break;
		
		case 204876084:
			iVar0 = 543;
			break;
		
		case -988359492:
			iVar0 = 544;
			break;
		
		case 975745281:
			iVar0 = 545;
			break;
		
		case 591099372:
			iVar0 = 546;
			break;
		
		case -1014948306:
			iVar0 = 547;
			break;
		
		case -1866439788:
			iVar0 = 548;
			break;
		
		case -1265767186:
			iVar0 = 549;
			break;
		
		case 2070931859:
			iVar0 = 550;
			break;
		
		case 413611416:
			iVar0 = 551;
			break;
		
		case 765001063:
			iVar0 = 552;
			break;
		
		case -686624622:
			iVar0 = 553;
			break;
		
		case -937548349:
			iVar0 = 554;
			break;
		
		case 212584159:
			iVar0 = 555;
			break;
		
		case -328340062:
			iVar0 = 556;
			break;
		
		case 1657725123:
			iVar0 = 557;
			break;
		
		case -1517964336:
			iVar0 = 558;
			break;
		
		case -785490239:
			iVar0 = 559;
			break;
		
		case -11769229:
			iVar0 = 560;
			break;
		
		case 745912106:
			iVar0 = 561;
			break;
		
		case -2064265098:
			iVar0 = 562;
			break;
		
		case -1515892875:
			iVar0 = 563;
			break;
		
		case 1368234729:
			iVar0 = 564;
			break;
		
		case 1960230923:
			iVar0 = 565;
			break;
		
		case -860169810:
			iVar0 = 566;
			break;
		
		case -177882114:
			iVar0 = 567;
			break;
		
		case 661384509:
			iVar0 = 568;
			break;
		
		case 1221860095:
			iVar0 = 569;
			break;
		
		case 698192473:
			iVar0 = 570;
			break;
		
		case -817251083:
			iVar0 = 571;
			break;
		
		case -1108876323:
			iVar0 = 572;
			break;
		
		case 1274482696:
			iVar0 = 573;
			break;
		
		case 468009056:
			iVar0 = 574;
			break;
		
		case 2063732427:
			iVar0 = 575;
			break;
		
		case -764016411:
			iVar0 = 576;
			break;
		
		case -1530816149:
			iVar0 = 577;
			break;
		
		case 1189996018:
			iVar0 = 578;
			break;
		
		case -210110115:
			iVar0 = 579;
			break;
		
		case -207110256:
			iVar0 = 580;
			break;
		
		case 1801308144:
			iVar0 = 581;
			break;
		
		case 320631086:
			iVar0 = 582;
			break;
		
		case 1022560466:
			iVar0 = 583;
			break;
		
		case -952946041:
			iVar0 = 584;
			break;
		
		case 1321460664:
			iVar0 = 585;
			break;
		
		case -781625914:
			iVar0 = 586;
			break;
		
		case -1522247835:
			iVar0 = 587;
			break;
		
		case -1531245231:
			iVar0 = 588;
			break;
		
		case -1070472994:
			iVar0 = 589;
			break;
		
		case -2113341060:
			iVar0 = 590;
			break;
		
		case 965047293:
			iVar0 = 591;
			break;
		
		case 2114285045:
			iVar0 = 592;
			break;
		
		case -1635032213:
			iVar0 = 593;
			break;
		
		case 1310864345:
			iVar0 = 594;
			break;
		
		case -973977633:
			iVar0 = 595;
			break;
		
		case -1439643329:
			iVar0 = 596;
			break;
		
		case 434150104:
			iVar0 = 597;
			break;
		
		case 1243301688:
			iVar0 = 598;
			break;
		
		case -1233567982:
			iVar0 = 599;
			break;
	}
	switch (iParam0)
	{
		case 1262886680:
			iVar0 = 600;
			break;
		
		case 283135569:
			iVar0 = 601;
			break;
		
		case -548917969:
			iVar0 = 602;
			break;
		
		case 153465812:
			iVar0 = 603;
			break;
		
		case 1916093085:
			iVar0 = 604;
			break;
		
		case -701486200:
			iVar0 = 605;
			break;
		
		case 1951718630:
			iVar0 = 606;
			break;
		
		case -1981978861:
			iVar0 = 607;
			break;
		
		case -1998094267:
			iVar0 = 608;
			break;
		
		case -718445629:
			iVar0 = 609;
			break;
		
		case -35697399:
			iVar0 = 610;
			break;
		
		case -899081349:
			iVar0 = 611;
			break;
		
		case 1123547916:
			iVar0 = 612;
			break;
		
		case -1139893782:
			iVar0 = 613;
			break;
		
		case 1446511785:
			iVar0 = 614;
			break;
		
		case 1234256191:
			iVar0 = 615;
			break;
		
		case 413901048:
			iVar0 = 616;
			break;
		
		case 1527450164:
			iVar0 = 617;
			break;
		
		case -1786525476:
			iVar0 = 618;
			break;
		
		case 1439516635:
			iVar0 = 619;
			break;
		
		case 733800794:
			iVar0 = 620;
			break;
		
		case -399223540:
			iVar0 = 621;
			break;
		
		case -1894392230:
			iVar0 = 622;
			break;
		
		case 229993415:
			iVar0 = 623;
			break;
		
		case -620189683:
			iVar0 = 624;
			break;
		
		case 1846617794:
			iVar0 = 625;
			break;
		
		case -1142479347:
			iVar0 = 626;
			break;
		
		case -512960025:
			iVar0 = 627;
			break;
		
		case -759812557:
			iVar0 = 628;
			break;
		
		case 468661890:
			iVar0 = 629;
			break;
		
		case 1907925586:
			iVar0 = 630;
			break;
		
		case 646243571:
			iVar0 = 631;
			break;
		
		case 1953935161:
			iVar0 = 632;
			break;
		
		case 874867224:
			iVar0 = 633;
			break;
		
		case 1344008898:
			iVar0 = 634;
			break;
		
		case 1297781304:
			iVar0 = 635;
			break;
		
		case 1977233252:
			iVar0 = 636;
			break;
		
		case -194410344:
			iVar0 = 637;
			break;
		
		case 392012609:
			iVar0 = 638;
			break;
		
		case 705148450:
			iVar0 = 639;
			break;
		
		case 1677522529:
			iVar0 = 640;
			break;
		
		case -1362677538:
			iVar0 = 641;
			break;
		
		case 863458948:
			iVar0 = 642;
			break;
		
		case 9874621:
			iVar0 = 643;
			break;
		
		case 1809338990:
			iVar0 = 644;
			break;
		
		case -346939959:
			iVar0 = 645;
			break;
		
		case -934753544:
			iVar0 = 646;
			break;
		
		case 1604986209:
			iVar0 = 647;
			break;
		
		case -1514700421:
			iVar0 = 648;
			break;
		
		case 1177361060:
			iVar0 = 649;
			break;
		
		case -937529288:
			iVar0 = 650;
			break;
		
		case 547723644:
			iVar0 = 651;
			break;
		
		case 1750314531:
			iVar0 = 652;
			break;
		
		case -988332613:
			iVar0 = 653;
			break;
		
		case 80720443:
			iVar0 = 654;
			break;
		
		case -1220194634:
			iVar0 = 655;
			break;
		
		case -925735153:
			iVar0 = 656;
			break;
		
		case -1403745446:
			iVar0 = 657;
			break;
		
		case -1084626028:
			iVar0 = 658;
			break;
		
		case 2060572320:
			iVar0 = 659;
			break;
		
		case 1064377095:
			iVar0 = 660;
			break;
		
		case -1985597576:
			iVar0 = 661;
			break;
		
		case -2003189104:
			iVar0 = 662;
			break;
		
		case 1452329956:
			iVar0 = 663;
			break;
		
		case 1928573506:
			iVar0 = 664;
			break;
		
		case -185753722:
			iVar0 = 665;
			break;
		
		case -1580916109:
			iVar0 = 666;
			break;
		
		case -1077059973:
			iVar0 = 667;
			break;
		
		case 131755133:
			iVar0 = 668;
			break;
		
		case -253351038:
			iVar0 = 669;
			break;
		
		case 1332845224:
			iVar0 = 670;
			break;
		
		case -685051870:
			iVar0 = 671;
			break;
		
		case 2122847199:
			iVar0 = 672;
			break;
		
		case -149940744:
			iVar0 = 673;
			break;
		
		case -147741130:
			iVar0 = 674;
			break;
		
		case 302211868:
			iVar0 = 675;
			break;
		
		case -1361568592:
			iVar0 = 676;
			break;
		
		case -156600218:
			iVar0 = 677;
			break;
		
		case 1592739450:
			iVar0 = 678;
			break;
		
		case -633744004:
			iVar0 = 679;
			break;
		
		case -1467745952:
			iVar0 = 680;
			break;
		
		case 1129961041:
			iVar0 = 681;
			break;
		
		case -1221180772:
			iVar0 = 682;
			break;
		
		case 1957517559:
			iVar0 = 683;
			break;
		
		case -335233377:
			iVar0 = 684;
			break;
		
		case 2146762380:
			iVar0 = 685;
			break;
		
		case 427236107:
			iVar0 = 686;
			break;
		
		case -49636427:
			iVar0 = 687;
			break;
		
		case 1988133312:
			iVar0 = 688;
			break;
		
		case 40044091:
			iVar0 = 689;
			break;
		
		case -1189893809:
			iVar0 = 690;
			break;
		
		case 1182549017:
			iVar0 = 691;
			break;
		
		case 1403255481:
			iVar0 = 692;
			break;
		
		case 821579887:
			iVar0 = 693;
			break;
		
		case 1975948161:
			iVar0 = 694;
			break;
		
		case -953362234:
			iVar0 = 695;
			break;
		
		case 1521494915:
			iVar0 = 696;
			break;
		
		case 84635211:
			iVar0 = 697;
			break;
		
		case 2074655231:
			iVar0 = 698;
			break;
		
		case 1742494019:
			iVar0 = 699;
			break;
	}
	switch (iParam0)
	{
		case 1841934566:
			iVar0 = 700;
			break;
		
		case 1648222412:
			iVar0 = 701;
			break;
		
		case 1019312748:
			iVar0 = 702;
			break;
		
		case -1218730541:
			iVar0 = 703;
			break;
		
		case -88186884:
			iVar0 = 704;
			break;
		
		case 1428588096:
			iVar0 = 705;
			break;
		
		case -1788493673:
			iVar0 = 706;
			break;
		
		case -241894528:
			iVar0 = 707;
			break;
		
		case -1425414573:
			iVar0 = 708;
			break;
		
		case 1797163947:
			iVar0 = 709;
			break;
		
		case 823191231:
			iVar0 = 710;
			break;
		
		case 894133321:
			iVar0 = 711;
			break;
		
		case 1889485313:
			iVar0 = 712;
			break;
	}
	if (iVar0 != -1)
	{
		*uParam1 = (129 + iVar0);
		return true;
	}
	return false;
}

bool func_138(int iParam0, var uParam1)//Position - 0x17E2F
{
	int iVar0;
	
	iVar0 = -1;
	switch (iParam0)
	{
		case -1917324065:
			iVar0 = 0;
			break;
		
		case 1056297333:
			iVar0 = 1;
			break;
		
		case 494620709:
			iVar0 = 2;
			break;
		
		case 800453786:
			iVar0 = 3;
			break;
		
		case -1082736975:
			iVar0 = 4;
			break;
		
		case -754981437:
			iVar0 = 5;
			break;
		
		case -1801855538:
			iVar0 = 6;
			break;
		
		case 459313194:
			iVar0 = 7;
			break;
		
		case 2007087579:
			iVar0 = 8;
			break;
		
		case 1987172386:
			iVar0 = 9;
			break;
		
		case 1801787829:
			iVar0 = 10;
			break;
		
		case -221624488:
			iVar0 = 11;
			break;
		
		case 25158851:
			iVar0 = 12;
			break;
		
		case 472458130:
			iVar0 = 13;
			break;
		
		case 164352862:
			iVar0 = 14;
			break;
		
		case -904148779:
			iVar0 = 15;
			break;
		
		case -694439771:
			iVar0 = 16;
			break;
		
		case -1469590466:
			iVar0 = 17;
			break;
		
		case -1511207100:
			iVar0 = 18;
			break;
		
		case -1352670678:
			iVar0 = 19;
			break;
		
		case -1960273476:
			iVar0 = 20;
			break;
		
		case -1657389609:
			iVar0 = 21;
			break;
		
		case 1826839858:
			iVar0 = 22;
			break;
		
		case 1989701788:
			iVar0 = 23;
			break;
		
		case 1213109257:
			iVar0 = 24;
			break;
		
		case 607407061:
			iVar0 = 25;
			break;
		
		case 875031480:
			iVar0 = 26;
			break;
		
		case 1487418552:
			iVar0 = 27;
			break;
		
		case 264053475:
			iVar0 = 28;
			break;
		
		case 99094329:
			iVar0 = 29;
			break;
		
		case -244193715:
			iVar0 = 30;
			break;
		
		case -540785934:
			iVar0 = 31;
			break;
		
		case -694833003:
			iVar0 = 32;
			break;
		
		case -852058665:
			iVar0 = 33;
			break;
		
		case -1512648940:
			iVar0 = 34;
			break;
		
		case -761354077:
			iVar0 = 35;
			break;
		
		case 1560551467:
			iVar0 = 36;
			break;
		
		case 827974775:
			iVar0 = 37;
			break;
		
		case 1595162603:
			iVar0 = 38;
			break;
		
		case 709663738:
			iVar0 = 39;
			break;
		
		case 990002533:
			iVar0 = 40;
			break;
		
		case 1860213958:
			iVar0 = 41;
			break;
		
		case 2119318441:
			iVar0 = 42;
			break;
		
		case -1953737187:
			iVar0 = 43;
			break;
		
		case 193320466:
			iVar0 = 44;
			break;
		
		case 1936646403:
			iVar0 = 45;
			break;
		
		case -1126042648:
			iVar0 = 46;
			break;
		
		case -1125022512:
			iVar0 = 47;
			break;
		
		case -1304369017:
			iVar0 = 48;
			break;
		
		case -2018143375:
			iVar0 = 49;
			break;
		
		case 224730392:
			iVar0 = 50;
			break;
		
		case 439629494:
			iVar0 = 51;
			break;
		
		case 736778786:
			iVar0 = 52;
			break;
		
		case 1048444745:
			iVar0 = 53;
			break;
		
		case 1988816738:
			iVar0 = 54;
			break;
		
		case 2140603469:
			iVar0 = 55;
			break;
		
		case 214245031:
			iVar0 = 56;
			break;
		
		case 1006238992:
			iVar0 = 57;
			break;
		
		case 689952604:
			iVar0 = 58;
			break;
		
		case -681528353:
			iVar0 = 59;
			break;
		
		case 1157448359:
			iVar0 = 60;
			break;
		
		case 43105745:
			iVar0 = 61;
			break;
		
		case -270395278:
			iVar0 = 62;
			break;
		
		case 505181414:
			iVar0 = 63;
			break;
		
		case 254662409:
			iVar0 = 64;
			break;
		
		case -982924414:
			iVar0 = 65;
			break;
		
		case -1156010272:
			iVar0 = 66;
			break;
		
		case 1885313391:
			iVar0 = 67;
			break;
		
		case -694786597:
			iVar0 = 68;
			break;
		
		case -1950199756:
			iVar0 = 69;
			break;
		
		case 384168721:
			iVar0 = 70;
			break;
		
		case -369452741:
			iVar0 = 71;
			break;
		
		case -89113946:
			iVar0 = 72;
			break;
		
		case 1836261422:
			iVar0 = 73;
			break;
		
		case -1004417654:
			iVar0 = 74;
			break;
		
		case -754095263:
			iVar0 = 75;
			break;
		
		case -1210698509:
			iVar0 = 76;
			break;
		
		case 1332405298:
			iVar0 = 77;
			break;
		
		case 552929095:
			iVar0 = 78;
			break;
		
		case 861154309:
			iVar0 = 79;
			break;
		
		case -1653801207:
			iVar0 = 80;
			break;
		
		case -87213624:
			iVar0 = 81;
			break;
		
		case 1285643631:
			iVar0 = 82;
			break;
		
		case 523240077:
			iVar0 = 83;
			break;
		
		case 823174734:
			iVar0 = 84;
			break;
		
		case -1248612522:
			iVar0 = 85;
			break;
		
		case 123359970:
			iVar0 = 86;
			break;
		
		case 369684543:
			iVar0 = 87;
			break;
		
		case -337142787:
			iVar0 = 88;
			break;
		
		case 1395583642:
			iVar0 = 89;
			break;
		
		case 1782520810:
			iVar0 = 90;
			break;
		
		case -660506451:
			iVar0 = 91;
			break;
		
		case -1092860637:
			iVar0 = 92;
			break;
		
		case 524387820:
			iVar0 = 93;
			break;
		
		case -1829180023:
			iVar0 = 94;
			break;
		
		case 2091368679:
			iVar0 = 95;
			break;
		
		case 1851597906:
			iVar0 = 96;
			break;
		
		case -434629734:
			iVar0 = 97;
			break;
		
		case 1415278623:
			iVar0 = 98;
			break;
		
		case 1252285617:
			iVar0 = 99;
			break;
	}
	switch (iParam0)
	{
		case 893595891:
			iVar0 = 100;
			break;
		
		case 423819507:
			iVar0 = 101;
			break;
		
		case -1433887872:
			iVar0 = 102;
			break;
		
		case -464613621:
			iVar0 = 103;
			break;
		
		case -301227387:
			iVar0 = 104;
			break;
		
		case -701762906:
			iVar0 = 105;
			break;
		
		case -890282963:
			iVar0 = 106;
			break;
		
		case -1188251480:
			iVar0 = 107;
			break;
		
		case 258827560:
			iVar0 = 108;
			break;
		
		case 965649655:
			iVar0 = 109;
			break;
		
		case 718800778:
			iVar0 = 110;
			break;
		
		case 1959959422:
			iVar0 = 111;
			break;
		
		case 1200177388:
			iVar0 = 112;
			break;
		
		case -1874439579:
			iVar0 = 113;
			break;
		
		case -1679505893:
			iVar0 = 114;
			break;
		
		case -1976229188:
			iVar0 = 115;
			break;
		
		case 2037875009:
			iVar0 = 116;
			break;
		
		case -235146664:
			iVar0 = 117;
			break;
		
		case -441853516:
			iVar0 = 118;
			break;
		
		case -664221443:
			iVar0 = 119;
			break;
		
		case -371627042:
			iVar0 = 120;
			break;
		
		case -1266220742:
			iVar0 = 121;
			break;
		
		case -968055611:
			iVar0 = 122;
			break;
		
		case 248100286:
			iVar0 = 123;
			break;
		
		case 551606764:
			iVar0 = 124;
			break;
		
		case 1805971315:
			iVar0 = 125;
			break;
		
		case -43642121:
			iVar0 = 126;
			break;
		
		case 1172251624:
			iVar0 = 127;
			break;
		
		case 1471989667:
			iVar0 = 128;
			break;
		
		case -2124702788:
			iVar0 = 129;
			break;
		
		case -1826734271:
			iVar0 = 130;
			break;
		
		case -900452940:
			iVar0 = 131;
			break;
		
		case -292194762:
			iVar0 = 132;
			break;
		
		case 637166847:
			iVar0 = 133;
			break;
		
		case -1204844181:
			iVar0 = 134;
			break;
		
		case 324779970:
			iVar0 = 135;
			break;
		
		case 329039940:
			iVar0 = 136;
			break;
		
		case 1854928425:
			iVar0 = 137;
			break;
		
		case 13179549:
			iVar0 = 138;
			break;
		
		case 1899823455:
			iVar0 = 139;
			break;
		
		case -2090490448:
			iVar0 = 140;
			break;
		
		case -1801467868:
			iVar0 = 141;
			break;
		
		case 953986562:
			iVar0 = 142;
			break;
		
		case 585335312:
			iVar0 = 143;
			break;
		
		case 489617063:
			iVar0 = 144;
			break;
		
		case 210195800:
			iVar0 = 145;
			break;
		
		case 1843402776:
			iVar0 = 146;
			break;
		
		case -1600520821:
			iVar0 = 147;
			break;
		
		case 1399087889:
			iVar0 = 148;
			break;
		
		case 1169344430:
			iVar0 = 149;
			break;
		
		case -2028647818:
			iVar0 = 150;
			break;
		
		case -1335845620:
			iVar0 = 151;
			break;
		
		case -1450406320:
			iVar0 = 152;
			break;
		
		case -1209849091:
			iVar0 = 153;
			break;
		
		case 2065609077:
			iVar0 = 154;
			break;
		
		case -664245241:
			iVar0 = 155;
			break;
		
		case 1676130538:
			iVar0 = 156;
			break;
		
		case -1730534702:
			iVar0 = 157;
			break;
		
		case -1767432596:
			iVar0 = 158;
			break;
		
		case -2016105604:
			iVar0 = 159;
			break;
		
		case 1971947238:
			iVar0 = 160;
			break;
		
		case -362811247:
			iVar0 = 161;
			break;
		
		case -668087251:
			iVar0 = 162;
			break;
		
		case -821282326:
			iVar0 = 163;
			break;
		
		case -1083467095:
			iVar0 = 164;
			break;
		
		case 550067555:
			iVar0 = 165;
			break;
		
		case 1439221609:
			iVar0 = 166;
			break;
		
		case 67412954:
			iVar0 = 167;
			break;
		
		case -1999360357:
			iVar0 = 168;
			break;
		
		case 1461537582:
			iVar0 = 169;
			break;
		
		case -1828273408:
			iVar0 = 170;
			break;
		
		case -1319239762:
			iVar0 = 171;
			break;
		
		case -1234400821:
			iVar0 = 172;
			break;
		
		case -992303449:
			iVar0 = 173;
			break;
		
		case -638398249:
			iVar0 = 174;
			break;
		
		case -41543683:
			iVar0 = 175;
			break;
		
		case -1934903018:
			iVar0 = 176;
			break;
		
		case 2132090345:
			iVar0 = 177;
			break;
		
		case 1751052413:
			iVar0 = 178;
			break;
		
		case 1519604966:
			iVar0 = 179;
			break;
		
		case -1964624525:
			iVar0 = 180;
			break;
		
		case 2006191823:
			iVar0 = 181;
			break;
		
		case 1633280603:
			iVar0 = 182;
			break;
		
		case 632918673:
			iVar0 = 183;
			break;
		
		case -190040148:
			iVar0 = 184;
			break;
		
		case 42936837:
			iVar0 = 185;
			break;
		
		case -1458541976:
			iVar0 = 186;
			break;
		
		case -606014753:
			iVar0 = 187;
			break;
		
		case -613376371:
			iVar0 = 188;
			break;
		
		case -446291501:
			iVar0 = 189;
			break;
		
		case 739308497:
			iVar0 = 190;
			break;
		
		case 495343292:
			iVar0 = 191;
			break;
		
		case -1686711653:
			iVar0 = 192;
			break;
		
		case 1187457341:
			iVar0 = 193;
			break;
		
		case 956403122:
			iVar0 = 194;
			break;
		
		case 1647042566:
			iVar0 = 195;
			break;
		
		case -461478743:
			iVar0 = 196;
			break;
		
		case -1883325653:
			iVar0 = 197;
			break;
		
		case -2114248796:
			iVar0 = 198;
			break;
		
		case 314228205:
			iVar0 = 199;
			break;
	}
	switch (iParam0)
	{
		case 1503775674:
			iVar0 = 200;
			break;
		
		case 1862399610:
			iVar0 = 201;
			break;
		
		case 708472048:
			iVar0 = 202;
			break;
		
		case -1207367545:
			iVar0 = 203;
			break;
		
		case 111650251:
			iVar0 = 204;
			break;
		
		case -28941494:
			iVar0 = 205;
			break;
		
		case -1827173138:
			iVar0 = 206;
			break;
		
		case -520681423:
			iVar0 = 207;
			break;
		
		case -209343154:
			iVar0 = 208;
			break;
		
		case -293579471:
			iVar0 = 209;
			break;
		
		case 20871853:
			iVar0 = 210;
			break;
		
		case -89823344:
			iVar0 = 211;
			break;
		
		case -1820191335:
			iVar0 = 212;
			break;
		
		case -1588547274:
			iVar0 = 213;
			break;
		
		case -1224287070:
			iVar0 = 214;
			break;
		
		case -994150383:
			iVar0 = 215;
			break;
		
		case -869824793:
			iVar0 = 216;
			break;
		
		case -633330920:
			iVar0 = 217;
			break;
		
		case -308131364:
			iVar0 = 218;
			break;
		
		case -38278649:
			iVar0 = 219;
			break;
		
		case 555692245:
			iVar0 = 220;
			break;
		
		case 929455459:
			iVar0 = 221;
			break;
		
		case -2092436411:
			iVar0 = 222;
			break;
		
		case 1904300216:
			iVar0 = 223;
			break;
		
		case -1599361268:
			iVar0 = 224;
			break;
		
		case -1897002095:
			iVar0 = 225;
			break;
		
		case -1011813098:
			iVar0 = 226;
			break;
		
		case -1316794181:
			iVar0 = 227;
			break;
		
		case -416105443:
			iVar0 = 228;
			break;
		
		case -47978497:
			iVar0 = 229;
			break;
		
		case -358202620:
			iVar0 = 230;
			break;
		
		case 547139312:
			iVar0 = 231;
			break;
		
		case 1124688073:
			iVar0 = 232;
			break;
		
		case 888521890:
			iVar0 = 233;
			break;
		
		case 665823766:
			iVar0 = 234;
			break;
		
		case 427888057:
			iVar0 = 235;
			break;
		
		case 1121411181:
			iVar0 = 236;
			break;
		
		case 890225886:
			iVar0 = 237;
			break;
		
		case 651012186:
			iVar0 = 238;
			break;
		
		case 422776101:
			iVar0 = 239;
			break;
		
		case 1630543134:
			iVar0 = 240;
			break;
		
		case -1945668916:
			iVar0 = 241;
			break;
		
		case -627999265:
			iVar0 = 242;
			break;
		
		case 1682346315:
			iVar0 = 243;
			break;
		
		case 1021952654:
			iVar0 = 244;
			break;
		
		case 1319396867:
			iVar0 = 245;
			break;
		
		case 560794517:
			iVar0 = 246;
			break;
		
		case 858697496:
			iVar0 = 247;
			break;
		
		case -30981230:
			iVar0 = 248;
			break;
		
		case -328032215:
			iVar0 = 249;
			break;
		
		case -1451681225:
			iVar0 = 250;
			break;
		
		case 267904819:
			iVar0 = 251;
			break;
		
		case 1570178485:
			iVar0 = 252;
			break;
		
		case -1619850916:
			iVar0 = 253;
			break;
		
		case -713067148:
			iVar0 = 254;
			break;
		
		case 946477614:
			iVar0 = 255;
			break;
		
		case -1423343701:
			iVar0 = 256;
			break;
		
		case 445931457:
			iVar0 = 257;
			break;
		
		case 678558588:
			iVar0 = 258;
			break;
		
		case -854631987:
			iVar0 = 259;
			break;
		
		case -1707871209:
			iVar0 = 260;
			break;
		
		case -863391184:
			iVar0 = 261;
			break;
		
		case 671171671:
			iVar0 = 262;
			break;
		
		case 904519720:
			iVar0 = 263;
			break;
		
		case 670952414:
			iVar0 = 264;
			break;
		
		case -282875325:
			iVar0 = 265;
			break;
		
		case 2079623104:
			iVar0 = 266;
			break;
		
		case 1088443427:
			iVar0 = 267;
			break;
		
		case 200001600:
			iVar0 = 268;
			break;
		
		case 1620729159:
			iVar0 = 269;
			break;
		
		case -1713274238:
			iVar0 = 270;
			break;
		
		case -1571590969:
			iVar0 = 271;
			break;
		
		case -457639374:
			iVar0 = 272;
			break;
		
		case 64160805:
			iVar0 = 273;
			break;
		
		case 1015325203:
			iVar0 = 274;
			break;
		
		case -1951778967:
			iVar0 = 275;
			break;
		
		case 1836042304:
			iVar0 = 276;
			break;
		
		case -421094621:
			iVar0 = 277;
			break;
		
		case 641062099:
			iVar0 = 278;
			break;
		
		case 597454468:
			iVar0 = 279;
			break;
		
		case 713758205:
			iVar0 = 280;
			break;
		
		case 1042267708:
			iVar0 = 281;
			break;
		
		case -637951661:
			iVar0 = 282;
			break;
		
		case 195911857:
			iVar0 = 283;
			break;
		
		case 903988957:
			iVar0 = 284;
			break;
		
		case 1068170761:
			iVar0 = 285;
			break;
		
		case -619065384:
			iVar0 = 286;
			break;
		
		case -497085955:
			iVar0 = 287;
			break;
		
		case 1138369002:
			iVar0 = 288;
			break;
		
		case -1957731308:
			iVar0 = 289;
			break;
		
		case -2063712125:
			iVar0 = 290;
			break;
		
		case 1773674262:
			iVar0 = 291;
			break;
		
		case 1027059614:
			iVar0 = 292;
			break;
		
		case 1366782677:
			iVar0 = 293;
			break;
		
		case 216134256:
			iVar0 = 294;
			break;
		
		case 810154442:
			iVar0 = 295;
			break;
		
		case 77285961:
			iVar0 = 296;
			break;
		
		case 1617489838:
			iVar0 = 297;
			break;
		
		case 1697138602:
			iVar0 = 298;
			break;
		
		case 711811694:
			iVar0 = 299;
			break;
	}
	switch (iParam0)
	{
		case -895106351:
			iVar0 = 300;
			break;
		
		case 875367934:
			iVar0 = 301;
			break;
		
		case -979867160:
			iVar0 = 302;
			break;
		
		case -1233816942:
			iVar0 = 303;
			break;
		
		case -866958715:
			iVar0 = 304;
			break;
		
		case -1303573005:
			iVar0 = 305;
			break;
		
		case 2085207152:
			iVar0 = 306;
			break;
		
		case 857137150:
			iVar0 = 307;
			break;
		
		case 535952639:
			iVar0 = 308;
			break;
		
		case -1974657401:
			iVar0 = 309;
			break;
		
		case 129909013:
			iVar0 = 310;
			break;
		
		case -1499060170:
			iVar0 = 311;
			break;
		
		case 412032123:
			iVar0 = 312;
			break;
		
		case 915049044:
			iVar0 = 313;
			break;
		
		case 456478679:
			iVar0 = 314;
			break;
		
		case 907364848:
			iVar0 = 315;
			break;
		
		case -1783721060:
			iVar0 = 316;
			break;
		
		case -1008363280:
			iVar0 = 317;
			break;
		
		case 1429817922:
			iVar0 = 318;
			break;
		
		case -938326281:
			iVar0 = 319;
			break;
		
		case -1073925235:
			iVar0 = 320;
			break;
		
		case 1498524677:
			iVar0 = 321;
			break;
		
		case 1525596308:
			iVar0 = 322;
			break;
		
		case 1232639216:
			iVar0 = 323;
			break;
		
		case 956061600:
			iVar0 = 324;
			break;
		
		case 816551665:
			iVar0 = 325;
			break;
		
		case 2049704410:
			iVar0 = 326;
			break;
		
		case -796818724:
			iVar0 = 327;
			break;
		
		case 1775476370:
			iVar0 = 328;
			break;
		
		case 266230635:
			iVar0 = 329;
			break;
		
		case -588549683:
			iVar0 = 330;
			break;
		
		case 464027076:
			iVar0 = 331;
			break;
		
		case 2122049260:
			iVar0 = 332;
			break;
		
		case 1049130700:
			iVar0 = 333;
			break;
		
		case -116952560:
			iVar0 = 334;
			break;
		
		case 1424723115:
			iVar0 = 335;
			break;
		
		case -1007272003:
			iVar0 = 336;
			break;
		
		case -644829701:
			iVar0 = 337;
			break;
		
		case -2103222497:
			iVar0 = 338;
			break;
		
		case -1589795073:
			iVar0 = 339;
			break;
		
		case -1689668067:
			iVar0 = 340;
			break;
		
		case -189814108:
			iVar0 = 341;
			break;
		
		case -1595292141:
			iVar0 = 342;
			break;
		
		case -1540940714:
			iVar0 = 343;
			break;
		
		case -2136471172:
			iVar0 = 344;
			break;
		
		case -666892434:
			iVar0 = 345;
			break;
		
		case -1001125323:
			iVar0 = 346;
			break;
		
		case 904104464:
			iVar0 = 347;
			break;
		
		case 690016265:
			iVar0 = 348;
			break;
		
		case 38190590:
			iVar0 = 349;
			break;
		
		case 2119761078:
			iVar0 = 350;
			break;
		
		case -1213131712:
			iVar0 = 351;
			break;
		
		case 990079224:
			iVar0 = 352;
			break;
		
		case -905045993:
			iVar0 = 353;
			break;
		
		case 2104378143:
			iVar0 = 354;
			break;
		
		case -666631800:
			iVar0 = 355;
			break;
		
		case 549954933:
			iVar0 = 356;
			break;
		
		case 1830069972:
			iVar0 = 357;
			break;
		
		case 859320876:
			iVar0 = 358;
			break;
		
		case -552358316:
			iVar0 = 359;
			break;
		
		case 1522216340:
			iVar0 = 360;
			break;
		
		case -1783296601:
			iVar0 = 361;
			break;
		
		case 283995288:
			iVar0 = 362;
			break;
		
		case -975534410:
			iVar0 = 363;
			break;
		
		case -2088194624:
			iVar0 = 364;
			break;
		
		case 1744801848:
			iVar0 = 365;
			break;
		
		case -481389646:
			iVar0 = 366;
			break;
		
		case -1781363036:
			iVar0 = 367;
			break;
		
		case 496009839:
			iVar0 = 368;
			break;
		
		case -667608820:
			iVar0 = 369;
			break;
		
		case 460475899:
			iVar0 = 370;
			break;
		
		case 1491168919:
			iVar0 = 371;
			break;
		
		case -1611478806:
			iVar0 = 372;
			break;
		
		case 523495612:
			iVar0 = 373;
			break;
		
		case -78008273:
			iVar0 = 374;
			break;
		
		case -762375847:
			iVar0 = 375;
			break;
		
		case 331482129:
			iVar0 = 376;
			break;
		
		case -2083628050:
			iVar0 = 377;
			break;
		
		case -468800117:
			iVar0 = 378;
			break;
		
		case 724819757:
			iVar0 = 379;
			break;
		
		case -1058761348:
			iVar0 = 380;
			break;
		
		case -546178212:
			iVar0 = 381;
			break;
		
		case -118052734:
			iVar0 = 382;
			break;
		
		case 1654466691:
			iVar0 = 383;
			break;
		
		case -1077553649:
			iVar0 = 384;
			break;
		
		case -886092159:
			iVar0 = 385;
			break;
		
		case -1406331536:
			iVar0 = 386;
			break;
		
		case -1968934850:
			iVar0 = 387;
			break;
		
		case 3741245:
			iVar0 = 388;
			break;
		
		case 1387838298:
			iVar0 = 389;
			break;
		
		case -1941058219:
			iVar0 = 390;
			break;
		
		case 955033120:
			iVar0 = 391;
			break;
		
		case 677119231:
			iVar0 = 392;
			break;
		
		case -1616214916:
			iVar0 = 393;
			break;
		
		case -841195297:
			iVar0 = 394;
			break;
		
		case -909289279:
			iVar0 = 395;
			break;
		
		case -239567341:
			iVar0 = 396;
			break;
		
		case -613592707:
			iVar0 = 397;
			break;
		
		case -988568374:
			iVar0 = 398;
			break;
		
		case -1090807654:
			iVar0 = 399;
			break;
	}
	switch (iParam0)
	{
		case 534771589:
			iVar0 = 400;
			break;
		
		case -1340139519:
			iVar0 = 401;
			break;
		
		case -849980761:
			iVar0 = 402;
			break;
		
		case -551553478:
			iVar0 = 403;
			break;
		
		case 386581472:
			iVar0 = 404;
			break;
		
		case 1466454525:
			iVar0 = 405;
			break;
		
		case 283190173:
			iVar0 = 406;
			break;
		
		case 1528527015:
			iVar0 = 407;
			break;
		
		case -1690029966:
			iVar0 = 408;
			break;
		
		case -1685994466:
			iVar0 = 409;
			break;
		
		case 255166927:
			iVar0 = 410;
			break;
		
		case -271257487:
			iVar0 = 411;
			break;
		
		case 1885215284:
			iVar0 = 412;
			break;
		
		case -1935156988:
			iVar0 = 413;
			break;
		
		case 1061465906:
			iVar0 = 414;
			break;
		
		case -871031729:
			iVar0 = 415;
			break;
		
		case -101171485:
			iVar0 = 416;
			break;
		
		case -1590298770:
			iVar0 = 417;
			break;
		
		case 303441856:
			iVar0 = 418;
			break;
		
		case -2049689650:
			iVar0 = 419;
			break;
		
		case 788520303:
			iVar0 = 420;
			break;
		
		case -859861445:
			iVar0 = 421;
			break;
		
		case 1045897298:
			iVar0 = 422;
			break;
		
		case 116964921:
			iVar0 = 423;
			break;
		
		case -1502257606:
			iVar0 = 424;
			break;
		
		case -546150284:
			iVar0 = 425;
			break;
		
		case -357466888:
			iVar0 = 426;
			break;
		
		case 718674880:
			iVar0 = 427;
			break;
		
		case -1529401172:
			iVar0 = 428;
			break;
		
		case 2088037441:
			iVar0 = 429;
			break;
		
		case 2048866271:
			iVar0 = 430;
			break;
		
		case -1565431690:
			iVar0 = 431;
			break;
		
		case -1528465573:
			iVar0 = 432;
			break;
		
		case 401532197:
			iVar0 = 433;
			break;
		
		case 826974918:
			iVar0 = 434;
			break;
		
		case -676067408:
			iVar0 = 435;
			break;
		
		case 1877289089:
			iVar0 = 436;
			break;
		
		case 859380017:
			iVar0 = 437;
			break;
		
		case 233098354:
			iVar0 = 438;
			break;
		
		case 566101858:
			iVar0 = 439;
			break;
		
		case 529460830:
			iVar0 = 440;
			break;
		
		case -1833118141:
			iVar0 = 441;
			break;
		
		case 422823598:
			iVar0 = 442;
			break;
		
		case 1450358661:
			iVar0 = 443;
			break;
		
		case 741089893:
			iVar0 = 444;
			break;
		
		case 1289848370:
			iVar0 = 445;
			break;
		
		case 616166430:
			iVar0 = 446;
			break;
		
		case 1489225316:
			iVar0 = 447;
			break;
		
		case 753969632:
			iVar0 = 448;
			break;
		
		case -1182831168:
			iVar0 = 449;
			break;
		
		case 1545103753:
			iVar0 = 450;
			break;
		
		case 2090080808:
			iVar0 = 451;
			break;
		
		case 903606896:
			iVar0 = 452;
			break;
		
		case 26759391:
			iVar0 = 453;
			break;
		
		case 1651885364:
			iVar0 = 454;
			break;
		
		case 729529407:
			iVar0 = 455;
			break;
		
		case 528802126:
			iVar0 = 456;
			break;
		
		case -1468003071:
			iVar0 = 457;
			break;
		
		case 1683696787:
			iVar0 = 458;
			break;
		
		case -726859160:
			iVar0 = 459;
			break;
		
		case 1209899578:
			iVar0 = 460;
			break;
		
		case 930604285:
			iVar0 = 461;
			break;
		
		case -308584186:
			iVar0 = 462;
			break;
		
		case -64129874:
			iVar0 = 463;
			break;
		
		case -1431204514:
			iVar0 = 464;
			break;
		
		case -1133334304:
			iVar0 = 465;
			break;
		
		case -1809784771:
			iVar0 = 466;
			break;
		
		case -1576934998:
			iVar0 = 467;
			break;
		
		case -1570929684:
			iVar0 = 468;
			break;
		
		case 1976578151:
			iVar0 = 469;
			break;
		
		case -441419962:
			iVar0 = 470;
			break;
		
		case -841238543:
			iVar0 = 471;
			break;
		
		case 1644315794:
			iVar0 = 472;
			break;
		
		case 1964334039:
			iVar0 = 473;
			break;
		
		case -1168614925:
			iVar0 = 474;
			break;
		
		case -56760095:
			iVar0 = 475;
			break;
		
		case -1006202521:
			iVar0 = 476;
			break;
		
		case -1834049539:
			iVar0 = 477;
			break;
		
		case -2060372580:
			iVar0 = 478;
			break;
		
		case 1057304170:
			iVar0 = 479;
			break;
		
		case 1421572640:
			iVar0 = 480;
			break;
		
		case 481259621:
			iVar0 = 481;
			break;
		
		case 1227497670:
			iVar0 = 482;
			break;
		
		case 319276780:
			iVar0 = 483;
			break;
		
		case 2070827921:
			iVar0 = 484;
			break;
		
		case 1433629991:
			iVar0 = 485;
			break;
		
		case -1712994650:
			iVar0 = 486;
			break;
		
		case 2125094286:
			iVar0 = 487;
			break;
		
		case 712298404:
			iVar0 = 488;
			break;
		
		case 1998072324:
			iVar0 = 489;
			break;
		
		case 1249206960:
			iVar0 = 490;
			break;
		
		case -621355603:
			iVar0 = 491;
			break;
		
		case 1570835960:
			iVar0 = 492;
			break;
		
		case -1254202543:
			iVar0 = 493;
			break;
		
		case -956136061:
			iVar0 = 494;
			break;
		
		case -1925480683:
			iVar0 = 495;
			break;
		
		case 220143168:
			iVar0 = 496;
			break;
		
		case -1021851577:
			iVar0 = 497;
			break;
		
		case -773345516:
			iVar0 = 498;
			break;
		
		case 1091795205:
			iVar0 = 499;
			break;
	}
	switch (iParam0)
	{
		case -1159824040:
			iVar0 = 500;
			break;
		
		case 1448723789:
			iVar0 = 501;
			break;
		
		case -488127340:
			iVar0 = 502;
			break;
		
		case -1964967283:
			iVar0 = 503;
			break;
		
		case -1635180127:
			iVar0 = 504;
			break;
		
		case -10501563:
			iVar0 = 505;
			break;
		
		case 933419071:
			iVar0 = 506;
			break;
		
		case 1362374839:
			iVar0 = 507;
			break;
		
		case 488078687:
			iVar0 = 508;
			break;
		
		case -1869054624:
			iVar0 = 509;
			break;
		
		case -1817642831:
			iVar0 = 510;
			break;
		
		case 482472119:
			iVar0 = 511;
			break;
		
		case -1736839817:
			iVar0 = 512;
			break;
		
		case 415527077:
			iVar0 = 513;
			break;
		
		case -907440189:
			iVar0 = 514;
			break;
		
		case -2099454789:
			iVar0 = 515;
			break;
		
		case -1719543542:
			iVar0 = 516;
			break;
		
		case 1848661824:
			iVar0 = 517;
			break;
		
		case -2018029706:
			iVar0 = 518;
			break;
		
		case -717212544:
			iVar0 = 519;
			break;
		
		case -594210450:
			iVar0 = 520;
			break;
		
		case 1520437442:
			iVar0 = 521;
			break;
		
		case 374349467:
			iVar0 = 522;
			break;
		
		case 1533123503:
			iVar0 = 523;
			break;
		
		case -1832780872:
			iVar0 = 524;
			break;
		
		case 130721536:
			iVar0 = 525;
			break;
		
		case 195356001:
			iVar0 = 526;
			break;
		
		case -556915722:
			iVar0 = 527;
			break;
		
		case -1930562696:
			iVar0 = 528;
			break;
		
		case 941227127:
			iVar0 = 529;
			break;
		
		case -842699589:
			iVar0 = 530;
			break;
		
		case 1654019571:
			iVar0 = 531;
			break;
		
		case 224191803:
			iVar0 = 532;
			break;
		
		case -1996796255:
			iVar0 = 533;
			break;
		
		case -1850715440:
			iVar0 = 534;
			break;
		
		case 1603163718:
			iVar0 = 535;
			break;
		
		case 1567227108:
			iVar0 = 536;
			break;
		
		case -1630649997:
			iVar0 = 537;
			break;
		
		case -25727072:
			iVar0 = 538;
			break;
		
		case -1363418653:
			iVar0 = 539;
			break;
		
		case 1878229535:
			iVar0 = 540;
			break;
		
		case 1531050226:
			iVar0 = 541;
			break;
		
		case 1246243345:
			iVar0 = 542;
			break;
		
		case 463561930:
			iVar0 = 543;
			break;
		
		case 1431846777:
			iVar0 = 544;
			break;
		
		case -460168116:
			iVar0 = 545;
			break;
		
		case -2015343582:
			iVar0 = 546;
			break;
		
		case 2051301469:
			iVar0 = 547;
			break;
		
		case 1887452986:
			iVar0 = 548;
			break;
		
		case -1551331969:
			iVar0 = 549;
			break;
		
		case 682382693:
			iVar0 = 550;
			break;
		
		case 765481743:
			iVar0 = 551;
			break;
		
		case 1094179010:
			iVar0 = 552;
			break;
		
		case 1906582382:
			iVar0 = 553;
			break;
		
		case 1923135102:
			iVar0 = 554;
			break;
		
		case -964908188:
			iVar0 = 555;
			break;
		
		case -1145896773:
			iVar0 = 556;
			break;
		
		case -776248682:
			iVar0 = 557;
			break;
		
		case 872613482:
			iVar0 = 558;
			break;
		
		case 1049060638:
			iVar0 = 559;
			break;
		
		case -927135334:
			iVar0 = 560;
			break;
		
		case -445820043:
			iVar0 = 561;
			break;
		
		case 1610045630:
			iVar0 = 562;
			break;
		
		case -1070800165:
			iVar0 = 563;
			break;
		
		case -589592162:
			iVar0 = 564;
			break;
		
		case 1723966869:
			iVar0 = 565;
			break;
		
		case 402539085:
			iVar0 = 566;
			break;
		
		case 873283678:
			iVar0 = 567;
			break;
		
		case -883161109:
			iVar0 = 568;
			break;
		
		case -1764919154:
			iVar0 = 569;
			break;
		
		case -2050352513:
			iVar0 = 570;
			break;
		
		case 1114188021:
			iVar0 = 571;
			break;
		
		case 1798282399:
			iVar0 = 572;
			break;
		
		case 1944820428:
			iVar0 = 573;
			break;
		
		case 100210893:
			iVar0 = 574;
			break;
		
		case -1699022511:
			iVar0 = 575;
			break;
		
		case 466917406:
			iVar0 = 576;
			break;
		
		case -349746245:
			iVar0 = 577;
			break;
		
		case 715904570:
			iVar0 = 578;
			break;
		
		case 281777035:
			iVar0 = 579;
			break;
		
		case 1511283406:
			iVar0 = 580;
			break;
		
		case -241337647:
			iVar0 = 581;
			break;
		
		case 748393780:
			iVar0 = 582;
			break;
		
		case 709511536:
			iVar0 = 583;
			break;
		
		case -652535466:
			iVar0 = 584;
			break;
		
		case -1148900842:
			iVar0 = 585;
			break;
		
		case -271863310:
			iVar0 = 586;
			break;
		
		case 35654857:
			iVar0 = 587;
			break;
		
		case 1894813304:
			iVar0 = 588;
			break;
		
		case 1184660438:
			iVar0 = 589;
			break;
		
		case -1461750963:
			iVar0 = 590;
			break;
		
		case 769964545:
			iVar0 = 591;
			break;
		
		case 1424500982:
			iVar0 = 592;
			break;
		
		case -1810785185:
			iVar0 = 593;
			break;
		
		case 837990279:
			iVar0 = 594;
			break;
		
		case -1357788003:
			iVar0 = 595;
			break;
		
		case -8210327:
			iVar0 = 596;
			break;
		
		case 1186553524:
			iVar0 = 597;
			break;
		
		case 1174934203:
			iVar0 = 598;
			break;
		
		case -984449089:
			iVar0 = 599;
			break;
	}
	switch (iParam0)
	{
		case -49570837:
			iVar0 = 600;
			break;
		
		case -1680371785:
			iVar0 = 601;
			break;
		
		case -1850912390:
			iVar0 = 602;
			break;
		
		case -1740038087:
			iVar0 = 603;
			break;
		
		case -619541947:
			iVar0 = 604;
			break;
		
		case 294240494:
			iVar0 = 605;
			break;
		
		case -765542196:
			iVar0 = 606;
			break;
		
		case -1420662645:
			iVar0 = 607;
			break;
		
		case 331918356:
			iVar0 = 608;
			break;
		
		case 204953755:
			iVar0 = 609;
			break;
		
		case 1764172461:
			iVar0 = 610;
			break;
		
		case 1462870109:
			iVar0 = 611;
			break;
		
		case -2071014467:
			iVar0 = 612;
			break;
		
		case 478439238:
			iVar0 = 613;
			break;
		
		case 796489219:
			iVar0 = 614;
			break;
		
		case 843279688:
			iVar0 = 615;
			break;
		
		case 1752551314:
			iVar0 = 616;
			break;
		
		case 735155845:
			iVar0 = 617;
			break;
		
		case 1863251462:
			iVar0 = 618;
			break;
		
		case -2142058763:
			iVar0 = 619;
			break;
		
		case -207591105:
			iVar0 = 620;
			break;
		
		case -932813887:
			iVar0 = 621;
			break;
		
		case -313503199:
			iVar0 = 622;
			break;
		
		case 718936417:
			iVar0 = 623;
			break;
		
		case -1107649605:
			iVar0 = 624;
			break;
		
		case 39090475:
			iVar0 = 625;
			break;
		
		case 1628251208:
			iVar0 = 626;
			break;
		
		case -311245907:
			iVar0 = 627;
			break;
		
		case -942031335:
			iVar0 = 628;
			break;
		
		case -1285040537:
			iVar0 = 629;
			break;
		
		case -606706891:
			iVar0 = 630;
			break;
		
		case -1719095858:
			iVar0 = 631;
			break;
		
		case 1725502681:
			iVar0 = 632;
			break;
		
		case 609583888:
			iVar0 = 633;
			break;
		
		case -1172383155:
			iVar0 = 634;
			break;
		
		case -3492404:
			iVar0 = 635;
			break;
		
		case -1006004645:
			iVar0 = 636;
			break;
		
		case -1937311482:
			iVar0 = 637;
			break;
		
		case -2065604094:
			iVar0 = 638;
			break;
		
		case 2028818254:
			iVar0 = 639;
			break;
		
		case 1624012067:
			iVar0 = 640;
			break;
		
		case -1877817141:
			iVar0 = 641;
			break;
		
		case -911576192:
			iVar0 = 642;
			break;
		
		case -2038013276:
			iVar0 = 643;
			break;
		
		case -901986542:
			iVar0 = 644;
			break;
		
		case 1792492176:
			iVar0 = 645;
			break;
		
		case -86485329:
			iVar0 = 646;
			break;
		
		case -1083434268:
			iVar0 = 647;
			break;
		
		case 613606704:
			iVar0 = 648;
			break;
		
		case -394853815:
			iVar0 = 649;
			break;
		
		case -1103127620:
			iVar0 = 650;
			break;
		
		case -1565650506:
			iVar0 = 651;
			break;
		
		case 1845793118:
			iVar0 = 652;
			break;
		
		case 105835401:
			iVar0 = 653;
			break;
		
		case 874268443:
			iVar0 = 654;
			break;
		
		case 2088424900:
			iVar0 = 655;
			break;
		
		case -786732051:
			iVar0 = 656;
			break;
		
		case 2054090970:
			iVar0 = 657;
			break;
		
		case 1878368697:
			iVar0 = 658;
			break;
		
		case 569662133:
			iVar0 = 659;
			break;
		
		case -792802958:
			iVar0 = 660;
			break;
		
		case 2006001399:
			iVar0 = 661;
			break;
		
		case 1785762805:
			iVar0 = 662;
			break;
		
		case 737220320:
			iVar0 = 663;
			break;
		
		case 1396060544:
			iVar0 = 664;
			break;
		
		case -1964728736:
			iVar0 = 665;
			break;
		
		case 1593302778:
			iVar0 = 666;
			break;
		
		case 84849272:
			iVar0 = 667;
			break;
		
		case -402776165:
			iVar0 = 668;
			break;
		
		case -221660734:
			iVar0 = 669;
			break;
		
		case 1648112645:
			iVar0 = 670;
			break;
		
		case 2066668749:
			iVar0 = 671;
			break;
		
		case -4424163:
			iVar0 = 672;
			break;
		
		case -173288591:
			iVar0 = 673;
			break;
		
		case 253771760:
			iVar0 = 674;
			break;
		
		case -1431574022:
			iVar0 = 675;
			break;
		
		case 959314664:
			iVar0 = 676;
			break;
		
		case 1670479428:
			iVar0 = 677;
			break;
		
		case 1779534675:
			iVar0 = 678;
			break;
		
		case -1268204471:
			iVar0 = 679;
			break;
		
		case -1937668252:
			iVar0 = 680;
			break;
		
		case -192802570:
			iVar0 = 681;
			break;
		
		case 1200380295:
			iVar0 = 682;
			break;
		
		case -644503216:
			iVar0 = 683;
			break;
		
		case 496410473:
			iVar0 = 684;
			break;
		
		case 462780886:
			iVar0 = 685;
			break;
		
		case 211198653:
			iVar0 = 686;
			break;
		
		case -504012739:
			iVar0 = 687;
			break;
		
		case 34276608:
			iVar0 = 688;
			break;
		
		case -2088223199:
			iVar0 = 689;
			break;
		
		case 2056773549:
			iVar0 = 690;
			break;
		
		case 962023066:
			iVar0 = 691;
			break;
		
		case 893288510:
			iVar0 = 692;
			break;
		
		case 1963590204:
			iVar0 = 693;
			break;
		
		case 919272855:
			iVar0 = 694;
			break;
		
		case 413754974:
			iVar0 = 695;
			break;
		
		case -1862916472:
			iVar0 = 696;
			break;
		
		case -1184732039:
			iVar0 = 697;
			break;
		
		case -143503455:
			iVar0 = 698;
			break;
	}
	if (iVar0 != -1)
	{
		*uParam1 = (129 + iVar0);
		return true;
	}
	return false;
}

int func_139(int iParam0, int iParam1)//Position - 0x1A577
{
	int iVar0;
	int iVar1;
	
	if (func_141(iParam0) == 6022)
	{
		return false;
	}
	iVar0 = func_140(iParam0, iParam1);
	iVar1 = iParam0;
	return gameplay::is_bit_set(iVar0, func_121(iVar1));
}

var func_140(var uParam0, int iParam1)//Position - 0x1A5A9
{
	var uVar0;
	
	uVar0 = func_359(func_141(uParam0), iParam1, 0);
	return uVar0;
}

int func_141(var uParam0)//Position - 0x1A5C2
{
	int iVar0;
	int iVar1;
	
	iVar0 = uParam0;
	iVar1 = func_126(iVar0);
	if ((func_125() == 0 || func_124() == 0) || (func_125() == 999 && func_124() == 999))
	{
		switch (iVar1)
		{
			case 0:
				return 1033;
				break;
			
			case 1:
				return 1034;
				break;
			
			case 2:
				return 1035;
				break;
			
			case 3:
				return 1036;
				break;
			
			case 4:
				return 1037;
				break;
			
			case 5:
				return 1497;
				break;
			
			case 6:
				return 1750;
				break;
			
			case 7:
				return 1944;
				break;
			
			case 8:
				return 1945;
				break;
			
			case 9:
				return 1946;
				break;
			
			case 10:
				return 1947;
				break;
			
			case 11:
				return 1948;
				break;
			
			case 12:
				return 1949;
				break;
			
			case 13:
				return 2404;
				break;
			
			case 14:
				return 2424;
				break;
			
			case 15:
				return 2427;
				break;
			
			case 16:
				return 2430;
				break;
			
			case 17:
				return 2593;
				break;
			
			case 18:
				return 2596;
				break;
			
			case 19:
				return 2599;
				break;
			
			case 20:
				return 3755;
				break;
			
			case 21:
				return 3758;
				break;
			
			case 22:
				return 3833;
				break;
			
			case 23:
				return 3836;
				break;
			
			case 24:
				return 3839;
				break;
			
			case 25:
				return 3842;
				break;
			
			case 26:
				return 5333;
				break;
			
			case 27:
				return 5336;
				break;
			}
	}
	return 6022;
}

int func_142(int iParam0)//Position - 0x1A7B4
{
	switch (entity::get_entity_model(iParam0))
	{
		case joaat("player_zero"):
			return 0;
			break;
		
		case joaat("player_one"):
			return 1;
			break;
		
		case joaat("player_two"):
			return 2;
			break;
		
		case joaat("mp_m_freemode_01"):
			return 3;
			break;
		
		case joaat("mp_f_freemode_01"):
			return 4;
			break;
	}
	return 0;
}

int func_143(int iParam0, int iParam1)//Position - 0x1A809
{
	int iVar0;
	int iVar1;
	int iVar2;
	int iVar3;
	var uVar4;
	int iVar5;
	int iVar6;
	int iVar7;
	int iVar8;
	int iVar9;
	var uVar10;
	int iVar11;
	
	if (iParam0 == joaat("mp_m_freemode_01"))
	{
		if (iParam1 == 0)
		{
			return 123;
			return -1;
		}
		else if (iParam1 == 1)
		{
			return 93;
		}
		else if (iParam1 == 2)
		{
			return 93;
		}
		else if (iParam1 == 3)
		{
			return 93;
		}
		else if (iParam1 == 4)
		{
			return 93;
		}
		else if (iParam1 == 5)
		{
			return 93;
		}
		else if (iParam1 == 6)
		{
			return 93;
		}
		else if (iParam1 == 7)
		{
			return 94;
		}
		else if (iParam1 == 8)
		{
			return 94;
		}
		else if (iParam1 == 9)
		{
			return 94;
		}
		else if (iParam1 == 10)
		{
			return 94;
		}
		else if (iParam1 == 11)
		{
			return 94;
		}
		else if (iParam1 == 12)
		{
			return 94;
		}
		else if (iParam1 == 13)
		{
			return 95;
		}
		else if (iParam1 == 14)
		{
			return 95;
		}
		else if (iParam1 == 15)
		{
			return 95;
		}
		else if (iParam1 == 16)
		{
			return 95;
		}
		else if (iParam1 == 17)
		{
			return 95;
		}
		else if (iParam1 == 18)
		{
			return 95;
		}
		else if (iParam1 == 19)
		{
			return 96;
		}
		else if (iParam1 == 20)
		{
			return 96;
		}
		else if (iParam1 == 21)
		{
			return 96;
		}
		else if (iParam1 == 22)
		{
			return 96;
		}
		else if (iParam1 == 23)
		{
			return 96;
		}
		else if (iParam1 == 24)
		{
			return 96;
		}
		else if (iParam1 == 25)
		{
			return 96;
		}
		else if (iParam1 == 26)
		{
			return 97;
		}
		else if (iParam1 == 27)
		{
			return 97;
		}
		else if (iParam1 == 28)
		{
			return 97;
		}
		else if (iParam1 == 29)
		{
			return 97;
		}
		else if (iParam1 == 30)
		{
			return 97;
		}
		else if (iParam1 == 31)
		{
			return 97;
		}
		else if (iParam1 == 32)
		{
			return 98;
		}
		else if (iParam1 == 33)
		{
			return 98;
		}
		else if (iParam1 == 34)
		{
			return 98;
		}
		else if (iParam1 == 35)
		{
			return 98;
		}
		else if (iParam1 == 36)
		{
			return 98;
		}
		else if (iParam1 == 37)
		{
			return 98;
		}
		else if (iParam1 == 38)
		{
			return 99;
		}
		else if (iParam1 == 39)
		{
			return 99;
		}
		else if (iParam1 == 40)
		{
			return 99;
		}
		else if (iParam1 == 41)
		{
			return 99;
		}
		else if (iParam1 == 42)
		{
			return 99;
		}
		else if (iParam1 == 43)
		{
			return 99;
		}
		else if (iParam1 == 44)
		{
			return 99;
		}
		else if (iParam1 == 45)
		{
			return 100;
		}
		else if (iParam1 == 46)
		{
			return 100;
		}
		else if (iParam1 == 47)
		{
			return 100;
		}
		else if (iParam1 == 48)
		{
			return 100;
		}
		else if (iParam1 == 49)
		{
			return 100;
		}
		else if (iParam1 == 50)
		{
			return 101;
		}
		else if (iParam1 == 51)
		{
			return 101;
		}
		else if (iParam1 == 52)
		{
			return 101;
		}
		else if (iParam1 == 53)
		{
			return 101;
		}
		else if (iParam1 == 54)
		{
			return 101;
		}
		else if (iParam1 == 55)
		{
			return 101;
		}
		else if (iParam1 == 56)
		{
			return 101;
		}
		else if (iParam1 == 57)
		{
			return 102;
		}
		else if (iParam1 == 58)
		{
			return 102;
		}
		else if (iParam1 == 59)
		{
			return 102;
		}
		else if (iParam1 == 60)
		{
			return 102;
		}
		else if (iParam1 == 61)
		{
			return 102;
		}
		else if (iParam1 == 62)
		{
			return 102;
		}
		else if (iParam1 == 63)
		{
			return 103;
		}
		else if (iParam1 == 64)
		{
			return 103;
		}
		else if (iParam1 == 65)
		{
			return 103;
		}
		else if (iParam1 == 66)
		{
			return 103;
		}
		else if (iParam1 == 67)
		{
			return 103;
		}
		else if (iParam1 == 68)
		{
			return 103;
		}
		else if (iParam1 == 69)
		{
			return 104;
		}
		else if (iParam1 == 70)
		{
			return 104;
		}
		else if (iParam1 == 71)
		{
			return 104;
		}
		else if (iParam1 == 72)
		{
			return 104;
		}
		else if (iParam1 == 73)
		{
			return 104;
		}
		else if (iParam1 == 74)
		{
			return 105;
		}
		else if (iParam1 == 75)
		{
			return 105;
		}
		else if (iParam1 == 76)
		{
			return 105;
		}
		else if (iParam1 == 77)
		{
			return 105;
		}
		else if (iParam1 == 78)
		{
			return 105;
		}
		else if (iParam1 == 79)
		{
			return 105;
		}
		else if (iParam1 == 80)
		{
			return 106;
		}
		else if (iParam1 == 81)
		{
			return 106;
		}
		else if (iParam1 == 82)
		{
			return 106;
		}
		else if (iParam1 == 83)
		{
			return 106;
		}
		else if (iParam1 == 84)
		{
			return 106;
		}
		else if (iParam1 == 85)
		{
			return 107;
		}
		else if (iParam1 == 86)
		{
			return 107;
		}
		else if (iParam1 == 87)
		{
			return 107;
		}
		else if (iParam1 == 88)
		{
			return 107;
		}
		else if (iParam1 == 89)
		{
			return 107;
		}
		else if (iParam1 == 90)
		{
			return 107;
		}
		else if (iParam1 >= 91)
		{
			iVar0 = func_158(iParam0, iParam1, 2, 3);
			if (iVar0 != -1)
			{
				switch (iVar0)
				{
					case -1983429828:
					case 228608740:
					case 600995656:
					case 850728205:
					case 1093513726:
						return 108;
						break;
					
					case -457639650:
					case -94952354:
					case 144031963:
					case 533262145:
					case -1545668757:
						return 109;
						break;
					
					case -1625493211:
					case -1112723899:
					case -1432451032:
					case -647502406:
					case -925481833:
						return 110;
						break;
					
					case -1168328595:
					case -1421993424:
					case -576454917:
					case -438399124:
					case 271967258:
						return 111;
						break;
					
					case -1903246936:
					case 1155542604:
					case 2048071857:
					case -1605475033:
					case 100085859:
						return 112;
						break;
					
					case 745771948:
					case -1619297862:
					case -1878926649:
					case -485850917:
					case 558628189:
						return 113;
						break;
					
					case 1577121865:
					case 884057515:
					case 2055188806:
					case 1362452146:
					case -1761842625:
						return 114;
						break;
				}
				iVar1 = dlc1::_get_num_forced_components(iVar0);
				iVar2 = 0;
				while (iVar2 < iVar1)
				{
					dlc1::get_forced_component(iVar0, iVar2, &iVar3, &uVar4, &iVar5);
					if (iVar5 == 10)
					{
						if (iVar3 != 0 && iVar3 != 1849449579)
						{
							return func_136(iVar3, 3);
						}
						else
						{
							return uVar4;
						}
					}
					iVar2++;
				}
			}
		}
	}
	else if (iParam0 == joaat("mp_f_freemode_01"))
	{
		if (iParam1 == 0)
		{
			return 123;
			return -1;
		}
		else if (iParam1 == 1)
		{
			return 93;
		}
		else if (iParam1 == 2)
		{
			return 93;
		}
		else if (iParam1 == 3)
		{
			return 93;
		}
		else if (iParam1 == 4)
		{
			return 93;
		}
		else if (iParam1 == 5)
		{
			return 93;
		}
		else if (iParam1 == 6)
		{
			return 93;
		}
		else if (iParam1 == 7)
		{
			return 94;
		}
		else if (iParam1 == 8)
		{
			return 94;
		}
		else if (iParam1 == 9)
		{
			return 94;
		}
		else if (iParam1 == 10)
		{
			return 94;
		}
		else if (iParam1 == 11)
		{
			return 94;
		}
		else if (iParam1 == 12)
		{
			return 94;
		}
		else if (iParam1 == 13)
		{
			return 95;
		}
		else if (iParam1 == 14)
		{
			return 95;
		}
		else if (iParam1 == 15)
		{
			return 95;
		}
		else if (iParam1 == 16)
		{
			return 95;
		}
		else if (iParam1 == 17)
		{
			return 95;
		}
		else if (iParam1 == 18)
		{
			return 96;
		}
		else if (iParam1 == 19)
		{
			return 96;
		}
		else if (iParam1 == 20)
		{
			return 96;
		}
		else if (iParam1 == 21)
		{
			return 96;
		}
		else if (iParam1 == 22)
		{
			return 96;
		}
		else if (iParam1 == 23)
		{
			return 96;
		}
		else if (iParam1 == 24)
		{
			return 97;
		}
		else if (iParam1 == 25)
		{
			return 97;
		}
		else if (iParam1 == 26)
		{
			return 97;
		}
		else if (iParam1 == 27)
		{
			return 97;
		}
		else if (iParam1 == 28)
		{
			return 97;
		}
		else if (iParam1 == 29)
		{
			return 97;
		}
		else if (iParam1 == 30)
		{
			return 98;
		}
		else if (iParam1 == 31)
		{
			return 98;
		}
		else if (iParam1 == 32)
		{
			return 98;
		}
		else if (iParam1 == 33)
		{
			return 98;
		}
		else if (iParam1 == 34)
		{
			return 98;
		}
		else if (iParam1 == 35)
		{
			return 99;
		}
		else if (iParam1 == 36)
		{
			return 99;
		}
		else if (iParam1 == 37)
		{
			return 99;
		}
		else if (iParam1 == 38)
		{
			return 99;
		}
		else if (iParam1 == 39)
		{
			return 99;
		}
		else if (iParam1 == 40)
		{
			return 99;
		}
		else if (iParam1 == 41)
		{
			return 100;
		}
		else if (iParam1 == 42)
		{
			return 100;
		}
		else if (iParam1 == 43)
		{
			return 100;
		}
		else if (iParam1 == 44)
		{
			return 100;
		}
		else if (iParam1 == 45)
		{
			return 100;
		}
		else if (iParam1 == 46)
		{
			return 100;
		}
		else if (iParam1 == 47)
		{
			return 101;
		}
		else if (iParam1 == 48)
		{
			return 101;
		}
		else if (iParam1 == 49)
		{
			return 101;
		}
		else if (iParam1 == 50)
		{
			return 101;
		}
		else if (iParam1 == 51)
		{
			return 101;
		}
		else if (iParam1 == 52)
		{
			return 101;
		}
		else if (iParam1 == 53)
		{
			return 102;
		}
		else if (iParam1 == 54)
		{
			return 102;
		}
		else if (iParam1 == 55)
		{
			return 102;
		}
		else if (iParam1 == 56)
		{
			return 102;
		}
		else if (iParam1 == 57)
		{
			return 102;
		}
		else if (iParam1 == 58)
		{
			return 102;
		}
		else if (iParam1 == 59)
		{
			return 102;
		}
		else if (iParam1 == 60)
		{
			return 103;
		}
		else if (iParam1 == 61)
		{
			return 103;
		}
		else if (iParam1 == 62)
		{
			return 103;
		}
		else if (iParam1 == 63)
		{
			return 103;
		}
		else if (iParam1 == 64)
		{
			return 103;
		}
		else if (iParam1 == 65)
		{
			return 103;
		}
		else if (iParam1 == 66)
		{
			return 103;
		}
		else if (iParam1 == 67)
		{
			return 104;
		}
		else if (iParam1 == 68)
		{
			return 104;
		}
		else if (iParam1 == 69)
		{
			return 104;
		}
		else if (iParam1 == 70)
		{
			return 104;
		}
		else if (iParam1 == 71)
		{
			return 104;
		}
		else if (iParam1 == 72)
		{
			return 104;
		}
		else if (iParam1 == 73)
		{
			return 105;
		}
		else if (iParam1 == 74)
		{
			return 105;
		}
		else if (iParam1 == 75)
		{
			return 105;
		}
		else if (iParam1 == 76)
		{
			return 105;
		}
		else if (iParam1 == 77)
		{
			return 105;
		}
		else if (iParam1 == 78)
		{
			return 105;
		}
		else if (iParam1 == 79)
		{
			return func_136(-1261720761, 4);
		}
		else if (iParam1 == 80)
		{
			return func_136(-1261720761, 4);
		}
		else if (iParam1 == 81)
		{
			return func_136(-1261720761, 4);
		}
		else if (iParam1 == 82)
		{
			return func_136(-1261720761, 4);
		}
		else if (iParam1 == 83)
		{
			return func_136(-1261720761, 4);
		}
		else if (iParam1 == 84)
		{
			return func_136(-1261720761, 4);
		}
		else if (iParam1 == 85)
		{
			return 107;
		}
		else if (iParam1 == 86)
		{
			return 107;
		}
		else if (iParam1 == 87)
		{
			return 107;
		}
		else if (iParam1 == 88)
		{
			return 107;
		}
		else if (iParam1 == 89)
		{
			return 107;
		}
		else if (iParam1 == 90)
		{
			return 107;
		}
		else if (iParam1 == 91)
		{
			return 107;
		}
		else if (iParam1 >= 92)
		{
			iVar6 = func_158(iParam0, iParam1, 2, 4);
			if (iVar6 != -1)
			{
				switch (iVar6)
				{
					case -1238992735:
					case -1947261901:
					case -771018642:
					case -1486169302:
					case 1159796376:
						return 108;
						break;
					
					case 1389867525:
					case 1622396349:
					case 1851615504:
					case -2052614252:
					case -1818610823:
						return 109;
						break;
					
					case 1855226196:
					case 271139943:
					case -1099030254:
					case -307724442:
					case -637872117:
						return 110;
						break;
					
					case -663797501:
					case 2088667427:
					case 1779786837:
					case -1609936838:
					case -1880477702:
						return 111;
						break;
					
					case 1052499595:
					case 142438919:
					case 458495932:
					case -701723290:
					case -119221546:
						return 112;
						break;
					
					case 1245050198:
					case 1481937299:
					case 1754870300:
					case -2033029490:
					case 62318681:
						return 112;
						break;
					
					case 665775322:
					case 618391324:
					case 497473714:
					case 123808807:
					case -231538229:
						return 114;
						break;
				}
				iVar7 = dlc1::_get_num_forced_components(iVar6);
				iVar8 = 0;
				while (iVar8 < iVar7)
				{
					dlc1::get_forced_component(iVar6, iVar8, &iVar9, &uVar10, &iVar11);
					if (iVar11 == 10)
					{
						if (iVar9 != 0 && iVar9 != 1849449579)
						{
							return func_136(iVar9, 4);
						}
						else
						{
							return uVar10;
						}
					}
					iVar8++;
				}
			}
		}
	}
	return -1;
}

void func_144(int iParam0, int iParam1)//Position - 0x1B60A
{
	struct<12> Var0;
	int iVar13;
	int iVar14;
	int iVar15;
	struct<7> Var16;
	int iVar31;
	int iVar32;
	struct<7> Var33;
	int iVar48;
	int iVar49;
	struct<7> Var50;
	int iVar65;
	int iVar66;
	struct<7> Var67;
	int iVar82;
	
	if (!ped::is_ped_injured(iParam1))
	{
		iVar13 = func_142(iParam1);
		if (iParam0 != 0)
		{
			if (iVar13 == 3 || iVar13 == 4)
			{
				if (iParam0 == 1019352240)
				{
					func_170(13, 0, Global_69516);
					func_170(14, 0, Global_69516);
					func_170(15, 0, Global_69516);
					func_170(16, 0, Global_69516);
					func_170(71, 0, Global_69516);
					func_170(72, 0, Global_69516);
					return;
				}
				else if (iParam0 == 277073536)
				{
					if (iVar13 == 3)
					{
						func_170(73, 0, Global_69516);
						func_170(74, 0, Global_69516);
						func_170(75, 0, Global_69516);
						func_170(76, 0, Global_69516);
						func_170(77, 0, Global_69516);
						func_170(78, 0, Global_69516);
						func_170(79, 0, Global_69516);
						func_170(80, 0, Global_69516);
						func_170(81, 0, Global_69516);
						func_170(82, 0, Global_69516);
						func_170(83, 0, Global_69516);
						func_170(84, 0, Global_69516);
						func_170(85, 0, Global_69516);
						func_170(86, 0, Global_69516);
						func_170(90, 0, Global_69516);
						func_170(91, 0, Global_69516);
						func_170(124, 0, Global_69516);
						func_170(125, 0, Global_69516);
						func_170(87, 0, Global_69516);
						func_170(88, 0, Global_69516);
						func_170(89, 0, Global_69516);
						iVar15 = dlc1::_0x278F76C3B0A8F109(3);
						iVar14 = 0;
						while (iVar14 < iVar15)
						{
							if (dlc1::_0xFF56381874F82086(3, iVar14, &Var16))
							{
								if (Var16.f_6 == 277073536)
								{
									func_170((129 + iVar14), 0, Global_69516);
								}
							}
							iVar14++;
						}
					}
					else
					{
						func_170(73, 0, Global_69516);
						func_170(74, 0, Global_69516);
						func_170(75, 0, Global_69516);
						func_170(76, 0, Global_69516);
						func_170(77, 0, Global_69516);
						func_170(78, 0, Global_69516);
						func_170(79, 0, Global_69516);
						func_170(80, 0, Global_69516);
						func_170(81, 0, Global_69516);
						func_170(82, 0, Global_69516);
						func_170(83, 0, Global_69516);
						func_170(84, 0, Global_69516);
						func_170(85, 0, Global_69516);
						func_170(92, 0, Global_69516);
						func_170(87, 0, Global_69516);
						func_170(88, 0, Global_69516);
						func_170(89, 0, Global_69516);
						iVar32 = dlc1::_0x278F76C3B0A8F109(4);
						iVar31 = 0;
						while (iVar31 < iVar32)
						{
							if (dlc1::_0xFF56381874F82086(4, iVar31, &Var33))
							{
								if (Var33.f_6 == 277073536)
								{
									func_170((129 + iVar31), 0, Global_69516);
								}
							}
							iVar31++;
						}
					}
				}
				else if (iParam0 == 2140335355)
				{
					if (iVar13 == 3)
					{
						func_170(93, 0, Global_69516);
						func_170(94, 0, Global_69516);
						func_170(95, 0, Global_69516);
						func_170(96, 0, Global_69516);
						func_170(97, 0, Global_69516);
						func_170(98, 0, Global_69516);
						func_170(99, 0, Global_69516);
						func_170(100, 0, Global_69516);
						func_170(101, 0, Global_69516);
						func_170(102, 0, Global_69516);
						func_170(103, 0, Global_69516);
						func_170(104, 0, Global_69516);
						func_170(105, 0, Global_69516);
						func_170(106, 0, Global_69516);
						func_170(107, 0, Global_69516);
						func_170(108, 0, Global_69516);
						func_170(109, 0, Global_69516);
						func_170(110, 0, Global_69516);
						func_170(111, 0, Global_69516);
						func_170(112, 0, Global_69516);
						func_170(113, 0, Global_69516);
						func_170(114, 0, Global_69516);
						func_170(115, 0, Global_69516);
						func_170(116, 0, Global_69516);
						func_170(117, 0, Global_69516);
						func_170(123, 0, Global_69516);
						iVar49 = dlc1::_0x278F76C3B0A8F109(3);
						iVar48 = 0;
						while (iVar48 < iVar49)
						{
							if (dlc1::_0xFF56381874F82086(3, iVar48, &Var50))
							{
								if (Var50.f_6 == 2140335355)
								{
									func_170((129 + iVar48), 0, Global_69516);
								}
							}
							iVar48++;
						}
					}
					else
					{
						func_170(93, 0, Global_69516);
						func_170(94, 0, Global_69516);
						func_170(95, 0, Global_69516);
						func_170(96, 0, Global_69516);
						func_170(97, 0, Global_69516);
						func_170(98, 0, Global_69516);
						func_170(99, 0, Global_69516);
						func_170(100, 0, Global_69516);
						func_170(101, 0, Global_69516);
						func_170(102, 0, Global_69516);
						func_170(103, 0, Global_69516);
						func_170(104, 0, Global_69516);
						func_170(105, 0, Global_69516);
						func_170(106, 0, Global_69516);
						func_170(107, 0, Global_69516);
						func_170(108, 0, Global_69516);
						func_170(109, 0, Global_69516);
						func_170(110, 0, Global_69516);
						func_170(111, 0, Global_69516);
						func_170(112, 0, Global_69516);
						func_170(113, 0, Global_69516);
						func_170(114, 0, Global_69516);
						func_170(115, 0, Global_69516);
						func_170(116, 0, Global_69516);
						func_170(117, 0, Global_69516);
						func_170(118, 0, Global_69516);
						func_170(119, 0, Global_69516);
						func_170(120, 0, Global_69516);
						func_170(121, 0, Global_69516);
						func_170(122, 0, Global_69516);
						func_170(123, 0, Global_69516);
						iVar66 = dlc1::_0x278F76C3B0A8F109(4);
						iVar65 = 0;
						while (iVar65 < iVar66)
						{
							if (dlc1::_0xFF56381874F82086(4, iVar65, &Var67))
							{
								if (Var67.f_6 == 2140335355)
								{
									func_170((129 + iVar65), 0, Global_69516);
								}
							}
							iVar65++;
						}
					}
					return;
				}
			}
			iVar82 = 0;
			while (iVar82 < 127)
			{
				if (func_112(&Var0, iVar82, iVar13, iParam1, -1))
				{
					if (Var0.f_8 == iParam0)
					{
						func_170(Var0.f_11, 0, Global_69516);
					}
				}
				iVar82++;
			}
		}
	}
}

bool func_145(int iParam0, int iParam1)//Position - 0x1BC07
{
	int iVar0;
	
	iVar0 = func_172();
	if (iVar0 != -1)
	{
		if (!func_146(iParam0, iParam1, iVar0))
		{
			func_170(iVar0, 0, Global_69516);
			return true;
		}
	}
	return false;
}

bool func_146(int iParam0, int iParam1, int iParam2)//Position - 0x1BC39
{
	int iVar0;
	int iVar1;
	int iVar2;
	int iVar3;
	
	if (!func_153(iParam0, iParam1))
	{
		if (iParam0 == joaat("mp_m_freemode_01"))
		{
			iVar0 = -1;
			iVar1 = -1;
			if (iParam1 >= 237)
			{
				iVar1 = func_158(iParam0, iParam1, 11, 3);
				iVar0 = func_149(iVar1);
			}
			if (iVar1 != -1 && func_91(iVar1, 0) != -1)
			{
				return false;
			}
			if (iVar1 != -1 && func_147(iVar1, 0) != -1)
			{
				return false;
			}
			if (iVar1 != -1 && dlc1::_0x341DE7ED1D2A1BFD(iVar1, -497440475, 0))
			{
				return false;
			}
			if ((iVar1 == -1198378836 || iVar1 == 968798999) || iVar1 == 1283250323)
			{
				return false;
			}
			if ((((((iParam1 >= 0 && iParam1 <= 15) || (iParam1 >= 16 && iParam1 <= 31)) || (iParam1 >= 124 && iParam1 <= 139)) || iVar0 == 0) || iVar0 == 1) || iVar0 == 8)
			{
				if (iParam2 == 15)
				{
					return true;
				}
				else if (iParam2 == 13 || iParam2 == 14)
				{
					if (func_135(iParam0, 11, iParam1, 0) == -1)
					{
						return true;
					}
				}
			}
			else if ((iParam1 >= 80 && iParam1 <= 95) || iVar0 == 5)
			{
				if ((iParam2 == 16 || iParam2 == 71) || iParam2 == 72)
				{
					return true;
				}
			}
			else if ((iParam1 >= 140 && iParam1 <= 155) || iVar0 == 9)
			{
				if (iParam2 == 13 || iParam2 == 15)
				{
					return true;
				}
			}
		}
		else if (iParam0 == joaat("mp_f_freemode_01"))
		{
			iVar2 = -1;
			iVar3 = -1;
			if (iParam1 >= 256)
			{
				iVar3 = func_158(iParam0, iParam1, 11, 4);
				iVar2 = func_149(iVar3);
			}
			if (iVar3 != -1 && func_91(iVar3, 0) != -1)
			{
				return false;
			}
			if (iVar3 != -1 && func_147(iVar3, 0) != -1)
			{
				return false;
			}
			if (iVar3 != -1 && dlc1::_0x341DE7ED1D2A1BFD(iVar3, -497440475, 0))
			{
				return false;
			}
			if ((iParam1 >= 0 && iParam1 <= 15) || iVar2 == 0)
			{
				if (iParam2 == 13 || iParam2 == 15)
				{
					if (func_135(iParam0, 11, iParam1, 0) == -1)
					{
						return true;
					}
				}
			}
			else if ((iParam1 >= 32 && iParam1 <= 47) || iVar2 == 2)
			{
				if (iParam2 == 13 || iParam2 == 16)
				{
					if (func_135(iParam0, 11, iParam1, 0) == -1)
					{
						return true;
					}
				}
			}
			else if ((iParam1 >= 64 && iParam1 <= 79) || iVar2 == 4)
			{
				if (iParam2 == 13)
				{
					return true;
				}
				if (iParam2 == 15)
				{
					if (iVar2 != 4 || !dlc1::_0x341DE7ED1D2A1BFD(iVar3, 1113995558, 0))
					{
						return true;
					}
				}
			}
			else if ((iParam1 >= 80 && iParam1 <= 95) || iVar2 == 5)
			{
				if (iParam2 == 13)
				{
					return true;
				}
			}
			else if ((iParam1 >= 144 && iParam1 <= 159) || iVar2 == 9)
			{
				if (iParam2 == 14)
				{
					return true;
				}
			}
		}
	}
	return false;
}

int func_147(int iParam0, int iParam1)//Position - 0x1BFAA
{
	int iVar0;
	
	iVar0 = -1;
	if (dlc1::_0x341DE7ED1D2A1BFD(iParam0, 1769225721, iParam1))
	{
		iVar0 = 0;
	}
	else if (dlc1::_0x341DE7ED1D2A1BFD(iParam0, -1834446747, iParam1))
	{
		iVar0 = 1;
	}
	else if (dlc1::_0x341DE7ED1D2A1BFD(iParam0, -939525357, iParam1))
	{
		iVar0 = 2;
	}
	else if (dlc1::_0x341DE7ED1D2A1BFD(iParam0, 38465448, iParam1))
	{
		iVar0 = 3;
	}
	else if (dlc1::_0x341DE7ED1D2A1BFD(iParam0, -1469891622, iParam1))
	{
		iVar0 = 4;
	}
	else if (dlc1::_0x341DE7ED1D2A1BFD(iParam0, -502321359, iParam1))
	{
		iVar0 = 5;
	}
	else if (dlc1::_0x341DE7ED1D2A1BFD(iParam0, -792359778, iParam1))
	{
		iVar0 = 6;
	}
	else if (dlc1::_0x341DE7ED1D2A1BFD(iParam0, 997614074, iParam1))
	{
		iVar0 = 7;
	}
	else if (dlc1::_0x341DE7ED1D2A1BFD(iParam0, 748799057, iParam1))
	{
		iVar0 = 8;
	}
	else if (dlc1::_0x341DE7ED1D2A1BFD(iParam0, 653048039, iParam1))
	{
		iVar0 = 9;
	}
	else if (dlc1::_0x341DE7ED1D2A1BFD(iParam0, -1922736331, iParam1))
	{
		iVar0 = 10;
	}
	else if (dlc1::_0x341DE7ED1D2A1BFD(iParam0, -1685128312, iParam1))
	{
		iVar0 = 11;
	}
	else if (dlc1::_0x341DE7ED1D2A1BFD(iParam0, 1892460036, iParam1))
	{
		iVar0 = 12;
	}
	else if (dlc1::_0x341DE7ED1D2A1BFD(iParam0, -296738547, iParam1))
	{
		iVar0 = 13;
	}
	return iVar0;
}

bool func_148(int iParam0, int iParam1, int iParam2)//Position - 0x1C0F1
{
	int iVar0;
	int iVar1;
	int iVar2;
	int iVar3;
	int iVar4;
	int iVar5;
	int iVar6;
	
	if (iParam0 == joaat("mp_m_freemode_01"))
	{
		iVar0 = -1;
		iVar1 = -1;
		if (iParam1 >= 256)
		{
			iVar0 = func_158(iParam0, iParam1, 4, 3);
			iVar1 = func_149(iVar0);
		}
		iVar2 = -1;
		iVar3 = -1;
		if (iParam2 >= 237)
		{
			iVar2 = func_158(iParam0, iParam2, 11, 3);
			iVar3 = func_149(iVar2);
		}
		if (iVar2 != -1)
		{
			if (dlc1::_0x341DE7ED1D2A1BFD(iVar2, -826135203, 0))
			{
				if (iVar0 != -1 && dlc1::_0x341DE7ED1D2A1BFD(iVar0, -826135203, 0))
				{
					return true;
				}
				else
				{
					return false;
				}
			}
			if (dlc1::_0x341DE7ED1D2A1BFD(iVar0, -826135203, 0))
			{
				if (iVar2 != -1 && dlc1::_0x341DE7ED1D2A1BFD(iVar2, -826135203, 0))
				{
					return true;
				}
				else
				{
					return false;
				}
			}
			if (dlc1::_0x341DE7ED1D2A1BFD(iVar2, -1855618474, 0))
			{
				if (iVar0 != -1 && dlc1::_0x341DE7ED1D2A1BFD(iVar0, -1855618474, 0))
				{
					return true;
				}
				else
				{
					return false;
				}
			}
			if (dlc1::_0x341DE7ED1D2A1BFD(iVar0, -1855618474, 0))
			{
				if (iVar2 != -1 && dlc1::_0x341DE7ED1D2A1BFD(iVar2, -1855618474, 0))
				{
					return true;
				}
				else
				{
					return false;
				}
			}
			if (dlc1::_0x341DE7ED1D2A1BFD(iVar2, 320460654, 0))
			{
				if (iVar0 != -1 && dlc1::_0x341DE7ED1D2A1BFD(iVar0, 320460654, 0))
				{
					return true;
				}
				else
				{
					return false;
				}
			}
			if (dlc1::_0x341DE7ED1D2A1BFD(iVar0, 320460654, 0))
			{
				if (iVar2 != -1 && dlc1::_0x341DE7ED1D2A1BFD(iVar2, 320460654, 0))
				{
					return true;
				}
				else
				{
					return false;
				}
			}
			if (dlc1::_0x341DE7ED1D2A1BFD(iVar2, -2017999390, 0))
			{
				if (iVar0 != -1 && dlc1::_0x341DE7ED1D2A1BFD(iVar0, -2017999390, 0))
				{
					return true;
				}
				else
				{
					return false;
				}
			}
			if (dlc1::_0x341DE7ED1D2A1BFD(iVar0, -2017999390, 0))
			{
				if (iVar2 != -1 && dlc1::_0x341DE7ED1D2A1BFD(iVar2, -2017999390, 0))
				{
					return true;
				}
				else
				{
					return false;
				}
			}
			if (dlc1::_0x341DE7ED1D2A1BFD(iVar2, 1625463492, 0))
			{
				if (iVar0 != -1 && dlc1::_0x341DE7ED1D2A1BFD(iVar0, 648481062, 0))
				{
					return true;
				}
				else
				{
					return false;
				}
			}
			if (dlc1::_0x341DE7ED1D2A1BFD(iVar0, 648481062, 0))
			{
				return true;
			}
		}
		else if (iVar0 != -1)
		{
			if (dlc1::_0x341DE7ED1D2A1BFD(iVar0, 648481062, 0))
			{
				return true;
			}
			if (dlc1::_0x341DE7ED1D2A1BFD(iVar0, -826135203, 0))
			{
				if (iVar2 != -1 && dlc1::_0x341DE7ED1D2A1BFD(iVar2, -826135203, 0))
				{
					return true;
				}
				else
				{
					return false;
				}
			}
			if (dlc1::_0x341DE7ED1D2A1BFD(iVar0, -1855618474, 0))
			{
				if (iVar2 != -1 && dlc1::_0x341DE7ED1D2A1BFD(iVar2, -1855618474, 0))
				{
					return true;
				}
				else
				{
					return false;
				}
			}
			if (dlc1::_0x341DE7ED1D2A1BFD(iVar0, 320460654, 0))
			{
				if (iVar2 != -1 && dlc1::_0x341DE7ED1D2A1BFD(iVar2, 320460654, 0))
				{
					return true;
				}
				else
				{
					return false;
				}
			}
			if (dlc1::_0x341DE7ED1D2A1BFD(iVar0, -2017999390, 0))
			{
				if (iVar2 != -1 && dlc1::_0x341DE7ED1D2A1BFD(iVar2, -2017999390, 0))
				{
					return true;
				}
				else
				{
					return false;
				}
			}
		}
		if (iVar2 != -1 && dlc1::_0x341DE7ED1D2A1BFD(iVar2, 2026620439, 0))
		{
			if (((((((((((((((iParam1 >= 0 && iParam1 <= 15) || (iParam1 >= 48 && iParam1 <= 63)) || (iParam1 >= 64 && iParam1 <= 79)) || (iParam1 >= 112 && iParam1 <= 127)) || (iParam1 >= 128 && iParam1 <= 143)) || (iParam1 >= 176 && iParam1 <= 191)) || (iParam1 >= 224 && iParam1 <= 239)) || iVar1 == 0) || iVar1 == 3) || iVar1 == 4) || iVar1 == 7) || iVar1 == 8) || iVar1 == 11) || iVar1 == 14) || dlc1::_0x341DE7ED1D2A1BFD(iVar0, 1627756587, 0))
			{
				return true;
			}
			else
			{
				return false;
			}
		}
		switch (iVar0)
		{
			case 312004063:
			case 6695290:
			case 1724446270:
			case -448105673:
			case -611098679:
			case -1111088081:
			case -1406369540:
			case -1912159043:
			case 2076516410:
			case 1919618438:
			case 45227112:
			case -2129094253:
			case -421370587:
			case -675363106:
				if ((iParam2 >= 204 && iParam2 <= 219) || iVar3 == 13)
				{
					return false;
				}
				break;
		}
		if (dlc1::_0x341DE7ED1D2A1BFD(iVar2, 1021189127, 0))
		{
			if (dlc1::_0x341DE7ED1D2A1BFD(iVar0, 2044466679, 0) || dlc1::_0x341DE7ED1D2A1BFD(iVar0, -1325813684, 0))
			{
				return false;
			}
		}
	}
	else if (iParam0 == joaat("mp_f_freemode_01"))
	{
		iVar4 = -1;
		iVar5 = -1;
		if (iParam1 >= 256)
		{
			iVar4 = func_158(iParam0, iParam1, 4, 4);
			iVar5 = func_149(iVar4);
		}
		iVar6 = -1;
		if (iParam2 >= 256)
		{
			iVar6 = func_158(iParam0, iParam2, 11, 4);
		}
		if (iVar6 != -1)
		{
			if (dlc1::_0x341DE7ED1D2A1BFD(iVar6, -826135203, 0))
			{
				if (iVar4 != -1 && dlc1::_0x341DE7ED1D2A1BFD(iVar4, -826135203, 0))
				{
					return true;
				}
				else
				{
					return false;
				}
			}
			if (dlc1::_0x341DE7ED1D2A1BFD(iVar4, -826135203, 0))
			{
				if (iVar6 != -1 && dlc1::_0x341DE7ED1D2A1BFD(iVar6, -826135203, 0))
				{
					return true;
				}
				else
				{
					return false;
				}
			}
			if (dlc1::_0x341DE7ED1D2A1BFD(iVar6, -1855618474, 0))
			{
				if (iVar4 != -1 && dlc1::_0x341DE7ED1D2A1BFD(iVar4, -1855618474, 0))
				{
					return true;
				}
				else
				{
					return false;
				}
			}
			if (dlc1::_0x341DE7ED1D2A1BFD(iVar4, -1855618474, 0))
			{
				if (iVar6 != -1 && dlc1::_0x341DE7ED1D2A1BFD(iVar6, -1855618474, 0))
				{
					return true;
				}
				else
				{
					return false;
				}
			}
			if (dlc1::_0x341DE7ED1D2A1BFD(iVar6, 320460654, 0))
			{
				if (iVar4 != -1 && dlc1::_0x341DE7ED1D2A1BFD(iVar4, 320460654, 0))
				{
					return true;
				}
				else
				{
					return false;
				}
			}
			if (dlc1::_0x341DE7ED1D2A1BFD(iVar4, 320460654, 0))
			{
				if (iVar6 != -1 && dlc1::_0x341DE7ED1D2A1BFD(iVar6, 320460654, 0))
				{
					return true;
				}
				else
				{
					return false;
				}
			}
			if (dlc1::_0x341DE7ED1D2A1BFD(iVar6, -2017999390, 0))
			{
				if (iVar4 != -1 && dlc1::_0x341DE7ED1D2A1BFD(iVar4, -2017999390, 0))
				{
					return true;
				}
				else
				{
					return false;
				}
			}
			if (dlc1::_0x341DE7ED1D2A1BFD(iVar4, -2017999390, 0))
			{
				if (iVar6 != -1 && dlc1::_0x341DE7ED1D2A1BFD(iVar6, -2017999390, 0))
				{
					return true;
				}
				else
				{
					return false;
				}
			}
			if (dlc1::_0x341DE7ED1D2A1BFD(iVar6, -530089825, 0))
			{
				if ((iVar4 != -1 && dlc1::_0x341DE7ED1D2A1BFD(iVar4, -530089825, 0)) || (iVar4 != -1 && dlc1::_0x341DE7ED1D2A1BFD(iVar4, -1223513441, 0)))
				{
					return true;
				}
				else
				{
					return false;
				}
			}
			if (dlc1::_0x341DE7ED1D2A1BFD(iVar4, -530089825, 0))
			{
				if ((iVar6 != -1 && dlc1::_0x341DE7ED1D2A1BFD(iVar6, -530089825, 0)) || (iVar6 != -1 && dlc1::_0x341DE7ED1D2A1BFD(iVar6, -1223513441, 0)))
				{
					return true;
				}
				else
				{
					return false;
				}
			}
			if (((((((((((dlc1::_0x341DE7ED1D2A1BFD(iVar6, -1200513218, 0) || dlc1::_0x341DE7ED1D2A1BFD(iVar6, 1965569012, 0)) || dlc1::_0x341DE7ED1D2A1BFD(iVar6, -779835469, 0)) || dlc1::_0x341DE7ED1D2A1BFD(iVar6, -1086258388, 0)) || dlc1::_0x341DE7ED1D2A1BFD(iVar6, -1119232689, 0)) || dlc1::_0x341DE7ED1D2A1BFD(iVar6, -1488441032, 0)) || dlc1::_0x341DE7ED1D2A1BFD(iVar6, -868698159, 0)) || dlc1::_0x341DE7ED1D2A1BFD(iVar6, 2044466679, 0)) || dlc1::_0x341DE7ED1D2A1BFD(iVar6, -2020757158, 0)) || dlc1::_0x341DE7ED1D2A1BFD(iVar6, -2088146832, 0)) || dlc1::_0x341DE7ED1D2A1BFD(iVar6, -1446333198, 0)) || dlc1::_0x341DE7ED1D2A1BFD(iVar6, -1351486939, 0))
			{
				if ((((((((((((((((((((((((((((((((iVar4 != -1 && dlc1::_0x341DE7ED1D2A1BFD(iVar4, -1223513441, 0)) || (iParam1 >= 240 && iParam1 <= 255)) || iVar5 == 15) || iVar4 == 1667217362) || iVar4 == 1956239942) || iVar4 == -210905108) || iVar4 == 79690384) || iVar4 == 134611232) || iVar4 == 441755069) || iVar4 == -1685936105) || iVar4 == -1379382110) || iVar4 == -788622578) || iVar4 == -481740893) || iVar4 == -266743188) || iVar4 == 573421207) || iVar4 == -739668639) || iVar4 == -1126047902) || iVar4 == -954797108) || iVar4 == -1858238438) || iVar4 == -1551291215) || iVar4 == -989872783) || iVar4 == 2073733812) || iVar4 == -1596197578) || iVar4 == -942357733) || iVar4 == -40948081) || iVar4 == -1262871322) || iVar4 == -495388573) || iVar4 == 1091483025) || iVar4 == 785649948) || iVar4 == -313291240) || iVar4 == 495041640) || iVar4 == 749492925)
				{
					return false;
				}
			}
			if (dlc1::_0x341DE7ED1D2A1BFD(iVar6, 821147517, 0))
			{
				if ((((((((((((((((((((((((((((((((iVar4 != -1 && dlc1::_0x341DE7ED1D2A1BFD(iVar4, -1223513441, 0)) || (iParam1 >= 240 && iParam1 <= 255)) || iVar5 == 15) || iVar4 == 1667217362) || iVar4 == 1956239942) || iVar4 == -210905108) || iVar4 == 79690384) || iVar4 == 134611232) || iVar4 == 441755069) || iVar4 == -1685936105) || iVar4 == -1379382110) || iVar4 == -788622578) || iVar4 == -481740893) || iVar4 == -266743188) || iVar4 == 573421207) || iVar4 == -739668639) || iVar4 == -1126047902) || iVar4 == -954797108) || iVar4 == -1858238438) || iVar4 == -1551291215) || iVar4 == -989872783) || iVar4 == 2073733812) || iVar4 == -1596197578) || iVar4 == -942357733) || iVar4 == -40948081) || iVar4 == -1262871322) || iVar4 == -495388573) || iVar4 == 1091483025) || iVar4 == 785649948) || iVar4 == -313291240) || iVar4 == 495041640) || iVar4 == 749492925)
				{
					return false;
				}
			}
		}
		if (iVar4 != -1)
		{
			if (dlc1::_0x341DE7ED1D2A1BFD(iVar4, -826135203, 0))
			{
				if (iVar6 != -1 && dlc1::_0x341DE7ED1D2A1BFD(iVar6, -826135203, 0))
				{
					return true;
				}
				else
				{
					return false;
				}
			}
			if (dlc1::_0x341DE7ED1D2A1BFD(iVar4, -1855618474, 0))
			{
				if (iVar6 != -1 && dlc1::_0x341DE7ED1D2A1BFD(iVar6, -1855618474, 0))
				{
					return true;
				}
				else
				{
					return false;
				}
			}
			if (dlc1::_0x341DE7ED1D2A1BFD(iVar4, 320460654, 0))
			{
				if (iVar6 != -1 && dlc1::_0x341DE7ED1D2A1BFD(iVar6, 320460654, 0))
				{
					return true;
				}
				else
				{
					return false;
				}
			}
			if (dlc1::_0x341DE7ED1D2A1BFD(iVar4, -2017999390, 0))
			{
				if (iVar6 != -1 && dlc1::_0x341DE7ED1D2A1BFD(iVar6, -2017999390, 0))
				{
					return true;
				}
				else
				{
					return false;
				}
			}
			if (dlc1::_0x341DE7ED1D2A1BFD(iVar4, -530089825, 0))
			{
				if ((iVar6 != -1 && dlc1::_0x341DE7ED1D2A1BFD(iVar6, -530089825, 0)) || (iVar6 != -1 && dlc1::_0x341DE7ED1D2A1BFD(iVar6, -1223513441, 0)))
				{
					return true;
				}
				else
				{
					return false;
				}
			}
		}
		if (dlc1::_0x341DE7ED1D2A1BFD(iVar4, -33031567, 0))
		{
			if (dlc1::_0x341DE7ED1D2A1BFD(iVar6, -2102859770, 0) || dlc1::_0x341DE7ED1D2A1BFD(iVar6, -747583185, 0))
			{
				return true;
			}
			else
			{
				return false;
			}
		}
		if (dlc1::_0x341DE7ED1D2A1BFD(iVar6, -747583185, 0))
		{
			if (dlc1::_0x341DE7ED1D2A1BFD(iVar4, -33031567, 0))
			{
				return true;
			}
			else
			{
				return false;
			}
		}
		if (((iParam1 >= 32 && iParam1 <= 47) || iVar5 == 2) || dlc1::_0x341DE7ED1D2A1BFD(iVar4, -1325813684, 0))
		{
			if (dlc1::_0x341DE7ED1D2A1BFD(iVar6, 2026620439, 0))
			{
				return false;
			}
		}
		if (dlc1::_0x341DE7ED1D2A1BFD(iVar6, -2119756144, 0))
		{
			if (((((((((iParam1 >= 32 && iParam1 <= 47) || iVar5 == 2) || dlc1::_0x341DE7ED1D2A1BFD(iVar4, 264959411, 0)) || dlc1::_0x341DE7ED1D2A1BFD(iVar4, 140732128, 0)) || dlc1::_0x341DE7ED1D2A1BFD(iVar4, 1863955539, 0)) || dlc1::_0x341DE7ED1D2A1BFD(iVar4, -849839091, 0)) || dlc1::_0x341DE7ED1D2A1BFD(iVar4, -2088146832, 0)) || dlc1::_0x341DE7ED1D2A1BFD(iVar4, 1055526375, 0)) || dlc1::_0x341DE7ED1D2A1BFD(iVar4, -1882920022, 0))
			{
				return false;
			}
		}
		if (dlc1::_0x341DE7ED1D2A1BFD(iVar6, 947651647, 0) || dlc1::_0x341DE7ED1D2A1BFD(iVar6, -58412562, 0))
		{
			if ((((((((((((((((((((((((((((((((iVar4 != -1 && dlc1::_0x341DE7ED1D2A1BFD(iVar4, -1223513441, 0)) || (iParam1 >= 240 && iParam1 <= 255)) || iVar5 == 15) || iVar4 == 1667217362) || iVar4 == 1956239942) || iVar4 == -210905108) || iVar4 == 79690384) || iVar4 == 134611232) || iVar4 == 441755069) || iVar4 == -1685936105) || iVar4 == -1379382110) || iVar4 == -788622578) || iVar4 == -481740893) || iVar4 == -266743188) || iVar4 == 573421207) || iVar4 == -739668639) || iVar4 == -1126047902) || iVar4 == -954797108) || iVar4 == -1858238438) || iVar4 == -1551291215) || iVar4 == -989872783) || iVar4 == 2073733812) || iVar4 == -1596197578) || iVar4 == -942357733) || iVar4 == -40948081) || iVar4 == -1262871322) || iVar4 == -495388573) || iVar4 == 1091483025) || iVar4 == 785649948) || iVar4 == -313291240) || iVar4 == 495041640) || iVar4 == 749492925)
			{
				return false;
			}
		}
	}
	return true;
}

int func_149(int iParam0)//Position - 0x1D126
{
	int iVar0;
	
	iVar0 = -1;
	if (dlc1::_0x341DE7ED1D2A1BFD(iParam0, 821147517, 0))
	{
		iVar0 = 0;
	}
	else if (dlc1::_0x341DE7ED1D2A1BFD(iParam0, 2055293595, 0))
	{
		iVar0 = 1;
	}
	else if (dlc1::_0x341DE7ED1D2A1BFD(iParam0, -1992562672, 0))
	{
		iVar0 = 2;
	}
	else if (dlc1::_0x341DE7ED1D2A1BFD(iParam0, 1458930564, 0))
	{
		iVar0 = 3;
	}
	else if (dlc1::_0x341DE7ED1D2A1BFD(iParam0, -1046587084, 0))
	{
		iVar0 = 4;
	}
	else if (dlc1::_0x341DE7ED1D2A1BFD(iParam0, 1943944625, 0))
	{
		iVar0 = 5;
	}
	else if (dlc1::_0x341DE7ED1D2A1BFD(iParam0, -1999870067, 0))
	{
		iVar0 = 6;
	}
	else if (dlc1::_0x341DE7ED1D2A1BFD(iParam0, 2048281121, 0))
	{
		iVar0 = 7;
	}
	else if (dlc1::_0x341DE7ED1D2A1BFD(iParam0, -109983526, 0))
	{
		iVar0 = 8;
	}
	else if (dlc1::_0x341DE7ED1D2A1BFD(iParam0, -1394888785, 0))
	{
		iVar0 = 9;
	}
	else if (dlc1::_0x341DE7ED1D2A1BFD(iParam0, -144826511, 0))
	{
		iVar0 = 10;
	}
	else if (dlc1::_0x341DE7ED1D2A1BFD(iParam0, 19149565, 0))
	{
		iVar0 = 11;
	}
	else if (dlc1::_0x341DE7ED1D2A1BFD(iParam0, 310957510, 0))
	{
		iVar0 = 12;
	}
	else if (dlc1::_0x341DE7ED1D2A1BFD(iParam0, 742787396, 0))
	{
		iVar0 = 13;
	}
	else if (dlc1::_0x341DE7ED1D2A1BFD(iParam0, -1604914832, 0))
	{
		iVar0 = 14;
	}
	else if (dlc1::_0x341DE7ED1D2A1BFD(iParam0, -1092211054, 0))
	{
		iVar0 = 15;
	}
	return iVar0;
}

int func_150(int iParam0, int iParam1, int iParam2)//Position - 0x1D288
{
	int iVar0;
	int iVar1;
	int iVar2;
	int iVar3;
	int iVar4;
	int iVar5;
	int iVar6;
	int iVar7;
	int iVar8;
	int iVar9;
	int iVar10;
	int iVar11;
	int iVar12;
	
	iVar0 = -99;
	if (iParam0 == joaat("mp_m_freemode_01"))
	{
		if (iParam1 <= 15)
		{
			iVar0 = 0;
		}
		else if (iParam1 <= 31)
		{
			iVar0 = 16;
		}
		else if (iParam1 <= 47)
		{
			iVar0 = 0;
		}
		else if (iParam1 <= 63)
		{
			iVar0 = -99;
		}
		else if (iParam1 <= 79)
		{
			iVar0 = -99;
		}
		else if (iParam1 <= 95)
		{
			iVar0 = 80;
		}
		else if (iParam1 <= 111)
		{
			iVar0 = -99;
		}
		else if (iParam1 <= 127)
		{
			iVar0 = -99;
		}
		else if (iParam1 <= 143)
		{
			iVar0 = 124;
		}
		else if (iParam1 <= 159)
		{
			iVar0 = 140;
		}
		else if (iParam1 <= 175)
		{
			iVar0 = -99;
		}
		else if (iParam1 <= 191)
		{
			iVar0 = -99;
		}
		else if (iParam1 <= 207)
		{
			iVar0 = 188;
		}
		else if (iParam1 <= 223)
		{
			iVar0 = 204;
		}
		else if (iParam1 <= 239)
		{
			iVar0 = 16;
		}
		else if (iParam1 <= 240)
		{
			iVar0 = 236;
		}
		else if (iParam1 >= 241)
		{
			iVar1 = func_158(iParam0, iParam1, 8, 3);
			if (iVar1 != -1)
			{
				iVar2 = dlc1::_0xC17AD0E5752BECDA(iVar1);
				iVar3 = 0;
				while (iVar3 < iVar2)
				{
					dlc1::get_variant_component(iVar1, iVar3, &iVar4, &iVar5, &iVar6);
					if (iVar6 == 11)
					{
						if (iVar4 != 0 && iVar4 != 1849449579)
						{
							iVar0 = func_75(iParam0, iVar4, 11, 3);
							return iVar0;
						}
						else
						{
							iVar0 = iVar5;
							return iVar0;
						}
					}
					iVar3++;
				}
			}
		}
	}
	else if (iParam0 == joaat("mp_f_freemode_01"))
	{
		if (iParam1 <= 15)
		{
			iVar0 = 0;
		}
		else if (iParam1 <= 31)
		{
			iVar0 = 0;
		}
		else if (iParam1 <= 32)
		{
			iVar0 = -99;
		}
		else if (iParam1 <= 33)
		{
			iVar0 = -99;
		}
		else if (iParam1 <= 49)
		{
			iVar0 = 64;
		}
		else if (iParam1 <= 65)
		{
			iVar0 = 80;
		}
		else if (iParam1 <= 66)
		{
			iVar0 = -99;
		}
		else if (iParam1 <= 67)
		{
			iVar0 = -99;
		}
		else if (iParam1 <= 68)
		{
			iVar0 = -99;
		}
		else if (iParam1 <= 69)
		{
			iVar0 = -99;
		}
		else if (iParam1 <= 70)
		{
			iVar0 = -99;
		}
		else if (iParam1 <= 86)
		{
			iVar0 = 176;
		}
		else if (iParam1 <= 102)
		{
			iVar0 = 192;
		}
		else if (iParam1 <= 118)
		{
			iVar0 = 208;
		}
		else if (iParam1 <= 119)
		{
			iVar0 = -99;
		}
		else if (iParam1 <= 135)
		{
			iVar0 = 240;
		}
		else if (iParam1 >= 136)
		{
			iVar7 = func_158(iParam0, iParam1, 8, 4);
			if (iVar7 != -1)
			{
				iVar8 = dlc1::_0xC17AD0E5752BECDA(iVar7);
				iVar9 = 0;
				while (iVar9 < iVar8)
				{
					dlc1::get_variant_component(iVar7, iVar9, &iVar10, &iVar11, &iVar12);
					if (iVar12 == 11)
					{
						if (iVar10 != 0 && iVar10 != 1849449579)
						{
							iVar0 = func_75(iParam0, iVar10, 11, 4);
							return iVar0;
						}
						else
						{
							iVar0 = iVar11;
							return iVar0;
						}
					}
					iVar9++;
				}
			}
		}
	}
	if (iVar0 != -99)
	{
		iVar0 = (iVar0 + iParam2);
	}
	return iVar0;
}

int func_151(int iParam0, int iParam1, int iParam2)//Position - 0x1D57F
{
	int iVar0;
	
	if (iParam1 == 14)
	{
		iVar0 = iParam2;
		return func_152(iVar0);
	}
	switch (iParam0)
	{
		case joaat("player_zero"):
			switch (iParam1)
			{
				case 0:
					return 0;
					break;
				
				case 2:
					return Global_101652.f_2079.f_539[0 /*65*/].f_59;
					break;
				
				case 3:
					if (Global_101652.f_8028.f_99.f_58[120])
					{
						return 1;
					}
					else
					{
						return 0;
					}
					break;
				
				case 4:
					if (Global_101652.f_8028.f_99.f_58[120])
					{
						return 1;
					}
					else
					{
						return 0;
					}
					break;
				
				case 6:
					return 6;
					break;
				
				case 5:
					return 0;
					break;
				
				case 8:
					return 0;
					break;
				
				case 9:
					return 0;
					break;
				
				case 10:
					return 0;
					break;
				
				case 1:
					return 0;
					break;
				
				case 7:
					return 0;
					break;
				
				case 11:
					return 0;
					break;
				
				case 12:
					break;
				
				case 13:
					return 31;
					break;
			}
			break;
		
		case joaat("player_one"):
			switch (iParam1)
			{
				case 0:
					return 0;
					break;
				
				case 2:
					return Global_101652.f_2079.f_539[1 /*65*/].f_59;
					break;
				
				case 3:
					return 73;
					break;
				
				case 4:
					return 24;
					break;
				
				case 6:
					return 17;
					break;
				
				case 5:
					return 0;
					break;
				
				case 8:
					return 26;
					break;
				
				case 9:
					return 0;
					break;
				
				case 10:
					return 0;
					break;
				
				case 1:
					return 0;
					break;
				
				case 7:
					return 0;
					break;
				
				case 11:
					return 0;
					break;
				
				case 12:
					break;
				
				case 13:
					return 31;
					break;
			}
			break;
		
		case joaat("player_two"):
			switch (iParam1)
			{
				case 0:
					return 0;
					break;
				
				case 2:
					return Global_101652.f_2079.f_539[2 /*65*/].f_59;
					break;
				
				case 3:
					return 0;
					break;
				
				case 4:
					return 91;
					break;
				
				case 6:
					return 8;
					break;
				
				case 5:
					return 0;
					break;
				
				case 8:
					return 15;
					break;
				
				case 9:
					return 0;
					break;
				
				case 10:
					return 0;
					break;
				
				case 1:
					return 0;
					break;
				
				case 7:
					return 0;
					break;
				
				case 11:
					return 0;
					break;
				
				case 12:
					break;
				
				case 13:
					return 31;
					break;
			}
			break;
		
		case joaat("mp_m_freemode_01"):
			switch (iParam1)
			{
				case 0:
					break;
				
				case 2:
					break;
				
				case 3:
					return 0;
					break;
				
				case 4:
					return 80;
					break;
				
				case 6:
					return 10;
					break;
				
				case 5:
					break;
				
				case 8:
					return 0;
					break;
				
				case 9:
					return 0;
					break;
				
				case 10:
					return 0;
					break;
				
				case 1:
					return 0;
					break;
				
				case 7:
					return 0;
					break;
				
				case 11:
					return 2;
					break;
			}
			break;
		
		case joaat("mp_f_freemode_01"):
			switch (iParam1)
			{
				case 0:
					break;
				
				case 2:
					break;
				
				case 3:
					return 0;
					break;
				
				case 4:
					return 233;
					break;
				
				case 6:
					return 16;
					break;
				
				case 5:
					break;
				
				case 8:
					return 0;
					break;
				
				case 9:
					return 0;
					break;
				
				case 10:
					return 0;
					break;
				
				case 1:
					return 0;
					break;
				
				case 7:
					return 0;
					break;
				
				case 11:
					return 78;
					break;
			}
			break;
		
		default:
			break;
	}
	return -99;
}

int func_152(int iParam0)//Position - 0x1D999
{
	switch (iParam0)
	{
		case 0:
			return 0;
			break;
		
		case 1:
			return 1;
			break;
		
		case 2:
			return 2;
			break;
		
		case 3:
			return 3;
			break;
		
		case 4:
			return 4;
			break;
		
		case 5:
			return 5;
			break;
		
		case 6:
			return 6;
			break;
		
		case 7:
			return 7;
			break;
		
		case 8:
			return 8;
			break;
	}
	return 0;
}

bool func_153(int iParam0, int iParam1)//Position - 0x1DA1F
{
	switch (iParam0)
	{
		case joaat("mp_m_freemode_01"):
			if ((((((iParam1 >= 48 && iParam1 < 64) || (iParam1 >= 64 && iParam1 < 80)) || (iParam1 >= 96 && iParam1 < 108)) || (iParam1 >= 108 && iParam1 < 124)) || (iParam1 >= 156 && iParam1 < 172)) || (iParam1 >= 237 && dlc1::_0x341DE7ED1D2A1BFD(func_158(iParam0, iParam1, 11, 3), -1393156190, 0)))
			{
				return true;
			}
			break;
		
		case joaat("mp_f_freemode_01"):
			if ((((((iParam1 >= 16 && iParam1 < 32) || (iParam1 >= 96 && iParam1 < 112)) || (iParam1 >= 112 && iParam1 < 128)) || (iParam1 >= 128 && iParam1 < 144)) || (iParam1 >= 160 && iParam1 < 176)) || (iParam1 >= 256 && dlc1::_0x341DE7ED1D2A1BFD(func_158(iParam0, iParam1, 11, 4), -1393156190, 0)))
			{
				return true;
			}
			break;
	}
	return false;
}

int func_154(int iParam0, int iParam1, int iParam2, int iParam3)//Position - 0x1DB60
{
	int iVar0;
	int iVar1;
	int iVar2;
	int iVar3;
	int iVar4;
	int iVar5;
	int iVar6;
	int iVar7;
	int iVar8;
	int iVar9;
	int iVar10;
	int iVar11;
	int iVar12;
	struct<10> Var13;
	int iVar30;
	int iVar31;
	int iVar32;
	int iVar33;
	int iVar34;
	int iVar35;
	int iVar36;
	int iVar37;
	int iVar38;
	int iVar39;
	int iVar40;
	int iVar41;
	int iVar42;
	int iVar43;
	int iVar44;
	int iVar45;
	int iVar46;
	int iVar47;
	struct<10> Var48;
	int iVar65;
	int iVar66;
	int iVar67;
	int iVar68;
	int iVar69;
	int iVar70;
	int iVar71;
	int iVar72;
	int iVar73;
	int iVar74;
	int iVar75;
	int iVar76;
	int iVar77;
	int iVar78;
	int iVar79;
	int iVar80;
	int iVar81;
	int iVar82;
	int iVar83;
	int iVar84;
	int iVar85;
	int iVar86;
	int iVar87;
	int iVar88;
	int iVar89;
	int iVar90;
	int iVar91;
	int iVar92;
	
	iVar0 = -99;
	iVar1 = 1;
	if (iParam0 == joaat("mp_m_freemode_01"))
	{
		iVar2 = -1;
		iVar3 = -1;
		if (iParam2 >= 237)
		{
			iVar2 = func_158(iParam0, iParam2, 11, 3);
			iVar3 = func_149(iVar2);
		}
		iVar4 = -1;
		iVar5 = -1;
		if (iParam1 >= 237)
		{
			iVar4 = func_158(iParam0, iParam1, 11, 3);
			iVar5 = func_149(iVar4);
		}
		if (iVar2 != -1)
		{
			if (dlc1::_0x341DE7ED1D2A1BFD(iVar2, -491588875, 0))
			{
				return -99;
			}
		}
		if (iVar2 != -1)
		{
			if (((((((((dlc1::_0x341DE7ED1D2A1BFD(iVar2, -1347486026, 0) || dlc1::_0x341DE7ED1D2A1BFD(iVar2, -1274099003, 0)) || dlc1::_0x341DE7ED1D2A1BFD(iVar2, 1723403459, 0)) || dlc1::_0x341DE7ED1D2A1BFD(iVar2, 1538937264, 0)) || dlc1::_0x341DE7ED1D2A1BFD(iVar2, -549843760, 0)) || dlc1::_0x341DE7ED1D2A1BFD(iVar2, 1830529185, 0)) || dlc1::_0x341DE7ED1D2A1BFD(iVar2, -1813210391, 0)) || dlc1::_0x341DE7ED1D2A1BFD(iVar2, -89003918, 0)) || dlc1::_0x341DE7ED1D2A1BFD(iVar2, -747858475, 0)) || dlc1::_0x341DE7ED1D2A1BFD(iVar2, 1208450825, 0))
			{
				if ((((((iParam1 >= 124 && iParam1 <= 139) || (iParam1 >= 188 && iParam1 <= 235)) || iVar5 == 8) || iVar5 == 12) || iVar5 == 13) || iVar5 == 14)
				{
					return -99;
				}
				if (((((!dlc1::_0x341DE7ED1D2A1BFD(iVar2, -549843760, 0) && !dlc1::_0x341DE7ED1D2A1BFD(iVar2, 1830529185, 0)) && !dlc1::_0x341DE7ED1D2A1BFD(iVar2, -1813210391, 0)) && !dlc1::_0x341DE7ED1D2A1BFD(iVar2, -89003918, 0)) && !dlc1::_0x341DE7ED1D2A1BFD(iVar2, -747858475, 0)) && !dlc1::_0x341DE7ED1D2A1BFD(iVar2, 1208450825, 0))
				{
					if (dlc1::_0x341DE7ED1D2A1BFD(iVar4, -828478571, 0))
					{
						return -99;
					}
				}
			}
			if ((dlc1::_0x341DE7ED1D2A1BFD(iVar2, -1655154167, 0) || dlc1::_0x341DE7ED1D2A1BFD(iVar2, -1719167561, 0)) || dlc1::_0x341DE7ED1D2A1BFD(iVar2, 1431529976, 0))
			{
				return -99;
			}
			if (dlc1::_0x341DE7ED1D2A1BFD(iVar2, 1690933245, 0) || dlc1::_0x341DE7ED1D2A1BFD(iVar2, -1325813684, 0))
			{
				return -99;
			}
			if (dlc1::_0x341DE7ED1D2A1BFD(iVar2, 1769225721, 0))
			{
				if ((((((((((iParam1 >= 80 && iParam1 <= 95) || (iParam1 >= 124 && iParam1 <= 139)) || (iParam1 >= 140 && iParam1 <= 155)) || (iParam1 >= 188 && iParam1 <= 235)) || iVar5 == 5) || iVar5 == 8) || iVar5 == 9) || iVar5 == 12) || iVar5 == 13) || iVar5 == 14)
				{
					return -99;
				}
			}
			if (dlc1::_0x341DE7ED1D2A1BFD(iVar2, 264959411, 0))
			{
				if ((((((((iParam1 >= 0 && iParam1 <= 15) || (iParam1 >= 16 && iParam1 <= 31)) || (iParam1 >= 80 && iParam1 <= 95)) || (iParam1 >= 236 && iParam1 <= 236)) || iVar5 == 0) || iVar5 == 1) || iVar5 == 5) || iVar5 == 15)
				{
				}
				else
				{
					return -99;
				}
			}
			if (dlc1::_0x341DE7ED1D2A1BFD(iVar2, 1625463492, 0) && !dlc1::_0x341DE7ED1D2A1BFD(iVar4, -641612092, 0))
			{
				return -99;
			}
			if (dlc1::_0x341DE7ED1D2A1BFD(iVar2, -1719338724, 0))
			{
				if ((((((((((iParam1 >= 0 && iParam1 <= 15) || (iParam1 >= 16 && iParam1 <= 31)) || (iParam1 >= 80 && iParam1 <= 95)) || (iParam1 >= 124 && iParam1 <= 139)) || (iParam1 >= 236 && iParam1 <= 236)) || iVar5 == 0) || iVar5 == 1) || iVar5 == 5) || iVar5 == 8) || iVar5 == 15)
				{
				}
				else
				{
					return -99;
				}
			}
		}
		iVar6 = 0;
		iVar7 = false;
		if (dlc1::_0x341DE7ED1D2A1BFD(iVar2, -1237899132, 0) && !dlc1::_0x341DE7ED1D2A1BFD(iVar2, -491588875, 0))
		{
			if (iParam1 >= 0 && iParam1 <= 15)
			{
				if ((dlc1::_0x341DE7ED1D2A1BFD(iVar2, -269266203, 0) || dlc1::_0x341DE7ED1D2A1BFD(iVar2, -685039259, 0)) || dlc1::_0x341DE7ED1D2A1BFD(iVar2, 297865853, 0))
				{
					switch (iParam1)
					{
						case 0:
							iVar0 = func_75(iParam0, -1071423629, 8, 3);
							break;
						
						case 1:
							iVar0 = func_75(iParam0, -833094692, 8, 3);
							break;
						
						case 2:
							iVar0 = func_75(iParam0, -1836153782, 8, 3);
							break;
						
						case 3:
							iVar0 = func_75(iParam0, -1598414687, 8, 3);
							break;
						
						case 4:
							iVar0 = func_75(iParam0, 123661793, 8, 3);
							break;
						
						case 5:
							iVar0 = func_75(iParam0, 330958487, 8, 3);
							break;
						
						case 7:
							iVar0 = func_75(iParam0, -646180324, 8, 3);
							break;
						
						case 8:
							iVar0 = func_75(iParam0, -142717408, 8, 3);
							break;
						
						case 11:
							iVar0 = func_75(iParam0, 1290696959, 8, 3);
							break;
					}
				}
				else if (dlc1::_0x341DE7ED1D2A1BFD(iVar2, 201427653, 0))
				{
					switch (iParam1)
					{
						case 0:
							iVar0 = func_75(iParam0, -1382822784, 8, 3);
							break;
						
						case 1:
							iVar0 = func_75(iParam0, -1731353868, 8, 3);
							break;
						
						case 2:
							iVar0 = func_75(iParam0, -1960638561, 8, 3);
							break;
						
						case 3:
							iVar0 = func_75(iParam0, 147161830, 8, 3);
							break;
						
						case 4:
							iVar0 = func_75(iParam0, -92608943, 8, 3);
							break;
						
						case 5:
							iVar0 = func_75(iParam0, -162931217, 8, 3);
							break;
						
						case 7:
							iVar0 = func_75(iParam0, -537087659, 8, 3);
							break;
						
						case 8:
							iVar0 = func_75(iParam0, 1665087452, 8, 3);
							break;
						
						case 11:
							iVar0 = func_75(iParam0, 1012984348, 8, 3);
							break;
					}
				}
				else if (dlc1::_0x341DE7ED1D2A1BFD(iVar2, 967829025, 0))
				{
					switch (iParam1)
					{
						case 0:
							iVar0 = func_75(iParam0, 385813134, 8, 3);
							break;
						
						case 1:
							iVar0 = func_75(iParam0, 675392787, 8, 3);
							break;
						
						case 2:
							iVar0 = func_75(iParam0, -238272479, 8, 3);
							break;
						
						case 3:
							iVar0 = func_75(iParam0, 67757212, 8, 3);
							break;
						
						case 4:
							iVar0 = func_75(iParam0, -536372072, 8, 3);
							break;
						
						case 5:
							iVar0 = func_75(iParam0, -247578875, 8, 3);
							break;
						
						case 7:
							iVar0 = func_75(iParam0, -1160588753, 8, 3);
							break;
						
						case 8:
							iVar0 = func_75(iParam0, -854821214, 8, 3);
							break;
						
						case 11:
							iVar0 = func_75(iParam0, -1458295118, 8, 3);
							break;
						}
				}
				return iVar0;
			}
			else if (iParam1 >= 236 && iParam1 <= 236)
			{
				iVar0 = 240;
				return iVar0;
			}
			else if (iParam1 >= 237)
			{
				iVar7 = true;
				if ((dlc1::_0x341DE7ED1D2A1BFD(iVar2, -269266203, 0) || dlc1::_0x341DE7ED1D2A1BFD(iVar2, -685039259, 0)) || dlc1::_0x341DE7ED1D2A1BFD(iVar2, 297865853, 0))
				{
					iVar6 = 4;
				}
				else if (dlc1::_0x341DE7ED1D2A1BFD(iVar2, 201427653, 0))
				{
					iVar6 = 5;
				}
				else if (dlc1::_0x341DE7ED1D2A1BFD(iVar2, 967829025, 0))
				{
					iVar6 = 6;
				}
				else
				{
					iVar6 = -1;
				}
			}
			else
			{
				return iVar0;
			}
		}
		if (dlc1::_0x341DE7ED1D2A1BFD(iVar4, -641612092, 0))
		{
			iVar7 = true;
			if (((((((dlc1::_0x341DE7ED1D2A1BFD(iVar2, 470686834, 0) && dlc1::_0x341DE7ED1D2A1BFD(iVar2, 1625463492, 0)) || dlc1::_0x341DE7ED1D2A1BFD(iVar2, -416620954, 0)) || dlc1::_0x341DE7ED1D2A1BFD(iVar2, -1507532917, 0)) || dlc1::_0x341DE7ED1D2A1BFD(iVar2, -1813210391, 0)) || dlc1::_0x341DE7ED1D2A1BFD(iVar2, -89003918, 0)) || dlc1::_0x341DE7ED1D2A1BFD(iVar2, -747858475, 0)) || dlc1::_0x341DE7ED1D2A1BFD(iVar2, 1208450825, 0))
			{
				iVar6 = 1;
			}
			else if ((dlc1::_0x341DE7ED1D2A1BFD(iVar2, 1625463492, 0) || dlc1::_0x341DE7ED1D2A1BFD(iVar2, -1410897066, 0)) || dlc1::_0x341DE7ED1D2A1BFD(iVar2, -1351486939, 0))
			{
				iVar6 = 0;
			}
			else
			{
				iVar6 = -1;
			}
		}
		if (iVar7)
		{
			if (iVar6 != -1)
			{
				iVar8 = dlc1::_0xC17AD0E5752BECDA(iVar4);
				iVar9 = 0;
				while (iVar9 < iVar8)
				{
					dlc1::get_variant_component(iVar4, iVar9, &iVar10, &iVar11, &iVar12);
					if (iVar12 == 8)
					{
						if (((((((iVar6 == 6 && dlc1::_0x341DE7ED1D2A1BFD(iVar10, -168336417, 0)) || (iVar6 == 5 && dlc1::_0x341DE7ED1D2A1BFD(iVar10, -1415000253, 0))) || (iVar6 == 4 && dlc1::_0x341DE7ED1D2A1BFD(iVar10, -1703203608, 0))) || (iVar6 == 3 && dlc1::_0x341DE7ED1D2A1BFD(iVar10, 1318819110, 0))) || (iVar6 == 2 && dlc1::_0x341DE7ED1D2A1BFD(iVar10, -1138757583, 0))) || (iVar6 == 1 && dlc1::_0x341DE7ED1D2A1BFD(iVar10, 647976134, 0))) || ((((((iVar6 == 0 && !dlc1::_0x341DE7ED1D2A1BFD(iVar10, 647976134, 0)) && !dlc1::_0x341DE7ED1D2A1BFD(iVar10, -1138757583, 0)) && !dlc1::_0x341DE7ED1D2A1BFD(iVar10, 1318819110, 0)) && !dlc1::_0x341DE7ED1D2A1BFD(iVar10, -1703203608, 0)) && !dlc1::_0x341DE7ED1D2A1BFD(iVar10, -1415000253, 0)) && !dlc1::_0x341DE7ED1D2A1BFD(iVar10, -168336417, 0)))
						{
							if (iVar10 != 0 && iVar10 != 1849449579)
							{
								iVar0 = func_75(iParam0, iVar10, 8, 3);
							}
							else
							{
								iVar0 = iVar11;
							}
							iVar9 = iVar8 + 1;
							iVar1 = 0;
							return iVar0;
						}
					}
					iVar9++;
				}
			}
			return -99;
		}
		if ((iParam2 >= 96 && iParam2 <= 107) || iVar3 == 6)
		{
			if (iParam1 <= 15)
			{
				iVar0 = 32;
			}
			else if (iParam1 <= 31)
			{
				iVar0 = 224;
			}
			else if (iParam1 == 236)
			{
				iVar0 = 240;
			}
			else if (((iParam1 >= 220 && iParam1 <= 235) && func_155()) && !dlc1::_0x341DE7ED1D2A1BFD(iVar2, -1266557933, 0))
			{
				iVar0 = 34;
				iVar1 = 0;
				dlc1::init_shop_ped_component(&Var13);
				if (Global_2592838[1] != 0)
				{
					dlc1::_get_num_props_from_outfit(3, 6, -1, 0, -1, 8);
					dlc1::get_shop_ped_query_component(Global_2592835[1], &Var13);
					if (Var13.f_1 != Global_2592838[1])
					{
						Global_2592838[1] = 0;
						Global_2592835[1] = 0;
					}
				}
				if (Global_2592838[1] == 0)
				{
					iVar31 = 0;
					iVar32 = dlc1::_get_num_props_from_outfit(3, 6, -1, 0, -1, 8);
					iVar30 = 0;
					while (iVar30 < iVar32)
					{
						dlc1::get_shop_ped_query_component(iVar30, &Var13);
						if (!dlc1::_is_dlc_data_empty(Var13))
						{
							if (gameplay::get_hash_key(&(Var13.f_9)) == -1665616807 && dlc1::_0x341DE7ED1D2A1BFD(Var13.f_1, 647976134, 0))
							{
								Global_2592838[1] = Var13.f_1;
								Global_2592835[1] = iVar31;
								iVar30 = iVar32 + 1;
							}
							iVar31++;
						}
						iVar30++;
					}
				}
				if (Global_2592838[1] != 0)
				{
					iVar0 = (func_76(iParam0, func_181(8)) + Global_2592835[1]);
					iVar1 = 1;
				}
			}
			else
			{
				iVar0 = 34;
				iVar1 = 0;
				if (iParam1 >= 237)
				{
					iVar33 = func_158(iParam0, iParam1, 11, 3);
					if (((iVar33 != -1 && !dlc1::_0x341DE7ED1D2A1BFD(iVar33, 310957510, 0)) && !dlc1::_0x341DE7ED1D2A1BFD(iVar33, -109983526, 0)) && !(dlc1::_0x341DE7ED1D2A1BFD(iVar2, 490219883, 0) && dlc1::_0x341DE7ED1D2A1BFD(iVar33, 1943944625, 0)))
					{
						iVar34 = dlc1::_0xC17AD0E5752BECDA(iVar33);
						iVar35 = 0;
						while (iVar35 < iVar34)
						{
							dlc1::get_variant_component(iVar33, iVar35, &iVar36, &iVar37, &iVar38);
							if (iVar38 == 8)
							{
								if (iVar36 != 0 && iVar36 != 1849449579)
								{
									if ((!dlc1::_0x341DE7ED1D2A1BFD(iVar36, -1703203608, 0) && !dlc1::_0x341DE7ED1D2A1BFD(iVar36, -1415000253, 0)) && !dlc1::_0x341DE7ED1D2A1BFD(iVar36, -168336417, 0))
									{
										iVar0 = func_75(iParam0, iVar36, 8, 3);
									}
								}
								else
								{
									iVar0 = iVar37;
								}
							}
							iVar35++;
						}
					}
				}
			}
		}
		else if (iParam1 <= 15)
		{
			iVar0 = 0;
		}
		else if (iParam1 <= 31)
		{
			iVar0 = 16;
		}
		else if (iParam1 <= 47)
		{
			iVar0 = 2;
			iVar1 = 0;
		}
		else if (iParam1 <= 63)
		{
			iVar0 = -99;
		}
		else if (iParam1 <= 79)
		{
			iVar0 = -99;
		}
		else if (iParam1 <= 95)
		{
			iVar0 = 80;
		}
		else if (iParam1 <= 107)
		{
			iVar0 = -99;
		}
		else if (iParam1 <= 123)
		{
			iVar0 = -99;
		}
		else if (iParam1 <= 139)
		{
			iVar0 = 128;
		}
		else if (iParam1 <= 155)
		{
			iVar0 = 144;
		}
		else if (iParam1 <= 171)
		{
			iVar0 = -99;
		}
		else if (iParam1 <= 187)
		{
			iVar0 = 2;
			iVar1 = 0;
		}
		else if (iParam1 <= 203 || iVar5 == 12)
		{
			if (((((iParam2 >= 48 && iParam2 <= 63) || (iParam2 >= 108 && iParam2 <= 123)) || iVar3 == 3) || iVar3 == 7) || dlc1::_0x341DE7ED1D2A1BFD(iVar2, 1769225721, 0))
			{
				iVar0 = 2;
				iVar1 = 0;
			}
			else
			{
				iVar39 = 0;
				if (iParam2 >= 236 && dlc1::_0x341DE7ED1D2A1BFD(iVar2, 2026620439, 0))
				{
					iVar39 = 1;
				}
				iVar40 = func_158(iParam0, iParam1, 11, 3);
				if (iVar40 != -1)
				{
					iVar41 = dlc1::_0xC17AD0E5752BECDA(iVar40);
					iVar42 = 0;
					while (iVar42 < iVar41)
					{
						dlc1::get_variant_component(iVar40, iVar42, &iVar43, &iVar44, &iVar45);
						if (iVar45 == 8 && iVar39 == dlc1::_0x341DE7ED1D2A1BFD(iVar43, 1680519719, 0))
						{
							if (iVar43 != 0 && iVar43 != 1849449579)
							{
								iVar0 = func_75(iParam0, iVar43, 8, 3);
							}
							else
							{
								iVar0 = iVar44;
							}
							iVar42 = iVar41 + 1;
							iVar1 = 0;
						}
						iVar42++;
					}
				}
				else
				{
					iVar0 = func_75(iParam0, -1739646902, 8, 3);
					iVar1 = 1;
				}
			}
		}
		else if (iParam1 <= 219)
		{
			iVar0 = 208;
		}
		else if (iParam1 <= 235)
		{
			iVar0 = 2;
			iVar1 = 0;
			if (func_155())
			{
				iVar46 = 0;
				iVar47 = 0;
				if ((iParam2 >= 96 && iParam2 <= 107) || (iParam2 >= 236 && dlc1::_0x341DE7ED1D2A1BFD(iVar2, 2026620439, 0)))
				{
					iVar46 = 1;
					iVar47 = 1;
				}
				dlc1::init_shop_ped_component(&Var48);
				if (Global_2592838[iVar47] != 0)
				{
					dlc1::_get_num_props_from_outfit(3, 6, -1, 0, -1, 8);
					dlc1::get_shop_ped_query_component(Global_2592835[iVar47], &Var48);
					if (Var48.f_1 != Global_2592838[iVar47])
					{
						Global_2592838[iVar47] = 0;
						Global_2592835[iVar47] = 0;
					}
				}
				if (Global_2592838[iVar47] == 0)
				{
					iVar66 = 0;
					iVar67 = dlc1::_get_num_props_from_outfit(3, 6, -1, 0, -1, 8);
					iVar65 = 0;
					while (iVar65 < iVar67)
					{
						dlc1::get_shop_ped_query_component(iVar65, &Var48);
						if (!dlc1::_is_dlc_data_empty(Var48))
						{
							if (gameplay::get_hash_key(&(Var48.f_9)) == -1665616807 && iVar46 == dlc1::_0x341DE7ED1D2A1BFD(Var48.f_1, 647976134, 0))
							{
								Global_2592838[iVar47] = Var48.f_1;
								Global_2592835[iVar47] = iVar66;
								iVar65 = iVar67 + 1;
							}
							iVar66++;
						}
						iVar65++;
					}
				}
				if (Global_2592838[iVar47] != 0)
				{
					iVar0 = (func_76(iParam0, func_181(8)) + Global_2592835[iVar47]);
					iVar1 = 1;
				}
			}
			if ((((iParam2 >= 237 && dlc1::_0x341DE7ED1D2A1BFD(iVar2, 2026620439, 0)) || (iParam2 >= 108 && iParam2 <= 123)) || iVar3 == 7) || dlc1::_0x341DE7ED1D2A1BFD(iVar2, 1769225721, 0))
			{
				iVar0 = -99;
			}
		}
		else if (iParam1 <= 236)
		{
			iVar0 = 240;
		}
		else if (iParam1 >= 237)
		{
			iVar0 = 2;
			iVar1 = 0;
			iVar68 = false;
			iVar69 = func_158(iParam0, iParam1, 11, 3);
			if (dlc1::_0x341DE7ED1D2A1BFD(iVar2, -1351486939, 0))
			{
				iVar68 = true;
			}
			if (iVar69 != -1)
			{
				iVar70 = dlc1::_0xC17AD0E5752BECDA(iVar69);
				iVar71 = 0;
				while (iVar71 < iVar70)
				{
					dlc1::get_variant_component(iVar69, iVar71, &iVar72, &iVar73, &iVar74);
					if (iVar74 == 8)
					{
						if (iVar72 != 0 && iVar72 != 1849449579)
						{
							iVar0 = func_75(iParam0, iVar72, 8, 3);
							iVar1 = 0;
							if (!iVar68 || dlc1::_0x341DE7ED1D2A1BFD(iVar72, 647976134, 0))
							{
								iVar71 = iVar70 + 1;
							}
						}
						else
						{
							iVar0 = iVar73;
							iVar71 = iVar70 + 1;
							iVar1 = 0;
						}
					}
					iVar71++;
				}
			}
		}
	}
	else if (iParam0 == joaat("mp_f_freemode_01"))
	{
		iVar75 = -1;
		iVar76 = -1;
		if (iParam2 >= 256)
		{
			iVar75 = func_158(iParam0, iParam2, 11, 4);
			iVar76 = func_149(iVar75);
		}
		iVar77 = -1;
		iVar78 = -1;
		if (iParam1 >= 256)
		{
			iVar77 = func_158(iParam0, iParam1, 11, 4);
			iVar78 = func_149(iVar77);
		}
		if (iVar75 != -1)
		{
			if (dlc1::_0x341DE7ED1D2A1BFD(iVar75, -491588875, 0))
			{
				return -99;
			}
		}
		if ((dlc1::_0x341DE7ED1D2A1BFD(iVar75, -1813210391, 0) || dlc1::_0x341DE7ED1D2A1BFD(iVar75, -89003918, 0)) || dlc1::_0x341DE7ED1D2A1BFD(iVar75, 1208450825, 0))
		{
			if (dlc1::_0x341DE7ED1D2A1BFD(iVar77, -828478571, 0))
			{
				return -99;
			}
		}
		if (dlc1::_0x341DE7ED1D2A1BFD(iVar75, -1719338724, 0))
		{
			if (((((((((((((((((((((((((iParam1 >= 0 && iParam1 <= 15) || (iParam1 >= 32 && iParam1 <= 47)) || (iParam1 >= 64 && iParam1 <= 79)) || (iParam1 >= 80 && iParam1 <= 95)) || (iParam1 >= 176 && iParam1 <= 191)) || (iParam1 >= 192 && iParam1 <= 207)) || (iParam1 >= 208 && iParam1 <= 223)) || (iParam1 >= 240 && iParam1 <= 255)) || iVar78 == 0) || iVar78 == 2) || iVar78 == 4) || iVar78 == 5) || iVar78 == 11) || iVar78 == 12) || iVar78 == 13) || iVar78 == 15) || iVar77 == -221826679) || iVar77 == 1172264892) || iVar77 == 1474853838) || iVar77 == 278369420) || iVar77 == -310817200) || iVar77 == -138976564) || iVar77 == -905541781) || iVar77 == 998321559) || iVar77 == 64401473)
			{
			}
			else
			{
				return -99;
			}
		}
		iVar79 = 0;
		iVar80 = false;
		if ((((((dlc1::_0x341DE7ED1D2A1BFD(iVar77, -761463976, 0) || dlc1::_0x341DE7ED1D2A1BFD(iVar77, -1347486026, 0)) || dlc1::_0x341DE7ED1D2A1BFD(iVar77, -1119232689, 0)) || dlc1::_0x341DE7ED1D2A1BFD(iVar77, 1784133476, 0)) || dlc1::_0x341DE7ED1D2A1BFD(iVar77, 2044466679, 0)) || dlc1::_0x341DE7ED1D2A1BFD(iVar77, -2020757158, 0)) || dlc1::_0x341DE7ED1D2A1BFD(iVar77, 2030343924, 0))
		{
			iVar80 = true;
			if ((((iParam2 >= 16 && iParam2 <= 31) || (iParam2 >= 128 && iParam2 <= 143)) || iVar76 == 1) || iVar76 == 8)
			{
				iVar79 = 2;
			}
			else if (((dlc1::_0x341DE7ED1D2A1BFD(iVar75, 1769225721, 0) || dlc1::_0x341DE7ED1D2A1BFD(iVar75, -1834446747, 0)) || dlc1::_0x341DE7ED1D2A1BFD(iVar75, -868698159, 0)) || dlc1::_0x341DE7ED1D2A1BFD(iVar75, -1266557933, 0))
			{
				iVar79 = 0;
			}
			else if (((((((((((((iParam2 >= 160 && iParam2 <= 175) || iVar76 == 10) || dlc1::_0x341DE7ED1D2A1BFD(iVar75, 684992453, 0)) || dlc1::_0x341DE7ED1D2A1BFD(iVar75, 916636514, 0)) || dlc1::_0x341DE7ED1D2A1BFD(iVar75, -1939378450, 0)) || dlc1::_0x341DE7ED1D2A1BFD(iVar75, -820724897, 0)) || dlc1::_0x341DE7ED1D2A1BFD(iVar75, 153792394, 0)) || dlc1::_0x341DE7ED1D2A1BFD(iVar75, -872449705, 0)) || dlc1::_0x341DE7ED1D2A1BFD(iVar75, 700658917, 0)) || dlc1::_0x341DE7ED1D2A1BFD(iVar75, 1714969731, 0)) || dlc1::_0x341DE7ED1D2A1BFD(iVar75, 745826556, 0)) || dlc1::_0x341DE7ED1D2A1BFD(iVar75, 1055526375, 0)) || dlc1::_0x341DE7ED1D2A1BFD(iVar75, 144417099, 0))
			{
				if (dlc1::_0x341DE7ED1D2A1BFD(iVar77, 1784133476, 0))
				{
					iVar79 = 1;
				}
				else if (dlc1::_0x341DE7ED1D2A1BFD(iVar77, -1119232689, 0) || dlc1::_0x341DE7ED1D2A1BFD(iVar77, 2044466679, 0))
				{
					iVar79 = 1;
				}
				else
				{
					iVar79 = -1;
				}
			}
			else
			{
				iVar79 = 1;
			}
		}
		if (dlc1::_0x341DE7ED1D2A1BFD(iVar77, -1351486939, 0))
		{
			iVar80 = true;
			if ((((((((((iParam2 >= 112 && iParam2 <= 127) || iVar76 == 7) || dlc1::_0x341DE7ED1D2A1BFD(iVar75, 684992453, 0)) || dlc1::_0x341DE7ED1D2A1BFD(iVar75, 916636514, 0)) || dlc1::_0x341DE7ED1D2A1BFD(iVar75, -820724897, 0)) || dlc1::_0x341DE7ED1D2A1BFD(iVar75, -872449705, 0)) || dlc1::_0x341DE7ED1D2A1BFD(iVar75, -416620954, 0)) || dlc1::_0x341DE7ED1D2A1BFD(iVar75, 947651647, 0)) || dlc1::_0x341DE7ED1D2A1BFD(iVar75, -549843760, 0)) || dlc1::_0x341DE7ED1D2A1BFD(iVar75, 1830529185, 0))
			{
				if ((dlc1::_0x341DE7ED1D2A1BFD(iVar75, 1769225721, 0) || dlc1::_0x341DE7ED1D2A1BFD(iVar75, -1834446747, 0)) || dlc1::_0x341DE7ED1D2A1BFD(iVar75, -1266557933, 0))
				{
					iVar79 = 0;
				}
				else
				{
					iVar79 = 1;
				}
			}
			else if ((((((dlc1::_0x341DE7ED1D2A1BFD(iVar75, 153792394, 0) || dlc1::_0x341DE7ED1D2A1BFD(iVar75, 1322269404, 0)) || dlc1::_0x341DE7ED1D2A1BFD(iVar75, 548036233, 0)) || dlc1::_0x341DE7ED1D2A1BFD(iVar75, 700658917, 0)) || dlc1::_0x341DE7ED1D2A1BFD(iVar75, -1014753511, 0)) || dlc1::_0x341DE7ED1D2A1BFD(iVar75, -1410897066, 0)) || dlc1::_0x341DE7ED1D2A1BFD(iVar75, -2119756144, 0))
			{
				iVar79 = 0;
			}
			else
			{
				iVar79 = -1;
			}
		}
		switch (iVar77)
		{
			case -221826679:
			case 1172264892:
			case 1474853838:
			case 278369420:
			case -310817200:
			case -138976564:
			case -905541781:
			case 998321559:
			case 64401473:
			case 15269846:
			case -674026069:
			case -904392139:
			case -1135708510:
			case -1360241698:
			case -2130051046:
			case 1935434943:
			case 1704282417:
			case 1472114052:
			case 1169688951:
			case -1193832172:
			case -886884949:
			case -1669539745:
			case -1370260468:
			case -413962745:
			case -238779663:
				iVar80 = true;
				if ((dlc1::_0x341DE7ED1D2A1BFD(iVar75, 1769225721, 0) || dlc1::_0x341DE7ED1D2A1BFD(iVar75, -868698159, 0)) || dlc1::_0x341DE7ED1D2A1BFD(iVar75, -1266557933, 0))
				{
					iVar79 = 1;
				}
				else if (dlc1::_0x341DE7ED1D2A1BFD(iVar75, -1834446747, 0))
				{
					iVar79 = 2;
				}
				else if ((((((((((dlc1::_0x341DE7ED1D2A1BFD(iVar75, -870074461, 0) || dlc1::_0x341DE7ED1D2A1BFD(iVar75, -1719338724, 0)) || dlc1::_0x341DE7ED1D2A1BFD(iVar75, -416620954, 0)) || dlc1::_0x341DE7ED1D2A1BFD(iVar75, 947651647, 0)) || dlc1::_0x341DE7ED1D2A1BFD(iVar75, -549843760, 0)) || dlc1::_0x341DE7ED1D2A1BFD(iVar75, 1830529185, 0)) || dlc1::_0x341DE7ED1D2A1BFD(iVar75, -1813210391, 0)) || dlc1::_0x341DE7ED1D2A1BFD(iVar75, -89003918, 0)) || dlc1::_0x341DE7ED1D2A1BFD(iVar75, -747858475, 0)) || dlc1::_0x341DE7ED1D2A1BFD(iVar75, 1208450825, 0)) || dlc1::_0x341DE7ED1D2A1BFD(iVar75, -58412562, 0))
				{
					iVar79 = 3;
				}
				else if ((((((iParam2 >= 16 && iParam2 <= 31) || (iParam2 >= 128 && iParam2 <= 143)) || (iParam2 >= 112 && iParam2 <= 127)) || iVar76 == 1) || iVar76 == 7) || iVar76 == 8)
				{
					iVar79 = 0;
				}
				else
				{
					iVar79 = -1;
				}
				break;
			
			case 619380843:
				iVar80 = true;
				if ((((iParam2 >= 16 && iParam2 <= 31) || (iParam2 >= 128 && iParam2 <= 143)) || iVar76 == 1) || iVar76 == 8)
				{
					iVar79 = 0;
				}
				else
				{
					iVar79 = -1;
				}
				break;
		}
		if (dlc1::_0x341DE7ED1D2A1BFD(iVar75, -1266557933, 0) || dlc1::_0x341DE7ED1D2A1BFD(iVar75, -979468724, 0))
		{
			if ((iParam1 >= 240 && iParam1 <= 255) || iVar78 == 15)
			{
				iVar0 = 120;
			}
			else if (dlc1::_0x341DE7ED1D2A1BFD(iVar77, 2044466679, 0) || dlc1::_0x341DE7ED1D2A1BFD(iVar77, -2020757158, 0))
			{
				iVar80 = true;
				iVar79 = 0;
			}
			else
			{
				return iVar0;
			}
		}
		else if (dlc1::_0x341DE7ED1D2A1BFD(iVar75, -1237899132, 0) && !dlc1::_0x341DE7ED1D2A1BFD(iVar75, -491588875, 0))
		{
			if ((((((((((((iParam1 >= 64 && iParam1 <= 79) || (iParam1 >= 80 && iParam1 <= 95)) || (iParam1 >= 176 && iParam1 <= 191)) || (iParam1 >= 192 && iParam1 <= 207)) || (iParam1 >= 208 && iParam1 <= 223)) || (iParam1 >= 240 && iParam1 <= 255)) || iVar78 == 4) || iVar78 == 5) || iVar78 == 11) || iVar78 == 12) || iVar78 == 13) || iVar78 == 15)
			{
				iVar80 = false;
			}
			else if (iParam1 >= 256)
			{
				iVar80 = true;
				if ((dlc1::_0x341DE7ED1D2A1BFD(iVar75, -269266203, 0) || dlc1::_0x341DE7ED1D2A1BFD(iVar75, -685039259, 0)) || dlc1::_0x341DE7ED1D2A1BFD(iVar75, 297865853, 0))
				{
					iVar79 = 4;
				}
				else if (dlc1::_0x341DE7ED1D2A1BFD(iVar75, 201427653, 0))
				{
					iVar79 = 5;
				}
				else if (dlc1::_0x341DE7ED1D2A1BFD(iVar75, 967829025, 0))
				{
					iVar79 = 6;
				}
				else
				{
					iVar79 = -1;
				}
			}
			else
			{
				return iVar0;
			}
		}
		if (iVar80)
		{
			if (iVar79 != -1)
			{
				iVar81 = dlc1::_0xC17AD0E5752BECDA(iVar77);
				iVar82 = 0;
				while (iVar82 < iVar81)
				{
					dlc1::get_variant_component(iVar77, iVar82, &iVar83, &iVar84, &iVar85);
					if (iVar85 == 8)
					{
						if (((((((iVar79 == 6 && dlc1::_0x341DE7ED1D2A1BFD(iVar83, -168336417, 0)) || (iVar79 == 5 && dlc1::_0x341DE7ED1D2A1BFD(iVar83, -1415000253, 0))) || (iVar79 == 4 && dlc1::_0x341DE7ED1D2A1BFD(iVar83, -1703203608, 0))) || (iVar79 == 3 && dlc1::_0x341DE7ED1D2A1BFD(iVar83, 1318819110, 0))) || (iVar79 == 2 && dlc1::_0x341DE7ED1D2A1BFD(iVar83, -1138757583, 0))) || (iVar79 == 1 && dlc1::_0x341DE7ED1D2A1BFD(iVar83, 647976134, 0))) || ((((((iVar79 == 0 && !dlc1::_0x341DE7ED1D2A1BFD(iVar83, 647976134, 0)) && !dlc1::_0x341DE7ED1D2A1BFD(iVar83, -1138757583, 0)) && !dlc1::_0x341DE7ED1D2A1BFD(iVar83, 1318819110, 0)) && !dlc1::_0x341DE7ED1D2A1BFD(iVar83, -1703203608, 0)) && !dlc1::_0x341DE7ED1D2A1BFD(iVar83, -1415000253, 0)) && !dlc1::_0x341DE7ED1D2A1BFD(iVar83, -168336417, 0)))
						{
							if (iVar83 != 0 && iVar83 != 1849449579)
							{
								iVar0 = func_75(iParam0, iVar83, 8, 4);
							}
							else
							{
								iVar0 = iVar84;
							}
							iVar82 = iVar81 + 1;
							iVar1 = 0;
							return iVar0;
						}
					}
					iVar82++;
				}
			}
			return -99;
		}
		if ((((((((iParam1 >= 192 && iParam1 <= 207) || iVar78 == 12) && ((((iParam2 >= 96 && iParam2 <= 111) || (iParam2 >= 112 && iParam2 <= 127)) || iVar76 == 6) || iVar76 == 7)) && func_155()) && !dlc1::_0x341DE7ED1D2A1BFD(iVar75, -416620954, 0)) && !dlc1::_0x341DE7ED1D2A1BFD(iVar75, 947651647, 0)) && !dlc1::_0x341DE7ED1D2A1BFD(iVar75, -549843760, 0)) && !dlc1::_0x341DE7ED1D2A1BFD(iVar75, 1830529185, 0))
		{
			if ((((dlc1::_0x341DE7ED1D2A1BFD(iVar75, -1813210391, 0) || dlc1::_0x341DE7ED1D2A1BFD(iVar75, -89003918, 0)) || dlc1::_0x341DE7ED1D2A1BFD(iVar75, -747858475, 0)) || dlc1::_0x341DE7ED1D2A1BFD(iVar75, 1208450825, 0)) || dlc1::_0x341DE7ED1D2A1BFD(iVar75, -58412562, 0))
			{
				return -99;
			}
			iVar86 = iVar77;
			if (iParam1 == 199)
			{
				iVar0 = func_75(iParam0, 331193219, 8, 4);
			}
			else if (iParam1 == 200)
			{
				iVar0 = func_75(iParam0, 1115060468, 8, 4);
			}
			else if (iParam1 == 201)
			{
				iVar0 = func_75(iParam0, 779636984, 8, 4);
			}
			else if (iVar86 == 948380380)
			{
				iVar0 = func_75(iParam0, -570249206, 8, 4);
			}
			else if (iVar86 == 708412993)
			{
				iVar0 = func_75(iParam0, -876115052, 8, 4);
			}
			else if (iVar86 == 1974869305)
			{
				iVar0 = func_75(iParam0, -108599534, 8, 4);
			}
			else if (iVar86 == 1197916315)
			{
				iVar0 = func_75(iParam0, 200575961, 8, 4);
			}
			else if (iVar86 == 587593690)
			{
				iVar0 = func_75(iParam0, 961930907, 8, 4);
			}
			else if (iVar86 == 323213398)
			{
				iVar0 = func_75(iParam0, -257698508, 8, 4);
			}
			else if (iVar86 == 1050193651)
			{
				iVar0 = func_75(iParam0, 516534659, 8, 4);
			}
			else if (iVar86 == 811438717)
			{
				iVar0 = func_75(iParam0, -1174312584, 8, 4);
			}
			else if (iVar86 == -877868759)
			{
				iVar0 = func_75(iParam0, -1192794304, 8, 4);
			}
			else if (iVar86 == -1108464212)
			{
				iVar0 = func_75(iParam0, -2027256889, 8, 4);
			}
			else if (iVar86 == -467866094)
			{
				iVar0 = func_75(iParam0, -1670074789, 8, 4);
			}
			else if (iVar86 == -673000034)
			{
				iVar0 = func_75(iParam0, -326349175, 8, 4);
			}
			else if (iVar86 == -1984939718)
			{
				iVar0 = func_75(iParam0, -796060021, 8, 4);
			}
			iVar1 = 0;
		}
		else if (iParam1 <= 15)
		{
			if ((((iParam2 >= 160 && iParam2 <= 175) || dlc1::_0x341DE7ED1D2A1BFD(iVar75, 1769225721, 0)) || dlc1::_0x341DE7ED1D2A1BFD(iVar75, -868698159, 0)) || dlc1::_0x341DE7ED1D2A1BFD(iVar75, -1266557933, 0))
			{
				iVar0 = 16;
			}
			else
			{
				iVar0 = 0;
			}
		}
		else if (iParam1 <= 31)
		{
			iVar0 = -99;
		}
		else if (iParam1 <= 47)
		{
			iVar0 = 48;
			iVar1 = 0;
		}
		else if (iParam1 <= 63)
		{
			iVar0 = 48;
			iVar1 = 0;
		}
		else if (iParam1 <= 79)
		{
			iVar0 = 34;
		}
		else if (iParam1 <= 95)
		{
			iVar0 = 50;
		}
		else if (iParam1 <= 111)
		{
			iVar0 = -99;
		}
		else if (iParam1 <= 127)
		{
			iVar0 = -99;
		}
		else if (iParam1 <= 143)
		{
			iVar0 = -99;
		}
		else if (iParam1 <= 159)
		{
			iVar0 = 48;
			iVar1 = 0;
		}
		else if (iParam1 <= 175)
		{
			iVar0 = -99;
		}
		else if (iParam1 <= 191)
		{
			iVar0 = 71;
		}
		else if (iParam1 <= 207)
		{
			iVar1 = 0;
			switch (iParam1)
			{
				case 199:
					iVar0 = 94;
					break;
				
				case 200:
					iVar0 = 95;
					break;
				
				case 201:
					iVar0 = 96;
					break;
			}
			if ((iParam2 >= 160 && iParam2 <= 175) || iVar76 == 10)
			{
				return -99;
			}
		}
		else if (iParam1 <= 223)
		{
			iVar0 = 103;
		}
		else if (iParam1 <= 239)
		{
			iVar0 = 48;
			iVar1 = 0;
		}
		else if (iParam1 <= 255)
		{
			iVar0 = 120;
		}
		else if (iParam1 >= 256)
		{
			iVar0 = 48;
			iVar1 = 0;
			if (iVar77 != -1)
			{
				iVar87 = true;
				if (dlc1::_0x341DE7ED1D2A1BFD(iVar77, 1965569012, 0))
				{
					iVar87 = false;
					if (iParam2 >= 256 && dlc1::_0x341DE7ED1D2A1BFD(iVar75, -1200513218, 0))
					{
						iVar87 = true;
					}
				}
				if (iVar87)
				{
					iVar79 = 0;
					if (iParam2 >= 160 && iParam2 <= 175)
					{
						if (iVar78 == 12)
						{
							iVar79 = 1;
						}
					}
					iVar88 = dlc1::_0xC17AD0E5752BECDA(iVar77);
					iVar89 = 0;
					while (iVar89 < iVar88)
					{
						dlc1::get_variant_component(iVar77, iVar89, &iVar90, &iVar91, &iVar92);
						if (iVar92 == 8 && ((((((((iVar90 == 0 || iVar90 == 1849449579) || (iVar79 == 6 && dlc1::_0x341DE7ED1D2A1BFD(iVar90, -168336417, 0))) || (iVar79 == 5 && dlc1::_0x341DE7ED1D2A1BFD(iVar90, -1415000253, 0))) || (iVar79 == 4 && dlc1::_0x341DE7ED1D2A1BFD(iVar90, -1703203608, 0))) || (iVar79 == 3 && dlc1::_0x341DE7ED1D2A1BFD(iVar90, 1318819110, 0))) || (iVar79 == 2 && dlc1::_0x341DE7ED1D2A1BFD(iVar90, -1138757583, 0))) || (iVar79 == 1 && dlc1::_0x341DE7ED1D2A1BFD(iVar90, 647976134, 0))) || ((((((iVar79 == 0 && !dlc1::_0x341DE7ED1D2A1BFD(iVar90, 647976134, 0)) && !dlc1::_0x341DE7ED1D2A1BFD(iVar90, -1138757583, 0)) && !dlc1::_0x341DE7ED1D2A1BFD(iVar90, 1318819110, 0)) && !dlc1::_0x341DE7ED1D2A1BFD(iVar90, -1703203608, 0)) && !dlc1::_0x341DE7ED1D2A1BFD(iVar90, -1415000253, 0)) && !dlc1::_0x341DE7ED1D2A1BFD(iVar90, -168336417, 0))))
						{
							if (iVar90 != 0 && iVar90 != 1849449579)
							{
								iVar0 = func_75(iParam0, iVar90, 8, 4);
							}
							else
							{
								iVar0 = iVar91;
							}
							iVar89 = iVar88 + 1;
							iVar1 = 0;
						}
						iVar89++;
					}
				}
			}
		}
	}
	if (iVar1 && iVar0 != -99)
	{
		iVar0 = (iVar0 + iParam3);
	}
	return iVar0;
}

int func_155()//Position - 0x1FF1D
{
	return dlc2::is_dlc_present(42019760);
}

int func_156(int iParam0, int iParam1, int iParam2)//Position - 0x1FF2E
{
	switch (iParam0)
	{
		case joaat("mp_f_freemode_01"):
			switch (iParam1)
			{
				case 0:
					switch (iParam2)
					{
						case 0:
							break;
						
						case 1:
							break;
						
						case 2:
							return 2131039487;
							break;
						
						case 3:
							return 717379468;
							break;
						
						case 4:
							return -331193181;
							break;
						
						case 5:
							return 73557144;
							break;
						
						case 6:
							return -887980266;
							break;
						
						case 7:
							return -306315670;
							break;
						
						case 8:
							return -1154048938;
							break;
					}
					break;
				
				case 1:
					switch (iParam2)
					{
						case 0:
							break;
						
						case 1:
							break;
						
						case 2:
							return -1301636615;
							break;
						
						case 3:
							return 1153996761;
							break;
						
						case 4:
							return -1315084792;
							break;
						
						case 5:
							return 1655884038;
							break;
						
						case 6:
							return 1489229833;
							break;
						
						case 7:
							return -1929503325;
							break;
						
						case 8:
							return -1189128367;
							break;
					}
					break;
				
				case 2:
					switch (iParam2)
					{
						case 0:
							break;
						
						case 1:
							break;
						
						case 2:
							return 538171135;
							break;
						
						case 3:
							return -244985062;
							break;
						
						case 4:
							return 442977103;
							break;
						
						case 5:
							return -1385727891;
							break;
						
						case 6:
							return 1309989623;
							break;
						
						case 7:
							return 1191418696;
							break;
						
						case 8:
							return 189293242;
							break;
					}
					break;
				
				case 3:
					switch (iParam2)
					{
						case 0:
							return -1438684756;
							break;
						
						case 1:
							return 194146035;
							break;
						
						case 2:
							return -420901598;
							break;
						
						case 3:
							return 2107411814;
							break;
						
						case 4:
							return 1242686602;
							break;
						
						case 5:
							return -596540583;
							break;
						
						case 6:
							return -653786071;
							break;
						
						case 7:
							return 1460048630;
							break;
						
						case 8:
							return -2079589815;
							break;
					}
					break;
				
				case 4:
					switch (iParam2)
					{
						case 0:
							break;
						
						case 1:
							break;
						
						case 2:
							return -1947098483;
							break;
						
						case 3:
							return 569295621;
							break;
						
						case 4:
							return -208098559;
							break;
						
						case 5:
							return 1256246195;
							break;
						
						case 6:
							return 1605755939;
							break;
						
						case 7:
							return 874748698;
							break;
						
						case 8:
							return -137095372;
							break;
					}
					break;
				
				case 5:
					switch (iParam2)
					{
						case 0:
							break;
						
						case 1:
							break;
						
						case 2:
							return 1950801119;
							break;
						
						case 3:
							return -1158564771;
							break;
						
						case 4:
							return -69929428;
							break;
						
						case 5:
							return 1957730707;
							break;
						
						case 6:
							return 374587029;
							break;
						
						case 7:
							return -210146735;
							break;
						
						case 8:
							return 336100633;
							break;
					}
					break;
				
				case 6:
					switch (iParam2)
					{
						case 0:
							break;
						
						case 1:
							break;
						
						case 2:
							return -1148238879;
							break;
						
						case 3:
							return -958872024;
							break;
						
						case 4:
							return 1353141306;
							break;
						
						case 5:
							return 394070886;
							break;
						
						case 6:
							return 255958050;
							break;
						
						case 7:
							return -521728710;
							break;
						
						case 8:
							return 1843470374;
							break;
					}
					break;
				
				case 7:
					switch (iParam2)
					{
						case 0:
							break;
						
						case 1:
							break;
						
						case 2:
							return 670760190;
							break;
						
						case 3:
							return 799655540;
							break;
						
						case 4:
							return -99079306;
							break;
						
						case 5:
							return 1989760633;
							break;
						
						case 6:
							return 1157052274;
							break;
						
						case 7:
							return -1196262225;
							break;
						
						case 8:
							return -664356399;
							break;
					}
					break;
				
				case 8:
					break;
				
				case 9:
					switch (iParam2)
					{
						case 0:
							break;
						
						case 1:
							break;
						
						case 2:
							return 1875496913;
							break;
						
						case 3:
							return -1978886808;
							break;
						
						case 4:
							return -1279403197;
							break;
						
						case 5:
							return -1459998821;
							break;
						
						case 6:
							return 1786467932;
							break;
						
						case 7:
							return -795005246;
							break;
						
						case 8:
							return -1147008986;
							break;
					}
					break;
				
				case 10:
					break;
				
				case 11:
				case 16:
					switch (iParam2)
					{
						case 0:
							break;
						
						case 1:
							break;
						
						case 2:
							return -1925009287;
							break;
						
						case 3:
							return -268733734;
							break;
						
						case 4:
							return -2124412821;
							break;
						
						case 5:
							return -360036697;
							break;
						
						case 6:
							return -926433555;
							break;
						
						case 7:
							return 985839403;
							break;
						
						case 8:
							return -234436397;
							break;
						
						case 9:
							return 1165919867;
							break;
						
						case 10:
							return 1606204151;
							break;
						
						case 11:
							return 1774276352;
							break;
						
						case 12:
							return 1934254610;
							break;
						
						case 13:
							return 980775017;
							break;
						
						case 14:
							return 399321881;
							break;
					}
					break;
				
				case 12:
					switch (iParam2)
					{
						case 0:
							break;
						
						case 1:
							break;
						
						case 2:
							return 493536654;
							break;
						
						case 3:
							return -1759053005;
							break;
						
						case 4:
							return 630158551;
							break;
						
						case 5:
							return -707909514;
							break;
						
						case 6:
							return 1254885089;
							break;
						
						case 7:
							return 596977742;
							break;
						
						case 8:
							return 1861540342;
							break;
					}
					break;
				
				case 13:
					break;
				
				case 14:
					switch (iParam2)
					{
						case 0:
							break;
						
						case 1:
							break;
						
						case 2:
							return -840276017;
							break;
						
						case 3:
							return 756400133;
							break;
						
						case 4:
							return 1148630611;
							break;
						
						case 5:
							return -893909282;
							break;
						
						case 6:
							return 1485630477;
							break;
						
						case 7:
							return -934174767;
							break;
						
						case 8:
							return -1866981918;
							break;
					}
					break;
				
				case 15:
					switch (iParam2)
					{
						case 0:
							break;
						
						case 1:
							break;
						
						case 2:
							return -591418577;
							break;
						
						case 3:
							return -2029591494;
							break;
						
						case 4:
							return 1293565798;
							break;
						
						case 5:
							return 1230599348;
							break;
						
						case 6:
							return 80125466;
							break;
						
						case 7:
							return 768104686;
							break;
						
						case 8:
							return -1559755280;
							break;
					}
					break;
				
				case 352:
					switch (iParam2)
					{
						case 0:
							break;
						
						case 1:
							break;
						
						case 2:
							return 1435783799;
							break;
						
						case 3:
							return -935552076;
							break;
						
						case 4:
							return 766407714;
							break;
						
						case 5:
							return 1509946582;
							break;
						
						case 6:
							return -2105033798;
							break;
						
						case 7:
							return 1608018857;
							break;
						
						case 8:
							return -1746944984;
							break;
					}
					break;
				
				case 353:
					switch (iParam2)
					{
						case 0:
							break;
						
						case 1:
							break;
						
						case 2:
							return 640553446;
							break;
						
						case 3:
							return 376036624;
							break;
						
						case 4:
							return -51036152;
							break;
						
						case 5:
							return 1864144311;
							break;
						
						case 6:
							return 875934121;
							break;
						
						case 7:
							return -671105758;
							break;
						
						case 8:
							return -1439393512;
							break;
					}
					break;
				
				case 354:
					switch (iParam2)
					{
						case 0:
							break;
						
						case 1:
							break;
						
						case 2:
							return -1795808405;
							break;
						
						case 3:
							return -583173670;
							break;
						
						case 4:
							return 1309411930;
							break;
						
						case 5:
							return -1097003929;
							break;
						
						case 6:
							return 947491077;
							break;
						
						case 7:
							return -1021187095;
							break;
						
						case 8:
							return -1662421384;
							break;
					}
					break;
				
				case 391:
					switch (iParam2)
					{
						case 0:
							break;
						
						case 1:
							break;
						
						case 2:
							return -1866149930;
							break;
						
						case 3:
							return 169817082;
							break;
						
						case 4:
							return 876172205;
							break;
						
						case 5:
							return 2053608242;
							break;
						
						case 6:
							return 720468224;
							break;
						
						case 7:
							return -1755663855;
							break;
						
						case 8:
							return -277654310;
							break;
					}
					break;
				
				case 404:
					switch (iParam2)
					{
						case 0:
							break;
						
						case 1:
							break;
						
						case 2:
							return -1685192020;
							break;
						
						case 3:
							return 447714365;
							break;
						
						case 4:
							return -187478284;
							break;
						
						case 5:
							return 2101575193;
							break;
						
						case 6:
							return 1655151264;
							break;
						
						case 7:
							return -212448586;
							break;
						
						case 8:
							return -575494038;
							break;
					}
					break;
			}
			break;
		
		case joaat("mp_m_freemode_01"):
			switch (iParam1)
			{
				case 0:
					switch (iParam2)
					{
						case 0:
							break;
						
						case 1:
							break;
						
						case 2:
							return -414534788;
							break;
						
						case 3:
							return 185531215;
							break;
						
						case 4:
							return -775417853;
							break;
						
						case 5:
							return 1619085169;
							break;
						
						case 6:
							return 888176083;
							break;
						
						case 7:
							return -868636293;
							break;
						
						case 8:
							return -481241218;
							break;
					}
					break;
				
				case 1:
					switch (iParam2)
					{
						case 0:
							break;
						
						case 1:
							break;
						
						case 2:
							return 982904848;
							break;
						
						case 3:
							return 1053086051;
							break;
						
						case 4:
							return 1565990968;
							break;
						
						case 5:
							return 869354244;
							break;
						
						case 6:
							return -1137668925;
							break;
						
						case 7:
							return -245327436;
							break;
						
						case 8:
							return -2092735770;
							break;
					}
					break;
				
				case 2:
					switch (iParam2)
					{
						case 0:
							break;
						
						case 1:
							break;
						
						case 2:
							return 1286693086;
							break;
						
						case 3:
							return 443095479;
							break;
						
						case 4:
							return -2039335276;
							break;
						
						case 5:
							return 2083407994;
							break;
						
						case 6:
							return 533001127;
							break;
						
						case 7:
							return 1728875992;
							break;
						
						case 8:
							return -1665814217;
							break;
					}
					break;
				
				case 3:
					break;
				
				case 4:
					switch (iParam2)
					{
						case 0:
							return 1402439971;
							break;
						
						case 1:
							return -77210386;
							break;
						
						case 2:
							return 206640931;
							break;
						
						case 3:
							return 1434974169;
							break;
						
						case 4:
							return -2076303403;
							break;
						
						case 5:
							return 2073263245;
							break;
						
						case 6:
							return 229693395;
							break;
						
						case 7:
							return -981246739;
							break;
						
						case 8:
							return 2107613618;
							break;
					}
					break;
				
				case 5:
					switch (iParam2)
					{
						case 0:
							break;
						
						case 1:
							break;
						
						case 2:
							return 1954830049;
							break;
						
						case 3:
							return 1793062342;
							break;
						
						case 4:
							return -2118725149;
							break;
						
						case 5:
							return -849747283;
							break;
						
						case 6:
							return 1582789248;
							break;
						
						case 7:
							return -1675687168;
							break;
						
						case 8:
							return -381889304;
							break;
					}
					break;
				
				case 6:
					switch (iParam2)
					{
						case 0:
							break;
						
						case 1:
							break;
						
						case 2:
							return 1942207698;
							break;
						
						case 3:
							return -743369876;
							break;
						
						case 4:
							return 582693633;
							break;
						
						case 5:
							return -1280288284;
							break;
						
						case 6:
							return -1000105499;
							break;
						
						case 7:
							return -2147200029;
							break;
						
						case 8:
							return -1838714866;
							break;
					}
					break;
				
				case 7:
					break;
				
				case 8:
					switch (iParam2)
					{
						case 0:
							break;
						
						case 1:
							break;
						
						case 2:
							return 1187050736;
							break;
						
						case 3:
							return -1420954963;
							break;
						
						case 4:
							return 232453794;
							break;
						
						case 5:
							return 406178867;
							break;
						
						case 6:
							return 739288468;
							break;
						
						case 7:
							return -252997160;
							break;
						
						case 8:
							return -2044888090;
							break;
					}
					break;
				
				case 9:
					break;
				
				case 10:
					break;
				
				case 11:
					switch (iParam2)
					{
						case 0:
							break;
						
						case 1:
							break;
						
						case 2:
							return 1703311969;
							break;
						
						case 3:
							return 1875667738;
							break;
						
						case 4:
							return 1291347593;
							break;
						
						case 5:
							return -713453992;
							break;
						
						case 6:
							return 1417339152;
							break;
						
						case 7:
							return 587281350;
							break;
						
						case 8:
							return -86904022;
							break;
					}
					break;
				
				case 12:
					switch (iParam2)
					{
						case 0:
							break;
						
						case 1:
							break;
						
						case 2:
							return -1858518769;
							break;
						
						case 3:
							return 44044890;
							break;
						
						case 4:
							return -1131137757;
							break;
						
						case 5:
							return 213313570;
							break;
						
						case 6:
							return -233124949;
							break;
						
						case 7:
							return 171345846;
							break;
						
						case 8:
							return 1452902248;
							break;
					}
					break;
				
				case 13:
					break;
				
				case 14:
					switch (iParam2)
					{
						case 0:
							break;
						
						case 1:
							break;
						
						case 2:
							return 747852506;
							break;
						
						case 3:
							return 216238268;
							break;
						
						case 4:
							return 404894315;
							break;
						
						case 5:
							return 950341895;
							break;
						
						case 6:
							return 1159773017;
							break;
						
						case 7:
							return -957185436;
							break;
						
						case 8:
							return -240960885;
							break;
					}
					break;
				
				case 15:
					switch (iParam2)
					{
						case 0:
							break;
						
						case 1:
							break;
						
						case 2:
							return -259688953;
							break;
						
						case 3:
							return -736534114;
							break;
						
						case 4:
							return -1673886961;
							break;
						
						case 5:
							return 976562040;
							break;
						
						case 6:
							return -1794803798;
							break;
						
						case 7:
							return -81887956;
							break;
						
						case 8:
							return 1689176064;
							break;
					}
					break;
				
				case 302:
					switch (iParam2)
					{
						case 0:
							break;
						
						case 1:
							break;
						
						case 2:
							return -1835438866;
							break;
						
						case 3:
							return -504887899;
							break;
						
						case 4:
							return -2062205969;
							break;
						
						case 5:
							return 1171204323;
							break;
						
						case 6:
							return 655612525;
							break;
						
						case 7:
							return -739019619;
							break;
						
						case 8:
							return 1371789707;
							break;
					}
					break;
				
				case 303:
					switch (iParam2)
					{
						case 0:
							break;
						
						case 1:
							break;
						
						case 2:
							return 124374814;
							break;
						
						case 3:
							return 2119944607;
							break;
						
						case 4:
							return -1129482474;
							break;
						
						case 5:
							return 801728466;
							break;
						
						case 6:
							return 1764150402;
							break;
						
						case 7:
							return -43777;
							break;
						
						case 8:
							return -543743869;
							break;
					}
					break;
				
				case 304:
					switch (iParam2)
					{
						case 0:
							break;
						
						case 1:
							break;
						
						case 2:
							return 1732443055;
							break;
						
						case 3:
							return 1991589117;
							break;
						
						case 4:
							return -1926802042;
							break;
						
						case 5:
							return -1879434956;
							break;
						
						case 6:
							return -582200001;
							break;
						
						case 7:
							return 498117603;
							break;
						
						case 8:
							return 1121585510;
							break;
					}
					break;
			}
			break;
	}
	return -1;
}

int func_157(int iParam0, int iParam1, int iParam2, int iParam3)//Position - 0x2137F
{
	int iVar0;
	int iVar1;
	int iVar2;
	int iVar3;
	int iVar4;
	int iVar5;
	int iVar6;
	int iVar7;
	int iVar8;
	int iVar9;
	int iVar10;
	int iVar11;
	int iVar12;
	int iVar13;
	int iVar14;
	
	iVar0 = -99;
	iVar1 = -1;
	iVar2 = -1;
	iVar3 = -1;
	iVar4 = -1;
	switch (iParam0)
	{
		case joaat("mp_m_freemode_01"):
			if (iParam2 >= 237)
			{
				iVar2 = func_158(iParam0, iParam2, 11, 3);
				iVar1 = func_149(iVar2);
			}
			if (iParam1 >= 241)
			{
				iVar4 = func_158(iParam0, iParam1, 8, 3);
				iVar3 = func_149(iVar4);
			}
			if (dlc1::_0x341DE7ED1D2A1BFD(iVar2, 320460654, 0))
			{
				iVar0 = 14;
			}
			else if (dlc1::_0x341DE7ED1D2A1BFD(iVar2, -2017999390, 0))
			{
				iVar0 = 6;
			}
			else if (iVar4 != -1 && dlc1::_0x341DE7ED1D2A1BFD(iVar4, -1786447517, 0))
			{
				iVar0 = 1;
			}
			else if (iVar4 != -1 && dlc1::_0x341DE7ED1D2A1BFD(iVar4, -1010805287, 0))
			{
				iVar0 = 4;
			}
			else if (dlc1::_0x341DE7ED1D2A1BFD(iVar2, -1237899132, 0) && !dlc1::_0x341DE7ED1D2A1BFD(iVar2, -491588875, 0))
			{
				if (iParam1 == 240)
				{
					if ((dlc1::_0x341DE7ED1D2A1BFD(iVar2, -269266203, 0) || dlc1::_0x341DE7ED1D2A1BFD(iVar2, -685039259, 0)) || dlc1::_0x341DE7ED1D2A1BFD(iVar2, 297865853, 0))
					{
						iVar0 = func_75(iParam0, -189347783, 3, 3);
					}
					else if (dlc1::_0x341DE7ED1D2A1BFD(iVar2, 201427653, 0))
					{
						iVar0 = func_75(iParam0, -2124259813, 3, 3);
					}
					else if (dlc1::_0x341DE7ED1D2A1BFD(iVar2, 967829025, 0))
					{
						iVar0 = func_75(iParam0, 1522547645, 3, 3);
					}
					else if (dlc1::_0x341DE7ED1D2A1BFD(iVar2, -979468724, 0))
					{
						iVar0 = 5;
					}
				}
				else
				{
					iVar0 = func_157(iParam0, -99, func_150(iParam0, iParam1, 0), iParam3);
					if (iVar0 == -99)
					{
						iVar0 = 0;
					}
				}
			}
			else if (dlc1::_0x341DE7ED1D2A1BFD(iVar4, -316495692, 0))
			{
				iVar0 = 12;
			}
			else if (((iVar2 != -1 && dlc1::_0x341DE7ED1D2A1BFD(iVar2, -416620954, 0)) || (iVar2 != -1 && dlc1::_0x341DE7ED1D2A1BFD(iVar2, -1507532917, 0))) || dlc1::_0x341DE7ED1D2A1BFD(iVar2, -1813210391, 0))
			{
				if (iParam1 == 240)
				{
					iVar0 = 14;
				}
				else if ((iParam1 >= 80 && iParam1 <= 95) || iVar3 == 5)
				{
					iVar0 = 6;
				}
				else if ((iParam1 >= 16 && iParam1 <= 31) || iVar3 == 1)
				{
					iVar0 = 1;
				}
				else
				{
					iVar0 = 4;
				}
			}
			else if (iVar2 != -1 && dlc1::_0x341DE7ED1D2A1BFD(iVar2, -1719338724, 0))
			{
				if (iParam1 == 240)
				{
					iVar0 = 14;
				}
				else if ((iParam1 >= 80 && iParam1 <= 95) || iVar3 == 5)
				{
					iVar0 = 6;
				}
				else
				{
					iVar0 = 1;
				}
			}
			else if (iVar2 != -1 && dlc1::_0x341DE7ED1D2A1BFD(iVar2, -1939378450, 0))
			{
				if ((iParam1 >= 192 && iParam1 <= 207) || iVar3 == 12)
				{
					iVar0 = 0;
				}
				else
				{
					iVar0 = 11;
				}
			}
			else if (iVar2 != -1 && dlc1::_0x341DE7ED1D2A1BFD(iVar2, 264959411, 0))
			{
				if ((iParam1 >= 80 && iParam1 <= 95) || iVar3 == 5)
				{
					iVar0 = 6;
				}
				else if (iParam1 == 240)
				{
					iVar0 = 14;
				}
				else if ((iParam1 >= 16 && iParam1 <= 31) || iVar3 == 1)
				{
					iVar0 = 1;
				}
			}
			else if (iVar2 != -1 && dlc1::_0x341DE7ED1D2A1BFD(iVar2, 1625463492, 0))
			{
				iVar0 = 12;
			}
			else if (((iParam2 >= 0 && iParam2 <= 31) || iVar1 == 0) || iVar1 == 1)
			{
				iVar0 = 0;
			}
			else if ((((((((((iParam2 >= 48 && iParam2 <= 63) || (iParam2 >= 64 && iParam2 <= 79)) || (iParam2 >= 96 && iParam2 <= 107)) || (iParam2 >= 108 && iParam2 <= 123)) || (iParam2 >= 156 && iParam2 <= 171)) || iVar1 == 3) || iVar1 == 4) || iVar1 == 6) || iVar1 == 7) || iVar1 == 10)
			{
				if ((iParam1 >= 80 && iParam1 <= 95) || iVar3 == 5)
				{
					iVar0 = 6;
				}
				else if (iParam1 == 240 || iVar3 == 15)
				{
					iVar0 = 14;
				}
				else if ((iParam1 >= 160 && iParam1 <= 175) || iVar3 == 10)
				{
					iVar0 = 4;
				}
				else if ((iParam1 >= 176 && iParam1 <= 191) || iVar3 == 11)
				{
					iVar0 = 12;
				}
				else if ((((iParam1 >= 16 && iParam1 <= 31) || (iParam1 >= 224 && iParam1 <= 239)) || iVar3 == 1) || iVar3 == 14)
				{
					iVar0 = 1;
				}
				else if ((iParam1 >= 80 && iParam1 <= 95) || iVar3 == 5)
				{
					iVar0 = 6;
				}
				else if ((iParam1 >= 32 && iParam1 <= 47) || iVar3 == 2)
				{
					iVar0 = 4;
				}
				else if (iVar4 != -1 && dlc1::_0x341DE7ED1D2A1BFD(iVar4, 1847239679, 0))
				{
					if (iVar4 != -1 && dlc1::_0x341DE7ED1D2A1BFD(iVar4, -1914383230, 0))
					{
						iVar0 = 4;
					}
					else
					{
						iVar0 = 1;
					}
				}
				else if ((iParam1 >= 144 && iParam1 <= 159) || iVar3 == 9)
				{
					iVar0 = 1;
				}
				else if (dlc1::_0x341DE7ED1D2A1BFD(iVar4, -849839091, 0) || dlc1::_0x341DE7ED1D2A1BFD(iVar4, -2088146832, 0))
				{
					iVar0 = 4;
				}
				else if (iParam1 >= 241)
				{
					if (iVar4 != -1)
					{
						iVar5 = dlc1::_get_num_forced_components(iVar4);
						iVar6 = 0;
						while (iVar6 < iVar5)
						{
							dlc1::get_forced_component(iVar4, iVar6, &iVar7, &iVar8, &iVar9);
							if (iVar9 == 3)
							{
								if (iVar7 != 0 && iVar7 != 1849449579)
								{
									iVar0 = func_75(iParam0, iVar7, 3, 3);
								}
								else
								{
									iVar0 = iVar8;
								}
								iVar6 = iVar5 + 1;
							}
							iVar6++;
						}
					}
				}
			}
			else if ((iParam2 >= 172 && iParam2 <= 187) || iVar1 == 11)
			{
				if (iVar4 != -1 && dlc1::_0x341DE7ED1D2A1BFD(iVar4, -7109286, 0))
				{
					iVar0 = 6;
				}
				else if ((((iParam1 >= 48 && iParam1 <= 63) || (iParam1 >= 112 && iParam1 <= 127)) || iVar3 == 3) || iVar3 == 7)
				{
					iVar0 = 11;
				}
				else if ((iParam1 >= 96 && iParam1 <= 111) || iVar3 == 6)
				{
					iVar0 = 11;
				}
				else if (iVar4 != -1 && dlc1::_0x341DE7ED1D2A1BFD(iVar4, 1147939952, 0))
				{
					iVar0 = 12;
				}
				else if (iParam1 == 240)
				{
					iVar0 = 15;
				}
			}
			break;
		
		case joaat("mp_f_freemode_01"):
			if (iParam2 >= 256)
			{
				iVar2 = func_158(iParam0, iParam2, 11, 4);
				iVar1 = func_149(iVar2);
			}
			if (iParam1 >= 136)
			{
				iVar4 = func_158(iParam0, iParam1, 8, 4);
				iVar3 = func_149(iVar4);
				switch (iVar4)
				{
					case 327496660:
					case -63928837:
					case 695885966:
					case 525421628:
					case 1426634666:
					case 1160648693:
					case 1928065904:
					case 1748557322:
					case -1777223233:
					case -1991794649:
					case 917309067:
					case -1629661498:
						iVar3 = 15;
						break;
					
					case 587358117:
					case 742748715:
					case 490263574:
					case 682683142:
					case -1172927021:
					case -174365543:
					case -1450128251:
					case -1811439245:
					case 1578218888:
					case -1193481443:
					case 1549742623:
					case 1309119856:
					case 2143418596:
					case 1905745039:
					case 428026984:
					case 1547729071:
					case -1848319017:
						iVar3 = 13;
						break;
					}
			}
			if (dlc1::_0x341DE7ED1D2A1BFD(iVar2, 320460654, 0))
			{
				iVar0 = 0;
			}
			else if (dlc1::_0x341DE7ED1D2A1BFD(iVar2, -1237899132, 0) && !dlc1::_0x341DE7ED1D2A1BFD(iVar2, -491588875, 0))
			{
				if ((((((((((((((((((((((((((((iParam1 >= 34 && iParam1 <= 49) || (iParam1 >= 50 && iParam1 <= 65)) || (iParam1 >= 71 && iParam1 <= 86)) || (iParam1 >= 87 && iParam1 <= 102)) || (iParam1 >= 103 && iParam1 <= 118)) || (iParam1 >= 120 && iParam1 <= 135)) || iVar3 == 4) || iVar3 == 5) || iVar3 == 11) || iVar3 == 12) || iVar3 == 13) || iVar3 == 15) || iVar4 == 1389091979) || iVar4 == 442100644) || iVar4 == -1406103725) || iVar4 == -167304449) || iVar4 == 129353308) || iVar4 == 1943510702) || iVar4 == 1963041026) || dlc1::_0x341DE7ED1D2A1BFD(iVar4, 2044466679, 0)) || dlc1::_0x341DE7ED1D2A1BFD(iVar4, -2020757158, 0)) || dlc1::_0x341DE7ED1D2A1BFD(iVar4, -1064262817, 0)) || dlc1::_0x341DE7ED1D2A1BFD(iVar4, -1419806467, 0)) || dlc1::_0x341DE7ED1D2A1BFD(iVar4, -1053842259, 0)) || dlc1::_0x341DE7ED1D2A1BFD(iVar4, -1358888880, 0)) || dlc1::_0x341DE7ED1D2A1BFD(iVar4, 1208450825, 0)) || dlc1::_0x341DE7ED1D2A1BFD(iVar4, 297865853, 0)) || dlc1::_0x341DE7ED1D2A1BFD(iVar4, 602650322, 0))
				{
					if ((dlc1::_0x341DE7ED1D2A1BFD(iVar2, -269266203, 0) || dlc1::_0x341DE7ED1D2A1BFD(iVar2, -685039259, 0)) || dlc1::_0x341DE7ED1D2A1BFD(iVar2, 297865853, 0))
					{
						iVar0 = func_75(iParam0, -405734992, 3, 4);
					}
					else if (dlc1::_0x341DE7ED1D2A1BFD(iVar2, 201427653, 0))
					{
						iVar0 = func_75(iParam0, 1297919831, 3, 4);
					}
					else if (dlc1::_0x341DE7ED1D2A1BFD(iVar2, 967829025, 0) || dlc1::_0x341DE7ED1D2A1BFD(iVar2, -979468724, 0))
					{
						iVar0 = func_75(iParam0, 440926231, 3, 4);
					}
				}
				else if ((dlc1::_0x341DE7ED1D2A1BFD(iVar4, -89003918, 0) || dlc1::_0x341DE7ED1D2A1BFD(iVar4, -747858475, 0)) || dlc1::_0x341DE7ED1D2A1BFD(iVar4, 490219883, 0))
				{
					iVar0 = 11;
				}
				else
				{
					iVar0 = func_157(iParam0, -99, func_150(iParam0, iParam1, 0), iParam3);
					if (iVar0 == -99)
					{
						iVar0 = 14;
					}
				}
			}
			else if (dlc1::_0x341DE7ED1D2A1BFD(iVar4, -316495692, 0))
			{
				iVar0 = 3;
			}
			else if (((iVar4 != -1 && dlc1::_0x341DE7ED1D2A1BFD(iVar4, 1965569012, 0)) && !func_153(iParam0, iParam2)) && !dlc1::_0x341DE7ED1D2A1BFD(iVar2, 320460654, 0))
			{
				if (iVar4 != -1 && dlc1::_0x341DE7ED1D2A1BFD(iVar4, 1147939952, 0))
				{
					iVar0 = 3;
				}
				else
				{
					iVar0 = 0;
				}
			}
			else if (iVar4 != -1 && dlc1::_0x341DE7ED1D2A1BFD(iVar4, 1353777856, 0))
			{
				iVar0 = 7;
			}
			else if ((iVar4 != -1 && dlc1::_0x341DE7ED1D2A1BFD(iVar4, -849839091, 0)) || (iVar4 != -1 && dlc1::_0x341DE7ED1D2A1BFD(iVar4, -2088146832, 0)))
			{
				iVar0 = 3;
			}
			else if (iVar2 != -1 && dlc1::_0x341DE7ED1D2A1BFD(iVar2, -2102859770, 0))
			{
				if (dlc1::_0x341DE7ED1D2A1BFD(func_158(iParam0, iParam3, 4, 4), -33031567, 0))
				{
					iVar0 = 11;
				}
				else
				{
					iVar0 = 15;
				}
			}
			else if ((((((((((((((iVar4 != -1 && dlc1::_0x341DE7ED1D2A1BFD(iVar4, -1119232689, 0)) || (iVar4 != -1 && dlc1::_0x341DE7ED1D2A1BFD(iVar4, 1976716889, 0))) || (iVar4 != -1 && dlc1::_0x341DE7ED1D2A1BFD(iVar4, -1488441032, 0))) || (iVar4 != -1 && dlc1::_0x341DE7ED1D2A1BFD(iVar4, 2044466679, 0))) || (iVar4 != -1 && dlc1::_0x341DE7ED1D2A1BFD(iVar4, -1419806467, 0))) || (iVar4 != -1 && dlc1::_0x341DE7ED1D2A1BFD(iVar4, -1813210391, 0))) || (iVar4 != -1 && dlc1::_0x341DE7ED1D2A1BFD(iVar4, 263623295, 0))) || (iVar4 != -1 && dlc1::_0x341DE7ED1D2A1BFD(iVar4, -309899747, 0))) || (iVar4 != -1 && dlc1::_0x341DE7ED1D2A1BFD(iVar4, -89003918, 0))) || (iVar4 != -1 && dlc1::_0x341DE7ED1D2A1BFD(iVar4, -747858475, 0))) || (iVar4 != -1 && dlc1::_0x341DE7ED1D2A1BFD(iVar4, 490219883, 0))) || (iVar4 != -1 && dlc1::_0x341DE7ED1D2A1BFD(iVar4, 1208450825, 0))) || (iVar4 != -1 && dlc1::_0x341DE7ED1D2A1BFD(iVar4, 297865853, 0))) || (iVar4 != -1 && dlc1::_0x341DE7ED1D2A1BFD(iVar4, 602650322, 0)))
			{
				if ((((((iParam2 >= 16 && iParam2 <= 31) || (iParam2 >= 96 && iParam2 <= 111)) || (iParam2 >= 128 && iParam2 <= 143)) || iVar1 == 1) || iVar1 == 6) || iVar1 == 8)
				{
					iVar0 = 1;
				}
				else if ((((((((((((((((((((((((iParam2 >= 112 && iParam2 <= 127) || (iParam2 >= 160 && iParam2 <= 175)) || iVar1 == 7) || iVar1 == 10) || dlc1::_0x341DE7ED1D2A1BFD(iVar2, 2026620439, 0)) || dlc1::_0x341DE7ED1D2A1BFD(iVar2, 916636514, 0)) || dlc1::_0x341DE7ED1D2A1BFD(iVar2, 1322269404, 0)) || dlc1::_0x341DE7ED1D2A1BFD(iVar2, 548036233, 0)) || dlc1::_0x341DE7ED1D2A1BFD(iVar2, -870074461, 0)) || dlc1::_0x341DE7ED1D2A1BFD(iVar2, -1174924468, 0)) || dlc1::_0x341DE7ED1D2A1BFD(iVar2, -868698159, 0)) || dlc1::_0x341DE7ED1D2A1BFD(iVar2, 1769225721, 0)) || dlc1::_0x341DE7ED1D2A1BFD(iVar2, -1834446747, 0)) || dlc1::_0x341DE7ED1D2A1BFD(iVar2, -1719338724, 0)) || dlc1::_0x341DE7ED1D2A1BFD(iVar2, -416620954, 0)) || dlc1::_0x341DE7ED1D2A1BFD(iVar2, 947651647, 0)) || dlc1::_0x341DE7ED1D2A1BFD(iVar2, -549843760, 0)) || dlc1::_0x341DE7ED1D2A1BFD(iVar2, 1830529185, 0)) || dlc1::_0x341DE7ED1D2A1BFD(iVar2, -1266557933, 0)) || dlc1::_0x341DE7ED1D2A1BFD(iVar2, -1813210391, 0)) || dlc1::_0x341DE7ED1D2A1BFD(iVar2, -89003918, 0)) || dlc1::_0x341DE7ED1D2A1BFD(iVar2, -747858475, 0)) || dlc1::_0x341DE7ED1D2A1BFD(iVar2, 1208450825, 0)) || dlc1::_0x341DE7ED1D2A1BFD(iVar2, -58412562, 0))
				{
					iVar0 = 3;
				}
				else if (dlc1::_0x341DE7ED1D2A1BFD(iVar2, -1939378450, 0))
				{
					iVar0 = 9;
				}
			}
			else if ((((((iVar2 != -1 && dlc1::_0x341DE7ED1D2A1BFD(iVar2, -870074461, 0)) || (iVar2 != -1 && dlc1::_0x341DE7ED1D2A1BFD(iVar2, -1813210391, 0))) || (iVar2 != -1 && dlc1::_0x341DE7ED1D2A1BFD(iVar2, -89003918, 0))) || (iVar2 != -1 && dlc1::_0x341DE7ED1D2A1BFD(iVar2, -747858475, 0))) || (iVar2 != -1 && dlc1::_0x341DE7ED1D2A1BFD(iVar2, 1208450825, 0))) || (iVar2 != -1 && dlc1::_0x341DE7ED1D2A1BFD(iVar2, -58412562, 0)))
			{
				if ((((dlc1::_0x341DE7ED1D2A1BFD(iVar4, 684992453, 0) || dlc1::_0x341DE7ED1D2A1BFD(iVar4, 916636514, 0)) || dlc1::_0x341DE7ED1D2A1BFD(iVar4, -1939378450, 0)) || dlc1::_0x341DE7ED1D2A1BFD(iVar4, 441715397, 0)) || dlc1::_0x341DE7ED1D2A1BFD(iVar4, 264959411, 0))
				{
					iVar0 = 1;
				}
				else
				{
					iVar0 = 6;
				}
			}
			else if ((iParam2 >= 16 && iParam2 <= 31) || iVar1 == 1)
			{
				if ((((iParam1 >= 50 && iParam1 <= 65) || (iParam1 >= 120 && iParam1 <= 135)) || iVar3 == 5) || iVar3 == 15)
				{
					iVar0 = 5;
				}
				else if (iParam1 >= 136)
				{
					if (iVar4 != -1)
					{
						iVar10 = dlc1::_get_num_forced_components(iVar4);
						iVar11 = 0;
						while (iVar11 < iVar10)
						{
							dlc1::get_forced_component(iVar4, iVar11, &iVar12, &iVar13, &iVar14);
							if (iVar14 == 3)
							{
								if (iVar12 != 0 && iVar12 != 1849449579)
								{
									iVar0 = func_75(iParam0, iVar12, 3, 4);
								}
								else
								{
									iVar0 = iVar13;
								}
								iVar11 = iVar10 + 1;
							}
							iVar11++;
						}
					}
				}
			}
			else if (((iParam2 >= 112 && iParam2 <= 127) || iVar1 == 7) || dlc1::_0x341DE7ED1D2A1BFD(iVar2, -1719338724, 0))
			{
				if ((((dlc1::_0x341DE7ED1D2A1BFD(iVar4, 684992453, 0) || dlc1::_0x341DE7ED1D2A1BFD(iVar4, 916636514, 0)) || dlc1::_0x341DE7ED1D2A1BFD(iVar4, -1939378450, 0)) || dlc1::_0x341DE7ED1D2A1BFD(iVar4, 441715397, 0)) || dlc1::_0x341DE7ED1D2A1BFD(iVar4, 264959411, 0))
				{
					iVar0 = 3;
				}
				else
				{
					iVar0 = 6;
				}
			}
			break;
	}
	return iVar0;
}

int func_158(int iParam0, int iParam1, int iParam2, int iParam3)//Position - 0x2256F
{
	struct<2> Var0;
	int iVar17;
	int iVar18;
	int iVar19;
	int iVar20;
	struct<2> Var21;
	int iVar38;
	int iVar39;
	int iVar40;
	int iVar41;
	
	if (iParam2 == 12)
	{
	}
	else if (iParam2 == 13)
	{
	}
	else if (iParam2 == 14)
	{
		dlc1::init_shop_ped_prop(&Var0);
		iVar18 = 0;
		iVar19 = (iParam1 - func_77(iParam0));
		if (iVar19 < 0)
		{
			return -1;
		}
		iVar20 = dlc1::_get_num_props_from_outfit(iParam3, 6, -1, 1, -1, -1);
		iVar17 = 0;
		while (iVar17 < iVar20)
		{
			dlc1::get_shop_ped_query_prop(iVar17, &Var0);
			if (!dlc1::_is_dlc_data_empty(Var0))
			{
				if (iVar18 == iVar19)
				{
					return Var0.f_1;
				}
				iVar18++;
			}
			iVar17++;
		}
	}
	else
	{
		dlc1::init_shop_ped_component(&Var21);
		iVar39 = 0;
		iVar40 = (iParam1 - func_76(iParam0, func_181(iParam2)));
		if (iVar40 < 0)
		{
			return -1;
		}
		if ((iParam0 == Global_69640.f_26[iParam2] && iParam1 == Global_69640[iParam2]) && Global_69640.f_13[iParam2] != 0)
		{
			return Global_69640.f_13[iParam2];
		}
		iVar41 = dlc1::_get_num_props_from_outfit(iParam3, 6, -1, 0, -1, func_181(iParam2));
		iVar38 = 0;
		while (iVar38 < iVar41)
		{
			dlc1::get_shop_ped_query_component(iVar38, &Var21);
			if (!dlc1::_is_dlc_data_empty(Var21))
			{
				if (iVar39 == iVar40)
				{
					Global_69640.f_13[iParam2] = Var21.f_1;
					Global_69640[iParam2] = iParam1;
					Global_69640.f_26[iParam2] = iParam0;
					return Var21.f_1;
				}
				iVar39++;
			}
			iVar38++;
		}
	}
	return -1;
}

int func_159(int iParam0, int iParam1)//Position - 0x226CB
{
	int iVar0;
	int iVar1;
	int iVar2;
	
	if (((iParam1 == 12 || iParam1 == 13) || iParam1 == 14) || ped::is_ped_injured(iParam0))
	{
		return -99;
	}
	iVar0 = func_181(iParam1);
	iVar1 = ped::get_ped_drawable_variation(iParam0, iVar0);
	iVar2 = ped::get_ped_texture_variation(iParam0, iVar0);
	return func_160(iParam0, iVar1, iVar2, iParam1);
}

int func_160(int iParam0, int iParam1, int iParam2, int iParam3)//Position - 0x2272B
{
	int iVar0;
	int iVar1;
	int iVar2;
	int iVar3;
	int iVar4;
	int iVar5;
	
	iVar0 = func_181(iParam3);
	iVar1 = ped::get_number_of_ped_drawable_variations(iParam0, iVar0);
	iVar3 = 0;
	while (iVar3 <= (iVar1 - 1))
	{
		iVar5 = ped::get_number_of_ped_texture_variations(iParam0, iVar0, iVar3);
		if (iVar3 != iParam1)
		{
			iVar2 = (iVar2 + iVar5);
		}
		else
		{
			iVar4 = 0;
			while (iVar4 <= (iVar5 - 1))
			{
				if (iVar3 == iParam1 && iVar4 == iParam2)
				{
					return iVar2;
				}
				else
				{
					iVar2++;
				}
				iVar4++;
			}
		}
		iVar3++;
	}
	return -99;
}

void func_161(int iParam0)//Position - 0x227AF
{
	int iVar0;
	int iVar1;
	int iVar2;
	int iVar3;
	int iVar4;
	int iVar5;
	int iVar6;
	int iVar7;
	int iVar8;
	int iVar9;
	int iVar10;
	int iVar11;
	int iVar12;
	int iVar13;
	int iVar14;
	int iVar15;
	struct<5> Var16;
	int iVar33;
	
	iVar0 = entity::get_entity_model(iParam0);
	iVar1 = ped::get_ped_drawable_variation(iParam0, 11);
	iVar2 = ped::get_ped_texture_variation(iParam0, 11);
	iVar3 = ped::get_ped_drawable_variation(iParam0, 1);
	iVar4 = ped::get_ped_texture_variation(iParam0, 1);
	iVar5 = ped::get_ped_drawable_variation(iParam0, 8);
	iVar6 = ped::get_ped_texture_variation(iParam0, 8);
	iVar7 = ped::get_ped_drawable_variation(iParam0, 10);
	iVar8 = ped::get_ped_texture_variation(iParam0, 10);
	iVar9 = dlc1::get_hash_name_for_component(iParam0, 11, iVar1, iVar2);
	iVar10 = dlc1::get_hash_name_for_component(iParam0, 1, iVar3, iVar4);
	iVar11 = dlc1::get_hash_name_for_component(iParam0, 8, iVar5, iVar6);
	iVar12 = dlc1::get_hash_name_for_prop(iParam0, 0, ped::get_ped_prop_index(iParam0, 0), ped::get_ped_prop_texture_index(iParam0, 0));
	iVar13 = dlc1::get_hash_name_for_component(iParam0, 10, iVar7, iVar8);
	if (dlc1::_0x341DE7ED1D2A1BFD(iVar9, -317649054, 0))
	{
		iVar14 = false;
		if (dlc1::_0x341DE7ED1D2A1BFD(iVar9, 32905942, 0))
		{
			if (dlc1::_0x341DE7ED1D2A1BFD(iVar12, 605826125, 0))
			{
				if (!dlc1::_0x341DE7ED1D2A1BFD(iVar9, -1889900289, 0))
				{
					iVar14 = true;
				}
			}
			else if (dlc1::_0x341DE7ED1D2A1BFD(iVar9, -1889900289, 0))
			{
				iVar14 = true;
			}
		}
		else if ((((dlc1::_0x341DE7ED1D2A1BFD(iVar10, 72391838, 0) || dlc1::_0x341DE7ED1D2A1BFD(iVar10, -1409448021, 0)) && !func_164(iVar0, 14, func_173(iParam0, 14, 0), -1)) && !dlc1::_0x341DE7ED1D2A1BFD(iVar12, -1821566288, 0)) && !dlc1::_0x341DE7ED1D2A1BFD(iVar12, 208298959, 0))
		{
			if (!dlc1::_0x341DE7ED1D2A1BFD(iVar9, -1889900289, 0))
			{
				iVar14 = true;
			}
		}
		else if (dlc1::_0x341DE7ED1D2A1BFD(iVar9, -1889900289, 0))
		{
			iVar14 = true;
		}
		if (iVar14)
		{
			if (func_163(iVar9, 11, &iVar15))
			{
				dlc1::get_shop_ped_component(iVar15, &Var16);
				ped::set_ped_component_variation(iParam0, 11, Var16.f_3, Var16.f_4, ped::get_ped_palette_variation(iParam0, 11));
				if (entity::get_entity_model(iParam0) == joaat("mp_m_freemode_01"))
				{
					if (dlc1::_0x341DE7ED1D2A1BFD(iVar13, -1487683087, 0))
					{
						if (dlc1::_0x341DE7ED1D2A1BFD(iVar15, -816428229, 0) && iVar13 != -1104282163)
						{
							dlc1::get_shop_ped_component(-1104282163, &Var16);
							ped::set_ped_component_variation(iParam0, 10, Var16.f_3, Var16.f_4, 0);
						}
						else if (dlc1::_0x341DE7ED1D2A1BFD(iVar15, -521539998, 0) && iVar13 != 326501576)
						{
							dlc1::get_shop_ped_component(326501576, &Var16);
							ped::set_ped_component_variation(iParam0, 10, Var16.f_3, Var16.f_4, 0);
						}
					}
				}
				else if (dlc1::_0x341DE7ED1D2A1BFD(iVar13, -1487683087, 0))
				{
					if (dlc1::_0x341DE7ED1D2A1BFD(iVar15, -816428229, 0))
					{
						if (iVar13 != 1349944895)
						{
							dlc1::get_shop_ped_component(1349944895, &Var16);
							ped::set_ped_component_variation(iParam0, 10, Var16.f_3, Var16.f_4, 0);
						}
					}
					else if (dlc1::_0x341DE7ED1D2A1BFD(iVar15, -521539998, 0))
					{
						if (iVar13 != -521200785)
						{
							dlc1::get_shop_ped_component(-521200785, &Var16);
							ped::set_ped_component_variation(iParam0, 10, Var16.f_3, Var16.f_4, 0);
						}
					}
				}
				ped::set_ped_component_variation(iParam0, 1, iVar3, iVar4, 0);
			}
		}
	}
	iVar33 = false;
	if (iVar0 == joaat("mp_m_freemode_01"))
	{
		if (!dlc1::_0x341DE7ED1D2A1BFD(iVar9, 572416369, 0))
		{
			iVar33 = true;
		}
		switch (iVar10)
		{
			case -486726551:
			case 219052171:
			case -1032068249:
			case -728660078:
			case -850691818:
			case -544072285:
			case -1811183977:
			case -1111303675:
			case 116190296:
			case -1282673470:
			case -936108522:
			case -671236695:
			case 1520550639:
			case 1816684092:
			case 2102823000:
			case -1866059977:
			case 1250403007:
			case 476038764:
			case 1863871456:
			case 351755390:
			case 1058844872:
			case 1549134650:
			case 1317097361:
			case -829567064:
			case -130604290:
			case -380009149:
			case 596212130:
			case 2140942786:
			case 1901696317:
			case -1797925843:
			case 790890703:
			case 1633873228:
			case 1272234544:
			case -672409000:
			case -1976713507:
			case -1902280196:
			case -115943475:
			case 1684425644:
			case 1983115079:
				iVar33 = true;
				break;
		}
	}
	else
	{
		if (!dlc1::_0x341DE7ED1D2A1BFD(iVar9, -196114988, 0))
		{
			iVar33 = true;
		}
		switch (iVar10)
		{
			case -1615510302:
			case 1527692182:
			case -2083484391:
			case -1372200477:
			case 761684042:
			case 534496565:
			case 303671729:
			case 39193130:
			case -162598372:
			case -393062749:
			case 2063387500:
			case 1633785910:
			case -874910415:
			case -1240415841:
			case 4970004:
			case -1695478944:
			case -450420789:
			case 257455149:
			case 1098963073:
			case -204554982:
			case 1027252245:
			case 1482249810:
			case 1657236270:
			case 633729300:
			case 461560974:
			case 39856713:
			case -130673163:
			case 1595499458:
			case 1424510816:
			case -1686217589:
			case 415037286:
			case 1095714954:
			case -1384675744:
			case -603364477:
			case 423419373:
			case -945505606:
			case -188672778:
			case 578089053:
			case 1418122368:
			case 39432231:
			case 998548092:
			case -539458143:
			case 1285512993:
			case 1384673675:
			case 207316274:
			case 924498608:
			case 1626705513:
			case -1951407139:
			case 1109577920:
			case 1943254053:
			case -706250677:
			case -933962458:
			case 2065187502:
			case 2143125494:
			case -728857530:
			case 113895612:
			case -106672527:
			case -1674341487:
			case -1426640612:
			case -1616110970:
			case -825558845:
			case -1062773636:
			case 1680712586:
			case 731446975:
			case -1441694810:
			case 1076144086:
			case 1291534723:
			case 1653763249:
			case -402884741:
			case 1982600156:
			case -1955185040:
			case -1722820061:
			case 519431533:
			case 1338441322:
			case -97470603:
			case -1293080337:
			case -1531999116:
			case 762322431:
			case 1318477899:
			case 199940853:
			case 1034403438:
			case 1715572641:
			case -2013146335:
			case 1085654154:
			case 962496867:
			case 1611716295:
			case 637461160:
			case -1137111266:
			case 316882033:
			case 590699797:
			case -385914710:
			case -1897876374:
			case -861786128:
			case -633615581:
			case -1298728310:
			case 2019526172:
			case -156630377:
			case 99852586:
			case 1543589216:
			case 1783097837:
			case -1876706754:
			case -1647782520:
			case -1394117691:
			case 977702533:
			case -670092377:
			case -908093624:
			case 1219695857:
			case 1919117393:
			case -534990310:
			case 445654672:
			case 329262298:
			case 22970455:
			case -476401343:
			case -706275878:
			case 1876083388:
			case -1114385357:
			case -840010097:
			case -2048003518:
			case 286623891:
			case 1792195596:
			case 1992938490:
			case -1364343871:
			case 721974080:
			case -45508669:
			case 1998385862:
			case 1222776401:
				iVar33 = true;
				break;
			}
	}
	if (iVar33)
	{
		if (dlc1::_0x341DE7ED1D2A1BFD(iVar11, -1889900289, 0) || dlc1::_0x341DE7ED1D2A1BFD(iVar11, 1569775397, 0))
		{
			if (iVar0 == joaat("mp_m_freemode_01"))
			{
				iVar5 = 15;
				iVar6 = 0;
			}
			else
			{
				iVar5 = 14;
				iVar6 = 0;
			}
		}
	}
	else if (dlc1::_0x341DE7ED1D2A1BFD(iVar10, -1409448021, 0) && !func_164(iVar0, 14, func_173(iParam0, 14, 0), -1))
	{
		if (dlc1::_0x341DE7ED1D2A1BFD(iVar11, 1569775397, 0))
		{
			iVar5++;
		}
		else
		{
			iVar5 = func_162(iParam0, 1);
			iVar6 = iVar2;
		}
	}
	else if (dlc1::_0x341DE7ED1D2A1BFD(iVar11, -1889900289, 0))
	{
		iVar5 = (iVar5 - 1);
	}
	else
	{
		iVar5 = func_162(iParam0, 0);
		iVar6 = iVar2;
	}
	ped::set_ped_component_variation(iParam0, 8, iVar5, iVar6, ped::get_ped_palette_variation(iParam0, 8));
}

var func_162(int iParam0, int iParam1)//Position - 0x22F82
{
	struct<4> Var0;
	int iVar17;
	
	iVar17 = entity::get_entity_model(iParam0) == joaat("mp_m_freemode_01");
	Var0.f_3 = -1;
	if (iVar17)
	{
		if (iParam1)
		{
			dlc1::get_shop_ped_component(-367850957, &Var0);
		}
		else
		{
			dlc1::get_shop_ped_component(1241116144, &Var0);
		}
	}
	else if (iParam1)
	{
		dlc1::get_shop_ped_component(555191698, &Var0);
	}
	else
	{
		dlc1::get_shop_ped_component(-972757995, &Var0);
	}
	return Var0.f_3;
}

bool func_163(int iParam0, int iParam1, var uParam2)//Position - 0x22FE5
{
	int iVar0;
	int iVar1;
	var uVar2;
	int iVar3;
	
	iVar0 = dlc1::_0xC17AD0E5752BECDA(iParam0);
	iVar1 = 0;
	while (iVar1 < iVar0)
	{
		dlc1::get_variant_component(iParam0, iVar1, uParam2, &uVar2, &iVar3);
		if (iVar3 == iParam1)
		{
			if (*uParam2 != 0 && *uParam2 != 1849449579)
			{
				return true;
			}
		}
		iVar1++;
	}
	return false;
}

bool func_164(int iParam0, int iParam1, int iParam2, int iParam3)//Position - 0x23038
{
	switch (iParam0)
	{
		case joaat("mp_m_freemode_01"):
			switch (iParam1)
			{
				case 14:
					if (iParam3 == -1)
					{
						iParam3 = func_158(iParam0, iParam2, 14, 3);
					}
					if ((iParam2 >= 131 && iParam2 <= 154) || (iParam2 >= 327 && dlc1::_0x341DE7ED1D2A1BFD(iParam3, -1033433901, 1)))
					{
						return true;
					}
					break;
			}
			break;
		
		case joaat("mp_f_freemode_01"):
			switch (iParam1)
			{
				case 14:
					if (iParam3 == -1)
					{
						iParam3 = func_158(iParam0, iParam2, 14, 4);
					}
					if ((iParam2 >= 131 && iParam2 <= 154) || (iParam2 >= 327 && dlc1::_0x341DE7ED1D2A1BFD(iParam3, -1033433901, 1)))
					{
						return true;
					}
					break;
			}
			break;
	}
	return false;
}

int func_165(int iParam0, int iParam1, int iParam2, int iParam3, int iParam4, int iParam5)//Position - 0x23106
{
	int iVar0;
	int iVar1;
	int iVar2;
	int iVar3;
	int iVar4;
	int iVar5;
	int iVar6;
	int iVar7;
	int iVar8;
	int iVar9;
	int iVar10;
	int iVar11;
	int iVar12;
	int iVar13;
	int iVar14;
	int iVar15;
	int iVar16;
	int iVar17;
	int iVar18;
	int iVar19;
	int iVar20;
	int iVar21;
	int iVar22;
	int iVar23;
	int iVar24;
	int iVar25;
	int iVar26;
	int iVar27;
	int iVar28;
	int iVar29;
	int iVar30;
	int iVar31;
	int iVar32;
	int iVar33;
	int iVar34;
	int iVar35;
	int iVar36;
	int iVar37;
	int iVar38;
	int iVar39;
	int iVar40;
	int iVar41;
	int iVar42;
	int iVar43;
	int iVar44;
	int iVar45;
	int iVar46;
	int iVar47;
	int iVar48;
	int iVar49;
	int iVar50;
	int iVar51;
	int iVar52;
	int iVar53;
	int iVar54;
	int iVar55;
	int iVar56;
	int iVar57;
	int iVar58;
	int iVar59;
	int iVar60;
	int iVar61;
	int iVar62;
	int iVar63;
	int iVar64;
	int iVar65;
	int iVar66;
	int iVar67;
	int iVar68;
	int iVar69;
	int iVar70;
	int iVar71;
	int iVar72;
	int iVar73;
	int iVar74;
	int iVar75;
	int iVar76;
	int iVar77;
	int iVar78;
	int iVar79;
	int iVar80;
	int iVar81;
	int iVar82;
	int iVar83;
	int iVar84;
	int iVar85;
	int iVar86;
	int iVar87;
	int iVar88;
	int iVar89;
	int iVar90;
	int iVar91;
	int iVar92;
	int iVar93;
	int iVar94;
	int iVar95;
	int iVar96;
	int iVar97;
	int iVar98;
	int iVar99;
	int iVar100;
	int iVar101;
	int iVar102;
	int iVar103;
	int iVar104;
	int iVar105;
	int iVar106;
	int iVar107;
	int iVar108;
	int iVar109;
	int iVar110;
	int iVar111;
	int iVar112;
	int iVar113;
	int iVar114;
	int iVar115;
	int iVar116;
	int iVar117;
	int iVar118;
	int iVar119;
	int iVar120;
	int iVar121;
	int iVar122;
	int iVar123;
	int iVar124;
	int iVar125;
	int iVar126;
	int iVar127;
	int iVar128;
	int iVar129;
	int iVar130;
	int iVar131;
	int iVar132;
	int iVar133;
	int iVar134;
	int iVar135;
	int iVar136;
	int iVar137;
	int iVar138;
	int iVar139;
	int iVar140;
	int iVar141;
	int iVar142;
	int iVar143;
	int iVar144;
	int iVar145;
	int iVar146;
	int iVar147;
	int iVar148;
	int iVar149;
	int iVar150;
	int iVar151;
	int iVar152;
	int iVar153;
	int iVar154;
	int iVar155;
	int iVar156;
	int iVar157;
	int iVar158;
	int iVar159;
	int iVar160;
	int iVar161;
	int iVar162;
	int iVar163;
	int iVar164;
	int iVar165;
	int iVar166;
	int iVar167;
	int iVar168;
	int iVar169;
	int iVar170;
	int iVar171;
	int iVar172;
	int iVar173;
	int iVar174;
	int iVar175;
	int iVar176;
	int iVar177;
	int iVar178;
	int iVar179;
	int iVar180;
	int iVar181;
	int iVar182;
	int iVar183;
	int iVar184;
	int iVar185;
	int iVar186;
	int iVar187;
	int iVar188;
	int iVar189;
	int iVar190;
	int iVar191;
	int iVar192;
	int iVar193;
	int iVar194;
	int iVar195;
	int iVar196;
	int iVar197;
	int iVar198;
	int iVar199;
	int iVar200;
	int iVar201;
	int iVar202;
	int iVar203;
	int iVar204;
	int iVar205;
	int iVar206;
	int iVar207;
	int iVar208;
	
	iVar0 = -99;
	if (iParam4 == 2)
	{
		func_166(iParam0, iParam1, iParam2, iParam3, &iVar0);
	}
	else if (iParam1 == joaat("mp_m_freemode_01"))
	{
		if (iParam4 == 3)
		{
			if (iParam2 == 11)
			{
				if (iParam3 <= 15)
				{
					iVar0 = 0;
				}
				else if (iParam3 <= 31)
				{
					iVar0 = 0;
				}
				else if (iParam3 <= 47)
				{
					iVar0 = 2;
				}
				else if (iParam3 <= 63)
				{
					iVar0 = 1;
				}
				else if (iParam3 <= 79)
				{
					iVar0 = 1;
				}
				else if (iParam3 <= 95)
				{
					iVar0 = 5;
				}
				else if (iParam3 <= 107)
				{
					iVar0 = 12;
				}
				else if (iParam3 <= 123)
				{
					iVar0 = 1;
				}
				else if (iParam3 <= 139)
				{
					iVar0 = 8;
				}
				else if (iParam3 <= 155)
				{
					iVar0 = 0;
				}
				else if (iParam3 <= 171)
				{
					iVar0 = 1;
				}
				else if (iParam3 <= 187)
				{
					iVar2 = func_159(iParam0, 8);
					iVar3 = func_158(iParam1, iVar2, 8, 3);
					iVar4 = func_149(iVar3);
					if (((((iVar2 >= 96 && iVar2 <= 111) || (iVar2 >= 112 && iVar2 <= 127)) || (iVar2 >= 241 && iVar4 == 6)) || (iVar2 >= 241 && iVar4 == 7)) || (iVar2 >= 241 && dlc1::_0x341DE7ED1D2A1BFD(iVar3, 1965569012, 0)))
					{
						iVar0 = -99;
					}
					else
					{
						iVar0 = 11;
					}
				}
				else if (iParam3 <= 203)
				{
					iVar0 = 12;
				}
				else if (iParam3 <= 219)
				{
					iVar0 = 11;
				}
				else if (iParam3 <= 235)
				{
					iVar0 = 4;
				}
				else if (iParam3 == 236)
				{
					iVar0 = 15;
				}
				else if (iParam3 >= 237)
				{
					iVar5 = func_158(iParam1, iParam3, 11, 3);
					if (iVar5 != -1)
					{
						iVar6 = true;
						if (dlc1::_0x341DE7ED1D2A1BFD(iVar5, 19149565, 0))
						{
							iVar2 = func_159(iParam0, 8);
							iVar7 = func_158(iParam1, iVar2, 8, 3);
							iVar8 = func_149(iVar7);
							if (((((iVar2 >= 96 && iVar2 <= 111) || (iVar2 >= 112 && iVar2 <= 127)) || (iVar2 >= 241 && iVar8 == 6)) || (iVar2 >= 241 && iVar8 == 7)) || (iVar2 >= 241 && dlc1::_0x341DE7ED1D2A1BFD(iVar7, 1965569012, 0)))
							{
								iVar6 = false;
							}
						}
						if (iVar6)
						{
							iVar9 = dlc1::_get_num_forced_components(iVar5);
							iVar10 = 0;
							while (iVar10 < iVar9)
							{
								dlc1::get_forced_component(iVar5, iVar10, &iVar11, &iVar12, &iVar13);
								if (iVar13 == 3)
								{
									if (iVar11 != 0 && iVar11 != 1849449579)
									{
										iVar0 = func_75(iParam1, iVar11, 3, 3);
									}
									else
									{
										iVar0 = iVar12;
									}
									iVar10 = iVar9 + 1;
								}
								iVar10++;
							}
						}
					}
				}
			}
			else if (iParam2 == 8)
			{
				if (iParam3 <= 15)
				{
					iVar0 = 1;
				}
				else if (iParam3 <= 31)
				{
					iVar0 = 1;
				}
				else if (iParam3 <= 47)
				{
					iVar0 = -99;
				}
				else if (iParam3 <= 63)
				{
					iVar0 = 12;
				}
				else if (iParam3 <= 79)
				{
					iVar0 = 12;
				}
				else if (iParam3 <= 95)
				{
					iVar0 = 6;
				}
				else if (iParam3 <= 111)
				{
					iVar0 = 11;
				}
				else if (iParam3 <= 127)
				{
					iVar0 = 11;
				}
				else if (iParam3 <= 143)
				{
					iVar0 = 1;
				}
				else if (iParam3 <= 159)
				{
					iVar0 = 1;
				}
				else if (iParam3 <= 175)
				{
					iVar0 = 4;
				}
				else if (iParam3 <= 191)
				{
					iVar0 = 12;
				}
				else if (iParam3 <= 207)
				{
					iVar0 = 1;
				}
				else if (iParam3 <= 223)
				{
					iVar0 = 1;
				}
				else if (iParam3 <= 239)
				{
					iVar0 = -99;
				}
				else if (iParam3 == 240)
				{
					iVar0 = 14;
				}
				else if (iParam3 >= 241)
				{
					iVar14 = func_158(iParam1, iParam3, 8, 3);
					if (iVar14 != -1)
					{
						iVar15 = dlc1::_get_num_forced_components(iVar14);
						iVar16 = 0;
						while (iVar16 < iVar15)
						{
							dlc1::get_forced_component(iVar14, iVar16, &iVar17, &iVar18, &iVar19);
							if (iVar19 == 3)
							{
								if (iVar17 != 0 && iVar17 != 1849449579)
								{
									iVar0 = func_75(iParam1, iVar17, 3, 3);
								}
								else
								{
									iVar0 = iVar18;
									iVar16 = iVar15 + 1;
								}
							}
							iVar16++;
						}
					}
				}
			}
			else if (iParam2 == 10)
			{
				if (iParam3 >= 7)
				{
					iVar20 = func_158(iParam1, iParam3, 10, 3);
					if (iVar20 != -1)
					{
						iVar21 = dlc1::_get_num_forced_components(iVar20);
						iVar22 = 0;
						while (iVar22 < iVar21)
						{
							dlc1::get_forced_component(iVar20, iVar22, &iVar23, &iVar24, &iVar25);
							if (iVar25 == 3)
							{
								if (iVar23 != 0 && iVar23 != 1849449579)
								{
									iVar0 = func_75(iParam1, iVar23, 3, 3);
								}
								else
								{
									iVar0 = iVar24;
									iVar22 = iVar21 + 1;
								}
							}
							iVar22++;
						}
					}
				}
			}
		}
		else if (iParam4 == 8)
		{
			if (iParam2 == 11)
			{
				iVar26 = -1;
				if (iParam3 >= 237)
				{
					iVar26 = func_149(func_158(iParam1, iParam3, 11, 3));
				}
				if (iParam3 <= 15)
				{
					iVar0 = 240;
				}
				else if (iParam3 <= 31)
				{
					iVar0 = 240;
				}
				else if (iParam3 <= 47)
				{
					iVar0 = 240;
				}
				else if (iParam3 <= 63)
				{
					iVar0 = -99;
				}
				else if (iParam3 <= 79)
				{
					iVar0 = -99;
				}
				else if (iParam3 <= 95)
				{
					iVar0 = 240;
				}
				else if (iParam3 <= 107)
				{
					iVar0 = -99;
				}
				else if (iParam3 <= 123)
				{
					iVar0 = -99;
				}
				else if (iParam3 <= 139)
				{
					iVar0 = 240;
				}
				else if (iParam3 <= 155)
				{
					iVar0 = 240;
				}
				else if (iParam3 <= 171)
				{
					iVar0 = -99;
				}
				else if (iParam3 <= 187 || iVar26 == 11)
				{
					iVar2 = func_159(iParam0, 8);
					iVar27 = func_158(iParam1, iVar2, 8, 3);
					iVar28 = func_149(iVar27);
					if (((((iVar2 >= 96 && iVar2 <= 111) || (iVar2 >= 112 && iVar2 <= 127)) || (iVar2 >= 241 && iVar28 == 6)) || (iVar2 >= 241 && iVar28 == 7)) || (iVar2 >= 241 && dlc1::_0x341DE7ED1D2A1BFD(iVar27, 1965569012, 0)))
					{
					}
					else
					{
						iVar0 = 112;
					}
				}
				else if (iParam3 <= 203)
				{
					iVar0 = 240;
				}
				else if (iParam3 <= 219)
				{
					iVar0 = 240;
				}
				else if (iParam3 <= 235)
				{
					iVar0 = 240;
				}
				else if (iParam3 <= 236)
				{
					iVar0 = 240;
				}
				else if (iParam3 >= 237)
				{
					iVar29 = func_158(iParam1, iParam3, 11, 3);
					if (iVar29 != -1)
					{
						iVar30 = dlc1::_get_num_forced_components(iVar29);
						iVar31 = 0;
						while (iVar31 < iVar30)
						{
							dlc1::get_forced_component(iVar29, iVar31, &iVar32, &iVar33, &iVar34);
							if (iVar34 == 8)
							{
								if (iVar32 != 0 && iVar32 != 1849449579)
								{
									iVar0 = func_75(iParam1, iVar32, 8, 3);
								}
								else
								{
									iVar0 = iVar33;
									iVar31 = iVar30 + 1;
								}
							}
							iVar31++;
						}
					}
				}
			}
			else if (iParam2 == 7)
			{
				iVar35 = -1;
				iVar36 = -1;
				if (iParam3 >= 92)
				{
					iVar36 = func_158(iParam1, iParam3, 7, 3);
					iVar35 = func_149(iVar36);
				}
				if (((((((((iParam3 >= 41 && iParam3 <= 56) || (iParam3 >= 57 && iParam3 <= 72)) || (iParam3 >= 73 && iParam3 <= 88)) || iVar35 == 10) || iVar35 == 11) || iVar35 == 12) || (iParam3 >= 92 && dlc1::_0x341DE7ED1D2A1BFD(iVar36, -1950939707, 0))) || (iParam3 >= 92 && dlc1::_0x341DE7ED1D2A1BFD(iVar36, -1371423804, 0))) || (iParam3 >= 92 && dlc1::_0x341DE7ED1D2A1BFD(iVar36, -920534092, 0)))
				{
					iVar2 = func_159(iParam0, 8);
					if (iVar2 >= 48 && iVar2 <= 63)
					{
						iVar1 = (iVar2 - 48);
						iVar0 = (64 + iVar1);
					}
					else if (iVar2 >= 112 && iVar2 <= 127)
					{
						iVar1 = (iVar2 - 112);
						iVar0 = (96 + iVar1);
					}
					else if (iVar2 >= 176 && iVar2 <= 191)
					{
						iVar1 = (iVar2 - 176);
						iVar0 = (160 + iVar1);
					}
					else if (iVar2 >= 241)
					{
						iVar37 = func_158(iParam1, iVar2, 8, 3);
						iVar38 = func_149(iVar37);
						iVar39 = dlc1::_0x341DE7ED1D2A1BFD(iVar37, 651155766, 0);
						if (((iVar38 == 3 || iVar38 == 7) || iVar38 == 11) || dlc1::_0x341DE7ED1D2A1BFD(iVar37, 1553766533, 0))
						{
							if (iVar37 != -1)
							{
								iVar40 = dlc1::_0xC17AD0E5752BECDA(iVar37);
								iVar41 = 0;
								while (iVar41 < iVar40)
								{
									dlc1::get_variant_component(iVar37, iVar41, &iVar42, &iVar43, &iVar44);
									if ((iVar44 == 8 && !iVar39) || (iVar44 == 10 && iVar39))
									{
										if (iVar42 != 0 && iVar42 != 1849449579)
										{
											iVar0 = func_75(iParam1, iVar42, 8, 3);
										}
										else
										{
											iVar0 = iVar43;
										}
										iVar41 = iVar40 + 1;
									}
									iVar41++;
								}
							}
						}
					}
				}
				else if (((iParam3 >= 92 && dlc1::_0x341DE7ED1D2A1BFD(iVar36, -378906828, 0)) || (iParam3 >= 92 && dlc1::_0x341DE7ED1D2A1BFD(iVar36, -695703461, 0))) || (iParam3 >= 92 && dlc1::_0x341DE7ED1D2A1BFD(iVar36, -108328099, 0)))
				{
					iVar45 = func_158(iParam1, iVar2, 8, 3);
					iVar46 = func_149(iVar45);
					iVar47 = dlc1::_0x341DE7ED1D2A1BFD(iVar45, 651155766, 0);
					if (((iVar46 == 3 || iVar46 == 7) || iVar46 == 11) || dlc1::_0x341DE7ED1D2A1BFD(iVar45, 1553766533, 0))
					{
						if (iVar45 != -1)
						{
							iVar48 = dlc1::_0xC17AD0E5752BECDA(iVar45);
							iVar49 = 0;
							while (iVar49 < iVar48)
							{
								dlc1::get_variant_component(iVar45, iVar49, &iVar50, &iVar51, &iVar52);
								if ((iVar52 == 8 && !iVar47) || (iVar52 == 10 && iVar47))
								{
									if (iVar50 != 0 && iVar50 != 1849449579)
									{
										iVar0 = func_75(iParam1, iVar50, 8, 3);
									}
									else
									{
										iVar0 = iVar51;
									}
									iVar49 = iVar48 + 1;
								}
								iVar49++;
							}
						}
					}
				}
				else if (iParam3 >= 92)
				{
					iVar53 = func_158(iParam1, iParam3, 7, 3);
					if (iVar53 != -1)
					{
						iVar54 = dlc1::_get_num_forced_components(iVar53);
						iVar55 = 0;
						while (iVar55 < iVar54)
						{
							dlc1::get_forced_component(iVar53, iVar55, &iVar56, &iVar57, &iVar58);
							if (iVar58 == 8)
							{
								if (iVar56 != 0 && iVar56 != 1849449579)
								{
									iVar0 = func_75(iParam1, iVar56, 8, 3);
								}
								else
								{
									iVar0 = iVar57;
									iVar55 = iVar54 + 1;
								}
							}
							iVar55++;
						}
					}
				}
			}
			else if (iParam2 == 10)
			{
				if (iParam3 >= 7)
				{
					iVar59 = func_158(iParam1, iParam3, 10, 3);
					if (iVar59 != -1)
					{
						iVar60 = dlc1::_get_num_forced_components(iVar59);
						iVar61 = 0;
						while (iVar61 < iVar60)
						{
							dlc1::get_forced_component(iVar59, iVar61, &iVar62, &iVar63, &iVar64);
							if (iVar64 == 8)
							{
								if (iVar62 != 0 && iVar62 != 1849449579)
								{
									iVar0 = func_75(iParam1, iVar62, 8, 3);
								}
								else
								{
									iVar0 = iVar63;
									iVar61 = iVar60 + 1;
								}
							}
							iVar61++;
						}
					}
				}
			}
		}
		else if (iParam4 == 11)
		{
			if (iParam2 == 7)
			{
				iVar65 = -1;
				iVar66 = -1;
				if (iParam3 >= 92)
				{
					iVar66 = func_158(iParam1, iParam3, 7, 3);
					iVar65 = func_149(iVar66);
				}
				if (((((((iParam3 >= 41 && iParam3 <= 56) || (iParam3 >= 57 && iParam3 <= 72)) || (iParam3 >= 73 && iParam3 <= 88)) || iVar65 == 10) || iVar65 == 11) || iVar65 == 12) || dlc1::_0x341DE7ED1D2A1BFD(iVar66, -920534092, 0))
				{
					iVar67 = func_159(iParam0, 11);
					if (iVar67 >= 237)
					{
						iVar68 = func_158(iParam1, iVar67, 11, 3);
						if (dlc1::_0x341DE7ED1D2A1BFD(iVar68, 1847239679, 0) && dlc1::_0x341DE7ED1D2A1BFD(iVar68, 1553766533, 0))
						{
							if (iVar68 != -1)
							{
								iVar69 = dlc1::_0xC17AD0E5752BECDA(iVar68);
								iVar70 = 0;
								while (iVar70 < iVar69)
								{
									dlc1::get_variant_component(iVar68, iVar70, &iVar71, &iVar72, &iVar73);
									if (iVar73 == 11)
									{
										if (iVar71 != 0 && iVar71 != 1849449579)
										{
											iVar0 = func_75(iParam1, iVar71, 11, 3);
										}
										else
										{
											iVar0 = iVar72;
										}
										iVar70 = iVar69 + 1;
									}
									iVar70++;
								}
							}
						}
					}
				}
			}
			else if (iParam2 == 10)
			{
				if (iParam3 >= 7)
				{
					iVar74 = func_158(iParam1, iParam3, 10, 3);
					if (iVar74 != -1)
					{
						iVar75 = dlc1::_get_num_forced_components(iVar74);
						iVar76 = 0;
						while (iVar76 < iVar75)
						{
							dlc1::get_forced_component(iVar74, iVar76, &iVar77, &iVar78, &iVar79);
							if (iVar79 == 11)
							{
								if (iVar77 != 0 && iVar77 != 1849449579)
								{
									iVar0 = func_75(iParam1, iVar77, 11, 3);
								}
								else
								{
									iVar0 = iVar78;
									iVar76 = iVar75 + 1;
								}
							}
							iVar76++;
						}
					}
				}
			}
		}
		else if (iParam4 == 7)
		{
			if (iParam2 == 11)
			{
				iVar80 = func_159(iParam0, 11);
				if (iVar80 >= 237)
				{
					iVar81 = func_158(iParam1, iVar80, 11, 3);
					if (dlc1::_0x341DE7ED1D2A1BFD(iVar81, 1847239679, 0) && dlc1::_0x341DE7ED1D2A1BFD(iVar81, 1553766533, 0))
					{
						iVar81 = func_158(iParam1, iParam3, 11, 3);
						if (iVar81 != -1)
						{
							iVar82 = dlc1::_get_num_forced_components(iVar81);
							iVar83 = 0;
							while (iVar83 < iVar82)
							{
								dlc1::get_forced_component(iVar81, iVar83, &iVar84, &iVar85, &iVar86);
								if (iVar86 == 7)
								{
									if (iVar84 != 0 && iVar84 != 1849449579)
									{
										iVar0 = func_75(iParam1, iVar84, 7, 3);
									}
									else
									{
										iVar0 = iVar85;
										iVar83 = iVar82 + 1;
									}
								}
								iVar83++;
							}
						}
					}
				}
			}
			else if (iParam2 == 14)
			{
				if (iParam3 >= 327)
				{
					iVar87 = func_158(iParam1, iParam3, 14, 3);
					if (iVar87 != -1)
					{
						iVar88 = dlc1::_get_num_forced_components(iVar87);
						iVar89 = 0;
						while (iVar89 < iVar88)
						{
							dlc1::get_forced_component(iVar87, iVar89, &iVar90, &iVar91, &iVar92);
							if (iVar92 == 7)
							{
								if (iVar90 != 0 && iVar90 != 1849449579)
								{
									iVar0 = func_75(iParam1, iVar90, 7, 3);
								}
								else
								{
									iVar0 = iVar91;
									iVar89 = iVar88 + 1;
								}
							}
							iVar89++;
						}
					}
				}
			}
		}
		else if (iParam4 == 4)
		{
			if (iParam2 == 11)
			{
				if (iParam3 >= 237)
				{
					iVar93 = func_158(iParam1, iParam3, 11, 3);
					if (iVar93 != -1)
					{
						iVar94 = dlc1::_get_num_forced_components(iVar93);
						iVar95 = 0;
						while (iVar95 < iVar94)
						{
							dlc1::get_forced_component(iVar93, iVar95, &iVar96, &iVar97, &iVar98);
							if (iVar98 == 4)
							{
								if (iVar96 != 0 && iVar96 != 1849449579)
								{
									iVar0 = func_75(iParam1, iVar96, 4, 3);
								}
								else
								{
									iVar0 = iVar97;
									iVar95 = iVar94 + 1;
								}
							}
							iVar95++;
						}
					}
				}
			}
		}
		else if (iParam4 == 10)
		{
			if (iParam2 == 11)
			{
				if (iParam3 >= 237)
				{
					iVar99 = func_158(iParam1, iParam3, 11, 3);
					if (iVar99 != -1)
					{
						iVar100 = dlc1::_get_num_forced_components(iVar99);
						iVar101 = 0;
						while (iVar101 < iVar100)
						{
							dlc1::get_forced_component(iVar99, iVar101, &iVar102, &iVar103, &iVar104);
							if (iVar104 == 10)
							{
								if (iVar102 != 0 && iVar102 != 1849449579)
								{
									iVar0 = func_75(iParam1, iVar102, 10, 3);
								}
								else
								{
									iVar0 = iVar103;
									iVar101 = iVar100 + 1;
								}
							}
							iVar101++;
						}
					}
				}
			}
		}
		else if (iParam4 == 6)
		{
			if (iParam2 == 4)
			{
				if (iParam3 >= 256)
				{
					iVar105 = func_158(iParam1, iParam3, 4, 3);
					if (iVar105 != -1)
					{
						iVar106 = dlc1::_get_num_forced_components(iVar105);
						iVar107 = 0;
						while (iVar107 < iVar106)
						{
							dlc1::get_forced_component(iVar105, iVar107, &iVar108, &iVar109, &iVar110);
							if (iVar110 == 6)
							{
								if (iVar108 != 0 && iVar108 != 1849449579)
								{
									iVar0 = func_75(iParam1, iVar108, 6, 3);
								}
								else
								{
									iVar0 = iVar109;
									iVar107 = iVar106 + 1;
								}
							}
							iVar107++;
						}
					}
				}
			}
			else if (iParam2 == 11)
			{
				if (iParam3 >= 237)
				{
					iVar111 = func_158(iParam1, iParam3, 11, 3);
					if (iVar111 != -1)
					{
						iVar112 = dlc1::_get_num_forced_components(iVar111);
						iVar113 = 0;
						while (iVar113 < iVar112)
						{
							dlc1::get_forced_component(iVar111, iVar113, &iVar114, &iVar115, &iVar116);
							if (iVar116 == 6)
							{
								if (iVar114 != 0 && iVar114 != 1849449579)
								{
									iVar0 = func_75(iParam1, iVar114, 6, 3);
								}
								else
								{
									iVar0 = iVar115;
									iVar113 = iVar112 + 1;
								}
							}
							iVar113++;
						}
					}
				}
			}
		}
		else if (iParam4 == 14)
		{
			if (iParam2 == 1)
			{
				if (iParam3 >= 26)
				{
					iVar117 = func_158(iParam1, iParam3, 1, 3);
					if (iVar117 != -1)
					{
						iVar118 = dlc1::_0x017568A8182D98A6(iVar117);
						iVar119 = 0;
						while (iVar119 < iVar118)
						{
							dlc1::_0xE1CA84EBF72E691D(iVar117, iVar119, &iVar120, &iVar121, &iVar122);
							if (iVar122 == iParam5)
							{
								if (iVar120 != 0 && iVar120 != 1849449579)
								{
									iVar0 = func_75(iParam1, iVar120, 14, 3);
									iVar119 = iVar118 + 1;
								}
								else
								{
									iVar0 = iVar121;
									iVar119 = iVar118 + 1;
								}
							}
							iVar119++;
						}
					}
				}
			}
			else if (iParam2 == 11)
			{
				if (iParam3 >= 237)
				{
					iVar123 = func_158(iParam1, iParam3, 11, 3);
					if (iVar123 != -1)
					{
						iVar124 = dlc1::_0x017568A8182D98A6(iVar123);
						iVar125 = 0;
						while (iVar125 < iVar124)
						{
							dlc1::_0xE1CA84EBF72E691D(iVar123, iVar125, &iVar126, &iVar127, &iVar128);
							if (iVar128 == iParam5)
							{
								if (iVar126 != 0 && iVar126 != 1849449579)
								{
									iVar0 = func_75(iParam1, iVar126, 14, 3);
									iVar125 = iVar124 + 1;
								}
								else
								{
									iVar0 = iVar127;
									iVar125 = iVar124 + 1;
								}
							}
							iVar125++;
						}
					}
				}
			}
		}
	}
	else if (iParam1 == joaat("mp_f_freemode_01"))
	{
		if (iParam4 == 3)
		{
			if (iParam2 == 11)
			{
				if (iParam3 <= 15)
				{
					iVar0 = 0;
				}
				else if (iParam3 <= 31)
				{
					iVar0 = 5;
				}
				else if (iParam3 <= 47)
				{
					iVar0 = 2;
				}
				else if (iParam3 <= 63)
				{
					iVar0 = 3;
				}
				else if (iParam3 <= 79)
				{
					iVar0 = 4;
				}
				else if (iParam3 <= 95)
				{
					iVar0 = 4;
				}
				else if (iParam3 <= 111)
				{
					iVar0 = 5;
				}
				else if (iParam3 <= 127)
				{
					iVar0 = 6;
				}
				else if (iParam3 <= 143)
				{
					iVar0 = 5;
				}
				else if (iParam3 <= 159)
				{
					iVar0 = 9;
				}
				else if (iParam3 <= 175)
				{
					iVar0 = 7;
				}
				else if (iParam3 <= 191)
				{
					iVar0 = 11;
				}
				else if (iParam3 <= 207)
				{
					iVar0 = 12;
				}
				else if (iParam3 <= 223)
				{
					iVar0 = 4;
				}
				else if (iParam3 <= 239)
				{
					iVar0 = 14;
				}
				else if (iParam3 <= 255)
				{
					iVar0 = 15;
				}
				else if (iParam3 >= 256)
				{
					iVar129 = func_158(iParam1, iParam3, 11, 4);
					if (iVar129 != -1)
					{
						iVar130 = dlc1::_get_num_forced_components(iVar129);
						iVar131 = 0;
						while (iVar131 < iVar130)
						{
							dlc1::get_forced_component(iVar129, iVar131, &iVar132, &iVar133, &iVar134);
							if (iVar134 == 3)
							{
								if (iVar132 != 0 && iVar132 != 1849449579)
								{
									iVar0 = func_75(iParam1, iVar132, 3, 4);
								}
								else
								{
									iVar0 = iVar133;
									iVar131 = iVar130 + 1;
								}
							}
							iVar131++;
						}
					}
				}
			}
			else if (iParam2 == 10)
			{
				if (iParam3 >= 6)
				{
					iVar135 = func_158(iParam1, iParam3, 10, 4);
					if (iVar135 != -1)
					{
						iVar136 = dlc1::_get_num_forced_components(iVar135);
						iVar137 = 0;
						while (iVar137 < iVar136)
						{
							dlc1::get_forced_component(iVar135, iVar137, &iVar138, &iVar139, &iVar140);
							if (iVar140 == 3)
							{
								if (iVar138 != 0 && iVar138 != 1849449579)
								{
									iVar0 = func_75(iParam1, iVar138, 3, 4);
								}
								else
								{
									iVar0 = iVar139;
									iVar137 = iVar136 + 1;
								}
							}
							iVar137++;
						}
					}
				}
			}
		}
		else if (iParam4 == 8)
		{
			if (iParam2 == 11)
			{
				if (iParam3 <= 15)
				{
					iVar0 = 33;
				}
				else if (iParam3 <= 31)
				{
					iVar0 = -99;
				}
				else if (iParam3 <= 47)
				{
					iVar0 = 33;
				}
				else if (iParam3 <= 63)
				{
					iVar0 = 33;
				}
				else if (iParam3 <= 79)
				{
					iVar0 = 33;
				}
				else if (iParam3 <= 95)
				{
					iVar0 = 33;
				}
				else if (iParam3 <= 111)
				{
					iVar0 = -99;
				}
				else if (iParam3 <= 127)
				{
					iVar0 = -99;
				}
				else if (iParam3 <= 143)
				{
					iVar0 = -99;
				}
				else if (iParam3 <= 159)
				{
					iVar0 = 33;
				}
				else if (iParam3 <= 175)
				{
					iVar0 = -99;
				}
				else if (iParam3 <= 191)
				{
					iVar0 = 33;
				}
				else if (iParam3 <= 207)
				{
					iVar0 = 33;
				}
				else if (iParam3 <= 223)
				{
					iVar1 = (iParam3 - 208);
					iVar0 = (103 + iVar1);
				}
				else if (iParam3 <= 239)
				{
					iVar0 = 33;
				}
				else if (iParam3 <= 255)
				{
					iVar0 = 33;
				}
				else if (iParam3 >= 256)
				{
					iVar141 = func_158(iParam1, iParam3, 11, 4);
					if (iVar141 != -1)
					{
						iVar142 = dlc1::_get_num_forced_components(iVar141);
						iVar143 = 0;
						while (iVar143 < iVar142)
						{
							dlc1::get_forced_component(iVar141, iVar143, &iVar144, &iVar145, &iVar146);
							if (iVar146 == 8)
							{
								if (iVar144 != 0 && iVar144 != 1849449579)
								{
									iVar0 = func_75(iParam1, iVar144, 8, 4);
								}
								else
								{
									iVar0 = iVar145;
									iVar143 = iVar142 + 1;
								}
							}
							iVar143++;
						}
					}
				}
			}
			else if (iParam2 == 7)
			{
				iVar147 = -1;
				if (iParam3 >= 55)
				{
					iVar147 = func_158(iParam1, iParam3, 7, 4);
				}
				if ((iVar147 != -1 && dlc1::_0x341DE7ED1D2A1BFD(iVar147, -920534092, 0)) || (iVar147 != -1 && dlc1::_0x341DE7ED1D2A1BFD(iVar147, 1537081084, 0)))
				{
					iVar148 = dlc1::get_hash_name_for_component(iParam0, 8, ped::get_ped_drawable_variation(iParam0, 8), ped::get_ped_texture_variation(iParam0, 8));
					iVar149 = false;
					if (dlc1::_0x341DE7ED1D2A1BFD(iVar147, -378906828, 0) || dlc1::_0x341DE7ED1D2A1BFD(iVar147, -108328099, 0))
					{
						if (dlc1::_0x341DE7ED1D2A1BFD(iVar148, -1914383230, 0))
						{
							iVar149 = true;
						}
					}
					else if (dlc1::_0x341DE7ED1D2A1BFD(iVar148, 1553766533, 0))
					{
						iVar149 = true;
					}
					if (iVar149)
					{
						iVar150 = dlc1::_0xC17AD0E5752BECDA(iVar148);
						iVar151 = 0;
						while (iVar151 < iVar150)
						{
							dlc1::get_variant_component(iVar148, iVar151, &iVar152, &iVar153, &iVar154);
							if (iVar154 == 8)
							{
								if (iVar152 != 0 && iVar152 != 1849449579)
								{
									iVar0 = func_75(iParam1, iVar152, 8, 4);
								}
								else
								{
									iVar0 = iVar153;
								}
								iVar151 = iVar150 + 1;
							}
							iVar151++;
						}
					}
				}
			}
			else if (iParam2 == 10)
			{
				if (iParam3 >= 6)
				{
					iVar155 = func_158(iParam1, iParam3, 10, 4);
					if (iVar155 != -1)
					{
						iVar156 = dlc1::_get_num_forced_components(iVar155);
						iVar157 = 0;
						while (iVar157 < iVar156)
						{
							dlc1::get_forced_component(iVar155, iVar157, &iVar158, &iVar159, &iVar160);
							if (iVar160 == 8)
							{
								if (iVar158 != 0 && iVar158 != 1849449579)
								{
									iVar0 = func_75(iParam1, iVar158, 8, 4);
								}
								else
								{
									iVar0 = iVar159;
									iVar157 = iVar156 + 1;
								}
							}
							iVar157++;
						}
					}
				}
			}
		}
		else if (iParam4 == 6)
		{
			if (iParam2 == 4)
			{
				if (iParam3 >= 256)
				{
					iVar161 = func_158(iParam1, iParam3, 4, 4);
					if (iVar161 != -1)
					{
						iVar162 = dlc1::_get_num_forced_components(iVar161);
						iVar163 = 0;
						while (iVar163 < iVar162)
						{
							dlc1::get_forced_component(iVar161, iVar163, &iVar164, &iVar165, &iVar166);
							if (iVar166 == 6)
							{
								if (iVar164 != 0 && iVar164 != 1849449579)
								{
									iVar0 = func_75(iParam1, iVar164, 6, 4);
								}
								else
								{
									iVar0 = iVar165;
									iVar163 = iVar162 + 1;
								}
							}
							iVar163++;
						}
					}
				}
			}
			else if (iParam2 == 11)
			{
				if (iParam3 >= 256)
				{
					iVar167 = func_158(iParam1, iParam3, 11, 4);
					if (iVar167 != -1)
					{
						iVar168 = dlc1::_get_num_forced_components(iVar167);
						iVar169 = 0;
						while (iVar169 < iVar168)
						{
							dlc1::get_forced_component(iVar167, iVar169, &iVar170, &iVar171, &iVar172);
							if (iVar172 == 6)
							{
								if (iVar170 != 0 && iVar170 != 1849449579)
								{
									iVar0 = func_75(iParam1, iVar170, 6, 4);
								}
								else
								{
									iVar0 = iVar171;
									iVar169 = iVar168 + 1;
								}
							}
							iVar169++;
						}
					}
				}
			}
		}
		else if (iParam4 == 4)
		{
			if (iParam2 == 11)
			{
				if (iParam3 >= 256)
				{
					iVar173 = func_158(iParam1, iParam3, 11, 4);
					if (iVar173 != -1)
					{
						iVar174 = dlc1::_get_num_forced_components(iVar173);
						iVar175 = 0;
						while (iVar175 < iVar174)
						{
							dlc1::get_forced_component(iVar173, iVar175, &iVar176, &iVar177, &iVar178);
							if (iVar178 == 4)
							{
								if (iVar176 != 0 && iVar176 != 1849449579)
								{
									iVar0 = func_75(iParam1, iVar176, 4, 4);
								}
								else
								{
									iVar0 = iVar177;
									iVar175 = iVar174 + 1;
								}
							}
							iVar175++;
						}
					}
				}
			}
		}
		else if (iParam4 == 10)
		{
			if (iParam2 == 11)
			{
				if (iParam3 >= 256)
				{
					iVar179 = func_158(iParam1, iParam3, 11, 4);
					if (iVar179 != -1)
					{
						iVar180 = dlc1::_get_num_forced_components(iVar179);
						iVar181 = 0;
						while (iVar181 < iVar180)
						{
							dlc1::get_forced_component(iVar179, iVar181, &iVar182, &iVar183, &iVar184);
							if (iVar184 == 10)
							{
								if (iVar182 != 0 && iVar182 != 1849449579)
								{
									iVar0 = func_75(iParam1, iVar182, 10, 4);
								}
								else
								{
									iVar0 = iVar183;
									iVar181 = iVar180 + 1;
								}
							}
							iVar181++;
						}
					}
				}
			}
		}
		else if (iParam4 == 11)
		{
			if (iParam2 == 10)
			{
				if (iParam3 >= 6)
				{
					iVar185 = func_158(iParam1, iParam3, 10, 4);
					if (iVar185 != -1)
					{
						iVar186 = dlc1::_get_num_forced_components(iVar185);
						iVar187 = 0;
						while (iVar187 < iVar186)
						{
							dlc1::get_forced_component(iVar185, iVar187, &iVar188, &iVar189, &iVar190);
							if (iVar190 == 11)
							{
								if (iVar188 != 0 && iVar188 != 1849449579)
								{
									iVar0 = func_75(iParam1, iVar188, 11, 4);
								}
								else
								{
									iVar0 = iVar189;
									iVar187 = iVar186 + 1;
								}
							}
							iVar187++;
						}
					}
				}
			}
		}
		else if (iParam4 == 7)
		{
			if (iParam2 == 14)
			{
				if (iParam3 >= 327)
				{
					iVar191 = func_158(iParam1, iParam3, 14, 4);
					if (iVar191 != -1)
					{
						iVar192 = dlc1::_get_num_forced_components(iVar191);
						iVar193 = 0;
						while (iVar193 < iVar192)
						{
							dlc1::get_forced_component(iVar191, iVar193, &iVar194, &iVar195, &iVar196);
							if (iVar196 == 7)
							{
								if (iVar194 != 0 && iVar194 != 1849449579)
								{
									iVar0 = func_75(iParam1, iVar194, 7, 4);
								}
								else
								{
									iVar0 = iVar195;
									iVar193 = iVar192 + 1;
								}
							}
							iVar193++;
						}
					}
				}
			}
		}
		else if (iParam4 == 14)
		{
			if (iParam2 == 1)
			{
				if (iParam3 >= 26)
				{
					iVar197 = func_158(iParam1, iParam3, 1, 4);
					if (iVar197 != -1)
					{
						iVar198 = dlc1::_0x017568A8182D98A6(iVar197);
						iVar199 = 0;
						while (iVar199 < iVar198)
						{
							dlc1::_0xE1CA84EBF72E691D(iVar197, iVar199, &iVar200, &iVar201, &iVar202);
							if (iVar202 == iParam5)
							{
								if (iVar200 != 0 && iVar200 != 1849449579)
								{
									iVar0 = func_75(iParam1, iVar200, 14, 4);
									iVar199 = iVar198 + 1;
								}
								else
								{
									iVar0 = iVar201;
									iVar199 = iVar198 + 1;
								}
							}
							iVar199++;
						}
					}
				}
			}
			else if (iParam2 == 11)
			{
				if (iParam3 >= 256)
				{
					iVar203 = func_158(iParam1, iParam3, 11, 4);
					if (iVar203 != -1)
					{
						iVar204 = dlc1::_0x017568A8182D98A6(iVar203);
						iVar205 = 0;
						while (iVar205 < iVar204)
						{
							dlc1::_0xE1CA84EBF72E691D(iVar203, iVar205, &iVar206, &iVar207, &iVar208);
							if (iVar208 == iParam5)
							{
								if (iVar206 != 0 && iVar206 != 1849449579)
								{
									iVar0 = func_75(iParam1, iVar206, 14, 4);
									iVar205 = iVar204 + 1;
								}
								else
								{
									iVar0 = iVar207;
									iVar205 = iVar204 + 1;
								}
							}
							iVar205++;
						}
					}
				}
			}
		}
	}
	return iVar0;
}

bool func_166(int iParam0, int iParam1, int iParam2, int iParam3, int iParam4)//Position - 0x24B65
{
	int iVar0;
	int iVar1;
	int iVar2;
	int iVar3;
	int iVar4;
	var uVar5;
	int iVar6;
	int iVar7;
	int iVar8;
	int iVar9;
	int iVar10;
	int iVar11;
	var uVar12;
	int iVar13;
	
	*iParam4 = -99;
	switch (iParam1)
	{
		case joaat("mp_m_freemode_01"):
			switch (iParam2)
			{
				case 1:
					if (((((iParam3 >= 1 && iParam3 <= 4) || (iParam3 >= 5 && iParam3 <= 8)) || iParam3 == 9) || (iParam3 >= 14 && iParam3 <= 17)) || (iParam3 >= 22 && iParam3 <= 25))
					{
						*iParam4 = 0;
					}
					if (iParam3 >= func_76(iParam1, 1))
					{
						func_192(iParam1, 1, iParam3);
						if (Global_2621445 == -1751726434)
						{
							*iParam4 = 0;
						}
					}
					iVar0 = func_159(iParam0, 1);
					if (iVar0 >= 26)
					{
						iVar1 = func_158(iParam1, iVar0, 1, 3);
						if (dlc1::_0x341DE7ED1D2A1BFD(iVar1, -1188154325, 0))
						{
							iVar1 = func_158(iParam1, iParam3, 1, 3);
							if (iVar1 != -1)
							{
								iVar2 = dlc1::_get_num_forced_components(iVar1);
								iVar3 = 0;
								while (iVar3 < iVar2)
								{
									dlc1::get_forced_component(iVar1, iVar3, &iVar4, &uVar5, &iVar6);
									if (iVar6 == 2)
									{
										if (iVar4 != 0 && iVar4 != 1849449579)
										{
											*iParam4 = func_75(iParam1, iVar4, 2, 3);
										}
										else
										{
											*iParam4 = uVar5;
											iVar3 = iVar2 + 1;
										}
									}
									iVar3++;
								}
							}
						}
					}
					break;
			}
			break;
		
		case joaat("mp_f_freemode_01"):
			switch (iParam2)
			{
				case 1:
					if (((((iParam3 >= 1 && iParam3 <= 4) || (iParam3 >= 5 && iParam3 <= 8)) || iParam3 == 9) || (iParam3 >= 14 && iParam3 <= 17)) || (iParam3 >= 22 && iParam3 <= 25))
					{
						*iParam4 = 0;
					}
					if (iParam3 >= func_76(iParam1, 1))
					{
						func_192(iParam1, 1, iParam3);
						if (Global_2621445 == -1751726434)
						{
							*iParam4 = 0;
						}
					}
					iVar7 = func_159(iParam0, 1);
					if (iVar7 >= 26)
					{
						iVar8 = func_158(iParam1, iVar7, 1, 4);
						if (dlc1::_0x341DE7ED1D2A1BFD(iVar8, -1188154325, 0))
						{
							iVar8 = func_158(iParam1, iParam3, 1, 4);
							if (iVar8 != -1)
							{
								iVar9 = dlc1::_get_num_forced_components(iVar8);
								iVar10 = 0;
								while (iVar10 < iVar9)
								{
									dlc1::get_forced_component(iVar8, iVar10, &iVar11, &uVar12, &iVar13);
									if (iVar13 == 2)
									{
										if (iVar11 != 0 && iVar11 != 1849449579)
										{
											*iParam4 = func_75(iParam1, iVar11, 2, 4);
										}
										else
										{
											*iParam4 = uVar12;
											iVar10 = iVar9 + 1;
										}
									}
									iVar10++;
								}
							}
						}
					}
					break;
			}
			break;
	}
	if (*iParam4 != -99)
	{
		func_237(748, iParam3, Global_69516, 1, 0);
		func_237(749, iParam2, Global_69516, 1, 0);
		return true;
	}
	return false;
}

void func_167(int iParam0, int iParam1, int iParam2, int iParam3, int iParam4)//Position - 0x24E2E
{
	int iVar0;
	int iVar1;
	int iVar2;
	
	if (!ped::is_ped_injured(iParam0))
	{
		if (func_169(iParam0))
		{
			return;
		}
		if (iParam1 == 11 || iParam1 == 8)
		{
			iVar0 = entity::get_entity_model(iParam0);
			if (iParam1 == 11)
			{
				if (func_153(iVar0, iParam2))
				{
					iParam1 = 8;
					iParam2 = func_159(iParam0, iParam1);
				}
			}
			else if (iParam1 == 8)
			{
				iVar1 = func_159(iParam0, 11);
				if (!func_153(iVar0, iVar1))
				{
					return;
				}
			}
			func_144(gameplay::get_hash_key("torsoDecal"), iParam0);
			if (iParam1 == 11)
			{
				if (((((!func_146(iVar0, iParam2, 13) && !func_146(iVar0, iParam2, 14)) && !func_146(iVar0, iParam2, 15)) && !func_146(iVar0, iParam2, 16)) && !func_146(iVar0, iParam2, 71)) && !func_146(iVar0, iParam2, 72))
				{
					func_144(gameplay::get_hash_key("crewLogo"), iParam0);
				}
			}
			iVar2 = func_135(iVar0, iParam1, iParam2, iParam4);
			if (iVar2 != -1)
			{
				if (iParam3 == 1)
				{
					func_168(iParam0, iVar2);
				}
				else
				{
					func_170(iVar2, 1, Global_69516);
				}
			}
		}
	}
}

void func_168(int iParam0, int iParam1)//Position - 0x24F5B
{
	int iVar0;
	struct<6> Var1;
	
	if (!ped::is_ped_injured(iParam0))
	{
		if (iParam1 != -1)
		{
			iVar0 = func_142(iParam0);
			if (!func_120(iParam1, -1))
			{
				if (func_112(&Var1, iParam1, iVar0, iParam0, -1))
				{
					ped::_set_ped_decoration(iParam0, Var1.f_4, Var1.f_5);
					func_108(iParam0, Var1.f_4, Var1.f_5);
				}
			}
		}
	}
}

bool func_169(int iParam0)//Position - 0x24FB2
{
	int iVar0;
	int iVar1;
	int iVar2;
	int iVar3;
	int iVar4;
	
	if (!ped::is_ped_injured(iParam0))
	{
		if (entity::get_entity_model(iParam0) == joaat("mp_m_freemode_01"))
		{
			iVar0 = ped::get_ped_drawable_variation(iParam0, 11);
			if (iVar0 > 15)
			{
				iVar1 = func_173(iParam0, 11, -1);
				if (iVar1 >= 237)
				{
					iVar2 = func_158(joaat("mp_m_freemode_01"), iVar1, 11, 3);
					if (dlc1::_0x341DE7ED1D2A1BFD(iVar2, 490219883, 0))
					{
						return true;
					}
					else if ((((((((((dlc1::_0x341DE7ED1D2A1BFD(iVar2, 201427653, 0) || dlc1::_0x341DE7ED1D2A1BFD(iVar2, 967829025, 0)) || dlc1::_0x341DE7ED1D2A1BFD(iVar2, -1266557933, 0)) || dlc1::_0x341DE7ED1D2A1BFD(iVar2, -979468724, 0)) || dlc1::_0x341DE7ED1D2A1BFD(iVar2, 310055897, 0)) || dlc1::_0x341DE7ED1D2A1BFD(iVar2, 606713654, 0)) || dlc1::_0x341DE7ED1D2A1BFD(iVar2, 1831422288, 0)) || dlc1::_0x341DE7ED1D2A1BFD(iVar2, -838136846, 0)) || dlc1::_0x341DE7ED1D2A1BFD(iVar2, 655638019, 0)) || dlc1::_0x341DE7ED1D2A1BFD(iVar2, 83294665, 0)) || dlc1::_0x341DE7ED1D2A1BFD(iVar2, -697656159, 0))
					{
						return true;
					}
					else if (dlc1::_0x341DE7ED1D2A1BFD(iVar2, 1148412551, 0))
					{
						return true;
					}
				}
			}
		}
		else if (entity::get_entity_model(iParam0) == joaat("mp_f_freemode_01"))
		{
			iVar0 = ped::get_ped_drawable_variation(iParam0, 11);
			if (iVar0 > 15)
			{
				iVar3 = func_173(iParam0, 11, -1);
				if (iVar3 >= 237)
				{
					iVar4 = func_158(joaat("mp_f_freemode_01"), iVar3, 11, 4);
					if (dlc1::_0x341DE7ED1D2A1BFD(iVar4, 490219883, 0))
					{
						return true;
					}
					else if ((((((((((dlc1::_0x341DE7ED1D2A1BFD(iVar4, 201427653, 0) || dlc1::_0x341DE7ED1D2A1BFD(iVar4, 967829025, 0)) || dlc1::_0x341DE7ED1D2A1BFD(iVar4, -1266557933, 0)) || dlc1::_0x341DE7ED1D2A1BFD(iVar4, -979468724, 0)) || dlc1::_0x341DE7ED1D2A1BFD(iVar4, 970679185, 0)) || dlc1::_0x341DE7ED1D2A1BFD(iVar4, 83294665, 0)) || dlc1::_0x341DE7ED1D2A1BFD(iVar4, 382246252, 0)) || dlc1::_0x341DE7ED1D2A1BFD(iVar4, -99064836, 0)) || dlc1::_0x341DE7ED1D2A1BFD(iVar4, 198641529, 0)) || dlc1::_0x341DE7ED1D2A1BFD(iVar4, -398213037, 0)) || dlc1::_0x341DE7ED1D2A1BFD(iVar4, -306768813, 0))
					{
						return true;
					}
					else if (dlc1::_0x341DE7ED1D2A1BFD(iVar4, 1148412551, 0))
					{
						return true;
					}
				}
			}
		}
	}
	return false;
}

void func_170(int iParam0, int iParam1, int iParam2)//Position - 0x25236
{
	if (iParam1)
	{
		if (!func_120(iParam0, iParam2))
		{
			func_171(iParam0, 1, iParam2);
		}
	}
	else if (func_120(iParam0, iParam2))
	{
		func_171(iParam0, 0, iParam2);
	}
}

void func_171(int iParam0, int iParam1, int iParam2)//Position - 0x2526F
{
	int iVar0;
	int iVar1;
	
	iVar0 = func_122(iParam0, iParam2);
	iVar1 = iParam0;
	if (iVar1 > -1)
	{
		if (iParam1)
		{
			gameplay::set_bit(&iVar0, func_121(iVar1));
		}
		else
		{
			gameplay::clear_bit(&iVar0, func_121(iVar1));
		}
		func_237(func_123(iParam0), iVar0, iParam2, 1, 0);
	}
}

int func_172()//Position - 0x252BE
{
	int iVar0;
	
	iVar0 = Global_69516;
	if (func_120(13, iVar0))
	{
		return 13;
	}
	if (func_120(14, iVar0))
	{
		return 14;
	}
	if (func_120(15, iVar0))
	{
		return 15;
	}
	if (func_120(16, iVar0))
	{
		return 16;
	}
	if (func_120(71, iVar0))
	{
		return 71;
	}
	if (func_120(72, iVar0))
	{
		return 72;
	}
	return -1;
}

int func_173(int iParam0, int iParam1, int iParam2)//Position - 0x2532D
{
	int iVar0;
	int iVar1;
	
	if (!ped::is_ped_injured(iParam0))
	{
		if (iParam1 == 12)
		{
			iVar0 = 0;
			while (iVar0 <= 53)
			{
				if (func_93(iParam0, iParam1, iVar0))
				{
					return iVar0;
				}
				iVar0++;
			}
		}
		else if (iParam1 == 13)
		{
			iVar1 = 0;
			while (iVar1 <= 19)
			{
				if (func_93(iParam0, iParam1, iVar1))
				{
					return iVar1;
				}
				iVar1++;
			}
			return 31;
		}
		else if (iParam1 == 14)
		{
			if (iParam2 == -1)
			{
			}
			else
			{
				return func_174(iParam0, iParam2);
			}
		}
		else
		{
			return func_159(iParam0, iParam1);
		}
	}
	return -99;
}

int func_174(int iParam0, int iParam1)//Position - 0x253CE
{
	int iVar0;
	int iVar1;
	
	if (ped::is_ped_injured(iParam0))
	{
		return -99;
	}
	iVar0 = ped::get_ped_prop_index(iParam0, iParam1);
	if (iVar0 == -1)
	{
		return func_152(iParam1);
	}
	iVar1 = ped::get_ped_prop_texture_index(iParam0, iParam1);
	return func_175(iParam0, iVar0, iVar1, iParam1);
}

int func_175(int iParam0, int iParam1, int iParam2, int iParam3)//Position - 0x25414
{
	int iVar0;
	int iVar1;
	int iVar2;
	int iVar3;
	int iVar4;
	int iVar5;
	int iVar6;
	
	if (iParam1 == -1)
	{
		return func_152(iParam3);
	}
	iVar0 = entity::get_entity_model(iParam0);
	iVar1 = dlc1::get_hash_name_for_prop(iParam0, iParam3, iParam1, iParam2);
	if (iVar1 != -1 && iVar1 != 0)
	{
		if (iVar0 == joaat("mp_m_freemode_01"))
		{
			return func_75(entity::get_entity_model(iParam0), iVar1, 14, 3);
		}
		else if (iVar0 == joaat("mp_f_freemode_01"))
		{
			return func_75(entity::get_entity_model(iParam0), iVar1, 14, 4);
		}
	}
	iVar2 = ped::get_number_of_ped_prop_drawable_variations(iParam0, iParam3);
	iVar4 = 0;
	while (iVar4 <= (iVar2 - 1))
	{
		iVar6 = ped::get_number_of_ped_prop_texture_variations(iParam0, iParam3, iVar4);
		if (iVar4 != iParam1)
		{
			iVar3 = (iVar3 + iVar6);
		}
		else
		{
			iVar5 = 0;
			while (iVar5 <= (iVar6 - 1))
			{
				if (iVar4 == iParam1 && iVar5 == iParam2)
				{
					iVar3 = (iVar3 + func_176(iParam0, iParam3));
					return iVar3;
				}
				else
				{
					iVar3++;
				}
				iVar5++;
			}
		}
		iVar4++;
	}
	return func_152(iParam3);
}

int func_176(int iParam0, int iParam1)//Position - 0x25510
{
	int iVar0;
	
	iVar0 = entity::get_entity_model(iParam0);
	switch (iVar0)
	{
		case joaat("player_zero"):
			switch (iParam1)
			{
				case 0:
					return 10;
					break;
				
				case 1:
					return 58;
					break;
				
				case 2:
					return 112;
					break;
			}
			break;
		
		case joaat("player_one"):
			switch (iParam1)
			{
				case 0:
					return 10;
					break;
				
				case 1:
					return 82;
					break;
				
				case 2:
					return 158;
					break;
			}
			break;
		
		case joaat("player_two"):
			switch (iParam1)
			{
				case 0:
					return 10;
					break;
				
				case 1:
					return 88;
					break;
				
				case 2:
					return 154;
					break;
			}
			break;
		
		case joaat("mp_m_freemode_01"):
			switch (iParam1)
			{
				case 0:
					return 10;
					break;
				
				case 1:
					return 155;
					break;
				
				case 6:
					return 319;
					break;
			}
			break;
		
		case joaat("mp_f_freemode_01"):
			switch (iParam1)
			{
				case 0:
					return 10;
					break;
				
				case 1:
					return 155;
					break;
				
				case 6:
					return 319;
					break;
			}
			break;
	}
	return -99;
}

void func_177(int iParam0, int iParam1, int iParam2, int iParam3)//Position - 0x2564E
{
	int iVar0;
	
	if (iParam2 == -1)
	{
		ped::clear_ped_prop(iParam0, iParam1);
		if (iParam1 == 0)
		{
			ped::set_ped_config_flag(iParam0, 34, false);
			ped::set_ped_config_flag(iParam0, 36, false);
		}
	}
	else
	{
		ped::set_ped_prop_index(iParam0, iParam1, iParam2, iParam3, network::network_is_game_in_progress());
		if (iParam1 == 0)
		{
			iVar0 = func_175(iParam0, iParam2, iParam3, iParam1);
			if (func_164(entity::get_entity_model(iParam0), 14, iVar0, dlc1::get_hash_name_for_prop(iParam0, 0, iParam2, iParam3)))
			{
				ped::set_ped_config_flag(iParam0, 34, true);
				ped::set_ped_config_flag(iParam0, 36, true);
			}
			else
			{
				ped::set_ped_config_flag(iParam0, 34, false);
				ped::set_ped_config_flag(iParam0, 36, false);
			}
		}
	}
}

struct<10> func_178(int iParam0, int iParam1)//Position - 0x256E6
{
	int iVar0;
	struct<10> Var1;
	
	Var1 = 9;
	iVar0 = 0;
	while (iVar0 <= 8)
	{
		Var1[iVar0] = -99;
		iVar0++;
	}
	switch (iParam0)
	{
		case joaat("player_zero"):
			switch (iParam1)
			{
				case 31:
					func_180(&Var1, 0, 1, 2, 3, 4, 5, 6, 7, 8);
					break;
				
				case 0:
					func_180(&Var1, 10, 1, 2, 3, 4, 5, 6, 7, 8);
					break;
				
				case 1:
					func_180(&Var1, 19, 1, 2, 3, 4, 5, 6, 7, 8);
					break;
				
				case 2:
					func_180(&Var1, 14, 1, 2, 3, 4, 5, 6, 7, 8);
					break;
				
				case 3:
					func_180(&Var1, 18, 1, 2, 3, 4, 5, 6, 7, 8);
					break;
				
				case 4:
					func_180(&Var1, 0, 59, 112, 3, 4, 5, 6, 7, 8);
					break;
				
				case 5:
					func_180(&Var1, 0, 60, 112, 3, 4, 5, 6, 7, 8);
					break;
				
				case 6:
					func_180(&Var1, 15, 1, 2, 3, 4, 5, 6, 7, 8);
					break;
				
				case 7:
					func_180(&Var1, 0, 60, 2, 3, 4, 5, 6, 7, 8);
					break;
				
				case 8:
					func_180(&Var1, 55, 1, 2, 3, 4, 5, 6, 7, 8);
					break;
				
				case 9:
					func_180(&Var1, 0, 1, 112, 3, 4, 5, 6, 7, 8);
					break;
				
				default:
					func_179(&Var1, iParam0, iParam1, 10);
					break;
			}
			break;
		
		case joaat("player_one"):
			switch (iParam1)
			{
				case 31:
					func_180(&Var1, 0, 1, 2, 3, 4, 5, 6, 7, 8);
					break;
				
				case 0:
					func_180(&Var1, 10, 1, 2, 3, 4, 5, 6, 7, 8);
					break;
				
				case 1:
					func_180(&Var1, 0, 82, 158, 3, 4, 5, 6, 7, 8);
					break;
				
				case 2:
					func_180(&Var1, 0, 1, 158, 3, 4, 5, 6, 7, 8);
					break;
				
				case 3:
					func_180(&Var1, 15, 1, 2, 3, 4, 5, 6, 7, 8);
					break;
				
				case 4:
					func_180(&Var1, 41, 1, 2, 3, 4, 5, 6, 7, 8);
					break;
				
				case 5:
					func_180(&Var1, 40, 1, 2, 3, 4, 5, 6, 7, 8);
					break;
				
				case 6:
					func_180(&Var1, 41, 95, 2, 3, 4, 5, 6, 7, 8);
					break;
				
				case 7:
					func_180(&Var1, 0, 95, 2, 3, 4, 5, 6, 7, 8);
					break;
				
				case 8:
					func_180(&Var1, 69, 95, 2, 3, 4, 5, 6, 7, 8);
					break;
				
				default:
					func_179(&Var1, iParam0, iParam1, 9);
					break;
			}
			break;
		
		case joaat("player_two"):
			switch (iParam1)
			{
				case 31:
					func_180(&Var1, 0, 1, 2, 3, 4, 5, 6, 7, 8);
					break;
				
				case 0:
					func_180(&Var1, 11, 1, 2, 3, 4, 5, 6, 7, 8);
					break;
				
				case 1:
					func_180(&Var1, 17, 90, 2, 3, 4, 5, 6, 7, 8);
					break;
				
				case 2:
					func_180(&Var1, 15, 1, 2, 3, 4, 5, 6, 7, 8);
					break;
				
				case 3:
					func_180(&Var1, 0, 88, 154, 3, 4, 5, 6, 7, 8);
					break;
				
				case 4:
					func_180(&Var1, 0, 1, 154, 3, 4, 5, 6, 7, 8);
					break;
				
				case 5:
					func_180(&Var1, 16, 1, 2, 3, 4, 5, 6, 7, 8);
					break;
				
				case 6:
					func_180(&Var1, 36, 1, 2, 3, 4, 5, 6, 7, 8);
					break;
				
				case 7:
					func_180(&Var1, 0, 123, 2, 3, 4, 5, 6, 7, 8);
					break;
				
				case 8:
					func_180(&Var1, 69, 1, 2, 3, 4, 5, 6, 7, 8);
					break;
				
				default:
					func_179(&Var1, iParam0, iParam1, 9);
					break;
			}
			break;
		
		case joaat("mp_m_freemode_01"):
			switch (iParam1)
			{
				case 31:
					func_180(&Var1, 0, 1, 2, 3, 4, 5, 6, 7, 8);
					break;
				
				case 0:
					func_180(&Var1, 129, 167, 2, 3, 4, 5, 6, 7, 8);
					break;
				
				case 1:
					func_180(&Var1, 90, 1, 2, 3, 4, 5, 6, 7, 8);
					break;
				
				case 2:
					func_180(&Var1, 23, 251, 2, 3, 4, 5, 6, 7, 8);
					break;
				
				case 3:
					func_180(&Var1, 36, 262, 2, 3, 4, 5, 6, 7, 8);
					break;
				
				case 4:
					func_180(&Var1, 88, 1, 2, 3, 4, 5, 6, 7, 8);
					break;
				
				case 5:
					func_180(&Var1, 125, 175, 2, 3, 4, 5, 6, 7, 8);
					break;
				
				case 6:
					func_180(&Var1, 35, 1, 2, 3, 4, 5, 6, 7, 8);
					break;
				
				case 7:
					func_180(&Var1, 44, 208, 2, 3, 4, 5, 6, 7, 8);
					break;
				
				case 8:
					func_180(&Var1, 52, 189, 2, 3, 4, 5, 6, 7, 8);
					break;
				
				case 9:
					func_180(&Var1, 0, 261, 2, 3, 4, 5, 6, 7, 8);
					break;
				
				case 10:
					func_180(&Var1, 0, 243, 2, 3, 4, 5, 6, 7, 8);
					break;
				
				case 11:
					func_180(&Var1, 0, 243, 2, 3, 4, 5, 6, 7, 8);
					break;
				
				case 12:
					func_180(&Var1, 0, 212, 2, 3, 4, 5, 6, 7, 8);
					break;
				
				case 13:
					func_180(&Var1, 64, 291, 2, 3, 4, 5, 6, 7, 8);
					break;
				
				case 14:
					func_180(&Var1, 61, 207, 2, 3, 4, 5, 6, 7, 8);
					break;
				
				case 15:
					func_180(&Var1, 0, 291, 2, 3, 4, 5, 6, 7, 8);
					break;
				
				case 16:
					func_180(&Var1, 0, 208, 2, 3, 4, 5, 6, 7, 8);
					break;
				
				case 17:
					func_180(&Var1, 0, 229, 2, 3, 4, 5, 6, 7, 8);
					break;
				
				case 18:
					func_180(&Var1, 36, 249, 2, 3, 4, 5, 6, 7, 8);
					break;
				
				case 19:
					func_180(&Var1, 0, 259, 2, 3, 4, 5, 6, 7, 8);
					break;
				
				case 20:
					func_180(&Var1, 0, 174, 2, 3, 4, 5, 6, 7, 8);
					break;
				
				case 21:
					func_180(&Var1, 35, 180, 2, 3, 4, 5, 6, 7, 8);
					break;
				
				case 22:
					func_180(&Var1, 36, 1, 2, 3, 4, 5, 6, 7, 8);
					break;
				
				case 23:
					func_180(&Var1, 0, 259, 2, 3, 4, 5, 6, 7, 8);
					break;
				
				case 24:
					func_180(&Var1, 35, 1, 2, 3, 4, 5, 6, 7, 8);
					break;
				
				default:
					func_179(&Var1, iParam0, iParam1, 25);
					break;
			}
			break;
		
		case joaat("mp_f_freemode_01"):
			switch (iParam1)
			{
				case 31:
					func_180(&Var1, 0, 1, 2, 3, 4, 5, 6, 7, 8);
					break;
				
				case 0:
					func_180(&Var1, 35, 233, 2, 3, 4, 5, 6, 7, 8);
					break;
				
				case 1:
					func_180(&Var1, 36, 178, 2, 3, 4, 5, 6, 7, 8);
					break;
				
				case 2:
					func_180(&Var1, 53, 221, 2, 3, 4, 5, 6, 7, 8);
					break;
				
				case 3:
					func_180(&Var1, 38, 170, 2, 3, 4, 5, 6, 7, 8);
					break;
				
				case 4:
					func_180(&Var1, 37, 1, 2, 3, 4, 5, 6, 7, 8);
					break;
				
				case 5:
					func_180(&Var1, 113, 203, 2, 3, 4, 5, 6, 7, 8);
					break;
				
				case 6:
					func_180(&Var1, 114, 183, 2, 3, 4, 5, 6, 7, 8);
					break;
				
				case 7:
					func_180(&Var1, 0, 221, 2, 3, 4, 5, 6, 7, 8);
					break;
				
				case 8:
					func_180(&Var1, 0, 221, 2, 3, 4, 5, 6, 7, 8);
					break;
				
				case 9:
					func_180(&Var1, 0, 199, 2, 3, 4, 5, 6, 7, 8);
					break;
				
				case 10:
					func_180(&Var1, 0, 182, 2, 3, 4, 5, 6, 7, 8);
					break;
				
				case 11:
					func_180(&Var1, 0, 233, 2, 3, 4, 5, 6, 7, 8);
					break;
				
				case 12:
					func_180(&Var1, 107, 167, 2, 3, 4, 5, 6, 7, 8);
					break;
				
				case 13:
					func_180(&Var1, 109, 170, 2, 3, 4, 5, 323, 7, 8);
					break;
				
				case 14:
					func_180(&Var1, 119, 237, 2, 3, 4, 5, 6, 7, 8);
					break;
				
				case 15:
					func_180(&Var1, 0, 221, 2, 3, 4, 5, 6, 7, 8);
					break;
				
				case 16:
					func_180(&Var1, 114, 1, 2, 3, 4, 5, 6, 7, 8);
					break;
				
				case 17:
					func_180(&Var1, 35, 268, 2, 3, 4, 5, 6, 7, 8);
					break;
				
				case 18:
					func_180(&Var1, 0, 266, 2, 3, 4, 5, 6, 7, 8);
					break;
				
				case 19:
					func_180(&Var1, 42, 1, 2, 3, 4, 5, 6, 7, 8);
					break;
				
				case 20:
					func_180(&Var1, 76, 1, 2, 3, 4, 5, 6, 7, 8);
					break;
				
				case 21:
					func_180(&Var1, 39, 235, 2, 3, 4, 5, 6, 7, 8);
					break;
				
				case 22:
					func_180(&Var1, 41, 183, 2, 3, 4, 5, 6, 7, 8);
					break;
				
				case 23:
					func_180(&Var1, 111, 194, 2, 3, 4, 5, 6, 7, 8);
					break;
				
				default:
					func_179(&Var1, iParam0, iParam1, 25);
					break;
			}
			break;
	}
	return Var1;
}

void func_179(int iParam0, int iParam1, int iParam2, int iParam3)//Position - 0x26015
{
	int iVar0;
	struct<4> Var1;
	vector3 vVar16;
	int iVar19;
	
	if (iParam2 != 0 && iParam2 != -99)
	{
		(*iParam0)[0] = 0;
		(*iParam0)[1] = 1;
		(*iParam0)[2] = 2;
		(*iParam0)[3] = 3;
		(*iParam0)[4] = 4;
		(*iParam0)[5] = 5;
		(*iParam0)[6] = 6;
		(*iParam0)[7] = 7;
		(*iParam0)[8] = 8;
		iVar0 = 0;
		if (iParam1 == joaat("player_zero"))
		{
			iVar0 = 0;
		}
		else if (iParam1 == joaat("player_one"))
		{
			iVar0 = 1;
		}
		else if (iParam1 == joaat("player_two"))
		{
			iVar0 = 2;
		}
		else if (iParam1 == joaat("mp_m_freemode_01"))
		{
			iVar0 = 3;
		}
		else if (iParam1 == joaat("mp_f_freemode_01"))
		{
			iVar0 = 4;
		}
		dlc1::get_shop_ped_outfit(iParam2, &Var1);
		if (!dlc1::_is_dlc_data_empty(Var1))
		{
			iVar19 = 0;
			while (iVar19 < Var1.f_3)
			{
				if (dlc1::_0xA9F9C2E0FDE11CBB(Var1.f_1, iVar19, &vVar16) && vVar16.y != -1)
				{
					if ((vVar16.x != 0 && vVar16.x != -1) && vVar16.x != 1849449579)
					{
						(*iParam0)[vVar16.y] = func_75(iParam1, vVar16.x, 14, iVar0);
					}
					else if (vVar16.y != -1)
					{
						(*iParam0)[vVar16.y] = vVar16.y;
					}
				}
				iVar19++;
			}
		}
	}
}

void func_180(int iParam0, int iParam1, int iParam2, int iParam3, int iParam4, int iParam5, int iParam6, int iParam7, int iParam8, int iParam9)//Position - 0x2613F
{
	(*iParam0)[0] = iParam1;
	(*iParam0)[1] = iParam2;
	(*iParam0)[2] = iParam3;
	(*iParam0)[3] = iParam4;
	(*iParam0)[4] = iParam5;
	(*iParam0)[5] = iParam6;
	(*iParam0)[6] = iParam7;
	(*iParam0)[7] = iParam8;
	(*iParam0)[8] = iParam9;
}

int func_181(int iParam0)//Position - 0x26187
{
	switch (iParam0)
	{
		case 0:
			return 0;
			break;
		
		case 2:
			return 2;
			break;
		
		case 3:
			return 3;
			break;
		
		case 4:
			return 4;
			break;
		
		case 6:
			return 6;
			break;
		
		case 5:
			return 5;
			break;
		
		case 8:
			return 8;
			break;
		
		case 9:
			return 9;
			break;
		
		case 10:
			return 10;
			break;
		
		case 1:
			return 1;
			break;
		
		case 7:
			return 7;
			break;
		
		case 11:
			return 11;
			break;
	}
	return 0;
}

struct<17> func_182(int iParam0, int iParam1)//Position - 0x26237
{
	int iVar0;
	struct<17> Var1;
	
	Var1 = 15;
	iVar0 = 0;
	while (iVar0 <= 14)
	{
		Var1[iVar0] = -99;
		iVar0++;
	}
	Var1.f_16 = 0;
	switch (iParam0)
	{
		case joaat("player_zero"):
			switch (iParam1)
			{
				case 0:
					if (Global_101652.f_8028.f_99.f_58[120])
					{
						func_185(&Var1, -99, -99, 1, 1, 0, 0, 0, 0, 0, -99, 0, 0, 31);
					}
					else
					{
						func_185(&Var1, -99, -99, 0, 0, 0, 0, 0, 0, 0, -99, 0, 0, 31);
					}
					break;
				
				case 1:
					func_185(&Var1, -99, -99, 16, 16, 6, 1, 1, 0, 1, -99, 0, 0, 0);
					break;
				
				case 2:
					func_185(&Var1, -99, -99, 36, 21, 6, 1, 5, 0, 0, -99, 0, 0, 8);
					break;
				
				case 3:
					func_185(&Var1, -99, -99, 65, 36, 6, 0, 2, 0, 0, -99, 0, 0, 31);
					break;
				
				case 4:
					func_185(&Var1, -99, -99, 61, 32, 6, 0, 0, 7, 3, -99, 0, 0, 2);
					break;
				
				case 5:
					func_185(&Var1, -99, -99, Global_101652.f_2079.f_539.f_196[0], Global_101652.f_2079.f_539.f_200[0], 6, 3, 0, 0, 0, -99, 0, 0, 3);
					break;
				
				case 6:
					func_185(&Var1, -99, -99, 92, 72, 7, 0, 0, 0, 0, -99, 0, 0, 31);
					break;
				
				case 7:
					func_185(&Var1, -99, -99, 85, 95, 6, 0, 0, 0, 0, -99, 0, 0, 31);
					break;
				
				case 8:
					func_185(&Var1, -99, -99, 170, 80, 6, 0, 0, 0, 0, -99, 0, 0, 31);
					break;
				
				case 9:
					func_185(&Var1, -99, -99, 171, 89, 6, 0, 0, 0, 0, -99, 0, 0, 31);
					break;
				
				case 10:
					func_185(&Var1, -99, -99, 33, 18, 8, 10, 3, 8, 0, -99, 0, 0, 4);
					break;
				
				case 11:
					func_185(&Var1, -99, -99, 33, 18, 17, 10, 4, 8, 0, -99, 0, 0, 5);
					break;
				
				case 12:
					func_185(&Var1, -99, -99, 35, 20, 9, 10, 23, 0, 0, -99, 0, 0, 31);
					break;
				
				case 13:
					func_185(&Var1, -99, -99, 69, 40, 13, 0, 0, 0, 0, -99, 0, 0, 31);
					break;
				
				case 14:
					func_185(&Var1, -99, -99, 62, 33, 38, 0, 8, 0, 0, -99, 0, 0, 6);
					break;
				
				case 15:
					func_185(&Var1, -99, -99, 63, 34, 6, 10, 0, 0, 4, -99, 0, 0, 31);
					break;
				
				case 16:
					func_185(&Var1, -99, -99, 174, 93, 18, 0, 18, 0, 0, -99, 0, 0, 31);
					break;
				
				case 17:
					func_185(&Var1, -99, -99, 76, 46, 6, 10, 0, 0, 0, -99, 0, 0, 31);
					break;
				
				case 18:
					func_185(&Var1, -99, -99, 35, 20, 9, 10, 0, 4, 0, -99, 0, 0, 7);
					break;
				
				case 19:
					func_185(&Var1, -99, -99, 64, 35, 6, 0, 0, 0, 0, -99, 0, 0, 31);
					break;
				
				case 20:
					func_185(&Var1, -99, -99, 66, 37, 6, 0, 0, 0, 0, -99, 0, 0, 31);
					break;
				
				case 21:
					func_185(&Var1, -99, -99, 67, 38, 6, 0, 0, 0, 0, -99, 0, 0, 31);
					break;
				
				case 22:
					func_185(&Var1, -99, -99, 68, 39, 6, 0, 0, 0, 0, -99, 0, 0, 31);
					break;
				
				case 23:
					func_185(&Var1, -99, -99, 177, 94, 19, 9, 0, 0, 0, -99, 0, 0, 31);
					break;
				
				case 24:
					func_185(&Var1, -99, -99, 35, 20, 9, 10, 4, 0, 0, -99, 0, 0, 31);
					break;
				
				case 25:
					func_185(&Var1, -99, -99, 97, 81, 6, 0, 0, 0, 0, -99, 0, 0, 31);
					break;
				
				case 26:
					func_185(&Var1, -99, -99, 3, 3, 0, 0, 0, 0, 0, -99, 0, 0, 31);
					break;
				
				case 27:
					func_185(&Var1, -99, -99, 129, 81, 6, 0, 0, 0, 0, -99, 0, 0, 31);
					break;
				
				case 28:
					func_185(&Var1, -99, -99, 170, 80, 6, 0, 13, 0, 0, -99, 0, 0, 31);
					break;
				
				case 29:
					func_185(&Var1, -99, -99, 2, 2, 0, 0, 0, 0, 0, -99, 0, 0, 31);
					break;
				
				case 30:
					func_185(&Var1, -99, -99, 161, 3, 0, 0, 0, 0, 0, -99, 0, 0, 31);
					break;
				
				case 31:
					func_185(&Var1, -99, -99, 3, 3, 0, 12, 0, 0, 0, -99, 0, 1, 31);
					break;
				
				case 32:
					func_185(&Var1, -99, -99, 85, 55, 6, 0, 0, 0, 0, -99, 0, 0, 31);
					break;
				
				case 33:
					func_185(&Var1, -99, -99, 86, 4, 20, 0, 0, 0, 0, -99, 0, 0, 31);
					break;
				
				case 34:
					func_185(&Var1, -99, -99, 44, 97, 6, 0, 0, 0, 0, -99, 0, 2, 31);
					break;
				
				case 35:
					func_185(&Var1, -99, -99, 85, 81, 6, 0, 0, 0, 0, -99, 0, 0, 31);
					break;
				
				case 36:
					func_185(&Var1, -99, -99, 4, 4, 0, 0, 0, 0, 0, -99, 0, 0, 31);
					break;
				
				case 37:
					func_185(&Var1, -99, -99, 5, 5, 0, 0, 0, 0, 0, -99, 0, 0, 31);
					break;
				
				case 38:
					func_185(&Var1, -99, -99, 6, 6, 0, 0, 0, 0, 0, -99, 0, 0, 31);
					break;
				
				case 39:
					func_185(&Var1, -99, -99, 7, 7, 0, 0, 0, 0, 0, -99, 0, 0, 31);
					break;
				
				case 40:
					func_185(&Var1, -99, -99, 8, 8, 0, 0, 0, 0, 0, -99, 0, 0, 31);
					break;
				
				case 41:
					func_185(&Var1, -99, -99, 9, 9, 0, 0, 0, 0, 0, -99, 0, 0, 31);
					break;
				
				case 42:
					func_185(&Var1, -99, -99, 10, 10, 0, 0, 0, 0, 0, -99, 0, 0, 31);
					break;
				
				case 43:
					func_185(&Var1, -99, -99, 11, 11, 0, 0, 0, 0, 0, -99, 0, 0, 31);
					break;
				
				case 44:
					func_185(&Var1, -99, -99, 12, 12, 0, 0, 0, 0, 0, -99, 0, 0, 31);
					break;
				
				case 45:
					func_185(&Var1, -99, -99, 13, 13, 0, 0, 0, 0, 0, -99, 0, 0, 31);
					break;
				
				case 46:
					func_185(&Var1, -99, -99, 14, 14, 0, 0, 0, 0, 0, -99, 0, 0, 31);
					break;
				
				case 47:
					func_185(&Var1, -99, -99, 15, 15, 0, 0, 0, 0, 0, -99, 0, 0, 31);
					break;
				
				case 48:
					func_185(&Var1, -99, -99, 91, 71, 14, 13, 0, 0, 0, -99, 0, 0, 31);
					break;
				
				case 49:
					func_185(&Var1, -99, -99, 35, 20, 9, 10, 0, 0, 0, -99, 0, 0, 31);
					break;
				
				case 50:
					func_185(&Var1, -99, -99, 33, 18, 8, 10, 3, 8, 0, -99, 0, 0, 9);
					break;
				
				case 51:
					func_185(&Var1, -99, -99, 169, 95, 6, 0, 0, 0, 0, -99, 0, 0, 31);
					break;
				
				case 52:
					func_185(&Var1, -99, -99, 169, 72, 6, 0, 0, 0, 0, -99, 0, 0, 31);
					break;
				
				default:
					func_183(&Var1, iParam0, iParam1, 53);
					break;
			}
			break;
		
		case joaat("player_one"):
			switch (iParam1)
			{
				case 0:
					func_185(&Var1, -99, -99, 73, 24, 18, 0, 26, 0, 0, -99, 0, 0, 31);
					break;
				
				case 1:
					func_185(&Var1, -99, -99, 22, 10, 64, 0, 24, 0, 0, -99, 0, 43, 31);
					break;
				
				case 2:
					func_185(&Var1, -99, -99, Global_101652.f_2079.f_539.f_196[1], Global_101652.f_2079.f_539.f_200[1], 17, 2, 26, 0, 0, -99, 0, 45, 31);
					break;
				
				case 3:
					func_185(&Var1, -99, -99, 23, 11, 13, 5, 2, 4, 0, -99, 0, 0, 1);
					break;
				
				case 4:
					func_185(&Var1, -99, -99, 23, 11, 34, 5, 26, 0, 0, -99, 0, 0, 2);
					break;
				
				case 5:
					func_185(&Var1, -99, 20, 159, 69, 17, 5, 26, 0, 0, -99, 0, 0, 31);
					break;
				
				case 6:
					func_185(&Var1, -99, -99, 40, 13, 14, 0, 0, 0, 0, -99, 0, 0, 31);
					break;
				
				case 7:
					func_185(&Var1, -99, -99, 90, 32, 17, 1, 8, 0, 1, -99, 0, 0, 3);
					break;
				
				case 8:
					func_185(&Var1, -99, -99, 17, 5, 12, 0, 26, 0, 2, -99, 0, 0, 5);
					break;
				
				case 9:
					func_185(&Var1, -99, -99, 16, 4, 12, 0, 26, 0, 0, -99, 0, 0, 31);
					break;
				
				case 10:
					func_185(&Var1, -99, -99, 208, 71, 17, 0, 26, 0, 0, -99, 0, 0, 31);
					break;
				
				case 11:
					func_185(&Var1, -99, -99, 259, 10, 35, 0, 24, 0, 0, -99, 0, 43, 31);
					break;
				
				case 12:
					func_185(&Var1, -99, -99, 18, 6, 12, 0, 26, 0, 0, -99, 0, 0, 31);
					break;
				
				case 13:
					func_185(&Var1, -99, -99, 19, 7, 12, 0, 26, 0, 0, -99, 0, 0, 31);
					break;
				
				case 14:
					func_185(&Var1, -99, -99, 20, 8, 12, 0, 26, 0, 0, -99, 0, 0, 31);
					break;
				
				case 15:
					func_185(&Var1, -99, -99, 21, 9, 12, 0, 26, 0, 0, -99, 0, 0, 31);
					break;
				
				case 16:
					func_185(&Var1, -99, -99, 135, 40, 0, 0, 26, 0, 0, -99, 0, 0, 31);
					break;
				
				case 17:
					func_185(&Var1, -99, -99, 74, 24, 52, 0, 26, 0, 0, -99, 0, 0, 31);
					break;
				
				case 18:
					func_185(&Var1, -99, -99, 176, 53, 26, 5, 26, 0, 0, -99, 0, 41, 31);
					break;
				
				case 19:
					func_185(&Var1, -99, -99, 125, 24, 18, 0, 26, 0, 0, -99, 0, 0, 31);
					break;
				
				case 20:
					func_185(&Var1, -99, -99, 162, 24, 36, 0, 26, 0, 0, -99, 0, 0, 31);
					break;
				
				case 21:
					func_185(&Var1, -99, -99, 75, 24, 36, 0, 26, 0, 0, -99, 0, 0, 4);
					break;
				
				case 22:
					func_185(&Var1, -99, -99, 227, 53, 25, 0, 27, 0, 0, -99, 0, 25, 31);
					break;
				
				case 23:
					func_185(&Var1, -99, -99, 228, 54, 25, 0, 28, 0, 0, -99, 0, 26, 31);
					break;
				
				case 24:
					func_185(&Var1, -99, -99, 229, 55, 25, 0, 29, 0, 0, -99, 0, 27, 31);
					break;
				
				case 25:
					func_185(&Var1, -99, -99, 230, 56, 25, 0, 30, 0, 0, -99, 0, 28, 31);
					break;
				
				case 26:
					func_185(&Var1, -99, -99, 231, 57, 25, 0, 31, 0, 0, -99, 0, 29, 31);
					break;
				
				case 27:
					func_185(&Var1, -99, -99, 232, 58, 25, 0, 32, 0, 0, -99, 0, 30, 31);
					break;
				
				case 28:
					func_185(&Var1, -99, -99, 233, 59, 25, 0, 33, 0, 0, -99, 0, 31, 31);
					break;
				
				case 29:
					func_185(&Var1, -99, -99, 234, 60, 25, 0, 34, 0, 0, -99, 0, 32, 31);
					break;
				
				case 30:
					func_185(&Var1, -99, -99, 235, 61, 25, 0, 35, 0, 0, -99, 0, 33, 31);
					break;
				
				case 31:
					func_185(&Var1, -99, -99, 236, 62, 25, 0, 36, 0, 0, -99, 0, 34, 31);
					break;
				
				case 32:
					func_185(&Var1, -99, -99, 237, 63, 25, 0, 37, 0, 0, -99, 0, 35, 31);
					break;
				
				case 33:
					func_185(&Var1, -99, -99, 238, 64, 25, 0, 38, 0, 0, -99, 0, 36, 31);
					break;
				
				case 34:
					func_185(&Var1, -99, -99, 239, 65, 25, 0, 39, 0, 0, -99, 0, 37, 31);
					break;
				
				case 35:
					func_185(&Var1, -99, -99, 240, 66, 25, 0, 40, 0, 0, -99, 0, 38, 31);
					break;
				
				case 36:
					func_185(&Var1, -99, -99, 241, 67, 25, 0, 41, 0, 0, -99, 0, 39, 31);
					break;
				
				case 37:
					func_185(&Var1, -99, -99, 242, 68, 25, 0, 42, 0, 0, -99, 0, 40, 31);
					break;
				
				case 38:
					func_185(&Var1, -99, -99, 260, 72, 17, 0, 26, 0, 0, -99, 0, 0, 31);
					break;
				
				case 39:
					func_185(&Var1, -99, -99, 125, 24, 0, 0, 26, 0, 0, -99, 0, 0, 31);
					break;
				
				case 40:
					func_185(&Var1, -99, -99, 123, 24, 0, 0, 26, 0, 0, -99, 0, 0, 31);
					break;
				
				case 41:
					func_185(&Var1, -99, -99, 159, 69, 17, 5, 26, 0, 0, -99, 0, 0, 31);
					break;
				
				case 42:
					func_185(&Var1, -99, -99, 89, 22, 15, 6, 26, 0, 0, -99, 0, 0, 31);
					break;
				
				case 43:
					func_185(&Var1, -99, -99, 317, 69, 17, 0, 0, 0, 51, -99, 0, 0, 6);
					break;
				
				case 44:
					func_185(&Var1, -99, -99, 30, 23, 16, 0, 0, 0, 0, -99, 0, 0, 7);
					break;
				
				case 45:
					func_185(&Var1, -99, -99, 106, 70, 17, 5, 26, 0, 0, -99, 0, 0, 8);
					break;
				
				case 46:
					func_185(&Var1, -99, -99, 117, 24, 20, 5, 26, 0, 52, -99, 0, 0, 31);
					break;
				
				default:
					func_183(&Var1, iParam0, iParam1, 47);
					break;
			}
			break;
		
		case joaat("player_two"):
			switch (iParam1)
			{
				case 0:
					func_185(&Var1, -99, -99, 0, 91, 28, 0, 0, 0, 0, -99, 0, 0, 31);
					break;
				
				case 1:
					func_185(&Var1, -99, -99, 17, 5, 8, 2, 3, 0, 0, -99, 0, 0, 8);
					break;
				
				case 2:
					func_185(&Var1, -99, -99, 43, 8, 12, 3, 5, 0, 0, -99, 0, 0, 1);
					break;
				
				case 3:
					func_185(&Var1, -99, -99, 50, 14, 8, 0, 15, 6, 3, -99, 0, 0, 2);
					break;
				
				case 4:
					func_185(&Var1, -99, -99, Global_101652.f_2079.f_539.f_196[2], Global_101652.f_2079.f_539.f_200[2], 8, 0, 0, 0, 0, -99, 0, 0, 31);
					break;
				
				case 5:
					func_185(&Var1, -99, -99, 95, 33, 8, 0, 15, 0, 0, -99, 0, 0, 6);
					break;
				
				case 6:
					func_185(&Var1, -99, -99, 49, 13, 10, 4, 6, 0, 0, -99, 0, 0, 3);
					break;
				
				case 7:
					func_185(&Var1, -99, -99, 49, 13, 14, 4, 15, 0, 0, -99, 0, 0, 4);
					break;
				
				case 8:
					func_185(&Var1, -99, -99, 79, 32, 8, 5, 7, 0, 0, -99, 0, 0, 31);
					break;
				
				case 9:
					func_185(&Var1, -99, -99, 53, 17, 11, 0, 15, 0, 0, -99, 0, 0, 31);
					break;
				
				case 10:
					func_185(&Var1, -99, -99, 96, 81, 8, 0, 0, 0, 0, -99, 0, 0, 31);
					break;
				
				case 11:
					func_185(&Var1, -99, -99, 51, 15, 33, 0, 8, 0, 0, -99, 0, 0, 5);
					break;
				
				case 12:
					func_185(&Var1, -99, -99, 0, 93, 29, 0, 13, 0, 0, -99, 0, 0, 31);
					break;
				
				case 13:
					func_185(&Var1, -99, -99, 52, 16, 30, 5, 15, 0, 0, -99, 0, 0, 31);
					break;
				
				case 14:
					func_185(&Var1, -99, -99, 241, 92, 16, 0, 12, 0, 0, -99, 0, 0, 31);
					break;
				
				case 15:
					func_185(&Var1, -99, -99, 97, 34, 8, 0, 0, 0, 0, -99, 0, 0, 31);
					break;
				
				case 16:
					func_185(&Var1, -99, -99, 44, 9, 12, 0, 15, 0, 0, -99, 0, 0, 31);
					break;
				
				case 17:
					func_185(&Var1, -99, -99, 45, 10, 12, 0, 15, 0, 0, -99, 0, 0, 31);
					break;
				
				case 18:
					func_185(&Var1, -99, -99, 46, 11, 12, 0, 15, 0, 0, -99, 0, 0, 31);
					break;
				
				case 19:
					func_185(&Var1, -99, -99, 47, 12, 12, 0, 15, 0, 0, -99, 0, 0, 31);
					break;
				
				case 20:
					func_185(&Var1, -99, -99, 161, 53, 8, 0, 15, 0, 0, -99, 0, 0, 31);
					break;
				
				case 21:
					func_185(&Var1, -99, -99, 0, 44, 8, 0, 0, 0, 0, -99, 0, 0, 31);
					break;
				
				case 22:
					func_185(&Var1, -99, -99, 98, 0, 28, 0, 15, 0, 0, -99, 0, 0, 31);
					break;
				
				case 23:
					func_185(&Var1, -99, -99, 27, 0, 31, 0, 15, 0, 0, -99, 0, 0, 31);
					break;
				
				case 24:
					func_185(&Var1, -99, -99, 190, 71, 8, 0, 15, 0, 0, -99, 0, 0, 31);
					break;
				
				case 25:
					func_185(&Var1, -99, -99, 191, 72, 8, 0, 15, 0, 0, -99, 0, 0, 31);
					break;
				
				case 26:
					func_185(&Var1, -99, -99, 192, 73, 8, 0, 15, 0, 0, -99, 0, 0, 31);
					break;
				
				case 27:
					func_185(&Var1, -99, -99, 193, 74, 8, 0, 15, 0, 0, -99, 0, 0, 31);
					break;
				
				case 28:
					func_185(&Var1, -99, -99, 194, 75, 8, 0, 15, 0, 0, -99, 0, 0, 31);
					break;
				
				case 29:
					func_185(&Var1, -99, -99, 195, 76, 8, 0, 15, 0, 0, -99, 0, 0, 31);
					break;
				
				case 30:
					func_185(&Var1, -99, -99, 196, 77, 8, 0, 15, 0, 0, -99, 0, 0, 31);
					break;
				
				case 31:
					func_185(&Var1, -99, -99, 197, 78, 8, 0, 15, 0, 0, -99, 0, 0, 31);
					break;
				
				case 32:
					func_185(&Var1, -99, -99, 198, 79, 8, 0, 15, 0, 0, -99, 0, 0, 31);
					break;
				
				case 33:
					func_185(&Var1, -99, -99, 199, 80, 8, 0, 15, 0, 0, -99, 0, 0, 31);
					break;
				
				case 34:
					func_185(&Var1, -99, -99, 200, 62, 16, 0, 15, 0, 0, -99, 0, 0, 31);
					break;
				
				case 35:
					func_185(&Var1, -99, -99, 201, 63, 16, 0, 15, 0, 0, -99, 0, 0, 31);
					break;
				
				case 36:
					func_185(&Var1, -99, -99, 202, 64, 16, 0, 15, 0, 0, -99, 0, 0, 31);
					break;
				
				case 37:
					func_185(&Var1, -99, -99, 203, 65, 16, 0, 15, 0, 0, -99, 0, 0, 31);
					break;
				
				case 38:
					func_185(&Var1, -99, -99, 204, 66, 16, 0, 15, 0, 0, -99, 0, 0, 31);
					break;
				
				case 39:
					func_185(&Var1, -99, -99, 205, 67, 16, 0, 15, 0, 0, -99, 0, 0, 31);
					break;
				
				case 40:
					func_185(&Var1, -99, -99, 206, 68, 16, 0, 15, 0, 0, -99, 0, 0, 31);
					break;
				
				case 41:
					func_185(&Var1, -99, -99, 2, 43, 8, 0, 0, 0, 0, -99, 0, 0, 31);
					break;
				
				case 42:
					func_185(&Var1, -99, -99, 55, 0, 28, 0, 0, 0, 0, -99, 0, 0, 31);
					break;
				
				case 43:
					func_185(&Var1, -99, -99, 0, 52, 8, 0, 0, 0, 0, -99, 0, 0, 31);
					break;
				
				case 44:
					func_185(&Var1, -99, -99, 70, 30, 32, 6, 15, 0, 0, -99, 0, 0, 31);
					break;
				
				case 45:
					func_185(&Var1, -99, -99, 19, 91, 28, 0, 0, 0, 0, -99, 0, 0, 7);
					break;
				
				case 46:
					func_185(&Var1, -99, -99, 0, 0, 28, 0, 0, 0, 0, -99, 0, 0, 31);
					break;
				
				case 47:
					func_185(&Var1, -99, -99, 79, 32, 8, 5, 15, 0, 0, -99, 0, 0, 31);
					break;
				
				default:
					func_183(&Var1, iParam0, iParam1, 48);
					break;
			}
			break;
		
		case joaat("mp_m_freemode_01"):
			switch (iParam1)
			{
				case 0:
					func_185(&Var1, -99, -99, 0, 0, 10, -99, 0, -99, -99, 0, 0, 0, 31);
					break;
				
				case 1:
					func_185(&Var1, -99, -99, 1, 127, 38, -99, 2, 0, 0, 0, 0, 62, 0);
					break;
				
				case 2:
					func_185(&Var1, -99, -99, 0, 248, 45, -99, 240, 0, 0, 0, 0, 144, 1);
					break;
				
				case 3:
					func_185(&Var1, -99, -99, 4, 31, 25, -99, 240, 0, 0, 0, 0, 231, 2);
					break;
				
				case 4:
					func_185(&Var1, -99, -99, 1, 66, 10, -99, 21, 0, 0, 0, 0, 123, 3);
					break;
				
				case 5:
					func_185(&Var1, -99, -99, 1, 93, 141, -99, 3, 0, 0, 0, 0, 114, 4);
					break;
				
				case 6:
					func_185(&Var1, -99, -99, 1, 116, 113, -99, 7, 0, 0, 0, 0, 113, 5);
					break;
				
				case 7:
					func_185(&Var1, -99, -99, 1, 61, 136, -99, 27, 0, 0, 0, 0, 61, 6);
					break;
				
				case 8:
					func_185(&Var1, -99, -99, 0, 112, 10, -99, 240, 0, 0, 0, 0, 8, 7);
					break;
				
				case 9:
					func_185(&Var1, -99, -99, 4, 131, 24, -99, 240, 0, 0, 0, 0, 223, 8);
					break;
				
				case 10:
					func_185(&Var1, -99, -99, 1, 209, 188, -99, 208, 0, 0, 0, 0, 64, 9);
					break;
				
				case 11:
					func_185(&Var1, -99, -99, 1, 209, 160, -99, 211, 0, 0, 0, 43, 157, 10);
					break;
				
				case 12:
					func_185(&Var1, -99, -99, 1, 162, 174, -99, 201, 0, 0, 0, 0, 158, 11);
					break;
				
				case 13:
					func_185(&Var1, -99, -99, 1, 4, 240, -99, 34, 0, 0, 0, 0, 97, 12);
					break;
				
				case 14:
					func_185(&Var1, -99, -99, 1, 128, 232, -99, 43, 0, 0, 0, 0, 102, 13);
					break;
				
				case 15:
					func_185(&Var1, -99, -99, 1, 66, 65, -99, 224, 0, 0, 0, 0, 100, 14);
					break;
				
				case 16:
					func_185(&Var1, -99, -99, 1, 65, 172, -99, 202, 0, 0, 0, 0, 64, 15);
					break;
				
				case 17:
					func_185(&Var1, -99, -99, 1, 64, 10, -99, 1, 0, 0, 0, 0, 66, 16);
					break;
				
				case 18:
					func_185(&Var1, -99, -99, 5, 98, 80, -99, 240, 0, 0, 0, 0, 87, 17);
					break;
				
				case 19:
					func_185(&Var1, -99, -99, 5, 192, 96, -99, 240, 0, 0, 0, 0, 80, 18);
					break;
				
				case 20:
					func_185(&Var1, -99, -99, 1, 124, 96, -99, 11, 0, 0, 0, 0, 110, 19);
					break;
				
				case 21:
					func_185(&Var1, -99, -99, 0, 80, 114, -99, 240, 0, 0, 0, 0, 2, 20);
					break;
				
				case 22:
					func_185(&Var1, -99, -99, 6, 43, 112, -99, 82, 0, 0, 0, 0, 48, 21);
					break;
				
				case 23:
					func_185(&Var1, -99, -99, 1, 116, 144, -99, 2, 0, 0, 0, 0, 108, 22);
					break;
				
				case 24:
					func_185(&Var1, -99, -99, 1, 63, 38, -99, 3, 0, 0, 0, 0, 63, 23);
					break;
				
				case 25:
					func_185(&Var1, -99, -99, 2, 64, 10, -99, 240, 0, 0, 0, 0, 41, 24);
					break;
				
				default:
					func_183(&Var1, iParam0, iParam1, 26);
					break;
			}
			break;
		
		case joaat("mp_f_freemode_01"):
			switch (iParam1)
			{
				case 0:
					func_185(&Var1, -99, -99, 0, 0, 0, -99, 0, -99, -99, 0, -99, 0, 31);
					break;
				
				case 1:
					func_185(&Var1, -99, -99, 5, 136, 241, -99, 47, 0, 0, 0, 0, 21, 31);
					break;
				
				case 2:
					func_185(&Var1, -99, -99, 4, 1, 96, -99, 32, 0, 0, 0, 7, 215, 0);
					break;
				
				case 3:
					func_185(&Var1, -99, -99, 1, 73, 241, -99, 3, 0, 0, 0, 0, 25, 1);
					break;
				
				case 4:
					func_185(&Var1, -99, -99, 2, 88, 217, -99, 32, 0, 0, 0, 0, 33, 2);
					break;
				
				case 5:
					func_185(&Var1, -99, -99, 9, 7, 98, -99, 32, 0, 0, 0, 7, 153, 3);
					break;
				
				case 6:
					func_185(&Var1, -99, -99, 1, 140, 241, -99, 7, 0, 0, 0, 31, 16, 4);
					break;
				
				case 7:
					func_185(&Var1, -99, -99, 4, 139, 112, -99, 32, 0, 0, 0, 49, 78, 5);
					break;
				
				case 8:
					func_185(&Var1, -99, -99, 1, 193, 48, -99, 108, 0, 0, 0, 0, 17, 6);
					break;
				
				case 9:
					func_185(&Var1, -99, -99, 5, 114, 97, -99, 103, 0, 0, 0, 0, 98, 7);
					break;
				
				case 10:
					func_185(&Var1, -99, -99, 9, 134, 239, -99, 32, 0, 0, 0, 2, 144, 8);
					break;
				
				case 11:
					func_185(&Var1, -99, -99, 5, 152, 96, -99, 10, 0, 0, 0, 31, 96, 9);
					break;
				
				case 12:
					func_185(&Var1, -99, -99, 6, 129, 1, -99, 96, 0, 0, 0, 5, 120, 10);
					break;
				
				case 13:
					func_185(&Var1, -99, -99, 5, 0, 0, -99, 10, 0, 0, 0, 0, 130, 31);
					break;
				
				case 14:
					func_185(&Var1, -99, -99, 4, 159, 96, -99, 32, 0, 0, 0, 22, 214, 11);
					break;
				
				case 15:
					func_185(&Var1, -99, -99, 9, 232, 213, -99, 32, 0, 0, 0, 22, 147, 12);
					break;
				
				case 16:
					func_185(&Var1, -99, -99, 2, 8, 98, -99, 32, 0, 0, 0, 33, 39, 13);
					break;
				
				case 17:
					func_185(&Var1, -99, -99, 5, 150, 235, -99, 106, 0, 0, 0, 0, 128, 14);
					break;
				
				case 18:
					func_185(&Var1, -99, -99, 6, 96, 97, -99, 7, 0, 0, 0, 32, 114, 15);
					break;
				
				case 19:
					func_185(&Var1, -99, -99, 4, 48, 64, -99, 32, 0, 0, 0, 0, 89, 16);
					break;
				
				case 20:
					func_185(&Var1, -99, -99, 4, 62, 64, -99, 32, 0, 0, 0, 0, 78, 17);
					break;
				
				case 21:
					func_185(&Var1, -99, -99, 4, 49, 65, -99, 32, 0, 0, 0, 8, 80, 31);
					break;
				
				case 22:
					func_185(&Var1, -99, -99, 3, 20, 16, -99, 32, 0, 0, 0, 0, 49, 18);
					break;
				
				case 23:
					func_185(&Var1, -99, -99, 0, 73, 178, -99, 32, 0, 0, 0, 38, 11, 19);
					break;
				
				case 24:
					func_185(&Var1, -99, -99, 5, 135, 53, -99, 9, 0, 0, 0, 29, 27, 20);
					break;
				
				case 25:
					func_185(&Var1, -99, -99, 7, 233, 176, -99, 120, 0, 0, 0, 11, 160, 21);
					break;
				
				case 26:
					func_185(&Var1, -99, -99, 4, 34, 179, -99, 32, 0, 0, 0, 0, 77, 22);
					break;
				
				case 27:
					func_185(&Var1, -99, -99, 15, 131, 93, -99, 32, 0, 0, 0, 0, 250, 23);
					break;
				
				default:
					func_183(&Var1, iParam0, iParam1, 28);
					break;
			}
			break;
	}
	return Var1;
}

void func_183(var uParam0, int iParam1, int iParam2, int iParam3)//Position - 0x28081
{
	int iVar0;
	struct<5> Var1;
	vector3 vVar16;
	struct<2> Var19;
	int iVar36;
	
	(*uParam0)[0] = 0;
	(*uParam0)[2] = -99;
	(*uParam0)[3] = 0;
	(*uParam0)[4] = 0;
	(*uParam0)[6] = 0;
	(*uParam0)[5] = 0;
	(*uParam0)[8] = 0;
	(*uParam0)[9] = 0;
	(*uParam0)[10] = 0;
	(*uParam0)[1] = 0;
	(*uParam0)[7] = 0;
	(*uParam0)[11] = 0;
	(*uParam0)[13] = -99;
	(*uParam0)[14] = -99;
	uParam0->f_16 = 0;
	iVar0 = 0;
	if (iParam1 == joaat("player_zero"))
	{
		iVar0 = 0;
		(*uParam0)[13] = (10 + (iParam2 - iParam3));
	}
	else if (iParam1 == joaat("player_one"))
	{
		iVar0 = 1;
		(*uParam0)[13] = (9 + (iParam2 - iParam3));
	}
	else if (iParam1 == joaat("player_two"))
	{
		iVar0 = 2;
		(*uParam0)[13] = (9 + (iParam2 - iParam3));
	}
	else if (iParam1 == joaat("mp_m_freemode_01"))
	{
		iVar0 = 3;
	}
	else if (iParam1 == joaat("mp_f_freemode_01"))
	{
		iVar0 = 4;
	}
	dlc1::_0xF3FBE2D50A6A8C28(iVar0, 0);
	dlc1::get_shop_ped_query_outfit((iParam2 - iParam3), &Var1);
	if (!dlc1::_is_dlc_data_empty(Var1))
	{
		iVar36 = 0;
		while (iVar36 < Var1.f_4)
		{
			if (dlc1::_get_prop_from_outfit(Var1.f_1, iVar36, &vVar16))
			{
				if ((vVar16.x != 0 && vVar16.x != -1) && vVar16.x != 1849449579)
				{
					if (vVar16.y == 10)
					{
						dlc1::init_shop_ped_component(&Var19);
						dlc1::get_shop_ped_component(vVar16.x, &Var19);
						if (vVar16.x != Var19.f_1)
						{
							uParam0->f_16 = 1;
						}
					}
					if (vVar16.y == 10 && uParam0->f_16)
					{
						(*uParam0)[func_184(vVar16.y)] = vVar16.x;
						uParam0->f_16 = 1;
					}
					else
					{
						(*uParam0)[func_184(vVar16.y)] = func_75(iParam1, vVar16.x, func_184(vVar16.y), iVar0);
					}
				}
				else if (vVar16.y != -1)
				{
					(*uParam0)[func_184(vVar16.y)] = vVar16.y;
				}
			}
			iVar36++;
		}
		if (Var1.f_3 == 0)
		{
			(*uParam0)[13] = -99;
		}
		else
		{
			(*uParam0)[13] = Var1.f_1;
		}
	}
}

int func_184(int iParam0)//Position - 0x2826B
{
	switch (iParam0)
	{
		case 0:
			return 0;
			break;
		
		case 2:
			return 2;
			break;
		
		case 3:
			return 3;
			break;
		
		case 4:
			return 4;
			break;
		
		case 6:
			return 6;
			break;
		
		case 5:
			return 5;
			break;
		
		case 8:
			return 8;
			break;
		
		case 9:
			return 9;
			break;
		
		case 10:
			return 10;
			break;
		
		case 1:
			return 1;
			break;
		
		case 7:
			return 7;
			break;
		
		case 11:
			return 11;
			break;
	}
	return 0;
}

void func_185(var uParam0, int iParam1, int iParam2, int iParam3, int iParam4, int iParam5, int iParam6, int iParam7, int iParam8, int iParam9, int iParam10, int iParam11, int iParam12, int iParam13)//Position - 0x2831B
{
	(*uParam0)[0] = iParam1;
	(*uParam0)[2] = iParam2;
	(*uParam0)[3] = iParam3;
	(*uParam0)[4] = iParam4;
	(*uParam0)[6] = iParam5;
	(*uParam0)[5] = iParam6;
	(*uParam0)[8] = iParam7;
	(*uParam0)[9] = iParam8;
	(*uParam0)[10] = iParam9;
	(*uParam0)[1] = iParam10;
	(*uParam0)[7] = iParam11;
	(*uParam0)[11] = iParam12;
	(*uParam0)[13] = iParam13;
	(*uParam0)[14] = -99;
}

void func_186(int iParam0, int iParam1, int iParam2, int iParam3)//Position - 0x2838C
{
	int iVar0;
	int iVar1;
	int iVar2;
	var uVar3;
	int iVar4;
	int iVar5;
	int iVar6;
	int iVar7;
	int iVar8;
	int iVar9;
	int iVar10[2];
	struct<2> Var13;
	int iVar30;
	int iVar31;
	int iVar32;
	int iVar33;
	struct<2> Var34;
	int iVar51;
	int iVar52;
	int iVar53;
	
	if (network::network_is_game_in_progress())
	{
		if (Global_69516 != func_39() || iParam2 == -99)
		{
			return;
		}
		Global_69518[2 /*14*/] = { func_192(iParam0, iParam1, iParam2) };
		if (gameplay::is_bit_set(Global_69518[2 /*14*/].f_6, 1) && gameplay::is_bit_set(Global_69518[2 /*14*/].f_6, 6))
		{
			if (iParam1 == 12)
			{
				func_189(Global_2621444, 2, 1, 1, -1);
			}
			else if (iParam1 == 13)
			{
			}
			else if (iParam1 == 14)
			{
				func_189(Global_2621444, 2, 1, 1, -1);
			}
			else
			{
				func_189(Global_2621444, 2, 1, 1, -1);
			}
			if (iParam3)
			{
				iVar0 = dlc1::_0xC17AD0E5752BECDA(Global_2621444);
				iVar5 = 0;
				iVar1 = 0;
				while (iVar1 < iVar0)
				{
					if (iVar5 < Global_2592865)
					{
						Global_2592865[iVar5] = -1;
						Global_2592876[iVar5] = -1;
					}
					dlc1::get_variant_component(Global_2621444, iVar1, &iVar2, &uVar3, &iVar4);
					if (iVar4 != 10 && iVar4 != 9)
					{
						if (iParam1 == 4 && dlc1::_0x341DE7ED1D2A1BFD(Global_2621444, -1223513441, 0))
						{
						}
						else if (iVar2 != 0 && iVar2 != 1849449579)
						{
							func_189(iVar2, 2, 1, 1, -1);
							if (iVar5 < Global_2592865)
							{
								Global_2592865[iVar5] = iVar2;
								Global_2592876[iVar5] = iVar4;
								iVar5++;
							}
						}
						else
						{
							func_186(iParam0, func_184(iVar4), uVar3, 0);
						}
					}
					iVar1++;
				}
				Global_2592864++;
				if (Global_2592864 < 2)
				{
					iVar1 = 0;
					while (iVar1 < iVar5)
					{
						if (iVar1 < Global_2592865)
						{
							if (Global_2592865[iVar1] != -1)
							{
								if (iParam0 == joaat("mp_m_freemode_01"))
								{
									func_186(iParam0, func_184(Global_2592876[iVar1]), func_75(iParam0, Global_2592865[iVar1], func_184(Global_2592876[iVar1]), 3), 1);
								}
								else
								{
									func_186(iParam0, func_184(Global_2592876[iVar1]), func_75(iParam0, Global_2592865[iVar1], func_184(Global_2592876[iVar1]), 4), 1);
								}
							}
						}
						iVar1++;
					}
				}
				Global_2592864 = (Global_2592864 - 1);
			}
			return;
		}
		if (gameplay::is_bit_set(Global_69518[2 /*14*/].f_6, 1) && !gameplay::is_bit_set(Global_69518[2 /*14*/].f_6, 6))
		{
			if (func_188(iParam1, Global_69518[1 /*14*/].f_2, &iVar6))
			{
				iVar7 = func_359(iVar6, Global_69516, 0);
				gameplay::set_bit(&iVar7, Global_69518[2 /*14*/].f_1);
				func_237(iVar6, iVar7, Global_69516, 1, 0);
			}
			if (iParam3 == 1)
			{
				if (iParam0 == joaat("mp_m_freemode_01"))
				{
					if (iParam1 == 14)
					{
						if (iParam2 >= 83 && iParam2 <= 90)
						{
							iVar8 = (75 + Global_69518[2 /*14*/].f_4);
							func_186(iParam0, 14, iVar8, 0);
						}
						else if (iParam2 >= 75 && iParam2 <= 82)
						{
							iVar8 = (83 + Global_69518[2 /*14*/].f_4);
							func_186(iParam0, 14, iVar8, 0);
						}
					}
					else if (iParam1 == 8)
					{
						if (iParam2 >= 48 && iParam2 <= 63)
						{
							iVar8 = (64 + Global_69518[2 /*14*/].f_4);
							func_186(iParam0, 8, iVar8, 0);
						}
						else if (iParam2 >= 64 && iParam2 <= 79)
						{
							iVar8 = (48 + Global_69518[2 /*14*/].f_4);
							func_186(iParam0, 8, iVar8, 0);
						}
						else if (iParam2 >= 96 && iParam2 <= 111)
						{
							iVar8 = (112 + Global_69518[2 /*14*/].f_4);
							func_186(iParam0, 8, iVar8, 0);
						}
						else if (iParam2 >= 112 && iParam2 <= 127)
						{
							iVar8 = (96 + Global_69518[2 /*14*/].f_4);
							func_186(iParam0, 8, iVar8, 0);
						}
						else if (iParam2 >= 176 && iParam2 <= 191)
						{
							iVar8 = (160 + Global_69518[2 /*14*/].f_4);
							func_186(iParam0, 8, iVar8, 0);
						}
						else if (iParam2 >= 160 && iParam2 <= 175)
						{
							iVar8 = (176 + Global_69518[2 /*14*/].f_4);
							func_186(iParam0, 8, iVar8, 0);
						}
						else if (iParam2 >= 32 && iParam2 <= 47)
						{
							iVar8 = (0 + Global_69518[2 /*14*/].f_4);
							func_186(iParam0, 11, iVar8, 0);
						}
						else if (iParam2 >= 224 && iParam2 <= 239)
						{
							iVar8 = (16 + Global_69518[2 /*14*/].f_4);
							func_186(iParam0, 11, iVar8, 0);
						}
					}
					else if (iParam1 == 11)
					{
						if (iParam2 >= 0 && iParam2 <= 15)
						{
							iVar8 = (32 + Global_69518[2 /*14*/].f_4);
							func_186(iParam0, 8, iVar8, 0);
						}
						else if (iParam2 >= 16 && iParam2 <= 31)
						{
							iVar8 = (224 + Global_69518[2 /*14*/].f_4);
							func_186(iParam0, 8, iVar8, 0);
						}
						else if (iParam2 >= 220 && iParam2 <= 235)
						{
							switch (iParam2)
							{
								case 220:
									iVar10[0] = 691352495;
									iVar10[1] = 691352495;
									break;
								
								case 221:
									iVar10[0] = 451909412;
									iVar10[1] = 451909412;
									break;
								
								case 222:
									iVar10[0] = -206550874;
									iVar10[1] = -206550874;
									break;
								
								case 223:
									iVar10[0] = -445797343;
									iVar10[1] = -445797343;
									break;
								
								case 224:
									iVar10[0] = -173716332;
									iVar10[1] = -173716332;
									break;
								
								case 225:
									iVar10[0] = -538304226;
									iVar10[1] = -538304226;
									break;
								
								case 226:
									iVar10[0] = -592242000;
									iVar10[1] = -592242000;
									break;
								
								case 227:
									iVar10[0] = -831095241;
									iVar10[1] = -831095241;
									break;
								
								case 228:
									iVar10[0] = -1092100326;
									iVar10[1] = -1092100326;
									break;
								
								case 229:
									iVar10[0] = -1465994616;
									iVar10[1] = -1465994616;
									break;
								
								case 230:
									iVar10[0] = 507503642;
									iVar10[1] = 507503642;
									break;
								
								case 231:
									iVar10[0] = -1392082519;
									iVar10[1] = -1392082519;
									break;
								
								case 232:
									iVar10[0] = -88859389;
									iVar10[1] = -88859389;
									break;
								
								case 233:
									iVar10[0] = 157858412;
									iVar10[1] = 157858412;
									break;
								
								case 234:
									iVar10[0] = -513152401;
									iVar10[1] = -513152401;
									break;
								
								case 235:
									iVar10[0] = 2004948615;
									iVar10[1] = 2004948615;
									break;
							}
							dlc1::init_shop_ped_component(&Var13);
							iVar32 = dlc1::_get_num_props_from_outfit(3, 6, -1, 0, -1, 8);
							iVar30 = 0;
							while (iVar30 < iVar32)
							{
								dlc1::get_shop_ped_query_component(iVar30, &Var13);
								if (!dlc1::_is_dlc_data_empty(Var13))
								{
									if (Var13.f_1 == iVar10[0] || Var13.f_1 == iVar10[1])
									{
										func_186(iParam0, 8, (241 + iVar31), 0);
										iVar30 = iVar32 + 1;
									}
									iVar31++;
								}
								iVar30++;
							}
						}
					}
					else if (iParam1 == 7)
					{
						if (iParam2 >= 41 && iParam2 <= 56)
						{
							switch (Global_69518[2 /*14*/].f_4)
							{
								case 0:
									func_186(iParam0, 7, func_75(iParam0, -1893758670, 7, 3), 0);
									func_186(iParam0, 7, func_75(iParam0, 221276858, 7, 3), 0);
									break;
								
								case 1:
									func_186(iParam0, 7, func_75(iParam0, -1596052305, 7, 3), 0);
									func_186(iParam0, 7, func_75(iParam0, 576886046, 7, 3), 0);
									break;
								
								case 2:
									func_186(iParam0, 7, func_75(iParam0, 1233059274, 7, 3), 0);
									func_186(iParam0, 7, func_75(iParam0, -392978047, 7, 3), 0);
									break;
								
								case 3:
									func_186(iParam0, 7, func_75(iParam0, 232228476, 7, 3), 0);
									func_186(iParam0, 7, func_75(iParam0, -33764269, 7, 3), 0);
									break;
								
								case 4:
									func_186(iParam0, 7, func_75(iParam0, -454445919, 7, 3), 0);
									func_186(iParam0, 7, func_75(iParam0, 1510704243, 7, 3), 0);
									break;
								
								case 5:
									func_186(iParam0, 7, func_75(iParam0, 925653285, 7, 3), 0);
									func_186(iParam0, 7, func_75(iParam0, 1800939276, 7, 3), 0);
									break;
								
								case 6:
									func_186(iParam0, 7, func_75(iParam0, -2104856604, 7, 3), 0);
									func_186(iParam0, 7, func_75(iParam0, 833565623, 7, 3), 0);
									break;
								
								case 7:
									func_186(iParam0, 7, func_75(iParam0, 1657483366, 7, 3), 0);
									func_186(iParam0, 7, func_75(iParam0, 1201823645, 7, 3), 0);
									break;
								
								case 8:
									func_186(iParam0, 7, func_75(iParam0, 501294735, 7, 3), 0);
									func_186(iParam0, 7, func_75(iParam0, 2132496022, 7, 3), 0);
									break;
								
								case 9:
									func_186(iParam0, 7, func_75(iParam0, 1882573627, 7, 3), 0);
									func_186(iParam0, 7, func_75(iParam0, -1939019463, 7, 3), 0);
									break;
								
								case 10:
									func_186(iParam0, 7, func_75(iParam0, 206035418, 7, 3), 0);
									func_186(iParam0, 7, func_75(iParam0, 1713491273, 7, 3), 0);
									break;
								
								case 11:
									func_186(iParam0, 7, func_75(iParam0, -642943834, 7, 3), 0);
									func_186(iParam0, 7, func_75(iParam0, -156668318, 7, 3), 0);
									break;
								
								case 12:
									func_186(iParam0, 7, func_75(iParam0, -388295935, 7, 3), 0);
									func_186(iParam0, 7, func_75(iParam0, 106696135, 7, 3), 0);
									break;
								
								case 13:
									func_186(iParam0, 7, func_75(iParam0, 927641567, 7, 3), 0);
									func_186(iParam0, 7, func_75(iParam0, -802905767, 7, 3), 0);
									break;
								
								case 14:
									func_186(iParam0, 7, func_75(iParam0, 1147226636, 7, 3), 0);
									func_186(iParam0, 7, func_75(iParam0, -505527092, 7, 3), 0);
									break;
								
								case 15:
									func_186(iParam0, 7, func_75(iParam0, 312665744, 7, 3), 0);
									func_186(iParam0, 7, func_75(iParam0, -1144129332, 7, 3), 0);
									break;
							}
						}
						else if (iParam2 >= 73 && iParam2 <= 88)
						{
							switch (Global_69518[2 /*14*/].f_4)
							{
								case 0:
									func_186(iParam0, 7, func_75(iParam0, -335266079, 7, 3), 0);
									func_186(iParam0, 7, func_75(iParam0, -925989020, 7, 3), 0);
									break;
								
								case 1:
									func_186(iParam0, 7, func_75(iParam0, -1379548555, 7, 3), 0);
									func_186(iParam0, 7, func_75(iParam0, 244486895, 7, 3), 0);
									break;
								
								case 2:
									func_186(iParam0, 7, func_75(iParam0, -1402159165, 7, 3), 0);
									func_186(iParam0, 7, func_75(iParam0, 1095104597, 7, 3), 0);
									break;
								
								case 3:
									func_186(iParam0, 7, func_75(iParam0, 1357351098, 7, 3), 0);
									func_186(iParam0, 7, func_75(iParam0, 1787874026, 7, 3), 0);
									break;
								
								case 4:
									func_186(iParam0, 7, func_75(iParam0, -1097178082, 7, 3), 0);
									func_186(iParam0, 7, func_75(iParam0, 476163725, 7, 3), 0);
									break;
								
								case 5:
									func_186(iParam0, 7, func_75(iParam0, -179482237, 7, 3), 0);
									func_186(iParam0, 7, func_75(iParam0, 1223952305, 7, 3), 0);
									break;
								
								case 6:
									func_186(iParam0, 7, func_75(iParam0, -750514831, 7, 3), 0);
									func_186(iParam0, 7, func_75(iParam0, 2049796643, 7, 3), 0);
									break;
								
								case 7:
									func_186(iParam0, 7, func_75(iParam0, -1724573356, 7, 3), 0);
									func_186(iParam0, 7, func_75(iParam0, -1013547784, 7, 3), 0);
									break;
								
								case 8:
									func_186(iParam0, 7, func_75(iParam0, 94106144, 7, 3), 0);
									func_186(iParam0, 7, func_75(iParam0, 1456972664, 7, 3), 0);
									break;
								
								case 9:
									func_186(iParam0, 7, func_75(iParam0, 1070524041, 7, 3), 0);
									func_186(iParam0, 7, func_75(iParam0, -1670762848, 7, 3), 0);
									break;
								
								case 10:
									func_186(iParam0, 7, func_75(iParam0, -1644577318, 7, 3), 0);
									func_186(iParam0, 7, func_75(iParam0, 1428867383, 7, 3), 0);
									break;
								
								case 11:
									func_186(iParam0, 7, func_75(iParam0, 1865900118, 7, 3), 0);
									func_186(iParam0, 7, func_75(iParam0, -1664165762, 7, 3), 0);
									break;
								
								case 12:
									func_186(iParam0, 7, func_75(iParam0, 1611776523, 7, 3), 0);
									func_186(iParam0, 7, func_75(iParam0, -1962101510, 7, 3), 0);
									break;
								
								case 13:
									func_186(iParam0, 7, func_75(iParam0, 1381115532, 7, 3), 0);
									func_186(iParam0, 7, func_75(iParam0, -1270511757, 7, 3), 0);
									break;
								
								case 14:
									func_186(iParam0, 7, func_75(iParam0, 1636484345, 7, 3), 0);
									func_186(iParam0, 7, func_75(iParam0, -1571626106, 7, 3), 0);
									break;
								
								case 15:
									func_186(iParam0, 7, func_75(iParam0, 1422633851, 7, 3), 0);
									func_186(iParam0, 7, func_75(iParam0, -698332248, 7, 3), 0);
									break;
								}
							}
					}
				}
				else if (iParam0 == joaat("mp_f_freemode_01"))
				{
					if (iParam1 == 11)
					{
						if (iParam2 >= 0 && iParam2 <= 15)
						{
							iVar8 = (16 + Global_69518[2 /*14*/].f_4);
							func_186(iParam0, 8, iVar8, 0);
						}
					}
				}
				Global_69518[2 /*14*/] = { func_192(iParam0, iParam1, iParam2) };
				if (iParam1 == 11)
				{
					iVar9 = func_187(iParam0, iParam2, Global_69518[2 /*14*/].f_4);
					if (iVar9 != -99)
					{
						func_186(iParam0, 8, iVar9, 0);
					}
					if (iParam2 >= 192 && iParam2 <= 203)
					{
						switch (iParam2)
						{
							case 199:
								iVar33 = 331193219;
								break;
							
							case 200:
								iVar33 = 1115060468;
								break;
							
							case 201:
								iVar33 = 779636984;
								break;
						}
						dlc1::init_shop_ped_component(&Var34);
						iVar53 = dlc1::_get_num_props_from_outfit(4, 6, -1, 0, -1, 8);
						iVar51 = 0;
						while (iVar51 < iVar53)
						{
							dlc1::get_shop_ped_query_component(iVar51, &Var34);
							if (!dlc1::_is_dlc_data_empty(Var34))
							{
								if (Var34.f_1 == iVar33)
								{
									func_186(iParam0, 8, (136 + iVar52), 0);
									iVar51 = iVar53 + 1;
								}
								iVar52++;
							}
							iVar51++;
						}
					}
				}
				else if (iParam1 == 8)
				{
					iVar9 = func_150(iParam0, iParam2, Global_69518[2 /*14*/].f_4);
					if (iVar9 != -99)
					{
						func_186(iParam0, 11, iVar9, 0);
					}
				}
			}
		}
	}
}

int func_187(int iParam0, int iParam1, int iParam2)//Position - 0x292BA
{
	int iVar0;
	int iVar1;
	int iVar2;
	int iVar3;
	int iVar4;
	int iVar5;
	int iVar6;
	int iVar7;
	int iVar8;
	int iVar9;
	int iVar10;
	int iVar11;
	int iVar12;
	
	iVar0 = -99;
	if (iParam0 == joaat("mp_m_freemode_01"))
	{
		if (iParam1 <= 15)
		{
			iVar0 = 0;
		}
		else if (iParam1 <= 31)
		{
			iVar0 = 16;
		}
		else if (iParam1 <= 47)
		{
			iVar0 = -99;
		}
		else if (iParam1 <= 63)
		{
			iVar0 = -99;
		}
		else if (iParam1 <= 79)
		{
			iVar0 = -99;
		}
		else if (iParam1 <= 95)
		{
			iVar0 = 80;
		}
		else if (iParam1 <= 107)
		{
			iVar0 = -99;
		}
		else if (iParam1 <= 123)
		{
			iVar0 = -99;
		}
		else if (iParam1 <= 139)
		{
			iVar0 = 128;
		}
		else if (iParam1 <= 155)
		{
			iVar0 = 144;
		}
		else if (iParam1 <= 171)
		{
			iVar0 = -99;
		}
		else if (iParam1 <= 187)
		{
			iVar0 = -99;
		}
		else if (iParam1 <= 203)
		{
			iVar0 = 192;
		}
		else if (iParam1 <= 219)
		{
			iVar0 = 208;
		}
		else if (iParam1 <= 235)
		{
			iVar0 = -99;
		}
		else if (iParam1 <= 236)
		{
			iVar0 = 240;
		}
		else if (iParam1 >= 237)
		{
			iVar1 = func_158(iParam0, iParam1, 11, 3);
			if (iVar1 != -1)
			{
				iVar2 = dlc1::_0xC17AD0E5752BECDA(iVar1);
				iVar3 = 0;
				while (iVar3 < iVar2)
				{
					dlc1::get_variant_component(iVar1, iVar3, &iVar4, &iVar5, &iVar6);
					if (iVar6 == 8)
					{
						if (iVar4 != 0 && iVar4 != 1849449579)
						{
							iVar0 = func_75(iParam0, iVar4, 8, 3);
						}
						else
						{
							iVar0 = iVar5;
						}
						iVar3 = iVar2 + 1;
					}
					iVar3++;
				}
			}
		}
	}
	else if (iParam0 == joaat("mp_f_freemode_01"))
	{
		if (iParam1 <= 15)
		{
			iVar0 = 0;
		}
		else if (iParam1 <= 31)
		{
			iVar0 = -99;
		}
		else if (iParam1 <= 47)
		{
			iVar0 = -99;
		}
		else if (iParam1 <= 63)
		{
			iVar0 = -99;
		}
		else if (iParam1 <= 79)
		{
			iVar0 = 34;
		}
		else if (iParam1 <= 95)
		{
			iVar0 = 50;
		}
		else if (iParam1 <= 111)
		{
			iVar0 = -99;
		}
		else if (iParam1 <= 127)
		{
			iVar0 = -99;
		}
		else if (iParam1 <= 143)
		{
			iVar0 = -99;
		}
		else if (iParam1 <= 159)
		{
			iVar0 = -99;
		}
		else if (iParam1 <= 175)
		{
			iVar0 = -99;
		}
		else if (iParam1 <= 191)
		{
			iVar0 = 71;
		}
		else if (iParam1 <= 207)
		{
			iVar0 = 87;
		}
		else if (iParam1 <= 223)
		{
			iVar0 = 103;
		}
		else if (iParam1 <= 239)
		{
			iVar0 = -99;
		}
		else if (iParam1 <= 255)
		{
			iVar0 = 120;
		}
		else if (iParam1 >= 256)
		{
			iVar7 = func_158(iParam0, iParam1, 11, 4);
			if (iVar7 != -1)
			{
				iVar8 = dlc1::_0xC17AD0E5752BECDA(iVar7);
				iVar9 = 0;
				while (iVar9 < iVar8)
				{
					dlc1::get_variant_component(iVar7, iVar9, &iVar10, &iVar11, &iVar12);
					if (iVar12 == 8)
					{
						if (iVar10 != 0 && iVar10 != 1849449579)
						{
							iVar0 = func_75(iParam0, iVar10, 8, 4);
						}
						else
						{
							iVar0 = iVar11;
						}
						iVar9 = iVar8 + 1;
					}
					iVar9++;
				}
			}
		}
	}
	if (iVar0 != -99)
	{
		iVar0 = (iVar0 + iParam2);
	}
	return iVar0;
}

int func_188(int iParam0, int iParam1, var uParam2)//Position - 0x295AF
{
	*uParam2 = 973;
	switch (iParam1)
	{
		case 0:
			switch (iParam0)
			{
				case 2:
					*uParam2 = 974;
					break;
				
				case 3:
					*uParam2 = 1424;
					break;
				
				case 4:
					*uParam2 = 990;
					break;
				
				case 6:
					*uParam2 = 998;
					break;
				
				case 8:
					*uParam2 = 1425;
					break;
				
				case 9:
					*uParam2 = 1433;
					break;
				
				case 10:
					*uParam2 = 1435;
					break;
				
				case 1:
					*uParam2 = 1006;
					break;
				
				case 7:
					*uParam2 = 1436;
					break;
				
				case 11:
					*uParam2 = 982;
					break;
				
				case 14:
					*uParam2 = 1014;
					break;
				
				case 12:
					*uParam2 = 1025;
					break;
			}
			break;
		
		case 1:
			switch (iParam0)
			{
				case 2:
					*uParam2 = 975;
					break;
				
				case 4:
					*uParam2 = 991;
					break;
				
				case 6:
					*uParam2 = 999;
					break;
				
				case 8:
					*uParam2 = 1426;
					break;
				
				case 9:
					*uParam2 = 1434;
					break;
				
				case 7:
					*uParam2 = 1437;
					break;
				
				case 11:
					*uParam2 = 983;
					break;
				
				case 14:
					*uParam2 = 1015;
					break;
			}
			break;
		
		case 2:
			switch (iParam0)
			{
				case 2:
					*uParam2 = 976;
					break;
				
				case 4:
					*uParam2 = 992;
					break;
				
				case 6:
					*uParam2 = 1000;
					break;
				
				case 8:
					*uParam2 = 1427;
					break;
				
				case 7:
					*uParam2 = 1438;
					break;
				
				case 11:
					*uParam2 = 984;
					break;
				
				case 14:
					*uParam2 = 1016;
					break;
			}
			break;
		
		case 3:
			switch (iParam0)
			{
				case 4:
					*uParam2 = 993;
					break;
				
				case 6:
					*uParam2 = 1001;
					break;
				
				case 8:
					*uParam2 = 1428;
					break;
				
				case 11:
					*uParam2 = 985;
					break;
				
				case 14:
					*uParam2 = 1017;
					break;
			}
			break;
		
		case 4:
			switch (iParam0)
			{
				case 4:
					*uParam2 = 994;
					break;
				
				case 6:
					*uParam2 = 1002;
					break;
				
				case 8:
					*uParam2 = 1429;
					break;
				
				case 11:
					*uParam2 = 986;
					break;
				
				case 14:
					*uParam2 = 1018;
					break;
			}
			break;
		
		case 5:
			switch (iParam0)
			{
				case 4:
					*uParam2 = 995;
					break;
				
				case 6:
					*uParam2 = 1003;
					break;
				
				case 8:
					*uParam2 = 1430;
					break;
				
				case 11:
					*uParam2 = 987;
					break;
				
				case 14:
					*uParam2 = 1019;
					break;
			}
			break;
		
		case 6:
			switch (iParam0)
			{
				case 4:
					*uParam2 = 996;
					break;
				
				case 6:
					*uParam2 = 1004;
					break;
				
				case 8:
					*uParam2 = 1431;
					break;
				
				case 11:
					*uParam2 = 988;
					break;
				
				case 14:
					*uParam2 = 1020;
					break;
			}
			break;
		
		case 7:
			switch (iParam0)
			{
				case 4:
					*uParam2 = 997;
					break;
				
				case 6:
					*uParam2 = 1005;
					break;
				
				case 8:
					*uParam2 = 1432;
					break;
				
				case 11:
					*uParam2 = 989;
					break;
				
				case 14:
					*uParam2 = 1021;
					break;
			}
			break;
		
		case 8:
			switch (iParam0)
			{
				case 14:
					*uParam2 = 1022;
					break;
			}
			break;
		
		case 9:
			switch (iParam0)
			{
				case 14:
					*uParam2 = 1023;
					break;
			}
			break;
		
		case 10:
			switch (iParam0)
			{
				case 14:
					*uParam2 = 1024;
					break;
			}
			break;
	}
	return *uParam2 != 973;
}

void func_189(int iParam0, int iParam1, int iParam2, int iParam3, int iParam4)//Position - 0x299B4
{
	int iVar0;
	int iVar1;
	int iVar2;
	int iVar3;
	
	iVar0 = Global_69516;
	if (iParam4 != -1)
	{
		iVar0 = iParam4;
	}
	if (func_190(iParam0, iParam1, &iVar2, &iVar1, iParam2, iParam3))
	{
		iVar3 = func_359(iVar2, iVar0, 0);
		gameplay::set_bit(&iVar3, iVar1);
		func_237(iVar2, iVar3, iVar0, 1, 0);
	}
}

int func_190(int iParam0, int iParam1, var uParam2, var uParam3, int iParam4, int iParam5)//Position - 0x299FE
{
	int iVar0;
	
	*uParam2 = 6022;
	if ((iParam4 && Global_2592834) || (!iParam4 && iParam5))
	{
		switch (iParam1)
		{
			case 1:
				switch (iParam0)
				{
					case 8886212:
					case -969630947:
						*uParam2 = 966;
						*uParam3 = 19;
						return true;
						break;
					
					case 1857811503:
					case -1198063650:
						*uParam2 = 966;
						*uParam3 = 20;
						return true;
						break;
					
					case 552556691:
					case -1596927918:
						*uParam2 = 966;
						*uParam3 = 21;
						return true;
						break;
					
					case 328711652:
					case 2093516866:
						*uParam2 = 966;
						*uParam3 = 22;
						return true;
						break;
					
					case 1194403102:
					case 1863511255:
						*uParam2 = 966;
						*uParam3 = 23;
						return true;
						break;
					
					case 1107630790:
					case 1503248869:
						*uParam2 = 966;
						*uParam3 = 24;
						return true;
						break;
					
					case 1807937089:
					case 1263478096:
						*uParam2 = 966;
						*uParam3 = 25;
						return true;
						break;
					
					case 1453442047:
					case 745170819:
						*uParam2 = 966;
						*uParam3 = 26;
						return true;
						break;
					
					case -1071423629:
					case -1382822784:
					case 385813134:
						*uParam2 = 930;
						*uParam3 = 0;
						return true;
						break;
					
					case -833094692:
					case -1731353868:
					case 675392787:
						*uParam2 = 930;
						*uParam3 = 1;
						return true;
						break;
					
					case -1836153782:
					case -1960638561:
					case -238272479:
						*uParam2 = 930;
						*uParam3 = 2;
						return true;
						break;
					
					case -1598414687:
					case 147161830:
					case 67757212:
						*uParam2 = 930;
						*uParam3 = 3;
						return true;
						break;
					
					case 123661793:
					case -92608943:
					case -536372072:
						*uParam2 = 930;
						*uParam3 = 4;
						return true;
						break;
					
					case 330958487:
					case -162931217:
					case -247578875:
						*uParam2 = 930;
						*uParam3 = 5;
						return true;
						break;
					
					case -142717408:
					case 1665087452:
					case -854821214:
						*uParam2 = 930;
						*uParam3 = 7;
						return true;
						break;
					
					case 1290696959:
					case 1012984348:
					case -1458295118:
						*uParam2 = 930;
						*uParam3 = 8;
						return true;
						break;
					
					case 2059568454:
					case 933072050:
					case -1454802604:
						*uParam2 = 930;
						*uParam3 = 11;
						return true;
						break;
				}
				break;
			
			case 2:
				switch (iParam0)
				{
					case 8886212:
					case -969630947:
						*uParam2 = 1018;
						*uParam3 = 19;
						return true;
						break;
					
					case 1857811503:
					case -1198063650:
						*uParam2 = 1018;
						*uParam3 = 20;
						return true;
						break;
					
					case 552556691:
					case -1596927918:
						*uParam2 = 1018;
						*uParam3 = 21;
						return true;
						break;
					
					case 328711652:
					case 2093516866:
						*uParam2 = 1018;
						*uParam3 = 22;
						return true;
						break;
					
					case 1194403102:
					case 1863511255:
						*uParam2 = 1018;
						*uParam3 = 23;
						return true;
						break;
					
					case 1107630790:
					case 1503248869:
						*uParam2 = 1018;
						*uParam3 = 24;
						return true;
						break;
					
					case 1807937089:
					case 1263478096:
						*uParam2 = 1018;
						*uParam3 = 25;
						return true;
						break;
					
					case 1453442047:
					case 745170819:
						*uParam2 = 1018;
						*uParam3 = 26;
						return true;
						break;
				}
				break;
		}
	}
	else
	{
		switch (iParam1)
		{
			case 1:
				switch (iParam0)
				{
					case -1795774903:
					case -379046860:
						*uParam2 = 966;
						*uParam3 = 19;
						return true;
						break;
					
					case 1655095722:
					case 472553912:
						*uParam2 = 966;
						*uParam3 = 20;
						return true;
						break;
					
					case -1951624263:
					case 147288818:
						*uParam2 = 966;
						*uParam3 = 21;
						return true;
						break;
					
					case -1586249913:
					case 1027988462:
						*uParam2 = 966;
						*uParam3 = 22;
						return true;
						break;
					
					case -1472181024:
					case 788217689:
						*uParam2 = 966;
						*uParam3 = 23;
						return true;
						break;
					
					case -1116178608:
					case 1338147047:
						*uParam2 = 966;
						*uParam3 = 24;
						return true;
						break;
					
					case -1028914761:
					case 1095820292:
						*uParam2 = 966;
						*uParam3 = 25;
						return true;
						break;
					
					case -654496167:
					case -1989217217:
						*uParam2 = 966;
						*uParam3 = 26;
						return true;
						break;
				}
				break;
			
			case 2:
				switch (iParam0)
				{
					case -1795774903:
					case -379046860:
						*uParam2 = 1018;
						*uParam3 = 19;
						return true;
						break;
					
					case 1655095722:
					case 472553912:
						*uParam2 = 1018;
						*uParam3 = 20;
						return true;
						break;
					
					case -1951624263:
					case 147288818:
						*uParam2 = 1018;
						*uParam3 = 21;
						return true;
						break;
					
					case -1586249913:
					case 1027988462:
						*uParam2 = 1018;
						*uParam3 = 22;
						return true;
						break;
					
					case -1472181024:
					case 788217689:
						*uParam2 = 1018;
						*uParam3 = 23;
						return true;
						break;
					
					case -1116178608:
					case 1338147047:
						*uParam2 = 1018;
						*uParam3 = 24;
						return true;
						break;
					
					case -1028914761:
					case 1095820292:
						*uParam2 = 1018;
						*uParam3 = 25;
						return true;
						break;
					
					case -654496167:
					case -1989217217:
						*uParam2 = 1018;
						*uParam3 = 26;
						return true;
						break;
				}
				break;
			}
	}
	iVar0 = -1;
	if (iParam4)
	{
		if (Global_2592834)
		{
			iVar0 = ped::_0x1E77FA7A62EE6C4C(iParam0);
		}
		else
		{
			iVar0 = ped::_0xF033419D1B81FAE8(iParam0);
		}
	}
	else if (iParam5)
	{
		iVar0 = ped::_0x1E77FA7A62EE6C4C(iParam0);
	}
	else
	{
		iVar0 = ped::_0xF033419D1B81FAE8(iParam0);
	}
	if (iVar0 == -1)
	{
		return false;
	}
	switch (iParam1)
	{
		case 1:
			switch (system::floor((system::to_float(iVar0) / 32f)))
			{
				case 0:
					*uParam2 = 1753;
					break;
				
				case 1:
					*uParam2 = 1754;
					break;
				
				case 2:
					*uParam2 = 1755;
					break;
				
				case 3:
					*uParam2 = 1756;
					break;
				
				case 4:
					*uParam2 = 1757;
					break;
				
				case 5:
					*uParam2 = 1758;
					break;
				
				case 6:
					*uParam2 = 1765;
					break;
				
				case 7:
					*uParam2 = 1766;
					break;
				
				case 8:
					*uParam2 = 1767;
					break;
				
				case 9:
					*uParam2 = 1768;
					break;
				
				case 10:
					*uParam2 = 1769;
					break;
				
				case 11:
					*uParam2 = 1770;
					break;
				
				case 12:
					*uParam2 = 1771;
					break;
				
				case 13:
					*uParam2 = 1779;
					break;
				
				case 14:
					*uParam2 = 1780;
					break;
				
				case 15:
					*uParam2 = 1881;
					break;
				
				case 16:
					*uParam2 = 1882;
					break;
				
				case 17:
					*uParam2 = 1913;
					break;
				
				case 18:
					*uParam2 = 1927;
					break;
				
				case 19:
					*uParam2 = 1928;
					break;
				
				case 20:
					*uParam2 = 1929;
					break;
				
				case 21:
					*uParam2 = 1930;
					break;
				
				case 22:
					*uParam2 = 1931;
					break;
				
				case 23:
					*uParam2 = 2035;
					break;
				
				case 24:
					*uParam2 = 2036;
					break;
				
				case 25:
					*uParam2 = 2062;
					break;
				
				case 26:
					*uParam2 = 2063;
					break;
				
				case 27:
					*uParam2 = 2064;
					break;
				
				case 28:
					*uParam2 = 2065;
					break;
				
				case 29:
					*uParam2 = 2066;
					break;
				
				case 30:
					*uParam2 = 2067;
					break;
				
				case 31:
					*uParam2 = 2068;
					break;
				
				case 32:
					*uParam2 = 2069;
					break;
				
				case 33:
					*uParam2 = 2070;
					break;
				
				case 34:
					*uParam2 = 2071;
					break;
				
				case 35:
					*uParam2 = 2318;
					break;
				
				case 36:
					*uParam2 = 2319;
					break;
				
				case 37:
					*uParam2 = 2371;
					break;
				
				case 38:
					*uParam2 = 2372;
					break;
				
				case 39:
					*uParam2 = 2373;
					break;
				
				case 40:
					*uParam2 = 2374;
					break;
				
				case 41:
					*uParam2 = 2433;
					break;
				
				case 42:
					*uParam2 = 2434;
					break;
				
				case 43:
					*uParam2 = 2435;
					break;
				
				case 44:
					*uParam2 = 2436;
					break;
				
				case 45:
					*uParam2 = 2437;
					break;
				
				case 46:
					*uParam2 = 2438;
					break;
				
				case 47:
					*uParam2 = 2439;
					break;
				
				case 48:
					*uParam2 = 2440;
					break;
				
				case 49:
					*uParam2 = 2441;
					break;
				
				case 50:
					*uParam2 = 2442;
					break;
				
				case 51:
					*uParam2 = 2571;
					break;
				
				case 52:
					*uParam2 = 2572;
					break;
				
				case 53:
					*uParam2 = 2573;
					break;
				
				case 54:
					*uParam2 = 2574;
					break;
				
				case 55:
					*uParam2 = 2575;
					break;
				
				case 56:
					*uParam2 = 2576;
					break;
				
				case 57:
					*uParam2 = 2577;
					break;
				
				case 58:
					*uParam2 = 2578;
					break;
				
				case 59:
					*uParam2 = 2579;
					break;
				
				case 60:
					*uParam2 = 2580;
					break;
				
				case 61:
					*uParam2 = 2581;
					break;
				
				case 62:
					*uParam2 = 3178;
					break;
				
				case 63:
					*uParam2 = 3179;
					break;
				
				case 64:
					*uParam2 = 3180;
					break;
				
				case 65:
					*uParam2 = 3181;
					break;
				
				case 66:
					*uParam2 = 3182;
					break;
				
				case 67:
					*uParam2 = 3183;
					break;
				
				case 68:
					*uParam2 = 3651;
					break;
				
				case 69:
					*uParam2 = 3652;
					break;
				
				case 70:
					*uParam2 = 3653;
					break;
				
				case 71:
					*uParam2 = 3654;
					break;
				
				case 72:
					*uParam2 = 3655;
					break;
				
				case 73:
					*uParam2 = 3656;
					break;
				
				case 74:
					*uParam2 = 3657;
					break;
				
				case 75:
					*uParam2 = 3658;
					break;
				
				case 76:
					*uParam2 = 3659;
					break;
				
				case 77:
					*uParam2 = 3660;
					break;
				
				case 78:
					*uParam2 = 3764;
					break;
				
				case 79:
					*uParam2 = 3765;
					break;
				
				case 80:
					*uParam2 = 3766;
					break;
				
				case 81:
					*uParam2 = 3767;
					break;
				
				case 82:
					*uParam2 = 3768;
					break;
				
				case 83:
					*uParam2 = 3769;
					break;
				
				case 84:
					*uParam2 = 3770;
					break;
				
				case 85:
					*uParam2 = 3771;
					break;
				
				case 86:
					*uParam2 = 3874;
					break;
				
				case 87:
					*uParam2 = 3875;
					break;
				
				case 88:
					*uParam2 = 3876;
					break;
				
				case 89:
					*uParam2 = 5309;
					break;
				
				case 90:
					*uParam2 = 5310;
					break;
				
				case 91:
					*uParam2 = 5311;
					break;
				
				case 92:
					*uParam2 = 5312;
					break;
				
				case 93:
					*uParam2 = 5313;
					break;
				
				case 94:
					*uParam2 = 5314;
					break;
				
				case 95:
					*uParam2 = 5315;
					break;
				
				case 96:
					*uParam2 = 5316;
					break;
				
				case 97:
					*uParam2 = 5317;
					break;
				
				case 98:
					*uParam2 = 5318;
					break;
				
				case 99:
					*uParam2 = 5319;
					break;
				
				case 100:
					*uParam2 = 5320;
					break;
				
				default:
					break;
			}
			break;
		
		case 2:
			switch (system::floor((system::to_float(iVar0) / 32f)))
			{
				case 0:
					*uParam2 = 1759;
					break;
				
				case 1:
					*uParam2 = 1760;
					break;
				
				case 2:
					*uParam2 = 1761;
					break;
				
				case 3:
					*uParam2 = 1762;
					break;
				
				case 4:
					*uParam2 = 1763;
					break;
				
				case 5:
					*uParam2 = 1764;
					break;
				
				case 6:
					*uParam2 = 1772;
					break;
				
				case 7:
					*uParam2 = 1773;
					break;
				
				case 8:
					*uParam2 = 1774;
					break;
				
				case 9:
					*uParam2 = 1775;
					break;
				
				case 10:
					*uParam2 = 1776;
					break;
				
				case 11:
					*uParam2 = 1777;
					break;
				
				case 12:
					*uParam2 = 1778;
					break;
				
				case 13:
					*uParam2 = 1781;
					break;
				
				case 14:
					*uParam2 = 1782;
					break;
				
				case 15:
					*uParam2 = 1883;
					break;
				
				case 16:
					*uParam2 = 1884;
					break;
				
				case 17:
					*uParam2 = 1914;
					break;
				
				case 18:
					*uParam2 = 1932;
					break;
				
				case 19:
					*uParam2 = 1933;
					break;
				
				case 20:
					*uParam2 = 1934;
					break;
				
				case 21:
					*uParam2 = 1935;
					break;
				
				case 22:
					*uParam2 = 1936;
					break;
				
				case 23:
					*uParam2 = 2037;
					break;
				
				case 24:
					*uParam2 = 2038;
					break;
				
				case 25:
					*uParam2 = 2072;
					break;
				
				case 26:
					*uParam2 = 2073;
					break;
				
				case 27:
					*uParam2 = 2074;
					break;
				
				case 28:
					*uParam2 = 2075;
					break;
				
				case 29:
					*uParam2 = 2076;
					break;
				
				case 30:
					*uParam2 = 2077;
					break;
				
				case 31:
					*uParam2 = 2078;
					break;
				
				case 32:
					*uParam2 = 2079;
					break;
				
				case 33:
					*uParam2 = 2080;
					break;
				
				case 34:
					*uParam2 = 2081;
					break;
				
				case 35:
					*uParam2 = 2320;
					break;
				
				case 36:
					*uParam2 = 2321;
					break;
				
				case 37:
					*uParam2 = 2375;
					break;
				
				case 38:
					*uParam2 = 2376;
					break;
				
				case 39:
					*uParam2 = 2377;
					break;
				
				case 40:
					*uParam2 = 2378;
					break;
				
				case 41:
					*uParam2 = 2443;
					break;
				
				case 42:
					*uParam2 = 2444;
					break;
				
				case 43:
					*uParam2 = 2445;
					break;
				
				case 44:
					*uParam2 = 2446;
					break;
				
				case 45:
					*uParam2 = 2447;
					break;
				
				case 46:
					*uParam2 = 2448;
					break;
				
				case 47:
					*uParam2 = 2449;
					break;
				
				case 48:
					*uParam2 = 2450;
					break;
				
				case 49:
					*uParam2 = 2451;
					break;
				
				case 50:
					*uParam2 = 2452;
					break;
				
				case 51:
					*uParam2 = 2582;
					break;
				
				case 52:
					*uParam2 = 2583;
					break;
				
				case 53:
					*uParam2 = 2584;
					break;
				
				case 54:
					*uParam2 = 2585;
					break;
				
				case 55:
					*uParam2 = 2586;
					break;
				
				case 56:
					*uParam2 = 2587;
					break;
				
				case 57:
					*uParam2 = 2588;
					break;
				
				case 58:
					*uParam2 = 2589;
					break;
				
				case 59:
					*uParam2 = 2590;
					break;
				
				case 60:
					*uParam2 = 2591;
					break;
				
				case 61:
					*uParam2 = 2592;
					break;
				
				case 62:
					*uParam2 = 3184;
					break;
				
				case 63:
					*uParam2 = 3185;
					break;
				
				case 64:
					*uParam2 = 3186;
					break;
				
				case 65:
					*uParam2 = 3187;
					break;
				
				case 66:
					*uParam2 = 3188;
					break;
				
				case 67:
					*uParam2 = 3189;
					break;
				
				case 68:
					*uParam2 = 3661;
					break;
				
				case 69:
					*uParam2 = 3662;
					break;
				
				case 70:
					*uParam2 = 3663;
					break;
				
				case 71:
					*uParam2 = 3664;
					break;
				
				case 72:
					*uParam2 = 3665;
					break;
				
				case 73:
					*uParam2 = 3666;
					break;
				
				case 74:
					*uParam2 = 3667;
					break;
				
				case 75:
					*uParam2 = 3668;
					break;
				
				case 76:
					*uParam2 = 3669;
					break;
				
				case 77:
					*uParam2 = 3670;
					break;
				
				case 78:
					*uParam2 = 3772;
					break;
				
				case 79:
					*uParam2 = 3773;
					break;
				
				case 80:
					*uParam2 = 3774;
					break;
				
				case 81:
					*uParam2 = 3775;
					break;
				
				case 82:
					*uParam2 = 3776;
					break;
				
				case 83:
					*uParam2 = 3777;
					break;
				
				case 84:
					*uParam2 = 3778;
					break;
				
				case 85:
					*uParam2 = 3779;
					break;
				
				case 86:
					*uParam2 = 3877;
					break;
				
				case 87:
					*uParam2 = 3878;
					break;
				
				case 88:
					*uParam2 = 3879;
					break;
				
				case 89:
					*uParam2 = 5321;
					break;
				
				case 90:
					*uParam2 = 5322;
					break;
				
				case 91:
					*uParam2 = 5323;
					break;
				
				case 92:
					*uParam2 = 5324;
					break;
				
				case 93:
					*uParam2 = 5325;
					break;
				
				case 94:
					*uParam2 = 5326;
					break;
				
				case 95:
					*uParam2 = 5327;
					break;
				
				case 96:
					*uParam2 = 5328;
					break;
				
				case 97:
					*uParam2 = 5329;
					break;
				
				case 98:
					*uParam2 = 5330;
					break;
				
				case 99:
					*uParam2 = 5331;
					break;
				
				case 100:
					*uParam2 = 5332;
					break;
				
				default:
					break;
			}
			break;
	}
	*uParam3 = (iVar0 % 32);
	return *uParam2 != 6022;
}

bool func_191(int iParam0)//Position - 0x2ABED
{
	if (!gameplay::is_bit_set(Global_69518[1 /*14*/].f_6, 0))
	{
		return false;
	}
	if (iParam0 == 1)
	{
		if (!gameplay::is_bit_set(Global_69518[1 /*14*/].f_6, 1))
		{
			return false;
		}
		if (!gameplay::is_bit_set(Global_69518[1 /*14*/].f_6, 2))
		{
			return false;
		}
	}
	return true;
}

struct<14> func_192(int iParam0, int iParam1, int iParam2)//Position - 0x2AC3E
{
	func_233();
	if (iParam0 == joaat("mp_m_freemode_01"))
	{
		func_217(iParam1, iParam2);
	}
	else if (iParam0 == joaat("mp_f_freemode_01"))
	{
		func_193(iParam1, iParam2);
	}
	return Global_69518[0 /*14*/];
}

void func_193(int iParam0, int iParam1)//Position - 0x2AC7B
{
	switch (iParam0)
	{
		case 2:
			func_216(iParam1);
			break;
		
		case 11:
			func_215(iParam1);
			break;
		
		case 8:
			func_214(iParam1);
			break;
		
		case 9:
			func_213(iParam1);
			break;
		
		case 3:
			func_212(iParam1);
			break;
		
		case 4:
			func_211(iParam1);
			break;
		
		case 6:
			func_210(iParam1);
			break;
		
		case 1:
			func_209(iParam1);
			break;
		
		case 7:
			func_208(iParam1);
			break;
		
		case 10:
			func_207(iParam1);
			break;
		
		case 14:
			func_206(iParam1);
			break;
		
		case 12:
			func_205(iParam1);
			break;
		
		case 5:
			func_204(iParam1);
			break;
		
		case 0:
			func_202(iParam1);
			break;
		
		case 13:
			func_194(iParam1);
			break;
	}
}

void func_194(int iParam0)//Position - 0x2AD6B
{
	int iVar0;
	int iVar1;
	char* sVar2;
	int iVar6;
	int iVar7;
	int iVar8;
	int iVar9;
	int iVar10;
	
	iVar0 = false;
	iVar1 = 10;
	iVar6 = 0;
	iVar7 = 0;
	iVar8 = -1;
	iVar9 = 2;
	iVar10 = 13;
	switch (iParam0)
	{
		case 31:
			iVar6 = 0;
			iVar7 = 0;
			break;
		
		case 0:
			iVar6 = 0;
			iVar7 = 0;
			break;
		
		case 1:
			iVar6 = 0;
			iVar7 = 0;
			break;
		
		case 2:
			iVar6 = 0;
			iVar7 = 0;
			break;
		
		case 3:
			iVar6 = 0;
			iVar7 = 0;
			break;
		
		case 4:
			iVar6 = 0;
			iVar7 = 0;
			break;
		
		case 5:
			iVar6 = 0;
			iVar7 = 0;
			break;
		
		case 6:
			iVar6 = 0;
			iVar7 = 0;
			break;
		
		case 7:
			iVar6 = 0;
			iVar7 = 0;
			break;
		
		case 8:
			iVar6 = 0;
			iVar7 = 0;
			break;
		
		case 9:
			iVar6 = 0;
			iVar7 = 0;
			break;
		
		case 10:
			iVar6 = 0;
			iVar7 = 0;
			break;
		
		case 11:
			iVar6 = 0;
			iVar7 = 0;
			break;
		
		case 12:
			iVar6 = 0;
			iVar7 = 0;
			break;
		
		case 13:
			iVar6 = 0;
			iVar7 = 0;
			break;
		
		case 14:
			iVar6 = 0;
			iVar7 = 0;
			break;
		
		case 15:
			iVar6 = 0;
			iVar7 = 0;
			break;
		
		case 16:
			iVar6 = 0;
			iVar7 = 0;
			break;
		
		case 17:
			iVar6 = 0;
			iVar7 = 0;
			break;
		
		case 18:
			iVar6 = 0;
			iVar7 = 0;
			break;
		
		case 19:
			iVar6 = 0;
			iVar7 = 0;
			break;
		
		case 20:
			iVar6 = 0;
			iVar7 = 0;
			break;
		
		case 21:
			iVar6 = 0;
			iVar7 = 0;
			break;
		
		case 22:
			iVar6 = 0;
			iVar7 = 0;
			break;
		
		case 23:
			iVar6 = 0;
			iVar7 = 0;
			break;
	}
	func_195(&(Global_69518[0 /*14*/]), iVar10, iParam0, &sVar2, iVar6, iVar7, iVar1, iVar0, iVar8, iVar9, 0);
}

void func_195(var uParam0, int iParam1, int iParam2, char* sParam3, int iParam4, int iParam5, int iParam6, int iParam7, int iParam8, int iParam9, int iParam10)//Position - 0x2AF26
{
	int iVar0;
	int iVar1;
	
	uParam0->f_6 = 0;
	*uParam0 = iParam9;
	uParam0->f_1 = (iParam2 % 32);
	uParam0->f_2 = (iParam2 / 32);
	uParam0->f_3 = iParam4;
	uParam0->f_4 = iParam5;
	uParam0->f_7 = iParam6;
	StringCopy(&(uParam0->f_8), sParam3, 16);
	uParam0->f_13 = iParam8;
	uParam0->f_12 = func_201(iParam8);
	if ((uParam0->f_2 >= 10 && uParam0->f_5 >= 0) && uParam0->f_5 < 3)
	{
		if (!iParam10)
		{
		}
		uParam0->f_2 = 0;
	}
	if (gameplay::get_hash_key(sParam3) != gameplay::get_hash_key("NO_LABEL"))
	{
	}
	if (iParam7)
	{
		gameplay::set_bit(&(uParam0->f_6), 3);
	}
	if (iParam10)
	{
		gameplay::set_bit(&(uParam0->f_6), 0);
		if (uParam0->f_5 >= 0 && uParam0->f_5 < 3)
		{
			gameplay::set_bit(&(uParam0->f_6), 5);
		}
		gameplay::set_bit(&(uParam0->f_6), 1);
		gameplay::set_bit(&(uParam0->f_6), 2);
		gameplay::set_bit(&(uParam0->f_6), 6);
		if (func_200(14))
		{
			return;
		}
		if (iParam1 == 1)
		{
			if (dlc1::_0x341DE7ED1D2A1BFD(Global_2621444, 1827025211, 0))
			{
				gameplay::set_bit(&(uParam0->f_6), 7);
			}
		}
		if (iParam1 == 12)
		{
			if (!func_199(Global_2621444, 1, 1, 1, -1))
			{
				gameplay::clear_bit(&(uParam0->f_6), 2);
			}
			if (!func_199(Global_2621444, 2, 1, 1, -1))
			{
				gameplay::set_bit(&(uParam0->f_6), 4);
			}
		}
		else if (iParam1 == 13)
		{
		}
		else if (iParam1 == 14)
		{
			if (!func_199(Global_2621444, 1, 1, 1, -1))
			{
				gameplay::clear_bit(&(uParam0->f_6), 2);
			}
			if (!func_199(Global_2621444, 2, 1, 1, -1))
			{
				gameplay::set_bit(&(uParam0->f_6), 4);
			}
		}
		else
		{
			if (!func_199(Global_2621444, 1, 1, 1, -1))
			{
				gameplay::clear_bit(&(uParam0->f_6), 2);
			}
			if (!func_199(Global_2621444, 2, 1, 1, -1))
			{
				gameplay::set_bit(&(uParam0->f_6), 4);
			}
		}
	}
	else if (uParam0->f_5 >= 0 && uParam0->f_5 < 3)
	{
		gameplay::set_bit(&(uParam0->f_6), 0);
		gameplay::set_bit(&(uParam0->f_6), 5);
		if (func_198(iParam1, uParam0->f_5, uParam0->f_2, 0, uParam0->f_1, 0, 0))
		{
			gameplay::set_bit(&(uParam0->f_6), 1);
		}
		if (func_198(iParam1, uParam0->f_5, uParam0->f_2, 1, uParam0->f_1, 0, 0))
		{
			gameplay::set_bit(&(uParam0->f_6), 2);
		}
		if (!func_198(iParam1, uParam0->f_5, uParam0->f_2, 2, uParam0->f_1, 0, 0))
		{
			gameplay::set_bit(&(uParam0->f_6), 4);
		}
	}
	else
	{
		gameplay::set_bit(&(uParam0->f_6), 0);
		if ((((((((((iParam1 == 11 || iParam1 == 4) || iParam1 == 6) || iParam1 == 1) || iParam1 == 14) || iParam1 == 2) || iParam1 == 8) || iParam1 == 9) || iParam1 == 10) || iParam1 == 7) || iParam1 == 12)
		{
			if (func_200(14))
			{
				return;
			}
			iVar0 = func_359(func_197(iParam1, uParam0->f_2), Global_69516, 0);
			if (gameplay::is_bit_set(iVar0, uParam0->f_1))
			{
				gameplay::set_bit(&(uParam0->f_6), 1);
			}
			iVar0 = func_359(func_196(iParam1, uParam0->f_2), Global_69516, 0);
			if (gameplay::is_bit_set(iVar0, uParam0->f_1))
			{
				gameplay::set_bit(&(uParam0->f_6), 2);
			}
			if (func_188(iParam1, uParam0->f_2, &iVar1))
			{
				iVar0 = func_359(iVar1, Global_69516, 0);
				if (!gameplay::is_bit_set(iVar0, uParam0->f_1))
				{
					gameplay::set_bit(&(uParam0->f_6), 4);
				}
			}
		}
		else
		{
			gameplay::set_bit(&(uParam0->f_6), 1);
			gameplay::set_bit(&(uParam0->f_6), 2);
		}
	}
	if (iParam1 == 14)
	{
		if (iParam4 == -1)
		{
			gameplay::set_bit(&(uParam0->f_6), 1);
			gameplay::set_bit(&(uParam0->f_6), 2);
		}
	}
}

int func_196(int iParam0, int iParam1)//Position - 0x2B2B7
{
	switch (iParam1)
	{
		case 0:
			switch (iParam0)
			{
				case 2:
					return 922;
					break;
				
				case 3:
					return 1409;
					break;
				
				case 4:
					return 938;
					break;
				
				case 6:
					return 946;
					break;
				
				case 8:
					return 1410;
					break;
				
				case 9:
					return 1418;
					break;
				
				case 10:
					return 1420;
					break;
				
				case 1:
					return 954;
					break;
				
				case 7:
					return 1421;
					break;
				
				case 11:
					return 930;
					break;
				
				case 14:
					return 962;
					break;
				
				case 12:
					return 973;
					break;
			}
			break;
		
		case 1:
			switch (iParam0)
			{
				case 2:
					return 923;
					break;
				
				case 4:
					return 939;
					break;
				
				case 6:
					return 947;
					break;
				
				case 8:
					return 1411;
					break;
				
				case 9:
					return 1419;
					break;
				
				case 7:
					return 1422;
					break;
				
				case 11:
					return 931;
					break;
				
				case 14:
					return 963;
					break;
			}
			break;
		
		case 2:
			switch (iParam0)
			{
				case 2:
					return 924;
					break;
				
				case 4:
					return 940;
					break;
				
				case 6:
					return 948;
					break;
				
				case 8:
					return 1412;
					break;
				
				case 7:
					return 1423;
					break;
				
				case 11:
					return 932;
					break;
				
				case 14:
					return 964;
					break;
			}
			break;
		
		case 3:
			switch (iParam0)
			{
				case 4:
					return 941;
					break;
				
				case 6:
					return 949;
					break;
				
				case 8:
					return 1413;
					break;
				
				case 11:
					return 933;
					break;
				
				case 14:
					return 965;
					break;
			}
			break;
		
		case 4:
			switch (iParam0)
			{
				case 4:
					return 942;
					break;
				
				case 6:
					return 950;
					break;
				
				case 8:
					return 1414;
					break;
				
				case 11:
					return 934;
					break;
				
				case 14:
					return 966;
					break;
			}
			break;
		
		case 5:
			switch (iParam0)
			{
				case 4:
					return 943;
					break;
				
				case 6:
					return 951;
					break;
				
				case 8:
					return 1415;
					break;
				
				case 11:
					return 935;
					break;
				
				case 14:
					return 967;
					break;
			}
			break;
		
		case 6:
			switch (iParam0)
			{
				case 4:
					return 944;
					break;
				
				case 6:
					return 952;
					break;
				
				case 8:
					return 1416;
					break;
				
				case 11:
					return 936;
					break;
				
				case 14:
					return 968;
					break;
			}
			break;
		
		case 7:
			switch (iParam0)
			{
				case 4:
					return 945;
					break;
				
				case 6:
					return 953;
					break;
				
				case 8:
					return 1417;
					break;
				
				case 11:
					return 937;
					break;
				
				case 14:
					return 969;
					break;
			}
			break;
		
		case 8:
			switch (iParam0)
			{
				case 14:
					return 970;
					break;
			}
			break;
		
		case 9:
			switch (iParam0)
			{
				case 14:
					return 971;
					break;
			}
			break;
		
		case 10:
			switch (iParam0)
			{
				case 14:
					return 972;
					break;
			}
			break;
	}
	return 930;
}

int func_197(int iParam0, int iParam1)//Position - 0x2B6B2
{
	switch (iParam1)
	{
		case 0:
			switch (iParam0)
			{
				case 2:
					return 870;
					break;
				
				case 3:
					return 1394;
					break;
				
				case 4:
					return 886;
					break;
				
				case 6:
					return 894;
					break;
				
				case 8:
					return 1395;
					break;
				
				case 9:
					return 1403;
					break;
				
				case 10:
					return 1405;
					break;
				
				case 1:
					return 902;
					break;
				
				case 7:
					return 1406;
					break;
				
				case 11:
					return 878;
					break;
				
				case 14:
					return 910;
					break;
				
				case 12:
					return 921;
					break;
			}
			break;
		
		case 1:
			switch (iParam0)
			{
				case 2:
					return 871;
					break;
				
				case 4:
					return 887;
					break;
				
				case 6:
					return 895;
					break;
				
				case 8:
					return 1396;
					break;
				
				case 9:
					return 1404;
					break;
				
				case 7:
					return 1407;
					break;
				
				case 11:
					return 879;
					break;
				
				case 14:
					return 911;
					break;
			}
			break;
		
		case 2:
			switch (iParam0)
			{
				case 2:
					return 872;
					break;
				
				case 4:
					return 888;
					break;
				
				case 6:
					return 896;
					break;
				
				case 8:
					return 1397;
					break;
				
				case 7:
					return 1408;
					break;
				
				case 11:
					return 880;
					break;
				
				case 14:
					return 912;
					break;
			}
			break;
		
		case 3:
			switch (iParam0)
			{
				case 4:
					return 889;
					break;
				
				case 6:
					return 897;
					break;
				
				case 8:
					return 1398;
					break;
				
				case 11:
					return 881;
					break;
				
				case 14:
					return 913;
					break;
			}
			break;
		
		case 4:
			switch (iParam0)
			{
				case 4:
					return 890;
					break;
				
				case 6:
					return 898;
					break;
				
				case 8:
					return 1399;
					break;
				
				case 11:
					return 882;
					break;
				
				case 14:
					return 914;
					break;
			}
			break;
		
		case 5:
			switch (iParam0)
			{
				case 4:
					return 891;
					break;
				
				case 6:
					return 899;
					break;
				
				case 8:
					return 1400;
					break;
				
				case 11:
					return 883;
					break;
				
				case 14:
					return 915;
					break;
			}
			break;
		
		case 6:
			switch (iParam0)
			{
				case 4:
					return 892;
					break;
				
				case 6:
					return 900;
					break;
				
				case 8:
					return 1401;
					break;
				
				case 11:
					return 884;
					break;
				
				case 14:
					return 916;
					break;
			}
			break;
		
		case 7:
			switch (iParam0)
			{
				case 4:
					return 893;
					break;
				
				case 6:
					return 901;
					break;
				
				case 8:
					return 1402;
					break;
				
				case 11:
					return 885;
					break;
				
				case 14:
					return 917;
					break;
			}
			break;
		
		case 8:
			switch (iParam0)
			{
				case 14:
					return 918;
					break;
			}
			break;
		
		case 9:
			switch (iParam0)
			{
				case 14:
					return 919;
					break;
			}
			break;
		
		case 10:
			switch (iParam0)
			{
				case 14:
					return 920;
					break;
			}
			break;
	}
	return 878;
}

int func_198(int iParam0, var uParam1, int iParam2, int iParam3, int iParam4, int iParam5, int iParam6)//Position - 0x2BAAD
{
	if (iParam0 == 0)
	{
		if (iParam5 == 1)
		{
			gameplay::set_bit(&(Global_101652.f_2079[uParam1 /*164*/][iParam3]), iParam4);
		}
		if (iParam6 == 1)
		{
			gameplay::clear_bit(&(Global_101652.f_2079[uParam1 /*164*/][iParam3]), iParam4);
		}
		return gameplay::is_bit_set(Global_101652.f_2079[uParam1 /*164*/][iParam3], iParam4);
	}
	else if (iParam0 == 1)
	{
		if (iParam5 == 1)
		{
			gameplay::set_bit(&(Global_101652.f_2079[uParam1 /*164*/].f_4[iParam3]), iParam4);
		}
		if (iParam6 == 1)
		{
			gameplay::clear_bit(&(Global_101652.f_2079[uParam1 /*164*/].f_4[iParam3]), iParam4);
		}
		return gameplay::is_bit_set(Global_101652.f_2079[uParam1 /*164*/].f_4[iParam3], iParam4);
	}
	else if (iParam0 == 2)
	{
		if (iParam5 == 1)
		{
			gameplay::set_bit(&(Global_101652.f_2079[uParam1 /*164*/].f_8[iParam3]), iParam4);
		}
		if (iParam6 == 1)
		{
			gameplay::clear_bit(&(Global_101652.f_2079[uParam1 /*164*/].f_8[iParam3]), iParam4);
		}
		return gameplay::is_bit_set(Global_101652.f_2079[uParam1 /*164*/].f_8[iParam3], iParam4);
	}
	else if (iParam0 == 3)
	{
		if (iParam2 == 0)
		{
			if (iParam5 == 1)
			{
				gameplay::set_bit(&(Global_101652.f_2079[uParam1 /*164*/].f_12[iParam3]), iParam4);
			}
			if (iParam6 == 1)
			{
				gameplay::clear_bit(&(Global_101652.f_2079[uParam1 /*164*/].f_12[iParam3]), iParam4);
			}
			return gameplay::is_bit_set(Global_101652.f_2079[uParam1 /*164*/].f_12[iParam3], iParam4);
		}
		else if (iParam2 == 1)
		{
			if (iParam5 == 1)
			{
				gameplay::set_bit(&(Global_101652.f_2079[uParam1 /*164*/].f_16[iParam3]), iParam4);
			}
			if (iParam6 == 1)
			{
				gameplay::clear_bit(&(Global_101652.f_2079[uParam1 /*164*/].f_16[iParam3]), iParam4);
			}
			return gameplay::is_bit_set(Global_101652.f_2079[uParam1 /*164*/].f_16[iParam3], iParam4);
		}
		else if (iParam2 == 2)
		{
			if (iParam5 == 1)
			{
				gameplay::set_bit(&(Global_101652.f_2079[uParam1 /*164*/].f_20[iParam3]), iParam4);
			}
			if (iParam6 == 1)
			{
				gameplay::clear_bit(&(Global_101652.f_2079[uParam1 /*164*/].f_20[iParam3]), iParam4);
			}
			return gameplay::is_bit_set(Global_101652.f_2079[uParam1 /*164*/].f_20[iParam3], iParam4);
		}
		else if (iParam2 == 3)
		{
			if (iParam5 == 1)
			{
				gameplay::set_bit(&(Global_101652.f_2079[uParam1 /*164*/].f_24[iParam3]), iParam4);
			}
			if (iParam6 == 1)
			{
				gameplay::clear_bit(&(Global_101652.f_2079[uParam1 /*164*/].f_24[iParam3]), iParam4);
			}
			return gameplay::is_bit_set(Global_101652.f_2079[uParam1 /*164*/].f_24[iParam3], iParam4);
		}
		else if (iParam2 == 4)
		{
			if (iParam5 == 1)
			{
				gameplay::set_bit(&(Global_101652.f_2079[uParam1 /*164*/].f_28[iParam3]), iParam4);
			}
			if (iParam6 == 1)
			{
				gameplay::clear_bit(&(Global_101652.f_2079[uParam1 /*164*/].f_28[iParam3]), iParam4);
			}
			return gameplay::is_bit_set(Global_101652.f_2079[uParam1 /*164*/].f_28[iParam3], iParam4);
		}
		else if (iParam2 == 5)
		{
			if (iParam5 == 1)
			{
				gameplay::set_bit(&(Global_101652.f_2079[uParam1 /*164*/].f_32[iParam3]), iParam4);
			}
			if (iParam6 == 1)
			{
				gameplay::clear_bit(&(Global_101652.f_2079[uParam1 /*164*/].f_32[iParam3]), iParam4);
			}
			return gameplay::is_bit_set(Global_101652.f_2079[uParam1 /*164*/].f_32[iParam3], iParam4);
		}
		else if (iParam2 == 6)
		{
			if (iParam5 == 1)
			{
				gameplay::set_bit(&(Global_101652.f_2079[uParam1 /*164*/].f_36[iParam3]), iParam4);
			}
			if (iParam6 == 1)
			{
				gameplay::clear_bit(&(Global_101652.f_2079[uParam1 /*164*/].f_36[iParam3]), iParam4);
			}
			return gameplay::is_bit_set(Global_101652.f_2079[uParam1 /*164*/].f_36[iParam3], iParam4);
		}
		else if (iParam2 == 7)
		{
			if (iParam5 == 1)
			{
				gameplay::set_bit(&(Global_101652.f_2079[uParam1 /*164*/].f_40[iParam3]), iParam4);
			}
			if (iParam6 == 1)
			{
				gameplay::clear_bit(&(Global_101652.f_2079[uParam1 /*164*/].f_40[iParam3]), iParam4);
			}
			return gameplay::is_bit_set(Global_101652.f_2079[uParam1 /*164*/].f_40[iParam3], iParam4);
		}
		else if (iParam2 == 8)
		{
			if (iParam5 == 1)
			{
				gameplay::set_bit(&(Global_101652.f_2079[uParam1 /*164*/].f_44[iParam3]), iParam4);
			}
			if (iParam6 == 1)
			{
				gameplay::clear_bit(&(Global_101652.f_2079[uParam1 /*164*/].f_44[iParam3]), iParam4);
			}
			return gameplay::is_bit_set(Global_101652.f_2079[uParam1 /*164*/].f_44[iParam3], iParam4);
		}
		else if (iParam2 == 9)
		{
			if (iParam5 == 1)
			{
				gameplay::set_bit(&(Global_101652.f_2079[uParam1 /*164*/].f_48[iParam3]), iParam4);
			}
			if (iParam6 == 1)
			{
				gameplay::clear_bit(&(Global_101652.f_2079[uParam1 /*164*/].f_48[iParam3]), iParam4);
			}
			return gameplay::is_bit_set(Global_101652.f_2079[uParam1 /*164*/].f_48[iParam3], iParam4);
		}
	}
	else if (iParam0 == 4)
	{
		if (iParam2 == 0)
		{
			if (iParam5 == 1)
			{
				gameplay::set_bit(&(Global_101652.f_2079[uParam1 /*164*/].f_52[iParam3]), iParam4);
			}
			if (iParam6 == 1)
			{
				gameplay::clear_bit(&(Global_101652.f_2079[uParam1 /*164*/].f_52[iParam3]), iParam4);
			}
			return gameplay::is_bit_set(Global_101652.f_2079[uParam1 /*164*/].f_52[iParam3], iParam4);
		}
		else if (iParam2 == 1)
		{
			if (iParam5 == 1)
			{
				gameplay::set_bit(&(Global_101652.f_2079[uParam1 /*164*/].f_56[iParam3]), iParam4);
			}
			if (iParam6 == 1)
			{
				gameplay::clear_bit(&(Global_101652.f_2079[uParam1 /*164*/].f_56[iParam3]), iParam4);
			}
			return gameplay::is_bit_set(Global_101652.f_2079[uParam1 /*164*/].f_56[iParam3], iParam4);
		}
		else if (iParam2 == 2)
		{
			if (iParam5 == 1)
			{
				gameplay::set_bit(&(Global_101652.f_2079[uParam1 /*164*/].f_60[iParam3]), iParam4);
			}
			if (iParam6 == 1)
			{
				gameplay::clear_bit(&(Global_101652.f_2079[uParam1 /*164*/].f_60[iParam3]), iParam4);
			}
			return gameplay::is_bit_set(Global_101652.f_2079[uParam1 /*164*/].f_60[iParam3], iParam4);
		}
		else if (iParam2 == 3)
		{
			if (iParam5 == 1)
			{
				gameplay::set_bit(&(Global_101652.f_2079[uParam1 /*164*/].f_64[iParam3]), iParam4);
			}
			if (iParam6 == 1)
			{
				gameplay::clear_bit(&(Global_101652.f_2079[uParam1 /*164*/].f_64[iParam3]), iParam4);
			}
			return gameplay::is_bit_set(Global_101652.f_2079[uParam1 /*164*/].f_64[iParam3], iParam4);
		}
	}
	else if (iParam0 == 5)
	{
		if (iParam5 == 1)
		{
			gameplay::set_bit(&(Global_101652.f_2079[uParam1 /*164*/].f_68[iParam3]), iParam4);
		}
		if (iParam6 == 1)
		{
			gameplay::clear_bit(&(Global_101652.f_2079[uParam1 /*164*/].f_68[iParam3]), iParam4);
		}
		return gameplay::is_bit_set(Global_101652.f_2079[uParam1 /*164*/].f_68[iParam3], iParam4);
	}
	else if (iParam0 == 6)
	{
		if (iParam2 == 0)
		{
			if (iParam5 == 1)
			{
				gameplay::set_bit(&(Global_101652.f_2079[uParam1 /*164*/].f_72[iParam3]), iParam4);
			}
			if (iParam6 == 1)
			{
				gameplay::clear_bit(&(Global_101652.f_2079[uParam1 /*164*/].f_72[iParam3]), iParam4);
			}
			return gameplay::is_bit_set(Global_101652.f_2079[uParam1 /*164*/].f_72[iParam3], iParam4);
		}
		else if (iParam2 == 1)
		{
			if (iParam5 == 1)
			{
				gameplay::set_bit(&(Global_101652.f_2079[uParam1 /*164*/].f_76[iParam3]), iParam4);
			}
			if (iParam6 == 1)
			{
				gameplay::clear_bit(&(Global_101652.f_2079[uParam1 /*164*/].f_76[iParam3]), iParam4);
			}
			return gameplay::is_bit_set(Global_101652.f_2079[uParam1 /*164*/].f_76[iParam3], iParam4);
		}
		else if (iParam2 == 2)
		{
			if (iParam5 == 1)
			{
				gameplay::set_bit(&(Global_101652.f_2079[uParam1 /*164*/].f_80[iParam3]), iParam4);
			}
			if (iParam6 == 1)
			{
				gameplay::clear_bit(&(Global_101652.f_2079[uParam1 /*164*/].f_80[iParam3]), iParam4);
			}
			return gameplay::is_bit_set(Global_101652.f_2079[uParam1 /*164*/].f_80[iParam3], iParam4);
		}
		else if (iParam2 == 3)
		{
			if (iParam5 == 1)
			{
				gameplay::set_bit(&(Global_101652.f_2079[uParam1 /*164*/].f_84[iParam3]), iParam4);
			}
			if (iParam6 == 1)
			{
				gameplay::clear_bit(&(Global_101652.f_2079[uParam1 /*164*/].f_84[iParam3]), iParam4);
			}
			return gameplay::is_bit_set(Global_101652.f_2079[uParam1 /*164*/].f_84[iParam3], iParam4);
		}
		else if (iParam2 == 4)
		{
			if (iParam5 == 1)
			{
				gameplay::set_bit(&(Global_101652.f_2079[uParam1 /*164*/].f_88[iParam3]), iParam4);
			}
			if (iParam6 == 1)
			{
				gameplay::clear_bit(&(Global_101652.f_2079[uParam1 /*164*/].f_88[iParam3]), iParam4);
			}
			return gameplay::is_bit_set(Global_101652.f_2079[uParam1 /*164*/].f_88[iParam3], iParam4);
		}
	}
	else if (iParam0 == 7)
	{
		if (iParam5 == 1)
		{
			gameplay::set_bit(&(Global_101652.f_2079[uParam1 /*164*/].f_92[iParam3]), iParam4);
		}
		if (iParam6 == 1)
		{
			gameplay::clear_bit(&(Global_101652.f_2079[uParam1 /*164*/].f_92[iParam3]), iParam4);
		}
		return gameplay::is_bit_set(Global_101652.f_2079[uParam1 /*164*/].f_92[iParam3], iParam4);
	}
	else if (iParam0 == 8)
	{
		if (iParam2 == 0)
		{
			if (iParam5 == 1)
			{
				gameplay::set_bit(&(Global_101652.f_2079[uParam1 /*164*/].f_96[iParam3]), iParam4);
			}
			if (iParam6 == 1)
			{
				gameplay::clear_bit(&(Global_101652.f_2079[uParam1 /*164*/].f_96[iParam3]), iParam4);
			}
			return gameplay::is_bit_set(Global_101652.f_2079[uParam1 /*164*/].f_96[iParam3], iParam4);
		}
		else if (iParam2 == 1)
		{
			if (iParam5 == 1)
			{
				gameplay::set_bit(&(Global_101652.f_2079[uParam1 /*164*/].f_100[iParam3]), iParam4);
			}
			if (iParam6 == 1)
			{
				gameplay::clear_bit(&(Global_101652.f_2079[uParam1 /*164*/].f_100[iParam3]), iParam4);
			}
			return gameplay::is_bit_set(Global_101652.f_2079[uParam1 /*164*/].f_100[iParam3], iParam4);
		}
		else if (iParam2 == 2)
		{
			if (iParam5 == 1)
			{
				gameplay::set_bit(&(Global_101652.f_2079[uParam1 /*164*/].f_104[iParam3]), iParam4);
			}
			if (iParam6 == 1)
			{
				gameplay::clear_bit(&(Global_101652.f_2079[uParam1 /*164*/].f_104[iParam3]), iParam4);
			}
			return gameplay::is_bit_set(Global_101652.f_2079[uParam1 /*164*/].f_104[iParam3], iParam4);
		}
	}
	else if (iParam0 == 9)
	{
		if (iParam5 == 1)
		{
			gameplay::set_bit(&(Global_101652.f_2079[uParam1 /*164*/].f_108[iParam3]), iParam4);
		}
		if (iParam6 == 1)
		{
			gameplay::clear_bit(&(Global_101652.f_2079[uParam1 /*164*/].f_108[iParam3]), iParam4);
		}
		return gameplay::is_bit_set(Global_101652.f_2079[uParam1 /*164*/].f_108[iParam3], iParam4);
	}
	else if (iParam0 == 10)
	{
		if (iParam2 == 0)
		{
			if (iParam5 == 1)
			{
				gameplay::set_bit(&(Global_101652.f_2079[uParam1 /*164*/].f_112[iParam3]), iParam4);
			}
			if (iParam6 == 1)
			{
				gameplay::clear_bit(&(Global_101652.f_2079[uParam1 /*164*/].f_112[iParam3]), iParam4);
			}
			return gameplay::is_bit_set(Global_101652.f_2079[uParam1 /*164*/].f_112[iParam3], iParam4);
		}
		else if (iParam2 == 1)
		{
			if (iParam5 == 1)
			{
				gameplay::set_bit(&(Global_101652.f_2079[uParam1 /*164*/].f_116[iParam3]), iParam4);
			}
			if (iParam6 == 1)
			{
				gameplay::clear_bit(&(Global_101652.f_2079[uParam1 /*164*/].f_116[iParam3]), iParam4);
			}
			return gameplay::is_bit_set(Global_101652.f_2079[uParam1 /*164*/].f_116[iParam3], iParam4);
		}
	}
	else if (iParam0 == 11)
	{
		if (iParam2 == 0)
		{
			if (iParam5 == 1)
			{
				gameplay::set_bit(&(Global_101652.f_2079[uParam1 /*164*/].f_120[iParam3]), iParam4);
			}
			if (iParam6 == 1)
			{
				gameplay::clear_bit(&(Global_101652.f_2079[uParam1 /*164*/].f_120[iParam3]), iParam4);
			}
			return gameplay::is_bit_set(Global_101652.f_2079[uParam1 /*164*/].f_120[iParam3], iParam4);
		}
		else if (iParam2 == 1)
		{
			if (iParam5 == 1)
			{
				gameplay::set_bit(&(Global_101652.f_2079[uParam1 /*164*/].f_124[iParam3]), iParam4);
			}
			if (iParam6 == 1)
			{
				gameplay::clear_bit(&(Global_101652.f_2079[uParam1 /*164*/].f_124[iParam3]), iParam4);
			}
			return gameplay::is_bit_set(Global_101652.f_2079[uParam1 /*164*/].f_124[iParam3], iParam4);
		}
	}
	else if (iParam0 == 12)
	{
		if (iParam2 == 0)
		{
			if (iParam5 == 1)
			{
				gameplay::set_bit(&(Global_101652.f_2079[uParam1 /*164*/].f_128[iParam3]), iParam4);
			}
			if (iParam6 == 1)
			{
				gameplay::clear_bit(&(Global_101652.f_2079[uParam1 /*164*/].f_128[iParam3]), iParam4);
			}
			return gameplay::is_bit_set(Global_101652.f_2079[uParam1 /*164*/].f_128[iParam3], iParam4);
		}
		else if (iParam2 == 1)
		{
			if (iParam5 == 1)
			{
				gameplay::set_bit(&(Global_101652.f_2079[uParam1 /*164*/].f_132[iParam3]), iParam4);
			}
			if (iParam6 == 1)
			{
				gameplay::clear_bit(&(Global_101652.f_2079[uParam1 /*164*/].f_132[iParam3]), iParam4);
			}
			return gameplay::is_bit_set(Global_101652.f_2079[uParam1 /*164*/].f_132[iParam3], iParam4);
		}
	}
	else if (iParam0 == 13)
	{
		if (iParam5 == 1)
		{
			gameplay::set_bit(&(Global_101652.f_2079[uParam1 /*164*/].f_136[iParam3]), iParam4);
		}
		if (iParam6 == 1)
		{
			gameplay::clear_bit(&(Global_101652.f_2079[uParam1 /*164*/].f_136[iParam3]), iParam4);
		}
		return gameplay::is_bit_set(Global_101652.f_2079[uParam1 /*164*/].f_136[iParam3], iParam4);
	}
	else if (iParam0 == 14)
	{
		if (iParam2 == 0)
		{
			if (iParam5 == 1)
			{
				gameplay::set_bit(&(Global_101652.f_2079[uParam1 /*164*/].f_140[iParam3]), iParam4);
			}
			if (iParam6 == 1)
			{
				gameplay::clear_bit(&(Global_101652.f_2079[uParam1 /*164*/].f_140[iParam3]), iParam4);
			}
			return gameplay::is_bit_set(Global_101652.f_2079[uParam1 /*164*/].f_140[iParam3], iParam4);
		}
		else if (iParam2 == 1)
		{
			if (iParam5 == 1)
			{
				gameplay::set_bit(&(Global_101652.f_2079[uParam1 /*164*/].f_144[iParam3]), iParam4);
			}
			if (iParam6 == 1)
			{
				gameplay::clear_bit(&(Global_101652.f_2079[uParam1 /*164*/].f_144[iParam3]), iParam4);
			}
			return gameplay::is_bit_set(Global_101652.f_2079[uParam1 /*164*/].f_144[iParam3], iParam4);
		}
		else if (iParam2 == 2)
		{
			if (iParam5 == 1)
			{
				gameplay::set_bit(&(Global_101652.f_2079[uParam1 /*164*/].f_148[iParam3]), iParam4);
			}
			if (iParam6 == 1)
			{
				gameplay::clear_bit(&(Global_101652.f_2079[uParam1 /*164*/].f_148[iParam3]), iParam4);
			}
			return gameplay::is_bit_set(Global_101652.f_2079[uParam1 /*164*/].f_148[iParam3], iParam4);
		}
		else if (iParam2 == 3)
		{
			if (iParam5 == 1)
			{
				gameplay::set_bit(&(Global_101652.f_2079[uParam1 /*164*/].f_152[iParam3]), iParam4);
			}
			if (iParam6 == 1)
			{
				gameplay::clear_bit(&(Global_101652.f_2079[uParam1 /*164*/].f_152[iParam3]), iParam4);
			}
			return gameplay::is_bit_set(Global_101652.f_2079[uParam1 /*164*/].f_152[iParam3], iParam4);
		}
		else if (iParam2 == 4)
		{
			if (iParam5 == 1)
			{
				gameplay::set_bit(&(Global_101652.f_2079[uParam1 /*164*/].f_156[iParam3]), iParam4);
			}
			if (iParam6 == 1)
			{
				gameplay::clear_bit(&(Global_101652.f_2079[uParam1 /*164*/].f_156[iParam3]), iParam4);
			}
			return gameplay::is_bit_set(Global_101652.f_2079[uParam1 /*164*/].f_156[iParam3], iParam4);
		}
		else if (iParam2 == 5)
		{
			if (iParam5 == 1)
			{
				gameplay::set_bit(&(Global_101652.f_2079[uParam1 /*164*/].f_160[iParam3]), iParam4);
			}
			if (iParam6 == 1)
			{
				gameplay::clear_bit(&(Global_101652.f_2079[uParam1 /*164*/].f_160[iParam3]), iParam4);
			}
			return gameplay::is_bit_set(Global_101652.f_2079[uParam1 /*164*/].f_160[iParam3], iParam4);
		}
	}
	return false;
}

int func_199(int iParam0, int iParam1, int iParam2, int iParam3, int iParam4)//Position - 0x2C9CE
{
	int iVar0;
	int iVar1;
	int iVar2;
	int iVar3;
	
	iVar0 = Global_69516;
	if (iParam4 != -1)
	{
		iVar0 = iParam4;
	}
	if (func_190(iParam0, iParam1, &iVar2, &iVar1, iParam2, iParam3))
	{
		iVar3 = func_359(iVar2, iVar0, 0);
		return gameplay::is_bit_set(iVar3, iVar1);
	}
	return false;
}

int func_200(int iParam0)//Position - 0x2CA10
{
	return Global_35777 == iParam0;
}

int func_201(int iParam0)//Position - 0x2CA1E
{
	switch (iParam0)
	{
		case -1:
			return 0;
			break;
		
		case 0:
			return 0;
			break;
		
		case 1:
			return 1;
			break;
		
		case 2:
			return 2;
			break;
		
		case 3:
			return 3;
			break;
		
		case 4:
			return 4;
			break;
		
		case 5:
			return 5;
			break;
		
		case 6:
			return 6;
			break;
		
		case 7:
			return 7;
			break;
		
		case 8:
			return 8;
			break;
		
		case 9:
			return 0;
			break;
		
		case 10:
			return 1;
			break;
		
		case 11:
			return 0;
			break;
		
		case 12:
			return 0;
			break;
		
		case 13:
			return 0;
			break;
	}
	return 0;
}

void func_202(int iParam0)//Position - 0x2CAF2
{
	int iVar0;
	
	iVar0 = 0;
	Global_69518[0 /*14*/].f_5 = 4;
	func_203(iVar0, iParam0, 0);
}

void func_203(int iParam0, int iParam1, int iParam2)//Position - 0x2CB10
{
	int iVar0;
	int iVar1;
	struct<8> Var2;
	int iVar17;
	int iVar18;
	int iVar19;
	struct<10> Var20;
	int iVar37;
	int iVar38;
	int iVar39;
	int iVar40;
	struct<10> Var41;
	int iVar58;
	int iVar59;
	int iVar60;
	
	iVar0 = (iParam1 - iParam2);
	iVar0 = iVar0;
	if (iVar0 < 0)
	{
		return;
	}
	iVar1 = Global_69518[0 /*14*/].f_5;
	if (iParam0 == 12)
	{
		iVar18 = 0;
		iVar19 = dlc1::_0xF3FBE2D50A6A8C28(iVar1, 0);
		iVar17 = 0;
		while (iVar17 < iVar19)
		{
			dlc1::get_shop_ped_query_outfit(iVar17, &Var2);
			if (!dlc1::_is_dlc_data_empty(Var2))
			{
				if (iVar18 == (iParam1 - iParam2))
				{
					Global_2621444 = Var2.f_1;
					Global_2621445 = Var2;
					func_195(&(Global_69518[0 /*14*/]), iParam0, iParam1, &(Var2.f_7), 0, 0, Var2.f_2, 0, -1, 2, 1);
					return;
				}
				iVar18++;
			}
			iVar17++;
		}
	}
	else if (iParam0 == 13)
	{
		func_195(&(Global_69518[0 /*14*/]), iParam0, iParam1, "NO_LABEL", 0, 0, 0, 1, -1, 2, 1);
	}
	else if (iParam0 == 14)
	{
		dlc1::init_shop_ped_prop(&Var20);
		iVar39 = 0;
		iVar40 = dlc1::_get_num_props_from_outfit(iVar1, 6, -1, 1, -1, -1);
		iVar38 = 0;
		while (iVar38 < iVar40)
		{
			dlc1::get_shop_ped_query_prop(iVar38, &Var20);
			if (!dlc1::_is_dlc_data_empty(Var20))
			{
				if (iVar39 == (iParam1 - iParam2))
				{
					if (Var20.f_6 == 0)
					{
						iVar37 = 9;
					}
					else if (Var20.f_6 == 1)
					{
						iVar37 = 10;
					}
					else if (Var20.f_6 == 2)
					{
						iVar37 = 2;
					}
					else if (Var20.f_6 == 3)
					{
						iVar37 = 3;
					}
					else if (Var20.f_6 == 4)
					{
						iVar37 = 4;
					}
					else if (Var20.f_6 == 5)
					{
						iVar37 = 5;
					}
					else if (Var20.f_6 == 6)
					{
						iVar37 = 6;
					}
					else if (Var20.f_6 == 7)
					{
						iVar37 = 7;
					}
					else if (Var20.f_6 == 8)
					{
						iVar37 = 8;
					}
					else
					{
						iVar37 = -1;
					}
					Global_2621444 = Var20.f_1;
					Global_2621445 = Var20;
					func_195(&(Global_69518[0 /*14*/]), iParam0, iParam1, &(Var20.f_9), Var20.f_3, Var20.f_4, Var20.f_5, dlc1::_0x341DE7ED1D2A1BFD(Var20.f_1, -2050632586, 0), iVar37, 2, Var20.f_1 != 0);
					return;
				}
				iVar39++;
			}
			iVar38++;
		}
	}
	else
	{
		dlc1::init_shop_ped_component(&Var41);
		iVar59 = 0;
		iVar60 = dlc1::_get_num_props_from_outfit(iVar1, 6, -1, 0, -1, func_181(iParam0));
		iVar58 = 0;
		while (iVar58 < iVar60)
		{
			dlc1::get_shop_ped_query_component(iVar58, &Var41);
			if (!dlc1::_is_dlc_data_empty(Var41))
			{
				if (iVar59 == (iParam1 - iParam2))
				{
					Global_2621444 = Var41.f_1;
					Global_2621445 = Var41;
					func_195(&(Global_69518[0 /*14*/]), iParam0, iParam1, &(Var41.f_9), Var41.f_3, Var41.f_4, Var41.f_5, dlc1::_0x341DE7ED1D2A1BFD(Var41.f_1, -2050632586, 0), -1, 2, Var41.f_1 != 0);
					return;
				}
				iVar59++;
			}
			iVar58++;
		}
	}
}

void func_204(int iParam0)//Position - 0x2CD8B
{
	int iVar0;
	int iVar1;
	struct<2> Var2;
	int iVar6;
	int iVar7;
	int iVar8;
	int iVar9;
	int iVar10;
	
	iVar0 = false;
	iVar1 = 10;
	iVar6 = 0;
	iVar7 = 0;
	iVar8 = -1;
	iVar9 = 2;
	iVar10 = 5;
	switch (iParam0)
	{
		case 0:
			iVar6 = 0;
			iVar7 = 0;
			break;
		
		case 1:
			iVar6 = 1;
			iVar7 = 0;
			break;
		
		case 2:
			iVar6 = 2;
			iVar7 = 0;
			break;
		
		case 3:
			iVar6 = 3;
			iVar7 = 0;
			break;
		
		case 4:
			iVar6 = 4;
			iVar7 = 0;
			break;
		
		case 5:
			iVar6 = 5;
			iVar7 = 0;
			break;
		
		case 6:
			iVar6 = 6;
			iVar7 = 0;
			break;
		
		case 7:
			iVar6 = 7;
			iVar7 = 0;
			break;
		
		case 8:
			iVar6 = 8;
			iVar7 = 0;
			break;
		
		default:
			Global_69518[0 /*14*/].f_5 = 4;
			func_203(iVar10, iParam0, 9);
			return;
			break;
	}
	StringCopy(&Var2, "HA_FMF_", 16);
	StringIntConCat(&Var2, iVar6, 16);
	StringConCat(&Var2, "_", 16);
	StringIntConCat(&Var2, iVar7, 16);
	func_195(&(Global_69518[0 /*14*/]), iVar10, iParam0, &Var2, iVar6, iVar7, iVar1, iVar0, iVar8, iVar9, 0);
}

void func_205(int iParam0)//Position - 0x2CE8C
{
	int iVar0;
	int iVar1;
	struct<2> Var2;
	int iVar6;
	int iVar7;
	int iVar8;
	int iVar9;
	int iVar10;
	
	iVar0 = false;
	iVar1 = 10;
	iVar6 = 0;
	iVar7 = 0;
	iVar8 = -1;
	iVar9 = 2;
	iVar10 = 12;
	switch (iParam0)
	{
		case 0:
			iVar6 = 0;
			iVar7 = 0;
			iVar0 = true;
			break;
		
		case 1:
			iVar6 = 0;
			iVar7 = 0;
			StringCopy(&Var2, "O_FMF_S1", 16);
			break;
		
		case 2:
			iVar6 = 0;
			iVar7 = 0;
			StringCopy(&Var2, "O_FMF_S2", 16);
			break;
		
		case 3:
			iVar6 = 0;
			iVar7 = 0;
			StringCopy(&Var2, "O_FMF_S3", 16);
			break;
		
		case 4:
			iVar6 = 0;
			iVar7 = 0;
			StringCopy(&Var2, "O_FMF_S4", 16);
			break;
		
		case 5:
			iVar6 = 0;
			iVar7 = 0;
			StringCopy(&Var2, "O_FMF_S5", 16);
			break;
		
		case 6:
			iVar6 = 0;
			iVar7 = 0;
			StringCopy(&Var2, "O_FMF_S6", 16);
			break;
		
		case 7:
			iVar6 = 0;
			iVar7 = 0;
			StringCopy(&Var2, "O_FMF_S7", 16);
			break;
		
		case 8:
			iVar6 = 0;
			iVar7 = 0;
			StringCopy(&Var2, "O_FMF_S8", 16);
			break;
		
		case 9:
			iVar6 = 0;
			iVar7 = 0;
			StringCopy(&Var2, "O_FMF_P1", 16);
			break;
		
		case 10:
			iVar6 = 0;
			iVar7 = 0;
			StringCopy(&Var2, "O_FMF_P2", 16);
			break;
		
		case 11:
			iVar6 = 0;
			iVar7 = 0;
			StringCopy(&Var2, "O_FMF_P3", 16);
			break;
		
		case 12:
			iVar6 = 0;
			iVar7 = 0;
			StringCopy(&Var2, "O_FMF_P4", 16);
			break;
		
		case 13:
			iVar6 = 0;
			iVar7 = 0;
			StringCopy(&Var2, "O_FMF_P5", 16);
			break;
		
		case 14:
			iVar6 = 0;
			iVar7 = 0;
			StringCopy(&Var2, "O_FMF_P6", 16);
			break;
		
		case 15:
			iVar6 = 0;
			iVar7 = 0;
			StringCopy(&Var2, "O_FMF_P7", 16);
			break;
		
		case 16:
			iVar6 = 0;
			iVar7 = 0;
			StringCopy(&Var2, "O_FMF_P8", 16);
			break;
		
		case 17:
			iVar6 = 0;
			iVar7 = 0;
			StringCopy(&Var2, "O_FMF_P9", 16);
			break;
		
		case 18:
			iVar6 = 0;
			iVar7 = 0;
			StringCopy(&Var2, "O_FMF_P10", 16);
			break;
		
		case 19:
			iVar6 = 0;
			iVar7 = 0;
			StringCopy(&Var2, "O_FMF_B1", 16);
			break;
		
		case 20:
			iVar6 = 0;
			iVar7 = 0;
			StringCopy(&Var2, "O_FMF_B2", 16);
			break;
		
		case 21:
			iVar6 = 0;
			iVar7 = 0;
			StringCopy(&Var2, "O_FMF_B3", 16);
			break;
		
		case 22:
			iVar6 = 0;
			iVar7 = 0;
			StringCopy(&Var2, "O_FMF_B4", 16);
			break;
		
		case 23:
			iVar6 = 0;
			iVar7 = 0;
			StringCopy(&Var2, "O_FMF_B5", 16);
			break;
		
		case 24:
			iVar6 = 0;
			iVar7 = 0;
			StringCopy(&Var2, "O_FMF_B6", 16);
			break;
		
		case 25:
			iVar6 = 0;
			iVar7 = 0;
			StringCopy(&Var2, "O_FMF_B7", 16);
			break;
		
		case 26:
			iVar6 = 0;
			iVar7 = 0;
			StringCopy(&Var2, "O_FMF_B8", 16);
			break;
		
		case 27:
			iVar6 = 0;
			iVar7 = 0;
			StringCopy(&Var2, "O_FMF_B9", 16);
			break;
		
		default:
			Global_69518[0 /*14*/].f_5 = 4;
			func_203(iVar10, iParam0, 28);
			return;
			break;
	}
	func_195(&(Global_69518[0 /*14*/]), iVar10, iParam0, &Var2, iVar6, iVar7, iVar1, iVar0, iVar8, iVar9, 0);
}

void func_206(int iParam0)//Position - 0x2D169
{
	int iVar0;
	int iVar1;
	struct<2> Var2;
	int iVar6;
	int iVar7;
	int iVar8;
	int iVar9;
	int iVar10;
	int iVar11;
	int iVar12;
	int iVar13;
	int iVar14;
	int iVar15;
	
	iVar0 = false;
	iVar1 = 10;
	iVar6 = 0;
	iVar7 = 0;
	iVar8 = -1;
	iVar9 = 2;
	iVar10 = 14;
	iVar11 = 0;
	switch (iParam0)
	{
		case 0:
			iVar6 = -1;
			iVar7 = 0;
			iVar1 = 0;
			iVar8 = 0;
			break;
		
		case 1:
			iVar6 = -1;
			iVar7 = 0;
			iVar1 = 0;
			iVar8 = 1;
			break;
		
		case 2:
			iVar6 = -1;
			iVar7 = 0;
			iVar1 = 0;
			iVar8 = 2;
			break;
		
		case 3:
			iVar6 = -1;
			iVar7 = 0;
			iVar1 = 0;
			iVar8 = 3;
			break;
		
		case 4:
			iVar6 = -1;
			iVar7 = 0;
			iVar1 = 0;
			iVar8 = 4;
			break;
		
		case 5:
			iVar6 = -1;
			iVar7 = 0;
			iVar1 = 0;
			iVar8 = 5;
			break;
		
		case 6:
			iVar6 = -1;
			iVar7 = 0;
			iVar1 = 0;
			iVar8 = 6;
			break;
		
		case 7:
			iVar6 = -1;
			iVar7 = 0;
			iVar1 = 0;
			iVar8 = 7;
			break;
		
		case 8:
			iVar6 = -1;
			iVar7 = 0;
			iVar1 = 0;
			iVar8 = 8;
			break;
		
		case 10:
			StringCopy(&Var2, "HT_FMF_0_0", 16);
			iVar6 = 0;
			iVar7 = 0;
			iVar1 = 65;
			iVar8 = 0;
			iVar11 = 1;
			break;
		
		case 11:
			StringCopy(&Var2, "HT_FMF_0_1", 16);
			iVar6 = 0;
			iVar7 = 1;
			iVar1 = 65;
			iVar8 = 0;
			iVar11 = 1;
			break;
		
		case 12:
			StringCopy(&Var2, "HT_FMF_0_2", 16);
			iVar6 = 0;
			iVar7 = 2;
			iVar1 = 85;
			iVar8 = 0;
			iVar11 = 1;
			break;
		
		case 13:
			StringCopy(&Var2, "HT_FMF_0_3", 16);
			iVar6 = 0;
			iVar7 = 3;
			iVar1 = 75;
			iVar8 = 0;
			iVar11 = 1;
			break;
		
		case 14:
			StringCopy(&Var2, "HT_FMF_0_4", 16);
			iVar6 = 0;
			iVar7 = 4;
			iVar1 = 235;
			iVar8 = 0;
			iVar11 = 1;
			break;
		
		case 15:
			StringCopy(&Var2, "HT_FMF_0_5", 16);
			iVar6 = 0;
			iVar7 = 5;
			iVar1 = 80;
			iVar8 = 0;
			iVar11 = 1;
			break;
		
		case 16:
			StringCopy(&Var2, "HT_FMF_0_6", 16);
			iVar6 = 0;
			iVar7 = 6;
			iVar1 = 85;
			iVar8 = 0;
			iVar11 = 1;
			break;
		
		case 17:
			StringCopy(&Var2, "HT_FMF_0_7", 16);
			iVar6 = 0;
			iVar7 = 7;
			iVar1 = 90;
			iVar8 = 0;
			iVar11 = 1;
			break;
	}
	switch (iParam0)
	{
		case 18:
			StringCopy(&Var2, "HT_FMF_1_0", 16);
			iVar6 = 1;
			iVar7 = 0;
			iVar8 = 0;
			break;
		
		case 19:
			StringCopy(&Var2, "HT_FMF_2_0", 16);
			iVar6 = 2;
			iVar7 = 0;
			iVar1 = 0;
			iVar8 = 0;
			iVar11 = 1;
			iVar0 = true;
			break;
		
		case 20:
			StringCopy(&Var2, "HT_FMF_2_1", 16);
			iVar6 = 2;
			iVar7 = 1;
			iVar1 = 5000;
			iVar8 = 0;
			iVar11 = 1;
			break;
		
		case 21:
			StringCopy(&Var2, "HT_FMF_2_2", 16);
			iVar6 = 2;
			iVar7 = 2;
			iVar1 = 0;
			iVar8 = 0;
			iVar11 = 1;
			iVar0 = true;
			break;
		
		case 22:
			StringCopy(&Var2, "HT_FMF_2_3", 16);
			iVar6 = 2;
			iVar7 = 3;
			iVar1 = 0;
			iVar8 = 0;
			iVar11 = 1;
			iVar0 = true;
			break;
		
		case 23:
			StringCopy(&Var2, "HT_FMF_2_4", 16);
			iVar6 = 2;
			iVar7 = 4;
			iVar1 = 0;
			iVar8 = 0;
			iVar11 = 1;
			iVar0 = true;
			break;
		
		case 24:
			StringCopy(&Var2, "HT_FMF_2_5", 16);
			iVar6 = 2;
			iVar7 = 5;
			iVar1 = 0;
			iVar8 = 0;
			iVar11 = 1;
			iVar0 = true;
			break;
		
		case 25:
			StringCopy(&Var2, "HT_FMF_2_6", 16);
			iVar6 = 2;
			iVar7 = 6;
			iVar1 = 0;
			iVar8 = 0;
			iVar11 = 1;
			iVar0 = true;
			break;
		
		case 26:
			StringCopy(&Var2, "HT_FMF_2_7", 16);
			iVar6 = 2;
			iVar7 = 7;
			iVar1 = 0;
			iVar8 = 0;
			iVar11 = 1;
			iVar0 = true;
			break;
		
		case 27:
			StringCopy(&Var2, "HT_FMF_3_0", 16);
			iVar6 = 3;
			iVar7 = 0;
			iVar1 = 0;
			iVar8 = 0;
			iVar11 = 1;
			iVar0 = true;
			break;
		
		case 28:
			StringCopy(&Var2, "HT_FMF_3_1", 16);
			iVar6 = 3;
			iVar7 = 1;
			iVar1 = 0;
			iVar8 = 0;
			iVar11 = 1;
			iVar0 = true;
			break;
		
		case 29:
			StringCopy(&Var2, "HT_FMF_3_2", 16);
			iVar6 = 3;
			iVar7 = 2;
			iVar1 = 0;
			iVar8 = 0;
			iVar11 = 1;
			iVar0 = true;
			break;
		
		case 30:
			StringCopy(&Var2, "HT_FMF_3_3", 16);
			iVar6 = 3;
			iVar7 = 3;
			iVar1 = 0;
			iVar8 = 0;
			iVar11 = 1;
			iVar0 = true;
			break;
		
		case 31:
			StringCopy(&Var2, "HT_FMF_3_4", 16);
			iVar6 = 3;
			iVar7 = 4;
			iVar1 = 0;
			iVar8 = 0;
			iVar11 = 1;
			iVar0 = true;
			break;
		
		case 32:
			StringCopy(&Var2, "HT_FMF_3_5", 16);
			iVar6 = 3;
			iVar7 = 5;
			iVar1 = 0;
			iVar8 = 0;
			iVar11 = 1;
			iVar0 = true;
			break;
		
		case 33:
			StringCopy(&Var2, "HT_FMF_3_6", 16);
			iVar6 = 3;
			iVar7 = 6;
			iVar1 = 0;
			iVar8 = 0;
			iVar11 = 1;
			iVar0 = true;
			break;
		
		case 34:
			StringCopy(&Var2, "HT_FMF_3_7", 16);
			iVar6 = 3;
			iVar7 = 7;
			iVar1 = 120;
			iVar8 = 0;
			iVar11 = 1;
			break;
		
		case 35:
			StringCopy(&Var2, "HT_FMF_4_0", 16);
			iVar6 = 4;
			iVar7 = 0;
			iVar1 = 400;
			iVar8 = 0;
			iVar11 = 1;
			break;
		
		case 36:
			StringCopy(&Var2, "HT_FMF_4_1", 16);
			iVar6 = 4;
			iVar7 = 1;
			iVar1 = 65;
			iVar8 = 0;
			iVar11 = 1;
			break;
		
		case 37:
			StringCopy(&Var2, "HT_FMF_4_2", 16);
			iVar6 = 4;
			iVar7 = 2;
			iVar1 = 375;
			iVar8 = 0;
			iVar11 = 1;
			break;
		
		case 38:
			StringCopy(&Var2, "HT_FMF_4_3", 16);
			iVar6 = 4;
			iVar7 = 3;
			iVar1 = 75;
			iVar8 = 0;
			iVar11 = 1;
			break;
		
		case 39:
			StringCopy(&Var2, "HT_FMF_4_4", 16);
			iVar6 = 4;
			iVar7 = 4;
			iVar1 = 65;
			iVar8 = 0;
			iVar11 = 1;
			break;
		
		case 40:
			StringCopy(&Var2, "HT_FMF_4_5", 16);
			iVar6 = 4;
			iVar7 = 5;
			iVar1 = 65;
			iVar8 = 0;
			iVar11 = 1;
			break;
		
		case 41:
			StringCopy(&Var2, "HT_FMF_4_6", 16);
			iVar6 = 4;
			iVar7 = 6;
			iVar1 = 85;
			iVar8 = 0;
			iVar11 = 1;
			break;
		
		case 42:
			StringCopy(&Var2, "HT_FMF_4_7", 16);
			iVar6 = 4;
			iVar7 = 7;
			iVar1 = 325;
			iVar8 = 0;
			iVar11 = 1;
			break;
		
		case 43:
			StringCopy(&Var2, "HT_FMF_5_0", 16);
			iVar6 = 5;
			iVar7 = 0;
			iVar1 = 35;
			iVar8 = 0;
			iVar11 = 1;
			break;
		
		case 44:
			StringCopy(&Var2, "HT_FMF_5_1", 16);
			iVar6 = 5;
			iVar7 = 1;
			iVar1 = 30;
			iVar8 = 0;
			iVar11 = 1;
			break;
		
		case 45:
			StringCopy(&Var2, "HT_FMF_5_2", 16);
			iVar6 = 5;
			iVar7 = 2;
			iVar1 = 35;
			iVar8 = 0;
			iVar11 = 1;
			break;
		
		case 46:
			StringCopy(&Var2, "HT_FMF_5_3", 16);
			iVar6 = 5;
			iVar7 = 3;
			iVar1 = 40;
			iVar8 = 0;
			iVar11 = 1;
			break;
		
		case 47:
			StringCopy(&Var2, "HT_FMF_5_4", 16);
			iVar6 = 5;
			iVar7 = 4;
			iVar1 = 35;
			iVar8 = 0;
			iVar11 = 1;
			break;
		
		case 48:
			StringCopy(&Var2, "HT_FMF_5_5", 16);
			iVar6 = 5;
			iVar7 = 5;
			iVar1 = 30;
			iVar8 = 0;
			iVar11 = 1;
			break;
		
		case 49:
			StringCopy(&Var2, "HT_FMF_5_6", 16);
			iVar6 = 5;
			iVar7 = 6;
			iVar1 = 35;
			iVar8 = 0;
			iVar11 = 1;
			break;
		
		case 50:
			StringCopy(&Var2, "HT_FMF_5_7", 16);
			iVar6 = 5;
			iVar7 = 7;
			iVar1 = 255;
			iVar8 = 0;
			iVar11 = 1;
			break;
		
		case 51:
			StringCopy(&Var2, "HT_FMF_6_0", 16);
			iVar6 = 6;
			iVar7 = 0;
			iVar1 = 360;
			iVar8 = 0;
			iVar11 = 1;
			break;
		
		case 52:
			StringCopy(&Var2, "HT_FMF_6_1", 16);
			iVar6 = 6;
			iVar7 = 1;
			iVar1 = 195;
			iVar8 = 0;
			iVar11 = 1;
			break;
		
		case 53:
			StringCopy(&Var2, "HT_FMF_6_2", 16);
			iVar6 = 6;
			iVar7 = 2;
			iVar1 = 3970;
			iVar8 = 0;
			iVar11 = 1;
			break;
		
		case 54:
			StringCopy(&Var2, "HT_FMF_6_3", 16);
			iVar6 = 6;
			iVar7 = 3;
			iVar1 = 135;
			iVar8 = 0;
			iVar11 = 1;
			break;
		
		case 55:
			StringCopy(&Var2, "HT_FMF_6_4", 16);
			iVar6 = 6;
			iVar7 = 4;
			iVar1 = 1355;
			iVar8 = 0;
			iVar11 = 1;
			break;
		
		case 56:
			StringCopy(&Var2, "HT_FMF_6_5", 16);
			iVar6 = 6;
			iVar7 = 5;
			iVar1 = 110;
			iVar8 = 0;
			iVar11 = 1;
			break;
		
		case 57:
			StringCopy(&Var2, "HT_FMF_6_6", 16);
			iVar6 = 6;
			iVar7 = 6;
			iVar1 = 140;
			iVar8 = 0;
			iVar11 = 1;
			break;
		
		case 58:
			StringCopy(&Var2, "HT_FMF_6_7", 16);
			iVar6 = 6;
			iVar7 = 7;
			iVar1 = 130;
			iVar8 = 0;
			iVar11 = 1;
			break;
		
		case 59:
			StringCopy(&Var2, "HT_FMF_7_0", 16);
			iVar6 = 7;
			iVar7 = 0;
			iVar1 = 230;
			iVar8 = 0;
			iVar11 = 1;
			break;
		
		case 60:
			StringCopy(&Var2, "HT_FMF_7_1", 16);
			iVar6 = 7;
			iVar7 = 1;
			iVar1 = 195;
			iVar8 = 0;
			iVar11 = 1;
			break;
		
		case 61:
			StringCopy(&Var2, "HT_FMF_7_2", 16);
			iVar6 = 7;
			iVar7 = 2;
			iVar1 = 515;
			iVar8 = 0;
			iVar11 = 1;
			break;
		
		case 62:
			StringCopy(&Var2, "HT_FMF_7_3", 16);
			iVar6 = 7;
			iVar7 = 3;
			iVar1 = 545;
			iVar8 = 0;
			iVar11 = 1;
			break;
		
		case 63:
			StringCopy(&Var2, "HT_FMF_7_4", 16);
			iVar6 = 7;
			iVar7 = 4;
			iVar1 = 195;
			iVar8 = 0;
			iVar11 = 1;
			break;
		
		case 64:
			StringCopy(&Var2, "HT_FMF_7_5", 16);
			iVar6 = 7;
			iVar7 = 5;
			iVar1 = 155;
			iVar8 = 0;
			iVar11 = 1;
			break;
		
		case 65:
			StringCopy(&Var2, "HT_FMF_7_6", 16);
			iVar6 = 7;
			iVar7 = 6;
			iVar1 = 155;
			iVar8 = 0;
			iVar11 = 1;
			break;
		
		case 66:
			StringCopy(&Var2, "HT_FMF_7_7", 16);
			iVar6 = 7;
			iVar7 = 7;
			iVar1 = 1440;
			iVar8 = 0;
			iVar11 = 1;
			break;
	}
	switch (iParam0)
	{
		case 67:
			StringCopy(&Var2, "HT_FMF_8_0", 16);
			iVar6 = 8;
			iVar7 = 0;
			iVar1 = 0;
			iVar8 = 0;
			iVar11 = 1;
			iVar0 = true;
			break;
		
		case 68:
			StringCopy(&Var2, "HT_FMF_8_1", 16);
			iVar6 = 8;
			iVar7 = 1;
			iVar1 = 0;
			iVar8 = 0;
			iVar11 = 1;
			iVar0 = true;
			break;
		
		case 69:
			StringCopy(&Var2, "HT_FMF_8_2", 16);
			iVar6 = 8;
			iVar7 = 2;
			iVar1 = 0;
			iVar8 = 0;
			iVar11 = 1;
			iVar0 = true;
			break;
		
		case 70:
			StringCopy(&Var2, "HT_FMF_8_3", 16);
			iVar6 = 8;
			iVar7 = 3;
			iVar1 = 0;
			iVar8 = 0;
			iVar11 = 1;
			iVar0 = true;
			break;
		
		case 71:
			StringCopy(&Var2, "HT_FMF_8_4", 16);
			iVar6 = 8;
			iVar7 = 4;
			iVar1 = 0;
			iVar8 = 0;
			iVar11 = 1;
			iVar0 = true;
			break;
		
		case 72:
			StringCopy(&Var2, "HT_FMF_8_5", 16);
			iVar6 = 8;
			iVar7 = 5;
			iVar1 = 0;
			iVar8 = 0;
			iVar11 = 1;
			iVar0 = true;
			break;
		
		case 73:
			StringCopy(&Var2, "HT_FMF_8_6", 16);
			iVar6 = 8;
			iVar7 = 6;
			iVar1 = 0;
			iVar8 = 0;
			iVar11 = 1;
			iVar0 = true;
			break;
		
		case 74:
			StringCopy(&Var2, "HT_FMF_8_7", 16);
			iVar6 = 8;
			iVar7 = 7;
			iVar1 = 0;
			iVar8 = 0;
			iVar11 = 1;
			iVar0 = true;
			break;
		
		case 75:
			StringCopy(&Var2, "HT_FMF_9_0", 16);
			iVar6 = 9;
			iVar7 = 0;
			iVar1 = 35;
			iVar8 = 0;
			iVar11 = 1;
			break;
		
		case 76:
			StringCopy(&Var2, "HT_FMF_9_1", 16);
			iVar6 = 9;
			iVar7 = 1;
			iVar1 = 25;
			iVar8 = 0;
			iVar11 = 1;
			break;
		
		case 77:
			StringCopy(&Var2, "HT_FMF_9_2", 16);
			iVar6 = 9;
			iVar7 = 2;
			iVar1 = 30;
			iVar8 = 0;
			iVar11 = 1;
			break;
		
		case 78:
			StringCopy(&Var2, "HT_FMF_9_3", 16);
			iVar6 = 9;
			iVar7 = 3;
			iVar1 = 25;
			iVar8 = 0;
			iVar11 = 1;
			break;
		
		case 79:
			StringCopy(&Var2, "HT_FMF_9_4", 16);
			iVar6 = 9;
			iVar7 = 4;
			iVar1 = 50;
			iVar8 = 0;
			iVar11 = 1;
			break;
		
		case 80:
			StringCopy(&Var2, "HT_FMF_9_5", 16);
			iVar6 = 9;
			iVar7 = 5;
			iVar1 = 40;
			iVar8 = 0;
			iVar11 = 1;
			break;
		
		case 81:
			StringCopy(&Var2, "HT_FMF_9_6", 16);
			iVar6 = 9;
			iVar7 = 6;
			iVar1 = 575;
			iVar8 = 0;
			iVar11 = 1;
			break;
		
		case 82:
			StringCopy(&Var2, "HT_FMF_9_7", 16);
			iVar6 = 9;
			iVar7 = 7;
			iVar1 = 605;
			iVar8 = 0;
			iVar11 = 1;
			break;
		
		case 83:
			StringCopy(&Var2, "HT_FMF_10_0", 16);
			iVar6 = 10;
			iVar7 = 0;
			iVar1 = 0;
			iVar8 = 0;
			iVar11 = 1;
			iVar0 = true;
			break;
		
		case 84:
			StringCopy(&Var2, "HT_FMF_10_1", 16);
			iVar6 = 10;
			iVar7 = 1;
			iVar1 = 0;
			iVar8 = 0;
			iVar11 = 1;
			iVar0 = true;
			break;
		
		case 85:
			StringCopy(&Var2, "HT_FMF_10_2", 16);
			iVar6 = 10;
			iVar7 = 2;
			iVar1 = 0;
			iVar8 = 0;
			iVar11 = 1;
			iVar0 = true;
			break;
		
		case 86:
			StringCopy(&Var2, "HT_FMF_10_3", 16);
			iVar6 = 10;
			iVar7 = 3;
			iVar1 = 0;
			iVar8 = 0;
			iVar11 = 1;
			iVar0 = true;
			break;
		
		case 87:
			StringCopy(&Var2, "HT_FMF_10_4", 16);
			iVar6 = 10;
			iVar7 = 4;
			iVar1 = 0;
			iVar8 = 0;
			iVar11 = 1;
			iVar0 = true;
			break;
		
		case 88:
			StringCopy(&Var2, "HT_FMF_10_5", 16);
			iVar6 = 10;
			iVar7 = 5;
			iVar1 = 0;
			iVar8 = 0;
			iVar11 = 1;
			iVar0 = true;
			break;
		
		case 89:
			StringCopy(&Var2, "HT_FMF_10_6", 16);
			iVar6 = 10;
			iVar7 = 6;
			iVar1 = 0;
			iVar8 = 0;
			iVar11 = 1;
			iVar0 = true;
			break;
		
		case 90:
			StringCopy(&Var2, "HT_FMF_10_7", 16);
			iVar6 = 10;
			iVar7 = 7;
			iVar1 = 285;
			iVar8 = 0;
			iVar11 = 1;
			break;
		
		case 91:
			StringCopy(&Var2, "HT_FMF_11_0", 16);
			iVar6 = 11;
			iVar7 = 0;
			iVar1 = 0;
			iVar8 = 0;
			iVar11 = 1;
			iVar0 = true;
			break;
		
		case 92:
			StringCopy(&Var2, "HT_FMF_11_1", 16);
			iVar6 = 11;
			iVar7 = 1;
			iVar1 = 2125;
			iVar8 = 0;
			iVar11 = 1;
			break;
		
		case 93:
			StringCopy(&Var2, "HT_FMF_11_2", 16);
			iVar6 = 11;
			iVar7 = 2;
			iVar1 = 0;
			iVar8 = 0;
			iVar11 = 1;
			iVar0 = true;
			break;
		
		case 94:
			StringCopy(&Var2, "HT_FMF_11_3", 16);
			iVar6 = 11;
			iVar7 = 3;
			iVar1 = 0;
			iVar8 = 0;
			iVar11 = 1;
			iVar0 = true;
			break;
		
		case 95:
			StringCopy(&Var2, "HT_FMF_11_4", 16);
			iVar6 = 11;
			iVar7 = 4;
			iVar1 = 0;
			iVar8 = 0;
			iVar11 = 1;
			iVar0 = true;
			break;
		
		case 96:
			StringCopy(&Var2, "HT_FMF_11_5", 16);
			iVar6 = 11;
			iVar7 = 5;
			iVar1 = 0;
			iVar8 = 0;
			iVar11 = 1;
			iVar0 = true;
			break;
		
		case 97:
			StringCopy(&Var2, "HT_FMF_11_6", 16);
			iVar6 = 11;
			iVar7 = 6;
			iVar1 = 0;
			iVar8 = 0;
			iVar11 = 1;
			iVar0 = true;
			break;
		
		case 98:
			StringCopy(&Var2, "HT_FMF_11_7", 16);
			iVar6 = 11;
			iVar7 = 7;
			iVar1 = 0;
			iVar8 = 0;
			iVar11 = 1;
			iVar0 = true;
			break;
		
		case 99:
			StringCopy(&Var2, "HT_FMF_12_0", 16);
			iVar6 = 12;
			iVar7 = 0;
			iVar1 = 75;
			iVar8 = 0;
			iVar11 = 1;
			break;
		
		case 100:
			StringCopy(&Var2, "HT_FMF_12_1", 16);
			iVar6 = 12;
			iVar7 = 1;
			iVar1 = 0;
			iVar8 = 0;
			iVar11 = 1;
			iVar0 = true;
			break;
		
		case 101:
			StringCopy(&Var2, "HT_FMF_12_2", 16);
			iVar6 = 12;
			iVar7 = 2;
			iVar1 = 0;
			iVar8 = 0;
			iVar11 = 1;
			iVar0 = true;
			break;
		
		case 102:
			StringCopy(&Var2, "HT_FMF_12_3", 16);
			iVar6 = 12;
			iVar7 = 3;
			iVar1 = 0;
			iVar8 = 0;
			iVar11 = 1;
			iVar0 = true;
			break;
		
		case 103:
			StringCopy(&Var2, "HT_FMF_12_4", 16);
			iVar6 = 12;
			iVar7 = 4;
			iVar1 = 0;
			iVar8 = 0;
			iVar11 = 1;
			iVar0 = true;
			break;
		
		case 104:
			StringCopy(&Var2, "HT_FMF_12_5", 16);
			iVar6 = 12;
			iVar7 = 5;
			iVar1 = 0;
			iVar8 = 0;
			iVar11 = 1;
			iVar0 = true;
			break;
		
		case 105:
			StringCopy(&Var2, "HT_FMF_12_6", 16);
			iVar6 = 12;
			iVar7 = 6;
			iVar1 = 75;
			iVar8 = 0;
			iVar11 = 1;
			break;
		
		case 106:
			StringCopy(&Var2, "HT_FMF_12_7", 16);
			iVar6 = 12;
			iVar7 = 7;
			iVar1 = 295;
			iVar8 = 0;
			iVar11 = 1;
			break;
		
		case 107:
			StringCopy(&Var2, "HT_FMF_13_0", 16);
			iVar6 = 13;
			iVar7 = 0;
			iVar1 = 195;
			iVar8 = 0;
			iVar11 = 1;
			break;
		
		case 108:
			StringCopy(&Var2, "HT_FMF_13_1", 16);
			iVar6 = 13;
			iVar7 = 1;
			iVar1 = 200;
			iVar8 = 0;
			iVar11 = 1;
			break;
		
		case 109:
			StringCopy(&Var2, "HT_FMF_13_2", 16);
			iVar6 = 13;
			iVar7 = 2;
			iVar1 = 160;
			iVar8 = 0;
			iVar11 = 1;
			break;
		
		case 110:
			StringCopy(&Var2, "HT_FMF_13_3", 16);
			iVar6 = 13;
			iVar7 = 3;
			iVar1 = 855;
			iVar8 = 0;
			iVar11 = 1;
			break;
		
		case 111:
			StringCopy(&Var2, "HT_FMF_13_4", 16);
			iVar6 = 13;
			iVar7 = 4;
			iVar1 = 1615;
			iVar8 = 0;
			iVar11 = 1;
			break;
		
		case 112:
			StringCopy(&Var2, "HT_FMF_13_5", 16);
			iVar6 = 13;
			iVar7 = 5;
			iVar1 = 1130;
			iVar8 = 0;
			iVar11 = 1;
			break;
		
		case 113:
			StringCopy(&Var2, "HT_FMF_13_6", 16);
			iVar6 = 13;
			iVar7 = 6;
			iVar1 = 165;
			iVar8 = 0;
			iVar11 = 1;
			break;
		
		case 114:
			StringCopy(&Var2, "HT_FMF_13_7", 16);
			iVar6 = 13;
			iVar7 = 7;
			iVar1 = 215;
			iVar8 = 0;
			iVar11 = 1;
			break;
		
		case 115:
			StringCopy(&Var2, "HT_FMF_14_0", 16);
			iVar6 = 14;
			iVar7 = 0;
			iVar1 = 145;
			iVar8 = 0;
			iVar11 = 1;
			break;
		
		case 116:
			StringCopy(&Var2, "HT_FMF_14_1", 16);
			iVar6 = 14;
			iVar7 = 1;
			iVar1 = 250;
			iVar8 = 0;
			iVar11 = 1;
			break;
		
		case 117:
			StringCopy(&Var2, "HT_FMF_14_2", 16);
			iVar6 = 14;
			iVar7 = 2;
			iVar1 = 110;
			iVar8 = 0;
			iVar11 = 1;
			break;
		
		case 118:
			StringCopy(&Var2, "HT_FMF_14_3", 16);
			iVar6 = 14;
			iVar7 = 3;
			iVar1 = 145;
			iVar8 = 0;
			iVar11 = 1;
			break;
		
		case 119:
			StringCopy(&Var2, "HT_FMF_14_4", 16);
			iVar6 = 14;
			iVar7 = 4;
			iVar1 = 105;
			iVar8 = 0;
			iVar11 = 1;
			break;
		
		case 120:
			StringCopy(&Var2, "HT_FMF_14_5", 16);
			iVar6 = 14;
			iVar7 = 5;
			iVar1 = 105;
			iVar8 = 0;
			iVar11 = 1;
			break;
		
		case 121:
			StringCopy(&Var2, "HT_FMF_14_6", 16);
			iVar6 = 14;
			iVar7 = 6;
			iVar1 = 115;
			iVar8 = 0;
			iVar11 = 1;
			break;
		
		case 122:
			StringCopy(&Var2, "HT_FMF_14_7", 16);
			iVar6 = 14;
			iVar7 = 7;
			iVar1 = 115;
			iVar8 = 0;
			iVar11 = 1;
			break;
		
		case 123:
			StringCopy(&Var2, "HT_FMF_15_0", 16);
			iVar6 = 15;
			iVar7 = 0;
			iVar1 = 390;
			iVar8 = 0;
			iVar11 = 1;
			break;
		
		case 124:
			StringCopy(&Var2, "HT_FMF_15_1", 16);
			iVar6 = 15;
			iVar7 = 1;
			iVar1 = 395;
			iVar8 = 0;
			iVar11 = 1;
			break;
		
		case 125:
			StringCopy(&Var2, "HT_FMF_15_2", 16);
			iVar6 = 15;
			iVar7 = 2;
			iVar1 = 595;
			iVar8 = 0;
			iVar11 = 1;
			break;
		
		case 126:
			StringCopy(&Var2, "HT_FMF_15_3", 16);
			iVar6 = 15;
			iVar7 = 3;
			iVar1 = 425;
			iVar8 = 0;
			iVar11 = 1;
			break;
		
		case 127:
			StringCopy(&Var2, "HT_FMF_15_4", 16);
			iVar6 = 15;
			iVar7 = 4;
			iVar1 = 600;
			iVar8 = 0;
			iVar11 = 1;
			break;
		
		case 128:
			StringCopy(&Var2, "HT_FMF_15_5", 16);
			iVar6 = 15;
			iVar7 = 5;
			iVar1 = 590;
			iVar8 = 0;
			iVar11 = 1;
			break;
		
		case 129:
			StringCopy(&Var2, "HT_FMF_15_6", 16);
			iVar6 = 15;
			iVar7 = 6;
			iVar1 = 595;
			iVar8 = 0;
			iVar11 = 1;
			break;
		
		case 130:
			StringCopy(&Var2, "HT_FMF_15_7", 16);
			iVar6 = 15;
			iVar7 = 7;
			iVar1 = 555;
			iVar8 = 0;
			iVar11 = 1;
			break;
	}
	switch (iParam0)
	{
		case 131:
			StringCopy(&Var2, "HE_FMF_16_0", 16);
			iVar6 = 16;
			iVar7 = 0;
			iVar1 = 1060;
			iVar8 = 0;
			iVar11 = 2;
			break;
		
		case 132:
			StringCopy(&Var2, "HE_FMF_16_1", 16);
			iVar6 = 16;
			iVar7 = 1;
			iVar1 = 1400;
			iVar8 = 0;
			iVar11 = 2;
			break;
		
		case 133:
			StringCopy(&Var2, "HE_FMF_16_2", 16);
			iVar6 = 16;
			iVar7 = 2;
			iVar1 = 1315;
			iVar8 = 0;
			iVar11 = 2;
			break;
		
		case 134:
			StringCopy(&Var2, "HE_FMF_16_3", 16);
			iVar6 = 16;
			iVar7 = 3;
			iVar1 = 1230;
			iVar8 = 0;
			iVar11 = 2;
			break;
		
		case 135:
			StringCopy(&Var2, "HE_FMF_16_4", 16);
			iVar6 = 16;
			iVar7 = 4;
			iVar1 = 1145;
			iVar8 = 0;
			iVar11 = 2;
			break;
		
		case 136:
			StringCopy(&Var2, "HE_FMF_16_5", 16);
			iVar6 = 16;
			iVar7 = 5;
			iVar1 = 8450;
			iVar8 = 0;
			iVar11 = 2;
			break;
		
		case 137:
			StringCopy(&Var2, "HE_FMF_16_6", 16);
			iVar6 = 16;
			iVar7 = 6;
			iVar1 = 675;
			iVar8 = 0;
			iVar11 = 2;
			break;
		
		case 138:
			StringCopy(&Var2, "HE_FMF_16_7", 16);
			iVar6 = 16;
			iVar7 = 7;
			iVar1 = 8750;
			iVar8 = 0;
			iVar11 = 2;
			break;
		
		case 139:
			StringCopy(&Var2, "HE_FMF_17_0", 16);
			iVar6 = 17;
			iVar7 = 0;
			iVar1 = 975;
			iVar8 = 0;
			iVar11 = 2;
			break;
		
		case 140:
			StringCopy(&Var2, "HE_FMF_17_1", 16);
			iVar6 = 17;
			iVar7 = 1;
			iVar1 = 750;
			iVar8 = 0;
			iVar11 = 2;
			break;
		
		case 141:
			StringCopy(&Var2, "HE_FMF_17_2", 16);
			iVar6 = 17;
			iVar7 = 2;
			iVar1 = 865;
			iVar8 = 0;
			iVar11 = 2;
			break;
		
		case 142:
			StringCopy(&Var2, "HE_FMF_17_3", 16);
			iVar6 = 17;
			iVar7 = 3;
			iVar1 = 890;
			iVar8 = 0;
			iVar11 = 2;
			break;
		
		case 143:
			StringCopy(&Var2, "HE_FMF_17_4", 16);
			iVar6 = 17;
			iVar7 = 4;
			iVar1 = 730;
			iVar8 = 0;
			iVar11 = 2;
			break;
		
		case 144:
			StringCopy(&Var2, "HE_FMF_17_5", 16);
			iVar6 = 17;
			iVar7 = 5;
			iVar1 = 650;
			iVar8 = 0;
			iVar11 = 2;
			break;
		
		case 145:
			StringCopy(&Var2, "HE_FMF_17_6", 16);
			iVar6 = 17;
			iVar7 = 6;
			iVar1 = 645;
			iVar8 = 0;
			iVar11 = 2;
			break;
		
		case 146:
			StringCopy(&Var2, "HE_FMF_17_7", 16);
			iVar6 = 17;
			iVar7 = 7;
			iVar1 = 755;
			iVar8 = 0;
			iVar11 = 2;
			break;
		
		case 147:
			StringCopy(&Var2, "HE_FMF_18_0", 16);
			iVar6 = 18;
			iVar7 = 0;
			iVar1 = 13850;
			iVar8 = 0;
			iVar11 = 2;
			break;
		
		case 148:
			StringCopy(&Var2, "HE_FMF_18_1", 16);
			iVar6 = 18;
			iVar7 = 1;
			iVar1 = 2900;
			iVar8 = 0;
			iVar11 = 2;
			break;
		
		case 149:
			StringCopy(&Var2, "HE_FMF_18_2", 16);
			iVar6 = 18;
			iVar7 = 2;
			iVar1 = 2895;
			iVar8 = 0;
			iVar11 = 2;
			break;
		
		case 150:
			StringCopy(&Var2, "HE_FMF_18_3", 16);
			iVar6 = 18;
			iVar7 = 3;
			iVar1 = 12500;
			iVar8 = 0;
			iVar11 = 2;
			break;
		
		case 151:
			StringCopy(&Var2, "HE_FMF_18_4", 16);
			iVar6 = 18;
			iVar7 = 4;
			iVar1 = 15000;
			iVar8 = 0;
			iVar11 = 2;
			break;
		
		case 152:
			StringCopy(&Var2, "HE_FMF_18_5", 16);
			iVar6 = 18;
			iVar7 = 5;
			iVar1 = 14750;
			iVar8 = 0;
			iVar11 = 2;
			break;
		
		case 153:
			StringCopy(&Var2, "HE_FMF_18_6", 16);
			iVar6 = 18;
			iVar7 = 6;
			iVar1 = 13150;
			iVar8 = 0;
			iVar11 = 2;
			break;
		
		case 154:
			StringCopy(&Var2, "HE_FMF_18_7", 16);
			iVar6 = 18;
			iVar7 = 7;
			iVar1 = 2925;
			iVar8 = 0;
			iVar11 = 2;
			break;
	}
	switch (iParam0)
	{
		case 155:
			StringCopy(&Var2, "G_FMF_0_0", 16);
			iVar6 = 0;
			iVar7 = 0;
			iVar1 = 65;
			iVar8 = 1;
			iVar11 = 3;
			break;
		
		case 156:
			StringCopy(&Var2, "G_FMF_0_1", 16);
			iVar6 = 0;
			iVar7 = 1;
			iVar1 = 65;
			iVar8 = 1;
			iVar11 = 3;
			break;
		
		case 157:
			StringCopy(&Var2, "G_FMF_0_2", 16);
			iVar6 = 0;
			iVar7 = 2;
			iVar1 = 85;
			iVar8 = 1;
			iVar11 = 3;
			break;
		
		case 158:
			StringCopy(&Var2, "G_FMF_0_3", 16);
			iVar6 = 0;
			iVar7 = 3;
			iVar1 = 75;
			iVar8 = 1;
			iVar11 = 3;
			break;
		
		case 159:
			StringCopy(&Var2, "G_FMF_0_4", 16);
			iVar6 = 0;
			iVar7 = 4;
			iVar1 = 85;
			iVar8 = 1;
			iVar11 = 3;
			break;
		
		case 160:
			StringCopy(&Var2, "G_FMF_0_5", 16);
			iVar6 = 0;
			iVar7 = 5;
			iVar1 = 80;
			iVar8 = 1;
			iVar11 = 3;
			break;
		
		case 161:
			StringCopy(&Var2, "G_FMF_0_6", 16);
			iVar6 = 0;
			iVar7 = 6;
			iVar1 = 85;
			iVar8 = 1;
			iVar11 = 3;
			break;
		
		case 162:
			StringCopy(&Var2, "G_FMF_0_7", 16);
			iVar6 = 0;
			iVar7 = 7;
			iVar1 = 90;
			iVar8 = 1;
			iVar11 = 3;
			break;
		
		case 163:
			StringCopy(&Var2, "CLO_EXF_G_0_8", 16);
			iVar6 = 0;
			iVar7 = 8;
			iVar1 = 820;
			iVar8 = 1;
			iVar11 = 3;
			break;
		
		case 164:
			StringCopy(&Var2, "CLO_EXF_G_0_9", 16);
			iVar6 = 0;
			iVar7 = 9;
			iVar1 = 435;
			iVar8 = 1;
			iVar11 = 3;
			break;
		
		case 165:
			StringCopy(&Var2, "CLO_EXF_G_0_10", 16);
			iVar6 = 0;
			iVar7 = 10;
			iVar1 = 500;
			iVar8 = 1;
			iVar11 = 3;
			break;
		
		case 166:
			StringCopy(&Var2, "G_FMF_1_0", 16);
			iVar6 = 1;
			iVar7 = 0;
			iVar1 = 160;
			iVar8 = 1;
			iVar11 = 3;
			break;
		
		case 167:
			StringCopy(&Var2, "G_FMF_1_1", 16);
			iVar6 = 1;
			iVar7 = 1;
			iVar1 = 165;
			iVar8 = 1;
			iVar11 = 3;
			break;
		
		case 168:
			StringCopy(&Var2, "G_FMF_1_2", 16);
			iVar6 = 1;
			iVar7 = 2;
			iVar1 = 170;
			iVar8 = 1;
			iVar11 = 3;
			break;
		
		case 169:
			StringCopy(&Var2, "G_FMF_1_3", 16);
			iVar6 = 1;
			iVar7 = 3;
			iVar1 = 135;
			iVar8 = 1;
			iVar11 = 3;
			break;
		
		case 170:
			StringCopy(&Var2, "G_FMF_1_4", 16);
			iVar6 = 1;
			iVar7 = 4;
			iVar1 = 120;
			iVar8 = 1;
			iVar11 = 3;
			break;
		
		case 171:
			StringCopy(&Var2, "G_FMF_1_5", 16);
			iVar6 = 1;
			iVar7 = 5;
			iVar1 = 110;
			iVar8 = 1;
			iVar11 = 3;
			break;
		
		case 172:
			StringCopy(&Var2, "G_FMF_1_6", 16);
			iVar6 = 1;
			iVar7 = 6;
			iVar1 = 140;
			iVar8 = 1;
			iVar11 = 3;
			break;
		
		case 173:
			StringCopy(&Var2, "G_FMF_1_7", 16);
			iVar6 = 1;
			iVar7 = 7;
			iVar1 = 130;
			iVar8 = 1;
			iVar11 = 3;
			break;
		
		case 174:
			StringCopy(&Var2, "CLO_EXF_G_1_8", 16);
			iVar6 = 1;
			iVar7 = 8;
			iVar1 = 970;
			iVar8 = 1;
			iVar11 = 3;
			break;
		
		case 175:
			StringCopy(&Var2, "CLO_EXF_G_1_9", 16);
			iVar6 = 1;
			iVar7 = 9;
			iVar1 = 585;
			iVar8 = 1;
			iVar11 = 3;
			break;
		
		case 176:
			StringCopy(&Var2, "CLO_EXF_G_1_10", 16);
			iVar6 = 1;
			iVar7 = 10;
			iVar1 = 650;
			iVar8 = 1;
			iVar11 = 3;
			break;
		
		case 177:
			StringCopy(&Var2, "G_FMF_2_0", 16);
			iVar6 = 2;
			iVar7 = 0;
			iVar1 = 180;
			iVar8 = 1;
			iVar11 = 3;
			break;
		
		case 178:
			StringCopy(&Var2, "G_FMF_2_1", 16);
			iVar6 = 2;
			iVar7 = 1;
			iVar1 = 110;
			iVar8 = 1;
			iVar11 = 3;
			break;
		
		case 179:
			StringCopy(&Var2, "G_FMF_2_2", 16);
			iVar6 = 2;
			iVar7 = 2;
			iVar1 = 115;
			iVar8 = 1;
			iVar11 = 3;
			break;
		
		case 180:
			StringCopy(&Var2, "G_FMF_2_3", 16);
			iVar6 = 2;
			iVar7 = 3;
			iVar1 = 120;
			iVar8 = 1;
			iVar11 = 3;
			break;
		
		case 181:
			StringCopy(&Var2, "G_FMF_2_4", 16);
			iVar6 = 2;
			iVar7 = 4;
			iVar1 = 595;
			iVar8 = 1;
			iVar11 = 3;
			break;
		
		case 182:
			StringCopy(&Var2, "G_FMF_2_5", 16);
			iVar6 = 2;
			iVar7 = 5;
			iVar1 = 160;
			iVar8 = 1;
			iVar11 = 3;
			break;
		
		case 183:
			StringCopy(&Var2, "G_FMF_2_6", 16);
			iVar6 = 2;
			iVar7 = 6;
			iVar1 = 545;
			iVar8 = 1;
			iVar11 = 3;
			break;
		
		case 184:
			StringCopy(&Var2, "G_FMF_2_7", 16);
			iVar6 = 2;
			iVar7 = 7;
			iVar1 = 590;
			iVar8 = 1;
			iVar11 = 3;
			break;
		
		case 185:
			StringCopy(&Var2, "CLO_EXF_G_2_8", 16);
			iVar6 = 2;
			iVar7 = 8;
			iVar1 = 1125;
			iVar8 = 1;
			iVar11 = 3;
			break;
		
		case 186:
			StringCopy(&Var2, "CLO_EXF_G_2_9", 16);
			iVar6 = 2;
			iVar7 = 9;
			iVar1 = 740;
			iVar8 = 1;
			iVar11 = 3;
			break;
		
		case 187:
			StringCopy(&Var2, "CLO_EXF_G_2_10", 16);
			iVar6 = 2;
			iVar7 = 10;
			iVar1 = 805;
			iVar8 = 1;
			iVar11 = 3;
			break;
		
		case 188:
			StringCopy(&Var2, "G_FMF_3_0", 16);
			iVar6 = 3;
			iVar7 = 0;
			iVar1 = 6250;
			iVar8 = 1;
			iVar11 = 3;
			break;
		
		case 189:
			StringCopy(&Var2, "G_FMF_3_1", 16);
			iVar6 = 3;
			iVar7 = 1;
			iVar1 = 4065;
			iVar8 = 1;
			iVar11 = 3;
			break;
		
		case 190:
			StringCopy(&Var2, "G_FMF_3_2", 16);
			iVar6 = 3;
			iVar7 = 2;
			iVar1 = 3585;
			iVar8 = 1;
			iVar11 = 3;
			break;
		
		case 191:
			StringCopy(&Var2, "G_FMF_3_3", 16);
			iVar6 = 3;
			iVar7 = 3;
			iVar1 = 4075;
			iVar8 = 1;
			iVar11 = 3;
			break;
		
		case 192:
			StringCopy(&Var2, "G_FMF_3_4", 16);
			iVar6 = 3;
			iVar7 = 4;
			iVar1 = 4935;
			iVar8 = 1;
			iVar11 = 3;
			break;
		
		case 193:
			StringCopy(&Var2, "G_FMF_3_5", 16);
			iVar6 = 3;
			iVar7 = 5;
			iVar1 = 130;
			iVar8 = 1;
			iVar11 = 3;
			break;
		
		case 194:
			StringCopy(&Var2, "G_FMF_3_6", 16);
			iVar6 = 3;
			iVar7 = 6;
			iVar1 = 5600;
			iVar8 = 1;
			iVar11 = 3;
			break;
		
		case 195:
			StringCopy(&Var2, "G_FMF_3_7", 16);
			iVar6 = 3;
			iVar7 = 7;
			iVar1 = 4790;
			iVar8 = 1;
			iVar11 = 3;
			break;
		
		case 196:
			StringCopy(&Var2, "CLO_EXF_G_3_8", 16);
			iVar6 = 3;
			iVar7 = 8;
			iVar1 = 2315;
			iVar8 = 1;
			iVar11 = 3;
			break;
		
		case 197:
			StringCopy(&Var2, "CLO_EXF_G_3_9", 16);
			iVar6 = 3;
			iVar7 = 9;
			iVar1 = 1930;
			iVar8 = 1;
			iVar11 = 3;
			break;
		
		case 198:
			StringCopy(&Var2, "CLO_EXF_G_3_10", 16);
			iVar6 = 3;
			iVar7 = 10;
			iVar1 = 1995;
			iVar8 = 1;
			iVar11 = 3;
			break;
		
		case 199:
			StringCopy(&Var2, "G_FMF_4_0", 16);
			iVar6 = 4;
			iVar7 = 0;
			iVar1 = 2245;
			iVar8 = 1;
			iVar11 = 3;
			break;
		
		case 200:
			StringCopy(&Var2, "G_FMF_4_1", 16);
			iVar6 = 4;
			iVar7 = 1;
			iVar1 = 250;
			iVar8 = 1;
			iVar11 = 3;
			break;
		
		case 201:
			StringCopy(&Var2, "G_FMF_4_2", 16);
			iVar6 = 4;
			iVar7 = 2;
			iVar1 = 210;
			iVar8 = 1;
			iVar11 = 3;
			break;
		
		case 202:
			StringCopy(&Var2, "G_FMF_4_3", 16);
			iVar6 = 4;
			iVar7 = 3;
			iVar1 = 245;
			iVar8 = 1;
			iVar11 = 3;
			break;
		
		case 203:
			StringCopy(&Var2, "G_FMF_4_4", 16);
			iVar6 = 4;
			iVar7 = 4;
			iVar1 = 1205;
			iVar8 = 1;
			iVar11 = 3;
			break;
		
		case 204:
			StringCopy(&Var2, "G_FMF_4_5", 16);
			iVar6 = 4;
			iVar7 = 5;
			iVar1 = 205;
			iVar8 = 1;
			iVar11 = 3;
			break;
		
		case 205:
			StringCopy(&Var2, "G_FMF_4_6", 16);
			iVar6 = 4;
			iVar7 = 6;
			iVar1 = 2215;
			iVar8 = 1;
			iVar11 = 3;
			break;
		
		case 206:
			StringCopy(&Var2, "G_FMF_4_7", 16);
			iVar6 = 4;
			iVar7 = 7;
			iVar1 = 215;
			iVar8 = 1;
			iVar11 = 3;
			break;
		
		case 207:
			StringCopy(&Var2, "CLO_EXF_G_4_8", 16);
			iVar6 = 4;
			iVar7 = 8;
			iVar1 = 2835;
			iVar8 = 1;
			iVar11 = 3;
			break;
		
		case 208:
			StringCopy(&Var2, "CLO_EXF_G_4_9", 16);
			iVar6 = 4;
			iVar7 = 9;
			iVar1 = 2450;
			iVar8 = 1;
			iVar11 = 3;
			break;
		
		case 209:
			StringCopy(&Var2, "CLO_EXF_G_4_10", 16);
			iVar6 = 4;
			iVar7 = 10;
			iVar1 = 2515;
			iVar8 = 1;
			iVar11 = 3;
			break;
		
		case 210:
			StringCopy(&Var2, "G_FMF_5_0", 16);
			iVar6 = 5;
			iVar7 = 0;
			iVar1 = 0;
			iVar8 = 1;
			iVar11 = 3;
			iVar0 = true;
			break;
		
		case 211:
			StringCopy(&Var2, "G_FMF_5_1", 16);
			iVar6 = 5;
			iVar7 = 1;
			iVar1 = 0;
			iVar8 = 1;
			iVar11 = 3;
			iVar0 = true;
			break;
		
		case 212:
			StringCopy(&Var2, "G_FMF_5_2", 16);
			iVar6 = 5;
			iVar7 = 2;
			iVar1 = 0;
			iVar8 = 1;
			iVar11 = 3;
			iVar0 = true;
			break;
		
		case 213:
			StringCopy(&Var2, "G_FMF_5_3", 16);
			iVar6 = 5;
			iVar7 = 3;
			iVar1 = 0;
			iVar8 = 1;
			iVar11 = 3;
			iVar0 = true;
			break;
		
		case 214:
			StringCopy(&Var2, "G_FMF_5_4", 16);
			iVar6 = 5;
			iVar7 = 4;
			iVar1 = 0;
			iVar8 = 1;
			iVar11 = 3;
			iVar0 = true;
			break;
		
		case 215:
			StringCopy(&Var2, "G_FMF_5_5", 16);
			iVar6 = 5;
			iVar7 = 5;
			iVar1 = 0;
			iVar8 = 1;
			iVar11 = 3;
			iVar0 = true;
			break;
		
		case 216:
			StringCopy(&Var2, "G_FMF_5_6", 16);
			iVar6 = 5;
			iVar7 = 6;
			iVar1 = 0;
			iVar8 = 1;
			iVar11 = 3;
			iVar0 = true;
			break;
		
		case 217:
			StringCopy(&Var2, "G_FMF_5_7", 16);
			iVar6 = 5;
			iVar7 = 7;
			iVar1 = 0;
			iVar8 = 1;
			iVar11 = 3;
			iVar0 = true;
			break;
		
		case 218:
			StringCopy(&Var2, "G_FMF_5_8", 16);
			iVar6 = 5;
			iVar7 = 8;
			iVar1 = 50;
			iVar8 = 1;
			iVar11 = 3;
			break;
		
		case 219:
			StringCopy(&Var2, "G_FMF_5_9", 16);
			iVar6 = 5;
			iVar7 = 9;
			iVar1 = 50;
			iVar8 = 1;
			iVar11 = 3;
			break;
		
		case 220:
			StringCopy(&Var2, "G_FMF_5_10", 16);
			iVar6 = 5;
			iVar7 = 10;
			iVar1 = 50;
			iVar8 = 1;
			iVar11 = 3;
			break;
		
		case 221:
			StringCopy(&Var2, "G_FMF_6_0", 16);
			iVar6 = 6;
			iVar7 = 0;
			iVar1 = 5000;
			iVar8 = 1;
			iVar11 = 3;
			break;
		
		case 222:
			StringCopy(&Var2, "G_FMF_6_1", 16);
			iVar6 = 6;
			iVar7 = 1;
			iVar1 = 0;
			iVar8 = 1;
			iVar11 = 3;
			iVar0 = true;
			break;
		
		case 223:
			StringCopy(&Var2, "G_FMF_6_2", 16);
			iVar6 = 6;
			iVar7 = 2;
			iVar1 = 0;
			iVar8 = 1;
			iVar11 = 3;
			iVar0 = true;
			break;
		
		case 224:
			StringCopy(&Var2, "G_FMF_6_3", 16);
			iVar6 = 6;
			iVar7 = 3;
			iVar1 = 0;
			iVar8 = 1;
			iVar11 = 3;
			iVar0 = true;
			break;
		
		case 225:
			StringCopy(&Var2, "G_FMF_6_4", 16);
			iVar6 = 6;
			iVar7 = 4;
			iVar1 = 0;
			iVar8 = 1;
			iVar11 = 3;
			iVar0 = true;
			break;
		
		case 226:
			StringCopy(&Var2, "G_FMF_6_5", 16);
			iVar6 = 6;
			iVar7 = 5;
			iVar1 = 0;
			iVar8 = 1;
			iVar11 = 3;
			iVar0 = true;
			break;
		
		case 227:
			StringCopy(&Var2, "G_FMF_6_6", 16);
			iVar6 = 6;
			iVar7 = 6;
			iVar1 = 0;
			iVar8 = 1;
			iVar11 = 3;
			iVar0 = true;
			break;
		
		case 228:
			StringCopy(&Var2, "G_FMF_6_7", 16);
			iVar6 = 6;
			iVar7 = 7;
			iVar1 = 0;
			iVar8 = 1;
			iVar11 = 3;
			iVar0 = true;
			break;
		
		case 229:
			StringCopy(&Var2, "CLO_EXF_G_6_8", 16);
			iVar6 = 6;
			iVar7 = 8;
			iVar1 = 2820;
			iVar8 = 1;
			iVar11 = 3;
			break;
		
		case 230:
			StringCopy(&Var2, "CLO_EXF_G_6_9", 16);
			iVar6 = 6;
			iVar7 = 9;
			iVar1 = 2435;
			iVar8 = 1;
			iVar11 = 3;
			break;
		
		case 231:
			StringCopy(&Var2, "CLO_EXF_G_6_10", 16);
			iVar6 = 6;
			iVar7 = 10;
			iVar1 = 2500;
			iVar8 = 1;
			iVar11 = 3;
			break;
		
		case 232:
			StringCopy(&Var2, "G_FMF_7_0", 16);
			iVar6 = 7;
			iVar7 = 0;
			iVar1 = 4815;
			iVar8 = 1;
			iVar11 = 3;
			break;
		
		case 233:
			StringCopy(&Var2, "G_FMF_7_1", 16);
			iVar6 = 7;
			iVar7 = 1;
			iVar1 = 4795;
			iVar8 = 1;
			iVar11 = 3;
			break;
		
		case 234:
			StringCopy(&Var2, "G_FMF_7_2", 16);
			iVar6 = 7;
			iVar7 = 2;
			iVar1 = 4305;
			iVar8 = 1;
			iVar11 = 3;
			break;
		
		case 235:
			StringCopy(&Var2, "G_FMF_7_3", 16);
			iVar6 = 7;
			iVar7 = 3;
			iVar1 = 4305;
			iVar8 = 1;
			iVar11 = 3;
			break;
		
		case 236:
			StringCopy(&Var2, "G_FMF_7_4", 16);
			iVar6 = 7;
			iVar7 = 4;
			iVar1 = 4965;
			iVar8 = 1;
			iVar11 = 3;
			break;
		
		case 237:
			StringCopy(&Var2, "G_FMF_7_5", 16);
			iVar6 = 7;
			iVar7 = 5;
			iVar1 = 480;
			iVar8 = 1;
			iVar11 = 3;
			break;
		
		case 238:
			StringCopy(&Var2, "G_FMF_7_6", 16);
			iVar6 = 7;
			iVar7 = 6;
			iVar1 = 465;
			iVar8 = 1;
			iVar11 = 3;
			break;
		
		case 239:
			StringCopy(&Var2, "G_FMF_7_7", 16);
			iVar6 = 7;
			iVar7 = 7;
			iVar1 = 4320;
			iVar8 = 1;
			iVar11 = 3;
			break;
		
		case 240:
			StringCopy(&Var2, "CLO_EXF_G_7_8", 16);
			iVar6 = 7;
			iVar7 = 8;
			iVar1 = 2390;
			iVar8 = 1;
			iVar11 = 3;
			break;
		
		case 241:
			StringCopy(&Var2, "CLO_EXF_G_7_9", 16);
			iVar6 = 7;
			iVar7 = 9;
			iVar1 = 2005;
			iVar8 = 1;
			iVar11 = 3;
			break;
		
		case 242:
			StringCopy(&Var2, "CLO_EXF_G_7_10", 16);
			iVar6 = 7;
			iVar7 = 10;
			iVar1 = 2070;
			iVar8 = 1;
			iVar11 = 3;
			break;
	}
	switch (iParam0)
	{
		case 243:
			StringCopy(&Var2, "G_FMF_8_0", 16);
			iVar6 = 8;
			iVar7 = 0;
			iVar1 = 500;
			iVar8 = 1;
			iVar11 = 3;
			break;
		
		case 244:
			StringCopy(&Var2, "G_FMF_8_1", 16);
			iVar6 = 8;
			iVar7 = 1;
			iVar1 = 0;
			iVar8 = 1;
			iVar11 = 3;
			iVar0 = true;
			break;
		
		case 245:
			StringCopy(&Var2, "G_FMF_8_2", 16);
			iVar6 = 8;
			iVar7 = 2;
			iVar1 = 0;
			iVar8 = 1;
			iVar11 = 3;
			iVar0 = true;
			break;
		
		case 246:
			StringCopy(&Var2, "G_FMF_8_3", 16);
			iVar6 = 8;
			iVar7 = 3;
			iVar1 = 0;
			iVar8 = 1;
			iVar11 = 3;
			iVar0 = true;
			break;
		
		case 247:
			StringCopy(&Var2, "G_FMF_8_4", 16);
			iVar6 = 8;
			iVar7 = 4;
			iVar1 = 0;
			iVar8 = 1;
			iVar11 = 3;
			iVar0 = true;
			break;
		
		case 248:
			StringCopy(&Var2, "G_FMF_8_5", 16);
			iVar6 = 8;
			iVar7 = 5;
			iVar1 = 0;
			iVar8 = 1;
			iVar11 = 3;
			iVar0 = true;
			break;
		
		case 249:
			StringCopy(&Var2, "G_FMF_8_6", 16);
			iVar6 = 8;
			iVar7 = 6;
			iVar1 = 0;
			iVar8 = 1;
			iVar11 = 3;
			iVar0 = true;
			break;
		
		case 250:
			StringCopy(&Var2, "G_FMF_8_7", 16);
			iVar6 = 8;
			iVar7 = 7;
			iVar1 = 0;
			iVar8 = 1;
			iVar11 = 3;
			iVar0 = true;
			break;
		
		case 251:
			StringCopy(&Var2, "CLO_EXF_G_8_8", 16);
			iVar6 = 8;
			iVar7 = 8;
			iVar1 = 645;
			iVar8 = 1;
			iVar11 = 3;
			break;
		
		case 252:
			StringCopy(&Var2, "CLO_EXF_G_8_9", 16);
			iVar6 = 8;
			iVar7 = 9;
			iVar1 = 260;
			iVar8 = 1;
			iVar11 = 3;
			break;
		
		case 253:
			StringCopy(&Var2, "CLO_EXF_G_8_10", 16);
			iVar6 = 8;
			iVar7 = 10;
			iVar1 = 325;
			iVar8 = 1;
			iVar11 = 3;
			break;
		
		case 254:
			StringCopy(&Var2, "G_FMF_9_0", 16);
			iVar6 = 9;
			iVar7 = 0;
			iVar1 = 70;
			iVar8 = 1;
			iVar11 = 3;
			break;
		
		case 255:
			StringCopy(&Var2, "G_FMF_9_1", 16);
			iVar6 = 9;
			iVar7 = 1;
			iVar1 = 60;
			iVar8 = 1;
			iVar11 = 3;
			break;
		
		case 256:
			StringCopy(&Var2, "G_FMF_9_2", 16);
			iVar6 = 9;
			iVar7 = 2;
			iVar1 = 65;
			iVar8 = 1;
			iVar11 = 3;
			break;
		
		case 257:
			StringCopy(&Var2, "G_FMF_9_3", 16);
			iVar6 = 9;
			iVar7 = 3;
			iVar1 = 570;
			iVar8 = 1;
			iVar11 = 3;
			break;
		
		case 258:
			StringCopy(&Var2, "G_FMF_9_4", 16);
			iVar6 = 9;
			iVar7 = 4;
			iVar1 = 525;
			iVar8 = 1;
			iVar11 = 3;
			break;
		
		case 259:
			StringCopy(&Var2, "G_FMF_9_5", 16);
			iVar6 = 9;
			iVar7 = 5;
			iVar1 = 75;
			iVar8 = 1;
			iVar11 = 3;
			break;
		
		case 260:
			StringCopy(&Var2, "G_FMF_9_6", 16);
			iVar6 = 9;
			iVar7 = 6;
			iVar1 = 75;
			iVar8 = 1;
			iVar11 = 3;
			break;
		
		case 261:
			StringCopy(&Var2, "G_FMF_9_7", 16);
			iVar6 = 9;
			iVar7 = 7;
			iVar1 = 90;
			iVar8 = 1;
			iVar11 = 3;
			break;
		
		case 262:
			StringCopy(&Var2, "CLO_EXF_G_9_8", 16);
			iVar6 = 9;
			iVar7 = 8;
			iVar1 = 645;
			iVar8 = 1;
			iVar11 = 3;
			break;
		
		case 263:
			StringCopy(&Var2, "CLO_EXF_G_9_9", 16);
			iVar6 = 9;
			iVar7 = 9;
			iVar1 = 260;
			iVar8 = 1;
			iVar11 = 3;
			break;
		
		case 264:
			StringCopy(&Var2, "CLO_EXF_G_9_10", 16);
			iVar6 = 9;
			iVar7 = 10;
			iVar1 = 325;
			iVar8 = 1;
			iVar11 = 3;
			break;
		
		case 265:
			StringCopy(&Var2, "G_FMF_10_0", 16);
			iVar6 = 10;
			iVar7 = 0;
			iVar1 = 4065;
			iVar8 = 1;
			iVar11 = 3;
			break;
		
		case 266:
			StringCopy(&Var2, "G_FMF_10_1", 16);
			iVar6 = 10;
			iVar7 = 1;
			iVar1 = 65;
			iVar8 = 1;
			iVar11 = 3;
			break;
		
		case 267:
			StringCopy(&Var2, "G_FMF_10_2", 16);
			iVar6 = 10;
			iVar7 = 2;
			iVar1 = 85;
			iVar8 = 1;
			iVar11 = 3;
			break;
		
		case 268:
			StringCopy(&Var2, "G_FMF_10_3", 16);
			iVar6 = 10;
			iVar7 = 3;
			iVar1 = 4275;
			iVar8 = 1;
			iVar11 = 3;
			break;
		
		case 269:
			StringCopy(&Var2, "G_FMF_10_4", 16);
			iVar6 = 10;
			iVar7 = 4;
			iVar1 = 85;
			iVar8 = 1;
			iVar11 = 3;
			break;
		
		case 270:
			StringCopy(&Var2, "G_FMF_10_5", 16);
			iVar6 = 10;
			iVar7 = 5;
			iVar1 = 80;
			iVar8 = 1;
			iVar11 = 3;
			break;
		
		case 271:
			StringCopy(&Var2, "G_FMF_10_6", 16);
			iVar6 = 10;
			iVar7 = 6;
			iVar1 = 85;
			iVar8 = 1;
			iVar11 = 3;
			break;
		
		case 272:
			StringCopy(&Var2, "G_FMF_10_7", 16);
			iVar6 = 10;
			iVar7 = 7;
			iVar1 = 90;
			iVar8 = 1;
			iVar11 = 3;
			break;
		
		case 273:
			StringCopy(&Var2, "CLO_EXF_G_10_8", 16);
			iVar6 = 10;
			iVar7 = 8;
			iVar1 = 2315;
			iVar8 = 1;
			iVar11 = 3;
			break;
		
		case 274:
			StringCopy(&Var2, "CLO_EXF_G_10_9", 16);
			iVar6 = 10;
			iVar7 = 9;
			iVar1 = 1930;
			iVar8 = 1;
			iVar11 = 3;
			break;
		
		case 275:
			StringCopy(&Var2, "CLO_EXF_G_10_10", 16);
			iVar6 = 10;
			iVar7 = 10;
			iVar1 = 1995;
			iVar8 = 1;
			iVar11 = 3;
			break;
		
		case 276:
			StringCopy(&Var2, "G_FMF_11_0", 16);
			iVar6 = 11;
			iVar7 = 0;
			iVar1 = 3660;
			iVar8 = 1;
			iVar11 = 3;
			break;
		
		case 277:
			StringCopy(&Var2, "G_FMF_11_1", 16);
			iVar6 = 11;
			iVar7 = 1;
			iVar1 = 4165;
			iVar8 = 1;
			iVar11 = 3;
			break;
		
		case 278:
			StringCopy(&Var2, "G_FMF_11_2", 16);
			iVar6 = 11;
			iVar7 = 2;
			iVar1 = 3670;
			iVar8 = 1;
			iVar11 = 3;
			break;
		
		case 279:
			StringCopy(&Var2, "G_FMF_11_3", 16);
			iVar6 = 11;
			iVar7 = 3;
			iVar1 = 135;
			iVar8 = 1;
			iVar11 = 3;
			break;
		
		case 280:
			StringCopy(&Var2, "G_FMF_11_4", 16);
			iVar6 = 11;
			iVar7 = 4;
			iVar1 = 3620;
			iVar8 = 1;
			iVar11 = 3;
			break;
		
		case 281:
			StringCopy(&Var2, "G_FMF_11_5", 16);
			iVar6 = 11;
			iVar7 = 5;
			iVar1 = 3610;
			iVar8 = 1;
			iVar11 = 3;
			break;
		
		case 282:
			StringCopy(&Var2, "G_FMF_11_6", 16);
			iVar6 = 11;
			iVar7 = 6;
			iVar1 = 4140;
			iVar8 = 1;
			iVar11 = 3;
			break;
		
		case 283:
			StringCopy(&Var2, "G_FMF_11_7", 16);
			iVar6 = 11;
			iVar7 = 7;
			iVar1 = 130;
			iVar8 = 1;
			iVar11 = 3;
			break;
		
		case 284:
			StringCopy(&Var2, "G_FMF_12_0", 16);
			iVar6 = 12;
			iVar7 = 0;
			iVar1 = 0;
			iVar8 = 1;
			iVar11 = 3;
			iVar0 = true;
			break;
		
		case 285:
			StringCopy(&Var2, "G_FMF_12_1", 16);
			iVar6 = 12;
			iVar7 = 1;
			iVar1 = 0;
			iVar8 = 1;
			iVar11 = 3;
			iVar0 = true;
			break;
		
		case 286:
			StringCopy(&Var2, "G_FMF_12_2", 16);
			iVar6 = 12;
			iVar7 = 2;
			iVar1 = 0;
			iVar8 = 1;
			iVar11 = 3;
			iVar0 = true;
			break;
		
		case 287:
			StringCopy(&Var2, "G_FMF_12_3", 16);
			iVar6 = 12;
			iVar7 = 3;
			iVar1 = 0;
			iVar8 = 1;
			iVar11 = 3;
			iVar0 = true;
			break;
		
		case 288:
			StringCopy(&Var2, "G_FMF_12_4", 16);
			iVar6 = 12;
			iVar7 = 4;
			iVar1 = 0;
			iVar8 = 1;
			iVar11 = 3;
			iVar0 = true;
			break;
		
		case 289:
			StringCopy(&Var2, "G_FMF_12_5", 16);
			iVar6 = 12;
			iVar7 = 5;
			iVar1 = 0;
			iVar8 = 1;
			iVar11 = 3;
			iVar0 = true;
			break;
		
		case 290:
			StringCopy(&Var2, "G_FMF_12_6", 16);
			iVar6 = 12;
			iVar7 = 6;
			iVar1 = 0;
			iVar8 = 1;
			iVar11 = 3;
			iVar0 = true;
			break;
		
		case 291:
			StringCopy(&Var2, "G_FMF_12_7", 16);
			iVar6 = 12;
			iVar7 = 7;
			iVar1 = 0;
			iVar8 = 1;
			iVar11 = 3;
			iVar0 = true;
			break;
		
		case 292:
			StringCopy(&Var2, "G_FMF_13_0", 16);
			iVar6 = 13;
			iVar7 = 0;
			iVar1 = 0;
			iVar8 = 1;
			iVar11 = 3;
			iVar0 = true;
			break;
		
		case 293:
			StringCopy(&Var2, "G_FMF_13_1", 16);
			iVar6 = 13;
			iVar7 = 1;
			iVar1 = 0;
			iVar8 = 1;
			iVar11 = 3;
			iVar0 = true;
			break;
		
		case 294:
			StringCopy(&Var2, "G_FMF_13_2", 16);
			iVar6 = 13;
			iVar7 = 2;
			iVar1 = 0;
			iVar8 = 1;
			iVar11 = 3;
			iVar0 = true;
			break;
		
		case 295:
			StringCopy(&Var2, "G_FMF_13_3", 16);
			iVar6 = 13;
			iVar7 = 3;
			iVar1 = 0;
			iVar8 = 1;
			iVar11 = 3;
			iVar0 = true;
			break;
		
		case 296:
			StringCopy(&Var2, "G_FMF_13_4", 16);
			iVar6 = 13;
			iVar7 = 4;
			iVar1 = 0;
			iVar8 = 1;
			iVar11 = 3;
			iVar0 = true;
			break;
		
		case 297:
			StringCopy(&Var2, "G_FMF_13_5", 16);
			iVar6 = 13;
			iVar7 = 5;
			iVar1 = 0;
			iVar8 = 1;
			iVar11 = 3;
			iVar0 = true;
			break;
		
		case 298:
			StringCopy(&Var2, "G_FMF_13_6", 16);
			iVar6 = 13;
			iVar7 = 6;
			iVar1 = 0;
			iVar8 = 1;
			iVar11 = 3;
			iVar0 = true;
			break;
		
		case 299:
			StringCopy(&Var2, "G_FMF_13_7", 16);
			iVar6 = 13;
			iVar7 = 7;
			iVar1 = 0;
			iVar8 = 1;
			iVar11 = 3;
			iVar0 = true;
			break;
		
		case 300:
			StringCopy(&Var2, "G_FMF_14_0", 16);
			iVar6 = 14;
			iVar7 = 0;
			iVar1 = 325;
			iVar8 = 1;
			iVar11 = 3;
			break;
		
		case 301:
			StringCopy(&Var2, "G_FMF_14_1", 16);
			iVar6 = 14;
			iVar7 = 1;
			iVar1 = 110;
			iVar8 = 1;
			iVar11 = 3;
			break;
		
		case 302:
			StringCopy(&Var2, "G_FMF_14_2", 16);
			iVar6 = 14;
			iVar7 = 2;
			iVar1 = 115;
			iVar8 = 1;
			iVar11 = 3;
			break;
		
		case 303:
			StringCopy(&Var2, "G_FMF_14_3", 16);
			iVar6 = 14;
			iVar7 = 3;
			iVar1 = 120;
			iVar8 = 1;
			iVar11 = 3;
			break;
		
		case 304:
			StringCopy(&Var2, "G_FMF_14_4", 16);
			iVar6 = 14;
			iVar7 = 4;
			iVar1 = 135;
			iVar8 = 1;
			iVar11 = 3;
			break;
		
		case 305:
			StringCopy(&Var2, "G_FMF_14_5", 16);
			iVar6 = 14;
			iVar7 = 5;
			iVar1 = 110;
			iVar8 = 1;
			iVar11 = 3;
			break;
		
		case 306:
			StringCopy(&Var2, "G_FMF_14_6", 16);
			iVar6 = 14;
			iVar7 = 6;
			iVar1 = 115;
			iVar8 = 1;
			iVar11 = 3;
			break;
		
		case 307:
			StringCopy(&Var2, "G_FMF_14_7", 16);
			iVar6 = 14;
			iVar7 = 7;
			iVar1 = 120;
			iVar8 = 1;
			iVar11 = 3;
			break;
		
		case 308:
			StringCopy(&Var2, "CLO_EXF_G_14_8", 16);
			iVar6 = 14;
			iVar7 = 8;
			iVar1 = 1490;
			iVar8 = 1;
			iVar11 = 3;
			break;
		
		case 309:
			StringCopy(&Var2, "CLO_EXF_G_14_9", 16);
			iVar6 = 14;
			iVar7 = 9;
			iVar1 = 1105;
			iVar8 = 1;
			iVar11 = 3;
			break;
		
		case 310:
			StringCopy(&Var2, "CLO_EXF_G_14_10", 16);
			iVar6 = 14;
			iVar7 = 10;
			iVar1 = 1170;
			iVar8 = 1;
			iVar11 = 3;
			break;
		
		case 311:
			StringCopy(&Var2, "G_FMF_15_0", 16);
			iVar6 = 15;
			iVar7 = 0;
			iVar1 = 0;
			iVar8 = 1;
			iVar11 = 3;
			iVar0 = true;
			break;
		
		case 312:
			StringCopy(&Var2, "G_FMF_15_1", 16);
			iVar6 = 15;
			iVar7 = 1;
			iVar1 = 0;
			iVar8 = 1;
			iVar11 = 3;
			iVar0 = true;
			break;
		
		case 313:
			StringCopy(&Var2, "G_FMF_15_2", 16);
			iVar6 = 15;
			iVar7 = 2;
			iVar1 = 0;
			iVar8 = 1;
			iVar11 = 3;
			iVar0 = true;
			break;
		
		case 314:
			StringCopy(&Var2, "G_FMF_15_3", 16);
			iVar6 = 15;
			iVar7 = 3;
			iVar1 = 0;
			iVar8 = 1;
			iVar11 = 3;
			iVar0 = true;
			break;
		
		case 315:
			StringCopy(&Var2, "G_FMF_15_4", 16);
			iVar6 = 15;
			iVar7 = 4;
			iVar1 = 0;
			iVar8 = 1;
			iVar11 = 3;
			iVar0 = true;
			break;
		
		case 316:
			StringCopy(&Var2, "G_FMF_15_5", 16);
			iVar6 = 15;
			iVar7 = 5;
			iVar1 = 0;
			iVar8 = 1;
			iVar11 = 3;
			iVar0 = true;
			break;
		
		case 317:
			StringCopy(&Var2, "G_FMF_15_6", 16);
			iVar6 = 15;
			iVar7 = 6;
			iVar1 = 0;
			iVar8 = 1;
			iVar11 = 3;
			iVar0 = true;
			break;
		
		case 318:
			StringCopy(&Var2, "G_FMF_15_7", 16);
			iVar6 = 15;
			iVar7 = 7;
			iVar1 = 0;
			iVar8 = 1;
			iVar11 = 3;
			iVar0 = true;
			break;
	}
	switch (iParam0)
	{
		case 319:
			StringCopy(&Var2, "W_FMF_0_0", 16);
			iVar6 = 0;
			iVar7 = 0;
			iVar1 = 0;
			iVar8 = 6;
			iVar11 = 4;
			iVar0 = true;
			break;
		
		case 320:
			StringCopy(&Var2, "W_FMF_0_1", 16);
			iVar6 = 0;
			iVar7 = 1;
			iVar1 = 0;
			iVar8 = 6;
			iVar11 = 4;
			iVar0 = true;
			break;
		
		case 321:
			StringCopy(&Var2, "W_FMF_0_2", 16);
			iVar6 = 0;
			iVar7 = 2;
			iVar1 = 0;
			iVar8 = 6;
			iVar11 = 4;
			iVar0 = true;
			break;
		
		case 322:
			StringCopy(&Var2, "W_FMF_0_3", 16);
			iVar6 = 0;
			iVar7 = 3;
			iVar1 = 0;
			iVar8 = 6;
			iVar11 = 4;
			iVar0 = true;
			break;
		
		case 323:
			StringCopy(&Var2, "W_FMF_0_4", 16);
			iVar6 = 0;
			iVar7 = 4;
			iVar1 = 825;
			iVar8 = 6;
			iVar11 = 4;
			break;
		
		case 324:
			StringCopy(&Var2, "W_FMF_1_0", 16);
			iVar6 = 1;
			iVar7 = 0;
			iVar1 = 0;
			iVar8 = 6;
			iVar11 = 4;
			iVar0 = true;
			break;
		
		case 325:
			StringCopy(&Var2, "W_FMF_1_1", 16);
			iVar6 = 1;
			iVar7 = 1;
			iVar1 = 0;
			iVar8 = 6;
			iVar11 = 4;
			iVar0 = true;
			break;
		
		case 326:
			StringCopy(&Var2, "W_FMF_1_2", 16);
			iVar6 = 1;
			iVar7 = 2;
			iVar1 = 0;
			iVar8 = 6;
			iVar11 = 4;
			iVar0 = true;
			break;
	}
	if (iVar11 == 1)
	{
		iVar12 = (iParam0 - 10);
		if (iVar12 >= 0 && iVar12 < 121)
		{
			if (iVar12 > 8)
			{
				iVar12 = (iVar12 - 1);
			}
			iVar1 = system::round(((system::to_float(iVar1) * Global_262145.f_2041[iVar12]) * Global_279748.f_26));
		}
	}
	else if (iVar11 == 2)
	{
		iVar13 = (iParam0 - 131);
		if (iVar13 >= 0 && iVar13 < 24)
		{
			iVar1 = system::round(((system::to_float(iVar1) * Global_262145.f_2162[iVar13]) * Global_279748.f_27));
		}
	}
	else if (iVar11 == 3)
	{
		iVar14 = (iParam0 - 155);
		if (iVar14 >= 0 && iVar14 < 128)
		{
			iVar1 = system::round(((system::to_float(iVar1) * Global_262145.f_2187[iVar14]) * Global_279748.f_56));
		}
	}
	else if (iVar11 == 4)
	{
		iVar15 = (iParam0 - 319);
		if (iVar15 >= 0 && iVar15 < 10)
		{
			iVar1 = system::round(((system::to_float(iVar1) * Global_262145.f_2316[iVar15]) * Global_279748.f_28));
		}
	}
	if (iParam0 >= 327)
	{
		Global_69518[0 /*14*/].f_5 = 4;
		func_203(iVar10, iParam0, 327);
		if (Global_69518[0 /*14*/].f_7 > 0)
		{
			if (dlc1::_0x341DE7ED1D2A1BFD(Global_2621444, -1757550583, 1))
			{
				Global_69518[0 /*14*/].f_7 = system::round((system::to_float(Global_69518[0 /*14*/].f_7) * Global_279748.f_26));
			}
			else if (dlc1::_0x341DE7ED1D2A1BFD(Global_2621444, 97230661, 1))
			{
				Global_69518[0 /*14*/].f_7 = system::round((system::to_float(Global_69518[0 /*14*/].f_7) * Global_279748.f_56));
			}
			else if (dlc1::_0x341DE7ED1D2A1BFD(Global_2621444, 1147826474, 1))
			{
				Global_69518[0 /*14*/].f_7 = system::round((system::to_float(Global_69518[0 /*14*/].f_7) * Global_279748.f_28));
			}
		}
	}
	else
	{
		func_195(&(Global_69518[0 /*14*/]), iVar10, iParam0, &Var2, iVar6, iVar7, iVar1, iVar0, iVar8, iVar9, 0);
	}
}

void func_207(int iParam0)//Position - 0x2FF3C
{
	int iVar0;
	int iVar1;
	struct<2> Var2;
	int iVar6;
	int iVar7;
	int iVar8;
	int iVar9;
	int iVar10;
	
	iVar0 = false;
	iVar1 = 10;
	iVar6 = 0;
	iVar7 = 0;
	iVar8 = -1;
	iVar9 = 2;
	iVar10 = 10;
	switch (iParam0)
	{
		case 0:
			StringCopy(&Var2, "D_FMM_0_0", 16);
			iVar6 = 0;
			iVar7 = 0;
			iVar1 = 0;
			break;
		
		case 1:
			StringCopy(&Var2, "D_FMM_2_0", 16);
			iVar6 = 1;
			iVar7 = 0;
			iVar1 = 10000;
			break;
		
		case 2:
			StringCopy(&Var2, "D_FMM_1_0", 16);
			iVar6 = 2;
			iVar7 = 0;
			iVar1 = 5000;
			break;
		
		case 3:
			StringCopy(&Var2, "D_FMM_2_0", 16);
			iVar6 = 3;
			iVar7 = 0;
			iVar1 = 10000;
			break;
		
		case 4:
			StringCopy(&Var2, "D_FMM_1_0", 16);
			iVar6 = 4;
			iVar7 = 0;
			iVar1 = 5000;
			break;
		
		case 5:
			StringCopy(&Var2, "D_FMM_2_0", 16);
			iVar6 = 5;
			iVar7 = 0;
			iVar1 = 10000;
			break;
		
		default:
			Global_69518[0 /*14*/].f_5 = 4;
			func_203(iVar10, iParam0, 6);
			return;
			break;
	}
	func_195(&(Global_69518[0 /*14*/]), iVar10, iParam0, &Var2, iVar6, iVar7, iVar1, iVar0, iVar8, iVar9, 0);
}

void func_208(int iParam0)//Position - 0x30042
{
	int iVar0;
	int iVar1;
	struct<2> Var2;
	int iVar6;
	int iVar7;
	int iVar8;
	int iVar9;
	int iVar10;
	
	iVar0 = false;
	iVar1 = 10;
	iVar6 = 0;
	iVar7 = 0;
	iVar8 = -1;
	iVar9 = 2;
	iVar10 = 7;
	switch (iParam0)
	{
		case 0:
			iVar6 = 0;
			iVar7 = 0;
			iVar1 = 0;
			break;
		
		case 1:
			iVar6 = 1;
			iVar7 = 0;
			if (Global_262145.f_4138 != -1)
			{
				iVar1 = Global_262145.f_4138;
			}
			else
			{
				iVar1 = 310;
			}
			break;
		
		case 2:
			iVar6 = 1;
			iVar7 = 1;
			if (Global_262145.f_4139 != -1)
			{
				iVar1 = Global_262145.f_4139;
			}
			else
			{
				iVar1 = 125;
			}
			break;
		
		case 3:
			iVar6 = 1;
			iVar7 = 2;
			if (Global_262145.f_4140 != -1)
			{
				iVar1 = Global_262145.f_4140;
			}
			else
			{
				iVar1 = 145;
			}
			break;
		
		case 4:
			iVar6 = 1;
			iVar7 = 3;
			if (Global_262145.f_4141 != -1)
			{
				iVar1 = Global_262145.f_4141;
			}
			else
			{
				iVar1 = 130;
			}
			break;
		
		case 5:
			iVar6 = 1;
			iVar7 = 4;
			if (Global_262145.f_4142 != -1)
			{
				iVar1 = Global_262145.f_4142;
			}
			else
			{
				iVar1 = 265;
			}
			break;
		
		case 6:
			iVar6 = 1;
			iVar7 = 5;
			if (Global_262145.f_4143 != -1)
			{
				iVar1 = Global_262145.f_4143;
			}
			else
			{
				iVar1 = 280;
			}
			break;
		
		case 7:
			iVar6 = 2;
			iVar7 = 0;
			if (Global_262145.f_4144 != -1)
			{
				iVar1 = Global_262145.f_4144;
			}
			else
			{
				iVar1 = 295;
			}
			break;
		
		case 8:
			iVar6 = 2;
			iVar7 = 1;
			if (Global_262145.f_4145 != -1)
			{
				iVar1 = Global_262145.f_4145;
			}
			else
			{
				iVar1 = 95;
			}
			break;
		
		case 9:
			iVar6 = 2;
			iVar7 = 2;
			if (Global_262145.f_4146 != -1)
			{
				iVar1 = Global_262145.f_4146;
			}
			else
			{
				iVar1 = 85;
			}
			break;
		
		case 10:
			iVar6 = 2;
			iVar7 = 3;
			if (Global_262145.f_4147 != -1)
			{
				iVar1 = Global_262145.f_4147;
			}
			else
			{
				iVar1 = 95;
			}
			break;
		
		case 11:
			iVar6 = 2;
			iVar7 = 4;
			if (Global_262145.f_4148 != -1)
			{
				iVar1 = Global_262145.f_4148;
			}
			else
			{
				iVar1 = 105;
			}
			break;
		
		case 12:
			iVar6 = 2;
			iVar7 = 5;
			if (Global_262145.f_4149 != -1)
			{
				iVar1 = Global_262145.f_4149;
			}
			else
			{
				iVar1 = 95;
			}
			break;
		
		case 13:
			iVar6 = 3;
			iVar7 = 0;
			if (Global_262145.f_4150 != -1)
			{
				iVar1 = Global_262145.f_4150;
			}
			else
			{
				iVar1 = 35;
			}
			break;
		
		case 14:
			iVar6 = 3;
			iVar7 = 1;
			if (Global_262145.f_4151 != -1)
			{
				iVar1 = Global_262145.f_4151;
			}
			else
			{
				iVar1 = 35;
			}
			break;
		
		case 15:
			iVar6 = 3;
			iVar7 = 2;
			if (Global_262145.f_4152 != -1)
			{
				iVar1 = Global_262145.f_4152;
			}
			else
			{
				iVar1 = 30;
			}
			break;
		
		case 16:
			iVar6 = 3;
			iVar7 = 3;
			if (Global_262145.f_4153 != -1)
			{
				iVar1 = Global_262145.f_4153;
			}
			else
			{
				iVar1 = 40;
			}
			break;
		
		case 17:
			iVar6 = 3;
			iVar7 = 4;
			if (Global_262145.f_4154 != -1)
			{
				iVar1 = Global_262145.f_4154;
			}
			else
			{
				iVar1 = 35;
			}
			break;
		
		case 18:
			iVar6 = 3;
			iVar7 = 5;
			if (Global_262145.f_4155 != -1)
			{
				iVar1 = Global_262145.f_4155;
			}
			else
			{
				iVar1 = 35;
			}
			break;
		
		case 19:
			iVar6 = 4;
			iVar7 = 0;
			iVar1 = 0;
			iVar0 = true;
			break;
		
		case 20:
			iVar6 = 4;
			iVar7 = 1;
			iVar1 = 0;
			iVar0 = true;
			break;
		
		case 21:
			iVar6 = 4;
			iVar7 = 2;
			if (Global_262145.f_4156 != -1)
			{
				iVar1 = Global_262145.f_4156;
			}
			else
			{
				iVar1 = 355;
			}
			break;
		
		case 22:
			iVar6 = 4;
			iVar7 = 3;
			if (Global_262145.f_4157 != -1)
			{
				iVar1 = Global_262145.f_4157;
			}
			else
			{
				iVar1 = 370;
			}
			break;
		
		case 23:
			iVar6 = 4;
			iVar7 = 4;
			iVar1 = 0;
			iVar0 = true;
			break;
		
		case 24:
			iVar6 = 4;
			iVar7 = 5;
			iVar1 = 0;
			iVar0 = true;
			break;
		
		case 25:
			iVar6 = 5;
			iVar7 = 0;
			iVar1 = 0;
			iVar0 = true;
			break;
		
		case 26:
			iVar6 = 5;
			iVar7 = 1;
			iVar1 = 0;
			iVar0 = true;
			break;
		
		case 27:
			iVar6 = 5;
			iVar7 = 2;
			iVar1 = 0;
			iVar0 = true;
			break;
		
		case 28:
			iVar6 = 5;
			iVar7 = 3;
			iVar1 = 0;
			iVar0 = true;
			break;
		
		case 29:
			iVar6 = 5;
			iVar7 = 4;
			if (Global_262145.f_4158 != -1)
			{
				iVar1 = Global_262145.f_4158;
			}
			else
			{
				iVar1 = 110;
			}
			break;
		
		case 30:
			iVar6 = 5;
			iVar7 = 5;
			if (Global_262145.f_4159 != -1)
			{
				iVar1 = Global_262145.f_4159;
			}
			else
			{
				iVar1 = 160;
			}
			break;
		
		case 31:
			iVar6 = 6;
			iVar7 = 0;
			if (Global_262145.f_4160 != -1)
			{
				iVar1 = Global_262145.f_4160;
			}
			else
			{
				iVar1 = 385;
			}
			break;
		
		case 32:
			iVar6 = 6;
			iVar7 = 1;
			if (Global_262145.f_4161 != -1)
			{
				iVar1 = Global_262145.f_4161;
			}
			else
			{
				iVar1 = 190;
			}
			break;
		
		case 33:
			iVar6 = 6;
			iVar7 = 2;
			if (Global_262145.f_4162 != -1)
			{
				iVar1 = Global_262145.f_4162;
			}
			else
			{
				iVar1 = 235;
			}
			break;
		
		case 34:
			iVar6 = 6;
			iVar7 = 3;
			if (Global_262145.f_4163 != -1)
			{
				iVar1 = Global_262145.f_4163;
			}
			else
			{
				iVar1 = 220;
			}
			break;
		
		case 35:
			iVar6 = 6;
			iVar7 = 4;
			if (Global_262145.f_4164 != -1)
			{
				iVar1 = Global_262145.f_4164;
			}
			else
			{
				iVar1 = 250;
			}
			break;
		
		case 36:
			iVar6 = 6;
			iVar7 = 5;
			if (Global_262145.f_4165 != -1)
			{
				iVar1 = Global_262145.f_4165;
			}
			else
			{
				iVar1 = 205;
			}
			break;
		
		case 37:
			iVar6 = 7;
			iVar7 = 0;
			if (Global_262145.f_4166 != -1)
			{
				iVar1 = Global_262145.f_4166;
			}
			else
			{
				iVar1 = 445;
			}
			break;
		
		case 38:
			iVar6 = 7;
			iVar7 = 1;
			if (Global_262145.f_4167 != -1)
			{
				iVar1 = Global_262145.f_4167;
			}
			else
			{
				iVar1 = 175;
			}
			break;
		
		case 39:
			iVar6 = 7;
			iVar7 = 2;
			iVar1 = 0;
			iVar0 = true;
			break;
		
		case 40:
			iVar6 = 7;
			iVar7 = 3;
			iVar1 = 0;
			iVar0 = true;
			break;
		
		case 41:
			iVar6 = 7;
			iVar7 = 4;
			iVar1 = 0;
			iVar0 = true;
			break;
		
		case 42:
			iVar6 = 7;
			iVar7 = 5;
			iVar1 = 0;
			iVar0 = true;
			break;
		
		case 43:
			iVar6 = 8;
			iVar7 = 0;
			iVar1 = 0;
			iVar0 = true;
			break;
		
		case 44:
			iVar6 = 8;
			iVar7 = 1;
			iVar1 = 0;
			iVar0 = true;
			break;
		
		case 45:
			iVar6 = 8;
			iVar7 = 2;
			iVar1 = 0;
			iVar0 = true;
			break;
		
		case 46:
			iVar6 = 8;
			iVar7 = 3;
			iVar1 = 0;
			iVar0 = true;
			break;
		
		case 47:
			iVar6 = 8;
			iVar7 = 4;
			iVar1 = 0;
			iVar0 = true;
			break;
		
		case 48:
			iVar6 = 8;
			iVar7 = 5;
			iVar1 = 0;
			iVar0 = true;
			break;
		
		case 49:
			iVar6 = 9;
			iVar7 = 0;
			if (Global_262145.f_4168 != -1)
			{
				iVar1 = Global_262145.f_4168;
			}
			else
			{
				iVar1 = 340;
			}
			break;
		
		case 50:
			iVar6 = 9;
			iVar7 = 1;
			iVar1 = 0;
			iVar0 = true;
			break;
		
		case 51:
			iVar6 = 9;
			iVar7 = 2;
			iVar1 = 0;
			iVar0 = true;
			break;
		
		case 52:
			iVar6 = 9;
			iVar7 = 3;
			iVar1 = 0;
			iVar0 = true;
			break;
		
		case 53:
			iVar6 = 9;
			iVar7 = 4;
			iVar1 = 0;
			iVar0 = true;
			break;
		
		case 54:
			iVar6 = 9;
			iVar7 = 5;
			iVar1 = 0;
			iVar0 = true;
			break;
		
		default:
			Global_69518[0 /*14*/].f_5 = 4;
			func_203(iVar10, iParam0, 55);
			if (Global_69518[0 /*14*/].f_7 > 0)
			{
				Global_69518[0 /*14*/].f_7 = system::round((system::to_float(Global_69518[0 /*14*/].f_7) * Global_279748.f_58));
			}
			return;
			break;
	}
	iVar1 = system::round((system::to_float(iVar1) * Global_279748.f_58));
	StringCopy(&Var2, "T_FMF_", 16);
	StringIntConCat(&Var2, iVar6, 16);
	StringConCat(&Var2, "_", 16);
	StringIntConCat(&Var2, iVar7, 16);
	func_195(&(Global_69518[0 /*14*/]), iVar10, iParam0, &Var2, iVar6, iVar7, iVar1, iVar0, iVar8, iVar9, 0);
}

void func_209(int iParam0)//Position - 0x3081C
{
	int iVar0;
	int iVar1;
	struct<2> Var2;
	int iVar6;
	int iVar7;
	int iVar8;
	int iVar9;
	int iVar10;
	int iVar11;
	
	iVar0 = false;
	iVar1 = 10;
	iVar6 = 0;
	iVar7 = 0;
	iVar8 = -1;
	iVar9 = 2;
	iVar10 = 1;
	switch (iParam0)
	{
		case 0:
			iVar6 = 0;
			iVar7 = 0;
			iVar1 = 0;
			break;
		
		case 1:
			iVar6 = 1;
			iVar7 = 0;
			iVar1 = 965;
			break;
		
		case 2:
			iVar6 = 1;
			iVar7 = 1;
			iVar1 = 960;
			break;
		
		case 3:
			iVar6 = 1;
			iVar7 = 2;
			iVar1 = 9500;
			break;
		
		case 4:
			iVar6 = 1;
			iVar7 = 3;
			iVar1 = 975;
			break;
		
		case 5:
			iVar6 = 2;
			iVar7 = 0;
			iVar1 = 1185;
			break;
		
		case 6:
			iVar6 = 2;
			iVar7 = 1;
			iVar1 = 15000;
			break;
		
		case 7:
			iVar6 = 2;
			iVar7 = 2;
			iVar1 = 1115;
			break;
		
		case 8:
			iVar6 = 2;
			iVar7 = 3;
			iVar1 = 1105;
			break;
		
		case 9:
			iVar6 = 3;
			iVar7 = 0;
			iVar1 = 25000;
			break;
		
		case 10:
			iVar6 = 4;
			iVar7 = 0;
			iVar1 = 510;
			break;
		
		case 11:
			iVar6 = 4;
			iVar7 = 1;
			iVar1 = 530;
			break;
		
		case 12:
			iVar6 = 4;
			iVar7 = 2;
			iVar1 = 5500;
			break;
		
		case 13:
			iVar6 = 4;
			iVar7 = 3;
			iVar1 = 535;
			break;
		
		case 14:
			iVar6 = 5;
			iVar7 = 0;
			iVar1 = 1510;
			break;
		
		case 15:
			iVar6 = 5;
			iVar7 = 1;
			iVar1 = 1530;
			break;
		
		case 16:
			iVar6 = 5;
			iVar7 = 2;
			iVar1 = 14500;
			break;
		
		case 17:
			iVar6 = 5;
			iVar7 = 3;
			iVar1 = 13000;
			break;
		
		case 18:
			iVar6 = 6;
			iVar7 = 0;
			iVar1 = 8000;
			break;
		
		case 19:
			iVar6 = 6;
			iVar7 = 1;
			iVar1 = 1265;
			break;
		
		case 20:
			iVar6 = 6;
			iVar7 = 2;
			iVar1 = 8500;
			break;
		
		case 21:
			iVar6 = 6;
			iVar7 = 3;
			iVar1 = 1210;
			break;
		
		case 22:
			iVar6 = 7;
			iVar7 = 0;
			iVar1 = 2360;
			break;
		
		case 23:
			iVar6 = 7;
			iVar7 = 1;
			iVar1 = 22500;
			break;
		
		case 24:
			iVar6 = 7;
			iVar7 = 2;
			iVar1 = 2375;
			break;
		
		case 25:
			iVar6 = 7;
			iVar7 = 3;
			iVar1 = 2485;
			break;
		
		default:
			Global_69518[0 /*14*/].f_5 = 4;
			func_203(iVar10, iParam0, 26);
			if (Global_69518[0 /*14*/].f_7 > 0)
			{
				Global_69518[0 /*14*/].f_7 = system::round((system::to_float(Global_69518[0 /*14*/].f_7) * Global_279748.f_29));
			}
			return;
			break;
	}
	StringCopy(&Var2, "M_FMF_", 16);
	StringIntConCat(&Var2, iVar6, 16);
	StringConCat(&Var2, "_", 16);
	StringIntConCat(&Var2, iVar7, 16);
	iVar11 = (iParam0 - 1);
	if (iVar11 >= 0 && iVar11 < 26)
	{
		iVar1 = system::round(((system::to_float(iVar1) * Global_262145.f_2014[iVar11]) * Global_279748.f_29));
	}
	func_195(&(Global_69518[0 /*14*/]), iVar10, iParam0, &Var2, iVar6, iVar7, iVar1, iVar0, iVar8, iVar9, 0);
}

void func_210(int iParam0)//Position - 0x30AFF
{
	int iVar0;
	int iVar1;
	struct<2> Var2;
	int iVar6;
	int iVar7;
	int iVar8;
	int iVar9;
	int iVar10;
	int iVar11;
	
	iVar0 = false;
	iVar1 = 10;
	iVar6 = 0;
	iVar7 = 0;
	iVar8 = -1;
	iVar9 = 2;
	iVar10 = 6;
	switch (iParam0)
	{
		case 0:
			iVar6 = 0;
			iVar7 = 0;
			iVar1 = 1765;
			break;
		
		case 1:
			iVar6 = 0;
			iVar7 = 1;
			iVar1 = 760;
			break;
		
		case 2:
			iVar6 = 0;
			iVar7 = 2;
			iVar1 = 760;
			break;
		
		case 3:
			iVar6 = 0;
			iVar7 = 3;
			iVar1 = 765;
			break;
		
		case 4:
			iVar6 = 0;
			iVar7 = 4;
			iVar1 = 0;
			iVar0 = true;
			break;
		
		case 5:
			iVar6 = 0;
			iVar7 = 5;
			iVar1 = 0;
			iVar0 = true;
			break;
		
		case 6:
			iVar6 = 0;
			iVar7 = 6;
			iVar1 = 0;
			iVar0 = true;
			break;
		
		case 7:
			iVar6 = 0;
			iVar7 = 7;
			iVar1 = 0;
			iVar0 = true;
			break;
		
		case 8:
			iVar6 = 0;
			iVar7 = 8;
			iVar1 = 0;
			iVar0 = true;
			break;
		
		case 9:
			iVar6 = 0;
			iVar7 = 9;
			iVar1 = 0;
			iVar0 = true;
			break;
		
		case 10:
			iVar6 = 0;
			iVar7 = 10;
			iVar1 = 0;
			iVar0 = true;
			break;
		
		case 11:
			iVar6 = 0;
			iVar7 = 11;
			iVar1 = 0;
			iVar0 = true;
			break;
		
		case 12:
			iVar6 = 0;
			iVar7 = 12;
			iVar1 = 0;
			iVar0 = true;
			break;
		
		case 13:
			iVar6 = 0;
			iVar7 = 13;
			iVar1 = 0;
			iVar0 = true;
			break;
		
		case 14:
			iVar6 = 0;
			iVar7 = 14;
			iVar1 = 0;
			iVar0 = true;
			break;
		
		case 15:
			iVar6 = 0;
			iVar7 = 15;
			iVar1 = 0;
			iVar0 = true;
			break;
		
		case 16:
			iVar6 = 1;
			iVar7 = 0;
			iVar1 = 85;
			break;
		
		case 17:
			iVar6 = 1;
			iVar7 = 1;
			iVar1 = 80;
			break;
		
		case 18:
			iVar6 = 1;
			iVar7 = 2;
			iVar1 = 90;
			break;
		
		case 19:
			iVar6 = 1;
			iVar7 = 3;
			iVar1 = 90;
			break;
		
		case 20:
			iVar6 = 1;
			iVar7 = 4;
			iVar1 = 95;
			break;
		
		case 21:
			iVar6 = 1;
			iVar7 = 5;
			iVar1 = 100;
			break;
		
		case 22:
			iVar6 = 1;
			iVar7 = 6;
			iVar1 = 60;
			break;
		
		case 23:
			iVar6 = 1;
			iVar7 = 7;
			iVar1 = 55;
			break;
		
		case 24:
			iVar6 = 1;
			iVar7 = 8;
			iVar1 = 100;
			break;
		
		case 25:
			iVar6 = 1;
			iVar7 = 9;
			iVar1 = 1255;
			break;
		
		case 26:
			iVar6 = 1;
			iVar7 = 10;
			iVar1 = 65;
			break;
		
		case 27:
			iVar6 = 1;
			iVar7 = 11;
			iVar1 = 1050;
			break;
		
		case 28:
			iVar6 = 1;
			iVar7 = 12;
			iVar1 = 1895;
			break;
		
		case 29:
			iVar6 = 1;
			iVar7 = 13;
			iVar1 = 185;
			break;
		
		case 30:
			iVar6 = 1;
			iVar7 = 14;
			iVar1 = 190;
			break;
		
		case 31:
			iVar6 = 1;
			iVar7 = 15;
			iVar1 = 115;
			break;
	}
	switch (iParam0)
	{
		case 32:
			iVar6 = 2;
			iVar7 = 0;
			iVar1 = 415;
			break;
		
		case 33:
			iVar6 = 2;
			iVar7 = 1;
			iVar1 = 115;
			break;
		
		case 34:
			iVar6 = 2;
			iVar7 = 2;
			iVar1 = 135;
			break;
		
		case 35:
			iVar6 = 2;
			iVar7 = 3;
			iVar1 = 125;
			break;
		
		case 36:
			iVar6 = 2;
			iVar7 = 4;
			iVar1 = 105;
			break;
		
		case 37:
			iVar6 = 2;
			iVar7 = 5;
			iVar1 = 130;
			break;
		
		case 38:
			iVar6 = 2;
			iVar7 = 6;
			iVar1 = 3530;
			break;
		
		case 39:
			iVar6 = 2;
			iVar7 = 7;
			iVar1 = 2610;
			break;
		
		case 40:
			iVar6 = 2;
			iVar7 = 8;
			iVar1 = 1295;
			break;
		
		case 41:
			iVar6 = 2;
			iVar7 = 9;
			iVar1 = 120;
			break;
		
		case 42:
			iVar6 = 2;
			iVar7 = 10;
			iVar1 = 160;
			break;
		
		case 43:
			iVar6 = 2;
			iVar7 = 11;
			iVar1 = 160;
			break;
		
		case 44:
			iVar6 = 2;
			iVar7 = 12;
			iVar1 = 145;
			break;
		
		case 45:
			iVar6 = 2;
			iVar7 = 13;
			iVar1 = 105;
			break;
		
		case 46:
			iVar6 = 2;
			iVar7 = 14;
			iVar1 = 115;
			break;
		
		case 47:
			iVar6 = 2;
			iVar7 = 15;
			iVar1 = 150;
			break;
		
		case 48:
			iVar6 = 3;
			iVar7 = 0;
			iVar1 = 540;
			break;
		
		case 49:
			iVar6 = 3;
			iVar7 = 1;
			iVar1 = 115;
			break;
		
		case 50:
			iVar6 = 3;
			iVar7 = 2;
			iVar1 = 110;
			break;
		
		case 51:
			iVar6 = 3;
			iVar7 = 3;
			iVar1 = 120;
			break;
		
		case 52:
			iVar6 = 3;
			iVar7 = 4;
			iVar1 = 460;
			break;
		
		case 53:
			iVar6 = 3;
			iVar7 = 5;
			iVar1 = 120;
			break;
		
		case 54:
			iVar6 = 3;
			iVar7 = 6;
			iVar1 = 120;
			break;
		
		case 55:
			iVar6 = 3;
			iVar7 = 7;
			iVar1 = 415;
			break;
		
		case 56:
			iVar6 = 3;
			iVar7 = 8;
			iVar1 = 135;
			break;
		
		case 57:
			iVar6 = 3;
			iVar7 = 9;
			iVar1 = 140;
			break;
		
		case 58:
			iVar6 = 3;
			iVar7 = 10;
			iVar1 = 160;
			break;
		
		case 59:
			iVar6 = 3;
			iVar7 = 11;
			iVar1 = 120;
			break;
		
		case 60:
			iVar6 = 3;
			iVar7 = 12;
			iVar1 = 1025;
			break;
		
		case 61:
			iVar6 = 3;
			iVar7 = 13;
			iVar1 = 1560;
			break;
		
		case 62:
			iVar6 = 3;
			iVar7 = 14;
			iVar1 = 145;
			break;
		
		case 63:
			iVar6 = 3;
			iVar7 = 15;
			iVar1 = 120;
			break;
	}
	switch (iParam0)
	{
		case 64:
			iVar6 = 4;
			iVar7 = 0;
			iVar1 = 365;
			break;
		
		case 65:
			iVar6 = 4;
			iVar7 = 1;
			iVar1 = 100;
			break;
		
		case 66:
			iVar6 = 4;
			iVar7 = 2;
			iVar1 = 65;
			break;
		
		case 67:
			iVar6 = 4;
			iVar7 = 3;
			iVar1 = 85;
			break;
		
		case 68:
			iVar6 = 4;
			iVar7 = 4;
			iVar1 = 0;
			iVar0 = true;
			break;
		
		case 69:
			iVar6 = 4;
			iVar7 = 5;
			iVar1 = 0;
			iVar0 = true;
			break;
		
		case 70:
			iVar6 = 4;
			iVar7 = 6;
			iVar1 = 0;
			iVar0 = true;
			break;
		
		case 71:
			iVar6 = 4;
			iVar7 = 7;
			iVar1 = 0;
			iVar0 = true;
			break;
		
		case 72:
			iVar6 = 4;
			iVar7 = 8;
			iVar1 = 0;
			iVar0 = true;
			break;
		
		case 73:
			iVar6 = 4;
			iVar7 = 9;
			iVar1 = 0;
			iVar0 = true;
			break;
		
		case 74:
			iVar6 = 4;
			iVar7 = 10;
			iVar1 = 0;
			iVar0 = true;
			break;
		
		case 75:
			iVar6 = 4;
			iVar7 = 11;
			iVar1 = 0;
			iVar0 = true;
			break;
		
		case 76:
			iVar6 = 4;
			iVar7 = 12;
			iVar1 = 0;
			iVar0 = true;
			break;
		
		case 77:
			iVar6 = 4;
			iVar7 = 13;
			iVar1 = 0;
			iVar0 = true;
			break;
		
		case 78:
			iVar6 = 4;
			iVar7 = 14;
			iVar1 = 0;
			iVar0 = true;
			break;
		
		case 79:
			iVar6 = 4;
			iVar7 = 15;
			iVar1 = 0;
			iVar0 = true;
			break;
		
		case 80:
			iVar6 = 5;
			iVar7 = 0;
			iVar1 = 50;
			break;
		
		case 81:
			iVar6 = 5;
			iVar7 = 1;
			iVar1 = 35;
			break;
		
		case 82:
			iVar6 = 5;
			iVar7 = 2;
			iVar1 = 0;
			iVar0 = true;
			break;
		
		case 83:
			iVar6 = 5;
			iVar7 = 3;
			iVar1 = 0;
			iVar0 = true;
			break;
		
		case 84:
			iVar6 = 5;
			iVar7 = 4;
			iVar1 = 0;
			iVar0 = true;
			break;
		
		case 85:
			iVar6 = 5;
			iVar7 = 5;
			iVar1 = 0;
			iVar0 = true;
			break;
		
		case 86:
			iVar6 = 5;
			iVar7 = 6;
			iVar1 = 0;
			iVar0 = true;
			break;
		
		case 87:
			iVar6 = 5;
			iVar7 = 7;
			iVar1 = 0;
			iVar0 = true;
			break;
		
		case 88:
			iVar6 = 5;
			iVar7 = 8;
			iVar1 = 0;
			iVar0 = true;
			break;
		
		case 89:
			iVar6 = 5;
			iVar7 = 9;
			iVar1 = 0;
			iVar0 = true;
			break;
		
		case 90:
			iVar6 = 5;
			iVar7 = 10;
			iVar1 = 50;
			break;
		
		case 91:
			iVar6 = 5;
			iVar7 = 11;
			iVar1 = 0;
			iVar0 = true;
			break;
		
		case 92:
			iVar6 = 5;
			iVar7 = 12;
			iVar1 = 0;
			iVar0 = true;
			break;
		
		case 93:
			iVar6 = 5;
			iVar7 = 13;
			iVar1 = 50;
			break;
		
		case 94:
			iVar6 = 5;
			iVar7 = 14;
			iVar1 = 0;
			iVar0 = true;
			break;
		
		case 95:
			iVar6 = 5;
			iVar7 = 15;
			iVar1 = 0;
			iVar0 = true;
			break;
	}
	switch (iParam0)
	{
		case 96:
			iVar6 = 6;
			iVar7 = 0;
			iVar1 = 2395;
			break;
		
		case 97:
			iVar6 = 6;
			iVar7 = 1;
			iVar1 = 3675;
			break;
		
		case 98:
			iVar6 = 6;
			iVar7 = 2;
			iVar1 = 320;
			break;
		
		case 99:
			iVar6 = 6;
			iVar7 = 3;
			iVar1 = 3875;
			break;
		
		case 100:
			iVar6 = 6;
			iVar7 = 4;
			iVar1 = 0;
			iVar0 = true;
			break;
		
		case 101:
			iVar6 = 6;
			iVar7 = 5;
			iVar1 = 0;
			iVar0 = true;
			break;
		
		case 102:
			iVar6 = 6;
			iVar7 = 6;
			iVar1 = 0;
			iVar0 = true;
			break;
		
		case 103:
			iVar6 = 6;
			iVar7 = 7;
			iVar1 = 0;
			iVar0 = true;
			break;
		
		case 104:
			iVar6 = 6;
			iVar7 = 8;
			iVar1 = 0;
			iVar0 = true;
			break;
		
		case 105:
			iVar6 = 6;
			iVar7 = 9;
			iVar1 = 0;
			iVar0 = true;
			break;
		
		case 106:
			iVar6 = 6;
			iVar7 = 10;
			iVar1 = 0;
			iVar0 = true;
			break;
		
		case 107:
			iVar6 = 6;
			iVar7 = 11;
			iVar1 = 0;
			iVar0 = true;
			break;
		
		case 108:
			iVar6 = 6;
			iVar7 = 12;
			iVar1 = 0;
			iVar0 = true;
			break;
		
		case 109:
			iVar6 = 6;
			iVar7 = 13;
			iVar1 = 0;
			iVar0 = true;
			break;
		
		case 110:
			iVar6 = 6;
			iVar7 = 14;
			iVar1 = 0;
			iVar0 = true;
			break;
		
		case 111:
			iVar6 = 6;
			iVar7 = 15;
			iVar1 = 0;
			iVar0 = true;
			break;
		
		case 112:
			iVar6 = 7;
			iVar7 = 0;
			iVar1 = 2050;
			break;
		
		case 113:
			iVar6 = 7;
			iVar7 = 1;
			iVar1 = 375;
			break;
		
		case 114:
			iVar6 = 7;
			iVar7 = 2;
			iVar1 = 2105;
			break;
		
		case 115:
			iVar6 = 7;
			iVar7 = 3;
			iVar1 = 345;
			break;
		
		case 116:
			iVar6 = 7;
			iVar7 = 4;
			iVar1 = 380;
			break;
		
		case 117:
			iVar6 = 7;
			iVar7 = 5;
			iVar1 = 340;
			break;
		
		case 118:
			iVar6 = 7;
			iVar7 = 6;
			iVar1 = 385;
			break;
		
		case 119:
			iVar6 = 7;
			iVar7 = 7;
			iVar1 = 4135;
			break;
		
		case 120:
			iVar6 = 7;
			iVar7 = 8;
			iVar1 = 370;
			break;
		
		case 121:
			iVar6 = 7;
			iVar7 = 9;
			iVar1 = 375;
			break;
		
		case 122:
			iVar6 = 7;
			iVar7 = 10;
			iVar1 = 385;
			break;
		
		case 123:
			iVar6 = 7;
			iVar7 = 11;
			iVar1 = 365;
			break;
		
		case 124:
			iVar6 = 7;
			iVar7 = 12;
			iVar1 = 325;
			break;
		
		case 125:
			iVar6 = 7;
			iVar7 = 13;
			iVar1 = 325;
			break;
		
		case 126:
			iVar6 = 7;
			iVar7 = 14;
			iVar1 = 370;
			break;
		
		case 127:
			iVar6 = 7;
			iVar7 = 15;
			iVar1 = 330;
			break;
	}
	switch (iParam0)
	{
		case 128:
			iVar6 = 8;
			iVar7 = 0;
			iVar1 = 1025;
			break;
		
		case 129:
			iVar6 = 8;
			iVar7 = 1;
			iVar1 = 390;
			break;
		
		case 130:
			iVar6 = 8;
			iVar7 = 2;
			iVar1 = 400;
			break;
		
		case 131:
			iVar6 = 8;
			iVar7 = 3;
			iVar1 = 390;
			break;
		
		case 132:
			iVar6 = 8;
			iVar7 = 4;
			iVar1 = 365;
			break;
		
		case 133:
			iVar6 = 8;
			iVar7 = 5;
			iVar1 = 410;
			break;
		
		case 134:
			iVar6 = 8;
			iVar7 = 6;
			iVar1 = 4125;
			break;
		
		case 135:
			iVar6 = 8;
			iVar7 = 7;
			iVar1 = 4365;
			break;
		
		case 136:
			iVar6 = 8;
			iVar7 = 8;
			iVar1 = 5365;
			break;
		
		case 137:
			iVar6 = 8;
			iVar7 = 9;
			iVar1 = 6225;
			break;
		
		case 138:
			iVar6 = 8;
			iVar7 = 10;
			iVar1 = 3755;
			break;
		
		case 139:
			iVar6 = 8;
			iVar7 = 11;
			iVar1 = 405;
			break;
		
		case 140:
			iVar6 = 8;
			iVar7 = 12;
			iVar1 = 4115;
			break;
		
		case 141:
			iVar6 = 8;
			iVar7 = 13;
			iVar1 = 2240;
			break;
		
		case 142:
			iVar6 = 8;
			iVar7 = 14;
			iVar1 = 3850;
			break;
		
		case 143:
			iVar6 = 8;
			iVar7 = 15;
			iVar1 = 3110;
			break;
		
		case 144:
			iVar6 = 9;
			iVar7 = 0;
			iVar1 = 1950;
			break;
		
		case 145:
			iVar6 = 9;
			iVar7 = 1;
			iVar1 = 455;
			break;
		
		case 146:
			iVar6 = 9;
			iVar7 = 2;
			iVar1 = 405;
			break;
		
		case 147:
			iVar6 = 9;
			iVar7 = 3;
			iVar1 = 410;
			break;
		
		case 148:
			iVar6 = 9;
			iVar7 = 4;
			iVar1 = 0;
			iVar0 = true;
			break;
		
		case 149:
			iVar6 = 9;
			iVar7 = 5;
			iVar1 = 0;
			iVar0 = true;
			break;
		
		case 150:
			iVar6 = 9;
			iVar7 = 6;
			iVar1 = 0;
			iVar0 = true;
			break;
		
		case 151:
			iVar6 = 9;
			iVar7 = 7;
			iVar1 = 0;
			iVar0 = true;
			break;
		
		case 152:
			iVar6 = 9;
			iVar7 = 8;
			iVar1 = 0;
			iVar0 = true;
			break;
		
		case 153:
			iVar6 = 9;
			iVar7 = 9;
			iVar1 = 0;
			iVar0 = true;
			break;
		
		case 154:
			iVar6 = 9;
			iVar7 = 10;
			iVar1 = 0;
			iVar0 = true;
			break;
		
		case 155:
			iVar6 = 9;
			iVar7 = 11;
			iVar1 = 415;
			break;
		
		case 156:
			iVar6 = 9;
			iVar7 = 12;
			iVar1 = 4425;
			break;
		
		case 157:
			iVar6 = 9;
			iVar7 = 13;
			iVar1 = 0;
			iVar0 = true;
			break;
		
		case 158:
			iVar6 = 9;
			iVar7 = 14;
			iVar1 = 0;
			iVar0 = true;
			break;
		
		case 159:
			iVar6 = 9;
			iVar7 = 15;
			iVar1 = 0;
			iVar0 = true;
			break;
	}
	switch (iParam0)
	{
		case 160:
			iVar6 = 10;
			iVar7 = 0;
			iVar1 = 115;
			break;
		
		case 161:
			iVar6 = 10;
			iVar7 = 1;
			iVar1 = 65;
			break;
		
		case 162:
			iVar6 = 10;
			iVar7 = 2;
			iVar1 = 85;
			break;
		
		case 163:
			iVar6 = 10;
			iVar7 = 3;
			iVar1 = 75;
			break;
		
		case 164:
			iVar6 = 10;
			iVar7 = 4;
			iVar1 = 0;
			iVar0 = true;
			break;
		
		case 165:
			iVar6 = 10;
			iVar7 = 5;
			iVar1 = 0;
			iVar0 = true;
			break;
		
		case 166:
			iVar6 = 10;
			iVar7 = 6;
			iVar1 = 0;
			iVar0 = true;
			break;
		
		case 167:
			iVar6 = 10;
			iVar7 = 7;
			iVar1 = 0;
			iVar0 = true;
			break;
		
		case 168:
			iVar6 = 10;
			iVar7 = 8;
			iVar1 = 0;
			iVar0 = true;
			break;
		
		case 169:
			iVar6 = 10;
			iVar7 = 9;
			iVar1 = 0;
			iVar0 = true;
			break;
		
		case 170:
			iVar6 = 10;
			iVar7 = 10;
			iVar1 = 0;
			iVar0 = true;
			break;
		
		case 171:
			iVar6 = 10;
			iVar7 = 11;
			iVar1 = 0;
			iVar0 = true;
			break;
		
		case 172:
			iVar6 = 10;
			iVar7 = 12;
			iVar1 = 0;
			iVar0 = true;
			break;
		
		case 173:
			iVar6 = 10;
			iVar7 = 13;
			iVar1 = 0;
			iVar0 = true;
			break;
		
		case 174:
			iVar6 = 10;
			iVar7 = 14;
			iVar1 = 0;
			iVar0 = true;
			break;
		
		case 175:
			iVar6 = 10;
			iVar7 = 15;
			iVar1 = 0;
			iVar0 = true;
			break;
		
		case 176:
			iVar6 = 11;
			iVar7 = 0;
			iVar1 = 115;
			break;
		
		case 177:
			iVar6 = 11;
			iVar7 = 1;
			iVar1 = 360;
			break;
		
		case 178:
			iVar6 = 11;
			iVar7 = 2;
			iVar1 = 135;
			break;
		
		case 179:
			iVar6 = 11;
			iVar7 = 3;
			iVar1 = 175;
			break;
		
		case 180:
			iVar6 = 11;
			iVar7 = 4;
			iVar1 = 0;
			iVar0 = true;
			break;
		
		case 181:
			iVar6 = 11;
			iVar7 = 5;
			iVar1 = 0;
			iVar0 = true;
			break;
		
		case 182:
			iVar6 = 11;
			iVar7 = 6;
			iVar1 = 0;
			iVar0 = true;
			break;
		
		case 183:
			iVar6 = 11;
			iVar7 = 7;
			iVar1 = 0;
			iVar0 = true;
			break;
		
		case 184:
			iVar6 = 11;
			iVar7 = 8;
			iVar1 = 0;
			iVar0 = true;
			break;
		
		case 185:
			iVar6 = 11;
			iVar7 = 9;
			iVar1 = 0;
			iVar0 = true;
			break;
		
		case 186:
			iVar6 = 11;
			iVar7 = 10;
			iVar1 = 0;
			iVar0 = true;
			break;
		
		case 187:
			iVar6 = 11;
			iVar7 = 11;
			iVar1 = 0;
			iVar0 = true;
			break;
		
		case 188:
			iVar6 = 11;
			iVar7 = 12;
			iVar1 = 0;
			iVar0 = true;
			break;
		
		case 189:
			iVar6 = 11;
			iVar7 = 13;
			iVar1 = 0;
			iVar0 = true;
			break;
		
		case 190:
			iVar6 = 11;
			iVar7 = 14;
			iVar1 = 0;
			iVar0 = true;
			break;
		
		case 191:
			iVar6 = 11;
			iVar7 = 15;
			iVar1 = 0;
			iVar0 = true;
			break;
		
		case 192:
			iVar6 = 12;
			iVar7 = 0;
			iVar1 = 0;
			iVar0 = true;
			break;
		
		case 193:
			iVar6 = 12;
			iVar7 = 1;
			iVar1 = 0;
			iVar0 = true;
			break;
		
		case 194:
			iVar6 = 12;
			iVar7 = 2;
			iVar1 = 0;
			iVar0 = true;
			break;
		
		case 195:
			iVar6 = 12;
			iVar7 = 3;
			iVar1 = 0;
			iVar0 = true;
			break;
		
		case 196:
			iVar6 = 12;
			iVar7 = 4;
			iVar1 = 0;
			iVar0 = true;
			break;
		
		case 197:
			iVar6 = 12;
			iVar7 = 5;
			iVar1 = 0;
			iVar0 = true;
			break;
		
		case 198:
			iVar6 = 12;
			iVar7 = 6;
			iVar1 = 0;
			iVar0 = true;
			break;
		
		case 199:
			iVar6 = 12;
			iVar7 = 7;
			iVar1 = 0;
			iVar0 = true;
			break;
		
		case 200:
			iVar6 = 12;
			iVar7 = 8;
			iVar1 = 0;
			iVar0 = true;
			break;
		
		case 201:
			iVar6 = 12;
			iVar7 = 9;
			iVar1 = 0;
			iVar0 = true;
			break;
		
		case 202:
			iVar6 = 12;
			iVar7 = 10;
			iVar1 = 0;
			iVar0 = true;
			break;
		
		case 203:
			iVar6 = 12;
			iVar7 = 11;
			iVar1 = 0;
			iVar0 = true;
			break;
		
		case 204:
			iVar6 = 12;
			iVar7 = 12;
			iVar1 = 0;
			iVar0 = true;
			break;
		
		case 205:
			iVar6 = 12;
			iVar7 = 13;
			iVar1 = 0;
			iVar0 = true;
			break;
		
		case 206:
			iVar6 = 12;
			iVar7 = 14;
			iVar1 = 0;
			iVar0 = true;
			break;
		
		case 207:
			iVar6 = 12;
			iVar7 = 15;
			iVar1 = 0;
			iVar0 = true;
			break;
	}
	switch (iParam0)
	{
		case 208:
			iVar6 = 13;
			iVar7 = 0;
			iVar1 = 675;
			break;
		
		case 209:
			iVar6 = 13;
			iVar7 = 1;
			iVar1 = 100;
			break;
		
		case 210:
			iVar6 = 13;
			iVar7 = 2;
			iVar1 = 400;
			break;
		
		case 211:
			iVar6 = 13;
			iVar7 = 3;
			iVar1 = 340;
			break;
		
		case 212:
			iVar6 = 13;
			iVar7 = 4;
			iVar1 = 195;
			break;
		
		case 213:
			iVar6 = 13;
			iVar7 = 5;
			iVar1 = 215;
			break;
		
		case 214:
			iVar6 = 13;
			iVar7 = 6;
			iVar1 = 120;
			break;
		
		case 215:
			iVar6 = 13;
			iVar7 = 7;
			iVar1 = 165;
			break;
		
		case 216:
			iVar6 = 13;
			iVar7 = 8;
			iVar1 = 100;
			break;
		
		case 217:
			iVar6 = 13;
			iVar7 = 9;
			iVar1 = 1040;
			break;
		
		case 218:
			iVar6 = 13;
			iVar7 = 10;
			iVar1 = 100;
			break;
		
		case 219:
			iVar6 = 13;
			iVar7 = 11;
			iVar1 = 120;
			break;
		
		case 220:
			iVar6 = 13;
			iVar7 = 12;
			iVar1 = 210;
			break;
		
		case 221:
			iVar6 = 13;
			iVar7 = 13;
			iVar1 = 205;
			break;
		
		case 222:
			iVar6 = 13;
			iVar7 = 14;
			iVar1 = 200;
			break;
		
		case 223:
			iVar6 = 13;
			iVar7 = 15;
			iVar1 = 100;
			break;
		
		case 224:
			iVar6 = 14;
			iVar7 = 0;
			iVar1 = 1420;
			break;
		
		case 225:
			iVar6 = 14;
			iVar7 = 1;
			iVar1 = 445;
			break;
		
		case 226:
			iVar6 = 14;
			iVar7 = 2;
			iVar1 = 435;
			break;
		
		case 227:
			iVar6 = 14;
			iVar7 = 3;
			iVar1 = 420;
			break;
		
		case 228:
			iVar6 = 14;
			iVar7 = 4;
			iVar1 = 425;
			break;
		
		case 229:
			iVar6 = 14;
			iVar7 = 5;
			iVar1 = 435;
			break;
		
		case 230:
			iVar6 = 14;
			iVar7 = 6;
			iVar1 = 425;
			break;
		
		case 231:
			iVar6 = 14;
			iVar7 = 7;
			iVar1 = 430;
			break;
		
		case 232:
			iVar6 = 14;
			iVar7 = 8;
			iVar1 = 3215;
			break;
		
		case 233:
			iVar6 = 14;
			iVar7 = 9;
			iVar1 = 3320;
			break;
		
		case 234:
			iVar6 = 14;
			iVar7 = 10;
			iVar1 = 440;
			break;
		
		case 235:
			iVar6 = 14;
			iVar7 = 11;
			iVar1 = 440;
			break;
		
		case 236:
			iVar6 = 14;
			iVar7 = 12;
			iVar1 = 445;
			break;
		
		case 237:
			iVar6 = 14;
			iVar7 = 13;
			iVar1 = 450;
			break;
		
		case 238:
			iVar6 = 14;
			iVar7 = 14;
			iVar1 = 450;
			break;
		
		case 239:
			iVar6 = 14;
			iVar7 = 15;
			iVar1 = 1255;
			break;
		
		case 240:
			iVar6 = 15;
			iVar7 = 0;
			iVar1 = 750;
			break;
		
		case 241:
			iVar6 = 15;
			iVar7 = 1;
			iVar1 = 165;
			break;
		
		case 242:
			iVar6 = 15;
			iVar7 = 2;
			iVar1 = 460;
			break;
		
		case 243:
			iVar6 = 15;
			iVar7 = 3;
			iVar1 = 190;
			break;
		
		case 244:
			iVar6 = 15;
			iVar7 = 4;
			iVar1 = 195;
			break;
		
		case 245:
			iVar6 = 15;
			iVar7 = 5;
			iVar1 = 200;
			break;
		
		case 246:
			iVar6 = 15;
			iVar7 = 6;
			iVar1 = 205;
			break;
		
		case 247:
			iVar6 = 15;
			iVar7 = 7;
			iVar1 = 210;
			break;
		
		case 248:
			iVar6 = 15;
			iVar7 = 8;
			iVar1 = 215;
			break;
		
		case 249:
			iVar6 = 15;
			iVar7 = 9;
			iVar1 = 220;
			break;
		
		case 250:
			iVar6 = 15;
			iVar7 = 10;
			iVar1 = 455;
			break;
		
		case 251:
			iVar6 = 15;
			iVar7 = 11;
			iVar1 = 175;
			break;
		
		case 252:
			iVar6 = 15;
			iVar7 = 12;
			iVar1 = 800;
			break;
		
		case 253:
			iVar6 = 15;
			iVar7 = 13;
			iVar1 = 790;
			break;
		
		case 254:
			iVar6 = 15;
			iVar7 = 14;
			iVar1 = 175;
			break;
		
		case 255:
			iVar6 = 15;
			iVar7 = 15;
			iVar1 = 190;
			break;
	}
	StringCopy(&Var2, "F_FMF_", 16);
	StringIntConCat(&Var2, iVar6, 16);
	StringConCat(&Var2, "_", 16);
	StringIntConCat(&Var2, iVar7, 16);
	iVar11 = iParam0;
	if (iVar11 >= 0 && iVar11 < 256)
	{
		iVar1 = system::round(((system::to_float(iVar1) * Global_262145.f_1757[iVar11]) * Global_279748.f_25));
	}
	if (iParam0 >= 256)
	{
		Global_69518[0 /*14*/].f_5 = 4;
		func_203(iVar10, iParam0, 256);
		if (Global_69518[0 /*14*/].f_7 > 0)
		{
			Global_69518[0 /*14*/].f_7 = system::round((system::to_float(Global_69518[0 /*14*/].f_7) * Global_279748.f_25));
		}
	}
	else
	{
		func_195(&(Global_69518[0 /*14*/]), iVar10, iParam0, &Var2, iVar6, iVar7, iVar1, iVar0, iVar8, iVar9, 0);
	}
}

void func_211(int iParam0)//Position - 0x32124
{
	int iVar0;
	int iVar1;
	struct<2> Var2;
	int iVar6;
	int iVar7;
	int iVar8;
	int iVar9;
	int iVar10;
	int iVar11;
	
	iVar0 = false;
	iVar1 = 10;
	iVar6 = 0;
	iVar7 = 0;
	iVar8 = -1;
	iVar9 = 2;
	iVar10 = 4;
	switch (iParam0)
	{
		case 0:
			iVar6 = 0;
			iVar7 = 0;
			iVar1 = 270;
			break;
		
		case 1:
			iVar6 = 0;
			iVar7 = 1;
			iVar1 = 750;
			break;
		
		case 2:
			iVar6 = 0;
			iVar7 = 2;
			iVar1 = 450;
			break;
		
		case 3:
			iVar6 = 0;
			iVar7 = 3;
			iVar1 = 4875;
			break;
		
		case 4:
			iVar6 = 0;
			iVar7 = 4;
			iVar1 = 1760;
			break;
		
		case 5:
			iVar6 = 0;
			iVar7 = 5;
			iVar1 = 1090;
			break;
		
		case 6:
			iVar6 = 0;
			iVar7 = 6;
			iVar1 = 2465;
			break;
		
		case 7:
			iVar6 = 0;
			iVar7 = 7;
			iVar1 = 305;
			break;
		
		case 8:
			iVar6 = 0;
			iVar7 = 8;
			iVar1 = 290;
			break;
		
		case 9:
			iVar6 = 0;
			iVar7 = 9;
			iVar1 = 410;
			break;
		
		case 10:
			iVar6 = 0;
			iVar7 = 10;
			iVar1 = 255;
			break;
		
		case 11:
			iVar6 = 0;
			iVar7 = 11;
			iVar1 = 255;
			break;
		
		case 12:
			iVar6 = 0;
			iVar7 = 12;
			iVar1 = 405;
			break;
		
		case 13:
			iVar6 = 0;
			iVar7 = 13;
			iVar1 = 5000;
			break;
		
		case 14:
			iVar6 = 0;
			iVar7 = 14;
			iVar1 = 4480;
			break;
		
		case 15:
			iVar6 = 0;
			iVar7 = 15;
			iVar1 = 4335;
			break;
	}
	switch (iParam0)
	{
		case 16:
			iVar6 = 1;
			iVar7 = 0;
			iVar1 = 375;
			break;
		
		case 17:
			iVar6 = 1;
			iVar7 = 1;
			iVar1 = 265;
			break;
		
		case 18:
			iVar6 = 1;
			iVar7 = 2;
			iVar1 = 275;
			break;
		
		case 19:
			iVar6 = 1;
			iVar7 = 3;
			iVar1 = 280;
			break;
		
		case 20:
			iVar6 = 1;
			iVar7 = 4;
			iVar1 = 300;
			break;
		
		case 21:
			iVar6 = 1;
			iVar7 = 5;
			iVar1 = 265;
			break;
		
		case 22:
			iVar6 = 1;
			iVar7 = 6;
			iVar1 = 255;
			break;
		
		case 23:
			iVar6 = 1;
			iVar7 = 7;
			iVar1 = 250;
			break;
		
		case 24:
			iVar6 = 1;
			iVar7 = 8;
			iVar1 = 260;
			break;
		
		case 25:
			iVar6 = 1;
			iVar7 = 9;
			iVar1 = 250;
			break;
		
		case 26:
			iVar6 = 1;
			iVar7 = 10;
			iVar1 = 225;
			break;
		
		case 27:
			iVar6 = 1;
			iVar7 = 11;
			iVar1 = 230;
			break;
		
		case 28:
			iVar6 = 1;
			iVar7 = 12;
			iVar1 = 215;
			break;
		
		case 29:
			iVar6 = 1;
			iVar7 = 13;
			iVar1 = 650;
			break;
		
		case 30:
			iVar6 = 1;
			iVar7 = 14;
			iVar1 = 425;
			break;
		
		case 31:
			iVar6 = 1;
			iVar7 = 15;
			iVar1 = 345;
			break;
	}
	switch (iParam0)
	{
		case 32:
			iVar6 = 2;
			iVar7 = 0;
			iVar1 = 115;
			break;
		
		case 33:
			iVar6 = 2;
			iVar7 = 1;
			iVar1 = 110;
			break;
		
		case 34:
			iVar6 = 2;
			iVar7 = 2;
			iVar1 = 250;
			break;
		
		case 35:
			iVar6 = 2;
			iVar7 = 3;
			iVar1 = 0;
			iVar0 = true;
			break;
		
		case 36:
			iVar6 = 2;
			iVar7 = 4;
			iVar1 = 0;
			iVar0 = true;
			break;
		
		case 37:
			iVar6 = 2;
			iVar7 = 5;
			iVar1 = 0;
			iVar0 = true;
			break;
		
		case 38:
			iVar6 = 2;
			iVar7 = 6;
			iVar1 = 0;
			iVar0 = true;
			break;
		
		case 39:
			iVar6 = 2;
			iVar7 = 7;
			iVar1 = 0;
			iVar0 = true;
			break;
		
		case 40:
			iVar6 = 2;
			iVar7 = 8;
			iVar1 = 0;
			iVar0 = true;
			break;
		
		case 41:
			iVar6 = 2;
			iVar7 = 9;
			iVar1 = 0;
			iVar0 = true;
			break;
		
		case 42:
			iVar6 = 2;
			iVar7 = 10;
			iVar1 = 0;
			iVar0 = true;
			break;
		
		case 43:
			iVar6 = 2;
			iVar7 = 11;
			iVar1 = 0;
			iVar0 = true;
			break;
		
		case 44:
			iVar6 = 2;
			iVar7 = 12;
			iVar1 = 0;
			iVar0 = true;
			break;
		
		case 45:
			iVar6 = 2;
			iVar7 = 13;
			iVar1 = 0;
			iVar0 = true;
			break;
		
		case 46:
			iVar6 = 2;
			iVar7 = 14;
			iVar1 = 0;
			iVar0 = true;
			break;
		
		case 47:
			iVar6 = 2;
			iVar7 = 15;
			iVar1 = 0;
			iVar0 = true;
			break;
	}
	switch (iParam0)
	{
		case 48:
			iVar6 = 3;
			iVar7 = 0;
			iVar1 = 290;
			break;
		
		case 49:
			iVar6 = 3;
			iVar7 = 1;
			iVar1 = 115;
			break;
		
		case 50:
			iVar6 = 3;
			iVar7 = 2;
			iVar1 = 135;
			break;
		
		case 51:
			iVar6 = 3;
			iVar7 = 3;
			iVar1 = 125;
			break;
		
		case 52:
			iVar6 = 3;
			iVar7 = 4;
			iVar1 = 120;
			break;
		
		case 53:
			iVar6 = 3;
			iVar7 = 5;
			iVar1 = 130;
			break;
		
		case 54:
			iVar6 = 3;
			iVar7 = 6;
			iVar1 = 110;
			break;
		
		case 55:
			iVar6 = 3;
			iVar7 = 7;
			iVar1 = 525;
			break;
		
		case 56:
			iVar6 = 3;
			iVar7 = 8;
			iVar1 = 115;
			break;
		
		case 57:
			iVar6 = 3;
			iVar7 = 9;
			iVar1 = 535;
			break;
		
		case 58:
			iVar6 = 3;
			iVar7 = 10;
			iVar1 = 135;
			break;
		
		case 59:
			iVar6 = 3;
			iVar7 = 11;
			iVar1 = 120;
			break;
		
		case 60:
			iVar6 = 3;
			iVar7 = 12;
			iVar1 = 130;
			break;
		
		case 61:
			iVar6 = 3;
			iVar7 = 13;
			iVar1 = 140;
			break;
		
		case 62:
			iVar6 = 3;
			iVar7 = 14;
			iVar1 = 130;
			break;
		
		case 63:
			iVar6 = 3;
			iVar7 = 15;
			iVar1 = 520;
			break;
	}
	switch (iParam0)
	{
		case 64:
			iVar6 = 4;
			iVar7 = 0;
			iVar1 = 215;
			break;
		
		case 65:
			iVar6 = 4;
			iVar7 = 1;
			iVar1 = 220;
			break;
		
		case 66:
			iVar6 = 4;
			iVar7 = 2;
			iVar1 = 225;
			break;
		
		case 67:
			iVar6 = 4;
			iVar7 = 3;
			iVar1 = 245;
			break;
		
		case 68:
			iVar6 = 4;
			iVar7 = 4;
			iVar1 = 215;
			break;
		
		case 69:
			iVar6 = 4;
			iVar7 = 5;
			iVar1 = 630;
			break;
		
		case 70:
			iVar6 = 4;
			iVar7 = 6;
			iVar1 = 250;
			break;
		
		case 71:
			iVar6 = 4;
			iVar7 = 7;
			iVar1 = 260;
			break;
		
		case 72:
			iVar6 = 4;
			iVar7 = 8;
			iVar1 = 200;
			break;
		
		case 73:
			iVar6 = 4;
			iVar7 = 9;
			iVar1 = 225;
			break;
		
		case 74:
			iVar6 = 4;
			iVar7 = 10;
			iVar1 = 230;
			break;
		
		case 75:
			iVar6 = 4;
			iVar7 = 11;
			iVar1 = 725;
			break;
		
		case 76:
			iVar6 = 4;
			iVar7 = 12;
			iVar1 = 650;
			break;
		
		case 77:
			iVar6 = 4;
			iVar7 = 13;
			iVar1 = 230;
			break;
		
		case 78:
			iVar6 = 4;
			iVar7 = 14;
			iVar1 = 230;
			break;
		
		case 79:
			iVar6 = 4;
			iVar7 = 15;
			iVar1 = 280;
			break;
	}
	switch (iParam0)
	{
		case 80:
			iVar6 = 5;
			iVar7 = 0;
			iVar1 = 0;
			iVar0 = true;
			break;
		
		case 81:
			iVar6 = 5;
			iVar7 = 1;
			iVar1 = 0;
			iVar0 = true;
			break;
		
		case 82:
			iVar6 = 5;
			iVar7 = 2;
			iVar1 = 0;
			iVar0 = true;
			break;
		
		case 83:
			iVar6 = 5;
			iVar7 = 3;
			iVar1 = 0;
			iVar0 = true;
			break;
		
		case 84:
			iVar6 = 5;
			iVar7 = 4;
			iVar1 = 0;
			iVar0 = true;
			break;
		
		case 85:
			iVar6 = 5;
			iVar7 = 5;
			iVar1 = 0;
			iVar0 = true;
			break;
		
		case 86:
			iVar6 = 5;
			iVar7 = 6;
			iVar1 = 0;
			iVar0 = true;
			break;
		
		case 87:
			iVar6 = 5;
			iVar7 = 7;
			iVar1 = 0;
			iVar0 = true;
			break;
		
		case 88:
			iVar6 = 5;
			iVar7 = 8;
			iVar1 = 330;
			break;
		
		case 89:
			iVar6 = 5;
			iVar7 = 9;
			iVar1 = 0;
			iVar0 = true;
			break;
		
		case 90:
			iVar6 = 5;
			iVar7 = 10;
			iVar1 = 0;
			iVar0 = true;
			break;
		
		case 91:
			iVar6 = 5;
			iVar7 = 11;
			iVar1 = 0;
			iVar0 = true;
			break;
		
		case 92:
			iVar6 = 5;
			iVar7 = 12;
			iVar1 = 0;
			iVar0 = true;
			break;
		
		case 93:
			iVar6 = 5;
			iVar7 = 13;
			iVar1 = 0;
			iVar0 = true;
			break;
		
		case 94:
			iVar6 = 5;
			iVar7 = 14;
			iVar1 = 320;
			break;
		
		case 95:
			iVar6 = 5;
			iVar7 = 15;
			iVar1 = 315;
			break;
	}
	switch (iParam0)
	{
		case 96:
			iVar6 = 6;
			iVar7 = 0;
			iVar1 = 850;
			break;
		
		case 97:
			iVar6 = 6;
			iVar7 = 1;
			iVar1 = 535;
			break;
		
		case 98:
			iVar6 = 6;
			iVar7 = 2;
			iVar1 = 530;
			break;
		
		case 99:
			iVar6 = 6;
			iVar7 = 3;
			iVar1 = 0;
			iVar0 = true;
			break;
		
		case 100:
			iVar6 = 6;
			iVar7 = 4;
			iVar1 = 0;
			iVar0 = true;
			break;
		
		case 101:
			iVar6 = 6;
			iVar7 = 5;
			iVar1 = 0;
			iVar0 = true;
			break;
		
		case 102:
			iVar6 = 6;
			iVar7 = 6;
			iVar1 = 0;
			iVar0 = true;
			break;
		
		case 103:
			iVar6 = 6;
			iVar7 = 7;
			iVar1 = 0;
			iVar0 = true;
			break;
		
		case 104:
			iVar6 = 6;
			iVar7 = 8;
			iVar1 = 0;
			iVar0 = true;
			break;
		
		case 105:
			iVar6 = 6;
			iVar7 = 9;
			iVar1 = 0;
			iVar0 = true;
			break;
		
		case 106:
			iVar6 = 6;
			iVar7 = 10;
			iVar1 = 0;
			iVar0 = true;
			break;
		
		case 107:
			iVar6 = 6;
			iVar7 = 11;
			iVar1 = 0;
			iVar0 = true;
			break;
		
		case 108:
			iVar6 = 6;
			iVar7 = 12;
			iVar1 = 0;
			iVar0 = true;
			break;
		
		case 109:
			iVar6 = 6;
			iVar7 = 13;
			iVar1 = 0;
			iVar0 = true;
			break;
		
		case 110:
			iVar6 = 6;
			iVar7 = 14;
			iVar1 = 0;
			iVar0 = true;
			break;
		
		case 111:
			iVar6 = 6;
			iVar7 = 15;
			iVar1 = 0;
			iVar0 = true;
			break;
	}
	switch (iParam0)
	{
		case 112:
			iVar6 = 7;
			iVar7 = 0;
			iVar1 = 890;
			break;
		
		case 113:
			iVar6 = 7;
			iVar7 = 1;
			iVar1 = 440;
			break;
		
		case 114:
			iVar6 = 7;
			iVar7 = 2;
			iVar1 = 455;
			break;
		
		case 115:
			iVar6 = 7;
			iVar7 = 3;
			iVar1 = 0;
			iVar0 = true;
			break;
		
		case 116:
			iVar6 = 7;
			iVar7 = 4;
			iVar1 = 0;
			iVar0 = true;
			break;
		
		case 117:
			iVar6 = 7;
			iVar7 = 5;
			iVar1 = 0;
			iVar0 = true;
			break;
		
		case 118:
			iVar6 = 7;
			iVar7 = 6;
			iVar1 = 0;
			iVar0 = true;
			break;
		
		case 119:
			iVar6 = 7;
			iVar7 = 7;
			iVar1 = 0;
			iVar0 = true;
			break;
		
		case 120:
			iVar6 = 7;
			iVar7 = 8;
			iVar1 = 0;
			iVar0 = true;
			break;
		
		case 121:
			iVar6 = 7;
			iVar7 = 9;
			iVar1 = 0;
			iVar0 = true;
			break;
		
		case 122:
			iVar6 = 7;
			iVar7 = 10;
			iVar1 = 0;
			iVar0 = true;
			break;
		
		case 123:
			iVar6 = 7;
			iVar7 = 11;
			iVar1 = 0;
			iVar0 = true;
			break;
		
		case 124:
			iVar6 = 7;
			iVar7 = 12;
			iVar1 = 0;
			iVar0 = true;
			break;
		
		case 125:
			iVar6 = 7;
			iVar7 = 13;
			iVar1 = 0;
			iVar0 = true;
			break;
		
		case 126:
			iVar6 = 7;
			iVar7 = 14;
			iVar1 = 0;
			iVar0 = true;
			break;
		
		case 127:
			iVar6 = 7;
			iVar7 = 15;
			iVar1 = 0;
			iVar0 = true;
			break;
	}
	switch (iParam0)
	{
		case 128:
			iVar6 = 8;
			iVar7 = 0;
			iVar1 = 295;
			break;
		
		case 129:
			iVar6 = 8;
			iVar7 = 1;
			iVar1 = 180;
			break;
		
		case 130:
			iVar6 = 8;
			iVar7 = 2;
			iVar1 = 150;
			break;
		
		case 131:
			iVar6 = 8;
			iVar7 = 3;
			iVar1 = 150;
			break;
		
		case 132:
			iVar6 = 8;
			iVar7 = 4;
			iVar1 = 155;
			break;
		
		case 133:
			iVar6 = 8;
			iVar7 = 5;
			iVar1 = 840;
			break;
		
		case 134:
			iVar6 = 8;
			iVar7 = 6;
			iVar1 = 205;
			break;
		
		case 135:
			iVar6 = 8;
			iVar7 = 7;
			iVar1 = 150;
			break;
		
		case 136:
			iVar6 = 8;
			iVar7 = 8;
			iVar1 = 950;
			break;
		
		case 137:
			iVar6 = 8;
			iVar7 = 9;
			iVar1 = 580;
			break;
		
		case 138:
			iVar6 = 8;
			iVar7 = 10;
			iVar1 = 200;
			break;
		
		case 139:
			iVar6 = 8;
			iVar7 = 11;
			iVar1 = 665;
			break;
		
		case 140:
			iVar6 = 8;
			iVar7 = 12;
			iVar1 = 780;
			break;
		
		case 141:
			iVar6 = 8;
			iVar7 = 13;
			iVar1 = 0;
			iVar0 = true;
			break;
		
		case 142:
			iVar6 = 8;
			iVar7 = 14;
			iVar1 = 615;
			break;
		
		case 143:
			iVar6 = 8;
			iVar7 = 15;
			iVar1 = 250;
			break;
	}
	switch (iParam0)
	{
		case 144:
			iVar6 = 9;
			iVar7 = 0;
			iVar1 = 495;
			break;
		
		case 145:
			iVar6 = 9;
			iVar7 = 1;
			iVar1 = 435;
			break;
		
		case 146:
			iVar6 = 9;
			iVar7 = 2;
			iVar1 = 420;
			break;
		
		case 147:
			iVar6 = 9;
			iVar7 = 3;
			iVar1 = 390;
			break;
		
		case 148:
			iVar6 = 9;
			iVar7 = 4;
			iVar1 = 485;
			break;
		
		case 149:
			iVar6 = 9;
			iVar7 = 5;
			iVar1 = 380;
			break;
		
		case 150:
			iVar6 = 9;
			iVar7 = 6;
			iVar1 = 1295;
			break;
		
		case 151:
			iVar6 = 9;
			iVar7 = 7;
			iVar1 = 1135;
			break;
		
		case 152:
			iVar6 = 9;
			iVar7 = 8;
			iVar1 = 1425;
			break;
		
		case 153:
			iVar6 = 9;
			iVar7 = 9;
			iVar1 = 1645;
			break;
		
		case 154:
			iVar6 = 9;
			iVar7 = 10;
			iVar1 = 1925;
			break;
		
		case 155:
			iVar6 = 9;
			iVar7 = 11;
			iVar1 = 2250;
			break;
		
		case 156:
			iVar6 = 9;
			iVar7 = 12;
			iVar1 = 365;
			break;
		
		case 157:
			iVar6 = 9;
			iVar7 = 13;
			iVar1 = 360;
			break;
		
		case 158:
			iVar6 = 9;
			iVar7 = 14;
			iVar1 = 2245;
			break;
		
		case 159:
			iVar6 = 9;
			iVar7 = 15;
			iVar1 = 2170;
			break;
		
		case 160:
			iVar6 = 10;
			iVar7 = 0;
			iVar1 = 50;
			break;
		
		case 161:
			iVar6 = 10;
			iVar7 = 1;
			iVar1 = 100;
			break;
		
		case 162:
			iVar6 = 10;
			iVar7 = 2;
			iVar1 = 65;
			break;
		
		case 163:
			iVar6 = 10;
			iVar7 = 3;
			iVar1 = 0;
			iVar0 = true;
			break;
		
		case 164:
			iVar6 = 10;
			iVar7 = 4;
			iVar1 = 0;
			iVar0 = true;
			break;
		
		case 165:
			iVar6 = 10;
			iVar7 = 5;
			iVar1 = 0;
			iVar0 = true;
			break;
		
		case 166:
			iVar6 = 10;
			iVar7 = 6;
			iVar1 = 0;
			iVar0 = true;
			break;
		
		case 167:
			iVar6 = 10;
			iVar7 = 7;
			iVar1 = 0;
			iVar0 = true;
			break;
		
		case 168:
			iVar6 = 10;
			iVar7 = 8;
			iVar1 = 0;
			iVar0 = true;
			break;
		
		case 169:
			iVar6 = 10;
			iVar7 = 9;
			iVar1 = 0;
			iVar0 = true;
			break;
		
		case 170:
			iVar6 = 10;
			iVar7 = 10;
			iVar1 = 0;
			iVar0 = true;
			break;
		
		case 171:
			iVar6 = 10;
			iVar7 = 11;
			iVar1 = 0;
			iVar0 = true;
			break;
		
		case 172:
			iVar6 = 10;
			iVar7 = 12;
			iVar1 = 0;
			iVar0 = true;
			break;
		
		case 173:
			iVar6 = 10;
			iVar7 = 13;
			iVar1 = 0;
			iVar0 = true;
			break;
		
		case 174:
			iVar6 = 10;
			iVar7 = 14;
			iVar1 = 0;
			iVar0 = true;
			break;
		
		case 175:
			iVar6 = 10;
			iVar7 = 15;
			iVar1 = 0;
			iVar0 = true;
			break;
	}
	switch (iParam0)
	{
		case 176:
			iVar6 = 11;
			iVar7 = 0;
			iVar1 = 275;
			break;
		
		case 177:
			iVar6 = 11;
			iVar7 = 1;
			iVar1 = 300;
			break;
		
		case 178:
			iVar6 = 11;
			iVar7 = 2;
			iVar1 = 145;
			break;
		
		case 179:
			iVar6 = 11;
			iVar7 = 3;
			iVar1 = 150;
			break;
		
		case 180:
			iVar6 = 11;
			iVar7 = 4;
			iVar1 = 110;
			break;
		
		case 181:
			iVar6 = 11;
			iVar7 = 5;
			iVar1 = 95;
			break;
		
		case 182:
			iVar6 = 11;
			iVar7 = 6;
			iVar1 = 155;
			break;
		
		case 183:
			iVar6 = 11;
			iVar7 = 7;
			iVar1 = 155;
			break;
		
		case 184:
			iVar6 = 11;
			iVar7 = 8;
			iVar1 = 510;
			break;
		
		case 185:
			iVar6 = 11;
			iVar7 = 9;
			iVar1 = 165;
			break;
		
		case 186:
			iVar6 = 11;
			iVar7 = 10;
			iVar1 = 465;
			break;
		
		case 187:
			iVar6 = 11;
			iVar7 = 11;
			iVar1 = 250;
			break;
		
		case 188:
			iVar6 = 11;
			iVar7 = 12;
			iVar1 = 110;
			break;
		
		case 189:
			iVar6 = 11;
			iVar7 = 13;
			iVar1 = 470;
			break;
		
		case 190:
			iVar6 = 11;
			iVar7 = 14;
			iVar1 = 480;
			break;
		
		case 191:
			iVar6 = 11;
			iVar7 = 15;
			iVar1 = 155;
			break;
		
		case 192:
			iVar6 = 12;
			iVar7 = 0;
			iVar1 = 275;
			break;
		
		case 193:
			iVar6 = 12;
			iVar7 = 1;
			iVar1 = 395;
			break;
		
		case 194:
			iVar6 = 12;
			iVar7 = 2;
			iVar1 = 285;
			break;
		
		case 195:
			iVar6 = 12;
			iVar7 = 3;
			iVar1 = 560;
			break;
		
		case 196:
			iVar6 = 12;
			iVar7 = 4;
			iVar1 = 595;
			break;
		
		case 197:
			iVar6 = 12;
			iVar7 = 5;
			iVar1 = 295;
			break;
		
		case 198:
			iVar6 = 12;
			iVar7 = 6;
			iVar1 = 230;
			break;
		
		case 199:
			iVar6 = 12;
			iVar7 = 7;
			iVar1 = 215;
			break;
		
		case 200:
			iVar6 = 12;
			iVar7 = 8;
			iVar1 = 270;
			break;
		
		case 201:
			iVar6 = 12;
			iVar7 = 9;
			iVar1 = 295;
			break;
		
		case 202:
			iVar6 = 12;
			iVar7 = 10;
			iVar1 = 285;
			break;
		
		case 203:
			iVar6 = 12;
			iVar7 = 11;
			iVar1 = 215;
			break;
		
		case 204:
			iVar6 = 12;
			iVar7 = 12;
			iVar1 = 210;
			break;
		
		case 205:
			iVar6 = 12;
			iVar7 = 13;
			iVar1 = 290;
			break;
		
		case 206:
			iVar6 = 12;
			iVar7 = 14;
			iVar1 = 230;
			break;
		
		case 207:
			iVar6 = 12;
			iVar7 = 15;
			iVar1 = 215;
			break;
	}
	switch (iParam0)
	{
		case 208:
			iVar6 = 13;
			iVar7 = 0;
			iVar1 = 0;
			iVar0 = true;
			break;
		
		case 209:
			iVar6 = 13;
			iVar7 = 1;
			iVar1 = 0;
			iVar0 = true;
			break;
		
		case 210:
			iVar6 = 13;
			iVar7 = 2;
			iVar1 = 0;
			iVar0 = true;
			break;
		
		case 211:
			iVar6 = 13;
			iVar7 = 3;
			iVar1 = 0;
			iVar0 = true;
			break;
		
		case 212:
			iVar6 = 13;
			iVar7 = 4;
			iVar1 = 0;
			iVar0 = true;
			break;
		
		case 213:
			iVar6 = 13;
			iVar7 = 5;
			iVar1 = 0;
			iVar0 = true;
			break;
		
		case 214:
			iVar6 = 13;
			iVar7 = 6;
			iVar1 = 0;
			iVar0 = true;
			break;
		
		case 215:
			iVar6 = 13;
			iVar7 = 7;
			iVar1 = 0;
			iVar0 = true;
			break;
		
		case 216:
			iVar6 = 13;
			iVar7 = 8;
			iVar1 = 0;
			iVar0 = true;
			break;
		
		case 217:
			iVar6 = 13;
			iVar7 = 9;
			iVar1 = 0;
			iVar0 = true;
			break;
		
		case 218:
			iVar6 = 13;
			iVar7 = 10;
			iVar1 = 0;
			iVar0 = true;
			break;
		
		case 219:
			iVar6 = 13;
			iVar7 = 11;
			iVar1 = 0;
			iVar0 = true;
			break;
		
		case 220:
			iVar6 = 13;
			iVar7 = 12;
			iVar1 = 0;
			iVar0 = true;
			break;
		
		case 221:
			iVar6 = 13;
			iVar7 = 13;
			iVar1 = 0;
			iVar0 = true;
			break;
		
		case 222:
			iVar6 = 13;
			iVar7 = 14;
			iVar1 = 0;
			iVar0 = true;
			break;
		
		case 223:
			iVar6 = 13;
			iVar7 = 15;
			iVar1 = 0;
			iVar0 = true;
			break;
		
		case 224:
			iVar6 = 14;
			iVar7 = 0;
			iVar1 = 90;
			break;
		
		case 225:
			iVar6 = 14;
			iVar7 = 1;
			iVar1 = 105;
			break;
		
		case 226:
			iVar6 = 14;
			iVar7 = 2;
			iVar1 = 0;
			iVar0 = true;
			break;
		
		case 227:
			iVar6 = 14;
			iVar7 = 3;
			iVar1 = 0;
			iVar0 = true;
			break;
		
		case 228:
			iVar6 = 14;
			iVar7 = 4;
			iVar1 = 0;
			iVar0 = true;
			break;
		
		case 229:
			iVar6 = 14;
			iVar7 = 5;
			iVar1 = 0;
			iVar0 = true;
			break;
		
		case 230:
			iVar6 = 14;
			iVar7 = 6;
			iVar1 = 0;
			iVar0 = true;
			break;
		
		case 231:
			iVar6 = 14;
			iVar7 = 7;
			iVar1 = 0;
			iVar0 = true;
			break;
		
		case 232:
			iVar6 = 14;
			iVar7 = 8;
			iVar1 = 100;
			break;
		
		case 233:
			iVar6 = 14;
			iVar7 = 9;
			iVar1 = 105;
			break;
		
		case 234:
			iVar6 = 14;
			iVar7 = 10;
			iVar1 = 0;
			iVar0 = true;
			break;
		
		case 235:
			iVar6 = 14;
			iVar7 = 11;
			iVar1 = 0;
			iVar0 = true;
			break;
		
		case 236:
			iVar6 = 14;
			iVar7 = 12;
			iVar1 = 0;
			iVar0 = true;
			break;
		
		case 237:
			iVar6 = 14;
			iVar7 = 13;
			iVar1 = 0;
			iVar0 = true;
			break;
		
		case 238:
			iVar6 = 14;
			iVar7 = 14;
			iVar1 = 0;
			iVar0 = true;
			break;
		
		case 239:
			iVar6 = 14;
			iVar7 = 15;
			iVar1 = 0;
			iVar0 = true;
			break;
	}
	switch (iParam0)
	{
		case 240:
			iVar6 = 15;
			iVar7 = 0;
			iVar1 = 230;
			break;
		
		case 241:
			iVar6 = 15;
			iVar7 = 1;
			iVar1 = 0;
			iVar0 = true;
			break;
		
		case 242:
			iVar6 = 15;
			iVar7 = 2;
			iVar1 = 0;
			iVar0 = true;
			break;
		
		case 243:
			iVar6 = 15;
			iVar7 = 3;
			iVar1 = 130;
			break;
		
		case 244:
			iVar6 = 15;
			iVar7 = 4;
			iVar1 = 0;
			iVar0 = true;
			break;
		
		case 245:
			iVar6 = 15;
			iVar7 = 5;
			iVar1 = 0;
			iVar0 = true;
			break;
		
		case 246:
			iVar6 = 15;
			iVar7 = 6;
			iVar1 = 0;
			iVar0 = true;
			break;
		
		case 247:
			iVar6 = 15;
			iVar7 = 7;
			iVar1 = 0;
			iVar0 = true;
			break;
		
		case 248:
			iVar6 = 15;
			iVar7 = 8;
			iVar1 = 0;
			iVar0 = true;
			break;
		
		case 249:
			iVar6 = 15;
			iVar7 = 9;
			iVar1 = 0;
			iVar0 = true;
			break;
		
		case 250:
			iVar6 = 15;
			iVar7 = 10;
			iVar1 = 350;
			break;
		
		case 251:
			iVar6 = 15;
			iVar7 = 11;
			iVar1 = 335;
			break;
		
		case 252:
			iVar6 = 15;
			iVar7 = 12;
			iVar1 = 0;
			iVar0 = true;
			break;
		
		case 253:
			iVar6 = 15;
			iVar7 = 13;
			iVar1 = 0;
			iVar0 = true;
			break;
		
		case 254:
			iVar6 = 15;
			iVar7 = 14;
			iVar1 = 0;
			iVar0 = true;
			break;
		
		case 255:
			iVar6 = 15;
			iVar7 = 15;
			iVar1 = 0;
			iVar0 = true;
			break;
	}
	StringCopy(&Var2, "L_FMF_", 16);
	StringIntConCat(&Var2, iVar6, 16);
	StringConCat(&Var2, "_", 16);
	StringIntConCat(&Var2, iVar7, 16);
	iVar11 = iParam0;
	if (iVar11 >= 0 && iVar11 < 256)
	{
		iVar1 = system::round(((system::to_float(iVar1) * Global_262145.f_1243[iVar11]) * Global_279748.f_23));
	}
	if (iParam0 >= 256)
	{
		Global_69518[0 /*14*/].f_5 = 4;
		func_203(iVar10, iParam0, 256);
		if (Global_69518[0 /*14*/].f_7 > 0)
		{
			Global_69518[0 /*14*/].f_7 = system::round((system::to_float(Global_69518[0 /*14*/].f_7) * Global_279748.f_23));
		}
	}
	else
	{
		func_195(&(Global_69518[0 /*14*/]), iVar10, iParam0, &Var2, iVar6, iVar7, iVar1, iVar0, iVar8, iVar9, 0);
	}
}

void func_212(int iParam0)//Position - 0x33781
{
	int iVar0;
	int iVar1;
	char* sVar2;
	int iVar6;
	int iVar7;
	int iVar8;
	int iVar9;
	int iVar10;
	
	iVar0 = false;
	iVar1 = 10;
	iVar6 = 0;
	iVar7 = 0;
	iVar8 = -1;
	iVar9 = 2;
	iVar10 = 3;
	switch (iParam0)
	{
		case 0:
			iVar6 = 0;
			iVar7 = 0;
			break;
		
		case 1:
			iVar6 = 1;
			iVar7 = 0;
			break;
		
		case 2:
			iVar6 = 2;
			iVar7 = 0;
			break;
		
		case 3:
			iVar6 = 3;
			iVar7 = 0;
			break;
		
		case 4:
			iVar6 = 4;
			iVar7 = 0;
			break;
		
		case 5:
			iVar6 = 5;
			iVar7 = 0;
			break;
		
		case 6:
			iVar6 = 6;
			iVar7 = 0;
			break;
		
		case 7:
			iVar6 = 7;
			iVar7 = 0;
			break;
		
		case 8:
			iVar6 = 8;
			iVar7 = 0;
			break;
		
		case 9:
			iVar6 = 9;
			iVar7 = 0;
			break;
		
		case 10:
			iVar6 = 10;
			iVar7 = 0;
			break;
		
		case 11:
			iVar6 = 11;
			iVar7 = 0;
			break;
		
		case 12:
			iVar6 = 12;
			iVar7 = 0;
			break;
		
		case 13:
			iVar6 = 13;
			iVar7 = 0;
			break;
		
		case 14:
			iVar6 = 14;
			iVar7 = 0;
			break;
		
		case 15:
			iVar6 = 15;
			iVar7 = 0;
			break;
	}
	if (iParam0 >= 16)
	{
		Global_69518[0 /*14*/].f_5 = 4;
		func_203(iVar10, iParam0, 16);
		return;
	}
	func_195(&(Global_69518[0 /*14*/]), iVar10, iParam0, &sVar2, iVar6, iVar7, iVar1, iVar0, iVar8, iVar9, 0);
}

void func_213(int iParam0)//Position - 0x338DA
{
	int iVar0;
	int iVar1;
	char* sVar2;
	int iVar6;
	int iVar7;
	int iVar8;
	int iVar9;
	int iVar10;
	
	iVar0 = false;
	iVar1 = 10;
	iVar6 = 0;
	iVar7 = 0;
	iVar8 = -1;
	iVar9 = 2;
	iVar10 = 9;
	switch (iParam0)
	{
		case 0:
			iVar6 = 0;
			iVar7 = 0;
			break;
		
		case 1:
			iVar6 = 1;
			iVar7 = 0;
			break;
		
		case 2:
			iVar6 = 1;
			iVar7 = 1;
			break;
		
		case 3:
			iVar6 = 1;
			iVar7 = 2;
			break;
		
		case 4:
			iVar6 = 1;
			iVar7 = 3;
			break;
		
		case 5:
			iVar6 = 1;
			iVar7 = 4;
			break;
		
		case 6:
			iVar6 = 2;
			iVar7 = 0;
			break;
		
		case 7:
			iVar6 = 2;
			iVar7 = 1;
			break;
		
		case 8:
			iVar6 = 2;
			iVar7 = 2;
			break;
		
		case 9:
			iVar6 = 2;
			iVar7 = 3;
			break;
		
		case 10:
			iVar6 = 2;
			iVar7 = 4;
			break;
		
		case 11:
			iVar6 = 3;
			iVar7 = 0;
			break;
		
		case 12:
			iVar6 = 3;
			iVar7 = 1;
			break;
		
		case 13:
			iVar6 = 3;
			iVar7 = 2;
			break;
		
		case 14:
			iVar6 = 3;
			iVar7 = 3;
			break;
		
		case 15:
			iVar6 = 3;
			iVar7 = 4;
			break;
		
		case 16:
			iVar6 = 4;
			iVar7 = 0;
			break;
		
		case 17:
			iVar6 = 4;
			iVar7 = 1;
			break;
		
		case 18:
			iVar6 = 4;
			iVar7 = 2;
			break;
		
		case 19:
			iVar6 = 4;
			iVar7 = 3;
			break;
		
		case 20:
			iVar6 = 4;
			iVar7 = 4;
			break;
		
		case 21:
			iVar6 = 5;
			iVar7 = 0;
			break;
		
		case 22:
			iVar6 = 5;
			iVar7 = 1;
			break;
		
		case 23:
			iVar6 = 5;
			iVar7 = 2;
			break;
		
		case 24:
			iVar6 = 5;
			iVar7 = 3;
			break;
		
		case 25:
			iVar6 = 5;
			iVar7 = 4;
			break;
		
		case 26:
			iVar6 = 6;
			iVar7 = 0;
			break;
		
		case 27:
			iVar6 = 6;
			iVar7 = 1;
			break;
		
		case 28:
			iVar6 = 6;
			iVar7 = 2;
			break;
		
		case 29:
			iVar6 = 6;
			iVar7 = 3;
			break;
		
		case 30:
			iVar6 = 6;
			iVar7 = 4;
			break;
		
		case 31:
			iVar6 = 7;
			iVar7 = 0;
			break;
		
		case 32:
			iVar6 = 7;
			iVar7 = 1;
			break;
		
		case 33:
			iVar6 = 7;
			iVar7 = 2;
			break;
		
		case 34:
			iVar6 = 7;
			iVar7 = 3;
			break;
		
		case 35:
			iVar6 = 7;
			iVar7 = 4;
			break;
	}
	if (iParam0 >= 36)
	{
		Global_69518[0 /*14*/].f_5 = 4;
		func_203(iVar10, iParam0, 36);
		return;
	}
	func_195(&(Global_69518[0 /*14*/]), iVar10, iParam0, &sVar2, iVar6, iVar7, iVar1, iVar0, iVar8, iVar9, 0);
}

void func_214(int iParam0)//Position - 0x33B58
{
	int iVar0;
	int iVar1;
	struct<2> Var2;
	int iVar6;
	int iVar7;
	int iVar8;
	int iVar9;
	int iVar10;
	int iVar11;
	int iVar12;
	
	iVar0 = false;
	iVar1 = 10;
	iVar6 = 0;
	iVar7 = 0;
	iVar8 = -1;
	iVar9 = 2;
	iVar10 = 8;
	switch (iParam0)
	{
		case 0:
			StringCopy(&Var2, "U_FMF_0_0", 16);
			iVar6 = 0;
			iVar7 = 0;
			iVar1 = 250;
			break;
		
		case 1:
			StringCopy(&Var2, "U_FMF_0_1", 16);
			iVar6 = 0;
			iVar7 = 1;
			iVar1 = 225;
			break;
		
		case 2:
			StringCopy(&Var2, "U_FMF_0_2", 16);
			iVar6 = 0;
			iVar7 = 2;
			iVar1 = 50;
			break;
		
		case 3:
			StringCopy(&Var2, "U_FMF_0_3", 16);
			iVar6 = 0;
			iVar7 = 3;
			iVar1 = 40;
			break;
		
		case 4:
			StringCopy(&Var2, "U_FMF_0_4", 16);
			iVar6 = 0;
			iVar7 = 4;
			iVar1 = 40;
			break;
		
		case 5:
			StringCopy(&Var2, "U_FMF_0_5", 16);
			iVar6 = 0;
			iVar7 = 5;
			iVar1 = 40;
			break;
		
		case 6:
			StringCopy(&Var2, "U_FMF_0_6", 16);
			iVar6 = 0;
			iVar7 = 6;
			iVar1 = 40;
			break;
		
		case 7:
			StringCopy(&Var2, "U_FMF_0_7", 16);
			iVar6 = 0;
			iVar7 = 7;
			iVar1 = 45;
			break;
		
		case 8:
			StringCopy(&Var2, "U_FMF_0_8", 16);
			iVar6 = 0;
			iVar7 = 8;
			iVar1 = 40;
			break;
		
		case 9:
			StringCopy(&Var2, "U_FMF_0_9", 16);
			iVar6 = 0;
			iVar7 = 9;
			iVar1 = 40;
			break;
		
		case 10:
			StringCopy(&Var2, "U_FMF_0_10", 16);
			iVar6 = 0;
			iVar7 = 10;
			iVar1 = 135;
			break;
		
		case 11:
			StringCopy(&Var2, "U_FMF_0_11", 16);
			iVar6 = 0;
			iVar7 = 11;
			iVar1 = 60;
			break;
		
		case 12:
			StringCopy(&Var2, "U_FMF_0_12", 16);
			iVar6 = 0;
			iVar7 = 12;
			iVar1 = 220;
			break;
		
		case 13:
			StringCopy(&Var2, "U_FMF_0_13", 16);
			iVar6 = 0;
			iVar7 = 13;
			iVar1 = 45;
			break;
		
		case 14:
			StringCopy(&Var2, "U_FMF_0_14", 16);
			iVar6 = 0;
			iVar7 = 14;
			iVar1 = 45;
			break;
		
		case 15:
			StringCopy(&Var2, "U_FMF_0_15", 16);
			iVar6 = 0;
			iVar7 = 15;
			iVar1 = 125;
			break;
		
		case 16:
			StringCopy(&Var2, "U_FMF_0_0", 16);
			iVar6 = 1;
			iVar7 = 0;
			iVar1 = 250;
			break;
		
		case 17:
			StringCopy(&Var2, "U_FMF_0_1", 16);
			iVar6 = 1;
			iVar7 = 1;
			iVar1 = 60;
			break;
		
		case 18:
			StringCopy(&Var2, "U_FMF_0_2", 16);
			iVar6 = 1;
			iVar7 = 2;
			iVar1 = 50;
			break;
		
		case 19:
			StringCopy(&Var2, "U_FMF_0_3", 16);
			iVar6 = 1;
			iVar7 = 3;
			iVar1 = 40;
			break;
		
		case 20:
			StringCopy(&Var2, "U_FMF_0_4", 16);
			iVar6 = 1;
			iVar7 = 4;
			iVar1 = 40;
			break;
		
		case 21:
			StringCopy(&Var2, "U_FMF_0_5", 16);
			iVar6 = 1;
			iVar7 = 5;
			iVar1 = 40;
			break;
		
		case 22:
			StringCopy(&Var2, "U_FMF_0_6", 16);
			iVar6 = 1;
			iVar7 = 6;
			iVar1 = 40;
			break;
		
		case 23:
			StringCopy(&Var2, "U_FMF_0_7", 16);
			iVar6 = 1;
			iVar7 = 7;
			iVar1 = 45;
			break;
		
		case 24:
			StringCopy(&Var2, "U_FMF_0_8", 16);
			iVar6 = 1;
			iVar7 = 8;
			iVar1 = 40;
			break;
		
		case 25:
			StringCopy(&Var2, "U_FMF_0_9", 16);
			iVar6 = 1;
			iVar7 = 9;
			iVar1 = 40;
			break;
		
		case 26:
			StringCopy(&Var2, "U_FMF_0_10", 16);
			iVar6 = 1;
			iVar7 = 10;
			iVar1 = 135;
			break;
		
		case 27:
			StringCopy(&Var2, "U_FMF_0_11", 16);
			iVar6 = 1;
			iVar7 = 11;
			iVar1 = 60;
			break;
		
		case 28:
			StringCopy(&Var2, "U_FMF_0_12", 16);
			iVar6 = 1;
			iVar7 = 12;
			iVar1 = 220;
			break;
		
		case 29:
			StringCopy(&Var2, "U_FMF_0_13", 16);
			iVar6 = 1;
			iVar7 = 13;
			iVar1 = 45;
			break;
		
		case 30:
			StringCopy(&Var2, "U_FMF_0_14", 16);
			iVar6 = 1;
			iVar7 = 14;
			iVar1 = 45;
			break;
		
		case 31:
			StringCopy(&Var2, "U_FMF_0_15", 16);
			iVar6 = 1;
			iVar7 = 15;
			iVar1 = 125;
			break;
		
		case 32:
			iVar6 = 2;
			iVar7 = 0;
			break;
		
		case 33:
			iVar6 = 3;
			iVar7 = 0;
			break;
		
		case 34:
			StringCopy(&Var2, "U_FMF_4_0", 16);
			iVar6 = 4;
			iVar7 = 0;
			iVar0 = true;
			break;
		
		case 35:
			StringCopy(&Var2, "U_FMF_4_1", 16);
			iVar6 = 4;
			iVar7 = 1;
			iVar0 = true;
			break;
		
		case 36:
			StringCopy(&Var2, "U_FMF_4_2", 16);
			iVar6 = 4;
			iVar7 = 2;
			iVar0 = true;
			break;
		
		case 37:
			StringCopy(&Var2, "U_FMF_4_3", 16);
			iVar6 = 4;
			iVar7 = 3;
			iVar0 = true;
			break;
		
		case 38:
			StringCopy(&Var2, "U_FMF_4_4", 16);
			iVar6 = 4;
			iVar7 = 4;
			iVar0 = true;
			break;
		
		case 39:
			StringCopy(&Var2, "U_FMF_4_5", 16);
			iVar6 = 4;
			iVar7 = 5;
			iVar0 = true;
			break;
		
		case 40:
			StringCopy(&Var2, "U_FMF_4_6", 16);
			iVar6 = 4;
			iVar7 = 6;
			iVar0 = true;
			break;
		
		case 41:
			StringCopy(&Var2, "U_FMF_4_7", 16);
			iVar6 = 4;
			iVar7 = 7;
			iVar0 = true;
			break;
		
		case 42:
			StringCopy(&Var2, "U_FMF_4_8", 16);
			iVar6 = 4;
			iVar7 = 8;
			iVar0 = true;
			break;
		
		case 43:
			StringCopy(&Var2, "U_FMF_4_9", 16);
			iVar6 = 4;
			iVar7 = 9;
			iVar0 = true;
			break;
		
		case 44:
			StringCopy(&Var2, "U_FMF_4_10", 16);
			iVar6 = 4;
			iVar7 = 10;
			iVar0 = true;
			break;
		
		case 45:
			StringCopy(&Var2, "U_FMF_4_11", 16);
			iVar6 = 4;
			iVar7 = 11;
			iVar0 = true;
			break;
		
		case 46:
			StringCopy(&Var2, "U_FMF_4_12", 16);
			iVar6 = 4;
			iVar7 = 12;
			iVar0 = true;
			break;
		
		case 47:
			StringCopy(&Var2, "U_FMF_4_13", 16);
			iVar6 = 4;
			iVar7 = 13;
			iVar1 = 40;
			iVar1 = system::round((system::to_float(iVar1) * Global_262145.f_1500[77]));
			break;
		
		case 48:
			StringCopy(&Var2, "U_FMF_4_14", 16);
			iVar6 = 4;
			iVar7 = 14;
			iVar1 = 40;
			iVar1 = system::round((system::to_float(iVar1) * Global_262145.f_1500[78]));
			break;
		
		case 49:
			StringCopy(&Var2, "U_FMF_4_15", 16);
			iVar6 = 4;
			iVar7 = 15;
			iVar0 = true;
			break;
		
		case 50:
			StringCopy(&Var2, "U_FMF_5_0", 16);
			iVar6 = 5;
			iVar7 = 0;
			iVar1 = 45;
			iVar1 = system::round((system::to_float(iVar1) * Global_262145.f_1500[80]));
			break;
		
		case 51:
			StringCopy(&Var2, "U_FMF_5_1", 16);
			iVar6 = 5;
			iVar7 = 1;
			iVar1 = 60;
			iVar1 = system::round((system::to_float(iVar1) * Global_262145.f_1500[81]));
			break;
		
		case 52:
			StringCopy(&Var2, "U_FMF_5_2", 16);
			iVar6 = 5;
			iVar7 = 2;
			iVar0 = true;
			break;
		
		case 53:
			StringCopy(&Var2, "U_FMF_5_3", 16);
			iVar6 = 5;
			iVar7 = 3;
			iVar0 = true;
			break;
		
		case 54:
			StringCopy(&Var2, "U_FMF_5_4", 16);
			iVar6 = 5;
			iVar7 = 4;
			iVar0 = true;
			break;
		
		case 55:
			StringCopy(&Var2, "U_FMF_5_5", 16);
			iVar6 = 5;
			iVar7 = 5;
			iVar0 = true;
			break;
		
		case 56:
			StringCopy(&Var2, "U_FMF_5_6", 16);
			iVar6 = 5;
			iVar7 = 6;
			iVar0 = true;
			break;
		
		case 57:
			StringCopy(&Var2, "U_FMF_5_7", 16);
			iVar6 = 5;
			iVar7 = 7;
			iVar1 = 375;
			iVar1 = system::round((system::to_float(iVar1) * Global_262145.f_1500[87]));
			break;
		
		case 58:
			StringCopy(&Var2, "U_FMF_5_8", 16);
			iVar6 = 5;
			iVar7 = 8;
			iVar0 = true;
			break;
		
		case 59:
			StringCopy(&Var2, "U_FMF_5_9", 16);
			iVar6 = 5;
			iVar7 = 9;
			iVar1 = 90;
			iVar1 = system::round((system::to_float(iVar1) * Global_262145.f_1500[89]));
			break;
		
		case 60:
			StringCopy(&Var2, "U_FMF_5_10", 16);
			iVar6 = 5;
			iVar7 = 10;
			iVar0 = true;
			break;
		
		case 61:
			StringCopy(&Var2, "U_FMF_5_11", 16);
			iVar6 = 5;
			iVar7 = 11;
			iVar0 = true;
			break;
		
		case 62:
			StringCopy(&Var2, "U_FMF_5_12", 16);
			iVar6 = 5;
			iVar7 = 12;
			iVar0 = true;
			break;
		
		case 63:
			StringCopy(&Var2, "U_FMF_5_13", 16);
			iVar6 = 5;
			iVar7 = 13;
			iVar0 = true;
			break;
		
		case 64:
			StringCopy(&Var2, "U_FMF_5_14", 16);
			iVar6 = 5;
			iVar7 = 14;
			iVar0 = true;
			break;
		
		case 65:
			StringCopy(&Var2, "U_FMF_5_15", 16);
			iVar6 = 5;
			iVar7 = 15;
			iVar0 = true;
			break;
		
		case 66:
			iVar6 = 6;
			iVar7 = 0;
			break;
		
		case 67:
			iVar6 = 7;
			iVar7 = 0;
			break;
		
		case 68:
			iVar6 = 8;
			iVar7 = 0;
			break;
		
		case 69:
			iVar6 = 9;
			iVar7 = 0;
			break;
		
		case 70:
			iVar6 = 10;
			iVar7 = 0;
			break;
		
		case 71:
			StringCopy(&Var2, "U_FMF_11_0", 16);
			iVar6 = 11;
			iVar7 = 0;
			iVar1 = 90;
			iVar1 = system::round((system::to_float(iVar1) * Global_262145.f_1500[176]));
			break;
		
		case 72:
			StringCopy(&Var2, "U_FMF_11_1", 16);
			iVar6 = 11;
			iVar7 = 1;
			iVar1 = 95;
			iVar1 = system::round((system::to_float(iVar1) * Global_262145.f_1500[177]));
			break;
		
		case 73:
			StringCopy(&Var2, "U_FMF_11_2", 16);
			iVar6 = 11;
			iVar7 = 2;
			iVar1 = 95;
			iVar1 = system::round((system::to_float(iVar1) * Global_262145.f_1500[178]));
			break;
		
		case 74:
			StringCopy(&Var2, "U_FMF_11_3", 16);
			iVar6 = 11;
			iVar7 = 3;
			iVar0 = true;
			break;
		
		case 75:
			StringCopy(&Var2, "U_FMF_11_4", 16);
			iVar6 = 11;
			iVar7 = 4;
			iVar0 = true;
			break;
		
		case 76:
			StringCopy(&Var2, "U_FMF_11_5", 16);
			iVar6 = 11;
			iVar7 = 5;
			iVar0 = true;
			break;
		
		case 77:
			StringCopy(&Var2, "U_FMF_11_6", 16);
			iVar6 = 11;
			iVar7 = 6;
			iVar0 = true;
			break;
		
		case 78:
			StringCopy(&Var2, "U_FMF_11_7", 16);
			iVar6 = 11;
			iVar7 = 7;
			iVar0 = true;
			break;
		
		case 79:
			StringCopy(&Var2, "U_FMF_11_8", 16);
			iVar6 = 11;
			iVar7 = 8;
			iVar0 = true;
			break;
		
		case 80:
			StringCopy(&Var2, "U_FMF_11_9", 16);
			iVar6 = 11;
			iVar7 = 9;
			iVar0 = true;
			break;
		
		case 81:
			StringCopy(&Var2, "U_FMF_11_10", 16);
			iVar6 = 11;
			iVar7 = 10;
			iVar1 = 150;
			iVar1 = system::round((system::to_float(iVar1) * Global_262145.f_1500[186]));
			break;
		
		case 82:
			StringCopy(&Var2, "U_FMF_11_11", 16);
			iVar6 = 11;
			iVar7 = 11;
			iVar1 = 65;
			iVar1 = system::round((system::to_float(iVar1) * Global_262145.f_1500[187]));
			break;
		
		case 83:
			StringCopy(&Var2, "U_FMF_11_12", 16);
			iVar6 = 11;
			iVar7 = 12;
			iVar0 = true;
			break;
		
		case 84:
			StringCopy(&Var2, "U_FMF_11_13", 16);
			iVar6 = 11;
			iVar7 = 13;
			iVar0 = true;
			break;
		
		case 85:
			StringCopy(&Var2, "U_FMF_11_14", 16);
			iVar6 = 11;
			iVar7 = 14;
			iVar0 = true;
			break;
		
		case 86:
			StringCopy(&Var2, "U_FMF_11_15", 16);
			iVar6 = 11;
			iVar7 = 15;
			iVar1 = 145;
			iVar1 = system::round((system::to_float(iVar1) * Global_262145.f_1500[191]));
			break;
		
		case 87:
			StringCopy(&Var2, "U_FMF_12_0", 16);
			iVar6 = 12;
			iVar7 = 0;
			iVar0 = true;
			break;
		
		case 88:
			StringCopy(&Var2, "U_FMF_12_1", 16);
			iVar6 = 12;
			iVar7 = 1;
			iVar0 = true;
			break;
		
		case 89:
			StringCopy(&Var2, "U_FMF_12_2", 16);
			iVar6 = 12;
			iVar7 = 2;
			iVar0 = true;
			break;
		
		case 90:
			StringCopy(&Var2, "U_FMF_12_3", 16);
			iVar6 = 12;
			iVar7 = 3;
			iVar0 = true;
			break;
		
		case 91:
			StringCopy(&Var2, "U_FMF_12_4", 16);
			iVar6 = 12;
			iVar7 = 4;
			iVar0 = true;
			break;
		
		case 92:
			StringCopy(&Var2, "U_FMF_12_5", 16);
			iVar6 = 12;
			iVar7 = 5;
			iVar0 = true;
			break;
		
		case 93:
			StringCopy(&Var2, "U_FMF_12_6", 16);
			iVar6 = 12;
			iVar7 = 6;
			iVar0 = true;
			break;
		
		case 94:
			StringCopy(&Var2, "U_FMF_12_7", 16);
			iVar6 = 12;
			iVar7 = 7;
			iVar1 = 1560;
			iVar1 = system::round((system::to_float(iVar1) * Global_262145.f_1500[199]));
			break;
		
		case 95:
			StringCopy(&Var2, "U_FMF_12_8", 16);
			iVar6 = 12;
			iVar7 = 8;
			iVar1 = 195;
			iVar1 = system::round((system::to_float(iVar1) * Global_262145.f_1500[200]));
			break;
		
		case 96:
			StringCopy(&Var2, "U_FMF_12_9", 16);
			iVar6 = 12;
			iVar7 = 9;
			iVar1 = 200;
			iVar1 = system::round((system::to_float(iVar1) * Global_262145.f_1500[201]));
			break;
		
		case 97:
			StringCopy(&Var2, "U_FMF_12_10", 16);
			iVar6 = 12;
			iVar7 = 10;
			iVar0 = true;
			break;
		
		case 98:
			StringCopy(&Var2, "U_FMF_12_11", 16);
			iVar6 = 12;
			iVar7 = 11;
			iVar0 = true;
			break;
		
		case 99:
			StringCopy(&Var2, "U_FMF_12_12", 16);
			iVar6 = 12;
			iVar7 = 12;
			iVar0 = true;
			break;
		
		case 100:
			StringCopy(&Var2, "U_FMF_12_13", 16);
			iVar6 = 12;
			iVar7 = 13;
			iVar0 = true;
			break;
		
		case 101:
			StringCopy(&Var2, "U_FMF_12_14", 16);
			iVar6 = 12;
			iVar7 = 14;
			iVar0 = true;
			break;
		
		case 102:
			StringCopy(&Var2, "U_FMF_12_15", 16);
			iVar6 = 12;
			iVar7 = 15;
			iVar0 = true;
			break;
		
		case 103:
			StringCopy(&Var2, "U_FMF_13_0", 16);
			iVar6 = 13;
			iVar7 = 0;
			iVar1 = 975;
			iVar1 = system::round((system::to_float(iVar1) * Global_262145.f_1500[208]));
			break;
		
		case 104:
			StringCopy(&Var2, "U_FMF_13_1", 16);
			iVar6 = 13;
			iVar7 = 1;
			iVar1 = 2670;
			iVar1 = system::round((system::to_float(iVar1) * Global_262145.f_1500[209]));
			break;
		
		case 105:
			StringCopy(&Var2, "U_FMF_13_2", 16);
			iVar6 = 13;
			iVar7 = 2;
			iVar1 = 480;
			iVar1 = system::round((system::to_float(iVar1) * Global_262145.f_1500[210]));
			break;
		
		case 106:
			StringCopy(&Var2, "U_FMF_13_3", 16);
			iVar6 = 13;
			iVar7 = 3;
			iVar1 = 400;
			iVar1 = system::round((system::to_float(iVar1) * Global_262145.f_1500[211]));
			break;
		
		case 107:
			StringCopy(&Var2, "U_FMF_13_4", 16);
			iVar6 = 13;
			iVar7 = 4;
			iVar1 = 2500;
			iVar1 = system::round((system::to_float(iVar1) * Global_262145.f_1500[212]));
			break;
		
		case 108:
			StringCopy(&Var2, "U_FMF_13_5", 16);
			iVar6 = 13;
			iVar7 = 5;
			iVar1 = 2060;
			iVar1 = system::round((system::to_float(iVar1) * Global_262145.f_1500[213]));
			break;
		
		case 109:
			StringCopy(&Var2, "U_FMF_13_6", 16);
			iVar6 = 13;
			iVar7 = 6;
			iVar1 = 2620;
			iVar1 = system::round((system::to_float(iVar1) * Global_262145.f_1500[214]));
			break;
		
		case 110:
			StringCopy(&Var2, "U_FMF_13_7", 16);
			iVar6 = 13;
			iVar7 = 7;
			iVar1 = 475;
			iVar1 = system::round((system::to_float(iVar1) * Global_262145.f_1500[215]));
			break;
		
		case 111:
			StringCopy(&Var2, "U_FMF_13_8", 16);
			iVar6 = 13;
			iVar7 = 8;
			iVar1 = 490;
			iVar1 = system::round((system::to_float(iVar1) * Global_262145.f_1500[216]));
			break;
		
		case 112:
			StringCopy(&Var2, "U_FMF_13_9", 16);
			iVar6 = 13;
			iVar7 = 9;
			iVar1 = 2280;
			iVar1 = system::round((system::to_float(iVar1) * Global_262145.f_1500[217]));
			break;
		
		case 113:
			StringCopy(&Var2, "U_FMF_13_10", 16);
			iVar6 = 13;
			iVar7 = 10;
			iVar1 = 485;
			iVar1 = system::round((system::to_float(iVar1) * Global_262145.f_1500[218]));
			break;
		
		case 114:
			StringCopy(&Var2, "U_FMF_13_11", 16);
			iVar6 = 13;
			iVar7 = 11;
			iVar1 = 2390;
			iVar1 = system::round((system::to_float(iVar1) * Global_262145.f_1500[219]));
			break;
		
		case 115:
			StringCopy(&Var2, "U_FMF_13_12", 16);
			iVar6 = 13;
			iVar7 = 12;
			iVar1 = 2610;
			iVar1 = system::round((system::to_float(iVar1) * Global_262145.f_1500[220]));
			break;
		
		case 116:
			StringCopy(&Var2, "U_FMF_13_13", 16);
			iVar6 = 13;
			iVar7 = 13;
			iVar1 = 1450;
			iVar1 = system::round((system::to_float(iVar1) * Global_262145.f_1500[221]));
			break;
		
		case 117:
			StringCopy(&Var2, "U_FMF_13_14", 16);
			iVar6 = 13;
			iVar7 = 14;
			iVar1 = 2720;
			iVar1 = system::round((system::to_float(iVar1) * Global_262145.f_1500[222]));
			break;
		
		case 118:
			StringCopy(&Var2, "U_FMF_13_15", 16);
			iVar6 = 13;
			iVar7 = 15;
			iVar1 = 4995;
			iVar1 = system::round((system::to_float(iVar1) * Global_262145.f_1500[223]));
			break;
		
		case 119:
			iVar6 = 14;
			iVar7 = 0;
			break;
		
		case 120:
			StringCopy(&Var2, "U_FMF_15_0", 16);
			iVar6 = 15;
			iVar7 = 0;
			iVar1 = 325;
			iVar1 = system::round((system::to_float(iVar1) * Global_262145.f_1500[240]));
			break;
		
		case 121:
			StringCopy(&Var2, "U_FMF_15_1", 16);
			iVar6 = 15;
			iVar7 = 1;
			iVar0 = true;
			break;
		
		case 122:
			StringCopy(&Var2, "U_FMF_15_2", 16);
			iVar6 = 15;
			iVar7 = 2;
			iVar0 = true;
			break;
		
		case 123:
			StringCopy(&Var2, "U_FMF_15_3", 16);
			iVar6 = 15;
			iVar7 = 3;
			iVar1 = 130;
			iVar1 = system::round((system::to_float(iVar1) * Global_262145.f_1500[243]));
			break;
		
		case 124:
			StringCopy(&Var2, "U_FMF_15_4", 16);
			iVar6 = 15;
			iVar7 = 4;
			iVar0 = true;
			break;
		
		case 125:
			StringCopy(&Var2, "U_FMF_15_5", 16);
			iVar6 = 15;
			iVar7 = 5;
			iVar0 = true;
			break;
		
		case 126:
			StringCopy(&Var2, "U_FMF_15_6", 16);
			iVar6 = 15;
			iVar7 = 6;
			iVar0 = true;
			break;
		
		case 127:
			StringCopy(&Var2, "U_FMF_15_7", 16);
			iVar6 = 15;
			iVar7 = 7;
			iVar0 = true;
			break;
		
		case 128:
			StringCopy(&Var2, "U_FMF_15_8", 16);
			iVar6 = 15;
			iVar7 = 8;
			iVar0 = true;
			break;
		
		case 129:
			StringCopy(&Var2, "U_FMF_15_9", 16);
			iVar6 = 15;
			iVar7 = 9;
			iVar0 = true;
			break;
		
		case 130:
			StringCopy(&Var2, "U_FMF_15_10", 16);
			iVar6 = 15;
			iVar7 = 10;
			iVar1 = 450;
			iVar1 = system::round((system::to_float(iVar1) * Global_262145.f_1500[250]));
			break;
		
		case 131:
			StringCopy(&Var2, "U_FMF_15_11", 16);
			iVar6 = 15;
			iVar7 = 11;
			iVar1 = 465;
			iVar1 = system::round((system::to_float(iVar1) * Global_262145.f_1500[251]));
			break;
		
		case 132:
			StringCopy(&Var2, "U_FMF_15_12", 16);
			iVar6 = 15;
			iVar7 = 12;
			iVar0 = true;
			break;
		
		case 133:
			StringCopy(&Var2, "U_FMF_15_13", 16);
			iVar6 = 15;
			iVar7 = 13;
			iVar0 = true;
			break;
		
		case 134:
			StringCopy(&Var2, "U_FMF_15_14", 16);
			iVar6 = 15;
			iVar7 = 14;
			iVar0 = true;
			break;
		
		case 135:
			StringCopy(&Var2, "U_FMF_15_15", 16);
			iVar6 = 15;
			iVar7 = 15;
			iVar0 = true;
			break;
		
		default:
			Global_69518[0 /*14*/].f_5 = 4;
			func_203(iVar10, iParam0, 136);
			if (Global_69518[0 /*14*/].f_7 > 0)
			{
				Global_69518[0 /*14*/].f_7 = system::round((system::to_float(Global_69518[0 /*14*/].f_7) * Global_279748.f_24));
			}
			return;
			break;
	}
	if (iParam0 == 4 || iParam0 == 20)
	{
		if (func_139(89, -1))
		{
			StringCopy(&Var2, "REW_RS", 16);
			iVar1 = system::round((system::to_float(1250) * Global_262145.f_2977));
		}
		else
		{
			iVar1 = system::round((system::to_float(40) * Global_262145.f_1500[4]));
		}
	}
	else if (iParam0 == 7 || iParam0 == 23)
	{
		if (func_139(88, -1))
		{
			StringCopy(&Var2, "REW_LSB", 16);
			iVar1 = system::round((system::to_float(450) * Global_262145.f_2976));
		}
		else
		{
			iVar1 = system::round((system::to_float(45) * Global_262145.f_1500[7]));
		}
	}
	else if (iParam0 == 9 || iParam0 == 25)
	{
		if (func_139(87, -1))
		{
			StringCopy(&Var2, "REW_REDSK", 16);
			iVar1 = system::round((system::to_float(500) * Global_262145.f_2975));
		}
		else
		{
			iVar1 = system::round((system::to_float(40) * Global_262145.f_1500[9]));
		}
	}
	else if (iParam0 >= 0 && iParam0 < 16)
	{
		iVar11 = iParam0;
		if (iVar11 >= 0 && iVar11 < 256)
		{
			iVar1 = system::round((system::to_float(iVar1) * Global_262145.f_1500[iVar11]));
		}
	}
	else if (iParam0 >= 16 && iParam0 < 32)
	{
		iVar12 = (iParam0 - 16);
		if (iVar12 >= 0 && iVar12 < 256)
		{
			iVar1 = system::round((system::to_float(iVar1) * Global_262145.f_1500[iVar12]));
		}
	}
	iVar1 = system::round((system::to_float(iVar1) * Global_279748.f_24));
	func_195(&(Global_69518[0 /*14*/]), iVar10, iParam0, &Var2, iVar6, iVar7, iVar1, iVar0, iVar8, iVar9, 0);
}

void func_215(int iParam0)//Position - 0x34F1E
{
	int iVar0;
	int iVar1;
	struct<2> Var2;
	int iVar6;
	int iVar7;
	int iVar8;
	int iVar9;
	int iVar10;
	int iVar11;
	
	iVar0 = false;
	iVar1 = 10;
	iVar6 = 0;
	iVar7 = 0;
	iVar8 = -1;
	iVar9 = 2;
	iVar10 = 11;
	switch (iParam0)
	{
		case 0:
			iVar6 = 0;
			iVar7 = 0;
			iVar1 = 250;
			break;
		
		case 1:
			iVar6 = 0;
			iVar7 = 1;
			iVar1 = 225;
			break;
		
		case 2:
			iVar6 = 0;
			iVar7 = 2;
			iVar1 = 50;
			break;
		
		case 3:
			iVar6 = 0;
			iVar7 = 3;
			iVar1 = 40;
			break;
		
		case 4:
			iVar6 = 0;
			iVar7 = 4;
			iVar1 = 40;
			break;
		
		case 5:
			iVar6 = 0;
			iVar7 = 5;
			iVar1 = 40;
			break;
		
		case 6:
			iVar6 = 0;
			iVar7 = 6;
			iVar1 = 40;
			break;
		
		case 7:
			iVar6 = 0;
			iVar7 = 7;
			iVar1 = 45;
			break;
		
		case 8:
			iVar6 = 0;
			iVar7 = 8;
			iVar1 = 40;
			break;
		
		case 9:
			iVar6 = 0;
			iVar7 = 9;
			iVar1 = 40;
			break;
		
		case 10:
			iVar6 = 0;
			iVar7 = 10;
			iVar1 = 135;
			break;
		
		case 11:
			iVar6 = 0;
			iVar7 = 11;
			iVar1 = 60;
			break;
		
		case 12:
			iVar6 = 0;
			iVar7 = 12;
			iVar1 = 220;
			break;
		
		case 13:
			iVar6 = 0;
			iVar7 = 13;
			iVar1 = 45;
			break;
		
		case 14:
			iVar6 = 0;
			iVar7 = 14;
			iVar1 = 45;
			break;
		
		case 15:
			iVar6 = 0;
			iVar7 = 15;
			iVar1 = 125;
			break;
	}
	switch (iParam0)
	{
		case 16:
			iVar6 = 1;
			iVar7 = 0;
			iVar1 = 390;
			break;
		
		case 17:
			iVar6 = 1;
			iVar7 = 1;
			iVar1 = 230;
			break;
		
		case 18:
			iVar6 = 1;
			iVar7 = 2;
			iVar1 = 355;
			break;
		
		case 19:
			iVar6 = 1;
			iVar7 = 3;
			iVar1 = 0;
			iVar0 = true;
			break;
		
		case 20:
			iVar6 = 1;
			iVar7 = 4;
			iVar1 = 5000;
			break;
		
		case 21:
			iVar6 = 1;
			iVar7 = 5;
			iVar1 = 2725;
			break;
		
		case 22:
			iVar6 = 1;
			iVar7 = 6;
			iVar1 = 3265;
			break;
		
		case 23:
			iVar6 = 1;
			iVar7 = 7;
			iVar1 = 0;
			iVar0 = true;
			break;
		
		case 24:
			iVar6 = 1;
			iVar7 = 8;
			iVar1 = 0;
			iVar0 = true;
			break;
		
		case 25:
			iVar6 = 1;
			iVar7 = 9;
			iVar1 = 3625;
			break;
		
		case 26:
			iVar6 = 1;
			iVar7 = 10;
			iVar1 = 0;
			iVar0 = true;
			break;
		
		case 27:
			iVar6 = 1;
			iVar7 = 11;
			iVar1 = 4220;
			break;
		
		case 28:
			iVar6 = 1;
			iVar7 = 12;
			iVar1 = 0;
			iVar0 = true;
			break;
		
		case 29:
			iVar6 = 1;
			iVar7 = 13;
			iVar1 = 0;
			iVar0 = true;
			break;
		
		case 30:
			iVar6 = 1;
			iVar7 = 14;
			iVar1 = 310;
			break;
		
		case 31:
			iVar6 = 1;
			iVar7 = 15;
			iVar1 = 0;
			iVar0 = true;
			break;
	}
	switch (iParam0)
	{
		case 32:
			iVar6 = 2;
			iVar7 = 0;
			iVar1 = 45;
			break;
		
		case 33:
			iVar6 = 2;
			iVar7 = 1;
			iVar1 = 210;
			break;
		
		case 34:
			iVar6 = 2;
			iVar7 = 2;
			iVar1 = 75;
			break;
		
		case 35:
			iVar6 = 2;
			iVar7 = 3;
			iVar1 = 50;
			break;
		
		case 36:
			iVar6 = 2;
			iVar7 = 4;
			iVar1 = 60;
			break;
		
		case 37:
			iVar6 = 2;
			iVar7 = 5;
			iVar1 = 50;
			break;
		
		case 38:
			iVar6 = 2;
			iVar7 = 6;
			iVar1 = 295;
			break;
		
		case 39:
			iVar6 = 2;
			iVar7 = 7;
			iVar1 = 80;
			break;
		
		case 40:
			iVar6 = 2;
			iVar7 = 8;
			iVar1 = 75;
			break;
		
		case 41:
			iVar6 = 2;
			iVar7 = 9;
			iVar1 = 2250;
			break;
		
		case 42:
			iVar6 = 2;
			iVar7 = 10;
			iVar1 = 275;
			break;
		
		case 43:
			iVar6 = 2;
			iVar7 = 11;
			iVar1 = 445;
			break;
		
		case 44:
			iVar6 = 2;
			iVar7 = 12;
			iVar1 = 50;
			break;
		
		case 45:
			iVar6 = 2;
			iVar7 = 13;
			iVar1 = 40;
			break;
		
		case 46:
			iVar6 = 2;
			iVar7 = 14;
			iVar1 = 45;
			break;
		
		case 47:
			iVar6 = 2;
			iVar7 = 15;
			iVar1 = 470;
			break;
	}
	switch (iParam0)
	{
		case 48:
			iVar6 = 3;
			iVar7 = 0;
			iVar1 = 95;
			break;
		
		case 49:
			iVar6 = 3;
			iVar7 = 1;
			iVar1 = 95;
			break;
		
		case 50:
			iVar6 = 3;
			iVar7 = 2;
			iVar1 = 360;
			break;
		
		case 51:
			iVar6 = 3;
			iVar7 = 3;
			iVar1 = 100;
			break;
		
		case 52:
			iVar6 = 3;
			iVar7 = 4;
			iVar1 = 60;
			break;
		
		case 53:
			iVar6 = 3;
			iVar7 = 5;
			iVar1 = 0;
			iVar0 = true;
			break;
		
		case 54:
			iVar6 = 3;
			iVar7 = 6;
			iVar1 = 0;
			iVar0 = true;
			break;
		
		case 55:
			iVar6 = 3;
			iVar7 = 7;
			iVar1 = 0;
			iVar0 = true;
			break;
		
		case 56:
			iVar6 = 3;
			iVar7 = 8;
			iVar1 = 0;
			iVar0 = true;
			break;
		
		case 57:
			iVar6 = 3;
			iVar7 = 9;
			iVar1 = 0;
			iVar0 = true;
			break;
		
		case 58:
			iVar6 = 3;
			iVar7 = 10;
			iVar1 = 295;
			break;
		
		case 59:
			iVar6 = 3;
			iVar7 = 11;
			iVar1 = 460;
			break;
		
		case 60:
			iVar6 = 3;
			iVar7 = 12;
			iVar1 = 1980;
			break;
		
		case 61:
			iVar6 = 3;
			iVar7 = 13;
			iVar1 = 2110;
			break;
		
		case 62:
			iVar6 = 3;
			iVar7 = 14;
			iVar1 = 95;
			break;
		
		case 63:
			iVar6 = 3;
			iVar7 = 15;
			iVar1 = 0;
			iVar0 = true;
			break;
	}
	switch (iParam0)
	{
		case 64:
			iVar6 = 4;
			iVar7 = 0;
			iVar1 = 0;
			iVar0 = true;
			break;
		
		case 65:
			iVar6 = 4;
			iVar7 = 1;
			iVar1 = 0;
			iVar0 = true;
			break;
		
		case 66:
			iVar6 = 4;
			iVar7 = 2;
			iVar1 = 0;
			iVar0 = true;
			break;
		
		case 67:
			iVar6 = 4;
			iVar7 = 3;
			iVar1 = 0;
			iVar0 = true;
			break;
		
		case 68:
			iVar6 = 4;
			iVar7 = 4;
			iVar1 = 0;
			iVar0 = true;
			break;
		
		case 69:
			iVar6 = 4;
			iVar7 = 5;
			iVar1 = 0;
			iVar0 = true;
			break;
		
		case 70:
			iVar6 = 4;
			iVar7 = 6;
			iVar1 = 0;
			iVar0 = true;
			break;
		
		case 71:
			iVar6 = 4;
			iVar7 = 7;
			iVar1 = 0;
			iVar0 = true;
			break;
		
		case 72:
			iVar6 = 4;
			iVar7 = 8;
			iVar1 = 0;
			iVar0 = true;
			break;
		
		case 73:
			iVar6 = 4;
			iVar7 = 9;
			iVar1 = 0;
			iVar0 = true;
			break;
		
		case 74:
			iVar6 = 4;
			iVar7 = 10;
			iVar1 = 0;
			iVar0 = true;
			break;
		
		case 75:
			iVar6 = 4;
			iVar7 = 11;
			iVar1 = 0;
			iVar0 = true;
			break;
		
		case 76:
			iVar6 = 4;
			iVar7 = 12;
			iVar1 = 0;
			iVar0 = true;
			break;
		
		case 77:
			iVar6 = 4;
			iVar7 = 13;
			iVar1 = 40;
			break;
		
		case 78:
			iVar6 = 4;
			iVar7 = 14;
			iVar1 = 40;
			break;
		
		case 79:
			iVar6 = 4;
			iVar7 = 15;
			iVar1 = 0;
			iVar0 = true;
			break;
	}
	switch (iParam0)
	{
		case 80:
			iVar6 = 5;
			iVar7 = 0;
			iVar1 = 45;
			break;
		
		case 81:
			iVar6 = 5;
			iVar7 = 1;
			iVar1 = 60;
			break;
		
		case 82:
			iVar6 = 5;
			iVar7 = 2;
			iVar1 = 0;
			iVar0 = true;
			break;
		
		case 83:
			iVar6 = 5;
			iVar7 = 3;
			iVar1 = 0;
			iVar0 = true;
			break;
		
		case 84:
			iVar6 = 5;
			iVar7 = 4;
			iVar1 = 0;
			iVar0 = true;
			break;
		
		case 85:
			iVar6 = 5;
			iVar7 = 5;
			iVar1 = 0;
			iVar0 = true;
			break;
		
		case 86:
			iVar6 = 5;
			iVar7 = 6;
			iVar1 = 0;
			iVar0 = true;
			break;
		
		case 87:
			iVar6 = 5;
			iVar7 = 7;
			iVar1 = 375;
			break;
		
		case 88:
			iVar6 = 5;
			iVar7 = 8;
			iVar1 = 0;
			iVar0 = true;
			break;
		
		case 89:
			iVar6 = 5;
			iVar7 = 9;
			iVar1 = 90;
			break;
		
		case 90:
			iVar6 = 5;
			iVar7 = 10;
			iVar1 = 0;
			iVar0 = true;
			break;
		
		case 91:
			iVar6 = 5;
			iVar7 = 11;
			iVar1 = 0;
			iVar0 = true;
			break;
		
		case 92:
			iVar6 = 5;
			iVar7 = 12;
			iVar1 = 0;
			iVar0 = true;
			break;
		
		case 93:
			iVar6 = 5;
			iVar7 = 13;
			iVar1 = 0;
			iVar0 = true;
			break;
		
		case 94:
			iVar6 = 5;
			iVar7 = 14;
			iVar1 = 0;
			iVar0 = true;
			break;
		
		case 95:
			iVar6 = 5;
			iVar7 = 15;
			iVar1 = 0;
			iVar0 = true;
			break;
	}
	switch (iParam0)
	{
		case 96:
			iVar6 = 6;
			iVar7 = 0;
			iVar1 = 900;
			break;
		
		case 97:
			iVar6 = 6;
			iVar7 = 1;
			iVar1 = 1000;
			break;
		
		case 98:
			iVar6 = 6;
			iVar7 = 2;
			iVar1 = 1050;
			break;
		
		case 99:
			iVar6 = 6;
			iVar7 = 3;
			iVar1 = 0;
			iVar0 = true;
			break;
		
		case 100:
			iVar6 = 6;
			iVar7 = 4;
			iVar1 = 1000;
			break;
		
		case 101:
			iVar6 = 6;
			iVar7 = 5;
			iVar1 = 0;
			iVar0 = true;
			break;
		
		case 102:
			iVar6 = 6;
			iVar7 = 6;
			iVar1 = 0;
			iVar0 = true;
			break;
		
		case 103:
			iVar6 = 6;
			iVar7 = 7;
			iVar1 = 0;
			iVar0 = true;
			break;
		
		case 104:
			iVar6 = 6;
			iVar7 = 8;
			iVar1 = 0;
			iVar0 = true;
			break;
		
		case 105:
			iVar6 = 6;
			iVar7 = 9;
			iVar1 = 0;
			iVar0 = true;
			break;
		
		case 106:
			iVar6 = 6;
			iVar7 = 10;
			iVar1 = 0;
			iVar0 = true;
			break;
		
		case 107:
			iVar6 = 6;
			iVar7 = 11;
			iVar1 = 0;
			iVar0 = true;
			break;
		
		case 108:
			iVar6 = 6;
			iVar7 = 12;
			iVar1 = 0;
			iVar0 = true;
			break;
		
		case 109:
			iVar6 = 6;
			iVar7 = 13;
			iVar1 = 0;
			iVar0 = true;
			break;
		
		case 110:
			iVar6 = 6;
			iVar7 = 14;
			iVar1 = 0;
			iVar0 = true;
			break;
		
		case 111:
			iVar6 = 6;
			iVar7 = 15;
			iVar1 = 0;
			iVar0 = true;
			break;
	}
	switch (iParam0)
	{
		case 112:
			iVar6 = 7;
			iVar7 = 0;
			iVar1 = 2975;
			break;
		
		case 113:
			iVar6 = 7;
			iVar7 = 1;
			iVar1 = 1100;
			break;
		
		case 114:
			iVar6 = 7;
			iVar7 = 2;
			iVar1 = 1825;
			break;
		
		case 115:
			iVar6 = 7;
			iVar7 = 3;
			iVar1 = 0;
			iVar0 = true;
			break;
		
		case 116:
			iVar6 = 7;
			iVar7 = 4;
			iVar1 = 0;
			iVar0 = true;
			break;
		
		case 117:
			iVar6 = 7;
			iVar7 = 5;
			iVar1 = 0;
			iVar0 = true;
			break;
		
		case 118:
			iVar6 = 7;
			iVar7 = 6;
			iVar1 = 0;
			iVar0 = true;
			break;
		
		case 119:
			iVar6 = 7;
			iVar7 = 7;
			iVar1 = 0;
			iVar0 = true;
			break;
		
		case 120:
			iVar6 = 7;
			iVar7 = 8;
			iVar1 = 1750;
			break;
		
		case 121:
			iVar6 = 7;
			iVar7 = 9;
			iVar1 = 0;
			iVar0 = true;
			break;
		
		case 122:
			iVar6 = 7;
			iVar7 = 10;
			iVar1 = 0;
			iVar0 = true;
			break;
		
		case 123:
			iVar6 = 7;
			iVar7 = 11;
			iVar1 = 0;
			iVar0 = true;
			break;
		
		case 124:
			iVar6 = 7;
			iVar7 = 12;
			iVar1 = 0;
			iVar0 = true;
			break;
		
		case 125:
			iVar6 = 7;
			iVar7 = 13;
			iVar1 = 0;
			iVar0 = true;
			break;
		
		case 126:
			iVar6 = 7;
			iVar7 = 14;
			iVar1 = 0;
			iVar0 = true;
			break;
		
		case 127:
			iVar6 = 7;
			iVar7 = 15;
			iVar1 = 0;
			iVar0 = true;
			break;
	}
	switch (iParam0)
	{
		case 128:
			iVar6 = 8;
			iVar7 = 0;
			iVar1 = 1025;
			break;
		
		case 129:
			iVar6 = 8;
			iVar7 = 1;
			iVar1 = 1075;
			break;
		
		case 130:
			iVar6 = 8;
			iVar7 = 2;
			iVar1 = 2805;
			break;
		
		case 131:
			iVar6 = 8;
			iVar7 = 3;
			iVar1 = 0;
			iVar0 = true;
			break;
		
		case 132:
			iVar6 = 8;
			iVar7 = 4;
			iVar1 = 0;
			iVar0 = true;
			break;
		
		case 133:
			iVar6 = 8;
			iVar7 = 5;
			iVar1 = 0;
			iVar0 = true;
			break;
		
		case 134:
			iVar6 = 8;
			iVar7 = 6;
			iVar1 = 0;
			iVar0 = true;
			break;
		
		case 135:
			iVar6 = 8;
			iVar7 = 7;
			iVar1 = 0;
			iVar0 = true;
			break;
		
		case 136:
			iVar6 = 8;
			iVar7 = 8;
			iVar1 = 0;
			iVar0 = true;
			break;
		
		case 137:
			iVar6 = 8;
			iVar7 = 9;
			iVar1 = 0;
			iVar0 = true;
			break;
		
		case 138:
			iVar6 = 8;
			iVar7 = 10;
			iVar1 = 0;
			iVar0 = true;
			break;
		
		case 139:
			iVar6 = 8;
			iVar7 = 11;
			iVar1 = 0;
			iVar0 = true;
			break;
		
		case 140:
			iVar6 = 8;
			iVar7 = 12;
			iVar1 = 2250;
			break;
		
		case 141:
			iVar6 = 8;
			iVar7 = 13;
			iVar1 = 0;
			iVar0 = true;
			break;
		
		case 142:
			iVar6 = 8;
			iVar7 = 14;
			iVar1 = 0;
			iVar0 = true;
			break;
		
		case 143:
			iVar6 = 8;
			iVar7 = 15;
			iVar1 = 0;
			iVar0 = true;
			break;
	}
	switch (iParam0)
	{
		case 144:
			iVar6 = 9;
			iVar7 = 0;
			iVar1 = 495;
			break;
		
		case 145:
			iVar6 = 9;
			iVar7 = 1;
			iVar1 = 95;
			break;
		
		case 146:
			iVar6 = 9;
			iVar7 = 2;
			iVar1 = 95;
			break;
		
		case 147:
			iVar6 = 9;
			iVar7 = 3;
			iVar1 = 525;
			break;
		
		case 148:
			iVar6 = 9;
			iVar7 = 4;
			iVar1 = 100;
			break;
		
		case 149:
			iVar6 = 9;
			iVar7 = 5;
			iVar1 = 110;
			break;
		
		case 150:
			iVar6 = 9;
			iVar7 = 6;
			iVar1 = 100;
			break;
		
		case 151:
			iVar6 = 9;
			iVar7 = 7;
			iVar1 = 110;
			break;
		
		case 152:
			iVar6 = 9;
			iVar7 = 8;
			iVar1 = 130;
			break;
		
		case 153:
			iVar6 = 9;
			iVar7 = 9;
			iVar1 = 560;
			break;
		
		case 154:
			iVar6 = 9;
			iVar7 = 10;
			iVar1 = 295;
			break;
		
		case 155:
			iVar6 = 9;
			iVar7 = 11;
			iVar1 = 975;
			break;
		
		case 156:
			iVar6 = 9;
			iVar7 = 12;
			iVar1 = 160;
			break;
		
		case 157:
			iVar6 = 9;
			iVar7 = 13;
			iVar1 = 100;
			break;
		
		case 158:
			iVar6 = 9;
			iVar7 = 14;
			iVar1 = 1700;
			break;
		
		case 159:
			iVar6 = 9;
			iVar7 = 15;
			iVar1 = 0;
			iVar0 = true;
			break;
	}
	switch (iParam0)
	{
		case 160:
			iVar6 = 10;
			iVar7 = 0;
			iVar1 = 380;
			break;
		
		case 161:
			iVar6 = 10;
			iVar7 = 1;
			iVar1 = 95;
			break;
		
		case 162:
			iVar6 = 10;
			iVar7 = 2;
			iVar1 = 95;
			break;
		
		case 163:
			iVar6 = 10;
			iVar7 = 3;
			iVar1 = 0;
			iVar0 = true;
			break;
		
		case 164:
			iVar6 = 10;
			iVar7 = 4;
			iVar1 = 0;
			iVar0 = true;
			break;
		
		case 165:
			iVar6 = 10;
			iVar7 = 5;
			iVar1 = 0;
			iVar0 = true;
			break;
		
		case 166:
			iVar6 = 10;
			iVar7 = 6;
			iVar1 = 0;
			iVar0 = true;
			break;
		
		case 167:
			iVar6 = 10;
			iVar7 = 7;
			iVar1 = 110;
			break;
		
		case 168:
			iVar6 = 10;
			iVar7 = 8;
			iVar1 = 0;
			iVar0 = true;
			break;
		
		case 169:
			iVar6 = 10;
			iVar7 = 9;
			iVar1 = 0;
			iVar0 = true;
			break;
		
		case 170:
			iVar6 = 10;
			iVar7 = 10;
			iVar1 = 95;
			break;
		
		case 171:
			iVar6 = 10;
			iVar7 = 11;
			iVar1 = 90;
			break;
		
		case 172:
			iVar6 = 10;
			iVar7 = 12;
			iVar1 = 0;
			iVar0 = true;
			break;
		
		case 173:
			iVar6 = 10;
			iVar7 = 13;
			iVar1 = 85;
			break;
		
		case 174:
			iVar6 = 10;
			iVar7 = 14;
			iVar1 = 0;
			iVar0 = true;
			break;
		
		case 175:
			iVar6 = 10;
			iVar7 = 15;
			iVar1 = 215;
			break;
	}
	switch (iParam0)
	{
		case 176:
			iVar6 = 11;
			iVar7 = 0;
			iVar1 = 90;
			break;
		
		case 177:
			iVar6 = 11;
			iVar7 = 1;
			iVar1 = 95;
			break;
		
		case 178:
			iVar6 = 11;
			iVar7 = 2;
			iVar1 = 95;
			break;
		
		case 179:
			iVar6 = 11;
			iVar7 = 3;
			iVar1 = 0;
			iVar0 = true;
			break;
		
		case 180:
			iVar6 = 11;
			iVar7 = 4;
			iVar1 = 0;
			iVar0 = true;
			break;
		
		case 181:
			iVar6 = 11;
			iVar7 = 5;
			iVar1 = 0;
			iVar0 = true;
			break;
		
		case 182:
			iVar6 = 11;
			iVar7 = 6;
			iVar1 = 0;
			iVar0 = true;
			break;
		
		case 183:
			iVar6 = 11;
			iVar7 = 7;
			iVar1 = 0;
			iVar0 = true;
			break;
		
		case 184:
			iVar6 = 11;
			iVar7 = 8;
			iVar1 = 0;
			iVar0 = true;
			break;
		
		case 185:
			iVar6 = 11;
			iVar7 = 9;
			iVar1 = 0;
			iVar0 = true;
			break;
		
		case 186:
			iVar6 = 11;
			iVar7 = 10;
			iVar1 = 150;
			break;
		
		case 187:
			iVar6 = 11;
			iVar7 = 11;
			iVar1 = 65;
			break;
		
		case 188:
			iVar6 = 11;
			iVar7 = 12;
			iVar1 = 0;
			iVar0 = true;
			break;
		
		case 189:
			iVar6 = 11;
			iVar7 = 13;
			iVar1 = 0;
			iVar0 = true;
			break;
		
		case 190:
			iVar6 = 11;
			iVar7 = 14;
			iVar1 = 0;
			iVar0 = true;
			break;
		
		case 191:
			iVar6 = 11;
			iVar7 = 15;
			iVar1 = 145;
			break;
	}
	switch (iParam0)
	{
		case 192:
			iVar6 = 12;
			iVar7 = 0;
			iVar1 = 0;
			iVar0 = true;
			break;
		
		case 193:
			iVar6 = 12;
			iVar7 = 1;
			iVar1 = 0;
			iVar0 = true;
			break;
		
		case 194:
			iVar6 = 12;
			iVar7 = 2;
			iVar1 = 0;
			iVar0 = true;
			break;
		
		case 195:
			iVar6 = 12;
			iVar7 = 3;
			iVar1 = 0;
			iVar0 = true;
			break;
		
		case 196:
			iVar6 = 12;
			iVar7 = 4;
			iVar1 = 0;
			iVar0 = true;
			break;
		
		case 197:
			iVar6 = 12;
			iVar7 = 5;
			iVar1 = 0;
			iVar0 = true;
			break;
		
		case 198:
			iVar6 = 12;
			iVar7 = 6;
			iVar1 = 0;
			iVar0 = true;
			break;
		
		case 199:
			iVar6 = 12;
			iVar7 = 7;
			iVar1 = 1560;
			break;
		
		case 200:
			iVar6 = 12;
			iVar7 = 8;
			iVar1 = 195;
			break;
		
		case 201:
			iVar6 = 12;
			iVar7 = 9;
			iVar1 = 200;
			break;
		
		case 202:
			iVar6 = 12;
			iVar7 = 10;
			iVar1 = 0;
			iVar0 = true;
			break;
		
		case 203:
			iVar6 = 12;
			iVar7 = 11;
			iVar1 = 0;
			iVar0 = true;
			break;
		
		case 204:
			iVar6 = 12;
			iVar7 = 12;
			iVar1 = 0;
			iVar0 = true;
			break;
		
		case 205:
			iVar6 = 12;
			iVar7 = 13;
			iVar1 = 0;
			iVar0 = true;
			break;
		
		case 206:
			iVar6 = 12;
			iVar7 = 14;
			iVar1 = 0;
			iVar0 = true;
			break;
		
		case 207:
			iVar6 = 12;
			iVar7 = 15;
			iVar1 = 0;
			iVar0 = true;
			break;
	}
	switch (iParam0)
	{
		case 208:
			iVar6 = 13;
			iVar7 = 0;
			iVar1 = 975;
			break;
		
		case 209:
			iVar6 = 13;
			iVar7 = 1;
			iVar1 = 2670;
			break;
		
		case 210:
			iVar6 = 13;
			iVar7 = 2;
			iVar1 = 480;
			break;
		
		case 211:
			iVar6 = 13;
			iVar7 = 3;
			iVar1 = 400;
			break;
		
		case 212:
			iVar6 = 13;
			iVar7 = 4;
			iVar1 = 2500;
			break;
		
		case 213:
			iVar6 = 13;
			iVar7 = 5;
			iVar1 = 2060;
			break;
		
		case 214:
			iVar6 = 13;
			iVar7 = 6;
			iVar1 = 2620;
			break;
		
		case 215:
			iVar6 = 13;
			iVar7 = 7;
			iVar1 = 475;
			break;
		
		case 216:
			iVar6 = 13;
			iVar7 = 8;
			iVar1 = 490;
			break;
		
		case 217:
			iVar6 = 13;
			iVar7 = 9;
			iVar1 = 2280;
			break;
		
		case 218:
			iVar6 = 13;
			iVar7 = 10;
			iVar1 = 485;
			break;
		
		case 219:
			iVar6 = 13;
			iVar7 = 11;
			iVar1 = 2390;
			break;
		
		case 220:
			iVar6 = 13;
			iVar7 = 12;
			iVar1 = 2610;
			break;
		
		case 221:
			iVar6 = 13;
			iVar7 = 13;
			iVar1 = 1450;
			break;
		
		case 222:
			iVar6 = 13;
			iVar7 = 14;
			iVar1 = 2720;
			break;
		
		case 223:
			iVar6 = 13;
			iVar7 = 15;
			iVar1 = 4995;
			break;
	}
	switch (iParam0)
	{
		case 224:
			iVar6 = 14;
			iVar7 = 0;
			iVar1 = 265;
			break;
		
		case 225:
			iVar6 = 14;
			iVar7 = 1;
			iVar1 = 385;
			break;
		
		case 226:
			iVar6 = 14;
			iVar7 = 2;
			iVar1 = 345;
			break;
		
		case 227:
			iVar6 = 14;
			iVar7 = 3;
			iVar1 = 330;
			break;
		
		case 228:
			iVar6 = 14;
			iVar7 = 4;
			iVar1 = 430;
			break;
		
		case 229:
			iVar6 = 14;
			iVar7 = 5;
			iVar1 = 375;
			break;
		
		case 230:
			iVar6 = 14;
			iVar7 = 6;
			iVar1 = 375;
			break;
		
		case 231:
			iVar6 = 14;
			iVar7 = 7;
			iVar1 = 295;
			break;
		
		case 232:
			iVar6 = 14;
			iVar7 = 8;
			iVar1 = 360;
			break;
		
		case 233:
			iVar6 = 14;
			iVar7 = 9;
			iVar1 = 325;
			break;
		
		case 234:
			iVar6 = 14;
			iVar7 = 10;
			iVar1 = 340;
			break;
		
		case 235:
			iVar6 = 14;
			iVar7 = 11;
			iVar1 = 435;
			break;
		
		case 236:
			iVar6 = 14;
			iVar7 = 12;
			iVar1 = 300;
			break;
		
		case 237:
			iVar6 = 14;
			iVar7 = 13;
			iVar1 = 315;
			break;
		
		case 238:
			iVar6 = 14;
			iVar7 = 14;
			iVar1 = 415;
			break;
		
		case 239:
			iVar6 = 14;
			iVar7 = 15;
			iVar1 = 420;
			break;
	}
	switch (iParam0)
	{
		case 240:
			iVar6 = 15;
			iVar7 = 0;
			iVar1 = 325;
			break;
		
		case 241:
			iVar6 = 15;
			iVar7 = 1;
			iVar1 = 0;
			iVar0 = true;
			break;
		
		case 242:
			iVar6 = 15;
			iVar7 = 2;
			iVar1 = 0;
			iVar0 = true;
			break;
		
		case 243:
			iVar6 = 15;
			iVar7 = 3;
			iVar1 = 130;
			break;
		
		case 244:
			iVar6 = 15;
			iVar7 = 4;
			iVar1 = 0;
			iVar0 = true;
			break;
		
		case 245:
			iVar6 = 15;
			iVar7 = 5;
			iVar1 = 0;
			iVar0 = true;
			break;
		
		case 246:
			iVar6 = 15;
			iVar7 = 6;
			iVar1 = 0;
			iVar0 = true;
			break;
		
		case 247:
			iVar6 = 15;
			iVar7 = 7;
			iVar1 = 0;
			iVar0 = true;
			break;
		
		case 248:
			iVar6 = 15;
			iVar7 = 8;
			iVar1 = 0;
			iVar0 = true;
			break;
		
		case 249:
			iVar6 = 15;
			iVar7 = 9;
			iVar1 = 0;
			iVar0 = true;
			break;
		
		case 250:
			iVar6 = 15;
			iVar7 = 10;
			iVar1 = 450;
			break;
		
		case 251:
			iVar6 = 15;
			iVar7 = 11;
			iVar1 = 465;
			break;
		
		case 252:
			iVar6 = 15;
			iVar7 = 12;
			iVar1 = 0;
			iVar0 = true;
			break;
		
		case 253:
			iVar6 = 15;
			iVar7 = 13;
			iVar1 = 0;
			iVar0 = true;
			break;
		
		case 254:
			iVar6 = 15;
			iVar7 = 14;
			iVar1 = 0;
			iVar0 = true;
			break;
		
		case 255:
			iVar6 = 15;
			iVar7 = 15;
			iVar1 = 0;
			iVar0 = true;
			break;
	}
	StringCopy(&Var2, "U_FMF_", 16);
	StringIntConCat(&Var2, iVar6, 16);
	StringConCat(&Var2, "_", 16);
	StringIntConCat(&Var2, iVar7, 16);
	if (iParam0 == 4)
	{
		if (func_139(89, -1))
		{
			StringCopy(&Var2, "REW_RS", 16);
			iVar1 = system::round(((system::to_float(1250) * Global_262145.f_2977) * Global_279748.f_24));
		}
		else
		{
			iVar1 = system::round(((system::to_float(40) * Global_262145.f_1500[4]) * Global_279748.f_24));
		}
	}
	else if (iParam0 == 7)
	{
		if (func_139(88, -1))
		{
			StringCopy(&Var2, "REW_LSB", 16);
			iVar1 = system::round(((system::to_float(450) * Global_262145.f_2976) * Global_279748.f_24));
		}
		else
		{
			iVar1 = system::round(((system::to_float(45) * Global_262145.f_1500[7]) * Global_279748.f_24));
		}
	}
	else if (iParam0 == 9)
	{
		if (func_139(87, -1))
		{
			StringCopy(&Var2, "REW_REDSK", 16);
			iVar1 = system::round(((system::to_float(500) * Global_262145.f_2975) * Global_279748.f_24));
		}
		else
		{
			iVar1 = system::round(((system::to_float(40) * Global_262145.f_1500[9]) * Global_279748.f_24));
		}
	}
	else
	{
		iVar11 = iParam0;
		if (iVar11 >= 0 && iVar11 < 256)
		{
			iVar1 = system::round(((system::to_float(iVar1) * Global_262145.f_1500[iVar11]) * Global_279748.f_24));
		}
	}
	if (iParam0 >= 256)
	{
		Global_69518[0 /*14*/].f_5 = 4;
		func_203(iVar10, iParam0, 256);
		if (Global_69518[0 /*14*/].f_7 > 0)
		{
			Global_69518[0 /*14*/].f_7 = system::round((system::to_float(Global_69518[0 /*14*/].f_7) * Global_279748.f_24));
		}
	}
	else
	{
		func_195(&(Global_69518[0 /*14*/]), iVar10, iParam0, &Var2, iVar6, iVar7, iVar1, iVar0, iVar8, iVar9, 0);
	}
}

void func_216(int iParam0)//Position - 0x366AC
{
	int iVar0;
	int iVar1;
	struct<2> Var2;
	int iVar6;
	int iVar7;
	int iVar8;
	int iVar9;
	int iVar10;
	
	iVar0 = false;
	iVar1 = 10;
	iVar6 = 0;
	iVar7 = 0;
	iVar8 = -1;
	iVar9 = 2;
	iVar10 = 2;
	switch (iParam0)
	{
		case 0:
			iVar6 = 0;
			iVar7 = 0;
			iVar1 = 500;
			iVar1 = system::round((system::to_float(iVar1) * Global_262145.f_2453[0]));
			break;
		
		case 1:
			iVar6 = 1;
			iVar7 = 0;
			iVar1 = 500;
			iVar1 = system::round((system::to_float(iVar1) * Global_262145.f_2453[1]));
			break;
		
		case 2:
			iVar6 = 1;
			iVar7 = 1;
			iVar1 = 495;
			iVar1 = system::round((system::to_float(iVar1) * Global_262145.f_2453[2]));
			break;
		
		case 3:
			iVar6 = 1;
			iVar7 = 2;
			iVar1 = 490;
			iVar1 = system::round((system::to_float(iVar1) * Global_262145.f_2453[3]));
			break;
		
		case 4:
			iVar6 = 1;
			iVar7 = 3;
			iVar1 = 485;
			iVar1 = system::round((system::to_float(iVar1) * Global_262145.f_2453[4]));
			break;
		
		case 5:
			iVar6 = 1;
			iVar7 = 4;
			iVar1 = 480;
			iVar1 = system::round((system::to_float(iVar1) * Global_262145.f_2453[5]));
			break;
		
		case 6:
			iVar6 = 1;
			iVar7 = 5;
			iVar1 = 0;
			break;
		
		case 7:
			iVar6 = 2;
			iVar7 = 0;
			iVar1 = 440;
			iVar1 = system::round((system::to_float(iVar1) * Global_262145.f_2453[6]));
			break;
		
		case 8:
			iVar6 = 2;
			iVar7 = 1;
			iVar1 = 435;
			iVar1 = system::round((system::to_float(iVar1) * Global_262145.f_2453[7]));
			break;
		
		case 9:
			iVar6 = 2;
			iVar7 = 2;
			iVar1 = 430;
			iVar1 = system::round((system::to_float(iVar1) * Global_262145.f_2453[8]));
			break;
		
		case 10:
			iVar6 = 2;
			iVar7 = 3;
			iVar1 = 425;
			iVar1 = system::round((system::to_float(iVar1) * Global_262145.f_2453[9]));
			break;
		
		case 11:
			iVar6 = 2;
			iVar7 = 4;
			iVar1 = 420;
			iVar1 = system::round((system::to_float(iVar1) * Global_262145.f_2453[10]));
			break;
		
		case 12:
			iVar6 = 2;
			iVar7 = 5;
			iVar1 = 0;
			break;
		
		case 13:
			iVar6 = 3;
			iVar7 = 0;
			iVar1 = 190;
			iVar1 = system::round((system::to_float(iVar1) * Global_262145.f_2453[11]));
			break;
		
		case 14:
			iVar6 = 3;
			iVar7 = 1;
			iVar1 = 185;
			iVar1 = system::round((system::to_float(iVar1) * Global_262145.f_2453[12]));
			break;
		
		case 15:
			iVar6 = 3;
			iVar7 = 2;
			iVar1 = 180;
			iVar1 = system::round((system::to_float(iVar1) * Global_262145.f_2453[13]));
			break;
		
		case 16:
			iVar6 = 3;
			iVar7 = 3;
			iVar1 = 175;
			iVar1 = system::round((system::to_float(iVar1) * Global_262145.f_2453[14]));
			break;
		
		case 17:
			iVar6 = 3;
			iVar7 = 4;
			iVar1 = 170;
			iVar1 = system::round((system::to_float(iVar1) * Global_262145.f_2453[15]));
			break;
		
		case 18:
			iVar6 = 4;
			iVar7 = 0;
			iVar1 = 295;
			iVar1 = system::round((system::to_float(iVar1) * Global_262145.f_2453[16]));
			break;
		
		case 19:
			iVar6 = 4;
			iVar7 = 1;
			iVar1 = 290;
			iVar1 = system::round((system::to_float(iVar1) * Global_262145.f_2453[17]));
			break;
		
		case 20:
			iVar6 = 4;
			iVar7 = 2;
			iVar1 = 285;
			iVar1 = system::round((system::to_float(iVar1) * Global_262145.f_2453[18]));
			break;
		
		case 21:
			iVar6 = 4;
			iVar7 = 3;
			iVar1 = 280;
			iVar1 = system::round((system::to_float(iVar1) * Global_262145.f_2453[19]));
			break;
		
		case 22:
			iVar6 = 4;
			iVar7 = 4;
			iVar1 = 275;
			iVar1 = system::round((system::to_float(iVar1) * Global_262145.f_2453[20]));
			break;
		
		case 23:
			iVar6 = 4;
			iVar7 = 5;
			iVar1 = 0;
			break;
		
		case 24:
			iVar6 = 5;
			iVar7 = 0;
			iVar1 = 2000;
			iVar1 = system::round((system::to_float(iVar1) * Global_262145.f_2453[21]));
			break;
		
		case 25:
			iVar6 = 5;
			iVar7 = 1;
			iVar1 = 1995;
			iVar1 = system::round((system::to_float(iVar1) * Global_262145.f_2453[22]));
			break;
		
		case 26:
			iVar6 = 5;
			iVar7 = 2;
			iVar1 = 1990;
			iVar1 = system::round((system::to_float(iVar1) * Global_262145.f_2453[23]));
			break;
		
		case 27:
			iVar6 = 5;
			iVar7 = 3;
			iVar1 = 1985;
			iVar1 = system::round((system::to_float(iVar1) * Global_262145.f_2453[24]));
			break;
		
		case 28:
			iVar6 = 5;
			iVar7 = 4;
			iVar1 = 1980;
			iVar1 = system::round((system::to_float(iVar1) * Global_262145.f_2453[25]));
			break;
		
		case 29:
			iVar6 = 5;
			iVar7 = 5;
			iVar1 = 0;
			break;
		
		case 30:
			iVar6 = 6;
			iVar7 = 0;
			iVar1 = 1150;
			iVar1 = system::round((system::to_float(iVar1) * Global_262145.f_2453[26]));
			break;
		
		case 31:
			iVar6 = 6;
			iVar7 = 1;
			iVar1 = 1145;
			iVar1 = system::round((system::to_float(iVar1) * Global_262145.f_2453[27]));
			break;
		
		case 32:
			iVar6 = 6;
			iVar7 = 2;
			iVar1 = 1140;
			iVar1 = system::round((system::to_float(iVar1) * Global_262145.f_2453[28]));
			break;
		
		case 33:
			iVar6 = 6;
			iVar7 = 3;
			iVar1 = 1135;
			iVar1 = system::round((system::to_float(iVar1) * Global_262145.f_2453[29]));
			break;
		
		case 34:
			iVar6 = 6;
			iVar7 = 4;
			iVar1 = 1130;
			iVar1 = system::round((system::to_float(iVar1) * Global_262145.f_2453[30]));
			break;
		
		case 35:
			iVar6 = 7;
			iVar7 = 0;
			iVar1 = 550;
			iVar1 = system::round((system::to_float(iVar1) * Global_262145.f_2453[31]));
			break;
		
		case 36:
			iVar6 = 7;
			iVar7 = 1;
			iVar1 = 545;
			iVar1 = system::round((system::to_float(iVar1) * Global_262145.f_2453[32]));
			break;
		
		case 37:
			iVar6 = 7;
			iVar7 = 2;
			iVar1 = 540;
			iVar1 = system::round((system::to_float(iVar1) * Global_262145.f_2453[33]));
			break;
		
		case 38:
			iVar6 = 7;
			iVar7 = 3;
			iVar1 = 535;
			iVar1 = system::round((system::to_float(iVar1) * Global_262145.f_2453[34]));
			break;
		
		case 39:
			iVar6 = 7;
			iVar7 = 4;
			iVar1 = 530;
			iVar1 = system::round((system::to_float(iVar1) * Global_262145.f_2453[35]));
			break;
		
		case 40:
			iVar6 = 7;
			iVar7 = 5;
			iVar1 = 0;
			break;
		
		case 41:
			iVar6 = 8;
			iVar7 = 0;
			iVar1 = 580;
			iVar1 = system::round((system::to_float(iVar1) * Global_262145.f_2453[36]));
			break;
		
		case 42:
			iVar6 = 8;
			iVar7 = 1;
			iVar1 = 575;
			iVar1 = system::round((system::to_float(iVar1) * Global_262145.f_2453[37]));
			break;
		
		case 43:
			iVar6 = 8;
			iVar7 = 2;
			iVar1 = 570;
			iVar1 = system::round((system::to_float(iVar1) * Global_262145.f_2453[38]));
			break;
		
		case 44:
			iVar6 = 8;
			iVar7 = 3;
			iVar1 = 565;
			iVar1 = system::round((system::to_float(iVar1) * Global_262145.f_2453[39]));
			break;
		
		case 45:
			iVar6 = 8;
			iVar7 = 4;
			iVar1 = 560;
			iVar1 = system::round((system::to_float(iVar1) * Global_262145.f_2453[40]));
			break;
		
		case 46:
			iVar6 = 8;
			iVar7 = 5;
			iVar1 = 0;
			break;
		
		case 47:
			iVar6 = 9;
			iVar7 = 0;
			iVar1 = 1100;
			iVar1 = system::round((system::to_float(iVar1) * Global_262145.f_2453[41]));
			break;
		
		case 48:
			iVar6 = 9;
			iVar7 = 1;
			iVar1 = 1095;
			iVar1 = system::round((system::to_float(iVar1) * Global_262145.f_2453[42]));
			break;
		
		case 49:
			iVar6 = 9;
			iVar7 = 2;
			iVar1 = 1090;
			iVar1 = system::round((system::to_float(iVar1) * Global_262145.f_2453[43]));
			break;
		
		case 50:
			iVar6 = 9;
			iVar7 = 3;
			iVar1 = 1085;
			iVar1 = system::round((system::to_float(iVar1) * Global_262145.f_2453[44]));
			break;
		
		case 51:
			iVar6 = 9;
			iVar7 = 4;
			iVar1 = 1080;
			iVar1 = system::round((system::to_float(iVar1) * Global_262145.f_2453[45]));
			break;
		
		case 52:
			iVar6 = 9;
			iVar7 = 5;
			iVar1 = 0;
			break;
		
		case 53:
			iVar6 = 10;
			iVar7 = 0;
			iVar1 = 520;
			iVar1 = system::round((system::to_float(iVar1) * Global_262145.f_2453[46]));
			break;
		
		case 54:
			iVar6 = 10;
			iVar7 = 1;
			iVar1 = 515;
			iVar1 = system::round((system::to_float(iVar1) * Global_262145.f_2453[47]));
			break;
		
		case 55:
			iVar6 = 10;
			iVar7 = 2;
			iVar1 = 510;
			iVar1 = system::round((system::to_float(iVar1) * Global_262145.f_2453[48]));
			break;
		
		case 56:
			iVar6 = 10;
			iVar7 = 3;
			iVar1 = 505;
			iVar1 = system::round((system::to_float(iVar1) * Global_262145.f_2453[49]));
			break;
		
		case 57:
			iVar6 = 10;
			iVar7 = 4;
			iVar1 = 500;
			iVar1 = system::round((system::to_float(iVar1) * Global_262145.f_2453[50]));
			break;
		
		case 58:
			iVar6 = 10;
			iVar7 = 5;
			iVar1 = 0;
			break;
		
		case 59:
			iVar6 = 10;
			iVar7 = 6;
			iVar1 = 0;
			break;
		
		case 60:
			iVar6 = 11;
			iVar7 = 0;
			iVar1 = 395;
			iVar1 = system::round((system::to_float(iVar1) * Global_262145.f_2453[51]));
			break;
		
		case 61:
			iVar6 = 11;
			iVar7 = 1;
			iVar1 = 390;
			iVar1 = system::round((system::to_float(iVar1) * Global_262145.f_2453[52]));
			break;
		
		case 62:
			iVar6 = 11;
			iVar7 = 2;
			iVar1 = 385;
			iVar1 = system::round((system::to_float(iVar1) * Global_262145.f_2453[53]));
			break;
		
		case 63:
			iVar6 = 11;
			iVar7 = 3;
			iVar1 = 380;
			iVar1 = system::round((system::to_float(iVar1) * Global_262145.f_2453[54]));
			break;
		
		case 64:
			iVar6 = 11;
			iVar7 = 4;
			iVar1 = 375;
			iVar1 = system::round((system::to_float(iVar1) * Global_262145.f_2453[55]));
			break;
		
		case 65:
			iVar6 = 11;
			iVar7 = 5;
			iVar1 = 0;
			break;
		
		case 66:
			iVar6 = 11;
			iVar7 = 6;
			iVar1 = 0;
			break;
		
		case 67:
			iVar6 = 12;
			iVar7 = 0;
			iVar1 = 1050;
			iVar1 = system::round((system::to_float(iVar1) * Global_262145.f_2453[56]));
			break;
		
		case 68:
			iVar6 = 12;
			iVar7 = 1;
			iVar1 = 1045;
			iVar1 = system::round((system::to_float(iVar1) * Global_262145.f_2453[57]));
			break;
		
		case 69:
			iVar6 = 12;
			iVar7 = 2;
			iVar1 = 1040;
			iVar1 = system::round((system::to_float(iVar1) * Global_262145.f_2453[58]));
			break;
		
		case 70:
			iVar6 = 12;
			iVar7 = 3;
			iVar1 = 1035;
			iVar1 = system::round((system::to_float(iVar1) * Global_262145.f_2453[59]));
			break;
		
		case 71:
			iVar6 = 12;
			iVar7 = 4;
			iVar1 = 1030;
			iVar1 = system::round((system::to_float(iVar1) * Global_262145.f_2453[60]));
			break;
		
		case 72:
			iVar6 = 12;
			iVar7 = 5;
			iVar1 = 0;
			break;
		
		case 73:
			iVar6 = 13;
			iVar7 = 0;
			iVar1 = 1200;
			iVar1 = system::round((system::to_float(iVar1) * Global_262145.f_2453[61]));
			break;
		
		case 74:
			iVar6 = 13;
			iVar7 = 1;
			iVar1 = 1195;
			iVar1 = system::round((system::to_float(iVar1) * Global_262145.f_2453[62]));
			break;
		
		case 75:
			iVar6 = 13;
			iVar7 = 2;
			iVar1 = 1190;
			iVar1 = system::round((system::to_float(iVar1) * Global_262145.f_2453[63]));
			break;
		
		case 76:
			iVar6 = 13;
			iVar7 = 3;
			iVar1 = 1185;
			iVar1 = system::round((system::to_float(iVar1) * Global_262145.f_2453[64]));
			break;
		
		case 77:
			iVar6 = 13;
			iVar7 = 4;
			iVar1 = 1180;
			iVar1 = system::round((system::to_float(iVar1) * Global_262145.f_2453[65]));
			break;
		
		case 78:
			iVar6 = 13;
			iVar7 = 5;
			iVar1 = 0;
			break;
		
		case 79:
			iVar6 = 14;
			iVar7 = 0;
			iVar1 = 475;
			iVar1 = system::round((system::to_float(iVar1) * Global_262145.f_2453[66]));
			break;
		
		case 80:
			iVar6 = 14;
			iVar7 = 1;
			iVar1 = 470;
			iVar1 = system::round((system::to_float(iVar1) * Global_262145.f_2453[67]));
			break;
		
		case 81:
			iVar6 = 14;
			iVar7 = 2;
			iVar1 = 465;
			iVar1 = system::round((system::to_float(iVar1) * Global_262145.f_2453[68]));
			break;
		
		case 82:
			iVar6 = 14;
			iVar7 = 3;
			iVar1 = 460;
			iVar1 = system::round((system::to_float(iVar1) * Global_262145.f_2453[69]));
			break;
		
		case 83:
			iVar6 = 14;
			iVar7 = 4;
			iVar1 = 455;
			iVar1 = system::round((system::to_float(iVar1) * Global_262145.f_2453[70]));
			break;
		
		case 84:
			iVar6 = 14;
			iVar7 = 5;
			iVar1 = 0;
			break;
		
		case 85:
			iVar6 = 15;
			iVar7 = 0;
			iVar1 = 950;
			iVar1 = system::round((system::to_float(iVar1) * Global_262145.f_2453[71]));
			break;
		
		case 86:
			iVar6 = 15;
			iVar7 = 1;
			iVar1 = 945;
			iVar1 = system::round((system::to_float(iVar1) * Global_262145.f_2453[72]));
			break;
		
		case 87:
			iVar6 = 15;
			iVar7 = 2;
			iVar1 = 940;
			iVar1 = system::round((system::to_float(iVar1) * Global_262145.f_2453[73]));
			break;
		
		case 88:
			iVar6 = 15;
			iVar7 = 3;
			iVar1 = 935;
			iVar1 = system::round((system::to_float(iVar1) * Global_262145.f_2453[74]));
			break;
		
		case 89:
			iVar6 = 15;
			iVar7 = 4;
			iVar1 = 930;
			iVar1 = system::round((system::to_float(iVar1) * Global_262145.f_2453[75]));
			break;
		
		case 90:
			iVar6 = 15;
			iVar7 = 5;
			iVar1 = 0;
			break;
		
		case 91:
			iVar6 = 15;
			iVar7 = 6;
			iVar1 = 0;
			break;
		
		default:
			Global_69518[0 /*14*/].f_5 = 4;
			func_203(iVar10, iParam0, 92);
			return;
			break;
	}
	StringCopy(&Var2, "H_FMF_", 16);
	StringIntConCat(&Var2, iVar6, 16);
	StringConCat(&Var2, "_", 16);
	StringIntConCat(&Var2, iVar7, 16);
	func_195(&(Global_69518[0 /*14*/]), iVar10, iParam0, &Var2, iVar6, iVar7, iVar1, iVar0, iVar8, iVar9, 0);
}

void func_217(int iParam0, int iParam1)//Position - 0x3757B
{
	switch (iParam0)
	{
		case 2:
			func_232(iParam1);
			break;
		
		case 11:
			func_231(iParam1);
			break;
		
		case 8:
			func_230(iParam1);
			break;
		
		case 9:
			func_229(iParam1);
			break;
		
		case 3:
			func_228(iParam1);
			break;
		
		case 4:
			func_227(iParam1);
			break;
		
		case 6:
			func_226(iParam1);
			break;
		
		case 1:
			func_225(iParam1);
			break;
		
		case 7:
			func_224(iParam1);
			break;
		
		case 10:
			func_223(iParam1);
			break;
		
		case 14:
			func_222(iParam1);
			break;
		
		case 12:
			func_221(iParam1);
			break;
		
		case 5:
			func_220(iParam1);
			break;
		
		case 0:
			func_219(iParam1);
			break;
		
		case 13:
			func_218(iParam1);
			break;
	}
}

void func_218(int iParam0)//Position - 0x3766B
{
	int iVar0;
	int iVar1;
	char* sVar2;
	int iVar6;
	int iVar7;
	int iVar8;
	int iVar9;
	int iVar10;
	
	iVar0 = false;
	iVar1 = 10;
	iVar6 = 0;
	iVar7 = 0;
	iVar8 = -1;
	iVar9 = 2;
	iVar10 = 13;
	switch (iParam0)
	{
		case 31:
			iVar6 = 0;
			iVar7 = 0;
			break;
		
		case 0:
			iVar6 = 0;
			iVar7 = 0;
			break;
		
		case 1:
			iVar6 = 0;
			iVar7 = 0;
			break;
		
		case 2:
			iVar6 = 0;
			iVar7 = 0;
			break;
		
		case 3:
			iVar6 = 0;
			iVar7 = 0;
			break;
		
		case 4:
			iVar6 = 0;
			iVar7 = 0;
			break;
		
		case 5:
			iVar6 = 0;
			iVar7 = 0;
			break;
		
		case 6:
			iVar6 = 0;
			iVar7 = 0;
			break;
		
		case 7:
			iVar6 = 0;
			iVar7 = 0;
			break;
		
		case 8:
			iVar6 = 0;
			iVar7 = 0;
			break;
		
		case 9:
			iVar6 = 0;
			iVar7 = 0;
			break;
		
		case 10:
			iVar6 = 0;
			iVar7 = 0;
			break;
		
		case 11:
			iVar6 = 0;
			iVar7 = 0;
			break;
		
		case 12:
			iVar6 = 0;
			iVar7 = 0;
			break;
		
		case 13:
			iVar6 = 0;
			iVar7 = 0;
			break;
		
		case 14:
			iVar6 = 0;
			iVar7 = 0;
			break;
		
		case 15:
			iVar6 = 0;
			iVar7 = 0;
			break;
		
		case 16:
			iVar6 = 0;
			iVar7 = 0;
			break;
		
		case 17:
			iVar6 = 0;
			iVar7 = 0;
			break;
		
		case 18:
			iVar6 = 0;
			iVar7 = 0;
			break;
		
		case 19:
			iVar6 = 0;
			iVar7 = 0;
			break;
		
		case 20:
			iVar6 = 0;
			iVar7 = 0;
			break;
		
		case 21:
			iVar6 = 0;
			iVar7 = 0;
			break;
		
		case 22:
			iVar6 = 0;
			iVar7 = 0;
			break;
		
		case 23:
			iVar6 = 0;
			iVar7 = 0;
			break;
		
		case 24:
			iVar6 = 0;
			iVar7 = 0;
			break;
	}
	func_195(&(Global_69518[0 /*14*/]), iVar10, iParam0, &sVar2, iVar6, iVar7, iVar1, iVar0, iVar8, iVar9, 0);
}

void func_219(int iParam0)//Position - 0x37835
{
	int iVar0;
	
	iVar0 = 0;
	Global_69518[0 /*14*/].f_5 = 3;
	func_203(iVar0, iParam0, 0);
}

void func_220(int iParam0)//Position - 0x37853
{
	int iVar0;
	int iVar1;
	struct<2> Var2;
	int iVar6;
	int iVar7;
	int iVar8;
	int iVar9;
	int iVar10;
	
	iVar0 = false;
	iVar1 = 10;
	iVar6 = 0;
	iVar7 = 0;
	iVar8 = -1;
	iVar9 = 2;
	iVar10 = 5;
	switch (iParam0)
	{
		case 0:
			iVar6 = 0;
			iVar7 = 0;
			break;
		
		case 1:
			iVar6 = 1;
			iVar7 = 0;
			break;
		
		case 2:
			iVar6 = 2;
			iVar7 = 0;
			break;
		
		case 3:
			iVar6 = 3;
			iVar7 = 0;
			break;
		
		case 4:
			iVar6 = 4;
			iVar7 = 0;
			break;
		
		case 5:
			iVar6 = 5;
			iVar7 = 0;
			break;
		
		case 6:
			iVar6 = 6;
			iVar7 = 0;
			break;
		
		case 7:
			iVar6 = 7;
			iVar7 = 0;
			break;
		
		case 8:
			iVar6 = 8;
			iVar7 = 0;
			break;
		
		default:
			Global_69518[0 /*14*/].f_5 = 3;
			func_203(iVar10, iParam0, 9);
			return;
			break;
	}
	StringCopy(&Var2, "HA_FMM_", 16);
	StringIntConCat(&Var2, iVar6, 16);
	StringConCat(&Var2, "_", 16);
	StringIntConCat(&Var2, iVar7, 16);
	func_195(&(Global_69518[0 /*14*/]), iVar10, iParam0, &Var2, iVar6, iVar7, iVar1, iVar0, iVar8, iVar9, 0);
}

void func_221(int iParam0)//Position - 0x37954
{
	int iVar0;
	int iVar1;
	struct<2> Var2;
	int iVar6;
	int iVar7;
	int iVar8;
	int iVar9;
	int iVar10;
	
	iVar0 = false;
	iVar1 = 10;
	iVar6 = 0;
	iVar7 = 0;
	iVar8 = -1;
	iVar9 = 2;
	iVar10 = 12;
	switch (iParam0)
	{
		case 0:
			iVar6 = 0;
			iVar7 = 0;
			iVar0 = true;
			break;
		
		case 1:
			iVar6 = 0;
			iVar7 = 0;
			StringCopy(&Var2, "O_FMM_S1", 16);
			break;
		
		case 2:
			iVar6 = 0;
			iVar7 = 0;
			StringCopy(&Var2, "O_FMM_S2", 16);
			break;
		
		case 3:
			iVar6 = 0;
			iVar7 = 0;
			StringCopy(&Var2, "O_FMM_S3", 16);
			break;
		
		case 4:
			iVar6 = 0;
			iVar7 = 0;
			StringCopy(&Var2, "O_FMM_S4", 16);
			break;
		
		case 5:
			iVar6 = 0;
			iVar7 = 0;
			StringCopy(&Var2, "O_FMM_S5", 16);
			break;
		
		case 6:
			iVar6 = 0;
			iVar7 = 0;
			StringCopy(&Var2, "O_FMM_S6", 16);
			break;
		
		case 7:
			iVar6 = 0;
			iVar7 = 0;
			StringCopy(&Var2, "O_FMM_S7", 16);
			break;
		
		case 8:
			iVar6 = 0;
			iVar7 = 0;
			StringCopy(&Var2, "O_FMM_S8", 16);
			break;
		
		case 9:
			iVar6 = 0;
			iVar7 = 0;
			StringCopy(&Var2, "O_FMM_S9", 16);
			break;
		
		case 10:
			iVar6 = 0;
			iVar7 = 0;
			StringCopy(&Var2, "O_FMM_P1", 16);
			break;
		
		case 11:
			iVar6 = 0;
			iVar7 = 0;
			StringCopy(&Var2, "O_FMM_P2", 16);
			break;
		
		case 12:
			iVar6 = 0;
			iVar7 = 0;
			StringCopy(&Var2, "O_FMM_P3", 16);
			break;
		
		case 13:
			iVar6 = 0;
			iVar7 = 0;
			StringCopy(&Var2, "O_FMM_P4", 16);
			break;
		
		case 14:
			iVar6 = 0;
			iVar7 = 0;
			StringCopy(&Var2, "O_FMM_P5", 16);
			break;
		
		case 15:
			iVar6 = 0;
			iVar7 = 0;
			StringCopy(&Var2, "O_FMM_P6", 16);
			break;
		
		case 16:
			iVar6 = 0;
			iVar7 = 0;
			StringCopy(&Var2, "O_FMM_P7", 16);
			break;
		
		case 17:
			iVar6 = 0;
			iVar7 = 0;
			StringCopy(&Var2, "O_FMM_P8", 16);
			break;
		
		case 18:
			iVar6 = 0;
			iVar7 = 0;
			StringCopy(&Var2, "O_FMM_B1", 16);
			break;
		
		case 19:
			iVar6 = 0;
			iVar7 = 0;
			StringCopy(&Var2, "O_FMM_B2", 16);
			break;
		
		case 20:
			iVar6 = 0;
			iVar7 = 0;
			StringCopy(&Var2, "O_FMM_B3", 16);
			break;
		
		case 21:
			iVar6 = 0;
			iVar7 = 0;
			StringCopy(&Var2, "O_FMM_B4", 16);
			break;
		
		case 22:
			iVar6 = 0;
			iVar7 = 0;
			StringCopy(&Var2, "O_FMM_B5", 16);
			break;
		
		case 23:
			iVar6 = 0;
			iVar7 = 0;
			StringCopy(&Var2, "O_FMM_B6", 16);
			break;
		
		case 24:
			iVar6 = 0;
			iVar7 = 0;
			StringCopy(&Var2, "O_FMM_B7", 16);
			break;
		
		case 25:
			iVar6 = 0;
			iVar7 = 0;
			StringCopy(&Var2, "O_FMM_B8", 16);
			break;
		
		default:
			Global_69518[0 /*14*/].f_5 = 3;
			func_203(iVar10, iParam0, 26);
			return;
			break;
	}
	func_195(&(Global_69518[0 /*14*/]), iVar10, iParam0, &Var2, iVar6, iVar7, iVar1, iVar0, iVar8, iVar9, 0);
}

void func_222(int iParam0)//Position - 0x37C03
{
	int iVar0;
	int iVar1;
	struct<2> Var2;
	int iVar6;
	int iVar7;
	int iVar8;
	int iVar9;
	int iVar10;
	int iVar11;
	int iVar12;
	int iVar13;
	int iVar14;
	int iVar15;
	
	iVar0 = false;
	iVar1 = 10;
	iVar6 = 0;
	iVar7 = 0;
	iVar8 = -1;
	iVar9 = 2;
	iVar10 = 14;
	iVar11 = 0;
	switch (iParam0)
	{
		case 0:
			iVar6 = -1;
			iVar7 = 0;
			iVar1 = 0;
			iVar8 = 0;
			break;
		
		case 1:
			iVar6 = -1;
			iVar7 = 0;
			iVar1 = 0;
			iVar8 = 1;
			break;
		
		case 2:
			iVar6 = -1;
			iVar7 = 0;
			iVar1 = 0;
			iVar8 = 2;
			break;
		
		case 3:
			iVar6 = -1;
			iVar7 = 0;
			iVar1 = 0;
			iVar8 = 3;
			break;
		
		case 4:
			iVar6 = -1;
			iVar7 = 0;
			iVar1 = 0;
			iVar8 = 4;
			break;
		
		case 5:
			iVar6 = -1;
			iVar7 = 0;
			iVar1 = 0;
			iVar8 = 5;
			break;
		
		case 6:
			iVar6 = -1;
			iVar7 = 0;
			iVar1 = 0;
			iVar8 = 6;
			break;
		
		case 7:
			iVar6 = -1;
			iVar7 = 0;
			iVar1 = 0;
			iVar8 = 7;
			break;
		
		case 8:
			iVar6 = -1;
			iVar7 = 0;
			iVar1 = 0;
			iVar8 = 8;
			break;
		
		case 10:
			StringCopy(&Var2, "HT_FMM_0_0", 16);
			iVar6 = 0;
			iVar7 = 0;
			iVar1 = 65;
			iVar8 = 0;
			iVar11 = 1;
			break;
		
		case 11:
			StringCopy(&Var2, "HT_FMM_0_1", 16);
			iVar6 = 0;
			iVar7 = 1;
			iVar1 = 65;
			iVar8 = 0;
			iVar11 = 1;
			break;
		
		case 12:
			StringCopy(&Var2, "HT_FMM_0_2", 16);
			iVar6 = 0;
			iVar7 = 2;
			iVar1 = 85;
			iVar8 = 0;
			iVar11 = 1;
			break;
		
		case 13:
			StringCopy(&Var2, "HT_FMM_0_3", 16);
			iVar6 = 0;
			iVar7 = 3;
			iVar1 = 75;
			iVar8 = 0;
			iVar11 = 1;
			break;
		
		case 14:
			StringCopy(&Var2, "HT_FMM_0_4", 16);
			iVar6 = 0;
			iVar7 = 4;
			iVar1 = 235;
			iVar8 = 0;
			iVar11 = 1;
			break;
		
		case 15:
			StringCopy(&Var2, "HT_FMM_0_5", 16);
			iVar6 = 0;
			iVar7 = 5;
			iVar1 = 80;
			iVar8 = 0;
			iVar11 = 1;
			break;
		
		case 16:
			StringCopy(&Var2, "HT_FMM_0_6", 16);
			iVar6 = 0;
			iVar7 = 6;
			iVar1 = 85;
			iVar8 = 0;
			iVar11 = 1;
			break;
		
		case 17:
			StringCopy(&Var2, "HT_FMM_0_7", 16);
			iVar6 = 0;
			iVar7 = 7;
			iVar1 = 90;
			iVar8 = 0;
			iVar11 = 1;
			break;
	}
	switch (iParam0)
	{
		case 18:
			StringCopy(&Var2, "HT_FMM_1_0", 16);
			iVar6 = 1;
			iVar7 = 0;
			iVar8 = 0;
			break;
		
		case 19:
			StringCopy(&Var2, "HT_FMM_2_0", 16);
			iVar6 = 2;
			iVar7 = 0;
			iVar1 = 35;
			iVar8 = 0;
			iVar11 = 1;
			break;
		
		case 20:
			StringCopy(&Var2, "HT_FMM_2_1", 16);
			iVar6 = 2;
			iVar7 = 1;
			iVar1 = 30;
			iVar8 = 0;
			iVar11 = 1;
			break;
		
		case 21:
			StringCopy(&Var2, "HT_FMM_2_2", 16);
			iVar6 = 2;
			iVar7 = 2;
			iVar1 = 35;
			iVar8 = 0;
			iVar11 = 1;
			break;
		
		case 22:
			StringCopy(&Var2, "HT_FMM_2_3", 16);
			iVar6 = 2;
			iVar7 = 3;
			iVar1 = 320;
			iVar8 = 0;
			iVar11 = 1;
			break;
		
		case 23:
			StringCopy(&Var2, "HT_FMM_2_4", 16);
			iVar6 = 2;
			iVar7 = 4;
			iVar1 = 185;
			iVar8 = 0;
			iVar11 = 1;
			break;
		
		case 24:
			StringCopy(&Var2, "HT_FMM_2_5", 16);
			iVar6 = 2;
			iVar7 = 5;
			iVar1 = 245;
			iVar8 = 0;
			iVar11 = 1;
			break;
		
		case 25:
			StringCopy(&Var2, "HT_FMM_2_6", 16);
			iVar6 = 2;
			iVar7 = 6;
			iVar1 = 35;
			iVar8 = 0;
			iVar11 = 1;
			break;
		
		case 26:
			StringCopy(&Var2, "HT_FMM_2_7", 16);
			iVar6 = 2;
			iVar7 = 7;
			iVar1 = 40;
			iVar8 = 0;
			iVar11 = 1;
			break;
		
		case 27:
			StringCopy(&Var2, "HT_FMM_3_0", 16);
			iVar6 = 3;
			iVar7 = 0;
			iVar1 = 0;
			iVar8 = 0;
			iVar11 = 1;
			iVar0 = true;
			break;
		
		case 28:
			StringCopy(&Var2, "HT_FMM_3_1", 16);
			iVar6 = 3;
			iVar7 = 1;
			iVar1 = 60;
			iVar8 = 0;
			iVar11 = 1;
			break;
		
		case 29:
			StringCopy(&Var2, "HT_FMM_3_2", 16);
			iVar6 = 3;
			iVar7 = 2;
			iVar1 = 65;
			iVar8 = 0;
			iVar11 = 1;
			break;
		
		case 30:
			StringCopy(&Var2, "HT_FMM_3_3", 16);
			iVar6 = 3;
			iVar7 = 3;
			iVar1 = 0;
			iVar8 = 0;
			iVar11 = 1;
			iVar0 = true;
			break;
		
		case 31:
			StringCopy(&Var2, "HT_FMM_3_4", 16);
			iVar6 = 3;
			iVar7 = 4;
			iVar1 = 0;
			iVar8 = 0;
			iVar11 = 1;
			iVar0 = true;
			break;
		
		case 32:
			StringCopy(&Var2, "HT_FMM_3_5", 16);
			iVar6 = 3;
			iVar7 = 5;
			iVar1 = 0;
			iVar8 = 0;
			iVar11 = 1;
			iVar0 = true;
			break;
		
		case 33:
			StringCopy(&Var2, "HT_FMM_3_6", 16);
			iVar6 = 3;
			iVar7 = 6;
			iVar1 = 0;
			iVar8 = 0;
			iVar11 = 1;
			iVar0 = true;
			break;
		
		case 34:
			StringCopy(&Var2, "HT_FMM_3_7", 16);
			iVar6 = 3;
			iVar7 = 7;
			iVar1 = 0;
			iVar8 = 0;
			iVar11 = 1;
			iVar0 = true;
			break;
		
		case 35:
			StringCopy(&Var2, "HT_FMM_4_0", 16);
			iVar6 = 4;
			iVar7 = 0;
			iVar1 = 415;
			iVar8 = 0;
			iVar11 = 1;
			break;
		
		case 36:
			StringCopy(&Var2, "HT_FMM_4_1", 16);
			iVar6 = 4;
			iVar7 = 1;
			iVar1 = 315;
			iVar8 = 0;
			iVar11 = 1;
			break;
		
		case 37:
			StringCopy(&Var2, "HT_FMM_4_2", 16);
			iVar6 = 4;
			iVar7 = 2;
			iVar1 = 0;
			iVar8 = 0;
			iVar11 = 1;
			iVar0 = true;
			break;
		
		case 38:
			StringCopy(&Var2, "HT_FMM_4_3", 16);
			iVar6 = 4;
			iVar7 = 3;
			iVar1 = 0;
			iVar8 = 0;
			iVar11 = 1;
			iVar0 = true;
			break;
		
		case 39:
			StringCopy(&Var2, "HT_FMM_4_4", 16);
			iVar6 = 4;
			iVar7 = 4;
			iVar1 = 0;
			iVar8 = 0;
			iVar11 = 1;
			iVar0 = true;
			break;
		
		case 40:
			StringCopy(&Var2, "HT_FMM_4_5", 16);
			iVar6 = 4;
			iVar7 = 5;
			iVar1 = 0;
			iVar8 = 0;
			iVar11 = 1;
			iVar0 = true;
			break;
		
		case 41:
			StringCopy(&Var2, "HT_FMM_4_6", 16);
			iVar6 = 4;
			iVar7 = 6;
			iVar1 = 0;
			iVar8 = 0;
			iVar11 = 1;
			iVar0 = true;
			break;
		
		case 42:
			StringCopy(&Var2, "HT_FMM_4_7", 16);
			iVar6 = 4;
			iVar7 = 7;
			iVar1 = 0;
			iVar8 = 0;
			iVar11 = 1;
			iVar0 = true;
			break;
		
		case 43:
			StringCopy(&Var2, "HT_FMM_5_0", 16);
			iVar6 = 5;
			iVar7 = 0;
			iVar1 = 75;
			iVar8 = 0;
			iVar11 = 1;
			break;
		
		case 44:
			StringCopy(&Var2, "HT_FMM_5_1", 16);
			iVar6 = 5;
			iVar7 = 1;
			iVar1 = 60;
			iVar8 = 0;
			iVar11 = 1;
			break;
		
		case 45:
			StringCopy(&Var2, "HT_FMM_5_2", 16);
			iVar6 = 5;
			iVar7 = 2;
			iVar1 = 0;
			iVar8 = 0;
			iVar11 = 1;
			iVar0 = true;
			break;
		
		case 46:
			StringCopy(&Var2, "HT_FMM_5_3", 16);
			iVar6 = 5;
			iVar7 = 3;
			iVar1 = 0;
			iVar8 = 0;
			iVar11 = 1;
			iVar0 = true;
			break;
		
		case 47:
			StringCopy(&Var2, "HT_FMM_5_4", 16);
			iVar6 = 5;
			iVar7 = 4;
			iVar1 = 0;
			iVar8 = 0;
			iVar11 = 1;
			iVar0 = true;
			break;
		
		case 48:
			StringCopy(&Var2, "HT_FMM_5_5", 16);
			iVar6 = 5;
			iVar7 = 5;
			iVar1 = 0;
			iVar8 = 0;
			iVar11 = 1;
			iVar0 = true;
			break;
		
		case 49:
			StringCopy(&Var2, "HT_FMM_5_6", 16);
			iVar6 = 5;
			iVar7 = 6;
			iVar1 = 0;
			iVar8 = 0;
			iVar11 = 1;
			iVar0 = true;
			break;
		
		case 50:
			StringCopy(&Var2, "HT_FMM_5_7", 16);
			iVar6 = 5;
			iVar7 = 7;
			iVar1 = 0;
			iVar8 = 0;
			iVar11 = 1;
			iVar0 = true;
			break;
		
		case 51:
			StringCopy(&Var2, "HT_FMM_6_0", 16);
			iVar6 = 6;
			iVar7 = 0;
			iVar1 = 160;
			iVar8 = 0;
			iVar11 = 1;
			break;
		
		case 52:
			StringCopy(&Var2, "HT_FMM_6_1", 16);
			iVar6 = 6;
			iVar7 = 1;
			iVar1 = 265;
			iVar8 = 0;
			iVar11 = 1;
			break;
		
		case 53:
			StringCopy(&Var2, "HT_FMM_6_2", 16);
			iVar6 = 6;
			iVar7 = 2;
			iVar1 = 170;
			iVar8 = 0;
			iVar11 = 1;
			break;
		
		case 54:
			StringCopy(&Var2, "HT_FMM_6_3", 16);
			iVar6 = 6;
			iVar7 = 3;
			iVar1 = 135;
			iVar8 = 0;
			iVar11 = 1;
			break;
		
		case 55:
			StringCopy(&Var2, "HT_FMM_6_4", 16);
			iVar6 = 6;
			iVar7 = 4;
			iVar1 = 570;
			iVar8 = 0;
			iVar11 = 1;
			break;
		
		case 56:
			StringCopy(&Var2, "HT_FMM_6_5", 16);
			iVar6 = 6;
			iVar7 = 5;
			iVar1 = 560;
			iVar8 = 0;
			iVar11 = 1;
			break;
		
		case 57:
			StringCopy(&Var2, "HT_FMM_6_6", 16);
			iVar6 = 6;
			iVar7 = 6;
			iVar1 = 140;
			iVar8 = 0;
			iVar11 = 1;
			break;
		
		case 58:
			StringCopy(&Var2, "HT_FMM_6_7", 16);
			iVar6 = 6;
			iVar7 = 7;
			iVar1 = 130;
			iVar8 = 0;
			iVar11 = 1;
			break;
		
		case 59:
			StringCopy(&Var2, "HT_FMM_7_0", 16);
			iVar6 = 7;
			iVar7 = 0;
			iVar1 = 260;
			iVar8 = 0;
			iVar11 = 1;
			break;
		
		case 60:
			StringCopy(&Var2, "HT_FMM_7_1", 16);
			iVar6 = 7;
			iVar7 = 1;
			iVar1 = 215;
			iVar8 = 0;
			iVar11 = 1;
			break;
		
		case 61:
			StringCopy(&Var2, "HT_FMM_7_2", 16);
			iVar6 = 7;
			iVar7 = 2;
			iVar1 = 430;
			iVar8 = 0;
			iVar11 = 1;
			break;
		
		case 62:
			StringCopy(&Var2, "HT_FMM_7_3", 16);
			iVar6 = 7;
			iVar7 = 3;
			iVar1 = 160;
			iVar8 = 0;
			iVar11 = 1;
			break;
		
		case 63:
			StringCopy(&Var2, "HT_FMM_7_4", 16);
			iVar6 = 7;
			iVar7 = 4;
			iVar1 = 200;
			iVar8 = 0;
			iVar11 = 1;
			break;
		
		case 64:
			StringCopy(&Var2, "HT_FMM_7_5", 16);
			iVar6 = 7;
			iVar7 = 5;
			iVar1 = 155;
			iVar8 = 0;
			iVar11 = 1;
			break;
		
		case 65:
			StringCopy(&Var2, "HT_FMM_7_6", 16);
			iVar6 = 7;
			iVar7 = 6;
			iVar1 = 155;
			iVar8 = 0;
			iVar11 = 1;
			break;
		
		case 66:
			StringCopy(&Var2, "HT_FMM_7_7", 16);
			iVar6 = 7;
			iVar7 = 7;
			iVar1 = 165;
			iVar8 = 0;
			iVar11 = 1;
			break;
	}
	switch (iParam0)
	{
		case 67:
			StringCopy(&Var2, "HT_FMM_8_0", 16);
			iVar6 = 8;
			iVar7 = 0;
			iVar1 = 0;
			iVar8 = 0;
			iVar11 = 1;
			iVar0 = true;
			break;
		
		case 68:
			StringCopy(&Var2, "HT_FMM_8_1", 16);
			iVar6 = 8;
			iVar7 = 1;
			iVar1 = 0;
			iVar8 = 0;
			iVar11 = 1;
			iVar0 = true;
			break;
		
		case 69:
			StringCopy(&Var2, "HT_FMM_8_2", 16);
			iVar6 = 8;
			iVar7 = 2;
			iVar1 = 0;
			iVar8 = 0;
			iVar11 = 1;
			iVar0 = true;
			break;
		
		case 70:
			StringCopy(&Var2, "HT_FMM_8_3", 16);
			iVar6 = 8;
			iVar7 = 3;
			iVar1 = 0;
			iVar8 = 0;
			iVar11 = 1;
			iVar0 = true;
			break;
		
		case 71:
			StringCopy(&Var2, "HT_FMM_8_4", 16);
			iVar6 = 8;
			iVar7 = 4;
			iVar1 = 0;
			iVar8 = 0;
			iVar11 = 1;
			iVar0 = true;
			break;
		
		case 72:
			StringCopy(&Var2, "HT_FMM_8_5", 16);
			iVar6 = 8;
			iVar7 = 5;
			iVar1 = 0;
			iVar8 = 0;
			iVar11 = 1;
			iVar0 = true;
			break;
		
		case 73:
			StringCopy(&Var2, "HT_FMM_8_6", 16);
			iVar6 = 8;
			iVar7 = 6;
			iVar1 = 0;
			iVar8 = 0;
			iVar11 = 1;
			iVar0 = true;
			break;
		
		case 74:
			StringCopy(&Var2, "HT_FMM_8_7", 16);
			iVar6 = 8;
			iVar7 = 7;
			iVar1 = 0;
			iVar8 = 0;
			iVar11 = 1;
			iVar0 = true;
			break;
		
		case 75:
			StringCopy(&Var2, "HT_FMM_9_0", 16);
			iVar6 = 9;
			iVar7 = 0;
			iVar1 = 0;
			iVar8 = 0;
			iVar11 = 1;
			iVar0 = true;
			break;
		
		case 76:
			StringCopy(&Var2, "HT_FMM_9_1", 16);
			iVar6 = 9;
			iVar7 = 1;
			iVar1 = 0;
			iVar8 = 0;
			iVar11 = 1;
			iVar0 = true;
			break;
		
		case 77:
			StringCopy(&Var2, "HT_FMM_9_2", 16);
			iVar6 = 9;
			iVar7 = 2;
			iVar1 = 0;
			iVar8 = 0;
			iVar11 = 1;
			iVar0 = true;
			break;
		
		case 78:
			StringCopy(&Var2, "HT_FMM_9_3", 16);
			iVar6 = 9;
			iVar7 = 3;
			iVar1 = 0;
			iVar8 = 0;
			iVar11 = 1;
			iVar0 = true;
			break;
		
		case 79:
			StringCopy(&Var2, "HT_FMM_9_4", 16);
			iVar6 = 9;
			iVar7 = 4;
			iVar1 = 0;
			iVar8 = 0;
			iVar11 = 1;
			iVar0 = true;
			break;
		
		case 80:
			StringCopy(&Var2, "HT_FMM_9_5", 16);
			iVar6 = 9;
			iVar7 = 5;
			iVar1 = 100;
			iVar8 = 0;
			iVar11 = 1;
			break;
		
		case 81:
			StringCopy(&Var2, "HT_FMM_9_6", 16);
			iVar6 = 9;
			iVar7 = 6;
			iVar1 = 0;
			iVar8 = 0;
			iVar11 = 1;
			iVar0 = true;
			break;
		
		case 82:
			StringCopy(&Var2, "HT_FMM_9_7", 16);
			iVar6 = 9;
			iVar7 = 7;
			iVar1 = 65;
			iVar8 = 0;
			iVar11 = 1;
			break;
		
		case 83:
			StringCopy(&Var2, "HT_FMM_10_0", 16);
			iVar6 = 10;
			iVar7 = 0;
			iVar1 = 0;
			iVar8 = 0;
			iVar11 = 1;
			iVar0 = true;
			break;
		
		case 84:
			StringCopy(&Var2, "HT_FMM_10_1", 16);
			iVar6 = 10;
			iVar7 = 1;
			iVar1 = 0;
			iVar8 = 0;
			iVar11 = 1;
			iVar0 = true;
			break;
		
		case 85:
			StringCopy(&Var2, "HT_FMM_10_2", 16);
			iVar6 = 10;
			iVar7 = 2;
			iVar1 = 0;
			iVar8 = 0;
			iVar11 = 1;
			iVar0 = true;
			break;
		
		case 86:
			StringCopy(&Var2, "HT_FMM_10_3", 16);
			iVar6 = 10;
			iVar7 = 3;
			iVar1 = 0;
			iVar8 = 0;
			iVar11 = 1;
			iVar0 = true;
			break;
		
		case 87:
			StringCopy(&Var2, "HT_FMM_10_4", 16);
			iVar6 = 10;
			iVar7 = 4;
			iVar1 = 0;
			iVar8 = 0;
			iVar11 = 1;
			iVar0 = true;
			break;
		
		case 88:
			StringCopy(&Var2, "HT_FMM_10_5", 16);
			iVar6 = 10;
			iVar7 = 5;
			iVar1 = 65;
			iVar8 = 0;
			iVar11 = 1;
			break;
		
		case 89:
			StringCopy(&Var2, "HT_FMM_10_6", 16);
			iVar6 = 10;
			iVar7 = 6;
			iVar1 = 0;
			iVar8 = 0;
			iVar11 = 1;
			iVar0 = true;
			break;
		
		case 90:
			StringCopy(&Var2, "HT_FMM_10_7", 16);
			iVar6 = 10;
			iVar7 = 7;
			iVar1 = 65;
			iVar8 = 0;
			iVar11 = 1;
			break;
		
		case 91:
			StringCopy(&Var2, "HT_FMM_11_0", 16);
			iVar6 = 11;
			iVar7 = 0;
			iVar1 = 0;
			iVar8 = 0;
			iVar11 = 1;
			iVar0 = true;
			break;
		
		case 92:
			StringCopy(&Var2, "HT_FMM_11_1", 16);
			iVar6 = 11;
			iVar7 = 1;
			iVar1 = 0;
			iVar8 = 0;
			iVar11 = 1;
			iVar0 = true;
			break;
		
		case 93:
			StringCopy(&Var2, "HT_FMM_11_2", 16);
			iVar6 = 11;
			iVar7 = 2;
			iVar1 = 0;
			iVar8 = 0;
			iVar11 = 1;
			iVar0 = true;
			break;
		
		case 94:
			StringCopy(&Var2, "HT_FMM_11_3", 16);
			iVar6 = 11;
			iVar7 = 3;
			iVar1 = 0;
			iVar8 = 0;
			iVar11 = 1;
			iVar0 = true;
			break;
		
		case 95:
			StringCopy(&Var2, "HT_FMM_11_4", 16);
			iVar6 = 11;
			iVar7 = 4;
			iVar1 = 0;
			iVar8 = 0;
			iVar11 = 1;
			iVar0 = true;
			break;
		
		case 96:
			StringCopy(&Var2, "HT_FMM_11_5", 16);
			iVar6 = 11;
			iVar7 = 5;
			iVar1 = 0;
			iVar8 = 0;
			iVar11 = 1;
			iVar0 = true;
			break;
		
		case 97:
			StringCopy(&Var2, "HT_FMM_11_6", 16);
			iVar6 = 11;
			iVar7 = 6;
			iVar1 = 0;
			iVar8 = 0;
			iVar11 = 1;
			iVar0 = true;
			break;
		
		case 98:
			StringCopy(&Var2, "HT_FMM_11_7", 16);
			iVar6 = 11;
			iVar7 = 7;
			iVar1 = 0;
			iVar8 = 0;
			iVar11 = 1;
			iVar0 = true;
			break;
		
		case 99:
			StringCopy(&Var2, "HT_FMM_12_0", 16);
			iVar6 = 12;
			iVar7 = 0;
			iVar1 = 1715;
			iVar8 = 0;
			iVar11 = 1;
			break;
		
		case 100:
			StringCopy(&Var2, "HT_FMM_12_1", 16);
			iVar6 = 12;
			iVar7 = 1;
			iVar1 = 3900;
			iVar8 = 0;
			iVar11 = 1;
			break;
		
		case 101:
			StringCopy(&Var2, "HT_FMM_12_2", 16);
			iVar6 = 12;
			iVar7 = 2;
			iVar1 = 1550;
			iVar8 = 0;
			iVar11 = 1;
			break;
		
		case 102:
			StringCopy(&Var2, "HT_FMM_12_3", 16);
			iVar6 = 12;
			iVar7 = 3;
			iVar1 = 0;
			iVar8 = 0;
			iVar11 = 1;
			iVar0 = true;
			break;
		
		case 103:
			StringCopy(&Var2, "HT_FMM_12_4", 16);
			iVar6 = 12;
			iVar7 = 4;
			iVar1 = 4250;
			iVar8 = 0;
			iVar11 = 1;
			break;
		
		case 104:
			StringCopy(&Var2, "HT_FMM_12_5", 16);
			iVar6 = 12;
			iVar7 = 5;
			iVar1 = 0;
			iVar8 = 0;
			iVar11 = 1;
			iVar0 = true;
			break;
		
		case 105:
			StringCopy(&Var2, "HT_FMM_12_6", 16);
			iVar6 = 12;
			iVar7 = 6;
			iVar1 = 4460;
			iVar8 = 0;
			iVar11 = 1;
			break;
		
		case 106:
			StringCopy(&Var2, "HT_FMM_12_7", 16);
			iVar6 = 12;
			iVar7 = 7;
			iVar1 = 4970;
			iVar8 = 0;
			iVar11 = 1;
			break;
		
		case 107:
			StringCopy(&Var2, "HT_FMM_13_0", 16);
			iVar6 = 13;
			iVar7 = 0;
			iVar1 = 290;
			iVar8 = 0;
			iVar11 = 1;
			break;
		
		case 108:
			StringCopy(&Var2, "HT_FMM_13_1", 16);
			iVar6 = 13;
			iVar7 = 1;
			iVar1 = 305;
			iVar8 = 0;
			iVar11 = 1;
			break;
		
		case 109:
			StringCopy(&Var2, "HT_FMM_13_2", 16);
			iVar6 = 13;
			iVar7 = 2;
			iVar1 = 4170;
			iVar8 = 0;
			iVar11 = 1;
			break;
		
		case 110:
			StringCopy(&Var2, "HT_FMM_13_3", 16);
			iVar6 = 13;
			iVar7 = 3;
			iVar1 = 335;
			iVar8 = 0;
			iVar11 = 1;
			break;
		
		case 111:
			StringCopy(&Var2, "HT_FMM_13_4", 16);
			iVar6 = 13;
			iVar7 = 4;
			iVar1 = 4940;
			iVar8 = 0;
			iVar11 = 1;
			break;
		
		case 112:
			StringCopy(&Var2, "HT_FMM_13_5", 16);
			iVar6 = 13;
			iVar7 = 5;
			iVar1 = 275;
			iVar8 = 0;
			iVar11 = 1;
			break;
		
		case 113:
			StringCopy(&Var2, "HT_FMM_13_6", 16);
			iVar6 = 13;
			iVar7 = 6;
			iVar1 = 5000;
			iVar8 = 0;
			iVar11 = 1;
			break;
		
		case 114:
			StringCopy(&Var2, "HT_FMM_13_7", 16);
			iVar6 = 13;
			iVar7 = 7;
			iVar1 = 3620;
			iVar8 = 0;
			iVar11 = 1;
			break;
		
		case 115:
			StringCopy(&Var2, "HT_FMM_14_0", 16);
			iVar6 = 14;
			iVar7 = 0;
			iVar1 = 30;
			iVar8 = 0;
			iVar11 = 1;
			break;
		
		case 116:
			StringCopy(&Var2, "HT_FMM_14_1", 16);
			iVar6 = 14;
			iVar7 = 1;
			iVar1 = 25;
			iVar8 = 0;
			iVar11 = 1;
			break;
		
		case 117:
			StringCopy(&Var2, "HT_FMM_14_2", 16);
			iVar6 = 14;
			iVar7 = 2;
			iVar1 = 30;
			iVar8 = 0;
			iVar11 = 1;
			break;
		
		case 118:
			StringCopy(&Var2, "HT_FMM_14_3", 16);
			iVar6 = 14;
			iVar7 = 3;
			iVar1 = 30;
			iVar8 = 0;
			iVar11 = 1;
			break;
		
		case 119:
			StringCopy(&Var2, "HT_FMM_14_4", 16);
			iVar6 = 14;
			iVar7 = 4;
			iVar1 = 35;
			iVar8 = 0;
			iVar11 = 1;
			break;
		
		case 120:
			StringCopy(&Var2, "HT_FMM_14_5", 16);
			iVar6 = 14;
			iVar7 = 5;
			iVar1 = 30;
			iVar8 = 0;
			iVar11 = 1;
			break;
		
		case 121:
			StringCopy(&Var2, "HT_FMM_14_6", 16);
			iVar6 = 14;
			iVar7 = 6;
			iVar1 = 350;
			iVar8 = 0;
			iVar11 = 1;
			break;
		
		case 122:
			StringCopy(&Var2, "HT_FMM_14_7", 16);
			iVar6 = 14;
			iVar7 = 7;
			iVar1 = 35;
			iVar8 = 0;
			iVar11 = 1;
			break;
		
		case 123:
			StringCopy(&Var2, "HT_FMM_15_0", 16);
			iVar6 = 15;
			iVar7 = 0;
			iVar1 = 365;
			iVar8 = 0;
			iVar11 = 1;
			break;
		
		case 124:
			StringCopy(&Var2, "HT_FMM_15_1", 16);
			iVar6 = 15;
			iVar7 = 1;
			iVar1 = 380;
			iVar8 = 0;
			iVar11 = 1;
			break;
		
		case 125:
			StringCopy(&Var2, "HT_FMM_15_2", 16);
			iVar6 = 15;
			iVar7 = 2;
			iVar1 = 595;
			iVar8 = 0;
			iVar11 = 1;
			break;
		
		case 126:
			StringCopy(&Var2, "HT_FMM_15_3", 16);
			iVar6 = 15;
			iVar7 = 3;
			iVar1 = 595;
			iVar8 = 0;
			iVar11 = 1;
			break;
		
		case 127:
			StringCopy(&Var2, "HT_FMM_15_4", 16);
			iVar6 = 15;
			iVar7 = 4;
			iVar1 = 600;
			iVar8 = 0;
			iVar11 = 1;
			break;
		
		case 128:
			StringCopy(&Var2, "HT_FMM_15_5", 16);
			iVar6 = 15;
			iVar7 = 5;
			iVar1 = 590;
			iVar8 = 0;
			iVar11 = 1;
			break;
		
		case 129:
			StringCopy(&Var2, "HT_FMM_15_6", 16);
			iVar6 = 15;
			iVar7 = 6;
			iVar1 = 395;
			iVar8 = 0;
			iVar11 = 1;
			break;
		
		case 130:
			StringCopy(&Var2, "HT_FMM_15_7", 16);
			iVar6 = 15;
			iVar7 = 7;
			iVar1 = 555;
			iVar8 = 0;
			iVar11 = 1;
			break;
	}
	switch (iParam0)
	{
		case 131:
			StringCopy(&Var2, "HE_FMM_16_0", 16);
			iVar6 = 16;
			iVar7 = 0;
			iVar1 = 1060;
			iVar8 = 0;
			iVar11 = 2;
			break;
		
		case 132:
			StringCopy(&Var2, "HE_FMM_16_1", 16);
			iVar6 = 16;
			iVar7 = 1;
			iVar1 = 1400;
			iVar8 = 0;
			iVar11 = 2;
			break;
		
		case 133:
			StringCopy(&Var2, "HE_FMM_16_2", 16);
			iVar6 = 16;
			iVar7 = 2;
			iVar1 = 1315;
			iVar8 = 0;
			iVar11 = 2;
			break;
		
		case 134:
			StringCopy(&Var2, "HE_FMM_16_3", 16);
			iVar6 = 16;
			iVar7 = 3;
			iVar1 = 1230;
			iVar8 = 0;
			iVar11 = 2;
			break;
		
		case 135:
			StringCopy(&Var2, "HE_FMM_16_4", 16);
			iVar6 = 16;
			iVar7 = 4;
			iVar1 = 1145;
			iVar8 = 0;
			iVar11 = 2;
			break;
		
		case 136:
			StringCopy(&Var2, "HE_FMM_16_5", 16);
			iVar6 = 16;
			iVar7 = 5;
			iVar1 = 8450;
			iVar8 = 0;
			iVar11 = 2;
			break;
		
		case 137:
			StringCopy(&Var2, "HE_FMM_16_6", 16);
			iVar6 = 16;
			iVar7 = 6;
			iVar1 = 675;
			iVar8 = 0;
			iVar11 = 2;
			break;
		
		case 138:
			StringCopy(&Var2, "HE_FMM_16_7", 16);
			iVar6 = 16;
			iVar7 = 7;
			iVar1 = 8750;
			iVar8 = 0;
			iVar11 = 2;
			break;
		
		case 139:
			StringCopy(&Var2, "HE_FMM_17_0", 16);
			iVar6 = 17;
			iVar7 = 0;
			iVar1 = 975;
			iVar8 = 0;
			iVar11 = 2;
			break;
		
		case 140:
			StringCopy(&Var2, "HE_FMM_17_1", 16);
			iVar6 = 17;
			iVar7 = 1;
			iVar1 = 750;
			iVar8 = 0;
			iVar11 = 2;
			break;
		
		case 141:
			StringCopy(&Var2, "HE_FMM_17_2", 16);
			iVar6 = 17;
			iVar7 = 2;
			iVar1 = 865;
			iVar8 = 0;
			iVar11 = 2;
			break;
		
		case 142:
			StringCopy(&Var2, "HE_FMM_17_3", 16);
			iVar6 = 17;
			iVar7 = 3;
			iVar1 = 890;
			iVar8 = 0;
			iVar11 = 2;
			break;
		
		case 143:
			StringCopy(&Var2, "HE_FMM_17_4", 16);
			iVar6 = 17;
			iVar7 = 4;
			iVar1 = 730;
			iVar8 = 0;
			iVar11 = 2;
			break;
		
		case 144:
			StringCopy(&Var2, "HE_FMM_17_5", 16);
			iVar6 = 17;
			iVar7 = 5;
			iVar1 = 650;
			iVar8 = 0;
			iVar11 = 2;
			break;
		
		case 145:
			StringCopy(&Var2, "HE_FMM_17_6", 16);
			iVar6 = 17;
			iVar7 = 6;
			iVar1 = 645;
			iVar8 = 0;
			iVar11 = 2;
			break;
		
		case 146:
			StringCopy(&Var2, "HE_FMM_17_7", 16);
			iVar6 = 17;
			iVar7 = 7;
			iVar1 = 755;
			iVar8 = 0;
			iVar11 = 2;
			break;
		
		case 147:
			StringCopy(&Var2, "HE_FMM_18_0", 16);
			iVar6 = 18;
			iVar7 = 0;
			iVar1 = 13850;
			iVar8 = 0;
			iVar11 = 2;
			break;
		
		case 148:
			StringCopy(&Var2, "HE_FMM_18_1", 16);
			iVar6 = 18;
			iVar7 = 1;
			iVar1 = 2900;
			iVar8 = 0;
			iVar11 = 2;
			break;
		
		case 149:
			StringCopy(&Var2, "HE_FMM_18_2", 16);
			iVar6 = 18;
			iVar7 = 2;
			iVar1 = 2895;
			iVar8 = 0;
			iVar11 = 2;
			break;
		
		case 150:
			StringCopy(&Var2, "HE_FMM_18_3", 16);
			iVar6 = 18;
			iVar7 = 3;
			iVar1 = 12500;
			iVar8 = 0;
			iVar11 = 2;
			break;
		
		case 151:
			StringCopy(&Var2, "HE_FMM_18_4", 16);
			iVar6 = 18;
			iVar7 = 4;
			iVar1 = 15000;
			iVar8 = 0;
			iVar11 = 2;
			break;
		
		case 152:
			StringCopy(&Var2, "HE_FMM_18_5", 16);
			iVar6 = 18;
			iVar7 = 5;
			iVar1 = 14750;
			iVar8 = 0;
			iVar11 = 2;
			break;
		
		case 153:
			StringCopy(&Var2, "HE_FMM_18_6", 16);
			iVar6 = 18;
			iVar7 = 6;
			iVar1 = 13150;
			iVar8 = 0;
			iVar11 = 2;
			break;
		
		case 154:
			StringCopy(&Var2, "HE_FMM_18_7", 16);
			iVar6 = 18;
			iVar7 = 7;
			iVar1 = 2925;
			iVar8 = 0;
			iVar11 = 2;
			break;
	}
	switch (iParam0)
	{
		case 155:
			StringCopy(&Var2, "G_FMM_0_0", 16);
			iVar6 = 0;
			iVar7 = 0;
			iVar1 = 0;
			iVar8 = 1;
			iVar11 = 3;
			iVar0 = true;
			break;
		
		case 156:
			StringCopy(&Var2, "G_FMM_0_1", 16);
			iVar6 = 0;
			iVar7 = 1;
			iVar1 = 0;
			iVar8 = 1;
			iVar11 = 3;
			iVar0 = true;
			break;
		
		case 157:
			StringCopy(&Var2, "G_FMM_0_2", 16);
			iVar6 = 0;
			iVar7 = 2;
			iVar1 = 0;
			iVar8 = 1;
			iVar11 = 3;
			iVar0 = true;
			break;
		
		case 158:
			StringCopy(&Var2, "G_FMM_0_3", 16);
			iVar6 = 0;
			iVar7 = 3;
			iVar1 = 0;
			iVar8 = 1;
			iVar11 = 3;
			iVar0 = true;
			break;
		
		case 159:
			StringCopy(&Var2, "G_FMM_0_4", 16);
			iVar6 = 0;
			iVar7 = 4;
			iVar1 = 0;
			iVar8 = 1;
			iVar11 = 3;
			iVar0 = true;
			break;
		
		case 160:
			StringCopy(&Var2, "G_FMM_0_5", 16);
			iVar6 = 0;
			iVar7 = 5;
			iVar1 = 0;
			iVar8 = 1;
			iVar11 = 3;
			iVar0 = true;
			break;
		
		case 161:
			StringCopy(&Var2, "G_FMM_0_6", 16);
			iVar6 = 0;
			iVar7 = 6;
			iVar1 = 0;
			iVar8 = 1;
			iVar11 = 3;
			iVar0 = true;
			break;
		
		case 162:
			StringCopy(&Var2, "G_FMM_0_7", 16);
			iVar6 = 0;
			iVar7 = 7;
			iVar1 = 0;
			iVar8 = 1;
			iVar11 = 3;
			iVar0 = true;
			break;
		
		case 163:
			StringCopy(&Var2, "G_FMM_0_8", 16);
			iVar6 = 0;
			iVar7 = 8;
			iVar1 = 50;
			iVar8 = 1;
			iVar11 = 3;
			break;
		
		case 164:
			StringCopy(&Var2, "G_FMM_0_9", 16);
			iVar6 = 0;
			iVar7 = 9;
			iVar1 = 50;
			iVar8 = 1;
			iVar11 = 3;
			break;
		
		case 165:
			StringCopy(&Var2, "G_FMM_0_10", 16);
			iVar6 = 0;
			iVar7 = 10;
			iVar1 = 50;
			iVar8 = 1;
			iVar11 = 3;
			break;
		
		case 166:
			StringCopy(&Var2, "G_FMM_1_0", 16);
			iVar6 = 1;
			iVar7 = 0;
			iVar1 = 0;
			iVar8 = 1;
			iVar11 = 3;
			iVar0 = true;
			break;
		
		case 167:
			StringCopy(&Var2, "G_FMM_1_1", 16);
			iVar6 = 1;
			iVar7 = 1;
			iVar1 = 180;
			iVar8 = 1;
			iVar11 = 3;
			break;
		
		case 168:
			StringCopy(&Var2, "G_FMM_1_2", 16);
			iVar6 = 1;
			iVar7 = 2;
			iVar1 = 0;
			iVar8 = 1;
			iVar11 = 3;
			iVar0 = true;
			break;
		
		case 169:
			StringCopy(&Var2, "G_FMM_1_3", 16);
			iVar6 = 1;
			iVar7 = 3;
			iVar1 = 0;
			iVar8 = 1;
			iVar11 = 3;
			iVar0 = true;
			break;
		
		case 170:
			StringCopy(&Var2, "G_FMM_1_4", 16);
			iVar6 = 1;
			iVar7 = 4;
			iVar1 = 0;
			iVar8 = 1;
			iVar11 = 3;
			iVar0 = true;
			break;
		
		case 171:
			StringCopy(&Var2, "G_FMM_1_5", 16);
			iVar6 = 1;
			iVar7 = 5;
			iVar1 = 0;
			iVar8 = 1;
			iVar11 = 3;
			iVar0 = true;
			break;
		
		case 172:
			StringCopy(&Var2, "G_FMM_1_6", 16);
			iVar6 = 1;
			iVar7 = 6;
			iVar1 = 0;
			iVar8 = 1;
			iVar11 = 3;
			iVar0 = true;
			break;
		
		case 173:
			StringCopy(&Var2, "G_FMM_1_7", 16);
			iVar6 = 1;
			iVar7 = 7;
			iVar1 = 0;
			iVar8 = 1;
			iVar11 = 3;
			iVar0 = true;
			break;
		
		case 174:
			StringCopy(&Var2, "G_FMM_2_0", 16);
			iVar6 = 2;
			iVar7 = 0;
			iVar1 = 110;
			iVar8 = 1;
			iVar11 = 3;
			break;
		
		case 175:
			StringCopy(&Var2, "G_FMM_2_1", 16);
			iVar6 = 2;
			iVar7 = 1;
			iVar1 = 140;
			iVar8 = 1;
			iVar11 = 3;
			break;
		
		case 176:
			StringCopy(&Var2, "G_FMM_2_2", 16);
			iVar6 = 2;
			iVar7 = 2;
			iVar1 = 380;
			iVar8 = 1;
			iVar11 = 3;
			break;
		
		case 177:
			StringCopy(&Var2, "G_FMM_2_3", 16);
			iVar6 = 2;
			iVar7 = 3;
			iVar1 = 135;
			iVar8 = 1;
			iVar11 = 3;
			break;
		
		case 178:
			StringCopy(&Var2, "G_FMM_2_4", 16);
			iVar6 = 2;
			iVar7 = 4;
			iVar1 = 130;
			iVar8 = 1;
			iVar11 = 3;
			break;
		
		case 179:
			StringCopy(&Var2, "G_FMM_2_5", 16);
			iVar6 = 2;
			iVar7 = 5;
			iVar1 = 110;
			iVar8 = 1;
			iVar11 = 3;
			break;
		
		case 180:
			StringCopy(&Var2, "G_FMM_2_6", 16);
			iVar6 = 2;
			iVar7 = 6;
			iVar1 = 140;
			iVar8 = 1;
			iVar11 = 3;
			break;
		
		case 181:
			StringCopy(&Var2, "G_FMM_2_7", 16);
			iVar6 = 2;
			iVar7 = 7;
			iVar1 = 390;
			iVar8 = 1;
			iVar11 = 3;
			break;
		
		case 182:
			StringCopy(&Var2, "CLO_EXM_G_2_8", 16);
			iVar6 = 2;
			iVar7 = 8;
			iVar1 = 950;
			iVar8 = 1;
			iVar11 = 3;
			break;
		
		case 183:
			StringCopy(&Var2, "CLO_EXM_G_2_9", 16);
			iVar6 = 2;
			iVar7 = 9;
			iVar1 = 565;
			iVar8 = 1;
			iVar11 = 3;
			break;
		
		case 184:
			StringCopy(&Var2, "CLO_EXM_G_2_10", 16);
			iVar6 = 2;
			iVar7 = 10;
			iVar1 = 630;
			iVar8 = 1;
			iVar11 = 3;
			break;
		
		case 185:
			StringCopy(&Var2, "G_FMM_3_0", 16);
			iVar6 = 3;
			iVar7 = 0;
			iVar1 = 70;
			iVar8 = 1;
			iVar11 = 3;
			break;
		
		case 186:
			StringCopy(&Var2, "G_FMM_3_1", 16);
			iVar6 = 3;
			iVar7 = 1;
			iVar1 = 60;
			iVar8 = 1;
			iVar11 = 3;
			break;
		
		case 187:
			StringCopy(&Var2, "G_FMM_3_2", 16);
			iVar6 = 3;
			iVar7 = 2;
			iVar1 = 65;
			iVar8 = 1;
			iVar11 = 3;
			break;
		
		case 188:
			StringCopy(&Var2, "G_FMM_3_3", 16);
			iVar6 = 3;
			iVar7 = 3;
			iVar1 = 95;
			iVar8 = 1;
			iVar11 = 3;
			break;
		
		case 189:
			StringCopy(&Var2, "G_FMM_3_4", 16);
			iVar6 = 3;
			iVar7 = 4;
			iVar1 = 85;
			iVar8 = 1;
			iVar11 = 3;
			break;
		
		case 190:
			StringCopy(&Var2, "G_FMM_3_5", 16);
			iVar6 = 3;
			iVar7 = 5;
			iVar1 = 75;
			iVar8 = 1;
			iVar11 = 3;
			break;
		
		case 191:
			StringCopy(&Var2, "G_FMM_3_6", 16);
			iVar6 = 3;
			iVar7 = 6;
			iVar1 = 75;
			iVar8 = 1;
			iVar11 = 3;
			break;
		
		case 192:
			StringCopy(&Var2, "G_FMM_3_7", 16);
			iVar6 = 3;
			iVar7 = 7;
			iVar1 = 90;
			iVar8 = 1;
			iVar11 = 3;
			break;
		
		case 193:
			StringCopy(&Var2, "CLO_EXM_G_3_8", 16);
			iVar6 = 3;
			iVar7 = 8;
			iVar1 = 650;
			iVar8 = 1;
			iVar11 = 3;
			break;
		
		case 194:
			StringCopy(&Var2, "CLO_EXM_G_3_9", 16);
			iVar6 = 3;
			iVar7 = 9;
			iVar1 = 265;
			iVar8 = 1;
			iVar11 = 3;
			break;
		
		case 195:
			StringCopy(&Var2, "CLO_EXM_G_3_10", 16);
			iVar6 = 3;
			iVar7 = 10;
			iVar1 = 330;
			iVar8 = 1;
			iVar11 = 3;
			break;
		
		case 196:
			StringCopy(&Var2, "G_FMM_4_0", 16);
			iVar6 = 4;
			iVar7 = 0;
			iVar1 = 245;
			iVar8 = 1;
			iVar11 = 3;
			break;
		
		case 197:
			StringCopy(&Var2, "G_FMM_4_1", 16);
			iVar6 = 4;
			iVar7 = 1;
			iVar1 = 250;
			iVar8 = 1;
			iVar11 = 3;
			break;
		
		case 198:
			StringCopy(&Var2, "G_FMM_4_2", 16);
			iVar6 = 4;
			iVar7 = 2;
			iVar1 = 210;
			iVar8 = 1;
			iVar11 = 3;
			break;
		
		case 199:
			StringCopy(&Var2, "G_FMM_4_3", 16);
			iVar6 = 4;
			iVar7 = 3;
			iVar1 = 245;
			iVar8 = 1;
			iVar11 = 3;
			break;
		
		case 200:
			StringCopy(&Var2, "G_FMM_4_4", 16);
			iVar6 = 4;
			iVar7 = 4;
			iVar1 = 205;
			iVar8 = 1;
			iVar11 = 3;
			break;
		
		case 201:
			StringCopy(&Var2, "G_FMM_4_5", 16);
			iVar6 = 4;
			iVar7 = 5;
			iVar1 = 205;
			iVar8 = 1;
			iVar11 = 3;
			break;
		
		case 202:
			StringCopy(&Var2, "G_FMM_4_6", 16);
			iVar6 = 4;
			iVar7 = 6;
			iVar1 = 215;
			iVar8 = 1;
			iVar11 = 3;
			break;
		
		case 203:
			StringCopy(&Var2, "G_FMM_4_7", 16);
			iVar6 = 4;
			iVar7 = 7;
			iVar1 = 215;
			iVar8 = 1;
			iVar11 = 3;
			break;
		
		case 204:
			StringCopy(&Var2, "CLO_EXM_G_4_8", 16);
			iVar6 = 4;
			iVar7 = 8;
			iVar1 = 995;
			iVar8 = 1;
			iVar11 = 3;
			break;
		
		case 205:
			StringCopy(&Var2, "CLO_EXM_G_4_9", 16);
			iVar6 = 4;
			iVar7 = 9;
			iVar1 = 610;
			iVar8 = 1;
			iVar11 = 3;
			break;
		
		case 206:
			StringCopy(&Var2, "CLO_EXM_G_4_10", 16);
			iVar6 = 4;
			iVar7 = 10;
			iVar1 = 675;
			iVar8 = 1;
			iVar11 = 3;
			break;
		
		case 207:
			StringCopy(&Var2, "G_FMM_5_0", 16);
			iVar6 = 5;
			iVar7 = 0;
			iVar1 = 4050;
			iVar8 = 1;
			iVar11 = 3;
			break;
		
		case 208:
			StringCopy(&Var2, "G_FMM_5_1", 16);
			iVar6 = 5;
			iVar7 = 1;
			iVar1 = 4060;
			iVar8 = 1;
			iVar11 = 3;
			break;
		
		case 209:
			StringCopy(&Var2, "G_FMM_5_2", 16);
			iVar6 = 5;
			iVar7 = 2;
			iVar1 = 170;
			iVar8 = 1;
			iVar11 = 3;
			break;
		
		case 210:
			StringCopy(&Var2, "G_FMM_5_3", 16);
			iVar6 = 5;
			iVar7 = 3;
			iVar1 = 135;
			iVar8 = 1;
			iVar11 = 3;
			break;
		
		case 211:
			StringCopy(&Var2, "G_FMM_5_4", 16);
			iVar6 = 5;
			iVar7 = 4;
			iVar1 = 120;
			iVar8 = 1;
			iVar11 = 3;
			break;
		
		case 212:
			StringCopy(&Var2, "G_FMM_5_5", 16);
			iVar6 = 5;
			iVar7 = 5;
			iVar1 = 110;
			iVar8 = 1;
			iVar11 = 3;
			break;
		
		case 213:
			StringCopy(&Var2, "G_FMM_5_6", 16);
			iVar6 = 5;
			iVar7 = 6;
			iVar1 = 140;
			iVar8 = 1;
			iVar11 = 3;
			break;
		
		case 214:
			StringCopy(&Var2, "G_FMM_5_7", 16);
			iVar6 = 5;
			iVar7 = 7;
			iVar1 = 130;
			iVar8 = 1;
			iVar11 = 3;
			break;
		
		case 215:
			StringCopy(&Var2, "CLO_EXM_G_5_8", 16);
			iVar6 = 5;
			iVar7 = 8;
			iVar1 = 1760;
			iVar8 = 1;
			iVar11 = 3;
			break;
		
		case 216:
			StringCopy(&Var2, "CLO_EXM_G_5_9", 16);
			iVar6 = 5;
			iVar7 = 9;
			iVar1 = 1375;
			iVar8 = 1;
			iVar11 = 3;
			break;
		
		case 217:
			StringCopy(&Var2, "CLO_EXM_G_5_10", 16);
			iVar6 = 5;
			iVar7 = 10;
			iVar1 = 1440;
			iVar8 = 1;
			iVar11 = 3;
			break;
		
		case 218:
			StringCopy(&Var2, "G_FMM_6_0", 16);
			iVar6 = 6;
			iVar7 = 0;
			iVar1 = 0;
			iVar8 = 1;
			iVar11 = 3;
			iVar0 = true;
			break;
		
		case 219:
			StringCopy(&Var2, "G_FMM_6_1", 16);
			iVar6 = 6;
			iVar7 = 1;
			iVar1 = 0;
			iVar8 = 1;
			iVar11 = 3;
			iVar0 = true;
			break;
		
		case 220:
			StringCopy(&Var2, "G_FMM_6_2", 16);
			iVar6 = 6;
			iVar7 = 2;
			iVar1 = 0;
			iVar8 = 1;
			iVar11 = 3;
			iVar0 = true;
			break;
		
		case 221:
			StringCopy(&Var2, "G_FMM_6_3", 16);
			iVar6 = 6;
			iVar7 = 3;
			iVar1 = 0;
			iVar8 = 1;
			iVar11 = 3;
			iVar0 = true;
			break;
		
		case 222:
			StringCopy(&Var2, "G_FMM_6_4", 16);
			iVar6 = 6;
			iVar7 = 4;
			iVar1 = 0;
			iVar8 = 1;
			iVar11 = 3;
			iVar0 = true;
			break;
		
		case 223:
			StringCopy(&Var2, "G_FMM_6_5", 16);
			iVar6 = 6;
			iVar7 = 5;
			iVar1 = 0;
			iVar8 = 1;
			iVar11 = 3;
			iVar0 = true;
			break;
		
		case 224:
			StringCopy(&Var2, "G_FMM_6_6", 16);
			iVar6 = 6;
			iVar7 = 6;
			iVar1 = 0;
			iVar8 = 1;
			iVar11 = 3;
			iVar0 = true;
			break;
		
		case 225:
			StringCopy(&Var2, "G_FMM_6_7", 16);
			iVar6 = 6;
			iVar7 = 7;
			iVar1 = 0;
			iVar8 = 1;
			iVar11 = 3;
			iVar0 = true;
			break;
		
		case 226:
			StringCopy(&Var2, "G_FMM_7_0", 16);
			iVar6 = 7;
			iVar7 = 0;
			iVar1 = 180;
			iVar8 = 1;
			iVar11 = 3;
			break;
		
		case 227:
			StringCopy(&Var2, "G_FMM_7_1", 16);
			iVar6 = 7;
			iVar7 = 1;
			iVar1 = 500;
			iVar8 = 1;
			iVar11 = 3;
			break;
		
		case 228:
			StringCopy(&Var2, "G_FMM_7_2", 16);
			iVar6 = 7;
			iVar7 = 2;
			iVar1 = 115;
			iVar8 = 1;
			iVar11 = 3;
			break;
		
		case 229:
			StringCopy(&Var2, "G_FMM_7_3", 16);
			iVar6 = 7;
			iVar7 = 3;
			iVar1 = 220;
			iVar8 = 1;
			iVar11 = 3;
			break;
		
		case 230:
			StringCopy(&Var2, "G_FMM_7_4", 16);
			iVar6 = 7;
			iVar7 = 4;
			iVar1 = 185;
			iVar8 = 1;
			iVar11 = 3;
			break;
		
		case 231:
			StringCopy(&Var2, "G_FMM_7_5", 16);
			iVar6 = 7;
			iVar7 = 5;
			iVar1 = 1445;
			iVar8 = 1;
			iVar11 = 3;
			break;
		
		case 232:
			StringCopy(&Var2, "G_FMM_7_6", 16);
			iVar6 = 7;
			iVar7 = 6;
			iVar1 = 530;
			iVar8 = 1;
			iVar11 = 3;
			break;
		
		case 233:
			StringCopy(&Var2, "G_FMM_7_7", 16);
			iVar6 = 7;
			iVar7 = 7;
			iVar1 = 650;
			iVar8 = 1;
			iVar11 = 3;
			break;
		
		case 234:
			StringCopy(&Var2, "CLO_EXM_G_7_8", 16);
			iVar6 = 7;
			iVar7 = 8;
			iVar1 = 1170;
			iVar8 = 1;
			iVar11 = 3;
			break;
		
		case 235:
			StringCopy(&Var2, "CLO_EXM_G_7_9", 16);
			iVar6 = 7;
			iVar7 = 9;
			iVar1 = 785;
			iVar8 = 1;
			iVar11 = 3;
			break;
		
		case 236:
			StringCopy(&Var2, "CLO_EXM_G_7_10", 16);
			iVar6 = 7;
			iVar7 = 10;
			iVar1 = 850;
			iVar8 = 1;
			iVar11 = 3;
			break;
	}
	switch (iParam0)
	{
		case 237:
			StringCopy(&Var2, "G_FMM_8_0", 16);
			iVar6 = 8;
			iVar7 = 0;
			iVar1 = 4260;
			iVar8 = 1;
			iVar11 = 3;
			break;
		
		case 238:
			StringCopy(&Var2, "G_FMM_8_1", 16);
			iVar6 = 8;
			iVar7 = 1;
			iVar1 = 4310;
			iVar8 = 1;
			iVar11 = 3;
			break;
		
		case 239:
			StringCopy(&Var2, "G_FMM_8_2", 16);
			iVar6 = 8;
			iVar7 = 2;
			iVar1 = 4130;
			iVar8 = 1;
			iVar11 = 3;
			break;
		
		case 240:
			StringCopy(&Var2, "G_FMM_8_3", 16);
			iVar6 = 8;
			iVar7 = 3;
			iVar1 = 135;
			iVar8 = 1;
			iVar11 = 3;
			break;
		
		case 241:
			StringCopy(&Var2, "G_FMM_8_4", 16);
			iVar6 = 8;
			iVar7 = 4;
			iVar1 = 120;
			iVar8 = 1;
			iVar11 = 3;
			break;
		
		case 242:
			StringCopy(&Var2, "G_FMM_8_5", 16);
			iVar6 = 8;
			iVar7 = 5;
			iVar1 = 110;
			iVar8 = 1;
			iVar11 = 3;
			break;
		
		case 243:
			StringCopy(&Var2, "G_FMM_8_6", 16);
			iVar6 = 8;
			iVar7 = 6;
			iVar1 = 140;
			iVar8 = 1;
			iVar11 = 3;
			break;
		
		case 244:
			StringCopy(&Var2, "G_FMM_8_7", 16);
			iVar6 = 8;
			iVar7 = 7;
			iVar1 = 130;
			iVar8 = 1;
			iVar11 = 3;
			break;
		
		case 245:
			StringCopy(&Var2, "CLO_EXM_G_8_8", 16);
			iVar6 = 8;
			iVar7 = 8;
			iVar1 = 1885;
			iVar8 = 1;
			iVar11 = 3;
			break;
		
		case 246:
			StringCopy(&Var2, "CLO_EXM_G_8_9", 16);
			iVar6 = 8;
			iVar7 = 9;
			iVar1 = 1500;
			iVar8 = 1;
			iVar11 = 3;
			break;
		
		case 247:
			StringCopy(&Var2, "CLO_EXM_G_8_10", 16);
			iVar6 = 8;
			iVar7 = 10;
			iVar1 = 1565;
			iVar8 = 1;
			iVar11 = 3;
			break;
		
		case 248:
			StringCopy(&Var2, "G_FMM_9_0", 16);
			iVar6 = 9;
			iVar7 = 0;
			iVar1 = 65;
			iVar8 = 1;
			iVar11 = 3;
			break;
		
		case 249:
			StringCopy(&Var2, "G_FMM_9_1", 16);
			iVar6 = 9;
			iVar7 = 1;
			iVar1 = 65;
			iVar8 = 1;
			iVar11 = 3;
			break;
		
		case 250:
			StringCopy(&Var2, "G_FMM_9_2", 16);
			iVar6 = 9;
			iVar7 = 2;
			iVar1 = 85;
			iVar8 = 1;
			iVar11 = 3;
			break;
		
		case 251:
			StringCopy(&Var2, "G_FMM_9_3", 16);
			iVar6 = 9;
			iVar7 = 3;
			iVar1 = 75;
			iVar8 = 1;
			iVar11 = 3;
			break;
		
		case 252:
			StringCopy(&Var2, "G_FMM_9_4", 16);
			iVar6 = 9;
			iVar7 = 4;
			iVar1 = 85;
			iVar8 = 1;
			iVar11 = 3;
			break;
		
		case 253:
			StringCopy(&Var2, "G_FMM_9_5", 16);
			iVar6 = 9;
			iVar7 = 5;
			iVar1 = 4290;
			iVar8 = 1;
			iVar11 = 3;
			break;
		
		case 254:
			StringCopy(&Var2, "G_FMM_9_6", 16);
			iVar6 = 9;
			iVar7 = 6;
			iVar1 = 4150;
			iVar8 = 1;
			iVar11 = 3;
			break;
		
		case 255:
			StringCopy(&Var2, "G_FMM_9_7", 16);
			iVar6 = 9;
			iVar7 = 7;
			iVar1 = 4295;
			iVar8 = 1;
			iVar11 = 3;
			break;
		
		case 256:
			StringCopy(&Var2, "CLO_EXM_G_9_8", 16);
			iVar6 = 9;
			iVar7 = 8;
			iVar1 = 2315;
			iVar8 = 1;
			iVar11 = 3;
			break;
		
		case 257:
			StringCopy(&Var2, "CLO_EXM_G_9_9", 16);
			iVar6 = 9;
			iVar7 = 9;
			iVar1 = 1930;
			iVar8 = 1;
			iVar11 = 3;
			break;
		
		case 258:
			StringCopy(&Var2, "CLO_EXM_G_9_10", 16);
			iVar6 = 9;
			iVar7 = 10;
			iVar1 = 1995;
			iVar8 = 1;
			iVar11 = 3;
			break;
		
		case 259:
			StringCopy(&Var2, "G_FMM_10_0", 16);
			iVar6 = 10;
			iVar7 = 0;
			iVar1 = 6240;
			iVar8 = 1;
			iVar11 = 3;
			break;
		
		case 260:
			StringCopy(&Var2, "G_FMM_10_1", 16);
			iVar6 = 10;
			iVar7 = 1;
			iVar1 = 4955;
			iVar8 = 1;
			iVar11 = 3;
			break;
		
		case 261:
			StringCopy(&Var2, "G_FMM_10_2", 16);
			iVar6 = 10;
			iVar7 = 2;
			iVar1 = 5590;
			iVar8 = 1;
			iVar11 = 3;
			break;
		
		case 262:
			StringCopy(&Var2, "G_FMM_10_3", 16);
			iVar6 = 10;
			iVar7 = 3;
			iVar1 = 4920;
			iVar8 = 1;
			iVar11 = 3;
			break;
		
		case 263:
			StringCopy(&Var2, "G_FMM_10_4", 16);
			iVar6 = 10;
			iVar7 = 4;
			iVar1 = 4990;
			iVar8 = 1;
			iVar11 = 3;
			break;
		
		case 264:
			StringCopy(&Var2, "G_FMM_10_5", 16);
			iVar6 = 10;
			iVar7 = 5;
			iVar1 = 4780;
			iVar8 = 1;
			iVar11 = 3;
			break;
		
		case 265:
			StringCopy(&Var2, "G_FMM_10_6", 16);
			iVar6 = 10;
			iVar7 = 6;
			iVar1 = 4775;
			iVar8 = 1;
			iVar11 = 3;
			break;
		
		case 266:
			StringCopy(&Var2, "G_FMM_10_7", 16);
			iVar6 = 10;
			iVar7 = 7;
			iVar1 = 4800;
			iVar8 = 1;
			iVar11 = 3;
			break;
		
		case 267:
			StringCopy(&Var2, "CLO_EXM_G_10_8", 16);
			iVar6 = 10;
			iVar7 = 8;
			iVar1 = 2835;
			iVar8 = 1;
			iVar11 = 3;
			break;
		
		case 268:
			StringCopy(&Var2, "CLO_EXM_G_10_9", 16);
			iVar6 = 10;
			iVar7 = 9;
			iVar1 = 2450;
			iVar8 = 1;
			iVar11 = 3;
			break;
		
		case 269:
			StringCopy(&Var2, "CLO_EXM_G_10_10", 16);
			iVar6 = 10;
			iVar7 = 10;
			iVar1 = 2515;
			iVar8 = 1;
			iVar11 = 3;
			break;
		
		case 270:
			StringCopy(&Var2, "G_FMM_11_0", 16);
			iVar6 = 11;
			iVar7 = 0;
			iVar1 = 0;
			iVar8 = 1;
			iVar11 = 3;
			iVar0 = true;
			break;
		
		case 271:
			StringCopy(&Var2, "G_FMM_11_1", 16);
			iVar6 = 11;
			iVar7 = 1;
			iVar1 = 0;
			iVar8 = 1;
			iVar11 = 3;
			iVar0 = true;
			break;
		
		case 272:
			StringCopy(&Var2, "G_FMM_11_2", 16);
			iVar6 = 11;
			iVar7 = 2;
			iVar1 = 0;
			iVar8 = 1;
			iVar11 = 3;
			iVar0 = true;
			break;
		
		case 273:
			StringCopy(&Var2, "G_FMM_11_3", 16);
			iVar6 = 11;
			iVar7 = 3;
			iVar1 = 0;
			iVar8 = 1;
			iVar11 = 3;
			iVar0 = true;
			break;
		
		case 274:
			StringCopy(&Var2, "G_FMM_11_4", 16);
			iVar6 = 11;
			iVar7 = 4;
			iVar1 = 0;
			iVar8 = 1;
			iVar11 = 3;
			iVar0 = true;
			break;
		
		case 275:
			StringCopy(&Var2, "G_FMM_11_5", 16);
			iVar6 = 11;
			iVar7 = 5;
			iVar1 = 0;
			iVar8 = 1;
			iVar11 = 3;
			iVar0 = true;
			break;
		
		case 277:
			StringCopy(&Var2, "G_FMM_11_7", 16);
			iVar6 = 11;
			iVar7 = 7;
			iVar1 = 0;
			iVar8 = 1;
			iVar11 = 3;
			iVar0 = true;
			break;
		
		case 278:
			StringCopy(&Var2, "G_FMM_12_0", 16);
			iVar6 = 12;
			iVar7 = 0;
			iVar1 = 385;
			iVar8 = 1;
			iVar11 = 3;
			break;
		
		case 279:
			StringCopy(&Var2, "G_FMM_12_1", 16);
			iVar6 = 12;
			iVar7 = 1;
			iVar1 = 310;
			iVar8 = 1;
			iVar11 = 3;
			break;
		
		case 280:
			StringCopy(&Var2, "G_FMM_12_2", 16);
			iVar6 = 12;
			iVar7 = 2;
			iVar1 = 3655;
			iVar8 = 1;
			iVar11 = 3;
			break;
		
		case 281:
			StringCopy(&Var2, "G_FMM_12_3", 16);
			iVar6 = 12;
			iVar7 = 3;
			iVar1 = 4055;
			iVar8 = 1;
			iVar11 = 3;
			break;
		
		case 282:
			StringCopy(&Var2, "G_FMM_12_4", 16);
			iVar6 = 12;
			iVar7 = 4;
			iVar1 = 3595;
			iVar8 = 1;
			iVar11 = 3;
			break;
		
		case 283:
			StringCopy(&Var2, "G_FMM_12_5", 16);
			iVar6 = 12;
			iVar7 = 5;
			iVar1 = 3605;
			iVar8 = 1;
			iVar11 = 3;
			break;
		
		case 284:
			StringCopy(&Var2, "G_FMM_12_6", 16);
			iVar6 = 12;
			iVar7 = 6;
			iVar1 = 3645;
			iVar8 = 1;
			iVar11 = 3;
			break;
		
		case 285:
			StringCopy(&Var2, "G_FMM_12_7", 16);
			iVar6 = 12;
			iVar7 = 7;
			iVar1 = 320;
			iVar8 = 1;
			iVar11 = 3;
			break;
		
		case 286:
			StringCopy(&Var2, "CLO_EXM_G_12_8", 16);
			iVar6 = 12;
			iVar7 = 8;
			iVar1 = 2820;
			iVar8 = 1;
			iVar11 = 3;
			break;
		
		case 287:
			StringCopy(&Var2, "CLO_EXM_G_12_9", 16);
			iVar6 = 12;
			iVar7 = 9;
			iVar1 = 2435;
			iVar8 = 1;
			iVar11 = 3;
			break;
		
		case 288:
			StringCopy(&Var2, "CLO_EXM_G_12_10", 16);
			iVar6 = 12;
			iVar7 = 10;
			iVar1 = 2500;
			iVar8 = 1;
			iVar11 = 3;
			break;
		
		case 289:
			StringCopy(&Var2, "G_FMM_13_0", 16);
			iVar6 = 13;
			iVar7 = 0;
			iVar1 = 230;
			iVar8 = 1;
			iVar11 = 3;
			break;
		
		case 290:
			StringCopy(&Var2, "G_FMM_13_1", 16);
			iVar6 = 13;
			iVar7 = 1;
			iVar1 = 1605;
			iVar8 = 1;
			iVar11 = 3;
			break;
		
		case 291:
			StringCopy(&Var2, "G_FMM_13_2", 16);
			iVar6 = 13;
			iVar7 = 2;
			iVar1 = 2230;
			iVar8 = 1;
			iVar11 = 3;
			break;
		
		case 292:
			StringCopy(&Var2, "G_FMM_13_3", 16);
			iVar6 = 13;
			iVar7 = 3;
			iVar1 = 220;
			iVar8 = 1;
			iVar11 = 3;
			break;
		
		case 293:
			StringCopy(&Var2, "G_FMM_13_4", 16);
			iVar6 = 13;
			iVar7 = 4;
			iVar1 = 185;
			iVar8 = 1;
			iVar11 = 3;
			break;
		
		case 294:
			StringCopy(&Var2, "G_FMM_13_5", 16);
			iVar6 = 13;
			iVar7 = 5;
			iVar1 = 2070;
			iVar8 = 1;
			iVar11 = 3;
			break;
		
		case 295:
			StringCopy(&Var2, "G_FMM_13_6", 16);
			iVar6 = 13;
			iVar7 = 6;
			iVar1 = 2205;
			iVar8 = 1;
			iVar11 = 3;
			break;
		
		case 296:
			StringCopy(&Var2, "G_FMM_13_7", 16);
			iVar6 = 13;
			iVar7 = 7;
			iVar1 = 1690;
			iVar8 = 1;
			iVar11 = 3;
			break;
		
		case 297:
			StringCopy(&Var2, "CLO_EXM_G_13_8", 16);
			iVar6 = 13;
			iVar7 = 8;
			iVar1 = 2715;
			iVar8 = 1;
			iVar11 = 3;
			break;
		
		case 298:
			StringCopy(&Var2, "CLO_EXM_G_13_9", 16);
			iVar6 = 13;
			iVar7 = 9;
			iVar1 = 2330;
			iVar8 = 1;
			iVar11 = 3;
			break;
		
		case 299:
			StringCopy(&Var2, "CLO_EXM_G_13_10", 16);
			iVar6 = 13;
			iVar7 = 10;
			iVar1 = 2395;
			iVar8 = 1;
			iVar11 = 3;
			break;
		
		case 300:
			StringCopy(&Var2, "G_FMM_14_0", 16);
			iVar6 = 14;
			iVar7 = 0;
			iVar1 = 0;
			iVar8 = 1;
			iVar11 = 3;
			iVar0 = true;
			break;
		
		case 301:
			StringCopy(&Var2, "G_FMM_14_1", 16);
			iVar6 = 14;
			iVar7 = 1;
			iVar1 = 0;
			iVar8 = 1;
			iVar11 = 3;
			iVar0 = true;
			break;
		
		case 302:
			StringCopy(&Var2, "G_FMM_14_2", 16);
			iVar6 = 14;
			iVar7 = 2;
			iVar1 = 0;
			iVar8 = 1;
			iVar11 = 3;
			iVar0 = true;
			break;
		
		case 303:
			StringCopy(&Var2, "G_FMM_14_3", 16);
			iVar6 = 14;
			iVar7 = 3;
			iVar1 = 0;
			iVar8 = 1;
			iVar11 = 3;
			iVar0 = true;
			break;
		
		case 304:
			StringCopy(&Var2, "G_FMM_14_4", 16);
			iVar6 = 14;
			iVar7 = 4;
			iVar1 = 0;
			iVar8 = 1;
			iVar11 = 3;
			iVar0 = true;
			break;
		
		case 305:
			StringCopy(&Var2, "G_FMM_14_5", 16);
			iVar6 = 14;
			iVar7 = 5;
			iVar1 = 0;
			iVar8 = 1;
			iVar11 = 3;
			iVar0 = true;
			break;
		
		case 306:
			StringCopy(&Var2, "G_FMM_14_6", 16);
			iVar6 = 14;
			iVar7 = 6;
			iVar1 = 0;
			iVar8 = 1;
			iVar11 = 3;
			iVar0 = true;
			break;
		
		case 307:
			StringCopy(&Var2, "G_FMM_14_7", 16);
			iVar6 = 14;
			iVar7 = 7;
			iVar1 = 0;
			iVar8 = 1;
			iVar11 = 3;
			iVar0 = true;
			break;
		
		case 308:
			StringCopy(&Var2, "G_FMM_15_0", 16);
			iVar6 = 15;
			iVar7 = 0;
			iVar1 = 515;
			iVar8 = 1;
			iVar11 = 3;
			break;
		
		case 309:
			StringCopy(&Var2, "G_FMM_15_1", 16);
			iVar6 = 15;
			iVar7 = 1;
			iVar1 = 60;
			iVar8 = 1;
			iVar11 = 3;
			break;
		
		case 310:
			StringCopy(&Var2, "G_FMM_15_2", 16);
			iVar6 = 15;
			iVar7 = 2;
			iVar1 = 65;
			iVar8 = 1;
			iVar11 = 3;
			break;
		
		case 311:
			StringCopy(&Var2, "G_FMM_15_3", 16);
			iVar6 = 15;
			iVar7 = 3;
			iVar1 = 95;
			iVar8 = 1;
			iVar11 = 3;
			break;
		
		case 312:
			StringCopy(&Var2, "G_FMM_15_4", 16);
			iVar6 = 15;
			iVar7 = 4;
			iVar1 = 85;
			iVar8 = 1;
			iVar11 = 3;
			break;
		
		case 313:
			StringCopy(&Var2, "G_FMM_15_5", 16);
			iVar6 = 15;
			iVar7 = 5;
			iVar1 = 75;
			iVar8 = 1;
			iVar11 = 3;
			break;
		
		case 314:
			StringCopy(&Var2, "G_FMM_15_6", 16);
			iVar6 = 15;
			iVar7 = 6;
			iVar1 = 485;
			iVar8 = 1;
			iVar11 = 3;
			break;
		
		case 315:
			StringCopy(&Var2, "G_FMM_15_7", 16);
			iVar6 = 15;
			iVar7 = 7;
			iVar1 = 545;
			iVar8 = 1;
			iVar11 = 3;
			break;
		
		case 316:
			StringCopy(&Var2, "CLO_EXM_G_15_8", 16);
			iVar6 = 15;
			iVar7 = 8;
			iVar1 = 645;
			iVar8 = 1;
			iVar11 = 3;
			break;
		
		case 317:
			StringCopy(&Var2, "CLO_EXM_G_15_9", 16);
			iVar6 = 15;
			iVar7 = 9;
			iVar1 = 260;
			iVar8 = 1;
			iVar11 = 3;
			break;
		
		case 318:
			StringCopy(&Var2, "CLO_EXM_G_15_10", 16);
			iVar6 = 15;
			iVar7 = 10;
			iVar1 = 325;
			iVar8 = 1;
			iVar11 = 3;
			break;
	}
	switch (iParam0)
	{
		case 319:
			StringCopy(&Var2, "W_FMM_0_0", 16);
			iVar6 = 0;
			iVar7 = 0;
			iVar1 = 5000;
			iVar8 = 6;
			iVar11 = 4;
			break;
		
		case 320:
			StringCopy(&Var2, "W_FMM_0_1", 16);
			iVar6 = 0;
			iVar7 = 1;
			iVar1 = 0;
			iVar8 = 6;
			iVar11 = 4;
			iVar0 = true;
			break;
		
		case 321:
			StringCopy(&Var2, "W_FMM_0_2", 16);
			iVar6 = 0;
			iVar7 = 2;
			iVar1 = 0;
			iVar8 = 6;
			iVar11 = 4;
			iVar0 = true;
			break;
		
		case 322:
			StringCopy(&Var2, "W_FMM_0_3", 16);
			iVar6 = 0;
			iVar7 = 3;
			iVar1 = 0;
			iVar8 = 6;
			iVar11 = 4;
			iVar0 = true;
			break;
		
		case 323:
			StringCopy(&Var2, "W_FMM_0_4", 16);
			iVar6 = 0;
			iVar7 = 4;
			iVar1 = 0;
			iVar8 = 6;
			iVar11 = 4;
			iVar0 = true;
			break;
		
		case 324:
			StringCopy(&Var2, "W_FMM_1_0", 16);
			iVar6 = 1;
			iVar7 = 0;
			iVar1 = 695;
			iVar8 = 6;
			iVar11 = 4;
			break;
		
		case 325:
			StringCopy(&Var2, "W_FMM_1_1", 16);
			iVar6 = 1;
			iVar7 = 1;
			iVar1 = 0;
			iVar8 = 6;
			iVar11 = 4;
			iVar0 = true;
			break;
		
		case 326:
			StringCopy(&Var2, "W_FMM_1_2", 16);
			iVar6 = 1;
			iVar7 = 2;
			iVar1 = 0;
			iVar8 = 6;
			iVar11 = 4;
			iVar0 = true;
			break;
	}
	if (iVar11 == 1)
	{
		iVar12 = (iParam0 - 10);
		if (iVar12 >= 0 && iVar12 < 121)
		{
			if (iVar12 > 8)
			{
				iVar12 = (iVar12 - 1);
			}
			iVar1 = system::round(((system::to_float(iVar1) * Global_262145.f_952[iVar12]) * Global_279748.f_18));
		}
	}
	else if (iVar11 == 2)
	{
		iVar13 = (iParam0 - 131);
		if (iVar13 >= 0 && iVar13 < 24)
		{
			iVar1 = system::round(((system::to_float(iVar1) * Global_262145.f_1073[iVar13]) * Global_279748.f_19));
		}
	}
	else if (iVar11 == 3)
	{
		iVar14 = (iParam0 - 155);
		if (iVar14 >= 0 && iVar14 < 128)
		{
			iVar1 = system::round(((system::to_float(iVar1) * Global_262145.f_1098[iVar14]) * Global_279748.f_20));
		}
	}
	else if (iVar11 == 4)
	{
		iVar15 = (iParam0 - 319);
		if (iVar15 >= 0 && iVar15 < 15)
		{
			iVar1 = system::round(((system::to_float(iVar1) * Global_262145.f_1227[iVar15]) * Global_279748.f_21));
		}
	}
	if (iParam0 >= 327)
	{
		Global_69518[0 /*14*/].f_5 = 3;
		func_203(iVar10, iParam0, 327);
		if (Global_69518[0 /*14*/].f_7 > 0)
		{
			if (dlc1::_0x341DE7ED1D2A1BFD(Global_2621444, -1757550583, 1))
			{
				Global_69518[0 /*14*/].f_7 = system::round((system::to_float(Global_69518[0 /*14*/].f_7) * Global_279748.f_18));
			}
			else if (dlc1::_0x341DE7ED1D2A1BFD(Global_2621444, 97230661, 1))
			{
				Global_69518[0 /*14*/].f_7 = system::round((system::to_float(Global_69518[0 /*14*/].f_7) * Global_279748.f_20));
			}
			else if (dlc1::_0x341DE7ED1D2A1BFD(Global_2621444, 1147826474, 1))
			{
				Global_69518[0 /*14*/].f_7 = system::round((system::to_float(Global_69518[0 /*14*/].f_7) * Global_279748.f_21));
			}
		}
	}
	else
	{
		func_195(&(Global_69518[0 /*14*/]), iVar10, iParam0, &Var2, iVar6, iVar7, iVar1, iVar0, iVar8, iVar9, 0);
	}
}

void func_223(int iParam0)//Position - 0x3A9C2
{
	int iVar0;
	int iVar1;
	struct<2> Var2;
	int iVar6;
	int iVar7;
	int iVar8;
	int iVar9;
	int iVar10;
	
	iVar0 = false;
	iVar1 = 10;
	iVar6 = 0;
	iVar7 = 0;
	iVar8 = -1;
	iVar9 = 2;
	iVar10 = 10;
	switch (iParam0)
	{
		case 0:
			StringCopy(&Var2, "D_FMM_0_0", 16);
			iVar6 = 0;
			iVar7 = 0;
			iVar1 = 0;
			break;
		
		case 1:
			StringCopy(&Var2, "D_FMM_1_0", 16);
			iVar6 = 1;
			iVar7 = 0;
			iVar1 = 5000;
			break;
		
		case 2:
			StringCopy(&Var2, "D_FMM_2_0", 16);
			iVar6 = 2;
			iVar7 = 0;
			iVar1 = 10000;
			break;
		
		case 3:
			StringCopy(&Var2, "D_FMM_1_0", 16);
			iVar6 = 3;
			iVar7 = 0;
			iVar1 = 5000;
			break;
		
		case 4:
			StringCopy(&Var2, "D_FMM_2_0", 16);
			iVar6 = 4;
			iVar7 = 0;
			iVar1 = 10000;
			break;
		
		case 5:
			StringCopy(&Var2, "D_FMM_1_0", 16);
			iVar6 = 5;
			iVar7 = 0;
			iVar1 = 5000;
			break;
		
		case 6:
			StringCopy(&Var2, "D_FMM_2_0", 16);
			iVar6 = 6;
			iVar7 = 0;
			iVar1 = 10000;
			break;
		
		default:
			Global_69518[0 /*14*/].f_5 = 3;
			func_203(iVar10, iParam0, 7);
			return;
			break;
	}
	func_195(&(Global_69518[0 /*14*/]), iVar10, iParam0, &Var2, iVar6, iVar7, iVar1, iVar0, iVar8, iVar9, 0);
}

void func_224(int iParam0)//Position - 0x3AAE1
{
	int iVar0;
	int iVar1;
	struct<2> Var2;
	int iVar6;
	int iVar7;
	int iVar8;
	int iVar9;
	int iVar10;
	
	iVar0 = false;
	iVar1 = 10;
	iVar6 = 0;
	iVar7 = 0;
	iVar8 = -1;
	iVar9 = 2;
	iVar10 = 7;
	switch (iParam0)
	{
		case 0:
			iVar6 = 0;
			iVar7 = 0;
			iVar1 = 0;
			break;
		
		case 1:
			iVar6 = 1;
			iVar7 = 0;
			iVar1 = 0;
			iVar0 = true;
			break;
		
		case 2:
			iVar6 = 1;
			iVar7 = 1;
			iVar1 = 0;
			iVar0 = true;
			break;
		
		case 3:
			iVar6 = 1;
			iVar7 = 2;
			iVar1 = 0;
			iVar0 = true;
			break;
		
		case 4:
			iVar6 = 2;
			iVar7 = 0;
			iVar1 = 0;
			iVar0 = true;
			break;
		
		case 5:
			iVar6 = 2;
			iVar7 = 1;
			iVar1 = 0;
			iVar0 = true;
			break;
		
		case 6:
			iVar6 = 2;
			iVar7 = 2;
			iVar1 = 0;
			iVar0 = true;
			break;
		
		case 7:
			iVar6 = 3;
			iVar7 = 0;
			iVar1 = 0;
			iVar0 = true;
			break;
		
		case 8:
			iVar6 = 3;
			iVar7 = 1;
			iVar1 = 0;
			iVar0 = true;
			break;
		
		case 9:
			iVar6 = 3;
			iVar7 = 2;
			iVar1 = 0;
			iVar0 = true;
			break;
		
		case 10:
			iVar6 = 4;
			iVar7 = 0;
			iVar1 = 0;
			iVar0 = true;
			break;
		
		case 11:
			iVar6 = 4;
			iVar7 = 1;
			iVar1 = 0;
			iVar0 = true;
			break;
		
		case 12:
			iVar6 = 4;
			iVar7 = 2;
			iVar1 = 0;
			iVar0 = true;
			break;
		
		case 13:
			iVar6 = 4;
			iVar7 = 3;
			iVar1 = 0;
			iVar0 = true;
			break;
		
		case 14:
			iVar6 = 4;
			iVar7 = 4;
			iVar1 = 0;
			iVar0 = true;
			break;
		
		case 15:
			iVar6 = 4;
			iVar7 = 5;
			iVar1 = 0;
			iVar0 = true;
			break;
		
		case 16:
			iVar6 = 4;
			iVar7 = 6;
			iVar1 = 0;
			iVar0 = true;
			break;
		
		case 17:
			iVar6 = 4;
			iVar7 = 7;
			iVar1 = 0;
			iVar0 = true;
			break;
		
		case 18:
			iVar6 = 4;
			iVar7 = 8;
			iVar1 = 0;
			iVar0 = true;
			break;
		
		case 19:
			iVar6 = 4;
			iVar7 = 9;
			iVar1 = 0;
			iVar0 = true;
			break;
		
		case 20:
			iVar6 = 4;
			iVar7 = 10;
			iVar0 = true;
			break;
		
		case 21:
			iVar6 = 4;
			iVar7 = 11;
			iVar0 = true;
			break;
		
		case 22:
			iVar6 = 4;
			iVar7 = 12;
			iVar0 = true;
			break;
		
		case 23:
			iVar6 = 4;
			iVar7 = 13;
			iVar0 = true;
			break;
		
		case 24:
			iVar6 = 4;
			iVar7 = 14;
			iVar0 = true;
			break;
		
		case 25:
			iVar6 = 4;
			iVar7 = 15;
			iVar0 = true;
			break;
		
		case 26:
			iVar6 = 5;
			iVar7 = 0;
			iVar1 = 0;
			iVar0 = true;
			break;
		
		case 27:
			iVar6 = 5;
			iVar7 = 1;
			iVar1 = 0;
			iVar0 = true;
			break;
		
		case 28:
			iVar6 = 5;
			iVar7 = 2;
			iVar1 = 0;
			iVar0 = true;
			break;
		
		case 29:
			iVar6 = 5;
			iVar7 = 3;
			iVar1 = 0;
			iVar0 = true;
			break;
		
		case 30:
			iVar6 = 5;
			iVar7 = 4;
			iVar1 = 0;
			iVar0 = true;
			break;
		
		case 31:
			iVar6 = 5;
			iVar7 = 5;
			iVar1 = 0;
			iVar0 = true;
			break;
		
		case 32:
			iVar6 = 6;
			iVar7 = 0;
			iVar1 = 0;
			iVar0 = true;
			break;
		
		case 33:
			iVar6 = 6;
			iVar7 = 1;
			iVar1 = 0;
			iVar0 = true;
			break;
		
		case 34:
			iVar6 = 6;
			iVar7 = 2;
			iVar1 = 0;
			iVar0 = true;
			break;
		
		case 35:
			iVar6 = 6;
			iVar7 = 3;
			iVar1 = 0;
			iVar0 = true;
			break;
		
		case 36:
			iVar6 = 6;
			iVar7 = 4;
			iVar1 = 0;
			iVar0 = true;
			break;
		
		case 37:
			iVar6 = 6;
			iVar7 = 5;
			iVar1 = 0;
			iVar0 = true;
			break;
		
		case 38:
			iVar6 = 7;
			iVar7 = 0;
			break;
		
		case 39:
			iVar6 = 8;
			iVar7 = 0;
			break;
		
		case 40:
			iVar6 = 9;
			iVar7 = 0;
			break;
		
		case 41:
			iVar6 = 10;
			iVar7 = 0;
			if (Global_262145.f_4169 != -1)
			{
				iVar1 = Global_262145.f_4169;
			}
			else
			{
				iVar1 = 115;
			}
			break;
		
		case 42:
			iVar6 = 10;
			iVar7 = 1;
			if (Global_262145.f_4170 != -1)
			{
				iVar1 = Global_262145.f_4170;
			}
			else
			{
				iVar1 = 125;
			}
			break;
		
		case 43:
			iVar6 = 10;
			iVar7 = 2;
			if (Global_262145.f_4171 != -1)
			{
				iVar1 = Global_262145.f_4171;
			}
			else
			{
				iVar1 = 130;
			}
			break;
		
		case 44:
			iVar6 = 10;
			iVar7 = 3;
			iVar1 = 0;
			iVar0 = true;
			break;
		
		case 45:
			iVar6 = 10;
			iVar7 = 4;
			iVar1 = 0;
			iVar0 = true;
			break;
		
		case 46:
			iVar6 = 10;
			iVar7 = 5;
			iVar1 = 0;
			iVar0 = true;
			break;
		
		case 47:
			iVar6 = 10;
			iVar7 = 6;
			iVar1 = 0;
			iVar0 = true;
			break;
		
		case 48:
			iVar6 = 10;
			iVar7 = 7;
			iVar1 = 0;
			iVar0 = true;
			break;
		
		case 49:
			iVar6 = 10;
			iVar7 = 8;
			iVar1 = 0;
			iVar0 = true;
			break;
		
		case 50:
			iVar6 = 10;
			iVar7 = 9;
			iVar1 = 0;
			iVar0 = true;
			break;
		
		case 51:
			iVar6 = 10;
			iVar7 = 10;
			iVar1 = 0;
			iVar0 = true;
			break;
		
		case 52:
			iVar6 = 10;
			iVar7 = 11;
			iVar1 = 0;
			iVar0 = true;
			break;
		
		case 53:
			iVar6 = 10;
			iVar7 = 12;
			iVar1 = 0;
			iVar0 = true;
			break;
		
		case 54:
			iVar6 = 10;
			iVar7 = 13;
			iVar1 = 0;
			iVar0 = true;
			break;
		
		case 55:
			iVar6 = 10;
			iVar7 = 14;
			iVar1 = 0;
			iVar0 = true;
			break;
		
		case 56:
			iVar6 = 10;
			iVar7 = 15;
			iVar1 = 0;
			iVar0 = true;
			break;
		
		case 57:
			iVar6 = 11;
			iVar7 = 0;
			iVar1 = 0;
			iVar0 = true;
			break;
		
		case 58:
			iVar6 = 11;
			iVar7 = 1;
			iVar1 = 0;
			iVar0 = true;
			break;
		
		case 59:
			iVar6 = 11;
			iVar7 = 2;
			if (Global_262145.f_4175 != -1)
			{
				iVar1 = Global_262145.f_4175;
			}
			else
			{
				iVar1 = 725;
			}
			break;
		
		case 60:
			iVar6 = 11;
			iVar7 = 3;
			iVar1 = 0;
			iVar0 = true;
			break;
		
		case 61:
			iVar6 = 11;
			iVar7 = 4;
			iVar1 = 0;
			iVar0 = true;
			break;
		
		case 62:
			iVar6 = 11;
			iVar7 = 5;
			iVar1 = 0;
			iVar0 = true;
			break;
		
		case 63:
			iVar6 = 11;
			iVar7 = 6;
			iVar1 = 0;
			iVar0 = true;
			break;
		
		case 64:
			iVar6 = 11;
			iVar7 = 7;
			iVar1 = 0;
			iVar0 = true;
			break;
		
		case 65:
			iVar6 = 11;
			iVar7 = 8;
			iVar1 = 0;
			iVar0 = true;
			break;
		
		case 66:
			iVar6 = 11;
			iVar7 = 9;
			iVar1 = 0;
			iVar0 = true;
			break;
		
		case 67:
			iVar6 = 11;
			iVar7 = 10;
			iVar1 = 0;
			iVar0 = true;
			break;
		
		case 68:
			iVar6 = 11;
			iVar7 = 11;
			iVar1 = 0;
			iVar0 = true;
			break;
		
		case 69:
			iVar6 = 11;
			iVar7 = 12;
			iVar1 = 0;
			iVar0 = true;
			break;
		
		case 70:
			iVar6 = 11;
			iVar7 = 13;
			iVar1 = 0;
			iVar0 = true;
			break;
		
		case 71:
			iVar6 = 11;
			iVar7 = 14;
			iVar1 = 0;
			iVar0 = true;
			break;
		
		case 72:
			iVar6 = 11;
			iVar7 = 15;
			iVar1 = 0;
			iVar0 = true;
			break;
		
		case 73:
			iVar6 = 12;
			iVar7 = 0;
			if (Global_262145.f_4172 != -1)
			{
				iVar1 = Global_262145.f_4172;
			}
			else
			{
				iVar1 = 65;
			}
			break;
		
		case 74:
			iVar6 = 12;
			iVar7 = 1;
			if (Global_262145.f_4173 != -1)
			{
				iVar1 = Global_262145.f_4173;
			}
			else
			{
				iVar1 = 65;
			}
			break;
		
		case 75:
			iVar6 = 12;
			iVar7 = 2;
			if (Global_262145.f_4174 != -1)
			{
				iVar1 = Global_262145.f_4174;
			}
			else
			{
				iVar1 = 95;
			}
			break;
		
		case 76:
			iVar6 = 12;
			iVar7 = 3;
			iVar1 = 0;
			iVar0 = true;
			break;
		
		case 77:
			iVar6 = 12;
			iVar7 = 4;
			iVar1 = 0;
			iVar0 = true;
			break;
		
		case 78:
			iVar6 = 12;
			iVar7 = 5;
			iVar1 = 0;
			iVar0 = true;
			break;
		
		case 79:
			iVar6 = 12;
			iVar7 = 6;
			iVar1 = 0;
			iVar0 = true;
			break;
		
		case 80:
			iVar6 = 12;
			iVar7 = 7;
			iVar1 = 0;
			iVar0 = true;
			break;
		
		case 81:
			iVar6 = 12;
			iVar7 = 8;
			iVar1 = 0;
			iVar0 = true;
			break;
		
		case 82:
			iVar6 = 12;
			iVar7 = 9;
			iVar1 = 0;
			iVar0 = true;
			break;
		
		case 83:
			iVar6 = 12;
			iVar7 = 10;
			iVar1 = 0;
			iVar0 = true;
			break;
		
		case 84:
			iVar6 = 12;
			iVar7 = 11;
			iVar1 = 0;
			iVar0 = true;
			break;
		
		case 85:
			iVar6 = 12;
			iVar7 = 12;
			iVar1 = 0;
			iVar0 = true;
			break;
		
		case 86:
			iVar6 = 12;
			iVar7 = 13;
			iVar1 = 0;
			iVar0 = true;
			break;
		
		case 87:
			iVar6 = 12;
			iVar7 = 14;
			iVar1 = 0;
			iVar0 = true;
			break;
		
		case 88:
			iVar6 = 12;
			iVar7 = 15;
			iVar1 = 0;
			iVar0 = true;
			break;
		
		case 89:
			iVar6 = 13;
			iVar7 = 0;
			break;
		
		case 90:
			iVar6 = 14;
			iVar7 = 0;
			break;
		
		case 91:
			iVar6 = 15;
			iVar7 = 0;
			break;
		
		default:
			Global_69518[0 /*14*/].f_5 = 3;
			func_203(iVar10, iParam0, 92);
			if (Global_69518[0 /*14*/].f_7 > 0)
			{
				Global_69518[0 /*14*/].f_7 = system::round((system::to_float(Global_69518[0 /*14*/].f_7) * Global_279748.f_57));
			}
			return;
			break;
	}
	iVar1 = system::round((system::to_float(iVar1) * Global_279748.f_57));
	StringCopy(&Var2, "T_FMM_", 16);
	StringIntConCat(&Var2, iVar6, 16);
	StringConCat(&Var2, "_", 16);
	StringIntConCat(&Var2, iVar7, 16);
	func_195(&(Global_69518[0 /*14*/]), iVar10, iParam0, &Var2, iVar6, iVar7, iVar1, iVar0, iVar8, iVar9, 0);
}

void func_225(int iParam0)//Position - 0x3B3D7
{
	int iVar0;
	int iVar1;
	struct<2> Var2;
	int iVar6;
	int iVar7;
	int iVar8;
	int iVar9;
	int iVar10;
	int iVar11;
	
	iVar0 = false;
	iVar1 = 10;
	iVar6 = 0;
	iVar7 = 0;
	iVar8 = -1;
	iVar9 = 2;
	iVar10 = 1;
	switch (iParam0)
	{
		case 0:
			iVar6 = 0;
			iVar7 = 0;
			iVar1 = 0;
			break;
		
		case 1:
			iVar6 = 1;
			iVar7 = 0;
			iVar1 = 965;
			break;
		
		case 2:
			iVar6 = 1;
			iVar7 = 1;
			iVar1 = 960;
			break;
		
		case 3:
			iVar6 = 1;
			iVar7 = 2;
			iVar1 = 9500;
			break;
		
		case 4:
			iVar6 = 1;
			iVar7 = 3;
			iVar1 = 975;
			break;
		
		case 5:
			iVar6 = 2;
			iVar7 = 0;
			iVar1 = 1185;
			break;
		
		case 6:
			iVar6 = 2;
			iVar7 = 1;
			iVar1 = 15000;
			break;
		
		case 7:
			iVar6 = 2;
			iVar7 = 2;
			iVar1 = 1115;
			break;
		
		case 8:
			iVar6 = 2;
			iVar7 = 3;
			iVar1 = 1105;
			break;
		
		case 9:
			iVar6 = 3;
			iVar7 = 0;
			iVar1 = 25000;
			break;
		
		case 10:
			iVar6 = 4;
			iVar7 = 0;
			iVar1 = 510;
			break;
		
		case 11:
			iVar6 = 4;
			iVar7 = 1;
			iVar1 = 530;
			break;
		
		case 12:
			iVar6 = 4;
			iVar7 = 2;
			iVar1 = 5500;
			break;
		
		case 13:
			iVar6 = 4;
			iVar7 = 3;
			iVar1 = 535;
			break;
		
		case 14:
			iVar6 = 5;
			iVar7 = 0;
			iVar1 = 1510;
			break;
		
		case 15:
			iVar6 = 5;
			iVar7 = 1;
			iVar1 = 1530;
			break;
		
		case 16:
			iVar6 = 5;
			iVar7 = 2;
			iVar1 = 14500;
			break;
		
		case 17:
			iVar6 = 5;
			iVar7 = 3;
			iVar1 = 13000;
			break;
		
		case 18:
			iVar6 = 6;
			iVar7 = 0;
			iVar1 = 8000;
			break;
		
		case 19:
			iVar6 = 6;
			iVar7 = 1;
			iVar1 = 1265;
			break;
		
		case 20:
			iVar6 = 6;
			iVar7 = 2;
			iVar1 = 8500;
			break;
		
		case 21:
			iVar6 = 6;
			iVar7 = 3;
			iVar1 = 1210;
			break;
		
		case 22:
			iVar6 = 7;
			iVar7 = 0;
			iVar1 = 2360;
			break;
		
		case 23:
			iVar6 = 7;
			iVar7 = 1;
			iVar1 = 22500;
			break;
		
		case 24:
			iVar6 = 7;
			iVar7 = 2;
			iVar1 = 2375;
			break;
		
		case 25:
			iVar6 = 7;
			iVar7 = 3;
			iVar1 = 2485;
			break;
		
		default:
			Global_69518[0 /*14*/].f_5 = 3;
			func_203(iVar10, iParam0, 26);
			return;
			break;
	}
	StringCopy(&Var2, "M_FMM_", 16);
	StringIntConCat(&Var2, iVar6, 16);
	StringConCat(&Var2, "_", 16);
	StringIntConCat(&Var2, iVar7, 16);
	iVar11 = (iParam0 - 1);
	if (iVar11 >= 0 && iVar11 < 26)
	{
		iVar1 = system::round(((system::to_float(iVar1) * Global_262145.f_925[iVar11]) * Global_279748.f_22));
	}
	func_195(&(Global_69518[0 /*14*/]), iVar10, iParam0, &Var2, iVar6, iVar7, iVar1, iVar0, iVar8, iVar9, 0);
}

void func_226(int iParam0)//Position - 0x3B68C
{
	int iVar0;
	int iVar1;
	struct<2> Var2;
	int iVar6;
	int iVar7;
	int iVar8;
	int iVar9;
	int iVar10;
	int iVar11;
	
	iVar0 = false;
	iVar1 = 10;
	iVar6 = 0;
	iVar7 = 0;
	iVar8 = -1;
	iVar9 = 2;
	iVar10 = 6;
	switch (iParam0)
	{
		case 0:
			iVar6 = 0;
			iVar7 = 0;
			iVar1 = 0;
			iVar0 = true;
			break;
		
		case 1:
			iVar6 = 0;
			iVar7 = 1;
			iVar1 = 0;
			iVar0 = true;
			break;
		
		case 2:
			iVar6 = 0;
			iVar7 = 2;
			iVar1 = 0;
			iVar0 = true;
			break;
		
		case 3:
			iVar6 = 0;
			iVar7 = 3;
			iVar1 = 0;
			iVar0 = true;
			break;
		
		case 4:
			iVar6 = 0;
			iVar7 = 4;
			iVar1 = 0;
			iVar0 = true;
			break;
		
		case 5:
			iVar6 = 0;
			iVar7 = 5;
			iVar1 = 0;
			iVar0 = true;
			break;
		
		case 6:
			iVar6 = 0;
			iVar7 = 6;
			iVar1 = 0;
			iVar0 = true;
			break;
		
		case 7:
			iVar6 = 0;
			iVar7 = 7;
			iVar1 = 0;
			iVar0 = true;
			break;
		
		case 8:
			iVar6 = 0;
			iVar7 = 8;
			iVar1 = 0;
			iVar0 = true;
			break;
		
		case 9:
			iVar6 = 0;
			iVar7 = 9;
			iVar1 = 0;
			iVar0 = true;
			break;
		
		case 10:
			iVar6 = 0;
			iVar7 = 10;
			iVar1 = 300;
			break;
		
		case 11:
			iVar6 = 0;
			iVar7 = 11;
			iVar1 = 0;
			iVar0 = true;
			break;
		
		case 12:
			iVar6 = 0;
			iVar7 = 12;
			iVar1 = 0;
			iVar0 = true;
			break;
		
		case 13:
			iVar6 = 0;
			iVar7 = 13;
			iVar1 = 0;
			iVar0 = true;
			break;
		
		case 14:
			iVar6 = 0;
			iVar7 = 14;
			iVar1 = 0;
			iVar0 = true;
			break;
		
		case 15:
			iVar6 = 0;
			iVar7 = 15;
			iVar1 = 0;
			iVar0 = true;
			break;
		
		case 16:
			iVar6 = 1;
			iVar7 = 0;
			iVar1 = 285;
			break;
		
		case 17:
			iVar6 = 1;
			iVar7 = 1;
			iVar1 = 180;
			break;
		
		case 18:
			iVar6 = 1;
			iVar7 = 2;
			iVar1 = 190;
			break;
		
		case 19:
			iVar6 = 1;
			iVar7 = 3;
			iVar1 = 190;
			break;
		
		case 20:
			iVar6 = 1;
			iVar7 = 4;
			iVar1 = 165;
			break;
		
		case 21:
			iVar6 = 1;
			iVar7 = 5;
			iVar1 = 200;
			break;
		
		case 22:
			iVar6 = 1;
			iVar7 = 6;
			iVar1 = 480;
			break;
		
		case 23:
			iVar6 = 1;
			iVar7 = 7;
			iVar1 = 155;
			break;
		
		case 24:
			iVar6 = 1;
			iVar7 = 8;
			iVar1 = 350;
			break;
		
		case 25:
			iVar6 = 1;
			iVar7 = 9;
			iVar1 = 290;
			break;
		
		case 26:
			iVar6 = 1;
			iVar7 = 10;
			iVar1 = 165;
			break;
		
		case 27:
			iVar6 = 1;
			iVar7 = 11;
			iVar1 = 165;
			break;
		
		case 28:
			iVar6 = 1;
			iVar7 = 12;
			iVar1 = 170;
			break;
		
		case 29:
			iVar6 = 1;
			iVar7 = 13;
			iVar1 = 155;
			break;
		
		case 30:
			iVar6 = 1;
			iVar7 = 14;
			iVar1 = 165;
			break;
		
		case 31:
			iVar6 = 1;
			iVar7 = 15;
			iVar1 = 165;
			break;
	}
	switch (iParam0)
	{
		case 32:
			iVar6 = 2;
			iVar7 = 0;
			iVar1 = 0;
			iVar0 = true;
			break;
		
		case 33:
			iVar6 = 2;
			iVar7 = 1;
			iVar1 = 0;
			iVar0 = true;
			break;
		
		case 34:
			iVar6 = 2;
			iVar7 = 2;
			iVar1 = 0;
			iVar0 = true;
			break;
		
		case 35:
			iVar6 = 2;
			iVar7 = 3;
			iVar1 = 0;
			iVar0 = true;
			break;
		
		case 36:
			iVar6 = 2;
			iVar7 = 4;
			iVar1 = 0;
			iVar0 = true;
			break;
		
		case 37:
			iVar6 = 2;
			iVar7 = 5;
			iVar1 = 0;
			iVar0 = true;
			break;
		
		case 38:
			iVar6 = 2;
			iVar7 = 6;
			iVar1 = 160;
			break;
		
		case 39:
			iVar6 = 2;
			iVar7 = 7;
			iVar1 = 0;
			iVar0 = true;
			break;
		
		case 40:
			iVar6 = 2;
			iVar7 = 8;
			iVar1 = 0;
			iVar0 = true;
			break;
		
		case 41:
			iVar6 = 2;
			iVar7 = 9;
			iVar1 = 0;
			iVar0 = true;
			break;
		
		case 42:
			iVar6 = 2;
			iVar7 = 10;
			iVar1 = 0;
			iVar0 = true;
			break;
		
		case 43:
			iVar6 = 2;
			iVar7 = 11;
			iVar1 = 0;
			iVar0 = true;
			break;
		
		case 44:
			iVar6 = 2;
			iVar7 = 12;
			iVar1 = 0;
			iVar0 = true;
			break;
		
		case 45:
			iVar6 = 2;
			iVar7 = 13;
			iVar1 = 205;
			break;
		
		case 46:
			iVar6 = 2;
			iVar7 = 14;
			iVar1 = 0;
			iVar0 = true;
			break;
		
		case 47:
			iVar6 = 2;
			iVar7 = 15;
			iVar1 = 0;
			iVar0 = true;
			break;
		
		case 48:
			iVar6 = 3;
			iVar7 = 0;
			iVar1 = 560;
			break;
		
		case 49:
			iVar6 = 3;
			iVar7 = 1;
			iVar1 = 275;
			break;
		
		case 50:
			iVar6 = 3;
			iVar7 = 2;
			iVar1 = 290;
			break;
		
		case 51:
			iVar6 = 3;
			iVar7 = 3;
			iVar1 = 300;
			break;
		
		case 52:
			iVar6 = 3;
			iVar7 = 4;
			iVar1 = 360;
			break;
		
		case 53:
			iVar6 = 3;
			iVar7 = 5;
			iVar1 = 270;
			break;
		
		case 54:
			iVar6 = 3;
			iVar7 = 6;
			iVar1 = 265;
			break;
		
		case 55:
			iVar6 = 3;
			iVar7 = 7;
			iVar1 = 295;
			break;
		
		case 56:
			iVar6 = 3;
			iVar7 = 8;
			iVar1 = 355;
			break;
		
		case 57:
			iVar6 = 3;
			iVar7 = 9;
			iVar1 = 340;
			break;
		
		case 58:
			iVar6 = 3;
			iVar7 = 10;
			iVar1 = 285;
			break;
		
		case 59:
			iVar6 = 3;
			iVar7 = 11;
			iVar1 = 310;
			break;
		
		case 60:
			iVar6 = 3;
			iVar7 = 12;
			iVar1 = 350;
			break;
		
		case 61:
			iVar6 = 3;
			iVar7 = 13;
			iVar1 = 305;
			break;
		
		case 62:
			iVar6 = 3;
			iVar7 = 14;
			iVar1 = 280;
			break;
		
		case 63:
			iVar6 = 3;
			iVar7 = 15;
			iVar1 = 320;
			break;
	}
	switch (iParam0)
	{
		case 64:
			iVar6 = 4;
			iVar7 = 0;
			iVar1 = 115;
			break;
		
		case 65:
			iVar6 = 4;
			iVar7 = 1;
			iVar1 = 115;
			break;
		
		case 66:
			iVar6 = 4;
			iVar7 = 2;
			iVar1 = 110;
			break;
		
		case 67:
			iVar6 = 4;
			iVar7 = 3;
			iVar1 = 0;
			iVar0 = true;
			break;
		
		case 68:
			iVar6 = 4;
			iVar7 = 4;
			iVar1 = 125;
			break;
		
		case 69:
			iVar6 = 4;
			iVar7 = 5;
			iVar1 = 0;
			iVar0 = true;
			break;
		
		case 70:
			iVar6 = 4;
			iVar7 = 6;
			iVar1 = 0;
			iVar0 = true;
			break;
		
		case 71:
			iVar6 = 4;
			iVar7 = 7;
			iVar1 = 0;
			iVar0 = true;
			break;
		
		case 72:
			iVar6 = 4;
			iVar7 = 8;
			iVar1 = 0;
			iVar0 = true;
			break;
		
		case 73:
			iVar6 = 4;
			iVar7 = 9;
			iVar1 = 0;
			iVar0 = true;
			break;
		
		case 74:
			iVar6 = 4;
			iVar7 = 10;
			iVar1 = 0;
			iVar0 = true;
			break;
		
		case 75:
			iVar6 = 4;
			iVar7 = 11;
			iVar1 = 0;
			iVar0 = true;
			break;
		
		case 76:
			iVar6 = 4;
			iVar7 = 12;
			iVar1 = 0;
			iVar0 = true;
			break;
		
		case 77:
			iVar6 = 4;
			iVar7 = 13;
			iVar1 = 0;
			iVar0 = true;
			break;
		
		case 78:
			iVar6 = 4;
			iVar7 = 14;
			iVar1 = 0;
			iVar0 = true;
			break;
		
		case 79:
			iVar6 = 4;
			iVar7 = 15;
			iVar1 = 0;
			iVar0 = true;
			break;
		
		case 80:
			iVar6 = 5;
			iVar7 = 0;
			iVar1 = 50;
			break;
		
		case 81:
			iVar6 = 5;
			iVar7 = 1;
			iVar1 = 35;
			break;
		
		case 82:
			iVar6 = 5;
			iVar7 = 2;
			iVar1 = 50;
			break;
		
		case 83:
			iVar6 = 5;
			iVar7 = 3;
			iVar1 = 50;
			break;
		
		case 84:
			iVar6 = 5;
			iVar7 = 4;
			iVar1 = 0;
			iVar0 = true;
			break;
		
		case 85:
			iVar6 = 5;
			iVar7 = 5;
			iVar1 = 0;
			iVar0 = true;
			break;
		
		case 86:
			iVar6 = 5;
			iVar7 = 6;
			iVar1 = 0;
			iVar0 = true;
			break;
		
		case 87:
			iVar6 = 5;
			iVar7 = 7;
			iVar1 = 0;
			iVar0 = true;
			break;
		
		case 88:
			iVar6 = 5;
			iVar7 = 8;
			iVar1 = 0;
			iVar0 = true;
			break;
		
		case 89:
			iVar6 = 5;
			iVar7 = 9;
			iVar1 = 0;
			iVar0 = true;
			break;
		
		case 90:
			iVar6 = 5;
			iVar7 = 10;
			iVar1 = 0;
			iVar0 = true;
			break;
		
		case 91:
			iVar6 = 5;
			iVar7 = 11;
			iVar1 = 0;
			iVar0 = true;
			break;
		
		case 92:
			iVar6 = 5;
			iVar7 = 12;
			iVar1 = 0;
			iVar0 = true;
			break;
		
		case 93:
			iVar6 = 5;
			iVar7 = 13;
			iVar1 = 0;
			iVar0 = true;
			break;
		
		case 94:
			iVar6 = 5;
			iVar7 = 14;
			iVar1 = 0;
			iVar0 = true;
			break;
		
		case 95:
			iVar6 = 5;
			iVar7 = 15;
			iVar1 = 0;
			iVar0 = true;
			break;
	}
	switch (iParam0)
	{
		case 96:
			iVar6 = 6;
			iVar7 = 0;
			iVar1 = 65;
			break;
		
		case 97:
			iVar6 = 6;
			iVar7 = 1;
			iVar1 = 65;
			break;
		
		case 98:
			iVar6 = 6;
			iVar7 = 2;
			iVar1 = 0;
			iVar0 = true;
			break;
		
		case 99:
			iVar6 = 6;
			iVar7 = 3;
			iVar1 = 0;
			iVar0 = true;
			break;
		
		case 100:
			iVar6 = 6;
			iVar7 = 4;
			iVar1 = 0;
			iVar0 = true;
			break;
		
		case 101:
			iVar6 = 6;
			iVar7 = 5;
			iVar1 = 0;
			iVar0 = true;
			break;
		
		case 102:
			iVar6 = 6;
			iVar7 = 6;
			iVar1 = 0;
			iVar0 = true;
			break;
		
		case 103:
			iVar6 = 6;
			iVar7 = 7;
			iVar1 = 0;
			iVar0 = true;
			break;
		
		case 104:
			iVar6 = 6;
			iVar7 = 8;
			iVar1 = 0;
			iVar0 = true;
			break;
		
		case 105:
			iVar6 = 6;
			iVar7 = 9;
			iVar1 = 0;
			iVar0 = true;
			break;
		
		case 106:
			iVar6 = 6;
			iVar7 = 10;
			iVar1 = 0;
			iVar0 = true;
			break;
		
		case 107:
			iVar6 = 6;
			iVar7 = 11;
			iVar1 = 0;
			iVar0 = true;
			break;
		
		case 108:
			iVar6 = 6;
			iVar7 = 12;
			iVar1 = 0;
			iVar0 = true;
			break;
		
		case 109:
			iVar6 = 6;
			iVar7 = 13;
			iVar1 = 0;
			iVar0 = true;
			break;
		
		case 110:
			iVar6 = 6;
			iVar7 = 14;
			iVar1 = 0;
			iVar0 = true;
			break;
		
		case 111:
			iVar6 = 6;
			iVar7 = 15;
			iVar1 = 0;
			iVar0 = true;
			break;
		
		case 112:
			iVar6 = 7;
			iVar7 = 0;
			iVar1 = 165;
			break;
		
		case 113:
			iVar6 = 7;
			iVar7 = 1;
			iVar1 = 165;
			break;
		
		case 114:
			iVar6 = 7;
			iVar7 = 2;
			iVar1 = 185;
			break;
		
		case 115:
			iVar6 = 7;
			iVar7 = 3;
			iVar1 = 175;
			break;
		
		case 116:
			iVar6 = 7;
			iVar7 = 4;
			iVar1 = 185;
			break;
		
		case 117:
			iVar6 = 7;
			iVar7 = 5;
			iVar1 = 460;
			break;
		
		case 118:
			iVar6 = 7;
			iVar7 = 6;
			iVar1 = 185;
			break;
		
		case 119:
			iVar6 = 7;
			iVar7 = 7;
			iVar1 = 190;
			break;
		
		case 120:
			iVar6 = 7;
			iVar7 = 8;
			iVar1 = 165;
			break;
		
		case 121:
			iVar6 = 7;
			iVar7 = 9;
			iVar1 = 165;
			break;
		
		case 122:
			iVar6 = 7;
			iVar7 = 10;
			iVar1 = 185;
			break;
		
		case 123:
			iVar6 = 7;
			iVar7 = 11;
			iVar1 = 175;
			break;
		
		case 124:
			iVar6 = 7;
			iVar7 = 12;
			iVar1 = 235;
			break;
		
		case 125:
			iVar6 = 7;
			iVar7 = 13;
			iVar1 = 445;
			break;
		
		case 126:
			iVar6 = 7;
			iVar7 = 14;
			iVar1 = 185;
			break;
		
		case 127:
			iVar6 = 7;
			iVar7 = 15;
			iVar1 = 190;
			break;
	}
	switch (iParam0)
	{
		case 128:
			iVar6 = 8;
			iVar7 = 0;
			iVar1 = 175;
			break;
		
		case 129:
			iVar6 = 8;
			iVar7 = 1;
			iVar1 = 215;
			break;
		
		case 130:
			iVar6 = 8;
			iVar7 = 2;
			iVar1 = 225;
			break;
		
		case 131:
			iVar6 = 8;
			iVar7 = 3;
			iVar1 = 230;
			break;
		
		case 132:
			iVar6 = 8;
			iVar7 = 4;
			iVar1 = 235;
			break;
		
		case 133:
			iVar6 = 8;
			iVar7 = 5;
			iVar1 = 215;
			break;
		
		case 134:
			iVar6 = 8;
			iVar7 = 6;
			iVar1 = 205;
			break;
		
		case 135:
			iVar6 = 8;
			iVar7 = 7;
			iVar1 = 245;
			break;
		
		case 136:
			iVar6 = 8;
			iVar7 = 8;
			iVar1 = 225;
			break;
		
		case 137:
			iVar6 = 8;
			iVar7 = 9;
			iVar1 = 215;
			break;
		
		case 138:
			iVar6 = 8;
			iVar7 = 10;
			iVar1 = 225;
			break;
		
		case 139:
			iVar6 = 8;
			iVar7 = 11;
			iVar1 = 230;
			break;
		
		case 140:
			iVar6 = 8;
			iVar7 = 12;
			iVar1 = 235;
			break;
		
		case 141:
			iVar6 = 8;
			iVar7 = 13;
			iVar1 = 215;
			break;
		
		case 142:
			iVar6 = 8;
			iVar7 = 14;
			iVar1 = 425;
			break;
		
		case 143:
			iVar6 = 8;
			iVar7 = 15;
			iVar1 = 245;
			break;
		
		case 144:
			iVar6 = 9;
			iVar7 = 0;
			iVar1 = 225;
			break;
		
		case 145:
			iVar6 = 9;
			iVar7 = 1;
			iVar1 = 135;
			break;
		
		case 146:
			iVar6 = 9;
			iVar7 = 2;
			iVar1 = 130;
			break;
		
		case 147:
			iVar6 = 9;
			iVar7 = 3;
			iVar1 = 110;
			break;
		
		case 148:
			iVar6 = 9;
			iVar7 = 4;
			iVar1 = 140;
			break;
		
		case 149:
			iVar6 = 9;
			iVar7 = 5;
			iVar1 = 95;
			break;
		
		case 150:
			iVar6 = 9;
			iVar7 = 6;
			iVar1 = 100;
			break;
		
		case 151:
			iVar6 = 9;
			iVar7 = 7;
			iVar1 = 110;
			break;
		
		case 152:
			iVar6 = 9;
			iVar7 = 8;
			iVar1 = 95;
			break;
		
		case 153:
			iVar6 = 9;
			iVar7 = 9;
			iVar1 = 105;
			break;
		
		case 154:
			iVar6 = 9;
			iVar7 = 10;
			iVar1 = 105;
			break;
		
		case 155:
			iVar6 = 9;
			iVar7 = 11;
			iVar1 = 115;
			break;
		
		case 156:
			iVar6 = 9;
			iVar7 = 12;
			iVar1 = 115;
			break;
		
		case 157:
			iVar6 = 9;
			iVar7 = 13;
			iVar1 = 115;
			break;
		
		case 158:
			iVar6 = 9;
			iVar7 = 14;
			iVar1 = 500;
			break;
		
		case 159:
			iVar6 = 9;
			iVar7 = 15;
			iVar1 = 440;
			break;
	}
	switch (iParam0)
	{
		case 160:
			iVar6 = 10;
			iVar7 = 0;
			iVar1 = 1090;
			break;
		
		case 161:
			iVar6 = 10;
			iVar7 = 1;
			iVar1 = 0;
			iVar0 = true;
			break;
		
		case 162:
			iVar6 = 10;
			iVar7 = 2;
			iVar1 = 0;
			iVar0 = true;
			break;
		
		case 163:
			iVar6 = 10;
			iVar7 = 3;
			iVar1 = 0;
			iVar0 = true;
			break;
		
		case 164:
			iVar6 = 10;
			iVar7 = 4;
			iVar1 = 0;
			iVar0 = true;
			break;
		
		case 165:
			iVar6 = 10;
			iVar7 = 5;
			iVar1 = 0;
			iVar0 = true;
			break;
		
		case 166:
			iVar6 = 10;
			iVar7 = 6;
			iVar1 = 0;
			iVar0 = true;
			break;
		
		case 167:
			iVar6 = 10;
			iVar7 = 7;
			iVar1 = 600;
			break;
		
		case 168:
			iVar6 = 10;
			iVar7 = 8;
			iVar1 = 0;
			iVar0 = true;
			break;
		
		case 169:
			iVar6 = 10;
			iVar7 = 9;
			iVar1 = 0;
			iVar0 = true;
			break;
		
		case 170:
			iVar6 = 10;
			iVar7 = 10;
			iVar1 = 0;
			iVar0 = true;
			break;
		
		case 171:
			iVar6 = 10;
			iVar7 = 11;
			iVar1 = 0;
			iVar0 = true;
			break;
		
		case 172:
			iVar6 = 10;
			iVar7 = 12;
			iVar1 = 1865;
			break;
		
		case 173:
			iVar6 = 10;
			iVar7 = 13;
			iVar1 = 0;
			iVar0 = true;
			break;
		
		case 174:
			iVar6 = 10;
			iVar7 = 14;
			iVar1 = 490;
			break;
		
		case 175:
			iVar6 = 10;
			iVar7 = 15;
			iVar1 = 0;
			iVar0 = true;
			break;
		
		case 176:
			iVar6 = 11;
			iVar7 = 0;
			iVar1 = 0;
			iVar0 = true;
			break;
		
		case 177:
			iVar6 = 11;
			iVar7 = 1;
			iVar1 = 0;
			iVar0 = true;
			break;
		
		case 178:
			iVar6 = 11;
			iVar7 = 2;
			iVar1 = 0;
			iVar0 = true;
			break;
		
		case 179:
			iVar6 = 11;
			iVar7 = 3;
			iVar1 = 0;
			iVar0 = true;
			break;
		
		case 180:
			iVar6 = 11;
			iVar7 = 4;
			iVar1 = 0;
			iVar0 = true;
			break;
		
		case 181:
			iVar6 = 11;
			iVar7 = 5;
			iVar1 = 0;
			iVar0 = true;
			break;
		
		case 182:
			iVar6 = 11;
			iVar7 = 6;
			iVar1 = 0;
			iVar0 = true;
			break;
		
		case 183:
			iVar6 = 11;
			iVar7 = 7;
			iVar1 = 0;
			iVar0 = true;
			break;
		
		case 184:
			iVar6 = 11;
			iVar7 = 8;
			iVar1 = 0;
			iVar0 = true;
			break;
		
		case 185:
			iVar6 = 11;
			iVar7 = 9;
			iVar1 = 470;
			break;
		
		case 186:
			iVar6 = 11;
			iVar7 = 10;
			iVar1 = 0;
			iVar0 = true;
			break;
		
		case 187:
			iVar6 = 11;
			iVar7 = 11;
			iVar1 = 0;
			iVar0 = true;
			break;
		
		case 188:
			iVar6 = 11;
			iVar7 = 12;
			iVar1 = 1795;
			break;
		
		case 189:
			iVar6 = 11;
			iVar7 = 13;
			iVar1 = 0;
			iVar0 = true;
			break;
		
		case 190:
			iVar6 = 11;
			iVar7 = 14;
			iVar1 = 1830;
			break;
		
		case 191:
			iVar6 = 11;
			iVar7 = 15;
			iVar1 = 455;
			break;
	}
	switch (iParam0)
	{
		case 192:
			iVar6 = 12;
			iVar7 = 0;
			iVar1 = 455;
			break;
		
		case 193:
			iVar6 = 12;
			iVar7 = 1;
			iVar1 = 2110;
			break;
		
		case 194:
			iVar6 = 12;
			iVar7 = 2;
			iVar1 = 380;
			break;
		
		case 195:
			iVar6 = 12;
			iVar7 = 3;
			iVar1 = 1655;
			break;
		
		case 196:
			iVar6 = 12;
			iVar7 = 4;
			iVar1 = 2500;
			break;
		
		case 197:
			iVar6 = 12;
			iVar7 = 5;
			iVar1 = 415;
			break;
		
		case 198:
			iVar6 = 12;
			iVar7 = 6;
			iVar1 = 730;
			break;
		
		case 199:
			iVar6 = 12;
			iVar7 = 7;
			iVar1 = 445;
			break;
		
		case 200:
			iVar6 = 12;
			iVar7 = 8;
			iVar1 = 425;
			break;
		
		case 201:
			iVar6 = 12;
			iVar7 = 9;
			iVar1 = 410;
			break;
		
		case 202:
			iVar6 = 12;
			iVar7 = 10;
			iVar1 = 480;
			break;
		
		case 203:
			iVar6 = 12;
			iVar7 = 11;
			iVar1 = 485;
			break;
		
		case 204:
			iVar6 = 12;
			iVar7 = 12;
			iVar1 = 480;
			break;
		
		case 205:
			iVar6 = 12;
			iVar7 = 13;
			iVar1 = 395;
			break;
		
		case 206:
			iVar6 = 12;
			iVar7 = 14;
			iVar1 = 495;
			break;
		
		case 207:
			iVar6 = 12;
			iVar7 = 15;
			iVar1 = 2090;
			break;
		
		case 208:
			iVar6 = 13;
			iVar7 = 0;
			iVar1 = 0;
			iVar0 = true;
			break;
		
		case 209:
			iVar6 = 13;
			iVar7 = 1;
			iVar1 = 0;
			iVar0 = true;
			break;
		
		case 210:
			iVar6 = 13;
			iVar7 = 2;
			iVar1 = 0;
			iVar0 = true;
			break;
		
		case 211:
			iVar6 = 13;
			iVar7 = 3;
			iVar1 = 0;
			iVar0 = true;
			break;
		
		case 212:
			iVar6 = 13;
			iVar7 = 4;
			iVar1 = 0;
			iVar0 = true;
			break;
		
		case 213:
			iVar6 = 13;
			iVar7 = 5;
			iVar1 = 0;
			iVar0 = true;
			break;
		
		case 214:
			iVar6 = 13;
			iVar7 = 6;
			iVar1 = 0;
			iVar0 = true;
			break;
		
		case 215:
			iVar6 = 13;
			iVar7 = 7;
			iVar1 = 0;
			iVar0 = true;
			break;
		
		case 216:
			iVar6 = 13;
			iVar7 = 8;
			iVar1 = 0;
			iVar0 = true;
			break;
		
		case 217:
			iVar6 = 13;
			iVar7 = 9;
			iVar1 = 0;
			iVar0 = true;
			break;
		
		case 218:
			iVar6 = 13;
			iVar7 = 10;
			iVar1 = 0;
			iVar0 = true;
			break;
		
		case 219:
			iVar6 = 13;
			iVar7 = 11;
			iVar1 = 0;
			iVar0 = true;
			break;
		
		case 220:
			iVar6 = 13;
			iVar7 = 12;
			iVar1 = 0;
			iVar0 = true;
			break;
		
		case 221:
			iVar6 = 13;
			iVar7 = 13;
			iVar1 = 0;
			iVar0 = true;
			break;
		
		case 222:
			iVar6 = 13;
			iVar7 = 14;
			iVar1 = 0;
			iVar0 = true;
			break;
		
		case 223:
			iVar6 = 13;
			iVar7 = 15;
			iVar1 = 0;
			iVar0 = true;
			break;
	}
	switch (iParam0)
	{
		case 224:
			iVar6 = 14;
			iVar7 = 0;
			iVar1 = 450;
			break;
		
		case 225:
			iVar6 = 14;
			iVar7 = 1;
			iVar1 = 685;
			break;
		
		case 226:
			iVar6 = 14;
			iVar7 = 2;
			iVar1 = 420;
			break;
		
		case 227:
			iVar6 = 14;
			iVar7 = 3;
			iVar1 = 365;
			break;
		
		case 228:
			iVar6 = 14;
			iVar7 = 4;
			iVar1 = 465;
			break;
		
		case 229:
			iVar6 = 14;
			iVar7 = 5;
			iVar1 = 405;
			break;
		
		case 230:
			iVar6 = 14;
			iVar7 = 6;
			iVar1 = 400;
			break;
		
		case 231:
			iVar6 = 14;
			iVar7 = 7;
			iVar1 = 440;
			break;
		
		case 232:
			iVar6 = 14;
			iVar7 = 8;
			iVar1 = 385;
			break;
		
		case 233:
			iVar6 = 14;
			iVar7 = 9;
			iVar1 = 435;
			break;
		
		case 234:
			iVar6 = 14;
			iVar7 = 10;
			iVar1 = 375;
			break;
		
		case 235:
			iVar6 = 14;
			iVar7 = 11;
			iVar1 = 390;
			break;
		
		case 236:
			iVar6 = 14;
			iVar7 = 12;
			iVar1 = 475;
			break;
		
		case 237:
			iVar6 = 14;
			iVar7 = 13;
			iVar1 = 430;
			break;
		
		case 238:
			iVar6 = 14;
			iVar7 = 14;
			iVar1 = 490;
			break;
		
		case 239:
			iVar6 = 14;
			iVar7 = 15;
			iVar1 = 490;
			break;
		
		case 240:
			iVar6 = 15;
			iVar7 = 0;
			iVar1 = 615;
			break;
		
		case 241:
			iVar6 = 15;
			iVar7 = 1;
			iVar1 = 315;
			break;
		
		case 242:
			iVar6 = 15;
			iVar7 = 2;
			iVar1 = 415;
			break;
		
		case 243:
			iVar6 = 15;
			iVar7 = 3;
			iVar1 = 425;
			break;
		
		case 244:
			iVar6 = 15;
			iVar7 = 4;
			iVar1 = 435;
			break;
		
		case 245:
			iVar6 = 15;
			iVar7 = 5;
			iVar1 = 445;
			break;
		
		case 246:
			iVar6 = 15;
			iVar7 = 6;
			iVar1 = 640;
			break;
		
		case 247:
			iVar6 = 15;
			iVar7 = 7;
			iVar1 = 460;
			break;
		
		case 248:
			iVar6 = 15;
			iVar7 = 8;
			iVar1 = 465;
			break;
		
		case 249:
			iVar6 = 15;
			iVar7 = 9;
			iVar1 = 745;
			break;
		
		case 250:
			iVar6 = 15;
			iVar7 = 10;
			iVar1 = 845;
			break;
		
		case 251:
			iVar6 = 15;
			iVar7 = 11;
			iVar1 = 1420;
			break;
		
		case 252:
			iVar6 = 15;
			iVar7 = 12;
			iVar1 = 475;
			break;
		
		case 253:
			iVar6 = 15;
			iVar7 = 13;
			iVar1 = 470;
			break;
		
		case 254:
			iVar6 = 15;
			iVar7 = 14;
			iVar1 = 1000;
			break;
		
		case 255:
			iVar6 = 15;
			iVar7 = 15;
			iVar1 = 690;
			break;
	}
	iVar11 = iParam0;
	if (iVar11 >= 0 && iVar11 < 256)
	{
		iVar1 = system::round(((system::to_float(iVar1) * Global_262145.f_668[iVar11]) * Global_279748.f_17));
	}
	StringCopy(&Var2, "F_FMM_", 16);
	StringIntConCat(&Var2, iVar6, 16);
	StringConCat(&Var2, "_", 16);
	StringIntConCat(&Var2, iVar7, 16);
	if (iParam0 >= 256)
	{
		Global_69518[0 /*14*/].f_5 = 3;
		func_203(iVar10, iParam0, 256);
		if (Global_69518[0 /*14*/].f_7 > 0)
		{
			Global_69518[0 /*14*/].f_7 = system::round((system::to_float(Global_69518[0 /*14*/].f_7) * Global_279748.f_17));
		}
	}
	else
	{
		func_195(&(Global_69518[0 /*14*/]), iVar10, iParam0, &Var2, iVar6, iVar7, iVar1, iVar0, iVar8, iVar9, 0);
	}
}

void func_227(int iParam0)//Position - 0x3CCC9
{
	int iVar0;
	int iVar1;
	struct<2> Var2;
	int iVar6;
	int iVar7;
	int iVar8;
	int iVar9;
	int iVar10;
	int iVar11;
	
	iVar0 = false;
	iVar1 = 10;
	iVar6 = 0;
	iVar7 = 0;
	iVar8 = -1;
	iVar9 = 2;
	iVar10 = 4;
	switch (iParam0)
	{
		case 0:
			iVar6 = 0;
			iVar7 = 0;
			iVar1 = 335;
			break;
		
		case 1:
			iVar6 = 0;
			iVar7 = 1;
			iVar1 = 460;
			break;
		
		case 2:
			iVar6 = 0;
			iVar7 = 2;
			iVar1 = 455;
			break;
		
		case 3:
			iVar6 = 0;
			iVar7 = 3;
			iVar1 = 470;
			break;
		
		case 4:
			iVar6 = 0;
			iVar7 = 4;
			iVar1 = 650;
			break;
		
		case 5:
			iVar6 = 0;
			iVar7 = 5;
			iVar1 = 385;
			break;
		
		case 6:
			iVar6 = 0;
			iVar7 = 6;
			iVar1 = 455;
			break;
		
		case 7:
			iVar6 = 0;
			iVar7 = 7;
			iVar1 = 2150;
			break;
		
		case 8:
			iVar6 = 0;
			iVar7 = 8;
			iVar1 = 375;
			break;
		
		case 9:
			iVar6 = 0;
			iVar7 = 9;
			iVar1 = 2190;
			break;
		
		case 10:
			iVar6 = 0;
			iVar7 = 10;
			iVar1 = 285;
			break;
		
		case 11:
			iVar6 = 0;
			iVar7 = 11;
			iVar1 = 295;
			break;
		
		case 12:
			iVar6 = 0;
			iVar7 = 12;
			iVar1 = 445;
			break;
		
		case 13:
			iVar6 = 0;
			iVar7 = 13;
			iVar1 = 2240;
			break;
		
		case 14:
			iVar6 = 0;
			iVar7 = 14;
			iVar1 = 465;
			break;
		
		case 15:
			iVar6 = 0;
			iVar7 = 15;
			iVar1 = 1740;
			break;
		
		case 16:
			iVar6 = 1;
			iVar7 = 0;
			iVar1 = 1415;
			break;
		
		case 17:
			iVar6 = 1;
			iVar7 = 1;
			iVar1 = 325;
			break;
		
		case 18:
			iVar6 = 1;
			iVar7 = 2;
			iVar1 = 345;
			break;
		
		case 19:
			iVar6 = 1;
			iVar7 = 3;
			iVar1 = 355;
			break;
		
		case 20:
			iVar6 = 1;
			iVar7 = 4;
			iVar1 = 395;
			break;
		
		case 21:
			iVar6 = 1;
			iVar7 = 5;
			iVar1 = 315;
			break;
		
		case 22:
			iVar6 = 1;
			iVar7 = 6;
			iVar1 = 275;
			break;
		
		case 23:
			iVar6 = 1;
			iVar7 = 7;
			iVar1 = 265;
			break;
		
		case 24:
			iVar6 = 1;
			iVar7 = 8;
			iVar1 = 305;
			break;
		
		case 25:
			iVar6 = 1;
			iVar7 = 9;
			iVar1 = 255;
			break;
		
		case 26:
			iVar6 = 1;
			iVar7 = 10;
			iVar1 = 235;
			break;
		
		case 27:
			iVar6 = 1;
			iVar7 = 11;
			iVar1 = 245;
			break;
		
		case 28:
			iVar6 = 1;
			iVar7 = 12;
			iVar1 = 215;
			break;
		
		case 29:
			iVar6 = 1;
			iVar7 = 13;
			iVar1 = 1865;
			break;
		
		case 30:
			iVar6 = 1;
			iVar7 = 14;
			iVar1 = 450;
			break;
		
		case 31:
			iVar6 = 1;
			iVar7 = 15;
			iVar1 = 415;
			break;
		
		case 32:
			iVar6 = 2;
			iVar7 = 0;
			iVar1 = 0;
			iVar0 = true;
			break;
		
		case 33:
			iVar6 = 2;
			iVar7 = 1;
			iVar1 = 0;
			iVar0 = true;
			break;
		
		case 34:
			iVar6 = 2;
			iVar7 = 2;
			iVar1 = 0;
			iVar0 = true;
			break;
		
		case 35:
			iVar6 = 2;
			iVar7 = 3;
			iVar1 = 0;
			iVar0 = true;
			break;
		
		case 36:
			iVar6 = 2;
			iVar7 = 4;
			iVar1 = 0;
			iVar0 = true;
			break;
		
		case 37:
			iVar6 = 2;
			iVar7 = 5;
			iVar1 = 0;
			iVar0 = true;
			break;
		
		case 38:
			iVar6 = 2;
			iVar7 = 6;
			iVar1 = 0;
			iVar0 = true;
			break;
		
		case 39:
			iVar6 = 2;
			iVar7 = 7;
			iVar1 = 0;
			iVar0 = true;
			break;
		
		case 40:
			iVar6 = 2;
			iVar7 = 8;
			iVar1 = 0;
			iVar0 = true;
			break;
		
		case 41:
			iVar6 = 2;
			iVar7 = 9;
			iVar1 = 0;
			iVar0 = true;
			break;
		
		case 42:
			iVar6 = 2;
			iVar7 = 10;
			iVar1 = 0;
			iVar0 = true;
			break;
		
		case 43:
			iVar6 = 2;
			iVar7 = 11;
			iVar1 = 100;
			break;
		
		case 44:
			iVar6 = 2;
			iVar7 = 12;
			iVar1 = 0;
			iVar0 = true;
			break;
		
		case 45:
			iVar6 = 2;
			iVar7 = 13;
			iVar1 = 0;
			iVar0 = true;
			break;
		
		case 46:
			iVar6 = 2;
			iVar7 = 14;
			iVar1 = 0;
			iVar0 = true;
			break;
		
		case 47:
			iVar6 = 2;
			iVar7 = 15;
			iVar1 = 0;
			iVar0 = true;
			break;
	}
	switch (iParam0)
	{
		case 48:
			iVar6 = 3;
			iVar7 = 0;
			iVar1 = 55;
			break;
		
		case 49:
			iVar6 = 3;
			iVar7 = 1;
			iVar1 = 60;
			break;
		
		case 50:
			iVar6 = 3;
			iVar7 = 2;
			iVar1 = 100;
			break;
		
		case 51:
			iVar6 = 3;
			iVar7 = 3;
			iVar1 = 65;
			break;
		
		case 52:
			iVar6 = 3;
			iVar7 = 4;
			iVar1 = 65;
			break;
		
		case 53:
			iVar6 = 3;
			iVar7 = 5;
			iVar1 = 100;
			break;
		
		case 54:
			iVar6 = 3;
			iVar7 = 6;
			iVar1 = 100;
			break;
		
		case 55:
			iVar6 = 3;
			iVar7 = 7;
			iVar1 = 65;
			break;
		
		case 56:
			iVar6 = 3;
			iVar7 = 8;
			iVar1 = 90;
			break;
		
		case 57:
			iVar6 = 3;
			iVar7 = 9;
			iVar1 = 75;
			break;
		
		case 58:
			iVar6 = 3;
			iVar7 = 10;
			iVar1 = 65;
			break;
		
		case 59:
			iVar6 = 3;
			iVar7 = 11;
			iVar1 = 100;
			break;
		
		case 60:
			iVar6 = 3;
			iVar7 = 12;
			iVar1 = 100;
			break;
		
		case 61:
			iVar6 = 3;
			iVar7 = 13;
			iVar1 = 225;
			break;
		
		case 62:
			iVar6 = 3;
			iVar7 = 14;
			iVar1 = 205;
			break;
		
		case 63:
			iVar6 = 3;
			iVar7 = 15;
			iVar1 = 215;
			break;
		
		case 64:
			iVar6 = 4;
			iVar7 = 0;
			iVar1 = 490;
			break;
		
		case 65:
			iVar6 = 4;
			iVar7 = 1;
			iVar1 = 485;
			break;
		
		case 66:
			iVar6 = 4;
			iVar7 = 2;
			iVar1 = 2500;
			break;
		
		case 67:
			iVar6 = 4;
			iVar7 = 3;
			iVar1 = 0;
			iVar0 = true;
			break;
		
		case 68:
			iVar6 = 4;
			iVar7 = 4;
			iVar1 = 485;
			break;
		
		case 69:
			iVar6 = 4;
			iVar7 = 5;
			iVar1 = 0;
			iVar0 = true;
			break;
		
		case 70:
			iVar6 = 4;
			iVar7 = 6;
			iVar1 = 0;
			iVar0 = true;
			break;
		
		case 71:
			iVar6 = 4;
			iVar7 = 7;
			iVar1 = 0;
			iVar0 = true;
			break;
		
		case 72:
			iVar6 = 4;
			iVar7 = 8;
			iVar1 = 0;
			iVar0 = true;
			break;
		
		case 73:
			iVar6 = 4;
			iVar7 = 9;
			iVar1 = 0;
			iVar0 = true;
			break;
		
		case 74:
			iVar6 = 4;
			iVar7 = 10;
			iVar1 = 0;
			iVar0 = true;
			break;
		
		case 75:
			iVar6 = 4;
			iVar7 = 11;
			iVar1 = 0;
			iVar0 = true;
			break;
		
		case 76:
			iVar6 = 4;
			iVar7 = 12;
			iVar1 = 0;
			iVar0 = true;
			break;
		
		case 77:
			iVar6 = 4;
			iVar7 = 13;
			iVar1 = 0;
			iVar0 = true;
			break;
		
		case 78:
			iVar6 = 4;
			iVar7 = 14;
			iVar1 = 0;
			iVar0 = true;
			break;
		
		case 79:
			iVar6 = 4;
			iVar7 = 15;
			iVar1 = 0;
			iVar0 = true;
			break;
	}
	switch (iParam0)
	{
		case 80:
			iVar6 = 5;
			iVar7 = 0;
			iVar1 = 100;
			break;
		
		case 81:
			iVar6 = 5;
			iVar7 = 1;
			iVar1 = 105;
			break;
		
		case 82:
			iVar6 = 5;
			iVar7 = 2;
			iVar1 = 80;
			break;
		
		case 83:
			iVar6 = 5;
			iVar7 = 3;
			iVar1 = 90;
			break;
		
		case 84:
			iVar6 = 5;
			iVar7 = 4;
			iVar1 = 100;
			break;
		
		case 85:
			iVar6 = 5;
			iVar7 = 5;
			iVar1 = 95;
			break;
		
		case 86:
			iVar6 = 5;
			iVar7 = 6;
			iVar1 = 100;
			break;
		
		case 87:
			iVar6 = 5;
			iVar7 = 7;
			iVar1 = 90;
			break;
		
		case 88:
			iVar6 = 5;
			iVar7 = 8;
			iVar1 = 85;
			break;
		
		case 89:
			iVar6 = 5;
			iVar7 = 9;
			iVar1 = 80;
			break;
		
		case 90:
			iVar6 = 5;
			iVar7 = 10;
			iVar1 = 80;
			break;
		
		case 91:
			iVar6 = 5;
			iVar7 = 11;
			iVar1 = 100;
			break;
		
		case 92:
			iVar6 = 5;
			iVar7 = 12;
			iVar1 = 95;
			break;
		
		case 93:
			iVar6 = 5;
			iVar7 = 13;
			iVar1 = 440;
			break;
		
		case 94:
			iVar6 = 5;
			iVar7 = 14;
			iVar1 = 380;
			break;
		
		case 95:
			iVar6 = 5;
			iVar7 = 15;
			iVar1 = 80;
			break;
		
		case 96:
			iVar6 = 6;
			iVar7 = 0;
			iVar1 = 115;
			break;
		
		case 97:
			iVar6 = 6;
			iVar7 = 1;
			iVar1 = 140;
			break;
		
		case 98:
			iVar6 = 6;
			iVar7 = 2;
			iVar1 = 135;
			break;
		
		case 99:
			iVar6 = 6;
			iVar7 = 3;
			iVar1 = 0;
			iVar0 = true;
			break;
		
		case 100:
			iVar6 = 6;
			iVar7 = 4;
			iVar1 = 0;
			iVar0 = true;
			break;
		
		case 101:
			iVar6 = 6;
			iVar7 = 5;
			iVar1 = 0;
			iVar0 = true;
			break;
		
		case 102:
			iVar6 = 6;
			iVar7 = 6;
			iVar1 = 0;
			iVar0 = true;
			break;
		
		case 103:
			iVar6 = 6;
			iVar7 = 7;
			iVar1 = 0;
			iVar0 = true;
			break;
		
		case 104:
			iVar6 = 6;
			iVar7 = 8;
			iVar1 = 0;
			iVar0 = true;
			break;
		
		case 105:
			iVar6 = 6;
			iVar7 = 9;
			iVar1 = 0;
			iVar0 = true;
			break;
		
		case 106:
			iVar6 = 6;
			iVar7 = 10;
			iVar1 = 255;
			break;
		
		case 107:
			iVar6 = 6;
			iVar7 = 11;
			iVar1 = 0;
			iVar0 = true;
			break;
		
		case 108:
			iVar6 = 6;
			iVar7 = 12;
			iVar1 = 0;
			iVar0 = true;
			break;
		
		case 109:
			iVar6 = 6;
			iVar7 = 13;
			iVar1 = 0;
			iVar0 = true;
			break;
		
		case 110:
			iVar6 = 6;
			iVar7 = 14;
			iVar1 = 0;
			iVar0 = true;
			break;
		
		case 111:
			iVar6 = 6;
			iVar7 = 15;
			iVar1 = 0;
			iVar0 = true;
			break;
	}
	switch (iParam0)
	{
		case 112:
			iVar6 = 7;
			iVar7 = 0;
			iVar1 = 325;
			break;
		
		case 113:
			iVar6 = 7;
			iVar7 = 1;
			iVar1 = 115;
			break;
		
		case 114:
			iVar6 = 7;
			iVar7 = 2;
			iVar1 = 135;
			break;
		
		case 115:
			iVar6 = 7;
			iVar7 = 3;
			iVar1 = 125;
			break;
		
		case 116:
			iVar6 = 7;
			iVar7 = 4;
			iVar1 = 120;
			break;
		
		case 117:
			iVar6 = 7;
			iVar7 = 5;
			iVar1 = 130;
			break;
		
		case 118:
			iVar6 = 7;
			iVar7 = 6;
			iVar1 = 110;
			break;
		
		case 119:
			iVar6 = 7;
			iVar7 = 7;
			iVar1 = 345;
			break;
		
		case 120:
			iVar6 = 7;
			iVar7 = 8;
			iVar1 = 745;
			break;
		
		case 121:
			iVar6 = 7;
			iVar7 = 9;
			iVar1 = 120;
			break;
		
		case 122:
			iVar6 = 7;
			iVar7 = 10;
			iVar1 = 135;
			break;
		
		case 123:
			iVar6 = 7;
			iVar7 = 11;
			iVar1 = 345;
			break;
		
		case 124:
			iVar6 = 7;
			iVar7 = 12;
			iVar1 = 130;
			break;
		
		case 125:
			iVar6 = 7;
			iVar7 = 13;
			iVar1 = 140;
			break;
		
		case 126:
			iVar6 = 7;
			iVar7 = 14;
			iVar1 = 130;
			break;
		
		case 127:
			iVar6 = 7;
			iVar7 = 15;
			iVar1 = 660;
			break;
		
		case 128:
			iVar6 = 8;
			iVar7 = 0;
			iVar1 = 150;
			break;
		
		case 129:
			iVar6 = 8;
			iVar7 = 1;
			iVar1 = 0;
			iVar0 = true;
			break;
		
		case 130:
			iVar6 = 8;
			iVar7 = 2;
			iVar1 = 0;
			iVar0 = true;
			break;
		
		case 131:
			iVar6 = 8;
			iVar7 = 3;
			iVar1 = 150;
			break;
		
		case 132:
			iVar6 = 8;
			iVar7 = 4;
			iVar1 = 150;
			break;
		
		case 133:
			iVar6 = 8;
			iVar7 = 5;
			iVar1 = 0;
			iVar0 = true;
			break;
		
		case 134:
			iVar6 = 8;
			iVar7 = 6;
			iVar1 = 0;
			iVar0 = true;
			break;
		
		case 135:
			iVar6 = 8;
			iVar7 = 7;
			iVar1 = 0;
			iVar0 = true;
			break;
		
		case 136:
			iVar6 = 8;
			iVar7 = 8;
			iVar1 = 0;
			iVar0 = true;
			break;
		
		case 137:
			iVar6 = 8;
			iVar7 = 9;
			iVar1 = 0;
			iVar0 = true;
			break;
		
		case 138:
			iVar6 = 8;
			iVar7 = 10;
			iVar1 = 0;
			iVar0 = true;
			break;
		
		case 139:
			iVar6 = 8;
			iVar7 = 11;
			iVar1 = 0;
			iVar0 = true;
			break;
		
		case 140:
			iVar6 = 8;
			iVar7 = 12;
			iVar1 = 0;
			iVar0 = true;
			break;
		
		case 141:
			iVar6 = 8;
			iVar7 = 13;
			iVar1 = 0;
			iVar0 = true;
			break;
		
		case 142:
			iVar6 = 8;
			iVar7 = 14;
			iVar1 = 150;
			break;
		
		case 143:
			iVar6 = 8;
			iVar7 = 15;
			iVar1 = 0;
			iVar0 = true;
			break;
	}
	switch (iParam0)
	{
		case 144:
			iVar6 = 9;
			iVar7 = 0;
			iVar1 = 75;
			break;
		
		case 145:
			iVar6 = 9;
			iVar7 = 1;
			iVar1 = 90;
			break;
		
		case 146:
			iVar6 = 9;
			iVar7 = 2;
			iVar1 = 145;
			break;
		
		case 147:
			iVar6 = 9;
			iVar7 = 3;
			iVar1 = 150;
			break;
		
		case 148:
			iVar6 = 9;
			iVar7 = 4;
			iVar1 = 110;
			break;
		
		case 149:
			iVar6 = 9;
			iVar7 = 5;
			iVar1 = 95;
			break;
		
		case 150:
			iVar6 = 9;
			iVar7 = 6;
			iVar1 = 155;
			break;
		
		case 151:
			iVar6 = 9;
			iVar7 = 7;
			iVar1 = 255;
			break;
		
		case 152:
			iVar6 = 9;
			iVar7 = 8;
			iVar1 = 165;
			break;
		
		case 153:
			iVar6 = 9;
			iVar7 = 9;
			iVar1 = 1150;
			break;
		
		case 154:
			iVar6 = 9;
			iVar7 = 10;
			iVar1 = 1150;
			break;
		
		case 155:
			iVar6 = 9;
			iVar7 = 11;
			iVar1 = 1210;
			break;
		
		case 156:
			iVar6 = 9;
			iVar7 = 12;
			iVar1 = 1125;
			break;
		
		case 157:
			iVar6 = 9;
			iVar7 = 13;
			iVar1 = 1135;
			break;
		
		case 158:
			iVar6 = 9;
			iVar7 = 14;
			iVar1 = 1145;
			break;
		
		case 159:
			iVar6 = 9;
			iVar7 = 15;
			iVar1 = 1145;
			break;
		
		case 160:
			iVar6 = 10;
			iVar7 = 0;
			iVar1 = 845;
			break;
		
		case 161:
			iVar6 = 10;
			iVar7 = 1;
			iVar1 = 480;
			break;
		
		case 162:
			iVar6 = 10;
			iVar7 = 2;
			iVar1 = 475;
			break;
		
		case 163:
			iVar6 = 10;
			iVar7 = 3;
			iVar1 = 0;
			iVar0 = true;
			break;
		
		case 164:
			iVar6 = 10;
			iVar7 = 4;
			iVar1 = 0;
			iVar0 = true;
			break;
		
		case 165:
			iVar6 = 10;
			iVar7 = 5;
			iVar1 = 0;
			iVar0 = true;
			break;
		
		case 166:
			iVar6 = 10;
			iVar7 = 6;
			iVar1 = 0;
			iVar0 = true;
			break;
		
		case 167:
			iVar6 = 10;
			iVar7 = 7;
			iVar1 = 0;
			iVar0 = true;
			break;
		
		case 168:
			iVar6 = 10;
			iVar7 = 8;
			iVar1 = 0;
			iVar0 = true;
			break;
		
		case 169:
			iVar6 = 10;
			iVar7 = 9;
			iVar1 = 0;
			iVar0 = true;
			break;
		
		case 170:
			iVar6 = 10;
			iVar7 = 10;
			iVar1 = 0;
			iVar0 = true;
			break;
		
		case 171:
			iVar6 = 10;
			iVar7 = 11;
			iVar1 = 0;
			iVar0 = true;
			break;
		
		case 172:
			iVar6 = 10;
			iVar7 = 12;
			iVar1 = 0;
			iVar0 = true;
			break;
		
		case 173:
			iVar6 = 10;
			iVar7 = 13;
			iVar1 = 0;
			iVar0 = true;
			break;
		
		case 174:
			iVar6 = 10;
			iVar7 = 14;
			iVar1 = 0;
			iVar0 = true;
			break;
		
		case 175:
			iVar6 = 10;
			iVar7 = 15;
			iVar1 = 0;
			iVar0 = true;
			break;
	}
	switch (iParam0)
	{
		case 176:
			iVar6 = 11;
			iVar7 = 0;
			iVar1 = 0;
			iVar0 = true;
			break;
		
		case 177:
			iVar6 = 11;
			iVar7 = 1;
			iVar1 = 0;
			iVar0 = true;
			break;
		
		case 178:
			iVar6 = 11;
			iVar7 = 2;
			iVar1 = 0;
			iVar0 = true;
			break;
		
		case 179:
			iVar6 = 11;
			iVar7 = 3;
			iVar1 = 0;
			iVar0 = true;
			break;
		
		case 180:
			iVar6 = 11;
			iVar7 = 4;
			iVar1 = 0;
			iVar0 = true;
			break;
		
		case 181:
			iVar6 = 11;
			iVar7 = 5;
			iVar1 = 0;
			iVar0 = true;
			break;
		
		case 182:
			iVar6 = 11;
			iVar7 = 6;
			iVar1 = 0;
			iVar0 = true;
			break;
		
		case 183:
			iVar6 = 11;
			iVar7 = 7;
			iVar1 = 0;
			iVar0 = true;
			break;
		
		case 184:
			iVar6 = 11;
			iVar7 = 8;
			iVar1 = 0;
			iVar0 = true;
			break;
		
		case 185:
			iVar6 = 11;
			iVar7 = 9;
			iVar1 = 0;
			iVar0 = true;
			break;
		
		case 186:
			iVar6 = 11;
			iVar7 = 10;
			iVar1 = 0;
			iVar0 = true;
			break;
		
		case 187:
			iVar6 = 11;
			iVar7 = 11;
			iVar1 = 0;
			iVar0 = true;
			break;
		
		case 188:
			iVar6 = 11;
			iVar7 = 12;
			iVar1 = 0;
			iVar0 = true;
			break;
		
		case 189:
			iVar6 = 11;
			iVar7 = 13;
			iVar1 = 0;
			iVar0 = true;
			break;
		
		case 190:
			iVar6 = 11;
			iVar7 = 14;
			iVar1 = 0;
			iVar0 = true;
			break;
		
		case 191:
			iVar6 = 11;
			iVar7 = 15;
			iVar1 = 0;
			iVar0 = true;
			break;
		
		case 192:
			iVar6 = 12;
			iVar7 = 0;
			iVar1 = 220;
			break;
		
		case 193:
			iVar6 = 12;
			iVar7 = 1;
			iVar1 = 0;
			iVar0 = true;
			break;
		
		case 194:
			iVar6 = 12;
			iVar7 = 2;
			iVar1 = 0;
			iVar0 = true;
			break;
		
		case 195:
			iVar6 = 12;
			iVar7 = 3;
			iVar1 = 0;
			iVar0 = true;
			break;
		
		case 196:
			iVar6 = 12;
			iVar7 = 4;
			iVar1 = 100;
			break;
		
		case 197:
			iVar6 = 12;
			iVar7 = 5;
			iVar1 = 65;
			break;
		
		case 198:
			iVar6 = 12;
			iVar7 = 6;
			iVar1 = 0;
			iVar0 = true;
			break;
		
		case 199:
			iVar6 = 12;
			iVar7 = 7;
			iVar1 = 50;
			break;
		
		case 200:
			iVar6 = 12;
			iVar7 = 8;
			iVar1 = 0;
			iVar0 = true;
			break;
		
		case 201:
			iVar6 = 12;
			iVar7 = 9;
			iVar1 = 0;
			iVar0 = true;
			break;
		
		case 202:
			iVar6 = 12;
			iVar7 = 10;
			iVar1 = 0;
			iVar0 = true;
			break;
		
		case 203:
			iVar6 = 12;
			iVar7 = 11;
			iVar1 = 0;
			iVar0 = true;
			break;
		
		case 204:
			iVar6 = 12;
			iVar7 = 12;
			iVar1 = 100;
			break;
		
		case 205:
			iVar6 = 12;
			iVar7 = 13;
			iVar1 = 0;
			iVar0 = true;
			break;
		
		case 206:
			iVar6 = 12;
			iVar7 = 14;
			iVar1 = 0;
			iVar0 = true;
			break;
		
		case 207:
			iVar6 = 12;
			iVar7 = 15;
			iVar1 = 0;
			iVar0 = true;
			break;
	}
	switch (iParam0)
	{
		case 208:
			iVar6 = 13;
			iVar7 = 0;
			iVar1 = 460;
			break;
		
		case 209:
			iVar6 = 13;
			iVar7 = 1;
			iVar1 = 475;
			break;
		
		case 210:
			iVar6 = 13;
			iVar7 = 2;
			iVar1 = 470;
			break;
		
		case 211:
			iVar6 = 13;
			iVar7 = 3;
			iVar1 = 0;
			iVar0 = true;
			break;
		
		case 212:
			iVar6 = 13;
			iVar7 = 4;
			iVar1 = 0;
			iVar0 = true;
			break;
		
		case 213:
			iVar6 = 13;
			iVar7 = 5;
			iVar1 = 0;
			iVar0 = true;
			break;
		
		case 214:
			iVar6 = 13;
			iVar7 = 6;
			iVar1 = 0;
			iVar0 = true;
			break;
		
		case 215:
			iVar6 = 13;
			iVar7 = 7;
			iVar1 = 0;
			iVar0 = true;
			break;
		
		case 216:
			iVar6 = 13;
			iVar7 = 8;
			iVar1 = 0;
			iVar0 = true;
			break;
		
		case 217:
			iVar6 = 13;
			iVar7 = 9;
			iVar1 = 0;
			iVar0 = true;
			break;
		
		case 218:
			iVar6 = 13;
			iVar7 = 10;
			iVar1 = 0;
			iVar0 = true;
			break;
		
		case 219:
			iVar6 = 13;
			iVar7 = 11;
			iVar1 = 0;
			iVar0 = true;
			break;
		
		case 220:
			iVar6 = 13;
			iVar7 = 12;
			iVar1 = 0;
			iVar0 = true;
			break;
		
		case 221:
			iVar6 = 13;
			iVar7 = 13;
			iVar1 = 0;
			iVar0 = true;
			break;
		
		case 222:
			iVar6 = 13;
			iVar7 = 14;
			iVar1 = 0;
			iVar0 = true;
			break;
		
		case 223:
			iVar6 = 13;
			iVar7 = 15;
			iVar1 = 0;
			iVar0 = true;
			break;
		
		case 224:
			iVar6 = 14;
			iVar7 = 0;
			iVar1 = 50;
			break;
		
		case 225:
			iVar6 = 14;
			iVar7 = 1;
			iVar1 = 100;
			break;
		
		case 226:
			iVar6 = 14;
			iVar7 = 2;
			iVar1 = 0;
			iVar0 = true;
			break;
		
		case 227:
			iVar6 = 14;
			iVar7 = 3;
			iVar1 = 100;
			break;
		
		case 228:
			iVar6 = 14;
			iVar7 = 4;
			iVar1 = 0;
			iVar0 = true;
			break;
		
		case 229:
			iVar6 = 14;
			iVar7 = 5;
			iVar1 = 0;
			iVar0 = true;
			break;
		
		case 230:
			iVar6 = 14;
			iVar7 = 6;
			iVar1 = 0;
			iVar0 = true;
			break;
		
		case 231:
			iVar6 = 14;
			iVar7 = 7;
			iVar1 = 0;
			iVar0 = true;
			break;
		
		case 232:
			iVar6 = 14;
			iVar7 = 8;
			iVar1 = 0;
			iVar0 = true;
			break;
		
		case 233:
			iVar6 = 14;
			iVar7 = 9;
			iVar1 = 0;
			iVar0 = true;
			break;
		
		case 234:
			iVar6 = 14;
			iVar7 = 10;
			iVar1 = 0;
			iVar0 = true;
			break;
		
		case 235:
			iVar6 = 14;
			iVar7 = 11;
			iVar1 = 0;
			iVar0 = true;
			break;
		
		case 236:
			iVar6 = 14;
			iVar7 = 12;
			iVar1 = 100;
			break;
		
		case 237:
			iVar6 = 14;
			iVar7 = 13;
			iVar1 = 0;
			iVar0 = true;
			break;
		
		case 238:
			iVar6 = 14;
			iVar7 = 14;
			iVar1 = 0;
			iVar0 = true;
			break;
		
		case 239:
			iVar6 = 14;
			iVar7 = 15;
			iVar1 = 0;
			iVar0 = true;
			break;
	}
	switch (iParam0)
	{
		case 240:
			iVar6 = 15;
			iVar7 = 0;
			iVar1 = 90;
			break;
		
		case 241:
			iVar6 = 15;
			iVar7 = 1;
			iVar1 = 105;
			break;
		
		case 242:
			iVar6 = 15;
			iVar7 = 2;
			iVar1 = 100;
			break;
		
		case 243:
			iVar6 = 15;
			iVar7 = 3;
			iVar1 = 240;
			break;
		
		case 244:
			iVar6 = 15;
			iVar7 = 4;
			iVar1 = 95;
			break;
		
		case 245:
			iVar6 = 15;
			iVar7 = 5;
			iVar1 = 95;
			break;
		
		case 246:
			iVar6 = 15;
			iVar7 = 6;
			iVar1 = 100;
			break;
		
		case 247:
			iVar6 = 15;
			iVar7 = 7;
			iVar1 = 105;
			break;
		
		case 248:
			iVar6 = 15;
			iVar7 = 8;
			iVar1 = 100;
			break;
		
		case 249:
			iVar6 = 15;
			iVar7 = 9;
			iVar1 = 295;
			break;
		
		case 250:
			iVar6 = 15;
			iVar7 = 10;
			iVar1 = 250;
			break;
		
		case 251:
			iVar6 = 15;
			iVar7 = 11;
			iVar1 = 285;
			break;
		
		case 252:
			iVar6 = 15;
			iVar7 = 12;
			iVar1 = 275;
			break;
		
		case 253:
			iVar6 = 15;
			iVar7 = 13;
			iVar1 = 105;
			break;
		
		case 254:
			iVar6 = 15;
			iVar7 = 14;
			iVar1 = 100;
			break;
		
		case 255:
			iVar6 = 15;
			iVar7 = 15;
			iVar1 = 95;
			break;
	}
	StringCopy(&Var2, "L_FMM_", 16);
	StringIntConCat(&Var2, iVar6, 16);
	StringConCat(&Var2, "_", 16);
	StringIntConCat(&Var2, iVar7, 16);
	iVar11 = iParam0;
	if (iVar11 >= 0 && iVar11 < 256)
	{
		iVar1 = system::round(((system::to_float(iVar1) * Global_262145.f_173[iVar11]) * Global_279748.f_15));
	}
	if (iParam0 >= 256)
	{
		Global_69518[0 /*14*/].f_5 = 3;
		func_203(iVar10, iParam0, 256);
		if (Global_69518[0 /*14*/].f_7 > 0)
		{
			Global_69518[0 /*14*/].f_7 = system::round((system::to_float(Global_69518[0 /*14*/].f_7) * Global_279748.f_15));
		}
	}
	else
	{
		func_195(&(Global_69518[0 /*14*/]), iVar10, iParam0, &Var2, iVar6, iVar7, iVar1, iVar0, iVar8, iVar9, 0);
	}
}

void func_228(int iParam0)//Position - 0x3E2FA
{
	int iVar0;
	int iVar1;
	char* sVar2;
	int iVar6;
	int iVar7;
	int iVar8;
	int iVar9;
	int iVar10;
	
	iVar0 = false;
	iVar1 = 10;
	iVar6 = 0;
	iVar7 = 0;
	iVar8 = -1;
	iVar9 = 2;
	iVar10 = 3;
	switch (iParam0)
	{
		case 0:
			iVar6 = 0;
			iVar7 = 0;
			break;
		
		case 1:
			iVar6 = 1;
			iVar7 = 0;
			break;
		
		case 2:
			iVar6 = 2;
			iVar7 = 0;
			break;
		
		case 3:
			iVar6 = 3;
			iVar7 = 0;
			break;
		
		case 4:
			iVar6 = 4;
			iVar7 = 0;
			break;
		
		case 5:
			iVar6 = 5;
			iVar7 = 0;
			break;
		
		case 6:
			iVar6 = 6;
			iVar7 = 0;
			break;
		
		case 7:
			iVar6 = 7;
			iVar7 = 0;
			break;
		
		case 8:
			iVar6 = 8;
			iVar7 = 0;
			break;
		
		case 9:
			iVar6 = 9;
			iVar7 = 0;
			break;
		
		case 10:
			iVar6 = 10;
			iVar7 = 0;
			break;
		
		case 11:
			iVar6 = 11;
			iVar7 = 0;
			break;
		
		case 12:
			iVar6 = 12;
			iVar7 = 0;
			break;
		
		case 13:
			iVar6 = 13;
			iVar7 = 0;
			break;
		
		case 14:
			iVar6 = 14;
			iVar7 = 0;
			break;
		
		case 15:
			iVar6 = 15;
			iVar7 = 0;
			break;
		
		default:
			Global_69518[0 /*14*/].f_5 = 3;
			func_203(iVar10, iParam0, 16);
			return;
			break;
	}
	func_195(&(Global_69518[0 /*14*/]), iVar10, iParam0, &sVar2, iVar6, iVar7, iVar1, iVar0, iVar8, iVar9, 0);
}

void func_229(int iParam0)//Position - 0x3E44F
{
	int iVar0;
	int iVar1;
	char* sVar2;
	int iVar6;
	int iVar7;
	int iVar8;
	int iVar9;
	int iVar10;
	
	iVar0 = false;
	iVar1 = 10;
	iVar6 = 0;
	iVar7 = 0;
	iVar8 = -1;
	iVar9 = 2;
	iVar10 = 9;
	switch (iParam0)
	{
		case 0:
			iVar6 = 0;
			iVar7 = 0;
			break;
		
		case 1:
			iVar6 = 1;
			iVar7 = 0;
			break;
		
		case 2:
			iVar6 = 1;
			iVar7 = 1;
			break;
		
		case 3:
			iVar6 = 1;
			iVar7 = 2;
			break;
		
		case 4:
			iVar6 = 1;
			iVar7 = 3;
			break;
		
		case 5:
			iVar6 = 1;
			iVar7 = 4;
			break;
		
		case 6:
			iVar6 = 2;
			iVar7 = 0;
			break;
		
		case 7:
			iVar6 = 2;
			iVar7 = 1;
			break;
		
		case 8:
			iVar6 = 2;
			iVar7 = 2;
			break;
		
		case 9:
			iVar6 = 2;
			iVar7 = 3;
			break;
		
		case 10:
			iVar6 = 2;
			iVar7 = 4;
			break;
		
		case 11:
			iVar6 = 3;
			iVar7 = 0;
			break;
		
		case 12:
			iVar6 = 3;
			iVar7 = 1;
			break;
		
		case 13:
			iVar6 = 3;
			iVar7 = 2;
			break;
		
		case 14:
			iVar6 = 3;
			iVar7 = 3;
			break;
		
		case 15:
			iVar6 = 3;
			iVar7 = 4;
			break;
		
		case 16:
			iVar6 = 4;
			iVar7 = 0;
			break;
		
		case 17:
			iVar6 = 4;
			iVar7 = 1;
			break;
		
		case 18:
			iVar6 = 4;
			iVar7 = 2;
			break;
		
		case 19:
			iVar6 = 4;
			iVar7 = 3;
			break;
		
		case 20:
			iVar6 = 4;
			iVar7 = 4;
			break;
		
		case 21:
			iVar6 = 5;
			iVar7 = 0;
			break;
		
		case 22:
			iVar6 = 5;
			iVar7 = 1;
			break;
		
		case 23:
			iVar6 = 5;
			iVar7 = 2;
			break;
		
		case 24:
			iVar6 = 5;
			iVar7 = 3;
			break;
		
		case 25:
			iVar6 = 5;
			iVar7 = 4;
			break;
		
		case 26:
			iVar6 = 6;
			iVar7 = 0;
			break;
		
		case 27:
			iVar6 = 6;
			iVar7 = 1;
			break;
		
		case 28:
			iVar6 = 6;
			iVar7 = 2;
			break;
		
		case 29:
			iVar6 = 6;
			iVar7 = 3;
			break;
		
		case 30:
			iVar6 = 6;
			iVar7 = 4;
			break;
		
		case 31:
			iVar6 = 7;
			iVar7 = 0;
			break;
		
		case 32:
			iVar6 = 7;
			iVar7 = 1;
			break;
		
		case 33:
			iVar6 = 7;
			iVar7 = 2;
			break;
		
		case 34:
			iVar6 = 7;
			iVar7 = 3;
			break;
		
		case 35:
			iVar6 = 7;
			iVar7 = 4;
			break;
		
		case 36:
			iVar6 = 8;
			iVar7 = 0;
			break;
		
		case 37:
			iVar6 = 8;
			iVar7 = 1;
			break;
		
		case 38:
			iVar6 = 8;
			iVar7 = 2;
			break;
		
		case 39:
			iVar6 = 8;
			iVar7 = 3;
			break;
		
		case 40:
			iVar6 = 8;
			iVar7 = 4;
			break;
		
		case 41:
			iVar6 = 9;
			iVar7 = 0;
			break;
		
		case 42:
			iVar6 = 9;
			iVar7 = 1;
			break;
		
		case 43:
			iVar6 = 9;
			iVar7 = 2;
			break;
		
		case 44:
			iVar6 = 9;
			iVar7 = 3;
			break;
		
		case 45:
			iVar6 = 9;
			iVar7 = 4;
			break;
		
		default:
			Global_69518[0 /*14*/].f_5 = 3;
			func_203(iVar10, iParam0, 46);
			return;
			break;
	}
	func_195(&(Global_69518[0 /*14*/]), iVar10, iParam0, &sVar2, iVar6, iVar7, iVar1, iVar0, iVar8, iVar9, 0);
}

void func_230(int iParam0)//Position - 0x3E769
{
	int iVar0;
	int iVar1;
	struct<2> Var2;
	int iVar6;
	int iVar7;
	int iVar8;
	int iVar9;
	int iVar10;
	int iVar11;
	int iVar12;
	int iVar13;
	int iVar14;
	
	iVar0 = false;
	iVar1 = 10;
	iVar6 = 0;
	iVar7 = 0;
	iVar8 = -1;
	iVar9 = 2;
	iVar10 = 8;
	switch (iParam0)
	{
		case 0:
			StringCopy(&Var2, "U_FMM_0_0", 16);
			iVar6 = 0;
			iVar7 = 0;
			iVar1 = 250;
			break;
		
		case 1:
			StringCopy(&Var2, "U_FMM_0_1", 16);
			iVar6 = 0;
			iVar7 = 1;
			iVar1 = 210;
			break;
		
		case 2:
			StringCopy(&Var2, "U_FMM_0_2", 16);
			iVar6 = 0;
			iVar7 = 2;
			iVar1 = 50;
			break;
		
		case 3:
			StringCopy(&Var2, "U_FMM_0_3", 16);
			iVar6 = 0;
			iVar7 = 3;
			iVar1 = 90;
			break;
		
		case 4:
			StringCopy(&Var2, "U_FMM_0_4", 16);
			iVar6 = 0;
			iVar7 = 4;
			iVar1 = 210;
			break;
		
		case 5:
			StringCopy(&Var2, "U_FMM_0_5", 16);
			iVar6 = 0;
			iVar7 = 5;
			iVar1 = 200;
			break;
		
		case 6:
			StringCopy(&Var2, "U_FMM_0_6", 16);
			iVar6 = 0;
			iVar7 = 6;
			iVar0 = true;
			break;
		
		case 7:
			StringCopy(&Var2, "U_FMM_0_7", 16);
			iVar6 = 0;
			iVar7 = 7;
			iVar1 = 130;
			break;
		
		case 8:
			StringCopy(&Var2, "U_FMM_0_8", 16);
			iVar6 = 0;
			iVar7 = 8;
			iVar1 = 220;
			break;
		
		case 9:
			StringCopy(&Var2, "U_FMM_0_9", 16);
			iVar6 = 0;
			iVar7 = 9;
			iVar0 = true;
			break;
		
		case 10:
			StringCopy(&Var2, "U_FMM_0_10", 16);
			iVar6 = 0;
			iVar7 = 10;
			iVar0 = true;
			break;
		
		case 11:
			StringCopy(&Var2, "U_FMM_0_11", 16);
			iVar6 = 0;
			iVar7 = 11;
			iVar1 = 220;
			break;
		
		case 12:
			StringCopy(&Var2, "U_FMM_0_12", 16);
			iVar6 = 0;
			iVar7 = 12;
			iVar0 = true;
			break;
		
		case 13:
			StringCopy(&Var2, "U_FMM_0_13", 16);
			iVar6 = 0;
			iVar7 = 13;
			iVar0 = true;
			break;
		
		case 14:
			StringCopy(&Var2, "U_FMM_0_14", 16);
			iVar6 = 0;
			iVar7 = 14;
			iVar0 = true;
			break;
		
		case 15:
			StringCopy(&Var2, "U_FMM_0_15", 16);
			iVar6 = 0;
			iVar7 = 15;
			iVar0 = true;
			break;
		
		case 16:
			StringCopy(&Var2, "U_FMM_1_0", 16);
			iVar6 = 1;
			iVar7 = 0;
			iVar1 = 45;
			break;
		
		case 17:
			StringCopy(&Var2, "U_FMM_1_1", 16);
			iVar6 = 1;
			iVar7 = 1;
			iVar1 = 60;
			break;
		
		case 18:
			StringCopy(&Var2, "U_FMM_1_2", 16);
			iVar6 = 1;
			iVar7 = 2;
			iVar0 = true;
			break;
		
		case 19:
			StringCopy(&Var2, "U_FMM_1_3", 16);
			iVar6 = 1;
			iVar7 = 3;
			iVar1 = 40;
			break;
		
		case 20:
			StringCopy(&Var2, "U_FMM_1_4", 16);
			iVar6 = 1;
			iVar7 = 4;
			iVar1 = 315;
			break;
		
		case 21:
			StringCopy(&Var2, "U_FMM_1_5", 16);
			iVar6 = 1;
			iVar7 = 5;
			iVar1 = 215;
			break;
		
		case 22:
			StringCopy(&Var2, "U_FMM_1_6", 16);
			iVar6 = 1;
			iVar7 = 6;
			iVar1 = 265;
			break;
		
		case 23:
			StringCopy(&Var2, "U_FMM_1_7", 16);
			iVar6 = 1;
			iVar7 = 7;
			iVar1 = 45;
			break;
		
		case 24:
			StringCopy(&Var2, "U_FMM_1_8", 16);
			iVar6 = 1;
			iVar7 = 8;
			iVar1 = 205;
			break;
		
		case 25:
			StringCopy(&Var2, "U_FMM_1_9", 16);
			iVar6 = 1;
			iVar7 = 9;
			iVar0 = true;
			break;
		
		case 26:
			StringCopy(&Var2, "U_FMM_1_10", 16);
			iVar6 = 1;
			iVar7 = 10;
			iVar0 = true;
			break;
		
		case 27:
			StringCopy(&Var2, "U_FMM_1_11", 16);
			iVar6 = 1;
			iVar7 = 11;
			iVar1 = 60;
			break;
		
		case 28:
			StringCopy(&Var2, "U_FMM_1_12", 16);
			iVar6 = 1;
			iVar7 = 12;
			iVar1 = 55;
			break;
		
		case 29:
			StringCopy(&Var2, "U_FMM_1_13", 16);
			iVar6 = 1;
			iVar7 = 13;
			iVar0 = true;
			break;
		
		case 30:
			StringCopy(&Var2, "U_FMM_1_14", 16);
			iVar6 = 1;
			iVar7 = 14;
			iVar1 = 170;
			break;
		
		case 31:
			StringCopy(&Var2, "U_FMM_1_15", 16);
			iVar6 = 1;
			iVar7 = 15;
			iVar0 = true;
			break;
	}
	switch (iParam0)
	{
		case 32:
			StringCopy(&Var2, "U_FMM_0_0", 16);
			iVar6 = 2;
			iVar7 = 0;
			iVar1 = 250;
			break;
		
		case 33:
			StringCopy(&Var2, "U_FMM_0_1", 16);
			iVar6 = 2;
			iVar7 = 1;
			iVar1 = 210;
			break;
		
		case 34:
			StringCopy(&Var2, "U_FMM_0_2", 16);
			iVar6 = 2;
			iVar7 = 2;
			iVar1 = 50;
			break;
		
		case 35:
			StringCopy(&Var2, "U_FMM_0_3", 16);
			iVar6 = 2;
			iVar7 = 3;
			iVar1 = 90;
			break;
		
		case 36:
			StringCopy(&Var2, "U_FMM_0_4", 16);
			iVar6 = 2;
			iVar7 = 4;
			iVar1 = 210;
			break;
		
		case 37:
			StringCopy(&Var2, "U_FMM_0_5", 16);
			iVar6 = 2;
			iVar7 = 5;
			iVar1 = 200;
			break;
		
		case 38:
			StringCopy(&Var2, "U_FMM_0_6", 16);
			iVar6 = 2;
			iVar7 = 6;
			iVar0 = true;
			break;
		
		case 39:
			StringCopy(&Var2, "U_FMM_0_7", 16);
			iVar6 = 2;
			iVar7 = 7;
			iVar1 = 130;
			break;
		
		case 40:
			StringCopy(&Var2, "U_FMM_0_8", 16);
			iVar6 = 2;
			iVar7 = 8;
			iVar1 = 220;
			break;
		
		case 41:
			StringCopy(&Var2, "U_FMM_0_9", 16);
			iVar6 = 2;
			iVar7 = 9;
			iVar0 = true;
			break;
		
		case 42:
			StringCopy(&Var2, "U_FMM_0_10", 16);
			iVar6 = 2;
			iVar7 = 10;
			iVar0 = true;
			break;
		
		case 43:
			StringCopy(&Var2, "U_FMM_0_11", 16);
			iVar6 = 2;
			iVar7 = 11;
			iVar1 = 220;
			break;
		
		case 44:
			StringCopy(&Var2, "U_FMM_0_12", 16);
			iVar6 = 2;
			iVar7 = 12;
			iVar0 = true;
			break;
		
		case 45:
			StringCopy(&Var2, "U_FMM_0_13", 16);
			iVar6 = 2;
			iVar7 = 13;
			iVar0 = true;
			break;
		
		case 46:
			StringCopy(&Var2, "U_FMM_0_14", 16);
			iVar6 = 2;
			iVar7 = 14;
			iVar0 = true;
			break;
		
		case 47:
			StringCopy(&Var2, "U_FMM_0_15", 16);
			iVar6 = 2;
			iVar7 = 15;
			iVar0 = true;
			break;
		
		case 48:
			StringCopy(&Var2, "SP_FMM_3_0", 16);
			iVar6 = 3;
			iVar7 = 0;
			if (Global_262145.f_4178 != -1)
			{
				iVar1 = Global_262145.f_4178;
			}
			else
			{
				iVar1 = 165;
			}
			break;
		
		case 49:
			StringCopy(&Var2, "SP_FMM_3_1", 16);
			iVar6 = 3;
			iVar7 = 1;
			if (Global_262145.f_4186 != -1)
			{
				iVar1 = Global_262145.f_4186;
			}
			else
			{
				iVar1 = 120;
			}
			break;
		
		case 50:
			StringCopy(&Var2, "SP_FMM_3_2", 16);
			iVar6 = 3;
			iVar7 = 2;
			if (Global_262145.f_4181 != -1)
			{
				iVar1 = Global_262145.f_4181;
			}
			else
			{
				iVar1 = 115;
			}
			break;
		
		case 51:
			StringCopy(&Var2, "SP_FMM_3_3", 16);
			iVar6 = 3;
			iVar7 = 3;
			iVar0 = true;
			break;
		
		case 52:
			StringCopy(&Var2, "SP_FMM_3_4", 16);
			iVar6 = 3;
			iVar7 = 4;
			iVar0 = true;
			break;
		
		case 53:
			StringCopy(&Var2, "SP_FMM_3_5", 16);
			iVar6 = 3;
			iVar7 = 5;
			iVar0 = true;
			break;
		
		case 54:
			StringCopy(&Var2, "SP_FMM_3_6", 16);
			iVar6 = 3;
			iVar7 = 6;
			iVar0 = true;
			break;
		
		case 55:
			StringCopy(&Var2, "SP_FMM_3_7", 16);
			iVar6 = 3;
			iVar7 = 7;
			iVar0 = true;
			break;
		
		case 56:
			StringCopy(&Var2, "SP_FMM_3_8", 16);
			iVar6 = 3;
			iVar7 = 8;
			iVar0 = true;
			break;
		
		case 57:
			StringCopy(&Var2, "SP_FMM_3_9", 16);
			iVar6 = 3;
			iVar7 = 9;
			iVar0 = true;
			break;
		
		case 58:
			StringCopy(&Var2, "SP_FMM_3_10", 16);
			iVar6 = 3;
			iVar7 = 10;
			iVar0 = true;
			break;
		
		case 59:
			StringCopy(&Var2, "SP_FMM_3_11", 16);
			iVar6 = 3;
			iVar7 = 11;
			iVar0 = true;
			break;
		
		case 60:
			StringCopy(&Var2, "SP_FMM_3_12", 16);
			iVar6 = 3;
			iVar7 = 12;
			iVar0 = true;
			break;
		
		case 61:
			StringCopy(&Var2, "SP_FMM_3_13", 16);
			iVar6 = 3;
			iVar7 = 13;
			iVar0 = true;
			break;
		
		case 62:
			StringCopy(&Var2, "SP_FMM_3_14", 16);
			iVar6 = 3;
			iVar7 = 14;
			iVar0 = true;
			break;
		
		case 63:
			StringCopy(&Var2, "SP_FMM_3_15", 16);
			iVar6 = 3;
			iVar7 = 15;
			iVar0 = true;
			break;
	}
	switch (iParam0)
	{
		case 64:
			StringCopy(&Var2, "SP_FMM_3_0", 16);
			iVar6 = 4;
			iVar7 = 0;
			if (Global_262145.f_4178 != -1)
			{
				iVar1 = Global_262145.f_4178;
			}
			else
			{
				iVar1 = 165;
			}
			break;
		
		case 65:
			StringCopy(&Var2, "SP_FMM_3_1", 16);
			iVar6 = 4;
			iVar7 = 1;
			if (Global_262145.f_4186 != -1)
			{
				iVar1 = Global_262145.f_4186;
			}
			else
			{
				iVar1 = 120;
			}
			break;
		
		case 66:
			StringCopy(&Var2, "SP_FMM_3_2", 16);
			iVar6 = 4;
			iVar7 = 2;
			if (Global_262145.f_4181 != -1)
			{
				iVar1 = Global_262145.f_4181;
			}
			else
			{
				iVar1 = 115;
			}
			break;
		
		case 67:
			StringCopy(&Var2, "SP_FMM_3_3", 16);
			iVar6 = 4;
			iVar7 = 3;
			iVar0 = true;
			break;
		
		case 68:
			StringCopy(&Var2, "SP_FMM_3_4", 16);
			iVar6 = 4;
			iVar7 = 4;
			iVar0 = true;
			break;
		
		case 69:
			StringCopy(&Var2, "SP_FMM_3_5", 16);
			iVar6 = 4;
			iVar7 = 5;
			iVar0 = true;
			break;
		
		case 70:
			StringCopy(&Var2, "SP_FMM_3_6", 16);
			iVar6 = 4;
			iVar7 = 6;
			iVar0 = true;
			break;
		
		case 71:
			StringCopy(&Var2, "SP_FMM_3_7", 16);
			iVar6 = 4;
			iVar7 = 7;
			iVar0 = true;
			break;
		
		case 72:
			StringCopy(&Var2, "SP_FMM_3_8", 16);
			iVar6 = 4;
			iVar7 = 8;
			iVar0 = true;
			break;
		
		case 73:
			StringCopy(&Var2, "SP_FMM_3_9", 16);
			iVar6 = 4;
			iVar7 = 9;
			iVar0 = true;
			break;
		
		case 74:
			StringCopy(&Var2, "SP_FMM_3_10", 16);
			iVar6 = 4;
			iVar7 = 10;
			iVar0 = true;
			break;
		
		case 75:
			StringCopy(&Var2, "SP_FMM_3_11", 16);
			iVar6 = 4;
			iVar7 = 11;
			iVar0 = true;
			break;
		
		case 76:
			StringCopy(&Var2, "SP_FMM_3_12", 16);
			iVar6 = 4;
			iVar7 = 12;
			iVar0 = true;
			break;
		
		case 77:
			StringCopy(&Var2, "SP_FMM_3_13", 16);
			iVar6 = 4;
			iVar7 = 13;
			iVar0 = true;
			break;
		
		case 78:
			StringCopy(&Var2, "SP_FMM_3_14", 16);
			iVar6 = 4;
			iVar7 = 14;
			iVar0 = true;
			break;
		
		case 79:
			StringCopy(&Var2, "SP_FMM_3_15", 16);
			iVar6 = 4;
			iVar7 = 15;
			iVar0 = true;
			break;
		
		case 80:
			StringCopy(&Var2, "U_FMM_5_0", 16);
			iVar6 = 5;
			iVar7 = 0;
			iVar1 = 80;
			iVar1 = system::round((system::to_float(iVar1) * Global_262145.f_430[80]));
			break;
		
		case 81:
			StringCopy(&Var2, "U_FMM_5_1", 16);
			iVar6 = 5;
			iVar7 = 1;
			iVar1 = 45;
			iVar1 = system::round((system::to_float(iVar1) * Global_262145.f_430[81]));
			break;
		
		case 82:
			StringCopy(&Var2, "U_FMM_5_2", 16);
			iVar6 = 5;
			iVar7 = 2;
			iVar1 = 50;
			iVar1 = system::round((system::to_float(iVar1) * Global_262145.f_430[82]));
			break;
		
		case 83:
			StringCopy(&Var2, "U_FMM_5_3", 16);
			iVar6 = 5;
			iVar7 = 3;
			iVar0 = true;
			break;
		
		case 84:
			StringCopy(&Var2, "U_FMM_5_4", 16);
			iVar6 = 5;
			iVar7 = 4;
			iVar0 = true;
			break;
		
		case 85:
			StringCopy(&Var2, "U_FMM_5_5", 16);
			iVar6 = 5;
			iVar7 = 5;
			iVar0 = true;
			break;
		
		case 86:
			StringCopy(&Var2, "U_FMM_5_6", 16);
			iVar6 = 5;
			iVar7 = 6;
			iVar0 = true;
			break;
		
		case 87:
			StringCopy(&Var2, "U_FMM_5_7", 16);
			iVar6 = 5;
			iVar7 = 7;
			iVar1 = 50;
			iVar1 = system::round((system::to_float(iVar1) * Global_262145.f_430[87]));
			break;
		
		case 88:
			StringCopy(&Var2, "U_FMM_5_8", 16);
			iVar6 = 5;
			iVar7 = 8;
			iVar0 = true;
			break;
		
		case 89:
			StringCopy(&Var2, "U_FMM_5_9", 16);
			iVar6 = 5;
			iVar7 = 9;
			iVar0 = true;
			break;
		
		case 90:
			StringCopy(&Var2, "U_FMM_5_10", 16);
			iVar6 = 5;
			iVar7 = 10;
			iVar0 = true;
			break;
		
		case 91:
			StringCopy(&Var2, "U_FMM_5_11", 16);
			iVar6 = 5;
			iVar7 = 11;
			iVar0 = true;
			break;
		
		case 92:
			StringCopy(&Var2, "U_FMM_5_12", 16);
			iVar6 = 5;
			iVar7 = 12;
			iVar0 = true;
			break;
		
		case 93:
			StringCopy(&Var2, "U_FMM_5_13", 16);
			iVar6 = 5;
			iVar7 = 13;
			iVar0 = true;
			break;
		
		case 94:
			StringCopy(&Var2, "U_FMM_5_14", 16);
			iVar6 = 5;
			iVar7 = 14;
			iVar0 = true;
			break;
		
		case 95:
			StringCopy(&Var2, "U_FMM_5_15", 16);
			iVar6 = 5;
			iVar7 = 15;
			iVar0 = true;
			break;
	}
	switch (iParam0)
	{
		case 96:
			StringCopy(&Var2, "SP_FMM_6_0", 16);
			iVar6 = 6;
			iVar7 = 0;
			if (Global_262145.f_4199 != -1)
			{
				iVar1 = Global_262145.f_4199;
			}
			else
			{
				iVar1 = 420;
			}
			break;
		
		case 97:
			StringCopy(&Var2, "SP_FMM_6_1", 16);
			iVar6 = 6;
			iVar7 = 1;
			if (Global_262145.f_4197 != -1)
			{
				iVar1 = Global_262145.f_4197;
			}
			else
			{
				iVar1 = 415;
			}
			break;
		
		case 98:
			StringCopy(&Var2, "SP_FMM_6_2", 16);
			iVar6 = 6;
			iVar7 = 2;
			if (Global_262145.f_4177 != -1)
			{
				iVar1 = Global_262145.f_4177;
			}
			else
			{
				iVar1 = 440;
			}
			break;
		
		case 99:
			StringCopy(&Var2, "SP_FMM_6_3", 16);
			iVar6 = 6;
			iVar7 = 3;
			if (Global_262145.f_4191 != -1)
			{
				iVar1 = Global_262145.f_4191;
			}
			else
			{
				iVar1 = 400;
			}
			break;
		
		case 100:
			StringCopy(&Var2, "SP_FMM_6_4", 16);
			iVar6 = 6;
			iVar7 = 4;
			if (Global_262145.f_4176 != -1)
			{
				iVar1 = Global_262145.f_4176;
			}
			else
			{
				iVar1 = 400;
			}
			break;
		
		case 101:
			StringCopy(&Var2, "SP_FMM_6_5", 16);
			iVar6 = 6;
			iVar7 = 5;
			if (Global_262145.f_4193 != -1)
			{
				iVar1 = Global_262145.f_4193;
			}
			else
			{
				iVar1 = 410;
			}
			break;
		
		case 102:
			StringCopy(&Var2, "SP_FMM_6_6", 16);
			iVar6 = 6;
			iVar7 = 6;
			if (Global_262145.f_4196 != -1)
			{
				iVar1 = Global_262145.f_4196;
			}
			else
			{
				iVar1 = 435;
			}
			break;
		
		case 103:
			StringCopy(&Var2, "SP_FMM_6_7", 16);
			iVar6 = 6;
			iVar7 = 7;
			if (Global_262145.f_4192 != -1)
			{
				iVar1 = Global_262145.f_4192;
			}
			else
			{
				iVar1 = 425;
			}
			break;
		
		case 104:
			StringCopy(&Var2, "SP_FMM_6_8", 16);
			iVar6 = 6;
			iVar7 = 8;
			if (Global_262145.f_4185 != -1)
			{
				iVar1 = Global_262145.f_4185;
			}
			else
			{
				iVar1 = 435;
			}
			break;
		
		case 105:
			StringCopy(&Var2, "SP_FMM_6_9", 16);
			iVar6 = 6;
			iVar7 = 9;
			if (Global_262145.f_4190 != -1)
			{
				iVar1 = Global_262145.f_4190;
			}
			else
			{
				iVar1 = 420;
			}
			break;
		
		case 106:
			StringCopy(&Var2, "SP_FMM_6_10", 16);
			iVar6 = 6;
			iVar7 = 10;
			if (Global_262145.f_4188 != -1)
			{
				iVar1 = Global_262145.f_4188;
			}
			else
			{
				iVar1 = 425;
			}
			break;
		
		case 107:
			StringCopy(&Var2, "SP_FMM_6_11", 16);
			iVar6 = 6;
			iVar7 = 11;
			if (Global_262145.f_4198 != -1)
			{
				iVar1 = Global_262145.f_4198;
			}
			else
			{
				iVar1 = 425;
			}
			break;
		
		case 108:
			StringCopy(&Var2, "SP_FMM_6_12", 16);
			iVar6 = 6;
			iVar7 = 12;
			if (Global_262145.f_4184 != -1)
			{
				iVar1 = Global_262145.f_4184;
			}
			else
			{
				iVar1 = 435;
			}
			break;
		
		case 109:
			StringCopy(&Var2, "SP_FMM_6_13", 16);
			iVar6 = 6;
			iVar7 = 13;
			if (Global_262145.f_4179 != -1)
			{
				iVar1 = Global_262145.f_4179;
			}
			else
			{
				iVar1 = 750;
			}
			break;
		
		case 110:
			StringCopy(&Var2, "SP_FMM_6_14", 16);
			iVar6 = 6;
			iVar7 = 14;
			if (Global_262145.f_4194 != -1)
			{
				iVar1 = Global_262145.f_4194;
			}
			else
			{
				iVar1 = 400;
			}
			break;
		
		case 111:
			StringCopy(&Var2, "SP_FMM_6_15", 16);
			iVar6 = 6;
			iVar7 = 15;
			if (Global_262145.f_4187 != -1)
			{
				iVar1 = Global_262145.f_4187;
			}
			else
			{
				iVar1 = 435;
			}
			break;
		
		case 112:
			StringCopy(&Var2, "SP_FMM_6_0", 16);
			iVar6 = 7;
			iVar7 = 0;
			if (Global_262145.f_4199 != -1)
			{
				iVar1 = Global_262145.f_4199;
			}
			else
			{
				iVar1 = 420;
			}
			break;
		
		case 113:
			StringCopy(&Var2, "SP_FMM_6_1", 16);
			iVar6 = 7;
			iVar7 = 1;
			if (Global_262145.f_4197 != -1)
			{
				iVar1 = Global_262145.f_4197;
			}
			else
			{
				iVar1 = 415;
			}
			break;
		
		case 114:
			StringCopy(&Var2, "SP_FMM_6_2", 16);
			iVar6 = 7;
			iVar7 = 2;
			if (Global_262145.f_4177 != -1)
			{
				iVar1 = Global_262145.f_4177;
			}
			else
			{
				iVar1 = 440;
			}
			break;
		
		case 115:
			StringCopy(&Var2, "SP_FMM_6_3", 16);
			iVar6 = 7;
			iVar7 = 3;
			if (Global_262145.f_4191 != -1)
			{
				iVar1 = Global_262145.f_4191;
			}
			else
			{
				iVar1 = 400;
			}
			break;
		
		case 116:
			StringCopy(&Var2, "SP_FMM_6_4", 16);
			iVar6 = 7;
			iVar7 = 4;
			if (Global_262145.f_4176 != -1)
			{
				iVar1 = Global_262145.f_4176;
			}
			else
			{
				iVar1 = 400;
			}
			break;
		
		case 117:
			StringCopy(&Var2, "SP_FMM_6_5", 16);
			iVar6 = 7;
			iVar7 = 5;
			if (Global_262145.f_4193 != -1)
			{
				iVar1 = Global_262145.f_4193;
			}
			else
			{
				iVar1 = 410;
			}
			break;
		
		case 118:
			StringCopy(&Var2, "SP_FMM_6_6", 16);
			iVar6 = 7;
			iVar7 = 6;
			if (Global_262145.f_4196 != -1)
			{
				iVar1 = Global_262145.f_4196;
			}
			else
			{
				iVar1 = 435;
			}
			break;
		
		case 119:
			StringCopy(&Var2, "SP_FMM_6_7", 16);
			iVar6 = 7;
			iVar7 = 7;
			if (Global_262145.f_4192 != -1)
			{
				iVar1 = Global_262145.f_4192;
			}
			else
			{
				iVar1 = 425;
			}
			break;
		
		case 120:
			StringCopy(&Var2, "SP_FMM_6_8", 16);
			iVar6 = 7;
			iVar7 = 8;
			if (Global_262145.f_4185 != -1)
			{
				iVar1 = Global_262145.f_4185;
			}
			else
			{
				iVar1 = 435;
			}
			break;
		
		case 121:
			StringCopy(&Var2, "SP_FMM_6_9", 16);
			iVar6 = 7;
			iVar7 = 9;
			if (Global_262145.f_4190 != -1)
			{
				iVar1 = Global_262145.f_4190;
			}
			else
			{
				iVar1 = 420;
			}
			break;
		
		case 122:
			StringCopy(&Var2, "SP_FMM_6_10", 16);
			iVar6 = 7;
			iVar7 = 10;
			if (Global_262145.f_4188 != -1)
			{
				iVar1 = Global_262145.f_4188;
			}
			else
			{
				iVar1 = 425;
			}
			break;
		
		case 123:
			StringCopy(&Var2, "SP_FMM_6_11", 16);
			iVar6 = 7;
			iVar7 = 11;
			if (Global_262145.f_4198 != -1)
			{
				iVar1 = Global_262145.f_4198;
			}
			else
			{
				iVar1 = 425;
			}
			break;
		
		case 124:
			StringCopy(&Var2, "SP_FMM_6_12", 16);
			iVar6 = 7;
			iVar7 = 12;
			if (Global_262145.f_4184 != -1)
			{
				iVar1 = Global_262145.f_4184;
			}
			else
			{
				iVar1 = 435;
			}
			break;
		
		case 125:
			StringCopy(&Var2, "SP_FMM_6_13", 16);
			iVar6 = 7;
			iVar7 = 13;
			if (Global_262145.f_4179 != -1)
			{
				iVar1 = Global_262145.f_4179;
			}
			else
			{
				iVar1 = 750;
			}
			break;
		
		case 126:
			StringCopy(&Var2, "SP_FMM_6_14", 16);
			iVar6 = 7;
			iVar7 = 14;
			if (Global_262145.f_4194 != -1)
			{
				iVar1 = Global_262145.f_4194;
			}
			else
			{
				iVar1 = 400;
			}
			break;
		
		case 127:
			StringCopy(&Var2, "SP_FMM_6_15", 16);
			iVar6 = 7;
			iVar7 = 15;
			if (Global_262145.f_4187 != -1)
			{
				iVar1 = Global_262145.f_4187;
			}
			else
			{
				iVar1 = 435;
			}
			break;
	}
	switch (iParam0)
	{
		case 128:
			StringCopy(&Var2, "U_FMM_8_0", 16);
			iVar6 = 8;
			iVar7 = 0;
			iVar1 = 45;
			break;
		
		case 129:
			StringCopy(&Var2, "U_FMM_8_1", 16);
			iVar6 = 8;
			iVar7 = 1;
			iVar0 = true;
			break;
		
		case 130:
			StringCopy(&Var2, "U_FMM_8_2", 16);
			iVar6 = 8;
			iVar7 = 2;
			iVar0 = true;
			break;
		
		case 131:
			StringCopy(&Var2, "U_FMM_8_3", 16);
			iVar6 = 8;
			iVar7 = 3;
			iVar0 = true;
			break;
		
		case 132:
			StringCopy(&Var2, "U_FMM_8_4", 16);
			iVar6 = 8;
			iVar7 = 4;
			iVar0 = true;
			break;
		
		case 133:
			StringCopy(&Var2, "U_FMM_8_5", 16);
			iVar6 = 8;
			iVar7 = 5;
			iVar0 = true;
			break;
		
		case 134:
			StringCopy(&Var2, "U_FMM_8_6", 16);
			iVar6 = 8;
			iVar7 = 6;
			iVar0 = true;
			break;
		
		case 135:
			StringCopy(&Var2, "U_FMM_8_7", 16);
			iVar6 = 8;
			iVar7 = 7;
			iVar0 = true;
			break;
		
		case 136:
			StringCopy(&Var2, "U_FMM_8_8", 16);
			iVar6 = 8;
			iVar7 = 8;
			iVar0 = true;
			break;
		
		case 137:
			StringCopy(&Var2, "U_FMM_8_9", 16);
			iVar6 = 8;
			iVar7 = 9;
			iVar0 = true;
			break;
		
		case 138:
			StringCopy(&Var2, "U_FMM_8_10", 16);
			iVar6 = 8;
			iVar7 = 10;
			iVar1 = 65;
			break;
		
		case 139:
			StringCopy(&Var2, "U_FMM_8_11", 16);
			iVar6 = 8;
			iVar7 = 11;
			iVar0 = true;
			break;
		
		case 140:
			StringCopy(&Var2, "U_FMM_8_12", 16);
			iVar6 = 8;
			iVar7 = 12;
			iVar0 = true;
			break;
		
		case 141:
			StringCopy(&Var2, "U_FMM_8_13", 16);
			iVar6 = 8;
			iVar7 = 13;
			iVar1 = 40;
			break;
		
		case 142:
			StringCopy(&Var2, "U_FMM_8_14", 16);
			iVar6 = 8;
			iVar7 = 14;
			iVar1 = 45;
			break;
		
		case 143:
			StringCopy(&Var2, "U_FMM_8_15", 16);
			iVar6 = 8;
			iVar7 = 15;
			iVar0 = true;
			break;
		
		case 144:
			StringCopy(&Var2, "U_FMM_9_0", 16);
			iVar6 = 9;
			iVar7 = 0;
			iVar1 = 265;
			break;
		
		case 145:
			StringCopy(&Var2, "U_FMM_9_1", 16);
			iVar6 = 9;
			iVar7 = 1;
			iVar1 = 340;
			break;
		
		case 146:
			StringCopy(&Var2, "U_FMM_9_2", 16);
			iVar6 = 9;
			iVar7 = 2;
			iVar1 = 335;
			break;
		
		case 147:
			StringCopy(&Var2, "U_FMM_9_3", 16);
			iVar6 = 9;
			iVar7 = 3;
			iVar1 = 330;
			break;
		
		case 148:
			StringCopy(&Var2, "U_FMM_9_4", 16);
			iVar6 = 9;
			iVar7 = 4;
			iVar1 = 345;
			break;
		
		case 149:
			StringCopy(&Var2, "U_FMM_9_5", 16);
			iVar6 = 9;
			iVar7 = 5;
			iVar1 = 550;
			break;
		
		case 150:
			StringCopy(&Var2, "U_FMM_9_6", 16);
			iVar6 = 9;
			iVar7 = 6;
			iVar1 = 340;
			break;
		
		case 151:
			StringCopy(&Var2, "U_FMM_9_7", 16);
			iVar6 = 9;
			iVar7 = 7;
			iVar1 = 295;
			break;
		
		case 152:
			StringCopy(&Var2, "U_FMM_9_8", 16);
			iVar6 = 9;
			iVar7 = 8;
			iVar0 = true;
			break;
		
		case 153:
			StringCopy(&Var2, "U_FMM_9_9", 16);
			iVar6 = 9;
			iVar7 = 9;
			iVar0 = true;
			break;
		
		case 154:
			StringCopy(&Var2, "U_FMM_9_10", 16);
			iVar6 = 9;
			iVar7 = 10;
			iVar1 = 545;
			break;
		
		case 155:
			StringCopy(&Var2, "U_FMM_9_11", 16);
			iVar6 = 9;
			iVar7 = 11;
			iVar1 = 345;
			break;
		
		case 156:
			StringCopy(&Var2, "U_FMM_9_12", 16);
			iVar6 = 9;
			iVar7 = 12;
			iVar1 = 315;
			break;
		
		case 157:
			StringCopy(&Var2, "U_FMM_9_13", 16);
			iVar6 = 9;
			iVar7 = 13;
			iVar1 = 520;
			break;
		
		case 158:
			StringCopy(&Var2, "U_FMM_9_14", 16);
			iVar6 = 9;
			iVar7 = 14;
			iVar1 = 325;
			break;
		
		case 159:
			StringCopy(&Var2, "U_FMM_9_15", 16);
			iVar6 = 9;
			iVar7 = 15;
			iVar1 = 330;
			break;
	}
	switch (iParam0)
	{
		case 160:
			StringCopy(&Var2, "SP_FMM_10_0", 16);
			iVar6 = 10;
			iVar7 = 0;
			if (Global_262145.f_4199 != -1)
			{
				iVar1 = Global_262145.f_4199;
			}
			else
			{
				iVar1 = 405;
			}
			break;
		
		case 161:
			StringCopy(&Var2, "SP_FMM_10_1", 16);
			iVar6 = 10;
			iVar7 = 1;
			if (Global_262145.f_4197 != -1)
			{
				iVar1 = Global_262145.f_4197;
			}
			else
			{
				iVar1 = 400;
			}
			break;
		
		case 162:
			StringCopy(&Var2, "SP_FMM_10_2", 16);
			iVar6 = 10;
			iVar7 = 2;
			if (Global_262145.f_4183 != -1)
			{
				iVar1 = Global_262145.f_4183;
			}
			else
			{
				iVar1 = 425;
			}
			break;
		
		case 163:
			StringCopy(&Var2, "SP_FMM_10_3", 16);
			iVar6 = 10;
			iVar7 = 3;
			if (Global_262145.f_4191 != -1)
			{
				iVar1 = Global_262145.f_4191;
			}
			else
			{
				iVar1 = 385;
			}
			break;
		
		case 164:
			StringCopy(&Var2, "SP_FMM_10_4", 16);
			iVar6 = 10;
			iVar7 = 4;
			if (Global_262145.f_4176 != -1)
			{
				iVar1 = Global_262145.f_4176;
			}
			else
			{
				iVar1 = 385;
			}
			break;
		
		case 165:
			StringCopy(&Var2, "SP_FMM_10_5", 16);
			iVar6 = 10;
			iVar7 = 5;
			if (Global_262145.f_4193 != -1)
			{
				iVar1 = Global_262145.f_4193;
			}
			else
			{
				iVar1 = 395;
			}
			break;
		
		case 166:
			StringCopy(&Var2, "SP_FMM_10_6", 16);
			iVar6 = 10;
			iVar7 = 6;
			if (Global_262145.f_4182 != -1)
			{
				iVar1 = Global_262145.f_4182;
			}
			else
			{
				iVar1 = 500;
			}
			break;
		
		case 167:
			StringCopy(&Var2, "SP_FMM_10_7", 16);
			iVar6 = 10;
			iVar7 = 7;
			if (Global_262145.f_4196 != -1)
			{
				iVar1 = Global_262145.f_4196;
			}
			else
			{
				iVar1 = 420;
			}
			break;
		
		case 168:
			StringCopy(&Var2, "SP_FMM_10_8", 16);
			iVar6 = 10;
			iVar7 = 8;
			if (Global_262145.f_4192 != -1)
			{
				iVar1 = Global_262145.f_4192;
			}
			else
			{
				iVar1 = 410;
			}
			break;
		
		case 169:
			StringCopy(&Var2, "SP_FMM_10_9", 16);
			iVar6 = 10;
			iVar7 = 9;
			if (Global_262145.f_4185 != -1)
			{
				iVar1 = Global_262145.f_4185;
			}
			else
			{
				iVar1 = 420;
			}
			break;
		
		case 170:
			StringCopy(&Var2, "SP_FMM_10_10", 16);
			iVar6 = 10;
			iVar7 = 10;
			if (Global_262145.f_4190 != -1)
			{
				iVar1 = Global_262145.f_4190;
			}
			else
			{
				iVar1 = 405;
			}
			break;
		
		case 171:
			StringCopy(&Var2, "SP_FMM_10_11", 16);
			iVar6 = 10;
			iVar7 = 11;
			if (Global_262145.f_4188 != -1)
			{
				iVar1 = Global_262145.f_4188;
			}
			else
			{
				iVar1 = 410;
			}
			break;
		
		case 172:
			StringCopy(&Var2, "SP_FMM_10_12", 16);
			iVar6 = 10;
			iVar7 = 12;
			if (Global_262145.f_4180 != -1)
			{
				iVar1 = Global_262145.f_4180;
			}
			else
			{
				iVar1 = 420;
			}
			break;
		
		case 173:
			StringCopy(&Var2, "SP_FMM_10_13", 16);
			iVar6 = 10;
			iVar7 = 13;
			if (Global_262145.f_4195 != -1)
			{
				iVar1 = Global_262145.f_4195;
			}
			else
			{
				iVar1 = 420;
			}
			break;
		
		case 174:
			StringCopy(&Var2, "SP_FMM_10_14", 16);
			iVar6 = 10;
			iVar7 = 14;
			if (Global_262145.f_4198 != -1)
			{
				iVar1 = Global_262145.f_4198;
			}
			else
			{
				iVar1 = 410;
			}
			break;
		
		case 175:
			StringCopy(&Var2, "SP_FMM_10_15", 16);
			iVar6 = 10;
			iVar7 = 15;
			if (Global_262145.f_4189 != -1)
			{
				iVar1 = Global_262145.f_4189;
			}
			else
			{
				iVar1 = 460;
			}
			break;
		
		case 176:
			StringCopy(&Var2, "SP_FMM_10_0", 16);
			iVar6 = 11;
			iVar7 = 0;
			if (Global_262145.f_4199 != -1)
			{
				iVar1 = Global_262145.f_4199;
			}
			else
			{
				iVar1 = 405;
			}
			break;
		
		case 177:
			StringCopy(&Var2, "SP_FMM_10_1", 16);
			iVar6 = 11;
			iVar7 = 1;
			if (Global_262145.f_4197 != -1)
			{
				iVar1 = Global_262145.f_4197;
			}
			else
			{
				iVar1 = 400;
			}
			break;
		
		case 178:
			StringCopy(&Var2, "SP_FMM_10_2", 16);
			iVar6 = 11;
			iVar7 = 2;
			if (Global_262145.f_4183 != -1)
			{
				iVar1 = Global_262145.f_4183;
			}
			else
			{
				iVar1 = 425;
			}
			break;
		
		case 179:
			StringCopy(&Var2, "SP_FMM_10_3", 16);
			iVar6 = 11;
			iVar7 = 3;
			if (Global_262145.f_4191 != -1)
			{
				iVar1 = Global_262145.f_4191;
			}
			else
			{
				iVar1 = 385;
			}
			break;
		
		case 180:
			StringCopy(&Var2, "SP_FMM_10_4", 16);
			iVar6 = 11;
			iVar7 = 4;
			if (Global_262145.f_4176 != -1)
			{
				iVar1 = Global_262145.f_4176;
			}
			else
			{
				iVar1 = 385;
			}
			break;
		
		case 181:
			StringCopy(&Var2, "SP_FMM_10_5", 16);
			iVar6 = 11;
			iVar7 = 5;
			if (Global_262145.f_4193 != -1)
			{
				iVar1 = Global_262145.f_4193;
			}
			else
			{
				iVar1 = 395;
			}
			break;
		
		case 182:
			StringCopy(&Var2, "SP_FMM_10_6", 16);
			iVar6 = 11;
			iVar7 = 6;
			if (Global_262145.f_4182 != -1)
			{
				iVar1 = Global_262145.f_4182;
			}
			else
			{
				iVar1 = 500;
			}
			break;
		
		case 183:
			StringCopy(&Var2, "SP_FMM_10_7", 16);
			iVar6 = 11;
			iVar7 = 7;
			if (Global_262145.f_4196 != -1)
			{
				iVar1 = Global_262145.f_4196;
			}
			else
			{
				iVar1 = 420;
			}
			break;
		
		case 184:
			StringCopy(&Var2, "SP_FMM_10_8", 16);
			iVar6 = 11;
			iVar7 = 8;
			if (Global_262145.f_4192 != -1)
			{
				iVar1 = Global_262145.f_4192;
			}
			else
			{
				iVar1 = 410;
			}
			break;
		
		case 185:
			StringCopy(&Var2, "SP_FMM_10_9", 16);
			iVar6 = 11;
			iVar7 = 9;
			if (Global_262145.f_4185 != -1)
			{
				iVar1 = Global_262145.f_4185;
			}
			else
			{
				iVar1 = 420;
			}
			break;
		
		case 186:
			StringCopy(&Var2, "SP_FMM_10_10", 16);
			iVar6 = 11;
			iVar7 = 10;
			if (Global_262145.f_4190 != -1)
			{
				iVar1 = Global_262145.f_4190;
			}
			else
			{
				iVar1 = 405;
			}
			break;
		
		case 187:
			StringCopy(&Var2, "SP_FMM_10_11", 16);
			iVar6 = 11;
			iVar7 = 11;
			if (Global_262145.f_4188 != -1)
			{
				iVar1 = Global_262145.f_4188;
			}
			else
			{
				iVar1 = 410;
			}
			break;
		
		case 188:
			StringCopy(&Var2, "SP_FMM_10_12", 16);
			iVar6 = 11;
			iVar7 = 12;
			if (Global_262145.f_4180 != -1)
			{
				iVar1 = Global_262145.f_4180;
			}
			else
			{
				iVar1 = 420;
			}
			break;
		
		case 189:
			StringCopy(&Var2, "SP_FMM_10_13", 16);
			iVar6 = 11;
			iVar7 = 13;
			if (Global_262145.f_4195 != -1)
			{
				iVar1 = Global_262145.f_4195;
			}
			else
			{
				iVar1 = 420;
			}
			break;
		
		case 190:
			StringCopy(&Var2, "SP_FMM_10_14", 16);
			iVar6 = 11;
			iVar7 = 14;
			if (Global_262145.f_4198 != -1)
			{
				iVar1 = Global_262145.f_4198;
			}
			else
			{
				iVar1 = 410;
			}
			break;
		
		case 191:
			StringCopy(&Var2, "SP_FMM_10_15", 16);
			iVar6 = 11;
			iVar7 = 15;
			if (Global_262145.f_4189 != -1)
			{
				iVar1 = Global_262145.f_4189;
			}
			else
			{
				iVar1 = 460;
			}
			break;
	}
	switch (iParam0)
	{
		case 192:
			StringCopy(&Var2, "U_FMM_12_0", 16);
			iVar6 = 12;
			iVar7 = 0;
			iVar1 = 420;
			break;
		
		case 193:
			StringCopy(&Var2, "U_FMM_12_1", 16);
			iVar6 = 12;
			iVar7 = 1;
			iVar1 = 415;
			break;
		
		case 194:
			StringCopy(&Var2, "U_FMM_12_2", 16);
			iVar6 = 12;
			iVar7 = 2;
			iVar1 = 695;
			break;
		
		case 195:
			StringCopy(&Var2, "U_FMM_12_3", 16);
			iVar6 = 12;
			iVar7 = 3;
			iVar1 = 385;
			break;
		
		case 196:
			StringCopy(&Var2, "U_FMM_12_4", 16);
			iVar6 = 12;
			iVar7 = 4;
			iVar1 = 330;
			break;
		
		case 197:
			StringCopy(&Var2, "U_FMM_12_5", 16);
			iVar6 = 12;
			iVar7 = 5;
			iVar1 = 345;
			break;
		
		case 198:
			StringCopy(&Var2, "U_FMM_12_6", 16);
			iVar6 = 12;
			iVar7 = 6;
			iVar1 = 340;
			break;
		
		case 199:
			StringCopy(&Var2, "U_FMM_12_7", 16);
			iVar6 = 12;
			iVar7 = 7;
			iVar1 = 450;
			break;
		
		case 200:
			StringCopy(&Var2, "U_FMM_12_8", 16);
			iVar6 = 12;
			iVar7 = 8;
			iVar1 = 295;
			break;
		
		case 201:
			StringCopy(&Var2, "U_FMM_12_9", 16);
			iVar6 = 12;
			iVar7 = 9;
			iVar1 = 340;
			break;
		
		case 202:
			StringCopy(&Var2, "U_FMM_12_10", 16);
			iVar6 = 12;
			iVar7 = 10;
			iVar1 = 1060;
			break;
		
		case 203:
			StringCopy(&Var2, "U_FMM_12_11", 16);
			iVar6 = 12;
			iVar7 = 11;
			iVar1 = 1040;
			break;
		
		case 204:
			StringCopy(&Var2, "U_FMM_12_12", 16);
			iVar6 = 12;
			iVar7 = 12;
			iVar0 = true;
			break;
		
		case 205:
			StringCopy(&Var2, "U_FMM_12_13", 16);
			iVar6 = 12;
			iVar7 = 13;
			iVar0 = true;
			break;
		
		case 206:
			StringCopy(&Var2, "U_FMM_12_14", 16);
			iVar6 = 12;
			iVar7 = 14;
			iVar0 = true;
			break;
		
		case 207:
			StringCopy(&Var2, "U_FMM_12_15", 16);
			iVar6 = 12;
			iVar7 = 15;
			iVar0 = true;
			break;
		
		case 208:
			StringCopy(&Var2, "U_FMM_13_0", 16);
			iVar6 = 13;
			iVar7 = 0;
			iVar1 = 420;
			break;
		
		case 209:
			StringCopy(&Var2, "U_FMM_13_1", 16);
			iVar6 = 13;
			iVar7 = 1;
			iVar1 = 415;
			break;
		
		case 210:
			StringCopy(&Var2, "U_FMM_13_2", 16);
			iVar6 = 13;
			iVar7 = 2;
			iVar1 = 680;
			break;
		
		case 211:
			StringCopy(&Var2, "U_FMM_13_3", 16);
			iVar6 = 13;
			iVar7 = 3;
			iVar1 = 385;
			break;
		
		case 212:
			StringCopy(&Var2, "U_FMM_13_4", 16);
			iVar6 = 13;
			iVar7 = 4;
			iVar0 = true;
			break;
		
		case 213:
			StringCopy(&Var2, "U_FMM_13_5", 16);
			iVar6 = 13;
			iVar7 = 5;
			iVar1 = 345;
			break;
		
		case 214:
			StringCopy(&Var2, "U_FMM_13_6", 16);
			iVar6 = 13;
			iVar7 = 6;
			iVar0 = true;
			break;
		
		case 215:
			StringCopy(&Var2, "U_FMM_13_7", 16);
			iVar6 = 13;
			iVar7 = 7;
			iVar0 = true;
			break;
		
		case 216:
			StringCopy(&Var2, "U_FMM_13_8", 16);
			iVar6 = 13;
			iVar7 = 8;
			iVar0 = true;
			break;
		
		case 217:
			StringCopy(&Var2, "U_FMM_13_9", 16);
			iVar6 = 13;
			iVar7 = 9;
			iVar0 = true;
			break;
		
		case 218:
			StringCopy(&Var2, "U_FMM_13_10", 16);
			iVar6 = 13;
			iVar7 = 10;
			iVar0 = true;
			break;
		
		case 219:
			StringCopy(&Var2, "U_FMM_13_11", 16);
			iVar6 = 13;
			iVar7 = 11;
			iVar0 = true;
			break;
		
		case 220:
			StringCopy(&Var2, "U_FMM_13_12", 16);
			iVar6 = 13;
			iVar7 = 12;
			iVar0 = true;
			break;
		
		case 221:
			StringCopy(&Var2, "U_FMM_13_13", 16);
			iVar6 = 13;
			iVar7 = 13;
			iVar1 = 1065;
			break;
		
		case 222:
			StringCopy(&Var2, "U_FMM_13_14", 16);
			iVar6 = 13;
			iVar7 = 14;
			iVar0 = true;
			break;
		
		case 223:
			StringCopy(&Var2, "U_FMM_13_15", 16);
			iVar6 = 13;
			iVar7 = 15;
			iVar0 = true;
			break;
	}
	switch (iParam0)
	{
		case 224:
			StringCopy(&Var2, "U_FMM_1_0", 16);
			iVar6 = 14;
			iVar7 = 0;
			iVar1 = 45;
			iVar1 = system::round((system::to_float(iVar1) * Global_262145.f_430[16]));
			break;
		
		case 225:
			StringCopy(&Var2, "U_FMM_1_1", 16);
			iVar6 = 14;
			iVar7 = 1;
			iVar1 = 60;
			iVar1 = system::round((system::to_float(iVar1) * Global_262145.f_430[17]));
			break;
		
		case 226:
			StringCopy(&Var2, "U_FMM_1_2", 16);
			iVar6 = 14;
			iVar7 = 2;
			iVar0 = true;
			break;
		
		case 227:
			StringCopy(&Var2, "U_FMM_1_3", 16);
			iVar6 = 14;
			iVar7 = 3;
			iVar1 = 40;
			iVar1 = system::round((system::to_float(iVar1) * Global_262145.f_430[19]));
			break;
		
		case 228:
			StringCopy(&Var2, "U_FMM_1_4", 16);
			iVar6 = 14;
			iVar7 = 4;
			iVar1 = 315;
			iVar1 = system::round((system::to_float(iVar1) * Global_262145.f_430[20]));
			break;
		
		case 229:
			StringCopy(&Var2, "U_FMM_1_5", 16);
			iVar6 = 14;
			iVar7 = 5;
			iVar1 = 215;
			iVar1 = system::round((system::to_float(iVar1) * Global_262145.f_430[21]));
			break;
		
		case 230:
			StringCopy(&Var2, "U_FMM_1_6", 16);
			iVar6 = 14;
			iVar7 = 6;
			iVar1 = 265;
			iVar1 = system::round((system::to_float(iVar1) * Global_262145.f_430[22]));
			break;
		
		case 231:
			StringCopy(&Var2, "U_FMM_1_7", 16);
			iVar6 = 14;
			iVar7 = 7;
			iVar1 = 45;
			iVar1 = system::round((system::to_float(iVar1) * Global_262145.f_430[23]));
			break;
		
		case 232:
			StringCopy(&Var2, "U_FMM_1_8", 16);
			iVar6 = 14;
			iVar7 = 8;
			iVar1 = 205;
			iVar1 = system::round((system::to_float(iVar1) * Global_262145.f_430[24]));
			break;
		
		case 233:
			StringCopy(&Var2, "U_FMM_1_9", 16);
			iVar6 = 14;
			iVar7 = 9;
			iVar0 = true;
			break;
		
		case 234:
			StringCopy(&Var2, "U_FMM_1_10", 16);
			iVar6 = 14;
			iVar7 = 10;
			iVar0 = true;
			break;
		
		case 235:
			StringCopy(&Var2, "U_FMM_1_11", 16);
			iVar6 = 14;
			iVar7 = 11;
			iVar1 = 60;
			iVar1 = system::round((system::to_float(iVar1) * Global_262145.f_430[27]));
			break;
		
		case 236:
			StringCopy(&Var2, "U_FMM_1_12", 16);
			iVar6 = 14;
			iVar7 = 12;
			iVar1 = 55;
			iVar1 = system::round((system::to_float(iVar1) * Global_262145.f_430[28]));
			break;
		
		case 237:
			StringCopy(&Var2, "U_FMM_1_13", 16);
			iVar6 = 14;
			iVar7 = 13;
			iVar0 = true;
			break;
		
		case 238:
			StringCopy(&Var2, "U_FMM_1_14", 16);
			iVar6 = 14;
			iVar7 = 14;
			iVar1 = 170;
			iVar1 = system::round((system::to_float(iVar1) * Global_262145.f_430[30]));
			break;
		
		case 239:
			StringCopy(&Var2, "U_FMM_1_15", 16);
			iVar6 = 14;
			iVar7 = 15;
			iVar0 = true;
			break;
		
		case 240:
			StringCopy(&Var2, "U_FMM_15_0", 16);
			iVar6 = 15;
			iVar7 = 0;
			iVar1 = 0;
			iVar1 = system::round((system::to_float(iVar1) * Global_262145.f_430[32]));
			break;
	}
	if (iParam0 == 23 || iParam0 == 231)
	{
		if (func_139(89, -1))
		{
			StringCopy(&Var2, "REW_RS", 16);
			iVar1 = system::round((system::to_float(1250) * Global_262145.f_2977));
		}
		else
		{
			iVar1 = system::round((system::to_float(45) * Global_262145.f_430[23]));
		}
	}
	else if (iParam0 == 17 || iParam0 == 225)
	{
		if (func_139(88, -1))
		{
			StringCopy(&Var2, "REW_LSB", 16);
			iVar1 = system::round((system::to_float(450) * Global_262145.f_2976));
		}
		else
		{
			iVar1 = system::round((system::to_float(60) * Global_262145.f_430[17]));
		}
	}
	else if (iParam0 == 28 || iParam0 == 236)
	{
		if (func_139(87, -1))
		{
			StringCopy(&Var2, "REW_REDSK", 16);
			iVar1 = system::round((system::to_float(500) * Global_262145.f_2975));
		}
		else
		{
			iVar1 = system::round((system::to_float(55) * Global_262145.f_430[28]));
		}
	}
	else if (iParam0 >= 0 && iParam0 < 32)
	{
		iVar11 = iParam0;
		if (iVar11 >= 0 && iVar11 < 237)
		{
			iVar1 = system::round((system::to_float(iVar1) * Global_262145.f_430[iVar11]));
		}
	}
	else if (iParam0 >= 32 && iParam0 < 48)
	{
		iVar12 = (iParam0 - 32);
		if (iVar12 >= 0 && iVar12 < 237)
		{
			iVar1 = system::round((system::to_float(iVar1) * Global_262145.f_430[iVar12]));
		}
	}
	else if (iParam0 >= 128 && iParam0 < 160)
	{
		iVar13 = (iParam0 - 160) + 124;
		if (iVar13 >= 0 && iVar13 < 237)
		{
			iVar1 = system::round((system::to_float(iVar1) * Global_262145.f_430[iVar13]));
		}
	}
	else if (iParam0 >= 192 && iParam0 < 224)
	{
		iVar14 = (iParam0 - 160) + 188;
		if (iVar14 >= 0 && iVar14 < 237)
		{
			iVar1 = system::round((system::to_float(iVar1) * Global_262145.f_430[iVar14]));
		}
	}
	iVar1 = system::round((system::to_float(iVar1) * Global_279748.f_16));
	if (iParam0 >= 241)
	{
		Global_69518[0 /*14*/].f_5 = 3;
		func_203(iVar10, iParam0, 241);
		if (Global_69518[0 /*14*/].f_7 > 0)
		{
			Global_69518[0 /*14*/].f_7 = system::round((system::to_float(Global_69518[0 /*14*/].f_7) * Global_279748.f_16));
		}
	}
	else
	{
		func_195(&(Global_69518[0 /*14*/]), iVar10, iParam0, &Var2, iVar6, iVar7, iVar1, iVar0, iVar8, iVar9, 0);
	}
}

void func_231(int iParam0)//Position - 0x40C7E
{
	int iVar0;
	int iVar1;
	struct<2> Var2;
	int iVar6;
	int iVar7;
	int iVar8;
	int iVar9;
	int iVar10;
	int iVar11;
	
	iVar0 = false;
	iVar1 = 10;
	iVar6 = 0;
	iVar7 = 0;
	iVar8 = -1;
	iVar9 = 2;
	iVar10 = 11;
	switch (iParam0)
	{
		case 0:
			iVar6 = 0;
			iVar7 = 0;
			iVar1 = 250;
			break;
		
		case 1:
			iVar6 = 0;
			iVar7 = 1;
			iVar1 = 210;
			break;
		
		case 2:
			iVar6 = 0;
			iVar7 = 2;
			iVar1 = 50;
			break;
		
		case 3:
			iVar6 = 0;
			iVar7 = 3;
			iVar1 = 90;
			break;
		
		case 4:
			iVar6 = 0;
			iVar7 = 4;
			iVar1 = 210;
			break;
		
		case 5:
			iVar6 = 0;
			iVar7 = 5;
			iVar1 = 200;
			break;
		
		case 6:
			iVar6 = 0;
			iVar7 = 6;
			iVar1 = 0;
			iVar0 = true;
			break;
		
		case 7:
			iVar6 = 0;
			iVar7 = 7;
			iVar1 = 130;
			break;
		
		case 8:
			iVar6 = 0;
			iVar7 = 8;
			iVar1 = 220;
			break;
		
		case 9:
			iVar6 = 0;
			iVar7 = 9;
			iVar1 = 0;
			iVar0 = true;
			break;
		
		case 10:
			iVar6 = 0;
			iVar7 = 10;
			iVar1 = 0;
			iVar0 = true;
			break;
		
		case 11:
			iVar6 = 0;
			iVar7 = 11;
			iVar1 = 220;
			break;
		
		case 12:
			iVar6 = 0;
			iVar7 = 12;
			iVar1 = 0;
			iVar0 = true;
			break;
		
		case 13:
			iVar6 = 0;
			iVar7 = 13;
			iVar1 = 0;
			iVar0 = true;
			break;
		
		case 14:
			iVar6 = 0;
			iVar7 = 14;
			iVar1 = 0;
			iVar0 = true;
			break;
		
		case 15:
			iVar6 = 0;
			iVar7 = 15;
			iVar1 = 0;
			iVar0 = true;
			break;
		
		case 16:
			iVar6 = 1;
			iVar7 = 0;
			iVar1 = 45;
			break;
		
		case 17:
			iVar6 = 1;
			iVar7 = 1;
			iVar1 = 60;
			break;
		
		case 18:
			iVar6 = 1;
			iVar7 = 2;
			iVar1 = 0;
			iVar0 = true;
			break;
		
		case 19:
			iVar6 = 1;
			iVar7 = 3;
			iVar1 = 40;
			break;
		
		case 20:
			iVar6 = 1;
			iVar7 = 4;
			iVar1 = 315;
			break;
		
		case 21:
			iVar6 = 1;
			iVar7 = 5;
			iVar1 = 215;
			break;
		
		case 22:
			iVar6 = 1;
			iVar7 = 6;
			iVar1 = 265;
			break;
		
		case 23:
			iVar6 = 1;
			iVar7 = 7;
			iVar1 = 45;
			break;
		
		case 24:
			iVar6 = 1;
			iVar7 = 8;
			iVar1 = 205;
			break;
		
		case 25:
			iVar6 = 1;
			iVar7 = 9;
			iVar1 = 0;
			iVar0 = true;
			break;
		
		case 26:
			iVar6 = 1;
			iVar7 = 10;
			iVar1 = 0;
			iVar0 = true;
			break;
		
		case 27:
			iVar6 = 1;
			iVar7 = 11;
			iVar1 = 60;
			break;
		
		case 28:
			iVar6 = 1;
			iVar7 = 12;
			iVar1 = 55;
			break;
		
		case 29:
			iVar6 = 1;
			iVar7 = 13;
			iVar1 = 0;
			iVar0 = true;
			break;
		
		case 30:
			iVar6 = 1;
			iVar7 = 14;
			iVar1 = 170;
			break;
		
		case 31:
			iVar6 = 1;
			iVar7 = 15;
			iVar1 = 0;
			iVar0 = true;
			break;
	}
	switch (iParam0)
	{
		case 32:
			iVar6 = 2;
			iVar7 = 0;
			iVar1 = 0;
			iVar0 = true;
			break;
		
		case 33:
			iVar6 = 2;
			iVar7 = 1;
			iVar1 = 0;
			iVar0 = true;
			break;
		
		case 34:
			iVar6 = 2;
			iVar7 = 2;
			iVar1 = 0;
			iVar0 = true;
			break;
		
		case 35:
			iVar6 = 2;
			iVar7 = 3;
			iVar1 = 0;
			iVar0 = true;
			break;
		
		case 36:
			iVar6 = 2;
			iVar7 = 4;
			iVar1 = 0;
			iVar0 = true;
			break;
		
		case 37:
			iVar6 = 2;
			iVar7 = 5;
			iVar1 = 0;
			iVar0 = true;
			break;
		
		case 38:
			iVar6 = 2;
			iVar7 = 6;
			iVar1 = 0;
			iVar0 = true;
			break;
		
		case 39:
			iVar6 = 2;
			iVar7 = 7;
			iVar1 = 0;
			iVar0 = true;
			break;
		
		case 40:
			iVar6 = 2;
			iVar7 = 8;
			iVar1 = 0;
			iVar0 = true;
			break;
		
		case 41:
			iVar6 = 2;
			iVar7 = 9;
			iVar1 = 160;
			break;
		
		case 42:
			iVar6 = 2;
			iVar7 = 10;
			iVar1 = 0;
			iVar0 = true;
			break;
		
		case 43:
			iVar6 = 2;
			iVar7 = 11;
			iVar1 = 0;
			iVar0 = true;
			break;
		
		case 44:
			iVar6 = 2;
			iVar7 = 12;
			iVar1 = 0;
			iVar0 = true;
			break;
		
		case 45:
			iVar6 = 2;
			iVar7 = 13;
			iVar1 = 0;
			iVar0 = true;
			break;
		
		case 46:
			iVar6 = 2;
			iVar7 = 14;
			iVar1 = 0;
			iVar0 = true;
			break;
		
		case 47:
			iVar6 = 2;
			iVar7 = 15;
			iVar1 = 0;
			iVar0 = true;
			break;
		
		case 48:
			iVar6 = 3;
			iVar7 = 0;
			iVar1 = 205;
			break;
		
		case 49:
			iVar6 = 3;
			iVar7 = 1;
			iVar1 = 110;
			break;
		
		case 50:
			iVar6 = 3;
			iVar7 = 2;
			iVar1 = 150;
			break;
		
		case 51:
			iVar6 = 3;
			iVar7 = 3;
			iVar1 = 115;
			break;
		
		case 52:
			iVar6 = 3;
			iVar7 = 4;
			iVar1 = 115;
			break;
		
		case 53:
			iVar6 = 3;
			iVar7 = 5;
			iVar1 = 150;
			break;
		
		case 54:
			iVar6 = 3;
			iVar7 = 6;
			iVar1 = 150;
			break;
		
		case 55:
			iVar6 = 3;
			iVar7 = 7;
			iVar1 = 115;
			break;
		
		case 56:
			iVar6 = 3;
			iVar7 = 8;
			iVar1 = 140;
			break;
		
		case 57:
			iVar6 = 3;
			iVar7 = 9;
			iVar1 = 125;
			break;
		
		case 58:
			iVar6 = 3;
			iVar7 = 10;
			iVar1 = 115;
			break;
		
		case 59:
			iVar6 = 3;
			iVar7 = 11;
			iVar1 = 150;
			break;
		
		case 60:
			iVar6 = 3;
			iVar7 = 12;
			iVar1 = 150;
			break;
		
		case 61:
			iVar6 = 3;
			iVar7 = 13;
			iVar1 = 275;
			break;
		
		case 62:
			iVar6 = 3;
			iVar7 = 14;
			iVar1 = 460;
			break;
		
		case 63:
			iVar6 = 3;
			iVar7 = 15;
			iVar1 = 260;
			break;
	}
	switch (iParam0)
	{
		case 64:
			iVar6 = 4;
			iVar7 = 0;
			iVar1 = 965;
			break;
		
		case 65:
			iVar6 = 4;
			iVar7 = 1;
			iVar1 = 0;
			iVar0 = true;
			break;
		
		case 66:
			iVar6 = 4;
			iVar7 = 2;
			iVar1 = 2520;
			break;
		
		case 67:
			iVar6 = 4;
			iVar7 = 3;
			iVar1 = 350;
			break;
		
		case 68:
			iVar6 = 4;
			iVar7 = 4;
			iVar1 = 0;
			iVar0 = true;
			break;
		
		case 69:
			iVar6 = 4;
			iVar7 = 5;
			iVar1 = 0;
			iVar0 = true;
			break;
		
		case 70:
			iVar6 = 4;
			iVar7 = 6;
			iVar1 = 0;
			iVar0 = true;
			break;
		
		case 71:
			iVar6 = 4;
			iVar7 = 7;
			iVar1 = 0;
			iVar0 = true;
			break;
		
		case 72:
			iVar6 = 4;
			iVar7 = 8;
			iVar1 = 0;
			iVar0 = true;
			break;
		
		case 73:
			iVar6 = 4;
			iVar7 = 9;
			iVar1 = 0;
			iVar0 = true;
			break;
		
		case 74:
			iVar6 = 4;
			iVar7 = 10;
			iVar1 = 0;
			iVar0 = true;
			break;
		
		case 75:
			iVar6 = 4;
			iVar7 = 11;
			iVar1 = 150;
			break;
		
		case 76:
			iVar6 = 4;
			iVar7 = 12;
			iVar1 = 0;
			iVar0 = true;
			break;
		
		case 77:
			iVar6 = 4;
			iVar7 = 13;
			iVar1 = 0;
			iVar0 = true;
			break;
		
		case 78:
			iVar6 = 4;
			iVar7 = 14;
			iVar1 = 3125;
			break;
		
		case 79:
			iVar6 = 4;
			iVar7 = 15;
			iVar1 = 0;
			iVar0 = true;
			break;
		
		case 80:
			iVar6 = 5;
			iVar7 = 0;
			iVar1 = 80;
			break;
		
		case 81:
			iVar6 = 5;
			iVar7 = 1;
			iVar1 = 45;
			break;
		
		case 82:
			iVar6 = 5;
			iVar7 = 2;
			iVar1 = 50;
			break;
		
		case 83:
			iVar6 = 5;
			iVar7 = 3;
			iVar1 = 0;
			iVar0 = true;
			break;
		
		case 84:
			iVar6 = 5;
			iVar7 = 4;
			iVar1 = 0;
			iVar0 = true;
			break;
		
		case 85:
			iVar6 = 5;
			iVar7 = 5;
			iVar1 = 0;
			iVar0 = true;
			break;
		
		case 86:
			iVar6 = 5;
			iVar7 = 6;
			iVar1 = 0;
			iVar0 = true;
			break;
		
		case 87:
			iVar6 = 5;
			iVar7 = 7;
			iVar1 = 50;
			break;
		
		case 88:
			iVar6 = 5;
			iVar7 = 8;
			iVar1 = 0;
			iVar0 = true;
			break;
		
		case 89:
			iVar6 = 5;
			iVar7 = 9;
			iVar1 = 0;
			iVar0 = true;
			break;
		
		case 90:
			iVar6 = 5;
			iVar7 = 10;
			iVar1 = 0;
			iVar0 = true;
			break;
		
		case 91:
			iVar6 = 5;
			iVar7 = 11;
			iVar1 = 0;
			iVar0 = true;
			break;
		
		case 92:
			iVar6 = 5;
			iVar7 = 12;
			iVar1 = 0;
			iVar0 = true;
			break;
		
		case 93:
			iVar6 = 5;
			iVar7 = 13;
			iVar1 = 0;
			iVar0 = true;
			break;
		
		case 94:
			iVar6 = 5;
			iVar7 = 14;
			iVar1 = 0;
			iVar0 = true;
			break;
		
		case 95:
			iVar6 = 5;
			iVar7 = 15;
			iVar1 = 0;
			iVar0 = true;
			break;
	}
	switch (iParam0)
	{
		case 96:
			iVar6 = 6;
			iVar7 = 0;
			iVar1 = 2485;
			break;
		
		case 97:
			iVar6 = 6;
			iVar7 = 1;
			iVar1 = 535;
			break;
		
		case 98:
			iVar6 = 6;
			iVar7 = 2;
			iVar1 = 0;
			iVar0 = true;
			break;
		
		case 99:
			iVar6 = 6;
			iVar7 = 3;
			iVar1 = 2945;
			break;
		
		case 100:
			iVar6 = 6;
			iVar7 = 4;
			iVar1 = 3080;
			break;
		
		case 101:
			iVar6 = 6;
			iVar7 = 5;
			iVar1 = 2990;
			break;
		
		case 102:
			iVar6 = 6;
			iVar7 = 6;
			iVar1 = 3750;
			break;
		
		case 103:
			iVar6 = 6;
			iVar7 = 7;
			iVar1 = 0;
			iVar0 = true;
			break;
		
		case 104:
			iVar6 = 6;
			iVar7 = 8;
			iVar1 = 515;
			break;
		
		case 105:
			iVar6 = 6;
			iVar7 = 9;
			iVar1 = 530;
			break;
		
		case 106:
			iVar6 = 6;
			iVar7 = 10;
			iVar1 = 0;
			iVar0 = true;
			break;
		
		case 107:
			iVar6 = 6;
			iVar7 = 11;
			iVar1 = 2810;
			break;
		
		case 108:
			iVar6 = 7;
			iVar7 = 0;
			iVar1 = 150;
			break;
		
		case 109:
			iVar6 = 7;
			iVar7 = 1;
			iVar1 = 155;
			break;
		
		case 110:
			iVar6 = 7;
			iVar7 = 2;
			iVar1 = 320;
			break;
		
		case 111:
			iVar6 = 7;
			iVar7 = 3;
			iVar1 = 140;
			break;
		
		case 112:
			iVar6 = 7;
			iVar7 = 4;
			iVar1 = 150;
			break;
		
		case 113:
			iVar6 = 7;
			iVar7 = 5;
			iVar1 = 145;
			break;
		
		case 114:
			iVar6 = 7;
			iVar7 = 6;
			iVar1 = 150;
			break;
		
		case 115:
			iVar6 = 7;
			iVar7 = 7;
			iVar1 = 140;
			break;
		
		case 116:
			iVar6 = 7;
			iVar7 = 8;
			iVar1 = 135;
			break;
		
		case 117:
			iVar6 = 7;
			iVar7 = 9;
			iVar1 = 130;
			break;
		
		case 118:
			iVar6 = 7;
			iVar7 = 10;
			iVar1 = 130;
			break;
		
		case 119:
			iVar6 = 7;
			iVar7 = 11;
			iVar1 = 150;
			break;
		
		case 120:
			iVar6 = 7;
			iVar7 = 12;
			iVar1 = 145;
			break;
		
		case 121:
			iVar6 = 7;
			iVar7 = 13;
			iVar1 = 740;
			break;
		
		case 122:
			iVar6 = 7;
			iVar7 = 14;
			iVar1 = 790;
			break;
		
		case 123:
			iVar6 = 7;
			iVar7 = 15;
			iVar1 = 130;
			break;
	}
	switch (iParam0)
	{
		case 124:
			iVar6 = 8;
			iVar7 = 0;
			iVar1 = 45;
			break;
		
		case 125:
			iVar6 = 8;
			iVar7 = 1;
			iVar1 = 0;
			iVar0 = true;
			break;
		
		case 126:
			iVar6 = 8;
			iVar7 = 2;
			iVar1 = 0;
			iVar0 = true;
			break;
		
		case 127:
			iVar6 = 8;
			iVar7 = 3;
			iVar1 = 0;
			iVar0 = true;
			break;
		
		case 128:
			iVar6 = 8;
			iVar7 = 4;
			iVar1 = 0;
			iVar0 = true;
			break;
		
		case 129:
			iVar6 = 8;
			iVar7 = 5;
			iVar1 = 0;
			iVar0 = true;
			break;
		
		case 130:
			iVar6 = 8;
			iVar7 = 6;
			iVar1 = 0;
			iVar0 = true;
			break;
		
		case 131:
			iVar6 = 8;
			iVar7 = 7;
			iVar1 = 0;
			iVar0 = true;
			break;
		
		case 132:
			iVar6 = 8;
			iVar7 = 8;
			iVar1 = 0;
			iVar0 = true;
			break;
		
		case 133:
			iVar6 = 8;
			iVar7 = 9;
			iVar1 = 0;
			iVar0 = true;
			break;
		
		case 134:
			iVar6 = 8;
			iVar7 = 10;
			iVar1 = 65;
			break;
		
		case 135:
			iVar6 = 8;
			iVar7 = 11;
			iVar1 = 0;
			iVar0 = true;
			break;
		
		case 136:
			iVar6 = 8;
			iVar7 = 12;
			iVar1 = 0;
			iVar0 = true;
			break;
		
		case 137:
			iVar6 = 8;
			iVar7 = 13;
			iVar1 = 40;
			break;
		
		case 138:
			iVar6 = 8;
			iVar7 = 14;
			iVar1 = 45;
			break;
		
		case 139:
			iVar6 = 8;
			iVar7 = 15;
			iVar1 = 0;
			iVar0 = true;
			break;
		
		case 140:
			iVar6 = 9;
			iVar7 = 0;
			iVar1 = 265;
			break;
		
		case 141:
			iVar6 = 9;
			iVar7 = 1;
			iVar1 = 340;
			break;
		
		case 142:
			iVar6 = 9;
			iVar7 = 2;
			iVar1 = 335;
			break;
		
		case 143:
			iVar6 = 9;
			iVar7 = 3;
			iVar1 = 330;
			break;
		
		case 144:
			iVar6 = 9;
			iVar7 = 4;
			iVar1 = 345;
			break;
		
		case 145:
			iVar6 = 9;
			iVar7 = 5;
			iVar1 = 550;
			break;
		
		case 146:
			iVar6 = 9;
			iVar7 = 6;
			iVar1 = 340;
			break;
		
		case 147:
			iVar6 = 9;
			iVar7 = 7;
			iVar1 = 295;
			break;
		
		case 148:
			iVar6 = 9;
			iVar7 = 8;
			iVar1 = 0;
			iVar0 = true;
			break;
		
		case 149:
			iVar6 = 9;
			iVar7 = 9;
			iVar1 = 0;
			iVar0 = true;
			break;
		
		case 150:
			iVar6 = 9;
			iVar7 = 10;
			iVar1 = 545;
			break;
		
		case 151:
			iVar6 = 9;
			iVar7 = 11;
			iVar1 = 345;
			break;
		
		case 152:
			iVar6 = 9;
			iVar7 = 12;
			iVar1 = 315;
			break;
		
		case 153:
			iVar6 = 9;
			iVar7 = 13;
			iVar1 = 520;
			break;
		
		case 154:
			iVar6 = 9;
			iVar7 = 14;
			iVar1 = 325;
			break;
		
		case 155:
			iVar6 = 9;
			iVar7 = 15;
			iVar1 = 330;
			break;
	}
	switch (iParam0)
	{
		case 156:
			iVar6 = 10;
			iVar7 = 0;
			iVar1 = 505;
			break;
		
		case 157:
			iVar6 = 10;
			iVar7 = 1;
			iVar1 = 470;
			break;
		
		case 158:
			iVar6 = 10;
			iVar7 = 2;
			iVar1 = 475;
			break;
		
		case 159:
			iVar6 = 10;
			iVar7 = 3;
			iVar1 = 0;
			iVar0 = true;
			break;
		
		case 160:
			iVar6 = 10;
			iVar7 = 4;
			iVar1 = 0;
			iVar0 = true;
			break;
		
		case 161:
			iVar6 = 10;
			iVar7 = 5;
			iVar1 = 0;
			iVar0 = true;
			break;
		
		case 162:
			iVar6 = 10;
			iVar7 = 6;
			iVar1 = 0;
			iVar0 = true;
			break;
		
		case 163:
			iVar6 = 10;
			iVar7 = 7;
			iVar1 = 0;
			iVar0 = true;
			break;
		
		case 164:
			iVar6 = 10;
			iVar7 = 8;
			iVar1 = 0;
			iVar0 = true;
			break;
		
		case 165:
			iVar6 = 10;
			iVar7 = 9;
			iVar1 = 0;
			iVar0 = true;
			break;
		
		case 166:
			iVar6 = 10;
			iVar7 = 10;
			iVar1 = 0;
			iVar0 = true;
			break;
		
		case 167:
			iVar6 = 10;
			iVar7 = 11;
			iVar1 = 0;
			iVar0 = true;
			break;
		
		case 168:
			iVar6 = 10;
			iVar7 = 12;
			iVar1 = 0;
			iVar0 = true;
			break;
		
		case 169:
			iVar6 = 10;
			iVar7 = 13;
			iVar1 = 0;
			iVar0 = true;
			break;
		
		case 170:
			iVar6 = 10;
			iVar7 = 14;
			iVar1 = 0;
			iVar0 = true;
			break;
		
		case 171:
			iVar6 = 10;
			iVar7 = 15;
			iVar1 = 0;
			iVar0 = true;
			break;
		
		case 172:
			iVar6 = 11;
			iVar7 = 0;
			iVar1 = 120;
			break;
		
		case 173:
			iVar6 = 11;
			iVar7 = 1;
			iVar1 = 360;
			break;
		
		case 174:
			iVar6 = 11;
			iVar7 = 2;
			iVar1 = 0;
			iVar0 = true;
			break;
		
		case 175:
			iVar6 = 11;
			iVar7 = 3;
			iVar1 = 0;
			iVar0 = true;
			break;
		
		case 176:
			iVar6 = 11;
			iVar7 = 4;
			iVar1 = 0;
			iVar0 = true;
			break;
		
		case 177:
			iVar6 = 11;
			iVar7 = 5;
			iVar1 = 0;
			iVar0 = true;
			break;
		
		case 178:
			iVar6 = 11;
			iVar7 = 6;
			iVar1 = 0;
			iVar0 = true;
			break;
		
		case 179:
			iVar6 = 11;
			iVar7 = 7;
			iVar1 = 90;
			break;
		
		case 180:
			iVar6 = 11;
			iVar7 = 8;
			iVar1 = 0;
			iVar0 = true;
			break;
		
		case 181:
			iVar6 = 11;
			iVar7 = 9;
			iVar1 = 0;
			iVar0 = true;
			break;
		
		case 182:
			iVar6 = 11;
			iVar7 = 10;
			iVar1 = 0;
			iVar0 = true;
			break;
		
		case 183:
			iVar6 = 11;
			iVar7 = 11;
			iVar1 = 0;
			iVar0 = true;
			break;
		
		case 184:
			iVar6 = 11;
			iVar7 = 12;
			iVar1 = 0;
			iVar0 = true;
			break;
		
		case 185:
			iVar6 = 11;
			iVar7 = 13;
			iVar1 = 0;
			iVar0 = true;
			break;
		
		case 186:
			iVar6 = 11;
			iVar7 = 14;
			iVar1 = 2450;
			break;
		
		case 187:
			iVar6 = 11;
			iVar7 = 15;
			iVar1 = 0;
			iVar0 = true;
			break;
	}
	switch (iParam0)
	{
		case 188:
			iVar6 = 12;
			iVar7 = 0;
			iVar1 = 420;
			break;
		
		case 189:
			iVar6 = 12;
			iVar7 = 1;
			iVar1 = 415;
			break;
		
		case 190:
			iVar6 = 12;
			iVar7 = 2;
			iVar1 = 695;
			break;
		
		case 191:
			iVar6 = 12;
			iVar7 = 3;
			iVar1 = 385;
			break;
		
		case 192:
			iVar6 = 12;
			iVar7 = 4;
			iVar1 = 330;
			break;
		
		case 193:
			iVar6 = 12;
			iVar7 = 5;
			iVar1 = 345;
			break;
		
		case 194:
			iVar6 = 12;
			iVar7 = 6;
			iVar1 = 340;
			break;
		
		case 195:
			iVar6 = 12;
			iVar7 = 7;
			iVar1 = 450;
			break;
		
		case 196:
			iVar6 = 12;
			iVar7 = 8;
			iVar1 = 295;
			break;
		
		case 197:
			iVar6 = 12;
			iVar7 = 9;
			iVar1 = 340;
			break;
		
		case 198:
			iVar6 = 12;
			iVar7 = 10;
			iVar1 = 1060;
			break;
		
		case 199:
			iVar6 = 12;
			iVar7 = 11;
			iVar1 = 1040;
			break;
		
		case 200:
			iVar6 = 12;
			iVar7 = 12;
			iVar1 = 0;
			iVar0 = true;
			break;
		
		case 201:
			iVar6 = 12;
			iVar7 = 13;
			iVar1 = 0;
			iVar0 = true;
			break;
		
		case 202:
			iVar6 = 12;
			iVar7 = 14;
			iVar1 = 0;
			iVar0 = true;
			break;
		
		case 203:
			iVar6 = 12;
			iVar7 = 15;
			iVar1 = 0;
			iVar0 = true;
			break;
		
		case 204:
			iVar6 = 13;
			iVar7 = 0;
			iVar1 = 420;
			break;
		
		case 205:
			iVar6 = 13;
			iVar7 = 1;
			iVar1 = 415;
			break;
		
		case 206:
			iVar6 = 13;
			iVar7 = 2;
			iVar1 = 680;
			break;
		
		case 207:
			iVar6 = 13;
			iVar7 = 3;
			iVar1 = 385;
			break;
		
		case 208:
			iVar6 = 13;
			iVar7 = 4;
			iVar1 = 0;
			iVar0 = true;
			break;
		
		case 209:
			iVar6 = 13;
			iVar7 = 5;
			iVar1 = 345;
			break;
		
		case 210:
			iVar6 = 13;
			iVar7 = 6;
			iVar1 = 0;
			iVar0 = true;
			break;
		
		case 211:
			iVar6 = 13;
			iVar7 = 7;
			iVar1 = 0;
			iVar0 = true;
			break;
		
		case 212:
			iVar6 = 13;
			iVar7 = 8;
			iVar1 = 0;
			iVar0 = true;
			break;
		
		case 213:
			iVar6 = 13;
			iVar7 = 9;
			iVar1 = 0;
			iVar0 = true;
			break;
		
		case 214:
			iVar6 = 13;
			iVar7 = 10;
			iVar1 = 0;
			iVar0 = true;
			break;
		
		case 215:
			iVar6 = 13;
			iVar7 = 11;
			iVar1 = 0;
			iVar0 = true;
			break;
		
		case 216:
			iVar6 = 13;
			iVar7 = 12;
			iVar1 = 0;
			iVar0 = true;
			break;
		
		case 217:
			iVar6 = 13;
			iVar7 = 13;
			iVar1 = 1065;
			break;
		
		case 218:
			iVar6 = 13;
			iVar7 = 14;
			iVar1 = 0;
			iVar0 = true;
			break;
		
		case 219:
			iVar6 = 13;
			iVar7 = 15;
			iVar1 = 0;
			iVar0 = true;
			break;
	}
	switch (iParam0)
	{
		case 220:
			iVar6 = 14;
			iVar7 = 0;
			iVar1 = 420;
			break;
		
		case 221:
			iVar6 = 14;
			iVar7 = 1;
			iVar1 = 415;
			break;
		
		case 222:
			iVar6 = 14;
			iVar7 = 2;
			iVar1 = 440;
			break;
		
		case 223:
			iVar6 = 14;
			iVar7 = 3;
			iVar1 = 385;
			break;
		
		case 224:
			iVar6 = 14;
			iVar7 = 4;
			iVar1 = 330;
			break;
		
		case 225:
			iVar6 = 14;
			iVar7 = 5;
			iVar1 = 445;
			break;
		
		case 226:
			iVar6 = 14;
			iVar7 = 6;
			iVar1 = 340;
			break;
		
		case 227:
			iVar6 = 14;
			iVar7 = 7;
			iVar1 = 440;
			break;
		
		case 228:
			iVar6 = 14;
			iVar7 = 8;
			iVar1 = 295;
			break;
		
		case 229:
			iVar6 = 14;
			iVar7 = 9;
			iVar1 = 340;
			break;
		
		case 230:
			iVar6 = 14;
			iVar7 = 10;
			iVar1 = 325;
			break;
		
		case 231:
			iVar6 = 14;
			iVar7 = 11;
			iVar1 = 435;
			break;
		
		case 232:
			iVar6 = 14;
			iVar7 = 12;
			iVar1 = 445;
			break;
		
		case 233:
			iVar6 = 14;
			iVar7 = 13;
			iVar1 = 440;
			break;
		
		case 234:
			iVar6 = 14;
			iVar7 = 14;
			iVar1 = 325;
			break;
		
		case 235:
			iVar6 = 14;
			iVar7 = 15;
			iVar1 = 325;
			break;
		
		case 236:
			iVar6 = 15;
			iVar7 = 0;
			break;
	}
	StringCopy(&Var2, "U_FMM_", 16);
	StringIntConCat(&Var2, iVar6, 16);
	StringConCat(&Var2, "_", 16);
	StringIntConCat(&Var2, iVar7, 16);
	if (iParam0 == 23)
	{
		if (func_139(89, -1))
		{
			StringCopy(&Var2, "REW_RS", 16);
			iVar1 = system::round(((system::to_float(1250) * Global_262145.f_2977) * Global_279748.f_16));
		}
		else
		{
			iVar1 = system::round(((system::to_float(45) * Global_262145.f_430[23]) * Global_279748.f_16));
		}
	}
	else if (iParam0 == 17)
	{
		if (func_139(88, -1))
		{
			StringCopy(&Var2, "REW_LSB", 16);
			iVar1 = system::round(((system::to_float(450) * Global_262145.f_2976) * Global_279748.f_16));
		}
		else
		{
			iVar1 = system::round(((system::to_float(60) * Global_262145.f_430[17]) * Global_279748.f_16));
		}
	}
	else if (iParam0 == 28)
	{
		if (func_139(87, -1))
		{
			StringCopy(&Var2, "REW_REDSK", 16);
			iVar1 = system::round(((system::to_float(500) * Global_262145.f_2975) * Global_279748.f_16));
		}
		else
		{
			iVar1 = system::round(((system::to_float(55) * Global_262145.f_430[28]) * Global_279748.f_16));
		}
	}
	else
	{
		iVar11 = iParam0;
		if (iVar11 >= 0 && iVar11 < 237)
		{
			iVar1 = system::round(((system::to_float(iVar1) * Global_262145.f_430[iVar11]) * Global_279748.f_16));
		}
	}
	if (iParam0 >= 237)
	{
		Global_69518[0 /*14*/].f_5 = 3;
		func_203(iVar10, iParam0, 237);
		if (Global_69518[0 /*14*/].f_7 > 0)
		{
			Global_69518[0 /*14*/].f_7 = system::round((system::to_float(Global_69518[0 /*14*/].f_7) * Global_279748.f_16));
		}
	}
	else
	{
		func_195(&(Global_69518[0 /*14*/]), iVar10, iParam0, &Var2, iVar6, iVar7, iVar1, iVar0, iVar8, iVar9, 0);
	}
}

void func_232(int iParam0)//Position - 0x42233
{
	int iVar0;
	int iVar1;
	struct<2> Var2;
	int iVar6;
	int iVar7;
	int iVar8;
	int iVar9;
	int iVar10;
	
	iVar0 = false;
	iVar1 = 10;
	iVar6 = 0;
	iVar7 = 0;
	iVar8 = -1;
	iVar9 = 2;
	iVar10 = 2;
	switch (iParam0)
	{
		case 0:
			iVar6 = 0;
			iVar7 = 0;
			iVar1 = 500;
			iVar1 = system::round((system::to_float(iVar1) * Global_262145.f_2530[0]));
			break;
		
		case 1:
			iVar6 = 1;
			iVar7 = 0;
			iVar1 = 190;
			iVar1 = system::round((system::to_float(iVar1) * Global_262145.f_2530[1]));
			break;
		
		case 2:
			iVar6 = 1;
			iVar7 = 1;
			iVar1 = 185;
			iVar1 = system::round((system::to_float(iVar1) * Global_262145.f_2530[2]));
			break;
		
		case 3:
			iVar6 = 1;
			iVar7 = 2;
			iVar1 = 180;
			iVar1 = system::round((system::to_float(iVar1) * Global_262145.f_2530[3]));
			break;
		
		case 4:
			iVar6 = 1;
			iVar7 = 3;
			iVar1 = 175;
			iVar1 = system::round((system::to_float(iVar1) * Global_262145.f_2530[4]));
			break;
		
		case 5:
			iVar6 = 1;
			iVar7 = 4;
			iVar1 = 170;
			iVar1 = system::round((system::to_float(iVar1) * Global_262145.f_2530[5]));
			break;
		
		case 6:
			iVar6 = 1;
			iVar7 = 5;
			iVar1 = 0;
			break;
		
		case 7:
			iVar6 = 2;
			iVar7 = 0;
			iVar1 = 580;
			iVar1 = system::round((system::to_float(iVar1) * Global_262145.f_2530[6]));
			break;
		
		case 8:
			iVar6 = 2;
			iVar7 = 1;
			iVar1 = 575;
			iVar1 = system::round((system::to_float(iVar1) * Global_262145.f_2530[7]));
			break;
		
		case 9:
			iVar6 = 2;
			iVar7 = 2;
			iVar1 = 570;
			iVar1 = system::round((system::to_float(iVar1) * Global_262145.f_2530[8]));
			break;
		
		case 10:
			iVar6 = 2;
			iVar7 = 3;
			iVar1 = 565;
			iVar1 = system::round((system::to_float(iVar1) * Global_262145.f_2530[9]));
			break;
		
		case 11:
			iVar6 = 2;
			iVar7 = 4;
			iVar1 = 560;
			iVar1 = system::round((system::to_float(iVar1) * Global_262145.f_2530[10]));
			break;
		
		case 12:
			iVar6 = 2;
			iVar7 = 5;
			iVar1 = 0;
			break;
		
		case 13:
			iVar6 = 3;
			iVar7 = 0;
			iVar1 = 1100;
			iVar1 = system::round((system::to_float(iVar1) * Global_262145.f_2530[11]));
			break;
		
		case 14:
			iVar6 = 3;
			iVar7 = 1;
			iVar1 = 1095;
			iVar1 = system::round((system::to_float(iVar1) * Global_262145.f_2530[12]));
			break;
		
		case 15:
			iVar6 = 3;
			iVar7 = 2;
			iVar1 = 1090;
			iVar1 = system::round((system::to_float(iVar1) * Global_262145.f_2530[13]));
			break;
		
		case 16:
			iVar6 = 3;
			iVar7 = 3;
			iVar1 = 1085;
			iVar1 = system::round((system::to_float(iVar1) * Global_262145.f_2530[14]));
			break;
		
		case 17:
			iVar6 = 3;
			iVar7 = 4;
			iVar1 = 1080;
			iVar1 = system::round((system::to_float(iVar1) * Global_262145.f_2530[15]));
			break;
		
		case 18:
			iVar6 = 3;
			iVar7 = 5;
			iVar1 = 0;
			break;
		
		case 19:
			iVar6 = 4;
			iVar7 = 0;
			iVar1 = 520;
			iVar1 = system::round((system::to_float(iVar1) * Global_262145.f_2530[16]));
			break;
		
		case 20:
			iVar6 = 4;
			iVar7 = 1;
			iVar1 = 515;
			iVar1 = system::round((system::to_float(iVar1) * Global_262145.f_2530[17]));
			break;
		
		case 21:
			iVar6 = 4;
			iVar7 = 2;
			iVar1 = 510;
			iVar1 = system::round((system::to_float(iVar1) * Global_262145.f_2530[18]));
			break;
		
		case 22:
			iVar6 = 4;
			iVar7 = 3;
			iVar1 = 505;
			iVar1 = system::round((system::to_float(iVar1) * Global_262145.f_2530[19]));
			break;
		
		case 23:
			iVar6 = 4;
			iVar7 = 4;
			iVar1 = 500;
			iVar1 = system::round((system::to_float(iVar1) * Global_262145.f_2530[20]));
			break;
		
		case 24:
			iVar6 = 4;
			iVar7 = 5;
			iVar1 = 0;
			break;
		
		case 25:
			iVar6 = 4;
			iVar7 = 6;
			iVar1 = 0;
			break;
		
		case 26:
			iVar6 = 5;
			iVar7 = 0;
			iVar1 = 295;
			iVar1 = system::round((system::to_float(iVar1) * Global_262145.f_2530[21]));
			break;
		
		case 27:
			iVar6 = 5;
			iVar7 = 1;
			iVar1 = 290;
			iVar1 = system::round((system::to_float(iVar1) * Global_262145.f_2530[22]));
			break;
		
		case 28:
			iVar6 = 5;
			iVar7 = 2;
			iVar1 = 285;
			iVar1 = system::round((system::to_float(iVar1) * Global_262145.f_2530[23]));
			break;
		
		case 29:
			iVar6 = 5;
			iVar7 = 3;
			iVar1 = 280;
			iVar1 = system::round((system::to_float(iVar1) * Global_262145.f_2530[24]));
			break;
		
		case 30:
			iVar6 = 5;
			iVar7 = 4;
			iVar1 = 275;
			iVar1 = system::round((system::to_float(iVar1) * Global_262145.f_2530[25]));
			break;
		
		case 31:
			iVar6 = 5;
			iVar7 = 5;
			iVar1 = 0;
			break;
		
		case 32:
			iVar6 = 6;
			iVar7 = 0;
			iVar1 = 950;
			iVar1 = system::round((system::to_float(iVar1) * Global_262145.f_2530[26]));
			break;
		
		case 33:
			iVar6 = 6;
			iVar7 = 1;
			iVar1 = 945;
			iVar1 = system::round((system::to_float(iVar1) * Global_262145.f_2530[27]));
			break;
		
		case 34:
			iVar6 = 6;
			iVar7 = 2;
			iVar1 = 940;
			iVar1 = system::round((system::to_float(iVar1) * Global_262145.f_2530[28]));
			break;
		
		case 35:
			iVar6 = 6;
			iVar7 = 3;
			iVar1 = 935;
			iVar1 = system::round((system::to_float(iVar1) * Global_262145.f_2530[29]));
			break;
		
		case 36:
			iVar6 = 6;
			iVar7 = 4;
			iVar1 = 930;
			iVar1 = system::round((system::to_float(iVar1) * Global_262145.f_2530[30]));
			break;
		
		case 37:
			iVar6 = 6;
			iVar7 = 5;
			iVar1 = 0;
			break;
		
		case 38:
			iVar6 = 7;
			iVar7 = 0;
			iVar1 = 440;
			iVar1 = system::round((system::to_float(iVar1) * Global_262145.f_2530[31]));
			break;
		
		case 39:
			iVar6 = 7;
			iVar7 = 1;
			iVar1 = 435;
			iVar1 = system::round((system::to_float(iVar1) * Global_262145.f_2530[32]));
			break;
		
		case 40:
			iVar6 = 7;
			iVar7 = 2;
			iVar1 = 430;
			iVar1 = system::round((system::to_float(iVar1) * Global_262145.f_2530[33]));
			break;
		
		case 41:
			iVar6 = 7;
			iVar7 = 3;
			iVar1 = 425;
			iVar1 = system::round((system::to_float(iVar1) * Global_262145.f_2530[34]));
			break;
		
		case 42:
			iVar6 = 7;
			iVar7 = 4;
			iVar1 = 420;
			iVar1 = system::round((system::to_float(iVar1) * Global_262145.f_2530[35]));
			break;
		
		case 43:
			iVar6 = 7;
			iVar7 = 5;
			iVar1 = 0;
			break;
		
		case 44:
			iVar6 = 7;
			iVar7 = 6;
			iVar1 = 0;
			break;
		
		case 45:
			iVar6 = 8;
			iVar7 = 0;
			iVar1 = 1150;
			iVar1 = system::round((system::to_float(iVar1) * Global_262145.f_2530[36]));
			break;
		
		case 46:
			iVar6 = 8;
			iVar7 = 1;
			iVar1 = 1145;
			iVar1 = system::round((system::to_float(iVar1) * Global_262145.f_2530[37]));
			break;
		
		case 47:
			iVar6 = 8;
			iVar7 = 2;
			iVar1 = 1140;
			iVar1 = system::round((system::to_float(iVar1) * Global_262145.f_2530[38]));
			break;
		
		case 48:
			iVar6 = 8;
			iVar7 = 3;
			iVar1 = 1135;
			iVar1 = system::round((system::to_float(iVar1) * Global_262145.f_2530[39]));
			break;
		
		case 49:
			iVar6 = 8;
			iVar7 = 4;
			iVar1 = 1130;
			iVar1 = system::round((system::to_float(iVar1) * Global_262145.f_2530[40]));
			break;
		
		case 50:
			iVar6 = 9;
			iVar7 = 0;
			iVar1 = 395;
			iVar1 = system::round((system::to_float(iVar1) * Global_262145.f_2530[41]));
			break;
		
		case 51:
			iVar6 = 9;
			iVar7 = 1;
			iVar1 = 390;
			iVar1 = system::round((system::to_float(iVar1) * Global_262145.f_2530[42]));
			break;
		
		case 52:
			iVar6 = 9;
			iVar7 = 2;
			iVar1 = 385;
			iVar1 = system::round((system::to_float(iVar1) * Global_262145.f_2530[43]));
			break;
		
		case 53:
			iVar6 = 9;
			iVar7 = 3;
			iVar1 = 380;
			iVar1 = system::round((system::to_float(iVar1) * Global_262145.f_2530[44]));
			break;
		
		case 54:
			iVar6 = 9;
			iVar7 = 4;
			iVar1 = 375;
			iVar1 = system::round((system::to_float(iVar1) * Global_262145.f_2530[45]));
			break;
		
		case 55:
			iVar6 = 9;
			iVar7 = 5;
			iVar1 = 0;
			break;
		
		case 56:
			iVar6 = 9;
			iVar7 = 6;
			iVar1 = 0;
			break;
		
		case 57:
			iVar6 = 10;
			iVar7 = 0;
			iVar1 = 500;
			iVar1 = system::round((system::to_float(iVar1) * Global_262145.f_2530[46]));
			break;
		
		case 58:
			iVar6 = 10;
			iVar7 = 1;
			iVar1 = 495;
			iVar1 = system::round((system::to_float(iVar1) * Global_262145.f_2530[47]));
			break;
		
		case 59:
			iVar6 = 10;
			iVar7 = 2;
			iVar1 = 490;
			iVar1 = system::round((system::to_float(iVar1) * Global_262145.f_2530[48]));
			break;
		
		case 60:
			iVar6 = 10;
			iVar7 = 3;
			iVar1 = 485;
			iVar1 = system::round((system::to_float(iVar1) * Global_262145.f_2530[49]));
			break;
		
		case 61:
			iVar6 = 10;
			iVar7 = 4;
			iVar1 = 480;
			iVar1 = system::round((system::to_float(iVar1) * Global_262145.f_2530[50]));
			break;
		
		case 62:
			iVar6 = 10;
			iVar7 = 5;
			iVar1 = 0;
			break;
		
		case 63:
			iVar6 = 11;
			iVar7 = 0;
			iVar1 = 1050;
			iVar1 = system::round((system::to_float(iVar1) * Global_262145.f_2530[51]));
			break;
		
		case 64:
			iVar6 = 11;
			iVar7 = 1;
			iVar1 = 1045;
			iVar1 = system::round((system::to_float(iVar1) * Global_262145.f_2530[52]));
			break;
		
		case 65:
			iVar6 = 11;
			iVar7 = 2;
			iVar1 = 1040;
			iVar1 = system::round((system::to_float(iVar1) * Global_262145.f_2530[53]));
			break;
		
		case 66:
			iVar6 = 11;
			iVar7 = 3;
			iVar1 = 1035;
			iVar1 = system::round((system::to_float(iVar1) * Global_262145.f_2530[54]));
			break;
		
		case 67:
			iVar6 = 11;
			iVar7 = 4;
			iVar1 = 1030;
			iVar1 = system::round((system::to_float(iVar1) * Global_262145.f_2530[55]));
			break;
		
		case 68:
			iVar6 = 11;
			iVar7 = 5;
			iVar1 = 0;
			break;
		
		case 69:
			iVar6 = 12;
			iVar7 = 0;
			iVar1 = 550;
			iVar1 = system::round((system::to_float(iVar1) * Global_262145.f_2530[56]));
			break;
		
		case 70:
			iVar6 = 12;
			iVar7 = 1;
			iVar1 = 545;
			iVar1 = system::round((system::to_float(iVar1) * Global_262145.f_2530[57]));
			break;
		
		case 71:
			iVar6 = 12;
			iVar7 = 2;
			iVar1 = 540;
			iVar1 = system::round((system::to_float(iVar1) * Global_262145.f_2530[58]));
			break;
		
		case 72:
			iVar6 = 12;
			iVar7 = 3;
			iVar1 = 535;
			iVar1 = system::round((system::to_float(iVar1) * Global_262145.f_2530[59]));
			break;
		
		case 73:
			iVar6 = 12;
			iVar7 = 4;
			iVar1 = 530;
			iVar1 = system::round((system::to_float(iVar1) * Global_262145.f_2530[60]));
			break;
		
		case 74:
			iVar6 = 13;
			iVar7 = 0;
			iVar1 = 1200;
			iVar1 = system::round((system::to_float(iVar1) * Global_262145.f_2530[61]));
			break;
		
		case 75:
			iVar6 = 13;
			iVar7 = 1;
			iVar1 = 1195;
			iVar1 = system::round((system::to_float(iVar1) * Global_262145.f_2530[62]));
			break;
		
		case 76:
			iVar6 = 13;
			iVar7 = 2;
			iVar1 = 1190;
			iVar1 = system::round((system::to_float(iVar1) * Global_262145.f_2530[63]));
			break;
		
		case 77:
			iVar6 = 13;
			iVar7 = 3;
			iVar1 = 1185;
			iVar1 = system::round((system::to_float(iVar1) * Global_262145.f_2530[64]));
			break;
		
		case 78:
			iVar6 = 13;
			iVar7 = 4;
			iVar1 = 1180;
			iVar1 = system::round((system::to_float(iVar1) * Global_262145.f_2530[65]));
			break;
		
		case 79:
			iVar6 = 13;
			iVar7 = 5;
			iVar1 = 0;
			break;
		
		case 80:
			iVar6 = 14;
			iVar7 = 0;
			iVar1 = 2000;
			iVar1 = system::round((system::to_float(iVar1) * Global_262145.f_2530[66]));
			break;
		
		case 81:
			iVar6 = 14;
			iVar7 = 1;
			iVar1 = 1995;
			iVar1 = system::round((system::to_float(iVar1) * Global_262145.f_2530[67]));
			break;
		
		case 82:
			iVar6 = 14;
			iVar7 = 2;
			iVar1 = 1990;
			iVar1 = system::round((system::to_float(iVar1) * Global_262145.f_2530[68]));
			break;
		
		case 83:
			iVar6 = 14;
			iVar7 = 3;
			iVar1 = 1985;
			iVar1 = system::round((system::to_float(iVar1) * Global_262145.f_2530[69]));
			break;
		
		case 84:
			iVar6 = 14;
			iVar7 = 4;
			iVar1 = 1980;
			iVar1 = system::round((system::to_float(iVar1) * Global_262145.f_2530[70]));
			break;
		
		case 85:
			iVar6 = 15;
			iVar7 = 0;
			iVar1 = 475;
			iVar1 = system::round((system::to_float(iVar1) * Global_262145.f_2530[71]));
			break;
		
		case 86:
			iVar6 = 15;
			iVar7 = 1;
			iVar1 = 470;
			iVar1 = system::round((system::to_float(iVar1) * Global_262145.f_2530[72]));
			break;
		
		case 87:
			iVar6 = 15;
			iVar7 = 2;
			iVar1 = 465;
			iVar1 = system::round((system::to_float(iVar1) * Global_262145.f_2530[73]));
			break;
		
		case 88:
			iVar6 = 15;
			iVar7 = 3;
			iVar1 = 460;
			iVar1 = system::round((system::to_float(iVar1) * Global_262145.f_2530[74]));
			break;
		
		case 89:
			iVar6 = 15;
			iVar7 = 4;
			iVar1 = 455;
			iVar1 = system::round((system::to_float(iVar1) * Global_262145.f_2530[75]));
			break;
		
		case 90:
			iVar6 = 15;
			iVar7 = 5;
			iVar1 = 0;
			break;
		
		default:
			Global_69518[0 /*14*/].f_5 = 3;
			func_203(iVar10, iParam0, 91);
			return;
			break;
	}
	StringCopy(&Var2, "H_FMM_", 16);
	StringIntConCat(&Var2, iVar6, 16);
	StringConCat(&Var2, "_", 16);
	StringIntConCat(&Var2, iVar7, 16);
	func_195(&(Global_69518[0 /*14*/]), iVar10, iParam0, &Var2, iVar6, iVar7, iVar1, iVar0, iVar8, iVar9, 0);
}

void func_233()//Position - 0x430EB
{
	Global_69518[0 /*14*/].f_1 = -1;
	Global_69518[0 /*14*/].f_2 = -1;
	Global_69518[0 /*14*/].f_5 = -1;
	Global_69518[0 /*14*/].f_3 = -1;
	Global_69518[0 /*14*/].f_4 = -1;
	Global_69518[0 /*14*/].f_7 = 0;
	Global_69518[0 /*14*/].f_6 = 0;
	Global_69518[0 /*14*/].f_13 = -1;
	Global_69518[0 /*14*/].f_12 = 0;
	Global_69518[0 /*14*/] = 0;
	StringCopy(&(Global_69518[0 /*14*/].f_8), "NO_LABEL", 16);
}

void func_234(int iParam0, int iParam1, int iParam2, int iParam3)//Position - 0x43164
{
	int iVar0;
	
	if (func_235())
	{
		iVar0 = Global_2522528[iParam0 /*3*/][func_69(iParam2)];
		if (iVar0 != 0)
		{
			stats::stat_set_bool(iVar0, iParam1, iParam3);
		}
	}
}

bool func_235()//Position - 0x43196
{
	return true;
	return false;
}

void func_236(int iParam0, float fParam1, int iParam2, int iParam3)//Position - 0x431A3
{
	int iVar0;
	
	if (func_235())
	{
		iVar0 = Global_2521840[iParam0 /*3*/][func_69(iParam2)];
		if (iVar0 != 0)
		{
			stats::stat_set_float(iVar0, fParam1, iParam3);
		}
	}
}

void func_237(int iParam0, int iParam1, int iParam2, int iParam3, int iParam4)//Position - 0x431D5
{
	int iVar0;
	
	if (iParam4)
	{
	}
	iVar0 = Global_2503773[iParam0 /*3*/][func_69(iParam2)];
	if (iVar0 != 0)
	{
		stats::stat_set_int(iVar0, iParam1, iParam3);
	}
}

void func_238(int iParam0, int iParam1, int iParam2)//Position - 0x43205
{
	int iVar0;
	int iVar1;
	int iVar2;
	float fVar3;
	int iVar4;
	int iVar5;
	int iVar6;
	int iVar7;
	int iVar8;
	int iVar9;
	int iVar10;
	float fVar11;
	int iVar12;
	int iVar13;
	int iVar14;
	int iVar15;
	
	iVar0 = 0;
	while (iVar0 < 20)
	{
		iVar1 = iVar0;
		iVar2 = func_249(iVar1);
		if (!iParam2)
		{
			fVar3 = func_102(iVar2, iParam1);
		}
		else
		{
			fVar3 = func_248(iVar2, iParam1);
		}
		ped::_set_ped_face_feature(iParam0, iVar1, fVar3);
		iVar0++;
	}
	iVar4 = 0;
	while (iVar4 < 13)
	{
		iVar5 = func_247(iVar4);
		iVar6 = func_246(iVar5);
		iVar7 = func_245(iVar5);
		if (iVar6 != -1 && iVar7 != -1)
		{
			if (!iParam2)
			{
				iVar10 = func_375(iVar6, iParam1, -1);
				fVar11 = func_102(iVar7, iParam1);
			}
			else
			{
				iVar10 = func_244(iVar6, iParam1);
				fVar11 = func_248(iVar7, iParam1);
			}
			ped::set_ped_head_overlay(iParam0, iVar5, iVar10, fVar11);
			iVar8 = func_243(iVar5);
			iVar9 = func_242(iVar5);
			if (iVar8 != -1)
			{
				if (!iParam2)
				{
					iVar13 = func_359(iVar8, iParam1, 0);
					iVar14 = func_359(iVar9, iParam1, 0);
				}
				else
				{
					iVar13 = func_241(iVar8, iParam1);
					iVar14 = func_241(iVar9, iParam1);
				}
				func_240(iVar13, &iVar12, &iVar15);
				ped::_set_ped_head_overlay_color(iParam0, iVar5, iVar15, iVar12, iVar14);
			}
		}
		iVar4++;
	}
	func_239(&iParam0, iParam1, iParam2);
}

void func_239(int iParam0, int iParam1, int iParam2)//Position - 0x43337
{
	float fVar0;
	
	if (!iParam2)
	{
		fVar0 = func_102(157, iParam1);
	}
	else
	{
		fVar0 = func_248(157, iParam1);
	}
	if (*iParam0 == player::player_ped_id())
	{
	}
	ped::_set_ped_eye_color(*iParam0, system::round(fVar0));
}

void func_240(int iParam0, var uParam1, var uParam2)//Position - 0x43376
{
	int iVar0;
	
	*uParam1 = system::shift_right(iParam0, 16);
	iVar0 = iParam0 & 65535;
	*uParam2 = iVar0;
}

int func_241(int iParam0, int iParam1)//Position - 0x43397
{
	int iVar0;
	var uVar1;
	
	iVar0 = Global_2503773[iParam0 /*3*/][func_69(iParam1)];
	if (ui::set_userids_uihidden(iVar0, &uVar1))
	{
		return uVar1;
	}
	return 0;
}

int func_242(int iParam0)//Position - 0x433C2
{
	switch (iParam0)
	{
		case 2:
			return 2153;
		
		case 1:
			return 2154;
		
		case 5:
			return 2155;
		
		case 8:
			return 2156;
		
		case 10:
			return 2151;
		
		default:
	}
	return -1;
}

int func_243(int iParam0)//Position - 0x4340E
{
	switch (iParam0)
	{
		case 2:
			return 2146;
		
		case 1:
			return 2147;
		
		case 5:
			return 2148;
		
		case 8:
			return 2149;
		
		case 10:
			return 2150;
		
		default:
	}
	return -1;
}

int func_244(int iParam0, int iParam1)//Position - 0x4345A
{
	int iVar0;
	int iVar1;
	int iVar2;
	
	iVar0 = 0;
	if (iParam1 == -1)
	{
		iParam1 = func_39();
	}
	iVar1 = 0;
	iVar2 = 0;
	if (iParam0 >= 384 && iParam0 < 457)
	{
		iVar1 = stats::_0x61E111E323419E07((iParam0 - 384), 0, 1, iParam1);
		iVar2 = ((iParam0 - 384) - stats::_0x94F12ABF9C79E339((iParam0 - 384)) * 8) * 8;
	}
	else if (iParam0 >= 457 && iParam0 < 513)
	{
		iVar1 = stats::_0x61E111E323419E07((iParam0 - 457), 1, 1, iParam1);
		iVar2 = ((iParam0 - 457) - stats::_0x94F12ABF9C79E339((iParam0 - 457)) * 8) * 8;
	}
	else if (iParam0 >= 1281 && iParam0 < 1305)
	{
		iVar1 = stats::_0x61E111E323419E07((iParam0 - 1281), 0, 0, 0);
		iVar2 = ((iParam0 - 1281) - stats::_0x94F12ABF9C79E339((iParam0 - 1281)) * 8) * 8;
	}
	else if (iParam0 >= 1305 && iParam0 < 1361)
	{
		iVar1 = stats::_0x61E111E323419E07((iParam0 - 1305), 1, 0, 0);
		iVar2 = ((iParam0 - 1305) - stats::_0x94F12ABF9C79E339((iParam0 - 1305)) * 8) * 8;
	}
	else if (iParam0 >= 1393 && iParam0 < 2919)
	{
		iVar1 = stats::_0xD16C2AD6B8E32854((iParam0 - 1393), 0, 1, iParam1);
		iVar2 = ((iParam0 - 1393) - stats::_0x94F12ABF9C79E339((iParam0 - 1393)) * 8) * 8;
	}
	else if (iParam0 >= 1361 && iParam0 < 1393)
	{
		iVar1 = stats::_0xD16C2AD6B8E32854((iParam0 - 1361), 0, 0, 0);
		iVar2 = ((iParam0 - 1361) - stats::_0x94F12ABF9C79E339((iParam0 - 1361)) * 8) * 8;
	}
	else if (iParam0 >= 3879 && iParam0 < 4143)
	{
		iVar1 = stats::_0x2B4CDCA6F07FF3DA((iParam0 - 3879), 0, 1, iParam1, "_NGPSTAT_INT");
		iVar2 = ((iParam0 - 3879) - stats::_0x94F12ABF9C79E339((iParam0 - 3879)) * 8) * 8;
	}
	else if (iParam0 >= 4143 && iParam0 < 4207)
	{
		iVar1 = stats::_0x2B4CDCA6F07FF3DA((iParam0 - 4143), 0, 0, 0, "_MP_NGPSTAT_INT");
		iVar2 = ((iParam0 - 4143) - stats::_0x94F12ABF9C79E339((iParam0 - 4143)) * 8) * 8;
	}
	else if (iParam0 >= 4399 && iParam0 < 6028)
	{
		iVar1 = stats::_0x2B4CDCA6F07FF3DA((iParam0 - 4399), 0, 1, iParam1, "_MP_LRPSTAT_INT");
		iVar2 = ((iParam0 - 4399) - stats::_0x94F12ABF9C79E339((iParam0 - 4399)) * 8) * 8;
	}
	else if (iParam0 >= 6413 && iParam0 < 7262)
	{
		iVar1 = stats::_0x2B4CDCA6F07FF3DA((iParam0 - 6413), 0, 1, iParam1, "_MP_APAPSTAT_INT");
		iVar2 = ((iParam0 - 6413) - stats::_0x94F12ABF9C79E339((iParam0 - 6413)) * 8) * 8;
	}
	else if (iParam0 >= 7262 && iParam0 < 7313)
	{
		iVar1 = stats::_0x2B4CDCA6F07FF3DA((iParam0 - 7262), 0, 1, iParam1, "_MP_LR2PSTAT_INT");
		iVar2 = ((iParam0 - 7262) - stats::_0x94F12ABF9C79E339((iParam0 - 7262)) * 8) * 8;
	}
	else if (iParam0 >= 7681 && iParam0 < 9361)
	{
		iVar1 = stats::_0x2B4CDCA6F07FF3DA((iParam0 - 7681), 0, 1, iParam1, "_MP_BIKEPSTAT_INT");
		iVar2 = ((iParam0 - 7681) - stats::_0x94F12ABF9C79E339((iParam0 - 7681)) * 8) * 8;
	}
	else if (iParam0 >= 9553 && iParam0 < 15265)
	{
		iVar1 = stats::_0x2B4CDCA6F07FF3DA((iParam0 - 9553), 0, 1, iParam1, "_MP_IMPEXPPSTAT_INT");
		iVar2 = ((iParam0 - 9553) - stats::_0x94F12ABF9C79E339((iParam0 - 9553)) * 8) * 8;
	}
	else if (iParam0 >= 7641 && iParam0 < 7681)
	{
		iVar1 = stats::_0x2B4CDCA6F07FF3DA((iParam0 - 7641), 0, 1, iParam1, "_NGDLCPSTAT_INT");
		iVar2 = ((iParam0 - 7641) - stats::_0x94F12ABF9C79E339((iParam0 - 7641)) * 8) * 8;
	}
	else if (iParam0 >= 7313 && iParam0 < 7321)
	{
		iVar1 = stats::_0x2B4CDCA6F07FF3DA((iParam0 - 7313), 0, 0, 0, "_MP_NGDLCPSTAT_INT");
		iVar2 = ((iParam0 - 7313) - stats::_0x94F12ABF9C79E339((iParam0 - 7313)) * 8) * 8;
	}
	if (!ui::_0x90A6526CF0381030(iVar1, &iVar0, iVar2, 8))
	{
		iVar0 = 0;
	}
	if (iParam0 == 384)
	{
	}
	return iVar0;
}

int func_245(int iParam0)//Position - 0x43852
{
	switch (iParam0)
	{
		case 3:
			return 90;
		
		case 7:
			return 93;
		
		case 0:
			return 87;
		
		case 6:
			return 92;
		
		case 2:
			return 89;
		
		case 1:
			return 88;
		
		case 4:
			return 91;
		
		case 8:
			return 158;
		
		case 9:
			return 159;
		
		case 5:
			return 160;
		
		case 10:
			return 163;
		
		case 11:
			return 161;
		
		case 12:
			return 162;
		
		default:
	}
	return -1;
}

int func_246(int iParam0)//Position - 0x438F1
{
	switch (iParam0)
	{
		case 3:
			return 450;
		
		case 7:
			return 453;
		
		case 0:
			return 447;
		
		case 6:
			return 452;
		
		case 2:
			return 449;
		
		case 1:
			return 448;
		
		case 4:
			return 451;
		
		case 8:
			return 3940;
		
		case 9:
			return 3941;
		
		case 5:
			return 3942;
		
		case 10:
			return 3943;
		
		case 11:
			return 3944;
		
		case 12:
			return 3945;
		
		default:
	}
	return -1;
}

int func_247(int iParam0)//Position - 0x4399D
{
	switch (iParam0)
	{
		case 0:
			return 7;
		
		case 1:
			return 3;
		
		case 2:
			return 9;
		
		case 3:
			return 6;
		
		case 4:
			return 0;
		
		case 5:
			return 4;
		
		case 6:
			return 5;
		
		case 7:
			return 2;
		
		case 8:
			return 1;
		
		case 9:
			return 8;
		
		case 10:
			return 10;
		
		case 11:
			return 11;
		
		case 12:
			return 12;
		
		default:
	}
	return -1;
}

float func_248(int iParam0, int iParam1)//Position - 0x43A34
{
	var uVar0;
	var uVar1;
	
	uVar0 = Global_2521840[iParam0 /*3*/][func_69(iParam1)];
	if (ui::_0x5FBD7095FE7AE57F(uVar0, &uVar1))
	{
		return uVar1;
	}
	return 0f;
}

int func_249(int iParam0)//Position - 0x43A5F
{
	switch (iParam0)
	{
		case 0:
			return 137;
		
		case 1:
			return 138;
		
		case 2:
			return 139;
		
		case 3:
			return 140;
		
		case 4:
			return 141;
		
		case 5:
			return 142;
		
		case 6:
			return 143;
		
		case 7:
			return 144;
		
		case 8:
			return 145;
		
		case 9:
			return 146;
		
		case 10:
			return 147;
		
		case 11:
			return 148;
		
		case 12:
			return 149;
		
		case 13:
			return 150;
		
		case 14:
			return 151;
		
		case 15:
			return 152;
		
		case 16:
			return 153;
		
		case 17:
			return 154;
		
		case 18:
			return 155;
		
		case 19:
			return 156;
		
		default:
	}
	return -1;
}

void func_250(int iParam0, int iParam1)//Position - 0x43B4B
{
	int iVar0;
	int iVar1;
	int iVar2;
	int iVar3;
	int iVar4;
	int iVar5;
	int iVar6;
	float fVar7;
	float fVar8;
	float fVar9;
	float fVar10;
	float fVar11;
	float fVar12;
	float fVar13;
	
	if (!ped::is_ped_injured(iParam0))
	{
		if (iParam0 == 0)
		{
			iParam0 = player::player_ped_id();
		}
		iVar0 = func_375(447, iParam1, -1);
		iVar1 = func_375(448, iParam1, -1);
		iVar2 = func_375(449, iParam1, -1);
		iVar3 = func_375(450, iParam1, -1);
		iVar4 = func_375(451, iParam1, -1);
		iVar5 = func_375(452, iParam1, -1);
		iVar6 = func_375(453, iParam1, -1);
		fVar7 = func_102(87, iParam1);
		fVar8 = func_102(88, iParam1);
		fVar9 = func_102(89, iParam1);
		fVar10 = func_102(90, iParam1);
		fVar11 = func_102(91, iParam1);
		fVar12 = func_102(92, iParam1);
		fVar13 = func_102(93, iParam1);
		if (iVar4 >= 0)
		{
			fVar11 = 1f;
		}
		else
		{
			fVar11 = 0f;
		}
		ped::set_ped_head_overlay(iParam0, 0, iVar0, fVar7);
		if (iVar1 >= 27)
		{
			iVar1 = (iVar1 - 7);
		}
		ped::set_ped_head_overlay(iParam0, 1, iVar1, fVar8);
		ped::_set_ped_head_overlay_color(iParam0, 1, 1, 0, 0);
		ped::set_ped_head_overlay(iParam0, 2, iVar2, fVar9);
		ped::_set_ped_head_overlay_color(iParam0, 2, 1, 0, 0);
		ped::set_ped_head_overlay(iParam0, 3, iVar3, fVar10);
		ped::set_ped_head_overlay(iParam0, 4, iVar4, fVar11);
		ped::set_ped_head_overlay(iParam0, 6, iVar5, fVar12);
		ped::set_ped_head_overlay(iParam0, 7, iVar6, fVar13);
	}
}

void func_251(int iParam0, int iParam1)//Position - 0x43C80
{
	int iVar0;
	int iVar1;
	struct<17> Var2;
	
	iVar1 = entity::get_entity_model(iParam0) == joaat("mp_m_freemode_01");
	iVar0 = dlc1::get_hash_name_for_component(iParam0, 7, ped::get_ped_drawable_variation(iParam0, 7), ped::get_ped_texture_variation(iParam0, 7));
	if (iVar1)
	{
		switch (iVar0)
		{
			case 417844741:
				iVar0 = -1905715277;
				func_252(iParam0, iVar0, Var2, iParam1);
				break;
			
			case 733606825:
				iVar0 = -1656310418;
				func_252(iParam0, iVar0, Var2, iParam1);
				break;
			
			case -436967389:
				iVar0 = -234070248;
				func_252(iParam0, iVar0, Var2, iParam1);
				break;
			
			case -1509774625:
				iVar0 = -534631979;
				func_252(iParam0, iVar0, Var2, iParam1);
				break;
			
			case -73968129:
				iVar0 = -877330185;
				func_252(iParam0, iVar0, Var2, iParam1);
				break;
			
			case 223443315:
				iVar0 = -581000118;
				func_252(iParam0, iVar0, Var2, iParam1);
				break;
			
			case -2024122436:
				iVar0 = -137881896;
				func_252(iParam0, iVar0, Var2, iParam1);
				break;
			
			case -1728283904:
				iVar0 = 1244511138;
				func_252(iParam0, iVar0, Var2, iParam1);
				break;
			
			case -487616795:
				iVar0 = 1417138230;
				func_252(iParam0, iVar0, Var2, iParam1);
				break;
			
			case 614641665:
				iVar0 = 1993366836;
				func_252(iParam0, iVar0, Var2, iParam1);
				break;
			
			case -250066715:
				iVar0 = 1023764891;
				func_252(iParam0, iVar0, Var2, iParam1);
				break;
			
			case 488072477:
				iVar0 = 823747944;
				func_252(iParam0, iVar0, Var2, iParam1);
				break;
			
			case -288552823:
				iVar0 = -332604528;
				func_252(iParam0, iVar0, Var2, iParam1);
				break;
			
			case -1759887243:
				iVar0 = -651923792;
				func_252(iParam0, iVar0, Var2, iParam1);
				break;
			
			case -1455168312:
				iVar0 = -1517942924;
				func_252(iParam0, iVar0, Var2, iParam1);
				break;
		}
		switch (iVar0)
		{
			case -1621109557:
				iVar0 = -544021598;
				func_252(iParam0, iVar0, Var2, iParam1);
				break;
			
			case -1874250082:
				iVar0 = -1252225226;
				func_252(iParam0, iVar0, Var2, iParam1);
				break;
			
			case -2083512916:
				iVar0 = -518658404;
				func_252(iParam0, iVar0, Var2, iParam1);
				break;
			
			case -522289640:
				iVar0 = 485861484;
				func_252(iParam0, iVar0, Var2, iParam1);
				break;
			
			case 54969064:
				iVar0 = 1731771637;
				func_252(iParam0, iVar0, Var2, iParam1);
				break;
			
			case 881960317:
				iVar0 = 1383240553;
				func_252(iParam0, iVar0, Var2, iParam1);
				break;
			
			case -774462414:
				iVar0 = -1268058004;
				func_252(iParam0, iVar0, Var2, iParam1);
				break;
			
			case -1013119041:
				iVar0 = -2092394968;
				func_252(iParam0, iVar0, Var2, iParam1);
				break;
			
			case -106630194:
				iVar0 = -1846660237;
				func_252(iParam0, iVar0, Var2, iParam1);
				break;
			
			case 62942197:
				iVar0 = 734656469;
				func_252(iParam0, iVar0, Var2, iParam1);
				break;
			
			case -301318007:
				iVar0 = -2041139979;
				func_252(iParam0, iVar0, Var2, iParam1);
				break;
			
			case -406080500:
				iVar0 = -1814280192;
				func_252(iParam0, iVar0, Var2, iParam1);
				break;
		}
		switch (iVar0)
		{
			case -1808146225:
				iVar0 = -600796580;
				func_252(iParam0, iVar0, Var2, iParam1);
				break;
			
			case -1294197237:
				iVar0 = -414537584;
				func_252(iParam0, iVar0, Var2, iParam1);
				break;
			
			case 499577823:
				iVar0 = -175848188;
				func_252(iParam0, iVar0, Var2, iParam1);
				break;
			
			case 1496440389:
				iVar0 = -1204373760;
				func_252(iParam0, iVar0, Var2, iParam1);
				break;
			
			case -972769295:
				iVar0 = -1503259797;
				func_252(iParam0, iVar0, Var2, iParam1);
				break;
			
			case -1286925698:
				iVar0 = -1262768106;
				func_252(iParam0, iVar0, Var2, iParam1);
				break;
			
			case 1399233780:
				iVar0 = 73549465;
				func_252(iParam0, iVar0, Var2, iParam1);
				break;
			
			case 1638545787:
				iVar0 = -2073246032;
				func_252(iParam0, iVar0, Var2, iParam1);
				break;
			
			case 1877235183:
				iVar0 = -1233507638;
				func_252(iParam0, iVar0, Var2, iParam1);
				break;
			
			case 604032226:
				iVar0 = 85613815;
				func_252(iParam0, iVar0, Var2, iParam1);
				break;
			
			case 861301645:
				iVar0 = 115105915;
				func_252(iParam0, iVar0, Var2, iParam1);
				break;
			
			case 10225177:
				iVar0 = 557258044;
				func_252(iParam0, iVar0, Var2, iParam1);
				break;
			
			case 780857699:
				iVar0 = -1120594711;
				func_252(iParam0, iVar0, Var2, iParam1);
				break;
			
			case -1224703404:
				iVar0 = 1977681474;
				func_252(iParam0, iVar0, Var2, iParam1);
				break;
			
			case -844386390:
				iVar0 = -507912718;
				func_252(iParam0, iVar0, Var2, iParam1);
				break;
			
			case 1591557805:
				iVar0 = -827209439;
				func_252(iParam0, iVar0, Var2, iParam1);
				break;
			
			case -1300896291:
				iVar0 = -2133283484;
				func_252(iParam0, iVar0, Var2, iParam1);
				break;
		}
		switch (iVar0)
		{
			case -1071414984:
				iVar0 = 1788575978;
				func_252(iParam0, iVar0, Var2, iParam1);
				break;
			
			case -1775489718:
				iVar0 = -366280685;
				func_252(iParam0, iVar0, Var2, iParam1);
				break;
			
			case -1536243249:
				iVar0 = 479061208;
				func_252(iParam0, iVar0, Var2, iParam1);
				break;
			
			case -2140114540:
				iVar0 = -567623958;
				func_252(iParam0, iVar0, Var2, iParam1);
				break;
			
			case -982647958:
				iVar0 = -1587788466;
				func_252(iParam0, iVar0, Var2, iParam1);
				break;
			
			case -700539601:
				iVar0 = 528073095;
				func_252(iParam0, iVar0, Var2, iParam1);
				break;
			
			case -1745739661:
				iVar0 = 885320733;
				func_252(iParam0, iVar0, Var2, iParam1);
				break;
			
			case -1414805530:
				iVar0 = 53610744;
				func_252(iParam0, iVar0, Var2, iParam1);
				break;
			
			case -1045201733:
				iVar0 = 178920856;
				func_252(iParam0, iVar0, Var2, iParam1);
				break;
			
			case 1331369996:
				iVar0 = 408992005;
				func_252(iParam0, iVar0, Var2, iParam1);
				break;
			
			case -2009527865:
				iVar0 = 793700065;
				func_252(iParam0, iVar0, Var2, iParam1);
				break;
			
			case -1374464645:
				iVar0 = -1125023196;
				func_252(iParam0, iVar0, Var2, iParam1);
				break;
			
			case -468303488:
				iVar0 = -742084662;
				func_252(iParam0, iVar0, Var2, iParam1);
				break;
		}
		switch (iVar0)
		{
			case 169357452:
				iVar0 = -1726767608;
				func_252(iParam0, iVar0, Var2, iParam1);
				break;
			
			case -523051526:
				iVar0 = -947488019;
				func_252(iParam0, iVar0, Var2, iParam1);
				break;
			
			case -1042107953:
				iVar0 = -381434971;
				func_252(iParam0, iVar0, Var2, iParam1);
				break;
			
			case -1729273879:
				iVar0 = 1584639495;
				func_252(iParam0, iVar0, Var2, iParam1);
				break;
			
			case -530016213:
				iVar0 = -1613924594;
				func_252(iParam0, iVar0, Var2, iParam1);
				break;
			
			case 1193960877:
				iVar0 = 1929649532;
				func_252(iParam0, iVar0, Var2, iParam1);
				break;
			
			case -954622151:
				iVar0 = 58739900;
				func_252(iParam0, iVar0, Var2, iParam1);
				break;
			
			case -1256588482:
				iVar0 = 333770097;
				func_252(iParam0, iVar0, Var2, iParam1);
				break;
			
			case -1562126638:
				iVar0 = 145020657;
				func_252(iParam0, iVar0, Var2, iParam1);
				break;
			
			case -1868877247:
				iVar0 = -1225935980;
				func_252(iParam0, iVar0, Var2, iParam1);
				break;
			
			case 1125073724:
				iVar0 = -1968872302;
				func_252(iParam0, iVar0, Var2, iParam1);
				break;
			
			case -1466954180:
				iVar0 = 911686663;
				func_252(iParam0, iVar0, Var2, iParam1);
				break;
			
			case -694687157:
				iVar0 = 1083527299;
				func_252(iParam0, iVar0, Var2, iParam1);
				break;
			
			case -1675987631:
				iVar0 = 1577290595;
				func_252(iParam0, iVar0, Var2, iParam1);
				break;
			
			case 2146102875:
				iVar0 = 1562689384;
				func_252(iParam0, iVar0, Var2, iParam1);
				break;
			
			case -1047105103:
				iVar0 = -2113107657;
				func_252(iParam0, iVar0, Var2, iParam1);
				break;
			
			case -1285892806:
				iVar0 = -1346116443;
				func_252(iParam0, iVar0, Var2, iParam1);
				break;
			
			case 1262060793:
				iVar0 = 339914149;
				func_252(iParam0, iVar0, Var2, iParam1);
				break;
			
			case -445453658:
				iVar0 = -1511080238;
				func_252(iParam0, iVar0, Var2, iParam1);
				break;
			
			case -744110324:
				iVar0 = 1255377053;
				func_252(iParam0, iVar0, Var2, iParam1);
				break;
			
			case -19448553:
				iVar0 = 1072731106;
				func_252(iParam0, iVar0, Var2, iParam1);
				break;
			
			case -316106310:
				iVar0 = 1812655126;
				func_252(iParam0, iVar0, Var2, iParam1);
				break;
			
			case 863856367:
				iVar0 = -107066662;
				func_252(iParam0, iVar0, Var2, iParam1);
				break;
			
			case -84642342:
				iVar0 = -344936833;
				func_252(iParam0, iVar0, Var2, iParam1);
				break;
			
			case -658971542:
				iVar0 = -695221873;
				func_252(iParam0, iVar0, Var2, iParam1);
				break;
			
			case -2048966984:
				iVar0 = 897744755;
				func_252(iParam0, iVar0, Var2, iParam1);
				break;
			
			case 1226491068:
				iVar0 = 51092102;
				func_252(iParam0, iVar0, Var2, iParam1);
				break;
			
			case 1886590484:
				iVar0 = -526110118;
				func_252(iParam0, iVar0, Var2, iParam1);
				break;
			
			case -2104739258:
				iVar0 = -218704129;
				func_252(iParam0, iVar0, Var2, iParam1);
				break;
			
			case 1024536397:
				iVar0 = 1774503033;
				func_252(iParam0, iVar0, Var2, iParam1);
				break;
			
			case -31751683:
				iVar0 = -1711962933;
				func_252(iParam0, iVar0, Var2, iParam1);
				break;
			
			case 1204327766:
				iVar0 = -1940821633;
				func_252(iParam0, iVar0, Var2, iParam1);
				break;
			
			case 2038823120:
				iVar0 = 1890136623;
				func_252(iParam0, iVar0, Var2, iParam1);
				break;
			
			case -1870924246:
				iVar0 = 1970098906;
				func_252(iParam0, iVar0, Var2, iParam1);
				break;
			
			case 734473422:
				iVar0 = 1688711503;
				func_252(iParam0, iVar0, Var2, iParam1);
				break;
			
			case -1610859950:
				iVar0 = 1946500788;
				func_252(iParam0, iVar0, Var2, iParam1);
				break;
			
			case -827353160:
				iVar0 = -2118198745;
				func_252(iParam0, iVar0, Var2, iParam1);
				break;
			
			case 1792003900:
				iVar0 = -1938038754;
				func_252(iParam0, iVar0, Var2, iParam1);
				break;
			
			case 1493576617:
				iVar0 = 741023614;
				func_252(iParam0, iVar0, Var2, iParam1);
				break;
		}
	}
	else
	{
		switch (iVar0)
		{
			case -608321161:
				iVar0 = -1443711576;
				func_252(iParam0, iVar0, Var2, iParam1);
				break;
			
			case 2118482503:
				iVar0 = -1639548700;
				func_252(iParam0, iVar0, Var2, iParam1);
				break;
			
			case -1047450664:
				iVar0 = 948941033;
				func_252(iParam0, iVar0, Var2, iParam1);
				break;
			
			case 1662168580:
				iVar0 = 2100412813;
				func_252(iParam0, iVar0, Var2, iParam1);
				break;
			
			case 1925205343:
				iVar0 = -732139551;
				func_252(iParam0, iVar0, Var2, iParam1);
				break;
			
			case 1511562252:
				iVar0 = 1622542486;
				func_252(iParam0, iVar0, Var2, iParam1);
				break;
			
			case -1092633513:
				iVar0 = -1904154072;
				func_252(iParam0, iVar0, Var2, iParam1);
				break;
			
			case -571770170:
				iVar0 = 1622281867;
				func_252(iParam0, iVar0, Var2, iParam1);
				break;
			
			case -266264783:
				iVar0 = -83147973;
				func_252(iParam0, iVar0, Var2, iParam1);
				break;
			
			case 1955195440:
				iVar0 = -1681114781;
				func_252(iParam0, iVar0, Var2, iParam1);
				break;
			
			case 1657259692:
				iVar0 = -1451338553;
				func_252(iParam0, iVar0, Var2, iParam1);
				break;
			
			case 1123747595:
				iVar0 = 1598111822;
				func_252(iParam0, iVar0, Var2, iParam1);
				break;
		}
		switch (iVar0)
		{
			case 1667702506:
				iVar0 = 1042504585;
				func_252(iParam0, iVar0, Var2, iParam1);
				break;
			
			case -786793905:
				iVar0 = 1339096804;
				func_252(iParam0, iVar0, Var2, iParam1);
				break;
			
			case -166542273:
				iVar0 = -194852851;
				func_252(iParam0, iVar0, Var2, iParam1);
				break;
			
			case -41393341:
				iVar0 = -427023211;
				func_252(iParam0, iVar0, Var2, iParam1);
				break;
			
			case -1285697809:
				iVar0 = -1546281175;
				func_252(iParam0, iVar0, Var2, iParam1);
				break;
			
			case -1593169336:
				iVar0 = 302513036;
				func_252(iParam0, iVar0, Var2, iParam1);
				break;
			
			case 2000808073:
				iVar0 = -755928835;
				func_252(iParam0, iVar0, Var2, iParam1);
				break;
			
			case 1217661742:
				iVar0 = -995437456;
				func_252(iParam0, iVar0, Var2, iParam1);
				break;
			
			case 1445340754:
				iVar0 = 1998535002;
				func_252(iParam0, iVar0, Var2, iParam1);
				break;
			
			case 326376756:
				iVar0 = -245056030;
				func_252(iParam0, iVar0, Var2, iParam1);
				break;
			
			case -2118944335:
				iVar0 = -745373122;
				func_252(iParam0, iVar0, Var2, iParam1);
				break;
			
			case 792843471:
				iVar0 = 97609403;
				func_252(iParam0, iVar0, Var2, iParam1);
				break;
			}
	}
}

void func_252(int iParam0, int iParam1, struct<7> Param2, var uParam9, var uParam10, var uParam11, var uParam12, var uParam13, var uParam14, var uParam15, var uParam16, var uParam17, var uParam18, int iParam19)//Position - 0x44B6F
{
	int iVar0;
	
	dlc1::_0x5D5CAFF661DDF6FC(iParam1, &Param2);
	iVar0 = func_175(iParam0, Param2.f_3, Param2.f_4, Param2.f_6);
	if (iVar0 != -99)
	{
		func_66(iParam0, 14, iVar0, 0, -1, 0, 0, 0, -1, -1, iParam19, 0, 0, 0);
		func_66(iParam0, 7, 0, 0, -1, 0, 0, 0, -1, -1, iParam19, 0, 0, 0);
		func_253(425, Param2.f_3, iParam19, 1);
		func_253(434, Param2.f_4, iParam19, 1);
	}
}

var func_253(int iParam0, int iParam1, int iParam2, int iParam3)//Position - 0x44BE5
{
	int iVar0;
	int iVar1;
	var uVar2;
	
	if (iParam2 == -1)
	{
		iParam2 = func_39();
	}
	if (iParam1 < 0)
	{
		iParam1 = 255;
	}
	iVar0 = 0;
	iVar1 = 0;
	if (iParam0 >= 384 && iParam0 < 457)
	{
		iVar0 = stats::_0x61E111E323419E07((iParam0 - 384), 0, 1, iParam2);
		iVar1 = ((iParam0 - 384) - stats::_0x94F12ABF9C79E339((iParam0 - 384)) * 8) * 8;
	}
	else if (iParam0 >= 457 && iParam0 < 513)
	{
		iVar0 = stats::_0x61E111E323419E07((iParam0 - 457), 1, 1, iParam2);
		iVar1 = ((iParam0 - 457) - stats::_0x94F12ABF9C79E339((iParam0 - 457)) * 8) * 8;
	}
	else if (iParam0 >= 1281 && iParam0 < 1305)
	{
		iVar0 = stats::_0x61E111E323419E07((iParam0 - 1281), 0, 0, 0);
		iVar1 = ((iParam0 - 1281) - stats::_0x94F12ABF9C79E339((iParam0 - 1281)) * 8) * 8;
	}
	else if (iParam0 >= 1305 && iParam0 < 1361)
	{
		iVar0 = stats::_0x61E111E323419E07((iParam0 - 1305), 1, 0, 0);
		iVar1 = ((iParam0 - 1305) - stats::_0x94F12ABF9C79E339((iParam0 - 1305)) * 8) * 8;
	}
	else if (iParam0 >= 1393 && iParam0 < 2919)
	{
		iVar0 = stats::_0xD16C2AD6B8E32854((iParam0 - 1393), 0, 1, iParam2);
		iVar1 = ((iParam0 - 1393) - stats::_0x94F12ABF9C79E339((iParam0 - 1393)) * 8) * 8;
	}
	else if (iParam0 >= 1361 && iParam0 < 1393)
	{
		iVar0 = stats::_0xD16C2AD6B8E32854((iParam0 - 1361), 0, 0, 0);
		iVar1 = ((iParam0 - 1361) - stats::_0x94F12ABF9C79E339((iParam0 - 1361)) * 8) * 8;
	}
	else if (iParam0 >= 3879 && iParam0 < 4143)
	{
		iVar0 = stats::_0x2B4CDCA6F07FF3DA((iParam0 - 3879), 0, 1, iParam2, "_NGPSTAT_INT");
		iVar1 = ((iParam0 - 3879) - stats::_0x94F12ABF9C79E339((iParam0 - 3879)) * 8) * 8;
	}
	else if (iParam0 >= 4143 && iParam0 < 4207)
	{
		iVar0 = stats::_0x2B4CDCA6F07FF3DA((iParam0 - 4143), 0, 0, 0, "_NGPSTAT_INT");
		iVar1 = ((iParam0 - 4143) - stats::_0x94F12ABF9C79E339((iParam0 - 4143)) * 8) * 8;
	}
	else if (iParam0 >= 4399 && iParam0 < 6028)
	{
		iVar0 = stats::_0x2B4CDCA6F07FF3DA((iParam0 - 4399), 0, 1, iParam2, "_LRPSTAT_INT");
		iVar1 = ((iParam0 - 4399) - stats::_0x94F12ABF9C79E339((iParam0 - 4399)) * 8) * 8;
	}
	else if (iParam0 >= 6413 && iParam0 < 7262)
	{
		iVar0 = stats::_0x2B4CDCA6F07FF3DA((iParam0 - 6413), 0, 1, iParam2, "_APAPSTAT_INT");
		iVar1 = ((iParam0 - 6413) - stats::_0x94F12ABF9C79E339((iParam0 - 6413)) * 8) * 8;
	}
	else if (iParam0 >= 7262 && iParam0 < 7313)
	{
		iVar0 = stats::_0x2B4CDCA6F07FF3DA((iParam0 - 7262), 0, 1, iParam2, "_LR2PSTAT_INT");
		iVar1 = ((iParam0 - 7262) - stats::_0x94F12ABF9C79E339((iParam0 - 7262)) * 8) * 8;
	}
	else if (iParam0 >= 7681 && iParam0 < 9361)
	{
		iVar0 = stats::_0x2B4CDCA6F07FF3DA((iParam0 - 7681), 0, 1, iParam2, "_BIKEPSTAT_INT");
		iVar1 = ((iParam0 - 7681) - stats::_0x94F12ABF9C79E339((iParam0 - 7681)) * 8) * 8;
	}
	else if (iParam0 >= 9553 && iParam0 < 15265)
	{
		iVar0 = stats::_0x2B4CDCA6F07FF3DA((iParam0 - 9553), 0, 1, iParam2, "_IMPEXPPSTAT_INT");
		iVar1 = ((iParam0 - 9553) - stats::_0x94F12ABF9C79E339((iParam0 - 9553)) * 8) * 8;
	}
	else if (iParam0 >= 7641 && iParam0 < 7681)
	{
		iVar0 = stats::_0x2B4CDCA6F07FF3DA((iParam0 - 7641), 0, 1, iParam2, "_NGDLCPSTAT_INT");
		iVar1 = ((iParam0 - 7641) - stats::_0x94F12ABF9C79E339((iParam0 - 7641)) * 8) * 8;
	}
	else if (iParam0 >= 7313 && iParam0 < 7321)
	{
		iVar0 = stats::_0x2B4CDCA6F07FF3DA((iParam0 - 7313), 0, 0, 0, "_NGDLCPSTAT_INT");
		iVar1 = ((iParam0 - 7313) - stats::_0x94F12ABF9C79E339((iParam0 - 7313)) * 8) * 8;
	}
	uVar2 = stats::stat_set_masked_int(iVar0, iParam1, iVar1, 8, iParam3);
	return uVar2;
}

void func_254(int iParam0)//Position - 0x44FD9
{
	int iVar0;
	
	if (ped::get_ped_drawable_variation(player::player_ped_id(), 5) != 0)
	{
		ped::set_ped_reset_flag(player::player_ped_id(), 177, true);
		player::set_player_parachute_tint_index(player::player_id(), func_359(580, -1, 0));
		if (func_86())
		{
			player::set_player_parachute_model_override(player::player_id(), 1931904776);
		}
		else if (func_85())
		{
			player::set_player_parachute_model_override(player::player_id(), -2124524821);
		}
		if (func_262(3610, -1, -1))
		{
		}
		iVar0 = func_359(2034, -1, 0);
		player::set_player_parachute_pack_tint_index(player::player_id(), func_87(player::get_player_ped(player::player_id()), iVar0));
		if (func_260(0))
		{
			player::set_player_parachute_tint_index(player::player_id(), func_359(580, -1, 0));
		}
		else
		{
			player::set_player_parachute_tint_index(player::player_id(), func_259(Global_2501786));
		}
		func_84(player::player_id(), iVar0);
		player::set_player_parachute_variation_override(player::player_id(), 5, func_89(player::player_ped_id(), iVar0), func_88(player::player_ped_id(), iVar0), 0);
		func_258(func_359(2034, -1, 0), 1);
		Global_2494149.f_273 = 1;
		func_255(player::player_id(), -1, -1);
		if (iParam0)
		{
		}
	}
}

void func_255(int iParam0, int iParam1, int iParam2)//Position - 0x450DB
{
	if (network::network_is_game_in_progress())
	{
		if (iParam2 == -1)
		{
			iParam2 = func_359(2034, -1, 0);
		}
		player::set_player_parachute_variation_override(iParam0, 5, func_89(player::get_player_ped(iParam0), iParam2), func_88(player::get_player_ped(iParam0), iParam2), 0);
		func_84(iParam0, iParam2);
		player::set_player_parachute_pack_tint_index(iParam0, func_87(player::get_player_ped(iParam0), iParam2));
		ped::set_ped_component_variation(player::get_player_ped(iParam0), 5, func_89(player::get_player_ped(iParam0), iParam2), func_88(player::get_player_ped(iParam0), iParam2), func_87(player::get_player_ped(iParam0), iParam2));
		if (iParam1 == -1)
		{
			iParam1 = func_359(580, -1, 0);
		}
		if (func_260(1) && func_256(player::player_id()))
		{
			player::set_player_parachute_tint_index(player::player_id(), func_259(Global_2501786));
		}
		else
		{
			player::set_player_parachute_tint_index(iParam0, iParam1);
		}
		if (func_86())
		{
			player::set_player_parachute_model_override(iParam0, 1931904776);
		}
		else if (func_85())
		{
			player::set_player_parachute_model_override(iParam0, -2124524821);
		}
		ped::set_ped_reset_flag(player::get_player_ped(iParam0), 177, true);
	}
}

int func_256(int iParam0)//Position - 0x451D9
{
	return func_257(iParam0, 10);
}

int func_257(int iParam0, int iParam1)//Position - 0x451E9
{
	return gameplay::is_bit_set(Global_1618089[iParam0 /*390*/].f_11.f_4, iParam1);
}

void func_258(int iParam0, int iParam1)//Position - 0x45204
{
	if (network::network_is_game_in_progress())
	{
		func_237(2034, iParam0, -1, 1, 0);
		player::set_player_parachute_variation_override(player::player_id(), 5, func_89(player::player_ped_id(), iParam0), func_88(player::player_ped_id(), iParam0), 0);
		func_84(player::player_id(), iParam0);
		player::set_player_parachute_pack_tint_index(player::player_id(), func_87(player::player_ped_id(), iParam0));
		if ((iParam1 && !ped::is_ped_injured(player::player_ped_id())) && ped::get_ped_drawable_variation(player::player_ped_id(), 5) != 0)
		{
			func_255(player::player_id(), -1, -1);
		}
	}
}

int func_259(int iParam0)//Position - 0x45286
{
	int iVar0;
	
	iVar0 = iParam0;
	switch (iVar0)
	{
		case 1:
			return 9;
			break;
		
		case 2:
			return 9;
			break;
		
		case 3:
			return 3;
			break;
		
		case 4:
			return 3;
			break;
		
		case 5:
			return 8;
			break;
		
		case 6:
			return 8;
			break;
		
		case 7:
			return 11;
			break;
		
		case 8:
			return 11;
			break;
		
		case 9:
			return 6;
			break;
		
		case 10:
			return 6;
			break;
		
		case 11:
			return 10;
			break;
		
		case 12:
			return 10;
			break;
	}
	return 0;
}

int func_260(int iParam0)//Position - 0x4533E
{
	return func_261(player::player_id(), iParam0);
}

int func_261(int iParam0, int iParam1)//Position - 0x45350
{
	if (!iParam1)
	{
		if (func_56(iParam0))
		{
			return false;
		}
	}
	return Global_1618089[iParam0 /*390*/].f_11 != func_45();
}

int func_262(int iParam0, int iParam1, int iParam2)//Position - 0x4537B
{
	int iVar0;
	int iVar1;
	var uVar2;
	
	iVar0 = 0;
	if (iParam1 == -1)
	{
		iParam1 = func_39();
	}
	iVar1 = func_264(iParam0, iParam1);
	uVar2 = func_263(iParam0);
	if (0 != iVar1)
	{
		iVar0 = stats::stat_get_bool_masked(iVar1, uVar2, iParam2);
	}
	return iVar0;
}

int func_263(int iParam0)//Position - 0x453B8
{
	int iVar0;
	
	iVar0 = 0;
	if (iParam0 >= 0 && iParam0 < 192)
	{
		iVar0 = ((iParam0 - 0) - stats::_0xF4D8E7AC2A27758C((iParam0 - 0)) * 64);
	}
	else if (iParam0 >= 192 && iParam0 < 384)
	{
		iVar0 = ((iParam0 - 192) - stats::_0xF4D8E7AC2A27758C((iParam0 - 192)) * 64);
	}
	else if (iParam0 >= 513 && iParam0 < 705)
	{
		iVar0 = ((iParam0 - 513) - stats::_0xF4D8E7AC2A27758C((iParam0 - 513)) * 64);
	}
	else if (iParam0 >= 705 && iParam0 < 1281)
	{
		iVar0 = ((iParam0 - 705) - stats::_0xF4D8E7AC2A27758C((iParam0 - 705)) * 64);
	}
	else if (iParam0 >= 2919 && iParam0 < 3111)
	{
		iVar0 = ((iParam0 - 2919) - stats::_0xF4D8E7AC2A27758C((iParam0 - 2919)) * 64);
	}
	else if (iParam0 >= 3111 && iParam0 < 3879)
	{
		iVar0 = ((iParam0 - 3111) - stats::_0xF4D8E7AC2A27758C((iParam0 - 3111)) * 64);
	}
	else if (iParam0 >= 4335 && iParam0 < 4399)
	{
		iVar0 = ((iParam0 - 4335) - stats::_0xF4D8E7AC2A27758C((iParam0 - 4335)) * 64);
	}
	else if (iParam0 >= 4207 && iParam0 < 4335)
	{
		iVar0 = ((iParam0 - 4207) - stats::_0xF4D8E7AC2A27758C((iParam0 - 4207)) * 64);
	}
	else if (iParam0 >= 6029 && iParam0 < 6413)
	{
		iVar0 = ((iParam0 - 6029) - stats::_0xF4D8E7AC2A27758C((iParam0 - 6029)) * 64);
	}
	else if (iParam0 >= 7385 && iParam0 < 7641)
	{
		iVar0 = ((iParam0 - 7385) - stats::_0xF4D8E7AC2A27758C((iParam0 - 7385)) * 64);
	}
	else if (iParam0 >= 7321 && iParam0 < 7385)
	{
		iVar0 = ((iParam0 - 7321) - stats::_0xF4D8E7AC2A27758C((iParam0 - 7321)) * 64);
	}
	else if (iParam0 >= 9361 && iParam0 < 9553)
	{
		iVar0 = ((iParam0 - 9361) - stats::_0xF4D8E7AC2A27758C((iParam0 - 9361)) * 64);
	}
	return iVar0;
}

int func_264(int iParam0, int iParam1)//Position - 0x455C8
{
	int iVar0;
	
	if (iParam1 == -1)
	{
		iParam1 = func_39();
	}
	iVar0 = 0;
	if (iParam0 >= 0 && iParam0 < 192)
	{
		iVar0 = stats::_0x80C75307B1C42837((iParam0 - 0), 0, 1, iParam1);
	}
	else if (iParam0 >= 192 && iParam0 < 384)
	{
		iVar0 = stats::_0x80C75307B1C42837((iParam0 - 192), 1, 1, iParam1);
	}
	else if (iParam0 >= 513 && iParam0 < 705)
	{
		iVar0 = stats::_0x80C75307B1C42837((iParam0 - 513), 0, 0, 0);
	}
	else if (iParam0 >= 705 && iParam0 < 1281)
	{
		iVar0 = stats::_0x80C75307B1C42837((iParam0 - 705), 1, 0, 0);
	}
	else if (iParam0 >= 2919 && iParam0 < 3111)
	{
		iVar0 = stats::_0xC4BB08EE7907471E((iParam0 - 2919), 0, 0, 0);
	}
	else if (iParam0 >= 3111 && iParam0 < 3879)
	{
		iVar0 = stats::_0xC4BB08EE7907471E((iParam0 - 3111), 0, 1, iParam1);
	}
	else if (iParam0 >= 4335 && iParam0 < 4399)
	{
		iVar0 = stats::_0xBA52FF538ED2BC71((iParam0 - 4335), 0, 0, 0, "_NGPSTAT_BOOL");
	}
	else if (iParam0 >= 4207 && iParam0 < 4335)
	{
		iVar0 = stats::_0xBA52FF538ED2BC71((iParam0 - 4207), 0, 1, iParam1, "_NGPSTAT_BOOL");
	}
	else if (iParam0 >= 6029 && iParam0 < 6413)
	{
		iVar0 = stats::_0xBA52FF538ED2BC71((iParam0 - 6029), 0, 1, iParam1, "_NGTATPSTAT_BOOL");
	}
	else if (iParam0 >= 7321 && iParam0 < 7385)
	{
		iVar0 = stats::_0xBA52FF538ED2BC71((iParam0 - 7321), 0, 0, 0, "_NGDLCPSTAT_BOOL");
	}
	else if (iParam0 >= 7385 && iParam0 < 7641)
	{
		iVar0 = stats::_0xBA52FF538ED2BC71((iParam0 - 7385), 0, 1, iParam1, "_NGDLCPSTAT_BOOL");
	}
	else if (iParam0 >= 9361 && iParam0 < 9553)
	{
		iVar0 = stats::_0xBA52FF538ED2BC71((iParam0 - 9361), 0, 1, iParam1, "_DLCBIKEPSTAT_BOOL");
	}
	return iVar0;
}

void func_265(int iParam0, int iParam1, int iParam2, int iParam3, int iParam4, int iParam5, int iParam6)//Position - 0x457BE
{
	struct<50> Var0;
	int iVar65;
	int iVar66;
	
	func_374(iParam3);
	if (iParam2 == 0)
	{
		iParam2 = player::player_ped_id();
	}
	if (func_358(iParam2) == 0)
	{
		ped::_0xCC9682B8951C5229(iParam2, Global_1316386, Global_1316387, Global_1316388, 0);
		ped::_0xCC9682B8951C5229(iParam2, Global_1316386, Global_1316387, Global_1316388, 1);
		ped::_0xCC9682B8951C5229(iParam2, Global_1316386, Global_1316387, Global_1316388, 2);
		ped::_0xCC9682B8951C5229(iParam2, Global_1316386, Global_1316387, Global_1316388, 3);
		if (iParam0 == 0)
		{
			if (!func_256(player::player_id()) || !network::network_is_game_in_progress())
			{
				Var0 = 12;
				Var0.f_13 = 12;
				Var0.f_26 = 12;
				Var0.f_39 = 9;
				Var0.f_49 = 9;
				func_356(&Var0, iParam3);
				func_280(iParam2, &Var0, iParam5, iParam6, 0);
				func_266(&iParam2, iParam1, iParam3, 0);
				if (!iParam5)
				{
					iVar65 = func_160(iParam2, Var0.f_13[1], Var0[1], 1);
					func_66(iParam2, 1, iVar65, 0, -1, 0, 0, 0, -1, -1, iParam3, 0, 0, 0);
				}
				if (!iParam6)
				{
					iVar66 = func_175(iParam2, Var0.f_39[0], Var0.f_49[0], 0);
					func_66(iParam2, 14, iVar66, 0, -1, 0, 0, 0, -1, -1, iParam3, 0, 0, 0);
				}
			}
		}
		else if (iParam4)
		{
			func_266(&iParam2, iParam1, iParam3, 0);
		}
		if (func_71())
		{
			if (network::network_player_is_cheater() || network::network_player_is_badsport())
			{
				ped::set_ped_prop_index(iParam2, 0, 1, 0, false);
			}
		}
	}
}

void func_266(int iParam0, int iParam1, int iParam2, int iParam3)//Position - 0x4592F
{
	int iVar0;
	int iVar1;
	
	if (func_278(iParam1, iParam2) == 0)
	{
		return;
	}
	iVar0 = gameplay::get_random_int_in_range(0, 5);
	iVar1 = gameplay::get_random_int_in_range(0, 5);
	switch (iParam1)
	{
		case 0:
			break;
		
		case 2:
			if (func_278(iParam1, iParam2))
			{
				func_275(iParam0, func_375(1406, iParam2, -1), 1);
			}
			break;
		
		case 3:
			if (func_278(iParam1, iParam2))
			{
				if (Global_1316385)
				{
					func_275(iParam0, func_375(1406, iParam2, -1), 1);
				}
			}
			break;
		
		case 4:
			if (entity::get_entity_model(*iParam0) == Global_138948.f_7)
			{
				switch (iVar0)
				{
					case 0:
						func_66(*iParam0, 11, 32, 0, -1, 0, 0, 0, -1, -1, -1, 0, 0, 0);
						break;
					
					case 1:
						func_66(*iParam0, 11, 48, 0, -1, 0, 0, 0, -1, -1, -1, 0, 0, 0);
						break;
					
					case 2:
						func_66(*iParam0, 11, 64, 0, -1, 0, 0, 0, -1, -1, -1, 0, 0, 0);
						break;
					
					case 3:
						func_66(*iParam0, 11, 80, 0, -1, 0, 0, 0, -1, -1, -1, 0, 0, 0);
						break;
					
					default:
						func_66(*iParam0, 11, 96, 0, -1, 0, 0, 0, -1, -1, -1, 0, 0, 0);
						break;
				}
			}
			else
			{
				switch (iVar1)
				{
					case 0:
						func_66(*iParam0, 11, 64, 0, -1, 0, 0, 0, -1, -1, -1, 0, 0, 0);
						break;
					
					case 1:
						func_66(*iParam0, 11, 160, 0, -1, 0, 0, 0, -1, -1, -1, 0, 0, 0);
						break;
					
					case 2:
						func_66(*iParam0, 11, 193, 0, -1, 0, 0, 0, -1, -1, -1, 0, 0, 0);
						break;
					
					case 3:
						func_66(*iParam0, 11, 113, 0, -1, 0, 0, 0, -1, -1, -1, 0, 0, 0);
						break;
					
					default:
						func_66(*iParam0, 11, 140, 0, -1, 0, 0, 0, -1, -1, -1, 0, 0, 0);
						break;
					}
			}
			break;
	}
	if (iParam3)
	{
		func_267(*iParam0, iParam2);
	}
}

void func_267(int iParam0, int iParam1)//Position - 0x45B1C
{
	struct<65> Var0;
	
	if (!ped::is_ped_injured(iParam0))
	{
		Var0 = 12;
		Var0.f_13 = 12;
		Var0.f_26 = 12;
		Var0.f_39 = 9;
		Var0.f_49 = 9;
		func_269(iParam0, &Var0, 1);
		func_268(Var0, iParam1);
	}
}

void func_268(struct<50> Param0, var uParam50, var uParam51, var uParam52, var uParam53, var uParam54, var uParam55, var uParam56, var uParam57, var uParam58, var uParam59, var uParam60, var uParam61, var uParam62, var uParam63, var uParam64, int iParam65)//Position - 0x45B66
{
	int iVar0;
	int iVar1;
	
	if (Global_2453653 == 0)
	{
		iVar1 = 0;
		iVar0 = 0;
		while (iVar0 <= 11)
		{
			if (Param0.f_13[iVar0] != 0)
			{
				iVar1 = 1;
				iVar0 = 12;
			}
			iVar0++;
		}
		if (iVar1 == 0)
		{
			return;
		}
	}
	func_253(387, Param0[0], iParam65, 1);
	func_253(388, Param0[1], iParam65, 1);
	func_253(389, Param0[2], iParam65, 1);
	func_253(390, Param0[3], iParam65, 1);
	func_253(391, Param0[4], iParam65, 1);
	func_253(392, Param0[5], iParam65, 1);
	func_253(393, Param0[6], iParam65, 1);
	func_253(394, Param0[7], iParam65, 1);
	func_253(395, Param0[8], iParam65, 1);
	func_253(396, Param0[9], iParam65, 1);
	func_253(397, Param0[10], iParam65, 1);
	func_253(398, Param0[11], iParam65, 1);
	func_253(399, Param0.f_13[0], iParam65, 1);
	func_253(400, Param0.f_13[1], iParam65, 1);
	func_253(401, Param0.f_13[2], iParam65, 1);
	func_253(402, Param0.f_13[3], iParam65, 1);
	func_253(403, Param0.f_13[4], iParam65, 1);
	func_253(404, Param0.f_13[5], iParam65, 1);
	func_253(405, Param0.f_13[6], iParam65, 1);
	func_253(406, Param0.f_13[7], iParam65, 1);
	func_253(407, Param0.f_13[8], iParam65, 1);
	func_253(408, Param0.f_13[9], iParam65, 1);
	func_253(409, Param0.f_13[10], iParam65, 1);
	func_253(410, Param0.f_13[11], iParam65, 1);
	func_253(411, Param0.f_26[0], iParam65, 1);
	func_253(412, Param0.f_26[1], iParam65, 1);
	func_253(413, Param0.f_26[2], iParam65, 1);
	func_253(414, Param0.f_26[3], iParam65, 1);
	func_253(415, Param0.f_26[4], iParam65, 1);
	func_253(416, Param0.f_26[5], iParam65, 1);
	func_253(417, Param0.f_26[6], iParam65, 1);
	func_253(418, Param0.f_26[7], iParam65, 1);
	func_253(419, Param0.f_26[8], iParam65, 1);
	func_253(420, Param0.f_26[9], iParam65, 1);
	func_253(421, Param0.f_26[10], iParam65, 1);
	func_253(422, Param0.f_26[11], iParam65, 1);
	func_253(423, Param0.f_39[0], iParam65, 1);
	func_253(424, Param0.f_39[1], iParam65, 1);
	func_253(425, Param0.f_39[2], iParam65, 1);
	func_253(426, Param0.f_39[3], iParam65, 1);
	func_253(427, Param0.f_39[4], iParam65, 1);
	func_253(428, Param0.f_39[5], iParam65, 1);
	func_253(429, Param0.f_39[6], iParam65, 1);
	func_253(430, Param0.f_39[7], iParam65, 1);
	func_253(431, Param0.f_39[8], iParam65, 1);
	func_253(432, Param0.f_49[0], iParam65, 1);
	func_253(433, Param0.f_49[1], iParam65, 1);
	func_253(434, Param0.f_49[2], iParam65, 1);
	func_253(435, Param0.f_49[3], iParam65, 1);
	func_253(436, Param0.f_49[4], iParam65, 1);
	func_253(437, Param0.f_49[5], iParam65, 1);
	func_253(438, Param0.f_49[6], iParam65, 1);
	func_253(439, Param0.f_49[7], iParam65, 1);
	func_253(440, Param0.f_49[8], iParam65, 1);
}

void func_269(int iParam0, var uParam1, int iParam2)//Position - 0x45F6D
{
	int iVar0;
	int iVar1;
	
	if (!ped::is_ped_injured(iParam0))
	{
		iVar0 = func_273(iParam0);
		iVar1 = 0;
		while (iVar1 < 12)
		{
			func_272(iParam0, iVar1, &(uParam1->f_13[iVar1]), uParam1[iVar1], &(uParam1->f_26[iVar1]), iParam2, 145);
			iVar1++;
		}
		iVar1 = 0;
		while (iVar1 < 9)
		{
			func_271(iParam0, iVar1, &(uParam1->f_39[iVar1]), &(uParam1->f_49[iVar1]), iParam2, 145);
			iVar1++;
		}
		if (func_270(iVar0))
		{
			uParam1->f_59 = Global_101652.f_2079.f_539[iVar0 /*65*/].f_59;
			uParam1->f_60 = Global_101652.f_2079.f_539[iVar0 /*65*/].f_60;
			uParam1->f_61 = Global_101652.f_2079.f_539[iVar0 /*65*/].f_61;
			uParam1->f_62 = Global_101652.f_2079.f_539[iVar0 /*65*/].f_62;
			uParam1->f_63 = Global_101652.f_2079.f_539[iVar0 /*65*/].f_63;
			uParam1->f_64 = Global_101652.f_2079.f_539[iVar0 /*65*/].f_64;
		}
		else if (network::network_is_game_in_progress() && entity::get_entity_model(iParam0) == entity::get_entity_model(player::player_ped_id()))
		{
			if (func_68(161, -1))
			{
				uParam1->f_59 = func_359(2045, Global_69516, 0);
			}
			else
			{
				uParam1->f_59 = func_359(747, Global_69516, 0);
			}
			uParam1->f_60 = func_359(748, Global_69516, 0);
			uParam1->f_61 = func_359(749, Global_69516, 0);
		}
		if (network::network_is_game_in_progress() && iParam0 == player::player_ped_id())
		{
			if (func_68(161, -1))
			{
				uParam1->f_59 = func_359(2045, Global_69516, 0);
			}
			else
			{
				uParam1->f_59 = func_359(747, Global_69516, 0);
			}
		}
	}
}

int func_270(int iParam0)//Position - 0x46117
{
	return iParam0 < 3;
}

void func_271(int iParam0, int iParam1, var uParam2, var uParam3, int iParam4, int iParam5)//Position - 0x46123
{
	int iVar0;
	
	iVar0 = func_273(iParam0);
	if (iParam0 != 0)
	{
		*uParam2 = ped::get_ped_prop_index(iParam0, iParam1);
		*uParam3 = ped::get_ped_prop_texture_index(iParam0, iParam1);
	}
	else
	{
		iVar0 = iParam5;
	}
	if (iParam4 == 0)
	{
		return;
	}
	if (iParam1 == 0)
	{
		if ((iParam4 & 1 != 0 || iParam4 & 2 != 0) || iParam4 & 8 != 0)
		{
			if (iParam0 != 0)
			{
				if (ped::is_ped_wearing_helmet(iParam0) && ped::_0x451294E859ECC018(iParam0) != -1)
				{
					*uParam2 = ped::_0x451294E859ECC018(iParam0);
					*uParam3 = ped::_0x9D728C1E12BF5518(iParam0);
				}
			}
		}
	}
	switch (iVar0)
	{
		case 0:
			if (iParam1 == 0)
			{
				if (*uParam2 == 7)
				{
					if ((iParam4 & 1 != 0 || iParam4 & 2 != 0) || iParam4 & 8 != 0)
					{
						*uParam2 = -1;
						*uParam3 = -1;
					}
				}
				else if (*uParam2 == 11)
				{
					if ((iParam4 & 1 != 0 || iParam4 & 2 != 0) || iParam4 & 8 != 0)
					{
						*uParam2 = -1;
						*uParam3 = -1;
					}
				}
				else if (*uParam2 == 21)
				{
					if ((iParam4 & 1 != 0 || iParam4 & 2 != 0) || iParam4 & 16 != 0)
					{
						*uParam2 = -1;
						*uParam3 = -1;
					}
				}
				else if (*uParam2 == 23)
				{
					if ((iParam4 & 1 != 0 || iParam4 & 2 != 0) || iParam4 & 8 != 0)
					{
						*uParam2 = -1;
						*uParam3 = -1;
					}
				}
				else if (*uParam2 == 27)
				{
					if ((iParam4 & 1 != 0 || iParam4 & 2 != 0) || iParam4 & 8 != 0)
					{
						*uParam2 = -1;
						*uParam3 = -1;
					}
				}
				else if (*uParam2 == 28)
				{
					if ((iParam4 & 1 != 0 || iParam4 & 2 != 0) || iParam4 & 8 != 0)
					{
						*uParam2 = -1;
						*uParam3 = -1;
					}
				}
				else if (*uParam2 >= 14 && *uParam2 <= 20)
				{
					if (iParam4 & 2 != 0 || iParam4 & 4 != 0)
					{
						*uParam2 = -1;
						*uParam3 = -1;
					}
				}
			}
			else if (iParam1 == 1)
			{
				if (*uParam2 == 1)
				{
					if (iParam4 & 2 != 0 || iParam4 & 64 != 0)
					{
						*uParam2 = -1;
						*uParam3 = -1;
					}
				}
			}
			break;
		
		case 1:
			if (iParam1 == 0)
			{
				if (*uParam2 == 2)
				{
					if ((iParam4 & 1 != 0 || iParam4 & 2 != 0) || iParam4 & 8 != 0)
					{
						*uParam2 = -1;
						*uParam3 = -1;
					}
				}
				else if (*uParam2 == 4)
				{
					if ((iParam4 & 1 != 0 || iParam4 & 2 != 0) || iParam4 & 16 != 0)
					{
						*uParam2 = -1;
						*uParam3 = -1;
					}
				}
				else if (*uParam2 == 6)
				{
					if ((iParam4 & 1 != 0 || iParam4 & 2 != 0) || iParam4 & 8 != 0)
					{
						*uParam2 = -1;
						*uParam3 = -1;
					}
				}
				else if (*uParam2 == 17)
				{
					if ((iParam4 & 1 != 0 || iParam4 & 2 != 0) || iParam4 & 8 != 0)
					{
						*uParam2 = -1;
						*uParam3 = -1;
					}
				}
				else if (*uParam2 == 20)
				{
					if ((iParam4 & 1 != 0 || iParam4 & 2 != 0) || iParam4 & 8 != 0)
					{
						*uParam2 = -1;
						*uParam3 = -1;
					}
				}
				else if (*uParam2 == 21)
				{
					if ((iParam4 & 1 != 0 || iParam4 & 2 != 0) || iParam4 & 8 != 0)
					{
						*uParam2 = -1;
						*uParam3 = -1;
					}
				}
				else if (*uParam2 >= 8 && *uParam2 <= 14)
				{
					if (iParam4 & 2 != 0 || iParam4 & 4 != 0)
					{
						*uParam2 = -1;
						*uParam3 = -1;
					}
				}
			}
			break;
		
		case 2:
			if (iParam1 == 0)
			{
				if (*uParam2 == 9)
				{
					if ((iParam4 & 1 != 0 || iParam4 & 2 != 0) || iParam4 & 8 != 0)
					{
						*uParam2 = -1;
						*uParam3 = -1;
					}
				}
				else if (*uParam2 == 11)
				{
					if ((iParam4 & 1 != 0 || iParam4 & 2 != 0) || iParam4 & 8 != 0)
					{
						*uParam2 = -1;
						*uParam3 = -1;
					}
				}
				else if (*uParam2 == 12)
				{
					if ((iParam4 & 1 != 0 || iParam4 & 2 != 0) || iParam4 & 8 != 0)
					{
						*uParam2 = -1;
						*uParam3 = -1;
					}
				}
				else if (*uParam2 == 21)
				{
					if ((iParam4 & 1 != 0 || iParam4 & 2 != 0) || iParam4 & 8 != 0)
					{
						*uParam2 = -1;
						*uParam3 = -1;
					}
				}
				else if (*uParam2 == 23)
				{
					if ((iParam4 & 1 != 0 || iParam4 & 2 != 0) || iParam4 & 8 != 0)
					{
						*uParam2 = -1;
						*uParam3 = -1;
					}
				}
				else if (*uParam2 == 27)
				{
					if ((iParam4 & 1 != 0 || iParam4 & 2 != 0) || iParam4 & 8 != 0)
					{
						*uParam2 = -1;
						*uParam3 = -1;
					}
				}
				else if ((*uParam2 >= 14 && *uParam2 <= 20) || *uParam2 == 2)
				{
					if (iParam4 & 2 != 0 || iParam4 & 4 != 0)
					{
						*uParam2 = -1;
						*uParam3 = -1;
					}
				}
			}
			break;
	}
}

void func_272(int iParam0, int iParam1, var uParam2, var uParam3, var uParam4, int iParam5, int iParam6)//Position - 0x4666B
{
	int iVar0;
	
	iVar0 = func_273(iParam0);
	if (iParam0 != 0)
	{
		*uParam2 = ped::get_ped_drawable_variation(iParam0, iParam1);
		*uParam3 = ped::get_ped_texture_variation(iParam0, iParam1);
		*uParam4 = ped::get_ped_palette_variation(iParam0, iParam1);
	}
	else
	{
		iVar0 = iParam6;
	}
	if (iParam5 == 0)
	{
		return;
	}
	switch (iVar0)
	{
		case 0:
			if (iParam1 == 8)
			{
				if ((iParam5 & 1 != 0 || iParam5 & 2 != 0) || iParam5 & 32 != 0)
				{
					if (*uParam2 == 15)
					{
						*uParam2 = 0;
						*uParam3 = 0;
					}
				}
				if (iParam5 & 2 != 0 || iParam5 & 64 != 0)
				{
					if (*uParam2 == 3 || *uParam2 == 22)
					{
						*uParam2 = 0;
						*uParam3 = 0;
					}
				}
			}
			else if (iParam1 == 9)
			{
				if ((iParam5 & 1 != 0 || iParam5 & 2 != 0) || iParam5 & 32 != 0)
				{
					if (*uParam2 == 5)
					{
						*uParam2 = 0;
						*uParam3 = 0;
					}
				}
				if (iParam5 & 2 != 0 || iParam5 & 4 != 0)
				{
					if (*uParam2 == 8)
					{
						*uParam2 = 0;
						*uParam3 = 0;
					}
				}
			}
			break;
		
		case 1:
			if (iParam1 == 8)
			{
				if ((iParam5 & 1 != 0 || iParam5 & 2 != 0) || iParam5 & 32 != 0)
				{
					if (*uParam2 == 1 || *uParam2 == 10)
					{
						*uParam2 = 14;
						*uParam3 = 0;
					}
				}
				if (iParam5 & 2 != 0 || iParam5 & 64 != 0)
				{
					if (*uParam2 == 19)
					{
						*uParam2 = 14;
						*uParam3 = 0;
					}
				}
			}
			else if (iParam1 == 9)
			{
				if (iParam5 & 2 != 0 || iParam5 & 4 != 0)
				{
					if (*uParam2 == 5)
					{
						*uParam2 = 0;
						*uParam3 = 0;
					}
				}
			}
			break;
		
		case 2:
			if (iParam1 == 8)
			{
				if ((iParam5 & 1 != 0 || iParam5 & 2 != 0) || iParam5 & 32 != 0)
				{
					if (*uParam2 == 3)
					{
						*uParam2 = 14;
						*uParam3 = 0;
					}
				}
			}
			else if (iParam1 == 9)
			{
				if (*uParam2 >= 5 && *uParam2 <= 7)
				{
					if (iParam5 & 2 != 0 || iParam5 & 4 != 0)
					{
						*uParam2 = 0;
						*uParam3 = 0;
					}
				}
			}
			break;
	}
}

int func_273(int iParam0)//Position - 0x468AC
{
	int iVar0;
	int iVar1;
	
	if (entity::does_entity_exist(iParam0))
	{
		iVar1 = entity::get_entity_model(iParam0);
		iVar0 = 0;
		while (iVar0 <= 2)
		{
			if (func_274(iVar0) == iVar1)
			{
				return iVar0;
			}
			iVar0++;
		}
	}
	return 145;
}

int func_274(int iParam0)//Position - 0x468E9
{
	if (func_270(iParam0))
	{
		return Global_101652.f_26993[iParam0 /*29*/];
	}
	else if (iParam0 != 145)
	{
	}
	return 0;
}

void func_275(var uParam0, int iParam1, int iParam2)//Position - 0x46913
{
	int iVar0;
	int iVar1;
	int iVar2;
	int iVar3;
	int iVar4;
	int iVar5;
	int iVar6;
	int iVar7;
	int iVar8;
	int iVar9;
	
	if (func_276() == 0)
	{
		return;
	}
	if (iParam1 == 0)
	{
		return;
	}
	if (entity::get_entity_model(*uParam0) == Global_138948.f_7)
	{
		iVar0 = 0;
	}
	else if (entity::get_entity_model(*uParam0) == Global_138948.f_8)
	{
		iVar0 = 0;
	}
	else
	{
		return;
	}
	switch (iParam1)
	{
		case 1:
		case 5:
		case 6:
		case 7:
			iVar1 = Global_1316386;
			iVar2 = Global_1316387;
			iVar3 = Global_1316388;
			break;
		
		case 8:
		case 2:
			iVar1 = 42;
			iVar2 = 42;
			iVar3 = 42;
			break;
		
		case 9:
		case 3:
			iVar1 = 255;
			iVar2 = 255;
			iVar3 = 255;
			break;
		
		case 10:
		case 4:
			iVar1 = 128;
			iVar2 = 128;
			iVar3 = 128;
			break;
	}
	switch (iParam1)
	{
		case 1:
		case 8:
		case 9:
		case 10:
			iVar4 = Global_1316386;
			iVar5 = Global_1316387;
			iVar6 = Global_1316388;
			break;
		
		case 5:
		case 2:
			iVar4 = 42;
			iVar5 = 42;
			iVar6 = 42;
			break;
		
		case 6:
		case 3:
			iVar4 = 255;
			iVar5 = 255;
			iVar6 = 255;
			break;
		
		case 7:
		case 4:
			iVar4 = 128;
			iVar5 = 128;
			iVar6 = 128;
			break;
	}
	switch (iParam1)
	{
		case 1:
			iVar7 = Global_1316386;
			iVar8 = Global_1316387;
			iVar9 = Global_1316388;
			break;
		
		case 5:
		case 2:
		case 8:
			iVar7 = 42;
			iVar8 = 42;
			iVar9 = 42;
			break;
		
		case 6:
		case 3:
		case 9:
			iVar7 = 255;
			iVar8 = 255;
			iVar9 = 255;
			break;
		
		case 7:
		case 4:
		case 10:
			iVar7 = 128;
			iVar8 = 128;
			iVar9 = 128;
			break;
	}
	if (!ped::is_ped_injured(*uParam0))
	{
		ped::_0xA21C118553BBDF02(*uParam0);
		if (iParam2)
		{
			func_66(*uParam0, 11, iVar0, 0, -1, 0, 0, 0, -1, -1, -1, 0, 0, 0);
		}
		ped::_0xCC9682B8951C5229(*uParam0, iVar1, iVar2, iVar3, 0);
		ped::_0xCC9682B8951C5229(*uParam0, iVar7, iVar8, iVar9, 1);
		ped::_0xCC9682B8951C5229(*uParam0, iVar4, iVar5, iVar6, 2);
		ped::_0xCC9682B8951C5229(*uParam0, iVar7, iVar8, iVar9, 3);
	}
}

bool func_276()//Position - 0x46B53
{
	struct<13> Var0;
	
	if (player::is_player_online())
	{
		if ((network::network_is_signed_online() && network::network_is_signed_in()) && network::_0x67A5589628E0CFF6())
		{
			Var0 = { func_277() };
			if (network::_network_player_is_in_clan() && network::network_clan_player_is_active(&Var0))
			{
				return true;
			}
		}
	}
	return false;
}

struct<13> func_277()//Position - 0x46B9B
{
	struct<13> Var0;
	
	network::network_get_local_handle(&Var0, 13);
	return Var0;
}

int func_278(int iParam0, int iParam1)//Position - 0x46BB0
{
	if (func_276() == 0)
	{
		return 0;
	}
	switch (iParam0)
	{
		case 0:
			return 0;
			break;
		
		case 2:
			return Global_1316385;
			break;
		
		case 3:
			if (Global_1316385)
			{
				return func_279(iParam1);
			}
			else
			{
				return 0;
			}
			break;
		
		case 4:
			break;
	}
	return 0;
}

bool func_279(int iParam0)//Position - 0x46C12
{
	int iVar0;
	int iVar1;
	
	iVar0 = func_375(410, iParam0, -1);
	iVar1 = func_375(398, iParam0, -1);
	if (iVar0 == 0 && iVar1 == 0)
	{
		return true;
	}
	return false;
}

void func_280(int iParam0, var uParam1, int iParam2, int iParam3, int iParam4)//Position - 0x46C47
{
	int iVar0;
	int iVar1;
	int iVar2;
	int iVar3;
	int iVar4;
	int iVar5;
	int iVar6;
	int iVar7;
	
	if (!ped::is_ped_injured(iParam0))
	{
		iVar0 = func_273(iParam0);
		iVar1 = entity::get_entity_model(iParam0);
		iVar3 = 0;
		while (iVar3 < 12)
		{
			if (iVar3 != 1 || (iVar3 == 1 && !iParam2))
			{
				if (iParam4)
				{
					if (*uParam1)[iVar3] >= ped::get_number_of_ped_texture_variations(iParam0, iVar3, uParam1->f_13[iVar3])
					{
						(*uParam1)[iVar3] = 0;
					}
				}
				ped::set_ped_component_variation(iParam0, iVar3, uParam1->f_13[iVar3], (*uParam1)[iVar3], uParam1->f_26[iVar3]);
			}
			iVar3++;
		}
		iVar3 = 0;
		while (iVar3 < 9)
		{
			if (uParam1->f_39[iVar3] != -1 && uParam1->f_39[iVar3] != 255)
			{
				ped::set_ped_prop_index(iParam0, iVar3, uParam1->f_39[iVar3], uParam1->f_49[iVar3], false);
			}
			else
			{
				ped::clear_ped_prop(iParam0, iVar3);
			}
			iVar3++;
		}
		if (func_270(iVar0))
		{
			Global_101652.f_2079.f_539[iVar0 /*65*/].f_59 = uParam1->f_59;
			Global_101652.f_2079.f_539[iVar0 /*65*/].f_60 = uParam1->f_60;
			Global_101652.f_2079.f_539[iVar0 /*65*/].f_61 = uParam1->f_61;
			if (func_355(iParam0, iVar1, &iVar2, 0))
			{
				func_340(iParam0, 2, iVar2, 0, -1, 0, 0, 0, -1, -1, -1, 0, 0, 0);
			}
			Global_101652.f_2079.f_539[iVar0 /*65*/].f_62 = uParam1->f_62;
			Global_101652.f_2079.f_539[iVar0 /*65*/].f_63 = uParam1->f_63;
			Global_101652.f_2079.f_539[iVar0 /*65*/].f_64 = uParam1->f_64;
			if (func_281(iParam0, iVar1, &iVar2))
			{
				func_340(iParam0, 1, iVar2, 0, -1, 0, 0, 0, -1, -1, -1, 0, 0, 0);
			}
		}
		else if (network::network_is_game_in_progress() && entity::get_entity_model(iParam0) == entity::get_entity_model(player::player_ped_id()))
		{
			iVar4 = func_169(iParam0);
			func_237(748, uParam1->f_60, Global_69516, 1, 0);
			func_237(749, uParam1->f_61, Global_69516, 1, 0);
			iVar5 = func_160(iParam0, uParam1->f_13[2], (*uParam1)[2], 2);
			func_66(iParam0, 2, iVar5, 0, -1, 0, 0, 0, -1, -1, Global_69516, iVar4, 0, 0);
			if (!iParam2)
			{
				iVar6 = func_160(iParam0, uParam1->f_13[1], (*uParam1)[1], 1);
				func_66(iParam0, 1, iVar6, 0, -1, 0, 0, 0, -1, -1, Global_69516, iVar4, 0, 0);
			}
			if (!iParam3)
			{
				iVar7 = func_175(iParam0, uParam1->f_39[0], uParam1->f_49[0], 0);
				func_66(iParam0, 14, iVar7, 0, -1, 0, 0, 0, -1, -1, Global_69516, iVar4, 0, 0);
			}
		}
		if (network::network_is_game_in_progress() && iParam0 == player::player_ped_id())
		{
			func_237(747, uParam1->f_59, Global_69516, 1, 0);
			func_237(2045, uParam1->f_59, Global_69516, 1, 0);
			func_234(161, 1, -1, 1);
		}
	}
}

bool func_281(int iParam0, int iParam1, int iParam2)//Position - 0x46F11
{
	var uVar0;
	
	uVar0 = func_339(iParam1);
	if (Global_101652.f_2079.f_539[uVar0 /*65*/].f_63 != -99)
	{
		if (!func_282(iParam0, Global_101652.f_2079.f_539[uVar0 /*65*/].f_64, Global_101652.f_2079.f_539[uVar0 /*65*/].f_63))
		{
			*iParam2 = Global_101652.f_2079.f_539[uVar0 /*65*/].f_62;
			Global_101652.f_2079.f_539[uVar0 /*65*/].f_63 = -99;
			Global_101652.f_2079.f_539[uVar0 /*65*/].f_64 = 1;
			return true;
		}
	}
	return false;
}

bool func_282(int iParam0, int iParam1, int iParam2)//Position - 0x46F9D
{
	int iVar0;
	int iVar1;
	int iVar2;
	int iVar3;
	int iVar4;
	var uVar5;
	var uVar22;
	int iVar32;
	var uVar33;
	
	if (ped::is_ped_injured(iParam0))
	{
		return false;
	}
	iVar0 = entity::get_entity_model(iParam0);
	Global_69518[1 /*14*/] = { func_283(iVar0, iParam1, iParam2) };
	if (!gameplay::is_bit_set(Global_69518[1 /*14*/].f_6, 0))
	{
		return false;
	}
	if (iParam1 == 12)
	{
		uVar5 = { func_182(iVar0, iParam2) };
		iVar2 = 0;
		while (iVar2 <= 14)
		{
			if ((uVar5[iVar2] != -99 && iVar2 != 12) && iVar2 != 14)
			{
				if (!func_282(iParam0, iVar2, uVar5[iVar2]))
				{
					if (iVar2 == 13)
					{
						uVar22 = { func_178(iVar0, uVar5[iVar2]) };
						iVar3 = 0;
						while (iVar3 <= 8)
						{
							if (!func_282(iParam0, 14, uVar22[iVar3]))
							{
								iVar4 = 0;
								while (iVar4 <= 19)
								{
									Global_69518[2 /*14*/] = { func_283(iVar0, 14, iVar4) };
									if (Global_69518[2 /*14*/].f_12 == iVar3)
									{
										if (func_282(iParam0, 14, iVar4))
										{
											if (!func_94(iVar0, iParam2, 14, iVar4, &uVar5, &(Global_69518[2 /*14*/])))
											{
												return false;
											}
										}
									}
									iVar4++;
								}
							}
							iVar3++;
						}
					}
					else
					{
						iVar1 = func_159(iParam0, iVar2);
						Global_69518[2 /*14*/] = { func_283(iVar0, iVar2, iVar1) };
						if (!func_94(iVar0, iParam2, iVar2, iVar1, &uVar5, &(Global_69518[2 /*14*/])))
						{
							return false;
						}
					}
				}
			}
			iVar2++;
		}
		return true;
	}
	else if (iParam1 == 13)
	{
		uVar33 = { func_178(iVar0, iParam2) };
		iVar32 = 0;
		while (iVar32 <= 8)
		{
			if (!func_282(iParam0, 14, uVar33[iVar32]))
			{
				return false;
			}
			iVar32++;
		}
		return true;
	}
	else if (iParam1 == 14)
	{
		if (ped::get_ped_prop_index(iParam0, Global_69518[1 /*14*/].f_12) == Global_69518[1 /*14*/].f_3 && (ped::get_ped_prop_texture_index(iParam0, Global_69518[1 /*14*/].f_12) == Global_69518[1 /*14*/].f_4 || Global_69518[1 /*14*/].f_3 == -1))
		{
			return true;
		}
	}
	else if (Global_69518[1 /*14*/].f_3 == ped::get_ped_drawable_variation(iParam0, func_181(iParam1)) && Global_69518[1 /*14*/].f_4 == ped::get_ped_texture_variation(iParam0, func_181(iParam1)))
	{
		return true;
	}
	return false;
}

struct<14> func_283(int iParam0, int iParam1, int iParam2)//Position - 0x471F5
{
	func_233();
	if (iParam0 == joaat("player_zero"))
	{
		func_321(iParam1, iParam2);
	}
	else if (iParam0 == joaat("player_one"))
	{
		func_302(iParam1, iParam2);
	}
	else if (iParam0 == joaat("player_two"))
	{
		func_284(iParam1, iParam2);
	}
	return Global_69518[0 /*14*/];
}

void func_284(int iParam0, int iParam1)//Position - 0x47247
{
	switch (iParam0)
	{
		case 0:
			func_301(iParam1);
			break;
		
		case 2:
			func_300(iParam1);
			break;
		
		case 3:
			func_297(iParam1);
			break;
		
		case 4:
			func_296(iParam1);
			break;
		
		case 6:
			func_295(iParam1);
			break;
		
		case 5:
			func_294(iParam1);
			break;
		
		case 8:
			func_293(iParam1);
			break;
		
		case 9:
			func_292(iParam1);
			break;
		
		case 10:
			func_291(iParam1);
			break;
		
		case 1:
			func_290(iParam1);
			break;
		
		case 7:
			func_289(iParam1);
			break;
		
		case 11:
			func_288(iParam1);
			break;
		
		case 12:
			func_287(iParam1);
			break;
		
		case 13:
			func_286(iParam1);
			break;
		
		case 14:
			func_285(iParam1);
			break;
	}
}

void func_285(int iParam0)//Position - 0x47337
{
	int iVar0;
	int iVar1;
	struct<2> Var2;
	int iVar6;
	int iVar7;
	int iVar8;
	int iVar9;
	int iVar10;
	
	iVar0 = false;
	iVar1 = 10;
	iVar6 = 0;
	iVar7 = 0;
	iVar8 = -1;
	iVar9 = 2;
	iVar10 = 14;
	Global_69518[0 /*14*/].f_5 = 2;
	switch (iParam0)
	{
		case 0:
			StringCopy(&Var2, "NO_LABEL", 16);
			iVar6 = -1;
			iVar7 = 0;
			iVar1 = 0;
			iVar8 = 0;
			break;
		
		case 1:
			StringCopy(&Var2, "NO_LABEL", 16);
			iVar6 = -1;
			iVar7 = 0;
			iVar1 = 0;
			iVar8 = 1;
			break;
		
		case 2:
			StringCopy(&Var2, "NO_LABEL", 16);
			iVar6 = -1;
			iVar7 = 0;
			iVar1 = 0;
			iVar8 = 2;
			break;
		
		case 3:
			StringCopy(&Var2, "NO_LABEL", 16);
			iVar6 = -1;
			iVar7 = 0;
			iVar1 = 0;
			iVar8 = 3;
			break;
		
		case 4:
			StringCopy(&Var2, "NO_LABEL", 16);
			iVar6 = -1;
			iVar7 = 0;
			iVar1 = 0;
			iVar8 = 4;
			break;
		
		case 5:
			StringCopy(&Var2, "NO_LABEL", 16);
			iVar6 = -1;
			iVar7 = 0;
			iVar1 = 0;
			iVar8 = 5;
			break;
		
		case 6:
			StringCopy(&Var2, "NO_LABEL", 16);
			iVar6 = -1;
			iVar7 = 0;
			iVar1 = 0;
			iVar8 = 6;
			break;
		
		case 7:
			StringCopy(&Var2, "NO_LABEL", 16);
			iVar6 = -1;
			iVar7 = 0;
			iVar1 = 0;
			iVar8 = 7;
			break;
		
		case 8:
			StringCopy(&Var2, "NO_LABEL", 16);
			iVar6 = -1;
			iVar7 = 0;
			iVar1 = 0;
			iVar8 = 8;
			break;
		
		case 154:
			StringCopy(&Var2, "NO_LABEL", 16);
			iVar6 = 0;
			iVar7 = 0;
			iVar0 = true;
			iVar8 = 2;
			break;
		
		case 88:
			StringCopy(&Var2, "NO_LABEL", 16);
			iVar6 = 0;
			iVar7 = 0;
			iVar0 = true;
			iVar8 = 10;
			break;
		
		case 89:
			StringCopy(&Var2, "PROPS_P2_E1", 16);
			iVar6 = 1;
			iVar7 = 0;
			iVar1 = 45;
			iVar8 = 10;
			break;
		
		case 90:
			StringCopy(&Var2, "PROPS_P2_E2", 16);
			iVar6 = 2;
			iVar7 = 0;
			iVar8 = 10;
			break;
		
		case 91:
			StringCopy(&Var2, "PROPS_P2_E2_1", 16);
			iVar6 = 2;
			iVar7 = 1;
			iVar1 = 50;
			iVar8 = 10;
			break;
		
		case 92:
			StringCopy(&Var2, "PROPS_P2_E2_2", 16);
			iVar6 = 2;
			iVar7 = 2;
			iVar1 = 55;
			iVar8 = 10;
			break;
		
		case 93:
			StringCopy(&Var2, "PROPS_P2_E2_3", 16);
			iVar6 = 2;
			iVar7 = 3;
			iVar1 = 52;
			iVar8 = 10;
			break;
		
		case 94:
			StringCopy(&Var2, "PROPS_P2_E2_4", 16);
			iVar6 = 2;
			iVar7 = 4;
			iVar1 = 54;
			iVar8 = 10;
			break;
		
		case 95:
			StringCopy(&Var2, "PROPS_P2_E2_5", 16);
			iVar6 = 2;
			iVar7 = 5;
			iVar1 = 54;
			iVar8 = 10;
			break;
		
		case 96:
			StringCopy(&Var2, "PROPS_P2_E2_6", 16);
			iVar6 = 2;
			iVar7 = 6;
			iVar1 = 55;
			iVar8 = 10;
			break;
		
		case 97:
			StringCopy(&Var2, "PROPS_P2_E2_7", 16);
			iVar6 = 2;
			iVar7 = 7;
			iVar1 = 55;
			iVar8 = 10;
			break;
		
		case 98:
			StringCopy(&Var2, "PROPS_P2_E2_8", 16);
			iVar6 = 2;
			iVar7 = 8;
			iVar1 = 58;
			iVar8 = 10;
			break;
		
		case 99:
			StringCopy(&Var2, "PROPS_P2_E2_9", 16);
			iVar6 = 2;
			iVar7 = 9;
			iVar1 = 58;
			iVar8 = 10;
			break;
		
		case 100:
			StringCopy(&Var2, "PROPS_P2_E3", 16);
			iVar6 = 3;
			iVar7 = 0;
			iVar1 = 75;
			iVar8 = 10;
			break;
		
		case 101:
			StringCopy(&Var2, "PROPS_P2_E3_1", 16);
			iVar6 = 3;
			iVar7 = 1;
			iVar1 = 75;
			iVar8 = 10;
			break;
		
		case 102:
			StringCopy(&Var2, "PROPS_P2_E3_2", 16);
			iVar6 = 3;
			iVar7 = 2;
			iVar1 = 75;
			iVar8 = 10;
			break;
		
		case 103:
			StringCopy(&Var2, "PROPS_P2_E3_3", 16);
			iVar6 = 3;
			iVar7 = 3;
			iVar1 = 75;
			iVar8 = 10;
			break;
		
		case 104:
			StringCopy(&Var2, "PROPS_P2_E3_4", 16);
			iVar6 = 3;
			iVar7 = 4;
			iVar1 = 75;
			iVar8 = 10;
			break;
		
		case 105:
			StringCopy(&Var2, "PROPS_P2_E3_5", 16);
			iVar6 = 3;
			iVar7 = 5;
			iVar1 = 75;
			iVar8 = 10;
			break;
		
		case 106:
			StringCopy(&Var2, "PROPS_P2_E3_6", 16);
			iVar6 = 3;
			iVar7 = 6;
			iVar1 = 75;
			iVar8 = 10;
			break;
		
		case 107:
			StringCopy(&Var2, "PROPS_P2_E3_7", 16);
			iVar6 = 3;
			iVar7 = 7;
			iVar1 = 75;
			iVar8 = 10;
			break;
		
		case 108:
			StringCopy(&Var2, "PROPS_P2_E3_8", 16);
			iVar6 = 3;
			iVar7 = 8;
			iVar1 = 75;
			iVar8 = 10;
			break;
		
		case 109:
			StringCopy(&Var2, "PROPS_P2_E3_9", 16);
			iVar6 = 3;
			iVar7 = 9;
			iVar1 = 75;
			iVar8 = 10;
			break;
		
		case 110:
			StringCopy(&Var2, "NO_LABEL", 16);
			iVar6 = 4;
			iVar7 = 0;
			iVar8 = 10;
			break;
		
		case 111:
			StringCopy(&Var2, "NO_LABEL", 16);
			iVar6 = 5;
			iVar7 = 0;
			iVar8 = 10;
			break;
		
		case 112:
			StringCopy(&Var2, "NO_LABEL", 16);
			iVar6 = 6;
			iVar7 = 0;
			iVar8 = 10;
			break;
		
		case 113:
			StringCopy(&Var2, "PROPS_P2_E7_0", 16);
			iVar6 = 7;
			iVar7 = 0;
			iVar1 = 60;
			iVar8 = 10;
			break;
		
		case 114:
			StringCopy(&Var2, "PROPS_P2_E7_1", 16);
			iVar6 = 7;
			iVar7 = 1;
			iVar1 = 50;
			iVar8 = 10;
			break;
		
		case 115:
			StringCopy(&Var2, "PROPS_P2_E7_2", 16);
			iVar6 = 7;
			iVar7 = 2;
			iVar1 = 50;
			iVar8 = 10;
			break;
		
		case 116:
			StringCopy(&Var2, "PROPS_P2_E7_3", 16);
			iVar6 = 7;
			iVar7 = 3;
			iVar1 = 59;
			iVar8 = 10;
			break;
		
		case 117:
			StringCopy(&Var2, "PROPS_P2_E7_4", 16);
			iVar6 = 7;
			iVar7 = 4;
			iVar1 = 55;
			iVar8 = 10;
			break;
		
		case 118:
			StringCopy(&Var2, "PROPS_P2_E7_5", 16);
			iVar6 = 7;
			iVar7 = 5;
			iVar1 = 55;
			iVar8 = 10;
			break;
		
		case 119:
			StringCopy(&Var2, "PROPS_P2_E7_6", 16);
			iVar6 = 7;
			iVar7 = 6;
			iVar1 = 65;
			iVar8 = 10;
			break;
		
		case 120:
			StringCopy(&Var2, "PROPS_P2_E7_7", 16);
			iVar6 = 7;
			iVar7 = 7;
			iVar1 = 59;
			iVar8 = 10;
			break;
		
		case 121:
			StringCopy(&Var2, "PROPS_P2_E7_8", 16);
			iVar6 = 7;
			iVar7 = 8;
			iVar1 = 79;
			iVar8 = 10;
			break;
		
		case 122:
			StringCopy(&Var2, "PROPS_P2_E7_9", 16);
			iVar6 = 7;
			iVar7 = 9;
			iVar1 = 79;
			iVar8 = 10;
			break;
		
		case 123:
			StringCopy(&Var2, "PROPS_P2_E8_0", 16);
			iVar6 = 8;
			iVar7 = 0;
			iVar1 = 150;
			iVar8 = 10;
			break;
		
		case 124:
			StringCopy(&Var2, "PROPS_P2_E8_1", 16);
			iVar6 = 8;
			iVar7 = 1;
			iVar1 = 150;
			iVar8 = 10;
			break;
		
		case 125:
			StringCopy(&Var2, "PROPS_P2_E8_2", 16);
			iVar6 = 8;
			iVar7 = 2;
			iVar1 = 170;
			iVar8 = 10;
			break;
		
		case 126:
			StringCopy(&Var2, "PROPS_P2_E8_3", 16);
			iVar6 = 8;
			iVar7 = 3;
			iVar1 = 175;
			iVar8 = 10;
			break;
		
		case 127:
			StringCopy(&Var2, "PROPS_P2_E8_4", 16);
			iVar6 = 8;
			iVar7 = 4;
			iVar1 = 180;
			iVar8 = 10;
			break;
		
		case 128:
			StringCopy(&Var2, "PROPS_P2_E8_5", 16);
			iVar6 = 8;
			iVar7 = 5;
			iVar1 = 185;
			iVar8 = 10;
			break;
		
		case 129:
			StringCopy(&Var2, "PROPS_P2_E8_6", 16);
			iVar6 = 8;
			iVar7 = 6;
			iVar1 = 189;
			iVar8 = 10;
			break;
		
		case 130:
			StringCopy(&Var2, "PROPS_P2_E8_7", 16);
			iVar6 = 8;
			iVar7 = 7;
			iVar1 = 195;
			iVar8 = 10;
			break;
		
		case 131:
			StringCopy(&Var2, "PROPS_P2_E8_8", 16);
			iVar6 = 8;
			iVar7 = 8;
			iVar1 = 210;
			iVar8 = 10;
			break;
		
		case 132:
			StringCopy(&Var2, "PROPS_P2_E8_9", 16);
			iVar6 = 8;
			iVar7 = 9;
			iVar1 = 215;
			iVar8 = 10;
			break;
		
		case 133:
			StringCopy(&Var2, "PROPS_P2_E9_0", 16);
			iVar6 = 9;
			iVar7 = 0;
			iVar1 = 165;
			iVar8 = 10;
			break;
		
		case 134:
			StringCopy(&Var2, "PROPS_P2_E9_1", 16);
			iVar6 = 9;
			iVar7 = 1;
			iVar1 = 165;
			iVar8 = 10;
			break;
		
		case 135:
			StringCopy(&Var2, "PROPS_P2_E9_2", 16);
			iVar6 = 9;
			iVar7 = 2;
			iVar1 = 169;
			iVar8 = 10;
			break;
		
		case 136:
			StringCopy(&Var2, "PROPS_P2_E9_3", 16);
			iVar6 = 9;
			iVar7 = 3;
			iVar1 = 169;
			iVar8 = 10;
			break;
		
		case 137:
			StringCopy(&Var2, "PROPS_P2_E9_4", 16);
			iVar6 = 9;
			iVar7 = 4;
			iVar1 = 175;
			iVar8 = 10;
			break;
		
		case 138:
			StringCopy(&Var2, "PROPS_P2_E9_5", 16);
			iVar6 = 9;
			iVar7 = 5;
			iVar1 = 175;
			iVar8 = 10;
			break;
		
		case 139:
			StringCopy(&Var2, "PROPS_P2_E9_6", 16);
			iVar6 = 9;
			iVar7 = 6;
			iVar1 = 175;
			iVar8 = 10;
			break;
		
		case 140:
			StringCopy(&Var2, "PROPS_P2_E9_7", 16);
			iVar6 = 9;
			iVar7 = 7;
			iVar1 = 189;
			iVar8 = 10;
			break;
		
		case 141:
			StringCopy(&Var2, "PROPS_P2_E9_8", 16);
			iVar6 = 9;
			iVar7 = 8;
			iVar1 = 195;
			iVar8 = 10;
			break;
		
		case 142:
			StringCopy(&Var2, "PROPS_P2_E9_9", 16);
			iVar6 = 9;
			iVar7 = 9;
			iVar1 = 195;
			iVar8 = 10;
			break;
		
		case 143:
			StringCopy(&Var2, "PROPS_P2_E10_0", 16);
			iVar6 = 10;
			iVar7 = 0;
			iVar1 = 49;
			iVar8 = 10;
			break;
		
		case 144:
			StringCopy(&Var2, "PROPS_P2_E10_1", 16);
			iVar6 = 10;
			iVar7 = 1;
			iVar1 = 50;
			iVar8 = 10;
			break;
		
		case 145:
			StringCopy(&Var2, "PROPS_P2_E10_2", 16);
			iVar6 = 10;
			iVar7 = 2;
			iVar1 = 52;
			iVar8 = 10;
			break;
		
		case 146:
			StringCopy(&Var2, "PROPS_P2_E10_3", 16);
			iVar6 = 10;
			iVar7 = 3;
			iVar1 = 55;
			iVar8 = 10;
			break;
		
		case 147:
			StringCopy(&Var2, "PROPS_P2_E10_4", 16);
			iVar6 = 10;
			iVar7 = 4;
			iVar1 = 60;
			iVar8 = 10;
			break;
		
		case 148:
			StringCopy(&Var2, "PROPS_P2_E10_5", 16);
			iVar6 = 10;
			iVar7 = 5;
			iVar1 = 58;
			iVar8 = 10;
			break;
		
		case 149:
			StringCopy(&Var2, "PROPS_P2_E10_6", 16);
			iVar6 = 10;
			iVar7 = 6;
			iVar1 = 60;
			iVar8 = 10;
			break;
		
		case 150:
			StringCopy(&Var2, "PROPS_P2_E10_7", 16);
			iVar6 = 10;
			iVar7 = 7;
			iVar1 = 63;
			iVar8 = 10;
			break;
		
		case 151:
			StringCopy(&Var2, "PROPS_P2_E10_8", 16);
			iVar6 = 10;
			iVar7 = 8;
			iVar1 = 65;
			iVar8 = 10;
			break;
		
		case 152:
			StringCopy(&Var2, "PROPS_P2_E10_9", 16);
			iVar6 = 10;
			iVar7 = 9;
			iVar1 = 68;
			iVar8 = 10;
			break;
		
		case 153:
			StringCopy(&Var2, "NO_LABEL", 16);
			iVar6 = 11;
			iVar7 = 0;
			iVar1 = 100;
			iVar8 = 10;
			break;
		
		case 10:
			StringCopy(&Var2, "NO_LABEL", 16);
			iVar6 = 0;
			iVar7 = 0;
			iVar0 = true;
			iVar8 = 0;
			break;
		
		case 11:
			StringCopy(&Var2, "NO_LABEL", 16);
			iVar6 = 1;
			iVar7 = 0;
			iVar0 = true;
			iVar8 = 0;
			break;
		
		case 12:
			StringCopy(&Var2, "PROPS_P2_H2_0", 16);
			iVar6 = 2;
			iVar7 = 0;
			iVar1 = 320;
			iVar8 = 0;
			break;
		
		case 13:
			StringCopy(&Var2, "NO_LABEL", 16);
			iVar6 = 3;
			iVar7 = 0;
			iVar0 = true;
			iVar8 = 0;
			break;
		
		case 14:
			StringCopy(&Var2, "NO_LABEL", 16);
			iVar6 = 4;
			iVar7 = 0;
			iVar0 = true;
			iVar8 = 0;
			break;
		
		case 15:
			StringCopy(&Var2, "NO_LABEL", 16);
			iVar6 = 5;
			iVar7 = 0;
			iVar0 = true;
			iVar8 = 0;
			break;
		
		case 16:
			StringCopy(&Var2, "NO_LABEL", 16);
			iVar6 = 6;
			iVar7 = 0;
			iVar0 = true;
			iVar8 = 0;
			break;
		
		case 17:
			StringCopy(&Var2, "PROPS_P2_H7_0", 16);
			iVar6 = 7;
			iVar7 = 0;
			iVar8 = 0;
			break;
		
		case 18:
			StringCopy(&Var2, "PROPS_P2_H7_1", 16);
			iVar6 = 7;
			iVar7 = 1;
			iVar8 = 0;
			break;
		
		case 19:
			StringCopy(&Var2, "NO_LABEL", 16);
			iVar6 = 8;
			iVar7 = 0;
			iVar0 = true;
			iVar8 = 0;
			break;
		
		case 20:
			StringCopy(&Var2, "NO_LABEL", 16);
			iVar6 = 9;
			iVar7 = 0;
			iVar8 = 0;
			break;
		
		case 21:
			StringCopy(&Var2, "NO_LABEL", 16);
			iVar6 = 9;
			iVar7 = 1;
			iVar8 = 0;
			break;
		
		case 22:
			StringCopy(&Var2, "NO_LABEL", 16);
			iVar6 = 9;
			iVar7 = 2;
			iVar8 = 0;
			break;
		
		case 23:
			StringCopy(&Var2, "NO_LABEL", 16);
			iVar6 = 9;
			iVar7 = 3;
			iVar8 = 0;
			break;
		
		case 24:
			StringCopy(&Var2, "NO_LABEL", 16);
			iVar6 = 9;
			iVar7 = 4;
			iVar8 = 0;
			break;
		
		case 25:
			StringCopy(&Var2, "NO_LABEL", 16);
			iVar6 = 9;
			iVar7 = 5;
			iVar8 = 0;
			break;
		
		case 26:
			StringCopy(&Var2, "NO_LABEL", 16);
			iVar6 = 9;
			iVar7 = 6;
			iVar8 = 0;
			break;
		
		case 27:
			StringCopy(&Var2, "NO_LABEL", 16);
			iVar6 = 9;
			iVar7 = 7;
			iVar8 = 0;
			break;
		
		case 28:
			StringCopy(&Var2, "NO_LABEL", 16);
			iVar6 = 9;
			iVar7 = 8;
			iVar8 = 0;
			break;
		
		case 29:
			StringCopy(&Var2, "NO_LABEL", 16);
			iVar6 = 9;
			iVar7 = 9;
			iVar8 = 0;
			break;
		
		case 30:
			StringCopy(&Var2, "NO_LABEL", 16);
			iVar6 = 9;
			iVar7 = 10;
			iVar8 = 0;
			break;
		
		case 31:
			StringCopy(&Var2, "NO_LABEL", 16);
			iVar6 = 9;
			iVar7 = 11;
			iVar8 = 0;
			break;
		
		case 32:
			StringCopy(&Var2, "NO_LABEL", 16);
			iVar6 = 9;
			iVar7 = 12;
			iVar8 = 0;
			break;
		
		case 33:
			StringCopy(&Var2, "NO_LABEL", 16);
			iVar6 = 9;
			iVar7 = 13;
			iVar8 = 0;
			break;
		
		case 34:
			StringCopy(&Var2, "NO_LABEL", 16);
			iVar6 = 9;
			iVar7 = 14;
			iVar8 = 0;
			break;
		
		case 35:
			StringCopy(&Var2, "NO_LABEL", 16);
			iVar6 = 9;
			iVar7 = 15;
			iVar8 = 0;
			break;
		
		case 36:
			StringCopy(&Var2, "NO_LABEL", 16);
			iVar6 = 10;
			iVar7 = 0;
			iVar0 = true;
			iVar8 = 0;
			break;
		
		case 37:
			StringCopy(&Var2, "NO_LABEL", 16);
			iVar6 = 11;
			iVar7 = 0;
			iVar8 = 0;
			break;
		
		case 38:
			StringCopy(&Var2, "NO_LABEL", 16);
			iVar6 = 11;
			iVar7 = 1;
			iVar8 = 0;
			break;
		
		case 39:
			StringCopy(&Var2, "NO_LABEL", 16);
			iVar6 = 11;
			iVar7 = 2;
			iVar8 = 0;
			break;
		
		case 40:
			StringCopy(&Var2, "NO_LABEL", 16);
			iVar6 = 11;
			iVar7 = 3;
			iVar8 = 0;
			break;
		
		case 41:
			StringCopy(&Var2, "NO_LABEL", 16);
			iVar6 = 11;
			iVar7 = 4;
			iVar8 = 0;
			break;
		
		case 42:
			StringCopy(&Var2, "NO_LABEL", 16);
			iVar6 = 11;
			iVar7 = 5;
			iVar8 = 0;
			break;
		
		case 43:
			StringCopy(&Var2, "NO_LABEL", 16);
			iVar6 = 11;
			iVar7 = 6;
			iVar8 = 0;
			break;
		
		case 44:
			StringCopy(&Var2, "NO_LABEL", 16);
			iVar6 = 11;
			iVar7 = 7;
			iVar8 = 0;
			break;
		
		case 45:
			StringCopy(&Var2, "NO_LABEL", 16);
			iVar6 = 12;
			iVar7 = 0;
			iVar8 = 0;
			break;
		
		case 46:
			StringCopy(&Var2, "NO_LABEL", 16);
			iVar6 = 13;
			iVar7 = 0;
			iVar8 = 0;
			break;
		
		case 47:
			StringCopy(&Var2, "PROPS_P1_H8_0", 16);
			iVar6 = 14;
			iVar7 = 0;
			iVar1 = 270;
			iVar8 = 0;
			break;
		
		case 48:
			StringCopy(&Var2, "PROPS_P1_H8_1", 16);
			iVar6 = 14;
			iVar7 = 1;
			iVar1 = 270;
			iVar8 = 0;
			break;
		
		case 49:
			StringCopy(&Var2, "PROPS_P1_H9_0", 16);
			iVar6 = 15;
			iVar7 = 0;
			iVar1 = 200;
			iVar8 = 0;
			break;
		
		case 50:
			StringCopy(&Var2, "PROPS_P1_H9_1", 16);
			iVar6 = 15;
			iVar7 = 1;
			iVar1 = 200;
			iVar8 = 0;
			break;
		
		case 51:
			StringCopy(&Var2, "PROPS_P1_H10_0", 16);
			iVar6 = 16;
			iVar7 = 0;
			iVar1 = 350;
			iVar8 = 0;
			break;
		
		case 52:
			StringCopy(&Var2, "PROPS_P1_H10_1", 16);
			iVar6 = 16;
			iVar7 = 1;
			iVar1 = 350;
			iVar8 = 0;
			break;
		
		case 53:
			StringCopy(&Var2, "PROPS_P1_H11_0", 16);
			iVar6 = 17;
			iVar7 = 0;
			iVar1 = 450;
			iVar8 = 0;
			break;
		
		case 54:
			StringCopy(&Var2, "PROPS_P1_H12_0", 16);
			iVar6 = 18;
			iVar7 = 0;
			iVar1 = 500;
			iVar8 = 0;
			break;
		
		case 55:
			StringCopy(&Var2, "PROPS_P1_H12_1", 16);
			iVar6 = 18;
			iVar7 = 1;
			iVar1 = 500;
			iVar8 = 0;
			break;
		
		case 56:
			StringCopy(&Var2, "PROPS_P1_H13_0", 16);
			iVar6 = 19;
			iVar7 = 0;
			iVar1 = 50;
			iVar8 = 0;
			break;
		
		case 57:
			StringCopy(&Var2, "PROPS_P1_H13_1", 16);
			iVar6 = 19;
			iVar7 = 1;
			iVar1 = 50;
			iVar8 = 0;
			break;
		
		case 58:
			StringCopy(&Var2, "PROPS_P1_H14_0", 16);
			iVar6 = 20;
			iVar7 = 0;
			iVar1 = 99;
			iVar8 = 0;
			break;
		
		case 59:
			StringCopy(&Var2, "PROPS_P1_H14_1", 16);
			iVar6 = 20;
			iVar7 = 1;
			iVar1 = 99;
			iVar8 = 0;
			break;
		
		case 60:
			StringCopy(&Var2, "PROPS_P1_H14_2", 16);
			iVar6 = 20;
			iVar7 = 2;
			iVar1 = 99;
			iVar8 = 0;
			break;
		
		case 61:
			StringCopy(&Var2, "NO_LABEL", 16);
			iVar6 = 21;
			iVar7 = 0;
			iVar8 = 0;
			break;
		
		case 62:
			StringCopy(&Var2, "NO_LABEL", 16);
			iVar6 = 22;
			iVar7 = 0;
			iVar8 = 0;
			break;
		
		case 63:
			StringCopy(&Var2, "NO_LABEL", 16);
			iVar6 = 23;
			iVar7 = 0;
			iVar8 = 0;
			break;
		
		case 64:
			StringCopy(&Var2, "NO_LABEL", 16);
			iVar6 = 23;
			iVar7 = 1;
			iVar8 = 0;
			break;
		
		case 65:
			StringCopy(&Var2, "NO_LABEL", 16);
			iVar6 = 23;
			iVar7 = 2;
			iVar8 = 0;
			break;
		
		case 66:
			StringCopy(&Var2, "NO_LABEL", 16);
			iVar6 = 23;
			iVar7 = 3;
			iVar8 = 0;
			break;
		
		case 67:
			StringCopy(&Var2, "NO_LABEL", 16);
			iVar6 = 23;
			iVar7 = 4;
			iVar8 = 0;
			break;
		
		case 68:
			StringCopy(&Var2, "NO_LABEL", 16);
			iVar6 = 23;
			iVar7 = 5;
			iVar8 = 0;
			break;
		
		case 69:
			StringCopy(&Var2, "NO_LABEL", 16);
			iVar6 = 24;
			iVar7 = 0;
			iVar8 = 0;
			break;
		
		case 70:
			StringCopy(&Var2, "NO_LABEL", 16);
			iVar6 = 25;
			iVar7 = 0;
			iVar8 = 0;
			break;
		
		case 71:
			StringCopy(&Var2, "PROPS_P1_H26_0", 16);
			iVar6 = 26;
			iVar7 = 0;
			iVar1 = 20;
			iVar8 = 0;
			break;
		
		case 72:
			StringCopy(&Var2, "PROPS_P1_H26_1", 16);
			iVar6 = 26;
			iVar7 = 1;
			iVar1 = 25;
			iVar8 = 0;
			break;
		
		case 73:
			StringCopy(&Var2, "PROPS_P1_H26_2", 16);
			iVar6 = 26;
			iVar7 = 2;
			iVar1 = 25;
			iVar8 = 0;
			break;
		
		case 74:
			StringCopy(&Var2, "PROPS_P1_H26_3", 16);
			iVar6 = 26;
			iVar7 = 3;
			iVar1 = 22;
			iVar8 = 0;
			break;
		
		case 75:
			StringCopy(&Var2, "PROPS_P1_H26_4", 16);
			iVar6 = 26;
			iVar7 = 4;
			iVar1 = 20;
			iVar8 = 0;
			break;
		
		case 76:
			StringCopy(&Var2, "PROPS_P1_H26_5", 16);
			iVar6 = 26;
			iVar7 = 5;
			iVar1 = 25;
			iVar8 = 0;
			break;
		
		case 77:
			StringCopy(&Var2, "PROPS_P1_H26_6", 16);
			iVar6 = 26;
			iVar7 = 6;
			iVar1 = 28;
			iVar8 = 0;
			break;
		
		case 78:
			StringCopy(&Var2, "PROPS_P1_H26_7", 16);
			iVar6 = 26;
			iVar7 = 7;
			iVar1 = 24;
			iVar8 = 0;
			break;
		
		case 79:
			StringCopy(&Var2, "PROPS_P1_H26_8", 16);
			iVar6 = 26;
			iVar7 = 8;
			iVar1 = 25;
			iVar8 = 0;
			break;
		
		case 80:
			StringCopy(&Var2, "PROPS_P1_H26_9", 16);
			iVar6 = 26;
			iVar7 = 9;
			iVar1 = 22;
			iVar8 = 0;
			break;
		
		case 81:
			StringCopy(&Var2, "PROPS_P1_H26_10", 16);
			iVar6 = 26;
			iVar7 = 10;
			iVar1 = 18;
			iVar8 = 0;
			break;
		
		case 82:
			StringCopy(&Var2, "PROPS_P1_H26_11", 16);
			iVar6 = 26;
			iVar7 = 11;
			iVar1 = 20;
			iVar8 = 0;
			break;
		
		case 83:
			StringCopy(&Var2, "PROPS_P1_H26_12", 16);
			iVar6 = 26;
			iVar7 = 12;
			iVar1 = 24;
			iVar8 = 0;
			break;
		
		case 84:
			StringCopy(&Var2, "PROPS_P1_H26_13", 16);
			iVar6 = 26;
			iVar7 = 13;
			iVar1 = 22;
			iVar8 = 0;
			break;
		
		case 85:
			StringCopy(&Var2, "PROPS_P1_H26_14", 16);
			iVar6 = 26;
			iVar7 = 14;
			iVar1 = 25;
			iVar8 = 0;
			break;
		
		case 86:
			StringCopy(&Var2, "PROPS_P1_H26_15", 16);
			iVar6 = 26;
			iVar7 = 15;
			iVar1 = 25;
			iVar8 = 0;
			break;
		
		case 87:
			StringCopy(&Var2, "NO_LABEL", 16);
			iVar6 = 27;
			iVar7 = 0;
			iVar8 = 0;
			break;
		
		default:
			func_203(iVar10, iParam0, 155);
			return;
			break;
	}
	func_195(&(Global_69518[0 /*14*/]), iVar10, iParam0, &Var2, iVar6, iVar7, iVar1, iVar0, iVar8, iVar9, 0);
}

void func_286(int iParam0)//Position - 0x485AF
{
	int iVar0;
	int iVar1;
	struct<2> Var2;
	int iVar6;
	int iVar7;
	int iVar8;
	int iVar9;
	int iVar10;
	
	iVar0 = false;
	iVar1 = 10;
	iVar6 = 0;
	iVar7 = 0;
	iVar8 = -1;
	iVar9 = 2;
	iVar10 = 13;
	Global_69518[0 /*14*/].f_5 = 2;
	switch (iParam0)
	{
		case 31:
			StringCopy(&Var2, "NO_LABEL", 16);
			iVar6 = 0;
			iVar7 = 0;
			break;
		
		case 0:
			StringCopy(&Var2, "NO_LABEL", 16);
			iVar6 = 0;
			iVar7 = 0;
			iVar0 = true;
			break;
		
		case 1:
			StringCopy(&Var2, "NO_LABEL", 16);
			iVar6 = 0;
			iVar7 = 0;
			break;
		
		case 2:
			StringCopy(&Var2, "NO_LABEL", 16);
			iVar6 = 0;
			iVar7 = 0;
			iVar0 = true;
			break;
		
		case 3:
			StringCopy(&Var2, "NO_LABEL", 16);
			iVar6 = 0;
			iVar7 = 0;
			iVar0 = true;
			break;
		
		case 4:
			StringCopy(&Var2, "NO_LABEL", 16);
			iVar6 = 0;
			iVar7 = 0;
			iVar0 = true;
			break;
		
		case 5:
			StringCopy(&Var2, "NO_LABEL", 16);
			iVar6 = 0;
			iVar7 = 0;
			iVar0 = true;
			break;
		
		case 6:
			StringCopy(&Var2, "NO_LABEL", 16);
			iVar6 = 0;
			iVar7 = 0;
			break;
		
		case 7:
			StringCopy(&Var2, "NO_LABEL", 16);
			iVar6 = 0;
			iVar7 = 0;
			break;
		
		case 8:
			StringCopy(&Var2, "NO_LABEL", 16);
			iVar6 = 0;
			iVar7 = 0;
			iVar0 = true;
			break;
		
		default:
			func_203(iVar10, iParam0, 9);
			return;
			break;
	}
	func_195(&(Global_69518[0 /*14*/]), iVar10, iParam0, &Var2, iVar6, iVar7, iVar1, iVar0, iVar8, iVar9, 0);
}

void func_287(int iParam0)//Position - 0x48705
{
	int iVar0;
	int iVar1;
	struct<2> Var2;
	int iVar6;
	int iVar7;
	int iVar8;
	int iVar9;
	int iVar10;
	
	iVar0 = false;
	iVar1 = 10;
	iVar6 = 0;
	iVar7 = 0;
	iVar8 = -1;
	iVar9 = 2;
	iVar10 = 12;
	Global_69518[0 /*14*/].f_5 = 2;
	switch (iParam0)
	{
		case 0:
			StringCopy(&Var2, "OUTFIT_P2_0", 16);
			iVar6 = 0;
			iVar7 = 0;
			iVar0 = true;
			break;
		
		case 1:
			StringCopy(&Var2, "NO_LABEL", 16);
			iVar6 = 0;
			iVar7 = 0;
			break;
		
		case 2:
			StringCopy(&Var2, "OUTFIT_P2_5", 16);
			iVar6 = 0;
			iVar7 = 0;
			break;
		
		case 3:
			StringCopy(&Var2, "OUTFIT_P2_6", 16);
			iVar6 = 0;
			iVar7 = 0;
			break;
		
		case 4:
			StringCopy(&Var2, "OUTFIT_P2_7", 16);
			iVar6 = 0;
			iVar7 = 0;
			break;
		
		case 5:
			StringCopy(&Var2, "OUTFIT_P2_8", 16);
			iVar6 = 0;
			iVar7 = 0;
			break;
		
		case 6:
			StringCopy(&Var2, "OUTFIT_P2_9", 16);
			iVar6 = 0;
			iVar7 = 0;
			break;
		
		case 7:
			StringCopy(&Var2, "OUTFIT_P2_10", 16);
			iVar6 = 0;
			iVar7 = 0;
			break;
		
		case 8:
			StringCopy(&Var2, "OUTFIT_P2_12", 16);
			iVar6 = 0;
			iVar7 = 0;
			break;
		
		case 9:
			StringCopy(&Var2, "OUTFIT_P2_13", 16);
			iVar6 = 0;
			iVar7 = 0;
			break;
		
		case 10:
			StringCopy(&Var2, "OUTFIT_P2_14", 16);
			iVar6 = 0;
			iVar7 = 0;
			break;
		
		case 11:
			StringCopy(&Var2, "OUTFIT_P2_15", 16);
			iVar6 = 0;
			iVar7 = 0;
			break;
		
		case 12:
			StringCopy(&Var2, "OUTFIT_P2_16", 16);
			iVar6 = 0;
			iVar7 = 0;
			break;
		
		case 13:
			StringCopy(&Var2, "OUTFIT_P2_17", 16);
			iVar6 = 0;
			iVar7 = 0;
			break;
		
		case 14:
			StringCopy(&Var2, "OUTFIT_P2_18", 16);
			iVar6 = 0;
			iVar7 = 0;
			iVar1 = 10000;
			break;
		
		case 15:
			StringCopy(&Var2, "OUTFIT_P2_19", 16);
			iVar6 = 0;
			iVar7 = 0;
			break;
		
		case 16:
			StringCopy(&Var2, "OUTFIT_P2_20", 16);
			iVar6 = 0;
			iVar7 = 0;
			break;
		
		case 17:
			StringCopy(&Var2, "OUTFIT_P2_21", 16);
			iVar6 = 0;
			iVar7 = 0;
			iVar1 = 105;
			break;
		
		case 18:
			StringCopy(&Var2, "OUTFIT_P2_22", 16);
			iVar6 = 0;
			iVar7 = 0;
			iVar1 = 105;
			break;
		
		case 19:
			StringCopy(&Var2, "OUTFIT_P2_23", 16);
			iVar6 = 0;
			iVar7 = 0;
			iVar1 = 105;
			break;
		
		case 20:
			StringCopy(&Var2, "OUTFIT_P2_24", 16);
			iVar6 = 0;
			iVar7 = 0;
			break;
		
		case 21:
			StringCopy(&Var2, "OUTFIT_P2_25", 16);
			iVar6 = 0;
			iVar7 = 0;
			break;
		
		case 22:
			StringCopy(&Var2, "OUTFIT_P2_26", 16);
			iVar6 = 0;
			iVar7 = 0;
			break;
		
		case 23:
			StringCopy(&Var2, "OUTFIT_P2_27", 16);
			iVar6 = 0;
			iVar7 = 0;
			break;
		
		case 24:
			StringCopy(&Var2, "OUTFIT_P2_28", 16);
			iVar6 = 0;
			iVar7 = 0;
			iVar1 = 119;
			break;
		
		case 25:
			StringCopy(&Var2, "OUTFIT_P2_29", 16);
			iVar6 = 0;
			iVar7 = 0;
			iVar1 = 99;
			break;
		
		case 26:
			StringCopy(&Var2, "OUTFIT_P2_30", 16);
			iVar6 = 0;
			iVar7 = 0;
			iVar1 = 129;
			break;
		
		case 27:
			StringCopy(&Var2, "OUTFIT_P2_44", 16);
			iVar6 = 0;
			iVar7 = 0;
			iVar1 = 125;
			break;
		
		case 28:
			StringCopy(&Var2, "OUTFIT_P2_45", 16);
			iVar6 = 0;
			iVar7 = 0;
			iVar1 = 120;
			break;
		
		case 29:
			StringCopy(&Var2, "OUTFIT_P2_46", 16);
			iVar6 = 0;
			iVar7 = 0;
			iVar1 = 139;
			break;
		
		case 30:
			StringCopy(&Var2, "OUTFIT_P2_47", 16);
			iVar6 = 0;
			iVar7 = 0;
			iVar1 = 149;
			break;
		
		case 31:
			StringCopy(&Var2, "OUTFIT_P2_48", 16);
			iVar6 = 0;
			iVar7 = 0;
			iVar1 = 145;
			break;
		
		case 32:
			StringCopy(&Var2, "OUTFIT_P2_49", 16);
			iVar6 = 0;
			iVar7 = 0;
			iVar1 = 140;
			break;
		
		case 33:
			StringCopy(&Var2, "OUTFIT_P2_50", 16);
			iVar6 = 0;
			iVar7 = 0;
			iVar1 = 135;
			break;
		
		case 34:
			StringCopy(&Var2, "OUTFIT_P2_31", 16);
			iVar6 = 0;
			iVar7 = 0;
			iVar1 = 4900;
			break;
		
		case 35:
			StringCopy(&Var2, "OUTFIT_P2_32", 16);
			iVar6 = 0;
			iVar7 = 0;
			iVar1 = 5900;
			break;
		
		case 36:
			StringCopy(&Var2, "OUTFIT_P2_33", 16);
			iVar6 = 0;
			iVar7 = 0;
			iVar1 = 4500;
			break;
		
		case 37:
			StringCopy(&Var2, "OUTFIT_P2_34", 16);
			iVar6 = 0;
			iVar7 = 0;
			iVar1 = 4900;
			break;
		
		case 38:
			StringCopy(&Var2, "OUTFIT_P2_35", 16);
			iVar6 = 0;
			iVar7 = 0;
			iVar1 = 4500;
			break;
		
		case 39:
			StringCopy(&Var2, "OUTFIT_P2_36", 16);
			iVar6 = 0;
			iVar7 = 0;
			iVar1 = 5900;
			break;
		
		case 40:
			StringCopy(&Var2, "OUTFIT_P2_37", 16);
			iVar6 = 0;
			iVar7 = 0;
			iVar1 = 5500;
			break;
		
		case 41:
			StringCopy(&Var2, "OUTFIT_P2_38", 16);
			iVar6 = 0;
			iVar7 = 0;
			break;
		
		case 42:
			StringCopy(&Var2, "OUTFIT_P2_39", 16);
			iVar6 = 0;
			iVar7 = 0;
			break;
		
		case 43:
			StringCopy(&Var2, "OUTFIT_P2_40", 16);
			iVar6 = 0;
			iVar7 = 0;
			break;
		
		case 44:
			StringCopy(&Var2, "OUTFIT_P2_41", 16);
			iVar6 = 0;
			iVar7 = 0;
			break;
		
		case 45:
			StringCopy(&Var2, "OUTFIT_P2_42", 16);
			iVar6 = 0;
			iVar7 = 0;
			break;
		
		case 46:
			StringCopy(&Var2, "OUTFIT_P2_43", 16);
			iVar6 = 0;
			iVar7 = 0;
			break;
		
		case 47:
			StringCopy(&Var2, "OUTFIT_P2_12", 16);
			iVar6 = 0;
			iVar7 = 0;
			break;
		
		default:
			func_203(iVar10, iParam0, 48);
			return;
			break;
	}
	func_195(&(Global_69518[0 /*14*/]), iVar10, iParam0, &Var2, iVar6, iVar7, iVar1, iVar0, iVar8, iVar9, 0);
}

void func_288(int iParam0)//Position - 0x48C12
{
	int iVar0;
	int iVar1;
	struct<2> Var2;
	int iVar6;
	int iVar7;
	int iVar8;
	int iVar9;
	int iVar10;
	
	iVar0 = false;
	iVar1 = 10;
	iVar6 = 0;
	iVar7 = 0;
	iVar8 = -1;
	iVar9 = 2;
	iVar10 = 11;
	Global_69518[0 /*14*/].f_5 = 2;
	switch (iParam0)
	{
		case 0:
			StringCopy(&Var2, "NO_LABEL", 16);
			iVar6 = 0;
			iVar7 = 0;
			break;
		
		default:
			func_203(iVar10, iParam0, 1);
			return;
			break;
	}
	func_195(&(Global_69518[0 /*14*/]), iVar10, iParam0, &Var2, iVar6, iVar7, iVar1, iVar0, iVar8, iVar9, 0);
}

void func_289(int iParam0)//Position - 0x48C86
{
	int iVar0;
	int iVar1;
	struct<2> Var2;
	int iVar6;
	int iVar7;
	int iVar8;
	int iVar9;
	int iVar10;
	
	iVar0 = false;
	iVar1 = 10;
	iVar6 = 0;
	iVar7 = 0;
	iVar8 = -1;
	iVar9 = 2;
	iVar10 = 7;
	Global_69518[0 /*14*/].f_5 = 2;
	switch (iParam0)
	{
		case 0:
			StringCopy(&Var2, "NO_LABEL", 16);
			iVar6 = 0;
			iVar7 = 0;
			break;
		
		default:
			func_203(iVar10, iParam0, 1);
			return;
			break;
	}
	func_195(&(Global_69518[0 /*14*/]), iVar10, iParam0, &Var2, iVar6, iVar7, iVar1, iVar0, iVar8, iVar9, 0);
}

void func_290(int iParam0)//Position - 0x48CF9
{
	int iVar0;
	int iVar1;
	struct<2> Var2;
	int iVar6;
	int iVar7;
	int iVar8;
	int iVar9;
	int iVar10;
	
	iVar0 = false;
	iVar1 = 10;
	iVar6 = 0;
	iVar7 = 0;
	iVar8 = -1;
	iVar9 = 2;
	iVar10 = 1;
	Global_69518[0 /*14*/].f_5 = 2;
	switch (iParam0)
	{
		case 0:
			StringCopy(&Var2, "BERD_P2_0_0", 16);
			iVar6 = 0;
			iVar7 = 0;
			break;
		
		case 1:
			StringCopy(&Var2, "BERD_P2_1_0", 16);
			iVar6 = 1;
			iVar7 = 0;
			break;
		
		case 2:
			StringCopy(&Var2, "BERD_P2_2_0", 16);
			iVar6 = 2;
			iVar7 = 0;
			break;
		
		case 3:
			StringCopy(&Var2, "BERD_P2_3_0", 16);
			iVar6 = 3;
			iVar7 = 0;
			break;
		
		case 4:
			StringCopy(&Var2, "BERD_P2_4_0", 16);
			iVar6 = 4;
			iVar7 = 0;
			break;
		
		case 5:
			StringCopy(&Var2, "BERD_P2_5_0", 16);
			iVar6 = 5;
			iVar7 = 0;
			break;
		
		default:
			func_203(iVar10, iParam0, 6);
			return;
			break;
	}
	func_195(&(Global_69518[0 /*14*/]), iVar10, iParam0, &Var2, iVar6, iVar7, iVar1, iVar0, iVar8, iVar9, 0);
}

void func_291(int iParam0)//Position - 0x48DDF
{
	int iVar0;
	int iVar1;
	struct<2> Var2;
	int iVar6;
	int iVar7;
	int iVar8;
	int iVar9;
	int iVar10;
	
	iVar0 = false;
	iVar1 = 10;
	iVar6 = 0;
	iVar7 = 0;
	iVar8 = -1;
	iVar9 = 2;
	iVar10 = 10;
	Global_69518[0 /*14*/].f_5 = 2;
	switch (iParam0)
	{
		case 0:
			StringCopy(&Var2, "NO_LABEL", 16);
			iVar6 = 0;
			iVar7 = 0;
			break;
		
		case 1:
			StringCopy(&Var2, "NO_LABEL", 16);
			iVar6 = 1;
			iVar7 = 0;
			break;
		
		case 2:
			StringCopy(&Var2, "NO_LABEL", 16);
			iVar6 = 2;
			iVar7 = 0;
			break;
		
		case 3:
			StringCopy(&Var2, "NO_LABEL", 16);
			iVar6 = 3;
			iVar7 = 0;
			break;
		
		case 4:
			StringCopy(&Var2, "NO_LABEL", 16);
			iVar6 = 4;
			iVar7 = 0;
			break;
		
		case 5:
			StringCopy(&Var2, "NO_LABEL", 16);
			iVar6 = 5;
			iVar7 = 0;
			break;
		
		case 6:
			StringCopy(&Var2, "NO_LABEL", 16);
			iVar6 = 5;
			iVar7 = 1;
			break;
		
		case 7:
			StringCopy(&Var2, "NO_LABEL", 16);
			iVar6 = 5;
			iVar7 = 2;
			break;
		
		case 8:
			StringCopy(&Var2, "NO_LABEL", 16);
			iVar6 = 5;
			iVar7 = 3;
			break;
		
		case 9:
			StringCopy(&Var2, "NO_LABEL", 16);
			iVar6 = 5;
			iVar7 = 4;
			break;
		
		case 10:
			StringCopy(&Var2, "NO_LABEL", 16);
			iVar6 = 5;
			iVar7 = 5;
			break;
		
		case 11:
			StringCopy(&Var2, "NO_LABEL", 16);
			iVar6 = 6;
			iVar7 = 0;
			break;
		
		case 12:
			StringCopy(&Var2, "NO_LABEL", 16);
			iVar6 = 6;
			iVar7 = 1;
			break;
		
		case 13:
			StringCopy(&Var2, "NO_LABEL", 16);
			iVar6 = 6;
			iVar7 = 2;
			break;
		
		case 14:
			StringCopy(&Var2, "NO_LABEL", 16);
			iVar6 = 6;
			iVar7 = 3;
			break;
		
		case 15:
			StringCopy(&Var2, "NO_LABEL", 16);
			iVar6 = 6;
			iVar7 = 4;
			break;
		
		case 16:
			StringCopy(&Var2, "NO_LABEL", 16);
			iVar6 = 6;
			iVar7 = 5;
			break;
		
		case 17:
			StringCopy(&Var2, "NO_LABEL", 16);
			iVar6 = 6;
			iVar7 = 6;
			break;
		
		case 18:
			StringCopy(&Var2, "NO_LABEL", 16);
			iVar6 = 6;
			iVar7 = 7;
			break;
		
		case 19:
			StringCopy(&Var2, "NO_LABEL", 16);
			iVar6 = 6;
			iVar7 = 8;
			break;
		
		case 20:
			StringCopy(&Var2, "NO_LABEL", 16);
			iVar6 = 6;
			iVar7 = 9;
			break;
		
		case 21:
			StringCopy(&Var2, "NO_LABEL", 16);
			iVar6 = 7;
			iVar7 = 0;
			break;
		
		case 22:
			StringCopy(&Var2, "NO_LABEL", 16);
			iVar6 = 8;
			iVar7 = 0;
			break;
		
		case 23:
			StringCopy(&Var2, "NO_LABEL", 16);
			iVar6 = 8;
			iVar7 = 1;
			break;
		
		case 24:
			StringCopy(&Var2, "NO_LABEL", 16);
			iVar6 = 8;
			iVar7 = 2;
			break;
		
		case 25:
			StringCopy(&Var2, "NO_LABEL", 16);
			iVar6 = 8;
			iVar7 = 3;
			break;
		
		case 26:
			StringCopy(&Var2, "NO_LABEL", 16);
			iVar6 = 8;
			iVar7 = 4;
			break;
		
		case 27:
			StringCopy(&Var2, "NO_LABEL", 16);
			iVar6 = 8;
			iVar7 = 5;
			break;
		
		case 28:
			StringCopy(&Var2, "NO_LABEL", 16);
			iVar6 = 8;
			iVar7 = 6;
			break;
		
		case 29:
			StringCopy(&Var2, "NO_LABEL", 16);
			iVar6 = 9;
			iVar7 = 0;
			break;
		
		case 30:
			StringCopy(&Var2, "NO_LABEL", 16);
			iVar6 = 9;
			iVar7 = 1;
			break;
		
		case 31:
			StringCopy(&Var2, "NO_LABEL", 16);
			iVar6 = 9;
			iVar7 = 2;
			break;
		
		case 32:
			StringCopy(&Var2, "NO_LABEL", 16);
			iVar6 = 9;
			iVar7 = 3;
			break;
		
		default:
			func_203(iVar10, iParam0, 33);
			return;
			break;
	}
	func_195(&(Global_69518[0 /*14*/]), iVar10, iParam0, &Var2, iVar6, iVar7, iVar1, iVar0, iVar8, iVar9, 0);
}

void func_292(int iParam0)//Position - 0x49141
{
	int iVar0;
	int iVar1;
	struct<2> Var2;
	int iVar6;
	int iVar7;
	int iVar8;
	int iVar9;
	int iVar10;
	
	iVar0 = false;
	iVar1 = 10;
	iVar6 = 0;
	iVar7 = 0;
	iVar8 = -1;
	iVar9 = 2;
	iVar10 = 9;
	Global_69518[0 /*14*/].f_5 = 2;
	switch (iParam0)
	{
		case 0:
			StringCopy(&Var2, "NO_LABEL", 16);
			iVar6 = 0;
			iVar7 = 0;
			break;
		
		case 1:
			StringCopy(&Var2, "NO_LABEL", 16);
			iVar6 = 1;
			iVar7 = 0;
			break;
		
		case 2:
			StringCopy(&Var2, "NO_LABEL", 16);
			iVar6 = 1;
			iVar7 = 1;
			break;
		
		case 3:
			StringCopy(&Var2, "NO_LABEL", 16);
			iVar6 = 1;
			iVar7 = 2;
			break;
		
		case 4:
			StringCopy(&Var2, "NO_LABEL", 16);
			iVar6 = 1;
			iVar7 = 3;
			break;
		
		case 5:
			StringCopy(&Var2, "NO_LABEL", 16);
			iVar6 = 2;
			iVar7 = 0;
			iVar0 = true;
			break;
		
		case 6:
			StringCopy(&Var2, "NO_LABEL", 16);
			iVar6 = 3;
			iVar7 = 0;
			iVar0 = true;
			break;
		
		case 7:
			StringCopy(&Var2, "NO_LABEL", 16);
			iVar6 = 4;
			iVar7 = 0;
			break;
		
		case 8:
			StringCopy(&Var2, "NO_LABEL", 16);
			iVar6 = 5;
			iVar7 = 0;
			iVar0 = true;
			break;
		
		case 9:
			StringCopy(&Var2, "SPEC2_P0_08_0", 16);
			iVar6 = 6;
			iVar7 = 0;
			iVar1 = 125;
			break;
		
		case 10:
			StringCopy(&Var2, "SPEC2_P0_08_1", 16);
			iVar6 = 6;
			iVar7 = 1;
			iVar1 = 150;
			break;
		
		case 11:
			StringCopy(&Var2, "SPEC2_P0_08_2", 16);
			iVar6 = 6;
			iVar7 = 2;
			iVar1 = 175;
			break;
		
		case 12:
			StringCopy(&Var2, "SPEC2_P0_08_3", 16);
			iVar6 = 6;
			iVar7 = 3;
			iVar1 = 85;
			break;
		
		case 13:
			StringCopy(&Var2, "SPEC2_P0_08_4", 16);
			iVar6 = 6;
			iVar7 = 4;
			iVar1 = 150;
			break;
		
		case 14:
			StringCopy(&Var2, "SPEC2_P0_08_5", 16);
			iVar6 = 6;
			iVar7 = 5;
			iVar1 = 175;
			break;
		
		case 15:
			StringCopy(&Var2, "PROPS_P1_H8_0", 16);
			iVar6 = 7;
			iVar7 = 0;
			iVar1 = 270;
			break;
		
		case 16:
			StringCopy(&Var2, "PROPS_P1_H8_1", 16);
			iVar6 = 7;
			iVar7 = 1;
			iVar1 = 270;
			break;
		
		default:
			func_203(iVar10, iParam0, 17);
			return;
			break;
	}
	func_195(&(Global_69518[0 /*14*/]), iVar10, iParam0, &Var2, iVar6, iVar7, iVar1, iVar0, iVar8, iVar9, 0);
}

void func_293(int iParam0)//Position - 0x49351
{
	int iVar0;
	int iVar1;
	struct<2> Var2;
	int iVar6;
	int iVar7;
	int iVar8;
	int iVar9;
	int iVar10;
	
	iVar0 = false;
	iVar1 = 10;
	iVar6 = 0;
	iVar7 = 0;
	iVar8 = -1;
	iVar9 = 2;
	iVar10 = 8;
	Global_69518[0 /*14*/].f_5 = 2;
	switch (iParam0)
	{
		case 0:
			StringCopy(&Var2, "SPEC_P2_0_0", 16);
			iVar6 = 0;
			iVar7 = 0;
			break;
		
		case 1:
			StringCopy(&Var2, "SPEC_P2_0_1", 16);
			iVar6 = 0;
			iVar7 = 1;
			break;
		
		case 2:
			StringCopy(&Var2, "NO_LABEL", 16);
			iVar6 = 1;
			iVar7 = 0;
			iVar0 = true;
			break;
		
		case 3:
			StringCopy(&Var2, "NO_LABEL", 16);
			iVar6 = 2;
			iVar7 = 0;
			iVar0 = true;
			break;
		
		case 4:
			StringCopy(&Var2, "NO_LABEL", 16);
			iVar6 = 3;
			iVar7 = 0;
			iVar0 = true;
			break;
		
		case 5:
			StringCopy(&Var2, "NO_LABEL", 16);
			iVar6 = 4;
			iVar7 = 0;
			iVar0 = true;
			break;
		
		case 6:
			StringCopy(&Var2, "NO_LABEL", 16);
			iVar6 = 5;
			iVar7 = 0;
			iVar0 = true;
			break;
		
		case 7:
			StringCopy(&Var2, "NO_LABEL", 16);
			iVar6 = 6;
			iVar7 = 0;
			iVar0 = true;
			break;
		
		case 8:
			StringCopy(&Var2, "NO_LABEL", 16);
			iVar6 = 7;
			iVar7 = 0;
			iVar0 = true;
			break;
		
		case 9:
			StringCopy(&Var2, "NO_LABEL", 16);
			iVar6 = 8;
			iVar7 = 0;
			iVar0 = true;
			break;
		
		case 10:
			StringCopy(&Var2, "NO_LABEL", 16);
			iVar6 = 9;
			iVar7 = 0;
			iVar0 = true;
			break;
		
		case 11:
			StringCopy(&Var2, "NO_LABEL", 16);
			iVar6 = 10;
			iVar7 = 0;
			iVar0 = true;
			break;
		
		case 12:
			StringCopy(&Var2, "NO_LABEL", 16);
			iVar6 = 11;
			iVar7 = 0;
			break;
		
		case 13:
			StringCopy(&Var2, "NO_LABEL", 16);
			iVar6 = 12;
			iVar7 = 0;
			iVar0 = true;
			break;
		
		case 14:
			StringCopy(&Var2, "NO_LABEL", 16);
			iVar6 = 13;
			iVar7 = 0;
			iVar0 = true;
			break;
		
		case 15:
			StringCopy(&Var2, "NO_LABEL", 16);
			iVar6 = 14;
			iVar7 = 0;
			break;
		
		case 16:
			StringCopy(&Var2, "NO_LABEL", 16);
			iVar6 = 15;
			iVar7 = 0;
			iVar0 = true;
			break;
		
		case 17:
			StringCopy(&Var2, "NO_LABEL", 16);
			iVar6 = 16;
			iVar7 = 0;
			iVar0 = true;
			break;
		
		default:
			func_203(iVar10, iParam0, 18);
			return;
			break;
	}
	func_195(&(Global_69518[0 /*14*/]), iVar10, iParam0, &Var2, iVar6, iVar7, iVar1, iVar0, iVar8, iVar9, 0);
}

void func_294(int iParam0)//Position - 0x49580
{
	int iVar0;
	int iVar1;
	struct<2> Var2;
	int iVar6;
	int iVar7;
	int iVar8;
	int iVar9;
	int iVar10;
	
	iVar0 = false;
	iVar1 = 10;
	iVar6 = 0;
	iVar7 = 0;
	iVar8 = -1;
	iVar9 = 2;
	iVar10 = 5;
	Global_69518[0 /*14*/].f_5 = 2;
	switch (iParam0)
	{
		case 0:
			StringCopy(&Var2, "NO_LABEL", 16);
			iVar6 = 0;
			iVar7 = 0;
			break;
		
		case 1:
			StringCopy(&Var2, "NO_LABEL", 16);
			iVar6 = 0;
			iVar7 = 1;
			iVar0 = true;
			break;
		
		case 2:
			StringCopy(&Var2, "NO_LABEL", 16);
			iVar6 = 1;
			iVar7 = 0;
			iVar0 = true;
			break;
		
		case 3:
			StringCopy(&Var2, "NO_LABEL", 16);
			iVar6 = 2;
			iVar7 = 0;
			iVar0 = true;
			break;
		
		case 4:
			StringCopy(&Var2, "NO_LABEL", 16);
			iVar6 = 3;
			iVar7 = 0;
			iVar0 = true;
			break;
		
		case 5:
			StringCopy(&Var2, "NO_LABEL", 16);
			iVar6 = 4;
			iVar7 = 0;
			iVar0 = true;
			break;
		
		case 6:
			StringCopy(&Var2, "NO_LABEL", 16);
			iVar6 = 5;
			iVar7 = 0;
			iVar0 = true;
			break;
		
		default:
			func_203(iVar10, iParam0, 7);
			return;
			break;
	}
	func_195(&(Global_69518[0 /*14*/]), iVar10, iParam0, &Var2, iVar6, iVar7, iVar1, iVar0, iVar8, iVar9, 0);
}

void func_295(int iParam0)//Position - 0x4968F
{
	int iVar0;
	int iVar1;
	struct<2> Var2;
	int iVar6;
	int iVar7;
	int iVar8;
	int iVar9;
	int iVar10;
	
	iVar0 = false;
	iVar1 = 10;
	iVar6 = 0;
	iVar7 = 0;
	iVar8 = -1;
	iVar9 = 2;
	iVar10 = 6;
	Global_69518[0 /*14*/].f_5 = 2;
	switch (iParam0)
	{
		case 0:
			StringCopy(&Var2, "FEET_P2_0_0", 16);
			iVar6 = 0;
			iVar7 = 0;
			break;
		
		case 1:
			StringCopy(&Var2, "FEET_P2_0_1", 16);
			iVar6 = 0;
			iVar7 = 1;
			iVar1 = 22;
			break;
		
		case 2:
			StringCopy(&Var2, "FEET_P2_0_2", 16);
			iVar6 = 0;
			iVar7 = 2;
			iVar1 = 45;
			break;
		
		case 3:
			StringCopy(&Var2, "FEET_P2_0_3", 16);
			iVar6 = 0;
			iVar7 = 3;
			iVar1 = 65;
			break;
		
		case 4:
			StringCopy(&Var2, "FEET_P2_0_4", 16);
			iVar6 = 0;
			iVar7 = 4;
			iVar1 = 58;
			break;
		
		case 5:
			StringCopy(&Var2, "FEET_P2_0_5", 16);
			iVar6 = 0;
			iVar7 = 5;
			iVar1 = 72;
			break;
		
		case 6:
			StringCopy(&Var2, "FEET_P2_0_6", 16);
			iVar6 = 0;
			iVar7 = 6;
			iVar1 = 68;
			break;
		
		case 7:
			StringCopy(&Var2, "FEET_P2_0_7", 16);
			iVar6 = 0;
			iVar7 = 7;
			iVar1 = 60;
			break;
		
		case 8:
			StringCopy(&Var2, "NO_LABEL", 16);
			iVar6 = 1;
			iVar7 = 0;
			break;
		
		case 9:
			StringCopy(&Var2, "NO_LABEL", 16);
			iVar6 = 2;
			iVar7 = 0;
			iVar0 = true;
			break;
		
		case 10:
			StringCopy(&Var2, "NO_LABEL", 16);
			iVar6 = 3;
			iVar7 = 0;
			iVar0 = true;
			break;
		
		case 11:
			StringCopy(&Var2, "NO_LABEL", 16);
			iVar6 = 4;
			iVar7 = 0;
			iVar0 = true;
			break;
		
		case 12:
			StringCopy(&Var2, "FEET_P2_5_0", 16);
			iVar6 = 5;
			iVar7 = 0;
			break;
		
		case 13:
			StringCopy(&Var2, "NO_LABEL", 16);
			iVar6 = 6;
			iVar7 = 0;
			iVar0 = true;
			break;
		
		case 14:
			StringCopy(&Var2, "NO_LABEL", 16);
			iVar6 = 7;
			iVar7 = 0;
			iVar0 = true;
			break;
		
		case 15:
			StringCopy(&Var2, "FEET_P2_8_0", 16);
			iVar6 = 8;
			iVar7 = 0;
			iVar0 = true;
			break;
		
		case 16:
			StringCopy(&Var2, "FEET_P2_9_0", 16);
			iVar6 = 9;
			iVar7 = 0;
			break;
		
		case 17:
			StringCopy(&Var2, "FEET_P2_9_1", 16);
			iVar6 = 9;
			iVar7 = 1;
			iVar1 = 680;
			break;
		
		case 18:
			StringCopy(&Var2, "FEET_P2_9_2", 16);
			iVar6 = 9;
			iVar7 = 2;
			iVar1 = 650;
			break;
		
		case 19:
			StringCopy(&Var2, "FEET_P2_9_3", 16);
			iVar6 = 9;
			iVar7 = 3;
			iVar1 = 670;
			break;
		
		case 20:
			StringCopy(&Var2, "FEET_P2_9_4", 16);
			iVar6 = 9;
			iVar7 = 4;
			iVar1 = 700;
			break;
		
		case 21:
			StringCopy(&Var2, "FEET_P2_9_5", 16);
			iVar6 = 9;
			iVar7 = 5;
			iVar1 = 680;
			break;
		
		case 22:
			StringCopy(&Var2, "FEET_P2_9_6", 16);
			iVar6 = 9;
			iVar7 = 6;
			iVar1 = 720;
			break;
		
		case 23:
			StringCopy(&Var2, "FEET_P2_9_7", 16);
			iVar6 = 9;
			iVar7 = 7;
			iVar1 = 740;
			break;
		
		case 24:
			StringCopy(&Var2, "FEET_P2_9_8", 16);
			iVar6 = 9;
			iVar7 = 8;
			iVar1 = 760;
			break;
		
		case 25:
			StringCopy(&Var2, "FEET_P2_9_9", 16);
			iVar6 = 9;
			iVar7 = 9;
			iVar1 = 780;
			break;
		
		case 26:
			StringCopy(&Var2, "FEET_P2_9_10", 16);
			iVar6 = 9;
			iVar7 = 10;
			iVar1 = 750;
			break;
		
		case 27:
			StringCopy(&Var2, "FEET_P2_9_11", 16);
			iVar6 = 9;
			iVar7 = 11;
			iVar1 = 700;
			break;
		
		case 28:
			StringCopy(&Var2, "FEET_P2_10_0", 16);
			iVar6 = 10;
			iVar7 = 0;
			break;
		
		case 29:
			StringCopy(&Var2, "NO_LABEL", 16);
			iVar6 = 11;
			iVar7 = 0;
			iVar0 = true;
			break;
		
		case 30:
			StringCopy(&Var2, "NO_LABEL", 16);
			iVar6 = 12;
			iVar7 = 0;
			iVar0 = true;
			break;
		
		case 31:
			StringCopy(&Var2, "NO_LABEL", 16);
			iVar6 = 13;
			iVar7 = 0;
			iVar0 = true;
			break;
		
		case 32:
			StringCopy(&Var2, "NO_LABEL", 16);
			iVar6 = 14;
			iVar7 = 0;
			iVar0 = true;
			break;
		
		case 33:
			StringCopy(&Var2, "NO_LABEL", 16);
			iVar6 = 15;
			iVar7 = 0;
			iVar0 = true;
			break;
		
		case 34:
			StringCopy(&Var2, "NO_LABEL", 16);
			iVar6 = 16;
			iVar7 = 0;
			break;
		
		case 35:
			StringCopy(&Var2, "NO_LABEL", 16);
			iVar6 = 17;
			iVar7 = 0;
			break;
		
		case 36:
			StringCopy(&Var2, "FEET_P2_18_0", 16);
			iVar6 = 18;
			iVar7 = 0;
			iVar1 = 790;
			break;
		
		case 37:
			StringCopy(&Var2, "FEET_P2_18_1", 16);
			iVar6 = 18;
			iVar7 = 1;
			iVar1 = 750;
			break;
		
		case 38:
			StringCopy(&Var2, "FEET_P2_18_2", 16);
			iVar6 = 18;
			iVar7 = 2;
			iVar1 = 860;
			break;
		
		case 39:
			StringCopy(&Var2, "FEET_P2_18_3", 16);
			iVar6 = 18;
			iVar7 = 3;
			iVar1 = 750;
			break;
		
		case 40:
			StringCopy(&Var2, "FEET_P2_18_4", 16);
			iVar6 = 18;
			iVar7 = 4;
			iVar1 = 790;
			break;
		
		case 41:
			StringCopy(&Var2, "FEET_P2_18_5", 16);
			iVar6 = 18;
			iVar7 = 5;
			iVar1 = 840;
			break;
		
		case 42:
			StringCopy(&Var2, "FEET_P2_18_6", 16);
			iVar6 = 18;
			iVar7 = 6;
			iVar1 = 820;
			break;
		
		case 43:
			StringCopy(&Var2, "FEET_P2_18_7", 16);
			iVar6 = 18;
			iVar7 = 7;
			iVar1 = 800;
			break;
		
		case 44:
			StringCopy(&Var2, "FEET_P2_18_8", 16);
			iVar6 = 18;
			iVar7 = 8;
			iVar1 = 850;
			break;
		
		case 45:
			StringCopy(&Var2, "FEET_P2_18_9", 16);
			iVar6 = 18;
			iVar7 = 9;
			iVar1 = 870;
			break;
		
		case 46:
			StringCopy(&Var2, "FEET_P2_18_10", 16);
			iVar6 = 18;
			iVar7 = 10;
			iVar1 = 720;
			break;
		
		case 47:
			StringCopy(&Var2, "FEET_P2_18_11", 16);
			iVar6 = 18;
			iVar7 = 11;
			iVar1 = 740;
			break;
		
		case 48:
			StringCopy(&Var2, "FEET_P2_18_12", 16);
			iVar6 = 18;
			iVar7 = 12;
			iVar1 = 800;
			break;
		
		case 49:
			StringCopy(&Var2, "FEET_P2_18_13", 16);
			iVar6 = 18;
			iVar7 = 13;
			iVar1 = 750;
			break;
		
		case 50:
			StringCopy(&Var2, "FEET_P2_18_14", 16);
			iVar6 = 18;
			iVar7 = 14;
			iVar1 = 770;
			break;
		
		case 51:
			StringCopy(&Var2, "FEET_P2_18_15", 16);
			iVar6 = 18;
			iVar7 = 15;
			iVar1 = 860;
			break;
		
		case 52:
			StringCopy(&Var2, "FEET_P2_19_0", 16);
			iVar6 = 19;
			iVar7 = 0;
			iVar1 = 850;
			break;
		
		case 53:
			StringCopy(&Var2, "FEET_P2_19_1", 16);
			iVar6 = 19;
			iVar7 = 1;
			iVar1 = 800;
			break;
		
		case 54:
			StringCopy(&Var2, "FEET_P2_19_2", 16);
			iVar6 = 19;
			iVar7 = 2;
			iVar1 = 780;
			break;
		
		case 55:
			StringCopy(&Var2, "FEET_P2_19_3", 16);
			iVar6 = 19;
			iVar7 = 3;
			iVar1 = 890;
			break;
		
		case 56:
			StringCopy(&Var2, "FEET_P2_19_4", 16);
			iVar6 = 19;
			iVar7 = 4;
			iVar1 = 820;
			break;
		
		case 57:
			StringCopy(&Var2, "FEET_P2_19_5", 16);
			iVar6 = 19;
			iVar7 = 5;
			iVar1 = 840;
			break;
		
		case 58:
			StringCopy(&Var2, "FEET_P2_19_6", 16);
			iVar6 = 19;
			iVar7 = 6;
			iVar1 = 870;
			break;
		
		case 59:
			StringCopy(&Var2, "FEET_P2_19_7", 16);
			iVar6 = 19;
			iVar7 = 7;
			iVar1 = 930;
			break;
		
		case 60:
			StringCopy(&Var2, "FEET_P2_19_8", 16);
			iVar6 = 19;
			iVar7 = 8;
			iVar1 = 880;
			break;
		
		case 61:
			StringCopy(&Var2, "FEET_P2_19_9", 16);
			iVar6 = 19;
			iVar7 = 9;
			iVar1 = 900;
			break;
		
		case 62:
			StringCopy(&Var2, "FEET_P2_19_10", 16);
			iVar6 = 19;
			iVar7 = 10;
			iVar1 = 920;
			break;
		
		case 63:
			StringCopy(&Var2, "FEET_P2_19_11", 16);
			iVar6 = 19;
			iVar7 = 11;
			iVar1 = 970;
			break;
		
		case 64:
			StringCopy(&Var2, "FEET_P2_19_12", 16);
			iVar6 = 19;
			iVar7 = 12;
			iVar1 = 990;
			break;
		
		case 65:
			StringCopy(&Var2, "FEET_P2_19_13", 16);
			iVar6 = 19;
			iVar7 = 13;
			iVar1 = 960;
			break;
		
		case 66:
			StringCopy(&Var2, "FEET_P2_19_14", 16);
			iVar6 = 19;
			iVar7 = 14;
			iVar1 = 980;
			break;
		
		case 67:
			StringCopy(&Var2, "FEET_P2_19_15", 16);
			iVar6 = 19;
			iVar7 = 15;
			iVar1 = 950;
			break;
		
		case 68:
			StringCopy(&Var2, "FEET_P2_20_0", 16);
			iVar6 = 20;
			iVar7 = 0;
			iVar1 = 110;
			break;
		
		case 69:
			StringCopy(&Var2, "FEET_P2_20_1", 16);
			iVar6 = 20;
			iVar7 = 1;
			iVar1 = 115;
			break;
		
		case 70:
			StringCopy(&Var2, "FEET_P2_20_2", 16);
			iVar6 = 20;
			iVar7 = 2;
			iVar1 = 120;
			break;
		
		case 71:
			StringCopy(&Var2, "FEET_P2_20_3", 16);
			iVar6 = 20;
			iVar7 = 3;
			iVar1 = 110;
			break;
		
		case 72:
			StringCopy(&Var2, "FEET_P2_20_4", 16);
			iVar6 = 20;
			iVar7 = 4;
			iVar1 = 125;
			break;
		
		case 73:
			StringCopy(&Var2, "FEET_P2_20_5", 16);
			iVar6 = 20;
			iVar7 = 5;
			iVar1 = 128;
			break;
		
		case 74:
			StringCopy(&Var2, "FEET_P2_20_6", 16);
			iVar6 = 20;
			iVar7 = 6;
			iVar1 = 135;
			break;
		
		case 75:
			StringCopy(&Var2, "FEET_P2_20_7", 16);
			iVar6 = 20;
			iVar7 = 7;
			iVar1 = 130;
			break;
		
		case 76:
			StringCopy(&Var2, "FEET_P2_20_8", 16);
			iVar6 = 20;
			iVar7 = 8;
			iVar1 = 145;
			break;
		
		case 77:
			StringCopy(&Var2, "FEET_P2_20_9", 16);
			iVar6 = 20;
			iVar7 = 9;
			iVar1 = 110;
			break;
		
		case 78:
			StringCopy(&Var2, "FEET_P2_20_10", 16);
			iVar6 = 20;
			iVar7 = 10;
			iVar1 = 120;
			break;
		
		case 79:
			StringCopy(&Var2, "FEET_P2_20_11", 16);
			iVar6 = 20;
			iVar7 = 11;
			iVar1 = 150;
			break;
		
		case 80:
			StringCopy(&Var2, "FEET_P2_20_12", 16);
			iVar6 = 20;
			iVar7 = 12;
			iVar1 = 125;
			break;
		
		case 81:
			StringCopy(&Var2, "FEET_P2_20_13", 16);
			iVar6 = 20;
			iVar7 = 13;
			iVar1 = 120;
			break;
		
		case 82:
			StringCopy(&Var2, "FEET_P2_20_14", 16);
			iVar6 = 20;
			iVar7 = 14;
			iVar1 = 130;
			break;
		
		case 83:
			StringCopy(&Var2, "FEET_P2_20_15", 16);
			iVar6 = 20;
			iVar7 = 15;
			iVar1 = 110;
			break;
		
		default:
			func_203(iVar10, iParam0, 84);
			return;
			break;
	}
	func_195(&(Global_69518[0 /*14*/]), iVar10, iParam0, &Var2, iVar6, iVar7, iVar1, iVar0, iVar8, iVar9, 0);
}

void func_296(int iParam0)//Position - 0x4A02D
{
	int iVar0;
	int iVar1;
	struct<2> Var2;
	int iVar6;
	int iVar7;
	int iVar8;
	int iVar9;
	int iVar10;
	
	iVar0 = false;
	iVar1 = 10;
	iVar6 = 0;
	iVar7 = 0;
	iVar8 = -1;
	iVar9 = 2;
	iVar10 = 4;
	Global_69518[0 /*14*/].f_5 = 2;
	switch (iParam0)
	{
		case 0:
			StringCopy(&Var2, "LEGS_P2_0_0", 16);
			iVar6 = 0;
			iVar7 = 0;
			break;
		
		case 1:
			StringCopy(&Var2, "LEGS_P2_0_1", 16);
			iVar6 = 0;
			iVar7 = 1;
			iVar1 = 95;
			break;
		
		case 2:
			StringCopy(&Var2, "LEGS_P2_0_2", 16);
			iVar6 = 0;
			iVar7 = 2;
			iVar1 = 129;
			break;
		
		case 3:
			StringCopy(&Var2, "LEGS_P2_0_3", 16);
			iVar6 = 0;
			iVar7 = 3;
			iVar1 = 115;
			break;
		
		case 4:
			StringCopy(&Var2, "NO_LABEL", 16);
			iVar6 = 1;
			iVar7 = 0;
			iVar0 = true;
			break;
		
		case 5:
			StringCopy(&Var2, "NO_LABEL", 16);
			iVar6 = 2;
			iVar7 = 0;
			iVar0 = true;
			break;
		
		case 6:
			StringCopy(&Var2, "NO_LABEL", 16);
			iVar6 = 3;
			iVar7 = 0;
			iVar0 = true;
			break;
		
		case 7:
			StringCopy(&Var2, "NO_LABEL", 16);
			iVar6 = 4;
			iVar7 = 0;
			iVar0 = true;
			break;
		
		case 8:
			StringCopy(&Var2, "NO_LABEL", 16);
			iVar6 = 5;
			iVar7 = 0;
			iVar0 = true;
			break;
		
		case 9:
			StringCopy(&Var2, "NO_LABEL", 16);
			iVar6 = 5;
			iVar7 = 1;
			iVar0 = true;
			break;
		
		case 10:
			StringCopy(&Var2, "NO_LABEL", 16);
			iVar6 = 5;
			iVar7 = 2;
			iVar0 = true;
			break;
		
		case 11:
			StringCopy(&Var2, "NO_LABEL", 16);
			iVar6 = 5;
			iVar7 = 3;
			iVar0 = true;
			break;
		
		case 12:
			StringCopy(&Var2, "NO_LABEL", 16);
			iVar6 = 5;
			iVar7 = 4;
			iVar0 = true;
			break;
		
		case 13:
			StringCopy(&Var2, "NO_LABEL", 16);
			iVar6 = 6;
			iVar7 = 0;
			iVar0 = true;
			break;
		
		case 14:
			StringCopy(&Var2, "NO_LABEL", 16);
			iVar6 = 7;
			iVar7 = 0;
			iVar0 = true;
			break;
		
		case 15:
			StringCopy(&Var2, "NO_LABEL", 16);
			iVar6 = 8;
			iVar7 = 0;
			iVar0 = true;
			break;
		
		case 16:
			StringCopy(&Var2, "NO_LABEL", 16);
			iVar6 = 9;
			iVar7 = 0;
			iVar0 = true;
			break;
		
		case 17:
			StringCopy(&Var2, "NO_LABEL", 16);
			iVar6 = 10;
			iVar7 = 0;
			iVar0 = true;
			break;
		
		case 18:
			StringCopy(&Var2, "LEGS_P2_11_0", 16);
			iVar6 = 11;
			iVar7 = 0;
			break;
		
		case 19:
			StringCopy(&Var2, "LEGS_P2_11_1", 16);
			iVar6 = 11;
			iVar7 = 1;
			iVar1 = 750;
			break;
		
		case 20:
			StringCopy(&Var2, "LEGS_P2_11_2", 16);
			iVar6 = 11;
			iVar7 = 2;
			iVar1 = 650;
			break;
		
		case 21:
			StringCopy(&Var2, "LEGS_P2_11_3", 16);
			iVar6 = 11;
			iVar7 = 3;
			iVar1 = 850;
			break;
		
		case 22:
			StringCopy(&Var2, "LEGS_P2_11_4", 16);
			iVar6 = 11;
			iVar7 = 4;
			iVar1 = 850;
			break;
		
		case 23:
			StringCopy(&Var2, "LEGS_P2_11_5", 16);
			iVar6 = 11;
			iVar7 = 5;
			iVar1 = 750;
			break;
		
		case 24:
			StringCopy(&Var2, "LEGS_P2_11_6", 16);
			iVar6 = 11;
			iVar7 = 6;
			iVar1 = 690;
			break;
		
		case 25:
			StringCopy(&Var2, "LEGS_P2_11_7", 16);
			iVar6 = 11;
			iVar7 = 7;
			iVar1 = 820;
			break;
		
		case 26:
			StringCopy(&Var2, "LEGS_P2_11_8", 16);
			iVar6 = 11;
			iVar7 = 8;
			iVar1 = 650;
			break;
		
		case 27:
			StringCopy(&Var2, "LEGS_P2_11_9", 16);
			iVar6 = 11;
			iVar7 = 9;
			iVar1 = 690;
			break;
		
		case 28:
			StringCopy(&Var2, "LEGS_P2_11_10", 16);
			iVar6 = 11;
			iVar7 = 10;
			iVar1 = 690;
			break;
		
		case 29:
			StringCopy(&Var2, "LEGS_P2_11_11", 16);
			iVar6 = 11;
			iVar7 = 11;
			iVar1 = 820;
			break;
		
		case 30:
			StringCopy(&Var2, "NO_LABEL", 16);
			iVar6 = 12;
			iVar7 = 0;
			iVar0 = true;
			break;
		
		case 31:
			StringCopy(&Var2, "NO_LABEL", 16);
			iVar6 = 13;
			iVar7 = 0;
			iVar0 = true;
			break;
		
		case 32:
			StringCopy(&Var2, "LEGS_P2_14_0", 16);
			iVar6 = 14;
			iVar7 = 0;
			break;
		
		case 33:
			StringCopy(&Var2, "LEGS_P2_15_0", 16);
			iVar6 = 15;
			iVar7 = 0;
			break;
		
		case 34:
			StringCopy(&Var2, "LEGS_P2_16_0", 16);
			iVar6 = 16;
			iVar7 = 0;
			iVar0 = true;
			break;
		
		case 35:
			StringCopy(&Var2, "LEGS_P2_17_0", 16);
			iVar6 = 17;
			iVar7 = 0;
			iVar1 = 58;
			break;
		
		case 36:
			StringCopy(&Var2, "LEGS_P2_17_1", 16);
			iVar6 = 17;
			iVar7 = 1;
			iVar1 = 68;
			break;
		
		case 37:
			StringCopy(&Var2, "LEGS_P2_17_2", 16);
			iVar6 = 17;
			iVar7 = 2;
			iVar1 = 65;
			break;
		
		case 38:
			StringCopy(&Var2, "LEGS_P2_17_3", 16);
			iVar6 = 17;
			iVar7 = 3;
			iVar1 = 60;
			break;
		
		case 39:
			StringCopy(&Var2, "LEGS_P2_17_4", 16);
			iVar6 = 17;
			iVar7 = 4;
			iVar1 = 65;
			break;
		
		case 40:
			StringCopy(&Var2, "LEGS_P2_17_5", 16);
			iVar6 = 17;
			iVar7 = 5;
			iVar1 = 63;
			break;
		
		case 41:
			StringCopy(&Var2, "LEGS_P2_17_6", 16);
			iVar6 = 17;
			iVar7 = 6;
			iVar1 = 60;
			break;
		
		case 42:
			StringCopy(&Var2, "LEGS_P2_17_7", 16);
			iVar6 = 17;
			iVar7 = 7;
			iVar1 = 58;
			break;
		
		case 43:
			StringCopy(&Var2, "LEGS_P2_18_0", 16);
			iVar6 = 18;
			iVar7 = 0;
			break;
		
		case 44:
			StringCopy(&Var2, "LEGS_P2_18_1", 16);
			iVar6 = 18;
			iVar7 = 1;
			break;
		
		case 45:
			StringCopy(&Var2, "LEGS_P2_18_2", 16);
			iVar6 = 18;
			iVar7 = 2;
			iVar1 = 99;
			break;
		
		case 46:
			StringCopy(&Var2, "LEGS_P2_18_3", 16);
			iVar6 = 18;
			iVar7 = 3;
			iVar1 = 105;
			break;
		
		case 47:
			StringCopy(&Var2, "LEGS_P2_18_4", 16);
			iVar6 = 18;
			iVar7 = 4;
			iVar1 = 110;
			break;
		
		case 48:
			StringCopy(&Var2, "LEGS_P2_18_5", 16);
			iVar6 = 18;
			iVar7 = 5;
			iVar1 = 110;
			break;
		
		case 49:
			StringCopy(&Var2, "LEGS_P2_18_6", 16);
			iVar6 = 18;
			iVar7 = 6;
			iVar1 = 99;
			break;
		
		case 50:
			StringCopy(&Var2, "LEGS_P2_18_7", 16);
			iVar6 = 18;
			iVar7 = 7;
			iVar1 = 110;
			break;
		
		case 51:
			StringCopy(&Var2, "LEGS_P2_18_8", 16);
			iVar6 = 18;
			iVar7 = 8;
			iVar1 = 110;
			break;
		
		case 52:
			StringCopy(&Var2, "LEGS_P2_18_9", 16);
			iVar6 = 18;
			iVar7 = 9;
			iVar1 = 105;
			break;
		
		case 53:
			StringCopy(&Var2, "LEGS_P2_18_10", 16);
			iVar6 = 18;
			iVar7 = 10;
			iVar1 = 105;
			break;
		
		case 54:
			StringCopy(&Var2, "LEGS_P2_19_0", 16);
			iVar6 = 19;
			iVar7 = 0;
			iVar1 = 15;
			break;
		
		case 55:
			StringCopy(&Var2, "LEGS_P2_19_1", 16);
			iVar6 = 19;
			iVar7 = 1;
			iVar1 = 15;
			break;
		
		case 56:
			StringCopy(&Var2, "LEGS_P2_19_2", 16);
			iVar6 = 19;
			iVar7 = 2;
			iVar1 = 15;
			break;
		
		case 57:
			StringCopy(&Var2, "LEGS_P2_19_3", 16);
			iVar6 = 19;
			iVar7 = 3;
			iVar1 = 15;
			break;
		
		case 58:
			StringCopy(&Var2, "LEGS_P2_19_4", 16);
			iVar6 = 19;
			iVar7 = 4;
			iVar1 = 15;
			break;
		
		case 59:
			StringCopy(&Var2, "LEGS_P2_19_5", 16);
			iVar6 = 19;
			iVar7 = 5;
			iVar1 = 15;
			break;
		
		case 60:
			StringCopy(&Var2, "LEGS_P2_19_6", 16);
			iVar6 = 19;
			iVar7 = 6;
			iVar1 = 15;
			break;
		
		case 61:
			StringCopy(&Var2, "LEGS_P2_19_7", 16);
			iVar6 = 19;
			iVar7 = 7;
			iVar1 = 15;
			break;
		
		case 62:
			StringCopy(&Var2, "LEGS_P2_20_0", 16);
			iVar6 = 20;
			iVar7 = 0;
			iVar1 = 600;
			break;
		
		case 63:
			StringCopy(&Var2, "LEGS_P2_20_1", 16);
			iVar6 = 20;
			iVar7 = 1;
			iVar1 = 600;
			break;
		
		case 64:
			StringCopy(&Var2, "LEGS_P2_20_2", 16);
			iVar6 = 20;
			iVar7 = 2;
			iVar1 = 600;
			break;
		
		case 65:
			StringCopy(&Var2, "LEGS_P2_20_3", 16);
			iVar6 = 20;
			iVar7 = 3;
			iVar1 = 600;
			break;
		
		case 66:
			StringCopy(&Var2, "LEGS_P2_20_4", 16);
			iVar6 = 20;
			iVar7 = 4;
			iVar1 = 600;
			break;
		
		case 67:
			StringCopy(&Var2, "LEGS_P2_20_5", 16);
			iVar6 = 20;
			iVar7 = 5;
			iVar1 = 600;
			break;
		
		case 68:
			StringCopy(&Var2, "LEGS_P2_20_6", 16);
			iVar6 = 20;
			iVar7 = 6;
			iVar1 = 600;
			break;
		
		case 69:
			StringCopy(&Var2, "LEGS_P2_20_7", 16);
			iVar6 = 20;
			iVar7 = 7;
			iVar1 = 600;
			break;
		
		case 70:
			StringCopy(&Var2, "LEGS_P2_20_8", 16);
			iVar6 = 20;
			iVar7 = 8;
			iVar1 = 600;
			break;
		
		case 71:
			StringCopy(&Var2, "LEGS_P2_21_0", 16);
			iVar6 = 21;
			iVar7 = 0;
			iVar1 = 80;
			break;
		
		case 72:
			StringCopy(&Var2, "LEGS_P2_21_1", 16);
			iVar6 = 21;
			iVar7 = 1;
			iVar1 = 80;
			break;
		
		case 73:
			StringCopy(&Var2, "LEGS_P2_21_2", 16);
			iVar6 = 21;
			iVar7 = 2;
			iVar1 = 80;
			break;
		
		case 74:
			StringCopy(&Var2, "LEGS_P2_21_3", 16);
			iVar6 = 21;
			iVar7 = 3;
			iVar1 = 80;
			break;
		
		case 75:
			StringCopy(&Var2, "LEGS_P2_21_4", 16);
			iVar6 = 21;
			iVar7 = 4;
			iVar1 = 80;
			break;
		
		case 76:
			StringCopy(&Var2, "LEGS_P2_21_5", 16);
			iVar6 = 21;
			iVar7 = 5;
			iVar1 = 80;
			break;
		
		case 77:
			StringCopy(&Var2, "LEGS_P2_21_6", 16);
			iVar6 = 21;
			iVar7 = 6;
			iVar1 = 80;
			break;
		
		case 78:
			StringCopy(&Var2, "LEGS_P2_21_7", 16);
			iVar6 = 21;
			iVar7 = 7;
			iVar1 = 80;
			break;
		
		case 79:
			StringCopy(&Var2, "LEGS_P2_21_8", 16);
			iVar6 = 21;
			iVar7 = 8;
			iVar1 = 80;
			break;
		
		case 80:
			StringCopy(&Var2, "LEGS_P2_21_9", 16);
			iVar6 = 21;
			iVar7 = 9;
			iVar1 = 80;
			break;
		
		case 81:
			StringCopy(&Var2, "LEGS_P2_22_0", 16);
			iVar6 = 22;
			iVar7 = 0;
			break;
		
		case 82:
			StringCopy(&Var2, "LEGS_P2_22_1", 16);
			iVar6 = 22;
			iVar7 = 1;
			iVar1 = 12;
			break;
		
		case 83:
			StringCopy(&Var2, "LEGS_P2_22_2", 16);
			iVar6 = 22;
			iVar7 = 2;
			iVar1 = 12;
			break;
		
		case 84:
			StringCopy(&Var2, "LEGS_P2_22_3", 16);
			iVar6 = 22;
			iVar7 = 3;
			iVar1 = 22;
			break;
		
		case 85:
			StringCopy(&Var2, "LEGS_P2_22_4", 16);
			iVar6 = 22;
			iVar7 = 4;
			iVar1 = 18;
			break;
		
		case 86:
			StringCopy(&Var2, "LEGS_P2_22_5", 16);
			iVar6 = 22;
			iVar7 = 5;
			iVar1 = 20;
			break;
		
		case 87:
			StringCopy(&Var2, "LEGS_P2_22_6", 16);
			iVar6 = 22;
			iVar7 = 6;
			iVar1 = 30;
			break;
		
		case 88:
			StringCopy(&Var2, "LEGS_P2_22_7", 16);
			iVar6 = 22;
			iVar7 = 7;
			iVar1 = 30;
			break;
		
		case 89:
			StringCopy(&Var2, "LEGS_P2_22_8", 16);
			iVar6 = 22;
			iVar7 = 8;
			iVar1 = 30;
			break;
		
		case 90:
			StringCopy(&Var2, "LEGS_P2_22_9", 16);
			iVar6 = 22;
			iVar7 = 9;
			iVar1 = 30;
			break;
		
		case 91:
			StringCopy(&Var2, "LEGS_P2_23_0", 16);
			iVar6 = 23;
			iVar7 = 0;
			break;
		
		case 92:
			StringCopy(&Var2, "LEGS_P2_24_0", 16);
			iVar6 = 24;
			iVar7 = 0;
			break;
		
		case 93:
			StringCopy(&Var2, "NO_LABEL", 16);
			iVar6 = 25;
			iVar7 = 0;
			iVar0 = true;
			break;
		
		case 94:
			StringCopy(&Var2, "NO_LABEL", 16);
			iVar6 = 26;
			iVar7 = 0;
			break;
		
		case 95:
			StringCopy(&Var2, "NO_LABEL", 16);
			iVar6 = 26;
			iVar7 = 1;
			break;
		
		case 96:
			StringCopy(&Var2, "NO_LABEL", 16);
			iVar6 = 26;
			iVar7 = 2;
			break;
		
		case 97:
			StringCopy(&Var2, "NO_LABEL", 16);
			iVar6 = 26;
			iVar7 = 3;
			break;
		
		case 98:
			StringCopy(&Var2, "NO_LABEL", 16);
			iVar6 = 26;
			iVar7 = 4;
			break;
		
		case 99:
			StringCopy(&Var2, "NO_LABEL", 16);
			iVar6 = 26;
			iVar7 = 5;
			break;
		
		case 100:
			StringCopy(&Var2, "NO_LABEL", 16);
			iVar6 = 26;
			iVar7 = 6;
			break;
		
		case 101:
			StringCopy(&Var2, "NO_LABEL", 16);
			iVar6 = 26;
			iVar7 = 7;
			break;
		
		case 102:
			StringCopy(&Var2, "NO_LABEL", 16);
			iVar6 = 26;
			iVar7 = 8;
			break;
		
		case 103:
			StringCopy(&Var2, "NO_LABEL", 16);
			iVar6 = 26;
			iVar7 = 9;
			break;
		
		default:
			func_203(iVar10, iParam0, 104);
			return;
			break;
	}
	func_195(&(Global_69518[0 /*14*/]), iVar10, iParam0, &Var2, iVar6, iVar7, iVar1, iVar0, iVar8, iVar9, 0);
}

void func_297(int iParam0)//Position - 0x4AB9F
{
	if (iParam0 < 136)
	{
		func_299(iParam0);
	}
	else
	{
		func_298(iParam0);
	}
	if (Global_69518[0 /*14*/].f_2 == -1)
	{
		func_203(3, iParam0, 242);
	}
}

void func_298(int iParam0)//Position - 0x4ABD3
{
	int iVar0;
	int iVar1;
	struct<2> Var2;
	int iVar6;
	int iVar7;
	int iVar8;
	int iVar9;
	int iVar10;
	
	iVar0 = false;
	iVar1 = 10;
	iVar6 = 0;
	iVar7 = 0;
	iVar8 = -1;
	iVar9 = 2;
	iVar10 = 3;
	Global_69518[0 /*14*/].f_5 = 2;
	switch (iParam0)
	{
		case 136:
			StringCopy(&Var2, "TORSO_P2_21_0", 16);
			iVar6 = 21;
			iVar7 = 0;
			iVar1 = 32;
			break;
		
		case 137:
			StringCopy(&Var2, "TORSO_P2_21_1", 16);
			iVar6 = 21;
			iVar7 = 1;
			iVar1 = 39;
			break;
		
		case 138:
			StringCopy(&Var2, "TORSO_P2_21_2", 16);
			iVar6 = 21;
			iVar7 = 2;
			iVar1 = 40;
			break;
		
		case 139:
			StringCopy(&Var2, "TORSO_P2_21_3", 16);
			iVar6 = 21;
			iVar7 = 3;
			iVar1 = 42;
			break;
		
		case 140:
			StringCopy(&Var2, "TORSO_P2_21_4", 16);
			iVar6 = 21;
			iVar7 = 4;
			iVar1 = 45;
			break;
		
		case 141:
			StringCopy(&Var2, "TORSO_P2_21_5", 16);
			iVar6 = 21;
			iVar7 = 5;
			iVar1 = 48;
			break;
		
		case 142:
			StringCopy(&Var2, "TORSO_P2_21_6", 16);
			iVar6 = 21;
			iVar7 = 6;
			iVar1 = 52;
			break;
		
		case 143:
			StringCopy(&Var2, "TORSO_P2_21_7", 16);
			iVar6 = 21;
			iVar7 = 7;
			iVar1 = 55;
			break;
		
		case 144:
			StringCopy(&Var2, "TORSO_P2_22_0", 16);
			iVar6 = 22;
			iVar7 = 0;
			iVar1 = 390;
			break;
		
		case 145:
			StringCopy(&Var2, "TORSO_P2_22_1", 16);
			iVar6 = 22;
			iVar7 = 1;
			iVar1 = 390;
			break;
		
		case 146:
			StringCopy(&Var2, "TORSO_P2_22_2", 16);
			iVar6 = 22;
			iVar7 = 2;
			iVar1 = 560;
			break;
		
		case 147:
			StringCopy(&Var2, "TORSO_P2_22_3", 16);
			iVar6 = 22;
			iVar7 = 3;
			iVar1 = 390;
			break;
		
		case 148:
			StringCopy(&Var2, "TORSO_P2_22_4", 16);
			iVar6 = 22;
			iVar7 = 4;
			iVar1 = 390;
			break;
		
		case 149:
			StringCopy(&Var2, "TORSO_P2_22_5", 16);
			iVar6 = 22;
			iVar7 = 5;
			iVar1 = 390;
			break;
		
		case 150:
			StringCopy(&Var2, "TORSO_P2_22_6", 16);
			iVar6 = 22;
			iVar7 = 6;
			iVar1 = 560;
			break;
		
		case 151:
			StringCopy(&Var2, "TORSO_P2_22_7", 16);
			iVar6 = 22;
			iVar7 = 7;
			iVar1 = 390;
			break;
		
		case 152:
			StringCopy(&Var2, "TORSO_P2_22_8", 16);
			iVar6 = 22;
			iVar7 = 8;
			iVar1 = 390;
			break;
		
		case 153:
			StringCopy(&Var2, "TORSO_P2_22_9", 16);
			iVar6 = 22;
			iVar7 = 9;
			iVar1 = 390;
			break;
		
		case 154:
			StringCopy(&Var2, "TORSO_P2_22_10", 16);
			iVar6 = 22;
			iVar7 = 10;
			iVar1 = 390;
			break;
		
		case 155:
			StringCopy(&Var2, "TORSO_P2_22_11", 16);
			iVar6 = 22;
			iVar7 = 11;
			iVar1 = 3950;
			break;
		
		case 156:
			StringCopy(&Var2, "TORSO_P2_23_0", 16);
			iVar6 = 23;
			iVar7 = 0;
			iVar1 = 150;
			break;
		
		case 157:
			StringCopy(&Var2, "TORSO_P2_23_1", 16);
			iVar6 = 23;
			iVar7 = 1;
			break;
		
		case 158:
			StringCopy(&Var2, "TORSO_P2_23_2", 16);
			iVar6 = 23;
			iVar7 = 2;
			iVar1 = 150;
			break;
		
		case 159:
			StringCopy(&Var2, "TORSO_P2_23_3", 16);
			iVar6 = 23;
			iVar7 = 3;
			iVar1 = 150;
			break;
		
		case 160:
			StringCopy(&Var2, "TORSO_P2_23_4", 16);
			iVar6 = 23;
			iVar7 = 4;
			iVar1 = 160;
			break;
		
		case 161:
			StringCopy(&Var2, "TORSO_P2_23_5", 16);
			iVar6 = 23;
			iVar7 = 5;
			break;
		
		case 162:
			StringCopy(&Var2, "TORSO_P2_24_0", 16);
			iVar6 = 24;
			iVar7 = 0;
			iVar1 = 19;
			break;
		
		case 163:
			StringCopy(&Var2, "TORSO_P2_24_1", 16);
			iVar6 = 24;
			iVar7 = 1;
			iVar1 = 20;
			break;
		
		case 164:
			StringCopy(&Var2, "TORSO_P2_24_2", 16);
			iVar6 = 24;
			iVar7 = 2;
			iVar1 = 19;
			break;
		
		case 165:
			StringCopy(&Var2, "TORSO_P2_24_3", 16);
			iVar6 = 24;
			iVar7 = 3;
			iVar1 = 22;
			break;
		
		case 166:
			StringCopy(&Var2, "TORSO_P2_24_4", 16);
			iVar6 = 24;
			iVar7 = 4;
			iVar1 = 20;
			break;
		
		case 167:
			StringCopy(&Var2, "TORSO_P2_24_5", 16);
			iVar6 = 24;
			iVar7 = 5;
			iVar1 = 28;
			break;
		
		case 168:
			StringCopy(&Var2, "TORSO_P2_24_6", 16);
			iVar6 = 24;
			iVar7 = 6;
			iVar1 = 28;
			break;
		
		case 169:
			StringCopy(&Var2, "TORSO_P2_24_7", 16);
			iVar6 = 24;
			iVar7 = 7;
			iVar1 = 25;
			break;
		
		case 170:
			StringCopy(&Var2, "TORSO_P2_24_8", 16);
			iVar6 = 24;
			iVar7 = 8;
			iVar1 = 22;
			break;
		
		case 171:
			StringCopy(&Var2, "TORSO_P2_24_9", 16);
			iVar6 = 24;
			iVar7 = 9;
			iVar1 = 19;
			break;
		
		case 172:
			StringCopy(&Var2, "TORSO_P2_24_10", 16);
			iVar6 = 24;
			iVar7 = 10;
			iVar1 = 22;
			break;
		
		case 173:
			StringCopy(&Var2, "TORSO_P2_24_11", 16);
			iVar6 = 24;
			iVar7 = 11;
			iVar1 = 19;
			break;
		
		case 174:
			StringCopy(&Var2, "TORSO_P2_24_12", 16);
			iVar6 = 24;
			iVar7 = 12;
			iVar1 = 20;
			break;
		
		case 175:
			StringCopy(&Var2, "TORSO_P2_24_13", 16);
			iVar6 = 24;
			iVar7 = 13;
			iVar1 = 25;
			break;
		
		case 176:
			StringCopy(&Var2, "TORSO_P2_24_14", 16);
			iVar6 = 24;
			iVar7 = 14;
			iVar1 = 20;
			break;
		
		case 177:
			StringCopy(&Var2, "TORSO_P2_24_15", 16);
			iVar6 = 24;
			iVar7 = 15;
			iVar1 = 28;
			break;
		
		case 178:
			StringCopy(&Var2, "TORSO_P2_25_0", 16);
			iVar6 = 25;
			iVar7 = 0;
			iVar1 = 35;
			break;
		
		case 179:
			StringCopy(&Var2, "TORSO_P2_25_1", 16);
			iVar6 = 25;
			iVar7 = 1;
			iVar1 = 40;
			break;
		
		case 180:
			StringCopy(&Var2, "TORSO_P2_25_2", 16);
			iVar6 = 25;
			iVar7 = 2;
			iVar1 = 45;
			break;
		
		case 181:
			StringCopy(&Var2, "TORSO_P2_25_3", 16);
			iVar6 = 25;
			iVar7 = 3;
			iVar1 = 45;
			break;
		
		case 182:
			StringCopy(&Var2, "TORSO_P2_25_4", 16);
			iVar6 = 25;
			iVar7 = 4;
			iVar1 = 49;
			break;
		
		case 183:
			StringCopy(&Var2, "TORSO_P2_25_5", 16);
			iVar6 = 25;
			iVar7 = 5;
			iVar1 = 820;
			break;
		
		case 184:
			StringCopy(&Var2, "TORSO_P2_25_6", 16);
			iVar6 = 25;
			iVar7 = 6;
			iVar1 = 790;
			break;
		
		case 185:
			StringCopy(&Var2, "TORSO_P2_25_7", 16);
			iVar6 = 25;
			iVar7 = 7;
			iVar1 = 820;
			break;
		
		case 186:
			StringCopy(&Var2, "TORSO_P2_25_8", 16);
			iVar6 = 25;
			iVar7 = 8;
			iVar1 = 929;
			break;
		
		case 187:
			StringCopy(&Var2, "TORSO_P2_25_9", 16);
			iVar6 = 25;
			iVar7 = 9;
			iVar1 = 40;
			break;
		
		case 188:
			StringCopy(&Var2, "TORSO_P2_25_10", 16);
			iVar6 = 25;
			iVar7 = 10;
			iVar1 = 850;
			break;
		
		case 189:
			StringCopy(&Var2, "TORSO_P2_25_11", 16);
			iVar6 = 25;
			iVar7 = 11;
			iVar1 = 790;
			break;
		
		case 190:
			StringCopy(&Var2, "TORSO_P2_26_0", 16);
			iVar6 = 26;
			iVar7 = 0;
			break;
		
		case 191:
			StringCopy(&Var2, "TORSO_P2_26_1", 16);
			iVar6 = 26;
			iVar7 = 1;
			break;
		
		case 192:
			StringCopy(&Var2, "TORSO_P2_26_2", 16);
			iVar6 = 26;
			iVar7 = 2;
			break;
		
		case 193:
			StringCopy(&Var2, "TORSO_P2_26_3", 16);
			iVar6 = 26;
			iVar7 = 3;
			break;
		
		case 194:
			StringCopy(&Var2, "TORSO_P2_26_4", 16);
			iVar6 = 26;
			iVar7 = 4;
			break;
		
		case 195:
			StringCopy(&Var2, "TORSO_P2_26_5", 16);
			iVar6 = 26;
			iVar7 = 5;
			break;
		
		case 196:
			StringCopy(&Var2, "TORSO_P2_26_6", 16);
			iVar6 = 26;
			iVar7 = 6;
			break;
		
		case 197:
			StringCopy(&Var2, "TORSO_P2_26_7", 16);
			iVar6 = 26;
			iVar7 = 7;
			break;
		
		case 198:
			StringCopy(&Var2, "TORSO_P2_26_8", 16);
			iVar6 = 26;
			iVar7 = 8;
			break;
		
		case 199:
			StringCopy(&Var2, "TORSO_P2_26_9", 16);
			iVar6 = 26;
			iVar7 = 9;
			break;
		
		case 200:
			StringCopy(&Var2, "TORSO_P2_27_0", 16);
			iVar6 = 27;
			iVar7 = 0;
			iVar1 = 2200;
			break;
		
		case 201:
			StringCopy(&Var2, "TORSO_P2_27_1", 16);
			iVar6 = 27;
			iVar7 = 1;
			iVar1 = 2500;
			break;
		
		case 202:
			StringCopy(&Var2, "TORSO_P2_27_2", 16);
			iVar6 = 27;
			iVar7 = 2;
			iVar1 = 2500;
			break;
		
		case 203:
			StringCopy(&Var2, "TORSO_P2_27_3", 16);
			iVar6 = 27;
			iVar7 = 3;
			iVar1 = 2200;
			break;
		
		case 204:
			StringCopy(&Var2, "TORSO_P2_27_4", 16);
			iVar6 = 27;
			iVar7 = 4;
			iVar1 = 2500;
			break;
		
		case 205:
			StringCopy(&Var2, "TORSO_P2_27_5", 16);
			iVar6 = 27;
			iVar7 = 5;
			iVar1 = 2500;
			break;
		
		case 206:
			StringCopy(&Var2, "TORSO_P2_27_6", 16);
			iVar6 = 27;
			iVar7 = 6;
			iVar1 = 2200;
			break;
		
		case 207:
			StringCopy(&Var2, "TORSO_P2_28_0", 16);
			iVar6 = 28;
			iVar7 = 0;
			iVar1 = 1100;
			break;
		
		case 208:
			StringCopy(&Var2, "TORSO_P2_28_1", 16);
			iVar6 = 28;
			iVar7 = 1;
			iVar1 = 1200;
			break;
		
		case 209:
			StringCopy(&Var2, "TORSO_P2_28_2", 16);
			iVar6 = 28;
			iVar7 = 2;
			iVar1 = 1220;
			break;
		
		case 210:
			StringCopy(&Var2, "TORSO_P2_28_3", 16);
			iVar6 = 28;
			iVar7 = 3;
			iVar1 = 1250;
			break;
		
		case 211:
			StringCopy(&Var2, "TORSO_P2_28_4", 16);
			iVar6 = 28;
			iVar7 = 4;
			iVar1 = 1300;
			break;
		
		case 212:
			StringCopy(&Var2, "TORSO_P2_28_5", 16);
			iVar6 = 28;
			iVar7 = 5;
			iVar1 = 1360;
			break;
		
		case 213:
			StringCopy(&Var2, "TORSO_P2_28_6", 16);
			iVar6 = 28;
			iVar7 = 6;
			iVar1 = 35;
			break;
		
		case 214:
			StringCopy(&Var2, "TORSO_P2_28_7", 16);
			iVar6 = 28;
			iVar7 = 7;
			iVar1 = 38;
			break;
		
		case 215:
			StringCopy(&Var2, "TORSO_P2_28_8", 16);
			iVar6 = 28;
			iVar7 = 8;
			iVar1 = 40;
			break;
		
		case 216:
			StringCopy(&Var2, "TORSO_P2_28_9", 16);
			iVar6 = 28;
			iVar7 = 9;
			iVar1 = 42;
			break;
		
		case 217:
			StringCopy(&Var2, "TORSO_P2_28_10", 16);
			iVar6 = 28;
			iVar7 = 10;
			iVar1 = 50;
			break;
		
		case 218:
			StringCopy(&Var2, "TORSO_P2_28_11", 16);
			iVar6 = 28;
			iVar7 = 11;
			iVar1 = 45;
			break;
		
		case 219:
			StringCopy(&Var2, "TORSO_P2_28_12", 16);
			iVar6 = 28;
			iVar7 = 12;
			iVar1 = 45;
			break;
		
		case 220:
			StringCopy(&Var2, "TORSO_P2_28_13", 16);
			iVar6 = 28;
			iVar7 = 13;
			iVar1 = 44;
			break;
		
		case 221:
			StringCopy(&Var2, "TORSO_P2_28_14", 16);
			iVar6 = 28;
			iVar7 = 14;
			iVar1 = 46;
			break;
		
		case 222:
			StringCopy(&Var2, "TORSO_P2_28_15", 16);
			iVar6 = 28;
			iVar7 = 15;
			iVar1 = 52;
			break;
		
		case 223:
			StringCopy(&Var2, "TORSO_P2_29_0", 16);
			iVar6 = 29;
			iVar7 = 0;
			iVar1 = 3200;
			break;
		
		case 224:
			StringCopy(&Var2, "TORSO_P2_29_1", 16);
			iVar6 = 29;
			iVar7 = 1;
			iVar1 = 3200;
			break;
		
		case 225:
			StringCopy(&Var2, "TORSO_P2_29_2", 16);
			iVar6 = 29;
			iVar7 = 2;
			iVar1 = 2550;
			break;
		
		case 226:
			StringCopy(&Var2, "TORSO_P2_29_3", 16);
			iVar6 = 29;
			iVar7 = 3;
			iVar1 = 2750;
			break;
		
		case 227:
			StringCopy(&Var2, "TORSO_P2_29_4", 16);
			iVar6 = 29;
			iVar7 = 4;
			iVar1 = 2590;
			break;
		
		case 228:
			StringCopy(&Var2, "TORSO_P2_29_5", 16);
			iVar6 = 29;
			iVar7 = 5;
			iVar1 = 2750;
			break;
		
		case 229:
			StringCopy(&Var2, "TORSO_P2_29_6", 16);
			iVar6 = 29;
			iVar7 = 6;
			iVar1 = 2550;
			break;
		
		case 230:
			StringCopy(&Var2, "TORSO_P2_29_7", 16);
			iVar6 = 29;
			iVar7 = 7;
			iVar1 = 2590;
			break;
		
		case 231:
			StringCopy(&Var2, "TORSO_P2_29_8", 16);
			iVar6 = 29;
			iVar7 = 8;
			iVar1 = 2720;
			break;
		
		case 232:
			StringCopy(&Var2, "TORSO_P2_29_9", 16);
			iVar6 = 29;
			iVar7 = 9;
			iVar1 = 2750;
			break;
		
		case 233:
			StringCopy(&Var2, "TORSO_P2_30_0", 16);
			iVar6 = 30;
			iVar7 = 0;
			iVar1 = 3250;
			break;
		
		case 234:
			StringCopy(&Var2, "TORSO_P2_30_1", 16);
			iVar6 = 30;
			iVar7 = 1;
			iVar1 = 2950;
			break;
		
		case 235:
			StringCopy(&Var2, "TORSO_P2_30_2", 16);
			iVar6 = 30;
			iVar7 = 2;
			iVar1 = 3100;
			break;
		
		case 236:
			StringCopy(&Var2, "TORSO_P2_30_3", 16);
			iVar6 = 30;
			iVar7 = 3;
			iVar1 = 3150;
			break;
		
		case 237:
			StringCopy(&Var2, "TORSO_P2_30_4", 16);
			iVar6 = 30;
			iVar7 = 4;
			iVar1 = 3240;
			break;
		
		case 238:
			StringCopy(&Var2, "TORSO_P2_30_5", 16);
			iVar6 = 30;
			iVar7 = 5;
			iVar1 = 3350;
			break;
		
		case 239:
			StringCopy(&Var2, "TORSO_P2_30_6", 16);
			iVar6 = 30;
			iVar7 = 6;
			iVar1 = 3400;
			break;
		
		case 240:
			StringCopy(&Var2, "TORSO_P2_30_7", 16);
			iVar6 = 30;
			iVar7 = 7;
			iVar1 = 3280;
			break;
		
		case 241:
			StringCopy(&Var2, "TORSO_P2_31_0", 16);
			iVar6 = 31;
			iVar7 = 0;
			break;
		
		default:
			return;
			break;
	}
	func_195(&(Global_69518[0 /*14*/]), iVar10, iParam0, &Var2, iVar6, iVar7, iVar1, iVar0, iVar8, iVar9, 0);
}

void func_299(int iParam0)//Position - 0x4B7D7
{
	int iVar0;
	int iVar1;
	struct<2> Var2;
	int iVar6;
	int iVar7;
	int iVar8;
	int iVar9;
	int iVar10;
	
	iVar0 = false;
	iVar1 = 10;
	iVar6 = 0;
	iVar7 = 0;
	iVar8 = -1;
	iVar9 = 2;
	iVar10 = 3;
	Global_69518[0 /*14*/].f_5 = 2;
	switch (iParam0)
	{
		case 0:
			StringCopy(&Var2, "TORSO_P2_0_0", 16);
			iVar6 = 0;
			iVar7 = 0;
			break;
		
		case 1:
			StringCopy(&Var2, "TORSO_P2_0_1", 16);
			iVar6 = 0;
			iVar7 = 1;
			iVar1 = 25;
			break;
		
		case 2:
			StringCopy(&Var2, "TORSO_P2_0_2", 16);
			iVar6 = 0;
			iVar7 = 2;
			break;
		
		case 3:
			StringCopy(&Var2, "TORSO_P2_0_3", 16);
			iVar6 = 0;
			iVar7 = 3;
			iVar1 = 15;
			break;
		
		case 4:
			StringCopy(&Var2, "TORSO_P2_0_4", 16);
			iVar6 = 0;
			iVar7 = 4;
			iVar1 = 25;
			break;
		
		case 5:
			StringCopy(&Var2, "TORSO_P2_0_5", 16);
			iVar6 = 0;
			iVar7 = 5;
			iVar1 = 25;
			break;
		
		case 6:
			StringCopy(&Var2, "TORSO_P2_0_6", 16);
			iVar6 = 0;
			iVar7 = 6;
			iVar1 = 22;
			break;
		
		case 7:
			StringCopy(&Var2, "TORSO_P2_0_7", 16);
			iVar6 = 0;
			iVar7 = 7;
			iVar1 = 22;
			break;
		
		case 8:
			StringCopy(&Var2, "TORSO_P2_0_8", 16);
			iVar6 = 0;
			iVar7 = 8;
			iVar1 = 20;
			break;
		
		case 9:
			StringCopy(&Var2, "TORSO_P2_0_9", 16);
			iVar6 = 0;
			iVar7 = 9;
			iVar1 = 20;
			break;
		
		case 10:
			StringCopy(&Var2, "TORSO_P2_0_10", 16);
			iVar6 = 0;
			iVar7 = 10;
			iVar1 = 24;
			break;
		
		case 11:
			StringCopy(&Var2, "TORSO_P2_0_11", 16);
			iVar6 = 0;
			iVar7 = 11;
			iVar1 = 26;
			break;
		
		case 12:
			StringCopy(&Var2, "TORSO_P2_0_12", 16);
			iVar6 = 0;
			iVar7 = 12;
			iVar1 = 28;
			break;
		
		case 13:
			StringCopy(&Var2, "TORSO_P2_0_13", 16);
			iVar6 = 0;
			iVar7 = 13;
			iVar1 = 29;
			break;
		
		case 14:
			StringCopy(&Var2, "TORSO_P2_0_14", 16);
			iVar6 = 0;
			iVar7 = 14;
			iVar1 = 22;
			break;
		
		case 15:
			StringCopy(&Var2, "TORSO_P2_0_15", 16);
			iVar6 = 0;
			iVar7 = 15;
			iVar1 = 20;
			break;
		
		case 16:
			StringCopy(&Var2, "NO_LABEL", 16);
			iVar6 = 1;
			iVar7 = 0;
			iVar0 = true;
			break;
		
		case 17:
			StringCopy(&Var2, "NO_LABEL", 16);
			iVar6 = 2;
			iVar7 = 0;
			iVar0 = true;
			break;
		
		case 18:
			StringCopy(&Var2, "TORSO_P2_3_0", 16);
			iVar6 = 3;
			iVar7 = 0;
			iVar1 = 35;
			break;
		
		case 19:
			StringCopy(&Var2, "TORSO_P2_3_1", 16);
			iVar6 = 3;
			iVar7 = 1;
			iVar1 = 22;
			break;
		
		case 20:
			StringCopy(&Var2, "TORSO_P2_3_2", 16);
			iVar6 = 3;
			iVar7 = 2;
			iVar1 = 25;
			break;
		
		case 21:
			StringCopy(&Var2, "TORSO_P2_3_3", 16);
			iVar6 = 3;
			iVar7 = 3;
			iVar1 = 38;
			break;
		
		case 22:
			StringCopy(&Var2, "TORSO_P2_3_4", 16);
			iVar6 = 3;
			iVar7 = 4;
			iVar1 = 40;
			break;
		
		case 23:
			StringCopy(&Var2, "TORSO_P2_3_5", 16);
			iVar6 = 3;
			iVar7 = 5;
			iVar1 = 40;
			break;
		
		case 24:
			StringCopy(&Var2, "TORSO_P2_3_6", 16);
			iVar6 = 3;
			iVar7 = 6;
			iVar1 = 40;
			break;
		
		case 25:
			StringCopy(&Var2, "TORSO_P2_3_7", 16);
			iVar6 = 3;
			iVar7 = 7;
			iVar1 = 40;
			break;
		
		case 26:
			StringCopy(&Var2, "TORSO_P2_3_8", 16);
			iVar6 = 3;
			iVar7 = 8;
			iVar1 = 40;
			break;
		
		case 27:
			StringCopy(&Var2, "TORSO_P2_4_0", 16);
			iVar6 = 4;
			iVar7 = 0;
			break;
		
		case 28:
			StringCopy(&Var2, "TORSO_P2_4_1", 16);
			iVar6 = 4;
			iVar7 = 1;
			iVar1 = 500;
			break;
		
		case 29:
			StringCopy(&Var2, "TORSO_P2_4_2", 16);
			iVar6 = 4;
			iVar7 = 2;
			iVar1 = 560;
			break;
		
		case 30:
			StringCopy(&Var2, "TORSO_P2_4_3", 16);
			iVar6 = 4;
			iVar7 = 3;
			iVar1 = 600;
			break;
		
		case 31:
			StringCopy(&Var2, "TORSO_P2_4_4tu", 16);
			iVar6 = 4;
			iVar7 = 4;
			iVar1 = 650;
			break;
		
		case 32:
			StringCopy(&Var2, "TORSO_P2_4_5tu", 16);
			iVar6 = 4;
			iVar7 = 5;
			iVar1 = 500;
			break;
		
		case 33:
			StringCopy(&Var2, "TORSO_P2_4_6tu", 16);
			iVar6 = 4;
			iVar7 = 6;
			iVar1 = 560;
			break;
		
		case 34:
			StringCopy(&Var2, "TORSO_P2_4_7", 16);
			iVar6 = 4;
			iVar7 = 7;
			iVar1 = 500;
			break;
		
		case 35:
			StringCopy(&Var2, "TORSO_P2_4_8", 16);
			iVar6 = 4;
			iVar7 = 8;
			iVar1 = 650;
			break;
		
		case 36:
			StringCopy(&Var2, "TORSO_P2_4_9", 16);
			iVar6 = 4;
			iVar7 = 9;
			iVar1 = 540;
			break;
		
		case 37:
			StringCopy(&Var2, "TORSO_P2_4_10", 16);
			iVar6 = 4;
			iVar7 = 10;
			iVar1 = 690;
			break;
		
		case 38:
			StringCopy(&Var2, "TORSO_P2_4_11", 16);
			iVar6 = 4;
			iVar7 = 11;
			iVar1 = 560;
			break;
		
		case 39:
			StringCopy(&Var2, "TORSO_P2_4_12", 16);
			iVar6 = 4;
			iVar7 = 12;
			iVar1 = 590;
			break;
		
		case 40:
			StringCopy(&Var2, "TORSO_P2_4_13", 16);
			iVar6 = 4;
			iVar7 = 13;
			iVar1 = 690;
			break;
		
		case 41:
			StringCopy(&Var2, "TORSO_P2_4_14", 16);
			iVar6 = 4;
			iVar7 = 14;
			iVar1 = 540;
			break;
		
		case 42:
			StringCopy(&Var2, "TORSO_P2_4_15", 16);
			iVar6 = 4;
			iVar7 = 15;
			iVar1 = 500;
			break;
		
		case 43:
			StringCopy(&Var2, "NO_LABEL", 16);
			iVar6 = 5;
			iVar7 = 0;
			iVar0 = true;
			break;
		
		case 44:
			StringCopy(&Var2, "NO_LABEL", 16);
			iVar6 = 5;
			iVar7 = 1;
			iVar0 = true;
			break;
		
		case 45:
			StringCopy(&Var2, "NO_LABEL", 16);
			iVar6 = 5;
			iVar7 = 2;
			iVar0 = true;
			break;
		
		case 46:
			StringCopy(&Var2, "NO_LABEL", 16);
			iVar6 = 5;
			iVar7 = 3;
			iVar0 = true;
			break;
		
		case 47:
			StringCopy(&Var2, "NO_LABEL", 16);
			iVar6 = 5;
			iVar7 = 4;
			iVar0 = true;
			break;
		
		case 48:
			StringCopy(&Var2, "NO_LABEL", 16);
			iVar6 = 5;
			iVar7 = 5;
			iVar0 = true;
			break;
		
		case 49:
			StringCopy(&Var2, "NO_LABEL", 16);
			iVar6 = 6;
			iVar7 = 0;
			iVar0 = true;
			break;
		
		case 50:
			StringCopy(&Var2, "NO_LABEL", 16);
			iVar6 = 7;
			iVar7 = 0;
			iVar0 = true;
			break;
		
		case 51:
			StringCopy(&Var2, "NO_LABEL", 16);
			iVar6 = 8;
			iVar7 = 0;
			iVar0 = true;
			break;
		
		case 52:
			StringCopy(&Var2, "NO_LABEL", 16);
			iVar6 = 9;
			iVar7 = 0;
			iVar0 = true;
			break;
		
		case 53:
			StringCopy(&Var2, "NO_LABEL", 16);
			iVar6 = 10;
			iVar7 = 0;
			iVar0 = true;
			break;
		
		case 54:
			StringCopy(&Var2, "TORSO_P2_11_0", 16);
			iVar6 = 11;
			iVar7 = 0;
			break;
		
		case 55:
			StringCopy(&Var2, "TORSO_P2_11_1", 16);
			iVar6 = 11;
			iVar7 = 1;
			break;
		
		case 56:
			StringCopy(&Var2, "TORSO_P2_11_2", 16);
			iVar6 = 11;
			iVar7 = 2;
			iVar1 = 25;
			break;
		
		case 57:
			StringCopy(&Var2, "TORSO_P2_11_3", 16);
			iVar6 = 11;
			iVar7 = 3;
			iVar1 = 27;
			break;
		
		case 58:
			StringCopy(&Var2, "TORSO_P2_11_4", 16);
			iVar6 = 11;
			iVar7 = 4;
			iVar1 = 22;
			break;
		
		case 59:
			StringCopy(&Var2, "TORSO_P2_11_5", 16);
			iVar6 = 11;
			iVar7 = 5;
			iVar1 = 350;
			break;
		
		case 60:
			StringCopy(&Var2, "TORSO_P2_11_6", 16);
			iVar6 = 11;
			iVar7 = 6;
			iVar1 = 27;
			break;
		
		case 61:
			StringCopy(&Var2, "TORSO_P2_11_7", 16);
			iVar6 = 11;
			iVar7 = 7;
			iVar1 = 370;
			break;
		
		case 62:
			StringCopy(&Var2, "TORSO_P2_11_8", 16);
			iVar6 = 11;
			iVar7 = 8;
			iVar1 = 25;
			break;
		
		case 63:
			StringCopy(&Var2, "TORSO_P2_11_9", 16);
			iVar6 = 11;
			iVar7 = 9;
			iVar1 = 22;
			break;
		
		case 64:
			StringCopy(&Var2, "TORSO_P2_11_10", 16);
			iVar6 = 11;
			iVar7 = 10;
			iVar1 = 25;
			break;
		
		case 65:
			StringCopy(&Var2, "TORSO_P2_11_11", 16);
			iVar6 = 11;
			iVar7 = 11;
			break;
		
		case 66:
			StringCopy(&Var2, "TORSO_P2_11_12", 16);
			iVar6 = 11;
			iVar7 = 12;
			iVar1 = 22;
			break;
		
		case 67:
			StringCopy(&Var2, "TORSO_P2_11_13", 16);
			iVar6 = 11;
			iVar7 = 13;
			iVar1 = 27;
			break;
		
		case 68:
			StringCopy(&Var2, "TORSO_P2_11_14", 16);
			iVar6 = 11;
			iVar7 = 14;
			iVar1 = 25;
			break;
		
		case 69:
			StringCopy(&Var2, "TORSO_P2_11_15", 16);
			iVar6 = 11;
			iVar7 = 15;
			iVar1 = 27;
			break;
		
		case 70:
			StringCopy(&Var2, "NO_LABEL", 16);
			iVar6 = 12;
			iVar7 = 0;
			iVar0 = true;
			iVar9 = 1;
			break;
		
		case 71:
			StringCopy(&Var2, "TORSO_P2_13_0", 16);
			iVar6 = 13;
			iVar7 = 0;
			break;
		
		case 72:
			StringCopy(&Var2, "TORSO_P2_13_1", 16);
			iVar6 = 13;
			iVar7 = 1;
			iVar1 = 39;
			break;
		
		case 73:
			StringCopy(&Var2, "TORSO_P2_13_2", 16);
			iVar6 = 13;
			iVar7 = 2;
			iVar1 = 42;
			break;
		
		case 74:
			StringCopy(&Var2, "TORSO_P2_13_3", 16);
			iVar6 = 13;
			iVar7 = 3;
			iVar1 = 49;
			break;
		
		case 75:
			StringCopy(&Var2, "TORSO_P2_13_4", 16);
			iVar6 = 13;
			iVar7 = 4;
			iVar1 = 35;
			break;
		
		case 76:
			StringCopy(&Var2, "TORSO_P2_13_5", 16);
			iVar6 = 13;
			iVar7 = 5;
			iVar1 = 50;
			break;
		
		case 77:
			StringCopy(&Var2, "TORSO_P2_13_6", 16);
			iVar6 = 13;
			iVar7 = 6;
			iVar1 = 50;
			break;
		
		case 78:
			StringCopy(&Var2, "TORSO_P2_13_7", 16);
			iVar6 = 13;
			iVar7 = 7;
			iVar1 = 50;
			break;
		
		case 79:
			StringCopy(&Var2, "TORSO_P2_14_0", 16);
			iVar6 = 14;
			iVar7 = 0;
			break;
		
		case 80:
			StringCopy(&Var2, "TORSO_P2_14_1", 16);
			iVar6 = 14;
			iVar7 = 1;
			iVar1 = 88;
			break;
		
		case 81:
			StringCopy(&Var2, "TORSO_P2_14_2", 16);
			iVar6 = 14;
			iVar7 = 2;
			iVar1 = 60;
			break;
		
		case 82:
			StringCopy(&Var2, "TORSO_P2_14_3", 16);
			iVar6 = 14;
			iVar7 = 3;
			iVar1 = 80;
			break;
		
		case 83:
			StringCopy(&Var2, "TORSO_P2_14_4", 16);
			iVar6 = 14;
			iVar7 = 4;
			iVar1 = 70;
			break;
		
		case 84:
			StringCopy(&Var2, "TORSO_P2_14_5", 16);
			iVar6 = 14;
			iVar7 = 5;
			iVar1 = 80;
			break;
		
		case 85:
			StringCopy(&Var2, "TORSO_P2_14_6", 16);
			iVar6 = 14;
			iVar7 = 6;
			iVar1 = 70;
			break;
		
		case 86:
			StringCopy(&Var2, "TORSO_P2_14_7", 16);
			iVar6 = 14;
			iVar7 = 7;
			iVar1 = 90;
			break;
		
		case 87:
			StringCopy(&Var2, "TORSO_P2_14_8", 16);
			iVar6 = 14;
			iVar7 = 8;
			iVar1 = 95;
			break;
		
		case 88:
			StringCopy(&Var2, "TORSO_P2_14_9", 16);
			iVar6 = 14;
			iVar7 = 9;
			iVar1 = 105;
			break;
		
		case 89:
			StringCopy(&Var2, "TORSO_P2_14_10", 16);
			iVar6 = 14;
			iVar7 = 10;
			iVar1 = 95;
			break;
		
		case 90:
			StringCopy(&Var2, "TORSO_P2_14_11", 16);
			iVar6 = 14;
			iVar7 = 11;
			iVar1 = 110;
			break;
		
		case 91:
			StringCopy(&Var2, "TORSO_P2_14_12", 16);
			iVar6 = 14;
			iVar7 = 12;
			iVar1 = 98;
			break;
		
		case 92:
			StringCopy(&Var2, "TORSO_P2_14_13", 16);
			iVar6 = 14;
			iVar7 = 13;
			iVar1 = 88;
			break;
		
		case 93:
			StringCopy(&Var2, "TORSO_P2_14_14", 16);
			iVar6 = 14;
			iVar7 = 14;
			iVar1 = 98;
			break;
		
		case 94:
			StringCopy(&Var2, "TORSO_P2_14_15", 16);
			iVar6 = 14;
			iVar7 = 15;
			iVar1 = 110;
			break;
		
		case 95:
			StringCopy(&Var2, "TORSO_P2_15_0", 16);
			iVar6 = 15;
			iVar7 = 0;
			iVar0 = true;
			break;
		
		case 96:
			StringCopy(&Var2, "TORSO_P2_16_0", 16);
			iVar6 = 16;
			iVar7 = 0;
			break;
		
		case 97:
			StringCopy(&Var2, "TORSO_P2_17_0", 16);
			iVar6 = 17;
			iVar7 = 0;
			iVar0 = true;
			break;
		
		case 98:
			StringCopy(&Var2, "TORSO_P2_18_0", 16);
			iVar6 = 18;
			iVar7 = 0;
			break;
		
		case 99:
			StringCopy(&Var2, "TORSO_P2_18_1", 16);
			iVar6 = 18;
			iVar7 = 1;
			iVar1 = 520;
			break;
		
		case 100:
			StringCopy(&Var2, "TORSO_P2_18_2", 16);
			iVar6 = 18;
			iVar7 = 2;
			iVar1 = 490;
			break;
		
		case 101:
			StringCopy(&Var2, "TORSO_P2_18_3", 16);
			iVar6 = 18;
			iVar7 = 3;
			iVar1 = 450;
			break;
		
		case 102:
			StringCopy(&Var2, "TORSO_P2_18_4", 16);
			iVar6 = 18;
			iVar7 = 4;
			iVar1 = 420;
			break;
		
		case 103:
			StringCopy(&Var2, "TORSO_P2_18_5", 16);
			iVar6 = 18;
			iVar7 = 5;
			iVar1 = 420;
			break;
		
		case 104:
			StringCopy(&Var2, "TORSO_P2_19_0", 16);
			iVar6 = 19;
			iVar7 = 0;
			iVar1 = 85;
			break;
		
		case 105:
			StringCopy(&Var2, "TORSO_P2_19_1", 16);
			iVar6 = 19;
			iVar7 = 1;
			iVar1 = 85;
			break;
		
		case 106:
			StringCopy(&Var2, "TORSO_P2_19_2", 16);
			iVar6 = 19;
			iVar7 = 2;
			iVar1 = 75;
			break;
		
		case 107:
			StringCopy(&Var2, "TORSO_P2_19_3", 16);
			iVar6 = 19;
			iVar7 = 3;
			iVar1 = 68;
			break;
		
		case 108:
			StringCopy(&Var2, "TORSO_P2_19_4", 16);
			iVar6 = 19;
			iVar7 = 4;
			iVar1 = 68;
			break;
		
		case 109:
			StringCopy(&Var2, "TORSO_P2_19_5", 16);
			iVar6 = 19;
			iVar7 = 5;
			iVar1 = 78;
			break;
		
		case 110:
			StringCopy(&Var2, "TORSO_P2_19_6", 16);
			iVar6 = 19;
			iVar7 = 6;
			iVar1 = 85;
			break;
		
		case 111:
			StringCopy(&Var2, "TORSO_P2_19_7", 16);
			iVar6 = 19;
			iVar7 = 7;
			iVar1 = 68;
			break;
		
		case 112:
			StringCopy(&Var2, "TORSO_P2_19_8", 16);
			iVar6 = 19;
			iVar7 = 8;
			iVar1 = 75;
			break;
		
		case 113:
			StringCopy(&Var2, "TORSO_P2_19_9", 16);
			iVar6 = 19;
			iVar7 = 9;
			iVar1 = 75;
			break;
		
		case 114:
			StringCopy(&Var2, "TORSO_P2_19_10", 16);
			iVar6 = 19;
			iVar7 = 10;
			iVar1 = 78;
			break;
		
		case 115:
			StringCopy(&Var2, "TORSO_P2_19_11", 16);
			iVar6 = 19;
			iVar7 = 11;
			iVar1 = 75;
			break;
		
		case 116:
			StringCopy(&Var2, "TORSO_P2_19_12", 16);
			iVar6 = 19;
			iVar7 = 12;
			iVar1 = 75;
			break;
		
		case 117:
			StringCopy(&Var2, "TORSO_P2_19_13", 16);
			iVar6 = 19;
			iVar7 = 13;
			iVar1 = 75;
			break;
		
		case 118:
			StringCopy(&Var2, "TORSO_P2_19_14", 16);
			iVar6 = 19;
			iVar7 = 14;
			iVar1 = 78;
			break;
		
		case 119:
			StringCopy(&Var2, "TORSO_P2_19_15", 16);
			iVar6 = 19;
			iVar7 = 15;
			iVar1 = 78;
			break;
		
		case 120:
			StringCopy(&Var2, "TORSO_P2_20_0", 16);
			iVar6 = 20;
			iVar7 = 0;
			iVar1 = 40;
			break;
		
		case 121:
			StringCopy(&Var2, "TORSO_P2_20_1", 16);
			iVar6 = 20;
			iVar7 = 1;
			iVar1 = 32;
			break;
		
		case 122:
			StringCopy(&Var2, "TORSO_P2_20_2", 16);
			iVar6 = 20;
			iVar7 = 2;
			iVar1 = 32;
			break;
		
		case 123:
			StringCopy(&Var2, "TORSO_P2_20_3", 16);
			iVar6 = 20;
			iVar7 = 3;
			iVar1 = 32;
			break;
		
		case 124:
			StringCopy(&Var2, "TORSO_P2_20_4", 16);
			iVar6 = 20;
			iVar7 = 4;
			break;
		
		case 125:
			StringCopy(&Var2, "TORSO_P2_20_5", 16);
			iVar6 = 20;
			iVar7 = 5;
			iVar1 = 38;
			break;
		
		case 126:
			StringCopy(&Var2, "TORSO_P2_20_6", 16);
			iVar6 = 20;
			iVar7 = 6;
			iVar1 = 35;
			break;
		
		case 127:
			StringCopy(&Var2, "TORSO_P2_20_7", 16);
			iVar6 = 20;
			iVar7 = 7;
			iVar1 = 38;
			break;
		
		case 128:
			StringCopy(&Var2, "TORSO_P2_20_8", 16);
			iVar6 = 20;
			iVar7 = 8;
			iVar1 = 29;
			break;
		
		case 129:
			StringCopy(&Var2, "TORSO_P2_20_9", 16);
			iVar6 = 20;
			iVar7 = 9;
			iVar1 = 32;
			break;
		
		case 130:
			StringCopy(&Var2, "TORSO_P2_20_10", 16);
			iVar6 = 20;
			iVar7 = 10;
			iVar1 = 29;
			break;
		
		case 131:
			StringCopy(&Var2, "TORSO_P2_20_11", 16);
			iVar6 = 20;
			iVar7 = 11;
			iVar1 = 35;
			break;
		
		case 132:
			StringCopy(&Var2, "TORSO_P2_20_12", 16);
			iVar6 = 20;
			iVar7 = 12;
			iVar1 = 32;
			break;
		
		case 133:
			StringCopy(&Var2, "TORSO_P2_20_13", 16);
			iVar6 = 20;
			iVar7 = 13;
			iVar1 = 35;
			break;
		
		case 134:
			StringCopy(&Var2, "TORSO_P2_20_14", 16);
			iVar6 = 20;
			iVar7 = 14;
			iVar1 = 32;
			break;
		
		case 135:
			StringCopy(&Var2, "TORSO_P2_20_15", 16);
			iVar6 = 20;
			iVar7 = 15;
			iVar1 = 40;
			break;
		
		default:
			return;
			break;
	}
	func_195(&(Global_69518[0 /*14*/]), iVar10, iParam0, &Var2, iVar6, iVar7, iVar1, iVar0, iVar8, iVar9, 0);
}

void func_300(int iParam0)//Position - 0x4C6E6
{
	int iVar0;
	int iVar1;
	struct<2> Var2;
	int iVar6;
	int iVar7;
	int iVar8;
	int iVar9;
	int iVar10;
	
	iVar0 = false;
	iVar1 = 10;
	iVar6 = 0;
	iVar7 = 0;
	iVar8 = -1;
	iVar9 = 2;
	iVar10 = 2;
	Global_69518[0 /*14*/].f_5 = 2;
	switch (iParam0)
	{
		case 0:
			StringCopy(&Var2, "HAIR_P2_0_0", 16);
			iVar6 = 0;
			iVar7 = 0;
			break;
		
		case 1:
			StringCopy(&Var2, "HAIR_P2_0_1", 16);
			iVar6 = 0;
			iVar7 = 1;
			break;
		
		case 2:
			StringCopy(&Var2, "HAIR_P2_1_0", 16);
			iVar6 = 1;
			iVar7 = 0;
			break;
		
		case 3:
			StringCopy(&Var2, "HAIR_P2_2_0", 16);
			iVar6 = 2;
			iVar7 = 0;
			break;
		
		case 4:
			StringCopy(&Var2, "HAIR_P2_3_0", 16);
			iVar6 = 3;
			iVar7 = 0;
			break;
		
		case 5:
			StringCopy(&Var2, "HAIR_P2_4_0", 16);
			iVar6 = 4;
			iVar7 = 0;
			break;
		
		case 6:
			StringCopy(&Var2, "HAIR_P2_5_0", 16);
			iVar6 = 5;
			iVar7 = 0;
			break;
		
		case 7:
			StringCopy(&Var2, "HAIR_P2_6_0", 16);
			iVar6 = 6;
			iVar7 = 0;
			break;
		
		case 8:
			StringCopy(&Var2, "HAIR_P2_7_0", 16);
			iVar6 = 7;
			iVar7 = 0;
			break;
		
		default:
			func_203(iVar10, iParam0, 9);
			return;
			break;
	}
	func_195(&(Global_69518[0 /*14*/]), iVar10, iParam0, &Var2, iVar6, iVar7, iVar1, iVar0, iVar8, iVar9, 0);
}

void func_301(int iParam0)//Position - 0x4C812
{
	int iVar0;
	int iVar1;
	struct<2> Var2;
	int iVar6;
	int iVar7;
	int iVar8;
	int iVar9;
	int iVar10;
	
	iVar0 = false;
	iVar1 = 10;
	iVar6 = 0;
	iVar7 = 0;
	iVar8 = -1;
	iVar9 = 2;
	iVar10 = 0;
	Global_69518[0 /*14*/].f_5 = 2;
	switch (iParam0)
	{
		case 0:
			StringCopy(&Var2, "NO_LABEL", 16);
			iVar6 = 0;
			iVar7 = 0;
			break;
		
		case 1:
			StringCopy(&Var2, "NO_LABEL", 16);
			iVar6 = 0;
			iVar7 = 1;
			break;
		
		case 2:
			StringCopy(&Var2, "NO_LABEL", 16);
			iVar6 = 0;
			iVar7 = 2;
			break;
		
		case 3:
			StringCopy(&Var2, "NO_LABEL", 16);
			iVar6 = 0;
			iVar7 = 3;
			break;
		
		case 4:
			StringCopy(&Var2, "NO_LABEL", 16);
			iVar6 = 0;
			iVar7 = 4;
			break;
		
		case 5:
			StringCopy(&Var2, "NO_LABEL", 16);
			iVar6 = 0;
			iVar7 = 5;
			break;
		
		case 6:
			StringCopy(&Var2, "NO_LABEL", 16);
			iVar6 = 0;
			iVar7 = 6;
			break;
		
		default:
			func_203(iVar10, iParam0, 7);
			return;
			break;
	}
	func_195(&(Global_69518[0 /*14*/]), iVar10, iParam0, &Var2, iVar6, iVar7, iVar1, iVar0, iVar8, iVar9, 0);
}

void func_302(int iParam0, int iParam1)//Position - 0x4C90F
{
	switch (iParam0)
	{
		case 0:
			func_320(iParam1);
			break;
		
		case 2:
			func_319(iParam1);
			break;
		
		case 3:
			func_315(iParam1);
			break;
		
		case 4:
			func_314(iParam1);
			break;
		
		case 6:
			func_313(iParam1);
			break;
		
		case 5:
			func_312(iParam1);
			break;
		
		case 8:
			func_311(iParam1);
			break;
		
		case 9:
			func_310(iParam1);
			break;
		
		case 10:
			func_309(iParam1);
			break;
		
		case 1:
			func_308(iParam1);
			break;
		
		case 7:
			func_307(iParam1);
			break;
		
		case 11:
			func_306(iParam1);
			break;
		
		case 12:
			func_305(iParam1);
			break;
		
		case 13:
			func_304(iParam1);
			break;
		
		case 14:
			func_303(iParam1);
			break;
	}
}

void func_303(int iParam0)//Position - 0x4C9FF
{
	int iVar0;
	int iVar1;
	struct<2> Var2;
	int iVar6;
	int iVar7;
	int iVar8;
	int iVar9;
	int iVar10;
	
	iVar0 = false;
	iVar1 = 10;
	iVar6 = 0;
	iVar7 = 0;
	iVar8 = -1;
	iVar9 = 2;
	iVar10 = 14;
	Global_69518[0 /*14*/].f_5 = 1;
	switch (iParam0)
	{
		case 0:
			StringCopy(&Var2, "NO_LABEL", 16);
			iVar6 = -1;
			iVar7 = 0;
			iVar1 = 0;
			iVar8 = 0;
			break;
		
		case 1:
			StringCopy(&Var2, "NO_LABEL", 16);
			iVar6 = -1;
			iVar7 = 0;
			iVar1 = 0;
			iVar8 = 1;
			break;
		
		case 2:
			StringCopy(&Var2, "NO_LABEL", 16);
			iVar6 = -1;
			iVar7 = 0;
			iVar1 = 0;
			iVar8 = 2;
			break;
		
		case 3:
			StringCopy(&Var2, "NO_LABEL", 16);
			iVar6 = -1;
			iVar7 = 0;
			iVar1 = 0;
			iVar8 = 3;
			break;
		
		case 4:
			StringCopy(&Var2, "NO_LABEL", 16);
			iVar6 = -1;
			iVar7 = 0;
			iVar1 = 0;
			iVar8 = 4;
			break;
		
		case 5:
			StringCopy(&Var2, "NO_LABEL", 16);
			iVar6 = -1;
			iVar7 = 0;
			iVar1 = 0;
			iVar8 = 5;
			break;
		
		case 6:
			StringCopy(&Var2, "NO_LABEL", 16);
			iVar6 = -1;
			iVar7 = 0;
			iVar1 = 0;
			iVar8 = 6;
			break;
		
		case 7:
			StringCopy(&Var2, "NO_LABEL", 16);
			iVar6 = -1;
			iVar7 = 0;
			iVar1 = 0;
			iVar8 = 7;
			break;
		
		case 8:
			StringCopy(&Var2, "NO_LABEL", 16);
			iVar6 = -1;
			iVar7 = 0;
			iVar1 = 0;
			iVar8 = 8;
			break;
		
		case 158:
			StringCopy(&Var2, "NO_LABEL", 16);
			iVar6 = 0;
			iVar7 = 0;
			iVar0 = true;
			iVar8 = 2;
			break;
		
		case 159:
			StringCopy(&Var2, "PROPS_P1_EA1_0", 16);
			iVar6 = 1;
			iVar7 = 0;
			iVar1 = 4590;
			iVar8 = 2;
			break;
		
		case 160:
			StringCopy(&Var2, "PROPS_P1_EA1_1", 16);
			iVar6 = 1;
			iVar7 = 1;
			iVar1 = 4100;
			iVar8 = 2;
			break;
		
		case 161:
			StringCopy(&Var2, "PROPS_P1_EA1_2", 16);
			iVar6 = 1;
			iVar7 = 2;
			iVar1 = 3850;
			iVar8 = 2;
			break;
		
		case 162:
			StringCopy(&Var2, "PROPS_P1_EA1_3", 16);
			iVar6 = 1;
			iVar7 = 3;
			iVar1 = 1850;
			iVar8 = 2;
			break;
		
		case 163:
			StringCopy(&Var2, "PROPS_P1_EA1_4", 16);
			iVar6 = 1;
			iVar7 = 4;
			iVar1 = 5250;
			iVar8 = 2;
			break;
		
		case 164:
			StringCopy(&Var2, "PROPS_P1_EA1_5", 16);
			iVar6 = 1;
			iVar7 = 5;
			iVar1 = 2700;
			iVar8 = 2;
			break;
		
		case 165:
			StringCopy(&Var2, "PROPS_P1_EA1_6", 16);
			iVar6 = 1;
			iVar7 = 6;
			iVar1 = 3100;
			iVar8 = 2;
			break;
		
		case 166:
			StringCopy(&Var2, "PROPS_P1_EA1_7", 16);
			iVar6 = 1;
			iVar7 = 7;
			iVar1 = 5050;
			iVar8 = 2;
			break;
		
		case 167:
			StringCopy(&Var2, "PROPS_P1_EA2_0", 16);
			iVar6 = 2;
			iVar7 = 0;
			iVar1 = 2500;
			iVar8 = 2;
			break;
		
		case 168:
			StringCopy(&Var2, "PROPS_P1_EA2_1", 16);
			iVar6 = 2;
			iVar7 = 1;
			iVar1 = 1950;
			iVar8 = 2;
			break;
		
		case 169:
			StringCopy(&Var2, "PROPS_P1_EA2_2", 16);
			iVar6 = 2;
			iVar7 = 2;
			iVar1 = 3900;
			iVar8 = 2;
			break;
		
		case 170:
			StringCopy(&Var2, "PROPS_P1_EA2_3", 16);
			iVar6 = 2;
			iVar7 = 3;
			iVar1 = 3550;
			iVar8 = 2;
			break;
		
		case 171:
			StringCopy(&Var2, "PROPS_P1_EA2_4", 16);
			iVar6 = 2;
			iVar7 = 4;
			iVar1 = 4500;
			iVar8 = 2;
			break;
		
		case 172:
			StringCopy(&Var2, "PROPS_P1_EA2_5", 16);
			iVar6 = 2;
			iVar7 = 5;
			iVar1 = 2700;
			iVar8 = 2;
			break;
		
		case 173:
			StringCopy(&Var2, "PROPS_P1_EA2_6", 16);
			iVar6 = 2;
			iVar7 = 6;
			iVar1 = 3100;
			iVar8 = 2;
			break;
		
		case 174:
			StringCopy(&Var2, "PROPS_P1_EA2_7", 16);
			iVar6 = 2;
			iVar7 = 7;
			iVar1 = 2950;
			iVar8 = 2;
			break;
		
		case 82:
			StringCopy(&Var2, "NO_LABEL", 16);
			iVar6 = 0;
			iVar7 = 0;
			iVar0 = true;
			iVar8 = 10;
			break;
		
		case 83:
			StringCopy(&Var2, "PROPS_P1_E1_0", 16);
			iVar6 = 1;
			iVar7 = 0;
			iVar1 = 75;
			iVar8 = 10;
			break;
		
		case 84:
			StringCopy(&Var2, "PROPS_P1_E1_1", 16);
			iVar6 = 1;
			iVar7 = 1;
			iVar1 = 75;
			iVar8 = 10;
			break;
		
		case 85:
			StringCopy(&Var2, "PROPS_P1_E1_2", 16);
			iVar6 = 1;
			iVar7 = 2;
			iVar1 = 75;
			iVar8 = 10;
			break;
		
		case 86:
			StringCopy(&Var2, "PROPS_P1_E1_3", 16);
			iVar6 = 1;
			iVar7 = 3;
			iVar1 = 75;
			iVar8 = 10;
			break;
		
		case 87:
			StringCopy(&Var2, "PROPS_P1_E1_4", 16);
			iVar6 = 1;
			iVar7 = 4;
			iVar1 = 75;
			iVar8 = 10;
			break;
		
		case 88:
			StringCopy(&Var2, "PROPS_P1_E1_5", 16);
			iVar6 = 1;
			iVar7 = 5;
			iVar1 = 75;
			iVar8 = 10;
			break;
		
		case 89:
			StringCopy(&Var2, "PROPS_P1_E1_6", 16);
			iVar6 = 1;
			iVar7 = 6;
			iVar1 = 75;
			iVar8 = 10;
			break;
		
		case 90:
			StringCopy(&Var2, "PROPS_P1_E1_7", 16);
			iVar6 = 1;
			iVar7 = 7;
			iVar1 = 75;
			iVar8 = 10;
			break;
		
		case 91:
			StringCopy(&Var2, "PROPS_P1_E1_8", 16);
			iVar6 = 1;
			iVar7 = 8;
			iVar1 = 75;
			iVar8 = 10;
			break;
		
		case 92:
			StringCopy(&Var2, "PROPS_P1_E1_9", 16);
			iVar6 = 1;
			iVar7 = 9;
			iVar1 = 75;
			iVar8 = 10;
			break;
		
		case 93:
			StringCopy(&Var2, "PROPS_P1_E2", 16);
			iVar6 = 2;
			iVar7 = 0;
			iVar8 = 10;
			break;
		
		case 94:
			StringCopy(&Var2, "PROPS_P1_E3", 16);
			iVar6 = 3;
			iVar7 = 0;
			iVar1 = 110;
			iVar8 = 10;
			break;
		
		case 95:
			StringCopy(&Var2, "PROPS_P1_E4_0", 16);
			iVar6 = 4;
			iVar7 = 0;
			iVar1 = 120;
			iVar8 = 10;
			break;
		
		case 96:
			StringCopy(&Var2, "PROPS_P1_E4_1", 16);
			iVar6 = 4;
			iVar7 = 1;
			iVar1 = 128;
			iVar8 = 10;
			break;
		
		case 97:
			StringCopy(&Var2, "PROPS_P1_E4_2", 16);
			iVar6 = 4;
			iVar7 = 2;
			iVar1 = 130;
			iVar8 = 10;
			break;
		
		case 98:
			StringCopy(&Var2, "PROPS_P1_E4_3", 16);
			iVar6 = 4;
			iVar7 = 3;
			iVar1 = 140;
			iVar8 = 10;
			break;
		
		case 99:
			StringCopy(&Var2, "PROPS_P1_E4_4", 16);
			iVar6 = 4;
			iVar7 = 4;
			iVar1 = 145;
			iVar8 = 10;
			break;
		
		case 100:
			StringCopy(&Var2, "PROPS_P1_E4_5", 16);
			iVar6 = 4;
			iVar7 = 5;
			iVar1 = 135;
			iVar8 = 10;
			break;
		
		case 101:
			StringCopy(&Var2, "PROPS_P1_E4_6", 16);
			iVar6 = 4;
			iVar7 = 6;
			iVar1 = 138;
			iVar8 = 10;
			break;
		
		case 102:
			StringCopy(&Var2, "PROPS_P1_E5_0", 16);
			iVar6 = 5;
			iVar7 = 0;
			iVar1 = 110;
			iVar8 = 10;
			break;
		
		case 103:
			StringCopy(&Var2, "PROPS_P1_E5_1", 16);
			iVar6 = 5;
			iVar7 = 1;
			iVar1 = 112;
			iVar8 = 10;
			break;
		
		case 104:
			StringCopy(&Var2, "PROPS_P1_E5_2", 16);
			iVar6 = 5;
			iVar7 = 2;
			iVar1 = 115;
			iVar8 = 10;
			break;
		
		case 105:
			StringCopy(&Var2, "PROPS_P1_E5_3", 16);
			iVar6 = 5;
			iVar7 = 3;
			iVar1 = 118;
			iVar8 = 10;
			break;
		
		case 106:
			StringCopy(&Var2, "PROPS_P1_E5_4", 16);
			iVar6 = 5;
			iVar7 = 4;
			iVar1 = 120;
			iVar8 = 10;
			break;
		
		case 107:
			StringCopy(&Var2, "PROPS_P1_E5_5", 16);
			iVar6 = 5;
			iVar7 = 5;
			iVar1 = 125;
			iVar8 = 10;
			break;
		
		case 108:
			StringCopy(&Var2, "PROPS_P1_E5_6", 16);
			iVar6 = 5;
			iVar7 = 6;
			iVar1 = 128;
			iVar8 = 10;
			break;
		
		case 109:
			StringCopy(&Var2, "PROPS_P1_E5_7", 16);
			iVar6 = 5;
			iVar7 = 7;
			iVar1 = 138;
			iVar8 = 10;
			break;
		
		case 110:
			StringCopy(&Var2, "PROPS_P1_E5_8", 16);
			iVar6 = 5;
			iVar7 = 8;
			iVar1 = 140;
			iVar8 = 10;
			break;
		
		case 111:
			StringCopy(&Var2, "PROPS_P1_E5_9", 16);
			iVar6 = 5;
			iVar7 = 9;
			iVar1 = 155;
			iVar8 = 10;
			break;
		
		case 112:
			StringCopy(&Var2, "PROPS_P1_E6_0", 16);
			iVar6 = 6;
			iVar7 = 0;
			iVar1 = 55;
			iVar8 = 10;
			break;
		
		case 113:
			StringCopy(&Var2, "PROPS_P1_E6_1", 16);
			iVar6 = 6;
			iVar7 = 1;
			iVar1 = 55;
			iVar8 = 10;
			break;
		
		case 114:
			StringCopy(&Var2, "PROPS_P1_E6_2", 16);
			iVar6 = 6;
			iVar7 = 2;
			iVar1 = 58;
			iVar8 = 10;
			break;
		
		case 115:
			StringCopy(&Var2, "PROPS_P1_E6_3", 16);
			iVar6 = 6;
			iVar7 = 3;
			iVar1 = 58;
			iVar8 = 10;
			break;
		
		case 116:
			StringCopy(&Var2, "PROPS_P1_E6_4", 16);
			iVar6 = 6;
			iVar7 = 4;
			iVar1 = 60;
			iVar8 = 10;
			break;
		
		case 117:
			StringCopy(&Var2, "PROPS_P1_E6_5", 16);
			iVar6 = 6;
			iVar7 = 5;
			iVar1 = 62;
			iVar8 = 10;
			break;
		
		case 118:
			StringCopy(&Var2, "PROPS_P1_E6_6", 16);
			iVar6 = 6;
			iVar7 = 6;
			iVar1 = 65;
			iVar8 = 10;
			break;
		
		case 119:
			StringCopy(&Var2, "PROPS_P1_E6_7", 16);
			iVar6 = 6;
			iVar7 = 7;
			iVar1 = 68;
			iVar8 = 10;
			break;
		
		case 120:
			StringCopy(&Var2, "PROPS_P1_E6_8", 16);
			iVar6 = 6;
			iVar7 = 8;
			iVar1 = 68;
			iVar8 = 10;
			break;
		
		case 121:
			StringCopy(&Var2, "PROPS_P1_E6_9", 16);
			iVar6 = 6;
			iVar7 = 9;
			iVar1 = 72;
			iVar8 = 10;
			break;
		
		case 122:
			StringCopy(&Var2, "PROPS_P1_E7_0", 16);
			iVar6 = 7;
			iVar7 = 0;
			iVar1 = 145;
			iVar8 = 10;
			break;
		
		case 123:
			StringCopy(&Var2, "PROPS_P1_E7_1", 16);
			iVar6 = 7;
			iVar7 = 1;
			iVar1 = 149;
			iVar8 = 10;
			break;
		
		case 124:
			StringCopy(&Var2, "PROPS_P1_E7_2", 16);
			iVar6 = 7;
			iVar7 = 2;
			iVar1 = 139;
			iVar8 = 10;
			break;
		
		case 125:
			StringCopy(&Var2, "PROPS_P1_E7_3", 16);
			iVar6 = 7;
			iVar7 = 3;
			iVar1 = 149;
			iVar8 = 10;
			break;
		
		case 126:
			StringCopy(&Var2, "PROPS_P1_E7_4", 16);
			iVar6 = 7;
			iVar7 = 4;
			iVar1 = 135;
			iVar8 = 10;
			break;
		
		case 127:
			StringCopy(&Var2, "PROPS_P1_E7_5", 16);
			iVar6 = 7;
			iVar7 = 5;
			iVar1 = 138;
			iVar8 = 10;
			break;
		
		case 128:
			StringCopy(&Var2, "PROPS_P1_E7_6", 16);
			iVar6 = 7;
			iVar7 = 6;
			iVar1 = 140;
			iVar8 = 10;
			break;
		
		case 129:
			StringCopy(&Var2, "PROPS_P1_E7_7", 16);
			iVar6 = 7;
			iVar7 = 7;
			iVar1 = 145;
			iVar8 = 10;
			break;
		
		case 130:
			StringCopy(&Var2, "PROPS_P1_E7_8", 16);
			iVar6 = 7;
			iVar7 = 8;
			iVar1 = 159;
			iVar8 = 10;
			break;
		
		case 131:
			StringCopy(&Var2, "PROPS_P1_E7_9", 16);
			iVar6 = 7;
			iVar7 = 9;
			iVar1 = 155;
			iVar8 = 10;
			break;
		
		case 132:
			StringCopy(&Var2, "PROPS_P1_E8_0", 16);
			iVar6 = 8;
			iVar7 = 0;
			iVar1 = 198;
			iVar8 = 10;
			break;
		
		case 133:
			StringCopy(&Var2, "PROPS_P1_E8_1", 16);
			iVar6 = 8;
			iVar7 = 1;
			iVar1 = 210;
			iVar8 = 10;
			break;
		
		case 134:
			StringCopy(&Var2, "PROPS_P1_E8_2", 16);
			iVar6 = 8;
			iVar7 = 2;
			iVar1 = 185;
			iVar8 = 10;
			break;
		
		case 135:
			StringCopy(&Var2, "PROPS_P1_E8_3", 16);
			iVar6 = 8;
			iVar7 = 3;
			iVar1 = 220;
			iVar8 = 10;
			break;
		
		case 136:
			StringCopy(&Var2, "PROPS_P1_E8_4", 16);
			iVar6 = 8;
			iVar7 = 4;
			iVar1 = 190;
			iVar8 = 10;
			break;
		
		case 137:
			StringCopy(&Var2, "PROPS_P1_E8_5", 16);
			iVar6 = 8;
			iVar7 = 5;
			iVar1 = 200;
			iVar8 = 10;
			break;
		
		case 138:
			StringCopy(&Var2, "PROPS_P1_E8_6", 16);
			iVar6 = 8;
			iVar7 = 6;
			iVar1 = 208;
			iVar8 = 10;
			break;
		
		case 139:
			StringCopy(&Var2, "PROPS_P1_E8_7", 16);
			iVar6 = 8;
			iVar7 = 7;
			iVar1 = 210;
			iVar8 = 10;
			break;
		
		case 140:
			StringCopy(&Var2, "PROPS_P1_E9_0", 16);
			iVar6 = 9;
			iVar7 = 0;
			iVar1 = 165;
			iVar8 = 10;
			break;
		
		case 141:
			StringCopy(&Var2, "PROPS_P1_E9_1", 16);
			iVar6 = 9;
			iVar7 = 1;
			iVar1 = 185;
			iVar8 = 10;
			break;
		
		case 142:
			StringCopy(&Var2, "PROPS_P1_E9_2", 16);
			iVar6 = 9;
			iVar7 = 2;
			iVar1 = 190;
			iVar8 = 10;
			break;
		
		case 143:
			StringCopy(&Var2, "PROPS_P1_E9_3", 16);
			iVar6 = 9;
			iVar7 = 3;
			iVar1 = 178;
			iVar8 = 10;
			break;
		
		case 144:
			StringCopy(&Var2, "PROPS_P1_E9_4", 16);
			iVar6 = 9;
			iVar7 = 4;
			iVar1 = 180;
			iVar8 = 10;
			break;
		
		case 145:
			StringCopy(&Var2, "PROPS_P1_E9_5", 16);
			iVar6 = 9;
			iVar7 = 5;
			iVar1 = 168;
			iVar8 = 10;
			break;
		
		case 146:
			StringCopy(&Var2, "PROPS_P1_E9_6", 16);
			iVar6 = 9;
			iVar7 = 6;
			iVar1 = 170;
			iVar8 = 10;
			break;
		
		case 147:
			StringCopy(&Var2, "PROPS_P1_E9_7", 16);
			iVar6 = 9;
			iVar7 = 7;
			iVar1 = 175;
			iVar8 = 10;
			break;
		
		case 148:
			StringCopy(&Var2, "PROPS_P1_E9_8", 16);
			iVar6 = 9;
			iVar7 = 8;
			iVar1 = 170;
			iVar8 = 10;
			break;
		
		case 149:
			StringCopy(&Var2, "PROPS_P1_E9_9", 16);
			iVar6 = 9;
			iVar7 = 9;
			iVar1 = 178;
			iVar8 = 10;
			break;
		
		case 150:
			StringCopy(&Var2, "PROPS_P1_E10_0", 16);
			iVar6 = 10;
			iVar7 = 0;
			iVar1 = 140;
			iVar8 = 10;
			break;
		
		case 151:
			StringCopy(&Var2, "PROPS_P1_E10_1", 16);
			iVar6 = 10;
			iVar7 = 1;
			iVar1 = 145;
			iVar8 = 10;
			break;
		
		case 152:
			StringCopy(&Var2, "PROPS_P1_E10_2", 16);
			iVar6 = 10;
			iVar7 = 2;
			iVar1 = 150;
			iVar8 = 10;
			break;
		
		case 153:
			StringCopy(&Var2, "PROPS_P1_E10_3", 16);
			iVar6 = 10;
			iVar7 = 3;
			iVar1 = 165;
			iVar8 = 10;
			break;
		
		case 154:
			StringCopy(&Var2, "PROPS_P1_E10_4", 16);
			iVar6 = 10;
			iVar7 = 4;
			iVar1 = 168;
			iVar8 = 10;
			break;
		
		case 155:
			StringCopy(&Var2, "PROPS_P1_E10_5", 16);
			iVar6 = 10;
			iVar7 = 5;
			iVar1 = 178;
			iVar8 = 10;
			break;
		
		case 156:
			StringCopy(&Var2, "PROPS_P1_E10_6", 16);
			iVar6 = 10;
			iVar7 = 6;
			iVar1 = 160;
			iVar8 = 10;
			break;
		
		case 157:
			StringCopy(&Var2, "NO_LABEL", 16);
			iVar6 = 11;
			iVar7 = 0;
			iVar1 = 100;
			iVar8 = 10;
			break;
		
		case 10:
			StringCopy(&Var2, "PROPS_P1_H0_0", 16);
			iVar6 = 0;
			iVar7 = 0;
			iVar1 = 320;
			iVar8 = 0;
			break;
		
		case 11:
			StringCopy(&Var2, "NO_LABEL", 16);
			iVar6 = 1;
			iVar7 = 0;
			iVar0 = true;
			iVar8 = 0;
			break;
		
		case 12:
			StringCopy(&Var2, "NO_LABEL", 16);
			iVar6 = 2;
			iVar7 = 0;
			iVar0 = true;
			iVar8 = 0;
			break;
		
		case 13:
			StringCopy(&Var2, "PROPS_P1_H3_0", 16);
			iVar6 = 3;
			iVar7 = 0;
			iVar8 = 0;
			break;
		
		case 14:
			StringCopy(&Var2, "NO_LABEL", 16);
			iVar6 = 4;
			iVar7 = 0;
			iVar8 = 0;
			break;
		
		case 15:
			StringCopy(&Var2, "NO_LABEL", 16);
			iVar6 = 5;
			iVar7 = 0;
			iVar0 = true;
			iVar8 = 0;
			break;
		
		case 16:
			StringCopy(&Var2, "NO_LABEL", 16);
			iVar6 = 6;
			iVar7 = 0;
			iVar8 = 0;
			break;
		
		case 17:
			StringCopy(&Var2, "NO_LABEL", 16);
			iVar6 = 6;
			iVar7 = 1;
			iVar8 = 0;
			break;
		
		case 18:
			StringCopy(&Var2, "NO_LABEL", 16);
			iVar6 = 6;
			iVar7 = 2;
			iVar8 = 0;
			break;
		
		case 19:
			StringCopy(&Var2, "NO_LABEL", 16);
			iVar6 = 6;
			iVar7 = 3;
			iVar8 = 0;
			break;
		
		case 20:
			StringCopy(&Var2, "NO_LABEL", 16);
			iVar6 = 6;
			iVar7 = 4;
			iVar8 = 0;
			break;
		
		case 21:
			StringCopy(&Var2, "NO_LABEL", 16);
			iVar6 = 6;
			iVar7 = 5;
			iVar8 = 0;
			break;
		
		case 22:
			StringCopy(&Var2, "NO_LABEL", 16);
			iVar6 = 6;
			iVar7 = 6;
			iVar8 = 0;
			break;
		
		case 23:
			StringCopy(&Var2, "NO_LABEL", 16);
			iVar6 = 6;
			iVar7 = 7;
			iVar8 = 0;
			break;
		
		case 24:
			StringCopy(&Var2, "NO_LABEL", 16);
			iVar6 = 6;
			iVar7 = 8;
			iVar8 = 0;
			break;
		
		case 25:
			StringCopy(&Var2, "NO_LABEL", 16);
			iVar6 = 7;
			iVar7 = 0;
			iVar0 = true;
			iVar8 = 0;
			break;
		
		case 26:
			StringCopy(&Var2, "PROPS_P1_H8_0", 16);
			iVar6 = 8;
			iVar7 = 0;
			iVar1 = 270;
			iVar8 = 0;
			break;
		
		case 27:
			StringCopy(&Var2, "PROPS_P1_H8_1", 16);
			iVar6 = 8;
			iVar7 = 1;
			iVar1 = 270;
			iVar8 = 0;
			break;
		
		case 28:
			StringCopy(&Var2, "PROPS_P1_H9_0", 16);
			iVar6 = 9;
			iVar7 = 0;
			iVar1 = 200;
			iVar8 = 0;
			break;
		
		case 29:
			StringCopy(&Var2, "PROPS_P1_H9_1", 16);
			iVar6 = 9;
			iVar7 = 1;
			iVar1 = 200;
			iVar8 = 0;
			break;
		
		case 30:
			StringCopy(&Var2, "PROPS_P1_H10_0", 16);
			iVar6 = 10;
			iVar7 = 0;
			iVar1 = 350;
			iVar8 = 0;
			break;
		
		case 31:
			StringCopy(&Var2, "PROPS_P1_H10_1", 16);
			iVar6 = 10;
			iVar7 = 1;
			iVar1 = 350;
			iVar8 = 0;
			break;
		
		case 32:
			StringCopy(&Var2, "PROPS_P1_H11_0", 16);
			iVar6 = 11;
			iVar7 = 0;
			iVar1 = 450;
			iVar8 = 0;
			break;
		
		case 33:
			StringCopy(&Var2, "PROPS_P1_H12_0", 16);
			iVar6 = 12;
			iVar7 = 0;
			iVar1 = 500;
			iVar8 = 0;
			break;
		
		case 34:
			StringCopy(&Var2, "PROPS_P1_H12_1", 16);
			iVar6 = 12;
			iVar7 = 1;
			iVar1 = 500;
			iVar8 = 0;
			break;
		
		case 35:
			StringCopy(&Var2, "PROPS_P1_H13_0", 16);
			iVar6 = 13;
			iVar7 = 0;
			iVar1 = 50;
			iVar8 = 0;
			break;
		
		case 36:
			StringCopy(&Var2, "PROPS_P1_H13_1", 16);
			iVar6 = 13;
			iVar7 = 1;
			iVar1 = 50;
			iVar8 = 0;
			break;
		
		case 37:
			StringCopy(&Var2, "PROPS_P1_H14_0", 16);
			iVar6 = 14;
			iVar7 = 0;
			iVar1 = 99;
			iVar8 = 0;
			break;
		
		case 38:
			StringCopy(&Var2, "PROPS_P1_H14_1", 16);
			iVar6 = 14;
			iVar7 = 1;
			iVar1 = 99;
			iVar8 = 0;
			break;
		
		case 39:
			StringCopy(&Var2, "PROPS_P1_H14_2", 16);
			iVar6 = 14;
			iVar7 = 2;
			iVar1 = 99;
			iVar8 = 0;
			break;
		
		case 40:
			StringCopy(&Var2, "NO_LABEL", 16);
			iVar6 = 15;
			iVar7 = 0;
			iVar0 = true;
			iVar8 = 0;
			break;
		
		case 41:
			StringCopy(&Var2, "PROPS_P1_H19_0", 16);
			iVar6 = 16;
			iVar7 = 0;
			iVar8 = 0;
			break;
		
		case 42:
			StringCopy(&Var2, "PROPS_P1_H19_1", 16);
			iVar6 = 16;
			iVar7 = 1;
			iVar8 = 0;
			break;
		
		case 43:
			StringCopy(&Var2, "PROPS_P1_H19_2", 16);
			iVar6 = 16;
			iVar7 = 2;
			iVar8 = 0;
			break;
		
		case 44:
			StringCopy(&Var2, "PROPS_P1_H19_3", 16);
			iVar6 = 16;
			iVar7 = 3;
			iVar8 = 0;
			break;
		
		case 45:
			StringCopy(&Var2, "PROPS_P1_H19_4", 16);
			iVar6 = 16;
			iVar7 = 4;
			iVar8 = 0;
			break;
		
		case 46:
			StringCopy(&Var2, "PROPS_P1_H19_5", 16);
			iVar6 = 16;
			iVar7 = 5;
			iVar8 = 0;
			break;
		
		case 47:
			StringCopy(&Var2, "PROPS_P1_H19_6", 16);
			iVar6 = 16;
			iVar7 = 6;
			iVar8 = 0;
			break;
		
		case 48:
			StringCopy(&Var2, "PROPS_P1_H19_7", 16);
			iVar6 = 16;
			iVar7 = 7;
			iVar8 = 0;
			break;
		
		case 49:
			StringCopy(&Var2, "PROPS_P1_H19_8", 16);
			iVar6 = 16;
			iVar7 = 8;
			iVar8 = 0;
			break;
		
		case 50:
			StringCopy(&Var2, "PROPS_P1_H19_9", 16);
			iVar6 = 16;
			iVar7 = 9;
			iVar8 = 0;
			break;
		
		case 51:
			StringCopy(&Var2, "PROPS_P1_H19_10", 16);
			iVar6 = 16;
			iVar7 = 10;
			iVar8 = 0;
			break;
		
		case 52:
			StringCopy(&Var2, "PROPS_P1_H19_11", 16);
			iVar6 = 16;
			iVar7 = 11;
			iVar8 = 0;
			break;
		
		case 53:
			StringCopy(&Var2, "PROPS_P1_H19_12", 16);
			iVar6 = 16;
			iVar7 = 12;
			iVar8 = 0;
			break;
		
		case 54:
			StringCopy(&Var2, "PROPS_P1_H19_13", 16);
			iVar6 = 16;
			iVar7 = 13;
			iVar8 = 0;
			break;
		
		case 55:
			StringCopy(&Var2, "PROPS_P1_H19_14", 16);
			iVar6 = 16;
			iVar7 = 14;
			iVar8 = 0;
			break;
		
		case 56:
			StringCopy(&Var2, "PROPS_P1_H19_15", 16);
			iVar6 = 16;
			iVar7 = 15;
			iVar8 = 0;
			break;
		
		case 57:
			StringCopy(&Var2, "NO_LABEL", 16);
			iVar6 = 17;
			iVar7 = 0;
			iVar8 = 0;
			break;
		
		case 58:
			StringCopy(&Var2, "NO_LABEL", 16);
			iVar6 = 17;
			iVar7 = 1;
			iVar8 = 0;
			break;
		
		case 59:
			StringCopy(&Var2, "NO_LABEL", 16);
			iVar6 = 17;
			iVar7 = 2;
			iVar8 = 0;
			break;
		
		case 60:
			StringCopy(&Var2, "NO_LABEL", 16);
			iVar6 = 17;
			iVar7 = 3;
			iVar8 = 0;
			break;
		
		case 61:
			StringCopy(&Var2, "NO_LABEL", 16);
			iVar6 = 17;
			iVar7 = 4;
			iVar8 = 0;
			break;
		
		case 62:
			StringCopy(&Var2, "NO_LABEL", 16);
			iVar6 = 17;
			iVar7 = 5;
			iVar8 = 0;
			break;
		
		case 63:
			StringCopy(&Var2, "NO_LABEL", 16);
			iVar6 = 18;
			iVar7 = 0;
			iVar8 = 0;
			break;
		
		case 64:
			StringCopy(&Var2, "PROPS_P1_H19_0", 16);
			iVar6 = 19;
			iVar7 = 0;
			iVar1 = 30;
			iVar8 = 0;
			break;
		
		case 65:
			StringCopy(&Var2, "PROPS_P1_H19_1", 16);
			iVar6 = 19;
			iVar7 = 1;
			iVar1 = 30;
			iVar8 = 0;
			break;
		
		case 66:
			StringCopy(&Var2, "PROPS_P1_H19_2", 16);
			iVar6 = 19;
			iVar7 = 2;
			iVar1 = 32;
			iVar8 = 0;
			break;
		
		case 67:
			StringCopy(&Var2, "PROPS_P1_H19_3", 16);
			iVar6 = 19;
			iVar7 = 3;
			iVar1 = 35;
			iVar8 = 0;
			break;
		
		case 68:
			StringCopy(&Var2, "PROPS_P1_H19_4", 16);
			iVar6 = 19;
			iVar7 = 4;
			iVar1 = 38;
			iVar8 = 0;
			break;
		
		case 69:
			StringCopy(&Var2, "PROPS_P1_H19_5", 16);
			iVar6 = 19;
			iVar7 = 5;
			iVar1 = 42;
			iVar8 = 0;
			break;
		
		case 70:
			StringCopy(&Var2, "PROPS_P1_H19_6", 16);
			iVar6 = 19;
			iVar7 = 6;
			iVar1 = 42;
			iVar8 = 0;
			break;
		
		case 71:
			StringCopy(&Var2, "PROPS_P1_H19_7", 16);
			iVar6 = 19;
			iVar7 = 7;
			iVar1 = 40;
			iVar8 = 0;
			break;
		
		case 72:
			StringCopy(&Var2, "PROPS_P1_H19_8", 16);
			iVar6 = 19;
			iVar7 = 8;
			iVar1 = 45;
			iVar8 = 0;
			break;
		
		case 73:
			StringCopy(&Var2, "PROPS_P1_H19_9", 16);
			iVar6 = 19;
			iVar7 = 9;
			iVar1 = 48;
			iVar8 = 0;
			break;
		
		case 74:
			StringCopy(&Var2, "PROPS_P1_H19_10", 16);
			iVar6 = 19;
			iVar7 = 10;
			iVar1 = 25;
			iVar8 = 0;
			break;
		
		case 75:
			StringCopy(&Var2, "PROPS_P1_H19_11", 16);
			iVar6 = 19;
			iVar7 = 11;
			iVar1 = 25;
			iVar8 = 0;
			break;
		
		case 76:
			StringCopy(&Var2, "PROPS_P1_H19_12", 16);
			iVar6 = 19;
			iVar7 = 12;
			iVar1 = 28;
			iVar8 = 0;
			break;
		
		case 77:
			StringCopy(&Var2, "PROPS_P1_H19_13", 16);
			iVar6 = 19;
			iVar7 = 13;
			iVar1 = 28;
			iVar8 = 0;
			break;
		
		case 78:
			StringCopy(&Var2, "PROPS_P1_H19_14", 16);
			iVar6 = 19;
			iVar7 = 14;
			iVar1 = 30;
			iVar8 = 0;
			break;
		
		case 79:
			StringCopy(&Var2, "PROPS_P1_H19_15", 16);
			iVar6 = 19;
			iVar7 = 15;
			iVar1 = 35;
			iVar8 = 0;
			break;
		
		case 80:
			StringCopy(&Var2, "NO_LABEL", 16);
			iVar6 = 20;
			iVar7 = 0;
			iVar8 = 0;
			break;
		
		case 81:
			StringCopy(&Var2, "NO_LABEL", 16);
			iVar6 = 21;
			iVar7 = 0;
			iVar8 = 0;
			break;
		
		default:
			func_203(iVar10, iParam0, 175);
			return;
			break;
	}
	func_195(&(Global_69518[0 /*14*/]), iVar10, iParam0, &Var2, iVar6, iVar7, iVar1, iVar0, iVar8, iVar9, 0);
}

void func_304(int iParam0)//Position - 0x4DEEF
{
	int iVar0;
	int iVar1;
	struct<2> Var2;
	int iVar6;
	int iVar7;
	int iVar8;
	int iVar9;
	int iVar10;
	
	iVar0 = false;
	iVar1 = 10;
	iVar6 = 0;
	iVar7 = 0;
	iVar8 = -1;
	iVar9 = 2;
	iVar10 = 13;
	Global_69518[0 /*14*/].f_5 = 1;
	switch (iParam0)
	{
		case 31:
			StringCopy(&Var2, "NO_LABEL", 16);
			iVar6 = 0;
			iVar7 = 0;
			break;
		
		case 0:
			StringCopy(&Var2, "NO_LABEL", 16);
			iVar6 = 0;
			iVar7 = 0;
			break;
		
		case 1:
			StringCopy(&Var2, "NO_LABEL", 16);
			iVar6 = 0;
			iVar7 = 0;
			iVar0 = true;
			break;
		
		case 2:
			StringCopy(&Var2, "NO_LABEL", 16);
			iVar6 = 0;
			iVar7 = 0;
			iVar0 = true;
			break;
		
		case 3:
			StringCopy(&Var2, "NO_LABEL", 16);
			iVar6 = 0;
			iVar7 = 0;
			iVar0 = true;
			break;
		
		case 4:
			StringCopy(&Var2, "NO_LABEL", 16);
			iVar6 = 0;
			iVar7 = 0;
			break;
		
		case 5:
			StringCopy(&Var2, "NO_LABEL", 16);
			iVar6 = 0;
			iVar7 = 0;
			iVar0 = true;
			break;
		
		case 6:
			StringCopy(&Var2, "NO_LABEL", 16);
			iVar6 = 0;
			iVar7 = 0;
			break;
		
		case 7:
			StringCopy(&Var2, "NO_LABEL", 16);
			iVar6 = 0;
			iVar7 = 0;
			break;
		
		case 8:
			StringCopy(&Var2, "NO_LABEL", 16);
			iVar6 = 0;
			iVar7 = 0;
			break;
		
		default:
			func_203(iVar10, iParam0, 9);
			return;
			break;
	}
	func_195(&(Global_69518[0 /*14*/]), iVar10, iParam0, &Var2, iVar6, iVar7, iVar1, iVar0, iVar8, iVar9, 0);
}

void func_305(int iParam0)//Position - 0x4E03F
{
	int iVar0;
	int iVar1;
	struct<2> Var2;
	int iVar6;
	int iVar7;
	int iVar8;
	int iVar9;
	int iVar10;
	
	iVar0 = false;
	iVar1 = 10;
	iVar6 = 0;
	iVar7 = 0;
	iVar8 = -1;
	iVar9 = 2;
	iVar10 = 12;
	Global_69518[0 /*14*/].f_5 = 1;
	switch (iParam0)
	{
		case 0:
			StringCopy(&Var2, "OUTFIT_P1_0", 16);
			iVar6 = 0;
			iVar7 = 0;
			iVar0 = true;
			break;
		
		case 1:
			StringCopy(&Var2, "OUTFIT_P1_2", 16);
			iVar6 = 0;
			iVar7 = 0;
			break;
		
		case 2:
			StringCopy(&Var2, "OUTFIT_P1_4", 16);
			iVar6 = 0;
			iVar7 = 0;
			break;
		
		case 3:
			StringCopy(&Var2, "NO_LABEL", 16);
			iVar6 = 0;
			iVar7 = 0;
			break;
		
		case 4:
			StringCopy(&Var2, "OUTFIT_P1_7", 16);
			iVar6 = 0;
			iVar7 = 0;
			break;
		
		case 5:
			StringCopy(&Var2, "OUTFIT_P1_10", 16);
			iVar6 = 0;
			iVar7 = 0;
			break;
		
		case 6:
			StringCopy(&Var2, "OUTFIT_P1_11", 16);
			iVar6 = 0;
			iVar7 = 0;
			break;
		
		case 7:
			StringCopy(&Var2, "OUTFIT_P1_12", 16);
			iVar6 = 0;
			iVar7 = 0;
			break;
		
		case 8:
			StringCopy(&Var2, "OUTFIT_P1_13", 16);
			iVar6 = 0;
			iVar7 = 0;
			break;
		
		case 9:
			StringCopy(&Var2, "OUTFIT_P1_15", 16);
			iVar6 = 0;
			iVar7 = 0;
			break;
		
		case 10:
			StringCopy(&Var2, "OUTFIT_P1_16", 16);
			iVar6 = 0;
			iVar7 = 0;
			break;
		
		case 11:
			StringCopy(&Var2, "OUTFIT_P1_17", 16);
			iVar6 = 0;
			iVar7 = 0;
			iVar1 = 10000;
			break;
		
		case 12:
			StringCopy(&Var2, "OUTFIT_P1_18", 16);
			iVar6 = 0;
			iVar7 = 0;
			break;
		
		case 13:
			StringCopy(&Var2, "OUTFIT_P1_19", 16);
			iVar6 = 0;
			iVar7 = 0;
			iVar1 = 105;
			break;
		
		case 14:
			StringCopy(&Var2, "OUTFIT_P1_20", 16);
			iVar6 = 0;
			iVar7 = 0;
			iVar1 = 105;
			break;
		
		case 15:
			StringCopy(&Var2, "OUTFIT_P1_21", 16);
			iVar6 = 0;
			iVar7 = 0;
			iVar1 = 105;
			break;
		
		case 16:
			StringCopy(&Var2, "OUTFIT_P1_22", 16);
			iVar6 = 0;
			iVar7 = 0;
			break;
		
		case 17:
			StringCopy(&Var2, "OUTFIT_P1_23", 16);
			iVar6 = 0;
			iVar7 = 0;
			break;
		
		case 18:
			StringCopy(&Var2, "OUTFIT_P1_24", 16);
			iVar6 = 0;
			iVar7 = 0;
			break;
		
		case 19:
			StringCopy(&Var2, "OUTFIT_P1_25", 16);
			iVar6 = 0;
			iVar7 = 0;
			break;
		
		case 20:
			StringCopy(&Var2, "OUTFIT_P1_26", 16);
			iVar6 = 0;
			iVar7 = 0;
			break;
		
		case 21:
			StringCopy(&Var2, "OUTFIT_P1_27", 16);
			iVar6 = 0;
			iVar7 = 0;
			break;
		
		case 22:
			StringCopy(&Var2, "OUTFIT_P1_28", 16);
			iVar6 = 0;
			iVar7 = 0;
			iVar1 = 4000;
			break;
		
		case 23:
			StringCopy(&Var2, "OUTFIT_P1_29", 16);
			iVar6 = 0;
			iVar7 = 0;
			iVar1 = 4500;
			break;
		
		case 24:
			StringCopy(&Var2, "OUTFIT_P1_30", 16);
			iVar6 = 0;
			iVar7 = 0;
			iVar1 = 4500;
			break;
		
		case 25:
			StringCopy(&Var2, "OUTFIT_P1_31", 16);
			iVar6 = 0;
			iVar7 = 0;
			iVar1 = 4650;
			break;
		
		case 26:
			StringCopy(&Var2, "OUTFIT_P1_32", 16);
			iVar6 = 0;
			iVar7 = 0;
			iVar1 = 4900;
			break;
		
		case 27:
			StringCopy(&Var2, "OUTFIT_P1_33", 16);
			iVar6 = 0;
			iVar7 = 0;
			iVar1 = 5000;
			break;
		
		case 28:
			StringCopy(&Var2, "OUTFIT_P1_34", 16);
			iVar6 = 0;
			iVar7 = 0;
			iVar1 = 4750;
			break;
		
		case 29:
			StringCopy(&Var2, "OUTFIT_P1_35", 16);
			iVar6 = 0;
			iVar7 = 0;
			iVar1 = 4750;
			break;
		
		case 30:
			StringCopy(&Var2, "OUTFIT_P1_36", 16);
			iVar6 = 0;
			iVar7 = 0;
			iVar1 = 5200;
			break;
		
		case 31:
			StringCopy(&Var2, "OUTFIT_P1_37", 16);
			iVar6 = 0;
			iVar7 = 0;
			iVar1 = 5200;
			break;
		
		case 32:
			StringCopy(&Var2, "OUTFIT_P1_38", 16);
			iVar6 = 0;
			iVar7 = 0;
			iVar1 = 5500;
			break;
		
		case 33:
			StringCopy(&Var2, "OUTFIT_P1_39", 16);
			iVar6 = 0;
			iVar7 = 0;
			iVar1 = 5900;
			break;
		
		case 34:
			StringCopy(&Var2, "OUTFIT_P1_40", 16);
			iVar6 = 0;
			iVar7 = 0;
			iVar1 = 5900;
			break;
		
		case 35:
			StringCopy(&Var2, "OUTFIT_P1_41", 16);
			iVar6 = 0;
			iVar7 = 0;
			iVar1 = 5900;
			break;
		
		case 36:
			StringCopy(&Var2, "OUTFIT_P1_42", 16);
			iVar6 = 0;
			iVar7 = 0;
			iVar1 = 5900;
			break;
		
		case 37:
			StringCopy(&Var2, "OUTFIT_P1_43", 16);
			iVar6 = 0;
			iVar7 = 0;
			iVar1 = 5900;
			break;
		
		case 38:
			StringCopy(&Var2, "OUTFIT_P1_47", 16);
			iVar6 = 0;
			iVar7 = 0;
			iVar1 = 3000;
			break;
		
		case 39:
			StringCopy(&Var2, "OUTFIT_P1_48", 16);
			iVar6 = 0;
			iVar7 = 0;
			iVar1 = 3000;
			break;
		
		case 40:
			StringCopy(&Var2, "OUTFIT_P1_49", 16);
			iVar6 = 0;
			iVar7 = 0;
			iVar1 = 3000;
			break;
		
		case 41:
			StringCopy(&Var2, "OUTFIT_P1_10", 16);
			iVar6 = 0;
			iVar7 = 0;
			break;
		
		case 42:
			StringCopy(&Var2, "OUTFIT_P1_50", 16);
			iVar6 = 0;
			iVar7 = 0;
			break;
		
		case 43:
			StringCopy(&Var2, "OUTFIT_P1_51", 16);
			iVar6 = 0;
			iVar7 = 0;
			break;
		
		case 44:
			StringCopy(&Var2, "OUTFIT_P1_52", 16);
			iVar6 = 0;
			iVar7 = 0;
			break;
		
		case 45:
			StringCopy(&Var2, "OUTFIT_P1_53", 16);
			iVar6 = 0;
			iVar7 = 0;
			break;
		
		case 46:
			StringCopy(&Var2, "OUTFIT_P1_54", 16);
			iVar6 = 0;
			iVar7 = 0;
			break;
		
		default:
			func_203(iVar10, iParam0, 47);
			return;
			break;
	}
	func_195(&(Global_69518[0 /*14*/]), iVar10, iParam0, &Var2, iVar6, iVar7, iVar1, iVar0, iVar8, iVar9, 0);
}

void func_306(int iParam0)//Position - 0x4E549
{
	int iVar0;
	int iVar1;
	struct<2> Var2;
	int iVar6;
	int iVar7;
	int iVar8;
	int iVar9;
	int iVar10;
	
	iVar0 = false;
	iVar1 = 10;
	iVar6 = 0;
	iVar7 = 0;
	iVar8 = -1;
	iVar9 = 2;
	iVar10 = 11;
	Global_69518[0 /*14*/].f_5 = 1;
	switch (iParam0)
	{
		case 0:
			StringCopy(&Var2, "NO_LABEL", 16);
			iVar6 = 0;
			iVar7 = 0;
			break;
		
		case 1:
			StringCopy(&Var2, "NO_LABEL", 16);
			iVar6 = 1;
			iVar7 = 0;
			break;
		
		case 2:
			StringCopy(&Var2, "NO_LABEL", 16);
			iVar6 = 1;
			iVar7 = 1;
			break;
		
		case 3:
			StringCopy(&Var2, "NO_LABEL", 16);
			iVar6 = 1;
			iVar7 = 2;
			break;
		
		case 4:
			StringCopy(&Var2, "NO_LABEL", 16);
			iVar6 = 1;
			iVar7 = 3;
			break;
		
		case 5:
			StringCopy(&Var2, "JBIB_P1_1_0", 16);
			iVar6 = 2;
			iVar7 = 0;
			break;
		
		case 6:
			StringCopy(&Var2, "JBIB_P1_1_1", 16);
			iVar6 = 2;
			iVar7 = 1;
			break;
		
		case 7:
			StringCopy(&Var2, "JBIB_P1_1_2", 16);
			iVar6 = 2;
			iVar7 = 2;
			break;
		
		case 8:
			StringCopy(&Var2, "JBIB_P1_1_3", 16);
			iVar6 = 2;
			iVar7 = 3;
			break;
		
		case 9:
			StringCopy(&Var2, "JBIB_P1_3_0", 16);
			iVar6 = 3;
			iVar7 = 0;
			break;
		
		case 10:
			StringCopy(&Var2, "JBIB_P1_3_1", 16);
			iVar6 = 3;
			iVar7 = 1;
			break;
		
		case 11:
			StringCopy(&Var2, "JBIB_P1_3_2", 16);
			iVar6 = 3;
			iVar7 = 2;
			break;
		
		case 12:
			StringCopy(&Var2, "JBIB_P1_3_3", 16);
			iVar6 = 3;
			iVar7 = 3;
			break;
		
		case 13:
			StringCopy(&Var2, "JBIB_P1_3_4", 16);
			iVar6 = 3;
			iVar7 = 4;
			break;
		
		case 14:
			StringCopy(&Var2, "JBIB_P1_3_5", 16);
			iVar6 = 3;
			iVar7 = 5;
			break;
		
		case 15:
			StringCopy(&Var2, "JBIB_P1_3_6", 16);
			iVar6 = 3;
			iVar7 = 6;
			break;
		
		case 16:
			StringCopy(&Var2, "JBIB_P1_3_7", 16);
			iVar6 = 3;
			iVar7 = 7;
			break;
		
		case 17:
			StringCopy(&Var2, "JBIB_P1_3_8", 16);
			iVar6 = 3;
			iVar7 = 8;
			break;
		
		case 18:
			StringCopy(&Var2, "JBIB_P1_3_9", 16);
			iVar6 = 3;
			iVar7 = 9;
			break;
		
		case 19:
			StringCopy(&Var2, "JBIB_P1_3_10", 16);
			iVar6 = 3;
			iVar7 = 10;
			break;
		
		case 20:
			StringCopy(&Var2, "JBIB_P1_3_11", 16);
			iVar6 = 3;
			iVar7 = 11;
			break;
		
		case 21:
			StringCopy(&Var2, "JBIB_P1_3_12", 16);
			iVar6 = 3;
			iVar7 = 12;
			break;
		
		case 22:
			StringCopy(&Var2, "JBIB_P1_3_13", 16);
			iVar6 = 3;
			iVar7 = 13;
			break;
		
		case 23:
			StringCopy(&Var2, "JBIB_P1_3_14", 16);
			iVar6 = 3;
			iVar7 = 14;
			break;
		
		case 24:
			StringCopy(&Var2, "JBIB_P1_3_15", 16);
			iVar6 = 3;
			iVar7 = 15;
			break;
		
		case 25:
			StringCopy(&Var2, "JBIB_P1_3_0", 16);
			iVar6 = 4;
			iVar7 = 0;
			break;
		
		case 26:
			StringCopy(&Var2, "JBIB_P1_3_1", 16);
			iVar6 = 4;
			iVar7 = 1;
			break;
		
		case 27:
			StringCopy(&Var2, "JBIB_P1_3_2", 16);
			iVar6 = 4;
			iVar7 = 2;
			break;
		
		case 28:
			StringCopy(&Var2, "JBIB_P1_3_3", 16);
			iVar6 = 4;
			iVar7 = 3;
			break;
		
		case 29:
			StringCopy(&Var2, "JBIB_P1_3_4", 16);
			iVar6 = 4;
			iVar7 = 4;
			break;
		
		case 30:
			StringCopy(&Var2, "JBIB_P1_3_5", 16);
			iVar6 = 4;
			iVar7 = 5;
			break;
		
		case 31:
			StringCopy(&Var2, "JBIB_P1_3_6", 16);
			iVar6 = 4;
			iVar7 = 6;
			break;
		
		case 32:
			StringCopy(&Var2, "JBIB_P1_3_7", 16);
			iVar6 = 4;
			iVar7 = 7;
			break;
		
		case 33:
			StringCopy(&Var2, "JBIB_P1_3_8", 16);
			iVar6 = 4;
			iVar7 = 8;
			break;
		
		case 34:
			StringCopy(&Var2, "JBIB_P1_3_9", 16);
			iVar6 = 4;
			iVar7 = 9;
			break;
		
		case 35:
			StringCopy(&Var2, "JBIB_P1_3_10", 16);
			iVar6 = 4;
			iVar7 = 10;
			break;
		
		case 36:
			StringCopy(&Var2, "JBIB_P1_3_11", 16);
			iVar6 = 4;
			iVar7 = 11;
			break;
		
		case 37:
			StringCopy(&Var2, "JBIB_P1_3_12", 16);
			iVar6 = 4;
			iVar7 = 12;
			break;
		
		case 38:
			StringCopy(&Var2, "JBIB_P1_3_13", 16);
			iVar6 = 4;
			iVar7 = 13;
			break;
		
		case 39:
			StringCopy(&Var2, "JBIB_P1_3_14", 16);
			iVar6 = 4;
			iVar7 = 14;
			break;
		
		case 40:
			StringCopy(&Var2, "JBIB_P1_3_15", 16);
			iVar6 = 4;
			iVar7 = 15;
			break;
		
		case 41:
			StringCopy(&Var2, "JBIB_P1_5_0", 16);
			iVar6 = 5;
			iVar7 = 0;
			break;
		
		case 42:
			StringCopy(&Var2, "JBIB_P1_6_0", 16);
			iVar6 = 6;
			iVar7 = 0;
			break;
		
		case 43:
			StringCopy(&Var2, "JBIB_P1_6_1", 16);
			iVar6 = 6;
			iVar7 = 1;
			break;
		
		case 44:
			StringCopy(&Var2, "JBIB_P1_7_0", 16);
			iVar6 = 7;
			iVar7 = 0;
			break;
		
		case 45:
			StringCopy(&Var2, "JBIB_P1_8_0", 16);
			iVar6 = 8;
			iVar7 = 0;
			break;
		
		case 46:
			StringCopy(&Var2, "JBIB_P1_9_0", 16);
			iVar6 = 9;
			iVar7 = 0;
			break;
		
		case 47:
			StringCopy(&Var2, "JBIB_P1_10_0", 16);
			iVar6 = 10;
			iVar7 = 0;
			break;
		
		case 48:
			StringCopy(&Var2, "JBIB_P1_10_1", 16);
			iVar6 = 10;
			iVar7 = 1;
			iVar1 = 48;
			break;
		
		case 49:
			StringCopy(&Var2, "JBIB_P1_10_2", 16);
			iVar6 = 10;
			iVar7 = 2;
			iVar1 = 35;
			break;
		
		case 50:
			StringCopy(&Var2, "JBIB_P1_10_3", 16);
			iVar6 = 10;
			iVar7 = 3;
			iVar1 = 32;
			break;
		
		case 51:
			StringCopy(&Var2, "JBIB_P1_10_4", 16);
			iVar6 = 10;
			iVar7 = 4;
			iVar1 = 35;
			break;
		
		case 52:
			StringCopy(&Var2, "JBIB_P1_10_5", 16);
			iVar6 = 10;
			iVar7 = 5;
			iVar1 = 48;
			break;
		
		case 53:
			StringCopy(&Var2, "JBIB_P1_10_6", 16);
			iVar6 = 10;
			iVar7 = 6;
			iVar1 = 52;
			break;
		
		case 54:
			StringCopy(&Var2, "JBIB_P1_10_7", 16);
			iVar6 = 10;
			iVar7 = 7;
			iVar1 = 38;
			break;
		
		case 55:
			StringCopy(&Var2, "JBIB_P1_10_8", 16);
			iVar6 = 10;
			iVar7 = 8;
			iVar1 = 42;
			break;
		
		case 56:
			StringCopy(&Var2, "JBIB_P1_10_9", 16);
			iVar6 = 10;
			iVar7 = 9;
			iVar1 = 38;
			break;
		
		case 57:
			StringCopy(&Var2, "JBIB_P1_10_10", 16);
			iVar6 = 10;
			iVar7 = 10;
			iVar1 = 35;
			break;
		
		case 58:
			StringCopy(&Var2, "JBIB_P1_10_11", 16);
			iVar6 = 10;
			iVar7 = 11;
			iVar1 = 48;
			break;
		
		case 59:
			StringCopy(&Var2, "JBIB_P1_10_12", 16);
			iVar6 = 10;
			iVar7 = 12;
			iVar1 = 42;
			break;
		
		case 60:
			StringCopy(&Var2, "JBIB_P1_10_13", 16);
			iVar6 = 10;
			iVar7 = 13;
			iVar1 = 45;
			break;
		
		case 61:
			StringCopy(&Var2, "JBIB_P1_10_14", 16);
			iVar6 = 10;
			iVar7 = 14;
			iVar1 = 45;
			break;
		
		case 62:
			StringCopy(&Var2, "JBIB_P1_10_15", 16);
			iVar6 = 10;
			iVar7 = 15;
			iVar1 = 49;
			break;
		
		default:
			func_203(iVar10, iParam0, 63);
			return;
			break;
	}
	func_195(&(Global_69518[0 /*14*/]), iVar10, iParam0, &Var2, iVar6, iVar7, iVar1, iVar0, iVar8, iVar9, 0);
}

void func_307(int iParam0)//Position - 0x4EBB6
{
	int iVar0;
	int iVar1;
	struct<2> Var2;
	int iVar6;
	int iVar7;
	int iVar8;
	int iVar9;
	int iVar10;
	
	iVar0 = false;
	iVar1 = 10;
	iVar6 = 0;
	iVar7 = 0;
	iVar8 = -1;
	iVar9 = 2;
	iVar10 = 7;
	Global_69518[0 /*14*/].f_5 = 1;
	switch (iParam0)
	{
		case 0:
			StringCopy(&Var2, "NO_LABEL", 16);
			iVar6 = 0;
			iVar7 = 0;
			break;
		
		default:
			func_203(iVar10, iParam0, 1);
			return;
			break;
	}
	func_195(&(Global_69518[0 /*14*/]), iVar10, iParam0, &Var2, iVar6, iVar7, iVar1, iVar0, iVar8, iVar9, 0);
}

void func_308(int iParam0)//Position - 0x4EC29
{
	int iVar0;
	int iVar1;
	struct<2> Var2;
	int iVar6;
	int iVar7;
	int iVar8;
	int iVar9;
	int iVar10;
	
	iVar0 = false;
	iVar1 = 10;
	iVar6 = 0;
	iVar7 = 0;
	iVar8 = -1;
	iVar9 = 2;
	iVar10 = 1;
	Global_69518[0 /*14*/].f_5 = 1;
	switch (iParam0)
	{
		case 0:
			StringCopy(&Var2, "BERD_P1_0_0", 16);
			iVar6 = 0;
			iVar7 = 0;
			break;
		
		case 1:
			StringCopy(&Var2, "BERD_P1_1_0", 16);
			iVar6 = 1;
			iVar7 = 0;
			break;
		
		case 2:
			StringCopy(&Var2, "BERD_P1_2_0", 16);
			iVar6 = 2;
			iVar7 = 0;
			break;
		
		case 3:
			StringCopy(&Var2, "BERD_P1_3_0", 16);
			iVar6 = 3;
			iVar7 = 0;
			break;
		
		case 4:
			StringCopy(&Var2, "BERD_P1_4_0", 16);
			iVar6 = 4;
			iVar7 = 0;
			break;
		
		default:
			func_203(iVar10, iParam0, 5);
			return;
			break;
	}
	func_195(&(Global_69518[0 /*14*/]), iVar10, iParam0, &Var2, iVar6, iVar7, iVar1, iVar0, iVar8, iVar9, 0);
}

void func_309(int iParam0)//Position - 0x4ECF8
{
	int iVar0;
	int iVar1;
	struct<2> Var2;
	int iVar6;
	int iVar7;
	int iVar8;
	int iVar9;
	int iVar10;
	
	iVar0 = false;
	iVar1 = 10;
	iVar6 = 0;
	iVar7 = 0;
	iVar8 = -1;
	iVar9 = 2;
	iVar10 = 10;
	Global_69518[0 /*14*/].f_5 = 1;
	switch (iParam0)
	{
		case 0:
			StringCopy(&Var2, "NO_LABEL", 16);
			iVar6 = 0;
			iVar7 = 0;
			break;
		
		case 1:
			StringCopy(&Var2, "NO_LABEL", 16);
			iVar6 = 1;
			iVar7 = 0;
			break;
		
		case 2:
			StringCopy(&Var2, "NO_LABEL", 16);
			iVar6 = 2;
			iVar7 = 0;
			break;
		
		case 3:
			StringCopy(&Var2, "NO_LABEL", 16);
			iVar6 = 3;
			iVar7 = 0;
			break;
		
		case 4:
			StringCopy(&Var2, "NO_LABEL", 16);
			iVar6 = 3;
			iVar7 = 1;
			break;
		
		case 5:
			StringCopy(&Var2, "NO_LABEL", 16);
			iVar6 = 3;
			iVar7 = 2;
			break;
		
		case 6:
			StringCopy(&Var2, "NO_LABEL", 16);
			iVar6 = 3;
			iVar7 = 3;
			break;
		
		case 7:
			StringCopy(&Var2, "NO_LABEL", 16);
			iVar6 = 3;
			iVar7 = 4;
			break;
		
		case 8:
			StringCopy(&Var2, "NO_LABEL", 16);
			iVar6 = 3;
			iVar7 = 5;
			break;
		
		case 9:
			StringCopy(&Var2, "NO_LABEL", 16);
			iVar6 = 4;
			iVar7 = 0;
			break;
		
		case 10:
			StringCopy(&Var2, "NO_LABEL", 16);
			iVar6 = 4;
			iVar7 = 1;
			break;
		
		case 11:
			StringCopy(&Var2, "NO_LABEL", 16);
			iVar6 = 4;
			iVar7 = 2;
			break;
		
		case 12:
			StringCopy(&Var2, "NO_LABEL", 16);
			iVar6 = 4;
			iVar7 = 3;
			break;
		
		case 13:
			StringCopy(&Var2, "NO_LABEL", 16);
			iVar6 = 4;
			iVar7 = 4;
			break;
		
		case 14:
			StringCopy(&Var2, "NO_LABEL", 16);
			iVar6 = 4;
			iVar7 = 5;
			break;
		
		case 15:
			StringCopy(&Var2, "NO_LABEL", 16);
			iVar6 = 4;
			iVar7 = 6;
			break;
		
		case 16:
			StringCopy(&Var2, "NO_LABEL", 16);
			iVar6 = 5;
			iVar7 = 0;
			break;
		
		case 17:
			StringCopy(&Var2, "NO_LABEL", 16);
			iVar6 = 5;
			iVar7 = 1;
			break;
		
		case 18:
			StringCopy(&Var2, "NO_LABEL", 16);
			iVar6 = 5;
			iVar7 = 2;
			break;
		
		case 19:
			StringCopy(&Var2, "NO_LABEL", 16);
			iVar6 = 5;
			iVar7 = 3;
			break;
		
		case 20:
			StringCopy(&Var2, "NO_LABEL", 16);
			iVar6 = 5;
			iVar7 = 4;
			break;
		
		case 21:
			StringCopy(&Var2, "NO_LABEL", 16);
			iVar6 = 5;
			iVar7 = 5;
			break;
		
		case 22:
			StringCopy(&Var2, "NO_LABEL", 16);
			iVar6 = 5;
			iVar7 = 6;
			break;
		
		case 23:
			StringCopy(&Var2, "NO_LABEL", 16);
			iVar6 = 5;
			iVar7 = 7;
			break;
		
		case 24:
			StringCopy(&Var2, "NO_LABEL", 16);
			iVar6 = 5;
			iVar7 = 8;
			break;
		
		case 25:
			StringCopy(&Var2, "NO_LABEL", 16);
			iVar6 = 5;
			iVar7 = 9;
			break;
		
		case 26:
			StringCopy(&Var2, "NO_LABEL", 16);
			iVar6 = 5;
			iVar7 = 10;
			break;
		
		case 27:
			StringCopy(&Var2, "NO_LABEL", 16);
			iVar6 = 5;
			iVar7 = 11;
			break;
		
		case 28:
			StringCopy(&Var2, "NO_LABEL", 16);
			iVar6 = 5;
			iVar7 = 12;
			break;
		
		case 29:
			StringCopy(&Var2, "NO_LABEL", 16);
			iVar6 = 5;
			iVar7 = 13;
			break;
		
		case 30:
			StringCopy(&Var2, "NO_LABEL", 16);
			iVar6 = 5;
			iVar7 = 14;
			break;
		
		case 31:
			StringCopy(&Var2, "NO_LABEL", 16);
			iVar6 = 5;
			iVar7 = 15;
			break;
		
		case 32:
			StringCopy(&Var2, "NO_LABEL", 16);
			iVar6 = 6;
			iVar7 = 0;
			break;
		
		case 33:
			StringCopy(&Var2, "NO_LABEL", 16);
			iVar6 = 6;
			iVar7 = 1;
			break;
		
		case 34:
			StringCopy(&Var2, "NO_LABEL", 16);
			iVar6 = 6;
			iVar7 = 2;
			break;
		
		case 35:
			StringCopy(&Var2, "NO_LABEL", 16);
			iVar6 = 6;
			iVar7 = 3;
			break;
		
		case 36:
			StringCopy(&Var2, "NO_LABEL", 16);
			iVar6 = 6;
			iVar7 = 4;
			break;
		
		case 37:
			StringCopy(&Var2, "NO_LABEL", 16);
			iVar6 = 6;
			iVar7 = 5;
			break;
		
		case 38:
			StringCopy(&Var2, "NO_LABEL", 16);
			iVar6 = 6;
			iVar7 = 6;
			break;
		
		case 39:
			StringCopy(&Var2, "NO_LABEL", 16);
			iVar6 = 7;
			iVar7 = 0;
			break;
		
		case 40:
			StringCopy(&Var2, "NO_LABEL", 16);
			iVar6 = 7;
			iVar7 = 1;
			break;
		
		case 41:
			StringCopy(&Var2, "NO_LABEL", 16);
			iVar6 = 7;
			iVar7 = 2;
			break;
		
		case 42:
			StringCopy(&Var2, "NO_LABEL", 16);
			iVar6 = 7;
			iVar7 = 3;
			break;
		
		case 43:
			StringCopy(&Var2, "NO_LABEL", 16);
			iVar6 = 7;
			iVar7 = 4;
			break;
		
		case 44:
			StringCopy(&Var2, "NO_LABEL", 16);
			iVar6 = 7;
			iVar7 = 5;
			break;
		
		case 45:
			StringCopy(&Var2, "NO_LABEL", 16);
			iVar6 = 7;
			iVar7 = 6;
			break;
		
		case 46:
			StringCopy(&Var2, "NO_LABEL", 16);
			iVar6 = 7;
			iVar7 = 7;
			break;
		
		case 47:
			StringCopy(&Var2, "NO_LABEL", 16);
			iVar6 = 8;
			iVar7 = 0;
			break;
		
		case 48:
			StringCopy(&Var2, "NO_LABEL", 16);
			iVar6 = 8;
			iVar7 = 1;
			break;
		
		case 49:
			StringCopy(&Var2, "NO_LABEL", 16);
			iVar6 = 8;
			iVar7 = 2;
			break;
		
		case 50:
			StringCopy(&Var2, "NO_LABEL", 16);
			iVar6 = 8;
			iVar7 = 3;
			break;
		
		case 51:
			StringCopy(&Var2, "NO_LABEL", 16);
			iVar6 = 9;
			iVar7 = 0;
			break;
		
		case 52:
			StringCopy(&Var2, "NO_LABEL", 16);
			iVar6 = 10;
			iVar7 = 0;
			break;
		
		default:
			func_203(iVar10, iParam0, 53);
			return;
			break;
	}
	func_195(&(Global_69518[0 /*14*/]), iVar10, iParam0, &Var2, iVar6, iVar7, iVar1, iVar0, iVar8, iVar9, 0);
}

void func_310(int iParam0)//Position - 0x4F227
{
	int iVar0;
	int iVar1;
	struct<2> Var2;
	int iVar6;
	int iVar7;
	int iVar8;
	int iVar9;
	int iVar10;
	
	iVar0 = false;
	iVar1 = 10;
	iVar6 = 0;
	iVar7 = 0;
	iVar8 = -1;
	iVar9 = 2;
	iVar10 = 9;
	Global_69518[0 /*14*/].f_5 = 1;
	switch (iParam0)
	{
		case 0:
			StringCopy(&Var2, "NO_LABEL", 16);
			iVar6 = 0;
			iVar7 = 0;
			break;
		
		case 1:
			StringCopy(&Var2, "NO_LABEL", 16);
			iVar6 = 1;
			iVar7 = 0;
			iVar0 = true;
			break;
		
		case 2:
			StringCopy(&Var2, "NO_LABEL", 16);
			iVar6 = 2;
			iVar7 = 0;
			iVar0 = true;
			break;
		
		case 3:
			StringCopy(&Var2, "NO_LABEL", 16);
			iVar6 = 3;
			iVar7 = 0;
			iVar0 = true;
			break;
		
		case 4:
			StringCopy(&Var2, "NO_LABEL", 16);
			iVar6 = 4;
			iVar7 = 0;
			iVar0 = true;
			break;
		
		case 5:
			StringCopy(&Var2, "SPEC2_P0_08_0", 16);
			iVar6 = 5;
			iVar7 = 0;
			iVar1 = 125;
			break;
		
		case 6:
			StringCopy(&Var2, "SPEC2_P0_08_1", 16);
			iVar6 = 5;
			iVar7 = 1;
			iVar1 = 150;
			break;
		
		case 7:
			StringCopy(&Var2, "SPEC2_P0_08_2", 16);
			iVar6 = 5;
			iVar7 = 2;
			iVar1 = 175;
			break;
		
		case 8:
			StringCopy(&Var2, "SPEC2_P0_08_3", 16);
			iVar6 = 5;
			iVar7 = 3;
			iVar1 = 85;
			break;
		
		case 9:
			StringCopy(&Var2, "SPEC2_P0_08_4", 16);
			iVar6 = 5;
			iVar7 = 4;
			iVar1 = 150;
			break;
		
		case 10:
			StringCopy(&Var2, "SPEC2_P0_08_5", 16);
			iVar6 = 5;
			iVar7 = 5;
			iVar1 = 175;
			break;
		
		case 11:
			StringCopy(&Var2, "NO_LABEL", 16);
			iVar6 = 6;
			iVar7 = 0;
			break;
		
		default:
			func_203(iVar10, iParam0, 12);
			return;
			break;
	}
	func_195(&(Global_69518[0 /*14*/]), iVar10, iParam0, &Var2, iVar6, iVar7, iVar1, iVar0, iVar8, iVar9, 0);
}

void func_311(int iParam0)//Position - 0x4F3BD
{
	int iVar0;
	int iVar1;
	struct<2> Var2;
	int iVar6;
	int iVar7;
	int iVar8;
	int iVar9;
	int iVar10;
	
	iVar0 = false;
	iVar1 = 10;
	iVar6 = 0;
	iVar7 = 0;
	iVar8 = -1;
	iVar9 = 2;
	iVar10 = 8;
	Global_69518[0 /*14*/].f_5 = 1;
	switch (iParam0)
	{
		case 0:
			StringCopy(&Var2, "NO_LABEL", 16);
			iVar6 = 0;
			iVar7 = 0;
			break;
		
		case 1:
			StringCopy(&Var2, "NO_LABEL", 16);
			iVar6 = 1;
			iVar7 = 0;
			break;
		
		case 2:
			StringCopy(&Var2, "NO_LABEL", 16);
			iVar6 = 2;
			iVar7 = 0;
			iVar0 = true;
			break;
		
		case 3:
			StringCopy(&Var2, "NO_LABEL", 16);
			iVar6 = 3;
			iVar7 = 0;
			iVar0 = true;
			break;
		
		case 4:
			StringCopy(&Var2, "NO_LABEL", 16);
			iVar6 = 4;
			iVar7 = 0;
			iVar0 = true;
			break;
		
		case 5:
			StringCopy(&Var2, "NO_LABEL", 16);
			iVar6 = 5;
			iVar7 = 0;
			iVar0 = true;
			break;
		
		case 6:
			StringCopy(&Var2, "NO_LABEL", 16);
			iVar6 = 6;
			iVar7 = 0;
			iVar0 = true;
			break;
		
		case 7:
			StringCopy(&Var2, "NO_LABEL", 16);
			iVar6 = 7;
			iVar7 = 0;
			iVar0 = true;
			break;
		
		case 8:
			StringCopy(&Var2, "NO_LABEL", 16);
			iVar6 = 8;
			iVar7 = 0;
			iVar0 = true;
			break;
		
		case 9:
			StringCopy(&Var2, "SPEC_P1_9_0", 16);
			iVar6 = 9;
			iVar7 = 0;
			break;
		
		case 10:
			StringCopy(&Var2, "NO_LABEL", 16);
			iVar6 = 10;
			iVar7 = 0;
			iVar0 = true;
			break;
		
		case 11:
			StringCopy(&Var2, "SPEC_P1_11_0", 16);
			iVar6 = 11;
			iVar7 = 0;
			iVar1 = 195;
			break;
		
		case 12:
			StringCopy(&Var2, "SPEC_P1_11_1", 16);
			iVar6 = 11;
			iVar7 = 1;
			iVar1 = 195;
			break;
		
		case 13:
			StringCopy(&Var2, "SPEC_P1_11_2", 16);
			iVar6 = 11;
			iVar7 = 2;
			iVar1 = 195;
			break;
		
		case 14:
			StringCopy(&Var2, "SPEC_P1_11_3", 16);
			iVar6 = 11;
			iVar7 = 3;
			iVar1 = 250;
			break;
		
		case 15:
			StringCopy(&Var2, "SPEC_P1_11_4", 16);
			iVar6 = 11;
			iVar7 = 4;
			iVar1 = 250;
			break;
		
		case 16:
			StringCopy(&Var2, "SPEC_P1_11_5", 16);
			iVar6 = 11;
			iVar7 = 5;
			iVar1 = 250;
			break;
		
		case 17:
			StringCopy(&Var2, "SPEC_P1_11_6", 16);
			iVar6 = 11;
			iVar7 = 6;
			iVar1 = 195;
			break;
		
		case 18:
			StringCopy(&Var2, "SPEC_P1_11_7", 16);
			iVar6 = 11;
			iVar7 = 7;
			iVar1 = 250;
			break;
		
		case 19:
			StringCopy(&Var2, "SPEC_P1_11_8", 16);
			iVar6 = 11;
			iVar7 = 8;
			iVar1 = 250;
			break;
		
		case 20:
			StringCopy(&Var2, "SPEC_P1_11_9", 16);
			iVar6 = 11;
			iVar7 = 9;
			iVar1 = 250;
			break;
		
		case 21:
			StringCopy(&Var2, "SPEC_P1_11_10", 16);
			iVar6 = 11;
			iVar7 = 10;
			iVar1 = 250;
			break;
		
		case 22:
			StringCopy(&Var2, "SPEC_P1_11_11", 16);
			iVar6 = 11;
			iVar7 = 11;
			iVar1 = 195;
			break;
		
		case 23:
			StringCopy(&Var2, "SPEC_P1_11_12", 16);
			iVar6 = 11;
			iVar7 = 12;
			iVar1 = 250;
			break;
		
		case 24:
			StringCopy(&Var2, "NO_LABEL", 16);
			iVar6 = 12;
			iVar7 = 0;
			iVar0 = true;
			break;
		
		case 25:
			StringCopy(&Var2, "NO_LABEL", 16);
			iVar6 = 13;
			iVar7 = 0;
			iVar0 = true;
			break;
		
		case 26:
			StringCopy(&Var2, "NO_LABEL", 16);
			iVar6 = 14;
			iVar7 = 0;
			break;
		
		case 27:
			StringCopy(&Var2, "SPEC_P1_15_0", 16);
			iVar6 = 15;
			iVar7 = 0;
			break;
		
		case 28:
			StringCopy(&Var2, "SPEC_P1_15_1", 16);
			iVar6 = 15;
			iVar7 = 1;
			break;
		
		case 29:
			StringCopy(&Var2, "SPEC_P1_15_2", 16);
			iVar6 = 15;
			iVar7 = 2;
			break;
		
		case 30:
			StringCopy(&Var2, "SPEC_P1_15_3", 16);
			iVar6 = 15;
			iVar7 = 3;
			break;
		
		case 31:
			StringCopy(&Var2, "SPEC_P1_15_4", 16);
			iVar6 = 15;
			iVar7 = 4;
			break;
		
		case 32:
			StringCopy(&Var2, "SPEC_P1_15_5", 16);
			iVar6 = 15;
			iVar7 = 5;
			break;
		
		case 33:
			StringCopy(&Var2, "SPEC_P1_15_6", 16);
			iVar6 = 15;
			iVar7 = 6;
			break;
		
		case 34:
			StringCopy(&Var2, "SPEC_P1_15_7", 16);
			iVar6 = 15;
			iVar7 = 7;
			break;
		
		case 35:
			StringCopy(&Var2, "SPEC_P1_15_8", 16);
			iVar6 = 15;
			iVar7 = 8;
			break;
		
		case 36:
			StringCopy(&Var2, "SPEC_P1_15_9", 16);
			iVar6 = 15;
			iVar7 = 9;
			break;
		
		case 37:
			StringCopy(&Var2, "SPEC_P1_15_10", 16);
			iVar6 = 15;
			iVar7 = 10;
			break;
		
		case 38:
			StringCopy(&Var2, "SPEC_P1_15_11", 16);
			iVar6 = 15;
			iVar7 = 11;
			break;
		
		case 39:
			StringCopy(&Var2, "SPEC_P1_15_12", 16);
			iVar6 = 15;
			iVar7 = 12;
			break;
		
		case 40:
			StringCopy(&Var2, "SPEC_P1_15_13", 16);
			iVar6 = 15;
			iVar7 = 13;
			break;
		
		case 41:
			StringCopy(&Var2, "SPEC_P1_15_14", 16);
			iVar6 = 15;
			iVar7 = 14;
			break;
		
		case 42:
			StringCopy(&Var2, "SPEC_P1_15_15", 16);
			iVar6 = 15;
			iVar7 = 15;
			break;
		
		case 43:
			StringCopy(&Var2, "SPEC_P1_15_0", 16);
			iVar6 = 16;
			iVar7 = 0;
			break;
		
		case 44:
			StringCopy(&Var2, "SPEC_P1_15_1", 16);
			iVar6 = 16;
			iVar7 = 1;
			break;
		
		case 45:
			StringCopy(&Var2, "SPEC_P1_15_2", 16);
			iVar6 = 16;
			iVar7 = 2;
			break;
		
		case 46:
			StringCopy(&Var2, "SPEC_P1_15_3", 16);
			iVar6 = 16;
			iVar7 = 3;
			break;
		
		case 47:
			StringCopy(&Var2, "SPEC_P1_15_4", 16);
			iVar6 = 16;
			iVar7 = 4;
			break;
		
		case 48:
			StringCopy(&Var2, "SPEC_P1_15_5", 16);
			iVar6 = 16;
			iVar7 = 5;
			break;
		
		case 49:
			StringCopy(&Var2, "SPEC_P1_15_6", 16);
			iVar6 = 16;
			iVar7 = 6;
			break;
		
		case 50:
			StringCopy(&Var2, "SPEC_P1_15_7", 16);
			iVar6 = 16;
			iVar7 = 7;
			break;
		
		case 51:
			StringCopy(&Var2, "SPEC_P1_15_8", 16);
			iVar6 = 16;
			iVar7 = 8;
			break;
		
		case 52:
			StringCopy(&Var2, "SPEC_P1_15_9", 16);
			iVar6 = 16;
			iVar7 = 9;
			break;
		
		case 53:
			StringCopy(&Var2, "SPEC_P1_15_10", 16);
			iVar6 = 16;
			iVar7 = 10;
			break;
		
		case 54:
			StringCopy(&Var2, "SPEC_P1_15_11", 16);
			iVar6 = 16;
			iVar7 = 11;
			break;
		
		case 55:
			StringCopy(&Var2, "SPEC_P1_15_12", 16);
			iVar6 = 16;
			iVar7 = 12;
			break;
		
		case 56:
			StringCopy(&Var2, "SPEC_P1_15_13", 16);
			iVar6 = 16;
			iVar7 = 13;
			break;
		
		case 57:
			StringCopy(&Var2, "SPEC_P1_15_14", 16);
			iVar6 = 16;
			iVar7 = 14;
			break;
		
		case 58:
			StringCopy(&Var2, "SPEC_P1_15_15", 16);
			iVar6 = 16;
			iVar7 = 15;
			break;
		
		case 59:
			StringCopy(&Var2, "SPEC_P1_15_0", 16);
			iVar6 = 17;
			iVar7 = 0;
			break;
		
		case 60:
			StringCopy(&Var2, "SPEC_P1_15_1", 16);
			iVar6 = 17;
			iVar7 = 1;
			break;
		
		case 61:
			StringCopy(&Var2, "SPEC_P1_15_2", 16);
			iVar6 = 17;
			iVar7 = 2;
			break;
		
		case 62:
			StringCopy(&Var2, "SPEC_P1_15_3", 16);
			iVar6 = 17;
			iVar7 = 3;
			break;
		
		case 63:
			StringCopy(&Var2, "SPEC_P1_15_4", 16);
			iVar6 = 17;
			iVar7 = 4;
			break;
		
		case 64:
			StringCopy(&Var2, "SPEC_P1_15_5", 16);
			iVar6 = 17;
			iVar7 = 5;
			break;
		
		case 65:
			StringCopy(&Var2, "SPEC_P1_15_6", 16);
			iVar6 = 17;
			iVar7 = 6;
			break;
		
		case 66:
			StringCopy(&Var2, "SPEC_P1_15_7", 16);
			iVar6 = 17;
			iVar7 = 7;
			break;
		
		case 67:
			StringCopy(&Var2, "SPEC_P1_15_8", 16);
			iVar6 = 17;
			iVar7 = 8;
			break;
		
		case 68:
			StringCopy(&Var2, "SPEC_P1_15_9", 16);
			iVar6 = 17;
			iVar7 = 9;
			break;
		
		case 69:
			StringCopy(&Var2, "SPEC_P1_15_10", 16);
			iVar6 = 17;
			iVar7 = 10;
			break;
		
		case 70:
			StringCopy(&Var2, "SPEC_P1_15_11", 16);
			iVar6 = 17;
			iVar7 = 11;
			break;
		
		case 71:
			StringCopy(&Var2, "SPEC_P1_15_12", 16);
			iVar6 = 17;
			iVar7 = 12;
			break;
		
		case 72:
			StringCopy(&Var2, "SPEC_P1_15_13", 16);
			iVar6 = 17;
			iVar7 = 13;
			break;
		
		case 73:
			StringCopy(&Var2, "SPEC_P1_15_14", 16);
			iVar6 = 17;
			iVar7 = 14;
			break;
		
		case 74:
			StringCopy(&Var2, "SPEC_P1_15_15", 16);
			iVar6 = 17;
			iVar7 = 15;
			break;
		
		case 75:
			StringCopy(&Var2, "NO_LABEL", 16);
			iVar6 = 18;
			iVar7 = 0;
			break;
		
		case 76:
			StringCopy(&Var2, "NO_LABEL", 16);
			iVar6 = 19;
			iVar7 = 0;
			break;
		
		default:
			func_203(iVar10, iParam0, 77);
			return;
			break;
	}
	func_195(&(Global_69518[0 /*14*/]), iVar10, iParam0, &Var2, iVar6, iVar7, iVar1, iVar0, iVar8, iVar9, 0);
}

void func_312(int iParam0)//Position - 0x4FBBA
{
	int iVar0;
	int iVar1;
	struct<2> Var2;
	int iVar6;
	int iVar7;
	int iVar8;
	int iVar9;
	int iVar10;
	
	iVar0 = false;
	iVar1 = 10;
	iVar6 = 0;
	iVar7 = 0;
	iVar8 = -1;
	iVar9 = 2;
	iVar10 = 5;
	Global_69518[0 /*14*/].f_5 = 1;
	switch (iParam0)
	{
		case 0:
			StringCopy(&Var2, "NO_LABEL", 16);
			iVar6 = 0;
			iVar7 = 0;
			break;
		
		case 1:
			StringCopy(&Var2, "NO_LABEL", 16);
			iVar6 = 1;
			iVar7 = 0;
			iVar0 = true;
			break;
		
		case 2:
			StringCopy(&Var2, "NO_LABEL", 16);
			iVar6 = 2;
			iVar7 = 0;
			iVar0 = true;
			break;
		
		case 3:
			StringCopy(&Var2, "NO_LABEL", 16);
			iVar6 = 2;
			iVar7 = 1;
			iVar0 = true;
			break;
		
		case 4:
			StringCopy(&Var2, "NO_LABEL", 16);
			iVar6 = 3;
			iVar7 = 0;
			iVar0 = true;
			break;
		
		case 5:
			StringCopy(&Var2, "NO_LABEL", 16);
			iVar6 = 4;
			iVar7 = 0;
			iVar0 = true;
			break;
		
		case 6:
			StringCopy(&Var2, "NO_LABEL", 16);
			iVar6 = 5;
			iVar7 = 0;
			iVar0 = true;
			break;
		
		default:
			func_203(iVar10, iParam0, 7);
			return;
			break;
	}
	func_195(&(Global_69518[0 /*14*/]), iVar10, iParam0, &Var2, iVar6, iVar7, iVar1, iVar0, iVar8, iVar9, 0);
}

void func_313(int iParam0)//Position - 0x4FCC9
{
	int iVar0;
	int iVar1;
	struct<2> Var2;
	int iVar6;
	int iVar7;
	int iVar8;
	int iVar9;
	int iVar10;
	
	iVar0 = false;
	iVar1 = 10;
	iVar6 = 0;
	iVar7 = 0;
	iVar8 = -1;
	iVar9 = 2;
	iVar10 = 6;
	Global_69518[0 /*14*/].f_5 = 1;
	switch (iParam0)
	{
		case 0:
			StringCopy(&Var2, "FEET_P1_00_0", 16);
			iVar6 = 0;
			iVar7 = 0;
			break;
		
		case 1:
			StringCopy(&Var2, "FEET_P1_00_1", 16);
			iVar6 = 0;
			iVar7 = 1;
			iVar1 = 80;
			break;
		
		case 2:
			StringCopy(&Var2, "FEET_P1_00_2", 16);
			iVar6 = 0;
			iVar7 = 2;
			iVar1 = 80;
			break;
		
		case 3:
			StringCopy(&Var2, "FEET_P1_00_3", 16);
			iVar6 = 0;
			iVar7 = 3;
			iVar1 = 89;
			break;
		
		case 4:
			StringCopy(&Var2, "FEET_P1_00_4", 16);
			iVar6 = 0;
			iVar7 = 4;
			iVar1 = 45;
			break;
		
		case 5:
			StringCopy(&Var2, "FEET_P1_00_5", 16);
			iVar6 = 0;
			iVar7 = 5;
			iVar1 = 35;
			break;
		
		case 6:
			StringCopy(&Var2, "FEET_P1_00_6", 16);
			iVar6 = 0;
			iVar7 = 6;
			iVar1 = 89;
			break;
		
		case 7:
			StringCopy(&Var2, "FEET_P1_00_7", 16);
			iVar6 = 0;
			iVar7 = 7;
			iVar1 = 95;
			break;
		
		case 8:
			StringCopy(&Var2, "FEET_P1_00_8", 16);
			iVar6 = 0;
			iVar7 = 8;
			iVar1 = 115;
			break;
		
		case 9:
			StringCopy(&Var2, "FEET_P1_00_9", 16);
			iVar6 = 0;
			iVar7 = 9;
			iVar1 = 40;
			break;
		
		case 10:
			StringCopy(&Var2, "FEET_P1_00_10", 16);
			iVar6 = 0;
			iVar7 = 10;
			iVar1 = 145;
			break;
		
		case 11:
			StringCopy(&Var2, "FEET_P1_00_11", 16);
			iVar6 = 0;
			iVar7 = 11;
			iVar1 = 145;
			break;
		
		case 12:
			StringCopy(&Var2, "FEET_P1_01_0", 16);
			iVar6 = 1;
			iVar7 = 0;
			break;
		
		case 13:
			StringCopy(&Var2, "NO_LABEL", 16);
			iVar6 = 2;
			iVar7 = 0;
			iVar0 = true;
			break;
		
		case 14:
			StringCopy(&Var2, "NO_LABEL", 16);
			iVar6 = 3;
			iVar7 = 0;
			iVar0 = true;
			break;
		
		case 15:
			StringCopy(&Var2, "NO_LABEL", 16);
			iVar6 = 4;
			iVar7 = 0;
			iVar0 = true;
			break;
		
		case 16:
			StringCopy(&Var2, "NO_LABEL", 16);
			iVar6 = 4;
			iVar7 = 1;
			iVar0 = true;
			break;
		
		case 17:
			StringCopy(&Var2, "NO_LABEL", 16);
			iVar6 = 5;
			iVar7 = 0;
			break;
		
		case 18:
			StringCopy(&Var2, "FEET_P1_06_0", 16);
			iVar6 = 6;
			iVar7 = 0;
			break;
		
		case 19:
			StringCopy(&Var2, "FEET_P1_06_1", 16);
			iVar6 = 6;
			iVar7 = 1;
			iVar1 = 180;
			break;
		
		case 20:
			StringCopy(&Var2, "FEET_P1_06_2", 16);
			iVar6 = 6;
			iVar7 = 2;
			iVar1 = 80;
			break;
		
		case 21:
			StringCopy(&Var2, "FEET_P1_06_3", 16);
			iVar6 = 6;
			iVar7 = 3;
			iVar1 = 200;
			break;
		
		case 22:
			StringCopy(&Var2, "FEET_P1_06_4", 16);
			iVar6 = 6;
			iVar7 = 4;
			iVar1 = 220;
			break;
		
		case 23:
			StringCopy(&Var2, "FEET_P1_06_5", 16);
			iVar6 = 6;
			iVar7 = 5;
			iVar1 = 235;
			break;
		
		case 24:
			StringCopy(&Var2, "NO_LABEL", 16);
			iVar6 = 7;
			iVar7 = 0;
			iVar0 = true;
			break;
		
		case 25:
			StringCopy(&Var2, "FEET_P1_08_0", 16);
			iVar6 = 8;
			iVar7 = 0;
			iVar1 = 870;
			break;
		
		case 26:
			StringCopy(&Var2, "FEET_P1_08_1", 16);
			iVar6 = 8;
			iVar7 = 1;
			iVar1 = 870;
			break;
		
		case 27:
			StringCopy(&Var2, "FEET_P1_08_2", 16);
			iVar6 = 8;
			iVar7 = 2;
			iVar1 = 870;
			break;
		
		case 28:
			StringCopy(&Var2, "FEET_P1_08_3", 16);
			iVar6 = 8;
			iVar7 = 3;
			iVar1 = 1275;
			break;
		
		case 29:
			StringCopy(&Var2, "FEET_P1_08_4", 16);
			iVar6 = 8;
			iVar7 = 4;
			iVar1 = 1275;
			break;
		
		case 30:
			StringCopy(&Var2, "FEET_P1_08_5", 16);
			iVar6 = 8;
			iVar7 = 5;
			iVar1 = 1275;
			break;
		
		case 31:
			StringCopy(&Var2, "FEET_P1_08_6", 16);
			iVar6 = 8;
			iVar7 = 6;
			iVar1 = 1275;
			break;
		
		case 32:
			StringCopy(&Var2, "FEET_P1_08_7", 16);
			iVar6 = 8;
			iVar7 = 7;
			iVar1 = 1275;
			break;
		
		case 33:
			StringCopy(&Var2, "FEET_P1_08_8", 16);
			iVar6 = 8;
			iVar7 = 8;
			iVar1 = 1275;
			break;
		
		case 34:
			StringCopy(&Var2, "NO_LABEL", 16);
			iVar6 = 9;
			iVar7 = 0;
			iVar0 = true;
			break;
		
		case 35:
			StringCopy(&Var2, "FEET_P1_10_0", 16);
			iVar6 = 10;
			iVar7 = 0;
			iVar0 = true;
			break;
		
		case 36:
			StringCopy(&Var2, "FEET_P1_11_0", 16);
			iVar6 = 11;
			iVar7 = 0;
			break;
		
		case 37:
			StringCopy(&Var2, "FEET_P1_11_1", 16);
			iVar6 = 11;
			iVar7 = 1;
			iVar1 = 50;
			break;
		
		case 38:
			StringCopy(&Var2, "FEET_P1_11_2", 16);
			iVar6 = 11;
			iVar7 = 2;
			iVar1 = 50;
			break;
		
		case 39:
			StringCopy(&Var2, "FEET_P1_11_3", 16);
			iVar6 = 11;
			iVar7 = 3;
			iVar1 = 50;
			break;
		
		case 40:
			StringCopy(&Var2, "FEET_P1_11_4", 16);
			iVar6 = 11;
			iVar7 = 4;
			iVar1 = 50;
			break;
		
		case 41:
			StringCopy(&Var2, "FEET_P1_11_5", 16);
			iVar6 = 11;
			iVar7 = 5;
			iVar1 = 50;
			break;
		
		case 42:
			StringCopy(&Var2, "FEET_P1_11_6", 16);
			iVar6 = 11;
			iVar7 = 6;
			iVar1 = 50;
			break;
		
		case 43:
			StringCopy(&Var2, "FEET_P1_11_7", 16);
			iVar6 = 11;
			iVar7 = 7;
			iVar1 = 50;
			break;
		
		case 44:
			StringCopy(&Var2, "FEET_P1_11_8", 16);
			iVar6 = 11;
			iVar7 = 8;
			iVar1 = 50;
			break;
		
		case 45:
			StringCopy(&Var2, "FEET_P1_11_9", 16);
			iVar6 = 11;
			iVar7 = 9;
			iVar1 = 50;
			break;
		
		case 46:
			StringCopy(&Var2, "FEET_P1_11_10", 16);
			iVar6 = 11;
			iVar7 = 10;
			iVar1 = 50;
			break;
		
		case 47:
			StringCopy(&Var2, "FEET_P1_11_11", 16);
			iVar6 = 11;
			iVar7 = 11;
			iVar1 = 50;
			break;
		
		case 48:
			StringCopy(&Var2, "FEET_P1_11_12", 16);
			iVar6 = 11;
			iVar7 = 12;
			iVar1 = 50;
			break;
		
		case 49:
			StringCopy(&Var2, "FEET_P1_11_13", 16);
			iVar6 = 11;
			iVar7 = 13;
			iVar1 = 50;
			break;
		
		case 50:
			StringCopy(&Var2, "FEET_P1_11_14", 16);
			iVar6 = 11;
			iVar7 = 14;
			iVar1 = 50;
			break;
		
		case 51:
			StringCopy(&Var2, "FEET_P1_11_15", 16);
			iVar6 = 11;
			iVar7 = 15;
			iVar1 = 50;
			break;
		
		case 52:
			StringCopy(&Var2, "FEET_P1_12_0", 16);
			iVar6 = 12;
			iVar7 = 0;
			break;
		
		case 53:
			StringCopy(&Var2, "FEET_P1_12_1", 16);
			iVar6 = 12;
			iVar7 = 1;
			iVar1 = 25;
			break;
		
		case 54:
			StringCopy(&Var2, "FEET_P1_12_2", 16);
			iVar6 = 12;
			iVar7 = 2;
			iVar1 = 20;
			break;
		
		case 55:
			StringCopy(&Var2, "FEET_P1_12_3", 16);
			iVar6 = 12;
			iVar7 = 3;
			iVar1 = 24;
			break;
		
		case 56:
			StringCopy(&Var2, "FEET_P1_12_4", 16);
			iVar6 = 12;
			iVar7 = 4;
			iVar1 = 25;
			break;
		
		case 57:
			StringCopy(&Var2, "FEET_P1_12_5", 16);
			iVar6 = 12;
			iVar7 = 5;
			iVar1 = 27;
			break;
		
		case 58:
			StringCopy(&Var2, "FEET_P1_12_6", 16);
			iVar6 = 12;
			iVar7 = 6;
			iVar1 = 29;
			break;
		
		case 59:
			StringCopy(&Var2, "FEET_P1_12_7", 16);
			iVar6 = 12;
			iVar7 = 7;
			iVar1 = 27;
			break;
		
		case 60:
			StringCopy(&Var2, "FEET_P1_12_8", 16);
			iVar6 = 12;
			iVar7 = 8;
			iVar1 = 25;
			break;
		
		case 61:
			StringCopy(&Var2, "FEET_P1_12_9", 16);
			iVar6 = 12;
			iVar7 = 9;
			iVar1 = 30;
			break;
		
		case 62:
			StringCopy(&Var2, "FEET_P1_12_10", 16);
			iVar6 = 12;
			iVar7 = 10;
			iVar1 = 28;
			break;
		
		case 63:
			StringCopy(&Var2, "FEET_P1_12_11", 16);
			iVar6 = 12;
			iVar7 = 11;
			iVar1 = 30;
			break;
		
		case 64:
			StringCopy(&Var2, "FEET_P1_13_0", 16);
			iVar6 = 13;
			iVar7 = 0;
			iVar0 = true;
			break;
		
		case 65:
			StringCopy(&Var2, "FEET_P1_14_0", 16);
			iVar6 = 14;
			iVar7 = 0;
			iVar1 = 155;
			break;
		
		case 66:
			StringCopy(&Var2, "FEET_P1_14_1", 16);
			iVar6 = 14;
			iVar7 = 1;
			iVar1 = 155;
			break;
		
		case 67:
			StringCopy(&Var2, "FEET_P1_14_2", 16);
			iVar6 = 14;
			iVar7 = 2;
			iVar1 = 165;
			break;
		
		case 68:
			StringCopy(&Var2, "FEET_P1_14_3", 16);
			iVar6 = 14;
			iVar7 = 3;
			iVar1 = 170;
			break;
		
		case 69:
			StringCopy(&Var2, "FEET_P1_14_4", 16);
			iVar6 = 14;
			iVar7 = 4;
			iVar1 = 160;
			break;
		
		case 70:
			StringCopy(&Var2, "FEET_P1_14_5", 16);
			iVar6 = 14;
			iVar7 = 5;
			iVar1 = 165;
			break;
		
		case 71:
			StringCopy(&Var2, "FEET_P1_14_6", 16);
			iVar6 = 14;
			iVar7 = 6;
			iVar1 = 170;
			break;
		
		case 72:
			StringCopy(&Var2, "FEET_P1_14_7", 16);
			iVar6 = 14;
			iVar7 = 7;
			iVar1 = 160;
			break;
		
		case 73:
			StringCopy(&Var2, "NO_LABEL", 16);
			iVar6 = 15;
			iVar7 = 0;
			break;
		
		case 74:
			StringCopy(&Var2, "FEET_P1_16_0", 16);
			iVar6 = 16;
			iVar7 = 0;
			iVar1 = 720;
			break;
		
		case 75:
			StringCopy(&Var2, "FEET_P1_16_1", 16);
			iVar6 = 16;
			iVar7 = 1;
			iVar1 = 680;
			break;
		
		case 76:
			StringCopy(&Var2, "FEET_P1_16_2", 16);
			iVar6 = 16;
			iVar7 = 2;
			iVar1 = 650;
			break;
		
		case 77:
			StringCopy(&Var2, "FEET_P1_16_3", 16);
			iVar6 = 16;
			iVar7 = 3;
			iVar1 = 670;
			break;
		
		case 78:
			StringCopy(&Var2, "FEET_P1_16_4", 16);
			iVar6 = 16;
			iVar7 = 4;
			iVar1 = 700;
			break;
		
		case 79:
			StringCopy(&Var2, "FEET_P1_16_5", 16);
			iVar6 = 16;
			iVar7 = 5;
			iVar1 = 680;
			break;
		
		case 80:
			StringCopy(&Var2, "FEET_P1_16_6", 16);
			iVar6 = 16;
			iVar7 = 6;
			iVar1 = 720;
			break;
		
		case 81:
			StringCopy(&Var2, "FEET_P1_16_7", 16);
			iVar6 = 16;
			iVar7 = 7;
			iVar1 = 740;
			break;
		
		case 82:
			StringCopy(&Var2, "FEET_P1_16_8", 16);
			iVar6 = 16;
			iVar7 = 8;
			iVar1 = 760;
			break;
		
		case 83:
			StringCopy(&Var2, "FEET_P1_16_9", 16);
			iVar6 = 16;
			iVar7 = 9;
			iVar1 = 780;
			break;
		
		case 84:
			StringCopy(&Var2, "FEET_P1_16_10", 16);
			iVar6 = 16;
			iVar7 = 10;
			iVar1 = 750;
			break;
		
		case 85:
			StringCopy(&Var2, "FEET_P1_16_11", 16);
			iVar6 = 16;
			iVar7 = 11;
			iVar1 = 700;
			break;
		
		case 86:
			StringCopy(&Var2, "FEET_P1_17_0", 16);
			iVar6 = 17;
			iVar7 = 0;
			iVar1 = 790;
			break;
		
		case 87:
			StringCopy(&Var2, "FEET_P1_17_1", 16);
			iVar6 = 17;
			iVar7 = 1;
			iVar1 = 750;
			break;
		
		case 88:
			StringCopy(&Var2, "FEET_P1_17_2", 16);
			iVar6 = 17;
			iVar7 = 2;
			iVar1 = 860;
			break;
		
		case 89:
			StringCopy(&Var2, "FEET_P1_17_3", 16);
			iVar6 = 17;
			iVar7 = 3;
			iVar1 = 750;
			break;
		
		case 90:
			StringCopy(&Var2, "FEET_P1_17_4", 16);
			iVar6 = 17;
			iVar7 = 4;
			iVar1 = 790;
			break;
		
		case 91:
			StringCopy(&Var2, "FEET_P1_17_5", 16);
			iVar6 = 17;
			iVar7 = 5;
			iVar1 = 840;
			break;
		
		case 92:
			StringCopy(&Var2, "FEET_P1_17_6", 16);
			iVar6 = 17;
			iVar7 = 6;
			iVar1 = 820;
			break;
		
		case 93:
			StringCopy(&Var2, "FEET_P1_17_7", 16);
			iVar6 = 17;
			iVar7 = 7;
			iVar1 = 800;
			break;
		
		case 94:
			StringCopy(&Var2, "FEET_P1_17_8", 16);
			iVar6 = 17;
			iVar7 = 8;
			iVar1 = 850;
			break;
		
		case 95:
			StringCopy(&Var2, "FEET_P1_17_9", 16);
			iVar6 = 17;
			iVar7 = 9;
			iVar1 = 870;
			break;
		
		case 96:
			StringCopy(&Var2, "FEET_P1_17_10", 16);
			iVar6 = 17;
			iVar7 = 10;
			iVar1 = 720;
			break;
		
		case 97:
			StringCopy(&Var2, "FEET_P1_17_11", 16);
			iVar6 = 17;
			iVar7 = 11;
			iVar1 = 740;
			break;
		
		case 98:
			StringCopy(&Var2, "FEET_P1_17_12", 16);
			iVar6 = 17;
			iVar7 = 12;
			iVar1 = 800;
			break;
		
		case 99:
			StringCopy(&Var2, "FEET_P1_17_13", 16);
			iVar6 = 17;
			iVar7 = 13;
			iVar1 = 750;
			break;
		
		case 100:
			StringCopy(&Var2, "FEET_P1_17_14", 16);
			iVar6 = 17;
			iVar7 = 14;
			iVar1 = 770;
			break;
		
		case 101:
			StringCopy(&Var2, "FEET_P1_17_15", 16);
			iVar6 = 17;
			iVar7 = 15;
			iVar1 = 860;
			break;
		
		case 102:
			StringCopy(&Var2, "FEET_P1_18_0", 16);
			iVar6 = 18;
			iVar7 = 0;
			iVar1 = 850;
			break;
		
		case 103:
			StringCopy(&Var2, "FEET_P1_18_1", 16);
			iVar6 = 18;
			iVar7 = 1;
			iVar1 = 800;
			break;
		
		case 104:
			StringCopy(&Var2, "FEET_P1_18_2", 16);
			iVar6 = 18;
			iVar7 = 2;
			iVar1 = 780;
			break;
		
		case 105:
			StringCopy(&Var2, "FEET_P1_18_3", 16);
			iVar6 = 18;
			iVar7 = 3;
			iVar1 = 890;
			break;
		
		case 106:
			StringCopy(&Var2, "FEET_P1_18_4", 16);
			iVar6 = 18;
			iVar7 = 4;
			iVar1 = 820;
			break;
		
		case 107:
			StringCopy(&Var2, "FEET_P1_18_5", 16);
			iVar6 = 18;
			iVar7 = 5;
			iVar1 = 840;
			break;
		
		case 108:
			StringCopy(&Var2, "FEET_P1_18_6", 16);
			iVar6 = 18;
			iVar7 = 6;
			iVar1 = 870;
			break;
		
		case 109:
			StringCopy(&Var2, "FEET_P1_18_7", 16);
			iVar6 = 18;
			iVar7 = 7;
			iVar1 = 930;
			break;
		
		case 110:
			StringCopy(&Var2, "FEET_P1_18_8", 16);
			iVar6 = 18;
			iVar7 = 8;
			iVar1 = 880;
			break;
		
		case 111:
			StringCopy(&Var2, "FEET_P1_18_9", 16);
			iVar6 = 18;
			iVar7 = 9;
			iVar1 = 900;
			break;
		
		case 112:
			StringCopy(&Var2, "FEET_P1_18_10", 16);
			iVar6 = 18;
			iVar7 = 10;
			iVar1 = 920;
			break;
		
		case 113:
			StringCopy(&Var2, "FEET_P1_18_11", 16);
			iVar6 = 18;
			iVar7 = 11;
			iVar1 = 970;
			break;
		
		case 114:
			StringCopy(&Var2, "FEET_P1_18_12", 16);
			iVar6 = 18;
			iVar7 = 12;
			iVar1 = 990;
			break;
		
		case 115:
			StringCopy(&Var2, "FEET_P1_18_13", 16);
			iVar6 = 18;
			iVar7 = 13;
			iVar1 = 960;
			break;
		
		case 116:
			StringCopy(&Var2, "FEET_P1_18_14", 16);
			iVar6 = 18;
			iVar7 = 14;
			iVar1 = 980;
			break;
		
		case 117:
			StringCopy(&Var2, "FEET_P1_18_15", 16);
			iVar6 = 18;
			iVar7 = 15;
			iVar1 = 950;
			break;
		
		case 118:
			StringCopy(&Var2, "FEET_P1_19_0", 16);
			iVar6 = 19;
			iVar7 = 0;
			iVar1 = 110;
			break;
		
		case 119:
			StringCopy(&Var2, "FEET_P1_19_1", 16);
			iVar6 = 19;
			iVar7 = 1;
			iVar1 = 115;
			break;
		
		case 120:
			StringCopy(&Var2, "FEET_P1_19_2", 16);
			iVar6 = 19;
			iVar7 = 2;
			iVar1 = 120;
			break;
		
		case 121:
			StringCopy(&Var2, "FEET_P1_19_3", 16);
			iVar6 = 19;
			iVar7 = 3;
			iVar1 = 110;
			break;
		
		case 122:
			StringCopy(&Var2, "FEET_P1_19_4", 16);
			iVar6 = 19;
			iVar7 = 4;
			iVar1 = 125;
			break;
		
		case 123:
			StringCopy(&Var2, "FEET_P1_19_5", 16);
			iVar6 = 19;
			iVar7 = 5;
			iVar1 = 128;
			break;
		
		case 124:
			StringCopy(&Var2, "FEET_P1_19_6", 16);
			iVar6 = 19;
			iVar7 = 6;
			iVar1 = 135;
			break;
		
		case 125:
			StringCopy(&Var2, "FEET_P1_19_7", 16);
			iVar6 = 19;
			iVar7 = 7;
			iVar1 = 130;
			break;
		
		case 126:
			StringCopy(&Var2, "FEET_P1_19_8", 16);
			iVar6 = 19;
			iVar7 = 8;
			iVar1 = 145;
			break;
		
		case 127:
			StringCopy(&Var2, "FEET_P1_19_9", 16);
			iVar6 = 19;
			iVar7 = 9;
			iVar1 = 110;
			break;
		
		case 128:
			StringCopy(&Var2, "FEET_P1_19_10", 16);
			iVar6 = 19;
			iVar7 = 10;
			iVar1 = 120;
			break;
		
		case 129:
			StringCopy(&Var2, "FEET_P1_19_11", 16);
			iVar6 = 19;
			iVar7 = 11;
			iVar1 = 150;
			break;
		
		case 130:
			StringCopy(&Var2, "FEET_P1_19_12", 16);
			iVar6 = 19;
			iVar7 = 12;
			iVar1 = 125;
			break;
		
		case 131:
			StringCopy(&Var2, "FEET_P1_19_13", 16);
			iVar6 = 19;
			iVar7 = 13;
			iVar1 = 120;
			break;
		
		case 132:
			StringCopy(&Var2, "FEET_P1_19_14", 16);
			iVar6 = 19;
			iVar7 = 14;
			iVar1 = 130;
			break;
		
		case 133:
			StringCopy(&Var2, "FEET_P1_19_15", 16);
			iVar6 = 19;
			iVar7 = 15;
			iVar1 = 110;
			break;
		
		default:
			func_203(iVar10, iParam0, 134);
			return;
			break;
	}
	func_195(&(Global_69518[0 /*14*/]), iVar10, iParam0, &Var2, iVar6, iVar7, iVar1, iVar0, iVar8, iVar9, 0);
}

void func_314(int iParam0)//Position - 0x50F03
{
	int iVar0;
	int iVar1;
	struct<2> Var2;
	int iVar6;
	int iVar7;
	int iVar8;
	int iVar9;
	int iVar10;
	
	iVar0 = false;
	iVar1 = 10;
	iVar6 = 0;
	iVar7 = 0;
	iVar8 = -1;
	iVar9 = 2;
	iVar10 = 4;
	Global_69518[0 /*14*/].f_5 = 1;
	switch (iParam0)
	{
		case 0:
			StringCopy(&Var2, "LEGS_P1_0_0", 16);
			iVar6 = 0;
			iVar7 = 0;
			break;
		
		case 1:
			StringCopy(&Var2, "LEGS_P1_0_1", 16);
			iVar6 = 0;
			iVar7 = 1;
			iVar1 = 32;
			break;
		
		case 2:
			StringCopy(&Var2, "LEGS_P1_0_2", 16);
			iVar6 = 0;
			iVar7 = 2;
			iVar1 = 38;
			break;
		
		case 3:
			StringCopy(&Var2, "LEGS_P1_0_3", 16);
			iVar6 = 0;
			iVar7 = 3;
			iVar1 = 44;
			break;
		
		case 4:
			StringCopy(&Var2, "NO_LABEL", 16);
			iVar6 = 1;
			iVar7 = 0;
			iVar0 = true;
			break;
		
		case 5:
			StringCopy(&Var2, "NO_LABEL", 16);
			iVar6 = 1;
			iVar7 = 1;
			iVar0 = true;
			break;
		
		case 6:
			StringCopy(&Var2, "NO_LABEL", 16);
			iVar6 = 1;
			iVar7 = 2;
			iVar0 = true;
			break;
		
		case 7:
			StringCopy(&Var2, "NO_LABEL", 16);
			iVar6 = 1;
			iVar7 = 3;
			iVar0 = true;
			break;
		
		case 8:
			StringCopy(&Var2, "NO_LABEL", 16);
			iVar6 = 1;
			iVar7 = 4;
			iVar0 = true;
			break;
		
		case 9:
			StringCopy(&Var2, "NO_LABEL", 16);
			iVar6 = 1;
			iVar7 = 5;
			iVar0 = true;
			break;
		
		case 10:
			StringCopy(&Var2, "LEGS_P1_2_0", 16);
			iVar6 = 2;
			iVar7 = 0;
			iVar0 = true;
			break;
		
		case 11:
			StringCopy(&Var2, "NO_LABEL", 16);
			iVar6 = 3;
			iVar7 = 0;
			iVar0 = true;
			break;
		
		case 12:
			StringCopy(&Var2, "NO_LABEL", 16);
			iVar6 = 4;
			iVar7 = 0;
			iVar0 = true;
			break;
		
		case 13:
			StringCopy(&Var2, "NO_LABEL", 16);
			iVar6 = 5;
			iVar7 = 0;
			iVar0 = true;
			break;
		
		case 14:
			StringCopy(&Var2, "LEGS_P1_6_0", 16);
			iVar6 = 6;
			iVar7 = 0;
			break;
		
		case 15:
			StringCopy(&Var2, "LEGS_P1_6_1", 16);
			iVar6 = 6;
			iVar7 = 1;
			iVar1 = 690;
			break;
		
		case 16:
			StringCopy(&Var2, "LEGS_P1_6_2", 16);
			iVar6 = 6;
			iVar7 = 2;
			iVar1 = 720;
			break;
		
		case 17:
			StringCopy(&Var2, "LEGS_P1_6_3", 16);
			iVar6 = 6;
			iVar7 = 3;
			iVar1 = 850;
			break;
		
		case 18:
			StringCopy(&Var2, "LEGS_P1_6_4", 16);
			iVar6 = 6;
			iVar7 = 4;
			iVar1 = 850;
			break;
		
		case 19:
			StringCopy(&Var2, "LEGS_P1_6_5", 16);
			iVar6 = 6;
			iVar7 = 5;
			iVar1 = 740;
			break;
		
		case 20:
			StringCopy(&Var2, "LEGS_P1_6_6", 16);
			iVar6 = 6;
			iVar7 = 6;
			iVar1 = 750;
			break;
		
		case 21:
			StringCopy(&Var2, "LEGS_P1_6_7", 16);
			iVar6 = 6;
			iVar7 = 7;
			iVar1 = 790;
			break;
		
		case 22:
			StringCopy(&Var2, "NO_LABEL", 16);
			iVar6 = 7;
			iVar7 = 0;
			iVar0 = true;
			break;
		
		case 23:
			StringCopy(&Var2, "NO_LABEL", 16);
			iVar6 = 7;
			iVar7 = 1;
			iVar0 = true;
			break;
		
		case 24:
			StringCopy(&Var2, "LEGS_P1_8_0", 16);
			iVar6 = 8;
			iVar7 = 0;
			break;
		
		case 25:
			StringCopy(&Var2, "LEGS_P1_8_1", 16);
			iVar6 = 8;
			iVar7 = 1;
			iVar1 = 145;
			break;
		
		case 26:
			StringCopy(&Var2, "LEGS_P1_8_2", 16);
			iVar6 = 8;
			iVar7 = 2;
			iVar1 = 140;
			break;
		
		case 27:
			StringCopy(&Var2, "LEGS_P1_8_3", 16);
			iVar6 = 8;
			iVar7 = 3;
			iVar1 = 148;
			break;
		
		case 28:
			StringCopy(&Var2, "LEGS_P1_8_4", 16);
			iVar6 = 8;
			iVar7 = 4;
			iVar1 = 150;
			break;
		
		case 29:
			StringCopy(&Var2, "LEGS_P1_8_5", 16);
			iVar6 = 8;
			iVar7 = 5;
			iVar1 = 154;
			break;
		
		case 30:
			StringCopy(&Var2, "LEGS_P1_8_6", 16);
			iVar6 = 8;
			iVar7 = 6;
			iVar1 = 158;
			break;
		
		case 31:
			StringCopy(&Var2, "NO_LABEL", 16);
			iVar6 = 9;
			iVar7 = 0;
			iVar0 = true;
			break;
		
		case 32:
			StringCopy(&Var2, "NO_LABEL", 16);
			iVar6 = 10;
			iVar7 = 0;
			iVar0 = true;
			break;
		
		case 33:
			StringCopy(&Var2, "LEGS_P1_11_0", 16);
			iVar6 = 11;
			iVar7 = 0;
			iVar1 = 820;
			break;
		
		case 34:
			StringCopy(&Var2, "LEGS_P1_11_1", 16);
			iVar6 = 11;
			iVar7 = 1;
			iVar1 = 820;
			break;
		
		case 35:
			StringCopy(&Var2, "LEGS_P1_11_2", 16);
			iVar6 = 11;
			iVar7 = 2;
			iVar1 = 850;
			break;
		
		case 36:
			StringCopy(&Var2, "LEGS_P1_11_3", 16);
			iVar6 = 11;
			iVar7 = 3;
			iVar1 = 850;
			break;
		
		case 37:
			StringCopy(&Var2, "LEGS_P1_11_4", 16);
			iVar6 = 11;
			iVar7 = 4;
			iVar1 = 920;
			break;
		
		case 38:
			StringCopy(&Var2, "LEGS_P1_11_5", 16);
			iVar6 = 11;
			iVar7 = 5;
			iVar1 = 950;
			break;
		
		case 39:
			StringCopy(&Var2, "NO_LABEL", 16);
			iVar6 = 12;
			iVar7 = 0;
			break;
		
		case 40:
			StringCopy(&Var2, "LEGS_P1_13_0", 16);
			iVar6 = 13;
			iVar7 = 0;
			break;
		
		case 41:
			StringCopy(&Var2, "LEGS_P1_13_1", 16);
			iVar6 = 13;
			iVar7 = 1;
			iVar1 = 45;
			break;
		
		case 42:
			StringCopy(&Var2, "LEGS_P1_13_2", 16);
			iVar6 = 13;
			iVar7 = 2;
			iVar1 = 48;
			break;
		
		case 43:
			StringCopy(&Var2, "LEGS_P1_13_3", 16);
			iVar6 = 13;
			iVar7 = 3;
			iVar1 = 45;
			break;
		
		case 44:
			StringCopy(&Var2, "LEGS_P1_13_4", 16);
			iVar6 = 13;
			iVar7 = 4;
			iVar1 = 48;
			break;
		
		case 45:
			StringCopy(&Var2, "LEGS_P1_13_5", 16);
			iVar6 = 13;
			iVar7 = 5;
			iVar1 = 52;
			break;
		
		case 46:
			StringCopy(&Var2, "LEGS_P1_13_6", 16);
			iVar6 = 13;
			iVar7 = 6;
			iVar1 = 55;
			break;
		
		case 47:
			StringCopy(&Var2, "LEGS_P1_13_7", 16);
			iVar6 = 13;
			iVar7 = 7;
			iVar1 = 58;
			break;
		
		case 48:
			StringCopy(&Var2, "LEGS_P1_13_8", 16);
			iVar6 = 13;
			iVar7 = 8;
			iVar1 = 60;
			break;
		
		case 49:
			StringCopy(&Var2, "LEGS_P1_13_9", 16);
			iVar6 = 13;
			iVar7 = 9;
			iVar1 = 58;
			break;
		
		case 50:
			StringCopy(&Var2, "LEGS_P1_13_10", 16);
			iVar6 = 13;
			iVar7 = 10;
			iVar1 = 62;
			break;
		
		case 51:
			StringCopy(&Var2, "LEGS_P1_13_11", 16);
			iVar6 = 13;
			iVar7 = 11;
			iVar1 = 65;
			break;
		
		case 52:
			StringCopy(&Var2, "LEGS_P1_14_0", 16);
			iVar6 = 14;
			iVar7 = 0;
			break;
		
		case 53:
			StringCopy(&Var2, "LEGS_P1_15_0", 16);
			iVar6 = 15;
			iVar7 = 0;
			break;
		
		case 54:
			StringCopy(&Var2, "LEGS_P1_15_1", 16);
			iVar6 = 15;
			iVar7 = 1;
			break;
		
		case 55:
			StringCopy(&Var2, "LEGS_P1_15_2", 16);
			iVar6 = 15;
			iVar7 = 2;
			break;
		
		case 56:
			StringCopy(&Var2, "LEGS_P1_15_3", 16);
			iVar6 = 15;
			iVar7 = 3;
			break;
		
		case 57:
			StringCopy(&Var2, "LEGS_P1_15_4", 16);
			iVar6 = 15;
			iVar7 = 4;
			break;
		
		case 58:
			StringCopy(&Var2, "LEGS_P1_15_5", 16);
			iVar6 = 15;
			iVar7 = 5;
			break;
		
		case 59:
			StringCopy(&Var2, "LEGS_P1_15_6", 16);
			iVar6 = 15;
			iVar7 = 6;
			break;
		
		case 60:
			StringCopy(&Var2, "LEGS_P1_15_7", 16);
			iVar6 = 15;
			iVar7 = 7;
			break;
		
		case 61:
			StringCopy(&Var2, "LEGS_P1_15_8", 16);
			iVar6 = 15;
			iVar7 = 8;
			break;
		
		case 62:
			StringCopy(&Var2, "LEGS_P1_15_9", 16);
			iVar6 = 15;
			iVar7 = 9;
			break;
		
		case 63:
			StringCopy(&Var2, "LEGS_P1_15_10", 16);
			iVar6 = 15;
			iVar7 = 10;
			break;
		
		case 64:
			StringCopy(&Var2, "LEGS_P1_15_11", 16);
			iVar6 = 15;
			iVar7 = 11;
			break;
		
		case 65:
			StringCopy(&Var2, "LEGS_P1_15_12", 16);
			iVar6 = 15;
			iVar7 = 12;
			break;
		
		case 66:
			StringCopy(&Var2, "LEGS_P1_15_13", 16);
			iVar6 = 15;
			iVar7 = 13;
			break;
		
		case 67:
			StringCopy(&Var2, "LEGS_P1_15_14", 16);
			iVar6 = 15;
			iVar7 = 14;
			break;
		
		case 68:
			StringCopy(&Var2, "LEGS_P1_15_15", 16);
			iVar6 = 15;
			iVar7 = 15;
			break;
		
		case 69:
			StringCopy(&Var2, "LEGS_P1_16_0", 16);
			iVar6 = 16;
			iVar7 = 0;
			iVar0 = true;
			break;
		
		case 70:
			StringCopy(&Var2, "NO_LABEL", 16);
			iVar6 = 16;
			iVar7 = 1;
			iVar0 = true;
			break;
		
		case 71:
			StringCopy(&Var2, "NO_LABEL", 16);
			iVar6 = 17;
			iVar7 = 0;
			iVar0 = true;
			break;
		
		case 72:
			StringCopy(&Var2, "LEGS_P1_18_0", 16);
			iVar6 = 18;
			iVar7 = 0;
			break;
		
		case 73:
			StringCopy(&Var2, "LEGS_P1_18_1", 16);
			iVar6 = 18;
			iVar7 = 1;
			iVar1 = 160;
			break;
		
		case 74:
			StringCopy(&Var2, "LEGS_P1_18_2", 16);
			iVar6 = 18;
			iVar7 = 2;
			iVar1 = 180;
			break;
		
		case 75:
			StringCopy(&Var2, "LEGS_P1_18_3", 16);
			iVar6 = 18;
			iVar7 = 3;
			iVar1 = 180;
			break;
		
		case 76:
			StringCopy(&Var2, "LEGS_P1_18_4", 16);
			iVar6 = 18;
			iVar7 = 4;
			break;
		
		case 77:
			StringCopy(&Var2, "LEGS_P1_18_5", 16);
			iVar6 = 18;
			iVar7 = 5;
			break;
		
		case 78:
			StringCopy(&Var2, "LEGS_P1_19_0", 16);
			iVar6 = 19;
			iVar7 = 0;
			iVar0 = true;
			break;
		
		case 79:
			StringCopy(&Var2, "LEGS_P1_20_0", 16);
			iVar6 = 20;
			iVar7 = 0;
			iVar1 = 118;
			break;
		
		case 80:
			StringCopy(&Var2, "LEGS_P1_20_1", 16);
			iVar6 = 20;
			iVar7 = 1;
			iVar1 = 120;
			break;
		
		case 81:
			StringCopy(&Var2, "LEGS_P1_20_2", 16);
			iVar6 = 20;
			iVar7 = 2;
			iVar1 = 128;
			break;
		
		case 82:
			StringCopy(&Var2, "LEGS_P1_20_3", 16);
			iVar6 = 20;
			iVar7 = 3;
			iVar1 = 128;
			break;
		
		case 83:
			StringCopy(&Var2, "LEGS_P1_20_4", 16);
			iVar6 = 20;
			iVar7 = 4;
			iVar1 = 130;
			break;
		
		case 84:
			StringCopy(&Var2, "LEGS_P1_20_5", 16);
			iVar6 = 20;
			iVar7 = 5;
			iVar1 = 145;
			break;
		
		case 85:
			StringCopy(&Var2, "LEGS_P1_20_6", 16);
			iVar6 = 20;
			iVar7 = 6;
			iVar1 = 138;
			break;
		
		case 86:
			StringCopy(&Var2, "LEGS_P1_20_7", 16);
			iVar6 = 20;
			iVar7 = 7;
			iVar1 = 132;
			break;
		
		case 87:
			StringCopy(&Var2, "LEGS_P1_20_8", 16);
			iVar6 = 20;
			iVar7 = 8;
			iVar1 = 148;
			break;
		
		case 88:
			StringCopy(&Var2, "LEGS_P1_21_0", 16);
			iVar6 = 21;
			iVar7 = 0;
			iVar1 = 118;
			break;
		
		case 89:
			StringCopy(&Var2, "LEGS_P1_21_1", 16);
			iVar6 = 21;
			iVar7 = 1;
			iVar1 = 118;
			break;
		
		case 90:
			StringCopy(&Var2, "LEGS_P1_21_2", 16);
			iVar6 = 21;
			iVar7 = 2;
			iVar1 = 118;
			break;
		
		case 91:
			StringCopy(&Var2, "LEGS_P1_21_3", 16);
			iVar6 = 21;
			iVar7 = 3;
			iVar1 = 129;
			break;
		
		case 92:
			StringCopy(&Var2, "LEGS_P1_21_4", 16);
			iVar6 = 21;
			iVar7 = 4;
			iVar1 = 135;
			break;
		
		case 93:
			StringCopy(&Var2, "LEGS_P1_21_5", 16);
			iVar6 = 21;
			iVar7 = 5;
			iVar1 = 135;
			break;
		
		case 94:
			StringCopy(&Var2, "LEGS_P1_21_6", 16);
			iVar6 = 21;
			iVar7 = 6;
			iVar1 = 118;
			break;
		
		case 95:
			StringCopy(&Var2, "LEGS_P1_21_7", 16);
			iVar6 = 21;
			iVar7 = 7;
			iVar1 = 118;
			break;
		
		case 96:
			StringCopy(&Var2, "LEGS_P1_21_8", 16);
			iVar6 = 21;
			iVar7 = 8;
			iVar1 = 118;
			break;
		
		case 97:
			StringCopy(&Var2, "LEGS_P1_22_0", 16);
			iVar6 = 22;
			iVar7 = 0;
			iVar1 = 55;
			break;
		
		case 98:
			StringCopy(&Var2, "LEGS_P1_22_1", 16);
			iVar6 = 22;
			iVar7 = 1;
			iVar1 = 55;
			break;
		
		case 99:
			StringCopy(&Var2, "LEGS_P1_22_2", 16);
			iVar6 = 22;
			iVar7 = 2;
			iVar1 = 59;
			break;
		
		case 100:
			StringCopy(&Var2, "LEGS_P1_22_3", 16);
			iVar6 = 22;
			iVar7 = 3;
			iVar1 = 59;
			break;
		
		case 101:
			StringCopy(&Var2, "LEGS_P1_22_4", 16);
			iVar6 = 22;
			iVar7 = 4;
			iVar1 = 65;
			break;
		
		case 102:
			StringCopy(&Var2, "LEGS_P1_22_5", 16);
			iVar6 = 22;
			iVar7 = 5;
			iVar1 = 65;
			break;
		
		case 103:
			StringCopy(&Var2, "LEGS_P1_22_6", 16);
			iVar6 = 22;
			iVar7 = 6;
			iVar1 = 69;
			break;
		
		case 104:
			StringCopy(&Var2, "LEGS_P1_22_7", 16);
			iVar6 = 22;
			iVar7 = 7;
			iVar1 = 69;
			break;
		
		case 105:
			StringCopy(&Var2, "LEGS_P1_22_8", 16);
			iVar6 = 22;
			iVar7 = 8;
			iVar1 = 75;
			break;
		
		case 106:
			StringCopy(&Var2, "LEGS_P1_22_9", 16);
			iVar6 = 22;
			iVar7 = 9;
			iVar1 = 75;
			break;
		
		case 107:
			StringCopy(&Var2, "LEGS_P1_22_10", 16);
			iVar6 = 22;
			iVar7 = 10;
			iVar1 = 65;
			break;
		
		case 108:
			StringCopy(&Var2, "LEGS_P1_22_11", 16);
			iVar6 = 22;
			iVar7 = 11;
			iVar1 = 65;
			break;
		
		case 109:
			StringCopy(&Var2, "LEGS_P1_22_12", 16);
			iVar6 = 22;
			iVar7 = 12;
			iVar1 = 65;
			break;
		
		case 110:
			StringCopy(&Var2, "LEGS_P1_22_13", 16);
			iVar6 = 22;
			iVar7 = 13;
			iVar1 = 65;
			break;
		
		case 111:
			StringCopy(&Var2, "LEGS_P1_23_0", 16);
			iVar6 = 23;
			iVar7 = 0;
			iVar1 = 38;
			break;
		
		case 112:
			StringCopy(&Var2, "LEGS_P1_23_1", 16);
			iVar6 = 23;
			iVar7 = 1;
			iVar1 = 38;
			break;
		
		case 113:
			StringCopy(&Var2, "LEGS_P1_23_2", 16);
			iVar6 = 23;
			iVar7 = 2;
			iVar1 = 28;
			break;
		
		case 114:
			StringCopy(&Var2, "LEGS_P1_23_3", 16);
			iVar6 = 23;
			iVar7 = 3;
			iVar1 = 34;
			break;
		
		case 115:
			StringCopy(&Var2, "LEGS_P1_23_4", 16);
			iVar6 = 23;
			iVar7 = 4;
			iVar1 = 36;
			break;
		
		case 116:
			StringCopy(&Var2, "LEGS_P1_23_5", 16);
			iVar6 = 23;
			iVar7 = 5;
			iVar1 = 32;
			break;
		
		default:
			func_203(iVar10, iParam0, 117);
			return;
			break;
	}
	func_195(&(Global_69518[0 /*14*/]), iVar10, iParam0, &Var2, iVar6, iVar7, iVar1, iVar0, iVar8, iVar9, 0);
}

void func_315(int iParam0)//Position - 0x51BBF
{
	if (iParam0 < 107)
	{
		func_318(iParam0);
	}
	else if (iParam0 < 227)
	{
		func_317(iParam0);
	}
	else
	{
		func_316(iParam0);
	}
	if (Global_69518[0 /*14*/].f_2 == -1)
	{
		func_203(3, iParam0, 318);
	}
}

void func_316(int iParam0)//Position - 0x51C04
{
	int iVar0;
	int iVar1;
	struct<2> Var2;
	int iVar6;
	int iVar7;
	int iVar8;
	int iVar9;
	int iVar10;
	
	iVar0 = false;
	iVar1 = 10;
	iVar6 = 0;
	iVar7 = 0;
	iVar8 = -1;
	iVar9 = 2;
	iVar10 = 3;
	Global_69518[0 /*14*/].f_5 = 1;
	switch (iParam0)
	{
		case 227:
			StringCopy(&Var2, "TORSO_P1_18_0", 16);
			iVar6 = 23;
			iVar7 = 0;
			iVar9 = 3;
			break;
		
		case 228:
			StringCopy(&Var2, "TORSO_P1_18_1", 16);
			iVar6 = 23;
			iVar7 = 1;
			iVar9 = 3;
			break;
		
		case 229:
			StringCopy(&Var2, "TORSO_P1_18_2", 16);
			iVar6 = 23;
			iVar7 = 2;
			iVar9 = 3;
			break;
		
		case 230:
			StringCopy(&Var2, "TORSO_P1_18_3", 16);
			iVar6 = 23;
			iVar7 = 3;
			iVar9 = 3;
			break;
		
		case 231:
			StringCopy(&Var2, "TORSO_P1_18_4", 16);
			iVar6 = 23;
			iVar7 = 4;
			iVar9 = 3;
			break;
		
		case 232:
			StringCopy(&Var2, "TORSO_P1_18_5", 16);
			iVar6 = 23;
			iVar7 = 5;
			iVar9 = 3;
			break;
		
		case 233:
			StringCopy(&Var2, "TORSO_P1_18_6", 16);
			iVar6 = 23;
			iVar7 = 6;
			iVar9 = 3;
			break;
		
		case 234:
			StringCopy(&Var2, "TORSO_P1_18_7", 16);
			iVar6 = 23;
			iVar7 = 7;
			iVar9 = 3;
			break;
		
		case 235:
			StringCopy(&Var2, "TORSO_P1_18_8", 16);
			iVar6 = 23;
			iVar7 = 8;
			iVar9 = 3;
			break;
		
		case 236:
			StringCopy(&Var2, "TORSO_P1_18_9", 16);
			iVar6 = 23;
			iVar7 = 9;
			iVar9 = 3;
			break;
		
		case 237:
			StringCopy(&Var2, "TORSO_P1_18_10", 16);
			iVar6 = 23;
			iVar7 = 10;
			iVar9 = 3;
			break;
		
		case 238:
			StringCopy(&Var2, "TORSO_P1_18_11", 16);
			iVar6 = 23;
			iVar7 = 11;
			iVar9 = 3;
			break;
		
		case 239:
			StringCopy(&Var2, "TORSO_P1_18_12", 16);
			iVar6 = 23;
			iVar7 = 12;
			iVar9 = 3;
			break;
		
		case 240:
			StringCopy(&Var2, "TORSO_P1_18_13", 16);
			iVar6 = 23;
			iVar7 = 13;
			iVar9 = 3;
			break;
		
		case 241:
			StringCopy(&Var2, "TORSO_P1_18_14", 16);
			iVar6 = 23;
			iVar7 = 14;
			iVar9 = 3;
			break;
		
		case 242:
			StringCopy(&Var2, "TORSO_P1_18_15", 16);
			iVar6 = 23;
			iVar7 = 15;
			iVar9 = 3;
			break;
		
		case 243:
			StringCopy(&Var2, "TORSO_P1_24_0", 16);
			iVar6 = 24;
			iVar7 = 0;
			iVar1 = 2200;
			iVar9 = 3;
			break;
		
		case 244:
			StringCopy(&Var2, "TORSO_P1_24_1", 16);
			iVar6 = 24;
			iVar7 = 1;
			iVar1 = 2200;
			iVar9 = 3;
			break;
		
		case 245:
			StringCopy(&Var2, "TORSO_P1_24_2", 16);
			iVar6 = 24;
			iVar7 = 2;
			iVar1 = 2200;
			iVar9 = 3;
			break;
		
		case 246:
			StringCopy(&Var2, "TORSO_P1_24_3", 16);
			iVar6 = 24;
			iVar7 = 3;
			iVar1 = 2200;
			iVar9 = 3;
			break;
		
		case 247:
			StringCopy(&Var2, "TORSO_P1_24_4", 16);
			iVar6 = 24;
			iVar7 = 4;
			iVar1 = 2200;
			iVar9 = 3;
			break;
		
		case 248:
			StringCopy(&Var2, "TORSO_P1_24_5", 16);
			iVar6 = 24;
			iVar7 = 5;
			iVar1 = 2200;
			iVar9 = 3;
			break;
		
		case 249:
			StringCopy(&Var2, "TORSO_P1_24_6", 16);
			iVar6 = 24;
			iVar7 = 6;
			iVar1 = 2200;
			iVar9 = 3;
			break;
		
		case 250:
			StringCopy(&Var2, "TORSO_P1_24_7", 16);
			iVar6 = 24;
			iVar7 = 7;
			iVar1 = 2200;
			iVar9 = 3;
			break;
		
		case 251:
			StringCopy(&Var2, "TORSO_P1_24_8", 16);
			iVar6 = 24;
			iVar7 = 8;
			iVar1 = 2200;
			iVar9 = 3;
			break;
		
		case 252:
			StringCopy(&Var2, "TORSO_P1_24_9", 16);
			iVar6 = 24;
			iVar7 = 9;
			iVar1 = 2200;
			iVar9 = 3;
			break;
		
		case 253:
			StringCopy(&Var2, "TORSO_P1_24_10", 16);
			iVar6 = 24;
			iVar7 = 10;
			iVar1 = 2200;
			iVar9 = 3;
			break;
		
		case 254:
			StringCopy(&Var2, "TORSO_P1_24_11", 16);
			iVar6 = 24;
			iVar7 = 11;
			iVar1 = 2200;
			iVar9 = 3;
			break;
		
		case 255:
			StringCopy(&Var2, "TORSO_P1_24_12", 16);
			iVar6 = 24;
			iVar7 = 12;
			iVar1 = 2200;
			iVar9 = 3;
			break;
		
		case 256:
			StringCopy(&Var2, "TORSO_P1_24_13", 16);
			iVar6 = 24;
			iVar7 = 13;
			iVar1 = 2200;
			iVar9 = 3;
			break;
		
		case 257:
			StringCopy(&Var2, "TORSO_P1_24_14", 16);
			iVar6 = 24;
			iVar7 = 14;
			iVar1 = 2200;
			iVar9 = 3;
			break;
		
		case 258:
			StringCopy(&Var2, "TORSO_P1_24_15", 16);
			iVar6 = 24;
			iVar7 = 15;
			iVar1 = 2200;
			iVar9 = 3;
			break;
		
		case 259:
			StringCopy(&Var2, "TORSO_P1_25_0", 16);
			iVar6 = 25;
			iVar7 = 0;
			iVar0 = true;
			iVar9 = 3;
			break;
		
		case 260:
			StringCopy(&Var2, "NO_LABEL", 16);
			iVar6 = 26;
			iVar7 = 0;
			iVar9 = 1;
			break;
		
		case 261:
			StringCopy(&Var2, "TORSO_P1_27_0", 16);
			iVar6 = 27;
			iVar7 = 0;
			iVar1 = 150;
			break;
		
		case 262:
			StringCopy(&Var2, "TORSO_P1_27_1", 16);
			iVar6 = 27;
			iVar7 = 1;
			iVar1 = 160;
			break;
		
		case 263:
			StringCopy(&Var2, "TORSO_P1_27_2", 16);
			iVar6 = 27;
			iVar7 = 2;
			iVar1 = 150;
			break;
		
		case 264:
			StringCopy(&Var2, "TORSO_P1_27_3", 16);
			iVar6 = 27;
			iVar7 = 3;
			iVar1 = 150;
			break;
		
		case 265:
			StringCopy(&Var2, "TORSO_P1_27_4", 16);
			iVar6 = 27;
			iVar7 = 4;
			iVar1 = 160;
			break;
		
		case 266:
			StringCopy(&Var2, "TORSO_P1_27_5", 16);
			iVar6 = 27;
			iVar7 = 5;
			iVar1 = 160;
			break;
		
		case 267:
			StringCopy(&Var2, "TORSO_P1_28_0", 16);
			iVar6 = 28;
			iVar7 = 0;
			iVar1 = 88;
			break;
		
		case 268:
			StringCopy(&Var2, "TORSO_P1_28_1", 16);
			iVar6 = 28;
			iVar7 = 1;
			iVar1 = 60;
			break;
		
		case 269:
			StringCopy(&Var2, "TORSO_P1_28_2", 16);
			iVar6 = 28;
			iVar7 = 2;
			iVar1 = 70;
			break;
		
		case 270:
			StringCopy(&Var2, "TORSO_P1_28_3", 16);
			iVar6 = 28;
			iVar7 = 3;
			iVar1 = 80;
			break;
		
		case 271:
			StringCopy(&Var2, "TORSO_P1_28_4", 16);
			iVar6 = 28;
			iVar7 = 4;
			iVar1 = 90;
			break;
		
		case 272:
			StringCopy(&Var2, "TORSO_P1_28_5", 16);
			iVar6 = 28;
			iVar7 = 5;
			iVar1 = 80;
			break;
		
		case 273:
			StringCopy(&Var2, "TORSO_P1_28_6", 16);
			iVar6 = 28;
			iVar7 = 6;
			iVar1 = 70;
			break;
		
		case 274:
			StringCopy(&Var2, "TORSO_P1_28_7", 16);
			iVar6 = 28;
			iVar7 = 7;
			iVar1 = 95;
			break;
		
		case 275:
			StringCopy(&Var2, "TORSO_P1_28_8", 16);
			iVar6 = 28;
			iVar7 = 8;
			iVar1 = 105;
			break;
		
		case 276:
			StringCopy(&Var2, "TORSO_P1_28_9", 16);
			iVar6 = 28;
			iVar7 = 9;
			iVar1 = 95;
			break;
		
		case 277:
			StringCopy(&Var2, "TORSO_P1_28_10", 16);
			iVar6 = 28;
			iVar7 = 10;
			iVar1 = 110;
			break;
		
		case 278:
			StringCopy(&Var2, "TORSO_P1_28_11", 16);
			iVar6 = 28;
			iVar7 = 11;
			iVar1 = 98;
			break;
		
		case 279:
			StringCopy(&Var2, "TORSO_P1_28_12", 16);
			iVar6 = 28;
			iVar7 = 12;
			iVar1 = 88;
			break;
		
		case 280:
			StringCopy(&Var2, "TORSO_P1_28_13", 16);
			iVar6 = 28;
			iVar7 = 13;
			iVar1 = 98;
			break;
		
		case 281:
			StringCopy(&Var2, "TORSO_P1_28_14", 16);
			iVar6 = 28;
			iVar7 = 14;
			iVar1 = 110;
			break;
		
		case 282:
			StringCopy(&Var2, "TORSO_P1_28_15", 16);
			iVar6 = 28;
			iVar7 = 15;
			iVar1 = 98;
			break;
		
		case 283:
			StringCopy(&Var2, "TORSO_P1_29_0", 16);
			iVar6 = 29;
			iVar7 = 0;
			iVar1 = 250;
			break;
		
		case 284:
			StringCopy(&Var2, "TORSO_P1_29_1", 16);
			iVar6 = 29;
			iVar7 = 1;
			iVar1 = 270;
			break;
		
		case 285:
			StringCopy(&Var2, "TORSO_P1_29_2", 16);
			iVar6 = 29;
			iVar7 = 2;
			iVar1 = 280;
			break;
		
		case 286:
			StringCopy(&Var2, "TORSO_P1_29_3", 16);
			iVar6 = 29;
			iVar7 = 3;
			iVar1 = 275;
			break;
		
		case 287:
			StringCopy(&Var2, "TORSO_P1_29_4", 16);
			iVar6 = 29;
			iVar7 = 4;
			iVar1 = 290;
			break;
		
		case 288:
			StringCopy(&Var2, "TORSO_P1_29_5", 16);
			iVar6 = 29;
			iVar7 = 5;
			iVar1 = 35;
			break;
		
		case 289:
			StringCopy(&Var2, "TORSO_P1_29_6", 16);
			iVar6 = 29;
			iVar7 = 6;
			iVar1 = 35;
			break;
		
		case 290:
			StringCopy(&Var2, "TORSO_P1_29_7", 16);
			iVar6 = 29;
			iVar7 = 7;
			iVar1 = 35;
			break;
		
		case 291:
			StringCopy(&Var2, "TORSO_P1_29_8", 16);
			iVar6 = 29;
			iVar7 = 8;
			iVar1 = 295;
			break;
		
		case 292:
			StringCopy(&Var2, "TORSO_P1_29_9", 16);
			iVar6 = 29;
			iVar7 = 9;
			iVar1 = 35;
			break;
		
		case 293:
			StringCopy(&Var2, "TORSO_P1_29_10", 16);
			iVar6 = 29;
			iVar7 = 10;
			iVar1 = 35;
			break;
		
		case 294:
			StringCopy(&Var2, "TORSO_P1_29_11", 16);
			iVar6 = 29;
			iVar7 = 11;
			iVar1 = 35;
			break;
		
		case 295:
			StringCopy(&Var2, "TORSO_P1_29_12", 16);
			iVar6 = 29;
			iVar7 = 12;
			break;
		
		case 296:
			StringCopy(&Var2, "TORSO_P1_30_0", 16);
			iVar6 = 30;
			iVar7 = 0;
			iVar1 = 1750;
			break;
		
		case 297:
			StringCopy(&Var2, "TORSO_P1_30_1", 16);
			iVar6 = 30;
			iVar7 = 1;
			iVar1 = 1920;
			break;
		
		case 298:
			StringCopy(&Var2, "TORSO_P1_30_2", 16);
			iVar6 = 30;
			iVar7 = 2;
			iVar1 = 1890;
			break;
		
		case 299:
			StringCopy(&Var2, "TORSO_P1_30_3", 16);
			iVar6 = 30;
			iVar7 = 3;
			iVar1 = 1850;
			break;
		
		case 300:
			StringCopy(&Var2, "TORSO_P1_30_4", 16);
			iVar6 = 30;
			iVar7 = 4;
			iVar1 = 1750;
			break;
		
		case 301:
			StringCopy(&Var2, "TORSO_P1_30_5", 16);
			iVar6 = 30;
			iVar7 = 5;
			iVar1 = 1990;
			break;
		
		case 302:
			StringCopy(&Var2, "TORSO_P1_30_6", 16);
			iVar6 = 30;
			iVar7 = 6;
			iVar1 = 1820;
			break;
		
		case 303:
			StringCopy(&Var2, "TORSO_P1_30_7", 16);
			iVar6 = 30;
			iVar7 = 7;
			iVar1 = 1990;
			break;
		
		case 304:
			StringCopy(&Var2, "TORSO_P1_30_8", 16);
			iVar6 = 30;
			iVar7 = 8;
			iVar1 = 1920;
			break;
		
		case 305:
			StringCopy(&Var2, "TORSO_P1_30_9", 16);
			iVar6 = 30;
			iVar7 = 9;
			iVar1 = 1850;
			break;
		
		case 306:
			StringCopy(&Var2, "TORSO_P1_30_10", 16);
			iVar6 = 30;
			iVar7 = 10;
			iVar1 = 1990;
			break;
		
		case 307:
			StringCopy(&Var2, "TORSO_P1_30_11", 16);
			iVar6 = 30;
			iVar7 = 11;
			iVar1 = 1790;
			break;
		
		case 308:
			StringCopy(&Var2, "TORSO_P1_30_12", 16);
			iVar6 = 30;
			iVar7 = 12;
			iVar1 = 1790;
			break;
		
		case 309:
			StringCopy(&Var2, "TORSO_P1_31_0", 16);
			iVar6 = 31;
			iVar7 = 0;
			iVar1 = 69;
			break;
		
		case 310:
			StringCopy(&Var2, "TORSO_P1_31_1", 16);
			iVar6 = 31;
			iVar7 = 1;
			iVar1 = 75;
			break;
		
		case 311:
			StringCopy(&Var2, "TORSO_P1_31_2", 16);
			iVar6 = 31;
			iVar7 = 2;
			iVar1 = 75;
			break;
		
		case 312:
			StringCopy(&Var2, "TORSO_P1_31_3", 16);
			iVar6 = 31;
			iVar7 = 3;
			iVar1 = 79;
			break;
		
		case 313:
			StringCopy(&Var2, "TORSO_P1_31_4", 16);
			iVar6 = 31;
			iVar7 = 4;
			iVar1 = 79;
			break;
		
		case 314:
			StringCopy(&Var2, "TORSO_P1_31_5", 16);
			iVar6 = 31;
			iVar7 = 5;
			iVar1 = 89;
			break;
		
		case 315:
			StringCopy(&Var2, "TORSO_P1_31_6", 16);
			iVar6 = 31;
			iVar7 = 6;
			iVar1 = 85;
			break;
		
		case 316:
			StringCopy(&Var2, "TORSO_P1_31_7", 16);
			iVar6 = 31;
			iVar7 = 7;
			iVar1 = 85;
			break;
		
		case 317:
			StringCopy(&Var2, "TORSO_P1_31_8", 16);
			iVar6 = 31;
			iVar7 = 8;
			break;
		
		default:
			return;
			break;
	}
	func_195(&(Global_69518[0 /*14*/]), iVar10, iParam0, &Var2, iVar6, iVar7, iVar1, iVar0, iVar8, iVar9, 0);
}

void func_317(int iParam0)//Position - 0x526A9
{
	int iVar0;
	int iVar1;
	struct<2> Var2;
	int iVar6;
	int iVar7;
	int iVar8;
	int iVar9;
	int iVar10;
	
	iVar0 = false;
	iVar1 = 10;
	iVar6 = 0;
	iVar7 = 0;
	iVar8 = -1;
	iVar9 = 2;
	iVar10 = 3;
	Global_69518[0 /*14*/].f_5 = 1;
	switch (iParam0)
	{
		case 107:
			StringCopy(&Var2, "TORSO_P1_12_0", 16);
			iVar6 = 12;
			iVar7 = 0;
			iVar1 = 195;
			break;
		
		case 108:
			StringCopy(&Var2, "TORSO_P1_12_1", 16);
			iVar6 = 12;
			iVar7 = 1;
			iVar1 = 420;
			break;
		
		case 109:
			StringCopy(&Var2, "TORSO_P1_12_2", 16);
			iVar6 = 12;
			iVar7 = 2;
			iVar1 = 390;
			break;
		
		case 110:
			StringCopy(&Var2, "TORSO_P1_12_3", 16);
			iVar6 = 12;
			iVar7 = 3;
			iVar1 = 450;
			break;
		
		case 111:
			StringCopy(&Var2, "TORSO_P1_12_4", 16);
			iVar6 = 12;
			iVar7 = 4;
			iVar1 = 400;
			break;
		
		case 112:
			StringCopy(&Var2, "TORSO_P1_12_5", 16);
			iVar6 = 12;
			iVar7 = 5;
			iVar1 = 390;
			break;
		
		case 113:
			StringCopy(&Var2, "TORSO_P1_12_6", 16);
			iVar6 = 12;
			iVar7 = 6;
			iVar1 = 570;
			break;
		
		case 114:
			StringCopy(&Var2, "TORSO_P1_12_7", 16);
			iVar6 = 12;
			iVar7 = 7;
			iVar1 = 390;
			break;
		
		case 115:
			StringCopy(&Var2, "TORSO_P1_12_8", 16);
			iVar6 = 12;
			iVar7 = 8;
			iVar1 = 470;
			break;
		
		case 116:
			StringCopy(&Var2, "TORSO_P1_12_9", 16);
			iVar6 = 12;
			iVar7 = 9;
			iVar1 = 390;
			break;
		
		case 117:
			StringCopy(&Var2, "TORSO_P1_12_10", 16);
			iVar6 = 12;
			iVar7 = 10;
			iVar1 = 520;
			break;
		
		case 118:
			StringCopy(&Var2, "TORSO_P1_12_11", 16);
			iVar6 = 12;
			iVar7 = 11;
			iVar1 = 490;
			break;
		
		case 119:
			StringCopy(&Var2, "TORSO_P1_12_12", 16);
			iVar6 = 12;
			iVar7 = 12;
			iVar1 = 490;
			break;
		
		case 120:
			StringCopy(&Var2, "TORSO_P1_12_13", 16);
			iVar6 = 12;
			iVar7 = 13;
			iVar1 = 590;
			break;
		
		case 121:
			StringCopy(&Var2, "TORSO_P1_12_14", 16);
			iVar6 = 12;
			iVar7 = 14;
			iVar1 = 560;
			break;
		
		case 122:
			StringCopy(&Var2, "TORSO_P1_12_15", 16);
			iVar6 = 12;
			iVar7 = 15;
			iVar1 = 520;
			break;
		
		case 123:
			StringCopy(&Var2, "TORSO_P1_13_0", 16);
			iVar6 = 13;
			iVar7 = 0;
			break;
		
		case 124:
			StringCopy(&Var2, "TORSO_P1_13_1", 16);
			iVar6 = 13;
			iVar7 = 1;
			break;
		
		case 125:
			StringCopy(&Var2, "TORSO_P1_13_2", 16);
			iVar6 = 13;
			iVar7 = 2;
			break;
		
		case 126:
			StringCopy(&Var2, "TORSO_P1_13_3", 16);
			iVar6 = 13;
			iVar7 = 3;
			iVar1 = 90;
			break;
		
		case 127:
			StringCopy(&Var2, "TORSO_P1_13_4", 16);
			iVar6 = 13;
			iVar7 = 4;
			iVar1 = 85;
			break;
		
		case 128:
			StringCopy(&Var2, "TORSO_P1_13_5", 16);
			iVar6 = 13;
			iVar7 = 5;
			iVar1 = 45;
			break;
		
		case 129:
			StringCopy(&Var2, "TORSO_P1_13_6", 16);
			iVar6 = 13;
			iVar7 = 6;
			iVar1 = 90;
			break;
		
		case 130:
			StringCopy(&Var2, "TORSO_P1_13_7", 16);
			iVar6 = 13;
			iVar7 = 7;
			iVar1 = 47;
			break;
		
		case 131:
			StringCopy(&Var2, "TORSO_P1_13_8", 16);
			iVar6 = 13;
			iVar7 = 8;
			iVar1 = 45;
			break;
		
		case 132:
			StringCopy(&Var2, "TORSO_P1_13_9", 16);
			iVar6 = 13;
			iVar7 = 9;
			iVar1 = 48;
			break;
		
		case 133:
			StringCopy(&Var2, "TORSO_P1_13_10", 16);
			iVar6 = 13;
			iVar7 = 10;
			iVar1 = 45;
			break;
		
		case 134:
			StringCopy(&Var2, "TORSO_P1_13_11", 16);
			iVar6 = 13;
			iVar7 = 11;
			iVar1 = 85;
			break;
		
		case 135:
			StringCopy(&Var2, "TORSO_P1_13_12", 16);
			iVar6 = 13;
			iVar7 = 12;
			iVar1 = 45;
			break;
		
		case 136:
			StringCopy(&Var2, "TORSO_P1_13_13", 16);
			iVar6 = 13;
			iVar7 = 13;
			iVar1 = 47;
			break;
		
		case 137:
			StringCopy(&Var2, "TORSO_P1_13_14", 16);
			iVar6 = 13;
			iVar7 = 14;
			iVar1 = 45;
			break;
		
		case 138:
			StringCopy(&Var2, "TORSO_P1_13_15", 16);
			iVar6 = 13;
			iVar7 = 15;
			iVar1 = 48;
			break;
		
		case 139:
			StringCopy(&Var2, "TORSO_P1_14_0", 16);
			iVar6 = 14;
			iVar7 = 0;
			iVar1 = 290;
			break;
		
		case 140:
			StringCopy(&Var2, "TORSO_P1_14_1", 16);
			iVar6 = 14;
			iVar7 = 1;
			iVar1 = 290;
			break;
		
		case 141:
			StringCopy(&Var2, "TORSO_P1_14_2", 16);
			iVar6 = 14;
			iVar7 = 2;
			iVar1 = 290;
			break;
		
		case 142:
			StringCopy(&Var2, "TORSO_P1_14_3", 16);
			iVar6 = 14;
			iVar7 = 3;
			iVar1 = 290;
			break;
		
		case 143:
			StringCopy(&Var2, "TORSO_P1_14_4", 16);
			iVar6 = 14;
			iVar7 = 4;
			iVar1 = 290;
			break;
		
		case 144:
			StringCopy(&Var2, "TORSO_P1_14_5", 16);
			iVar6 = 14;
			iVar7 = 5;
			iVar1 = 290;
			break;
		
		case 145:
			StringCopy(&Var2, "TORSO_P1_14_6", 16);
			iVar6 = 14;
			iVar7 = 6;
			iVar1 = 65;
			break;
		
		case 146:
			StringCopy(&Var2, "TORSO_P1_14_7", 16);
			iVar6 = 14;
			iVar7 = 7;
			iVar1 = 65;
			break;
		
		case 147:
			StringCopy(&Var2, "TORSO_P1_15_0", 16);
			iVar6 = 15;
			iVar7 = 0;
			iVar1 = 200;
			break;
		
		case 148:
			StringCopy(&Var2, "TORSO_P1_15_1", 16);
			iVar6 = 15;
			iVar7 = 1;
			iVar1 = 220;
			break;
		
		case 149:
			StringCopy(&Var2, "TORSO_P1_15_2", 16);
			iVar6 = 15;
			iVar7 = 2;
			iVar1 = 220;
			break;
		
		case 150:
			StringCopy(&Var2, "TORSO_P1_15_3", 16);
			iVar6 = 15;
			iVar7 = 3;
			iVar1 = 240;
			break;
		
		case 151:
			StringCopy(&Var2, "TORSO_P1_15_4", 16);
			iVar6 = 15;
			iVar7 = 4;
			break;
		
		case 152:
			StringCopy(&Var2, "TORSO_P1_15_5", 16);
			iVar6 = 15;
			iVar7 = 5;
			iVar1 = 250;
			break;
		
		case 153:
			StringCopy(&Var2, "TORSO_P1_15_6", 16);
			iVar6 = 15;
			iVar7 = 6;
			iVar1 = 260;
			break;
		
		case 154:
			StringCopy(&Var2, "TORSO_P1_15_7", 16);
			iVar6 = 15;
			iVar7 = 7;
			iVar1 = 40;
			break;
		
		case 155:
			StringCopy(&Var2, "TORSO_P1_15_8", 16);
			iVar6 = 15;
			iVar7 = 8;
			iVar1 = 50;
			break;
		
		case 156:
			StringCopy(&Var2, "TORSO_P1_15_9", 16);
			iVar6 = 15;
			iVar7 = 9;
			iVar1 = 45;
			break;
		
		case 157:
			StringCopy(&Var2, "TORSO_P1_15_10", 16);
			iVar6 = 15;
			iVar7 = 10;
			iVar1 = 40;
			break;
		
		case 158:
			StringCopy(&Var2, "TORSO_P1_15_11", 16);
			iVar6 = 15;
			iVar7 = 11;
			iVar1 = 55;
			break;
		
		case 159:
			StringCopy(&Var2, "TORSO_P1_16_0", 16);
			iVar6 = 16;
			iVar7 = 0;
			break;
		
		case 160:
			StringCopy(&Var2, "TORSO_P1_17_0", 16);
			iVar6 = 17;
			iVar7 = 0;
			iVar1 = 40;
			break;
		
		case 161:
			StringCopy(&Var2, "TORSO_P1_17_1", 16);
			iVar6 = 17;
			iVar7 = 1;
			iVar1 = 50;
			break;
		
		case 162:
			StringCopy(&Var2, "TORSO_P1_17_2", 16);
			iVar6 = 17;
			iVar7 = 2;
			break;
		
		case 163:
			StringCopy(&Var2, "TORSO_P1_17_3", 16);
			iVar6 = 17;
			iVar7 = 3;
			iVar1 = 50;
			break;
		
		case 164:
			StringCopy(&Var2, "TORSO_P1_17_4", 16);
			iVar6 = 17;
			iVar7 = 4;
			iVar1 = 50;
			break;
		
		case 165:
			StringCopy(&Var2, "TORSO_P1_17_5", 16);
			iVar6 = 17;
			iVar7 = 5;
			iVar1 = 50;
			break;
		
		case 166:
			StringCopy(&Var2, "TORSO_P1_17_6", 16);
			iVar6 = 17;
			iVar7 = 6;
			iVar1 = 50;
			break;
		
		case 167:
			StringCopy(&Var2, "TORSO_P1_17_7", 16);
			iVar6 = 17;
			iVar7 = 7;
			iVar1 = 50;
			break;
		
		case 168:
			StringCopy(&Var2, "TORSO_P1_17_8", 16);
			iVar6 = 17;
			iVar7 = 8;
			iVar1 = 50;
			break;
		
		case 169:
			StringCopy(&Var2, "TORSO_P1_17_9", 16);
			iVar6 = 17;
			iVar7 = 9;
			iVar1 = 50;
			break;
		
		case 170:
			StringCopy(&Var2, "TORSO_P1_17_10", 16);
			iVar6 = 17;
			iVar7 = 10;
			iVar1 = 50;
			break;
		
		case 171:
			StringCopy(&Var2, "TORSO_P1_17_11", 16);
			iVar6 = 17;
			iVar7 = 11;
			iVar1 = 50;
			break;
		
		case 172:
			StringCopy(&Var2, "TORSO_P1_17_12", 16);
			iVar6 = 17;
			iVar7 = 12;
			iVar1 = 50;
			break;
		
		case 173:
			StringCopy(&Var2, "TORSO_P1_17_13", 16);
			iVar6 = 17;
			iVar7 = 13;
			iVar1 = 50;
			break;
		
		case 174:
			StringCopy(&Var2, "TORSO_P1_17_14", 16);
			iVar6 = 17;
			iVar7 = 14;
			iVar1 = 50;
			break;
		
		case 175:
			StringCopy(&Var2, "TORSO_P1_17_15", 16);
			iVar6 = 17;
			iVar7 = 15;
			iVar1 = 50;
			break;
		
		case 176:
			StringCopy(&Var2, "TORSO_P1_18_0", 16);
			iVar6 = 18;
			iVar7 = 0;
			iVar9 = 3;
			break;
		
		case 177:
			StringCopy(&Var2, "TORSO_P1_18_1", 16);
			iVar6 = 18;
			iVar7 = 1;
			iVar9 = 3;
			break;
		
		case 178:
			StringCopy(&Var2, "TORSO_P1_18_2", 16);
			iVar6 = 18;
			iVar7 = 2;
			iVar9 = 3;
			break;
		
		case 179:
			StringCopy(&Var2, "TORSO_P1_18_3", 16);
			iVar6 = 18;
			iVar7 = 3;
			iVar9 = 3;
			break;
		
		case 180:
			StringCopy(&Var2, "TORSO_P1_18_4", 16);
			iVar6 = 18;
			iVar7 = 4;
			iVar9 = 3;
			break;
		
		case 181:
			StringCopy(&Var2, "TORSO_P1_18_5", 16);
			iVar6 = 18;
			iVar7 = 5;
			iVar9 = 3;
			break;
		
		case 182:
			StringCopy(&Var2, "TORSO_P1_18_6", 16);
			iVar6 = 18;
			iVar7 = 6;
			iVar9 = 3;
			break;
		
		case 183:
			StringCopy(&Var2, "TORSO_P1_18_7", 16);
			iVar6 = 18;
			iVar7 = 7;
			iVar9 = 3;
			break;
		
		case 184:
			StringCopy(&Var2, "TORSO_P1_18_8", 16);
			iVar6 = 18;
			iVar7 = 8;
			iVar9 = 3;
			break;
		
		case 185:
			StringCopy(&Var2, "TORSO_P1_18_9", 16);
			iVar6 = 18;
			iVar7 = 9;
			iVar9 = 3;
			break;
		
		case 186:
			StringCopy(&Var2, "TORSO_P1_18_10", 16);
			iVar6 = 18;
			iVar7 = 10;
			iVar9 = 3;
			break;
		
		case 187:
			StringCopy(&Var2, "TORSO_P1_18_11", 16);
			iVar6 = 18;
			iVar7 = 11;
			iVar9 = 3;
			break;
		
		case 188:
			StringCopy(&Var2, "TORSO_P1_18_12", 16);
			iVar6 = 18;
			iVar7 = 12;
			iVar9 = 3;
			break;
		
		case 189:
			StringCopy(&Var2, "TORSO_P1_18_13", 16);
			iVar6 = 18;
			iVar7 = 13;
			iVar9 = 3;
			break;
		
		case 190:
			StringCopy(&Var2, "TORSO_P1_18_14", 16);
			iVar6 = 18;
			iVar7 = 14;
			iVar9 = 3;
			break;
		
		case 191:
			StringCopy(&Var2, "TORSO_P1_18_15", 16);
			iVar6 = 18;
			iVar7 = 15;
			iVar9 = 3;
			break;
		
		case 192:
			StringCopy(&Var2, "TORSO_P1_19_0", 16);
			iVar6 = 19;
			iVar7 = 0;
			iVar1 = 480;
			iVar9 = 3;
			break;
		
		case 193:
			StringCopy(&Var2, "TORSO_P1_19_1", 16);
			iVar6 = 19;
			iVar7 = 1;
			iVar1 = 440;
			iVar9 = 3;
			break;
		
		case 194:
			StringCopy(&Var2, "TORSO_P1_19_2", 16);
			iVar6 = 19;
			iVar7 = 2;
			iVar1 = 440;
			iVar9 = 3;
			break;
		
		case 195:
			StringCopy(&Var2, "TORSO_P1_19_3", 16);
			iVar6 = 19;
			iVar7 = 3;
			iVar1 = 520;
			iVar9 = 3;
			break;
		
		case 196:
			StringCopy(&Var2, "TORSO_P1_19_4", 16);
			iVar6 = 19;
			iVar7 = 4;
			iVar1 = 440;
			iVar9 = 3;
			break;
		
		case 197:
			StringCopy(&Var2, "TORSO_P1_19_5", 16);
			iVar6 = 19;
			iVar7 = 5;
			iVar1 = 440;
			iVar9 = 3;
			break;
		
		case 198:
			StringCopy(&Var2, "TORSO_P1_19_6", 16);
			iVar6 = 19;
			iVar7 = 6;
			iVar1 = 480;
			iVar9 = 3;
			break;
		
		case 199:
			StringCopy(&Var2, "TORSO_P1_19_7", 16);
			iVar6 = 19;
			iVar7 = 7;
			iVar1 = 480;
			iVar9 = 3;
			break;
		
		case 200:
			StringCopy(&Var2, "TORSO_P1_19_8", 16);
			iVar6 = 19;
			iVar7 = 8;
			iVar1 = 480;
			iVar9 = 3;
			break;
		
		case 201:
			StringCopy(&Var2, "TORSO_P1_19_9", 16);
			iVar6 = 19;
			iVar7 = 9;
			iVar1 = 480;
			iVar9 = 3;
			break;
		
		case 202:
			StringCopy(&Var2, "TORSO_P1_19_10", 16);
			iVar6 = 19;
			iVar7 = 10;
			iVar1 = 480;
			iVar9 = 3;
			break;
		
		case 203:
			StringCopy(&Var2, "TORSO_P1_19_11", 16);
			iVar6 = 19;
			iVar7 = 11;
			iVar1 = 480;
			iVar9 = 3;
			break;
		
		case 204:
			StringCopy(&Var2, "TORSO_P1_19_12", 16);
			iVar6 = 19;
			iVar7 = 12;
			iVar1 = 520;
			iVar9 = 3;
			break;
		
		case 205:
			StringCopy(&Var2, "TORSO_P1_19_13", 16);
			iVar6 = 19;
			iVar7 = 13;
			iVar1 = 520;
			iVar9 = 3;
			break;
		
		case 206:
			StringCopy(&Var2, "TORSO_P1_19_14", 16);
			iVar6 = 19;
			iVar7 = 14;
			iVar1 = 520;
			iVar9 = 3;
			break;
		
		case 207:
			StringCopy(&Var2, "TORSO_P1_19_15", 16);
			iVar6 = 19;
			iVar7 = 15;
			iVar1 = 440;
			iVar9 = 3;
			break;
		
		case 208:
			StringCopy(&Var2, "NO_LABEL", 16);
			iVar6 = 20;
			iVar7 = 0;
			iVar0 = true;
			iVar9 = 4;
			break;
		
		case 209:
			StringCopy(&Var2, "TORSO_P1_21_0", 16);
			iVar6 = 21;
			iVar7 = 0;
			iVar1 = 220;
			break;
		
		case 210:
			StringCopy(&Var2, "TORSO_P1_21_1", 16);
			iVar6 = 21;
			iVar7 = 1;
			iVar1 = 200;
			break;
		
		case 211:
			StringCopy(&Var2, "TORSO_P1_21_2", 16);
			iVar6 = 21;
			iVar7 = 2;
			iVar1 = 240;
			break;
		
		case 212:
			StringCopy(&Var2, "TORSO_P1_21_3", 16);
			iVar6 = 21;
			iVar7 = 3;
			iVar1 = 240;
			break;
		
		case 213:
			StringCopy(&Var2, "TORSO_P1_21_4", 16);
			iVar6 = 21;
			iVar7 = 4;
			iVar1 = 260;
			break;
		
		case 214:
			StringCopy(&Var2, "TORSO_P1_21_5", 16);
			iVar6 = 21;
			iVar7 = 5;
			iVar1 = 275;
			break;
		
		case 215:
			StringCopy(&Var2, "TORSO_P1_21_6", 16);
			iVar6 = 21;
			iVar7 = 6;
			iVar1 = 275;
			break;
		
		case 216:
			StringCopy(&Var2, "TORSO_P1_21_7", 16);
			iVar6 = 21;
			iVar7 = 7;
			iVar1 = 280;
			break;
		
		case 217:
			StringCopy(&Var2, "TORSO_P1_21_8", 16);
			iVar6 = 21;
			iVar7 = 8;
			iVar1 = 280;
			break;
		
		case 218:
			StringCopy(&Var2, "TORSO_P1_21_9", 16);
			iVar6 = 21;
			iVar7 = 9;
			iVar1 = 280;
			break;
		
		case 219:
			StringCopy(&Var2, "TORSO_P1_21_10", 16);
			iVar6 = 21;
			iVar7 = 10;
			iVar1 = 280;
			break;
		
		case 220:
			StringCopy(&Var2, "TORSO_P1_21_11", 16);
			iVar6 = 21;
			iVar7 = 11;
			iVar1 = 280;
			break;
		
		case 221:
			StringCopy(&Var2, "TORSO_P1_21_12", 16);
			iVar6 = 21;
			iVar7 = 12;
			iVar1 = 280;
			break;
		
		case 222:
			StringCopy(&Var2, "TORSO_P1_21_13", 16);
			iVar6 = 21;
			iVar7 = 13;
			iVar1 = 280;
			break;
		
		case 223:
			StringCopy(&Var2, "TORSO_P1_22_0", 16);
			iVar6 = 22;
			iVar7 = 0;
			iVar1 = 3100;
			iVar9 = 3;
			break;
		
		case 224:
			StringCopy(&Var2, "TORSO_P1_22_1", 16);
			iVar6 = 22;
			iVar7 = 1;
			iVar1 = 2800;
			iVar9 = 3;
			break;
		
		case 225:
			StringCopy(&Var2, "TORSO_P1_22_2", 16);
			iVar6 = 22;
			iVar7 = 2;
			iVar1 = 2500;
			iVar9 = 3;
			break;
		
		case 226:
			StringCopy(&Var2, "TORSO_P1_22_3", 16);
			iVar6 = 22;
			iVar7 = 3;
			iVar1 = 3000;
			iVar9 = 3;
			break;
		
		default:
			return;
			break;
	}
	func_195(&(Global_69518[0 /*14*/]), iVar10, iParam0, &Var2, iVar6, iVar7, iVar1, iVar0, iVar8, iVar9, 0);
}

void func_318(int iParam0)//Position - 0x534BE
{
	int iVar0;
	int iVar1;
	struct<2> Var2;
	int iVar6;
	int iVar7;
	int iVar8;
	int iVar9;
	int iVar10;
	
	iVar0 = false;
	iVar1 = 10;
	iVar6 = 0;
	iVar7 = 0;
	iVar8 = -1;
	iVar9 = 2;
	iVar10 = 3;
	Global_69518[0 /*14*/].f_5 = 1;
	switch (iParam0)
	{
		case 0:
			StringCopy(&Var2, "TORSO_P1_0_0", 16);
			iVar6 = 0;
			iVar7 = 0;
			break;
		
		case 1:
			StringCopy(&Var2, "TORSO_P1_0_1", 16);
			iVar6 = 0;
			iVar7 = 1;
			break;
		
		case 2:
			StringCopy(&Var2, "TORSO_P1_0_2", 16);
			iVar6 = 0;
			iVar7 = 2;
			iVar1 = 180;
			break;
		
		case 3:
			StringCopy(&Var2, "TORSO_P1_0_3", 16);
			iVar6 = 0;
			iVar7 = 3;
			iVar1 = 22;
			break;
		
		case 4:
			StringCopy(&Var2, "TORSO_P1_0_4", 16);
			iVar6 = 0;
			iVar7 = 4;
			iVar1 = 20;
			break;
		
		case 5:
			StringCopy(&Var2, "TORSO_P1_0_5", 16);
			iVar6 = 0;
			iVar7 = 5;
			iVar1 = 18;
			break;
		
		case 6:
			StringCopy(&Var2, "TORSO_P1_0_6", 16);
			iVar6 = 0;
			iVar7 = 6;
			iVar1 = 19;
			break;
		
		case 7:
			StringCopy(&Var2, "TORSO_P1_0_7", 16);
			iVar6 = 0;
			iVar7 = 7;
			iVar1 = 22;
			break;
		
		case 8:
			StringCopy(&Var2, "TORSO_P1_0_8", 16);
			iVar6 = 0;
			iVar7 = 8;
			iVar1 = 20;
			break;
		
		case 9:
			StringCopy(&Var2, "TORSO_P1_0_9", 16);
			iVar6 = 0;
			iVar7 = 9;
			iVar1 = 19;
			break;
		
		case 10:
			StringCopy(&Var2, "TORSO_P1_0_10", 16);
			iVar6 = 0;
			iVar7 = 10;
			iVar1 = 19;
			break;
		
		case 11:
			StringCopy(&Var2, "TORSO_P1_0_11", 16);
			iVar6 = 0;
			iVar7 = 11;
			iVar1 = 18;
			break;
		
		case 12:
			StringCopy(&Var2, "TORSO_P1_0_12", 16);
			iVar6 = 0;
			iVar7 = 12;
			iVar1 = 20;
			break;
		
		case 13:
			StringCopy(&Var2, "TORSO_P1_0_13", 16);
			iVar6 = 0;
			iVar7 = 13;
			iVar1 = 22;
			break;
		
		case 14:
			StringCopy(&Var2, "TORSO_P1_0_14", 16);
			iVar6 = 0;
			iVar7 = 14;
			iVar1 = 19;
			break;
		
		case 15:
			StringCopy(&Var2, "TORSO_P1_0_15", 16);
			iVar6 = 0;
			iVar7 = 15;
			iVar1 = 22;
			break;
		
		case 16:
			StringCopy(&Var2, "NO_LABEL", 16);
			iVar6 = 1;
			iVar7 = 0;
			iVar0 = true;
			iVar9 = 4;
			break;
		
		case 17:
			StringCopy(&Var2, "NO_LABEL", 16);
			iVar6 = 1;
			iVar7 = 1;
			iVar0 = true;
			iVar9 = 4;
			break;
		
		case 18:
			StringCopy(&Var2, "NO_LABEL", 16);
			iVar6 = 1;
			iVar7 = 2;
			iVar0 = true;
			iVar9 = 4;
			break;
		
		case 19:
			StringCopy(&Var2, "NO_LABEL", 16);
			iVar6 = 1;
			iVar7 = 3;
			iVar0 = true;
			iVar9 = 4;
			break;
		
		case 20:
			StringCopy(&Var2, "NO_LABEL", 16);
			iVar6 = 1;
			iVar7 = 4;
			iVar0 = true;
			iVar9 = 4;
			break;
		
		case 21:
			StringCopy(&Var2, "NO_LABEL", 16);
			iVar6 = 1;
			iVar7 = 5;
			iVar0 = true;
			iVar9 = 4;
			break;
		
		case 22:
			StringCopy(&Var2, "TORSO_P1_2_0", 16);
			iVar6 = 2;
			iVar7 = 0;
			iVar0 = true;
			iVar9 = 3;
			break;
		
		case 23:
			StringCopy(&Var2, "NO_LABEL", 16);
			iVar6 = 3;
			iVar7 = 0;
			iVar0 = true;
			iVar9 = 1;
			break;
		
		case 24:
			StringCopy(&Var2, "TORSO_P1_4_0", 16);
			iVar6 = 4;
			iVar7 = 0;
			iVar1 = 20;
			iVar9 = 2;
			break;
		
		case 25:
			StringCopy(&Var2, "TORSO_P1_4_1", 16);
			iVar6 = 4;
			iVar7 = 1;
			iVar1 = 22;
			iVar9 = 2;
			break;
		
		case 26:
			StringCopy(&Var2, "TORSO_P1_4_2", 16);
			iVar6 = 4;
			iVar7 = 2;
			iVar1 = 20;
			iVar9 = 2;
			break;
		
		case 27:
			StringCopy(&Var2, "TORSO_P1_4_3", 16);
			iVar6 = 4;
			iVar7 = 3;
			iVar1 = 25;
			iVar9 = 2;
			break;
		
		case 28:
			StringCopy(&Var2, "TORSO_P1_4_4", 16);
			iVar6 = 4;
			iVar7 = 4;
			iVar1 = 23;
			iVar9 = 2;
			break;
		
		case 29:
			StringCopy(&Var2, "TORSO_P1_4_5", 16);
			iVar6 = 4;
			iVar7 = 5;
			iVar1 = 25;
			iVar9 = 2;
			break;
		
		case 30:
			StringCopy(&Var2, "TORSO_P1_4_6", 16);
			iVar6 = 4;
			iVar7 = 6;
			iVar1 = 28;
			iVar9 = 2;
			break;
		
		case 31:
			StringCopy(&Var2, "TORSO_P1_4_7", 16);
			iVar6 = 4;
			iVar7 = 7;
			iVar1 = 26;
			iVar9 = 2;
			break;
		
		case 32:
			StringCopy(&Var2, "TORSO_P1_4_8", 16);
			iVar6 = 4;
			iVar7 = 8;
			iVar1 = 24;
			iVar9 = 2;
			break;
		
		case 33:
			StringCopy(&Var2, "TORSO_P1_4_9", 16);
			iVar6 = 4;
			iVar7 = 9;
			iVar1 = 27;
			iVar9 = 2;
			break;
		
		case 34:
			StringCopy(&Var2, "TORSO_P1_4_10", 16);
			iVar6 = 4;
			iVar7 = 10;
			iVar1 = 29;
			iVar9 = 2;
			break;
		
		case 35:
			StringCopy(&Var2, "TORSO_P1_4_11", 16);
			iVar6 = 4;
			iVar7 = 11;
			iVar1 = 28;
			iVar9 = 2;
			break;
		
		case 36:
			StringCopy(&Var2, "TORSO_P1_4_12", 16);
			iVar6 = 4;
			iVar7 = 12;
			iVar1 = 25;
			iVar9 = 2;
			break;
		
		case 37:
			StringCopy(&Var2, "TORSO_P1_4_13", 16);
			iVar6 = 4;
			iVar7 = 13;
			iVar1 = 22;
			iVar9 = 2;
			break;
		
		case 38:
			StringCopy(&Var2, "TORSO_P1_4_14", 16);
			iVar6 = 4;
			iVar7 = 14;
			iVar1 = 27;
			iVar9 = 2;
			break;
		
		case 39:
			StringCopy(&Var2, "TORSO_P1_4_15", 16);
			iVar6 = 4;
			iVar7 = 15;
			iVar1 = 29;
			iVar9 = 2;
			break;
		
		case 40:
			StringCopy(&Var2, "NO_LABEL", 16);
			iVar6 = 5;
			iVar7 = 0;
			iVar0 = true;
			iVar9 = 4;
			break;
		
		case 41:
			StringCopy(&Var2, "TORSO_P1_6_0", 16);
			iVar6 = 6;
			iVar7 = 0;
			iVar9 = 3;
			break;
		
		case 42:
			StringCopy(&Var2, "TORSO_P1_6_1", 16);
			iVar6 = 6;
			iVar7 = 1;
			iVar1 = 1270;
			iVar9 = 3;
			break;
		
		case 43:
			StringCopy(&Var2, "TORSO_P1_6_2", 16);
			iVar6 = 6;
			iVar7 = 2;
			iVar1 = 1270;
			iVar9 = 3;
			break;
		
		case 44:
			StringCopy(&Var2, "TORSO_P1_6_3", 16);
			iVar6 = 6;
			iVar7 = 3;
			iVar1 = 1270;
			iVar9 = 3;
			break;
		
		case 45:
			StringCopy(&Var2, "TORSO_P1_6_4", 16);
			iVar6 = 6;
			iVar7 = 4;
			iVar1 = 1090;
			iVar9 = 3;
			break;
		
		case 46:
			StringCopy(&Var2, "TORSO_P1_6_5", 16);
			iVar6 = 6;
			iVar7 = 5;
			iVar1 = 1090;
			iVar9 = 3;
			break;
		
		case 47:
			StringCopy(&Var2, "TORSO_P1_6_6", 16);
			iVar6 = 6;
			iVar7 = 6;
			iVar1 = 1120;
			iVar9 = 3;
			break;
		
		case 48:
			StringCopy(&Var2, "TORSO_P1_6_7", 16);
			iVar6 = 6;
			iVar7 = 7;
			iVar1 = 1120;
			iVar9 = 3;
			break;
		
		case 49:
			StringCopy(&Var2, "TORSO_P1_6_8", 16);
			iVar6 = 6;
			iVar7 = 8;
			iVar1 = 1290;
			iVar9 = 3;
			break;
		
		case 50:
			StringCopy(&Var2, "TORSO_P1_6_9", 16);
			iVar6 = 6;
			iVar7 = 9;
			iVar1 = 1290;
			iVar9 = 3;
			break;
		
		case 51:
			StringCopy(&Var2, "TORSO_P1_6_10", 16);
			iVar6 = 6;
			iVar7 = 10;
			iVar1 = 1320;
			iVar9 = 3;
			break;
		
		case 52:
			StringCopy(&Var2, "TORSO_P1_6_11", 16);
			iVar6 = 6;
			iVar7 = 11;
			iVar1 = 1320;
			iVar9 = 3;
			break;
		
		case 53:
			StringCopy(&Var2, "TORSO_P1_6_12", 16);
			iVar6 = 6;
			iVar7 = 12;
			iVar1 = 1590;
			iVar9 = 3;
			break;
		
		case 54:
			StringCopy(&Var2, "TORSO_P1_6_13", 16);
			iVar6 = 6;
			iVar7 = 13;
			iVar1 = 1590;
			iVar9 = 3;
			break;
		
		case 55:
			StringCopy(&Var2, "TORSO_P1_6_14", 16);
			iVar6 = 6;
			iVar7 = 14;
			iVar1 = 1590;
			iVar9 = 3;
			break;
		
		case 56:
			StringCopy(&Var2, "TORSO_P1_6_15", 16);
			iVar6 = 6;
			iVar7 = 15;
			iVar1 = 1320;
			iVar9 = 3;
			break;
		
		case 57:
			StringCopy(&Var2, "TORSO_P1_7_0", 16);
			iVar6 = 7;
			iVar7 = 0;
			iVar1 = 98;
			break;
		
		case 58:
			StringCopy(&Var2, "TORSO_P1_7_1", 16);
			iVar6 = 7;
			iVar7 = 1;
			iVar1 = 98;
			break;
		
		case 59:
			StringCopy(&Var2, "TORSO_P1_7_2", 16);
			iVar6 = 7;
			iVar7 = 2;
			iVar1 = 110;
			break;
		
		case 60:
			StringCopy(&Var2, "TORSO_P1_7_3", 16);
			iVar6 = 7;
			iVar7 = 3;
			iVar1 = 110;
			break;
		
		case 61:
			StringCopy(&Var2, "TORSO_P1_7_4", 16);
			iVar6 = 7;
			iVar7 = 4;
			iVar1 = 118;
			break;
		
		case 62:
			StringCopy(&Var2, "TORSO_P1_7_5", 16);
			iVar6 = 7;
			iVar7 = 5;
			iVar1 = 120;
			break;
		
		case 63:
			StringCopy(&Var2, "TORSO_P1_7_6", 16);
			iVar6 = 7;
			iVar7 = 6;
			iVar1 = 120;
			break;
		
		case 64:
			StringCopy(&Var2, "TORSO_P1_7_7", 16);
			iVar6 = 7;
			iVar7 = 7;
			iVar1 = 129;
			break;
		
		case 65:
			StringCopy(&Var2, "TORSO_P1_7_8", 16);
			iVar6 = 7;
			iVar7 = 8;
			iVar1 = 125;
			break;
		
		case 66:
			StringCopy(&Var2, "TORSO_P1_7_9", 16);
			iVar6 = 7;
			iVar7 = 9;
			iVar1 = 125;
			break;
		
		case 67:
			StringCopy(&Var2, "TORSO_P1_7_10", 16);
			iVar6 = 7;
			iVar7 = 10;
			iVar1 = 129;
			break;
		
		case 68:
			StringCopy(&Var2, "TORSO_P1_7_11", 16);
			iVar6 = 7;
			iVar7 = 11;
			iVar1 = 129;
			break;
		
		case 69:
			StringCopy(&Var2, "TORSO_P1_7_12", 16);
			iVar6 = 7;
			iVar7 = 12;
			iVar1 = 135;
			break;
		
		case 70:
			StringCopy(&Var2, "TORSO_P1_7_13", 16);
			iVar6 = 7;
			iVar7 = 13;
			iVar1 = 139;
			break;
		
		case 71:
			StringCopy(&Var2, "TORSO_P1_7_14", 16);
			iVar6 = 7;
			iVar7 = 14;
			iVar1 = 145;
			break;
		
		case 72:
			StringCopy(&Var2, "TORSO_P1_7_15", 16);
			iVar6 = 7;
			iVar7 = 15;
			iVar1 = 145;
			break;
		
		case 73:
			StringCopy(&Var2, "TORSO_P1_8_0", 16);
			iVar6 = 8;
			iVar7 = 0;
			break;
		
		case 74:
			StringCopy(&Var2, "TORSO_P1_8_1", 16);
			iVar6 = 8;
			iVar7 = 1;
			break;
		
		case 75:
			StringCopy(&Var2, "TORSO_P1_8_2", 16);
			iVar6 = 8;
			iVar7 = 2;
			break;
		
		case 76:
			StringCopy(&Var2, "TORSO_P1_8_3", 16);
			iVar6 = 8;
			iVar7 = 3;
			break;
		
		case 77:
			StringCopy(&Var2, "TORSO_P1_8_4", 16);
			iVar6 = 8;
			iVar7 = 4;
			iVar1 = 30;
			break;
		
		case 78:
			StringCopy(&Var2, "TORSO_P1_8_5", 16);
			iVar6 = 8;
			iVar7 = 5;
			iVar1 = 38;
			break;
		
		case 79:
			StringCopy(&Var2, "TORSO_P1_8_6", 16);
			iVar6 = 8;
			iVar7 = 6;
			iVar1 = 32;
			break;
		
		case 80:
			StringCopy(&Var2, "TORSO_P1_8_7", 16);
			iVar6 = 8;
			iVar7 = 7;
			iVar1 = 30;
			break;
		
		case 81:
			StringCopy(&Var2, "TORSO_P1_8_8", 16);
			iVar6 = 8;
			iVar7 = 8;
			iVar1 = 33;
			break;
		
		case 82:
			StringCopy(&Var2, "TORSO_P1_8_9", 16);
			iVar6 = 8;
			iVar7 = 9;
			iVar1 = 35;
			break;
		
		case 83:
			StringCopy(&Var2, "TORSO_P1_8_10", 16);
			iVar6 = 8;
			iVar7 = 10;
			iVar1 = 35;
			break;
		
		case 84:
			StringCopy(&Var2, "TORSO_P1_8_11", 16);
			iVar6 = 8;
			iVar7 = 11;
			iVar1 = 38;
			break;
		
		case 85:
			StringCopy(&Var2, "TORSO_P1_8_12", 16);
			iVar6 = 8;
			iVar7 = 12;
			iVar1 = 33;
			break;
		
		case 86:
			StringCopy(&Var2, "TORSO_P1_8_13", 16);
			iVar6 = 8;
			iVar7 = 13;
			iVar1 = 35;
			break;
		
		case 87:
			StringCopy(&Var2, "TORSO_P1_8_14", 16);
			iVar6 = 8;
			iVar7 = 14;
			iVar1 = 38;
			break;
		
		case 88:
			StringCopy(&Var2, "TORSO_P1_8_15", 16);
			iVar6 = 8;
			iVar7 = 15;
			iVar1 = 32;
			break;
		
		case 89:
			StringCopy(&Var2, "NO_LABEL", 16);
			iVar6 = 9;
			iVar7 = 0;
			iVar0 = true;
			break;
		
		case 90:
			StringCopy(&Var2, "NO_LABEL", 16);
			iVar6 = 10;
			iVar7 = 0;
			iVar0 = true;
			break;
		
		case 91:
			StringCopy(&Var2, "TORSO_P1_11_0", 16);
			iVar6 = 11;
			iVar7 = 0;
			break;
		
		case 92:
			StringCopy(&Var2, "TORSO_P1_11_1", 16);
			iVar6 = 11;
			iVar7 = 1;
			iVar1 = 59;
			break;
		
		case 93:
			StringCopy(&Var2, "TORSO_P1_11_2", 16);
			iVar6 = 11;
			iVar7 = 2;
			break;
		
		case 94:
			StringCopy(&Var2, "TORSO_P1_11_3", 16);
			iVar6 = 11;
			iVar7 = 3;
			iVar1 = 25;
			break;
		
		case 95:
			StringCopy(&Var2, "TORSO_P1_11_4", 16);
			iVar6 = 11;
			iVar7 = 4;
			iVar1 = 29;
			break;
		
		case 96:
			StringCopy(&Var2, "TORSO_P1_11_5", 16);
			iVar6 = 11;
			iVar7 = 5;
			iVar1 = 27;
			break;
		
		case 97:
			StringCopy(&Var2, "TORSO_P1_11_6", 16);
			iVar6 = 11;
			iVar7 = 6;
			iVar1 = 25;
			break;
		
		case 98:
			StringCopy(&Var2, "TORSO_P1_11_7", 16);
			iVar6 = 11;
			iVar7 = 7;
			iVar1 = 27;
			break;
		
		case 99:
			StringCopy(&Var2, "TORSO_P1_11_8", 16);
			iVar6 = 11;
			iVar7 = 8;
			iVar1 = 28;
			break;
		
		case 100:
			StringCopy(&Var2, "TORSO_P1_11_9", 16);
			iVar6 = 11;
			iVar7 = 9;
			iVar1 = 30;
			break;
		
		case 101:
			StringCopy(&Var2, "TORSO_P1_11_10", 16);
			iVar6 = 11;
			iVar7 = 10;
			iVar1 = 29;
			break;
		
		case 102:
			StringCopy(&Var2, "TORSO_P1_11_11", 16);
			iVar6 = 11;
			iVar7 = 11;
			iVar1 = 27;
			break;
		
		case 103:
			StringCopy(&Var2, "TORSO_P1_11_12", 16);
			iVar6 = 11;
			iVar7 = 12;
			iVar1 = 29;
			break;
		
		case 104:
			StringCopy(&Var2, "TORSO_P1_11_13", 16);
			iVar6 = 11;
			iVar7 = 13;
			iVar1 = 32;
			break;
		
		case 105:
			StringCopy(&Var2, "TORSO_P1_11_14", 16);
			iVar6 = 11;
			iVar7 = 14;
			iVar1 = 30;
			break;
		
		case 106:
			StringCopy(&Var2, "TORSO_P1_11_15", 16);
			iVar6 = 11;
			iVar7 = 15;
			iVar1 = 28;
			break;
		
		default:
			return;
			break;
	}
	func_195(&(Global_69518[0 /*14*/]), iVar10, iParam0, &Var2, iVar6, iVar7, iVar1, iVar0, iVar8, iVar9, 0);
}

void func_319(int iParam0)//Position - 0x54169
{
	int iVar0;
	int iVar1;
	struct<2> Var2;
	int iVar6;
	int iVar7;
	int iVar8;
	int iVar9;
	int iVar10;
	
	iVar0 = false;
	iVar1 = 10;
	iVar6 = 0;
	iVar7 = 0;
	iVar8 = -1;
	iVar9 = 2;
	iVar10 = 2;
	Global_69518[0 /*14*/].f_5 = 1;
	switch (iParam0)
	{
		case 0:
			StringCopy(&Var2, "HAIR_P1_0_0", 16);
			iVar6 = 0;
			iVar7 = 0;
			break;
		
		case 1:
			StringCopy(&Var2, "HAIR_P1_0_1", 16);
			iVar6 = 0;
			iVar7 = 1;
			break;
		
		case 2:
			StringCopy(&Var2, "HAIR_P1_0_2", 16);
			iVar6 = 0;
			iVar7 = 2;
			break;
		
		case 3:
			StringCopy(&Var2, "HAIR_P1_0_3", 16);
			iVar6 = 0;
			iVar7 = 3;
			iVar9 = 3;
			break;
		
		case 4:
			StringCopy(&Var2, "HAIR_P1_0_4", 16);
			iVar6 = 0;
			iVar7 = 4;
			iVar9 = 3;
			break;
		
		case 5:
			StringCopy(&Var2, "HAIR_P1_0_5", 16);
			iVar6 = 0;
			iVar7 = 5;
			iVar9 = 3;
			break;
		
		case 6:
			StringCopy(&Var2, "HAIR_P1_0_6", 16);
			iVar6 = 0;
			iVar7 = 6;
			iVar9 = 3;
			break;
		
		case 7:
			StringCopy(&Var2, "HAIR_P1_0_7", 16);
			iVar6 = 0;
			iVar7 = 7;
			iVar9 = 3;
			break;
		
		case 8:
			StringCopy(&Var2, "HAIR_P1_0_8", 16);
			iVar6 = 0;
			iVar7 = 8;
			iVar9 = 3;
			break;
		
		case 9:
			StringCopy(&Var2, "HAIR_P1_0_9", 16);
			iVar6 = 0;
			iVar7 = 9;
			iVar9 = 3;
			break;
		
		case 10:
			StringCopy(&Var2, "HAIR_P1_0_10", 16);
			iVar6 = 0;
			iVar7 = 10;
			iVar9 = 3;
			break;
		
		case 11:
			StringCopy(&Var2, "HAIR_P1_0_11", 16);
			iVar6 = 0;
			iVar7 = 11;
			iVar9 = 3;
			break;
		
		case 12:
			StringCopy(&Var2, "HAIR_P1_0_12", 16);
			iVar6 = 0;
			iVar7 = 12;
			iVar9 = 3;
			break;
		
		case 13:
			StringCopy(&Var2, "HAIR_P1_0_13", 16);
			iVar6 = 0;
			iVar7 = 13;
			break;
		
		case 14:
			StringCopy(&Var2, "HAIR_P1_0_14", 16);
			iVar6 = 0;
			iVar7 = 14;
			iVar9 = 3;
			break;
		
		case 15:
			StringCopy(&Var2, "HAIR_P1_0_15", 16);
			iVar6 = 0;
			iVar7 = 15;
			iVar9 = 3;
			break;
		
		case 16:
			StringCopy(&Var2, "HAIR_P1_1_0", 16);
			iVar6 = 1;
			iVar7 = 0;
			iVar9 = 3;
			break;
		
		case 17:
			StringCopy(&Var2, "HAIR_P1_2_0", 16);
			iVar6 = 2;
			iVar7 = 0;
			iVar9 = 3;
			break;
		
		case 18:
			StringCopy(&Var2, "HAIR_P1_3_0", 16);
			iVar6 = 3;
			iVar7 = 0;
			iVar9 = 3;
			break;
		
		case 19:
			StringCopy(&Var2, "HAIR_P1_4_0", 16);
			iVar6 = 4;
			iVar7 = 0;
			break;
		
		case 20:
			StringCopy(&Var2, "NO_LABEL", 16);
			iVar6 = 5;
			iVar7 = 0;
			iVar0 = true;
			break;
		
		default:
			func_203(iVar10, iParam0, 21);
			return;
			break;
	}
	func_195(&(Global_69518[0 /*14*/]), iVar10, iParam0, &Var2, iVar6, iVar7, iVar1, iVar0, iVar8, iVar9, 0);
}

void func_320(int iParam0)//Position - 0x543F5
{
	int iVar0;
	int iVar1;
	struct<2> Var2;
	int iVar6;
	int iVar7;
	int iVar8;
	int iVar9;
	int iVar10;
	
	iVar0 = false;
	iVar1 = 10;
	iVar6 = 0;
	iVar7 = 0;
	iVar8 = -1;
	iVar9 = 2;
	iVar10 = 0;
	Global_69518[0 /*14*/].f_5 = 1;
	switch (iParam0)
	{
		case 0:
			StringCopy(&Var2, "NO_LABEL", 16);
			iVar6 = 0;
			iVar7 = 0;
			break;
		
		case 1:
			StringCopy(&Var2, "NO_LABEL", 16);
			iVar6 = 0;
			iVar7 = 1;
			break;
		
		case 2:
			StringCopy(&Var2, "NO_LABEL", 16);
			iVar6 = 0;
			iVar7 = 2;
			break;
		
		case 3:
			StringCopy(&Var2, "NO_LABEL", 16);
			iVar6 = 0;
			iVar7 = 3;
			break;
		
		case 4:
			StringCopy(&Var2, "NO_LABEL", 16);
			iVar6 = 0;
			iVar7 = 4;
			break;
		
		case 5:
			StringCopy(&Var2, "NO_LABEL", 16);
			iVar6 = 0;
			iVar7 = 5;
			break;
		
		case 6:
			StringCopy(&Var2, "NO_LABEL", 16);
			iVar6 = 0;
			iVar7 = 6;
			break;
		
		case 7:
			StringCopy(&Var2, "NO_LABEL", 16);
			iVar6 = 0;
			iVar7 = 7;
			break;
		
		case 8:
			StringCopy(&Var2, "NO_LABEL", 16);
			iVar6 = 0;
			iVar7 = 8;
			break;
		
		case 9:
			StringCopy(&Var2, "NO_LABEL", 16);
			iVar6 = 0;
			iVar7 = 9;
			break;
		
		default:
			func_203(iVar10, iParam0, 10);
			return;
			break;
	}
	func_195(&(Global_69518[0 /*14*/]), iVar10, iParam0, &Var2, iVar6, iVar7, iVar1, iVar0, iVar8, iVar9, 0);
}

void func_321(int iParam0, int iParam1)//Position - 0x5453A
{
	switch (iParam0)
	{
		case 0:
			func_338(iParam1);
			break;
		
		case 2:
			func_337(iParam1);
			break;
		
		case 3:
			func_334(iParam1);
			break;
		
		case 4:
			func_333(iParam1);
			break;
		
		case 6:
			func_332(iParam1);
			break;
		
		case 5:
			func_331(iParam1);
			break;
		
		case 8:
			func_330(iParam1);
			break;
		
		case 9:
			func_329(iParam1);
			break;
		
		case 10:
			func_328(iParam1);
			break;
		
		case 1:
			func_327(iParam1);
			break;
		
		case 7:
			func_326(iParam1);
			break;
		
		case 11:
			func_325(iParam1);
			break;
		
		case 12:
			func_324(iParam1);
			break;
		
		case 13:
			func_323(iParam1);
			break;
		
		case 14:
			func_322(iParam1);
			break;
	}
}

void func_322(int iParam0)//Position - 0x5462A
{
	int iVar0;
	int iVar1;
	struct<2> Var2;
	int iVar6;
	int iVar7;
	int iVar8;
	int iVar9;
	int iVar10;
	
	iVar0 = false;
	iVar1 = 10;
	iVar6 = 0;
	iVar7 = 0;
	iVar8 = -1;
	iVar9 = 2;
	iVar10 = 14;
	Global_69518[0 /*14*/].f_5 = 0;
	switch (iParam0)
	{
		case 0:
			StringCopy(&Var2, "NO_LABEL", 16);
			iVar6 = -1;
			iVar7 = 0;
			iVar1 = 0;
			iVar8 = 0;
			break;
		
		case 1:
			StringCopy(&Var2, "NO_LABEL", 16);
			iVar6 = -1;
			iVar7 = 0;
			iVar1 = 0;
			iVar8 = 1;
			break;
		
		case 2:
			StringCopy(&Var2, "NO_LABEL", 16);
			iVar6 = -1;
			iVar7 = 0;
			iVar1 = 0;
			iVar8 = 2;
			break;
		
		case 3:
			StringCopy(&Var2, "NO_LABEL", 16);
			iVar6 = -1;
			iVar7 = 0;
			iVar1 = 0;
			iVar8 = 3;
			break;
		
		case 4:
			StringCopy(&Var2, "NO_LABEL", 16);
			iVar6 = -1;
			iVar7 = 0;
			iVar1 = 0;
			iVar8 = 4;
			break;
		
		case 5:
			StringCopy(&Var2, "NO_LABEL", 16);
			iVar6 = -1;
			iVar7 = 0;
			iVar1 = 0;
			iVar8 = 5;
			break;
		
		case 6:
			StringCopy(&Var2, "NO_LABEL", 16);
			iVar6 = -1;
			iVar7 = 0;
			iVar1 = 0;
			iVar8 = 6;
			break;
		
		case 7:
			StringCopy(&Var2, "NO_LABEL", 16);
			iVar6 = -1;
			iVar7 = 0;
			iVar1 = 0;
			iVar8 = 7;
			break;
		
		case 8:
			StringCopy(&Var2, "NO_LABEL", 16);
			iVar6 = -1;
			iVar7 = 0;
			iVar1 = 0;
			iVar8 = 8;
			break;
		
		case 10:
			StringCopy(&Var2, "NO_LABEL", 16);
			iVar6 = 0;
			iVar7 = 0;
			iVar0 = true;
			iVar8 = 0;
			break;
		
		case 11:
			StringCopy(&Var2, "PROPS_P0_H1", 16);
			iVar6 = 1;
			iVar7 = 0;
			iVar8 = 0;
			break;
		
		case 12:
			StringCopy(&Var2, "PROPS_P0_H2", 16);
			iVar6 = 2;
			iVar7 = 0;
			iVar1 = 320;
			iVar8 = 11;
			break;
		
		case 13:
			StringCopy(&Var2, "NO_LABEL", 16);
			iVar6 = 3;
			iVar7 = 0;
			iVar0 = true;
			iVar8 = 0;
			break;
		
		case 14:
			StringCopy(&Var2, "NO_LABEL", 16);
			iVar6 = 4;
			iVar7 = 0;
			iVar0 = true;
			iVar8 = 0;
			break;
		
		case 15:
			StringCopy(&Var2, "NO_LABEL", 16);
			iVar6 = 5;
			iVar7 = 0;
			iVar0 = true;
			iVar8 = 0;
			break;
		
		case 16:
			StringCopy(&Var2, "NO_LABEL", 16);
			iVar6 = 6;
			iVar7 = 0;
			iVar0 = true;
			iVar8 = 0;
			break;
		
		case 17:
			StringCopy(&Var2, "NO_LABEL", 16);
			iVar6 = 7;
			iVar7 = 0;
			iVar0 = true;
			iVar8 = 0;
			break;
		
		case 18:
			StringCopy(&Var2, "NO_LABEL", 16);
			iVar6 = 8;
			iVar7 = 0;
			iVar0 = true;
			iVar8 = 0;
			break;
		
		case 19:
			StringCopy(&Var2, "NO_LABEL", 16);
			iVar6 = 9;
			iVar7 = 0;
			iVar0 = true;
			iVar8 = 0;
			break;
		
		case 20:
			StringCopy(&Var2, "NO_LABEL", 16);
			iVar6 = 10;
			iVar7 = 0;
			iVar0 = true;
			iVar8 = 0;
			break;
		
		case 21:
			StringCopy(&Var2, "NO_LABEL", 16);
			iVar6 = 11;
			iVar7 = 0;
			iVar8 = 0;
			break;
		
		case 22:
			StringCopy(&Var2, "NO_LABEL", 16);
			iVar6 = 11;
			iVar7 = 1;
			iVar8 = 0;
			break;
		
		case 23:
			StringCopy(&Var2, "NO_LABEL", 16);
			iVar6 = 11;
			iVar7 = 2;
			iVar8 = 0;
			break;
		
		case 24:
			StringCopy(&Var2, "NO_LABEL", 16);
			iVar6 = 11;
			iVar7 = 3;
			iVar8 = 0;
			break;
		
		case 25:
			StringCopy(&Var2, "NO_LABEL", 16);
			iVar6 = 11;
			iVar7 = 4;
			iVar8 = 0;
			break;
		
		case 26:
			StringCopy(&Var2, "NO_LABEL", 16);
			iVar6 = 11;
			iVar7 = 5;
			iVar8 = 0;
			break;
		
		case 27:
			StringCopy(&Var2, "NO_LABEL", 16);
			iVar6 = 11;
			iVar7 = 6;
			iVar8 = 0;
			break;
		
		case 28:
			StringCopy(&Var2, "NO_LABEL", 16);
			iVar6 = 11;
			iVar7 = 7;
			iVar8 = 0;
			break;
		
		case 29:
			StringCopy(&Var2, "PROPS_P0_H12", 16);
			iVar6 = 12;
			iVar7 = 0;
			iVar8 = 0;
			break;
		
		case 30:
			StringCopy(&Var2, "NO_LABEL", 16);
			iVar6 = 13;
			iVar7 = 0;
			iVar8 = 0;
			break;
		
		case 31:
			StringCopy(&Var2, "PROPS_P1_H8_0", 16);
			iVar6 = 14;
			iVar7 = 0;
			iVar1 = 270;
			iVar8 = 0;
			break;
		
		case 32:
			StringCopy(&Var2, "PROPS_P1_H8_1", 16);
			iVar6 = 14;
			iVar7 = 1;
			iVar1 = 270;
			iVar8 = 0;
			break;
		
		case 33:
			StringCopy(&Var2, "PROPS_P1_H9_0", 16);
			iVar6 = 15;
			iVar7 = 0;
			iVar1 = 200;
			iVar8 = 0;
			break;
		
		case 34:
			StringCopy(&Var2, "PROPS_P1_H9_1", 16);
			iVar6 = 15;
			iVar7 = 1;
			iVar1 = 200;
			iVar8 = 0;
			break;
		
		case 35:
			StringCopy(&Var2, "PROPS_P1_H10_0", 16);
			iVar6 = 16;
			iVar7 = 0;
			iVar1 = 350;
			iVar8 = 0;
			break;
		
		case 36:
			StringCopy(&Var2, "PROPS_P1_H10_1", 16);
			iVar6 = 16;
			iVar7 = 1;
			iVar1 = 350;
			iVar8 = 0;
			break;
		
		case 37:
			StringCopy(&Var2, "PROPS_P1_H11_0", 16);
			iVar6 = 17;
			iVar7 = 0;
			iVar1 = 450;
			iVar8 = 0;
			break;
		
		case 38:
			StringCopy(&Var2, "PROPS_P1_H12_0", 16);
			iVar6 = 18;
			iVar7 = 0;
			iVar1 = 500;
			iVar8 = 0;
			break;
		
		case 39:
			StringCopy(&Var2, "PROPS_P1_H12_1", 16);
			iVar6 = 18;
			iVar7 = 1;
			iVar1 = 500;
			iVar8 = 0;
			break;
		
		case 40:
			StringCopy(&Var2, "PROPS_P1_H13_0", 16);
			iVar6 = 19;
			iVar7 = 0;
			iVar1 = 50;
			iVar8 = 0;
			break;
		
		case 41:
			StringCopy(&Var2, "PROPS_P1_H13_1", 16);
			iVar6 = 19;
			iVar7 = 1;
			iVar1 = 50;
			iVar8 = 0;
			break;
		
		case 42:
			StringCopy(&Var2, "PROPS_P1_H14_0", 16);
			iVar6 = 20;
			iVar7 = 0;
			iVar1 = 99;
			iVar8 = 0;
			break;
		
		case 43:
			StringCopy(&Var2, "PROPS_P1_H14_1", 16);
			iVar6 = 20;
			iVar7 = 1;
			iVar1 = 99;
			iVar8 = 0;
			break;
		
		case 44:
			StringCopy(&Var2, "PROPS_P1_H14_2", 16);
			iVar6 = 20;
			iVar7 = 2;
			iVar1 = 99;
			iVar8 = 0;
			break;
		
		case 45:
			StringCopy(&Var2, "NO_LABEL", 16);
			iVar6 = 21;
			iVar7 = 0;
			iVar8 = 0;
			break;
		
		case 46:
			StringCopy(&Var2, "NO_LABEL", 16);
			iVar6 = 22;
			iVar7 = 0;
			iVar8 = 0;
			break;
		
		case 47:
			StringCopy(&Var2, "NO_LABEL", 16);
			iVar6 = 23;
			iVar7 = 0;
			iVar8 = 0;
			break;
		
		case 48:
			StringCopy(&Var2, "NO_LABEL", 16);
			iVar6 = 23;
			iVar7 = 1;
			iVar8 = 0;
			break;
		
		case 49:
			StringCopy(&Var2, "NO_LABEL", 16);
			iVar6 = 23;
			iVar7 = 2;
			iVar8 = 0;
			break;
		
		case 50:
			StringCopy(&Var2, "NO_LABEL", 16);
			iVar6 = 23;
			iVar7 = 3;
			iVar8 = 0;
			break;
		
		case 51:
			StringCopy(&Var2, "NO_LABEL", 16);
			iVar6 = 23;
			iVar7 = 4;
			iVar8 = 0;
			break;
		
		case 52:
			StringCopy(&Var2, "NO_LABEL", 16);
			iVar6 = 23;
			iVar7 = 5;
			iVar8 = 0;
			break;
		
		case 53:
			StringCopy(&Var2, "NO_LABEL", 16);
			iVar6 = 24;
			iVar7 = 0;
			iVar8 = 0;
			break;
		
		case 54:
			StringCopy(&Var2, "NO_LABEL", 16);
			iVar6 = 25;
			iVar7 = 0;
			iVar8 = 0;
			break;
		
		case 55:
			StringCopy(&Var2, "NO_LABEL", 16);
			iVar6 = 26;
			iVar7 = 0;
			iVar8 = 0;
			break;
		
		case 56:
			StringCopy(&Var2, "NO_LABEL", 16);
			iVar6 = 27;
			iVar7 = 0;
			iVar8 = 0;
			break;
		
		case 57:
			StringCopy(&Var2, "NO_LABEL", 16);
			iVar6 = 28;
			iVar7 = 0;
			iVar8 = 0;
			break;
		
		case 58:
			StringCopy(&Var2, "PROPS_P0_E0", 16);
			iVar6 = 0;
			iVar7 = 0;
			iVar1 = 45;
			iVar8 = 10;
			break;
		
		case 59:
			StringCopy(&Var2, "NO_LABEL", 16);
			iVar6 = 1;
			iVar7 = 0;
			iVar0 = true;
			iVar8 = 10;
			break;
		
		case 60:
			StringCopy(&Var2, "NO_LABEL", 16);
			iVar6 = 2;
			iVar7 = 0;
			iVar0 = true;
			iVar8 = 10;
			break;
		
		case 61:
			StringCopy(&Var2, "PROPS_P0_E3", 16);
			iVar6 = 3;
			iVar7 = 0;
			iVar1 = 55;
			iVar8 = 10;
			break;
		
		case 62:
			StringCopy(&Var2, "PROPS_P0_E4", 16);
			iVar6 = 4;
			iVar7 = 0;
			iVar1 = 58;
			iVar8 = 10;
			break;
		
		case 63:
			StringCopy(&Var2, "PROPS_P0_E4_1", 16);
			iVar6 = 4;
			iVar7 = 1;
			iVar1 = 56;
			iVar8 = 10;
			break;
		
		case 64:
			StringCopy(&Var2, "PROPS_P0_E4_2", 16);
			iVar6 = 4;
			iVar7 = 2;
			iVar1 = 60;
			iVar8 = 10;
			break;
		
		case 65:
			StringCopy(&Var2, "PROPS_P0_E4_3", 16);
			iVar6 = 4;
			iVar7 = 3;
			iVar1 = 65;
			iVar8 = 10;
			break;
		
		case 66:
			StringCopy(&Var2, "PROPS_P0_E4_4", 16);
			iVar6 = 4;
			iVar7 = 4;
			iVar1 = 62;
			iVar8 = 10;
			break;
		
		case 67:
			StringCopy(&Var2, "PROPS_P0_E4_5", 16);
			iVar6 = 4;
			iVar7 = 5;
			iVar1 = 65;
			iVar8 = 10;
			break;
		
		case 68:
			StringCopy(&Var2, "PROPS_P0_E4_6", 16);
			iVar6 = 4;
			iVar7 = 6;
			iVar1 = 68;
			iVar8 = 10;
			break;
		
		case 69:
			StringCopy(&Var2, "PROPS_P0_E4_7", 16);
			iVar6 = 4;
			iVar7 = 7;
			iVar1 = 68;
			iVar8 = 10;
			break;
		
		case 70:
			StringCopy(&Var2, "PROPS_P0_E5", 16);
			iVar6 = 5;
			iVar7 = 0;
			iVar1 = 65;
			iVar8 = 10;
			break;
		
		case 71:
			StringCopy(&Var2, "PROPS_P0_E5_1", 16);
			iVar6 = 5;
			iVar7 = 1;
			iVar1 = 69;
			iVar8 = 10;
			break;
		
		case 72:
			StringCopy(&Var2, "PROPS_P0_E5_2", 16);
			iVar6 = 5;
			iVar7 = 2;
			iVar1 = 72;
			iVar8 = 10;
			break;
		
		case 73:
			StringCopy(&Var2, "PROPS_P0_E5_3", 16);
			iVar6 = 5;
			iVar7 = 3;
			iVar1 = 70;
			iVar8 = 10;
			break;
		
		case 74:
			StringCopy(&Var2, "PROPS_P0_E5_4", 16);
			iVar6 = 5;
			iVar7 = 4;
			iVar1 = 74;
			iVar8 = 10;
			break;
		
		case 75:
			StringCopy(&Var2, "PROPS_P0_E5_5", 16);
			iVar6 = 5;
			iVar7 = 5;
			iVar1 = 78;
			iVar8 = 10;
			break;
		
		case 76:
			StringCopy(&Var2, "PROPS_P0_E5_6", 16);
			iVar6 = 5;
			iVar7 = 6;
			iVar1 = 82;
			iVar8 = 10;
			break;
		
		case 77:
			StringCopy(&Var2, "PROPS_P0_E5_7", 16);
			iVar6 = 5;
			iVar7 = 7;
			iVar1 = 85;
			iVar8 = 10;
			break;
		
		case 78:
			StringCopy(&Var2, "PROPS_P0_E5_8", 16);
			iVar6 = 5;
			iVar7 = 8;
			iVar1 = 85;
			iVar8 = 10;
			break;
		
		case 79:
			StringCopy(&Var2, "PROPS_P0_E5_9", 16);
			iVar6 = 5;
			iVar7 = 9;
			iVar8 = 10;
			break;
		
		case 80:
			StringCopy(&Var2, "PROPS_P0_E6", 16);
			iVar6 = 6;
			iVar7 = 0;
			iVar1 = 69;
			iVar8 = 10;
			break;
		
		case 81:
			StringCopy(&Var2, "PROPS_P0_E6_1", 16);
			iVar6 = 6;
			iVar7 = 1;
			iVar1 = 69;
			iVar8 = 10;
			break;
		
		case 82:
			StringCopy(&Var2, "PROPS_P0_E6_2", 16);
			iVar6 = 6;
			iVar7 = 2;
			iVar1 = 69;
			iVar8 = 10;
			break;
		
		case 83:
			StringCopy(&Var2, "PROPS_P0_E6_3", 16);
			iVar6 = 6;
			iVar7 = 3;
			iVar1 = 69;
			iVar8 = 10;
			break;
		
		case 84:
			StringCopy(&Var2, "PROPS_P0_E6_4", 16);
			iVar6 = 6;
			iVar7 = 4;
			iVar1 = 69;
			iVar8 = 10;
			break;
		
		case 85:
			StringCopy(&Var2, "PROPS_P0_E6_5", 16);
			iVar6 = 6;
			iVar7 = 5;
			iVar1 = 69;
			iVar8 = 10;
			break;
		
		case 86:
			StringCopy(&Var2, "PROPS_P0_E6_6", 16);
			iVar6 = 6;
			iVar7 = 6;
			iVar1 = 69;
			iVar8 = 10;
			break;
		
		case 87:
			StringCopy(&Var2, "PROPS_P0_E6_7", 16);
			iVar6 = 6;
			iVar7 = 7;
			iVar1 = 69;
			iVar8 = 10;
			break;
		
		case 88:
			StringCopy(&Var2, "PROPS_P0_E6_8", 16);
			iVar6 = 6;
			iVar7 = 8;
			iVar1 = 69;
			iVar8 = 10;
			break;
		
		case 89:
			StringCopy(&Var2, "PROPS_P0_E6_9", 16);
			iVar6 = 6;
			iVar7 = 9;
			iVar1 = 69;
			iVar8 = 10;
			break;
		
		case 90:
			StringCopy(&Var2, "PROPS_P0_E7", 16);
			iVar6 = 7;
			iVar7 = 0;
			iVar8 = 10;
			break;
		
		case 91:
			StringCopy(&Var2, "PROPS_P0_E8", 16);
			iVar6 = 8;
			iVar7 = 0;
			iVar1 = 170;
			iVar8 = 10;
			break;
		
		case 92:
			StringCopy(&Var2, "PROPS_P0_E8_1", 16);
			iVar6 = 8;
			iVar7 = 1;
			iVar1 = 175;
			iVar8 = 10;
			break;
		
		case 93:
			StringCopy(&Var2, "PROPS_P0_E8_2", 16);
			iVar6 = 8;
			iVar7 = 2;
			iVar1 = 180;
			iVar8 = 10;
			break;
		
		case 94:
			StringCopy(&Var2, "PROPS_P0_E8_3", 16);
			iVar6 = 8;
			iVar7 = 3;
			iVar1 = 185;
			iVar8 = 10;
			break;
		
		case 95:
			StringCopy(&Var2, "PROPS_P0_E8_4", 16);
			iVar6 = 8;
			iVar7 = 4;
			iVar1 = 189;
			iVar8 = 10;
			break;
		
		case 96:
			StringCopy(&Var2, "PROPS_P0_E8_5", 16);
			iVar6 = 8;
			iVar7 = 5;
			iVar1 = 195;
			iVar8 = 10;
			break;
		
		case 97:
			StringCopy(&Var2, "PROPS_P0_E8_6", 16);
			iVar6 = 8;
			iVar7 = 6;
			iVar1 = 235;
			iVar8 = 10;
			break;
		
		case 98:
			StringCopy(&Var2, "PROPS_P0_E8_7", 16);
			iVar6 = 8;
			iVar7 = 7;
			iVar1 = 245;
			iVar8 = 10;
			break;
		
		case 99:
			StringCopy(&Var2, "PROPS_P0_E8_8", 16);
			iVar6 = 8;
			iVar7 = 8;
			iVar1 = 250;
			iVar8 = 10;
			break;
		
		case 100:
			StringCopy(&Var2, "PROPS_P0_E8_9", 16);
			iVar6 = 8;
			iVar7 = 9;
			iVar1 = 275;
			iVar8 = 10;
			break;
		
		case 101:
			StringCopy(&Var2, "PROPS_P0_E8_10", 16);
			iVar6 = 8;
			iVar7 = 10;
			iVar1 = 280;
			iVar8 = 10;
			break;
		
		case 102:
			StringCopy(&Var2, "PROPS_P0_E8_11", 16);
			iVar6 = 8;
			iVar7 = 11;
			iVar1 = 295;
			iVar8 = 10;
			break;
		
		case 103:
			StringCopy(&Var2, "PROPS_P0_E9", 16);
			iVar6 = 9;
			iVar7 = 0;
			iVar1 = 179;
			iVar8 = 10;
			break;
		
		case 104:
			StringCopy(&Var2, "PROPS_P0_E9_1", 16);
			iVar6 = 9;
			iVar7 = 1;
			iVar1 = 159;
			iVar8 = 10;
			break;
		
		case 105:
			StringCopy(&Var2, "PROPS_P0_E9_2", 16);
			iVar6 = 9;
			iVar7 = 2;
			iVar1 = 165;
			iVar8 = 10;
			break;
		
		case 106:
			StringCopy(&Var2, "PROPS_P0_E9_3", 16);
			iVar6 = 9;
			iVar7 = 3;
			iVar1 = 155;
			iVar8 = 10;
			break;
		
		case 107:
			StringCopy(&Var2, "PROPS_P0_E9_4", 16);
			iVar6 = 9;
			iVar7 = 4;
			iVar1 = 175;
			iVar8 = 10;
			break;
		
		case 108:
			StringCopy(&Var2, "PROPS_P0_E9_5", 16);
			iVar6 = 9;
			iVar7 = 5;
			iVar1 = 185;
			iVar8 = 10;
			break;
		
		case 109:
			StringCopy(&Var2, "PROPS_P0_E9_6", 16);
			iVar6 = 9;
			iVar7 = 6;
			iVar1 = 189;
			iVar8 = 10;
			break;
		
		case 110:
			StringCopy(&Var2, "PROPS_P0_E9_7", 16);
			iVar6 = 9;
			iVar7 = 7;
			iVar1 = 225;
			iVar8 = 10;
			break;
		
		case 111:
			StringCopy(&Var2, "NO_LABEL", 16);
			iVar6 = 10;
			iVar7 = 0;
			iVar1 = 100;
			iVar8 = 10;
			break;
		
		case 112:
			StringCopy(&Var2, "NO_LABEL", 16);
			iVar6 = 0;
			iVar7 = 0;
			iVar0 = true;
			iVar8 = 2;
			break;
		
		default:
			func_203(iVar10, iParam0, 113);
			return;
			break;
	}
	func_195(&(Global_69518[0 /*14*/]), iVar10, iParam0, &Var2, iVar6, iVar7, iVar1, iVar0, iVar8, iVar9, 0);
}

void func_323(int iParam0)//Position - 0x553E9
{
	int iVar0;
	int iVar1;
	struct<2> Var2;
	int iVar6;
	int iVar7;
	int iVar8;
	int iVar9;
	int iVar10;
	
	iVar0 = false;
	iVar1 = 10;
	iVar6 = 0;
	iVar7 = 0;
	iVar8 = -1;
	iVar9 = 2;
	iVar10 = 13;
	Global_69518[0 /*14*/].f_5 = 0;
	switch (iParam0)
	{
		case 31:
			StringCopy(&Var2, "NO_LABEL", 16);
			iVar6 = 0;
			iVar7 = 0;
			break;
		
		case 0:
			StringCopy(&Var2, "NO_LABEL", 16);
			iVar6 = 0;
			iVar7 = 0;
			iVar0 = true;
			break;
		
		case 1:
			StringCopy(&Var2, "NO_LABEL", 16);
			iVar6 = 0;
			iVar7 = 0;
			iVar0 = true;
			break;
		
		case 2:
			StringCopy(&Var2, "NO_LABEL", 16);
			iVar6 = 0;
			iVar7 = 0;
			iVar0 = true;
			break;
		
		case 3:
			StringCopy(&Var2, "NO_LABEL", 16);
			iVar6 = 0;
			iVar7 = 0;
			iVar0 = true;
			break;
		
		case 4:
			StringCopy(&Var2, "NO_LABEL", 16);
			iVar6 = 0;
			iVar7 = 0;
			iVar0 = true;
			break;
		
		case 5:
			StringCopy(&Var2, "NO_LABEL", 16);
			iVar6 = 0;
			iVar7 = 0;
			iVar0 = true;
			break;
		
		case 6:
			StringCopy(&Var2, "NO_LABEL", 16);
			iVar6 = 0;
			iVar7 = 0;
			iVar0 = true;
			break;
		
		case 7:
			StringCopy(&Var2, "NO_LABEL", 16);
			iVar6 = 0;
			iVar7 = 0;
			iVar0 = true;
			break;
		
		case 8:
			StringCopy(&Var2, "NO_LABEL", 16);
			iVar6 = 0;
			iVar7 = 0;
			iVar0 = true;
			break;
		
		case 9:
			StringCopy(&Var2, "NO_LABEL", 16);
			iVar6 = 0;
			iVar7 = 0;
			iVar0 = true;
			break;
		
		default:
			func_203(iVar10, iParam0, 10);
			return;
			break;
	}
	func_195(&(Global_69518[0 /*14*/]), iVar10, iParam0, &Var2, iVar6, iVar7, iVar1, iVar0, iVar8, iVar9, 0);
}

void func_324(int iParam0)//Position - 0x55562
{
	int iVar0;
	int iVar1;
	struct<2> Var2;
	int iVar6;
	int iVar7;
	int iVar8;
	int iVar9;
	int iVar10;
	
	iVar0 = false;
	iVar1 = 10;
	iVar6 = 0;
	iVar7 = 0;
	iVar8 = -1;
	iVar9 = 2;
	iVar10 = 12;
	Global_69518[0 /*14*/].f_5 = 0;
	switch (iParam0)
	{
		case 0:
			StringCopy(&Var2, "OUTFIT_P0_0", 16);
			iVar6 = 0;
			iVar7 = 0;
			iVar0 = true;
			break;
		
		case 1:
			StringCopy(&Var2, "OUTFIT_P0_1", 16);
			iVar6 = 0;
			iVar7 = 0;
			break;
		
		case 2:
			StringCopy(&Var2, "NO_LABEL", 16);
			iVar6 = 0;
			iVar7 = 0;
			break;
		
		case 3:
			StringCopy(&Var2, "OUTFIT_P0_4", 16);
			iVar6 = 0;
			iVar7 = 0;
			break;
		
		case 4:
			StringCopy(&Var2, "OUTFIT_P0_7", 16);
			iVar6 = 0;
			iVar7 = 0;
			break;
		
		case 5:
			StringCopy(&Var2, "OUTFIT_P0_8", 16);
			iVar6 = 0;
			iVar7 = 0;
			break;
		
		case 6:
			StringCopy(&Var2, "OUTFIT_P0_9", 16);
			iVar6 = 0;
			iVar7 = 0;
			break;
		
		case 7:
			StringCopy(&Var2, "NO_LABEL", 16);
			iVar6 = 0;
			iVar7 = 0;
			break;
		
		case 8:
			StringCopy(&Var2, "OUTFIT_P0_11", 16);
			iVar6 = 0;
			iVar7 = 0;
			break;
		
		case 9:
			StringCopy(&Var2, "OUTFIT_P0_12", 16);
			iVar6 = 0;
			iVar7 = 0;
			break;
		
		case 10:
			StringCopy(&Var2, "NO_LABEL", 16);
			iVar6 = 0;
			iVar7 = 0;
			break;
		
		case 11:
			StringCopy(&Var2, "OUTFIT_P0_14", 16);
			iVar6 = 0;
			iVar7 = 0;
			break;
		
		case 12:
			StringCopy(&Var2, "OUTFIT_P0_17", 16);
			iVar6 = 0;
			iVar7 = 0;
			break;
		
		case 13:
			StringCopy(&Var2, "OUTFIT_P0_18", 16);
			iVar6 = 0;
			iVar7 = 0;
			break;
		
		case 14:
			StringCopy(&Var2, "OUTFIT_P0_19", 16);
			iVar6 = 0;
			iVar7 = 0;
			break;
		
		case 15:
			StringCopy(&Var2, "OUTFIT_P0_20", 16);
			iVar6 = 0;
			iVar7 = 0;
			break;
		
		case 16:
			StringCopy(&Var2, "OUTFIT_P0_22", 16);
			iVar6 = 0;
			iVar7 = 0;
			iVar1 = 10000;
			break;
		
		case 17:
			StringCopy(&Var2, "OUTFIT_P0_23", 16);
			iVar6 = 0;
			iVar7 = 0;
			break;
		
		case 18:
			StringCopy(&Var2, "OUTFIT_P0_24", 16);
			iVar6 = 0;
			iVar7 = 0;
			break;
		
		case 19:
			StringCopy(&Var2, "OUTFIT_P0_26", 16);
			iVar6 = 0;
			iVar7 = 0;
			break;
		
		case 20:
			StringCopy(&Var2, "OUTFIT_P0_28", 16);
			iVar6 = 0;
			iVar7 = 0;
			iVar1 = 105;
			break;
		
		case 21:
			StringCopy(&Var2, "OUTFIT_P0_29", 16);
			iVar6 = 0;
			iVar7 = 0;
			iVar1 = 105;
			break;
		
		case 22:
			StringCopy(&Var2, "OUTFIT_P0_30", 16);
			iVar6 = 0;
			iVar7 = 0;
			iVar1 = 105;
			break;
		
		case 23:
			StringCopy(&Var2, "OUTFIT_P0_31", 16);
			iVar6 = 0;
			iVar7 = 0;
			break;
		
		case 24:
			StringCopy(&Var2, "OUTFIT_P0_32", 16);
			iVar6 = 0;
			iVar7 = 0;
			break;
		
		case 25:
			StringCopy(&Var2, "OUTFIT_P0_33", 16);
			iVar6 = 0;
			iVar7 = 0;
			break;
		
		case 26:
			StringCopy(&Var2, "OUTFIT_P0_34", 16);
			iVar6 = 0;
			iVar7 = 0;
			break;
		
		case 27:
			StringCopy(&Var2, "OUTFIT_P0_35", 16);
			iVar6 = 0;
			iVar7 = 0;
			break;
		
		case 28:
			StringCopy(&Var2, "OUTFIT_P0_11", 16);
			iVar6 = 0;
			iVar7 = 0;
			break;
		
		case 29:
			StringCopy(&Var2, "OUTFIT_P0_36", 16);
			iVar6 = 0;
			iVar7 = 0;
			iVar1 = 4900;
			break;
		
		case 30:
			StringCopy(&Var2, "OUTFIT_P0_37", 16);
			iVar6 = 0;
			iVar7 = 0;
			iVar1 = 840;
			break;
		
		case 31:
			StringCopy(&Var2, "OUTFIT_P0_38", 16);
			iVar6 = 0;
			iVar7 = 0;
			break;
		
		case 32:
			StringCopy(&Var2, "OUTFIT_P0_39", 16);
			iVar6 = 0;
			iVar7 = 0;
			break;
		
		case 33:
			StringCopy(&Var2, "OUTFIT_P0_40", 16);
			iVar6 = 0;
			iVar7 = 0;
			break;
		
		case 34:
			StringCopy(&Var2, "OUTFIT_P0_41", 16);
			iVar6 = 0;
			iVar7 = 0;
			break;
		
		case 35:
			StringCopy(&Var2, "OUTFIT_P0_42", 16);
			iVar6 = 0;
			iVar7 = 0;
			break;
		
		case 36:
			StringCopy(&Var2, "OUTFIT_P0_43", 16);
			iVar6 = 0;
			iVar7 = 0;
			break;
		
		case 37:
			StringCopy(&Var2, "OUTFIT_P0_44", 16);
			iVar6 = 0;
			iVar7 = 0;
			iVar1 = 3900;
			break;
		
		case 38:
			StringCopy(&Var2, "OUTFIT_P0_45", 16);
			iVar6 = 0;
			iVar7 = 0;
			iVar1 = 4000;
			break;
		
		case 39:
			StringCopy(&Var2, "OUTFIT_P0_46", 16);
			iVar6 = 0;
			iVar7 = 0;
			iVar1 = 5900;
			break;
		
		case 40:
			StringCopy(&Var2, "OUTFIT_P0_47", 16);
			iVar6 = 0;
			iVar7 = 0;
			iVar1 = 4600;
			break;
		
		case 41:
			StringCopy(&Var2, "OUTFIT_P0_48", 16);
			iVar6 = 0;
			iVar7 = 0;
			iVar1 = 5500;
			break;
		
		case 42:
			StringCopy(&Var2, "OUTFIT_P0_49", 16);
			iVar6 = 0;
			iVar7 = 0;
			iVar1 = 4400;
			break;
		
		case 43:
			StringCopy(&Var2, "OUTFIT_P0_50", 16);
			iVar6 = 0;
			iVar7 = 0;
			iVar1 = 4400;
			break;
		
		case 44:
			StringCopy(&Var2, "OUTFIT_P0_51", 16);
			iVar6 = 0;
			iVar7 = 0;
			iVar1 = 4900;
			break;
		
		case 45:
			StringCopy(&Var2, "OUTFIT_P0_52", 16);
			iVar6 = 0;
			iVar7 = 0;
			iVar1 = 5500;
			break;
		
		case 46:
			StringCopy(&Var2, "OUTFIT_P0_53", 16);
			iVar6 = 0;
			iVar7 = 0;
			iVar1 = 4500;
			break;
		
		case 47:
			StringCopy(&Var2, "OUTFIT_P0_54", 16);
			iVar6 = 0;
			iVar7 = 0;
			iVar1 = 5900;
			break;
		
		case 48:
			StringCopy(&Var2, "OUTFIT_P0_55", 16);
			iVar6 = 0;
			iVar7 = 0;
			break;
		
		case 49:
			StringCopy(&Var2, "OUTFIT_P0_17", 16);
			iVar6 = 0;
			iVar7 = 0;
			break;
		
		case 50:
			StringCopy(&Var2, "NO_LABEL", 16);
			iVar6 = 0;
			iVar7 = 0;
			break;
		
		case 51:
			StringCopy(&Var2, "NO_LABEL", 16);
			iVar6 = 0;
			iVar7 = 0;
			break;
		
		case 52:
			StringCopy(&Var2, "NO_LABEL", 16);
			iVar6 = 0;
			iVar7 = 0;
			break;
		
		default:
			func_203(iVar10, iParam0, 53);
			return;
			break;
	}
	func_195(&(Global_69518[0 /*14*/]), iVar10, iParam0, &Var2, iVar6, iVar7, iVar1, iVar0, iVar8, iVar9, 0);
}

void func_325(int iParam0)//Position - 0x55B07
{
	int iVar0;
	int iVar1;
	struct<2> Var2;
	int iVar6;
	int iVar7;
	int iVar8;
	int iVar9;
	int iVar10;
	
	iVar0 = false;
	iVar1 = 10;
	iVar6 = 0;
	iVar7 = 0;
	iVar8 = -1;
	iVar9 = 2;
	iVar10 = 11;
	Global_69518[0 /*14*/].f_5 = 0;
	switch (iParam0)
	{
		case 0:
			StringCopy(&Var2, "NO_LABEL", 16);
			iVar6 = 0;
			iVar7 = 0;
			break;
		
		case 1:
			StringCopy(&Var2, "NO_LABEL", 16);
			iVar6 = 1;
			iVar7 = 0;
			break;
		
		case 2:
			StringCopy(&Var2, "JBIB_P0_02_0", 16);
			iVar6 = 2;
			iVar7 = 0;
			break;
		
		case 3:
			StringCopy(&Var2, "JBIB_P0_02_1", 16);
			iVar6 = 2;
			iVar7 = 1;
			break;
		
		case 4:
			StringCopy(&Var2, "JBIB_P0_02_2", 16);
			iVar6 = 2;
			iVar7 = 2;
			break;
		
		case 5:
			StringCopy(&Var2, "JBIB_P0_02_3", 16);
			iVar6 = 2;
			iVar7 = 3;
			break;
		
		case 6:
			StringCopy(&Var2, "JBIB_P0_02_4", 16);
			iVar6 = 2;
			iVar7 = 4;
			break;
		
		case 7:
			StringCopy(&Var2, "JBIB_P0_02_5", 16);
			iVar6 = 2;
			iVar7 = 5;
			break;
		
		case 8:
			StringCopy(&Var2, "JBIB_P0_03_0", 16);
			iVar6 = 3;
			iVar7 = 0;
			iVar1 = 390;
			break;
		
		case 9:
			StringCopy(&Var2, "JBIB_P0_03_1", 16);
			iVar6 = 3;
			iVar7 = 1;
			iVar1 = 390;
			break;
		
		case 10:
			StringCopy(&Var2, "JBIB_P0_03_2", 16);
			iVar6 = 3;
			iVar7 = 2;
			iVar1 = 420;
			break;
		
		case 11:
			StringCopy(&Var2, "JBIB_P0_03_3", 16);
			iVar6 = 3;
			iVar7 = 3;
			iVar1 = 420;
			break;
		
		case 12:
			StringCopy(&Var2, "JBIB_P0_03_4", 16);
			iVar6 = 3;
			iVar7 = 4;
			iVar1 = 490;
			break;
		
		case 13:
			StringCopy(&Var2, "JBIB_P0_03_5", 16);
			iVar6 = 3;
			iVar7 = 5;
			iVar1 = 490;
			break;
		
		case 14:
			StringCopy(&Var2, "JBIB_P0_03_6", 16);
			iVar6 = 3;
			iVar7 = 6;
			iVar1 = 540;
			break;
		
		case 15:
			StringCopy(&Var2, "JBIB_P0_03_7", 16);
			iVar6 = 3;
			iVar7 = 7;
			iVar1 = 540;
			break;
		
		case 16:
			StringCopy(&Var2, "JBIB_P0_03_8", 16);
			iVar6 = 3;
			iVar7 = 8;
			iVar1 = 550;
			break;
		
		case 17:
			StringCopy(&Var2, "JBIB_P0_03_9", 16);
			iVar6 = 3;
			iVar7 = 9;
			iVar1 = 540;
			break;
		
		case 18:
			StringCopy(&Var2, "JBIB_P0_04_0", 16);
			iVar6 = 4;
			iVar7 = 0;
			iVar1 = 850;
			break;
		
		case 19:
			StringCopy(&Var2, "JBIB_P0_04_1", 16);
			iVar6 = 4;
			iVar7 = 1;
			iVar1 = 850;
			break;
		
		case 20:
			StringCopy(&Var2, "JBIB_P0_04_2", 16);
			iVar6 = 4;
			iVar7 = 2;
			iVar1 = 890;
			break;
		
		case 21:
			StringCopy(&Var2, "JBIB_P0_04_3", 16);
			iVar6 = 4;
			iVar7 = 3;
			iVar1 = 890;
			break;
		
		case 22:
			StringCopy(&Var2, "JBIB_P0_04_4", 16);
			iVar6 = 4;
			iVar7 = 4;
			iVar1 = 920;
			break;
		
		case 23:
			StringCopy(&Var2, "JBIB_P0_04_5", 16);
			iVar6 = 4;
			iVar7 = 5;
			iVar1 = 920;
			break;
		
		case 24:
			StringCopy(&Var2, "JBIB_P0_04_6", 16);
			iVar6 = 4;
			iVar7 = 6;
			iVar1 = 950;
			break;
		
		case 25:
			StringCopy(&Var2, "JBIB_P0_04_7", 16);
			iVar6 = 4;
			iVar7 = 7;
			iVar1 = 980;
			break;
		
		case 26:
			StringCopy(&Var2, "JBIB_P0_04_8", 16);
			iVar6 = 4;
			iVar7 = 8;
			iVar1 = 1050;
			break;
		
		case 27:
			StringCopy(&Var2, "JBIB_P0_04_9", 16);
			iVar6 = 4;
			iVar7 = 9;
			iVar1 = 1100;
			break;
		
		case 28:
			StringCopy(&Var2, "JBIB_P0_05_0", 16);
			iVar6 = 5;
			iVar7 = 0;
			iVar1 = 1890;
			break;
		
		case 29:
			StringCopy(&Var2, "JBIB_P0_05_1", 16);
			iVar6 = 5;
			iVar7 = 1;
			iVar1 = 1820;
			break;
		
		case 30:
			StringCopy(&Var2, "JBIB_P0_05_2", 16);
			iVar6 = 5;
			iVar7 = 2;
			iVar1 = 1820;
			break;
		
		case 31:
			StringCopy(&Var2, "JBIB_P0_05_3", 16);
			iVar6 = 5;
			iVar7 = 3;
			iVar1 = 1850;
			break;
		
		case 32:
			StringCopy(&Var2, "JBIB_P0_05_4", 16);
			iVar6 = 5;
			iVar7 = 4;
			iVar1 = 1850;
			break;
		
		case 33:
			StringCopy(&Var2, "JBIB_P0_05_5", 16);
			iVar6 = 5;
			iVar7 = 5;
			iVar1 = 1900;
			break;
		
		case 34:
			StringCopy(&Var2, "JBIB_P0_05_6", 16);
			iVar6 = 5;
			iVar7 = 6;
			iVar1 = 1920;
			break;
		
		case 35:
			StringCopy(&Var2, "JBIB_P0_05_7", 16);
			iVar6 = 5;
			iVar7 = 7;
			iVar1 = 1980;
			break;
		
		case 36:
			StringCopy(&Var2, "JBIB_P0_05_8", 16);
			iVar6 = 5;
			iVar7 = 8;
			iVar1 = 2100;
			break;
		
		case 37:
			StringCopy(&Var2, "JBIB_P0_05_9", 16);
			iVar6 = 5;
			iVar7 = 9;
			iVar1 = 2120;
			break;
		
		case 38:
			StringCopy(&Var2, "JBIB_P0_05_10", 16);
			iVar6 = 5;
			iVar7 = 10;
			iVar1 = 2000;
			break;
		
		case 39:
			StringCopy(&Var2, "JBIB_P0_05_11", 16);
			iVar6 = 5;
			iVar7 = 11;
			iVar1 = 2200;
			break;
		
		case 40:
			StringCopy(&Var2, "JBIB_P0_05_12", 16);
			iVar6 = 5;
			iVar7 = 12;
			iVar1 = 2280;
			break;
		
		case 41:
			StringCopy(&Var2, "JBIB_P0_05_13", 16);
			iVar6 = 5;
			iVar7 = 13;
			iVar1 = 2300;
			break;
		
		case 42:
			StringCopy(&Var2, "JBIB_P0_05_14", 16);
			iVar6 = 5;
			iVar7 = 14;
			iVar1 = 2350;
			break;
		
		case 43:
			StringCopy(&Var2, "JBIB_P0_05_15", 16);
			iVar6 = 5;
			iVar7 = 15;
			iVar1 = 2280;
			break;
		
		case 44:
			StringCopy(&Var2, "JBIB_P0_06_0", 16);
			iVar6 = 6;
			iVar7 = 0;
			break;
		
		default:
			func_203(iVar10, iParam0, 45);
			return;
			break;
	}
	func_195(&(Global_69518[0 /*14*/]), iVar10, iParam0, &Var2, iVar6, iVar7, iVar1, iVar0, iVar8, iVar9, 0);
}

void func_326(int iParam0)//Position - 0x5605B
{
	int iVar0;
	int iVar1;
	struct<2> Var2;
	int iVar6;
	int iVar7;
	int iVar8;
	int iVar9;
	int iVar10;
	
	iVar0 = false;
	iVar1 = 10;
	iVar6 = 0;
	iVar7 = 0;
	iVar8 = -1;
	iVar9 = 2;
	iVar10 = 7;
	Global_69518[0 /*14*/].f_5 = 0;
	switch (iParam0)
	{
		case 0:
			StringCopy(&Var2, "NO_LABEL", 16);
			iVar6 = 0;
			iVar7 = 0;
			break;
		
		default:
			func_203(iVar10, iParam0, 1);
			return;
			break;
	}
	func_195(&(Global_69518[0 /*14*/]), iVar10, iParam0, &Var2, iVar6, iVar7, iVar1, iVar0, iVar8, iVar9, 0);
}

void func_327(int iParam0)//Position - 0x560CE
{
	int iVar0;
	int iVar1;
	struct<2> Var2;
	int iVar6;
	int iVar7;
	int iVar8;
	int iVar9;
	int iVar10;
	
	iVar0 = false;
	iVar1 = 10;
	iVar6 = 0;
	iVar7 = 0;
	iVar8 = -1;
	iVar9 = 2;
	iVar10 = 1;
	Global_69518[0 /*14*/].f_5 = 0;
	switch (iParam0)
	{
		case 0:
			StringCopy(&Var2, "BERD_P0_0_0", 16);
			iVar6 = 0;
			iVar7 = 0;
			break;
		
		case 1:
			StringCopy(&Var2, "BERD_P0_1_0", 16);
			iVar6 = 1;
			iVar7 = 0;
			break;
		
		case 2:
			StringCopy(&Var2, "BERD_P0_2_0", 16);
			iVar6 = 2;
			iVar7 = 0;
			break;
		
		case 3:
			StringCopy(&Var2, "BERD_P0_3_0", 16);
			iVar6 = 3;
			iVar7 = 0;
			break;
		
		case 4:
			StringCopy(&Var2, "BERD_P0_4_0", 16);
			iVar6 = 4;
			iVar7 = 0;
			break;
		
		default:
			func_203(iVar10, iParam0, 5);
			return;
			break;
	}
	func_195(&(Global_69518[0 /*14*/]), iVar10, iParam0, &Var2, iVar6, iVar7, iVar1, iVar0, iVar8, iVar9, 0);
}

void func_328(int iParam0)//Position - 0x561A2
{
	int iVar0;
	int iVar1;
	struct<2> Var2;
	int iVar6;
	int iVar7;
	int iVar8;
	int iVar9;
	int iVar10;
	
	iVar0 = false;
	iVar1 = 10;
	iVar6 = 0;
	iVar7 = 0;
	iVar8 = -1;
	iVar9 = 2;
	iVar10 = 10;
	Global_69518[0 /*14*/].f_5 = 0;
	switch (iParam0)
	{
		case 0:
			StringCopy(&Var2, "NO_LABEL", 16);
			iVar6 = 0;
			iVar7 = 0;
			break;
		
		case 1:
			StringCopy(&Var2, "NO_LABEL", 16);
			iVar6 = 1;
			iVar7 = 0;
			break;
		
		case 2:
			StringCopy(&Var2, "NO_LABEL", 16);
			iVar6 = 2;
			iVar7 = 0;
			break;
		
		case 3:
			StringCopy(&Var2, "NO_LABEL", 16);
			iVar6 = 3;
			iVar7 = 0;
			break;
		
		case 4:
			StringCopy(&Var2, "NO_LABEL", 16);
			iVar6 = 4;
			iVar7 = 0;
			break;
		
		case 5:
			StringCopy(&Var2, "NO_LABEL", 16);
			iVar6 = 5;
			iVar7 = 0;
			break;
		
		case 6:
			StringCopy(&Var2, "NO_LABEL", 16);
			iVar6 = 6;
			iVar7 = 0;
			break;
		
		case 7:
			StringCopy(&Var2, "NO_LABEL", 16);
			iVar6 = 7;
			iVar7 = 0;
			break;
		
		case 8:
			StringCopy(&Var2, "NO_LABEL", 16);
			iVar6 = 7;
			iVar7 = 1;
			break;
		
		case 9:
			StringCopy(&Var2, "NO_LABEL", 16);
			iVar6 = 7;
			iVar7 = 2;
			break;
		
		case 10:
			StringCopy(&Var2, "NO_LABEL", 16);
			iVar6 = 7;
			iVar7 = 3;
			break;
		
		case 11:
			StringCopy(&Var2, "NO_LABEL", 16);
			iVar6 = 7;
			iVar7 = 4;
			break;
		
		case 12:
			StringCopy(&Var2, "NO_LABEL", 16);
			iVar6 = 7;
			iVar7 = 5;
			break;
		
		case 13:
			StringCopy(&Var2, "NO_LABEL", 16);
			iVar6 = 7;
			iVar7 = 6;
			break;
		
		case 14:
			StringCopy(&Var2, "NO_LABEL", 16);
			iVar6 = 7;
			iVar7 = 7;
			break;
		
		case 15:
			StringCopy(&Var2, "NO_LABEL", 16);
			iVar6 = 8;
			iVar7 = 0;
			break;
		
		case 16:
			StringCopy(&Var2, "NO_LABEL", 16);
			iVar6 = 8;
			iVar7 = 1;
			break;
		
		case 17:
			StringCopy(&Var2, "NO_LABEL", 16);
			iVar6 = 8;
			iVar7 = 2;
			break;
		
		case 18:
			StringCopy(&Var2, "NO_LABEL", 16);
			iVar6 = 8;
			iVar7 = 3;
			break;
		
		case 19:
			StringCopy(&Var2, "NO_LABEL", 16);
			iVar6 = 8;
			iVar7 = 4;
			break;
		
		case 20:
			StringCopy(&Var2, "NO_LABEL", 16);
			iVar6 = 8;
			iVar7 = 5;
			break;
		
		case 21:
			StringCopy(&Var2, "NO_LABEL", 16);
			iVar6 = 9;
			iVar7 = 0;
			break;
		
		case 22:
			StringCopy(&Var2, "NO_LABEL", 16);
			iVar6 = 9;
			iVar7 = 1;
			break;
		
		case 23:
			StringCopy(&Var2, "NO_LABEL", 16);
			iVar6 = 9;
			iVar7 = 2;
			break;
		
		case 24:
			StringCopy(&Var2, "NO_LABEL", 16);
			iVar6 = 9;
			iVar7 = 3;
			break;
		
		case 25:
			StringCopy(&Var2, "NO_LABEL", 16);
			iVar6 = 9;
			iVar7 = 4;
			break;
		
		case 26:
			StringCopy(&Var2, "NO_LABEL", 16);
			iVar6 = 9;
			iVar7 = 5;
			break;
		
		case 27:
			StringCopy(&Var2, "NO_LABEL", 16);
			iVar6 = 9;
			iVar7 = 6;
			break;
		
		case 28:
			StringCopy(&Var2, "NO_LABEL", 16);
			iVar6 = 10;
			iVar7 = 0;
			break;
		
		case 29:
			StringCopy(&Var2, "NO_LABEL", 16);
			iVar6 = 10;
			iVar7 = 1;
			break;
		
		case 30:
			StringCopy(&Var2, "NO_LABEL", 16);
			iVar6 = 10;
			iVar7 = 2;
			break;
		
		case 31:
			StringCopy(&Var2, "NO_LABEL", 16);
			iVar6 = 10;
			iVar7 = 3;
			break;
		
		case 32:
			StringCopy(&Var2, "NO_LABEL", 16);
			iVar6 = 10;
			iVar7 = 4;
			break;
		
		case 33:
			StringCopy(&Var2, "NO_LABEL", 16);
			iVar6 = 10;
			iVar7 = 5;
			break;
		
		case 34:
			StringCopy(&Var2, "NO_LABEL", 16);
			iVar6 = 10;
			iVar7 = 6;
			break;
		
		case 35:
			StringCopy(&Var2, "NO_LABEL", 16);
			iVar6 = 10;
			iVar7 = 7;
			break;
		
		case 36:
			StringCopy(&Var2, "DECL_P0_10_8", 16);
			iVar6 = 10;
			iVar7 = 8;
			break;
		
		case 37:
			StringCopy(&Var2, "DECL_P0_10_9", 16);
			iVar6 = 10;
			iVar7 = 9;
			break;
		
		case 38:
			StringCopy(&Var2, "DECL_P0_10_10", 16);
			iVar6 = 10;
			iVar7 = 10;
			break;
		
		case 39:
			StringCopy(&Var2, "DECL_P0_10_11", 16);
			iVar6 = 10;
			iVar7 = 11;
			break;
		
		case 40:
			StringCopy(&Var2, "DECL_P0_10_12", 16);
			iVar6 = 10;
			iVar7 = 12;
			break;
		
		case 41:
			StringCopy(&Var2, "DECL_P0_10_13", 16);
			iVar6 = 10;
			iVar7 = 13;
			break;
		
		case 42:
			StringCopy(&Var2, "DECL_P0_10_14", 16);
			iVar6 = 10;
			iVar7 = 14;
			break;
		
		case 43:
			StringCopy(&Var2, "DECL_P0_10_15", 16);
			iVar6 = 10;
			iVar7 = 15;
			break;
		
		case 44:
			StringCopy(&Var2, "NO_LABEL", 16);
			iVar6 = 11;
			iVar7 = 0;
			break;
		
		case 45:
			StringCopy(&Var2, "NO_LABEL", 16);
			iVar6 = 11;
			iVar7 = 1;
			break;
		
		case 46:
			StringCopy(&Var2, "NO_LABEL", 16);
			iVar6 = 11;
			iVar7 = 2;
			break;
		
		case 47:
			StringCopy(&Var2, "NO_LABEL", 16);
			iVar6 = 11;
			iVar7 = 3;
			break;
		
		default:
			func_203(iVar10, iParam0, 48);
			return;
			break;
	}
	func_195(&(Global_69518[0 /*14*/]), iVar10, iParam0, &Var2, iVar6, iVar7, iVar1, iVar0, iVar8, iVar9, 0);
}

void func_329(int iParam0)//Position - 0x56681
{
	int iVar0;
	int iVar1;
	struct<2> Var2;
	int iVar6;
	int iVar7;
	int iVar8;
	int iVar9;
	int iVar10;
	
	iVar0 = false;
	iVar1 = 10;
	iVar6 = 0;
	iVar7 = 0;
	iVar8 = -1;
	iVar9 = 2;
	iVar10 = 9;
	Global_69518[0 /*14*/].f_5 = 0;
	switch (iParam0)
	{
		case 0:
			StringCopy(&Var2, "NO_LABEL", 16);
			iVar6 = 0;
			iVar7 = 0;
			break;
		
		case 1:
			StringCopy(&Var2, "NO_LABEL", 16);
			iVar6 = 1;
			iVar7 = 0;
			break;
		
		case 2:
			StringCopy(&Var2, "NO_LABEL", 16);
			iVar6 = 1;
			iVar7 = 1;
			break;
		
		case 3:
			StringCopy(&Var2, "NO_LABEL", 16);
			iVar6 = 2;
			iVar7 = 0;
			break;
		
		case 4:
			StringCopy(&Var2, "NO_LABEL", 16);
			iVar6 = 3;
			iVar7 = 0;
			iVar0 = true;
			break;
		
		case 5:
			StringCopy(&Var2, "NO_LABEL", 16);
			iVar6 = 4;
			iVar7 = 0;
			iVar0 = true;
			break;
		
		case 6:
			StringCopy(&Var2, "NO_LABEL", 16);
			iVar6 = 5;
			iVar7 = 0;
			break;
		
		case 7:
			StringCopy(&Var2, "NO_LABEL", 16);
			iVar6 = 6;
			iVar7 = 0;
			iVar0 = true;
			break;
		
		case 8:
			StringCopy(&Var2, "NO_LABEL", 16);
			iVar6 = 7;
			iVar7 = 0;
			iVar0 = true;
			break;
		
		case 9:
			StringCopy(&Var2, "SPEC2_P0_08_0", 16);
			iVar6 = 8;
			iVar7 = 0;
			iVar1 = 125;
			break;
		
		case 10:
			StringCopy(&Var2, "SPEC2_P0_08_1", 16);
			iVar6 = 8;
			iVar7 = 1;
			iVar1 = 150;
			break;
		
		case 11:
			StringCopy(&Var2, "SPEC2_P0_08_2", 16);
			iVar6 = 8;
			iVar7 = 2;
			iVar1 = 175;
			break;
		
		case 12:
			StringCopy(&Var2, "SPEC2_P0_08_3", 16);
			iVar6 = 8;
			iVar7 = 3;
			iVar1 = 85;
			break;
		
		case 13:
			StringCopy(&Var2, "SPEC2_P0_08_4", 16);
			iVar6 = 8;
			iVar7 = 4;
			iVar1 = 150;
			break;
		
		case 14:
			StringCopy(&Var2, "SPEC2_P0_08_5", 16);
			iVar6 = 8;
			iVar7 = 5;
			iVar1 = 175;
			break;
		
		case 15:
			StringCopy(&Var2, "NO_LABEL", 16);
			iVar6 = 9;
			iVar7 = 0;
			iVar0 = true;
			break;
		
		case 16:
			StringCopy(&Var2, "NO_LABEL", 16);
			iVar6 = 10;
			iVar7 = 0;
			iVar0 = true;
			break;
		
		case 17:
			StringCopy(&Var2, "NO_LABEL", 16);
			iVar6 = 10;
			iVar7 = 1;
			iVar0 = true;
			break;
		
		case 18:
			StringCopy(&Var2, "NO_LABEL", 16);
			iVar6 = 11;
			iVar7 = 0;
			iVar0 = true;
			break;
		
		case 19:
			StringCopy(&Var2, "NO_LABEL", 16);
			iVar6 = 12;
			iVar7 = 0;
			iVar0 = true;
			break;
		
		default:
			func_203(iVar10, iParam0, 20);
			return;
			break;
	}
	func_195(&(Global_69518[0 /*14*/]), iVar10, iParam0, &Var2, iVar6, iVar7, iVar1, iVar0, iVar8, iVar9, 0);
}

void func_330(int iParam0)//Position - 0x568E9
{
	int iVar0;
	int iVar1;
	struct<2> Var2;
	int iVar6;
	int iVar7;
	int iVar8;
	int iVar9;
	int iVar10;
	
	iVar0 = false;
	iVar1 = 10;
	iVar6 = 0;
	iVar7 = 0;
	iVar8 = -1;
	iVar9 = 2;
	iVar10 = 8;
	Global_69518[0 /*14*/].f_5 = 0;
	switch (iParam0)
	{
		case 0:
			StringCopy(&Var2, "NO_LABEL", 16);
			iVar6 = 0;
			iVar7 = 0;
			break;
		
		case 1:
			StringCopy(&Var2, "NO_LABEL", 16);
			iVar6 = 1;
			iVar7 = 0;
			iVar0 = true;
			break;
		
		case 2:
			StringCopy(&Var2, "NO_LABEL", 16);
			iVar6 = 2;
			iVar7 = 0;
			iVar0 = true;
			break;
		
		case 3:
			StringCopy(&Var2, "NO_LABEL", 16);
			iVar6 = 3;
			iVar7 = 0;
			iVar0 = true;
			break;
		
		case 4:
			StringCopy(&Var2, "NO_LABEL", 16);
			iVar6 = 4;
			iVar7 = 0;
			iVar0 = true;
			break;
		
		case 5:
			StringCopy(&Var2, "NO_LABEL", 16);
			iVar6 = 5;
			iVar7 = 0;
			iVar0 = true;
			break;
		
		case 6:
			StringCopy(&Var2, "NO_LABEL", 16);
			iVar6 = 6;
			iVar7 = 0;
			iVar0 = true;
			break;
		
		case 7:
			StringCopy(&Var2, "NO_LABEL", 16);
			iVar6 = 7;
			iVar7 = 0;
			iVar0 = true;
			break;
		
		case 8:
			StringCopy(&Var2, "NO_LABEL", 16);
			iVar6 = 8;
			iVar7 = 0;
			iVar0 = true;
			break;
		
		case 9:
			StringCopy(&Var2, "NO_LABEL", 16);
			iVar6 = 9;
			iVar7 = 0;
			iVar0 = true;
			break;
		
		case 10:
			StringCopy(&Var2, "SPEC_P0_10", 16);
			iVar6 = 10;
			iVar7 = 0;
			break;
		
		case 11:
			StringCopy(&Var2, "NO_LABEL", 16);
			iVar6 = 11;
			iVar7 = 0;
			iVar0 = true;
			break;
		
		case 12:
			StringCopy(&Var2, "NO_LABEL", 16);
			iVar6 = 12;
			iVar7 = 0;
			iVar0 = true;
			break;
		
		case 13:
			StringCopy(&Var2, "NO_LABEL", 16);
			iVar6 = 13;
			iVar7 = 0;
			iVar0 = true;
			break;
		
		case 14:
			StringCopy(&Var2, "NO_LABEL", 16);
			iVar6 = 14;
			iVar7 = 0;
			iVar0 = true;
			break;
		
		case 15:
			StringCopy(&Var2, "NO_LABEL", 16);
			iVar6 = 15;
			iVar7 = 0;
			iVar0 = true;
			break;
		
		case 16:
			StringCopy(&Var2, "SPEC_P0_16", 16);
			iVar6 = 16;
			iVar7 = 0;
			break;
		
		case 17:
			StringCopy(&Var2, "NO_LABEL", 16);
			iVar6 = 17;
			iVar7 = 0;
			iVar0 = true;
			break;
		
		case 18:
			StringCopy(&Var2, "NO_LABEL", 16);
			iVar6 = 18;
			iVar7 = 0;
			iVar0 = true;
			break;
		
		case 19:
			StringCopy(&Var2, "NO_LABEL", 16);
			iVar6 = 19;
			iVar7 = 0;
			iVar0 = true;
			break;
		
		case 20:
			StringCopy(&Var2, "NO_LABEL", 16);
			iVar6 = 20;
			iVar7 = 0;
			iVar0 = true;
			break;
		
		case 21:
			StringCopy(&Var2, "NO_LABEL", 16);
			iVar6 = 21;
			iVar7 = 0;
			iVar0 = true;
			break;
		
		case 22:
			StringCopy(&Var2, "NO_LABEL", 16);
			iVar6 = 22;
			iVar7 = 0;
			iVar0 = true;
			break;
		
		case 23:
			StringCopy(&Var2, "NO_LABEL", 16);
			iVar6 = 23;
			iVar7 = 0;
			iVar0 = true;
			break;
		
		default:
			func_203(iVar10, iParam0, 24);
			return;
			break;
	}
	func_195(&(Global_69518[0 /*14*/]), iVar10, iParam0, &Var2, iVar6, iVar7, iVar1, iVar0, iVar8, iVar9, 0);
}

void func_331(int iParam0)//Position - 0x56BC0
{
	int iVar0;
	int iVar1;
	struct<2> Var2;
	int iVar6;
	int iVar7;
	int iVar8;
	int iVar9;
	int iVar10;
	
	iVar0 = false;
	iVar1 = 10;
	iVar6 = 0;
	iVar7 = 0;
	iVar8 = -1;
	iVar9 = 2;
	iVar10 = 5;
	Global_69518[0 /*14*/].f_5 = 0;
	switch (iParam0)
	{
		case 0:
			StringCopy(&Var2, "NO_LABEL", 16);
			iVar6 = 0;
			iVar7 = 0;
			break;
		
		case 1:
			StringCopy(&Var2, "NO_LABEL", 16);
			iVar6 = 1;
			iVar7 = 0;
			iVar0 = true;
			break;
		
		case 2:
			StringCopy(&Var2, "NO_LABEL", 16);
			iVar6 = 2;
			iVar7 = 0;
			iVar0 = true;
			break;
		
		case 3:
			StringCopy(&Var2, "NO_LABEL", 16);
			iVar6 = 3;
			iVar7 = 0;
			iVar0 = true;
			break;
		
		case 4:
			StringCopy(&Var2, "NO_LABEL", 16);
			iVar6 = 3;
			iVar7 = 1;
			iVar0 = true;
			break;
		
		case 5:
			StringCopy(&Var2, "NO_LABEL", 16);
			iVar6 = 3;
			iVar7 = 2;
			iVar0 = true;
			break;
		
		case 6:
			StringCopy(&Var2, "NO_LABEL", 16);
			iVar6 = 3;
			iVar7 = 3;
			iVar0 = true;
			break;
		
		case 7:
			StringCopy(&Var2, "NO_LABEL", 16);
			iVar6 = 3;
			iVar7 = 4;
			iVar0 = true;
			break;
		
		case 8:
			StringCopy(&Var2, "NO_LABEL", 16);
			iVar6 = 4;
			iVar7 = 0;
			iVar0 = true;
			break;
		
		case 9:
			StringCopy(&Var2, "NO_LABEL", 16);
			iVar6 = 5;
			iVar7 = 0;
			iVar0 = true;
			break;
		
		case 10:
			StringCopy(&Var2, "NO_LABEL", 16);
			iVar6 = 6;
			iVar7 = 0;
			iVar0 = true;
			break;
		
		case 11:
			StringCopy(&Var2, "NO_LABEL", 16);
			iVar6 = 7;
			iVar7 = 0;
			iVar0 = true;
			break;
		
		case 12:
			StringCopy(&Var2, "NO_LABEL", 16);
			iVar6 = 8;
			iVar7 = 0;
			iVar0 = true;
			break;
		
		case 13:
			StringCopy(&Var2, "NO_LABEL", 16);
			iVar6 = 9;
			iVar7 = 0;
			iVar0 = true;
			break;
		
		default:
			func_203(iVar10, iParam0, 14);
			return;
			break;
	}
	func_195(&(Global_69518[0 /*14*/]), iVar10, iParam0, &Var2, iVar6, iVar7, iVar1, iVar0, iVar8, iVar9, 0);
}

void func_332(int iParam0)//Position - 0x56D88
{
	int iVar0;
	int iVar1;
	struct<2> Var2;
	int iVar6;
	int iVar7;
	int iVar8;
	int iVar9;
	int iVar10;
	
	iVar0 = false;
	iVar1 = 10;
	iVar6 = 0;
	iVar7 = 0;
	iVar8 = -1;
	iVar9 = 2;
	iVar10 = 6;
	Global_69518[0 /*14*/].f_5 = 0;
	switch (iParam0)
	{
		case 0:
			StringCopy(&Var2, "FEET_P0_0_0", 16);
			iVar6 = 0;
			iVar7 = 0;
			break;
		
		case 1:
			StringCopy(&Var2, "FEET_P0_0_1", 16);
			iVar6 = 0;
			iVar7 = 1;
			iVar1 = 665;
			break;
		
		case 2:
			StringCopy(&Var2, "FEET_P0_0_2", 16);
			iVar6 = 0;
			iVar7 = 2;
			iVar1 = 620;
			break;
		
		case 3:
			StringCopy(&Var2, "FEET_P0_0_3", 16);
			iVar6 = 0;
			iVar7 = 3;
			iVar1 = 540;
			break;
		
		case 4:
			StringCopy(&Var2, "FEET_P0_0_4", 16);
			iVar6 = 0;
			iVar7 = 4;
			iVar1 = 580;
			break;
		
		case 5:
			StringCopy(&Var2, "FEET_P0_0_5", 16);
			iVar6 = 0;
			iVar7 = 5;
			iVar1 = 650;
			break;
		
		case 6:
			StringCopy(&Var2, "NO_LABEL", 16);
			iVar6 = 1;
			iVar7 = 0;
			break;
		
		case 7:
			StringCopy(&Var2, "NO_LABEL", 16);
			iVar6 = 2;
			iVar7 = 0;
			break;
		
		case 8:
			StringCopy(&Var2, "NO_LABEL", 16);
			iVar6 = 3;
			iVar7 = 0;
			iVar0 = true;
			break;
		
		case 9:
			StringCopy(&Var2, "NO_LABEL", 16);
			iVar6 = 4;
			iVar7 = 0;
			iVar0 = true;
			break;
		
		case 10:
			StringCopy(&Var2, "NO_LABEL", 16);
			iVar6 = 5;
			iVar7 = 0;
			iVar0 = true;
			break;
		
		case 11:
			StringCopy(&Var2, "NO_LABEL", 16);
			iVar6 = 6;
			iVar7 = 0;
			iVar0 = true;
			break;
		
		case 12:
			StringCopy(&Var2, "NO_LABEL", 16);
			iVar6 = 7;
			iVar7 = 0;
			iVar0 = true;
			break;
		
		case 13:
			StringCopy(&Var2, "NO_LABEL", 16);
			iVar6 = 8;
			iVar7 = 0;
			iVar0 = true;
			break;
		
		case 14:
			StringCopy(&Var2, "NO_LABEL", 16);
			iVar6 = 9;
			iVar7 = 0;
			iVar0 = true;
			break;
		
		case 15:
			StringCopy(&Var2, "NO_LABEL", 16);
			iVar6 = 10;
			iVar7 = 0;
			iVar0 = true;
			break;
		
		case 16:
			StringCopy(&Var2, "NO_LABEL", 16);
			iVar6 = 11;
			iVar7 = 0;
			iVar0 = true;
			break;
		
		case 17:
			StringCopy(&Var2, "NO_LABEL", 16);
			iVar6 = 12;
			iVar7 = 0;
			iVar0 = true;
			break;
		
		case 18:
			StringCopy(&Var2, "FEET_P0_13_0", 16);
			iVar6 = 13;
			iVar7 = 0;
			break;
		
		case 19:
			StringCopy(&Var2, "NO_LABEL", 16);
			iVar6 = 14;
			iVar7 = 0;
			iVar0 = true;
			break;
		
		case 20:
			StringCopy(&Var2, "FEET_P0_15_0", 16);
			iVar6 = 15;
			iVar7 = 0;
			break;
		
		case 21:
			StringCopy(&Var2, "FEET_P0_15_1", 16);
			iVar6 = 15;
			iVar7 = 1;
			iVar1 = 64;
			break;
		
		case 22:
			StringCopy(&Var2, "FEET_P0_15_2", 16);
			iVar6 = 15;
			iVar7 = 2;
			iVar1 = 56;
			break;
		
		case 23:
			StringCopy(&Var2, "FEET_P0_15_3", 16);
			iVar6 = 15;
			iVar7 = 3;
			iVar1 = 69;
			break;
		
		case 24:
			StringCopy(&Var2, "FEET_P0_15_4", 16);
			iVar6 = 15;
			iVar7 = 4;
			iVar1 = 59;
			break;
		
		case 25:
			StringCopy(&Var2, "FEET_P0_15_5", 16);
			iVar6 = 15;
			iVar7 = 5;
			iVar1 = 62;
			break;
		
		case 26:
			StringCopy(&Var2, "FEET_P0_15_6", 16);
			iVar6 = 15;
			iVar7 = 6;
			iVar1 = 74;
			break;
		
		case 27:
			StringCopy(&Var2, "FEET_P0_15_7", 16);
			iVar6 = 15;
			iVar7 = 7;
			iVar1 = 68;
			break;
		
		case 28:
			StringCopy(&Var2, "FEET_P0_15_8", 16);
			iVar6 = 15;
			iVar7 = 8;
			iVar1 = 72;
			break;
		
		case 29:
			StringCopy(&Var2, "FEET_P0_15_9", 16);
			iVar6 = 15;
			iVar7 = 9;
			iVar1 = 70;
			break;
		
		case 30:
			StringCopy(&Var2, "FEET_P0_16_0", 16);
			iVar6 = 16;
			iVar7 = 0;
			iVar1 = 48;
			break;
		
		case 31:
			StringCopy(&Var2, "FEET_P0_16_1", 16);
			iVar6 = 16;
			iVar7 = 1;
			iVar1 = 48;
			break;
		
		case 32:
			StringCopy(&Var2, "FEET_P0_16_2", 16);
			iVar6 = 16;
			iVar7 = 2;
			iVar1 = 55;
			break;
		
		case 33:
			StringCopy(&Var2, "FEET_P0_16_3", 16);
			iVar6 = 16;
			iVar7 = 3;
			iVar1 = 75;
			break;
		
		case 34:
			StringCopy(&Var2, "FEET_P0_16_4", 16);
			iVar6 = 16;
			iVar7 = 4;
			iVar1 = 65;
			break;
		
		case 35:
			StringCopy(&Var2, "FEET_P0_16_5", 16);
			iVar6 = 16;
			iVar7 = 5;
			iVar1 = 68;
			break;
		
		case 36:
			StringCopy(&Var2, "FEET_P0_16_6", 16);
			iVar6 = 16;
			iVar7 = 6;
			iVar1 = 58;
			break;
		
		case 37:
			StringCopy(&Var2, "FEET_P0_16_7", 16);
			iVar6 = 16;
			iVar7 = 7;
			iVar1 = 68;
			break;
		
		case 38:
			StringCopy(&Var2, "NO_LABEL", 16);
			iVar6 = 17;
			iVar7 = 0;
			iVar0 = true;
			break;
		
		case 39:
			StringCopy(&Var2, "FEET_P0_18_0", 16);
			iVar6 = 18;
			iVar7 = 0;
			iVar1 = 790;
			break;
		
		case 40:
			StringCopy(&Var2, "FEET_P0_18_1", 16);
			iVar6 = 18;
			iVar7 = 1;
			iVar1 = 750;
			break;
		
		case 41:
			StringCopy(&Var2, "FEET_P0_18_2", 16);
			iVar6 = 18;
			iVar7 = 2;
			iVar1 = 860;
			break;
		
		case 42:
			StringCopy(&Var2, "FEET_P0_18_3", 16);
			iVar6 = 18;
			iVar7 = 3;
			iVar1 = 750;
			break;
		
		case 43:
			StringCopy(&Var2, "FEET_P0_18_4", 16);
			iVar6 = 18;
			iVar7 = 4;
			iVar1 = 790;
			break;
		
		case 44:
			StringCopy(&Var2, "FEET_P0_18_5", 16);
			iVar6 = 18;
			iVar7 = 5;
			iVar1 = 840;
			break;
		
		case 45:
			StringCopy(&Var2, "FEET_P0_18_6", 16);
			iVar6 = 18;
			iVar7 = 6;
			iVar1 = 820;
			break;
		
		case 46:
			StringCopy(&Var2, "FEET_P0_18_7", 16);
			iVar6 = 18;
			iVar7 = 7;
			iVar1 = 800;
			break;
		
		case 47:
			StringCopy(&Var2, "FEET_P0_18_8", 16);
			iVar6 = 18;
			iVar7 = 8;
			iVar1 = 850;
			break;
		
		case 48:
			StringCopy(&Var2, "FEET_P0_18_9", 16);
			iVar6 = 18;
			iVar7 = 9;
			iVar1 = 870;
			break;
		
		case 49:
			StringCopy(&Var2, "FEET_P0_18_10", 16);
			iVar6 = 18;
			iVar7 = 10;
			iVar1 = 720;
			break;
		
		case 50:
			StringCopy(&Var2, "FEET_P0_18_11", 16);
			iVar6 = 18;
			iVar7 = 11;
			iVar1 = 740;
			break;
		
		case 51:
			StringCopy(&Var2, "FEET_P0_18_12", 16);
			iVar6 = 18;
			iVar7 = 12;
			iVar1 = 800;
			break;
		
		case 52:
			StringCopy(&Var2, "FEET_P0_18_13", 16);
			iVar6 = 18;
			iVar7 = 13;
			iVar1 = 750;
			break;
		
		case 53:
			StringCopy(&Var2, "FEET_P0_18_14", 16);
			iVar6 = 18;
			iVar7 = 14;
			iVar1 = 770;
			break;
		
		case 54:
			StringCopy(&Var2, "FEET_P0_18_15", 16);
			iVar6 = 18;
			iVar7 = 15;
			iVar1 = 860;
			break;
		
		case 55:
			StringCopy(&Var2, "FEET_P0_19_0", 16);
			iVar6 = 19;
			iVar7 = 0;
			iVar1 = 850;
			break;
		
		case 56:
			StringCopy(&Var2, "FEET_P0_19_1", 16);
			iVar6 = 19;
			iVar7 = 1;
			iVar1 = 800;
			break;
		
		case 57:
			StringCopy(&Var2, "FEET_P0_19_2", 16);
			iVar6 = 19;
			iVar7 = 2;
			iVar1 = 780;
			break;
		
		case 58:
			StringCopy(&Var2, "FEET_P0_19_3", 16);
			iVar6 = 19;
			iVar7 = 3;
			iVar1 = 890;
			break;
		
		case 59:
			StringCopy(&Var2, "FEET_P0_19_4", 16);
			iVar6 = 19;
			iVar7 = 4;
			iVar1 = 820;
			break;
		
		case 60:
			StringCopy(&Var2, "FEET_P0_19_5", 16);
			iVar6 = 19;
			iVar7 = 5;
			iVar1 = 840;
			break;
		
		case 61:
			StringCopy(&Var2, "FEET_P0_19_6", 16);
			iVar6 = 19;
			iVar7 = 6;
			iVar1 = 870;
			break;
		
		case 62:
			StringCopy(&Var2, "FEET_P0_19_7", 16);
			iVar6 = 19;
			iVar7 = 7;
			iVar1 = 930;
			break;
		
		case 63:
			StringCopy(&Var2, "FEET_P0_19_8", 16);
			iVar6 = 19;
			iVar7 = 8;
			iVar1 = 880;
			break;
		
		case 64:
			StringCopy(&Var2, "FEET_P0_19_9", 16);
			iVar6 = 19;
			iVar7 = 9;
			iVar1 = 900;
			break;
		
		case 65:
			StringCopy(&Var2, "FEET_P0_19_10", 16);
			iVar6 = 19;
			iVar7 = 10;
			iVar1 = 920;
			break;
		
		case 66:
			StringCopy(&Var2, "FEET_P0_19_11", 16);
			iVar6 = 19;
			iVar7 = 11;
			iVar1 = 970;
			break;
		
		case 67:
			StringCopy(&Var2, "FEET_P0_19_12", 16);
			iVar6 = 19;
			iVar7 = 12;
			iVar1 = 990;
			break;
		
		case 68:
			StringCopy(&Var2, "FEET_P0_19_13", 16);
			iVar6 = 19;
			iVar7 = 13;
			iVar1 = 960;
			break;
		
		case 69:
			StringCopy(&Var2, "FEET_P0_19_14", 16);
			iVar6 = 19;
			iVar7 = 14;
			iVar1 = 980;
			break;
		
		case 70:
			StringCopy(&Var2, "FEET_P0_19_15", 16);
			iVar6 = 19;
			iVar7 = 15;
			iVar1 = 950;
			break;
		
		case 71:
			StringCopy(&Var2, "FEET_P0_20_0", 16);
			iVar6 = 20;
			iVar7 = 0;
			iVar1 = 110;
			break;
		
		case 72:
			StringCopy(&Var2, "FEET_P0_20_1", 16);
			iVar6 = 20;
			iVar7 = 1;
			iVar1 = 115;
			break;
		
		case 73:
			StringCopy(&Var2, "FEET_P0_20_2", 16);
			iVar6 = 20;
			iVar7 = 2;
			iVar1 = 120;
			break;
		
		case 74:
			StringCopy(&Var2, "FEET_P0_20_3", 16);
			iVar6 = 20;
			iVar7 = 3;
			iVar1 = 110;
			break;
		
		case 75:
			StringCopy(&Var2, "FEET_P0_20_4", 16);
			iVar6 = 20;
			iVar7 = 4;
			iVar1 = 125;
			break;
		
		case 76:
			StringCopy(&Var2, "FEET_P0_20_5", 16);
			iVar6 = 20;
			iVar7 = 5;
			iVar1 = 128;
			break;
		
		case 77:
			StringCopy(&Var2, "FEET_P0_20_6", 16);
			iVar6 = 20;
			iVar7 = 6;
			iVar1 = 135;
			break;
		
		case 78:
			StringCopy(&Var2, "FEET_P0_20_7", 16);
			iVar6 = 20;
			iVar7 = 7;
			iVar1 = 130;
			break;
		
		case 79:
			StringCopy(&Var2, "FEET_P0_20_8", 16);
			iVar6 = 20;
			iVar7 = 8;
			iVar1 = 145;
			break;
		
		case 80:
			StringCopy(&Var2, "FEET_P0_20_9", 16);
			iVar6 = 20;
			iVar7 = 9;
			iVar1 = 110;
			break;
		
		case 81:
			StringCopy(&Var2, "FEET_P0_20_10", 16);
			iVar6 = 20;
			iVar7 = 10;
			iVar1 = 120;
			break;
		
		case 82:
			StringCopy(&Var2, "FEET_P0_20_11", 16);
			iVar6 = 20;
			iVar7 = 11;
			iVar1 = 150;
			break;
		
		case 83:
			StringCopy(&Var2, "FEET_P0_20_12", 16);
			iVar6 = 20;
			iVar7 = 12;
			iVar1 = 125;
			break;
		
		case 84:
			StringCopy(&Var2, "FEET_P0_20_13", 16);
			iVar6 = 20;
			iVar7 = 13;
			iVar1 = 120;
			break;
		
		case 85:
			StringCopy(&Var2, "FEET_P0_20_14", 16);
			iVar6 = 20;
			iVar7 = 14;
			iVar1 = 130;
			break;
		
		case 86:
			StringCopy(&Var2, "FEET_P0_20_15", 16);
			iVar6 = 20;
			iVar7 = 15;
			iVar1 = 110;
			break;
		
		case 87:
			StringCopy(&Var2, "FEET_P0_21_0", 16);
			iVar6 = 21;
			iVar7 = 0;
			iVar1 = 720;
			break;
		
		case 88:
			StringCopy(&Var2, "FEET_P0_21_1", 16);
			iVar6 = 21;
			iVar7 = 1;
			iVar1 = 680;
			break;
		
		case 89:
			StringCopy(&Var2, "FEET_P0_21_2", 16);
			iVar6 = 21;
			iVar7 = 2;
			iVar1 = 650;
			break;
		
		case 90:
			StringCopy(&Var2, "FEET_P0_21_3", 16);
			iVar6 = 21;
			iVar7 = 3;
			iVar1 = 670;
			break;
		
		case 91:
			StringCopy(&Var2, "FEET_P0_21_4", 16);
			iVar6 = 21;
			iVar7 = 4;
			iVar1 = 700;
			break;
		
		case 92:
			StringCopy(&Var2, "FEET_P0_21_5", 16);
			iVar6 = 21;
			iVar7 = 5;
			iVar1 = 680;
			break;
		
		case 93:
			StringCopy(&Var2, "FEET_P0_21_6", 16);
			iVar6 = 21;
			iVar7 = 6;
			iVar1 = 720;
			break;
		
		case 94:
			StringCopy(&Var2, "FEET_P0_21_7", 16);
			iVar6 = 21;
			iVar7 = 7;
			iVar1 = 740;
			break;
		
		case 95:
			StringCopy(&Var2, "FEET_P0_21_8", 16);
			iVar6 = 21;
			iVar7 = 8;
			iVar1 = 760;
			break;
		
		case 96:
			StringCopy(&Var2, "FEET_P0_21_9", 16);
			iVar6 = 21;
			iVar7 = 9;
			iVar1 = 780;
			break;
		
		case 97:
			StringCopy(&Var2, "FEET_P0_21_10", 16);
			iVar6 = 21;
			iVar7 = 10;
			iVar1 = 750;
			break;
		
		case 98:
			StringCopy(&Var2, "FEET_P0_21_11", 16);
			iVar6 = 21;
			iVar7 = 11;
			iVar1 = 700;
			break;
		
		default:
			func_203(iVar10, iParam0, 99);
			return;
			break;
	}
	func_195(&(Global_69518[0 /*14*/]), iVar10, iParam0, &Var2, iVar6, iVar7, iVar1, iVar0, iVar8, iVar9, 0);
}

void func_333(int iParam0)//Position - 0x57930
{
	int iVar0;
	int iVar1;
	struct<2> Var2;
	int iVar6;
	int iVar7;
	int iVar8;
	int iVar9;
	int iVar10;
	
	iVar0 = false;
	iVar1 = 10;
	iVar6 = 0;
	iVar7 = 0;
	iVar8 = -1;
	iVar9 = 2;
	iVar10 = 4;
	Global_69518[0 /*14*/].f_5 = 0;
	switch (iParam0)
	{
		case 0:
			StringCopy(&Var2, "LEGS_P0_0_0", 16);
			iVar6 = 0;
			iVar7 = 0;
			break;
		
		case 1:
			StringCopy(&Var2, "LEGS_P0_0_0", 16);
			iVar6 = 0;
			iVar7 = 1;
			break;
		
		case 2:
			StringCopy(&Var2, "LEGS_P0_0_2", 16);
			iVar6 = 0;
			iVar7 = 2;
			break;
		
		case 3:
			StringCopy(&Var2, "LEGS_P0_0_3", 16);
			iVar6 = 0;
			iVar7 = 3;
			break;
		
		case 4:
			StringCopy(&Var2, "LEGS_P0_0_4", 16);
			iVar6 = 0;
			iVar7 = 4;
			break;
		
		case 5:
			StringCopy(&Var2, "LEGS_P0_0_5", 16);
			iVar6 = 0;
			iVar7 = 5;
			break;
		
		case 6:
			StringCopy(&Var2, "LEGS_P0_0_6", 16);
			iVar6 = 0;
			iVar7 = 6;
			break;
		
		case 7:
			StringCopy(&Var2, "LEGS_P0_0_7", 16);
			iVar6 = 0;
			iVar7 = 7;
			break;
		
		case 8:
			StringCopy(&Var2, "LEGS_P0_0_8", 16);
			iVar6 = 0;
			iVar7 = 8;
			break;
		
		case 9:
			StringCopy(&Var2, "LEGS_P0_0_9", 16);
			iVar6 = 0;
			iVar7 = 9;
			break;
		
		case 10:
			StringCopy(&Var2, "LEGS_P0_0_10", 16);
			iVar6 = 0;
			iVar7 = 10;
			break;
		
		case 11:
			StringCopy(&Var2, "LEGS_P0_0_11", 16);
			iVar6 = 0;
			iVar7 = 11;
			break;
		
		case 12:
			StringCopy(&Var2, "LEGS_P0_0_12", 16);
			iVar6 = 0;
			iVar7 = 12;
			break;
		
		case 13:
			StringCopy(&Var2, "LEGS_P0_0_13", 16);
			iVar6 = 0;
			iVar7 = 13;
			break;
		
		case 14:
			StringCopy(&Var2, "LEGS_P0_0_14", 16);
			iVar6 = 0;
			iVar7 = 14;
			break;
		
		case 15:
			StringCopy(&Var2, "LEGS_P0_0_15", 16);
			iVar6 = 0;
			iVar7 = 15;
			break;
		
		case 16:
			StringCopy(&Var2, "NO_LABEL", 16);
			iVar6 = 1;
			iVar7 = 0;
			iVar0 = true;
			break;
		
		case 17:
			StringCopy(&Var2, "NO_LABEL", 16);
			iVar6 = 2;
			iVar7 = 0;
			iVar0 = true;
			break;
		
		case 18:
			StringCopy(&Var2, "NO_LABEL", 16);
			iVar6 = 3;
			iVar7 = 0;
			iVar0 = true;
			break;
		
		case 19:
			StringCopy(&Var2, "NO_LABEL", 16);
			iVar6 = 3;
			iVar7 = 1;
			iVar0 = true;
			break;
		
		case 20:
			StringCopy(&Var2, "NO_LABEL", 16);
			iVar6 = 4;
			iVar7 = 0;
			iVar0 = true;
			break;
		
		case 21:
			StringCopy(&Var2, "NO_LABEL", 16);
			iVar6 = 5;
			iVar7 = 0;
			iVar0 = true;
			break;
		
		case 22:
			StringCopy(&Var2, "NO_LABEL", 16);
			iVar6 = 6;
			iVar7 = 0;
			iVar0 = true;
			break;
		
		case 23:
			StringCopy(&Var2, "LEGS_P0_7_0", 16);
			iVar6 = 7;
			iVar7 = 0;
			iVar1 = 115;
			break;
		
		case 24:
			StringCopy(&Var2, "LEGS_P0_7_1", 16);
			iVar6 = 7;
			iVar7 = 1;
			iVar1 = 115;
			break;
		
		case 25:
			StringCopy(&Var2, "LEGS_P0_7_2", 16);
			iVar6 = 7;
			iVar7 = 2;
			iVar1 = 128;
			break;
		
		case 26:
			StringCopy(&Var2, "LEGS_P0_7_3", 16);
			iVar6 = 7;
			iVar7 = 3;
			iVar1 = 118;
			break;
		
		case 27:
			StringCopy(&Var2, "LEGS_P0_7_4", 16);
			iVar6 = 7;
			iVar7 = 4;
			iVar1 = 125;
			break;
		
		case 28:
			StringCopy(&Var2, "LEGS_P0_7_5", 16);
			iVar6 = 7;
			iVar7 = 5;
			iVar1 = 128;
			break;
		
		case 29:
			StringCopy(&Var2, "LEGS_P0_7_6", 16);
			iVar6 = 7;
			iVar7 = 6;
			iVar1 = 128;
			break;
		
		case 30:
			StringCopy(&Var2, "LEGS_P0_7_7", 16);
			iVar6 = 7;
			iVar7 = 7;
			iVar1 = 125;
			break;
		
		case 31:
			StringCopy(&Var2, "NO_LABEL", 16);
			iVar6 = 8;
			iVar7 = 0;
			iVar0 = true;
			break;
		
		case 32:
			StringCopy(&Var2, "NO_LABEL", 16);
			iVar6 = 9;
			iVar7 = 0;
			iVar0 = true;
			break;
		
		case 33:
			StringCopy(&Var2, "NO_LABEL", 16);
			iVar6 = 10;
			iVar7 = 0;
			iVar0 = true;
			break;
		
		case 34:
			StringCopy(&Var2, "NO_LABEL", 16);
			iVar6 = 11;
			iVar7 = 0;
			iVar0 = true;
			break;
		
		case 35:
			StringCopy(&Var2, "NO_LABEL", 16);
			iVar6 = 11;
			iVar7 = 1;
			iVar0 = true;
			break;
		
		case 36:
			StringCopy(&Var2, "NO_LABEL", 16);
			iVar6 = 11;
			iVar7 = 2;
			iVar0 = true;
			break;
		
		case 37:
			StringCopy(&Var2, "NO_LABEL", 16);
			iVar6 = 11;
			iVar7 = 3;
			iVar0 = true;
			break;
		
		case 38:
			StringCopy(&Var2, "NO_LABEL", 16);
			iVar6 = 11;
			iVar7 = 4;
			iVar0 = true;
			break;
		
		case 39:
			StringCopy(&Var2, "NO_LABEL", 16);
			iVar6 = 11;
			iVar7 = 5;
			iVar0 = true;
			break;
		
		case 40:
			StringCopy(&Var2, "NO_LABEL", 16);
			iVar6 = 12;
			iVar7 = 0;
			iVar0 = true;
			break;
		
		case 41:
			StringCopy(&Var2, "LEGS_P0_13_0", 16);
			iVar6 = 13;
			iVar7 = 0;
			iVar1 = 68;
			break;
		
		case 42:
			StringCopy(&Var2, "LEGS_P0_13_1", 16);
			iVar6 = 13;
			iVar7 = 1;
			iVar1 = 68;
			break;
		
		case 43:
			StringCopy(&Var2, "LEGS_P0_13_2", 16);
			iVar6 = 13;
			iVar7 = 2;
			iVar1 = 68;
			break;
		
		case 44:
			StringCopy(&Var2, "LEGS_P0_13_3", 16);
			iVar6 = 13;
			iVar7 = 3;
			iVar1 = 68;
			break;
		
		case 45:
			StringCopy(&Var2, "LEGS_P0_13_4", 16);
			iVar6 = 13;
			iVar7 = 4;
			iVar1 = 68;
			break;
		
		case 46:
			StringCopy(&Var2, "NO_LABEL", 16);
			iVar6 = 14;
			iVar7 = 0;
			iVar0 = true;
			break;
		
		case 47:
			StringCopy(&Var2, "LEGS_P0_15_0", 16);
			iVar6 = 15;
			iVar7 = 0;
			break;
		
		case 48:
			StringCopy(&Var2, "LEGS_P0_15_1", 16);
			iVar6 = 15;
			iVar7 = 1;
			iVar1 = 550;
			break;
		
		case 49:
			StringCopy(&Var2, "LEGS_P0_15_2", 16);
			iVar6 = 15;
			iVar7 = 2;
			iVar1 = 650;
			break;
		
		case 50:
			StringCopy(&Var2, "LEGS_P0_15_3", 16);
			iVar6 = 15;
			iVar7 = 3;
			iVar1 = 875;
			break;
		
		case 51:
			StringCopy(&Var2, "LEGS_P0_15_4", 16);
			iVar6 = 15;
			iVar7 = 4;
			iVar1 = 820;
			break;
		
		case 52:
			StringCopy(&Var2, "LEGS_P0_15_5", 16);
			iVar6 = 15;
			iVar7 = 5;
			iVar1 = 720;
			break;
		
		case 53:
			StringCopy(&Var2, "LEGS_P0_15_6", 16);
			iVar6 = 15;
			iVar7 = 6;
			iVar1 = 750;
			break;
		
		case 54:
			StringCopy(&Var2, "LEGS_P0_15_7", 16);
			iVar6 = 15;
			iVar7 = 7;
			iVar1 = 850;
			break;
		
		case 55:
			StringCopy(&Var2, "LEGS_P0_16_0", 16);
			iVar6 = 16;
			iVar7 = 0;
			break;
		
		case 56:
			StringCopy(&Var2, "LEGS_P0_16_1", 16);
			iVar6 = 16;
			iVar7 = 1;
			iVar1 = 48;
			break;
		
		case 57:
			StringCopy(&Var2, "LEGS_P0_16_2", 16);
			iVar6 = 16;
			iVar7 = 2;
			iVar1 = 48;
			break;
		
		case 58:
			StringCopy(&Var2, "LEGS_P0_16_3", 16);
			iVar6 = 16;
			iVar7 = 3;
			iVar1 = 38;
			break;
		
		case 59:
			StringCopy(&Var2, "LEGS_P0_16_4", 16);
			iVar6 = 16;
			iVar7 = 4;
			iVar1 = 38;
			break;
		
		case 60:
			StringCopy(&Var2, "LEGS_P0_16_5", 16);
			iVar6 = 16;
			iVar7 = 5;
			iVar1 = 42;
			break;
		
		case 61:
			StringCopy(&Var2, "LEGS_P0_16_6", 16);
			iVar6 = 16;
			iVar7 = 6;
			iVar1 = 58;
			break;
		
		case 62:
			StringCopy(&Var2, "LEGS_P0_16_7", 16);
			iVar6 = 16;
			iVar7 = 7;
			iVar1 = 46;
			break;
		
		case 63:
			StringCopy(&Var2, "LEGS_P0_16_8", 16);
			iVar6 = 16;
			iVar7 = 8;
			iVar1 = 46;
			break;
		
		case 64:
			StringCopy(&Var2, "LEGS_P0_16_9", 16);
			iVar6 = 16;
			iVar7 = 9;
			iVar1 = 46;
			break;
		
		case 65:
			StringCopy(&Var2, "LEGS_P0_16_10", 16);
			iVar6 = 16;
			iVar7 = 10;
			iVar1 = 68;
			break;
		
		case 66:
			StringCopy(&Var2, "LEGS_P0_16_11", 16);
			iVar6 = 16;
			iVar7 = 11;
			iVar1 = 58;
			break;
		
		case 67:
			StringCopy(&Var2, "LEGS_P0_16_12", 16);
			iVar6 = 16;
			iVar7 = 12;
			iVar1 = 50;
			break;
		
		case 68:
			StringCopy(&Var2, "LEGS_P0_16_13", 16);
			iVar6 = 16;
			iVar7 = 13;
			iVar1 = 68;
			break;
		
		case 69:
			StringCopy(&Var2, "LEGS_P0_16_14", 16);
			iVar6 = 16;
			iVar7 = 14;
			iVar1 = 68;
			break;
		
		case 70:
			StringCopy(&Var2, "LEGS_P0_16_15", 16);
			iVar6 = 16;
			iVar7 = 15;
			iVar1 = 42;
			break;
		
		case 71:
			StringCopy(&Var2, "NO_LABEL", 16);
			iVar6 = 17;
			iVar7 = 0;
			iVar0 = true;
			break;
		
		case 72:
			StringCopy(&Var2, "LEGS_P0_18_0", 16);
			iVar6 = 18;
			iVar7 = 0;
			break;
		
		case 73:
			StringCopy(&Var2, "LEGS_P0_18_1", 16);
			iVar6 = 18;
			iVar7 = 1;
			iVar1 = 250;
			break;
		
		case 74:
			StringCopy(&Var2, "LEGS_P0_18_2", 16);
			iVar6 = 18;
			iVar7 = 2;
			iVar1 = 250;
			break;
		
		case 75:
			StringCopy(&Var2, "LEGS_P0_18_3", 16);
			iVar6 = 18;
			iVar7 = 3;
			iVar1 = 290;
			break;
		
		case 76:
			StringCopy(&Var2, "LEGS_P0_18_4", 16);
			iVar6 = 18;
			iVar7 = 4;
			iVar1 = 270;
			break;
		
		case 77:
			StringCopy(&Var2, "LEGS_P0_18_5", 16);
			iVar6 = 18;
			iVar7 = 5;
			iVar1 = 270;
			break;
		
		case 78:
			StringCopy(&Var2, "LEGS_P0_18_6", 16);
			iVar6 = 18;
			iVar7 = 6;
			iVar1 = 15;
			break;
		
		case 79:
			StringCopy(&Var2, "LEGS_P0_18_7", 16);
			iVar6 = 18;
			iVar7 = 7;
			iVar1 = 12;
			break;
		
		case 80:
			StringCopy(&Var2, "NO_LABEL", 16);
			iVar6 = 19;
			iVar7 = 0;
			iVar0 = true;
			break;
		
		case 81:
			StringCopy(&Var2, "LEGS_P0_20_0", 16);
			iVar6 = 20;
			iVar7 = 0;
			break;
		
		case 82:
			StringCopy(&Var2, "LEGS_P0_20_1", 16);
			iVar6 = 20;
			iVar7 = 1;
			iVar1 = 118;
			break;
		
		case 83:
			StringCopy(&Var2, "LEGS_P0_20_2", 16);
			iVar6 = 20;
			iVar7 = 2;
			iVar1 = 110;
			break;
		
		case 84:
			StringCopy(&Var2, "LEGS_P0_21_0", 16);
			iVar6 = 21;
			iVar7 = 0;
			iVar1 = 88;
			break;
		
		case 85:
			StringCopy(&Var2, "LEGS_P0_21_1", 16);
			iVar6 = 21;
			iVar7 = 1;
			iVar1 = 95;
			break;
		
		case 86:
			StringCopy(&Var2, "LEGS_P0_21_2", 16);
			iVar6 = 21;
			iVar7 = 2;
			iVar1 = 95;
			break;
		
		case 87:
			StringCopy(&Var2, "LEGS_P0_21_3", 16);
			iVar6 = 21;
			iVar7 = 3;
			iVar1 = 98;
			break;
		
		case 88:
			StringCopy(&Var2, "LEGS_P0_22_0", 16);
			iVar6 = 22;
			iVar7 = 0;
			iVar1 = 140;
			break;
		
		case 89:
			StringCopy(&Var2, "LEGS_P0_23_0", 16);
			iVar6 = 23;
			iVar7 = 0;
			break;
		
		case 90:
			StringCopy(&Var2, "LEGS_P0_23_1", 16);
			iVar6 = 23;
			iVar7 = 1;
			iVar1 = 150;
			break;
		
		case 91:
			StringCopy(&Var2, "LEGS_P0_23_2", 16);
			iVar6 = 23;
			iVar7 = 2;
			iVar1 = 130;
			break;
		
		case 92:
			StringCopy(&Var2, "NO_LABEL", 16);
			iVar6 = 24;
			iVar7 = 0;
			iVar0 = true;
			break;
		
		case 93:
			StringCopy(&Var2, "NO_LABEL", 16);
			iVar6 = 25;
			iVar7 = 0;
			iVar0 = true;
			break;
		
		case 94:
			StringCopy(&Var2, "NO_LABEL", 16);
			iVar6 = 26;
			iVar7 = 0;
			iVar0 = true;
			break;
		
		case 95:
			StringCopy(&Var2, "LEGS_P0_27_0", 16);
			iVar6 = 27;
			iVar7 = 0;
			break;
		
		case 96:
			StringCopy(&Var2, "LEGS_P0_28_0", 16);
			iVar6 = 28;
			iVar7 = 0;
			iVar1 = 45;
			break;
		
		case 97:
			StringCopy(&Var2, "LEGS_P0_28_1", 16);
			iVar6 = 28;
			iVar7 = 1;
			iVar1 = 48;
			break;
		
		case 98:
			StringCopy(&Var2, "LEGS_P0_28_2", 16);
			iVar6 = 28;
			iVar7 = 2;
			iVar1 = 48;
			break;
		
		case 99:
			StringCopy(&Var2, "LEGS_P0_28_3", 16);
			iVar6 = 28;
			iVar7 = 3;
			iVar1 = 52;
			break;
		
		case 100:
			StringCopy(&Var2, "LEGS_P0_28_4", 16);
			iVar6 = 28;
			iVar7 = 4;
			iVar1 = 52;
			break;
		
		case 101:
			StringCopy(&Var2, "LEGS_P0_28_5", 16);
			iVar6 = 28;
			iVar7 = 5;
			iVar1 = 55;
			break;
		
		case 102:
			StringCopy(&Var2, "LEGS_P0_28_6", 16);
			iVar6 = 28;
			iVar7 = 6;
			iVar1 = 55;
			break;
		
		case 103:
			StringCopy(&Var2, "LEGS_P0_28_7", 16);
			iVar6 = 28;
			iVar7 = 7;
			iVar1 = 55;
			break;
		
		case 104:
			StringCopy(&Var2, "LEGS_P0_28_8", 16);
			iVar6 = 28;
			iVar7 = 8;
			iVar1 = 58;
			break;
		
		case 105:
			StringCopy(&Var2, "LEGS_P0_28_9", 16);
			iVar6 = 28;
			iVar7 = 9;
			iVar1 = 58;
			break;
		
		case 106:
			StringCopy(&Var2, "LEGS_P0_28_10", 16);
			iVar6 = 28;
			iVar7 = 10;
			iVar1 = 60;
			break;
		
		case 107:
			StringCopy(&Var2, "LEGS_P0_28_11", 16);
			iVar6 = 28;
			iVar7 = 11;
			iVar1 = 60;
			break;
		
		case 108:
			StringCopy(&Var2, "LEGS_P0_28_12", 16);
			iVar6 = 28;
			iVar7 = 12;
			iVar1 = 62;
			break;
		
		case 109:
			StringCopy(&Var2, "LEGS_P0_28_13", 16);
			iVar6 = 28;
			iVar7 = 13;
			iVar1 = 62;
			break;
		
		case 110:
			StringCopy(&Var2, "LEGS_P0_28_14", 16);
			iVar6 = 28;
			iVar7 = 14;
			iVar1 = 65;
			break;
		
		case 111:
			StringCopy(&Var2, "LEGS_P0_28_15", 16);
			iVar6 = 28;
			iVar7 = 15;
			iVar1 = 65;
			break;
		
		case 112:
			StringCopy(&Var2, "NO_LABEL", 16);
			iVar6 = 29;
			iVar7 = 0;
			break;
		
		default:
			func_203(iVar10, iParam0, 113);
			return;
			break;
	}
	func_195(&(Global_69518[0 /*14*/]), iVar10, iParam0, &Var2, iVar6, iVar7, iVar1, iVar0, iVar8, iVar9, 0);
}

void func_334(int iParam0)//Position - 0x585D4
{
	if (iParam0 < 60)
	{
		func_336(iParam0);
	}
	else
	{
		func_335(iParam0);
	}
	if (Global_69518[0 /*14*/].f_2 == -1)
	{
		func_203(3, iParam0, 181);
	}
}

void func_335(int iParam0)//Position - 0x58608
{
	int iVar0;
	int iVar1;
	struct<2> Var2;
	int iVar6;
	int iVar7;
	int iVar8;
	int iVar9;
	int iVar10;
	
	iVar0 = false;
	iVar1 = 10;
	iVar6 = 0;
	iVar7 = 0;
	iVar8 = -1;
	iVar9 = 2;
	iVar10 = 3;
	Global_69518[0 /*14*/].f_5 = 0;
	switch (iParam0)
	{
		case 60:
			StringCopy(&Var2, "NO_LABEL", 16);
			iVar6 = 9;
			iVar7 = 0;
			iVar0 = true;
			break;
		
		case 61:
			StringCopy(&Var2, "NO_LABEL", 16);
			iVar6 = 10;
			iVar7 = 0;
			iVar0 = true;
			break;
		
		case 62:
			StringCopy(&Var2, "NO_LABEL", 16);
			iVar6 = 11;
			iVar7 = 0;
			iVar0 = true;
			break;
		
		case 63:
			StringCopy(&Var2, "NO_LABEL", 16);
			iVar6 = 12;
			iVar7 = 0;
			iVar0 = true;
			break;
		
		case 64:
			StringCopy(&Var2, "NO_LABEL", 16);
			iVar6 = 12;
			iVar7 = 1;
			iVar0 = true;
			break;
		
		case 65:
			StringCopy(&Var2, "NO_LABEL", 16);
			iVar6 = 12;
			iVar7 = 2;
			iVar0 = true;
			break;
		
		case 66:
			StringCopy(&Var2, "NO_LABEL", 16);
			iVar6 = 12;
			iVar7 = 3;
			iVar0 = true;
			break;
		
		case 67:
			StringCopy(&Var2, "NO_LABEL", 16);
			iVar6 = 12;
			iVar7 = 4;
			iVar0 = true;
			break;
		
		case 68:
			StringCopy(&Var2, "NO_LABEL", 16);
			iVar6 = 12;
			iVar7 = 5;
			iVar0 = true;
			break;
		
		case 69:
			StringCopy(&Var2, "NO_LABEL", 16);
			iVar6 = 13;
			iVar7 = 0;
			iVar0 = true;
			break;
		
		case 70:
			StringCopy(&Var2, "TORSO_P0_14_0", 16);
			iVar6 = 14;
			iVar7 = 0;
			iVar1 = 120;
			break;
		
		case 71:
			StringCopy(&Var2, "TORSO_P0_14_1", 16);
			iVar6 = 14;
			iVar7 = 1;
			iVar1 = 120;
			break;
		
		case 72:
			StringCopy(&Var2, "TORSO_P0_14_2", 16);
			iVar6 = 14;
			iVar7 = 2;
			iVar1 = 120;
			break;
		
		case 73:
			StringCopy(&Var2, "TORSO_P0_14_3", 16);
			iVar6 = 14;
			iVar7 = 3;
			iVar1 = 120;
			break;
		
		case 74:
			StringCopy(&Var2, "TORSO_P0_14_4", 16);
			iVar6 = 14;
			iVar7 = 4;
			iVar1 = 120;
			break;
		
		case 75:
			StringCopy(&Var2, "TORSO_P0_14_5", 16);
			iVar6 = 14;
			iVar7 = 5;
			iVar1 = 120;
			break;
		
		case 76:
			StringCopy(&Var2, "NO_LABEL", 16);
			iVar6 = 15;
			iVar7 = 0;
			iVar0 = true;
			break;
		
		case 77:
			StringCopy(&Var2, "TORSO_P0_16_0", 16);
			iVar6 = 16;
			iVar7 = 0;
			break;
		
		case 78:
			StringCopy(&Var2, "TORSO_P0_16_1", 16);
			iVar6 = 16;
			iVar7 = 1;
			iVar1 = 20;
			break;
		
		case 79:
			StringCopy(&Var2, "TORSO_P0_16_2", 16);
			iVar6 = 16;
			iVar7 = 2;
			iVar1 = 24;
			break;
		
		case 80:
			StringCopy(&Var2, "TORSO_P0_16_3", 16);
			iVar6 = 16;
			iVar7 = 3;
			iVar1 = 22;
			break;
		
		case 81:
			StringCopy(&Var2, "TORSO_P0_16_4", 16);
			iVar6 = 16;
			iVar7 = 4;
			iVar1 = 25;
			break;
		
		case 82:
			StringCopy(&Var2, "TORSO_P0_16_5", 16);
			iVar6 = 16;
			iVar7 = 5;
			iVar1 = 25;
			break;
		
		case 83:
			StringCopy(&Var2, "TORSO_P0_16_6", 16);
			iVar6 = 16;
			iVar7 = 6;
			iVar1 = 22;
			break;
		
		case 84:
			StringCopy(&Var2, "TORSO_P0_16_7", 16);
			iVar6 = 16;
			iVar7 = 7;
			iVar1 = 27;
			break;
		
		case 85:
			StringCopy(&Var2, "TORSO_P0_17_0", 16);
			iVar6 = 17;
			iVar7 = 0;
			break;
		
		case 86:
			StringCopy(&Var2, "TORSO_P0_17_1", 16);
			iVar6 = 17;
			iVar7 = 1;
			break;
		
		case 87:
			StringCopy(&Var2, "TORSO_P0_17_2", 16);
			iVar6 = 17;
			iVar7 = 2;
			break;
		
		case 88:
			StringCopy(&Var2, "TORSO_P0_17_3", 16);
			iVar6 = 17;
			iVar7 = 3;
			iVar1 = 48;
			break;
		
		case 89:
			StringCopy(&Var2, "TORSO_P0_17_4", 16);
			iVar6 = 17;
			iVar7 = 4;
			iVar1 = 40;
			break;
		
		case 90:
			StringCopy(&Var2, "TORSO_P0_17_5", 16);
			iVar6 = 17;
			iVar7 = 5;
			iVar1 = 45;
			break;
		
		case 91:
			StringCopy(&Var2, "NO_LABEL", 16);
			iVar6 = 18;
			iVar7 = 0;
			iVar0 = true;
			break;
		
		case 92:
			StringCopy(&Var2, "TORSO_P0_19_0", 16);
			iVar6 = 19;
			iVar7 = 0;
			break;
		
		case 93:
			StringCopy(&Var2, "TORSO_P0_19_1", 16);
			iVar6 = 19;
			iVar7 = 1;
			iVar1 = 190;
			break;
		
		case 94:
			StringCopy(&Var2, "TORSO_P0_19_2", 16);
			iVar6 = 19;
			iVar7 = 2;
			iVar1 = 190;
			break;
		
		case 95:
			StringCopy(&Var2, "TORSO_P0_19_3", 16);
			iVar6 = 19;
			iVar7 = 3;
			iVar1 = 190;
			break;
		
		case 96:
			StringCopy(&Var2, "TORSO_P0_19_4", 16);
			iVar6 = 19;
			iVar7 = 4;
			iVar1 = 210;
			break;
		
		case 97:
			StringCopy(&Var2, "TORSO_P0_20_0", 16);
			iVar6 = 20;
			iVar7 = 0;
			break;
		
		case 98:
			StringCopy(&Var2, "TORSO_P0_20_1", 16);
			iVar6 = 20;
			iVar7 = 1;
			iVar1 = 115;
			break;
		
		case 99:
			StringCopy(&Var2, "TORSO_P0_20_2", 16);
			iVar6 = 20;
			iVar7 = 2;
			iVar1 = 55;
			break;
		
		case 100:
			StringCopy(&Var2, "TORSO_P0_20_3", 16);
			iVar6 = 20;
			iVar7 = 3;
			iVar1 = 110;
			break;
		
		case 101:
			StringCopy(&Var2, "TORSO_P0_20_4", 16);
			iVar6 = 20;
			iVar7 = 4;
			iVar1 = 99;
			break;
		
		case 102:
			StringCopy(&Var2, "TORSO_P0_20_5", 16);
			iVar6 = 20;
			iVar7 = 5;
			iVar1 = 49;
			break;
		
		case 103:
			StringCopy(&Var2, "TORSO_P0_20_6", 16);
			iVar6 = 20;
			iVar7 = 6;
			iVar1 = 120;
			break;
		
		case 104:
			StringCopy(&Var2, "TORSO_P0_20_7", 16);
			iVar6 = 20;
			iVar7 = 7;
			iVar1 = 45;
			break;
		
		case 105:
			StringCopy(&Var2, "TORSO_P0_20_8", 16);
			iVar6 = 20;
			iVar7 = 8;
			iVar1 = 115;
			break;
		
		case 106:
			StringCopy(&Var2, "TORSO_P0_20_9", 16);
			iVar6 = 20;
			iVar7 = 9;
			iVar1 = 105;
			break;
		
		case 107:
			StringCopy(&Var2, "TORSO_P0_20_10", 16);
			iVar6 = 20;
			iVar7 = 10;
			iVar1 = 90;
			break;
		
		case 108:
			StringCopy(&Var2, "TORSO_P0_20_11", 16);
			iVar6 = 20;
			iVar7 = 11;
			iVar1 = 95;
			break;
		
		case 109:
			StringCopy(&Var2, "TORSO_P0_20_12", 16);
			iVar6 = 20;
			iVar7 = 12;
			iVar1 = 39;
			break;
		
		case 110:
			StringCopy(&Var2, "TORSO_P0_20_13", 16);
			iVar6 = 20;
			iVar7 = 13;
			iVar1 = 95;
			break;
		
		case 111:
			StringCopy(&Var2, "TORSO_P0_20_14", 16);
			iVar6 = 20;
			iVar7 = 14;
			iVar1 = 35;
			break;
		
		case 112:
			StringCopy(&Var2, "TORSO_P0_20_15", 16);
			iVar6 = 20;
			iVar7 = 15;
			iVar1 = 95;
			break;
		
		case 113:
			StringCopy(&Var2, "TORSO_P0_21_0", 16);
			iVar6 = 21;
			iVar7 = 0;
			iVar1 = 88;
			break;
		
		case 114:
			StringCopy(&Var2, "TORSO_P0_21_1", 16);
			iVar6 = 21;
			iVar7 = 1;
			iVar1 = 60;
			break;
		
		case 115:
			StringCopy(&Var2, "TORSO_P0_21_2", 16);
			iVar6 = 21;
			iVar7 = 2;
			iVar1 = 70;
			break;
		
		case 116:
			StringCopy(&Var2, "TORSO_P0_21_3", 16);
			iVar6 = 21;
			iVar7 = 3;
			iVar1 = 80;
			break;
		
		case 117:
			StringCopy(&Var2, "TORSO_P0_21_4", 16);
			iVar6 = 21;
			iVar7 = 4;
			iVar1 = 90;
			break;
		
		case 118:
			StringCopy(&Var2, "TORSO_P0_21_5", 16);
			iVar6 = 21;
			iVar7 = 5;
			iVar1 = 80;
			break;
		
		case 119:
			StringCopy(&Var2, "TORSO_P0_21_6", 16);
			iVar6 = 21;
			iVar7 = 6;
			iVar1 = 70;
			break;
		
		case 120:
			StringCopy(&Var2, "TORSO_P0_21_7", 16);
			iVar6 = 21;
			iVar7 = 7;
			iVar1 = 95;
			break;
		
		case 121:
			StringCopy(&Var2, "TORSO_P0_21_8", 16);
			iVar6 = 21;
			iVar7 = 8;
			iVar1 = 105;
			break;
		
		case 122:
			StringCopy(&Var2, "TORSO_P0_21_9", 16);
			iVar6 = 21;
			iVar7 = 9;
			iVar1 = 95;
			break;
		
		case 123:
			StringCopy(&Var2, "TORSO_P0_21_10", 16);
			iVar6 = 21;
			iVar7 = 10;
			iVar1 = 110;
			break;
		
		case 124:
			StringCopy(&Var2, "TORSO_P0_21_11", 16);
			iVar6 = 21;
			iVar7 = 11;
			iVar1 = 98;
			break;
		
		case 125:
			StringCopy(&Var2, "TORSO_P0_21_12", 16);
			iVar6 = 21;
			iVar7 = 12;
			iVar1 = 88;
			break;
		
		case 126:
			StringCopy(&Var2, "TORSO_P0_21_13", 16);
			iVar6 = 21;
			iVar7 = 13;
			iVar1 = 98;
			break;
		
		case 127:
			StringCopy(&Var2, "TORSO_P0_21_14", 16);
			iVar6 = 21;
			iVar7 = 14;
			iVar1 = 110;
			break;
		
		case 128:
			StringCopy(&Var2, "TORSO_P0_21_15", 16);
			iVar6 = 21;
			iVar7 = 15;
			iVar1 = 98;
			break;
		
		case 129:
			StringCopy(&Var2, "TORSO_P0_22_0", 16);
			iVar6 = 22;
			iVar7 = 0;
			break;
		
		case 130:
			StringCopy(&Var2, "TORSO_P0_22_1", 16);
			iVar6 = 22;
			iVar7 = 1;
			iVar1 = 4950;
			break;
		
		case 131:
			StringCopy(&Var2, "TORSO_P0_22_2", 16);
			iVar6 = 22;
			iVar7 = 2;
			iVar1 = 4195;
			break;
		
		case 132:
			StringCopy(&Var2, "TORSO_P0_22_3", 16);
			iVar6 = 22;
			iVar7 = 3;
			iVar1 = 3195;
			break;
		
		case 133:
			StringCopy(&Var2, "TORSO_P0_22_4", 16);
			iVar6 = 22;
			iVar7 = 4;
			iVar1 = 2950;
			break;
		
		case 134:
			StringCopy(&Var2, "TORSO_P0_22_5", 16);
			iVar6 = 22;
			iVar7 = 5;
			iVar1 = 3950;
			break;
		
		case 135:
			StringCopy(&Var2, "TORSO_P0_23_0", 16);
			iVar6 = 23;
			iVar7 = 0;
			iVar1 = 3200;
			break;
		
		case 136:
			StringCopy(&Var2, "TORSO_P0_23_1", 16);
			iVar6 = 23;
			iVar7 = 1;
			iVar1 = 3200;
			break;
		
		case 137:
			StringCopy(&Var2, "TORSO_P0_23_2", 16);
			iVar6 = 23;
			iVar7 = 2;
			iVar1 = 3200;
			break;
		
		case 138:
			StringCopy(&Var2, "TORSO_P0_23_3", 16);
			iVar6 = 23;
			iVar7 = 3;
			iVar1 = 3200;
			break;
		
		case 139:
			StringCopy(&Var2, "TORSO_P0_23_4", 16);
			iVar6 = 23;
			iVar7 = 4;
			iVar1 = 3200;
			break;
		
		case 140:
			StringCopy(&Var2, "TORSO_P0_23_5", 16);
			iVar6 = 23;
			iVar7 = 5;
			iVar1 = 3200;
			break;
		
		case 141:
			StringCopy(&Var2, "TORSO_P0_23_6", 16);
			iVar6 = 23;
			iVar7 = 6;
			iVar1 = 3200;
			break;
		
		case 142:
			StringCopy(&Var2, "TORSO_P0_23_7", 16);
			iVar6 = 23;
			iVar7 = 7;
			iVar1 = 3200;
			break;
		
		case 143:
			StringCopy(&Var2, "TORSO_P0_23_8", 16);
			iVar6 = 23;
			iVar7 = 8;
			iVar1 = 3200;
			break;
		
		case 144:
			StringCopy(&Var2, "TORSO_P0_23_9", 16);
			iVar6 = 23;
			iVar7 = 9;
			iVar1 = 3200;
			break;
		
		case 145:
			StringCopy(&Var2, "TORSO_P0_23_10", 16);
			iVar6 = 23;
			iVar7 = 10;
			iVar1 = 3200;
			break;
		
		case 146:
			StringCopy(&Var2, "TORSO_P0_23_11", 16);
			iVar6 = 23;
			iVar7 = 11;
			iVar1 = 3200;
			break;
		
		case 147:
			StringCopy(&Var2, "TORSO_P0_23_12", 16);
			iVar6 = 23;
			iVar7 = 12;
			iVar1 = 3200;
			break;
		
		case 148:
			StringCopy(&Var2, "TORSO_P0_23_13", 16);
			iVar6 = 23;
			iVar7 = 13;
			iVar1 = 3200;
			break;
		
		case 149:
			StringCopy(&Var2, "TORSO_P0_23_14", 16);
			iVar6 = 23;
			iVar7 = 14;
			iVar1 = 3200;
			break;
		
		case 150:
			StringCopy(&Var2, "TORSO_P0_23_15", 16);
			iVar6 = 23;
			iVar7 = 15;
			iVar1 = 3200;
			break;
		
		case 151:
			StringCopy(&Var2, "TORSO_P0_24_0", 16);
			iVar6 = 24;
			iVar7 = 0;
			iVar1 = 1350;
			break;
		
		case 152:
			StringCopy(&Var2, "TORSO_P0_24_1", 16);
			iVar6 = 24;
			iVar7 = 1;
			iVar1 = 1400;
			break;
		
		case 153:
			StringCopy(&Var2, "TORSO_P0_24_2", 16);
			iVar6 = 24;
			iVar7 = 2;
			iVar1 = 1200;
			break;
		
		case 154:
			StringCopy(&Var2, "TORSO_P0_24_3", 16);
			iVar6 = 24;
			iVar7 = 3;
			iVar1 = 1250;
			break;
		
		case 155:
			StringCopy(&Var2, "TORSO_P0_24_4", 16);
			iVar6 = 24;
			iVar7 = 4;
			iVar1 = 1350;
			break;
		
		case 156:
			StringCopy(&Var2, "TORSO_P0_24_5", 16);
			iVar6 = 24;
			iVar7 = 5;
			iVar1 = 1300;
			break;
		
		case 157:
			StringCopy(&Var2, "TORSO_P0_24_6", 16);
			iVar6 = 24;
			iVar7 = 6;
			iVar1 = 1380;
			break;
		
		case 158:
			StringCopy(&Var2, "TORSO_P0_24_7", 16);
			iVar6 = 24;
			iVar7 = 7;
			iVar1 = 1340;
			break;
		
		case 159:
			StringCopy(&Var2, "TORSO_P0_24_8", 16);
			iVar6 = 24;
			iVar7 = 8;
			iVar1 = 1380;
			break;
		
		case 160:
			StringCopy(&Var2, "TORSO_P0_24_9", 16);
			iVar6 = 24;
			iVar7 = 9;
			iVar1 = 1250;
			break;
		
		case 161:
			StringCopy(&Var2, "TORSO_P0_25_0", 16);
			iVar6 = 25;
			iVar7 = 0;
			iVar1 = 840;
			break;
		
		case 162:
			StringCopy(&Var2, "TORSO_P0_25_1", 16);
			iVar6 = 25;
			iVar7 = 1;
			iVar1 = 840;
			break;
		
		case 163:
			StringCopy(&Var2, "TORSO_P0_25_2", 16);
			iVar6 = 25;
			iVar7 = 2;
			iVar1 = 840;
			break;
		
		case 164:
			StringCopy(&Var2, "TORSO_P0_25_3", 16);
			iVar6 = 25;
			iVar7 = 3;
			iVar1 = 840;
			break;
		
		case 165:
			StringCopy(&Var2, "TORSO_P0_25_4", 16);
			iVar6 = 25;
			iVar7 = 4;
			iVar1 = 840;
			break;
		
		case 166:
			StringCopy(&Var2, "TORSO_P0_25_5", 16);
			iVar6 = 25;
			iVar7 = 5;
			iVar1 = 840;
			break;
		
		case 167:
			StringCopy(&Var2, "TORSO_P0_25_6", 16);
			iVar6 = 25;
			iVar7 = 6;
			iVar1 = 840;
			break;
		
		case 168:
			StringCopy(&Var2, "TORSO_P0_25_7", 16);
			iVar6 = 25;
			iVar7 = 7;
			iVar1 = 840;
			break;
		
		case 169:
			StringCopy(&Var2, "TORSO_P0_26_0", 16);
			iVar6 = 26;
			iVar7 = 0;
			break;
		
		case 170:
			StringCopy(&Var2, "NO_LABEL", 16);
			iVar6 = 27;
			iVar7 = 0;
			iVar0 = true;
			break;
		
		case 171:
			StringCopy(&Var2, "TORSO_P0_28_0", 16);
			iVar6 = 28;
			iVar7 = 0;
			break;
		
		case 172:
			StringCopy(&Var2, "TORSO_P0_28_1", 16);
			iVar6 = 28;
			iVar7 = 1;
			iVar1 = 130;
			break;
		
		case 173:
			StringCopy(&Var2, "TORSO_P0_28_2", 16);
			iVar6 = 28;
			iVar7 = 2;
			iVar1 = 110;
			break;
		
		case 174:
			StringCopy(&Var2, "TORSO_P0_29_0", 16);
			iVar6 = 29;
			iVar7 = 0;
			iVar0 = true;
			break;
		
		case 175:
			StringCopy(&Var2, "TORSO_P0_30_0", 16);
			iVar6 = 30;
			iVar7 = 0;
			iVar1 = 290;
			break;
		
		case 176:
			StringCopy(&Var2, "TORSO_P0_30_1", 16);
			iVar6 = 30;
			iVar7 = 1;
			iVar1 = 320;
			break;
		
		case 177:
			StringCopy(&Var2, "TORSO_P0_31_0", 16);
			iVar6 = 31;
			iVar7 = 0;
			iVar1 = 59;
			break;
		
		case 178:
			StringCopy(&Var2, "TORSO_P0_31_1", 16);
			iVar6 = 31;
			iVar7 = 1;
			iVar1 = 55;
			break;
		
		case 179:
			StringCopy(&Var2, "TORSO_P0_31_2", 16);
			iVar6 = 31;
			iVar7 = 2;
			iVar1 = 59;
			break;
		
		case 180:
			StringCopy(&Var2, "TORSO_P0_31_3", 16);
			iVar6 = 31;
			iVar7 = 3;
			iVar1 = 49;
			break;
		
		default:
			return;
			break;
	}
	func_195(&(Global_69518[0 /*14*/]), iVar10, iParam0, &Var2, iVar6, iVar7, iVar1, iVar0, iVar8, iVar9, 0);
}

void func_336(int iParam0)//Position - 0x59414
{
	int iVar0;
	int iVar1;
	struct<2> Var2;
	int iVar6;
	int iVar7;
	int iVar8;
	int iVar9;
	int iVar10;
	
	iVar0 = false;
	iVar1 = 10;
	iVar6 = 0;
	iVar7 = 0;
	iVar8 = -1;
	iVar9 = 2;
	iVar10 = 3;
	Global_69518[0 /*14*/].f_5 = 0;
	switch (iParam0)
	{
		case 0:
			StringCopy(&Var2, "TORSO_P0_0_0", 16);
			iVar6 = 0;
			iVar7 = 0;
			break;
		
		case 1:
			StringCopy(&Var2, "TORSO_P0_0_0", 16);
			iVar6 = 0;
			iVar7 = 1;
			break;
		
		case 2:
			StringCopy(&Var2, "TORSO_P0_0_2", 16);
			iVar6 = 0;
			iVar7 = 2;
			iVar1 = 3500;
			break;
		
		case 3:
			StringCopy(&Var2, "TORSO_P0_0_3", 16);
			iVar6 = 0;
			iVar7 = 3;
			break;
		
		case 4:
			StringCopy(&Var2, "TORSO_P0_0_4", 16);
			iVar6 = 0;
			iVar7 = 4;
			break;
		
		case 5:
			StringCopy(&Var2, "TORSO_P0_0_5", 16);
			iVar6 = 0;
			iVar7 = 5;
			break;
		
		case 6:
			StringCopy(&Var2, "TORSO_P0_0_6", 16);
			iVar6 = 0;
			iVar7 = 6;
			break;
		
		case 7:
			StringCopy(&Var2, "TORSO_P0_0_7", 16);
			iVar6 = 0;
			iVar7 = 7;
			break;
		
		case 8:
			StringCopy(&Var2, "TORSO_P0_0_8", 16);
			iVar6 = 0;
			iVar7 = 8;
			break;
		
		case 9:
			StringCopy(&Var2, "TORSO_P0_0_9", 16);
			iVar6 = 0;
			iVar7 = 9;
			break;
		
		case 10:
			StringCopy(&Var2, "TORSO_P0_0_10", 16);
			iVar6 = 0;
			iVar7 = 10;
			break;
		
		case 11:
			StringCopy(&Var2, "TORSO_P0_0_11", 16);
			iVar6 = 0;
			iVar7 = 11;
			break;
		
		case 12:
			StringCopy(&Var2, "TORSO_P0_0_12", 16);
			iVar6 = 0;
			iVar7 = 12;
			break;
		
		case 13:
			StringCopy(&Var2, "TORSO_P0_0_13", 16);
			iVar6 = 0;
			iVar7 = 13;
			break;
		
		case 14:
			StringCopy(&Var2, "TORSO_P0_0_14", 16);
			iVar6 = 0;
			iVar7 = 14;
			break;
		
		case 15:
			StringCopy(&Var2, "TORSO_P0_0_15", 16);
			iVar6 = 0;
			iVar7 = 15;
			break;
		
		case 16:
			StringCopy(&Var2, "NO_LABEL", 16);
			iVar6 = 1;
			iVar7 = 0;
			iVar0 = true;
			break;
		
		case 17:
			StringCopy(&Var2, "NO_LABEL", 16);
			iVar6 = 2;
			iVar7 = 0;
			iVar1 = 20;
			break;
		
		case 18:
			StringCopy(&Var2, "NO_LABEL", 16);
			iVar6 = 2;
			iVar7 = 1;
			iVar1 = 18;
			break;
		
		case 19:
			StringCopy(&Var2, "NO_LABEL", 16);
			iVar6 = 2;
			iVar7 = 2;
			iVar1 = 22;
			break;
		
		case 20:
			StringCopy(&Var2, "NO_LABEL", 16);
			iVar6 = 2;
			iVar7 = 3;
			iVar1 = 25;
			break;
		
		case 21:
			StringCopy(&Var2, "TORSO_P0_2_4", 16);
			iVar6 = 2;
			iVar7 = 4;
			iVar1 = 19;
			break;
		
		case 22:
			StringCopy(&Var2, "TORSO_P0_2_5", 16);
			iVar6 = 2;
			iVar7 = 5;
			iVar1 = 20;
			break;
		
		case 23:
			StringCopy(&Var2, "TORSO_P0_2_6", 16);
			iVar6 = 2;
			iVar7 = 6;
			iVar1 = 22;
			break;
		
		case 24:
			StringCopy(&Var2, "TORSO_P0_2_7", 16);
			iVar6 = 2;
			iVar7 = 7;
			iVar1 = 18;
			break;
		
		case 25:
			StringCopy(&Var2, "TORSO_P0_2_8", 16);
			iVar6 = 2;
			iVar7 = 8;
			iVar1 = 39;
			break;
		
		case 26:
			StringCopy(&Var2, "TORSO_P0_2_9", 16);
			iVar6 = 2;
			iVar7 = 9;
			iVar1 = 32;
			break;
		
		case 27:
			StringCopy(&Var2, "TORSO_P0_2_10", 16);
			iVar6 = 2;
			iVar7 = 10;
			iVar1 = 35;
			break;
		
		case 28:
			StringCopy(&Var2, "TORSO_P0_2_11", 16);
			iVar6 = 2;
			iVar7 = 11;
			iVar1 = 35;
			break;
		
		case 29:
			StringCopy(&Var2, "TORSO_P0_2_12", 16);
			iVar6 = 2;
			iVar7 = 12;
			iVar1 = 210;
			break;
		
		case 30:
			StringCopy(&Var2, "TORSO_P0_2_13", 16);
			iVar6 = 2;
			iVar7 = 13;
			iVar1 = 250;
			break;
		
		case 31:
			StringCopy(&Var2, "TORSO_P0_2_14", 16);
			iVar6 = 2;
			iVar7 = 14;
			iVar1 = 290;
			break;
		
		case 32:
			StringCopy(&Var2, "TORSO_P0_2_15", 16);
			iVar6 = 2;
			iVar7 = 15;
			iVar1 = 310;
			break;
		
		case 33:
			StringCopy(&Var2, "NO_LABEL", 16);
			iVar6 = 3;
			iVar7 = 0;
			iVar0 = true;
			break;
		
		case 34:
			StringCopy(&Var2, "NO_LABEL", 16);
			iVar6 = 3;
			iVar7 = 1;
			iVar0 = true;
			break;
		
		case 35:
			StringCopy(&Var2, "NO_LABEL", 16);
			iVar6 = 4;
			iVar7 = 0;
			iVar0 = true;
			break;
		
		case 36:
			StringCopy(&Var2, "NO_LABEL", 16);
			iVar6 = 5;
			iVar7 = 0;
			iVar0 = true;
			break;
		
		case 37:
			StringCopy(&Var2, "NO_LABEL", 16);
			iVar6 = 6;
			iVar7 = 0;
			iVar0 = true;
			break;
		
		case 38:
			StringCopy(&Var2, "TORSO_P0_7_0", 16);
			iVar6 = 7;
			iVar7 = 0;
			iVar1 = 150;
			break;
		
		case 39:
			StringCopy(&Var2, "TORSO_P0_7_1", 16);
			iVar6 = 7;
			iVar7 = 1;
			iVar1 = 160;
			break;
		
		case 40:
			StringCopy(&Var2, "TORSO_P0_7_2", 16);
			iVar6 = 7;
			iVar7 = 2;
			iVar1 = 150;
			break;
		
		case 41:
			StringCopy(&Var2, "TORSO_P0_7_3", 16);
			iVar6 = 7;
			iVar7 = 3;
			iVar1 = 150;
			break;
		
		case 42:
			StringCopy(&Var2, "TORSO_P0_7_4", 16);
			iVar6 = 7;
			iVar7 = 4;
			iVar1 = 160;
			break;
		
		case 43:
			StringCopy(&Var2, "TORSO_P0_7_5", 16);
			iVar6 = 7;
			iVar7 = 5;
			iVar1 = 160;
			break;
		
		case 44:
			StringCopy(&Var2, "TORSO_P0_8_0", 16);
			iVar6 = 8;
			iVar7 = 0;
			break;
		
		case 45:
			StringCopy(&Var2, "TORSO_P0_8_1", 16);
			iVar6 = 8;
			iVar7 = 1;
			iVar1 = 52;
			break;
		
		case 46:
			StringCopy(&Var2, "TORSO_P0_8_2", 16);
			iVar6 = 8;
			iVar7 = 2;
			iVar1 = 52;
			break;
		
		case 47:
			StringCopy(&Var2, "TORSO_P0_8_3", 16);
			iVar6 = 8;
			iVar7 = 3;
			iVar1 = 55;
			break;
		
		case 48:
			StringCopy(&Var2, "TORSO_P0_8_4", 16);
			iVar6 = 8;
			iVar7 = 4;
			iVar1 = 55;
			break;
		
		case 49:
			StringCopy(&Var2, "TORSO_P0_8_5", 16);
			iVar6 = 8;
			iVar7 = 5;
			iVar1 = 58;
			break;
		
		case 50:
			StringCopy(&Var2, "TORSO_P0_8_6", 16);
			iVar6 = 8;
			iVar7 = 6;
			iVar1 = 58;
			break;
		
		case 51:
			StringCopy(&Var2, "TORSO_P0_8_7", 16);
			iVar6 = 8;
			iVar7 = 7;
			iVar1 = 62;
			break;
		
		case 52:
			StringCopy(&Var2, "TORSO_P0_8_8", 16);
			iVar6 = 8;
			iVar7 = 8;
			iVar1 = 65;
			break;
		
		case 53:
			StringCopy(&Var2, "TORSO_P0_8_9", 16);
			iVar6 = 8;
			iVar7 = 9;
			iVar1 = 65;
			break;
		
		case 54:
			StringCopy(&Var2, "TORSO_P0_8_10", 16);
			iVar6 = 8;
			iVar7 = 10;
			iVar1 = 68;
			break;
		
		case 55:
			StringCopy(&Var2, "TORSO_P0_8_11", 16);
			iVar6 = 8;
			iVar7 = 11;
			iVar1 = 68;
			break;
		
		case 56:
			StringCopy(&Var2, "TORSO_P0_8_12", 16);
			iVar6 = 8;
			iVar7 = 12;
			iVar1 = 55;
			break;
		
		case 57:
			StringCopy(&Var2, "TORSO_P0_8_13", 16);
			iVar6 = 8;
			iVar7 = 13;
			iVar1 = 62;
			break;
		
		case 58:
			StringCopy(&Var2, "TORSO_P0_8_14", 16);
			iVar6 = 8;
			iVar7 = 14;
			iVar1 = 58;
			break;
		
		case 59:
			StringCopy(&Var2, "TORSO_P0_8_15", 16);
			iVar6 = 8;
			iVar7 = 15;
			iVar1 = 58;
			break;
		
		default:
			return;
			break;
	}
	func_195(&(Global_69518[0 /*14*/]), iVar10, iParam0, &Var2, iVar6, iVar7, iVar1, iVar0, iVar8, iVar9, 0);
}

void func_337(int iParam0)//Position - 0x59AD2
{
	int iVar0;
	int iVar1;
	struct<2> Var2;
	int iVar6;
	int iVar7;
	int iVar8;
	int iVar9;
	int iVar10;
	
	iVar0 = false;
	iVar1 = 10;
	iVar6 = 0;
	iVar7 = 0;
	iVar8 = -1;
	iVar9 = 2;
	iVar10 = 2;
	Global_69518[0 /*14*/].f_5 = 0;
	switch (iParam0)
	{
		case 0:
			StringCopy(&Var2, "HAIR_P0_0_0", 16);
			iVar6 = 0;
			iVar7 = 0;
			break;
		
		case 1:
			StringCopy(&Var2, "HAIR_P0_1_0", 16);
			iVar6 = 1;
			iVar7 = 0;
			break;
		
		case 2:
			StringCopy(&Var2, "HAIR_P0_2_0", 16);
			iVar6 = 2;
			iVar7 = 0;
			break;
		
		case 3:
			StringCopy(&Var2, "HAIR_P0_3_0", 16);
			iVar6 = 3;
			iVar7 = 0;
			break;
		
		case 4:
			StringCopy(&Var2, "HAIR_P0_4_0", 16);
			iVar6 = 4;
			iVar7 = 0;
			break;
		
		case 5:
			StringCopy(&Var2, "NO_LABEL", 16);
			iVar6 = 5;
			iVar7 = 0;
			break;
		
		default:
			func_203(iVar10, iParam0, 6);
			return;
			break;
	}
	func_195(&(Global_69518[0 /*14*/]), iVar10, iParam0, &Var2, iVar6, iVar7, iVar1, iVar0, iVar8, iVar9, 0);
}

void func_338(int iParam0)//Position - 0x59BBD
{
	int iVar0;
	int iVar1;
	struct<2> Var2;
	int iVar6;
	int iVar7;
	int iVar8;
	int iVar9;
	int iVar10;
	
	iVar0 = false;
	iVar1 = 10;
	iVar6 = 0;
	iVar7 = 0;
	iVar8 = -1;
	iVar9 = 2;
	iVar10 = 0;
	Global_69518[0 /*14*/].f_5 = 0;
	switch (iParam0)
	{
		case 0:
			StringCopy(&Var2, "NO_LABEL", 16);
			iVar6 = 0;
			iVar7 = 0;
			break;
		
		case 1:
			StringCopy(&Var2, "NO_LABEL", 16);
			iVar6 = 0;
			iVar7 = 1;
			break;
		
		case 2:
			StringCopy(&Var2, "NO_LABEL", 16);
			iVar6 = 0;
			iVar7 = 2;
			break;
		
		case 3:
			StringCopy(&Var2, "NO_LABEL", 16);
			iVar6 = 0;
			iVar7 = 3;
			break;
		
		case 4:
			StringCopy(&Var2, "NO_LABEL", 16);
			iVar6 = 0;
			iVar7 = 4;
			break;
		
		case 5:
			StringCopy(&Var2, "NO_LABEL", 16);
			iVar6 = 0;
			iVar7 = 5;
			break;
		
		case 6:
			StringCopy(&Var2, "NO_LABEL", 16);
			iVar6 = 0;
			iVar7 = 6;
			break;
		
		default:
			func_203(iVar10, iParam0, 7);
			return;
			break;
	}
	func_195(&(Global_69518[0 /*14*/]), iVar10, iParam0, &Var2, iVar6, iVar7, iVar1, iVar0, iVar8, iVar9, 0);
}

int func_339(int iParam0)//Position - 0x59CBA
{
	switch (iParam0)
	{
		case joaat("player_zero"):
			return 0;
			break;
		
		case joaat("player_one"):
			return 1;
			break;
		
		case joaat("player_two"):
			return 2;
			break;
		
		default:
			break;
	}
	return 145;
}

bool func_340(int iParam0, int iParam1, int iParam2, int iParam3, int iParam4, int iParam5, int iParam6, int iParam7, int iParam8, int iParam9, int iParam10, int iParam11, int iParam12, int iParam13)//Position - 0x59CF5
{
	int iVar0;
	int iVar1;
	int iVar2;
	int iVar3;
	int iVar4;
	int iVar5;
	int iVar6;
	int iVar7;
	int iVar8;
	int iVar9;
	int iVar10;
	var uVar11;
	var uVar28;
	var uVar38;
	struct<14> Var55;
	var uVar69;
	
	if (ped::is_ped_injured(iParam0) || iParam2 == -99)
	{
		return false;
	}
	Global_69517++;
	iVar5 = -99;
	iVar6 = -99;
	iVar7 = -99;
	iVar8 = -99;
	iVar9 = -99;
	iVar10 = entity::get_entity_model(iParam0);
	if (iParam5 == 0)
	{
		Global_69518[1 /*14*/] = { func_283(iVar10, iParam1, iParam2) };
		if (!func_191(iParam3))
		{
			Global_69517 = (Global_69517 - 1);
			return false;
		}
		func_354(iParam1);
	}
	if (iParam1 == 12)
	{
		if (iParam7 == 1)
		{
			if (iVar10 == joaat("player_one"))
			{
				iVar5 = func_159(iParam0, 8);
				if (iVar5 != 9)
				{
					iVar5 = -99;
				}
			}
			iVar6 = func_159(iParam0, 9);
			if (iVar10 == joaat("player_zero"))
			{
				if (iVar6 >= 9 && iVar6 <= 14)
				{
				}
				else
				{
					iVar6 = -99;
				}
			}
			else if (iVar10 == joaat("player_one"))
			{
				if (iVar6 >= 5 && iVar6 <= 10)
				{
				}
				else
				{
					iVar6 = -99;
				}
			}
			else if (iVar10 == joaat("player_two"))
			{
				if ((iVar6 >= 9 && iVar6 <= 14) || (iVar6 >= 15 && iVar6 <= 16))
				{
				}
				else
				{
					iVar6 = -99;
				}
			}
			iVar7 = func_174(iParam0, 1);
			if (!func_97(iVar10, 14, iVar7, -1))
			{
				iVar7 = -99;
			}
			iVar8 = func_174(iParam0, 0);
			if (!func_96(iVar10, 14, iVar8, -1) && !func_95(iVar10, 14, iVar8, -1))
			{
				iVar8 = -99;
			}
			if (iVar10 == joaat("player_one"))
			{
				iVar9 = func_174(iParam0, 2);
			}
		}
		ped::clear_all_ped_props(iParam0);
		uVar11 = 15;
		if (iParam5 == 1)
		{
			uVar11 = { Global_69561 };
		}
		else
		{
			uVar11 = { func_182(iVar10, iParam2) };
		}
		iVar0 = 0;
		while (iVar0 <= 14)
		{
			if (uVar11[iVar0] != -99)
			{
				Global_69518[1 /*14*/] = { func_283(iVar10, iVar0, uVar11[iVar0]) };
				if (gameplay::is_bit_set(Global_69518[1 /*14*/].f_6, 0))
				{
					if (iVar0 == 13)
					{
						uVar28 = 9;
						if (iParam5 == 1)
						{
							uVar28 = { Global_69578 };
						}
						else
						{
							uVar28 = { func_178(iVar10, uVar11[iVar0]) };
						}
						iVar1 = 0;
						while (iVar1 <= 8)
						{
							Global_69518[1 /*14*/] = { func_283(iVar10, 14, uVar28[iVar1]) };
							func_177(iParam0, Global_69518[1 /*14*/].f_12, Global_69518[1 /*14*/].f_3, Global_69518[1 /*14*/].f_4);
							func_354(14);
							if (Global_69517 == 1)
							{
								iVar2 = 0;
								while (iVar2 < 15)
								{
									iVar3 = func_346(iParam0, iVar10, 14, uVar28[iVar1], iVar2, 0);
									if (iVar3 != -99)
									{
										func_340(iParam0, iVar2, iVar3, 0, -1, 0, 0, 0, -1, -1, -1, 0, 0, 0);
									}
									iVar2++;
								}
							}
							iVar1++;
						}
					}
					else if (iVar0 != 14 && iVar0 != 12)
					{
						if ((iVar10 == joaat("player_one") && iVar0 == 2) && uVar11[iVar0] == 20)
						{
							func_345(iVar10, 2, 20, &iVar4);
						}
						if (iParam4 == -1)
						{
							ped::set_ped_component_variation(iParam0, func_181(iVar0), Global_69518[1 /*14*/].f_3, Global_69518[1 /*14*/].f_4, ped::get_ped_palette_variation(iParam0, func_181(iVar0)));
						}
						else
						{
							ped::set_ped_component_variation(iParam0, func_181(iVar0), Global_69518[1 /*14*/].f_3, Global_69518[1 /*14*/].f_4, iParam4);
						}
						func_354(iVar0);
						if (Global_69517 == 1)
						{
							iVar2 = 0;
							while (iVar2 < 15)
							{
								iVar3 = func_346(iParam0, iVar10, iVar0, uVar11[iVar0], iVar2, 0);
								if (iVar3 != -99)
								{
									func_340(iParam0, iVar2, iVar3, 0, -1, 0, 0, 0, -1, -1, -1, 0, 0, 0);
								}
								iVar2++;
							}
						}
					}
				}
			}
			else if (iVar0 != 12 && iVar0 != 14)
			{
				Global_69518[1 /*14*/] = { func_283(iVar10, iVar0, func_344(iParam0, iVar0, -1)) };
				if (gameplay::is_bit_set(Global_69518[1 /*14*/].f_6, 3))
				{
					if (iVar0 == 2)
					{
						if (iVar10 == joaat("player_one"))
						{
							if (func_355(iParam0, iVar10, &iVar4, 1))
							{
								func_340(iParam0, 2, iVar4, 0, -1, 0, 0, 0, -1, -1, -1, 0, 0, 0);
							}
						}
					}
					else
					{
						uVar38 = { func_182(iVar10, 0) };
						func_340(iParam0, iVar0, uVar38[iVar0], 0, -1, 0, 0, 0, -1, -1, -1, 0, 0, 0);
					}
				}
			}
			iVar0++;
		}
		if (iParam7 == 1)
		{
			Var55 = { func_283(iVar10, 8, iVar5) };
			if (iVar5 != -99)
			{
				if (func_94(iVar10, iParam2, 8, iVar5, &uVar11, &Var55))
				{
					func_340(iParam0, 8, iVar5, iParam3, iParam4, iParam5, iParam6, iParam7, -1, -1, -1, 0, 0, 0);
				}
			}
			Var55 = { func_283(iVar10, 9, iVar6) };
			if (iVar6 != -99)
			{
				if (func_94(iVar10, iParam2, 9, iVar6, &uVar11, &Var55))
				{
					func_340(iParam0, 9, iVar6, iParam3, iParam4, iParam5, iParam6, iParam7, -1, -1, -1, 0, 0, 0);
				}
			}
			Var55 = { func_283(iVar10, 14, iVar7) };
			if (iVar7 != -99)
			{
				if (func_94(iVar10, iParam2, 14, iVar7, &uVar11, &Var55))
				{
					func_340(iParam0, 14, iVar7, iParam3, iParam4, iParam5, iParam6, iParam7, -1, -1, -1, 0, 0, 0);
				}
			}
			Var55 = { func_283(iVar10, 14, iVar8) };
			if (iVar8 != -99)
			{
				if (func_94(iVar10, iParam2, 14, iVar8, &uVar11, &Var55))
				{
					func_340(iParam0, 14, iVar8, iParam3, iParam4, iParam5, iParam6, iParam7, -1, -1, -1, 0, 0, 0);
				}
			}
			Var55 = { func_283(iVar10, 14, iVar9) };
			if (iVar9 != -99)
			{
				if (func_94(iVar10, iParam2, 14, iVar9, &uVar11, &Var55))
				{
					func_340(iParam0, 14, iVar9, iParam3, iParam4, iParam5, iParam6, iParam7, -1, -1, -1, 0, 0, 0);
				}
			}
		}
	}
	else if (iParam1 == 13)
	{
		uVar69 = { func_178(iVar10, iParam2) };
		iVar1 = 0;
		while (iVar1 <= 8)
		{
			Global_69518[1 /*14*/] = { func_283(iVar10, 14, uVar69[iVar1]) };
			func_177(iParam0, Global_69518[1 /*14*/].f_12, Global_69518[1 /*14*/].f_3, Global_69518[1 /*14*/].f_4);
			func_354(14);
			if (Global_69517 == 1)
			{
				iVar2 = 0;
				while (iVar2 < 15)
				{
					iVar3 = func_346(iParam0, iVar10, 14, uVar69[iVar1], iVar2, 0);
					if (iVar3 != -99)
					{
						func_340(iParam0, iVar2, iVar3, 0, -1, 0, 0, 0, -1, -1, -1, 0, 0, 0);
					}
					iVar2++;
				}
			}
			iVar1++;
		}
	}
	else if (iParam1 == 14)
	{
		func_177(iParam0, Global_69518[1 /*14*/].f_12, Global_69518[1 /*14*/].f_3, Global_69518[1 /*14*/].f_4);
		func_354(iParam1);
		if (Global_69517 == 1)
		{
			iVar2 = 0;
			while (iVar2 < 15)
			{
				iVar3 = func_346(iParam0, iVar10, iParam1, iParam2, iVar2, 0);
				if (iVar3 != -99)
				{
					func_340(iParam0, iVar2, iVar3, 0, -1, 0, 0, 0, -1, -1, -1, 0, 0, 0);
				}
				iVar2++;
			}
		}
	}
	else
	{
		if (iParam4 == -1)
		{
			ped::set_ped_component_variation(iParam0, func_181(iParam1), Global_69518[1 /*14*/].f_3, Global_69518[1 /*14*/].f_4, ped::get_ped_palette_variation(iParam0, func_181(iParam1)));
		}
		else
		{
			ped::set_ped_component_variation(iParam0, func_181(iParam1), Global_69518[1 /*14*/].f_3, Global_69518[1 /*14*/].f_4, iParam4);
		}
		if (Global_69517 == 1)
		{
			iVar2 = 0;
			while (iVar2 < 15)
			{
				iVar3 = func_346(iParam0, iVar10, iParam1, iParam2, iVar2, 0);
				if (iVar3 != -99)
				{
					func_340(iParam0, iVar2, iVar3, 0, -1, 0, 0, 0, -1, -1, -1, 0, 0, 0);
				}
				iVar2++;
			}
		}
		if (iParam6 == 0)
		{
			func_341(iVar10, iParam1, iParam2);
		}
	}
	if (Global_69517 == 1)
	{
		if (func_355(iParam0, iVar10, &iVar4, 0))
		{
			func_340(iParam0, 2, iVar4, 0, -1, 0, 0, 0, -1, -1, -1, 0, 0, 0);
		}
		if (func_281(iParam0, iVar10, &iVar4))
		{
			func_340(iParam0, 1, iVar4, 0, -1, 0, 0, 0, -1, -1, -1, 0, 0, 0);
		}
	}
	Global_69517 = (Global_69517 - 1);
	return true;
}

void func_341(int iParam0, int iParam1, int iParam2)//Position - 0x5A501
{
	int iVar0;
	var uVar1;
	
	if (iParam0 == joaat("player_zero"))
	{
		iVar0 = 5;
	}
	else if (iParam0 == joaat("player_one"))
	{
		iVar0 = 2;
	}
	else if (iParam0 == joaat("player_two"))
	{
		iVar0 = 4;
	}
	if (func_343(iParam0, 12, iVar0))
	{
		if (func_342(iParam0, iParam1, iParam2))
		{
			uVar1 = func_339(iParam0);
			if (iParam1 == 3)
			{
				Global_101652.f_2079.f_539.f_196[uVar1] = iParam2;
			}
			else if (iParam1 == 4)
			{
				Global_101652.f_2079.f_539.f_200[uVar1] = iParam2;
			}
		}
	}
}

bool func_342(int iParam0, int iParam1, int iParam2)//Position - 0x5A58B
{
	if (iParam0 == joaat("player_zero"))
	{
		if (iParam1 == 4)
		{
			if (iParam2 >= 47 && iParam2 <= 54)
			{
				return true;
			}
		}
		else if (iParam1 == 3)
		{
			if (iParam2 >= 77 && iParam2 <= 84)
			{
				return true;
			}
		}
	}
	else if (iParam0 == joaat("player_one"))
	{
		if (iParam1 == 4)
		{
			if (iParam2 >= 14 && iParam2 <= 21)
			{
				return true;
			}
		}
		else if (iParam1 == 3)
		{
			if (iParam2 >= 41 && iParam2 <= 56)
			{
				return true;
			}
		}
	}
	else if (iParam0 == joaat("player_two"))
	{
		if (iParam1 == 4)
		{
			if (iParam2 >= 18 && iParam2 <= 29)
			{
				return true;
			}
		}
		else if (iParam1 == 3)
		{
			if (iParam2 >= 54 && iParam2 <= 69)
			{
				return true;
			}
		}
	}
	return false;
}

int func_343(int iParam0, int iParam1, int iParam2)//Position - 0x5A669
{
	Global_69518[1 /*14*/] = { func_283(iParam0, iParam1, iParam2) };
	return gameplay::is_bit_set(Global_69518[1 /*14*/].f_6, 2);
}

int func_344(int iParam0, int iParam1, int iParam2)//Position - 0x5A693
{
	int iVar0;
	int iVar1;
	
	if (!ped::is_ped_injured(iParam0))
	{
		if (iParam1 == 12)
		{
			iVar0 = 0;
			while (iVar0 <= 53)
			{
				if (func_282(iParam0, iParam1, iVar0))
				{
					return iVar0;
				}
				iVar0++;
			}
		}
		else if (iParam1 == 13)
		{
			iVar1 = 0;
			while (iVar1 <= 19)
			{
				if (func_282(iParam0, iParam1, iVar1))
				{
					return iVar1;
				}
				iVar1++;
			}
			return 31;
		}
		else if (iParam1 == 14)
		{
			if (iParam2 == -1)
			{
			}
			else
			{
				return func_174(iParam0, iParam2);
			}
		}
		else
		{
			return func_159(iParam0, iParam1);
		}
	}
	return -99;
}

bool func_345(int iParam0, int iParam1, int iParam2, int iParam3)//Position - 0x5A734
{
	var uVar0;
	
	*iParam3 = -99;
	switch (iParam0)
	{
		case joaat("player_zero"):
			switch (iParam1)
			{
				case 8:
					if (iParam2 == 7 || iParam2 == 23)
					{
						*iParam3 = 1;
					}
					break;
				
				case 9:
					if (iParam2 == 8 || (iParam2 >= 9 && iParam2 <= 14))
					{
						*iParam3 = 1;
					}
					break;
				
				case 10:
					if (iParam2 >= 44 && iParam2 <= 47)
					{
						*iParam3 = 1;
					}
					break;
				
				case 14:
					if ((((((iParam2 >= 31 && iParam2 <= 32) || (iParam2 >= 33 && iParam2 <= 34)) || (iParam2 >= 35 && iParam2 <= 36)) || iParam2 == 37) || (iParam2 >= 40 && iParam2 <= 41)) || iParam2 == 46)
					{
						*iParam3 = 1;
					}
					break;
			}
			break;
		
		case joaat("player_one"):
			switch (iParam1)
			{
				case 2:
					if (iParam2 == 20)
					{
						*iParam3 = 20;
					}
					break;
				
				case 8:
					if (iParam2 == 4)
					{
						*iParam3 = 19;
					}
					break;
				
				case 9:
					if (iParam2 >= 5 && iParam2 <= 10)
					{
						*iParam3 = 19;
					}
					break;
				
				case 10:
					if (iParam2 >= 47 && iParam2 <= 50)
					{
						*iParam3 = 19;
					}
					break;
				
				case 14:
					if (((((iParam2 >= 26 && iParam2 <= 27) || (iParam2 >= 28 && iParam2 <= 29)) || (iParam2 >= 30 && iParam2 <= 31)) || iParam2 == 32) || (iParam2 >= 35 && iParam2 <= 36))
					{
						*iParam3 = 19;
					}
					break;
			}
			break;
		
		case joaat("player_two"):
			switch (iParam1)
			{
				case 8:
					if (iParam2 == 7)
					{
						*iParam3 = 2;
					}
					break;
				
				case 9:
					if ((iParam2 >= 9 && iParam2 <= 14) || (iParam2 >= 15 && iParam2 <= 16))
					{
						*iParam3 = 2;
					}
					break;
				
				case 10:
					if (iParam2 >= 29 && iParam2 <= 32)
					{
						*iParam3 = 2;
					}
					break;
				
				case 14:
					if ((((((iParam2 >= 47 && iParam2 <= 48) || (iParam2 >= 49 && iParam2 <= 50)) || (iParam2 >= 51 && iParam2 <= 52)) || iParam2 == 53) || (iParam2 >= 56 && iParam2 <= 57)) || iParam2 == 62)
					{
						*iParam3 = 2;
					}
					break;
			}
			break;
	}
	if (*iParam3 != -99)
	{
		uVar0 = func_339(iParam0);
		Global_101652.f_2079.f_539[uVar0 /*65*/].f_60 = iParam2;
		Global_101652.f_2079.f_539[uVar0 /*65*/].f_61 = iParam1;
		return true;
	}
	return false;
}

int func_346(int iParam0, int iParam1, int iParam2, int iParam3, int iParam4, int iParam5)//Position - 0x5AA3B
{
	int iVar0;
	int iVar1;
	int iVar2;
	int iVar3;
	int iVar4;
	int iVar5;
	int iVar6;
	int iVar7;
	int iVar8;
	int iVar9;
	
	iVar0 = -99;
	if (iParam4 == 0)
	{
		switch (iParam2)
		{
			case 2:
				iVar1 = func_159(iParam0, 1);
				iVar0 = func_353(iParam1, iParam3, iVar1);
				break;
			
			case 1:
				iVar2 = func_159(iParam0, 2);
				iVar0 = func_353(iParam1, iVar2, iParam3);
				break;
		}
	}
	else if (iParam4 == 2)
	{
		func_345(iParam1, iParam2, iParam3, &iVar0);
	}
	else if (iParam4 == 1)
	{
		func_352(iParam1, iParam2, iParam3, &iVar0);
	}
	else if (iParam4 == 6)
	{
		if (iParam2 == 4)
		{
			if (func_351(iParam1, iParam3, &iVar0))
			{
			}
		}
	}
	else
	{
		switch (iParam1)
		{
			case joaat("player_zero"):
				switch (iParam4)
				{
					case 3:
						switch (iParam2)
						{
							case 10:
								switch (iParam3)
								{
									case 36:
										iVar0 = 17;
										break;
									
									case 37:
										iVar0 = 17;
										break;
									
									case 38:
										iVar0 = 18;
										break;
									
									case 39:
										iVar0 = 18;
										break;
									
									case 40:
										iVar0 = 19;
										break;
									
									case 41:
										iVar0 = 19;
										break;
									
									case 42:
										iVar0 = 20;
										break;
									
									case 43:
										iVar0 = 20;
										break;
								}
								break;
							
							case 11:
								if (iParam3 >= 2 && iParam3 <= 7)
								{
									if (!func_350(iParam0, 3, 44, 59))
									{
										iVar0 = 44;
									}
								}
								else if (((iParam3 >= 8 && iParam3 <= 17) || (iParam3 >= 18 && iParam3 <= 27)) || (iParam3 >= 28 && iParam3 <= 43))
								{
									if (!func_350(iParam0, 3, 135, 150))
									{
										iVar0 = func_349(iParam1, 3, 135, 150);
									}
								}
								break;
						}
						break;
					
					case 10:
						switch (iParam2)
						{
							case 3:
								switch (iParam3)
								{
									case 63:
										iVar0 = 4;
										break;
									
									case 61:
										iVar0 = 3;
										break;
									
									case 16:
										iVar0 = 1;
										break;
									
									case 114:
										iVar0 = 15;
										break;
									
									case 115:
										iVar0 = 17;
										break;
									
									case 116:
										iVar0 = 16;
										break;
									
									case 117:
										iVar0 = 18;
										break;
									
									case 118:
										iVar0 = 20;
										break;
									
									case 119:
										iVar0 = 19;
										break;
									
									case 125:
										iVar0 = 21;
										break;
									
									case 120:
										iVar0 = 22;
										break;
									
									case 124:
										iVar0 = 23;
										break;
									
									case 126:
										iVar0 = 24;
										break;
									
									case 121:
										iVar0 = 25;
										break;
									
									case 127:
										iVar0 = 26;
										break;
									
									case 128:
										iVar0 = 27;
										break;
									
									case 85:
										iVar0 = 6;
										break;
									
									case 77:
										iVar0 = 7;
										break;
									
									case 78:
										iVar0 = 8;
										break;
									
									case 79:
										iVar0 = 9;
										break;
									
									case 80:
										iVar0 = 10;
										break;
									
									case 81:
										iVar0 = 11;
										break;
									
									case 82:
										iVar0 = 12;
										break;
									
									case 83:
										iVar0 = 13;
										break;
									
									case 84:
										iVar0 = 14;
										break;
									
									case 21:
										iVar0 = 31;
										break;
									
									case 22:
										iVar0 = 30;
										break;
									
									case 23:
										iVar0 = 29;
										break;
									
									case 24:
										iVar0 = 28;
										break;
									
									case 25:
										iVar0 = 33;
										break;
									
									case 26:
										iVar0 = 35;
										break;
									
									case 27:
										iVar0 = 34;
										break;
									
									case 28:
										iVar0 = 32;
										break;
									
									default:
										if (iParam3 >= 17 && iParam3 <= 20)
										{
										}
										else
										{
											iVar0 = 0;
										}
										break;
								}
								break;
							
							case 11:
								if (iParam3 != 0)
								{
									iVar0 = 0;
								}
								break;
						}
						break;
					
					case 11:
						if (iParam2 == 3)
						{
							if ((iParam3 >= 44 && iParam3 <= 59) || (iParam3 >= 135 && iParam3 <= 150))
							{
							}
							else
							{
								iVar0 = 0;
							}
						}
						else if (iParam2 == 10)
						{
							if (iParam3 >= 36 && iParam3 <= 43)
							{
								iVar0 = 0;
							}
						}
						break;
				}
				break;
			
			case joaat("player_one"):
				switch (iParam4)
				{
					case 10:
						switch (iParam2)
						{
							case 3:
								switch (iParam3)
								{
									case 17:
										iVar0 = 2;
										break;
									
									case 90:
										iVar0 = 1;
										break;
									
									case 268:
										iVar0 = 3;
										break;
									
									case 269:
										iVar0 = 5;
										break;
									
									case 270:
										iVar0 = 4;
										break;
									
									case 271:
										iVar0 = 6;
										break;
									
									case 272:
										iVar0 = 8;
										break;
									
									case 273:
										iVar0 = 7;
										break;
									
									case 279:
										iVar0 = 9;
										break;
									
									case 274:
										iVar0 = 10;
										break;
									
									case 278:
										iVar0 = 11;
										break;
									
									case 280:
										iVar0 = 12;
										break;
									
									case 275:
										iVar0 = 13;
										break;
									
									case 281:
										iVar0 = 14;
										break;
									
									case 282:
										iVar0 = 15;
										break;
									
									case 107:
										iVar0 = 16;
										break;
									
									case 108:
										iVar0 = 17;
										break;
									
									case 109:
										iVar0 = 18;
										break;
									
									case 110:
										iVar0 = 19;
										break;
									
									case 111:
										iVar0 = 20;
										break;
									
									case 112:
										iVar0 = 21;
										break;
									
									case 113:
										iVar0 = 22;
										break;
									
									case 114:
										iVar0 = 23;
										break;
									
									case 115:
										iVar0 = 24;
										break;
									
									case 116:
										iVar0 = 25;
										break;
									
									case 117:
										iVar0 = 52;
										break;
									
									case 118:
										iVar0 = 27;
										break;
									
									case 119:
										iVar0 = 28;
										break;
									
									case 120:
										iVar0 = 29;
										break;
									
									case 121:
										iVar0 = 30;
										break;
									
									case 122:
										iVar0 = 31;
										break;
									
									case 296:
										iVar0 = 32;
										break;
									
									case 297:
										iVar0 = 33;
										break;
									
									case 298:
										iVar0 = 34;
										break;
									
									case 299:
										iVar0 = 35;
										break;
									
									case 300:
										iVar0 = 36;
										break;
									
									case 301:
										iVar0 = 37;
										break;
									
									case 302:
										iVar0 = 38;
										break;
									
									case 309:
										iVar0 = 39;
										break;
									
									case 310:
										iVar0 = 40;
										break;
									
									case 311:
										iVar0 = 41;
										break;
									
									case 312:
										iVar0 = 42;
										break;
									
									case 313:
										iVar0 = 43;
										break;
									
									case 314:
										iVar0 = 44;
										break;
									
									case 315:
										iVar0 = 45;
										break;
									
									case 316:
										iVar0 = 46;
										break;
									
									case 317:
										iVar0 = 51;
										break;
									
									default:
										iVar0 = 0;
										break;
								}
								break;
							
							case 11:
								if (iParam3 != 0)
								{
									iVar0 = 0;
								}
								break;
						}
						break;
					
					case 3:
						switch (iParam2)
						{
							case 11:
								if (iParam3 >= 47 && iParam3 <= 62)
								{
									if (!func_350(iParam0, 3, 209, 222))
									{
										iVar0 = func_349(iParam1, 3, 209, 222);
									}
								}
								else if ((iParam3 >= 1 && iParam3 <= 4) || (iParam3 >= 5 && iParam3 <= 8))
								{
									if (!func_350(iParam0, 3, 243, 258))
									{
										if (iParam3 == 1 || iParam3 == 5)
										{
											iVar0 = func_349(iParam1, 3, 243, 246);
										}
										else if (iParam3 == 2 || iParam3 == 6)
										{
											iVar0 = func_349(iParam1, 3, 247, 250);
										}
										else if (iParam3 == 3 || iParam3 == 7)
										{
											iVar0 = func_349(iParam1, 3, 251, 254);
										}
										else if (iParam3 == 4 || iParam3 == 8)
										{
											iVar0 = func_349(iParam1, 3, 255, 258);
										}
									}
								}
								else if (iParam3 == 41 || iParam3 == 42)
								{
									if (!func_350(iParam0, 3, 176, 191) && !func_350(iParam0, 3, 227, 242))
									{
										iVar0 = func_349(iParam1, 3, 176, 191);
									}
								}
								break;
						}
						break;
					
					case 8:
						if (iParam2 == 11 || iParam2 == 3)
						{
							if (iParam2 == 11)
							{
								iVar5 = iParam3;
								iVar4 = func_159(iParam0, 3);
							}
							else if (iParam2 == 3)
							{
								iVar4 = iParam3;
								iVar5 = func_159(iParam0, 11);
								iVar5 = func_348(iParam1, iVar4, iVar5, 0);
							}
							iVar3 = func_159(iParam0, 8);
							if (((iVar5 >= 5 && iVar5 <= 8) || (iVar5 >= 25 && iVar5 <= 40)) || (iVar5 >= 42 && iVar5 <= 43))
							{
								if (!func_347(joaat("player_one"), iVar3, iVar5, iVar4, &iVar6))
								{
									if (iVar6 != -99)
									{
										iVar0 = iVar6;
									}
								}
							}
							else if (((iVar3 >= 27 && iVar3 <= 42) || (iVar3 >= 43 && iVar3 <= 58)) || (iVar3 >= 59 && iVar3 <= 74))
							{
								iVar0 = 26;
							}
						}
						break;
					
					case 11:
						if (iParam2 == 3)
						{
							if (iParam3 >= 209 && iParam3 <= 222)
							{
							}
							else if (((iParam3 >= 176 && iParam3 <= 191) || (iParam3 >= 227 && iParam3 <= 242)) || (iParam3 >= 243 && iParam3 <= 258))
							{
								iVar7 = func_159(iParam0, 8);
								iVar8 = func_159(iParam0, 11);
								if (((iVar7 >= 27 && iVar7 <= 42) || (iVar7 >= 43 && iVar7 <= 58)) || (iVar7 >= 59 && iVar7 <= 74))
								{
									iVar0 = func_348(iParam1, iParam3, iVar8, 0);
								}
								else
								{
									iVar0 = func_348(iParam1, iParam3, iVar8, 1);
								}
							}
							else if (iParam3 >= 41 && iParam3 <= 56)
							{
								iVar0 = 45;
							}
							else if (iParam3 >= 223 && iParam3 <= 226)
							{
								iVar0 = 44;
							}
							else
							{
								iVar0 = 0;
							}
						}
						else if (iParam2 == 8)
						{
							if (((iParam3 >= 27 && iParam3 <= 42) || (iParam3 >= 43 && iParam3 <= 58)) || (iParam3 >= 59 && iParam3 <= 74))
							{
								iVar9 = func_159(iParam0, 11);
								iVar0 = func_348(iParam1, -99, iVar9, 0);
							}
						}
						break;
				}
				break;
			
			case joaat("player_two"):
				switch (iParam4)
				{
					case 10:
						switch (iParam2)
						{
							case 3:
								switch (iParam3)
								{
									case 50:
										iVar0 = 3;
										break;
									
									case 81:
										iVar0 = 5;
										break;
									
									case 82:
										iVar0 = 6;
										break;
									
									case 83:
										iVar0 = 7;
										break;
									
									case 84:
										iVar0 = 10;
										break;
									
									case 85:
										iVar0 = 9;
										break;
									
									case 86:
										iVar0 = 8;
										break;
									
									case 92:
										iVar0 = 22;
										break;
									
									case 87:
										iVar0 = 23;
										break;
									
									case 91:
										iVar0 = 24;
										break;
									
									case 93:
										iVar0 = 25;
										break;
									
									case 88:
										iVar0 = 26;
										break;
									
									case 94:
										iVar0 = 27;
										break;
									
									case 120:
										iVar0 = 11;
										break;
									
									case 121:
										iVar0 = 13;
										break;
									
									case 122:
										iVar0 = 14;
										break;
									
									case 124:
										iVar0 = 12;
										break;
									
									case 126:
										iVar0 = 18;
										break;
									
									case 128:
										iVar0 = 17;
										break;
									
									case 130:
										iVar0 = 19;
										break;
									
									case 131:
										iVar0 = 16;
										break;
									
									case 134:
										iVar0 = 15;
										break;
									
									case 135:
										iVar0 = 20;
										break;
									
									default:
										iVar0 = 0;
										break;
								}
								break;
						}
						break;
				}
				break;
			}
	}
	return iVar0;
}

bool func_347(int iParam0, int iParam1, int iParam2, int iParam3, var uParam4)//Position - 0x5B5EE
{
	int iVar0;
	
	switch (iParam0)
	{
		case joaat("player_zero"):
			break;
		
		case joaat("player_one"):
			*uParam4 = 0;
			if (iParam1 >= 27 && iParam1 <= 42)
			{
				if (iParam2 != -99)
				{
					if ((iParam2 >= 5 && iParam2 <= 8) || (iParam2 >= 25 && iParam2 <= 40))
					{
					}
					else
					{
						if (iParam2 >= 42 && iParam2 <= 43)
						{
							if (iParam3 >= 176 && iParam3 <= 191)
							{
								iVar0 = (iParam1 - 27);
								*uParam4 = (59 + iVar0);
							}
							else if (iParam3 >= 227 && iParam3 <= 242)
							{
								iVar0 = (iParam1 - 27);
								*uParam4 = (43 + iVar0);
							}
						}
						return false;
					}
				}
				if (iParam3 != -99)
				{
					if (((iParam3 >= 227 && iParam3 <= 242) || (iParam3 >= 176 && iParam3 <= 191)) || (iParam3 >= 243 && iParam3 <= 258))
					{
					}
					else
					{
						return false;
					}
				}
			}
			else if (iParam1 >= 43 && iParam1 <= 58)
			{
				if (iParam2 != -99)
				{
					if (iParam2 >= 42 && iParam2 <= 43)
					{
					}
					else
					{
						if ((iParam2 >= 5 && iParam2 <= 8) || (iParam2 >= 25 && iParam2 <= 40))
						{
							iVar0 = (iParam1 - 43);
							*uParam4 = (27 + iVar0);
						}
						return false;
					}
				}
				if (iParam3 != -99)
				{
					if (iParam3 >= 227 && iParam3 <= 242)
					{
					}
					else
					{
						if (iParam3 >= 176 && iParam3 <= 191)
						{
							if (iParam2 >= 42 && iParam2 <= 43)
							{
								iVar0 = (iParam1 - 43);
								*uParam4 = (59 + iVar0);
							}
						}
						return false;
					}
				}
			}
			else if (iParam1 >= 59 && iParam1 <= 74)
			{
				if (iParam2 != -99)
				{
					if (iParam2 >= 42 && iParam2 <= 43)
					{
					}
					else
					{
						if ((iParam2 >= 5 && iParam2 <= 8) || (iParam2 >= 25 && iParam2 <= 40))
						{
							iVar0 = (iParam1 - 59);
							*uParam4 = (27 + iVar0);
						}
						return false;
					}
				}
				if (iParam3 != -99)
				{
					if (iParam3 >= 176 && iParam3 <= 191)
					{
					}
					else
					{
						if (iParam3 >= 227 && iParam3 <= 242)
						{
							if (iParam2 >= 42 && iParam2 <= 43)
							{
								iVar0 = (iParam1 - 59);
								*uParam4 = (43 + iVar0);
							}
						}
						else if ((iParam2 >= 5 && iParam2 <= 8) || (iParam2 >= 25 && iParam2 <= 40))
						{
							iVar0 = (iParam1 - 59);
							*uParam4 = (27 + iVar0);
						}
						return false;
					}
				}
			}
			break;
		
		case joaat("player_two"):
			if (iParam1 == 12)
			{
				if (iParam3 != 241)
				{
					return false;
				}
			}
			break;
	}
	return true;
}

int func_348(int iParam0, int iParam1, int iParam2, int iParam3)//Position - 0x5B8D2
{
	int iVar0;
	
	if (iParam1 >= 243 && iParam1 <= 246)
	{
		if (iParam3 == 1)
		{
			return 1;
		}
		else
		{
			return 5;
		}
	}
	else if (iParam1 >= 247 && iParam1 <= 250)
	{
		if (iParam3 == 1)
		{
			return 2;
		}
		else
		{
			return 6;
		}
	}
	else if (iParam1 >= 251 && iParam1 <= 254)
	{
		if (iParam3 == 1)
		{
			return 3;
		}
		else
		{
			return 7;
		}
	}
	else if (iParam1 >= 255 && iParam1 <= 258)
	{
		if (iParam3 == 1)
		{
			return 4;
		}
		else
		{
			return 8;
		}
	}
	else if (iParam1 >= 255 && iParam1 <= 258)
	{
		if (iParam3 == 1)
		{
			return 4;
		}
		else
		{
			return 8;
		}
	}
	else if ((iParam1 >= 176 && iParam1 <= 191) || (iParam1 >= 227 && iParam1 <= 242))
	{
		if (iParam2 >= 9 && iParam2 <= 24)
		{
			if (iParam3 == 1)
			{
				return iParam2;
			}
			else
			{
				iVar0 = (iParam2 - 9);
				iParam2 = (25 + iVar0);
				return iParam2;
			}
		}
		else if (iParam2 >= 25 && iParam2 <= 40)
		{
			if (iParam3 == 1)
			{
				iVar0 = (iParam2 - 25);
				iParam2 = (9 + iVar0);
				return iParam2;
			}
			else
			{
				return iParam2;
			}
		}
		else if (iParam2 == 41 || iParam2 == 42)
		{
			if (iParam3 == 1)
			{
				return 41;
			}
			else
			{
				return 42;
			}
		}
		else
		{
			if (iParam3 == 1)
			{
				iParam2 = func_349(iParam0, 11, 9, 24);
			}
			else
			{
				iParam2 = func_349(iParam0, 11, 25, 40);
			}
			if (iParam2 == -99)
			{
				if (iParam3 == 1)
				{
					return 41;
				}
				else
				{
					return 42;
				}
			}
			else
			{
				return iParam2;
			}
		}
	}
	else if (iParam2 >= 1 && iParam2 <= 4)
	{
		if (iParam3 == 1)
		{
			return iParam2;
		}
		else
		{
			iVar0 = (iParam2 - 1);
			iParam2 = (5 + iVar0);
			return iParam2;
		}
	}
	else if (iParam2 >= 5 && iParam2 <= 8)
	{
		if (iParam3 == 1)
		{
			iVar0 = (iParam2 - 5);
			iParam2 = (1 + iVar0);
			return iParam2;
		}
		else
		{
			return iParam2;
		}
	}
	else if (iParam2 >= 9 && iParam2 <= 24)
	{
		if (iParam3 == 1)
		{
			return iParam2;
		}
		else
		{
			iVar0 = (iParam2 - 9);
			iParam2 = (25 + iVar0);
			return iParam2;
		}
	}
	else if (iParam2 >= 25 && iParam2 <= 40)
	{
		if (iParam3 == 1)
		{
			iVar0 = (iParam2 - 25);
			iParam2 = (9 + iVar0);
			return iParam2;
		}
		else
		{
			return iParam2;
		}
	}
	else if (iParam2 == 41 || iParam2 == 42)
	{
		if (iParam3 == 1)
		{
			return 41;
		}
		else
		{
			return 42;
		}
	}
	return -99;
}

int func_349(int iParam0, int iParam1, int iParam2, int iParam3)//Position - 0x5BB99
{
	int iVar0;
	int iVar1;
	
	iVar0 = iParam2;
	while (iVar0 <= (iParam3 - 1))
	{
		iVar1 = iVar0;
		if (func_343(iParam0, iParam1, iVar1))
		{
			return iVar1;
		}
		iVar0++;
	}
	return -99;
}

bool func_350(int iParam0, int iParam1, int iParam2, int iParam3)//Position - 0x5BBD0
{
	int iVar0;
	
	iVar0 = func_159(iParam0, iParam1);
	if (iVar0 >= iParam2 && iVar0 <= iParam3)
	{
		return true;
	}
	return false;
}

bool func_351(int iParam0, int iParam1, int iParam2)//Position - 0x5BBF9
{
	*iParam2 = -99;
	switch (iParam0)
	{
		case joaat("player_zero"):
			if ((((((((((((((((((iParam1 == 16 || iParam1 == 17) || iParam1 == 21) || iParam1 == 22) || iParam1 == 32) || (iParam1 >= 34 && iParam1 <= 39)) || (iParam1 >= 41 && iParam1 <= 45)) || iParam1 == 46) || (iParam1 >= 47 && iParam1 <= 54)) || (iParam1 >= 55 && iParam1 <= 70)) || (iParam1 >= 72 && iParam1 <= 79)) || iParam1 == 80) || (iParam1 >= 81 && iParam1 <= 83)) || (iParam1 >= 84 && iParam1 <= 87)) || iParam1 == 88) || (iParam1 >= 89 && iParam1 <= 91)) || iParam1 == 95) || (iParam1 >= 96 && iParam1 <= 111)) || iParam1 == 112)
			{
				*iParam2 = 6;
				return true;
			}
			break;
		
		case joaat("player_one"):
			if ((((((iParam1 == 12 || (iParam1 >= 14 && iParam1 <= 21)) || iParam1 == 32) || iParam1 == 52) || (iParam1 >= 69 && iParam1 <= 70)) || iParam1 == 71) || (iParam1 >= 72 && iParam1 <= 77))
			{
				*iParam2 = 17;
				return true;
			}
			break;
		
		case joaat("player_two"):
			if (((((((((((((((iParam1 == 4 || iParam1 == 5) || iParam1 == 6) || iParam1 == 7) || iParam1 == 14) || (iParam1 >= 18 && iParam1 <= 29)) || iParam1 == 31) || iParam1 == 32) || iParam1 == 33) || iParam1 == 34) || (iParam1 >= 35 && iParam1 <= 42)) || (iParam1 >= 43 && iParam1 <= 53)) || (iParam1 >= 54 && iParam1 <= 61)) || (iParam1 >= 71 && iParam1 <= 80)) || (iParam1 >= 81 && iParam1 <= 90)) || (iParam1 >= 94 && iParam1 <= 103))
			{
				*iParam2 = 8;
				return true;
			}
			break;
	}
	return false;
}

bool func_352(int iParam0, int iParam1, int iParam2, int iParam3)//Position - 0x5BEC3
{
	var uVar0;
	
	*iParam3 = -99;
	switch (iParam0)
	{
		case joaat("player_zero"):
			switch (iParam1)
			{
				case 10:
					if (iParam2 >= 44 && iParam2 <= 47)
					{
						*iParam3 = 0;
					}
					break;
				
				case 14:
					if (((((((iParam2 >= 31 && iParam2 <= 32) || (iParam2 >= 33 && iParam2 <= 34)) || (iParam2 >= 35 && iParam2 <= 36)) || iParam2 == 37) || (iParam2 >= 38 && iParam2 <= 39)) || (iParam2 >= 40 && iParam2 <= 41)) || (iParam2 >= 42 && iParam2 <= 44))
					{
						*iParam3 = 0;
					}
					break;
			}
			break;
		
		case joaat("player_one"):
			switch (iParam1)
			{
				case 10:
					if (iParam2 >= 47 && iParam2 <= 50)
					{
						*iParam3 = 0;
					}
					break;
				
				case 14:
					if (((((iParam2 >= 26 && iParam2 <= 27) || (iParam2 >= 28 && iParam2 <= 29)) || (iParam2 >= 30 && iParam2 <= 31)) || iParam2 == 32) || (iParam2 >= 35 && iParam2 <= 36))
					{
						*iParam3 = 0;
					}
					break;
			}
			break;
		
		case joaat("player_two"):
			switch (iParam1)
			{
				case 9:
					if (iParam2 >= 15 && iParam2 <= 16)
					{
						*iParam3 = 0;
					}
					break;
				
				case 10:
					if (iParam2 >= 29 && iParam2 <= 32)
					{
						*iParam3 = 0;
					}
					break;
				
				case 14:
					if (((((((iParam2 >= 47 && iParam2 <= 48) || (iParam2 >= 49 && iParam2 <= 50)) || (iParam2 >= 51 && iParam2 <= 52)) || iParam2 == 53) || (iParam2 >= 54 && iParam2 <= 55)) || (iParam2 >= 56 && iParam2 <= 57)) || (iParam2 >= 58 && iParam2 <= 60))
					{
						*iParam3 = 0;
					}
					break;
			}
			break;
	}
	if (*iParam3 != -99)
	{
		uVar0 = func_339(iParam0);
		Global_101652.f_2079.f_539[uVar0 /*65*/].f_63 = iParam2;
		Global_101652.f_2079.f_539[uVar0 /*65*/].f_64 = iParam1;
		return true;
	}
	return false;
}

int func_353(int iParam0, int iParam1, int iParam2)//Position - 0x5C14F
{
	switch (iParam0)
	{
		case joaat("player_zero"):
			if (iParam1 == 1)
			{
				if (iParam2 == 0)
				{
					return 1;
				}
				else if (iParam2 == 4)
				{
					return 5;
				}
				else
				{
					return 3;
				}
			}
			else if (iParam2 == 0)
			{
				return 0;
			}
			else if (iParam2 == 4)
			{
				return 4;
			}
			else
			{
				return 2;
			}
			break;
		
		case joaat("player_one"):
			if (iParam1 >= 0 && iParam1 <= 15)
			{
				if (iParam2 == 0)
				{
					return 0;
				}
				else
				{
					return 3;
				}
			}
			else if (iParam1 >= 16 && iParam1 <= 17)
			{
				if (iParam2 == 0)
				{
					return 2;
				}
				else
				{
					return 5;
				}
			}
			else if (iParam1 == 18)
			{
				if (iParam2 == 0)
				{
					return 6;
				}
				else
				{
					return 7;
				}
			}
			else if (iParam1 == 19)
			{
				if (iParam2 == 0)
				{
					return 1;
				}
				else
				{
					return 4;
				}
			}
			else if (iParam2 == 0)
			{
				return 1;
			}
			else
			{
				return 4;
			}
			break;
		
		case joaat("player_two"):
			if (iParam1 == 2)
			{
				if (iParam2 == 0)
				{
					return 2;
				}
				else
				{
					return 3;
				}
			}
			else if (iParam1 == 3)
			{
				if (iParam2 == 0)
				{
					return 4;
				}
				else
				{
					return 6;
				}
			}
			else if (iParam1 == 8)
			{
				return 5;
			}
			else if (iParam2 == 0)
			{
				return 0;
			}
			else
			{
				return 1;
			}
			break;
	}
	return -99;
}

void func_354(int iParam0)//Position - 0x5C2A6
{
	if (gameplay::is_bit_set(Global_69518[1 /*14*/].f_6, 1) && !gameplay::is_bit_set(Global_69518[1 /*14*/].f_6, 6))
	{
		func_198(iParam0, Global_69518[1 /*14*/].f_5, Global_69518[1 /*14*/].f_2, 2, Global_69518[1 /*14*/].f_1, 1, 0);
	}
	if (gameplay::is_bit_set(Global_69518[1 /*14*/].f_6, 1) && gameplay::is_bit_set(Global_69518[1 /*14*/].f_6, 6))
	{
		if (iParam0 == 12)
		{
			func_189(Global_2621444, 2, 1, 1, -1);
		}
		else if (iParam0 == 13)
		{
		}
		else if (iParam0 == 14)
		{
			func_189(Global_2621444, 2, 1, 1, -1);
		}
		else
		{
			func_189(Global_2621444, 2, 1, 1, -1);
		}
	}
}

bool func_355(int iParam0, int iParam1, int iParam2, int iParam3)//Position - 0x5C35E
{
	var uVar0;
	
	uVar0 = func_339(iParam1);
	if (Global_101652.f_2079.f_539[uVar0 /*65*/].f_60 != -99)
	{
		if (!func_282(iParam0, Global_101652.f_2079.f_539[uVar0 /*65*/].f_61, Global_101652.f_2079.f_539[uVar0 /*65*/].f_60) || iParam3 == 1)
		{
			*iParam2 = Global_101652.f_2079.f_539[uVar0 /*65*/].f_59;
			Global_101652.f_2079.f_539[uVar0 /*65*/].f_60 = -99;
			Global_101652.f_2079.f_539[uVar0 /*65*/].f_61 = 2;
			return true;
		}
	}
	return false;
}

void func_356(var uParam0, int iParam1)//Position - 0x5C3F4
{
	if (!func_357())
	{
		(*uParam0)[0] = func_375(387, iParam1, -1);
		(*uParam0)[1] = func_375(388, iParam1, -1);
		(*uParam0)[2] = func_375(389, iParam1, -1);
		(*uParam0)[3] = func_375(390, iParam1, -1);
		(*uParam0)[4] = func_375(391, iParam1, -1);
		(*uParam0)[5] = func_375(392, iParam1, -1);
		(*uParam0)[6] = func_375(393, iParam1, -1);
		(*uParam0)[7] = func_375(394, iParam1, -1);
		(*uParam0)[8] = func_375(395, iParam1, -1);
		(*uParam0)[9] = func_375(396, iParam1, -1);
		(*uParam0)[10] = func_375(397, iParam1, -1);
		(*uParam0)[11] = func_375(398, iParam1, -1);
		uParam0->f_13[0] = func_375(399, iParam1, -1);
		uParam0->f_13[1] = func_375(400, iParam1, -1);
		uParam0->f_13[2] = func_375(401, iParam1, -1);
		uParam0->f_13[3] = func_375(402, iParam1, -1);
		uParam0->f_13[4] = func_375(403, iParam1, -1);
		uParam0->f_13[5] = func_375(404, iParam1, -1);
		uParam0->f_13[6] = func_375(405, iParam1, -1);
		uParam0->f_13[7] = func_375(406, iParam1, -1);
		uParam0->f_13[8] = func_375(407, iParam1, -1);
		uParam0->f_13[9] = func_375(408, iParam1, -1);
		uParam0->f_13[10] = func_375(409, iParam1, -1);
		uParam0->f_13[11] = func_375(410, iParam1, -1);
		uParam0->f_26[0] = func_375(411, iParam1, -1);
		uParam0->f_26[1] = func_375(412, iParam1, -1);
		uParam0->f_26[2] = func_375(413, iParam1, -1);
		uParam0->f_26[3] = func_375(414, iParam1, -1);
		uParam0->f_26[4] = func_375(415, iParam1, -1);
		uParam0->f_26[5] = func_375(416, iParam1, -1);
		uParam0->f_26[6] = func_375(417, iParam1, -1);
		uParam0->f_26[7] = func_375(418, iParam1, -1);
		uParam0->f_26[8] = func_375(419, iParam1, -1);
		uParam0->f_26[9] = func_375(420, iParam1, -1);
		uParam0->f_26[10] = func_375(421, iParam1, -1);
		uParam0->f_26[11] = func_375(422, iParam1, -1);
		uParam0->f_39[0] = func_375(423, iParam1, -1);
		uParam0->f_39[1] = func_375(424, iParam1, -1);
		uParam0->f_39[2] = func_375(425, iParam1, -1);
		uParam0->f_39[3] = func_375(426, iParam1, -1);
		uParam0->f_39[4] = func_375(427, iParam1, -1);
		uParam0->f_39[5] = func_375(428, iParam1, -1);
		uParam0->f_39[6] = func_375(429, iParam1, -1);
		uParam0->f_39[7] = func_375(430, iParam1, -1);
		uParam0->f_39[8] = func_375(431, iParam1, -1);
		uParam0->f_49[0] = func_375(432, iParam1, -1);
		uParam0->f_49[1] = func_375(433, iParam1, -1);
		uParam0->f_49[2] = func_375(434, iParam1, -1);
		uParam0->f_49[3] = func_375(435, iParam1, -1);
		uParam0->f_49[4] = func_375(436, iParam1, -1);
		uParam0->f_49[5] = func_375(437, iParam1, -1);
		uParam0->f_49[6] = func_375(438, iParam1, -1);
		uParam0->f_49[7] = func_375(439, iParam1, -1);
		uParam0->f_49[8] = func_375(440, iParam1, -1);
		if (func_68(161, -1))
		{
			uParam0->f_59 = func_359(2045, iParam1, 0);
		}
		else
		{
			uParam0->f_59 = func_359(747, iParam1, 0);
		}
		uParam0->f_60 = func_359(748, iParam1, 0);
		uParam0->f_61 = func_359(749, iParam1, 0);
	}
}

var func_357()//Position - 0x5C7D8
{
	return Global_1315206;
}

bool func_358(int iParam0)//Position - 0x5C7E4
{
	int iVar0;
	
	iVar0 = entity::get_entity_model(iParam0);
	if (iVar0 == joaat("u_m_m_filmdirector"))
	{
		return true;
	}
	return false;
}

int func_359(int iParam0, int iParam1, int iParam2)//Position - 0x5C803
{
	int iVar0;
	var uVar1;
	
	if (iParam2 == 0)
	{
	}
	iVar0 = Global_2503773[iParam0 /*3*/][func_69(iParam1)];
	if (stats::stat_get_int(iVar0, &uVar1, -1))
	{
		return uVar1;
	}
	return 0;
}

void func_360(int iParam0, int iParam1)//Position - 0x5C835
{
	int iVar0;
	int iVar1;
	struct<14> Var2;
	int iVar16;
	int iVar17;
	int iVar18;
	
	iVar0 = func_359(2095, iParam0, 0);
	if (iVar0 < 1)
	{
		iVar1 = func_359(2045, iParam0, 0);
		if (iParam1)
		{
			iVar16 = joaat("mp_m_freemode_01");
		}
		else
		{
			iVar16 = joaat("mp_f_freemode_01");
		}
		Var2 = { func_192(iVar16, 2, iVar1) };
		iVar17 = ped::_0xC56FBF2F228E1DAC(iVar16, Var2.f_3, Var2.f_4);
		iVar18 = ped::_0xEA9960D07DADCF10(iVar17);
		func_237(2145, iVar17, iParam0, 1, 0);
		func_237(2152, iVar18, iParam0, 1, 0);
	}
}

void func_361()//Position - 0x5C8B1
{
	int iVar0;
	int iVar1;
	int iVar2;
	int iVar3;
	struct<14> Var4;
	
	iVar1 = func_375(386, Global_69516, -1) == false;
	if (iVar1)
	{
		iVar0 = joaat("mp_m_freemode_01");
	}
	else
	{
		iVar0 = joaat("mp_f_freemode_01");
	}
	if (func_262(4211, Global_69516, -1) == 0)
	{
		func_373(4211, 1, Global_69516, 1);
		iVar2 = dlc1::get_hash_name_for_component(player::player_ped_id(), 1, ped::get_ped_drawable_variation(player::player_ped_id(), 1), ped::get_ped_texture_variation(player::player_ped_id(), 1));
		if (dlc1::_0x341DE7ED1D2A1BFD(iVar2, -1188154325, 0))
		{
			func_66(player::player_ped_id(), 1, 0, 0, -1, 0, 0, 0, -1, -1, -1, 0, 0, 0);
		}
		else if (func_368(player::player_ped_id(), 0))
		{
			func_66(player::player_ped_id(), 1, 0, 0, -1, 0, 0, 0, -1, -1, -1, 0, 0, 0);
		}
		iVar3 = func_359(2045, Global_69516, 0);
		if (iVar3 == -99)
		{
			iVar3 = func_359(747, Global_69516, 0);
		}
		if (iVar3 == -99)
		{
			return;
		}
		Var4 = { func_192(iVar0, 2, iVar3) };
		if (Var4.f_4 != 0)
		{
			iVar3 = (iVar3 - Var4.f_4);
			func_364(iVar0, 2, iVar3, 1, 0);
			func_362(iVar0, 2, iVar3, 1, 1);
			func_253(385, iVar3, Global_69516, 1);
			func_253(389, 0, Global_69516, 1);
			func_253(401, Var4.f_3, Global_69516, 1);
			func_237(2045, iVar3, Global_69516, 1, 0);
			func_237(747, iVar3, Global_69516, 1, 0);
		}
	}
}

bool func_362(int iParam0, int iParam1, int iParam2, int iParam3, int iParam4)//Position - 0x5CA16
{
	int iVar0;
	int iVar1;
	int iVar2;
	var uVar3;
	int iVar4;
	int iVar5;
	int iVar6;
	var uVar7;
	var uVar24;
	int iVar34;
	int iVar35;
	int iVar36;
	var uVar37;
	var uVar54;
	int iVar64;
	int iVar65;
	int iVar66[2];
	struct<2> Var69;
	int iVar86;
	int iVar87;
	int iVar88;
	int iVar89[2];
	struct<2> Var92;
	int iVar109;
	int iVar110;
	int iVar111;
	int iVar112;
	struct<2> Var113;
	int iVar130;
	int iVar131;
	int iVar132;
	
	Global_69518[1 /*14*/] = { func_192(iParam0, iParam1, iParam2) };
	if (gameplay::is_bit_set(Global_69518[1 /*14*/].f_6, 0))
	{
		if (gameplay::is_bit_set(Global_69518[1 /*14*/].f_6, 6))
		{
			if (iParam1 == 12)
			{
				if (iParam3)
				{
					func_189(Global_2621444, 1, 1, 1, -1);
				}
				else
				{
					func_363(Global_2621444, 1, 1, 1, -1);
				}
			}
			else if (iParam1 == 13)
			{
			}
			else if (iParam1 == 14)
			{
				if (iParam3)
				{
					func_189(Global_2621444, 1, 1, 1, -1);
				}
				else
				{
					func_363(Global_2621444, 1, 1, 1, -1);
				}
			}
			else if (iParam3)
			{
				func_189(Global_2621444, 1, 1, 1, -1);
			}
			else
			{
				func_363(Global_2621444, 1, 1, 1, -1);
			}
			if (iParam4 == 1 && iParam3 == 1)
			{
				iVar0 = dlc1::_0xC17AD0E5752BECDA(Global_2621444);
				iVar1 = 0;
				while (iVar1 < iVar0)
				{
					dlc1::get_variant_component(Global_2621444, iVar1, &iVar2, &uVar3, &iVar4);
					if (iVar2 != 0 && iVar2 != 1849449579)
					{
						func_189(iVar2, 1, 1, 1, -1);
					}
					else
					{
						func_362(iParam0, func_184(iVar4), uVar3, 1, 0);
					}
					iVar1++;
				}
			}
			if (iParam1 == 12)
			{
				uVar7 = { func_182(iParam0, iParam2) };
				iVar5 = 0;
				while (iVar5 <= 14)
				{
					if ((uVar7[iVar5] != -99 && iVar5 != 12) && iVar5 != 14)
					{
						if (iVar5 != 13)
						{
							func_362(iParam0, iVar5, uVar7[iVar5], 1, 1);
							func_364(iParam0, iVar5, uVar7[iVar5], 1, 0);
						}
						else
						{
							uVar24 = { func_178(iParam0, uVar7[iVar5]) };
							iVar6 = 0;
							while (iVar6 <= 8)
							{
								if (uVar24[iVar6] >= 10)
								{
									func_362(iParam0, 14, uVar24[iVar6], 1, 1);
									func_364(iParam0, 14, uVar24[iVar6], 1, 0);
								}
								iVar6++;
							}
						}
					}
					iVar5++;
				}
			}
		}
		else
		{
			if (iParam1 != 5)
			{
				iVar34 = func_359(func_196(iParam1, Global_69518[1 /*14*/].f_2), Global_69516, 0);
				if (iParam3)
				{
					gameplay::set_bit(&iVar34, Global_69518[1 /*14*/].f_1);
				}
				else
				{
					gameplay::clear_bit(&iVar34, Global_69518[1 /*14*/].f_1);
				}
				func_237(func_196(iParam1, Global_69518[1 /*14*/].f_2), iVar34, Global_69516, 1, 0);
			}
			if (iParam1 == 12)
			{
				uVar37 = { func_182(iParam0, iParam2) };
				iVar35 = 0;
				while (iVar35 <= 14)
				{
					if ((uVar37[iVar35] != -99 && iVar35 != 12) && iVar35 != 14)
					{
						if (iVar35 != 13)
						{
							func_362(iParam0, iVar35, uVar37[iVar35], 1, 1);
							func_364(iParam0, iVar35, uVar37[iVar35], 1, 0);
						}
						else
						{
							uVar54 = { func_178(iParam0, uVar37[iVar35]) };
							iVar36 = 0;
							while (iVar36 <= 8)
							{
								func_362(iParam0, 14, uVar54[iVar36], 1, 1);
								func_364(iParam0, 14, uVar54[iVar36], 1, 0);
								iVar36++;
							}
						}
					}
					iVar35++;
				}
			}
			if (iParam4 == 1 && iParam3 == 1)
			{
				if (iParam0 == joaat("mp_m_freemode_01"))
				{
					if (iParam1 == 14)
					{
						if (iParam2 >= 83 && iParam2 <= 90)
						{
							iVar64 = (75 + Global_69518[1 /*14*/].f_4);
							func_362(iParam0, 14, iVar64, 1, 0);
						}
						else if (iParam2 >= 75 && iParam2 <= 82)
						{
							iVar64 = (83 + Global_69518[1 /*14*/].f_4);
							func_362(iParam0, 14, iVar64, 1, 0);
						}
					}
					else if (iParam1 == 8)
					{
						if (iParam2 >= 48 && iParam2 <= 63)
						{
							iVar64 = (64 + Global_69518[1 /*14*/].f_4);
							func_362(iParam0, 8, iVar64, 1, 0);
						}
						else if (iParam2 >= 64 && iParam2 <= 79)
						{
							iVar64 = (48 + Global_69518[1 /*14*/].f_4);
							func_362(iParam0, 8, iVar64, 1, 0);
						}
						else if (iParam2 >= 96 && iParam2 <= 111)
						{
							iVar64 = (112 + Global_69518[1 /*14*/].f_4);
							func_362(iParam0, 8, iVar64, 1, 0);
						}
						else if (iParam2 >= 112 && iParam2 <= 127)
						{
							iVar64 = (96 + Global_69518[1 /*14*/].f_4);
							func_362(iParam0, 8, iVar64, 1, 0);
						}
						else if (iParam2 >= 176 && iParam2 <= 191)
						{
							iVar64 = (160 + Global_69518[1 /*14*/].f_4);
							func_362(iParam0, 8, iVar64, 1, 0);
						}
						else if (iParam2 >= 160 && iParam2 <= 175)
						{
							iVar64 = (176 + Global_69518[1 /*14*/].f_4);
							func_362(iParam0, 8, iVar64, 1, 0);
						}
						else if (iParam2 >= 32 && iParam2 <= 47)
						{
							iVar64 = (0 + Global_69518[1 /*14*/].f_4);
							func_362(iParam0, 11, iVar64, 1, 0);
						}
						else if (iParam2 >= 224 && iParam2 <= 239)
						{
							iVar64 = (16 + Global_69518[1 /*14*/].f_4);
							func_362(iParam0, 11, iVar64, 1, 0);
						}
					}
					else if (iParam1 == 11)
					{
						if (iParam2 >= 0 && iParam2 <= 15)
						{
							iVar64 = (32 + Global_69518[1 /*14*/].f_4);
							func_362(iParam0, 8, iVar64, 1, 0);
						}
						else if (iParam2 >= 16 && iParam2 <= 31)
						{
							iVar64 = (224 + Global_69518[1 /*14*/].f_4);
							func_362(iParam0, 8, iVar64, 1, 0);
						}
						else if (iParam2 >= 220 && iParam2 <= 235)
						{
							switch (iParam2)
							{
								case 220:
									iVar66[0] = -783649692;
									iVar66[1] = 691352495;
									break;
								
								case 221:
									iVar66[0] = 1313566316;
									iVar66[1] = 451909412;
									break;
								
								case 222:
									iVar66[0] = 1552550633;
									iVar66[1] = -206550874;
									break;
								
								case 223:
									iVar66[0] = 860928119;
									iVar66[1] = -445797343;
									break;
								
								case 224:
									iVar66[0] = 1107219923;
									iVar66[1] = -173716332;
									break;
								
								case 225:
									iVar66[0] = -2017140386;
									iVar66[1] = -538304226;
									break;
								
								case 226:
									iVar66[0] = -1235599732;
									iVar66[1] = -592242000;
									break;
								
								case 227:
									iVar66[0] = 1815489089;
									iVar66[1] = -831095241;
									break;
								
								case 228:
									iVar66[0] = 2062043045;
									iVar66[1] = -1092100326;
									break;
								
								case 229:
									iVar66[0] = -1065332020;
									iVar66[1] = -1465994616;
									break;
								
								case 230:
									iVar66[0] = -1516536717;
									iVar66[1] = 507503642;
									break;
								
								case 231:
									iVar66[0] = -1470397961;
									iVar66[1] = -1392082519;
									break;
								
								case 232:
									iVar66[0] = 264425668;
									iVar66[1] = -88859389;
									break;
								
								case 233:
									iVar66[0] = 560755735;
									iVar66[1] = 157858412;
									break;
								
								case 234:
									iVar66[0] = -593565059;
									iVar66[1] = -513152401;
									break;
								
								case 235:
									iVar66[0] = -286945526;
									iVar66[1] = 2004948615;
									break;
							}
							dlc1::init_shop_ped_component(&Var69);
							iVar88 = dlc1::_get_num_props_from_outfit(3, 6, -1, 0, -1, 8);
							iVar86 = 0;
							while (iVar86 < iVar88)
							{
								dlc1::get_shop_ped_query_component(iVar86, &Var69);
								if (!dlc1::_is_dlc_data_empty(Var69))
								{
									if (Var69.f_1 == iVar66[0] || Var69.f_1 == iVar66[1])
									{
										func_362(iParam0, 8, (241 + iVar87), 1, 0);
									}
									iVar87++;
								}
								iVar86++;
							}
						}
						else if (iParam2 >= 188 && iParam2 <= 203)
						{
							switch (iParam2)
							{
								case 188:
									iVar89[0] = -1319425641;
									iVar89[1] = -1739646902;
									break;
								
								case 189:
									iVar89[0] = -1019622060;
									iVar89[1] = -1357494824;
									break;
								
								case 190:
									iVar89[0] = 1745491702;
									iVar89[1] = 1466340978;
									break;
								
								case 191:
									iVar89[0] = 133748437;
									iVar89[1] = 1689596175;
									break;
								
								case 192:
									iVar89[0] = 431159881;
									iVar89[1] = 2055363753;
									break;
								
								case 193:
									iVar89[0] = -1408327934;
									iVar89[1] = -2008549324;
									break;
								
								case 194:
									iVar89[0] = -1395416948;
									iVar89[1] = 504177600;
									break;
								
								case 195:
									iVar89[0] = 755638519;
									iVar89[1] = 870797172;
									break;
								
								case 196:
									iVar89[0] = 1053279346;
									iVar89[1] = 1094380059;
									break;
								
								case 197:
									iVar89[0] = 1360193800;
									iVar89[1] = -687139395;
									break;
								
								case 198:
									iVar89[0] = 1515149778;
									iVar89[1] = 1859221515;
									break;
								
								case 199:
									iVar89[0] = 1830748017;
									iVar89[1] = 707489472;
									break;
								
								case 200:
									iVar89[0] = 778666503;
									iVar89[1] = -209845914;
									break;
								
								case 201:
									iVar89[0] = 1130015721;
									iVar89[1] = 1007948429;
									break;
								
								case 202:
									iVar89[0] = -1793274004;
									iVar89[1] = 1306572326;
									break;
								
								case 203:
									iVar89[0] = -1549112185;
									iVar89[1] = 1627839602;
									break;
							}
							dlc1::init_shop_ped_component(&Var92);
							iVar111 = dlc1::_get_num_props_from_outfit(3, 6, -1, 0, -1, 8);
							iVar109 = 0;
							while (iVar109 < iVar111)
							{
								dlc1::get_shop_ped_query_component(iVar109, &Var92);
								if (!dlc1::_is_dlc_data_empty(Var92))
								{
									if (Var92.f_1 == iVar89[0] || Var92.f_1 == iVar89[1])
									{
										func_362(iParam0, 8, (241 + iVar110), 1, 0);
									}
									iVar110++;
								}
								iVar109++;
							}
						}
					}
					else if (iParam1 == 7)
					{
						if (iParam2 >= 41 && iParam2 <= 56)
						{
							switch (Global_69518[2 /*14*/].f_4)
							{
								case 0:
									func_362(iParam0, 7, func_75(iParam0, -1893758670, 7, 3), 1, 0);
									func_362(iParam0, 7, func_75(iParam0, 221276858, 7, 3), 1, 0);
									break;
								
								case 1:
									func_362(iParam0, 7, func_75(iParam0, -1596052305, 7, 3), 1, 0);
									func_362(iParam0, 7, func_75(iParam0, 576886046, 7, 3), 1, 0);
									break;
								
								case 2:
									func_362(iParam0, 7, func_75(iParam0, 1233059274, 7, 3), 1, 0);
									func_362(iParam0, 7, func_75(iParam0, -392978047, 7, 3), 1, 0);
									break;
								
								case 3:
									func_362(iParam0, 7, func_75(iParam0, 232228476, 7, 3), 1, 0);
									func_362(iParam0, 7, func_75(iParam0, -33764269, 7, 3), 1, 0);
									break;
								
								case 4:
									func_362(iParam0, 7, func_75(iParam0, -454445919, 7, 3), 1, 0);
									func_362(iParam0, 7, func_75(iParam0, 1510704243, 7, 3), 1, 0);
									break;
								
								case 5:
									func_362(iParam0, 7, func_75(iParam0, 925653285, 7, 3), 1, 0);
									func_362(iParam0, 7, func_75(iParam0, 1800939276, 7, 3), 1, 0);
									break;
								
								case 6:
									func_362(iParam0, 7, func_75(iParam0, -2104856604, 7, 3), 1, 0);
									func_362(iParam0, 7, func_75(iParam0, 833565623, 7, 3), 1, 0);
									break;
								
								case 7:
									func_362(iParam0, 7, func_75(iParam0, 1657483366, 7, 3), 1, 0);
									func_362(iParam0, 7, func_75(iParam0, 1201823645, 7, 3), 1, 0);
									break;
								
								case 8:
									func_362(iParam0, 7, func_75(iParam0, 501294735, 7, 3), 1, 0);
									func_362(iParam0, 7, func_75(iParam0, 2132496022, 7, 3), 1, 0);
									break;
								
								case 9:
									func_362(iParam0, 7, func_75(iParam0, 1882573627, 7, 3), 1, 0);
									func_362(iParam0, 7, func_75(iParam0, -1939019463, 7, 3), 1, 0);
									break;
								
								case 10:
									func_362(iParam0, 7, func_75(iParam0, 206035418, 7, 3), 1, 0);
									func_362(iParam0, 7, func_75(iParam0, 1713491273, 7, 3), 1, 0);
									break;
								
								case 11:
									func_362(iParam0, 7, func_75(iParam0, -642943834, 7, 3), 1, 0);
									func_362(iParam0, 7, func_75(iParam0, -156668318, 7, 3), 1, 0);
									break;
								
								case 12:
									func_362(iParam0, 7, func_75(iParam0, -388295935, 7, 3), 1, 0);
									func_362(iParam0, 7, func_75(iParam0, 106696135, 7, 3), 1, 0);
									break;
								
								case 13:
									func_362(iParam0, 7, func_75(iParam0, 927641567, 7, 3), 1, 0);
									func_362(iParam0, 7, func_75(iParam0, -802905767, 7, 3), 1, 0);
									break;
								
								case 14:
									func_362(iParam0, 7, func_75(iParam0, 1147226636, 7, 3), 1, 0);
									func_362(iParam0, 7, func_75(iParam0, -505527092, 7, 3), 1, 0);
									break;
								
								case 15:
									func_362(iParam0, 7, func_75(iParam0, 312665744, 7, 3), 1, 0);
									func_362(iParam0, 7, func_75(iParam0, -1144129332, 7, 3), 1, 0);
									break;
							}
						}
						else if (iParam2 >= 73 && iParam2 <= 88)
						{
							switch (Global_69518[2 /*14*/].f_4)
							{
								case 0:
									func_362(iParam0, 7, func_75(iParam0, -335266079, 7, 3), 1, 0);
									func_362(iParam0, 7, func_75(iParam0, -925989020, 7, 3), 1, 0);
									break;
								
								case 1:
									func_362(iParam0, 7, func_75(iParam0, -1379548555, 7, 3), 1, 0);
									func_362(iParam0, 7, func_75(iParam0, 244486895, 7, 3), 1, 0);
									break;
								
								case 2:
									func_362(iParam0, 7, func_75(iParam0, -1402159165, 7, 3), 1, 0);
									func_362(iParam0, 7, func_75(iParam0, 1095104597, 7, 3), 1, 0);
									break;
								
								case 3:
									func_362(iParam0, 7, func_75(iParam0, 1357351098, 7, 3), 1, 0);
									func_362(iParam0, 7, func_75(iParam0, 1787874026, 7, 3), 1, 0);
									break;
								
								case 4:
									func_362(iParam0, 7, func_75(iParam0, -1097178082, 7, 3), 1, 0);
									func_362(iParam0, 7, func_75(iParam0, 476163725, 7, 3), 1, 0);
									break;
								
								case 5:
									func_362(iParam0, 7, func_75(iParam0, -179482237, 7, 3), 1, 0);
									func_362(iParam0, 7, func_75(iParam0, 1223952305, 7, 3), 1, 0);
									break;
								
								case 6:
									func_362(iParam0, 7, func_75(iParam0, -750514831, 7, 3), 1, 0);
									func_362(iParam0, 7, func_75(iParam0, 2049796643, 7, 3), 1, 0);
									break;
								
								case 7:
									func_362(iParam0, 7, func_75(iParam0, -1724573356, 7, 3), 1, 0);
									func_362(iParam0, 7, func_75(iParam0, -1013547784, 7, 3), 1, 0);
									break;
								
								case 8:
									func_362(iParam0, 7, func_75(iParam0, 94106144, 7, 3), 1, 0);
									func_362(iParam0, 7, func_75(iParam0, 1456972664, 7, 3), 1, 0);
									break;
								
								case 9:
									func_362(iParam0, 7, func_75(iParam0, 1070524041, 7, 3), 1, 0);
									func_362(iParam0, 7, func_75(iParam0, -1670762848, 7, 3), 1, 0);
									break;
								
								case 10:
									func_362(iParam0, 7, func_75(iParam0, -1644577318, 7, 3), 1, 0);
									func_362(iParam0, 7, func_75(iParam0, 1428867383, 7, 3), 1, 0);
									break;
								
								case 11:
									func_362(iParam0, 7, func_75(iParam0, 1865900118, 7, 3), 1, 0);
									func_362(iParam0, 7, func_75(iParam0, -1664165762, 7, 3), 1, 0);
									break;
								
								case 12:
									func_362(iParam0, 7, func_75(iParam0, 1611776523, 7, 3), 1, 0);
									func_362(iParam0, 7, func_75(iParam0, -1962101510, 7, 3), 1, 0);
									break;
								
								case 13:
									func_362(iParam0, 7, func_75(iParam0, 1381115532, 7, 3), 1, 0);
									func_362(iParam0, 7, func_75(iParam0, -1270511757, 7, 3), 1, 0);
									break;
								
								case 14:
									func_362(iParam0, 7, func_75(iParam0, 1636484345, 7, 3), 1, 0);
									func_362(iParam0, 7, func_75(iParam0, -1571626106, 7, 3), 1, 0);
									break;
								
								case 15:
									func_362(iParam0, 7, func_75(iParam0, 1422633851, 7, 3), 1, 0);
									func_362(iParam0, 7, func_75(iParam0, -698332248, 7, 3), 1, 0);
									break;
								}
							}
					}
				}
				else if (iParam0 == joaat("mp_f_freemode_01"))
				{
					if (iParam1 == 11)
					{
						if (iParam2 >= 0 && iParam2 <= 15)
						{
							iVar64 = (16 + Global_69518[1 /*14*/].f_4);
							func_362(iParam0, 8, iVar64, 1, 0);
						}
					}
				}
				Global_69518[1 /*14*/] = { func_192(iParam0, iParam1, iParam2) };
				if (iParam1 == 11)
				{
					iVar65 = func_187(iParam0, iParam2, Global_69518[1 /*14*/].f_4);
					if (iVar65 != -99)
					{
						func_362(iParam0, 8, iVar65, 1, 0);
					}
					if (iParam2 >= 192 && iParam2 <= 203)
					{
						switch (iParam2)
						{
							case 199:
								iVar112 = 331193219;
								break;
							
							case 200:
								iVar112 = 1115060468;
								break;
							
							case 201:
								iVar112 = 779636984;
								break;
						}
						dlc1::init_shop_ped_component(&Var113);
						iVar132 = dlc1::_get_num_props_from_outfit(4, 6, -1, 0, -1, 8);
						iVar130 = 0;
						while (iVar130 < iVar132)
						{
							dlc1::get_shop_ped_query_component(iVar130, &Var113);
							if (!dlc1::_is_dlc_data_empty(Var113))
							{
								if (Var113.f_1 == iVar112)
								{
									func_362(iParam0, 8, (136 + iVar131), 1, 0);
									iVar130 = iVar132 + 1;
								}
								iVar131++;
							}
							iVar130++;
						}
					}
				}
				else if (iParam1 == 8)
				{
					iVar65 = func_150(iParam0, iParam2, Global_69518[1 /*14*/].f_4);
					if (iVar65 != -99)
					{
						func_362(iParam0, 11, iVar65, 1, 0);
					}
				}
			}
		}
		return true;
	}
	return false;
}

void func_363(int iParam0, int iParam1, int iParam2, int iParam3, int iParam4)//Position - 0x5DCD2
{
	int iVar0;
	int iVar1;
	int iVar2;
	int iVar3;
	
	iVar0 = Global_69516;
	if (iParam4 != -1)
	{
		iVar0 = iParam4;
	}
	if (func_190(iParam0, iParam1, &iVar2, &iVar1, iParam2, iParam3))
	{
		iVar3 = func_359(iVar2, iVar0, 0);
		gameplay::clear_bit(&iVar3, iVar1);
		func_237(iVar2, iVar3, iVar0, 1, 0);
	}
}

bool func_364(int iParam0, int iParam1, int iParam2, int iParam3, int iParam4)//Position - 0x5DD1C
{
	int iVar0;
	int iVar1;
	int iVar2;
	int iVar3;
	int iVar4;
	
	Global_69518[1 /*14*/] = { func_192(iParam0, iParam1, iParam2) };
	Global_69517++;
	if (gameplay::is_bit_set(Global_69518[1 /*14*/].f_6, 0) && !gameplay::is_bit_set(Global_69518[1 /*14*/].f_6, 6))
	{
		if (iParam3)
		{
			if (((((iParam1 == 4 || iParam1 == 11) || iParam1 == 6) || iParam1 == 0) || iParam1 == 14) || iParam1 == 7)
			{
				func_367(1231, Global_1362479[func_69(-1)] + 1, -1, 1);
			}
			if (iParam1 == 1)
			{
				func_365(1237, 1, -1);
			}
		}
		else
		{
			if (((((iParam1 == 4 || iParam1 == 11) || iParam1 == 6) || iParam1 == 0) || iParam1 == 14) || iParam1 == 7)
			{
				func_367(1231, (Global_1362479[func_69(-1)] - 1), -1, 1);
			}
			if (iParam1 == 1)
			{
				func_365(1237, -1, -1);
			}
		}
		if (iParam1 != 5)
		{
			iVar0 = func_359(func_197(iParam1, Global_69518[1 /*14*/].f_2), Global_69516, 0);
			if (iParam3)
			{
				gameplay::set_bit(&iVar0, Global_69518[1 /*14*/].f_1);
			}
			else
			{
				gameplay::clear_bit(&iVar0, Global_69518[1 /*14*/].f_1);
			}
			func_237(func_197(iParam1, Global_69518[1 /*14*/].f_2), iVar0, Global_69516, 1, 0);
		}
		if (iParam4)
		{
			if (func_188(iParam1, Global_69518[1 /*14*/].f_2, &iVar1))
			{
				iVar2 = func_359(iVar1, Global_69516, 0);
				gameplay::set_bit(&iVar2, Global_69518[1 /*14*/].f_1);
				func_237(iVar1, iVar2, Global_69516, 1, 0);
			}
		}
		if (Global_69517 == 1 && iParam3 == 1)
		{
			if (iParam0 == joaat("mp_m_freemode_01"))
			{
				if (iParam1 == 14)
				{
					if (iParam2 >= 83 && iParam2 <= 90)
					{
						iVar3 = (75 + Global_69518[1 /*14*/].f_4);
						func_364(iParam0, 14, iVar3, 1, iParam4);
					}
					else if (iParam2 >= 75 && iParam2 <= 82)
					{
						iVar3 = (83 + Global_69518[1 /*14*/].f_4);
						func_364(iParam0, 14, iVar3, 1, iParam4);
					}
				}
				else if (iParam1 == 8)
				{
					if (iParam2 >= 48 && iParam2 <= 63)
					{
						iVar3 = (64 + Global_69518[1 /*14*/].f_4);
						func_364(iParam0, 8, iVar3, 1, iParam4);
					}
					else if (iParam2 >= 64 && iParam2 <= 79)
					{
						iVar3 = (48 + Global_69518[1 /*14*/].f_4);
						func_364(iParam0, 8, iVar3, 1, iParam4);
					}
					else if (iParam2 >= 96 && iParam2 <= 111)
					{
						iVar3 = (112 + Global_69518[1 /*14*/].f_4);
						func_364(iParam0, 8, iVar3, 1, iParam4);
					}
					else if (iParam2 >= 112 && iParam2 <= 127)
					{
						iVar3 = (96 + Global_69518[1 /*14*/].f_4);
						func_364(iParam0, 8, iVar3, 1, iParam4);
					}
					else if (iParam2 >= 176 && iParam2 <= 191)
					{
						iVar3 = (160 + Global_69518[1 /*14*/].f_4);
						func_364(iParam0, 8, iVar3, 1, iParam4);
					}
					else if (iParam2 >= 160 && iParam2 <= 175)
					{
						iVar3 = (176 + Global_69518[1 /*14*/].f_4);
						func_364(iParam0, 8, iVar3, 1, iParam4);
					}
					else if (iParam2 >= 32 && iParam2 <= 47)
					{
						iVar3 = (0 + Global_69518[1 /*14*/].f_4);
						func_364(iParam0, 11, iVar3, 1, iParam4);
					}
					else if (iParam2 >= 224 && iParam2 <= 239)
					{
						iVar3 = (16 + Global_69518[1 /*14*/].f_4);
						func_364(iParam0, 11, iVar3, 1, iParam4);
					}
				}
				else if (iParam1 == 11)
				{
					if (iParam2 >= 0 && iParam2 <= 15)
					{
						iVar3 = (32 + Global_69518[1 /*14*/].f_4);
						func_364(iParam0, 8, iVar3, 1, iParam4);
					}
					else if (iParam2 >= 16 && iParam2 <= 31)
					{
						iVar3 = (224 + Global_69518[1 /*14*/].f_4);
						func_364(iParam0, 8, iVar3, 1, iParam4);
					}
				}
			}
			else if (iParam0 == joaat("mp_f_freemode_01"))
			{
				if (iParam1 == 11)
				{
					if (iParam2 >= 0 && iParam2 <= 15)
					{
						iVar3 = (16 + Global_69518[1 /*14*/].f_4);
						func_364(iParam0, 8, iVar3, 1, iParam4);
					}
				}
			}
			Global_69518[1 /*14*/] = { func_192(iParam0, iParam1, iParam2) };
			if (iParam1 == 11)
			{
				iVar4 = func_187(iParam0, iParam2, Global_69518[1 /*14*/].f_4);
				if (iVar4 != -99)
				{
					func_364(iParam0, 8, iVar4, 1, iParam4);
				}
			}
			else if (iParam1 == 8)
			{
				iVar4 = func_150(iParam0, iParam2, Global_69518[1 /*14*/].f_4);
				if (iVar4 != -99)
				{
					func_364(iParam0, 11, iVar4, 1, iParam4);
				}
			}
		}
		Global_69517 = (Global_69517 - 1);
		return true;
	}
	Global_69517 = (Global_69517 - 1);
	return false;
}

void func_365(int iParam0, int iParam1, int iParam2)//Position - 0x5E21F
{
	int iVar0;
	
	iVar0 = func_359(iParam0, func_69(iParam2), 0);
	iVar0 = (iVar0 + iParam1);
	if (!func_366(iParam0))
	{
		func_237(iParam0, iVar0, iParam2, 1, 0);
	}
	else
	{
		func_367(iParam0, iVar0, iParam2, 1);
	}
}

bool func_366(int iParam0)//Position - 0x5E261
{
	if (Global_1362328)
	{
		switch (iParam0)
		{
			case 782:
			case 783:
			case 784:
			case 785:
			case 772:
			case 773:
			case 774:
			case 775:
			case 762:
			case 763:
			case 764:
			case 765:
			case 752:
			case 753:
			case 754:
			case 755:
			case 1298:
			case 634:
			case 1273:
			case 759:
			case 760:
			case 761:
			case 1231:
			case 1870:
			case 2261:
			case 2911:
			case 3040:
			case 5886:
			case 3035:
			case 3036:
			case 3037:
			case 3038:
			case 3039:
			case 3214:
			case 3216:
			case 3618:
			case 3619:
			case 3620:
			case 3621:
			case 3622:
			case 3623:
			case 3624:
			case 3625:
			case 3626:
			case 3627:
			case 3209:
			case 3203:
			case 3645:
			case 3646:
			case 3647:
			case 3648:
			case 3649:
			case 3650:
			case 3671:
			case 3212:
			case 3211:
			case 3992:
			case 3991:
			case 3995:
			case 3994:
			case 3998:
			case 3997:
			case 4001:
			case 4000:
				return true;
				break;
			}
	}
	return false;
}

void func_367(int iParam0, int iParam1, int iParam2, int iParam3)//Position - 0x5E3FF
{
	int iVar0;
	
	iVar0 = Global_2503773[iParam0 /*3*/][func_69(iParam2)];
	if (iVar0 != 0)
	{
		stats::stat_set_int(iVar0, iParam1, iParam3);
	}
	switch (iParam0)
	{
		case 782:
			Global_1362395[func_69(iParam2)] = iParam1;
			break;
		
		case 783:
			Global_1362401[func_69(iParam2)] = iParam1;
			break;
		
		case 784:
			Global_1362407[func_69(iParam2)] = iParam1;
			break;
		
		case 785:
			Global_1362413[func_69(iParam2)] = iParam1;
			break;
		
		case 772:
			Global_1362371[func_69(iParam2)] = iParam1;
			break;
		
		case 773:
			Global_1362377[func_69(iParam2)] = iParam1;
			break;
		
		case 774:
			Global_1362383[func_69(iParam2)] = iParam1;
			break;
		
		case 775:
			Global_1362389[func_69(iParam2)] = iParam1;
			break;
		
		case 762:
			Global_1362347[func_69(iParam2)] = iParam1;
			break;
		
		case 763:
			Global_1362353[func_69(iParam2)] = iParam1;
			break;
		
		case 764:
			Global_1362359[func_69(iParam2)] = iParam1;
			break;
		
		case 765:
			Global_1362365[func_69(iParam2)] = iParam1;
			break;
		
		case 752:
			Global_1362419[func_69(iParam2)] = iParam1;
			break;
		
		case 753:
			Global_1362425[func_69(iParam2)] = iParam1;
			break;
		
		case 754:
			Global_1362431[func_69(iParam2)] = iParam1;
			break;
		
		case 755:
			Global_1362437[func_69(iParam2)] = iParam1;
			break;
		
		case 1298:
			Global_1362443[func_69(iParam2)] = iParam1;
			break;
		
		case 634:
			Global_1362449[func_69(iParam2)] = iParam1;
			break;
		
		case 1273:
			Global_1362455[func_69(iParam2)] = iParam1;
			break;
		
		case 1870:
			Global_2524224[0 /*3*/][func_69(iParam2)] = iParam1;
			break;
		
		case 2261:
			Global_2524224[1 /*3*/][func_69(iParam2)] = iParam1;
			break;
		
		case 2911:
			Global_2524224[2 /*3*/][func_69(iParam2)] = iParam1;
			break;
		
		case 3040:
			Global_2524224[3 /*3*/][func_69(iParam2)] = iParam1;
			break;
		
		case 5886:
			Global_2524295[func_69(iParam2)] = iParam1;
			break;
		
		case 759:
			Global_1362461[func_69(iParam2)] = iParam1;
			break;
		
		case 760:
			Global_1362467[func_69(iParam2)] = iParam1;
			break;
		
		case 761:
			Global_1362473[func_69(iParam2)] = iParam1;
			break;
		
		case 1231:
			Global_1362479[func_69(iParam2)] = iParam1;
			break;
		
		case 3035:
			Global_2524258[0 /*3*/][func_69(iParam2)] = iParam1;
			break;
		
		case 3036:
			Global_2524258[1 /*3*/][func_69(iParam2)] = iParam1;
			break;
		
		case 3037:
			Global_2524258[2 /*3*/][func_69(iParam2)] = iParam1;
			break;
		
		case 3038:
			Global_2524258[3 /*3*/][func_69(iParam2)] = iParam1;
			break;
		
		case 3039:
			Global_2524258[4 /*3*/][func_69(iParam2)] = iParam1;
			break;
		
		case 3618:
			Global_2524298[0 /*3*/][func_69(iParam2)] = iParam1;
			break;
		
		case 3619:
			Global_2524298[1 /*3*/][func_69(iParam2)] = iParam1;
			break;
		
		case 3620:
			Global_2524298[2 /*3*/][func_69(iParam2)] = iParam1;
			break;
		
		case 3621:
			Global_2524298[3 /*3*/][func_69(iParam2)] = iParam1;
			break;
		
		case 3622:
			Global_2524298[4 /*3*/][func_69(iParam2)] = iParam1;
			break;
		
		case 3623:
			Global_2524314[0 /*3*/][func_69(iParam2)] = iParam1;
			break;
		
		case 3624:
			Global_2524314[1 /*3*/][func_69(iParam2)] = iParam1;
			break;
		
		case 3625:
			Global_2524314[2 /*3*/][func_69(iParam2)] = iParam1;
			break;
		
		case 3626:
			Global_2524314[3 /*3*/][func_69(iParam2)] = iParam1;
			break;
		
		case 3627:
			Global_2524314[4 /*3*/][func_69(iParam2)] = iParam1;
			break;
		
		case 3203:
			Global_2524258[5 /*3*/][func_69(iParam2)] = iParam1;
			break;
		
		case 3209:
			Global_2524224[4 /*3*/][func_69(iParam2)] = iParam1;
			break;
		
		case 3645:
			Global_2524330[func_69(iParam2)] = iParam1;
			break;
		
		case 3646:
			Global_2524339[func_69(iParam2)] = iParam1;
			break;
		
		case 3647:
			Global_2524333[func_69(iParam2)] = iParam1;
			break;
		
		case 3648:
			Global_2524342[func_69(iParam2)] = iParam1;
			break;
		
		case 3649:
			Global_2524336[func_69(iParam2)] = iParam1;
			break;
		
		case 3650:
			Global_2524345[func_69(iParam2)] = iParam1;
			break;
		
		case 3671:
			Global_2524348[func_69(iParam2)] = iParam1;
			break;
		
		case 3211:
			Global_2524258[6 /*3*/][func_69(iParam2)] = iParam1;
			break;
		
		case 3212:
			Global_2524224[5 /*3*/][func_69(iParam2)] = iParam1;
			break;
		
		case 3216:
			Global_2524258[7 /*3*/][func_69(iParam2)] = iParam1;
			break;
		
		case 3214:
			Global_2524224[6 /*3*/][func_69(iParam2)] = iParam1;
			break;
		
		case 3991:
			Global_2524258[8 /*3*/][func_69(iParam2)] = iParam1;
			break;
		
		case 3992:
			Global_2524224[7 /*3*/][func_69(iParam2)] = iParam1;
			break;
		
		case 3994:
			Global_2524258[9 /*3*/][func_69(iParam2)] = iParam1;
			break;
		
		case 3995:
			Global_2524224[8 /*3*/][func_69(iParam2)] = iParam1;
			break;
		
		case 3997:
			Global_2524258[10 /*3*/][func_69(iParam2)] = iParam1;
			break;
		
		case 3998:
			Global_2524224[9 /*3*/][func_69(iParam2)] = iParam1;
			break;
		
		case 4000:
			Global_2524258[11 /*3*/][func_69(iParam2)] = iParam1;
			break;
		
		case 4001:
			Global_2524224[10 /*3*/][func_69(iParam2)] = iParam1;
			break;
		
		default:
			break;
	}
}

bool func_368(int iParam0, int iParam1)//Position - 0x5EA5E
{
	struct<37> Var0;
	struct<37> Var50;
	int iVar87;
	
	Var0 = 12;
	Var0.f_13 = 12;
	Var0.f_26 = 9;
	Var0.f_36 = 9;
	Var0.f_46 = 3;
	Var50.f_1 = -1;
	Var50.f_2 = -1;
	Var50.f_3 = -1;
	Var50.f_4 = -1;
	Var50.f_8 = -1;
	Var50.f_9 = 27;
	Var50 = iParam0;
	Var50.f_2 = iParam1;
	if (func_369(&Var0, Var50, 1, 1))
	{
		iVar87 = 0;
		while (iVar87 < 12)
		{
			if (Var0[iVar87] == ped::get_ped_drawable_variation(iParam0, iVar87) && Var0.f_13[iVar87] == ped::get_ped_texture_variation(iParam0, iVar87))
			{
				return true;
			}
			iVar87++;
		}
		iVar87 = 0;
		while (iVar87 < Var0.f_26)
		{
			if (Var0.f_26[iVar87] == ped::get_ped_prop_index(iParam0, iVar87) && Var0.f_36[iVar87] == ped::get_ped_prop_texture_index(iParam0, iVar87))
			{
				return true;
			}
			iVar87++;
		}
	}
	return false;
}

bool func_369(var uParam0, struct<9> Param1, var uParam10, var uParam11, var uParam12, var uParam13, var uParam14, var uParam15, var uParam16, var uParam17, var uParam18, var uParam19, var uParam20, var uParam21, var uParam22, var uParam23, var uParam24, var uParam25, var uParam26, var uParam27, var uParam28, var uParam29, var uParam30, var uParam31, var uParam32, var uParam33, var uParam34, var uParam35, var uParam36, var uParam37, int iParam38, int iParam39)//Position - 0x5EB4E
{
	struct<37> Var0;
	int iVar50;
	struct<5> Var51;
	struct<5> Var68;
	int iVar85;
	int iVar86;
	struct<14> Var87;
	int iVar137;
	
	Var0 = 12;
	Var0.f_13 = 12;
	Var0.f_26 = 9;
	Var0.f_36 = 9;
	Var0.f_46 = 3;
	iVar50 = 0;
	while (iVar50 < 12)
	{
		Var0[iVar50] = -1;
		iVar50++;
	}
	iVar50 = 0;
	while (iVar50 < uParam0->f_26)
	{
		Var0.f_26[iVar50] = -1;
		iVar50++;
	}
	iVar50 = 0;
	while (iVar50 < uParam0->f_46)
	{
		Var0.f_46[iVar50] = -1;
		iVar50++;
	}
	if (iParam38)
	{
		iVar50 = 0;
		while (iVar50 < 12)
		{
			(*uParam0)[iVar50] = -1;
			iVar50++;
		}
		iVar50 = 0;
		while (iVar50 < uParam0->f_26)
		{
			uParam0->f_26[iVar50] = -1;
			iVar50++;
		}
		iVar50 = 0;
		while (iVar50 < uParam0->f_46)
		{
			uParam0->f_46[iVar50] = -1;
			iVar50++;
		}
	}
	iVar85 = false;
	if (entity::get_entity_model(Param1) == joaat("mp_m_freemode_01"))
	{
		iVar85 = true;
	}
	switch (Param1.f_2)
	{
		case -1:
			Var0[1] = 0;
			Var0.f_13[1] = 0;
			break;
		
		case -2:
			if (Param1.f_8 != -1)
			{
				Var0[1] = Global_1612913[Param1.f_8 /*76*/].f_15;
				Var0.f_13[1] = Global_1612913[Param1.f_8 /*76*/].f_16;
			}
			else
			{
				iVar86 = func_372();
				if (iVar86 != -1)
				{
					Var87 = 12;
					Var87.f_13 = 12;
					Var87.f_26 = 9;
					Var87.f_36 = 9;
					Var87.f_46 = 3;
					func_370(&Var87, iVar86, 1, 0);
					Var0[1] = Var87[1];
					Var0.f_13[1] = Var87.f_13[1];
				}
				else
				{
					Var0[1] = func_375(400, -1, -1);
					Var0.f_13[1] = func_375(388, -1, -1);
				}
				if (iParam39)
				{
					if (Var0[1] == -1 || Var0[1] == 0)
					{
						if (iVar85)
						{
							dlc1::get_shop_ped_component(835669644, &Var51);
							Var0[1] = Var51.f_3;
							Var0.f_13[1] = Var51.f_4;
						}
						else
						{
							dlc1::get_shop_ped_component(1876083388, &Var51);
							Var0[1] = Var51.f_3;
							Var0.f_13[1] = Var51.f_4;
						}
					}
				}
			}
			break;
		
		case 0:
			if (iVar85)
			{
				dlc1::get_shop_ped_component(-551441667, &Var51);
				Var0[1] = Var51.f_3;
				Var0.f_13[1] = Var51.f_4;
			}
			else
			{
				dlc1::get_shop_ped_component(2063387500, &Var51);
				Var0[1] = Var51.f_3;
				Var0.f_13[1] = Var51.f_4;
			}
			break;
		
		case 1:
			if (iVar85)
			{
				dlc1::get_shop_ped_component(219052171, &Var51);
				Var0[1] = Var51.f_3;
				Var0.f_13[1] = Var51.f_4;
			}
			else
			{
				dlc1::get_shop_ped_component(-603364477, &Var51);
				Var0[1] = Var51.f_3;
				Var0.f_13[1] = Var51.f_4;
			}
			break;
		
		case 2:
			if (iVar85)
			{
				dlc1::get_shop_ped_component(835669644, &Var51);
				Var0[1] = Var51.f_3;
				Var0.f_13[1] = Var51.f_4;
			}
			else
			{
				dlc1::get_shop_ped_component(1876083388, &Var51);
				Var0[1] = Var51.f_3;
				Var0.f_13[1] = Var51.f_4;
			}
			break;
		
		case 3:
			if (iVar85)
			{
				dlc1::get_shop_ped_component(-571992369, &Var51);
				Var0[1] = Var51.f_3;
				Var0.f_13[1] = Var51.f_4;
			}
			else
			{
				dlc1::get_shop_ped_component(731446975, &Var51);
				Var0[1] = Var51.f_3;
				Var0.f_13[1] = Var51.f_4;
			}
			break;
		
		case 4:
			if (iVar85)
			{
				dlc1::get_shop_ped_component(-198293482, &Var51);
				Var0[1] = Var51.f_3;
				Var0.f_13[1] = Var51.f_4;
			}
			else
			{
				dlc1::get_shop_ped_component(-2138704200, &Var51);
				Var0[1] = Var51.f_3;
				Var0.f_13[1] = Var51.f_4;
			}
			break;
		
		case 5:
			if (iVar85)
			{
				dlc1::get_shop_ped_component(370426102, &Var51);
				Var0[1] = Var51.f_3;
				Var0.f_13[1] = Var51.f_4;
			}
			else
			{
				dlc1::get_shop_ped_component(471440024, &Var51);
				Var0[1] = Var51.f_3;
				Var0.f_13[1] = Var51.f_4;
			}
			break;
		
		case 6:
			if (iVar85)
			{
				dlc1::get_shop_ped_component(201816008, &Var51);
				Var0[1] = Var51.f_3;
				Var0.f_13[1] = Var51.f_4;
			}
			else
			{
				dlc1::get_shop_ped_component(1236306190, &Var51);
				Var0[1] = Var51.f_3;
				Var0.f_13[1] = Var51.f_4;
			}
			break;
		
		case 7:
			if (iVar85)
			{
				dlc1::get_shop_ped_component(-465002528, &Var51);
				Var0[1] = Var51.f_3;
				Var0.f_13[1] = Var51.f_4;
			}
			else
			{
				dlc1::get_shop_ped_component(194111491, &Var51);
				Var0[1] = Var51.f_3;
				Var0.f_13[1] = Var51.f_4;
			}
			break;
		
		case 8:
			if (iVar85)
			{
				dlc1::get_shop_ped_component(-1282673470, &Var51);
				Var0[1] = Var51.f_3;
				Var0.f_13[1] = Var51.f_4;
			}
			else
			{
				dlc1::get_shop_ped_component(-97470603, &Var51);
				Var0[1] = Var51.f_3;
				Var0.f_13[1] = Var51.f_4;
			}
			break;
		
		case 9:
			if (iVar85)
			{
				dlc1::get_shop_ped_component(-936108522, &Var51);
				Var0[1] = Var51.f_3;
				Var0.f_13[1] = Var51.f_4;
			}
			else
			{
				dlc1::get_shop_ped_component(-1293080337, &Var51);
				Var0[1] = Var51.f_3;
				Var0.f_13[1] = Var51.f_4;
			}
			break;
		
		case 10:
			if (iVar85)
			{
				dlc1::get_shop_ped_component(-671236695, &Var51);
				Var0[1] = Var51.f_3;
				Var0.f_13[1] = Var51.f_4;
			}
			else
			{
				dlc1::get_shop_ped_component(-1531999116, &Var51);
				Var0[1] = Var51.f_3;
				Var0.f_13[1] = Var51.f_4;
			}
			break;
		
		case 11:
			if (iVar85)
			{
				dlc1::get_shop_ped_component(1520550639, &Var51);
				Var0[1] = Var51.f_3;
				Var0.f_13[1] = Var51.f_4;
			}
			else
			{
				dlc1::get_shop_ped_component(762322431, &Var51);
				Var0[1] = Var51.f_3;
				Var0.f_13[1] = Var51.f_4;
			}
			break;
		
		case 12:
			if (iVar85)
			{
				dlc1::get_shop_ped_component(1816684092, &Var51);
				Var0[1] = Var51.f_3;
				Var0.f_13[1] = Var51.f_4;
			}
			else
			{
				dlc1::get_shop_ped_component(1318477899, &Var51);
				Var0[1] = Var51.f_3;
				Var0.f_13[1] = Var51.f_4;
			}
			break;
		
		case 13:
			if (iVar85)
			{
				dlc1::get_shop_ped_component(2102823000, &Var51);
				Var0[1] = Var51.f_3;
				Var0.f_13[1] = Var51.f_4;
			}
			else
			{
				dlc1::get_shop_ped_component(199940853, &Var51);
				Var0[1] = Var51.f_3;
				Var0.f_13[1] = Var51.f_4;
			}
			break;
		
		case 14:
			if (iVar85)
			{
				dlc1::get_shop_ped_component(-1866059977, &Var51);
				Var0[1] = Var51.f_3;
				Var0.f_13[1] = Var51.f_4;
			}
			else
			{
				dlc1::get_shop_ped_component(1034403438, &Var51);
				Var0[1] = Var51.f_3;
				Var0.f_13[1] = Var51.f_4;
			}
			break;
		
		case 15:
			if (iVar85)
			{
				dlc1::get_shop_ped_component(1250403007, &Var51);
				Var0[1] = Var51.f_3;
				Var0.f_13[1] = Var51.f_4;
			}
			else
			{
				dlc1::get_shop_ped_component(1715572641, &Var51);
				Var0[1] = Var51.f_3;
				Var0.f_13[1] = Var51.f_4;
			}
			break;
		
		case 16:
			if (iVar85)
			{
				dlc1::get_shop_ped_component(476038764, &Var51);
				Var0[1] = Var51.f_3;
				Var0.f_13[1] = Var51.f_4;
			}
			else
			{
				dlc1::get_shop_ped_component(-2013146335, &Var51);
				Var0[1] = Var51.f_3;
				Var0.f_13[1] = Var51.f_4;
			}
			break;
		
		case 17:
			if (iVar85)
			{
				dlc1::get_shop_ped_component(1863871456, &Var51);
				Var0[1] = Var51.f_3;
				Var0.f_13[1] = Var51.f_4;
			}
			else
			{
				dlc1::get_shop_ped_component(1085654154, &Var51);
				Var0[1] = Var51.f_3;
				Var0.f_13[1] = Var51.f_4;
			}
			break;
		
		case 18:
			if (iVar85)
			{
				dlc1::get_shop_ped_component(351755390, &Var51);
				Var0[1] = Var51.f_3;
				Var0.f_13[1] = Var51.f_4;
			}
			else
			{
				dlc1::get_shop_ped_component(962496867, &Var51);
				Var0[1] = Var51.f_3;
				Var0.f_13[1] = Var51.f_4;
			}
			break;
		
		case 19:
			if (iVar85)
			{
				dlc1::get_shop_ped_component(1058844872, &Var51);
				Var0[1] = Var51.f_3;
				Var0.f_13[1] = Var51.f_4;
			}
			else
			{
				dlc1::get_shop_ped_component(1611716295, &Var51);
				Var0[1] = Var51.f_3;
				Var0.f_13[1] = Var51.f_4;
			}
			break;
		
		case 20:
			if (iVar85)
			{
				dlc1::get_shop_ped_component(1549134650, &Var51);
				Var0[1] = Var51.f_3;
				Var0.f_13[1] = Var51.f_4;
			}
			else
			{
				dlc1::get_shop_ped_component(637461160, &Var51);
				Var0[1] = Var51.f_3;
				Var0.f_13[1] = Var51.f_4;
			}
			break;
		
		case 21:
			if (iVar85)
			{
				dlc1::get_shop_ped_component(1317097361, &Var51);
				Var0[1] = Var51.f_3;
				Var0.f_13[1] = Var51.f_4;
			}
			else
			{
				dlc1::get_shop_ped_component(-1137111266, &Var51);
				Var0[1] = Var51.f_3;
				Var0.f_13[1] = Var51.f_4;
			}
			break;
		
		case 22:
			if (iVar85)
			{
				dlc1::get_shop_ped_component(-829567064, &Var51);
				Var0[1] = Var51.f_3;
				Var0.f_13[1] = Var51.f_4;
			}
			else
			{
				dlc1::get_shop_ped_component(316882033, &Var51);
				Var0[1] = Var51.f_3;
				Var0.f_13[1] = Var51.f_4;
			}
			break;
		
		case 23:
			if (iVar85)
			{
				dlc1::get_shop_ped_component(-130604290, &Var51);
				Var0[1] = Var51.f_3;
				Var0.f_13[1] = Var51.f_4;
			}
			else
			{
				dlc1::get_shop_ped_component(590699797, &Var51);
				Var0[1] = Var51.f_3;
				Var0.f_13[1] = Var51.f_4;
			}
			break;
		
		case 24:
			if (iVar85)
			{
				dlc1::get_shop_ped_component(-380009149, &Var51);
				Var0[1] = Var51.f_3;
				Var0.f_13[1] = Var51.f_4;
			}
			else
			{
				dlc1::get_shop_ped_component(-385914710, &Var51);
				Var0[1] = Var51.f_3;
				Var0.f_13[1] = Var51.f_4;
			}
			break;
		
		case 25:
			if (iVar85)
			{
				dlc1::get_shop_ped_component(596212130, &Var51);
				Var0[1] = Var51.f_3;
				Var0.f_13[1] = Var51.f_4;
			}
			else
			{
				dlc1::get_shop_ped_component(-1897876374, &Var51);
				Var0[1] = Var51.f_3;
				Var0.f_13[1] = Var51.f_4;
			}
			break;
		
		case 26:
			if (iVar85)
			{
				dlc1::get_shop_ped_component(2140942786, &Var51);
				Var0[1] = Var51.f_3;
				Var0.f_13[1] = Var51.f_4;
			}
			else
			{
				dlc1::get_shop_ped_component(-861786128, &Var51);
				Var0[1] = Var51.f_3;
				Var0.f_13[1] = Var51.f_4;
			}
			break;
		
		case 27:
			if (iVar85)
			{
				dlc1::get_shop_ped_component(1901696317, &Var51);
				Var0[1] = Var51.f_3;
				Var0.f_13[1] = Var51.f_4;
			}
			else
			{
				dlc1::get_shop_ped_component(-633615581, &Var51);
				Var0[1] = Var51.f_3;
				Var0.f_13[1] = Var51.f_4;
			}
			break;
		
		case 28:
			if (iVar85)
			{
				dlc1::get_shop_ped_component(-1797925843, &Var51);
				Var0[1] = Var51.f_3;
				Var0.f_13[1] = Var51.f_4;
			}
			else
			{
				dlc1::get_shop_ped_component(-1298728310, &Var51);
				Var0[1] = Var51.f_3;
				Var0.f_13[1] = Var51.f_4;
			}
			break;
		
		case 29:
			if (iVar85)
			{
				dlc1::get_shop_ped_component(790890703, &Var51);
				Var0[1] = Var51.f_3;
				Var0.f_13[1] = Var51.f_4;
			}
			else
			{
				dlc1::get_shop_ped_component(2019526172, &Var51);
				Var0[1] = Var51.f_3;
				Var0.f_13[1] = Var51.f_4;
			}
			break;
		
		case 30:
			if (iVar85)
			{
				dlc1::get_shop_ped_component(1633873228, &Var51);
				Var0[1] = Var51.f_3;
				Var0.f_13[1] = Var51.f_4;
			}
			else
			{
				dlc1::get_shop_ped_component(-156630377, &Var51);
				Var0[1] = Var51.f_3;
				Var0.f_13[1] = Var51.f_4;
			}
			break;
		
		case 31:
			if (iVar85)
			{
				dlc1::get_shop_ped_component(1272234544, &Var51);
				Var0[1] = Var51.f_3;
				Var0.f_13[1] = Var51.f_4;
			}
			else
			{
				dlc1::get_shop_ped_component(99852586, &Var51);
				Var0[1] = Var51.f_3;
				Var0.f_13[1] = Var51.f_4;
			}
			break;
		
		case 32:
			if (iVar85)
			{
				dlc1::get_shop_ped_component(-672409000, &Var51);
				Var0[1] = Var51.f_3;
				Var0.f_13[1] = Var51.f_4;
			}
			else
			{
				dlc1::get_shop_ped_component(1543589216, &Var51);
				Var0[1] = Var51.f_3;
				Var0.f_13[1] = Var51.f_4;
			}
			break;
		
		case 33:
			if (iVar85)
			{
				dlc1::get_shop_ped_component(-1976713507, &Var51);
				Var0[1] = Var51.f_3;
				Var0.f_13[1] = Var51.f_4;
			}
			else
			{
				dlc1::get_shop_ped_component(1783097837, &Var51);
				Var0[1] = Var51.f_3;
				Var0.f_13[1] = Var51.f_4;
			}
			break;
		
		case 34:
			if (iVar85)
			{
				dlc1::get_shop_ped_component(-415819903, &Var51);
				Var0[1] = Var51.f_3;
				Var0.f_13[1] = Var51.f_4;
			}
			else
			{
				dlc1::get_shop_ped_component(-686966926, &Var51);
				Var0[1] = Var51.f_3;
				Var0.f_13[1] = Var51.f_4;
			}
			break;
		
		case 35:
			if (iVar85)
			{
				dlc1::get_shop_ped_component(170253662, &Var51);
				Var0[1] = Var51.f_3;
				Var0.f_13[1] = Var51.f_4;
			}
			else
			{
				dlc1::get_shop_ped_component(28577018, &Var51);
				Var0[1] = Var51.f_3;
				Var0.f_13[1] = Var51.f_4;
			}
			break;
		
		case 36:
			if (iVar85)
			{
				dlc1::get_shop_ped_component(-117163237, &Var51);
				Var0[1] = Var51.f_3;
				Var0.f_13[1] = Var51.f_4;
			}
			else
			{
				dlc1::get_shop_ped_component(-448244761, &Var51);
				Var0[1] = Var51.f_3;
				Var0.f_13[1] = Var51.f_4;
			}
			break;
		
		case 37:
			if (iVar85)
			{
				dlc1::get_shop_ped_component(210231842, &Var51);
				Var0[1] = Var51.f_3;
				Var0.f_13[1] = Var51.f_4;
			}
			else
			{
				dlc1::get_shop_ped_component(1868523599, &Var51);
				Var0[1] = Var51.f_3;
				Var0.f_13[1] = Var51.f_4;
			}
			break;
		
		case 38:
			if (iVar85)
			{
				dlc1::get_shop_ped_component(-884946138, &Var51);
				Var0[1] = Var51.f_3;
				Var0.f_13[1] = Var51.f_4;
			}
			else
			{
				dlc1::get_shop_ped_component(-1735362607, &Var51);
				Var0[1] = Var51.f_3;
				Var0.f_13[1] = Var51.f_4;
			}
			break;
		
		case 39:
			if (iVar85)
			{
				dlc1::get_shop_ped_component(451518722, &Var51);
				Var0[1] = Var51.f_3;
				Var0.f_13[1] = Var51.f_4;
			}
			else
			{
				dlc1::get_shop_ped_component(-144825365, &Var51);
				Var0[1] = Var51.f_3;
				Var0.f_13[1] = Var51.f_4;
			}
			break;
		
		case 40:
			if (iVar85)
			{
				Var0[1] = 3;
				Var0.f_13[1] = 0;
			}
			else
			{
				Var0[1] = 3;
				Var0.f_13[1] = 0;
			}
			break;
		
		case 41:
			if (iVar85)
			{
				dlc1::get_shop_ped_component(1741045180, &Var51);
				Var0[1] = Var51.f_3;
				Var0.f_13[1] = Var51.f_4;
			}
			else
			{
				dlc1::get_shop_ped_component(979413996, &Var51);
				Var0[1] = Var51.f_3;
				Var0.f_13[1] = Var51.f_4;
			}
			break;
		
		case 42:
			if (iVar85)
			{
				dlc1::get_shop_ped_component(-1043690630, &Var51);
				Var0[1] = Var51.f_3;
				Var0.f_13[1] = Var51.f_4;
			}
			else
			{
				dlc1::get_shop_ped_component(-476401343, &Var51);
				Var0[1] = Var51.f_3;
				Var0.f_13[1] = Var51.f_4;
			}
			break;
		
		case 43:
			if (iVar85)
			{
				dlc1::get_shop_ped_component(-119556809, &Var51);
				Var0[1] = Var51.f_3;
				Var0.f_13[1] = Var51.f_4;
			}
			else
			{
				dlc1::get_shop_ped_component(22970455, &Var51);
				Var0[1] = Var51.f_3;
				Var0.f_13[1] = Var51.f_4;
			}
			break;
		
		case 44:
			if (iVar85)
			{
				dlc1::get_shop_ped_component(615045374, &Var51);
				Var0[1] = Var51.f_3;
				Var0.f_13[1] = Var51.f_4;
			}
			else
			{
				dlc1::get_shop_ped_component(-1697114941, &Var51);
				Var0[1] = Var51.f_3;
				Var0.f_13[1] = Var51.f_4;
			}
			break;
		
		case 45:
			if (iVar85)
			{
				dlc1::get_shop_ped_component(-1781972293, &Var51);
				Var0[1] = Var51.f_3;
				Var0.f_13[1] = Var51.f_4;
			}
			else
			{
				dlc1::get_shop_ped_component(-534990310, &Var51);
				Var0[1] = Var51.f_3;
				Var0.f_13[1] = Var51.f_4;
			}
			break;
		
		case 46:
			if (iVar85)
			{
				Var0[1] = 6;
				Var0.f_13[1] = 2;
			}
			else
			{
				Var0[1] = 6;
				Var0.f_13[1] = 2;
			}
			break;
		
		case 47:
			if (iVar85)
			{
				Var0[1] = 6;
				Var0.f_13[1] = 3;
			}
			else
			{
				Var0[1] = 6;
				Var0.f_13[1] = 3;
			}
			break;
		
		case 48:
			if (iVar85)
			{
				Var0[1] = 6;
				Var0.f_13[1] = 0;
			}
			else
			{
				Var0[1] = 6;
				Var0.f_13[1] = 0;
			}
			break;
		
		case 49:
			if (iVar85)
			{
				Var0[1] = 6;
				Var0.f_13[1] = 1;
			}
			else
			{
				Var0[1] = 6;
				Var0.f_13[1] = 1;
			}
			break;
		
		case 50:
			if (iVar85)
			{
				dlc1::get_shop_ped_component(588980201, &Var51);
				Var0[1] = Var51.f_3;
				Var0.f_13[1] = Var51.f_4;
			}
			else
			{
				dlc1::get_shop_ped_component(1742423660, &Var51);
				Var0[1] = Var51.f_3;
				Var0.f_13[1] = Var51.f_4;
			}
			break;
		
		case 51:
			if (iVar85)
			{
				dlc1::get_shop_ped_component(-1984028188, &Var51);
				Var0[1] = Var51.f_3;
				Var0.f_13[1] = Var51.f_4;
			}
			else
			{
				dlc1::get_shop_ped_component(-341046913, &Var51);
				Var0[1] = Var51.f_3;
				Var0.f_13[1] = Var51.f_4;
			}
			break;
		
		case 52:
			if (iVar85)
			{
				dlc1::_0x5D5CAFF661DDF6FC(-915226199, &Var68);
				Var0.f_26[0] = Var68.f_3;
				Var0.f_36[0] = Var68.f_4;
			}
			else
			{
				dlc1::_0x5D5CAFF661DDF6FC(-584470541, &Var68);
				Var0.f_26[0] = Var68.f_3;
				Var0.f_36[0] = Var68.f_4;
			}
			Var0[1] = 0;
			Var0.f_13[1] = 0;
			break;
		
		case 53:
			if (iVar85)
			{
				dlc1::_0x5D5CAFF661DDF6FC(1454296662, &Var68);
				Var0.f_26[0] = Var68.f_3;
				Var0.f_36[0] = Var68.f_4;
			}
			else
			{
				dlc1::_0x5D5CAFF661DDF6FC(-917609546, &Var68);
				Var0.f_26[0] = Var68.f_3;
				Var0.f_36[0] = Var68.f_4;
			}
			Var0[1] = 0;
			Var0.f_13[1] = 0;
			break;
		
		case 54:
			if (iVar85)
			{
				dlc1::_0x5D5CAFF661DDF6FC(618853682, &Var68);
				Var0.f_26[0] = Var68.f_3;
				Var0.f_36[0] = Var68.f_4;
			}
			else
			{
				dlc1::_0x5D5CAFF661DDF6FC(1397877264, &Var68);
				Var0.f_26[0] = Var68.f_3;
				Var0.f_36[0] = Var68.f_4;
			}
			Var0[1] = 0;
			Var0.f_13[1] = 0;
			break;
		
		case 55:
			if (iVar85)
			{
				dlc1::_0x5D5CAFF661DDF6FC(-860205401, &Var68);
				Var0.f_26[0] = Var68.f_3;
				Var0.f_36[0] = Var68.f_4;
			}
			else
			{
				dlc1::_0x5D5CAFF661DDF6FC(-430949131, &Var68);
				Var0.f_26[0] = Var68.f_3;
				Var0.f_36[0] = Var68.f_4;
			}
			Var0[1] = 0;
			Var0.f_13[1] = 0;
			break;
		
		case 56:
			if (iVar85)
			{
				Var0.f_26[0] = 18;
				Var0.f_36[0] = 2;
			}
			else
			{
				Var0.f_26[0] = 18;
				Var0.f_36[0] = 2;
			}
			Var0[1] = 0;
			Var0.f_13[1] = 0;
			break;
		
		case 57:
			if (iVar85)
			{
				Var0.f_26[0] = 18;
				Var0.f_36[0] = 4;
			}
			else
			{
				Var0.f_26[0] = 18;
				Var0.f_36[0] = 4;
			}
			Var0[1] = 0;
			Var0.f_13[1] = 0;
			break;
		
		case 58:
			if (iVar85)
			{
				Var0.f_26[0] = 18;
				Var0.f_36[0] = 0;
			}
			else
			{
				Var0.f_26[0] = 18;
				Var0.f_36[0] = 0;
			}
			Var0[1] = 0;
			Var0.f_13[1] = 0;
			break;
		
		case 59:
			if (iVar85)
			{
				Var0.f_26[0] = 18;
				Var0.f_36[0] = 5;
			}
			else
			{
				Var0.f_26[0] = 18;
				Var0.f_36[0] = 5;
			}
			Var0[1] = 0;
			Var0.f_13[1] = 0;
			break;
		
		case 60:
			if (iVar85)
			{
				dlc1::get_shop_ped_component(572541419, &Var51);
				Var0[1] = Var51.f_3;
				Var0.f_13[1] = Var51.f_4;
			}
			else
			{
				dlc1::get_shop_ped_component(-80494897, &Var51);
				Var0[1] = Var51.f_3;
				Var0.f_13[1] = Var51.f_4;
			}
			break;
		
		case 61:
			if (iVar85)
			{
				Var0[1] = 4;
				Var0.f_13[1] = 0;
			}
			else
			{
				Var0[1] = 4;
				Var0.f_13[1] = 0;
			}
			break;
		
		case 62:
			if (iVar85)
			{
				Var0[1] = 4;
				Var0.f_13[1] = 2;
			}
			else
			{
				Var0[1] = 4;
				Var0.f_13[1] = 2;
			}
			break;
		
		case 63:
			if (iVar85)
			{
				dlc1::get_shop_ped_component(1897726046, &Var51);
				Var0[1] = Var51.f_3;
				Var0.f_13[1] = Var51.f_4;
			}
			else
			{
				dlc1::get_shop_ped_component(-1535707074, &Var51);
				Var0[1] = Var51.f_3;
				Var0.f_13[1] = Var51.f_4;
			}
			break;
		
		case 64:
			if (iVar85)
			{
				dlc1::get_shop_ped_component(1052113515, &Var51);
				Var0[1] = Var51.f_3;
				Var0.f_13[1] = Var51.f_4;
			}
			else
			{
				dlc1::get_shop_ped_component(569973136, &Var51);
				Var0[1] = Var51.f_3;
				Var0.f_13[1] = Var51.f_4;
			}
			break;
		
		case 65:
			if (iVar85)
			{
				dlc1::get_shop_ped_component(811752900, &Var51);
				Var0[1] = Var51.f_3;
				Var0.f_13[1] = Var51.f_4;
			}
			else
			{
				dlc1::get_shop_ped_component(786346843, &Var51);
				Var0[1] = Var51.f_3;
				Var0.f_13[1] = Var51.f_4;
			}
			break;
		
		case 66:
			if (iVar85)
			{
				dlc1::get_shop_ped_component(142904873, &Var51);
				Var0[1] = Var51.f_3;
				Var0.f_13[1] = Var51.f_4;
			}
			else
			{
				dlc1::get_shop_ped_component(-697138568, &Var51);
				Var0[1] = Var51.f_3;
				Var0.f_13[1] = Var51.f_4;
			}
			break;
		
		case 67:
			if (iVar85)
			{
				dlc1::get_shop_ped_component(1376887074, &Var51);
				Var0[1] = Var51.f_3;
				Var0.f_13[1] = Var51.f_4;
			}
			else
			{
				dlc1::get_shop_ped_component(-2128554018, &Var51);
				Var0[1] = Var51.f_3;
				Var0.f_13[1] = Var51.f_4;
			}
			break;
		
		case 68:
			if (iVar85)
			{
				dlc1::get_shop_ped_component(-2110217579, &Var51);
				Var0[1] = Var51.f_3;
				Var0.f_13[1] = Var51.f_4;
			}
			else
			{
				dlc1::get_shop_ped_component(-1968716640, &Var51);
				Var0[1] = Var51.f_3;
				Var0.f_13[1] = Var51.f_4;
			}
			break;
		
		case 69:
			if (iVar85)
			{
				Var0[1] = 2;
				Var0.f_13[1] = 0;
			}
			else
			{
				Var0[1] = 2;
				Var0.f_13[1] = 0;
			}
			break;
		
		case 70:
			if (iVar85)
			{
				dlc1::get_shop_ped_component(-189404974, &Var51);
				Var0[1] = Var51.f_3;
				Var0.f_13[1] = Var51.f_4;
			}
			else
			{
				dlc1::get_shop_ped_component(1626800031, &Var51);
				Var0[1] = Var51.f_3;
				Var0.f_13[1] = Var51.f_4;
			}
			break;
		
		case 71:
			if (iVar85)
			{
				dlc1::get_shop_ped_component(853808061, &Var51);
				Var0[1] = Var51.f_3;
				Var0.f_13[1] = Var51.f_4;
			}
			else
			{
				dlc1::get_shop_ped_component(1755485190, &Var51);
				Var0[1] = Var51.f_3;
				Var0.f_13[1] = Var51.f_4;
			}
			break;
		
		case 72:
			if (iVar85)
			{
				dlc1::get_shop_ped_component(457847700, &Var51);
				Var0[1] = Var51.f_3;
				Var0.f_13[1] = Var51.f_4;
			}
			else
			{
				dlc1::get_shop_ped_component(-391043339, &Var51);
				Var0[1] = Var51.f_3;
				Var0.f_13[1] = Var51.f_4;
			}
			break;
		
		case 73:
			if (iVar85)
			{
				dlc1::get_shop_ped_component(-572920362, &Var51);
				Var0[1] = Var51.f_3;
				Var0.f_13[1] = Var51.f_4;
			}
			else
			{
				dlc1::get_shop_ped_component(-2048003518, &Var51);
				Var0[1] = Var51.f_3;
				Var0.f_13[1] = Var51.f_4;
			}
			break;
		
		case 74:
			if (iVar85)
			{
				dlc1::get_shop_ped_component(-1340764638, &Var51);
				Var0[1] = Var51.f_3;
				Var0.f_13[1] = Var51.f_4;
			}
			else
			{
				dlc1::get_shop_ped_component(-378858087, &Var51);
				Var0[1] = Var51.f_3;
				Var0.f_13[1] = Var51.f_4;
			}
			break;
		
		case 75:
			if (iVar85)
			{
				dlc1::get_shop_ped_component(202610569, &Var51);
				Var0[1] = Var51.f_3;
				Var0.f_13[1] = Var51.f_4;
			}
			else
			{
				dlc1::get_shop_ped_component(302703048, &Var51);
				Var0[1] = Var51.f_3;
				Var0.f_13[1] = Var51.f_4;
			}
			break;
		
		case 76:
			if (iVar85)
			{
				dlc1::get_shop_ped_component(-1138470677, &Var51);
				Var0[1] = Var51.f_3;
				Var0.f_13[1] = Var51.f_4;
			}
			else
			{
				dlc1::get_shop_ped_component(-670092377, &Var51);
				Var0[1] = Var51.f_3;
				Var0.f_13[1] = Var51.f_4;
			}
			break;
		
		case 77:
			if (iVar85)
			{
				dlc1::get_shop_ped_component(-651031802, &Var51);
				Var0[1] = Var51.f_3;
				Var0.f_13[1] = Var51.f_4;
			}
			else
			{
				dlc1::get_shop_ped_component(1219695857, &Var51);
				Var0[1] = Var51.f_3;
				Var0.f_13[1] = Var51.f_4;
			}
			break;
		
		case 78:
			if (iVar85)
			{
				dlc1::get_shop_ped_component(-344739959, &Var51);
				Var0[1] = Var51.f_3;
				Var0.f_13[1] = Var51.f_4;
			}
			else
			{
				dlc1::get_shop_ped_component(1919117393, &Var51);
				Var0[1] = Var51.f_3;
				Var0.f_13[1] = Var51.f_4;
			}
			break;
		
		case 79:
			if (iVar85)
			{
				dlc1::get_shop_ped_component(1005703300, &Var51);
				Var0[1] = Var51.f_3;
				Var0.f_13[1] = Var51.f_4;
			}
			else
			{
				dlc1::get_shop_ped_component(-908093624, &Var51);
				Var0[1] = Var51.f_3;
				Var0.f_13[1] = Var51.f_4;
			}
			break;
		
		case 80:
			if (iVar85)
			{
				dlc1::get_shop_ped_component(-1540364719, &Var51);
				Var0[1] = Var51.f_3;
				Var0.f_13[1] = Var51.f_4;
			}
			else
			{
				dlc1::get_shop_ped_component(884055828, &Var51);
				Var0[1] = Var51.f_3;
				Var0.f_13[1] = Var51.f_4;
			}
			break;
		
		case 81:
			if (iVar85)
			{
				dlc1::get_shop_ped_component(622413650, &Var51);
				Var0[1] = Var51.f_3;
				Var0.f_13[1] = Var51.f_4;
			}
			else
			{
				dlc1::get_shop_ped_component(-8858492, &Var51);
				Var0[1] = Var51.f_3;
				Var0.f_13[1] = Var51.f_4;
			}
			break;
		
		case 82:
			if (iVar85)
			{
				dlc1::get_shop_ped_component(1195117431, &Var51);
				Var0[1] = Var51.f_3;
				Var0.f_13[1] = Var51.f_4;
			}
			else
			{
				dlc1::get_shop_ped_component(-1920307023, &Var51);
				Var0[1] = Var51.f_3;
				Var0.f_13[1] = Var51.f_4;
			}
			break;
		
		case 83:
			if (iVar85)
			{
				dlc1::get_shop_ped_component(220992178, &Var51);
				Var0[1] = Var51.f_3;
				Var0.f_13[1] = Var51.f_4;
			}
			else
			{
				dlc1::get_shop_ped_component(-1119484812, &Var51);
				Var0[1] = Var51.f_3;
				Var0.f_13[1] = Var51.f_4;
			}
			break;
		
		case 84:
			if (iVar85)
			{
				Var0[1] = 1;
				Var0.f_13[1] = 0;
			}
			else
			{
				Var0[1] = 1;
				Var0.f_13[1] = 0;
			}
			break;
		
		case 85:
			if (iVar85)
			{
				Var0[1] = 1;
				Var0.f_13[1] = 1;
			}
			else
			{
				Var0[1] = 1;
				Var0.f_13[1] = 1;
			}
			break;
		
		case 86:
			if (iVar85)
			{
				Var0[1] = 1;
				Var0.f_13[1] = 2;
			}
			else
			{
				Var0[1] = 1;
				Var0.f_13[1] = 2;
			}
			break;
		
		case 87:
			if (iVar85)
			{
				Var0[1] = 1;
				Var0.f_13[1] = 3;
			}
			else
			{
				Var0[1] = 1;
				Var0.f_13[1] = 3;
			}
			break;
		
		case 88:
			if (iVar85)
			{
				dlc1::get_shop_ped_component(-878039873, &Var51);
				Var0[1] = Var51.f_3;
				Var0.f_13[1] = Var51.f_4;
			}
			else
			{
				dlc1::get_shop_ped_component(-1876706754, &Var51);
				Var0[1] = Var51.f_3;
				Var0.f_13[1] = Var51.f_4;
			}
			break;
		
		case 89:
			if (iVar85)
			{
				dlc1::get_shop_ped_component(431048904, &Var51);
				Var0[1] = Var51.f_3;
				Var0.f_13[1] = Var51.f_4;
			}
			else
			{
				dlc1::get_shop_ped_component(-1647782520, &Var51);
				Var0[1] = Var51.f_3;
				Var0.f_13[1] = Var51.f_4;
			}
			break;
		
		case 90:
			if (iVar85)
			{
				dlc1::get_shop_ped_component(2128646957, &Var51);
				Var0[1] = Var51.f_3;
				Var0.f_13[1] = Var51.f_4;
			}
			else
			{
				dlc1::get_shop_ped_component(977702533, &Var51);
				Var0[1] = Var51.f_3;
				Var0.f_13[1] = Var51.f_4;
			}
			break;
		
		case 91:
			if (iVar85)
			{
				dlc1::get_shop_ped_component(-1328187626, &Var51);
				Var0[1] = Var51.f_3;
				Var0.f_13[1] = Var51.f_4;
			}
			else
			{
				dlc1::get_shop_ped_component(-1394117691, &Var51);
				Var0[1] = Var51.f_3;
				Var0.f_13[1] = Var51.f_4;
			}
			break;
		
		case 92:
			if (iVar85)
			{
				dlc1::get_shop_ped_component(-571992369, &Var51);
				Var0[1] = Var51.f_3;
				Var0.f_13[1] = Var51.f_4;
			}
			else
			{
				dlc1::get_shop_ped_component(731446975, &Var51);
				Var0[1] = Var51.f_3;
				Var0.f_13[1] = Var51.f_4;
			}
			break;
		
		case 93:
			if (iVar85)
			{
				dlc1::get_shop_ped_component(1653383178, &Var51);
				Var0[1] = Var51.f_3;
				Var0.f_13[1] = Var51.f_4;
			}
			else
			{
				dlc1::get_shop_ped_component(-1955185040, &Var51);
				Var0[1] = Var51.f_3;
				Var0.f_13[1] = Var51.f_4;
			}
			break;
		
		case 94:
			if (iVar85)
			{
				dlc1::get_shop_ped_component(317669558, &Var51);
				Var0[1] = Var51.f_3;
				Var0.f_13[1] = Var51.f_4;
			}
			else
			{
				dlc1::get_shop_ped_component(1338441322, &Var51);
				Var0[1] = Var51.f_3;
				Var0.f_13[1] = Var51.f_4;
			}
			break;
		
		case 95:
			if (iVar85)
			{
				dlc1::get_shop_ped_component(-949818947, &Var51);
				Var0[1] = Var51.f_3;
				Var0.f_13[1] = Var51.f_4;
			}
			else
			{
				dlc1::get_shop_ped_component(-402884741, &Var51);
				Var0[1] = Var51.f_3;
				Var0.f_13[1] = Var51.f_4;
			}
			break;
		
		case 96:
			if (iVar85)
			{
				dlc1::get_shop_ped_component(-1274735337, &Var51);
				Var0[1] = Var51.f_3;
				Var0.f_13[1] = Var51.f_4;
			}
			else
			{
				dlc1::get_shop_ped_component(1424510816, &Var51);
				Var0[1] = Var51.f_3;
				Var0.f_13[1] = Var51.f_4;
			}
			break;
		
		case 97:
			if (iVar85)
			{
				dlc1::get_shop_ped_component(901585021, &Var51);
				Var0[1] = Var51.f_3;
				Var0.f_13[1] = Var51.f_4;
			}
			else
			{
				dlc1::get_shop_ped_component(-1686217589, &Var51);
				Var0[1] = Var51.f_3;
				Var0.f_13[1] = Var51.f_4;
			}
			break;
		
		case 98:
			if (iVar85)
			{
				dlc1::get_shop_ped_component(179618129, &Var51);
				Var0[1] = Var51.f_3;
				Var0.f_13[1] = Var51.f_4;
			}
			else
			{
				dlc1::get_shop_ped_component(415037286, &Var51);
				Var0[1] = Var51.f_3;
				Var0.f_13[1] = Var51.f_4;
			}
			break;
		
		case 99:
			if (iVar85)
			{
				dlc1::get_shop_ped_component(-960546165, &Var51);
				Var0[1] = Var51.f_3;
				Var0.f_13[1] = Var51.f_4;
			}
			else
			{
				dlc1::get_shop_ped_component(-960546165, &Var51);
				Var0[1] = Var51.f_3;
				Var0.f_13[1] = Var51.f_4;
			}
			break;
		
		case 100:
			if (iVar85)
			{
				dlc1::get_shop_ped_component(1016948187, &Var51);
				Var0[1] = Var51.f_3;
				Var0.f_13[1] = Var51.f_4;
			}
			else
			{
				dlc1::get_shop_ped_component(1098963073, &Var51);
				Var0[1] = Var51.f_3;
				Var0.f_13[1] = Var51.f_4;
			}
			break;
		
		case 101:
			if (iVar85)
			{
				dlc1::get_shop_ped_component(742556768, &Var51);
				Var0[1] = Var51.f_3;
				Var0.f_13[1] = Var51.f_4;
			}
			else
			{
				dlc1::get_shop_ped_component(1095714954, &Var51);
				Var0[1] = Var51.f_3;
				Var0.f_13[1] = Var51.f_4;
			}
			break;
		
		case 102:
			if (iVar85)
			{
				dlc1::get_shop_ped_component(-412736069, &Var51);
				Var0[1] = Var51.f_3;
				Var0.f_13[1] = Var51.f_4;
			}
			else
			{
				dlc1::get_shop_ped_component(1527692182, &Var51);
				Var0[1] = Var51.f_3;
				Var0.f_13[1] = Var51.f_4;
			}
			break;
		
		case 103:
			if (iVar85)
			{
				dlc1::get_shop_ped_component(2028193960, &Var51);
				Var0[1] = Var51.f_3;
				Var0.f_13[1] = Var51.f_4;
			}
			else
			{
				dlc1::get_shop_ped_component(-1372200477, &Var51);
				Var0[1] = Var51.f_3;
				Var0.f_13[1] = Var51.f_4;
			}
			break;
		
		case 104:
			if (iVar85)
			{
				dlc1::get_shop_ped_component(1409056474, &Var51);
				Var0[1] = Var51.f_3;
				Var0.f_13[1] = Var51.f_4;
			}
			else
			{
				dlc1::get_shop_ped_component(39193130, &Var51);
				Var0[1] = Var51.f_3;
				Var0.f_13[1] = Var51.f_4;
			}
			break;
		
		case 105:
			if (iVar85)
			{
				dlc1::get_shop_ped_component(-747569723, &Var51);
				Var0[1] = Var51.f_3;
				Var0.f_13[1] = Var51.f_4;
			}
			else
			{
				dlc1::get_shop_ped_component(761684042, &Var51);
				Var0[1] = Var51.f_3;
				Var0.f_13[1] = Var51.f_4;
			}
			break;
		
		case 106:
			if (iVar85)
			{
				dlc1::get_shop_ped_component(868111389, &Var51);
				Var0[1] = Var51.f_3;
				Var0.f_13[1] = Var51.f_4;
			}
			else
			{
				dlc1::get_shop_ped_component(-1695478944, &Var51);
				Var0[1] = Var51.f_3;
				Var0.f_13[1] = Var51.f_4;
			}
			break;
		
		case 107:
			if (iVar85)
			{
				dlc1::get_shop_ped_component(810530689, &Var51);
				Var0[1] = Var51.f_3;
				Var0.f_13[1] = Var51.f_4;
			}
			else
			{
				dlc1::get_shop_ped_component(-393062749, &Var51);
				Var0[1] = Var51.f_3;
				Var0.f_13[1] = Var51.f_4;
			}
			break;
		
		case 108:
			if (iVar85)
			{
				dlc1::get_shop_ped_component(-1723396730, &Var51);
				Var0[1] = Var51.f_3;
				Var0.f_13[1] = Var51.f_4;
			}
			else
			{
				dlc1::get_shop_ped_component(1982600156, &Var51);
				Var0[1] = Var51.f_3;
				Var0.f_13[1] = Var51.f_4;
			}
			break;
		
		case 109:
			if (iVar85)
			{
				dlc1::get_shop_ped_component(1024452888, &Var51);
				Var0[1] = Var51.f_3;
				Var0.f_13[1] = Var51.f_4;
			}
			else
			{
				dlc1::get_shop_ped_component(1109577920, &Var51);
				Var0[1] = Var51.f_3;
				Var0.f_13[1] = Var51.f_4;
			}
			break;
		
		case 110:
			if (iVar85)
			{
				dlc1::get_shop_ped_component(1645359304, &Var51);
				Var0[1] = Var51.f_3;
				Var0.f_13[1] = Var51.f_4;
			}
			else
			{
				dlc1::get_shop_ped_component(-450420789, &Var51);
				Var0[1] = Var51.f_3;
				Var0.f_13[1] = Var51.f_4;
			}
			break;
		
		case 111:
			if (iVar85)
			{
				dlc1::get_shop_ped_component(-1111303675, &Var51);
				Var0[1] = Var51.f_3;
				Var0.f_13[1] = Var51.f_4;
			}
			else
			{
				dlc1::get_shop_ped_component(39432231, &Var51);
				Var0[1] = Var51.f_3;
				Var0.f_13[1] = Var51.f_4;
			}
			break;
		
		case 112:
			if (iVar85)
			{
				dlc1::get_shop_ped_component(-1512687509, &Var51);
				Var0[1] = Var51.f_3;
				Var0.f_13[1] = Var51.f_4;
			}
			else
			{
				dlc1::get_shop_ped_component(4970004, &Var51);
				Var0[1] = Var51.f_3;
				Var0.f_13[1] = Var51.f_4;
			}
			break;
		
		case 113:
			if (iVar85)
			{
				dlc1::get_shop_ped_component(-544072285, &Var51);
				Var0[1] = Var51.f_3;
				Var0.f_13[1] = Var51.f_4;
			}
			else
			{
				dlc1::get_shop_ped_component(578089053, &Var51);
				Var0[1] = Var51.f_3;
				Var0.f_13[1] = Var51.f_4;
			}
			break;
		
		case 114:
			if (iVar85)
			{
				dlc1::get_shop_ped_component(370022589, &Var51);
				Var0[1] = Var51.f_3;
				Var0.f_13[1] = Var51.f_4;
			}
			else
			{
				dlc1::get_shop_ped_component(257455149, &Var51);
				Var0[1] = Var51.f_3;
				Var0.f_13[1] = Var51.f_4;
			}
			break;
		
		case 115:
			if (iVar85)
			{
				dlc1::get_shop_ped_component(-850691818, &Var51);
				Var0[1] = Var51.f_3;
				Var0.f_13[1] = Var51.f_4;
			}
			else
			{
				dlc1::get_shop_ped_component(-188672778, &Var51);
				Var0[1] = Var51.f_3;
				Var0.f_13[1] = Var51.f_4;
			}
			break;
		
		case 116:
			if (iVar85)
			{
				dlc1::get_shop_ped_component(720684258, &Var51);
				Var0[1] = Var51.f_3;
				Var0.f_13[1] = Var51.f_4;
			}
			else
			{
				dlc1::get_shop_ped_component(924498608, &Var51);
				Var0[1] = Var51.f_3;
				Var0.f_13[1] = Var51.f_4;
			}
			break;
		
		case 117:
			if (iVar85)
			{
				dlc1::get_shop_ped_component(1726934074, &Var51);
				Var0[1] = Var51.f_3;
				Var0.f_13[1] = Var51.f_4;
			}
			else
			{
				dlc1::get_shop_ped_component(-45733409, &Var51);
				Var0[1] = Var51.f_3;
				Var0.f_13[1] = Var51.f_4;
			}
			break;
		
		case 118:
			if (iVar85)
			{
				dlc1::get_shop_ped_component(-1508754657, &Var51);
				Var0[1] = Var51.f_3;
				Var0.f_13[1] = Var51.f_4;
			}
			else
			{
				dlc1::get_shop_ped_component(1384673675, &Var51);
				Var0[1] = Var51.f_3;
				Var0.f_13[1] = Var51.f_4;
			}
			break;
		
		case 119:
			if (iVar85)
			{
				dlc1::get_shop_ped_component(1331203501, &Var51);
				Var0[1] = Var51.f_3;
				Var0.f_13[1] = Var51.f_4;
			}
			else
			{
				dlc1::get_shop_ped_component(-1951407139, &Var51);
				Var0[1] = Var51.f_3;
				Var0.f_13[1] = Var51.f_4;
			}
			break;
		
		case 120:
			if (iVar85)
			{
				dlc1::get_shop_ped_component(-1832119149, &Var51);
				Var0[1] = Var51.f_3;
				Var0.f_13[1] = Var51.f_4;
			}
			else
			{
				dlc1::get_shop_ped_component(207316274, &Var51);
				Var0[1] = Var51.f_3;
				Var0.f_13[1] = Var51.f_4;
			}
			break;
		
		case 121:
			if (iVar85)
			{
				dlc1::get_shop_ped_component(-73891813, &Var51);
				Var0[1] = Var51.f_3;
				Var0.f_13[1] = Var51.f_4;
			}
			else
			{
				dlc1::get_shop_ped_component(2143125494, &Var51);
				Var0[1] = Var51.f_3;
				Var0.f_13[1] = Var51.f_4;
			}
			break;
		
		case 122:
			if (iVar85)
			{
				dlc1::get_shop_ped_component(-831648810, &Var51);
				Var0[1] = Var51.f_3;
				Var0.f_13[1] = Var51.f_4;
			}
			else
			{
				dlc1::get_shop_ped_component(-706250677, &Var51);
				Var0[1] = Var51.f_3;
				Var0.f_13[1] = Var51.f_4;
			}
			break;
		
		case 123:
			if (iVar85)
			{
				dlc1::get_shop_ped_component(414654567, &Var51);
				Var0[1] = Var51.f_3;
				Var0.f_13[1] = Var51.f_4;
			}
			else
			{
				dlc1::get_shop_ped_component(1626705513, &Var51);
				Var0[1] = Var51.f_3;
				Var0.f_13[1] = Var51.f_4;
			}
			break;
		
		case 124:
			if (iVar85)
			{
				dlc1::get_shop_ped_component(-1153553376, &Var51);
				Var0[1] = Var51.f_3;
				Var0.f_13[1] = Var51.f_4;
				Var0.f_26[0] = 4;
				Var0.f_36[0] = 1;
				Var0.f_26[1] = 7;
				Var0.f_36[1] = 0;
			}
			else
			{
				dlc1::get_shop_ped_component(-853413029, &Var51);
				Var0[1] = Var51.f_3;
				Var0.f_13[1] = Var51.f_4;
				dlc1::_0x5D5CAFF661DDF6FC(756477607, &Var68);
				Var0.f_26[1] = Var68.f_3;
				Var0.f_36[1] = Var68.f_4;
				Var0.f_26[0] = 4;
				Var0.f_36[0] = 0;
			}
			break;
		
		case 125:
			if (iVar85)
			{
				dlc1::get_shop_ped_component(404121039, &Var51);
				Var0[1] = Var51.f_3;
				Var0.f_13[1] = Var51.f_4;
				dlc1::_0x5D5CAFF661DDF6FC(-218637350, &Var68);
				Var0.f_26[0] = Var68.f_3;
				Var0.f_36[0] = Var68.f_4;
				Var0.f_26[1] = 7;
				Var0.f_36[1] = 0;
			}
			else
			{
				dlc1::get_shop_ped_component(1839346773, &Var51);
				Var0[1] = Var51.f_3;
				Var0.f_13[1] = Var51.f_4;
				dlc1::_0x5D5CAFF661DDF6FC(756477607, &Var68);
				Var0.f_26[1] = Var68.f_3;
				Var0.f_36[1] = Var68.f_4;
				dlc1::_0x5D5CAFF661DDF6FC(1037552091, &Var68);
				Var0.f_26[0] = Var68.f_3;
				Var0.f_36[0] = Var68.f_4;
			}
			break;
		
		case 126:
			if (iVar85)
			{
				dlc1::get_shop_ped_component(-932067705, &Var51);
				Var0[1] = Var51.f_3;
				Var0.f_13[1] = Var51.f_4;
				Var0.f_26[1] = 7;
				Var0.f_36[1] = 0;
				Var0.f_26[0] = 4;
				Var0.f_36[0] = 0;
			}
			else
			{
				dlc1::get_shop_ped_component(-1703735810, &Var51);
				Var0[1] = Var51.f_3;
				Var0.f_13[1] = Var51.f_4;
				dlc1::_0x5D5CAFF661DDF6FC(756477607, &Var68);
				Var0.f_26[1] = Var68.f_3;
				Var0.f_36[1] = Var68.f_4;
				Var0.f_26[0] = 4;
				Var0.f_36[0] = 0;
			}
			break;
		
		case 127:
			if (iVar85)
			{
				dlc1::get_shop_ped_component(100188564, &Var51);
				Var0[1] = Var51.f_3;
				Var0.f_13[1] = Var51.f_4;
				Var0.f_26[1] = 7;
				Var0.f_36[1] = 0;
				dlc1::_0x5D5CAFF661DDF6FC(1941593441, &Var68);
				Var0.f_26[0] = Var68.f_3;
				Var0.f_36[0] = Var68.f_4;
			}
			else
			{
				dlc1::get_shop_ped_component(1539215502, &Var51);
				Var0[1] = Var51.f_3;
				Var0.f_13[1] = Var51.f_4;
				dlc1::_0x5D5CAFF661DDF6FC(756477607, &Var68);
				Var0.f_26[1] = Var68.f_3;
				Var0.f_36[1] = Var68.f_4;
				dlc1::_0x5D5CAFF661DDF6FC(792734892, &Var68);
				Var0.f_26[0] = Var68.f_3;
				Var0.f_36[0] = Var68.f_4;
			}
			break;
		
		case 128:
			if (iVar85)
			{
				dlc1::get_shop_ped_component(1259316835, &Var51);
				Var0[1] = Var51.f_3;
				Var0.f_13[1] = Var51.f_4;
			}
			else
			{
				dlc1::get_shop_ped_component(-728857530, &Var51);
				Var0[1] = Var51.f_3;
				Var0.f_13[1] = Var51.f_4;
			}
			break;
		
		case 129:
			if (iVar85)
			{
				dlc1::get_shop_ped_component(989857348, &Var51);
				Var0[1] = Var51.f_3;
				Var0.f_13[1] = Var51.f_4;
			}
			else
			{
				dlc1::get_shop_ped_component(-1616110970, &Var51);
				Var0[1] = Var51.f_3;
				Var0.f_13[1] = Var51.f_4;
			}
			break;
		
		case 130:
			if (iVar85)
			{
				dlc1::get_shop_ped_component(2103642889, &Var51);
				Var0[1] = Var51.f_3;
				Var0.f_13[1] = Var51.f_4;
			}
			else
			{
				dlc1::get_shop_ped_component(113895612, &Var51);
				Var0[1] = Var51.f_3;
				Var0.f_13[1] = Var51.f_4;
			}
			break;
		
		case 131:
			if (iVar85)
			{
				dlc1::get_shop_ped_component(1873571740, &Var51);
				Var0[1] = Var51.f_3;
				Var0.f_13[1] = Var51.f_4;
			}
			else
			{
				dlc1::get_shop_ped_component(-106672527, &Var51);
				Var0[1] = Var51.f_3;
				Var0.f_13[1] = Var51.f_4;
			}
			break;
		
		case 132:
			if (iVar85)
			{
				dlc1::get_shop_ped_component(-1687395354, &Var51);
				Var0[1] = Var51.f_3;
				Var0.f_13[1] = Var51.f_4;
			}
			else
			{
				dlc1::get_shop_ped_component(39856713, &Var51);
				Var0[1] = Var51.f_3;
				Var0.f_13[1] = Var51.f_4;
			}
			break;
		
		case 133:
			if (iVar85)
			{
				dlc1::get_shop_ped_component(-228961962, &Var51);
				Var0[1] = Var51.f_3;
				Var0.f_13[1] = Var51.f_4;
			}
			else
			{
				dlc1::get_shop_ped_component(-204554982, &Var51);
				Var0[1] = Var51.f_3;
				Var0.f_13[1] = Var51.f_4;
			}
			break;
		
		case 134:
			if (iVar85)
			{
				dlc1::get_shop_ped_component(488564557, &Var51);
				Var0[1] = Var51.f_3;
				Var0.f_13[1] = Var51.f_4;
			}
			else
			{
				dlc1::get_shop_ped_component(461560974, &Var51);
				Var0[1] = Var51.f_3;
				Var0.f_13[1] = Var51.f_4;
			}
			break;
		
		case 135:
			if (iVar85)
			{
				dlc1::get_shop_ped_component(1714026850, &Var51);
				Var0[1] = Var51.f_3;
				Var0.f_13[1] = Var51.f_4;
			}
			else
			{
				dlc1::get_shop_ped_component(1027252245, &Var51);
				Var0[1] = Var51.f_3;
				Var0.f_13[1] = Var51.f_4;
			}
			break;
		
		case 136:
			if (iVar85)
			{
				dlc1::get_shop_ped_component(-30594710, &Var51);
				Var0[1] = Var51.f_3;
				Var0.f_13[1] = Var51.f_4;
			}
			else
			{
				dlc1::get_shop_ped_component(1657236270, &Var51);
				Var0[1] = Var51.f_3;
				Var0.f_13[1] = Var51.f_4;
			}
			break;
		
		case 137:
			if (iVar85)
			{
				dlc1::get_shop_ped_component(-337378088, &Var51);
				Var0[1] = Var51.f_3;
				Var0.f_13[1] = Var51.f_4;
			}
			else
			{
				dlc1::get_shop_ped_component(633729300, &Var51);
				Var0[1] = Var51.f_3;
				Var0.f_13[1] = Var51.f_4;
			}
			break;
		
		case 138:
			if (iVar85)
			{
				dlc1::get_shop_ped_component(-2055319474, &Var51);
				Var0[1] = Var51.f_3;
				Var0.f_13[1] = Var51.f_4;
			}
			else
			{
				dlc1::get_shop_ped_component(-379259419, &Var51);
				Var0[1] = Var51.f_3;
				Var0.f_13[1] = Var51.f_4;
			}
			break;
		
		case 139:
			if (iVar85)
			{
				dlc1::get_shop_ped_component(-923118242, &Var51);
				Var0[1] = Var51.f_3;
				Var0.f_13[1] = Var51.f_4;
			}
			else
			{
				dlc1::get_shop_ped_component(859776002, &Var51);
				Var0[1] = Var51.f_3;
				Var0.f_13[1] = Var51.f_4;
			}
			break;
		
		case 140:
			if (iVar85)
			{
				dlc1::get_shop_ped_component(-1657241662, &Var51);
				Var0[1] = Var51.f_3;
				Var0.f_13[1] = Var51.f_4;
			}
			else
			{
				dlc1::get_shop_ped_component(-1222438558, &Var51);
				Var0[1] = Var51.f_3;
				Var0.f_13[1] = Var51.f_4;
			}
			break;
		
		case 141:
			if (iVar85)
			{
				dlc1::get_shop_ped_component(-1286690297, &Var51);
				Var0[1] = Var51.f_3;
				Var0.f_13[1] = Var51.f_4;
			}
			else
			{
				dlc1::get_shop_ped_component(-1719406454, &Var51);
				Var0[1] = Var51.f_3;
				Var0.f_13[1] = Var51.f_4;
			}
			break;
		
		case 142:
			if (iVar85)
			{
				dlc1::get_shop_ped_component(1788975765, &Var51);
				Var0[1] = Var51.f_3;
				Var0.f_13[1] = Var51.f_4;
			}
			else
			{
				dlc1::get_shop_ped_component(614132804, &Var51);
				Var0[1] = Var51.f_3;
				Var0.f_13[1] = Var51.f_4;
			}
			break;
		
		case 143:
			if (iVar85)
			{
				dlc1::get_shop_ped_component(-1556608550, &Var51);
				Var0[1] = Var51.f_3;
				Var0.f_13[1] = Var51.f_4;
			}
			else
			{
				dlc1::get_shop_ped_component(1800279071, &Var51);
				Var0[1] = Var51.f_3;
				Var0.f_13[1] = Var51.f_4;
			}
			break;
		
		case 144:
			if (iVar85)
			{
				dlc1::get_shop_ped_component(-674383264, &Var51);
				Var0[1] = Var51.f_3;
				Var0.f_13[1] = Var51.f_4;
			}
			else
			{
				dlc1::get_shop_ped_component(1463965561, &Var51);
				Var0[1] = Var51.f_3;
				Var0.f_13[1] = Var51.f_4;
			}
			break;
		
		case 145:
			if (iVar85)
			{
				dlc1::get_shop_ped_component(1148172361, &Var51);
				Var0[1] = Var51.f_3;
				Var0.f_13[1] = Var51.f_4;
			}
			else
			{
				dlc1::get_shop_ped_component(1920936151, &Var51);
				Var0[1] = Var51.f_3;
				Var0.f_13[1] = Var51.f_4;
			}
			break;
		
		case 146:
			if (iVar85)
			{
				dlc1::get_shop_ped_component(-979659268, &Var51);
				Var0[1] = Var51.f_3;
				Var0.f_13[1] = Var51.f_4;
			}
			else
			{
				dlc1::get_shop_ped_component(1687220758, &Var51);
				Var0[1] = Var51.f_3;
				Var0.f_13[1] = Var51.f_4;
			}
			break;
		
		case 147:
			if (iVar85)
			{
				dlc1::get_shop_ped_component(-823314047, &Var51);
				Var0[1] = Var51.f_3;
				Var0.f_13[1] = Var51.f_4;
			}
			else
			{
				dlc1::get_shop_ped_component(270093336, &Var51);
				Var0[1] = Var51.f_3;
				Var0.f_13[1] = Var51.f_4;
			}
			break;
		
		case 148:
			if (iVar85)
			{
				dlc1::get_shop_ped_component(720798692, &Var51);
				Var0[1] = Var51.f_3;
				Var0.f_13[1] = Var51.f_4;
			}
			else
			{
				dlc1::get_shop_ped_component(-1058563483, &Var51);
				Var0[1] = Var51.f_3;
				Var0.f_13[1] = Var51.f_4;
			}
			break;
		
		case 149:
			if (iVar85)
			{
				dlc1::get_shop_ped_component(-1628310892, &Var51);
				Var0[1] = Var51.f_3;
				Var0.f_13[1] = Var51.f_4;
			}
			else
			{
				dlc1::get_shop_ped_component(406994096, &Var51);
				Var0[1] = Var51.f_3;
				Var0.f_13[1] = Var51.f_4;
			}
			break;
		
		case 150:
			if (iVar85)
			{
				dlc1::get_shop_ped_component(-194996551, &Var51);
				Var0[1] = Var51.f_3;
				Var0.f_13[1] = Var51.f_4;
			}
			else
			{
				dlc1::get_shop_ped_component(-753320248, &Var51);
				Var0[1] = Var51.f_3;
				Var0.f_13[1] = Var51.f_4;
			}
			break;
		
		case 151:
			if (iVar85)
			{
				dlc1::get_shop_ped_component(1283214762, &Var51);
				Var0[1] = Var51.f_3;
				Var0.f_13[1] = Var51.f_4;
			}
			else
			{
				dlc1::get_shop_ped_component(-344661230, &Var51);
				Var0[1] = Var51.f_3;
				Var0.f_13[1] = Var51.f_4;
			}
			break;
		
		case 152:
			if (iVar85)
			{
				dlc1::get_shop_ped_component(1580694162, &Var51);
				Var0[1] = Var51.f_3;
				Var0.f_13[1] = Var51.f_4;
			}
			else
			{
				dlc1::get_shop_ped_component(-1546019100, &Var51);
				Var0[1] = Var51.f_3;
				Var0.f_13[1] = Var51.f_4;
			}
			break;
		
		case 153:
			if (iVar85)
			{
				dlc1::get_shop_ped_component(-940968875, &Var51);
				Var0[1] = Var51.f_3;
				Var0.f_13[1] = Var51.f_4;
			}
			else
			{
				dlc1::get_shop_ped_component(-1437766026, &Var51);
				Var0[1] = Var51.f_3;
				Var0.f_13[1] = Var51.f_4;
			}
			break;
		
		case 154:
			if (iVar85)
			{
				dlc1::get_shop_ped_component(1602911556, &Var51);
				Var0[1] = Var51.f_3;
				Var0.f_13[1] = Var51.f_4;
			}
			else
			{
				dlc1::get_shop_ped_component(-145963571, &Var51);
				Var0[1] = Var51.f_3;
				Var0.f_13[1] = Var51.f_4;
			}
			break;
		
		case 155:
			if (iVar85)
			{
				dlc1::get_shop_ped_component(-1112612897, &Var51);
				Var0[1] = Var51.f_3;
				Var0.f_13[1] = Var51.f_4;
			}
			else
			{
				dlc1::get_shop_ped_component(1421525834, &Var51);
				Var0[1] = Var51.f_3;
				Var0.f_13[1] = Var51.f_4;
			}
			break;
		
		case 156:
			if (iVar85)
			{
				dlc1::get_shop_ped_component(-1025464096, &Var51);
				Var0[1] = Var51.f_3;
				Var0.f_13[1] = Var51.f_4;
			}
			else
			{
				dlc1::get_shop_ped_component(-8808018, &Var51);
				Var0[1] = Var51.f_3;
				Var0.f_13[1] = Var51.f_4;
			}
			break;
		
		case 157:
			if (iVar85)
			{
				dlc1::get_shop_ped_component(1267405068, &Var51);
				Var0[1] = Var51.f_3;
				Var0.f_13[1] = Var51.f_4;
			}
			else
			{
				dlc1::get_shop_ped_component(-958982678, &Var51);
				Var0[1] = Var51.f_3;
				Var0.f_13[1] = Var51.f_4;
			}
			break;
		
		case 158:
			if (iVar85)
			{
				dlc1::get_shop_ped_component(-1859500684, &Var51);
				Var0[1] = Var51.f_3;
				Var0.f_13[1] = Var51.f_4;
			}
			else
			{
				dlc1::get_shop_ped_component(816806937, &Var51);
				Var0[1] = Var51.f_3;
				Var0.f_13[1] = Var51.f_4;
			}
			break;
		
		case 159:
			if (iVar85)
			{
				dlc1::get_shop_ped_component(-1109166661, &Var51);
				Var0[1] = Var51.f_3;
				Var0.f_13[1] = Var51.f_4;
			}
			else
			{
				dlc1::get_shop_ped_component(-669632408, &Var51);
				Var0[1] = Var51.f_3;
				Var0.f_13[1] = Var51.f_4;
			}
			break;
		
		case 160:
			if (iVar85)
			{
				dlc1::get_shop_ped_component(-622756947, &Var51);
				Var0[1] = Var51.f_3;
				Var0.f_13[1] = Var51.f_4;
			}
			else
			{
				dlc1::get_shop_ped_component(-137805210, &Var51);
				Var0[1] = Var51.f_3;
				Var0.f_13[1] = Var51.f_4;
			}
			break;
		
		case 161:
			if (iVar85)
			{
				dlc1::get_shop_ped_component(-494465473, &Var51);
				Var0[1] = Var51.f_3;
				Var0.f_13[1] = Var51.f_4;
			}
			else
			{
				dlc1::get_shop_ped_component(578682352, &Var51);
				Var0[1] = Var51.f_3;
				Var0.f_13[1] = Var51.f_4;
			}
			break;
		
		case 162:
			if (iVar85)
			{
				dlc1::get_shop_ped_component(-2008590682, &Var51);
				Var0[1] = Var51.f_3;
				Var0.f_13[1] = Var51.f_4;
			}
			else
			{
				dlc1::get_shop_ped_component(1525418166, &Var51);
				Var0[1] = Var51.f_3;
				Var0.f_13[1] = Var51.f_4;
			}
			break;
		
		case 163:
			if (iVar85)
			{
				dlc1::get_shop_ped_component(1363307448, &Var51);
				Var0[1] = Var51.f_3;
				Var0.f_13[1] = Var51.f_4;
			}
			else
			{
				dlc1::get_shop_ped_component(-1338074765, &Var51);
				Var0[1] = Var51.f_3;
				Var0.f_13[1] = Var51.f_4;
			}
			break;
	}
	iVar137 = false;
	iVar50 = 0;
	while (iVar50 < 12)
	{
		if (Var0[iVar50] != -1)
		{
			(*uParam0)[iVar50] = Var0[iVar50];
			uParam0->f_13[iVar50] = Var0.f_13[iVar50];
			iVar137 = true;
		}
		iVar50++;
	}
	iVar50 = 0;
	while (iVar50 < Var0.f_26)
	{
		if (Var0.f_26[iVar50] != -1)
		{
			uParam0->f_26[iVar50] = Var0.f_26[iVar50];
			uParam0->f_36[iVar50] = Var0.f_36[iVar50];
			iVar137 = true;
		}
		iVar50++;
	}
	if (iVar137)
	{
		return true;
	}
	return false;
}

bool func_370(var uParam0, int iParam1, int iParam2, int iParam3)//Position - 0x62095
{
	int iVar0;
	int iVar1;
	var uVar2;
	
	uVar2 = func_371();
	if (((iParam1 >= 0 && iParam1 < 11) && Global_2097152[uVar2 /*10730*/].f_7546.f_1553[iParam1]) && iParam3 == iParam1 == 10)
	{
		iVar0 = 0;
		while (iVar0 < 12)
		{
			if (iVar0 != 1 || iParam2)
			{
				if (Global_2097152[uVar2 /*10730*/].f_7546.f_1043[iParam1 /*13*/][iVar0] != -1)
				{
					(*uParam0)[iVar0] = Global_2097152[uVar2 /*10730*/].f_7546.f_1043[iParam1 /*13*/][iVar0];
					uParam0->f_13[iVar0] = Global_2097152[uVar2 /*10730*/].f_7546.f_1187[iParam1 /*13*/][iVar0];
				}
			}
			iVar0++;
		}
		iVar1 = 0;
		while (iVar1 < 9)
		{
			if (Global_2097152[uVar2 /*10730*/].f_7546.f_1331[iParam1 /*10*/][iVar1] != -1)
			{
				uParam0->f_26[iVar1] = Global_2097152[uVar2 /*10730*/].f_7546.f_1331[iParam1 /*10*/][iVar1];
				uParam0->f_36[iVar1] = Global_2097152[uVar2 /*10730*/].f_7546.f_1442[iParam1 /*10*/][iVar1];
			}
			iVar1++;
		}
		uParam0->f_46[0] = Global_2097152[uVar2 /*10730*/].f_7546.f_1726[iParam1];
		return true;
	}
	return false;
}

int func_371()//Position - 0x621DD
{
	int iVar0;
	
	iVar0 = 0;
	return iVar0;
}

var func_372()//Position - 0x621EA
{
	return Global_2443860.f_5869;
}

int func_373(int iParam0, int iParam1, int iParam2, int iParam3)//Position - 0x621F9
{
	int iVar0;
	int iVar1;
	int iVar2;
	int iVar3;
	int iVar4;
	int iVar5;
	int iVar6;
	int iVar7;
	int iVar8;
	int iVar9;
	int iVar10;
	int iVar11;
	int iVar12;
	int iVar13;
	
	if (iParam2 == -1)
	{
		iParam2 = func_39();
	}
	iVar0 = 0;
	if (iParam0 >= 0 && iParam0 < 192)
	{
		iVar2 = stats::_0x80C75307B1C42837((iParam0 - 0), 0, 1, iParam2);
		iVar1 = ((iParam0 - 0) - stats::_0xF4D8E7AC2A27758C((iParam0 - 0)) * 64);
		iVar0 = stats::stat_set_bool_masked(iVar2, iParam1, iVar1, iParam3);
	}
	else if (iParam0 >= 192 && iParam0 < 384)
	{
		iVar3 = stats::_0x80C75307B1C42837((iParam0 - 192), 1, 1, iParam2);
		iVar1 = ((iParam0 - 192) - stats::_0xF4D8E7AC2A27758C((iParam0 - 192)) * 64);
		iVar0 = stats::stat_set_bool_masked(iVar3, iParam1, iVar1, iParam3);
	}
	else if (iParam0 >= 513 && iParam0 < 705)
	{
		iVar4 = stats::_0x80C75307B1C42837((iParam0 - 513), 0, 0, 0);
		iVar1 = ((iParam0 - 513) - stats::_0xF4D8E7AC2A27758C((iParam0 - 513)) * 64);
		iVar0 = stats::stat_set_bool_masked(iVar4, iParam1, iVar1, iParam3);
	}
	else if (iParam0 >= 705 && iParam0 < 1281)
	{
		iVar5 = stats::_0x80C75307B1C42837((iParam0 - 705), 1, 0, 0);
		iVar1 = ((iParam0 - 705) - stats::_0xF4D8E7AC2A27758C((iParam0 - 705)) * 64);
		iVar0 = stats::stat_set_bool_masked(iVar5, iParam1, iVar1, iParam3);
	}
	else if (iParam0 >= 3111 && iParam0 < 3879)
	{
		iVar6 = stats::_0xC4BB08EE7907471E((iParam0 - 3111), 0, 1, iParam2);
		iVar1 = ((iParam0 - 3111) - stats::_0xF4D8E7AC2A27758C((iParam0 - 3111)) * 64);
		iVar0 = stats::stat_set_bool_masked(iVar6, iParam1, iVar1, iParam3);
	}
	else if (iParam0 >= 2919 && iParam0 < 3111)
	{
		iVar7 = stats::_0xC4BB08EE7907471E((iParam0 - 2919), 0, 0, 0);
		iVar1 = ((iParam0 - 2919) - stats::_0xF4D8E7AC2A27758C((iParam0 - 2919)) * 64);
		iVar0 = stats::stat_set_bool_masked(iVar7, iParam1, iVar1, iParam3);
	}
	else if (iParam0 >= 4207 && iParam0 < 4335)
	{
		iVar8 = stats::_0xBA52FF538ED2BC71((iParam0 - 4207), 0, 1, iParam2, "_NGPSTAT_BOOL");
		iVar1 = ((iParam0 - 4207) - stats::_0xF4D8E7AC2A27758C((iParam0 - 4207)) * 64);
		iVar0 = stats::stat_set_bool_masked(iVar8, iParam1, iVar1, iParam3);
	}
	else if (iParam0 >= 4335 && iParam0 < 4399)
	{
		iVar9 = stats::_0xBA52FF538ED2BC71((iParam0 - 4335), 0, 0, 0, "_NGPSTAT_BOOL");
		iVar1 = ((iParam0 - 4335) - stats::_0xF4D8E7AC2A27758C((iParam0 - 4335)) * 64);
		iVar0 = stats::stat_set_bool_masked(iVar9, iParam1, iVar1, iParam3);
	}
	else if (iParam0 >= 6029 && iParam0 < 6413)
	{
		iVar10 = stats::_0xBA52FF538ED2BC71((iParam0 - 6029), 0, 1, iParam2, "_NGTATPSTAT_BOOL");
		iVar1 = ((iParam0 - 6029) - stats::_0xF4D8E7AC2A27758C((iParam0 - 6029)) * 64);
		iVar0 = stats::stat_set_bool_masked(iVar10, iParam1, iVar1, iParam3);
	}
	else if (iParam0 >= 7385 && iParam0 < 7641)
	{
		iVar11 = stats::_0xBA52FF538ED2BC71((iParam0 - 7385), 0, 1, iParam2, "_NGDLCPSTAT_BOOL");
		iVar1 = ((iParam0 - 7385) - stats::_0xF4D8E7AC2A27758C((iParam0 - 7385)) * 64);
		iVar0 = stats::stat_set_bool_masked(iVar11, iParam1, iVar1, iParam3);
	}
	else if (iParam0 >= 7321 && iParam0 < 7385)
	{
		iVar12 = stats::_0xBA52FF538ED2BC71((iParam0 - 7321), 0, 0, 0, "_NGDLCPSTAT_BOOL");
		iVar1 = ((iParam0 - 7321) - stats::_0xF4D8E7AC2A27758C((iParam0 - 7321)) * 64);
		iVar0 = stats::stat_set_bool_masked(iVar12, iParam1, iVar1, iParam3);
	}
	else if (iParam0 >= 9361 && iParam0 < 9553)
	{
		iVar13 = stats::_0xBA52FF538ED2BC71((iParam0 - 9361), 0, 1, iParam2, "_DLCBIKEPSTAT_BOOL");
		iVar1 = ((iParam0 - 9361) - stats::_0xF4D8E7AC2A27758C((iParam0 - 9361)) * 64);
		iVar0 = stats::stat_set_bool_masked(iVar13, iParam1, iVar1, iParam3);
	}
	return iVar0;
}

void func_374(int iParam0)//Position - 0x6258D
{
	Global_69516 = iParam0;
}

int func_375(int iParam0, int iParam1, int iParam2)//Position - 0x6259B
{
	int iVar0;
	int iVar1;
	int iVar2;
	
	if (iParam1 == -1)
	{
		iParam1 = func_39();
	}
	iVar0 = 0;
	iVar1 = func_377(iParam0, iParam1);
	iVar2 = func_376(iParam0);
	if (0 != iVar1)
	{
		if (!stats::stat_get_masked_int(iVar1, &iVar0, iVar2, 8, iParam2))
		{
			iVar0 = 0;
		}
	}
	return iVar0;
}

int func_376(int iParam0)//Position - 0x625E1
{
	int iVar0;
	
	iVar0 = 0;
	if (iParam0 >= 384 && iParam0 < 457)
	{
		iVar0 = ((iParam0 - 384) - stats::_0x94F12ABF9C79E339((iParam0 - 384)) * 8) * 8;
	}
	else if (iParam0 >= 457 && iParam0 < 513)
	{
		iVar0 = ((iParam0 - 457) - stats::_0x94F12ABF9C79E339((iParam0 - 457)) * 8) * 8;
	}
	else if (iParam0 >= 1281 && iParam0 < 1305)
	{
		iVar0 = ((iParam0 - 1281) - stats::_0x94F12ABF9C79E339((iParam0 - 1281)) * 8) * 8;
	}
	else if (iParam0 >= 1305 && iParam0 < 1361)
	{
		iVar0 = ((iParam0 - 1305) - stats::_0x94F12ABF9C79E339((iParam0 - 1305)) * 8) * 8;
	}
	else if (iParam0 >= 1361 && iParam0 < 1393)
	{
		iVar0 = ((iParam0 - 1361) - stats::_0x94F12ABF9C79E339((iParam0 - 1361)) * 8) * 8;
	}
	else if (iParam0 >= 1393 && iParam0 < 2919)
	{
		iVar0 = ((iParam0 - 1393) - stats::_0x94F12ABF9C79E339((iParam0 - 1393)) * 8) * 8;
	}
	else if (iParam0 >= 4143 && iParam0 < 4207)
	{
		iVar0 = ((iParam0 - 4143) - stats::_0x94F12ABF9C79E339((iParam0 - 4143)) * 8) * 8;
	}
	else if (iParam0 >= 3879 && iParam0 < 4143)
	{
		iVar0 = ((iParam0 - 3879) - stats::_0x94F12ABF9C79E339((iParam0 - 3879)) * 8) * 8;
	}
	else if (iParam0 >= 4399 && iParam0 < 6028)
	{
		iVar0 = ((iParam0 - 4399) - stats::_0x94F12ABF9C79E339((iParam0 - 4399)) * 8) * 8;
	}
	else if (iParam0 >= 6413 && iParam0 < 7262)
	{
		iVar0 = ((iParam0 - 6413) - stats::_0x94F12ABF9C79E339((iParam0 - 6413)) * 8) * 8;
	}
	else if (iParam0 >= 7262 && iParam0 < 7313)
	{
		iVar0 = ((iParam0 - 7262) - stats::_0x94F12ABF9C79E339((iParam0 - 7262)) * 8) * 8;
	}
	else if (iParam0 >= 7681 && iParam0 < 9361)
	{
		iVar0 = ((iParam0 - 7681) - stats::_0x94F12ABF9C79E339((iParam0 - 7681)) * 8) * 8;
	}
	else if (iParam0 >= 9553 && iParam0 < 15265)
	{
		iVar0 = ((iParam0 - 9553) - stats::_0x94F12ABF9C79E339((iParam0 - 9553)) * 8) * 8;
	}
	else if (iParam0 >= 7313 && iParam0 < 7321)
	{
		iVar0 = ((iParam0 - 7313) - stats::_0x94F12ABF9C79E339((iParam0 - 7313)) * 8) * 8;
	}
	else if (iParam0 >= 7641 && iParam0 < 7681)
	{
		iVar0 = ((iParam0 - 7641) - stats::_0x94F12ABF9C79E339((iParam0 - 7641)) * 8) * 8;
	}
	return iVar0;
}

int func_377(int iParam0, int iParam1)//Position - 0x6289D
{
	int iVar0;
	
	if (iParam1 == -1)
	{
		iParam1 = func_39();
	}
	iVar0 = 0;
	if (iParam0 >= 384 && iParam0 < 457)
	{
		iVar0 = stats::_0x61E111E323419E07((iParam0 - 384), 0, 1, iParam1);
	}
	else if (iParam0 >= 457 && iParam0 < 513)
	{
		iVar0 = stats::_0x61E111E323419E07((iParam0 - 457), 1, 1, iParam1);
	}
	else if (iParam0 >= 1281 && iParam0 < 1305)
	{
		iVar0 = stats::_0x61E111E323419E07((iParam0 - 1281), 0, 0, 0);
	}
	else if (iParam0 >= 1305 && iParam0 < 1361)
	{
		iVar0 = stats::_0x61E111E323419E07((iParam0 - 1305), 1, 0, 0);
	}
	else if (iParam0 >= 1361 && iParam0 < 1393)
	{
		iVar0 = stats::_0xD16C2AD6B8E32854((iParam0 - 1361), 0, 0, 0);
	}
	else if (iParam0 >= 1393 && iParam0 < 2919)
	{
		iVar0 = stats::_0xD16C2AD6B8E32854((iParam0 - 1393), 0, 1, iParam1);
	}
	else if (iParam0 >= 4143 && iParam0 < 4207)
	{
		iVar0 = stats::_0x2B4CDCA6F07FF3DA((iParam0 - 4143), 0, 0, 0, "_NGPSTAT_INT");
	}
	else if (iParam0 >= 3879 && iParam0 < 4143)
	{
		iVar0 = stats::_0x2B4CDCA6F07FF3DA((iParam0 - 3879), 0, 1, iParam1, "_NGPSTAT_INT");
	}
	else if (iParam0 >= 4399 && iParam0 < 6028)
	{
		iVar0 = stats::_0x2B4CDCA6F07FF3DA((iParam0 - 4399), 0, 1, iParam1, "_LRPSTAT_INT");
	}
	else if (iParam0 >= 6413 && iParam0 < 7262)
	{
		iVar0 = stats::_0x2B4CDCA6F07FF3DA((iParam0 - 6413), 0, 1, iParam1, "_APAPSTAT_INT");
	}
	else if (iParam0 >= 7262 && iParam0 < 7313)
	{
		iVar0 = stats::_0x2B4CDCA6F07FF3DA((iParam0 - 7262), 0, 1, iParam1, "_LR2PSTAT_INT");
	}
	else if (iParam0 >= 7681 && iParam0 < 9361)
	{
		iVar0 = stats::_0x2B4CDCA6F07FF3DA((iParam0 - 7681), 0, 1, iParam1, "_BIKEPSTAT_INT");
	}
	else if (iParam0 >= 9553 && iParam0 < 15265)
	{
		iVar0 = stats::_0x2B4CDCA6F07FF3DA((iParam0 - 9553), 0, 1, iParam1, "_IMPEXPPSTAT_INT");
	}
	else if (iParam0 >= 7313 && iParam0 < 7321)
	{
		iVar0 = stats::_0x2B4CDCA6F07FF3DA((iParam0 - 7313), 0, 0, 0, "_NGDLCPSTAT_INT");
	}
	else if (iParam0 >= 7641 && iParam0 < 7681)
	{
		iVar0 = stats::_0x2B4CDCA6F07FF3DA((iParam0 - 7641), 0, 1, iParam1, "_NGDLCPSTAT_INT");
	}
	return iVar0;
}

void func_378(int iParam0)//Position - 0x62B1B
{
	Global_2452437 = iParam0;
}

void func_379(int iParam0)//Position - 0x62B29
{
	Global_1363462 = (gameplay::get_game_timer() + iParam0);
}

void func_380()//Position - 0x62B3C
{
	Global_2494149.f_273 = 0;
	func_373(3782, 0, -1, 1);
	if (!ped::is_ped_injured(player::player_ped_id()))
	{
		if (func_381())
		{
			ped::set_ped_component_variation(player::player_ped_id(), 5, 0, 0, 0);
		}
	}
}

int func_381()//Position - 0x62B79
{
	return func_382(player::player_ped_id());
}

bool func_382(int iParam0)//Position - 0x62B89
{
	int iVar0;
	int iVar1;
	
	iVar0 = ped::get_ped_drawable_variation(iParam0, 5);
	iVar1 = -1;
	switch (entity::get_entity_model(iParam0))
	{
		case joaat("mp_m_freemode_01"):
			if ((iVar0 >= 1 && iVar0 <= 19) || (iVar0 >= 21 && iVar0 <= 29))
			{
				return true;
			}
			iVar1 = dlc1::get_hash_name_for_component(iParam0, 5, iVar0, ped::get_ped_texture_variation(iParam0, 5));
			if (dlc1::_0x341DE7ED1D2A1BFD(iVar1, 1532858877, 0))
			{
				return true;
			}
			break;
		
		case joaat("mp_f_freemode_01"):
			if ((iVar0 >= 1 && iVar0 <= 19) || (iVar0 >= 21 && iVar0 <= 29))
			{
				return true;
			}
			iVar1 = dlc1::get_hash_name_for_component(iParam0, 5, iVar0, ped::get_ped_texture_variation(iParam0, 5));
			if (dlc1::_0x341DE7ED1D2A1BFD(iVar1, 1532858877, 0))
			{
				return true;
			}
			break;
	}
	return false;
}

var func_383()//Position - 0x62C59
{
	return Global_2452437;
}

bool func_384()//Position - 0x62C65
{
	int iVar0;
	int iVar1;
	float fVar2;
	float fVar3;
	vector3 vVar4;
	vector3 vVar7;
	int iVar10;
	var uVar11;
	var uVar14;
	vector3 vVar17;
	vector3 vVar20;
	vector3 vVar23;
	var uVar26;
	int iVar27;
	
	switch (iLocal_3745)
	{
		case 0:
			streaming::request_anim_dict("move_m@GEneric");
			streaming::request_anim_dict("ANIM@MP_FM_EVENT@INTRO");
			vLocal_3764.z = unk_0x67D02A194A2FC2BD("MP_CELEBRATION");
			vLocal_3764.x = unk_0x67D02A194A2FC2BD("MP_CELEBRATION_BG");
			vLocal_3764.y = unk_0x67D02A194A2FC2BD("MP_CELEBRATION_FG");
			iLocal_3745 = 1;
			break;
		
		case 1:
			if ((((streaming::has_anim_dict_loaded("move_m@GEneric") && streaming::has_anim_dict_loaded("ANIM@MP_FM_EVENT@INTRO")) && graphics::has_scaleform_movie_loaded(vLocal_3764.y)) && graphics::has_scaleform_movie_loaded(vLocal_3764.x)) && graphics::has_scaleform_movie_loaded(vLocal_3764.y))
			{
				if (func_1555() == 4)
				{
					func_559(&vLocal_3764, "LOSER", "HUD_COLOUR_FREEMODE", 1, 0);
					func_555(&vLocal_3764, "LOSER", 1, "", "", "", 0, 0, 0, 0, 0);
					func_554(&vLocal_3764, 2200);
					func_553(&vLocal_3764, "LOSER", 75, 0);
					func_552(&vLocal_3764, "LOSER");
					func_550(1, 1);
					func_9(&uLocal_3751);
					iLocal_3745 = 2;
				}
				else
				{
					func_559(&vLocal_3764, "WINNER", "HUD_COLOUR_FREEMODE", 1, 0);
					func_555(&vLocal_3764, "WINNER", 0, "", "", "", 0, 0, 0, 0, 0);
					func_554(&vLocal_3764, 2200);
					func_553(&vLocal_3764, "WINNER", 75, 0);
					func_552(&vLocal_3764, "WINNER");
					func_550(1, 1);
					func_9(&uLocal_3751);
					iLocal_3745 = 3;
				}
			}
			break;
		
		case 2:
			if (func_383())
			{
				if (entity::does_entity_exist(player::player_ped_id()) && !entity::is_entity_dead(player::player_ped_id(), 0))
				{
					fVar3 = entity::get_entity_speed(player::player_ped_id());
				}
				func_549(entity::get_entity_coords(player::player_ped_id(), 1), 1079404134);
				iVar1 = func_547();
				iVar0 = ((iVar1 + 36 - 4) % 72);
				vVar4 = { vLocal_433[iVar1 /*3*/] };
				gameplay::get_ground_z_for_3d_coord(vVar4, &(vVar4.f_2), 0);
				fVar2 = func_546(vLocal_216[iVar1 /*3*/], vLocal_433[iVar1 /*3*/]);
				vVar23 = { entity::get_entity_coords(player::player_ped_id(), 0) };
				vVar17 = { entity::get_entity_forward_vector(player::player_ped_id()) };
				vVar20 = { vVar23 + vVar17 };
				iVar27 = worldprobe::_cast_3d_ray_point_to_point(vVar23, vVar20, 0.2f, 275, player::player_ped_id(), 7);
				worldprobe::_get_raycast_result(iVar27, &iVar10, &uVar11, &uVar14, &uVar26);
				if (iVar10 == 0 && !ped::is_ped_in_any_vehicle(player::player_ped_id(), 1))
				{
					entity::set_entity_coords(player::player_ped_id(), vVar4, 1, false, 0, 1);
					entity::set_entity_heading(player::player_ped_id(), fVar2);
					if (gameplay::absf(system::vmag(entity::get_entity_velocity(player::player_ped_id()))) >= 2.5f)
					{
						fVar3 = 2f;
					}
					else if (gameplay::absf(system::vmag(entity::get_entity_velocity(player::player_ped_id()))) > 0f)
					{
						fVar3 = 1f;
					}
					else
					{
						fVar3 = 0f;
					}
					weapon::give_weapon_to_ped(player::player_ped_id(), joaat("weapon_unarmed"), 0, true, true);
					if (fVar3 == 1f)
					{
						ai::task_play_anim(player::player_ped_id(), "move_m@GEneric", "wstop_l_0", 1000f, -8f, -1, 0, 0f, 0, 0, 0);
						ped::_0x2208438012482A1A(player::player_ped_id(), 0, 0);
					}
					else if (fVar3 == 2f)
					{
						ai::task_play_anim(player::player_ped_id(), "move_m@GEneric", "rstop_quick_l", 1000f, -8f, -1, 0, 0f, 0, 0, 0);
						vVar7 = { -0.85f, 1.25f, 0.4f };
						ped::_0x2208438012482A1A(player::player_ped_id(), 0, 0);
					}
					else if (fVar3 == 0f)
					{
						player::set_player_invincible(player::player_id(), 1);
						entity::freeze_entity_position(player::player_ped_id(), true);
						controls::disable_all_control_actions(2);
					}
					func_539(player::player_id(), 0, 3672064);
					if (cam::does_cam_exist(iLocal_4934))
					{
						cam::destroy_cam(iLocal_4934, 0);
					}
					if (cam::does_cam_exist(iLocal_4935))
					{
						cam::destroy_cam(iLocal_4935, 0);
					}
					iLocal_4935 = cam::create_cam("DEFAULT_SCRIPTED_CAMERA", false);
					iLocal_4934 = cam::create_cam("DEFAULT_SCRIPTED_CAMERA", false);
					if (func_537(player::player_ped_id()))
					{
						cam::set_cam_coord(iLocal_4934, vLocal_216[iVar0 /*3*/] + Vector(0.1f, 0f, 0f));
						cam::point_cam_at_entity(iLocal_4934, player::player_ped_id(), 0f, 0f, 0.125f, 1);
					}
					else
					{
						cam::set_cam_coord(iLocal_4934, vLocal_216[iVar0 /*3*/]);
						cam::point_cam_at_entity(iLocal_4934, player::player_ped_id(), 0f, 0f, 0.125f, 1);
					}
					cam::set_cam_fov(iLocal_4934, 20f);
					cam::set_cam_active(iLocal_4934, true);
					if (func_537(player::player_ped_id()))
					{
						cam::set_cam_coord(iLocal_4935, vLocal_216[iVar0 /*3*/] + Vector(0.1f, 0f, 0f));
						cam::point_cam_at_entity(iLocal_4934, player::player_ped_id(), 0f, 0f, 0.125f, 1);
					}
					else
					{
						cam::set_cam_coord(iLocal_4935, vLocal_216[iVar0 /*3*/]);
						cam::point_cam_at_entity(iLocal_4934, player::player_ped_id(), 0f, 0f, 0.125f, 1);
					}
					cam::point_cam_at_coord(iLocal_4935, entity::get_offset_from_entity_in_world_coords(player::player_ped_id(), vVar7));
					cam::set_cam_fov(iLocal_4935, 20f);
					cam::set_cam_active_with_interp(iLocal_4935, iLocal_4934, 1500, 3, 3);
					cam::shake_cam(iLocal_4935, "HAND_SHAKE", 0.3f);
					cam::render_script_cams(true, false, 3000, 1, 0, 0);
					iLocal_3745 = 4;
				}
				else if (ped::is_ped_in_any_vehicle(player::player_ped_id(), 1))
				{
					ai::clear_ped_tasks(player::player_ped_id());
					func_539(player::player_id(), 0, 3672064);
					iLocal_3745 = 4;
				}
				else
				{
					iLocal_3745 = 4;
				}
			}
			else
			{
				iLocal_3745 = 0;
				return true;
			}
			break;
		
		case 3:
			if (func_383())
			{
				if (entity::does_entity_exist(player::player_ped_id()))
				{
					if (!ped::is_ped_in_any_vehicle(player::player_ped_id(), 1))
					{
						weapon::give_weapon_to_ped(player::player_ped_id(), joaat("weapon_unarmed"), 0, true, true);
						iLocal_3746 = network::network_create_synchronised_scene(entity::get_offset_from_entity_in_world_coords(player::player_ped_id(), 0.05f, 0.5f, -1.11f), 0f, 0f, (entity::get_entity_heading(player::player_ped_id()) + 90f), 2, false, false, 1065353216, 0, 1065353216);
						network::_0xCF8BD3B0BD6D42D7(iLocal_3746, "ANIM@MP_FM_EVENT@INTRO", "BEAST_TRANSFORM_CAM");
						ai::task_play_anim(player::player_ped_id(), "ANIM@MP_FM_EVENT@INTRO", "BEAST_TRANSFORM", 1000f, -2f, -1, 0, 0f, 0, 0, 0);
						ped::_0x2208438012482A1A(player::player_ped_id(), 0, 0);
						network::_0xC9B43A33D09CADA7(iLocal_3746);
						network::network_start_synchronised_scene(iLocal_3746);
						if (!graphics::_get_screen_effect_is_active("BeastIntroScene"))
						{
							graphics::_start_screen_effect("BeastIntroScene", 0, 0);
						}
						audio::start_audio_scene("FM_Event_Beast_Transform_Sequence_Scene");
						audio::play_sound_frontend(-1, "Frontend_Beast_Transform_Back", "FM_Events_Sasquatch_Sounds", 0);
						iLocal_3745 = 4;
					}
					else
					{
						iLocal_3745 = 4;
					}
				}
			}
			else
			{
				iLocal_3745 = 0;
				return true;
			}
			break;
		
		case 4:
			if (func_383())
			{
				if (func_57(&uLocal_3751, 3000, 0))
				{
					if (!graphics::_get_screen_effect_is_active("BeastTransition"))
					{
						graphics::_start_screen_effect("BeastTransition", 0, 0);
					}
					if (func_57(&uLocal_3751, 4000, 0))
					{
						graphics::draw_rect(0.5f, 0.5f, 3f, 3f, 255, 255, 255, iLocal_3744, 0);
						if (!iLocal_3750)
						{
							iLocal_3750 = 1;
							audio::play_sound_frontend(-1, "Frontend_Beast_Fade_Screen", "FM_Events_Sasquatch_Sounds", 0);
						}
						if (!iLocal_3748)
						{
							iLocal_3744 += 30;
						}
						if (iLocal_3744 >= 255)
						{
							iLocal_3744 = 255;
							iLocal_3748 = 1;
							iLocal_3750 = 0;
							graphics::_set_frozen_rendering_disabled(0);
							func_64();
							ped::_0x4668D80430D6C299(player::player_ped_id());
							entity::set_entity_visible(player::player_ped_id(), false, 0);
							func_527(&vLocal_3764, 1, 0);
							func_550(0, 1);
							if (audio::is_audio_scene_active("FM_Event_Beast_Transform_Sequence_Scene"))
							{
								audio::stop_audio_scene("FM_Event_Beast_Transform_Sequence_Scene");
							}
							audio::start_audio_scene("FM_Event_Beast_Fade_White_Scene");
							if (iLocal_4937 != 0)
							{
								func_469(0, 0, 0);
								func_461(iLocal_4937, 0, 0);
								func_408(iLocal_4937, 1, 0);
								func_405(1);
							}
							iLocal_3745 = 5;
							func_9(&Global_2452439);
						}
					}
				}
				else
				{
					func_404(&vLocal_3764, 1);
				}
				func_393();
			}
			else
			{
				iLocal_3745 = 0;
				return true;
			}
			break;
		
		case 5:
			graphics::draw_rect(0.5f, 0.5f, 3f, 3f, 255, 255, 255, iLocal_3744, 0);
			if ((func_63(&Global_2452439, 500, 0) && ped::has_ped_head_blend_finished(player::player_ped_id())) && ped::_0x7350823473013C02(player::player_ped_id()))
			{
				if (graphics::_get_screen_effect_is_active("BeastIntroScene"))
				{
					graphics::_stop_screen_effect("BeastIntroScene");
				}
				if (ped::is_synchronized_scene_running(iLocal_3746))
				{
					network::network_stop_synchronised_scene(iLocal_3746);
					iLocal_3746 = -1;
				}
				if (entity::is_entity_playing_anim(player::player_ped_id(), "ANIM@MP_FM_EVENT@INTRO", "BEAST_TRANSFORM", 3))
				{
					entity::stop_entity_anim(player::player_ped_id(), "BEAST_TRANSFORM", "ANIM@MP_FM_EVENT@INTRO", -8f);
					streaming::remove_anim_dict("ANIM@MP_FM_EVENT@INTRO");
				}
				else
				{
					streaming::remove_anim_dict("ANIM@MP_FM_EVENT@INTRO");
				}
				entity::set_entity_visible(player::player_ped_id(), true, 0);
				cam::set_gameplay_cam_relative_heading(0f);
				cam::set_gameplay_cam_relative_pitch(0f, 1065353216);
				graphics::_set_frozen_rendering_disabled(1);
				streaming::remove_anim_dict("move_m@GEneric");
				cam::render_script_cams(false, false, 3000, 1, 0, 0);
				cam::destroy_all_cams(0);
				unk_0x15CFA549788D35EF();
				ui::display_hud(true);
				ui::display_radar(true);
				player::set_player_invincible(player::player_id(), 0);
				entity::freeze_entity_position(player::player_ped_id(), false);
				controls::enable_all_control_actions(2);
				func_539(player::player_id(), 1, 8388608);
				func_387(0);
				func_386();
				func_9(&uLocal_3751);
				func_385();
				iLocal_3745 = 6;
				func_9(&uLocal_3751);
			}
			break;
		
		case 6:
			graphics::draw_rect(0.5f, 0.5f, 3f, 3f, 255, 255, 255, iLocal_3744, 0);
			if (func_57(&uLocal_3751, 1300, 0))
			{
				if (audio::is_audio_scene_active("FM_Event_Beast_Fade_White_Scene"))
				{
					audio::stop_audio_scene("FM_Event_Beast_Fade_White_Scene");
				}
				if (iLocal_3748)
				{
					iLocal_3744 = (iLocal_3744 - 30);
				}
				if (iLocal_3744 < 0)
				{
					iLocal_3744 = 0;
					iLocal_3748 = 0;
					iLocal_3745 = 0;
					func_9(&Global_2452439);
					func_9(&uLocal_3751);
					return true;
				}
			}
			break;
	}
	return false;
}

void func_385()//Position - 0x6355F
{
	Global_2391047 = { 0f, 0f, 0f };
	Global_2391050 = 0;
}

void func_386()//Position - 0x63575
{
	Global_2433082.f_655.f_10 = 0;
}

void func_387(int iParam0)//Position - 0x63587
{
	if (iParam0)
	{
		func_392();
		if (Global_14443.f_1 == 10 || Global_14443.f_1 == 9)
		{
			gameplay::set_bit(&Global_2314, 16);
		}
		Global_14443.f_1 = 1;
		if (func_391(0))
		{
			func_388(0);
		}
	}
	else if (Global_14443.f_1 == 1)
	{
		if (!Global_14443.f_1 == 0)
		{
			Global_14443.f_1 = 3;
		}
	}
}

void func_388(int iParam0)//Position - 0x635EA
{
	if (Global_14604)
	{
		func_390(0, 0);
	}
	if (Global_14443.f_1 == 10 || Global_14443.f_1 == 9)
	{
		gameplay::set_bit(&Global_2314, 16);
	}
	if (audio::is_mobile_phone_call_ongoing())
	{
		audio::stop_scripted_conversation(false);
	}
	Global_15745 = 5;
	if (iParam0 == 1)
	{
		gameplay::set_bit(&Global_2313, 30);
	}
	else
	{
		gameplay::clear_bit(&Global_2313, 30);
	}
	if (!func_389())
	{
		Global_14443.f_1 = 3;
	}
}

bool func_389()//Position - 0x6365A
{
	if (Global_14443.f_1 == 1 || Global_14443.f_1 == 0)
	{
		return true;
	}
	return false;
}

void func_390(int iParam0, int iParam1)//Position - 0x63681
{
	if (iParam0)
	{
		if (func_391(0))
		{
			Global_14604 = 1;
			if (iParam1)
			{
				mobile::get_mobile_phone_position(&Global_14380);
			}
			Global_14371 = { Global_14389[Global_14388 /*3*/] };
			mobile::set_mobile_phone_position(Global_14371);
		}
	}
	else if (Global_14604 == 1)
	{
		Global_14604 = 0;
		Global_14371 = { Global_14396[Global_14388 /*3*/] };
		if (iParam1)
		{
			mobile::set_mobile_phone_position(Global_14380);
		}
		else
		{
			mobile::set_mobile_phone_position(Global_14371);
		}
	}
}

bool func_391(int iParam0)//Position - 0x636F5
{
	if (iParam0 == 1)
	{
		if (Global_14443.f_1 > 3)
		{
			if (gameplay::is_bit_set(Global_2313, 14))
			{
				return true;
			}
			else
			{
				return false;
			}
		}
		else
		{
			return false;
		}
	}
	if (script::_get_number_of_instances_of_streamed_script(joaat("cellphone_flashhand")) > 0)
	{
		return true;
	}
	if (Global_14443.f_1 > 3)
	{
		return true;
	}
	return false;
}

void func_392()//Position - 0x6374F
{
	if (Global_14443.f_1 == 9 || Global_14443.f_1 == 10)
	{
		Global_15798 = 0;
		Global_15794 = 1;
	}
}

void func_393()//Position - 0x63778
{
	int iVar0;
	
	if (func_403() || func_402())
	{
		return;
	}
	ui::hide_scripted_hud_component_this_frame(19);
	func_401();
	func_400();
	func_399();
	ui::_0x25F87B30C382FCA7();
	cam::_disable_vehicle_first_person_cam_this_frame();
	cam::_disable_first_person_cam_this_frame();
	func_397();
	func_395();
	iVar0 = false;
	iVar0 = func_394("HQRHELP");
	if (!iVar0)
	{
		ui::hide_help_text_this_frame();
	}
	ui::hide_hud_and_radar_this_frame();
	ui::hide_scripted_hud_component_this_frame(19);
	ui::hide_hud_component_this_frame(2);
	ui::hide_hud_component_this_frame(1);
	ui::hide_hud_component_this_frame(3);
	ui::hide_hud_component_this_frame(4);
	ui::hide_hud_component_this_frame(13);
	ui::hide_hud_component_this_frame(15);
	ui::hide_hud_component_this_frame(11);
	ui::hide_hud_component_this_frame(12);
	ui::hide_hud_component_this_frame(18);
}

int func_394(char* sParam0)//Position - 0x6380E
{
	ui::_0x0A24DA3A41B718F5(sParam0);
	return ui::_0x10BDDBFC529428DD(0);
}

void func_395()//Position - 0x63821
{
	unk1::_0xEB2D525B57F42B40();
	func_396();
}

void func_396()//Position - 0x63831
{
	Global_17151.f_134 = 1;
}

void func_397()//Position - 0x6383F
{
	if (!func_398(player::player_id(), 0, 0))
	{
		cam::_disable_vehicle_first_person_cam_this_frame();
		cam::_disable_first_person_cam_this_frame();
	}
}

bool func_398(int iParam0, int iParam1, int iParam2)//Position - 0x6385D
{
	if (Global_2421621[iParam0 /*358*/].f_225 == 99)
	{
		if ((iParam2 && Global_2421621[iParam0 /*358*/].f_228 == 0) || iParam2 == 0)
		{
			return false;
		}
	}
	if (iParam1)
	{
		if (Global_2421621[iParam0 /*358*/].f_225 == 13)
		{
			return false;
		}
	}
	return true;
}

void func_399()//Position - 0x638B4
{
	gameplay::set_bit(&Global_2314, 4);
}

void func_400()//Position - 0x638C4
{
	if (!Global_14443.f_1 == 1)
	{
		if (func_391(0))
		{
			func_388(0);
		}
		gameplay::set_bit(&Global_2314, 2);
	}
}

void func_401()//Position - 0x638EC
{
	gameplay::set_bit(&Global_2314, 7);
}

int func_402()//Position - 0x638FC
{
	return Global_1589933[player::player_id() /*601*/] == 148;
}

int func_403()//Position - 0x63912
{
	return Global_1589933[player::player_id() /*601*/] == 5;
}

void func_404(int iParam0, int iParam1)//Position - 0x63927
{
	if (iParam1)
	{
		cam::_0x5A43C76F7FC7BA5F();
	}
	if ((*iParam0 != 0 && iParam0->f_1 != 0) && iParam0->f_2 != 0)
	{
		graphics::draw_scaleform_movie_fullscreen_masked(*iParam0, iParam0->f_1, 255, 255, 255, 255);
		graphics::draw_scaleform_movie_fullscreen(iParam0->f_2, 255, 255, 255, 255, 0);
	}
}

void func_405(int iParam0)//Position - 0x63976
{
	if (iParam0)
	{
		func_407(10);
	}
	else
	{
		func_406(10);
	}
}

void func_406(int iParam0)//Position - 0x63992
{
	gameplay::clear_bit(&(Global_1618089[player::player_id() /*390*/].f_11.f_4), iParam0);
}

void func_407(int iParam0)//Position - 0x639AF
{
	gameplay::set_bit(&(Global_1618089[player::player_id() /*390*/].f_11.f_4), iParam0);
}

void func_408(int iParam0, int iParam1, int iParam2)//Position - 0x639CC
{
	int iVar0;
	int iVar1;
	int iVar2;
	int iVar3;
	int iVar4;
	int iVar5;
	struct<10> Var6;
	
	if ((!func_256(player::player_id()) || !func_458(iParam0)) || iParam1)
	{
		iVar0 = func_457(iParam0);
		if (func_456() != func_45() && !func_455())
		{
			if (!func_454(1))
			{
				unk_0xD1C9B92BDD3F151D(func_453(func_456()), func_452(func_456()), iParam0);
			}
			if (iVar0 == 0)
			{
				iVar1 = false;
				if (func_450())
				{
					iVar1 = true;
				}
				func_449();
				if (iVar1)
				{
					iVar2 = func_359(2034, -1, 0);
					ped::set_ped_component_variation(player::player_ped_id(), 5, func_89(player::player_ped_id(), iVar2), func_88(player::player_ped_id(), iVar2), func_87(player::player_ped_id(), iVar2));
					func_254(1);
				}
			}
			else
			{
				iVar3 = -1;
				iVar4 = func_446();
				if (func_445(iVar0))
				{
					iVar3 = 0;
				}
				iVar5 = true;
				if (func_450() && !iParam2)
				{
					iVar5 = false;
				}
				if (ped::is_ped_in_any_vehicle(player::player_ped_id(), 0))
				{
					if (!vehicle::is_this_model_a_bike(entity::get_entity_model(ped::get_vehicle_ped_is_in(player::player_ped_id(), 0))))
					{
						Global_2501786.f_13 = 1;
					}
				}
				ped::clear_all_ped_props(player::player_ped_id());
				Var6.f_1 = -1;
				Var6.f_2 = -1;
				Var6.f_3 = -1;
				Var6.f_4 = -1;
				Var6.f_8 = -1;
				Var6.f_9 = 27;
				Var6 = player::player_ped_id();
				Var6.f_1 = iVar0;
				Var6.f_8 = -1;
				Var6.f_6 = 1;
				func_410(&Var6, func_444(iVar0), 0, 1, 1, iVar5, 0, iVar4, iVar3, func_443(iVar0));
				player::set_player_parachute_tint_index(player::player_id(), func_259(iParam0));
				func_409(32, func_36(1, 1));
			}
		}
	}
}

void func_409(int iParam0, int iParam1)//Position - 0x63B57
{
	vector3 vVar0;
	
	vVar0.x = 2;
	vVar0.y = player::player_id();
	vVar0.z = iParam0;
	if (!iParam1 == 0)
	{
		script::trigger_script_event(1, &vVar0, 3, iParam1);
	}
}

bool func_410(var uParam0, int iParam1, int iParam2, int iParam3, int iParam4, int iParam5, int iParam6, int iParam7, int iParam8, int iParam9)//Position - 0x63B85
{
	int iVar0;
	int iVar1;
	int iVar2;
	int iVar3;
	int iVar4;
	int iVar5;
	int iVar6;
	int iVar7;
	int iVar8;
	int iVar9;
	int iVar10;
	struct<14> Var11;
	int iVar25;
	int iVar26;
	int iVar27;
	int iVar28;
	struct<4> Var29;
	int iVar46;
	int iVar47;
	int iVar48;
	int iVar49;
	int iVar50;
	int iVar51;
	var uVar52;
	var uVar53;
	int iVar54;
	int iVar55;
	int iVar56;
	int iVar57;
	int iVar58;
	int iVar59;
	int iVar60;
	struct<8> Var61;
	struct<9> Var76;
	int iVar89;
	int iVar90;
	int iVar91;
	int iVar92;
	int iVar93;
	
	iVar0 = 0;
	while (iVar0 < 12)
	{
		Global_69588[iVar0] = -1;
		Global_69588.f_13[iVar0] = -1;
		iVar0++;
	}
	iVar0 = 0;
	while (iVar0 < Global_69588.f_26)
	{
		Global_69588.f_26[iVar0] = -1;
		Global_69588.f_36[iVar0] = -1;
		iVar0++;
	}
	iVar0 = 0;
	while (iVar0 < Global_69588.f_46)
	{
		Global_69588.f_46[iVar0] = -1;
		iVar0++;
	}
	if (!ped::is_ped_dead_or_dying(*uParam0, 1))
	{
		iVar1 = entity::get_entity_model(*uParam0);
		if (iVar1 == joaat("mp_m_freemode_01") || iVar1 == joaat("mp_f_freemode_01"))
		{
			iVar2 = false;
			if (uParam0->f_1 != -1 && uParam0->f_1 != 1020)
			{
				iVar2 = true;
			}
			if (uParam0->f_2 != -1 && uParam0->f_2 != 164)
			{
				iVar2 = true;
			}
			else if ((uParam0->f_2 == -1 && iParam1) && iParam2)
			{
				iVar2 = true;
			}
			if (iVar2)
			{
				iVar3 = false;
				if (!iParam2)
				{
					if (func_438(&Global_69588, *uParam0, iParam1))
					{
						iVar3 = true;
					}
				}
				if ((iParam1 && uParam0->f_1 != 32) && uParam0->f_1 != 81)
				{
					if (func_369(&Global_69588, *uParam0, iParam2, iParam4))
					{
						iVar3 = true;
					}
				}
				iVar4 = -1;
				if (uParam0->f_3 != -1)
				{
					if (func_436(*uParam0, &Global_69588, uParam0->f_3, &iVar4))
					{
						iVar3 = true;
					}
				}
				if (uParam0->f_4 != -1)
				{
					if (func_436(*uParam0, &Global_69588, uParam0->f_4, &iVar4))
					{
						iVar3 = true;
					}
				}
				if (iVar3)
				{
					switch (uParam0->f_6)
					{
						case 0:
							iVar5 = true;
							if (!func_435(uParam0, &Global_69588))
							{
								iVar5 = false;
							}
							if (iVar5)
							{
								uParam0->f_6 = 1;
							}
							break;
						
						case 1:
							if (!iParam6)
							{
								ped::clear_all_ped_props(*uParam0);
								ped::_0x687C0B594907D2E8(*uParam0);
								ped::remove_ped_helmet(*uParam0, 1);
								if (iParam3)
								{
									ped::clear_ped_wetness(*uParam0);
									ped::clear_ped_blood_damage(*uParam0);
								}
								iVar6 = 0;
								iVar7 = ped::get_ped_drawable_variation(*uParam0, 5);
								iVar8 = -1;
								iVar7 = iVar7;
								iVar8 = iVar8;
								if (func_382(*uParam0))
								{
									iVar6 = 1;
								}
								if (iVar6 && iParam5)
								{
									Global_69588[5] = 0;
									if (Global_69588.f_13[5] == -1)
									{
										Global_69588.f_13[5] = 0;
									}
								}
								if (iParam1)
								{
									if (((uParam0->f_2 != -1 && uParam0->f_2 != -2) && uParam0->f_1 != 32) && uParam0->f_1 != 81)
									{
										if (func_434(uParam0->f_2) == 22)
										{
											Global_69588.f_26[2] = -1;
										}
										else if (func_434(uParam0->f_2) == 8)
										{
											Global_69588.f_26[1] = -1;
											Global_69588.f_26[2] = -1;
										}
										else
										{
											Global_69588.f_26[1] = -1;
											Global_69588.f_26[2] = -1;
											Global_69588.f_26[0] = -1;
											if (ped::is_ped_in_any_vehicle(*uParam0, 0))
											{
												ped::_0x687C0B594907D2E8(*uParam0);
											}
										}
										if (entity::get_entity_model(*uParam0) == joaat("mp_f_freemode_01"))
										{
											if (func_433(iVar1, 7, func_160(*uParam0, Global_69588[7], Global_69588.f_13[7], 7), -1))
											{
												Global_69588[7] = 0;
												Global_69588.f_13[7] = 0;
											}
										}
									}
									else if (uParam0->f_2 == -2)
									{
										iVar9 = dlc1::get_hash_name_for_component(*uParam0, 1, Global_69588[1], Global_69588.f_13[1]);
										if (dlc1::_0x341DE7ED1D2A1BFD(iVar9, 838607662, 0) && ped::get_ped_drawable_variation(*uParam0, 1) == Global_69588[1])
										{
										}
										else
										{
											Global_69588.f_26[1] = -1;
											Global_69588.f_26[2] = -1;
											Global_69588.f_26[0] = -1;
											if (entity::get_entity_model(*uParam0) == joaat("mp_f_freemode_01"))
											{
												if (func_433(iVar1, 7, func_160(*uParam0, Global_69588[7], Global_69588.f_13[7], 7), -1))
												{
													Global_69588[7] = 0;
													Global_69588.f_13[7] = 0;
												}
											}
											if (ped::is_ped_in_any_vehicle(*uParam0, 0))
											{
												ped::_0x687C0B594907D2E8(*uParam0);
											}
										}
									}
									else if (uParam0->f_2 == -1 && iParam2)
									{
										Global_69588.f_26[1] = -1;
										Global_69588.f_26[2] = -1;
										Global_69588.f_26[0] = -1;
										if (ped::is_ped_in_any_vehicle(*uParam0, 0))
										{
											ped::_0x687C0B594907D2E8(*uParam0);
										}
									}
								}
								func_432(*uParam0, &Global_69588, uParam0->f_8);
								if ((Global_1589933[player::player_id() /*601*/].f_95.f_28 != -1 && Global_1589933[player::player_id() /*601*/].f_95.f_28 < 4) && player::player_id() != -1)
								{
									if (gameplay::is_bit_set(Global_1632166.f_91[Global_1589933[player::player_id() /*601*/].f_95.f_28 /*8128*/].f_4331, 4))
									{
										if (Global_2421621[player::player_id() /*358*/].f_118 == 7 || Global_2421621[player::player_id() /*358*/].f_118 == 2)
										{
											ped::set_ped_head_overlay(*uParam0, 4, 0, 0f);
										}
									}
								}
								unk_0x95EB5E34F821BABE(*uParam0, "", "");
								iVar0 = 0;
								while (iVar0 < 12)
								{
									if (Global_69588[iVar0] != -1)
									{
										if (iVar0 == 10 && iParam7 != -1)
										{
											iVar10 = func_160(*uParam0, Global_69588[iVar0], Global_69588.f_13[iVar0], 10);
											if (func_431(iVar1, 10, iVar10, -1))
											{
												if (iParam7 == 0)
												{
													ped::set_ped_component_variation(*uParam0, iVar0, 0, 0, 0);
												}
												else if (iParam7 == 1)
												{
													if (*uParam0 == player::player_ped_id() && !func_276())
													{
														ped::set_ped_component_variation(*uParam0, iVar0, 0, 0, 0);
													}
													else
													{
														ped::set_ped_component_variation(*uParam0, iVar0, Global_69588[iVar0], Global_69588.f_13[iVar0], 0);
													}
												}
												else if (iParam7 == 2)
												{
													graphics::request_streamed_texture_dict(func_430(player::player_id(), 0), false);
													unk_0x95EB5E34F821BABE(*uParam0, func_430(player::player_id(), 0), func_427(player::player_id(), 2));
													ped::set_ped_component_variation(*uParam0, iVar0, Global_69588[iVar0], Global_69588.f_13[iVar0], 0);
												}
												else
												{
													ped::set_ped_component_variation(*uParam0, iVar0, 0, 0, 0);
												}
											}
											else
											{
												ped::set_ped_component_variation(*uParam0, iVar0, Global_69588[iVar0], Global_69588.f_13[iVar0], 0);
											}
										}
										else
										{
											ped::set_ped_component_variation(*uParam0, iVar0, Global_69588[iVar0], Global_69588.f_13[iVar0], 0);
										}
									}
									iVar0++;
								}
								iVar0 = 0;
								while (iVar0 < Global_69588.f_26)
								{
									if (Global_69588.f_26[iVar0] != -1 && Global_69588.f_26[iVar0] != 255)
									{
										func_177(*uParam0, iVar0, Global_69588.f_26[iVar0], Global_69588.f_36[iVar0]);
									}
									iVar0++;
								}
								if ((iVar6 && !iParam5) && *uParam0 == player::player_ped_id())
								{
									func_255(player::player_id(), -1, -1);
								}
								if (!func_426(*uParam0))
								{
									if (uParam0->f_2 >= 52 && uParam0->f_2 <= 59)
									{
										ped::set_ped_helmet_prop_index(*uParam0, Global_69588.f_26[0], 1);
										ped::set_ped_helmet_texture_index(*uParam0, Global_69588.f_36[0]);
										func_425(*uParam0, Global_69588.f_26[0], Global_69588.f_36[0], 1);
									}
									else
									{
										Var11 = { func_192(iVar1, 14, func_359(583, -1, 0)) };
										if (Var11.f_3 != -1 && Var11.f_4 != -1)
										{
											if (func_164(iVar1, 14, func_359(583, -1, 0), -1))
											{
												ped::set_ped_helmet_prop_index(*uParam0, Var11.f_3, 1);
												ped::set_ped_helmet_texture_index(*uParam0, Var11.f_4);
												func_425(*uParam0, Var11.f_3, Var11.f_4, 1);
											}
										}
										ped::set_ped_config_flag(*uParam0, 34, false);
										ped::set_ped_config_flag(*uParam0, 36, false);
									}
								}
								else if (Global_69588.f_26[0] != -1 && Global_69588.f_26[0] != 255)
								{
									func_425(*uParam0, Global_69588.f_26[0], Global_69588.f_36[0], 0);
								}
								if (!func_357())
								{
									if (uParam0->f_3 != -1)
									{
										func_418(*uParam0, uParam0->f_3, uParam0->f_8);
									}
									if ((uParam0->f_4 != -1 && uParam0->f_1 != 32) && uParam0->f_1 != 81)
									{
										func_418(*uParam0, uParam0->f_4, uParam0->f_8);
									}
									if ((*uParam0 == player::player_ped_id() && uParam0->f_1 != 0) && uParam0->f_1 != -1)
									{
										func_237(2057, 1, -1, 1, 0);
									}
									if (func_417(*uParam0, 7))
									{
										if (!iParam1 || uParam0->f_2 == -1)
										{
											ped::set_ped_component_variation(*uParam0, 7, 0, 0, 0);
											ped::clear_ped_prop(*uParam0, 0);
										}
									}
									else if (func_416(*uParam0))
									{
										iVar25 = func_162(*uParam0, 1);
										iVar26 = ped::get_ped_texture_variation(*uParam0, 8);
										ped::set_ped_component_variation(*uParam0, 8, iVar25, iVar26, 0);
										ped::clear_ped_prop(*uParam0, 0);
									}
									else if (!func_416(*uParam0) && func_415(*uParam0))
									{
										iVar27 = func_162(*uParam0, 0);
										iVar28 = ped::get_ped_texture_variation(*uParam0, 8);
										ped::set_ped_component_variation(*uParam0, 8, iVar27, iVar28, 0);
										ped::clear_ped_prop(*uParam0, 0);
									}
									if (!iParam9)
									{
										func_161(*uParam0);
									}
									if (uParam0->f_3 != 4 && uParam0->f_1 == 0)
									{
										if (iVar1 == joaat("mp_m_freemode_01"))
										{
											dlc1::get_shop_ped_component(-1107182781, &Var29);
										}
										else if (iVar1 == joaat("mp_f_freemode_01"))
										{
											dlc1::get_shop_ped_component(270557663, &Var29);
										}
										if (Global_69588[2] == Var29.f_3)
										{
											Global_69588[2] = -1;
										}
									}
									if (func_414(uParam0->f_1))
									{
										if (Global_1618089[player::player_id() /*390*/].f_11.f_68.f_20 == 0)
										{
											ped::set_ped_component_variation(*uParam0, 0, 0, 0, 0);
											ped::set_ped_component_variation(*uParam0, 1, 0, 0, 0);
											func_177(*uParam0, 0, -1, 0);
											func_177(*uParam0, 1, -1, 0);
											func_177(*uParam0, 2, -1, 0);
											func_66(*uParam0, 14, 0, 1, -1, 0, 0, 0, -1, -1, -1, 0, 0, 0);
											ped::set_ped_config_flag(*uParam0, 380, true);
										}
									}
									if (Global_69588[2] == -1)
									{
										if ((uParam0->f_8 != -1 && player::int_to_playerindex(uParam0->f_8) != player::player_id()) && !*uParam0 == player::player_ped_id())
										{
											iVar46 = Global_2421621[uParam0->f_8 /*358*/].f_244;
											iVar47 = Global_2421621[uParam0->f_8 /*358*/].f_245;
											iVar48 = 1;
											func_66(*uParam0, 2, Global_2421621[uParam0->f_8 /*358*/].f_243, 0, -1, 0, 0, iVar48, iVar46, iVar47, uParam0->f_8, 1, 0, 0);
										}
										else
										{
											iVar46 = func_359(2145, -1, 0);
											iVar47 = func_359(2152, -1, 0);
											if (func_68(161, -1))
											{
												iVar49 = func_359(2045, -1, 0);
												if (gameplay::is_pc_version() && iVar1 == joaat("mp_f_freemode_01"))
												{
													if (iVar49 == func_75(iVar1, -341963269, 2, 4))
													{
														iVar49 = func_75(iVar1, 1149945242, 2, 4);
													}
													else if (iVar49 == func_75(iVar1, 1149945242, 2, 4))
													{
														iVar49 = func_75(iVar1, -341963269, 2, 4);
													}
												}
												func_66(*uParam0, 2, iVar49, 0, -1, 0, 0, 0, iVar46, iVar47, -1, 1, 0, 0);
											}
											else
											{
												iVar50 = func_359(747, -1, 0);
												func_66(*uParam0, 2, iVar50, 0, -1, 0, 0, 0, iVar46, iVar47, -1, 1, 0, 0);
											}
										}
									}
								}
							}
							if (!func_357())
							{
								if (uParam0->f_1 == 0)
								{
									iVar51 = false;
								}
								else
								{
									iVar51 = true;
								}
								if (uParam0->f_8 != -1)
								{
									func_413(*uParam0, &(Global_1615346[uParam0->f_8 /*28*/]), iVar51);
								}
								else
								{
									func_107(*uParam0, iVar51, 0);
								}
								if (func_131(*uParam0))
								{
									Global_69588.f_46[0] = 1570178485;
									Global_69588.f_46[1] = -1619850916;
									Global_69588.f_46[2] = -713067148;
								}
								if (iParam8 != -1)
								{
									iVar54 = dlc1::get_hash_name_for_component(*uParam0, 11, ped::get_ped_drawable_variation(*uParam0, 11), ped::get_ped_texture_variation(*uParam0, 11));
									if (func_412(iVar54, iParam8, &uVar52, &uVar53))
									{
										Global_69588.f_46[0] = uVar53;
									}
								}
								iVar55 = 0;
								while (iVar55 < Global_69588.f_46)
								{
									if (Global_69588.f_46[iVar55] != -1)
									{
										iVar56 = true;
									}
									iVar55++;
								}
								if (iVar56)
								{
									iVar89 = func_142(*uParam0);
									iVar59 = dlc1::_0x278F76C3B0A8F109(iVar89);
									iVar90 = func_130(*uParam0);
									iVar91 = func_128(*uParam0);
									iVar92 = func_169(*uParam0);
									iVar93 = func_127(*uParam0);
									func_107(*uParam0, iVar51, 0);
									iVar57 = 0;
									while (iVar57 < 127)
									{
										if (func_112(&Var76, iVar57, iVar89, *uParam0, -1))
										{
											iVar55 = 0;
											while (iVar55 < Global_69588.f_46)
											{
												if (Global_69588.f_46[iVar55] == Var76.f_5 && Global_69588.f_46[iVar55] != -1)
												{
													iVar60 = false;
													if (Var76.f_8 == 1019352240)
													{
														if (iParam7 == 0)
														{
															iVar60 = true;
														}
														else if (iParam7 == 1)
														{
														}
														else if (iParam7 == 2)
														{
															graphics::request_streamed_texture_dict(func_430(player::player_id(), 0), false);
															unk_0x95EB5E34F821BABE(*uParam0, func_430(player::player_id(), 0), func_427(player::player_id(), 2));
														}
													}
													if (!iVar60)
													{
														if (!func_109(*uParam0, &Var76, Var76.f_4, Var76.f_8, iVar90, iVar91, iVar92, iVar93))
														{
															iVar60 = true;
														}
													}
													if (!iVar60)
													{
														ped::_set_ped_decoration(*uParam0, Var76.f_4, Var76.f_5);
														func_108(*uParam0, Var76.f_4, Var76.f_5);
													}
												}
												iVar55++;
											}
										}
										iVar57++;
									}
									iVar58 = 0;
									while (iVar58 < iVar59)
									{
										if (dlc1::_0xFF56381874F82086(iVar89, iVar58, &Var61))
										{
											iVar55 = 0;
											while (iVar55 < Global_69588.f_46)
											{
												if (Global_69588.f_46[iVar55] == Var61.f_3 && Global_69588.f_46[iVar55] != -1)
												{
													iVar60 = false;
													if (Var61.f_6 == 1019352240)
													{
														if (iParam7 == 0)
														{
															iVar60 = true;
														}
														else if (iParam7 == 1)
														{
														}
														else if (iParam7 == 2)
														{
															graphics::request_streamed_texture_dict(func_430(player::player_id(), 0), false);
															unk_0x95EB5E34F821BABE(*uParam0, func_430(player::player_id(), 0), func_427(player::player_id(), 2));
														}
													}
													if (!iVar60)
													{
														if (!func_109(*uParam0, &(Var61.f_7), Var61.f_2, Var61.f_6, iVar90, iVar91, iVar92, iVar93))
														{
															iVar60 = true;
														}
													}
													if (!iVar60)
													{
														ped::_set_ped_decoration(*uParam0, Var61.f_2, Var61.f_3);
														func_108(*uParam0, Var61.f_2, Var61.f_3);
													}
												}
												iVar55++;
											}
										}
										iVar58++;
									}
								}
							}
							ped::_0xE861D0B05C7662B8(*uParam0, 0, 0);
							func_411(*uParam0);
							uParam0->f_6 = 2;
							break;
						
						case 2:
							if (!func_357())
							{
								if (!ped::_0x7350823473013C02(*uParam0) || !ped::has_ped_head_blend_finished(*uParam0))
								{
									return false;
								}
								else
								{
									ped::_0x4668D80430D6C299(*uParam0);
									func_411(*uParam0);
									uParam0->f_7 = 1;
									uParam0->f_6 = 0;
									uParam0->f_5 = 0;
									return true;
								}
							}
							else
							{
								func_411(*uParam0);
								uParam0->f_7 = 1;
								uParam0->f_6 = 0;
								uParam0->f_5 = 0;
								return true;
							}
							break;
					}
				}
				else
				{
					return true;
				}
			}
			else
			{
				return true;
			}
		}
		else
		{
			return true;
		}
	}
	else
	{
		return true;
	}
	return false;
}

void func_411(int iParam0)//Position - 0x64A60
{
	ped::_0x5AAB586FFEC0FD96(iParam0);
	ped::_0xF79F9DEF0AADE61A(iParam0);
}

int func_412(int iParam0, int iParam1, var uParam2, var uParam3)//Position - 0x64A74
{
	*uParam2 = 0;
	*uParam3 = 0;
	switch (iParam0)
	{
		case -1993528659:
		case -1881294810:
		case -1506286374:
		case -311168175:
			switch (iParam1)
			{
				case 0:
					*uParam2 = -240234547;
					*uParam3 = -1285040537;
					break;
				
				case 1:
					*uParam2 = -240234547;
					*uParam3 = -606706891;
					break;
				
				case 3:
					*uParam2 = -240234547;
					*uParam3 = -1719095858;
					break;
				
				case 2:
					*uParam2 = -240234547;
					*uParam3 = 1725502681;
					break;
				
				case 5:
					*uParam2 = -240234547;
					*uParam3 = 609583888;
					break;
				
				case 4:
					*uParam2 = -240234547;
					*uParam3 = -901986542;
					break;
			}
			break;
		
		case 929875422:
		case 1152868467:
		case 943179656:
			switch (iParam1)
			{
				case 0:
					*uParam2 = -240234547;
					*uParam3 = -1172383155;
					break;
				
				case 1:
					*uParam2 = -240234547;
					*uParam3 = -3492404;
					break;
				
				case 3:
					*uParam2 = -240234547;
					*uParam3 = -1006004645;
					break;
				
				case 2:
					*uParam2 = -240234547;
					*uParam3 = -1937311482;
					break;
				
				case 5:
					*uParam2 = -240234547;
					*uParam3 = -2065604094;
					break;
				
				case 4:
					*uParam2 = -240234547;
					*uParam3 = 1792492176;
					break;
			}
			break;
		
		case -1474798059:
		case -1159756889:
		case -322672784:
		case -611662595:
		case -884792186:
		case -1097004230:
			switch (iParam1)
			{
				case 0:
					*uParam2 = -240234547;
					*uParam3 = 2028818254;
					break;
				
				case 1:
					*uParam2 = -240234547;
					*uParam3 = 1624012067;
					break;
				
				case 3:
					*uParam2 = -240234547;
					*uParam3 = -1877817141;
					break;
				
				case 2:
					*uParam2 = -240234547;
					*uParam3 = -911576192;
					break;
				
				case 5:
					*uParam2 = -240234547;
					*uParam3 = -2038013276;
					break;
				
				case 4:
					*uParam2 = -240234547;
					*uParam3 = -86485329;
					break;
			}
			break;
		
		case -501589382:
		case -1201600760:
		case 1110055552:
		case 1350055708:
			switch (iParam1)
			{
				case 0:
					*uParam2 = -240234547;
					*uParam3 = 863458948;
					break;
				
				case 1:
					*uParam2 = -240234547;
					*uParam3 = 9874621;
					break;
				
				case 3:
					*uParam2 = -240234547;
					*uParam3 = 1809338990;
					break;
				
				case 2:
					*uParam2 = -240234547;
					*uParam3 = -346939959;
					break;
				
				case 5:
					*uParam2 = -240234547;
					*uParam3 = -934753544;
					break;
				
				case 4:
					*uParam2 = -240234547;
					*uParam3 = -1403745446;
					break;
			}
			break;
		
		case 1260177138:
		case 1700395884:
		case 797315013:
			switch (iParam1)
			{
				case 0:
					*uParam2 = -240234547;
					*uParam3 = 1604986209;
					break;
				
				case 1:
					*uParam2 = -240234547;
					*uParam3 = -1514700421;
					break;
				
				case 3:
					*uParam2 = -240234547;
					*uParam3 = 1177361060;
					break;
				
				case 2:
					*uParam2 = -240234547;
					*uParam3 = -937529288;
					break;
				
				case 5:
					*uParam2 = -240234547;
					*uParam3 = 547723644;
					break;
				
				case 4:
					*uParam2 = -240234547;
					*uParam3 = -1084626028;
					break;
			}
			break;
		
		case -41833793:
		case -282980864:
		case 551907718:
		case 312792325:
		case -240610667:
		case -403603677:
			switch (iParam1)
			{
				case 0:
					*uParam2 = -240234547;
					*uParam3 = 1750314531;
					break;
				
				case 1:
					*uParam2 = -240234547;
					*uParam3 = -988332613;
					break;
				
				case 3:
					*uParam2 = -240234547;
					*uParam3 = 80720443;
					break;
				
				case 2:
					*uParam2 = -240234547;
					*uParam3 = -1220194634;
					break;
				
				case 5:
					*uParam2 = -240234547;
					*uParam3 = -925735153;
					break;
				
				case 4:
					*uParam2 = -240234547;
					*uParam3 = 2060572320;
					break;
			}
			break;
	}
	return *uParam2 != 0;
}

void func_413(int iParam0, var uParam1, int iParam2)//Position - 0x64EEB
{
	struct<9> Var0;
	int iVar13;
	int iVar14;
	int iVar15;
	int iVar16;
	int iVar17;
	int iVar18;
	int iVar19;
	struct<8> Var20;
	int iVar35;
	
	if (!ped::is_ped_injured(iParam0))
	{
		ped::_clear_ped_facial_decorations(iParam0);
		iVar13 = func_142(iParam0);
		iVar14 = func_130(iParam0);
		iVar15 = func_128(iParam0);
		iVar16 = func_127(iParam0);
		if (iParam2)
		{
			iVar15 = true;
		}
		iVar17 = 0;
		while (iVar17 < 127)
		{
			if (gameplay::is_bit_set((*uParam1)[(iVar17 / 32)], (iVar17 % 32)))
			{
				if (func_112(&Var0, iVar17, iVar13, iParam0, -1))
				{
					if (func_109(iParam0, &Var0, Var0.f_4, Var0.f_8, iVar14, iVar15, iParam2, iVar16))
					{
						ped::_set_ped_facial_decoration(iParam0, Var0.f_4, Var0.f_5);
					}
				}
			}
			iVar17++;
		}
		if (gameplay::is_bit_set((*uParam1)[(123 / 32)], (123 % 32)))
		{
			if (ped::_get_tattoo_zone(-1719270477, -1824026490) != 7)
			{
				ped::_set_ped_facial_decoration(iParam0, -1719270477, -1824026490);
			}
		}
		iVar19 = dlc1::_0x278F76C3B0A8F109(iVar13);
		iVar18 = 0;
		while (iVar18 < iVar19)
		{
			if (dlc1::_0xFF56381874F82086(iVar13, iVar18, &Var20))
			{
				if (!dlc1::_is_dlc_data_empty(Var20))
				{
					iVar35 = (129 + iVar18);
					if (gameplay::is_bit_set((*uParam1)[(iVar35 / 32)], (iVar35 % 32)))
					{
						if (func_109(iParam0, &(Var20.f_7), Var20.f_2, Var20.f_6, iVar14, iVar15, iParam2, iVar16))
						{
							ped::_set_ped_facial_decoration(iParam0, Var20.f_2, Var20.f_3);
							func_108(iParam0, Var20.f_2, Var20.f_3);
						}
					}
				}
			}
			iVar18++;
		}
	}
}

bool func_414(int iParam0)//Position - 0x65048
{
	switch (iParam0)
	{
		case 714:
		case 715:
		case 716:
		case 717:
		case 870:
		case 871:
		case 872:
		case 873:
		case 718:
		case 719:
		case 720:
		case 721:
		case 874:
		case 875:
		case 876:
		case 877:
		case 722:
		case 723:
		case 724:
		case 725:
		case 878:
		case 879:
		case 880:
		case 881:
		case 726:
		case 727:
		case 728:
		case 729:
		case 882:
		case 883:
		case 884:
		case 885:
		case 730:
		case 731:
		case 732:
		case 733:
		case 886:
		case 887:
		case 888:
		case 889:
		case 734:
		case 735:
		case 736:
		case 737:
		case 890:
		case 891:
		case 892:
		case 893:
		case 738:
		case 739:
		case 740:
		case 741:
		case 894:
		case 895:
		case 896:
		case 897:
		case 918:
		case 919:
		case 920:
		case 921:
		case 922:
		case 923:
		case 924:
		case 925:
		case 926:
		case 927:
		case 928:
		case 929:
		case 930:
		case 931:
		case 932:
		case 933:
		case 934:
		case 935:
		case 936:
		case 937:
		case 938:
		case 939:
		case 940:
		case 941:
		case 942:
		case 943:
		case 944:
		case 945:
		case 946:
		case 947:
		case 948:
		case 949:
			return true;
		
		default:
	}
	return false;
}

bool func_415(int iParam0)//Position - 0x6526C
{
	int iVar0;
	
	iVar0 = dlc1::get_hash_name_for_component(iParam0, 8, ped::get_ped_drawable_variation(iParam0, 8), ped::get_ped_texture_variation(iParam0, 8));
	if (dlc1::_0x341DE7ED1D2A1BFD(iVar0, 391733089, 0) && dlc1::_0x341DE7ED1D2A1BFD(iVar0, -1889900289, 0))
	{
		return true;
	}
	return false;
}

bool func_416(int iParam0)//Position - 0x652B3
{
	int iVar0;
	
	iVar0 = dlc1::get_hash_name_for_component(iParam0, 1, ped::get_ped_drawable_variation(iParam0, 1), ped::get_ped_texture_variation(iParam0, 1));
	if (dlc1::_0x341DE7ED1D2A1BFD(iVar0, -1409448021, 0))
	{
		return true;
	}
	return false;
}

bool func_417(int iParam0, int iParam1)//Position - 0x652E6
{
	int iVar0;
	
	iVar0 = dlc1::get_hash_name_for_component(iParam0, iParam1, ped::get_ped_drawable_variation(iParam0, iParam1), ped::get_ped_texture_variation(iParam0, iParam1));
	if (dlc1::_0x341DE7ED1D2A1BFD(iVar0, -713698407, 0))
	{
		return true;
	}
	return false;
}

void func_418(int iParam0, int iParam1, int iParam2)//Position - 0x6531C
{
	struct<37> Var0;
	int iVar50;
	int iVar51;
	
	Var0 = 12;
	Var0.f_13 = 12;
	Var0.f_26 = 9;
	Var0.f_36 = 9;
	Var0.f_46 = 3;
	iVar50 = -1;
	if (iParam2 == -1)
	{
		iParam2 = network::_network_get_ped_player(iParam0);
	}
	iVar51 = 0;
	while (iVar51 < 12)
	{
		Var0[iVar51] = -1;
		Var0.f_13[iVar51] = -1;
		iVar51++;
	}
	iVar51 = 0;
	while (iVar51 < Var0.f_26)
	{
		Var0.f_26[iVar51] = -1;
		Var0.f_36[iVar51] = -1;
		iVar51++;
	}
	iVar51 = 0;
	while (iVar51 < Var0.f_46)
	{
		Var0.f_46[iVar51] = -1;
		iVar51++;
	}
	if (func_436(iParam0, &Var0, iParam1, &iVar50))
	{
		if ((iParam1 == 1 || iParam1 == 4) || iParam1 == 3)
		{
			func_419(iParam0);
			func_432(iParam0, &Var0, iParam2);
		}
		if (iParam1 == 11)
		{
			if (iVar50 != -1)
			{
				if (func_434(iVar50) == 22)
				{
					Var0.f_26[2] = -1;
				}
				else if (func_434(iVar50) == 8)
				{
					Var0.f_26[1] = -1;
					Var0.f_26[2] = -1;
				}
				else
				{
					Var0.f_26[1] = -1;
					Var0.f_26[2] = -1;
					Var0.f_26[0] = -1;
				}
				if (entity::get_entity_model(iParam0) == joaat("mp_f_freemode_01"))
				{
					if (func_433(entity::get_entity_model(iParam0), 7, func_173(iParam0, 7, -1), -1))
					{
						Var0[7] = 0;
						Var0.f_13[7] = 0;
					}
				}
			}
			func_432(iParam0, &Var0, iParam2);
		}
		iVar51 = 0;
		while (iVar51 < 12)
		{
			if (Var0[iVar51] != -1)
			{
				ped::set_ped_component_variation(iParam0, iVar51, Var0[iVar51], Var0.f_13[iVar51], 0);
			}
			iVar51++;
		}
		iVar51 = 0;
		while (iVar51 < Var0.f_26)
		{
			if (Var0.f_26[iVar51] != -1 && Var0.f_26[iVar51] != 255)
			{
				ped::set_ped_prop_index(iParam0, iVar51, Var0.f_26[iVar51], Var0.f_36[iVar51], true);
			}
			iVar51++;
		}
	}
}

void func_419(int iParam0)//Position - 0x6550F
{
	int iVar0;
	
	iVar0 = 0;
	while (iVar0 < 12)
	{
		if (func_424(iParam0, iVar0, -1))
		{
			if (iVar0 != 2 && iVar0 != 9)
			{
				func_420(iParam0, iVar0, -1, -1);
			}
		}
		iVar0++;
	}
}

void func_420(int iParam0, int iParam1, int iParam2, int iParam3)//Position - 0x65551
{
	int iVar0;
	int iVar1;
	int iVar2;
	
	if (iParam2 == -1)
	{
		iParam2 = network::_network_get_ped_player(iParam0);
	}
	iVar0 = false;
	iVar1 = 0;
	while (iVar1 < 12)
	{
		Global_69588[iVar1] = -1;
		Global_69588.f_13[iVar1] = -1;
		iVar1++;
	}
	iVar1 = 0;
	while (iVar1 < Global_69588.f_26)
	{
		Global_69588.f_26[iVar1] = -1;
		Global_69588.f_36[iVar1] = -1;
		iVar1++;
	}
	iVar1 = 0;
	while (iVar1 < Global_69588.f_46)
	{
		Global_69588.f_46[iVar1] = -1;
		iVar1++;
	}
	iVar2 = false;
	if (func_436(iParam0, &Global_69588, iParam1, &iParam3))
	{
		iVar1 = 0;
		while (iVar1 < 12)
		{
			if (Global_69588[iVar1] != -1)
			{
				if (ped::get_ped_drawable_variation(iParam0, iVar1) == Global_69588[iVar1] && ped::get_ped_texture_variation(iParam0, iVar1) == Global_69588.f_13[iVar1])
				{
					if (iVar1 == 2)
					{
						iVar0 = true;
					}
					if (iVar1 == 1)
					{
						iVar2 = true;
					}
					ped::set_ped_component_variation(iParam0, iVar1, 0, 0, 0);
				}
			}
			iVar1++;
		}
		iVar1 = 0;
		while (iVar1 < Global_69588.f_26)
		{
			if (Global_69588.f_26[iVar1] != -1 && Global_69588.f_26[iVar1] != 255)
			{
				if (ped::get_ped_prop_index(iParam0, iVar1) == Global_69588.f_26[iVar1] && ped::get_ped_prop_texture_index(iParam0, iVar1) == Global_69588.f_36[iVar1])
				{
					ped::clear_ped_prop(iParam0, iVar1);
				}
			}
			iVar1++;
		}
		if (iVar0)
		{
			if (!func_357())
			{
				if (func_68(161, -1))
				{
					func_66(iParam0, 2, func_359(2045, Global_69516, 0), 0, -1, 0, 0, 0, -1, -1, -1, 0, 0, 0);
				}
				else
				{
					func_66(iParam0, 2, func_359(747, Global_69516, 0), 0, -1, 0, 0, 0, -1, -1, -1, 0, 0, 0);
				}
			}
		}
		if (iParam1 == 4)
		{
			if (iVar2)
			{
				if (iParam2 != -1 && iParam2 != player::player_id())
				{
					if (network::_0x237D5336A9A54108(player::int_to_playerindex(iParam2)))
					{
						network::_0x99B72C7ABDE5C910(iParam0, player::int_to_playerindex(iParam2));
					}
				}
				else
				{
					func_101(iParam0, -1);
				}
			}
			func_423(0);
			func_421(0, 0);
		}
	}
}

void func_421(int iParam0, int iParam1)//Position - 0x6576F
{
	graphics::set_nightvision(iParam0);
	if (iParam0 == 1)
	{
		if (iParam1)
		{
			audio::play_sound_frontend(-1, "THERMAL_VISION_GOGGLES_ON_MASTER", 0, 1);
		}
		gameplay::set_bit(&(Global_1740077[player::player_id() /*199*/].f_198), 0);
	}
	else
	{
		if (iParam1)
		{
			audio::play_sound_frontend(-1, "THERMAL_VISION_GOGGLES_OFF_MASTER", 0, 1);
		}
		gameplay::clear_bit(&(Global_1740077[player::player_id() /*199*/].f_198), 0);
	}
	func_422(!iParam0);
}

void func_422(int iParam0)//Position - 0x657D1
{
	func_234(232, iParam0, -1, 1);
}

void func_423(int iParam0)//Position - 0x657E3
{
	if (Global_2593208 != iParam0)
	{
		Global_2593208 = iParam0;
	}
}

bool func_424(int iParam0, int iParam1, int iParam2)//Position - 0x657FA
{
	struct<37> Var0;
	int iVar50;
	
	Var0 = 12;
	Var0.f_13 = 12;
	Var0.f_26 = 9;
	Var0.f_36 = 9;
	Var0.f_46 = 3;
	iVar50 = 0;
	while (iVar50 < 12)
	{
		Var0[iVar50] = -1;
		Var0.f_13[iVar50] = -1;
		iVar50++;
	}
	iVar50 = 0;
	while (iVar50 < Var0.f_26)
	{
		Var0.f_26[iVar50] = -1;
		Var0.f_36[iVar50] = -1;
		iVar50++;
	}
	if (iParam1 == 11 && iParam2 != -1)
	{
		if (func_368(iParam0, iParam2))
		{
			return true;
		}
	}
	else if (func_436(iParam0, &Var0, iParam1, &iParam2))
	{
		iVar50 = 0;
		while (iVar50 < 12)
		{
			if (Var0[iVar50] != -1)
			{
				if (ped::get_ped_drawable_variation(iParam0, iVar50) == Var0[iVar50] && ped::get_ped_texture_variation(iParam0, iVar50) == Var0.f_13[iVar50])
				{
					return true;
				}
			}
			iVar50++;
		}
		iVar50 = 0;
		while (iVar50 < Var0.f_26)
		{
			if (Var0.f_26[iVar50] != -1 && Var0.f_26[iVar50] != 255)
			{
				if (ped::get_ped_prop_index(iParam0, iVar50) == Var0.f_26[iVar50] && ped::get_ped_prop_texture_index(iParam0, iVar50) == Var0.f_36[iVar50])
				{
					return true;
				}
			}
			iVar50++;
		}
	}
	return false;
}

void func_425(int iParam0, int iParam1, int iParam2, int iParam3)//Position - 0x6594B
{
	int iVar0;
	int iVar1;
	int iVar2;
	int iVar3;
	var uVar4;
	var uVar5;
	int iVar6;
	int iVar7;
	int iVar8;
	int iVar9;
	int iVar10;
	struct<4> Var11;
	
	iVar0 = 0;
	iVar1 = dlc1::get_hash_name_for_prop(iParam0, iVar0, iParam1, iParam2);
	if (dlc1::_0x341DE7ED1D2A1BFD(iVar1, -1033433901, 1))
	{
		if (unk_0xD40AAC51E8E4C663(iVar1) > 0)
		{
			iVar6 = unk_0xD40AAC51E8E4C663(iVar1);
			iVar7 = 0;
			iVar2 = 0;
			while (iVar2 < iVar6)
			{
				unk_0xD81B7F27BC773E66(iVar1, iVar2, &iVar3, &uVar4, &uVar5);
				if (iVar3 != 0 && iVar3 != 1849449579)
				{
					iVar7 = iVar3;
				}
				iVar2 = iVar6 + 1;
				iVar2++;
			}
			if (iVar2 != 0)
			{
				iVar8 = 0;
				iVar9 = -1;
				iVar10 = -1;
				dlc1::_0x5D5CAFF661DDF6FC(iVar7, &Var11);
				if (dlc1::_0x341DE7ED1D2A1BFD(iVar1, 1018956245, 1))
				{
					iVar8 = 1;
					iVar9 = iParam1;
					iVar10 = Var11.f_3;
				}
				else
				{
					iVar8 = 0;
					iVar9 = Var11.f_3;
					iVar10 = iParam1;
				}
				unk_0x3F7325574E41B44D(iParam0, iVar8, iVar9, iVar10);
				if (iParam3)
				{
					ped::set_ped_config_flag(iParam0, 34, true);
					if (!ped::is_ped_on_any_bike(iParam0))
					{
						ped::set_ped_config_flag(iParam0, 36, true);
					}
				}
				return;
			}
		}
		if (iParam3)
		{
			ped::set_ped_config_flag(iParam0, 34, true);
			if (!ped::is_ped_on_any_bike(iParam0))
			{
				ped::set_ped_config_flag(iParam0, 36, true);
			}
		}
	}
}

bool func_426(int iParam0)//Position - 0x65A5E
{
	if (!ped::is_ped_wearing_helmet(iParam0) && !func_164(entity::get_entity_model(iParam0), 14, func_173(iParam0, 14, 0), -1))
	{
		return false;
	}
	return true;
}

char* func_427(int iParam0, int iParam1)//Position - 0x65A91
{
	int iVar0;
	
	if (iParam0 == func_45())
	{
		return "";
	}
	if (iParam1 == 1)
	{
		return "MPClubPreset1";
	}
	iVar0 = func_429(iParam0);
	if (iVar0 != func_45())
	{
		iParam0 = iVar0;
	}
	if (gameplay::is_bit_set(Global_93575, iParam0) || iParam1 == 2)
	{
		return func_428(&(Global_93318[iParam0 /*8*/]));
	}
	return "";
}

var func_428(var uParam0)//Position - 0x65AF9
{
	return uParam0;
}

int func_429(int iParam0)//Position - 0x65B03
{
	if (iParam0 != func_45())
	{
		return Global_1618089[iParam0 /*390*/].f_11;
	}
	return func_45();
}

char* func_430(int iParam0, int iParam1)//Position - 0x65B26
{
	return "MPClubEmblemSmall";
}

int func_431(int iParam0, int iParam1, int iParam2, int iParam3)//Position - 0x65B33
{
	switch (iParam0)
	{
		case joaat("mp_m_freemode_01"):
			switch (iParam1)
			{
				case 10:
					if (iParam2 >= 1 && iParam2 <= 6)
					{
						return true;
					}
					if (iParam2 >= 7)
					{
						if (iParam3 == -1)
						{
							iParam3 = func_158(iParam0, iParam2, iParam1, 3);
						}
						return dlc1::_0x341DE7ED1D2A1BFD(iParam3, -1487683087, 0);
					}
					break;
			}
			break;
		
		case joaat("mp_f_freemode_01"):
			switch (iParam1)
			{
				case 10:
					if (iParam2 >= 1 && iParam2 <= 5)
					{
						return true;
					}
					if (iParam2 >= 6)
					{
						if (iParam3 == -1)
						{
							iParam3 = func_158(iParam0, iParam2, iParam1, 4);
						}
						return dlc1::_0x341DE7ED1D2A1BFD(iParam3, -1487683087, 0);
					}
					break;
			}
			break;
	}
	return false;
}

void func_432(int iParam0, var uParam1, int iParam2)//Position - 0x65BED
{
	struct<8> Var0;
	int iVar10;
	
	if (iParam2 == -1)
	{
		iParam2 = network::_network_get_ped_player(iParam0);
		if (iParam2 != -1)
		{
		}
	}
	if ((*uParam1)[1] > 0 && dlc1::_0x341DE7ED1D2A1BFD(dlc1::get_hash_name_for_component(iParam0, 1, (*uParam1)[1], uParam1->f_13[1]), -921710083, 0))
	{
		ped::_get_ped_head_blend_data(iParam0, &Var0);
		if (entity::get_entity_model(iParam0) == joaat("mp_m_freemode_01"))
		{
			ped::set_ped_head_blend_data(iParam0, 0, 0, 0, Var0.f_3, Var0.f_4, Var0.f_5, 0f, Var0.f_7, 0f, 0);
		}
		else if (entity::get_entity_model(iParam0) == joaat("mp_f_freemode_01"))
		{
			ped::set_ped_head_blend_data(iParam0, 21, 0, 0, Var0.f_3, Var0.f_4, Var0.f_5, 0f, Var0.f_7, 0f, 0);
		}
		iVar10 = 0;
		while (iVar10 < 20)
		{
			ped::_set_ped_face_feature(iParam0, iVar10, 0f);
			iVar10++;
		}
	}
	else if (iParam2 != -1 && player::int_to_playerindex(iParam2) != player::player_id())
	{
		if (network::_0x237D5336A9A54108(player::int_to_playerindex(iParam2)) && network::network_has_control_of_entity(iParam0))
		{
			network::_0x99B72C7ABDE5C910(iParam0, player::int_to_playerindex(iParam2));
		}
	}
	else
	{
		func_101(iParam0, -1);
	}
}

bool func_433(int iParam0, int iParam1, int iParam2, int iParam3)//Position - 0x65CFE
{
	switch (iParam0)
	{
		case joaat("mp_m_freemode_01"):
			switch (iParam1)
			{
				case 14:
					if (iParam2 >= 327)
					{
						if (iParam3 == -1)
						{
							iParam3 = func_158(iParam0, iParam2, 14, 3);
						}
						if (dlc1::_0x341DE7ED1D2A1BFD(iParam3, 1283593258, 1) || dlc1::_0x341DE7ED1D2A1BFD(iParam3, 1406402954, 1))
						{
							return true;
						}
					}
					break;
				
				case 7:
					if (iParam2 >= 92)
					{
						if (iParam3 == -1)
						{
							iParam3 = func_158(iParam0, iParam2, 7, 3);
						}
						if (dlc1::_0x341DE7ED1D2A1BFD(iParam3, 1406402954, 0))
						{
							return true;
						}
					}
					break;
			}
			break;
		
		case joaat("mp_f_freemode_01"):
			switch (iParam1)
			{
				case 7:
					if (iParam2 >= 1 && iParam2 <= 12)
					{
						return true;
					}
					if (iParam2 >= 55)
					{
						if (iParam3 == -1)
						{
							iParam3 = func_158(iParam0, iParam2, 7, 4);
						}
						if (dlc1::_0x341DE7ED1D2A1BFD(iParam3, 1406402954, 0))
						{
							return true;
						}
					}
					break;
				
				case 14:
					if (iParam2 >= 327)
					{
						if (iParam3 == -1)
						{
							iParam3 = func_158(iParam0, iParam2, 14, 4);
						}
						if (dlc1::_0x341DE7ED1D2A1BFD(iParam3, 1283593258, 1) || dlc1::_0x341DE7ED1D2A1BFD(iParam3, 1406402954, 1))
						{
							return true;
						}
					}
					break;
			}
			break;
	}
	return false;
}

int func_434(int iParam0)//Position - 0x65E3F
{
	int iVar0;
	
	iVar0 = iParam0;
	switch (iVar0)
	{
		case 0:
		case 1:
		case 2:
		case 3:
			return 0;
		
		case 4:
		case 5:
		case 6:
		case 7:
			return 1;
		
		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:
		case 22:
		case 23:
		case 24:
		case 25:
		case 26:
		case 27:
		case 28:
		case 29:
		case 30:
		case 31:
		case 32:
		case 33:
			return 2;
		
		case 34:
		case 35:
		case 36:
		case 37:
			return 3;
		
		case 38:
		case 39:
		case 40:
		case 41:
			return 4;
		
		case 42:
		case 43:
		case 44:
		case 45:
			return 5;
		
		case 46:
		case 47:
		case 48:
		case 49:
			return 6;
		
		case 50:
			return 7;
		
		case 52:
		case 53:
		case 54:
		case 55:
		case 56:
		case 57:
		case 58:
		case 59:
			return 8;
		
		case 60:
		case 61:
		case 62:
		case 63:
			return 9;
		
		case 64:
		case 65:
		case 66:
		case 67:
			return 10;
		
		case 68:
		case 69:
		case 70:
		case 71:
			return 11;
		
		case 72:
		case 73:
		case 74:
		case 75:
			return 12;
		
		case 76:
		case 77:
		case 78:
		case 79:
			return 13;
		
		case 80:
		case 81:
		case 82:
		case 83:
			return 14;
		
		case 84:
		case 85:
		case 86:
		case 87:
			return 15;
		
		case 88:
		case 89:
		case 90:
		case 91:
			return 16;
		
		case 92:
		case 93:
		case 94:
		case 95:
			return 17;
		
		case 96:
		case 97:
		case 98:
		case 99:
		case 100:
		case 101:
		case 102:
		case 103:
		case 104:
		case 105:
		case 106:
		case 107:
			return 18;
		
		case 108:
		case 109:
		case 110:
		case 111:
		case 112:
		case 113:
			return 19;
		
		case 114:
		case 115:
		case 116:
		case 117:
			return 20;
		
		case 118:
		case 119:
		case 120:
		case 121:
		case 122:
		case 123:
			return 21;
		
		case 124:
		case 125:
		case 126:
		case 127:
			return 22;
		
		case 128:
		case 129:
		case 130:
		case 131:
			return 23;
		
		case 132:
		case 133:
		case 134:
		case 135:
		case 136:
		case 137:
			return 24;
		
		case 138:
		case 139:
		case 140:
		case 141:
		case 142:
		case 143:
			return 25;
		
		case 144:
		case 145:
		case 146:
		case 147:
			return 26;
		
		case 148:
		case 149:
		case 150:
		case 151:
			return 27;
		
		case 152:
		case 153:
		case 154:
		case 155:
			return 28;
		
		case 156:
		case 157:
		case 158:
		case 159:
			return 29;
		
		case 160:
		case 161:
		case 162:
		case 163:
			return 30;
		
		default:
	}
	return -1;
}

bool func_435(var uParam0, var uParam1)//Position - 0x662B8
{
	int iVar0;
	
	switch (uParam0->f_5)
	{
		case 0:
			iVar0 = 0;
			while (iVar0 < 12)
			{
				if ((*uParam1)[iVar0] != -1)
				{
					ped::_0x39D55A620FCB6A3A(*uParam0, iVar0, (*uParam1)[iVar0], uParam1->f_13[iVar0]);
				}
				iVar0++;
			}
			iVar0 = 0;
			while (iVar0 < uParam1->f_26)
			{
				if (uParam1->f_26[iVar0] != -1 && uParam1->f_26[iVar0] != 255)
				{
					ped::_is_ped_prop_valid(*uParam0, iVar0, uParam1->f_26[iVar0], uParam1->f_36[iVar0]);
				}
				iVar0++;
			}
			uParam0->f_5 = 1;
			return false;
			break;
		
		case 1:
			if (!ped::_0x66680A92700F43DF(*uParam0))
			{
				return false;
			}
			if (!ped::_0x784002A632822099(*uParam0))
			{
				return false;
			}
			uParam0->f_5 = 2;
			return true;
			break;
		
		default:
			return false;
			break;
	}
	return false;
}

bool func_436(int iParam0, var uParam1, int iParam2, int iParam3)//Position - 0x66394
{
	struct<5> Var0;
	struct<5> Var17;
	int iVar34;
	int iVar35;
	struct<37> Var36;
	
	iVar34 = false;
	if (entity::get_entity_model(iParam0) == joaat("mp_m_freemode_01"))
	{
		iVar34 = true;
	}
	switch (iParam2)
	{
		case 0:
			(*uParam1)[1] = 4;
			uParam1->f_13[1] = 0;
			return true;
			break;
		
		case 1:
			if (iVar34)
			{
				dlc1::get_shop_ped_component(835669644, &Var0);
			}
			else
			{
				dlc1::get_shop_ped_component(1876083388, &Var0);
			}
			(*uParam1)[1] = Var0.f_3;
			uParam1->f_13[1] = Var0.f_4;
			return true;
			break;
		
		case 2:
			if (iVar34)
			{
				dlc1::get_shop_ped_component(-852034925, &Var0);
			}
			else
			{
				dlc1::get_shop_ped_component(1986458622, &Var0);
			}
			(*uParam1)[5] = Var0.f_3;
			uParam1->f_13[5] = Var0.f_4;
			return true;
			break;
		
		case 3:
			if (iVar34)
			{
				dlc1::get_shop_ped_component(320626951, &Var0);
			}
			else
			{
				dlc1::get_shop_ped_component(-1067020949, &Var0);
			}
			(*uParam1)[1] = Var0.f_3;
			uParam1->f_13[1] = Var0.f_4;
			return true;
			break;
		
		case 4:
			if (iVar34)
			{
				dlc1::get_shop_ped_component(1618845539, &Var0);
				(*uParam1)[1] = Var0.f_3;
				uParam1->f_13[1] = Var0.f_4;
				dlc1::get_shop_ped_component(-1107182781, &Var0);
				(*uParam1)[2] = Var0.f_3;
				uParam1->f_13[2] = Var0.f_4;
			}
			else
			{
				dlc1::get_shop_ped_component(-1114385357, &Var0);
				(*uParam1)[1] = Var0.f_3;
				uParam1->f_13[1] = Var0.f_4;
				dlc1::get_shop_ped_component(270557663, &Var0);
				(*uParam1)[2] = Var0.f_3;
				uParam1->f_13[2] = Var0.f_4;
			}
			return true;
			break;
		
		case 5:
			if (iVar34)
			{
				dlc1::_0x5D5CAFF661DDF6FC(-2132472570, &Var17);
			}
			else
			{
				dlc1::_0x5D5CAFF661DDF6FC(-980660623, &Var17);
			}
			uParam1->f_26[2] = Var17.f_3;
			uParam1->f_36[2] = Var17.f_4;
			return true;
			break;
		
		case 6:
			if (iVar34)
			{
				dlc1::_0x5D5CAFF661DDF6FC(561428904, &Var17);
			}
			else
			{
				dlc1::_0x5D5CAFF661DDF6FC(-1307283359, &Var17);
			}
			uParam1->f_26[2] = Var17.f_3;
			uParam1->f_36[2] = Var17.f_4;
			return true;
			break;
		
		case 7:
			if (iVar34)
			{
				dlc1::_0x5D5CAFF661DDF6FC(-590910674, &Var17);
			}
			else
			{
				dlc1::_0x5D5CAFF661DDF6FC(1855152117, &Var17);
			}
			uParam1->f_26[2] = Var17.f_3;
			uParam1->f_36[2] = Var17.f_4;
			return true;
			break;
		
		case 8:
			uParam1->f_26[0] = 19;
			uParam1->f_36[0] = 0;
			return true;
			break;
		
		case 9:
			uParam1->f_26[5] = 6;
			uParam1->f_36[5] = 0;
			return true;
			break;
		
		case 10:
			if (iVar34)
			{
				dlc1::get_shop_ped_component(588980201, &Var0);
			}
			else
			{
				dlc1::get_shop_ped_component(1742423660, &Var0);
			}
			(*uParam1)[1] = Var0.f_3;
			uParam1->f_13[1] = Var0.f_4;
			return true;
			break;
		
		case 11:
			if (!func_357())
			{
				iVar35 = Global_1589933[player::player_id() /*601*/].f_95.f_28;
			}
			else
			{
				iVar35 = Global_1632166.f_42;
			}
			*iParam3 = func_437(iVar35);
			Var36.f_1 = -1;
			Var36.f_2 = -1;
			Var36.f_3 = -1;
			Var36.f_4 = -1;
			Var36.f_8 = -1;
			Var36.f_9 = 27;
			Var36.f_2 = *iParam3;
			Var36 = iParam0;
			if (func_369(uParam1, Var36, 1, 1))
			{
				return true;
			}
			break;
	}
	return false;
}

int func_437(int iParam0)//Position - 0x666DB
{
	if (iParam0 <= -1 || iParam0 >= Global_2443860.f_5864)
	{
		return -1;
	}
	return Global_2443860.f_5864[iParam0];
}

bool func_438(var uParam0, struct<2> Param1, var uParam3, var uParam4, var uParam5, var uParam6, var uParam7, var uParam8, var uParam9, var uParam10, var uParam11, var uParam12, var uParam13, var uParam14, var uParam15, var uParam16, var uParam17, var uParam18, var uParam19, var uParam20, var uParam21, var uParam22, var uParam23, var uParam24, var uParam25, var uParam26, var uParam27, var uParam28, var uParam29, var uParam30, var uParam31, var uParam32, var uParam33, var uParam34, var uParam35, var uParam36, var uParam37, int iParam38)//Position - 0x66709
{
	int iVar0;
	int iVar1;
	int iVar2;
	struct<14> Var3;
	int iVar17;
	struct<2> Var18;
	
	iVar0 = 0;
	while (iVar0 < 12)
	{
		(*uParam0)[iVar0] = -1;
		uParam0->f_13[iVar0] = -1;
		iVar0++;
	}
	iVar0 = 0;
	while (iVar0 < uParam0->f_26)
	{
		uParam0->f_26[iVar0] = -1;
		uParam0->f_36[iVar0] = -1;
		iVar0++;
	}
	iVar0 = 0;
	while (iVar0 < uParam0->f_46)
	{
		uParam0->f_46[iVar0] = -1;
		iVar0++;
	}
	if (Param1.f_1 == -1)
	{
		return false;
	}
	else if (Param1.f_1 == 0)
	{
		iVar1 = func_372();
		if (iVar1 != -1 && func_370(uParam0, iVar1, iParam38, 0))
		{
			(*uParam0)[5] = 0;
			uParam0->f_13[5] = 0;
		}
		else
		{
			if (iParam38)
			{
				(*uParam0)[1] = func_375(400, -1, -1);
				uParam0->f_13[1] = func_375(388, -1, -1);
			}
			if (!func_357())
			{
				if (func_68(161, Global_69516))
				{
					iVar2 = func_359(2045, Global_69516, 0);
				}
				else
				{
					iVar2 = func_359(747, Global_69516, 0);
				}
				Var3 = { func_192(entity::get_entity_model(Param1), 2, iVar2) };
				(*uParam0)[2] = Var3.f_3;
				uParam0->f_13[2] = Var3.f_4;
			}
			(*uParam0)[0] = func_375(399, -1, -1);
			uParam0->f_13[0] = func_375(387, -1, -1);
			(*uParam0)[3] = func_375(402, -1, -1);
			uParam0->f_13[3] = func_375(390, -1, -1);
			(*uParam0)[4] = func_375(403, -1, -1);
			uParam0->f_13[4] = func_375(391, -1, -1);
			(*uParam0)[6] = func_375(405, -1, -1);
			uParam0->f_13[6] = func_375(393, -1, -1);
			(*uParam0)[7] = func_375(406, -1, -1);
			uParam0->f_13[7] = func_375(394, -1, -1);
			(*uParam0)[8] = func_375(407, -1, -1);
			uParam0->f_13[8] = func_375(395, -1, -1);
			(*uParam0)[9] = func_375(408, -1, -1);
			uParam0->f_13[9] = func_375(396, -1, -1);
			(*uParam0)[10] = func_375(409, -1, -1);
			uParam0->f_13[10] = func_375(397, -1, -1);
			(*uParam0)[11] = func_375(410, -1, -1);
			uParam0->f_13[11] = func_375(398, -1, -1);
			(*uParam0)[5] = 0;
			uParam0->f_13[5] = 0;
			uParam0->f_26[0] = func_375(423, -1, -1);
			uParam0->f_36[0] = func_375(432, -1, -1);
			uParam0->f_26[1] = func_375(424, -1, -1);
			uParam0->f_36[1] = func_375(433, -1, -1);
			uParam0->f_26[2] = func_375(425, -1, -1);
			uParam0->f_36[2] = func_375(434, -1, -1);
			uParam0->f_26[3] = func_375(426, -1, -1);
			uParam0->f_36[3] = func_375(435, -1, -1);
			uParam0->f_26[4] = func_375(427, -1, -1);
			uParam0->f_36[4] = func_375(436, -1, -1);
			uParam0->f_26[5] = func_375(428, -1, -1);
			uParam0->f_36[5] = func_375(437, -1, -1);
			uParam0->f_26[6] = func_375(429, -1, -1);
			uParam0->f_36[6] = func_375(438, -1, -1);
			uParam0->f_26[7] = func_375(430, -1, -1);
			uParam0->f_36[7] = func_375(439, -1, -1);
			uParam0->f_26[8] = func_375(431, -1, -1);
			uParam0->f_36[8] = func_375(440, -1, -1);
			if (uParam0->f_26[3] == 0)
			{
				uParam0->f_26[3] = -1;
			}
			if (uParam0->f_26[4] == 0)
			{
				uParam0->f_26[4] = -1;
			}
			if (uParam0->f_26[5] == 0)
			{
				uParam0->f_26[5] = -1;
			}
			if (uParam0->f_26[7] == 0)
			{
				uParam0->f_26[7] = -1;
			}
			if (uParam0->f_26[8] == 0)
			{
				uParam0->f_26[8] = -1;
			}
			if (!func_357())
			{
				iVar17 = func_136(func_359(1751, -1, 0), func_142(Param1));
				if (iVar17 != -1 && func_120(iVar17, -1))
				{
					uParam0->f_46[0] = func_359(1751, -1, 0);
				}
			}
		}
		if (!iParam38)
		{
			(*uParam0)[1] = 0;
			uParam0->f_13[1] = 0;
		}
		return true;
	}
	Var18.f_1 = -1;
	Var18 = entity::get_entity_model(Param1) == joaat("mp_m_freemode_01");
	Var18.f_1 = Param1.f_1;
	if (ped::_0x9E30E91FB03A2CAF(uParam0, &Var18))
	{
		if (!iParam38 && ((*uParam0)[1] == -1 || (*uParam0)[8] == func_162(Param1, 1)))
		{
			(*uParam0)[1] = 0;
			uParam0->f_13[1] = 0;
		}
		func_439(Param1.f_1, Var18, uParam0[1], &(uParam0->f_13[1]), &(uParam0->f_26[0]), &(uParam0->f_36[0]));
		return true;
	}
	return false;
}

void func_439(int iParam0, int iParam1, var uParam2, var uParam3, var uParam4, var uParam5)//Position - 0x66BC1
{
	if (Global_1632166 == 0)
	{
		if (gameplay::is_bit_set(Global_1632166.f_15, 20))
		{
			func_441(iParam0, iParam1, uParam2, uParam3, uParam4, uParam5);
		}
		if (Global_262145.f_11190)
		{
			func_440(iParam0, iParam1, uParam2, uParam3);
			return;
		}
	}
}

void func_440(int iParam0, int iParam1, var uParam2, var uParam3)//Position - 0x66C09
{
	struct<5> Var0;
	
	switch (iParam0)
	{
		case 579:
			if (iParam1)
			{
				dlc1::get_shop_ped_component(435613453, &Var0);
				*uParam2 = Var0.f_3;
				*uParam3 = Var0.f_4;
			}
			else
			{
				dlc1::get_shop_ped_component(-1967871389, &Var0);
				*uParam2 = Var0.f_3;
				*uParam3 = Var0.f_4;
			}
			break;
		
		case 580:
			if (iParam1)
			{
				dlc1::get_shop_ped_component(-1147915719, &Var0);
				*uParam2 = Var0.f_3;
				*uParam3 = Var0.f_4;
			}
			else
			{
				dlc1::get_shop_ped_component(215232164, &Var0);
				*uParam2 = Var0.f_3;
				*uParam3 = Var0.f_4;
			}
			break;
		
		case 581:
			if (iParam1)
			{
				dlc1::get_shop_ped_component(-1379297628, &Var0);
				*uParam2 = Var0.f_3;
				*uParam3 = Var0.f_4;
			}
			else
			{
				dlc1::get_shop_ped_component(788886278, &Var0);
				*uParam2 = Var0.f_3;
				*uParam3 = Var0.f_4;
			}
			break;
		
		case 582:
			if (iParam1)
			{
				dlc1::get_shop_ped_component(-1147915719, &Var0);
				*uParam2 = Var0.f_3;
				*uParam3 = Var0.f_4;
			}
			else
			{
				dlc1::get_shop_ped_component(215232164, &Var0);
				*uParam2 = Var0.f_3;
				*uParam3 = Var0.f_4;
			}
			break;
		
		case 583:
			if (iParam1)
			{
				dlc1::get_shop_ped_component(435613453, &Var0);
				*uParam2 = Var0.f_3;
				*uParam3 = Var0.f_4;
			}
			else
			{
				dlc1::get_shop_ped_component(-1967871389, &Var0);
				*uParam2 = Var0.f_3;
				*uParam3 = Var0.f_4;
			}
			break;
		
		case 584:
			if (iParam1)
			{
				dlc1::get_shop_ped_component(-1147915719, &Var0);
				*uParam2 = Var0.f_3;
				*uParam3 = Var0.f_4;
			}
			else
			{
				dlc1::get_shop_ped_component(215232164, &Var0);
				*uParam2 = Var0.f_3;
				*uParam3 = Var0.f_4;
			}
			break;
		
		case 585:
			if (iParam1)
			{
				dlc1::get_shop_ped_component(-1379297628, &Var0);
				*uParam2 = Var0.f_3;
				*uParam3 = Var0.f_4;
			}
			else
			{
				dlc1::get_shop_ped_component(788886278, &Var0);
				*uParam2 = Var0.f_3;
				*uParam3 = Var0.f_4;
			}
			break;
		
		case 586:
			if (iParam1)
			{
				dlc1::get_shop_ped_component(-1147915719, &Var0);
				*uParam2 = Var0.f_3;
				*uParam3 = Var0.f_4;
			}
			else
			{
				dlc1::get_shop_ped_component(215232164, &Var0);
				*uParam2 = Var0.f_3;
				*uParam3 = Var0.f_4;
			}
			break;
		
		case 587:
			if (iParam1)
			{
				dlc1::get_shop_ped_component(-1379297628, &Var0);
				*uParam2 = Var0.f_3;
				*uParam3 = Var0.f_4;
			}
			else
			{
				dlc1::get_shop_ped_component(788886278, &Var0);
				*uParam2 = Var0.f_3;
				*uParam3 = Var0.f_4;
			}
			break;
		
		case 588:
			if (iParam1)
			{
				dlc1::get_shop_ped_component(435613453, &Var0);
				*uParam2 = Var0.f_3;
				*uParam3 = Var0.f_4;
			}
			else
			{
				dlc1::get_shop_ped_component(-1967871389, &Var0);
				*uParam2 = Var0.f_3;
				*uParam3 = Var0.f_4;
			}
			break;
		
		case 589:
			if (iParam1)
			{
				dlc1::get_shop_ped_component(-1379297628, &Var0);
				*uParam2 = Var0.f_3;
				*uParam3 = Var0.f_4;
			}
			else
			{
				dlc1::get_shop_ped_component(788886278, &Var0);
				*uParam2 = Var0.f_3;
				*uParam3 = Var0.f_4;
			}
			break;
		
		case 590:
			if (iParam1)
			{
				dlc1::get_shop_ped_component(-1147915719, &Var0);
				*uParam2 = Var0.f_3;
				*uParam3 = Var0.f_4;
			}
			else
			{
				dlc1::get_shop_ped_component(215232164, &Var0);
				*uParam2 = Var0.f_3;
				*uParam3 = Var0.f_4;
			}
			break;
	}
}

void func_441(int iParam0, int iParam1, var uParam2, var uParam3, var uParam4, var uParam5)//Position - 0x66F3C
{
	struct<5> Var0;
	struct<5> Var17;
	
	switch (iParam0)
	{
		case 591:
		case 592:
		case 593:
		case 594:
		case 595:
		case 596:
			if (iParam1)
			{
				dlc1::get_shop_ped_component(1016948187, &Var17);
				*uParam2 = Var17.f_3;
				*uParam3 = Var17.f_4;
				if (func_442(Global_1632166.f_86360))
				{
					dlc1::_0x5D5CAFF661DDF6FC(1848940972, &Var0);
					*uParam4 = Var0.f_3;
					*uParam5 = Var0.f_4;
				}
			}
			else
			{
				dlc1::get_shop_ped_component(1098963073, &Var17);
				*uParam2 = Var17.f_3;
				*uParam3 = Var17.f_4;
				if (func_442(Global_1632166.f_86360))
				{
					dlc1::_0x5D5CAFF661DDF6FC(626853111, &Var0);
					*uParam4 = Var0.f_3;
					*uParam5 = Var0.f_4;
				}
			}
			break;
		
		case 151:
		case 152:
		case 153:
		case 154:
		case 155:
		case 156:
			if (iParam1)
			{
				dlc1::get_shop_ped_component(742556768, &Var17);
				*uParam2 = Var17.f_3;
				*uParam3 = Var17.f_4;
				if (func_442(Global_1632166.f_86360))
				{
					dlc1::_0x5D5CAFF661DDF6FC(1941939394, &Var0);
					*uParam4 = Var0.f_3;
					*uParam5 = Var0.f_4;
				}
			}
			else
			{
				dlc1::get_shop_ped_component(1095714954, &Var17);
				*uParam2 = Var17.f_3;
				*uParam3 = Var17.f_4;
				if (func_442(Global_1632166.f_86360))
				{
					dlc1::_0x5D5CAFF661DDF6FC(-455474194, &Var0);
					*uParam4 = Var0.f_3;
					*uParam5 = Var0.f_4;
				}
			}
			break;
		
		case 157:
		case 158:
		case 159:
		case 160:
		case 161:
		case 162:
			if (iParam1)
			{
				dlc1::get_shop_ped_component(179618129, &Var17);
				*uParam2 = Var17.f_3;
				*uParam3 = Var17.f_4;
				if (func_442(Global_1632166.f_86360))
				{
					dlc1::_0x5D5CAFF661DDF6FC(-1968549225, &Var0);
					*uParam4 = Var0.f_3;
					*uParam5 = Var0.f_4;
				}
			}
			else
			{
				dlc1::get_shop_ped_component(415037286, &Var17);
				*uParam2 = Var17.f_3;
				*uParam3 = Var17.f_4;
				if (func_442(Global_1632166.f_86360))
				{
					dlc1::_0x5D5CAFF661DDF6FC(1235733900, &Var0);
					*uParam4 = Var0.f_3;
					*uParam5 = Var0.f_4;
				}
			}
			break;
		
		case 163:
		case 164:
		case 165:
		case 166:
		case 167:
		case 168:
			if (iParam1)
			{
				dlc1::get_shop_ped_component(901585021, &Var17);
				*uParam2 = Var17.f_3;
				*uParam3 = Var17.f_4;
				if (func_442(Global_1632166.f_86360))
				{
					dlc1::_0x5D5CAFF661DDF6FC(1475898688, &Var0);
					*uParam4 = Var0.f_3;
					*uParam5 = Var0.f_4;
				}
			}
			else
			{
				dlc1::get_shop_ped_component(-1686217589, &Var17);
				*uParam2 = Var17.f_3;
				*uParam3 = Var17.f_4;
				if (func_442(Global_1632166.f_86360))
				{
					dlc1::_0x5D5CAFF661DDF6FC(1466788119, &Var0);
					*uParam4 = Var0.f_3;
					*uParam5 = Var0.f_4;
				}
			}
			break;
	}
}

bool func_442(int iParam0)//Position - 0x6721F
{
	int iVar0;
	
	if (iParam0 == 0)
	{
		return false;
	}
	iVar0 = 0;
	while (iVar0 <= 11)
	{
		if (iParam0 == Global_262145.f_7959[iVar0])
		{
			return true;
		}
		iVar0++;
	}
	return false;
}

bool func_443(int iParam0)//Position - 0x67259
{
	if (((iParam0 == 952 || iParam0 == 966) || iParam0 == 967) || iParam0 == 968)
	{
		return true;
	}
	return false;
}

bool func_444(int iParam0)//Position - 0x67293
{
	if ((((((((((((((((((((((iParam0 == 705 || iParam0 == 706) || iParam0 == 707) || iParam0 == 734) || iParam0 == 735) || iParam0 == 736) || iParam0 == 737) || iParam0 == 890) || iParam0 == 891) || iParam0 == 892) || iParam0 == 893) || iParam0 == 952) || iParam0 == 966) || iParam0 == 967) || iParam0 == 968) || iParam0 == 961) || iParam0 == 993) || iParam0 == 994) || iParam0 == 995) || iParam0 == 962) || iParam0 == 996) || iParam0 == 997) || iParam0 == 998)
	{
		return false;
	}
	return true;
}

bool func_445(int iParam0)//Position - 0x673B1
{
	switch (iParam0)
	{
		case 918:
		case 919:
		case 920:
		case 921:
		case 922:
		case 923:
		case 924:
		case 925:
			return true;
		
		default:
	}
	return false;
}

int func_446()//Position - 0x673F5
{
	if (func_454(1))
	{
		if (func_447())
		{
			return Global_1618089[player::player_id() /*390*/].f_11.f_68.f_21;
		}
		else
		{
			return Global_1618089[func_456() /*390*/].f_11.f_68.f_21;
		}
	}
	return 0;
}

int func_447()//Position - 0x67438
{
	return func_448(player::player_id());
}

int func_448(int iParam0)//Position - 0x67448
{
	return func_134(iParam0, 1);
}

void func_449()//Position - 0x67457
{
	struct<50> Var0;
	int iVar65;
	int iVar66;
	int iVar67;
	int iVar68;
	float fVar69;
	int iVar70;
	int iVar71;
	
	if (entity::does_entity_exist(player::player_ped_id()))
	{
		unk_0x95EB5E34F821BABE(player::player_ped_id(), "", "");
		Var0 = 12;
		Var0.f_13 = 12;
		Var0.f_26 = 12;
		Var0.f_39 = 9;
		Var0.f_49 = 9;
		ped::set_ped_component_variation(player::player_ped_id(), 5, 0, 0, 0);
		ped::_0x1280804F7CFD2D6C(player::player_ped_id());
		ped::_0x687C0B594907D2E8(player::player_ped_id());
		ped::set_ped_prop_index(player::player_ped_id(), 0, 0, 0, false);
		ped::clear_ped_prop(player::player_ped_id(), 0);
		if (ped::is_ped_wearing_helmet(player::player_ped_id()))
		{
			ped::remove_ped_helmet(player::player_ped_id(), 1);
		}
		ped::clear_all_ped_props(player::player_ped_id());
		func_356(&Var0, -1);
		func_280(player::player_ped_id(), &Var0, 0, 0, 1);
		iVar65 = dlc1::get_hash_name_for_component(player::player_ped_id(), 1, ped::get_ped_drawable_variation(player::player_ped_id(), 1), ped::get_ped_texture_variation(player::player_ped_id(), 1));
		if (dlc1::_0x341DE7ED1D2A1BFD(iVar65, -921710083, 0))
		{
			iVar66 = func_359(2092, -1, 0);
			iVar67 = func_359(2093, -1, 0);
			iVar68 = func_359(2094, -1, 0);
			fVar69 = func_102(135, -1);
			iVar70 = entity::get_entity_model(player::player_ped_id());
			if (iVar70 == joaat("mp_m_freemode_01"))
			{
				ped::set_ped_head_blend_data(player::player_ped_id(), 0, 0, 0, iVar66, iVar67, iVar68, 0f, fVar69, 0f, 0);
			}
			else if (iVar70 == joaat("mp_f_freemode_01"))
			{
				ped::set_ped_head_blend_data(player::player_ped_id(), 21, 0, 0, iVar66, iVar67, iVar68, 0f, fVar69, 0f, 0);
			}
			iVar71 = 0;
			while (iVar71 < 20)
			{
				ped::_set_ped_face_feature(player::player_ped_id(), iVar71, 0f);
				iVar71++;
			}
		}
		else
		{
			func_101(player::player_ped_id(), -1);
		}
		func_107(player::player_ped_id(), 0, 1);
		func_409(32, func_36(1, 1));
	}
}

bool func_450()//Position - 0x675E4
{
	if (func_451(player::player_ped_id()) && (ped::is_ped_in_parachute_free_fall(player::player_ped_id()) || ped::get_ped_parachute_state(player::player_ped_id()) >= 0))
	{
		return true;
	}
	return false;
}

bool func_451(int iParam0)//Position - 0x67619
{
	int iVar0;
	
	if (!ped::is_ped_injured(iParam0))
	{
		iVar0 = entity::get_entity_model(iParam0);
		if (iVar0 == joaat("mp_m_freemode_01"))
		{
			if (func_159(iParam0, 5) != 0)
			{
				return true;
			}
		}
		else if (iVar0 == joaat("mp_f_freemode_01"))
		{
			if (func_159(iParam0, 5) != 0)
			{
				return true;
			}
		}
	}
	return false;
}

int func_452(int iParam0)//Position - 0x67669
{
	if (iParam0 == func_45())
	{
		return -1;
	}
	return Global_1618089[iParam0 /*390*/].f_11.f_7[1];
}

int func_453(int iParam0)//Position - 0x6768E
{
	if (iParam0 == func_45())
	{
		return -1;
	}
	return Global_1618089[iParam0 /*390*/].f_11.f_7[0];
}

int func_454(int iParam0)//Position - 0x676B3
{
	return func_132(player::player_id(), iParam0);
}

var func_455()//Position - 0x676C5
{
	return Global_1762419;
}

var func_456()//Position - 0x676D1
{
	return Global_1618089[player::player_id() /*390*/].f_11;
}

int func_457(int iParam0)//Position - 0x676E6
{
	int iVar0;
	
	iVar0 = Global_1618089[player::player_id() /*390*/].f_11.f_68.f_19;
	switch (iParam0)
	{
		case 1:
			return 598;
		
		case 2:
			return 599;
		
		case 3:
			return 600;
		
		case 4:
			return 601;
		
		case 0:
			return 0;
		
		case 5:
			return 602;
		
		case 6:
			return 603;
		
		case 7:
			return 604;
		
		case 8:
			return 605;
		
		case 9:
			return 606;
		
		case 10:
			return 607;
		
		case 11:
			return 608;
		
		case 12:
			return 609;
		
		case 25:
			return 951;
		
		case 26:
			return 952;
		
		case 33:
			return 959;
		
		case 34:
			return 960;
		
		case 31:
			return 957;
		
		case 32:
			return 958;
		
		case 35:
			return 961;
		
		case 36:
			return 962;
		
		case 27:
			return 953;
		
		case 28:
			return 954;
		
		case 29:
			return 955;
		
		case 30:
			return 956;
		
		case 13:
			return 610;
		
		case 14:
			return 611;
		
		case 15:
			return 612;
		
		case 16:
			return 613;
		
		case 17:
			return 614;
		
		case 18:
			return 615;
		
		case 19:
			return 616;
		
		case 20:
			return 617;
		
		case 21:
			return 618;
		
		case 22:
			return 619;
		
		case 23:
			return 620;
		
		case 24:
			return 621;
		
		case 37:
			switch (iVar0)
			{
				case 0:
					return 918;
				
				case 1:
					return 919;
				
				case 2:
					return 920;
				
				case 3:
					return 921;
				
				case 4:
					return 922;
				
				case 5:
					return 923;
				
				case 6:
					return 924;
				
				case 7:
					return 925;
				
				default:
			}
			break;
		
		case 38:
			switch (iVar0)
			{
				case 0:
					return 726;
				
				case 1:
					return 727;
				
				case 2:
					return 728;
				
				case 3:
					return 729;
				
				case 4:
					return 882;
				
				case 5:
					return 883;
				
				case 6:
					return 884;
				
				case 7:
					return 885;
				
				default:
			}
			break;
		
		case 39:
			switch (iVar0)
			{
				case 0:
					return 730;
				
				case 1:
					return 731;
				
				case 2:
					return 732;
				
				case 3:
					return 733;
				
				case 4:
					return 886;
				
				case 5:
					return 887;
				
				case 6:
					return 888;
				
				case 7:
					return 889;
				
				default:
			}
			break;
		
		case 40:
			switch (iVar0)
			{
				case 0:
					return 714;
				
				case 1:
					return 715;
				
				case 2:
					return 716;
				
				case 3:
					return 717;
				
				case 4:
					return 870;
				
				case 5:
					return 871;
				
				case 6:
					return 872;
				
				case 7:
					return 873;
				
				default:
			}
			break;
		
		case 41:
			switch (iVar0)
			{
				case 0:
					return 718;
				
				case 1:
					return 719;
				
				case 2:
					return 720;
				
				case 3:
					return 721;
				
				case 4:
					return 874;
				
				case 5:
					return 875;
				
				case 6:
					return 876;
				
				case 7:
					return 877;
				
				default:
			}
			break;
		
		case 42:
			switch (iVar0)
			{
				case 0:
					return 722;
				
				case 1:
					return 723;
				
				case 2:
					return 724;
				
				case 3:
					return 725;
				
				case 4:
					return 878;
				
				case 5:
					return 879;
				
				case 6:
					return 880;
				
				case 7:
					return 881;
				
				default:
			}
			break;
		
		case 43:
			switch (iVar0)
			{
				case 0:
					return 734;
				
				case 1:
					return 735;
				
				case 2:
					return 736;
				
				case 3:
					return 737;
				
				case 4:
					return 890;
				
				case 5:
					return 891;
				
				case 6:
					return 892;
				
				case 7:
					return 893;
				
				default:
			}
			break;
		
		case 44:
			switch (iVar0)
			{
				case 0:
					return 738;
				
				case 1:
					return 739;
				
				case 2:
					return 740;
				
				case 3:
					return 741;
				
				case 4:
					return 894;
				
				case 5:
					return 895;
				
				case 6:
					return 896;
				
				case 7:
					return 897;
				
				default:
			}
			break;
		
		case 45:
			switch (iVar0)
			{
				case 0:
					return 926;
				
				case 1:
					return 927;
				
				case 2:
					return 928;
				
				case 3:
					return 929;
				
				case 4:
					return 930;
				
				case 5:
					return 931;
				
				case 6:
					return 932;
				
				case 7:
					return 933;
				
				default:
			}
			break;
		
		case 46:
			switch (iVar0)
			{
				case 0:
					return 934;
				
				case 1:
					return 935;
				
				case 2:
					return 936;
				
				case 3:
					return 937;
				
				case 4:
					return 938;
				
				case 5:
					return 939;
				
				case 6:
					return 940;
				
				case 7:
					return 941;
				
				default:
			}
			break;
		
		case 47:
			switch (iVar0)
			{
				case 0:
					return 942;
				
				case 1:
					return 943;
				
				case 2:
					return 944;
				
				case 3:
					return 945;
				
				case 4:
					return 946;
				
				case 5:
					return 947;
				
				case 6:
					return 948;
				
				case 7:
					return 949;
				
				default:
			}
			break;
	}
	return 0;
}

bool func_458(int iParam0)//Position - 0x67D93
{
	if (func_459() == iParam0)
	{
		return true;
	}
	return false;
}

int func_459()//Position - 0x67DA9
{
	if (func_260(1))
	{
		if (func_460())
		{
			return Global_1618089[player::player_id() /*390*/].f_11.f_68.f_1;
		}
		else
		{
			return Global_1618089[func_456() /*390*/].f_11.f_68.f_1;
		}
	}
	return 0;
}

int func_460()//Position - 0x67DEC
{
	return func_56(player::player_id());
}

void func_461(int iParam0, int iParam1, int iParam2)//Position - 0x67DFC
{
	int iVar0;
	
	if (func_460())
	{
		if (func_447())
		{
			Global_1618089[player::player_id() /*390*/].f_11.f_68.f_1 = iParam0;
			if (iParam1 == 0)
			{
				func_468(0);
			}
			func_467(iParam0);
			if (iParam2 == 0)
			{
				iVar0 = 0;
				while (iVar0 < func_464())
				{
					func_462(iVar0, iParam0);
					iVar0++;
				}
			}
		}
		else
		{
			Global_1618089[player::player_id() /*390*/].f_11.f_68.f_1 = iParam0;
			func_468(0);
		}
	}
}

void func_462(int iParam0, int iParam1)//Position - 0x67E77
{
	Global_1618089[player::player_id() /*390*/].f_11.f_68.f_3[iParam0] = func_463(iParam0, iParam1);
	Global_2501786.f_2[iParam0] = func_463(iParam0, iParam1);
	Global_1618089[player::player_id() /*390*/].f_11.f_68.f_11[iParam0] = func_463(iParam0, iParam1);
	Global_2501786.f_15[iParam0] = func_463(iParam0, iParam1);
}

int func_463(int iParam0, int iParam1)//Position - 0x67EDD
{
	switch (iParam1)
	{
		case 37:
			switch (iParam0)
			{
				case 0:
					return 919;
				
				case 1:
					return 920;
				
				case 2:
					return 921;
				
				case 3:
					return 922;
				
				case 4:
					return 923;
				
				case 5:
					return 924;
				
				case 6:
					return 925;
				
				default:
			}
			break;
		
		case 38:
			switch (iParam0)
			{
				case 0:
					return 727;
				
				case 1:
					return 728;
				
				case 2:
					return 729;
				
				case 3:
					return 882;
				
				case 4:
					return 883;
				
				case 5:
					return 884;
				
				case 6:
					return 885;
				
				default:
			}
			break;
		
		case 39:
			switch (iParam0)
			{
				case 0:
					return 731;
				
				case 1:
					return 732;
				
				case 2:
					return 733;
				
				case 3:
					return 886;
				
				case 4:
					return 887;
				
				case 5:
					return 888;
				
				case 6:
					return 889;
				
				default:
			}
			break;
		
		case 40:
			switch (iParam0)
			{
				case 0:
					return 715;
				
				case 1:
					return 716;
				
				case 2:
					return 717;
				
				case 3:
					return 870;
				
				case 4:
					return 871;
				
				case 5:
					return 872;
				
				case 6:
					return 873;
				
				default:
			}
			break;
		
		case 41:
			switch (iParam0)
			{
				case 0:
					return 719;
				
				case 1:
					return 720;
				
				case 2:
					return 721;
				
				case 3:
					return 874;
				
				case 4:
					return 875;
				
				case 5:
					return 876;
				
				case 6:
					return 877;
				
				default:
			}
			break;
		
		case 42:
			switch (iParam0)
			{
				case 0:
					return 723;
				
				case 1:
					return 724;
				
				case 2:
					return 725;
				
				case 3:
					return 878;
				
				case 4:
					return 879;
				
				case 5:
					return 880;
				
				case 6:
					return 881;
				
				default:
			}
			break;
		
		case 43:
			switch (iParam0)
			{
				case 0:
					return 735;
				
				case 1:
					return 736;
				
				case 2:
					return 737;
				
				case 3:
					return 890;
				
				case 4:
					return 891;
				
				case 5:
					return 892;
				
				case 6:
					return 893;
				
				default:
			}
			break;
		
		case 44:
			switch (iParam0)
			{
				case 0:
					return 739;
				
				case 1:
					return 740;
				
				case 2:
					return 741;
				
				case 3:
					return 894;
				
				case 4:
					return 895;
				
				case 5:
					return 896;
				
				case 6:
					return 897;
				
				default:
			}
			break;
		
		case 45:
			switch (iParam0)
			{
				case 0:
					return 927;
				
				case 1:
					return 928;
				
				case 2:
					return 929;
				
				case 3:
					return 930;
				
				case 4:
					return 931;
				
				case 5:
					return 932;
				
				case 6:
					return 933;
				
				default:
			}
			break;
		
		case 46:
			switch (iParam0)
			{
				case 0:
					return 935;
				
				case 1:
					return 936;
				
				case 2:
					return 937;
				
				case 3:
					return 938;
				
				case 4:
					return 939;
				
				case 5:
					return 940;
				
				case 6:
					return 941;
				
				default:
			}
			break;
		
		case 47:
			switch (iParam0)
			{
				case 0:
					return 943;
				
				case 1:
					return 944;
				
				case 2:
					return 945;
				
				case 3:
					return 946;
				
				case 4:
					return 947;
				
				case 5:
					return 948;
				
				case 6:
					return 949;
				
				default:
			}
			break;
	}
	return 0;
}

int func_464()//Position - 0x68350
{
	return (func_465() - 1);
}

int func_465()//Position - 0x6835E
{
	return func_466(player::player_id());
}

int func_466(int iParam0)//Position - 0x6836E
{
	int iVar0;
	
	iVar0 = Global_1618089[iParam0 /*390*/].f_11;
	if (iVar0 != func_45() && Global_1618089[iVar0 /*390*/].f_11.f_289 == 1)
	{
		return 8;
	}
	return 4;
}

void func_467(int iParam0)//Position - 0x683A8
{
	switch (iParam0)
	{
		case 0:
			Global_1618089[player::player_id() /*390*/].f_11.f_68.f_2 = 0;
			Global_2501786.f_1 = 0;
			break;
		
		case 37:
			Global_1618089[player::player_id() /*390*/].f_11.f_68.f_2 = 38;
			Global_2501786.f_1 = 38;
			break;
		
		case 38:
			Global_1618089[player::player_id() /*390*/].f_11.f_68.f_2 = 39;
			Global_2501786.f_1 = 39;
			break;
		
		case 39:
			Global_1618089[player::player_id() /*390*/].f_11.f_68.f_2 = 40;
			Global_2501786.f_1 = 40;
			break;
		
		case 40:
			Global_1618089[player::player_id() /*390*/].f_11.f_68.f_2 = 41;
			Global_2501786.f_1 = 41;
			break;
		
		case 41:
			Global_1618089[player::player_id() /*390*/].f_11.f_68.f_2 = 42;
			Global_2501786.f_1 = 42;
			break;
		
		case 42:
			Global_1618089[player::player_id() /*390*/].f_11.f_68.f_2 = 43;
			Global_2501786.f_1 = 43;
			break;
		
		case 43:
			Global_1618089[player::player_id() /*390*/].f_11.f_68.f_2 = 44;
			Global_2501786.f_1 = 44;
			break;
		
		case 44:
			Global_1618089[player::player_id() /*390*/].f_11.f_68.f_2 = 45;
			Global_2501786.f_1 = 45;
			break;
		
		case 45:
			Global_1618089[player::player_id() /*390*/].f_11.f_68.f_2 = 46;
			Global_2501786.f_1 = 46;
			break;
		
		case 46:
			Global_1618089[player::player_id() /*390*/].f_11.f_68.f_2 = 47;
			Global_2501786.f_1 = 47;
			break;
		
		case 47:
			Global_1618089[player::player_id() /*390*/].f_11.f_68.f_2 = 48;
			Global_2501786.f_1 = 48;
			break;
	}
}

void func_468(int iParam0)//Position - 0x68565
{
	if (func_460())
	{
		Global_1618089[player::player_id() /*390*/].f_11.f_68.f_19 = iParam0;
		Global_2501786.f_24 = iParam0;
	}
}

void func_469(int iParam0, int iParam1, int iParam2)//Position - 0x68592
{
	var uVar0;
	int iVar6;
	int iVar7;
	var uVar8;
	var uVar9;
	char* sVar10;
	struct<16> Var11;
	int iVar27;
	int iVar28;
	
	if (!func_71())
	{
		return;
	}
	iVar7 = 1;
	if (func_526(player::player_id()))
	{
		iVar7 = 2;
	}
	if (iParam2 == 1)
	{
		iVar7 = 3;
	}
	if (Global_1618089[player::player_id() /*390*/].f_11 != player::player_id())
	{
		if (iParam1)
		{
			unk_0x3EBEAC6C3F81F6BD(iVar7);
			func_523(0);
			func_522(0);
			func_406(21);
			func_406(22);
			Global_1618089[player::player_id() /*390*/].f_11.f_327 = iVar7;
		}
		Global_1618089[player::player_id() /*390*/].f_11 = player::player_id();
		Global_1618089[player::player_id() /*390*/].f_11.f_289 = iParam2;
		Global_1618089[player::player_id() /*390*/].f_11.f_326 = iParam2;
		unk_0x6BC0ACD0673ACEBE(func_39(), &uVar8, &uVar9);
		func_521(uVar8, uVar9);
		sVar10 = network::_network_player_get_user_id(player::player_id(), &uVar0);
		StringCopy(&Var11, sVar10, 64);
		func_520(Var11);
		func_519();
		if (func_359(5887, -1, 0) <= 0)
		{
			iVar6 = network::_get_posix_time();
		}
		else
		{
			iVar6 = (func_359(5887, -1, 0) - 43200);
		}
		func_516(iVar6);
		if (decorator::decor_is_registered_as_type("Player_Boss", 3))
		{
			decorator::decor_set_int(player::player_ped_id(), "Player_Boss", player::player_id());
		}
		Global_1618089[player::player_id() /*390*/].f_11.f_23 = -1;
		Global_1618089[player::player_id() /*390*/].f_11.f_24 = -1;
		Global_2494149.f_4710.f_32 = -1;
		func_508();
		func_499(0);
		if (iParam0)
		{
			func_498(0);
		}
		if (Global_2494149.f_4710.f_68 != func_45())
		{
			Global_2494149.f_4710.f_68 = func_45();
		}
		if (gameplay::is_bit_set(Global_2494149.f_1644, 15))
		{
			gameplay::clear_bit(&(Global_2494149.f_1644), 15);
		}
		if (func_497(15))
		{
			func_496(15);
		}
		if (!func_495() && !network::network_is_activity_session())
		{
			func_494();
			func_493(2);
		}
		func_237(5927, 2, -1, 1, 0);
		func_406(31);
		func_489();
		func_484();
		func_479();
		func_478();
		if (iParam2 != 1)
		{
			if (!func_477(82, 3))
			{
				iVar27 = false;
				iVar28 = func_359(5884, -1, 0);
				if (!gameplay::is_bit_set(iVar28, 11))
				{
					gameplay::set_bit(&iVar28, 11);
					func_237(5884, iVar28, -1, 1, 0);
					iVar27 = true;
				}
				func_472(82, 3, iVar27);
			}
		}
		if (iParam2 == 1)
		{
			unk_0x0B565B0AAE56A0E8(func_453(func_456()), func_452(func_456()), func_471(), func_470(), Global_1618089[player::player_id() /*390*/].f_11.f_290, 4, Global_1618089[player::player_id() /*390*/].f_11.f_328);
		}
	}
}

int func_470()//Position - 0x6880C
{
	if (Global_1759248.f_3 != 0)
	{
		return Global_1759248.f_3;
	}
	return -1;
}

int func_471()//Position - 0x68828
{
	if (Global_1759248.f_2 != 0)
	{
		return Global_1759248.f_2;
	}
	return -1;
}

void func_472(int iParam0, int iParam1, int iParam2)//Position - 0x68844
{
	Global_2999 = iParam0;
	if (Global_117[iParam0 /*10*/].f_8 != 140)
	{
		func_474();
		if (iParam1 == 4)
		{
			Global_101652.f_26993[iParam0 /*29*/].f_12[0] = 1;
			Global_101652.f_26993[iParam0 /*29*/].f_12[1] = 1;
			Global_101652.f_26993[iParam0 /*29*/].f_12[2] = 1;
			Global_101652.f_26993[iParam0 /*29*/].f_24[0] = 1;
			Global_101652.f_26993[iParam0 /*29*/].f_24[1] = 1;
			Global_101652.f_26993[iParam0 /*29*/].f_24[2] = 1;
		}
		else
		{
			if (Global_101652.f_26993[iParam0 /*29*/].f_12[iParam1] == 1 && Global_101652.f_26993[iParam0 /*29*/].f_24[iParam1] == 1)
			{
				iParam2 = false;
			}
			Global_101652.f_26993[iParam0 /*29*/].f_12[iParam1] = 1;
			Global_101652.f_26993[iParam0 /*29*/].f_24[iParam1] = 1;
		}
		if (iParam2)
		{
			if (!Global_69697)
			{
				if (iParam1 != 4)
				{
					if (Global_14443 != iParam1)
					{
						Global_2972[iParam1 /*4*/] = { Global_101652.f_26993[iParam0 /*29*/].f_3 };
						Global_2989[iParam1] = 1;
						Global_2994[iParam1] = iParam0;
					}
					else if (iParam0 == Global_14443)
					{
					}
					else
					{
						Global_2923[1 /*6*/] = { Global_101652.f_26993[iParam0 /*29*/].f_3 };
						Global_2923[1 /*6*/].f_5 = iParam1;
						func_473();
					}
				}
				else
				{
					Global_2923[1 /*6*/] = { Global_101652.f_26993[iParam0 /*29*/].f_3 };
					Global_2923[1 /*6*/].f_5 = iParam1;
					func_473();
				}
			}
			else
			{
				Global_2923[1 /*6*/] = { Global_101652.f_26993[iParam0 /*29*/].f_3 };
				Global_2923[1 /*6*/].f_5 = iParam1;
				func_473();
			}
		}
	}
}

void func_473()//Position - 0x689EE
{
	char cVar0[64];
	char cVar16[64];
	char* sVar32;
	
	StringCopy(&cVar0, ui::_get_label_text(&(Global_101652.f_26993[Global_2999 /*29*/].f_7)), 64);
	if (Global_3018 == 0)
	{
		ui::_set_notification_text_entry("");
		StringCopy(&cVar16, ui::_get_label_text(&(Global_2923[1 /*6*/])), 64);
		sVar32 = ui::_get_label_text("CELL_253");
		ui::_set_notification_message(&cVar0, &cVar0, 0, 3, sVar32, &cVar16);
	}
	else
	{
		ui::_set_notification_text_entry("CELL_255");
		ui::_add_text_component_item_string(&(Global_2923[1 /*6*/]));
		ui::_set_notification_message(&cVar0, &cVar0, 0, 3, "", 0);
	}
	gameplay::clear_bit(&Global_2313, 0);
}

void func_474()//Position - 0x68A71
{
	if (func_200(14))
	{
		if (!entity::is_entity_dead(player::player_ped_id(), 0))
		{
			if (entity::get_entity_model(player::player_ped_id()) == Global_101652.f_26993[0 /*29*/])
			{
				Global_14443 = 0;
			}
			else if (entity::get_entity_model(player::player_ped_id()) == Global_101652.f_26993[1 /*29*/])
			{
				Global_14443 = 1;
			}
			else if (entity::get_entity_model(player::player_ped_id()) == Global_101652.f_26993[2 /*29*/])
			{
				Global_14443 = 2;
			}
			else
			{
				Global_14443 = 0;
			}
		}
	}
	else
	{
		Global_14443 = func_475();
		if (Global_14443 == 145)
		{
			Global_14443 = 3;
		}
		if (Global_69697)
		{
			Global_14443 = 3;
		}
		if (Global_14443 > 3)
		{
			Global_14443 = 3;
		}
	}
}

var func_475()//Position - 0x68B13
{
	func_476();
	return Global_101652.f_2079.f_539.f_3549;
}

void func_476()//Position - 0x68B2C
{
	int iVar0;
	
	if (entity::does_entity_exist(player::player_ped_id()))
	{
		if (func_274(Global_101652.f_2079.f_539.f_3549) != entity::get_entity_model(player::player_ped_id()))
		{
			iVar0 = func_273(player::player_ped_id());
			if (func_270(iVar0) && (!func_200(14) || Global_100604))
			{
				if (Global_101652.f_2079.f_539.f_3549 != iVar0 && func_270(Global_101652.f_2079.f_539.f_3549))
				{
					Global_101652.f_2079.f_539.f_3550 = Global_101652.f_2079.f_539.f_3549;
				}
				Global_101652.f_2079.f_539.f_3551 = iVar0;
				Global_101652.f_2079.f_539.f_3549 = iVar0;
				return;
			}
		}
		else
		{
			if (Global_101652.f_2079.f_539.f_3549 != 145)
			{
				Global_101652.f_2079.f_539.f_3551 = Global_101652.f_2079.f_539.f_3549;
			}
			return;
		}
	}
	Global_101652.f_2079.f_539.f_3549 = 145;
}

bool func_477(int iParam0, int iParam1)//Position - 0x68C29
{
	if (Global_101652.f_26993[iParam0 /*29*/].f_12[iParam1] == 1)
	{
		return true;
	}
	return false;
}

void func_478()//Position - 0x68C4E
{
	if (!Global_2494149.f_4710.f_147)
	{
		Global_2494149.f_4710.f_147 = 1;
	}
}

void func_479()//Position - 0x68C6D
{
	struct<16> Var0;
	
	Var0 = { func_483(49, 50, -1) };
	func_481(&Var0, 0);
	if ((!gameplay::is_durango_version() && network::_0x595F028698072DD9(0, -1, 1)) || func_480())
	{
		func_406(28);
	}
	else
	{
		func_407(28);
	}
}

bool func_480()//Position - 0x68CB6
{
	if (network::_0x66B59CFFD78467AF() == 0)
	{
		return false;
	}
	if (gameplay::is_ps3_version())
	{
		if (network::_0xAEEF48CDF5B6CE7C(1, -1))
		{
			if (network::network_have_online_privileges())
			{
				return true;
			}
		}
	}
	if (gameplay::is_orbis_version())
	{
		if (network::_0x72D918C99BCACC54(1))
		{
			if (network::network_have_online_privileges())
			{
				return true;
			}
		}
	}
	if (gameplay::is_xbox360_version() || gameplay::is_durango_version())
	{
		if (network::_0x595F028698072DD9(0, -3, 1))
		{
			return true;
		}
	}
	if (gameplay::is_pc_version())
	{
		if (network::_0xAEEF48CDF5B6CE7C(0, -1))
		{
			if (network::network_have_online_privileges())
			{
				return true;
			}
		}
	}
	return false;
}

void func_481(char* sParam0, int iParam1)//Position - 0x68D3C
{
	if (iParam1)
	{
		if (!gameplay::is_string_null_or_empty(sParam0))
		{
			func_482(49, 50, sParam0, -1, 1);
		}
	}
	if (!gameplay::is_string_null_or_empty(sParam0))
	{
		StringCopy(&(Global_1618089[player::player_id() /*390*/].f_11.f_267), sParam0, 64);
	}
	if ((!gameplay::is_durango_version() && network::_0x595F028698072DD9(0, -1, 1)) || func_480())
	{
		func_406(28);
	}
	else
	{
		func_407(28);
	}
}

void func_482(int iParam0, int iParam1, char* sParam2, int iParam3, int iParam4)//Position - 0x68DA9
{
	int iVar0;
	int iVar1;
	char cVar2[32];
	char cVar10[32];
	int iVar18;
	int iVar19;
	
	if (func_235())
	{
		iVar0 = Global_2523435[iParam0 /*3*/][func_69(iParam3)];
		iVar1 = Global_2523435[iParam1 /*3*/][func_69(iParam3)];
		if (iVar0 != 0 && iVar1 != 0)
		{
			StringCopy(&cVar2, "", 32);
			StringCopy(&cVar10, "", 32);
			iVar18 = ui::get_length_of_literal_string(sParam2);
			if (iVar18 > 0)
			{
				iVar19 = 10;
				if (iVar18 < 10)
				{
					iVar19 = iVar18;
				}
				StringCopy(&cVar2, ui::_get_text_substring_safe(sParam2, 0, iVar19, 31), 32);
				if (iVar18 > 10)
				{
					StringCopy(&cVar10, ui::_get_text_substring_safe(sParam2, 10, iVar18, 31), 32);
				}
			}
			stats::stat_set_string(iVar0, &cVar2, iParam4);
			stats::stat_set_string(iVar1, &cVar10, iParam4);
		}
	}
}

struct<16> func_483(int iParam0, int iParam1, int iParam2)//Position - 0x68E55
{
	var uVar0;
	var uVar1;
	struct<16> Var2;
	char cVar18[32];
	
	uVar0 = Global_2523435[iParam0 /*3*/][func_69(iParam2)];
	uVar1 = Global_2523435[iParam1 /*3*/][func_69(iParam2)];
	StringCopy(&Var2, stats::stat_get_string(uVar0, -1), 64);
	StringCopy(&cVar18, stats::stat_get_string(uVar1, -1), 32);
	StringConCat(&Var2, &cVar18, 64);
	return Var2;
}

void func_484()//Position - 0x68EA2
{
	struct<16> Var0;
	
	Var0 = { func_483(45, 46, -1) };
	func_485(&Var0, 0);
	if ((!gameplay::is_durango_version() && network::_0x595F028698072DD9(0, -1, 1)) || func_480())
	{
		func_406(28);
	}
	else
	{
		func_407(28);
	}
}

void func_485(char* sParam0, int iParam1)//Position - 0x68EEB
{
	struct<16> Var0;
	int iVar16;
	
	if (iParam1)
	{
		if (!gameplay::is_string_null_or_empty(sParam0))
		{
			func_482(45, 46, sParam0, -1, 1);
			Var0 = { func_483(59, 61, -1) };
			if (gameplay::is_string_null_or_empty(&Var0))
			{
				func_482(59, 61, sParam0, -1, 1);
			}
		}
	}
	if ((!gameplay::is_durango_version() && network::_0x595F028698072DD9(0, -1, 1)) || func_480())
	{
		func_406(28);
	}
	else
	{
		func_407(28);
	}
	if (!gameplay::is_string_null_or_empty(sParam0))
	{
		iVar16 = true;
		if ((func_257(player::player_id(), 28) || func_488(player::player_id())) && !func_486(player::player_id()))
		{
			iVar16 = false;
		}
		if (iVar16)
		{
			StringCopy(&(Global_1618089[player::player_id() /*390*/].f_11.f_251), sParam0, 64);
		}
	}
}

bool func_486(int iParam0)//Position - 0x68FAC
{
	struct<13> Var0;
	
	Var0 = { func_487(iParam0) };
	if (gameplay::is_durango_version() && network::_0xB57A49545BA53CE7(&Var0))
	{
		return true;
	}
	return false;
}

struct<13> func_487(int iParam0)//Position - 0x68FD6
{
	struct<13> Var0;
	
	network::network_handle_from_player(iParam0, &Var0, 13);
	return Var0;
}

bool func_488(int iParam0)//Position - 0x68FED
{
	struct<13> Var0;
	
	Var0 = { func_487(iParam0) };
	if (gameplay::is_orbis_version() || gameplay::is_pc_version())
	{
		if (network::_0x72D918C99BCACC54(0))
		{
			return false;
		}
	}
	else if (gameplay::is_durango_version())
	{
		if (network::_0xB57A49545BA53CE7(&Var0))
		{
			return false;
		}
	}
	return true;
}

void func_489()//Position - 0x69035
{
	struct<8> Var0;
	int iVar16;
	
	Var0 = { func_483(59, 61, -1) };
	iVar16 = 0;
	if (func_454(1))
	{
		Var0 = { func_483(47, 48, -1) };
		iVar16 = 1;
	}
	if (gameplay::is_string_null_or_empty(&Var0))
	{
		StringCopy(&Var0, func_491(player::player_id(), 0), 64);
	}
	func_490(&Var0, iVar16, 0);
	if ((!gameplay::is_durango_version() && network::_0x595F028698072DD9(0, -1, 1)) || func_480())
	{
		func_406(28);
	}
	else
	{
		func_407(28);
	}
}

void func_490(char* sParam0, int iParam1, int iParam2)//Position - 0x690B1
{
	if (iParam2)
	{
		if (func_454(1) || iParam1 == 1)
		{
			func_482(47, 48, sParam0, -1, 1);
			if (func_447() && iParam1 == 1)
			{
				func_481(sParam0, iParam2);
			}
		}
		else
		{
			func_482(59, 61, sParam0, -1, 1);
			if (func_460() && iParam1 == 0)
			{
				func_485(sParam0, iParam2);
			}
		}
	}
	StringCopy(&(Global_1618089[player::player_id() /*390*/].f_11.f_97), sParam0, 64);
	Global_1618089[player::player_id() /*390*/].f_11.f_113 = unk_0x497420E022796B3F();
	if ((!gameplay::is_durango_version() && network::_0x595F028698072DD9(0, -1, 1)) || func_480())
	{
		func_406(28);
	}
	else
	{
		func_407(28);
	}
}

char* func_491(int iParam0, int iParam1)//Position - 0x6916C
{
	if (!iParam1)
	{
		if (func_132(iParam0, 1))
		{
			return func_492();
		}
	}
	return ui::_get_label_text("GB_REST_ACC");
}

char* func_492()//Position - 0x69194
{
	return ui::_get_label_text("GB_REST_ACCM");
}

void func_493(int iParam0)//Position - 0x691A5
{
	gameplay::set_bit(&(Global_2391018.f_2), iParam0);
	if (Global_2391018)
	{
		return;
	}
	Global_2391018 = 1;
	Global_2391018.f_1 = 0;
}

void func_494()//Position - 0x691CF
{
	int iVar0;
	
	iVar0 = 0;
	while (iVar0 < 15)
	{
		if (Global_2390944.f_28[iVar0 /*2*/] != -1 && Global_2390944.f_28[iVar0 /*2*/].f_1 != 0)
		{
			if (ui::does_blip_exist(Global_2390944.f_28[iVar0 /*2*/].f_1))
			{
				ui::set_blip_as_short_range(Global_2390944.f_28[iVar0 /*2*/].f_1, true);
			}
		}
		iVar0++;
	}
}

var func_495()//Position - 0x69230
{
	return Global_2443089.f_618;
}

void func_496(int iParam0)//Position - 0x6923F
{
	int iVar0;
	int iVar1;
	
	iVar0 = (iParam0 / 32);
	iVar1 = (iParam0 % 32);
	gameplay::clear_bit(&(Global_2494149.f_4710.f_7[iVar0]), iVar1);
}

int func_497(int iParam0)//Position - 0x69268
{
	int iVar0;
	int iVar1;
	
	iVar0 = (iParam0 / 32);
	iVar1 = (iParam0 % 32);
	return gameplay::is_bit_set(Global_2494149.f_4710.f_7[iVar0], iVar1);
}

void func_498(int iParam0)//Position - 0x69291
{
	int iVar0;
	int iVar1;
	
	iVar0 = (iParam0 / 32);
	iVar1 = (iParam0 % 32);
	gameplay::set_bit(&(Global_2494149.f_4710.f_7[iVar0]), iVar1);
}

void func_499(int iParam0)//Position - 0x692BA
{
	if (func_507())
	{
		if (iParam0 == 1)
		{
			if (Global_2494149.f_4257 == -1)
			{
				Global_2494149.f_4257 = 60000;
			}
			func_506(&(Global_2494149.f_4255), 0, 0);
			if (Global_2494149.f_4260 == -1)
			{
				Global_2494149.f_4260 = 10000;
			}
			func_506(&(Global_2494149.f_4258), 0, 0);
		}
		else
		{
			Global_1312412 = 0;
			func_505(1);
		}
		if ((!network::network_is_activity_session() && !func_504()) && !func_500(player::player_id()))
		{
			Global_979731 = 0;
		}
		Global_1618089[player::player_id() /*390*/].f_8 = 0;
	}
}

bool func_500(int iParam0)//Position - 0x69354
{
	if (func_501(iParam0, 1))
	{
		if (Global_1589933[iParam0 /*601*/] != 6)
		{
			return true;
		}
	}
	return false;
}

bool func_501(int iParam0, int iParam1)//Position - 0x69378
{
	if (iParam1)
	{
		if (func_502(iParam0))
		{
			return true;
		}
	}
	if (Global_1589933[iParam0 /*601*/] == -1)
	{
		return false;
	}
	return true;
}

int func_502(int iParam0)//Position - 0x693A4
{
	return func_503(iParam0);
}

int func_503(var uParam0)//Position - 0x693B2
{
	return gameplay::is_bit_set(Global_1589933[uParam0 /*601*/].f_13.f_1, 0);
}

var func_504()//Position - 0x693CC
{
	return Global_2443089.f_718;
}

void func_505(int iParam0)//Position - 0x693DB
{
	if (network::network_is_game_in_progress())
	{
		if (!func_507())
		{
			if (func_1644(player::player_id(), 1, 0))
			{
				ped::set_ped_can_be_dragged_out(player::player_ped_id(), 1);
				ped::set_ped_config_flag(player::player_ped_id(), 342, false);
				ped::set_ped_config_flag(player::player_ped_id(), 122, false);
			}
			player::set_player_vehicle_defense_modifier(player::player_id(), 1f);
			network::_0x1B857666604B1A74(0);
			network::network_set_friendly_fire_option(1);
			if (Global_1312412.f_1 == 0 || Global_1312412.f_2 == 1)
			{
				Global_1312412.f_2 = 0;
				if (iParam0)
				{
					network::use_player_colour_instead_of_team_colour(0, 0);
				}
			}
		}
		else
		{
			if (func_1644(player::player_id(), 1, 1))
			{
				ped::set_ped_can_be_dragged_out(player::player_ped_id(), 0);
				weapon::set_current_ped_weapon(player::player_ped_id(), joaat("weapon_unarmed"), true);
				ped::set_ped_config_flag(player::player_ped_id(), 342, true);
				ped::set_ped_config_flag(player::player_ped_id(), 122, true);
				player::set_player_vehicle_defense_modifier(player::player_id(), 0.5f);
				if (Global_1312412.f_1 == 0 || Global_1312412.f_2 == 1)
				{
					network::use_player_colour_instead_of_team_colour(1, 0);
				}
			}
			network::_0x1B857666604B1A74(1);
			network::network_set_friendly_fire_option(0);
		}
	}
}

void func_506(var uParam0, int iParam1, int iParam2)//Position - 0x694D4
{
	if (network::network_is_game_in_progress() && !iParam1)
	{
		if (!iParam2)
		{
			*uParam0 = network::get_network_time();
		}
		else
		{
			*uParam0 = network::_0x89023FBBF9200E9F();
		}
	}
	else
	{
		*uParam0 = gameplay::get_game_timer();
	}
	uParam0->f_1 = 1;
}

var func_507()//Position - 0x69511
{
	return Global_1312412;
}

void func_508()//Position - 0x6951D
{
	int iVar0;
	int iVar1;
	
	iVar0 = 0;
	while (iVar0 < 32)
	{
		iVar1 = player::int_to_playerindex(iVar0);
		if (network::network_is_player_active(iVar1))
		{
			func_510(1, iVar1);
			if (iVar1 != player::player_id())
			{
				func_509(iVar1);
			}
		}
		iVar0++;
	}
}

void func_509(int iParam0)//Position - 0x6955F
{
	int iVar0;
	
	if (gameplay::is_bit_set(Global_1618089[player::player_id() /*390*/].f_11.f_93, iParam0))
	{
		iVar0 = player::get_player_ped(iParam0);
		ped::set_ped_can_be_targetted_by_player(iVar0, player::player_id(), 1);
		unk_0x55FCC0C390620314(player::player_id(), iParam0, 1);
		unk_0x55FCC0C390620314(iParam0, player::player_id(), 1);
		func_510(1, iParam0);
		gameplay::clear_bit(&(Global_1618089[player::player_id() /*390*/].f_11.f_93), iParam0);
	}
}

void func_510(int iParam0, int iParam1)//Position - 0x695C4
{
	int iVar0;
	int iVar1;
	int iVar2;
	int iVar3;
	
	if (func_1644(iParam1, 0, 1))
	{
		iVar1 = player::get_player_ped(iParam1);
		if (entity::does_entity_exist(iVar1) && !entity::is_entity_dead(iVar1, 0))
		{
			if (ped::is_ped_in_any_vehicle(iVar1, 0))
			{
				iVar0 = ped::get_vehicle_ped_is_in(iVar1, 0);
				if (entity::does_entity_exist(iVar0) && !entity::is_entity_dead(iVar0, 0))
				{
					vehicle::_0x7D6F9A3EF26136A0(iVar0, iParam0, 1);
					if (func_514(iParam1, func_456(), 1))
					{
						if (func_456() == iParam1)
						{
							if (Global_2494149.f_4710.f_69[3] != iVar0)
							{
								Global_2494149.f_4710.f_69[3] = iVar0;
							}
						}
						else
						{
							iVar2 = func_511(func_456(), iParam1);
							if (iVar2 != -1)
							{
								if (Global_2494149.f_4710.f_69[iVar2] != iVar0)
								{
									Global_2494149.f_4710.f_69[iVar2] = iVar0;
								}
							}
						}
					}
				}
			}
			else if (!iParam0)
			{
				if (func_514(iParam1, func_456(), 1))
				{
					if (func_456() == iParam1)
					{
						if (entity::does_entity_exist(Global_2494149.f_4710.f_69[3]) && !entity::is_entity_dead(Global_2494149.f_4710.f_69[3], 0))
						{
							vehicle::_0x7D6F9A3EF26136A0(Global_2494149.f_4710.f_69[3], true, 1);
							Global_2494149.f_4710.f_69[3] = 0;
						}
					}
					else
					{
						iVar3 = func_511(func_456(), iParam1);
						if (iVar3 != -1)
						{
							if (entity::does_entity_exist(Global_2494149.f_4710.f_69[iVar3]) && !entity::is_entity_dead(Global_2494149.f_4710.f_69[iVar3], 0))
							{
								vehicle::_0x7D6F9A3EF26136A0(Global_2494149.f_4710.f_69[iVar3], true, 1);
								Global_2494149.f_4710.f_69[iVar3] = 0;
							}
						}
					}
				}
			}
		}
	}
}

int func_511(int iParam0, int iParam1)//Position - 0x6975E
{
	int iVar0;
	
	if (func_56(iParam0))
	{
		if (func_514(iParam1, iParam0, 0) || func_513(iParam1, iParam0))
		{
			iVar0 = 0;
			while (iVar0 < 7)
			{
				if (func_512(iParam0, iVar0) == iParam1)
				{
					return iVar0;
				}
				iVar0++;
			}
		}
	}
	return -1;
}

int func_512(int iParam0, int iParam1)//Position - 0x697B4
{
	if (func_56(iParam0))
	{
		if (iParam1 > -1 && iParam1 < 7)
		{
			return Global_1618089[iParam0 /*390*/].f_11.f_10[iParam1];
		}
	}
	return func_45();
}

int func_513(int iParam0, int iParam1)//Position - 0x697F0
{
	if (iParam1 != func_45())
	{
		if (Global_1618089[iParam0 /*390*/].f_11.f_25 != func_45())
		{
			return iParam1 == Global_1618089[iParam0 /*390*/].f_11.f_25;
		}
	}
	return false;
}

int func_514(int iParam0, int iParam1, int iParam2)//Position - 0x69829
{
	if (iParam1 != func_45())
	{
		if (!iParam2)
		{
			if (func_515(iParam0, iParam1))
			{
				return false;
			}
		}
		if (Global_1618089[iParam0 /*390*/].f_11 != func_45())
		{
			return iParam1 == Global_1618089[iParam0 /*390*/].f_11;
		}
	}
	return false;
}

int func_515(int iParam0, int iParam1)//Position - 0x69873
{
	if (iParam1 != func_45())
	{
		if (iParam0 != func_45())
		{
			if (Global_1618089[iParam0 /*390*/].f_11 != func_45())
			{
				if (Global_1618089[iParam0 /*390*/].f_11 == iParam0)
				{
					return iParam1 == iParam0;
				}
			}
		}
	}
	return false;
}

void func_516(int iParam0)//Position - 0x698B8
{
	if (!func_71())
	{
		return;
	}
	Global_1618089[player::player_id() /*390*/].f_11.f_1 = iParam0;
	if (func_359(5887, -1, 0) != func_517(player::player_id()))
	{
		func_237(5887, func_517(player::player_id()), -1, 1, 0);
	}
}

int func_517(int iParam0)//Position - 0x69902
{
	if (func_518(iParam0) == -1)
	{
		return -1;
	}
	return (func_518(iParam0) + 43200);
}

var func_518(int iParam0)//Position - 0x69923
{
	return Global_1618089[iParam0 /*390*/].f_11.f_1;
}

void func_519()//Position - 0x69938
{
	if (gameplay::is_pc_version())
	{
		unk_0x265559DA40B3F327(1);
		if (func_454(1))
		{
			unk_0x6A1738B4323FE2D9(1253452001);
		}
		else
		{
			unk_0x6A1738B4323FE2D9(-1755491431);
		}
	}
}

void func_520(char[64] cParam0)//Position - 0x69969
{
	Global_2443860.f_3065.f_2 = { cParam0 };
}

void func_521(var uParam0, var uParam1)//Position - 0x69982
{
	Global_1618089[player::player_id() /*390*/].f_11.f_7[0] = uParam0;
	Global_1618089[player::player_id() /*390*/].f_11.f_7[1] = uParam1;
}

void func_522(int iParam0)//Position - 0x699B2
{
	func_234(204, iParam0, -1, 1);
}

void func_523(int iParam0)//Position - 0x699C4
{
	if (iParam0)
	{
		if (func_525(4))
		{
			func_407(21);
			func_407(22);
		}
		func_407(31);
		func_524(iParam0);
	}
	else
	{
		if (func_257(player::player_id(), 21))
		{
			func_406(21);
			if (!func_525(3) && func_525(4))
			{
				func_407(22);
			}
		}
		func_406(31);
		func_524(iParam0);
	}
}

void func_524(int iParam0)//Position - 0x69A2C
{
	func_234(286, iParam0, -1, 1);
}

int func_525(int iParam0)//Position - 0x69A3F
{
	return gameplay::is_bit_set(Global_2494149.f_4710.f_25, iParam0);
}

int func_526(int iParam0)//Position - 0x69A56
{
	if (iParam0 == -1)
	{
		return false;
	}
	return gameplay::is_bit_set(Global_1589933[iParam0 /*601*/].f_257.f_13, 26);
}

void func_527(int iParam0, int iParam1, char* sParam2)//Position - 0x69A7C
{
	int iVar0;
	
	if (!gameplay::is_string_null_or_empty(sParam2))
	{
		func_536(iParam0, sParam2);
	}
	func_535(iParam0);
	iVar0 = 0;
	while (iVar0 < 8)
	{
		if (iParam0->f_3[iVar0] != 0)
		{
			graphics::set_scaleform_movie_as_no_longer_needed(&(iParam0->f_3[iVar0]));
			iParam0->f_3[iVar0] = 0;
		}
		iVar0++;
	}
	func_534();
	func_533(iParam0);
	func_532(iParam0);
	if (iParam1)
	{
		func_550(0, 1);
	}
	func_528(0, 1, 1, 0);
}

void func_528(int iParam0, int iParam1, int iParam2, int iParam3)//Position - 0x69AF3
{
	if (iParam0)
	{
		player::special_ability_deactivate_fast(player::player_id());
		player::set_all_random_peds_flee(player::player_id(), 1);
		player::set_police_ignore_player(player::player_id(), 1);
		func_531(1);
		ui::_0xA8FDB297A8D25FBA();
		ui::_0xFDB423997FA30340();
		if (Global_14443.f_1 > 3)
		{
			if (audio::is_mobile_phone_call_ongoing())
			{
				audio::stop_scripted_conversation(false);
			}
			if (!func_389())
			{
				Global_14443.f_1 = 3;
			}
			Global_15745 = 5;
		}
		func_530(1, iParam3, iParam2, 0);
		Global_55824 = 1;
		Global_68130 = 1;
		Global_69695 = 1;
	}
	else
	{
		func_531(0);
		ui::_0xE1CD1E48E025E661();
		Global_55824 = 0;
		if (iParam1)
		{
			graphics::_0x03FC694AE06C5A20();
		}
		player::set_all_random_peds_flee(player::player_id(), 0);
		player::set_police_ignore_player(player::player_id(), 0);
		func_530(0, iParam3, iParam2, 0);
		if (network::network_is_game_in_progress())
		{
			if (((!ped::is_ped_injured(player::player_ped_id()) && !func_1592(player::player_id())) && !func_37(player::player_id(), 0)) && !func_529())
			{
				entity::set_entity_invincible(player::player_ped_id(), false);
			}
		}
		else if (!ped::is_ped_injured(player::player_ped_id()) && !func_1592(player::player_id()))
		{
			entity::set_entity_invincible(player::player_ped_id(), false);
		}
		Global_69695 = 0;
	}
}

int func_529()//Position - 0x69C0C
{
	return gameplay::is_bit_set(Global_1589933[player::player_id() /*601*/].f_39.f_18, 14);
}

int func_530(int iParam0, int iParam1, int iParam2, int iParam3)//Position - 0x69C29
{
	int iVar0;
	
	iVar0 = 0;
	if (gameplay::is_pc_version())
	{
		if (cutscene::_0xA0FE76168A189DDB() != iParam0 && iParam2)
		{
			cutscene::_0x20746F7B1032A3C7(iParam0, iParam1, 1, iParam3);
			iVar0 = 1;
		}
	}
	return iVar0;
}

void func_531(int iParam0)//Position - 0x69C5C
{
	if (iParam0 == 1)
	{
		gameplay::set_bit(&Global_2313, 13);
	}
	else
	{
		gameplay::clear_bit(&Global_2313, 13);
	}
}

void func_532(int iParam0)//Position - 0x69C7F
{
	iParam0->f_415 = 0;
	iParam0->f_398 = 0;
	iParam0->f_399 = 0;
	iParam0->f_416 = 0;
	iParam0->f_405 = 0;
	iParam0->f_406 = 0;
	func_9(&(iParam0->f_409));
	func_9(&(iParam0->f_411));
	if (entity::does_entity_exist(iParam0->f_19))
	{
		ped::delete_ped(&(iParam0->f_19));
	}
}

void func_533(int iParam0)//Position - 0x69CD0
{
	int iVar0;
	
	if (entity::does_entity_exist(iParam0->f_20))
	{
		object::delete_object(&(iParam0->f_20));
	}
	if (interior::is_valid_interior(iParam0->f_39))
	{
		if (interior::is_interior_ready(iParam0->f_39))
		{
			interior::unpin_interior(iParam0->f_39);
		}
	}
	streaming::remove_anim_dict("Move_m@generic_idles@std");
	streaming::remove_anim_dict("Move_f@generic_idles@std");
	streaming::remove_anim_dict("mp_player_intfinger");
	streaming::remove_anim_dict("mp_player_intsalute");
	streaming::remove_anim_dict("mp_player_introck");
	streaming::remove_anim_dict("mp_player_intwank");
	iVar0 = 0;
	iVar0 = 0;
	while (iVar0 < iParam0->f_22)
	{
		if (entity::does_entity_exist(iParam0->f_22[iVar0]))
		{
			ped::delete_ped(&(iParam0->f_22[iVar0]));
		}
		iVar0++;
	}
}

void func_534()//Position - 0x69D72
{
	streaming::remove_anim_dict("MP_CORONA_IDLES@FEMALE_A@BASE");
	streaming::remove_anim_dict("MP_CORONA_IDLES@FEMALE_B@BASE");
	streaming::remove_anim_dict("MP_CORONA_IDLES@FEMALE_C@BASE");
	streaming::remove_anim_dict("MP_CORONA_IDLES@MALE_A@BASE");
	streaming::remove_anim_dict("MP_CORONA_IDLES@MALE_B@BASE");
	streaming::remove_anim_dict("MP_CORONA_IDLES@MALE_C@BASE");
	streaming::remove_anim_dict("MP_CORONA_IDLES@MALE_D@BASE");
	streaming::remove_anim_dict("MP_CORONA_IDLES@MALE_E@BASE");
	streaming::remove_anim_dict("MP_CORONA_IDLES@FEMALE_A@IDLE_A");
	streaming::remove_anim_dict("MP_CORONA_IDLES@MALE_A@IDLE_A");
	streaming::remove_anim_dict("MP_CORONA_IDLES@MALE_B@IDLE_A");
	streaming::remove_anim_dict("MP_CORONA@SINGLE_TEAM");
	streaming::remove_anim_dict("MP_CORONA@TEAM_IDLES@FEMALE_A");
	streaming::remove_anim_dict("MP_CORONA@TEAM_IDLES@MALE_A");
	streaming::remove_anim_dict("MP_CORONA@TEAM_IDLES@MALE_B");
	streaming::remove_anim_dict("MP_CORONA@TEAM_IDLES@MALE_C");
	streaming::remove_anim_dict("anim@MP_CORONA_IDLES_JUGGERNAUT@MALE_A@BASE");
	streaming::remove_anim_dict("anim@MP_CORONA_IDLES_JUGGERNAUT@MALE_A@IDLE_A");
	streaming::remove_anim_dict("anim@MP_CORONA_IDLES_JUGGERNAUT@MALE_B@BASE");
	streaming::remove_anim_dict("anim@MP_CORONA_IDLES_JUGGERNAUT@MALE_B@IDLE_A");
	streaming::remove_anim_dict("anim@MP_CORONA_IDLES_JUGGERNAUT@MALE_C@BASE");
	streaming::remove_anim_dict("anim@MP_CORONA_IDLES_JUGGERNAUT@MALE_C@IDLE_A");
	streaming::remove_anim_dict("anim@MP_CORONA_IDLES_JUGGERNAUT@MALE_D@BASE");
	streaming::remove_anim_dict("anim@MP_CORONA_IDLES_JUGGERNAUT@MALE_D@IDLE_A");
	streaming::remove_anim_dict("anim@MP_CORONA_IDLES_JUGGERNAUT@MALE_E@BASE");
	streaming::remove_anim_dict("anim@MP_CORONA_IDLES_JUGGERNAUT@MALE_E@IDLE_A");
	streaming::remove_anim_dict("anim@MP_CORONA_IDLES_JUGGERNAUT@FEMALE_A@BASE");
	streaming::remove_anim_dict("anim@MP_CORONA_IDLES_JUGGERNAUT@FEMALE_A@IDLE_A");
	streaming::remove_anim_dict("anim@MP_CORONA_IDLES_JUGGERNAUT@FEMALE_B@BASE");
	streaming::remove_anim_dict("anim@MP_CORONA_IDLES_JUGGERNAUT@FEMALE_B@IDLE_A");
	streaming::remove_anim_dict("anim@MP_CORONA_IDLES_JUGGERNAUT@FEMALE_C@BASE");
	streaming::remove_anim_dict("anim@MP_CORONA_IDLES_JUGGERNAUT@FEMALE_C@IDLE_A");
}

void func_535(int iParam0)//Position - 0x69E9A
{
	if (*iParam0 != 0)
	{
		graphics::set_scaleform_movie_as_no_longer_needed(iParam0);
		*iParam0 = 0;
	}
	if (iParam0->f_1 != 0)
	{
		graphics::set_scaleform_movie_as_no_longer_needed(&(iParam0->f_1));
		iParam0->f_1 = 0;
	}
	if (iParam0->f_2 != 0)
	{
		graphics::set_scaleform_movie_as_no_longer_needed(&(iParam0->f_2));
		iParam0->f_2 = 0;
	}
}

void func_536(var uParam0, char* sParam1)//Position - 0x69EDD
{
	if (*uParam0 != 0 && graphics::has_scaleform_movie_loaded(*uParam0))
	{
		graphics::_push_scaleform_movie_function(*uParam0, "CLEANUP");
		graphics::_begin_text_component("STRING");
		ui::add_text_component_substring_player_name(sParam1);
		graphics::_end_text_component();
		graphics::_pop_scaleform_movie_function_void();
	}
	if (uParam0->f_1 != 0 && graphics::has_scaleform_movie_loaded(uParam0->f_1))
	{
		graphics::_push_scaleform_movie_function(uParam0->f_1, "CLEANUP");
		graphics::_begin_text_component("STRING");
		ui::add_text_component_substring_player_name(sParam1);
		graphics::_end_text_component();
		graphics::_pop_scaleform_movie_function_void();
	}
	if (uParam0->f_2 != 0 && graphics::has_scaleform_movie_loaded(uParam0->f_2))
	{
		graphics::_push_scaleform_movie_function(uParam0->f_2, "CLEANUP");
		graphics::_begin_text_component("STRING");
		ui::add_text_component_substring_player_name(sParam1);
		graphics::_end_text_component();
		graphics::_pop_scaleform_movie_function_void();
	}
}

bool func_537(int iParam0)//Position - 0x69F93
{
	int iVar0;
	int iVar1;
	int iVar2;
	int iVar3;
	
	iVar0 = entity::get_entity_model(iParam0);
	iVar2 = -1;
	iVar3 = -1;
	if (iVar0 == joaat("mp_f_freemode_01"))
	{
		iVar1 = func_159(iParam0, 6);
		if (iVar1 >= 256)
		{
			iVar2 = func_158(iVar0, iVar1, 6, 4);
			iVar3 = func_149(iVar2);
		}
		if ((((((((((((((iVar1 >= 0 && iVar1 <= 15) || (iVar1 >= 96 && iVar1 <= 111)) || (iVar1 >= 112 && iVar1 <= 127)) || (iVar1 >= 128 && iVar1 <= 143)) || (iVar1 >= 192 && iVar1 <= 207)) || (iVar1 >= 224 && iVar1 <= 239)) || iVar3 == 0) || iVar3 == 6) || iVar3 == 7) || iVar3 == 8) || iVar3 == 12) || iVar3 == 14) || (iVar2 != -1 && dlc1::_0x341DE7ED1D2A1BFD(iVar2, -474018129, 0))) || (iVar2 != -1 && dlc1::_0x341DE7ED1D2A1BFD(iVar2, -1223513441, 0)))
		{
			return true;
		}
		if ((((((((((((((((func_538(iParam0, iVar1, -110725741) || func_538(iParam0, iVar1, -893446075)) || func_538(iParam0, iVar1, 1574780543)) || func_538(iParam0, iVar1, 535413401)) || func_538(iParam0, iVar1, 1733644655)) || func_538(iParam0, iVar1, 2049832736)) || func_538(iParam0, iVar1, 2073157310)) || func_538(iParam0, iVar1, 861097554)) || func_538(iParam0, iVar1, 1098902187)) || func_538(iParam0, iVar1, 1525554567)) || func_538(iParam0, iVar1, 237011949)) || func_538(iParam0, iVar1, 2144724822)) || func_538(iParam0, iVar1, -791682517)) || func_538(iParam0, iVar1, -947073115)) || func_538(iParam0, iVar1, 1671169989)) || func_538(iParam0, iVar1, -1906418359)) || func_538(iParam0, iVar1, 2032755470))
		{
			return true;
		}
	}
	return false;
}

bool func_538(int iParam0, int iParam1, int iParam2)//Position - 0x6A210
{
	struct<5> Var0;
	
	dlc1::get_shop_ped_component(iParam2, &Var0);
	if (iParam1 == func_160(iParam0, Var0.f_3, Var0.f_4, 6))
	{
		return true;
	}
	return false;
}

void func_539(int iParam0, int iParam1, int iParam2)//Position - 0x6A239
{
	int iVar0;
	int iVar1;
	int iVar2;
	int iVar3;
	int iVar4;
	int iVar5;
	int iVar6;
	int iVar7;
	int iVar8;
	int iVar9;
	int iVar10;
	int iVar11;
	int iVar12;
	int iVar13;
	int iVar14;
	int iVar15;
	int iVar16;
	int iVar17;
	int iVar18;
	int iVar19;
	int iVar20;
	int iVar21;
	int iVar22;
	int iVar23;
	int iVar24;
	int iVar25;
	int iVar26;
	
	if (iParam1)
	{
		if (script::_get_no_loading_screen())
		{
			script::set_no_loading_screen(false);
		}
	}
	if (!network::network_is_game_in_progress())
	{
		iVar0 = iParam2;
		player::set_player_control(iParam0, iParam1, iVar0);
	}
	else
	{
		iVar1 = iParam2 & 2 != false;
		iVar2 = iParam2 & 4 != false;
		iVar3 = iParam2 & 8 != false;
		iVar4 = iParam2 & 16 != false;
		iVar5 = iParam2 & 32 != false;
		iVar6 = iParam2 & 64 != false;
		iVar7 = iParam2 & 128 != false;
		iVar8 = iParam2 & 256 != false;
		iVar9 = iParam2 & 512 != false;
		iVar10 = iParam2 & 1024 != false;
		iVar11 = iParam2 & 2048 != false;
		iVar12 = iParam2 & 4096 != false;
		iVar13 = iParam2 & 8192 != false;
		iVar14 = iParam2 & 16384 != false;
		iVar15 = iParam2 & 32768 != false;
		iVar16 = iParam2 & 65536 != false;
		iVar17 = iParam2 & 131072 != false;
		iVar18 = iParam2 & 262144 != false;
		iVar19 = iParam2 & 524288 != false;
		iVar20 = iParam2 & 1048576 != false;
		iVar21 = iParam2 & 2097152 != false;
		iVar22 = iParam2 & 4194304 != false;
		iVar23 = iParam2 & 8388608 != false;
		if (!func_544())
		{
			iVar24 = false;
			if (iParam1 == 1)
			{
				iVar24 = true;
			}
			if (iVar15 == 0 && !iVar20)
			{
				iVar24 = true;
			}
			if (iVar9 == 1)
			{
				iVar24 = true;
			}
			if (iVar24)
			{
				return;
			}
		}
		if (iVar17)
		{
		}
		if (network::network_is_player_active(iParam0) && player::is_player_playing(iParam0))
		{
			iVar25 = player::get_player_ped(iParam0);
			if (!iVar19)
			{
				if ((iVar18 && iParam1 == 0) && network::network_is_game_in_progress())
				{
					network::fade_out_local_player(1);
				}
				else
				{
					entity::set_entity_visible(iVar25, !iVar13, 0);
				}
				if (!iVar13)
				{
					if (network::network_is_game_in_progress() && !iVar18)
					{
						network::fade_out_local_player(0);
					}
					Global_2421621[iParam0 /*358*/].f_247 = 0;
				}
			}
			if (iParam1)
			{
				if (!func_543(iVar25) && !entity::is_entity_attached_to_any_vehicle(iVar25))
				{
					if (!iVar21)
					{
						entity::set_entity_collision(iVar25, true, 0);
					}
				}
				if (!entity::is_entity_attached(iVar25))
				{
					if (!iVar20)
					{
						entity::freeze_entity_position(iVar25, false);
					}
					entity::_0x3910051CCECDB00C(iVar25, true);
				}
				else if (!iVar20)
				{
					entity::freeze_entity_position(iVar25, false);
				}
				ped::set_ped_can_be_targetted(iVar25, true);
				player::set_player_invincible(iParam0, 0);
				ped::_0x4668D80430D6C299(iVar25);
				ped::set_ped_can_ragdoll(iVar25, 1);
				func_542();
				func_541();
				if (player::is_player_teleport_active())
				{
					if (!iVar22)
					{
					}
				}
				if (streaming::is_new_load_scene_active())
				{
				}
				Global_2421621[iParam0 /*358*/].f_248 = 0;
				if (!iVar23)
				{
					iVar2 = true;
				}
			}
			else
			{
				if (!func_543(iVar25) && !entity::is_entity_attached_to_any_vehicle(iVar25))
				{
					if (!iVar21)
					{
						entity::set_entity_collision(iVar25, !iVar14, 0);
					}
					if (!entity::is_entity_attached(iVar25))
					{
						if (!iVar20)
						{
							entity::freeze_entity_position(iVar25, iVar15);
						}
						if (!iVar15)
						{
							entity::_0x3910051CCECDB00C(iVar25, true);
						}
					}
					if (func_540(Global_1632166.f_105262))
					{
						entity::freeze_entity_position(iVar25, true);
					}
				}
				if (iVar9)
				{
					player::set_player_invincible(iParam0, 0);
				}
				else
				{
					player::set_player_invincible(iParam0, 1);
				}
				ped::set_ped_can_be_targetted(iVar25, iVar16);
				if (iVar2)
				{
					if (!ped::is_ped_fatally_injured(iVar25) && !ped::is_ped_in_any_vehicle(iVar25, 0))
					{
						ai::clear_ped_tasks_immediately(iVar25);
					}
				}
			}
			iVar26 = 0;
			if (iVar1)
			{
				iVar26 |= 2;
			}
			if (iVar2)
			{
				iVar26 |= 4;
			}
			if (iVar3)
			{
				iVar26 |= 8;
			}
			if (iVar4)
			{
				iVar26 |= 16;
			}
			if (iVar5)
			{
				iVar26 |= 32;
			}
			if (iVar6)
			{
				iVar26 |= 64;
			}
			if (iVar7)
			{
				iVar26 |= 128;
			}
			if (iVar8)
			{
				iVar26 |= 256;
			}
			if (iVar9)
			{
				iVar26 |= 512;
			}
			if (iVar10)
			{
				iVar26 |= 1024;
			}
			if (iVar11)
			{
				iVar26 |= 2048;
			}
			if (iVar12)
			{
				iVar26 |= 4096;
			}
			player::set_player_control(iParam0, iParam1, iVar26);
		}
	}
}

int func_540(int iParam0)//Position - 0x6A5F0
{
	return iParam0 == 17;
}

void func_541()//Position - 0x6A5FD
{
	struct<2> Var0;
	
	Global_2433082.f_731 = 0;
	Global_2433082.f_732 = 0;
	Global_2433082.f_733 = { 9999.9f, 9999.9f, 9999.9f };
	Global_2404994.f_2215 = { Var0 };
}

void func_542()//Position - 0x6A63A
{
	Global_2404994.f_639 = 0;
	Global_2404994.f_2256 = 0;
	Global_2404994.f_496 = 0;
	Global_2404994.f_571 = 0;
	Global_2421621[player::player_id() /*358*/].f_210 = 0;
}

bool func_543(int iParam0)//Position - 0x6A670
{
	int iVar0;
	
	if (ped::is_ped_in_any_vehicle(iParam0, 1))
	{
		return true;
	}
	else
	{
		iVar0 = ai::get_script_task_status(iParam0, -1794415470);
		if (iVar0 == 0)
		{
			return true;
		}
	}
	return false;
}

bool func_544()//Position - 0x6A6A1
{
	if (func_545() == 0)
	{
		return true;
	}
	return false;
}

var func_545()//Position - 0x6A6B6
{
	return Global_1312462.f_18;
}

float func_546(struct<2> Param0, var uParam2, struct<2> Param3, var uParam5)//Position - 0x6A6C4
{
	return gameplay::get_heading_from_vector_2d((Param3 - Param0), (Param3.f_1 - Param0.f_1));
}

int func_547()//Position - 0x6A6DE
{
	int iVar0;
	int iVar1;
	
	iVar0 = 71;
	iVar1 = 0;
	while (iVar1 <= 71)
	{
		if (func_548(player::player_ped_id(), vLocal_216[iVar1 /*3*/], 1) < fLocal_651)
		{
			fLocal_651 = func_548(player::player_ped_id(), vLocal_216[iVar1 /*3*/], 1);
			iVar0 = iVar1;
		}
		iVar1++;
	}
	fLocal_651 = 9999.99f;
	return iVar0;
}

float func_548(int iParam0, vector3 vParam1, int iParam4)//Position - 0x6A737
{
	vector3 vVar0;
	
	if (!entity::is_entity_dead(iParam0, 0))
	{
		vVar0 = { entity::get_entity_coords(iParam0, 1) };
	}
	else
	{
		vVar0 = { entity::get_entity_coords(iParam0, 0) };
	}
	return gameplay::get_distance_between_coords(vVar0, vParam1, iParam4);
}

void func_549(struct<2> Param0, float fParam2, float fParam3)//Position - 0x6A771
{
	float fVar0;
	vector3 vVar1;
	int iVar4;
	
	fVar0 = (360f / system::to_float(72));
	vVar1 = { entity::get_entity_coords(player::player_ped_id(), 1) };
	iVar4 = 0;
	while (iVar4 <= 71)
	{
		fLocal_650 = (fVar0 * IntToFloat(iVar4));
		vLocal_216[iVar4 /*3*/] = (Param0 + (fParam3 * system::cos(fLocal_650)));
		vLocal_216[iVar4 /*3*/].f_1 = (Param0.f_1 + (fParam3 * system::sin(fLocal_650)));
		vLocal_216[iVar4 /*3*/].f_2 = vVar1.y;
		vLocal_433[iVar4 /*3*/] = (Param0 + ((fParam3 - 0.5f) * system::cos(fLocal_650)));
		vLocal_433[iVar4 /*3*/].f_1 = (Param0.f_1 + ((fParam3 - 0.5f) * system::sin(fLocal_650)));
		vLocal_433[iVar4 /*3*/].f_2 = vVar1.y;
		iVar4++;
	}
}

void func_550(int iParam0, int iParam1)//Position - 0x6A82B
{
	if (iParam0)
	{
		func_551();
		func_530(1, 0, 1, 0);
		cam::set_widescreen_borders(true, 0);
	}
	else
	{
		if (iParam1)
		{
			func_386();
			func_530(0, 0, 1, 0);
		}
		cam::set_widescreen_borders(false, 0);
	}
	Global_1747153 = iParam0;
}

void func_551()//Position - 0x6A86C
{
	Global_2433082.f_655.f_10 = 1;
}

void func_552(var uParam0, char* sParam1)//Position - 0x6A87E
{
	graphics::_push_scaleform_movie_function(*uParam0, "SHOW_STAT_WALL");
	graphics::_begin_text_component("STRING");
	ui::add_text_component_substring_player_name(sParam1);
	graphics::_end_text_component();
	graphics::_pop_scaleform_movie_function_void();
	graphics::_push_scaleform_movie_function(uParam0->f_1, "SHOW_STAT_WALL");
	graphics::_begin_text_component("STRING");
	ui::add_text_component_substring_player_name(sParam1);
	graphics::_end_text_component();
	graphics::_pop_scaleform_movie_function_void();
	graphics::_push_scaleform_movie_function(uParam0->f_2, "SHOW_STAT_WALL");
	graphics::_begin_text_component("STRING");
	ui::add_text_component_substring_player_name(sParam1);
	graphics::_end_text_component();
	graphics::_pop_scaleform_movie_function_void();
}

void func_553(var uParam0, char* sParam1, int iParam2, int iParam3)//Position - 0x6A8F4
{
	graphics::_push_scaleform_movie_function(*uParam0, "ADD_BACKGROUND_TO_WALL");
	graphics::_begin_text_component("STRING");
	ui::add_text_component_substring_player_name(sParam1);
	graphics::_end_text_component();
	if (iParam2 > -1)
	{
		graphics::_push_scaleform_movie_function_parameter_int(iParam2);
	}
	else
	{
		graphics::_push_scaleform_movie_function_parameter_int(75);
	}
	graphics::_push_scaleform_movie_function_parameter_int(iParam3);
	graphics::_pop_scaleform_movie_function_void();
	graphics::_push_scaleform_movie_function(uParam0->f_1, "ADD_BACKGROUND_TO_WALL");
	graphics::_begin_text_component("STRING");
	ui::add_text_component_substring_player_name(sParam1);
	graphics::_end_text_component();
	if (iParam2 > -1)
	{
		graphics::_push_scaleform_movie_function_parameter_int(iParam2);
	}
	else
	{
		graphics::_push_scaleform_movie_function_parameter_int(75);
	}
	graphics::_push_scaleform_movie_function_parameter_int(iParam3);
	graphics::_pop_scaleform_movie_function_void();
	graphics::_push_scaleform_movie_function(uParam0->f_2, "ADD_BACKGROUND_TO_WALL");
	graphics::_begin_text_component("STRING");
	ui::add_text_component_substring_player_name(sParam1);
	graphics::_end_text_component();
	if (iParam2 > -1)
	{
		graphics::_push_scaleform_movie_function_parameter_int(iParam2);
	}
	else
	{
		graphics::_push_scaleform_movie_function_parameter_int(75);
	}
	graphics::_push_scaleform_movie_function_parameter_int(iParam3);
	graphics::_pop_scaleform_movie_function_void();
}

void func_554(var uParam0, int iParam1)//Position - 0x6A9BB
{
	float fVar0;
	
	fVar0 = (system::to_float(iParam1) / 1000f);
	graphics::_push_scaleform_movie_function(*uParam0, "SET_PAUSE_DURATION");
	graphics::_push_scaleform_movie_function_parameter_float(fVar0);
	graphics::_pop_scaleform_movie_function_void();
	graphics::_push_scaleform_movie_function(uParam0->f_1, "SET_PAUSE_DURATION");
	graphics::_push_scaleform_movie_function_parameter_float(fVar0);
	graphics::_pop_scaleform_movie_function_void();
	graphics::_push_scaleform_movie_function(uParam0->f_2, "SET_PAUSE_DURATION");
	graphics::_push_scaleform_movie_function_parameter_float(fVar0);
	graphics::_pop_scaleform_movie_function_void();
}

void func_555(var uParam0, char* sParam1, int iParam2, char* sParam3, char* sParam4, char* sParam5, int iParam6, int iParam7, int iParam8, int iParam9, int iParam10)//Position - 0x6AA18
{
	char* sVar0;
	
	if (iParam2 == 0)
	{
		if (iParam9)
		{
			sVar0 = "CELEB_FINCOMP";
		}
		else if (iParam8)
		{
			sVar0 = "CELEB_WINNERS";
		}
		else
		{
			sVar0 = "CELEB_WINNER";
		}
	}
	else if (iParam2 == 1)
	{
		sVar0 = "CELEB_LOSER";
	}
	else
	{
		sVar0 = "CELEB_DRAW";
		sParam3 = "";
		sParam4 = "";
	}
	if (!func_480() || !func_558(player::player_id()))
	{
		sParam4 = "";
	}
	graphics::_push_scaleform_movie_function(*uParam0, "ADD_WINNER_TO_WALL");
	graphics::_begin_text_component("STRING");
	ui::add_text_component_substring_player_name(sParam1);
	graphics::_end_text_component();
	if (!iParam9)
	{
		func_557(sVar0);
	}
	else
	{
		graphics::_begin_text_component(sVar0);
		ui::add_text_component_substring_player_name(&(Global_2443860.f_3381.f_59));
		graphics::_end_text_component();
	}
	if (!iParam10)
	{
		graphics::_begin_text_component("STRING");
		ui::add_text_component_substring_player_name(sParam3);
		graphics::_end_text_component();
	}
	else
	{
		func_556(sParam3);
	}
	graphics::_begin_text_component("STRING");
	ui::add_text_component_substring_player_name(sParam4);
	graphics::_end_text_component();
	graphics::_push_scaleform_movie_function_parameter_int(iParam6);
	graphics::_push_scaleform_movie_function_parameter_bool(iParam7);
	graphics::_begin_text_component("STRING");
	ui::add_text_component_substring_player_name(sParam5);
	graphics::_end_text_component();
	if (iParam10)
	{
		graphics::_push_scaleform_movie_function_parameter_bool(true);
	}
	graphics::_pop_scaleform_movie_function_void();
	graphics::_push_scaleform_movie_function(uParam0->f_1, "ADD_WINNER_TO_WALL");
	graphics::_begin_text_component("STRING");
	ui::add_text_component_substring_player_name(sParam1);
	graphics::_end_text_component();
	if (!iParam9)
	{
		func_557(sVar0);
	}
	else
	{
		graphics::_begin_text_component(sVar0);
		ui::add_text_component_substring_player_name(&(Global_2443860.f_3381.f_59));
		graphics::_end_text_component();
	}
	graphics::_begin_text_component("STRING");
	ui::add_text_component_substring_player_name(sParam3);
	graphics::_end_text_component();
	graphics::_begin_text_component("STRING");
	ui::add_text_component_substring_player_name(sParam4);
	graphics::_end_text_component();
	graphics::_push_scaleform_movie_function_parameter_int(iParam6);
	graphics::_push_scaleform_movie_function_parameter_bool(iParam7);
	graphics::_begin_text_component("STRING");
	ui::add_text_component_substring_player_name(sParam5);
	graphics::_end_text_component();
	if (iParam10)
	{
		graphics::_push_scaleform_movie_function_parameter_bool(true);
	}
	graphics::_pop_scaleform_movie_function_void();
	graphics::_push_scaleform_movie_function(uParam0->f_2, "ADD_WINNER_TO_WALL");
	graphics::_begin_text_component("STRING");
	ui::add_text_component_substring_player_name(sParam1);
	graphics::_end_text_component();
	if (!iParam9)
	{
		func_557(sVar0);
	}
	else
	{
		graphics::_begin_text_component(sVar0);
		ui::add_text_component_substring_player_name(&(Global_2443860.f_3381.f_59));
		graphics::_end_text_component();
	}
	graphics::_begin_text_component("STRING");
	ui::add_text_component_substring_player_name(sParam3);
	graphics::_end_text_component();
	graphics::_begin_text_component("STRING");
	ui::add_text_component_substring_player_name(sParam4);
	graphics::_end_text_component();
	graphics::_push_scaleform_movie_function_parameter_int(iParam6);
	graphics::_push_scaleform_movie_function_parameter_bool(iParam7);
	graphics::_begin_text_component("STRING");
	ui::add_text_component_substring_player_name(sParam5);
	graphics::_end_text_component();
	if (iParam10)
	{
		graphics::_push_scaleform_movie_function_parameter_bool(true);
	}
	graphics::_pop_scaleform_movie_function_void();
}

void func_556(char* sParam0)//Position - 0x6AC6D
{
	graphics::_begin_text_component(sParam0);
	graphics::_end_text_component();
}

void func_557(char* sParam0)//Position - 0x6AC7F
{
	graphics::_0xE83A3E3557A56640(sParam0);
}

bool func_558(int iParam0)//Position - 0x6AC8D
{
	int iVar0;
	struct<13> Var1;
	
	if (network::_0x66B59CFFD78467AF() == 0)
	{
		return false;
	}
	iVar0 = -1;
	if (iParam0 != player::player_id())
	{
		iVar0 = iParam0;
		if (iVar0 == -1)
		{
			return false;
		}
	}
	if (gameplay::is_ps3_version() || gameplay::is_orbis_version())
	{
		if (network::_0xAEEF48CDF5B6CE7C(0, iVar0))
		{
			if (network::network_have_online_privileges())
			{
				return true;
			}
		}
	}
	if (gameplay::is_xbox360_version() || gameplay::is_durango_version())
	{
		if (iParam0 == player::player_id())
		{
			if (network::_0x83F28CE49FBBFFBA(0, -3, 1) || network::_0xAEEF48CDF5B6CE7C(1, -1))
			{
				return true;
			}
		}
		else
		{
			Var1 = { func_487(iParam0) };
			if (network::_0xAEEF48CDF5B6CE7C(0, -1) || (network::_0xAEEF48CDF5B6CE7C(1, -1) && network::network_is_friend(&Var1)))
			{
				return true;
			}
		}
	}
	if (gameplay::is_pc_version())
	{
		if (network::_0xAEEF48CDF5B6CE7C(0, iVar0))
		{
			if (network::network_have_online_privileges())
			{
				return true;
			}
		}
	}
	return false;
}

void func_559(var uParam0, char* sParam1, char* sParam2, int iParam3, int iParam4)//Position - 0x6AD66
{
	if (iParam3)
	{
		sParam2 = "HUD_COLOUR_BLACK";
	}
	func_536(uParam0, sParam1);
	ui::_0xB99C4E4D9499DF29(10);
	graphics::_push_scaleform_movie_function(*uParam0, "CREATE_STAT_WALL");
	graphics::_begin_text_component("STRING");
	ui::add_text_component_substring_player_name(sParam1);
	graphics::_end_text_component();
	graphics::_begin_text_component("STRING");
	ui::add_text_component_substring_player_name(sParam2);
	graphics::_end_text_component();
	if (iParam4 > 0 && iParam4 <= 3)
	{
		graphics::_push_scaleform_movie_function_parameter_int(iParam4);
	}
	graphics::_pop_scaleform_movie_function_void();
	graphics::_push_scaleform_movie_function(uParam0->f_1, "CREATE_STAT_WALL");
	graphics::_begin_text_component("STRING");
	ui::add_text_component_substring_player_name(sParam1);
	graphics::_end_text_component();
	graphics::_begin_text_component("STRING");
	ui::add_text_component_substring_player_name(sParam2);
	graphics::_end_text_component();
	if (iParam4 > 0 && iParam4 <= 3)
	{
		graphics::_push_scaleform_movie_function_parameter_int(iParam4);
	}
	graphics::_pop_scaleform_movie_function_void();
	graphics::_push_scaleform_movie_function(uParam0->f_2, "CREATE_STAT_WALL");
	graphics::_begin_text_component("STRING");
	ui::add_text_component_substring_player_name(sParam1);
	graphics::_end_text_component();
	graphics::_begin_text_component("STRING");
	ui::add_text_component_substring_player_name(sParam2);
	graphics::_end_text_component();
	if (iParam4 > 0 && iParam4 <= 3)
	{
		graphics::_push_scaleform_movie_function_parameter_int(iParam4);
	}
	graphics::_pop_scaleform_movie_function_void();
}

void func_560()//Position - 0x6AE71
{
	int iVar0;
	int iVar1;
	int iVar2;
	var uVar3;
	var uVar4;
	
	if (!func_669(16))
	{
		if (func_1555() != 8)
		{
			if (!func_667(player::player_id()))
			{
				if (!func_664(player::player_id()))
				{
					if (func_663(network::participant_id_to_int()))
					{
						if (func_662(network::participant_id_to_int()))
						{
							func_649(&iVar0, &iVar1, &iVar2);
						}
						if (iVar1 > 0)
						{
							func_648();
							func_605(0, player::player_ped_id(), "", -1636175450, -1253457806, iVar1, 1, -1, 0, 0, 0);
							Local_742.f_7 = (Local_742.f_7 + iVar1);
						}
						if (iVar0 > 0)
						{
							func_574(&iVar0, 1);
						}
						iVar0 = (iVar0 + iVar2);
						if (iVar0 > 0)
						{
							if (func_573())
							{
								func_564(-815546555, iVar0, &uVar3, 0, 1, 0);
							}
							else
							{
								networkcash::_0xFB6DB092FBAE29E6(iVar0, "AM_HUNT_THE_BEAST", &uVar4);
							}
							Local_742.f_6 = (Local_742.f_6 + iVar0);
							if (!Global_262145.f_9909)
							{
								if (Local_742.f_6 > 0)
								{
									func_563(20, Local_742.f_6);
								}
							}
							Global_2454660 = iVar0;
						}
					}
					else
					{
						func_561(0);
					}
				}
			}
		}
		func_1559(16);
	}
}

void func_561(int iParam0)//Position - 0x6AF87
{
	if (iParam0)
	{
		if (func_562(1))
		{
			gameplay::set_bit(&Global_1574357, 1);
		}
	}
	else if (func_562(2))
	{
		gameplay::set_bit(&Global_1574357, 2);
	}
}

bool func_562(int iParam0)//Position - 0x6AFB9
{
	int iVar0;
	
	iVar0 = func_359(2516, -1, 0);
	if (iParam0 == 0)
	{
		if ((gameplay::is_bit_set(iVar0, 0) && gameplay::is_bit_set(iVar0, 1)) && gameplay::is_bit_set(iVar0, 2))
		{
			return false;
		}
	}
	else if (iParam0 == 1)
	{
		if ((gameplay::is_bit_set(iVar0, 3) && gameplay::is_bit_set(iVar0, 4)) && gameplay::is_bit_set(iVar0, 5))
		{
			return false;
		}
	}
	else if (iParam0 == 2)
	{
		if ((gameplay::is_bit_set(iVar0, 6) && gameplay::is_bit_set(iVar0, 7)) && gameplay::is_bit_set(iVar0, 8))
		{
			return false;
		}
	}
	else if (iParam0 == 3)
	{
		if ((gameplay::is_bit_set(iVar0, 9) && gameplay::is_bit_set(iVar0, 10)) && gameplay::is_bit_set(iVar0, 11))
		{
			return false;
		}
	}
	return true;
}

void func_563(int iParam0, int iParam1)//Position - 0x6B08A
{
	if (iParam1 > 0)
	{
		Global_2494149.f_269 = iParam0;
		if (iParam1 > Global_262145.f_5416)
		{
			iParam1 = Global_262145.f_5416;
		}
		Global_2494149.f_270 = iParam1;
		Global_2494149.f_271 = 0;
	}
}

void func_564(int iParam0, int iParam1, var uParam2, int iParam3, int iParam4, int iParam5)//Position - 0x6B0C7
{
	int iVar0;
	
	if (!func_573())
	{
		return;
	}
	iVar0 = 1;
	if (iParam4)
	{
		iVar0 = 4;
	}
	else if (iParam3)
	{
		iVar0 = 2;
	}
	else if (iParam5)
	{
		iVar0 = 8;
	}
	switch (iParam0)
	{
		case -1645229221:
		case -585718395:
		case -1359375127:
		case 454359403:
		case -982394051:
		case 1643659499:
		case -2072289654:
		case 650665123:
		case 1654961868:
		case -876847842:
		case 68030260:
		case -2122299283:
		case 366672791:
		case 283351220:
		case 291576838:
		case 1182673174:
		case -516219046:
		case 1036455748:
		case 277665518:
		case 2043854386:
		case 1839532116:
		case 1022400740:
		case 1940862352:
		case -1389227906:
		case 711665950:
		case 1704445500:
		case 1515774909:
		case 1173654533:
		case -899802304:
		case -663944335:
		case 1208553146:
		case -613221010:
		case -671062876:
		case -407201236:
		case -754024203:
		case -1885444887:
		case 1931729587:
		case 1064954035:
		case -180141073:
		case 2131324797:
		case 1612072658:
		case -517447402:
		case 1948102096:
		case 1108628223:
		case -1834046564:
		case -1239008812:
		case -222363842:
		case -1276678868:
		case 1564537328:
		case -96593501:
		case 742499889:
		case 2050093329:
		case -1752488069:
		case 634375935:
		case 1850983186:
		case 763367758:
		case 1941570214:
		case 665109499:
		case -1330755006:
		case 1976384368:
		case 268924934:
		case 1869490922:
		case -336803850:
		case -1412692765:
		case 618167454:
		case 980623936:
		case 437291904:
			if (iParam1 > 0)
			{
				func_565(uParam2, -1135378931, 537254313, 1474183246, iParam0, iParam1, iVar0, 7);
			}
			break;
		
		case -31156877:
		case -1027218631:
		case -1398318418:
		case 1652884147:
		case -57868256:
		case -1216489292:
		case -46622315:
		case -352356931:
		case -990286235:
		case 563463121:
		case 1734805203:
		case 941287179:
		case -1186079845:
		case -1985150258:
		case -1127021384:
		case -109201286:
		case 312105838:
		case 1982688246:
		case -661030418:
		case 1301046174:
		case -1586170317:
		case 393059668:
		case 23796958:
		case -1077156170:
		case 1780666425:
		case -2043695058:
		case -1922554349:
		case 1287308202:
		case 691372038:
		case 1480707108:
		case 1512499951:
		case 562283735:
		case -154732333:
		case -1362660491:
		case 645708827:
		case 767907967:
		case -1970151306:
		case 718859568:
		case -1955564771:
		case 892388724:
		case -1426920838:
		case 1349151477:
		case 1620609399:
		case 1961641934:
		case 210955503:
		case -59668082:
		case 1736933716:
		case -1468524125:
		case 111573502:
		case 1525644423:
		case 968073639:
		case 1577781788:
		case -934465332:
		case -1194253122:
		case -212607085:
		case -815546555:
		case 1048226110:
		case 569170531:
		case -856006867:
		case 848090538:
		case -47546905:
		case -293060240:
			func_565(uParam2, -1135378931, 1445302971, 1474183246, iParam0, iParam1, iVar0, 7);
			break;
	}
}

bool func_565(var uParam0, int iParam1, int iParam2, int iParam3, int iParam4, int iParam5, int iParam6, int iParam7)//Position - 0x6B44F
{
	int iVar0;
	int iVar1;
	int iVar2;
	int iVar3;
	int iVar4;
	
	iVar0 = false;
	if (!func_573())
	{
		iVar0 = true;
	}
	if (!iVar0)
	{
		if (!unk3::_0xB24F0944DA203D9E(func_39()) || unk3::_0x810E8431C0614BF9())
		{
			Global_2590709 = 1;
			return false;
		}
		if (Global_2453631)
		{
			if (iParam3 == 1067618600 || iParam3 == -1303831698)
			{
				Global_2590710 = 1;
				return false;
			}
		}
	}
	iVar2 = false;
	iVar1 = 0;
	while (iVar1 < 5)
	{
		if (Global_2590199[iVar1 /*76*/].f_2 == 0)
		{
			iVar2 = true;
		}
		iVar1++;
	}
	if (!iVar2)
	{
		return false;
	}
	*uParam0 = 5;
	iVar3 = 2147483647;
	if (iVar0 || unk3::_network_shop_begin_service(&iVar3, iParam3, iParam4, iParam2, iParam5, iParam6))
	{
		if (iVar0 || unk3::_network_shop_checkout_start(iVar3))
		{
			*uParam0 = func_572(iVar3, iParam1, iParam4, iParam2, iParam3, iParam5, 0, iParam6, iParam7);
			if (iVar0)
			{
				if (*uParam0 != -1)
				{
					Global_2590199[*uParam0 /*76*/].f_69 = 1;
				}
			}
			Global_2590699 = 1;
			return true;
		}
	}
	else
	{
		if (iParam7 & 2 != 0)
		{
			Global_2590708 = 1;
			Global_2590711 = iParam4;
			Global_2590713 = iParam3;
			Global_2590714 = 1;
			Global_2590712 = iParam5;
		}
		if (iParam7 & 8 != 0)
		{
			Global_2590711 = iParam4;
			Global_2590713 = iParam3;
			Global_2590714 = 1;
			Global_2590712 = iParam5;
		}
		iVar4 = false;
		if (iVar4)
		{
			func_571(1, iParam4);
			Global_2590708 = 0;
		}
		if (iParam7 & 4 != 0)
		{
			func_566(-1, iParam4, iParam6, iParam5, -1);
		}
	}
	return false;
}

void func_566(int iParam0, int iParam1, int iParam2, int iParam3, int iParam4)//Position - 0x6B5C3
{
	switch (iParam1)
	{
		case 1704445500:
			gameplay::set_bit(&(Global_2421621[player::player_id() /*358*/].f_125.f_71), 0);
			break;
	}
	if (iParam0 != -1)
	{
		func_567(iParam0);
	}
}

void func_567(int iParam0)//Position - 0x6B5FB
{
	int iVar0;
	
	iVar0 = false;
	if (!func_573())
	{
		iVar0 = true;
	}
	if (iParam0 != -1)
	{
		if (func_570(iParam0))
		{
			if (!iVar0)
			{
				unk_0xFA336E7F40C0A0D0();
			}
		}
		else if (!iVar0)
		{
			unk3::_network_shop_end_service(Global_2590199[iParam0 /*76*/]);
		}
		func_568(&(Global_2590199[iParam0 /*76*/]));
	}
}

void func_568(var uParam0)//Position - 0x6B64D
{
	*uParam0 = 0;
	*uParam0 = 2147483647;
	uParam0->f_1 = 0;
	uParam0->f_2 = 0;
	uParam0->f_3 = -1593119440;
	uParam0->f_4 = -2085313189;
	uParam0->f_5 = 0;
	uParam0->f_6 = 1227573907;
	uParam0->f_7 = -1161833819;
	uParam0->f_8 = 0;
	uParam0->f_8.f_1 = 0;
	uParam0->f_8.f_2 = 0;
	func_569(&(uParam0->f_8.f_3));
	func_569(&(uParam0->f_8.f_16));
	StringCopy(&(uParam0->f_8.f_29), "", 32);
	StringCopy(&(uParam0->f_8.f_37), "", 24);
	StringCopy(&(uParam0->f_8.f_43), "", 16);
	StringCopy(&(uParam0->f_8.f_47), "", 16);
	uParam0->f_8.f_51 = 0;
	uParam0->f_8.f_52 = 0;
	uParam0->f_8.f_53 = 0;
	uParam0->f_8.f_54 = 0;
	uParam0->f_8.f_55 = 0;
	uParam0->f_8.f_56 = 0;
	uParam0->f_69 = 0;
	uParam0->f_70 = 0;
	uParam0->f_71 = 0;
	uParam0->f_72 = 0;
	uParam0->f_73 = 0;
	uParam0->f_74 = 0;
	uParam0->f_75 = 0;
}

void func_569(var uParam0)//Position - 0x6B738
{
	*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_570(int iParam0)//Position - 0x6B780
{
	if (iParam0 >= 0 && iParam0 < 5)
	{
		return Global_2590199[iParam0 /*76*/].f_5 == 1;
	}
	return false;
}

void func_571(int iParam0, int iParam1)//Position - 0x6B7A8
{
	Global_2454792 = iParam1;
	Global_2454791 = iParam0;
}

int func_572(int iParam0, var uParam1, int iParam2, int iParam3, int iParam4, int iParam5, int iParam6, int iParam7, var uParam8)//Position - 0x6B7BC
{
	int iVar0;
	
	iVar0 = 0;
	iVar0 = 0;
	while (iVar0 < 5)
	{
		if (Global_2590199[iVar0 /*76*/].f_2 == 0)
		{
			if (!func_573())
			{
				iParam0 = iVar0 + 900;
			}
			Global_2590199[iVar0 /*76*/].f_2 = 1;
			Global_2590199[iVar0 /*76*/].f_1 = iParam5;
			Global_2590199[iVar0 /*76*/].f_3 = uParam1;
			Global_2590199[iVar0 /*76*/].f_4 = iParam2;
			Global_2590199[iVar0 /*76*/].f_7 = iParam3;
			Global_2590199[iVar0 /*76*/].f_5 = 0;
			Global_2590199[iVar0 /*76*/] = iParam0;
			Global_2590199[iVar0 /*76*/].f_6 = iParam4;
			Global_2590199[iVar0 /*76*/].f_72 = uParam8;
			Global_2590199[iVar0 /*76*/].f_71 = iParam7;
			Global_2590199[iVar0 /*76*/].f_75 = 0;
			Global_2590699 = 0;
			if (iParam6)
			{
				Global_2590199[iVar0 /*76*/].f_5 = 1;
			}
			return iVar0;
		}
		iVar0++;
	}
	return -1;
}

bool func_573()//Position - 0x6B890
{
	if (gameplay::is_pc_version())
	{
		return true;
	}
	return false;
}

void func_574(int iParam0, int iParam1)//Position - 0x6B8A4
{
	int iVar0;
	
	if (*iParam0 > 0)
	{
		if (!func_460())
		{
			if (func_260(0))
			{
				if (!func_454(0))
				{
					if (network::network_is_player_active(func_456()))
					{
						if (func_604() == 100)
						{
							iVar0 = *iParam0;
							*iParam0 = 0;
						}
						else
						{
							iVar0 = ((*iParam0 / 100) * func_604());
							*iParam0 = (*iParam0 - iVar0);
						}
						func_602(&iVar0, 0);
						if (iParam1 == 1)
						{
							func_577("GB_BCUT_TICK1", func_456(), iVar0, 0, 0, 1, 1);
						}
						func_498(20);
						func_575(func_456(), iVar0, 1);
					}
				}
			}
		}
	}
}

void func_575(int iParam0, int iParam1, int iParam2)//Position - 0x6B946
{
	struct<4> Var0;
	
	if (func_1644(iParam0, 0, 1))
	{
		Var0 = 474;
		Var0.f_1 = player::player_id();
		Var0.f_2 = iParam1;
		Var0.f_3 = iParam2;
		script::trigger_script_event(1, &Var0, 5, func_576(iParam0));
	}
}

var func_576(int iParam0)//Position - 0x6B983
{
	var uVar0;
	
	gameplay::set_bit(&uVar0, iParam0);
	return uVar0;
}

int func_577(char* sParam0, int iParam1, int iParam2, int iParam3, int iParam4, int iParam5, int iParam6)//Position - 0x6B995
{
	int iVar0;
	struct<8> Var1;
	
	iVar0 = -1;
	if (network::_0x9DE986FC9A87C474(player::player_id(), iParam1) || iParam5)
	{
		if (!iParam4)
		{
			StringCopy(&Var1, player::get_player_name(iParam1), 64);
		}
		else
		{
			StringCopy(&Var1, player::get_player_name(iParam1), 64);
		}
		ui::_set_notification_text_entry(sParam0);
		ui::_0x39BBF623FC803EAC(func_584(iParam1, -2, 1, 0));
		ui::add_text_component_substring_player_name(func_582(&Var1));
		if (!iParam3 == 0)
		{
			ui::_0x39BBF623FC803EAC(iParam3);
		}
		ui::add_text_component_integer(iParam2);
		iVar0 = ui::_draw_notification(0, 1);
		func_578(27, sParam0, 1, &Var1, iParam2, 0, 0, 0, 1, 0, 0, 0);
	}
	return iVar0;
}

void func_578(int iParam0, char* sParam1, int iParam2, char* sParam3, int iParam4, int iParam5, int iParam6, int iParam7, int iParam8, char* sParam9, char* sParam10, char* sParam11)//Position - 0x6BA23
{
	int iVar0;
	
	if ((!func_581() || !network::network_is_activity_session()) || !func_37(player::player_id(), 0))
	{
		return;
	}
	iVar0 = func_579(iParam2);
	if (iVar0 >= 0 && iVar0 < 5)
	{
		Global_1755985.f_5[iVar0 /*53*/] = iParam0;
		Global_1755985.f_5[iVar0 /*53*/].f_1 = iParam2;
		StringCopy(&(Global_1755985.f_5[iVar0 /*53*/].f_8), sParam1, 16);
		Global_1755985.f_5[iVar0 /*53*/].f_2[0] = iParam4;
		Global_1755985.f_5[iVar0 /*53*/].f_2[1] = iParam5;
		Global_1755985.f_5[iVar0 /*53*/].f_2[2] = iParam6;
		Global_1755985.f_5[iVar0 /*53*/].f_7 = iParam7;
		Global_1755985.f_5[iVar0 /*53*/].f_6 = iParam8;
		StringCopy(&(Global_1755985.f_5[iVar0 /*53*/].f_12), sParam3, 64);
		StringCopy(&(Global_1755985.f_5[iVar0 /*53*/].f_28[0 /*6*/]), sParam9, 24);
		StringCopy(&(Global_1755985.f_5[iVar0 /*53*/].f_28[1 /*6*/]), sParam10, 24);
		StringCopy(&(Global_1755985.f_5[iVar0 /*53*/].f_28[2 /*6*/]), sParam11, 24);
	}
}

int func_579(int iParam0)//Position - 0x6BB2B
{
	int iVar0;
	
	iVar0 = 0;
	while (iVar0 <= (Global_1755985 - 1))
	{
		if (iParam0 > Global_1755985.f_5[iVar0 /*53*/].f_1)
		{
			func_580(iVar0);
			return iVar0;
		}
		iVar0++;
	}
	Global_1755985++;
	if (Global_1755985 > 5)
	{
		Global_1755985 = 5;
		return Global_1755985;
	}
	return (Global_1755985 - 1);
}

void func_580(int iParam0)//Position - 0x6BB8D
{
	int iVar0;
	
	iVar0 = 4;
	while (iVar0 >= iParam0 + 1)
	{
		Global_1755985.f_5[iVar0 /*53*/] = { Global_1755985.f_5[(iVar0 - 1) /*53*/] };
		iVar0 = (iVar0 + -1);
	}
}

int func_581()//Position - 0x6BBC6
{
	return dlc2::is_dlc_present(-1762644250);
}

var func_582(char* sParam0)//Position - 0x6BBD7
{
	char cVar0[64];
	
	StringCopy(&cVar0, "<C>", 64);
	StringConCat(&cVar0, sParam0, 64);
	StringConCat(&cVar0, "</C>~s~", 64);
	return func_583(&cVar0);
}

var func_583(char[4] cParam0)//Position - 0x6BBFD
{
	return cParam0;
}

int func_584(int iParam0, int iParam1, int iParam2, int iParam3)//Position - 0x6BC07
{
	int iVar0;
	int iVar1;
	
	if (func_1592(iParam0))
	{
		if (iParam2)
		{
			return 0;
		}
		else
		{
			return 1;
		}
	}
	if (iParam1 == -2)
	{
		iVar0 = player::get_player_team(iParam0);
		if (iVar0 > -1 && iVar0 < 4)
		{
			if (Global_1632166.f_82772[iVar0] != -1)
			{
				iParam1 = iVar0;
			}
		}
	}
	if (func_1592(player::player_id()) || (func_529() && func_1591()))
	{
		iVar1 = func_601();
		if (entity::does_entity_exist(iVar1))
		{
			if (ped::is_ped_a_player(iVar1))
			{
				if (network::_network_get_ped_player(iVar1) != -1)
				{
					if (func_1644(network::_network_get_ped_player(iVar1), 0, 1))
					{
						if ((iParam1 > -1 && network::network_is_activity_session()) && iParam1 < 4)
						{
							if (Global_1632166.f_82772[iParam1] != -1)
							{
								return func_599(iParam1, iParam0, 0);
							}
							else
							{
								return func_592(iParam0, network::_network_get_ped_player(iVar1), iParam1, iParam2, iParam3);
							}
						}
						else
						{
							return func_592(iParam0, network::_network_get_ped_player(iVar1), iParam1, iParam2, iParam3);
						}
					}
				}
			}
			else if ((iParam1 > -1 && network::network_is_activity_session()) && iParam1 < 4)
			{
				if (Global_1632166.f_82772[iParam1] != -1)
				{
					return func_599(iParam1, iParam0, 0);
				}
				else
				{
					return func_585(0, -1, 0);
				}
			}
			else
			{
				return func_585(0, -1, 0);
			}
		}
	}
	if ((iParam1 > -1 && network::network_is_activity_session()) && iParam1 < 4)
	{
		if (Global_1632166.f_82772[iParam1] != -1)
		{
			return func_599(iParam1, iParam0, 0);
		}
		else
		{
			return func_592(iParam0, player::player_id(), iParam1, iParam2, iParam3);
		}
	}
	return func_592(iParam0, player::player_id(), iParam1, iParam2, iParam3);
}

int func_585(int iParam0, int iParam1, int iParam2)//Position - 0x6BDC4
{
	return func_586(player::player_id(), iParam0, iParam1, iParam2);
}

int func_586(int iParam0, int iParam1, int iParam2, int iParam3)//Position - 0x6BDDA
{
	int iVar0;
	
	if (!network::network_is_player_active(iParam0))
	{
		return 3;
	}
	iVar0 = player::get_player_team(iParam0);
	if (iParam1)
	{
		if (iParam2 > -1)
		{
			if (func_591(iVar0, iParam2, 0) && !gameplay::is_bit_set(Global_1632166.f_15, 18))
			{
				if (iVar0 == iParam2)
				{
					return func_590(1);
				}
				else
				{
					return func_590(0);
				}
			}
			else if (iParam3)
			{
				return 28;
			}
			else if (gameplay::is_bit_set(Global_1632166.f_4, 20))
			{
				return func_587(iVar0, iParam2, 1);
			}
			else
			{
				return func_587(iVar0, iParam2, 0);
			}
		}
		return 28;
	}
	if (iVar0 == iParam2 || iParam2 == -1)
	{
		return func_590(1);
	}
	return func_590(0);
}

int func_587(int iParam0, int iParam1, int iParam2)//Position - 0x6BE9C
{
	int iVar0;
	
	iVar0 = func_589(iParam0, iParam1);
	if (func_588(Global_1632166.f_86360))
	{
		if (iVar0 == 1)
		{
			iVar0 = 0;
		}
	}
	if (iParam2)
	{
		switch (iVar0)
		{
			case 0:
				return 28;
			
			case 1:
				return 29;
			
			case 2:
				return 30;
			
			case 3:
				return 31;
			
			case 4:
				return 32;
			
			case 5:
				return 33;
			
			case 6:
				return 34;
			
			case 7:
				return 35;
			
			default:
		}
	}
	else
	{
		switch (iVar0)
		{
			case 0:
				return 28;
			
			case 1:
				return 29;
			
			case 2:
				return 30;
			}
		
		default:
	}
	return 28;
}

bool func_588(int iParam0)//Position - 0x6BF59
{
	int iVar0;
	
	if (iParam0 == 0)
	{
		return false;
	}
	iVar0 = 0;
	while (iVar0 <= 6)
	{
		if (iParam0 == Global_262145.f_7770[iVar0])
		{
			return true;
		}
		iVar0++;
	}
	return false;
}

int func_589(int iParam0, int iParam1)//Position - 0x6BF92
{
	int iVar0;
	int iVar1;
	
	iVar0 = 0;
	while (iVar0 < 4)
	{
		if (iVar0 == iParam1)
		{
			return iVar1;
		}
		else if (!iParam0 == iVar0)
		{
			if (!func_591(iParam0, iVar0, 0))
			{
				iVar1++;
			}
		}
		iVar0++;
	}
	return -1;
}

int func_590(int iParam0)//Position - 0x6BFD8
{
	if (iParam0)
	{
		return 118;
	}
	return 116;
}

int func_591(int iParam0, int iParam1, int iParam2)//Position - 0x6BFEF
{
	if (iParam2 == 1)
	{
		if (iParam0 == iParam1)
		{
			return true;
		}
		return false;
	}
	if ((iParam0 > -1 && iParam1 > -1) && iParam0 == iParam1)
	{
		return true;
	}
	switch (iParam0)
	{
		case 0:
			switch (iParam1)
			{
				case 0:
					return gameplay::is_bit_set(Global_1632166.f_43, 0);
				
				case 1:
					return gameplay::is_bit_set(Global_1632166.f_43, 1);
				
				case 2:
					return gameplay::is_bit_set(Global_1632166.f_43, 2);
				
				case 3:
					return gameplay::is_bit_set(Global_1632166.f_43, 3);
				
				default:
			}
			break;
		
		case 1:
			switch (iParam1)
			{
				case 0:
					return gameplay::is_bit_set(Global_1632166.f_43, 4);
				
				case 1:
					return gameplay::is_bit_set(Global_1632166.f_43, 5);
				
				case 2:
					return gameplay::is_bit_set(Global_1632166.f_43, 6);
				
				case 3:
					return gameplay::is_bit_set(Global_1632166.f_43, 7);
				
				default:
			}
			break;
		
		case 2:
			switch (iParam1)
			{
				case 0:
					return gameplay::is_bit_set(Global_1632166.f_43, 8);
				
				case 1:
					return gameplay::is_bit_set(Global_1632166.f_43, 9);
				
				case 2:
					return gameplay::is_bit_set(Global_1632166.f_43, 10);
				
				case 3:
					return gameplay::is_bit_set(Global_1632166.f_43, 11);
				
				default:
			}
			break;
		
		case 3:
			switch (iParam1)
			{
				case 0:
					return gameplay::is_bit_set(Global_1632166.f_43, 12);
				
				case 1:
					return gameplay::is_bit_set(Global_1632166.f_43, 13);
				
				case 2:
					return gameplay::is_bit_set(Global_1632166.f_43, 14);
				
				case 3:
					return gameplay::is_bit_set(Global_1632166.f_43, 15);
				
				default:
			}
			break;
	}
	return false;
}

int func_592(int iParam0, int iParam1, int iParam2, int iParam3, int iParam4)//Position - 0x6C1BC
{
	int iVar0;
	int iVar1;
	int iVar2;
	int iVar3;
	int iVar4;
	
	if (iParam2 == -2)
	{
		iVar0 = player::get_player_team(iParam0);
	}
	else
	{
		iVar0 = iParam2;
	}
	if (Global_1589933[player::player_id() /*601*/] == 148)
	{
		iVar1 = true;
	}
	iVar2 = iParam0;
	if (iVar2 > -1)
	{
		if (Global_1589933[iVar2 /*601*/] == 148)
		{
			iVar1 = true;
		}
	}
	if (!iVar1)
	{
		if (iVar0 != -1)
		{
			if (func_598())
			{
				iVar3 = func_597(iParam0);
				if (!iVar3 == -1)
				{
					return func_595(iVar3);
				}
			}
			if ((func_594(iParam1, iParam0, iVar0, 0) && !gameplay::is_bit_set(Global_1632166.f_15, 18)) || ((func_591(player::get_player_team(iParam1), player::get_player_team(iParam0), 0) && gameplay::is_bit_set(Global_1632166.f_15, 23)) && !gameplay::is_bit_set(Global_1632166.f_15, 18)))
			{
				return func_590(1);
			}
			else if (gameplay::is_bit_set(Global_1632166.f_15, 26))
			{
				return func_593(1);
			}
			else
			{
				return func_586(iParam1, 1, iVar0, iParam4);
			}
		}
		else if ((Global_1574255 || Global_1574246) || Global_1589933[iParam0 /*601*/] == 0)
		{
			if (iParam0 == iParam1 || (Global_1574255 == 1 && Global_1574265 == 0))
			{
				return func_590(1);
			}
			else
			{
				return func_586(iParam1, 1, iVar0, iParam4);
			}
		}
		if (Global_1574250 && Global_1573825.f_14 == iParam0)
		{
			return 28;
		}
	}
	iVar4 = func_597(iParam0);
	if (!iVar4 == -1)
	{
		return func_595(iVar4);
	}
	if (iParam3)
	{
		return 0;
	}
	return 1;
}

int func_593(int iParam0)//Position - 0x6C35F
{
	if (iParam0)
	{
		return 119;
	}
	return 116;
}

int func_594(int iParam0, int iParam1, int iParam2, int iParam3)//Position - 0x6C376
{
	if (iParam2 == -2)
	{
		if (iParam3 == 0)
		{
			if (player::get_player_team(iParam0) == -1 && player::get_player_team(iParam1) == -1)
			{
				return false;
			}
		}
		return player::get_player_team(iParam0) == player::get_player_team(iParam1);
	}
	else
	{
		if (iParam3 == 0)
		{
			if (player::get_player_team(iParam0) == -1 && iParam2 == -1)
			{
				return false;
			}
		}
		return player::get_player_team(iParam0) == iParam2;
	}
	return player::get_player_team(iParam0) == iParam2;
}

int func_595(int iParam0)//Position - 0x6C3EE
{
	int iVar0;
	
	if (iParam0 > -1)
	{
		iVar0 = func_596(iParam0);
		switch (iVar0)
		{
			case 0:
				return 192;
			
			case 1:
				return 193;
			
			case 2:
				return 194;
			
			case 3:
				return 195;
			
			case 4:
				return 196;
			
			case 5:
				return 197;
			
			case 6:
				return 198;
			
			case 7:
				return 199;
			
			case 8:
				return 200;
			
			case 9:
				return 201;
			
			case 10:
				return 202;
			
			case 11:
				return 203;
			
			case 12:
				return 204;
			
			case 13:
				return 205;
			
			case 14:
				return 206;
			}
		
		default:
	}
	return 1;
}

var func_596(int iParam0)//Position - 0x6C4B1
{
	return Global_2415705.f_1946.f_44[iParam0 /*2*/].f_1;
}

int func_597(int iParam0)//Position - 0x6C4C8
{
	if (!iParam0 == func_45())
	{
		if (func_261(iParam0, 1))
		{
			return Global_2415705.f_1946.f_11[func_429(iParam0)];
		}
	}
	return -1;
}

var func_598()//Position - 0x6C4FA
{
	return Global_2443089.f_12;
}

int func_599(int iParam0, int iParam1, int iParam2)//Position - 0x6C508
{
	int iVar0;
	int iVar1;
	
	if (func_598())
	{
		iVar1 = func_597(iParam1);
		if (!iVar1 == -1)
		{
			return func_595(iVar1);
		}
	}
	if (Global_1632166.f_82772[iParam0] != -1 && Global_1632166.f_82772[iParam0] <= 4)
	{
		if (Global_1632166.f_82772[iParam0] == 0)
		{
			iVar0 = 15;
		}
		else if (Global_1632166.f_82772[iParam0] == 1)
		{
			iVar0 = 18;
		}
		else if (Global_1632166.f_82772[iParam0] == 2)
		{
			iVar0 = 24;
		}
		else if (Global_1632166.f_82772[iParam0] == 4)
		{
			if (gameplay::is_bit_set(Global_1632166.f_15, 29))
			{
				iVar0 = 21;
			}
			else
			{
				iVar0 = 6;
			}
		}
		else
		{
			iVar0 = Global_1632166.f_82772[iParam0];
		}
	}
	else
	{
		iVar0 = func_586(iParam1, !iParam2, iParam0, 0);
	}
	if (gameplay::is_bit_set(Global_1632166.f_21, 13))
	{
		iVar0 = func_600(iParam0);
	}
	return iVar0;
}

int func_600(int iParam0)//Position - 0x6C604
{
	int iVar0;
	
	switch (iParam0)
	{
		case 0:
			iVar0 = Global_1632166.f_105330;
			break;
		
		case 1:
			iVar0 = Global_1632166.f_105331;
			break;
		
		case 2:
			iVar0 = Global_1632166.f_105332;
			break;
		
		case 3:
			iVar0 = Global_1632166.f_105333;
			break;
	}
	switch (iVar0)
	{
		case 0:
			return 15;
		
		case 1:
			return 21;
		
		case 2:
			return 24;
		
		case 3:
			return 18;
		
		case 4:
			return 6;
		
		case 5:
			return 9;
		
		case 6:
			return 3;
		
		case 7:
			return 1;
		
		case 8:
			return 12;
		
		case 9:
			return 2;
		
		default:
	}
	return 2;
}

var func_601()//Position - 0x6C6D9
{
	return Global_2359301.f_2;
}

void func_602(int iParam0, int iParam1)//Position - 0x6C6E7
{
	int iVar0;
	int iVar1;
	
	if (iParam1)
	{
		iVar1 = func_603(1);
	}
	else
	{
		iVar1 = func_603(0);
	}
	iVar0 = ((*iParam0 / 100) * iVar1);
	*iParam0 = (*iParam0 - iVar0);
}

int func_603(int iParam0)//Position - 0x6C719
{
	if (iParam0)
	{
		return system::round((0.05f * 100f));
	}
	return Global_262145.f_10889;
}

var func_604()//Position - 0x6C73F
{
	return Global_262145.f_10888;
}

int func_605(int iParam0, int iParam1, char* sParam2, int iParam3, int iParam4, int iParam5, int iParam6, int iParam7, char* sParam8, int iParam9, int iParam10)//Position - 0x6C74E
{
	return func_606(iParam0, iParam1, sParam2, iParam3, iParam4, iParam5, iParam6, iParam7, sParam8, iParam9, iParam10);
}

int func_606(int iParam0, int iParam1, char* sParam2, int iParam3, int iParam4, int iParam5, int iParam6, int iParam7, char* sParam8, int iParam9, int iParam10)//Position - 0x6C770
{
	int iVar0;
	int iVar1;
	
	iVar0 = func_616(iParam0, sParam2, iParam3, iParam4, iParam5, iParam6, iParam7, iParam9);
	if (iParam4 == -592022605 || iParam4 == -1915191729)
	{
		if (entity::does_entity_exist(iParam1))
		{
			if (entity::is_entity_a_ped(iParam1))
			{
				iVar1 = entity::get_ped_index_from_entity_index(iParam1);
				func_612(ped::get_ped_bone_coords(iVar1, 31086, 0f, 0f, 0f), iVar0, 0, sParam8, iParam10);
			}
		}
	}
	else
	{
		func_607(iParam1, iVar0, sParam8, iParam10);
	}
	return iVar0;
}

void func_607(int iParam0, int iParam1, char* sParam2, int iParam3)//Position - 0x6C7E9
{
	vector3 vVar0;
	
	vVar0 = { func_610(iParam0, 1) };
	if (iParam0 == func_609(player::player_ped_id()))
	{
		func_608(1);
	}
	func_612(vVar0, iParam1, 0, sParam2, iParam3);
}

void func_608(int iParam0)//Position - 0x6C81D
{
	Global_2433082.f_1382 = iParam0;
}

int func_609(int iParam0)//Position - 0x6C82E
{
	return iParam0;
}

Vector3 func_610(int iParam0, int iParam1)//Position - 0x6C838
{
	vector3 vVar0;
	vector3 vVar3;
	float fVar6;
	vector3 vVar7;
	vector3 vVar10;
	float fVar13;
	
	if (cam::is_gameplay_cam_rendering())
	{
		vVar3 = { cam::get_gameplay_cam_rot(2) };
	}
	if (iParam0 == func_611(player::player_ped_id()) && cam::_0xEE778F8C7E1142E2(cam::_0x19CAFA3C87F7C2FF()) == 4)
	{
		vVar0 = { entity::get_offset_from_entity_in_world_coords(iParam0, 0f, 8f, -0.2f) };
	}
	else
	{
		vVar0 = { entity::get_entity_coords(iParam0, 0) };
	}
	fVar6 = 0f;
	if (!entity::is_entity_dead(iParam0, 0))
	{
		fVar6 = entity::get_entity_heading(iParam0);
		if (cam::_0xEE778F8C7E1142E2(cam::_0x19CAFA3C87F7C2FF()) == 4)
		{
			fVar6 = vVar3.y;
		}
	}
	gameplay::get_model_dimensions(entity::get_entity_model(iParam0), &vVar7, &vVar10);
	if (iParam1)
	{
		fVar13 = (vVar10.y + 0.18f);
	}
	else
	{
		fVar13 = (vVar7.y + 0.18f);
	}
	vVar0 = { object::_get_object_offset_from_coords(vVar0, fVar6, 0f, 0f, fVar13) };
	return vVar0;
}

int func_611(int iParam0)//Position - 0x6C8FC
{
	return iParam0;
}

void func_612(vector3 vParam0, int iParam3, int iParam4, char* sParam5, int iParam6)//Position - 0x6C906
{
	int iVar0;
	int iVar1;
	
	if (iParam3 != 0)
	{
		iVar1 = -1;
		iVar0 = 0;
		while (iVar0 < 20)
		{
			if (Global_2433082.f_781[iVar0 /*30*/].f_6 == 0 || Global_2433082.f_781[iVar0 /*30*/].f_6 == 7)
			{
				iVar1 = iVar0;
				iVar0 = 20;
			}
			iVar0++;
		}
		if (iVar1 != -1)
		{
			Global_2433082.f_781[iVar1 /*30*/] = { vParam0 };
			Global_2433082.f_781[iVar1 /*30*/].f_6 = 1;
			Global_2433082.f_781[iVar1 /*30*/].f_4 = func_615(Global_2433082.f_781[iVar1 /*30*/], &Global_1312317, &Global_1312318);
			Global_2433082.f_781[iVar1 /*30*/].f_7 = network::get_network_time();
			Global_2433082.f_781[iVar1 /*30*/].f_3 = iParam3;
			Global_2433082.f_781[iVar1 /*30*/].f_8 = iParam4;
			Global_2433082.f_781[iVar1 /*30*/].f_9 = func_614();
			Global_2433082.f_781[iVar1 /*30*/].f_10 = func_613();
			StringCopy(&(Global_2433082.f_781[iVar1 /*30*/].f_22), sParam5, 16);
			Global_2433082.f_781[iVar1 /*30*/].f_26 = network::get_time_offset(network::get_network_time(), iParam6);
		}
	}
}

bool func_613()//Position - 0x6CA1D
{
	if (Global_2433082.f_1382)
	{
		Global_2433082.f_1382 = 0;
		return true;
	}
	Global_2433082.f_1382 = 0;
	return false;
}

var func_614()//Position - 0x6CA47
{
	var uVar0;
	
	uVar0 = Global_2433082.f_1384;
	Global_2433082.f_1384 = 1;
	return uVar0;
}

float func_615(vector3 vParam0, var uParam3, var uParam4)//Position - 0x6CA62
{
	float fVar0;
	float fVar1;
	float fVar2;
	float fVar3;
	
	fVar0 = gameplay::get_distance_between_coords(cam::get_gameplay_cam_coord(), vParam0, 1);
	if (fVar0 < 5f)
	{
		*uParam3 = 0.402f;
		*uParam4 = 0.476f;
		return 0f;
	}
	if (fVar0 > 20f)
	{
		*uParam3 = 0.212f;
		*uParam4 = 0.286f;
		return 1f;
	}
	fVar1 = (1f - ((fVar0 - 5f) / (20f - 5f)));
	fVar2 = (fVar1 * (0.402f - 0.212f));
	fVar3 = (fVar1 * (0.476f - 0.286f));
	*uParam3 = (fVar2 + 0.212f);
	*uParam4 = (fVar3 + 0.286f);
	return fVar1;
}

var func_616(int iParam0, char* sParam1, int iParam2, int iParam3, int iParam4, int iParam5, int iParam6, int iParam7)//Position - 0x6CAFB
{
	var uVar0;
	
	uVar0 = func_617(iParam0, 0, sParam1, iParam4, iParam5, 0, iParam6, 1, iParam2, iParam3, iParam7);
	return uVar0;
}

int func_617(int iParam0, int iParam1, char* sParam2, int iParam3, int iParam4, int iParam5, int iParam6, int iParam7, int iParam8, int iParam9, int iParam10)//Position - 0x6CB1E
{
	float fVar0;
	int iVar1;
	int iVar2;
	float fVar3;
	
	if (func_647(player::player_id()) || func_646(player::player_id()))
	{
		if (Global_262145.f_8151 > 8000)
		{
			iVar2 = 8000;
		}
		else
		{
			iVar2 = Global_262145.f_8151;
		}
	}
	else if (Global_262145.f_5467 > 5000)
	{
		iVar2 = 5000;
	}
	else
	{
		iVar2 = Global_262145.f_5467;
	}
	if (func_645(sParam2))
	{
	}
	if (func_644())
	{
		if (iParam4 < 1)
		{
			iParam4 = 1;
		}
		iVar1 = system::round((IntToFloat(iParam3) * (IntToFloat(iParam4) + fVar0)));
		iVar1 = func_642(iVar1);
		fVar3 = (system::to_float(iVar1) * Global_262145.f_1);
		iVar1 = system::round(fVar3);
		if (iParam10)
		{
			iVar1 = func_641(&iVar1);
		}
		if (iParam1 == 0)
		{
			switch (iParam0)
			{
				case 2:
					func_638(0, &iVar1);
					break;
				
				case 3:
					func_638(1, &iVar1);
					break;
				
				case 1:
					func_635(&iVar1);
					break;
				}
		}
		if (iParam1 == 0)
		{
			if (iVar1 > iVar2)
			{
				if (iParam0 == 1)
				{
					iVar1 = iVar2;
				}
				if (iParam0 == 2 || iParam0 == 3)
				{
					iVar1 = iVar2;
				}
			}
		}
		if (iParam7)
		{
			func_365(1159, iVar1, -1);
			if (iParam1 == 0)
			{
				func_627((func_634(player::player_id()) + iVar1), iParam9, 0);
				if (iParam8 == 0)
				{
				}
				if (iParam9 == 0)
				{
				}
				stats::playstats_award_xp(iVar1, iParam8, iParam9);
				if (Global_1589933[player::player_id() /*601*/].f_39.f_2 != -1)
				{
					func_365(1160, iVar1, -1);
				}
				if (iParam1 == 0)
				{
					func_622(iVar1);
				}
			}
		}
		if (iParam5)
		{
		}
		if (iParam7)
		{
			if (iParam6 == -1)
			{
				func_618((func_620(player::player_id()) + iVar1));
			}
			else
			{
				func_618((func_620(player::player_id()) + iParam6));
			}
		}
		if (iParam7)
		{
		}
	}
	return iVar1;
}

void func_618(int iParam0)//Position - 0x6CCD9
{
	if (func_644())
	{
		Global_1589933[player::player_id() /*601*/].f_202.f_5 = iParam0;
		func_619(joaat("mpply_globalxp"), iParam0);
	}
}

void func_619(int iParam0, int iParam1)//Position - 0x6CD04
{
	int iVar0;
	
	iVar0 = iParam0;
	if (iVar0 != 0)
	{
		stats::stat_set_int(iVar0, iParam1, 1);
	}
}

int func_620(int iParam0)//Position - 0x6CD20
{
	if (iParam0 > -1)
	{
		if (func_1644(iParam0, 0, 1))
		{
			if (iParam0 == player::player_id())
			{
				return func_621(joaat("mpply_globalxp"));
			}
			else
			{
				return Global_1589933[iParam0 /*601*/].f_202.f_5;
			}
		}
		else
		{
			return func_621(joaat("mpply_globalxp"));
		}
	}
	return 0;
}

int func_621(int iParam0)//Position - 0x6CD71
{
	int iVar0;
	var uVar1;
	
	iVar0 = iParam0;
	if (stats::stat_get_int(iVar0, &uVar1, -1))
	{
		return uVar1;
	}
	return 0;
}

void func_622(int iParam0)//Position - 0x6CD8F
{
	struct<13> Var0;
	int iVar13;
	
	Var0 = { func_487(player::player_id()) };
	if (network::_network_player_is_in_clan())
	{
		if (network::network_clan_player_is_active(&Var0))
		{
			iVar13 = func_625(func_626(&Var0));
			if (iVar13 == 0)
			{
				func_624(&Global_1362334, iParam0);
				func_623(joaat("mpply_crew_local_xp_0"), Global_1362334);
			}
			else if (iVar13 == 1)
			{
				func_624(&Global_1362335, iParam0);
				func_623(joaat("mpply_crew_local_xp_1"), Global_1362335);
			}
			else if (iVar13 == 2)
			{
				func_624(&Global_1362336, iParam0);
				func_623(joaat("mpply_crew_local_xp_2"), Global_1362336);
			}
			else if (iVar13 == 3)
			{
				func_624(&Global_1362337, iParam0);
				func_623(joaat("mpply_crew_local_xp_3"), Global_1362337);
			}
			else if (iVar13 == 4)
			{
				func_624(&Global_1362338, iParam0);
				func_623(joaat("mpply_crew_local_xp_4"), Global_1362338);
			}
		}
	}
}

void func_623(int iParam0, int iParam1)//Position - 0x6CE63
{
	int iVar0;
	
	iVar0 = iParam0;
	if (iVar0 != 0)
	{
		stats::stat_set_int(iVar0, iParam1, 1);
	}
	switch (iParam0)
	{
		case joaat("mpply_crew_0_id"):
			Global_1362329 = iParam1;
			break;
		
		case joaat("mpply_crew_1_id"):
			Global_1362331 = iParam1;
			break;
		
		case joaat("mpply_crew_2_id"):
			Global_1362331 = iParam1;
			break;
		
		case joaat("mpply_crew_3_id"):
			Global_1362332 = iParam1;
			break;
		
		case joaat("mpply_crew_4_id"):
			Global_1362333 = iParam1;
			break;
		
		case joaat("mpply_crew_local_xp_0"):
			Global_1362334 = iParam1;
			break;
		
		case joaat("mpply_crew_local_xp_1"):
			Global_1362335 = iParam1;
			break;
		
		case joaat("mpply_crew_local_xp_2"):
			Global_1362336 = iParam1;
			break;
		
		case joaat("mpply_crew_local_xp_3"):
			Global_1362337 = iParam1;
			break;
		
		case joaat("mpply_crew_local_xp_4"):
			Global_1362338 = iParam1;
			break;
		
		case joaat("mpply_became_cheater_num"):
			Global_1362339 = iParam1;
			break;
		
		case joaat("mpply_friendly"):
			Global_1362340 = iParam1;
			break;
		
		case joaat("mpply_offensive_language"):
			Global_1362341 = iParam1;
			break;
		
		case joaat("mpply_griefing"):
			Global_1362342 = iParam1;
			break;
		
		case joaat("mpply_helpful"):
			Global_1362343 = iParam1;
			break;
		
		case joaat("mpply_offensive_tagplate"):
			Global_1362344 = iParam1;
			break;
		
		case joaat("mpply_offensive_ugc"):
			Global_1362345 = iParam1;
			break;
		
		default:
			break;
	}
}

void func_624(var uParam0, int iParam1)//Position - 0x6CF88
{
	*uParam0 = (*uParam0 + iParam1);
}

int func_625(int iParam0)//Position - 0x6CF99
{
	if (iParam0 == Global_1362329)
	{
		return 0;
	}
	else if (iParam0 == Global_1362330)
	{
		return 1;
	}
	else if (iParam0 == Global_1362331)
	{
		return 2;
	}
	else if (iParam0 == Global_1362332)
	{
		return 3;
	}
	else if (iParam0 == Global_1362333)
	{
		return 4;
	}
	else
	{
		return -1;
	}
	return -1;
}

var func_626(var uParam0)//Position - 0x6CFF6
{
	if (network::_network_player_is_in_clan())
	{
		if (network::network_clan_player_is_active(uParam0))
		{
			return Global_2452407;
		}
	}
	return Global_2452407;
}

void func_627(int iParam0, int iParam1, int iParam2)//Position - 0x6D019
{
	if (func_644())
	{
		if (iParam0 >= 1787576850)
		{
			iParam0 = 1787576850;
		}
		if (Global_262145.f_8121 == 0 && iParam1 != -1076930708)
		{
			if (iParam2 == 0)
			{
				if (iParam0 < Global_1362449[func_69(-1)])
				{
					stats::playstats_award_xp(iParam0, -523908350, iParam1);
					return;
				}
				else if (iParam0 == Global_1362449[func_69(-1)])
				{
					return;
				}
			}
		}
		if (Global_262145.f_8120 == 0)
		{
			if (iParam0 == 0)
			{
				stats::playstats_award_xp(iParam0, -1158693853, -1345423847);
				if (iParam2 == 0)
				{
					return;
				}
			}
		}
		if (Global_262145.f_8120 == 0)
		{
			if (iParam0 < 0)
			{
				stats::playstats_award_xp(iParam0, -1586921397, iParam1);
				return;
			}
		}
		if (func_633(player::player_id()))
		{
			Global_1589933[player::player_id() /*601*/].f_202.f_1 = iParam0;
			Global_1589933[player::player_id() /*601*/].f_202.f_6 = func_631(iParam0, 1);
		}
		func_367(634, iParam0, -1, 1);
		func_237(635, func_631(iParam0, 1), -1, 1, 0);
		Global_1362449[func_69(-1)] = iParam0;
		func_628(7, 0);
	}
}

void func_628(int iParam0, int iParam1)//Position - 0x6D13A
{
	var uVar0;
	
	if (func_630(iParam0, iParam1))
	{
		uVar0 = func_629();
		Global_2452384[uVar0] = iParam0;
	}
}

int func_629()//Position - 0x6D15D
{
	int iVar0;
	int iVar1;
	
	iVar0 = 9;
	iVar1 = 0;
	while (iVar1 <= 9)
	{
		if (Global_2452384[iVar1] == 0)
		{
			iVar0 = iVar1;
			iVar1 = 10;
		}
		iVar1++;
	}
	return iVar0;
}

bool func_630(int iParam0, var uParam1)//Position - 0x6D192
{
	if (Global_1315217)
	{
		return false;
	}
	if (iParam0 == 22)
	{
		return true;
	}
	if ((((((((uParam1 || !Global_1315229) || iParam0 == 3) || iParam0 == 10) || iParam0 == 11) || iParam0 == 27) || iParam0 == 28) || iParam0 == 29) || iParam0 == 30)
	{
		return true;
	}
	else
	{
		return false;
	}
	return true;
}

int func_631(int iParam0, int iParam1)//Position - 0x6D218
{
	if (iParam1)
	{
	}
	return func_632(iParam0, 0);
}

int func_632(int iParam0, int iParam1)//Position - 0x6D22C
{
	int iVar0;
	int iVar1;
	int iVar2;
	int iVar3;
	float fVar4;
	
	if (iParam1 == 0)
	{
	}
	iVar1 = 8000;
	iVar2 = 0;
	iVar3 = ((iVar1 - iVar2) / 2);
	iVar0 = 0;
	while (iVar0 <= 100)
	{
		if (iVar1 == iVar2)
		{
			iVar0 = 8000;
			if (iVar3 == 0)
			{
				iVar3 = 1;
			}
			return iVar3;
		}
		if (Global_279816[iVar3] == iParam0)
		{
			iVar1 = iVar3;
			iVar2 = iVar3;
		}
		else if (Global_279816[iVar3] < iParam0)
		{
			if (iVar2 == iVar3)
			{
				iVar2++;
			}
			else
			{
				iVar2 = iVar3;
			}
		}
		else if (iVar1 == iVar3)
		{
			iVar1 = (iVar1 - 1);
		}
		else
		{
			iVar1 = iVar3;
		}
		fVar4 = (((system::to_float(iVar1) - system::to_float(iVar2)) / 2f) + system::to_float(iVar2));
		iVar3 = system::round(fVar4);
		iVar0++;
	}
	return 8000;
}

int func_633(int iParam0)//Position - 0x6D2EB
{
	if (iParam0 == -1)
	{
		return false;
	}
	else
	{
		return gameplay::is_bit_set(Global_2433082.f_1, iParam0);
	}
	return true;
}

int func_634(int iParam0)//Position - 0x6D310
{
	if (Global_1312462.f_9 == 0)
	{
		if (iParam0 > -1)
		{
			if (iParam0 == player::player_id())
			{
				return Global_1362449[func_69(-1)];
			}
			else if (func_633(iParam0))
			{
				return Global_1589933[iParam0 /*601*/].f_202.f_1;
			}
		}
	}
	else
	{
		return Global_1362449[func_69(-1)];
	}
	return 0;
}

void func_635(int iParam0)//Position - 0x6D36D
{
	int iVar0;
	int iVar1;
	int iVar2;
	int iVar3;
	int iVar4;
	int iVar5;
	int iVar6;
	int iVar7;
	
	iVar1 = player::get_player_team(player::player_id());
	iVar0 = 0;
	while (iVar0 < network::_network_get_num_participants_host())
	{
		iVar4 = player::int_to_participantindex(iVar0);
		if (network::network_is_participant_active(iVar4))
		{
			iVar5 = network::network_get_player_index(iVar4);
			if (player::get_player_team(iVar5) != -1)
			{
				if (player::get_player_team(iVar5) == iVar1 || func_591(player::get_player_team(iVar5), iVar1, 0))
				{
					iVar2++;
					if (iVar5 != player::player_id())
					{
						if (func_637(player::player_id(), iVar5))
						{
							iVar3 = true;
						}
					}
				}
			}
		}
		iVar0++;
	}
	if (iVar3)
	{
		iVar6 = system::round((func_636(*iParam0, 100) * (10f * Global_262145.f_4215)));
	}
	if (iVar2 > 4)
	{
		iVar2 = 4;
	}
	if (iVar2 >= 2)
	{
		iVar7 = system::round((func_636(*iParam0, 100) * (20f * Global_262145.f_4208)));
	}
	*iParam0 = (*iParam0 + iVar6);
	*iParam0 = (*iParam0 + iVar7);
}

float func_636(int iParam0, int iParam1)//Position - 0x6D458
{
	float fVar0;
	float fVar1;
	float fVar2;
	
	fVar0 = system::to_float(iParam0);
	fVar1 = system::to_float(iParam1);
	fVar2 = (fVar0 / fVar1);
	return fVar2;
}

bool func_637(int iParam0, int iParam1)//Position - 0x6D479
{
	if (network::_network_player_is_in_clan())
	{
		Global_2482005 = { func_487(iParam0) };
		Global_2482018 = { func_487(iParam1) };
		if (network::network_clan_player_is_active(&Global_2482005))
		{
			if (network::network_clan_player_is_active(&Global_2482018))
			{
				network::network_clan_player_get_desc(&Global_2481935, 35, &Global_2482005);
				network::network_clan_player_get_desc(&Global_2481970, 35, &Global_2482018);
				if (Global_2481935 == Global_2481970)
				{
					return true;
				}
			}
		}
	}
	return false;
}

void func_638(int iParam0, int iParam1)//Position - 0x6D4E6
{
	int iVar0;
	int iVar1;
	int iVar2;
	int iVar3;
	int iVar4;
	int iVar5;
	int iVar6;
	
	if (iParam0)
	{
		iVar0 = 0;
		while (iVar0 < network::_network_get_num_participants_host())
		{
			iVar3 = iVar0;
			if (network::network_is_participant_active(iVar3))
			{
				iVar4 = network::network_get_player_index(iVar3);
				if (func_1644(iVar4, 0, 1))
				{
					if (iVar4 != player::player_id())
					{
						iVar1++;
						if (func_637(player::player_id(), iVar4))
						{
							iVar2 = true;
						}
					}
				}
			}
			iVar0++;
		}
	}
	else
	{
		iVar0 = 0;
		while (iVar0 < 32)
		{
			iVar4 = iVar0;
			if (func_1644(iVar4, 1, 1))
			{
				if (iVar4 != player::player_id())
				{
					if (func_639(player::player_id(), iVar4) <= 20f)
					{
						iVar1++;
						if (func_637(player::player_id(), iVar4))
						{
							iVar2 = true;
						}
					}
				}
			}
			iVar0++;
		}
	}
	if (iVar2)
	{
		iVar5 = system::round((func_636(*iParam1, 100) * (10f * Global_262145.f_4215)));
	}
	if (iVar1 > 4)
	{
		iVar1 = 4;
	}
	if (iVar1 >= 1)
	{
		iVar6 = system::round((func_636(*iParam1, 100) * (20f * Global_262145.f_4208)));
	}
	*iParam1 = (*iParam1 + iVar5);
	*iParam1 = (*iParam1 + iVar6);
}

float func_639(int iParam0, int iParam1)//Position - 0x6D5FE
{
	return system::vdist(func_640(iParam0), func_640(iParam1));
	return 0f;
}

Vector3 func_640(int iParam0)//Position - 0x6D61A
{
	return entity::get_entity_coords(player::get_player_ped(iParam0), 0);
}

var func_641(int iParam0)//Position - 0x6D62D
{
	int iVar0;
	
	if (controls::get_local_player_aim_state() != 3)
	{
		return *iParam0;
	}
	iVar0 = system::round((func_636(*iParam0, 100) * 25f));
	*iParam0 = (*iParam0 + iVar0);
	return *iParam0;
}

int func_642(int iParam0)//Position - 0x6D664
{
	if (iParam0 < 0)
	{
		if (gameplay::absi(iParam0) > func_634(player::player_id()))
		{
			iParam0 = -func_634(player::player_id());
		}
	}
	if (func_643(8000, 0, 0) > 0)
	{
		if (func_643(8000, 0, 0) < (iParam0 + func_634(player::player_id())))
		{
			iParam0 = (func_643(8000, 0, 0) - func_634(player::player_id()));
		}
	}
	return iParam0;
}

var func_643(int iParam0, int iParam1, int iParam2)//Position - 0x6D6C8
{
	if (iParam2 == 0)
	{
	}
	if (iParam1)
	{
	}
	if (iParam0 >= 8000)
	{
		iParam0 = 8000;
	}
	return Global_279816[iParam0];
}

bool func_644()//Position - 0x6D6F0
{
	return true;
}

bool func_645(char* sParam0)//Position - 0x6D6F9
{
	if (gameplay::is_string_null(sParam0))
	{
		return true;
	}
	else if (gameplay::are_strings_equal(sParam0, "") || gameplay::are_strings_equal(sParam0, "0"))
	{
		return true;
	}
	return false;
}

int func_646(int iParam0)//Position - 0x6D734
{
	return Global_2421621[iParam0 /*358*/].f_118 == 2;
}

int func_647(int iParam0)//Position - 0x6D749
{
	return Global_2421621[iParam0 /*358*/].f_118 == 7;
}

void func_648()//Position - 0x6D75E
{
	Global_2454002 = 1;
}

void func_649(var uParam0, var uParam1, var uParam2)//Position - 0x6D76B
{
	int iVar0;
	int iVar1;
	int iVar2;
	
	iVar0 = iLocal_754;
	iVar1 = ((func_3(&uLocal_3733, 0, 0) / 60) / 1000);
	if (iVar1 > Global_262145.f_9941)
	{
		iVar1 = Global_262145.f_9941;
	}
	else if (iVar1 < 1)
	{
		iVar1 = 1;
	}
	*uParam2 = (func_661() * iVar1);
	*uParam1 = (func_660() * iVar1);
	iVar2 = iLocal_4932;
	if (iLocal_4932 > func_659())
	{
		iVar2 = func_659();
	}
	if (func_669(20))
	{
		if (func_1566() == network::participant_id_to_int())
		{
			*uParam0 = system::round((IntToFloat(func_655(4, iVar2, func_658(), func_657(), func_656(iVar0))) * Global_262145.f_9944));
			*uParam1 = (*uParam1 + system::round((IntToFloat(func_655(4, iVar2, func_654(), func_653(), func_656(iVar0))) * Global_262145.f_9945)));
		}
		else
		{
			func_561(1);
		}
	}
	else
	{
		switch (func_1555())
		{
			case 3:
				if (func_1566() == network::participant_id_to_int())
				{
					*uParam0 = system::round((IntToFloat(func_655(1, iVar2, func_658(), func_657(), func_656(iVar0))) * Global_262145.f_9944));
					*uParam1 = (*uParam1 + system::round((IntToFloat(func_655(1, iVar2, func_654(), func_653(), func_656(iVar0))) * Global_262145.f_9945)));
				}
				else
				{
					func_561(1);
				}
				break;
			
			case 5:
				if (func_652() == network::participant_id_to_int())
				{
					*uParam0 = system::round((IntToFloat(func_655(3, iVar2, func_658(), func_651(), -1082130432)) * Global_262145.f_9944));
					*uParam1 = (*uParam1 + system::round((IntToFloat(func_655(3, iVar2, func_654(), func_650(), -1082130432)) * Global_262145.f_9945)));
				}
				else if (func_1566() == network::participant_id_to_int())
				{
					*uParam0 = system::round((IntToFloat(func_655(2, iVar2, func_658(), -1, func_656(iVar0))) * Global_262145.f_9944));
					*uParam1 = (*uParam1 + system::round((IntToFloat(func_655(2, iVar2, func_654(), -1, func_656(iVar0))) * Global_262145.f_9945)));
				}
				else
				{
					func_561(1);
				}
				break;
			}
	}
}

var func_650()//Position - 0x6D972
{
	return Global_262145.f_9827;
}

var func_651()//Position - 0x6D981
{
	return Global_262145.f_9826;
}

var func_652()//Position - 0x6D990
{
	return Local_653.f_1.f_16;
}

var func_653()//Position - 0x6D99F
{
	return Global_262145.f_9825;
}

var func_654()//Position - 0x6D9AE
{
	return Global_262145.f_9829;
}

int func_655(int iParam0, int iParam1, int iParam2, int iParam3, float fParam4)//Position - 0x6D9BD
{
	switch (iParam0)
	{
		case default:
			return -1;
		
		case 1:
			return system::round((IntToFloat(iParam3) + (IntToFloat((iParam1 * iParam2)) * fParam4)));
		
		case 2:
		case 4:
			return system::round((IntToFloat((iParam1 * iParam2)) * fParam4));
		
		case 3:
			return (iParam3 + (iParam1 * iParam2));
	}
}

var func_656(int iParam0)//Position - 0x6DA14
{
	if (iParam0 < Global_262145.f_9831)
	{
		return Global_262145.f_9836;
	}
	if (iParam0 < Global_262145.f_9832)
	{
		return Global_262145.f_9837;
	}
	if (iParam0 < Global_262145.f_9833)
	{
		return Global_262145.f_9838;
	}
	if (iParam0 < Global_262145.f_9834)
	{
		return Global_262145.f_9839;
	}
	if (iParam0 < Global_262145.f_9835)
	{
		return Global_262145.f_9840;
	}
	return Global_262145.f_9841;
}

var func_657()//Position - 0x6DAA0
{
	return Global_262145.f_9824;
}

var func_658()//Position - 0x6DAAF
{
	return Global_262145.f_9828;
}

var func_659()//Position - 0x6DABE
{
	return Global_262145.f_9830;
}

var func_660()//Position - 0x6DACD
{
	return Global_262145.f_9843;
}

var func_661()//Position - 0x6DADC
{
	return Global_262145.f_9842;
}

bool func_662(int iParam0)//Position - 0x6DAEB
{
	if (func_1424(5, iParam0))
	{
		return true;
	}
	if (func_1424(6, iParam0))
	{
		return true;
	}
	if (func_1424(7, iParam0))
	{
		return true;
	}
	if (func_1424(8, iParam0))
	{
		return true;
	}
	return false;
}

bool func_663(int iParam0)//Position - 0x6DB2D
{
	if (func_1424(14, iParam0))
	{
		return true;
	}
	if (func_1424(16, iParam0))
	{
		return true;
	}
	if (func_1424(15, iParam0))
	{
		return true;
	}
	if (func_1424(17, iParam0))
	{
		return true;
	}
	return false;
}

int func_664(int iParam0)//Position - 0x6DB72
{
	if (iParam0 == player::player_id())
	{
		if ((func_507() && !func_666()) || func_665(player::player_id(), 21))
		{
			return true;
		}
		if (func_671(&(Global_1574332.f_13)))
		{
			if (!func_57(&(Global_1574332.f_13), Global_262145.f_14, 0))
			{
				return true;
			}
			func_9(&(Global_1574332.f_13));
		}
	}
	else if (gameplay::is_bit_set(Global_1618089[iParam0 /*390*/].f_1, 10))
	{
		return true;
	}
	return gameplay::is_bit_set(Global_1618089[iParam0 /*390*/].f_1, 9);
}

int func_665(int iParam0, int iParam1)//Position - 0x6DC04
{
	return gameplay::is_bit_set(Global_2421621[iParam0 /*358*/].f_211, iParam1);
}

var func_666()//Position - 0x6DC1D
{
	return Global_1312412.f_1;
}

int func_667(int iParam0)//Position - 0x6DC2B
{
	if (func_668(iParam0))
	{
		return true;
	}
	return gameplay::is_bit_set(Global_1618089[iParam0 /*390*/].f_1, 8);
}

int func_668(int iParam0)//Position - 0x6DC51
{
	return gameplay::is_bit_set(Global_1618089[iParam0 /*390*/].f_1, 2);
}

int func_669(int iParam0)//Position - 0x6DC69
{
	return gameplay::is_bit_set(iLocal_2983, iParam0);
}

bool func_670(var uParam0)//Position - 0x6DC7A
{
	if (uParam0->f_1)
	{
		if (gameplay::absi(network::get_time_difference(network::get_network_time(), *uParam0)) >= 1000)
		{
			return true;
		}
	}
	return false;
}

var func_671(var uParam0)//Position - 0x6DCA3
{
	return uParam0->f_1;
}

void func_672()//Position - 0x6DCAF
{
	int iVar0;
	
	iVar0 = 0;
	while (iVar0 < Global_262145.f_9743)
	{
		if (ui::does_blip_exist(vLocal_3659[iVar0 /*3*/].f_1))
		{
			ui::remove_blip(&(vLocal_3659[iVar0 /*3*/].f_1));
		}
		iVar0++;
	}
	func_673();
}

void func_673()//Position - 0x6DCF0
{
	func_675();
	func_674(21);
	func_674(23);
	func_674(25);
	iLocal_755 = 0;
}

void func_674(int iParam0)//Position - 0x6DD12
{
	gameplay::clear_bit(&iLocal_2983, iParam0);
}

void func_675()//Position - 0x6DD23
{
	if (func_40() != -1)
	{
		if (gameplay::is_bit_set(iLocal_3730, func_40()))
		{
			if (func_1566() == network::participant_id_to_int())
			{
				if (ui::does_blip_exist(iLocal_4936))
				{
					ui::remove_blip(&iLocal_4936);
					func_9(&uLocal_3761);
				}
			}
			else
			{
				func_686(func_40(), 1);
				func_685(func_40(), 0);
				func_683(func_40(), 442, 0);
				func_682(func_40(), 1f, 0);
				func_681(func_40(), 0);
				func_676(func_40(), func_680(), 0);
			}
		}
	}
	func_674(24);
	iLocal_652 = 0;
}

void func_676(int iParam0, struct<2> Param1, int iParam3)//Position - 0x6DDAF
{
	int iVar0;
	int iVar1;
	
	if (iParam0 == func_45())
	{
		return;
	}
	if (gameplay::get_hash_key(script::get_this_script_name()) == func_679())
	{
		return;
	}
	iVar1 = iParam0;
	if (!script::is_thread_active(Global_2414704.f_805) || Global_2414704.f_805 == script::get_id_of_this_thread())
	{
		if (iParam3)
		{
			if (!gameplay::is_bit_set(Global_2414704.f_393, iVar1))
			{
				iVar0 = true;
			}
			gameplay::set_bit(&(Global_2414704.f_393), iVar1);
			Global_2414704.f_806[iVar1 /*2*/] = { Param1 };
			Global_2414704.f_805 = script::get_id_of_this_thread();
		}
		else
		{
			if (gameplay::is_bit_set(Global_2414704.f_393, iVar1))
			{
				iVar0 = true;
			}
			gameplay::clear_bit(&(Global_2414704.f_393), iVar1);
			if (Global_2414704.f_393 == 0)
			{
				Global_2414704.f_805 = -1;
			}
		}
	}
	if (iVar0)
	{
		if (ui::does_blip_exist(Global_2414704[iVar1]))
		{
			func_677(iParam0);
		}
	}
}

void func_677(int iParam0)//Position - 0x6DE8F
{
	var uVar0;
	
	uVar0 = iParam0;
	if (ui::does_blip_exist(Global_2414704[uVar0]))
	{
		if (func_678(iParam0))
		{
			ui::begin_text_command_set_blip_name("CUSPLNM");
			ui::_add_text_component_item_string(&(Global_2414704.f_806[uVar0 /*2*/]));
			ui::end_text_command_set_blip_name(Global_2414704[uVar0]);
		}
		else
		{
			ui::set_blip_name_to_player_name(Global_2414704[uVar0], iParam0);
		}
	}
}

bool func_678(int iParam0)//Position - 0x6DEE8
{
	if (gameplay::is_bit_set(Global_2414704.f_393, iParam0))
	{
		if (script::is_thread_active(Global_2414704.f_805))
		{
			return true;
		}
		else
		{
			gameplay::clear_bit(&(Global_2414704.f_393), iParam0);
		}
	}
	return false;
}

int func_679()//Position - 0x6DF23
{
	switch (func_125())
	{
		case 0:
			return joaat("freemode");
			break;
		
		case 2:
			return joaat("creator");
			break;
	}
	return 0;
}

struct<2> func_680()//Position - 0x6DF57
{
	struct<2> Var0;
	
	StringCopy(&Var0, "AMHB_BL", 8);
	return Var0;
}

void func_681(int iParam0, int iParam1)//Position - 0x6DF6C
{
	int iVar0;
	
	if (iParam0 == func_45())
	{
		return;
	}
	if (gameplay::get_hash_key(script::get_this_script_name()) == func_679())
	{
		return;
	}
	iVar0 = iParam0;
	if (!script::is_thread_active(Global_2414704.f_803) || Global_2414704.f_803 == script::get_id_of_this_thread())
	{
		if (iParam1)
		{
			gameplay::set_bit(&(Global_2414704.f_390), iVar0);
			Global_2414704.f_803 = script::get_id_of_this_thread();
		}
		else
		{
			gameplay::clear_bit(&(Global_2414704.f_390), iVar0);
			if (Global_2414704.f_390 == 0)
			{
				Global_2414704.f_803 = -1;
			}
		}
	}
}

void func_682(int iParam0, float fParam1, int iParam2)//Position - 0x6DFFA
{
	int iVar0;
	
	if (iParam0 == func_45())
	{
		return;
	}
	if (gameplay::get_hash_key(script::get_this_script_name()) == func_679())
	{
		return;
	}
	iVar0 = iParam0;
	if (!script::is_thread_active(Global_2414704.f_770[iParam0]) || Global_2414704.f_770[iParam0] == script::get_id_of_this_thread())
	{
		if (iParam2)
		{
			gameplay::set_bit(&(Global_2414704.f_389), iVar0);
			Global_2414704.f_539[iVar0] = fParam1;
			Global_2414704.f_770[iParam0] = script::get_id_of_this_thread();
		}
		else
		{
			gameplay::clear_bit(&(Global_2414704.f_389), iVar0);
			Global_2414704.f_770[iParam0] = -1;
		}
	}
}

void func_683(int iParam0, int iParam1, int iParam2)//Position - 0x6E09A
{
	int iVar0;
	var uVar1;
	
	if (iParam0 == func_45())
	{
		return;
	}
	if (gameplay::get_hash_key(script::get_this_script_name()) == func_679())
	{
		return;
	}
	iVar0 = iParam0;
	uVar1 = iParam1;
	if (!script::is_thread_active(Global_2414704.f_572[iParam0]) || Global_2414704.f_572[iParam0] == script::get_id_of_this_thread())
	{
		if (iParam2)
		{
			if (!gameplay::is_bit_set(Global_2414704.f_385, iVar0))
			{
				func_684();
			}
			gameplay::set_bit(&(Global_2414704.f_385), iVar0);
			Global_2414704.f_407[iVar0] = uVar1;
			Global_2414704.f_572[iParam0] = script::get_id_of_this_thread();
		}
		else
		{
			if (gameplay::is_bit_set(Global_2414704.f_385, iVar0))
			{
				func_684();
			}
			gameplay::clear_bit(&(Global_2414704.f_385), iVar0);
			Global_2414704.f_572[iParam0] = -1;
		}
	}
}

void func_684()//Position - 0x6E167
{
	Global_2414704.f_995 = 1;
}

void func_685(int iParam0, int iParam1)//Position - 0x6E177
{
	if (iParam1)
	{
		gameplay::set_bit(&(Global_2414704.f_365), iParam0);
	}
	else
	{
		gameplay::clear_bit(&(Global_2414704.f_365), iParam0);
	}
	if (ui::does_blip_exist(Global_2414704[iParam0]))
	{
		if (iParam1)
		{
			ui::set_blip_as_short_range(Global_2414704[iParam0], false);
		}
		else
		{
			ui::set_blip_as_short_range(Global_2414704[iParam0], true);
		}
	}
}

void func_686(int iParam0, int iParam1)//Position - 0x6E1D2
{
	int iVar0;
	
	if (iParam0 == func_45())
	{
		return;
	}
	if (gameplay::get_hash_key(script::get_this_script_name()) == func_679())
	{
		return;
	}
	iVar0 = iParam0;
	if (!script::is_thread_active(Global_2414704.f_737[iParam0]) || Global_2414704.f_737[iParam0] == script::get_id_of_this_thread())
	{
		if (iParam1)
		{
			gameplay::set_bit(&(Global_2414704.f_391), iVar0);
			Global_2414704.f_737[iParam0] = script::get_id_of_this_thread();
		}
		else
		{
			gameplay::clear_bit(&(Global_2414704.f_391), iVar0);
			Global_2414704.f_737[iParam0] = -1;
		}
	}
}

void func_687()//Position - 0x6E265
{
	if (!func_693())
	{
		return;
	}
	if (!gameplay::get_hash_key(script::get_this_script_name()) == Global_1312571.f_9)
	{
		return;
	}
	func_688();
}

void func_688()//Position - 0x6E292
{
	func_690();
	func_689(0);
}

void func_689(int iParam0)//Position - 0x6E2A3
{
	int iVar0;
	
	iVar0 = network::network_is_game_in_progress();
	Global_1312571 = 20;
	StringCopy(&(Global_1312571.f_1), "", 32);
	Global_1312571.f_9 = 0;
	if (iVar0)
	{
		Global_1312571.f_10 = network::get_network_time();
		Global_1312571.f_11 = network::get_network_time();
	}
	StringCopy(&(Global_1312571.f_12), "", 16);
	StringCopy(&(Global_1312571.f_16), "", 64);
	StringCopy(&(Global_1312571.f_32), "", 64);
	Global_1312571.f_52 = 0;
	Global_1312571.f_53 = 0;
	Global_1312571.f_54 = 0;
	Global_1312571.f_55 = -1;
	Global_1312571.f_56 = 0;
	Global_1312571.f_59 = 0;
	if (iParam0)
	{
		return;
	}
}

void func_690()//Position - 0x6E339
{
	if (!func_692())
	{
	}
	if (func_693())
	{
		ui::_0xE124FA80A759019C(&(Global_1312571.f_12));
		func_691();
		ui::_0xFCC75460ABA29378();
	}
}

void func_691()//Position - 0x6E362
{
	switch (Global_1312571)
	{
		case 20:
			return;
		
		case 0:
			return;
		
		case 1:
			ui::add_text_component_integer(Global_1312571.f_52);
			return;
		
		case 2:
			ui::add_text_component_integer(Global_1312571.f_52);
			ui::add_text_component_integer(Global_1312571.f_53);
			return;
		
		case 3:
			ui::_add_text_component_item_string(&(Global_1312571.f_16));
			return;
		
		case 4:
			ui::_add_text_component_item_string(&(Global_1312571.f_16));
			ui::_add_text_component_item_string(&(Global_1312571.f_32));
			return;
		
		case 5:
			ui::add_text_component_substring_player_name(&(Global_1312571.f_16));
			return;
		
		case 6:
			ui::_0x39BBF623FC803EAC(Global_1312571.f_56);
			ui::add_text_component_substring_player_name(&(Global_1312571.f_16));
			return;
		
		case 7:
			ui::_add_text_component_item_string(&(Global_1312571.f_16));
			return;
		
		case 8:
			ui::_0x39BBF623FC803EAC(Global_1312571.f_56);
			ui::_add_text_component_item_string(&(Global_1312571.f_16));
			return;
		
		case 9:
			ui::_0x5F68520888E69014(&(Global_1312571.f_16));
			return;
		
		case 10:
			ui::add_text_component_substring_player_name(&(Global_1312571.f_16));
			ui::add_text_component_substring_player_name(&(Global_1312571.f_32));
			return;
		
		case 12:
			ui::add_text_component_substring_player_name(&(Global_1312571.f_16));
			ui::_add_text_component_item_string(&(Global_1312571.f_32));
			return;
		
		case 13:
			ui::_0x39BBF623FC803EAC(Global_1312571.f_56);
			ui::_add_text_component_item_string(&(Global_1312571.f_16));
			ui::_0x39BBF623FC803EAC(Global_1312571.f_57);
			ui::_add_text_component_item_string(&(Global_1312571.f_32));
			return;
		
		case 11:
			ui::_0x5F68520888E69014(&(Global_1312571.f_16));
			return;
		
		case 14:
			ui::_0x39BBF623FC803EAC(Global_1312571.f_56);
			ui::add_text_component_substring_player_name(&(Global_1312571.f_16));
			ui::_0x39BBF623FC803EAC(Global_1312571.f_56);
			ui::_add_text_component_item_string(&(Global_1312571.f_32));
			return;
		
		case 15:
			ui::_0x39BBF623FC803EAC(Global_1312571.f_56);
			ui::add_text_component_substring_player_name(&(Global_1312571.f_16));
			ui::_0x39BBF623FC803EAC(Global_1312571.f_57);
			ui::_add_text_component_item_string(&(Global_1312571.f_32));
			return;
		
		case 17:
			ui::add_text_component_substring_player_name(&(Global_1312571.f_16));
			ui::add_text_component_substring_player_name(&(Global_1312571.f_32));
			ui::_0x39BBF623FC803EAC(Global_1312571.f_56);
			ui::_add_text_component_item_string(&(Global_1312571.f_48));
			return;
		
		case 16:
			ui::_0x39BBF623FC803EAC(Global_1312571.f_56);
			ui::add_text_component_substring_player_name(&(Global_1312571.f_16));
			return;
		
		case 19:
			ui::_0x39BBF623FC803EAC(Global_1312571.f_56);
			ui::_add_text_component_item_string(&(Global_1312571.f_16));
			return;
		
		case 18:
			ui::add_text_component_substring_player_name(&(Global_1312571.f_16));
			ui::_0x39BBF623FC803EAC(Global_1312571.f_56);
			ui::_add_text_component_item_string(&(Global_1312571.f_48));
			ui::add_text_component_substring_player_name(&(Global_1312571.f_32));
			return;
		
		default:
	}
}

int func_692()//Position - 0x6E5D4
{
	if (!func_693())
	{
		return 0;
	}
	ui::_0x853648FD1063A213(&(Global_1312571.f_12));
	func_691();
	return ui::_0x8A9BA1AB3E237613();
}

bool func_693()//Position - 0x6E5FA
{
	if (Global_1312571 == 20)
	{
		return false;
	}
	return true;
}

void func_694()//Position - 0x6E610
{
	if (func_394("AMHB_OPTTCKR"))
	{
		ui::clear_help(1);
	}
	if (func_394("AMHB_BSTHLP0"))
	{
		ui::clear_help(1);
	}
	if (func_394("AMHB_BSTHLP1"))
	{
		ui::clear_help(1);
	}
	if (func_394("AMHB_BSTHLP2"))
	{
		ui::clear_help(1);
	}
	if (func_394("AMHB_BSTHLP3"))
	{
		ui::clear_help(1);
	}
	if (func_394("AMHB_HTRHLP0"))
	{
		ui::clear_help(1);
	}
	if (func_394("AMHB_HTRHLP1"))
	{
		ui::clear_help(1);
	}
	if (func_394("AMHB_HTRHLP2"))
	{
		ui::clear_help(1);
	}
	if (func_394("AMHB_HTRHLP3"))
	{
		ui::clear_help(1);
	}
	if (func_394("AMHB_NOCLCT2"))
	{
		ui::clear_help(1);
	}
	if (func_394("AMHB_NOCLCT"))
	{
		ui::clear_help(1);
	}
	func_695();
}

void func_695()//Position - 0x6E6D7
{
	if (iLocal_3738 != -1)
	{
		func_696(&iLocal_3738);
	}
	if (func_394("AMHB_OPTHELP"))
	{
		ui::clear_help(1);
	}
	if (func_394("AMHB_PASSIVE"))
	{
		ui::clear_help(1);
	}
	if (func_394("AMHB_BOB"))
	{
		ui::clear_help(1);
	}
	if (func_394("AMHB_LUXOR"))
	{
		ui::clear_help(1);
	}
	if (func_394("AMHB_HELIGUN"))
	{
		ui::clear_help(1);
	}
	if (func_394("AMHB_HKR"))
	{
		ui::clear_help(1);
	}
	if (func_394("AMHB_PLANE"))
	{
		ui::clear_help(1);
	}
	iLocal_3738 = -1;
}

void func_696(int iParam0)//Position - 0x6E768
{
	int iVar0;
	
	if (*iParam0 == -1)
	{
		return;
	}
	iVar0 = func_697(*iParam0);
	if (iVar0 == -1)
	{
		*iParam0 = -1;
		return;
	}
	if (iVar0 > -1 && iVar0 < 6)
	{
		if (Global_36480[iVar0 /*32*/])
		{
			Global_36480[iVar0 /*32*/].f_7 = 1;
			*iParam0 = -1;
			return;
		}
	}
	*iParam0 = -1;
}

int func_697(int iParam0)//Position - 0x6E7BF
{
	int iVar0;
	
	if (iParam0 < 0)
	{
		return -1;
	}
	iVar0 = 0;
	iVar0 = 0;
	while (iVar0 < 6)
	{
		if (Global_36480[iVar0 /*32*/].f_1 == iParam0)
		{
			return iVar0;
		}
		iVar0++;
	}
	return -1;
}

void func_698(var uParam0)//Position - 0x6E7FA
{
	if (!uParam0->f_1)
	{
		if (network::network_is_host_of_this_script())
		{
			func_58(uParam0, 0, 0);
		}
	}
}

void func_699()//Position - 0x6E819
{
	int iVar0;
	char* sVar1;
	int iVar2;
	int iVar3;
	char* sVar4;
	char* sVar5;
	
	if (func_1566() > -1)
	{
		if (gameplay::is_bit_set(iLocal_3731, func_1566()))
		{
			if (!func_1420(func_33()))
			{
				func_1398(146, func_33(), &uLocal_3740, system::to_float(Global_262145.f_10003), system::to_float(Global_262145.f_9906), 0);
			}
		}
	}
	func_1397();
	func_1396();
	func_1395();
	func_1394();
	if (func_1566() != -1)
	{
		func_1393();
	}
	if (func_40() != -1)
	{
		if (gameplay::is_bit_set(iLocal_3730, func_40()))
		{
			func_48();
		}
		else
		{
			func_44();
		}
	}
	else
	{
		func_44();
	}
	func_1392();
	if (func_1371(0, 1))
	{
		func_694();
	}
	if (func_60() >= 2)
	{
		if (func_1566() != -1)
		{
			func_1363();
		}
	}
	func_1347();
	switch (func_60())
	{
		case 0:
			break;
		
		case 1:
			if (iLocal_3739 == network::participant_id_to_int())
			{
				func_1346(1);
			}
			else
			{
				func_1346(0);
			}
			if (audio::request_script_audio_bank("DLC_SFX1/BEAST", false, -1))
			{
				if (iLocal_3739 == network::participant_id_to_int() && !func_1371(0, 0))
				{
					if (!func_1345(player::player_id()))
					{
						func_1344(1);
					}
					func_1342();
					iVar0 = func_1332();
					if (!Global_2494149.f_4704)
					{
						if (!func_669(0) && !func_669(1))
						{
							if (iVar0 == 0)
							{
								sVar1 = "AMHB_OPTHELP";
								if (func_460())
								{
									if (func_447())
									{
										sVar1 = "AMHB_OPTBOSSB";
									}
									else if (func_526(func_456()))
									{
										sVar1 = "AMHB_OPTBOSSC";
									}
									else
									{
										sVar1 = "AMHB_OPTBOSS";
									}
								}
								else if (func_260(0))
								{
									if (func_454(0))
									{
										sVar1 = "AMHB_OPTGOONB";
									}
									else if (func_526(func_456()))
									{
										sVar1 = "AMHB_OPTGOONC";
									}
									else
									{
										sVar1 = "AMHB_OPTGOON";
									}
								}
								func_1331(&iLocal_3738, 1, sVar1, 0, 0, 1, 0);
								func_1559(0);
							}
							else if (func_1330(iVar0))
							{
								func_1559(1);
							}
						}
						else
						{
							if (!func_669(30))
							{
								if (func_394("AMHB_OPTHELP"))
								{
									audio::play_sound_frontend(-1, "Event_Start_Text", "GTAO_FM_Events_Soundset", 0);
									func_1559(30);
								}
							}
							if (!func_1424(0, network::participant_id_to_int()))
							{
								if (iVar0 == 0)
								{
									if (func_669(1))
									{
										func_695();
										func_674(1);
										func_674(0);
									}
									else if (func_1329(iLocal_3738, 0) && func_1328(iLocal_3738, 1))
									{
										func_695();
										func_1327("AMHB_OPTTCKR", 30000);
										func_1326(1);
										func_1423(0);
									}
								}
								else if (iLocal_3738 != -1)
								{
									func_695();
									func_674(1);
									func_674(0);
								}
							}
						}
					}
					else
					{
						func_696(&iLocal_3738);
						func_695();
						func_674(1);
						func_674(0);
					}
					if (func_671(&(Local_653.f_1.f_4)))
					{
						iVar2 = (Global_262145.f_9719 - func_3(&(Local_653.f_1.f_4), 0, 0));
						func_1325(iVar2);
						if (iVar2 >= 0)
						{
							func_1323(iVar2, func_1324(-1), 0, 0, -1, 0, 2, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0);
						}
					}
				}
				else
				{
					func_695();
					func_674(1);
					func_674(0);
				}
			}
			break;
		
		case 2:
			if (!func_669(29))
			{
				func_1315(146, func_16(), func_1322(), 0);
				func_1559(29);
			}
			if (iLocal_3739 == network::participant_id_to_int())
			{
				if (Local_742.f_9 == 0)
				{
					Local_742.f_9 = network::_get_posix_time();
				}
			}
			if (iLocal_3738 > -1)
			{
				func_696(&iLocal_3738);
			}
			func_695();
			if (func_16() == 2)
			{
				if (!func_669(19))
				{
					func_1314();
					func_1559(19);
				}
			}
			if (func_1345(player::player_id()))
			{
				func_1344(0);
			}
			if (gameplay::is_bit_set(iLocal_3731, func_1566()))
			{
				if (gameplay::is_bit_set(iLocal_3730, func_40()))
				{
					if (!func_47())
					{
						func_46(1);
					}
					if (!func_669(31))
					{
						entity::set_entity_is_target_priority(vLocal_3562[func_40() /*3*/].f_2, 1, 0);
						func_1559(31);
					}
					func_1312();
					func_1346(0);
					if (func_4() == 1)
					{
						func_1311();
					}
					func_1310();
					if (iLocal_3739 == network::participant_id_to_int())
					{
						if (func_1427(1, 0))
						{
							if (func_1424(5, network::participant_id_to_int()))
							{
								func_1422(5);
							}
							if (func_1424(6, network::participant_id_to_int()))
							{
								func_1422(6);
							}
							if (func_1424(7, network::participant_id_to_int()))
							{
								func_1422(7);
							}
							if (func_1424(8, network::participant_id_to_int()))
							{
								func_1422(8);
							}
							if (func_1424(14, network::participant_id_to_int()))
							{
								func_1422(14);
							}
							if (func_1424(15, network::participant_id_to_int()))
							{
								func_1422(15);
							}
							if (func_1424(16, network::participant_id_to_int()))
							{
								func_1422(16);
							}
							if (func_1424(17, network::participant_id_to_int()))
							{
								func_1422(17);
							}
						}
						else if (!gameplay::is_bit_set(iLocal_3732, Local_2985[network::participant_id_to_int() /*18*/].f_1))
						{
							if (func_669(11))
							{
								if (!func_1424(7, network::participant_id_to_int()))
								{
									func_1423(7);
								}
								if (!func_1424(15, network::participant_id_to_int()))
								{
									func_1423(15);
								}
							}
							else if (func_1424(7, network::participant_id_to_int()))
							{
								func_1422(7);
							}
							if (func_1426() <= 100f)
							{
								if (!func_1424(16, network::participant_id_to_int()))
								{
									func_1423(16);
								}
							}
						}
					}
					else
					{
						if (func_1424(6, network::participant_id_to_int()))
						{
							func_1422(6);
						}
						if (func_1424(7, network::participant_id_to_int()))
						{
							func_1422(7);
						}
					}
					if (iLocal_3739 != -1)
					{
						if (!func_669(12))
						{
							if (!func_1371(0, 0))
							{
								if (gameplay::is_bit_set(iLocal_3730, Local_2985[iLocal_3739 /*18*/].f_1))
								{
									if (!gameplay::is_bit_set(iLocal_3732, Local_2985[iLocal_3739 /*18*/].f_1))
									{
										if (func_1566() != iLocal_3739)
										{
											if (func_4() == 1)
											{
												func_1308(62, "AMHB_PHINTSH1", "AMHB_PHINTSH2", func_1309(), -1, func_1309());
											}
											else if (func_4() == 0)
											{
												func_1308(62, "AMHB_PHINTSH1", "AMHB_PHINTSH2A", func_1309(), -1, func_1309());
											}
										}
										func_1559(12);
									}
								}
							}
						}
						else if (!func_669(13))
						{
							if (func_1307(62))
							{
								func_1559(13);
							}
						}
					}
					if (func_1566() == network::participant_id_to_int())
					{
						if (func_5(5))
						{
							if (!func_1306(1))
							{
								if (!audio::audio_is_scripted_music_playing())
								{
									audio::trigger_music_event("BST_START");
									func_1594(1);
								}
							}
						}
					}
					if (!func_669(27))
					{
						if (iLocal_3739 == network::participant_id_to_int())
						{
							if (func_1566() == network::participant_id_to_int())
							{
								if (func_1424(2, network::participant_id_to_int()))
								{
									iVar3 = true;
								}
							}
							else
							{
								iVar3 = true;
							}
						}
						if (iVar3)
						{
							func_1288(146, func_1305(), func_1304(), func_1303(), func_1302(), func_1301(), 0);
							func_1559(27);
						}
					}
					if (func_1566() == iLocal_3739)
					{
						if (func_5(5))
						{
							func_1287(1);
							if (iLocal_3739 == network::participant_id_to_int())
							{
								if (gameplay::is_bit_set(iLocal_3730, player::player_id()))
								{
									player::set_all_random_peds_flee_this_frame(player::player_id());
								}
							}
							if (iLocal_3739 == network::participant_id_to_int())
							{
								if (!func_1286(player::player_id()))
								{
									func_1261(1);
								}
							}
							if (iLocal_3739 == network::participant_id_to_int())
							{
								if (!func_1427(1, 0))
								{
									if (!func_1424(5, iLocal_3739))
									{
										func_1423(5);
										func_1256(1);
									}
								}
							}
							if (iLocal_3739 != -1)
							{
								if (!func_1371(1, 0))
								{
									func_1250("AMHB_GO2AREA", 0);
								}
								else
								{
									func_687();
								}
							}
							else
							{
								func_687();
							}
							if (iLocal_3739 == network::participant_id_to_int())
							{
								if (!func_1371(0, 0))
								{
									if (gameplay::is_bit_set(iLocal_3730, Local_2985[network::participant_id_to_int() /*18*/].f_1))
									{
										if (!gameplay::is_bit_set(iLocal_3732, Local_2985[network::participant_id_to_int() /*18*/].f_1))
										{
											if (cam::is_screen_faded_in())
											{
												switch (iLocal_3737)
												{
													case 0:
														if (!ui::is_help_message_being_displayed() && !func_1249())
														{
															if (!func_669(2))
															{
																if (func_4() == 0)
																{
																	func_1327("AMHB_BSTHLP0", 30000);
																	func_1326(1);
																	func_1559(2);
																	iLocal_3737++;
																}
															}
														}
														break;
													
													case 1:
														if (!func_394("AMHB_BSTHLP0"))
														{
															iLocal_3737++;
														}
														break;
													
													case 2:
														if (!ui::is_help_message_being_displayed() && !func_1249())
														{
															if (!func_669(3))
															{
																if (func_4() == 0)
																{
																	func_1327("AMHB_BSTHLP1", 30000);
																	func_1326(1);
																	func_1559(3);
																	if (!func_669(24))
																	{
																		func_1559(24);
																		func_9(&uLocal_3742);
																		func_58(&uLocal_3742, 0, 0);
																	}
																	iLocal_3737++;
																}
															}
														}
														break;
													
													case 3:
														if (!func_394("AMHB_BSTHLP1"))
														{
															iLocal_3737++;
														}
														break;
													
													case 4:
														if (!ui::is_help_message_being_displayed() && !func_1249())
														{
															if (!func_669(4))
															{
																if (func_4() == 0)
																{
																	func_1327("AMHB_BSTHLP2", 30000);
																	func_1326(1);
																	func_1559(4);
																	iLocal_3737++;
																}
															}
														}
														break;
													
													case 5:
														if (!func_394("AMHB_BSTHLP2"))
														{
															iLocal_3737++;
														}
														break;
													
													case 6:
														if (iLocal_4932 > 0)
														{
															if (!ui::is_help_message_being_displayed() && !func_1249())
															{
																if (!func_669(5))
																{
																	if (func_4() == 0)
																	{
																		func_1327("AMHB_BSTHLP3", 12000);
																		func_1326(1);
																		func_1559(5);
																		iLocal_3737++;
																	}
																}
															}
														}
														break;
													
													case 7:
														if (!func_394("AMHB_BSTHLP3"))
														{
															iLocal_3737++;
														}
														break;
													
													case 8:
														break;
													}
												}
											}
										}
									}
							}
						}
						else if (iLocal_3739 == network::participant_id_to_int())
						{
							if (func_737())
							{
								func_1423(2);
								if (!func_1427(1, 0))
								{
									func_1423(17);
								}
							}
						}
					}
					else
					{
						if (iLocal_3739 != -1)
						{
							if (!func_1371(1, 0))
							{
								if (func_4() == 1)
								{
									func_1250("AMHB_PHBEAST", 0);
								}
								else if (func_4() == 0)
								{
									func_1250("AMHB_KLBEAST", 0);
								}
							}
							else
							{
								func_687();
							}
						}
						else
						{
							func_687();
						}
						if (iLocal_3739 == network::participant_id_to_int())
						{
							if (func_5(5))
							{
								if (!func_1371(0, 0))
								{
									if (gameplay::is_bit_set(iLocal_3730, Local_2985[network::participant_id_to_int() /*18*/].f_1))
									{
										if (!gameplay::is_bit_set(iLocal_3732, Local_2985[network::participant_id_to_int() /*18*/].f_1))
										{
											if (cam::is_screen_faded_in())
											{
												switch (iLocal_3737)
												{
													case 0:
														if (!ui::is_help_message_being_displayed() && !func_1249())
														{
															if (!func_669(6))
															{
																if (func_4() == 0)
																{
																	func_1327("AMHB_HTRHLP0", 30000);
																	func_1326(1);
																	func_1559(6);
																	iLocal_3737++;
																}
															}
														}
														break;
													
													case 1:
														if (!func_394("AMHB_HTRHLP0"))
														{
															iLocal_3737++;
														}
														break;
													
													case 2:
														if (!ui::is_pause_menu_active())
														{
															if (!ui::is_help_message_being_displayed() && !func_1249())
															{
																if (!func_669(7))
																{
																	if (func_4() == 0)
																	{
																		if (!func_1306(3))
																		{
																			func_1327("AMHB_HTRHLP1", 30000);
																		}
																		else
																		{
																			func_1327("AMHB_HTRHLP1B", 30000);
																		}
																		func_1326(1);
																		func_1559(7);
																		if (!func_669(24))
																		{
																			if (!func_1306(3))
																			{
																				func_1559(24);
																			}
																			func_9(&uLocal_3742);
																			func_58(&uLocal_3742, 0, 0);
																		}
																		iLocal_3737++;
																	}
																}
															}
														}
														else if (!func_1306(3))
														{
															if (!func_671(&uLocal_2852))
															{
																func_58(&uLocal_2852, 0, 0);
															}
															else if (func_57(&uLocal_2852, 10000, 0))
															{
																func_1594(3);
															}
														}
														break;
													
													case 3:
														if (!func_394("AMHB_HTRHLP1"))
														{
															iLocal_3737++;
														}
														break;
													
													case 4:
														if (!ui::is_help_message_being_displayed() && !func_1249())
														{
															if (!func_669(8))
															{
																if (func_4() == 0)
																{
																	func_1327("AMHB_HTRHLP2", 30000);
																	func_1326(1);
																	func_1559(8);
																	iLocal_3737++;
																}
															}
														}
														break;
													
													case 5:
														if (!func_394("AMHB_HTRHLP2"))
														{
															iLocal_3737++;
														}
														break;
													
													case 6:
														if (iLocal_4932 > 0)
														{
															if (!ui::is_help_message_being_displayed() && !func_1249())
															{
																if (func_736(func_40()))
																{
																	if (!func_669(9))
																	{
																		if (func_4() == 0)
																		{
																			func_1327("AMHB_HTRHLP3", 12000);
																			func_1326(1);
																			func_1559(9);
																			iLocal_3737++;
																		}
																	}
																}
															}
														}
														break;
													
													case 7:
														if (!func_394("AMHB_HTRHLP3"))
														{
															iLocal_3737++;
														}
														break;
													
													case 8:
														break;
													}
												}
											}
										}
									}
								}
						}
						if (iLocal_3739 == network::participant_id_to_int())
						{
							if (func_4() == 1)
							{
								if (!func_1424(3, network::participant_id_to_int()))
								{
									if (func_735())
									{
										if (func_731())
										{
											func_1423(3);
										}
									}
								}
							}
						}
					}
				}
			}
			func_719();
			break;
		
		case 3:
			func_719();
			func_694();
			if (func_47())
			{
				func_46(0);
			}
			func_1346(0);
			if (func_1566() == iLocal_3739)
			{
				if (func_1555() == 3 || func_1555() == 4)
				{
					if (func_384())
					{
						func_560();
						func_1558(4);
					}
				}
			}
			if (func_1555() != 0 && func_718())
			{
				func_687();
				func_672();
				if (!func_1424(9, network::participant_id_to_int()))
				{
					if (!func_669(14))
					{
						if (gameplay::is_bit_set(iLocal_3730, Local_2985[network::participant_id_to_int() /*18*/].f_1))
						{
							if (!gameplay::is_bit_set(iLocal_3732, Local_2985[network::participant_id_to_int() /*18*/].f_1))
							{
								if (!func_1371(0, 0))
								{
									if (iLocal_3735 == -1)
									{
										iLocal_3735 = (Global_262145.f_9718 - func_3(&(Local_653.f_1.f_2), 0, 0));
									}
									if (iLocal_3739 != -1)
									{
										switch (func_1555())
										{
											case 1:
												if (func_4() == 1)
												{
												}
												else if (func_4() == 0)
												{
													func_1308(65, "AMHB_OVERTTL", "AMHB_TUOVER1A", 1, 15000, 2);
												}
												break;
											
											case 2:
												if (func_1566() == iLocal_3739)
												{
													sVar5 = "AMHB_BYOUDIED";
												}
												else
												{
													sVar5 = "AMHB_BDOVER1";
												}
												func_1308(65, "AMHB_OVERTTL", sVar5, 1, 15000, 2);
												break;
											
											case 6:
												func_1308(65, "AMHB_OVERTTL", "AMHB_BDOVER2", 1, 15000, 2);
												break;
											
											case 7:
												if (func_1566() == iLocal_3739)
												{
													sVar5 = "AMHB_BYOUSCD";
												}
												else
												{
													sVar5 = "AMHB_BDOVER3";
												}
												func_1308(65, "AMHB_OVERTTL", sVar5, 1, 15000, 2);
												break;
											
											case 8:
												func_717("AMHB_BDOVER4", 1);
												break;
											
											case 5:
												if (func_1566() == iLocal_3739)
												{
													func_708(64, "AMHB_BSTPHTO3A", player::get_player_name(func_716()), 6, 15000, sVar4, 2);
												}
												else if (func_652() == iLocal_3739)
												{
													func_1308(63, sVar4, "AMHB_BSTPHTO2A", 1, -1, 2);
												}
												else
												{
													func_708(65, "AMHB_BSTPHTO1A", player::get_player_name(func_716()), 1, 15000, "AMHB_OVERTTL", 2);
												}
												break;
											
											case 4:
												if (func_1566() == iLocal_3739)
												{
												}
												else if (func_7() == iLocal_3739)
												{
													if (func_662(iLocal_3739))
													{
													}
												}
												else if (func_662(iLocal_3739))
												{
												}
												break;
											
											case 3:
												if (func_1566() == iLocal_3739)
												{
												}
												else
												{
													func_1308(65, "AMHB_OVERTTL", "AMHB_BSTLDMK2", 1, 15000, 2);
												}
												break;
											}
										}
								}
								if (iLocal_3735 > 30000)
								{
									audio::trigger_music_event("BST_STOP");
								}
								func_1559(14);
							}
						}
					}
					else if (!func_669(15))
					{
						if (iLocal_3739 != -1)
						{
							if (((((((func_1307(65) || func_1307(64)) || func_1307(63)) || !func_662(network::participant_id_to_int())) || func_1371(1, 1)) || ui::is_pause_menu_active()) || func_1555() == 8) || func_6(player::player_id()))
							{
								func_1559(15);
							}
						}
						else
						{
							func_1559(15);
						}
					}
					else if (func_1555() != 3 || func_1566() != network::participant_id_to_int())
					{
						func_560();
					}
				}
			}
			if (func_700(&uLocal_3720, 0))
			{
				if (func_669(15))
				{
					if ((!func_1249() || ui::is_pause_menu_active()) || func_6(player::player_id()))
					{
						func_1559(17);
						if (func_669(16))
						{
							func_1423(9);
							func_1558(3);
						}
					}
				}
			}
			break;
		
		case 4:
			break;
		
		case 5:
			break;
	}
}

bool func_700(var uParam0, int iParam1)//Position - 0x6F83D
{
	int iVar0;
	
	if (((*uParam0 > 0 && !func_1249()) && !(func_707(player::player_id(), 0) && (func_706(player::player_id()) || func_705(player::player_id())))) && !func_704(player::player_id()))
	{
		func_703();
	}
	switch (*uParam0)
	{
		case 0:
			if (!func_671(&(uParam0->f_3)))
			{
				func_58(&(uParam0->f_3), 0, 0);
			}
			else if (func_57(&(uParam0->f_3), 1000, 0))
			{
				gameplay::set_bit(&(Global_1574332.f_1), 25);
				if (iParam1)
				{
					gameplay::set_bit(&(Global_2494149.f_4446), 0);
					func_58(&(uParam0->f_5), 0, 0);
				}
				func_58(&(uParam0->f_1), 0, 0);
				func_702(uParam0, 1);
			}
			break;
		
		case 1:
			if (func_671(&(uParam0->f_5)))
			{
				if (func_57(&(uParam0->f_5), 3000, 0))
				{
					iVar0 = true;
				}
			}
			else
			{
				iVar0 = true;
			}
			if (iVar0)
			{
				func_701();
				func_702(uParam0, 2);
			}
			break;
		
		case 2:
			func_701();
			if (func_57(&(uParam0->f_1), 15000, 0))
			{
				if (func_394("AMEV_LBD_HELP"))
				{
					ui::clear_help(1);
				}
				func_702(uParam0, 3);
			}
			break;
		
		case 3:
			if (func_57(&(uParam0->f_1), 23500, 0))
			{
				gameplay::clear_bit(&(Global_2494149.f_4446), 1);
				func_702(uParam0, 4);
				return true;
			}
			break;
		
		case 4:
			gameplay::clear_bit(&(Global_2494149.f_4446), 1);
			return true;
	}
	return false;
}

void func_701()//Position - 0x6F9BA
{
	if (gameplay::is_bit_set(Global_2494149.f_4446, 0))
	{
		if (((((!ui::is_radar_hidden() && !gameplay::is_bit_set(Global_2494149.f_743, 2)) && func_1644(player::player_id(), 1, 1)) && !Global_68127) && !Global_52999) && !cam::is_screen_faded_out())
		{
			gameplay::set_bit(&(Global_2494149.f_4446), 1);
			func_1327("AMEV_LBD_HELP", -1);
			func_1326(1);
			gameplay::clear_bit(&(Global_2494149.f_4446), 0);
		}
	}
}

void func_702(var uParam0, int iParam1)//Position - 0x6FA3E
{
	*uParam0 = iParam1;
}

void func_703()//Position - 0x6FA4B
{
	Global_2454003 = 1;
}

int func_704(int iParam0)//Position - 0x6FA58
{
	if (iParam0 != func_45())
	{
		if (func_1644(iParam0, 1, 1))
		{
			if (Global_2421621[iParam0 /*358*/].f_312.f_1 != -1)
			{
				return func_53(Global_2421621[iParam0 /*358*/].f_312.f_1) == 2;
			}
		}
	}
	return false;
}

int func_705(int iParam0)//Position - 0x6FA9E
{
	return func_257(iParam0, 19);
}

int func_706(int iParam0)//Position - 0x6FAAE
{
	int iVar0;
	
	iVar0 = iParam0;
	if (iVar0 != -1)
	{
		return func_257(iParam0, 9);
	}
	return false;
}

bool func_707(int iParam0, int iParam1)//Position - 0x6FACC
{
	if (Global_1618089[iParam0 /*390*/].f_11.f_32 != -1 || (iParam1 && Global_1618089[iParam0 /*390*/].f_11.f_31 != -1))
	{
		return true;
	}
	return false;
}

int func_708(int iParam0, char* sParam1, char* sParam2, int iParam3, int iParam4, char* sParam5, int iParam6)//Position - 0x6FB07
{
	struct<76> Var0;
	
	Var0.f_3 = -1;
	Var0.f_4 = -1;
	Var0.f_5 = -1;
	Var0.f_6 = -1;
	Var0.f_7 = -1082130432;
	Var0.f_69 = 1;
	Var0.f_70 = 2;
	Var0.f_75 = -1;
	func_715(iParam0, &Var0, -1, sParam1, sParam5);
	StringCopy(&(Var0.f_23), sParam2, 64);
	Var0.f_69 = iParam3;
	Var0.f_6 = iParam4;
	Var0.f_70 = iParam6;
	return func_709(&Var0);
}

bool func_709(var uParam0)//Position - 0x6FB73
{
	int iVar0;
	
	if (uParam0->f_1 == 1)
	{
		if (Global_2433082.f_2505)
		{
			return false;
		}
	}
	func_714(uParam0, uParam0->f_16);
	func_712(uParam0);
	if (func_711(uParam0->f_1))
	{
		if (Global_2433082.f_2199[0 /*76*/].f_2 == 0)
		{
			Global_2433082.f_2199[0 /*76*/] = { *uParam0 };
			return true;
		}
		if (((Global_2433082.f_2199[0 /*76*/].f_1 == 13 || Global_2433082.f_2199[0 /*76*/].f_1 == 52) || Global_2433082.f_2199[0 /*76*/].f_1 == 53) || Global_2433082.f_2199[0 /*76*/].f_1 == 57)
		{
			Global_2433082.f_2199[0 /*76*/].f_2 = 5;
		}
		iVar0 = 2;
		while (iVar0 >= 1)
		{
			Global_2433082.f_2199[iVar0 + 1 /*76*/] = { Global_2433082.f_2199[iVar0 /*76*/] };
			iVar0 = (iVar0 + -1);
		}
		Global_2433082.f_2199[1 /*76*/] = { *uParam0 };
		return true;
	}
	iVar0 = 0;
	while (iVar0 < 4)
	{
		if (Global_2433082.f_2199[iVar0 /*76*/].f_2 == 0)
		{
			Global_2433082.f_2199[iVar0 /*76*/] = { *uParam0 };
			return true;
		}
		else
		{
			if (uParam0->f_1 == 1)
			{
				gameplay::set_bit(&(Global_2433082.f_2199[iVar0 /*76*/].f_67), 1);
				Global_2433082.f_2199[iVar0 /*76*/].f_2 = 5;
			}
			if (uParam0->f_1 == 85)
			{
				if (func_710(Global_2433082.f_2199[iVar0 /*76*/].f_1))
				{
					Global_2433082.f_2199[iVar0 /*76*/].f_2 = 5;
					gameplay::set_bit(&(Global_2433082.f_2199[iVar0 /*76*/].f_67), 0);
				}
			}
		}
		iVar0++;
	}
	return false;
}

bool func_710(int iParam0)//Position - 0x6FD19
{
	switch (iParam0)
	{
		case 87:
		case 86:
		case 90:
		case 91:
		case 85:
		case 92:
		case 93:
		case 94:
		case 95:
		case 96:
		case 97:
		case 98:
		case 88:
		case 99:
		case 100:
		case 101:
		case 102:
		case 89:
			return true;
		
		default:
	}
	return false;
}

bool func_711(int iParam0)//Position - 0x6FD99
{
	if (((((((((((((((((((((iParam0 == 3 || iParam0 == 4) || iParam0 == 5) || iParam0 == 6) || iParam0 == 11) || iParam0 == 12) || iParam0 == 28) || iParam0 == 29) || iParam0 == 30) || iParam0 == 24) || iParam0 == 32) || iParam0 == 31) || iParam0 == 26) || iParam0 == 25) || iParam0 == 55) || iParam0 == 7) || iParam0 == 8) || iParam0 == 9) || iParam0 == 10) || iParam0 == 103) || iParam0 == 99) || iParam0 == 102)
	{
		return true;
	}
	return false;
}

void func_712(var uParam0)//Position - 0x6FE90
{
	if (func_713(uParam0->f_1))
	{
		uParam0->f_70 = func_1309();
	}
}

bool func_713(int iParam0)//Position - 0x6FEAB
{
	switch (iParam0)
	{
		case 62:
		case 63:
		case 64:
		case 65:
		case 66:
		case 67:
		case 68:
		case 69:
		case 70:
		case 71:
		case 72:
		case 73:
		case 74:
		case 75:
		case 76:
		case 77:
		case 78:
		case 79:
		case 80:
		case 81:
		case 82:
			return true;
		
		default:
	}
	return false;
}

void func_714(var uParam0, int iParam1)//Position - 0x6FF3D
{
	if (func_713(uParam0->f_1))
	{
		uParam0->f_71 = 1;
	}
	if (iParam1 == func_45())
	{
		return;
	}
	if (func_710(uParam0->f_1))
	{
		if (uParam0->f_69 == 1)
		{
			uParam0->f_71 = func_584(iParam1, -2, 0, 0);
		}
	}
}

void func_715(var uParam0, var uParam1, int iParam2, char* sParam3, char* sParam4)//Position - 0x6FF83
{
	uParam1->f_16 = func_45();
	uParam1->f_17 = func_45();
	uParam1->f_18 = func_45();
	uParam1->f_1 = uParam0;
	uParam1->f_2 = 1;
	StringCopy(&(uParam1->f_19), sParam4, 16);
	StringCopy(&(uParam1->f_8), sParam3, 32);
	uParam1->f_3 = iParam2;
	uParam1->f_69 = 1;
	uParam1->f_72 = 1;
	uParam1->f_73 = 1;
	uParam1->f_71 = 0;
	StringCopy(&(uParam1->f_23), "", 64);
	StringCopy(&(uParam1->f_39), "", 64);
}

var func_716()//Position - 0x6FFEC
{
	return Local_653.f_1.f_17;
}

int func_717(char* sParam0, int iParam1)//Position - 0x6FFFB
{
	int iVar0;
	
	iVar0 = -1;
	ui::_set_notification_text_entry(sParam0);
	iVar0 = ui::_draw_notification(0, 1);
	func_578(0, sParam0, 1, 0, 0, 0, 0, 0, 1, 0, 0, 0);
	return iVar0;
}

int func_718()//Position - 0x7002C
{
	return gameplay::is_bit_set(Global_1574332.f_1, 25);
}

void func_719()//Position - 0x70040
{
	int iVar0;
	int iVar1;
	char* sVar2;
	
	if (iLocal_3739 == -1)
	{
		return;
	}
	if (func_1371(0, 0))
	{
		return;
	}
	if (func_1555() == 8)
	{
		return;
	}
	if (func_1566() == iLocal_3739)
	{
		if (!func_5(5))
		{
			return;
		}
	}
	iVar0 = (Global_262145.f_9718 - func_3(&(Local_653.f_1.f_2), 0, 0));
	if (iVar0 < 0)
	{
		iVar0 = 0;
	}
	if ((func_1555() != 0 && func_1555() != 1) && iLocal_3735 != -1)
	{
		if (iLocal_3735 > 60000)
		{
			iVar1 = 1;
		}
		else
		{
			iVar1 = 6;
		}
		func_724(iLocal_3735, iVar1, func_728());
	}
	else
	{
		if (iVar0 > 60000)
		{
			iVar1 = 1;
		}
		else
		{
			iVar1 = 6;
		}
		func_724(iVar0, iVar1, func_728());
	}
	if (func_1566() != iLocal_3739)
	{
		if ((Global_262145.f_9743 - iLocal_4932) > 1)
		{
			iVar1 = 1;
		}
		else
		{
			iVar1 = 6;
		}
	}
	else
	{
		iVar1 = 1;
	}
	func_721((Global_262145.f_9743 - iLocal_4932), "AMHB_LMKSLEFT", -1, iVar1, 4, 0, sVar2, iVar1, 0, 0, 0, 0);
	func_720(iVar0);
}

void func_720(int iParam0)//Position - 0x7014E
{
	if (IntToFloat(iParam0) < gameplay::get_frame_time())
	{
		if (gameplay::is_bit_set(Global_2494149.f_4608, 0))
		{
			if (!gameplay::is_string_null_or_empty(&(Global_2494149.f_4610)))
			{
				audio::set_radio_to_station_name(&(Global_2494149.f_4610));
			}
			audio::set_user_radio_control_enabled(1);
			audio::trigger_music_event("FM_COUNTDOWN_30S_FIRA");
			audio::stop_audio_scene("GTAO_FM_Events_30_Sec_Countdown_Scene");
			audio::set_audio_flag("DisableFlightMusic", 0);
			audio::set_audio_flag("WantedMusicDisabled", 0);
			audio::set_audio_flag("AllowScoreAndRadio", 0);
			if (Global_2494149.f_4618 > -1)
			{
				audio::release_sound_id(Global_2494149.f_4618);
				Global_2494149.f_4618 = -1;
			}
			Global_2494149.f_4608 = 0;
		}
	}
	else if (iParam0 < 30000)
	{
		if (gameplay::is_bit_set(Global_2494149.f_4608, 0))
		{
			if (gameplay::is_bit_set(Global_2494149.f_4608, 4))
			{
				if (!gameplay::is_bit_set(Global_2494149.f_4608, 2))
				{
					if (audio::_0x109697E2FFBAC8A1())
					{
						if ((!gameplay::are_strings_equal(audio::get_radio_station_name(audio::get_player_radio_station_index()), "OFF") && ped::is_ped_in_any_vehicle(player::player_ped_id(), 0)) && !gameplay::is_string_null_or_empty(&(Global_2494149.f_4610)))
						{
							StringCopy(&(Global_2494149.f_4610), "", 32);
							audio::trigger_music_event("FM_COUNTDOWN_30S_FIRA");
							audio::stop_audio_scene("GTAO_FM_Events_30_Sec_Countdown_Scene");
							audio::set_audio_flag("DisableFlightMusic", 0);
							audio::set_audio_flag("WantedMusicDisabled", 0);
							audio::set_audio_flag("AllowScoreAndRadio", 0);
							audio::set_user_radio_control_enabled(1);
							gameplay::set_bit(&(Global_2494149.f_4608), 2);
						}
					}
				}
				else if (ped::is_ped_in_any_vehicle(player::player_ped_id(), 0) && gameplay::is_bit_set(Global_2494149.f_4608, 5))
				{
					audio::set_radio_to_station_name("OFF");
				}
			}
			else if (!gameplay::is_bit_set(Global_2494149.f_4608, 1))
			{
				if (iParam0 < 10000)
				{
					audio::trigger_music_event("FM_COUNTDOWN_10S");
				}
				else if (iParam0 < 20000)
				{
					audio::trigger_music_event("FM_COUNTDOWN_20S");
				}
				else
				{
					audio::trigger_music_event("FM_COUNTDOWN_30S");
				}
				audio::start_audio_scene("GTAO_FM_Events_30_Sec_Countdown_Scene");
				gameplay::set_bit(&(Global_2494149.f_4608), 1);
			}
			else if (!gameplay::is_bit_set(Global_2494149.f_4608, 4))
			{
				if (iParam0 < 27500)
				{
					if (audio::get_player_radio_station_genre() != 0)
					{
						if (ped::is_ped_in_any_vehicle(player::player_ped_id(), 0) && !audio::_0x0626A247D2405330())
						{
							StringCopy(&(Global_2494149.f_4610), audio::get_player_radio_station_name(), 32);
							audio::set_radio_to_station_name("OFF");
						}
						audio::set_user_radio_control_enabled(1);
						gameplay::set_bit(&(Global_2494149.f_4608), 4);
					}
				}
			}
			if (iParam0 < 10000)
			{
				if (!gameplay::is_bit_set(Global_2494149.f_4608, 3))
				{
					Global_2494149.f_4618 = audio::get_sound_id();
					audio::play_sound_frontend(Global_2494149.f_4618, "10S", "MP_MISSION_COUNTDOWN_SOUNDSET", 0);
					gameplay::set_bit(&(Global_2494149.f_4608), 3);
				}
			}
		}
		else if (iParam0 > 10000)
		{
			if (!gameplay::is_bit_set(Global_2494149.f_4608, 0))
			{
				Global_2494149.f_4608 = 0;
				Global_2494149.f_4618 = -1;
				audio::prepare_music_event("FM_COUNTDOWN_30S_KILL");
				audio::set_user_radio_control_enabled(0);
				audio::trigger_music_event("FM_PRE_COUNTDOWN_30S");
				audio::set_audio_flag("DisableFlightMusic", 1);
				audio::set_audio_flag("WantedMusicDisabled", 1);
				audio::set_audio_flag("AllowScoreAndRadio", 1);
				gameplay::set_bit(&(Global_2494149.f_4608), 0);
				if (!ped::is_ped_in_any_vehicle(player::player_ped_id(), 0) || gameplay::is_bit_set(Global_2494149.f_4608, 2))
				{
					gameplay::set_bit(&(Global_2494149.f_4608), 2);
					gameplay::set_bit(&(Global_2494149.f_4608), 5);
				}
				else
				{
					gameplay::clear_bit(&(Global_2494149.f_4608), 5);
					gameplay::clear_bit(&(Global_2494149.f_4608), 2);
				}
			}
		}
	}
	else if (iParam0 < 40000 && iParam0 > 30000)
	{
		if (!gameplay::is_bit_set(Global_2494149.f_4608, 0))
		{
			Global_2494149.f_4608 = 0;
			Global_2494149.f_4618 = -1;
			audio::prepare_music_event("FM_COUNTDOWN_30S_KILL");
			audio::set_user_radio_control_enabled(0);
			audio::trigger_music_event("FM_PRE_COUNTDOWN_30S");
			audio::set_audio_flag("DisableFlightMusic", 1);
			audio::set_audio_flag("WantedMusicDisabled", 1);
			audio::set_audio_flag("AllowScoreAndRadio", 1);
			gameplay::set_bit(&(Global_2494149.f_4608), 0);
			if (!ped::is_ped_in_any_vehicle(player::player_ped_id(), 0))
			{
				gameplay::set_bit(&(Global_2494149.f_4608), 2);
				gameplay::set_bit(&(Global_2494149.f_4608), 5);
			}
			else
			{
				gameplay::clear_bit(&(Global_2494149.f_4608), 2);
				gameplay::clear_bit(&(Global_2494149.f_4608), 5);
			}
		}
	}
}

void func_721(int iParam0, char* sParam1, int iParam2, int iParam3, int iParam4, int iParam5, char* sParam6, int iParam7, int iParam8, int iParam9, int iParam10, int iParam11)//Position - 0x7054F
{
	int iVar0;
	int iVar1;
	
	if (func_645(sParam6))
	{
		sParam6 = "NUMBER";
	}
	iVar0 = -1;
	iVar1 = 0;
	while (iVar1 <= 9)
	{
		if (iVar0 == -1)
		{
			if (func_723(3, iVar1) == 0)
			{
				iVar0 = iVar1;
			}
		}
		iVar1++;
	}
	if (iVar0 > -1)
	{
		Global_1354290.f_1 = 1;
		func_722(3, iVar0);
		Global_1354290.f_2454[iVar0] = iParam0;
		StringCopy(&(Global_1354290.f_2454.f_11[iVar0 /*16*/]), sParam1, 64);
		Global_1354290.f_2454.f_183[iVar0] = iParam3;
		Global_1354290.f_2454.f_172[iVar0] = iParam2;
		Global_1354290.f_2454.f_205[iVar0] = iParam4;
		Global_1354290.f_2454.f_216[iVar0] = iParam5;
		StringCopy(&(Global_1354290.f_2454.f_259[iVar0 /*16*/]), sParam6, 64);
		Global_1354290.f_2454.f_420[iVar0] = iParam7;
		Global_1354290.f_2454.f_453[iVar0] = iParam8;
		Global_1354290.f_2454.f_431[iVar0] = iParam9;
		Global_1354290.f_2454.f_442[iVar0] = iParam10;
		Global_1354290.f_2454.f_464[iVar0] = iParam11;
	}
}

void func_722(int iParam0, int iParam1)//Position - 0x70662
{
	gameplay::set_bit(&(Global_1354290.f_5139[iParam0]), iParam1);
}

int func_723(int iParam0, int iParam1)//Position - 0x7067B
{
	return gameplay::is_bit_set(Global_1354290.f_5139[iParam0], iParam1);
}

void func_724(int iParam0, int iParam1, char* sParam2)//Position - 0x70694
{
	char* sVar0;
	
	if (func_725(0) == 0)
	{
		return;
	}
	sVar0 = "HUD_COUNTDOWN";
	if (!func_645(sParam2))
	{
		sVar0 = sParam2;
	}
	func_1323(iParam0, sVar0, 0, 0, -1, 0, 3, 0, iParam1, 0, 0, 0, iParam1, 0, 0, 0, 0);
}

bool func_725(int iParam0)//Position - 0x706D6
{
	if (func_727())
	{
		return false;
	}
	if (func_726())
	{
		return false;
	}
	if (!iParam0)
	{
		if (func_1644(player::player_id(), 1, 1) == 0)
		{
			return false;
		}
	}
	return true;
}

int func_726()//Position - 0x7070D
{
	return Global_1589933[player::player_id() /*601*/].f_187 != 0;
}

int func_727()//Position - 0x70724
{
	return gameplay::is_bit_set(Global_2359301, 12);
}

char* func_728()//Position - 0x70736
{
	return "HUD_COUNTDOWN";
	switch (func_730(player::player_id()))
	{
		case 131:
			return "AET_HOT_TARG";
		
		case 132:
			return "AET_CHK_COLL";
		
		case 133:
			switch (func_729())
			{
				case 0:
					return "AET_CHALL_LJ";
				
				case 1:
					return "AET_CHALL_LS";
				
				case 2:
					return "AET_CHALL_HS";
				
				case 3:
					return "AET_CHALL_LST";
				
				case 4:
					return "AET_CHALL_LW";
				
				case 5:
					return "AET_CHALL_NC";
				
				case 6:
					return "AET_CHALL_LP";
				
				case 7:
					return "AET_CHALL_VS";
				
				case 8:
					return "AET_CHALL_NM";
				
				case 9:
					return "AET_CHALL_RD";
				
				case 10:
					return "AET_CHALL_LF";
				
				case 11:
					return "AET_CHALL_LFL";
				
				case 12:
					return "AET_CHALL_LFI";
				
				case 13:
					return "AET_CHALL_LB";
				
				case 14:
					return "AET_CHALL_MB";
				
				case 15:
					return "AET_CHALL_HSH";
				
				case 16:
					return "AET_CHALL_DB";
				
				case 17:
					return "AET_CHALL_ML";
				
				case 18:
					return "AET_CHALL_LSN";
				
				default:
			}
			break;
		
		case 136:
			return "AET_PENNED";
		
		case 138:
			return "AET_PARCEL";
		
		case 139:
			return "AET_PROPERTY";
		
		case 140:
			return "AET_DDROP";
		
		case 141:
			return "AET_KCASTLE";
		
		case 144:
			return "AET_BLAST";
		
		case 129:
			return "AET_UWARF";
		
		case 146:
			return "AET_BEAST";
	}
	return "";
}

int func_729()//Position - 0x708FF
{
	if (func_730(player::player_id()) == 133)
	{
		return Global_2494149.f_4692;
	}
	return -1;
}

int func_730(int iParam0)//Position - 0x70922
{
	int iVar0;
	
	iVar0 = iParam0;
	if (iVar0 != -1)
	{
		return Global_1618089[iVar0 /*390*/];
	}
	return -1;
}

bool func_731()//Position - 0x70941
{
	if (entity::is_entity_on_screen(vLocal_3562[func_40() /*3*/].f_2))
	{
		if (func_734(vLocal_3562[func_40() /*3*/].f_2))
		{
			if (cam::is_sphere_visible(entity::get_entity_coords(vLocal_3562[func_40() /*3*/].f_2, 1), 1f))
			{
				if (entity::has_entity_clear_los_to_entity(player::player_ped_id(), vLocal_3562[func_40() /*3*/].f_2, 126))
				{
					if (func_732(vLocal_3562[func_40() /*3*/].f_2, player::player_ped_id(), func_733(), 1))
					{
						return true;
					}
				}
			}
		}
	}
	return false;
}

int func_732(int iParam0, int iParam1, float fParam2, int iParam3)//Position - 0x709CC
{
	return system::vdist2(entity::get_entity_coords(iParam0, iParam3), entity::get_entity_coords(iParam1, iParam3)) <= (fParam2 * fParam2);
}

float func_733()//Position - 0x709EE
{
	if (ped::is_ped_in_any_vehicle(vLocal_3562[func_40() /*3*/].f_2, 0))
	{
		return 20f;
	}
	return 50f;
}

bool func_734(int iParam0)//Position - 0x70A16
{
	int iVar0;
	float fVar1;
	float fVar2;
	vector3 vVar3;
	
	iVar0 = ped::get_ped_bone_index(iParam0, 23553);
	if (iVar0 != -1)
	{
		vVar3 = { entity::get_world_position_of_entity_bone(iParam0, iVar0) };
		graphics::_world3d_to_screen2d(vVar3, &fVar1, &fVar2);
		if (((fVar1 > 0.2f && fVar1 < 0.8f) && fVar2 > 0.2f) && fVar2 < 0.8f)
		{
			return true;
		}
	}
	return false;
}

bool func_735()//Position - 0x70A7F
{
	if (Global_16781)
	{
		return true;
	}
	return false;
}

int func_736(var uParam0)//Position - 0x70A95
{
	int iVar0;
	
	iVar0 = uParam0;
	if (ui::does_blip_exist(Global_2414704[iVar0]))
	{
		return gameplay::is_bit_set(Global_2414704.f_367, iVar0);
	}
	return false;
}

bool func_737()//Position - 0x70AC1
{
	int iVar0;
	int iVar1;
	float fVar2;
	float fVar3;
	vector3 vVar4;
	vector3 vVar7;
	int iVar10;
	var uVar11;
	var uVar14;
	vector3 vVar17;
	vector3 vVar20;
	vector3 vVar23;
	var uVar26;
	int iVar27;
	
	switch (func_1248(network::participant_id_to_int()))
	{
		case 0:
			if (!func_383())
			{
				if (Global_1312412.f_6 == 1)
				{
					if (func_1644(player::player_id(), 1, 1))
					{
						func_1244();
					}
				}
				if (ped::is_ped_injured(player::player_ped_id()) || entity::is_entity_dead(player::player_ped_id(), 0))
				{
					network::network_resurrect_local_player(entity::get_entity_coords(player::player_ped_id(), 0), 0f, 0, func_1242(player::player_id(), 1), 1);
				}
				unk_0x32888337579A5970();
				graphics::_stop_all_screen_effects();
				func_1241();
				func_387(1);
				func_551();
				func_1239(1);
				if (gameplay::is_bit_set(iLocal_3730, player::player_id()))
				{
					if (!func_726())
					{
						Global_1573269 = { entity::get_entity_coords(player::player_ped_id(), 0) };
					}
				}
				if (func_1238())
				{
					func_1237();
					Global_52999 = 0;
				}
				if (network::network_is_player_in_mp_cutscene(player::player_id()))
				{
					cutscene::stop_cutscene_immediately();
					unk1::_0x81CBAE94390F9F89();
					func_528(0, 1, 1, 0);
				}
				if (cam::is_gameplay_hint_active() || cam::_0xBF72910D0F26F025())
				{
					cam::stop_gameplay_hint(1);
					cam::_0x247ACBC4ABBC9D1C(1);
				}
				if (func_1236() || func_1235(player::player_id()))
				{
					func_1233(1, 0);
					func_541();
					func_542();
				}
				streaming::request_anim_dict("move_m@GEneric");
				streaming::request_anim_dict("ANIM@MP_FM_EVENT@INTRO");
				if (streaming::has_anim_dict_loaded("move_m@GEneric") && streaming::has_anim_dict_loaded("ANIM@MP_FM_EVENT@INTRO"))
				{
					ui::clear_help(1);
					func_1232(4);
				}
			}
			else
			{
				func_1239(1);
				if (gameplay::is_bit_set(iLocal_3730, player::player_id()))
				{
					Global_1573269 = { entity::get_entity_coords(player::player_ped_id(), 0) };
				}
				return true;
			}
			break;
		
		case 4:
			if (!func_383())
			{
				ui::display_hud(false);
				ui::display_radar(false);
				if (entity::does_entity_exist(player::player_ped_id()) && !entity::is_entity_dead(player::player_ped_id(), 0))
				{
					fVar3 = entity::get_entity_speed(player::player_ped_id());
				}
				func_549(entity::get_entity_coords(player::player_ped_id(), 1), 1079404134);
				iVar1 = func_547();
				iVar0 = ((iVar1 + 36 - 4) % 72);
				vVar4 = { vLocal_433[iVar1 /*3*/] };
				gameplay::get_ground_z_for_3d_coord(vVar4, &(vVar4.f_2), 0);
				fVar2 = func_546(vLocal_216[iVar1 /*3*/], vLocal_433[iVar1 /*3*/]);
				vVar23 = { entity::get_entity_coords(player::player_ped_id(), 0) };
				vVar17 = { entity::get_entity_forward_vector(player::player_ped_id()) };
				vVar20 = { vVar23 + vVar17 };
				iVar27 = worldprobe::_cast_3d_ray_point_to_point(vVar23, vVar20, 0.2f, 279, player::player_ped_id(), 7);
				worldprobe::_get_raycast_result(iVar27, &iVar10, &uVar11, &uVar14, &uVar26);
				if (iVar10 == 0 && !ped::is_ped_in_any_vehicle(player::player_ped_id(), 1))
				{
					entity::set_entity_coords(player::player_ped_id(), vVar4, 1, false, 0, 1);
					entity::set_entity_heading(player::player_ped_id(), fVar2);
					if (gameplay::absf(system::vmag(entity::get_entity_velocity(player::player_ped_id()))) >= 2.5f)
					{
						fVar3 = 2f;
					}
					else if (gameplay::absf(system::vmag(entity::get_entity_velocity(player::player_ped_id()))) > 0f)
					{
						fVar3 = 1f;
					}
					else
					{
						fVar3 = 0f;
					}
					if (fVar3 == 1f)
					{
						ai::task_play_anim(player::player_ped_id(), "move_m@GEneric", "wstop_l_0", 1000f, -8f, -1, 0, 0f, 0, 0, 0);
						ped::_0x2208438012482A1A(player::player_ped_id(), 0, 0);
					}
					else if (fVar3 == 2f)
					{
						ai::task_play_anim(player::player_ped_id(), "move_m@GEneric", "rstop_quick_l", 1000f, -8f, -1, 0, 0f, 0, 0, 0);
						vVar7 = { -0.85f, 1.25f, 0.4f };
						ped::_0x2208438012482A1A(player::player_ped_id(), 0, 0);
					}
					else if (fVar3 == 0f)
					{
						player::set_player_invincible(player::player_id(), 1);
						entity::freeze_entity_position(player::player_ped_id(), true);
						controls::disable_all_control_actions(2);
					}
					func_539(player::player_id(), 0, 3672064);
					if (cam::does_cam_exist(iLocal_4934))
					{
						cam::destroy_cam(iLocal_4934, 0);
					}
					if (cam::does_cam_exist(iLocal_4935))
					{
						cam::destroy_cam(iLocal_4935, 0);
					}
					iLocal_4935 = cam::create_cam("DEFAULT_SCRIPTED_CAMERA", false);
					iLocal_4934 = cam::create_cam("DEFAULT_SCRIPTED_CAMERA", false);
					if (func_537(player::player_ped_id()))
					{
						cam::set_cam_coord(iLocal_4934, vLocal_216[iVar0 /*3*/] + Vector(0.1f, 0f, 0f));
						cam::point_cam_at_entity(iLocal_4934, player::player_ped_id(), 0f, 0f, 0.125f, 1);
					}
					else
					{
						cam::set_cam_coord(iLocal_4934, vLocal_216[iVar0 /*3*/]);
						cam::point_cam_at_entity(iLocal_4934, player::player_ped_id(), 0f, 0f, 0.125f, 1);
					}
					cam::set_cam_fov(iLocal_4934, 20f);
					cam::set_cam_active(iLocal_4934, true);
					if (func_537(player::player_ped_id()))
					{
						cam::set_cam_coord(iLocal_4935, vLocal_216[iVar0 /*3*/] + Vector(0.1f, 0f, 0f));
						cam::point_cam_at_entity(iLocal_4934, player::player_ped_id(), 0f, 0f, 0.125f, 1);
					}
					else
					{
						cam::set_cam_coord(iLocal_4935, vLocal_216[iVar0 /*3*/]);
						cam::point_cam_at_entity(iLocal_4934, player::player_ped_id(), 0f, 0f, 0.125f, 1);
					}
					cam::point_cam_at_coord(iLocal_4935, entity::get_offset_from_entity_in_world_coords(player::player_ped_id(), vVar7));
					cam::set_cam_fov(iLocal_4935, 20f);
					cam::set_cam_active_with_interp(iLocal_4935, iLocal_4934, 1500, 3, 3);
					cam::shake_cam(iLocal_4935, "HAND_SHAKE", 0.3f);
					cam::render_script_cams(true, false, 3000, 1, 0, 0);
				}
				else if (ped::is_ped_in_any_vehicle(player::player_ped_id(), 1))
				{
					ai::clear_ped_tasks(player::player_ped_id());
					func_539(player::player_id(), 0, 3672064);
				}
				if (!graphics::_get_screen_effect_is_active("BeastLaunch"))
				{
					graphics::_start_screen_effect("BeastLaunch", 0, 0);
				}
				func_1231(func_640(player::player_id()), 0f, 400f, 1, 200f, 0, 1, 1115815936, 1, 0);
				func_1232(3);
			}
			break;
		
		case 3:
			if (!iLocal_3750)
			{
				iLocal_3750 = 1;
				audio::play_sound_frontend(-1, "Hit_1", "LONG_PLAYER_SWITCH_SOUNDS", 0);
			}
			if (func_57(&uLocal_3751, 3000, 0))
			{
				if (!iLocal_3749)
				{
					iLocal_3749 = 1;
					graphics::_set_frozen_rendering_disabled(0);
					audio::start_audio_scene("FM_Event_Beast_Screen_Freeze_Scene");
					audio::play_sound_frontend(-1, "Frontend_Beast_Freeze_Screen", "FM_Events_Sasquatch_Sounds", 0);
					iLocal_3747 = audio::get_sound_id();
					audio::play_sound(iLocal_3747, "Frontend_Beast_Frozen_Screen_Loop", "FM_Events_Sasquatch_Sounds", 0, 0, 0);
				}
				if (func_784(10, 1, 0, 0, 0, 0, 0, 0, 1, 3000, 1, 1, 0, 0, 0, 0) && iLocal_3749)
				{
					func_783();
					func_1232(1);
					if (!graphics::_get_screen_effect_is_active("BeastTransition"))
					{
						graphics::_start_screen_effect("BeastTransition", 0, 0);
					}
					func_9(&uLocal_3751);
					iLocal_3750 = 0;
					iLocal_3749 = 0;
				}
			}
			break;
		
		case 1:
			if (!func_383())
			{
				if (func_460())
				{
					if (func_256(player::player_id()))
					{
						iLocal_4937 = func_459();
						func_461(0, 0, 0);
						func_408(0, 1, 0);
						func_405(0);
					}
				}
				if (func_460())
				{
					func_748(1, -1, -1, 1);
				}
				else
				{
					func_748(0, -1, 7, 1);
				}
				if (func_375(386, -1, -1) == 0)
				{
					func_747();
				}
				else
				{
					func_746();
				}
				func_745();
				ped::_0x4668D80430D6C299(player::player_ped_id());
				func_1232(5);
				func_9(&Global_2452439);
			}
			break;
		
		case 5:
			if (!audio::has_sound_finished(iLocal_3747) && iLocal_3747 != -1)
			{
				audio::stop_sound(iLocal_3747);
				iLocal_3747 = -1;
			}
			if (!iLocal_3750)
			{
				iLocal_3750 = 1;
				audio::play_sound_frontend(-1, "Frontend_Beast_Fade_Screen", "FM_Events_Sasquatch_Sounds", 0);
			}
			if (func_57(&uLocal_3751, 1500, 0))
			{
				graphics::draw_rect(0.5f, 0.5f, 3f, 3f, 255, 255, 255, iLocal_3744, 0);
				if (!iLocal_3748)
				{
					iLocal_3744 += 30;
				}
				if (iLocal_3744 >= 255)
				{
					iLocal_3744 = 255;
					iLocal_3748 = 1;
					iLocal_3750 = 0;
					func_744();
					func_743(entity::get_entity_coords(player::player_ped_id(), 1));
					entity::freeze_entity_position(player::player_ped_id(), false);
					if (audio::is_audio_scene_active("FM_Event_Beast_Screen_Freeze_Scene"))
					{
						audio::stop_audio_scene("FM_Event_Beast_Screen_Freeze_Scene");
					}
					audio::start_audio_scene("FM_Event_Beast_Transform_Sequence_Scene");
					func_1232(6);
				}
			}
			break;
		
		case 6:
			graphics::draw_rect(0.5f, 0.5f, 3f, 3f, 255, 255, 255, iLocal_3744, 0);
			if (func_383())
			{
				if (entity::does_entity_exist(player::player_ped_id()))
				{
					if (!ped::is_ped_using_action_mode(player::player_ped_id()))
					{
						ped::set_ped_using_action_mode(player::player_ped_id(), true, 10000, 0);
					}
					weapon::give_weapon_to_ped(player::player_ped_id(), joaat("weapon_unarmed"), 0, true, true);
					iLocal_3746 = network::network_create_synchronised_scene(entity::get_offset_from_entity_in_world_coords(player::player_ped_id(), 0.05f, 0.5f, -1.11f), 0f, 0f, (entity::get_entity_heading(player::player_ped_id()) + 90f), 2, false, false, 1065353216, 0, 1065353216);
					network::_0xCF8BD3B0BD6D42D7(iLocal_3746, "ANIM@MP_FM_EVENT@INTRO", "BEAST_TRANSFORM_CAM");
					ai::task_play_anim(player::player_ped_id(), "ANIM@MP_FM_EVENT@INTRO", "BEAST_TRANSFORM", 1000f, -2f, -1, 0, 0f, 0, 0, 0);
					ped::_0x2208438012482A1A(player::player_ped_id(), 0, 0);
					if (graphics::_get_screen_effect_is_active("BeastLaunch"))
					{
						graphics::_stop_screen_effect("BeastLaunch");
					}
					if (!graphics::_get_screen_effect_is_active("BeastIntroScene"))
					{
						graphics::_start_screen_effect("BeastIntroScene", 0, 0);
					}
					cam::set_gameplay_cam_relative_heading(0f);
					cam::set_gameplay_cam_relative_pitch(0f, 1065353216);
					cam::render_script_cams(false, false, 3000, 1, 0, 0);
					network::_0xC9B43A33D09CADA7(iLocal_3746);
					network::network_start_synchronised_scene(iLocal_3746);
					graphics::_set_frozen_rendering_disabled(1);
					func_1308(58, "RESPAWN_BEAST", 0, 1, -1, 2);
					func_1232(7);
					func_9(&Global_2452439);
				}
			}
			break;
		
		case 7:
			graphics::draw_rect(0.5f, 0.5f, 3f, 3f, 255, 255, 255, iLocal_3744, 0);
			if (iLocal_3748)
			{
				iLocal_3744 = (iLocal_3744 - 30);
			}
			if (iLocal_3744 < 0)
			{
				iLocal_3744 = 0;
				iLocal_3748 = 0;
				audio::play_sound_frontend(-1, "Frontend_Beast_Text_Hit", "FM_Events_Sasquatch_Sounds", 0);
				func_1232(8);
				func_9(&uLocal_3751);
			}
			break;
		
		case 8:
			if (func_57(&uLocal_3751, 5300, 0))
			{
				func_742(58);
				if (func_57(&uLocal_3751, 5800, 0))
				{
					player::set_player_invincible(player::player_id(), 0);
					controls::enable_all_control_actions(2);
					func_539(player::player_id(), 1, 8388608);
					if (graphics::_get_screen_effect_is_active("BeastIntroScene"))
					{
						graphics::_stop_screen_effect("BeastIntroScene");
					}
					if (graphics::_get_screen_effect_is_active("BeastTransition"))
					{
						graphics::_stop_screen_effect("BeastTransition");
					}
					if (graphics::_get_screen_effect_is_active("BeastLaunch"))
					{
						graphics::_stop_screen_effect("BeastLaunch");
					}
					if (ped::is_synchronized_scene_running(iLocal_3746))
					{
						network::network_stop_synchronised_scene(iLocal_3746);
						iLocal_3746 = -1;
					}
					if (entity::is_entity_playing_anim(player::player_ped_id(), "ANIM@MP_FM_EVENT@INTRO", "BEAST_TRANSFORM", 3))
					{
						entity::stop_entity_anim(player::player_ped_id(), "BEAST_TRANSFORM", "ANIM@MP_FM_EVENT@INTRO", -8f);
						streaming::remove_anim_dict("ANIM@MP_FM_EVENT@INTRO");
					}
					else
					{
						streaming::remove_anim_dict("ANIM@MP_FM_EVENT@INTRO");
					}
					if (!audio::has_sound_finished(iLocal_3747))
					{
						audio::stop_sound(iLocal_3747);
						iLocal_3747 = -1;
					}
					if (func_57(&uLocal_3751, 6300, 0))
					{
						if (audio::is_audio_scene_active("FM_Event_Beast_Transform_Sequence_Scene"))
						{
							audio::stop_audio_scene("FM_Event_Beast_Transform_Sequence_Scene");
						}
						cam::set_gameplay_cam_relative_heading(0f);
						cam::set_gameplay_cam_relative_pitch(0f, 1065353216);
						cam::render_script_cams(false, false, 3000, 1, 0, 0);
						cam::destroy_all_cams(0);
						streaming::remove_anim_dict("move_m@GEneric");
						unk_0x15CFA549788D35EF();
						ui::display_hud(true);
						ui::display_radar(true);
						func_741();
						func_387(0);
						func_386();
						func_9(&uLocal_3751);
						func_385();
						func_1232(9);
						graphics::_set_frozen_rendering_disabled(1);
					}
				}
			}
			break;
		
		case 9:
			if (gameplay::is_bit_set(iLocal_3730, Local_2985[network::participant_id_to_int() /*18*/].f_1))
			{
				if (!gameplay::is_bit_set(iLocal_3732, Local_2985[network::participant_id_to_int() /*18*/].f_1))
				{
					if (cam::is_screen_faded_in())
					{
						func_740();
						func_739();
						func_1239(1);
						func_738(1);
						func_1232(10);
					}
				}
			}
			break;
		
		case 10:
			return true;
			break;
	}
	return false;
}

void func_738(int iParam0)//Position - 0x71580
{
	gameplay::set_bit(&Global_1573332, iParam0);
}

void func_739()//Position - 0x71592
{
	if (Global_2412527.f_6 == script::get_id_of_this_thread())
	{
		func_783();
	}
}

void func_740()//Position - 0x715AB
{
	struct<4> Var0;
	
	if (Global_2404994.f_477.f_1 == script::get_id_of_this_thread())
	{
		Global_2404994.f_477 = { Var0 };
	}
}

void func_741()//Position - 0x715D0
{
	Global_17290.f_7893 = 0;
}

void func_742(int iParam0)//Position - 0x715DF
{
	int iVar0;
	
	iVar0 = 0;
	while (iVar0 <= 3)
	{
		if (Global_2433082.f_2199[iVar0 /*76*/].f_1 == iParam0)
		{
			Global_2433082.f_2199[iVar0 /*76*/].f_2 = 5;
			gameplay::set_bit(&(Global_2433082.f_2199[iVar0 /*76*/].f_67), 0);
		}
		iVar0++;
	}
}

void func_743(vector3 vParam0)//Position - 0x7162B
{
	Global_2391047 = { vParam0 };
	Global_2391050 = 1;
}

void func_744()//Position - 0x71642
{
	int iVar0;
	
	iVar0 = 0;
	while (iVar0 <= 3)
	{
		if (Global_2433082.f_2199[iVar0 /*76*/].f_2 != 0)
		{
			Global_2433082.f_2199[iVar0 /*76*/].f_2 = 5;
			gameplay::set_bit(&(Global_2433082.f_2199[iVar0 /*76*/].f_67), 0);
		}
		iVar0++;
	}
}

void func_745()//Position - 0x7168D
{
	Global_2452441 = ped::get_ped_max_health(player::player_ped_id());
	func_380();
	ped::_0x687C0B594907D2E8(player::player_ped_id());
	ped::clear_all_ped_props(player::player_ped_id());
	ped::set_ped_config_flag(player::player_ped_id(), 189, true);
	ped::set_ped_config_flag(player::player_ped_id(), 407, true);
	player::set_player_melee_weapon_damage_modifier(player::player_id(), 100f, 1);
	ped::set_ped_max_health(player::player_ped_id(), Global_262145.f_9723);
	entity::set_entity_health(player::player_ped_id(), Global_262145.f_9723);
	ped::set_ped_suffers_critical_hits(player::player_ped_id(), 0);
	unk_0x711794453CFD692B(player::player_ped_id(), 1);
	unk_0x8D768602ADEF2245(player::player_id(), 500f);
	ped::set_ped_config_flag(player::player_ped_id(), 410, true);
	entity::set_entity_alpha(player::player_ped_id(), 255, false);
	player::set_player_vehicle_defense_modifier(player::player_id(), 0.5f);
	ped::set_ped_config_flag(player::player_ped_id(), 411, true);
	Global_2452438 = 0;
	func_9(&Global_2452439);
	gameplay::_0x4EBB7E87AA0DBED4(1);
	player::_0xFF300C7649724A0B(player::player_id(), 0);
	network::_0xC505036A35AFD01B(1);
	gameplay::set_bit(&(Global_2421621[player::player_id() /*358*/].f_198), 29);
	func_378(1);
}

void func_746()//Position - 0x7177F
{
	struct<5> Var0;
	
	dlc1::get_shop_ped_component(-1377342769, &Var0);
	ped::set_ped_component_variation(player::player_ped_id(), 1, Var0.f_3, Var0.f_4, 0);
	dlc1::get_shop_ped_component(1120105560, &Var0);
	ped::set_ped_component_variation(player::player_ped_id(), 11, Var0.f_3, Var0.f_4, 0);
	dlc1::get_shop_ped_component(-87148420, &Var0);
	ped::set_ped_component_variation(player::player_ped_id(), 3, Var0.f_3, Var0.f_4, 0);
	ped::set_ped_component_variation(player::player_ped_id(), 4, 4, 8, 0);
	ped::set_ped_component_variation(player::player_ped_id(), 6, 2, 0, 0);
	ped::set_ped_component_variation(player::player_ped_id(), 7, 0, 0, 0);
	ped::set_ped_component_variation(player::player_ped_id(), 8, 3, 0, 0);
	ped::set_ped_component_variation(player::player_ped_id(), 9, 0, 0, 0);
	ped::set_ped_component_variation(player::player_ped_id(), 10, 0, 0, 0);
}

void func_747()//Position - 0x7182B
{
	struct<5> Var0;
	
	dlc1::get_shop_ped_component(1662202455, &Var0);
	ped::set_ped_component_variation(player::player_ped_id(), 1, Var0.f_3, Var0.f_4, 0);
	dlc1::get_shop_ped_component(487190714, &Var0);
	ped::set_ped_component_variation(player::player_ped_id(), 11, Var0.f_3, Var0.f_4, 0);
	dlc1::get_shop_ped_component(392033364, &Var0);
	ped::set_ped_component_variation(player::player_ped_id(), 3, Var0.f_3, Var0.f_4, 0);
	ped::set_ped_component_variation(player::player_ped_id(), 4, 1, 5, 0);
	ped::set_ped_component_variation(player::player_ped_id(), 6, 0, 10, 0);
	ped::set_ped_component_variation(player::player_ped_id(), 7, 0, 0, 0);
	ped::set_ped_component_variation(player::player_ped_id(), 8, 15, 0, 0);
	ped::set_ped_component_variation(player::player_ped_id(), 9, 0, 0, 0);
	ped::set_ped_component_variation(player::player_ped_id(), 10, 0, 0, 0);
}

void func_748(int iParam0, int iParam1, int iParam2, int iParam3)//Position - 0x718D7
{
	int iVar0;
	int iVar1;
	int iVar2;
	int iVar3;
	var uVar4;
	struct<16> Var5;
	var uVar21;
	struct<2> Var22;
	
	if (iParam1 == iParam1 && iParam2 == iParam2)
	{
		iParam1 = iParam1;
		iParam2 = iParam2;
	}
	if (func_260(0))
	{
		func_365(5936, func_359(5924, -1, 0), -1);
		Global_1618089[player::player_id() /*390*/].f_11.f_23 = iParam2;
		unk_0x6BCCF9948492FD85(Global_2443860.f_3065.f_132, Global_2443860.f_3065.f_133, iParam2, Global_2494149.f_4710.f_33, func_359(5924, -1, 0));
	}
	if (!iParam0)
	{
		if (!func_71())
		{
			return;
		}
		iVar1 = func_359(5884, -1, 0);
		gameplay::clear_bit(&iVar1, 22);
		func_237(5884, iVar1, -1, 1, 0);
		gameplay::clear_bit(&(Global_2494149.f_1644), 17);
		func_782();
		unk_0x6BC0ACD0673ACEBE(func_39(), &iVar2, &iVar3);
		if (iVar2 != 0 || iVar3 != 0)
		{
			uVar4 = func_359(5924, -1, 0);
			Global_1618089[player::player_id() /*390*/].f_11.f_24 = iParam1;
			unk_0xA3C53804BDB68ED2(iParam1, uVar4);
			func_406(30);
			func_237(5937, network::_get_posix_time(), -1, 1, 0);
		}
		func_237(5887, -1, -1, 1, 0);
		func_237(5924, 0, -1, 1, 0);
		func_781();
		func_780(0);
		func_780(1);
		func_780(2);
		func_780(3);
		func_780(4);
		func_780(5);
		func_780(6);
		StringCopy(&Var5, "", 64);
		Var5 = { func_779() };
		uVar21 = func_359(5887, -1, 0);
		Var5 = { func_778(0) };
		Var5 = { func_778(1) };
		Var5 = { func_778(2) };
		Var5 = { func_778(3) };
		Var5 = { func_778(4) };
		Var5 = { func_778(5) };
		Var5 = { func_778(6) };
		uVar21 = func_359(5924, -1, 0);
		Global_2443860.f_3065.f_132 = 0;
		Global_2443860.f_3065.f_133 = 0;
		if (Global_2443860.f_3065.f_171 != -1)
		{
			Global_2443860.f_3065.f_171 = -1;
		}
	}
	Global_2494149.f_4710.f_33 = 0;
	player::set_player_health_recharge_multiplier(player::player_id(), 1f);
	unk_0xC388A0F065F5BC34(player::player_id(), 0.5f);
	Global_1759235 = 0;
	iVar0 = 0;
	while (iVar0 < 7)
	{
		Global_1618089[player::player_id() /*390*/].f_11.f_10[iVar0] = func_45();
		iVar0++;
	}
	if (func_518(player::player_id()) != -1)
	{
		func_777(iParam0);
	}
	if (func_776(player::player_id()) != -1)
	{
		func_775();
	}
	player::set_player_health_recharge_multiplier(player::player_id(), 1f);
	func_774(iParam0);
	func_773(0);
	func_772();
	func_508();
	func_754(iParam1, 0);
	func_753();
	func_752();
	func_751(func_36(1, 1));
	func_750(func_36(1, 1), 0);
	func_749(5);
	Global_2494149.f_4710.f_30 = { Var22 };
	if ((func_394("FM_BOSSINTROH") || func_394("FMBOSSINTROHC")) || func_394("FM_GB_INTRO_MC"))
	{
		ui::clear_help(1);
	}
	if (Global_2494149.f_4710.f_68 != func_45())
	{
		Global_2494149.f_4710.f_68 = func_45();
	}
	if (Global_1618089[player::player_id() /*390*/].f_11.f_289 != -1)
	{
		Global_1618089[player::player_id() /*390*/].f_11.f_289 = -1;
	}
	if (Global_1618089[player::player_id() /*390*/].f_11.f_290 != -1)
	{
		Global_1618089[player::player_id() /*390*/].f_11.f_290 = -1;
	}
	if (decorator::decor_is_registered_as_type("Player_Goon", 3))
	{
		if (decorator::decor_exist_on(player::player_ped_id(), "Player_Goon"))
		{
			decorator::decor_remove(player::player_ped_id(), "Player_Goon");
		}
	}
	if (decorator::decor_is_registered_as_type("Player_Boss", 3))
	{
		if (decorator::decor_exist_on(player::player_ped_id(), "Player_Boss"))
		{
			decorator::decor_remove(player::player_ped_id(), "Player_Boss");
		}
	}
	Global_1616657 = { Global_1618089[player::player_id() /*390*/].f_11.f_97 };
	StringCopy(&(Global_1618089[player::player_id() /*390*/].f_11.f_97), "", 64);
	if (Global_1618089[player::player_id() /*390*/].f_11 != func_45())
	{
		Global_1618089[player::player_id() /*390*/].f_11 = func_45();
	}
	if (iParam3 && Global_1618089[player::player_id() /*390*/].f_11.f_25 != func_45())
	{
		Global_1618089[player::player_id() /*390*/].f_11.f_25 = func_45();
	}
}

void func_749(int iParam0)//Position - 0x71CEC
{
	gameplay::clear_bit(&(Global_2494149.f_4710.f_25), iParam0);
}

void func_750(int iParam0, int iParam1)//Position - 0x71D03
{
	vector3 vVar0;
	
	vVar0.x = 542;
	vVar0.y = player::player_id();
	vVar0.z = iParam1;
	if (iParam1)
	{
	}
	script::trigger_script_event(1, &vVar0, 3, iParam0);
}

void func_751(int iParam0)//Position - 0x71D2D
{
	struct<2> Var0;
	
	Var0 = 475;
	Var0.f_1 = player::player_id();
	if (!iParam0 == 0)
	{
		script::trigger_script_event(1, &Var0, 2, iParam0);
	}
}

void func_752()//Position - 0x71D57
{
	Global_2494149.f_5270 = 0;
	Global_2494149.f_5270.f_3 = 0;
	Global_2494149.f_5270.f_4 = 0;
	Global_2494149.f_5270.f_2 = 0;
	Global_2494149.f_5270.f_5 = 0;
	Global_2494149.f_5270.f_1 = 0;
	Global_2494149.f_5270.f_6 = 0;
}

void func_753()//Position - 0x71DA3
{
	int iVar0;
	
	if (gameplay::is_pc_version())
	{
		unk_0x265559DA40B3F327(0);
		unk_0x6A1738B4323FE2D9(0);
		iVar0 = 0;
		while (iVar0 < 32)
		{
			unk_0x4348BFDA56023A2F(iVar0, 0);
			iVar0++;
		}
		Global_2494149.f_4710.f_24 = 0;
	}
}

void func_754(int iParam0, int iParam1)//Position - 0x71DE1
{
	int iVar0;
	int iVar1;
	struct<13> Var2;
	int iVar15;
	
	if (!ped::is_ped_injured(player::player_ped_id()))
	{
		if (func_256(player::player_id()))
		{
			if (!func_766() && !Global_2476990.f_7)
			{
				iVar0 = false;
				if (func_450())
				{
					iVar0 = true;
				}
				func_449();
				if (iVar0)
				{
					iVar1 = func_359(2034, -1, 0);
					ped::set_ped_component_variation(player::player_ped_id(), 5, func_89(player::player_ped_id(), iVar1), func_88(player::player_ped_id(), iVar1), func_87(player::player_ped_id(), iVar1));
					func_254(1);
				}
			}
		}
		if ((iParam0 == 2 || iParam0 == 1) || iParam1)
		{
			Global_2501786 = 0;
			Global_2501786.f_1 = 0;
			Global_2501786.f_24 = 0;
			iVar15 = 0;
			while (iVar15 < 8)
			{
				Global_2501786.f_2[iVar15] = 0;
				Global_2501786.f_15[iVar15] = 0;
				Global_2501786.f_27[iVar15 /*13*/] = { Var2 };
				iVar15++;
			}
			Global_2501786.f_12 = 0;
			Global_2493214 = 0;
			Global_2493215 = 0;
		}
		else if (func_260(0))
		{
			if (func_726() || network::network_is_activity_session())
			{
				Global_2501786 = func_459();
			}
		}
		func_765(0);
		func_764(0);
		func_763(0);
		func_405(0);
		if (func_756(joaat("gadget_parachute"), -1))
		{
			player::set_player_parachute_tint_index(player::player_id(), func_359(580, -1, 0));
		}
	}
	else
	{
		func_755(13);
	}
}

void func_755(int iParam0)//Position - 0x71F3B
{
	gameplay::set_bit(&(Global_2494149.f_4710.f_25), iParam0);
}

int func_756(int iParam0, int iParam1)//Position - 0x71F52
{
	int iVar0;
	int iVar1;
	int iVar2;
	
	if (func_71() == 0)
	{
		return false;
	}
	if (func_762())
	{
		return false;
	}
	iVar0 = func_761(iParam0);
	if (iVar0 != 302 && func_68(iVar0, -1))
	{
		return true;
	}
	else
	{
		return false;
	}
	iVar1 = func_759(iParam0, iParam1);
	iVar2 = func_757(iParam0);
	return gameplay::is_bit_set(iVar1, func_121(iVar2));
}

int func_757(int iParam0)//Position - 0x71FB7
{
	return func_758(iParam0);
}

int func_758(int iParam0)//Position - 0x71FC5
{
	switch (iParam0)
	{
		case joaat("weapon_unarmed"):
			return 0;
			break;
		
		case joaat("weapon_pistol"):
			return 1;
			break;
		
		case joaat("weapon_combatpistol"):
			return 2;
			break;
		
		case joaat("weapon_appistol"):
			return 3;
			break;
		
		case joaat("weapon_pistol50"):
			return 4;
			break;
		
		case joaat("weapon_smg"):
			return 5;
			break;
		
		case joaat("weapon_assaultsmg"):
			return 6;
			break;
		
		case joaat("weapon_microsmg"):
			return 7;
			break;
		
		case joaat("weapon_assaultrifle"):
			return 8;
			break;
		
		case joaat("weapon_carbinerifle"):
			return 9;
			break;
		
		case -947031628:
			return 10;
			break;
		
		case joaat("weapon_advancedrifle"):
			return 11;
			break;
		
		case joaat("weapon_mg"):
			return 12;
			break;
		
		case joaat("weapon_combatmg"):
			return 13;
			break;
		
		case -572349828:
			return 14;
			break;
		
		case joaat("weapon_stickybomb"):
			return 15;
			break;
		
		case joaat("weapon_grenade"):
			return 16;
			break;
		
		case joaat("weapon_smokegrenade"):
			return 17;
			break;
		
		case joaat("weapon_remotesniper"):
			return 18;
			break;
		
		case 392730790:
			return 19;
			break;
		
		case joaat("weapon_sniperrifle"):
			return 20;
			break;
		
		case joaat("weapon_heavysniper"):
			return 21;
			break;
		
		case joaat("weapon_pumpshotgun"):
			return 22;
			break;
		
		case joaat("weapon_bullpupshotgun"):
			return 23;
			break;
		
		case joaat("weapon_assaultshotgun"):
			return 24;
			break;
		
		case joaat("weapon_sawnoffshotgun"):
			return 25;
			break;
		
		case joaat("weapon_grenadelauncher"):
			return 26;
			break;
		
		case joaat("weapon_rpg"):
			return 27;
			break;
		
		case joaat("weapon_minigun"):
			return 28;
			break;
		
		case -344484024:
			return 29;
			break;
		
		case -1887867191:
			return 30;
			break;
		
		case joaat("weapon_stungun"):
			return 31;
			break;
		
		case -837150131:
			return 32;
			break;
		
		case joaat("gadget_parachute"):
			return 33;
			break;
		
		case joaat("weapon_knife"):
			return 34;
			break;
		
		case joaat("weapon_nightstick"):
			return 35;
			break;
		
		case joaat("weapon_hammer"):
			return 36;
			break;
		
		case joaat("weapon_bat"):
			return 37;
			break;
		
		case joaat("weapon_crowbar"):
			return 38;
			break;
		
		case joaat("weapon_golfclub"):
			return 39;
			break;
		
		case joaat("weapon_grenadelauncher_smoke"):
			return 40;
			break;
		
		case joaat("weapon_molotov"):
			return 41;
			break;
		
		case joaat("weapon_fireextinguisher"):
			return 42;
			break;
		
		case joaat("weapon_petrolcan"):
			return 43;
			break;
		
		case joaat("weapon_digiscanner"):
			return 44;
			break;
		
		case joaat("weapon_bottle"):
			return 45;
			break;
		
		case joaat("weapon_specialcarbine"):
			return 46;
			break;
		
		case joaat("weapon_snspistol"):
			return 47;
			break;
		
		case joaat("weapon_heavypistol"):
			return 49;
			break;
		
		case joaat("weapon_bullpuprifle"):
			return 48;
			break;
		
		case joaat("weapon_gusenberg"):
			return 50;
			break;
		
		case joaat("weapon_dagger"):
			return 51;
			break;
		
		case joaat("weapon_vintagepistol"):
			return 52;
			break;
		
		case joaat("weapon_flaregun"):
			return 57;
			break;
		
		case joaat("weapon_musket"):
			return 53;
			break;
		
		case joaat("weapon_firework"):
			return 54;
			break;
		
		case joaat("weapon_marksmanrifle"):
			return 56;
			break;
		
		case joaat("weapon_heavyshotgun"):
			return 55;
			break;
		
		case joaat("weapon_proxmine"):
			return 60;
			break;
		
		case joaat("weapon_hominglauncher"):
			return 61;
			break;
		
		case joaat("weapon_hatchet"):
			return 58;
			break;
		
		case joaat("weapon_railgun"):
			return 59;
			break;
		
		case joaat("weapon_combatpdw"):
			return 64;
			break;
		
		case joaat("weapon_knuckle"):
			return 62;
			break;
		
		case joaat("weapon_marksmanpistol"):
			return 63;
			break;
		
		case joaat("weapon_machete"):
			return 65;
			break;
		
		case joaat("weapon_machinepistol"):
			return 68;
			break;
		
		case joaat("weapon_dbshotgun"):
			return 66;
			break;
		
		case joaat("weapon_compactrifle"):
			return 67;
			break;
		
		case joaat("weapon_flashlight"):
			return 69;
			break;
		
		case joaat("weapon_revolver"):
			return 70;
			break;
		
		case joaat("weapon_switchblade"):
			return 71;
			break;
		
		case 317205821:
			return 72;
			break;
		
		case -1121678507:
			return 73;
			break;
		
		case 125959754:
			return 74;
			break;
		
		case -853065399:
			return 75;
			break;
		
		case -1169823560:
			return 76;
			break;
		
		case -1810795771:
			return 77;
			break;
		
		case 419712736:
			return 78;
			break;
	}
	return 0;
}

var func_759(int iParam0, int iParam1)//Position - 0x7241F
{
	var uVar0;
	
	uVar0 = func_359(func_760(iParam0), iParam1, 0);
	return uVar0;
}

int func_760(int iParam0)//Position - 0x72438
{
	int iVar0;
	int iVar1;
	
	iVar0 = func_757(iParam0);
	iVar1 = func_126(iVar0);
	if ((func_125() == 0 || func_124() == 0) || (func_125() == 999 && func_124() == 999))
	{
		switch (iVar1)
		{
			case 0:
				return 680;
				break;
			
			case 1:
				return 681;
				break;
			
			case 2:
				return 2401;
				break;
			}
	}
	return 6022;
}

int func_761(int iParam0)//Position - 0x724B7
{
	switch (iParam0)
	{
		case joaat("weapon_pistol"):
			return 17;
			break;
		
		case joaat("weapon_combatpistol"):
			return 19;
			break;
		
		case joaat("weapon_appistol"):
			return 23;
			break;
		
		case joaat("weapon_pistol50"):
			return 21;
			break;
		
		case joaat("weapon_smg"):
			return 27;
			break;
		
		case joaat("weapon_microsmg"):
			return 25;
			break;
		
		case joaat("weapon_assaultrifle"):
			return 31;
			break;
		
		case joaat("weapon_carbinerifle"):
			return 33;
			break;
		
		case joaat("weapon_advancedrifle"):
			return 35;
			break;
		
		case joaat("weapon_mg"):
			return 37;
			break;
		
		case joaat("weapon_combatmg"):
			return 39;
			break;
		
		case joaat("weapon_pumpshotgun"):
			return 43;
			break;
		
		case joaat("weapon_sawnoffshotgun"):
			return 45;
			break;
		
		case joaat("weapon_assaultshotgun"):
			return 49;
			break;
		
		case joaat("weapon_heavysniper"):
			return 55;
			break;
		
		case joaat("weapon_sniperrifle"):
			return 53;
			break;
		
		case joaat("weapon_grenadelauncher"):
			return 59;
			break;
		
		case joaat("weapon_rpg"):
			return 61;
			break;
		
		case joaat("weapon_minigun"):
			return 63;
			break;
		
		case joaat("weapon_grenade"):
			return 65;
			break;
		
		case joaat("weapon_smokegrenade"):
			return 67;
			break;
		
		case joaat("weapon_stickybomb"):
			return 69;
			break;
		
		case joaat("weapon_molotov"):
			return 71;
			break;
		
		case joaat("weapon_petrolcan"):
			return 74;
			break;
		
		case joaat("gadget_parachute"):
			return 73;
			break;
		
		case joaat("weapon_knife"):
			return 1;
			break;
		
		case joaat("weapon_nightstick"):
			return 3;
			break;
		
		case joaat("weapon_hammer"):
			return 11;
			break;
		
		case joaat("weapon_bat"):
			return 13;
			break;
		
		case joaat("weapon_crowbar"):
			return 5;
			break;
		
		case joaat("weapon_golfclub"):
			return 15;
			break;
		
		case -572349828:
			return 41;
			break;
		
		case joaat("weapon_assaultsmg"):
			return 29;
			break;
		
		case 392730790:
			return 57;
			break;
		
		case joaat("weapon_bullpupshotgun"):
			return 47;
			break;
		
		case joaat("weapon_bottle"):
			return 142;
			break;
		
		case joaat("weapon_specialcarbine"):
			return 210;
			break;
		
		case joaat("weapon_snspistol"):
			return 144;
			break;
		
		case joaat("weapon_heavypistol"):
			return 208;
			break;
		
		case joaat("weapon_bullpuprifle"):
			return 212;
			break;
		
		case joaat("weapon_gusenberg"):
			return 214;
			break;
		
		case joaat("weapon_vintagepistol"):
			return 237;
			break;
		
		case joaat("weapon_dagger"):
			return 235;
			break;
		
		case joaat("weapon_musket"):
			return 241;
			break;
		
		case joaat("weapon_firework"):
			return 239;
			break;
		
		case joaat("weapon_flaregun"):
			return 229;
			break;
		
		case joaat("weapon_heavyshotgun"):
			return 253;
			break;
		
		case joaat("weapon_marksmanrifle"):
			return 255;
			break;
		
		case joaat("weapon_proxmine"):
			return 259;
			break;
		
		case joaat("weapon_hominglauncher"):
			return 261;
			break;
		
		case joaat("weapon_hatchet"):
			return 257;
			break;
		
		case joaat("weapon_combatpdw"):
			return 263;
			break;
		
		case joaat("weapon_knuckle"):
			return 265;
			break;
		
		case joaat("weapon_marksmanpistol"):
			return 267;
			break;
		
		case joaat("weapon_machete"):
			return 269;
			break;
		
		case joaat("weapon_machinepistol"):
			return 271;
			break;
		
		case joaat("weapon_dbshotgun"):
			return 276;
			break;
		
		case joaat("weapon_compactrifle"):
			return 274;
			break;
		
		case joaat("weapon_flashlight"):
			return 278;
			break;
		
		case joaat("weapon_revolver"):
			return 281;
			break;
		
		case joaat("weapon_switchblade"):
			return 283;
			break;
		
		case 317205821:
			return 288;
			break;
		
		case -1121678507:
			return 294;
			break;
		
		case 125959754:
			return 292;
			break;
		
		case -853065399:
			return 290;
			break;
		
		case -1169823560:
			return 296;
			break;
		
		case -1810795771:
			return 298;
			break;
		
		case 419712736:
			return 9;
			break;
	}
	return 302;
}

var func_762()//Position - 0x72891
{
	return Global_1315208;
}

void func_763(int iParam0)//Position - 0x7289D
{
	if (func_260(0) || iParam0 == 0)
	{
		Global_1618089[player::player_id() /*390*/].f_11.f_68.f_1 = iParam0;
	}
}

void func_764(int iParam0)//Position - 0x728CD
{
	if (func_260(0) || iParam0 == 0)
	{
		Global_1618089[player::player_id() /*390*/].f_11.f_68.f_2 = iParam0;
	}
}

void func_765(int iParam0)//Position - 0x728FD
{
	int iVar0;
	
	if (func_260(0))
	{
		iVar0 = func_511(func_456(), player::player_id());
		if (iVar0 > -1 && iVar0 < 8)
		{
			Global_1618089[player::player_id() /*390*/].f_11.f_68.f_3[iVar0] = iParam0;
		}
	}
}

int func_766()//Position - 0x72949
{
	int iVar0;
	
	iVar0 = func_771(player::player_id(), 0);
	if (func_770(iVar0) && func_769(iVar0))
	{
		return (func_768() && func_767(iVar0));
	}
	return 0;
}

int func_767(int iParam0)//Position - 0x72983
{
	var uVar0;
	
	if (func_770(iParam0))
	{
		if (func_769(iParam0))
		{
			uVar0 = Global_2415705.f_756[iParam0 /*33*/].f_32;
			return uVar0;
		}
	}
	return 0;
}

var func_768()//Position - 0x729B2
{
	return Global_25450;
}

int func_769(int iParam0)//Position - 0x729BD
{
	if (func_770(iParam0))
	{
		return Global_2501629.f_2[iParam0];
	}
	return 0;
}

bool func_770(int iParam0)//Position - 0x729DC
{
	if (iParam0 > -1 && iParam0 < 36)
	{
		return true;
	}
	return false;
}

int func_771(int iParam0, int iParam1)//Position - 0x729FA
{
	if (func_1644(iParam0, 0, 1))
	{
		if (!iParam1)
		{
			return Global_2421621[iParam0 /*358*/].f_264.f_14;
		}
		else
		{
			return Global_2421621[iParam0 /*358*/].f_264.f_16;
		}
	}
	return -1;
}

void func_772()//Position - 0x72A39
{
	Global_1618089[player::player_id() /*390*/].f_11.f_6 = 0;
}

void func_773(int iParam0)//Position - 0x72A51
{
	Global_1618089[player::player_id() /*390*/].f_11.f_27 = iParam0;
}

void func_774(int iParam0)//Position - 0x72A6A
{
	if (!func_71())
	{
		return;
	}
	Global_1618089[player::player_id() /*390*/].f_11.f_20 = -1;
	if (!iParam0)
	{
		if (func_359(5883, -1, 0) != -1)
		{
		}
		func_237(5883, -1, -1, 1, 0);
	}
}

void func_775()//Position - 0x72AAB
{
	if (!func_71())
	{
		return;
	}
	Global_1618089[player::player_id() /*390*/].f_11.f_2 = -1;
}

var func_776(int iParam0)//Position - 0x72ACE
{
	return Global_1618089[iParam0 /*390*/].f_11.f_2;
}

void func_777(int iParam0)//Position - 0x72AE3
{
	if (!func_71())
	{
		return;
	}
	Global_1618089[player::player_id() /*390*/].f_11.f_1 = -1;
	if (!iParam0)
	{
		func_237(5887, -1, -1, 1, 0);
	}
}

struct<16> func_778(int iParam0)//Position - 0x72B17
{
	return Global_2443860.f_3065.f_18[iParam0 /*16*/];
}

struct<16> func_779()//Position - 0x72B2F
{
	return Global_2443860.f_3065.f_2;
}

void func_780(int iParam0)//Position - 0x72B43
{
	struct<16> Var0;
	
	Global_2443860.f_3065.f_18[iParam0 /*16*/] = { Var0 };
}

void func_781()//Position - 0x72B60
{
	struct<16> Var0;
	
	Global_2443860.f_3065.f_2 = { Var0 };
}

void func_782()//Position - 0x72B79
{
	int iVar0;
	
	iVar0 = 0;
	while (iVar0 < 4)
	{
		Global_2494149.f_4710.f_7[iVar0] = 0;
		iVar0++;
	}
	iVar0 = 0;
	while (iVar0 < 2)
	{
		Global_2494149.f_4710.f_12[iVar0] = 0;
		iVar0++;
	}
}

void func_783()//Position - 0x72BC1
{
	struct<25> Var0;
	
	if (script::is_thread_active(Global_2412527.f_6))
	{
		if (!Global_2412527.f_6 == script::get_id_of_this_thread())
		{
			return;
		}
	}
	Var0.f_7 = 1;
	Var0.f_8 = 1;
	Var0.f_21 = 1115815936;
	Global_2412527 = { Var0 };
	Global_2412527.f_6 = -1;
}

bool func_784(int iParam0, int iParam1, int iParam2, int iParam3, int iParam4, int iParam5, int iParam6, int iParam7, int iParam8, int iParam9, int iParam10, int iParam11, int iParam12, int iParam13, int iParam14, int iParam15)//Position - 0x72C14
{
	float fVar0;
	int iVar1;
	int iVar2;
	int iVar3;
	int iVar4;
	int iVar5;
	
	func_1230();
	if (func_398(player::player_id(), 1, 0))
	{
		if (((iParam4 && func_1644(player::player_id(), 1, 0)) && streaming::is_player_switch_in_progress()) && Global_2421621[player::player_id() /*358*/].f_225 == 1)
		{
		}
		else
		{
			return false;
		}
	}
	if (!ped::is_ped_injured(player::player_ped_id()))
	{
		ped::set_ped_reset_flag(player::player_ped_id(), 150, true);
		if (!Global_2404994.f_639 == iParam0)
		{
			if (iParam15 && Global_2404994.f_639 == 37)
			{
			}
			else if (!Global_2421621[player::player_id() /*358*/].f_210 == 0)
			{
				if (network::get_time_difference(network::get_network_time(), Global_2404994.f_640) < func_1229(0))
				{
					return false;
				}
				Global_2421621[player::player_id() /*358*/].f_210 = 0;
			}
		}
		if (Global_2421621[player::player_id() /*358*/].f_210 == 0)
		{
			Global_2404994.f_639 = iParam0;
			Global_2421621[player::player_id() /*358*/].f_210 = 2;
			if (iParam2)
			{
				if (!func_1228())
				{
					iParam2 = false;
				}
			}
			Global_2421621[player::player_id() /*358*/].f_210 = 2;
			Global_2404994.f_2031 = 0;
			Global_2404994.f_2032 = 0;
			Global_2404994.f_2030 = 0;
			Global_2404994.f_2338 = 0;
		}
		if (Global_2421621[player::player_id() /*358*/].f_210 == 2)
		{
			if (iParam2 || iParam7)
			{
				iVar3 = true;
			}
			if (Global_2404994.f_639 == 11)
			{
				Global_2404994.f_643 = { Global_2412527 };
				Global_2404994.f_646 = Global_2412527.f_5;
				Global_2421621[player::player_id() /*358*/].f_210 = 3;
			}
			else if (func_1060(&(Global_2404994.f_643), &(Global_2404994.f_646), Global_2404994.f_639, iVar3, iParam3, iParam5, iParam6, iParam8, iParam12, 0, iParam13))
			{
				Global_2421621[player::player_id() /*358*/].f_210 = 3;
			}
		}
		if (Global_2421621[player::player_id() /*358*/].f_210 == 3)
		{
			if (iParam11)
			{
				if (iParam2)
				{
					if (ped::is_ped_in_any_vehicle(player::player_ped_id(), 0))
					{
						iVar2 = ped::get_vehicle_ped_is_in(player::player_ped_id(), 0);
						ai::clear_ped_tasks_immediately(player::player_ped_id());
						func_1055(&iVar2);
					}
					else
					{
						iVar2 = func_1054();
						func_1053(&iVar2);
					}
					if (func_1228())
					{
						if (ped::is_ped_in_any_vehicle(player::player_ped_id(), 0))
						{
							if (!entity::get_entity_model(ped::get_vehicle_ped_is_in(player::player_ped_id(), 0)) == Global_2404994.f_43.f_67)
							{
								iVar4 = ped::get_vehicle_ped_is_in(player::player_ped_id(), 0);
								if (iVar4 == Global_2404994.f_43.f_171)
								{
									func_1051();
								}
								ai::clear_ped_tasks_immediately(player::player_ped_id());
							}
						}
					}
					if (!ped::is_ped_in_any_vehicle(player::player_ped_id(), 0))
					{
						Global_2421621[player::player_id() /*358*/].f_210 = 4;
					}
					else
					{
						iVar2 = ped::get_vehicle_ped_is_in(player::player_ped_id(), 0);
						if (network::network_has_control_of_entity(iVar2))
						{
							func_1045(iVar2);
							func_1044(1);
							Global_2421621[player::player_id() /*358*/].f_210 = 6;
						}
						else
						{
							network::network_request_control_of_entity(iVar2);
						}
					}
				}
				else
				{
					func_1044(1);
					Global_2421621[player::player_id() /*358*/].f_210 = 6;
				}
			}
		}
		if (Global_2421621[player::player_id() /*358*/].f_210 == 4)
		{
			if (func_1041())
			{
				if (func_833(Global_2404994.f_643, Global_2404994.f_643.f_1, func_1038(Global_2404994.f_43.f_67), Global_2404994.f_646, 0))
				{
					Global_2404994.f_641 = network::get_network_time();
					Global_2421621[player::player_id() /*358*/].f_210 = 5;
				}
			}
		}
		if (Global_2421621[player::player_id() /*358*/].f_210 == 5)
		{
			ped::set_ped_reset_flag(player::player_ped_id(), 150, true);
			if (ped::is_ped_in_any_vehicle(player::player_ped_id(), 0))
			{
				Global_2421621[player::player_id() /*358*/].f_210 = 6;
				if (Global_2404994.f_43.f_173)
				{
					Global_2421621[player::player_id() /*358*/].f_230 = 1;
				}
				else
				{
					Global_2421621[player::player_id() /*358*/].f_230 = 0;
				}
			}
			else if (network::get_time_difference(network::get_network_time(), Global_2404994.f_641) > 5000)
			{
				ai::clear_ped_tasks_immediately(player::player_ped_id());
				Global_2421621[player::player_id() /*358*/].f_210 = 4;
			}
			else if (ai::get_script_task_status(player::player_ped_id(), -1794415470) == 7)
			{
				if (entity::does_entity_exist(Global_2404994.f_43.f_171) && vehicle::is_vehicle_driveable(Global_2404994.f_43.f_171, 0))
				{
					func_827(player::player_ped_id(), Global_2404994.f_43.f_171, -1);
				}
				else
				{
					ai::clear_ped_tasks_immediately(player::player_ped_id());
					Global_2421621[player::player_id() /*358*/].f_210 = 4;
				}
			}
		}
		if (Global_2421621[player::player_id() /*358*/].f_210 == 6)
		{
			Global_2404994.f_640 = network::get_network_time();
			if (Global_2404994.f_649)
			{
				Global_2404994.f_642 = network::get_network_time();
				Global_2404994.f_649 = 0;
			}
			if (iParam7)
			{
				iVar1 = true;
			}
			else
			{
				iVar1 = iParam2;
			}
			if (gameplay::absi(network::get_time_difference(network::get_network_time(), Global_2404994.f_642)) >= 300)
			{
				iVar5 = true;
			}
			else
			{
				iVar5 = false;
			}
			if (iParam7 && !Global_2433082.f_731)
			{
				if (ped::is_ped_in_any_vehicle(player::player_ped_id(), 0))
				{
					iVar2 = ped::get_vehicle_ped_is_in(player::player_ped_id(), 0);
					if (entity::does_entity_exist(iVar2))
					{
						if ((entity::is_entity_dead(iVar2, 0) || !vehicle::is_vehicle_driveable(iVar2, 0)) || func_826(iVar2))
						{
							ai::clear_ped_tasks_immediately(player::player_ped_id());
						}
					}
				}
			}
			if (iVar5)
			{
				if (func_824(Global_2404994.f_643, Global_2404994.f_646, iVar1, iParam1, 0, 0, 1, iParam4, 1, 1))
				{
					if ((iParam15 && func_817(Global_2404994.f_643)) && !(Global_2404994.f_639 == 8 && Global_2404994.f_651.f_507))
					{
						if (Global_2404994.f_639 == 8 && !Global_2404994.f_2338)
						{
							Global_2404994.f_2338 = 1;
						}
						else
						{
							Global_2404994.f_639 = 37;
						}
						Global_2421621[player::player_id() /*358*/].f_210 = 2;
						Global_2404994.f_2031 = 0;
						Global_2404994.f_2032 = 0;
						Global_2404994.f_2030 = 0;
					}
					else
					{
						if (!Global_2404994.f_649)
						{
							Global_2404994.f_649 = 1;
						}
						func_1044(0);
						if (Global_2404994.f_2200)
						{
							func_812();
							Global_2404994.f_2200 = 0;
						}
						Global_2421621[player::player_id() /*358*/].f_210 = 10;
					}
				}
			}
		}
		if (Global_2421621[player::player_id() /*358*/].f_210 == 9)
		{
			if (system::vdist(Global_2412527, Global_2404994.f_643) > 0.1f)
			{
				if (ped::is_ped_in_any_vehicle(player::player_ped_id(), 0))
				{
					iVar2 = ped::get_vehicle_ped_is_in(player::player_ped_id(), 0);
					if (vehicle::is_this_model_a_bike(entity::get_entity_model(iVar2)) || vehicle::is_this_model_a_car(entity::get_entity_model(iVar2)))
					{
						gameplay::get_ground_z_for_3d_coord(Global_2404994.f_643, Global_2404994.f_643.f_1, Global_2404994.f_643.f_2, &fVar0, 0);
						if (fVar0 == 0f || (Global_2404994.f_643.f_2 - fVar0) > 1.5f)
						{
							if (system::vdist(Global_2412527, Global_2404994.f_643) > 15f)
							{
								Global_2404994.f_643 = { Global_2412527 };
								if (network::network_has_control_of_entity(iVar2))
								{
									entity::set_entity_coords(iVar2, Global_2404994.f_643, Global_2404994.f_643.f_1, (fVar0 + func_811(entity::get_entity_model(iVar2))), 1, false, 0, 1);
									vehicle::set_vehicle_on_ground_properly(iVar2, 1084227584);
								}
								Global_2421621[player::player_id() /*358*/].f_210 = 10;
							}
							else
							{
								Global_2404994.f_643.f_2 = (Global_2404994.f_643.f_2 + 1f);
							}
						}
						else
						{
							if (network::network_has_control_of_entity(iVar2))
							{
								entity::set_entity_coords(iVar2, Global_2404994.f_643, Global_2404994.f_643.f_1, (fVar0 + func_811(entity::get_entity_model(iVar2))), 1, false, 0, 1);
								vehicle::set_vehicle_on_ground_properly(iVar2, 1084227584);
							}
							Global_2421621[player::player_id() /*358*/].f_210 = 10;
						}
					}
					else
					{
						Global_2421621[player::player_id() /*358*/].f_210 = 10;
					}
				}
				else
				{
					Global_2421621[player::player_id() /*358*/].f_210 = 10;
				}
			}
			else
			{
				Global_2421621[player::player_id() /*358*/].f_210 = 10;
			}
		}
		if (Global_2421621[player::player_id() /*358*/].f_210 == 10)
		{
			if (!iParam14)
			{
				if (entity::does_entity_exist(Global_2404994.f_43.f_171))
				{
					entity::set_entity_visible(Global_2404994.f_43.f_171, true, 0);
				}
			}
			if (iParam2 || iParam7)
			{
				if (iParam9 > 0)
				{
					func_804(iParam9, 0);
				}
			}
			func_801(func_640(player::player_id()), 0);
			if (entity::does_entity_exist(Global_2404994.f_43.f_171))
			{
				func_1051();
			}
			func_800();
			func_798(0, 0);
			if (iParam10)
			{
				func_797();
			}
			func_796();
			func_785();
			func_542();
			return true;
		}
	}
	else if (!Global_2421621[player::player_id() /*358*/].f_210 == 0)
	{
		ai::clear_ped_tasks_immediately(player::player_ped_id());
		func_1053(&(Global_2404994.f_43.f_171));
		func_542();
	}
	Global_2404994.f_640 = network::get_network_time();
	return false;
}

void func_785()//Position - 0x73468
{
	int iVar0;
	
	Global_2421621[player::player_id() /*358*/].f_264.f_20 = -1;
	Global_2404994.f_2336 = -1f;
	iVar0 = 0;
	while (iVar0 < 36)
	{
		func_787(iVar0);
		iVar0++;
	}
	if (func_786(player::player_id(), 0))
	{
		Global_2501629.f_77 = 1;
		Global_2501629.f_78 = network::get_network_time();
	}
}

bool func_786(int iParam0, int iParam1)//Position - 0x734BF
{
	if (func_1644(iParam0, 0, 1))
	{
		if (!iParam1)
		{
			if (!Global_2421621[iParam0 /*358*/].f_264.f_14 == -1)
			{
				return true;
			}
		}
		else if (!Global_2421621[iParam0 /*358*/].f_264.f_16 == -1)
		{
			return true;
		}
	}
	return false;
}

void func_787(int iParam0)//Position - 0x7350C
{
	int iVar0;
	float fVar1;
	int iVar2;
	
	iVar0 = player::player_id();
	if (Global_2421621[iVar0 /*358*/].f_264.f_14 != -1)
	{
		if (func_769(Global_2421621[iVar0 /*358*/].f_264.f_14))
		{
			if (!func_791(player::player_id(), Global_2421621[iVar0 /*358*/].f_264.f_14, 0, 0))
			{
				Global_2421621[iVar0 /*358*/].f_264.f_14 = -1;
			}
		}
		else
		{
			Global_2421621[iVar0 /*358*/].f_264.f_14 = -1;
		}
	}
	if (Global_2421621[iVar0 /*358*/].f_264.f_16 != -1)
	{
		if (func_769(Global_2421621[iVar0 /*358*/].f_264.f_16))
		{
			if (!func_791(player::player_id(), Global_2421621[iVar0 /*358*/].f_264.f_16, 0, 1))
			{
				Global_2421621[iVar0 /*358*/].f_264.f_16 = -1;
			}
		}
		else
		{
			Global_2421621[iVar0 /*358*/].f_264.f_16 = -1;
		}
	}
	if (Global_2421621[iVar0 /*358*/].f_264.f_15 != -1)
	{
		if (!func_791(player::player_id(), Global_2421621[iVar0 /*358*/].f_264.f_15, 0, 0))
		{
			Global_2421621[iVar0 /*358*/].f_264.f_15 = -1;
		}
	}
	if (func_769(iParam0))
	{
		if (func_791(player::player_id(), iParam0, 0, 0))
		{
			if (!Global_2421621[iVar0 /*358*/].f_264.f_14 == iParam0)
			{
				Global_2421621[iVar0 /*358*/].f_264.f_14 = iParam0;
			}
		}
		if (func_791(player::player_id(), iParam0, 0, 1))
		{
			if (!Global_2421621[iVar0 /*358*/].f_264.f_16 == iParam0)
			{
				Global_2421621[iVar0 /*358*/].f_264.f_16 = iParam0;
			}
		}
		iVar2 = system::floor((system::to_float(iParam0) / 32f));
		if (func_789(player::player_id(), iParam0, 1120403456))
		{
			gameplay::set_bit(&(Global_2421621[iVar0 /*358*/].f_264.f_17[iVar2]), (iParam0 - iVar2 * 32));
		}
		else
		{
			gameplay::clear_bit(&(Global_2421621[iVar0 /*358*/].f_264.f_17[iVar2]), (iParam0 - iVar2 * 32));
		}
		fVar1 = system::vdist(func_788(iParam0), func_640(player::player_id()));
		if (iParam0 == Global_2421621[iVar0 /*358*/].f_264.f_20)
		{
			Global_2404994.f_2336 = fVar1;
		}
		else if (fVar1 < Global_2404994.f_2336 || Global_2404994.f_2336 <= 0f)
		{
			Global_2404994.f_2336 = fVar1;
			Global_2421621[iVar0 /*358*/].f_264.f_20 = iParam0;
		}
	}
	else if (iParam0 == Global_2421621[iVar0 /*358*/].f_264.f_20)
	{
		Global_2421621[iVar0 /*358*/].f_264.f_20 = -1;
		Global_2404994.f_2336 = -1f;
	}
	if (func_791(player::player_id(), iParam0, 0, 0))
	{
		if (!Global_2421621[iVar0 /*358*/].f_264.f_15 == iParam0)
		{
			Global_2421621[iVar0 /*358*/].f_264.f_15 = iParam0;
		}
	}
}

Vector3 func_788(int iParam0)//Position - 0x737BA
{
	return Global_4006218[iParam0 /*45*/].f_4;
}

int func_789(int iParam0, int iParam1, float fParam2)//Position - 0x737CE
{
	if (func_770(iParam1))
	{
		return func_790(func_640(iParam0), iParam1, fParam2);
	}
	return 0;
}

bool func_790(vector3 vParam0, int iParam3, float fParam4)//Position - 0x737F1
{
	if (func_770(iParam3))
	{
		if (system::vdist2(vParam0, func_788(iParam3)) < (fParam4 * fParam4))
		{
			return true;
		}
	}
	return false;
}

int func_791(int iParam0, int iParam1, float fParam2, int iParam3)//Position - 0x7381E
{
	int iVar0;
	int iVar1;
	int iVar2;
	
	if (func_770(iParam1))
	{
		if (!iParam3)
		{
			return func_792(func_640(iParam0), iParam1, fParam2);
		}
		else if (func_792(func_640(iParam0), iParam1, fParam2))
		{
			return true;
		}
		else if (func_792(func_640(iParam0), iParam1, 15f))
		{
			if (func_1644(iParam0, 1, 1))
			{
				iVar0 = player::get_player_ped(iParam0);
				if (entity::does_entity_exist(iVar0) && !entity::is_entity_dead(iVar0, 0))
				{
					if (ped::is_ped_in_any_vehicle(iVar0, 0))
					{
						iVar1 = ped::get_vehicle_ped_is_using(iVar0);
						if (entity::does_entity_exist(iVar1) && !entity::is_entity_dead(iVar1, 0))
						{
							if (decorator::decor_exist_on(iVar1, "PYV_Yacht"))
							{
								iVar2 = decorator::decor_get_int(iVar1, "PYV_Yacht");
								if (iVar2 == iParam1)
								{
									return true;
								}
							}
						}
					}
				}
			}
		}
	}
	return false;
}

int func_792(vector3 vParam0, int iParam3, float fParam4)//Position - 0x738ED
{
	vector3 vVar0;
	vector3 vVar3;
	float fVar6;
	
	if (func_770(iParam3))
	{
		func_793(iParam3, &vVar0, &vVar3, &fVar6, fParam4);
		return object::is_point_in_angled_area(vParam0, vVar0, vVar3, fVar6, 0, true);
	}
	return false;
}

void func_793(int iParam0, var uParam1, var uParam2, var uParam3, float fParam4)//Position - 0x73924
{
	vector3 vVar0;
	float fVar3;
	vector3 vVar4;
	
	vVar0 = { func_788(iParam0) };
	fVar3 = func_795(iParam0);
	vVar4 = { 0f, 1f, 0f };
	func_794(&vVar4, 0f, 0f, fVar3);
	vVar4 = { vVar4 / FtoV(system::vmag(vVar4)) };
	*uParam1 = { vVar0 + vVar4 * FtoV((0.5f * (120f + fParam4))) };
	uParam1->f_2 = (uParam1->f_2 - (0.5f * (34f + fParam4)));
	*uParam2 = { vVar0 - vVar4 * FtoV((0.5f * (120f + fParam4))) };
	uParam2->f_2 = (uParam2->f_2 + (0.5f * (34f + fParam4)));
	*uParam3 = (16.17f + fParam4);
}

void func_794(var uParam0, vector3 vParam1)//Position - 0x739D4
{
	float fVar0;
	float fVar1;
	vector3 vVar2;
	
	fVar0 = system::cos(vParam1.x);
	fVar1 = system::sin(vParam1.x);
	vVar2.x = *uParam0;
	vVar2.y = ((fVar0 * uParam0->f_1) - (fVar1 * uParam0->f_2));
	vVar2.z = ((fVar1 * uParam0->f_1) + (fVar0 * uParam0->f_2));
	*uParam0 = { vVar2 };
	fVar0 = system::cos(vParam1.y);
	fVar1 = system::sin(vParam1.y);
	vVar2.x = ((fVar0 * *uParam0) + (fVar1 * uParam0->f_2));
	vVar2.y = uParam0->f_1;
	vVar2.z = ((fVar0 * uParam0->f_2) - (fVar1 * *uParam0));
	*uParam0 = { vVar2 };
	fVar0 = system::cos(vParam1.y);
	fVar1 = system::sin(vParam1.y);
	vVar2.x = ((fVar0 * *uParam0) - (fVar1 * uParam0->f_1));
	vVar2.y = ((fVar1 * *uParam0) + (fVar0 * uParam0->f_1));
	vVar2.z = uParam0->f_2;
	*uParam0 = { vVar2 };
}

var func_795(var uParam0)//Position - 0x73AAB
{
	return Global_4006218[uParam0 /*45*/].f_7;
}

void func_796()//Position - 0x73ABD
{
	Global_1616548 = -1;
	Global_1616551 = 0;
}

void func_797()//Position - 0x73ACF
{
	Global_2404994.f_5 = 1;
}

void func_798(float fParam0, int iParam1)//Position - 0x73ADE
{
	vector3 vVar0;
	
	if (!func_799() || iParam1)
	{
		if (cam::is_screen_faded_out() || streaming::is_player_switch_in_progress())
		{
			if (!cam::_0x4F32C0D5A90A9B40())
			{
				vVar0 = { func_640(player::player_id()) };
				if (vVar0.y > -80f)
				{
					cam::set_gameplay_cam_relative_pitch(0f, 1065353216);
					cam::set_gameplay_cam_relative_heading(fParam0);
				}
			}
		}
	}
}

var func_799()//Position - 0x73B44
{
	return Global_1315229;
}

void func_800()//Position - 0x73B50
{
	vector3 vVar0;
	float fVar3;
	float fVar4;
	
	if (!ped::is_ped_in_any_vehicle(player::player_ped_id(), 0) && !entity::is_entity_attached(player::player_ped_id()))
	{
		vVar0 = { entity::get_entity_coords(player::player_ped_id(), 0) };
		vVar0.z = (vVar0.y + (0.3f * IntToFloat(Global_2404994.f_647)));
		if (gameplay::get_ground_z_for_3d_coord(vVar0, &fVar3, 0))
		{
			fVar4 = (vVar0.y - (fVar3 + 1f));
			if (gameplay::absf(fVar4) > 0f && gameplay::absf(fVar4) < 1f)
			{
				entity::set_entity_coords(player::player_ped_id(), vVar0.x, vVar0.y, fVar3, 0, true, 0, 1);
				Global_2404994.f_647 = 0;
			}
		}
		else if (Global_2404994.f_647 < 3)
		{
			Global_2404994.f_647++;
			func_800();
		}
		else
		{
			Global_2404994.f_647 = 0;
		}
	}
}

void func_801(vector3 vParam0, int iParam3)//Position - 0x73C17
{
	int iVar0;
	float fVar1;
	int iVar2;
	var uVar3;
	var uVar6;
	var uVar9;
	int iVar10;
	
	if (ped::is_ped_in_any_vehicle(player::player_ped_id(), 0))
	{
		iVar0 = ped::get_vehicle_ped_is_in(player::player_ped_id(), 0);
		fVar1 = func_802(entity::get_entity_model(iVar0));
		fVar1 = (fVar1 * 0.5f);
		fVar1 = (fVar1 + 6f);
		gameplay::clear_area(vParam0, fVar1, 1, 0, 0, iParam3);
		gameplay::clear_area_of_vehicles(vParam0, fVar1, 1, 0, 1, 1, iParam3);
		fire::stop_fire_in_range(vParam0, 6f);
	}
	else
	{
		iVar10 = worldprobe::_cast_ray_point_to_point(vParam0.x, vParam0.y, (vParam0.y - 2f), vParam0.x, vParam0.y, (vParam0.y + 1f), 19, 0, 7);
		worldprobe::_get_raycast_result(iVar10, &iVar2, &uVar3, &uVar6, &uVar9);
		gameplay::clear_area(vParam0, 0.7f, 1, 0, 0, iParam3);
		if (!iVar2 == 0)
		{
			gameplay::clear_area_of_vehicles(vParam0, 6f, 1, 0, 1, 1, iParam3);
			if (iParam3)
			{
				gameplay::clear_area_of_objects(vParam0, 6f, 17);
			}
			else
			{
				gameplay::clear_area_of_objects(vParam0, 6f, 16);
			}
		}
		fire::stop_fire_in_range(vParam0, 2.5f);
	}
}

float func_802(int iParam0)//Position - 0x73D02
{
	struct<2> Var0;
	struct<2> Var3;
	
	func_803(iParam0, &Var0, &Var3, 1086324736, 1080033280, 1077936128);
	return gameplay::absf((Var0.f_1 - Var3.f_1));
}

void func_803(int iParam0, float fParam1, float fParam2, float fParam3, float fParam4, float fParam5)//Position - 0x73D30
{
	if (streaming::is_model_valid(iParam0))
	{
		gameplay::get_model_dimensions(iParam0, fParam1, fParam2);
	}
	if (system::vmag(*fParam1) <= 0.01f || system::vmag(*fParam2) <= 0.01f)
	{
		*fParam1 = (0f - (fParam4 * 0.5f));
		*fParam2 = (0f + (fParam4 * 0.5f));
		fParam1->f_1 = (0f - (fParam3 * 0.5f));
		fParam2->f_1 = (0f + (fParam3 * 0.5f));
		fParam1->f_2 = (0f - (fParam5 * 0.5f));
		fParam2->f_2 = (0f + (fParam5 * 0.5f));
	}
}

void func_804(int iParam0, int iParam1)//Position - 0x73DC2
{
	int iVar0;
	int iVar1;
	
	iVar0 = false;
	if (ped::is_ped_in_any_vehicle(player::player_ped_id(), 0) && func_810())
	{
		iVar1 = ped::get_vehicle_ped_is_in(player::player_ped_id(), 0);
		if (func_808(iVar1, &iVar0))
		{
			func_805(iVar1, iParam0, iParam1);
			if (iVar0)
			{
				entity::set_vehicle_as_no_longer_needed(&iVar1);
			}
		}
	}
}

void func_805(int iParam0, int iParam1, int iParam2)//Position - 0x73E0D
{
	int iVar0;
	
	iVar0 = network::network_get_network_id_from_entity(iParam0);
	if (network::network_does_network_id_exist(iVar0))
	{
		if (Global_1574249 && vehicle::is_vehicle_model(iParam0, joaat("rhino")))
		{
			iParam1 = 1;
			network::set_network_vehicle_respot_timer(iVar0, 1, 1);
			return;
		}
		else if (func_807())
		{
			func_806(iParam0);
			return;
		}
		if (iParam2 > iParam1)
		{
			network::set_network_vehicle_respot_timer(iVar0, iParam2, 1);
			if (ped::is_ped_in_vehicle(player::player_ped_id(), iParam0, 0))
			{
				network::network_set_local_player_invincible_time(iParam2);
			}
		}
		else
		{
			network::set_network_vehicle_respot_timer(iVar0, iParam1, 1);
			if (ped::is_ped_in_vehicle(player::player_ped_id(), iParam0, 0))
			{
				network::network_set_local_player_invincible_time(iParam1);
			}
		}
	}
}

bool func_806(int iParam0)//Position - 0x73EA6
{
	int iVar0;
	int iVar1;
	
	iVar0 = 0;
	while (iVar0 < network::_network_get_num_participants_host())
	{
		if (network::network_is_participant_active(player::int_to_participantindex(iVar0)))
		{
			iVar1 = network::network_get_player_index(player::int_to_participantindex(iVar0));
			network::_0x9DD368BF06983221(iVar1, 1);
		}
		iVar0++;
	}
	if (network::network_has_control_of_entity(iParam0))
	{
		network::_0x6274C4712850841E(iParam0, 1);
		return true;
	}
	else
	{
		network::network_request_control_of_entity(iParam0);
	}
	return false;
}

var func_807()//Position - 0x73F02
{
	return Global_1574267;
}

bool func_808(int iParam0, int iParam1)//Position - 0x73F0E
{
	if (func_809(iParam0, iParam1))
	{
		return true;
	}
	return false;
}

bool func_809(int iParam0, var uParam1)//Position - 0x73F26
{
	if (entity::does_entity_exist(iParam0))
	{
		if (!entity::is_entity_a_mission_entity(iParam0))
		{
			if (network::network_get_entity_is_local(iParam0))
			{
				entity::set_entity_as_mission_entity(iParam0, false, 1);
				*uParam1 = 1;
			}
		}
		if (entity::does_entity_belong_to_this_script(iParam0, 0))
		{
			if (network::network_has_control_of_entity(iParam0))
			{
				return true;
			}
		}
	}
	return false;
}

bool func_810()//Position - 0x73F74
{
	int iVar0;
	
	if (ped::is_ped_in_any_vehicle(player::player_ped_id(), 0))
	{
		iVar0 = ped::get_vehicle_ped_is_in(player::player_ped_id(), 0);
		if (entity::does_entity_exist(iVar0))
		{
			if (vehicle::is_vehicle_driveable(iVar0, 0))
			{
				if (vehicle::get_ped_in_vehicle_seat(iVar0, -1, 0) == player::player_ped_id())
				{
					return true;
				}
			}
		}
	}
	return false;
}

float func_811(int iParam0)//Position - 0x73FBA
{
	vector3 vVar0;
	vector3 vVar3;
	
	func_803(iParam0, &vVar0, &vVar3, 1086324736, 1080033280, 1077936128);
	return gameplay::absf((vVar0.y - vVar3.y));
}

void func_812()//Position - 0x73FE8
{
	int iVar0;
	vector3 vVar1;
	vector3 vVar4;
	int iVar7;
	float fVar8;
	float fVar9;
	vector3 vVar10;
	vector3 vVar13;
	vector3 vVar16;
	vector3 vVar19;
	vector3 vVar22;
	vector3 vVar25;
	vector3 vVar28;
	vector3 vVar31;
	vector3 vVar34;
	vector3 vVar37;
	vector3 vVar40;
	vector3 vVar43;
	int iVar46;
	int iVar47;
	int iVar48;
	int iVar49;
	int iVar50;
	int iVar51;
	int iVar52;
	int iVar53;
	int iVar54;
	int iVar55;
	int iVar56;
	int iVar57;
	var uVar58;
	var uVar61;
	var uVar64;
	int iVar65;
	int iVar66;
	int iVar67;
	int iVar68;
	int iVar69;
	int iVar70;
	int iVar71;
	int iVar72;
	int iVar73;
	vector3 vVar74;
	float fVar77;
	
	if (!ped::is_ped_in_any_vehicle(player::player_ped_id(), 0))
	{
		vVar1 = { entity::get_entity_coords(player::player_ped_id(), 0) };
		if ((!Global_2404994.f_43.f_52 && !Global_2404994.f_43.f_53) && !Global_2404994.f_2201)
		{
			if (pathfind::get_closest_vehicle_node(vVar1, &vVar4, 1, 1077936128, 0))
			{
				vVar4.z = (vVar4.y + 1f);
				iVar7 = true;
				if (!system::vdist(vVar1, vVar4) < 50f || Global_2404994.f_43.f_52)
				{
					iVar7 = false;
				}
			}
		}
		else if (Global_2404994.f_2201)
		{
			Global_2404994.f_2201 = 0;
		}
		if (!entity::is_entity_dead(player::player_ped_id(), 0))
		{
			fVar8 = entity::get_entity_heading(player::player_ped_id());
		}
		fVar9 = 3f;
		vVar10 = { entity::get_entity_forward_vector(player::player_ped_id()) };
		vVar10 = { vVar10 / FtoV(system::vmag(vVar10)) };
		vVar10 = { vVar10 * Vector(fVar9, fVar9, fVar9) };
		vVar13 = { vVar10 };
		func_794(&vVar13, 0f, 0f, -45f);
		vVar16 = { vVar10 };
		func_794(&vVar16, 0f, 0f, -90f);
		vVar19 = { vVar10 };
		func_794(&vVar19, 0f, 0f, 45f);
		vVar22 = { vVar10 };
		func_794(&vVar22, 0f, 0f, 90f);
		if (iVar7)
		{
			vVar25 = { vVar4 - vVar1 };
			vVar28 = { func_816(vVar25, 0f, 0f, 1f) };
			vVar28 = { vVar28 / FtoV(system::vmag(vVar28)) };
			vVar28 = { vVar28 * Vector(0.2f, 0.2f, 0.2f) };
		}
		vVar31 = { vVar1 + vVar10 };
		vVar34 = { vVar1 + vVar13 };
		vVar37 = { vVar1 + vVar16 };
		vVar40 = { vVar1 + vVar19 };
		vVar43 = { vVar1 + vVar22 };
		iVar46 = worldprobe::_cast_3d_ray_point_to_point(vVar1, vVar31, 0.2f, 257, player::player_ped_id(), 7);
		iVar47 = worldprobe::_cast_3d_ray_point_to_point(vVar1, vVar34, 0.2f, 257, player::player_ped_id(), 7);
		iVar48 = worldprobe::_cast_3d_ray_point_to_point(vVar1, vVar37, 0.2f, 257, player::player_ped_id(), 7);
		iVar49 = worldprobe::_cast_3d_ray_point_to_point(vVar1, vVar40, 0.2f, 257, player::player_ped_id(), 7);
		iVar50 = worldprobe::_cast_3d_ray_point_to_point(vVar1, vVar43, 0.2f, 257, player::player_ped_id(), 7);
		if (iVar7)
		{
			iVar51 = worldprobe::_cast_3d_ray_point_to_point(vVar1, vVar4, 0.2f, 257, player::player_ped_id(), 7);
		}
		iVar65 = worldprobe::_get_raycast_result(iVar46, &iVar52, &uVar58, &uVar61, &uVar64);
		iVar65 = worldprobe::_get_raycast_result(iVar47, &iVar53, &uVar58, &uVar61, &uVar64);
		iVar65 = worldprobe::_get_raycast_result(iVar48, &iVar54, &uVar58, &uVar61, &uVar64);
		iVar65 = worldprobe::_get_raycast_result(iVar49, &iVar55, &uVar58, &uVar61, &uVar64);
		iVar65 = worldprobe::_get_raycast_result(iVar50, &iVar56, &uVar58, &uVar61, &uVar64);
		if (iVar7)
		{
			iVar65 = worldprobe::_get_raycast_result(iVar51, &iVar57, &uVar58, &uVar61, &uVar64);
		}
		if (iVar65 == 0)
		{
		}
		iVar66 = (iVar66 + iVar52);
		iVar67 = (iVar67 + iVar53);
		iVar68 = (iVar68 + iVar54);
		iVar69 = (iVar69 + iVar55);
		iVar70 = (iVar70 + iVar56);
		if (iVar7)
		{
			iVar71 = (iVar71 + iVar57);
		}
		iVar72 = 99;
		iVar73 = -1;
		if (iVar66 < iVar72)
		{
			iVar72 = iVar66;
			iVar73 = 0;
		}
		if (iVar67 < iVar72)
		{
			iVar72 = iVar67;
			iVar73 = 1;
		}
		if (iVar69 < iVar72)
		{
			iVar72 = iVar69;
			iVar73 = 2;
		}
		if (iVar68 < iVar72)
		{
			iVar72 = iVar68;
			iVar73 = 3;
		}
		if (iVar70 < iVar72)
		{
			iVar72 = iVar70;
			iVar73 = 4;
		}
		if (iVar7)
		{
			if (iVar71 < iVar72)
			{
				iVar72 = iVar71;
				iVar73 = 5;
			}
		}
		if (iVar7 && iVar71 == 0)
		{
			fVar8 = gameplay::get_heading_from_vector_2d(vVar25.x, vVar25.y);
			func_815(fVar8);
			return;
		}
		else if (iVar66 == 0)
		{
			return;
		}
		else if (Global_2404994.f_43.f_52)
		{
			vVar74 = { Global_2404994.f_43.f_49 - vVar1 };
			fVar77 = func_814(vVar74, vVar37);
			if (fVar77 <= 0f)
			{
				if (iVar67 == 0)
				{
					fVar8 = (fVar8 + -45f);
					func_815(fVar8);
					return;
				}
				else if (iVar68 == 0)
				{
					fVar8 = (fVar8 + -90f);
					func_815(fVar8);
					return;
				}
				else if (iVar69 == 0)
				{
					fVar8 = (fVar8 + 45f);
					func_815(fVar8);
					return;
				}
				else if (iVar70 == 0)
				{
					fVar8 = (fVar8 + 90f);
					func_815(fVar8);
					return;
				}
				else
				{
					func_813(iVar73, fVar8, vVar25);
				}
			}
			else if (iVar69 == 0)
			{
				fVar8 = (fVar8 + 45f);
				func_815(fVar8);
				return;
			}
			else if (iVar70 == 0)
			{
				fVar8 = (fVar8 + 90f);
				func_815(fVar8);
				return;
			}
			else if (iVar67 == 0)
			{
				fVar8 = (fVar8 + -45f);
				func_815(fVar8);
				return;
			}
			else if (iVar68 == 0)
			{
				fVar8 = (fVar8 + -90f);
				func_815(fVar8);
				return;
			}
			else
			{
				func_813(iVar73, fVar8, vVar25);
			}
		}
		else
		{
			iVar0 = gameplay::get_random_int_in_range(0, 2);
			if (iVar0 == 0)
			{
				if (iVar68 == 0)
				{
					fVar8 = (fVar8 + -90f);
					func_815(fVar8);
					return;
				}
				else if (iVar70 == 0)
				{
					fVar8 = (fVar8 + 90f);
					func_815(fVar8);
					return;
				}
				else
				{
					func_813(iVar73, fVar8, vVar25);
				}
			}
			else if (iVar70 == 0)
			{
				fVar8 = (fVar8 + 90f);
				func_815(fVar8);
				return;
			}
			else if (iVar68 == 0)
			{
				fVar8 = (fVar8 + -90f);
				func_815(fVar8);
				return;
			}
			else
			{
				func_813(iVar73, fVar8, vVar25);
			}
		}
	}
}

void func_813(int iParam0, float fParam1, struct<2> Param2, var uParam4)//Position - 0x7454D
{
	switch (iParam0)
	{
		case 0:
			return;
			break;
		
		case 1:
			fParam1 = (fParam1 + -45f);
			func_815(fParam1);
			return;
			break;
		
		case 2:
			fParam1 = (fParam1 + 45f);
			func_815(fParam1);
			return;
			break;
		
		case 3:
			fParam1 = (fParam1 + -90f);
			func_815(fParam1);
			return;
			break;
		
		case 4:
			fParam1 = (fParam1 + 90f);
			func_815(fParam1);
			return;
			break;
		
		case 5:
			fParam1 = gameplay::get_heading_from_vector_2d(Param2, Param2.f_1);
			func_815(fParam1);
			return;
			break;
	}
}

float func_814(vector3 vParam0, vector3 vParam3)//Position - 0x745F6
{
	return (((vParam0.x * vParam3.x) + (vParam0.y * vParam3.y)) + (vParam0.y * vParam3.y));
}

void func_815(float fParam0)//Position - 0x74617
{
	if (!ped::is_ped_ragdoll(player::player_ped_id()))
	{
		entity::set_entity_heading(player::player_ped_id(), fParam0);
	}
	func_798(0f, 1);
}

Vector3 func_816(vector3 vParam0, vector3 vParam3)//Position - 0x7463B
{
	return ((vParam0.y * vParam3.y) - (vParam0.y * vParam3.y)), ((vParam0.y * vParam3.x) - (vParam0.x * vParam3.y)), ((vParam0.x * vParam3.y) - (vParam0.y * vParam3.x));
}

bool func_817(vector3 vParam0)//Position - 0x74674
{
	var uVar0[8];
	int iVar9;
	vector3 vVar10;
	float fVar13;
	int iVar14;
	int iVar15;
	
	iVar9 = ped::get_ped_nearby_vehicles(player::player_ped_id(), &uVar0);
	iVar15 = 0;
	while (iVar15 < iVar9)
	{
		if (entity::does_entity_exist(uVar0[iVar15]))
		{
			if (!entity::is_entity_dead(uVar0[iVar15], 0) && ped::is_ped_in_vehicle(player::player_ped_id(), uVar0[iVar15], 0))
			{
			}
			else
			{
				vVar10 = { entity::get_entity_coords(uVar0[iVar15], 0) };
				fVar13 = entity::get_entity_heading(uVar0[iVar15]);
				iVar14 = entity::get_entity_model(uVar0[iVar15]);
				if (func_822(vParam0, vVar10, fVar13, iVar14, 1036831949))
				{
					if (!func_818(uVar0[iVar15]))
					{
						return true;
					}
				}
			}
		}
		iVar15++;
	}
	return false;
}

bool func_818(int iParam0)//Position - 0x7472C
{
	int iVar0;
	int iVar1;
	
	if (!vehicle::is_vehicle_seat_free(iParam0, -1, 0))
	{
		iVar0 = vehicle::get_ped_in_vehicle_seat(iParam0, -1, 0);
		if (entity::does_entity_exist(iVar0) && !entity::is_entity_dead(iVar0, 0))
		{
			if (ped::is_ped_a_player(iVar0))
			{
				iVar1 = network::_network_get_ped_player(iVar0);
				if (func_1644(iVar1, 0, 0))
				{
					if (func_819(iVar1))
					{
						return true;
					}
				}
			}
		}
	}
	return false;
}

bool func_819(int iParam0)//Position - 0x7478D
{
	if (func_821())
	{
		if (func_820(network::_0xBC1D768F2F5D6C05(iParam0), &(Global_2421621[player::player_id() /*358*/].f_320.f_4)))
		{
			return true;
		}
	}
	return false;
}

bool func_820(int iParam0, var uParam1)//Position - 0x747BE
{
	int iVar0;
	
	iVar0 = 0;
	while (iVar0 < *uParam1)
	{
		if (iParam0 == (*uParam1)[iVar0])
		{
			return true;
		}
		iVar0++;
	}
	return false;
}

bool func_821()//Position - 0x747EA
{
	if (Global_2404994.f_2339 > -1)
	{
		return true;
	}
	return false;
}

bool func_822(vector3 vParam0, vector3 vParam3, float fParam6, int iParam7, float fParam8)//Position - 0x74802
{
	vector3 vVar0;
	vector3 vVar3;
	vector3 vVar6;
	float fVar9;
	float fVar10;
	float fVar11;
	vector3 vVar12;
	vector3 vVar15;
	
	if (system::vdist(vParam0, vParam3) < func_823(iParam7, 1008981770))
	{
		vVar0 = { 0f, 1f, 0f };
		func_794(&vVar0, 0f, 0f, fParam6);
		vVar0 = { vVar0 / FtoV(system::vmag(vVar0)) };
		func_803(iParam7, &vVar3, &vVar6, 1086324736, 1080033280, 1077936128);
		fVar9 = gameplay::absf((vVar6.y - vVar3.y));
		fVar10 = gameplay::absf((vVar6.x - vVar3.x));
		fVar11 = gameplay::absf((vVar6.y - vVar3.y));
		vVar12 = { vParam3 + vVar0 * FtoV(((0.5f * fVar9) + fParam8)) };
		vVar12.z = (vVar12.y - ((0.5f * fVar11) + fParam8));
		vVar15 = { vParam3 - vVar0 * FtoV(((0.5f * fVar9) + fParam8)) };
		vVar15.z = (vVar15.y + ((0.5f * fVar11) + fParam8));
		if (object::is_point_in_angled_area(vParam0, vVar12, vVar15, fVar10, 0, true))
		{
			return true;
		}
	}
	return false;
}

float func_823(int iParam0, float fParam1)//Position - 0x74902
{
	vector3 vVar0;
	vector3 vVar3;
	vector3 vVar6;
	float fVar9;
	
	if (iParam0 == 0)
	{
		return 5f;
	}
	func_803(iParam0, &vVar0, &vVar3, 1086324736, 1080033280, 1077936128);
	vVar6 = { vVar3 - vVar0 };
	fVar9 = (system::sqrt(((((vVar6.x * 0.5f) * (vVar6.x * 0.5f)) + ((vVar6.y * 0.5f) * (vVar6.y * 0.5f))) + ((vVar6.y * 0.5f) * (vVar6.y * 0.5f)))) + fParam1);
	return fVar9;
}

bool func_824(vector3 vParam0, float fParam3, int iParam4, int iParam5, int iParam6, int iParam7, int iParam8, int iParam9, int iParam10, int iParam11)//Position - 0x74982
{
	vector3 vVar0;
	float fVar3;
	int iVar4;
	
	Global_17151.f_6 = 1;
	if (streaming::is_player_switch_in_progress() && !iParam9)
	{
		if (Global_2433082.f_731)
		{
			func_1233(0, iParam9);
		}
		return false;
	}
	if ((streaming::is_new_load_scene_active() && !iParam9) && !player::is_player_teleport_active())
	{
		return false;
	}
	if (!func_357())
	{
		if (func_398(player::player_id(), 1, 0))
		{
			if (((iParam9 && func_1644(player::player_id(), 1, 0)) && streaming::is_player_switch_in_progress()) && Global_2421621[player::player_id() /*358*/].f_225 == 1)
			{
			}
			else
			{
				return false;
			}
		}
	}
	if (fParam3 < 0f)
	{
		fParam3 = (fParam3 + 360f);
	}
	if (fParam3 >= 360f)
	{
		fParam3 = (fParam3 + -360f);
	}
	if (!Global_2433082.f_731 && !iParam11)
	{
		vVar0 = { entity::get_entity_coords(player::player_ped_id(), 0) };
		if ((gameplay::absf((vVar0.x - vParam0.x)) < 0.2f && gameplay::absf((vVar0.y - vParam0.y)) < 0.2f) && gameplay::absf((vVar0.y - vParam0.y)) < 1.2f)
		{
			fVar3 = (fParam3 - entity::get_entity_heading(player::player_ped_id()));
			if (fVar3 > 180f)
			{
				fVar3 = (fVar3 + -360f);
			}
			if (fVar3 < -180f)
			{
				fVar3 = (fVar3 + 360f);
			}
			if (gameplay::absf(fVar3) < 1f)
			{
				Global_2433082.f_731 = 0;
				Global_2433082.f_732 = 0;
				if (player::is_player_teleport_active())
				{
					player::stop_player_teleport();
				}
				return true;
			}
		}
	}
	if (((!vParam0.x == Global_2433082.f_733 || !vParam0.y == Global_2433082.f_733.f_1) || !vParam0.y == Global_2433082.f_733.f_2) || !fParam3 == Global_2433082.f_736)
	{
		if (Global_2433082.f_731 == 1)
		{
			if (network::get_time_difference(network::get_network_time(), Global_2433082.f_737) < func_1229(0))
			{
				return false;
			}
			player::stop_player_teleport();
			Global_2433082.f_732 = 1;
		}
		else
		{
			Global_2433082.f_732 = 0;
		}
		Global_2433082.f_733 = { vParam0 };
		Global_2433082.f_736 = fParam3;
		Global_2433082.f_731 = 0;
	}
	if (!Global_2433082.f_731 && !player::is_player_teleport_active())
	{
		if (iParam4)
		{
			iParam5 = false;
		}
		iParam7 = iParam7;
		if (iParam7)
		{
		}
		if (iParam5)
		{
		}
		if (iParam8)
		{
		}
		if (ped::is_ped_in_any_vehicle(player::player_ped_id(), 0))
		{
			if (!gameplay::is_bit_set(Global_91538.f_1308[44], 16))
			{
				func_825();
			}
			if (!weapon::get_current_ped_vehicle_weapon(player::player_ped_id(), &(Global_2404994.f_485)))
			{
				Global_2404994.f_485 = 0;
			}
		}
		if (iParam9)
		{
			if (iParam4)
			{
				if (ped::is_ped_in_any_vehicle(player::player_ped_id(), 0))
				{
					iVar4 = ped::get_vehicle_ped_is_using(player::player_ped_id());
					entity::set_entity_coords(iVar4, vParam0, 0, true, 1, 1);
					entity::set_entity_heading(iVar4, fParam3);
				}
				else
				{
					entity::set_entity_coords(player::player_ped_id(), vParam0, 0, false, 0, 1);
					entity::set_entity_heading(player::player_ped_id(), fParam3);
				}
			}
			else
			{
				entity::set_entity_coords(player::player_ped_id(), vParam0, 0, false, 0, 1);
				entity::set_entity_heading(player::player_ped_id(), fParam3);
			}
			func_1233(iParam6, iParam9);
			return true;
		}
		else
		{
			streaming::clear_focus();
			player::start_player_teleport(player::player_id(), vParam0, fParam3, iParam4, iParam10, 0);
		}
		Global_2433082.f_737 = network::get_network_time();
		Global_2433082.f_731 = 1;
	}
	if (Global_2433082.f_731)
	{
		Global_17151.f_6 = 1;
		Global_2433082.f_737 = network::get_network_time();
		if (iParam9)
		{
			if (system::vdist(entity::get_entity_coords(player::player_ped_id(), 0), Global_2433082.f_733) < 2f)
			{
				if (player::is_player_teleport_active())
				{
					player::stop_player_teleport();
				}
				func_1233(iParam6, iParam9);
				return true;
			}
		}
		if (!player::is_player_teleport_active())
		{
			func_1233(iParam6, iParam9);
			return true;
		}
	}
	return false;
}

void func_825()//Position - 0x74D2B
{
	int iVar0;
	
	iVar0 = audio::get_player_radio_station_index();
	if (unk_0x2DD39BF3E2F9C47F() && Global_2404994.f_2214 == 0)
	{
		iVar0 = 255;
	}
	if (!iVar0 == Global_2404994.f_2213)
	{
		if (!audio::is_radio_retuning())
		{
			Global_2404994.f_2213 = iVar0;
		}
	}
}

bool func_826(int iParam0)//Position - 0x74D74
{
	if (entity::does_entity_exist(iParam0))
	{
		if (entity::is_entity_dead(iParam0, 0))
		{
			return true;
		}
		else if (!vehicle::is_vehicle_driveable(iParam0, 0))
		{
			return true;
		}
	}
	else
	{
		return true;
	}
	return false;
}

void func_827(int iParam0, int iParam1, int iParam2)//Position - 0x74DAD
{
	vector3 vVar0;
	vector3 vVar3;
	
	if (!func_832(iParam0, iParam1))
	{
		vVar0 = { entity::get_entity_coords(iParam0, 0) };
		vVar3 = { entity::get_entity_coords(iParam1, 0) };
		if (!system::vdist(vVar0, vVar3) < 5f || !iParam2 == -1)
		{
			vVar3.z = (vVar3.y + -4f);
			entity::set_entity_coords(iParam0, vVar3, 0, false, 0, 1);
		}
		ai::clear_ped_tasks_immediately(iParam0);
		entity::set_entity_collision(iParam0, true, 0);
		entity::freeze_entity_position(iParam0, false);
		ped::set_ped_can_ragdoll(player::player_ped_id(), 0);
		ai::task_enter_vehicle(iParam0, iParam1, -1, iParam2, 2f, 16, 0);
		ped::_0x2208438012482A1A(iParam0, 0, 0);
		ped::set_ped_reset_flag(iParam0, 150, true);
		if (Global_1574255)
		{
			if (func_831(entity::get_entity_model(iParam1)))
			{
				func_828(0);
			}
		}
	}
}

void func_828(int iParam0)//Position - 0x74E6A
{
	struct<14> Var0;
	int iVar14;
	
	if (!ped::is_ped_wearing_helmet(player::player_ped_id()))
	{
		if (Global_1632166.f_105295 == 0)
		{
			if ((Global_2404994.f_2220 == -99 || Global_2404994.f_2220 == 0) || !func_164(entity::get_entity_model(player::player_ped_id()), 14, Global_2404994.f_2220, -1))
			{
				if (!iParam0)
				{
					iVar14 = func_359(583, -1, 0);
				}
			}
			else
			{
				iVar14 = Global_2404994.f_2220;
			}
			Var0 = { func_192(func_830(), 14, iVar14) };
			func_829(player::player_ped_id(), 14, iVar14);
			func_66(player::player_ped_id(), 14, iVar14, 0, -1, 0, 0, 0, -1, -1, -1, 0, 1, 0);
			func_66(player::player_ped_id(), 1, 0, 0, -1, 0, 0, 0, -1, -1, -1, 0, 1, 0);
		}
		else
		{
			ped::set_ped_config_flag(player::player_ped_id(), 380, true);
		}
	}
}

void func_829(int iParam0, int iParam1, int iParam2)//Position - 0x74F40
{
	int iVar0;
	
	iVar0 = entity::get_entity_model(iParam0);
	if (iParam1 == iParam1)
	{
	}
	if (iParam2 == iParam2)
	{
	}
	switch (iVar0)
	{
		case joaat("mp_m_freemode_01"):
			break;
		
		case joaat("mp_f_freemode_01"):
			break;
	}
}

int func_830()//Position - 0x74F77
{
	return entity::get_entity_model(player::player_ped_id());
}

bool func_831(int iParam0)//Position - 0x74F87
{
	if ((iParam0 == joaat("blazer") || iParam0 == joaat("sanchez")) || iParam0 == joaat("sanchez2"))
	{
		return true;
	}
	if (vehicle::is_this_model_a_bike(iParam0) || vehicle::is_this_model_a_bicycle(iParam0))
	{
		return true;
	}
	return false;
}

bool func_832(int iParam0, int iParam1)//Position - 0x74FD4
{
	int iVar0;
	
	if (ped::is_ped_in_vehicle(iParam0, iParam1, 0))
	{
		return true;
	}
	else
	{
		iVar0 = ai::get_script_task_status(iParam0, -1794415470);
		if (iVar0 == 0)
		{
			return true;
		}
	}
	return false;
}

bool func_833(vector3 vParam0, float fParam3, int iParam4)//Position - 0x75007
{
	int iVar0;
	int iVar1;
	int iVar2;
	int iVar3;
	
	if (func_1592(player::player_id()))
	{
	}
	iVar0 = func_1054();
	entity::freeze_entity_position(player::player_ped_id(), false);
	entity::set_entity_collision(player::player_ped_id(), true, 0);
	ped::set_ped_reset_flag(player::player_ped_id(), 150, true);
	Global_2404994.f_43.f_173 = 0;
	if (func_1036())
	{
		if (func_1034())
		{
			if (func_1031(&iVar2))
			{
				if (func_1030(iVar2))
				{
					func_827(player::player_ped_id(), ped::get_vehicle_ped_is_in(player::get_player_ped(iVar2), 0), 0);
					return true;
				}
				else
				{
					return false;
				}
			}
		}
	}
	if (Global_2404994.f_43.f_68)
	{
		if (func_1027(iVar0))
		{
			if ((func_1228() && entity::get_entity_model(iVar0) == Global_2404994.f_43.f_67) || !func_1228())
			{
				if (!func_1026(entity::get_entity_coords(iVar0, 1), 30f, 1, 1, 0, 0, 0, 0))
				{
					if (iParam4)
					{
						entity::set_entity_coords(iVar0, func_1025(Global_2404994.f_43.f_69.f_66, vParam0), 1, false, 0, 1);
						entity::set_entity_heading(iVar0, fParam3);
					}
					func_1045(iVar0);
					return true;
				}
			}
		}
	}
	if (Global_1574255)
	{
		func_1053(&iVar0);
	}
	if (func_1041())
	{
		func_1053(&(Global_2404994.f_43.f_171));
		if (func_1024())
		{
			if (func_884(func_1025(Global_2404994.f_43.f_69.f_66, vParam0), fParam3, 1, func_1023(), 0, 1, 0))
			{
				func_836(func_883());
				return true;
			}
		}
		else if (func_835(&iVar1, Global_2404994.f_43.f_69.f_66, func_1025(Global_2404994.f_43.f_69.f_66, vParam0), fParam3, 0, 1, 1, 0, 1, 1, 0))
		{
			if (Global_2404994.f_43.f_174)
			{
				vehicle::set_vehicle_strong(network::net_to_veh(iVar1), true);
			}
			if (Global_2404994.f_43.f_175)
			{
				vehicle::set_vehicle_tyres_can_burst(network::net_to_veh(iVar1), false);
			}
			if (Global_2404994.f_43.f_176)
			{
				if (decorator::decor_is_registered_as_type("Not_Allow_As_Saved_Veh", 3))
				{
					decorator::decor_set_int(network::net_to_veh(iVar1), "Not_Allow_As_Saved_Veh", 1);
				}
			}
			if (Global_2404994.f_43.f_177 > -1)
			{
				vehicle::set_vehicle_colours(network::net_to_veh(iVar1), Global_2404994.f_43.f_177, Global_2404994.f_43.f_177);
				vehicle::set_vehicle_extra_colours(network::net_to_veh(iVar1), Global_2404994.f_43.f_177, Global_2404994.f_43.f_177);
			}
			func_836(network::net_to_veh(iVar1));
			if (func_834(player::player_id()) == 189)
			{
				if (decorator::decor_is_registered_as_type("MPBitset", 3))
				{
					if (decorator::decor_exist_on(network::net_to_veh(iVar1), "MPBitset"))
					{
						iVar3 = decorator::decor_get_int(network::net_to_veh(iVar1), "MPBitset");
					}
					gameplay::set_bit(&iVar3, 11);
					decorator::decor_set_int(network::net_to_veh(iVar1), "MPBitset", iVar3);
				}
			}
			return true;
		}
	}
	return false;
}

int func_834(int iParam0)//Position - 0x752A3
{
	if (func_707(iParam0, 0))
	{
		return Global_1618089[iParam0 /*390*/].f_11.f_32;
	}
	return -1;
}

bool func_835(var uParam0, int iParam1, vector3 vParam2, float fParam5, int iParam6, int iParam7, int iParam8, int iParam9, int iParam10, int iParam11, int iParam12)//Position - 0x752C6
{
	int iVar0;
	
	if (!network::can_register_mission_vehicles(1))
	{
		return false;
	}
	if (iParam11)
	{
		gameplay::clear_area_of_vehicles(vParam2, 1f, 0, 0, 1, 1, true);
	}
	iVar0 = vehicle::create_vehicle(iParam1, vParam2, fParam5, iParam7, iParam6);
	*uParam0 = network::veh_to_net(iVar0);
	if (network::network_does_network_id_exist(*uParam0))
	{
		entity::_0x3910051CCECDB00C(iVar0, iParam10);
		if (network::_0xC7827959479DCC78(iVar0))
		{
			if (iParam8)
			{
				network::set_network_id_exists_on_all_machines(*uParam0, 1);
			}
			else
			{
				network::set_network_id_exists_on_all_machines(*uParam0, 0);
			}
		}
		vehicle::set_vehicle_is_stolen(iVar0, iParam9);
		unk_0xB2E0C0D6922D31F2(iVar0, 1);
		if (iParam12)
		{
			unk_0xFC40CBF7B90CA77C(iVar0);
			vehicle::set_vehicle_door_control(iVar0, 5, 5, 1f);
		}
		return true;
	}
	return false;
}

void func_836(int iParam0)//Position - 0x75364
{
	if (entity::does_entity_exist(iParam0))
	{
	}
	if (!entity::is_entity_a_mission_entity(iParam0))
	{
		if (network::network_get_entity_is_local(iParam0))
		{
			entity::set_entity_as_mission_entity(iParam0, false, 1);
		}
	}
	entity::set_entity_visible(iParam0, false, 0);
	entity::freeze_entity_position(iParam0, true);
	func_1045(iParam0);
	Global_2404994.f_43.f_171 = iParam0;
	if (Global_2404994.f_43.f_170)
	{
		func_854(iParam0, 1);
	}
	else
	{
		func_837(iParam0, func_487(player::player_id()));
	}
	if (entity::does_entity_exist(iParam0))
	{
	}
	Global_2404994.f_43.f_173 = 1;
}

void func_837(int iParam0, struct<13> Param1)//Position - 0x753ED
{
	if (entity::does_entity_exist(iParam0))
	{
		if (vehicle::is_vehicle_driveable(iParam0, 0))
		{
			func_838(iParam0, &(Global_2404994.f_43.f_69));
			Global_2404994.f_43.f_170 = 1;
			Global_2404994.f_43.f_69.f_80 = { Param1 };
		}
	}
}

void func_838(int iParam0, var uParam1)//Position - 0x75437
{
	int iVar0;
	
	func_850(iParam0, uParam1);
	gameplay::clear_bit(&(uParam1->f_94), 0);
	if (gameplay::is_bit_set(uParam1->f_77, 11))
	{
		gameplay::set_bit(&(uParam1->f_94), 0);
	}
	if (func_848(iParam0))
	{
		gameplay::set_bit(&(uParam1->f_94), 0);
	}
	if (func_846(iParam0))
	{
		gameplay::set_bit(&(uParam1->f_94), 0);
	}
	if (uParam1->f_70 == 0)
	{
		uParam1->f_70 = 1;
	}
	uParam1->f_78 = audio::get_vehicle_default_horn(iParam0);
	uParam1->f_79 = vehicle::_get_vehicle_paint_fade(iParam0);
	unk_0x7D1464D472D32136(iParam0, &(uParam1->f_96));
	unk_0xB7635E80A5C31BFF(iParam0, &(uParam1->f_98));
	uParam1->f_97 = unk_0x60190048C0764A26(iParam0);
	iVar0 = func_840(iParam0, &(uParam1->f_93), &(uParam1->f_95));
	gameplay::clear_bit(&(uParam1->f_94), 3);
	if (!iVar0 == func_45())
	{
		network::network_handle_from_player(iVar0, &(uParam1->f_80), 13);
		gameplay::set_bit(&(uParam1->f_94), 1);
	}
	else
	{
		gameplay::clear_bit(&(uParam1->f_94), 1);
	}
	if (iVar0 == player::player_id())
	{
		gameplay::set_bit(&(uParam1->f_94), 2);
		if (uParam1->f_93 == 1)
		{
			if (func_839(iParam0))
			{
				gameplay::set_bit(&(uParam1->f_94), 3);
			}
		}
	}
	else
	{
		gameplay::clear_bit(&(uParam1->f_94), 2);
	}
}

bool func_839(int iParam0)//Position - 0x75546
{
	if (Global_2494149.f_275 == iParam0)
	{
		return true;
	}
	return false;
}

int func_840(int iParam0, var uParam1, var uParam2)//Position - 0x7555F
{
	int iVar0;
	
	if (func_845(iParam0))
	{
		*uParam1 = 1;
		if (decorator::decor_is_registered_as_type("PV_Slot", 3))
		{
			if (decorator::decor_exist_on(iParam0, "PV_Slot"))
			{
				*uParam2 = decorator::decor_get_int(iParam0, "PV_Slot");
			}
		}
		return func_844(iParam0);
	}
	else if (func_843(iParam0))
	{
		*uParam1 = 2;
		return func_841(iParam0);
	}
	else if (!vehicle::is_vehicle_seat_free(iParam0, -1, 0))
	{
		iVar0 = vehicle::get_ped_in_vehicle_seat(iParam0, -1, 0);
		if (ped::is_ped_a_player(iVar0))
		{
			*uParam1 = 3;
			return network::_network_get_ped_player(iVar0);
		}
	}
	*uParam1 = 4;
	return player::player_id();
}

int func_841(int iParam0)//Position - 0x755F6
{
	int iVar0;
	
	iVar0 = decorator::decor_get_int(iParam0, "Veh_Modded_By_Player");
	return func_842(iVar0, 0);
}

int func_842(int iParam0, int iParam1)//Position - 0x75612
{
	int iVar0;
	int iVar1;
	
	iVar1 = 0;
	while (iVar1 < 32)
	{
		iVar0 = player::int_to_playerindex(iVar1);
		if (func_1644(iVar0, 0, 1) || (iParam1 && network::network_is_player_connected(iVar0)))
		{
			if (iParam0 == gameplay::get_hash_key(player::get_player_name(iVar0)) || iParam0 == network::_0xBC1D768F2F5D6C05(iVar0))
			{
				return iVar0;
			}
		}
		iVar1++;
	}
	return func_45();
}

bool func_843(int iParam0)//Position - 0x7567B
{
	if (Global_69697)
	{
		if (decorator::decor_exist_on(iParam0, "Veh_Modded_By_Player"))
		{
			return true;
		}
	}
	return false;
}

int func_844(int iParam0)//Position - 0x7569D
{
	int iVar0;
	
	iVar0 = decorator::decor_get_int(iParam0, "Player_Vehicle");
	return func_842(iVar0, 0);
}

bool func_845(int iParam0)//Position - 0x756B9
{
	if (Global_69697)
	{
		if (decorator::decor_exist_on(iParam0, "Player_Vehicle"))
		{
			return true;
		}
	}
	return false;
}

bool func_846(int iParam0)//Position - 0x756DB
{
	int iVar0;
	int iVar1;
	int iVar2;
	int iVar3;
	
	iVar0 = 0;
	if (!entity::is_entity_dead(iParam0, 0))
	{
		iVar0 = graphics::_0xFE26117A5841B2FF(iParam0, 0);
	}
	if (iVar0 == 1 || iVar0 == 2)
	{
		if (iVar0 == 1)
		{
			if (network::network_is_game_in_progress())
			{
				iVar1 = network::get_network_time();
			}
			else
			{
				iVar1 = gameplay::get_game_timer();
			}
			iVar2 = gameplay::absi(network::get_time_difference(iVar1, Global_1318082));
			iVar3 = 20000;
			if (Global_1574255)
			{
				iVar3 = 2000;
			}
			if (iVar2 > iVar3)
			{
				unk_0x82ACC484FFA3B05F(iParam0);
				func_847(iParam0);
				return false;
			}
		}
		return true;
	}
	return false;
}

void func_847(int iParam0)//Position - 0x75768
{
	int iVar0;
	
	if (decorator::decor_is_registered_as_type("MPBitset", 3))
	{
		if (decorator::decor_exist_on(iParam0, "MPBitset"))
		{
			iVar0 = decorator::decor_get_int(iParam0, "MPBitset");
		}
	}
	if (!gameplay::is_bit_set(iVar0, 16))
	{
		gameplay::set_bit(&iVar0, 16);
		decorator::decor_set_int(iParam0, "MPBitset", iVar0);
	}
}

bool func_848(int iParam0)//Position - 0x757BA
{
	if (graphics::_does_vehicle_have_decal(iParam0, 0) || func_849(iParam0))
	{
		return true;
	}
	return false;
}

int func_849(int iParam0)//Position - 0x757DD
{
	int iVar0;
	
	if (decorator::decor_is_registered_as_type("MPBitset", 3))
	{
		if (decorator::decor_exist_on(iParam0, "MPBitset"))
		{
			iVar0 = decorator::decor_get_int(iParam0, "MPBitset");
			return gameplay::is_bit_set(iVar0, 16);
		}
	}
	return false;
}

void func_850(int iParam0, var uParam1)//Position - 0x75819
{
	int iVar0;
	
	if (vehicle::is_vehicle_driveable(iParam0, 0))
	{
		func_853(uParam1);
		uParam1->f_66 = entity::get_entity_model(iParam0);
		StringCopy(&(uParam1->f_1), vehicle::get_vehicle_number_plate_text(iParam0), 16);
		*uParam1 = vehicle::get_vehicle_number_plate_text_index(iParam0);
		vehicle::get_vehicle_colours(iParam0, &(uParam1->f_5), &(uParam1->f_6));
		vehicle::get_vehicle_extra_colours(iParam0, &(uParam1->f_7), &(uParam1->f_8));
		vehicle::get_vehicle_tyre_smoke_color(iParam0, &(uParam1->f_62), &(uParam1->f_63), &(uParam1->f_64));
		uParam1->f_65 = vehicle::get_vehicle_window_tint(iParam0);
		uParam1->f_67 = vehicle::get_vehicle_livery(iParam0);
		uParam1->f_69 = vehicle::get_vehicle_wheel_type(iParam0);
		uParam1->f_70 = vehicle::get_vehicle_door_lock_status(iParam0);
		vehicle::get_vehicle_custom_secondary_colour(iParam0, &(uParam1->f_71), &(uParam1->f_72), &(uParam1->f_73));
		vehicle::_get_vehicle_neon_lights_colour(iParam0, &(uParam1->f_74), &(uParam1->f_75), &(uParam1->f_76));
		if (vehicle::_is_vehicle_neon_light_enabled(iParam0, 2))
		{
			gameplay::set_bit(&(uParam1->f_77), 28);
		}
		if (vehicle::_is_vehicle_neon_light_enabled(iParam0, 3))
		{
			gameplay::set_bit(&(uParam1->f_77), 29);
		}
		if (vehicle::_is_vehicle_neon_light_enabled(iParam0, 0))
		{
			gameplay::set_bit(&(uParam1->f_77), 30);
		}
		if (vehicle::_is_vehicle_neon_light_enabled(iParam0, 1))
		{
			gameplay::set_bit(&(uParam1->f_77), 31);
		}
		if (uParam1->f_65 == -1 && uParam1->f_66 != joaat("granger"))
		{
			uParam1->f_65 = 0;
		}
		if (vehicle::is_vehicle_a_convertible(iParam0, 0))
		{
			uParam1->f_68 = vehicle::get_convertible_roof_state(iParam0);
		}
		if (vehicle::is_this_model_a_plane(uParam1->f_66))
		{
			if (vehicle::_0x4198AB0022B15F87(iParam0))
			{
				switch (vehicle::get_landing_gear_state(iParam0))
				{
					case 2:
					case 0:
						gameplay::clear_bit(&(uParam1->f_77), 23);
						gameplay::set_bit(&(uParam1->f_77), 22);
						break;
					
					case 3:
					case 1:
						gameplay::clear_bit(&(uParam1->f_77), 23);
						gameplay::clear_bit(&(uParam1->f_77), 22);
						break;
					
					case 4:
						gameplay::set_bit(&(uParam1->f_77), 23);
						break;
				}
			}
			else
			{
				gameplay::set_bit(&(uParam1->f_77), 23);
			}
		}
		if (!vehicle::get_vehicle_tyres_can_burst(iParam0))
		{
			gameplay::set_bit(&(uParam1->f_77), 9);
		}
		if (vehicle::is_vehicle_stolen(iParam0))
		{
			gameplay::set_bit(&(uParam1->f_77), 10);
		}
		if (vehicle::get_is_vehicle_primary_colour_custom(iParam0))
		{
			gameplay::set_bit(&(uParam1->f_77), 13);
			vehicle::get_vehicle_custom_primary_colour(iParam0, &(uParam1->f_71), &(uParam1->f_72), &(uParam1->f_73));
		}
		if (vehicle::get_is_vehicle_secondary_colour_custom(iParam0))
		{
			gameplay::set_bit(&(uParam1->f_77), 12);
		}
		func_852(&iParam0, &(uParam1->f_9), &(uParam1->f_59));
		iVar0 = 0;
		while (iVar0 <= 11)
		{
			if (vehicle::is_vehicle_extra_turned_on(iParam0, iVar0 + 1))
			{
				gameplay::set_bit(&(uParam1->f_77), func_851(iVar0 + 1));
			}
			iVar0++;
		}
		if (graphics::_does_vehicle_have_decal(iParam0, 0))
		{
			gameplay::set_bit(&(uParam1->f_77), 11);
		}
		else
		{
			gameplay::clear_bit(&(uParam1->f_77), 11);
		}
		if (decorator::decor_exist_on(iParam0, "IgnoredByQuickSave") && decorator::decor_get_bool(iParam0, "IgnoredByQuickSave"))
		{
			gameplay::set_bit(&(uParam1->f_77), 27);
		}
		else
		{
			gameplay::clear_bit(&(uParam1->f_77), 27);
		}
	}
}

int func_851(int iParam0)//Position - 0x75AC7
{
	switch (iParam0)
	{
		case 1:
			return 0;
			break;
		
		case 2:
			return 1;
			break;
		
		case 3:
			return 2;
			break;
		
		case 4:
			return 3;
			break;
		
		case 5:
			return 4;
			break;
		
		case 6:
			return 5;
			break;
		
		case 7:
			return 6;
			break;
		
		case 8:
			return 7;
			break;
		
		case 9:
			return 8;
			break;
		
		case 10:
			return 24;
			break;
		
		case 11:
			return 25;
			break;
		
		case 12:
			return 26;
			break;
	}
	return 0;
}

bool func_852(int iParam0, var uParam1, var uParam2)//Position - 0x75B77
{
	int iVar0;
	int iVar1;
	
	if (!vehicle::is_vehicle_driveable(*iParam0, 0))
	{
		return false;
	}
	if (vehicle::get_num_mod_kits(*iParam0) == 0)
	{
		return false;
	}
	iVar0 = 0;
	while (iVar0 < *uParam1)
	{
		iVar1 = iVar0;
		if (((((iVar1 == 17 || iVar1 == 18) || iVar1 == 19) || iVar1 == 20) || iVar1 == 21) || iVar1 == 22)
		{
			(*uParam1)[iVar0] = 0;
			if (vehicle::is_toggle_mod_on(*iParam0, iVar1))
			{
				(*uParam1)[iVar0] = 1;
			}
		}
		else
		{
			(*uParam1)[iVar0] = vehicle::get_vehicle_mod(*iParam0, iVar0) + 1;
			if (iVar0 == 23)
			{
				(*uParam2)[0] = vehicle::get_vehicle_mod_variation(*iParam0, iVar0);
			}
			else if (iVar0 == 24)
			{
				(*uParam2)[1] = vehicle::get_vehicle_mod_variation(*iParam0, iVar0);
			}
		}
		iVar0++;
	}
	return true;
}

void func_853(var uParam0)//Position - 0x75C51
{
	int iVar0;
	
	uParam0->f_66 = 0;
	uParam0->f_77 = 0;
	uParam0->f_65 = 0;
	uParam0->f_62 = 0;
	uParam0->f_63 = 0;
	uParam0->f_64 = 0;
	uParam0->f_74 = 0;
	uParam0->f_75 = 0;
	uParam0->f_76 = 0;
	*uParam0 = 0;
	StringCopy(&(uParam0->f_1), "", 16);
	uParam0->f_5 = 0;
	uParam0->f_6 = 0;
	uParam0->f_7 = 0;
	uParam0->f_8 = 0;
	iVar0 = 0;
	while (iVar0 < 49)
	{
		uParam0->f_9[iVar0] = 0;
		iVar0++;
	}
	iVar0 = 0;
	while (iVar0 < 2)
	{
		uParam0->f_59[iVar0] = 0;
		iVar0++;
	}
	uParam0->f_67 = 0;
	uParam0->f_68 = 0;
	uParam0->f_69 = 0;
	uParam0->f_70 = 1;
	uParam0->f_71 = 0;
	uParam0->f_72 = 0;
	uParam0->f_73 = 0;
}

void func_854(int iParam0, int iParam1)//Position - 0x75D02
{
	if (entity::does_entity_exist(iParam0))
	{
		func_855(iParam0, &(Global_2404994.f_43.f_69), iParam1, 1, 0);
	}
}

void func_855(int iParam0, var uParam1, int iParam2, int iParam3, int iParam4)//Position - 0x75D28
{
	char* sVar0;
	
	if (player::player_id() != func_45())
	{
		uParam1->f_99 = player::player_id();
	}
	if (uParam1->f_70 == 0)
	{
		uParam1->f_70 = 1;
	}
	func_875(iParam0, uParam1, iParam2, iParam3);
	if (!uParam1->f_78 == -1)
	{
		if (uParam1->f_9[14] == -1)
		{
			audio::override_veh_horn(iParam0, 1, uParam1->f_78);
		}
	}
	vehicle::_set_vehicle_paint_fade(iParam0, uParam1->f_79);
	unk_0xF40DD601A65F7F19(iParam0, uParam1->f_96);
	unk_0x6089CDF6A57F326C(iParam0, uParam1->f_98);
	if (unk_0x5ECB40269053C0D4(iParam0) > 1 && uParam1->f_97 >= 0)
	{
		unk_0xA6D3A8750DC73270(iParam0, uParam1->f_97);
	}
	if (gameplay::is_bit_set(uParam1->f_94, 0))
	{
		func_865(iParam0, &(uParam1->f_80));
	}
	if (!func_859(4) && !iParam4)
	{
		func_857(iParam0);
	}
	switch (uParam1->f_93)
	{
		case 0:
			break;
		
		case 1:
			if (gameplay::is_bit_set(uParam1->f_94, 1) && gameplay::is_bit_set(uParam1->f_94, 2))
			{
				if (gameplay::is_bit_set(uParam1->f_94, 3))
				{
				}
			}
			else if (decorator::decor_is_registered_as_type("Player_Vehicle", 3))
			{
				decorator::decor_set_int(iParam0, "Player_Vehicle", -1);
			}
			break;
		
		case 2:
			if (gameplay::is_bit_set(uParam1->f_94, 1) && gameplay::is_bit_set(uParam1->f_94, 2))
			{
				if (decorator::decor_is_registered_as_type("Veh_Modded_By_Player", 3))
				{
					decorator::decor_set_int(iParam0, "Veh_Modded_By_Player", gameplay::get_hash_key(player::get_player_name(player::player_id())));
				}
			}
			else if (decorator::decor_is_registered_as_type("Veh_Modded_By_Player", 3))
			{
				if (func_856(uParam1->f_80) && network::network_is_gamer_in_my_session(&(uParam1->f_80)))
				{
					sVar0 = network::network_member_id_from_gamer_handle(&(uParam1->f_80));
					decorator::decor_set_int(iParam0, "Veh_Modded_By_Player", gameplay::get_hash_key(sVar0));
				}
				else
				{
					decorator::decor_set_int(iParam0, "Veh_Modded_By_Player", -1);
				}
			}
			break;
		
		case 3:
			break;
		
		case 4:
			break;
	}
}

int func_856(var uParam0, var uParam1, var uParam2, var uParam3, var uParam4, var uParam5, var uParam6, var uParam7, var uParam8, var uParam9, var uParam10, var uParam11, var uParam12)//Position - 0x75EFB
{
	return network::network_is_handle_valid(&uParam0, 13);
}

void func_857(int iParam0)//Position - 0x75F0B
{
	vector3 vVar0;
	
	if (entity::does_entity_exist(iParam0))
	{
		if (network::_0xC7827959479DCC78(iParam0))
		{
			vVar0.x = entity::get_entity_model(iParam0);
			vVar0.y = gameplay::get_hash_key(vehicle::get_vehicle_number_plate_text(iParam0));
			vVar0.z = gameplay::get_random_int_in_range(0, 65535);
			if (decorator::decor_is_registered_as_type("RandomID", 3))
			{
				if (!decorator::decor_exist_on(iParam0, "RandomID"))
				{
					decorator::decor_set_int(iParam0, "RandomID", vVar0.y);
				}
			}
			func_858(vVar0);
		}
	}
}

void func_858(vector3 vParam0)//Position - 0x75F7F
{
	vector3 vVar0;
	
	vVar0.x = 551;
	vVar0.y = player::player_id();
	vVar0.z = vParam0.x;
	vVar0.f_2.f_1 = vParam0.y;
	vVar0.f_2.f_2 = vParam0.y;
	script::trigger_script_event(1, &vVar0, 5, func_36(1, 1));
}

bool func_859(int iParam0)//Position - 0x75FBC
{
	int iVar0;
	
	if (func_864())
	{
		iVar0 = 0;
		while (iVar0 < 46)
		{
			if (func_863(iVar0) == iParam0)
			{
				if (func_860(iVar0))
				{
					return true;
				}
			}
			iVar0++;
		}
	}
	return false;
}

int func_860(int iParam0)//Position - 0x75FF7
{
	return func_861(iParam0, 6, 1);
}

int func_861(int iParam0, int iParam1, int iParam2)//Position - 0x76007
{
	if (iParam2)
	{
		return gameplay::is_bit_set(Global_91538.f_1308[iParam0], iParam1);
	}
	else if (network::network_is_game_in_progress())
	{
		if (func_125() == 0)
		{
			return gameplay::is_bit_set(func_359(func_862(iParam0), -1, 0), iParam1);
		}
	}
	else
	{
		return gameplay::is_bit_set(Global_101652.f_668[iParam0], iParam1);
	}
	return false;
}

int func_862(int iParam0)//Position - 0x76067
{
	switch (iParam0)
	{
		case 0:
			return 822;
			break;
		
		case 1:
			return 823;
			break;
		
		case 2:
			return 824;
			break;
		
		case 3:
			return 825;
			break;
		
		case 4:
			return 826;
			break;
		
		case 5:
			return 827;
			break;
		
		case 6:
			return 828;
			break;
		
		case 7:
			return 829;
			break;
		
		case 8:
			return 830;
			break;
		
		case 9:
			return 831;
			break;
		
		case 10:
			return 832;
			break;
		
		case 11:
			return 833;
			break;
		
		case 12:
			return 834;
			break;
		
		case 13:
			return 835;
			break;
		
		case 14:
			return 836;
			break;
		
		case 15:
			return 838;
			break;
		
		case 16:
			return 839;
			break;
		
		case 17:
			return 840;
			break;
		
		case 18:
			return 841;
			break;
		
		case 19:
			return 842;
			break;
		
		case 20:
			return 843;
			break;
		
		case 21:
			return 844;
			break;
		
		case 22:
			return 845;
			break;
		
		case 23:
			return 846;
			break;
		
		case 24:
			return 847;
			break;
		
		case 25:
			return 848;
			break;
		
		case 26:
			return 849;
			break;
		
		case 27:
			return 850;
			break;
		
		case 28:
			return 851;
			break;
		
		case 29:
			return 852;
			break;
		
		case 30:
			return 853;
			break;
		
		case 31:
			return 854;
			break;
		
		case 32:
			return 855;
			break;
		
		case 33:
			return 856;
			break;
		
		case 34:
			return 857;
			break;
		
		case 35:
			return 858;
			break;
		
		case 36:
			return 859;
			break;
		
		case 37:
			return 860;
			break;
		
		case 38:
			return 861;
			break;
		
		case 39:
			return 862;
			break;
		
		case 40:
			return 866;
			break;
		
		case 41:
			return 867;
			break;
		
		case 42:
			return 868;
			break;
		
		case 43:
			return 869;
			break;
		
		case 44:
			return 5847;
			break;
		
		case 45:
			return 3780;
			break;
		
		default:
			break;
	}
	return 6022;
}

int func_863(int iParam0)//Position - 0x7632E
{
	switch (iParam0)
	{
		case -1:
			return 6;
			break;
		
		case 0:
			return 0;
			break;
		
		case 1:
			return 0;
			break;
		
		case 2:
			return 0;
			break;
		
		case 3:
			return 0;
			break;
		
		case 4:
			return 0;
			break;
		
		case 5:
			return 0;
			break;
		
		case 6:
			return 0;
			break;
		
		case 7:
			return 1;
			break;
		
		case 8:
			return 1;
			break;
		
		case 9:
			return 1;
			break;
		
		case 10:
			return 1;
			break;
		
		case 11:
			return 1;
			break;
		
		case 12:
			return 1;
			break;
		
		case 13:
			return 1;
			break;
		
		case 14:
			return 1;
			break;
		
		case 15:
			return 1;
			break;
		
		case 16:
			return 1;
			break;
		
		case 17:
			return 1;
			break;
		
		case 18:
			return 1;
			break;
		
		case 19:
			return 1;
			break;
		
		case 20:
			return 1;
			break;
		
		case 21:
			return 1;
			break;
		
		case 22:
			return 2;
			break;
		
		case 23:
			return 2;
			break;
		
		case 24:
			return 2;
			break;
		
		case 25:
			return 2;
			break;
		
		case 26:
			return 2;
			break;
		
		case 27:
			return 2;
			break;
		
		case 28:
			return 3;
			break;
		
		case 29:
			return 3;
			break;
		
		case 30:
			return 3;
			break;
		
		case 31:
			return 3;
			break;
		
		case 32:
			return 3;
			break;
		
		case 33:
			return 3;
			break;
		
		case 34:
			return 3;
			break;
		
		case 35:
			return 3;
			break;
		
		case 36:
			return 3;
			break;
		
		case 37:
			return 3;
			break;
		
		case 38:
			return 3;
			break;
		
		case 39:
			return 4;
			break;
		
		case 40:
			return 4;
			break;
		
		case 41:
			return 4;
			break;
		
		case 42:
			return 4;
			break;
		
		case 43:
			return 4;
			break;
		
		case 44:
			return 4;
			break;
		
		case 45:
			return 5;
			break;
	}
	return 6;
}

int func_864()//Position - 0x765A1
{
	return Global_91538.f_304 > 0;
}

bool func_865(int iParam0, var uParam1)//Position - 0x765B2
{
	int iVar0;
	int iVar1;
	
	if (!func_870(iParam0, uParam1))
	{
		return true;
	}
	iVar0 = 0;
	if (!entity::is_entity_dead(iParam0, 0))
	{
		iVar0 = graphics::_0xFE26117A5841B2FF(iParam0, 0);
	}
	if (iVar0 == 0)
	{
		if (!func_848(iParam0))
		{
			iVar1 = network::network_get_player_from_gamer_handle(uParam1);
			if (func_866(&iParam0, iVar1))
			{
			}
			else
			{
				return true;
			}
		}
		else
		{
			return true;
		}
	}
	else if (iVar0 >= 3)
	{
		return true;
	}
	else if (func_846(iParam0))
	{
	}
	return false;
}

bool func_866(int iParam0, int iParam1)//Position - 0x7662F
{
	func_869();
	if (Global_1312462.f_18 != 0 || unk_0x8533CAFDE1F0F336(*iParam0))
	{
		Global_1760659.f_11 = vehicle::_get_vehicle_suspension_height(*iParam0);
		if (Global_1760659.f_11 < 0f)
		{
			Global_1760659.f_11 = 0f;
		}
	}
	func_868(*iParam0, &Global_1760659, &(Global_1760659.f_1), &(Global_1760659.f_4), &(Global_1760659.f_7), &(Global_1760659.f_10));
	Global_1760659.f_1.f_2 = (Global_1760659.f_1.f_2 - Global_1760659.f_11);
	if (Global_1760659.f_4.f_2 < 0f)
	{
		Global_1760659.f_12 = 1;
	}
	Global_1760659.f_13 = 200;
	if (entity::get_entity_model(*iParam0) == joaat("windsor"))
	{
		Global_1760659.f_13 = 255;
	}
	if (Global_1760659.f_12)
	{
		if (func_867(iParam0, iParam1, Global_1760659, Global_1760659.f_1, Global_1760659.f_4, Global_1760659.f_7, Global_1760659.f_10, 0, Global_1760659.f_13))
		{
			if (network::network_is_game_in_progress())
			{
				Global_1318082 = network::get_network_time();
			}
			else
			{
				Global_1318082 = gameplay::get_game_timer();
			}
			return true;
		}
	}
	else
	{
		Global_1760659.f_14 = { Global_1760659.f_1 };
		Global_1760659.f_14 = (Global_1760659.f_14 * -1f);
		Global_1760659.f_17 = { Global_1760659.f_4 };
		Global_1760659.f_17 = (Global_1760659.f_17 * -1f);
		Global_1760659.f_20 = { Global_1760659.f_7 };
		Global_1760659.f_20.f_1 = (Global_1760659.f_20.f_1 * -1f);
		Global_1760659.f_20.f_2 = (Global_1760659.f_20.f_2 * -1f);
		if (!graphics::_does_vehicle_have_decal(*iParam0, 0))
		{
			Global_1760659.f_23 = graphics::_0xFE26117A5841B2FF(*iParam0, 0);
		}
		else
		{
			Global_1760659.f_23 = 3;
		}
		Global_1760659.f_24 = graphics::_0xFE26117A5841B2FF(*iParam0, 1);
		if (!graphics::_does_vehicle_have_decal(*iParam0, 1))
		{
			Global_1760659.f_24 = graphics::_0xFE26117A5841B2FF(*iParam0, 1);
		}
		else
		{
			Global_1760659.f_24 = 3;
		}
		if (((Global_1760659.f_23 == 0 && func_867(iParam0, iParam1, Global_1760659, Global_1760659.f_1, Global_1760659.f_4, Global_1760659.f_7, Global_1760659.f_10, 0, Global_1760659.f_13)) || Global_1760659.f_23 != 0) && ((Global_1760659.f_24 == 0 && func_867(iParam0, iParam1, Global_1760659, Global_1760659.f_14, Global_1760659.f_17, Global_1760659.f_20, Global_1760659.f_10, 1, Global_1760659.f_13)) || Global_1760659.f_24 != 0))
		{
			if (network::network_is_game_in_progress())
			{
				Global_1318082 = network::get_network_time();
			}
			else
			{
				Global_1318082 = gameplay::get_game_timer();
			}
			return true;
		}
	}
	return false;
}

var func_867(var uParam0, int iParam1, var uParam2, vector3 vParam3, vector3 vParam6, vector3 vParam9, var uParam12, int iParam13, var uParam14)//Position - 0x768C6
{
	return graphics::_add_clan_decal_to_vehicle(*uParam0, player::get_player_ped(iParam1), uParam2, vParam3, vParam6, vParam9, uParam12, iParam13, uParam14);
}

bool func_868(int iParam0, var uParam1, var uParam2, var uParam3, var uParam4, var uParam5)//Position - 0x768EF
{
	if (!entity::does_entity_exist(iParam0) || !vehicle::is_vehicle_driveable(iParam0, 0))
	{
		return false;
	}
	*uParam1 = entity::get_entity_bone_index_by_name(iParam0, "chassis_dummy");
	switch (entity::get_entity_model(iParam0))
	{
		case joaat("dominator"):
			*uParam1 = entity::get_entity_bone_index_by_name(iParam0, "chassis_dummy");
			*uParam2 = { 0f, 1.4f, 1f };
			*uParam3 = { 0f, 0f, -1f };
			*uParam4 = { -1f, 0f, 0f };
			*uParam5 = 0.5f;
			break;
		
		case joaat("feltzer2"):
			*uParam1 = entity::get_entity_bone_index_by_name(iParam0, "chassis_dummy");
			*uParam2 = { 0f, 1.4f, 1f };
			*uParam3 = { 0f, 0f, -1f };
			*uParam4 = { -1f, 0f, 0f };
			*uParam5 = 0.5f;
			break;
		
		case joaat("adder"):
			*uParam2 = { 0f, 1.54f, 1f };
			*uParam3 = { 0f, 0f, -1f };
			*uParam4 = { -1f, 0f, 0f };
			*uParam5 = 0.5f;
			break;
		
		case joaat("akuma"):
			*uParam2 = { 0f, 0.06f, 1f };
			*uParam3 = { 0f, 0f, -1f };
			*uParam4 = { -1f, 0f, 0f };
			*uParam5 = 0.18f;
			break;
		
		case joaat("asea"):
			*uParam2 = { 0f, 1.5f, 1f };
			*uParam3 = { 0f, 0f, -1f };
			*uParam4 = { -1f, 0f, 0f };
			*uParam5 = 0.5f;
			break;
		
		case joaat("asterope"):
			*uParam2 = { 0f, 1.7f, 1f };
			*uParam3 = { 0f, 0f, -1f };
			*uParam4 = { -1f, 0f, 0f };
			*uParam5 = 0.5f;
			break;
		
		case joaat("bagger"):
			*uParam2 = { -1f, 0.16f, 0.283f };
			*uParam3 = { 1f, 0f, 0f };
			*uParam4 = { 0f, -1f, 0f };
			*uParam5 = 0.09f;
			break;
		
		case joaat("baller"):
			*uParam2 = { 0f, 1.4f, 1f };
			*uParam3 = { 0f, 0f, -1f };
			*uParam4 = { -1f, 0f, 0f };
			*uParam5 = 0.5f;
			break;
		
		case joaat("baller2"):
			*uParam2 = { 0f, 1.55f, 1f };
			*uParam3 = { 0f, 0f, -1f };
			*uParam4 = { -1f, 0f, 0f };
			*uParam5 = 0.5f;
			break;
		
		case joaat("banshee"):
			*uParam2 = { 0f, 0.94f, 1f };
			*uParam3 = { 0f, 0f, -1f };
			*uParam4 = { -1f, 0f, 0f };
			*uParam5 = 0.4f;
			break;
		
		case joaat("bati"):
			*uParam2 = { 0f, 0.2f, 1f };
			*uParam3 = { 0f, 0f, -1f };
			*uParam4 = { -1f, 0f, 0f };
			*uParam5 = 0.15f;
			break;
		
		case joaat("bati2"):
			*uParam2 = { 0f, 0.2f, 1f };
			*uParam3 = { 0f, 0f, -1f };
			*uParam4 = { -1f, 0f, 0f };
			*uParam5 = 0.15f;
			break;
		
		case joaat("bfinjection"):
			*uParam2 = { -1f, 0.08f, 0.19f };
			*uParam3 = { 1f, 0f, 0f };
			*uParam4 = { 0f, -1f, 0f };
			*uParam5 = 0.5f;
			break;
		
		case joaat("bison"):
			*uParam2 = { 0f, 1.99f, 1f };
			*uParam3 = { 0f, 0f, -1f };
			*uParam4 = { -1f, 0f, 0f };
			*uParam5 = 0.5f;
			break;
		
		case joaat("bjxl"):
			*uParam2 = { 0f, 1.2f, 1f };
			*uParam3 = { 0f, 0f, -1f };
			*uParam4 = { -1f, 0f, 0f };
			*uParam5 = 0.4f;
			break;
		
		case joaat("blista"):
			*uParam2 = { 0f, 1.49f, 1f };
			*uParam3 = { 0f, 0f, -1f };
			*uParam4 = { -1f, 0f, 0f };
			*uParam5 = 0.29f;
			break;
		
		case joaat("bobcatxl"):
			*uParam2 = { 0f, 1.68f, 1f };
			*uParam3 = { 0f, 0f, -1f };
			*uParam4 = { -1f, 0f, 0f };
			*uParam5 = 0.65f;
			break;
		
		case joaat("bodhi2"):
			*uParam2 = { 0f, 1.95f, 1f };
			*uParam3 = { 0f, 0f, -1f };
			*uParam4 = { -1f, 0f, 0f };
			*uParam5 = 0.5f;
			break;
		
		case joaat("buccaneer"):
			*uParam2 = { 0f, 2.01f, 1f };
			*uParam3 = { 0f, 0f, -1f };
			*uParam4 = { -1f, 0f, 0f };
			*uParam5 = 0.37f;
			break;
		
		case joaat("buffalo"):
			*uParam2 = { 0f, 1.6f, 1f };
			*uParam3 = { 0f, 0f, -1f };
			*uParam4 = { -1f, 0f, 0f };
			*uParam5 = 0.5f;
			break;
		
		case joaat("buffalo2"):
			*uParam2 = { 0f, 2.24f, 1f };
			*uParam3 = { 0f, 0f, -1f };
			*uParam4 = { -1f, 0f, 0f };
			*uParam5 = 0.2f;
			break;
		
		case joaat("bullet"):
			*uParam2 = { -1.57f, 0.07f, 0.16f };
			*uParam3 = { 1f, 0f, 0f };
			*uParam4 = { 0f, -1f, 0f };
			*uParam5 = 0.3f;
			break;
		
		case joaat("carbonrs"):
			*uParam2 = { 0f, 0.09f, 1f };
			*uParam3 = { 0f, 0f, -1f };
			*uParam4 = { -1f, 0f, 0f };
			*uParam5 = 0.18f;
			break;
		
		case joaat("carbonizzare"):
			*uParam2 = { 0f, 1.45f, 1f };
			*uParam3 = { 0f, -0.11f, -1f };
			*uParam4 = { -1f, 0f, 0f };
			*uParam5 = 0.5f;
			break;
		
		case joaat("cavalcade"):
			*uParam2 = { 0f, 1.51f, 1f };
			*uParam3 = { 0f, 0f, -1f };
			*uParam4 = { -1f, 0f, 0f };
			*uParam5 = 0.55f;
			break;
		
		case joaat("cavalcade2"):
			*uParam2 = { 0f, 1.59f, 1f };
			*uParam3 = { 0f, 0f, -1f };
			*uParam4 = { -1f, 0f, 0f };
			*uParam5 = 0.5f;
			break;
		
		case joaat("cheetah"):
			*uParam2 = { -1.61f, 0.26f, 0.17f };
			*uParam3 = { 0.9f, 0f, 0f };
			*uParam4 = { 0f, -1f, 0f };
			*uParam5 = 0.35f;
			break;
		
		case joaat("cogcabrio"):
			*uParam2 = { 0f, 1.42f, 1f };
			*uParam3 = { 0f, 0f, -1f };
			*uParam4 = { -1f, 0f, 0f };
			*uParam5 = 0.5f;
			break;
		
		case joaat("comet2"):
			*uParam2 = { 0f, 1.35f, 1f };
			*uParam3 = { 0f, 0f, -1f };
			*uParam4 = { -1f, 0f, 0f };
			*uParam5 = 0.5f;
			break;
		
		case joaat("coquette"):
			*uParam2 = { 0f, 0.96f, 1f };
			*uParam3 = { 0f, 0f, -1f };
			*uParam4 = { -1f, 0f, 0f };
			*uParam5 = 0.22f;
			break;
		
		case joaat("daemon"):
			*uParam2 = { 0f, 0.06f, 1f };
			*uParam3 = { 0f, 0f, -1f };
			*uParam4 = { -1f, 0f, 0f };
			*uParam5 = 0.15f;
			break;
		
		case joaat("dilettante"):
			*uParam2 = { 0f, 1.59f, 1f };
			*uParam3 = { 0f, 0f, -1f };
			*uParam4 = { -1f, 0f, 0f };
			*uParam5 = 0.5f;
			break;
		
		case joaat("dloader"):
			*uParam2 = { 0f, 1.52f, 1f };
			*uParam3 = { 0f, 0f, -1f };
			*uParam4 = { -1f, 0f, 0f };
			*uParam5 = 0.5f;
			break;
		
		case joaat("double"):
			*uParam2 = { 0f, 0.08f, 1f };
			*uParam3 = { 0f, 0f, -1f };
			*uParam4 = { -1f, 0f, 0f };
			*uParam5 = 0.2f;
			break;
		
		case joaat("dubsta"):
			*uParam2 = { -1.71f, 0.31f, 0.27f };
			*uParam3 = { 1f, 0f, 0f };
			*uParam4 = { 0f, -1f, 0f };
			*uParam5 = 0.5f;
			break;
		
		case joaat("dubsta2"):
			*uParam2 = { 0f, 1.4f, 1f };
			*uParam3 = { 0f, 0f, -1f };
			*uParam4 = { -1f, 0f, 0f };
			*uParam5 = 0.75f;
			break;
		
		case joaat("elegy2"):
			*uParam2 = { 0f, 1.14f, 1f };
			*uParam3 = { 0f, 0f, -1f };
			*uParam4 = { -1f, 0f, 0f };
			*uParam5 = 0.35f;
			break;
		
		case joaat("emperor"):
			*uParam2 = { 0f, 1.31f, 1f };
			*uParam3 = { 0f, 0f, -1f };
			*uParam4 = { -1f, 0f, 0f };
			*uParam5 = 0.5f;
			break;
		
		case joaat("emperor2"):
			*uParam2 = { 0f, 1.31f, 1f };
			*uParam3 = { 0f, 0f, -1f };
			*uParam4 = { -1f, 0f, 0f };
			*uParam5 = 0.5f;
			break;
		
		case joaat("entityxf"):
			*uParam2 = { -1.52f, 0.41f, 0.15f };
			*uParam3 = { 1f, 0f, 0f };
			*uParam4 = { 0f, -1f, 0f };
			*uParam5 = 0.3f;
			break;
		
		case joaat("exemplar"):
			*uParam2 = { 0f, 1.32f, 1f };
			*uParam3 = { 0f, 0f, -1f };
			*uParam4 = { -1f, 0f, 0f };
			*uParam5 = 0.5f;
			break;
		
		case joaat("f620"):
			*uParam2 = { 0f, 1.28f, 1f };
			*uParam3 = { 0f, 0f, -1f };
			*uParam4 = { -1f, 0f, 0f };
			*uParam5 = 0.45f;
			break;
		
		case joaat("faggio2"):
			*uParam2 = { -1f, -0.48f, -0.11f };
			*uParam3 = { 1f, 0f, 0f };
			*uParam4 = { 0f, -1f, 0f };
			*uParam5 = 0.15f;
			break;
		
		case joaat("felon"):
			*uParam2 = { 0f, 1.24f, 1f };
			*uParam3 = { 0f, 0f, -1f };
			*uParam4 = { -1f, 0f, 0f };
			*uParam5 = 0.35f;
			break;
		
		case joaat("felon2"):
			*uParam2 = { 0f, 1.24f, 1f };
			*uParam3 = { 0f, 0f, -1f };
			*uParam4 = { -1f, 0f, 0f };
			*uParam5 = 0.35f;
			break;
		
		case joaat("fq2"):
			*uParam2 = { 0f, 1.4f, 1f };
			*uParam3 = { 0f, 0f, -1f };
			*uParam4 = { -1f, 0f, 0f };
			*uParam5 = 0.5f;
			break;
		
		case joaat("fugitive"):
			*uParam2 = { 0f, 1.62f, 1f };
			*uParam3 = { 0f, 0f, -1f };
			*uParam4 = { -1f, 0f, 0f };
			*uParam5 = 0.5f;
			break;
		
		case joaat("fusilade"):
			*uParam2 = { 0f, 0.98f, 1f };
			*uParam3 = { 0f, 0f, -1f };
			*uParam4 = { -1f, 0f, 0f };
			*uParam5 = 0.2f;
			break;
		
		case joaat("futo"):
			*uParam2 = { 0f, 1.28f, 1f };
			*uParam3 = { 0f, 0f, -1f };
			*uParam4 = { -1f, 0f, 0f };
			*uParam5 = 0.45f;
			break;
		
		case joaat("gauntlet"):
			*uParam2 = { 0f, 1.735f, 1.05f };
			*uParam3 = { 0f, 0f, -1f };
			*uParam4 = { -1f, 0f, 0f };
			*uParam5 = 0.33f;
			break;
		
		case joaat("granger"):
			*uParam2 = { 0f, 2.07f, 1f };
			*uParam3 = { 0f, 0f, -1f };
			*uParam4 = { -1f, 0f, 0f };
			*uParam5 = 0.5f;
			break;
		
		case joaat("gresley"):
			*uParam2 = { 0f, 1.75f, 1f };
			*uParam3 = { 0f, 0f, -1f };
			*uParam4 = { -1f, 0f, 0f };
			*uParam5 = 0.5f;
			break;
		
		case joaat("habanero"):
			*uParam2 = { 0f, 1.69f, 1f };
			*uParam3 = { 0f, 0f, -1f };
			*uParam4 = { -1f, 0f, 0f };
			*uParam5 = 0.5f;
			break;
		
		case joaat("hexer"):
			*uParam2 = { 0f, -0.46f, 1f };
			*uParam3 = { 0f, 1f, -1f };
			*uParam4 = { -1f, 0f, 0f };
			*uParam5 = 0.14f;
			break;
		
		case joaat("hotknife"):
			*uParam2 = { -1.43f, -0.14f, 0.18f };
			*uParam3 = { 1f, 0f, 0f };
			*uParam4 = { 0f, -1f, 0f };
			*uParam5 = 0.5f;
			break;
		
		case joaat("infernus"):
			*uParam2 = { -1f, 0.33f, 0.08f };
			*uParam3 = { 1f, 0f, 0f };
			*uParam4 = { 0f, -1f, 0.06f };
			*uParam5 = 0.25f;
			break;
		
		case joaat("ingot"):
			*uParam2 = { 0f, 1.58f, 1f };
			*uParam3 = { 0f, 0f, -1f };
			*uParam4 = { -1f, 0f, 0f };
			*uParam5 = 0.5f;
			break;
		
		case joaat("intruder"):
			*uParam2 = { 0f, 1.623f, 1f };
			*uParam3 = { 0f, 0f, -1f };
			*uParam4 = { -1f, 0f, 0f };
			*uParam5 = 0.5f;
			break;
		
		case joaat("issi2"):
			*uParam2 = { 0f, 1.21f, 1f };
			*uParam3 = { 0f, 0f, -1f };
			*uParam4 = { -1f, 0f, 0f };
			*uParam5 = 0.3f;
			break;
		
		case joaat("jackal"):
			*uParam2 = { 0f, 1.36f, 1f };
			*uParam3 = { 0f, 0f, -1f };
			*uParam4 = { -1f, 0f, 0f };
			*uParam5 = 0.4f;
			break;
		
		case joaat("jb700"):
			*uParam2 = { 0f, 1.2f, 1f };
			*uParam3 = { 0f, 0f, -1f };
			*uParam4 = { -1f, 0f, 0f };
			*uParam5 = 0.37f;
			break;
		
		case joaat("khamelion"):
			*uParam2 = { 0f, 1.46f, 1f };
			*uParam3 = { 0f, 0f, -1f };
			*uParam4 = { -1f, 0f, 0f };
			*uParam5 = 0.475f;
			break;
		
		case joaat("landstalker"):
			*uParam2 = { 0f, 1.83f, 1f };
			*uParam3 = { 0f, 0f, -1f };
			*uParam4 = { -1f, 0f, 0f };
			*uParam5 = 0.5f;
			break;
		
		case joaat("manana"):
			*uParam2 = { 0f, 0.86f, 1f };
			*uParam3 = { 0f, 0f, -1f };
			*uParam4 = { -1f, 0f, 0f };
			*uParam5 = 0.37f;
			break;
		
		case joaat("mesa"):
			*uParam2 = { 0f, 1.47f, 1f };
			*uParam3 = { 0f, 0f, -1f };
			*uParam4 = { -1f, 0f, 0f };
			*uParam5 = 0.5f;
			break;
		
		case joaat("mesa3"):
			*uParam2 = { 0f, 1.47f, 1f };
			*uParam3 = { 0f, 0f, -1f };
			*uParam4 = { -1f, 0f, 0f };
			*uParam5 = 0.5f;
			break;
		
		case joaat("minivan"):
			*uParam2 = { 0f, 1.95f, 1f };
			*uParam3 = { 0f, 0f, -1f };
			*uParam4 = { -1f, 0f, 0f };
			*uParam5 = 0.5f;
			break;
		
		case joaat("monroe"):
			*uParam2 = { 0f, 1.23f, 1f };
			*uParam3 = { 0f, 0f, -1f };
			*uParam4 = { -1f, 0f, 0f };
			*uParam5 = 0.43f;
			break;
		
		case joaat("nemesis"):
			*uParam2 = { 0f, 0.14f, 1f };
			*uParam3 = { 0f, 0f, -1f };
			*uParam4 = { -1f, 0f, 0f };
			*uParam5 = 0.1f;
			break;
		
		case joaat("ninef"):
			*uParam2 = { 0f, 1.7f, 1f };
			*uParam3 = { 0f, 0f, -1f };
			*uParam4 = { -1f, 0f, 0f };
			*uParam5 = 0.5f;
			break;
		
		case joaat("ninef2"):
			*uParam2 = { 0f, 1.7f, 1f };
			*uParam3 = { 0f, 0f, -1f };
			*uParam4 = { -1f, 0f, 0f };
			*uParam5 = 0.5f;
			break;
		
		case joaat("oracle"):
			*uParam2 = { 0f, 1.6f, 1f };
			*uParam3 = { 0f, 0f, -1f };
			*uParam4 = { -1f, 0f, 0f };
			*uParam5 = 0.5f;
			break;
		
		case joaat("oracle2"):
			*uParam2 = { 0f, 1.7f, 1f };
			*uParam3 = { 0f, 0f, -1f };
			*uParam4 = { -1f, 0f, 0f };
			*uParam5 = 0.5f;
			break;
		
		case joaat("patriot"):
			*uParam2 = { 0f, 1.75f, 1f };
			*uParam3 = { 0f, 0f, -1f };
			*uParam4 = { -1f, 0f, 0f };
			*uParam5 = 0.5f;
			break;
		
		case joaat("pcj"):
			*uParam2 = { 0f, 0.02f, 1f };
			*uParam3 = { 0f, 0f, -1f };
			*uParam4 = { -1f, 0f, 0f };
			*uParam5 = 0.15f;
			break;
		
		case joaat("penumbra"):
			*uParam2 = { 0f, 1.46f, 1f };
			*uParam3 = { 0f, 0f, -1f };
			*uParam4 = { -1f, 0f, 0f };
			*uParam5 = 0.5f;
			break;
		
		case joaat("peyote"):
			*uParam2 = { -1f, -0.36f, 0.2125f };
			*uParam3 = { 1f, 0f, 0f };
			*uParam4 = { 0f, -1f, 0f };
			*uParam5 = 0.5f;
			break;
		
		case joaat("phoenix"):
			*uParam2 = { 0f, 1.833f, 1f };
			*uParam3 = { 0f, 0f, -1f };
			*uParam4 = { -1f, 0f, 0f };
			*uParam5 = 0.44f;
			break;
		
		case joaat("picador"):
			*uParam2 = { 0f, 1.43f, 1f };
			*uParam3 = { 0f, 0f, -1f };
			*uParam4 = { -1f, 0f, 0f };
			*uParam5 = 0.515f;
			break;
		
		case joaat("prairie"):
			*uParam2 = { 0f, 1.41f, 1f };
			*uParam3 = { 0f, 0f, -1f };
			*uParam4 = { -1f, 0f, 0f };
			*uParam5 = 0.31f;
			break;
		
		case joaat("premier"):
			*uParam2 = { 0f, 1.6f, 1f };
			*uParam3 = { 0f, 0f, -1f };
			*uParam4 = { -1f, 0f, 0f };
			*uParam5 = 0.5f;
			break;
		
		case joaat("primo"):
			*uParam2 = { 0f, 1.62f, 1f };
			*uParam3 = { 0f, 0f, -1f };
			*uParam4 = { -1f, 0f, 0f };
			*uParam5 = 0.5f;
			break;
		
		case joaat("radi"):
			*uParam2 = { 0f, 1.74f, 1f };
			*uParam3 = { 0f, 0f, -1f };
			*uParam4 = { -1f, 0f, 0f };
			*uParam5 = 0.5f;
			break;
		
		case joaat("rancherxl"):
			*uParam2 = { 0f, 1.54f, 1f };
			*uParam3 = { 0f, 0f, -1f };
			*uParam4 = { -1f, 0f, 0f };
			*uParam5 = 0.5f;
			break;
		
		case joaat("rapidgt"):
			*uParam2 = { 0f, 1.263f, 1f };
			*uParam3 = { 0f, 0f, -1f };
			*uParam4 = { -1f, 0f, 0f };
			*uParam5 = 0.5f;
			break;
		
		case joaat("rapidgt2"):
			*uParam2 = { 0f, 1.263f, 1f };
			*uParam3 = { 0f, 0f, -1f };
			*uParam4 = { -1f, 0f, 0f };
			*uParam5 = 0.5f;
			break;
		
		case joaat("ratloader"):
			*uParam2 = { -1.78f, 0.52f, 0.52f };
			*uParam3 = { 1f, 0f, 0f };
			*uParam4 = { 0f, -1f, 0f };
			*uParam5 = 0.45f;
			break;
		
		case joaat("rebel"):
			*uParam2 = { -1.22f, 0.6f, 0.44f };
			*uParam3 = { 1f, 0f, 0f };
			*uParam4 = { 0f, -1f, 0f };
			*uParam5 = 0.5f;
			break;
		
		case joaat("rebel2"):
			*uParam2 = { 0f, 1.623f, 1f };
			*uParam3 = { 0f, 0f, -1f };
			*uParam4 = { -1f, 0f, 0f };
			*uParam5 = 0.5f;
			break;
		
		case joaat("regina"):
			*uParam2 = { 0f, 1.473f, 1f };
			*uParam3 = { 0f, 0f, -1f };
			*uParam4 = { -1f, 0f, 0f };
			*uParam5 = 0.5f;
			break;
		
		case joaat("rocoto"):
			*uParam2 = { 0f, 1.623f, 1f };
			*uParam3 = { 0f, 0f, -1f };
			*uParam4 = { -1f, 0f, 0f };
			*uParam5 = 0.5f;
			break;
		
		case joaat("romero"):
			*uParam2 = { 0f, 1.83f, 1f };
			*uParam3 = { 0f, 0f, -1f };
			*uParam4 = { -1f, 0f, 0f };
			*uParam5 = 0.5f;
			break;
		
		case joaat("ruffian"):
			*uParam2 = { 0f, -0.02f, 1f };
			*uParam3 = { 0f, 0f, -1f };
			*uParam4 = { -1f, 0f, 0f };
			*uParam5 = 0.19f;
			break;
		
		case joaat("ruiner"):
			*uParam2 = { 0f, 1.34f, 1f };
			*uParam3 = { 0f, 0f, -1f };
			*uParam4 = { -1f, 0f, 0f };
			*uParam5 = 0.5f;
			break;
		
		case joaat("sabregt"):
			*uParam2 = { -1f, 0f, 0.14f };
			*uParam3 = { 1f, 0f, 0f };
			*uParam4 = { 0f, -1f, 0.015f };
			*uParam5 = 0.35f;
			break;
		
		case joaat("sadler"):
			*uParam2 = { 0f, 2.26f, 1f };
			*uParam3 = { 0f, 0f, -1f };
			*uParam4 = { -1f, 0f, 0f };
			*uParam5 = 0.5f;
			break;
		
		case joaat("sandking"):
			*uParam2 = { 0f, 2.496f, 1.55f };
			*uParam3 = { 0f, 0f, -1f };
			*uParam4 = { -1f, 0f, 0f };
			*uParam5 = 0.5f;
			break;
		
		case joaat("sandking2"):
			*uParam2 = { 0f, 2.286f, 1.55f };
			*uParam3 = { 0f, 0f, -1f };
			*uParam4 = { -1f, 0f, 0f };
			*uParam5 = 0.5f;
			break;
		
		case joaat("schafter2"):
			*uParam2 = { 0f, 1.56f, 1f };
			*uParam3 = { 0f, 0f, -1f };
			*uParam4 = { -1f, 0f, 0f };
			*uParam5 = 0.28f;
			break;
		
		case joaat("schwarzer"):
			*uParam2 = { 0f, 1.43f, 1f };
			*uParam3 = { 0f, 0f, -1f };
			*uParam4 = { -1f, 0f, 0f };
			*uParam5 = 0.28f;
			break;
		
		case joaat("seminole"):
			*uParam2 = { 0f, 1.45f, 1f };
			*uParam3 = { 0f, 0f, -1f };
			*uParam4 = { -1f, 0f, 0f };
			*uParam5 = 0.5f;
			break;
		
		case joaat("sentinel"):
			*uParam2 = { 0f, 1.52f, 1f };
			*uParam3 = { 0f, 0f, -1f };
			*uParam4 = { -1f, 0f, 0f };
			*uParam5 = 0.5f;
			break;
		
		case joaat("sentinel2"):
			*uParam2 = { 0f, 1.52f, 1f };
			*uParam3 = { 0f, 0f, -1f };
			*uParam4 = { -1f, 0f, 0f };
			*uParam5 = 0.5f;
			break;
		
		case joaat("serrano"):
			*uParam2 = { 0f, 1.68f, 1f };
			*uParam3 = { 0f, 0f, -1f };
			*uParam4 = { -1f, 0f, 0f };
			*uParam5 = 0.49f;
			break;
		
		case joaat("stanier"):
			*uParam2 = { 0f, 1.55f, 1f };
			*uParam3 = { 0f, 0f, -1f };
			*uParam4 = { -1f, 0f, 0f };
			*uParam5 = 0.5f;
			break;
		
		case joaat("stinger"):
			*uParam2 = { 0f, 1.3f, 1f };
			*uParam3 = { 0f, 0f, -1f };
			*uParam4 = { -1f, 0f, 0f };
			*uParam5 = 0.5f;
			break;
		
		case joaat("stingergt"):
			*uParam2 = { -1f, -0.17f, 0.12f };
			*uParam3 = { 1f, 0f, 0f };
			*uParam4 = { 0f, -1f, 0f };
			*uParam5 = 0.35f;
			break;
		
		case joaat("stratum"):
			*uParam2 = { 0f, 1.52f, 1f };
			*uParam3 = { 0f, 0f, -1f };
			*uParam4 = { -1f, 0f, 0f };
			*uParam5 = 0.5f;
			break;
		
		case joaat("sultan"):
			*uParam2 = { 0f, 1.77f, 1f };
			*uParam3 = { 0f, 0f, -1f };
			*uParam4 = { -1f, 0f, 0f };
			*uParam5 = 0.33f;
			break;
		
		case joaat("superd"):
			*uParam2 = { 0f, 1.62f, 1f };
			*uParam3 = { 0f, 0f, -1f };
			*uParam4 = { -1f, 0f, 0f };
			*uParam5 = 0.5f;
			break;
		
		case joaat("surano"):
			*uParam2 = { 0f, 1.38f, 1f };
			*uParam3 = { 0f, 0f, -1f };
			*uParam4 = { -1f, 0f, 0f };
			*uParam5 = 0.5f;
			break;
		
		case joaat("surfer"):
			*uParam2 = { 0f, 2.48f, 0.26f };
			*uParam3 = { 0f, -1f, -0.212f };
			*uParam4 = { -1f, 0f, 0f };
			*uParam5 = 0.32f;
			break;
		
		case joaat("surfer2"):
			*uParam2 = { 0f, 2.48f, 0.26f };
			*uParam3 = { 0f, -1f, -0.212f };
			*uParam4 = { -1f, 0f, 0f };
			*uParam5 = 0.32f;
			break;
		
		case joaat("surge"):
			*uParam2 = { 0f, 1.69f, 1f };
			*uParam3 = { 0f, 0f, -1f };
			*uParam4 = { -1f, 0f, 0f };
			*uParam5 = 0.5f;
			break;
		
		case joaat("tailgater"):
			*uParam2 = { 0f, 1.783f, 1f };
			*uParam3 = { 0f, 0f, -1f };
			*uParam4 = { -1f, 0f, 0f };
			*uParam5 = 0.4f;
			break;
		
		case joaat("tornado"):
			*uParam2 = { -1.23f, 0.11f, -0.21f };
			*uParam3 = { 1f, 0f, 0f };
			*uParam4 = { 0f, -1f, 0f };
			*uParam5 = 0.4f;
			break;
		
		case joaat("tornado2"):
			*uParam2 = { 0f, 1.44f, 1f };
			*uParam3 = { 0f, 0f, -1f };
			*uParam4 = { -1f, 0f, 0f };
			*uParam5 = 0.5f;
			break;
		
		case joaat("tornado3"):
			*uParam2 = { 0f, 1.44f, 1f };
			*uParam3 = { 0f, 0f, -1f };
			*uParam4 = { -1f, 0f, 0f };
			*uParam5 = 0.5f;
			break;
		
		case joaat("vacca"):
			*uParam2 = { 0f, 1.76f, 1f };
			*uParam3 = { 0f, 0f, -1f };
			*uParam4 = { -1f, 0f, 0f };
			*uParam5 = 0.35f;
			break;
		
		case joaat("vader"):
			*uParam2 = { 0f, 0.08f, 1f };
			*uParam3 = { 0f, 0f, -1f };
			*uParam4 = { -1f, 0f, 0f };
			*uParam5 = 0.15f;
			break;
		
		case joaat("vigero"):
			*uParam2 = { -1f, 0.11f, -0.15f };
			*uParam3 = { 1f, 0f, 0f };
			*uParam4 = { 0f, -1f, 0f };
			*uParam5 = 0.45f;
			break;
		
		case joaat("voltic"):
			*uParam2 = { 0f, 1.763f, 1f };
			*uParam3 = { 0f, 0f, -1f };
			*uParam4 = { -1f, 0f, 0f };
			*uParam5 = 0.29f;
			break;
		
		case joaat("voodoo2"):
			*uParam2 = { 0f, 1.48f, 1f };
			*uParam3 = { 0f, 0f, -1f };
			*uParam4 = { -1f, 0f, 0f };
			*uParam5 = 0.5f;
			break;
		
		case joaat("washington"):
			*uParam2 = { 0f, 1.61f, 1f };
			*uParam3 = { 0f, 0f, -1f };
			*uParam4 = { -1f, 0f, 0f };
			*uParam5 = 0.5f;
			break;
		
		case joaat("youga"):
			*uParam2 = { 0f, 2.352f, 1.003f };
			*uParam3 = { 0f, -1f, -1f };
			*uParam4 = { -1f, 0f, 0f };
			*uParam5 = 0.175f;
			break;
		
		case joaat("zion"):
			*uParam2 = { 0f, 1.48f, 1f };
			*uParam3 = { 0f, 0f, -1f };
			*uParam4 = { -1f, 0f, 0f };
			*uParam5 = 0.45f;
			break;
		
		case joaat("zion2"):
			*uParam2 = { 0f, 1.48f, 1f };
			*uParam3 = { 0f, 0f, -1f };
			*uParam4 = { -1f, 0f, 0f };
			*uParam5 = 0.45f;
			break;
		
		case joaat("ztype"):
			*uParam2 = { -0.96f, -0.69f, 0.35f };
			*uParam3 = { 1f, 0f, 0f };
			*uParam4 = { 0f, -1f, 0f };
			*uParam5 = 0.4f;
			break;
		
		default:
			*uParam2 = { -1f, 0f, 0.295f };
			*uParam3 = { 1f, 0f, 0f };
			*uParam4 = { 0f, 0f, -1f };
			*uParam5 = 0.5f;
			break;
	}
	switch (entity::get_entity_model(iParam0))
	{
		case joaat("kalahari"):
			*uParam2 = { -1f, 0.18f, 0.1f };
			*uParam3 = { 1f, 0f, 0f };
			*uParam4 = { 0f, -1f, 0f };
			*uParam5 = 0.5f;
			break;
		
		case joaat("paradise"):
			*uParam2 = { 0f, 2.23f, 1f };
			*uParam3 = { 0f, -0.22f, -1f };
			*uParam4 = { -1f, 0f, 0f };
			*uParam5 = 0.5f;
			break;
		
		case joaat("alpha"):
			*uParam2 = { -1f, 0.18f, -0.05f };
			*uParam3 = { 1f, 0f, 0f };
			*uParam4 = { 0f, -1f, 0f };
			*uParam5 = 0.5f;
			break;
		
		case joaat("huntley"):
			*uParam2 = { 0f, 1.52f, 0.99f };
			*uParam3 = { 0f, 0f, -1f };
			*uParam4 = { -1f, 0f, 0f };
			*uParam5 = 0.4f;
			break;
		
		case joaat("zentorno"):
			*uParam2 = { -1.24f, 0.42f, -0.14f };
			*uParam3 = { 1f, 0f, 0f };
			*uParam4 = { 0f, -1f, 0.035f };
			*uParam5 = 0.3f;
			break;
		
		case joaat("jester"):
			*uParam2 = { -1f, 0.17f, 0.22f };
			*uParam3 = { 1f, 0f, 0f };
			*uParam4 = { 0f, -1f, 0.05f };
			*uParam5 = 0.33f;
			break;
		
		case joaat("massacro"):
			*uParam2 = { 0f, 1.37f, 1f };
			*uParam3 = { 0f, 0f, -1f };
			*uParam4 = { -1f, 0f, 0f };
			*uParam5 = 0.33f;
			break;
		
		case joaat("turismor"):
			*uParam2 = { -1f, 0.3f, 0.27f };
			*uParam3 = { 1f, 0f, 0f };
			*uParam4 = { 0f, -1f, 0f };
			*uParam5 = 0.35f;
			break;
		
		case joaat("thrust"):
			*uParam2 = { -1f, 0.405f, 0.4625f };
			*uParam3 = { 1f, 0f, 0f };
			*uParam4 = { 0f, -1f, 0f };
			*uParam5 = 0.1625f;
			break;
		
		case joaat("btype"):
			*uParam2 = { 0f, 1.143f, 1f };
			*uParam3 = { 0f, 0f, -1f };
			*uParam4 = { -1f, 0f, 0f };
			*uParam5 = 0.7125f;
			break;
		
		case joaat("rhapsody"):
			*uParam2 = { -1f, -0.47f, -0.25f };
			*uParam3 = { 1f, 0f, 0f };
			*uParam4 = { 0f, -1f, 0f };
			*uParam5 = 0.2625f;
			break;
		
		case joaat("glendale"):
			*uParam2 = { 0f, 1.683f, 1f };
			*uParam3 = { 0f, 0f, -1f };
			*uParam4 = { -1f, 0f, 0f };
			*uParam5 = 0.775f;
			break;
		
		case joaat("warrener"):
			*uParam2 = { 0f, 1.623f, 1f };
			*uParam3 = { 0f, 0f, -1f };
			*uParam4 = { -1f, 0f, 0f };
			*uParam5 = 0.775f;
			break;
		
		case joaat("blade"):
			*uParam2 = { -1f, 0.445f, 0.2075f };
			*uParam3 = { 1f, 0f, 0f };
			*uParam4 = { 0f, -1f, 0f };
			*uParam5 = 0.325f;
			break;
		
		case joaat("panto"):
			*uParam2 = { -1f, 0f, 0.335f };
			*uParam3 = { 1f, 0f, 0f };
			*uParam4 = { 0f, -1f, 0f };
			*uParam5 = 0.5f;
			break;
		
		case joaat("dubsta3"):
			*uParam2 = { -1f, 0.34f, 0.2975f };
			*uParam3 = { 1f, 0f, 0f };
			*uParam4 = { 0f, -1f, 0f };
			*uParam5 = 0.5f;
			break;
		
		case joaat("pigalle"):
			*uParam2 = { 0f, 1.623f, 1f };
			*uParam3 = { 0f, 0f, -1f };
			*uParam4 = { -1f, 0f, 0f };
			*uParam5 = 0.5f;
			break;
		
		case joaat("coquette2"):
			*uParam2 = { -1f, -0.1775f, 0.195f };
			*uParam3 = { 1f, 0f, 0f };
			*uParam4 = { 0f, -1f, 0f };
			*uParam5 = 0.35f;
			break;
		
		case joaat("innovation"):
			*uParam2 = { 0f, 0.15f, 1f };
			*uParam3 = { 0f, 0f, -1f };
			*uParam4 = { -1f, 0f, 0f };
			*uParam5 = 0.18f;
			break;
		
		case joaat("hakuchou"):
			*uParam2 = { 0f, 0.27f, 0.845f };
			*uParam3 = { 0f, 0f, -1f };
			*uParam4 = { -1f, 0f, 0f };
			*uParam5 = 0.16f;
			break;
		
		case joaat("furoregt"):
			*uParam2 = { -1f, 0f, 0.2075f };
			*uParam3 = { 1f, 0f, 0f };
			*uParam4 = { 0f, -1f, 0f };
			*uParam5 = 0.45f;
			break;
		
		case joaat("ratloader2"):
			*uParam2 = { -1.78f, 0.52f, 0.52f };
			*uParam3 = { 1f, 0f, 0f };
			*uParam4 = { 0f, -1f, 0f };
			*uParam5 = 0.45f;
			break;
		
		case joaat("slamvan"):
			*uParam2 = { -1f, 0.275f, 0.195f };
			*uParam3 = { 1f, 0f, 0f };
			*uParam4 = { 0f, -1f, 0f };
			*uParam5 = 0.5f;
			break;
		
		case joaat("dukes2"):
			*uParam2 = { -1f, 0f, 0f };
			*uParam3 = { 1f, 0f, 0f };
			*uParam4 = { 0f, -1f, 0f };
			*uParam5 = 0.375f;
			break;
		
		case joaat("dukes"):
			*uParam2 = { -1f, 0f, 0.0375f };
			*uParam3 = { 1f, 0f, 0f };
			*uParam4 = { 0f, -1f, 0f };
			*uParam5 = 0.3875f;
			break;
		
		case joaat("stalion"):
			*uParam2 = { -1f, 0f, 0.0925f };
			*uParam3 = { 1f, 0f, 0f };
			*uParam4 = { 0f, -1f, 0f };
			*uParam5 = 0.4375f;
			break;
		
		case joaat("blista2"):
			*uParam2 = { -1f, 0.5325f, 0.245f };
			*uParam3 = { 1f, 0f, 0f };
			*uParam4 = { 0f, -1f, 0f };
			*uParam5 = 0.2875f;
			break;
		
		case joaat("casco"):
			*uParam2 = { 0f, 0.94f, 1.03f };
			*uParam3 = { 0f, -0.03f, -1f };
			*uParam4 = { -1f, 0f, 0f };
			*uParam5 = 0.3f;
			break;
		
		case joaat("enduro"):
			*uParam2 = { 0f, -0.17f, 1f };
			*uParam3 = { 0f, 0.34f, -0.786f };
			*uParam4 = { -1f, 0f, 0f };
			*uParam5 = 0.15f;
			break;
		
		case joaat("gburrito2"):
			*uParam2 = { 0f, 2.32f, 0.94f };
			*uParam3 = { 0f, -0.182f, -1f };
			*uParam4 = { -1f, 0f, 0f };
			*uParam5 = 0.4f;
			break;
		
		case joaat("guardian"):
			*uParam2 = { -1.94f, 1.07f, 0.38f };
			*uParam3 = { 1f, 0f, 0f };
			*uParam4 = { 0f, -1f, 0f };
			*uParam5 = 0.35f;
			break;
		
		case joaat("kuruma"):
		case joaat("kuruma2"):
			*uParam2 = { -1f, 0.2475f, -0.175f };
			*uParam3 = { 1f, 0f, 0f };
			*uParam4 = { 0f, -1f, 0f };
			*uParam5 = 0.435f;
			break;
		
		case joaat("lectro"):
			*uParam2 = { 0f, 0.3f, 1f };
			*uParam3 = { 0f, 0f, -1f };
			*uParam4 = { -1f, 0f, 0f };
			*uParam5 = 0.09f;
			break;
		
		case joaat("feltzer3"):
			*uParam1 = entity::get_entity_bone_index_by_name(iParam0, "chassis_dummy");
			*uParam2 = { 0f, 1.4f, 1f };
			*uParam3 = { 0f, 0f, -1f };
			*uParam4 = { -1f, 0f, 0f };
			*uParam5 = 0.5f;
			break;
		
		case joaat("osiris"):
			*uParam2 = { -1f, 0.27f, -0.03f };
			*uParam3 = { 1f, 0f, 0f };
			*uParam4 = { 0f, -1f, 0f };
			*uParam5 = 0.3f;
			break;
		
		case joaat("virgo"):
			*uParam2 = { -1.05f, 0f, 0.075f };
			*uParam3 = { 1f, 0f, 0f };
			*uParam4 = { 0f, -1f, 0f };
			*uParam5 = 0.45f;
			break;
		
		case joaat("windsor"):
			*uParam2 = { -1.2f, -0.39f, 0.12f };
			*uParam3 = { 1f, 0f, 0f };
			*uParam4 = { 0f, -1f, 0f };
			*uParam5 = 0.55f;
			break;
		
		case joaat("brawler"):
			*uParam2 = { -1f, -0.21f, 0f };
			*uParam3 = { 1f, 0f, 0f };
			*uParam4 = { 0f, -1f, 0f };
			*uParam5 = 0.45f;
			break;
		
		case joaat("chino"):
			*uParam2 = { -1.05f, 0f, 0.075f };
			*uParam3 = { 1f, 0f, 0f };
			*uParam4 = { 0f, -1f, 0f };
			*uParam5 = 0.45f;
			break;
		
		case joaat("coquette3"):
			*uParam2 = { -1f, -0.1775f, 0.195f };
			*uParam3 = { 1f, 0f, 0f };
			*uParam4 = { 0f, -1f, 0f };
			*uParam5 = 0.35f;
			break;
		
		case joaat("t20"):
			*uParam2 = { -1f, 0.4f, -0.12f };
			*uParam3 = { 1f, 0f, 0f };
			*uParam4 = { 0f, -1f, 0f };
			*uParam5 = 0.2f;
			break;
		
		case joaat("vindicator"):
			*uParam2 = { -1f, 0.21f, 0.24f };
			*uParam3 = { 1f, 0f, 0f };
			*uParam4 = { 0f, -1f, 0f };
			*uParam5 = 0.3f;
			break;
		
		case joaat("faction"):
			*uParam2 = { -1f, 0f, 0.15f };
			*uParam3 = { 1f, 0f, 0f };
			*uParam4 = { 0f, -1f, 0f };
			*uParam5 = 0.5f;
			break;
		
		case joaat("faction2"):
			*uParam2 = { -1f, 0f, 0.15f };
			*uParam3 = { 1f, 0f, 0f };
			*uParam4 = { 0f, -1f, 0f };
			*uParam5 = 0.5f;
			break;
		
		case joaat("buccaneer2"):
			*uParam2 = { 0f, 2.01f, 1f };
			*uParam3 = { 0f, 0f, -1f };
			*uParam4 = { -1f, 0f, 0f };
			*uParam5 = 0.37f;
			break;
		
		case joaat("chino2"):
			*uParam2 = { -1.05f, 0f, 0.075f };
			*uParam3 = { 1f, 0f, 0f };
			*uParam4 = { 0f, -1f, 0f };
			*uParam5 = 0.45f;
			break;
		
		case joaat("moonbeam"):
			*uParam2 = { 0f, 1.713f, 1f };
			*uParam3 = { 0f, 0f, -1f };
			*uParam4 = { -1f, 0f, 0f };
			*uParam5 = 0.5f;
			break;
		
		case joaat("moonbeam2"):
			*uParam2 = { 0f, 1.713f, 1f };
			*uParam3 = { 0f, 0f, -1f };
			*uParam4 = { -1f, 0f, 0f };
			*uParam5 = 0.5f;
			break;
		
		case joaat("primo2"):
			*uParam2 = { -1f, 0.42f, 0f };
			*uParam3 = { 1f, 0f, 0f };
			*uParam4 = { 0f, -1f, 0f };
			*uParam5 = 0.5f;
			break;
		
		case joaat("voodoo"):
			*uParam2 = { -1.12f, 0f, 0f };
			*uParam3 = { 1f, 0f, 0f };
			*uParam4 = { 0f, -1f, 0f };
			*uParam5 = 0.5f;
			break;
		
		case joaat("faction3"):
			*uParam2 = { -1f, 0f, 0.5f };
			*uParam3 = { 1f, 0f, 0f };
			*uParam4 = { 0f, -1f, 0f };
			*uParam5 = 0.5f;
			break;
		
		case joaat("sabregt2"):
			*uParam2 = { -1f, 0f, 0.14f };
			*uParam3 = { 1f, 0f, 0f };
			*uParam4 = { 0f, -1f, 0.015f };
			*uParam5 = 0.35f;
			break;
		
		case joaat("tornado5"):
			*uParam2 = { -1f, 0.15f, -0.09f };
			*uParam3 = { 1f, 0f, 0f };
			*uParam4 = { 0f, -1f, 0f };
			*uParam5 = 0.45f;
			break;
		
		case joaat("virgo2"):
			*uParam2 = { -1f, 0f, 0.1225f };
			*uParam3 = { 1f, 0f, 0f };
			*uParam4 = { 0f, -1f, 0f };
			*uParam5 = 0.375f;
			break;
		
		case joaat("virgo3"):
			*uParam2 = { -1f, 0f, 0.1225f };
			*uParam3 = { 1f, 0f, 0f };
			*uParam4 = { 0f, -1f, 0f };
			*uParam5 = 0.375f;
			break;
		
		case joaat("minivan2"):
			*uParam2 = { 0f, 1.95f, 1f };
			*uParam3 = { 0f, 0f, -1f };
			*uParam4 = { -1f, 0f, 0f };
			*uParam5 = 0.5f;
			break;
		
		case joaat("slamvan3"):
			*uParam2 = { -1f, 0.275f, 0.195f };
			*uParam3 = { 1f, 0f, 0f };
			*uParam4 = { 0f, -1f, 0f };
			*uParam5 = 0.5f;
			break;
		
		case joaat("btype2"):
			*uParam2 = { -1f, -0.1f, 0.4f };
			*uParam3 = { 1f, 0f, 0f };
			*uParam4 = { 0f, -1f, 0f };
			*uParam5 = 0.5f;
			break;
		
		case joaat("lurcher"):
			*uParam2 = { -1f, 0f, 0.3f };
			*uParam3 = { 1f, 0f, 0f };
			*uParam4 = { 0f, -1f, 0f };
			*uParam5 = 0.45f;
			break;
		
		case joaat("baller3"):
			*uParam2 = { 0f, 1.4f, 1f };
			*uParam3 = { 0f, 0f, -1f };
			*uParam4 = { -1f, 0f, 0f };
			*uParam5 = 0.5f;
			break;
		
		case joaat("baller4"):
			*uParam2 = { 0f, 1.4f, 1f };
			*uParam3 = { 0f, 0f, -1f };
			*uParam4 = { -1f, 0f, 0f };
			*uParam5 = 0.5f;
			break;
		
		case joaat("baller5"):
			*uParam2 = { 0f, 1.4f, 1f };
			*uParam3 = { 0f, 0f, -1f };
			*uParam4 = { -1f, 0f, 0f };
			*uParam5 = 0.5f;
			break;
		
		case joaat("baller6"):
			*uParam2 = { 0f, 1.4f, 1f };
			*uParam3 = { 0f, 0f, -1f };
			*uParam4 = { -1f, 0f, 0f };
			*uParam5 = 0.5f;
			break;
		
		case joaat("cog55"):
			*uParam2 = { -1f, 0.37f, 0.13f };
			*uParam3 = { 1f, 0f, 0f };
			*uParam4 = { 0f, -1f, 0f };
			*uParam5 = 0.45f;
			break;
		
		case joaat("cog552"):
			*uParam2 = { -1f, 0.37f, 0.13f };
			*uParam3 = { 1f, 0f, 0f };
			*uParam4 = { 0f, -1f, 0f };
			*uParam5 = 0.45f;
			break;
		
		case joaat("cognoscenti"):
			*uParam2 = { -1f, 0.37f, 0.13f };
			*uParam3 = { 1f, 0f, 0f };
			*uParam4 = { 0f, -1f, 0f };
			*uParam5 = 0.45f;
			break;
		
		case joaat("cognoscenti2"):
			*uParam2 = { -1f, 0.37f, 0.13f };
			*uParam3 = { 1f, 0f, 0f };
			*uParam4 = { 0f, -1f, 0f };
			*uParam5 = 0.45f;
			break;
		
		case joaat("mamba"):
			*uParam2 = { -1f, -0.18f, 0.21f };
			*uParam3 = { 1f, 0f, 0f };
			*uParam4 = { 0f, -1f, 0f };
			*uParam5 = 0.35f;
			break;
		
		case joaat("nightshade"):
			*uParam2 = { -1f, -0.2f, 0.17f };
			*uParam3 = { 1f, 0f, 0f };
			*uParam4 = { 0f, -1f, 0f };
			*uParam5 = 0.45f;
			break;
		
		case joaat("schafter3"):
			*uParam2 = { 0f, 1.56f, 1f };
			*uParam3 = { 0f, 0f, -1f };
			*uParam4 = { -1f, 0f, 0f };
			*uParam5 = 0.28f;
			break;
		
		case joaat("schafter4"):
			*uParam2 = { 0f, 1.56f, 1f };
			*uParam3 = { 0f, 0f, -1f };
			*uParam4 = { -1f, 0f, 0f };
			*uParam5 = 0.28f;
			break;
		
		case joaat("schafter5"):
			*uParam2 = { 0f, 1.56f, 1f };
			*uParam3 = { 0f, 0f, -1f };
			*uParam4 = { -1f, 0f, 0f };
			*uParam5 = 0.28f;
			break;
		
		case joaat("schafter6"):
			*uParam2 = { 0f, 1.56f, 1f };
			*uParam3 = { 0f, 0f, -1f };
			*uParam4 = { -1f, 0f, 0f };
			*uParam5 = 0.28f;
			break;
		
		case joaat("verlierer2"):
			*uParam2 = { -1f, -0.21f, 0.03f };
			*uParam3 = { 1f, 0f, 0f };
			*uParam4 = { 0f, -1f, 0f };
			*uParam5 = 0.4f;
			break;
		
		case joaat("tampa"):
			*uParam2 = { -1f, 0f, 0.12f };
			*uParam3 = { 1f, 0f, 0f };
			*uParam4 = { 0f, -1f, 0f };
			*uParam5 = 0.45f;
			break;
		
		case joaat("banshee2"):
			*uParam2 = { -1f, -0.4f, 0.075f };
			*uParam3 = { 1f, 0f, 0f };
			*uParam4 = { 0f, -1f, 0f };
			*uParam5 = 0.4f;
			break;
		
		case joaat("sultanrs"):
			*uParam2 = { 0f, 1.77f, 1f };
			*uParam3 = { 0f, 0f, -1f };
			*uParam4 = { -1f, 0f, 0f };
			*uParam5 = 0.33f;
			break;
		
		case joaat("btype3"):
			*uParam2 = { -1f, -0.1f, 0.4f };
			*uParam3 = { 1f, 0f, 0f };
			*uParam4 = { 0f, -1f, 0f };
			*uParam5 = 0.5f;
			break;
		
		case joaat("bestiagts"):
			*uParam2 = { -1f, -0.06f, 0.4f };
			*uParam3 = { 1f, 0f, 0f };
			*uParam4 = { 0f, -1f, 0f };
			*uParam5 = 0.4f;
			break;
		
		case joaat("seven70"):
			*uParam2 = { -1f, -0.21f, 0.25f };
			*uParam3 = { 1f, 0f, 0f };
			*uParam4 = { 0f, -1f, 0f };
			*uParam5 = 0.35f;
			break;
		
		case joaat("fmj"):
			*uParam2 = { -1f, -0.06f, 0.21f };
			*uParam3 = { 1f, 0f, 0f };
			*uParam4 = { 0f, -1f, 0f };
			*uParam5 = 0.3f;
			break;
		
		case joaat("pfister811"):
			*uParam2 = { -1f, 0.06f, 0.25f };
			*uParam3 = { 1f, 0f, 0f };
			*uParam4 = { 0f, -1f, 0f };
			*uParam5 = 0.45f;
			break;
		
		case joaat("prototipo"):
			*uParam2 = { -1f, 0.3f, 0.27f };
			*uParam3 = { 1f, 0f, 0f };
			*uParam4 = { 0f, -1f, 0f };
			*uParam5 = 0.35f;
			break;
		
		case joaat("reaper"):
			*uParam2 = { -1f, 0.48f, 0f };
			*uParam3 = { 1f, 0f, 0f };
			*uParam4 = { 0f, -1f, 0f };
			*uParam5 = 0.3f;
			break;
		
		case joaat("rumpo3"):
			*uParam2 = { 0f, 2.103f, 1f };
			*uParam3 = { 0f, 0f, -1f };
			*uParam4 = { -1f, 0f, 0f };
			*uParam5 = 0.5f;
			break;
		
		case joaat("windsor2"):
			*uParam2 = { -1.2f, 0.03f, 0.24f };
			*uParam3 = { 1f, 0f, 0f };
			*uParam4 = { 0f, -1f, 0f };
			*uParam5 = 0.55f;
			break;
		
		case joaat("xls"):
			*uParam2 = { -1f, 0.36f, -0.15f };
			*uParam3 = { 1f, 0f, 0f };
			*uParam4 = { 0f, -1f, 0f };
			*uParam5 = 0.45f;
			break;
		
		case joaat("xls2"):
			*uParam2 = { -1f, 0.36f, -0.15f };
			*uParam3 = { 1f, 0f, 0f };
			*uParam4 = { 0f, -1f, 0f };
			*uParam5 = 0.45f;
			break;
		
		case joaat("brioso"):
			*uParam2 = { -1f, -0.06f, 0.565f };
			*uParam3 = { 1f, 0f, 0f };
			*uParam4 = { 0f, -1f, 0f };
			*uParam5 = 0.3f;
			break;
		
		case joaat("contender"):
			*uParam2 = { 0f, 2.33f, 1f };
			*uParam3 = { 0f, 0f, -1f };
			*uParam4 = { -1f, 0f, 0f };
			*uParam5 = 0.5f;
			break;
		
		case joaat("le7b"):
			*uParam2 = { -1f, -0.12f, 0.235f };
			*uParam3 = { 1f, 0f, 0f };
			*uParam4 = { 0f, -1f, 0f };
			*uParam5 = 0.3f;
			break;
		
		case joaat("omnis"):
			*uParam2 = { -1f, 0.03f, 0.18f };
			*uParam3 = { 1f, 0f, 0f };
			*uParam4 = { 0f, -1f, 0f };
			*uParam5 = 0.45f;
			break;
		
		case joaat("tropos"):
			*uParam2 = { -1f, 0f, 0.24f };
			*uParam3 = { 1f, 0f, 0f };
			*uParam4 = { 0f, -1f, 0f };
			*uParam5 = 0.35f;
			break;
		
		case joaat("avarus"):
			*uParam2 = { -1f, 0.27f, 0.25f };
			*uParam3 = { 1f, 0f, 0f };
			*uParam4 = { 0f, -1f, 0f };
			*uParam5 = 0.1f;
			break;
		
		case joaat("daemon2"):
			*uParam2 = { -1f, 0.27f, 0.29f };
			*uParam3 = { 1f, 0f, 0f };
			*uParam4 = { 0f, -1f, 0f };
			*uParam5 = 0.1f;
			break;
		
		case joaat("defiler"):
			*uParam2 = { -1f, 0f, 0.34f };
			*uParam3 = { 1f, 0f, 0f };
			*uParam4 = { 0f, -1f, 0f };
			*uParam5 = 0.125f;
			break;
		
		case joaat("esskey"):
			*uParam2 = { -1f, 0.335f, 0.31f };
			*uParam3 = { 1f, 0f, 0f };
			*uParam4 = { 0f, -1f, 0f };
			*uParam5 = 0.09f;
			break;
		
		case joaat("hakuchou2"):
			*uParam2 = { 0f, 0.27f, 0.845f };
			*uParam3 = { 0f, 0f, -1f };
			*uParam4 = { -1f, 0f, 0f };
			*uParam5 = 0.15f;
			break;
		
		case joaat("nightblade"):
			*uParam2 = { 0f, -0.133f, 0.61f };
			*uParam3 = { 0f, 0f, -1f };
			*uParam4 = { -1f, 0f, 0f };
			*uParam5 = 0.125f;
			break;
		
		case joaat("ratbike"):
			*uParam2 = { -1f, 0.31f, 0.24f };
			*uParam3 = { 1f, 0f, 0f };
			*uParam4 = { 0f, -1f, 0f };
			*uParam5 = 0.1f;
			break;
		
		case joaat("shotaro"):
			*uParam2 = { -1f, 0.06f, 0.325f };
			*uParam3 = { 1f, 0f, 0f };
			*uParam4 = { 0f, -1f, 0f };
			*uParam5 = 0.1f;
			break;
		
		case joaat("zombiea"):
			*uParam2 = { -1f, 0.3f, 0.25f };
			*uParam3 = { 1f, 0f, 0f };
			*uParam4 = { 0f, -1f, 0f };
			*uParam5 = 0.1f;
			break;
		
		case joaat("zombieb"):
			*uParam2 = { -1f, 0.2f, 0.25f };
			*uParam3 = { 1f, 0f, 0f };
			*uParam4 = { 0f, -1f, 0f };
			*uParam5 = 0.1f;
			break;
		
		case joaat("vortex"):
			*uParam2 = { -1f, 0.18f, 0.37f };
			*uParam3 = { 1f, 0f, 0f };
			*uParam4 = { 0f, -1f, 0f };
			*uParam5 = 0.095f;
			break;
		
		case joaat("tornado6"):
			*uParam2 = { -1f, -0.03f, -0.24f };
			*uParam3 = { 1f, 0f, 0f };
			*uParam4 = { 0f, -1f, 0f };
			*uParam5 = 0.3f;
			break;
		
		case joaat("youga2"):
			*uParam2 = { 0f, 2.352f, 0.253f };
			*uParam3 = { 0f, -1f, -0.256f };
			*uParam4 = { -1f, 0f, 0f };
			*uParam5 = 0.175f;
			break;
		
		case joaat("wolfsbane"):
			*uParam2 = { -1f, 0.33f, 0.24f };
			*uParam3 = { 1f, 0f, 0f };
			*uParam4 = { 0f, -1f, 0f };
			*uParam5 = 0.1f;
			break;
		
		case joaat("faggio3"):
			*uParam2 = { -1f, -0.54f, -0.11f };
			*uParam3 = { 1f, 0f, 0f };
			*uParam4 = { 0f, -1f, 0f };
			*uParam5 = 0.15f;
			break;
		
		case joaat("faggio"):
			*uParam2 = { -0.9875f, -0.0175f, -0.01f };
			*uParam3 = { 0.8975f, -0.26f, -0.0725f };
			*uParam4 = { 0f, -1f, 0f };
			*uParam5 = 0.1625f;
			break;
		
		case joaat("comet3"):
			*uParam2 = { -1f, 0f, 0.295f };
			*uParam3 = { 1f, 0f, 0f };
			*uParam4 = { 0f, -1f, 0f };
			*uParam5 = 0.4f;
			break;
		
		case joaat("diablous"):
			*uParam2 = { -1f, 0.006f, 0.382f };
			*uParam3 = { 1f, 0f, 0f };
			*uParam4 = { 0f, -1f, 0f };
			*uParam5 = 0.1f;
			break;
		
		case joaat("diablous2"):
			*uParam2 = { -1f, 0.225f, 0.541f };
			*uParam3 = { 1f, 0f, 0f };
			*uParam4 = { 0f, -1f, 0f };
			*uParam5 = 0.1f;
			break;
		
		case joaat("elegy"):
			*uParam2 = { 0f, 1.14f, 1f };
			*uParam3 = { 0f, 0f, -1f };
			*uParam4 = { -1f, 0f, 0f };
			*uParam5 = 0.35f;
			break;
		
		case joaat("fcr"):
			*uParam2 = { -1f, 0.234f, 0.376f };
			*uParam3 = { 1f, 0f, 0f };
			*uParam4 = { 0f, -1f, 0f };
			*uParam5 = 0.1f;
			break;
		
		case joaat("fcr2"):
			*uParam2 = { -1f, 0.234f, 0.376f };
			*uParam3 = { 1f, 0f, 0f };
			*uParam4 = { 0f, -1f, 0f };
			*uParam5 = 0.1f;
			break;
		
		case joaat("italigtb"):
			*uParam2 = { -1f, -0.024f, 0.187f };
			*uParam3 = { 1f, 0f, 0f };
			*uParam4 = { 0f, -1f, 0f };
			*uParam5 = 0.25f;
			break;
		
		case joaat("italigtb2"):
			*uParam2 = { -1f, -0.024f, 0.187f };
			*uParam3 = { 1f, 0f, 0f };
			*uParam4 = { 0f, -1f, 0f };
			*uParam5 = 0.25f;
			break;
		
		case joaat("nero"):
			*uParam2 = { -1f, 0.237f, 0.09f };
			*uParam3 = { 1f, 0f, 0f };
			*uParam4 = { 0f, -1f, 0f };
			*uParam5 = 0.25f;
			break;
		
		case joaat("nero2"):
			*uParam2 = { -1f, 0.237f, 0.09f };
			*uParam3 = { 1f, 0f, 0f };
			*uParam4 = { 0f, -1f, 0f };
			*uParam5 = 0.25f;
			break;
		
		case joaat("penetrator"):
			*uParam2 = { -1f, 0.153f, 0.295f };
			*uParam3 = { 1f, 0f, 0f };
			*uParam4 = { 0f, -1f, 0f };
			*uParam5 = 0.35f;
			break;
		
		case joaat("ruiner2"):
			*uParam2 = { 0.363f, 1.34f, 1f };
			*uParam3 = { 0f, 0f, -1f };
			*uParam4 = { -1f, 0f, 0f };
			*uParam5 = 0.4f;
			break;
		
		case joaat("ruiner3"):
			*uParam2 = { 0.363f, 1.34f, 1f };
			*uParam3 = { 0f, 0f, -1f };
			*uParam4 = { -1f, 0f, 0f };
			*uParam5 = 0.4f;
			break;
		
		case joaat("specter"):
			*uParam2 = { -1f, -0.273f, -0.02f };
			*uParam3 = { 1f, 0f, 0f };
			*uParam4 = { 0f, -1f, 0f };
			*uParam5 = 0.2f;
			break;
		
		case joaat("specter2"):
			*uParam2 = { -1f, -0.273f, 0.286f };
			*uParam3 = { 1f, 0f, 0f };
			*uParam4 = { 0f, -1f, 0f };
			*uParam5 = 0.2f;
			break;
		
		case joaat("technical2"):
			*uParam2 = { 0f, 1.623f, 1f };
			*uParam3 = { 0f, 0f, -1f };
			*uParam4 = { -1f, 0f, 0f };
			*uParam5 = 0.5f;
			break;
		
		case joaat("tempesta"):
			*uParam2 = { -1f, 0f, 0.253f };
			*uParam3 = { 1f, 0f, 0f };
			*uParam4 = { 0f, -1f, 0f };
			*uParam5 = 0.25f;
			break;
		
		case joaat("voltic2"):
			*uParam2 = { 0f, 1.763f, 1f };
			*uParam3 = { 0f, 0f, -1f };
			*uParam4 = { -1f, 0f, 0f };
			*uParam5 = 0.29f;
			break;
	}
	return true;
}

void func_869()//Position - 0x7966F
{
	Global_1760659 = 0;
	Global_1760659.f_1 = { 0f, 0f, 0f };
	Global_1760659.f_4 = { 0f, 0f, 0f };
	Global_1760659.f_7 = { 0f, 0f, 0f };
	Global_1760659.f_10 = 0f;
	Global_1760659.f_11 = 0f;
	Global_1760659.f_12 = 0;
	Global_1760659.f_13 = 0;
	Global_1760659.f_14 = { 0f, 0f, 0f };
	Global_1760659.f_17 = { 0f, 0f, 0f };
	Global_1760659.f_20 = { 0f, 0f, 0f };
	Global_1760659.f_23 = 0;
	Global_1760659.f_24 = 0;
}

bool func_870(int iParam0, var uParam1)//Position - 0x796E8
{
	int iVar0;
	int iVar1;
	
	if (network::network_is_handle_valid(uParam1, 13) && network::network_is_gamer_in_my_session(uParam1))
	{
		iVar0 = network::network_get_player_from_gamer_handle(uParam1);
	}
	else
	{
		iVar0 = func_45();
	}
	iVar1 = false;
	if (iVar0 == player::player_id())
	{
		if (func_872(15, 0))
		{
			iVar1 = true;
		}
		else if (func_454(1))
		{
			iVar1 = true;
		}
	}
	else
	{
		iVar1 = true;
	}
	if (((((((!(entity::does_entity_exist(iParam0) && !entity::is_entity_dead(iParam0, 0)) || !network::network_has_control_of_entity(iParam0)) || !network::_0x595F028698072DD9(0, -1, 1)) || !((network::network_is_handle_valid(uParam1, 13) && network::_network_player_is_in_clan()) && network::network_clan_player_is_active(uParam1))) || iVar0 == func_45()) || !func_1644(iVar0, 0, 0)) || !iVar1) || func_871(iParam0))
	{
		return false;
	}
	return true;
}

bool func_871(int iParam0)//Position - 0x797CF
{
	if (!network::network_is_game_in_progress())
	{
		return true;
	}
	switch (entity::get_entity_model(iParam0))
	{
		case joaat("sanchez"):
		case joaat("sanchez2"):
		case joaat("blazer"):
		case joaat("blazer3"):
		case joaat("surfer"):
		case joaat("surfer2"):
		case joaat("bifta"):
		case joaat("sovereign"):
		case joaat("hexer"):
		case joaat("dune"):
		case joaat("dune2"):
		case joaat("dune4"):
		case joaat("dune5"):
		case joaat("insurgent"):
		case joaat("insurgent2"):
		case joaat("blista3"):
		case joaat("stalion2"):
		case joaat("gauntlet2"):
		case joaat("dominator2"):
		case joaat("buffalo3"):
		case joaat("massacro2"):
		case joaat("jester2"):
		case joaat("omnis"):
		case joaat("bf400"):
		case joaat("tropos"):
		case joaat("brioso"):
		case joaat("trophytruck"):
		case joaat("trophytruck2"):
		case joaat("cliffhanger"):
		case joaat("tampa2"):
		case joaat("gargoyle"):
		case joaat("le7b"):
		case joaat("tyrus"):
		case joaat("lynx"):
		case joaat("sheava"):
		case joaat("chimera"):
		case joaat("sanctus"):
		case joaat("blazer4"):
		case joaat("manchez"):
		case joaat("raptor"):
		case joaat("blazer5"):
			return true;
			break;
		
		case joaat("youga"):
		case joaat("youga2"):
			if (vehicle::get_vehicle_mod(iParam0, 7) != -1)
			{
				return true;
			}
			break;
		
		case joaat("surano"):
			if (vehicle::get_vehicle_mod(iParam0, 5) == 1)
			{
				return true;
			}
			break;
	}
	return false;
}

int func_872(int iParam0, int iParam1)//Position - 0x79922
{
	int iVar0;
	int iVar1;
	
	if (iParam1)
	{
		if (iParam0 == 15)
		{
			return true;
		}
	}
	iVar0 = func_873(iParam0);
	iVar1 = iParam0;
	return gameplay::is_bit_set(iVar0, func_121(iVar1));
}

var func_873(int iParam0)//Position - 0x79952
{
	var uVar0;
	
	uVar0 = func_359(func_874(iParam0), -1, 0);
	return uVar0;
}

int func_874(var uParam0)//Position - 0x7996A
{
	int iVar0;
	int iVar1;
	
	iVar0 = uParam0;
	iVar1 = func_126(iVar0);
	switch (iVar1)
	{
		case 0:
			return 1285;
			break;
	}
	return 1285;
}

void func_875(int iParam0, var uParam1, int iParam2, int iParam3)//Position - 0x79997
{
	int iVar0;
	int iVar1;
	int iVar2;
	
	if (vehicle::is_vehicle_driveable(iParam0, 0))
	{
		if (gameplay::get_hash_key(&(uParam1->f_1)) != 0)
		{
			vehicle::set_vehicle_number_plate_text(iParam0, &(uParam1->f_1));
		}
		if (*uParam1 >= 0 && *uParam1 < vehicle::get_number_of_vehicle_number_plates())
		{
			vehicle::set_vehicle_number_plate_text_index(iParam0, *uParam1);
		}
		if (uParam1->f_66 == joaat("sovereign"))
		{
			uParam1->f_5 = 111;
			uParam1->f_6 = 111;
			uParam1->f_7 = 111;
		}
		else if (uParam1->f_66 == joaat("casco"))
		{
			iVar0 = 1;
			if (gameplay::is_bit_set(uParam1->f_77, func_851(iVar0 + 1)))
			{
			}
			else
			{
				gameplay::set_bit(&(uParam1->f_77), func_851(iVar0 + 1));
			}
		}
		else if (uParam1->f_66 == joaat("sandking") || uParam1->f_66 == joaat("sandking2"))
		{
			iVar1 = 1;
			if (gameplay::is_bit_set(uParam1->f_77, func_851(iVar1 + 1)))
			{
			}
			else
			{
				gameplay::set_bit(&(uParam1->f_77), func_851(iVar1 + 1));
			}
		}
		if (gameplay::is_bit_set(uParam1->f_77, 13))
		{
			vehicle::set_vehicle_custom_primary_colour(iParam0, uParam1->f_71, uParam1->f_72, uParam1->f_73);
		}
		else
		{
			vehicle::clear_vehicle_custom_primary_colour(iParam0);
		}
		if (gameplay::is_bit_set(uParam1->f_77, 12))
		{
			vehicle::set_vehicle_custom_secondary_colour(iParam0, uParam1->f_71, uParam1->f_72, uParam1->f_73);
		}
		else
		{
			vehicle::clear_vehicle_custom_secondary_colour(iParam0);
		}
		vehicle::set_vehicle_colours(iParam0, uParam1->f_5, uParam1->f_6);
		if (uParam1->f_7 < 0)
		{
			uParam1->f_7 = 0;
		}
		if (uParam1->f_8 < 0)
		{
			uParam1->f_8 = 0;
		}
		vehicle::set_vehicle_extra_colours(iParam0, uParam1->f_7, uParam1->f_8);
		if (((gameplay::is_bit_set(uParam1->f_77, 15) || func_882(iParam0)) || (((uParam1->f_62 == 0 && uParam1->f_63 == 0) && uParam1->f_64 == 0) && uParam1->f_9[20] > 0)) && func_881())
		{
			uParam1->f_62 = 0;
			uParam1->f_63 = 0;
			uParam1->f_64 = 0;
		}
		else if ((uParam1->f_62 == 0 && uParam1->f_63 == 0) && uParam1->f_64 == 0)
		{
			uParam1->f_62 = 255;
			uParam1->f_63 = 255;
			uParam1->f_64 = 255;
		}
		vehicle::set_vehicle_tyre_smoke_color(iParam0, uParam1->f_62, uParam1->f_63, uParam1->f_64);
		if (uParam1->f_65 == -1 && uParam1->f_66 != joaat("granger"))
		{
			vehicle::set_vehicle_window_tint(iParam0, 0);
		}
		else
		{
			vehicle::set_vehicle_window_tint(iParam0, 0);
			vehicle::set_vehicle_window_tint(iParam0, uParam1->f_65);
		}
		vehicle::set_vehicle_tyres_can_burst(iParam0, !gameplay::is_bit_set(uParam1->f_77, 9));
		if (iParam2)
		{
			vehicle::set_vehicle_doors_locked(iParam0, uParam1->f_70);
		}
		vehicle::_set_vehicle_neon_lights_colour(iParam0, uParam1->f_74, uParam1->f_75, uParam1->f_76);
		vehicle::_set_vehicle_neon_light_enabled(iParam0, 2, gameplay::is_bit_set(uParam1->f_77, 28));
		vehicle::_set_vehicle_neon_light_enabled(iParam0, 3, gameplay::is_bit_set(uParam1->f_77, 29));
		vehicle::_set_vehicle_neon_light_enabled(iParam0, 0, gameplay::is_bit_set(uParam1->f_77, 30));
		vehicle::_set_vehicle_neon_light_enabled(iParam0, 1, gameplay::is_bit_set(uParam1->f_77, 31));
		vehicle::set_vehicle_is_stolen(iParam0, gameplay::is_bit_set(uParam1->f_77, 10));
		if (vehicle::get_vehicle_livery_count(iParam0) > 1 && uParam1->f_67 >= 0)
		{
			vehicle::set_vehicle_livery(iParam0, uParam1->f_67);
		}
		if (uParam1->f_69 > -1 && uParam1->f_69 < 255)
		{
			if (!vehicle::is_this_model_a_bicycle(entity::get_entity_model(iParam0)))
			{
				if (vehicle::is_this_model_a_bike(entity::get_entity_model(iParam0)))
				{
					if (uParam1->f_69 == 6)
					{
						func_880(iParam0, uParam1->f_69);
					}
				}
				else
				{
					func_880(iParam0, uParam1->f_69);
				}
			}
		}
		if (vehicle::is_vehicle_a_convertible(iParam0, 0))
		{
			if ((uParam1->f_68 == 0 || uParam1->f_68 == 3) || uParam1->f_68 == 5)
			{
				vehicle::raise_convertible_roof(iParam0, 1);
			}
			else
			{
				vehicle::lower_convertible_roof(iParam0, 1);
			}
		}
		if (iParam3)
		{
			func_876(&iParam0, &(uParam1->f_9), &(uParam1->f_59));
		}
		if (!vehicle::is_this_model_a_heli(uParam1->f_66) && !vehicle::is_this_model_a_boat(uParam1->f_66))
		{
			iVar2 = 0;
			while (iVar2 <= 11)
			{
				if (gameplay::is_bit_set(uParam1->f_77, func_851(iVar2 + 1)))
				{
					if (!vehicle::is_vehicle_extra_turned_on(iParam0, iVar2 + 1))
					{
						vehicle::set_vehicle_extra(iParam0, iVar2 + 1, false);
					}
				}
				else if (vehicle::is_vehicle_extra_turned_on(iParam0, iVar2 + 1))
				{
					vehicle::set_vehicle_extra(iParam0, iVar2 + 1, true);
				}
				iVar2++;
			}
		}
		if ((entity::get_entity_model(iParam0) == joaat("sheava") || entity::get_entity_model(iParam0) == joaat("omnis")) || entity::get_entity_model(iParam0) == joaat("le7b"))
		{
			if (vehicle::get_vehicle_mod(iParam0, 0) == -1)
			{
				vehicle::set_vehicle_extra(iParam0, 1, false);
			}
		}
		if (vehicle::is_this_model_a_plane(uParam1->f_66))
		{
			if (!gameplay::is_bit_set(uParam1->f_77, 23))
			{
				if (gameplay::is_bit_set(uParam1->f_77, 22))
				{
					vehicle::_set_vehicle_landing_gear(iParam0, 2);
				}
				else
				{
					vehicle::_set_vehicle_landing_gear(iParam0, 3);
				}
			}
			else
			{
				vehicle::_set_vehicle_landing_gear(iParam0, 4);
			}
		}
		if (gameplay::is_bit_set(uParam1->f_77, 27))
		{
			decorator::decor_set_bool(iParam0, "IgnoredByQuickSave", 1);
		}
		else
		{
			decorator::decor_set_bool(iParam0, "IgnoredByQuickSave", 0);
		}
	}
}

bool func_876(int iParam0, var uParam1, var uParam2)//Position - 0x79E47
{
	int iVar0;
	int iVar1;
	
	if (!vehicle::is_vehicle_driveable(*iParam0, 0))
	{
		return false;
	}
	if (vehicle::get_num_mod_kits(*iParam0) == 0)
	{
		return false;
	}
	vehicle::set_vehicle_mod_kit(*iParam0, 0);
	iVar0 = 0;
	while (iVar0 < *uParam1)
	{
		iVar1 = iVar0;
		if (((((iVar1 == 17 || iVar1 == 18) || iVar1 == 19) || iVar1 == 20) || iVar1 == 21) || iVar1 == 22)
		{
			vehicle::toggle_vehicle_mod(*iParam0, iVar1, (*uParam1)[iVar0] > 0);
		}
		else if (vehicle::get_vehicle_mod(*iParam0, iVar1) != ((*uParam1)[iVar0] - 1))
		{
			vehicle::remove_vehicle_mod(*iParam0, iVar1);
			if ((*uParam1)[iVar0] > 0)
			{
				if (iVar0 == 23)
				{
					vehicle::set_vehicle_mod(*iParam0, iVar1, ((*uParam1)[iVar0] - 1), (*uParam2)[0] > 0);
				}
				else if (iVar0 == 24)
				{
					vehicle::set_vehicle_mod(*iParam0, iVar1, ((*uParam1)[iVar0] - 1), (*uParam2)[1] > 0);
				}
				else
				{
					vehicle::set_vehicle_mod(*iParam0, iVar1, ((*uParam1)[iVar0] - 1), false);
				}
			}
		}
		iVar0++;
	}
	if (func_879(entity::get_entity_model(*iParam0), 1) && vehicle::get_vehicle_mod(*iParam0, 24) != func_878(*iParam0, ((*uParam1)[38] - 1)))
	{
		vehicle::set_vehicle_mod(*iParam0, 24, func_878(*iParam0, ((*uParam1)[38] - 1)), false);
	}
	if (func_877(*iParam0))
	{
		vehicle::set_vehicle_strong(*iParam0, true);
		vehicle::set_vehicle_has_strong_axles(*iParam0, true);
	}
	return true;
}

bool func_877(int iParam0)//Position - 0x79FBF
{
	int iVar0;
	int iVar1;
	int iVar2;
	char cVar3[16];
	
	if ((entity::does_entity_exist(iParam0) && vehicle::is_vehicle_driveable(iParam0, 0)) && vehicle::get_num_mod_kits(iParam0) > 0)
	{
		vehicle::set_vehicle_mod_kit(iParam0, 0);
		iVar0 = 0;
		while (iVar0 < 49)
		{
			iVar1 = iVar0;
			if (((((iVar1 == 17 || iVar1 == 18) || iVar1 == 19) || iVar1 == 20) || iVar1 == 21) || iVar1 == 22)
			{
			}
			else if (vehicle::get_vehicle_mod(iParam0, iVar1) != -1)
			{
				StringCopy(&cVar3, vehicle::get_mod_text_label(iParam0, iVar1, vehicle::get_vehicle_mod(iParam0, iVar1)), 16);
				iVar2 = gameplay::get_hash_key(&cVar3);
				if (iVar2 != 0)
				{
					if (iVar2 == gameplay::get_hash_key("MNU_CAGE") || iVar2 == gameplay::get_hash_key("SABRE_CAG"))
					{
						return true;
					}
				}
			}
			iVar0++;
		}
	}
	return false;
}

int func_878(int iParam0, int iParam1)//Position - 0x7A09D
{
	int iVar0;
	int iVar1;
	float fVar2;
	int iVar3;
	
	if (entity::does_entity_exist(iParam0) && vehicle::is_vehicle_driveable(iParam0, 0))
	{
		switch (entity::get_entity_model(iParam0))
		{
			case joaat("tornado5"):
				switch (iParam1)
				{
					case 0:
						return 0;
						break;
					
					case 1:
						return 1;
						break;
					
					case 2:
						return 2;
						break;
					
					case 3:
						return 3;
						break;
					
					case 4:
						return 4;
						break;
					
					case 5:
						return 4;
						break;
				}
				break;
			
			case joaat("faction3"):
				return 3;
				break;
		}
		iVar0 = vehicle::get_num_vehicle_mods(iParam0, 38);
		iVar1 = vehicle::get_num_vehicle_mods(iParam0, 24);
		fVar2 = (system::to_float(iParam1 + 1) / system::to_float(iVar0));
		iVar3 = (system::floor((system::to_float(iVar1) * fVar2)) - 1);
		if (iVar3 < 0)
		{
			iVar3 = 0;
		}
		if (iVar3 >= iVar0)
		{
			iVar3 = (iVar0 - 1);
		}
		return iVar3;
	}
	return 0;
}

bool func_879(int iParam0, int iParam1)//Position - 0x7A182
{
	switch (iParam0)
	{
		case joaat("faction2"):
		case joaat("buccaneer2"):
		case joaat("chino2"):
		case joaat("moonbeam2"):
		case joaat("primo2"):
		case joaat("voodoo"):
			return true;
			break;
		
		case joaat("sabregt2"):
			if (!Global_262145.f_12218)
			{
				return false;
			}
			else
			{
				return true;
			}
			break;
		
		case joaat("tornado5"):
			if (!Global_262145.f_12219)
			{
				return false;
			}
			else
			{
				return true;
			}
			break;
		
		case joaat("virgo2"):
			if (!Global_262145.f_12217)
			{
				return false;
			}
			else
			{
				return true;
			}
			break;
		
		case joaat("minivan2"):
			if (!Global_262145.f_12220)
			{
				return false;
			}
			else
			{
				return true;
			}
			break;
		
		case joaat("slamvan3"):
			if (!Global_262145.f_12222)
			{
				return false;
			}
			else
			{
				return true;
			}
			break;
		
		case joaat("faction3"):
			if (!Global_262145.f_12221)
			{
				return false;
			}
			else
			{
				return true;
			}
			break;
		
		case joaat("sultanrs"):
		case joaat("banshee2"):
			if (iParam1 & 1 != 0)
			{
				return false;
			}
			return true;
			break;
		
		case joaat("comet3"):
			if (Global_262145.f_16659)
			{
				if (iParam1 & 1 != 0)
				{
					return false;
				}
				return true;
			}
			return false;
			break;
		
		case joaat("diablous2"):
			if (Global_262145.f_16661)
			{
				if (iParam1 & 1 != 0)
				{
					return false;
				}
				return true;
			}
			return false;
			break;
		
		case joaat("fcr2"):
			if (Global_262145.f_16665)
			{
				if (iParam1 & 1 != 0)
				{
					return false;
				}
				return true;
			}
			return false;
			break;
		
		case joaat("elegy"):
			if (Global_262145.f_16662)
			{
				if (iParam1 & 1 != 0)
				{
					return false;
				}
				return true;
			}
			return false;
			break;
		
		case joaat("nero2"):
			if (Global_262145.f_16669)
			{
				if (iParam1 & 1 != 0)
				{
					return false;
				}
				return true;
			}
			return false;
			break;
		
		case joaat("italigtb2"):
			if (Global_262145.f_16667)
			{
				if (iParam1 & 1 != 0)
				{
					return false;
				}
				return true;
			}
			return false;
			break;
		
		case joaat("specter2"):
			if (Global_262145.f_16672)
			{
				if (iParam1 & 1 != 0)
				{
					return false;
				}
				return true;
			}
			return false;
			break;
	}
	return false;
}

void func_880(int iParam0, int iParam1)//Position - 0x7A3A7
{
	int iVar0;
	int iVar1;
	
	if (vehicle::get_num_mod_kits(iParam0) > 0)
	{
		vehicle::set_vehicle_mod_kit(iParam0, 0);
		iVar0 = vehicle::get_vehicle_mod(iParam0, 24);
		iVar1 = vehicle::get_vehicle_mod_variation(iParam0, 24);
		vehicle::set_vehicle_wheel_type(iParam0, iParam1);
		if (entity::get_entity_model(iParam0) == joaat("tornado6"))
		{
			return;
		}
		if (iVar0 == -1)
		{
			vehicle::remove_vehicle_mod(iParam0, 24);
		}
		else
		{
			vehicle::set_vehicle_mod(iParam0, 24, iVar0, iVar1 == 1);
		}
	}
}

int func_881()//Position - 0x7A40C
{
	return dlc2::is_dlc_present(-1691188696);
}

int func_882(int iParam0)//Position - 0x7A41D
{
	int iVar0;
	
	if (entity::does_entity_exist(iParam0))
	{
		if (vehicle::is_vehicle_driveable(iParam0, 0))
		{
			if (decorator::decor_is_registered_as_type("MPBitset", 3))
			{
				if (decorator::decor_exist_on(iParam0, "MPBitset"))
				{
					iVar0 = decorator::decor_get_int(iParam0, "MPBitset");
				}
				return gameplay::is_bit_set(iVar0, 4);
			}
		}
	}
	return false;
}

int func_883()//Position - 0x7A46B
{
	if (gameplay::get_hash_key(script::get_this_script_name()) == joaat("freemode"))
	{
		if (network::network_does_network_id_exist(Global_2421621[player::player_id() /*358*/].f_48) && network::network_does_entity_exist_with_network_id(Global_2421621[player::player_id() /*358*/].f_48))
		{
			return network::net_to_veh(Global_2421621[player::player_id() /*358*/].f_48);
		}
	}
	return Global_2494149.f_275;
}

bool func_884(vector3 vParam0, float fParam3, int iParam4, int iParam5, int iParam6, int iParam7, int iParam8)//Position - 0x7A4C8
{
	int iVar0;
	int iVar1;
	int iVar2;
	int iVar3;
	int iVar4;
	int iVar5;
	int iVar6;
	struct<25> Var7;
	struct<25> Var33;
	struct<25> Var59;
	int iVar85;
	int iVar86;
	
	if (!func_1022(8))
	{
		func_1021(0, 0, 0, 0, 0, 0, 0);
		func_1020(8);
	}
	if (Global_1320588[iParam5 /*140*/].f_66 == 0)
	{
		return true;
	}
	if (gameplay::is_bit_set(Global_1320588[iParam5 /*140*/].f_101, 6))
	{
		if (!func_1022(16))
		{
			func_1020(16);
		}
	}
	func_1020(31);
	if (!func_1019())
	{
		if (!func_1022(0))
		{
			if (!network::network_does_network_id_exist(func_1017(0)))
			{
				if (network::can_register_mission_vehicles(1))
				{
					if (!func_1016())
					{
						if (!func_1012())
						{
							func_1008(iParam5);
							iVar1 = Global_1320588[iParam5 /*140*/].f_66;
							if (!func_1007(iVar1) || !func_1003(iVar1, 1))
							{
								if (!func_1002(iVar1))
								{
								}
								else
								{
									func_999(iParam5, -1);
								}
								return true;
							}
							else if (func_998(iVar1))
							{
								iVar3 = 0;
								if ((network::_get_posix_time() - Global_2433082.f_501.f_28) < 15)
								{
									iVar3 = 1;
								}
								if (func_997())
								{
									iVar3 = 1;
								}
								if (network::get_time_difference(network::_0x89023FBBF9200E9F(), Global_2404994.f_26.f_2) < 15000)
								{
									Global_2404994.f_26.f_2 = network::_0x89023FBBF9200E9F();
									iVar3 = 1;
								}
								if (iParam8)
								{
									iVar3 = 1;
								}
								if (Global_2443860.f_2842.f_147)
								{
									iVar4 = 0;
									iVar3 = 1;
								}
								else
								{
									iVar4 = 1;
								}
								iVar5 = true;
								if (func_996(player::player_id()) || (cam::is_screen_faded_out() || streaming::is_player_switch_in_progress()))
								{
									iVar5 = false;
								}
								if (Global_2443860.f_2842.f_147)
								{
									if (gameplay::is_bit_set(Global_1320588[iParam5 /*140*/].f_101, 11))
									{
										gameplay::clear_bit(&(Global_1320588[iParam5 /*140*/].f_101), 11);
									}
								}
								iVar6 = false;
								if (iParam7)
								{
									iVar6 = true;
								}
								else if (gameplay::is_bit_set(Global_1320588[iParam5 /*140*/].f_101, 11))
								{
									Var7.f_3 = 1125515264;
									Var7.f_4 = 1;
									Var7.f_5 = 1;
									Var7.f_7 = 1082130432;
									Var7.f_8 = 1;
									Var7.f_11 = 1;
									Var7.f_13 = 2;
									Var7.f_20 = 2;
									Var7.f_23 = 1;
									Var7.f_24 = 1;
									Var7.f_3 = 50f;
									Var7.f_4 = 0;
									Var7.f_5 = 0;
									Var7.f_8 = iVar4;
									Var7.f_9 = iVar3;
									Var7.f_10 = 1;
									Var7.f_11 = iVar5;
									Var7.f_12 = 1;
									Var7.f_23 = 0;
									iVar2 = 0;
									while (iVar2 < 2)
									{
										Var7.f_13[iVar2 /*3*/] = { Global_2433082.f_501.f_31[iVar2 /*3*/] };
										Var7.f_20[iVar2] = Global_2433082.f_501.f_38[iVar2];
										iVar2++;
									}
									if (func_927(-145.7451f, -1167.937f, 24.2819f, 0f, 0f, 0f, iVar1, 1, &vParam0, &fParam3, &Var7))
									{
										iVar6 = true;
									}
									else if (func_927(-234.9622f, -1171.113f, 21.8657f, 0f, 0f, 0f, iVar1, 1, &vParam0, &fParam3, &Var7))
									{
										iVar6 = true;
									}
								}
								else if (gameplay::is_bit_set(Global_1320588[iParam5 /*140*/].f_101, 6))
								{
									if (func_919(&vParam0, &fParam3))
									{
										iVar6 = true;
									}
								}
								else
								{
									if (iParam6)
									{
										if (interior::is_valid_interior(interior::get_interior_at_coords(vParam0)))
										{
											iParam6 = false;
										}
									}
									if (!iParam6)
									{
										Var33.f_3 = 1125515264;
										Var33.f_4 = 1;
										Var33.f_5 = 1;
										Var33.f_7 = 1082130432;
										Var33.f_8 = 1;
										Var33.f_11 = 1;
										Var33.f_13 = 2;
										Var33.f_20 = 2;
										Var33.f_23 = 1;
										Var33.f_24 = 1;
										Var33 = 10f;
										Var33.f_8 = iVar4;
										Var33.f_9 = iVar3;
										Var33.f_10 = 1;
										Var33.f_11 = iVar5;
										Var33.f_12 = 1;
										Var33.f_23 = 0;
										iVar2 = 0;
										while (iVar2 < 2)
										{
											Var33.f_13[iVar2 /*3*/] = { Global_2433082.f_501.f_31[iVar2 /*3*/] };
											Var33.f_20[iVar2] = Global_2433082.f_501.f_38[iVar2];
											iVar2++;
										}
										if (func_927(vParam0, 0f, 0f, 0f, iVar1, 1, &vParam0, &fParam3, &Var33))
										{
											iVar6 = true;
										}
									}
									else
									{
										Var59.f_3 = 1125515264;
										Var59.f_4 = 1;
										Var59.f_5 = 1;
										Var59.f_7 = 1082130432;
										Var59.f_8 = 1;
										Var59.f_11 = 1;
										Var59.f_13 = 2;
										Var59.f_20 = 2;
										Var59.f_23 = 1;
										Var59.f_24 = 1;
										Var59.f_2 = iParam6;
										Var59.f_8 = iVar4;
										Var59.f_9 = iVar3;
										Var59.f_10 = 1;
										Var59.f_11 = iVar5;
										Var59.f_12 = 1;
										Var59.f_23 = 0;
										iVar2 = 0;
										while (iVar2 < 2)
										{
											Var59.f_13[iVar2 /*3*/] = { Global_2433082.f_501.f_31[iVar2 /*3*/] };
											Var59.f_20[iVar2] = Global_2433082.f_501.f_38[iVar2];
											iVar2++;
										}
										if (func_927(vParam0, 0f, 0f, 0f, iVar1, 1, &vParam0, &fParam3, &Var59))
										{
											iVar6 = true;
										}
									}
								}
								if (iVar6)
								{
									gameplay::clear_area(vParam0, 2f, 1, 0, 0, false);
									func_835(&(Global_2421621[player::player_id() /*358*/].f_48), iVar1, vParam0, fParam3, 0, 1, 0, 0, 1, 1, 0);
									network::_set_network_id_sync_to_player(Global_2421621[player::player_id() /*358*/].f_48, player::player_id(), 1);
									iVar0 = network::net_to_veh(Global_2421621[player::player_id() /*358*/].f_48);
									entity::_0x3910051CCECDB00C(iVar0, true);
									vehicle::set_vehicle_on_ground_properly(iVar0, 1084227584);
									func_914(&iVar0, iParam5);
									func_912(iVar0, iParam5);
									if (!iVar5)
									{
										network::network_fade_in_entity(iVar0, 1, 1);
									}
									if (gameplay::is_bit_set(Global_1320588[iParam5 /*140*/].f_101, 11))
									{
										func_1020(34);
									}
									else
									{
										func_911(34);
									}
									if (iParam5 >= 0 && iParam5 < 158)
									{
										gameplay::set_bit(&(Global_1320588[iParam5 /*140*/].f_101), 0);
										iVar86 = 0;
										while (iVar86 < 158)
										{
											iVar85 = false;
											if (iVar86 != iParam5)
											{
												if (gameplay::is_bit_set(Global_1320588[iVar86 /*140*/].f_101, 11))
												{
													gameplay::clear_bit(&(Global_1320588[iVar86 /*140*/].f_101), 11);
													iVar85 = true;
												}
												if (gameplay::is_bit_set(Global_1320588[iVar86 /*140*/].f_101, 0))
												{
													gameplay::clear_bit(&(Global_1320588[iVar86 /*140*/].f_101), 0);
													iVar85 = true;
												}
												if (gameplay::is_bit_set(Global_1320588[iVar86 /*140*/].f_101, 6))
												{
													func_906(iVar86);
													iVar85 = true;
												}
												if (iVar85)
												{
													func_890(iVar86, &(Global_1320588[iVar86 /*140*/]), 1, -1, 0, 0);
												}
											}
											iVar86++;
										}
									}
									if (vehicle::is_vehicle_a_convertible(iVar0, 0))
									{
										if (gameplay::is_bit_set(Global_2443860.f_5552, 2))
										{
											vehicle::lower_convertible_roof(iVar0, 1);
										}
									}
									func_890(iParam5, &(Global_1320588[iParam5 /*140*/]), 1, -1, 0, 0);
									func_886(iVar0);
									vehicle::set_vehicle_doors_locked(iVar0, 1);
									if (iParam4)
									{
										streaming::set_model_as_no_longer_needed(iVar1);
									}
									func_1020(0);
									func_911(10);
									func_911(1);
									func_911(2);
									func_911(9);
									func_911(12);
									func_911(31);
									func_911(32);
									func_911(33);
									func_911(35);
									func_911(37);
									func_911(38);
									func_885();
									Global_2421621[player::player_id() /*358*/].f_121 = 0;
									return true;
								}
							}
						}
					}
				}
			}
		}
	}
	return false;
}

void func_885()//Position - 0x7AB8D
{
	int iVar0;
	
	iVar0 = 0;
	while (iVar0 < 2)
	{
		Global_2433082.f_501.f_31[iVar0 /*3*/] = { 0f, 0f, 0f };
		Global_2433082.f_501.f_38[iVar0] = 0f;
		iVar0++;
	}
}

void func_886(int iParam0)//Position - 0x7ABC7
{
	vehicle::_0xE851E480B814D4BA(iParam0, 0);
	vehicle::set_vehicle_can_be_used_by_fleeing_peds(iParam0, 0);
	vehicle::_0xAB04325045427AAE(iParam0, 0);
	vehicle::set_vehicle_is_stolen(iParam0, false);
	func_888(iParam0);
	if (gameplay::get_hash_key(script::get_this_script_name()) == func_679())
	{
		if (network::network_does_network_id_exist(func_1017(0)))
		{
			if (iParam0 == func_883())
			{
				network::set_network_id_visible_in_cutscene(func_1017(0), 0, 1);
			}
		}
	}
	if (!func_887(entity::get_entity_model(iParam0)))
	{
		Global_2494149.f_811 = func_1023();
	}
}

bool func_887(int iParam0)//Position - 0x7AC42
{
	switch (iParam0)
	{
		case joaat("voltic2"):
		case joaat("ruiner2"):
		case joaat("dune4"):
		case joaat("dune5"):
		case joaat("phantom2"):
		case joaat("technical2"):
		case joaat("boxville5"):
		case joaat("wastelander"):
		case joaat("blazer5"):
			return true;
		
		default:
	}
	return false;
}

void func_888(int iParam0)//Position - 0x7AC8C
{
	int iVar0;
	
	if (!func_889(iParam0))
	{
		if (entity::get_entity_model(iParam0) == joaat("ruiner2"))
		{
			unk_0x44CD1F493DB2A0A6(iParam0, 1, Global_262145.f_17139);
			unk_0x44CD1F493DB2A0A6(iParam0, 0, Global_262145.f_17140);
		}
		if (entity::get_entity_model(iParam0) == joaat("blazer5"))
		{
			unk_0x44CD1F493DB2A0A6(iParam0, 0, Global_262145.f_17141);
		}
		if (entity::get_entity_model(iParam0) == joaat("voltic2"))
		{
			unk_0xE00F2AB100B76E89(iParam0, Global_262145.f_17138);
		}
		if (entity::get_entity_model(iParam0) == joaat("boxville5"))
		{
			unk_0x28D034A93FE31BF5(iParam0, 0);
		}
		if (decorator::decor_is_registered_as_type("MPBitset", 3))
		{
			if (decorator::decor_exist_on(iParam0, "MPBitset"))
			{
				iVar0 = decorator::decor_get_int(iParam0, "MPBitset");
			}
			gameplay::set_bit(&iVar0, 24);
			decorator::decor_set_int(iParam0, "MPBitset", iVar0);
		}
	}
}

bool func_889(int iParam0)//Position - 0x7AD55
{
	int iVar0;
	
	if (entity::does_entity_exist(iParam0))
	{
		if (vehicle::is_vehicle_driveable(iParam0, 0))
		{
			if (decorator::decor_is_registered_as_type("MPBitset", 3))
			{
				if (decorator::decor_exist_on(iParam0, "MPBitset"))
				{
					iVar0 = decorator::decor_get_int(iParam0, "MPBitset");
				}
				if (gameplay::is_bit_set(iVar0, 24))
				{
					return true;
				}
			}
		}
	}
	return false;
}

bool func_890(int iParam0, var uParam1, int iParam2, int iParam3, int iParam4, int iParam5)//Position - 0x7ADA8
{
	int iVar0;
	int iVar1;
	int iVar2;
	
	if (iParam2)
	{
		if (!iParam4)
		{
		}
		Global_2097152[func_371() /*10730*/].f_7546.f_1001 = network::_get_posix_time();
	}
	if (!iParam4)
	{
	}
	iVar1 = func_905(1411, iParam0);
	func_253(iVar1, uParam1->f_136, iParam3, 1);
	if (!iParam4)
	{
	}
	iVar1 = func_905(1412, iParam0);
	func_253(iVar1, uParam1->f_137, iParam3, 1);
	if (!iParam4)
	{
	}
	if (func_904(iParam0))
	{
	}
	else
	{
		iVar1 = func_905(1413, iParam0);
		func_253(iVar1, *uParam1, iParam3, 1);
		iVar0 = 0;
		while (iVar0 < 49)
		{
			if (iVar0 < 25)
			{
				iVar1 = (func_905(1414, iParam0) + iVar0);
				func_253(iVar1, uParam1->f_9[iVar0], iParam3, 1);
			}
			else
			{
				iVar1 = (func_903(iParam0) + (iVar0 - 25));
				func_253(iVar1, uParam1->f_9[iVar0], iParam3, 1);
			}
			iVar0++;
		}
		iVar0 = 0;
		iVar0 = 0;
		while (iVar0 < 2)
		{
			iVar1 = (func_905(1439, iParam0) + iVar0);
			func_253(iVar1, uParam1->f_59[iVar0], iParam3, 1);
			iVar0++;
		}
	}
	iVar1 = func_905(1441, iParam0);
	func_253(iVar1, uParam1->f_62, iParam3, 1);
	iVar1 = func_905(1442, iParam0);
	func_253(iVar1, uParam1->f_63, iParam3, 1);
	iVar1 = func_905(1443, iParam0);
	func_253(iVar1, uParam1->f_64, iParam3, 1);
	if (func_904(iParam0))
	{
		if (!iParam4)
		{
		}
	}
	else
	{
		iVar1 = func_905(1444, iParam0);
		func_253(iVar1, uParam1->f_65, iParam3, 1);
	}
	iVar1 = func_905(1445, iParam0);
	func_253(iVar1, uParam1->f_67, iParam3, 1);
	if (func_904(iParam0))
	{
		if (!iParam4)
		{
		}
	}
	else
	{
		iVar1 = func_905(1446, iParam0);
		func_253(iVar1, uParam1->f_68, iParam3, 1);
	}
	iVar1 = func_905(1447, iParam0);
	func_253(iVar1, uParam1->f_69, iParam3, 1);
	iVar1 = func_905(1448, iParam0);
	func_253(iVar1, uParam1->f_70, -1, 1);
	iVar1 = func_905(1449, iParam0);
	func_253(iVar1, uParam1->f_71, iParam3, 1);
	iVar1 = func_905(1450, iParam0);
	func_253(iVar1, uParam1->f_72, iParam3, 1);
	iVar1 = func_905(1451, iParam0);
	func_253(iVar1, uParam1->f_73, iParam3, 1);
	iVar1 = func_905(1452, iParam0);
	func_253(iVar1, uParam1->f_5, iParam3, 1);
	iVar1 = func_905(1453, iParam0);
	func_253(iVar1, uParam1->f_6, iParam3, 1);
	iVar1 = func_905(1454, iParam0);
	func_253(iVar1, uParam1->f_7, iParam3, 1);
	iVar1 = func_905(1455, iParam0);
	func_253(iVar1, uParam1->f_8, iParam3, 1);
	if (func_904(iParam0))
	{
		if (!iParam4)
		{
		}
	}
	else
	{
		iVar1 = func_905(3880, iParam0);
		func_253(iVar1, uParam1->f_74, iParam3, 1);
		iVar1 = func_905(3881, iParam0);
		func_253(iVar1, uParam1->f_75, iParam3, 1);
		iVar1 = func_905(3882, iParam0);
		func_253(iVar1, uParam1->f_76, iParam3, 1);
		iVar1 = func_902(iParam0);
		func_253(iVar1, uParam1->f_96, iParam3, 1);
		iVar1 = func_901(iParam0);
		func_253(iVar1, uParam1->f_98, iParam3, 1);
		iVar1 = func_893(iParam0);
		func_253(iVar1, uParam1->f_97, iParam3, 1);
	}
	iVar2 = Global_2097152[func_371() /*10730*/].f_7546.f_1001;
	if (iParam5)
	{
		iVar2 = network::_get_posix_time();
	}
	func_237(1623, iVar2, iParam3, 1, 0);
	if (!iParam4)
	{
	}
	func_237(func_892(1, iParam0), uParam1->f_101, iParam3, 1, 0);
	if (!iParam4)
	{
	}
	func_237(func_892(2, iParam0), uParam1->f_102, iParam3, 1, 0);
	if (!iParam4)
	{
	}
	func_237(func_892(3, iParam0), uParam1->f_103, iParam3, 1, 0);
	if (!iParam4)
	{
	}
	func_237(func_892(4, iParam0), uParam1->f_66, iParam3, 1, 0);
	func_237(func_892(5, iParam0), uParam1->f_77, iParam3, 1, 0);
	if (!iParam4)
	{
	}
	func_237(func_892(7, iParam0), uParam1->f_138, iParam3, 1, 0);
	if (!func_904(iParam0))
	{
		if (!gameplay::is_string_null_or_empty(&(uParam1->f_1)))
		{
			func_891(func_892(6, iParam0), &(uParam1->f_1), iParam3);
			if (!iParam4)
			{
			}
		}
		else if (!iParam4)
		{
		}
	}
	if (!iParam4)
	{
	}
	return true;
}

void func_891(var uParam0, var uParam1, int iParam2)//Position - 0x7B1FB
{
	int iVar0;
	
	iVar0 = Global_2503773[uParam0 /*3*/][func_69(iParam2)];
	if (iVar0 != 0)
	{
		stats::stat_set_license_plate(iVar0, uParam1);
	}
}

int func_892(int iParam0, int iParam1)//Position - 0x7B224
{
	switch (iParam0)
	{
		case 1:
			switch (iParam1)
			{
				case 0:
					return 1624;
				
				case 1:
					return 1631;
				
				case 2:
					return 1638;
				
				case 3:
					return 1645;
				
				case 4:
					return 1652;
				
				case 5:
					return 1659;
				
				case 6:
					return 1666;
				
				case 7:
					return 1673;
				
				case 8:
					return 1680;
				
				case 9:
					return 1687;
				
				case 10:
					return 1694;
				
				case 11:
					return 1700;
				
				case 12:
					return 1706;
				
				case 13:
					return 1712;
				
				case 14:
					return 1789;
				
				case 15:
					return 1796;
				
				case 16:
					return 1803;
				
				case 17:
					return 1810;
				
				case 18:
					return 1817;
				
				case 19:
					return 1824;
				
				case 20:
					return 1831;
				
				case 21:
					return 1838;
				
				case 22:
					return 1845;
				
				case 23:
					return 1852;
				
				case 24:
					return 1858;
				
				case 25:
					return 1864;
				
				case 26:
					return 2159;
				
				case 27:
					return 2166;
				
				case 28:
					return 2173;
				
				case 29:
					return 2180;
				
				case 30:
					return 2187;
				
				case 31:
					return 2194;
				
				case 32:
					return 2201;
				
				case 33:
					return 2208;
				
				case 34:
					return 2215;
				
				case 35:
					return 2222;
				
				case 36:
					return 2229;
				
				case 37:
					return 2235;
				
				case 38:
					return 2241;
				
				case 39:
					return 2810;
				
				case 40:
					return 2817;
				
				case 41:
					return 2824;
				
				case 42:
					return 2831;
				
				case 43:
					return 2838;
				
				case 44:
					return 2845;
				
				case 45:
					return 2852;
				
				case 46:
					return 2859;
				
				case 47:
					return 2866;
				
				case 48:
					return 2873;
				
				case 49:
					return 2880;
				
				case 50:
					return 2886;
				
				case 51:
					return 2892;
				
				case 52:
					return 2934;
				
				case 53:
					return 2941;
				
				case 54:
					return 2948;
				
				case 55:
					return 2955;
				
				case 56:
					return 2962;
				
				case 57:
					return 2969;
				
				case 58:
					return 2976;
				
				case 59:
					return 2983;
				
				case 60:
					return 2990;
				
				case 61:
					return 2997;
				
				case 62:
					return 3004;
				
				case 63:
					return 3010;
				
				case 64:
					return 3016;
				
				case 65:
					return 3217;
				
				case 66:
					return 3225;
				
				case 67:
					return 3233;
				
				case 68:
					return 3241;
				
				case 69:
					return 3249;
				
				case 70:
					return 3257;
				
				case 71:
					return 3265;
				
				case 72:
					return 3273;
				
				case 73:
					return 3281;
				
				case 74:
					return 3289;
				
				case 75:
					return 3297;
				
				case 76:
					return 3305;
				
				case 77:
					return 3313;
				
				case 78:
					return 3321;
				
				case 79:
					return 3329;
				
				case 80:
					return 3337;
				
				case 81:
					return 3345;
				
				case 82:
					return 3353;
				
				case 83:
					return 3361;
				
				case 84:
					return 3369;
				
				case 85:
					return 3377;
				
				case 86:
					return 3384;
				
				case 87:
					return 3391;
				
				default:
			}
			switch (iParam1)
			{
				case 88:
					return 4003;
				
				case 89:
					return 4011;
				
				case 90:
					return 4019;
				
				case 91:
					return 4027;
				
				case 92:
					return 4035;
				
				case 93:
					return 4043;
				
				case 94:
					return 4051;
				
				case 95:
					return 4059;
				
				case 96:
					return 4067;
				
				case 97:
					return 4075;
				
				case 98:
					return 4083;
				
				case 99:
					return 4091;
				
				case 100:
					return 4099;
				
				case 101:
					return 4107;
				
				case 102:
					return 4115;
				
				case 103:
					return 4123;
				
				case 104:
					return 4131;
				
				case 105:
					return 4139;
				
				case 106:
					return 4147;
				
				case 107:
					return 4155;
				
				case 108:
					return 4163;
				
				case 109:
					return 4171;
				
				case 110:
					return 4179;
				
				case 111:
					return 4187;
				
				case 112:
					return 4195;
				
				case 113:
					return 4203;
				
				case 114:
					return 4211;
				
				case 115:
					return 4219;
				
				case 116:
					return 4227;
				
				case 117:
					return 4235;
				
				case 118:
					return 4243;
				
				case 119:
					return 4251;
				
				case 120:
					return 4259;
				
				case 121:
					return 4267;
				
				case 122:
					return 4275;
				
				case 123:
					return 4283;
				
				case 124:
					return 4291;
				
				case 125:
					return 4299;
				
				case 126:
					return 4307;
				
				case 127:
					return 4315;
				
				case 128:
					return 4323;
				
				case 129:
					return 4331;
				
				case 130:
					return 4339;
				
				case 131:
					return 4347;
				
				case 132:
					return 4355;
				
				case 133:
					return 4363;
				
				case 134:
					return 4371;
				
				case 135:
					return 4379;
				
				case 136:
					return 4387;
				
				case 137:
					return 4395;
				
				case 138:
					return 4403;
				
				case 139:
					return 4411;
				
				case 140:
					return 4419;
				
				case 141:
					return 4427;
				
				case 142:
					return 4435;
				
				case 143:
					return 4443;
				
				case 144:
					return 4451;
				
				case 145:
					return 4459;
				
				case 146:
					return 4467;
				
				case 147:
					return 4475;
				
				case 148:
					return 4483;
				
				case 149:
					return 4491;
				
				case 150:
					return 4499;
				
				case 151:
					return 4507;
				
				case 152:
					return 4515;
				
				case 153:
					return 4523;
				
				case 154:
					return 4531;
				
				case 155:
					return 4539;
				
				case 156:
					return 4547;
				
				case 157:
					return 4555;
				
				default:
			}
			break;
		
		case 2:
			switch (iParam1)
			{
				case 0:
					return 1625;
				
				case 1:
					return 1632;
				
				case 2:
					return 1639;
				
				case 3:
					return 1646;
				
				case 4:
					return 1653;
				
				case 5:
					return 1660;
				
				case 6:
					return 1667;
				
				case 7:
					return 1674;
				
				case 8:
					return 1681;
				
				case 9:
					return 1688;
				
				case 10:
					return 1695;
				
				case 11:
					return 1701;
				
				case 12:
					return 1707;
				
				case 13:
					return 1713;
				
				case 14:
					return 1790;
				
				case 15:
					return 1797;
				
				case 16:
					return 1804;
				
				case 17:
					return 1811;
				
				case 18:
					return 1818;
				
				case 19:
					return 1825;
				
				case 20:
					return 1832;
				
				case 21:
					return 1839;
				
				case 22:
					return 1846;
				
				case 23:
					return 1853;
				
				case 24:
					return 1859;
				
				case 25:
					return 1865;
				
				case 26:
					return 2160;
				
				case 27:
					return 2167;
				
				case 28:
					return 2174;
				
				case 29:
					return 2181;
				
				case 30:
					return 2188;
				
				case 31:
					return 2195;
				
				case 32:
					return 2202;
				
				case 33:
					return 2209;
				
				case 34:
					return 2216;
				
				case 35:
					return 2223;
				
				case 36:
					return 2230;
				
				case 37:
					return 2236;
				
				case 38:
					return 2242;
				
				case 39:
					return 2811;
				
				case 40:
					return 2818;
				
				case 41:
					return 2825;
				
				case 42:
					return 2832;
				
				case 43:
					return 2839;
				
				case 44:
					return 2846;
				
				case 45:
					return 2853;
				
				case 46:
					return 2860;
				
				case 47:
					return 2867;
				
				case 48:
					return 2874;
				
				case 49:
					return 2881;
				
				case 50:
					return 2887;
				
				case 51:
					return 2893;
				
				case 52:
					return 2935;
				
				case 53:
					return 2942;
				
				case 54:
					return 2949;
				
				case 55:
					return 2956;
				
				case 56:
					return 2963;
				
				case 57:
					return 2970;
				
				case 58:
					return 2977;
				
				case 59:
					return 2984;
				
				case 60:
					return 2991;
				
				case 61:
					return 2998;
				
				case 62:
					return 3005;
				
				case 63:
					return 3011;
				
				case 64:
					return 3017;
				
				case 65:
					return 3218;
				
				case 66:
					return 3226;
				
				case 67:
					return 3234;
				
				case 68:
					return 3242;
				
				case 69:
					return 3250;
				
				case 70:
					return 3258;
				
				case 71:
					return 3266;
				
				case 72:
					return 3274;
				
				case 73:
					return 3282;
				
				case 74:
					return 3290;
				
				case 75:
					return 3298;
				
				case 76:
					return 3306;
				
				case 77:
					return 3314;
				
				case 78:
					return 3322;
				
				case 79:
					return 3330;
				
				case 80:
					return 3338;
				
				case 81:
					return 3346;
				
				case 82:
					return 3354;
				
				case 83:
					return 3362;
				
				case 84:
					return 3370;
				
				case 85:
					return 3378;
				
				case 86:
					return 3385;
				
				case 87:
					return 3392;
				
				default:
			}
			switch (iParam1)
			{
				case 88:
					return 4004;
				
				case 89:
					return 4012;
				
				case 90:
					return 4020;
				
				case 91:
					return 4028;
				
				case 92:
					return 4036;
				
				case 93:
					return 4044;
				
				case 94:
					return 4052;
				
				case 95:
					return 4060;
				
				case 96:
					return 4068;
				
				case 97:
					return 4076;
				
				case 98:
					return 4084;
				
				case 99:
					return 4092;
				
				case 100:
					return 4100;
				
				case 101:
					return 4108;
				
				case 102:
					return 4116;
				
				case 103:
					return 4124;
				
				case 104:
					return 4132;
				
				case 105:
					return 4140;
				
				case 106:
					return 4148;
				
				case 107:
					return 4156;
				
				case 108:
					return 4164;
				
				case 109:
					return 4172;
				
				case 110:
					return 4180;
				
				case 111:
					return 4188;
				
				case 112:
					return 4196;
				
				case 113:
					return 4204;
				
				case 114:
					return 4212;
				
				case 115:
					return 4220;
				
				case 116:
					return 4228;
				
				case 117:
					return 4236;
				
				case 118:
					return 4244;
				
				case 119:
					return 4252;
				
				case 120:
					return 4260;
				
				case 121:
					return 4268;
				
				case 122:
					return 4276;
				
				case 123:
					return 4284;
				
				case 124:
					return 4292;
				
				case 125:
					return 4300;
				
				case 126:
					return 4308;
				
				case 127:
					return 4316;
				
				case 128:
					return 4324;
				
				case 129:
					return 4332;
				
				case 130:
					return 4340;
				
				case 131:
					return 4348;
				
				case 132:
					return 4356;
				
				case 133:
					return 4364;
				
				case 134:
					return 4372;
				
				case 135:
					return 4380;
				
				case 136:
					return 4388;
				
				case 137:
					return 4396;
				
				case 138:
					return 4404;
				
				case 139:
					return 4412;
				
				case 140:
					return 4420;
				
				case 141:
					return 4428;
				
				case 142:
					return 4436;
				
				case 143:
					return 4444;
				
				case 144:
					return 4452;
				
				case 145:
					return 4460;
				
				case 146:
					return 4468;
				
				case 147:
					return 4476;
				
				case 148:
					return 4484;
				
				case 149:
					return 4492;
				
				case 150:
					return 4500;
				
				case 151:
					return 4508;
				
				case 152:
					return 4516;
				
				case 153:
					return 4524;
				
				case 154:
					return 4532;
				
				case 155:
					return 4540;
				
				case 156:
					return 4548;
				
				case 157:
					return 4556;
				
				default:
			}
			break;
		
		case 3:
			switch (iParam1)
			{
				case 0:
					return 1626;
				
				case 1:
					return 1633;
				
				case 2:
					return 1640;
				
				case 3:
					return 1647;
				
				case 4:
					return 1654;
				
				case 5:
					return 1661;
				
				case 6:
					return 1668;
				
				case 7:
					return 1675;
				
				case 8:
					return 1682;
				
				case 9:
					return 1689;
				
				case 10:
					return 1696;
				
				case 11:
					return 1702;
				
				case 12:
					return 1708;
				
				case 13:
					return 1714;
				
				case 14:
					return 1791;
				
				case 15:
					return 1798;
				
				case 16:
					return 1805;
				
				case 17:
					return 1812;
				
				case 18:
					return 1819;
				
				case 19:
					return 1826;
				
				case 20:
					return 1833;
				
				case 21:
					return 1840;
				
				case 22:
					return 1847;
				
				case 23:
					return 1854;
				
				case 24:
					return 1860;
				
				case 25:
					return 1866;
				
				case 26:
					return 2161;
				
				case 27:
					return 2168;
				
				case 28:
					return 2175;
				
				case 29:
					return 2182;
				
				case 30:
					return 2189;
				
				case 31:
					return 2196;
				
				case 32:
					return 2203;
				
				case 33:
					return 2210;
				
				case 34:
					return 2217;
				
				case 35:
					return 2224;
				
				case 36:
					return 2231;
				
				case 37:
					return 2237;
				
				case 38:
					return 2243;
				
				case 39:
					return 2812;
				
				case 40:
					return 2819;
				
				case 41:
					return 2826;
				
				case 42:
					return 2833;
				
				case 43:
					return 2840;
				
				case 44:
					return 2847;
				
				case 45:
					return 2854;
				
				case 46:
					return 2861;
				
				case 47:
					return 2868;
				
				case 48:
					return 2875;
				
				case 49:
					return 2882;
				
				case 50:
					return 2888;
				
				case 51:
					return 2894;
				
				case 52:
					return 2936;
				
				case 53:
					return 2943;
				
				case 54:
					return 2950;
				
				case 55:
					return 2957;
				
				case 56:
					return 2964;
				
				case 57:
					return 2971;
				
				case 58:
					return 2978;
				
				case 59:
					return 2985;
				
				case 60:
					return 2992;
				
				case 61:
					return 2999;
				
				case 62:
					return 3006;
				
				case 63:
					return 3012;
				
				case 64:
					return 3018;
				
				case 65:
					return 3219;
				
				case 66:
					return 3227;
				
				case 67:
					return 3235;
				
				case 68:
					return 3243;
				
				case 69:
					return 3251;
				
				case 70:
					return 3259;
				
				case 71:
					return 3267;
				
				case 72:
					return 3275;
				
				case 73:
					return 3283;
				
				case 74:
					return 3291;
				
				case 75:
					return 3299;
				
				case 76:
					return 3307;
				
				case 77:
					return 3315;
				
				case 78:
					return 3323;
				
				case 79:
					return 3331;
				
				case 80:
					return 3339;
				
				case 81:
					return 3347;
				
				case 82:
					return 3355;
				
				case 83:
					return 3363;
				
				case 84:
					return 3371;
				
				case 85:
					return 3379;
				
				case 86:
					return 3386;
				
				case 87:
					return 3393;
				
				default:
			}
			switch (iParam1)
			{
				case 88:
					return 4005;
				
				case 89:
					return 4013;
				
				case 90:
					return 4021;
				
				case 91:
					return 4029;
				
				case 92:
					return 4037;
				
				case 93:
					return 4045;
				
				case 94:
					return 4053;
				
				case 95:
					return 4061;
				
				case 96:
					return 4069;
				
				case 97:
					return 4077;
				
				case 98:
					return 4085;
				
				case 99:
					return 4093;
				
				case 100:
					return 4101;
				
				case 101:
					return 4109;
				
				case 102:
					return 4117;
				
				case 103:
					return 4125;
				
				case 104:
					return 4133;
				
				case 105:
					return 4141;
				
				case 106:
					return 4149;
				
				case 107:
					return 4157;
				
				case 108:
					return 4165;
				
				case 109:
					return 4173;
				
				case 110:
					return 4181;
				
				case 111:
					return 4189;
				
				case 112:
					return 4197;
				
				case 113:
					return 4205;
				
				case 114:
					return 4213;
				
				case 115:
					return 4221;
				
				case 116:
					return 4229;
				
				case 117:
					return 4237;
				
				case 118:
					return 4245;
				
				case 119:
					return 4253;
				
				case 120:
					return 4261;
				
				case 121:
					return 4269;
				
				case 122:
					return 4277;
				
				case 123:
					return 4285;
				
				case 124:
					return 4293;
				
				case 125:
					return 4301;
				
				case 126:
					return 4309;
				
				case 127:
					return 4317;
				
				case 128:
					return 4325;
				
				case 129:
					return 4333;
				
				case 130:
					return 4341;
				
				case 131:
					return 4349;
				
				case 132:
					return 4357;
				
				case 133:
					return 4365;
				
				case 134:
					return 4373;
				
				case 135:
					return 4381;
				
				case 136:
					return 4389;
				
				case 137:
					return 4397;
				
				case 138:
					return 4405;
				
				case 139:
					return 4413;
				
				case 140:
					return 4421;
				
				case 141:
					return 4429;
				
				case 142:
					return 4437;
				
				case 143:
					return 4445;
				
				case 144:
					return 4453;
				
				case 145:
					return 4461;
				
				case 146:
					return 4469;
				
				case 147:
					return 4477;
				
				case 148:
					return 4485;
				
				case 149:
					return 4493;
				
				case 150:
					return 4501;
				
				case 151:
					return 4509;
				
				case 152:
					return 4517;
				
				case 153:
					return 4525;
				
				case 154:
					return 4533;
				
				case 155:
					return 4541;
				
				case 156:
					return 4549;
				
				case 157:
					return 4557;
				
				default:
			}
			break;
		
		case 4:
			switch (iParam1)
			{
				case 0:
					return 1627;
				
				case 1:
					return 1634;
				
				case 2:
					return 1641;
				
				case 3:
					return 1648;
				
				case 4:
					return 1655;
				
				case 5:
					return 1662;
				
				case 6:
					return 1669;
				
				case 7:
					return 1676;
				
				case 8:
					return 1683;
				
				case 9:
					return 1690;
				
				case 10:
					return 1697;
				
				case 11:
					return 1703;
				
				case 12:
					return 1709;
				
				case 13:
					return 1715;
				
				case 14:
					return 1792;
				
				case 15:
					return 1799;
				
				case 16:
					return 1806;
				
				case 17:
					return 1813;
				
				case 18:
					return 1820;
				
				case 19:
					return 1827;
				
				case 20:
					return 1834;
				
				case 21:
					return 1841;
				
				case 22:
					return 1848;
				
				case 23:
					return 1855;
				
				case 24:
					return 1861;
				
				case 25:
					return 1867;
				
				case 26:
					return 2162;
				
				case 27:
					return 2169;
				
				case 28:
					return 2176;
				
				case 29:
					return 2183;
				
				case 30:
					return 2190;
				
				case 31:
					return 2197;
				
				case 32:
					return 2204;
				
				case 33:
					return 2211;
				
				case 34:
					return 2218;
				
				case 35:
					return 2225;
				
				case 36:
					return 2232;
				
				case 37:
					return 2238;
				
				case 38:
					return 2244;
				
				case 39:
					return 2813;
				
				case 40:
					return 2820;
				
				case 41:
					return 2827;
				
				case 42:
					return 2834;
				
				case 43:
					return 2841;
				
				case 44:
					return 2848;
				
				case 45:
					return 2855;
				
				case 46:
					return 2862;
				
				case 47:
					return 2869;
				
				case 48:
					return 2876;
				
				case 49:
					return 2883;
				
				case 50:
					return 2889;
				
				case 51:
					return 2895;
				
				case 52:
					return 2937;
				
				case 53:
					return 2944;
				
				case 54:
					return 2951;
				
				case 55:
					return 2958;
				
				case 56:
					return 2965;
				
				case 57:
					return 2972;
				
				case 58:
					return 2979;
				
				case 59:
					return 2986;
				
				case 60:
					return 2993;
				
				case 61:
					return 3000;
				
				case 62:
					return 3007;
				
				case 63:
					return 3013;
				
				case 64:
					return 3019;
				
				case 65:
					return 3220;
				
				case 66:
					return 3228;
				
				case 67:
					return 3236;
				
				case 68:
					return 3244;
				
				case 69:
					return 3252;
				
				case 70:
					return 3260;
				
				case 71:
					return 3268;
				
				case 72:
					return 3276;
				
				case 73:
					return 3284;
				
				case 74:
					return 3292;
				
				case 75:
					return 3300;
				
				case 76:
					return 3308;
				
				case 77:
					return 3316;
				
				case 78:
					return 3324;
				
				case 79:
					return 3332;
				
				case 80:
					return 3340;
				
				case 81:
					return 3348;
				
				case 82:
					return 3356;
				
				case 83:
					return 3364;
				
				case 84:
					return 3372;
				
				case 85:
					return 3380;
				
				case 86:
					return 3387;
				
				case 87:
					return 3394;
				
				default:
			}
			switch (iParam1)
			{
				case 88:
					return 4006;
				
				case 89:
					return 4014;
				
				case 90:
					return 4022;
				
				case 91:
					return 4030;
				
				case 92:
					return 4038;
				
				case 93:
					return 4046;
				
				case 94:
					return 4054;
				
				case 95:
					return 4062;
				
				case 96:
					return 4070;
				
				case 97:
					return 4078;
				
				case 98:
					return 4086;
				
				case 99:
					return 4094;
				
				case 100:
					return 4102;
				
				case 101:
					return 4110;
				
				case 102:
					return 4118;
				
				case 103:
					return 4126;
				
				case 104:
					return 4134;
				
				case 105:
					return 4142;
				
				case 106:
					return 4150;
				
				case 107:
					return 4158;
				
				case 108:
					return 4166;
				
				case 109:
					return 4174;
				
				case 110:
					return 4182;
				
				case 111:
					return 4190;
				
				case 112:
					return 4198;
				
				case 113:
					return 4206;
				
				case 114:
					return 4214;
				
				case 115:
					return 4222;
				
				case 116:
					return 4230;
				
				case 117:
					return 4238;
				
				case 118:
					return 4246;
				
				case 119:
					return 4254;
				
				case 120:
					return 4262;
				
				case 121:
					return 4270;
				
				case 122:
					return 4278;
				
				case 123:
					return 4286;
				
				case 124:
					return 4294;
				
				case 125:
					return 4302;
				
				case 126:
					return 4310;
				
				case 127:
					return 4318;
				
				case 128:
					return 4326;
				
				case 129:
					return 4334;
				
				case 130:
					return 4342;
				
				case 131:
					return 4350;
				
				case 132:
					return 4358;
				
				case 133:
					return 4366;
				
				case 134:
					return 4374;
				
				case 135:
					return 4382;
				
				case 136:
					return 4390;
				
				case 137:
					return 4398;
				
				case 138:
					return 4406;
				
				case 139:
					return 4414;
				
				case 140:
					return 4422;
				
				case 141:
					return 4430;
				
				case 142:
					return 4438;
				
				case 143:
					return 4446;
				
				case 144:
					return 4454;
				
				case 145:
					return 4462;
				
				case 146:
					return 4470;
				
				case 147:
					return 4478;
				
				case 148:
					return 4486;
				
				case 149:
					return 4494;
				
				case 150:
					return 4502;
				
				case 151:
					return 4510;
				
				case 152:
					return 4518;
				
				case 153:
					return 4526;
				
				case 154:
					return 4534;
				
				case 155:
					return 4542;
				
				case 156:
					return 4550;
				
				case 157:
					return 4558;
				
				default:
			}
			break;
		
		case 5:
			switch (iParam1)
			{
				case 0:
					return 1628;
				
				case 1:
					return 1635;
				
				case 2:
					return 1642;
				
				case 3:
					return 1649;
				
				case 4:
					return 1656;
				
				case 5:
					return 1663;
				
				case 6:
					return 1670;
				
				case 7:
					return 1677;
				
				case 8:
					return 1684;
				
				case 9:
					return 1691;
				
				case 10:
					return 1698;
				
				case 11:
					return 1704;
				
				case 12:
					return 1710;
				
				case 13:
					return 1716;
				
				case 14:
					return 1793;
				
				case 15:
					return 1800;
				
				case 16:
					return 1807;
				
				case 17:
					return 1814;
				
				case 18:
					return 1821;
				
				case 19:
					return 1828;
				
				case 20:
					return 1835;
				
				case 21:
					return 1842;
				
				case 22:
					return 1849;
				
				case 23:
					return 1856;
				
				case 24:
					return 1862;
				
				case 25:
					return 1868;
				
				case 26:
					return 2163;
				
				case 27:
					return 2170;
				
				case 28:
					return 2177;
				
				case 29:
					return 2184;
				
				case 30:
					return 2191;
				
				case 31:
					return 2198;
				
				case 32:
					return 2205;
				
				case 33:
					return 2212;
				
				case 34:
					return 2219;
				
				case 35:
					return 2226;
				
				case 36:
					return 2233;
				
				case 37:
					return 2239;
				
				case 38:
					return 2245;
				
				case 39:
					return 2814;
				
				case 40:
					return 2821;
				
				case 41:
					return 2828;
				
				case 42:
					return 2835;
				
				case 43:
					return 2842;
				
				case 44:
					return 2849;
				
				case 45:
					return 2856;
				
				case 46:
					return 2863;
				
				case 47:
					return 2870;
				
				case 48:
					return 2877;
				
				case 49:
					return 2884;
				
				case 50:
					return 2890;
				
				case 51:
					return 2896;
				
				case 52:
					return 2938;
				
				case 53:
					return 2945;
				
				case 54:
					return 2952;
				
				case 55:
					return 2959;
				
				case 56:
					return 2966;
				
				case 57:
					return 2973;
				
				case 58:
					return 2980;
				
				case 59:
					return 2987;
				
				case 60:
					return 2994;
				
				case 61:
					return 3001;
				
				case 62:
					return 3008;
				
				case 63:
					return 3014;
				
				case 64:
					return 3020;
				
				case 65:
					return 3221;
				
				case 66:
					return 3229;
				
				case 67:
					return 3237;
				
				case 68:
					return 3245;
				
				case 69:
					return 3253;
				
				case 70:
					return 3261;
				
				case 71:
					return 3269;
				
				case 72:
					return 3277;
				
				case 73:
					return 3285;
				
				case 74:
					return 3293;
				
				case 75:
					return 3301;
				
				case 76:
					return 3309;
				
				case 77:
					return 3317;
				
				case 78:
					return 3325;
				
				case 79:
					return 3333;
				
				case 80:
					return 3341;
				
				case 81:
					return 3349;
				
				case 82:
					return 3357;
				
				case 83:
					return 3365;
				
				case 84:
					return 3373;
				
				case 85:
					return 3381;
				
				case 86:
					return 3388;
				
				case 87:
					return 3395;
				
				default:
			}
			switch (iParam1)
			{
				case 88:
					return 4007;
				
				case 89:
					return 4015;
				
				case 90:
					return 4023;
				
				case 91:
					return 4031;
				
				case 92:
					return 4039;
				
				case 93:
					return 4047;
				
				case 94:
					return 4055;
				
				case 95:
					return 4063;
				
				case 96:
					return 4071;
				
				case 97:
					return 4079;
				
				case 98:
					return 4087;
				
				case 99:
					return 4095;
				
				case 100:
					return 4103;
				
				case 101:
					return 4111;
				
				case 102:
					return 4119;
				
				case 103:
					return 4127;
				
				case 104:
					return 4135;
				
				case 105:
					return 4143;
				
				case 106:
					return 4151;
				
				case 107:
					return 4159;
				
				case 108:
					return 4167;
				
				case 109:
					return 4175;
				
				case 110:
					return 4183;
				
				case 111:
					return 4191;
				
				case 112:
					return 4199;
				
				case 113:
					return 4207;
				
				case 114:
					return 4215;
				
				case 115:
					return 4223;
				
				case 116:
					return 4231;
				
				case 117:
					return 4239;
				
				case 118:
					return 4247;
				
				case 119:
					return 4255;
				
				case 120:
					return 4263;
				
				case 121:
					return 4271;
				
				case 122:
					return 4279;
				
				case 123:
					return 4287;
				
				case 124:
					return 4295;
				
				case 125:
					return 4303;
				
				case 126:
					return 4311;
				
				case 127:
					return 4319;
				
				case 128:
					return 4327;
				
				case 129:
					return 4335;
				
				case 130:
					return 4343;
				
				case 131:
					return 4351;
				
				case 132:
					return 4359;
				
				case 133:
					return 4367;
				
				case 134:
					return 4375;
				
				case 135:
					return 4383;
				
				case 136:
					return 4391;
				
				case 137:
					return 4399;
				
				case 138:
					return 4407;
				
				case 139:
					return 4415;
				
				case 140:
					return 4423;
				
				case 141:
					return 4431;
				
				case 142:
					return 4439;
				
				case 143:
					return 4447;
				
				case 144:
					return 4455;
				
				case 145:
					return 4463;
				
				case 146:
					return 4471;
				
				case 147:
					return 4479;
				
				case 148:
					return 4487;
				
				case 149:
					return 4495;
				
				case 150:
					return 4503;
				
				case 151:
					return 4511;
				
				case 152:
					return 4519;
				
				case 153:
					return 4527;
				
				case 154:
					return 4535;
				
				case 155:
					return 4543;
				
				case 156:
					return 4551;
				
				case 157:
					return 4559;
				
				default:
			}
			break;
		
		case 6:
			switch (iParam1)
			{
				case 0:
					return 1630;
				
				case 1:
					return 1637;
				
				case 2:
					return 1644;
				
				case 3:
					return 1651;
				
				case 4:
					return 1658;
				
				case 5:
					return 1665;
				
				case 6:
					return 1672;
				
				case 7:
					return 1679;
				
				case 8:
					return 1686;
				
				case 9:
					return 1693;
				
				case 13:
					return 1718;
				
				case 14:
					return 1795;
				
				case 15:
					return 1802;
				
				case 16:
					return 1809;
				
				case 17:
					return 1816;
				
				case 18:
					return 1823;
				
				case 19:
					return 1830;
				
				case 20:
					return 1837;
				
				case 21:
					return 1844;
				
				case 22:
					return 1851;
				
				case 26:
					return 2165;
				
				case 27:
					return 2172;
				
				case 28:
					return 2179;
				
				case 29:
					return 2186;
				
				case 30:
					return 2193;
				
				case 31:
					return 2200;
				
				case 32:
					return 2207;
				
				case 33:
					return 2214;
				
				case 34:
					return 2221;
				
				case 35:
					return 2228;
				
				case 39:
					return 2816;
				
				case 40:
					return 2823;
				
				case 41:
					return 2830;
				
				case 42:
					return 2837;
				
				case 43:
					return 2844;
				
				case 44:
					return 2851;
				
				case 45:
					return 2858;
				
				case 46:
					return 2865;
				
				case 47:
					return 2872;
				
				case 48:
					return 2879;
				
				case 52:
					return 2940;
				
				case 53:
					return 2947;
				
				case 54:
					return 2954;
				
				case 55:
					return 2961;
				
				case 56:
					return 2968;
				
				case 57:
					return 2975;
				
				case 58:
					return 2982;
				
				case 59:
					return 2989;
				
				case 60:
					return 2996;
				
				case 61:
					return 3003;
				
				case 65:
					return 3224;
				
				case 66:
					return 3232;
				
				case 67:
					return 3240;
				
				case 68:
					return 3248;
				
				case 69:
					return 3256;
				
				case 70:
					return 3264;
				
				case 71:
					return 3272;
				
				case 72:
					return 3280;
				
				case 73:
					return 3288;
				
				case 74:
					return 3296;
				
				case 75:
					return 3304;
				
				case 76:
					return 3312;
				
				case 77:
					return 3320;
				
				case 78:
					return 3328;
				
				case 79:
					return 3336;
				
				case 80:
					return 3344;
				
				case 81:
					return 3352;
				
				case 82:
					return 3360;
				
				case 83:
					return 3368;
				
				case 84:
					return 3376;
				
				default:
			}
			switch (iParam1)
			{
				case 88:
					return 4010;
				
				case 89:
					return 4018;
				
				case 90:
					return 4026;
				
				case 91:
					return 4034;
				
				case 92:
					return 4042;
				
				case 93:
					return 4050;
				
				case 94:
					return 4058;
				
				case 95:
					return 4066;
				
				case 96:
					return 4074;
				
				case 97:
					return 4082;
				
				case 98:
					return 4090;
				
				case 99:
					return 4098;
				
				case 100:
					return 4106;
				
				case 101:
					return 4114;
				
				case 102:
					return 4122;
				
				case 103:
					return 4130;
				
				case 104:
					return 4138;
				
				case 105:
					return 4146;
				
				case 106:
					return 4154;
				
				case 107:
					return 4162;
				
				case 108:
					return 4170;
				
				case 109:
					return 4178;
				
				case 110:
					return 4186;
				
				case 111:
					return 4194;
				
				case 112:
					return 4202;
				
				case 113:
					return 4210;
				
				case 114:
					return 4218;
				
				case 115:
					return 4226;
				
				case 116:
					return 4234;
				
				case 117:
					return 4242;
				
				case 118:
					return 4250;
				
				case 119:
					return 4258;
				
				case 120:
					return 4266;
				
				case 121:
					return 4274;
				
				case 122:
					return 4282;
				
				case 123:
					return 4290;
				
				case 124:
					return 4298;
				
				case 125:
					return 4306;
				
				case 126:
					return 4314;
				
				case 127:
					return 4322;
				
				case 128:
					return 4330;
				
				case 129:
					return 4338;
				
				case 130:
					return 4346;
				
				case 131:
					return 4354;
				
				case 132:
					return 4362;
				
				case 133:
					return 4370;
				
				case 134:
					return 4378;
				
				case 135:
					return 4386;
				
				case 136:
					return 4394;
				
				case 137:
					return 4402;
				
				case 138:
					return 4410;
				
				case 139:
					return 4418;
				
				case 140:
					return 4426;
				
				case 141:
					return 4434;
				
				case 142:
					return 4442;
				
				case 143:
					return 4450;
				
				case 144:
					return 4458;
				
				case 145:
					return 4466;
				
				case 146:
					return 4474;
				
				case 147:
					return 4482;
				
				case 148:
					return 4490;
				
				case 149:
					return 4498;
				
				case 150:
					return 4506;
				
				case 151:
					return 4514;
				
				case 152:
					return 4522;
				
				case 153:
					return 4530;
				
				case 154:
					return 4538;
				
				case 155:
					return 4546;
				
				case 156:
					return 4554;
				
				case 157:
					return 4562;
				
				default:
			}
			break;
		
		case 7:
			switch (iParam1)
			{
				case 0:
					return 1629;
				
				case 1:
					return 1636;
				
				case 2:
					return 1643;
				
				case 3:
					return 1650;
				
				case 4:
					return 1657;
				
				case 5:
					return 1664;
				
				case 6:
					return 1671;
				
				case 7:
					return 1678;
				
				case 8:
					return 1685;
				
				case 9:
					return 1692;
				
				case 10:
					return 1699;
				
				case 11:
					return 1705;
				
				case 12:
					return 1711;
				
				case 13:
					return 1717;
				
				case 14:
					return 1794;
				
				case 15:
					return 1801;
				
				case 16:
					return 1808;
				
				case 17:
					return 1815;
				
				case 18:
					return 1822;
				
				case 19:
					return 1829;
				
				case 20:
					return 1836;
				
				case 21:
					return 1843;
				
				case 22:
					return 1850;
				
				case 23:
					return 1857;
				
				case 24:
					return 1863;
				
				case 25:
					return 1869;
				
				case 26:
					return 2164;
				
				case 27:
					return 2171;
				
				case 28:
					return 2178;
				
				case 29:
					return 2185;
				
				case 30:
					return 2192;
				
				case 31:
					return 2199;
				
				case 32:
					return 2206;
				
				case 33:
					return 2213;
				
				case 34:
					return 2220;
				
				case 35:
					return 2227;
				
				case 36:
					return 2234;
				
				case 37:
					return 2240;
				
				case 38:
					return 2246;
				
				case 39:
					return 2815;
				
				case 40:
					return 2822;
				
				case 41:
					return 2829;
				
				case 42:
					return 2836;
				
				case 43:
					return 2843;
				
				case 44:
					return 2850;
				
				case 45:
					return 2857;
				
				case 46:
					return 2864;
				
				case 47:
					return 2871;
				
				case 48:
					return 2878;
				
				case 49:
					return 2885;
				
				case 50:
					return 2891;
				
				case 51:
					return 2897;
				
				case 52:
					return 2939;
				
				case 53:
					return 2946;
				
				case 54:
					return 2953;
				
				case 55:
					return 2960;
				
				case 56:
					return 2967;
				
				case 57:
					return 2974;
				
				case 58:
					return 2981;
				
				case 59:
					return 2988;
				
				case 60:
					return 2995;
				
				case 61:
					return 3002;
				
				case 62:
					return 3009;
				
				case 63:
					return 3015;
				
				case 64:
					return 3021;
				
				case 65:
					return 3222;
				
				case 66:
					return 3230;
				
				case 67:
					return 3238;
				
				case 68:
					return 3246;
				
				case 69:
					return 3254;
				
				case 70:
					return 3262;
				
				case 71:
					return 3270;
				
				case 72:
					return 3278;
				
				case 73:
					return 3286;
				
				case 74:
					return 3294;
				
				case 75:
					return 3302;
				
				case 76:
					return 3310;
				
				case 77:
					return 3319;
				
				case 78:
					return 3327;
				
				case 79:
					return 3334;
				
				case 80:
					return 3342;
				
				case 81:
					return 3350;
				
				case 82:
					return 3358;
				
				case 83:
					return 3366;
				
				case 84:
					return 3374;
				
				case 85:
					return 3382;
				
				case 86:
					return 3389;
				
				case 87:
					return 3396;
				
				default:
			}
			switch (iParam1)
			{
				case 88:
					return 4008;
				
				case 89:
					return 4016;
				
				case 90:
					return 4024;
				
				case 91:
					return 4032;
				
				case 92:
					return 4040;
				
				case 93:
					return 4048;
				
				case 94:
					return 4056;
				
				case 95:
					return 4064;
				
				case 96:
					return 4072;
				
				case 97:
					return 4080;
				
				case 98:
					return 4088;
				
				case 99:
					return 4096;
				
				case 100:
					return 4105;
				
				case 101:
					return 4113;
				
				case 102:
					return 4120;
				
				case 103:
					return 4128;
				
				case 104:
					return 4136;
				
				case 105:
					return 4144;
				
				case 106:
					return 4152;
				
				case 107:
					return 4160;
				
				case 108:
					return 4168;
				
				case 109:
					return 4176;
				
				case 110:
					return 4184;
				
				case 111:
					return 4192;
				
				case 112:
					return 4200;
				
				case 113:
					return 4208;
				
				case 114:
					return 4216;
				
				case 115:
					return 4224;
				
				case 116:
					return 4232;
				
				case 117:
					return 4240;
				
				case 118:
					return 4248;
				
				case 119:
					return 4256;
				
				case 120:
					return 4265;
				
				case 121:
					return 4273;
				
				case 122:
					return 4280;
				
				case 123:
					return 4288;
				
				case 124:
					return 4296;
				
				case 125:
					return 4304;
				
				case 126:
					return 4312;
				
				case 127:
					return 4320;
				
				case 128:
					return 4328;
				
				case 129:
					return 4336;
				
				case 130:
					return 4344;
				
				case 131:
					return 4352;
				
				case 132:
					return 4360;
				
				case 133:
					return 4368;
				
				case 134:
					return 4376;
				
				case 135:
					return 4384;
				
				case 136:
					return 4392;
				
				case 137:
					return 4400;
				
				case 138:
					return 4408;
				
				case 139:
					return 4416;
				
				case 140:
					return 4425;
				
				case 141:
					return 4433;
				
				case 142:
					return 4440;
				
				case 143:
					return 4448;
				
				case 144:
					return 4456;
				
				case 145:
					return 4464;
				
				case 146:
					return 4472;
				
				case 147:
					return 4480;
				
				case 148:
					return 4488;
				
				case 149:
					return 4496;
				
				case 150:
					return 4504;
				
				case 151:
					return 4512;
				
				case 152:
					return 4520;
				
				case 153:
					return 4528;
				
				case 154:
					return 4536;
				
				case 155:
					return 4544;
				
				case 156:
					return 4552;
				
				case 157:
					return 4560;
				
				default:
			}
			break;
		
		case 8:
			switch (iParam1)
			{
				case 0:
					return 5732;
				
				case 1:
					return 5733;
				
				case 2:
					return 5734;
				
				case 3:
					return 5735;
				
				case 4:
					return 5736;
				
				case 5:
					return 5737;
				
				case 6:
					return 5738;
				
				case 7:
					return 5739;
				
				case 8:
					return 5740;
				
				case 9:
					return 5741;
				
				case 10:
					return 5742;
				
				case 11:
					return 5743;
				
				case 12:
					return 5744;
				
				case 13:
					return 5745;
				
				case 14:
					return 5746;
				
				case 15:
					return 5747;
				
				case 16:
					return 5748;
				
				case 17:
					return 5749;
				
				case 18:
					return 5750;
				
				case 19:
					return 5751;
				
				case 20:
					return 5752;
				
				case 21:
					return 5753;
				
				case 22:
					return 5754;
				
				case 23:
					return 5755;
				
				case 24:
					return 5756;
				
				case 25:
					return 5757;
				
				case 26:
					return 2248;
				
				case 27:
					return 2249;
				
				case 28:
					return 2250;
				
				case 29:
					return 2251;
				
				case 30:
					return 2252;
				
				case 31:
					return 2253;
				
				case 32:
					return 2254;
				
				case 33:
					return 2255;
				
				case 34:
					return 2256;
				
				case 35:
					return 2257;
				
				case 36:
					return 2258;
				
				case 37:
					return 2259;
				
				case 38:
					return 2260;
				
				case 39:
					return 2898;
				
				case 40:
					return 2899;
				
				case 41:
					return 2900;
				
				case 42:
					return 2901;
				
				case 43:
					return 2902;
				
				case 44:
					return 2903;
				
				case 45:
					return 2904;
				
				case 46:
					return 2905;
				
				case 47:
					return 2906;
				
				case 48:
					return 2907;
				
				case 49:
					return 2908;
				
				case 50:
					return 2909;
				
				case 51:
					return 2910;
				
				case 52:
					return 3022;
				
				case 53:
					return 3023;
				
				case 54:
					return 3024;
				
				case 55:
					return 3025;
				
				case 56:
					return 3026;
				
				case 57:
					return 3027;
				
				case 58:
					return 3028;
				
				case 59:
					return 3029;
				
				case 60:
					return 3030;
				
				case 61:
					return 3031;
				
				case 62:
					return 3032;
				
				case 63:
					return 3033;
				
				case 64:
					return 3034;
				
				case 65:
					return 3223;
				
				case 66:
					return 3231;
				
				case 67:
					return 3239;
				
				case 68:
					return 3247;
				
				case 69:
					return 3255;
				
				case 70:
					return 3263;
				
				case 71:
					return 3271;
				
				case 72:
					return 3279;
				
				case 73:
					return 3287;
				
				case 74:
					return 3295;
				
				case 75:
					return 3303;
				
				case 76:
					return 3311;
				
				case 77:
					return 3318;
				
				case 78:
					return 3326;
				
				case 79:
					return 3335;
				
				case 80:
					return 3343;
				
				case 81:
					return 3351;
				
				case 82:
					return 3359;
				
				case 83:
					return 3367;
				
				case 84:
					return 3375;
				
				case 85:
					return 3383;
				
				case 86:
					return 3390;
				
				case 87:
					return 3397;
				
				default:
			}
			switch (iParam1)
			{
				case 88:
					return 4009;
				
				case 89:
					return 4017;
				
				case 90:
					return 4025;
				
				case 91:
					return 4033;
				
				case 92:
					return 4041;
				
				case 93:
					return 4049;
				
				case 94:
					return 4057;
				
				case 95:
					return 4065;
				
				case 96:
					return 4073;
				
				case 97:
					return 4081;
				
				case 98:
					return 4089;
				
				case 99:
					return 4097;
				
				case 100:
					return 4104;
				
				case 101:
					return 4112;
				
				case 102:
					return 4121;
				
				case 103:
					return 4129;
				
				case 104:
					return 4137;
				
				case 105:
					return 4145;
				
				case 106:
					return 4153;
				
				case 107:
					return 4161;
				
				case 108:
					return 4169;
				
				case 109:
					return 4177;
				
				case 110:
					return 4185;
				
				case 111:
					return 4193;
				
				case 112:
					return 4201;
				
				case 113:
					return 4209;
				
				case 114:
					return 4217;
				
				case 115:
					return 4225;
				
				case 116:
					return 4233;
				
				case 117:
					return 4241;
				
				case 118:
					return 4249;
				
				case 119:
					return 4257;
				
				case 120:
					return 4264;
				
				case 121:
					return 4272;
				
				case 122:
					return 4281;
				
				case 123:
					return 4289;
				
				case 124:
					return 4297;
				
				case 125:
					return 4305;
				
				case 126:
					return 4313;
				
				case 127:
					return 4321;
				
				case 128:
					return 4329;
				
				case 129:
					return 4337;
				
				case 130:
					return 4345;
				
				case 131:
					return 4353;
				
				case 132:
					return 4361;
				
				case 133:
					return 4369;
				
				case 134:
					return 4377;
				
				case 135:
					return 4385;
				
				case 136:
					return 4393;
				
				case 137:
					return 4401;
				
				case 138:
					return 4409;
				
				case 139:
					return 4417;
				
				case 140:
					return 4424;
				
				case 141:
					return 4432;
				
				case 142:
					return 4441;
				
				case 143:
					return 4449;
				
				case 144:
					return 4457;
				
				case 145:
					return 4465;
				
				case 146:
					return 4473;
				
				case 147:
					return 4481;
				
				case 148:
					return 4489;
				
				case 149:
					return 4497;
				
				case 150:
					return 4505;
				
				case 151:
					return 4513;
				
				case 152:
					return 4521;
				
				case 153:
					return 4529;
				
				case 154:
					return 4537;
				
				case 155:
					return 4545;
				
				case 156:
					return 4553;
				
				case 157:
					return 4561;
				
				default:
			}
			break;
	}
	return 1624;
}

int func_893(int iParam0)//Position - 0x7ED57
{
	if (iParam0 < 10)
	{
		return (7263 + iParam0);
	}
	else if (iParam0 > 12 && iParam0 < 23)
	{
		return (7263 + (iParam0 - 3));
	}
	else if (iParam0 > 25 && iParam0 < 36)
	{
		return (7263 + (iParam0 - 6));
	}
	else if (iParam0 > 38 && iParam0 < 49)
	{
		return (7263 + (iParam0 - 9));
	}
	else if (iParam0 > 51 && iParam0 < 62)
	{
		return ((7263 + iParam0) - 12);
	}
	else if (iParam0 > 64 && iParam0 < 85)
	{
		return ((9330 + iParam0) - 65);
	}
	else if (iParam0 < func_894(11))
	{
		return ((15154 + iParam0) - 88);
	}
	return 0;
}

int func_894(int iParam0)//Position - 0x7EE2D
{
	switch (iParam0)
	{
		case 8:
			return 108;
			break;
		
		case 9:
			return 128;
			break;
		
		case 10:
			return 148;
			break;
		
		case 11:
			return 158;
			break;
		
		case 6:
			return 75;
			break;
		
		case 7:
			return 88;
			break;
		
		case 5:
			return -1;
			break;
	}
	return (func_895(iParam0, -1) * iParam0 + 1);
}

int func_895(int iParam0, int iParam1)//Position - 0x7EEA9
{
	if (iParam0 == -1)
	{
		if (iParam1 >= 1)
		{
			if (func_897(iParam1, 0, 0))
			{
				return 20;
			}
			else if (func_55(iParam1))
			{
				return 0;
			}
			else if (func_896(iParam1, -1))
			{
				return 10;
			}
			else if (iParam1 == 115)
			{
				return 8;
			}
			else if (iParam1 <= 115 && iParam1 > 0)
			{
				if (Global_1049427[iParam1 /*1942*/].f_33 == 2)
				{
					return 3;
				}
				else if (Global_1049427[iParam1 /*1942*/].f_33 == 6)
				{
					return 8;
				}
				else if (Global_1049427[iParam1 /*1942*/].f_33 == 10)
				{
					return 13;
				}
			}
		}
	}
	switch (iParam0)
	{
		case 0:
		case 1:
		case 2:
		case 3:
		case 4:
		case 7:
			return 13;
			break;
		
		case 5:
			return 0;
			break;
		
		case 6:
			return 10;
			break;
		
		case 8:
		case 9:
		case 10:
			return 20;
			break;
		
		case 11:
			return 8;
			break;
	}
	return 0;
}

bool func_896(int iParam0, int iParam1)//Position - 0x7EFCB
{
	if (iParam1 == -1)
	{
		switch (iParam0)
		{
			case 91:
			case 92:
			case 93:
			case 94:
			case 95:
			case 96:
			case 97:
			case 98:
			case 99:
			case 100:
			case 101:
			case 102:
				return true;
				break;
		}
	}
	else if (iParam1 == 91)
	{
		switch (iParam0)
		{
			case 91:
			case 92:
			case 93:
			case 94:
			case 95:
			case 96:
				return true;
				break;
		}
	}
	else if (iParam1 == 97)
	{
		switch (iParam0)
		{
			case 97:
			case 98:
			case 99:
			case 100:
			case 101:
			case 102:
				return true;
				break;
			}
	}
	return false;
}

int func_897(int iParam0, int iParam1, int iParam2)//Position - 0x7F0A8
{
	if (iParam2)
	{
		return func_898(player::player_id(), 0);
	}
	if (iParam1)
	{
		if (func_898(player::player_id(), 0))
		{
			return false;
		}
		switch (iParam0)
		{
			case 103:
			case 106:
			case 109:
			case 112:
			case 104:
			case 107:
			case 110:
			case 113:
			case 105:
			case 108:
			case 111:
			case 114:
				return true;
				break;
			}
	}
	switch (iParam0)
	{
		case 103:
		case 106:
		case 109:
		case 112:
		case 104:
		case 107:
		case 110:
		case 113:
		case 105:
		case 108:
		case 111:
		case 114:
			return true;
			break;
	}
	return false;
}

int func_898(int iParam0, int iParam1)//Position - 0x7F183
{
	if (Global_1589801 != func_45())
	{
		if (!func_900(Global_1589801))
		{
			return false;
		}
		if (iParam1)
		{
			if (player::player_id() != Global_1589801)
			{
				if (gameplay::is_bit_set(Global_2421621[Global_1589801 /*358*/].f_198, 24) || func_899(Global_1589801))
				{
					return true;
				}
			}
		}
	}
	return gameplay::is_bit_set(Global_2421621[iParam0 /*358*/].f_198, 24);
}

int func_899(var uParam0)//Position - 0x7F1EF
{
	return gameplay::is_bit_set(Global_2421621[uParam0 /*358*/].f_198, 9);
}

int func_900(int iParam0)//Position - 0x7F208
{
	if (iParam0 != func_45())
	{
		return gameplay::is_bit_set(Global_1589933[iParam0 /*601*/].f_257.f_210, 2);
	}
	return false;
}

int func_901(int iParam0)//Position - 0x7F233
{
	if (iParam0 < 10)
	{
		return (5975 + iParam0);
	}
	else if (iParam0 > 12 && iParam0 < 23)
	{
		return (5975 + (iParam0 - 3));
	}
	else if (iParam0 > 25 && iParam0 < 36)
	{
		return (5975 + (iParam0 - 6));
	}
	else if (iParam0 > 38 && iParam0 < 49)
	{
		return (5975 + (iParam0 - 9));
	}
	else if (iParam0 > 51 && iParam0 < 62)
	{
		return ((7242 + iParam0) - 52);
	}
	else if (iParam0 > 64 && iParam0 < 85)
	{
		return ((9290 + iParam0) - 65);
	}
	else if (iParam0 < func_894(11))
	{
		return ((15014 + iParam0) - 88);
	}
	return 0;
}

int func_902(int iParam0)//Position - 0x7F309
{
	if (iParam0 < 10)
	{
		return (5935 + iParam0);
	}
	else if (iParam0 > 12 && iParam0 < 23)
	{
		return (5935 + (iParam0 - 3));
	}
	else if (iParam0 > 25 && iParam0 < 36)
	{
		return (5935 + (iParam0 - 6));
	}
	else if (iParam0 > 38 && iParam0 < 49)
	{
		return (5935 + (iParam0 - 9));
	}
	else if (iParam0 > 51 && iParam0 < 62)
	{
		return ((7232 + iParam0) - 52);
	}
	else if (iParam0 > 64 && iParam0 < 85)
	{
		return ((9270 + iParam0) - 65);
	}
	else if (iParam0 < func_894(11))
	{
		return ((14944 + iParam0) - 88);
	}
	return 0;
}

int func_903(int iParam0)//Position - 0x7F3DF
{
	int iVar0;
	
	iVar0 = (4424 - 4400);
	if (iParam0 < 10)
	{
		return (4400 + (iParam0 * iVar0));
	}
	else if (iParam0 > 12 && iParam0 < 23)
	{
		return (4640 + ((iParam0 - 13) * iVar0));
	}
	else if (iParam0 > 25 && iParam0 < 36)
	{
		return (4880 + ((iParam0 - 26) * iVar0));
	}
	else if (iParam0 > 38 && iParam0 < 49)
	{
		return (5120 + ((iParam0 - 39) * iVar0));
	}
	else if (iParam0 > 51 && iParam0 < 62)
	{
		return (6414 + ((iParam0 - 52) * iVar0));
	}
	else if (iParam0 > 64 && iParam0 < 85)
	{
		return (7682 + ((iParam0 - 65) * iVar0));
	}
	else if (iParam0 < func_894(11))
	{
		return (9554 + ((iParam0 - 88) * iVar0));
	}
	return 0;
}

bool func_904(int iParam0)//Position - 0x7F4D5
{
	switch (iParam0)
	{
		case 10:
		case 11:
		case 12:
		case 23:
		case 24:
		case 25:
		case 36:
		case 37:
		case 38:
		case 49:
		case 50:
		case 51:
		case 62:
		case 63:
		case 64:
		case 85:
		case 86:
		case 87:
			return true;
			break;
	}
	return false;
}

int func_905(int iParam0, int iParam1)//Position - 0x7F558
{
	int iVar0;
	
	if ((iParam0 == 3880 || iParam0 == 3881) || iParam0 == 3882)
	{
		if (iParam1 < 10)
		{
			iVar0 = (iParam0 + iParam1 * 3);
		}
		else if (iParam1 < 23)
		{
			if (iParam0 == 3880)
			{
				iVar0 = (3910 + (iParam1 - 13) * 3);
			}
			else if (iParam0 == 3881)
			{
				iVar0 = (3911 + (iParam1 - 13) * 3);
			}
			else if (iParam0 == 3882)
			{
				iVar0 = (3912 + (iParam1 - 13) * 3);
			}
		}
		else if (iParam1 < 36)
		{
			if (iParam0 == 3880)
			{
				iVar0 = (3946 + (iParam1 - 26) * 3);
			}
			else if (iParam0 == 3881)
			{
				iVar0 = (3947 + (iParam1 - 26) * 3);
			}
			else if (iParam0 == 3882)
			{
				iVar0 = (3948 + (iParam1 - 26) * 3);
			}
		}
		else if (iParam1 < 49)
		{
			if (iParam0 == 3880)
			{
				iVar0 = (5855 + (iParam1 - 39) * 3);
			}
			else if (iParam0 == 3881)
			{
				iVar0 = (5856 + (iParam1 - 39) * 3);
			}
			else if (iParam0 == 3882)
			{
				iVar0 = (5857 + (iParam1 - 39) * 3);
			}
		}
		else if (iParam1 < 62)
		{
			if (iParam0 == 3880)
			{
				iVar0 = (7149 + (iParam1 - 52) * 3);
			}
			else if (iParam0 == 3881)
			{
				iVar0 = (7150 + (iParam1 - 52) * 3);
			}
			else if (iParam0 == 3882)
			{
				iVar0 = (7151 + (iParam1 - 52) * 3);
			}
		}
		else if (iParam1 < 85)
		{
			if (iParam0 == 3880)
			{
				iVar0 = (9107 + (iParam1 - 65) * 3);
			}
			else if (iParam0 == 3881)
			{
				iVar0 = (9108 + (iParam1 - 65) * 3);
			}
			else if (iParam0 == 3882)
			{
				iVar0 = (9109 + (iParam1 - 65) * 3);
			}
		}
		else if (iParam1 < func_894(11))
		{
			if (iParam0 == 3880)
			{
				iVar0 = (14384 + (iParam1 - 88) * 3);
			}
			else if (iParam0 == 3881)
			{
				iVar0 = (14385 + (iParam1 - 88) * 3);
			}
			else if (iParam0 == 3882)
			{
				iVar0 = (14386 + (iParam1 - 88) * 3);
			}
		}
	}
	else if (iParam1 < 10)
	{
		iVar0 = (iParam0 + (iParam1 * (1456 - 1411)));
	}
	else if (iParam1 >= 10 && iParam1 <= 12)
	{
		iVar0 = ((iParam1 - 10) * (1876 - 1861));
		if (iParam0 == 1411)
		{
			iVar0 += 1861;
		}
		else if (iParam0 == 1412)
		{
			iVar0 += 1862;
		}
		else if (iParam0 == 1441)
		{
			iVar0 += 1863;
		}
		else if (iParam0 == 1442)
		{
			iVar0 += 1864;
		}
		else if (iParam0 == 1443)
		{
			iVar0 += 1865;
		}
		else if (iParam0 == 1445)
		{
			iVar0 += 1866;
		}
		else if (iParam0 == 1447)
		{
			iVar0 += 1867;
		}
		else if (iParam0 == 1448)
		{
			iVar0 += 1868;
		}
		else if (iParam0 == 1449)
		{
			iVar0 += 1869;
		}
		else if (iParam0 == 1450)
		{
			iVar0 += 1870;
		}
		else if (iParam0 == 1451)
		{
			iVar0 += 1871;
		}
		else if (iParam0 == 1452)
		{
			iVar0 += 1872;
		}
		else if (iParam0 == 1453)
		{
			iVar0 += 1873;
		}
		else if (iParam0 == 1454)
		{
			iVar0 += 1874;
		}
		else if (iParam0 == 1455)
		{
			iVar0 += 1875;
		}
	}
	else if (iParam1 < 23)
	{
		iVar0 = (1906 - 1411);
		iVar0 = (iVar0 + iParam0);
		iVar0 = (iVar0 + ((iParam1 - 13) * (1456 - 1411)));
	}
	else if (iParam1 >= 23 && iParam1 <= 25)
	{
		iVar0 = ((iParam1 - 23) * (1876 - 1861));
		if (iParam0 == 1411)
		{
			iVar0 += 2356;
		}
		else if (iParam0 == 1412)
		{
			iVar0 += 2357;
		}
		else if (iParam0 == 1441)
		{
			iVar0 += 2358;
		}
		else if (iParam0 == 1442)
		{
			iVar0 += 2359;
		}
		else if (iParam0 == 1443)
		{
			iVar0 += 2360;
		}
		else if (iParam0 == 1445)
		{
			iVar0 += 2361;
		}
		else if (iParam0 == 1447)
		{
			iVar0 += 2362;
		}
		else if (iParam0 == 1448)
		{
			iVar0 += 2363;
		}
		else if (iParam0 == 1449)
		{
			iVar0 += 2364;
		}
		else if (iParam0 == 1450)
		{
			iVar0 += 2365;
		}
		else if (iParam0 == 1451)
		{
			iVar0 += 2366;
		}
		else if (iParam0 == 1452)
		{
			iVar0 += 2367;
		}
		else if (iParam0 == 1453)
		{
			iVar0 += 2368;
		}
		else if (iParam0 == 1454)
		{
			iVar0 += 2369;
		}
		else if (iParam0 == 1455)
		{
			iVar0 += 2370;
		}
	}
	else if (iParam1 < 36)
	{
		iVar0 = (2405 - 1411);
		iVar0 = (iVar0 + iParam0);
		iVar0 = (iVar0 + ((iParam1 - 26) * (1456 - 1411)));
	}
	else if (iParam1 >= 36 && iParam1 <= 38)
	{
		iVar0 = ((iParam1 - 36) * (1876 - 1861));
		if (iParam0 == 1411)
		{
			iVar0 += 2855;
		}
		else if (iParam0 == 1412)
		{
			iVar0 += 2856;
		}
		else if (iParam0 == 1441)
		{
			iVar0 += 2857;
		}
		else if (iParam0 == 1442)
		{
			iVar0 += 2858;
		}
		else if (iParam0 == 1443)
		{
			iVar0 += 2859;
		}
		else if (iParam0 == 1445)
		{
			iVar0 += 2860;
		}
		else if (iParam0 == 1447)
		{
			iVar0 += 2861;
		}
		else if (iParam0 == 1448)
		{
			iVar0 += 2862;
		}
		else if (iParam0 == 1449)
		{
			iVar0 += 2863;
		}
		else if (iParam0 == 1450)
		{
			iVar0 += 2864;
		}
		else if (iParam0 == 1451)
		{
			iVar0 += 2865;
		}
		else if (iParam0 == 1452)
		{
			iVar0 += 2866;
		}
		else if (iParam0 == 1453)
		{
			iVar0 += 2867;
		}
		else if (iParam0 == 1454)
		{
			iVar0 += 2868;
		}
		else if (iParam0 == 1455)
		{
			iVar0 += 2869;
		}
	}
	else if (iParam1 < 49)
	{
		iVar0 = (5360 - 1411);
		iVar0 = (iVar0 + iParam0);
		iVar0 = (iVar0 + ((iParam1 - 39) * (1456 - 1411)));
	}
	else if (iParam1 >= 49 && iParam1 <= 51)
	{
		iVar0 = ((iParam1 - 49) * (1876 - 1861));
		if (iParam0 == 1411)
		{
			iVar0 += 5810;
		}
		else if (iParam0 == 1412)
		{
			iVar0 += 5811;
		}
		else if (iParam0 == 1441)
		{
			iVar0 += 5812;
		}
		else if (iParam0 == 1442)
		{
			iVar0 += 5813;
		}
		else if (iParam0 == 1443)
		{
			iVar0 += 5814;
		}
		else if (iParam0 == 1445)
		{
			iVar0 += 5815;
		}
		else if (iParam0 == 1447)
		{
			iVar0 += 5816;
		}
		else if (iParam0 == 1448)
		{
			iVar0 += 5817;
		}
		else if (iParam0 == 1449)
		{
			iVar0 += 5818;
		}
		else if (iParam0 == 1450)
		{
			iVar0 += 5819;
		}
		else if (iParam0 == 1451)
		{
			iVar0 += 5820;
		}
		else if (iParam0 == 1452)
		{
			iVar0 += 5821;
		}
		else if (iParam0 == 1453)
		{
			iVar0 += 5822;
		}
		else if (iParam0 == 1454)
		{
			iVar0 += 5823;
		}
		else if (iParam0 == 1455)
		{
			iVar0 += 5824;
		}
	}
	else if (iParam1 < 62)
	{
		iVar0 = (6654 - 1411);
		iVar0 = (iVar0 + iParam0);
		iVar0 = (iVar0 + ((iParam1 - 52) * (1456 - 1411)));
	}
	else if (iParam1 >= 62 && iParam1 <= 64)
	{
		iVar0 = ((iParam1 - 62) * (1876 - 1861));
		if (iParam0 == 1411)
		{
			iVar0 += 7104;
		}
		else if (iParam0 == 1412)
		{
			iVar0 += 7105;
		}
		else if (iParam0 == 1441)
		{
			iVar0 += 7106;
		}
		else if (iParam0 == 1442)
		{
			iVar0 += 7107;
		}
		else if (iParam0 == 1443)
		{
			iVar0 += 7108;
		}
		else if (iParam0 == 1445)
		{
			iVar0 += 7109;
		}
		else if (iParam0 == 1447)
		{
			iVar0 += 7110;
		}
		else if (iParam0 == 1448)
		{
			iVar0 += 7111;
		}
		else if (iParam0 == 1449)
		{
			iVar0 += 7112;
		}
		else if (iParam0 == 1450)
		{
			iVar0 += 7113;
		}
		else if (iParam0 == 1451)
		{
			iVar0 += 7114;
		}
		else if (iParam0 == 1452)
		{
			iVar0 += 7115;
		}
		else if (iParam0 == 1453)
		{
			iVar0 += 7116;
		}
		else if (iParam0 == 1454)
		{
			iVar0 += 7117;
		}
		else if (iParam0 == 1455)
		{
			iVar0 += 7118;
		}
	}
	else if (iParam1 < 85)
	{
		iVar0 = (8162 - 1411);
		iVar0 = (iVar0 + iParam0);
		iVar0 = (iVar0 + ((iParam1 - 65) * (1456 - 1411)));
	}
	else if (iParam1 >= 85 && iParam1 <= 87)
	{
		iVar0 = ((iParam1 - 85) * (1876 - 1861));
		if (iParam0 == 1411)
		{
			iVar0 += 9062;
		}
		else if (iParam0 == 1412)
		{
			iVar0 += 9063;
		}
		else if (iParam0 == 1441)
		{
			iVar0 += 9064;
		}
		else if (iParam0 == 1442)
		{
			iVar0 += 9065;
		}
		else if (iParam0 == 1443)
		{
			iVar0 += 9066;
		}
		else if (iParam0 == 1445)
		{
			iVar0 += 9067;
		}
		else if (iParam0 == 1447)
		{
			iVar0 += 9068;
		}
		else if (iParam0 == 1448)
		{
			iVar0 += 9069;
		}
		else if (iParam0 == 1449)
		{
			iVar0 += 9070;
		}
		else if (iParam0 == 1450)
		{
			iVar0 += 9071;
		}
		else if (iParam0 == 1451)
		{
			iVar0 += 9072;
		}
		else if (iParam0 == 1452)
		{
			iVar0 += 9073;
		}
		else if (iParam0 == 1453)
		{
			iVar0 += 9074;
		}
		else if (iParam0 == 1454)
		{
			iVar0 += 9075;
		}
		else if (iParam0 == 1455)
		{
			iVar0 += 9076;
		}
	}
	else if (iParam1 < func_894(11))
	{
		iVar0 = (11234 - 1411);
		iVar0 = (iVar0 + iParam0);
		iVar0 = (iVar0 + ((iParam1 - func_894(7)) * (1456 - 1411)));
	}
	return iVar0;
}

void func_906(int iParam0)//Position - 0x7FFB3
{
	int iVar0;
	
	if (!gameplay::is_bit_set(Global_1320588[iParam0 /*140*/].f_101, 2))
	{
		gameplay::clear_bit(&(Global_1320588[iParam0 /*140*/].f_101), 8);
	}
	if (gameplay::is_bit_set(Global_1320588[iParam0 /*140*/].f_101, 6))
	{
		func_365(1907, 1, -1);
		func_910(iParam0);
	}
	gameplay::clear_bit(&(Global_1320588[iParam0 /*140*/].f_101), 6);
	gameplay::clear_bit(&(Global_1320588[iParam0 /*140*/].f_101), 3);
	gameplay::clear_bit(&(Global_1320588[iParam0 /*140*/].f_101), 11);
	Global_1320588[iParam0 /*140*/].f_102 = 0;
	if (func_887(Global_1320588[iParam0 /*140*/].f_66))
	{
		if (gameplay::is_bit_set(Global_1320588[iParam0 /*140*/].f_101, 0))
		{
			func_1020(39);
			if (func_859(4))
			{
				Global_2590718 = 1;
			}
			else
			{
				func_890(iParam0, &(Global_1320588[iParam0 /*140*/]), 1, -1, 0, 0);
				func_628(3, 0);
			}
		}
	}
	else if (!gameplay::is_bit_set(Global_1320588[iParam0 /*140*/].f_101, 1))
	{
		gameplay::set_bit(&(Global_1320588[iParam0 /*140*/].f_101), 1);
		if (func_859(4))
		{
			Global_2590718 = 1;
		}
		else
		{
			func_890(iParam0, &(Global_1320588[iParam0 /*140*/]), 1, -1, 0, 0);
			func_628(3, 0);
		}
		if (!gameplay::is_bit_set(Global_1320588[iParam0 /*140*/].f_101, 2))
		{
			Global_2494149.f_354 = iParam0;
			Global_2494149.f_355 = 0;
			func_909(iParam0, &iVar0);
			if (iVar0 >= 0)
			{
				func_907(iVar0, -1, -1);
			}
			if (!func_573())
			{
				func_999(Global_2494149.f_354, -1);
			}
		}
	}
	gameplay::clear_bit(&(Global_1320588[iParam0 /*140*/].f_101), 0);
}

void func_907(int iParam0, int iParam1, int iParam2)//Position - 0x80139
{
	if (iParam0 < 0)
	{
		return;
	}
	iParam1++;
	func_253(func_908(iParam0), iParam1, iParam2, 1);
	if (iParam0 >= 158)
	{
		return;
	}
	if (iParam2 == func_39() || iParam2 == -1)
	{
		Global_1756335[iParam0] = iParam1;
	}
}

int func_908(int iParam0)//Position - 0x80188
{
	if (iParam0 <= 38)
	{
		return (4036 + iParam0);
	}
	else if (iParam0 <= 48)
	{
		return ((5905 + iParam0) - 39);
	}
	else if (iParam0 <= 51)
	{
		return ((6025 + iParam0) - 49);
	}
	else if (iParam0 <= 64)
	{
		return ((7199 + iParam0) - 52);
	}
	else if (iParam0 <= 87)
	{
		return ((9207 + iParam0) - 65);
	}
	else if (iParam0 <= 158)
	{
		return ((14734 + iParam0) - 88);
	}
	return (4036 + iParam0);
}

void func_909(int iParam0, var uParam1)//Position - 0x80214
{
	int iVar0;
	
	*uParam1 = -1;
	if (iParam0 >= 0)
	{
		iVar0 = 0;
		while (iVar0 < 158)
		{
			if (iParam0 == (Global_1756335[iVar0] - 1))
			{
				*uParam1 = iVar0;
				return;
			}
			iVar0++;
		}
	}
}

void func_910(var uParam0)//Position - 0x80250
{
	gameplay::set_bit(&(Global_1320588[uParam0 /*140*/].f_101), 16);
	Global_1320588[func_1023() /*140*/].f_103 = 0;
}

void func_911(int iParam0)//Position - 0x80275
{
	if (iParam0 < 32)
	{
		if (gameplay::is_bit_set(Global_2433082.f_501.f_1, iParam0))
		{
			gameplay::clear_bit(&(Global_2433082.f_501.f_1), iParam0);
		}
	}
	else if (gameplay::is_bit_set(Global_2433082.f_501.f_2, (iParam0 - 32)))
	{
		gameplay::clear_bit(&(Global_2433082.f_501.f_2), (iParam0 - 32));
	}
}

void func_912(int iParam0, int iParam1)//Position - 0x802CF
{
	int iVar0;
	
	iVar0 = false;
	if (decorator::decor_is_registered_as_type("Player_Vehicle", 3))
	{
		if (!decorator::decor_exist_on(iParam0, "Player_Vehicle") || !decorator::decor_get_int(iParam0, "Player_Vehicle") == network::_0xBC1D768F2F5D6C05(player::player_id()))
		{
			decorator::decor_set_int(iParam0, "Player_Vehicle", network::_0xBC1D768F2F5D6C05(player::player_id()));
			iVar0 = true;
		}
	}
	if (decorator::decor_is_registered_as_type("PV_Slot", 3))
	{
		if (!decorator::decor_exist_on(iParam0, "PV_Slot") || !decorator::decor_get_int(iParam0, "PV_Slot") == iParam1)
		{
			decorator::decor_set_int(iParam0, "PV_Slot", iParam1);
			iVar0 = true;
		}
	}
	if (iVar0)
	{
		func_913(iParam1);
	}
}

void func_913(int iParam0)//Position - 0x80375
{
	vector3 vVar0;
	
	vVar0.f_2 = -1;
	vVar0.x = 417;
	vVar0.y = player::player_id();
	vVar0.z = iParam0;
	script::trigger_script_event(1, &vVar0, 3, func_36(1, 1));
}

void func_914(int iParam0, int iParam1)//Position - 0x803A7
{
	func_855(*iParam0, &(Global_1320588[iParam1 /*140*/]), 1, 1, 0);
	func_915(iParam0, iParam1);
}

void func_915(var uParam0, var uParam1)//Position - 0x803C9
{
	if (gameplay::is_bit_set(Global_1320588[uParam1 /*140*/].f_101, 2))
	{
		func_918(*uParam0);
	}
	if (gameplay::is_bit_set(Global_1320588[uParam1 /*140*/].f_101, 3))
	{
		func_917();
		gameplay::set_bit(&(Global_1320588[uParam1 /*140*/].f_101), 3);
		func_916(*uParam0, 1, 0);
		func_472(88, 3, 0);
	}
	audio::set_veh_radio_station(*uParam0, &(Global_1320588[uParam1 /*140*/].f_120));
	gameplay::clear_bit(&(Global_1320588[uParam1 /*140*/].f_101), 14);
}

bool func_916(int iParam0, int iParam1, int iParam2)//Position - 0x80442
{
	int iVar0;
	
	if (vehicle::is_vehicle_driveable(iParam0, 0))
	{
		if (iParam1)
		{
			if (decorator::decor_is_registered_as_type("bombowner", 3))
			{
				if (decorator::decor_is_registered_as_type("bombdec1", 3))
				{
					if (iParam2 == 0)
					{
						if (!decorator::decor_exist_on(iParam0, "bombdec1"))
						{
							decorator::decor_set_int(iParam0, "bombdec1", 1);
						}
					}
				}
				if (decorator::decor_is_registered_as_type("bombdec", 3))
				{
					if (iParam2 == 1)
					{
						if (!decorator::decor_exist_on(iParam0, "bombdec"))
						{
							decorator::decor_set_int(iParam0, "bombdec", 1);
						}
					}
				}
				if (!decorator::decor_exist_on(iParam0, "bombowner"))
				{
					iVar0 = gameplay::get_hash_key(player::get_player_name(player::player_id()));
					decorator::decor_set_int(iParam0, "bombowner", iVar0);
					if (iParam2 == 0)
					{
						vehicle::_0x99AD4CCCB128CBC9(iParam0);
					}
				}
				if (decorator::decor_exist_on(iParam0, "bombowner"))
				{
					return true;
				}
			}
		}
		else
		{
			if (decorator::decor_exist_on(iParam0, "bombdec"))
			{
				decorator::decor_remove(iParam0, "bombdec");
			}
			if (decorator::decor_exist_on(iParam0, "bombowner"))
			{
				decorator::decor_remove(iParam0, "bombowner");
			}
			return true;
		}
	}
	return false;
}

void func_917()//Position - 0x80549
{
	int iVar0;
	
	iVar0 = 0;
	while (iVar0 < 158)
	{
		if (gameplay::is_bit_set(Global_1320588[iVar0 /*140*/].f_101, 3))
		{
			gameplay::clear_bit(&(Global_1320588[iVar0 /*140*/].f_101), 3);
		}
		iVar0++;
	}
}

void func_918(int iParam0)//Position - 0x80585
{
	int iVar0;
	
	if (entity::does_entity_exist(iParam0))
	{
		if (vehicle::is_vehicle_driveable(iParam0, 0))
		{
			if (decorator::decor_is_registered_as_type("MPBitset", 3))
			{
				if (decorator::decor_exist_on(iParam0, "MPBitset"))
				{
					iVar0 = decorator::decor_get_int(iParam0, "MPBitset");
				}
				gameplay::set_bit(&iVar0, 3);
				decorator::decor_set_int(iParam0, "MPBitset", iVar0);
			}
		}
	}
}

bool func_919(var uParam0, var uParam1)//Position - 0x805DD
{
	int iVar0;
	
	iVar0 = player::player_id();
	Global_2421621[iVar0 /*358*/].f_121 = 1;
	if (Global_2415705.f_1[iVar0 /*4*/].f_1)
	{
		if (Global_2415705.f_1[iVar0 /*4*/] > -1)
		{
			func_926(Global_2415705.f_1[iVar0 /*4*/], uParam0, uParam1);
			return true;
		}
		else if (Global_2415705.f_1[iVar0 /*4*/] == -2)
		{
			Global_2421621[iVar0 /*358*/].f_121 = 0;
			func_920(func_1023());
			func_911(17);
			func_911(16);
			func_911(18);
			return false;
		}
	}
	return false;
}

void func_920(int iParam0)//Position - 0x8066B
{
	func_925();
	if (func_923(iParam0))
	{
		gameplay::clear_bit(&(Global_1320588[iParam0 /*140*/].f_101), 6);
		Global_1320588[iParam0 /*140*/].f_102 = 0;
		func_921();
	}
}

void func_921()//Position - 0x806A1
{
	func_922(10);
}

void func_922(int iParam0)//Position - 0x806AF
{
	int iVar0;
	int iVar1;
	
	iVar0 = (iParam0 / 32);
	iVar1 = (iParam0 % 32);
	gameplay::set_bit(&(Global_1574291.f_2[iVar0]), iVar1);
}

bool func_923(int iParam0)//Position - 0x806D5
{
	int iVar0;
	
	func_909(iParam0, &iVar0);
	if ((iParam0 >= 0 && iParam0 <= 158) && !func_924(iVar0))
	{
		return true;
	}
	return false;
}

bool func_924(int iParam0)//Position - 0x80707
{
	switch (iParam0)
	{
		case 10:
		case 11:
		case 12:
		case 23:
		case 24:
		case 25:
		case 36:
		case 37:
		case 38:
		case 49:
		case 50:
		case 51:
		case 62:
		case 63:
		case 64:
		case 85:
		case 86:
		case 87:
			return true;
			break;
	}
	return false;
}

void func_925()//Position - 0x8078A
{
	Global_2433082.f_501.f_27 = 0;
	func_911(25);
	func_911(24);
}

void func_926(int iParam0, var uParam1, var uParam2)//Position - 0x807A8
{
	switch (iParam0)
	{
		case 0:
			*uParam1 = { 396.811f, -1643.665f, 28.2928f };
			*uParam2 = 140.0127f;
			break;
		
		case 1:
			*uParam1 = { 401.2413f, -1648.081f, 28.2928f };
			*uParam2 = 139.3439f;
			break;
		
		case 2:
			*uParam1 = { 411.1246f, -1655.997f, 28.2928f };
			*uParam2 = 139.9064f;
			break;
		
		case 3:
			*uParam1 = { 418.3765f, -1646.284f, 28.294f };
			*uParam2 = 229.6834f;
			break;
		
		case 4:
			*uParam1 = { 419.971f, -1641.743f, 28.2903f };
			*uParam2 = 266.1893f;
			break;
		
		case 5:
			*uParam1 = { 421.0552f, -1635.949f, 28.2928f };
			*uParam2 = 269.4205f;
			break;
		
		case 6:
			*uParam1 = { 419.6233f, -1629.658f, 28.2928f };
			*uParam2 = 319.6136f;
			break;
		
		case 7:
			*uParam1 = { 410.8506f, -1636.768f, 28.2928f };
			*uParam2 = 231.3992f;
			break;
		
		case 8:
			*uParam1 = { 373.3945f, -1623.899f, 28.2928f };
			*uParam2 = 138.3859f;
			break;
		
		case 9:
			*uParam1 = { 373.3945f, -1623.899f, 28.2928f };
			*uParam2 = 138.3859f;
			break;
		
		case 10:
			*uParam1 = { 393.5292f, -1608.745f, 28.2928f };
			*uParam2 = 230.8697f;
			break;
		
		case 11:
			*uParam1 = { 389.3376f, -1613.097f, 28.2928f };
			*uParam2 = 228.0681f;
			break;
		
		case 12:
			*uParam1 = { 402.6421f, -1615.902f, 28.2928f };
			*uParam2 = 228.3702f;
			break;
		
		case 13:
			*uParam1 = { 398.339f, -1620.899f, 28.2928f };
			*uParam2 = 231.9081f;
			break;
		
		case 14:
			*uParam1 = { 394.6593f, -1625.956f, 28.2928f };
			*uParam2 = 231.1938f;
			break;
		
		case 15:
			*uParam1 = { 385.6364f, -1634.18f, 28.2928f };
			*uParam2 = 140.7528f;
			break;
		
		default:
			*uParam1 = { 385.6364f, -1634.18f, 28.2928f };
			*uParam2 = 140.7528f;
			break;
	}
}

bool func_927(vector3 vParam0, vector3 vParam3, int iParam6, int iParam7, var uParam8, var uParam9, var uParam10)//Position - 0x80A15
{
	int iVar0;
	int iVar1;
	struct<58> Var2;
	struct<58> Var60;
	
	iVar0 = false;
	if (uParam10->f_12)
	{
		if (uParam10->f_23)
		{
			uParam10->f_23 = 0;
		}
	}
	if (streaming::is_player_switch_in_progress())
	{
		if (!streaming::get_player_switch_state() > 7 && !streaming::get_player_switch_state() == 5)
		{
			return false;
		}
	}
	if (Global_2404994.f_497)
	{
		Global_2404994.f_497 = 0;
		return false;
	}
	if (!func_633(player::player_id()))
	{
		return false;
	}
	if (!Global_2404994.f_571 == 0 && network::get_time_difference(network::get_network_time(), Global_2404994.f_576) < func_1229(0))
	{
		if (!Global_2404994.f_623 == 0)
		{
			Global_2404994.f_623 = 0;
			func_995();
			func_994();
		}
		return false;
	}
	if (!script::get_id_of_this_thread() == Global_2404994.f_622)
	{
		if (!Global_2404994.f_623 == 0)
		{
			if (network::get_time_difference(network::get_network_time(), Global_2404994.f_626) < func_1229(0))
			{
				return false;
			}
			else
			{
				Global_2404994.f_623 = 0;
			}
		}
	}
	else
	{
		if (network::get_time_difference(network::get_network_time(), Global_2404994.f_624) > 30000)
		{
			Global_2404994.f_623 = 0;
		}
		if (!Global_2404994.f_623 == 0)
		{
			if (network::get_time_difference(network::get_network_time(), Global_2404994.f_626) > func_1229(1))
			{
				Global_2404994.f_623 = 0;
			}
		}
	}
	if (uParam10->f_5)
	{
		if (func_990(vParam0))
		{
			if (func_989(&vParam0, 1))
			{
			}
		}
	}
	if (!Global_2404994.f_623 == 0)
	{
		if (system::vdist(Global_2404994.f_635, vParam0) > 50f)
		{
			return false;
		}
	}
	pathfind::_0x07FB139B592FA687((vParam0.x - 100f), (vParam0.y - 100f), (vParam0.x + 100f), (vParam0.y + 100f));
	if (Global_2404994.f_623 == 0)
	{
		Global_2404994.f_629 = 0;
		Global_2404994.f_624 = network::_0x89023FBBF9200E9F();
		Global_2404994.f_622 = script::get_id_of_this_thread();
		Global_2404994.f_626 = network::_0x89023FBBF9200E9F();
		Global_2404994.f_635 = { vParam0 };
		Global_2404994.f_628 = network::_0x89023FBBF9200E9F();
		Global_2404994.f_623 = 2;
		func_988();
		func_995();
		if (!uParam10->f_25)
		{
			func_980(vParam0, iParam6);
		}
	}
	switch (Global_2404994.f_623)
	{
		case 2:
			if (pathfind::_0xF7B79A50B905A30D((vParam0.x - 100f), (vParam0.y - 100f), (vParam0.x + 100f), (vParam0.y + 100f)))
			{
				Global_2404994.f_630 = { vParam0 };
				Global_2404994.f_633 = 0f;
				if (((uParam10->f_2 && func_978(vParam0, 4f, 1f, 1f, 1f, 0, 0, 0, 1123024896, 0, -1, 1, 0, 0, 0, 0, 0)) && !uParam10->f_6) && !func_975(vParam0, *uParam9, iParam6, player::player_id(), 0))
				{
					Global_2404994.f_630 = { vParam0 };
					Global_2404994.f_633 = *uParam9;
				}
				else
				{
					Var2.f_6 = 1082130432;
					Var2.f_7 = 1176255488;
					Var2.f_8 = 1;
					Var2.f_10 = 1;
					Var2.f_13 = 1;
					Var2.f_15 = 1;
					Var2.f_16 = 1;
					Var2.f_31 = 1;
					Var2.f_34 = joaat("tailgater");
					Var2.f_38 = 2;
					Var2.f_45 = 2;
					Var2.f_49 = 1123024896;
					Var2.f_53 = 999;
					Var2.f_54 = 1176256410;
					Var2.f_55 = 1;
					Var2.f_56 = 1;
					Var2.f_57 = 1;
					Var2.f_9 = iParam7;
					Var2.f_3 = 7f;
					Var2.f_10 = uParam10->f_4;
					Var2.f_4 = *uParam10;
					Var2.f_13 = uParam10->f_1;
					Var2.f_5 = uParam10->f_3;
					Var2.f_15 = uParam10->f_5;
					Var2.f_11 = uParam10->f_6;
					Var2.f_6 = uParam10->f_7;
					Var2.f_16 = uParam10->f_8;
					Var2.f_17 = uParam10->f_9;
					Var2 = { vParam3 };
					Var2.f_12 = 1;
					Var2.f_34 = iParam6;
					Var2.f_31 = uParam10->f_11;
					Var2.f_30 = 1;
					Var2.f_48 = uParam10->f_12;
					Var2.f_56 = uParam10->f_23;
					Var2.f_57 = uParam10->f_24;
					iVar1 = 0;
					while (iVar1 < 2)
					{
						Var2.f_38[iVar1 /*3*/] = { uParam10->f_13[iVar1 /*3*/] };
						Var2.f_45[iVar1] = uParam10->f_20[iVar1];
						iVar1++;
					}
					func_937(&(Global_2404994.f_630), &(Global_2404994.f_633), &Var2);
				}
				func_936(Global_2404994.f_630, Global_2404994.f_633, iParam6);
				Global_2404994.f_620 = 0;
				Global_2404994.f_621 = 0;
				Global_2404994.f_629++;
				Global_2404994.f_625 = network::_0x89023FBBF9200E9F();
				Global_2404994.f_624 = network::_0x89023FBBF9200E9F();
				Global_2404994.f_623 = 3;
			}
			break;
		
		case 3:
			if (Global_2404994.f_620)
			{
				if (Global_2404994.f_621)
				{
					if (uParam10->f_10 && !uParam10->f_9)
					{
						func_935(Global_2404994.f_630, 2f);
						Global_2404994.f_623 = 4;
						Global_2404994.f_627 = network::_0x89023FBBF9200E9F();
					}
					else
					{
						iVar0 = true;
					}
				}
				else
				{
					func_934(Global_2404994.f_630, 0);
					func_933(-1);
				}
			}
			else if (network::get_time_difference(network::get_network_time(), Global_2404994.f_625) > 3000)
			{
				func_933(-1);
			}
			break;
		
		case 4:
			if (uParam10->f_10 && !uParam10->f_9)
			{
				if (network::get_time_difference(network::get_network_time(), Global_2404994.f_627) < 10000)
				{
					if (network::_0xE64A3CA08DFA37A9(Global_2404994.f_634))
					{
						if (network::_0x4DF7CFFF471A7FB1(Global_2404994.f_634))
						{
							if (!network::_0x4A2D4E8BF4265B0F(Global_2404994.f_634))
							{
								if (func_932(Global_2404994.f_630, Global_2404994.f_633, iParam6, player::player_id(), 0) || func_928(Global_2404994.f_630, Global_2404994.f_633, iParam6, 1, 0, 0, 0, 1, 0))
								{
									func_934(Global_2404994.f_630, 0);
									func_933(-1);
								}
								else
								{
									iVar0 = true;
								}
							}
							else
							{
								func_934(Global_2404994.f_630, 0);
								func_933(-1);
							}
						}
					}
					else
					{
						func_933(-1);
					}
				}
				else
				{
					func_933(1);
				}
			}
			else
			{
				iVar0 = true;
			}
			break;
		
		case 5:
			Global_2404994.f_630 = { vParam0 };
			Global_2404994.f_633 = 0f;
			Var60.f_6 = 1082130432;
			Var60.f_7 = 1176255488;
			Var60.f_8 = 1;
			Var60.f_10 = 1;
			Var60.f_13 = 1;
			Var60.f_15 = 1;
			Var60.f_16 = 1;
			Var60.f_31 = 1;
			Var60.f_34 = joaat("tailgater");
			Var60.f_38 = 2;
			Var60.f_45 = 2;
			Var60.f_49 = 1123024896;
			Var60.f_53 = 999;
			Var60.f_54 = 1176256410;
			Var60.f_55 = 1;
			Var60.f_56 = 1;
			Var60.f_57 = 1;
			Var60.f_9 = iParam7;
			Var60.f_3 = 3.5f;
			Var60.f_10 = uParam10->f_4;
			Var60.f_4 = *uParam10;
			Var60.f_12 = 1;
			Var60.f_13 = 0;
			Var60.f_15 = uParam10->f_5;
			Var60.f_11 = uParam10->f_6;
			Var60.f_6 = uParam10->f_7;
			Var60 = { vParam3 };
			Var60.f_34 = iParam6;
			Var60.f_31 = uParam10->f_11;
			Var60.f_30 = 1;
			Var60.f_48 = uParam10->f_12;
			Var60.f_56 = uParam10->f_23;
			Var60.f_57 = uParam10->f_24;
			iVar1 = 0;
			while (iVar1 < 2)
			{
				Var60.f_38[iVar1 /*3*/] = { uParam10->f_13[iVar1 /*3*/] };
				Var60.f_45[iVar1] = uParam10->f_20[iVar1];
				iVar1++;
			}
			func_937(&(Global_2404994.f_630), &(Global_2404994.f_633), &Var60);
			Global_2404994.f_623 = 6;
			break;
		
		case 6:
			iVar0 = true;
			break;
	}
	Global_2404994.f_635 = { vParam0 };
	Global_2404994.f_626 = network::_0x89023FBBF9200E9F();
	if (iVar0)
	{
		*uParam8 = { Global_2404994.f_630 };
		*uParam9 = Global_2404994.f_633;
		Global_2404994.f_623 = 0;
		func_988();
		func_995();
		func_994();
		return true;
	}
	return false;
}

bool func_928(vector3 vParam0, float fParam3, int iParam4, int iParam5, int iParam6, int iParam7, int iParam8, int iParam9, int iParam10)//Position - 0x811B7
{
	int iVar0;
	int iVar1;
	
	iVar0 = 0;
	while (iVar0 < 32)
	{
		iVar1 = iVar0;
		if ((iParam9 == 1 && player::player_id() != iVar1) || iParam9 == 0)
		{
			if (func_1644(iVar1, iParam5, iParam6))
			{
				if (network::_0x9DE986FC9A87C474(player::player_id(), iVar1))
				{
					if (!iParam8 || (!ped::is_ped_injured(player::get_player_ped(iVar1)) && func_931(iVar1)))
					{
						if ((!iParam7 || (iParam7 == 1 && player::get_player_team(player::player_id()) != player::get_player_team(iVar1))) || player::get_player_team(player::player_id()) == -1)
						{
							if (((player::get_player_team(player::player_id()) == -1 && iParam10) && iParam7) && func_929(iVar1))
							{
							}
							else if (entity::does_entity_exist(player::get_player_ped(iVar1)))
							{
								if (func_822(func_640(iVar1), vParam0, fParam3, iParam4, 1036831949))
								{
									return true;
								}
							}
						}
					}
				}
			}
		}
		iVar0++;
	}
	return false;
}

bool func_929(int iParam0)//Position - 0x812B8
{
	if (func_637(player::player_id(), iParam0))
	{
		return true;
	}
	Global_2482005 = { func_487(iParam0) };
	if (network::network_is_friend(&Global_2482005))
	{
		return true;
	}
	if (func_930(player::player_id(), iParam0))
	{
		return true;
	}
	return false;
}

bool func_930(int iParam0, int iParam1)//Position - 0x812FF
{
	int iVar0;
	
	iVar0 = func_429(iParam0);
	if (!iVar0 == func_45())
	{
		if (iVar0 == func_429(iParam1))
		{
			return true;
		}
	}
	return false;
}

bool func_931(int iParam0)//Position - 0x8132A
{
	if (entity::is_entity_visible_to_script(player::get_player_ped(iParam0)) || Global_2421621[iParam0 /*358*/].f_248)
	{
		return true;
	}
	return false;
}

bool func_932(vector3 vParam0, float fParam3, int iParam4, int iParam5, int iParam6)//Position - 0x81355
{
	int iVar0;
	int iVar1;
	
	iVar0 = 0;
	while (iVar0 < 32)
	{
		if (!iParam5 == iVar0 || iParam6 == 1)
		{
			iVar1 = iVar0;
			if (func_1644(iVar1, 0, 1) && func_1644(iParam5, 0, 1))
			{
				if (Global_2415705.f_260[iVar0])
				{
					if (func_822(Global_2415705.f_130[iVar0 /*3*/], vParam0, fParam3, iParam4, 1036831949))
					{
						return true;
					}
				}
				else if (func_822(func_640(iVar1), vParam0, fParam3, iParam4, 1036831949))
				{
					return true;
				}
			}
			else if (Global_2415705.f_260[iVar0])
			{
				if (func_822(Global_2415705.f_130[iVar0 /*3*/], vParam0, fParam3, iParam4, 1036831949))
				{
					return true;
				}
			}
			else if (func_1644(iVar1, 0, 0))
			{
				if (entity::does_entity_exist(player::get_player_ped(iVar1)))
				{
					if (func_822(func_640(iVar1), vParam0, fParam3, iParam4, 1036831949))
					{
						return true;
					}
				}
			}
		}
		iVar0++;
	}
	return false;
}

void func_933(int iParam0)//Position - 0x81464
{
	if (Global_2404994.f_629 < 20 && network::get_time_difference(network::get_network_time(), Global_2404994.f_628) < 30000)
	{
		if (iParam0 == -1 || (iParam0 > -1 && Global_2404994.f_629 < iParam0))
		{
			Global_2404994.f_623 = 2;
		}
		else
		{
			Global_2404994.f_623 = 5;
		}
	}
	else
	{
		Global_2404994.f_623 = 5;
	}
}

void func_934(vector3 vParam0, int iParam3)//Position - 0x814CF
{
	vector3 vVar0;
	
	if (iParam3 < 10 && system::vmag(vParam0) > 0f)
	{
		vVar0 = { Global_2404994.f_2258[iParam3 /*3*/] };
		Global_2404994.f_2258[iParam3 /*3*/] = { vParam0 };
		func_934(vVar0, iParam3 + 1);
	}
}

void func_935(vector3 vParam0, float fParam3)//Position - 0x8151C
{
	func_995();
	Global_2404994.f_634 = network::_0x25B99872D588A101(vParam0 - Vector(fParam3, fParam3, fParam3), vParam0 + Vector(fParam3, fParam3, fParam3));
}

void func_936(vector3 vParam0, var uParam3, int iParam4)//Position - 0x81549
{
	struct<7> Var0;
	
	Var0 = 363;
	Var0.f_1 = player::player_id();
	Var0.f_2 = { vParam0 };
	Var0.f_5 = uParam3;
	Var0.f_6 = iParam4;
	script::trigger_script_event(1, &Var0, 7, func_36(1, 1));
}

void func_937(var uParam0, var uParam1, var uParam2)//Position - 0x81582
{
	if (Global_2404994.f_1685 > 0 && func_974(uParam0, uParam1, uParam2))
	{
	}
	else
	{
		func_938(uParam0, uParam1, uParam2);
	}
}

void func_938(var uParam0, var uParam1, var uParam2)//Position - 0x815B2
{
	int iVar0;
	vector3 vVar1;
	float fVar4;
	int iVar5;
	var uVar6;
	var uVar7;
	int iVar8;
	int iVar9;
	int iVar10;
	int iVar11;
	int iVar12;
	float fVar13;
	float fVar14;
	int iVar15;
	int iVar16;
	int iVar17;
	int iVar18;
	int iVar19;
	float fVar20;
	int iVar21;
	int iVar22;
	float fVar23;
	int iVar24;
	vector3 vVar25;
	var uVar28;
	vector3 vVar29;
	float fVar32;
	int iVar33;
	
	iVar0 = 0;
	if (!system::vmag(uParam2->f_35) > 0f)
	{
		uParam2->f_35 = { *uParam0 };
	}
	if (uParam2->f_15)
	{
		if (func_969(uParam2->f_35, uParam0, &(uParam2->f_38), &(uParam2->f_45), 1, 1))
		{
			uParam2->f_6 = 9999.9f;
			uParam2->f_7 = 9999.9f;
		}
	}
	if (uParam2->f_51)
	{
		uParam2->f_6 = 9999.9f;
	}
	if (uParam2->f_48)
	{
		if (func_965(uParam0, 1))
		{
		}
	}
	iVar5 = 0;
	iVar10 = 1;
	if (uParam2->f_11)
	{
		iVar5 += 2;
		iVar5++;
		iVar10 = 0;
	}
	else if (uParam2->f_10 == 0 || (uParam2->f_33 > 0 && uParam2->f_16))
	{
		iVar5++;
		iVar10 = 0;
	}
	iVar5 += 4;
	fVar13 = 3f;
	fVar14 = 5f;
	switch (uParam2->f_33)
	{
		case 0:
			fVar13 = 3f;
			fVar14 = 5f;
			break;
		
		case 1:
			fVar13 = 2.75f;
			fVar14 = 7.5f;
			break;
		
		default:
			fVar13 = 2.5f;
			fVar14 = 10f;
			break;
	}
	iVar15 = 0;
	Global_2411146.f_162 = 0;
	Global_2411146.f_163 = 0;
	Global_2411146.f_164 = -99;
	Global_2411146.f_165 = { 0f, 0f, 0f };
	iVar16 = 0;
	while (iVar16 < 40)
	{
		Global_2411146[iVar16 /*3*/] = { 0f, 0f, 0f };
		Global_2411146.f_121[iVar16] = 0f;
		iVar16++;
	}
	while (true)
	{
		iVar8 = pathfind::get_nth_closest_vehicle_node_id_with_heading(*uParam0, iVar0, &fVar4, &iVar9, iVar5, fVar13, fVar14);
		if (pathfind::is_vehicle_node_id_valid(iVar8))
		{
			pathfind::get_vehicle_node_position(iVar8, &vVar1);
			iVar12 = false;
			if (Global_2411146.f_164 == iVar8)
			{
				iVar12 = true;
			}
			Global_2411146.f_165 = { vVar1 };
			if (((uParam2->f_10 || uParam2->f_33 > 0) || !pathfind::_get_is_slow_road_flag(iVar8)) || pathfind::_get_supports_gps_route_flag(iVar8))
			{
				pathfind::get_vehicle_node_properties(vVar1, &uVar6, &uVar7);
				if (system::vdist(vVar1, uParam2->f_35) > uParam2->f_4)
				{
					if (!func_959(&vVar1, 0))
					{
						if ((uParam2->f_13 || uVar7 & 64 == 0) || uParam2->f_33 == 1)
						{
							if (uParam2->f_14 || uVar7 & 16 == 0)
							{
								if ((uVar7 & 128 == 0 && uVar7 & 256 == 0) && uVar7 & 512 == 0)
								{
									if (!func_956(vVar1))
									{
										vVar1 = { func_954(vVar1, &fVar4, iVar9, uParam2->f_9, *uParam2, iVar10, uParam2->f_11, uParam2->f_34, &iVar11, iVar12, 1, uParam2->f_51) };
										if (system::vmag(vVar1) > 0f)
										{
											if (!func_953(vVar1, 5f))
											{
												if (vVar1.y >= (uParam2->f_35.f_2 - uParam2->f_7) || uParam2->f_33 >= 2)
												{
													if (vVar1.y <= (uParam2->f_35.f_2 + uParam2->f_6) || uParam2->f_33 >= 2)
													{
														if (func_949(vVar1, uParam2))
														{
															if ((uParam2->f_48 && !func_965(&vVar1, 0)) || uParam2->f_48 == 0)
															{
																if (!iVar12)
																{
																	if (iVar11)
																	{
																		iVar0 = (iVar0 + -1);
																	}
																}
																if (system::vmag(vVar1) > 0f)
																{
																	if (((uParam2->f_5 > 0f && system::vdist(vVar1.x, vVar1.y, 0f, uParam2->f_35, uParam2->f_35.f_1, 0f) < uParam2->f_5) || uParam2->f_5 <= 0f) || uParam2->f_33 >= 2)
																	{
																		if ((uParam2->f_12 && !func_948(vVar1, fVar4, uParam2->f_34, player::player_id(), 0, uParam2->f_56)) || !uParam2->f_12)
																		{
																			if (!uParam2->f_15 || !func_969(uParam2->f_35, &vVar1, &(uParam2->f_38), &(uParam2->f_45), 0, 1))
																			{
																				if (uParam2->f_8)
																				{
																					iVar17 = uParam2->f_31;
																					iVar18 = true;
																					iVar19 = 1;
																					fVar20 = uParam2->f_49;
																					if (!uParam2->f_55)
																					{
																						iVar17 = 0;
																						iVar18 = false;
																						iVar19 = 0;
																						fVar20 = 1f;
																					}
																					else if (uParam2->f_17)
																					{
																						iVar17 = 0;
																						iVar18 = false;
																						iVar19 = 0;
																						if (uParam2->f_33 == 1)
																						{
																							fVar20 = (fVar20 * 0.375f);
																						}
																					}
																					else
																					{
																						iVar18 = true;
																						iVar19 = 1;
																						if (uParam2->f_28)
																						{
																							if (uParam2->f_33 == 1)
																							{
																								fVar20 = (fVar20 * 0.375f);
																							}
																						}
																					}
																					iVar21 = 0;
																					if (uParam2->f_3 > 7f)
																					{
																						if (func_978(vVar1, 6f, 1f, 1f, 5f, iVar17, iVar18, iVar19, fVar20, 0, -1, 1, uParam2->f_3, 0, 0, 0, 0))
																						{
																							iVar21 = 1;
																						}
																					}
																					else if (func_978(vVar1, 6f, 1f, 1f, 5f, iVar17, iVar18, iVar19, fVar20, 0, -1, 1, 0f, 0, 0, 0, 0) && !func_928(vVar1, fVar4, uParam2->f_34, 1, 1, 0, 0, 0, 0))
																					{
																						iVar21 = 1;
																					}
																					if (iVar21 || uParam2->f_33 >= 2)
																					{
																						if (((uParam2->f_29 || uParam2->f_30) || uParam2->f_52) || uParam2->f_33 >= 2)
																						{
																							fVar23 = 0f;
																							if (uParam2->f_52)
																							{
																								iVar22 = func_946(vVar1, uParam2->f_54, &fVar23);
																							}
																							if (!uParam2->f_52 || (uParam2->f_52 && iVar22 <= uParam2->f_53))
																							{
																								if (uParam2->f_52)
																								{
																									if (iVar22 < uParam2->f_53)
																									{
																										iVar16 = 0;
																										while (iVar16 < Global_2411146.f_162)
																										{
																											Global_2411146[iVar16 /*3*/] = { 0f, 0f, 0f };
																											Global_2411146.f_121[iVar16] = 0f;
																											iVar16++;
																										}
																										Global_2411146.f_162 = 0;
																										uParam2->f_53 = iVar22;
																									}
																								}
																								if (uParam2->f_30)
																								{
																									if (Global_2411146.f_162 == 0)
																									{
																										Global_2411146[0 /*3*/] = { vVar1 };
																										Global_2411146.f_121[0] = fVar4;
																									}
																									else
																									{
																										iVar16 = 0;
																										while (iVar16 < Global_2411146.f_162 + 1)
																										{
																											if (iVar16 < 40)
																											{
																												if (system::vdist2(vVar1, uParam2->f_35) < system::vdist2(Global_2411146[iVar16 /*3*/], uParam2->f_35))
																												{
																													func_945(vVar1, fVar4, iVar16);
																													iVar16 = Global_2411146.f_162 + 1;
																												}
																											}
																											iVar16++;
																										}
																									}
																									Global_2411146.f_162++;
																									if (Global_2411146.f_162 >= 5)
																									{
																										if ((uParam2->f_52 && uParam2->f_53 == 0) || uParam2->f_52 == 0)
																										{
																											iVar0 = 100;
																										}
																										else if (Global_2411146.f_162 == 40)
																										{
																											iVar0 = 100;
																										}
																									}
																								}
																								else
																								{
																									Global_2411146[Global_2411146.f_162 /*3*/] = { vVar1 };
																									Global_2411146.f_121[Global_2411146.f_162] = fVar4;
																									Global_2411146.f_162++;
																									if (func_949(vVar1, uParam2))
																									{
																										Global_2411146.f_163++;
																									}
																									if (Global_2411146.f_162 >= 10)
																									{
																										if ((uParam2->f_52 && uParam2->f_53 == 0) || uParam2->f_52 == 0)
																										{
																											iVar0 = 100;
																										}
																										else if (Global_2411146.f_162 == 40)
																										{
																											iVar0 = 100;
																										}
																									}
																								}
																							}
																						}
																						else
																						{
																							*uParam0 = { vVar1 };
																							*uParam1 = fVar4;
																							return;
																						}
																					}
																					else
																					{
																						iVar0++;
																					}
																				}
																				else
																				{
																					*uParam0 = { vVar1 };
																					*uParam1 = fVar4;
																					return;
																				}
																			}
																		}
																		else
																		{
																			iVar15++;
																		}
																	}
																	else
																	{
																		iVar0 = 100;
																	}
																}
															}
															else
															{
																iVar0++;
															}
														}
														else if (!uParam2->f_32)
														{
															iVar0 = 100;
														}
													}
													else
													{
														iVar0++;
													}
												}
												else
												{
													iVar0++;
												}
											}
										}
									}
									else
									{
										iVar0++;
									}
								}
							}
							else
							{
								iVar0++;
							}
						}
						else
						{
							iVar0++;
						}
					}
					else
					{
						iVar15++;
					}
				}
				else
				{
					iVar15++;
				}
			}
			iVar0++;
			if (iVar0 >= (40 + iVar15) || iVar0 >= 100)
			{
				if (Global_2411146.f_162 > 0 && ((uParam2->f_29 || uParam2->f_30) || uParam2->f_33 >= 2))
				{
					if (uParam2->f_30)
					{
						*uParam0 = { Global_2411146[0 /*3*/] };
						*uParam1 = Global_2411146.f_121[0];
						return;
					}
					else
					{
						if (Global_2411146.f_163 > 0 && !Global_2411146.f_163 == Global_2411146.f_162)
						{
							func_943(0, uParam2);
						}
						iVar24 = gameplay::get_random_int_in_range(0, Global_2411146.f_162);
						vVar25 = { Global_2411146[0 /*3*/] };
						uVar28 = Global_2411146.f_121[0];
						Global_2411146[0 /*3*/] = { Global_2411146[iVar24 /*3*/] };
						Global_2411146.f_121[0] = Global_2411146.f_121[iVar24];
						Global_2411146[iVar24 /*3*/] = { vVar25 };
						Global_2411146.f_121[iVar24] = uVar28;
						*uParam0 = { Global_2411146[0 /*3*/] };
						*uParam1 = Global_2411146.f_121[0];
						return;
					}
				}
				else
				{
					uParam2->f_33++;
					if (uParam2->f_33 < 3)
					{
						func_938(uParam0, uParam1, uParam2);
						return;
					}
					else
					{
						iVar0 = gameplay::get_random_int_in_range((1 + iVar15), (40 + iVar15));
						pathfind::get_nth_closest_vehicle_node_with_heading(*uParam0, iVar0, &vVar1, &fVar4, &iVar9, iVar5, fVar13, fVar14);
						vVar1 = { func_954(vVar1, &fVar4, iVar9, uParam2->f_9, *uParam2, iVar10, uParam2->f_11, uParam2->f_34, &iVar11, 0, 0, uParam2->f_51) };
						vVar29 = { vVar1 };
						fVar32 = fVar4;
						if (!uParam2->f_50)
						{
							iVar33 = true;
						}
						else
						{
							iVar33 = false;
						}
						if (func_969(uParam2->f_35, &vVar29, &(uParam2->f_38), &(uParam2->f_45), iVar33, 1) || func_965(&vVar29, iVar33))
						{
							if (!uParam2->f_50)
							{
								uParam2->f_33 = 0;
								uParam2->f_50 = 1;
								*uParam0 = { vVar29 };
								*uParam1 = fVar32;
								uParam2->f_6 = 9999.9f;
								uParam2->f_7 = 9999.9f;
								func_938(uParam0, uParam1, uParam2);
								return;
							}
							else
							{
								*uParam0 = { vVar29 };
								*uParam1 = fVar32;
								return;
							}
						}
						else
						{
							*uParam0 = { vVar29 };
							*uParam1 = fVar32;
							return;
						}
					}
				}
			}
		}
		else
		{
			uParam2->f_33++;
			if (uParam2->f_33 < 3)
			{
				func_938(uParam0, uParam1, uParam2);
				return;
			}
			else
			{
				func_939(&Global_1312061, uParam0, uParam1, *uParam0);
				if (uParam2->f_11)
				{
					uParam2->f_27 = 1;
				}
				return;
			}
		}
		Global_2411146.f_164 = iVar8;
	}
}

void func_939(var uParam0, var uParam1, var uParam2, vector3 vParam3)//Position - 0x81F9D
{
	float fVar0;
	float fVar1;
	int iVar2;
	int iVar3;
	
	fVar0 = 1E+09f;
	iVar3 = -1;
	iVar2 = 0;
	while (iVar2 < *uParam0)
	{
		fVar1 = system::vdist(*(uParam0[iVar2 /*4*/]), vParam3);
		if (fVar1 < fVar0)
		{
			if (!func_940(*(uParam0[iVar2 /*4*/]), 5f, player::player_id(), 0, 0))
			{
				fVar0 = fVar1;
				iVar3 = iVar2;
			}
		}
		iVar2++;
	}
	if (!iVar3 == -1)
	{
		*uParam1 = { *(uParam0[iVar3 /*4*/]) };
		*uParam2 = (uParam0[iVar3 /*4*/])->f_3;
	}
}

bool func_940(vector3 vParam0, float fParam3, int iParam4, int iParam5, int iParam6)//Position - 0x82021
{
	if (func_942(vParam0, fParam3, iParam4, iParam5, 0) || func_941(vParam0, iParam4, iParam6))
	{
		return true;
	}
	return false;
}

bool func_941(vector3 vParam0, int iParam3, int iParam4)//Position - 0x82052
{
	int iVar0;
	int iVar1;
	
	iVar0 = 0;
	while (iVar0 < 32)
	{
		if (!iParam3 == iVar0 || iParam4 == 1)
		{
			iVar1 = iVar0;
			if (!Global_2415705.f_556[iVar0] == 0)
			{
				if (func_822(vParam0, Global_2415705.f_426[iVar0 /*3*/], Global_2415705.f_523[iVar0], Global_2415705.f_556[iVar0], 1036831949))
				{
					if (func_1644(iVar1, 0, 1) && func_1644(iParam3, 0, 1))
					{
						return true;
					}
					else
					{
						return true;
					}
				}
			}
		}
		iVar0++;
	}
	return false;
}

bool func_942(vector3 vParam0, float fParam3, int iParam4, int iParam5, int iParam6)//Position - 0x820EC
{
	int iVar0;
	int iVar1;
	int iVar2;
	
	iVar0 = 0;
	while (iVar0 < 32)
	{
		if (!iParam4 == iVar0 || iParam5 == 1)
		{
			iVar1 = iVar0;
			iVar2 = false;
			if (iParam6)
			{
				if (func_1644(iVar1, 0, 1) && func_1644(iParam4, 0, 1))
				{
					if (player::get_player_team(iVar1) == player::get_player_team(iParam4))
					{
						iVar2 = true;
					}
				}
			}
			if (!iVar2)
			{
				if (func_1644(iVar1, 0, 1) && func_1644(iParam4, 0, 1))
				{
					if (Global_2415705.f_260[iVar0])
					{
						if (system::vdist(Global_2415705.f_130[iVar0 /*3*/], vParam0) < fParam3)
						{
							return true;
						}
					}
					else if (system::vdist(func_640(iVar1), vParam0) < 1f)
					{
						return true;
					}
				}
				else if (Global_2415705.f_260[iVar0])
				{
					if (system::vdist(Global_2415705.f_130[iVar0 /*3*/], vParam0) < fParam3)
					{
						return true;
					}
				}
				else if (func_1644(iVar1, 0, 1))
				{
					if (system::vdist(func_640(iVar1), vParam0) < 1f)
					{
						return true;
					}
				}
			}
		}
		iVar0++;
	}
	return false;
}

void func_943(int iParam0, var uParam1)//Position - 0x82209
{
	if (!func_949(Global_2411146[iParam0 /*3*/], uParam1))
	{
		Global_2411146.f_162 = (Global_2411146.f_162 - 1);
		func_944(iParam0);
		if (Global_2411146.f_162 > Global_2411146.f_163)
		{
			func_943(iParam0, uParam1);
		}
	}
	else if (iParam0 < 39)
	{
		func_943(iParam0 + 1, uParam1);
	}
}

void func_944(int iParam0)//Position - 0x82264
{
	while (iParam0 < 39)
	{
		if (iParam0 < 39)
		{
			Global_2411146[iParam0 /*3*/] = { Global_2411146[iParam0 + 1 /*3*/] };
			Global_2411146.f_121[iParam0] = Global_2411146.f_121[iParam0 + 1];
		}
		iParam0++;
	}
}

void func_945(vector3 vParam0, float fParam3, int iParam4)//Position - 0x822AF
{
	vector3 vVar0;
	var uVar3;
	
	vVar0 = { Global_2411146[iParam4 /*3*/] };
	uVar3 = Global_2411146.f_121[iParam4];
	Global_2411146[iParam4 /*3*/] = { vParam0 };
	Global_2411146.f_121[iParam4] = fParam3;
	if (iParam4 <= Global_2411146.f_162 && iParam4 < 39)
	{
		if (system::vmag(vVar0) > 0f)
		{
			func_945(vVar0, uVar3, iParam4 + 1);
		}
	}
}

int func_946(vector3 vParam0, float fParam3, float fParam4)//Position - 0x8231C
{
	int iVar0;
	vector3 vVar1;
	int iVar4;
	int iVar5;
	float fVar6;
	float fVar7;
	
	fVar6 = 99999.9f;
	iVar0 = 0;
	while (iVar0 < 32)
	{
		iVar5 = iVar0;
		if (func_947(iVar5))
		{
			vVar1 = { func_640(iVar5) };
			fVar7 = system::vdist(vParam0, vVar1);
			if (fVar7 < fParam3)
			{
				if (fVar7 < fVar6)
				{
					fVar6 = fVar7;
				}
				iVar4++;
			}
		}
		iVar0++;
	}
	*fParam4 = fVar6;
	return iVar4;
}

bool func_947(int iParam0)//Position - 0x82384
{
	if (func_1644(iParam0, 0, 1))
	{
		if (!func_1592(iParam0))
		{
			if (network::_0x9DE986FC9A87C474(player::player_id(), iParam0))
			{
				if (!player::get_player_team(iParam0) == player::get_player_team(player::player_id()))
				{
					if (func_501(player::player_id(), 1))
					{
						if (!func_591(player::get_player_team(iParam0), player::get_player_team(player::player_id()), 0))
						{
							return true;
						}
					}
					else
					{
						return true;
					}
				}
				else if (player::get_player_team(iParam0) == -1 && player::get_player_team(player::player_id()) == -1)
				{
					if (!func_501(player::player_id(), 1))
					{
						if (!func_929(iParam0))
						{
							return true;
						}
					}
					else
					{
						return true;
					}
				}
			}
		}
	}
	return false;
}

bool func_948(vector3 vParam0, float fParam3, int iParam4, int iParam5, int iParam6, int iParam7)//Position - 0x8242F
{
	if (func_932(vParam0, fParam3, iParam4, iParam5, iParam6) || func_975(vParam0, fParam3, iParam4, iParam5, iParam7))
	{
		return true;
	}
	return false;
}

bool func_949(vector3 vParam0, var uParam3)//Position - 0x82465
{
	if (uParam3->f_18)
	{
		switch (uParam3->f_26)
		{
			case 0:
				if (func_952(vParam0, uParam3->f_19, uParam3->f_25, 0, 0))
				{
					return true;
				}
				break;
			
			case 1:
				if (func_950(vParam0, uParam3->f_19, uParam3->f_22, 0, 0))
				{
					return true;
				}
				break;
			
			case 2:
				if (object::is_point_in_angled_area(vParam0, uParam3->f_19, uParam3->f_22, uParam3->f_25, 0, true))
				{
					return true;
				}
				break;
		}
		return false;
	}
	return true;
}

bool func_950(vector3 vParam0, vector3 vParam3, vector3 vParam6, int iParam9, int iParam10)//Position - 0x824F6
{
	func_951(&vParam3, &vParam6);
	if (((!vParam0.x >= vParam3.x || !vParam0.y >= vParam3.y) || !vParam0.x <= vParam6.x) || !vParam0.y <= vParam6.y)
	{
		return false;
	}
	if (iParam9 && iParam10)
	{
		return true;
	}
	else if (iParam9)
	{
		if (vParam0.y >= vParam3.y)
		{
			return true;
		}
	}
	else if (iParam10)
	{
		if (vParam0.y <= vParam6.y)
		{
			return true;
		}
	}
	else if (vParam0.y >= vParam3.y && vParam0.y <= vParam6.y)
	{
		return true;
	}
	return false;
}

void func_951(var uParam0, var uParam1)//Position - 0x825A1
{
	var uVar0;
	
	if (*uParam0 > *uParam1)
	{
		uVar0 = *uParam1;
		*uParam1 = *uParam0;
		*uParam0 = uVar0;
	}
	if (uParam0->f_1 > uParam1->f_1)
	{
		uVar0 = uParam1->f_1;
		uParam1->f_1 = uParam0->f_1;
		uParam0->f_1 = uVar0;
	}
	if (uParam0->f_2 > uParam1->f_2)
	{
		uVar0 = uParam1->f_2;
		uParam1->f_2 = uParam0->f_2;
		uParam0->f_2 = uVar0;
	}
}

int func_952(vector3 vParam0, vector3 vParam3, float fParam6, int iParam7, int iParam8)//Position - 0x82603
{
	if (iParam7 && iParam8)
	{
		vParam0.z = 0f;
		vParam3.z = 0f;
		return system::vdist(vParam0, vParam3) < (fParam6 + 0.01f);
	}
	else if (iParam7)
	{
		if (vParam0.y > vParam3.y)
		{
			vParam0.z = vParam3.y;
		}
		return system::vdist(vParam0, vParam3) < (fParam6 + 0.01f);
	}
	else if (iParam8)
	{
		if (vParam0.y < vParam3.y)
		{
			vParam0.z = vParam3.y;
		}
		return system::vdist(vParam0, vParam3) < (fParam6 + 0.01f);
	}
	return system::vdist(vParam0, vParam3) < (fParam6 + 0.01f);
}

bool func_953(vector3 vParam0, float fParam3)//Position - 0x826B6
{
	int iVar0;
	
	if (func_501(player::player_id(), 1))
	{
		if (Global_1632166.f_43047 > 0)
		{
			iVar0 = 0;
			while (iVar0 < Global_1632166.f_43047)
			{
				if (Global_1632166.f_43048[iVar0 /*59*/].f_7 != 0)
				{
					if (func_822(vParam0, Global_1632166.f_43048[iVar0 /*59*/], Global_1632166.f_43048[iVar0 /*59*/].f_6, Global_1632166.f_43048[iVar0 /*59*/].f_7, fParam3))
					{
						return true;
					}
				}
				iVar0++;
			}
		}
		if (Global_1632166.f_40786 > 0)
		{
			iVar0 = 0;
			while (iVar0 < Global_1632166.f_40786)
			{
				if (Global_1632166.f_40789[iVar0 /*92*/].f_16 != 0)
				{
					if (func_822(vParam0, Global_1632166.f_40789[iVar0 /*92*/], Global_1632166.f_40789[iVar0 /*92*/].f_3, Global_1632166.f_40789[iVar0 /*92*/].f_16, 0.5f))
					{
						return true;
					}
				}
				iVar0++;
			}
		}
		if (Global_1632166.f_55074 > 0)
		{
			iVar0 = 0;
			while (iVar0 < Global_1632166.f_55074)
			{
				if (Global_1632166.f_55078[iVar0 /*137*/].f_12 != 0)
				{
					if (func_822(vParam0, Global_1632166.f_55078[iVar0 /*137*/], Global_1632166.f_55078[iVar0 /*137*/].f_3, Global_1632166.f_55078[iVar0 /*137*/].f_12, 0.5f))
					{
						return true;
					}
				}
				iVar0++;
			}
		}
	}
	return false;
}

Vector3 func_954(vector3 vParam0, float fParam3, int iParam4, int iParam5, vector3 vParam6, int iParam9, int iParam10, int iParam11, int iParam12, int iParam13, int iParam14, int iParam15)//Position - 0x8283F
{
	vector3 vVar0;
	var uVar3;
	var uVar4;
	var uVar5;
	var uVar8;
	int iVar11;
	int iVar12;
	float fVar13;
	float fVar14;
	int iVar15;
	int iVar16;
	float fVar17;
	float fVar20;
	float fVar23;
	vector3 vVar24;
	vector3 vVar27;
	vector3 vVar30;
	
	if (iParam15)
	{
		if (system::vmag(vParam6) > 0f)
		{
			if (!func_955(vParam0, *fParam3, vParam6))
			{
				*fParam3 = (*fParam3 + 180f);
			}
		}
		return vParam0;
	}
	pathfind::get_vehicle_node_properties(vParam0, &uVar3, &uVar4);
	if (uVar4 & 1024 == 0 && !iParam10)
	{
		pathfind::get_closest_road(vParam0, 1f, 1, &uVar5, &uVar8, &iVar11, &iVar12, &fVar13, iParam9);
		if (iVar11 == iVar12)
		{
			*iParam12 = 1;
		}
		if (iParam14)
		{
			if (!uVar4 & 128 == 0)
			{
				return 0f, 0f, 0f;
			}
			if (!uVar4 & 256 == 0)
			{
				return 0f, 0f, 0f;
			}
			if (!uVar4 & 512 == 0)
			{
				return 0f, 0f, 0f;
			}
			if ((iVar11 + iVar12) != iParam4)
			{
				return 0f, 0f, 0f;
			}
		}
		if (iParam13 && *iParam12)
		{
			*fParam3 = (*fParam3 + 180f);
			if (*fParam3 > 360f)
			{
				*fParam3 = (*fParam3 + -360f);
			}
		}
		if (*fParam3 <= 90f || *fParam3 > 270f)
		{
			iVar15 = true;
		}
		else
		{
			iVar15 = false;
		}
		iVar16 = false;
		if (iVar15)
		{
			if (iVar11 == 0)
			{
				if (iParam14)
				{
					return 0f, 0f, 0f;
				}
			}
			else if (iParam4 == iVar11)
			{
				iVar16 = true;
			}
		}
		else if (iVar12 == 0)
		{
			if (iParam14)
			{
				return 0f, 0f, 0f;
			}
		}
		else if (iParam4 == iVar12)
		{
			iVar16 = true;
		}
		if (fVar13 < 0f)
		{
			fVar14 = 0f;
		}
		else
		{
			if (iVar15)
			{
				if (iVar16)
				{
					fVar14 = (4.2f * (system::to_float(iVar11) * 0.5f));
				}
				else
				{
					fVar14 = (4.2f * system::to_float(iVar11));
				}
				if (iVar16)
				{
					if (iVar11 > 2)
					{
						fVar14 = (fVar14 + (IntToFloat((iVar11 - 2)) * 1f));
					}
				}
				else if (iVar11 > 1)
				{
					fVar14 = (fVar14 + (IntToFloat((iVar11 - 1)) * 1f));
				}
			}
			else
			{
				if (iVar16)
				{
					fVar14 = (4.2f * (system::to_float(iVar12) * 0.5f));
				}
				else
				{
					fVar14 = (4.2f * system::to_float(iVar12));
				}
				if (iVar16)
				{
					if (iVar12 > 2)
					{
						fVar14 = (fVar14 + (IntToFloat((iVar12 - 2)) * 1f));
					}
				}
				else if (iVar12 > 1)
				{
					fVar14 = (fVar14 + (IntToFloat((iVar12 - 1)) * 1f));
				}
			}
			if (!uVar4 & 64 == 0)
			{
				fVar14 = (fVar14 + (0.95f * fVar13));
			}
			if (!uVar4 & 4 == 0 || !uVar4 & 8 == 0)
			{
				fVar14 = (fVar14 + -0.5f);
			}
			if ((!uVar4 & 32 == 0 && uVar4 & 4 == 0) && uVar4 & 8 == 0)
			{
				fVar14 = (fVar14 + -1f);
			}
			if (!iParam5 || !uVar4 & 8 == 0)
			{
				fVar14 = (fVar14 + (4.2f * -0.5f));
			}
			if (!iParam11 == 0)
			{
				func_803(iParam11, &fVar17, &fVar20, 1086324736, 1080033280, 1077936128);
				fVar23 = (fVar20 - fVar17);
				if (fVar23 > 1.8f)
				{
					fVar14 = (fVar14 + ((fVar23 - 1.8f) * -0.5f));
				}
			}
		}
	}
	if (system::vmag(vParam6) > 0f)
	{
		if (!func_955(vParam0, *fParam3, vParam6))
		{
			if (iParam5)
			{
				*fParam3 = (*fParam3 + 180f);
			}
			else if (iParam14)
			{
				return 0f, 0f, 0f;
			}
		}
	}
	if (fVar14 < 0f)
	{
		fVar14 = 0f;
	}
	vVar0 = { object::_get_object_offset_from_coords(vParam0, *fParam3, fVar14, 0f, 0f) };
	if (iParam5)
	{
		if (unk_0xA0F8A7517A273C05(vParam0, *fParam3, &vVar24))
		{
			vVar27 = { vVar24 - vParam0 };
			if (!iParam11 == 0)
			{
				vVar30 = { vVar27 / FtoV(system::vmag(vVar27)) };
				func_803(iParam11, &fVar17, &fVar20, 1086324736, 1080033280, 1077936128);
				fVar23 = (fVar20 - fVar17);
				vVar30 = { vVar30 * FtoV((fVar23 * 0.5f)) };
				vVar27 = { vVar27 - vVar30 };
				vVar24 = { vParam0 + vVar27 };
			}
			vVar30 = { vVar0 - vVar24 };
			vVar0 = { vVar24 };
		}
	}
	return vVar0;
}

bool func_955(vector3 vParam0, float fParam3, vector3 vParam4)//Position - 0x82C3D
{
	vector3 vVar0;
	vector3 vVar3;
	
	vVar0 = { 0f, 1f, 0f };
	func_794(&vVar0, 0f, 0f, fParam3);
	vVar3 = { vParam4 - vParam0 };
	if (func_814(vVar3, vVar0) >= 0f)
	{
		return true;
	}
	return false;
}

bool func_956(vector3 vParam0)//Position - 0x82C79
{
	int iVar0;
	var uVar1;
	
	uVar1 = func_958(vParam0);
	iVar0 = 0;
	while (iVar0 < Global_2410860[uVar1])
	{
		if (func_957(vParam0, &(Global_2410157[uVar1 /*78*/][iVar0 /*7*/])))
		{
			return true;
		}
		iVar0++;
	}
	iVar0 = 0;
	while (iVar0 < Global_2410860[8])
	{
		if (func_957(vParam0, &(Global_2410157[8 /*78*/][iVar0 /*7*/])))
		{
			return true;
		}
		iVar0++;
	}
	return false;
}

int func_957(vector3 vParam0, var uParam3)//Position - 0x82CF4
{
	return object::is_point_in_angled_area(vParam0, *uParam3, uParam3->f_3, uParam3->f_6, 0, true);
}

int func_958(struct<2> Param0, var uParam2)//Position - 0x82D14
{
	if (Param0.f_1 > Global_2410148[0])
	{
		return 0;
	}
	if (Param0.f_1 > Global_2410148[1])
	{
		if (Param0 < Global_2410152[0])
		{
			return 1;
		}
		else
		{
			return 2;
		}
	}
	if (Param0.f_1 > Global_2410148[2])
	{
		if (Param0 < Global_2410152[1])
		{
			return 3;
		}
		else if (Param0 < Global_2410152[2])
		{
			return 4;
		}
		else if (Param0 < Global_2410152[3])
		{
			return 5;
		}
		else
		{
			return 6;
		}
	}
	return 7;
}

bool func_959(var uParam0, int iParam1)//Position - 0x82DAF
{
	var uVar0;
	vector3 vVar1;
	float fVar4;
	
	if (func_964(*uParam0))
	{
		if (iParam1)
		{
			vVar1 = { *uParam0 };
			fVar4 = gameplay::get_random_float_in_range(0.01f, 360f);
			func_963(&vVar1, Global_2404994.f_558, Global_2404994.f_561, 1036831949, 0, fVar4);
			if (func_960(vVar1, &uVar0) || func_964(vVar1))
			{
				vVar1 = { *uParam0 };
				func_963(&vVar1, Global_2404994.f_558, Global_2404994.f_561, 1036831949, 1, fVar4);
			}
			*uParam0 = { vVar1 };
		}
	}
	return false;
}

bool func_960(vector3 vParam0, var uParam3)//Position - 0x82E47
{
	int iVar0;
	int iVar1;
	
	iVar1 = func_962();
	iVar0 = 0;
	while (iVar0 < iVar1)
	{
		if (Global_2404994.f_355[iVar0 /*12*/].f_9 == 1)
		{
			if (func_961(vParam0, &(Global_2404994.f_355[iVar0 /*12*/]), 1008981770, 0, 0))
			{
				*uParam3 = iVar0;
				return true;
			}
		}
		iVar0++;
	}
	return false;
}

int func_961(vector3 vParam0, var uParam3, float fParam4, int iParam5, int iParam6)//Position - 0x82EA0
{
	switch (uParam3->f_10)
	{
		case 0:
			return func_952(vParam0, *uParam3, ((uParam3->f_6 + fParam4) + (IntToFloat(Global_2404994.f_2256) * uParam3->f_8)), iParam5, iParam6);
			break;
		
		case 1:
			return func_950(vParam0, *uParam3 + Vector((fParam4 * -1f), (fParam4 * -1f), (fParam4 * -1f)), uParam3->f_3 + Vector(fParam4, fParam4, fParam4), iParam5, iParam6);
			break;
		
		case 2:
			if (iParam5 && iParam6)
			{
				return object::is_point_in_angled_area(vParam0, *uParam3, uParam3->f_3, uParam3->f_6, 0, false);
			}
			else if (iParam5)
			{
				if (object::is_point_in_angled_area(vParam0, *uParam3, uParam3->f_3, uParam3->f_6, 0, false) && !(vParam0.y < uParam3->f_2 && vParam0.y < uParam3->f_3.f_2))
				{
					return true;
				}
				else
				{
					return false;
				}
			}
			else if (iParam6)
			{
				if (object::is_point_in_angled_area(vParam0, *uParam3, uParam3->f_3, uParam3->f_6, 0, false) && !(vParam0.y > uParam3->f_2 && vParam0.y > uParam3->f_3.f_2))
				{
					return true;
				}
				else
				{
					return false;
				}
			}
			else
			{
				return object::is_point_in_angled_area(vParam0, *uParam3, uParam3->f_3, uParam3->f_6, 0, true);
			}
			break;
	}
	return false;
}

int func_962()//Position - 0x83001
{
	int iVar0;
	int iVar1;
	
	iVar0 = 0;
	while (iVar0 < 10)
	{
		if (Global_2404994.f_355[iVar0 /*12*/].f_9)
		{
			iVar1++;
		}
		iVar0++;
	}
	return iVar1;
}

void func_963(var uParam0, vector3 vParam1, float fParam4, float fParam5, int iParam6, float fParam7)//Position - 0x83034
{
	vector3 vVar0;
	vector3 vVar3;
	
	vVar0 = { *uParam0 - vParam1 };
	vVar0.z = 0f;
	if (system::vmag(vVar0) > 0f)
	{
		vVar0 = { vVar0 / FtoV(system::vmag(vVar0)) };
	}
	else
	{
		vVar0 = { 0f, 1f, 0f };
		if (fParam7 == 0f)
		{
			func_794(&vVar0, 0f, 0f, gameplay::get_random_float_in_range(0f, 360f));
		}
		else
		{
			func_794(&vVar0, 0f, 0f, fParam7);
		}
	}
	vVar0 = { vVar0 * FtoV((fParam4 + fParam5)) };
	if (!iParam6)
	{
		vVar3 = { vParam1 + vVar0 };
	}
	else
	{
		vVar3 = { vParam1 - vVar0 };
	}
	*uParam0 = vVar3.x;
	uParam0->f_1 = vVar3.y;
}

bool func_964(vector3 vParam0)//Position - 0x830DC
{
	float fVar0;
	
	if (Global_2404994.f_561 > 0f)
	{
		fVar0 = system::vdist(vParam0, Global_2404994.f_558);
		if (fVar0 < Global_2404994.f_561)
		{
			return true;
		}
	}
	return false;
}

int func_965(var uParam0, int iParam1)//Position - 0x83115
{
	int iVar0;
	
	iVar0 = false;
	if (Global_2404994.f_26.f_16)
	{
		switch (Global_2404994.f_26.f_15)
		{
			case 0:
				if (func_952(*uParam0, Global_2404994.f_26.f_8, Global_2404994.f_26.f_14, 0, 0))
				{
					iVar0 = true;
				}
				break;
			
			case 1:
				if (func_950(*uParam0, Global_2404994.f_26.f_8, Global_2404994.f_26.f_11, 0, 0))
				{
					iVar0 = true;
				}
				break;
			
			case 2:
				if (object::is_point_in_angled_area(*uParam0, Global_2404994.f_26.f_8, Global_2404994.f_26.f_11, Global_2404994.f_26.f_14, 0, true))
				{
					iVar0 = true;
				}
				break;
		}
		if (iVar0)
		{
			if (iParam1)
			{
				*uParam0 = { func_966(*uParam0, Global_2404994.f_26.f_8, Global_2404994.f_26.f_11, Global_2404994.f_26.f_14, Global_2404994.f_26.f_15, 1036831949, 0) };
			}
		}
	}
	return iVar0;
}

Vector3 func_966(vector3 vParam0, vector3 vParam3, vector3 vParam6, float fParam9, int iParam10, float fParam11, int iParam12)//Position - 0x83207
{
	int iVar0;
	vector3 vVar1;
	
	switch (iParam10)
	{
		case 0:
			func_963(&vParam0, vParam3, fParam9, fParam11, iParam12, 0);
			break;
		
		case 1:
			func_968(&vParam0, vParam3, vParam6, fParam11, iParam12);
			break;
		
		case 2:
			func_967(&vParam0, vParam3, vParam6, fParam9, fParam11, iParam12);
			break;
	}
	iVar0 = 0;
	while (iVar0 < 40)
	{
		pathfind::get_nth_closest_vehicle_node(vParam0, iVar0 * 5, &vVar1, 1, 0f, 0f);
		switch (iParam10)
		{
			case 0:
				if (!func_952(vVar1, vParam3, fParam9, 0, 0))
				{
					return vVar1;
				}
				break;
			
			case 1:
				if (!func_950(vVar1, vParam3, vParam6, 0, 0))
				{
					return vVar1;
				}
				break;
			
			case 2:
				if (!object::is_point_in_angled_area(vVar1, vParam3, vParam6, fParam9, 0, true))
				{
					return vVar1;
				}
				break;
		}
		iVar0++;
	}
	return vParam0;
}

void func_967(var uParam0, vector3 vParam1, vector3 vParam4, float fParam7, float fParam8, int iParam9)//Position - 0x8330A
{
	vector3 vVar0;
	vector3 vVar3;
	vector3 vVar6;
	float fVar9;
	vector3 vVar10;
	vector3 vVar13;
	float fVar16;
	vector3 vVar17;
	vector3 vVar20;
	vector3 vVar23;
	vector3 vVar26;
	vector3 vVar29;
	
	vVar0 = { vParam4 - vParam1 };
	vVar0.z = 0f;
	vVar3 = { *uParam0 - vParam1 };
	vVar3.z = 0f;
	vVar6 = { func_816(0f, 0f, 1f, vVar0) };
	vVar6 = { vVar6 / FtoV(system::vmag(vVar6)) };
	fVar9 = (system::vmag(vVar3) * system::sin(gameplay::get_angle_between_2d_vectors(vVar0.x, vVar0.y, vVar3.x, vVar3.y)));
	if (fVar9 < (fParam7 * 0.5f))
	{
		if (!iParam9)
		{
			if (func_814(vVar6, vVar3) >= 0f)
			{
				vVar6 = { vVar6 * FtoV((((fParam7 * 0.5f) - fVar9) + fParam8)) };
			}
			else
			{
				vVar6 = { vVar6 * FtoV(((((fParam7 * 0.5f) - fVar9) + fParam8) * -1f)) };
			}
		}
		else if (func_814(vVar6, vVar3) >= 0f)
		{
			vVar6 = { vVar6 * FtoV(((((fParam7 * 0.5f) + fVar9) + fParam8) * -1f)) };
		}
		else
		{
			vVar6 = { vVar6 * FtoV((((fParam7 * 0.5f) + fVar9) + fParam8)) };
		}
		vVar10 = { *uParam0 + vVar6 };
		fVar16 = system::vdist(vParam1.x, vParam1.y, 0f, vParam4.x, vParam4.y, 0f);
		vVar17 = { vParam1 + vParam4 / Vector(2f, 2f, 2f) };
		vVar17.z = 0f;
		vVar6 = { func_816(0f, 0f, 1f, vVar0) };
		vVar6 = { vVar6 / FtoV(system::vmag(vVar6)) };
		vVar6 = { vVar6 * FtoV((fParam7 * 0.5f)) };
		vVar20 = { vVar17 - vVar6 };
		vVar23 = { vVar17 + vVar6 };
		vVar26 = { vVar23 - vVar20 };
		vVar26.z = 0f;
		vVar29 = { *uParam0 - vVar20 };
		vVar29.z = 0f;
		vVar6 = { func_816(0f, 0f, 1f, vVar26) };
		vVar6 = { vVar6 / FtoV(system::vmag(vVar6)) };
		fVar9 = (system::vmag(vVar29) * system::sin(gameplay::get_angle_between_2d_vectors(vVar26.x, vVar26.y, vVar29.x, vVar29.y)));
		if (!iParam9)
		{
			if (func_814(vVar6, vVar29) >= 0f)
			{
				vVar6 = { vVar6 * FtoV((((fVar16 * 0.5f) - fVar9) + fParam8)) };
			}
			else
			{
				vVar6 = { vVar6 * FtoV(((((fVar16 * 0.5f) - fVar9) + fParam8) * -1f)) };
			}
		}
		else if (func_814(vVar6, vVar29) >= 0f)
		{
			vVar6 = { vVar6 * FtoV(((((fVar16 * 0.5f) + fVar9) + fParam8) * -1f)) };
		}
		else
		{
			vVar6 = { vVar6 * FtoV((((fVar16 * 0.5f) + fVar9) + fParam8)) };
		}
		vVar13 = { *uParam0 + vVar6 };
		if (system::vdist(vVar10, *uParam0, uParam0->f_1, 0f) < system::vdist(vVar13, *uParam0, uParam0->f_1, 0f))
		{
			*uParam0 = { vVar10 };
		}
		else
		{
			*uParam0 = { vVar13 };
		}
	}
}

void func_968(var uParam0, struct<2> Param1, var uParam3, struct<2> Param4, var uParam6, float fParam7, int iParam8)//Position - 0x835D9
{
	vector3 vVar0;
	float fVar3;
	float fVar4;
	float fVar5;
	float fVar6;
	float fVar7;
	float fVar8;
	
	vVar0 = { *uParam0 };
	fVar3 = (*uParam0 - Param1);
	fVar4 = (*uParam0 - Param4);
	if (fVar3 < fVar4)
	{
		fVar5 = fVar3;
	}
	else
	{
		fVar5 = fVar4;
	}
	fVar6 = (uParam0->f_1 - Param1.f_1);
	fVar7 = (uParam0->f_1 - Param4.f_1);
	if (fVar6 < fVar7)
	{
		fVar8 = fVar6;
	}
	else
	{
		fVar8 = fVar7;
	}
	vVar0 = { *uParam0 };
	if (!iParam8)
	{
		if (fVar5 < fVar8)
		{
			if (fVar3 < fVar4)
			{
				vVar0.x = (Param1 - fParam7);
			}
			else
			{
				vVar0.x = (Param4 + fParam7);
			}
		}
		else if (fVar6 < fVar7)
		{
			vVar0.y = (Param1.f_1 - fParam7);
		}
		else
		{
			vVar0.y = (Param4.f_1 + fParam7);
		}
	}
	else if (fVar5 < fVar8)
	{
		if (fVar3 < fVar4)
		{
			vVar0.x = (Param4 + fParam7);
		}
		else
		{
			vVar0.x = (Param1 - fParam7);
		}
	}
	else if (fVar6 < fVar7)
	{
		vVar0.y = (Param4.f_1 + fParam7);
	}
	else
	{
		vVar0.y = (Param1.f_1 - fParam7);
	}
	*uParam0 = { vVar0 };
}

bool func_969(vector3 vParam0, var uParam3, var uParam4, var uParam5, int iParam6, int iParam7)//Position - 0x836D8
{
	int iVar0;
	int iVar1;
	
	if (func_990(vParam0))
	{
		if (func_973(uParam3, iParam6, 0, 1))
		{
			if (iParam6)
			{
			}
			return true;
		}
	}
	if (func_971(uParam3, iParam6, 1))
	{
		if (iParam6)
		{
		}
		return true;
	}
	if (iParam7)
	{
		if (func_970(*uParam3, 1056964608))
		{
			return true;
		}
	}
	iVar1 = false;
	iVar0 = 0;
	while (iVar0 < *uParam4)
	{
		if (system::vdist(*uParam3, *(uParam4[iVar0 /*3*/])) < (*uParam5)[iVar0])
		{
			if (iParam6)
			{
				func_963(uParam3, *(uParam4[iVar0 /*3*/]), (*uParam5)[iVar0], 1036831949, 0, 0);
			}
			iVar1 = true;
		}
		iVar0++;
	}
	if (iVar1)
	{
		return true;
	}
	return false;
}

bool func_970(vector3 vParam0, float fParam3)//Position - 0x83793
{
	int iVar0;
	
	iVar0 = 0;
	while (iVar0 < 10)
	{
		if (system::vdist(vParam0, Global_2404994.f_2258[iVar0 /*3*/]) < fParam3)
		{
			return true;
		}
		iVar0++;
	}
	return false;
}

bool func_971(var uParam0, int iParam1, int iParam2)//Position - 0x837CE
{
	var uVar0;
	var uVar1;
	vector3 vVar2;
	
	if (func_960(*uParam0, &uVar0))
	{
		if (iParam1)
		{
			vVar2 = { *uParam0 };
			func_972(&vVar2, &(Global_2404994.f_355[uVar0 /*12*/]), 1036831949, 0, iParam2);
			if (func_960(vVar2, &uVar1) || func_964(vVar2))
			{
				vVar2 = { *uParam0 };
				func_972(&vVar2, &(Global_2404994.f_355[uVar0 /*12*/]), 1036831949, 1, iParam2);
			}
			*uParam0 = { vVar2 };
		}
		return true;
	}
	return false;
}

void func_972(var uParam0, var uParam1, float fParam2, int iParam3, int iParam4)//Position - 0x83852
{
	if (iParam4)
	{
		switch (uParam1->f_10)
		{
			case 0:
				*uParam0 = { func_966(*uParam0, *uParam1, 0f, 0f, 0f, (uParam1->f_6 + (IntToFloat(Global_2404994.f_2256) * uParam1->f_8)), 0, fParam2, iParam3) };
				break;
			
			case 1:
				*uParam0 = { func_966(*uParam0, *uParam1, uParam1->f_3, 0f, 1, fParam2, iParam3) };
				break;
			
			case 2:
				*uParam0 = { func_966(*uParam0, *uParam1, uParam1->f_3, uParam1->f_6, 2, fParam2, iParam3) };
				break;
		}
	}
	else
	{
		switch (uParam1->f_10)
		{
			case 0:
				func_963(uParam0, *uParam1, (uParam1->f_6 + (IntToFloat(Global_2404994.f_2256) * uParam1->f_8)), fParam2, iParam3, 0);
				break;
			
			case 1:
				func_968(uParam0, *uParam1, uParam1->f_3, fParam2, iParam3);
				break;
			
			case 2:
				func_967(uParam0, *uParam1, uParam1->f_3, uParam1->f_6, fParam2, iParam3);
				break;
			}
	}
}

bool func_973(var uParam0, int iParam1, int iParam2, int iParam3)//Position - 0x8395C
{
	int iVar0;
	vector3 vVar1;
	
	iVar0 = 0;
	while (iVar0 < 8)
	{
		if (Global_2409172[iVar0 /*17*/].f_9 == 1)
		{
			if (!iParam2 || (iParam2 && Global_2409172[iVar0 /*17*/].f_16))
			{
				if (func_961(*uParam0, &(Global_2409172[iVar0 /*17*/]), 1008981770, 1, 0))
				{
					if (iParam1)
					{
						if (Global_2409172[iVar0 /*17*/].f_12)
						{
							*uParam0 = { Global_2409172[iVar0 /*17*/].f_13 };
						}
						else
						{
							vVar1 = { *uParam0 };
							func_972(&vVar1, &(Global_2409172[iVar0 /*17*/]), 1036831949, 0, iParam3);
							if (func_973(&vVar1, 0, 0, 0))
							{
								vVar1 = { *uParam0 };
								func_972(&vVar1, &(Global_2409172[iVar0 /*17*/]), 1036831949, 1, 0);
							}
							*uParam0 = { vVar1 };
						}
					}
					return true;
				}
			}
		}
		iVar0++;
	}
	return false;
}

int func_974(var uParam0, var uParam1, var uParam2)//Position - 0x83A35
{
	int iVar0;
	vector3 vVar1;
	float fVar4;
	int iVar5;
	int iVar6;
	int iVar7;
	int iVar8;
	float fVar9;
	int iVar10;
	int iVar11;
	float fVar12;
	int iVar13;
	vector3 vVar14;
	var uVar17;
	
	if (Global_2404994.f_1685 > 0)
	{
		iVar0 = 0;
		if (!system::vmag(uParam2->f_35) > 0f)
		{
			uParam2->f_35 = { *uParam0 };
		}
		if (uParam2->f_15)
		{
			if (func_969(uParam2->f_35, uParam0, &(uParam2->f_38), &(uParam2->f_45), 1, 1))
			{
				uParam2->f_6 = 9999.9f;
				uParam2->f_7 = 9999.9f;
			}
		}
		if (uParam2->f_48)
		{
			if (func_965(uParam0, 1))
			{
				uParam2->f_6 = 9999.9f;
				uParam2->f_7 = 9999.9f;
			}
		}
		Global_2411146.f_162 = 0;
		Global_2411146.f_163 = 0;
		iVar5 = 0;
		while (iVar5 < 40)
		{
			Global_2411146[iVar5 /*3*/] = { 0f, 0f, 0f };
			Global_2411146.f_121[iVar5] = 0f;
			iVar5++;
		}
		iVar0 = 0;
		while (iVar0 < Global_2404994.f_1685)
		{
			vVar1 = { Global_2404994.f_1686[iVar0 /*4*/] };
			fVar4 = Global_2404994.f_1686[iVar0 /*4*/].f_3;
			if (system::vmag(vVar1) > 0f)
			{
				if ((uParam2->f_57 && system::vdist(vVar1, uParam2->f_35) > uParam2->f_4) || uParam2->f_57 == 0)
				{
					if ((uParam2->f_5 > 0f && system::vdist(vVar1.x, vVar1.y, 0f, uParam2->f_35, uParam2->f_35.f_1, 0f) < uParam2->f_5) || uParam2->f_5 <= 0f)
					{
						if ((uParam2->f_12 && !func_948(vVar1, fVar4, uParam2->f_34, player::player_id(), 0, uParam2->f_56)) || !uParam2->f_12)
						{
							if (!uParam2->f_15 || !func_969(uParam2->f_35, &vVar1, &(uParam2->f_38), &(uParam2->f_45), 0, 1))
							{
								if (uParam2->f_8)
								{
									iVar6 = uParam2->f_31;
									iVar7 = true;
									iVar8 = 1;
									fVar9 = uParam2->f_49;
									if (!uParam2->f_55)
									{
										iVar6 = 0;
										iVar7 = false;
										iVar8 = 0;
										fVar9 = 1f;
									}
									else if (uParam2->f_17)
									{
										iVar6 = 0;
										iVar7 = false;
										iVar8 = 0;
										if (uParam2->f_33 == 1)
										{
											fVar9 = (fVar9 * 0.375f);
										}
									}
									else
									{
										iVar7 = true;
										iVar8 = 1;
										if (uParam2->f_28)
										{
											if (uParam2->f_33 == 1)
											{
												fVar9 = (fVar9 * 0.375f);
											}
										}
									}
									iVar10 = false;
									if (uParam2->f_3 > 7f)
									{
										if (func_978(vVar1, 6f, 1f, 1f, 5f, iVar6, iVar7, iVar8, fVar9, 0, -1, 1, uParam2->f_3, 0, 0, 0, 0))
										{
											iVar10 = true;
										}
									}
									else if (func_978(vVar1, 6f, 1f, 1f, 5f, iVar6, iVar7, iVar8, fVar9, 0, -1, 1, 0f, 0, 0, 0, 0) && !func_928(vVar1, fVar4, uParam2->f_34, 1, 1, 0, 0, 0, 0))
									{
										iVar10 = true;
									}
									if (iVar10)
									{
										if ((uParam2->f_29 || uParam2->f_30) || uParam2->f_52)
										{
											fVar12 = 0f;
											if (uParam2->f_52)
											{
												iVar11 = func_946(vVar1, uParam2->f_54, &fVar12);
											}
											if (!uParam2->f_52 || (uParam2->f_52 && iVar11 <= uParam2->f_53))
											{
												if (uParam2->f_52)
												{
													if (iVar11 < uParam2->f_53)
													{
														iVar5 = 0;
														while (iVar5 < Global_2411146.f_162)
														{
															Global_2411146[iVar5 /*3*/] = { 0f, 0f, 0f };
															Global_2411146.f_121[iVar5] = 0f;
															iVar5++;
														}
														Global_2411146.f_162 = 0;
														uParam2->f_53 = iVar11;
													}
												}
												if (uParam2->f_30)
												{
													if (Global_2411146.f_162 == 0)
													{
														Global_2411146[0 /*3*/] = { vVar1 };
														Global_2411146.f_121[0] = fVar4;
													}
													else
													{
														iVar5 = 0;
														while (iVar5 < Global_2411146.f_162 + 1)
														{
															if (iVar5 < 40)
															{
																if (system::vdist2(vVar1, uParam2->f_35) < system::vdist2(Global_2411146[iVar5 /*3*/], uParam2->f_35))
																{
																	func_945(vVar1, fVar4, iVar5);
																	iVar5 = Global_2411146.f_162 + 1;
																}
															}
															iVar5++;
														}
													}
													Global_2411146.f_162++;
													if (Global_2411146.f_162 >= 5)
													{
														if ((uParam2->f_52 && uParam2->f_53 == 0) || uParam2->f_52 == 0)
														{
															iVar0 = Global_2404994.f_1685;
														}
														else if (Global_2411146.f_162 == 40)
														{
															iVar0 = Global_2404994.f_1685;
														}
													}
												}
												else
												{
													Global_2411146[Global_2411146.f_162 /*3*/] = { vVar1 };
													Global_2411146.f_121[Global_2411146.f_162] = fVar4;
													Global_2411146.f_162++;
													if (Global_2411146.f_162 >= 10)
													{
														if ((uParam2->f_52 && uParam2->f_53 == 0) || uParam2->f_52 == 0)
														{
															iVar0 = Global_2404994.f_1685;
														}
														else if (Global_2411146.f_162 == 40)
														{
															iVar0 = Global_2404994.f_1685;
														}
													}
												}
											}
										}
										else
										{
											*uParam0 = { vVar1 };
											*uParam1 = fVar4;
											return 1;
										}
									}
								}
								else
								{
									*uParam0 = { vVar1 };
									*uParam1 = fVar4;
									return 1;
								}
							}
						}
					}
				}
			}
			iVar0++;
		}
		if (Global_2411146.f_162 > 0)
		{
			if (uParam2->f_30)
			{
				*uParam0 = { Global_2411146[0 /*3*/] };
				*uParam1 = Global_2411146.f_121[0];
				return 1;
			}
			else
			{
				if (Global_2411146.f_163 > 0 && !Global_2411146.f_163 == Global_2411146.f_162)
				{
					func_943(0, uParam2);
				}
				iVar13 = gameplay::get_random_int_in_range(0, Global_2411146.f_162);
				vVar14 = { Global_2411146[0 /*3*/] };
				uVar17 = Global_2411146.f_121[0];
				Global_2411146[0 /*3*/] = { Global_2411146[iVar13 /*3*/] };
				Global_2411146.f_121[0] = Global_2411146.f_121[iVar13];
				Global_2411146[iVar13 /*3*/] = { vVar14 };
				Global_2411146.f_121[iVar13] = uVar17;
				*uParam0 = { Global_2411146[0 /*3*/] };
				*uParam1 = Global_2411146.f_121[0];
				return 1;
			}
		}
		else
		{
			uParam2->f_33++;
			if (uParam2->f_33 < 2)
			{
				return func_974(uParam0, uParam1, uParam2);
			}
			else
			{
				uParam2->f_33 = 0;
				func_938(uParam0, uParam1, uParam2);
				return 1;
			}
		}
	}
	return 0;
}

bool func_975(vector3 vParam0, float fParam3, int iParam4, int iParam5, int iParam6)//Position - 0x8401A
{
	int iVar0;
	int iVar1;
	
	iVar0 = 0;
	while (iVar0 < 32)
	{
		if (!iParam5 == iVar0 || iParam6 == 1)
		{
			iVar1 = iVar0;
			if (func_977(vParam0, iParam4, Global_2415705.f_426[iVar0 /*3*/], Global_2415705.f_556[iVar0]))
			{
				if (func_976(vParam0, fParam3, iParam4, Global_2415705.f_426[iVar0 /*3*/], Global_2415705.f_523[iVar0], Global_2415705.f_556[iVar0], 0))
				{
					if (func_1644(iVar1, 0, 1) && func_1644(iParam5, 0, 1))
					{
						return true;
					}
					else
					{
						return true;
					}
				}
			}
		}
		iVar0++;
	}
	return false;
}

bool func_976(vector3 vParam0, float fParam3, int iParam4, vector3 vParam5, float fParam8, int iParam9, int iParam10)//Position - 0x840C8
{
	int iVar0;
	vector3 vVar1[4];
	vector3 vVar14;
	vector3 vVar17;
	float fVar20;
	float fVar21;
	float fVar22;
	vector3 vVar23;
	vector3 vVar26;
	
	if (func_822(vParam0, vParam5, fParam8, iParam9, 1036831949))
	{
		return true;
	}
	func_803(iParam4, &vVar14, &vVar17, 1086324736, 1080033280, 1077936128);
	fVar20 = gameplay::absf((vVar17.y - vVar14.y));
	fVar21 = gameplay::absf((vVar17.x - vVar14.x));
	fVar22 = gameplay::absf((vVar17.y - vVar14.y));
	vVar23 = { 0f, (fVar20 * 0.5f), 0f };
	func_794(&vVar23, 0f, 0f, fParam3);
	vVar26 = { (fVar21 * 0.5f), 0f, 0f };
	func_794(&vVar26, 0f, 0f, fParam3);
	vVar1[0 /*3*/] = { vParam0 + vVar23 + vVar26 };
	vVar1[0 /*3*/].f_2 = (vVar1[0 /*3*/].f_2 + (0.5f * fVar22));
	vVar1[1 /*3*/] = { vParam0 + vVar23 - vVar26 };
	vVar1[1 /*3*/].f_2 = (vVar1[1 /*3*/].f_2 + (0.5f * fVar22));
	vVar1[2 /*3*/] = { vParam0 - vVar23 + vVar26 };
	vVar1[2 /*3*/].f_2 = (vVar1[2 /*3*/].f_2 + (0.5f * fVar22));
	vVar1[3 /*3*/] = { vParam0 - vVar23 - vVar26 };
	vVar1[3 /*3*/].f_2 = (vVar1[3 /*3*/].f_2 + (0.5f * fVar22));
	iVar0 = 0;
	while (iVar0 < 4)
	{
		if (func_822(vVar1[iVar0 /*3*/], vParam5, fParam8, iParam9, 1036831949))
		{
			return true;
		}
		iVar0++;
	}
	if (!iParam10)
	{
		if (func_976(vParam5, fParam8, iParam9, vParam0, fParam3, iParam4, 1))
		{
			return true;
		}
	}
	return false;
}

bool func_977(vector3 vParam0, int iParam3, vector3 vParam4, int iParam7)//Position - 0x84268
{
	float fVar0;
	float fVar1;
	float fVar2;
	
	fVar0 = func_823(iParam3, 1008981770);
	fVar1 = func_823(iParam7, 1008981770);
	fVar2 = system::vdist(vParam0, vParam4);
	if (fVar2 < (fVar0 + fVar1))
	{
		return true;
	}
	return false;
}

bool func_978(vector3 vParam0, float fParam3, float fParam4, float fParam5, float fParam6, int iParam7, int iParam8, int iParam9, float fParam10, int iParam11, int iParam12, int iParam13, float fParam14, int iParam15, float fParam16, int iParam17, int iParam18)//Position - 0x842A8
{
	Global_2404994.f_2 = 0;
	if (fParam3 > 0f)
	{
		if (vehicle::is_any_vehicle_near_point(vParam0, fParam3))
		{
			return false;
		}
	}
	if (fParam4 > 0f)
	{
		if (ped::is_any_ped_near_point(vParam0.x, vParam0.y, (vParam0.y + 1f), fParam4) || ped::is_any_ped_near_point(vParam0, fParam4))
		{
			return false;
		}
	}
	if (fParam5 > 0f)
	{
		if (object::is_any_object_near_point(vParam0, fParam5, iParam18))
		{
			return false;
		}
	}
	Global_2404994.f_2++;
	if (iParam13)
	{
		if (fire::get_number_of_fires_in_range(vParam0, 2.5f) > 0)
		{
			return false;
		}
	}
	Global_2404994.f_2++;
	if (fParam14 > 0f)
	{
		if (func_1026(vParam0, fParam14, 1, 1, iParam15, iParam17, 0, iParam15))
		{
			return false;
		}
	}
	Global_2404994.f_2++;
	if (iParam8)
	{
		if (fParam6 > 0f)
		{
			if (func_979(vParam0, fParam6, iParam7, iParam9, fParam10, iParam11, iParam12, fParam16, iParam17))
			{
				return false;
			}
		}
	}
	Global_2404994.f_2++;
	return true;
}

bool func_979(vector3 vParam0, float fParam3, int iParam4, int iParam5, float fParam6, int iParam7, int iParam8, float fParam9, int iParam10)//Position - 0x843B8
{
	int iVar0;
	int iVar1;
	float fVar2;
	
	if (iParam4 && !iParam7)
	{
		if (func_1644(player::player_id(), 1, 1))
		{
			if (!cam::is_screen_faded_out())
			{
				fVar2 = fParam6;
				if (fParam9 > 0f)
				{
					fVar2 = fParam9;
				}
				if (gameplay::get_distance_between_coords(func_640(player::player_id()), vParam0, 1) <= (fVar2 + fParam3))
				{
					if (cam::is_sphere_visible(vParam0, fParam3))
					{
						return true;
					}
				}
			}
		}
	}
	iVar0 = 0;
	while (iVar0 < 32)
	{
		iVar1 = iVar0;
		if (func_1644(iVar1, 1, 1))
		{
			if (!func_37(iVar1, 0) && network::_0x9DE986FC9A87C474(player::player_id(), iVar1))
			{
				if (iParam4 == 1 || (iParam4 == 0 && iVar1 != player::player_id()))
				{
					if ((func_931(iVar1) || !iParam10) && !Global_2421621[iVar1 /*358*/].f_262)
					{
						fVar2 = fParam6;
						if (fParam9 > 0f)
						{
							if (!player::get_player_team(iVar1) == -1)
							{
								if (player::get_player_team(iVar1) == player::get_player_team(player::player_id()))
								{
									fVar2 = fParam9;
								}
							}
						}
						if (!iParam7)
						{
							if ((iParam5 || (iParam5 == 0 && player::get_player_team(iVar1) != player::get_player_team(player::player_id()))) || player::get_player_team(iVar1) == -1)
							{
								if (gameplay::get_distance_between_coords(func_640(iVar1), vParam0, 1) <= (fVar2 + fParam3))
								{
									if (network::is_sphere_visible_to_player(iVar1, vParam0, fParam3))
									{
										return true;
									}
								}
							}
						}
						else if (player::get_player_team(iVar1) != iParam8 || player::get_player_team(iVar1) == -1)
						{
							if (gameplay::get_distance_between_coords(func_640(iVar1), vParam0, 1) <= (fVar2 + fParam3))
							{
								if (network::is_sphere_visible_to_player(iVar1, vParam0, fParam3))
								{
									return true;
								}
							}
						}
					}
				}
			}
		}
		iVar0++;
	}
	return false;
}

void func_980(vector3 vParam0, int iParam3)//Position - 0x84570
{
	int iVar0;
	int iVar1;
	int iVar2[3];
	var uVar6[3];
	
	if (!func_987())
	{
		if (iParam3 == 0)
		{
		}
		iVar1 = func_986(vParam0);
		if (iVar1 > -1)
		{
			func_994();
			switch (iVar1)
			{
				case 0:
					func_985(-1139.678f, -2694.165f, 12.949f, 283.4298f);
					func_985(-1137.455f, -2690.167f, 12.9448f, 283.0835f);
					func_985(-1135.02f, -2685.912f, 12.9412f, 283.8219f);
					func_985(-1099.898f, -2688.611f, 12.9473f, 295.3925f);
					func_985(-1110.51f, -2693.236f, 12.9595f, 298.84f);
					func_985(-1081.807f, -2690.015f, 12.7567f, 219.1729f);
					func_985(-1075.586f, -2697.09f, 12.7567f, 224.8977f);
					func_985(-1095.133f, -2659.995f, 12.7567f, 190.9326f);
					func_985(-1096.511f, -2649.483f, 12.6066f, 182.7913f);
					break;
				
				case 1:
					func_985(-1411.731f, -533.6462f, 30.2703f, 215.116f);
					func_985(-1416.407f, -527.0309f, 30.6453f, 215.2683f);
					func_985(-1432.146f, -580.9922f, 29.5263f, 118.3858f);
					func_985(-1438.8f, -584.4678f, 29.595f, 118.1207f);
					break;
				
				case 2:
					func_985(-780.5905f, 292.8159f, 84.673f, 97.2697f);
					func_985(-788.6147f, 291.8073f, 84.72f, 97.7348f);
					func_985(-765.572f, 294.4459f, 84.5182f, 93.9327f);
					func_985(-756.9962f, 294.8176f, 84.4061f, 93.9545f);
					break;
				
				case 3:
					func_985(-647.9388f, 40.9257f, 38.9494f, 356.4108f);
					func_985(-647.239f, 49.2068f, 40.7135f, 355.9723f);
					func_985(-620.1517f, 3.6633f, 40.5904f, 98.3813f);
					func_985(-610.5603f, 5.1258f, 41.2404f, 98.696f);
					break;
				
				case 4:
					func_985(-943.2437f, -487.8443f, 35.7504f, 208.6441f);
					func_985(-949.2938f, -476.3759f, 36.0878f, 208.1432f);
					func_985(-955.3208f, -465.3984f, 36.3328f, 206.9198f);
					func_985(-959.5925f, -457.0372f, 36.5226f, 207.7534f);
					break;
				
				case 5:
					func_985(-966.1365f, -401.5364f, 36.6824f, 27.6587f);
					func_985(-934.9108f, -413.4091f, 36.5161f, 118.0149f);
					func_985(-920.2501f, -405.6656f, 36.5869f, 117.2407f);
					func_985(-971.7031f, -390.5213f, 36.7118f, 26.8016f);
					break;
				
				case 6:
					func_985(-58.1347f, -573.486f, 36.5789f, 341.8442f);
					func_985(-64.227f, -590.2214f, 35.1654f, 338.972f);
					func_985(-67.0332f, -599.2827f, 35.1787f, 341.5854f);
					func_985(-71.8651f, -612.8891f, 35.1574f, 339.8537f);
					break;
				
				case 7:
					func_985(-232.1917f, -978.1431f, 28.166f, 160.2115f);
					func_985(-229.6225f, -970.9731f, 28.1636f, 160.2397f);
					func_985(-251.993f, -998.3963f, 28.3747f, 249.3297f);
					func_985(-262.222f, -994.5226f, 29.23f, 249.4673f);
					break;
				
				case 8:
					func_985(151.624f, -1309.343f, 28.2023f, 243.201f);
					func_985(152.7886f, -1305.608f, 28.2023f, 243.9973f);
					func_985(145.8017f, -1287.19f, 28.312f, 120.6275f);
					func_985(142.8935f, -1282.286f, 28.3156f, 120.3024f);
					break;
				
				case 9:
					func_985(-2333.575f, 272.6518f, 168.4671f, 23.0287f);
					func_985(-2322.187f, 277.638f, 168.4671f, 23.4249f);
					func_985(-2316.222f, 279.9105f, 168.4671f, 23.0175f);
					func_985(-2314.396f, 290.9f, 168.4671f, 114.3983f);
					func_985(-2316.81f, 296.424f, 168.4671f, 113.6228f);
					func_985(-2318.572f, 299.2423f, 168.4671f, 293.83f);
					func_985(-2327.902f, 291.6653f, 168.4671f, 294.1158f);
					func_985(-2330.711f, 274.0757f, 168.4671f, 205.2184f);
					func_985(-2345.082f, 277.3852f, 168.4671f, 113.4219f);
					func_985(-2347.777f, 282.6038f, 168.4671f, 292.7772f);
					func_985(-2339.33f, 293.4399f, 168.4671f, 114.2739f);
					func_985(-2352.681f, 294.4205f, 168.4671f, 115.5597f);
					break;
				
				case 10:
					func_984(78);
					break;
				
				case 11:
					func_984(79);
					break;
				
				case 12:
					func_984(82);
					break;
				
				case 13:
					func_984(81);
					break;
				
				case 14:
					func_984(73);
					break;
				
				case 15:
					func_985(382.9244f, 443.8122f, 142.9934f, 78.3408f);
					func_985(391.2023f, 442.4812f, 142.5089f, 82.2125f);
					func_985(400.1477f, 441.0816f, 142.0776f, 83.4259f);
					func_985(414.2964f, 439.2628f, 141.5056f, 80.8689f);
					break;
				
				case 16:
					func_984(75);
					break;
				
				case 17:
					func_984(76);
					break;
				
				case 18:
					func_984(77);
					break;
				
				case 19:
					func_985(-921.9734f, 704.0754f, 150.8142f, 96.5139f);
					func_985(-904.7881f, 708.9782f, 149.8261f, 108.2109f);
					func_985(-931.6637f, 703.693f, 151.369f, 87.7447f);
					func_985(-943.8763f, 704.2332f, 152.0993f, 87.6764f);
					break;
				
				case 20:
					func_984(80);
					break;
				
				case 21:
				case 25:
					func_984(87);
					break;
				
				case 22:
				case 26:
					func_984(88);
					break;
				
				case 23:
				case 27:
					func_984(89);
					break;
				
				case 24:
				case 28:
					func_984(90);
					break;
				
				case 29:
				case 30:
					if (func_983(iParam3))
					{
						func_984(Global_1589933[player::player_id() /*601*/].f_257.f_15);
					}
					break;
			}
		}
		else if (func_982(vParam0, 50f, &iVar2, &uVar6))
		{
			func_994();
			iVar0 = 0;
			while (iVar0 < iVar2)
			{
				if (!uVar6[iVar0] && func_896(iVar2[iVar0], -1))
				{
					if (func_983(iParam3))
					{
						func_984(iVar2[iVar0]);
					}
				}
				else if (uVar6[iVar0])
				{
					func_981(iVar2[iVar0]);
				}
				else
				{
					func_984(iVar2[iVar0]);
				}
				iVar0++;
			}
		}
	}
}

void func_981(int iParam0)//Position - 0x84D54
{
	switch (iParam0)
	{
		case 23:
			func_985(434.1898f, 6535.824f, 27.0084f, 66.9998f);
			func_985(434.9146f, 6539.661f, 26.9691f, 66.9998f);
			func_985(435.1928f, 6543.298f, 26.889f, 66.9998f);
			func_985(429.8495f, 6506.581f, 27.1807f, 59.7997f);
			func_985(429.8463f, 6511.11f, 27.0717f, 60.9997f);
			func_985(434.2748f, 6581.816f, 26.1303f, 85.1993f);
			func_985(443.1016f, 6580.717f, 26.0739f, 85.1993f);
			func_985(451.9748f, 6579.937f, 26.0319f, 85.1993f);
			break;
		
		case 26:
			func_985(-148.9694f, 6325.552f, 30.4564f, 224.1983f);
			func_985(-154.9585f, 6331.287f, 30.5809f, 225.7983f);
			func_985(-136.8806f, 6347.622f, 30.4906f, 43.9982f);
			func_985(-142.1459f, 6342.532f, 30.49f, 44.7982f);
			func_985(-136.6504f, 6357.062f, 30.4907f, 43.9982f);
			func_985(-151.1909f, 6358.461f, 30.4907f, 223.398f);
			func_985(-141.4154f, 6365.831f, 30.4907f, 43.3979f);
			func_985(-147.8279f, 6378.042f, 30.5012f, 312.7973f);
			break;
		
		case 24:
			func_985(60.7522f, 6465.807f, 30.3941f, 213.3973f);
			func_985(57.4131f, 6462.55f, 30.3663f, 213.3973f);
			func_985(48.0438f, 6452.668f, 30.3245f, 213.3973f);
			func_985(40.6765f, 6445.235f, 30.3475f, 213.3973f);
			func_985(37.8298f, 6442.521f, 30.3489f, 213.3973f);
			func_985(35.0212f, 6439.866f, 30.3332f, 213.3973f);
			func_985(32.1837f, 6437.21f, 30.2991f, 213.3973f);
			func_985(29.4732f, 6434.526f, 30.3702f, 213.3973f);
			break;
		
		case 25:
			func_985(-377.1927f, 6142.805f, 30.3409f, 315.3965f);
			func_985(-383.3481f, 6136.154f, 30.3752f, 315.3965f);
			func_985(-395.8286f, 6123.635f, 30.2987f, 46.3965f);
			func_985(-389.1636f, 6117.241f, 30.3641f, 46.3965f);
			func_985(-370.6174f, 6129.779f, 30.4414f, 45.7965f);
			func_985(-360.983f, 6130.575f, 30.4401f, 45.7965f);
			func_985(-416.8689f, 6103.411f, 30.3852f, 325.7964f);
			func_985(-420.9229f, 6095.657f, 30.3155f, 334.7964f);
			break;
		
		case 22:
			func_985(45.2181f, 6341.107f, 30.2296f, 14.3964f);
			func_985(41.6057f, 6339.476f, 30.2306f, 14.3964f);
			func_985(39.2508f, 6359.469f, 30.2398f, 207.3965f);
			func_985(36.3203f, 6356.893f, 30.2398f, 207.3965f);
			func_985(51.6043f, 6365.022f, 30.2399f, 33.5965f);
			func_985(65.6465f, 6380.626f, 30.2398f, 212.9964f);
			func_985(24.8587f, 6366.36f, 30.2286f, 32.7965f);
			func_985(19.6254f, 6360.736f, 30.2305f, 32.7965f);
			break;
		
		case 28:
			func_985(94.0245f, 181.2181f, 103.5566f, 160.3953f);
			func_985(91.0039f, 182.2811f, 103.6179f, 160.3953f);
			func_985(68.365f, 148.2105f, 103.5812f, 339.9951f);
			func_985(62.2104f, 150.5185f, 103.6101f, 339.9951f);
			func_985(69.5198f, 186.4278f, 103.9415f, 69.7949f);
			func_985(62.59f, 189.0833f, 103.9981f, 69.7949f);
			func_985(55.6095f, 191.8089f, 104.2827f, 69.7949f);
			func_985(154.7309f, 182.1333f, 104.6903f, 160.1945f);
			break;
		
		case 31:
			func_985(322.4916f, -714.5293f, 28.1574f, 158.5941f);
			func_985(329.5591f, -694.4284f, 28.1656f, 158.5941f);
			func_985(324.565f, -684.3934f, 28.3133f, 247.194f);
			func_985(326.4054f, -679.9403f, 28.3192f, 247.194f);
			func_985(297.1177f, -804.3891f, 28.4859f, 160.594f);
			func_985(288.5461f, -814.6994f, 28.1563f, 163.194f);
			func_985(286.0127f, -821.7357f, 28.3093f, 163.194f);
			func_985(283.6725f, -828.9533f, 28.1247f, 158.994f);
			break;
		
		case 29:
			func_985(-1448.551f, -355.0512f, 43.3715f, 313.3925f);
			func_985(-1454.819f, -359.998f, 42.7885f, 311.3925f);
			func_985(-1462.675f, -360.1352f, 42.9255f, 223.392f);
			func_985(-1447.965f, -368.3028f, 42.5412f, 5.9918f);
			func_985(-1468.678f, -353.4619f, 43.2024f, 217.7916f);
			func_985(-1473.219f, -346.7773f, 43.5318f, 213.9913f);
			func_985(-1490.742f, -420.1957f, 35.9291f, 229.1911f);
			func_985(-1496.003f, -395.7657f, 38.1394f, 45.7909f);
			break;
		
		case 30:
			func_985(-1174.491f, -1381.01f, 3.9253f, 116.5903f);
			func_985(-1183.148f, -1392.559f, 3.6319f, 304.9901f);
			func_985(-1160.964f, -1417.759f, 3.7043f, 65.7899f);
			func_985(-1151.611f, -1411.377f, 3.9411f, 63.5895f);
			func_985(-1167.187f, -1424.07f, 3.4884f, 123.5897f);
			func_985(-1148.22f, -1409.164f, 4.0217f, 63.5895f);
			func_985(-1137.11f, -1372.818f, 3.8993f, 27.5895f);
			func_985(-1140.608f, -1365.747f, 4.0573f, 27.5895f);
			break;
		
		case 27:
			func_985(1414.237f, -1656.344f, 60.2449f, 332.7893f);
			func_985(1416.668f, -1659.933f, 60.6982f, 332.7893f);
			func_985(1419.327f, -1663.972f, 61.2382f, 332.7893f);
			func_985(1421.557f, -1667.367f, 61.7479f, 332.7893f);
			func_985(1423.744f, -1670.853f, 62.3125f, 332.7893f);
			func_985(1412.157f, -1652.746f, 59.9105f, 332.7893f);
			func_985(1426.201f, -1673.598f, 62.7133f, 330.1893f);
			func_985(1435.804f, -1694.73f, 65.0743f, 352.5892f);
			break;
		
		case 33:
			func_985(2810.787f, 4435.92f, 47.5295f, 20.7996f);
			func_985(2808.413f, 4443.922f, 47.3732f, 14.7995f);
			func_985(2806.298f, 4451.786f, 47.1865f, 15.3995f);
			func_985(2803.925f, 4459.858f, 46.9823f, 15.3995f);
			func_985(2801.756f, 4467.755f, 46.8147f, 15.3995f);
			func_985(2893.563f, 4430.258f, 47.338f, 105.9994f);
			func_985(2903.725f, 4425.854f, 47.3523f, 23.1992f);
			func_985(2907.076f, 4418.059f, 47.6301f, 23.1992f);
			break;
		
		case 36:
			func_985(1680.448f, 4821.131f, 41.0599f, 186.399f);
			func_985(1679.76f, 4829.447f, 40.9167f, 186.399f);
			func_985(1678.668f, 4838.03f, 41.0221f, 187.7989f);
			func_985(1677.612f, 4846.028f, 41.0452f, 187.7989f);
			func_985(1675.851f, 4860.434f, 41.0901f, 187.7989f);
			func_985(1674.843f, 4868.343f, 41.0684f, 187.7989f);
			func_985(1673.543f, 4875.752f, 41.0684f, 186.7986f);
			func_985(1672.525f, 4884.972f, 41.0478f, 186.7986f);
			break;
		
		case 34:
			func_985(422.863f, 3583.901f, 32.2386f, 313.5986f);
			func_985(426.6211f, 3583.208f, 32.2386f, 313.5986f);
			func_985(430.466f, 3582.042f, 32.2386f, 313.5986f);
			func_985(434.2751f, 3580.881f, 32.2386f, 313.5986f);
			func_985(438.1525f, 3579.911f, 32.2386f, 313.5986f);
			func_985(442.0173f, 3578.948f, 32.2386f, 313.5986f);
			func_985(420.2694f, 3572.995f, 32.2385f, 353.7984f);
			func_985(424.4825f, 3572.1f, 32.2386f, 348.1984f);
			break;
		
		case 35:
			func_985(627.005f, 2726.019f, 40.7692f, 4.3984f);
			func_985(620.9771f, 2725.759f, 40.7897f, 4.3984f);
			func_985(614.8536f, 2725.355f, 40.8321f, 4.3984f);
			func_985(611.1158f, 2737.387f, 40.9734f, 185.3984f);
			func_985(598.9713f, 2736.261f, 41.0602f, 186.5986f);
			func_985(592.6151f, 2735.886f, 41.0602f, 186.5986f);
			func_985(586.0421f, 2735.9f, 41.0535f, 186.5986f);
			func_985(627.4468f, 2742.742f, 40.8963f, 183.5979f);
			break;
		
		case 32:
			func_985(214.3318f, 2492.26f, 53.9736f, 312.7978f);
			func_985(213.9953f, 2496.666f, 53.8128f, 312.7978f);
			func_985(213.7524f, 2501.251f, 53.5958f, 312.7978f);
			func_985(213.6645f, 2505.908f, 53.3477f, 312.7978f);
			func_985(213.4478f, 2510.734f, 53.1055f, 312.7978f);
			func_985(212.9148f, 2515.268f, 52.9376f, 312.7978f);
			func_985(211.5983f, 2519.216f, 52.6753f, 312.7978f);
			func_985(210.1288f, 2523.187f, 52.3493f, 312.7978f);
			break;
		
		case 38:
			func_985(153.6785f, -2476.192f, 4.9877f, 178.4004f);
			func_985(150.9209f, -2516.979f, 4.9909f, 179.9999f);
			func_985(150.9499f, -2524.965f, 4.9905f, 179.9999f);
			func_985(153.866f, -2467.242f, 4.9877f, 178.4004f);
			func_985(150.8115f, -2533.139f, 4.9895f, 180.0004f);
			func_985(153.8647f, -2433.386f, 5.2336f, 170.2002f);
			func_985(142.7427f, -2536.147f, 5f, 205.0002f);
			func_985(138.8267f, -2535.865f, 5f, 205.0002f);
			break;
		
		case 41:
			func_985(-341.4255f, -2734.451f, 5.0413f, 314.8f);
			func_985(-334.0134f, -2741.43f, 5.0269f, 314.8f);
			func_985(-329.7832f, -2745.604f, 5.0196f, 314.8f);
			func_985(-336.4781f, -2716.139f, 5.0028f, 134.1994f);
			func_985(-334.2752f, -2718.888f, 5.0048f, 135.1992f);
			func_985(-327.6603f, -2725.645f, 5.0103f, 135.1992f);
			func_985(-323.1619f, -2730.345f, 5.0099f, 135.1992f);
			func_985(-316.3481f, -2737.087f, 5.0033f, 135.1992f);
			break;
		
		case 39:
			func_985(1143.73f, -3105.091f, 4.8989f, 146.1979f);
			func_985(1140.009f, -3104.954f, 4.8985f, 146.1979f);
			func_985(1136.267f, -3104.69f, 4.8969f, 146.1979f);
			func_985(1132.732f, -3104.277f, 4.8944f, 146.1979f);
			func_985(1128.724f, -3104.54f, 4.896f, 146.1979f);
			func_985(1125.106f, -3104.057f, 4.8942f, 146.1979f);
			func_985(1117.8f, -3103.674f, 4.8922f, 146.1979f);
			func_985(1114.015f, -3103.448f, 4.8931f, 146.1979f);
			break;
		
		case 40:
			func_985(653.1188f, -2700.255f, 5.2101f, 24.7971f);
			func_985(656.1305f, -2707.245f, 5.214f, 24.7971f);
			func_985(659.3307f, -2714.378f, 5.2188f, 22.7968f);
			func_985(662.2627f, -2722.228f, 5.2188f, 19.1968f);
			func_985(649.2115f, -2728.359f, 5.1124f, 20.5967f);
			func_985(646.2606f, -2720.833f, 5.1103f, 21.3967f);
			func_985(643.4582f, -2713.846f, 5.1099f, 21.3967f);
			func_985(640.3513f, -2706.571f, 5.108f, 21.3967f);
			break;
		
		case 37:
			func_985(-260.5913f, -2615.255f, 5.0502f, 274.5953f);
			func_985(-253.2161f, -2614.896f, 5.0502f, 271.5953f);
			func_985(-245.6569f, -2614.862f, 5.0502f, 271.5953f);
			func_985(-238.214f, -2614.847f, 5.0502f, 271.5953f);
			func_985(-238.013f, -2630.961f, 5.0331f, 271.3949f);
			func_985(-260.9724f, -2631.418f, 5.0355f, 276.9951f);
			func_985(-253.401f, -2631.108f, 5.0319f, 272.195f);
			func_985(-245.5563f, -2631.06f, 5.0323f, 272.195f);
			break;
		
		default:
			break;
	}
}

bool func_982(struct<2> Param0, var uParam2, float fParam3, var uParam4, var uParam5)//Position - 0x85D12
{
	int iVar0;
	int iVar1;
	int iVar2;
	
	iVar2 = 0;
	iVar0 = 1;
	while (iVar0 <= 115)
	{
		if (iVar2 < *uParam4)
		{
			iVar1 = 0;
			iVar1 = 0;
			while (iVar1 < 2)
			{
				if (system::vdist(Param0, Param0.f_1, 0f, Global_1049427[iVar0 /*1942*/].f_3[iVar1 /*3*/], Global_1049427[iVar0 /*1942*/].f_3[iVar1 /*3*/].f_1, 0f) < fParam3)
				{
					(*uParam4)[iVar2] = iVar0;
					(*uParam5)[iVar2] = 0;
					iVar2++;
					iVar1 = 99;
				}
				iVar1++;
			}
		}
		iVar0++;
	}
	iVar0 = 0;
	while (iVar0 < 67)
	{
		if (iVar2 < *uParam4)
		{
			if (system::vdist(Param0, Param0.f_1, 0f, Global_1760739.f_20[iVar0 /*3*/], Global_1760739.f_20[iVar0 /*3*/].f_1, 0f) < fParam3)
			{
				(*uParam4)[iVar2] = iVar0;
				(*uParam5)[iVar2] = 1;
				iVar2++;
			}
		}
		iVar0++;
	}
	if (iVar2 > 0)
	{
		return true;
	}
	return false;
}

bool func_983(int iParam0)//Position - 0x85DFB
{
	if ((vehicle::is_this_model_a_bike(iParam0) || vehicle::is_this_model_a_quadbike(iParam0)) || vehicle::is_this_model_a_bicycle(iParam0))
	{
		return true;
	}
	return false;
}

void func_984(int iParam0)//Position - 0x85E29
{
	switch (iParam0)
	{
		case 78:
			func_985(-602.6942f, 690.0488f, 148.1567f, 75.0245f);
			func_985(-612.8933f, 692.116f, 148.7577f, 79.1005f);
			func_985(-626.1633f, 694.6517f, 149.6835f, 75.1121f);
			func_985(-639.3558f, 696.9992f, 150.5134f, 77.481f);
			break;
		
		case 79:
			func_985(-763.4828f, 668.4921f, 142.8936f, 236.9954f);
			func_985(-759.3964f, 690.4262f, 143.0253f, 214.9099f);
			func_985(-671.5947f, 646.5754f, 148.3114f, 49.9935f);
			func_985(-668.575f, 668.7567f, 149.4004f, 69.8844f);
			break;
		
		case 82:
			func_985(382.9244f, 443.8122f, 142.9934f, 78.3408f);
			func_985(391.2023f, 442.4812f, 142.5089f, 82.2125f);
			func_985(400.1477f, 441.0816f, 142.0776f, 83.4259f);
			func_985(414.2964f, 439.2628f, 141.5056f, 80.8689f);
			break;
		
		case 81:
			func_985(-1294.64f, 468.1975f, 96.4245f, 141.8551f);
			func_985(-1300.508f, 468.0167f, 96.8298f, 139.6287f);
			func_985(-1283.894f, 467.2136f, 95.4036f, 95.058f);
			func_985(-1273.584f, 454.4406f, 94.2269f, 30.8724f);
			break;
		
		case 73:
			func_985(-209.2598f, 509.0326f, 130.7979f, 97.2043f);
			func_985(-221.7214f, 507.2553f, 128.5651f, 92.2773f);
			func_985(-237.2848f, 506.8763f, 125.8112f, 85.9315f);
			func_985(-255.5678f, 507.9559f, 122.3364f, 85.1752f);
			break;
		
		case 75:
			func_985(-763.4828f, 668.4921f, 142.8936f, 236.9954f);
			func_985(-759.3964f, 690.4262f, 143.0253f, 214.9099f);
			func_985(-671.5947f, 646.5754f, 148.3114f, 49.9935f);
			func_985(-668.575f, 668.7567f, 149.4004f, 69.8844f);
			break;
		
		case 76:
			func_985(-668.575f, 668.7567f, 149.4004f, 69.8844f);
			func_985(-671.5947f, 646.5754f, 148.3114f, 49.9935f);
			func_985(-759.3964f, 690.4262f, 143.0253f, 214.9099f);
			func_985(-763.4828f, 668.4921f, 142.8936f, 236.9954f);
			break;
		
		case 77:
			func_985(128.4334f, 578.7522f, 182.2934f, 106.5458f);
			func_985(97.7791f, 576.8907f, 181.5599f, 91.3539f);
			func_985(83.5896f, 576.4791f, 181.0832f, 89.7262f);
			func_985(69.9599f, 575.9902f, 180.5019f, 91.4926f);
			break;
		
		case 80:
			func_985(-872.1293f, 698.7591f, 148.5084f, 339.673f);
			func_985(-916.5449f, 695.5253f, 150.5625f, 272.7097f);
			func_985(-907.3458f, 695.8158f, 150.396f, 270.6491f);
			func_985(-923.6974f, 691.4489f, 150.9506f, 357.4356f);
			break;
		
		case 87:
			if (func_598())
			{
				func_985(-1608.297f, -556.875f, 33.406f, 310f);
				func_985(-1616.095f, -563.402f, 33.049f, 309.4f);
				func_985(-1560.29f, -531.69f, 34.576f, 35.3994f);
				func_985(-1555.303f, -538.781f, 34.044f, 35.3994f);
			}
			else
			{
				func_985(-1605.148f, -552.5016f, 33.4606f, 309.4211f);
				func_985(-1616.306f, -561.6959f, 32.9867f, 309.4369f);
				func_985(-1582.681f, -534.1682f, 34.4171f, 307.8589f);
				func_985(-1619.657f, -531.5862f, 33.4254f, 128.9132f);
				func_985(-1560.257f, -532.3268f, 34.5436f, 216.0882f);
				func_985(-1553.698f, -541.3412f, 33.8662f, 215.8465f);
				func_985(-1611.769f, -601.588f, 31.2908f, 50.7362f);
				func_985(-1600.63f, -610.1141f, 30.5087f, 51.7297f);
			}
			break;
		
		case 88:
			if (func_598())
			{
				func_985(-1402.362f, -511.396f, 30.888f, 35.4f);
				func_985(-1356.617f, -531.0343f, 29.7588f, 124.9982f);
				func_985(-1407.634f, -503.839f, 31.35f, 35.4f);
				func_985(-1346.007f, -523.3546f, 30.6339f, 125.9976f);
			}
			else
			{
				func_985(-1390.604f, -528.6405f, 29.8387f, 35.4572f);
				func_985(-1357.085f, -531.4611f, 29.7218f, 125.0906f);
				func_985(-1346.236f, -523.9114f, 30.6f, 124.7302f);
				func_985(-1337.852f, -518.1096f, 31.2329f, 124.6998f);
				func_985(-1336.39f, -556.0637f, 29.7514f, 33.8088f);
				func_985(-1340.214f, -508.9828f, 31.4089f, 98.7714f);
				func_985(-1348.607f, -510.3536f, 30.9263f, 99.2425f);
				func_985(-1380.764f, -536.3867f, 29.3128f, 63.6203f);
			}
			break;
		
		case 89:
			if (func_598())
			{
				func_985(-102.737f, -597.379f, 35.053f, 160.999f);
				func_985(-97.793f, -589.568f, 35.082f, 134.799f);
				func_985(-110.357f, -619.402f, 35.055f, 160.599f);
				func_985(-112.561f, -627.723f, 35.046f, 165.399f);
			}
			else
			{
				func_985(-108.2604f, -613.6386f, 35.055f, 160.8063f);
				func_985(-103.0375f, -598.4797f, 35.0538f, 161.1968f);
				func_985(-112.84f, -629.6357f, 35.0662f, 174.9843f);
				func_985(-98.7403f, -590.3209f, 35.075f, 139.7632f);
				func_985(-98.3748f, -612.642f, 35.137f, 161.1124f);
				func_985(-92.595f, -595.4065f, 35.1888f, 161.3083f);
				func_985(-104.4742f, -630.1472f, 35.1396f, 161.184f);
				func_985(-74.1068f, -619.9417f, 35.1488f, 340.9123f);
			}
			break;
		
		case 90:
			if (func_598())
			{
				func_985(-59.349f, -779.238f, 43.134f, 228.398f);
				func_985(-41.6311f, -789.1425f, 43.1323f, 255.5993f);
				func_985(-65.212f, -772.66f, 43.151f, 219.398f);
				func_985(-33.0648f, -789.3544f, 43.1287f, 279.5989f);
			}
			else
			{
				func_985(-59.684f, -779.4568f, 43.114f, 228.7591f);
				func_985(-52.7425f, -784.7151f, 43.1134f, 237.7756f);
				func_985(-45.2736f, -788.4313f, 43.1133f, 250.2438f);
				func_985(-35.9308f, -789.8549f, 43.1167f, 271.1923f);
				func_985(-64.6911f, -762.4548f, 43.1316f, 35.6897f);
				func_985(-24.9853f, -786.8022f, 43.1163f, 297.8276f);
				func_985(-86.2083f, -739.3044f, 43.0546f, 204.9405f);
				func_985(-9.239f, -773.0505f, 43.0788f, 318.0367f);
			}
			break;
		
		case 91:
			func_985(246.5035f, -1798.749f, 26.1131f, 212.5996f);
			func_985(247.8968f, -1797.017f, 26.1131f, 212.5996f);
			func_985(249.3848f, -1795.374f, 26.1131f, 212.5996f);
			func_985(250.8498f, -1793.695f, 26.1131f, 212.5996f);
			func_985(262.9285f, -1784.205f, 26.1131f, 164.5991f);
			func_985(266.8129f, -1787.476f, 26.1131f, 164.5991f);
			func_985(264.814f, -1785.801f, 26.1131f, 164.5991f);
			func_985(269.0069f, -1789.16f, 26.1131f, 164.5991f);
			break;
		
		case 92:
			func_985(-1464.5f, -927.9f, 9f, 296.7991f);
			func_985(-1466f, -926.1f, 9f, 296.7991f);
			func_985(-1467.9f, -924.7f, 9f, 296.7991f);
			func_985(-1469.7f, -923.7f, 9f, 296.7991f);
			func_985(-1462.481f, -931.2933f, 9.1294f, 296.5982f);
			func_985(-1460.639f, -932.9284f, 9.1315f, 296.5982f);
			func_985(-1454.923f, -931.1019f, 9.0872f, 237.1973f);
			func_985(-1450.848f, -934.5874f, 8.4514f, 237.1973f);
			break;
		
		case 93:
			func_985(30.0784f, -1024.16f, 28.4469f, 234.5994f);
			func_985(29.1695f, -1026.719f, 28.4453f, 234.5994f);
			func_985(28.2538f, -1029.296f, 28.4421f, 234.5994f);
			func_985(27.3737f, -1031.767f, 28.3937f, 234.5994f);
			func_985(32.6932f, -1017.063f, 28.4531f, 234.5994f);
			func_985(33.672f, -1014.399f, 28.4552f, 234.5994f);
			func_985(37.488f, -1014.344f, 28.4781f, 175.5986f);
			func_985(39.4909f, -1015.097f, 28.484f, 175.5986f);
			break;
		
		case 94:
			func_985(45.0033f, 2784.392f, 56.8782f, 103.5999f);
			func_985(43.316f, 2785.903f, 56.8782f, 103.5999f);
			func_985(41.6126f, 2787.36f, 56.8782f, 103.5999f);
			func_985(39.9584f, 2788.773f, 56.8782f, 103.5999f);
			func_985(35.2347f, 2792.135f, 56.8781f, 208.7997f);
			func_985(33.7771f, 2790.379f, 56.8781f, 208.7997f);
			func_985(30.7578f, 2786.8f, 56.8781f, 208.7997f);
			func_985(29.3121f, 2785.045f, 56.8745f, 208.7997f);
			break;
		
		case 95:
			func_985(-332.5679f, 6069.145f, 30.2175f, 152.9999f);
			func_985(-334.2811f, 6070.787f, 30.2212f, 152.9999f);
			func_985(-335.9948f, 6072.454f, 30.2455f, 152.9999f);
			func_985(-337.675f, 6074.252f, 30.2727f, 152.9999f);
			func_985(-339.3682f, 6075.904f, 30.3074f, 152.9999f);
			func_985(-341.0913f, 6077.729f, 30.3114f, 152.9999f);
			func_985(-342.9239f, 6079.522f, 30.3122f, 152.9999f);
			func_985(-344.6985f, 6081.302f, 30.3097f, 152.9999f);
			break;
		
		case 96:
			func_985(1738.422f, 3716.779f, 33.0787f, 6.9999f);
			func_985(1736.207f, 3715.989f, 33.094f, 6.9999f);
			func_985(1748.442f, 3714.17f, 33.0889f, 39.399f);
			func_985(1750.475f, 3715.007f, 33.1067f, 39.399f);
			func_985(1747.18f, 3721.102f, 33.007f, 95.199f);
			func_985(1746.413f, 3723.255f, 32.9738f, 95.199f);
			func_985(1740.67f, 3717.613f, 33.0616f, 8.199f);
			func_985(1733.937f, 3715.08f, 33.1236f, 8.199f);
			break;
		
		case 97:
			func_985(947.9371f, -1452.737f, 30.143f, 331.5991f);
			func_985(950.2141f, -1452.826f, 30.1364f, 331.5991f);
			func_985(952.4588f, -1452.882f, 30.129f, 331.5991f);
			func_985(954.6608f, -1452.869f, 30.1303f, 331.5991f);
			func_985(935.1006f, -1452.701f, 30.1907f, 316.999f);
			func_985(932.5459f, -1452.579f, 30.2194f, 316.999f);
			func_985(929.9319f, -1452.567f, 30.2647f, 316.999f);
			func_985(927.4857f, -1452.446f, 30.3167f, 316.999f);
			break;
		
		case 98:
			func_985(186.6051f, 306.8702f, 104.389f, 162.3999f);
			func_985(184.3881f, 306.7666f, 104.3845f, 162.3999f);
			func_985(182.1681f, 306.6823f, 104.375f, 162.3999f);
			func_985(183.3219f, 296.2871f, 104.3707f, 350.7995f);
			func_985(180.9933f, 296.3411f, 104.3704f, 350.7995f);
			func_985(178.6569f, 296.4709f, 104.3701f, 350.7995f);
			func_985(195.1475f, 304.4284f, 104.4644f, 77.3989f);
			func_985(195.0814f, 301.8218f, 104.5287f, 77.3989f);
			break;
		
		case 99:
			func_985(-31.2801f, -200.3394f, 51.3551f, 5.3995f);
			func_985(-33.3895f, -199.7716f, 51.355f, 5.3995f);
			func_985(-35.4307f, -199.1125f, 51.3549f, 5.3995f);
			func_985(-37.5545f, -198.5244f, 51.3549f, 5.3995f);
			func_985(-17.9628f, -206.2525f, 51.3702f, 29.399f);
			func_985(-14.8043f, -207.5648f, 51.4707f, 29.399f);
			func_985(-11.8482f, -208.6405f, 51.5633f, 29.399f);
			func_985(-9.1304f, -209.4894f, 51.6472f, 29.399f);
			break;
		
		case 100:
			func_985(2478.52f, 4082.137f, 36.8208f, 227.5999f);
			func_985(2477.557f, 4079.946f, 36.8014f, 227.5999f);
			func_985(2465.123f, 4081.35f, 37.0655f, 167.4f);
			func_985(2463.017f, 4082.271f, 37.0653f, 167.4f);
			func_985(2467.7f, 4080.332f, 37.0649f, 167.4f);
			func_985(2469.587f, 4079.538f, 37.061f, 167.4f);
			func_985(2481.354f, 4088.553f, 36.9131f, 209.4f);
			func_985(2482.442f, 4091.023f, 36.9472f, 209.4f);
			break;
		
		case 101:
			func_985(-32.1085f, 6407.398f, 30.4903f, 291.1999f);
			func_985(-29.4917f, 6404.578f, 30.4903f, 291.1999f);
			func_985(-26.4319f, 6401.523f, 30.4903f, 291.1999f);
			func_985(-23.3427f, 6398.638f, 30.4903f, 291.1999f);
			func_985(-20.7035f, 6395.76f, 30.4885f, 291.1999f);
			func_985(-23.7283f, 6412.838f, 30.4904f, 176.5999f);
			func_985(-20.5405f, 6409.805f, 30.4905f, 176.5999f);
			func_985(-17.3045f, 6406.66f, 30.4904f, 176.5999f);
			break;
		
		case 102:
			func_985(-1138.057f, -1572.18f, 3.4157f, 125.9996f);
			func_985(-1142.03f, -1574.983f, 3.4133f, 125.9996f);
			func_985(-1145.05f, -1592.81f, 3.3855f, 306.5991f);
			func_985(-1139.933f, -1589.211f, 3.3978f, 306.5991f);
			func_985(-1124.295f, -1578.776f, 3.3854f, 306.5991f);
			func_985(-1119.954f, -1575.551f, 3.3852f, 306.5991f);
			func_985(-1124.942f, -1562.985f, 3.2916f, 168.9988f);
			func_985(-1127.039f, -1564.395f, 3.292f, 168.9988f);
			break;
		
		default:
			break;
	}
}

void func_985(vector3 vParam0, float fParam3)//Position - 0x87024
{
	if (Global_2404994.f_1685 < 32)
	{
		if (system::vmag(vParam0) <= 0.01f)
		{
			return;
		}
		Global_2404994.f_1686[Global_2404994.f_1685 /*4*/] = { vParam0 };
		Global_2404994.f_1686[Global_2404994.f_1685 /*4*/].f_3 = fParam3;
		Global_2404994.f_1685++;
	}
}

int func_986(vector3 vParam0)//Position - 0x87089
{
	int iVar0;
	
	iVar0 = 0;
	while (iVar0 < 31)
	{
		if (vParam0.y <= 0f)
		{
			vParam0.z = ((Global_2410914[iVar0 /*7*/].f_2 + Global_2410914[iVar0 /*7*/].f_3.f_2) * 0.5f);
		}
		if (func_957(vParam0, &(Global_2410914[iVar0 /*7*/])))
		{
			return iVar0;
		}
		iVar0++;
	}
	return -1;
}

bool func_987()//Position - 0x870E7
{
	if (gameplay::is_bit_set(Global_1632166.f_13, 0) && !Global_2443860.f_5977)
	{
		return false;
	}
	return false;
}

void func_988()//Position - 0x87112
{
	int iVar0;
	
	iVar0 = 0;
	while (iVar0 < 10)
	{
		Global_2404994.f_2258[iVar0 /*3*/] = { 0f, 0f, 0f };
		iVar0++;
	}
}

bool func_989(var uParam0, int iParam1)//Position - 0x8713D
{
	int iVar0;
	vector3 vVar1;
	
	vVar1 = { *uParam0 };
	iVar0 = 0;
	while (iVar0 < 2)
	{
		if (vVar1.y <= 0f)
		{
			vVar1.z = ((Global_2410870[iVar0 /*7*/].f_2 + Global_2410870[iVar0 /*7*/].f_3.f_2) * 0.5f);
		}
		if (func_957(vVar1, &(Global_2410870[iVar0 /*7*/])))
		{
			if (iParam1)
			{
				func_967(&vVar1, Global_2410870[iVar0 /*7*/], Global_2410870[iVar0 /*7*/].f_3, Global_2410870[iVar0 /*7*/].f_6, 1036831949, 0);
				*uParam0 = { vVar1 };
			}
			return true;
		}
		iVar0++;
	}
	return false;
}

bool func_990(vector3 vParam0)//Position - 0x871DA
{
	int iVar0;
	vector3 vVar1;
	
	if (!Global_2404994.f_496)
	{
		if (!Global_2404994.f_43.f_311)
		{
			if (!func_1242(player::player_id(), 1))
			{
				return true;
			}
			if (!func_993(vParam0, 1008981770))
			{
				if (!func_973(&vParam0, 0, 0, 0))
				{
					return true;
				}
				else if (func_973(&vParam0, 0, 1, 0))
				{
					return true;
				}
			}
			else
			{
				iVar0 = func_992(vParam0, 1008981770);
				if (iVar0 > -1)
				{
					vVar1 = { func_991(&(Global_2404994.f_43[iVar0 /*12*/])) };
					if (!func_973(&vVar1, 0, 0, 0))
					{
						if (!func_973(&vParam0, 0, 0, 0))
						{
							return true;
						}
					}
				}
			}
		}
	}
	return false;
}

Vector3 func_991(var uParam0)//Position - 0x87289
{
	switch (uParam0->f_10)
	{
		case 0:
			return *uParam0;
			break;
		
		case 1:
		case 2:
			return *uParam0 + uParam0->f_3 * Vector(0.5f, 0.5f, 0.5f);
			break;
	}
	return *uParam0;
}

int func_992(vector3 vParam0, float fParam3)//Position - 0x872D2
{
	int iVar0;
	
	iVar0 = 0;
	while (iVar0 < 4)
	{
		if (Global_2404994.f_43[iVar0 /*12*/].f_9)
		{
			if (func_961(vParam0, &(Global_2404994.f_43[iVar0 /*12*/]), fParam3, 0, 0))
			{
				return iVar0;
			}
		}
		iVar0++;
	}
	return -1;
}

bool func_993(vector3 vParam0, float fParam3)//Position - 0x8731A
{
	int iVar0;
	
	iVar0 = 0;
	while (iVar0 < 4)
	{
		if (Global_2404994.f_43[iVar0 /*12*/].f_9)
		{
			if (func_961(vParam0, &(Global_2404994.f_43[iVar0 /*12*/]), fParam3, 0, 0))
			{
				return true;
			}
		}
		iVar0++;
	}
	return false;
}

void func_994()//Position - 0x87361
{
	int iVar0;
	struct<4> Var1;
	
	iVar0 = 0;
	while (iVar0 < 32)
	{
		Global_2404994.f_1686[iVar0 /*4*/] = { Var1 };
		iVar0++;
	}
	Global_2404994.f_1685 = 0;
}

void func_995()//Position - 0x87395
{
	if (Global_2404994.f_634 > -1)
	{
		if (network::_0xE64A3CA08DFA37A9(Global_2404994.f_634))
		{
			network::network_remove_entity_area(Global_2404994.f_634);
		}
	}
	Global_2404994.f_634 = -1;
}

int func_996(int iParam0)//Position - 0x873CA
{
	if (!func_1644(iParam0, 0, 1))
	{
		return 0;
	}
	return Global_1589933[iParam0 /*601*/].f_35;
}

var func_997()//Position - 0x873ED
{
	return Global_1738472.f_3;
}

int func_998(int iParam0)//Position - 0x873FB
{
	if (iParam0 == 0)
	{
		return true;
	}
	streaming::request_model(iParam0);
	return streaming::has_model_loaded(iParam0);
}

void func_999(int iParam0, int iParam1)//Position - 0x87419
{
	int iVar0;
	
	func_909(iParam0, &iVar0);
	if (iVar0 >= 0)
	{
		func_907(iVar0, -1, -1);
	}
	func_1000(&(Global_1320588[iParam0 /*140*/]));
	Global_2097152[func_371() /*10730*/].f_7546.f_1001 = network::_get_posix_time();
	func_890(iParam0, &(Global_1320588[iParam0 /*140*/]), 0, iParam1, 0, 0);
}

void func_1000(var uParam0)//Position - 0x8746C
{
	func_1001(uParam0);
	uParam0->f_101 = 0;
	uParam0->f_102 = 0;
	uParam0->f_103 = 0;
	StringCopy(&(uParam0->f_104), "", 64);
	StringCopy(&(uParam0->f_120), "", 64);
	uParam0->f_136 = 0;
	uParam0->f_137 = 0;
	uParam0->f_138 = 0;
	uParam0->f_139 = 0;
}

void func_1001(var uParam0)//Position - 0x874B1
{
	func_853(uParam0);
	uParam0->f_78 = -1;
	uParam0->f_79 = 0f;
	uParam0->f_96 = 1;
	uParam0->f_97 = 0;
	uParam0->f_98 = 132;
	uParam0->f_80 = 0;
	uParam0->f_80.f_1 = 0;
	uParam0->f_80.f_2 = 0;
	uParam0->f_80.f_3 = 0;
	uParam0->f_80.f_4 = 0;
	uParam0->f_80.f_5 = 0;
	uParam0->f_80.f_6 = 0;
	uParam0->f_80.f_7 = 0;
	uParam0->f_80.f_8 = 0;
	uParam0->f_80.f_9 = 0;
	uParam0->f_80.f_10 = 0;
	uParam0->f_80.f_11 = 0;
	uParam0->f_80.f_12 = 0;
	uParam0->f_94 = 0;
	uParam0->f_93 = 0;
	uParam0->f_95 = -1;
}

int func_1002(int iParam0)//Position - 0x87541
{
	int iVar0;
	int iVar1;
	
	if (Global_2482045)
	{
		return 1;
	}
	iVar0 = 1;
	iVar1 = network::_get_posix_time();
	if (iParam0 == joaat("btype3"))
	{
		if ((!Global_262145.f_5431 && !Global_262145.f_11409) && iVar1 < Global_262145.f_11410)
		{
			iVar0 = 0;
		}
	}
	if (iParam0 == joaat("faction3"))
	{
		if (!Global_262145.f_12221 && iVar1 < Global_262145.f_12233)
		{
			iVar0 = 0;
		}
	}
	else if (iParam0 == joaat("virgo3") || iParam0 == joaat("virgo2"))
	{
		if (!Global_262145.f_12217 && iVar1 < Global_262145.f_12229)
		{
			iVar0 = 0;
		}
	}
	else if (iParam0 == joaat("sabregt2"))
	{
		if (!Global_262145.f_12218 && iVar1 < Global_262145.f_12230)
		{
			iVar0 = 0;
		}
	}
	else if (iParam0 == joaat("tornado5"))
	{
		if (!Global_262145.f_12219 && iVar1 < Global_262145.f_12231)
		{
			iVar0 = 0;
		}
	}
	else if (iParam0 == joaat("minivan2"))
	{
		if (!Global_262145.f_12220 && iVar1 < Global_262145.f_12232)
		{
			iVar0 = 0;
		}
	}
	else if (iParam0 == joaat("slamvan3"))
	{
		if (!Global_262145.f_12222 && iVar1 < Global_262145.f_12234)
		{
			iVar0 = 0;
		}
	}
	if (iParam0 == joaat("prototipo"))
	{
		if (!Global_262145.f_12223 && iVar1 < Global_262145.f_12226)
		{
			iVar0 = 0;
		}
	}
	else if (iParam0 == joaat("seven70"))
	{
		if (!Global_262145.f_12224 && iVar1 < Global_262145.f_12227)
		{
			iVar0 = 0;
		}
	}
	else if (iParam0 == joaat("pfister811"))
	{
		if (!Global_262145.f_12225 && iVar1 < Global_262145.f_12228)
		{
			iVar0 = 0;
		}
	}
	if (iParam0 == joaat("bf400"))
	{
		if (!Global_262145.f_14848 && iVar1 < Global_262145.f_14813)
		{
			iVar0 = 0;
		}
	}
	else if (iParam0 == joaat("brioso"))
	{
		if (!Global_262145.f_14843 && iVar1 < Global_262145.f_14808)
		{
			iVar0 = 0;
		}
	}
	else if (iParam0 == joaat("cliffhanger"))
	{
		if (!Global_262145.f_14847 && iVar1 < Global_262145.f_14812)
		{
			iVar0 = 0;
		}
	}
	else if (iParam0 == joaat("contender"))
	{
		if (!Global_262145.f_14846 && iVar1 < Global_262145.f_14811)
		{
			iVar0 = 0;
		}
	}
	else if (iParam0 == joaat("le7b"))
	{
		if (!Global_262145.f_14840 && iVar1 < Global_262145.f_14805)
		{
			iVar0 = 0;
		}
	}
	else if (iParam0 == joaat("omnis"))
	{
		if (!Global_262145.f_14841 && iVar1 < Global_262145.f_14806)
		{
			iVar0 = 0;
		}
	}
	else if (iParam0 == joaat("trophytruck"))
	{
		if (!Global_262145.f_14844 && iVar1 < Global_262145.f_14809)
		{
			iVar0 = 0;
		}
	}
	else if (iParam0 == joaat("trophytruck2"))
	{
		if (!Global_262145.f_14845 && iVar1 < Global_262145.f_14810)
		{
			iVar0 = 0;
		}
	}
	else if (iParam0 == joaat("tropos"))
	{
		if (!Global_262145.f_14842 && iVar1 < Global_262145.f_14807)
		{
			iVar0 = 0;
		}
	}
	else if (iParam0 == joaat("gargoyle"))
	{
		if (!Global_262145.f_14850 && iVar1 < Global_262145.f_14815)
		{
			iVar0 = 0;
		}
	}
	else if (iParam0 == joaat("rallytruck"))
	{
		if (!Global_262145.f_14851 && iVar1 < Global_262145.f_14816)
		{
			iVar0 = 0;
		}
	}
	else if (iParam0 == joaat("tampa2"))
	{
		if (!Global_262145.f_14839 && iVar1 < Global_262145.f_14804)
		{
			iVar0 = 0;
		}
	}
	else if (iParam0 == joaat("tyrus"))
	{
		if (!Global_262145.f_14838 && iVar1 < Global_262145.f_14803)
		{
			iVar0 = 0;
		}
	}
	else if (iParam0 == joaat("sheava"))
	{
		if (!Global_262145.f_14837 && iVar1 < Global_262145.f_14802)
		{
			iVar0 = 0;
		}
	}
	else if (iParam0 == joaat("lynx"))
	{
		if (!Global_262145.f_14849 && iVar1 < Global_262145.f_14814)
		{
			iVar0 = 0;
		}
	}
	else if (iParam0 == joaat("stalion2"))
	{
		if (!Global_262145.f_14852 && iVar1 < Global_262145.f_14817)
		{
			iVar0 = 0;
		}
	}
	else if (iParam0 == joaat("gauntlet2"))
	{
		if (!Global_262145.f_14853 && iVar1 < Global_262145.f_14818)
		{
			iVar0 = 0;
		}
	}
	else if (iParam0 == joaat("dominator2"))
	{
		if (!Global_262145.f_14854 && iVar1 < Global_262145.f_14819)
		{
			iVar0 = 0;
		}
	}
	else if (iParam0 == joaat("buffalo3"))
	{
		if (!Global_262145.f_14855 && iVar1 < Global_262145.f_14820)
		{
			iVar0 = 0;
		}
	}
	if (iParam0 == joaat("defiler"))
	{
		if (!Global_262145.f_15000 && iVar1 < Global_262145.f_15022)
		{
			iVar0 = 0;
		}
	}
	else if (iParam0 == joaat("nightblade"))
	{
		if (!Global_262145.f_15001 && iVar1 < Global_262145.f_15023)
		{
			iVar0 = 0;
		}
	}
	else if (iParam0 == joaat("zombiea"))
	{
		if (!Global_262145.f_15002 && iVar1 < Global_262145.f_15024)
		{
			iVar0 = 0;
		}
	}
	else if (iParam0 == joaat("esskey"))
	{
		if (!Global_262145.f_15003 && iVar1 < Global_262145.f_15025)
		{
			iVar0 = 0;
		}
	}
	else if (iParam0 == joaat("avarus"))
	{
		if (!Global_262145.f_15004 && iVar1 < Global_262145.f_15026)
		{
			iVar0 = 0;
		}
	}
	else if (iParam0 == joaat("zombieb"))
	{
		if (!Global_262145.f_15005 && iVar1 < Global_262145.f_15027)
		{
			iVar0 = 0;
		}
	}
	else if (iParam0 == joaat("hakuchou2"))
	{
		if (!Global_262145.f_15007 && iVar1 < Global_262145.f_15028)
		{
			iVar0 = 0;
		}
	}
	else if (iParam0 == joaat("vortex"))
	{
		if (!Global_262145.f_15008 && iVar1 < Global_262145.f_15029)
		{
			iVar0 = 0;
		}
	}
	else if (iParam0 == joaat("shotaro"))
	{
		if (!Global_262145.f_15009 && iVar1 < Global_262145.f_15030)
		{
			iVar0 = 0;
		}
	}
	else if (iParam0 == joaat("chimera"))
	{
		if (!Global_262145.f_15010 && iVar1 < Global_262145.f_15031)
		{
			iVar0 = 0;
		}
	}
	else if (iParam0 == joaat("raptor"))
	{
		if (!Global_262145.f_15011 && iVar1 < Global_262145.f_15032)
		{
			iVar0 = 0;
		}
	}
	else if (iParam0 == joaat("daemon2"))
	{
		if (!Global_262145.f_15012 && iVar1 < Global_262145.f_15033)
		{
			iVar0 = 0;
		}
	}
	else if (iParam0 == joaat("blazer4"))
	{
		if (!Global_262145.f_15013 && iVar1 < Global_262145.f_15034)
		{
			iVar0 = 0;
		}
	}
	else if (iParam0 == joaat("tornado6"))
	{
		if (!Global_262145.f_15019 && iVar1 < Global_262145.f_15041)
		{
			iVar0 = 0;
		}
	}
	else if (iParam0 == joaat("youga2"))
	{
		if (!Global_262145.f_15016 && iVar1 < Global_262145.f_15037)
		{
			iVar0 = 0;
		}
	}
	else if (iParam0 == joaat("wolfsbane"))
	{
		if (!Global_262145.f_15017 && iVar1 < Global_262145.f_15038)
		{
			iVar0 = 0;
		}
	}
	else if (iParam0 == joaat("faggio3"))
	{
		if (!Global_262145.f_15018 && iVar1 < Global_262145.f_15039)
		{
			iVar0 = 0;
		}
	}
	else if (iParam0 == joaat("faggio"))
	{
		if (!Global_262145.f_15006 && iVar1 < Global_262145.f_15040)
		{
			iVar0 = 0;
		}
	}
	else if (iParam0 == joaat("bagger"))
	{
		if (!Global_262145.f_15020 && iVar1 < Global_262145.f_15042)
		{
			iVar0 = 0;
		}
	}
	else if (iParam0 == joaat("sanctus"))
	{
		if (!Global_262145.f_15014 && iVar1 < Global_262145.f_15035)
		{
			iVar0 = 0;
		}
	}
	else if (iParam0 == joaat("manchez"))
	{
		if (!Global_262145.f_15015 && iVar1 < Global_262145.f_15036)
		{
			iVar0 = 0;
		}
	}
	else if (iParam0 == joaat("ratbike"))
	{
		if (!Global_262145.f_15021 && iVar1 < Global_262145.f_15043)
		{
			iVar0 = 0;
		}
	}
	if (iParam0 == joaat("voltic2"))
	{
		if (!Global_262145.f_16649 && iVar1 < Global_262145.f_16690)
		{
			iVar0 = 0;
		}
	}
	else if (iParam0 == joaat("ruiner2"))
	{
		if (!Global_262145.f_16650 && iVar1 < Global_262145.f_16691)
		{
			iVar0 = 0;
		}
	}
	else if (iParam0 == joaat("dune4"))
	{
		if (!Global_262145.f_16651 && iVar1 < Global_262145.f_16692)
		{
			iVar0 = 0;
		}
	}
	else if (iParam0 == joaat("dune5"))
	{
		if (!Global_262145.f_16652 && iVar1 < Global_262145.f_16693)
		{
			iVar0 = 0;
		}
	}
	else if (iParam0 == joaat("phantom2"))
	{
		if (!Global_262145.f_16653 && iVar1 < Global_262145.f_16694)
		{
			iVar0 = 0;
		}
	}
	else if (iParam0 == joaat("technical2"))
	{
		if (!Global_262145.f_16654 && iVar1 < Global_262145.f_16695)
		{
			iVar0 = 0;
		}
	}
	else if (iParam0 == joaat("boxville5"))
	{
		if (!Global_262145.f_16655 && iVar1 < Global_262145.f_16696)
		{
			iVar0 = 0;
		}
	}
	else if (iParam0 == joaat("wastelander"))
	{
		if (!Global_262145.f_16656 && iVar1 < Global_262145.f_16697)
		{
			iVar0 = 0;
		}
	}
	else if (iParam0 == joaat("blazer5"))
	{
		if (!Global_262145.f_16657 && iVar1 < Global_262145.f_16698)
		{
			iVar0 = 0;
		}
	}
	else if (iParam0 == joaat("comet2"))
	{
		if (!Global_262145.f_16658 && iVar1 < Global_262145.f_16699)
		{
			iVar0 = 0;
		}
	}
	else if (iParam0 == joaat("comet3"))
	{
		if (!Global_262145.f_16659 && iVar1 < Global_262145.f_16700)
		{
			iVar0 = 0;
		}
	}
	else if (iParam0 == joaat("diablous"))
	{
		if (!Global_262145.f_16660 && iVar1 < Global_262145.f_16701)
		{
			iVar0 = 0;
		}
	}
	else if (iParam0 == joaat("diablous2"))
	{
		if (!Global_262145.f_16661 && iVar1 < Global_262145.f_16702)
		{
			iVar0 = 0;
		}
	}
	else if (iParam0 == joaat("elegy"))
	{
		if (!Global_262145.f_16662 && iVar1 < Global_262145.f_16703)
		{
			iVar0 = 0;
		}
	}
	else if (iParam0 == joaat("elegy2"))
	{
		if (!Global_262145.f_16663 && iVar1 < Global_262145.f_16704)
		{
			iVar0 = 0;
		}
	}
	else if (iParam0 == joaat("fcr"))
	{
		if (!Global_262145.f_16664 && iVar1 < Global_262145.f_16705)
		{
			iVar0 = 0;
		}
	}
	else if (iParam0 == joaat("fcr2"))
	{
		if (!Global_262145.f_16665 && iVar1 < Global_262145.f_16706)
		{
			iVar0 = 0;
		}
	}
	else if (iParam0 == joaat("italigtb"))
	{
		if (!Global_262145.f_16666 && iVar1 < Global_262145.f_16707)
		{
			iVar0 = 0;
		}
	}
	else if (iParam0 == joaat("italigtb2"))
	{
		if (!Global_262145.f_16667 && iVar1 < Global_262145.f_16708)
		{
			iVar0 = 0;
		}
	}
	else if (iParam0 == joaat("nero"))
	{
		if (!Global_262145.f_16668 && iVar1 < Global_262145.f_16709)
		{
			iVar0 = 0;
		}
	}
	else if (iParam0 == joaat("nero2"))
	{
		if (!Global_262145.f_16669 && iVar1 < Global_262145.f_16710)
		{
			iVar0 = 0;
		}
	}
	else if (iParam0 == joaat("penetrator"))
	{
		if (!Global_262145.f_16670 && iVar1 < Global_262145.f_16711)
		{
			iVar0 = 0;
		}
	}
	else if (iParam0 == joaat("specter"))
	{
		if (!Global_262145.f_16671 && iVar1 < Global_262145.f_16712)
		{
			iVar0 = 0;
		}
	}
	else if (iParam0 == joaat("specter2"))
	{
		if (!Global_262145.f_16672 && iVar1 < Global_262145.f_16713)
		{
			iVar0 = 0;
		}
	}
	else if (iParam0 == joaat("tempesta"))
	{
		if (!Global_262145.f_16673 && iVar1 < Global_262145.f_16714)
		{
			iVar0 = 0;
		}
	}
	return iVar0;
}

bool func_1003(int iParam0, int iParam1)//Position - 0x881E2
{
	int iVar0;
	struct<2> Var1;
	
	if (iParam0 == 0)
	{
		return false;
	}
	if (!streaming::is_model_a_vehicle(iParam0))
	{
		return false;
	}
	if ((((((((((((iParam0 == joaat("dodo") || iParam0 == joaat("dukes")) || iParam0 == joaat("dukes2")) || (iParam0 == joaat("dominator2") && !network::network_is_game_in_progress())) || (iParam0 == joaat("buffalo3") && !network::network_is_game_in_progress())) || (iParam0 == joaat("gauntlet2") && !network::network_is_game_in_progress())) || iParam0 == joaat("blimp2")) || iParam0 == joaat("stalion")) || (iParam0 == joaat("stalion2") && !network::network_is_game_in_progress())) || iParam0 == joaat("submersible2")) || iParam0 == joaat("marshall")) || iParam0 == joaat("blista2")) || iParam0 == joaat("blista3"))
	{
		if (!func_116())
		{
			return false;
		}
	}
	else
	{
		iVar0 = 0;
		while (iVar0 < dlc1::get_num_dlc_vehicles())
		{
			if (dlc1::get_dlc_vehicle_data(iVar0, &Var1))
			{
				if (iParam0 == Var1.f_1)
				{
					if (dlc1::_is_dlc_data_empty(Var1))
					{
						return false;
					}
				}
			}
			iVar0++;
		}
	}
	if (iParam0 == joaat("blimp"))
	{
		if ((((!func_1006() && !func_118()) && !func_117()) && !func_1005()) && !func_116())
		{
			return false;
		}
	}
	if ((iParam0 == joaat("hotknife") || iParam0 == joaat("carbonrs")) || iParam0 == joaat("khamelion"))
	{
		if ((gameplay::is_durango_version() || gameplay::is_pc_version()) || gameplay::is_orbis_version())
		{
		}
		else if (!func_117())
		{
			return false;
		}
	}
	if (iParam1)
	{
		if (!func_1002(iParam0))
		{
			return false;
		}
	}
	if (!func_1004(iParam0))
	{
		return false;
	}
	return true;
}

bool func_1004(int iParam0)//Position - 0x883D2
{
	int iVar0;
	var uVar1;
	char cVar2[64];
	
	if (!func_573())
	{
		return true;
	}
	unk3::_0x897433D292B44130(&iVar0, &uVar1);
	if (iVar0 == 4)
	{
		return true;
	}
	switch (iParam0)
	{
		case joaat("dune4"):
			StringCopy(&cVar2, "VE_DUNE4_t0_v3", 64);
			break;
		
		case joaat("voltic2"):
			StringCopy(&cVar2, "VE_VOLTIC2_t0_v3", 64);
			break;
		
		case joaat("ruiner2"):
			StringCopy(&cVar2, "VE_RUINER2_t0_v3", 64);
			break;
		
		case joaat("phantom2"):
			StringCopy(&cVar2, "VE_PHANTOM2_t0_v3", 64);
			break;
		
		case joaat("technical2"):
			StringCopy(&cVar2, "VE_TECHNICAL2_t0_v3", 64);
			break;
		
		case joaat("boxville5"):
			StringCopy(&cVar2, "VE_BOXVILLE5_t0_v3", 64);
			break;
		
		case joaat("wastelander"):
			StringCopy(&cVar2, "VE_WASTELANDER_t0_v3", 64);
			break;
		
		case joaat("blazer5"):
			StringCopy(&cVar2, "VE_BLAZER5_t0_v3", 64);
			break;
		
		default:
			return true;
			break;
	}
	if (!mobile::_0xBD4D7EAF8A30F637(&cVar2))
	{
		return false;
	}
	return true;
}

bool func_1005()//Position - 0x884A6
{
	return false;
}

bool func_1006()//Position - 0x884AF
{
	if (dlc2::is_dlc_present(-1226939934))
	{
		return true;
	}
	return false;
}

bool func_1007(int iParam0)//Position - 0x884C8
{
	if (((((((iParam0 == joaat("blazer5") || iParam0 == joaat("boxville5")) || iParam0 == joaat("dune5")) || iParam0 == joaat("phantom2")) || iParam0 == joaat("ruiner2")) || iParam0 == joaat("technical2")) || iParam0 == joaat("voltic2")) || iParam0 == joaat("wastelander"))
	{
		return true;
	}
	switch (iParam0)
	{
		case joaat("airbus"):
		case joaat("airtug"):
		case joaat("ambulance"):
		case joaat("annihilator"):
		case joaat("armytanker"):
		case joaat("armytrailer"):
		case joaat("asea2"):
		case joaat("baletrailer"):
		case joaat("barracks"):
		case joaat("barracks2"):
		case joaat("barracks3"):
		case joaat("benson"):
		case joaat("besra"):
		case joaat("biff"):
		case joaat("blimp"):
		case joaat("blimp2"):
		case joaat("blista3"):
		case joaat("boattrailer"):
		case joaat("boxville"):
		case joaat("boxville2"):
		case joaat("boxville3"):
		case joaat("boxville4"):
		case joaat("bulldozer"):
		case joaat("burrito"):
		case joaat("burrito2"):
		case joaat("burrito3"):
		case joaat("burrito4"):
		case joaat("burrito5"):
		case joaat("bus"):
		case joaat("buzzard"):
		case joaat("buzzard2"):
		case joaat("caddy"):
		case joaat("caddy2"):
		case joaat("camper"):
		case joaat("cargobob"):
		case joaat("cargobob2"):
		case joaat("cargobob3"):
		case joaat("cargoplane"):
		case joaat("coach"):
		case joaat("crusader"):
		case joaat("cuban800"):
		case joaat("cutter"):
		case joaat("dilettante2"):
		case joaat("dinghy"):
		case joaat("dinghy2"):
		case joaat("dinghy3"):
		case joaat("docktrailer"):
		case joaat("docktug"):
		case joaat("dodo"):
		case joaat("dukes2"):
		case joaat("dump"):
		case joaat("dune2"):
		case joaat("duster"):
		case joaat("emperor3"):
		case joaat("fbi"):
		case joaat("fbi2"):
		case 1938952078:
		case joaat("fixter"):
		case joaat("flatbed"):
		case joaat("forklift"):
		case joaat("freight"):
		case joaat("freightcar"):
		case joaat("freightcont1"):
		case joaat("freightcont2"):
		case joaat("freightgrain"):
		case joaat("frogger"):
		case joaat("frogger2"):
		case joaat("gburrito"):
		case joaat("graintrailer"):
		case joaat("handler"):
		case joaat("hauler"):
		case joaat("hydra"):
		case joaat("insurgent"):
		case joaat("jet"):
		case joaat("jetmax"):
		case joaat("journey"):
		case joaat("lazer"):
		case joaat("lguard"):
		case joaat("limo2"):
		case joaat("luxor"):
		case joaat("luxor2"):
		case joaat("mammatus"):
		case joaat("marshall"):
		case joaat("marquis"):
		case joaat("maverick"):
		case joaat("mesa2"):
		case 868868440:
		case joaat("monster"):
		case joaat("miljet"):
		case joaat("mixer"):
		case joaat("mixer2"):
		case joaat("mower"):
		case joaat("mule"):
		case joaat("mule2"):
		case joaat("mule3"):
		case joaat("packer"):
		case joaat("pbus"):
		case joaat("phantom"):
		case joaat("police"):
		case joaat("policeb"):
		case joaat("policet"):
		case joaat("policeold1"):
		case joaat("policeold2"):
		case joaat("police2"):
		case joaat("police3"):
		case joaat("police4"):
		case joaat("polmav"):
		case joaat("pony"):
		case joaat("pony2"):
		case joaat("pounder"):
		case joaat("pranger"):
		case joaat("predator"):
		case joaat("proptrailer"):
		case joaat("raketrailer"):
		case joaat("rancherxl2"):
		case joaat("rentalbus"):
		case joaat("rhino"):
		case joaat("riot"):
		case joaat("ripley"):
		case joaat("rubble"):
		case joaat("rumpo2"):
		case joaat("sadler2"):
		case joaat("savage"):
		case joaat("scrap"):
		case joaat("seashark"):
		case joaat("seashark2"):
		case joaat("shamal"):
		case joaat("sheriff"):
		case joaat("sheriff2"):
		case joaat("slamvan2"):
		case joaat("skylift"):
		case joaat("speeder"):
		case joaat("speedo2"):
		case joaat("squalo"):
		case joaat("stockade"):
		case joaat("stockade3"):
		case joaat("stretch"):
		case joaat("stunt"):
		case joaat("submersible"):
		case joaat("submersible2"):
		case joaat("suntrap"):
		case joaat("swift"):
		case joaat("swift2"):
		case joaat("taco"):
		case joaat("tanker"):
		case joaat("tanker2"):
		case joaat("tankercar"):
		case joaat("taxi"):
		case joaat("technical"):
		case joaat("towtruck"):
		case joaat("towtruck2"):
		case joaat("tiptruck"):
		case joaat("tiptruck2"):
		case joaat("titan"):
		case joaat("toro"):
		case joaat("tourbus"):
		case joaat("tr2"):
		case joaat("tr3"):
		case joaat("tr4"):
		case joaat("tractor"):
		case joaat("tractor2"):
		case joaat("tractor3"):
		case joaat("trailerlogs"):
		case joaat("trailers"):
		case joaat("trailers2"):
		case joaat("trailers3"):
		case joaat("trailersmall"):
		case joaat("trash"):
		case joaat("trash2"):
		case joaat("trflat"):
		case joaat("tropic"):
		case joaat("tvtrailer"):
		case joaat("utillitruck"):
		case joaat("utillitruck2"):
		case joaat("utillitruck3"):
		case joaat("valkyrie"):
		case joaat("velum"):
		case joaat("velum2"):
		case joaat("vestra"):
		case joaat("cargobob4"):
		case joaat("dinghy4"):
		case joaat("seashark3"):
		case joaat("speeder2"):
		case joaat("toro2"):
		case joaat("tropic2"):
		case joaat("supervolito"):
		case joaat("supervolito2"):
		case joaat("valkyrie2"):
		case joaat("dune4"):
			return false;
			break;
	}
	if (((!vehicle::is_this_model_a_car(iParam0) && !vehicle::is_this_model_a_bike(iParam0)) && !vehicle::is_this_model_a_quadbike(iParam0)) && !vehicle::is_this_model_a_bicycle(iParam0))
	{
		return false;
	}
	return true;
}

void func_1008(int iParam0)//Position - 0x889F0
{
	if (func_1011(&(Global_1320588[iParam0 /*140*/].f_66)))
	{
		func_1009(iParam0);
	}
}

void func_1009(int iParam0)//Position - 0x88A0F
{
	func_1010(&(Global_1320588[iParam0 /*140*/].f_66));
	func_890(iParam0, &(Global_1320588[iParam0 /*140*/]), 0, -1, 0, 0);
}

void func_1010(var uParam0)//Position - 0x88A38
{
	switch (*uParam0)
	{
		case joaat("bison2"):
		case joaat("bison3"):
			*uParam0 = joaat("bison");
			break;
		
		case joaat("speedo2"):
			*uParam0 = joaat("speedo");
			break;
		
		case joaat("burrito"):
		case joaat("burrito2"):
		case joaat("burrito4"):
		case joaat("burrito5"):
			*uParam0 = joaat("burrito3");
			break;
	}
}

bool func_1011(var uParam0)//Position - 0x88A93
{
	switch (*uParam0)
	{
		case joaat("bison2"):
		case joaat("bison3"):
		case joaat("speedo2"):
		case joaat("burrito"):
		case joaat("burrito2"):
		case joaat("burrito4"):
		case joaat("burrito5"):
			return true;
			break;
	}
	return false;
}

bool func_1012()//Position - 0x88AD5
{
	if (func_1015(player::player_id()) || func_1014(player::player_id()))
	{
		if (func_1013() == 25)
		{
			return true;
		}
	}
	return false;
}

var func_1013()//Position - 0x88B04
{
	return Global_1589933[player::player_id() /*601*/].f_187;
}

int func_1014(int iParam0)//Position - 0x88B19
{
	return Global_2421621[iParam0 /*358*/].f_118 == 7;
}

int func_1015(int iParam0)//Position - 0x88B2E
{
	return Global_2421621[iParam0 /*358*/].f_118 == 2;
}

bool func_1016()//Position - 0x88B43
{
	if (cutscene::is_cutscene_playing() || network::network_is_in_mp_cutscene())
	{
		return true;
	}
	return false;
}

int func_1017(int iParam0)//Position - 0x88B61
{
	if (gameplay::get_hash_key(script::get_this_script_name()) != joaat("freemode"))
	{
	}
	else if (func_1018(Global_2421621[player::player_id() /*358*/].f_48) || iParam0 == 0)
	{
		return Global_2421621[player::player_id() /*358*/].f_48;
	}
	return 0;
}

int func_1018(int iParam0)//Position - 0x88BAB
{
	if (network::network_does_network_id_exist(iParam0))
	{
		return !func_826(network::net_to_veh(iParam0));
	}
	return false;
}

bool func_1019()//Position - 0x88BCB
{
	if (func_1022(2) || func_1022(1))
	{
		return true;
	}
	return false;
}

void func_1020(int iParam0)//Position - 0x88BEB
{
	if (iParam0 < 32)
	{
		if (!gameplay::is_bit_set(Global_2433082.f_501.f_1, iParam0))
		{
			gameplay::set_bit(&(Global_2433082.f_501.f_1), iParam0);
		}
	}
	else if (!gameplay::is_bit_set(Global_2433082.f_501.f_2, (iParam0 - 32)))
	{
		gameplay::set_bit(&(Global_2433082.f_501.f_2), (iParam0 - 32));
	}
}

void func_1021(int iParam0, int iParam1, int iParam2, int iParam3, int iParam4, int iParam5, int iParam6)//Position - 0x88C47
{
	if (func_1022(35))
	{
		iParam0 = true;
	}
	if (iParam0)
	{
		func_1020(2);
	}
	else
	{
		func_1020(1);
	}
	if (iParam1)
	{
		func_1020(11);
	}
	if (iParam2)
	{
		func_1020(32);
		if (iParam3)
		{
			if (gameplay::is_bit_set(Global_1320588[func_1023() /*140*/].f_101, 0))
			{
				func_1020(33);
			}
		}
		else
		{
			func_911(33);
		}
	}
	else if (iParam5)
	{
		func_1020(37);
	}
	if (iParam4)
	{
		func_1020(36);
	}
	if (func_1022(36))
	{
		if (func_1022(2))
		{
			func_911(36);
		}
	}
	if (iParam6)
	{
		func_1020(38);
	}
	if (network::network_is_game_in_progress())
	{
		Global_2494149.f_353 = network::get_network_time();
	}
}

int func_1022(int iParam0)//Position - 0x88CFB
{
	if (iParam0 < 32)
	{
		return gameplay::is_bit_set(Global_2433082.f_501.f_1, iParam0);
	}
	return gameplay::is_bit_set(Global_2433082.f_501.f_2, (iParam0 - 32));
}

var func_1023()//Position - 0x88D31
{
	return Global_2097152[func_371() /*10730*/].f_7546.f_2;
}

bool func_1024()//Position - 0x88D49
{
	if (func_1023() > -1 && func_1023() < 158)
	{
		if (Global_2404994.f_43.f_66)
		{
			if (!gameplay::is_bit_set(Global_1320588[func_1023() /*140*/].f_101, 1) && !gameplay::is_bit_set(Global_1320588[func_1023() /*140*/].f_101, 6))
			{
				return true;
			}
		}
	}
	return false;
}

Vector3 func_1025(int iParam0, vector3 vParam1)//Position - 0x88DA2
{
	vector3 vVar0;
	vector3 vVar3;
	
	if (vehicle::is_this_model_a_boat(iParam0))
	{
		return vParam1;
	}
	func_803(iParam0, &vVar0, &vVar3, 1086324736, 1080033280, 1077936128);
	vParam1.z = (vParam1.y + ((vVar3.y - vVar0.y) * 0.5f));
	return vParam1;
}

bool func_1026(vector3 vParam0, float fParam3, int iParam4, int iParam5, int iParam6, int iParam7, int iParam8, int iParam9)//Position - 0x88DEF
{
	int iVar0;
	int iVar1;
	
	iVar0 = 0;
	while (iVar0 < 32)
	{
		iVar1 = iVar0;
		if ((iParam8 == 1 && player::player_id() != iVar1) || iParam8 == 0)
		{
			if (func_1644(iVar1, iParam4, iParam5))
			{
				if (network::_0x9DE986FC9A87C474(player::player_id(), iVar1))
				{
					if (!iParam7 || (!ped::is_ped_injured(player::get_player_ped(iVar1)) && func_931(iVar1)))
					{
						if ((!iParam6 || (iParam6 == 1 && player::get_player_team(player::player_id()) != player::get_player_team(iVar1))) || player::get_player_team(player::player_id()) == -1)
						{
							if (((player::get_player_team(player::player_id()) == -1 && iParam9) && iParam6) && func_929(iVar1))
							{
							}
							else if (entity::does_entity_exist(player::get_player_ped(iVar1)))
							{
								if (gameplay::get_distance_between_coords(func_640(iVar1), vParam0, 1) < fParam3)
								{
									return true;
								}
							}
						}
					}
				}
			}
		}
		iVar0++;
	}
	return false;
}

bool func_1027(int iParam0)//Position - 0x88EEB
{
	if (entity::does_entity_exist(iParam0))
	{
		if (!entity::is_entity_dead(iParam0, 0))
		{
			if (!entity::is_entity_a_mission_entity(iParam0) || entity::does_entity_belong_to_this_script(iParam0, 1))
			{
				if (vehicle::is_vehicle_driveable(iParam0, 0))
				{
					if (network::network_has_control_of_entity(iParam0))
					{
						if (func_1028(iParam0, 0, 0, 0, 0, 0, 1, 0))
						{
							return true;
						}
					}
				}
			}
		}
	}
	return false;
}

bool func_1028(int iParam0, int iParam1, int iParam2, int iParam3, int iParam4, int iParam5, int iParam6, int iParam7)//Position - 0x88F46
{
	int iVar0;
	int iVar1;
	int iVar2;
	
	iVar1 = vehicle::get_vehicle_max_number_of_passengers(iParam0) + 1;
	if (iParam4 || !entity::is_entity_dead(iParam0, 0))
	{
		iVar0 = 0;
		while (iVar0 < iVar1)
		{
			iVar2 = func_1029(iParam0, (iVar0 - 1), iParam6, iParam7);
			if (entity::does_entity_exist(iVar2))
			{
				if (iParam3 && iVar2 == player::player_ped_id())
				{
				}
				else if (iParam2)
				{
					if (!ped::is_ped_injured(iVar2))
					{
						if (ped::is_ped_a_player(iVar2))
						{
							if (player::get_player_wanted_level(network::_network_get_ped_player(iVar2)) == 0)
							{
								if (!iParam5)
								{
									return false;
								}
							}
							else
							{
								return false;
							}
						}
					}
					else if (iParam1 == 0)
					{
						return false;
					}
				}
				else if (iParam1 == 0)
				{
					return false;
				}
				else if (!ped::is_ped_injured(iVar2))
				{
					return false;
				}
			}
			iVar0++;
		}
	}
	return true;
}

int func_1029(int iParam0, int iParam1, int iParam2, int iParam3)//Position - 0x8900E
{
	int iVar0;
	
	if (!vehicle::is_vehicle_seat_free(iParam0, iParam1, iParam3))
	{
		iVar0 = vehicle::get_ped_in_vehicle_seat(iParam0, iParam1, iParam3);
	}
	if (iParam2)
	{
		if (!entity::does_entity_exist(iVar0) && !entity::is_entity_dead(iParam0, 0))
		{
			iVar0 = vehicle::get_last_ped_in_vehicle_seat(iParam0, iParam1);
			if (!entity::is_entity_dead(iVar0, 0))
			{
				if (ai::get_script_task_status(iVar0, 451360105) == 1 || ai::get_script_task_status(iVar0, -828834893) == 1)
				{
					if (system::vdist(entity::get_entity_coords(iParam0, 0), entity::get_entity_coords(iVar0, 0)) < 10f)
					{
						return iVar0;
					}
				}
			}
			iVar0 = -1;
		}
	}
	return iVar0;
}

bool func_1030(int iParam0)//Position - 0x890A9
{
	if (func_1644(iParam0, 1, 1))
	{
		if (ped::is_ped_in_any_vehicle(player::get_player_ped(iParam0), 0))
		{
			if (vehicle::is_vehicle_driveable(ped::get_vehicle_ped_is_in(player::get_player_ped(iParam0), 0), 0))
			{
				return true;
			}
			else
			{
				return false;
			}
		}
		else
		{
			return false;
		}
	}
	return false;
}

bool func_1031(var uParam0)//Position - 0x890F3
{
	int iVar0;
	int iVar1;
	
	if (!func_1033())
	{
		iVar0 = 0;
		while (iVar0 < 32)
		{
			iVar1 = iVar0;
			if (network::network_is_player_active(iVar1))
			{
				if (func_1644(iVar1, 0, 1))
				{
					if (!iVar1 == player::player_id())
					{
						if (player::get_player_team(iVar1) == player::get_player_team(player::player_id()))
						{
							if (network::_0x9DE986FC9A87C474(player::player_id(), iVar1))
							{
								*uParam0 = iVar1;
								return true;
							}
						}
					}
				}
			}
			iVar0++;
		}
		*uParam0 = -1;
	}
	else
	{
		iVar0 = 0;
		while (iVar0 < 32)
		{
			iVar1 = iVar0;
			if (network::network_is_player_active(iVar1))
			{
				if (func_1644(iVar1, 0, 1))
				{
					if (!iVar1 == player::player_id())
					{
						if (func_1032(iVar1) && player::get_player_team(iVar1) == player::get_player_team(player::player_id()))
						{
							if (network::_0x9DE986FC9A87C474(player::player_id(), iVar1))
							{
								*uParam0 = iVar1;
								return true;
							}
						}
					}
				}
			}
			iVar0++;
		}
		*uParam0 = -1;
	}
	return false;
}

bool func_1032(int iParam0)//Position - 0x891D5
{
	if (!Global_2404994.f_2193 == -1)
	{
		if (gameplay::is_bit_set(Global_2404994.f_2194, iParam0))
		{
			return true;
		}
	}
	return false;
}

var func_1033()//Position - 0x891FF
{
	return Global_1574265;
}

bool func_1034()//Position - 0x8920B
{
	int iVar0;
	
	if (func_1033())
	{
		if (func_1031(&iVar0))
		{
			if (func_1032(iVar0))
			{
				if (!Global_2421621[player::player_id() /*358*/].f_229)
				{
					return true;
				}
			}
		}
	}
	else if (func_1035())
	{
		return true;
	}
	return false;
}

var func_1035()//Position - 0x89250
{
	return Global_1574262;
}

bool func_1036()//Position - 0x8925C
{
	var uVar0;
	
	if (func_1037())
	{
		if (func_1031(&uVar0))
		{
			return true;
		}
		else
		{
			return false;
		}
	}
	return false;
}

var func_1037()//Position - 0x89280
{
	return Global_1574276;
}

float func_1038(int iParam0)//Position - 0x8928C
{
	if (func_1039(iParam0))
	{
		return 2500f;
	}
	return -90f;
}

int func_1039(int iParam0)//Position - 0x892AA
{
	return func_1040(iParam0);
}

bool func_1040(int iParam0)//Position - 0x892B8
{
	if (vehicle::is_this_model_a_boat(iParam0) || iParam0 == joaat("submersible"))
	{
		return true;
	}
	return false;
}

bool func_1041()//Position - 0x892DC
{
	int iVar0;
	var uVar1;
	
	if (func_1228())
	{
		if (streaming::is_model_a_vehicle(Global_2404994.f_43.f_67))
		{
		}
		if (streaming::is_model_a_vehicle(Global_2404994.f_43.f_69.f_66))
		{
		}
		if (func_1036())
		{
			if (func_1034())
			{
				return true;
			}
		}
		iVar0 = false;
		if (func_1024())
		{
			Global_2404994.f_43.f_69.f_66 = Global_1320588[func_1023() /*140*/].f_66;
			iVar0 = true;
		}
		if (!iVar0)
		{
			if (Global_2404994.f_43.f_68)
			{
				if (entity::does_entity_exist(Global_2404994.f_2196))
				{
					if (Global_2404994.f_43.f_67 == entity::get_entity_model(Global_2404994.f_2196) || Global_2404994.f_43.f_67 == 0)
					{
						if (func_1592(player::player_id()) && !Global_2404994.f_43.f_67 == 0)
						{
							iVar0 = true;
							if (Global_2404994.f_43.f_170)
							{
							}
						}
						else
						{
							Global_2404994.f_43.f_69.f_66 = entity::get_entity_model(Global_2404994.f_2196);
							func_837(Global_2404994.f_2196, func_487(player::player_id()));
							iVar0 = true;
						}
					}
				}
			}
		}
		if (Global_2404994.f_43.f_67 == 0 && !iVar0)
		{
			func_1043();
			vehicle::get_random_vehicle_model_in_memory(1, &(Global_2404994.f_43.f_69.f_66), &uVar1);
			if (Global_2404994.f_43.f_69.f_66 == 0)
			{
				Global_2404994.f_43.f_69.f_66 = func_1042();
			}
		}
		else if (!func_1024())
		{
			if (Global_2404994.f_43.f_170)
			{
				if (!Global_2404994.f_43.f_69.f_66 == Global_2404994.f_43.f_67)
				{
					func_1043();
				}
			}
			else
			{
				Global_2404994.f_43.f_69.f_66 = Global_2404994.f_43.f_67;
			}
		}
		if (!Global_2404994.f_43.f_69.f_66 == 0)
		{
			streaming::request_model(Global_2404994.f_43.f_69.f_66);
			if (streaming::has_model_loaded(Global_2404994.f_43.f_69.f_66))
			{
				return true;
			}
			else
			{
				return false;
			}
		}
		else
		{
			return false;
		}
	}
	else
	{
		return true;
	}
	return false;
}

int func_1042()//Position - 0x894BE
{
	int iVar0;
	
	iVar0 = gameplay::get_random_int_in_range(0, 7);
	switch (iVar0)
	{
		case 0:
			return joaat("premier");
		
		case 1:
			return joaat("cavalcade");
		
		case 2:
			return joaat("emperor");
		
		case 3:
			return joaat("ingot");
		
		case 4:
			return joaat("mesa");
		
		case 5:
			return joaat("primo");
		
		case 6:
			return joaat("washington");
		
		default:
	}
	return joaat("premier");
}

void func_1043()//Position - 0x8953C
{
	struct<101> Var0;
	
	Var0.f_9 = 49;
	Var0.f_59 = 2;
	Var0.f_78 = -1;
	Var0.f_95 = -1;
	Var0.f_96 = 1;
	Var0.f_98 = 132;
	Var0.f_99 = -1;
	Global_2404994.f_43.f_69 = { Var0 };
	Global_2404994.f_43.f_170 = 0;
}

void func_1044(int iParam0)//Position - 0x8958E
{
	func_801(Global_2404994.f_643, iParam0);
}

void func_1045(int iParam0)//Position - 0x895A5
{
	int iVar0;
	int iVar1;
	float fVar2;
	float fVar3;
	struct<2> Var4;
	
	iVar0 = false;
	if (func_808(iParam0, &iVar0))
	{
		vehicle::set_vehicle_fixed(iParam0);
		func_1050(iParam0);
		vehicle::set_vehicle_engine_on(iParam0, true, 1, 0);
		vehicle::set_vehicle_lights(iParam0, 3);
		iVar1 = entity::get_entity_model(iParam0);
		if (vehicle::is_this_model_a_car(iVar1))
		{
			if (iVar1 == joaat("trophytruck") || iVar1 == joaat("trophytruck2"))
			{
				fVar2 = 2f;
				fVar3 = vehicle::get_vehicle_dirt_level(iParam0);
				if (fVar3 > fVar2)
				{
					fVar3 = fVar2;
					vehicle::set_vehicle_dirt_level(iParam0, fVar3);
				}
			}
		}
		if (vehicle::is_this_model_a_plane(entity::get_entity_model(iParam0)) || vehicle::is_this_model_a_heli(entity::get_entity_model(iParam0)))
		{
			vehicle::set_heli_blades_full_speed(iParam0);
		}
		func_1047(iParam0);
		if (player::get_player_team(player::player_id()) > -1)
		{
			vehicle::set_vehicle_doors_locked_for_team(iParam0, player::get_player_team(player::player_id()), 0);
		}
		if (!ped::is_ped_in_vehicle(player::player_ped_id(), iParam0, 0))
		{
			func_827(player::player_ped_id(), iParam0, -1);
		}
		if (Global_1574255)
		{
			func_1046(iParam0);
			vehicle::_0x5E569EC46EC21CAE(iParam0, 1);
		}
		if (Global_1574259)
		{
			vehicle::set_vehicle_engine_can_degrade(iParam0, false);
		}
		streaming::set_model_as_no_longer_needed(entity::get_entity_model(iParam0));
	}
	if (iVar0)
	{
		entity::set_vehicle_as_no_longer_needed(&iParam0);
	}
	Global_2404994.f_2215 = { Var4 };
}

void func_1046(int iParam0)//Position - 0x896C2
{
	int iVar0;
	
	iVar0 = 0;
	while (iVar0 < 8)
	{
		if (vehicle::does_extra_exist(iParam0, iVar0 + 1))
		{
			vehicle::set_vehicle_extra(iParam0, iVar0 + 1, false);
		}
		iVar0++;
	}
	if (vehicle::is_vehicle_model(iParam0, joaat("bodhi2")))
	{
		vehicle::set_vehicle_extra(iParam0, 5, true);
	}
	if (((((((vehicle::is_vehicle_model(iParam0, joaat("chino")) || vehicle::is_vehicle_model(iParam0, joaat("voltic"))) || vehicle::is_vehicle_model(iParam0, joaat("buccaneer"))) || vehicle::is_vehicle_model(iParam0, joaat("buccaneer2"))) || vehicle::is_vehicle_model(iParam0, joaat("chino2"))) || vehicle::is_vehicle_model(iParam0, joaat("faction"))) || vehicle::is_vehicle_model(iParam0, joaat("faction2"))) || vehicle::is_vehicle_model(iParam0, joaat("mamba")))
	{
		if (vehicle::is_vehicle_a_convertible(iParam0, 0))
		{
			vehicle::set_convertible_roof(iParam0, 1);
		}
		if (vehicle::is_vehicle_model(iParam0, joaat("mamba")))
		{
			vehicle::set_vehicle_extra(iParam0, 1, true);
		}
		vehicle::set_vehicle_extra(iParam0, 2, false);
		vehicle::set_vehicle_extra(iParam0, 3, true);
		vehicle::set_vehicle_extra(iParam0, 4, true);
	}
}

void func_1047(int iParam0)//Position - 0x897CF
{
	int iVar0;
	
	if (vehicle::is_this_model_a_plane(entity::get_entity_model(iParam0)))
	{
		iVar0 = vehicle::get_landing_gear_state(iParam0);
		if (Global_1574259)
		{
			if (!iVar0 == 3 && !iVar0 == 1)
			{
				vehicle::_set_vehicle_landing_gear(iParam0, 3);
				func_1049(iParam0);
			}
		}
		else if (Global_1574249)
		{
			if (!iVar0 == 0 && !iVar0 == 2)
			{
				vehicle::_set_vehicle_landing_gear(iParam0, 2);
				func_1049(iParam0);
			}
		}
		else if (func_1048(iParam0, 1092616192))
		{
			if (!iVar0 == 3 && !iVar0 == 1)
			{
				vehicle::_set_vehicle_landing_gear(iParam0, 3);
				func_1049(iParam0);
			}
		}
		else
		{
			Global_2404994.f_16 = 1;
		}
	}
	else
	{
		Global_2404994.f_16 = 1;
	}
}

bool func_1048(int iParam0, float fParam1)//Position - 0x8987F
{
	vector3 vVar0;
	float fVar3;
	
	if (entity::does_entity_exist(iParam0))
	{
		vVar0 = { entity::get_entity_coords(iParam0, 0) };
		if (gameplay::get_ground_z_for_3d_coord(vVar0, &fVar3, 0))
		{
			if (gameplay::absf((vVar0.y - fVar3)) > fParam1)
			{
				return true;
			}
		}
		else if (vVar0.y > (pathfind::_0x336511A34F2E5185(vVar0.x, vVar0.y) + fParam1))
		{
			return true;
		}
		else if (vVar0.y > 300f)
		{
			return true;
		}
	}
	return false;
}

void func_1049(int iParam0)//Position - 0x898EF
{
	Global_2404994.f_16 = 0;
	Global_2404994.f_21 = iParam0;
}

void func_1050(int iParam0)//Position - 0x89906
{
	entity::freeze_entity_position(iParam0, true);
	entity::set_entity_collision(iParam0, false, 0);
	entity::set_entity_invincible(iParam0, true);
	vehicle::_0x1CF38D529D7441D9(iParam0, true);
}

void func_1051()//Position - 0x8992B
{
	if (func_1052(Global_2404994.f_43.f_171))
	{
		Global_2404994.f_43.f_171 = -1;
	}
	else
	{
		entity::set_vehicle_as_no_longer_needed(&(Global_2404994.f_43.f_171));
	}
}

bool func_1052(int iParam0)//Position - 0x8995A
{
	if (Global_69697)
	{
		if (decorator::decor_exist_on(iParam0, "Player_Vehicle"))
		{
			if (decorator::decor_get_int(iParam0, "Player_Vehicle") == network::_0xBC1D768F2F5D6C05(player::player_id()))
			{
				return true;
			}
		}
	}
	return false;
}

bool func_1053(int iParam0)//Position - 0x89992
{
	int iVar0;
	
	iVar0 = *iParam0;
	if (entity::does_entity_exist(*iParam0))
	{
		if (!func_1055(&iVar0))
		{
			Global_2404994.f_2195 = *iParam0;
			return true;
		}
	}
	*iParam0 = 0;
	return false;
}

var func_1054()//Position - 0x899C9
{
	return Global_2404994.f_2196;
}

bool func_1055(int iParam0)//Position - 0x899D8
{
	if (entity::does_entity_exist(*iParam0))
	{
		if (!func_832(player::player_ped_id(), *iParam0))
		{
			if (func_1058(iParam0))
			{
				if (!func_1057(*iParam0))
				{
					if (network::network_has_control_of_entity(*iParam0))
					{
						if (!func_1026(entity::get_entity_coords(*iParam0, 0), 10f, 1, 1, 0, 1, 1, 0) || !func_1033())
						{
							if (!entity::is_entity_a_mission_entity(*iParam0))
							{
								if (network::network_get_entity_is_local(*iParam0))
								{
									if (!ped::is_ped_in_vehicle(player::player_ped_id(), *iParam0, 1))
									{
										entity::set_entity_as_mission_entity(*iParam0, false, 1);
										vehicle::delete_vehicle(iParam0);
										return true;
									}
									else
									{
										*iParam0 = -1;
									}
								}
								else
								{
									*iParam0 = -1;
								}
							}
							else if (entity::does_entity_belong_to_this_script(*iParam0, 0))
							{
								vehicle::delete_vehicle(iParam0);
								return true;
							}
							else
							{
								*iParam0 = -1;
							}
						}
						else
						{
							*iParam0 = -1;
						}
					}
					else if (func_1056() && !func_1033())
					{
						network::network_request_control_of_entity(*iParam0);
					}
					else
					{
						*iParam0 = -1;
					}
				}
				else
				{
					*iParam0 = -1;
				}
			}
			else
			{
				*iParam0 = -1;
			}
		}
	}
	return false;
}

var func_1056()//Position - 0x89ADE
{
	return Global_1574255;
}

bool func_1057(int iParam0)//Position - 0x89AEA
{
	int iVar0;
	int iVar1;
	
	iVar0 = 0;
	while (iVar0 < 32)
	{
		iVar1 = iVar0;
		if (!iVar1 == player::player_id())
		{
			if (func_1644(iVar1, 1, 1))
			{
				if (ped::is_ped_in_any_vehicle(player::player_ped_id(), 1))
				{
					if (ped::get_vehicle_ped_is_using(player::player_ped_id()) == iParam0)
					{
						return true;
					}
				}
			}
		}
		iVar0++;
	}
	return false;
}

bool func_1058(var uParam0)//Position - 0x89B3D
{
	int iVar0;
	
	iVar0 = -1;
	while (iVar0 <= 8)
	{
		if (!func_1059(uParam0, iVar0))
		{
			return false;
		}
		iVar0++;
	}
	return true;
}

bool func_1059(var uParam0, int iParam1)//Position - 0x89B69
{
	int iVar0;
	
	if (!vehicle::is_vehicle_seat_free(*uParam0, iParam1, 0))
	{
		iVar0 = vehicle::get_ped_in_vehicle_seat(*uParam0, iParam1, 0);
		if (!entity::does_entity_exist(iVar0))
		{
			return true;
		}
	}
	else
	{
		return true;
	}
	return false;
}

bool func_1060(var uParam0, var uParam1, int iParam2, int iParam3, int iParam4, var uParam5, int iParam6, var uParam7, var uParam8, int iParam9, int iParam10)//Position - 0x89BA1
{
	int iVar0;
	vector3 vVar1;
	float fVar4;
	
	iVar0 = false;
	if (!func_633(player::player_id()) && !Global_2421621[player::player_id() /*358*/] == 10)
	{
		return false;
	}
	if (!Global_2404994.f_623 == 0 && network::get_time_difference(network::get_network_time(), Global_2404994.f_626) < func_1229(0))
	{
		return false;
	}
	if (iParam10)
	{
		if (streaming::is_player_switch_in_progress())
		{
			iParam10 = false;
		}
	}
	if (!script::get_id_of_this_thread() == Global_2404994.f_577)
	{
		if (!Global_2404994.f_571 == 0)
		{
			if (network::get_time_difference(network::get_network_time(), Global_2404994.f_576) < func_1229(0))
			{
				return false;
			}
			else
			{
				Global_2404994.f_571 = 0;
			}
		}
	}
	else if (network::get_time_difference(network::get_network_time(), Global_2404994.f_574) > 30000)
	{
		Global_2404994.f_571 = 0;
	}
	if (Global_2404994.f_571 == 0)
	{
		Global_2404994.f_572 = 0;
		Global_2404994.f_573 = 0;
		Global_2404994.f_608 = 0;
		Global_2404994.f_574 = network::get_network_time();
		Global_2404994.f_577 = script::get_id_of_this_thread();
		Global_2404994.f_571 = 1;
		Global_2404994.f_576 = network::get_network_time();
		Global_2404994.f_2218 = uParam5;
		Global_2404994.f_2256 = 0;
		func_988();
		if (iParam10)
		{
			func_995();
		}
	}
	switch (Global_2404994.f_571)
	{
		case 1:
			if (func_1067(&(Global_2404994.f_588), iParam2, iParam3, iParam4, iParam6, uParam7, uParam8))
			{
				if (iParam2 == 11 || Global_2404994.f_2218)
				{
					iVar0 = true;
				}
				else
				{
					Global_2404994.f_609 = gameplay::get_random_int_in_range(0, 65535);
					func_1066(Global_2404994.f_588, Global_2404994.f_609, iParam9);
					Global_2404994.f_606 = 0;
					Global_2404994.f_607 = 0;
					Global_2404994.f_575 = network::get_network_time();
					Global_2404994.f_574 = network::get_network_time();
					Global_2404994.f_571 = 2;
				}
			}
			break;
		
		case 2:
			if (Global_2404994.f_606)
			{
				if (Global_2404994.f_610 == Global_2404994.f_609)
				{
					if (Global_2404994.f_607 && !Global_2404994.f_608 == -1)
					{
						if (((Global_2404994.f_498 && !func_1065()) && func_1063(Global_2412527, Global_2412527.f_4, &vVar1, 1)) && Global_2404994.f_2256 == 0)
						{
							func_934(Global_2404994.f_588[Global_2404994.f_608 /*3*/], 0);
							func_1062(-1);
						}
						else if (iParam10)
						{
							if (iParam3)
							{
								fVar4 = 2f;
							}
							else
							{
								fVar4 = 0.3f;
							}
							func_935(Global_2404994.f_588[Global_2404994.f_608 /*3*/], fVar4);
							Global_2404994.f_571 = 3;
							Global_2404994.f_627 = network::_0x89023FBBF9200E9F();
						}
						else
						{
							iVar0 = true;
						}
					}
					else
					{
						func_1061(&(Global_2404994.f_588));
						func_1062(-1);
					}
				}
				else
				{
					Global_2404994.f_606 = 0;
					Global_2404994.f_607 = 0;
					Global_2404994.f_608 = -1;
				}
			}
			else if (network::get_time_difference(network::get_network_time(), Global_2404994.f_575) > 3000 || network::get_time_difference(network::get_network_time(), Global_2404994.f_575) < 0)
			{
				if (Global_2404994.f_573 < 3)
				{
					Global_2404994.f_573++;
					Global_2404994.f_571 = 1;
				}
				else
				{
					Global_2404994.f_571 = 4;
				}
			}
			break;
		
		case 3:
			if (iParam10)
			{
				if (network::get_time_difference(network::get_network_time(), Global_2404994.f_627) < 10000)
				{
					if (network::_0xE64A3CA08DFA37A9(Global_2404994.f_634))
					{
						if (network::_0x4DF7CFFF471A7FB1(Global_2404994.f_634))
						{
							if (!network::_0x4A2D4E8BF4265B0F(Global_2404994.f_634))
							{
								iVar0 = true;
							}
							else
							{
								func_934(Global_2404994.f_588[Global_2404994.f_608 /*3*/], 0);
								func_1062(-1);
							}
						}
					}
					else
					{
						func_1062(-1);
					}
				}
				else
				{
					func_1062(1);
				}
			}
			else
			{
				iVar0 = true;
			}
			break;
		
		case 4:
			if (func_1067(&(Global_2404994.f_588), iParam2, iParam3, iParam4, iParam6, uParam7, uParam8))
			{
				Global_2404994.f_571 = 5;
				Global_2404994.f_608 = 0;
			}
			break;
		
		case 5:
			iVar0 = true;
			break;
	}
	Global_2404994.f_576 = network::get_network_time();
	if (iVar0)
	{
		if (Global_2404994.f_476 == 8)
		{
			Global_2404994.f_651.f_503 = Global_2404994.f_651.f_502;
		}
		if (Global_2404994.f_608 == -1)
		{
			Global_2404994.f_608 = 0;
		}
		*uParam0 = { Global_2404994.f_588[Global_2404994.f_608 /*3*/] };
		*uParam1 = Global_2404994.f_588.f_10[Global_2404994.f_608];
		if (Global_2404994.f_43.f_52)
		{
			if (iParam2 == 3 && system::vmag(Global_2404994.f_43.f_49) > 0f)
			{
				if (iParam3)
				{
				}
				else
				{
					vVar1 = { Global_2404994.f_43.f_49 - *uParam0 };
					*uParam1 = gameplay::get_heading_from_vector_2d(vVar1.x, vVar1.y);
					if (Global_2404994.f_43.f_53)
					{
						*uParam1 = (*uParam1 + 180f);
					}
					Global_2404994.f_2200 = 1;
				}
			}
		}
		Global_2404994.f_2256 = 0;
		Global_2404994.f_571 = 0;
		func_988();
		if (iParam10)
		{
			func_995();
		}
		return true;
	}
	return false;
}

void func_1061(var uParam0)//Position - 0x8A0A6
{
	int iVar0;
	
	iVar0 = 0;
	while (iVar0 < 3)
	{
		func_934(*(uParam0[iVar0 /*3*/]), 0);
		iVar0++;
	}
}

void func_1062(int iParam0)//Position - 0x8A0CD
{
	if (Global_2404994.f_572 < 7)
	{
		if (iParam0 == -1 || (iParam0 > -1 && Global_2404994.f_2256 < iParam0))
		{
			Global_2404994.f_572++;
			Global_2404994.f_2256++;
			Global_2404994.f_571 = 1;
		}
		else
		{
			Global_2404994.f_571 = 4;
		}
	}
	else
	{
		Global_2404994.f_571 = 4;
	}
}

bool func_1063(vector3 vParam0, float fParam3, var uParam4, int iParam5)//Position - 0x8A13E
{
	int iVar0;
	int iVar1;
	vector3 vVar2;
	
	iVar0 = 0;
	while (iVar0 < 32)
	{
		iVar1 = iVar0;
		if (!iVar1 == player::player_id())
		{
			if (func_1644(iVar1, 0, 0))
			{
				if (func_1064(iVar1, player::player_id()))
				{
					if ((!func_398(iVar1, 0, 0) && !func_1235(iVar1)) && func_1644(iVar1, 1, 1))
					{
						vVar2 = { func_640(iVar1) };
					}
					else if (Global_2415705.f_260[iVar0])
					{
						if (iParam5)
						{
							if (Global_2415705.f_326[iVar0] < Global_2415705.f_326[player::player_id()])
							{
								vVar2 = { Global_2415705.f_130[iVar0 /*3*/] };
							}
						}
						else
						{
							vVar2 = { Global_2415705.f_130[iVar0 /*3*/] };
						}
					}
					if (system::vmag(vVar2) > 0f)
					{
						if (system::vdist(vVar2, vParam0) < fParam3)
						{
							*uParam4 = { vVar2 };
							return true;
						}
					}
				}
			}
		}
		iVar0++;
	}
	return false;
}

int func_1064(int iParam0, int iParam1)//Position - 0x8A22F
{
	int iVar0;
	
	if (iParam0 != func_45() && iParam1 != func_45())
	{
		iVar0 = func_429(iParam0);
		if (iVar0 != func_45())
		{
			return iVar0 == func_429(iParam1);
		}
	}
	return false;
}

bool func_1065()//Position - 0x8A26B
{
	int iVar0;
	int iVar1;
	
	iVar0 = 0;
	while (iVar0 < 32)
	{
		iVar1 = iVar0;
		if (!iVar1 == player::player_id())
		{
			if (func_1644(iVar1, 0, 0))
			{
				if (func_1064(iVar1, player::player_id()))
				{
					return false;
				}
			}
		}
		iVar0++;
	}
	return true;
}

void func_1066(struct<15> Param0, var uParam15, var uParam16, var uParam17, var uParam18, var uParam19)//Position - 0x8A2B2
{
	struct<22> Var0;
	int iVar22;
	
	Var0.f_2 = 3;
	Var0.f_2.f_10 = 3;
	Var0.f_2.f_14 = 3;
	Var0 = 7;
	Var0.f_1 = player::player_id();
	iVar22 = 0;
	while (iVar22 < 3)
	{
		Var0.f_2[iVar22 /*3*/] = { Param0[iVar22 /*3*/] };
		Var0.f_2.f_10[iVar22] = Param0.f_14[iVar22];
		iVar22++;
	}
	Var0.f_20 = uParam18;
	Var0.f_21 = uParam19;
	script::trigger_script_event(1, &Var0, 22, func_36(1, 1));
}

bool func_1067(var uParam0, int iParam1, int iParam2, int iParam3, int iParam4, var uParam5, var uParam6)//Position - 0x8A32D
{
	int iVar0;
	int iVar1;
	int iVar2;
	float fVar3;
	float fVar4;
	float fVar5;
	float fVar6;
	int iVar7;
	int iVar8;
	var uVar9;
	float fVar10;
	float fVar11;
	float fVar12;
	vector3 vVar13;
	vector3 vVar16;
	int iVar19;
	int iVar20;
	vector3 vVar21;
	struct<18> Var24;
	var uVar42;
	int iVar50;
	vector3 vVar51;
	vector3 vVar54;
	vector3 vVar57;
	vector3 vVar60;
	vector3 vVar63[4];
	var uVar76[4];
	int iVar81[4];
	var uVar86[4];
	float fVar91;
	int iVar92;
	int iVar93;
	int iVar94;
	int iVar95;
	float fVar96;
	float fVar97;
	float fVar98;
	int iVar99;
	var uVar100;
	struct<4> Var101;
	struct<4> Var107;
	struct<56> Var113;
	
	iVar2 = false;
	Var24 = 3;
	Var24.f_10 = 3;
	Var24.f_14 = 3;
	uVar42 = 3;
	uVar42.f_4 = 3;
	if (network::network_is_game_in_progress())
	{
		if (!func_1644(player::player_id(), 0, 0))
		{
			return false;
		}
	}
	else
	{
		return false;
	}
	if (network::_0x35F0B98A8387274D())
	{
		return false;
	}
	if (network::get_time_difference(network::get_network_time(), Global_2404994.f_557) > 60000 || !script::get_id_of_this_thread() == Global_2404994.f_556)
	{
		Global_2404994.f_552 = 0;
		Global_2404994.f_554 = 0;
		Global_2404994.f_616 = 0;
		Global_2404994.f_617 = 0;
		Global_2404994.f_2031 = 0;
		Global_2404994.f_2032 = 0;
		Global_2404994.f_2030 = 0;
	}
	if (iParam1 == 13 || Global_2404994.f_476 == 13)
	{
		if (!Global_2404994.f_2031)
		{
			if (Global_2404994.f_2030 == 0)
			{
				if (func_1026(Global_2412527, 150f, 1, 1, 0, 0, 0, 0))
				{
					func_1227(Global_2412527);
					Global_2404994.f_2032 = 0;
					Global_2404994.f_2029 = network::get_network_time();
					Global_2404994.f_2030 = 1;
				}
				else
				{
					Global_2404994.f_2032 = 1;
					Global_2404994.f_2031 = 1;
					Global_2404994.f_2030 = 2;
				}
			}
			if (Global_2404994.f_2030 == 1)
			{
				if (network::get_time_difference(network::get_network_time(), Global_2404994.f_2029) > 4000 || Global_2404994.f_2032 == 0)
				{
					Global_2404994.f_2031 = 1;
					Global_2404994.f_2030 = 2;
				}
				else if (Global_2404994.f_2032 == 1)
				{
					Global_2404994.f_2031 = 1;
					Global_2404994.f_2030 = 2;
				}
				else
				{
					return false;
				}
			}
		}
	}
	if (Global_2404994.f_552 == 0)
	{
		func_1226();
		Global_2404994.f_557 = network::get_network_time();
		Global_2404994.f_556 = script::get_id_of_this_thread();
		Global_2404994.f_638 = 0;
		Global_2404994.f_496 = 0;
		Global_2404994.f_499 = { Global_2404994.f_43.f_49 };
		Global_2404994.f_499.f_3 = Global_2404994.f_43.f_55;
		Global_2404994.f_499.f_4 = Global_2404994.f_43.f_58;
		Global_2404994.f_499.f_23 = func_1225();
		Global_2404994.f_525.f_16 = Global_2404994.f_43.f_306;
		Global_2404994.f_525.f_15 = Global_2404994.f_43.f_65;
		Global_2404994.f_525.f_25 = 0;
		Global_2404994.f_553 = 0;
		Global_2404994.f_499.f_13[1 /*3*/] = { Global_2404994.f_43.f_307 };
		Global_2404994.f_499.f_20[1] = Global_2404994.f_43.f_310;
		Global_2404994.f_525.f_4 = 125f;
		Global_2404994.f_2200 = 0;
		Global_2404994.f_616 = 0;
		Global_2404994.f_617 = 0;
		Global_2404994.f_555 = 0;
		if (!Global_2404994.f_43.f_52)
		{
			Global_2404994.f_43.f_49 = { 0f, 0f, 0f };
		}
		Global_2404994.f_476 = iParam1;
		if (Global_2404994.f_476 == 0 || func_37(player::player_id(), 0))
		{
			Global_2404994.f_476 = func_1210();
		}
		if ((Global_2404994.f_43.f_65 && Global_2404994.f_43.f_298) && Global_2404994.f_476 == 16)
		{
			Global_2404994.f_476 = 5;
		}
		Global_2404994.f_2203 = 0;
		Global_2404994.f_561 = 0f;
		Global_2404994.f_43.f_298 = 0;
		if (func_1242(player::player_id(), 1))
		{
			Global_2404994.f_525.f_17 = 1;
		}
		else
		{
			Global_2404994.f_525.f_17 = 0;
		}
		Global_2404994.f_498 = 0;
		Global_2404994.f_2201 = 0;
		if (Global_2404994.f_476 == 10)
		{
			iVar50 = func_1209(Global_2412527);
			if (!iVar50 == -1)
			{
				if (func_769(iVar50))
				{
					Global_2404994.f_2316 = iVar50;
					Global_2404994.f_476 = 29;
				}
			}
		}
		if (Global_2404994.f_476 == 10)
		{
		}
		switch (Global_2404994.f_476)
		{
			case 9:
				func_1208(&Global_1311923, &(Global_2404994.f_525), &(Global_2404994.f_525.f_3), 10f);
				iVar2 = true;
				break;
			
			case 8:
				if (!Global_2404994.f_1684)
				{
					Global_2404994.f_1684 = 1;
				}
				uVar42 = { func_1206(iParam2) };
				iVar0 = 0;
				while (iVar0 < 3)
				{
					if (iVar0 == 0)
					{
						if (uVar42[iVar0] > -1)
						{
							Global_2404994.f_525 = { Global_2404994.f_651.f_1[uVar42[iVar0] /*5*/] };
							Global_2404994.f_525.f_3 = Global_2404994.f_651.f_1[uVar42[iVar0] /*5*/].f_3;
							Global_2404994.f_651.f_502 = uVar42[0];
							iVar2 = true;
							iParam4 = 1;
						}
						else
						{
							Global_2404994.f_525 = { Global_2404994.f_651.f_1[0 /*5*/] };
							Global_2404994.f_525.f_3 = Global_2404994.f_651.f_1[0 /*5*/].f_3;
							Global_2404994.f_499.f_6 = 1;
							Global_2404994.f_525.f_4 = 150f;
						}
					}
					else if (uVar42[iVar0] > -1)
					{
						Var24[iVar0 /*3*/] = { Global_2404994.f_651.f_1[uVar42[iVar0] /*5*/] };
						Var24.f_10[iVar0] = Global_2404994.f_651.f_1[uVar42[iVar0] /*5*/].f_3;
					}
					iVar0++;
				}
				break;
			
			case 7:
				Global_2404994.f_525 = { 23.6269f, -17.1858f, 0.0025f };
				Global_2404994.f_525.f_3 = 0f;
				Global_2404994.f_2218 = 1;
				iVar2 = true;
				break;
			
			case 12:
				func_1208(&Global_1311956, &(Global_2404994.f_525), &(Global_2404994.f_525.f_3), 1123024896);
				iVar2 = true;
				break;
			
			case 1:
				vVar21 = { Global_2404994.f_493 };
				if (Global_1589933[player::player_id() /*601*/].f_257.f_15 > 0)
				{
					iVar19 = Global_1589933[player::player_id() /*601*/].f_257.f_15;
					vVar21 = { Global_1049427[iVar19 /*1942*/].f_3[0 /*3*/] };
				}
				if (Global_1616548 > -1)
				{
					if (func_1644(Global_1616548, 0, 1))
					{
						if (func_947(Global_1616548))
						{
							Global_2404994.f_499.f_13[0 /*3*/] = { func_640(Global_1616548) };
							if (!func_1242(player::player_id(), 1))
							{
								if (ped::is_ped_in_any_vehicle(player::get_player_ped(Global_1616548), 0))
								{
									Global_2404994.f_499.f_20[0] = 250f;
								}
								else
								{
									Global_2404994.f_499.f_20[0] = 125f;
								}
							}
							else if (ped::is_ped_in_any_vehicle(player::get_player_ped(Global_1616548), 0))
							{
								Global_2404994.f_499.f_20[0] = 125f;
							}
							else
							{
								Global_2404994.f_499.f_20[0] = 75f;
							}
						}
					}
				}
				iVar0 = 0;
				while (iVar0 < 2)
				{
					if (func_952(vVar21, Global_2404994.f_499.f_13[iVar0 /*3*/], Global_2404994.f_499.f_20[iVar0], 1, 1))
					{
						func_963(&vVar21, Global_2404994.f_499.f_13[iVar0 /*3*/], Global_2404994.f_499.f_20[iVar0], 1036831949, 0, 0);
					}
					iVar0++;
				}
				Global_2404994.f_525 = { vVar21 };
				Global_2404994.f_525.f_3 = gameplay::get_random_float_in_range(0f, 360f);
				if (Global_2404994.f_43.f_301 > -1f)
				{
					Global_2404994.f_499.f_5 = Global_2404994.f_43.f_301;
				}
				if (func_1204(player::player_id()))
				{
					Global_2404994.f_561 = Global_2404994.f_43.f_302;
				}
				else
				{
					Global_2404994.f_561 = 40f;
				}
				fVar12 = (Global_2404994.f_499.f_5 - 65f);
				if (fVar12 < 0f)
				{
					fVar12 = 0f;
				}
				if (func_1204(player::player_id()))
				{
					Global_2404994.f_525.f_4 = (120f + fVar12);
				}
				else
				{
					Global_2404994.f_525.f_4 = (135f + fVar12);
				}
				Global_2404994.f_525.f_4 = ((95f + Global_2404994.f_561) + fVar12);
				if (Global_2404994.f_525.f_4 > 250f)
				{
					Global_2404994.f_525.f_4 = 250f;
				}
				Global_2404994.f_558 = { Global_2404994.f_493 };
				fVar12 = (Global_2404994.f_525.f_4 * 0.5f);
				if (fVar12 < Global_2404994.f_499.f_5)
				{
					fVar12 = Global_2404994.f_499.f_5;
				}
				vVar13 = { func_1203(Global_2404994.f_525, fVar12) };
				if (system::vmag(vVar13) > 0f)
				{
					vVar13.z = Global_2404994.f_525.f_2;
					vVar16 = { Global_2404994.f_525 - vVar13 };
					vVar16 = { vVar16 / FtoV(system::vmag(vVar16)) };
					vVar16 = { vVar16 * Vector(fVar12, fVar12, fVar12) };
					Global_2404994.f_525 = { Global_2404994.f_525 + vVar16 };
				}
				if (func_1201(&(Global_2404994.f_525), 1))
				{
				}
				if (func_1228())
				{
					Global_2404994.f_525.f_4 = 400f;
					Global_2404994.f_561 = 100f;
					iParam2 = true;
				}
				break;
			
			case 20:
				if (!player::is_player_dead(player::player_id()))
				{
					vVar16 = { entity::get_entity_coords(player::player_ped_id(), 1) };
				}
				else
				{
					vVar16 = { Global_2404994.f_493 };
				}
				Global_2404994.f_558 = { vVar16 };
				Global_2404994.f_561 = 125f;
				if (func_1201(&vVar16, 1))
				{
				}
				if (Global_1574250)
				{
					if (Global_1573825.f_14 != func_45())
					{
						if (func_1644(Global_1573825.f_14, 0, 1))
						{
							Global_2404994.f_499.f_13[0 /*3*/] = { func_640(Global_1573825.f_14) };
							if (func_1228())
							{
								Global_2404994.f_499.f_20[0] = 250f;
							}
							else
							{
								Global_2404994.f_499.f_20[0] = 125f;
							}
						}
					}
				}
				iVar0 = 0;
				while (iVar0 < 2)
				{
					if (func_952(vVar16, Global_2404994.f_499.f_13[iVar0 /*3*/], Global_2404994.f_499.f_20[iVar0], 1, 1))
					{
						func_963(&vVar16, Global_2404994.f_499.f_13[iVar0 /*3*/], Global_2404994.f_499.f_20[iVar0], 1036831949, 0, 0);
					}
					iVar0++;
				}
				Global_2404994.f_525 = { vVar16 };
				Global_2404994.f_525.f_3 = gameplay::get_random_float_in_range(0f, 360f);
				Global_2404994.f_525.f_4 = 250f;
				if (Global_2404994.f_499.f_3)
				{
					if (!interior::is_valid_interior(interior::get_interior_at_coords(Global_2404994.f_493)))
					{
						Global_2404994.f_499.f_3 = 0;
					}
				}
				if (func_1228())
				{
					Global_2404994.f_525.f_4 = 400f;
					Global_2404994.f_561 = 100f;
					iParam2 = true;
				}
				break;
			
			case 2:
				Global_2404994.f_525 = { func_1200() };
				Global_2404994.f_525.f_3 = gameplay::get_random_float_in_range(0f, 360f);
				break;
			
			case 26:
				if (!player::is_player_dead(player::player_id()))
				{
					uVar9 = func_1199(func_640(player::player_id()));
				}
				else
				{
					uVar9 = func_1199(Global_2404994.f_493);
				}
				func_1198(&(Global_2404994.f_43[uVar9 /*12*/]));
				if (!player::is_player_dead(player::player_id()))
				{
					Global_2404994.f_525.f_18 = { func_640(player::player_id()) };
				}
				else
				{
					Global_2404994.f_525.f_18 = { Global_2404994.f_493 };
				}
				if (func_1204(player::player_id()))
				{
					Global_2404994.f_561 = Global_2404994.f_43.f_302;
				}
				else
				{
					Global_2404994.f_561 = 40f;
				}
				Global_2404994.f_558 = { Global_2404994.f_525.f_18 };
				vVar51 = { Global_2404994.f_525.f_18 };
				switch (Global_2404994.f_43[uVar9 /*12*/].f_10)
				{
					case 0:
						fVar91 = Global_2404994.f_43[uVar9 /*12*/].f_6;
						fVar91 = (fVar91 * 0.5f);
						break;
					
					case 1:
						fVar91 = system::vmag(Global_2404994.f_43[uVar9 /*12*/] - Global_2404994.f_43[uVar9 /*12*/].f_3);
						fVar91 = (fVar91 * 0.5f);
						fVar91 = (fVar91 * 0.5f);
						break;
					
					case 2:
						fVar91 = Global_2404994.f_43[uVar9 /*12*/].f_6;
						fVar91 = (fVar91 * 0.5f);
						fVar91 = (fVar91 * 0.5f);
						break;
				}
				if (!func_961(vVar51, &(Global_2404994.f_43[uVar9 /*12*/]), 1008981770, 0, 0))
				{
					func_1194(&vVar51, &(Global_2404994.f_43[uVar9 /*12*/]), fVar91);
				}
				if (Global_2404994.f_43.f_301 > -1f)
				{
					Global_2404994.f_499.f_5 = Global_2404994.f_43.f_301;
				}
				fVar97 = (Global_2404994.f_499.f_5 * 1.5f);
				iVar92 = func_946(vVar51, fVar97, &uVar100);
				if (iVar92 > 0 || Global_2404994.f_525.f_15)
				{
					if (Global_2404994.f_525.f_15)
					{
						vVar51 = { func_1193(vVar51, Global_2404994.f_43[uVar9 /*12*/], Global_2404994.f_43[uVar9 /*12*/].f_3, Global_2404994.f_43[uVar9 /*12*/].f_6, Global_2404994.f_43[uVar9 /*12*/].f_10, fVar97, 1, Global_2404994.f_499.f_23, &(Global_2404994.f_525.f_25)) };
						Global_2404994.f_561 = 0f;
						fVar98 = 40f;
					}
					else
					{
						iVar93 = false;
						vVar54 = { func_1192(vVar51, fVar97) };
						vVar57 = { func_1191(vVar51, fVar97) };
						vVar60 = { vVar51 - vVar54 };
						vVar60 = { vVar60 / FtoV(system::vmag(vVar60)) };
						vVar60 = { vVar60 * Vector(fVar97, fVar97, fVar97) };
						iVar0 = 0;
						while (iVar0 < 4)
						{
							vVar16 = { vVar60 };
							func_794(&vVar16, 0f, 0f, (system::to_float(iVar0) * 90f));
							vVar63[iVar0 /*3*/] = { vVar54 + vVar16 };
							if (!func_961(vVar63[iVar0 /*3*/], &(Global_2404994.f_43[uVar9 /*12*/]), 1008981770, 0, 0))
							{
								func_1194(&(vVar63[iVar0 /*3*/]), &(Global_2404994.f_43[uVar9 /*12*/]), 1036831949);
							}
							uVar76[iVar0] = func_946(vVar63[iVar0 /*3*/], fVar97, &(uVar86[iVar0]));
							vVar16 = { vVar54 - vVar63[iVar0 /*3*/] };
							if (func_814(vVar16, vVar57) < 0f)
							{
								iVar81[iVar0] = 1;
							}
							else
							{
								iVar81[iVar0] = 0;
							}
							iVar0++;
						}
						iVar0 = 0;
						while (iVar0 < 4)
						{
							if ((uVar76[iVar0] == 0 && iVar81[iVar0] == 0) && !iVar93)
							{
								vVar51 = { vVar63[iVar0 /*3*/] };
								iVar93 = true;
							}
							iVar0++;
						}
						if (!iVar93)
						{
							iVar0 = 0;
							while (iVar0 < 4)
							{
								if (uVar76[iVar0] == 0 && !iVar93)
								{
									vVar51 = { vVar63[iVar0 /*3*/] };
									iVar93 = true;
								}
								iVar0++;
							}
						}
						if (!iVar93)
						{
							iVar94 = 999;
							iVar95 = -1;
							iVar0 = 0;
							while (iVar0 < 4)
							{
								if (uVar76[iVar0] < iVar94)
								{
									iVar95 = iVar0;
									fVar96 = uVar86[iVar0];
									iVar94 = uVar76[iVar0];
								}
								else if (uVar76[iVar0] == iVar94)
								{
									if (uVar86[iVar0] > fVar96)
									{
										fVar96 = uVar86[iVar0];
										iVar95 = iVar0;
									}
								}
								iVar0++;
							}
							if (!iVar95 == -1 && iVar94 < iVar92)
							{
								vVar51 = { vVar63[iVar95 /*3*/] };
								iVar93 = true;
							}
						}
						if (!iVar93)
						{
						}
						else
						{
							Global_2404994.f_561 = 0f;
						}
					}
				}
				Global_2404994.f_525.f_18 = { vVar51 };
				Global_2404994.f_525.f_21 = 1;
				Global_2404994.f_499.f_6 = 1;
				Global_2404994.f_525.f_3 = gameplay::get_random_float_in_range(0f, 360f);
				break;
			
			case 3:
				iVar0 = gameplay::get_random_int_in_range(0, func_1190());
				func_1198(&(Global_2404994.f_43[iVar0 /*12*/]));
				if (func_973(&(Global_2404994.f_525), 0, 0, 0))
				{
					Global_2404994.f_496 = 1;
				}
				break;
			
			case 15:
				if (player::is_player_dead(player::player_id()))
				{
					vVar21 = { Global_2404994.f_493 };
				}
				else
				{
					vVar21 = { func_640(player::player_id()) };
				}
				if (Global_1589933[player::player_id() /*601*/].f_257.f_15 > 0)
				{
					iVar19 = Global_1589933[player::player_id() /*601*/].f_257.f_15;
					vVar21 = { Global_1049427[iVar19 /*1942*/].f_3[0 /*3*/] };
				}
				fVar10 = func_1189(vVar21, &Global_2408977, &iVar7);
				if (func_1188(0, -1) > 0)
				{
					iVar0 = 0;
					iVar0 = 0;
					while (iVar0 < 12)
					{
						iVar19 = func_1188(iVar0, -1);
						if (Global_1049427[iVar19 /*1942*/].f_34 == 0 || Global_1049427[iVar19 /*1942*/].f_34 == 3)
						{
							if (fVar11 == 0f || fVar11 > system::vdist(vVar21, Global_1049427[iVar19 /*1942*/].f_3[0 /*3*/]))
							{
								fVar11 = system::vdist(vVar21, Global_1049427[iVar19 /*1942*/].f_3[0 /*3*/]);
								iVar8 = iVar19;
							}
						}
						else if (fVar11 == 0f)
						{
							fVar11 = 999999.9f;
						}
						iVar0++;
					}
				}
				else
				{
					fVar11 = 999999.9f;
				}
				if (fVar11 < 10000f && fVar11 < fVar10)
				{
					switch (Global_1049427[iVar8 /*1942*/].f_34)
					{
						case 0:
							func_1184(iVar8, &(Global_2404994.f_525), &(Global_2404994.f_525.f_3));
							Global_2404994.f_2205 = 0;
							break;
						
						case 1:
							Global_2404994.f_525 = { Global_1049427[iVar8 /*1942*/].f_1742.f_20 };
							Global_2404994.f_525.f_3 = Global_1049427[iVar8 /*1942*/].f_1742.f_23;
							if (Global_2404994.f_572 == 0)
							{
								Global_2404994.f_2205 = 1;
							}
							Global_2404994.f_2218 = 1;
							break;
					}
					iVar2 = true;
					if (Global_2404994.f_572 == 0)
					{
						Global_2404994.f_2204 = 1;
					}
					Global_2404994.f_2203 = 1;
				}
				else if (fVar10 < fVar11)
				{
					if (iVar7 > -1)
					{
						func_1198(&(Global_2408977[iVar7 /*12*/]));
					}
					else
					{
						func_1198(&(Global_2408977[0 /*12*/]));
					}
					Global_2404994.f_2217 = 1;
				}
				Global_2404994.f_638 = 1;
				break;
			
			case 23:
				if (player::is_player_dead(player::player_id()))
				{
					vVar21 = { Global_2404994.f_493 };
				}
				else
				{
					vVar21 = { func_640(player::player_id()) };
				}
				fVar10 = func_1189(vVar21, &Global_2408977, &iVar7);
				if (iVar7 > -1)
				{
					func_1198(&(Global_2408977[iVar7 /*12*/]));
				}
				else
				{
					func_1198(&(Global_2408977[0 /*12*/]));
				}
				Global_2404994.f_2217 = 1;
				Global_2404994.f_638 = 1;
				break;
			
			case 25:
				vVar21 = { Global_2412527 };
				fVar11 = func_1189(vVar21, &Global_2409123, &iVar8);
				if (iVar8 > -1)
				{
					func_1198(&(Global_2409123[iVar8 /*12*/]));
				}
				else
				{
					func_1198(&(Global_2409123[0 /*12*/]));
				}
				Global_2404994.f_638 = 1;
				break;
			
			case 24:
				if (player::is_player_dead(player::player_id()))
				{
					vVar21 = { Global_2404994.f_493 };
				}
				else
				{
					vVar21 = { func_640(player::player_id()) };
				}
				fVar10 = func_1189(vVar21, &Global_2409038, &iVar7);
				if (iVar7 > -1)
				{
					func_1198(&(Global_2409038[iVar7 /*12*/]));
				}
				else
				{
					func_1198(&(Global_2409038[0 /*12*/]));
				}
				Global_2404994.f_638 = 1;
				break;
			
			case 22:
				vVar21 = { Global_2412527 };
				fVar10 = func_1189(vVar21, &Global_2408977, &iVar7);
				if (func_1188(0, -1) > 0)
				{
					iVar0 = 0;
					iVar0 = 0;
					while (iVar0 < 12)
					{
						iVar19 = func_1188(iVar0, -1);
						if (Global_1049427[iVar19 /*1942*/].f_34 == 0 || Global_1049427[iVar19 /*1942*/].f_34 == 3)
						{
							if (fVar11 == 0f || fVar11 > system::vdist(vVar21, Global_1049427[iVar19 /*1942*/].f_3[0 /*3*/]))
							{
								fVar11 = system::vdist(vVar21, Global_1049427[iVar19 /*1942*/].f_3[0 /*3*/]);
								iVar8 = iVar19;
							}
						}
						else if (fVar11 == 0f)
						{
							fVar11 = 999999.9f;
						}
						iVar0++;
					}
				}
				else
				{
					fVar11 = 999999.9f;
				}
				if (fVar11 < 10000f && fVar11 < fVar10)
				{
					switch (Global_1049427[iVar8 /*1942*/].f_34)
					{
						case 0:
							func_1184(iVar8, &(Global_2404994.f_525), &(Global_2404994.f_525.f_3));
							Global_2404994.f_2205 = 0;
							break;
						
						case 1:
							if (Global_2404994.f_572 == 0)
							{
								Global_2404994.f_2205 = 1;
							}
							Global_2404994.f_525 = { Global_1049427[iVar8 /*1942*/].f_1742.f_20 };
							Global_2404994.f_525.f_3 = Global_1049427[iVar8 /*1942*/].f_1742.f_23;
							Global_2404994.f_2218 = 1;
							break;
					}
					iVar2 = true;
					if (Global_2404994.f_572 == 0)
					{
						Global_2404994.f_2204 = 1;
					}
					Global_2404994.f_2203 = 1;
				}
				else if (fVar10 < fVar11)
				{
					if (iVar7 > -1)
					{
						func_1198(&(Global_2408977[iVar7 /*12*/]));
					}
					else
					{
						func_1198(&(Global_2408977[0 /*12*/]));
					}
					Global_2404994.f_2217 = 1;
				}
				Global_2404994.f_638 = 1;
				break;
			
			case 17:
				if (Global_2411314 > 0)
				{
					iVar20 = Global_2411314;
				}
				else
				{
					iVar20 = func_1182();
				}
				Global_2411314 = 0;
				if (!iVar20 > 0)
				{
				}
				iVar19 = iVar20;
				Global_2404994.f_525 = { Global_1049427[iVar19 /*1942*/].f_1742.f_20 };
				Global_2404994.f_525.f_3 = Global_1049427[iVar19 /*1942*/].f_1742.f_23;
				Global_2404994.f_2218 = 1;
				iVar2 = true;
				Global_2404994.f_638 = 1;
				if (Global_2404994.f_572 == 0)
				{
					Global_2404994.f_2205 = 1;
				}
				if (Global_2404994.f_572 == 0)
				{
					Global_2404994.f_2204 = 1;
				}
				Global_2404994.f_2203 = 1;
				break;
			
			case 18:
				if (Global_2411314 > 0)
				{
					iVar20 = Global_2411314;
				}
				else
				{
					iVar20 = func_1182();
				}
				Global_2411314 = 0;
				if (iVar20 <= 0)
				{
				}
				iVar19 = iVar20;
				switch (Global_1049427[iVar19 /*1942*/].f_34)
				{
					case 0:
					case 3:
						func_1184(iVar19, &(Global_2404994.f_525), &(Global_2404994.f_525.f_3));
						Global_2404994.f_2205 = 0;
						break;
					
					case 1:
					case 5:
						if (Global_2404994.f_572 == 0)
						{
							Global_2404994.f_2205 = 1;
						}
						Global_2404994.f_525 = { Global_1049427[iVar19 /*1942*/].f_1742.f_20 };
						Global_2404994.f_525.f_3 = Global_1049427[iVar19 /*1942*/].f_1742.f_23;
						Global_2404994.f_2218 = 1;
						break;
				}
				iVar2 = true;
				Global_2404994.f_638 = 1;
				if (Global_2404994.f_572 == 0)
				{
					Global_2404994.f_2204 = 1;
				}
				Global_2404994.f_2203 = 1;
				break;
			
			case 34:
				if (func_1179())
				{
					iVar50 = func_1178(func_456());
					if (iVar50 <= 0)
					{
					}
					func_1177(iVar50, &(Global_2404994.f_525), &(Global_2404994.f_525.f_3));
					iVar2 = true;
					Global_2404994.f_638 = 1;
				}
				else
				{
					Global_2404994.f_525 = { func_1170(func_456()) };
					Global_2404994.f_525.f_3 = gameplay::get_random_float_in_range(0f, 360f);
				}
				break;
			
			case 27:
				iVar50 = func_1169();
				if (iVar50 <= 0)
				{
				}
				func_1177(iVar50, &(Global_2404994.f_525), &(Global_2404994.f_525.f_3));
				iVar2 = true;
				Global_2404994.f_638 = 1;
				break;
			
			case 29:
				if (Global_2404994.f_2316 < 0)
				{
				}
				func_1177(Global_2404994.f_2316, &(Global_2404994.f_525), &(Global_2404994.f_525.f_3));
				iVar2 = true;
				Global_2404994.f_638 = 1;
				break;
			
			case 30:
				if (Global_2404994.f_2316 < 0)
				{
				}
				func_1167(0, Global_2404994.f_2316, &(Global_2404994.f_525), &(Global_2404994.f_525.f_3), 1);
				Global_2404994.f_525.f_4 = 150f;
				Global_2404994.f_525.f_7 = 0;
				Global_2404994.f_525.f_8 = { 0f, 0f, 0f };
				Global_2404994.f_525.f_11 = { 0f, 0f, 0f };
				Global_2404994.f_525.f_14 = 0f;
				Global_2404994.f_558 = { Global_2404994.f_525 };
				Global_2404994.f_561 = 12f;
				Global_2404994.f_499.f_13[0 /*3*/] = { Global_2404994.f_558 };
				Global_2404994.f_499.f_20[0] = Global_2404994.f_561;
				Global_2404994.f_499.f_6 = 1;
				Global_2404994.f_499.f_4 = 1;
				Global_2404994.f_499.f_3 = 0;
				Global_2404994.f_525.f_16 = 1;
				Global_2404994.f_499.f_5 = 5f;
				Global_2404994.f_525.f_22 = 0;
				Global_2404994.f_496 = 0;
				break;
			
			case 28:
				iVar50 = func_1169();
				switch (Global_3934109[iVar50 /*2003*/].f_34)
				{
					case 2:
						switch (func_1166())
						{
							case 4:
								Global_2404994.f_525 = { Global_3934109[iVar50 /*2003*/].f_146.f_82[4 /*102*/] };
								Global_2404994.f_525.f_3 = Global_3934109[iVar50 /*2003*/].f_146.f_82[4 /*102*/].f_3;
								break;
							
							case 5:
								Global_2404994.f_525 = { Global_3934109[iVar50 /*2003*/].f_146.f_82[1 /*102*/] };
								Global_2404994.f_525.f_3 = Global_3934109[iVar50 /*2003*/].f_146.f_82[1 /*102*/].f_3;
								break;
							
							default:
								func_1162(iVar50, &(Global_2404994.f_525), &(Global_2404994.f_525.f_3));
								break;
						}
						Global_2404994.f_2205 = 0;
						break;
				}
				gameplay::set_bit(&(Global_1589933[player::player_id() /*601*/].f_257.f_13), 4);
				iVar2 = true;
				Global_2404994.f_638 = 1;
				if (Global_2404994.f_572 == 0)
				{
					Global_2404994.f_2204 = 1;
				}
				Global_2404994.f_2206 = 1;
				Global_2404994.f_2203 = 1;
				break;
			
			case 19:
				iVar20 = func_1182();
				if (iVar20 <= 0)
				{
				}
				if (iVar20 > 115)
				{
					iVar20 = Global_2097152[func_371() /*10730*/].f_7546.f_1029;
				}
				if (iVar20 > 115)
				{
					iVar20 = 0;
				}
				iVar19 = iVar20;
				switch (Global_1049427[iVar19 /*1942*/].f_34)
				{
					case 0:
					case 3:
						switch (func_1166())
						{
							case 4:
								Global_2404994.f_525 = { Global_1049427[iVar19 /*1942*/].f_146.f_82[4 /*102*/] };
								Global_2404994.f_525.f_3 = Global_1049427[iVar19 /*1942*/].f_146.f_82[4 /*102*/].f_3;
								break;
							
							case 5:
								Global_2404994.f_525 = { Global_1049427[iVar19 /*1942*/].f_146.f_82[1 /*102*/] };
								Global_2404994.f_525.f_3 = Global_1049427[iVar19 /*1942*/].f_146.f_82[1 /*102*/].f_3;
								break;
							
							default:
								func_1184(iVar20, &(Global_2404994.f_525), &(Global_2404994.f_525.f_3));
								break;
						}
						Global_2404994.f_2205 = 0;
						break;
					
					case 1:
					case 5:
						if (Global_2404994.f_572 == 0)
						{
							Global_2404994.f_2205 = 1;
						}
						Global_2404994.f_525 = { Global_1049427[iVar19 /*1942*/].f_1742.f_20 };
						Global_2404994.f_525.f_3 = Global_1049427[iVar19 /*1942*/].f_1742.f_23;
						Global_2404994.f_2218 = 1;
						break;
				}
				gameplay::set_bit(&(Global_1589933[player::player_id() /*601*/].f_257.f_13), 4);
				iVar2 = true;
				Global_2404994.f_638 = 1;
				if (Global_2404994.f_572 == 0)
				{
					Global_2404994.f_2204 = 1;
				}
				Global_2404994.f_2203 = 1;
				break;
			
			case 35:
				iVar20 = func_1188(5, -1);
				if (iVar20 <= 0)
				{
				}
				else
				{
					func_1161(iVar20);
				}
				iVar19 = iVar20;
				switch (func_1166())
				{
					case 4:
						Global_2404994.f_525 = { Global_1049427[iVar19 /*1942*/].f_146.f_82[4 /*102*/] };
						Global_2404994.f_525.f_3 = Global_1049427[iVar19 /*1942*/].f_146.f_82[4 /*102*/].f_3;
						break;
					
					case 5:
						func_1155(iVar19, 612, &Var101, func_1160(iVar19), 0);
						Global_2404994.f_525 = { Var101 };
						Global_2404994.f_525.f_3 = Var101.f_3.f_2;
						break;
					
					default:
						func_1184(iVar20, &(Global_2404994.f_525), &(Global_2404994.f_525.f_3));
						break;
				}
				iVar2 = true;
				Global_2404994.f_638 = 1;
				if (Global_2404994.f_572 == 0)
				{
					Global_2404994.f_2204 = 1;
				}
				Global_2404994.f_2203 = 1;
				break;
			
			case 36:
				iVar20 = func_1188(6, -1);
				if (iVar20 <= 0)
				{
					if (Global_2404994.f_2210 == 0)
					{
					}
				}
				else
				{
					func_1161(iVar20);
				}
				if (Global_2404994.f_2211 > -1)
				{
					iVar20 = Global_2404994.f_2211;
					Global_2404994.f_2211 = -1;
				}
				iVar19 = iVar20;
				switch (func_1166())
				{
					case 5:
						func_1155(iVar19, 612, &Var107, func_1160(iVar19), 0);
						Global_2404994.f_525 = { Var107 };
						Global_2404994.f_525.f_3 = Var107.f_3.f_2;
						break;
					
					case 6:
						func_1155(iVar19, 912, &Var107, func_1160(iVar19), 0);
						Global_2404994.f_525 = { Var107 };
						Global_2404994.f_525.f_3 = Var107.f_3.f_2;
						break;
					
					default:
						func_1184(iVar20, &(Global_2404994.f_525), &(Global_2404994.f_525.f_3));
						break;
				}
				iVar2 = true;
				Global_2404994.f_638 = 1;
				if (Global_2404994.f_572 == 0)
				{
					Global_2404994.f_2204 = 1;
				}
				Global_2404994.f_2203 = 1;
				break;
			
			case 4:
				if (!network::_0xFB1F9381E80FA13F(0, &(Global_2404994.f_525)))
				{
					Global_2404994.f_525 = { func_1154() };
					Global_2404994.f_525 = { func_1153(Global_2404994.f_525, 50f, 25f) };
				}
				Global_2404994.f_525.f_3 = gameplay::get_random_float_in_range(0f, 360f);
				break;
			
			case 31:
				if (func_56(player::player_id()))
				{
					iVar99 = func_1152(player::player_id(), 1);
					if (!iVar99 == func_45())
					{
						Global_2404994.f_525 = { func_1170(iVar99) };
					}
					else
					{
						Global_2404994.f_525 = { func_1170(player::player_id()) };
					}
				}
				else
				{
					Global_2404994.f_525 = { func_1170(func_456()) };
				}
				Global_2404994.f_525.f_3 = 0f;
				Global_2404994.f_525.f_4 = 50f;
				Global_2404994.f_525.f_7 = 0;
				Global_2404994.f_525.f_8 = { 0f, 0f, 0f };
				Global_2404994.f_525.f_11 = { 0f, 0f, 0f };
				Global_2404994.f_525.f_14 = 0f;
				Global_2404994.f_558 = { Global_2404994.f_525 };
				Global_2404994.f_561 = 2f;
				Global_2404994.f_499.f_13[0 /*3*/] = { Global_2404994.f_558 };
				Global_2404994.f_499.f_20[0] = Global_2404994.f_561;
				Global_2404994.f_499.f_6 = 0;
				Global_2404994.f_499 = { Global_2404994.f_525 };
				Global_2404994.f_499.f_4 = 1;
				Global_2404994.f_499.f_3 = 0;
				Global_2404994.f_525.f_16 = 1;
				Global_2404994.f_525.f_17 = 1;
				Global_2404994.f_496 = 1;
				break;
			
			case 33:
				if (func_56(player::player_id()))
				{
					iVar99 = func_1152(player::player_id(), 1);
					if (!iVar99 == func_45())
					{
						Global_2404994.f_525 = { func_1170(iVar99) };
					}
					else
					{
						Global_2404994.f_525 = { func_1170(player::player_id()) };
					}
				}
				else
				{
					Global_2404994.f_525 = { func_1170(func_456()) };
				}
				Global_2404994.f_525.f_3 = 0f;
				Global_2404994.f_525.f_4 = 50f;
				Global_2404994.f_525.f_7 = 0;
				Global_2404994.f_525.f_8 = { 0f, 0f, 0f };
				Global_2404994.f_525.f_11 = { 0f, 0f, 0f };
				Global_2404994.f_525.f_14 = 0f;
				Global_2404994.f_558 = { Global_2404994.f_525 };
				Global_2404994.f_561 = 2f;
				Global_2404994.f_499.f_13[0 /*3*/] = { Global_2404994.f_558 };
				Global_2404994.f_499.f_20[0] = Global_2404994.f_561;
				Global_2404994.f_499.f_6 = 0;
				Global_2404994.f_499 = { Global_2404994.f_525 };
				Global_2404994.f_499.f_4 = 1;
				Global_2404994.f_499.f_3 = 0;
				Global_2404994.f_525.f_16 = 1;
				Global_2404994.f_525.f_17 = 1;
				Global_2404994.f_496 = 1;
				break;
			
			case 5:
				Global_2404994.f_525 = { func_640(player::player_id()) };
				Global_2404994.f_558 = { Global_2404994.f_525 };
				Global_2404994.f_561 = 20f;
				Global_2404994.f_499.f_13[0 /*3*/] = { Global_2404994.f_558 };
				Global_2404994.f_499.f_20[0] = Global_2404994.f_561;
				Global_2404994.f_525.f_3 = gameplay::get_random_float_in_range(0f, 360f);
				Global_2404994.f_499.f_6 = 1;
				Global_2404994.f_525.f_4 = 150f;
				break;
			
			case 37:
				Global_2404994.f_525 = { func_640(player::player_id()) };
				Global_2404994.f_558 = { Global_2404994.f_525 };
				Global_2404994.f_561 = 0.01f;
				Global_2404994.f_499.f_13[0 /*3*/] = { Global_2404994.f_558 };
				Global_2404994.f_499.f_20[0] = Global_2404994.f_561;
				Global_2404994.f_525.f_3 = gameplay::get_random_float_in_range(0f, 360f);
				Global_2404994.f_499.f_6 = 1;
				Global_2404994.f_525.f_4 = 150f;
				break;
			
			case 38:
				Global_2404994.f_525 = { func_1170(player::player_id()) };
				Global_2404994.f_558 = { Global_2404994.f_525 };
				Global_2404994.f_561 = 0.01f;
				Global_2404994.f_499.f_13[0 /*3*/] = { Global_2404994.f_558 };
				Global_2404994.f_499.f_20[0] = Global_2404994.f_561;
				Global_2404994.f_525.f_3 = gameplay::get_random_float_in_range(0f, 360f);
				Global_2404994.f_499.f_6 = 1;
				Global_2404994.f_525.f_4 = 150f;
				break;
			
			case 21:
				Global_2404994.f_525 = { func_1151(func_640(player::player_id()), 200f) };
				Global_2404994.f_558 = { Global_2404994.f_525 };
				Global_2404994.f_561 = 0f;
				Global_2404994.f_499.f_13[0 /*3*/] = { Global_2404994.f_558 };
				Global_2404994.f_499.f_20[0] = Global_2404994.f_561;
				Global_2404994.f_525.f_3 = gameplay::get_random_float_in_range(0f, 360f);
				Global_2404994.f_499.f_6 = 0;
				Global_2404994.f_525.f_4 = 150f;
				break;
			
			case 6:
				Global_2404994.f_525 = { func_640(player::player_id()) };
				Global_2404994.f_525.f_3 = gameplay::get_random_float_in_range(0f, 360f);
				break;
			
			case 14:
				if (!Global_2412527.f_10)
				{
				}
				else
				{
					Global_2404994.f_525 = { 0f, 0f, 0f };
					Global_2404994.f_525.f_3 = 0f;
					Global_2404994.f_525.f_4 = 0f;
					Global_2404994.f_525.f_7 = 2;
					Global_2404994.f_525.f_8 = { Global_2412527.f_11 };
					Global_2404994.f_525.f_11 = { Global_2412527.f_14 };
					Global_2404994.f_525.f_14 = Global_2412527.f_17;
					Global_2404994.f_558 = { 0f, 0f, 0f };
					Global_2404994.f_561 = 0f;
					Global_2404994.f_499.f_13[0 /*3*/] = { Global_2404994.f_558 };
					Global_2404994.f_499.f_20[0] = Global_2404994.f_561;
					Global_2404994.f_499.f_6 = Global_2412527.f_22;
					if (system::vmag(Global_2412527.f_18) > 0f)
					{
						Global_2404994.f_499 = { Global_2412527.f_18 };
					}
					else
					{
						Global_2404994.f_499 = { Global_2412527.f_11 + Global_2412527.f_14 / Vector(2f, 2f, 2f) };
					}
					Global_2404994.f_499.f_4 = Global_2412527.f_8;
					Global_2404994.f_499.f_3 = Global_2412527.f_9;
					Global_2404994.f_525.f_16 = Global_2412527.f_7;
					Global_2404994.f_499.f_5 = Global_2412527.f_21;
					Global_2404994.f_525.f_22 = Global_2412527.f_23;
				}
				break;
			
			case 10:
				if (Global_2412527.f_10)
				{
				}
				else
				{
					Global_2404994.f_525 = { Global_2412527 };
					Global_2404994.f_525.f_3 = Global_2412527.f_5;
					Global_2404994.f_525.f_4 = Global_2412527.f_4;
					Global_2404994.f_525.f_7 = 0;
					Global_2404994.f_525.f_8 = { 0f, 0f, 0f };
					Global_2404994.f_525.f_11 = { 0f, 0f, 0f };
					Global_2404994.f_525.f_14 = 0f;
					Global_2404994.f_558 = { Global_2404994.f_525 };
					Global_2404994.f_561 = Global_2412527.f_3;
					Global_2404994.f_499.f_13[0 /*3*/] = { Global_2404994.f_558 };
					Global_2404994.f_499.f_20[0] = Global_2404994.f_561;
					Global_2404994.f_499.f_6 = Global_2412527.f_22;
					Global_2404994.f_499 = { Global_2412527 };
					Global_2404994.f_499.f_4 = Global_2412527.f_8;
					Global_2404994.f_499.f_3 = Global_2412527.f_9;
					Global_2404994.f_525.f_16 = Global_2412527.f_7;
					Global_2404994.f_499.f_5 = Global_2412527.f_21;
					Global_2404994.f_525.f_22 = Global_2412527.f_23;
					Global_2404994.f_496 = Global_2412527.f_24;
				}
				break;
			
			case 32:
				if (Global_2412527.f_10)
				{
				}
				else
				{
					Global_2404994.f_525 = { Global_2412527 };
					Global_2404994.f_525.f_3 = Global_2412527.f_5;
					Global_2404994.f_525.f_4 = Global_2412527.f_4;
					Global_2404994.f_525.f_7 = 0;
					Global_2404994.f_525.f_8 = { 0f, 0f, 0f };
					Global_2404994.f_525.f_11 = { 0f, 0f, 0f };
					Global_2404994.f_525.f_14 = 0f;
					Global_2404994.f_558 = { Global_2404994.f_525 };
					Global_2404994.f_561 = Global_2412527.f_3;
					Global_2404994.f_499.f_13[0 /*3*/] = { Global_2404994.f_558 };
					Global_2404994.f_499.f_20[0] = Global_2404994.f_561;
					Global_2404994.f_499.f_6 = Global_2412527.f_22;
					Global_2404994.f_499 = { Global_2412527 };
					Global_2404994.f_499.f_4 = Global_2412527.f_8;
					Global_2404994.f_499.f_3 = Global_2412527.f_9;
					Global_2404994.f_525.f_16 = Global_2412527.f_7;
					Global_2404994.f_499.f_5 = Global_2412527.f_21;
					Global_2404994.f_525.f_22 = Global_2412527.f_23;
					Global_2404994.f_496 = Global_2412527.f_24;
					if (func_1063(Global_2404994.f_525, Global_2404994.f_525.f_4, &(Global_2404994.f_525), 0))
					{
						if (Global_2404994.f_525.f_4 > 50f)
						{
							Global_2404994.f_525.f_4 = 50f;
						}
						Global_2404994.f_558 = { Global_2404994.f_525 };
						Global_2404994.f_561 = 1.5f;
						Global_2404994.f_499.f_5 = 1.5f;
						Global_2404994.f_499.f_6 = 1;
						Global_2404994.f_525.f_16 = 0;
						Global_2404994.f_525.f_17 = 1;
						Global_2404994.f_499 = { Global_2404994.f_525 };
						Global_2404994.f_499.f_3 = interior::is_valid_interior(interior::get_interior_at_coords(Global_2404994.f_525));
					}
					else
					{
						Global_2404994.f_498 = 1;
					}
				}
				break;
			
			case 16:
				if (Global_2404994.f_477.f_3 && !func_1150(Global_2412527))
				{
					Global_2404994.f_525 = { func_1149() };
					Global_2404994.f_525.f_3 = Global_2412527.f_5;
					Global_2404994.f_525.f_4 = Global_2412527.f_4;
					iVar2 = true;
					iParam2 = false;
					Global_2404994.f_2218 = 1;
				}
				else
				{
					Global_2404994.f_525 = { Global_2412527 };
					Global_2404994.f_525.f_3 = Global_2412527.f_5;
					Global_2404994.f_525.f_4 = Global_2412527.f_4;
					iVar2 = true;
					iParam2 = false;
					if (!Global_2404994.f_477.f_3)
					{
						Global_2404994.f_2218 = 1;
					}
				}
				break;
			
			case 11:
				if (Global_2412527.f_10)
				{
				}
				else
				{
					Global_2404994.f_525 = { Global_2412527 };
					Global_2404994.f_525.f_3 = Global_2412527.f_5;
					Global_2404994.f_525.f_4 = Global_2412527.f_4;
					Global_2404994.f_2218 = 1;
					iVar2 = true;
					iParam2 = false;
				}
				break;
			
			case 13:
				if (Global_2412527.f_10)
				{
				}
				else if (Global_2404994.f_2032 == 1)
				{
					Global_2404994.f_525 = { Global_2412527 };
					Global_2404994.f_525.f_3 = Global_2412527.f_5;
					Global_2404994.f_525.f_4 = Global_2412527.f_4;
					iVar2 = true;
				}
				else
				{
					Global_2404994.f_525 = { Global_2412527 };
					Global_2404994.f_525.f_3 = Global_2412527.f_5;
					Global_2404994.f_525.f_4 = Global_2412527.f_4;
					Global_2404994.f_558 = { Global_2404994.f_525 };
					if (Global_2412527.f_3 < (Global_2412527.f_4 / 2f))
					{
						Global_2404994.f_561 = (Global_2412527.f_4 / 2f);
					}
					else
					{
						Global_2404994.f_561 = Global_2412527.f_3;
					}
					Global_2404994.f_499.f_13[0 /*3*/] = { Global_2404994.f_558 };
					Global_2404994.f_499.f_20[0] = Global_2404994.f_561;
					Global_2404994.f_499.f_6 = 1;
				}
				if (func_973(&(Global_2404994.f_525), 0, 0, 0))
				{
					Global_2404994.f_496 = 1;
				}
				break;
		}
		if (system::vmag(Global_2404994.f_499) > 0f)
		{
			Global_2404994.f_2201 = 1;
		}
		if (iParam2 && iParam4 == 0)
		{
			if (func_1225())
			{
				Global_2404994.f_552 = 4;
			}
			else
			{
				if (Global_2404994.f_43.f_303)
				{
					vVar21 = { Global_2404994.f_499 };
					if (system::vmag(vVar21) == 0f)
					{
						vVar21 = { Global_2404994.f_525 };
					}
					if (!func_1148(vVar21))
					{
						Global_2404994.f_525.f_23 = 0;
					}
				}
				Global_2404994.f_525.f_24 = Global_2404994.f_43.f_304;
				Global_2404994.f_552 = 3;
			}
		}
		else if (iVar2)
		{
			Var24[0 /*3*/] = { Global_2404994.f_525 };
			Var24.f_10[0] = Global_2404994.f_525.f_3;
			Global_2404994.f_552 = 0;
			Global_2404994.f_554 = 0;
			Global_2404994.f_616 = 0;
			Global_2404994.f_617 = 0;
			Global_2404994.f_2031 = 0;
			Global_2404994.f_2032 = 0;
			Global_2404994.f_2030 = 0;
			*uParam0 = { Var24 };
			return true;
		}
		else
		{
			func_1147();
		}
	}
	if (Global_2404994.f_552 == 3)
	{
		if (iParam2)
		{
			switch (Global_2404994.f_525.f_7)
			{
				case 0:
					fVar3 = (Global_2404994.f_525 - Global_2404994.f_525.f_4);
					fVar5 = (Global_2404994.f_525.f_1 - Global_2404994.f_525.f_4);
					fVar4 = (Global_2404994.f_525 + Global_2404994.f_525.f_4);
					fVar6 = (Global_2404994.f_525.f_1 + Global_2404994.f_525.f_4);
					break;
				
				case 1:
					if (Global_2404994.f_525.f_8 < Global_2404994.f_525.f_11)
					{
						fVar3 = Global_2404994.f_525.f_8;
						fVar4 = Global_2404994.f_525.f_11;
					}
					else
					{
						fVar3 = Global_2404994.f_525.f_11;
						fVar4 = Global_2404994.f_525.f_8;
					}
					if (Global_2404994.f_525.f_8.f_1 < Global_2404994.f_525.f_11.f_1)
					{
						fVar5 = Global_2404994.f_525.f_8.f_1;
						fVar6 = Global_2404994.f_525.f_11.f_1;
					}
					else
					{
						fVar5 = Global_2404994.f_525.f_11.f_1;
						fVar6 = Global_2404994.f_525.f_8.f_1;
					}
					break;
				
				case 2:
					if (Global_2404994.f_525.f_8 < Global_2404994.f_525.f_11)
					{
						fVar3 = (Global_2404994.f_525.f_8 - (0.5f * Global_2404994.f_525.f_14));
						fVar4 = (Global_2404994.f_525.f_11 + (0.5f * Global_2404994.f_525.f_14));
					}
					else
					{
						fVar3 = (Global_2404994.f_525.f_11 - (0.5f * Global_2404994.f_525.f_14));
						fVar4 = (Global_2404994.f_525.f_8 + (0.5f * Global_2404994.f_525.f_14));
					}
					if (Global_2404994.f_525.f_8.f_1 < Global_2404994.f_525.f_11.f_1)
					{
						fVar5 = (Global_2404994.f_525.f_8.f_1 - (0.5f * Global_2404994.f_525.f_14));
						fVar6 = (Global_2404994.f_525.f_11.f_1 + (0.5f * Global_2404994.f_525.f_14));
					}
					else
					{
						fVar5 = (Global_2404994.f_525.f_11.f_1 - (0.5f * Global_2404994.f_525.f_14));
						fVar6 = (Global_2404994.f_525.f_8.f_1 + (0.5f * Global_2404994.f_525.f_14));
					}
					break;
				}
		}
		pathfind::_0x07FB139B592FA687(fVar3, fVar5, fVar4, fVar6);
		if (pathfind::_0xF7B79A50B905A30D(fVar3, fVar5, fVar4, fVar6))
		{
			if (Global_2404994.f_525.f_21)
			{
				Var24[0 /*3*/] = { Global_2404994.f_525.f_18 };
				Var24.f_10[0] = Global_2404994.f_525.f_3;
			}
			else
			{
				Var24[0 /*3*/] = { Global_2404994.f_525 };
				Var24.f_10[0] = Global_2404994.f_525.f_3;
			}
			Var113.f_6 = 1082130432;
			Var113.f_7 = 1176255488;
			Var113.f_8 = 1;
			Var113.f_10 = 1;
			Var113.f_13 = 1;
			Var113.f_15 = 1;
			Var113.f_16 = 1;
			Var113.f_31 = 1;
			Var113.f_34 = joaat("tailgater");
			Var113.f_38 = 2;
			Var113.f_45 = 2;
			Var113.f_49 = 1123024896;
			Var113.f_53 = 999;
			Var113.f_54 = 1176256410;
			Var113.f_55 = 1;
			Var113.f_56 = 1;
			Var113.f_57 = 1;
			Var113 = { Global_2404994.f_499 };
			Var113.f_4 = Global_2404994.f_561;
			Var113.f_12 = iParam2;
			Var113.f_3 = Global_2404994.f_499.f_5;
			Var113.f_5 = fVar98;
			Var113.f_16 = Global_2404994.f_525.f_23;
			if (Global_2404994.f_499.f_25 > 0f)
			{
				Var113.f_6 = Global_2404994.f_499.f_25;
			}
			Var113.f_18 = 1;
			switch (Global_2404994.f_525.f_7)
			{
				case 0:
					Var113.f_19 = { Global_2404994.f_525 };
					Var113.f_25 = Global_2404994.f_525.f_4;
					Var113.f_4 = 0f;
					break;
				
				case 1:
					Var113.f_19 = { Global_2404994.f_525.f_8 };
					Var113.f_22 = { Global_2404994.f_525.f_11 };
					Var113.f_25 = 0f;
					break;
				
				case 2:
					Var113.f_19 = { Global_2404994.f_525.f_8 };
					Var113.f_22 = { Global_2404994.f_525.f_11 };
					Var113.f_25 = Global_2404994.f_525.f_14;
					break;
			}
			Var113.f_26 = Global_2404994.f_525.f_7;
			if ((func_403() && func_1228()) && func_973(&(Global_2404994.f_493), 0, 0, 0))
			{
				Var113.f_10 = 0;
			}
			Var113.f_9 = uParam5;
			Var113.f_11 = func_1146();
			if (Global_2404994.f_499.f_6)
			{
				Var113.f_30 = 1;
				Var113.f_29 = 0;
			}
			else
			{
				Var113.f_30 = 0;
				Var113.f_29 = 1;
			}
			if (Global_2404994.f_476 == 3)
			{
				Var113.f_28 = 1;
				Var113.f_29 = 1;
				Var113.f_30 = 0;
			}
			else if (Global_2404994.f_476 == 26)
			{
				Var113.f_28 = 1;
				Var113.f_30 = 1;
				Var113.f_29 = 0;
				Var113.f_32 = 1;
			}
			if (Global_2404994.f_476 == 1)
			{
				Var113.f_7 = 15f;
			}
			if (Global_2404994.f_43.f_305 > 0f)
			{
				Var113.f_7 = Global_2404994.f_43.f_305;
			}
			Var113.f_17 = uParam6;
			Var113.f_55 = Global_2404994.f_525.f_16;
			func_937(&(Var24[0 /*3*/]), &(Var24.f_10[0]), &Var113);
			iVar0 = 0;
			while (iVar0 < 3)
			{
				if (iVar0 < Global_2411146.f_162 && iVar0 > 0)
				{
					Var24[iVar0 /*3*/] = { Global_2411146[iVar0 /*3*/] };
					Var24.f_10[iVar0] = Global_2411146.f_121[iVar0];
				}
				iVar0++;
			}
			if (Var113.f_11 && Var113.f_27)
			{
				Global_2404994.f_43.f_298 = 1;
			}
			else
			{
				Global_2404994.f_43.f_298 = 0;
			}
			Global_2404994.f_555++;
			Global_2404994.f_553 = 3;
			Global_2404994.f_552 = 5;
		}
	}
	if (Global_2404994.f_552 == 4)
	{
		iVar0 = 0;
		while (iVar0 < 3)
		{
			Var24[iVar0 /*3*/] = { Global_2404994.f_525.f_18 };
			if (((iVar0 == 0 && Global_2404994.f_476 == 26) && Global_2404994.f_525.f_25) && func_1140(&(Var24[iVar0 /*3*/])))
			{
			}
			else
			{
				switch (Global_2404994.f_525.f_7)
				{
					case 0:
						Var24[iVar0 /*3*/] = { func_1137(Global_2404994.f_525, 0f, 0f, 0f, Global_2404994.f_525.f_4, Global_2404994.f_525.f_7) };
						break;
					
					case 1:
						Var24[iVar0 /*3*/] = { func_1137(Global_2404994.f_525.f_8, Global_2404994.f_525.f_11, 0f, Global_2404994.f_525.f_7) };
						break;
					
					case 2:
						Var24[iVar0 /*3*/] = { func_1137(Global_2404994.f_525.f_8, Global_2404994.f_525.f_11, Global_2404994.f_525.f_14, Global_2404994.f_525.f_7) };
						break;
					}
			}
			if (system::vmag(Global_2404994.f_499) > 0f)
			{
				vVar21 = { Global_2404994.f_499 - Var24[iVar0 /*3*/] };
				Var24.f_10[iVar0] = gameplay::get_heading_from_vector_2d(vVar21.x, vVar21.y);
			}
			iVar0++;
		}
		Global_2404994.f_43.f_298 = 0;
		Global_2404994.f_555++;
		Global_2404994.f_553 = 4;
		Global_2404994.f_552 = 5;
	}
	if (Global_2404994.f_552 == 5)
	{
		if (Global_2404994.f_476 == 11 && Global_2404994.f_43.f_59 > 0f)
		{
			if (system::vdist(Var24[0 /*3*/], Global_2404994.f_43.f_60) > system::vdist(Global_2412527, Global_2404994.f_43.f_60))
			{
				Var24[0 /*3*/] = { Global_2412527 };
				Var24.f_10[0] = Global_2412527.f_5;
			}
		}
		iVar0 = 0;
		while (iVar0 < 3)
		{
			if ((func_1136(Global_2404994.f_476) && !func_993(Var24[iVar0 /*3*/], 0.01f)) && !func_1225())
			{
				if (iVar0 == 2 || system::vmag(Var24[iVar0 + 1 /*3*/]) == 0f)
				{
					if ((Global_2404994.f_553 == 4 || Global_2404994.f_553 == 3) && Global_2404994.f_555 < 2)
					{
						Global_2404994.f_552 = Global_2404994.f_553;
						iVar0 = 3;
					}
					else if (Global_2404994.f_525.f_24)
					{
						func_1147();
					}
					else
					{
						func_1135(&Var24, &iVar0);
					}
				}
			}
			else if ((func_1026(Var24[iVar0 /*3*/], 3.5f, 1, 1, 0, 0, 0, 0) || func_940(Var24[iVar0 /*3*/], 0.5f, player::player_id(), 0, 0)) || Global_2404994.f_43.f_298)
			{
				if (iVar0 == 2 || system::vmag(Var24[iVar0 + 1 /*3*/]) == 0f)
				{
					if ((Global_2404994.f_553 == 4 || Global_2404994.f_553 == 3) && Global_2404994.f_555 < 2)
					{
						Global_2404994.f_552 = Global_2404994.f_553;
						iVar0 = 3;
					}
					else if (Global_2404994.f_525.f_24)
					{
						func_1147();
					}
					else
					{
						func_1135(&Var24, &iVar0);
					}
				}
			}
			else
			{
				func_1135(&Var24, &iVar0);
			}
			iVar0++;
		}
	}
	if (Global_2404994.f_552 == 6)
	{
		if (Global_2404994.f_554 == 2 || Global_2404994.f_525.f_16 == 0)
		{
			iVar1 = 0;
		}
		else
		{
			iVar1 = iParam3;
		}
		if (Global_2404994.f_525.f_7 == 0)
		{
			if (Global_2404994.f_499.f_5 > (Global_2404994.f_525.f_4 * 2f))
			{
				Global_2404994.f_499.f_5 = (Global_2404994.f_525.f_4 * 2f);
			}
		}
		Global_2404994.f_525.f_5 = 1;
		Global_2404994.f_525.f_6 = iVar1;
		Global_2404994.f_525.f_15 = Global_2404994.f_43.f_65;
		Global_2404994.f_499.f_8 = 0;
		Global_2404994.f_499.f_9 = func_1146();
		Global_2404994.f_499.f_10 = 0;
		if (func_1068(&(Global_2404994.f_525), &(Global_2404994.f_499), &Var24))
		{
			Global_2404994.f_492 = 0;
			Global_2404994.f_552 = 2;
		}
	}
	if (Global_2404994.f_552 == 2)
	{
		*uParam0 = { Var24 };
		Global_2404994.f_552 = 0;
		Global_2404994.f_554 = 0;
		Global_2404994.f_616 = 0;
		Global_2404994.f_617 = 0;
		Global_2404994.f_2031 = 0;
		Global_2404994.f_2032 = 0;
		Global_2404994.f_2030 = 0;
		return true;
	}
	return false;
}

bool func_1068(var uParam0, var uParam1, var uParam2)//Position - 0x8D69E
{
	int iVar0;
	vector3 vVar1;
	float fVar4;
	float fVar5;
	float fVar6;
	float fVar7;
	vector3 vVar8;
	vector3 vVar11;
	vector3 vVar14;
	int iVar17;
	vector3 vVar18;
	vector3 vVar21;
	var uVar24;
	int iVar25;
	struct<56> Var26;
	int iVar84;
	
	iVar25 = false;
	switch (uParam0->f_7)
	{
		case 0:
			if (((!Global_2404994.f_2019 == *uParam0 || !Global_2404994.f_2019.f_1 == uParam0->f_1) || !Global_2404994.f_2019.f_2 == uParam0->f_2) || !Global_2404994.f_2022 == uParam0->f_4)
			{
				iVar25 = true;
			}
			break;
		
		case 1:
			if (((((!Global_2404994.f_2033 == uParam0->f_8 || !Global_2404994.f_2033.f_1 == uParam0->f_8.f_1) || !Global_2404994.f_2033.f_2 == uParam0->f_8.f_2) || !Global_2404994.f_2036 == uParam0->f_11) || !Global_2404994.f_2036.f_1 == uParam0->f_11.f_1) || !Global_2404994.f_2036.f_2 == uParam0->f_11.f_2)
			{
				iVar25 = true;
			}
			break;
		
		case 2:
			if ((((((!Global_2404994.f_2033 == uParam0->f_8 || !Global_2404994.f_2033.f_1 == uParam0->f_8.f_1) || !Global_2404994.f_2033.f_2 == uParam0->f_8.f_2) || !Global_2404994.f_2036 == uParam0->f_11) || !Global_2404994.f_2036.f_1 == uParam0->f_11.f_1) || !Global_2404994.f_2036.f_2 == uParam0->f_11.f_2) || !Global_2404994.f_2039 == uParam0->f_14)
			{
				iVar25 = true;
			}
			break;
	}
	if (iVar25)
	{
		if (Global_2404994.f_2017 == 1)
		{
			if (script::is_thread_active(Global_2404994.f_2026))
			{
				if (Global_2404994.f_2026 == script::get_id_of_this_thread())
				{
					if (network::get_time_difference(network::get_network_time(), Global_2404994.f_2023) < func_1229(0))
					{
						return false;
					}
				}
				else if (network::get_time_difference(network::get_network_time(), Global_2404994.f_2023) < func_1229(0))
				{
					return false;
				}
			}
			network::_0xFB8F2A6F3DF08CBE();
			ped::_0xFEE4A5459472A9F8();
			func_1134();
		}
		Global_2404994.f_2017 = 0;
	}
	else if (network::get_time_difference(network::get_network_time(), Global_2404994.f_2023) > func_1229(0))
	{
		Global_2404994.f_2024 = network::get_network_time();
	}
	switch (uParam0->f_7)
	{
		case 0:
			fVar4 = (*uParam0 - uParam0->f_4);
			fVar5 = (uParam0->f_1 - uParam0->f_4);
			fVar6 = (*uParam0 + uParam0->f_4);
			fVar7 = (uParam0->f_1 + uParam0->f_4);
			break;
		
		case 1:
			if (uParam0->f_8 < uParam0->f_11)
			{
				fVar4 = uParam0->f_8;
				fVar6 = uParam0->f_11;
			}
			else
			{
				fVar4 = uParam0->f_11;
				fVar6 = uParam0->f_8;
			}
			if (uParam0->f_8.f_1 < uParam0->f_11.f_1)
			{
				fVar5 = uParam0->f_8.f_1;
				fVar7 = uParam0->f_11.f_1;
			}
			else
			{
				fVar5 = uParam0->f_11.f_1;
				fVar7 = uParam0->f_8.f_1;
			}
			break;
		
		case 2:
			if (uParam0->f_8 < uParam0->f_11)
			{
				fVar4 = (uParam0->f_8 - (0.5f * uParam0->f_14));
				fVar6 = (uParam0->f_11 + (0.5f * uParam0->f_14));
			}
			else
			{
				fVar4 = (uParam0->f_11 - (0.5f * uParam0->f_14));
				fVar6 = (uParam0->f_8 + (0.5f * uParam0->f_14));
			}
			if (uParam0->f_8.f_1 < uParam0->f_11.f_1)
			{
				fVar5 = (uParam0->f_8.f_1 - (0.5f * uParam0->f_14));
				fVar7 = (uParam0->f_11.f_1 + (0.5f * uParam0->f_14));
			}
			else
			{
				fVar5 = (uParam0->f_11.f_1 - (0.5f * uParam0->f_14));
				fVar7 = (uParam0->f_8.f_1 + (0.5f * uParam0->f_14));
			}
			break;
	}
	pathfind::_0x07FB139B592FA687(fVar4, fVar5, fVar6, fVar7);
	if (uParam0->f_7 == 0)
	{
		vVar8 = { *uParam0 };
	}
	else
	{
		vVar8 = { uParam0->f_8 + uParam0->f_11 * Vector(0.5f, 0.5f, 0.5f) };
	}
	vVar11 = { vVar8 + Vector(-0.1f, -0.1f, -0.1f) };
	vVar14 = { vVar8 + Vector(0.1f, 0.1f, 0.1f) };
	if (!Global_2404994.f_2017)
	{
		network::_0xFB8F2A6F3DF08CBE();
		ped::_0xFEE4A5459472A9F8();
		func_1134();
		if (uParam1->f_7 && uParam0->f_7 == 0)
		{
			if (system::vmag(*uParam0) > 0f)
			{
				if (func_978(*uParam0, 6f, 1f, 1f, 5f, 1, 1, 1, 120f, 0, -1, 1, uParam1->f_5, uParam0->f_17, 0, 0, 0))
				{
					*(uParam2[0 /*3*/]) = { *uParam0 };
					uParam2->f_10[0] = uParam0->f_3;
					return true;
				}
			}
		}
		if (!ped::_0x3C67506996001F5E())
		{
			Global_2404994.f_2040 = uParam0->f_7;
			switch (uParam0->f_7)
			{
				case 0:
					Global_2404994.f_2019 = { *uParam0 };
					Global_2404994.f_2022 = uParam0->f_4;
					break;
				
				case 1:
					Global_2404994.f_2033 = { uParam0->f_8 };
					Global_2404994.f_2036 = { uParam0->f_11 };
					Global_2404994.f_2039 = 0f;
					Global_2404994.f_2019 = { uParam0->f_8 + uParam0->f_11 / Vector(2f, 2f, 2f) };
					break;
				
				case 2:
					Global_2404994.f_2033 = { uParam0->f_8 };
					Global_2404994.f_2036 = { uParam0->f_11 };
					Global_2404994.f_2039 = uParam0->f_14;
					Global_2404994.f_2019 = { uParam0->f_8 + uParam0->f_11 / Vector(2f, 2f, 2f) };
					break;
			}
			if (!uParam1->f_8 && !uParam1->f_9)
			{
				func_1133(vVar8.x, vVar8.y);
			}
			Global_2404994.f_2018 = 1;
			Global_2404994.f_2017 = 1;
			Global_2404994.f_2024 = network::get_network_time();
			Global_2404994.f_2023 = network::get_network_time();
			Global_2404994.f_2026 = script::get_id_of_this_thread();
		}
		else
		{
			return false;
		}
	}
	if (Global_2404994.f_2017)
	{
		if (Global_2404994.f_2018 == 1)
		{
			if (pathfind::_0xF7B79A50B905A30D(fVar4, fVar5, fVar6, fVar7) || network::get_time_difference(network::get_network_time(), Global_2404994.f_2024) > 5000)
			{
				Global_2404994.f_2024 = network::get_network_time();
				if (uParam1->f_8 || uParam1->f_9)
				{
					if (uParam0->f_21)
					{
						*(uParam2[0 /*3*/]) = { uParam0->f_18 };
					}
					else
					{
						*(uParam2[0 /*3*/]) = { vVar8 };
					}
					Var26.f_6 = 1082130432;
					Var26.f_7 = 1176255488;
					Var26.f_8 = 1;
					Var26.f_10 = 1;
					Var26.f_13 = 1;
					Var26.f_15 = 1;
					Var26.f_16 = 1;
					Var26.f_31 = 1;
					Var26.f_34 = joaat("tailgater");
					Var26.f_38 = 2;
					Var26.f_45 = 2;
					Var26.f_49 = 1123024896;
					Var26.f_53 = 999;
					Var26.f_54 = 1176256410;
					Var26.f_55 = 1;
					Var26.f_56 = 1;
					Var26.f_57 = 1;
					Var26 = { *uParam1 };
					Var26.f_3 = uParam1->f_5;
					Var26.f_11 = uParam1->f_9;
					Var26.f_18 = 1;
					if (uParam1->f_25 > 0f)
					{
						Var26.f_6 = uParam1->f_25;
					}
					switch (uParam0->f_7)
					{
						case 0:
							Var26.f_19 = { *uParam0 };
							Var26.f_25 = uParam0->f_4;
							break;
						
						case 1:
							Var26.f_19 = { uParam0->f_8 };
							Var26.f_22 = { uParam0->f_11 };
							Var26.f_25 = 0f;
							break;
						
						case 2:
							Var26.f_19 = { uParam0->f_8 };
							Var26.f_22 = { uParam0->f_11 };
							Var26.f_25 = uParam0->f_14;
							break;
					}
					Var26.f_26 = uParam0->f_7;
					Var26.f_12 = uParam0->f_15;
					if (uParam0->f_21)
					{
						Var26.f_30 = 1;
						Var26.f_32 = 1;
					}
					iVar17 = 0;
					while (iVar17 < 2)
					{
						Var26.f_38[iVar17 /*3*/] = { uParam1->f_13[iVar17 /*3*/] };
						Var26.f_45[iVar17] = uParam1->f_20[iVar17];
						iVar17++;
					}
					Var26.f_51 = uParam1->f_23;
					Var26.f_55 = uParam0->f_16;
					func_937(uParam2[0 /*3*/], &(uParam2->f_10[0]), &Var26);
					if ((uParam1->f_7 && uParam1->f_9) && uParam0->f_7 == 0)
					{
						if (!func_952(*(uParam2[0 /*3*/]), *uParam0, uParam0->f_4, 1, 1))
						{
							*(uParam2[0 /*3*/]) = { *uParam0 };
							uParam2->f_10[0] = uParam0->f_3;
						}
					}
					Global_2404994.f_2018 = 9;
				}
				else
				{
					Global_2404994.f_2018 = 2;
				}
			}
		}
		if (Global_2404994.f_2018 == 2)
		{
			if ((pathfind::is_navmesh_loaded_in_area(vVar11, vVar14) || network::get_time_difference(network::get_network_time(), Global_2404994.f_2024) > 15000) || pathfind::_0x01708E8DD3FF8C65(vVar11, vVar14) == 0)
			{
				Global_2404994.f_2024 = network::get_network_time();
				if (uParam0->f_5 && !func_37(player::player_id(), 0))
				{
					Global_2404994.f_2018 = 3;
				}
				else
				{
					Global_2404994.f_2018 = 4;
				}
			}
			else if (network::get_time_difference(network::get_network_time(), Global_2404994.f_2028) > 7000)
			{
				func_1132(vVar8.x, vVar8.y);
			}
		}
		if (Global_2404994.f_2018 == 3)
		{
			if (func_1131() || network::get_time_difference(network::get_network_time(), Global_2404994.f_2024) > 10000)
			{
				Global_2404994.f_2024 = network::get_network_time();
				Global_2404994.f_2018 = 4;
			}
		}
		if (Global_2404994.f_2018 == 4)
		{
			if (ped::_0x3C67506996001F5E())
			{
				network::_0xFB8F2A6F3DF08CBE();
				ped::_0xFEE4A5459472A9F8();
			}
			else
			{
				iVar0 = 0;
				func_1125();
				if (uParam0->f_5)
				{
					if (system::vmag(*uParam1) == 0f)
					{
						iVar0 += 2;
					}
					if (uParam1->f_3)
					{
						iVar0 += 8;
					}
					iVar0 += 16;
					iVar0 += 32;
					if (!player::get_player_team(player::player_id()) == -1)
					{
						iVar0 += 64;
						iVar0 += 128;
						iVar0 += 256;
					}
					iVar0 += 2048;
					iVar0 += 512;
					iVar0 += 1024;
					switch (uParam0->f_7)
					{
						case 0:
							if (network::_0x5A6FFA2433E2F14C(player::player_id(), *uParam0, uParam0->f_4, *uParam1, iVar0))
							{
								Global_2404994.f_2024 = network::get_network_time();
								Global_2404994.f_2018 = 5;
							}
							break;
						
						case 1:
							func_1124(uParam0->f_8, uParam0->f_11, &vVar18, &vVar21, &uVar24);
							if (network::_0x4BA92A18502BCA61(player::player_id(), vVar18, vVar21, uVar24, *uParam1, iVar0))
							{
								Global_2404994.f_2024 = network::get_network_time();
								Global_2404994.f_2018 = 5;
							}
							break;
						
						case 2:
							if (network::_0x4BA92A18502BCA61(player::player_id(), uParam0->f_8, uParam0->f_11, uParam0->f_14, *uParam1, iVar0))
							{
								Global_2404994.f_2024 = network::get_network_time();
								Global_2404994.f_2018 = 5;
							}
							break;
					}
				}
				else
				{
					if (uParam1->f_3)
					{
						iVar0++;
					}
					iVar0 += 2;
					if (uParam1->f_10)
					{
						iVar0 += 32;
					}
					Global_2404994.f_2024 = network::get_network_time();
					Global_2404994.f_2018 = 5;
					switch (uParam0->f_7)
					{
						case 0:
							ped::_0x2DF9038C90AD5264(*uParam0, uParam0->f_4, 5f, iVar0, 2f, 5000);
							break;
						
						case 1:
							func_1124(uParam0->f_8, uParam0->f_11, &vVar18, &vVar21, &uVar24);
							ped::_0xB2AFF10216DEFA2F(vVar18, vVar21, uVar24, iVar0, 2f, 5000);
							break;
						
						case 2:
							ped::_0xB2AFF10216DEFA2F(uParam0->f_8, uParam0->f_11, uParam0->f_14, iVar0, 2f, 5000);
							break;
						}
					}
				}
		}
		if (Global_2404994.f_2018 == 5)
		{
			if (func_1078(uParam2, uParam0, uParam1, 0))
			{
				if (Global_2404994.f_2044.f_5)
				{
					Global_2404994.f_2024 = network::get_network_time();
					Global_2404994.f_2018 = 6;
				}
				else
				{
					Global_2404994.f_2024 = network::get_network_time();
					if (!uParam0->f_5)
					{
						if (!system::vmag(*uParam1) == 0f)
						{
							vVar1 = { *uParam1 - *(uParam2[0 /*3*/]) };
							uParam2->f_10[0] = gameplay::get_heading_from_vector_2d(vVar1.x, vVar1.y);
						}
					}
					Global_2404994.f_2018 = 9;
				}
			}
			else if (network::get_time_difference(network::get_network_time(), Global_2404994.f_2024) > 20000)
			{
				network::_0xFB8F2A6F3DF08CBE();
				ped::_0xFEE4A5459472A9F8();
				Global_2404994.f_2024 = network::get_network_time();
				Global_2404994.f_2018 = 8;
			}
		}
		if (Global_2404994.f_2018 == 6)
		{
			iVar0 = 0;
			Global_2404994.f_2044.f_1 = 0;
			if (uParam1->f_3)
			{
				iVar0++;
			}
			else if (uParam0->f_7 == 0)
			{
				if (!func_1077(uParam0->f_4))
				{
					if (interior::is_valid_interior(interior::get_interior_at_coords(vVar8)))
					{
						iVar0++;
					}
				}
			}
			else if (!func_1076(uParam0->f_8, uParam0->f_11, uParam0->f_14))
			{
				if (interior::is_valid_interior(interior::get_interior_at_coords(vVar8)))
				{
					iVar0++;
				}
			}
			iVar0 += 2;
			if (uParam1->f_10)
			{
				iVar0 += 32;
			}
			if (uParam0->f_15)
			{
				iVar0 += 16;
			}
			Global_2404994.f_2024 = network::get_network_time();
			Global_2404994.f_2018 = 7;
			switch (uParam0->f_7)
			{
				case 0:
					ped::_0x2DF9038C90AD5264(*uParam0, uParam0->f_4, 5f, iVar0, 2f, 5000);
					break;
				
				case 1:
					func_1124(uParam0->f_8, uParam0->f_11, &vVar18, &vVar21, &uVar24);
					ped::_0xB2AFF10216DEFA2F(vVar18, vVar21, uVar24, iVar0, 2f, 5000);
					break;
				
				case 2:
					ped::_0xB2AFF10216DEFA2F(uParam0->f_8, uParam0->f_11, uParam0->f_14, iVar0, 2f, 5000);
					break;
				}
		}
		if (Global_2404994.f_2018 == 7)
		{
			if (func_1078(uParam2, uParam0, uParam1, 1))
			{
				if (system::vmag(*(uParam2[0 /*3*/])) == 0f)
				{
					iVar17 = 0;
					while (iVar17 < 3)
					{
						if (system::vmag(*(uParam2[0 /*3*/])) == 0f)
						{
							if (!system::vmag(Global_2404994.f_2155[iVar17 /*3*/]) == 0f)
							{
								switch (uParam0->f_7)
								{
									case 0:
										if (func_952(Global_2404994.f_2155[iVar17 /*3*/], *uParam0, uParam0->f_4, 0, 0))
										{
											*(uParam2[0 /*3*/]) = { Global_2404994.f_2155[iVar17 /*3*/] };
										}
										break;
									
									case 1:
										if (func_950(Global_2404994.f_2155[iVar17 /*3*/], uParam0->f_8, uParam0->f_11, 0, 0))
										{
											*(uParam2[0 /*3*/]) = { Global_2404994.f_2155[iVar17 /*3*/] };
										}
										break;
									
									case 2:
										if (object::is_point_in_angled_area(Global_2404994.f_2155[iVar17 /*3*/], uParam0->f_8, uParam0->f_11, uParam0->f_14, 0, true))
										{
											*(uParam2[0 /*3*/]) = { Global_2404994.f_2155[iVar17 /*3*/] };
										}
										break;
									}
								}
						}
						iVar17++;
					}
					if (system::vmag(*(uParam2[0 /*3*/])) == 0f)
					{
						switch (uParam0->f_7)
						{
							case 0:
								vVar1 = { *uParam0 };
								break;
							
							case 1:
							case 2:
								vVar1 = { uParam0->f_8 + uParam0->f_11 / Vector(2f, 2f, 2f) };
								break;
						}
						func_1070(&vVar1, 0, 1, 1, 0, uParam0, uParam1);
						*(uParam2[0 /*3*/]) = { vVar1 };
					}
				}
				Global_2404994.f_2024 = network::get_network_time();
				if (!system::vmag(*uParam1) == 0f)
				{
					iVar17 = 0;
					while (iVar17 < 3)
					{
						vVar1 = { *uParam1 - *(uParam2[iVar17 /*3*/]) };
						uParam2->f_10[iVar17] = gameplay::get_heading_from_vector_2d(vVar1.x, vVar1.y);
						iVar17++;
					}
				}
				Global_2404994.f_2018 = 9;
			}
			else if (network::get_time_difference(network::get_network_time(), Global_2404994.f_2024) > 20000)
			{
				Global_2404994.f_2024 = network::get_network_time();
				Global_2404994.f_2018 = 8;
			}
		}
		if (Global_2404994.f_2018 == 8)
		{
			if (uParam0->f_5)
			{
				if (func_1136(Global_2404994.f_476))
				{
				}
			}
			else if (Global_2404994.f_2044.f_2)
			{
				func_1069(uParam2, &(Global_2404994.f_2044.f_6));
			}
			else
			{
				if (uParam0->f_15)
				{
					iVar84 = false;
				}
				else
				{
					iVar84 = true;
				}
				*(uParam2[0 /*3*/]) = { Global_2404994.f_2019 };
				func_1070(uParam2[0 /*3*/], 0, iVar84, 0, 0, uParam0, uParam1);
			}
			Global_2404994.f_2024 = network::get_network_time();
			Global_2404994.f_2018 = 9;
		}
		if (Global_2404994.f_2018 == 9)
		{
			Global_2404994.f_2017 = 0;
			network::_0xFB8F2A6F3DF08CBE();
			ped::_0xFEE4A5459472A9F8();
			func_1134();
			return true;
		}
		Global_2404994.f_2023 = network::get_network_time();
	}
	return false;
}

void func_1069(var uParam0, var uParam1)//Position - 0x8E631
{
	int iVar0;
	
	iVar0 = 0;
	while (iVar0 < 3)
	{
		*(uParam0[iVar0 /*3*/]) = { (uParam1[iVar0 /*9*/])->f_4 };
		uParam0->f_10[iVar0] = (uParam1[iVar0 /*9*/])->f_7;
		uParam0->f_14[iVar0] = (*uParam1)[iVar0 /*9*/];
		iVar0++;
	}
}

void func_1070(var uParam0, int iParam1, int iParam2, int iParam3, int iParam4, var uParam5, var uParam6)//Position - 0x8E67B
{
	vector3 vVar0;
	var uVar3;
	struct<56> Var4;
	var uVar62;
	int iVar63;
	int iVar64;
	int iVar65;
	vector3 vVar66;
	vector3 vVar69;
	vector3 vVar72;
	float fVar75;
	
	Var4.f_6 = 1082130432;
	Var4.f_7 = 1176255488;
	Var4.f_8 = 1;
	Var4.f_10 = 1;
	Var4.f_13 = 1;
	Var4.f_15 = 1;
	Var4.f_16 = 1;
	Var4.f_31 = 1;
	Var4.f_34 = joaat("tailgater");
	Var4.f_38 = 2;
	Var4.f_45 = 2;
	Var4.f_49 = 1123024896;
	Var4.f_53 = 999;
	Var4.f_54 = 1176256410;
	Var4.f_55 = 1;
	Var4.f_56 = 1;
	Var4.f_57 = 1;
	if (iParam1)
	{
		iVar65 = 0;
	}
	else
	{
		iVar65 = 16;
	}
	if (!uParam6->f_3)
	{
		if (uParam5->f_5)
		{
			if (!uParam5->f_22)
			{
				iVar65 += 4;
			}
			else
			{
				switch (uParam5->f_7)
				{
					case 0:
						vVar66 = { *uParam5 };
						if (func_1077(uParam5->f_4) || !interior::is_valid_interior(interior::get_interior_at_coords(vVar66)))
						{
							iVar65 += 4;
						}
						break;
					
					case 1:
						vVar66 = { uParam5->f_8 + uParam5->f_11 * Vector(0.5f, 0.5f, 0.5f) };
						if (func_1076(uParam5->f_8, uParam5->f_11, 0f) || !interior::is_valid_interior(interior::get_interior_at_coords(vVar66)))
						{
							iVar65 += 4;
						}
						break;
					
					case 2:
						vVar66 = { uParam5->f_8 + uParam5->f_11 * Vector(0.5f, 0.5f, 0.5f) };
						if (func_1076(uParam5->f_8, uParam5->f_11, uParam5->f_14) || !interior::is_valid_interior(interior::get_interior_at_coords(vVar66)))
						{
							iVar65 += 4;
						}
						break;
					}
			}
		}
		else
		{
			iVar65 += 4;
		}
	}
	if (func_1072(*uParam0, &vVar0, iVar65, iParam3, 1))
	{
	}
	else
	{
		iVar64 = true;
	}
	if (iVar64)
	{
		vVar0 = { *uParam0 };
		Var4 = { *uParam6 };
		Var4.f_8 = 1;
		Var4.f_3 = uParam6->f_5;
		if (iParam2)
		{
			Var4.f_10 = 0;
		}
		else
		{
			Var4.f_10 = 1;
		}
		Var4.f_13 = uParam5->f_15;
		Var4.f_15 = iParam3;
		if (uParam6->f_25 > 0f)
		{
			Var4.f_6 = uParam6->f_25;
		}
		if (iParam4)
		{
			Var4.f_18 = 1;
			Var4.f_26 = uParam5->f_7;
			switch (uParam5->f_7)
			{
				case 0:
					Var4.f_19 = { *uParam5 };
					Var4.f_25 = uParam5->f_4;
					break;
				
				case 1:
					Var4.f_19 = { uParam5->f_8 };
					Var4.f_22 = { uParam5->f_11 };
					Var4.f_25 = 0f;
					break;
				
				case 2:
					Var4.f_19 = { uParam5->f_8 };
					Var4.f_22 = { uParam5->f_11 };
					Var4.f_25 = uParam5->f_14;
					break;
				}
		}
		iVar63 = 0;
		while (iVar63 < 2)
		{
			Var4.f_38[iVar63 /*3*/] = { uParam6->f_13[iVar63 /*3*/] };
			Var4.f_45[iVar63] = uParam6->f_20[iVar63];
			iVar63++;
		}
		Var4.f_51 = uParam6->f_23;
		Var4.f_55 = uParam5->f_16;
		func_937(&vVar0, &uVar3, &Var4);
	}
	if (iParam4)
	{
		switch (uParam5->f_7)
		{
			case 0:
				vVar69 = { *uParam5 };
				fVar75 = uParam5->f_4;
				break;
			
			case 1:
				vVar69 = { uParam5->f_8 };
				vVar72 = { uParam5->f_11 };
				break;
			
			case 2:
				vVar69 = { uParam5->f_8 };
				vVar72 = { uParam5->f_11 };
				fVar75 = uParam5->f_14;
				break;
		}
		if (!func_1071(vVar0, uParam5->f_7, vVar69, vVar72, fVar75))
		{
			if (func_1072(*uParam0, &vVar0, iVar65, iParam3, 0))
			{
				if (!func_1071(vVar0, uParam5->f_7, vVar69, vVar72, fVar75))
				{
					if (uParam5->f_7 == 2 || uParam5->f_7 == 1)
					{
						vVar0 = { vVar69 + vVar72 * Vector(0.5f, 0.5f, 0.5f) };
					}
					else
					{
						vVar0 = { vVar69 };
					}
					if (gameplay::get_ground_z_for_3d_coord(vVar0, &uVar62, 0))
					{
						vVar0.z = uVar62;
					}
				}
			}
			else
			{
				if (uParam5->f_7 == 2 || uParam5->f_7 == 1)
				{
					vVar0 = { vVar69 + vVar72 * Vector(0.5f, 0.5f, 0.5f) };
				}
				else
				{
					vVar0 = { vVar69 };
				}
				if (gameplay::get_ground_z_for_3d_coord(vVar0, &uVar62, 0))
				{
					vVar0.z = uVar62;
				}
			}
		}
	}
	*uParam0 = { vVar0 };
	Global_2404994.f_616 = 1;
}

int func_1071(vector3 vParam0, int iParam3, vector3 vParam4, vector3 vParam7, float fParam10)//Position - 0x8EAB1
{
	switch (iParam3)
	{
		case 0:
			if (system::vdist(vParam0, vParam4) <= fParam10)
			{
				return true;
			}
			break;
		
		case 1:
			return func_950(vParam0, vParam4, vParam7, 0, 0);
			break;
		
		case 2:
			return object::is_point_in_angled_area(vParam0, vParam4, vParam7, fParam10, 0, true);
			break;
	}
	return false;
}

bool func_1072(vector3 vParam0, var uParam3, int iParam4, int iParam5, int iParam6)//Position - 0x8EB1E
{
	if (func_1075(vParam0, uParam3))
	{
		if (func_1073(vParam0, uParam3, iParam5, iParam6))
		{
			return true;
		}
	}
	if (pathfind::get_safe_coord_for_ped(vParam0, 0, uParam3, iParam4))
	{
		if (func_1073(vParam0, uParam3, iParam5, iParam6))
		{
			return true;
		}
	}
	return false;
}

bool func_1073(vector3 vParam0, var uParam3, int iParam4, int iParam5)//Position - 0x8EB7A
{
	float fVar0;
	var uVar1;
	var uVar8;
	
	fVar0 = system::vdist(vParam0, *uParam3);
	if (fVar0 < 40f)
	{
		uVar1 = 2;
		uVar8 = 2;
		if ((iParam4 == 1 && !func_969(Global_2404994.f_493, uParam3, &uVar1, &uVar8, iParam5, 1)) || iParam4 == 0)
		{
			if (!func_953(*uParam3, 1056964608))
			{
				if (!func_1074(uParam3, 0))
				{
					return true;
				}
			}
		}
	}
	return false;
}

bool func_1074(var uParam0, int iParam1)//Position - 0x8EBFF
{
	int iVar0;
	vector3 vVar1;
	var uVar4;
	
	vVar1 = { *uParam0 };
	uVar4 = func_958(vVar1);
	iVar0 = 0;
	while (iVar0 < Global_2410138[uVar4])
	{
		if (func_957(vVar1, &(Global_2409309[uVar4 /*92*/][iVar0 /*7*/])))
		{
			if (iParam1)
			{
				func_967(&vVar1, Global_2409309[uVar4 /*92*/][iVar0 /*7*/], Global_2409309[uVar4 /*92*/][iVar0 /*7*/].f_3, Global_2409309[uVar4 /*92*/][iVar0 /*7*/].f_6, 1036831949, 0);
				*uParam0 = { vVar1 };
			}
			return true;
		}
		iVar0++;
	}
	iVar0 = 0;
	while (iVar0 < Global_2410138[8])
	{
		if (func_957(vVar1, &(Global_2409309[8 /*92*/][iVar0 /*7*/])))
		{
			if (iParam1)
			{
				func_967(&vVar1, Global_2409309[uVar4 /*92*/][iVar0 /*7*/], Global_2409309[uVar4 /*92*/][iVar0 /*7*/].f_3, Global_2409309[uVar4 /*92*/][iVar0 /*7*/].f_6, 1036831949, 0);
				*uParam0 = { vVar1 };
			}
			return true;
		}
		iVar0++;
	}
	return false;
}

bool func_1075(vector3 vParam0, var uParam3)//Position - 0x8ED0C
{
	int iVar0;
	int iVar1;
	float fVar2;
	float fVar3;
	
	iVar1 = -1;
	fVar2 = 999999.9f;
	if (Global_2404994.f_1815 > 0)
	{
		iVar0 = 0;
		while (iVar0 < Global_2404994.f_1815)
		{
			fVar3 = system::vdist(Global_2404994.f_1816[iVar0 /*4*/], vParam0);
			if (fVar3 < fVar2)
			{
				iVar1 = iVar0;
				fVar2 = fVar3;
			}
			iVar0++;
		}
		if (!iVar1 == -1)
		{
			*uParam3 = { Global_2404994.f_1816[iVar1 /*4*/] };
			return true;
		}
	}
	return false;
}

bool func_1076(vector3 vParam0, vector3 vParam3, float fParam6)//Position - 0x8ED86
{
	vector3 vVar0;
	vector3 vVar3;
	
	if (vParam0.x > vParam3.x)
	{
		vVar3.x = vParam0.x;
		vVar0.x = vParam3.x;
	}
	else
	{
		vVar3.x = vParam3.x;
		vVar0.x = vParam0.x;
	}
	if (vParam0.y > vParam3.y)
	{
		vVar3.y = vParam0.y;
		vVar0.y = vParam3.y;
	}
	else
	{
		vVar3.y = vParam3.y;
		vVar0.y = vParam0.y;
	}
	if (vParam0.y > vParam3.y)
	{
		vVar3.z = vParam0.y;
		vVar0.z = vParam3.y;
	}
	else
	{
		vVar3.z = vParam3.y;
		vVar0.z = vParam0.y;
	}
	if (system::vmag(vVar3 - vVar0) > 100f)
	{
		return true;
	}
	if (fParam6 > 50f)
	{
		return true;
	}
	return false;
}

bool func_1077(float fParam0)//Position - 0x8EE31
{
	if (fParam0 > 50f)
	{
		return true;
	}
	return false;
}

bool func_1078(var uParam0, var uParam1, var uParam2, int iParam3)//Position - 0x8EE49
{
	vector3 vVar0;
	float fVar3;
	int iVar4;
	int iVar5;
	int iVar6;
	int iVar7;
	int iVar8;
	
	if (Global_2404994.f_2044.f_1 == 0 && Global_2404994.f_2044 == 0)
	{
		if (uParam1->f_5 && !iParam3)
		{
			switch (network::_0x3C891A251567DFCE(&(Global_2404994.f_2044.f_1)))
			{
				case 0:
					func_1122(uParam1, uParam2);
					if (!Global_2404994.f_2044.f_2)
					{
						if (uParam2->f_7 && Global_2404994.f_525.f_7 == 0)
						{
							*(uParam0[0 /*3*/]) = { *uParam1 };
							uParam0->f_10[0] = uParam1->f_3;
							return true;
						}
						else
						{
							if (uParam1->f_21)
							{
								*(uParam0[0 /*3*/]) = { uParam1->f_18 };
							}
							else
							{
								*(uParam0[0 /*3*/]) = { Global_2404994.f_2019 };
							}
							if (uParam1->f_5 && func_1136(Global_2404994.f_476))
							{
								if (!Global_2404994.f_2044.f_5)
								{
									Global_2404994.f_2044.f_5 = 1;
								}
								else
								{
									func_1070(uParam0[0 /*3*/], 1, 0, 1, 1, uParam1, uParam2);
								}
							}
							else
							{
								func_1070(uParam0[0 /*3*/], 0, 0, 1, 0, uParam1, uParam2);
							}
							uParam0->f_10[0] = gameplay::get_random_float_in_range(0f, 360f);
							return true;
						}
					}
					break;
				
				case 1:
					func_1122(uParam1, uParam2);
					break;
				
				case 2:
					return false;
					break;
				
				case 3:
					return false;
					break;
			}
		}
		else if (ped::_0x3C67506996001F5E())
		{
			if (!ped::_0xF445DE8DA80A1792())
			{
				if (ped::_0xA586FBEB32A53DBB())
				{
					func_1122(uParam1, uParam2);
					Global_2404994.f_2044.f_1 = ped::_0xA635C11B8C44AFC2();
				}
				else
				{
					return false;
				}
			}
			else
			{
				ped::_0xFEE4A5459472A9F8();
				func_1122(uParam1, uParam2);
				if (!Global_2404994.f_2044.f_2)
				{
					Global_2404994.f_2044.f_5 = 1;
					return true;
				}
			}
		}
		else
		{
			return false;
		}
	}
	if (uParam1->f_5)
	{
		func_1119(Global_2404994.f_525, &(Global_2404994.f_2044.f_34), &(Global_2404994.f_2044.f_67));
	}
	if (uParam2->f_7 && !Global_2404994.f_2044.f_4)
	{
		Global_2404994.f_2044.f_4 = 1;
		func_1086(*uParam1, uParam1->f_3, uParam1, uParam2, 1, -1);
	}
	iVar6 = 0;
	if (uParam1->f_5)
	{
		iVar7 = 64;
	}
	else
	{
		iVar7 = 32;
	}
	if (Global_2404994.f_2044.f_1 > 0 || Global_2404994.f_2044 > 0)
	{
		if (uParam1->f_5 || ped::_0x3C67506996001F5E())
		{
			iVar4 = 0;
			while (iVar4 < Global_2404994.f_2044.f_1)
			{
				if (iVar6 < iVar7)
				{
					if (iVar4 <= Global_2404994.f_2044.f_3)
					{
						iVar4 = Global_2404994.f_2044.f_3 + 1;
					}
					if (iVar4 > (Global_2404994.f_2044.f_1 - 1))
					{
						iVar4 = (Global_2404994.f_2044.f_1 - 1);
					}
					if (iVar4 < 0)
					{
						iVar4 = 0;
					}
					if (uParam1->f_5 && !iParam3)
					{
						network::network_get_respawn_result(iVar4, &vVar0, &fVar3);
						fVar3 = (fVar3 * 57.29578f);
					}
					else
					{
						ped::_0x280C7E3AC7F56E90(iVar4, &vVar0, &(vVar0.f_1), &(vVar0.f_2));
					}
					if (uParam1->f_5 && !iParam3)
					{
						iVar5 = network::_0x6C34F1208B8923FD(iVar4);
					}
					else
					{
						ped::_0xB782F8238512BAD5(iVar4, &iVar5);
					}
					func_1086(vVar0, fVar3, uParam1, uParam2, 0, iVar5);
					iVar6++;
					Global_2404994.f_2044.f_3 = iVar4;
				}
				else
				{
					return false;
				}
				iVar4++;
			}
		}
		else
		{
			iVar4 = Global_2404994.f_2044.f_1;
		}
		if (Global_2404994.f_2044.f_1 == iVar4)
		{
			if (uParam1->f_5 && Global_2404994.f_2349)
			{
				func_1080(&(Global_2404994.f_2044.f_6[0 /*9*/]), &(Global_2404994.f_2044.f_6[1 /*9*/]), &(Global_2404994.f_2044.f_6[2 /*9*/]));
			}
			if (uParam1->f_5 && func_1136(Global_2404994.f_476))
			{
				if (Global_2404994.f_2044.f_2)
				{
					func_1069(uParam0, &(Global_2404994.f_2044.f_6));
					func_1079(*(uParam0[0 /*3*/]));
					return true;
				}
				else
				{
					*(uParam0[0 /*3*/]) = { Global_2404994.f_2019 };
					func_1070(uParam0[0 /*3*/], 0, 0, 0, 0, uParam1, uParam2);
					uParam0->f_10[0] = gameplay::get_random_float_in_range(0f, 360f);
					func_1079(*(uParam0[0 /*3*/]));
					return true;
				}
			}
			else if (Global_2404994.f_2044.f_2)
			{
				func_1069(uParam0, &(Global_2404994.f_2044.f_6));
				func_1079(*(uParam0[0 /*3*/]));
				return true;
			}
			else if (uParam1->f_5)
			{
				iVar4 = gameplay::get_random_int_in_range(0, Global_2404994.f_2044.f_1);
				network::network_get_respawn_result(iVar4, uParam0[0 /*3*/], &(uParam0->f_10[0]));
				if (!func_1074(uParam0[0 /*3*/], 0))
				{
					uParam0->f_10[0] = (uParam0->f_10[0] * 57.29578f);
					func_1079(*(uParam0[0 /*3*/]));
					return true;
				}
				else
				{
					*(uParam0[0 /*3*/]) = { Global_2404994.f_2019 };
					func_1070(uParam0[0 /*3*/], 1, 0, 1, 1, uParam1, uParam2);
					uParam0->f_10[0] = gameplay::get_random_float_in_range(0f, 360f);
					func_1079(*(uParam0[0 /*3*/]));
					return true;
				}
			}
			else
			{
				*(uParam0[0 /*3*/]) = { Global_2404994.f_2019 };
				func_1070(uParam0[0 /*3*/], 0, 0, 0, 0, uParam1, uParam2);
				uParam0->f_10[0] = gameplay::get_random_float_in_range(0f, 360f);
				func_1079(*(uParam0[0 /*3*/]));
				return true;
			}
		}
	}
	else
	{
		*(uParam0[0 /*3*/]) = { Global_2404994.f_2019 };
		if (uParam1->f_5 && func_1136(Global_2404994.f_476))
		{
			if (!Global_2404994.f_2044.f_5)
			{
				Global_2404994.f_2044.f_5 = 1;
			}
			else
			{
				func_1070(uParam0[0 /*3*/], 1, 0, 1, 1, uParam1, uParam2);
			}
		}
		else
		{
			if (uParam1->f_15)
			{
				iVar8 = false;
			}
			else
			{
				iVar8 = true;
			}
			func_1070(uParam0[0 /*3*/], 0, iVar8, 0, 0, uParam1, uParam2);
		}
		uParam0->f_10[0] = gameplay::get_random_float_in_range(0f, 360f);
		func_1079(*(uParam0[0 /*3*/]));
		return true;
	}
	return false;
}

void func_1079(vector3 vParam0)//Position - 0x8F410
{
	int iVar0;
	
	iVar0 = 0;
	while (iVar0 < 2)
	{
		if (iVar0 > 0)
		{
			Global_2404994.f_2155[(3 - iVar0) /*3*/] = { Global_2404994.f_2155[(3 - iVar0 + 1) /*3*/] };
		}
		iVar0++;
	}
	Global_2404994.f_2155[0 /*3*/] = { vParam0 };
}

void func_1080(var uParam0, var uParam1, var uParam2)//Position - 0x8F460
{
	if (func_1136(Global_2404994.f_476) && func_1085() < 4096)
	{
		func_1084(uParam0, 0f);
		func_1084(uParam1, uParam0->f_2);
		func_1084(uParam2, uParam1->f_2);
	}
	else
	{
		func_1083(uParam0);
		func_1082(uParam2, uParam0->f_4);
		func_1081(uParam1, uParam0->f_4, uParam2->f_4);
	}
}

void func_1081(var uParam0, vector3 vParam1, vector3 vParam4)//Position - 0x8F4C5
{
	int iVar0;
	float fVar1;
	float fVar2;
	float fVar3;
	float fVar4;
	struct<9> Var5;
	
	fVar1 = -1f;
	Var5.f_2 = 1176256410;
	iVar0 = 0;
	while (iVar0 < 128)
	{
		if (Global_2407344[iVar0 /*9*/] > 0)
		{
			fVar2 = system::vdist(Global_2407344[iVar0 /*9*/].f_4, vParam1);
			fVar3 = system::vdist(Global_2407344[iVar0 /*9*/].f_4, vParam4);
			fVar4 = (fVar2 + fVar3);
			fVar4 = (fVar4 * Global_2407344[iVar0 /*9*/].f_1);
			if (fVar4 > fVar1)
			{
				fVar1 = fVar4;
				Var5 = { Global_2407344[iVar0 /*9*/] };
			}
		}
		iVar0++;
	}
	*uParam0 = { Var5 };
}

void func_1082(var uParam0, vector3 vParam1)//Position - 0x8F564
{
	int iVar0;
	float fVar1;
	float fVar2;
	struct<9> Var3;
	
	fVar1 = -1f;
	Var3.f_2 = 1176256410;
	iVar0 = 0;
	while (iVar0 < 128)
	{
		if (Global_2407344[iVar0 /*9*/] > 0)
		{
			fVar2 = system::vdist(Global_2407344[iVar0 /*9*/].f_4, vParam1);
			fVar2 = (fVar2 * Global_2407344[iVar0 /*9*/].f_1);
			if (fVar2 > fVar1)
			{
				fVar1 = fVar2;
				Var3 = { Global_2407344[iVar0 /*9*/] };
			}
		}
		iVar0++;
	}
	*uParam0 = { Var3 };
}

void func_1083(var uParam0)//Position - 0x8F5E6
{
	int iVar0;
	float fVar1;
	struct<9> Var2;
	
	fVar1 = -1f;
	Var2.f_2 = 1176256410;
	iVar0 = 0;
	while (iVar0 < 128)
	{
		if (Global_2407344[iVar0 /*9*/] > 0)
		{
			if (Global_2407344[iVar0 /*9*/].f_1 > fVar1)
			{
				fVar1 = Global_2407344[iVar0 /*9*/].f_1;
				Var2 = { Global_2407344[iVar0 /*9*/] };
			}
		}
		iVar0++;
	}
	*uParam0 = { Var2 };
}

void func_1084(var uParam0, float fParam1)//Position - 0x8F653
{
	int iVar0;
	float fVar1;
	struct<9> Var2;
	
	fVar1 = 999999.9f;
	Var2.f_2 = 1176256410;
	iVar0 = 0;
	while (iVar0 < 128)
	{
		if (Global_2407344[iVar0 /*9*/] > 0)
		{
			if (Global_2407344[iVar0 /*9*/].f_2 < fVar1 && Global_2407344[iVar0 /*9*/].f_2 > fParam1)
			{
				fVar1 = Global_2407344[iVar0 /*9*/].f_2;
				Var2 = { Global_2407344[iVar0 /*9*/] };
			}
		}
		iVar0++;
	}
	*uParam0 = { Var2 };
}

int func_1085()//Position - 0x8F6D6
{
	int iVar0;
	int iVar1;
	
	iVar1 = 0;
	iVar0 = 0;
	while (iVar0 < 128)
	{
		if (Global_2407344[iVar0 /*9*/] > iVar1)
		{
			iVar1 = Global_2407344[iVar0 /*9*/];
		}
		iVar0++;
	}
	return iVar1;
}

void func_1086(vector3 vParam0, float fParam3, var uParam4, var uParam5, int iParam6, int iParam7)//Position - 0x8F70D
{
	float fVar0;
	float fVar1;
	float fVar2;
	float fVar3;
	int iVar4;
	float fVar5;
	float fVar6;
	int iVar7;
	int iVar8;
	int iVar9;
	int iVar10;
	vector3 vVar11;
	int iVar14;
	int iVar15;
	vector3 vVar16;
	vector3 vVar19;
	float fVar22;
	int iVar23;
	struct<9> Var24;
	int iVar33;
	int iVar34;
	
	iVar9 = 0;
	iVar7 = 0;
	iVar8 = false;
	if (uParam4->f_5)
	{
		if (Global_2404994.f_476 == 1)
		{
			if (gameplay::absf((Global_2404994.f_493.f_2 - vParam0.y)) < 25f)
			{
				iVar7++;
			}
		}
		else
		{
			iVar7++;
		}
	}
	else
	{
		iVar7++;
	}
	if (uParam4->f_5)
	{
		if (func_1204(player::player_id()))
		{
			if (iParam7 == -1)
			{
				iVar8 = true;
			}
			else if (!iParam7 & 1 == 0)
			{
				iVar8 = true;
			}
		}
		else if (iParam7 == -1)
		{
			iVar7 += 2;
		}
		else if (!iParam7 & 1 == 0)
		{
			iVar7 += 2;
		}
	}
	else
	{
		iVar7 += 2;
	}
	if (uParam4->f_5 && uParam4->f_6)
	{
		if (!func_1118(vParam0, 1084227584, 1123024896, 0))
		{
			iVar7 += 4;
		}
	}
	else
	{
		iVar7 += 4;
	}
	if (uParam4->f_5)
	{
		if (!ped::_0x68772DB2B2526F9F(player::player_ped_id(), vParam0, 65f))
		{
			iVar7 += 8;
			iVar7 += 16;
		}
		else if (!ped::_0x68772DB2B2526F9F(player::player_ped_id(), vParam0, 20f))
		{
			iVar7 += 8;
		}
	}
	else
	{
		iVar7 += 8;
		iVar7 += 16;
	}
	if (uParam4->f_5)
	{
		if (!func_1026(vParam0, uParam5->f_5, 1, 1, 1, 1, 1, 1))
		{
			iVar7 += 32;
		}
	}
	else
	{
		iVar7 += 32;
	}
	iVar14 = true;
	iVar10 = 0;
	while (iVar10 < 2)
	{
		if (system::vmag(uParam5->f_13[iVar10 /*3*/]) > 0f)
		{
			if (!system::vdist(vParam0, uParam5->f_13[iVar10 /*3*/]) > uParam5->f_20[iVar10])
			{
				iVar14 = false;
			}
		}
		iVar10++;
	}
	if (iVar14)
	{
		iVar7 += 256;
	}
	if (uParam4->f_5)
	{
		if (func_1113(vParam0, fParam3, uParam4->f_15, func_1117(1), uParam4->f_16, 0, 1123024896, 1101004800, 1101004800, 1084227584, 1092616192, 0, 0))
		{
			iVar7 += 64;
			iVar7 += 128;
		}
		else
		{
			iVar9 = Global_2404994.f_3;
		}
	}
	else if (!func_940(vParam0, 25f, player::player_id(), 1, 1))
	{
		if (uParam4->f_15)
		{
			fVar1 = 3.5f;
		}
		else
		{
			fVar1 = 1f;
		}
		if (!func_979(vParam0, fVar1, 1, 1, 120f, 0, -1, 0f, 1))
		{
			iVar7 += 128;
			iVar7 += 64;
		}
		else if (!func_979(vParam0, fVar1, 1, 1, 60f, 0, -1, 0f, 1))
		{
			iVar7 += 64;
		}
	}
	if (uParam4->f_5)
	{
		if (!Global_2404994.f_638)
		{
			vVar11 = { Global_2404994.f_493 };
			if (Global_2404994.f_476 == 26)
			{
				vVar11 = { Global_2404994.f_525.f_18 };
			}
			if (func_990(vVar11))
			{
				if (!func_973(&vParam0, 0, 0, 0) && !func_959(&vParam0, 0))
				{
					iVar7 += 512;
				}
			}
			else if (!func_959(&vParam0, 0) && !func_970(vParam0, 0.5f))
			{
				iVar7 += 512;
			}
		}
		else
		{
			iVar7 += 512;
		}
	}
	else if (!func_1112(vParam0, 2.5f, 3))
	{
		iVar7 += 512;
	}
	if (uParam4->f_5)
	{
		if (!(func_500(player::player_id()) && func_1111(player::player_id())))
		{
			if (!func_1110(&vParam0, &(Global_2404994.f_2044.f_67), 0, 1065353216))
			{
				iVar7 += 1024;
			}
		}
		else
		{
			iVar7 += 1024;
		}
	}
	else
	{
		iVar7 += 1024;
	}
	if (uParam4->f_5)
	{
		if (!func_1111(player::player_id()))
		{
			if (!func_1109(vParam0, &(Global_2404994.f_2044.f_34), &(Global_2404994.f_2044.f_67), 1073741824))
			{
				iVar7 += 2048;
			}
		}
		else
		{
			iVar7 += 2048;
		}
	}
	else
	{
		iVar7 += 2048;
	}
	if (func_1108(vParam0))
	{
		if (uParam4->f_5)
		{
			if (func_1136(Global_2404994.f_476))
			{
				if (func_993(vParam0, 0.01f))
				{
					iVar7 += 4096;
				}
			}
			else
			{
				iVar7 += 4096;
			}
		}
		else
		{
			iVar7 += 4096;
		}
	}
	if (uParam4->f_5)
	{
		if (func_1107(vParam0))
		{
			iVar7 += 8192;
		}
	}
	else
	{
		iVar7 += 8192;
	}
	if (!Global_2404994.f_43.f_55)
	{
		iVar7 += 16384;
	}
	else if (uParam4->f_5)
	{
		if (!iParam7 & 1 == 0)
		{
			if (interior::is_valid_interior(interior::get_interior_at_coords(vParam0)))
			{
				iVar7 += 16384;
			}
		}
	}
	else if (!iParam7 & 2 == 0)
	{
		if (interior::is_valid_interior(interior::get_interior_at_coords(vParam0)))
		{
			iVar7 += 16384;
		}
	}
	if (uParam4->f_5)
	{
		if (!Global_2404994.f_638)
		{
			if (!func_971(&vParam0, 0, 0))
			{
				iVar7 = (iVar7 + 32768);
			}
		}
		else
		{
			iVar7 = (iVar7 + 32768);
		}
	}
	else
	{
		iVar7 = (iVar7 + 32768);
	}
	if (!func_1074(&vParam0, 0))
	{
		iVar7 = (iVar7 + 65536);
	}
	else
	{
		iVar15 = func_992(vParam0, 1008981770);
		if (iVar15 > -1)
		{
			func_1106(vParam0, &vVar16, &vVar19, &fVar22);
			if (!func_1101(&(Global_2404994.f_43[iVar15 /*12*/]), vVar16, vVar19, fVar22))
			{
				iVar7 = -1;
			}
		}
		else
		{
			iVar7 = -1;
		}
	}
	if (func_953(vParam0, 1056964608))
	{
		iVar7 = -1;
	}
	if (uParam4->f_5)
	{
	}
	else if (func_1100(vParam0, 1, 0, uParam4->f_15, 1060320051, 1086324736, 1065353216, 1088421888))
	{
		iVar7 = 0;
	}
	Var24.f_2 = 1176256410;
	iVar33 = false;
	iVar34 = false;
	if (Global_2404994.f_2349 && uParam4->f_5)
	{
		if (iVar7 > 0)
		{
			if (iParam6)
			{
				uParam5->f_4 = 0;
				iVar4 = false;
			}
			else
			{
				iVar4 = true;
			}
			if (uParam4->f_21)
			{
				fVar0 = func_1093(vParam0, uParam4->f_18, uParam5->f_6, uParam5->f_4, iVar4, iVar9, &(Var24.f_8));
			}
			else
			{
				fVar0 = func_1093(vParam0, Global_2404994.f_2019, uParam5->f_6, uParam5->f_4, iVar4, iVar9, &(Var24.f_8));
			}
			if (iVar8)
			{
				fVar0 = (fVar0 * 3f);
			}
			if (func_1136(Global_2404994.f_476) && iVar7 < 4096)
			{
				Var24.f_2 = func_1092(vParam0);
			}
			Var24.f_4 = { vParam0 };
			Var24.f_7 = fParam3;
			Var24 = iVar7;
			Var24.f_1 = fVar0;
			func_1091(Var24);
			Global_2404994.f_2044.f_2 = 1;
		}
	}
	else
	{
		iVar23 = 0;
		while (iVar23 < 3)
		{
			if (iVar7 >= Global_2404994.f_2044.f_6[iVar23 /*9*/])
			{
				if (uParam4->f_5)
				{
					if (!iVar33)
					{
						if (iParam6)
						{
							uParam5->f_4 = 0;
							iVar4 = false;
						}
						else
						{
							iVar4 = true;
						}
						if (uParam4->f_21)
						{
							fVar0 = func_1093(vParam0, uParam4->f_18, uParam5->f_6, uParam5->f_4, iVar4, iVar9, &(Var24.f_8));
						}
						else
						{
							fVar0 = func_1093(vParam0, Global_2404994.f_2019, uParam5->f_6, uParam5->f_4, iVar4, iVar9, &(Var24.f_8));
						}
						if (iVar8)
						{
							fVar0 = (fVar0 * 3f);
						}
						iVar33 = true;
					}
					if ((func_1136(Global_2404994.f_476) && iVar7 == Global_2404994.f_2044.f_6[iVar23 /*9*/]) && iVar7 < 4096)
					{
						if (!iVar34)
						{
							fVar2 = func_1092(vParam0);
							iVar34 = true;
						}
						if (fVar2 < Global_2404994.f_2044.f_6[iVar23 /*9*/].f_2)
						{
							Var24.f_4 = { vParam0 };
							Var24.f_7 = fParam3;
							Var24 = iVar7;
							Var24.f_1 = fVar0;
							Var24.f_2 = fVar2;
							func_1090(Var24, iVar23);
							Global_2404994.f_2044.f_2 = 1;
							return;
						}
					}
					else if (iVar7 > Global_2404994.f_2044.f_6[iVar23 /*9*/] || (iVar7 == Global_2404994.f_2044.f_6[iVar23 /*9*/] && fVar0 > Global_2404994.f_2044.f_6[iVar23 /*9*/].f_1))
					{
						Var24.f_4 = { vParam0 };
						Var24.f_7 = fParam3;
						Var24 = iVar7;
						Var24.f_1 = fVar0;
						func_1090(Var24, iVar23);
						Global_2404994.f_2044.f_2 = 1;
						return;
					}
				}
				else
				{
					if (!iVar33)
					{
						if (uParam4->f_15)
						{
							fVar1 = 3.5f;
						}
						else
						{
							fVar1 = 1f;
						}
						fVar5 = func_1089(vParam0, fVar1, 1, 1, 0, -1, 1);
						fVar6 = func_1088(vParam0, 1, 1, 1, 1);
						if (fVar5 > 15f && fVar6 > 5f)
						{
							fVar3 = func_1087(fVar5, 0f, 80f, 160f, 1f, 1.2f);
						}
						else
						{
							fVar3 = func_1087(fVar6, 0f, 80f, 160f, 0f, 0.2f);
						}
						iVar33 = true;
					}
					if (iVar7 > Global_2404994.f_2044.f_6[iVar23 /*9*/] || (iVar7 == Global_2404994.f_2044.f_6[iVar23 /*9*/] && fVar3 > Global_2404994.f_2044.f_6[iVar23 /*9*/].f_3))
					{
						Var24.f_4 = { vParam0 };
						Var24.f_7 = fParam3;
						Var24 = iVar7;
						Var24.f_3 = fVar3;
						func_1090(Var24, iVar23);
						Global_2404994.f_2044.f_2 = 1;
						return;
					}
				}
			}
			iVar23++;
		}
	}
}

float func_1087(float fParam0, float fParam1, float fParam2, float fParam3, float fParam4, float fParam5)//Position - 0x90026
{
	float fVar0;
	
	if (fParam1 >= fParam3)
	{
		fParam1 = (fParam3 * 0.5f);
	}
	if (fParam0 < fParam1)
	{
		fParam0 = fParam1;
	}
	if (fParam0 > fParam3)
	{
		fParam0 = fParam3;
	}
	if (fParam2 < fParam3 && fParam2 > fParam1)
	{
		if (fParam0 < fParam2)
		{
			fVar0 = (fParam4 + ((1f - fParam4) - ((1f - fParam4) * ((fParam2 - fParam0) / (fParam2 - fParam1)))));
		}
		else
		{
			fVar0 = (fParam5 + ((1f - fParam5) - ((1f - fParam5) * ((fParam0 - fParam2) / (fParam3 - fParam2)))));
		}
	}
	else
	{
		fVar0 = (fParam4 + (((fParam0 - fParam1) / (fParam3 - fParam1)) * (fParam5 - fParam4)));
	}
	return fVar0;
}

float func_1088(vector3 vParam0, int iParam3, int iParam4, int iParam5, int iParam6)//Position - 0x900C4
{
	int iVar0;
	float fVar1;
	float fVar2;
	float fVar3;
	int iVar4;
	vector3 vVar5;
	vector3 vVar8;
	int iVar11;
	
	fVar3 = 999999.9f;
	iVar4 = false;
	iVar0 = 0;
	while (iVar0 < 32)
	{
		iVar11 = iVar0;
		if (func_1644(iVar11, 1, 1))
		{
			if (!iVar11 == player::player_id() || iParam5 == 1)
			{
				iVar4 = false;
				if (iParam3)
				{
					if (func_947(iVar11))
					{
						iVar4 = true;
					}
				}
				if (iParam4)
				{
					if (player::get_player_team(iVar11) == player::get_player_team(player::player_id()))
					{
						if (!player::get_player_team(iVar11) == -1 || !func_1242(player::player_id(), 1))
						{
							iVar4 = true;
						}
					}
				}
				if (iVar4)
				{
					if (network::_0x9DE986FC9A87C474(player::player_id(), iVar11) || !iParam6)
					{
						if (func_931(iVar11))
						{
							vVar5 = { func_640(iVar11) };
							if (!iVar11 == player::player_id())
							{
								vVar8 = { unk_0x64D779659BC37B19(player::get_player_ped(iVar11)) };
							}
							else
							{
								vVar8 = { vVar5 };
							}
							if (!iParam6)
							{
								if (vVar5.y < -100f)
								{
									vVar5.z = vParam0.y;
								}
								if (vVar8.y < -100f)
								{
									vVar8.z = vParam0.y;
								}
							}
							fVar1 = gameplay::get_distance_between_coords(vParam0, vVar5, 1);
							fVar2 = gameplay::get_distance_between_coords(vParam0, vVar8, 1);
							if (fVar1 < fVar3)
							{
								fVar3 = fVar1;
							}
							if (fVar2 < fVar3)
							{
								fVar3 = fVar2;
							}
						}
					}
				}
			}
		}
		iVar0++;
	}
	return fVar3;
}

float func_1089(vector3 vParam0, float fParam3, int iParam4, int iParam5, int iParam6, int iParam7, int iParam8)//Position - 0x90210
{
	int iVar0;
	int iVar1;
	int iVar2;
	float fVar3;
	float fVar4;
	
	iVar2 = false;
	fVar3 = 1E+13f;
	if (iParam4 && !iParam6)
	{
		if (func_1644(player::player_id(), 1, 1))
		{
			if (!cam::is_screen_faded_out())
			{
				if (cam::is_sphere_visible(vParam0, fParam3))
				{
					fVar4 = system::vdist2(vParam0, entity::get_entity_coords(player::player_ped_id(), 0));
					if (fVar4 < fVar3)
					{
						fVar3 = fVar4;
						iVar2 = true;
					}
				}
			}
		}
	}
	iVar0 = 0;
	while (iVar0 < 32)
	{
		iVar1 = iVar0;
		if (func_1644(iVar1, 1, 1))
		{
			if (!func_37(iVar1, 0) && network::_0x9DE986FC9A87C474(player::player_id(), iVar1))
			{
				if (iParam4 == 1 || (iParam4 == 0 && iVar1 != player::player_id()))
				{
					if (func_931(iVar1) || !iParam8)
					{
						if (!iParam6)
						{
							if ((iParam5 || (iParam5 == 0 && player::get_player_team(iVar1) != player::get_player_team(player::player_id()))) || player::get_player_team(iVar1) == -1)
							{
								if (network::is_sphere_visible_to_player(iVar1, vParam0, fParam3))
								{
									fVar4 = system::vdist2(vParam0, entity::get_entity_coords(player::get_player_ped(iVar1), 0));
									if (fVar4 < fVar3)
									{
										fVar3 = fVar4;
										iVar2 = true;
									}
								}
							}
						}
						else if (player::get_player_team(iVar1) != iParam7 || player::get_player_team(iVar1) == -1)
						{
							if (network::is_sphere_visible_to_player(iVar1, vParam0, fParam3))
							{
								fVar4 = system::vdist2(vParam0, entity::get_entity_coords(player::get_player_ped(iVar1), 0));
								if (fVar4 < fVar3)
								{
									fVar3 = fVar4;
									iVar2 = true;
								}
							}
						}
					}
				}
			}
		}
		iVar0++;
	}
	if (iVar2)
	{
		return system::sqrt(fVar3);
	}
	return -1f;
}

void func_1090(struct<9> Param0, int iParam9)//Position - 0x903A7
{
	struct<9> Var0;
	
	Var0.f_2 = 1176256410;
	Var0 = { Global_2404994.f_2044.f_6[iParam9 /*9*/] };
	Global_2404994.f_2044.f_6[iParam9 /*9*/] = { Param0 };
	if (iParam9 < 2)
	{
		func_1090(Var0, iParam9 + 1);
	}
}

void func_1091(struct<9> Param0)//Position - 0x903F9
{
	int iVar0;
	struct<9> Var1;
	int iVar10;
	float fVar11;
	int iVar12;
	
	Var1.f_2 = 1176256410;
	iVar10 = func_1085();
	if (Param0 > iVar10)
	{
		iVar10 = Param0;
	}
	iVar0 = 0;
	while (iVar0 < 128)
	{
		if (Global_2407344[iVar0 /*9*/] < iVar10)
		{
			Global_2407344[iVar0 /*9*/] = { Var1 };
		}
		iVar0++;
	}
	if (Param0 < iVar10)
	{
		return;
	}
	iVar0 = 0;
	while (iVar0 < 128)
	{
		if (Global_2407344[iVar0 /*9*/] == 0)
		{
			Global_2407344[iVar0 /*9*/] = { Param0 };
			return;
		}
		iVar0++;
	}
	fVar11 = 9999.9f;
	iVar12 = -1;
	iVar0 = 0;
	while (iVar0 < 128)
	{
		if (Global_2407344[iVar0 /*9*/] > 0)
		{
			if (Global_2407344[iVar0 /*9*/].f_1 < fVar11)
			{
				fVar11 = Global_2407344[iVar0 /*9*/].f_1;
				iVar12 = iVar0;
			}
		}
		iVar0++;
	}
	if (iVar12 > -1)
	{
		Global_2407344[iVar12 /*9*/] = { Param0 };
	}
}

float func_1092(vector3 vParam0)//Position - 0x904ED
{
	int iVar0;
	
	return func_1189(vParam0, &(Global_2404994.f_43), &iVar0);
}

float func_1093(vector3 vParam0, vector3 vParam3, int iParam6, int iParam7, int iParam8, int iParam9, var uParam10)//Position - 0x90505
{
	float fVar0;
	float fVar1;
	float fVar2;
	float fVar3;
	float fVar4;
	float fVar5;
	
	fVar1 = 1f;
	if (iParam9 > 0)
	{
		fVar1 = (system::to_float(iParam9) / system::to_float(8));
	}
	if (iParam6)
	{
		fVar0 = func_1087(system::vdist(vParam0, vParam3), 0f, 0f, 200f, 1f, 0.1f);
		fVar1 = (fVar1 * (fVar0 * 0.95f));
	}
	*uParam10 = 1E+07f;
	fVar4 = func_1088(vParam0, 1, 0, 0, 1);
	fVar0 = func_1087(fVar4, 0f, func_1099(), func_1098(), 0f, 0.3f);
	fVar1 = (fVar1 * (fVar0 * 0.95f));
	if (fVar4 < *uParam10)
	{
		fVar4 = fVar4;
	}
	fVar4 = func_1096(vParam0);
	fVar0 = func_1087(fVar4, 0f, 0f, 60f, 0.5f, 1f);
	fVar1 = (fVar1 * (fVar0 * 0.95f));
	if (fVar4 < *uParam10)
	{
		fVar4 = fVar4;
	}
	fVar5 = 100f;
	if (player::get_player_team(player::player_id()) == -1 && !func_1242(player::player_id(), 1))
	{
		fVar5 = 1f;
	}
	fVar4 = func_1095(vParam0, player::player_id(), 0);
	fVar0 = func_1087(fVar4, 0f, 0f, fVar5, 0f, 1f);
	fVar1 = (fVar1 * (fVar0 * 0.95f));
	if (fVar4 < *uParam10)
	{
		fVar4 = fVar4;
	}
	if (iParam7)
	{
		if (func_1094(vParam0, &fVar2, &fVar3))
		{
			if (fVar2 < 10f)
			{
				fVar2 = 10f;
			}
			if (fVar3 < 0.5f)
			{
				fVar3 = 0.5f;
			}
			fVar0 = func_1087(fVar2, 0f, 0f, 200f, 1f, 0.1f);
			fVar0 = (fVar0 + func_1087(fVar3, 0f, 0f, 6f, 1f, 0.5f));
			fVar0 = (fVar0 * 0.5f);
			fVar1 = (fVar1 * (fVar0 * 0.85f));
		}
	}
	if (iParam8)
	{
		fVar0 = func_1087(system::vdist(Global_2404994.f_493, vParam0), 0f, 100f, 200f, 0.1f, 0.1f);
		fVar1 = (fVar1 * (fVar0 * 0.9f));
	}
	return fVar1;
}

bool func_1094(vector3 vParam0, var uParam3, var uParam4)//Position - 0x906EB
{
	vector3 vVar0;
	int iVar3;
	var uVar4;
	var uVar5;
	
	iVar3 = pathfind::get_nth_closest_vehicle_node_id_with_heading(vParam0, 1, &uVar5, &uVar4, 1, 3f, 0f);
	if (pathfind::is_vehicle_node_id_valid(iVar3))
	{
		pathfind::get_vehicle_node_position(iVar3, &vVar0);
		*uParam3 = system::vdist(vParam0.x, vParam0.y, 0f, vVar0.x, vVar0.y, 0f);
		*uParam4 = gameplay::absf((vParam0.y - vVar0.y));
		return true;
	}
	return false;
}

float func_1095(vector3 vParam0, int iParam3, int iParam4)//Position - 0x90744
{
	float fVar0;
	float fVar1;
	int iVar2;
	int iVar3;
	
	fVar0 = 999999.9f;
	iVar2 = 0;
	while (iVar2 < 32)
	{
		if (!iParam3 == iVar2 || iParam4 == 1)
		{
			iVar3 = iVar2;
			if (func_1644(iVar3, 0, 1))
			{
				if (player::get_player_team(iVar3) != player::get_player_team(iParam3) || (player::get_player_team(iVar3) == -1 && player::get_player_team(iParam3) == -1))
				{
					if (Global_2415705.f_260[iVar2])
					{
						fVar1 = system::vdist(Global_2415705.f_130[iVar2 /*3*/], vParam0);
						if (fVar1 < fVar0)
						{
							fVar0 = fVar1;
						}
					}
				}
			}
		}
		iVar2++;
	}
	return fVar0;
}

float func_1096(vector3 vParam0)//Position - 0x907E5
{
	float fVar0;
	float fVar1;
	int iVar2;
	vector3 vVar3;
	var uVar6[32];
	int iVar39;
	
	iVar39 = ped::get_ped_nearby_peds(player::player_ped_id(), &uVar6, -1);
	fVar0 = 1E+07f;
	iVar2 = 0;
	while (iVar2 < iVar39)
	{
		if (entity::does_entity_exist(uVar6[iVar2]))
		{
			if (!entity::is_entity_dead(uVar6[iVar2], 0))
			{
				if (func_1097(uVar6[iVar2]))
				{
					vVar3 = { entity::get_entity_coords(uVar6[iVar2], 1) };
					fVar1 = gameplay::get_distance_between_coords(vParam0, vVar3, 1);
					if (fVar1 < fVar0)
					{
						fVar0 = fVar1;
					}
				}
			}
		}
		iVar2++;
	}
	return fVar0;
}

bool func_1097(int iParam0)//Position - 0x90872
{
	int iVar0;
	int iVar1;
	
	iVar0 = ped::get_ped_relationship_group_hash(iParam0);
	switch (ped::get_relationship_between_groups(iVar0, 1862763509))
	{
		case 3:
		case 5:
			return true;
			break;
	}
	switch (ped::get_relationship_between_groups(iVar0, Global_1574648[player::player_id()]))
	{
		case 3:
		case 5:
			return true;
			break;
	}
	if (Global_1589933[player::player_id() /*601*/] == 0)
	{
		iVar1 = player::get_player_team(player::player_id());
		if (iVar1 > -1 && iVar1 < 4)
		{
			switch (ped::get_relationship_between_groups(iVar0, Global_1574359[iVar1]))
			{
				case 3:
				case 5:
					return true;
					break;
				}
			}
	}
	return false;
}

float func_1098()//Position - 0x9091D
{
	if (func_1228())
	{
		if ((vehicle::is_this_model_a_plane(Global_2404994.f_43.f_67) || vehicle::is_this_model_a_heli(Global_2404994.f_43.f_67)) || Global_2404994.f_43.f_67 == joaat("rhino"))
		{
			return 640f;
		}
		else
		{
			return 320f;
		}
	}
	return 160f;
}

float func_1099()//Position - 0x90979
{
	if (func_1228())
	{
		if ((vehicle::is_this_model_a_plane(Global_2404994.f_43.f_67) || vehicle::is_this_model_a_heli(Global_2404994.f_43.f_67)) || Global_2404994.f_43.f_67 == joaat("rhino"))
		{
			return 320f;
		}
		else
		{
			return 160f;
		}
	}
	return 80f;
}

bool func_1100(vector3 vParam0, int iParam3, int iParam4, int iParam5, int iParam6, float fParam7, float fParam8, float fParam9)//Position - 0x909D5
{
	float fVar0;
	
	fVar0 = iParam6;
	if (iParam5)
	{
		fVar0 = fParam7;
	}
	if ((((fParam7 > 0f && vehicle::is_any_vehicle_near_point(vParam0, fParam7)) || (fVar0 > 0f && ped::is_any_ped_near_point(vParam0, fVar0))) || ((iParam4 == 1 && fParam8 > 0f) && object::is_any_object_near_point(vParam0, fParam8, 0))) || ((iParam3 == 1 && fParam9 > 0f) && object::is_any_object_near_point(vParam0, fParam9, 1)))
	{
		return true;
	}
	return false;
}

bool func_1101(var uParam0, vector3 vParam1, vector3 vParam4, float fParam7)//Position - 0x90A64
{
	switch (uParam0->f_10)
	{
		case 0:
			if (func_1105(*uParam0, uParam0->f_6, vParam1, vParam4, fParam7))
			{
				return true;
			}
			break;
		
		case 1:
			if (func_1104(*uParam0, uParam0->f_3, vParam1, vParam4, fParam7))
			{
				return true;
			}
			break;
		
		case 2:
			if (func_1102(*uParam0, uParam0->f_3, uParam0->f_6, vParam1, vParam4, fParam7))
			{
				return true;
			}
			break;
	}
	return false;
}

bool func_1102(vector3 vParam0, vector3 vParam3, float fParam6, vector3 vParam7, vector3 vParam10, float fParam13)//Position - 0x90AF0
{
	vector3 vVar0[8];
	int iVar25;
	
	func_1103(vParam0, vParam3, fParam6, &vVar0);
	iVar25 = 0;
	while (iVar25 < 8)
	{
		if (!object::is_point_in_angled_area(vVar0[iVar25 /*3*/], vParam7, vParam10, fParam13, 0, true))
		{
			return false;
		}
		iVar25++;
	}
	return true;
}

void func_1103(vector3 vParam0, vector3 vParam3, float fParam6, var uParam7)//Position - 0x90B42
{
	vector3 vVar0;
	vector3 vVar3;
	var uVar6;
	var uVar7;
	
	if (vParam0.y == vParam3.y)
	{
		vParam3.z = (vParam3.y + 0.01f);
	}
	vVar0 = { vParam0 - vParam3 };
	vVar3 = { func_816(vVar0, vVar0.x, vVar0.y, 0f) };
	vVar3 = { vVar3 / FtoV(system::vmag(vVar3)) };
	vVar3 = { vVar3 * FtoV((fParam6 * 0.5f)) };
	if (vParam0.y > vParam3.y)
	{
		uVar6 = vParam3.y;
		uVar7 = vParam0.y;
	}
	else
	{
		uVar6 = vParam0.y;
		uVar7 = vParam3.y;
	}
	*(uParam7[0 /*3*/]) = { Vector(uVar6, vParam0.y, vParam0.x) + vVar3 };
	*(uParam7[1 /*3*/]) = { Vector(uVar6, vParam0.y, vParam0.x) - vVar3 };
	*(uParam7[2 /*3*/]) = { Vector(uVar7, vParam0.y, vParam0.x) - vVar3 };
	*(uParam7[3 /*3*/]) = { Vector(uVar7, vParam0.y, vParam0.x) + vVar3 };
	*(uParam7[4 /*3*/]) = { Vector(uVar6, vParam3.y, vParam3.x) + vVar3 };
	*(uParam7[5 /*3*/]) = { Vector(uVar6, vParam3.y, vParam3.x) - vVar3 };
	*(uParam7[6 /*3*/]) = { Vector(uVar7, vParam3.y, vParam3.x) - vVar3 };
	*(uParam7[7 /*3*/]) = { Vector(uVar7, vParam3.y, vParam3.x) + vVar3 };
}

bool func_1104(vector3 vParam0, vector3 vParam3, vector3 vParam6, vector3 vParam9, float fParam12)//Position - 0x90C6F
{
	vector3 vVar0[8];
	int iVar25;
	
	vVar0[0 /*3*/] = { vParam0.x, vParam0.y, vParam0.y };
	vVar0[1 /*3*/] = { vParam0.x, vParam0.y, vParam3.y };
	vVar0[2 /*3*/] = { vParam0.x, vParam3.y, vParam3.y };
	vVar0[3 /*3*/] = { vParam0.x, vParam3.y, vParam0.y };
	vVar0[4 /*3*/] = { vParam3.x, vParam0.y, vParam0.y };
	vVar0[5 /*3*/] = { vParam3.x, vParam0.y, vParam3.y };
	vVar0[6 /*3*/] = { vParam3.x, vParam3.y, vParam3.y };
	vVar0[7 /*3*/] = { vParam3.x, vParam3.y, vParam0.y };
	iVar25 = 0;
	while (iVar25 < 8)
	{
		if (!object::is_point_in_angled_area(vVar0[iVar25 /*3*/], vParam6, vParam9, fParam12, 0, true))
		{
			return false;
		}
		iVar25++;
	}
	return true;
}

bool func_1105(vector3 vParam0, float fParam3, vector3 vParam4, vector3 vParam7, float fParam10)//Position - 0x90D39
{
	vector3 vVar0[4];
	int iVar13;
	
	vVar0[0 /*3*/] = { vParam0 + Vector(0f, fParam3, 0f) };
	vVar0[1 /*3*/] = { vParam0 + Vector(0f, (-1f * fParam3), 0f) };
	vVar0[2 /*3*/] = { vParam0 + Vector(0f, 0f, fParam3) };
	vVar0[3 /*3*/] = { vParam0 + Vector(0f, 0f, (-1f * fParam3)) };
	iVar13 = 0;
	while (iVar13 < 4)
	{
		if (!object::is_point_in_angled_area(vVar0[iVar13 /*3*/], vParam4, vParam7, fParam10, 0, true))
		{
			return false;
		}
		iVar13++;
	}
	return true;
}

void func_1106(vector3 vParam0, var uParam3, var uParam4, var uParam5)//Position - 0x90DBD
{
	int iVar0;
	vector3 vVar1;
	var uVar4;
	
	vVar1 = { vParam0 };
	uVar4 = func_958(vVar1);
	iVar0 = 0;
	while (iVar0 < Global_2410138[uVar4])
	{
		if (func_957(vVar1, &(Global_2409309[uVar4 /*92*/][iVar0 /*7*/])))
		{
			*uParam3 = { Global_2409309[uVar4 /*92*/][iVar0 /*7*/] };
			*uParam4 = { Global_2409309[uVar4 /*92*/][iVar0 /*7*/].f_3 };
			*uParam5 = Global_2409309[uVar4 /*92*/][iVar0 /*7*/].f_6;
			return;
		}
		iVar0++;
	}
	iVar0 = 0;
	while (iVar0 < Global_2410138[8])
	{
		if (func_957(vVar1, &(Global_2409309[8 /*92*/][iVar0 /*7*/])))
		{
			*uParam3 = { Global_2409309[8 /*92*/][iVar0 /*7*/] };
			*uParam4 = { Global_2409309[8 /*92*/][iVar0 /*7*/].f_3 };
			*uParam5 = Global_2409309[8 /*92*/][iVar0 /*7*/].f_6;
			return;
		}
		iVar0++;
	}
}

bool func_1107(vector3 vParam0)//Position - 0x90EAB
{
	int iVar0;
	int iVar1;
	
	if (Global_2404994.f_43.f_55)
	{
		if (interior::is_valid_interior(Global_2404994.f_43.f_56))
		{
			if (!interior::_are_coords_colliding_with_exterior(vParam0))
			{
				iVar0 = interior::get_interior_at_coords(vParam0);
				if (interior::is_valid_interior(iVar0))
				{
					iVar1 = interior::get_interior_group_id(iVar0);
					if (!iVar1 == Global_2404994.f_43.f_57)
					{
						return false;
					}
				}
				else
				{
					return false;
				}
			}
			else
			{
				return false;
			}
		}
	}
	return true;
}

int func_1108(vector3 vParam0)//Position - 0x90F16
{
	switch (Global_2404994.f_2040)
	{
		case 0:
			return func_952(vParam0, Global_2404994.f_2019, Global_2404994.f_2022, 0, 0);
			break;
		
		case 1:
			return func_950(vParam0, Global_2404994.f_2033, Global_2404994.f_2036, 0, 0);
			break;
		
		case 2:
			return object::is_point_in_angled_area(vParam0, Global_2404994.f_2033, Global_2404994.f_2036, Global_2404994.f_2039, 0, true);
			break;
	}
	return false;
}

bool func_1109(vector3 vParam0, var uParam3, var uParam4, float fParam5)//Position - 0x90FA8
{
	float fVar0;
	int iVar1;
	vector3 vVar2;
	vector3 vVar5;
	float fVar8;
	
	fVar0 = 0f;
	iVar1 = 0;
	iVar1 = 0;
	while (iVar1 < *uParam3)
	{
		fVar0 = ((uParam3[iVar1 /*4*/])->f_3 + fParam5);
		if (system::vdist(*(uParam3[iVar1 /*4*/]), vParam0) < fVar0)
		{
			return true;
		}
		iVar1++;
	}
	vVar2 = { 0f, 0f, 0f };
	vVar5 = { 0f, 0f, 0f };
	fVar8 = 0f;
	iVar1 = 0;
	while (iVar1 < *uParam4)
	{
		vVar2 = { *(uParam4[iVar1 /*10*/]) };
		vVar5 = { (uParam4[iVar1 /*10*/])->f_3 };
		fVar8 = (uParam4[iVar1 /*10*/])->f_6;
		if (object::is_point_in_angled_area(vParam0, vVar2, vVar5, fVar8, 0, true))
		{
			return true;
		}
		iVar1++;
	}
	return false;
}

bool func_1110(var uParam0, var uParam1, int iParam2, float fParam3)//Position - 0x91056
{
	int iVar0;
	vector3 vVar1;
	
	iVar0 = 0;
	iVar0 = 0;
	while (iVar0 < *uParam1)
	{
		if (system::vdist((uParam1[iVar0 /*10*/])->f_7, *uParam0) < (80f * fParam3))
		{
			if (iParam2)
			{
				vVar1 = { *uParam0 };
				func_963(&vVar1, (uParam1[iVar0 /*10*/])->f_7, 80f, 1036831949, 0, 0);
				*uParam0 = { vVar1 };
			}
			return true;
		}
		iVar0++;
	}
	return false;
}

bool func_1111(int iParam0)//Position - 0x910C9
{
	switch (Global_1312443)
	{
		case 0:
			if (!func_6(iParam0))
			{
				if (Global_1589933[iParam0 /*601*/] == 0)
				{
					return true;
				}
			}
			break;
	}
	return false;
}

bool func_1112(vector3 vParam0, float fParam3, int iParam4)//Position - 0x910FF
{
	int iVar0;
	
	iVar0 = 0;
	while (iVar0 < iParam4)
	{
		if (system::vdist2(Global_2404994.f_2155[iVar0 /*3*/], vParam0) < (fParam3 * fParam3))
		{
			return true;
		}
		iVar0++;
	}
	return false;
}

bool func_1113(vector3 vParam0, float fParam3, int iParam4, int iParam5, int iParam6, int iParam7, float fParam8, float fParam9, float fParam10, float fParam11, float fParam12, float fParam13, int iParam14)//Position - 0x9113D
{
	Global_2404994.f_3 = 0;
	if (!func_940(vParam0, 0.5f, player::player_id(), 0, 0))
	{
		Global_2404994.f_3++;
		if (iParam5)
		{
			if (func_978(vParam0, 3.65f, 0.5f, 1.5f, 1f, 0, iParam6, iParam7, fParam8, 0, -1, 1, 0, 0, fParam13, iParam14, 0))
			{
				Global_2404994.f_3 = (Global_2404994.f_3 + Global_2404994.f_2);
				if (!func_1116(vParam0, fParam12))
				{
					Global_2404994.f_3++;
					if (!func_953(vParam0, 1056964608))
					{
						Global_2404994.f_3++;
						return true;
					}
				}
			}
			else
			{
				Global_2404994.f_3 = (Global_2404994.f_3 + Global_2404994.f_2);
			}
		}
		else if (!iParam4)
		{
			if (func_978(vParam0, 3.65f, 0.5f, 1.5f, 1f, 0, iParam6, iParam7, fParam8, 0, -1, 1, 0, 0, fParam13, iParam14, 0))
			{
				Global_2404994.f_3 = (Global_2404994.f_3 + Global_2404994.f_2);
				if (!func_1116(vParam0, fParam12))
				{
					Global_2404994.f_3++;
					if (!func_1114(vParam0, fParam3, fParam9, fParam10, 1084227584))
					{
						Global_2404994.f_3++;
						if (!func_953(vParam0, 1056964608))
						{
							Global_2404994.f_3++;
							return true;
						}
					}
				}
			}
			else
			{
				Global_2404994.f_3 = (Global_2404994.f_3 + Global_2404994.f_2);
			}
		}
		else if (func_978(vParam0, 6f, 5f, 5f, 5f, 0, iParam6, iParam7, fParam8, 0, -1, 1, 0, 0, fParam13, iParam14, 0))
		{
			Global_2404994.f_3 = (Global_2404994.f_3 + Global_2404994.f_2);
			if (!func_1116(vParam0, fParam12))
			{
				Global_2404994.f_3++;
				if (!func_1114(vParam0, fParam3, fParam9, fParam10, fParam11))
				{
					Global_2404994.f_3++;
					if (!func_953(vParam0, 1056964608))
					{
						Global_2404994.f_3++;
						return true;
					}
				}
			}
		}
		else
		{
			Global_2404994.f_3 = (Global_2404994.f_3 + Global_2404994.f_2);
		}
	}
	return false;
}

bool func_1114(vector3 vParam0, float fParam3, float fParam4, float fParam5, float fParam6)//Position - 0x9137A
{
	int iVar0;
	int iVar1;
	
	iVar0 = 0;
	while (iVar0 < 32)
	{
		iVar1 = iVar0;
		if (!player::player_id() == iVar1)
		{
			if ((func_1644(iVar1, 1, 1) && func_931(iVar1)) && network::_0x9DE986FC9A87C474(player::player_id(), iVar1))
			{
				if (!func_594(player::player_id(), iVar1, -2, 0))
				{
					if (func_1115(func_640(iVar1), vParam0, fParam3, fParam4, fParam5, fParam6))
					{
						return true;
					}
				}
			}
		}
		iVar0++;
	}
	return false;
}

int func_1115(vector3 vParam0, vector3 vParam3, float fParam6, float fParam7, float fParam8, float fParam9)//Position - 0x913F9
{
	vector3 vVar0;
	vector3 vVar3;
	
	fParam6 = (fParam6 * -1f);
	fParam6 = (fParam6 + 360f);
	vVar0.x = system::sin(fParam6);
	vVar0.y = system::cos(fParam6);
	vVar0.z = 0f;
	vVar0 = { vVar0 / FtoV(system::vmag(vVar0)) };
	vVar0 = { vVar0 * Vector(fParam7, fParam7, fParam7) };
	vVar3 = { vParam3 + vVar0 };
	vVar3.z = vParam3.y;
	vVar3.z = (vVar3.y + fParam9);
	vParam3.z = (vParam3.y + fParam9);
	return object::is_point_in_angled_area(vParam0, vParam3, vVar3, fParam8, 0, true);
}

bool func_1116(vector3 vParam0, float fParam3)//Position - 0x91485
{
	int iVar0;
	int iVar1;
	
	iVar0 = 0;
	while (iVar0 < 32)
	{
		iVar1 = iVar0;
		if ((func_1644(iVar1, 1, 1) && func_931(iVar1)) && network::_0x9DE986FC9A87C474(player::player_id(), iVar1))
		{
			if ((player::get_player_team(player::player_id()) == -1 && player::get_player_team(iVar1) == -1) && !func_1242(player::player_id(), 1))
			{
				return false;
			}
			else if ((player::get_player_team(player::player_id()) == -1 && !player::player_id() == iVar1) || !func_594(player::player_id(), iVar1, -2, 0))
			{
				if (system::vdist(vParam0, func_640(iVar1)) < fParam3)
				{
					return true;
				}
			}
		}
		iVar0++;
	}
	return false;
}

bool func_1117(int iParam0)//Position - 0x91541
{
	if ((Global_2404994.f_476 == 9 || Global_2404994.f_476 == 9) || (Global_2404994.f_476 == 15 && iParam0 == 1))
	{
		return true;
	}
	return false;
}

bool func_1118(vector3 vParam0, float fParam3, int iParam4, float fParam5)//Position - 0x91584
{
	int iVar0;
	int iVar1;
	float fVar2;
	int iVar3;
	
	iVar3 = player::get_player_team(player::player_id());
	if (!iVar3 == -1)
	{
		iVar0 = 0;
		while (iVar0 < 32)
		{
			iVar1 = iVar0;
			if (func_1644(iVar1, 1, 1))
			{
				if ((!func_37(iVar1, 0) && network::_0x9DE986FC9A87C474(player::player_id(), iVar1)) && iVar1 != player::player_id())
				{
					fVar2 = iParam4;
					if (fParam5 > 0f)
					{
						if (!player::get_player_team(iVar1) == -1)
						{
							if (player::get_player_team(iVar1) == player::get_player_team(player::player_id()))
							{
								fVar2 = fParam5;
							}
						}
					}
					if (player::get_player_team(iVar1) == iVar3)
					{
						if (gameplay::get_distance_between_coords(func_640(iVar1), vParam0, 1) <= (fVar2 + fParam3))
						{
							if (network::is_sphere_visible_to_player(iVar1, vParam0, fParam3))
							{
								return true;
							}
						}
					}
				}
			}
			iVar0++;
		}
	}
	return false;
}

void func_1119(vector3 vParam0, var uParam3, var uParam4)//Position - 0x91649
{
	int iVar0;
	int iVar1;
	struct<4> Var2;
	struct<8> Var6;
	vector3 vVar16;
	vector3 vVar19;
	
	iVar0 = 0;
	while (iVar0 < *uParam3)
	{
		*(uParam3[iVar0 /*4*/]) = { Var2 };
		iVar0++;
	}
	iVar0 = 0;
	while (iVar0 < *uParam4)
	{
		*(uParam4[iVar0 /*10*/]) = { Var6 };
		iVar0++;
	}
	iVar0 = 0;
	iVar1 = 0;
	iVar1 = 0;
	while (iVar1 < Global_1311741)
	{
		iVar0 = 0;
		while (iVar0 < *uParam3)
		{
			if (!gameplay::is_bit_set(Global_2359719[iVar1 /*26*/].f_12, 11))
			{
				if (system::vmag(*(uParam3[iVar0 /*4*/])) == 0f || system::vdist(Global_2359719[iVar1 /*26*/].f_3, vParam0) < system::vdist(*(uParam3[iVar0 /*4*/]), vParam0))
				{
					Var2 = { Global_2359719[iVar1 /*26*/].f_3 };
					Var2.f_3 = Global_2359719[iVar1 /*26*/].f_6.f_2;
					func_1121(&Var2, uParam3, iVar0);
					iVar0 = *uParam3;
				}
			}
			iVar0++;
		}
		iVar1++;
	}
	iVar0 = 0;
	iVar1 = 0;
	iVar1 = 0;
	while (iVar1 < Global_1311706)
	{
		iVar0 = 0;
		while (iVar0 < *uParam4)
		{
			vVar16 = { Global_1311025[iVar1 /*8*/].f_1 + Global_1311025[iVar1 /*8*/].f_4 * Vector(0.5f, 0.5f, 0.5f) };
			vVar19 = { *(uParam4[iVar0 /*10*/]) + (uParam4[iVar0 /*10*/])->f_3 * Vector(0.5f, 0.5f, 0.5f) };
			if (system::vmag(*(uParam4[iVar0 /*10*/])) == 0f || system::vdist(vVar16, vParam0) < system::vdist(vVar19, vParam0))
			{
				Var6 = { Global_1311025[iVar1 /*8*/].f_1 };
				Var6.f_3 = { Global_1311025[iVar1 /*8*/].f_4 };
				Var6.f_6 = Global_1311025[iVar1 /*8*/].f_7;
				Var6.f_7 = { Global_2359395[iVar1 /*3*/] };
				func_1120(&Var6, uParam4, iVar0);
				iVar0 = *uParam4;
			}
			iVar0++;
		}
		iVar1++;
	}
}

void func_1120(var uParam0, var uParam1, int iParam2)//Position - 0x91831
{
	Global_2411136 = { *(uParam1[iParam2 /*10*/]) };
	*(uParam1[iParam2 /*10*/]) = { *uParam0 };
	if (iParam2 + 1 < *uParam1)
	{
		func_1120(&Global_2411136, uParam1, iParam2 + 1);
	}
}

void func_1121(var uParam0, var uParam1, int iParam2)//Position - 0x9186F
{
	Global_2411132 = { *(uParam1[iParam2 /*4*/]) };
	*(uParam1[iParam2 /*4*/]) = { *uParam0 };
	if (iParam2 + 1 < *uParam1)
	{
		func_1121(&Global_2411132, uParam1, iParam2 + 1);
	}
}

void func_1122(var uParam0, var uParam1)//Position - 0x918A9
{
	int iVar0;
	vector3 vVar1;
	float fVar4;
	
	if (Global_2404994.f_1815 > 0)
	{
		iVar0 = 0;
		while (iVar0 < Global_2404994.f_1815)
		{
			if (func_1123(Global_2404994.f_1816[iVar0 /*4*/], uParam0))
			{
				fVar4 = Global_2404994.f_1816[iVar0 /*4*/].f_3;
				if (system::vmag(*uParam1) > 0.01f)
				{
					vVar1 = { *uParam1 - Global_2404994.f_1816[iVar0 /*4*/] };
					fVar4 = gameplay::get_heading_from_vector_2d(vVar1.x, vVar1.y);
				}
				func_1086(Global_2404994.f_1816[iVar0 /*4*/], fVar4, uParam0, uParam1, 0, -1);
				Global_2404994.f_2044++;
			}
			iVar0++;
		}
	}
	if (uParam0->f_5 && Global_2404994.f_2349)
	{
		func_1080(&(Global_2404994.f_2044.f_6[0 /*9*/]), &(Global_2404994.f_2044.f_6[1 /*9*/]), &(Global_2404994.f_2044.f_6[2 /*9*/]));
	}
}

int func_1123(vector3 vParam0, var uParam3)//Position - 0x91996
{
	switch (uParam3->f_7)
	{
		case 0:
			return func_1071(vParam0, uParam3->f_7, *uParam3, 0f, 0f, 0f, uParam3->f_4);
		
		case 1:
		case 2:
			return func_1071(vParam0, uParam3->f_7, uParam3->f_8, uParam3->f_11, uParam3->f_14);
		
		default:
	}
	return false;
}

void func_1124(vector3 vParam0, vector3 vParam3, var uParam6, var uParam7, var uParam8)//Position - 0x919F3
{
	float fVar0;
	
	func_951(&vParam0, &vParam3);
	fVar0 = (vParam3.x - vParam0.x);
	*uParam6 = (vParam0.x + (fVar0 * 0.5f));
	uParam6->f_1 = vParam0.y;
	uParam6->f_2 = vParam0.y;
	*uParam7 = *uParam6;
	uParam7->f_1 = vParam3.y;
	uParam7->f_2 = vParam3.y;
	*uParam8 = (fVar0 * 0.5f);
}

void func_1125()//Position - 0x91A49
{
	func_1130();
	func_1129();
	func_1128();
	func_1127();
	func_1126();
}

void func_1126()//Position - 0x91A65
{
	struct<9> Var0;
	int iVar9;
	
	Var0.f_2 = 1176256410;
	iVar9 = 0;
	while (iVar9 < 128)
	{
		Global_2407344[iVar9 /*9*/] = { Var0 };
		iVar9++;
	}
}

void func_1127()//Position - 0x91A9D
{
	struct<10> Var0;
	int iVar10;
	
	iVar10 = 0;
	while (iVar10 < 4)
	{
		Global_2404994.f_2044.f_67[iVar10 /*10*/] = { Var0 };
		iVar10++;
	}
}

void func_1128()//Position - 0x91ACC
{
	struct<4> Var0;
	int iVar4;
	
	iVar4 = 0;
	while (iVar4 < 8)
	{
		Global_2404994.f_2044.f_34[iVar4 /*4*/] = { Var0 };
		iVar4++;
	}
}

void func_1129()//Position - 0x91AFA
{
	struct<9> Var0;
	int iVar9;
	
	Var0.f_2 = 1176256410;
	iVar9 = 0;
	while (iVar9 < 3)
	{
		Global_2404994.f_2044.f_6[iVar9 /*9*/] = { Var0 };
		iVar9++;
	}
}

void func_1130()//Position - 0x91B36
{
	struct<6> Var0;
	
	Var0.f_3 = -1;
	Global_2404994.f_2044 = { Var0 };
}

var func_1131()//Position - 0x91B54
{
	return Global_1310987.f_4;
}

void func_1132(float fParam0, float fParam1)//Position - 0x91B62
{
	func_1134();
	func_1133(fParam0, fParam1);
}

void func_1133(float fParam0, float fParam1)//Position - 0x91B76
{
	pathfind::add_navmesh_required_region(fParam0, fParam1, 0.1f);
	Global_2404994.f_2027 = script::get_id_of_this_thread();
	Global_2404994.f_2025 = 1;
	Global_2404994.f_2028 = network::get_network_time();
}

void func_1134()//Position - 0x91BA9
{
	if (Global_2404994.f_2025)
	{
		if (script::get_id_of_this_thread() == Global_2404994.f_2027)
		{
			pathfind::remove_navmesh_required_regions();
		}
		else
		{
			pathfind::remove_navmesh_required_regions();
		}
		Global_2404994.f_2025 = 0;
	}
}

void func_1135(var uParam0, int iParam1)//Position - 0x91BDC
{
	int iVar0;
	
	iVar0 = 0;
	while (iVar0 < 3)
	{
		if ((*iParam1 + iVar0) < 3)
		{
			*(uParam0[iVar0 /*3*/]) = { *(uParam0[(*iParam1 + iVar0) /*3*/]) };
			uParam0->f_10[iVar0] = uParam0->f_10[(*iParam1 + iVar0)];
			uParam0->f_14[iVar0] = uParam0->f_14[(*iParam1 + iVar0)];
		}
		else
		{
			*(uParam0[iVar0 /*3*/]) = { 0f, 0f, 0f };
			uParam0->f_10[iVar0] = 0f;
			uParam0->f_14[iVar0] = 0;
		}
		iVar0++;
	}
	Global_2404994.f_552 = 2;
	*iParam1 = 3;
}

bool func_1136(int iParam0)//Position - 0x91C68
{
	if (iParam0 == 3 || iParam0 == 26)
	{
		return true;
	}
	return false;
}

Vector3 func_1137(vector3 vParam0, vector3 vParam3, float fParam6, int iParam7)//Position - 0x91C87
{
	int iVar0;
	vector3 vVar1;
	
	iVar0 = 0;
	while (iVar0 < 10)
	{
		switch (iParam7)
		{
			case 0:
				vVar1 = { func_1153(vParam0, fParam6, 0) };
				break;
			
			case 1:
				vVar1 = { func_1139(vParam0, vParam3) };
				break;
			
			case 2:
				vVar1 = { func_1138(vParam0, vParam3, fParam6) };
				break;
		}
		if (func_1140(&vVar1))
		{
			return vVar1;
		}
		iVar0++;
	}
	return vVar1;
}

Vector3 func_1138(vector3 vParam0, vector3 vParam3, float fParam6)//Position - 0x91D0C
{
	vector3 vVar0;
	vector3 vVar3;
	
	vVar0 = { vParam3 - vParam0 };
	vVar3 = { func_816(vVar0, vVar0.x, vVar0.y, 0f) };
	vVar0 = { vVar0 / FtoV(system::vmag(vVar0)) };
	vVar3 = { vVar3 / FtoV(system::vmag(vVar3)) };
	vVar3 = { vVar3 * FtoV(gameplay::get_random_float_in_range((fParam6 * -0.5f), (fParam6 * 0.5f))) };
	vVar0 = { vVar0 * FtoV(gameplay::get_random_float_in_range(0f, system::vdist(vParam0, vParam3))) };
	return vParam0 + vVar0 + vVar3;
}

Vector3 func_1139(vector3 vParam0, vector3 vParam3)//Position - 0x91D9F
{
	return gameplay::get_random_float_in_range(vParam0.x, vParam3.x), gameplay::get_random_float_in_range(vParam0.y, vParam3.y), gameplay::get_random_float_in_range(vParam0.y, vParam3.y);
}

bool func_1140(var uParam0)//Position - 0x91DC7
{
	func_1141(uParam0);
	if (func_978(*uParam0, 6f, 1f, 1f, 5f, 0, 0, 0, 120f, 0, -1, 1, 0f, 0, 0, 0, 0))
	{
		return true;
	}
	return false;
}

void func_1141(var uParam0)//Position - 0x91DFC
{
	float fVar0;
	
	func_1143(uParam0, 1, 1, 1, 1);
	fVar0 = pathfind::_0x29C24BFBED8AB8FB(*uParam0, uParam0->f_1);
	fVar0 = (fVar0 + 100f);
	if (uParam0->f_2 < fVar0)
	{
		uParam0->f_2 = fVar0;
	}
	func_1142(uParam0);
}

void func_1142(var uParam0)//Position - 0x91E3B
{
	int iVar0;
	
	iVar0 = 0;
	while (iVar0 < 4)
	{
		if (object::is_point_in_angled_area(*uParam0, Global_2410885[iVar0 /*7*/], Global_2410885[iVar0 /*7*/].f_3, Global_2410885[iVar0 /*7*/].f_6, 0, true))
		{
			if (Global_2410885[iVar0 /*7*/].f_3.f_2 > Global_2410885[iVar0 /*7*/].f_2)
			{
				uParam0->f_2 = Global_2410885[iVar0 /*7*/].f_3.f_2;
			}
			else
			{
				uParam0->f_2 = Global_2410885[iVar0 /*7*/].f_2;
			}
		}
		iVar0++;
	}
}

void func_1143(var uParam0, int iParam1, int iParam2, int iParam3, int iParam4)//Position - 0x91EBD
{
	if (iParam1)
	{
		if (func_990(Global_2404994.f_493))
		{
			if (func_973(uParam0, 1, 0, 0))
			{
			}
		}
	}
	if (iParam2)
	{
		if (func_971(uParam0, 1, 0))
		{
		}
	}
	if (iParam3)
	{
		if (func_959(uParam0, 1))
		{
		}
	}
	if (iParam4)
	{
		func_1145(uParam0, 7f, player::player_id(), 0);
	}
	func_1144(uParam0, 1120403456);
}

void func_1144(var uParam0, float fParam1)//Position - 0x91F21
{
	if (*uParam0 < -8000f)
	{
		*uParam0 = (-8000f + fParam1);
	}
	if (*uParam0 > 8000f)
	{
		*uParam0 = (8000f - fParam1);
	}
	if (uParam0->f_1 < -8000f)
	{
		uParam0->f_1 = (-8000f + fParam1);
	}
	if (uParam0->f_1 > 8000f)
	{
		uParam0->f_1 = (8000f - fParam1);
	}
}

void func_1145(var uParam0, float fParam1, int iParam2, int iParam3)//Position - 0x91F89
{
	int iVar0;
	int iVar1;
	
	iVar0 = 0;
	while (iVar0 < 32)
	{
		if (!iParam2 == iVar0 || iParam3 == 1)
		{
			iVar1 = iVar0;
			if (func_1644(iVar1, 0, 1) && func_1644(iParam2, 0, 1))
			{
				if (Global_2415705.f_260[iVar0])
				{
					if (system::vdist(Global_2415705.f_130[iVar0 /*3*/], *uParam0) < fParam1)
					{
						func_963(uParam0, Global_2415705.f_130[iVar0 /*3*/], fParam1, 1036831949, 0, 0);
					}
				}
				else if (system::vdist(func_640(iVar1), *uParam0) < fParam1)
				{
					func_963(uParam0, func_640(iVar1), fParam1, 1036831949, 0, 0);
				}
			}
			else if (Global_2415705.f_260[iVar0])
			{
				if (system::vdist(Global_2415705.f_130[iVar0 /*3*/], *uParam0) < fParam1)
				{
					func_963(uParam0, Global_2415705.f_130[iVar0 /*3*/], fParam1, 1036831949, 0, 0);
				}
			}
			else if (func_1644(iVar1, 0, 1))
			{
				if (system::vdist(func_640(iVar1), *uParam0) < fParam1)
				{
					func_963(uParam0, func_640(iVar1), fParam1, 1036831949, 0, 0);
				}
			}
		}
		iVar0++;
	}
}

bool func_1146()//Position - 0x920BF
{
	if (func_1228())
	{
		if (!Global_2404994.f_43.f_67 == 0)
		{
			if (func_1039(Global_2404994.f_43.f_67))
			{
				return true;
			}
		}
	}
	return false;
}

void func_1147()//Position - 0x920F0
{
	if (!Global_2404994.f_638)
	{
		if (func_990(Global_2404994.f_525))
		{
			if (func_973(&(Global_2404994.f_525), 1, 0, 0))
			{
				Global_2404994.f_499.f_7 = 0;
			}
			if (Global_2404994.f_525.f_2 <= 0f)
			{
				if (func_1201(&(Global_2404994.f_525), 1))
				{
					Global_2404994.f_499.f_7 = 0;
				}
			}
		}
		if (func_971(&(Global_2404994.f_525), 1, 0))
		{
			Global_2404994.f_499.f_7 = 0;
		}
		if (func_959(&(Global_2404994.f_525), 1))
		{
			Global_2404994.f_499.f_7 = 0;
		}
	}
	if (func_1225())
	{
		Global_2404994.f_552 = 4;
	}
	else
	{
		Global_2404994.f_2200 = 1;
		Global_2404994.f_552 = 6;
	}
}

bool func_1148(vector3 vParam0)//Position - 0x921AA
{
	int iVar0;
	
	iVar0 = pathfind::get_nth_closest_vehicle_node_id(vParam0, 1, 1, 1077936128, 0);
	if (pathfind::is_vehicle_node_id_valid(iVar0))
	{
		if (pathfind::_get_is_slow_road_flag(iVar0))
		{
			return true;
		}
	}
	return false;
}

Vector3 func_1149()//Position - 0x921DB
{
	int iVar0;
	int iVar1;
	int iVar2;
	vector3 vVar3[32];
	int iVar100;
	
	iVar100 = 0;
	if (Global_1574259)
	{
		iVar0 = 0;
		iVar2 = 0;
	}
	else
	{
		iVar0 = gameplay::get_random_int_in_range(0, 32);
		iVar2 = iVar0;
	}
	while (iVar1 < 32)
	{
		if (system::vmag(Global_2404994.f_43.f_196[iVar2 /*3*/]) > 0f)
		{
			vVar3[iVar100 /*3*/] = { Global_2404994.f_43.f_196[iVar2 /*3*/] };
			iVar100++;
			if (func_1150(Global_2404994.f_43.f_196[iVar2 /*3*/]))
			{
				return Global_2404994.f_43.f_196[iVar2 /*3*/];
			}
		}
		iVar2++;
		if (iVar2 >= 32)
		{
			iVar2 = 0;
		}
		iVar1++;
	}
	if (iVar100 > 0)
	{
		iVar2 = gameplay::get_random_int_in_range(0, iVar100);
		return vVar3[iVar2 /*3*/];
	}
	return Global_2412527;
}

bool func_1150(vector3 vParam0)//Position - 0x922A2
{
	if (func_942(vParam0, 0.5f, player::player_id(), 0, 0) || !func_978(vParam0, 3f, 1f, 1f, 5f, 0, 0, 0, 0f, 1, -1, 0, 0f, 1, 0f, 0, 0))
	{
		return false;
	}
	return true;
}

Vector3 func_1151(vector3 vParam0, float fParam3)//Position - 0x922E4
{
	vector3 vVar0;
	float fVar3;
	
	vVar0 = { 0f, 1f, 0f };
	fVar3 = (IntToFloat(player::player_id()) * (360f / 32f));
	func_794(&vVar0, 0f, 0f, fVar3);
	vVar0 = { vVar0 * Vector(fParam3, fParam3, fParam3) };
	return vParam0 + vVar0;
}

int func_1152(int iParam0, int iParam1)//Position - 0x92325
{
	int iVar0;
	float fVar1;
	float fVar2;
	int iVar3;
	int iVar4;
	vector3 vVar5;
	vector3 vVar8;
	
	fVar2 = 999999.9f;
	iVar3 = -1;
	vVar5 = { entity::get_entity_coords(player::get_player_ped(iParam0), 0) };
	iVar0 = 0;
	while (iVar0 < 32)
	{
		iVar4 = iVar0;
		if (!iParam0 == iVar4)
		{
			if (func_1644(iVar4, iParam1, 1))
			{
				if (func_1064(iParam0, iVar4))
				{
					vVar8 = { entity::get_entity_coords(player::get_player_ped(iVar4), 0) };
					fVar1 = system::vdist(vVar5, vVar8);
					if (fVar1 < fVar2)
					{
						iVar3 = iVar0;
						fVar2 = fVar1;
					}
				}
			}
		}
		iVar0++;
	}
	return iVar3;
}

Vector3 func_1153(vector3 vParam0, float fParam3, float fParam4)//Position - 0x923AC
{
	vector3 vVar0;
	
	vVar0 = { 0f, gameplay::get_random_float_in_range(fParam4, fParam3), 0f };
	func_794(&vVar0, 0f, 0f, gameplay::get_random_float_in_range(0f, 360f));
	return vParam0 + vVar0;
}

Vector3 func_1154()//Position - 0x923DD
{
	vector3 vVar0;
	int iVar3;
	int iVar4;
	int iVar5;
	
	iVar4 = 0;
	while (iVar4 < 32)
	{
		iVar5 = iVar4;
		if (func_1644(iVar5, 1, 1))
		{
			if (!iVar5 == player::player_id())
			{
				if (network::_0x9DE986FC9A87C474(player::player_id(), iVar5))
				{
					vVar0 = { vVar0 + func_640(iVar5) };
					iVar3++;
				}
			}
		}
		iVar4++;
	}
	if (iVar3 > 0)
	{
		vVar0 = { vVar0 / FtoV(system::to_float(iVar3)) };
	}
	else
	{
		vVar0 = { func_640(player::player_id()) };
	}
	return vVar0;
}

void func_1155(int iParam0, int iParam1, var uParam2, int iParam3, int iParam4)//Position - 0x9245D
{
	struct<6> Var0[2];
	vector3 vVar13;
	
	Var0[0 /*6*/] = { func_1159(iParam3, iParam4) };
	Var0[1 /*6*/] = { func_1159(iParam0, iParam4) };
	*uParam2 = { func_1157(iParam1, iParam3) };
	vVar13 = { *uParam2 - Var0[0 /*6*/] };
	vVar13 = { func_1156(vVar13, -Var0[0 /*6*/].f_3.f_2) };
	vVar13 = { func_1156(vVar13, Var0[1 /*6*/].f_3.f_2) };
	*uParam2 = { object::_get_object_offset_from_coords(Var0[1 /*6*/], 0f, vVar13) };
	switch (iParam1)
	{
		case 6:
		case 2:
		case 9:
		case 10:
		case 11:
		case 12:
		case 13:
		case 14:
		case 34:
		case 35:
		case 36:
		case 38:
		case 39:
		case 120:
		case 121:
		case 125:
		case 40:
		case 41:
		case 43:
		case 44:
		case 45:
		case 42:
		case 46:
		case 47:
		case 48:
		case 49:
		case 50:
		case 51:
		case 52:
		case 53:
		case 54:
		case 55:
		case 56:
		case 64:
		case 65:
		case 57:
		case 58:
		case 59:
		case 60:
		case 61:
		case 62:
		case 63:
		case 66:
		case 67:
		case 68:
		case 109:
		case 69:
		case 70:
		case 71:
		case 72:
		case 73:
		case 74:
		case 75:
		case 76:
		case 77:
		case 78:
		case 79:
		case 80:
		case 81:
		case 82:
		case 83:
		case 85:
		case 84:
		case 89:
		case 90:
		case 91:
		case 92:
		case 94:
		case 95:
		case 96:
		case 97:
		case 98:
		case 93:
		case 99:
		case 100:
		case 106:
		case 107:
		case 108:
		case 119:
		case 122:
		case 123:
		case 124:
		case 138:
		case 139:
		case 140:
		case 130:
		case 128:
		case 141:
		case 142:
		case 143:
		case 144:
		case 145:
		case 146:
		case 147:
		case 148:
		case 153:
		case 154:
		case 155:
		case 157:
		case 234:
		case 174:
		case 175:
		case 176:
		case 177:
		case 178:
		case 179:
		case 180:
		case 235:
		case 149:
		case 150:
		case 151:
		case 152:
		case 172:
		case 187:
		case 173:
		case 201:
		case 188:
		case 189:
		case 190:
		case 191:
		case 192:
		case 193:
		case 194:
		case 195:
		case 196:
		case 197:
		case 198:
		case 199:
		case 200:
		case 284:
		case 285:
		case 286:
		case 287:
		case 202:
		case 203:
		case 204:
		case 205:
		case 206:
		case 207:
		case 208:
		case 209:
		case 210:
		case 211:
		case 212:
		case 213:
		case 214:
		case 216:
		case 217:
		case 182:
		case 183:
		case 181:
		case 156:
		case 236:
		case 237:
		case 238:
		case 239:
		case 240:
		case 241:
		case 242:
		case 243:
		case 244:
		case 245:
		case 246:
		case 247:
		case 248:
		case 249:
		case 250:
		case 251:
		case 252:
		case 253:
		case 254:
		case 255:
		case 256:
		case 257:
		case 258:
		case 259:
		case 260:
		case 261:
		case 262:
		case 263:
		case 264:
		case 265:
		case 266:
		case 267:
		case 268:
		case 269:
		case 270:
		case 271:
		case 272:
		case 273:
		case 274:
		case 275:
			while (Var0[0 /*6*/].f_3.f_2 > 180f)
			{
				Var0[0 /*6*/].f_3.f_2 = (Var0[0 /*6*/].f_3.f_2 - 360f);
			}
			while (Var0[0 /*6*/].f_3.f_2 < -180f)
			{
				Var0[0 /*6*/].f_3.f_2 = (Var0[0 /*6*/].f_3.f_2 + 360f);
			}
			while (Var0[1 /*6*/].f_3.f_2 > 180f)
			{
				Var0[1 /*6*/].f_3.f_2 = (Var0[1 /*6*/].f_3.f_2 - 360f);
			}
			while (Var0[1 /*6*/].f_3.f_2 < -180f)
			{
				Var0[1 /*6*/].f_3.f_2 = (Var0[1 /*6*/].f_3.f_2 + 360f);
			}
			uParam2->f_3.f_2 = (uParam2->f_3.f_2 + (Var0[1 /*6*/].f_3.f_2 - Var0[0 /*6*/].f_3.f_2));
			while (uParam2->f_3.f_2 > 180f)
			{
				uParam2->f_3.f_2 = (uParam2->f_3.f_2 - 360f);
			}
			while (uParam2->f_3.f_2 < -180f)
			{
				uParam2->f_3.f_2 = (uParam2->f_3.f_2 + 360f);
			}
			break;
	}
	switch (iParam1)
	{
		case 278:
		case 279:
		case 280:
		case 281:
		case 282:
		case 283:
		case 300:
		case 301:
		case 302:
		case 303:
		case 304:
		case 306:
		case 305:
		case 308:
		case 309:
		case 312:
		case 313:
		case 314:
		case 315:
		case 316:
		case 317:
		case 318:
		case 319:
		case 320:
		case 321:
		case 322:
		case 323:
		case 324:
		case 325:
		case 326:
		case 327:
		case 328:
		case 329:
		case 307:
		case 331:
		case 332:
		case 333:
		case 334:
		case 310:
		case 335:
		case 336:
		case 337:
		case 338:
		case 339:
		case 311:
		case 340:
		case 435:
		case 436:
		case 437:
		case 470:
		case 477:
		case 504:
		case 507:
		case 510:
		case 513:
		case 528:
		case 531:
		case 534:
		case 537:
		case 540:
		case 547:
		case 445:
		case 446:
		case 447:
		case 448:
		case 449:
		case 450:
		case 471:
		case 472:
		case 478:
		case 479:
		case 505:
		case 506:
		case 508:
		case 509:
		case 511:
		case 512:
		case 514:
		case 515:
		case 529:
		case 530:
		case 532:
		case 533:
		case 535:
		case 536:
		case 538:
		case 539:
		case 541:
		case 542:
		case 548:
		case 549:
		case 432:
		case 433:
		case 434:
		case 451:
		case 452:
		case 453:
		case 454:
		case 455:
		case 456:
		case 459:
		case 460:
		case 461:
		case 462:
		case 463:
		case 464:
		case 560:
		case 546:
		case 587:
		case 588:
		case 589:
		case 590:
		case 591:
		case 592:
		case 501:
		case 502:
		case 500:
		case 616:
		case 615:
		case 612:
		case 629:
		case 630:
		case 631:
		case 714:
		case 633:
		case 634:
		case 635:
		case 636:
		case 637:
		case 638:
		case 639:
		case 640:
		case 643:
		case 644:
		case 641:
		case 642:
		case 646:
		case 645:
		case 647:
		case 648:
		case 649:
		case 650:
		case 666:
		case 667:
		case 668:
		case 669:
		case 670:
		case 671:
		case 673:
		case 674:
		case 675:
		case 676:
		case 677:
		case 689:
		case 690:
		case 691:
		case 692:
		case 693:
		case 694:
		case 695:
		case 696:
		case 697:
		case 698:
		case 699:
		case 700:
		case 701:
		case 702:
		case 703:
		case 704:
		case 705:
		case 706:
		case 707:
		case 708:
		case 709:
		case 710:
		case 711:
		case 712:
		case 713:
		case 632:
		case 738:
		case 739:
		case 740:
		case 741:
		case 742:
		case 743:
		case 744:
		case 745:
		case 746:
			while (Var0[0 /*6*/].f_3.f_2 > 180f)
			{
				Var0[0 /*6*/].f_3.f_2 = (Var0[0 /*6*/].f_3.f_2 - 360f);
			}
			while (Var0[0 /*6*/].f_3.f_2 < -180f)
			{
				Var0[0 /*6*/].f_3.f_2 = (Var0[0 /*6*/].f_3.f_2 + 360f);
			}
			while (Var0[1 /*6*/].f_3.f_2 > 180f)
			{
				Var0[1 /*6*/].f_3.f_2 = (Var0[1 /*6*/].f_3.f_2 - 360f);
			}
			while (Var0[1 /*6*/].f_3.f_2 < -180f)
			{
				Var0[1 /*6*/].f_3.f_2 = (Var0[1 /*6*/].f_3.f_2 + 360f);
			}
			uParam2->f_3.f_2 = (uParam2->f_3.f_2 + (Var0[1 /*6*/].f_3.f_2 - Var0[0 /*6*/].f_3.f_2));
			while (uParam2->f_3.f_2 > 180f)
			{
				uParam2->f_3.f_2 = (uParam2->f_3.f_2 - 360f);
			}
			while (uParam2->f_3.f_2 < -180f)
			{
				uParam2->f_3.f_2 = (uParam2->f_3.f_2 + 360f);
			}
			break;
	}
	switch (iParam1)
	{
		case 715:
		case 716:
		case 717:
		case 718:
		case 719:
		case 720:
		case 721:
		case 722:
		case 723:
		case 724:
		case 725:
		case 726:
		case 727:
		case 728:
		case 729:
		case 730:
		case 731:
		case 732:
		case 733:
		case 734:
		case 735:
		case 736:
		case 737:
		case 747:
		case 748:
		case 749:
		case 750:
		case 751:
		case 752:
		case 753:
		case 754:
		case 755:
		case 756:
		case 757:
		case 758:
		case 759:
		case 760:
		case 761:
		case 762:
		case 763:
		case 764:
		case 765:
		case 766:
		case 767:
		case 768:
		case 769:
		case 770:
		case 771:
		case 772:
		case 773:
		case 774:
		case 775:
		case 776:
		case 777:
		case 778:
		case 779:
		case 780:
		case 781:
		case 782:
		case 783:
		case 784:
		case 785:
		case 786:
		case 787:
		case 788:
		case 789:
		case 790:
		case 791:
		case 792:
		case 793:
		case 794:
		case 795:
		case 796:
		case 797:
		case 798:
		case 799:
		case 800:
		case 802:
		case 801:
		case 803:
		case 804:
		case 805:
		case 806:
		case 807:
		case 808:
		case 809:
		case 678:
		case 679:
		case 680:
		case 681:
		case 682:
		case 683:
		case 684:
		case 685:
		case 810:
		case 811:
		case 812:
		case 813:
		case 814:
		case 815:
		case 817:
		case 816:
		case 819:
		case 818:
		case 820:
		case 821:
		case 822:
		case 823:
		case 824:
		case 825:
		case 826:
		case 827:
		case 828:
		case 829:
		case 830:
		case 831:
		case 832:
		case 833:
		case 834:
		case 835:
		case 836:
		case 837:
		case 838:
		case 839:
		case 840:
		case 841:
		case 842:
		case 843:
		case 844:
		case 845:
		case 846:
		case 847:
		case 848:
		case 849:
		case 850:
		case 851:
		case 852:
		case 853:
		case 854:
		case 855:
		case 856:
		case 686:
		case 687:
		case 688:
			while (Var0[0 /*6*/].f_3.f_2 > 180f)
			{
				Var0[0 /*6*/].f_3.f_2 = (Var0[0 /*6*/].f_3.f_2 - 360f);
			}
			while (Var0[0 /*6*/].f_3.f_2 < -180f)
			{
				Var0[0 /*6*/].f_3.f_2 = (Var0[0 /*6*/].f_3.f_2 + 360f);
			}
			while (Var0[1 /*6*/].f_3.f_2 > 180f)
			{
				Var0[1 /*6*/].f_3.f_2 = (Var0[1 /*6*/].f_3.f_2 - 360f);
			}
			while (Var0[1 /*6*/].f_3.f_2 < -180f)
			{
				Var0[1 /*6*/].f_3.f_2 = (Var0[1 /*6*/].f_3.f_2 + 360f);
			}
			uParam2->f_3.f_2 = (uParam2->f_3.f_2 + (Var0[1 /*6*/].f_3.f_2 - Var0[0 /*6*/].f_3.f_2));
			while (uParam2->f_3.f_2 > 180f)
			{
				uParam2->f_3.f_2 = (uParam2->f_3.f_2 - 360f);
			}
			while (uParam2->f_3.f_2 < -180f)
			{
				uParam2->f_3.f_2 = (uParam2->f_3.f_2 + 360f);
			}
			break;
	}
	switch (iParam1)
	{
		case 857:
		case 858:
		case 859:
		case 860:
		case 861:
		case 862:
		case 863:
		case 864:
		case 865:
		case 866:
		case 867:
		case 868:
		case 869:
		case 870:
		case 871:
		case 872:
		case 873:
		case 874:
		case 875:
		case 876:
		case 877:
		case 878:
		case 879:
		case 880:
		case 881:
		case 882:
		case 883:
		case 884:
		case 888:
		case 889:
		case 890:
		case 891:
		case 651:
		case 652:
		case 653:
		case 654:
		case 655:
		case 656:
		case 657:
		case 658:
		case 659:
		case 660:
		case 661:
		case 662:
		case 663:
		case 664:
		case 665:
		case 887:
		case 894:
		case 895:
		case 896:
		case 897:
		case 898:
		case 899:
		case 900:
		case 901:
		case 902:
		case 903:
		case 904:
		case 905:
		case 906:
		case 907:
		case 908:
		case 911:
		case 913:
		case 914:
		case 915:
		case 916:
		case 917:
		case 918:
		case 919:
		case 920:
		case 921:
		case 922:
		case 923:
		case 924:
		case 925:
		case 926:
		case 927:
		case 928:
		case 929:
		case 930:
		case 931:
		case 932:
		case 954:
		case 955:
		case 956:
		case 957:
		case 958:
		case 959:
		case 968:
		case 969:
		case 970:
		case 971:
		case 972:
		case 973:
		case 974:
		case 975:
		case 976:
		case 977:
		case 978:
		case 979:
		case 980:
		case 981:
		case 982:
		case 983:
		case 984:
		case 985:
		case 986:
		case 987:
		case 988:
		case 989:
		case 990:
		case 1008:
		case 1009:
		case 1010:
		case 991:
		case 992:
		case 993:
		case 994:
		case 995:
		case 996:
		case 997:
		case 998:
		case 999:
		case 960:
		case 961:
		case 962:
		case 963:
		case 964:
		case 965:
		case 966:
		case 967:
		case 1000:
		case 1001:
		case 1002:
		case 1003:
		case 1004:
		case 1005:
		case 1006:
		case 1007:
		case 1011:
		case 1012:
		case 1013:
			while (Var0[0 /*6*/].f_3.f_2 > 180f)
			{
				Var0[0 /*6*/].f_3.f_2 = (Var0[0 /*6*/].f_3.f_2 - 360f);
			}
			while (Var0[0 /*6*/].f_3.f_2 < -180f)
			{
				Var0[0 /*6*/].f_3.f_2 = (Var0[0 /*6*/].f_3.f_2 + 360f);
			}
			while (Var0[1 /*6*/].f_3.f_2 > 180f)
			{
				Var0[1 /*6*/].f_3.f_2 = (Var0[1 /*6*/].f_3.f_2 - 360f);
			}
			while (Var0[1 /*6*/].f_3.f_2 < -180f)
			{
				Var0[1 /*6*/].f_3.f_2 = (Var0[1 /*6*/].f_3.f_2 + 360f);
			}
			uParam2->f_3.f_2 = (uParam2->f_3.f_2 + (Var0[1 /*6*/].f_3.f_2 - Var0[0 /*6*/].f_3.f_2));
			while (uParam2->f_3.f_2 > 180f)
			{
				uParam2->f_3.f_2 = (uParam2->f_3.f_2 - 360f);
			}
			while (uParam2->f_3.f_2 < -180f)
			{
				uParam2->f_3.f_2 = (uParam2->f_3.f_2 + 360f);
			}
			break;
	}
}

Vector3 func_1156(vector3 vParam0, float fParam3)//Position - 0x93923
{
	vector3 vVar0;
	float fVar3;
	float fVar4;
	
	fVar3 = system::sin(fParam3);
	fVar4 = system::cos(fParam3);
	vVar0.x = ((vParam0.x * fVar4) - (vParam0.y * fVar3));
	vVar0.y = ((vParam0.x * fVar3) + (vParam0.y * fVar4));
	vVar0.z = vParam0.y;
	return vVar0;
}

struct<6> func_1157(int iParam0, int iParam1)//Position - 0x93967
{
	struct<6> Var0;
	int iVar6;
	int iVar23;
	
	iVar23 = 0;
	if (func_1158(iParam1, &iVar6))
	{
		iVar23 = 1;
	}
	if (iVar23 && gameplay::_0xB335F761606DB47C(&Var0, &(Var0.f_3), iParam0, iVar6))
	{
		return Var0;
	}
	return Var0;
}

bool func_1158(int iParam0, var uParam1)//Position - 0x939A9
{
	switch (iParam0)
	{
		case -1:
		case 1:
			*uParam1 = 0;
			StringCopy(&(uParam1->f_1), "BaseElementLocationsMap", 64);
			return true;
			break;
		
		case 61:
			*uParam1 = 1;
			StringCopy(&(uParam1->f_1), "BaseElementLocationsMap_HighApt", 64);
			return true;
			break;
		
		case 73:
			*uParam1 = 2;
			StringCopy(&(uParam1->f_1), "ExtraBaseElementLocMap1", 64);
			return true;
			break;
		
		case 77:
			*uParam1 = 3;
			StringCopy(&(uParam1->f_1), "ExtraBaseElementLocMap2", 64);
			return true;
			break;
		
		case 83:
			*uParam1 = 4;
			StringCopy(&(uParam1->f_1), "ExtraBaseElementLocMap3", 64);
			return true;
			break;
		
		case 86:
			*uParam1 = 5;
			StringCopy(&(uParam1->f_1), "ExtraBaseElementLocMap4", 64);
			return true;
			break;
		
		case 88:
			*uParam1 = 6;
			StringCopy(&(uParam1->f_1), "ExtraBaseElementLocMap5", 64);
			return true;
			break;
		
		case 91:
			*uParam1 = 7;
			StringCopy(&(uParam1->f_1), "ExtraBaseElementLocMap6", 64);
			return true;
			break;
		
		case 97:
			*uParam1 = 8;
			StringCopy(&(uParam1->f_1), "ExtraBaseElementLocMap7", 64);
			return true;
			break;
		
		case 109:
			*uParam1 = 9;
			StringCopy(&(uParam1->f_1), "ExtraBaseElementLocMap8", 64);
			return true;
			break;
	}
	return false;
}

struct<6> func_1159(int iParam0, int iParam1)//Position - 0x93AD9
{
	struct<6> Var0;
	
	switch (iParam0)
	{
		case -1:
			Var0 = { -794.9184f, 339.6266f, 200.4135f };
			Var0.f_3 = { 0f, 0f, 180f };
			break;
		
		case 1:
			Var0 = { -794.9184f, 339.6266f, 200.4135f };
			Var0.f_3 = { 0f, 0f, 180f };
			break;
		
		case 2:
			Var0 = { -761.0982f, 317.6259f, 169.5963f };
			Var0.f_3 = { 0f, 0f, 0f };
			break;
		
		case 3:
			Var0 = { -761.1888f, 317.6295f, 216.0503f };
			Var0.f_3 = { 0f, 0f, 0f };
			break;
		
		case 4:
			Var0 = { -795.3856f, 340.0188f, 152.7941f };
			Var0.f_3 = { 0f, 0f, 180f };
			break;
		
		case 61:
			Var0 = { -778.5056f, 332.3779f, 212.1968f };
			Var0.f_3 = { 0f, 0f, 90f };
			break;
		
		case 5:
			Var0 = { -258.1807f, -950.6853f, 70.0239f };
			Var0.f_3 = { 0f, 0f, 70f };
			break;
		
		case 6:
			Var0 = { -285.0051f, -957.6552f, 85.3035f };
			Var0.f_3 = { 0f, 0f, -110f };
			break;
		
		case 7:
			Var0 = { -1471.882f, -530.7484f, 62.34918f };
			Var0.f_3 = { 0f, 0f, -145f };
			break;
		
		case 34:
			Var0 = { -1471.882f, -530.7484f, 49.72156f };
			Var0.f_3 = { 0f, 0f, -145f };
			break;
		
		case 62:
			Var0 = { -1463.15f, -540.2369f, 74.2439f };
			Var0.f_3 = { 0f, 0f, -145f };
			break;
		
		case 35:
			Var0 = { -885.3702f, -451.4775f, 119.327f };
			Var0.f_3 = { 0f, 0f, 27.55617f };
			break;
		
		case 36:
			Var0 = { -913.0385f, -438.4284f, 114.3997f };
			Var0.f_3 = { 0f, 0f, -153.3093f };
			break;
		
		case 37:
			Var0 = { -892.5499f, -430.4789f, 88.25368f };
			Var0.f_3 = { 0f, 0f, 116.9193f };
			break;
		
		case 38:
			Var0 = { -35.0462f, -576.317f, 82.90739f };
			Var0.f_3 = { 0f, 0f, 160f };
			break;
		
		case 39:
			Var0 = { -10.3788f, -590.7431f, 93.02542f };
			Var0.f_3 = { 0f, 0f, 70f };
			break;
		
		case 65:
			Var0 = { -22.2487f, -589.1461f, 80.2305f };
			Var0.f_3 = { 0f, 0f, 69.88f };
			break;
		
		case 40:
			Var0 = { -900.6311f, -376.7462f, 78.27306f };
			Var0.f_3 = { 0f, 0f, 26.92611f };
			break;
		
		case 41:
			Var0 = { -929.483f, -374.5104f, 102.2329f };
			Var0.f_3 = { 0f, 0f, -152.5531f };
			break;
		
		case 63:
			Var0 = { -914.4202f, -375.8189f, 114.4743f };
			Var0.f_3 = { 0f, 0f, -63f };
			break;
		
		case 42:
			Var0 = { -617.1647f, 64.6042f, 100.8196f };
			Var0.f_3 = { 0f, 0f, 180f };
			break;
		
		case 43:
			Var0 = { -584.2015f, 42.7133f, 86.4187f };
			Var0.f_3 = { 0f, 0f, 0f };
			break;
		
		case 64:
			Var0 = { -609.5665f, 50.2203f, 98.3998f };
			Var0.f_3 = { 0f, 0f, -90f };
			break;
		
		case 73:
			Var0 = { -171.3969f, 494.2671f, 134.4935f };
			Var0.f_3 = { 0f, 0f, 11f };
			break;
		
		case 74:
			Var0 = { 339.4982f, 434.0887f, 146.2206f };
			Var0.f_3 = { 0f, 0f, -63.5f };
			break;
		
		case 75:
			Var0 = { -761.3884f, 615.7333f, 140.9805f };
			Var0.f_3 = { 0f, 0f, -71.5f };
			break;
		
		case 76:
			Var0 = { -678.1752f, 591.0076f, 142.2196f };
			Var0.f_3 = { 0f, 0f, 40.5f };
			break;
		
		case 77:
			Var0 = { 120.0541f, 553.793f, 181.0943f };
			Var0.f_3 = { 0f, 0f, 6f };
			break;
		
		case 78:
			Var0 = { -571.4039f, 655.2008f, 142.6293f };
			Var0.f_3 = { 0f, 0f, -14.5f };
			break;
		
		case 79:
			Var0 = { -742.2565f, 587.6547f, 143.0577f };
			Var0.f_3 = { 0f, 0f, -29f };
			break;
		
		case 80:
			Var0 = { -857.2222f, 685.051f, 149.6502f };
			Var0.f_3 = { 0f, 0f, 4.5f };
			break;
		
		case 81:
			Var0 = { -1287.65f, 443.2707f, 94.6919f };
			Var0.f_3 = { 0f, 0f, 0f };
			break;
		
		case 82:
			Var0 = { 374.2012f, 416.9688f, 142.6977f };
			Var0.f_3 = { 0f, 0f, -14f };
			break;
		
		case 83:
			Var0 = { -787.7805f, 334.9232f, 186.1134f };
			Var0.f_3 = { 0f, 0f, 90f };
			break;
		
		case 84:
			Var0 = { -787.7805f, 334.9232f, 215.8384f };
			Var0.f_3 = { 0f, 0f, 90f };
			break;
		
		case 85:
			Var0 = { -773.2258f, 322.8252f, 194.8862f };
			Var0.f_3 = { 0f, 0f, -90f };
			break;
		
		case 86:
			Var0 = { -1573.098f, -4085.806f, 9.7851f };
			Var0.f_3 = { 0f, 0f, 162f };
			break;
		
		case 8:
		case 9:
		case 10:
		case 11:
		case 12:
		case 13:
		case 14:
		case 15:
		case 16:
		case 66:
		case 67:
		case 68:
		case 69:
			Var0 = { 342.8157f, -997.4288f, -100f };
			Var0.f_3 = { 0f, 0f, 0f };
			break;
		
		case 17:
		case 18:
		case 19:
		case 20:
		case 21:
		case 22:
		case 23:
		case 70:
		case 71:
		case 72:
			Var0 = { 260.3297f, -997.4288f, -100f };
			Var0.f_3 = { 0f, 0f, 0f };
			break;
		
		case 87:
			Var0 = { -1572.187f, -570.8315f, 109.9879f };
			Var0.f_3 = { 0f, 0f, -54f };
			break;
		
		case 88:
			Var0 = { -1383.954f, -476.7112f, 73.507f };
			Var0.f_3 = { 0f, 0f, 8f };
			break;
		
		case 89:
			Var0 = { -138.0029f, -629.739f, 170.2854f };
			Var0.f_3 = { 0f, 0f, -84f };
			break;
		
		case 90:
			Var0 = { -74.8895f, -817.6883f, 244.8508f };
			Var0.f_3 = { 0f, 0f, 70f };
			break;
		
		case 91:
		case 92:
		case 93:
		case 94:
		case 95:
		case 96:
			Var0 = { 1100.764f, -3159.384f, -34.9342f };
			Var0.f_3 = { 0f, 0f, 0f };
			break;
		
		case 97:
		case 98:
		case 99:
		case 100:
		case 101:
		case 102:
			Var0 = { 1005.806f, -3157.67f, -36.0897f };
			Var0.f_3 = { 0f, 0f, 0f };
			break;
		
		case 103:
			if (!iParam1)
			{
				Var0 = { -1576.571f, -569.7595f, 85.5f };
				Var0.f_3 = { 0f, 0f, 36.1f };
			}
			else
			{
				Var0 = { -1578.022f, -576.4251f, 104.2f };
				Var0.f_3 = { 0f, 0f, -144.04f };
			}
			break;
		
		case 104:
			if (!iParam1)
			{
				Var0 = { -1571.254f, -566.5865f, 85.5f };
				Var0.f_3 = { 0f, 0f, -53.9f };
			}
			else
			{
				Var0 = { -1578.022f, -576.4251f, 104.2f };
				Var0.f_3 = { 0f, 0f, -144.04f };
			}
			break;
		
		case 105:
			if (!iParam1)
			{
				Var0 = { -1568.098f, -571.9171f, 85.5f };
				Var0.f_3 = { 0f, 0f, -143.9f };
			}
			else
			{
				Var0 = { -1578.022f, -576.4251f, 104.2f };
				Var0.f_3 = { 0f, 0f, -144.04f };
			}
			break;
		
		case 106:
			if (!iParam1)
			{
				Var0 = { -1384.518f, -475.8657f, 56.1f };
				Var0.f_3 = { 0f, 0f, 98.7f };
			}
			else
			{
				Var0 = { -1391.245f, -473.9638f, 77.2f };
				Var0.f_3 = { 0f, 0f, 98.86f };
			}
			break;
		
		case 107:
			if (!iParam1)
			{
				Var0 = { -1384.538f, -475.8829f, 48.1f };
				Var0.f_3 = { 0f, 0f, 98.7f };
			}
			else
			{
				Var0 = { -1391.245f, -473.9638f, 77.2f };
				Var0.f_3 = { 0f, 0f, 98.86f };
			}
			break;
		
		case 108:
			if (!iParam1)
			{
				Var0 = { -1378.994f, -477.2481f, 56.1f };
				Var0.f_3 = { 0f, 0f, -81.1f };
			}
			else
			{
				Var0 = { -1391.245f, -473.9638f, 77.2f };
				Var0.f_3 = { 0f, 0f, 98.86f };
			}
			break;
		
		case 109:
			if (!iParam1)
			{
				Var0 = { -186.5683f, -576.4624f, 135f };
				Var0.f_3 = { 0f, 0f, 96.16f };
			}
			else
			{
				Var0 = { -146.6167f, -596.6301f, 166f };
				Var0.f_3 = { 0f, 0f, -140f };
			}
			break;
		
		case 110:
			if (!iParam1)
			{
				Var0 = { -113.886f, -564.3862f, 135f };
				Var0.f_3 = { 0f, 0f, 110.96f };
			}
			else
			{
				Var0 = { -146.6167f, -596.6301f, 166f };
				Var0.f_3 = { 0f, 0f, -140f };
			}
			break;
		
		case 111:
			if (!iParam1)
			{
				Var0 = { -134.6568f, -635.1774f, 135f };
				Var0.f_3 = { 0f, 0f, -9.04f };
			}
			else
			{
				Var0 = { -146.6167f, -596.6301f, 166f };
				Var0.f_3 = { 0f, 0f, -140f };
			}
			break;
		
		case 112:
			if (!iParam1)
			{
				Var0 = { -79.0479f, -822.6393f, 221f };
				Var0.f_3 = { 0f, 0f, 70f };
			}
			else
			{
				Var0 = { -73.904f, -821.6204f, 284f };
				Var0.f_3 = { 0f, 0f, -110f };
			}
			break;
		
		case 113:
			if (!iParam1)
			{
				Var0 = { -70.3086f, -819.5784f, 221f };
				Var0.f_3 = { 0f, 0f, 160f };
			}
			else
			{
				Var0 = { -73.904f, -821.6204f, 284f };
				Var0.f_3 = { 0f, 0f, -110f };
			}
			break;
		
		case 114:
			if (!iParam1)
			{
				Var0 = { -79.9861f, -818.425f, 221f };
				Var0.f_3 = { 0f, 0f, -20f };
			}
			else
			{
				Var0 = { -73.904f, -821.6204f, 284f };
				Var0.f_3 = { 0f, 0f, -110f };
			}
			break;
	}
	return Var0;
}

int func_1160(int iParam0)//Position - 0x94690
{
	switch (iParam0)
	{
		case 1:
		case 2:
		case 3:
		case 4:
		case 5:
		case 6:
		case 7:
			return 1;
			break;
		
		case 8:
		case 9:
		case 10:
		case 11:
		case 12:
		case 13:
		case 14:
		case 15:
		case 16:
		case 69:
		case 68:
		case 66:
		case 67:
			return 8;
			break;
		
		case 17:
		case 18:
		case 19:
		case 20:
		case 21:
		case 22:
		case 23:
		case 70:
		case 71:
		case 72:
			return 17;
			break;
		
		case 61:
		case 62:
		case 63:
		case 64:
		case 65:
			return 61;
			break;
		
		case 73:
		case 74:
		case 75:
		case 76:
			return 73;
			break;
		
		case 77:
		case 78:
		case 79:
		case 80:
		case 81:
		case 82:
			return 77;
			break;
		
		case 83:
		case 84:
		case 85:
			return 83;
			break;
		
		case 86:
			return 86;
			break;
		
		case 87:
		case 88:
		case 89:
		case 90:
			return 88;
			break;
		
		case 91:
		case 92:
		case 93:
		case 94:
		case 95:
		case 96:
			return 91;
			break;
		
		case 97:
		case 98:
		case 99:
		case 100:
		case 101:
		case 102:
			return 97;
			break;
		
		case 103:
		case 106:
		case 109:
		case 112:
		case 104:
		case 107:
		case 110:
		case 113:
		case 105:
		case 108:
		case 111:
		case 114:
			return 109;
			break;
	}
	return -1;
}

void func_1161(int iParam0)//Position - 0x948CD
{
	Global_2097152[func_371() /*10730*/].f_7546.f_1029 = iParam0;
}

void func_1162(int iParam0, var uParam1, var uParam2)//Position - 0x948E8
{
	struct<4> Var0[3];
	int iVar13;
	
	func_1163(iParam0, &Var0, 1);
	iVar13 = gameplay::get_random_int_in_range(0, 3);
	*uParam1 = { Var0[iVar13 /*4*/] };
	*uParam2 = Var0[iVar13 /*4*/].f_3;
}

void func_1163(int iParam0, var uParam1, int iParam2)//Position - 0x9491D
{
	int iVar0;
	
	if (func_770(iParam0))
	{
		if (!iParam2)
		{
			iVar0 = 0;
			while (iVar0 < 30)
			{
				*(uParam1[iVar0 /*4*/]) = { func_1165(iParam0, Global_4007946[iVar0 /*4*/]) };
				(uParam1[iVar0 /*4*/])->f_3 = func_1164(iParam0, Global_4007946[iVar0 /*4*/].f_3);
				iVar0++;
			}
		}
		else
		{
			iVar0 = 0;
			while (iVar0 < 3)
			{
				*(uParam1[iVar0 /*4*/]) = { func_1165(iParam0, Global_4008067[iVar0 /*4*/]) };
				(uParam1[iVar0 /*4*/])->f_3 = func_1164(iParam0, Global_4008067[iVar0 /*4*/].f_3);
				iVar0++;
			}
		}
	}
}

float func_1164(int iParam0, float fParam1)//Position - 0x949BF
{
	float fVar0;
	
	fVar0 = func_795(iParam0);
	fParam1 = (fParam1 + fVar0);
	while (fParam1 < 0f)
	{
		fParam1 = (fParam1 + 360f);
	}
	while (fParam1 >= 360f)
	{
		fParam1 = (fParam1 - 360f);
	}
	return fParam1;
}

Vector3 func_1165(int iParam0, vector3 vParam1)//Position - 0x94A04
{
	return object::_get_object_offset_from_coords(func_788(iParam0), func_795(iParam0), vParam1);
}

var func_1166()//Position - 0x94A20
{
	return Global_2408497;
}

void func_1167(int iParam0, int iParam1, var uParam2, var uParam3, int iParam4)//Position - 0x94A2C
{
	if (!iParam4)
	{
		*uParam2 = { func_1165(iParam1, Global_4007839[iParam0 /*10*/]) };
		*uParam3 = func_1164(iParam1, Global_4007839[iParam0 /*10*/].f_3);
	}
	else if (func_1168(iParam0, 1))
	{
		*uParam2 = { Global_4006218[iParam1 /*45*/].f_32[2 /*4*/] };
		*uParam3 = Global_4006218[iParam1 /*45*/].f_32[2 /*4*/].f_3;
	}
	else
	{
		*uParam2 = { Global_4006218[iParam1 /*45*/].f_32[1 /*4*/] };
		*uParam3 = Global_4006218[iParam1 /*45*/].f_32[1 /*4*/].f_3;
	}
}

bool func_1168(var uParam0, int iParam1)//Position - 0x94ABB
{
	if ((Global_4007839[uParam0 /*10*/].f_6 && iParam1) != 0)
	{
		return true;
	}
	return false;
}

var func_1169()//Position - 0x94AD9
{
	return func_1178(player::player_id());
}

Vector3 func_1170(int iParam0)//Position - 0x94AE9
{
	vector3 vVar0;
	
	if (ui::does_blip_exist(Global_2414704[iParam0]))
	{
		vVar0 = { ui::get_blip_coords(Global_2414704[iParam0]) };
	}
	else if (ui::does_blip_exist(Global_2414704.f_33[iParam0]) && !iParam0 == Global_2433082)
	{
		vVar0 = { ui::get_blip_coords(Global_2414704.f_33[iParam0]) };
	}
	if (system::vmag(vVar0) > 0f)
	{
		return vVar0;
	}
	return func_1171(iParam0);
}

Vector3 func_1171(int iParam0)//Position - 0x94B5D
{
	int iVar0;
	
	if (Global_1589933[iParam0 /*601*/].f_257.f_15 > 0)
	{
		return func_1175(func_1176(Global_1589933[player::player_id() /*601*/].f_257.f_15));
	}
	else
	{
		func_1173(func_640(iParam0), &iVar0);
		if (iVar0 > 0)
		{
			return func_1175(func_1176(iVar0));
		}
	}
	if (func_1172(iParam0))
	{
		return Global_1760739.f_20[Global_2421621[iParam0 /*358*/].f_312.f_1 /*3*/];
	}
	return func_640(iParam0);
}

int func_1172(int iParam0)//Position - 0x94BDE
{
	if (iParam0 != func_45())
	{
		if (func_1644(iParam0, 1, 1))
		{
			return Global_2421621[iParam0 /*358*/].f_312.f_1 != -1;
		}
	}
	return false;
}

void func_1173(vector3 vParam0, var uParam3)//Position - 0x94C0E
{
	int iVar0;
	int iVar1;
	
	iVar0 = 1;
	iVar1 = 7;
	while (iVar0 <= iVar1)
	{
		if (func_1174(vParam0, iVar0))
		{
			*uParam3 = iVar0;
			return;
		}
		iVar0++;
	}
	iVar0 = 34;
	iVar1 = 43;
	while (iVar0 <= iVar1)
	{
		if (func_1174(vParam0, iVar0))
		{
			*uParam3 = iVar0;
			return;
		}
		iVar0++;
	}
	iVar0 = 61;
	iVar1 = 65;
	while (iVar0 <= iVar1)
	{
		if (func_1174(vParam0, iVar0))
		{
			*uParam3 = iVar0;
			return;
		}
		iVar0++;
	}
	iVar0 = 8;
	if (func_1174(vParam0, iVar0))
	{
		if (Global_1589933[player::player_id() /*601*/].f_257.f_15 > 0)
		{
			*uParam3 = Global_1589933[player::player_id() /*601*/].f_257.f_15;
		}
		else if (Global_2404580.f_1 > 0)
		{
			*uParam3 = Global_2404580.f_1;
		}
		else
		{
			*uParam3 = iVar0;
		}
		return;
	}
	iVar0 = 17;
	if (func_1174(vParam0, iVar0))
	{
		if (Global_1589933[player::player_id() /*601*/].f_257.f_15 > 0)
		{
			*uParam3 = Global_1589933[player::player_id() /*601*/].f_257.f_15;
		}
		else if (Global_2404580.f_1 > 0)
		{
			*uParam3 = Global_2404580.f_1;
		}
		else
		{
			*uParam3 = iVar0;
		}
		return;
	}
}

bool func_1174(vector3 vParam0, int iParam3)//Position - 0x94D4D
{
	int iVar0;
	
	if (iParam3 != 999)
	{
		if ((object::is_point_in_angled_area(vParam0, Global_1049427[iParam3 /*1942*/].f_146.f_57[0 /*8*/], Global_1049427[iParam3 /*1942*/].f_146.f_57[0 /*8*/].f_3, Global_1049427[iParam3 /*1942*/].f_146.f_57[0 /*8*/].f_6, 0, true) || (Global_1049427[iParam3 /*1942*/].f_146.f_57[1 /*8*/].f_6 != 0f && object::is_point_in_angled_area(vParam0, Global_1049427[iParam3 /*1942*/].f_146.f_57[1 /*8*/], Global_1049427[iParam3 /*1942*/].f_146.f_57[1 /*8*/].f_3, Global_1049427[iParam3 /*1942*/].f_146.f_57[1 /*8*/].f_6, 0, true))) || (Global_1049427[iParam3 /*1942*/].f_146.f_57[2 /*8*/].f_6 != 0f && object::is_point_in_angled_area(vParam0, Global_1049427[iParam3 /*1942*/].f_146.f_57[2 /*8*/], Global_1049427[iParam3 /*1942*/].f_146.f_57[2 /*8*/].f_3, Global_1049427[iParam3 /*1942*/].f_146.f_57[2 /*8*/].f_6, 0, true)))
		{
			return true;
		}
	}
	else
	{
		iVar0 = 1;
		while (iVar0 <= 7)
		{
			if (func_1174(vParam0, iVar0))
			{
				return true;
			}
			iVar0++;
		}
		iVar0 = 34;
		while (iVar0 <= 43)
		{
			if (func_1174(vParam0, iVar0))
			{
				return true;
			}
			iVar0++;
		}
		iVar0 = 61;
		while (iVar0 <= 65)
		{
			if (func_1174(vParam0, iVar0))
			{
				return true;
			}
			iVar0++;
		}
		iVar0 = 73;
		while (iVar0 <= 76)
		{
			if (func_1174(vParam0, iVar0))
			{
				return true;
			}
			iVar0++;
		}
		iVar0 = 77;
		while (iVar0 <= 82)
		{
			if (func_1174(vParam0, iVar0))
			{
				return true;
			}
			iVar0++;
		}
		iVar0 = 83;
		while (iVar0 <= 85)
		{
			if (func_1174(vParam0, iVar0))
			{
				return true;
			}
			iVar0++;
		}
		iVar0 = 87;
		while (iVar0 <= 90)
		{
			if (func_1174(vParam0, iVar0))
			{
				return true;
			}
			iVar0++;
		}
		if (func_1174(vParam0, 8))
		{
			return true;
		}
		if (func_1174(vParam0, 17))
		{
			return true;
		}
	}
	return false;
}

Vector3 func_1175(int iParam0)//Position - 0x94F8F
{
	vector3 vVar0;
	
	switch (iParam0)
	{
		case 1:
			vVar0 = { -773.4775f, 310.6321f, 84.6981f };
			break;
		
		case 2:
			vVar0 = { -252.5713f, -949.9199f, 30.221f };
			break;
		
		case 3:
			vVar0 = { -1443.094f, -544.7684f, 33.7424f };
			break;
		
		case 4:
			vVar0 = { -913.85f, -455.1392f, 38.5999f };
			break;
		
		case 5:
			vVar0 = { -47.3145f, -585.9766f, 36.9593f };
			break;
		
		case 6:
			vVar0 = { -932.7474f, -383.9246f, 37.9613f };
			break;
		
		case 7:
			vVar0 = { -619.1315f, 37.8841f, 42.5883f };
			break;
		
		case 8:
			vVar0 = { 284.9614f, -159.9891f, 63.6221f };
			break;
		
		case 9:
			vVar0 = { 2.8889f, 35.7762f, 70.5349f };
			break;
		
		case 10:
			vVar0 = { 9.74f, 84.6906f, 77.3975f };
			break;
		
		case 11:
			vVar0 = { -512.1465f, 111.2223f, 62.351f };
			break;
		
		case 12:
			vVar0 = { -197.3405f, 88.1053f, 68.7422f };
			break;
		
		case 13:
			vVar0 = { -628.3212f, 165.8364f, 60.1651f };
			break;
		
		case 14:
			vVar0 = { -973.3757f, -1429.425f, 6.6791f };
			break;
		
		case 15:
			vVar0 = { -829.1362f, -855.0104f, 18.6297f };
			break;
		
		case 16:
			vVar0 = { -757.5739f, -755.5591f, 25.5697f };
			break;
		
		case 17:
			vVar0 = { -45.1289f, -57.0925f, 62.2531f };
			break;
		
		case 18:
			vVar0 = { -206.7293f, 184.142f, 79.3279f };
			break;
		
		case 19:
			vVar0 = { -811.7045f, -984.1961f, 13.1538f };
			break;
		
		case 20:
			vVar0 = { -664.0032f, -853.6744f, 23.4325f };
			break;
		
		case 21:
			vVar0 = { -1534.025f, -324.5247f, 46.5237f };
			break;
		
		case 22:
			vVar0 = { -1561.381f, -412.1974f, 41.389f };
			break;
		
		case 23:
			vVar0 = { -1608.851f, -429.184f, 39.439f };
			break;
		
		case 24:
			vVar0 = { 964.3583f, -1034.199f, 39.8303f };
			break;
		
		case 25:
			vVar0 = { 894.2868f, -885.5679f, 26.1212f };
			break;
		
		case 26:
			vVar0 = { 821.1741f, -924.1658f, 25.1998f };
			break;
		
		case 27:
			vVar0 = { 759.7933f, -759.8209f, 25.759f };
			break;
		
		case 28:
			vVar0 = { 844.7289f, -1164.1f, 24.2681f };
			break;
		
		case 29:
			vVar0 = { 526.2521f, -1604.613f, 28.2625f };
			break;
		
		case 30:
			vVar0 = { 572.0462f, -1570.736f, 27.4904f };
			break;
		
		case 31:
			vVar0 = { 722.2852f, -1190.617f, 23.282f };
			break;
		
		case 32:
			vVar0 = { 497.6212f, -1494.084f, 28.2893f };
			break;
		
		case 33:
			vVar0 = { 480.3127f, -1549.937f, 28.2828f };
			break;
		
		case 34:
			vVar0 = { -68.702f, 6426.148f, 30.439f };
			break;
		
		case 35:
			vVar0 = { -247.4374f, 6240.294f, 30.4892f };
			break;
		
		case 36:
			vVar0 = { 2554.165f, 4668.059f, 33.0233f };
			break;
		
		case 37:
			vVar0 = { 2461.22f, 1589.255f, 32.0443f };
			break;
		
		case 38:
			vVar0 = { -2203.335f, 4244.427f, 47.3305f };
			break;
		
		case 39:
			vVar0 = { 218.0665f, 2601.817f, 44.7668f };
			break;
		
		case 40:
			vVar0 = { 186.1719f, 2786.343f, 45.0144f };
			break;
		
		case 41:
			vVar0 = { 642.0746f, 2791.729f, 40.9795f };
			break;
		
		case 42:
			vVar0 = { -1130.938f, 2701.133f, 17.8004f };
			break;
		
		case 43:
			vVar0 = { -10.944f, -1646.76f, 28.3125f };
			break;
		
		case 44:
			vVar0 = { 1024.263f, -2398.404f, 29.1261f };
			break;
		
		case 45:
			vVar0 = { 870.8577f, -2232.323f, 29.5508f };
			break;
		
		case 46:
			vVar0 = { -663.8541f, -2380.389f, 12.9446f };
			break;
		
		case 47:
			vVar0 = { -1088.616f, -2235.098f, 12.2182f };
			break;
		
		case 48:
			vVar0 = { -342.5126f, -1468.675f, 29.6107f };
			break;
		
		case 49:
			vVar0 = { -1241.54f, -259.8841f, 37.9445f };
			break;
		
		case 50:
			vVar0 = { 899.8448f, -147.528f, 75.5674f };
			break;
		
		case 51:
			vVar0 = { -1405.411f, 526.8572f, 122.8361f };
			break;
		
		case 52:
			vVar0 = { 1341.552f, -1578.037f, 53.4443f };
			break;
		
		case 53:
			vVar0 = { -105.7029f, 6528.539f, 29.1719f };
			break;
		
		case 54:
			vVar0 = { -302.3985f, 6327.434f, 31.8918f };
			break;
		
		case 55:
			vVar0 = { -15.258f, 6557.378f, 32.2454f };
			break;
		
		case 56:
			vVar0 = { 1899.673f, 3773.178f, 31.8829f };
			break;
		
		case 57:
			vVar0 = { 1662.121f, 4776.317f, 41.0075f };
			break;
		
		case 58:
			vVar0 = { -178.2278f, 490.886f, 134.0466f };
			break;
		
		case 59:
			vVar0 = { 339.5743f, 439.7083f, 145.5896f };
			break;
		
		case 60:
			vVar0 = { -764.6163f, 618.3144f, 137.5536f };
			break;
		
		case 61:
			vVar0 = { -679.5461f, 592.5162f, 139.693f };
			break;
		
		case 62:
			vVar0 = { 124.4571f, 551.8877f, 181.658f };
			break;
		
		case 63:
			vVar0 = { -563.7349f, 689.099f, 151.6596f };
			break;
		
		case 64:
			vVar0 = { -743.0927f, 590.0371f, 140.9221f };
			break;
		
		case 65:
			vVar0 = { -861.252f, 684.8923f, 146.2643f };
			break;
		
		case 66:
			vVar0 = { -1292.456f, 440.9454f, 93.7572f };
			break;
		
		case 67:
			vVar0 = { 369.5891f, 417.4813f, 136.8344f };
			break;
		
		case 68:
			vVar0 = { -1581.501f, -558.2578f, 33.9528f };
			break;
		
		case 69:
			vVar0 = { -1379.546f, -499.1783f, 32.1574f };
			break;
		
		case 70:
			vVar0 = { -117.5296f, -605.7157f, 35.2857f };
			break;
		
		case 71:
			vVar0 = { -67.0943f, -802.4415f, 43.2273f };
			break;
		
		case 72:
			vVar0 = { 254.1892f, -1809.183f, 26.1805f };
			break;
		
		case 73:
			vVar0 = { -1472.278f, -920.0677f, 8.9683f };
			break;
		
		case 74:
			vVar0 = { 38.9478f, -1026.629f, 28.6354f };
			break;
		
		case 75:
			vVar0 = { 46.903f, 2789.825f, 57.1124f };
			break;
		
		case 76:
			vVar0 = { -342.3246f, 6065.316f, 30.4895f };
			break;
		
		case 77:
			vVar0 = { 1737.878f, 3709.088f, 33.1348f };
			break;
		
		case 78:
			vVar0 = { 939.7161f, -1459.204f, 30.467f };
			break;
		
		case 79:
			vVar0 = { 189.7624f, 309.7488f, 104.4714f };
			break;
		
		case 80:
			vVar0 = { -21.9593f, -191.3618f, 51.5599f };
			break;
		
		case 81:
			vVar0 = { 2472.22f, 4110.493f, 36.9629f };
			break;
		
		case 82:
			vVar0 = { -39.3286f, 6420.603f, 30.7017f };
			break;
		
		case 83:
			vVar0 = { -1134.762f, -1568.848f, 3.4077f };
			break;
	}
	return vVar0;
}

int func_1176(int iParam0)//Position - 0x958B6
{
	switch (iParam0)
	{
		case 1:
		case 2:
		case 3:
		case 4:
		case 61:
		case 83:
		case 84:
		case 85:
			return 1;
			break;
		
		case 5:
		case 6:
			return 2;
			break;
		
		case 7:
		case 34:
		case 62:
			return 3;
			break;
		
		case 35:
		case 36:
		case 37:
			return 4;
			break;
		
		case 38:
		case 39:
		case 65:
			return 5;
			break;
		
		case 40:
		case 41:
		case 63:
			return 6;
			break;
		
		case 42:
		case 43:
		case 64:
			return 7;
			break;
		
		case 8:
			return 8;
			break;
		
		case 9:
			return 9;
			break;
		
		case 10:
			return 10;
			break;
		
		case 11:
			return 11;
			break;
		
		case 12:
			return 12;
			break;
		
		case 13:
			return 13;
			break;
		
		case 14:
			return 14;
			break;
		
		case 15:
			return 15;
			break;
		
		case 16:
			return 16;
			break;
		
		case 17:
			return 17;
			break;
		
		case 18:
			return 18;
			break;
		
		case 19:
			return 19;
			break;
		
		case 20:
			return 20;
			break;
		
		case 21:
			return 21;
			break;
		
		case 22:
			return 22;
			break;
		
		case 23:
			return 23;
			break;
		
		case 24:
			return 24;
			break;
		
		case 25:
			return 25;
			break;
		
		case 26:
			return 26;
			break;
		
		case 27:
			return 27;
			break;
		
		case 28:
			return 28;
			break;
		
		case 29:
			return 29;
			break;
		
		case 30:
			return 30;
			break;
		
		case 31:
			return 31;
			break;
		
		case 32:
			return 32;
			break;
		
		case 33:
			return 33;
			break;
		
		case 44:
			return 34;
			break;
		
		case 45:
			return 35;
			break;
		
		case 46:
			return 36;
			break;
		
		case 47:
			return 37;
			break;
		
		case 48:
			return 38;
			break;
		
		case 49:
			return 39;
			break;
		
		case 50:
			return 40;
			break;
		
		case 51:
			return 41;
			break;
		
		case 52:
			return 42;
			break;
		
		case 53:
			return 43;
			break;
		
		case 54:
			return 44;
			break;
		
		case 55:
			return 45;
			break;
		
		case 56:
			return 46;
			break;
		
		case 57:
			return 47;
			break;
		
		case 58:
			return 48;
			break;
		
		case 59:
			return 49;
			break;
		
		case 60:
			return 50;
			break;
		
		case 66:
			return 51;
			break;
		
		case 67:
			return 52;
			break;
		
		case 68:
			return 53;
			break;
		
		case 69:
			return 54;
			break;
		
		case 70:
			return 55;
			break;
		
		case 71:
			return 56;
			break;
		
		case 72:
			return 57;
			break;
		
		case 73:
			return 58;
			break;
		
		case 74:
			return 59;
			break;
		
		case 75:
			return 60;
			break;
		
		case 76:
			return 61;
			break;
		
		case 77:
			return 62;
			break;
		
		case 78:
			return 63;
			break;
		
		case 79:
			return 64;
			break;
		
		case 80:
			return 65;
			break;
		
		case 81:
			return 66;
			break;
		
		case 82:
			return 67;
			break;
		
		case 87:
		case 103:
		case 104:
		case 105:
			return 68;
			break;
		
		case 88:
		case 106:
		case 107:
		case 108:
			return 69;
			break;
		
		case 89:
		case 109:
		case 110:
		case 111:
			return 70;
			break;
		
		case 90:
		case 112:
		case 113:
		case 114:
			return 71;
			break;
		
		case 91:
			return 72;
			break;
		
		case 92:
			return 73;
			break;
		
		case 93:
			return 74;
			break;
		
		case 94:
			return 75;
			break;
		
		case 95:
			return 76;
			break;
		
		case 96:
			return 77;
			break;
		
		case 97:
			return 78;
			break;
		
		case 98:
			return 79;
			break;
		
		case 99:
			return 80;
			break;
		
		case 100:
			return 81;
			break;
		
		case 101:
			return 82;
			break;
		
		case 102:
			return 83;
			break;
	}
	return 0;
}

void func_1177(int iParam0, var uParam1, var uParam2)//Position - 0x95DFD
{
	struct<4> Var0[30];
	int iVar121;
	
	func_1163(iParam0, &Var0, 0);
	iVar121 = gameplay::get_random_int_in_range(0, 30);
	*uParam1 = { Var0[iVar121 /*4*/] };
	*uParam2 = Var0[iVar121 /*4*/].f_3;
}

var func_1178(int iParam0)//Position - 0x95E34
{
	return Global_2415705.f_659[iParam0 /*3*/];
}

bool func_1179()//Position - 0x95E47
{
	int iVar0;
	
	if (func_261(player::player_id(), 0))
	{
		iVar0 = func_456();
		if (func_1644(iVar0, 0, 0))
		{
			if (func_1180(iVar0, 0))
			{
				return true;
			}
		}
	}
	return false;
}

int func_1180(int iParam0, float fParam1)//Position - 0x95E7B
{
	int iVar0;
	
	if (func_1181(iParam0))
	{
		iVar0 = func_1178(iParam0);
		if (func_770(iVar0))
		{
			return func_791(iParam0, iVar0, fParam1, 0);
		}
	}
	return false;
}

var func_1181(var uParam0)//Position - 0x95EAC
{
	return Global_2421621[uParam0 /*358*/].f_264;
}

int func_1182()//Position - 0x95EC0
{
	if (Global_2097152[func_371() /*10730*/].f_7546.f_1029 > 0 && func_1183(Global_2097152[func_371() /*10730*/].f_7546.f_1029))
	{
		return Global_2097152[func_371() /*10730*/].f_7546.f_1029;
	}
	else
	{
		return func_1188(0, -1);
	}
	return 0;
}

bool func_1183(int iParam0)//Position - 0x95F19
{
	int iVar0;
	
	if (iParam0 > 0)
	{
		iVar0 = 0;
		while (iVar0 < 12)
		{
			if (func_1188(iVar0, -1) == iParam0)
			{
				return true;
			}
			iVar0++;
		}
		if (iParam0 == func_1188(99, -1))
		{
			return true;
		}
	}
	return false;
}

void func_1184(int iParam0, var uParam1, var uParam2)//Position - 0x95F5B
{
	struct<4> Var0[4];
	int iVar17;
	
	func_1185(iParam0, &Var0, -1);
	iVar17 = gameplay::get_random_int_in_range(0, 4);
	*uParam1 = { Var0[iVar17 /*4*/] };
	*uParam2 = Var0[iVar17 /*4*/].f_3;
}

void func_1185(int iParam0, var uParam1, int iParam2)//Position - 0x95F90
{
	struct<4> Var0;
	
	switch (iParam0)
	{
		case 1:
		case 2:
		case 3:
		case 4:
		case 5:
		case 6:
		case 7:
		case 34:
		case 35:
		case 36:
		case 37:
		case 38:
		case 39:
		case 40:
		case 41:
		case 42:
		case 43:
			func_1155(iParam0, 9, &Var0, -1, 0);
			*(uParam1[0 /*4*/]) = { Var0 };
			(uParam1[0 /*4*/])->f_3 = Var0.f_3.f_2;
			func_1155(iParam0, 10, &Var0, -1, 0);
			*(uParam1[1 /*4*/]) = { Var0 };
			(uParam1[1 /*4*/])->f_3 = Var0.f_3.f_2;
			func_1155(iParam0, 11, &Var0, -1, 0);
			*(uParam1[2 /*4*/]) = { Var0 };
			(uParam1[2 /*4*/])->f_3 = Var0.f_3.f_2;
			func_1155(iParam0, 12, &Var0, -1, 0);
			*(uParam1[3 /*4*/]) = { Var0 };
			(uParam1[3 /*4*/])->f_3 = Var0.f_3.f_2;
			break;
		
		case 8:
		case 9:
		case 10:
		case 11:
		case 12:
		case 13:
		case 14:
		case 15:
		case 16:
		case 66:
		case 67:
		case 68:
		case 69:
			*(uParam1[0 /*4*/]) = { 351.8605f, -995.1919f, -100.203f };
			(uParam1[0 /*4*/])->f_3 = 177.5208f;
			*(uParam1[1 /*4*/]) = { 342.7552f, -1002.421f, -100.2024f };
			(uParam1[1 /*4*/])->f_3 = 270.6484f;
			*(uParam1[2 /*4*/]) = { 339.4581f, -997.6315f, -100.2058f };
			(uParam1[2 /*4*/])->f_3 = 11.316f;
			*(uParam1[3 /*4*/]) = { 341.5853f, -995.2015f, -100.2033f };
			(uParam1[3 /*4*/])->f_3 = 82.7126f;
			break;
		
		case 17:
		case 18:
		case 19:
		case 20:
		case 21:
		case 22:
		case 23:
		case 70:
		case 71:
		case 72:
			*(uParam1[0 /*4*/]) = { 260.7131f, -1002.99f, -100.0086f };
			(uParam1[0 /*4*/])->f_3 = 37.9253f;
			*(uParam1[1 /*4*/]) = { 260.7037f, -998.3527f, -100.001f };
			(uParam1[1 /*4*/])->f_3 = 49.2925f;
			*(uParam1[2 /*4*/]) = { 261.4858f, -995.5132f, -100.0086f };
			(uParam1[2 /*4*/])->f_3 = 93.5996f;
			*(uParam1[3 /*4*/]) = { 255.5316f, -1000.62f, -100.0086f };
			(uParam1[3 /*4*/])->f_3 = 272.3036f;
			break;
		
		case 61:
		case 62:
		case 63:
		case 64:
		case 65:
			func_1155(iParam0, 9, &Var0, 61, 0);
			*(uParam1[0 /*4*/]) = { Var0 };
			(uParam1[0 /*4*/])->f_3 = Var0.f_3.f_2;
			func_1155(iParam0, 10, &Var0, 61, 0);
			*(uParam1[1 /*4*/]) = { Var0 };
			(uParam1[1 /*4*/])->f_3 = Var0.f_3.f_2;
			func_1155(iParam0, 11, &Var0, 61, 0);
			*(uParam1[2 /*4*/]) = { Var0 };
			(uParam1[2 /*4*/])->f_3 = Var0.f_3.f_2;
			func_1155(iParam0, 12, &Var0, 61, 0);
			*(uParam1[3 /*4*/]) = { Var0 };
			(uParam1[3 /*4*/])->f_3 = Var0.f_3.f_2;
			break;
		
		case 83:
		case 84:
		case 85:
			func_1155(iParam0, 9, &Var0, 83, 0);
			*(uParam1[0 /*4*/]) = { Var0 };
			(uParam1[0 /*4*/])->f_3 = Var0.f_3.f_2;
			func_1155(iParam0, 10, &Var0, 83, 0);
			*(uParam1[1 /*4*/]) = { Var0 };
			(uParam1[1 /*4*/])->f_3 = Var0.f_3.f_2;
			func_1155(iParam0, 11, &Var0, 83, 0);
			*(uParam1[2 /*4*/]) = { Var0 };
			(uParam1[2 /*4*/])->f_3 = Var0.f_3.f_2;
			func_1155(iParam0, 12, &Var0, 83, 0);
			*(uParam1[3 /*4*/]) = { Var0 };
			(uParam1[3 /*4*/])->f_3 = Var0.f_3.f_2;
			break;
		
		case 73:
		case 74:
		case 75:
		case 76:
			func_1155(iParam0, 9, &Var0, 73, 0);
			*(uParam1[0 /*4*/]) = { Var0 };
			(uParam1[0 /*4*/])->f_3 = Var0.f_3.f_2;
			func_1155(iParam0, 10, &Var0, 73, 0);
			*(uParam1[1 /*4*/]) = { Var0 };
			(uParam1[1 /*4*/])->f_3 = Var0.f_3.f_2;
			func_1155(iParam0, 11, &Var0, 73, 0);
			*(uParam1[2 /*4*/]) = { Var0 };
			(uParam1[2 /*4*/])->f_3 = Var0.f_3.f_2;
			func_1155(iParam0, 12, &Var0, 73, 0);
			*(uParam1[3 /*4*/]) = { Var0 };
			(uParam1[3 /*4*/])->f_3 = Var0.f_3.f_2;
			break;
		
		case 77:
		case 78:
		case 79:
		case 80:
		case 81:
		case 82:
			func_1155(iParam0, 9, &Var0, 77, 0);
			*(uParam1[0 /*4*/]) = { Var0 };
			(uParam1[0 /*4*/])->f_3 = Var0.f_3.f_2;
			func_1155(iParam0, 10, &Var0, 77, 0);
			*(uParam1[1 /*4*/]) = { Var0 };
			(uParam1[1 /*4*/])->f_3 = Var0.f_3.f_2;
			func_1155(iParam0, 11, &Var0, 77, 0);
			*(uParam1[2 /*4*/]) = { Var0 };
			(uParam1[2 /*4*/])->f_3 = Var0.f_3.f_2;
			func_1155(iParam0, 12, &Var0, 77, 0);
			*(uParam1[3 /*4*/]) = { Var0 };
			(uParam1[3 /*4*/])->f_3 = Var0.f_3.f_2;
			break;
		
		case 86:
			func_1186(iParam2, 9, &Var0, 0);
			*(uParam1[0 /*4*/]) = { Var0 };
			(uParam1[0 /*4*/])->f_3 = Var0.f_3.f_2;
			func_1186(iParam2, 10, &Var0, 0);
			*(uParam1[1 /*4*/]) = { Var0 };
			(uParam1[1 /*4*/])->f_3 = Var0.f_3.f_2;
			func_1186(iParam2, 11, &Var0, 0);
			*(uParam1[2 /*4*/]) = { Var0 };
			(uParam1[2 /*4*/])->f_3 = Var0.f_3.f_2;
			func_1186(iParam2, 12, &Var0, 0);
			*(uParam1[3 /*4*/]) = { Var0 };
			(uParam1[3 /*4*/])->f_3 = Var0.f_3.f_2;
			break;
		
		case 87:
		case 88:
		case 89:
		case 90:
			func_1155(iParam0, 9, &Var0, 88, 0);
			*(uParam1[0 /*4*/]) = { Var0 };
			(uParam1[0 /*4*/])->f_3 = Var0.f_3.f_2;
			func_1155(iParam0, 10, &Var0, 88, 0);
			*(uParam1[1 /*4*/]) = { Var0 };
			(uParam1[1 /*4*/])->f_3 = Var0.f_3.f_2;
			func_1155(iParam0, 11, &Var0, 88, 0);
			*(uParam1[2 /*4*/]) = { Var0 };
			(uParam1[2 /*4*/])->f_3 = Var0.f_3.f_2;
			func_1155(iParam0, 12, &Var0, 88, 0);
			*(uParam1[3 /*4*/]) = { Var0 };
			(uParam1[3 /*4*/])->f_3 = Var0.f_3.f_2;
			break;
		
		case 91:
		case 92:
		case 93:
		case 94:
		case 95:
		case 96:
			func_1155(iParam0, 9, &Var0, 91, 0);
			*(uParam1[0 /*4*/]) = { Var0 };
			(uParam1[0 /*4*/])->f_3 = Var0.f_3.f_2;
			func_1155(iParam0, 10, &Var0, 91, 0);
			*(uParam1[1 /*4*/]) = { Var0 };
			(uParam1[1 /*4*/])->f_3 = Var0.f_3.f_2;
			func_1155(iParam0, 11, &Var0, 91, 0);
			*(uParam1[2 /*4*/]) = { Var0 };
			(uParam1[2 /*4*/])->f_3 = Var0.f_3.f_2;
			func_1155(iParam0, 12, &Var0, 91, 0);
			*(uParam1[3 /*4*/]) = { Var0 };
			(uParam1[3 /*4*/])->f_3 = Var0.f_3.f_2;
			break;
		
		case 97:
		case 98:
		case 99:
		case 100:
		case 101:
		case 102:
			func_1155(iParam0, 9, &Var0, 97, 0);
			*(uParam1[0 /*4*/]) = { Var0 };
			(uParam1[0 /*4*/])->f_3 = Var0.f_3.f_2;
			func_1155(iParam0, 10, &Var0, 97, 0);
			*(uParam1[1 /*4*/]) = { Var0 };
			(uParam1[1 /*4*/])->f_3 = Var0.f_3.f_2;
			func_1155(iParam0, 11, &Var0, 97, 0);
			*(uParam1[2 /*4*/]) = { Var0 };
			(uParam1[2 /*4*/])->f_3 = Var0.f_3.f_2;
			func_1155(iParam0, 12, &Var0, 97, 0);
			*(uParam1[3 /*4*/]) = { Var0 };
			(uParam1[3 /*4*/])->f_3 = Var0.f_3.f_2;
			break;
	}
}

void func_1186(int iParam0, int iParam1, var uParam2, int iParam3)//Position - 0x967BA
{
	struct<6> Var0[2];
	vector3 vVar13;
	
	if (!iParam3)
	{
		Var0[0 /*6*/] = { func_1187(-1) };
	}
	else
	{
		Var0[0 /*6*/] = { Global_4006218[iParam0 /*45*/].f_4 };
		Var0[0 /*6*/].f_3 = { 0f, 0f, Global_4006218[iParam0 /*45*/].f_7 };
	}
	if (!iParam3)
	{
		Var0[1 /*6*/] = { func_1187(iParam0) };
	}
	else
	{
		Var0[1 /*6*/] = { Global_4006218[iParam0 /*45*/].f_4 };
		Var0[1 /*6*/].f_3 = { 0f, 0f, Global_4006218[iParam0 /*45*/].f_7 };
	}
	*uParam2 = { func_1157(iParam1, 86) };
	vVar13 = { *uParam2 - Var0[0 /*6*/] };
	vVar13 = { func_1156(vVar13, -Var0[0 /*6*/].f_3.f_2) };
	vVar13 = { func_1156(vVar13, Var0[1 /*6*/].f_3.f_2) };
	*uParam2 = { object::_get_object_offset_from_coords(Var0[1 /*6*/], 0f, vVar13) };
	switch (iParam1)
	{
		case 6:
		case 2:
		case 9:
		case 10:
		case 11:
		case 12:
		case 13:
		case 14:
		case 34:
		case 35:
		case 36:
		case 560:
		case 38:
		case 39:
		case 120:
		case 121:
		case 125:
		case 40:
		case 41:
		case 43:
		case 44:
		case 45:
		case 42:
		case 46:
		case 47:
		case 343:
		case 349:
		case 48:
		case 49:
		case 50:
		case 51:
		case 52:
		case 53:
		case 54:
		case 55:
		case 56:
		case 64:
		case 65:
		case 57:
		case 58:
		case 59:
		case 60:
		case 61:
		case 62:
		case 63:
		case 66:
		case 67:
		case 68:
		case 109:
		case 69:
		case 70:
		case 71:
		case 72:
		case 73:
		case 74:
		case 75:
		case 76:
		case 77:
		case 78:
		case 79:
		case 80:
		case 81:
		case 82:
		case 83:
		case 85:
		case 84:
		case 89:
		case 90:
		case 91:
		case 92:
		case 94:
		case 95:
		case 96:
		case 97:
		case 98:
		case 93:
		case 99:
		case 100:
		case 106:
		case 107:
		case 108:
		case 119:
		case 122:
		case 123:
		case 124:
		case 138:
		case 139:
		case 140:
		case 130:
		case 128:
		case 201:
		case 284:
		case 285:
		case 286:
		case 287:
		case 202:
		case 203:
		case 204:
		case 205:
		case 206:
		case 207:
		case 208:
		case 209:
		case 210:
		case 211:
		case 212:
		case 213:
		case 214:
		case 216:
		case 217:
		case 182:
		case 183:
		case 181:
		case 156:
		case 236:
		case 237:
		case 238:
		case 239:
		case 240:
		case 241:
		case 242:
		case 243:
		case 244:
		case 245:
		case 246:
		case 247:
		case 248:
		case 249:
		case 250:
		case 251:
		case 252:
		case 253:
		case 254:
		case 255:
		case 256:
		case 257:
		case 258:
		case 259:
		case 260:
		case 311:
		case 340:
		case 391:
		case 392:
		case 393:
		case 394:
		case 395:
		case 396:
		case 397:
		case 398:
		case 399:
		case 400:
		case 401:
		case 402:
		case 403:
		case 404:
		case 405:
		case 406:
		case 407:
		case 408:
		case 409:
		case 410:
		case 411:
		case 412:
		case 413:
		case 414:
		case 415:
		case 416:
		case 417:
		case 418:
		case 419:
		case 438:
		case 439:
		case 440:
		case 441:
		case 442:
		case 443:
		case 357:
		case 358:
		case 359:
		case 467:
		case 468:
		case 469:
		case 497:
		case 498:
		case 499:
		case 503:
		case 598:
			while (Var0[0 /*6*/].f_3.f_2 > 180f)
			{
				Var0[0 /*6*/].f_3.f_2 = (Var0[0 /*6*/].f_3.f_2 - 360f);
			}
			while (Var0[0 /*6*/].f_3.f_2 < -180f)
			{
				Var0[0 /*6*/].f_3.f_2 = (Var0[0 /*6*/].f_3.f_2 + 360f);
			}
			while (Var0[1 /*6*/].f_3.f_2 > 180f)
			{
				Var0[1 /*6*/].f_3.f_2 = (Var0[1 /*6*/].f_3.f_2 - 360f);
			}
			while (Var0[1 /*6*/].f_3.f_2 < -180f)
			{
				Var0[1 /*6*/].f_3.f_2 = (Var0[1 /*6*/].f_3.f_2 + 360f);
			}
			uParam2->f_3.f_2 = (uParam2->f_3.f_2 + (Var0[1 /*6*/].f_3.f_2 - Var0[0 /*6*/].f_3.f_2));
			while (uParam2->f_3.f_2 > 180f)
			{
				uParam2->f_3.f_2 = (uParam2->f_3.f_2 - 360f);
			}
			while (uParam2->f_3.f_2 < -180f)
			{
				uParam2->f_3.f_2 = (uParam2->f_3.f_2 + 360f);
			}
			break;
	}
	switch (iParam1)
	{
		case 362:
		case 363:
		case 364:
		case 365:
		case 366:
		case 367:
		case 368:
		case 360:
		case 361:
		case 383:
		case 386:
		case 372:
		case 373:
		case 374:
		case 375:
		case 376:
		case 377:
		case 378:
		case 370:
		case 371:
		case 384:
		case 387:
		case 486:
		case 487:
		case 488:
		case 489:
		case 490:
		case 491:
		case 492:
		case 485:
		case 544:
		case 543:
		case 545:
		case 516:
		case 517:
		case 583:
		case 584:
		case 518:
		case 519:
		case 520:
		case 521:
		case 522:
		case 523:
		case 524:
		case 525:
		case 526:
		case 527:
		case 553:
		case 552:
		case 551:
		case 550:
		case 556:
		case 555:
		case 593:
		case 594:
		case 595:
		case 596:
		case 554:
		case 587:
		case 588:
		case 589:
		case 590:
		case 591:
		case 592:
		case 597:
		case 118:
		case 117:
		case 599:
		case 600:
		case 601:
		case 602:
		case 603:
		case 604:
		case 605:
		case 606:
		case 607:
		case 608:
		case 609:
		case 610:
		case 612:
		case 618:
		case 624:
			while (Var0[0 /*6*/].f_3.f_2 > 180f)
			{
				Var0[0 /*6*/].f_3.f_2 = (Var0[0 /*6*/].f_3.f_2 - 360f);
			}
			while (Var0[0 /*6*/].f_3.f_2 < -180f)
			{
				Var0[0 /*6*/].f_3.f_2 = (Var0[0 /*6*/].f_3.f_2 + 360f);
			}
			while (Var0[1 /*6*/].f_3.f_2 > 180f)
			{
				Var0[1 /*6*/].f_3.f_2 = (Var0[1 /*6*/].f_3.f_2 - 360f);
			}
			while (Var0[1 /*6*/].f_3.f_2 < -180f)
			{
				Var0[1 /*6*/].f_3.f_2 = (Var0[1 /*6*/].f_3.f_2 + 360f);
			}
			uParam2->f_3.f_2 = (uParam2->f_3.f_2 + (Var0[1 /*6*/].f_3.f_2 - Var0[0 /*6*/].f_3.f_2));
			while (uParam2->f_3.f_2 > 180f)
			{
				uParam2->f_3.f_2 = (uParam2->f_3.f_2 - 360f);
			}
			while (uParam2->f_3.f_2 < -180f)
			{
				uParam2->f_3.f_2 = (uParam2->f_3.f_2 + 360f);
			}
			break;
	}
}

struct<6> func_1187(int iParam0)//Position - 0x97137
{
	struct<6> Var0;
	
	switch (iParam0)
	{
		case -1:
		case default:
			Var0 = { -1478.436f, -3753.538f, 9.7027f };
			Var0.f_3 = { 0f, 0f, -18f };
			break;
		
		case 0:
			Var0 = { -3555.115f, 1473.013f, 9.7027f };
			Var0.f_3 = { 0f, 0f, 57f };
			break;
		
		case 1:
			Var0 = { -3147.049f, 2827.088f, 9.7027f };
			Var0.f_3 = { 0f, 0f, -88f };
			break;
		
		case 2:
			Var0 = { -3277.473f, 2159.85f, 9.7027f };
			Var0.f_3 = { 0f, 0f, -93f };
			break;
		
		case 3:
			Var0 = { -2822.419f, 4054.84f, 9.7027f };
			Var0.f_3 = { 0f, 0f, 72f };
			break;
		
		case 4:
			Var0 = { -3249.849f, 3704.681f, 9.7027f };
			Var0.f_3 = { 0f, 0f, -98f };
			break;
		
		case 5:
			Var0 = { -2383.193f, 4685.003f, 9.7027f };
			Var0.f_3 = { 0f, 0f, 47f };
			break;
		
		case 6:
			Var0 = { -3224.686f, -215.9825f, 9.7027f };
			Var0.f_3 = { 0f, 0f, -3f };
			break;
		
		case 7:
			Var0 = { -3447.876f, 291.9275f, 9.7027f };
			Var0.f_3 = { 0f, 0f, 97f };
			break;
		
		case 8:
			Var0 = { -2713.098f, -528.3185f, 9.7027f };
			Var0.f_3 = { 0f, 0f, -33f };
			break;
		
		case 9:
			Var0 = { -1981.618f, -1537.269f, 9.7027f };
			Var0.f_3 = { 0f, 0f, 142f };
			break;
		
		case 10:
			Var0 = { -2100.817f, -2533.233f, 9.7027f };
			Var0.f_3 = { 0f, 0f, -143f };
			break;
		
		case 11:
			Var0 = { -1599.642f, -1891.277f, 9.7027f };
			Var0.f_3 = { 0f, 0f, 112f };
			break;
		
		case 12:
			Var0 = { -733.6151f, -3916.985f, 9.7027f };
			Var0.f_3 = { 0f, 0f, -168f };
			break;
		
		case 13:
			Var0 = { -363.3534f, -3568.56f, 9.7027f };
			Var0.f_3 = { 0f, 0f, 57f };
			break;
		
		case 14:
			Var0 = { -1478.436f, -3753.538f, 9.7027f };
			Var0.f_3 = { 0f, 0f, -18f };
			break;
		
		case 15:
			Var0 = { 1535.974f, -3061.877f, 9.7027f };
			Var0.f_3 = { 0f, 0f, 62f };
			break;
		
		case 16:
			Var0 = { 2471.418f, -2430.93f, 9.7027f };
			Var0.f_3 = { 0f, 0f, 12f };
			break;
		
		case 17:
			Var0 = { 2067.371f, -2813.01f, 9.7027f };
			Var0.f_3 = { 0f, 0f, -148f };
			break;
		
		case 18:
			Var0 = { 3021.088f, -1513.602f, 9.7027f };
			Var0.f_3 = { 0f, 0f, 72f };
			break;
		
		case 19:
			Var0 = { 3025.956f, -704.3854f, 9.7027f };
			Var0.f_3 = { 0f, 0f, -98f };
			break;
		
		case 20:
			Var0 = { 2961.863f, -2007.631f, 9.7027f };
			Var0.f_3 = { 0f, 0f, 47f };
			break;
		
		case 21:
			Var0 = { 3398.169f, 1958.521f, 9.7027f };
			Var0.f_3 = { 0f, 0f, 77f };
			break;
		
		case 22:
			Var0 = { 3428.681f, 1202.06f, 9.7027f };
			Var0.f_3 = { 0f, 0f, -148f };
			break;
		
		case 23:
			Var0 = { 3787.83f, 2567.884f, 9.7027f };
			Var0.f_3 = { 0f, 0f, -93f };
			break;
		
		case 24:
			Var0 = { 4235.946f, 4004.252f, 9.7027f };
			Var0.f_3 = { 0f, 0f, -118f };
			break;
		
		case 25:
			Var0 = { 4245.151f, 4595.375f, 9.7027f };
			Var0.f_3 = { 0f, 0f, -68f };
			break;
		
		case 26:
			Var0 = { 4209.057f, 3392.705f, 9.7027f };
			Var0.f_3 = { 0f, 0f, -98f };
			break;
		
		case 27:
			Var0 = { 3738.81f, 5768.252f, 9.7027f };
			Var0.f_3 = { 0f, 0f, -43f };
			break;
		
		case 28:
			Var0 = { 3472.966f, 6315.245f, 9.7027f };
			Var0.f_3 = { 0f, 0f, -23f };
			break;
		
		case 29:
			Var0 = { 3693.468f, 5194.659f, 9.7027f };
			Var0.f_3 = { 0f, 0f, 122f };
			break;
		
		case 30:
			Var0 = { 572.9806f, 7142.138f, 9.7027f };
			Var0.f_3 = { 0f, 0f, -58f };
			break;
		
		case 31:
			Var0 = { 2024.036f, 6907.536f, 9.7027f };
			Var0.f_3 = { 0f, 0f, -173f };
			break;
		
		case 32:
			Var0 = { 1377.296f, 6863.23f, 9.7027f };
			Var0.f_3 = { 0f, 0f, -3f };
			break;
		
		case 33:
			Var0 = { -1169.36f, 6000.214f, 9.7027f };
			Var0.f_3 = { 0f, 0f, -88f };
			break;
		
		case 34:
			Var0 = { -759.2205f, 6573.955f, 9.7027f };
			Var0.f_3 = { 0f, 0f, -153f };
			break;
		
		case 35:
			Var0 = { -373.8432f, 6964.86f, 9.7027f };
			Var0.f_3 = { 0f, 0f, -108f };
			break;
	}
	return Var0;
}

int func_1188(int iParam0, int iParam1)//Position - 0x97737
{
	var uVar0;
	
	uVar0 = iParam1;
	if (iParam1 == -1)
	{
		uVar0 = func_39();
	}
	if (iParam0 == 7 && !Global_262145.f_14977)
	{
		return 0;
	}
	if (iParam0 == 0)
	{
		return Global_1362455[uVar0];
	}
	else if (iParam0 == 99)
	{
		return Global_2524295[uVar0];
	}
	else if (iParam0 >= 1)
	{
		if (iParam0 >= 12)
		{
			return 0;
		}
		return Global_2524224[(iParam0 - 1) /*3*/][uVar0];
	}
	return 0;
}

float func_1189(vector3 vParam0, var uParam3, int iParam4)//Position - 0x977B3
{
	int iVar0;
	float fVar1;
	float fVar2;
	int iVar3;
	
	iVar3 = -1;
	fVar2 = 1E+07f;
	iVar0 = 0;
	while (iVar0 < *uParam3)
	{
		if ((uParam3[iVar0 /*12*/])->f_9)
		{
			fVar1 = 0f;
			switch ((uParam3[iVar0 /*12*/])->f_10)
			{
				case 0:
					fVar1 = system::vdist(*(uParam3[iVar0 /*12*/]), vParam0);
					fVar1 = (fVar1 - ((uParam3[iVar0 /*12*/])->f_6 + (IntToFloat(Global_2404994.f_2256) * (uParam3[iVar0 /*12*/])->f_8)));
					break;
				
				case 1:
				case 2:
					if (vParam0.x < (*uParam3)[iVar0 /*12*/])
					{
						fVar1 = (fVar1 + ((*uParam3)[iVar0 /*12*/] - vParam0.x));
					}
					else if (vParam0.x > (uParam3[iVar0 /*12*/])->f_3)
					{
						fVar1 = (fVar1 + (vParam0.x - (uParam3[iVar0 /*12*/])->f_3));
					}
					if (vParam0.y < (uParam3[iVar0 /*12*/])->f_1)
					{
						fVar1 = (fVar1 + ((uParam3[iVar0 /*12*/])->f_1 - vParam0.y));
					}
					else if (vParam0.y > (uParam3[iVar0 /*12*/])->f_3.f_1)
					{
						fVar1 = (fVar1 + (vParam0.y - (uParam3[iVar0 /*12*/])->f_3.f_1));
					}
					if (vParam0.y < (uParam3[iVar0 /*12*/])->f_2)
					{
						fVar1 = (fVar1 + ((uParam3[iVar0 /*12*/])->f_2 - vParam0.y));
					}
					else if (vParam0.y > (uParam3[iVar0 /*12*/])->f_3.f_2)
					{
						fVar1 = (fVar1 + (vParam0.y - (uParam3[iVar0 /*12*/])->f_3.f_2));
					}
					break;
			}
			if (fVar1 < fVar2)
			{
				fVar2 = fVar1;
				iVar3 = iVar0;
			}
		}
		iVar0++;
	}
	if (fVar2 < 0f)
	{
		fVar2 = 0f;
	}
	*iParam4 = iVar3;
	return fVar2;
}

int func_1190()//Position - 0x9792F
{
	int iVar0;
	int iVar1;
	
	iVar0 = 0;
	while (iVar0 < 4)
	{
		if (Global_2404994.f_43[iVar0 /*12*/].f_9)
		{
			iVar1++;
		}
		iVar0++;
	}
	return iVar1;
}

Vector3 func_1191(vector3 vParam0, float fParam3)//Position - 0x97960
{
	int iVar0;
	float fVar1;
	vector3 vVar2;
	vector3 vVar5;
	vector3 vVar8;
	int iVar11;
	int iVar12;
	
	iVar0 = 0;
	while (iVar0 < 32)
	{
		iVar12 = iVar0;
		if (func_947(iVar12))
		{
			vVar2 = { func_640(iVar12) };
			if (system::vdist(vParam0, vVar2) < fParam3 && !entity::is_entity_dead(player::get_player_ped(iVar12), 0))
			{
				fVar1 = entity::get_entity_heading(player::get_player_ped(iVar12));
				vVar5 = { 0f, 1f, 0f };
				func_794(&vVar5, 0f, 0f, fVar1);
				vVar8 = { vVar8 + vVar5 };
				iVar11++;
			}
		}
		iVar0++;
	}
	vVar8 = { vVar8 / FtoV(system::to_float(iVar11)) };
	return vVar8;
}

Vector3 func_1192(vector3 vParam0, float fParam3)//Position - 0x979F9
{
	int iVar0;
	vector3 vVar1;
	vector3 vVar4;
	int iVar7;
	int iVar8;
	
	iVar0 = 0;
	while (iVar0 < 32)
	{
		iVar8 = iVar0;
		if (func_947(iVar8))
		{
			vVar1 = { func_640(iVar8) };
			if (system::vdist(vParam0, vVar1) < fParam3)
			{
				vVar4 = { vVar4 + vVar1 };
				iVar7++;
			}
		}
		iVar0++;
	}
	vVar4 = { vVar4 / FtoV(system::to_float(iVar7)) };
	return vVar4;
}

Vector3 func_1193(vector3 vParam0, vector3 vParam3, vector3 vParam6, float fParam9, int iParam10, float fParam11, int iParam12, int iParam13, var uParam14)//Position - 0x97A64
{
	int iVar0;
	int iVar1;
	int iVar2;
	vector3 vVar3;
	vector3 vVar6;
	int iVar9;
	float fVar10;
	float fVar11;
	
	iVar1 = 999;
	fVar10 = 0f;
	vVar6 = { vParam0 };
	iVar0 = 0;
	while (iVar0 < 200)
	{
		pathfind::get_nth_closest_vehicle_node(vParam0, iVar0, &vVar3, 1, 0f, 0f);
		if (iParam13)
		{
			switch (iParam10)
			{
				case 0:
					if (vVar3.y < (vParam3.y - fParam9))
					{
						vVar3.z = vParam3.y;
					}
					break;
				
				case 1:
				case 2:
					if (vVar3.y < vParam3.y && vVar3.y < vParam6.y)
					{
						vVar3.z = ((vParam3.y + vParam6.y) * 0.5f);
					}
					break;
				}
		}
		switch (iParam10)
		{
			case 0:
				iVar9 = func_952(vVar3, vParam3, fParam9, 0, 0);
				break;
			
			case 1:
				iVar9 = func_950(vVar3, vParam3, vParam6, 0, 0);
				break;
			
			case 2:
				iVar9 = object::is_point_in_angled_area(vVar3, vParam3, vParam6, fParam9, 0, true);
				break;
		}
		if (iParam12)
		{
			if (iVar9)
			{
				if (func_971(&vVar3, 0, 0))
				{
					iVar9 = false;
				}
			}
		}
		if (iVar9)
		{
			*uParam14 = 1;
			iVar2 = func_946(vVar3, fParam11, &fVar11);
			if (iVar2 == 0)
			{
				return vVar3;
			}
			else if (iVar2 < iVar1)
			{
				fVar10 = fVar11;
				vVar6 = { vVar3 };
				iVar1 = iVar2;
			}
			else if (iVar2 == iVar1)
			{
				if (fVar11 > fVar10)
				{
					fVar10 = fVar11;
					vVar6 = { vVar3 };
				}
			}
		}
		iVar0++;
	}
	return vVar6;
}

void func_1194(var uParam0, var uParam1, float fParam2)//Position - 0x97BE0
{
	switch (uParam1->f_10)
	{
		case 0:
			func_1197(uParam0, *uParam1, uParam1->f_6, fParam2);
			break;
		
		case 1:
			func_1196(uParam0, *uParam1, uParam1->f_3, fParam2);
			break;
		
		case 2:
			func_1195(uParam0, *uParam1, uParam1->f_3, uParam1->f_6, fParam2);
			break;
	}
}

void func_1195(var uParam0, vector3 vParam1, vector3 vParam4, float fParam7, float fParam8)//Position - 0x97C44
{
	vector3 vVar0;
	vector3 vVar3;
	vector3 vVar6;
	vector3 vVar9;
	float fVar12;
	float fVar13;
	vector3 vVar14;
	vector3 vVar17;
	vector3 vVar20;
	vector3 vVar23;
	float fVar26;
	float fVar27;
	float fVar28;
	
	vVar0 = { vParam4 - vParam1 };
	vVar0.z = 0f;
	vVar3 = { *uParam0 - vParam1 };
	vVar3.z = 0f;
	vVar6 = { vParam4 - *uParam0 };
	vVar6.z = 0f;
	vVar9 = { func_816(0f, 0f, 1f, vVar0) };
	vVar9 = { vVar9 / FtoV(system::vmag(vVar9)) };
	fVar12 = (system::vmag(vVar3) * system::sin(gameplay::get_angle_between_2d_vectors(vVar0.x, vVar0.y, vVar3.x, vVar3.y)));
	vVar9 = { vVar9 * Vector(fVar12, fVar12, fVar12) };
	if (!func_814(vVar9, vVar3) >= 0f)
	{
		vVar9 = { vVar9 * Vector(-1f, -1f, -1f) };
	}
	vVar14 = { vParam1 + vVar9 };
	vVar17 = { vParam4 + vVar9 };
	vVar20 = { vVar14 - *uParam0 };
	vVar23 = { vVar17 - *uParam0 };
	if (gameplay::get_angle_between_2d_vectors(vVar0.x, vVar0.y, vVar3.x, vVar3.y) > 90f)
	{
		fVar13 = system::vmag(vVar20);
		vVar20 = { vVar20 / Vector(fVar13, fVar13, fVar13) };
		vVar20 = { vVar20 * FtoV((fVar13 + fParam8)) };
		*uParam0 = { *uParam0 + vVar20 };
	}
	if (gameplay::get_angle_between_2d_vectors(vVar0.x, vVar0.y, vVar6.x, vVar6.y) > 90f)
	{
		fVar13 = system::vmag(vVar23);
		vVar23 = { vVar23 / Vector(fVar13, fVar13, fVar13) };
		vVar23 = { vVar23 * FtoV((fVar13 + fParam8)) };
		*uParam0 = { *uParam0 + vVar23 };
	}
	if (fVar12 > ((fParam7 * 0.5f) - fParam8))
	{
		vVar9 = { vVar9 / FtoV(system::vmag(vVar9)) };
		fVar13 = (fVar12 - (fParam7 * 0.5f));
		fVar13 = (fVar13 + fParam8);
		vVar9 = { vVar9 * Vector(fVar13, fVar13, fVar13) };
		vVar9 = { vVar9 * Vector(-1f, -1f, -1f) };
		*uParam0 = { *uParam0 + vVar9 };
	}
	if (vParam1.y > vParam4.y)
	{
		fVar26 = vParam4.y;
		fVar27 = vParam1.y;
	}
	else
	{
		fVar26 = vParam1.y;
		fVar27 = vParam4.y;
	}
	fVar28 = (fVar27 - fVar26);
	if (uParam0->f_2 > (fVar27 - (fVar28 * 0.25f)))
	{
		uParam0->f_2 = (fVar27 - (fVar28 * 0.25f));
	}
	if (uParam0->f_2 < (fVar26 + (fVar28 * 0.25f)))
	{
		uParam0->f_2 = (fVar26 + (fVar28 * 0.25f));
	}
}

void func_1196(var uParam0, vector3 vParam1, vector3 vParam4, float fParam7)//Position - 0x97E82
{
	float fVar0;
	float fVar1;
	float fVar2;
	
	if (*uParam0 < vParam1.x)
	{
		*uParam0 = (vParam1.x + fParam7);
	}
	if (*uParam0 > vParam4.x)
	{
		*uParam0 = (vParam4.x - fParam7);
	}
	if (uParam0->f_1 < vParam1.y)
	{
		uParam0->f_1 = (vParam1.y + fParam7);
	}
	if (uParam0->f_1 > vParam4.y)
	{
		uParam0->f_1 = (vParam4.y - fParam7);
	}
	if (vParam1.y > vParam4.y)
	{
		fVar0 = vParam4.y;
		fVar1 = vParam1.y;
	}
	else
	{
		fVar0 = vParam1.y;
		fVar1 = vParam4.y;
	}
	fVar2 = (fVar1 - fVar0);
	if (uParam0->f_2 > (fVar1 - (fVar2 * 0.25f)))
	{
		uParam0->f_2 = (fVar1 - (fVar2 * 0.25f));
	}
	if (uParam0->f_2 < (fVar0 + (fVar2 * 0.25f)))
	{
		uParam0->f_2 = (fVar0 + (fVar2 * 0.25f));
	}
}

void func_1197(var uParam0, vector3 vParam1, float fParam4, float fParam5)//Position - 0x97F4C
{
	vector3 vVar0;
	
	vVar0 = { *uParam0 - vParam1 };
	vVar0.z = 0f;
	if (system::vmag(vVar0) > 0f)
	{
		vVar0 = { vVar0 / FtoV(system::vmag(vVar0)) };
	}
	else
	{
		vVar0 = { 0f, 1f, 0f };
	}
	vVar0 = { vVar0 * FtoV((fParam4 - fParam5)) };
	*uParam0 = { vParam1 + vVar0 };
}

void func_1198(var uParam0)//Position - 0x97FAB
{
	vector3 vVar0;
	vector3 vVar3;
	vector3 vVar6;
	
	Global_2404994.f_551 = 0;
	switch (uParam0->f_10)
	{
		case 0:
			Global_2404994.f_525 = { *uParam0 };
			Global_2404994.f_525.f_4 = (uParam0->f_6 + (IntToFloat(Global_2404994.f_2256) * uParam0->f_8));
			Global_2404994.f_499.f_7 = uParam0->f_11;
			if (uParam0->f_8 > 0f)
			{
				Global_2404994.f_551 = 1;
			}
			if (Global_2404994.f_499.f_7)
			{
				Global_2404994.f_525.f_3 = uParam0->f_7;
			}
			break;
		
		case 1:
			Global_2404994.f_525 = { 0f, 0f, 0f };
			Global_2404994.f_525.f_3 = 0f;
			Global_2404994.f_525.f_4 = 0f;
			Global_2404994.f_525.f_7 = 2;
			vVar0 = { *uParam0 };
			vVar3 = { uParam0->f_3 };
			vVar6 = { *uParam0 + uParam0->f_3 * Vector(0.5f, 0.5f, 0.5f) };
			Global_2404994.f_525.f_8 = { vVar0.x, vVar6.y, vVar0.y };
			Global_2404994.f_525.f_11 = { vVar3.x, vVar6.y, vVar3.y };
			Global_2404994.f_525.f_14 = (vVar3.y - vVar0.y);
			Global_2404994.f_525 = { Global_2404994.f_525.f_8 + Global_2404994.f_525.f_11 * Vector(0.5f, 0.5f, 0.5f) };
			break;
		
		case 2:
			Global_2404994.f_525.f_3 = 0f;
			Global_2404994.f_525.f_4 = 0f;
			Global_2404994.f_525.f_7 = 2;
			Global_2404994.f_525.f_8 = { *uParam0 };
			Global_2404994.f_525.f_11 = { uParam0->f_3 };
			Global_2404994.f_525.f_14 = uParam0->f_6;
			Global_2404994.f_525 = { Global_2404994.f_525.f_8 + Global_2404994.f_525.f_11 * Vector(0.5f, 0.5f, 0.5f) };
			break;
	}
}

var func_1199(vector3 vParam0)//Position - 0x98166
{
	var uVar0;
	
	func_1189(vParam0, &(Global_2404994.f_43), &uVar0);
	return uVar0;
}

Vector3 func_1200()//Position - 0x98181
{
	vector3 vVar0;
	int iVar3;
	int iVar4;
	int iVar5;
	
	iVar4 = 0;
	while (iVar4 < 32)
	{
		iVar5 = iVar4;
		if (func_1644(iVar5, 1, 1))
		{
			if (!iVar5 == player::player_id())
			{
				if (network::_0x9DE986FC9A87C474(player::player_id(), iVar5))
				{
					if (func_594(player::player_id(), iVar5, -2, 0))
					{
						vVar0 = { vVar0 + func_640(iVar5) };
						iVar3++;
					}
				}
			}
		}
		iVar4++;
	}
	if (iVar3 > 0)
	{
		vVar0 = { vVar0 / FtoV(system::to_float(iVar3)) };
	}
	else
	{
		vVar0 = { func_640(player::player_id()) };
	}
	return vVar0;
}

bool func_1201(var uParam0, int iParam1)//Position - 0x98212
{
	int iVar0;
	vector3 vVar1;
	
	iVar0 = 0;
	while (iVar0 < 8)
	{
		if (Global_2409172[iVar0 /*17*/].f_9 == 1)
		{
			if (func_961(*uParam0, &(Global_2409172[iVar0 /*17*/]), 1008981770, 0, 1) && !func_961(*uParam0, &(Global_2409172[iVar0 /*17*/]), 1008981770, 0, 0))
			{
				if (iParam1)
				{
					if (Global_2409172[iVar0 /*17*/].f_12)
					{
						*uParam0 = { Global_2409172[iVar0 /*17*/].f_13 };
					}
					else
					{
						vVar1 = { *uParam0 };
						vVar1.z = func_1202(&(Global_2409172[iVar0 /*17*/]));
						func_972(&vVar1, &(Global_2409172[iVar0 /*17*/]), 1036831949, 0, 0);
						if (func_973(&vVar1, 0, 0, 0))
						{
							vVar1 = { *uParam0 };
							func_972(&vVar1, &(Global_2409172[iVar0 /*17*/]), 1036831949, 1, 0);
						}
						*uParam0 = { vVar1 };
					}
				}
				return true;
			}
		}
		iVar0++;
	}
	return false;
}

float func_1202(var uParam0)//Position - 0x982FA
{
	switch (uParam0->f_10)
	{
		case 0:
			return uParam0->f_2;
			break;
		
		case 1:
		case 2:
			return ((uParam0->f_2 + uParam0->f_3.f_2) * 0.5f);
			break;
	}
	return uParam0->f_2;
}

Vector3 func_1203(vector3 vParam0, float fParam3)//Position - 0x98342
{
	int iVar0;
	int iVar1;
	int iVar2;
	vector3 vVar3;
	vector3 vVar6;
	
	iVar0 = 0;
	while (iVar0 < 32)
	{
		iVar1 = iVar0;
		if (func_947(iVar1))
		{
			vVar3 = { func_640(iVar1) };
			vVar3.z = vParam0.y;
			if (system::vdist(vVar3, vParam0) <= fParam3)
			{
				vVar6 = { vVar6 + func_640(iVar1) };
				iVar2++;
			}
		}
		iVar0++;
	}
	if (iVar2 > 0)
	{
		vVar6 = { vVar6 / FtoV(system::to_float(iVar2)) };
	}
	return vVar6;
}

bool func_1204(int iParam0)//Position - 0x983BD
{
	if ((func_1242(iParam0, 1) || func_1205(iParam0)) || func_707(iParam0, 0))
	{
		return true;
	}
	return false;
}

int func_1205(int iParam0)//Position - 0x983ED
{
	int iVar0;
	
	iVar0 = iParam0;
	if (iVar0 != -1)
	{
		return Global_1618089[iVar0 /*390*/] != -1;
	}
	return false;
}

struct<8> func_1206(int iParam0)//Position - 0x9840E
{
	struct<8> Var0;
	int iVar8;
	float fVar9;
	float fVar10;
	float fVar11;
	int iVar12;
	float fVar13;
	
	Var0 = 3;
	Var0.f_4 = 3;
	iVar8 = 0;
	while (iVar8 < 3)
	{
		Var0[iVar8] = -1;
		Var0.f_4[iVar8] = -1f;
		iVar8++;
	}
	if (Global_2404994.f_651 == 1)
	{
		Var0[0] = 0;
		Var0.f_4[0] = 1f;
		return Var0;
	}
	fVar13 = 0f;
	if (Global_2404994.f_651.f_507)
	{
		fVar13 = 0.001f;
	}
	iVar8 = 0;
	while (iVar8 < Global_2404994.f_651)
	{
		fVar10 = 1f;
		if (Global_2404994.f_651.f_503 == iVar8 && Global_2404994.f_651.f_504)
		{
			fVar10 = fVar13;
		}
		else
		{
			if (!Global_2404994.f_651.f_505)
			{
				if (func_1100(Global_2404994.f_651.f_1[iVar8 /*5*/], 0, 1, iParam0, Global_2404994.f_651.f_510, Global_2404994.f_651.f_511, Global_2404994.f_651.f_508, Global_2404994.f_651.f_509))
				{
					fVar10 = fVar13;
				}
			}
			if (func_970(Global_2404994.f_651.f_1[iVar8 /*5*/], 0.1f))
			{
				fVar10 = fVar13;
			}
			if (func_979(Global_2404994.f_651.f_1[iVar8 /*5*/], 1f, 0, 0, 100f, 1, -1, 0, 1))
			{
				fVar10 = (fVar10 * 0.94f);
			}
			if (func_979(Global_2404994.f_651.f_1[iVar8 /*5*/], 1f, 0, 0, 50f, 1, -1, 0, 1))
			{
				fVar10 = (fVar10 * 0.94f);
			}
			if (func_979(Global_2404994.f_651.f_1[iVar8 /*5*/], 1f, 0, 0, 25f, 1, -1, 0, 1))
			{
				fVar10 = (fVar10 * 0.94f);
			}
			if (!Global_2404994.f_651.f_506)
			{
				fVar11 = func_1095(Global_2404994.f_651.f_1[iVar8 /*5*/], player::player_id(), 0);
				if (fVar11 < 10000f)
				{
					fVar9 = func_1087(fVar11, Global_2404994.f_651.f_512, -1f, 100f, fVar13, 1f);
					fVar10 = (fVar10 * (fVar9 * 0.91f));
				}
				fVar11 = func_1088(Global_2404994.f_651.f_1[iVar8 /*5*/], 1, 0, 0, 0);
				fVar9 = func_1087(fVar11, Global_2404994.f_651.f_513, func_1099(), func_1098(), fVar13, 0.3f);
				fVar10 = (fVar10 * (fVar9 * 0.91f));
				fVar11 = func_1088(Global_2404994.f_651.f_1[iVar8 /*5*/], 0, 1, 0, 0);
				if (fVar11 < 10000f)
				{
					fVar9 = func_1087(fVar11, Global_2404994.f_651.f_514, 15f, 150f, fVar13, 0.2f);
					fVar10 = (fVar10 * (fVar9 * 0.92f));
				}
				fVar11 = gameplay::get_distance_between_coords(Global_2404994.f_651.f_1[iVar8 /*5*/], Global_2404994.f_493, 1);
				fVar9 = func_1087(fVar11, 0f, 0f, 40f, fVar13, 1f);
				fVar10 = (fVar10 * (fVar9 * 0.93f));
			}
			fVar10 = (fVar10 * Global_2404994.f_651.f_1[iVar8 /*5*/].f_4);
		}
		iVar12 = 0;
		while (iVar12 < 3)
		{
			if (fVar10 > 0f || Global_2404994.f_651.f_507)
			{
				if (fVar10 > Var0.f_4[iVar12])
				{
					func_1207(&Var0, iVar8, fVar10, iVar12);
					iVar12 = 3;
				}
				else if (fVar10 == Var0.f_4[iVar12])
				{
					if (gameplay::get_random_int_in_range(0, 2) > 0)
					{
						func_1207(&Var0, iVar8, fVar10, iVar12);
						iVar12 = 3;
					}
				}
			}
			iVar12++;
		}
		iVar8++;
	}
	return Var0;
}

void func_1207(var uParam0, int iParam1, float fParam2, int iParam3)//Position - 0x98778
{
	var uVar0;
	var uVar1;
	
	uVar0 = (*uParam0)[iParam3];
	uVar1 = uParam0->f_4[iParam3];
	(*uParam0)[iParam3] = iParam1;
	uParam0->f_4[iParam3] = fParam2;
	if (iParam3 < 2)
	{
		func_1207(uParam0, uVar0, uVar1, iParam3 + 1);
	}
}

void func_1208(var uParam0, var uParam1, var uParam2, float fParam3)//Position - 0x987B8
{
	int iVar0;
	int iVar1;
	int iVar2;
	
	iVar2 = gameplay::get_random_int_in_range(0, *uParam0);
	iVar0 = 0;
	while (iVar0 < *uParam0)
	{
		iVar1 = (iVar0 + iVar2);
		if (!iVar1 < *uParam0)
		{
			iVar1 = (iVar1 - *uParam0);
		}
		if (func_1113(*(uParam0[iVar1 /*4*/]), (uParam0[iVar1 /*4*/])->f_3, 0, 1, 0, 0, fParam3, 1101004800, 1101004800, 1084227584, 1092616192, 0, 0))
		{
			*uParam1 = { *(uParam0[iVar1 /*4*/]) };
			*uParam2 = (uParam0[iVar1 /*4*/])->f_3;
			return;
		}
		iVar0++;
	}
	iVar0 = gameplay::get_random_int_in_range(0, *uParam0);
	*uParam1 = { *(uParam0[iVar0 /*4*/]) };
	*uParam2 = (uParam0[iVar0 /*4*/])->f_3;
}

int func_1209(vector3 vParam0)//Position - 0x98865
{
	int iVar0;
	
	iVar0 = 0;
	while (iVar0 < 36)
	{
		if (func_792(vParam0, iVar0, 0))
		{
			return iVar0;
		}
		iVar0++;
	}
	return -1;
}

int func_1210()//Position - 0x98894
{
	int iVar0;
	
	if (gameplay::get_index_of_current_level() == 5)
	{
		return 7;
	}
	else
	{
		if (!Global_2404994.f_477 == 0)
		{
			if (!script::is_thread_active(Global_2404994.f_477.f_1))
			{
				if (Global_2404994.f_477 == 8)
				{
					func_1223();
				}
				Global_2404994.f_477 = 0;
			}
		}
		if (!Global_2404994.f_477 == 0)
		{
			return Global_2404994.f_477;
		}
		else if (func_37(player::player_id(), 0))
		{
			return 6;
		}
		else if (Global_2404994.f_43[0 /*12*/].f_9)
		{
			if (func_1222())
			{
				Global_2404994.f_43.f_54 = 1;
			}
			else
			{
				Global_2404994.f_43.f_54 = 0;
			}
			if (Global_2404994.f_43.f_54)
			{
				return 26;
			}
			else
			{
				return 3;
			}
		}
		else
		{
			if (!Global_2404994.f_24 == 0)
			{
				if (!script::is_thread_active(Global_2404994.f_24.f_1))
				{
					Global_2404994.f_24 = 0;
				}
			}
			if (!Global_2404994.f_24 == 0)
			{
				return Global_2404994.f_24;
			}
			else if (func_402())
			{
				if (func_1221(player::player_id()))
				{
					return 33;
				}
				else
				{
					return 20;
				}
			}
			else if (func_403())
			{
				return 20;
			}
			else if ((((((func_260(1) && func_1221(player::player_id())) && (func_834(player::player_id()) != 157 || (func_834(player::player_id()) == 157 && func_456() != func_1220()))) && !func_1219()) && !func_1217(player::player_id())) && !func_454(1)) && !(func_707(player::player_id(), 0) == 0 && func_1216(player::player_id()) == 1))
			{
				if (func_1179())
				{
					return 34;
				}
				else if (func_1215(10f))
				{
					return 27;
				}
				else
				{
					iVar0 = func_771(player::player_id(), 0);
					if ((func_769(iVar0) && func_1212(iVar0)) && (func_1211(iVar0) || func_56(player::player_id())))
					{
						Global_2404994.f_2316 = iVar0;
						return 29;
					}
					else
					{
						return 31;
					}
				}
			}
			else if (func_1215(10f))
			{
				return 27;
			}
			else
			{
				iVar0 = func_771(player::player_id(), 0);
				if (func_769(iVar0) && func_1212(iVar0))
				{
					Global_2404994.f_2316 = iVar0;
					return 29;
				}
				else
				{
					return 1;
				}
			}
		}
	}
	return 1;
}

bool func_1211(int iParam0)//Position - 0x98B02
{
	int iVar0;
	
	if (func_261(player::player_id(), 0))
	{
		iVar0 = func_456();
		if (func_1644(iVar0, 0, 0))
		{
			if (func_791(iVar0, iParam0, 0, 0))
			{
				return true;
			}
		}
	}
	return false;
}

bool func_1212(int iParam0)//Position - 0x98B39
{
	int iVar0;
	int iVar1;
	int iVar2;
	struct<13> Var3;
	int iVar16;
	int iVar17;
	int iVar18;
	int iVar19;
	
	iVar0 = func_1214(iParam0);
	if (iVar0 > -1)
	{
		iVar1 = func_1213(iParam0);
		if (!iVar1 == func_45())
		{
			if (iVar1 == player::player_id())
			{
				return true;
			}
			iVar2 = func_637(player::player_id(), iVar1);
			Var3 = { func_487(iVar1) };
			iVar16 = network::network_is_friend(&Var3);
			if (!entity::is_entity_dead(player::get_player_ped(iVar1), 0))
			{
				if (ped::is_ped_in_any_vehicle(player::get_player_ped(iVar1), 0))
				{
					iVar18 = ped::get_vehicle_ped_is_in(player::get_player_ped(iVar1), 0);
					if (!entity::is_entity_dead(iVar18, 0))
					{
						if (ped::is_ped_in_vehicle(player::player_ped_id(), iVar18, 0))
						{
							iVar17 = 1;
						}
					}
				}
			}
			iVar19 = func_930(player::player_id(), iVar1);
			switch (iVar0)
			{
				case 0:
					return true;
					break;
				
				case 1:
					if (iVar2)
					{
						return true;
					}
					break;
				
				case 2:
					if (iVar16)
					{
						return true;
					}
					break;
				
				case 3:
					if (iVar2 || iVar16)
					{
						return true;
					}
					break;
				
				case 4:
					if (iVar19)
					{
						return true;
					}
					break;
				
				case 5:
					if (((iVar2 || iVar16) || iVar17) || iVar19)
					{
						return true;
					}
					break;
				
				case 6:
					return false;
					break;
				}
			}
	}
	return false;
}

var func_1213(int iParam0)//Position - 0x98C7C
{
	return Global_2415705.f_756[iParam0 /*33*/];
}

int func_1214(int iParam0)//Position - 0x98C8F
{
	int iVar0;
	
	if (func_770(iParam0))
	{
		iVar0 = func_1213(iParam0);
		if (!iVar0 == func_45())
		{
			return Global_2421621[iVar0 /*358*/].f_264.f_47;
		}
	}
	return -1;
}

int func_1215(float fParam0)//Position - 0x98CC5
{
	return func_1180(player::player_id(), fParam0);
}

int func_1216(int iParam0)//Position - 0x98CD7
{
	int iVar0;
	vector3 vVar1;
	
	if (func_261(iParam0, 0))
	{
		iVar0 = func_429(iParam0);
		vVar1 = { func_1170(iVar0) };
		return func_973(&vVar1, 0, 0, 0);
	}
	return 0;
}

int func_1217(int iParam0)//Position - 0x98D08
{
	return func_1218(func_834(iParam0));
}

bool func_1218(int iParam0)//Position - 0x98D1A
{
	switch (iParam0)
	{
		case 167:
		case 169:
		case 168:
			return true;
		
		default:
	}
	return false;
}

bool func_1219()//Position - 0x98D40
{
	int iVar0;
	int iVar1;
	
	iVar0 = func_456();
	iVar1 = player::get_player_ped(iVar0);
	if ((entity::does_entity_exist(iVar1) && !ped::is_ped_injured(iVar1)) && (((ped::is_ped_in_flying_vehicle(iVar1) || gameplay::is_bit_set(Global_2421621[iVar0 /*358*/].f_69.f_2, 10)) || gameplay::is_bit_set(Global_2421621[iVar0 /*358*/].f_69.f_2, 11)) || gameplay::is_bit_set(Global_2421621[iVar0 /*358*/].f_69.f_2, 12)))
	{
		return true;
	}
	return false;
}

var func_1220()//Position - 0x98DC6
{
	return Global_1618089[player::player_id() /*390*/].f_11.f_34;
}

bool func_1221(int iParam0)//Position - 0x98DDD
{
	vector3 vVar0;
	int iVar3;
	vector3 vVar4;
	int iVar7;
	vector3 vVar8;
	
	vVar0 = { func_1170(iParam0) };
	if (func_261(iParam0, 0))
	{
		iVar3 = func_429(iParam0);
		vVar4 = { func_1170(iVar3) };
		vVar0.z = 0f;
		vVar4.z = 0f;
		if (system::vdist2(vVar0, vVar4) < 250000f)
		{
			return true;
		}
	}
	else
	{
		iVar7 = func_1152(iParam0, 1);
		if (!iVar7 == func_45())
		{
			vVar8 = { func_1170(iVar7) };
			vVar0.z = 0f;
			vVar8.z = 0f;
			if (system::vdist2(vVar0, vVar8) < 250000f)
			{
				return true;
			}
		}
	}
	return false;
}

int func_1222()//Position - 0x98E73
{
	int iVar0;
	
	iVar0 = 0;
	while (iVar0 < 4)
	{
		if (Global_2404994.f_43[iVar0 /*12*/].f_9)
		{
			switch (Global_2404994.f_43[iVar0 /*12*/].f_10)
			{
				case 0:
					return func_1077(Global_2404994.f_43[iVar0 /*12*/].f_6);
					break;
				
				case 1:
					return func_1076(Global_2404994.f_43[iVar0 /*12*/], Global_2404994.f_43[iVar0 /*12*/].f_3, 0f);
					break;
				
				case 2:
					return func_1076(Global_2404994.f_43[iVar0 /*12*/], Global_2404994.f_43[iVar0 /*12*/].f_3, Global_2404994.f_43[iVar0 /*12*/].f_6);
					break;
				}
		}
		iVar0++;
	}
	return 0;
}

void func_1223()//Position - 0x98F2B
{
	func_1224();
	Global_2404994.f_1684 = 0;
}

void func_1224()//Position - 0x98F3F
{
	int iVar0;
	struct<5> Var1;
	
	Var1.f_4 = 1065353216;
	iVar0 = 0;
	while (iVar0 < 100)
	{
		Global_2404994.f_651.f_1[iVar0 /*5*/] = { Var1 };
		iVar0++;
	}
}

bool func_1225()//Position - 0x98F7A
{
	if (func_1228() && (vehicle::is_this_model_a_plane(Global_2404994.f_43.f_67) || vehicle::is_this_model_a_heli(Global_2404994.f_43.f_67)))
	{
		return true;
	}
	return false;
}

void func_1226()//Position - 0x98FB1
{
	struct<26> Var0;
	struct<26> Var26;
	
	Var0.f_5 = 1115815936;
	Var0.f_13 = 2;
	Var0.f_20 = 2;
	Var0.f_25 = -1082130432;
	Var26.f_16 = 1;
	Var26.f_22 = 1;
	Var26.f_23 = 1;
	Var26.f_24 = 1;
	Global_2404994.f_499 = { Var0 };
	Global_2404994.f_525 = { Var26 };
}

void func_1227(vector3 vParam0)//Position - 0x99015
{
	vector3 vVar0;
	
	vVar0.x = 349;
	vVar0.y = player::player_id();
	vVar0.f_2 = { vParam0 };
	script::trigger_script_event(1, &vVar0, 5, func_36(1, 1));
}

bool func_1228()//Position - 0x99042
{
	if (Global_2404994.f_43.f_65 && !Global_2404994.f_43.f_298)
	{
		if (!func_1592(player::player_id()))
		{
			return true;
		}
	}
	return false;
}

int func_1229(int iParam0)//Position - 0x99078
{
	if (cam::is_screen_faded_out())
	{
		return 10000;
	}
	if (iParam0)
	{
		return 5000;
	}
	return 1000;
}

void func_1230()//Position - 0x9909B
{
	Global_17151.f_6 = 1;
}

void func_1231(vector3 vParam0, float fParam3, float fParam4, int iParam5, float fParam6, int iParam7, int iParam8, int iParam9, int iParam10, int iParam11)//Position - 0x990A9
{
	struct<25> Var0;
	
	Var0.f_7 = 1;
	Var0.f_8 = 1;
	Var0.f_21 = 1115815936;
	if (script::is_thread_active(Global_2412527.f_6))
	{
		if (!Global_2412527.f_6 == script::get_id_of_this_thread())
		{
			return;
		}
	}
	else
	{
		Global_2412527.f_6 = script::get_id_of_this_thread();
	}
	Var0.f_6 = Global_2412527.f_6;
	Var0 = { vParam0 };
	Var0.f_5 = fParam3;
	Var0.f_4 = fParam4;
	Var0.f_7 = iParam5;
	Var0.f_3 = fParam6;
	Var0.f_8 = iParam8;
	Var0.f_9 = iParam7;
	Var0.f_10 = 0;
	Var0.f_11 = { 0f, 0f, 0f };
	Var0.f_14 = { 0f, 0f, 0f };
	Var0.f_17 = 0f;
	Var0.f_21 = iParam9;
	Var0.f_22 = iParam10;
	if (func_1204(player::player_id()))
	{
		Var0.f_23 = 1;
	}
	else
	{
		Var0.f_23 = 0;
	}
	if (Var0.f_21 < 1f)
	{
		Var0.f_21 = 1f;
	}
	Var0.f_24 = iParam11;
	Global_2412527 = { Var0 };
}

void func_1232(int iParam0)//Position - 0x9918C
{
	if (network::participant_id_to_int() != -1)
	{
		Local_2854[network::participant_id_to_int() /*4*/].f_1 = iParam0;
	}
}

void func_1233(int iParam0, int iParam1)//Position - 0x991A9
{
	if (!iParam0)
	{
		cam::set_gameplay_cam_relative_pitch(0f, 1065353216);
		cam::set_gameplay_cam_relative_heading(0f);
	}
	if (!entity::is_entity_dead(player::player_ped_id(), 0))
	{
		ped::clear_ped_wetness(player::player_ped_id());
	}
	if (!iParam1)
	{
		streaming::clear_focus();
	}
	if (player::is_player_teleport_active())
	{
		player::stop_player_teleport();
	}
	func_541();
	if (!gameplay::is_bit_set(Global_1589933[player::player_id() /*601*/].f_257.f_13, 14))
	{
		func_1234();
	}
}

void func_1234()//Position - 0x99212
{
	Global_2501629.f_80 = 1;
}

bool func_1235(int iParam0)//Position - 0x99221
{
	if (Global_2421621[iParam0 /*358*/].f_210 != 0)
	{
		return true;
	}
	return false;
}

var func_1236()//Position - 0x9923D
{
	return Global_2433082.f_731;
}

void func_1237()//Position - 0x9924C
{
	if (Global_1747616)
	{
	}
	Global_1747616 = 0;
}

var func_1238()//Position - 0x99260
{
	return Global_52999;
}

void func_1239(int iParam0)//Position - 0x9926B
{
	if (func_1240() && iParam0)
	{
		return;
	}
	if (iParam0 == Global_2391043)
	{
		return;
	}
	Global_2391043 = iParam0;
	Global_2391045 = 0;
	Global_2391046 = 0;
}

bool func_1240()//Position - 0x992A0
{
	if ((((Global_979732 != -1 && Global_979732 != 33) && Global_979732 != 35) && Global_979732 != 37) && Global_979732 != 21)
	{
		return true;
	}
	return false;
}

void func_1241()//Position - 0x992E6
{
	Global_17290.f_7893 = 1;
}

int func_1242(int iParam0, int iParam1)//Position - 0x992F5
{
	if (Global_1312443 != 0)
	{
		return func_1243(iParam0) != 0;
	}
	return func_501(iParam0, iParam1);
}

int func_1243(int iParam0)//Position - 0x9931B
{
	if (func_1644(iParam0, 0, 1))
	{
		return Global_2421621[iParam0 /*358*/].f_1;
	}
	return 0;
}

void func_1244()//Position - 0x9933D
{
	if (!func_1205(player::player_id()))
	{
		player::set_wanted_level_multiplier(1f);
	}
	streaming::remove_anim_dict("MP_SUICIDE");
	if (network::network_is_game_in_progress())
	{
		if (network::network_is_in_mp_cutscene())
		{
			func_1247(1);
			if (Global_92997)
			{
				func_1245();
			}
		}
	}
	Global_1312412.f_6 = 0;
	StringCopy(&(Global_2433082.f_697), "", 16);
	gameplay::clear_bit(&(Global_2433082.f_697.f_4), 0);
	gameplay::clear_bit(&(Global_2433082.f_697.f_4), 1);
	gameplay::clear_bit(&(Global_2433082.f_697.f_4), 2);
	gameplay::clear_bit(&(Global_2433082.f_697.f_4), 3);
}

void func_1245()//Position - 0x993C9
{
	cam::set_widescreen_borders(false, -1);
	func_1246();
	if (!ped::is_ped_injured(player::player_ped_id()))
	{
		weapon::hide_ped_weapon_for_scripted_cutscene(player::player_ped_id(), false);
		if (!Global_69697)
		{
			player::set_everyone_ignore_player(player::player_id(), 0);
			ped::clear_facial_idle_anim_override(player::player_ped_id());
		}
	}
	Global_92997 = 0;
	func_528(0, 1, 1, 0);
}

void func_1246()//Position - 0x99416
{
	if (Global_91538.f_5 && Global_91538.f_6 == gameplay::get_hash_key(script::get_this_script_name()))
	{
		ui::clear_help(1);
		Global_91538.f_5 = 0;
	}
}

void func_1247(int iParam0)//Position - 0x99447
{
	if (iParam0)
	{
		if (Global_69697)
		{
			if (network::network_is_in_mp_cutscene())
			{
				network::network_set_in_mp_cutscene(0, 0);
			}
		}
	}
}

var func_1248(int iParam0)//Position - 0x99468
{
	return Local_2854[iParam0 /*4*/].f_1;
}

int func_1249()//Position - 0x99479
{
	return Global_2433082.f_2199[0 /*76*/].f_1 != 0;
}

void func_1250(char* sParam0, int iParam1)//Position - 0x9948F
{
	if (gameplay::is_string_null_or_empty(sParam0))
	{
		return;
	}
	if (ui::_0x43E4111189E54F0E(sParam0) > 23)
	{
		return;
	}
	if (func_1254(sParam0))
	{
		return;
	}
	func_688();
	Global_1312571 = 0;
	StringCopy(&(Global_1312571.f_1), script::get_this_script_name(), 32);
	Global_1312571.f_9 = gameplay::get_hash_key(&(Global_1312571.f_1));
	StringCopy(&(Global_1312571.f_12), sParam0, 16);
	func_1253();
	func_1252(iParam1);
	func_1251();
}

void func_1251()//Position - 0x994FA
{
	gameplay::set_bit(&(Global_1312571.f_59), 1);
}

void func_1252(int iParam0)//Position - 0x9950D
{
	if (iParam0)
	{
		gameplay::set_bit(&(Global_1312571.f_59), 0);
		return;
	}
	gameplay::clear_bit(&(Global_1312571.f_59), 0);
}

void func_1253()//Position - 0x99533
{
	Global_1312571.f_10 = network::get_time_offset(network::get_network_time(), 86400000);
	Global_1312571.f_11 = network::get_network_time();
}

int func_1254(char* sParam0)//Position - 0x99558
{
	if (!func_693())
	{
		return false;
	}
	if (Global_1312571 == 11)
	{
		return func_1255(sParam0);
	}
	if (gameplay::is_string_null_or_empty(sParam0))
	{
		return false;
	}
	return gameplay::get_hash_key(sParam0) == gameplay::get_hash_key(&(Global_1312571.f_12));
}

int func_1255(char* sParam0)//Position - 0x9959C
{
	if (!func_693())
	{
		return false;
	}
	if (gameplay::is_string_null_or_empty(sParam0))
	{
		return false;
	}
	return gameplay::get_hash_key(sParam0) == gameplay::get_hash_key(&(Global_1312571.f_16));
}

void func_1256(int iParam0)//Position - 0x995CE
{
	var uVar0;
	
	if (iParam0)
	{
		if (func_507())
		{
			func_499(0);
			func_1260();
		}
		if (func_1259(0))
		{
			uVar0 = func_359(2462, -1, 0);
			gameplay::clear_bit(&uVar0, 0);
			func_1260();
		}
		if (func_1259(func_1258(func_730(player::player_id()))))
		{
			uVar0 = func_359(2462, -1, 0);
			gameplay::clear_bit(&uVar0, func_1258(func_730(player::player_id())));
			func_1260();
		}
		if (func_1257())
		{
			func_1260();
		}
		if (func_730(player::player_id()) > -1)
		{
			gameplay::set_bit(&(Global_1618089[player::player_id() /*390*/].f_1), 7);
		}
	}
	else
	{
		gameplay::clear_bit(&(Global_1618089[player::player_id() /*390*/].f_1), 7);
	}
}

bool func_1257()//Position - 0x9967B
{
	if (Global_2433082.f_655.f_5 == -1)
	{
		return false;
	}
	return true;
}

int func_1258(int iParam0)//Position - 0x99695
{
	switch (iParam0)
	{
		case 131:
			return 10;
		
		case 132:
			return 1;
		
		case 133:
			return 2;
		
		case 136:
			return 11;
		
		case 138:
			return 5;
		
		case 139:
			return 6;
		
		case 129:
			return 8;
		
		case 140:
			return 4;
		
		case 141:
			return 9;
		
		case 144:
			return 3;
		
		case 146:
			return 7;
		
		default:
	}
	return 12;
}

int func_1259(int iParam0)//Position - 0x99718
{
	int iVar0;
	
	iVar0 = func_359(2462, -1, 0);
	return gameplay::is_bit_set(iVar0, iParam0);
}

void func_1260()//Position - 0x99733
{
	if (func_1257())
	{
		Global_2433082.f_655.f_16 = 1;
	}
}

void func_1261(int iParam0)//Position - 0x9974C
{
	int iVar0;
	var uVar1;
	
	if (iParam0)
	{
		Global_2454635 = func_730(player::player_id());
		if (Global_2454635 == -1)
		{
			Global_2454635 = Global_1574332.f_4;
		}
		if (func_1285(Global_2454635) == 0)
		{
			if (func_1284(1) > 0)
			{
				func_1283(26, -1);
			}
		}
		if (func_507())
		{
			func_499(0);
			func_1260();
		}
		if (func_1259(0))
		{
			uVar1 = func_359(2462, -1, 0);
			gameplay::clear_bit(&uVar1, 0);
			func_1260();
		}
		if (func_1259(func_1258(func_730(player::player_id()))))
		{
			uVar1 = func_359(2462, -1, 0);
			gameplay::clear_bit(&uVar1, func_1258(func_730(player::player_id())));
			func_1260();
		}
		if (func_1257())
		{
			func_1260();
		}
		gameplay::set_bit(&(Global_1618089[player::player_id() /*390*/].f_1), 0);
	}
	else
	{
		if ((!func_799() && !func_1282()) && !func_1281())
		{
			Global_2454635 = -1;
			func_1280(26, -1);
		}
		else if (func_1285(Global_2454635) == 0)
		{
			iVar0 = func_1266(1);
			if (iVar0 > 0)
			{
				func_1264(joaat("mpply_fmevn_cheat_end"), iVar0);
				func_365(1926, 1, -1);
				func_1264(joaat("mpply_activity_ended"), 1);
			}
		}
		else if (func_1262(26, -1))
		{
			Global_2454635 = -1;
			func_1280(26, -1);
		}
		gameplay::clear_bit(&(Global_1618089[player::player_id() /*390*/].f_1), 0);
	}
}

int func_1262(int iParam0, int iParam1)//Position - 0x998A5
{
	int iVar0;
	int iVar1;
	
	if (iParam1 == -1)
	{
		iParam1 = func_39();
	}
	iVar0 = func_1263(iParam1);
	iVar1 = gameplay::get_profile_setting(iVar0);
	return gameplay::is_bit_set(iVar1, iParam0);
}

int func_1263(int iParam0)//Position - 0x998D1
{
	int iVar0;
	
	if (iParam0 == -1)
	{
		iParam0 = func_39();
	}
	switch (iParam0)
	{
		case 0:
			iVar0 = 909;
			break;
		
		case 1:
			iVar0 = 910;
			break;
		
		case 2:
			iVar0 = 911;
			break;
		
		case 3:
			iVar0 = 912;
			break;
		
		case 4:
			iVar0 = 913;
			break;
	}
	return iVar0;
}

void func_1264(int iParam0, int iParam1)//Position - 0x99934
{
	int iVar0;
	
	iVar0 = func_621(iParam0);
	iVar0 = (iVar0 + iParam1);
	if (!func_1265(iParam0))
	{
		func_619(iParam0, iVar0);
	}
	else
	{
		func_623(iParam0, iVar0);
	}
}

bool func_1265(int iParam0)//Position - 0x99968
{
	if (Global_1362328)
	{
		switch (iParam0)
		{
			case joaat("mpply_crew_0_id"):
			case joaat("mpply_crew_1_id"):
			case joaat("mpply_crew_2_id"):
			case joaat("mpply_crew_3_id"):
			case joaat("mpply_crew_4_id"):
			case joaat("mpply_crew_local_xp_0"):
			case joaat("mpply_crew_local_xp_1"):
			case joaat("mpply_crew_local_xp_2"):
			case joaat("mpply_crew_local_xp_3"):
			case joaat("mpply_crew_local_xp_4"):
			case joaat("mpply_became_cheater_num"):
			case joaat("mpply_friendly"):
			case joaat("mpply_offensive_language"):
			case joaat("mpply_griefing"):
			case joaat("mpply_helpful"):
			case joaat("mpply_offensive_tagplate"):
			case joaat("mpply_offensive_ugc"):
				return true;
				break;
			}
	}
	return false;
}

int func_1266(int iParam0)//Position - 0x999EC
{
	int iVar0;
	int iVar1;
	
	iVar0 = 2;
	iVar1 = 0;
	if (Global_2453529 == 0)
	{
		return 0;
	}
	if (func_1281())
	{
		if (network::network_is_activity_session() || (func_1279() || func_1277()))
		{
			Global_2452483 = 1;
		}
	}
	Global_2453529 = 0;
	if (Global_1318055)
	{
		iVar0 = 1;
	}
	if (Global_2452483)
	{
		iVar0 = 1;
	}
	if (Global_2452482)
	{
		iVar0 = 1;
	}
	if (func_1276(Global_100680.f_1, 32))
	{
		iVar0 = 1;
	}
	if (Global_2452408)
	{
		iVar0 = 1;
	}
	if (func_1275(512))
	{
		iVar0 = 1;
	}
	if (func_1274(128))
	{
		iVar0 = 1;
	}
	if (Global_1318079 == 1 && iVar1 == 0)
	{
		iVar0 = 0;
	}
	if (func_357())
	{
		iVar0 = 0;
	}
	if (Global_2452968)
	{
		iVar0 = 2;
	}
	if (iParam0 == 0)
	{
		if (!func_1272())
		{
			if (Global_1632166.f_86999 == 0)
			{
				iVar0 = 0;
			}
		}
	}
	if (func_37(player::player_id(), 0))
	{
		iVar0 = 0;
	}
	if (func_1271())
	{
		iVar0 = 0;
	}
	if ((Global_2452483 || Global_2452482) || Global_1318055)
	{
		if (func_1277())
		{
			iVar0 = 0;
		}
	}
	Global_2452968 = 0;
	Global_2452482 = 0;
	Global_2452483 = 0;
	Global_1318055 = 0;
	Global_2452408 = 0;
	func_1269(&(Global_100680.f_1), 32);
	func_1268(512);
	func_1267(128);
	return iVar0;
}

void func_1267(int iParam0)//Position - 0x99B3F
{
	Global_100737 = (Global_100737 - (Global_100737 && iParam0));
}

void func_1268(int iParam0)//Position - 0x99B57
{
	Global_100738 = (Global_100738 - (Global_100738 && iParam0));
}

void func_1269(var uParam0, int iParam1)//Position - 0x99B6F
{
	func_1270(uParam0, iParam1);
}

void func_1270(var uParam0, var uParam1)//Position - 0x99B7F
{
	*uParam0 = (*uParam0 - (*uParam0 && uParam1));
}

bool func_1271()//Position - 0x99B94
{
	if (((Global_1574272 || Global_1574243) || func_37(player::player_id(), 0)) || func_529())
	{
		return true;
	}
	return false;
}

bool func_1272()//Position - 0x99BCB
{
	switch (func_1273())
	{
		case 15:
		case 14:
		case 11:
		case 13:
		case 12:
		case 122:
			return true;
		
		default:
	}
	return false;
}

var func_1273()//Position - 0x99C05
{
	return Global_2443860.f_1.f_2818;
}

int func_1274(int iParam0)//Position - 0x99C16
{
	return (Global_100737 && iParam0) != 0;
}

int func_1275(int iParam0)//Position - 0x99C27
{
	return (Global_100738 && iParam0) != 0;
}

int func_1276(var uParam0, int iParam1)//Position - 0x99C38
{
	return (uParam0 && iParam1) != 0;
}

bool func_1277()//Position - 0x99C47
{
	if (func_1285(Global_2454635))
	{
		return false;
	}
	if (func_1278(player::player_id(), 146))
	{
		return true;
	}
	return false;
}

int func_1278(int iParam0, int iParam1)//Position - 0x99C70
{
	if (Global_1618089[iParam0 /*390*/] == iParam1)
	{
		return func_1286(iParam0);
	}
	return false;
}

bool func_1279()//Position - 0x99C90
{
	if (func_1285(Global_2454635))
	{
		return false;
	}
	if (func_1286(player::player_id()))
	{
		return true;
	}
	return false;
}

void func_1280(int iParam0, int iParam1)//Position - 0x99CB7
{
	int iVar0;
	int iVar1;
	
	if (iParam1 == -1)
	{
		iParam1 = func_39();
	}
	switch (iParam0)
	{
		case 0:
			stats::_0x723C1CE13FBFDB67(0, iParam1);
			break;
		
		default:
			iVar1 = func_1263(iParam1);
			iVar0 = gameplay::get_profile_setting(iVar1);
			if (gameplay::is_bit_set(iVar0, iParam0))
			{
				gameplay::clear_bit(&iVar0, iParam0);
				stats::_0x723C1CE13FBFDB67(iVar0, iParam1);
			}
			break;
	}
}

int func_1281()//Position - 0x99D13
{
	return gameplay::is_bit_set(Global_1312419, 0);
}

var func_1282()//Position - 0x99D24
{
	return Global_1315198;
}

void func_1283(int iParam0, int iParam1)//Position - 0x99D30
{
	int iVar0;
	int iVar1;
	
	if (iParam1 == -1)
	{
		iParam1 = func_39();
	}
	switch (iParam0)
	{
		case 0:
			stats::_0x723C1CE13FBFDB67(0, iParam1);
			break;
		
		default:
			iVar1 = func_1263(iParam1);
			iVar0 = gameplay::get_profile_setting(iVar1);
			if (!gameplay::is_bit_set(iVar0, iParam0))
			{
				gameplay::set_bit(&iVar0, iParam0);
				stats::_0x723C1CE13FBFDB67(iVar0, iParam1);
			}
			break;
	}
}

int func_1284(int iParam0)//Position - 0x99D8D
{
	int iVar0;
	int iVar1;
	
	iVar0 = 2;
	iVar1 = 0;
	if (Global_1318079 == 1 && iVar1 == 0)
	{
		iVar0 = 0;
	}
	if (func_357())
	{
		iVar0 = 0;
	}
	if (iParam0 == 0)
	{
		if (!func_1272())
		{
			if (Global_1632166.f_86999 == 0)
			{
				iVar0 = 0;
			}
		}
	}
	if (func_37(player::player_id(), 0))
	{
		iVar0 = 0;
	}
	if (func_1271())
	{
		iVar0 = 0;
	}
	Global_2453529 = 1;
	return iVar0;
}

bool func_1285(int iParam0)//Position - 0x99DF9
{
	switch (iParam0)
	{
		case 131:
			if (Global_262145.f_9895)
			{
				return true;
			}
			break;
		
		case 132:
			if (Global_262145.f_9897)
			{
				return true;
			}
			break;
		
		case 133:
			if (Global_262145.f_9894)
			{
				return true;
			}
			break;
		
		case 136:
			if (Global_262145.f_9898)
			{
				return true;
			}
			break;
		
		case 138:
			if (Global_262145.f_9899)
			{
				return true;
			}
			break;
		
		case 139:
			if (Global_262145.f_9900)
			{
				return true;
			}
			break;
		
		case 129:
			if (Global_262145.f_9896)
			{
				return true;
			}
			break;
		
		case 140:
			if (Global_262145.f_9901)
			{
				return true;
			}
			break;
		
		case 141:
			if (Global_262145.f_9902)
			{
				return true;
			}
			break;
		
		case 144:
			if (Global_262145.f_9903)
			{
				return true;
			}
			break;
		
		case 146:
			if (Global_262145.f_9904)
			{
				return true;
			}
			break;
	}
	return false;
}

int func_1286(int iParam0)//Position - 0x99F06
{
	int iVar0;
	
	iVar0 = iParam0;
	if (iVar0 != -1)
	{
		return gameplay::is_bit_set(Global_1618089[iVar0 /*390*/].f_1, 0);
	}
	return false;
}

void func_1287(int iParam0)//Position - 0x99F2C
{
	if (!script::is_thread_active(Global_2414704.f_964) || Global_2414704.f_964 == script::get_id_of_this_thread())
	{
		if (iParam0)
		{
			Global_2414704.f_964 = script::get_id_of_this_thread();
			gameplay::set_bit(&(Global_2421621[player::player_id() /*358*/].f_69.f_2), 22);
		}
		else
		{
			Global_2414704.f_964 = -1;
			gameplay::clear_bit(&(Global_2421621[player::player_id() /*358*/].f_69.f_2), 22);
		}
	}
}

void func_1288(int iParam0, float fParam1, float fParam2, int iParam3, int iParam4, int iParam5, int iParam6)//Position - 0x99F9D
{
	int iVar0;
	
	audio::set_audio_flag("DisableFlightMusic", 1);
	if (iParam0 != 133)
	{
		audio::set_audio_flag("WantedMusicDisabled", 1);
	}
	Global_2494149.f_4618 = -1;
	iVar0 = (func_707(player::player_id(), 0) && func_706(player::player_id()));
	if (iParam6)
	{
		func_1300(21, 1);
	}
	else
	{
		func_1299(iParam0, -1);
		if (func_668(player::player_id()))
		{
			Global_1574332.f_3 = iParam0;
		}
		else
		{
			func_1298(iParam0);
		}
		Global_1574332.f_4 = -1;
		if (func_668(player::player_id()))
		{
			gameplay::set_bit(&(Global_1574332.f_1), 5);
		}
		if ((func_507() && !func_666()) || func_665(player::player_id(), 21))
		{
			gameplay::set_bit(&(Global_1574332.f_1), 4);
		}
		gameplay::clear_bit(&(Global_1574332.f_1), 17);
		gameplay::set_bit(&(Global_1574332.f_1), 20);
		if (func_1297(iParam0))
		{
			func_1296();
		}
	}
	if (!iVar0)
	{
		if (fParam1 != 1f)
		{
			func_1295(fParam1);
		}
		if (fParam2 != 1f)
		{
			player::set_wanted_level_multiplier(fParam2);
			if (iParam0 == 146)
			{
				player::set_max_wanted_level(0);
				player::set_player_wanted_level(player::player_id(), 0, 0);
				player::set_player_wanted_level_now(player::player_id(), 0);
			}
		}
		if (func_1294(iParam0))
		{
			player::set_max_wanted_level(0);
			player::set_player_wanted_level(player::player_id(), 0, 0);
			player::set_player_wanted_level_now(player::player_id(), 0);
			gameplay::set_bit(&(Global_1574332.f_1), 8);
		}
		if (iParam3)
		{
			if (!Global_2391043)
			{
				func_1239(1);
				if (func_562(0))
				{
					gameplay::set_bit(&(Global_1574332.f_1), 9);
				}
				gameplay::set_bit(&(Global_1574332.f_1), 14);
			}
		}
		if (iParam4)
		{
			func_1292(1);
			gameplay::set_bit(&(Global_1574332.f_1), 12);
		}
		if (iParam5)
		{
			func_1291();
			gameplay::set_bit(&(Global_1574332.f_1), 12);
		}
		if (!iParam6)
		{
			if (func_1289(iParam0))
			{
				gameplay::set_bit(&(Global_1574332.f_1), 21);
			}
		}
	}
	Global_2481896 = 1;
}

bool func_1289(int iParam0)//Position - 0x9A169
{
	switch (iParam0)
	{
		case 129:
		case 131:
		case 141:
		case 136:
		case 138:
		case 139:
		case 140:
		case 144:
		case 146:
			return true;
		
		default:
	}
	if (func_1290())
	{
		return true;
	}
	return false;
}

bool func_1290()//Position - 0x9A1BE
{
	switch (func_729())
	{
		case 15:
		case 16:
		case 17:
		case 18:
			return true;
		
		default:
	}
	return false;
}

void func_1291()//Position - 0x9A1EC
{
	gameplay::set_bit(&(Global_2494149.f_4609), 0);
}

void func_1292(int iParam0)//Position - 0x9A200
{
	int iVar0;
	
	if (iParam0)
	{
		Global_91538.f_8 = 1;
	}
	else
	{
		Global_91538.f_8 = 0;
	}
	iVar0 = 0;
	while (iVar0 < 46)
	{
		func_1293(iVar0);
		iVar0++;
	}
}

void func_1293(int iParam0)//Position - 0x9A237
{
	Global_91538.f_160[iParam0] = 1;
	Global_91538.f_159 = 1;
}

bool func_1294(int iParam0)//Position - 0x9A251
{
	switch (iParam0)
	{
		case 136:
		case 144:
		case 129:
			return true;
		
		case 141:
			if (func_1286(player::player_id()))
			{
				return true;
			}
			break;
	}
	return false;
}

void func_1295(float fParam0)//Position - 0x9A28F
{
	float fVar0;
	
	if (gameplay::get_hash_key(script::get_this_script_name()) == func_679())
	{
		return;
	}
	fVar0 = (Global_2494149.f_4705 - fParam0);
	if (script::is_thread_active(Global_2494149.f_4706))
	{
		if (!Global_2494149.f_4706 == script::get_id_of_this_thread() && gameplay::absf(fVar0) > 0.001f)
		{
			return;
		}
	}
	Global_2494149.f_4705 = fParam0;
	Global_2494149.f_4706 = script::get_id_of_this_thread();
}

void func_1296()//Position - 0x9A2FB
{
	Global_2421621[player::player_id() /*358*/].f_203 = 0;
	gameplay::clear_bit(&(Global_2494149.f_4424), 1);
}

bool func_1297(int iParam0)//Position - 0x9A31D
{
	switch (iParam0)
	{
		case 136:
			return true;
		
		default:
	}
	return false;
}

void func_1298(int iParam0)//Position - 0x9A337
{
	Global_1618089[player::player_id() /*390*/] = iParam0;
}

void func_1299(int iParam0, int iParam1)//Position - 0x9A34C
{
	int iVar0;
	
	if (iParam0 != -1 || iParam1 != -1)
	{
		iVar0 = iParam0;
		if (iVar0 == -1)
		{
			iVar0 = iParam1;
		}
		if (func_1259(0) || func_1259(func_1258(iVar0)))
		{
			gameplay::set_bit(&(Global_1618089[player::player_id() /*390*/].f_1), 2);
		}
		else
		{
			gameplay::clear_bit(&(Global_1618089[player::player_id() /*390*/].f_1), 2);
		}
	}
}

void func_1300(int iParam0, int iParam1)//Position - 0x9A3B2
{
	if (iParam1)
	{
		if (!gameplay::is_bit_set(Global_2421621[player::player_id() /*358*/].f_211, iParam0))
		{
			gameplay::set_bit(&(Global_2421621[player::player_id() /*358*/].f_211), iParam0);
		}
	}
	else if (gameplay::is_bit_set(Global_2421621[player::player_id() /*358*/].f_211, iParam0))
	{
		gameplay::clear_bit(&(Global_2421621[player::player_id() /*358*/].f_211), iParam0);
	}
}

bool func_1301()//Position - 0x9A415
{
	if (func_1566() == network::participant_id_to_int())
	{
		return true;
	}
	return false;
}

bool func_1302()//Position - 0x9A42D
{
	if (func_1566() == network::participant_id_to_int())
	{
		return true;
	}
	return false;
}

bool func_1303()//Position - 0x9A445
{
	if (func_1566() == network::participant_id_to_int())
	{
		return true;
	}
	return false;
}

float func_1304()//Position - 0x9A45D
{
	if (func_1566() == network::participant_id_to_int())
	{
		return 0f;
	}
	return 1f;
}

float func_1305()//Position - 0x9A475
{
	if (func_1566() == network::participant_id_to_int())
	{
		return 0f;
	}
	return 1f;
}

int func_1306(int iParam0)//Position - 0x9A48D
{
	return gameplay::is_bit_set(iLocal_2984, iParam0);
}

int func_1307(int iParam0)//Position - 0x9A49E
{
	return Global_2433082.f_2199[0 /*76*/].f_1 == iParam0;
}

int func_1308(int iParam0, char* sParam1, char* sParam2, int iParam3, int iParam4, int iParam5)//Position - 0x9A4B5
{
	struct<76> Var0;
	
	Var0.f_3 = -1;
	Var0.f_4 = -1;
	Var0.f_5 = -1;
	Var0.f_6 = -1;
	Var0.f_7 = -1082130432;
	Var0.f_69 = 1;
	Var0.f_70 = 2;
	Var0.f_75 = -1;
	func_715(iParam0, &Var0, -1, sParam2, sParam1);
	Var0.f_69 = iParam3;
	Var0.f_6 = iParam4;
	Var0.f_70 = iParam5;
	return func_709(&Var0);
}

int func_1309()//Position - 0x9A519
{
	return 21;
}

void func_1310()//Position - 0x9A523
{
	Global_2494149.f_4697 = 0;
}

void func_1311()//Position - 0x9A533
{
	Global_1354290.f_936 = 1;
}

void func_1312()//Position - 0x9A543
{
	if (iLocal_3741 == 1)
	{
		func_1313(0);
		iLocal_3741 = 0;
	}
}

void func_1313(int iParam0)//Position - 0x9A55B
{
	gameplay::clear_bit(&Global_1573332, iParam0);
}

void func_1314()//Position - 0x9A56D
{
	Global_1756720 = 1;
	if (!gameplay::is_bit_set(Global_2501502, 0))
	{
		gameplay::set_bit(&Global_2501502, 0);
		gameplay::set_bit(&Global_1756721, 0);
	}
	if (!gameplay::is_bit_set(Global_2501502, 1))
	{
		gameplay::set_bit(&Global_2501502, 1);
		gameplay::set_bit(&Global_1756721, 1);
	}
	if (!gameplay::is_bit_set(Global_2501502, 5))
	{
		gameplay::set_bit(&Global_2501502, 5);
		gameplay::set_bit(&Global_1756721, 5);
	}
	if (object::_does_door_exist(-355737150))
	{
		object::_set_door_acceleration_limit(-355737150, 0, 0, 0);
	}
	if (object::_does_door_exist(-580979506))
	{
		object::_set_door_acceleration_limit(-580979506, 0, 0, 0);
	}
	if (object::_does_door_exist(-1426452475))
	{
		object::_set_door_acceleration_limit(-1426452475, 0, 0, 0);
	}
	if (object::_does_door_exist(745417724))
	{
		object::_set_door_acceleration_limit(745417724, 0, 0, 0);
	}
	if (object::_does_door_exist(-1305304906))
	{
		object::_set_door_acceleration_limit(-1305304906, 0, 0, 0);
	}
	if (object::_does_door_exist(-1543175077))
	{
		object::_set_door_acceleration_limit(-1543175077, 0, 0, 0);
	}
	if (object::_does_door_exist(-811770997))
	{
		object::_set_door_acceleration_limit(-811770997, 0, 0, 0);
	}
}

void func_1315(int iParam0, int iParam1, int iParam2, int iParam3)//Position - 0x9A67F
{
	switch (iParam0)
	{
		case 136:
			switch (iParam1)
			{
				case 0:
					func_1316("kwUfKUus6EuQyNSL8KpY-w");
					func_1316("yMTOFLfO2UKwzKrmgPP7kg");
					func_1316("9mGvlJ1Cxk-HxC2zkAwdQg");
					break;
				
				case 2:
					func_1316("tP5HSeCA0UiHnkRzakdO2Q");
					func_1316("uEkrqoerQEmQ0uZRtp4rkw");
					func_1316("xIXaDwts7kKz0sbMnwYlCQ");
					break;
				
				case 3:
					func_1316("UOTaXepxrUOUEU7QtfBvGQ");
					break;
				
				case 6:
					func_1316("734uySYXUk2ej47Ni5jlZw");
					break;
			}
			break;
		
		case 139:
			switch (iParam1)
			{
				case 1:
					func_1316("OZ5hEthzqUSuK_x9YuO4uw");
					break;
				
				case 2:
					func_1316("uEkrqoerQEmQ0uZRtp4rkw");
					break;
			}
			break;
		
		case 138:
			switch (iParam1)
			{
				case 2:
					func_1316("lyrTwqWnP0SqGuK4GdrgDg");
					break;
				
				case 3:
					func_1316("uEkrqoerQEmQ0uZRtp4rkw");
					func_1316("92t91kL3Wkqvl2Kc82cNSA");
					func_1316("43Yoc5jfr0OwGfW9UP5TXA");
					break;
				
				case 5:
					func_1316("WfnWlxu780CwC7LLUrLljw");
					break;
				
				case 6:
					func_1316("lowxnyELLUCxqy_Q1uslIg");
					break;
				
				case 7:
					func_1316("QmlvLMLCwkOvoZlkAstYxw");
					break;
			}
			break;
		
		case 141:
			switch (iParam1)
			{
				case 0:
					func_1316("TT4ifq2kgEG6G1fCUYHXSQ");
					break;
			}
			break;
		
		case 134:
			switch (iParam1)
			{
				case 1:
					func_1316("QmlvLMLCwkOvoZlkAstYxw");
					break;
				
				case 4:
					func_1316("fOfm7nzMLkav0ldcSCNAzA");
					func_1316("JMbOeJ2-ak-02KwNLtnOJg");
					break;
				
				case 5:
					func_1316("3AAj-muvN0iHI5IMyGlboA");
					break;
				
				case 0:
					func_1316("lyrTwqWnP0SqGuK4GdrgDg");
					break;
				
				case 9:
					func_1316("Ma78E44OMkGfYPmCPZXUNA");
					func_1316("Pqz3l_Dhg0ar0yHiz2wMqQ");
					break;
				
				case 19:
					func_1316("ZmoxEY6L60WSR-7I5IUjPg");
					break;
				
				case 10:
					func_1316("gxmtJHj2OUWQDt8nNMy3TQ");
					break;
			}
			break;
		
		case 140:
			switch (iParam1)
			{
				case 0:
					switch (iParam2)
					{
						case 0:
							func_1316("lowxnyELLUCxqy_Q1uslIg");
							break;
					}
					break;
				
				case 1:
					switch (iParam2)
					{
						case 2:
							func_1316("dCWpYaU7CU-Bxz5s2qGjaA");
							break;
					}
					break;
				
				case 2:
					func_1316("QmlvLMLCwkOvoZlkAstYxw");
					break;
				
				case 3:
					switch (iParam2)
					{
						case 1:
							func_1316("Cl3Gh6-LMkuZ7Z_jPqSE8g");
							break;
						
						case 2:
							func_1316("TT4ifq2kgEG6G1fCUYHXSQ");
							break;
					}
					break;
				
				case 4:
					func_1316("A0vXbIK2WEmiVSUNYRGpvA");
					switch (iParam2)
					{
						case 2:
							func_1316("3AAj-muvN0iHI5IMyGlboA");
							break;
					}
					break;
			}
			break;
		
		case 129:
			switch (iParam1)
			{
				case 0:
					switch (iParam2)
					{
						case 0:
							func_1316("kXry-nXRbEC6ktiopjDDcg");
							break;
						
						case 1:
							func_1316("JCMcBpPl9UWmcdOYFza0Tg");
							break;
						
						case 2:
							func_1316("ZmoxEY6L60WSR-7I5IUjPg");
							break;
						
						case 3:
							func_1316("fOfm7nzMLkav0ldcSCNAzA");
							func_1316("JMbOeJ2-ak-02KwNLtnOJg");
							break;
					}
					break;
				
				case 1:
					switch (iParam2)
					{
						case 0:
							func_1316("OZ5hEthzqUSuK_x9YuO4uw");
							break;
						
						case 1:
							func_1316("lyrTwqWnP0SqGuK4GdrgDg");
							break;
					}
					break;
				
				case 2:
					switch (iParam2)
					{
						case 0:
							func_1316("QmlvLMLCwkOvoZlkAstYxw");
							break;
						
						case 2:
							func_1316("yMTOFLfO2UKwzKrmgPP7kg");
							break;
					}
					break;
				
				case 3:
					switch (iParam2)
					{
						case 3:
							func_1316("xIXaDwts7kKz0sbMnwYlCQ");
							break;
					}
					break;
				
				case 4:
					switch (iParam2)
					{
						case 1:
							func_1316("gaJhsFMzFkyl3al5SRa6fQ");
							break;
					}
					break;
				
				case 5:
					switch (iParam2)
					{
						case 1:
							func_1316("JCMcBpPl9UWmcdOYFza0Tg");
							break;
						
						case 2:
							func_1316("ZmoxEY6L60WSR-7I5IUjPg");
							break;
						
						case 3:
							func_1316("fOfm7nzMLkav0ldcSCNAzA");
							func_1316("JMbOeJ2-ak-02KwNLtnOJg");
							break;
					}
					break;
				
				case 6:
					switch (iParam2)
					{
						case 0:
							func_1316("OZ5hEthzqUSuK_x9YuO4uw");
							break;
						
						case 1:
							func_1316("lyrTwqWnP0SqGuK4GdrgDg");
							break;
					}
					break;
				
				case 7:
					switch (iParam2)
					{
						case 0:
							func_1316("QmlvLMLCwkOvoZlkAstYxw");
							break;
						
						case 2:
							func_1316("yMTOFLfO2UKwzKrmgPP7kg");
							break;
					}
					break;
				
				case 8:
					switch (iParam2)
					{
						case 3:
							func_1316("xIXaDwts7kKz0sbMnwYlCQ");
							break;
					}
					break;
			}
			break;
		
		case 131:
			switch (iParam3)
			{
				case 0:
					switch (iParam1)
					{
						case 0:
							switch (iParam2)
							{
								case 1:
									func_1316("UOTaXepxrUOUEU7QtfBvGQ");
									break;
								
								case 2:
									func_1316("xIXaDwts7kKz0sbMnwYlCQ");
									break;
							}
							break;
						
						case 1:
							switch (iParam2)
							{
								case 0:
									func_1316("kXry-nXRbEC6ktiopjDDcg");
									break;
								
								case 2:
									func_1316("QmlvLMLCwkOvoZlkAstYxw");
									break;
								
								case 3:
									func_1316("gxmtJHj2OUWQDt8nNMy3TQ");
									break;
								
								case 4:
									func_1316("A0vXbIK2WEmiVSUNYRGpvA");
									break;
							}
							break;
						
						case 2:
							switch (iParam2)
							{
								case 0:
									func_1316("dCWpYaU7CU-Bxz5s2qGjaA");
									break;
								
								case 2:
									func_1316("aGBjo2rKi0yMDLl3a2ATGA");
									func_1316("yMTOFLfO2UKwzKrmgPP7kg");
									break;
								
								case 3:
									func_1316("lhGatLUmgke_87surSFS5g");
									break;
							}
							break;
						
						case 3:
							switch (iParam2)
							{
								case 1:
									func_1316("VmS_SI5wSE2LuL9qItQqbw");
									break;
								
								case 4:
									func_1316("f2lnL6wZPkGWUowu0yLm1Q");
									func_1316("ZmoxEY6L60WSR-7I5IUjPg");
									break;
							}
							break;
						
						case 4:
							switch (iParam2)
							{
								case 1:
									func_1316("Ma78E44OMkGfYPmCPZXUNA");
									break;
								
								case 2:
									func_1316("TT4ifq2kgEG6G1fCUYHXSQ");
									break;
							}
							break;
						
						case 5:
							switch (iParam2)
							{
								case 0:
									func_1316("W-OJzHlM-0ym9PsIASYZtw");
									func_1316("uEkrqoerQEmQ0uZRtp4rkw");
									break;
								
								case 1:
									func_1316("3AAj-muvN0iHI5IMyGlboA");
									break;
								
								case 3:
									func_1316("TjGz31AMYE6bGCjAIitu6w");
									func_1316("A0vXbIK2WEmiVSUNYRGpvA");
									break;
							}
							break;
						
						case 6:
							switch (iParam2)
							{
								case 2:
									func_1316("QmlvLMLCwkOvoZlkAstYxw");
									func_1316("BktATxH9R0Wp2x0kWSbqjw");
									break;
								
								case 3:
									func_1316("BktATxH9R0Wp2x0kWSbqjw");
									func_1316("kXry-nXRbEC6ktiopjDDcg");
									break;
								
								case 4:
									func_1316("f2lnL6wZPkGWUowu0yLm1Q");
									break;
							}
							break;
					}
					break;
				
				case 1:
					switch (iParam1)
					{
						case 0:
							switch (iParam2)
							{
								case 1:
									func_1316("kXry-nXRbEC6ktiopjDDcg");
									break;
								
								case 3:
									func_1316("PY8hdiWoAkudg9SpK8G2xQ");
									break;
							}
							break;
						
						case 1:
							switch (iParam2)
							{
								case 0:
									func_1316("TT4ifq2kgEG6G1fCUYHXSQ");
									break;
								
								case 1:
									func_1316("9mGvlJ1Cxk-HxC2zkAwdQg");
									break;
								
								case 2:
									func_1316("tP5HSeCA0UiHnkRzakdO2Q");
									break;
								
								case 3:
									func_1316("kXry-nXRbEC6ktiopjDDcg");
									break;
							}
							break;
						
						case 2:
							switch (iParam2)
							{
								case 3:
									func_1316("Cl3Gh6-LMkuZ7Z_jPqSE8g");
									break;
							}
							break;
					}
					break;
				
				case 2:
					switch (iParam1)
					{
						case 0:
							switch (iParam2)
							{
								case 0:
									func_1316("Pqz3l_Dhg0ar0yHiz2wMqQ");
									break;
							}
							break;
						
						case 4:
							switch (iParam2)
							{
								case 4:
									func_1316("W-OJzHlM-0ym9PsIASYZtw");
									break;
							}
							break;
					}
					break;
			}
			break;
	}
}

void func_1316(char* sParam0)//Position - 0x9AE65
{
	int iVar0;
	int iVar1;
	
	if (gameplay::is_string_null_or_empty(sParam0))
	{
		return;
	}
	iVar0 = gameplay::get_hash_key(sParam0);
	iVar1 = 0;
	iVar1 = 0;
	while (iVar1 < Global_1311741)
	{
		if (gameplay::is_bit_set(Global_2359719[iVar1 /*26*/].f_12, 11))
		{
			if (func_1317(&(Global_2359719[iVar1 /*26*/].f_15)) == iVar0)
			{
				if (!gameplay::is_bit_set(Global_2359719[iVar1 /*26*/].f_13, 26))
				{
					gameplay::set_bit(&(Global_2359719[iVar1 /*26*/].f_13), 26);
				}
				return;
			}
		}
		iVar1++;
	}
}

int func_1317(var uParam0)//Position - 0x9AEE9
{
	struct<13> Var0;
	int iVar13;
	int iVar14;
	
	Var0.f_2 = -1;
	Var0.f_5 = -1;
	Var0.f_6 = -1;
	Var0.f_12 = -1;
	iVar13 = 0;
	iVar14 = func_1319(uParam0);
	if (iVar14 == -1)
	{
		return iVar13;
	}
	switch (uParam0->f_2)
	{
		case 63:
			Var0 = { func_1318(uParam0) };
			return Var0.f_1;
		
		case 62:
			return iVar13;
		
		default:
	}
	return iVar13;
}

struct<13> func_1318(var uParam0)//Position - 0x9AF50
{
	struct<13> Var0;
	int iVar13;
	
	Var0.f_2 = -1;
	Var0.f_5 = -1;
	Var0.f_6 = -1;
	Var0.f_12 = -1;
	iVar13 = func_1319(uParam0);
	if (iVar13 == -1)
	{
		return Var0;
	}
	switch (uParam0->f_2)
	{
		case 63:
			return Global_794643.f_98389[iVar13 /*13*/];
		
		case 62:
			return Global_907640.f_18805[iVar13 /*13*/];
		
		default:
	}
	return Var0;
}

int func_1319(var uParam0)//Position - 0x9AFC7
{
	int iVar0;
	
	if (gameplay::is_string_null_or_empty(&(uParam0->f_3)))
	{
		return -1;
	}
	if (func_1321(uParam0->f_1))
	{
		if (func_1320(uParam0))
		{
			return 9999;
		}
		return -1;
	}
	iVar0 = 0;
	switch (uParam0->f_2)
	{
		case 63:
			if (gameplay::is_bit_set(Global_794643.f_4[uParam0->f_1 /*88*/].f_76, 13))
			{
				if (gameplay::are_strings_equal(&(Global_794643.f_4[uParam0->f_1 /*88*/]), &(uParam0->f_3)))
				{
					return uParam0->f_1;
				}
			}
			if (!gameplay::is_bit_set(Global_794643.f_4[uParam0->f_1 /*88*/].f_76, 13))
			{
				if (Global_1310987.f_5)
				{
					return -1;
				}
			}
			iVar0 = 0;
			while (iVar0 < 1118)
			{
				if (gameplay::is_bit_set(Global_794643.f_4[iVar0 /*88*/].f_76, 13))
				{
					if (gameplay::are_strings_equal(&(Global_794643.f_4[iVar0 /*88*/]), &(uParam0->f_3)))
					{
						uParam0->f_1 = iVar0;
						return iVar0;
					}
				}
				iVar0++;
			}
			return -1;
		
		case 62:
			if (gameplay::is_bit_set(Global_907640.f_1204[uParam0->f_1 /*88*/].f_76, 13))
			{
				if (gameplay::are_strings_equal(&(Global_907640.f_1204[uParam0->f_1 /*88*/]), &(uParam0->f_3)))
				{
					return uParam0->f_1;
				}
			}
			if (!gameplay::is_bit_set(Global_907640.f_1204[uParam0->f_1 /*88*/].f_76, 13))
			{
				if (Global_1310987.f_5)
				{
					return -1;
				}
			}
			iVar0 = 0;
			while (iVar0 < 200)
			{
				if (gameplay::is_bit_set(Global_907640.f_1204[iVar0 /*88*/].f_76, 13))
				{
					if (gameplay::are_strings_equal(&(Global_907640.f_1204[iVar0 /*88*/]), &(uParam0->f_3)))
					{
						uParam0->f_1 = iVar0;
						return iVar0;
					}
				}
				iVar0++;
			}
			return -1;
		
		case 40:
			return uParam0->f_1;
		
		default:
	}
	if (uParam0->f_2 == player::player_id())
	{
		if (gameplay::is_bit_set(Global_950886.f_5[uParam0->f_1 /*88*/].f_76, 13))
		{
			if (gameplay::are_strings_equal(&(Global_950886.f_5[uParam0->f_1 /*88*/]), &(uParam0->f_3)))
			{
				return uParam0->f_1;
			}
		}
		if (gameplay::is_bit_set(Global_950886.f_5[uParam0->f_1 /*88*/].f_76, 13))
		{
			if (Global_1310987.f_5)
			{
				return -1;
			}
		}
		iVar0 = 0;
		while (iVar0 < 62)
		{
			if (gameplay::is_bit_set(Global_950886.f_5[iVar0 /*88*/].f_76, 13))
			{
				if (gameplay::are_strings_equal(&(Global_950886.f_5[iVar0 /*88*/]), &(uParam0->f_3)))
				{
					uParam0->f_1 = iVar0;
					return iVar0;
				}
			}
			iVar0++;
		}
		return -1;
	}
	else if (uParam0->f_2 < 32)
	{
		return -1;
	}
	return -1;
}

bool func_1320(var uParam0)//Position - 0x9B237
{
	if (Global_2398050)
	{
		if (gameplay::are_strings_equal(&(Global_2398050.f_1), &(uParam0->f_3)))
		{
			return true;
		}
	}
	return false;
}

int func_1321(int iParam0)//Position - 0x9B25C
{
	return iParam0 == 9999;
}

int func_1322()//Position - 0x9B26A
{
	switch (func_16())
	{
		case 0:
			return func_15();
		
		case 1:
			return func_14();
		
		case 2:
			return func_13();
		
		case 3:
			return func_12();
		
		default:
	}
	return 0;
}

void func_1323(int iParam0, char* sParam1, int iParam2, int iParam3, int iParam4, int iParam5, int iParam6, int iParam7, int iParam8, int iParam9, int iParam10, int iParam11, int iParam12, int iParam13, int iParam14, int iParam15, int iParam16)//Position - 0x9B2B0
{
	int iVar0;
	int iVar1;
	
	iVar0 = -1;
	iVar1 = 0;
	while (iVar1 <= 9)
	{
		if (iVar0 == -1)
		{
			if (func_723(7, iVar1) == 0)
			{
				iVar0 = iVar1;
			}
		}
		iVar1++;
	}
	if (iVar0 > -1)
	{
		Global_1354290.f_1 = 1;
		func_722(7, iVar0);
		Global_1354290.f_4131[iVar0] = iParam0;
		StringCopy(&(Global_1354290.f_4131.f_11[iVar0 /*16*/]), sParam1, 64);
		Global_1354290.f_4131.f_172[iVar0] = iParam2;
		Global_1354290.f_4131.f_216[iVar0] = iParam3;
		Global_1354290.f_4131.f_183[iVar0] = iParam4;
		Global_1354290.f_4131.f_194[iVar0] = iParam5;
		Global_1354290.f_4131.f_249[iVar0] = iParam6;
		Global_1354290.f_4131.f_260[iVar0] = iParam7;
		Global_1354290.f_4131.f_205[iVar0] = iParam8;
		Global_1354290.f_4131.f_314[iVar0] = iParam9;
		Global_1354290.f_4131.f_325[iVar0] = iParam10;
		Global_1354290.f_4131.f_357[iVar0] = iParam11;
		Global_1354290.f_4131.f_238[iVar0] = iParam12;
		Global_1354290.f_4131.f_271[iVar0] = iParam13;
		Global_1354290.f_4131.f_368[iVar0] = iParam14;
		Global_1354290.f_4131.f_379[iVar0] = iParam15;
		Global_1354290.f_4131.f_390[iVar0] = iParam16;
	}
}

char* func_1324(int iParam0)//Position - 0x9B3FE
{
	char* sVar0;
	
	sVar0 = script::get_this_script_name();
	return "HUD_STARTING";
	if (gameplay::are_strings_equal(sVar0, "am_hot_target"))
	{
		return "AST_HOT_TARG";
	}
	else if (gameplay::are_strings_equal(sVar0, "am_cp_collection"))
	{
		return "AST_CHK_COLL";
	}
	else if (gameplay::are_strings_equal(sVar0, "am_challenges"))
	{
		switch (iParam0)
		{
			case 0:
				return "AST_CHALL_LJ";
			
			case 1:
				return "AST_CHALL_LS";
			
			case 2:
				return "AST_CHALL_HS";
			
			case 3:
				return "AST_CHALL_LST";
			
			case 4:
				return "AST_CHALL_LW";
			
			case 5:
				return "AST_CHALL_NC";
			
			case 6:
				return "AST_CHALL_LP";
			
			case 7:
				return "AST_CHALL_VS";
			
			case 8:
				return "AST_CHALL_NM";
			
			case 9:
				return "AST_CHALL_RD";
			
			case 10:
				return "AST_CHALL_LF";
			
			case 11:
				return "AST_CHALL_LFL";
			
			case 12:
				return "AST_CHALL_LFI";
			
			case 13:
				return "AST_CHALL_LB";
			
			case 14:
				return "AST_CHALL_MB";
			
			case 15:
				return "AST_CHALL_HSH";
			
			case 16:
				return "AST_CHALL_DB";
			
			case 17:
				return "AST_CHALL_ML";
			
			case 18:
				return "AST_CHALL_LSN";
			
			default:
		}
	}
	else if (gameplay::are_strings_equal(sVar0, "am_penned_in"))
	{
		return "AST_PENNED";
	}
	else if (gameplay::are_strings_equal(sVar0, "am_pass_the_parcel"))
	{
		return "AST_PARCEL";
	}
	else if (gameplay::are_strings_equal(sVar0, "am_hot_property"))
	{
		return "AST_PROPERTY";
	}
	else if (gameplay::are_strings_equal(sVar0, "am_dead_drop"))
	{
		return "AST_DDROP";
	}
	else if (gameplay::are_strings_equal(sVar0, "am_king_of_the_castle"))
	{
		return "AST_KCASTLE";
	}
	else if (gameplay::are_strings_equal(sVar0, "AM_CRIMINAL_DAMAGE"))
	{
		return "AST_BLAST";
	}
	else if (gameplay::are_strings_equal(sVar0, "AM_KILL_LIST"))
	{
		return "AST_UWARF";
	}
	else if (gameplay::are_strings_equal(sVar0, "AM_HUNT_THE_BEAST"))
	{
		return "AST_BEAST";
	}
	return "";
}

void func_1325(int iParam0)//Position - 0x9B631
{
	if (IntToFloat(iParam0) < gameplay::get_frame_time())
	{
		Global_2494149.f_4608 = 0;
	}
	else if (iParam0 < 6000)
	{
		if (!gameplay::is_bit_set(Global_2494149.f_4608, 1))
		{
			audio::play_sound_frontend(-1, "5s_To_Event_Start_Countdown", "GTAO_FM_Events_Soundset", 0);
			Global_2494149.f_4608 = 0;
			gameplay::set_bit(&(Global_2494149.f_4608), 1);
		}
	}
}

void func_1326(int iParam0)//Position - 0x9B68B
{
	unk_0xB9C362BABECDDC7A(3, 21, 200, 0, 0);
	if (iParam0 && !func_1249())
	{
		audio::play_sound_frontend(-1, "Event_Message_Purple", "GTAO_FM_Events_Soundset", 0);
	}
}

void func_1327(char* sParam0, int iParam1)//Position - 0x9B6BC
{
	ui::_set_text_component_format(sParam0);
	ui::_display_help_text_from_string_label(0, 0, false, iParam1);
}

bool func_1328(int iParam0, int iParam1)//Position - 0x9B6D3
{
	int iVar0;
	
	iVar0 = func_697(iParam0);
	if (iVar0 == -1)
	{
		return false;
	}
	if (!player::is_player_playing(player::get_player_index()))
	{
		return false;
	}
	if (func_391(0))
	{
		return false;
	}
	if (cutscene::is_cutscene_playing())
	{
		return false;
	}
	if (iVar0 > -1 && iVar0 < 6)
	{
		if (Global_36480[iVar0 /*32*/] == 1 && Global_36480[iVar0 /*32*/].f_4 == 1)
		{
			if (iParam1)
			{
				if (Global_36480[iVar0 /*32*/].f_29)
				{
					return false;
				}
			}
			Global_36480[iVar0 /*32*/].f_5 = 1;
			Global_36480[iVar0 /*32*/].f_29 = 1;
			return true;
		}
		else
		{
			if (Global_36480[iVar0 /*32*/] == 0)
			{
			}
			if (Global_36480[iVar0 /*32*/].f_7)
			{
			}
		}
	}
	return false;
}

int func_1329(int iParam0, int iParam1)//Position - 0x9B78B
{
	int iVar0;
	int iVar1;
	
	iVar0 = func_697(iParam0);
	if (iParam1 == 0)
	{
		if (iVar0 == -1)
		{
			return 0;
		}
	}
	else
	{
		iVar0 = iParam0;
	}
	if (iVar0 < 0)
	{
		return 0;
	}
	if (Global_36480[iVar0 /*32*/].f_6)
	{
		return 0;
	}
	iVar1 = 0;
	if (!Global_36480[iVar0 /*32*/].f_12)
	{
		ui::_0x0A24DA3A41B718F5(&(Global_36480[iVar0 /*32*/].f_8));
		ui::_add_text_component_item_string(&Global_36675);
		iVar1 = ui::_0x10BDDBFC529428DD(0);
	}
	else
	{
		ui::_0x0A24DA3A41B718F5(&(Global_36480[iVar0 /*32*/].f_8));
		ui::_add_text_component_item_string(&Global_36675);
		if (Global_36480[iVar0 /*32*/].f_30)
		{
			ui::add_text_component_substring_player_name(&(Global_36480[iVar0 /*32*/].f_13));
		}
		else
		{
			ui::_add_text_component_item_string(&(Global_36480[iVar0 /*32*/].f_13));
		}
		iVar1 = ui::_0x10BDDBFC529428DD(0);
	}
	return iVar1;
}

bool func_1330(int iParam0)//Position - 0x9B840
{
	char* sVar0;
	
	switch (iParam0)
	{
		case 1:
			sVar0 = "AMHB_PASSIVE";
			break;
		
		case 2:
			sVar0 = "AMHB_HELIGUN";
			break;
		
		case 3:
			sVar0 = "AMHB_LUXOR";
			break;
		
		case 4:
			sVar0 = "AMHB_BOB";
			break;
		
		case 11:
			sVar0 = "AMHB_HKR";
			break;
		
		case 13:
			sVar0 = "AMHB_PLANE";
			break;
		
		case 16:
			sVar0 = "AMHB_STRIP";
			break;
		
		case 17:
			sVar0 = "AMHB_OFFICE";
			break;
		
		case 18:
			sVar0 = "AMHB_WHOUSE";
			break;
	}
	if (gameplay::is_string_null_or_empty(sVar0))
	{
		return true;
	}
	if (!ui::is_help_message_being_displayed() && !func_1249())
	{
		func_1327(sVar0, 30000);
		func_1326(0);
		audio::play_sound_frontend(-1, "Event_Start_Text", "GTAO_FM_Events_Soundset", 0);
		return true;
	}
	return false;
}

void func_1331(int iParam0, int iParam1, char* sParam2, int iParam3, char* sParam4, int iParam5, int iParam6)//Position - 0x9B921
{
	int iVar0;
	
	if (script::_get_number_of_instances_of_streamed_script(joaat("context_controller")) < 1)
	{
	}
	if (streaming::is_player_switch_in_progress())
	{
		if (!*iParam0 == -1)
		{
			func_696(iParam0);
		}
		return;
	}
	if (!*iParam0 == -1)
	{
		return;
	}
	iVar0 = 0;
	iVar0 = 0;
	while (iVar0 < 6)
	{
		if (!Global_36480[iVar0 /*32*/])
		{
			Global_36480[iVar0 /*32*/] = 1;
			Global_36480[iVar0 /*32*/].f_1 = Global_36681;
			Global_36681++;
			Global_36480[iVar0 /*32*/].f_4 = 0;
			Global_36480[iVar0 /*32*/].f_29 = 0;
			Global_36480[iVar0 /*32*/].f_5 = 0;
			Global_36480[iVar0 /*32*/].f_2 = iParam1;
			StringCopy(&(Global_36480[iVar0 /*32*/].f_8), sParam2, 16);
			Global_36480[iVar0 /*32*/].f_6 = iParam3;
			Global_36480[iVar0 /*32*/].f_31 = script::get_id_of_this_thread();
			Global_36480[iVar0 /*32*/].f_7 = 0;
			Global_36480[iVar0 /*32*/].f_3 = iParam5;
			if (!gameplay::is_string_null_or_empty(sParam4))
			{
				Global_36480[iVar0 /*32*/].f_12 = 1;
				StringCopy(&(Global_36480[iVar0 /*32*/].f_13), sParam4, 64);
				Global_36480[iVar0 /*32*/].f_30 = iParam6;
			}
			else
			{
				Global_36480[iVar0 /*32*/].f_12 = 0;
				Global_36480[iVar0 /*32*/].f_30 = 0;
			}
			*iParam0 = Global_36480[iVar0 /*32*/].f_1;
			return;
		}
		iVar0++;
	}
}

int func_1332()//Position - 0x9BA4C
{
	if (func_1424(0, network::participant_id_to_int()))
	{
		return 14;
	}
	if (gameplay::is_bit_set(iLocal_3732, player::player_id()))
	{
		return 5;
	}
	if (!cam::is_screen_faded_in())
	{
		return 6;
	}
	if (gameplay::is_bit_set(Global_1589933[player::player_id() /*601*/].f_257.f_13, 14))
	{
		return 7;
	}
	if (func_1341(player::player_id(), 1, 0))
	{
		return 12;
	}
	if (Global_25335)
	{
		return 11;
	}
	if (network::network_is_in_mp_cutscene())
	{
		return 8;
	}
	if (func_1340())
	{
		return 4;
	}
	if (func_1339())
	{
		return 3;
	}
	if (func_1337())
	{
		return 2;
	}
	if (func_1336(player::player_id()))
	{
		return 1;
	}
	if (func_1335(player::player_ped_id()))
	{
		return 9;
	}
	if (ui::is_hud_component_active(19))
	{
		return 10;
	}
	if (func_1334())
	{
		return 13;
	}
	if (Global_2494149.f_4708)
	{
		return 15;
	}
	if (func_1306(2))
	{
		return 16;
	}
	if (func_54(player::player_id()))
	{
		return 17;
	}
	if (func_52(player::player_id()))
	{
		return 18;
	}
	if (func_51(player::player_id()))
	{
		return 19;
	}
	if (Global_2452510.f_131 || func_1333())
	{
		return 20;
	}
	return 0;
}

var func_1333()//Position - 0x9BB88
{
	return Global_2452510;
}

bool func_1334()//Position - 0x9BB94
{
	int iVar0;
	int iVar1;
	
	if (gameplay::is_bit_set(iLocal_3731, network::participant_id_to_int()))
	{
		if (!gameplay::is_bit_set(iLocal_3732, Local_2985[network::participant_id_to_int() /*18*/].f_1))
		{
			if (ped::is_ped_in_any_plane(player::player_ped_id()))
			{
				iVar0 = ped::get_vehicle_ped_is_using(player::player_ped_id());
				if (entity::does_entity_exist(iVar0))
				{
					if (vehicle::is_vehicle_driveable(iVar0, 0))
					{
						iVar1 = entity::get_entity_model(iVar0);
						if (iVar1 == joaat("hydra"))
						{
							return true;
						}
					}
				}
			}
		}
	}
	return false;
}

bool func_1335(int iParam0)//Position - 0x9BBFF
{
	int iVar0;
	
	if (cam::is_first_person_aim_cam_active())
	{
		if (!ped::is_ped_injured(iParam0))
		{
			weapon::get_current_ped_weapon(iParam0, &iVar0, 1);
			if ((iVar0 == joaat("weapon_sniperrifle") || iVar0 == joaat("weapon_heavysniper")) || iVar0 == joaat("weapon_marksmanrifle"))
			{
				return true;
			}
		}
	}
	return false;
}

int func_1336(int iParam0)//Position - 0x9BC4E
{
	if (iParam0 == player::player_id())
	{
		return func_507();
	}
	return gameplay::is_bit_set(Global_1352862.f_241.f_136[func_126(10) /*33*/][iParam0], func_121(10));
}

bool func_1337()//Position - 0x9BC84
{
	int iVar0;
	int iVar1;
	var uVar2;
	
	if (gameplay::is_bit_set(iLocal_3731, network::participant_id_to_int()))
	{
		if (!gameplay::is_bit_set(iLocal_3732, Local_2985[network::participant_id_to_int() /*18*/].f_1))
		{
			if (ped::is_ped_in_any_heli(player::player_ped_id()))
			{
				iVar0 = ped::get_vehicle_ped_is_using(player::player_ped_id());
				if (entity::does_entity_exist(iVar0))
				{
					if (vehicle::is_vehicle_driveable(iVar0, 0))
					{
						iVar1 = entity::get_entity_model(iVar0);
						if (func_1338(iVar1, &uVar2))
						{
							return true;
						}
					}
				}
			}
		}
	}
	return false;
}

bool func_1338(int iParam0, var uParam1)//Position - 0x9BCF0
{
	switch (iParam0)
	{
		case joaat("buzzard"):
			return true;
			break;
		
		case joaat("buzzard2"):
			return true;
			break;
		
		case joaat("polmav"):
			return true;
			break;
		
		case joaat("frogger"):
			return true;
			break;
		
		case joaat("maverick"):
			return true;
			break;
		
		case joaat("annihilator"):
			return true;
			break;
		
		case joaat("valkyrie"):
			*uParam1 = 1;
			return true;
			break;
		
		case joaat("savage"):
			return true;
			break;
	}
	return false;
}

bool func_1339()//Position - 0x9BD6C
{
	int iVar0;
	int iVar1;
	
	if (gameplay::is_bit_set(iLocal_3731, network::participant_id_to_int()))
	{
		if (!gameplay::is_bit_set(iLocal_3732, Local_2985[network::participant_id_to_int() /*18*/].f_1))
		{
			if (ped::is_ped_in_any_plane(player::player_ped_id()))
			{
				iVar0 = ped::get_vehicle_ped_is_using(player::player_ped_id());
				if (entity::does_entity_exist(iVar0))
				{
					if (vehicle::is_vehicle_driveable(iVar0, 0))
					{
						iVar1 = entity::get_entity_model(iVar0);
						if (iVar1 == joaat("luxor") || iVar1 == joaat("luxor2"))
						{
							return true;
						}
					}
				}
			}
		}
	}
	return false;
}

bool func_1340()//Position - 0x9BDE6
{
	int iVar0;
	int iVar1;
	
	if (gameplay::is_bit_set(iLocal_3731, network::participant_id_to_int()))
	{
		if (!gameplay::is_bit_set(iLocal_3732, Local_2985[network::participant_id_to_int() /*18*/].f_1))
		{
			if (ped::is_ped_in_any_heli(player::player_ped_id()))
			{
				iVar0 = ped::get_vehicle_ped_is_using(player::player_ped_id());
				if (entity::does_entity_exist(iVar0))
				{
					if (vehicle::is_vehicle_driveable(iVar0, 0))
					{
						if (vehicle::get_ped_in_vehicle_seat(iVar0, -1, 0) == player::player_ped_id())
						{
							iVar1 = entity::get_entity_model(iVar0);
							if ((iVar1 == joaat("cargobob") || iVar1 == joaat("cargobob2")) || iVar1 == joaat("cargobob3"))
							{
								return true;
							}
						}
					}
				}
			}
		}
	}
	return false;
}

bool func_1341(int iParam0, int iParam1, int iParam2)//Position - 0x9BE7D
{
	if (iParam0 == func_45())
	{
		return false;
	}
	if (gameplay::is_bit_set(Global_1589933[iParam0 /*601*/].f_257.f_13, 0))
	{
		return true;
	}
	if (iParam1)
	{
		if (gameplay::is_bit_set(Global_1589933[iParam0 /*601*/].f_257.f_13, 1))
		{
			return true;
		}
	}
	if (iParam2)
	{
		if (Global_2421621[iParam0 /*358*/].f_312.f_1 != -1)
		{
			return true;
		}
	}
	return false;
}

void func_1342()//Position - 0x9BEE7
{
	if (!func_1343(0))
	{
		iLocal_3741 = 0;
		if (func_671(&(Local_653.f_1.f_4)))
		{
			if (func_57(&(Local_653.f_1.f_4), (Global_262145.f_9719 - 2000), 0))
			{
				func_738(0);
				iLocal_3741 = 1;
			}
		}
	}
}

int func_1343(int iParam0)//Position - 0x9BF2D
{
	return gameplay::is_bit_set(Global_1573332, iParam0);
}

void func_1344(int iParam0)//Position - 0x9BF3F
{
	if (iParam0)
	{
		gameplay::set_bit(&(Global_1618089[player::player_id() /*390*/].f_1), 4);
	}
	else
	{
		gameplay::clear_bit(&(Global_1618089[player::player_id() /*390*/].f_1), 4);
	}
}

int func_1345(int iParam0)//Position - 0x9BF73
{
	return gameplay::is_bit_set(Global_1618089[iParam0 /*390*/].f_1, 4);
}

void func_1346(int iParam0)//Position - 0x9BF8B
{
	Global_2494149.f_4707 = iParam0;
}

void func_1347()//Position - 0x9BF9C
{
	struct<2> Var0;
	char* sVar2;
	int iVar3;
	
	Var0 = { func_680() };
	sVar2 = func_428(&Var0);
	if ((func_1371(0, 0) || iLocal_3739 == -1) || func_507())
	{
		func_673();
		return;
	}
	if (func_1566() != -1)
	{
		if (gameplay::is_bit_set(iLocal_3731, func_1566()))
		{
			if (gameplay::is_bit_set(iLocal_3730, func_40()))
			{
				if (!gameplay::is_bit_set(iLocal_3732, func_40()))
				{
					switch (iLocal_755)
					{
						case 0:
							if (func_669(23))
							{
								iLocal_755 = 1;
							}
							else if (func_669(24))
							{
								iLocal_652 = func_1362();
								iLocal_755 = 1;
							}
							else if (func_669(25))
							{
								iLocal_755 = 1;
							}
							else
							{
								func_675();
							}
							break;
						
						case 1:
							if (func_1566() == network::participant_id_to_int())
							{
								func_1361();
								if (!ui::does_blip_exist(iLocal_4936))
								{
									iLocal_4936 = ui::add_blip_for_coord(func_640(player::player_id()));
									ui::set_blip_priority(iLocal_4936, 13);
									ui::set_blip_as_short_range(iLocal_4936, false);
									ui::set_blip_sprite(iLocal_4936, 442);
									func_1360(&iLocal_4936, 21);
									func_58(&uLocal_3761, 0, 0);
									ui::set_blip_coords(iLocal_4936, func_640(player::player_id()));
									ui::set_blip_name_from_text_file(iLocal_4936, sVar2);
									iLocal_755 = 2;
								}
							}
							else
							{
								func_686(func_40(), 0);
								if (func_1359(func_40()))
								{
									func_1357(func_40(), func_1358(21), 1);
								}
								func_685(func_40(), 1);
								func_1356(func_40(), 1, 1);
								func_683(func_40(), 442, 1);
								func_682(func_40(), 1f, 1);
								func_681(func_40(), 1);
								func_676(func_40(), func_680(), 1);
								func_1559(26);
								if (!func_669(21))
								{
									func_1348(func_40(), 1, iLocal_652);
									func_1559(21);
								}
								else if (func_736(func_40()))
								{
									if (!func_669(25) && !func_669(24))
									{
										if (!func_1371(0, 0))
										{
											func_717("AMHB_RDRTICK", 1);
										}
									}
									iLocal_755 = 2;
								}
							}
							break;
						
						case 2:
							if (func_1566() == network::participant_id_to_int())
							{
								if (func_671(&uLocal_3761))
								{
									if (func_57(&uLocal_3761, iLocal_652, 0))
									{
										iVar3 = true;
									}
								}
								if (iVar3)
								{
									func_675();
									func_674(23);
									func_674(26);
									func_674(25);
									iLocal_755 = 0;
								}
								else
								{
									func_1361();
									if (ui::does_blip_exist(iLocal_4936))
									{
										ui::set_blip_coords(iLocal_4936, func_640(player::player_id()));
										ui::set_blip_name_from_text_file(iLocal_4936, sVar2);
									}
								}
							}
							else if (!func_736(func_40()))
							{
								func_675();
								func_674(23);
								func_674(21);
								func_674(26);
								func_674(25);
								iLocal_755 = 0;
							}
							else
							{
								func_686(func_40(), 0);
								if (func_1359(func_40()))
								{
									func_1357(func_40(), func_1358(21), 1);
								}
								func_685(func_40(), 1);
								func_1356(func_40(), 1, 1);
								func_683(func_40(), 442, 1);
								func_682(func_40(), 1f, 1);
								func_681(func_40(), 1);
								func_676(func_40(), func_680(), 1);
							}
							break;
						}
					}
				}
			}
	}
}

void func_1348(int iParam0, int iParam1, int iParam2)//Position - 0x9C2A5
{
	int iVar0;
	
	if (iParam0 == func_45())
	{
		return;
	}
	if (iParam2 > 200000)
	{
		iParam2 = 200000;
	}
	iVar0 = iParam0;
	if (iParam1)
	{
		if (iParam0 == Global_2433082)
		{
		}
		else if (ui::does_blip_exist(Global_2414704[iVar0]))
		{
			gameplay::set_bit(&(Global_2414704.f_367), iVar0);
			gameplay::clear_bit(&(Global_2414704.f_372), iVar0);
			ui::set_blip_flashes(Global_2414704[iVar0], 1);
			ui::set_blip_flash_interval(Global_2414704[iVar0], 250);
			func_1349(iParam0);
			if (iParam2 < 0)
			{
				gameplay::set_bit(&(Global_2414704.f_372), iVar0);
			}
			else
			{
				Global_2414704.f_198[iVar0] = network::get_time_offset(network::get_network_time(), iParam2);
			}
		}
		else
		{
			gameplay::set_bit(&(Global_2414704.f_367), iVar0);
			gameplay::clear_bit(&(Global_2414704.f_372), iVar0);
			if (iParam2 < 0)
			{
				gameplay::set_bit(&(Global_2414704.f_372), iVar0);
			}
			else
			{
				Global_2414704.f_198[iVar0] = network::get_time_offset(network::get_network_time(), iParam2);
			}
		}
	}
	if (!iParam1)
	{
		gameplay::clear_bit(&(Global_2414704.f_367), iVar0);
		gameplay::clear_bit(&(Global_2414704.f_372), iVar0);
		if (ui::does_blip_exist(Global_2414704[iVar0]))
		{
			func_1349(iParam0);
			ui::set_blip_flashes(Global_2414704[iVar0], 0);
		}
	}
}

void func_1349(int iParam0)//Position - 0x9C3DA
{
	var uVar0;
	
	uVar0 = iParam0;
	if (func_1644(iParam0, 0, 1))
	{
		if (ui::does_blip_exist(Global_2414704[uVar0]))
		{
			Global_2414704.f_895[uVar0] = func_1350(iParam0);
			ui::set_blip_priority(Global_2414704[uVar0], Global_2414704.f_895[uVar0]);
		}
	}
}

int func_1350(int iParam0)//Position - 0x9C428
{
	int iVar0;
	int iVar1;
	
	iVar0 = iParam0;
	if (func_1644(iParam0, 0, 1))
	{
		if (ui::does_blip_exist(Global_2414704[iVar0]))
		{
			iVar1 = ui::get_blip_sprite(Global_2414704[iVar0]);
			if (gameplay::is_bit_set(Global_2414704.f_383, iVar0) || gameplay::is_bit_set(Global_2414704.f_382, iVar0))
			{
				return 1;
			}
			else if ((gameplay::is_bit_set(Global_2414704.f_368, iVar0) || gameplay::is_bit_set(Global_2414704.f_367, iVar0)) || gameplay::is_bit_set(Global_2414704.f_385, iVar0))
			{
				return func_1353(10);
			}
			else
			{
				switch (iVar1)
				{
					case 253:
					case 252:
					case 255:
						return func_1353(7);
						break;
					
					case 257:
					case 258:
					case 259:
					case 260:
					case 261:
						return func_1353(11);
						break;
					
					case 254:
						if (player::get_player_team(iParam0) == player::get_player_team(Global_2433082))
						{
							return func_1353(6);
						}
						else
						{
							return func_1353(5);
						}
						break;
					
					case 271:
						if (player::get_player_team(iParam0) == player::get_player_team(Global_2433082))
						{
							return func_1353(6);
						}
						else
						{
							return func_1353(5);
						}
						break;
					
					case 163:
					case 164:
						if (func_594(Global_2433082, iParam0, -2, 0))
						{
							return func_1353(6);
						}
						else
						{
							return func_1353(5);
						}
						break;
					
					case 303:
					case 418:
						return func_1353(10);
						break;
					
					case 364:
						if (func_1351(Global_2433082, iParam0, 1))
						{
							return func_1353(10);
						}
						else
						{
							return func_1353(5);
						}
						break;
					
					case 478:
					case 501:
					case 523:
						return func_1353(10);
						break;
					
					case 417:
						if (func_1351(Global_2433082, iParam0, 1))
						{
							return func_1353(6);
						}
						else
						{
							return func_1353(5);
						}
						break;
					
					case 256:
					case 268:
					default:
						if (func_1351(Global_2433082, iParam0, 1))
						{
							return func_1353(6);
						}
						else
						{
							return func_1353(5);
						}
						break;
					}
				}
			}
	}
	return 1;
}

bool func_1351(int iParam0, int iParam1, int iParam2)//Position - 0x9C65F
{
	if (func_584(iParam0, -2, 0, 0) == func_584(iParam1, -2, 0, 0))
	{
		return true;
	}
	if (iParam2)
	{
		if (func_1352(func_584(iParam0, -2, 0, 0)) && func_1352(func_584(iParam1, -2, 0, 0)))
		{
			return true;
		}
	}
	return false;
}

bool func_1352(int iParam0)//Position - 0x9C6B4
{
	if (iParam0 == func_590(1) || iParam0 == func_590(0))
	{
		return true;
	}
	return false;
}

int func_1353(int iParam0)//Position - 0x9C6DA
{
	switch (iParam0)
	{
		case 5:
		case 6:
			if (func_1355())
			{
				if (iParam0 == 5)
				{
					iParam0 = 6;
				}
				else
				{
					iParam0 = 5;
				}
			}
			break;
	}
	return func_1354(iParam0);
}

int func_1354(int iParam0)//Position - 0x9C714
{
	switch (iParam0)
	{
		case 10:
			return 9;
			break;
		
		case 5:
			return 8;
			break;
		
		case 6:
			return 7;
			break;
		
		case 8:
			return 6;
			break;
		
		case 7:
			return 4;
			break;
		
		case 4:
		case 11:
			return 2;
			break;
		
		case 0:
		case 2:
		case 3:
		case 9:
		case 1:
			return 1;
			break;
	}
	return 1;
}

int func_1355()//Position - 0x9C79F
{
	int iVar0;
	
	iVar0 = player::get_player_team(Global_2433082);
	if (iVar0 > -1 && iVar0 < 4)
	{
		return gameplay::is_bit_set(Global_1632166.f_91[iVar0 /*8128*/].f_4332, 4);
	}
	return false;
}

void func_1356(int iParam0, int iParam1, int iParam2)//Position - 0x9C7D8
{
	if (iParam1)
	{
		if (func_1644(iParam0, 1, 1))
		{
			Global_2414704.f_704[iParam0] = script::get_id_of_this_thread();
			gameplay::set_bit(&(Global_2414704.f_364), iParam0);
			func_685(iParam0, iParam2);
		}
	}
	else
	{
		func_685(iParam0, iParam2);
		gameplay::clear_bit(&(Global_2414704.f_364), iParam0);
		Global_2414704.f_704[iParam0] = -1;
	}
}

void func_1357(int iParam0, var uParam1, int iParam2)//Position - 0x9C83B
{
	int iVar0;
	
	if (iParam0 == func_45())
	{
		return;
	}
	if (gameplay::get_hash_key(script::get_this_script_name()) == func_679())
	{
		return;
	}
	iVar0 = iParam0;
	if (func_1359(iParam0))
	{
		if (iParam2)
		{
			gameplay::set_bit(&(Global_2414704.f_386), iVar0);
			Global_2414704.f_605[iParam0] = script::get_id_of_this_thread();
			Global_2414704.f_440[iVar0] = uParam1;
		}
		else
		{
			gameplay::clear_bit(&(Global_2414704.f_386), iVar0);
			Global_2414704.f_605[iParam0] = -1;
		}
	}
}

int func_1358(int iParam0)//Position - 0x9C8BB
{
	int iVar0;
	int iVar1;
	int iVar2;
	int iVar3;
	
	switch (iParam0)
	{
		case 1:
			return 4;
		
		case 0:
			return 4;
		
		case 6:
			return 59;
		
		case 18:
			return 2;
		
		case 13:
			return 5;
		
		case 116:
			return 38;
		
		case 28:
			return 6;
		
		case 29:
			return 7;
		
		case 30:
			return 8;
		
		case 31:
			return 9;
		
		case 32:
			return 10;
		
		case 33:
			return 11;
		
		case 34:
			return 12;
		
		case 35:
			return 13;
		
		case 36:
			return 14;
		
		case 37:
			return 15;
		
		case 38:
			return 16;
		
		case 39:
			return 17;
		
		case 40:
			return 18;
		
		case 41:
			return 19;
		
		case 42:
			return 20;
		
		case 43:
			return 21;
		
		case 44:
			return 22;
		
		case 45:
			return 23;
		
		case 46:
			return 24;
		
		case 47:
			return 25;
		
		case 48:
			return 26;
		
		case 49:
			return 27;
		
		case 50:
			return 28;
		
		case 51:
			return 29;
		
		case 52:
			return 30;
		
		case 53:
			return 31;
		
		case 54:
			return 32;
		
		case 55:
			return 33;
		
		case 56:
			return 34;
		
		case 57:
			return 35;
		
		case 58:
			return 36;
		
		case 59:
			return 37;
		
		case 9:
			return 57;
		
		case 10:
			return 53;
		
		case 118:
			return 57;
		
		case 14:
			return 56;
		
		case 3:
			return 55;
		
		case 21:
			return 50;
		
		case 15:
			return 51;
		
		case 20:
			return 52;
		
		case 11:
			return 54;
		
		case 23:
			return 58;
		
		case 12:
			return 60;
		
		case 24:
			return 61;
		
		case 4:
			return 62;
		
		default:
	}
	ui::get_hud_colour(iParam0, &iVar0, &iVar1, &iVar2, &iVar3);
	return ((((iVar0 * 16777216) + (iVar1 * 65536)) + iVar2 * 256) + iVar3);
	return 0;
}

bool func_1359(int iParam0)//Position - 0x9CB23
{
	if (!script::is_thread_active(Global_2414704.f_605[iParam0]) || Global_2414704.f_605[iParam0] == script::get_id_of_this_thread())
	{
		return true;
	}
	return false;
}

void func_1360(int iParam0, int iParam1)//Position - 0x9CB59
{
	int iVar0;
	
	if (ui::does_blip_exist(*iParam0))
	{
		iVar0 = func_1358(iParam1);
		ui::set_blip_colour(*iParam0, iVar0);
	}
}

void func_1361()//Position - 0x9CB7F
{
	Global_1312652 = 1;
}

var func_1362()//Position - 0x9CB8C
{
	return Global_262145.f_9845;
}

void func_1363()//Position - 0x9CB9B
{
	float fVar0;
	int iVar1;
	int iVar2;
	int iVar3;
	int iVar4;
	int iVar5;
	var uVar6;
	int iVar7;
	vector3 vVar8;
	int iVar11;
	float fVar12;
	float fVar13;
	float fVar14;
	float fVar15;
	vector3 vVar16;
	
	fVar0 = 1000f;
	func_674(11);
	iVar1 = 0;
	while (iVar1 < Global_262145.f_9743)
	{
		iVar7 = false;
		iVar11 = false;
		vVar8 = { 0f, 0f, 0f };
		vVar8 = { func_1370(iVar1) };
		ui::get_hud_colour(12, &iVar3, &iVar4, &iVar5, &uVar6);
		fVar15 = system::vdist(func_640(player::player_id()), vVar8);
		if (!func_669(11))
		{
			if (fVar15 <= IntToFloat(func_1425()))
			{
				func_1559(11);
			}
		}
		if (!gameplay::is_bit_set(Local_2854[func_1566() /*4*/].f_2, iVar1))
		{
			if (!func_1371(0, 0))
			{
				if (func_662(network::participant_id_to_int()))
				{
					if (func_1369())
					{
						if (!ui::does_blip_exist(vLocal_3659[iVar1 /*3*/].f_1))
						{
							vLocal_3659[iVar1 /*3*/].f_1 = ui::add_blip_for_coord(vVar8);
							ui::set_blip_name_from_text_file(vLocal_3659[iVar1 /*3*/].f_1, "AMHB_LNDLBL");
						}
					}
					if (func_1566() == network::participant_id_to_int())
					{
						if (!gameplay::is_bit_set(iLocal_4933, iVar1))
						{
							if (func_1368())
							{
								vLocal_3659[iVar1 /*3*/] = graphics::create_checkpoint(14, func_1370(iVar1) + Vector(1.5f, 0f, 0f), func_1370(iVar1), 2.25f, iVar3, iVar4, iVar5, vLocal_3659[iVar1 /*3*/].f_2, 0);
								iVar3 = 239;
								iVar4 = 250;
								iVar5 = 187;
								fVar12 = 5f;
								fVar14 = 64f;
								fVar13 = 15f;
								if (!func_1420(func_1370(iVar1)))
								{
									vVar16 = { func_1370(iVar1) };
									vVar16.z = (vVar16.y + 1.7f);
									graphics::_draw_light_with_range_and_shadow(vVar16, iVar3, iVar4, iVar5, fVar13, fVar12, fVar14);
								}
								gameplay::set_bit(&iLocal_4933, iVar1);
							}
						}
					}
				}
				else
				{
					iVar7 = true;
					if (func_1566() != network::participant_id_to_int())
					{
						iVar11 = true;
					}
				}
			}
			else
			{
				iVar7 = true;
			}
		}
		else
		{
			if (!func_1371(0, 0))
			{
				if (func_662(network::participant_id_to_int()))
				{
					if (gameplay::is_bit_set(iLocal_3732, Local_2985[network::participant_id_to_int() /*18*/].f_1))
					{
						iVar7 = true;
					}
					else
					{
						if (func_1566() == network::participant_id_to_int())
						{
							iVar7 = true;
						}
						else if (func_1369())
						{
							if (!ui::does_blip_exist(vLocal_3659[iVar1 /*3*/].f_1))
							{
								vLocal_3659[iVar1 /*3*/].f_1 = ui::add_blip_for_coord(vVar8);
								ui::set_blip_name_from_text_file(vLocal_3659[iVar1 /*3*/].f_1, "AMHB_LNDLBL");
							}
							else if (!gameplay::is_bit_set(iLocal_3760, iVar1))
							{
								ui::set_blip_flashes(vLocal_3659[iVar1 /*3*/].f_1, 1);
								ui::set_blip_flash_timer(vLocal_3659[iVar1 /*3*/].f_1, 7000);
								gameplay::set_bit(&iLocal_3760, iVar1);
							}
						}
						if (!gameplay::is_bit_set(iLocal_3763, iVar1))
						{
							gameplay::set_bit(&iLocal_3763, iVar1);
						}
					}
				}
				else
				{
					iVar7 = true;
					if (func_1566() != network::participant_id_to_int())
					{
						iVar11 = true;
					}
				}
			}
			else
			{
				iVar7 = true;
			}
			iVar2++;
		}
		if (iVar11)
		{
			if (iVar1 == 0)
			{
				iVar7 = false;
				if (func_1369())
				{
					if (!ui::does_blip_exist(vLocal_3659[iVar1 /*3*/].f_1))
					{
						vLocal_3659[iVar1 /*3*/].f_1 = ui::add_blip_for_coord(vVar8);
						ui::set_blip_name_from_text_file(vLocal_3659[iVar1 /*3*/].f_1, "AMHB_LNDLBL");
					}
				}
			}
		}
		if (iVar7)
		{
			if (ui::does_blip_exist(vLocal_3659[iVar1 /*3*/].f_1))
			{
			}
			if (gameplay::is_bit_set(iLocal_4933, iVar1))
			{
				func_1367(iVar1);
			}
		}
		iVar1++;
	}
	if (iLocal_4932 != iVar2)
	{
		iLocal_4932 = iVar2;
		if (func_1566() == network::participant_id_to_int())
		{
			func_1364(func_1366(0), 0);
			func_9(&uLocal_3742);
			func_58(&uLocal_3742, 0, 0);
		}
	}
	if (func_1566() == network::participant_id_to_int())
	{
		if (iLocal_4932 >= Global_262145.f_9743)
		{
			func_1423(4);
		}
		if (func_671(&uLocal_3742))
		{
			if (func_57(&uLocal_3742, Global_262145.f_9939, 0))
			{
				func_9(&uLocal_3742);
				func_58(&uLocal_3742, 0, 0);
				func_1364(func_1366(1), 1);
			}
		}
		if (Local_742.f_11 == 0)
		{
			if (iLocal_4932 > 0)
			{
				Local_742.f_11 = network::_get_posix_time();
			}
		}
	}
	if (!func_1371(1, 1))
	{
		iVar1 = 0;
		while (iVar1 < Global_262145.f_9743)
		{
			fVar0 = gameplay::get_distance_between_coords(entity::get_entity_coords(player::player_ped_id(), 1), func_1370(iVar1), 1);
			if (func_1566() == network::participant_id_to_int())
			{
				if (!gameplay::is_bit_set(Local_2854[network::participant_id_to_int() /*4*/].f_2, iVar1))
				{
					if (fVar0 <= 2.5f)
					{
						gameplay::set_bit(&(Local_2854[network::participant_id_to_int() /*4*/].f_2), iVar1);
					}
				}
			}
			iVar1++;
		}
	}
}

void func_1364(var uParam0, int iParam1)//Position - 0x9CFBC
{
	struct<4> Var0;
	
	Var0 = 452;
	Var0.f_1 = player::player_id();
	Var0.f_2 = uParam0;
	Var0.f_3 = iParam1;
	script::trigger_script_event(1, &Var0, 4, func_1365(1));
}

var func_1365(int iParam0)//Position - 0x9CFEA
{
	var uVar0;
	int iVar1;
	int iVar2;
	
	iVar1 = 0;
	while (iVar1 < network::_network_get_num_participants_host())
	{
		if (network::network_is_participant_active(player::int_to_participantindex(iVar1)))
		{
			iVar2 = network::network_get_player_index(player::int_to_participantindex(iVar1));
			if (func_1644(iVar2, 0, 0))
			{
				if (iVar2 != player::player_id() || iParam0)
				{
					gameplay::set_bit(&uVar0, iVar2);
				}
			}
		}
		iVar1++;
	}
	return uVar0;
}

int func_1366(int iParam0)//Position - 0x9D047
{
	if (iParam0)
	{
		return Global_262145.f_9940;
	}
	else
	{
		return (Global_262145.f_9725 + ((iLocal_4932 - 1) * Global_262145.f_9726));
	}
	return 60000;
}

void func_1367(int iParam0)//Position - 0x9D07D
{
	int iVar0;
	int iVar1;
	int iVar2;
	var uVar3;
	
	if (vLocal_3659[iParam0 /*3*/] != 0)
	{
		vLocal_3659[iParam0 /*3*/].f_2 = (vLocal_3659[iParam0 /*3*/].f_2 - 25);
		if (vLocal_3659[iParam0 /*3*/].f_2 > 0)
		{
			ui::get_hud_colour(1, &iVar0, &iVar1, &iVar2, &uVar3);
			graphics::set_checkpoint_rgba(vLocal_3659[iParam0 /*3*/], iVar0, iVar1, iVar2, vLocal_3659[iParam0 /*3*/].f_2);
			graphics::_set_checkpoint_icon_rgba(vLocal_3659[iParam0 /*3*/], iVar0, iVar1, iVar2, vLocal_3659[iParam0 /*3*/].f_2);
		}
		else
		{
			if (ui::does_blip_exist(vLocal_3659[iParam0 /*3*/].f_1))
			{
				ui::remove_blip(&(vLocal_3659[iParam0 /*3*/].f_1));
			}
			graphics::delete_checkpoint(vLocal_3659[iParam0 /*3*/]);
			vLocal_3659[iParam0 /*3*/] = 0;
			gameplay::clear_bit(&iLocal_4933, iParam0);
		}
	}
}

bool func_1368()//Position - 0x9D132
{
	if (func_1566() != network::participant_id_to_int())
	{
		return false;
	}
	return true;
}

bool func_1369()//Position - 0x9D14A
{
	if (func_4() == 0)
	{
		if (func_1566() != network::participant_id_to_int())
		{
			return false;
		}
	}
	return true;
}

Vector3 func_1370(int iParam0)//Position - 0x9D16A
{
	return Local_653.f_1.f_19[iParam0 /*3*/];
}

bool func_1371(int iParam0, int iParam1)//Position - 0x9D17F
{
	if (iParam0)
	{
	}
	if (func_669(17))
	{
		return true;
	}
	if (func_1341(player::player_id(), 1, 0))
	{
		return true;
	}
	if (func_726())
	{
		return true;
	}
	if (func_1259(7))
	{
		return true;
	}
	if (func_1259(0))
	{
		return true;
	}
	if (!func_1377())
	{
		return true;
	}
	if (func_1376())
	{
		return true;
	}
	if (func_859(4))
	{
		return true;
	}
	if (func_864())
	{
		return true;
	}
	if (func_1375())
	{
		if (func_1372(func_1373()) != 133)
		{
			return true;
		}
	}
	if (func_1427(iParam0, iParam1))
	{
		return true;
	}
	if (Global_1747153)
	{
		return true;
	}
	if (func_996(player::player_id()))
	{
		return true;
	}
	return false;
}

var func_1372(var uParam0)//Position - 0x9D23D
{
	return Global_2359719[uParam0 /*26*/].f_15;
}

var func_1373()//Position - 0x9D24F
{
	return func_1374(0);
}

var func_1374(int iParam0)//Position - 0x9D25C
{
	return Global_1311716[iParam0 /*4*/].f_1;
}

int func_1375()//Position - 0x9D26E
{
	return Global_1311716[0 /*4*/] > 0;
}

bool func_1376()//Position - 0x9D27F
{
	if (gameplay::is_bit_set(Global_2494149.f_357.f_5, 0))
	{
		return true;
	}
	if (func_1560() && Global_1589933[player::player_id() /*601*/].f_94 != 3)
	{
		return true;
	}
	if (func_1557() && Global_1589933[player::player_id() /*601*/].f_94 != 3)
	{
		return true;
	}
	if (Global_2394716)
	{
		return true;
	}
	if (Global_1574332.f_20)
	{
		return true;
	}
	return false;
}

bool func_1377()//Position - 0x9D2F3
{
	if (func_665(player::player_id(), 21))
	{
		return false;
	}
	if (network::network_is_in_tutorial_session())
	{
		return false;
	}
	if (network::network_is_in_mp_cutscene())
	{
		return false;
	}
	if (func_500(player::player_id()))
	{
		return false;
	}
	if (func_1391())
	{
		return false;
	}
	if (func_1390(player::player_id()))
	{
		return false;
	}
	if (func_403())
	{
		return false;
	}
	if (func_1384(player::player_id()) == 3)
	{
		return false;
	}
	if (func_1382(func_1383()))
	{
		return false;
	}
	if (func_799())
	{
		return false;
	}
	if (func_726())
	{
		return false;
	}
	if (network::network_is_activity_session())
	{
		return false;
	}
	if (func_502(player::player_id()))
	{
		return false;
	}
	if (!func_544())
	{
		return false;
	}
	if (func_665(player::player_id(), 0) || func_665(player::player_id(), 3))
	{
		return false;
	}
	if ((func_665(player::player_id(), 12) || func_665(player::player_id(), 14)) || func_665(player::player_id(), 13))
	{
		return false;
	}
	if (func_1380(player::player_id(), 0, 0, 0, 0))
	{
		return false;
	}
	if (func_1379(player::player_id()))
	{
		return false;
	}
	if (func_864())
	{
		return false;
	}
	if (Global_1747153)
	{
		return false;
	}
	if (func_996(player::player_id()))
	{
		return false;
	}
	if (func_1378())
	{
		return false;
	}
	if (func_54(player::player_id()) && Global_1589609.f_170)
	{
		return false;
	}
	return true;
}

bool func_1378()//Position - 0x9D46E
{
	if (Global_2583825.f_797 > -1)
	{
		return true;
	}
	return false;
}

int func_1379(int iParam0)//Position - 0x9D486
{
	return gameplay::is_bit_set(Global_1589933[iParam0 /*601*/].f_257.f_13, 11);
}

bool func_1380(int iParam0, int iParam1, int iParam2, int iParam3, int iParam4)//Position - 0x9D4A2
{
	if (Global_1589933[iParam0 /*601*/].f_257.f_15 > 0)
	{
		if (iParam1)
		{
			if (gameplay::is_bit_set(Global_1589933[iParam0 /*601*/].f_257.f_13, 0))
			{
				return true;
			}
		}
		else
		{
			return true;
		}
	}
	if (!iParam2)
	{
		if (func_52(iParam0))
		{
			return true;
		}
	}
	if (!iParam3)
	{
		if (func_704(iParam0))
		{
			return true;
		}
	}
	if (!iParam4)
	{
		if (func_1381(iParam0))
		{
			return true;
		}
	}
	return false;
}

int func_1381(int iParam0)//Position - 0x9D51C
{
	if (iParam0 != func_45())
	{
		if (func_1644(iParam0, 1, 1))
		{
			if (Global_2421621[iParam0 /*358*/].f_312.f_1 != -1)
			{
				return func_53(Global_2421621[iParam0 /*358*/].f_312.f_1) == 1;
			}
		}
	}
	return false;
}

bool func_1382(int iParam0)//Position - 0x9D562
{
	switch (iParam0)
	{
		case 86:
		case 87:
		case 88:
		case 99:
		case 100:
		case 101:
		case 102:
		case 89:
			return true;
		
		default:
	}
	return false;
}

var func_1383()//Position - 0x9D5A6
{
	return Global_2433082.f_2199[0 /*76*/].f_1;
}

int func_1384(int iParam0)//Position - 0x9D5BA
{
	int iVar0;
	int iVar1;
	int iVar2;
	var uVar3;
	var uVar4;
	
	iVar0 = 2;
	iVar1 = ((func_1205(iParam0) && !func_668(iParam0)) && !gameplay::is_bit_set(Global_1618089[iParam0 /*390*/].f_1, 8));
	iVar2 = func_1389(iParam0);
	uVar3 = func_507();
	uVar4 = func_1386();
	if ((iVar1 && (func_1385(iParam0) || func_1286(iParam0))) || uVar4)
	{
		iVar0 = 0;
	}
	else if (uVar3 || ((!iVar2 && !func_706(iParam0)) && !func_705(iParam0)))
	{
		iVar0 = 2;
	}
	else
	{
		iVar0 = 3;
	}
	if (Global_2494149.f_4710.f_29 != iVar0)
	{
		Global_2494149.f_4710.f_29 = iVar0;
	}
	return iVar0;
}

int func_1385(int iParam0)//Position - 0x9D678
{
	int iVar0;
	
	iVar0 = iParam0;
	if (iVar0 != -1)
	{
		return gameplay::is_bit_set(Global_1618089[iVar0 /*390*/].f_1, 7);
	}
	return false;
}

bool func_1386()//Position - 0x9D69E
{
	if ((func_257(player::player_id(), 21) || func_257(player::player_id(), 22)) || func_1388())
	{
		return true;
	}
	if (func_1387())
	{
		func_407(22);
		return true;
	}
	return false;
}

bool func_1387()//Position - 0x9D6E3
{
	if (func_707(player::player_id(), 0))
	{
		if ((func_507() && !func_666()) || func_665(player::player_id(), 21))
		{
			return true;
		}
		else
		{
			func_406(27);
		}
	}
	return false;
}

int func_1388()//Position - 0x9D726
{
	return func_68(286, -1);
}

int func_1389(int iParam0)//Position - 0x9D736
{
	return func_257(iParam0, 20);
}

bool func_1390(int iParam0)//Position - 0x9D746
{
	if (Global_2421621[iParam0 /*358*/].f_264.f_4 != 0 || Global_2421621[iParam0 /*358*/].f_264.f_5)
	{
		return true;
	}
	return false;
}

int func_1391()//Position - 0x9D77A
{
	return gameplay::is_bit_set(Global_1589933[player::player_id() /*601*/].f_39.f_18, 0);
}

void func_1392()//Position - 0x9D796
{
	Global_2494149.f_4697 = func_1424(0, network::participant_id_to_int());
}

void func_1393()//Position - 0x9D7AE
{
	if (audio::request_script_audio_bank("DLC_SFX1/BEAST", false, -1))
	{
		if (gameplay::is_bit_set(iLocal_3731, func_1566()))
		{
			if (gameplay::is_bit_set(iLocal_3730, func_40()))
			{
				if (!gameplay::is_bit_set(iLocal_3732, func_40()))
				{
					if (func_60() <= 2 && !func_1371(0, 0))
					{
						if (func_5(5))
						{
							if (iLocal_3739 == network::participant_id_to_int())
							{
								if (func_1566() == network::participant_id_to_int())
								{
									if (iLocal_3736 == -1)
									{
										if (controls::is_control_just_pressed(0, 21))
										{
											iLocal_3736 = 3000;
										}
									}
								}
								else if (func_1426() <= 70f)
								{
									iLocal_3736 = 3000;
								}
								else if (func_1426() <= 100f)
								{
									iLocal_3736 = 5000;
								}
								else if (func_1426() <= 150f)
								{
									iLocal_3736 = 7000;
								}
								if (iLocal_3736 != -1)
								{
									if (!func_671(&uLocal_3757))
									{
										if (iLocal_3759 == -1)
										{
											iLocal_3759 = audio::get_sound_id();
										}
										else
										{
											audio::play_sound_from_entity(iLocal_3759, "Beast_Calls", vLocal_3562[func_40() /*3*/].f_2, "FM_Events_Sasquatch_Sounds", 0, 0);
											func_58(&uLocal_3757, 0, 0);
										}
									}
									else if (func_57(&uLocal_3757, iLocal_3736, 0))
									{
										if (iLocal_3759 != -1)
										{
											audio::release_sound_id(iLocal_3759);
										}
										iLocal_3759 = -1;
										iLocal_3736 = -1;
										func_9(&uLocal_3757);
									}
								}
								else
								{
									if (iLocal_3759 != -1)
									{
										audio::release_sound_id(iLocal_3759);
									}
									iLocal_3759 = -1;
									iLocal_3736 = -1;
									func_9(&uLocal_3757);
								}
							}
							else if (iLocal_3736 == -1)
							{
								if (iLocal_3759 != -1)
								{
									audio::release_sound_id(iLocal_3759);
								}
								iLocal_3759 = -1;
								iLocal_3736 = -1;
								func_9(&uLocal_3757);
							}
						}
					}
					else
					{
						if (iLocal_3759 != -1)
						{
							audio::stop_sound(iLocal_3759);
							audio::release_sound_id(iLocal_3759);
						}
						iLocal_3759 = -1;
						iLocal_3736 = -1;
						if (func_671(&uLocal_3757))
						{
							func_9(&uLocal_3757);
						}
					}
				}
			}
		}
	}
}

void func_1394()//Position - 0x9D96A
{
	if (func_1306(0))
	{
		if (func_507())
		{
			func_499(0);
		}
	}
}

void func_1395()//Position - 0x9D986
{
	if (!func_671(&uLocal_3733))
	{
		if (func_663(network::participant_id_to_int()))
		{
			func_58(&uLocal_3733, 0, 0);
		}
	}
}

void func_1396()//Position - 0x9D9AD
{
	if (func_1371(1, 1))
	{
		if (!func_1424(10, network::participant_id_to_int()))
		{
			func_1423(10);
		}
	}
	else if (func_1424(10, network::participant_id_to_int()))
	{
		func_1422(10);
	}
	if (func_1371(0, 1))
	{
		if (!func_1424(11, network::participant_id_to_int()))
		{
			func_1423(11);
		}
	}
	else if (func_1424(11, network::participant_id_to_int()))
	{
		func_1422(11);
	}
	if (func_1371(1, 0))
	{
		if (!func_1424(12, network::participant_id_to_int()))
		{
			func_1423(12);
		}
	}
	else if (func_1424(12, network::participant_id_to_int()))
	{
		func_1422(12);
	}
	if (func_1371(0, 0))
	{
		if (!func_1424(13, network::participant_id_to_int()))
		{
			func_1423(13);
		}
	}
	else if (func_1424(13, network::participant_id_to_int()))
	{
		func_1422(13);
	}
}

void func_1397()//Position - 0x9DA81
{
	if (func_60() == 2)
	{
		if ((func_1566() == network::participant_id_to_int() && !func_1427(1, 0)) && iLocal_3739 == network::participant_id_to_int())
		{
			if (!func_1286(player::player_id()))
			{
				func_1261(1);
			}
		}
		else if (func_1286(player::player_id()))
		{
			func_1261(0);
		}
	}
	if (func_60() == 3)
	{
		if ((func_1566() == network::participant_id_to_int() && !func_1427(1, 0)) && iLocal_3739 == network::participant_id_to_int())
		{
			if (func_1286(player::player_id()))
			{
				func_1261(0);
			}
		}
	}
}

void func_1398(int iParam0, vector3 vParam1, var uParam4, float fParam5, float fParam6, int iParam7)//Position - 0x9DB17
{
	float fVar0;
	int iVar1;
	
	Global_1574332.f_6 = { vParam1 };
	fVar0 = system::vdist(entity::get_entity_coords(player::player_ped_id(), 0), vParam1);
	if (fVar0 < fParam5 && !func_668(player::player_id()))
	{
		if (iParam0 != 146 && !func_665(player::player_id(), 21))
		{
			func_1419(vParam1, 1, 0);
		}
		if ((!*uParam4 || gameplay::is_bit_set(Global_1574332.f_1, 3)) && func_1644(player::player_id(), 1, 1))
		{
			*uParam4 = 1;
			func_1295(func_1418(iParam0));
			player::set_wanted_level_multiplier(func_1417(iParam0));
			if (iParam0 != 146)
			{
				iVar1 = func_1416(iParam0);
				player::set_max_wanted_level(iVar1);
				if (player::get_player_wanted_level(player::player_id()) > iVar1)
				{
					player::set_player_wanted_level(player::player_id(), iVar1, 1);
					player::set_player_wanted_level_now(player::player_id(), 1);
				}
				gameplay::set_bit(&(Global_1574332.f_1), 8);
			}
			gameplay::set_bit(&(Global_1618089[player::player_id() /*390*/].f_1), 3);
			gameplay::clear_bit(&(Global_1574332.f_1), 3);
		}
	}
	else if ((iParam0 == 146 && fVar0 < fParam6) && !func_668(player::player_id()))
	{
		if (!gameplay::is_bit_set(Global_1574332.f_1, 3) && func_1644(player::player_id(), 1, 1))
		{
			func_1415();
			player::set_wanted_level_multiplier(Global_262145.f_9907);
			gameplay::clear_bit(&(Global_1618089[player::player_id() /*390*/].f_1), 3);
			gameplay::set_bit(&(Global_1574332.f_1), 3);
		}
	}
	else if ((*uParam4 || gameplay::is_bit_set(Global_1574332.f_1, 3)) && func_1644(player::player_id(), 1, 1))
	{
		*uParam4 = 0;
		func_1415();
		player::set_wanted_level_multiplier(1f);
		player::set_max_wanted_level(5);
		gameplay::clear_bit(&(Global_1574332.f_1), 8);
		gameplay::clear_bit(&(Global_1618089[player::player_id() /*390*/].f_1), 3);
		gameplay::clear_bit(&(Global_1574332.f_1), 3);
		if (iParam0 != 146 && iParam7)
		{
			func_1399();
		}
	}
}

void func_1399()//Position - 0x9DCF8
{
	unk_0x213AEB2B90CBA7AC(&(Global_2404994.f_24), &Global_2408525, 2);
	unk_0x213AEB2B90CBA7AC(&(Global_2404994.f_26), &Global_2408527, 17);
	func_1413();
	func_1402(1, 1);
	func_1400();
}

void func_1400()//Position - 0x9DD2D
{
	func_1401(0, 0);
}

void func_1401(int iParam0, int iParam1)//Position - 0x9DD3B
{
	Global_2404994.f_22 = iParam0;
	Global_2404994.f_23 = iParam1;
}

void func_1402(int iParam0, int iParam1)//Position - 0x9DD53
{
	if (iParam1)
	{
		unk_0x213AEB2B90CBA7AC(&(Global_2404994.f_43), &Global_2408544, 312);
	}
	else
	{
		Global_2404994.f_43 = { Global_2408544 };
		Global_2404994.f_43.f_49 = { Global_2408544.f_49 };
		Global_2404994.f_43.f_52 = Global_2408544.f_52;
		Global_2404994.f_43.f_53 = Global_2408544.f_53;
	}
	if (iParam0)
	{
		func_1412();
	}
	func_1404(0, 1, 0, 1060320051, 1086324736, 1065353216, 1088421888, 1084227584, 0, 1066192077, 0, 0);
	func_1403(0);
	func_740();
}

void func_1403(int iParam0)//Position - 0x9DDEC
{
	if (iParam0)
	{
		Global_2404994.f_650 = 0;
	}
	else
	{
		Global_2404994.f_650 = 1;
	}
}

void func_1404(int iParam0, int iParam1, int iParam2, int iParam3, int iParam4, int iParam5, int iParam6, int iParam7, int iParam8, int iParam9, int iParam10, int iParam11)//Position - 0x9DE0C
{
	if (iParam0)
	{
		if (func_1411())
		{
			func_1410();
		}
		Global_2404994.f_651.f_504 = iParam1;
		Global_2404994.f_651.f_505 = iParam2;
		Global_2404994.f_651.f_506 = iParam10;
		func_1409();
		func_1408(8, 0, 0);
		Global_2404994.f_651.f_507 = iParam11;
		Global_2404994.f_651.f_510 = iParam3;
		Global_2404994.f_651.f_511 = iParam4;
		Global_2404994.f_651.f_508 = iParam5;
		Global_2404994.f_651.f_509 = iParam6;
		Global_2404994.f_651.f_512 = iParam7;
		Global_2404994.f_651.f_513 = iParam8;
		Global_2404994.f_651.f_514 = iParam9;
		Global_2404994.f_1684 = 1;
	}
	else
	{
		func_1405();
	}
}

void func_1405()//Position - 0x9DEC3
{
	if (func_1411() && !func_1407())
	{
		func_1410();
	}
	if (func_1407())
	{
		func_1406();
	}
	else
	{
		func_1409();
		func_1408(0, 0, 0);
		Global_2404994.f_1684 = 0;
		Global_2404994.f_1683 = 0;
	}
}

void func_1406()//Position - 0x9DF09
{
	unk_0x213AEB2B90CBA7AC(&(Global_2404994.f_651), &(Global_2404994.f_1167), 516);
	Global_2404994.f_477 = { Global_2404994.f_481 };
	if (script::get_id_of_this_thread() == Global_2404994.f_651.f_515)
	{
		Global_2404994.f_1683 = 0;
	}
}

bool func_1407()//Position - 0x9DF51
{
	if ((Global_2404994.f_1683 && !script::get_id_of_this_thread() == Global_2404994.f_1167.f_515) && script::is_thread_active(Global_2404994.f_1167.f_515))
	{
		return true;
	}
	return false;
}

void func_1408(int iParam0, int iParam1, int iParam2)//Position - 0x9DF90
{
	if (iParam0 != 18 && iParam0 != 17)
	{
		Global_2411314 = 0;
	}
	Global_2404994.f_477 = iParam0;
	Global_2404994.f_477.f_1 = script::get_id_of_this_thread();
	Global_2404994.f_477.f_2 = iParam1;
	Global_2404994.f_477.f_3 = iParam2;
}

void func_1409()//Position - 0x9DFDB
{
	if (func_1411() && !func_1407())
	{
		func_1410();
	}
	func_1224();
	Global_2404994.f_651 = 0;
}

void func_1410()//Position - 0x9E004
{
	if (func_1407())
	{
		if (Global_2404994.f_651.f_515 == Global_2404994.f_1167.f_515)
		{
			return;
		}
	}
	if (!script::get_id_of_this_thread() == Global_2404994.f_651.f_515)
	{
		unk_0x213AEB2B90CBA7AC(&(Global_2404994.f_1167), &(Global_2404994.f_651), 516);
		Global_2404994.f_481 = { Global_2404994.f_477 };
		Global_2404994.f_1683 = 1;
	}
}

bool func_1411()//Position - 0x9E072
{
	if ((Global_2404994.f_1684 && !script::get_id_of_this_thread() == Global_2404994.f_651.f_515) && script::is_thread_active(Global_2404994.f_651.f_515))
	{
		return true;
	}
	return false;
}

void func_1412()//Position - 0x9E0B1
{
	unk_0x213AEB2B90CBA7AC(&(Global_2404994.f_355), &Global_2408856, 121);
}

void func_1413()//Position - 0x9E0CA
{
	func_1414();
	Global_2404994.f_1815 = 0;
}

void func_1414()//Position - 0x9E0DE
{
	int iVar0;
	struct<4> Var1;
	
	iVar0 = 0;
	while (iVar0 < 50)
	{
		Global_2404994.f_1816[iVar0 /*4*/] = { Var1 };
		iVar0++;
	}
}

void func_1415()//Position - 0x9E10A
{
	if (script::is_thread_active(Global_2494149.f_4706))
	{
		if (!Global_2494149.f_4706 == script::get_id_of_this_thread() && Global_2494149.f_4705 < 1f)
		{
			return;
		}
	}
	Global_2494149.f_4706 = -1;
	Global_2494149.f_4705 = 1f;
}

int func_1416(int iParam0)//Position - 0x9E151
{
	switch (iParam0)
	{
		case 131:
		case 138:
		case 140:
		case 139:
		case 141:
		case 146:
			return 0;
		
		case 144:
			return 0;
		
		default:
	}
	return 5;
}

float func_1417(int iParam0)//Position - 0x9E193
{
	switch (iParam0)
	{
		case 131:
		case 138:
		case 140:
		case 139:
		case 141:
		case 146:
		case 216:
		case 218:
		case 215:
		case 214:
		case 220:
		case 221:
		case 217:
		case 219:
			return 0f;
		
		case 144:
			return 0f;
		
		case 185:
			return 0f;
		
		default:
	}
	return 1f;
}

float func_1418(int iParam0)//Position - 0x9E20F
{
	switch (iParam0)
	{
		case 131:
		case 138:
		case 139:
		case 140:
		case 141:
		case 129:
		case 144:
		case 146:
			return 0f;
		
		default:
	}
	return 1f;
}

void func_1419(vector3 vParam0, int iParam3, int iParam4)//Position - 0x9E253
{
	Global_2404994.f_43.f_49 = { vParam0 };
	Global_2404994.f_43.f_52 = iParam3;
	Global_2404994.f_43.f_53 = iParam4;
}

bool func_1420(vector3 vParam0)//Position - 0x9E27D
{
	if ((vParam0.x == 0f && vParam0.y == 0f) && vParam0.y == 0f)
	{
		return true;
	}
	return false;
}

var func_1421()//Position - 0x9E2A7
{
	return Local_653;
}

void func_1422(int iParam0)//Position - 0x9E2B2
{
	gameplay::clear_bit(&(Local_2854[network::participant_id_to_int() /*4*/].f_3), iParam0);
}

void func_1423(int iParam0)//Position - 0x9E2CB
{
	gameplay::set_bit(&(Local_2854[network::participant_id_to_int() /*4*/].f_3), iParam0);
}

int func_1424(int iParam0, int iParam1)//Position - 0x9E2E4
{
	return gameplay::is_bit_set(Local_2854[iParam1 /*4*/].f_3, iParam0);
}

var func_1425()//Position - 0x9E2FB
{
	return Global_262145.f_9844;
}

var func_1426()//Position - 0x9E30A
{
	return uLocal_3756;
}

bool func_1427(int iParam0, int iParam1)//Position - 0x9E315
{
	if (func_667(player::player_id()))
	{
		return true;
	}
	if (iParam0)
	{
		if (func_664(player::player_id()))
		{
			return true;
		}
	}
	if (iParam1)
	{
		if (func_1428(player::player_id()))
		{
			return true;
		}
	}
	return false;
}

int func_1428(int iParam0)//Position - 0x9E355
{
	return func_37(iParam0, 0);
}

void func_1429()//Position - 0x9E364
{
	if (iLocal_3739 == network::participant_id_to_int())
	{
		if (func_1566() != -1)
		{
			if (gameplay::is_bit_set(iLocal_3731, func_1566()))
			{
				func_1430(gameplay::get_distance_between_coords(func_33(), entity::get_entity_coords(player::player_ped_id(), 0), 1));
			}
		}
	}
	else
	{
		func_1430(999999f);
	}
}

void func_1430(float fParam0)//Position - 0x9E3AE
{
	uLocal_3756 = fParam0;
}

void func_1431()//Position - 0x9E3BB
{
	int iVar0;
	int iVar1;
	int iVar2;
	
	iVar0 = 0;
	while (iVar0 < script::get_number_of_events(1))
	{
		iVar1 = script::get_event_at_index(1, iVar0);
		if (iVar1 == 182)
		{
			func_1434(iVar0);
		}
		else if (iVar1 == 171)
		{
			script::get_event_data(1, iVar0, &iVar2, 2);
			if (iVar2 == 452)
			{
				func_1432(iVar0);
			}
		}
		iVar0++;
	}
}

void func_1432(int iParam0)//Position - 0x9E412
{
	int iVar0;
	struct<4> Var1;
	
	if (!script::get_event_data(1, iParam0, &Var1, 4))
	{
		return;
	}
	else
	{
		if (!func_1371(0, 0))
		{
			if (!Var1.f_3)
			{
				iVar0 = true;
			}
			else if (iLocal_755 == 0)
			{
				iVar0 = true;
			}
		}
		if (iVar0)
		{
			func_673();
			iLocal_652 = Var1.f_2;
			if (Var1.f_3)
			{
				func_1433();
				func_1559(25);
			}
			else
			{
				if (func_1566() == network::participant_id_to_int())
				{
					audio::play_sound_frontend(-1, "Checkpoint_Beast_Hit", "FM_Events_Sasquatch_Sounds", 0);
				}
				else
				{
					audio::play_sound_frontend(-1, "Radar_Beast_Blip", "FM_Events_Sasquatch_Sounds", 0);
				}
				func_1559(23);
			}
		}
	}
}

void func_1433()//Position - 0x9E4AE
{
	if (!func_669(28))
	{
		if (func_1566() == network::participant_id_to_int())
		{
			func_1327("AMHB_NOCLCT", 12000);
			func_1326(1);
		}
		else
		{
			func_1327("AMHB_NOCLCT2", 12000);
			func_1326(1);
		}
		func_1559(28);
	}
}

void func_1434(int iParam0)//Position - 0x9E4F6
{
	int iVar0;
	int iVar1;
	int iVar2;
	int iVar3;
	int iVar4;
	int iVar5;
	int iVar6;
	int iVar7;
	int iVar8;
	struct<4> Var9;
	
	iVar2 = func_45();
	iVar3 = func_45();
	iVar4 = func_1439();
	iVar5 = func_1439();
	iVar6 = -1;
	iVar7 = -1;
	iVar8 = -1;
	script::get_event_data(1, iParam0, &Var9, 10);
	if (entity::does_entity_exist(Var9))
	{
		if (entity::is_entity_a_ped(Var9))
		{
			iVar0 = entity::get_ped_index_from_entity_index(Var9);
			if (ped::is_ped_a_player(iVar0))
			{
				iVar2 = network::_network_get_ped_player(iVar0);
				if (network::network_is_player_a_participant(iVar2))
				{
					iVar4 = network::network_get_participant_index(iVar2);
					if (network::network_is_participant_active(iVar4))
					{
						iVar7 = iVar4;
					}
				}
				if (iVar7 != -1)
				{
					if (iVar7 == func_1566())
					{
						if (func_5(5))
						{
							if (Var9.f_3)
							{
								func_1438();
							}
							if (entity::does_entity_exist(Var9.f_1))
							{
								if (entity::is_entity_a_ped(Var9.f_1))
								{
									iVar1 = entity::get_ped_index_from_entity_index(Var9.f_1);
									if (!func_1427(1, 0))
									{
										if (iVar1 == player::player_ped_id())
										{
											if (!func_1424(8, network::participant_id_to_int()))
											{
												func_1423(8);
												func_1256(1);
											}
											if (!func_1424(14, network::participant_id_to_int()))
											{
												func_1423(14);
											}
										}
									}
									if (ped::is_ped_a_player(iVar1))
									{
										iVar3 = network::_network_get_ped_player(iVar1);
										if (gameplay::is_bit_set(iLocal_3730, iVar3))
										{
											iVar8 = iVar3;
										}
										if (network::network_is_player_a_participant(iVar3))
										{
											if (!func_667(iVar3) && !func_664(iVar3))
											{
												iVar5 = network::network_get_participant_index(iVar3);
												if (network::network_is_participant_active(iVar5))
												{
													iVar6 = iVar5;
												}
												if (iVar6 != -1)
												{
													if (Var9.f_3)
													{
														if (network::network_is_host_of_this_script())
														{
															if (iVar6 == func_1566())
															{
																if (!func_5(1))
																{
																	func_1437(1);
																}
															}
															else if (!func_5(3))
															{
																func_1437(3);
															}
															if (func_652() == -1)
															{
																func_1436(iVar6);
																func_1435(iVar8);
															}
														}
													}
												}
											}
											else if (Var9.f_3)
											{
												if (network::network_is_host_of_this_script())
												{
													if (!func_5(2))
													{
														func_1437(2);
													}
												}
											}
										}
										else if (Var9.f_3)
										{
											if (network::network_is_host_of_this_script())
											{
												if (!func_5(2))
												{
													func_1437(2);
												}
											}
										}
									}
									else if (Var9.f_3)
									{
										if (network::network_is_host_of_this_script())
										{
											if (!func_5(4))
											{
												func_1437(4);
											}
										}
									}
								}
								else if (Var9.f_3)
								{
									if (network::network_is_host_of_this_script())
									{
										if (!func_5(4))
										{
											func_1437(4);
										}
									}
								}
							}
							else if (Var9.f_3)
							{
								if (network::network_is_host_of_this_script())
								{
									if (!func_5(4))
									{
										func_1437(4);
									}
								}
							}
						}
					}
				}
			}
		}
	}
}

void func_1435(int iParam0)//Position - 0x9E736
{
	Local_653.f_1.f_17 = iParam0;
}

void func_1436(int iParam0)//Position - 0x9E747
{
	Local_653.f_1.f_16 = iParam0;
}

void func_1437(int iParam0)//Position - 0x9E758
{
	gameplay::set_bit(&(Local_653.f_83), iParam0);
}

void func_1438()//Position - 0x9E76B
{
	if (gameplay::is_bit_set(Global_2494149.f_4608, 1))
	{
		gameplay::clear_bit(&(Global_2494149.f_4608), 1);
	}
	if (Global_2494149.f_4608 > 0)
	{
		audio::trigger_music_event("FM_COUNTDOWN_30S_KILL");
		audio::trigger_music_event("FM_COUNTDOWN_30S_FIRA");
		audio::stop_audio_scene("GTAO_FM_Events_30_Sec_Countdown_Scene");
		audio::set_user_radio_control_enabled(1);
		Global_2494149.f_4608 = 0;
		audio::set_audio_flag("DisableFlightMusic", 0);
		audio::set_audio_flag("WantedMusicDisabled", 0);
		audio::set_audio_flag("AllowScoreAndRadio", 0);
		if (!gameplay::are_strings_equal(script::get_this_script_name(), "am_pi_menu"))
		{
			if (Global_2494149.f_4618 > -1)
			{
				audio::release_sound_id(Global_2494149.f_4618);
				Global_2494149.f_4618 = -1;
			}
		}
	}
}

int func_1439()//Position - 0x9E810
{
	return -1;
}

void func_1440()//Position - 0x9E819
{
	func_1442();
	iLocal_3727++;
	if (func_662(iLocal_3727))
	{
		iLocal_3728++;
	}
	func_1441();
}

void func_1441()//Position - 0x9E843
{
	if (network::network_is_participant_active(player::int_to_participantindex(iLocal_3727)))
	{
		iLocal_3729++;
		if (iLocal_3727 > iLocal_739)
		{
			iLocal_739 = iLocal_3729;
		}
		if (iLocal_3728 > iLocal_740)
		{
			iLocal_740 = iLocal_3728;
		}
	}
	if (iLocal_3727 >= (network::_network_get_num_participants_host() - 1))
	{
		if (func_1555() == 0)
		{
			iLocal_741 = (iLocal_739 - iLocal_3729);
		}
		iLocal_3727 = 0;
		iLocal_3728 = 0;
		iLocal_3729 = 0;
	}
}

void func_1442()//Position - 0x9E8A9
{
	if (iLocal_3727 == 0)
	{
	}
}

void func_1443()//Position - 0x9E8B8
{
	int iVar0;
	int iVar1;
	int iVar2;
	int iVar3;
	var uVar4;
	struct<16> Var5;
	int iVar21;
	int iVar22;
	
	iVar2 = 0;
	while (iVar2 < 32)
	{
		vLocal_3562[iVar2 /*3*/] = func_45();
		vLocal_3562[iVar2 /*3*/].f_1 = -1;
		vLocal_3562[iVar2 /*3*/].f_2 = uVar4;
		gameplay::clear_bit(&iLocal_3730, iVar2);
		gameplay::clear_bit(&iLocal_3732, iVar2);
		Local_756[iVar2 /*49*/] = -1;
		Local_756[iVar2 /*49*/].f_1 = func_45();
		iVar2++;
	}
	iVar0 = 0;
	while (iVar0 < network::_network_get_num_participants_host())
	{
		Local_2985[iVar0 /*18*/] = func_1439();
		Local_2985[iVar0 /*18*/].f_1 = -1;
		gameplay::clear_bit(&iLocal_3731, iVar0);
		Local_2985[iVar0 /*18*/].f_2 = { Var5 };
		iVar0++;
	}
	if (network::network_is_host_of_this_script())
	{
		func_1437(0);
	}
	func_1596(0);
	iVar0 = 0;
	while (iVar0 < network::_network_get_num_participants_host())
	{
		if (network::network_is_participant_active(iVar0))
		{
			Local_2985[iVar0 /*18*/] = iVar0;
			gameplay::set_bit(&iLocal_3731, iVar0);
			iVar3 = network::network_get_player_index(Local_2985[iVar0 /*18*/]);
			iVar2 = iVar3;
			if (func_1644(iVar3, 0, 1))
			{
				vLocal_3562[iVar2 /*3*/] = iVar3;
				Local_2985[iVar0 /*18*/].f_1 = iVar2;
				vLocal_3562[iVar2 /*3*/].f_1 = iVar0;
				vLocal_3562[iVar2 /*3*/].f_2 = player::get_player_ped(iVar3);
				StringCopy(&(Local_2985[iVar0 /*18*/].f_2), player::get_player_name(iVar3), 64);
				if (func_663(iVar0))
				{
					iVar1++;
				}
				gameplay::set_bit(&iLocal_3730, iVar2);
				if (entity::is_entity_dead(vLocal_3562[iVar2 /*3*/].f_2, 0))
				{
					gameplay::set_bit(&iLocal_3732, iVar2);
				}
				if (func_1566() == iVar0)
				{
					func_42(entity::get_entity_coords(vLocal_3562[iVar2 /*3*/].f_2, 0));
					if (func_1424(2, iVar0))
					{
						func_1437(5);
					}
					if (iVar0 != network::participant_id_to_int())
					{
						if (!gameplay::is_bit_set(iLocal_3732, Local_2985[iVar2 /*18*/].f_1) && !gameplay::is_bit_set(iLocal_3732, player::player_id()))
						{
							if (ped::is_ped_in_any_vehicle(vLocal_3562[iVar2 /*3*/].f_2, 1))
							{
								if (ped::is_ped_in_any_vehicle(player::player_ped_id(), 1))
								{
									if (!player::_0x690A61A6D13583F6(vLocal_3562[iVar2 /*3*/]))
									{
										iVar21 = ped::get_vehicle_ped_is_using(player::player_ped_id());
										iVar22 = ped::get_vehicle_ped_is_using(vLocal_3562[iVar2 /*3*/].f_2);
										if (entity::does_entity_exist(iVar21))
										{
											if (entity::does_entity_exist(iVar22))
											{
												if (iVar21 == iVar22)
												{
													func_1594(0);
												}
											}
										}
									}
								}
							}
						}
					}
				}
				else if (iVar0 != network::participant_id_to_int())
				{
					if (func_1566() == network::participant_id_to_int())
					{
						if (func_1424(2, func_1566()))
						{
							if (func_1359(iVar2))
							{
								func_1357(iVar2, func_1358(6), 1);
							}
						}
					}
				}
				func_1550(iVar2, 2);
				if (network::network_is_host_of_this_script())
				{
					if (func_7() == -1)
					{
						if (func_1424(3, iVar0))
						{
							func_1549(iVar0);
							func_1548(iVar0);
						}
					}
					if (!func_1424(9, iVar0))
					{
						func_1547(0);
					}
				}
			}
		}
		iVar0++;
	}
	if (iVar1 > iLocal_754)
	{
		iLocal_754 = iVar1;
	}
	if (func_60() == 2 || func_1545())
	{
		if (!func_1371(0, 0) || func_1545())
		{
			iVar2 = 0;
			while (iVar2 < 32)
			{
				if (gameplay::is_bit_set(iLocal_3730, iVar2))
				{
					Local_756[iVar2 /*49*/] = vLocal_3562[iVar2 /*3*/].f_1;
					Local_756[iVar2 /*49*/].f_1 = vLocal_3562[iVar2 /*3*/];
				}
				iVar2++;
			}
			func_1444(&Local_756, &iLocal_2851, 23, &uLocal_2325, &uLocal_2434, -1, 0);
		}
	}
}

void func_1444(int iParam0, int iParam1, int iParam2, var uParam3, var uParam4, int iParam5, int iParam6)//Position - 0x9EBE3
{
	int iVar0;
	int iVar1[32];
	int iVar34;
	int iVar35;
	char* sVar36;
	int iVar37;
	struct<4> Var38;
	int iVar42;
	int iVar43;
	int iVar44;
	float fVar45;
	int iVar46;
	int iVar47;
	int iVar48;
	int iVar49;
	int iVar50;
	int iVar51;
	int iVar52;
	int iVar53;
	int iVar54;
	int iVar55;
	int iVar56;
	
	if (func_1544(iParam2))
	{
		return;
	}
	fVar45 = -1f;
	iVar46 = -1;
	iVar47 = -1;
	iVar49 = 0;
	iVar50 = 0;
	uParam3->f_36 = 0;
	if (func_1543() || iParam2 == 24)
	{
		if (func_1507(iParam1, iParam2, uParam3, Global_1574103, 0, func_1545()))
		{
			func_1506(1);
			if ((!func_1505() && !func_1504()) || gameplay::is_bit_set(Global_2494149.f_4446, 1))
			{
				if (func_1503())
				{
					func_1502();
				}
				else
				{
					graphics::_set_screen_draw_position(76, 84);
					if (uParam3->f_27 == 0)
					{
						func_1501(1);
						Global_1574103 = 0;
						iVar54 = -1;
						if (Global_1574251 != 1)
						{
							func_1500(iParam1);
							if (gameplay::is_bit_set(uParam3->f_33, 7))
							{
								gameplay::clear_bit(&(uParam3->f_33), 7);
							}
						}
						if (iParam2 == 24)
						{
							iVar52 = 0;
							while (iVar52 < 32)
							{
								iVar1[iVar52] = -1;
								iVar52++;
							}
							iVar52 = 0;
							while (iVar52 < 32)
							{
								if (func_1644(player::int_to_playerindex(iVar52), 0, 1))
								{
									iVar35 = player::int_to_playerindex(iVar52);
									if (!func_37(iVar35, 0))
									{
										if ((network::_0x9DE986FC9A87C474(iVar35, player::player_id()) || Global_2421621[iVar35 /*358*/].f_239 != -1) || func_6(iVar35))
										{
											iVar44 = iVar35;
											if (func_56(iVar35))
											{
												iVar1[iVar44] = iVar55;
												iVar55++;
												iVar0++;
												func_1499(&iVar1, iVar35, &iVar55, &iVar0);
											}
										}
									}
								}
								iVar52++;
							}
						}
						if (!func_1496(player::player_id(), 0) && func_834(player::player_id()) != 188)
						{
							iVar34 = iVar0 > 0;
						}
						iVar52 = 0;
						while (iVar52 < 32)
						{
							if (func_1495())
							{
								if (func_1644(player::int_to_playerindex(iVar52), 0, 1))
								{
									iVar35 = player::int_to_playerindex(iVar52);
								}
								else
								{
									iVar35 = func_45();
								}
							}
							else
							{
								iVar35 = (iParam0[iVar52 /*49*/])->f_1;
							}
							if ((func_1494(iVar35) && func_1490(iVar35, iParam2)) && func_1644(iVar35, 0, 1))
							{
								iVar44 = iVar35;
								iVar42 = Global_1589933[iVar44 /*601*/].f_202.f_6;
								Var38 = { func_1485(iVar35) };
								if (iVar35 == player::player_id())
								{
									uParam3->f_35 = iVar53;
								}
								StringCopy(&(uParam3->f_1), player::get_player_name(iVar35), 64);
								*(uParam4[iVar52 /*13*/]) = { func_487(iVar35) };
								iVar37 = func_1479(iVar35);
								sVar36 = "";
								if (iVar37 != 0)
								{
									sVar36 = ped::get_pedheadshot_txd_string(iVar37);
								}
								Global_1574103++;
								if ((iParam0[iVar52 /*49*/])->f_22 != -1f)
								{
									fVar45 = (iParam0[iVar52 /*49*/])->f_22;
								}
								if ((iParam0[iVar52 /*49*/])->f_31 != -1)
								{
									iVar46 = (iParam0[iVar52 /*49*/])->f_31;
								}
								if ((iParam0[iVar52 /*49*/])->f_48 != -1)
								{
									iVar47 = (iParam0[iVar52 /*49*/])->f_48;
								}
								iVar43 = (iParam0[iVar52 /*49*/])->f_9;
								if (((iParam0[iVar52 /*49*/])->f_9 != -1 || (iParam0[iVar52 /*49*/])->f_22 != -1f) || (iParam0[iVar52 /*49*/])->f_31 != -1)
								{
									if (!func_1495())
									{
										iVar50 = 1;
									}
								}
								if (iParam5 != -1)
								{
									func_1474(&iVar43, &fVar45, (iParam0[iVar52 /*49*/])->f_9, iParam5);
									StringCopy(&(uParam3->f_104), func_1473(iParam5, 1, 0, 0), 16);
								}
								if (iParam6)
								{
									iVar48 = (iParam0[iVar52 /*49*/])->f_2 + 1;
									if (iVar54 != iVar48)
									{
										iVar54 = iVar48;
									}
									else
									{
										iVar48 = -2;
									}
								}
								iVar51 = func_1472(iVar35, 0);
								if (iVar34)
								{
									if (func_261(iVar35, 1) && iVar1[iVar44] != -1)
									{
										iVar53 = iVar1[iVar44];
									}
									else
									{
										iVar53 = (iVar0 + iVar56);
										iVar56++;
									}
								}
								uParam3->f_38[iVar44 /*2*/].f_1 = iVar53;
								if (func_1471(iParam5))
								{
									func_1470(iVar35, iParam1, uParam3, iVar53, Var38, sVar36, iVar42, iVar43, iVar51, iVar50, fVar45, iVar43, iVar47, &((iParam0[iVar52 /*49*/])->f_39), &((iParam0[iVar52 /*49*/])->f_43), (iParam0[iVar52 /*49*/])->f_47, iVar48, iParam6);
								}
								else
								{
									func_1470(iVar35, iParam1, uParam3, iVar53, Var38, sVar36, iVar42, iVar43, iVar51, iVar50, fVar45, iVar46, iVar47, &((iParam0[iVar52 /*49*/])->f_39), &((iParam0[iVar52 /*49*/])->f_43), (iParam0[iVar52 /*49*/])->f_47, iVar48, iParam6);
								}
								gameplay::set_bit(&iVar49, iVar35);
								iVar53++;
							}
							iVar52++;
						}
						iVar52 = 0;
						while (iVar52 < 32)
						{
							iVar35 = player::int_to_playerindex(iVar52);
							if (func_1644(iVar35, 0, 1) && !gameplay::is_bit_set(iVar49, iVar35))
							{
								iVar35 = player::int_to_playerindex(iVar52);
							}
							else
							{
								iVar35 = func_45();
							}
							if (func_1494(iVar35))
							{
								if (func_1644(player::int_to_playerindex(iVar52), 0, 1))
								{
									iVar44 = iVar35;
									iVar42 = Global_1589933[iVar44 /*601*/].f_202.f_6;
									Var38 = { func_1485(iVar35) };
									*(uParam4[iVar52 /*13*/]) = { func_487(iVar35) };
									iVar37 = func_1479(iVar35);
									sVar36 = "";
									if (iVar37 != 0)
									{
										sVar36 = ped::get_pedheadshot_txd_string(iVar37);
									}
									Global_1574103++;
									iVar51 = func_1472(iVar35, 1);
									if (iVar34)
									{
										if (func_261(iVar35, 1))
										{
											iVar53 = iVar1[iVar52];
										}
										else
										{
											iVar53 = (iVar0 + iVar56);
											iVar56++;
										}
									}
									uParam3->f_38[iVar44 /*2*/].f_1 = iVar53;
									func_1456(iVar35, player::get_player_name(iVar35), iParam1, uParam3, iVar53, Var38, sVar36, iVar42, iVar51, iVar50);
									iVar53++;
								}
							}
							iVar52++;
						}
						if (gameplay::is_bit_set(uParam3->f_33, 11))
						{
							func_1453(uParam3, iParam1);
						}
						func_9(&(uParam3->f_21));
						func_1452();
						uParam3->f_27 = 2;
					}
					if (uParam3->f_27 == 2)
					{
						if (!gameplay::is_bit_set(uParam3->f_33, 7))
						{
							func_1451(uParam3, iParam1);
							func_1450(iParam1, 0, 1);
							gameplay::set_bit(&(uParam3->f_33), 7);
						}
						func_1451(uParam3, iParam1);
						if (!gameplay::is_bit_set(uParam3->f_33, 11))
						{
							gameplay::set_bit(&(uParam3->f_33), 11);
						}
						if (func_1447(uParam3))
						{
							Global_1574251 = 1;
						}
						func_1445(uParam3);
						if (Global_1574251 == 1)
						{
							uParam3->f_27 = 0;
						}
						if (Global_1574251 == 2)
						{
							uParam3->f_27 = 0;
						}
					}
					if (graphics::has_scaleform_movie_loaded(*iParam1))
					{
						graphics::_set_2d_layer(7);
						graphics::draw_scaleform_movie(*iParam1, 0.122f, 0.3f, 0.28f, 0.6f, 255, 255, 255, 255, 0);
						graphics::_set_2d_layer(4);
					}
				}
			}
		}
		else
		{
			uParam3->f_27 = 0;
			func_1452();
			func_1501(0);
			if (gameplay::is_bit_set(uParam3->f_33, 7))
			{
				gameplay::clear_bit(&(uParam3->f_33), 7);
			}
			if (gameplay::is_bit_set(uParam3->f_33, 10))
			{
				gameplay::clear_bit(&(uParam3->f_33), 10);
			}
		}
	}
	graphics::_0xE3A3DB414A373DAB();
}

void func_1445(var uParam0)//Position - 0x9F232
{
	if (!func_671(&(uParam0->f_21)))
	{
		func_58(&(uParam0->f_21), 0, 0);
	}
	else if (func_57(&(uParam0->f_21), 250, 0))
	{
		func_9(&(uParam0->f_21));
		func_1446(0);
	}
}

void func_1446(int iParam0)//Position - 0x9F26E
{
	if (iParam0)
	{
		if (Global_1574251 != 2)
		{
			Global_1574251 = 2;
		}
	}
	else
	{
		switch (Global_1574251)
		{
			case 0:
				Global_1574251 = 1;
				break;
			
			case 1:
				break;
			
			case 2:
				break;
			}
	}
}

int func_1447(var uParam0)//Position - 0x9F2B4
{
	var uVar0;
	int iVar1;
	struct<13> Var2;
	int iVar15;
	int iVar16;
	
	iVar16 = 0;
	uVar0 = uParam0->f_37;
	iVar15 = player::int_to_playerindex(uParam0->f_37);
	if (iVar15 != func_45() && func_1644(iVar15, 0, 1))
	{
		Var2 = { func_487(iVar15) };
		iVar1 = func_1449(uParam0, uParam0->f_37);
		if (func_856(Var2))
		{
			switch (iVar1)
			{
				case 0:
					if (unk_0x8F5D1AD832AEB06C(&Var2))
					{
						if (network::network_is_gamer_talking(&Var2))
						{
							iVar16 = 1;
							func_1448(uParam0, uVar0, 2);
						}
					}
					else if (network::network_is_gamer_muted_by_me(&Var2))
					{
						iVar16 = 1;
						func_1448(uParam0, uVar0, 1);
					}
					break;
				
				case 2:
					if (unk_0x8F5D1AD832AEB06C(&Var2))
					{
						if (!network::network_is_gamer_talking(&Var2))
						{
							iVar16 = 1;
							func_1448(uParam0, uVar0, 0);
						}
					}
					else
					{
						iVar16 = 1;
						func_1448(uParam0, uVar0, 0);
					}
					break;
				
				case 1:
					if (unk_0x8F5D1AD832AEB06C(&Var2))
					{
						if (!network::network_is_gamer_muted_by_me(&Var2))
						{
							iVar16 = 1;
							func_1448(uParam0, uVar0, 0);
						}
					}
					else if (!network::network_is_gamer_muted_by_me(&Var2))
					{
						iVar16 = 1;
						func_1448(uParam0, uVar0, 0);
					}
					break;
				}
			}
	}
	uParam0->f_37++;
	if (uParam0->f_37 >= 32)
	{
		uParam0->f_37 = 0;
	}
	return iVar16;
}

void func_1448(var uParam0, var uParam1, int iParam2)//Position - 0x9F3E1
{
	uParam0->f_38[uParam1 /*2*/] = iParam2;
}

var func_1449(var uParam0, var uParam1)//Position - 0x9F3F3
{
	return uParam0->f_38[uParam1 /*2*/];
}

void func_1450(int iParam0, int iParam1, int iParam2)//Position - 0x9F403
{
	if (graphics::_push_scaleform_movie_function(*iParam0, "COLLAPSE"))
	{
		graphics::_push_scaleform_movie_function_parameter_bool(iParam1);
		graphics::_pop_scaleform_movie_function_void();
	}
	if (iParam2 == 1)
	{
		if (graphics::_push_scaleform_movie_function(*iParam0, "DISPLAY_VIEW"))
		{
			graphics::_pop_scaleform_movie_function_void();
		}
	}
}

void func_1451(var uParam0, int iParam1)//Position - 0x9F43D
{
	if (!gameplay::is_bit_set(uParam0->f_33, 10))
	{
		graphics::_push_scaleform_movie_function(*iParam1, "SET_HIGHLIGHT");
		graphics::_push_scaleform_movie_function_parameter_int(uParam0->f_35);
		graphics::_pop_scaleform_movie_function_void();
		gameplay::set_bit(&(uParam0->f_33), 10);
	}
}

void func_1452()//Position - 0x9F476
{
	if (Global_1574251 != 0)
	{
		Global_1574251 = 0;
	}
}

void func_1453(var uParam0, int iParam1)//Position - 0x9F48B
{
	int iVar0;
	int iVar1;
	int iVar2;
	
	iVar0 = 0;
	while (iVar0 < 32)
	{
		iVar2 = player::int_to_playerindex(iVar0);
		if (iVar2 != func_45())
		{
			if (func_1644(iVar2, 0, 1))
			{
				if (uParam0->f_38[iVar0 /*2*/].f_1 != -1)
				{
					iVar1 = func_1455(uParam0->f_38[iVar0 /*2*/], 0);
					func_1454(iParam1, uParam0->f_38[iVar0 /*2*/].f_1, iVar1, Global_1589933[iVar0 /*601*/].f_202.f_6);
				}
			}
		}
		iVar0++;
	}
}

void func_1454(var uParam0, int iParam1, int iParam2, int iParam3)//Position - 0x9F4FE
{
	if (graphics::has_scaleform_movie_loaded(*uParam0))
	{
		if (graphics::_push_scaleform_movie_function(*uParam0, "SET_ICON"))
		{
			graphics::_push_scaleform_movie_function_parameter_int(iParam1);
			graphics::_push_scaleform_movie_function_parameter_int(iParam2);
			if (iParam2 == 65)
			{
				graphics::_push_scaleform_movie_function_parameter_int(iParam3);
			}
			graphics::_pop_scaleform_movie_function_void();
		}
	}
}

int func_1455(int iParam0, int iParam1)//Position - 0x9F53C
{
	int iVar0;
	
	iVar0 = 65;
	if (iParam1)
	{
		iVar0 = 116;
	}
	switch (iParam0)
	{
		case 2:
			return 47;
		
		case 1:
			return 49;
		
		default:
	}
	return iVar0;
}

void func_1456(int iParam0, char* sParam1, int iParam2, var uParam3, int iParam4, char* sParam5, var uParam6, var uParam7, var uParam8, char* sParam9, int iParam10, int iParam11, int iParam12)//Position - 0x9F570
{
	int iVar0;
	char* sVar1;
	
	if (iParam4 >= func_1469() && iParam4 < func_1468())
	{
		iParam4 = (iParam4 % 16);
		iVar0 = iParam4 + 1;
		if (Global_1574105)
		{
			iVar0 += 16;
		}
		sVar1 = "SET_DATA_SLOT";
		if (Global_1574251 == 1)
		{
			sVar1 = "UPDATE_SLOT";
		}
		if (graphics::_push_scaleform_movie_function(*iParam2, sVar1))
		{
			graphics::_push_scaleform_movie_function_parameter_int(iParam4);
			if (gameplay::is_bit_set(uParam3->f_33, 8) || uParam3->f_108 == 6)
			{
				func_557("");
			}
			else
			{
				graphics::_push_scaleform_movie_function_parameter_int(iParam10);
			}
			func_557(sParam1);
			graphics::_push_scaleform_movie_function_parameter_int(iParam11);
			if (uParam3->f_108 == 6)
			{
				func_557("");
			}
			else
			{
				graphics::_push_scaleform_movie_function_parameter_int(65);
			}
			graphics::_push_scaleform_movie_function_parameter_int(-1);
			func_557("");
			if (uParam3->f_108 == 6)
			{
				func_557("");
			}
			else
			{
				func_557(&sParam5);
			}
			func_1460(uParam3, iParam0);
			graphics::_push_scaleform_movie_function_parameter_string(sParam9);
			graphics::_push_scaleform_movie_function_parameter_string(sParam9);
			if (func_1459(uParam3))
			{
				func_556("DPAD_FRIEND");
			}
			else if (func_1458(uParam3))
			{
				func_556("DPAD_FRIEND");
			}
			else if (func_1457(uParam3))
			{
				func_556("DPAD_CREW");
			}
			else
			{
				func_556("");
			}
			graphics::_pop_scaleform_movie_function_void();
		}
	}
}

int func_1457(var uParam0)//Position - 0x9F6A4
{
	return gameplay::is_bit_set(uParam0->f_33, 6);
}

int func_1458(var uParam0)//Position - 0x9F6B5
{
	return gameplay::is_bit_set(uParam0->f_33, 5);
}

bool func_1459(var uParam0)//Position - 0x9F6C6
{
	if (func_1458(uParam0) && func_1457(uParam0))
	{
		return true;
	}
	return false;
}

void func_1460(var uParam0, int iParam1)//Position - 0x9F6E7
{
	if (func_1467(iParam1))
	{
		graphics::_push_scaleform_movie_function_parameter_int(121);
	}
	else if (func_1464(iParam1))
	{
		graphics::_push_scaleform_movie_function_parameter_int(122);
	}
	else
	{
		if (func_1461())
		{
			uParam0->f_36 = 0;
		}
		graphics::_push_scaleform_movie_function_parameter_bool(uParam0->f_36);
	}
}

bool func_1461()//Position - 0x9F727
{
	if (network::network_is_activity_session())
	{
		if (func_1462() || func_598())
		{
			return true;
		}
	}
	return false;
}

int func_1462()//Position - 0x9F74C
{
	if (network::network_is_activity_session())
	{
		return func_598();
	}
	return func_1463(Global_1632166.f_86360);
}

bool func_1463(int iParam0)//Position - 0x9F770
{
	int iVar0;
	
	if (iParam0 == 0)
	{
		return false;
	}
	iVar0 = 0;
	while (iVar0 < 8)
	{
		if (Global_262145.f_5054[iVar0] == iParam0)
		{
			return true;
		}
		iVar0++;
	}
	return false;
}

bool func_1464(int iParam0)//Position - 0x9F7AA
{
	if ((func_1644(iParam0, 0, 1) && func_1465()) && func_132(iParam0, 1))
	{
		return true;
	}
	return false;
}

bool func_1465()//Position - 0x9F7D7
{
	if (func_1205(player::player_id()) || func_1466())
	{
		return false;
	}
	return true;
}

bool func_1466()//Position - 0x9F7F9
{
	switch (func_834(player::player_id()))
	{
		case 193:
		case 194:
		case 199:
		case 205:
		case 210:
		case 188:
			return true;
		
		default:
	}
	return false;
}

int func_1467(int iParam0)//Position - 0x9F837
{
	if (func_1461())
	{
		if (func_1644(iParam0, 0, 1))
		{
			return func_56(iParam0);
		}
	}
	if ((func_1644(iParam0, 0, 1) && func_1465()) && func_134(iParam0, 0))
	{
		return true;
	}
	return false;
}

int func_1468()//Position - 0x9F87F
{
	int iVar0;
	
	if (Global_1574105)
	{
		iVar0 = 32;
	}
	else
	{
		iVar0 = 16;
	}
	return iVar0;
}

int func_1469()//Position - 0x9F89B
{
	int iVar0;
	
	iVar0 = 0;
	if (Global_1574105)
	{
		iVar0 = 16;
	}
	return iVar0;
}

void func_1470(int iParam0, int iParam1, var uParam2, int iParam3, char* sParam4, var uParam5, var uParam6, var uParam7, char* sParam8, int iParam9, int iParam10, int iParam11, int iParam12, float fParam13, int iParam14, int iParam15, char* sParam16, char* sParam17, int iParam18, int iParam19, int iParam20)//Position - 0x9F8B3
{
	int iVar0;
	char* sVar1;
	
	if (iParam3 >= func_1469() && iParam3 < func_1468())
	{
		iParam3 = (iParam3 % 16);
		iVar0 = iParam3 + 1;
		if (Global_1574105)
		{
			iVar0 += 16;
		}
		if (iParam20)
		{
			iVar0 = iParam19;
			if (iVar0 == -2)
			{
				iParam10 = -1;
			}
		}
		sVar1 = "SET_DATA_SLOT";
		if (Global_1574251 == 1)
		{
			sVar1 = "UPDATE_SLOT";
		}
		if (graphics::has_scaleform_movie_loaded(*iParam1))
		{
			if (graphics::_push_scaleform_movie_function(*iParam1, sVar1))
			{
				graphics::_push_scaleform_movie_function_parameter_int(iParam3);
				if (gameplay::is_bit_set(uParam2->f_33, 8) || uParam2->f_108 == 6)
				{
					func_557("");
				}
				else
				{
					graphics::_push_scaleform_movie_function_parameter_int(iParam9);
				}
				if (uParam2->f_108 == 6 && !gameplay::is_string_null_or_empty(sParam16))
				{
					func_556(sParam16);
				}
				else
				{
					func_557(&(uParam2->f_1));
				}
				graphics::_push_scaleform_movie_function_parameter_int(iParam11);
				if (uParam2->f_108 == 6)
				{
					func_557("");
				}
				else
				{
					graphics::_push_scaleform_movie_function_parameter_int(65);
				}
				if (iParam12 == 1)
				{
					graphics::_push_scaleform_movie_function_parameter_int(iVar0);
				}
				else
				{
					graphics::_push_scaleform_movie_function_parameter_int(-1);
				}
				if (func_1495())
				{
					func_557("");
				}
				else if (uParam2->f_108 == 6 && !gameplay::is_string_null_or_empty(sParam16))
				{
					graphics::_begin_text_component("FM_AE_ONE_INT");
					ui::_add_text_component_item_string(sParam16);
					ui::add_text_component_integer(iParam18);
					graphics::_end_text_component();
				}
				else if (uParam2->f_108 == 5 && !gameplay::is_string_null_or_empty(sParam16))
				{
					graphics::_begin_text_component("FM_AE_ONE_INT");
					ui::_add_text_component_item_string(sParam16);
					ui::add_text_component_integer(iParam18);
					graphics::_end_text_component();
				}
				else if ((uParam2->f_108 == 7 && !gameplay::is_string_null_or_empty(sParam16)) && !gameplay::is_string_null_or_empty(sParam17))
				{
					graphics::_begin_text_component("FM_AE_TWO_INT");
					ui::_add_text_component_item_string(sParam16);
					ui::_add_text_component_item_string(sParam17);
					ui::add_text_component_integer(iParam18);
					graphics::_end_text_component();
				}
				else if (uParam2->f_108 == 8 && !gameplay::is_string_null_or_empty(&(uParam2->f_104)))
				{
					graphics::_begin_text_component("FM_AE_UNIT");
					if (fParam13 != -1f)
					{
						ui::add_text_component_float(fParam13, 1);
					}
					if (iParam10 != -1)
					{
						ui::add_text_component_integer(iParam10);
					}
					ui::_add_text_component_item_string(&(uParam2->f_104));
					graphics::_end_text_component();
				}
				else if (uParam2->f_108 == 9)
				{
					graphics::_begin_text_component("FM_AE_CASH");
					ui::_add_text_component_substring_cash(iParam10, 1);
					graphics::_end_text_component();
				}
				else if (uParam2->f_108 == 10)
				{
					if (iParam10 == 0)
					{
						graphics::_begin_text_component("FM_AE_CASH");
						ui::_add_text_component_substring_cash(iParam10, 1);
						graphics::_end_text_component();
					}
					else
					{
						graphics::_begin_text_component("FM_NG_CASH");
						ui::_add_text_component_substring_cash(iParam10, 1);
						graphics::_end_text_component();
					}
				}
				else if (iParam15 > -1)
				{
					if (iParam15 == 0 && !gameplay::is_string_null_or_empty(&(uParam2->f_104)))
					{
						func_556(&(uParam2->f_104));
					}
					else
					{
						func_557("");
					}
				}
				else if (iParam14 != -1)
				{
					graphics::_begin_text_component("STRING");
					ui::add_text_component_substring_time(iParam14, 6);
					graphics::_end_text_component();
				}
				else if (fParam13 != -1f)
				{
					graphics::_begin_text_component("NUMBER");
					ui::add_text_component_float(fParam13, 1);
					graphics::_end_text_component();
				}
				else if (iParam10 != -1)
				{
					graphics::_push_scaleform_movie_function_parameter_int(iParam10);
				}
				else
				{
					func_557("");
				}
				if (uParam2->f_108 == 6)
				{
					func_557("");
				}
				else
				{
					func_557(&sParam4);
				}
				func_1460(uParam2, iParam0);
				if (iParam12 == 1 || gameplay::is_string_null_or_empty(sParam8))
				{
					func_557("");
					func_557("");
				}
				else
				{
					graphics::_push_scaleform_movie_function_parameter_string(sParam8);
					graphics::_push_scaleform_movie_function_parameter_string(sParam8);
				}
				if (func_1459(uParam2))
				{
					func_556("DPAD_FRIEND");
				}
				else if (func_1458(uParam2))
				{
					func_556("DPAD_FRIEND");
				}
				else if (func_1457(uParam2))
				{
					func_556("DPAD_CREW");
				}
				else
				{
					func_556("");
				}
				graphics::_pop_scaleform_movie_function_void();
			}
		}
	}
}

bool func_1471(int iParam0)//Position - 0x9FC36
{
	return false;
	switch (iParam0)
	{
		case 11:
		case 12:
			return true;
		
		default:
	}
	return false;
}

int func_1472(int iParam0, int iParam1)//Position - 0x9FC5A
{
	int iVar0;
	int iVar1;
	
	iVar0 = 116;
	if ((!iParam1 && func_1205(iParam0)) && !func_1389(iParam0))
	{
		iVar0 = func_1309();
	}
	iVar1 = func_597(iParam0);
	if (!iVar1 == -1)
	{
		return func_595(iVar1);
	}
	return iVar0;
}

char* func_1473(int iParam0, int iParam1, int iParam2, int iParam3)//Position - 0x9FCA4
{
	switch (iParam0)
	{
		case 0:
		case 3:
		case 4:
		case 5:
		case 1:
		case 6:
		case 9:
		case 10:
		case 13:
		case 11:
		case 12:
			if (gameplay::_0xD3D15555431AB793())
			{
				if (iParam1)
				{
					return "AMCH_M_LB";
				}
				else if (iParam2)
				{
					return "AMCH_M";
				}
				else
				{
					return "AMCH_METRES";
				}
			}
			else if (iParam1)
			{
				return "AMCH_FT_LB";
			}
			else if (iParam2)
			{
				return "AMCH_FT";
			}
			else
			{
				return "AMCH_FEET";
			}
			break;
		
		case 2:
			if (gameplay::_0xD3D15555431AB793())
			{
				if (iParam1)
				{
					return "AMCH_KMH_LB";
				}
				else if (iParam2)
				{
					return "AMCH_KMHN";
				}
				else
				{
					return "AMCH_KMH";
				}
			}
			else if (iParam1)
			{
				return "AMCH_MPH_LB";
			}
			else if (iParam2)
			{
				return "AMCH_MPHN";
			}
			else
			{
				return "AMCH_MPH";
			}
			break;
		
		case 7:
			if (iParam1 || iParam2)
			{
				return "";
			}
			else
			{
				return "AMCH_VEH";
			}
			break;
		
		case 15:
		case 16:
		case 17:
		case 18:
			if (iParam1 || iParam2)
			{
				return "";
			}
			else if (iParam3 != 1)
			{
				return "AMCH_KILLS";
			}
			else
			{
				return "AMCH_KILL";
			}
			break;
	}
	if (iParam1 || iParam2)
	{
		return "";
	}
	return "AMCH_EMPTY";
}

bool func_1474(var uParam0, float fParam1, int iParam2, int iParam3)//Position - 0x9FE44
{
	if (func_1478(iParam3))
	{
		*fParam1 = (func_1475(iParam3, iParam2) / 10f);
		return true;
	}
	if (func_1471(iParam3))
	{
		*fParam1 = (func_1475(iParam3, iParam2) / 1000f);
		return true;
	}
	*uParam0 = iParam2;
	return false;
}

float func_1475(int iParam0, int iParam1)//Position - 0x9FE94
{
	switch (iParam0)
	{
		case 0:
		case 3:
		case 4:
		case 5:
		case 1:
		case 6:
		case 9:
		case 10:
		case 13:
		case 11:
		case 12:
			if (gameplay::_0xD3D15555431AB793())
			{
				return system::to_float(iParam1);
			}
			else
			{
				return func_1477(system::to_float(iParam1));
			}
			break;
		
		case 2:
			if (gameplay::_0xD3D15555431AB793())
			{
				return system::to_float(iParam1);
			}
			else
			{
				return func_1476(system::to_float(iParam1));
			}
			break;
	}
	return system::to_float(iParam1);
}

float func_1476(float fParam0)//Position - 0x9FF37
{
	return (fParam0 / 1.609344f);
}

float func_1477(float fParam0)//Position - 0x9FF47
{
	return (fParam0 / 0.3048f);
}

bool func_1478(int iParam0)//Position - 0x9FF57
{
	switch (iParam0)
	{
		case 0:
		case 2:
		case 3:
		case 5:
		case 4:
		case 1:
		case 6:
		case 9:
		case 10:
		case 13:
		case 11:
		case 12:
			return true;
		
		default:
	}
	return false;
}

int func_1479(int iParam0)//Position - 0x9FFB3
{
	int iVar0;
	
	iVar0 = func_1482(iParam0);
	if (iVar0 == -1)
	{
		func_1480(iParam0, 1);
		return 0;
	}
	Global_1363247[iVar0 /*5*/].f_4 = 1;
	return Global_1363247[iVar0 /*5*/].f_2;
}

void func_1480(int iParam0, int iParam1)//Position - 0x9FFE9
{
	if (!func_1644(iParam0, 0, 1))
	{
		return;
	}
	if (func_1482(iParam0) != -1)
	{
		return;
	}
	if (Global_1363410)
	{
		if (iParam0 == Global_1363410.f_1)
		{
			return;
		}
	}
	if (func_1481(iParam0))
	{
		return;
	}
	if (Global_1363448 >= 32)
	{
		return;
	}
	Global_1363415[Global_1363448] = iParam0;
	Global_1363448++;
	if (iParam1)
	{
	}
}

bool func_1481(int iParam0)//Position - 0xA0056
{
	int iVar0;
	
	iVar0 = 0;
	iVar0 = 0;
	while (iVar0 < Global_1363448)
	{
		if (Global_1363415[iVar0] == iParam0)
		{
			return true;
		}
		iVar0++;
	}
	return false;
}

int func_1482(int iParam0)//Position - 0xA0088
{
	int iVar0;
	
	if (!func_1644(iParam0, 0, 1))
	{
		return -1;
	}
	if (Global_1363408 == 0)
	{
		return -1;
	}
	iVar0 = 0;
	iVar0 = 0;
	while (iVar0 < Global_1363408)
	{
		if (Global_1363247[iVar0 /*5*/].f_1 == iParam0)
		{
			if (ped::is_pedheadshot_valid(Global_1363247[iVar0 /*5*/].f_2) && ped::is_pedheadshot_ready(Global_1363247[iVar0 /*5*/].f_2))
			{
				return iVar0;
			}
			func_1483(iVar0);
			return -1;
		}
		iVar0++;
	}
	return -1;
}

void func_1483(int iParam0)//Position - 0xA0107
{
	char cVar0[64];
	char cVar16[64];
	int iVar32;
	int iVar33;
	
	if (iParam0 >= Global_1363408)
	{
		return;
	}
	if (ped::is_pedheadshot_valid(Global_1363247[iParam0 /*5*/].f_2))
	{
		StringCopy(&cVar0, "CHAR_DEFAULT", 64);
		if (Global_1363247[iParam0 /*5*/].f_2 != 0)
		{
			StringCopy(&cVar16, ped::get_pedheadshot_txd_string(Global_1363247[iParam0 /*5*/].f_2), 64);
			ui::_0x317EBA71D7543F52(&cVar16, &cVar16, &cVar0, &cVar0);
		}
		ped::unregister_pedheadshot(Global_1363247[iParam0 /*5*/].f_2);
	}
	iVar32 = iParam0;
	iVar33 = iVar32 + 1;
	while (iVar33 < Global_1363408)
	{
		Global_1363247[iVar32 /*5*/] = { Global_1363247[iVar33 /*5*/] };
		iVar32++;
		iVar33++;
	}
	func_1484(&(Global_1363247[iVar32 /*5*/]));
	Global_1363408 = (Global_1363408 - 1);
}

void func_1484(var uParam0)//Position - 0xA01BE
{
	*uParam0 = 0;
	uParam0->f_1 = func_45();
	uParam0->f_2 = 0;
	uParam0->f_4 = 0;
	if (network::network_is_game_in_progress())
	{
		uParam0->f_3 = network::get_network_time();
	}
}

struct<4> func_1485(int iParam0)//Position - 0xA01EB
{
	char cVar0[32];
	
	if (func_1644(iParam0, 0, 1))
	{
		Global_2482005 = { func_487(iParam0) };
		if (gameplay::is_durango_version())
		{
			if (func_856(Global_2482005))
			{
				if (!network::_0xB57A49545BA53CE7(&Global_2482005))
				{
					return cVar0;
				}
			}
		}
		else if (!network::_0x72D918C99BCACC54(0))
		{
			return cVar0;
		}
		if (func_1489(&Global_2482005))
		{
			Global_2481935 = { func_1487(iParam0) };
			func_1486(&Global_2481935, &cVar0);
		}
	}
	return cVar0;
}

void func_1486(var uParam0, char* sParam1)//Position - 0xA026C
{
	network::_0xF45352426FF3A4F0(uParam0, 35, sParam1);
}

struct<35> func_1487(int iParam0)//Position - 0xA027E
{
	struct<13> Var0;
	struct<35> Var13;
	
	if (func_1488(iParam0))
	{
		return Global_1315261[player::player_id() /*35*/];
	}
	Var0 = { func_487(iParam0) };
	network::network_clan_player_get_desc(&Var13, 35, &Var0);
	return Var13;
}

bool func_1488(int iParam0)//Position - 0xA02BA
{
	if (iParam0 == player::player_id())
	{
		return true;
	}
	return false;
}

bool func_1489(var uParam0)//Position - 0xA02D0
{
	if (player::is_player_online())
	{
		if (network::_network_player_is_in_clan() && network::network_clan_player_is_active(uParam0))
		{
			return true;
		}
	}
	return false;
}

bool func_1490(int iParam0, int iParam1)//Position - 0xA02F6
{
	if (iParam1 == 23)
	{
		if ((func_668(iParam0) || func_1493(iParam0)) || func_667(iParam0))
		{
			return false;
		}
	}
	if (!func_1492(iParam0))
	{
		return false;
	}
	if ((!func_1491(iParam0) && Global_2421621[iParam0 /*358*/].f_239 == -1) && !func_6(iParam0))
	{
		return false;
	}
	return true;
}

bool func_1491(int iParam0)//Position - 0xA0365
{
	if (func_1644(iParam0, 0, 1))
	{
		if (func_1644(player::player_id(), 0, 1))
		{
			if (network::_0x9DE986FC9A87C474(iParam0, player::player_id()))
			{
				return true;
			}
		}
	}
	return false;
}

int func_1492(int iParam0)//Position - 0xA0397
{
	return gameplay::is_bit_set(Global_1589933[iParam0 /*601*/].f_138, 22);
}

int func_1493(int iParam0)//Position - 0xA03B0
{
	int iVar0;
	
	iVar0 = iParam0;
	if (iVar0 != -1)
	{
		return (gameplay::is_bit_set(Global_1618089[iParam0 /*390*/].f_1, 10) || gameplay::is_bit_set(Global_1618089[iParam0 /*390*/].f_1, 9));
	}
	return false;
}

bool func_1494(int iParam0)//Position - 0xA03EE
{
	int iVar0;
	
	if (iParam0 == func_45())
	{
		return false;
	}
	if (func_37(iParam0, 0))
	{
		return false;
	}
	iVar0 = iParam0;
	if (iVar0 != -1)
	{
		if (gameplay::is_bit_set(Global_1589933[iVar0 /*601*/].f_138, 2))
		{
			return false;
		}
	}
	return true;
}

bool func_1495()//Position - 0xA0433
{
	switch (func_834(player::player_id()))
	{
		case 179:
		case 180:
		case 182:
		case 183:
		case 184:
		case 185:
		case 186:
		case 189:
		case 190:
		case 191:
		case 192:
		case 195:
		case 197:
		case 198:
		case 200:
		case 201:
		case 202:
		case 203:
		case 204:
		case 206:
		case 207:
		case 208:
		case 209:
		case 211:
			return true;
		
		default:
	}
	switch (func_730(player::player_id()))
	{
		case 131:
		case 140:
		case 138:
		case 146:
			return true;
			break;
	}
	if (func_1389(player::player_id()))
	{
		switch (func_834(player::player_id()))
		{
			case 148:
			case 151:
			case 152:
			case 153:
			case 157:
			case 159:
			case 162:
			case 164:
			case 142:
				return true;
				break;
			}
	}
	return false;
}

bool func_1496(int iParam0, int iParam1)//Position - 0xA055E
{
	if (Global_1618089[iParam0 /*390*/].f_11.f_32 != -1 && func_1497(Global_1618089[iParam0 /*390*/].f_11.f_32))
	{
		return true;
	}
	if (iParam1 && Global_1618089[iParam0 /*390*/].f_11.f_31 != -1)
	{
		if (func_1497(Global_1618089[iParam0 /*390*/].f_11.f_31))
		{
			return true;
		}
	}
	return false;
}

int func_1497(int iParam0)//Position - 0xA05C4
{
	switch (iParam0)
	{
		case 155:
		case 160:
		case 153:
		case 162:
		case 154:
		case 163:
		case 171:
		case 172:
			return 1;
		
		default:
	}
	return func_1498(iParam0, 0);
	return 0;
}

bool func_1498(int iParam0, int iParam1)//Position - 0xA0612
{
	switch (iParam0)
	{
		case 199:
		case 205:
		case 210:
		case 211:
			return true;
		
		default:
	}
	if (iParam1 == 0)
	{
		switch (iParam0)
		{
			case 194:
			case 193:
			case 189:
			case 153:
				return true;
			}
		
		default:
	}
	return false;
}

void func_1499(int iParam0, int iParam1, int iParam2, int iParam3)//Position - 0xA0667
{
	int iVar0;
	int iVar1;
	
	iVar0 = 0;
	while (iVar0 < 32)
	{
		if (func_1644(player::int_to_playerindex(iVar0), 0, 1))
		{
			iVar1 = player::int_to_playerindex(iVar0);
			if (!func_37(iVar1, 0))
			{
				if ((network::_0x9DE986FC9A87C474(iVar1, player::player_id()) || Global_2421621[iVar1 /*358*/].f_239 != -1) || func_6(iVar1))
				{
					if (func_514(iVar1, iParam1, 0))
					{
						(*iParam0)[iVar0] = *iParam2;
						*iParam2++;
						*iParam3++;
					}
				}
			}
		}
		iVar0++;
	}
}

void func_1500(int iParam0)//Position - 0xA06F5
{
	if (graphics::has_scaleform_movie_loaded(*iParam0))
	{
		graphics::_push_scaleform_movie_function(*iParam0, "SET_DATA_SLOT_EMPTY");
		graphics::_push_scaleform_movie_function_parameter_int(0);
		graphics::_pop_scaleform_movie_function_void();
	}
}

void func_1501(int iParam0)//Position - 0xA071D
{
	if (iParam0)
	{
		if (Global_1352859.f_2 == 0)
		{
			Global_1352859.f_2 = 1;
		}
	}
	else if (Global_1352859.f_2 == 1)
	{
		Global_1352859.f_2 = 0;
	}
}

void func_1502()//Position - 0xA074F
{
	if (gameplay::is_bit_set(Global_2494149.f_4446, 1))
	{
		if (func_1249())
		{
			func_744();
		}
	}
}

bool func_1503()//Position - 0xA0771
{
	if (gameplay::is_bit_set(Global_2494149.f_4446, 0) && func_1249())
	{
		return true;
	}
	if (gameplay::is_bit_set(Global_2494149.f_4446, 1) && func_1249())
	{
		return true;
	}
	return false;
}

bool func_1504()//Position - 0xA07B2
{
	if (func_1249())
	{
		if (func_710(Global_2433082.f_2199[0 /*76*/].f_1))
		{
			return true;
		}
	}
	return false;
}

bool func_1505()//Position - 0xA07D9
{
	if (func_1249())
	{
		if (func_713(Global_2433082.f_2199[0 /*76*/].f_1))
		{
			return true;
		}
	}
	return false;
}

void func_1506(int iParam0)//Position - 0xA0800
{
	Global_1352859.f_1 = Global_1352859;
	Global_1352859 = iParam0;
}

bool func_1507(int iParam0, int iParam1, var uParam2, var uParam3, int iParam4, int iParam5)//Position - 0xA0818
{
	struct<4> Var0;
	char* sVar4;
	int iVar5;
	int iVar6;
	float fVar7;
	int iVar8;
	
	StringCopy(&Var0, "", 16);
	iVar6 = func_1542(iParam1);
	if (iParam1 == 17)
	{
		iVar5 = true;
	}
	fVar7 = func_1541();
	if (iParam1 == 23 || iParam1 == 24)
	{
		if (func_1540())
		{
			if (func_1539() > 0 && Global_1574105)
			{
				ui::_0x25F87B30C382FCA7();
				ui::_0x55598D21339CB998(fVar7);
				ui::hide_hud_component_this_frame(18);
				if (ui::is_help_message_being_displayed())
				{
					ui::hide_help_text_this_frame();
				}
				ui::hide_hud_component_this_frame(10);
			}
		}
	}
	if (!iParam5)
	{
		if (!func_1532())
		{
			func_1531(iParam0, uParam2, 1);
			return false;
		}
	}
	if (gameplay::is_bit_set(Global_2494149.f_4449, 26))
	{
		func_1531(iParam0, uParam2, 1);
		return false;
	}
	if (!func_671(&(uParam2->f_19)))
	{
		if (func_1539() == 1)
		{
			func_1530(iVar6, iParam0, 0);
			func_58(&(uParam2->f_19), 0, 0);
			func_1531(iParam0, uParam2, 0);
		}
	}
	if (func_671(&(uParam2->f_19)) || iParam5)
	{
		if (ui::is_help_message_being_displayed())
		{
			ui::hide_help_text_this_frame();
		}
		ui::hide_hud_component_this_frame(10);
		if (func_57(&(uParam2->f_19), 10000, 0) || (func_1539() == 0 && !iParam5))
		{
			func_1531(iParam0, uParam2, 1);
			return false;
		}
		else
		{
			if (iVar5 == 0)
			{
				func_1529();
				if (iParam1 == 23 || iParam1 == 24)
				{
					ui::_0x25F87B30C382FCA7();
				}
				ui::hide_hud_component_this_frame(18);
			}
			if (gameplay::is_bit_set(uParam2->f_33, 0))
			{
				Global_1574103 = uParam3;
				Global_1574102 = 1;
				ui::_0x55598D21339CB998(fVar7);
				if (iVar5)
				{
					if (uParam2->f_34 != Global_1574104)
					{
						gameplay::clear_bit(&(uParam2->f_33), 0);
					}
				}
				return true;
			}
			else
			{
				if (iVar5 == 0)
				{
					func_1529();
					if (iParam1 == 23 || iParam1 == 24)
					{
						ui::_0x25F87B30C382FCA7();
					}
					ui::hide_hud_component_this_frame(18);
				}
				ui::_0x55598D21339CB998(fVar7);
				if (func_1530(iVar6, iParam0, 0))
				{
					func_1500(iParam0);
					sVar4 = func_1527(iParam1, &(Global_1632166.f_86367), iParam4);
					Var0 = { func_1525(iParam1) };
					if (iParam4)
					{
						func_1522(iParam0, sVar4, "", 0, -1, -1, 1);
					}
					else if (iParam1 == 23)
					{
						func_1516(iParam0, func_1519(uParam2), func_1517(uParam2), -1);
					}
					else if (iParam1 == 24)
					{
						func_1511(iParam0, func_1513(), func_1512(), -1);
					}
					else if (func_1461())
					{
						uParam2->f_34 = Global_1574104;
						func_1522(iParam0, sVar4, &Var0, 1, -1, Global_1574104, 1);
					}
					else if (iVar5)
					{
						uParam2->f_34 = Global_1574104;
						func_1522(iParam0, sVar4, "", 0, -1, Global_1574104, 1);
					}
					else
					{
						iVar8 = func_1508(iParam1);
						func_1522(iParam0, sVar4, &Var0, 1, iVar8, -1, 1);
					}
					gameplay::set_bit(&(uParam2->f_33), 0);
				}
			}
		}
	}
	return false;
}

int func_1508(int iParam0)//Position - 0xA0AC2
{
	int iVar0;
	
	iVar0 = -1;
	if (func_1510())
	{
		iVar0 = 2;
	}
	switch (iParam0)
	{
		case 0:
			iVar0 = 3;
			break;
		
		case 2:
			iVar0 = 3;
			break;
		
		case 1:
			iVar0 = 6;
			break;
		
		case 3:
			iVar0 = 5;
			break;
		
		case 22:
			iVar0 = 21;
			break;
		
		case 4:
		case 5:
		case 6:
		case 8:
			iVar0 = 4;
			break;
		
		case 7:
			iVar0 = 10;
			break;
		
		case 9:
		case 10:
		case 11:
		case 14:
			iVar0 = 2;
			break;
		
		case 12:
			iVar0 = 17;
			break;
		
		case 13:
			iVar0 = 18;
			break;
		
		case 15:
			if (func_1015(player::player_id()))
			{
				iVar0 = 20;
			}
			if (func_1014(player::player_id()))
			{
				iVar0 = 19;
			}
			break;
	}
	if (func_1509(player::player_id()))
	{
		iVar0 = 2;
	}
	return iVar0;
}

int func_1509(int iParam0)//Position - 0xA0BB5
{
	return Global_2421621[iParam0 /*358*/].f_118 == 4;
}

int func_1510()//Position - 0xA0BCA
{
	return Global_1632166.f_1 == 0;
}

void func_1511(int iParam0, char* sParam1, char* sParam2, int iParam3)//Position - 0xA0BDA
{
	if (graphics::has_scaleform_movie_loaded(*iParam0))
	{
		graphics::_push_scaleform_movie_function(*iParam0, "SET_TITLE");
		if (gameplay::is_string_null_or_empty(sParam2))
		{
			func_556(sParam1);
		}
		else
		{
			graphics::_begin_text_component("FM_AE_BRACKT");
			ui::_add_text_component_item_string(sParam1);
			ui::_add_text_component_item_string(sParam2);
			graphics::_end_text_component();
		}
		func_556("");
		if (iParam3 != -1)
		{
			graphics::_push_scaleform_movie_function_parameter_int(iParam3);
		}
		graphics::_pop_scaleform_movie_function_void();
	}
}

char* func_1512()//Position - 0xA0C3C
{
	switch (func_834(player::player_id()))
	{
		case 163:
			return "BD_SORT_1";
			break;
		
		case 160:
			return "BD_SORT_4";
			break;
		
		case 154:
			return "BD_SORT_3";
			break;
		
		case 155:
			return "BD_SORT_3";
			break;
	}
	return "";
}

char* func_1513()//Position - 0xA0C99
{
	switch (func_834(player::player_id()))
	{
		case 180:
			return "GB_BIGUNLOAD_T";
			break;
		
		case 182:
			return "DEAL_DEALN";
			break;
		
		case 194:
			return "PI_BIK_13_0";
			break;
		
		case 189:
			return "PI_BIK_4_1";
			break;
		
		case 193:
			return "PI_BIK_13_1";
			break;
		
		case 205:
			return "PI_BIK_13_3";
			break;
		
		case 186:
			return "CELL_BIKER_CK";
			break;
		
		case 207:
			return "DV_SH_TITLE";
			break;
		
		case 208:
			return "BA_SH_TITLE";
			break;
		
		case 209:
			return "SHU_SH_TITLE";
			break;
		
		case 210:
			return "PI_BIK_13_4";
			break;
		
		case 183:
			return "CELL_BIKER_RESC";
			break;
		
		case 199:
			return "CELL_BIKER_SEAR";
			break;
		
		case 201:
			return "CELL_BIKER_STAN";
			break;
		
		case 142:
			return "PIM_MAGM210";
			break;
		
		case 163:
			return "PIM_MAGM608";
			break;
		
		case 160:
			return "PIM_MAGM604";
			break;
		
		case 154:
			return "PIM_MAGM602";
			break;
		
		case 155:
			return "PIM_MAGM603";
			break;
		
		case 148:
			if (func_1515())
			{
				return "LBD_BKVBK";
			}
			return "PIM_MAGM201";
			break;
		
		case 151:
			if (func_454(1))
			{
				return "GB_DPAD_BMFD";
			}
			return "PIM_MAGM202";
			break;
		
		case 152:
			return "PIM_MAGM204";
			break;
		
		case 153:
			if (func_454(1))
			{
				return "PI_BIK_3_2";
			}
			return "PIM_MAGM601";
			break;
		
		case 157:
			return "PIM_MAGM207";
			break;
		
		case 159:
			return "PIM_MAGM206";
			break;
		
		case 162:
			return "PIM_MAGM607";
			break;
		
		case 164:
			return "PIM_MAGM212";
			break;
		
		case 166:
			return "GB_DPAD_HEAD";
		
		case 167:
			return "GB_DPAD_BUY";
		
		case 168:
			return "GB_DPAD_SELL";
		
		case 169:
			return "GB_DPAD_DEF";
		
		case 170:
			return "GB_DPAD_AIR";
		
		case 171:
			return "GB_DPAD_CASH";
		
		case 172:
			return "GB_DPAD_SAL";
		
		case 173:
			return "GB_DPAD_FRA";
		
		case 178:
			return "VEX_TITLEa";
		
		case 188:
			return "VEX_TITLEb";
		
		case 218:
			return "FRT_MODE";
		
		case 217:
			return "FRT_TRNS";
		
		case 214:
			return "MODE_PLW";
		
		case 215:
			return "MODE_FUL";
		
		case 216:
			return "MODE_AA";
		
		case 219:
			return "MODE_VEL";
		
		case 220:
			return "MODE_RMP";
		
		case 221:
			return "MODE_STK";
		
		case 195:
			return "GB_STEAL_T";
		
		case 198:
			return "SC_MENU_TITLE";
		
		case 190:
			return "GB_DPAD_BSEL";
		
		case 191:
			return "GB_DPAD_BDEF";
		
		case 185:
			return "GB_DPAD_GFH";
		
		case 197:
			return "GB_DPAD_JB";
		
		case 179:
			return "CELL_JOUST";
		
		case 200:
			return "CAG_BLIP";
		
		case 192:
			if (func_1514(Global_1618089[player::player_id() /*390*/].f_11.f_172))
			{
				return "GB_DPAD_BSET";
			}
			return "GB_DPAD_BBUY";
			break;
	}
	return "";
}

bool func_1514(int iParam0)//Position - 0xA1047
{
	switch (iParam0)
	{
		case 15:
		case 16:
		case 17:
		case 18:
		case 19:
			return true;
		
		default:
	}
	return false;
}

var func_1515()//Position - 0xA1079
{
	return (func_402() && func_448(func_1220()));
}

void func_1516(int iParam0, char* sParam1, char* sParam2, int iParam3)//Position - 0xA1092
{
	if (graphics::has_scaleform_movie_loaded(*iParam0))
	{
		graphics::_push_scaleform_movie_function(*iParam0, "SET_TITLE");
		if (gameplay::is_string_null_or_empty(sParam2))
		{
			func_556(sParam1);
		}
		else if (func_730(player::player_id()) == 133)
		{
			graphics::_begin_text_component("FM_AE_BRACKT_C");
			ui::_add_text_component_item_string(sParam1);
			ui::_add_text_component_item_string(sParam2);
			graphics::_end_text_component();
		}
		else
		{
			graphics::_begin_text_component("FM_AE_BRACKT");
			ui::_add_text_component_item_string(sParam1);
			ui::_add_text_component_item_string(sParam2);
			graphics::_end_text_component();
		}
		func_556("");
		if (iParam3 != -1)
		{
			graphics::_push_scaleform_movie_function_parameter_int(iParam3);
		}
		graphics::_pop_scaleform_movie_function_void();
	}
}

char* func_1517(var uParam0)//Position - 0xA111D
{
	int iVar0;
	
	iVar0 = func_730(player::player_id());
	if (func_1518())
	{
		if (uParam0->f_103 != -1)
		{
			iVar0 = uParam0->f_103;
		}
	}
	switch (iVar0)
	{
		case 131:
			return "";
		
		case 132:
			return "FM_AE_SORT_5";
		
		case 133:
			switch (func_729())
			{
				case 0:
					return "FM_AE_SORT_2";
				
				case 1:
					return "FM_AE_SORT_2";
				
				case 2:
					return "FM_AE_SORT_3";
				
				case 3:
					return "FM_AE_SORT_2";
				
				case 4:
					return "FM_AE_SORT_2";
				
				case 5:
					return "FM_AE_SORT_2";
				
				case 6:
					return "FM_AE_SORT_2";
				
				case 7:
					return "FM_AE_SORT_13";
				
				case 8:
					return "FM_AE_SORT_4";
				
				case 9:
					return "FM_AE_SORT_2";
				
				case 10:
					return "FM_AE_SORT_2";
				
				case 11:
					return "FM_AE_SORT_2";
				
				case 12:
					return "FM_AE_SORT_2";
				
				case 13:
					return "FM_AE_SORT_2";
				
				case 14:
					return "FM_AE_SORT_5";
				
				case 15:
					return "FM_AE_SORT_9";
				
				case 16:
					return "FM_AE_SORT_9";
				
				case 17:
					return "FM_AE_SORT_9";
				
				case 18:
					return "FM_AE_SORT_9";
				
				default:
			}
			break;
		
		case 136:
			return "";
		
		case 138:
			return "";
		
		case 139:
			return "FM_AE_SORT_10";
		
		case 140:
			return "";
		
		case 141:
			return "FM_AE_SORT_5";
		
		case 144:
			return "FM_AE_SORT_1";
		
		case 129:
			return "FM_AE_SORT_9";
	}
	return "";
}

var func_1518()//Position - 0xA12E5
{
	return Global_1589821;
}

char* func_1519(var uParam0)//Position - 0xA12F1
{
	int iVar0;
	
	iVar0 = func_730(player::player_id());
	if (func_1518())
	{
		if (uParam0->f_103 != -1)
		{
			iVar0 = uParam0->f_103;
		}
	}
	switch (iVar0)
	{
		case 131:
			return "PIM_TA9";
		
		case 132:
			if (func_1521() == 0)
			{
				return "CPC_TILEL";
			}
			else if (func_1521() == 1)
			{
				return "CPC_TILELA";
			}
			return "PIM_TA0";
			break;
		
		case 133:
			switch (func_729())
			{
				case 0:
					return "AMCH_0SLC";
				
				case 1:
					return "AMCH_1SLC";
				
				case 2:
					return "AMCH_2SLC";
				
				case 3:
					return "AMCH_3SLC";
				
				case 4:
					return "AMCH_4SLC";
				
				case 5:
					return "AMCH_5SLC";
				
				case 6:
					return "AMCH_6SLC";
				
				case 7:
					return "AMCH_7SLC";
				
				case 8:
					return "AMCH_8SLC";
				
				case 9:
					return "AMCH_12SLC";
				
				case 10:
					return "AMCH_13SLC";
				
				case 11:
					return "AMCH_15SLC";
				
				case 12:
					return "AMCH_16SLC";
				
				case 13:
					return "AMCH_23SLC";
				
				case 14:
					return "AMCH_9SLC";
				
				case 15:
					return "AMCH_19SLC";
				
				case 16:
					return "AMCH_20SLC";
				
				case 17:
					return "AMCH_21SLC";
				
				case 18:
					return "AMCH_22SLC";
				
				default:
			}
			break;
		
		case 136:
			return "PIM_TA10";
		
		case 138:
			return "PIM_TA4";
		
		case 139:
			return "PIM_TA5";
		
		case 140:
			return "PIM_TA3";
		
		case 141:
			return "PIM_TA8";
		
		case 144:
			return "PIM_TA2";
		
		case 129:
			if (func_1520() == 1)
			{
				return "FM_AE_TITL_12";
			}
			else
			{
				return "PIM_TA7";
			}
			break;
		
		case 146:
			return "PIM_TA6";
	}
	return "";
}

var func_1520()//Position - 0xA1507
{
	return Global_2494149.f_4695;
}

int func_1521()//Position - 0xA1516
{
	if (func_730(player::player_id()) == 132)
	{
		return Global_2494149.f_4690;
	}
	return -1;
}

void func_1522(int iParam0, char* sParam1, char* sParam2, int iParam3, int iParam4, int iParam5, int iParam6)//Position - 0xA1539
{
	int iVar0;
	int iVar1;
	
	if (graphics::has_scaleform_movie_loaded(*iParam0))
	{
		graphics::_push_scaleform_movie_function(*iParam0, "SET_TITLE");
		if (iParam3)
		{
			func_557(sParam1);
		}
		else if (iParam5 != -1)
		{
			graphics::_begin_text_component(sParam1);
			ui::add_text_component_integer(iParam5);
			graphics::_end_text_component();
		}
		else
		{
			func_556(sParam1);
		}
		if (func_1540() && iParam6)
		{
			if (func_1524())
			{
				iVar0 = 2;
				iVar1 = 2;
			}
			else
			{
				iVar0 = 1;
				iVar1 = 2;
			}
			graphics::_begin_text_component("LBD_DPD_CNT");
			ui::add_text_component_integer(iVar0);
			ui::add_text_component_integer(iVar1);
			graphics::_end_text_component();
		}
		else
		{
			func_556(sParam2);
		}
		if (iParam4 != -1)
		{
			graphics::_push_scaleform_movie_function_parameter_int(iParam4);
			if (func_1523(player::player_id()))
			{
				graphics::_push_scaleform_movie_function_parameter_int(166);
			}
		}
		graphics::_pop_scaleform_movie_function_void();
	}
}

bool func_1523(int iParam0)//Position - 0xA15EC
{
	if (func_1015(iParam0) || func_1014(iParam0))
	{
		return true;
	}
	return false;
}

var func_1524()//Position - 0xA160E
{
	return Global_1574105;
}

struct<4> func_1525(int iParam0)//Position - 0xA161A
{
	struct<4> Var0;
	
	StringCopy(&Var0, "", 16);
	if (func_1526(player::player_id()) || func_1509(player::player_id()))
	{
		return Var0;
	}
	switch (iParam0)
	{
		case 9:
		case 10:
		case 11:
		case 14:
		case 12:
		case 13:
		case 15:
			StringCopy(&Var0, "LBD_DIF_", 16);
			StringIntConCat(&Var0, Global_1632166.f_27, 16);
			break;
	}
	if (func_1461() && network::network_is_activity_session())
	{
		StringCopy(&Var0, "LBD_DIF_", 16);
		StringIntConCat(&Var0, Global_1632166.f_27, 16);
	}
	return Var0;
}

int func_1526(int iParam0)//Position - 0xA16B8
{
	return Global_2421621[iParam0 /*358*/].f_118 == 5;
}

char* func_1527(int iParam0, char* sParam1, int iParam2)//Position - 0xA16CD
{
	var uVar0;
	
	if (iParam0 == 17 && (!func_1461() || gameplay::is_string_null_or_empty(sParam1)))
	{
		uVar0 = func_1528();
		return uVar0;
	}
	else if (iParam2)
	{
		return "HUD_LBD_IMP";
	}
	else if (iParam0 == 21)
	{
		if (Global_1574269 == 0)
		{
			Global_1574269 = 1;
		}
		return "HUD_LBD_OVR";
	}
	else if (!gameplay::is_string_null_or_empty(sParam1))
	{
		if (Global_1574269 == 1)
		{
			Global_1574269 = 0;
		}
		return sParam1;
	}
	else
	{
		if (Global_1574269 == 0)
		{
			Global_1574269 = 1;
		}
		switch (iParam0)
		{
			case 0:
				return "HUD_LBD_DM";
				break;
			
			case 1:
				return "HUD_LBD_TDM";
				break;
			
			case 5:
				return "HUD_LBD_GRCE";
				break;
			
			case 4:
			case 6:
			case 22:
				return "HUD_LBD_RCE";
				break;
			
			case 7:
				return "HUD_LBD_BRCE";
				break;
			
			case 15:
			case 11:
			case 14:
			case 12:
			case 10:
			case 9:
			case 13:
			case 16:
				return "HUD_TITLEMC";
				break;
			
			case 3:
				return "HUD_LBD_HRD";
				break;
			
			case 18:
				return "HUD_LBD_SHOO";
				break;
			}
	}
	return sParam1;
}

char* func_1528()//Position - 0xA1823
{
	if (network::_0xFBCFA2EA2E206890())
	{
		return "HUD_LBD_FMF";
	}
	if (network::_0x74732C6CA90DA2B4())
	{
		return "HUD_LBD_FMC";
	}
	if (network::_0xF3929C2379B60CCE())
	{
		return "HUD_LBD_FMS";
	}
	if (network::_0xCEF70AA5B3F89BA1())
	{
		return "HUD_LBD_FMI";
	}
	return "HUD_LBD_FMP";
}

void func_1529()//Position - 0xA186C
{
	Global_36680 = 1;
}

int func_1530(int iParam0, int iParam1, int iParam2)//Position - 0xA1878
{
	if (iParam0)
	{
		*iParam1 = unk_0x67D02A194A2FC2BD("mp_mm_card_freemode");
	}
	else if (iParam2)
	{
		*iParam1 = unk_0x67D02A194A2FC2BD("MP_SPECTATOR_CARD");
	}
	else
	{
		*iParam1 = unk_0x67D02A194A2FC2BD("mp_matchmaking_card");
	}
	return graphics::has_scaleform_movie_loaded(*iParam1);
}

void func_1531(int iParam0, var uParam1, int iParam2)//Position - 0xA18BB
{
	gameplay::clear_bit(&(uParam1->f_33), 7);
	Global_1574103 = 0;
	func_1452();
	Global_1574102 = 0;
	uParam1->f_27 = 0;
	if (iParam2)
	{
		if (func_671(&(uParam1->f_19)))
		{
			func_9(&(uParam1->f_19));
		}
	}
	if (graphics::has_scaleform_movie_loaded(*iParam0))
	{
		graphics::set_scaleform_movie_as_no_longer_needed(iParam0);
	}
	if (gameplay::is_bit_set(uParam1->f_33, 0))
	{
		gameplay::clear_bit(&(uParam1->f_33), 0);
	}
	ui::_0x55598D21339CB998(0f);
}

bool func_1532()//Position - 0xA1921
{
	if (func_1538())
	{
		return false;
	}
	if (func_403())
	{
		return false;
	}
	if (!func_1536())
	{
		return false;
	}
	if (!func_544())
	{
		return false;
	}
	if (func_1535(8, -1))
	{
		return false;
	}
	if (func_1539() == 2)
	{
		return false;
	}
	if (Global_2494149.f_4407)
	{
		return false;
	}
	if (func_726())
	{
		return false;
	}
	else if (!func_501(player::player_id(), 1) && Global_1311716[0 /*4*/] > 0)
	{
		return false;
	}
	if (((func_1534(1) || func_1533(1)) || Global_17151.f_124) || Global_17151)
	{
		return false;
	}
	if (ui::is_pause_menu_active())
	{
		return false;
	}
	if (func_1592(player::player_id()))
	{
		return false;
	}
	if (Global_1747153)
	{
		return false;
	}
	if (Global_1747156)
	{
		return false;
	}
	if (func_525(0))
	{
		return false;
	}
	if (gameplay::is_bit_set(Global_1589933[player::player_id() /*601*/].f_257.f_13, 4))
	{
		return false;
	}
	return true;
}

bool func_1533(int iParam0)//Position - 0xA1A30
{
	if (controls::_0xFC859E2374407556())
	{
		if (!ped::is_ped_injured(player::player_ped_id()))
		{
			if (func_1335(player::player_ped_id()))
			{
				if (controls::is_control_pressed(0, 25) || controls::is_control_pressed(0, 68))
				{
					return false;
				}
			}
		}
	}
	if (Global_17151.f_130)
	{
		return false;
	}
	if (controls::is_control_pressed(0, 19) || (!iParam0 && controls::is_disabled_control_pressed(0, 19)))
	{
		return true;
	}
	if (gameplay::is_pc_version())
	{
		if (((controls::is_control_pressed(0, 166) || controls::is_control_pressed(0, 167)) || controls::is_control_pressed(0, 168)) || controls::is_control_pressed(0, 169))
		{
			return true;
		}
		if (!iParam0)
		{
			if (((controls::is_disabled_control_pressed(0, 166) || controls::is_disabled_control_pressed(0, 167)) || controls::is_disabled_control_pressed(0, 168)) || controls::is_disabled_control_pressed(0, 169))
			{
				return true;
			}
		}
	}
	return false;
}

int func_1534(int iParam0)//Position - 0xA1B1B
{
	if (iParam0)
	{
		return (Global_17151.f_4 && Global_17151.f_104 == 4);
	}
	return Global_17151.f_4;
}

int func_1535(int iParam0, int iParam1)//Position - 0xA1B44
{
	switch (iParam0)
	{
		case 5:
			if (iParam1 > -1)
			{
				return Global_1352862.f_203[iParam1];
			}
			break;
	}
	return gameplay::is_bit_set(Global_1352862.f_1015, iParam0);
}

bool func_1536()//Position - 0xA1B7F
{
	if (func_1537())
	{
		return true;
	}
	if (cam::is_screen_faded_out())
	{
		return false;
	}
	if (cam::is_screen_fading_out() || cam::is_screen_fading_in())
	{
		return false;
	}
	if (gameplay::is_frontend_fading())
	{
		return false;
	}
	return true;
}

var func_1537()//Position - 0xA1BBE
{
	return Global_1312434;
}

int func_1538()//Position - 0xA1BCA
{
	return gameplay::get_game_timer() <= Global_17290.f_5745 + 100;
}

var func_1539()//Position - 0xA1BDF
{
	return Global_1352862.f_68;
}

bool func_1540()//Position - 0xA1BED
{
	if (Global_1574104 > 16)
	{
		return true;
	}
	return false;
}

float func_1541()//Position - 0xA1C03
{
	float fVar0;
	float fVar1;
	float fVar2;
	
	fVar2 = 0.6347182f;
	fVar1 = (1f - (1f - graphics::get_safe_zone_size()));
	fVar0 = (1f - (fVar1 - fVar2));
	return fVar0;
}

bool func_1542(int iParam0)//Position - 0xA1C27
{
	switch (iParam0)
	{
		case 17:
		case 23:
		case 24:
			return true;
			break;
	}
	return false;
}

bool func_1543()//Position - 0xA1C50
{
	if (func_1545())
	{
		return true;
	}
	if (func_667(player::player_id()))
	{
		return false;
	}
	if (func_1518())
	{
		return true;
	}
	if (func_1205(player::player_id()))
	{
		switch (func_730(player::player_id()))
		{
			case 131:
			case 132:
			case 133:
			case 136:
			case 138:
			case 139:
			case 141:
			case 144:
			case 146:
				return true;
				break;
			
			case 140:
				if (!func_1345(player::player_id()))
				{
					return true;
				}
				break;
			
			case 129:
				if (!func_1345(player::player_id()))
				{
					return true;
				}
				break;
			
			case 174:
				if (!func_1345(player::player_id()))
				{
					return true;
				}
				break;
			
			case 175:
				return true;
				break;
			}
	}
	return false;
}

bool func_1544(int iParam0)//Position - 0xA1D2B
{
	if ((iParam0 == 24 && func_1205(player::player_id())) && !func_1389(player::player_id()))
	{
		return true;
	}
	if (iParam0 == 23)
	{
		if (func_707(player::player_id(), 0) && func_1389(player::player_id()))
		{
			return true;
		}
		if (func_1384(player::player_id()) == 3)
		{
			return true;
		}
	}
	return false;
}

int func_1545()//Position - 0xA1D8F
{
	if (func_1546(player::player_id()))
	{
		return Global_1318164;
	}
	return 0;
}

int func_1546(int iParam0)//Position - 0xA1DAA
{
	if (network::network_is_game_in_progress())
	{
		if (func_37(iParam0, 0))
		{
			return network::network_player_is_rockstar_dev(iParam0);
		}
	}
	return false;
}

void func_1547(int iParam0)//Position - 0xA1DCD
{
	gameplay::clear_bit(&(Local_653.f_83), iParam0);
}

void func_1548(int iParam0)//Position - 0xA1DE0
{
	Local_653.f_1.f_15 = iParam0;
}

void func_1549(int iParam0)//Position - 0xA1DF1
{
	Local_653.f_1.f_14 = iParam0;
}

void func_1550(int iParam0, int iParam1)//Position - 0xA1E02
{
	int iVar0;
	
	if (gameplay::is_bit_set(Global_1574332.f_1, 0))
	{
		return;
	}
	if (func_671(&(Global_1574332.f_18)))
	{
		return;
	}
	if (gameplay::is_bit_set(Global_1574332.f_2, iParam0))
	{
		if (Global_1574332 < iParam1 && gameplay::is_bit_set(Global_1574332.f_1, 1))
		{
			gameplay::set_bit(&(Global_1574332.f_1), 0);
			return;
		}
		if (Global_1574332 != 0)
		{
			gameplay::set_bit(&(Global_1574332.f_1), 1);
		}
		Global_1574332 = 0;
		Global_1574332.f_2 = 0;
	}
	gameplay::set_bit(&(Global_1574332.f_2), iParam0);
	iVar0 = true;
	if (func_668(iParam0))
	{
		iVar0 = false;
	}
	if (func_1551(iParam0))
	{
		iVar0 = false;
	}
	if (func_37(iParam0, 0))
	{
		iVar0 = false;
	}
	if (func_667(iParam0))
	{
		iVar0 = false;
	}
	if (iVar0)
	{
		Global_1574332++;
	}
}

int func_1551(int iParam0)//Position - 0xA1ED0
{
	return gameplay::is_bit_set(Global_1618089[iParam0 /*390*/].f_1, 10);
}

bool func_1552(int iParam0, int iParam1, int iParam2, char* sParam3, char* sParam4)//Position - 0xA1EE9
{
	if (network::_0xCF61D4B4702EE9EB() < iParam0)
	{
		if (iParam2)
		{
			func_1554(sParam3, sParam4, 1);
		}
		if (func_1262(26, -1))
		{
			func_1280(26, -1);
		}
		return true;
	}
	if (func_671(&(Global_1574332.f_18)))
	{
		if (!func_57(&(Global_1574332.f_18), 7500, 0))
		{
			return false;
		}
		func_9(&(Global_1574332.f_18));
	}
	if (func_1553())
	{
		if (iParam2)
		{
			func_1554(sParam3, sParam4, 0);
		}
		if (func_1262(26, -1))
		{
			func_1280(26, -1);
		}
		return true;
	}
	if (iParam1 && network::network_get_num_participants() < iParam0)
	{
		if (iParam2)
		{
			func_1554(sParam3, sParam4, 1);
		}
		if (func_1262(26, -1))
		{
			func_1280(26, -1);
		}
		return true;
	}
	return false;
}

int func_1553()//Position - 0xA1FA9
{
	return gameplay::is_bit_set(Global_1574332.f_1, 0);
}

void func_1554(char* sParam0, char* sParam1, int iParam2)//Position - 0xA1FBC
{
	if ((!gameplay::is_bit_set(Global_1574332.f_1, 2) && !func_668(player::player_id())) && !func_667(player::player_id()))
	{
		if (gameplay::is_string_null_or_empty(sParam0))
		{
			sParam0 = "FMEVEN_NUM1";
		}
		if (gameplay::is_string_null_or_empty(sParam1))
		{
			if (iParam2)
			{
				sParam1 = "FMEVEN_NUM2";
			}
			else
			{
				sParam1 = "FMEVEN_NUM3";
			}
		}
		func_1308(65, sParam0, sParam1, 1, -1, 2);
		gameplay::set_bit(&(Global_1574332.f_1), 2);
	}
}

var func_1555()//Position - 0xA2037
{
	return Local_653.f_1.f_18;
}

int func_1556()//Position - 0xA2046
{
	return gameplay::is_bit_set(Global_2443860.f_1.f_2809, 3);
}

int func_1557()//Position - 0xA205C
{
	return gameplay::is_bit_set(Global_2443089, 5);
}

void func_1558(int iParam0)//Position - 0xA206D
{
	Local_2854[network::participant_id_to_int() /*4*/] = iParam0;
}

void func_1559(int iParam0)//Position - 0xA2080
{
	gameplay::set_bit(&iLocal_2983, iParam0);
}

bool func_1560()//Position - 0xA2091
{
	if (((func_1564() || func_1563()) || func_1562()) || func_1561())
	{
		return true;
	}
	return false;
}

int func_1561()//Position - 0xA20C3
{
	return gameplay::is_bit_set(Global_2443089, 1);
}

int func_1562()//Position - 0xA20D4
{
	return gameplay::is_bit_set(Global_2443089, 2);
}

int func_1563()//Position - 0xA20E5
{
	return gameplay::is_bit_set(Global_2443089, 20);
}

var func_1564()//Position - 0xA20F7
{
	return Global_2443089.f_577;
}

var func_1565(int iParam0)//Position - 0xA2106
{
	return Local_2854[iParam0 /*4*/];
}

var func_1566()//Position - 0xA2115
{
	return Local_653.f_1.f_6;
}

void func_1567()//Position - 0xA2124
{
	if (gameplay::is_bit_set(Global_1574332.f_1, 6))
	{
		func_1586();
		gameplay::clear_bit(&(Global_1574332.f_1), 6);
	}
	if (!gameplay::is_bit_set(Global_1574332.f_1, 7))
	{
		if (gameplay::is_bit_set(Global_1574332.f_1, 4) || gameplay::is_bit_set(Global_1574332.f_1, 16))
		{
			if (((!ui::is_radar_hidden() && !ui::is_help_message_being_displayed()) && !func_1249()) && func_1644(player::player_id(), 1, 1))
			{
				gameplay::set_bit(&(Global_1574332.f_1), 7);
				func_1327("FME_PASINT", 30000);
				func_1326(1);
			}
		}
		else if (gameplay::is_bit_set(Global_1574332.f_1, 17))
		{
			if (func_507() && !func_666())
			{
				gameplay::clear_bit(&(Global_1574332.f_1), 17);
				gameplay::set_bit(&(Global_1574332.f_1), 16);
			}
		}
	}
	if (!gameplay::is_bit_set(Global_1574332.f_1, 23))
	{
		if (((((!ui::is_radar_hidden() && !gameplay::is_bit_set(Global_2494149.f_743, 2)) && func_1644(player::player_id(), 1, 1)) && !Global_68127) && !Global_52999) && !ui::is_help_message_being_displayed())
		{
			if (func_1584())
			{
				func_1327("AMEV_GA_RP", -1);
				if (func_834(player::player_id()) != 200)
				{
					func_1326(1);
				}
				gameplay::set_bit(&(Global_1574332.f_1), 23);
			}
		}
	}
	if (ui::is_pause_menu_active() && ui::get_pause_menu_state() == 15)
	{
		if (func_1286(player::player_id()))
		{
			if (!ui::_0x84698AB38D0C6636(1344549371))
			{
				ui::_0xDD564BDD0472C936(1344549371);
			}
		}
		else if (ui::_0x84698AB38D0C6636(1344549371))
		{
			ui::object_decal_toggle(1344549371);
		}
	}
	if (gameplay::is_bit_set(Global_1574332.f_1, 9))
	{
		if ((((!ui::is_radar_hidden() && !ui::is_help_message_being_displayed()) && !func_1249()) && func_1644(player::player_id(), 1, 1)) && !func_665(player::player_id(), 21))
		{
			gameplay::clear_bit(&(Global_1574332.f_1), 9);
			func_1583(0);
			func_1327("FME_TBL00", -1);
			func_1326(1);
		}
	}
	if (func_1205(player::player_id()))
	{
		if (!gameplay::is_bit_set(Global_1574332.f_1, 18))
		{
			if ((func_665(player::player_id(), 21) && gameplay::is_bit_set(Global_1574332.f_1, 20)) && !gameplay::is_bit_set(Global_1574332.f_1, 19))
			{
				gameplay::set_bit(&(Global_1574332.f_1), 18);
			}
		}
		else if (gameplay::is_bit_set(Global_1574332.f_1, 18))
		{
			if (((((!ui::is_radar_hidden() && !ui::is_help_message_being_displayed()) && !func_1249()) && func_1644(player::player_id(), 1, 1)) && cam::is_screen_faded_in()) && !Global_2494149.f_4704)
			{
				gameplay::clear_bit(&(Global_1574332.f_1), 18);
				gameplay::set_bit(&(Global_1574332.f_1), 19);
				func_1327("AMTT_RPAS", -1);
				func_1326(1);
			}
		}
	}
	if (((((func_1205(player::player_id()) && !func_668(player::player_id())) && func_730(player::player_id()) != 146) && !func_667(player::player_id())) && !func_664(player::player_id())) && !func_1577())
	{
		if (func_1294(func_730(player::player_id())))
		{
			unk_0xFAC75988A7D078D3(player::player_id());
		}
		if (!gameplay::is_bit_set(Global_1574332.f_1, 22))
		{
			gameplay::set_bit(&(Global_1574332.f_1), 22);
		}
		if (func_1385(player::player_id()) || func_1290())
		{
			if (!gameplay::is_bit_set(Global_1574332.f_1, 10))
			{
				if (func_1575(func_730(player::player_id())))
				{
					if (func_562(0) && !Global_2391043)
					{
						gameplay::set_bit(&(Global_1574332.f_1), 9);
					}
					if (!Global_2391043)
					{
						func_1239(1);
						gameplay::set_bit(&(Global_1574332.f_1), 14);
					}
				}
				gameplay::set_bit(&(Global_1574332.f_1), 10);
			}
		}
		if (func_1286(player::player_id()))
		{
			if (!gameplay::is_bit_set(Global_1574332.f_1, 11))
			{
				if (!Global_91538.f_8)
				{
					gameplay::set_bit(&(Global_1574332.f_1), 12);
					func_1292(1);
				}
				if (!func_1574())
				{
					gameplay::set_bit(&(Global_1574332.f_1), 13);
					func_1291();
				}
				if (!Global_2391043)
				{
					gameplay::set_bit(&(Global_1574332.f_1), 14);
					if (func_562(0) && !Global_2391043)
					{
						gameplay::set_bit(&(Global_1574332.f_1), 9);
					}
					func_1239(1);
				}
				gameplay::set_bit(&(Global_1574332.f_1), 11);
			}
		}
		else
		{
			func_1572(0);
		}
	}
	else
	{
		func_1572(1);
	}
	func_1568();
	if (func_1289(func_730(player::player_id())) && !gameplay::is_bit_set(Global_1574332.f_1, 21))
	{
		gameplay::set_bit(&(Global_1574332.f_1), 21);
	}
	if ((func_507() && !func_666()) || func_665(player::player_id(), 21))
	{
		if (!gameplay::is_bit_set(Global_1618089[player::player_id() /*390*/].f_1, 10))
		{
			gameplay::set_bit(&(Global_1618089[player::player_id() /*390*/].f_1), 10);
		}
	}
	else if (gameplay::is_bit_set(Global_1618089[player::player_id() /*390*/].f_1, 10))
	{
		gameplay::clear_bit(&(Global_1618089[player::player_id() /*390*/].f_1), 10);
	}
}

void func_1568()//Position - 0xA2648
{
	int iVar0;
	int iVar1;
	int iVar2;
	
	if (func_1249())
	{
		iVar2 = 62;
		iVar2 = 0;
		while (iVar2 < 82)
		{
			if (func_1307(iVar2))
			{
				iVar0 = iVar2;
				if (iVar0 == 62 || iVar0 >= 80)
				{
					iVar1 = 15000;
				}
				else
				{
					iVar1 = 3000;
				}
				if (gameplay::is_bit_set(Global_1574332.f_1, 26))
				{
					gameplay::clear_bit(&(Global_1574332.f_1), 26);
				}
				func_1569(iVar0, iVar1);
				iVar2 = 82;
			}
			iVar2++;
		}
	}
	else if (!gameplay::is_bit_set(Global_1574332.f_1, 26))
	{
		func_9(&(Global_1574332.f_22));
		gameplay::set_bit(&(Global_1574332.f_1), 26);
	}
}

void func_1569(int iParam0, int iParam1)//Position - 0xA26EB
{
	if (!func_671(&(Global_1574332.f_22)))
	{
		func_58(&(Global_1574332.f_22), 0, 0);
	}
	else if (func_57(&(Global_1574332.f_22), iParam1, 0))
	{
		if (func_1539() > 0)
		{
			func_742(iParam0);
			if (func_394("AMEV_LBD_HELP"))
			{
				ui::clear_help(1);
			}
			func_9(&(Global_1574332.f_22));
		}
	}
	else
	{
		func_1571(0);
		func_1570();
	}
}

void func_1570()//Position - 0xA2755
{
	Global_2494149.f_4394 = 0;
}

void func_1571(int iParam0)//Position - 0xA2765
{
	Global_1352862.f_68 = iParam0;
}

void func_1572(int iParam0)//Position - 0xA2775
{
	if ((gameplay::is_bit_set(Global_1574332.f_1, 11) || (gameplay::is_bit_set(Global_1574332.f_1, 10) && iParam0)) || (gameplay::is_bit_set(Global_1574332.f_1, 22) && iParam0))
	{
		if (gameplay::is_bit_set(Global_1574332.f_1, 12))
		{
			gameplay::clear_bit(&(Global_1574332.f_1), 12);
			func_1292(0);
		}
		if (gameplay::is_bit_set(Global_1574332.f_1, 13))
		{
			gameplay::clear_bit(&(Global_1574332.f_1), 13);
			func_1573();
		}
		if (gameplay::is_bit_set(Global_1574332.f_1, 14) && !func_707(player::player_id(), 0))
		{
			gameplay::clear_bit(&(Global_1574332.f_1), 14);
			func_1239(0);
		}
		gameplay::clear_bit(&(Global_1574332.f_1), 11);
		gameplay::clear_bit(&(Global_1574332.f_1), 10);
		gameplay::clear_bit(&(Global_1574332.f_1), 22);
	}
}

void func_1573()//Position - 0xA2850
{
	gameplay::clear_bit(&(Global_2494149.f_4609), 0);
}

int func_1574()//Position - 0xA2864
{
	return gameplay::is_bit_set(Global_2494149.f_4609, 0);
}

int func_1575(int iParam0)//Position - 0xA2878
{
	switch (iParam0)
	{
		case 129:
		case 132:
		case 136:
		case 138:
		case 139:
		case 140:
		case 141:
			return 1;
		
		case 131:
		case 146:
			return func_1286(player::player_id());
		
		case 133:
			return (func_1290() || func_1576(func_729()));
		
		default:
	}
	return 0;
}

bool func_1576(int iParam0)//Position - 0xA28E8
{
	switch (iParam0)
	{
		case 1:
		case 10:
		case 6:
		case 12:
		case 11:
		case 14:
			return true;
		
		default:
	}
	return false;
}

bool func_1577()//Position - 0xA2920
{
	if (((((((((func_1564() || func_1563()) || func_1562()) || func_726()) || (func_1557() && !network::network_is_activity_session())) || (func_1580() && !func_1579())) || Global_2394682) || Global_2394682.f_1 != 0) || Global_2394755 != 0) || (func_1578() == 2 && !network::network_is_activity_session()))
	{
		return true;
	}
	return false;
}

var func_1578()//Position - 0xA29B4
{
	return Global_979732;
}

int func_1579()//Position - 0xA29C0
{
	return gameplay::is_bit_set(Global_2443089.f_2, 27);
}

int func_1580()//Position - 0xA29D4
{
	if (func_1582() || func_1581())
	{
		return Global_1589933[player::player_id() /*601*/].f_94 == 8;
	}
	return false;
}

var func_1581()//Position - 0xA2A01
{
	return Global_2443089.f_613;
}

int func_1582()//Position - 0xA2A10
{
	return gameplay::is_bit_set(Global_2443089.f_2, 11);
}

void func_1583(int iParam0)//Position - 0xA2A24
{
	int iVar0;
	
	iVar0 = func_359(2516, -1, 0);
	if (iParam0 == 0)
	{
		if (!gameplay::is_bit_set(iVar0, 0))
		{
			gameplay::set_bit(&iVar0, 0);
		}
		else if (!gameplay::is_bit_set(iVar0, 1))
		{
			gameplay::set_bit(&iVar0, 1);
		}
		else if (!gameplay::is_bit_set(iVar0, 2))
		{
			gameplay::set_bit(&iVar0, 2);
		}
	}
	else if (iParam0 == 1)
	{
		if (!gameplay::is_bit_set(iVar0, 3))
		{
			gameplay::set_bit(&iVar0, 3);
		}
		else if (!gameplay::is_bit_set(iVar0, 4))
		{
			gameplay::set_bit(&iVar0, 4);
		}
		else if (!gameplay::is_bit_set(iVar0, 5))
		{
			gameplay::set_bit(&iVar0, 5);
		}
	}
	else if (iParam0 == 2)
	{
		if (!gameplay::is_bit_set(iVar0, 6))
		{
			gameplay::set_bit(&iVar0, 6);
		}
		else if (!gameplay::is_bit_set(iVar0, 7))
		{
			gameplay::set_bit(&iVar0, 7);
		}
		else if (!gameplay::is_bit_set(iVar0, 8))
		{
			gameplay::set_bit(&iVar0, 8);
		}
	}
	else if (iParam0 == 3)
	{
		if (!gameplay::is_bit_set(iVar0, 9))
		{
			gameplay::set_bit(&iVar0, 9);
		}
		else if (!gameplay::is_bit_set(iVar0, 10))
		{
			gameplay::set_bit(&iVar0, 10);
		}
		else if (!gameplay::is_bit_set(iVar0, 11))
		{
			gameplay::set_bit(&iVar0, 11);
		}
	}
	func_237(2516, iVar0, -1, 1, 0);
}

bool func_1584()//Position - 0xA2B5C
{
	int iVar0;
	
	if (!func_671(&(Global_1574332.f_15)))
	{
		func_58(&(Global_1574332.f_15), 0, 0);
		Global_1574332.f_17 = 0;
	}
	else if (func_57(&(Global_1574332.f_15), 1000, 0))
	{
		if (network::network_is_participant_active(player::int_to_participantindex(Global_1574332.f_17)))
		{
			iVar0 = network::network_get_player_index(player::int_to_participantindex(Global_1574332.f_17));
			if (network::network_is_player_active(iVar0))
			{
				if (func_1644(iVar0, 1, 1) && func_1585(iVar0, 6))
				{
					if (system::vdist(func_640(player::player_id()), func_640(iVar0)) < 80f)
					{
						return true;
					}
				}
			}
		}
		Global_1574332.f_17++;
		if (Global_1574332.f_17 >= 32)
		{
			Global_1574332.f_17 = 0;
			func_9(&(Global_1574332.f_15));
		}
	}
	return false;
}

bool func_1585(int iParam0, int iParam1)//Position - 0xA2C24
{
	int iVar0;
	
	if (Global_1312443 != 0)
	{
		return false;
	}
	if (!func_633(iParam0))
	{
		return false;
	}
	iVar0 = iParam0;
	if (Global_1589933[iVar0 /*601*/] == iParam1)
	{
		return true;
	}
	return false;
}

void func_1586()//Position - 0xA2C5D
{
	player::set_max_wanted_level(5);
	func_1415();
	player::set_wanted_level_multiplier(1f);
	gameplay::clear_bit(&(Global_1574332.f_1), 8);
	func_1587();
}

void func_1587()//Position - 0xA2C83
{
	if (Global_1756720)
	{
		if (gameplay::is_bit_set(Global_1756721, 0))
		{
			gameplay::clear_bit(&Global_2501502, 0);
		}
		if (gameplay::is_bit_set(Global_1756721, 1))
		{
			gameplay::clear_bit(&Global_2501502, 1);
		}
		if (gameplay::is_bit_set(Global_1756721, 5))
		{
			gameplay::clear_bit(&Global_2501502, 5);
		}
		if (object::_does_door_exist(-355737150))
		{
			object::_set_door_acceleration_limit(-355737150, 1, 0, 0);
		}
		if (object::_does_door_exist(-580979506))
		{
			object::_set_door_acceleration_limit(-580979506, 1, 0, 0);
		}
		if (object::_does_door_exist(-1426452475))
		{
			object::_set_door_acceleration_limit(-1426452475, 1, 0, 0);
		}
		if (object::_does_door_exist(745417724))
		{
			object::_set_door_acceleration_limit(745417724, 1, 0, 0);
		}
		if (object::_does_door_exist(-1305304906))
		{
			object::_set_door_acceleration_limit(-1305304906, 1, 0, 0);
		}
		if (object::_does_door_exist(-1543175077))
		{
			object::_set_door_acceleration_limit(-1543175077, 1, 0, 0);
		}
		if (object::_does_door_exist(-811770997))
		{
			object::_set_door_acceleration_limit(-811770997, 1, 0, 0);
		}
		Global_1756721 = 0;
	}
	Global_1756720 = 0;
}

var func_1588()//Position - 0xA2D83
{
	if (entity::does_entity_exist(func_1589()))
	{
		return func_1589();
	}
	return func_601();
}

var func_1589()//Position - 0xA2DA1
{
	return Global_2359301.f_3;
}

int func_1590()//Position - 0xA2DAF
{
	return gameplay::is_bit_set(Global_2359301, 11);
}

int func_1591()//Position - 0xA2DC1
{
	return gameplay::is_bit_set(Global_2359301, 4);
}

bool func_1592(int iParam0)//Position - 0xA2DD2
{
	if (func_37(iParam0, 0))
	{
		return true;
	}
	if (func_1593())
	{
		if (iParam0 == player::player_id())
		{
			return true;
		}
	}
	if (gameplay::is_bit_set(Global_2421621[iParam0 /*358*/].f_198, 2))
	{
		return true;
	}
	return false;
}

int func_1593()//Position - 0xA2E14
{
	return gameplay::is_bit_set(Global_2359301, 3);
}

void func_1594(int iParam0)//Position - 0xA2E25
{
	gameplay::set_bit(&iLocal_2984, iParam0);
}

int func_1595(int iParam0)//Position - 0xA2E36
{
	if (!entity::does_entity_exist(iParam0))
	{
		return false;
	}
	if (entity::is_entity_dead(iParam0, 0))
	{
	}
	return interior::get_interior_from_entity(iParam0) == Global_138947;
}

void func_1596(int iParam0)//Position - 0xA2E61
{
	gameplay::clear_bit(&iLocal_2984, iParam0);
}

var func_1597()//Position - 0xA2E72
{
	return Global_1574332.f_24;
}

bool func_1598()//Position - 0xA2E80
{
	int iVar0;
	var uVar1;
	
	func_1602(&iVar0, &uVar1);
	if (iVar0)
	{
		return true;
	}
	if (Global_1315206 == 0)
	{
		if (!network::network_is_game_in_progress())
		{
			return true;
		}
	}
	if (func_1601())
	{
		return true;
	}
	if (Global_2454699)
	{
		return true;
	}
	if (func_1600())
	{
		return true;
	}
	if (func_1599(157))
	{
		if (!func_1564())
		{
			return true;
		}
	}
	if (func_1599(155))
	{
		return true;
	}
	if (!network::network_is_signed_online())
	{
		return true;
	}
	if (func_679() != 0)
	{
		if (script::_get_number_of_instances_of_streamed_script(func_679()) == 0)
		{
			return true;
		}
	}
	return false;
}

bool func_1599(int iParam0)//Position - 0xA2F15
{
	if (script::get_event_exists(1, iParam0))
	{
		return true;
	}
	return false;
}

var func_1600()//Position - 0xA2F2C
{
	return Global_2452479;
}

var func_1601()//Position - 0xA2F38
{
	return Global_2443089.f_572;
}

void func_1602(var uParam0, var uParam1)//Position - 0xA2F47
{
	int iVar0;
	int iVar1;
	int iVar2;
	vector3 vVar4;
	
	iVar0 = 0;
	while (iVar0 < script::get_number_of_events(1))
	{
		iVar1 = script::get_event_at_index(1, iVar0);
		if (iVar1 == 171)
		{
			script::get_event_data(1, iVar0, &iVar2, 2);
			switch (iVar2)
			{
				case 365:
					func_1603(iVar0);
					break;
				
				case 2:
					script::get_event_data(1, iVar0, &vVar4, 3);
					if (vVar4.y == 55)
					{
						*uParam0 = 1;
					}
					else if (vVar4.y == 32)
					{
						*uParam1 = 1;
					}
					break;
				}
		}
		iVar0++;
	}
}

void func_1603(int iParam0)//Position - 0xA2FC7
{
	vector3 vVar0;
	int iVar3;
	int iVar4;
	int iVar5;
	
	if (script::get_event_data(1, iParam0, &vVar0, 3))
	{
		if (func_1644(vVar0.y, 1, 1))
		{
			iVar3 = player::get_player_ped(vVar0.y);
			if (entity::does_entity_exist(iVar3))
			{
				if (ped::is_ped_in_any_vehicle(iVar3, 0))
				{
					iVar4 = ped::get_vehicle_ped_is_in(iVar3, 0);
					if (vehicle::is_vehicle_window_intact(iVar4, vVar0.y) && network::network_get_this_script_is_network_script())
					{
						if (func_809(iVar4, &iVar5))
						{
							vehicle::remove_vehicle_window(iVar4, vVar0.y);
						}
						if (iVar5)
						{
							entity::set_vehicle_as_no_longer_needed(&iVar4);
						}
					}
				}
			}
		}
	}
}

void func_1604()//Position - 0xA3048
{
	system::wait(0);
}

void func_1605()//Position - 0xA3055
{
	int iVar0;
	int iVar1;
	
	if (func_1566() != -1)
	{
		if (func_1248(func_1566()) != 10)
		{
			func_1630();
		}
	}
	func_687();
	func_1629(146);
	func_1611(146, 0, gameplay::is_bit_set(iLocal_2983, 16));
	func_1256(0);
	func_1344(0);
	func_694();
	func_1346(0);
	if (func_47())
	{
		func_46(0);
	}
	if (func_40() >= 0 && vLocal_3562[func_40() /*3*/] >= 0)
	{
		if (!func_1610(vLocal_3562[func_40() /*3*/]))
		{
			entity::set_entity_is_target_priority(vLocal_3562[func_40() /*3*/].f_2, 0, 0);
		}
	}
	func_44();
	func_1310();
	if (iLocal_3759 != -1)
	{
		audio::stop_sound(iLocal_3759);
		audio::release_sound_id(iLocal_3759);
	}
	audio::release_named_script_audio_bank("DLC_SFX1/BEAST");
	if (func_1566() != -1)
	{
		if (func_40() != -1)
		{
			if (gameplay::is_bit_set(iLocal_3731, func_1566()))
			{
				if (gameplay::is_bit_set(iLocal_3730, func_40()))
				{
					func_675();
				}
			}
		}
	}
	if (func_1566() == network::participant_id_to_int())
	{
		func_1239(0);
		func_1313(1);
		func_1287(0);
		Global_2494149.f_4696 = func_45();
	}
	func_672();
	if (func_1598())
	{
		Local_742.f_5 = 5;
	}
	else if (func_669(20))
	{
		Local_742.f_5 = 6;
	}
	else if (network::participant_id_to_int() == func_1566())
	{
		if (func_1555() == 3)
		{
			Local_742.f_5 = 1;
		}
		else
		{
			Local_742.f_5 = 2;
		}
	}
	else if (func_1555() == 4 || func_1555() == 5)
	{
		if (network::participant_id_to_int() == func_7() || network::participant_id_to_int() == func_652())
		{
			Local_742.f_5 = 1;
		}
		else
		{
			Local_742.f_5 = 3;
		}
	}
	else
	{
		Local_742.f_5 = 2;
	}
	if (!Global_262145.f_9909)
	{
		if (Local_742.f_6 > 0)
		{
			if (Local_742.f_5 == 1)
			{
				func_1609();
			}
		}
	}
	Local_742 = Local_653.f_84;
	Local_742.f_1 = Local_653.f_85;
	Local_742.f_4 = iLocal_741;
	Local_742.f_3 = iLocal_740;
	Local_742.f_10 = (network::_get_posix_time() - Local_742.f_9);
	if (iLocal_3735 > 30000)
	{
		audio::trigger_music_event("BST_STOP");
	}
	if (func_1566() > -1)
	{
		iVar1 = 0;
		while (iVar1 < 32)
		{
			if (gameplay::is_bit_set(Local_2854[func_1566() /*4*/].f_2, iVar1))
			{
				iVar0++;
			}
			iVar1++;
		}
		func_1608(Local_742, iVar0, -1, -1, -1, -1, -1);
	}
	func_1607(0);
	func_1312();
	func_1606();
}

void func_1606()//Position - 0xA32B0
{
	script::terminate_this_thread();
}

void func_1607(int iParam0)//Position - 0xA32BC
{
	if (iParam0)
	{
		if (!gameplay::is_bit_set(Global_2494149.f_1642, 9))
		{
			gameplay::set_bit(&(Global_2494149.f_1642), 9);
		}
	}
	else if (gameplay::is_bit_set(Global_2494149.f_1642, 9))
	{
		gameplay::clear_bit(&(Global_2494149.f_1642), 9);
	}
}

void func_1608(struct<12> Param0, int iParam12, int iParam13, int iParam14, int iParam15, int iParam16, int iParam17)//Position - 0xA3307
{
	char* sVar0;
	struct<13> Var1;
	struct<14> Var14;
	struct<18> Var28;
	struct<14> Var52;
	struct<13> Var66;
	struct<14> Var79;
	struct<14> Var93;
	struct<16> Var107;
	struct<13> Var123;
	struct<14> Var136;
	struct<14> Var150;
	struct<13> Var164;
	
	sVar0 = script::get_this_script_name();
	if (Param0.f_9 == 0)
	{
		Param0.f_10 = 0;
	}
	if (Param0.f_8 > Param0.f_9)
	{
		Param0.f_8 = Param0.f_9;
	}
	if (Global_69697)
	{
		if (gameplay::are_strings_equal(sVar0, "am_hot_target"))
		{
			Var1 = { Param0 };
			Var1.f_12 = iParam12;
			unk_0xBFAFDB5FAAA5C5AB(&Var1);
		}
		else if (gameplay::are_strings_equal(sVar0, "freemode"))
		{
			Var14 = { Param0 };
			Var14.f_12 = iParam12;
			Var14.f_13 = iParam13;
			unk_0xBAA2F0490E146BE8(&Var14);
		}
		else if (gameplay::are_strings_equal(sVar0, "am_cp_collection"))
		{
			Var28 = { Param0 };
			Var28.f_12 = iParam12;
			Var28.f_13 = iParam13;
			Var28.f_14 = iParam14;
			Var28.f_15 = iParam15;
			Var28.f_16 = iParam16;
			Var28.f_17 = iParam17;
			unk_0x3DE3AA516FB126A4(&Var28);
		}
		else if (gameplay::are_strings_equal(sVar0, "am_challenges"))
		{
			Var52 = { Param0 };
			Var52.f_12 = iParam12;
			Var52.f_13 = system::to_float(iParam13);
			if (iParam14 == 1)
			{
				Var52.f_13 = (Var52.f_13 / 10f);
			}
			unk_0x6A60E43998228229(&Var52);
		}
		else if (gameplay::are_strings_equal(sVar0, "am_penned_in"))
		{
			unk_0x1A7CE7CD3E653485(&Param0);
		}
		else if (gameplay::are_strings_equal(sVar0, "am_pass_the_parcel"))
		{
			Var66 = { Param0 };
			Var66.f_12 = iParam12;
			unk_0x419615486BBF1956(&Var66);
		}
		else if (gameplay::are_strings_equal(sVar0, "am_hot_property"))
		{
			Var79 = { Param0 };
			Var79.f_12 = iParam12;
			Var79.f_13 = iParam13;
			unk_0x84DFC579C2FC214C(&Var79);
		}
		else if (gameplay::are_strings_equal(sVar0, "am_dead_drop"))
		{
			Var93 = { Param0 };
			Var93.f_12 = iParam12;
			Var93.f_13 = iParam13;
			unk_0x0A9C7F36E5D7B683(&Var93);
		}
		else if (gameplay::are_strings_equal(sVar0, "am_king_of_the_castle"))
		{
			Var107 = { Param0 };
			Var107.f_12 = iParam12;
			Var107.f_13 = iParam13;
			Var107.f_14 = iParam14;
			Var107.f_15 = iParam15;
			unk_0x164C5FF663790845(&Var107);
		}
		else if (gameplay::are_strings_equal(sVar0, "AM_CRIMINAL_DAMAGE"))
		{
			Var123 = { Param0 };
			Var123.f_12 = iParam12;
			unk_0xEDBF6C9B0D2C65C8(&Var123);
		}
		else if (gameplay::are_strings_equal(sVar0, "AM_KILL_LIST"))
		{
			if (iParam14 == 0)
			{
				Var136 = { Param0 };
				Var136.f_12 = iParam12;
				Var136.f_13 = iParam13;
				unk_0x8C9D11605E59D955(&Var136);
			}
			else
			{
				Var150 = { Param0 };
				Var150.f_12 = iParam12;
				Var150.f_13 = iParam13;
				unk_0x6551B1F7F6CD46EA(&Var150);
			}
		}
		else if (gameplay::are_strings_equal(sVar0, "am_hunt_the_beast"))
		{
			Var164 = { Param0 };
			Var164.f_12 = iParam12;
			unk_0x2CD90358F67D0AA8(&Var164);
		}
	}
}

void func_1609()//Position - 0xA3588
{
	gameplay::set_bit(&(Global_2494149.f_1642), 18);
}

bool func_1610(var uParam0)//Position - 0xA359D
{
	if (Global_1573340.f_4[uParam0 /*3*/] == 1)
	{
		return true;
	}
	return false;
}

void func_1611(int iParam0, int iParam1, int iParam2)//Position - 0xA35B8
{
	var uVar0;
	int iVar1;
	
	if (iParam0 == 0)
	{
	}
	if (player::player_id() != -1)
	{
		if (gameplay::is_bit_set(Global_1618089[player::player_id() /*390*/].f_1, 13))
		{
			gameplay::clear_bit(&(Global_1618089[player::player_id() /*390*/].f_1), 13);
		}
		if (gameplay::is_bit_set(Global_1618089[player::player_id() /*390*/].f_1, 14))
		{
			gameplay::clear_bit(&(Global_1618089[player::player_id() /*390*/].f_1), 14);
		}
	}
	if (gameplay::is_bit_set(Global_1574332.f_1, 21))
	{
		gameplay::clear_bit(&(Global_1574332.f_1), 21);
	}
	func_1625();
	audio::set_audio_flag("DisableFlightMusic", 0);
	audio::set_audio_flag("WantedMusicDisabled", 0);
	if (iParam1)
	{
		uVar0 = func_1624(func_730(player::player_id()));
		func_1300(21, 0);
	}
	else
	{
		if ((iParam2 && player::player_id() != -1) && func_1623(player::player_id()) >= 12)
		{
			func_1622(2528, -1);
			iVar1 = func_359(2528, -1, 0);
			if (iVar1 == 2)
			{
				gameplay::set_bit(&Global_1574358, 0);
			}
			else if (iVar1 == 4)
			{
				gameplay::set_bit(&Global_1574358, 1);
			}
			else if (iVar1 == 6)
			{
				gameplay::set_bit(&Global_1574358, 2);
			}
			else if (iVar1 == 8)
			{
				gameplay::set_bit(&Global_1574358, 3);
			}
			else if (iVar1 == 10)
			{
				gameplay::set_bit(&Global_1574358, 4);
			}
			else if (iVar1 == 12)
			{
				gameplay::set_bit(&Global_1574358, 5);
			}
		}
		func_1621();
		func_1620();
		func_1619();
		if ((!func_706(player::player_id()) && !func_705(player::player_id())) && !func_1618())
		{
			func_1399();
		}
		func_1617();
		if (!gameplay::is_bit_set(Global_1759239.f_3, 0) && !gameplay::is_bit_set(Global_1759239.f_3, 1))
		{
			func_1586();
		}
		func_1616();
		gameplay::clear_bit(&(Global_2494149.f_1647), 2);
		func_1438();
		func_1615();
	}
	if (ui::_0x84698AB38D0C6636(1344549371))
	{
		ui::object_decal_toggle(1344549371);
	}
	if (!iParam1 || uVar0)
	{
		if ((player::player_id() != -1 && !func_665(player::player_id(), 21)) && !func_707(player::player_id(), 0))
		{
			func_1239(0);
			func_1292(0);
			func_1614();
		}
	}
	if (iParam2 && !iParam1)
	{
		if (func_1262(26, -1))
		{
			Global_2454635 = -1;
			func_1280(26, -1);
		}
	}
	if (!func_1612())
	{
		Global_2481896 = 1;
	}
}

bool func_1612()//Position - 0xA380C
{
	if (((!func_1523(player::player_id()) && !func_1509(player::player_id())) && func_730(player::player_id()) != 146) && !func_1613())
	{
		return false;
	}
	return true;
}

bool func_1613()//Position - 0xA3850
{
	if ((Global_1632166 == 0 && network::network_is_activity_session()) && (((((((Global_1632166.f_5 != 0 || Global_1632166.f_105262 > 0) || gameplay::is_bit_set(Global_1632166.f_4, 15)) || gameplay::is_bit_set(Global_1632166.f_4, 18)) || gameplay::is_bit_set(Global_1632166.f_4, 19)) || gameplay::is_bit_set(Global_1632166.f_4, 29)) || gameplay::is_bit_set(Global_1632166.f_4, 28)) || gameplay::is_bit_set(Global_1632166.f_5, 23)))
	{
		return true;
	}
	return false;
}

void func_1614()//Position - 0xA38FA
{
	int iVar0;
	
	iVar0 = 0;
	iVar0 = 0;
	while (iVar0 < Global_1311741)
	{
		if (gameplay::is_bit_set(Global_2359719[iVar0 /*26*/].f_12, 11))
		{
			if (gameplay::is_bit_set(Global_2359719[iVar0 /*26*/].f_13, 26))
			{
				gameplay::clear_bit(&(Global_2359719[iVar0 /*26*/].f_13), 26);
			}
		}
		iVar0++;
	}
}

void func_1615()//Position - 0xA3950
{
	Global_1618089[player::player_id() /*390*/].f_7 = 0;
}

void func_1616()//Position - 0xA3966
{
	struct<25> Var0;
	
	Var0.f_3 = -1;
	Var0.f_4 = -1;
	Var0.f_5 = -1;
	Var0.f_21 = -1;
	Global_1574332 = { Var0 };
}

void func_1617()//Position - 0xA3995
{
	var uVar0;
	
	Global_1318164 = uVar0;
}

var func_1618()//Position - 0xA39A3
{
	return Global_1574250;
}

void func_1619()//Position - 0xA39AF
{
	Global_2494149.f_4609 = 0;
}

void func_1620()//Position - 0xA39BF
{
	if (player::player_id() != -1)
	{
		Global_1618089[player::player_id() /*390*/].f_1 = 0;
	}
}

void func_1621()//Position - 0xA39DD
{
	int iVar0;
	
	iVar0 = player::player_id();
	if (iVar0 != -1)
	{
		Global_1618089[iVar0 /*390*/] = -1;
	}
}

void func_1622(int iParam0, int iParam1)//Position - 0xA39FB
{
	int iVar0;
	
	iVar0 = func_359(iParam0, func_69(iParam1), 0);
	iVar0++;
	if (!func_366(iParam0))
	{
		func_237(iParam0, iVar0, iParam1, 1, 0);
	}
	else
	{
		func_367(iParam0, iVar0, iParam1, 1);
	}
}

var func_1623(int iParam0)//Position - 0xA3A3C
{
	return Global_1589933[iParam0 /*601*/].f_202.f_6;
}

bool func_1624(int iParam0)//Position - 0xA3A51
{
	switch (iParam0)
	{
		case 133:
		case 132:
		case 138:
		case 144:
		case 140:
		case 139:
		case 131:
		case 141:
		case -1:
			return true;
		
		case 146:
			if (func_1286(player::player_id()))
			{
				return true;
			}
			break;
	}
	return false;
}

void func_1625()//Position - 0xA3AB3
{
	if (gameplay::is_bit_set(Global_2494149.f_1643, 3) || gameplay::is_bit_set(Global_2494149.f_1643, 4))
	{
		if (cam::is_screen_faded_out() || cam::is_screen_fading_out())
		{
			cam::do_screen_fade_in(800);
		}
	}
	if (gameplay::is_bit_set(Global_2494149.f_1643, 5))
	{
		gameplay::clear_bit(&(Global_2494149.f_1643), 5);
	}
	if (gameplay::is_bit_set(Global_2494149.f_1643, 3))
	{
		gameplay::clear_bit(&(Global_2494149.f_1643), 3);
	}
	if (gameplay::is_bit_set(Global_2494149.f_1643, 4))
	{
		gameplay::clear_bit(&(Global_2494149.f_1643), 4);
	}
	func_1628(0);
	func_1627(0);
	func_1626(0);
}

void func_1626(int iParam0)//Position - 0xA3B54
{
	if (Global_2494149.f_4382 != iParam0)
	{
		Global_2494149.f_4382 = iParam0;
	}
}

void func_1627(int iParam0)//Position - 0xA3B71
{
	if (Global_2494149.f_4381 != iParam0)
	{
		if (iParam0)
		{
		}
		Global_2494149.f_4381 = iParam0;
	}
}

void func_1628(int iParam0)//Position - 0xA3B96
{
	if (Global_2494149.f_4379 != iParam0)
	{
		Global_2494149.f_4379 = iParam0;
	}
}

void func_1629(int iParam0)//Position - 0xA3BB3
{
	if (iParam0 == iParam0)
	{
	}
}

void func_1630()//Position - 0xA3BC2
{
	if (func_1236())
	{
		func_1233(1, 0);
		func_541();
	}
	if (func_1634() || func_1633())
	{
		func_1632(0);
		func_1631(0);
	}
	func_742(58);
	if (graphics::_get_screen_effect_is_active("BeastIntroScene"))
	{
		graphics::_stop_screen_effect("BeastIntroScene");
	}
	if (graphics::_get_screen_effect_is_active("BeastTransition"))
	{
		graphics::_stop_screen_effect("BeastTransition");
	}
	if (graphics::_get_screen_effect_is_active("BeastLaunch"))
	{
		graphics::_stop_screen_effect("BeastLaunch");
	}
	if (ped::is_synchronized_scene_running(iLocal_3746))
	{
		network::network_stop_synchronised_scene(iLocal_3746);
		iLocal_3746 = -1;
	}
	if (entity::is_entity_playing_anim(player::player_ped_id(), "ANIM@MP_FM_EVENT@INTRO", "BEAST_TRANSFORM", 3))
	{
		entity::stop_entity_anim(player::player_ped_id(), "BEAST_TRANSFORM", "ANIM@MP_FM_EVENT@INTRO", -8f);
		streaming::remove_anim_dict("ANIM@MP_FM_EVENT@INTRO");
	}
	else
	{
		streaming::remove_anim_dict("ANIM@MP_FM_EVENT@INTRO");
	}
	if (!audio::has_sound_finished(iLocal_3747))
	{
		audio::stop_sound(iLocal_3747);
		iLocal_3747 = -1;
	}
	cam::set_gameplay_cam_relative_heading(0f);
	cam::set_gameplay_cam_relative_pitch(0f, 1065353216);
	cam::render_script_cams(false, false, 3000, 1, 0, 0);
	cam::destroy_all_cams(0);
	streaming::remove_anim_dict("move_m@GEneric");
	unk_0x15CFA549788D35EF();
	ui::display_hud(true);
	ui::display_radar(true);
	func_741();
	func_387(0);
	func_386();
	func_9(&uLocal_3751);
	func_385();
	graphics::_set_frozen_rendering_disabled(1);
	player::set_player_invincible(player::player_id(), 0);
	controls::enable_all_control_actions(2);
	func_539(player::player_id(), 1, 4194304);
	func_740();
	func_739();
	func_1232(10);
}

void func_1631(int iParam0)//Position - 0xA3D26
{
	if (Global_1312462.f_20 != iParam0)
	{
		Global_1312462.f_20 = iParam0;
	}
}

void func_1632(int iParam0)//Position - 0xA3D41
{
	if (iParam0 == 0)
	{
		Global_2454698 = 0;
	}
	Global_1312462.f_18 = iParam0;
}

bool func_1633()//Position - 0xA3D5C
{
	if (func_545() == 1 || func_545() == 4)
	{
		return true;
	}
	return false;
}

bool func_1634()//Position - 0xA3D7E
{
	if (func_545() == 3 || func_545() == 2)
	{
		return true;
	}
	return false;
}

void func_1635(struct<20> Param0)//Position - 0xA3DA0
{
	int iVar0;
	int iVar1;
	
	iVar0 = func_1643(Param0);
	func_1642(iVar0, Param0);
	func_1641(0, -1, 0);
	func_1639(146);
	network::network_register_host_broadcast_variables(&Local_653, 86);
	network::network_register_player_broadcast_variables(&Local_2854, 129);
	if (!func_1638())
	{
		func_1605();
	}
	if (network::network_is_game_in_progress())
	{
		gameplay::set_this_script_can_be_paused(0);
		if (network::network_is_host_of_this_script())
		{
			iVar1 = gameplay::get_random_int_in_range(0, 5);
			iVar1 = 0;
			func_1637(iVar1);
			func_1636(0);
			stats::_0x6DEE77AFF8C21BD1(&(Local_653.f_84), &(Local_653.f_85));
		}
		Local_742.f_2 = network::_0xCF61D4B4702EE9EB();
		Local_742.f_8 = network::_get_posix_time();
		func_1558(0);
	}
	else
	{
		func_1605();
	}
}

void func_1636(int iParam0)//Position - 0xA3E3D
{
	Local_653.f_1.f_1 = iParam0;
}

void func_1637(int iParam0)//Position - 0xA3E4E
{
	Local_653.f_1.f_8 = iParam0;
}

bool func_1638()//Position - 0xA3E5F
{
	int iVar0;
	
	iVar0 = 0;
	while (true)
	{
		iVar0++;
		if (!network::network_is_game_in_progress())
		{
			return false;
		}
		if (network::_0x5D10B3795F3FC886())
		{
			return true;
		}
		if (func_1601())
		{
			return false;
		}
		if (func_1599(155))
		{
			return false;
		}
		if (iVar0 >= 3600)
		{
			return false;
		}
		system::wait(0);
	}
	return false;
}

void func_1639(int iParam0)//Position - 0xA3EB8
{
	func_1616();
	func_1640();
	func_1619();
	Global_1574332.f_4 = iParam0;
	Global_1574332.f_5 = iParam0;
	func_1299(iParam0, -1);
	func_506(&(Global_1574332.f_18), 0, 0);
	Global_2494149.f_4446 = 0;
	Global_2453539[0] = func_45();
	Global_2453539[1] = func_45();
	Global_2453539[2] = func_45();
	Global_2453539[3] = func_45();
	Global_2453539[4] = func_45();
	func_1615();
	func_744();
	if (func_507() && !func_666())
	{
		gameplay::set_bit(&(Global_1574332.f_1), 16);
	}
	else
	{
		gameplay::set_bit(&(Global_1574332.f_1), 17);
	}
}

void func_1640()//Position - 0xA3F62
{
	var uVar0;
	
	Global_1574357 = uVar0;
}

bool func_1641(int iParam0, int iParam1, int iParam2)//Position - 0xA3F70
{
	int iVar0;
	
	iVar0 = network::network_get_script_status();
	while (iVar0 != 2)
	{
		if (((iVar0 == 3 || iVar0 == 4) || iVar0 == 5) || iVar0 == 6)
		{
			if (!iParam2)
			{
				func_1606();
			}
			else
			{
				return false;
			}
		}
		if (!func_357())
		{
			if (iParam0 == 0)
			{
				if (!network::network_is_game_in_progress())
				{
					if (!iParam2)
					{
						func_1606();
					}
					else
					{
						return false;
					}
				}
				if (func_1601())
				{
					if (!iParam2)
					{
						func_1606();
					}
					else
					{
						return false;
					}
				}
				if (func_1599(155))
				{
					if (!iParam2)
					{
						func_1606();
					}
					else
					{
						return false;
					}
				}
			}
			else if (!network::network_is_in_session())
			{
				if (!iParam2)
				{
					func_1606();
				}
				else
				{
					return false;
				}
			}
		}
		system::wait(0);
		iVar0 = network::network_get_script_status();
	}
	if (iParam1 > -1)
	{
		Global_1312496 = iVar0;
	}
	if (iParam0 == 0)
	{
		if (!network::network_is_game_in_progress())
		{
			if (!iParam2)
			{
				func_1606();
			}
			else
			{
				return false;
			}
		}
	}
	else if (!network::network_is_in_session())
	{
		if (!iParam2)
		{
			func_1606();
		}
		else
		{
			return false;
		}
	}
	return true;
}

void func_1642(int iParam0, struct<17> Param1, var uParam18, var uParam19, var uParam20)//Position - 0xA4086
{
	if (!network::network_is_game_in_progress())
	{
		func_1606();
	}
	network::network_set_this_script_is_network_script(iParam0, 0, Param1.f_16);
}

int func_1643(int iParam0)//Position - 0xA40A5
{
	switch (iParam0)
	{
		case 3:
			return 2;
		
		case 1:
			return 32;
		
		case 2:
			return 32;
		
		case 32:
			return 32;
		
		case 33:
			return 32;
		
		case 34:
			return 32;
		
		case 35:
			return 32;
		
		case 36:
			return 32;
		
		case 37:
			return 32;
		
		case 38:
			return 32;
		
		case 39:
			return 32;
		
		case 40:
			return 32;
		
		case 41:
			return 32;
		
		case 42:
			return 32;
		
		case 43:
			return 32;
		
		case 44:
			return 32;
		
		case 45:
			return 32;
		
		case 46:
			return 32;
		
		case 47:
			return 32;
		
		case 48:
			return 32;
		
		case 49:
			return 32;
		
		case 50:
			return 4;
		
		case 51:
			return 32;
		
		case 52:
			return 32;
		
		case 53:
			return 32;
		
		case 54:
			return 32;
		
		case 55:
			return 32;
		
		case 56:
			return 32;
		
		case 57:
			return 32;
		
		case 58:
			return 32;
		
		case 59:
			return 32;
		
		case 60:
			return 32;
		
		case 61:
			return 32;
		
		case 62:
			return 32;
		
		case 63:
			return 32;
		
		case 64:
			return 4;
		
		case 65:
			return 32;
		
		case 66:
			return 4;
		
		case 67:
			return 4;
		
		case 68:
			return 32;
		
		case 69:
			return 32;
		
		case 70:
			return 4;
		
		case 71:
			return 32;
		
		case 72:
			return 32;
		
		case 73:
		case 74:
			return 4;
		
		case 75:
			return 32;
		
		case 76:
			return 32;
		
		case 77:
			return 32;
		
		case 78:
			return 32;
		
		case 79:
			return 32;
		
		case 80:
			return 32;
		
		case 81:
			return 32;
		
		case 82:
			return 32;
		
		case 84:
			return 32;
		
		case 83:
			return 32;
		
		case 85:
			return 32;
		
		case 86:
			return 32;
		
		case 87:
			return 32;
		
		case 88:
			return 32;
		
		case 89:
			return 32;
		
		case 90:
			return 8;
		
		case 91:
			return 32;
		
		case 92:
			return 8;
		
		case 93:
			return 8;
		
		case 101:
			return 8;
		
		case 94:
			return 8;
		
		case 95:
			return 32;
		
		case 96:
			return 32;
		
		case 97:
			return 32;
		
		case 98:
			return 8;
		
		case 99:
			return 32;
		
		case 100:
			return 32;
		
		case 102:
			return 32;
		
		case 103:
			return 32;
		
		case 104:
			return 32;
		
		case 105:
			return 8;
		
		case 12:
			return 32;
		
		case 4:
			return 16;
		
		case 13:
			return 32;
		
		case 5:
			return 16;
		
		case 6:
			return 2;
		
		case 8:
			return 2;
		
		case 9:
			return 2;
		
		case 7:
			return 16;
		
		case 10:
			return 2;
		
		case 11:
			return 4;
		
		case 15:
			return 32;
		
		case 16:
			return 32;
		
		case 27:
			return 2;
		
		case 25:
			return 2;
		
		case 26:
			return 2;
		
		case 18:
			return 32;
		
		case 28:
			return 32;
		
		case 29:
			return 2;
		
		case 30:
			return 32;
		
		case 31:
			return 32;
		
		case 17:
			return 2;
		
		case 106:
			return 32;
		
		case 107:
			return 32;
		
		case 19:
			return 32;
		
		case 22:
			return 32;
		
		case 23:
			return 32;
		
		case 24:
			return 32;
		
		case 20:
			return 2;
		
		case 0:
			return 0;
		
		case 21:
			return 32;
		
		case 118:
			return 32;
		
		case 119:
			return 32;
		
		case 108:
			return 32;
		
		case 109:
			return 32;
		
		case 113:
			return 32;
		
		case 111:
			return 32;
		
		case 112:
			return 32;
		
		case 116:
			return 32;
		
		case 117:
			return 32;
		
		case 114:
			return 32;
		
		case 115:
			return 32;
		
		case 120:
			return 32;
		
		case 121:
			return 32;
		
		case 122:
			return 32;
		
		case 123:
			return 32;
		
		case 124:
			return 2;
		
		case 129:
			return 1;
		
		case 125:
			return 2;
		
		case 126:
			return 4;
		
		case 127:
			return 2;
		
		case 128:
			return 2;
		
		case 110:
			return 1;
		
		case 130:
			return 2;
		
		case 131:
		case 132:
		case 133:
		case 134:
		case 135:
		case 136:
			return 0;
		
		case 140:
			return 1;
		
		case 137:
			return 4;
		
		case 138:
			return 16;
		
		case 139:
			return 32;
		
		default:
	}
	return 0;
}

bool func_1644(int iParam0, int iParam1, int iParam2)//Position - 0xA4680
{
	int iVar0;
	
	iVar0 = iParam0;
	if (iVar0 != -1)
	{
		if (network::network_is_player_active(iParam0))
		{
			if (iParam1)
			{
				if (!player::is_player_playing(iParam0))
				{
					return false;
				}
			}
			if (iParam2)
			{
				if (!Global_2433082.f_3[iVar0])
				{
					return false;
				}
			}
			return true;
		}
	}
	return false;
}

