// // cocos2d::CCTMXLayer::appendTileForGID from 0x10025a4a0 to 0x10025a615 (373 bytes) // // 0 xrefs: // // This function is hookable on this platform! // // Using BromaIDA 8.0.0 @ https://github.com/Stazzical/BromaIDA // Using bindings at commit ba9f177b at Thu Jul 16 22:52:06 2026 from https://github.com/geode-sdk/bindings // cocos2d::CCSprite *__fastcall cocos2d::CCTMXLayer::appendTileForGID( cocos2d::CCTMXLayer *a1, unsigned int a2, const cocos2d::CCPoint *a3) { cocos2d::CCDirector *v4; // rax float v5; // xmm0_4 cocos2d::CCDirector *v6; // rax float v7; // xmm0_4 cocos2d::CCDirector *v8; // rax float v9; // xmm0_4 cocos2d::CCDirector *v10; // rax float v11; // xmm0_4 __int64 v12; // r13 cocos2d::CCSprite *v13; // r12 unsigned int v14; // r14d _BYTE v16[16]; // [rsp+4h] [rbp-5Ch] BYREF cocos2d::CCTMXTilesetInfo v17; // [rsp+14h] [rbp-4Ch] BYREF cocos2d::CCRect v18; // 0:xmm0_8.8,8:xmm1_8.8 v17.m_nTag = a2; cocos2d::CCTMXTilesetInfo::rectForGID(&v17, *(_QWORD *)&a1[1].m_uAutoReleaseCount); v17.m_uAutoReleaseCount = (unsigned int)v17.__vftable; v4 = cocos2d::CCDirector::sharedDirector(); v5 = sub_1004849C0(v4); *(float *)&v17.m_uAutoReleaseCount = *(float *)&v17.m_uAutoReleaseCount / v5; v17.m_eObjType = HIDWORD(v17.__vftable); v6 = cocos2d::CCDirector::sharedDirector(); v7 = sub_1004849C0(v6); *(float *)&v17.m_eObjType = *(float *)&v17.m_eObjType / v7; v17.m_uIndexInArray = v17.m_uID; v8 = cocos2d::CCDirector::sharedDirector(); v9 = sub_1004849C0(v8); *(float *)&v17.m_uIndexInArray = *(float *)&v17.m_uIndexInArray / v9; v17.m_uReference = v17.m_nLuaID; v10 = cocos2d::CCDirector::sharedDirector(); v11 = sub_1004849C0(v10); v18.size = (cocos2d::CCSize)(unsigned int)v17.m_eObjType; sub_10028CC00( v16, COERCE_DOUBLE((unsigned __int64)v17.m_uAutoReleaseCount), COERCE_DOUBLE((unsigned __int64)(unsigned int)v17.m_eObjType), *(float *)&v17.m_uIndexInArray, *(float *)&v17.m_uReference / v11); sub_10028D1A0(&v17, v16); v12 = (unsigned int)(int)(float)((float)(a3->y * *(float *)(&a1->m_bManualSortAllChildrenDirty + 3)) + a3->x); *(double *)&v18.origin = sub_10028D180(v16); v13 = cocos2d::CCTMXLayer::reusedTileWithRect(a1, v18); *(double *)&v18.origin = sub_10028CC60(v16); cocos2d::CCTMXLayer::setupTileSprite(a1, v13, v18.origin, (unsigned int)v16); v14 = **(_DWORD **)&a1[1].m_obAnchorPoint.y; cocos2d::CCSpriteBatchNode::insertQuadFromSprite(a1, v13, v14); sub_1006683C0(*(_QWORD *)&a1[1].m_obAnchorPoint.y, v12, v14); return v13; }
GD Web Decomp Icon

GD Web Decomp

Raw Source