// // GJChallengeItem::createFromString from 0x8d8d78 to 0x8d8f34 (444 bytes) // // 2 xrefs: // > GameLevelManager::onGetGJChallengesCompleted @ 0x83b2a0 // > @ 0x7fee8 // // This function is hookable on this platform (idp: arm, 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 12:56:46 +0000 // __int64 __fastcall GJChallengeItem::createFromString(unsigned __int8 *a1) { cocos2d::CCArray *v1; // x20 cocos2d::CCString *v2; // x0 int v3; // w23 cocos2d::CCString *v4; // x0 int v5; // w26 cocos2d::CCString *v6; // x0 int v7; // w25 cocos2d::CCString *v8; // x0 int v9; // w24 cocos2d::CCString *v10; // x0 const char *CString; // x0 size_t v12; // x0 __int64 v13; // x20 char *v15; // [xsp+58h] [xbp+58h] __int64 v16; // [xsp+68h] [xbp+68h] BYREF size_t v17; // [xsp+70h] [xbp+70h] void *v18; // [xsp+78h] [xbp+78h] __int64 v19; // [xsp+80h] [xbp+80h] BYREF size_t v20; // [xsp+88h] [xbp+88h] void *v21; // [xsp+90h] [xbp+90h] v1 = sub_8CF0E8(a1, &byte_1169BE0); if ( (unsigned int)cocos2d::CCArray::count(v1) <= 4 ) return 0; v2 = (cocos2d::CCString *)cocos2d::CCArray::stringAtIndex(v1, 0); v3 = cocos2d::CCString::intValue(v2); v4 = (cocos2d::CCString *)cocos2d::CCArray::stringAtIndex(v1, 1u); v5 = cocos2d::CCString::intValue(v4); v6 = (cocos2d::CCString *)cocos2d::CCArray::stringAtIndex(v1, 2u); v7 = cocos2d::CCString::intValue(v6); v8 = (cocos2d::CCString *)cocos2d::CCArray::stringAtIndex(v1, 3u); v9 = cocos2d::CCString::intValue(v8); v10 = (cocos2d::CCString *)cocos2d::CCArray::stringAtIndex(v1, 4u); CString = (const char *)cocos2d::CCString::getCString(v10); v16 = 0; v15 = (char *)CString; v17 = 0; v18 = nullptr; v12 = strlen(CString); std::string::__init(&v16, v15, v12); v19 = 0; v20 = 0; v21 = nullptr; if ( (v16 & 1) != 0 ) { std::string::__init(&v19, v18, v17); } else { v21 = v18; v19 = v16; v20 = v17; } v13 = GJChallengeItem::create(v5, v7, v9, v3, (char *)&v19); if ( (v19 & 1) != 0 ) operator delete(v21); if ( (v16 & 1) != 0 ) operator delete(v18); return v13; }
GD Web Decomp Icon

GD Web Decomp

Raw Source