// // GJOptionsLayer::incrementCountForPage from 0x10029d000 to 0x10029d106 (262 bytes) // // 2 xrefs: // > GJOptionsLayer::addToggleInternal @ 0x10029c8b3 // > GameOptionsLayer::setupOptions @ 0x1002b14f6 // // This function is hookable on this platform! // // Using BromaIDA 8.0.0 @ https://github.com/Stazzical/BromaIDA // Using bindings at commit ba9f177b at Thu Jul 16 22:52:06 2026 from https://github.com/geode-sdk/bindings // void __fastcall GJOptionsLayer::incrementCountForPage(GJOptionsLayer *a1, int a2) { double v2; // xmm0_8 cocos2d::CCDictionary *m_values; // rbx __int64 v4; // r14 cocos2d::CCString *v5; // rax const char *CString; // r12 size_t v7; // rax size_t v8; // r15 char *v9; // r13 cocos2d::CCDictionary *v10; // r14 size_t v11; // rbx char v12; // [rsp+0h] [rbp-50h] char v13; // [rsp+0h] [rbp-50h] __int64 v14; // [rsp+8h] [rbp-48h] _QWORD __dst[2]; // [rsp+10h] [rbp-40h] BYREF void *__p; // [rsp+20h] [rbp-30h] GJOptionsLayer::countForPage(a1, a2); m_values = a1->m_values; v4 = sub_1007AB580("%i", v12); v5 = (cocos2d::CCString *)sub_1007AB580("page_%i", v13); CString = cocos2d::CCString::getCString(v5); v7 = strlen(CString); if ( v7 >= 0xFFFFFFFFFFFFFFF8LL ) sub_100006BF0(v2); v8 = v7; if ( v7 >= 0x17 ) { v14 = v4; v10 = m_values; v11 = 26; if ( (v7 | 7) != 0x17 ) v11 = (v7 | 7) + 1; v9 = (char *)operator new(v11); __p = v9; __dst[0] = v11 + 1; m_values = v10; v4 = v14; __dst[1] = v8; goto LABEL_8; } LOBYTE(__dst[0]) = 2 * v7; v9 = (char *)__dst + 1; if ( v7 ) LABEL_8: memmove(v9, CString, v8); v9[v8] = 0; cocos2d::CCDictionary::setObject_1(m_values, v4, __dst); if ( (__dst[0] & 1) != 0 ) operator delete(__p); }
GD Web Decomp Icon

GD Web Decomp

Raw Source