// // cocos2d::CCTMXLayer::setupTiles from 0x1800b0ad0 to 0x1800b0c25 (341 bytes) // // 6 xrefs: // > cocos2d::CCTMXTiledMap::buildWithMapInfo @ 0x1800b17ec // > cocos2d::CCTMXTiledMap::parseLayer @ 0x1800b1d3d // > @ 0x1801498b8 // > @ 0x1801498c8 // > @ 0x18014cf68 // > @ 0x1801c2520 // // This function is hookable on this platform (idp: pc, 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 11:22:19 +0000 // void __fastcall cocos2d::CCTMXLayer::setupTiles(cocos2d::CCTMXLayer *this) { __int64 v2; // rbx cocos2d::CCTexture2D *v3; // rax const struct cocos2d::CCSize *ContentSizeInPixels; // rax cocos2d::CCTexture2D *v5; // rax int v6; // ebp float v7; // xmm6_4 float v8; // xmm2_4 int v9; // ebx float v10; // xmm1_4 unsigned int v11; // esi float *v12; // rax unsigned int v13; // eax float v14; // [rsp+50h] [rbp+8h] BYREF v2 = *((_QWORD *)this + 48); v3 = (cocos2d::CCTexture2D *)(*(__int64 (__fastcall **)(_QWORD))(**((_QWORD **)this + 41) + 88LL))(*((_QWORD *)this + 41)); ContentSizeInPixels = cocos2d::CCTexture2D::getContentSizeInPixels(v3); cocos2d::CCSize::operator=((_DWORD *)(v2 + 144), ContentSizeInPixels); v5 = (cocos2d::CCTexture2D *)(*(__int64 (__fastcall **)(_QWORD))(**((_QWORD **)this + 41) + 88LL))(*((_QWORD *)this + 41)); cocos2d::CCTexture2D::setAliasTexParameters(v5); cocos2d::CCTMXLayer::parseInternalProperties(this); v6 = 0; if ( *((float *)this + 91) > 0.0 ) { v7 = 0.0; do { v8 = *((float *)this + 90); v9 = 0; if ( v8 > 0.0 ) { v10 = 0.0; do { v11 = *(_DWORD *)(*((_QWORD *)this + 47) + 4LL * (unsigned int)(int)(float)((float)(v7 * v8) + v10)); if ( v11 ) { v12 = kmVec2Fill(&v14, v10, v7); cocos2d::CCTMXLayer::appendTileForGID(this, v11, (const struct cocos2d::CCPoint *)v12); v13 = v11; if ( v11 >= *((_DWORD *)this + 111) ) v13 = *((_DWORD *)this + 111); *((_DWORD *)this + 111) = v13; if ( v11 <= *((_DWORD *)this + 112) ) v11 = *((_DWORD *)this + 112); *((_DWORD *)this + 112) = v11; } v8 = *((float *)this + 90); v10 = (float)++v9; } while ( v8 > (float)v9 ); } v7 = (float)++v6; } while ( *((float *)this + 91) > (float)v6 ); } }
GD Web Decomp Icon

GD Web Decomp

Raw Source