// // GameManager::addRecentEmote from 0x41787c to 0x4179a6 (298 bytes) // // 1 xrefs: // > EmotePickerPopup::onPickEmote @ 0x779578 // // 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:47:42 +0000 // int __fastcall GameManager::addRecentEmote(GameManager *this, const char *a2) { unsigned __int8 *v3; // r10 size_t v4; // r0 unsigned int v5; // r6 int v6; // r8 unsigned __int8 *v8; // r11 int v9; // r1 int v10; // r1 size_t v11; // r2 const void *v12; // r0 size_t v13; // r0 unsigned __int8 *v14; // r3 int v15; // r2 const void *v16; // r1 size_t v17; // r2 int v18; // [sp+Ch] [bp-28h] int v19; // [sp+14h] [bp-20h] BYREF int v20; // [sp+18h] [bp-1Ch] int v21; // [sp+1Ch] [bp-18h] int v22[3]; // [sp+20h] [bp-14h] BYREF v3 = (unsigned __int8 *)this + 1280; v19 = 0; v20 = 0; v21 = 0; sub_4173C4((unsigned __int8 *)this + 1280, ",", &v19); memset(v22, 0, sizeof(v22)); v4 = strlen(a2); std::string::__init(v22, a2, v4); v5 = 0; v6 = 1; while ( v5 < -1431655765 * ((v20 - v19) >> 2) && v6 <= 15 ) { v8 = (unsigned __int8 *)(v19 + 12 * v5); v9 = *v8; if ( (v9 & 1) != 0 ) { if ( !*((_DWORD *)v8 + 1) ) goto LABEL_12; v13 = strlen(a2); v11 = v13; if ( v13 == *((_DWORD *)v8 + 1) ) { if ( v13 == -1 ) sub_387948(); v12 = *((const void **)v8 + 2); LABEL_11: if ( !v11 || !memcmp(v12, a2, v11) ) goto LABEL_12; } } else { v10 = v9 >> 1; if ( !v10 ) goto LABEL_12; v18 = v10; v11 = strlen(a2); if ( v11 == v18 ) { v12 = v8 + 1; goto LABEL_11; } } std::string::append(v22, ","); v14 = (unsigned __int8 *)(v19 + 12 * v5); v15 = *v14; if ( (v15 & 1) != 0 ) { v16 = *((const void **)v14 + 2); v17 = *((_DWORD *)v14 + 1); } else { v16 = v14 + 1; v17 = v15 >> 1; } std::string::append(v22, v16, v17); ++v6; LABEL_12: ++v5; } std::string::operator=(v3, (unsigned __int8 *)v22); std::string::~string((int)v22); return std::__vector_base::~__vector_base((int)&v19); }
GD Web Decomp Icon

GD Web Decomp

Raw Source