/* * reads : g_22 g_27 g_12 g_24 g_6 g_51 g_54 * writes: g_22 g_43 g_24 g_51 */ static struct S1 func_28(uint16_t p_29, union U2 p_30) { /* block id: 8 */ int16_t l_41 = 0x11E7L; union U2 **l_45 = &g_12; int32_t l_50 = 0x56A6D983L; for (g_22 = 0; (g_22 == (-8)); g_22 -= 1) { /* block id: 11 */ int32_t *l_42 = &g_43; if ((func_35(func_7(((*l_42) = (p_30.f1 < l_41)), (*g_27), g_22), l_42, g_6, g_22, &g_6) , 0L)) { /* block id: 16 */ union U2 ***l_46 = &l_45; (*l_46) = l_45; } else { /* block id: 18 */ int32_t *l_47 = &g_6; int32_t *l_48 = &g_6; int32_t *l_49[3]; int i; for (i = 0; i < 3; i++) l_49[i] = &g_6; ++g_51; if (l_50) continue; } } return g_54; }
static uint8_t func_2 (int32_t p_6) { for (1; p_6 > 1; 1) return 0; func_19 (g_79); if (safe_mul_func_int32_t_s_s ((0, 1 < (safe_rshift_func_uint64_t_u_s (1 ^ p_6, 1))), (func_35 (&p_6, 1, 1) < 1))) { } return 1; }
int main (void) { if (func_35(0)) { int **l_496 = &g_49; { for (g_22 = 0; g_22 < 2; g_22 ++) { return 0; } (*g_49) = (&l_496 == 0); } } return 0; }
static int32_t func_19 (int32_t p_20) { if (1 != safe_div_func_uint64_t_u_u ((safe_div_func_int64_t_s_s (p_20, 1)), g_101)) { func_35 (0, 1 <= (safe_add_func_int8_t_s_s (g_47, g_46)) > p_20 < 1, 1); g_133 = 1; if (g_114 != 0) abort (); if (g_126 != 0) abort (); } return 1; }
void func_18(int iParam0) { int iVar0; int iVar1; iVar0 = 0; while (iVar0 < 5) { iVar1 = iLocal_28 + iVar0; func_25(iVar1, iParam0, 0); func_23(iVar1, 1, 2, 0); func_22(iVar1, 1); func_21(iVar1, 44); if (((Global_101154.f_1815[iVar0 /*2*/] >= 1 || func_35(108) == 1) || func_20(iLocal_29 + iVar0, 0)) || GAMEPLAY::IS_BIT_SET(Global_101154.f_17264[iLocal_30 + iVar0 /*6*/], 3)) { func_19(iVar1, 1); } iVar0++; } }
/* * reads : g_12 g_8 g_56 g_57 * writes: g_8 g_57 g_12 */ static int32_t * func_13(int8_t p_14, int16_t p_15, int32_t * p_16, uint16_t p_17) { /* block id: 6 */ uint8_t l_30 = 1UL; int32_t l_32[7][5] = {{0x3352FB29L,0xF4446944L,1L,1L,0xF4446944L},{0xF4446944L,1L,0x3352FB29L,0xF4446944L,1L},{0L,0xF4446944L,0xAFDDF34FL,0xF4446944L,0L},{0x3352FB29L,0x945AD33DL,1L,1L,0x945AD33DL},{0L,1L,1L,0L,1L},{0xF4446944L,0L,0xAFDDF34FL,0x945AD33DL,0x945AD33DL},{0x3352FB29L,1L,8L,(-1L),1L}}; int32_t l_58 = (-8L); uint32_t l_61[3]; int i, j; for (i = 0; i < 3; i++) l_61[i] = 18446744073709551613UL; for (p_15 = 19; (p_15 != (-14)); p_15 -= 6) { /* block id: 9 */ int32_t l_31[5] = {(-7L),(-7L),(-7L),(-7L),(-7L)}; int i; l_32[5][2] = (((int16_t)(((uint32_t)(((int16_t)(l_30 , (-1L)) << (int16_t)14) >= 0x0E72EE72L) % (uint32_t)(-7L)) < l_31[4]) % (int16_t)p_14) & g_12); } for (g_8 = 25; (g_8 == (-22)); g_8--) { /* block id: 14 */ int32_t *l_39 = (void*)0; for (p_17 = 1; (p_17 <= 4); p_17 += 1) { /* block id: 17 */ int i, j; (*g_56) = func_35(l_32[(p_17 + 2)][p_17], l_39, p_15); } if ((((-1L) > g_8) <= l_58)) { /* block id: 28 */ if ((**g_56)) break; (*p_16) |= 4L; } else { /* block id: 31 */ (*g_57) &= (((int16_t)l_61[2] - (int16_t)1UL) >= l_30); } } return p_16; }
void main() { int iVar0; 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; iLocal_28 = 1; if (PLAYER::HAS_FORCE_CLEANUP_OCCURRED(18)) { func_38(); } func_37(20); func_36(); func_35(1); func_35(0); func_35(2); func_35(13); func_35(12); Global_2288 = 1; func_34(); if (!func_33(-1615086084)) { func_32(-1615086084, 2, 2, 2, 1, -1, 5); } if (!func_33(-1970925435)) { func_32(-1970925435, 2, 0, 0, 1, -1, 5); } if (!func_33(-1817481777)) { func_32(-1817481777, 2, 12, 3, 1, -1, 5); } iVar0 = false; while (func_31(23) && !func_30(134)) { if (func_26() == 1) { if (ENTITY::DOES_ENTITY_EXIST(PLAYER::PLAYER_PED_ID())) { if (!PED::IS_PED_INJURED(PLAYER::PLAYER_PED_ID())) { if ((!is_ped_falling(PLAYER::PLAYER_PED_ID()) && !is_entity_in_water(PLAYER::PLAYER_PED_ID())) && !is_entity_on_fire(PLAYER::PLAYER_PED_ID())) { if (!iVar0) { if (!((func_25() || is_player_switch_in_progress()) || func_24())) { if (func_13()) { iVar0 = true; } } } else { if (iLocal_28) { set_player_control(player_id(), false, 384); set_ped_max_move_blend_ratio(PLAYER::PLAYER_PED_ID(), 0f); enable_control_action(0, 173, 1); enable_control_action(0, 172, 1); enable_control_action(0, 174, 1); enable_control_action(0, 175, 1); enable_control_action(0, 176, 1); enable_control_action(0, 177, 1); enable_control_action(0, 178, 1); enable_control_action(0, 179, 1); enable_control_action(0, 180, 1); enable_control_action(0, 181, 1); } else { set_player_control(player_id(), true, 0); } switch (func_12()) { case -1615086084: if (!func_33(-1989308064)) { func_8(-1989308064, 0, 1, 0, 1, 6000, 6000, -1, 0, -1, 68); } break; case -1989308064: func_7(12, 0); func_6(134, 1); STATS::STAT_SET_INT(joaat("sp_final_decision"), 2, 1); break; case -1970925435: if (!func_33(-1060930305)) { func_8(-1060930305, 0, 1, 2, 2, 6000, 6000, -1, 0, -1, 68); } break; case -1060930305: func_7(12, 1); func_6(134, 1); STATS::STAT_SET_INT(joaat("sp_final_decision"), true, 1); break; case -1817481777: func_7(12, 2); func_6(134, 1); STATS::STAT_SET_INT(joaat("sp_final_decision"), 3, 1); break; default: if (!func_5(0)) { iVar0 = false; } else if (iLocal_28) { if (func_4()) { iLocal_28 = 0; } } break; } } } } } } wait(0); } func_3(20); Global_91317 = 0; func_1(); func_38(); }
int func_34(int iParam0, float fParam1) { return func_35(iParam0, PLAYER::PLAYER_PED_ID(), fParam1, 1, 250, 7); }
void main() { int iVar0; 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; iLocal_28 = 77; iLocal_29 = 194; iLocal_30 = 52; iLocal_28 = 77; if (_get_number_of_instances_of_streamed_script(joaat("rampage_controller")) > 1) { terminate_this_thread(); } if (PLAYER::HAS_FORCE_CLEANUP_OCCURRED(34)) { func_36(); } if (!func_35(108)) { func_36(); } func_34(23); iVar0 = 0; while (iVar0 < 5) { func_26(iLocal_29 + iVar0, 0, 0); GAMEPLAY::SET_BIT(&(Global_101154.f_17264[iLocal_30 + iVar0 /*6*/]), 3); iVar0++; } func_18(1); while (true) { wait(0); if (!func_17(40)) { switch (func_15("RAMP_NEW_ALL")) { case 2: func_12("RAMP_NEW_ALL", 1, 0, 2000, 10000, 4, 0, 0, 0); break; case 1: func_11(40); break; } } if (func_1()) { func_18(0); while (func_1()) { wait(0); } while (is_auto_save_in_progress()) { wait(0); } func_18(1); } } }