// // cocos2d::CCTMXLayer::appendTileForGID from 0x100244430 to 0x1002445a5 (373 bytes) // // 0 xrefs: // // 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 12:27:19 +0000 // __int64 __fastcall cocos2d::CCTMXLayer::appendTileForGID(__int64 a1, unsigned int a2, float *a3) { __int64 v4; // rdx __int64 v6; // rsi __int64 v7; // rdi float v8; // xmm0_4 __int64 v9; // rdi float v10; // xmm0_4 __int64 v11; // rdi float v12; // xmm0_4 __int64 v13; // rax float v14; // xmm0_4 double v15; // xmm3_8 __int64 v16; // r13 __int64 v17; // r12 unsigned int v18; // r14d _BYTE v20[16]; // [rsp+4h] [rbp-5Ch] BYREF _DWORD v21[4]; // [rsp+14h] [rbp-4Ch] BYREF unsigned int v22; // [rsp+24h] [rbp-3Ch] float v23; // [rsp+28h] [rbp-38h] float v24; // [rsp+2Ch] [rbp-34h] float v25; // [rsp+30h] [rbp-30h] float v26; // [rsp+34h] [rbp-2Ch] v4 = a2; v22 = a2; v6 = *(_QWORD *)(a1 + 384); cocos2d::CCTMXTilesetInfo::rectForGID(v21, v6, v4); v24 = *(float *)v21; v7 = cocos2d::CCDirector::sharedDirector(v21, v6); v8 = sub_100479350(v7); v24 = v24 / v8; v25 = *(float *)&v21[1]; v9 = cocos2d::CCDirector::sharedDirector(v7, v6); v10 = sub_100479350(v9); v25 = v25 / v10; v26 = *(float *)&v21[2]; v11 = cocos2d::CCDirector::sharedDirector(v9, v6); v12 = sub_100479350(v11); v26 = v26 / v12; v23 = *(float *)&v21[3]; v13 = cocos2d::CCDirector::sharedDirector(v11, v6); v14 = sub_100479350(v13); *(_QWORD *)&v15 = LODWORD(v23); *(float *)&v15 = v23 / v14; sub_100278270( v20, COERCE_DOUBLE((unsigned __int64)LODWORD(v24)), COERCE_DOUBLE((unsigned __int64)LODWORD(v25)), COERCE_DOUBLE((unsigned __int64)LODWORD(v26)), v15); sub_100278810(v21, v20); v16 = (unsigned int)(int)(float)((float)(a3[1] * *(float *)(a1 + 356)) + *a3); sub_1002787F0(v20, v21); v17 = cocos2d::CCTMXLayer::reusedTileWithRect(a1, v20); sub_1002782D0(v20, a3); cocos2d::CCTMXLayer::setupTileSprite(a1, v17, v20, v22); v18 = **(_DWORD **)(a1 + 464); cocos2d::CCSpriteBatchNode::insertQuadFromSprite(a1, v17, v18); sub_1007478F0(*(_QWORD *)(a1 + 464), v16, v18); return v17; }
GD Web Decomp Icon

GD Web Decomp

Raw Source