// // LevelEditorLayer::addTriggersWithGroupID from 0x46afa0 to 0x46b090 (240 bytes) // // 0 xrefs: // // This function is hookable on this platform (idp: arm, 32 bit: True, 64 bit: False! // // 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:49:00 +0000 // _DWORD *__fastcall LevelEditorLayer::addTriggersWithGroupID( LevelEditorLayer *a1, _DWORD *a2, cocos2d::CCArray *a3, _DWORD *a4, int a5) { _DWORD *result; // r0 _DWORD *v9; // r3 unsigned int **v10; // r6 unsigned int *v11; // r4 unsigned int *v12; // t1 int v13; // r2 _DWORD *i; // r2 unsigned int **v15; // [sp+0h] [bp-14h] _DWORD *v16; // [sp+4h] [bp-10h] int v17; // [sp+4h] [bp-10h] unsigned int v18; // [sp+8h] [bp-Ch] BYREF result = (_DWORD *)LevelEditorLayer::getAllObjects(a1); if ( result ) { v9 = (_DWORD *)result[13]; if ( *v9 ) { v10 = (unsigned int **)v9[3]; v15 = &(&v10[*v9])[-1]; while ( 1 ) { while ( 1 ) { if ( v10 <= v15 ) { v12 = *v10++; v11 = v12; if ( v12 ) continue; } return result; if ( v11[271] == 1 && (a5 <= 0 || a5 == v11[223]) ) { v18 = v11[195]; result = std::__hash_table,std::__unordered_map_hasher,std::hash,true>,std::__unordered_map_equal,std::equal_to,true>,std::allocator>>::find( a4, &v18); if ( !result ) break; } } result = std::__hash_table,std::equal_to,std::allocator>::find(a2, v11 + 321); if ( result ) break; result = std::__hash_table,std::equal_to,std::allocator>::find(a2, v11 + 322); if ( result ) { v13 = v11[322]; LABEL_16: if ( !v13 ) goto LABEL_13; LABEL_22: v17 = v13; if ( v13 > 0 ) { cocos2d::CCArray::addObject(a3, (cocos2d::CCObject *)v11); v18 = v11[195]; result = std::unordered_map::operator[]((int)a4, &v18); *result = v17; } } else { LABEL_13: if ( v11[223] == 1268 ) { for ( i = (_DWORD *)a2[2]; i; i = (_DWORD *)*v16 ) { v16 = i; result = (_DWORD *)SpawnTriggerGameObject::getRemapWithTarget((SpawnTriggerGameObject *)v11, i[2]); if ( result ) { v13 = v16[2]; goto LABEL_22; } } } } } v13 = v11[321]; goto LABEL_16; } } return result; }
GD Web Decomp Icon

GD Web Decomp

Raw Source