/* * reads : g_9 g_10 g_12 g_18 g_19 * writes: g_12 g_19 */ static int16_t func_1(void) { /* block id: 0 */ uint8_t l_8 = 0xC9L; int32_t *l_11 = &g_12; int32_t **l_20 = &l_11; uint16_t l_23[1]; int32_t *l_24 = &g_12; int i; for (i = 0; i < 1; i++) l_23[i] = 0x574BL; (*l_20) = func_2((((l_8 && g_9) && l_8) & g_10[1][5]), l_11, (*l_11), g_12, (*l_11)); if (((*l_24) ^= ((uint16_t)l_23[0] << (uint16_t)14))) { /* block id: 9 */ return g_12; } else { /* block id: 11 */ int32_t l_34 = 1L; for (l_8 = (-12); (l_8 == 59); ++l_8) { /* block id: 14 */ int32_t l_33 = 0x4D2FC5C3L; int32_t l_39 = 0x4983CA30L; l_39 = func_27(&g_19[0][1], l_33, l_33, g_12, l_34); if (l_33) continue; } } return g_12; }
/* * reads : g_3 g_6 g_2 g_33 g_34 g_38 g_51 g_73 g_36 g_85 g_52 g_87 g_115 * writes: g_3 g_6 g_25 g_36 g_38 g_33 g_73 g_85 */ static int32_t func_1(void) { /* block id: 0 */ int8_t l_20 = 0x8BL; int32_t l_26 = (-1L); for (g_3 = (-24); (g_3 > (-23)); g_3++) { /* block id: 3 */ for (g_6 = 0; (g_6 == (-21)); --g_6) { /* block id: 6 */ int16_t l_19[1]; int32_t l_21 = (-9L); uint8_t *l_23 = (void*)0; uint8_t *l_24 = &g_25; uint16_t *l_31 = (void*)0; uint16_t *l_32 = (void*)0; uint8_t ***l_46 = &g_33; int i; for (i = 0; i < 1; i++) l_19[i] = (-3L); l_26 |= (((*l_24) = func_9(((int32_t)((int16_t)(l_19[0] | 0xD19C9214L) + (int16_t)0xACDEL) - (int32_t)g_6), g_6, l_20, l_21, g_2)) <= 255UL); (*l_46) = func_27((l_21 |= 0xD64EL), g_33, &g_34[2][0]); } if (g_6) break; } if (func_47(((((l_20 < l_20) , (*g_33)) != (void*)0) && g_2), g_38)) { /* block id: 62 */ int8_t l_113[2]; int32_t *l_114 = &g_6; int i; for (i = 0; i < 2; i++) l_113[i] = 1L; (*g_115) = (((*l_114) = ((l_113[1] >= l_26) != g_52)) <= (-10L)); } else { /* block id: 65 */ int16_t l_117 = 0x046EL; int32_t *l_118 = &g_3; lbl_121: (*l_118) |= (~(0x2CDDL | l_117)); for (g_38 = (-8); (g_38 < 11); ++g_38) { /* block id: 69 */ if (g_36) goto lbl_121; } } return (*g_87); }
void func_26(int iParam0, int iParam1, int iParam2) { int iVar0; if (iParam0 < 0) { } if (iParam0 == 321 || iParam0 > 321) { } else { func_32(891 + iParam0, 1, -1, 1); } iVar0 = true; if (Global_101154.f_8884[iParam0 /*12*/].f_5 == 1) { if (Global_101154.f_8884[iParam0 /*12*/].f_6 == 11 || Global_101154.f_8884[iParam0 /*12*/].f_6 == 12) { iVar0 = false; } } else { Global_101154.f_8884[iParam0 /*12*/].f_5 = 1; Global_101154.f_8884[iParam0 /*12*/].f_10 = iParam1; Global_101154.f_8884[iParam0 /*12*/].f_11 = iParam2; if (iParam0 == 287) { _0x11FF1C80276097ED(joaat("num_hidden_packages_0"), 50, 0); } if (iParam0 == 286) { _0x11FF1C80276097ED(joaat("num_hidden_packages_1"), 50, 0); } if (iParam0 == 299) { _0x11FF1C80276097ED(joaat("num_hidden_packages_3"), 50, 0); } } if (iVar0) { func_27(); } }
int main (void) { func_27 (g_21, 0); printf ("%d\n", g_184); return 0; }
auto func_26() { func_27(); return Global_101154.f_1826.f_539.f_3549; }
void main() { Vector3 vVar0; Vector3 vVar3; iLocal_2 = 1; iLocal_3 = 134; iLocal_4 = 134; iLocal_5 = 1; iLocal_6 = 1; iLocal_7 = 1; iLocal_8 = 134; iLocal_9 = 1; iLocal_10 = 12; iLocal_11 = 12; fLocal_14 = 0.001f; iLocal_17 = -1; sLocal_20 = "NULL"; fLocal_21 = 0f; fLocal_25 = -0.0375f; fLocal_26 = 0.17f; fLocal_30 = 80f; fLocal_31 = 140f; fLocal_32 = 180f; iLocal_35 = 3; func_29(29); if (PLAYER::HAS_FORCE_CLEANUP_OCCURRED(210)) { func_28(); } iLocal_37 = 0; func_27(&uLocal_38); func_26(&uLocal_38, 1701.78f, 3225.148f, 40.0202f); func_26(&uLocal_38, 1678.909f, 3287.602f, 39.9648f); func_26(&uLocal_38, 1710.438f, 3326.499f, 40.1797f); func_26(&uLocal_38, 1738.879f, 3335.25f, 40.1493f); func_26(&uLocal_38, 1768.387f, 3312.101f, 40.2875f); func_26(&uLocal_38, 1819.241f, 3225.449f, 42.9019f); func_25(&uLocal_38); while (true) { switch (iLocal_37) { case 0: if (func_18()) { if (!PED::IS_PED_INJURED(PLAYER::PLAYER_PED_ID())) { vVar0 = {ENTITY::GET_ENTITY_COORDS(PLAYER::PLAYER_PED_ID(), 1)}; vVar3 = {1749.71f, 3267.83f, 40.24f}; if (func_17(vVar0, vVar3, 75f)) { if (func_16(&uLocal_38, vVar0)) { if (vVar0.z > 39f && vVar0.z < 43f) { iLocal_37 = 1; } else { wait(100); } } else { wait(100); } } else { wait(1500); } } } else { wait(1500); } break; case 1: func_2(); break; case 2: func_1(29); func_28(); break; } wait(0); } }
bool func_26(int iParam0, int iParam1, int iParam2, int iParam3, int iParam4) { float fVar0; float fVar1; int iVar2; fVar0 = 8f; fVar1 = 15f; if (iParam1 == 0) { fVar0 = 1.86f; fVar1 = 1.86f; } if (iParam2) { fVar0 = 2f; } if (func_8(PLAYER::PLAYER_PED_ID()) && func_8(iParam0)) { WEAPON::GET_CURRENT_PED_WEAPON(PLAYER::PLAYER_PED_ID(), &iVar2, 1); if (iVar2 == joaat("weapon_petrolcan")) { fVar0 = 3f; fVar1 = 3f; } if (!iParam2) { if (func_32(iParam0, iParam1, fVar0, fVar1)) { return true; } if (func_27(iParam0, fVar1, iParam3, iParam4)) { return true; } } else { if (is_ped_current_weapon_silenced(PLAYER::PLAYER_PED_ID())) { if (is_ped_shooting(PLAYER::PLAYER_PED_ID())) { if (is_bullet_in_area(ENTITY::GET_ENTITY_COORDS(iParam0, 1), fVar0, 1)) { return true; } } } else { if (iParam1) { fVar0 = 1.86f; fVar1 = 1.86f; } if (func_32(iParam0, iParam1, fVar0, fVar1)) { return true; } } if (func_27(iParam0, fVar1, iParam3, iParam4)) { return true; } } } return false; }
void func_1() { Vector3 vVar0; Vector3 vVar3; vVar0 = {1.5f, 1.5f, 1.5f}; switch (iLocal_322) { case 0: if (Global_1572920 == 8) { Global_1572920 = -1; } if (func_63() == 5) { iLocal_326 = network_create_synchronised_scene(vLocal_343, vLocal_346, 2, false, true, 1f, 0f, 1f); network_add_ped_to_synchronised_scene(PLAYER::PLAYER_PED_ID(), iLocal_326, sLocal_329, sLocal_331, 8f, -2f, 261, 0, 1000f, 0); network_start_synchronised_scene(iLocal_326); iLocal_322 = 7; } else if (func_48(8)) { if ((((func_44(vLocal_339, vVar0) && get_interior_from_entity(PLAYER::PLAYER_PED_ID()) == get_interior_at_coords(vLocal_339)) && is_entity_in_angled_area(PLAYER::PLAYER_PED_ID(), vLocal_333, vLocal_336, 2f, 0, true, 0)) && func_43()) && !func_40(player_id())) { if (iLocal_328 == -1) { func_39(&iLocal_328, 3, "SA_BED_IN", 0, 0, 0, 0); } iLocal_322 = 1; } } break; case 1: if (func_38(1, 0, 1)) { if (((((func_44(vLocal_339, vVar0) && func_48(8)) && get_interior_from_entity(PLAYER::PLAYER_PED_ID()) == get_interior_at_coords(vLocal_339)) && is_entity_in_angled_area(PLAYER::PLAYER_PED_ID(), vLocal_333, vLocal_336, 2f, 0, true, 0)) && func_43()) && !func_40(player_id())) { if (func_36(iLocal_328, 1)) { func_34(&iLocal_328); func_33(); Global_1572920 = 8; if (func_32("SA_BED_IN")) { clear_help(1); } clear_area_of_projectiles(vLocal_339, 3f, 0); func_27(player_id(), 0, 256); iLocal_36 = 1; func_26(); WEAPON::SET_CURRENT_PED_WEAPON(PLAYER::PLAYER_PED_ID(), joaat("weapon_unarmed"), true); func_16(1, 1, 1, 0); vLocal_339 = {get_anim_initial_offset_position(sLocal_329, sLocal_330, vLocal_343, vLocal_346, 0, 2)}; vVar3 = {get_anim_initial_offset_rotation(sLocal_329, sLocal_330, vLocal_343, vLocal_346, 0, 2)}; fLocal_342 = vVar3.z; task_go_straight_to_coord(PLAYER::PLAYER_PED_ID(), vLocal_339, 1f, 5000, fLocal_342, 0.05f); if (get_follow_ped_cam_view_mode() == 4) { set_ped_desired_heading(PLAYER::PLAYER_PED_ID(), func_15(ENTITY::GET_ENTITY_COORDS(PLAYER::PLAYER_PED_ID(), 1), ENTITY::GET_ENTITY_COORDS(iLocal_41, 1))); force_ped_motion_state(PLAYER::PLAYER_PED_ID(), 1063765679, false, 0, 0); set_ped_reset_flag(PLAYER::PLAYER_PED_ID(), 69, true); } iLocal_322 = 2; } } else { func_34(&iLocal_328); if (func_32("SA_BED_IN")) { clear_help(1); } iLocal_322 = 0; } } break; case 2: func_14(); func_11(); hide_hud_and_radar_this_frame(); if (get_follow_ped_cam_view_mode() == 4) { set_ped_desired_heading(PLAYER::PLAYER_PED_ID(), func_15(ENTITY::GET_ENTITY_COORDS(PLAYER::PLAYER_PED_ID(), 1), ENTITY::GET_ENTITY_COORDS(iLocal_41, 1))); set_ped_reset_flag(PLAYER::PLAYER_PED_ID(), 69, true); } if (AI::GET_SCRIPT_TASK_STATUS(PLAYER::PLAYER_PED_ID(), 2106541073) != 1) { iLocal_326 = network_create_synchronised_scene(vLocal_343, vLocal_346, 2, false, false, 1f, 0f, 1f); network_add_ped_to_synchronised_scene(PLAYER::PLAYER_PED_ID(), iLocal_326, sLocal_329, sLocal_330, 4f, -2f, 261, 0, 1000f, 0); network_start_synchronised_scene(iLocal_326); iLocal_322 = 3; } break; case 3: func_14(); func_11(); hide_hud_and_radar_this_frame(); iLocal_327 = _0x02C40BF885C567B6(iLocal_326); if (is_synchronized_scene_running(iLocal_327)) { iLocal_322 = 4; } break; case 4: func_14(); func_11(); hide_hud_and_radar_this_frame(); if (get_synchronized_scene_phase(iLocal_327) > 0.9f) { iLocal_326 = network_create_synchronised_scene(vLocal_343, vLocal_346, 2, false, true, 1f, 0f, 1f); network_add_ped_to_synchronised_scene(PLAYER::PLAYER_PED_ID(), iLocal_326, sLocal_329, sLocal_331, 8f, -2f, 261, 0, 1000f, 0); network_start_synchronised_scene(iLocal_326); iLocal_322 = 5; } break; case 5: func_14(); func_11(); hide_hud_and_radar_this_frame(); iLocal_327 = _0x02C40BF885C567B6(iLocal_326); if (is_synchronized_scene_running(iLocal_327)) { set_synchronized_scene_looped(iLocal_327, true); if (!func_32("SA_BED_OUT")) { func_10("SA_BED_OUT"); } iLocal_322 = 6; } break; case 6: func_14(); func_11(); hide_hud_and_radar_this_frame(); if (!func_9(1)) { if (!func_32("SA_BED_OUT")) { func_10("SA_BED_OUT"); } } else if (func_32("SA_BED_OUT")) { clear_help(1); } if (!func_40(player_id()) && is_control_just_pressed(2, 222)) { if (func_32("SA_BED_OUT")) { clear_help(1); } func_8(); iLocal_326 = network_create_synchronised_scene(vLocal_343, vLocal_346, 2, false, false, 1f, 0f, 1f); network_add_ped_to_synchronised_scene(PLAYER::PLAYER_PED_ID(), iLocal_326, sLocal_329, sLocal_332, 2f, -2f, 261, 0, 1000f, 0); network_start_synchronised_scene(iLocal_326); iLocal_322 = 8; } break; case 7: if (((is_interior_ready(get_interior_at_coords(vLocal_339)) && !func_7()) && !func_5()) && Global_1312466.f_8 == 0) { iLocal_324 = true; iLocal_326 = network_create_synchronised_scene(vLocal_343, vLocal_346, 2, false, false, 1f, 0f, 1f); network_add_ped_to_synchronised_scene(PLAYER::PLAYER_PED_ID(), iLocal_326, sLocal_329, sLocal_332, 1000f, -2f, 261, 0, 1000f, 0); network_start_synchronised_scene(iLocal_326); iLocal_322 = 8; } break; case 8: if (!iLocal_324) { func_14(); func_11(); hide_hud_and_radar_this_frame(); } iLocal_327 = _0x02C40BF885C567B6(iLocal_326); if (is_synchronized_scene_running(iLocal_327)) { func_4(5); iLocal_322 = 9; } break; case 9: func_14(); hide_hud_and_radar_this_frame(); func_3(0); if (!is_synchronized_scene_running(iLocal_327)) { func_2(); if (iLocal_36) { func_27(player_id(), 1, 0); iLocal_36 = 0; } func_16(0, 1, 1, 0); iLocal_322 = 0; Global_1572920 = -1; } break; } }