// // cocos2d::CCTMXTiledMap::tilesetForLayer from 0xb3a5a4 to 0xb3a6ec (328 bytes) // // 2 xrefs: // > cocos2d::CCTMXTiledMap::parseLayer @ 0xb3a700 // > @ 0x9bf10 // // This function is hookable on this platform! // // Using BromaIDA 8.0.0 @ https://github.com/Stazzical/BromaIDA // Using bindings at commit ba9f177b at Thu Jul 16 22:52:06 2026 from https://github.com/geode-sdk/bindings // cocos2d::CCTMXTilesetInfo *cocos2d::CCTMXTiledMap::tilesetForLayer( cocos2d::CCTMXTiledMap *a1, cocos2d::CCTMXLayerInfo *a2, cocos2d::CCTMXMapInfo *a3) { cocos2d::CCArray *v4; // x0 cocos2d::CCArray *v5; // x21 cocos2d::CCTMXTilesetInfo *result; // x0 cocos2d::ccArray *data; // x1 unsigned __int64 arr; // x6 __int64 v9; // x1 cocos2d::CCTMXTilesetInfo **v10; // x7 cocos2d::CCTMXTilesetInfo *v11; // x4 unsigned int v12; // w5 float v13; // s1 float v14; // s1 float v15; // s0 unsigned int v16; // w1 int v17; // w0 cocos2d::CCSize v19; // [xsp+40h] [xbp+40h] BYREF cocos2d::CCSize::CCSize(&v19, (const cocos2d::CCSize *)&a2[1].m_nTag); v4 = a3->getTilesets(a3); v5 = v4; if ( !v4 ) return nullptr; if ( !(unsigned int)cocos2d::CCArray::count(v4) ) return nullptr; data = v5->data; if ( !data->num ) return nullptr; arr = (unsigned __int64)data->arr; v9 = 8LL * data->num - 8; result = nullptr; v10 = (cocos2d::CCTMXTilesetInfo **)(arr + v9); if ( arr <= arr + v9 ) { v11 = *(cocos2d::CCTMXTilesetInfo **)(arr + v9); if ( v11 ) { while ( 1 ) { v12 = 0; v13 = 0.0; if ( v19.height > 0.0 ) break; LABEL_15: if ( arr <= (unsigned __int64)--v10 ) { v11 = *v10; if ( *v10 ) continue; } return nullptr; } while ( v19.width <= 0.0 ) { LABEL_14: v13 = (float)++v12; if ( (float)v12 >= v19.height ) goto LABEL_15; } v14 = v13 * v19.width; v15 = 0.0; v16 = 0; while ( 1 ) { v17 = *(_DWORD *)(*(_QWORD *)&a2[1].m_uAutoReleaseCount + 4LL * (unsigned int)(float)(v15 + v14)); if ( v17 ) { if ( (v17 & 0x1FFFFFFFu) >= v11[1].m_uID ) return v11; } v15 = (float)++v16; if ( (float)v16 >= v19.width ) goto LABEL_14; } } } return result; }
GD Web Decomp Icon

GD Web Decomp

Raw Source