// // cocos2d::CCTMXTiledMap::tilesetForLayer from 0x1800ae5d0 to 0x1800ae6eb (283 bytes) // // 5 xrefs: // > cocos2d::CCTMXTiledMap::buildWithMapInfo @ 0x1800adf7f // > cocos2d::CCTMXTiledMap::parseLayer @ 0x1800ae480 // > @ 0x1801438a8 // > @ 0x1801b83d0 // > @ 0x1801b83dc // // 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 // struct cocos2d::CCTMXTilesetInfo *__fastcall cocos2d::CCTMXTiledMap::tilesetForLayer( cocos2d::CCTMXTiledMap *this, struct cocos2d::CCTMXLayerInfo *a2, struct cocos2d::CCTMXMapInfo *a3) { cocos2d::CCArray *v5; // rax cocos2d::CCArray *v6; // rbx cocos2d::ccArray *data; // rax __int64 num; // rcx cocos2d::CCObject **arr; // rbx unsigned __int64 v10; // r11 int v11; // r9d int v12; // edx float v13; // xmm0_4 int v14; // eax float v16; // [rsp+38h] [rbp+10h] BYREF float v17; // [rsp+3Ch] [rbp+14h] cocos2d::cc_timeval::operator=(&v16, &a2[1].m_unknown2); v5 = (cocos2d::CCArray *)((__int64 (__fastcall *)(struct cocos2d::CCTMXMapInfo *))a3->getTilesets)(a3); v6 = v5; if ( v5 ) { if ( (unsigned int)cocos2d::CCArray::count(v5) ) { data = v6->data; num = data->num; if ( (_DWORD)num ) { arr = data->arr; v10 = (unsigned __int64)&arr[num - 1]; if ( v10 >= (unsigned __int64)arr ) { while ( *(_QWORD *)v10 ) { v11 = 0; if ( v17 > 0.0 ) { while ( 1 ) { v12 = 0; if ( v16 > 0.0 ) break; LABEL_12: if ( v17 <= (float)++v11 ) goto LABEL_13; } v13 = 0.0; while ( 1 ) { v14 = *(_DWORD *)(*(_QWORD *)&a2[1].m_uOrderOfArrival + 4LL * (unsigned int)(int)(float)(v13 + (float)((float)v11 * v16))); if ( v14 ) { if ( (v14 & 0x1FFFFFFFu) >= *(_DWORD *)(*(_QWORD *)v10 + 88LL) ) return *(struct cocos2d::CCTMXTilesetInfo **)v10; } v13 = (float)++v12; if ( v16 <= (float)v12 ) goto LABEL_12; } } LABEL_13: v10 -= 8LL; if ( v10 < (unsigned __int64)arr ) return nullptr; } } } } } return nullptr; }
GD Web Decomp Icon

GD Web Decomp

Raw Source