// // LevelEditorLayer::addTriggersWithGroupID from 0x79b3a0 to 0x79b528 (392 bytes) // // 1 xrefs: // > @ 0xd45c0 // // 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::addTriggersWithGroupID( LevelEditorLayer *a1, _QWORD *a2, cocos2d::CCArray *a3, _QWORD *a4, int a5) { __int64 AllObjects; // x0 unsigned int *v10; // x1 int **v11; // x19 int **v12; // x21 int *v13; // x20 int v15; // w28 __int64 *v16; // x28 int v17; // [xsp+64h] [xbp+64h] BYREF AllObjects = LevelEditorLayer::getAllObjects(a1); if ( AllObjects ) { v10 = *(unsigned int **)(AllObjects + 56); if ( *v10 ) { v11 = *((int ***)v10 + 2); v12 = &v11[*v10 - 1]; if ( v11 <= v12 ) { v13 = *v11; if ( *v11 ) { while ( 1 ) { if ( v13[312] != 1 || a5 > 0 && v13[257] != a5 ) goto LABEL_6; v17 = v13[229]; if ( std::__hash_table,std::__unordered_map_hasher,std::hash,true>,std::__unordered_map_equal,std::equal_to,true>,std::allocator>>::find( a4, &v17) ) { goto LABEL_6; } if ( std::__hash_table,std::equal_to,std::allocator>::find(a2, v13 + 366) ) { v15 = v13[366]; } else { if ( !std::__hash_table,std::equal_to,std::allocator>::find( a2, v13 + 367) ) goto LABEL_15; v15 = v13[367]; } if ( v15 ) goto LABEL_21; LABEL_15: if ( v13[257] == 1268 ) { v16 = (__int64 *)a2[2]; if ( v16 ) { while ( !SpawnTriggerGameObject::getRemapWithTarget((SpawnTriggerGameObject *)v13, *((_DWORD *)v16 + 4)) ) { v16 = (__int64 *)*v16; if ( !v16 ) goto LABEL_6; } v15 = *((_DWORD *)v16 + 4); LABEL_21: if ( v15 > 0 ) { cocos2d::CCArray::addObject(a3, (cocos2d::CCObject *)v13); v17 = v13[229]; *(_DWORD *)std::unordered_map::operator[]((unsigned __int64)a4, &v17) = v15; } } } LABEL_6: if ( v12 >= ++v11 ) { v13 = *v11; if ( *v11 ) continue; } return _stack_chk_guard; } } } } } return _stack_chk_guard; }
GD Web Decomp Icon

GD Web Decomp

Raw Source