// // sub_46BB18 from 0x46bb18 to 0x46bc26 (270 bytes) // // 0 xrefs: // // This function is hookable on this platform (idp: arm, 32 bit: True, 64 bit: False! // // Using BromaIDA 8.3.0 @ https://github.com/Stazzical/BromaIDA // Using bindings at commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings // Generated at Fri, 27 Nov 2026 11:49:00 +0000 // int __fastcall sub_46BB18(int a1) { pthread_key_t *v2; // r0 std::__thread_struct *v3; // r1 int v4; // r0 int v5; // r1 int v6; // r2 int v7; // r0 int v8; // r1 int v9; // r2 int v10; // r10 LocalLevelManager *v11; // r0 int v12; // r0 _DWORD v14[3]; // [sp+Ch] [bp-38h] BYREF _DWORD v15[3]; // [sp+18h] [bp-2Ch] BYREF unsigned __int8 v16[12]; // [sp+24h] [bp-20h] BYREF unsigned int v17[3]; // [sp+30h] [bp-14h] BYREF v2 = (pthread_key_t *)std::__thread_local_data(); v3 = *(std::__thread_struct **)a1; *(_DWORD *)a1 = 0; std::__thread_specific_ptr::reset(v2, v3); v4 = *(_DWORD *)(a1 + 32); v5 = *(_DWORD *)(a1 + 36); v6 = *(_DWORD *)(a1 + 40); *(_DWORD *)(a1 + 32) = 0; *(_DWORD *)(a1 + 36) = 0; *(_DWORD *)(a1 + 40) = 0; v15[0] = v4; v15[1] = v5; v15[2] = v6; v7 = *(_DWORD *)(a1 + 44); v8 = *(_DWORD *)(a1 + 48); v9 = *(_DWORD *)(a1 + 52); *(_DWORD *)(a1 + 44) = 0; *(_DWORD *)(a1 + 48) = 0; *(_DWORD *)(a1 + 52) = 0; v14[0] = v7; v14[1] = v8; v14[2] = v9; cocos2d::ZipUtils::compressString(v16, v15, 0, 1, 11); GameToolbox::saveStringToFile((unsigned __int8 *)v14, v16, 1, 1); v10 = *(_DWORD *)(a1 + 28); std::operator+(v17, (unsigned __int8 *)(a1 + 16), "_"); AutoBackupPopup::pruneBackups(a1 + 4, v10, v17, 0); v11 = (LocalLevelManager *)std::string::~string((int)v17); v12 = LocalLevelManager::sharedState(v11); __dmb(0xFu); *(_BYTE *)(v12 + 377) = 0; __dmb(0xFu); std::string::~string((int)v16); std::string::~string((int)v14); std::string::~string((int)v15); sub_45F7FC((std::__thread_struct **)a1); operator delete((void *)a1); return 0; }
GD Web Decomp Icon

GD Web Decomp

Raw Source