// // cocos2d::CCSpriteBatchNode::initWithTexture from 0x10026f54c to 0x10026f64c (256 bytes) // // 4 xrefs: // > cocos2d::CCSpriteBatchNode::createWithTexture @ 0x10026f518 // > cocos2d::CCSpriteBatchNode::initWithFile @ 0x10026f724 // > cocos2d::CCSpriteBatchNode::init @ 0x10026f770 // > cocos2d::CCLabelBMFont::initWithString @ 0x100397bb0 // // 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::initWithTexture(__int64 a1, __int64 a2, int a3) { __int64 v3; // x20 void *v6; // x21 __int64 v7; // x0 int v8; // w8 void *v9; // x21 void *v10; // x21 __int64 v11; // x0 __int64 v12; // x0 LODWORD(v3) = a3; *(_QWORD *)(a1 + 336) = 0x30300000001LL; v6 = operator new(0x70u); cocos2d::CCTextureAtlas::CCTextureAtlas(); *(_QWORD *)(a1 + 328) = v6; if ( (_DWORD)v3 ) v3 = (unsigned int)v3; else v3 = 29; cocos2d::CCTextureAtlas::initWithTexture(v6, a2, v3); v7 = (*(__int64 (__fastcall **)(_QWORD))(**(_QWORD **)(a1 + 328) + 96LL))(*(_QWORD *)(a1 + 328)); if ( (unsigned int)cocos2d::CCTexture2D::hasPremultipliedAlpha(v7) ) v8 = 1; else v8 = 770; *(_DWORD *)(a1 + 336) = v8; *(_DWORD *)(a1 + 340) = 771; v9 = operator new(0x40u); sub_1002E7330(); *(_QWORD *)(a1 + 208) = v9; sub_1002E7334(v9, v3); v10 = operator new(0x40u); sub_1002E7330(); *(_QWORD *)(a1 + 344) = v10; sub_1002E7334(v10, v3); *(_WORD *)(a1 + 352) = 0; v11 = cocos2d::CCShaderCache::sharedShaderCache(); v12 = cocos2d::CCShaderCache::programForKey(v11, "ShaderPositionTextureColor"); (*(void (__fastcall **)(__int64, __int64))(*(_QWORD *)a1 + 664LL))(a1, v12); return 1; }
GD Web Decomp Icon

GD Web Decomp

Raw Source