// // sub_1800A1400 from 0x1800a1400 to 0x1800a146e (110 bytes) // // 2 xrefs: // > cocos2d::CCArray::addObjectNew @ 0x1800069d4 // > @ 0x1801c16a4 // // This function is hookable on this platform (idp: pc, 32 bit: False, 64 bit: True! // // 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:22:13 +0000 // __int64 __fastcall sub_1800A1400(unsigned int *a1, cocos2d::CCObject *a2) { unsigned int i; // ecx unsigned int v5; // eax void *v6; // rcx __int64 result; // rax for ( i = a1[1]; i < *a1 + 1; i = a1[1] ) { v5 = 2 * i; v6 = *((void **)a1 + 2); a1[1] = v5; *((_QWORD *)a1 + 2) = realloc(v6, 8LL * v5); } cocos2d::CCObject::retain(a2); *(_QWORD *)(*((_QWORD *)a1 + 2) + 8LL * *a1) = a2; result = *a1; *((_DWORD *)a2 + 8) = result; ++*a1; return result; }
GD Web Decomp Icon

GD Web Decomp

Raw Source