// // cocos2d::CCTMXLayer::appendTileForGID from 0xdac004 to 0xdac168 (356 bytes) // // 2 xrefs: // > cocos2d::CCTMXLayer::setupTiles @ 0xdac250 // > @ 0xa3888 // // 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::appendTileForGID( cocos2d::CCTMXLayer *this, unsigned int a2, const cocos2d::CCPoint *a3) { cocos2d::CCDirector *v5; // x0 float v6; // s10 cocos2d::CCDirector *v7; // x0 float v8; // s10 float v9; // s8 cocos2d::CCDirector *v10; // x0 cocos2d::CCDirector *v11; // x0 float v12; // s1 float v13; // s9 cocos2d::CCDirector *v14; // x0 cocos2d::CCDirector *v15; // x0 float v16; // s2 float v17; // s8 cocos2d::CCDirector *v18; // x0 cocos2d::CCDirector *v19; // x0 float ContentScaleFactor; // s0 __int64 v21; // x21 __int64 *v22; // x23 unsigned int v23; // w19 float v26; // [xsp+70h] [xbp+70h] float v27; // [xsp+80h] [xbp+80h] __int64 v28; // [xsp+98h] [xbp+98h] BYREF float v29; // [xsp+A0h] [xbp+A0h] float v30; // [xsp+A4h] [xbp+A4h] float v31[4]; // [xsp+A8h] [xbp+A8h] BYREF v5 = (cocos2d::CCDirector *)cocos2d::CCTMXTilesetInfo::rectForGID( &v28, *((cocos2d::CCTMXTilesetInfo **)this + 48), a2); v6 = *(float *)&v28; v7 = (cocos2d::CCDirector *)cocos2d::CCDirector::sharedDirector(v5); v8 = v6 / cocos2d::CCDirector::getContentScaleFactor(v7); v9 = *((float *)&v28 + 1); v11 = (cocos2d::CCDirector *)cocos2d::CCDirector::sharedDirector(v10); v12 = v9 / cocos2d::CCDirector::getContentScaleFactor(v11); v13 = v29; v26 = v12; v15 = (cocos2d::CCDirector *)cocos2d::CCDirector::sharedDirector(v14); v16 = v13 / cocos2d::CCDirector::getContentScaleFactor(v15); v17 = v30; v27 = v16; v19 = (cocos2d::CCDirector *)cocos2d::CCDirector::sharedDirector(v18); ContentScaleFactor = cocos2d::CCDirector::getContentScaleFactor(v19); cocos2d::CCRect::CCRect((cocos2d::CCRect *)v31, v8, v26, v27, v17 / ContentScaleFactor); cocos2d::CCRect::operator=((float *)&v28, v31); v21 = (__int64)(float)(*(float *)a3 + (float)(*((float *)a3 + 1) * *((float *)this + 89))); cocos2d::CCRect::CCRect((cocos2d::CCRect *)v31, (const cocos2d::CCRect *)&v28); v22 = (__int64 *)cocos2d::CCTMXLayer::reusedTileWithRect((__int64)this, (__int64)v31); cocos2d::CCPoint::CCPoint(v31, a3); cocos2d::CCTMXLayer::setupTileSprite((unsigned __int8 *)this, v22, (const cocos2d::CCPoint *)v31, a2); v23 = **((_DWORD **)this + 58); cocos2d::CCSpriteBatchNode::insertQuadFromSprite(this, (cocos2d::CCSprite *)v22, v23); cocos2d::ccCArrayInsertValueAtIndex(*((_QWORD *)this + 58), v21, v23); return v22; }
GD Web Decomp Icon

GD Web Decomp

Raw Source