// // GJSmartTemplate::getPrefabWithID from 0x1402b3490 to 0x1402b354a (186 bytes) // // 5 xrefs: // > EditorUI::createPrefab @ 0x140117ccc // > BrowseSmartKeyLayer::onButton @ 0x14045beff // > BrowseSmartKeyLayer::onButton @ 0x14045bf90 // > BrowseSmartKeyLayer::updateChanceValues @ 0x14045c40f // > @ 0x1406d23a8 // // 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 // // Hidden C++ exception states: #wind=1 struct cocos2d::CCObject *__fastcall GJSmartTemplate::getPrefabWithID(__int64 a1, __int64 a2, int a3) { cocos2d::CCArray *v5; // rax cocos2d::CCArray *v6; // rdi unsigned int v7; // ebx struct cocos2d::CCObject *v8; // rsi if ( a3 > 0 && (v5 = (cocos2d::CCArray *)cocos2d::CCDictionary::objectForKey(*(_QWORD *)(a1 + 56), a2), (v6 = v5) != nullptr) && cocos2d::CCArray::count(v5) && (v7 = 0, cocos2d::CCArray::count(v6)) ) { while ( 1 ) { v8 = cocos2d::CCArray::objectAtIndex(v6, v7); if ( v8[2].m_uID == a3 ) break; if ( ++v7 >= cocos2d::CCArray::count(v6) ) goto LABEL_7; } sub_14003A830(a2); return v8; } else { LABEL_7: sub_14003A830(a2); return nullptr; } }
GD Web Decomp Icon

GD Web Decomp

Raw Source