// // ShaderLayer::visit from 0x6853d0 to 0x685584 (436 bytes) // // 0 xrefs: // // This function is hookable on this platform (idp: arm, 32 bit: True, 64 bit: False! // // 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:56:04 +0000 // cocos2d::CCDirector *__fastcall ShaderLayer::visit(cocos2d::CCDirector *this) { int v1; // r4 cocos2d::CCDirector *v2; // r0 cocos2d::CCDirector *ContentScaleFactor; // r8 cocos2d::CCDirector *v4; // r0 int v5; // r0 cocos2d::CCGridBase *v6; // r0 cocos2d::CCGLProgram *v7; // r0 cocos2d::CCGLProgram *v8; // r0 unsigned int v9; // r6 unsigned int *v10; // r10 int v11; // r0 int v12; // r10 void (__fastcall *v13)(int, _BYTE *); // r11 cocos2d::CCGridBase *v14; // r0 cocos2d::CCDirector *v15; // r0 cocos2d::CCDirector *v16; // r0 _BYTE v17[8]; // [sp+Ch] [bp-38h] BYREF _BYTE v18[8]; // [sp+14h] [bp-30h] BYREF _BYTE v19[8]; // [sp+1Ch] [bp-28h] BYREF _BYTE v20[8]; // [sp+24h] [bp-20h] BYREF float v21[4]; // [sp+2Ch] [bp-18h] BYREF v1 = (int)this; if ( *((_BYTE *)this + 238) ) { v2 = (cocos2d::CCDirector *)cocos2d::CCDirector::sharedDirector(this); ContentScaleFactor = (cocos2d::CCDirector *)cocos2d::CCDirector::getContentScaleFactor(v2); v4 = (cocos2d::CCDirector *)cocos2d::CCDirector::sharedDirector(ContentScaleFactor); cocos2d::CCDirector::setContentScaleFactor(v4, *(float *)(v1 + 996)); ShaderLayer::prepareTargetContainer((ShaderLayer *)v17, v1); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v21, *(float *)(v1 + 1028) * 0.5, *(float *)(v1 + 1032) * 0.5); v5 = cocos2d::CCPoint::operator+(v18, v17, v21); kmGLPushMatrix(v5); v6 = *(cocos2d::CCGridBase **)(v1 + 188); if ( v6 && *((_BYTE *)v6 + 52) ) cocos2d::CCGridBase::beforeDraw(v6); cocos2d::CCNode::transform((cocos2d::CCNode *)v1); v7 = (cocos2d::CCGLProgram *)(*(int (__fastcall **)(_DWORD))(**(_DWORD **)(v1 + 964) + 328))(*(_DWORD *)(v1 + 964)); cocos2d::CCGLProgram::use(v7); v8 = (cocos2d::CCGLProgram *)(*(int (__fastcall **)(_DWORD))(**(_DWORD **)(v1 + 964) + 328))(*(_DWORD *)(v1 + 964)); cocos2d::CCGLProgram::setUniformsForBuiltins(v8); v9 = 0; cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v21, (const cocos2d::CCPoint *)v18); ShaderLayer::updateEffectOffsets(v1, v21); ShaderLayer::preSplitScreenShader((ShaderLayer *)v1); cocos2d::CCRenderTexture::beginWithClear(*(cocos2d::CCRenderTexture **)(v1 + 960), 0.0, 0.0, 0.0, 0.0); v10 = *(unsigned int **)(*(_DWORD *)(v1 + 192) + 52); while ( v9 < *v10 ) { v11 = *(_DWORD *)(v10[3] + 4 * v9); if ( v11 != *(_DWORD *)(v1 + 964) ) (*(void (__fastcall **)(int))(*(_DWORD *)v11 + 376))(v11); ++v9; } cocos2d::CCRenderTexture::end(*(cocos2d::CCRenderTexture **)(v1 + 960)); cocos2d::CCRect::CCRect((cocos2d::CCRect *)v21, (const cocos2d::CCRect *)(*(_DWORD *)(v1 + 964) + 336)); v12 = *(_DWORD *)(v1 + 964); v13 = *(void (__fastcall **)(int, _BYTE *))(*(_DWORD *)v12 + 92); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v20, v21[0] / *(float *)(v1 + 384), v21[1] / *(float *)(v1 + 388)); cocos2d::CCPoint::operator+(v19, v17, v20); v13(v12, v19); (*(void (__fastcall **)(_DWORD))(**(_DWORD **)(v1 + 964) + 376))(*(_DWORD *)(v1 + 964)); v14 = *(cocos2d::CCGridBase **)(v1 + 188); *(_DWORD *)(v1 + 44) = 0; if ( v14 && *((_BYTE *)v14 + 52) ) cocos2d::CCGridBase::afterDraw(v14, (cocos2d::CCNode *)v1); kmGLPopMatrix(); v15 = (cocos2d::CCDirector *)ShaderLayer::resetTargetContainer(v1); v16 = (cocos2d::CCDirector *)cocos2d::CCDirector::sharedDirector(v15); return (cocos2d::CCDirector *)cocos2d::CCDirector::setContentScaleFactor(v16, *(float *)&ContentScaleFactor); } return this; }
GD Web Decomp Icon

GD Web Decomp

Raw Source