// // cocos2d::CCSpriteBatchNode::draw from 0x100270110 to 0x1002701e8 (216 bytes) // // 3 xrefs: // > @ 0x1008b9030 // > @ 0x1009175d0 // > @ 0x100941ed8 // // 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 11:01:46 +0000 // __int64 __fastcall cocos2d::CCSpriteBatchNode::draw(__int64 a1) { __int64 result; // x0 __int64 v3; // x0 __int64 v4; // x0 __int64 v5; // x8 unsigned int *v6; // x9 __int64 v7; // x8 _QWORD *v8; // x20 unsigned __int64 v9; // x21 result = (*(__int64 (__fastcall **)(_QWORD))(**(_QWORD **)(a1 + 328) + 80LL))(*(_QWORD *)(a1 + 328)); if ( (_DWORD)result ) { cocos2d::ccGLEnable(); (*(void (__fastcall **)(__int64))(*(_QWORD *)a1 + 656LL))(a1); v3 = (*(__int64 (__fastcall **)(__int64))(*(_QWORD *)a1 + 656LL))(a1); cocos2d::CCGLProgram::use(v3); v4 = (*(__int64 (__fastcall **)(__int64))(*(_QWORD *)a1 + 656LL))(a1); cocos2d::CCGLProgram::setUniformsForBuiltins(v4); v5 = *(_QWORD *)(a1 + 208); if ( v5 ) { v6 = *(unsigned int **)(v5 + 56); v7 = *v6; if ( (_DWORD)v7 ) { v8 = *((_QWORD **)v6 + 2); v9 = (unsigned __int64)&v8[v7 - 1]; do { if ( !*v8 ) break; (*(void (__fastcall **)(_QWORD))(*(_QWORD *)*v8 + 792LL))(*v8); ++v8; } while ( (unsigned __int64)v8 <= v9 ); } } cocos2d::ccGLBlendFunc(*(unsigned int *)(a1 + 336), *(_DWORD *)(a1 + 340)); return cocos2d::CCTextureAtlas::drawQuads(*(_QWORD *)(a1 + 328)); } return result; }
GD Web Decomp Icon

GD Web Decomp

Raw Source