// // cocos2d::CCSpriteBatchNode::insertQuadFromSprite from 0x180091c80 to 0x180091dd3 (339 bytes) // // 4 xrefs: // > cocos2d::CCTMXLayer::appendTileForGID @ 0x1800af6fa // > cocos2d::CCTMXLayer::insertTileForGID @ 0x1800afd64 // > @ 0x18014cf68 // > @ 0x1801c02f4 // // 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:08 +0000 // void __fastcall cocos2d::CCSpriteBatchNode::insertQuadFromSprite( cocos2d::CCSpriteBatchNode *this, struct cocos2d::CCSprite *a2, unsigned int a3) { __int64 v6; // rsi int v7; // edi unsigned int v8; // edi __int128 v9; // xmm0 __int128 v10; // xmm1 cocos2d::CCTextureAtlas *v11; // rcx __int128 v12; // xmm0 __int128 v13; // xmm1 __int128 v14; // xmm0 __int128 v15; // xmm1 __int64 v16; // rdx _OWORD v17[6]; // [rsp+20h] [rbp-98h] BYREF while ( 1 ) { if ( a3 < (*(unsigned int (__fastcall **)(_QWORD))(**((_QWORD **)this + 41) + 80LL))(*((_QWORD *)this + 41)) ) { v6 = *((_QWORD *)this + 41); v7 = (*(__int64 (__fastcall **)(__int64))(*(_QWORD *)v6 + 80LL))(v6); if ( v7 != (*(unsigned int (__fastcall **)(__int64))(*(_QWORD *)v6 + 72LL))(v6) ) break; } v8 = (4 * (*(unsigned int (__fastcall **)(_QWORD))(**((_QWORD **)this + 41) + 80LL))(*((_QWORD *)this + 41)) + 4) / 3; if ( (*(unsigned int (__fastcall **)(_QWORD))(**((_QWORD **)this + 41) + 80LL))(*((_QWORD *)this + 41)) < v8 ) cocos2d::CCTextureAtlas::resizeCapacity(*((cocos2d::CCTextureAtlas **)this + 41), v8); } (*(void (__fastcall **)(struct cocos2d::CCSprite *, cocos2d::CCSpriteBatchNode *))(*(_QWORD *)a2 + 968LL))(a2, this); v9 = *(_OWORD *)((char *)a2 + 460); *((_DWORD *)a2 + 90) = a3; v10 = *(_OWORD *)((char *)a2 + 476); v11 = *((cocos2d::CCTextureAtlas **)this + 41); v17[0] = v9; v12 = *(_OWORD *)((char *)a2 + 492); v17[1] = v10; v13 = *(_OWORD *)((char *)a2 + 508); v17[2] = v12; v14 = *(_OWORD *)((char *)a2 + 524); v17[3] = v13; v15 = *(_OWORD *)((char *)a2 + 540); v17[4] = v14; v17[5] = v15; cocos2d::CCTextureAtlas::insertQuad(v11, (struct cocos2d::_ccV3F_C4B_T2F_Quad *)v17, a3); LOBYTE(v16) = 1; (*(void (__fastcall **)(struct cocos2d::CCSprite *, __int64))(*(_QWORD *)a2 + 1048LL))(a2, v16); (*(void (__fastcall **)(struct cocos2d::CCSprite *))(*(_QWORD *)a2 + 784LL))(a2); }
GD Web Decomp Icon

GD Web Decomp

Raw Source