// // ShaderLayer::visit from 0xb2e36c to 0xb2e5b4 (584 bytes) // // 2 xrefs: // > @ 0x72370 // > @ 0x14b6e80 // // 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 13:01:42 +0000 // __int64 __fastcall ShaderLayer::visit(ShaderLayer *this) { cocos2d::CCDirector *v2; // x0 cocos2d::CCDirector *v4; // x0 cocos2d::CCDirector *ContentScaleFactor; // x0 float v6; // s0 float v7; // s8 cocos2d::CCDirector *v8; // x0 _QWORD *v9; // x0 cocos2d::CCGridBase *v10; // x0 unsigned int v11; // w19 cocos2d::CCGLProgram *v12; // x0 cocos2d::CCGLProgram *v13; // x0 unsigned int *v14; // x21 unsigned int v15; // w2 __int64 v16; // x0 __int64 v17; // x23 void (__fastcall *v18)(__int64, __int64 *); // x21 cocos2d::CCGridBase *v19; // x0 cocos2d::CCDirector *v20; // x0 cocos2d::CCDirector *v21; // x0 _BYTE v22[8]; // [xsp+68h] [xbp+68h] BYREF __int64 v23; // [xsp+70h] [xbp+70h] BYREF __int64 v24; // [xsp+78h] [xbp+78h] BYREF _BYTE v25[8]; // [xsp+80h] [xbp+80h] BYREF float v26[4]; // [xsp+88h] [xbp+88h] BYREF v2 = (cocos2d::CCDirector *)*((unsigned __int8 *)this + 286); if ( (_DWORD)v2 ) { v4 = (cocos2d::CCDirector *)cocos2d::CCDirector::sharedDirector(v2); ContentScaleFactor = (cocos2d::CCDirector *)cocos2d::CCDirector::getContentScaleFactor(v4); v7 = v6; v8 = (cocos2d::CCDirector *)cocos2d::CCDirector::sharedDirector(ContentScaleFactor); cocos2d::CCDirector::setContentScaleFactor(v8, *((float *)this + 288)); ShaderLayer::prepareTargetContainer(this, (cocos2d::CCPoint *)v22); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v26, *((float *)this + 296) * 0.5, *((float *)this + 297) * 0.5); v9 = cocos2d::CCPoint::operator+(&v23, v22); kmGLPushMatrix(v9); v10 = *((cocos2d::CCGridBase **)this + 25); if ( v10 && *((_BYTE *)v10 + 56) ) cocos2d::CCGridBase::beforeDraw(v10); v11 = 0; cocos2d::CCNode::transform(this); v12 = (cocos2d::CCGLProgram *)(*(__int64 (__fastcall **)(_QWORD))(**((_QWORD **)this + 138) + 656LL))(*((_QWORD *)this + 138)); cocos2d::CCGLProgram::use(v12); v13 = (cocos2d::CCGLProgram *)(*(__int64 (__fastcall **)(_QWORD))(**((_QWORD **)this + 138) + 656LL))(*((_QWORD *)this + 138)); cocos2d::CCGLProgram::setUniformsForBuiltins(v13); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v26, (const cocos2d::CCPoint *)&v23); ShaderLayer::updateEffectOffsets((__int64)this, v26); ShaderLayer::preSplitScreenShader(this); cocos2d::CCRenderTexture::beginWithClear(*((cocos2d::CCRenderTexture **)this + 137), 0.0, 0.0, 0.0, 0.0); v14 = *(unsigned int **)(*((_QWORD *)this + 26) + 56LL); v15 = *v14; if ( *v14 ) { do { v16 = *(_QWORD *)(*((_QWORD *)v14 + 2) + 8LL * v11); if ( v16 != *((_QWORD *)this + 138) ) { (*(void (__fastcall **)(__int64))(*(_QWORD *)v16 + 752LL))(v16); v15 = *v14; } ++v11; } while ( v11 < v15 ); } cocos2d::CCRenderTexture::end(*((cocos2d::CCRenderTexture **)this + 137)); cocos2d::CCRect::CCRect((cocos2d::CCRect *)v26, (const cocos2d::CCRect *)(*((_QWORD *)this + 138) + 424LL)); v17 = *((_QWORD *)this + 138); v18 = *(void (__fastcall **)(__int64, __int64 *))(*(_QWORD *)v17 + 184LL); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v25, v26[0] / *((float *)this + 128), v26[1] / *((float *)this + 129)); cocos2d::CCPoint::operator+(&v24, v22); v18(v17, &v24); (*(void (__fastcall **)(_QWORD))(**((_QWORD **)this + 138) + 752LL))(*((_QWORD *)this + 138)); *((_DWORD *)this + 12) = 0; v19 = *((cocos2d::CCGridBase **)this + 25); if ( v19 && *((_BYTE *)v19 + 56) ) v19 = (cocos2d::CCGridBase *)cocos2d::CCGridBase::afterDraw(v19, this); kmGLPopMatrix(v19); v20 = (cocos2d::CCDirector *)ShaderLayer::resetTargetContainer((__int64)this); v21 = (cocos2d::CCDirector *)cocos2d::CCDirector::sharedDirector(v20); cocos2d::CCDirector::setContentScaleFactor(v21, v7); } return _stack_chk_guard; }
GD Web Decomp Icon

GD Web Decomp

Raw Source