// // BrowseSmartKeyLayer::create from 0x1004ea7b0 to 0x1004ea94a (410 bytes) // // 1 xrefs: // > BrowseSmartTemplateLayer::onTemplateObject @ 0x1004ea2e2 // // 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 // char *__fastcall BrowseSmartKeyLayer::create(__int64 a1, __int128 *a2) { char *v2; // rbx char v3; // r14 __int128 v5; // [rsp+0h] [rbp-30h] BYREF void *__p; // [rsp+10h] [rbp-20h] v2 = (char *)operator new(0x2C8u); cocos2d::CCLayerColor::CCLayerColor((__int64)v2); *((_QWORD *)v2 + 72) = 0; *((_DWORD *)v2 + 146) = 0; v2[588] = 0; *((_OWORD *)v2 + 34) = 0; *(_OWORD *)(v2 + 553) = 0; *((_OWORD *)v2 + 37) = 0; *((_QWORD *)v2 + 76) = 0; *((_DWORD *)v2 + 154) = -1; *((_WORD *)v2 + 310) = 0; *((_DWORD *)v2 + 156) = -1; v2[628] = 0; *(_OWORD *)(v2 + 632) = 0; *((_DWORD *)v2 + 162) = 0; *((_OWORD *)v2 + 41) = 0; *((_QWORD *)v2 + 84) = 0; *(_QWORD *)v2 = off_100957708; *((_QWORD *)v2 + 40) = off_100957C30; *((_QWORD *)v2 + 41) = &off_100957CA0; *((_QWORD *)v2 + 42) = off_100957CB8; *((_QWORD *)v2 + 43) = off_100957CD8; *((_QWORD *)v2 + 44) = off_100957CF8; *((_QWORD *)v2 + 51) = off_100957D20; *((_QWORD *)v2 + 54) = off_100957DA0; *(_OWORD *)(v2 + 692) = 0; *(_OWORD *)(v2 + 680) = 0; if ( (*(_BYTE *)a2 & 1) != 0 ) { sub_100006B70(&v5, *((const void **)a2 + 2), *((_QWORD *)a2 + 1), 0.0); } else { __p = *((void **)a2 + 2); v5 = *a2; } v3 = BrowseSmartKeyLayer::init(v2, a1, &v5); if ( (v5 & 1) != 0 ) operator delete(__p); if ( v3 ) { cocos2d::CCObject::autorelease((cocos2d::CCObject *)v2); } else { (*(void (__fastcall **)(char *))(*(_QWORD *)v2 + 16LL))(v2); return nullptr; } return v2; }