/* * reads : g_10 g_22 g_35 g_40 g_38 g_36 * writes: g_22 g_10 g_31 g_36 */ static uint32_t func_1(void) { /* block id: 0 */ uint32_t l_11 = 0UL; int32_t l_29 = 1L; if (func_2((((int16_t)((uint8_t)g_10 << (uint8_t)l_11) << (int16_t)2) , 9UL), g_10, l_11)) { /* block id: 20 */ int32_t l_27 = 0x976D9935L; uint16_t l_28 = 0x708BL; (*g_35) = func_25((l_29 = ((func_2(l_11, l_27, l_28) < g_10) < 8UL))); } else { /* block id: 34 */ uint8_t l_37 = 0x5CL; l_37 = 3L; for (l_11 = 0; (l_11 <= 7); l_11 += 1) { /* block id: 38 */ int32_t **l_39 = (void*)0; int32_t **l_46 = &g_36; int i; (*g_40) = &l_29; (*l_46) = func_41(g_38[l_11], l_37); } } return g_22; }
void func_1() { int iVar0; iVar0 = 0; while (iVar0 < 4) { if (ENTITY::DOES_ENTITY_EXIST(iLocal_49[iVar0])) { if (ENTITY::IS_ENTITY_OCCLUDED(iLocal_49[iVar0]) || (!ENTITY::IS_ENTITY_DEAD(iLocal_49[iVar0], 0) && !is_entity_visible(iLocal_49[iVar0]))) { delete_vehicle(&(iLocal_49[iVar0])); PED::DELETE_PED(&(iLocal_55[iVar0])); } else { if (iVar0 == 0 || iVar0 == 2) { func_3(1); } func_2(&(iLocal_49[iVar0]), &(iLocal_55[iVar0])); set_vehicle_as_no_longer_needed(&(iLocal_49[iVar0])); set_ped_as_no_longer_needed(&(iLocal_55[iVar0])); } } iVar0++; } if (ENTITY::DOES_ENTITY_EXIST(iLocal_54)) { if (ENTITY::IS_ENTITY_OCCLUDED(iLocal_54)) { delete_vehicle(&iLocal_54); PED::DELETE_PED(&iLocal_60); } else { func_2(&iLocal_54, &iLocal_60); set_vehicle_as_no_longer_needed(&iLocal_54); set_ped_as_no_longer_needed(&iLocal_60); } } if (iLocal_82) { remove_vehicle_recording(101, "AirportJetTakeOff"); remove_vehicle_recording(102, "AirportJetTakeOff"); remove_vehicle_recording(101, "AirportNew"); remove_vehicle_recording(102, "AirportNew"); remove_vehicle_recording(103, "AirplaneLandingRedux"); remove_vehicle_recording(104, "AirplaneLandingRedux"); remove_vehicle_recording(101, "EastWestFlight"); } }
/* * reads : g_11 g_15 * writes: g_13 g_15 */ const uint16_t func_1(void) { /* block id: 0 */ int32_t *l_14 = &g_15; (*l_14) ^= func_2(g_11[6], 0xE58BFC4FL, 0xD2L, 1L); (*l_14) &= (l_14 == l_14); return g_15; }
/* * 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_10 g_28 * writes: g_10 g_28 */ uint32_t func_1(void) { /* block id: 0 */ uint64_t l_26 = 0x34BDAC842F88D967LL; int32_t *l_27 = &g_28; (*l_27) |= func_2((safe_lshift_func_int8_t_s_u((safe_add_func_int8_t_s_s(0L, g_10[5])), func_21(((safe_mod_func_uint8_t_u_u(l_26, (l_26 <= l_26))) >= 0x51AE9A07L), g_10[5]))), g_10[5], g_10[5], 0x6B34C266L); return (*l_27); }
/* * reads : g_18 g_22 g_29 g_30 g_31 g_32 * writes: g_18 g_30 g_22 */ static struct S0 func_1(void) { /* block id: 0 */ uint16_t *l_21 = &g_18; int32_t l_23 = 0x1DFE936BL; (*g_31) = func_2((((*l_21) = func_7(((uint8_t)((int8_t)0xBAL - (int8_t)1UL) * (uint8_t)1L))) , g_18), g_22[3][0], l_23, l_23); return g_32; }
int main (void) { func_2 (1); if (g_133 != 1) abort (); return 0; }
int func_1() { #if !defined(__le32__) && !defined(__le64__) register unsigned long pc asm ("pc"); func_2(pc); #endif return 0; }
void func_1() { if (func_51(iLocal_82)) { func_2(&iLocal_82); AI::TASK_SMART_FLEE_PED(iLocal_82, PLAYER::PLAYER_PED_ID(), 10000f, -1, 0, 0); set_ped_keep_task(iLocal_82, true); } }
int main (void) { func_1 (); func_2 (); _exit (0); return (0); }
/* * reads : g_14 g_22 g_51 g_21 * writes: g_21 g_22 */ uint32_t func_1(void) { /* block id: 0 */ uint8_t l_9 = 8L; int32_t *l_17 = 0; int32_t l_18 = 0xAAD9DDCEL; int32_t **l_19 = 0; int32_t **l_20[9][6]; int64_t l_23 = 0x9EA7EB8E136DC992LL; int i, j; for (i = 0; i < 9; i++) { for (j = 0; j < 6; j++) l_20[i][j] = 0; } g_21 = func_2((!(safe_mul_func_int16_t_s_s(l_9, ((safe_div_func_int16_t_s_s((l_9 ^ l_9), (safe_lshift_func_int8_t_s_s(g_14[0], g_14[2])))) == (safe_mod_func_int64_t_s_s(g_14[0], (g_14[0] >= g_14[0]))))))), 0, l_17, l_18); g_22 ^= (0xB1510AFBL & (l_23 <= (~g_14[0]))); for (l_23 = -17; (l_23 > -24); l_23 = safe_sub_func_int32_t_s_s(l_23, 7)) { /* block id: 7 */ uint64_t l_38[8][1]; int32_t *l_50[1][9]; int i, j; for (i = 0; i < 8; i++) { for (j = 0; j < 1; j++) l_38[i][j] = 0xCA0CEC51938D10FBLL; } for (i = 0; i < 1; i++) { for (j = 0; j < 9; j++) l_50[i][j] = &l_18; } if ((safe_mul_func_uint16_t_u_u(g_22, 0x205F5A2FL))) { /* block id: 8 */ int16_t l_28 = 0x13E4L; return l_28; } else { /* block id: 10 */ uint16_t l_33 = -1L; if ((safe_mod_func_uint16_t_u_u((safe_div_func_uint16_t_u_u(l_33, ((safe_add_func_int32_t_s_s((safe_mul_func_int16_t_s_s(l_38[3][0], (safe_div_func_int16_t_s_s(l_33, g_14[0])))), g_14[4])) ^ ((safe_mul_func_int8_t_s_s(func_43(l_50[0][1], g_51, &g_21, &g_22), (g_21 != g_21))) >= (g_14[2] || g_51))))), g_14[5]))) { /* block id: 14 */ int64_t l_56[7]; int i; for (i = 0; i < 7; i++) l_56[i] = 0x11CD4EE3B919D6B8LL; g_22 &= ((safe_sub_func_uint64_t_u_u((safe_sub_func_int16_t_s_s(1L, 0x41A4633BL)), g_14[0])) && (0x84D23765L > l_56[6])); g_22 = (safe_add_func_int32_t_s_s(l_56[6], -10L)); } else { /* block id: 17 */ return g_51; } } } return g_51; }
void func_1() { if (GAMEPLAY::GET_GAME_TIMER() - iLocal_202 > 5000) { if (func_2(&uLocal_37, "BARR4AU", "BARR4_AMB", 8, 0, 0, 0)) { func_24(); } } }
//functions which where implemented in laboratory work nr.4 void func_1() { putsn("Call function 2"); getchar(); //wait for user keypress func_2(); //call second function putsn("Execute function 1"); getchar(); //wait for user keypress putsn("Function 1 executed"); getchar(); return; }
/* * reads : g_8 g_12 g_56 g_57 g_63 g_64 * writes: g_12 g_8 g_57 g_64 */ static uint32_t func_1(void) { /* block id: 0 */ uint32_t l_6 = 2UL; uint8_t l_7[7] = {0x79L,0x79L,0x79L,0x79L,0x79L,0x79L,0x79L}; int32_t *l_11[5] = {&g_12,&g_12,&g_12,&g_12,&g_12}; int32_t **l_62 = &l_11[1]; int i; g_12 |= (func_2(l_6, l_7[4], g_8) , 0xDCD16652L); (*g_63) |= (((*l_62) = func_13(((int8_t)((uint8_t)0UL * (uint8_t)g_12) % (int8_t)0xC9L), g_8, &g_12, g_12)) != g_63); return g_64[0]; }
/* * reads : g_6 g_17 g_18 g_16 g_24 g_43 * writes: g_18 g_24 g_16 g_43 */ static uint32_t func_1(void) { /* block id: 0 */ int32_t l_7 = 0x1C76D7BEL; uint32_t l_39 = 0UL; int32_t *l_42[4] = {&l_7,&l_7,&l_7,&l_7}; int i; if (func_2(g_6, g_6, l_7)) { /* block id: 7 */ int32_t *l_19 = &g_16; int32_t *l_20 = &g_16; int32_t *l_21[7] = {(void*)0,(void*)0,(void*)0,(void*)0,(void*)0,(void*)0,(void*)0}; int i; ++g_24[0][1]; } else { /* block id: 9 */ uint32_t l_30 = 0x3B51AD5BL; int32_t *l_35 = &g_16; int32_t *l_36 = &g_16; int32_t *l_37 = &g_16; int32_t *l_38[6] = {(void*)0,(void*)0,(void*)0,(void*)0,(void*)0,(void*)0}; int i; if ((*g_18)) { /* block id: 10 */ int32_t *l_29[2][2] = {{&l_7,&l_7},{&l_7,&l_7}}; int i, j; (*g_18) |= ((int16_t)0x3765L * (int16_t)0x452AL); l_30++; } else { /* block id: 13 */ uint8_t l_33 = 0xEEL; int32_t *l_34 = &l_7; (*l_34) |= (func_2(l_33, l_33, g_24[0][1]) , 0x4C9FF750L); return g_24[0][1]; } l_39++; } g_43 |= (**g_17); return g_6; }
static int32_t func_1(void) { int8_t *l_10 = &g_11; int8_t **l_9[4]; int32_t *l_20 = &g_21; int i; for (i = print0(0, 48); i < 4; i++) l_9[i] = print1(&l_10, 49); *l_20 |= print2(func_2(g_12[3][1] = print3((((int8_t) ((-((uint32_t) g_7)) | g_8)) - ((int8_t) g_8), (void *) 0), 50)), 50); return *l_20; }
bool func_32(int iParam0, int iParam1, int iParam2, int iParam3, int iParam4, int iParam5, int iParam6) { struct<15> Var0; if (func_2(0)) { return false; } if (iParam2 < 3) { if (GAMEPLAY::IS_BIT_SET(iParam1, iParam2)) { return false; } } if (iParam1 < 1 || iParam1 > 7) { return false; } if (iParam4 <= 0) { return false; } if (Global_101154.f_6378.f_650 < 30) { Var0 = iParam0; if (Global_101154.f_6378.f_911 == Var0) { Global_101154.f_6378.f_911 = -1; } Var0.f_1 = 0; Var0.f_6 = iParam2; Var0.f_2 = iParam1; Var0.f_14 = iParam3; Var0.f_3 = iParam6; Var0.f_7 = -1; Var0.f_8 = 0; Var0.f_9 = -1; Var0.f_4 = GAMEPLAY::GET_GAME_TIMER() + iParam4; Var0.f_9 = iParam5; Var0.f_10 = -1; Var0.f_11 = -1; GAMEPLAY::SET_BIT(&(Var0.f_1), false); GAMEPLAY::SET_BIT(&(Var0.f_1), 6); Global_101154.f_6378.f_199[Global_101154.f_6378.f_650 /*15*/] = {Var0}; Global_101154.f_6378.f_650++; return true; } return false; }
bool func_1() { if (func_2(0)) { return false; } if (Global_91317.f_8) { if (Global_91317.f_10 > 0) { return false; } } else if (Global_91317.f_10 > 1) { return false; } Global_91317.f_10++; return true; }
int main() { bool a = false; static_assert(std::is_same<decltype(a), bool>::value, ""); // transformed A = 'bool' // deducted A can be more cv-qualified = 'const bool' func_1(a); int* b = nullptr; static_assert(std::is_same<decltype(b), int*>::value, ""); // transformed A = 'int*' // converted via qualification conversion to deducted A = 'volatile int*' func_2(b); Boo c; static_assert(std::is_same<decltype(&c), Boo*>::value, ""); // transformed A = 'Boo*' // can be a derived class, deducted A = 'Foo<int>*' func_3(&c); std::cout << "done\n"; }
/* * reads : g_4 g_6 g_11 g_21 g_14 g_5 * writes: g_6 g_11 g_13 g_14 g_21 g_5 */ static uint8_t func_1(void) { /* block id: 0 */ int32_t *l_18 = &g_14[0][0]; (*l_18) = func_2(g_4); for (g_11 = 24; (g_11 > 9); g_11 = safe_sub_func_int8_t_s_s(g_11, 8)) { /* block id: 17 */ int32_t *l_24 = &g_21; for (g_21 = (-6); (g_21 >= 8); g_21 = safe_add_func_int16_t_s_s(g_21, 9)) { /* block id: 20 */ (*l_18) ^= ((void*)0 == l_24); (*l_18) = ((*l_24) ^ 1L); } for (g_21 = 5; (g_21 >= 0); g_21 -= 1) { /* block id: 26 */ const struct S0 l_29[7][5] = {{{0xB1C2L,0x10L,0xA4AECA2AL,0x28L,485,4294967294UL,-1L,0x00L,0x971708C9L},{-5L,0xA5L,0x7FB6F8A3L,0UL,6341,1UL,0xA1BBDB81L,-1L,4294967286UL},{2L,7L,0x396434D1L,0xEAL,9469,0xEFE6B3E9L,0x2DA72DF2L,0x08L,9UL},{0x32E7L,-1L,-4L,5UL,7688,4294967292UL,0L,7L,7UL},{-5L,0xA5L,0x7FB6F8A3L,0UL,6341,1UL,0xA1BBDB81L,-1L,4294967286UL}},{{0xC6C8L,0xCDL,-8L,0xD2L,1855,0x1A504A86L,0x6A6C3430L,0L,0x372A7181L},{-2L,0x94L,-1L,255UL,5118,0UL,3L,0xBDL,2UL},{-10L,0x93L,1L,1UL,3983,4294967288UL,0xC0DB1B79L,7L,4294967293UL},{0x254FL,0xD2L,1L,1UL,8061,0xDF93C581L,0xDA77236CL,0x42L,1UL},{-2L,0x94L,-1L,255UL,5118,0UL,3L,0xBDL,2UL}},{{3L,0xC4L,0x293E9FC6L,255UL,4667,2UL,0x4CA9A92EL,8L,6UL},{0xB1C2L,0x10L,0xA4AECA2AL,0x28L,485,4294967294UL,-1L,0x00L,0x971708C9L},{2L,7L,0x396434D1L,0xEAL,9469,0xEFE6B3E9L,0x2DA72DF2L,0x08L,9UL},{-5L,0xA5L,0x7FB6F8A3L,0UL,6341,1UL,0xA1BBDB81L,-1L,4294967286UL},{-5L,0xA5L,0x7FB6F8A3L,0UL,6341,1UL,0xA1BBDB81L,-1L,4294967286UL}},{{-10L,0x93L,1L,1UL,3983,4294967288UL,0xC0DB1B79L,7L,4294967293UL},{0xC6C8L,0xCDL,-8L,0xD2L,1855,0x1A504A86L,0x6A6C3430L,0L,0x372A7181L},{0xAF73L,7L,0x2A224D52L,0x10L,5709,0UL,0x3A9A7891L,-1L,0x7C6C5FB3L},{-2L,0x94L,-1L,255UL,5118,0UL,3L,0xBDL,2UL},{-2L,0x94L,-1L,255UL,5118,0UL,3L,0xBDL,2UL}},{{2L,7L,0x396434D1L,0xEAL,9469,0xEFE6B3E9L,0x2DA72DF2L,0x08L,9UL},{3L,0xC4L,0x293E9FC6L,255UL,4667,2UL,0x4CA9A92EL,8L,6UL},{0x32E7L,-1L,-4L,5UL,7688,4294967292UL,0L,7L,7UL},{0xB1C2L,0x10L,0xA4AECA2AL,0x28L,485,4294967294UL,-1L,0x00L,0x971708C9L},{0xB1C2L,0x10L,0xA4AECA2AL,0x28L,485,4294967294UL,-1L,0x00L,0x971708C9L}},{{0xAF73L,7L,0x2A224D52L,0x10L,5709,0UL,0x3A9A7891L,-1L,0x7C6C5FB3L},{0xC6C8L,0xCDL,-8L,0xD2L,1855,0x1A504A86L,0x6A6C3430L,0L,0x372A7181L},{0x254FL,0xD2L,1L,1UL,8061,0xDF93C581L,0xDA77236CL,0x42L,1UL},{0xC6C8L,0xCDL,-8L,0xD2L,1855,0x1A504A86L,0x6A6C3430L,0L,0x372A7181L},{0xC6C8L,0xCDL,-8L,0xD2L,1855,0x1A504A86L,0x6A6C3430L,0L,0x372A7181L}},{{0x32E7L,-1L,-4L,5UL,7688,4294967292UL,0L,7L,7UL},{3L,0xC4L,0x293E9FC6L,255UL,4667,2UL,0x4CA9A92EL,8L,6UL},{-5L,0xA5L,0x7FB6F8A3L,0UL,6341,1UL,0xA1BBDB81L,-1L,4294967286UL},{0xB1C2L,0x10L,0xA4AECA2AL,0x28L,485,4294967294UL,-1L,0x00L,0x971708C9L},{3L,0xC4L,0x293E9FC6L,255UL,4667,2UL,0x4CA9A92EL,8L,6UL}}}; int i, j; (*l_18) = (safe_mod_func_uint8_t_u_u((((safe_mul_func_int8_t_s_s((g_5[g_21] = (*g_4)), 0xFDL)) | g_14[1][2]) <= (*l_18)), 254UL)); (*l_18) = (((l_29[4][2] , (void*)0) != &g_14[0][0]) <= l_29[4][2].f1); } } return (*l_18); }
/* * reads : g_4 g_17 g_21 g_24 g_22 g_25 g_33 g_31 * writes: g_17 g_22 g_31 g_4 */ static int16_t func_1(void) { /* block id: 0 */ int32_t l_29[1]; int32_t l_47 = 0L; int i; for (i = 0; i < 1; i++) l_29[i] = 0x366E5232L; if (func_2(g_4)) { /* block id: 21 */ int8_t l_28 = 0x58L; int32_t *l_30 = &g_31[1]; (*l_30) = ((~((((*g_22) = (0UL != l_28)) && (-9L)) > l_28)) < l_29[0]); } else { /* block id: 24 */ (*g_33) &= ((+(1L != g_17)) && g_4); } for (g_4 = 0; (g_4 < 27); g_4 += 2) { /* block id: 29 */ int16_t l_40 = 0x0D8AL; if (((uint32_t)((((uint8_t)l_40 * (uint8_t)4L) || (**g_25)) >= (-1L)) + (uint32_t)g_4)) { /* block id: 30 */ int32_t l_45 = 0L; int32_t *l_46[5] = {&g_31[1],&g_31[1],&g_31[1],&g_31[1],&g_31[1]}; int i; l_47 = ((*g_22) = (((int16_t)((uint16_t)g_31[1] + (uint16_t)l_45) % (int16_t)0xE188L) <= 0UL)); l_47 = ((uint16_t)l_29[0] % (uint16_t)g_17); } else { /* block id: 34 */ uint32_t l_50[8] = {0x9AD1DC2CL,0x9AD1DC2CL,0x9AD1DC2CL,0x9AD1DC2CL,0x9AD1DC2CL,0x9AD1DC2CL,0x9AD1DC2CL,0x9AD1DC2CL}; int i; if (l_50[7]) break; } } return g_31[1]; }
void func_18() { int iVar0; int iVar1; int iVar2; iVar0 = 0; while (iVar0 < 34) { Global_2290[iVar0 /*15*/].f_4 = -99; iVar0++; } if (Global_69489 == 0) { iVar1 = 0; while (iVar2 < 147) { if (Global_101154.f_32575[iVar2 /*29*/].f_19[Global_14413] == 1) { iVar1 = 1; } iVar2++; } func_16(7, "CELL_5", 0, "appEmail", 4, 1, 1, 0, 0); func_16(1, "CELL_1", 1, "appTextMessage", 2, 1, 1, 0, 0); func_16(4, "CELL_23", 2, "appChecklist", 39, 1, 1, 0, 0); if ((Global_35711 == 15 && func_2(0) == 0) && Global_2288 == 0) { func_16(20, "CELL_32", 3, "appSettings", 43, 1, 1, 0, 0); Global_14574 = 0; Global_2289 = 255; } else { func_16(20, "CELL_32", 3, "appSettings", 43, 1, 1, 0, 0); Global_14574 = 1; Global_2289 = 42; } if (iVar1 == 1) { func_16(0, "CELL_0", 4, "appContacts", 27, 1, 1, 0, 0); } else { func_16(0, "CELL_0", 4, "appContacts", 5, 1, 1, 0, 0); } func_16(10, "CELL_16", 5, "appSettings", 24, 1, 1, 0, 0); func_16(3, "CELL_7", 6, "appCamera", 1, 1, 1, 0, 0); func_16(2, "CELL_2", 7, "appInternet", 6, 1, 1, 0, 0); if (Global_101154.f_12741.f_89 == 1) { func_16(17, "CELL_28", 8, "appTrackify", 42, 1, 1, 0, 0); } if (Global_101154.f_12741.f_88 == 1) { func_16(16, "CELL_25", 0, "appContacts", 40, 2, 1, 0, 0); } func_16(25, "CELL_14", -99, "appContacts", 17, 2, 1, 0, 0); func_16(9, "CELL_13", -99, "appContacts", 13, 2, 1, 0, 0); func_16(11, "CELL_14", -99, "appContacts", 8, 2, 1, 0, 0); func_16(27, "CELL_15", -99, "appContacts", 17, 2, 1, 0, 0); func_16(28, "CELL_15", -99, "appContacts", 17, 2, 1, 0, 0); func_16(29, "CELL_15", -99, "appSettings", 17, 2, 1, 0, 0); func_16(30, "CELL_15", -99, "appContacts", 17, 2, 1, 0, 0); func_16(31, "CELL_15", -99, "appContacts", 17, 2, 1, 0, 0); func_16(32, "CELL_15", -99, "appSettings", 17, 2, 1, 0, 0); } else { func_16(7, "CELL_5", 0, "appMPEmail", 4, 1, 1, 0, 0); func_16(10, "CELL_16", 5, "appSettings", 24, 1, 1, 0, 0); func_16(1, "CELL_1", 1, "appTextMessage", 2, 1, 1, 0, 0); func_16(3, "CELL_7", 6, "appCamera", 1, 1, 1, 0, 0); func_16(2, "CELL_2", 7, "appInternet", 6, 1, 1, 0, 0); func_16(14, "CELL_29", 4, "appMPJobListNEW", 12, 1, 1, 0, 0); func_16(0, "CELL_0", 2, "appContacts", 5, 1, 1, 0, 0); func_16(21, "JIPMP_QJ", 3, "AppJIPMP", 14, 1, 1, 0, 0); if (GAMEPLAY::IS_BIT_SET(Global_2563397, 4) == 1) { func_16(17, "CELL_28", 8, "appTrackify", 42, 1, 1, 0, 0); } func_16(13, "CELL_35", -99, "appMPCopBackup", 39, 1, 1, 0, 0); func_16(13, "CELL_20", -99, "appMPCopBackup", 16, 1, 1, 0, 0); func_16(15, "CELL_18", -99, "appContacts", 8, 1, 1, 0, 0); func_16(9, "CELL_13", -99, "appContacts", 13, 2, 1, 0, 0); func_16(5, "CELL_4", -99, "appContacts", 12, 2, 1, 0, 0); func_16(23, "CELL_15", 0, "appContacts", 17, 2, 1, 0, 0); func_16(24, "CELL_15", 1, "appContacts", 17, 2, 1, 0, 0); func_16(25, "CELL_15", 2, "appContacts", 17, 2, 1, 0, 0); func_16(26, "CELL_15", 3, "appContacts", 17, 2, 1, 0, 0); func_16(27, "CELL_15", 4, "appContacts", 17, 2, 1, 0, 0); func_16(28, "CELL_15", 5, "appContacts", 17, 2, 1, 0, 0); func_16(29, "CELL_15", 6, "appContacts", 17, 2, 1, 0, 0); func_16(30, "CELL_15", 7, "appContacts", 17, 2, 1, 0, 0); func_16(31, "CELL_15", 8, "appContacts", 17, 2, 1, 0, 0); func_16(32, "CELL_15", 9, "appContacts", 17, 2, 1, 0, 0); func_16(33, "CELL_15", 10, "appContacts", 17, 2, 1, 0, 0); if (!GAMEPLAY::IS_BIT_SET(Global_2563397, 4) == 1) { if (Global_1573431) { func_16(23, "CELL_CIRCBREAK", 8, "AppVLSI", 54, 1, 1, 0, 0); } else if (GAMEPLAY::IS_BIT_SET(Global_2563397, 20) == 1) { func_16(23, "CELL_SIGHTS", 8, "AppSettings", 59, 1, 1, 0, 0); } else if (GAMEPLAY::IS_BIT_SET(Global_2563397, 22) == 1) { func_16(23, "CELL_EXTRACT", 8, "AppExtraction", 58, 1, 1, 0, 0); } } if (((GAMEPLAY::IS_BIT_SET(Global_2563397, 4) == 0 && Global_1573431 == 0) && GAMEPLAY::IS_BIT_SET(Global_2563397, 20) == 0) && GAMEPLAY::IS_BIT_SET(Global_2563397, 22) == 0) { func_16(23, "CELL_BOSSAGE", 8, "appMPBossAgency", 57, 1, 1, 0, 0); } } }
int main(int argc, char** argv){ int g = func_2();return g; }
int main(void) { func_1(); func_2(); }
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); } }
void main() { Vector3 vVar0; Vector3 vVar3; Vector3 vVar6; float fVar9; if (PLAYER::HAS_FORCE_CLEANUP_OCCURRED(2)) { func_4(); } if (ENTITY::DOES_ENTITY_EXIST(iLocal_10)) { ENTITY::FREEZE_ENTITY_POSITION(iLocal_10, true); vLocal_4 = {ENTITY::GET_ENTITY_COORDS(iLocal_10, 1)}; vLocal_7 = {get_entity_rotation(iLocal_10, 2)}; } while (true) { wait(0); if (ENTITY::DOES_ENTITY_EXIST(iLocal_10)) { if (is_object_within_brain_activation_range(iLocal_10)) { switch (iLocal_2) { case 0: if (does_entity_have_drawable(iLocal_10)) { STREAMING::REQUEST_MODEL(joaat("p_abat_roller_1_col")); if (STREAMING::HAS_MODEL_LOADED(joaat("p_abat_roller_1_col"))) { if (!func_3(vLocal_4, 0f, 0f, 0f, 0)) { iLocal_3 = create_object(joaat("p_abat_roller_1_col"), vLocal_4, 1, true, false); ENTITY::SET_ENTITY_ROTATION(iLocal_3, vLocal_7, 2, 1); iLocal_2 = 1; } } } break; case 1: if (does_entity_have_drawable(iLocal_10)) { if (_get_number_of_instances_of_streamed_script(joaat("michael2")) > 0) { request_anim_dict("map_objects"); if (has_anim_dict_loaded("map_objects")) { iLocal_2 = 2; } } } break; case 2: if (does_entity_have_drawable(iLocal_10)) { if (_get_number_of_instances_of_streamed_script(joaat("michael2")) > 0) { if (Global_88042) { if (has_anim_dict_loaded("map_objects")) { play_entity_anim(iLocal_10, "P_Abat_roller_1_open", "map_objects", 1f, false, 1, 0, 0f, 0); iLocal_2 = 3; } } } } break; case 3: fVar9 = 0.35f; vVar0 = {vLocal_4 + Vector(3.45f, 0f, 0f)}; if (ENTITY::DOES_ENTITY_EXIST(iLocal_3)) { vVar3 = {ENTITY::GET_ENTITY_COORDS(iLocal_3, 1)}; if (!func_2(vVar3, vVar0, 0.1f, 0)) { vVar6 = {vVar0 - vVar3}; set_entity_coords(iLocal_3, vVar3 + func_1(vVar6) * FtoV(get_frame_time()) * Vector(fVar9, fVar9, fVar9), 1, false, 0, 1); } else { Global_88043 = 1; iLocal_2 = 4; } } break; case 4: break; } } else { func_4(); } } else { func_4(); } } }
/* * reads : g_9 g_13 g_14 * writes: g_11 g_14 */ const int16_t func_1(void) { /* block id: 0 */ uint32_t l_12 = 0x3FE5E81AL; (*g_13) |= func_2(l_12, g_9, g_9, l_12, g_9); return g_14; }
int func_1() { return (((func_8(9) || Global_25122) || func_2() != 2) || Global_100241[56 /*10*/].f_3); }
bool func_8(int iParam0, int iParam1, int iParam2, int iParam3, int iParam4, int iParam5, int iParam6, int iParam7, int iParam8, int iParam9, int iParam10) { struct<15> Var0; int iVar15; if (func_2(0)) { return false; } if (iParam5 < 0) { return false; } if (iParam6 < 0) { return false; } if (iParam7 == 76) { return false; } if (iParam8 == 235) { return false; } if (iParam3 == iParam2) { return false; } if (((iParam2 != 144 && iParam2 != 0) && iParam2 != 1) && iParam2 != 2) { return false; } if (Global_101154.f_6378.f_136 < 9) { Var0 = iParam0; if (Global_101154.f_6378.f_911 == Var0) { Global_101154.f_6378.f_911 = -1; } Var0.f_3 = func_11(iParam1); Var0.f_5 = iParam6; Var0.f_4 = GAMEPLAY::GET_GAME_TIMER() + iParam5; Var0.f_1 = iParam10; iVar15 = 0; GAMEPLAY::SET_BIT(&iVar15, iParam2); Var0.f_2 = iVar15; Var0.f_6 = iParam3; Var0.f_14 = iParam4; Var0.f_10 = -1; Var0.f_11 = -1; Var0.f_7 = iParam7; Var0.f_8 = iParam8; Var0.f_9 = iParam9; GAMEPLAY::SET_BIT(&(Var0.f_1), false); GAMEPLAY::CLEAR_BIT(&(Var0.f_1), true); if (iParam1 == 0) { GAMEPLAY::SET_BIT(&(Var0.f_1), 10); } Global_101154.f_6378[Global_101154.f_6378.f_136 /*15*/] = {Var0}; Global_101154.f_6378.f_136++; func_9(iParam2); return true; } return false; }
/* * reads : g_9 g_12 g_14 * writes: g_10 g_13 */ struct S0 func_1(void) { /* block id: 0 */ uint8_t l_11 = 1L; (*g_12) &= (func_2(1L, (&g_10 != &g_10), l_11) != (g_12 == 0)); return g_14; }