bool func_43(Vector3 vParam0, Vector3 vParam1, int iParam2, float fParam3) { auto uVar0; char* sVar165; char* sVar166; if (iLocal_84 < iLocal_85) { if (!func_23()) { if (vdist2(vParam3, vParam0) < fParam7 * fParam7) { if (GAMEPLAY::GET_GAME_TIMER() - iLocal_83 > iParam6 + GAMEPLAY::GET_RANDOM_INT_IN_RANGE(false, 2000)) { uVar0 = 16; func_47(&uVar0, 3, iLocal_82, "MAUDE", 0, 1); sVar165 = func_46(); sVar166 = func_21(); func_44(&uVar0, sVar165, sVar166, 7, 0, 0); iLocal_83 = GAMEPLAY::GET_GAME_TIMER(); iLocal_84++; return true; } } } else { iLocal_83 = GAMEPLAY::GET_GAME_TIMER(); } } return false; }
void main() { 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; if (PLAYER::HAS_FORCE_CLEANUP_OCCURRED(19)) { func_24(); } while (true) { wait(0); if (func_21(1)) { func_24(); } else { switch (iLocal_36) { case 0: func_19(); break; case 1: func_1(); break; } } } }
bool func_13() { if (Global_14413.f_1 > 3) { GAMEPLAY::CLEAR_BIT(&Global_2284, false); func_21(0); return false; } GAMEPLAY::SET_BIT(&Global_2284, false); if (func_14(0, 0, 1, 1)) { return true; } GAMEPLAY::CLEAR_BIT(&Global_2284, false); return false; }
/* * reads : g_2 g_4 g_33 g_32 g_41 * writes: g_4 g_32 */ static int32_t func_1(void) { /* block id: 0 */ uint16_t l_5 = 0xC5A6L; int32_t *l_17[7]; int i; for (i = 0; i < 7; i++) l_17[i] = &g_4; l_5 ^= g_2; for (g_4 = 11; (g_4 != (-5)); g_4--) { /* block id: 4 */ int32_t l_16 = 1L; int32_t l_20[7] = {0xA0B34938L,0xA0B34938L,(-6L),0xA0B34938L,0xA0B34938L,(-6L),0xA0B34938L}; int i; l_20[3] = ((uint8_t)func_10((+(0xF82DL < g_4)), l_16, l_16, l_17[3]) % (uint8_t)g_4); (*g_41) = func_21((func_23(((((void*)0 != &g_4) == g_2) == g_4), g_4, &g_4, l_20[3], &l_20[3]) , (*g_33))); } return g_4; }
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++; } }
int func_15(int iParam0) { int iVar0; switch (iParam0) { case 0: return "SPEECH_PARAMS_STANDARD"; case 1: return "SPEECH_PARAMS_ALLOW_REPEAT"; case 2: return "SPEECH_PARAMS_BEAT"; case 3: return "SPEECH_PARAMS_FORCE"; case 4: return "SPEECH_PARAMS_FORCE_FRONTEND"; case 5: return "SPEECH_PARAMS_FORCE_NO_REPEAT_FRONTEND"; case 6: return "SPEECH_PARAMS_FORCE_NORMAL"; case 7: return "SPEECH_PARAMS_FORCE_NORMAL_CLEAR"; case 8: return "SPEECH_PARAMS_FORCE_NORMAL_CRITICAL"; case 9: return "SPEECH_PARAMS_FORCE_SHOUTED"; case 10: return "SPEECH_PARAMS_FORCE_SHOUTED_CLEAR"; case 11: return "SPEECH_PARAMS_FORCE_SHOUTED_CRITICAL"; case 12: return "SPEECH_PARAMS_FORCE_PRELOAD_ONLY"; case 13: return "SPEECH_PARAMS_MEGAPHONE"; case 14: return "SPEECH_PARAMS_HELI"; case 15: return "SPEECH_PARAMS_FORCE_MEGAPHONE"; case 16: return "SPEECH_PARAMS_FORCE_HELI"; case 17: return "SPEECH_PARAMS_INTERRUPT"; case 18: return "SPEECH_PARAMS_INTERRUPT_SHOUTED"; case 19: return "SPEECH_PARAMS_INTERRUPT_SHOUTED_CLEAR"; case 20: return "SPEECH_PARAMS_INTERRUPT_SHOUTED_CRITICAL"; case 21: return "SPEECH_PARAMS_INTERRUPT_NO_FORCE"; case 22: return "SPEECH_PARAMS_INTERRUPT_FRONTEND"; case 23: return "SPEECH_PARAMS_INTERRUPT_NO_FORCE_FRONTEND"; case 24: return "SPEECH_PARAMS_ADD_BLIP"; case 25: return "SPEECH_PARAMS_ADD_BLIP_ALLOW_REPEAT"; case 26: return "SPEECH_PARAMS_ADD_BLIP_FORCE"; case 27: return "SPEECH_PARAMS_ADD_BLIP_SHOUTED"; case 28: return "SPEECH_PARAMS_ADD_BLIP_SHOUTED_FORCE"; case 29: return "SPEECH_PARAMS_ADD_BLIP_INTERRUPT"; case 30: return "SPEECH_PARAMS_ADD_BLIP_INTERRUPT_FORCE"; case 31: return "SPEECH_PARAMS_FORCE_PRELOAD_ONLY_SHOUTED"; case 32: return "SPEECH_PARAMS_FORCE_PRELOAD_ONLY_SHOUTED_CLEAR"; case 33: return "SPEECH_PARAMS_FORCE_PRELOAD_ONLY_SHOUTED_CRITICAL"; case 34: return "SPEECH_PARAMS_SHOUTED"; case 35: return "SPEECH_PARAMS_SHOUTED_CLEAR"; case 36: return "SPEECH_PARAMS_SHOUTED_CRITICAL"; default: } iVar0 = 0; return iVar0; } void func_16(int iParam0) { struct<6> Var0; char* sVar6; if (func_23()) { Var0 = {func_22()}; sVar6 = func_21(); if (GAMEPLAY::ARE_STRINGS_EQUAL(&Var0, sVar6)) { if (iParam0) { func_19(); } else { func_17(); } } } } void func_17() { Global_14578 = 0; func_18(); }
/* * 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); }