// // cocos2d::CCTMXLayer::tileAt from 0xdac2c8 to 0xdac4ec (548 bytes) // // 1 xrefs: // > @ 0xfb290 // // 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 // cocos2d::CCSprite *__fastcall cocos2d::CCTMXLayer::tileAt(cocos2d::CCTMXTilesetInfo **this, const cocos2d::CCPoint *a2) { unsigned int v4; // w24 unsigned int v5; // w20 cocos2d::CCSprite *v6; // x22 cocos2d::CCDirector *v8; // x0 float v9; // s10 cocos2d::CCDirector *v10; // x0 float v11; // s10 float v12; // s8 cocos2d::CCDirector *v13; // x0 cocos2d::CCDirector *v14; // x0 float v15; // s1 float v16; // s9 cocos2d::CCDirector *v17; // x0 cocos2d::CCDirector *v18; // x0 float v19; // s2 float v20; // s8 cocos2d::CCDirector *v21; // x0 cocos2d::CCDirector *v22; // x0 float ContentScaleFactor; // s0 float v24; // s0 void (__fastcall *v25)(cocos2d::CCSprite *, __int64, __int64 *); // x26 __int64 v26; // x0 void (__fastcall *v27)(cocos2d::CCSprite *, float *); // x25 const cocos2d::CCPoint *v28; // x1 void (__fastcall *v29)(cocos2d::CCSprite *, float); // x23 int v30; // w0 unsigned int v31; // w0 float v32; // [xsp+70h] [xbp+70h] float v33; // [xsp+80h] [xbp+80h] __int64 v34; // [xsp+98h] [xbp+98h] BYREF float v35; // [xsp+A0h] [xbp+A0h] float v36; // [xsp+A4h] [xbp+A4h] float v37[4]; // [xsp+A8h] [xbp+A8h] BYREF v4 = cocos2d::CCTMXLayer::tileGIDAt((cocos2d::CCTMXLayer *)this, a2); if ( !v4 ) return nullptr; v5 = (int)(float)(*(float *)a2 + (float)(*((float *)a2 + 1) * *((float *)this + 89))); v6 = (cocos2d::CCSprite *)(*((__int64 (__fastcall **)(cocos2d::CCTMXTilesetInfo **, _QWORD))*this + 60))(this, v5); if ( !v6 ) { v8 = (cocos2d::CCDirector *)cocos2d::CCTMXTilesetInfo::rectForGID(&v34, *(this + 48), v4); v9 = *(float *)&v34; v10 = (cocos2d::CCDirector *)cocos2d::CCDirector::sharedDirector(v8); v11 = v9 / cocos2d::CCDirector::getContentScaleFactor(v10); v12 = *((float *)&v34 + 1); v14 = (cocos2d::CCDirector *)cocos2d::CCDirector::sharedDirector(v13); v15 = v12 / cocos2d::CCDirector::getContentScaleFactor(v14); v16 = v35; v32 = v15; v18 = (cocos2d::CCDirector *)cocos2d::CCDirector::sharedDirector(v17); v19 = v16 / cocos2d::CCDirector::getContentScaleFactor(v18); v20 = v36; v33 = v19; v22 = (cocos2d::CCDirector *)cocos2d::CCDirector::sharedDirector(v21); ContentScaleFactor = cocos2d::CCDirector::getContentScaleFactor(v22); cocos2d::CCRect::CCRect((cocos2d::CCRect *)v37, v11, v32, v33, v20 / ContentScaleFactor); cocos2d::CCRect::operator=((float *)&v34, v37); v6 = (cocos2d::CCSprite *)operator new(0x258u); v24 = cocos2d::CCSprite::CCSprite(v6); v25 = *(void (__fastcall **)(cocos2d::CCSprite *, __int64, __int64 *))(*(_QWORD *)v6 + 1016LL); v26 = (*((__int64 (__fastcall **)(cocos2d::CCTMXTilesetInfo **, float))*this + 112))(this, v24); v25(v6, v26, &v34); (*(void (__fastcall **)(cocos2d::CCSprite *, cocos2d::CCTMXTilesetInfo **))(*(_QWORD *)v6 + 1120LL))(v6, this); v27 = *(void (__fastcall **)(cocos2d::CCSprite *, float *))(*(_QWORD *)v6 + 184LL); cocos2d::CCTMXLayer::positionAt((cocos2d::CCTMXLayer *)this, a2, (__int64)v37); v27(v6, v37); v28 = a2; v29 = *(void (__fastcall **)(cocos2d::CCSprite *, float))(*(_QWORD *)v6 + 112LL); v30 = cocos2d::CCTMXLayer::vertexZForPos((cocos2d::CCTMXLayer *)this, v28); v29(v6, (float)v30); (*(void (__fastcall **)(cocos2d::CCSprite *, void *))(*(_QWORD *)v6 + 296LL))(v6, &unk_1562410); (*(void (__fastcall **)(cocos2d::CCSprite *, _QWORD))(*(_QWORD *)v6 + 912LL))(v6, *((unsigned __int8 *)this + 432)); v31 = cocos2d::CCTMXLayer::atlasIndexForExistantZ((cocos2d::CCTMXLayer *)this, v5); cocos2d::CCSpriteBatchNode::addSpriteWithoutQuad((cocos2d::CCSpriteBatchNode *)this, v6, v31, v5); cocos2d::CCObject::release(v6); } return v6; }
GD Web Decomp Icon

GD Web Decomp

Raw Source