// // cocos2d::CCTMXTiledMap::tilesetForLayer from 0xdacd9c to 0xdacee4 (328 bytes) // // 2 xrefs: // > cocos2d::CCTMXTiledMap::parseLayer @ 0xdacef8 // > @ 0xcd6c0 // // 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 13:08:36 +0000 // __int64 __fastcall cocos2d::CCTMXTiledMap::tilesetForLayer( cocos2d::CCTMXTiledMap *this, cocos2d::CCTMXLayerInfo *a2, cocos2d::CCTMXMapInfo *a3) { cocos2d::CCArray *v4; // x0 cocos2d::CCArray *v5; // x21 __int64 result; // x0 unsigned int *v7; // x1 unsigned __int64 v8; // x6 __int64 v9; // x1 __int64 *v10; // x7 __int64 v11; // x4 unsigned int v12; // w5 float v13; // s1 float v14; // s1 float v15; // s0 unsigned int v16; // w1 int v17; // w0 float v19; // [xsp+40h] [xbp+40h] BYREF float v20; // [xsp+44h] [xbp+44h] cocos2d::CCSize::CCSize(&v19, (cocos2d::CCTMXLayerInfo *)((char *)a2 + 88)); v4 = (cocos2d::CCArray *)(*(__int64 (__fastcall **)(cocos2d::CCTMXMapInfo *))(*(_QWORD *)a3 + 96LL))(a3); v5 = v4; if ( !v4 ) return 0; if ( !(unsigned int)cocos2d::CCArray::count(v4) ) return 0; v7 = *((unsigned int **)v5 + 7); if ( !*v7 ) return 0; v8 = *((_QWORD *)v7 + 2); v9 = 8LL * *v7 - 8; result = 0; v10 = (__int64 *)(v8 + v9); if ( v8 <= v8 + v9 ) { v11 = *(_QWORD *)(v8 + v9); if ( v11 ) { while ( 1 ) { v12 = 0; v13 = 0.0; if ( v20 > 0.0 ) break; LABEL_15: if ( v8 <= (unsigned __int64)--v10 ) { v11 = *v10; if ( *v10 ) continue; } return 0; } while ( v19 <= 0.0 ) { LABEL_14: v13 = (float)++v12; if ( (float)v12 >= v20 ) goto LABEL_15; } v14 = v13 * v19; v15 = 0.0; v16 = 0; while ( 1 ) { v17 = *(_DWORD *)(*((_QWORD *)a2 + 12) + 4LL * (unsigned int)(float)(v15 + v14)); if ( v17 ) { if ( (v17 & 0x1FFFFFFFu) >= *(_DWORD *)(v11 + 80) ) return v11; } v15 = (float)++v16; if ( (float)v16 >= v19 ) goto LABEL_14; } } } return result; }
GD Web Decomp Icon

GD Web Decomp

Raw Source