// // cocos2d::CCSpriteBatchNode::draw from 0x100156a90 to 0x100156b6c (220 bytes) // // 4 xrefs: // > @ 0x100ac6798 // > @ 0x100af05b8 // > @ 0x100b6a9c8 // > @ 0x100b86f28 // // 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:25:04 +0000 // __int64 __fastcall cocos2d::CCSpriteBatchNode::draw(__int64 a1) { __int64 result; // rax __int64 v2; // rax __int64 v3; // rax __int64 v4; // rax unsigned int *v5; // rax _QWORD *v6; // r14 unsigned __int64 v7; // r15 result = (*(__int64 (__fastcall **)(_QWORD))(**(_QWORD **)(a1 + 328) + 80LL))(*(_QWORD *)(a1 + 328)); if ( (_DWORD)result ) { cocos2d::ccGLEnable(*(unsigned int *)(a1 + 248)); (*(void (__fastcall **)(__int64))(*(_QWORD *)a1 + 656LL))(a1); v2 = (*(__int64 (__fastcall **)(__int64))(*(_QWORD *)a1 + 656LL))(a1); cocos2d::CCGLProgram::use(v2); v3 = (*(__int64 (__fastcall **)(__int64))(*(_QWORD *)a1 + 656LL))(a1); cocos2d::CCGLProgram::setUniformsForBuiltins(v3); v4 = *(_QWORD *)(a1 + 208); if ( v4 ) { v5 = *(unsigned int **)(v4 + 56); if ( *v5 ) { v6 = *((_QWORD **)v5 + 2); v7 = (unsigned __int64)&v6[*v5 - 1]; do { if ( !*v6 ) break; (*(void (__fastcall **)(_QWORD))(*(_QWORD *)*v6 + 792LL))(*v6); ++v6; } while ( (unsigned __int64)v6 <= v7 ); } } cocos2d::ccGLBlendFunc(*(_DWORD *)(a1 + 336), *(_DWORD *)(a1 + 340)); return cocos2d::CCTextureAtlas::drawQuads(*(_QWORD *)(a1 + 328)); } return result; }
GD Web Decomp Icon

GD Web Decomp

Raw Source