// // sub_18009E170 from 0x18009e170 to 0x18009e1ac (60 bytes) // // 6 xrefs: // > cocos2d::CCKeyboardDispatcher::addDelegate @ 0x180044d95 // > cocos2d::CCMouseDispatcher::removeDelegate @ 0x180045a51 // > cocos2d::CCMouseDispatcher::addDelegate @ 0x180060ca5 // > cocos2d::CCTouchDispatcher::removeDelegate @ 0x1800b3176 // > cocos2d::CCKeypadDispatcher::addDelegate @ 0x1800b4405 // > @ 0x1801b7560 // // 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 sub_18009E170(__int64 a1, __int64 a2) { void *result; // rax unsigned int v4; // eax *(_QWORD *)(*(_QWORD *)(a1 + 16) + 8LL * (unsigned int)(*(_DWORD *)a1)++) = a2; result = (void *)*(unsigned int *)(a1 + 4); if ( *(_DWORD *)a1 >= (unsigned int)result ) { v4 = 2 * (_DWORD)result; *(_DWORD *)(a1 + 4) = v4; result = realloc(*(void **)(a1 + 16), 8LL * v4); *(_QWORD *)(a1 + 16) = result; } return result; }
GD Web Decomp Icon

GD Web Decomp

Raw Source