// // cocos2d::CCTMXLayer::setupTiles from 0xdac168 to 0xdac2c8 (352 bytes) // // 2 xrefs: // > cocos2d::CCTMXTiledMap::parseLayer @ 0xdacf10 // > @ 0x65650 // // 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:35 +0000 // __int64 __fastcall cocos2d::CCTMXLayer::setupTiles(cocos2d::CCTMXLayer *this) { __int64 v2; // x19 cocos2d::CCTexture2D *v3; // x0 float *ContentSizeInPixels; // x0 cocos2d::CCTexture2D *v5; // x0 float v6; // s1 float v7; // s8 unsigned int v8; // w23 float v9; // s2 unsigned int v10; // w20 float v11; // s0 unsigned int v12; // w19 unsigned int v13; // w0 unsigned int v14; // w1 float v16; // [xsp+50h] [xbp+50h] BYREF v2 = *((_QWORD *)this + 48); v3 = (cocos2d::CCTexture2D *)(*(__int64 (__fastcall **)(_QWORD))(**((_QWORD **)this + 41) + 96LL))(*((_QWORD *)this + 41)); ContentSizeInPixels = (float *)cocos2d::CCTexture2D::getContentSizeInPixels(v3); cocos2d::CCSize::operator=((float *)(v2 + 128), ContentSizeInPixels); v5 = (cocos2d::CCTexture2D *)(*(__int64 (__fastcall **)(_QWORD))(**((_QWORD **)this + 41) + 96LL))(*((_QWORD *)this + 41)); cocos2d::CCTexture2D::setAliasTexParameters(v5); cocos2d::CCTMXLayer::parseInternalProperties(this); v6 = *((float *)this + 90); if ( v6 > 0.0 ) { v7 = 0.0; v8 = 0; v9 = *((float *)this + 89); do { v10 = 0; v11 = 0.0; if ( v9 > 0.0 ) { do { while ( 1 ) { v12 = *(_DWORD *)(*((_QWORD *)this + 47) + 4LL * (unsigned int)(float)(v11 + (float)(v7 * v9))); if ( v12 ) break; v11 = (float)++v10; if ( (float)v10 >= v9 ) goto LABEL_12; } ++v10; cocos2d::CCPoint::CCPoint(&v16, v11, v7); cocos2d::CCTMXLayer::appendTileForGID(this, v12, (const cocos2d::CCPoint *)&v16); v13 = *((_DWORD *)this + 109); v11 = (float)v10; v14 = *((_DWORD *)this + 110); v9 = *((float *)this + 89); if ( v12 <= v13 ) v13 = v12; *((_DWORD *)this + 109) = v13; if ( v12 < v14 ) v12 = v14; *((_DWORD *)this + 110) = v12; } while ( v11 < v9 ); LABEL_12: v6 = *((float *)this + 90); } v7 = (float)++v8; } while ( (float)v8 < v6 ); } return _stack_chk_guard; }
GD Web Decomp Icon

GD Web Decomp

Raw Source