// // LevelEditorLayer::addTriggersWithTargetGroupID from 0x79b204 to 0x79b3a0 (412 bytes) // // 1 xrefs: // > @ 0x74578 // // 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:53:36 +0000 // __int64 __fastcall LevelEditorLayer::addTriggersWithTargetGroupID( LevelEditorLayer *a1, _QWORD *a2, __int64 a3, cocos2d::CCArray *a4, _QWORD *a5, int a6) { __int64 AllObjects; // x0 unsigned int *v11; // x1 int **v12; // x19 __int64 v13; // x0 char *v14; // x20 int *v15; // x28 __int64 *v17; // x27 int v18; // [xsp+64h] [xbp+64h] int v20; // [xsp+74h] [xbp+74h] BYREF AllObjects = LevelEditorLayer::getAllObjects(a1); if ( AllObjects ) { v11 = *(unsigned int **)(AllObjects + 56); if ( *v11 ) { v12 = *((int ***)v11 + 2); v13 = 8LL * *v11 - 8; v14 = (char *)v12 + v13; if ( v12 <= (int **)((char *)v12 + v13) ) { v15 = *v12; if ( *v12 ) { while ( 1 ) { if ( v15[312] == 1 && (a6 <= 0 || v15[257] == a6) ) { v20 = v15[229]; if ( !std::__hash_table,std::__unordered_map_hasher,std::hash,true>,std::__unordered_map_equal,std::equal_to,true>,std::allocator>>::find( a5, &v20) ) { if ( std::__hash_table,std::equal_to,std::allocator>::find( a2, v15 + 366) ) { v18 = v15[366]; goto LABEL_14; } if ( std::__hash_table,std::equal_to,std::allocator>::find( a2, v15 + 367) ) { v18 = v15[367]; LABEL_14: if ( v18 > 0 ) { if ( v15[257] == 1268 && (v17 = *(__int64 **)(a3 + 16)) != nullptr ) { while ( !SpawnTriggerGameObject::getRemapWithSource( (SpawnTriggerGameObject *)v15, *((_DWORD *)v17 + 4)) ) { v17 = (__int64 *)*v17; if ( !v17 ) goto LABEL_16; } } else { LABEL_16: cocos2d::CCArray::addObject(a4, (cocos2d::CCObject *)v15); v20 = v15[229]; *(_DWORD *)std::unordered_map::operator[]((unsigned __int64)a5, &v20) = v18; } } } } } if ( v14 >= (char *)++v12 ) { v15 = *v12; if ( *v12 ) continue; } return _stack_chk_guard; } } } } } return _stack_chk_guard; }
GD Web Decomp Icon

GD Web Decomp

Raw Source