// // cocos2d::CCComponentContainer::remove_1 from 0x1001edc64 to 0x1001edf08 (676 bytes) // // 1 xrefs: // > @ 0x1008f1430 // // 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::remove_1(__int64 a1, unsigned __int8 *a2) { __int64 v2; // x8 __int64 v3; // x8 int v4; // w9 int v5; // w10 unsigned int v6; // w9 unsigned int v7; // w11 int v8; // w10 unsigned int v9; // w9 unsigned int v10; // w11 int v11; // w10 __int64 v12; // x8 __int64 v13; // x9 __int64 v15; // x8 __int64 v16; // x19 __int64 result; // x0 __int64 v18; // x21 __int64 v19; // x9 __int64 v20; // x8 _QWORD *v21; // x8 __int64 v22; // x11 __int64 v23; // t1 __int64 v24; // x10 __int64 v25; // x13 __int64 v26; // x12 _QWORD *v27; // x13 __int64 v28; // x8 __int64 v29; // x8 __int64 v30; // x9 __int64 v31; // x9 __int64 v32; // x10 void *v33; // x0 v2 = *(_QWORD *)(a1 + 8); if ( !v2 ) return 0; v3 = *(_QWORD *)(v2 + 56); if ( !v3 ) return 0; v4 = *((_DWORD *)a2 + 1) - 1640531527; v5 = ((a2[3] << 24) - v4 + (a2[2] << 16) + (a2[1] << 8) + *a2 - 1622558014) ^ 0x7F76D; v6 = (v4 - v5 + 17973513) ^ (v5 << 8); v7 = (-17973513 - v5 - v6) ^ (v6 >> 13); v8 = (v5 - v6 - v7) ^ (v7 >> 12); v9 = (v6 - v7 - v8) ^ (v8 << 16); v10 = (v7 - v8 - v9) ^ (v9 >> 5); v11 = (v8 - v9 - v10) ^ (v10 >> 3); v12 = *(_QWORD *)(v3 + 272); v13 = *(_QWORD *)(*(_QWORD *)v12 + 16LL * (((v10 - v11 - ((v9 - v10 - v11) ^ (v11 << 10))) ^ (((v9 - v10 - v11) ^ (v11 << 10)) >> 15)) & (*(_DWORD *)(v12 + 8) - 1))); if ( !v13 ) return 0; v15 = -*(_QWORD *)(v12 + 32); while ( 1 ) { v16 = v13 + v15; if ( *(_DWORD *)(v13 + v15 + 320) == 8 && **(_QWORD **)(v16 + 312) == *(_QWORD *)a2 ) break; v13 = *(_QWORD *)(v16 + 304); if ( !v13 ) return 0; } result = *(_QWORD *)(v16 + 264); if ( result ) { result = (__int64)__dynamic_cast( (const void *)result, (const struct __class_type_info *)&`typeinfo for'cocos2d::CCObject, (const struct __class_type_info *)&`typeinfo for'cocos2d::CCComponent, 0); if ( result ) { v18 = result; (*(void (__fastcall **)(__int64))(*(_QWORD *)result + 96LL))(result); sub_100154050(v18, 0); v19 = *(_QWORD *)(v16 + 280); if ( v19 || *(_QWORD *)(v16 + 288) ) { v20 = *(_QWORD *)(a1 + 8); v23 = *(_QWORD *)(v20 + 56); v21 = (_QWORD *)(v20 + 56); v22 = v23; v24 = *(_QWORD *)(v23 + 272); v25 = *(_QWORD *)(v24 + 32); if ( v16 == *(_QWORD *)(v24 + 24) - v25 ) *(_QWORD *)(v24 + 24) = v25 + v19; v26 = *(_QWORD *)(v16 + 288); v27 = (_QWORD *)(v25 + v19 + 16); if ( v19 ) { v28 = v22; } else { v27 = v21; v28 = *(_QWORD *)(v16 + 288); } *v27 = v26; v29 = *(_QWORD *)(v28 + 272); if ( v26 ) *(_QWORD *)(*(_QWORD *)(v29 + 32) + v26 + 8) = v19; v30 = *(_QWORD *)v29 + 16LL * ((unsigned int)(*(_DWORD *)(v29 + 8) - 1) & *(_DWORD *)(v16 + 324)); --*(_DWORD *)(v30 + 8); if ( *(_QWORD *)v30 == v16 + 272 ) *(_QWORD *)v30 = *(_QWORD *)(v16 + 304); v31 = *(_QWORD *)(v16 + 296); v32 = *(_QWORD *)(v16 + 304); if ( v31 ) *(_QWORD *)(v31 + 32) = v32; if ( v32 ) *(_QWORD *)(v32 + 24) = v31; --*(_DWORD *)(v29 + 16); } else { free(**(void ***)(*(_QWORD *)(*(_QWORD *)(a1 + 8) + 56LL) + 272LL)); free(*(void **)(*(_QWORD *)(*(_QWORD *)(a1 + 8) + 56LL) + 272LL)); *(_QWORD *)(*(_QWORD *)(a1 + 8) + 56LL) = 0; } cocos2d::CCObject::release(*(_DWORD **)(v16 + 264)); v33 = (void *)nullsub_214(v16); operator delete(v33); return 1; } } return result; }
GD Web Decomp Icon

GD Web Decomp

Raw Source