// // cocos2d::CCComponentContainer::add from 0x1001edb24 to 0x1001edc44 (288 bytes) // // 1 xrefs: // > @ 0x1008f1428 // // 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 11:00:36 +0000 // __int64 __fastcall cocos2d::CCComponentContainer::add(__int64 a1, __int64 a2) { __int64 v4; // x0 __int64 v5; // x21 __int64 v6; // x0 char *v7; // x0 const void *v8; // x0 void *v9; // x0 void *v10; // x21 __int64 v12; // x20 char *v13; // x0 void *__p[2]; // [xsp+8h] [xbp-38h] BYREF char v15; // [xsp+1Fh] [xbp-21h] v4 = sub_100154048(a2); v5 = *(_QWORD *)(a1 + 8); if ( !v5 ) { v6 = cocos2d::CCDictionary::create(v4); *(_QWORD *)(a1 + 8) = v6; cocos2d::CCObject::retain(v6); v5 = *(_QWORD *)(a1 + 8); } v7 = (char *)sub_10015402C(a2); sub_100009900(__p, v7); v8 = (const void *)cocos2d::CCDictionary::objectForKey(v5, __p); if ( !v8 ) { if ( v15 < 0 ) operator delete(__p[0]); goto LABEL_11; } v9 = __dynamic_cast( v8, (const struct __class_type_info *)&`typeinfo for'cocos2d::CCObject, (const struct __class_type_info *)&`typeinfo for'cocos2d::CCComponent, 0); v10 = v9; if ( (v15 & 0x80000000) == 0 ) { if ( !v9 ) goto LABEL_11; return 0; } operator delete(__p[0]); if ( v10 ) return 0; LABEL_11: sub_100154050(a2, *(_QWORD *)(a1 + 16)); v12 = *(_QWORD *)(a1 + 8); v13 = (char *)sub_10015402C(a2); sub_100009900(__p, v13); cocos2d::CCDictionary::setObject(v12, a2, __p); if ( v15 < 0 ) operator delete(__p[0]); (*(void (__fastcall **)(__int64))(*(_QWORD *)a2 + 88LL))(a2); return 1; }
GD Web Decomp Icon

GD Web Decomp

Raw Source