// // ShaderLayer::visit from 0x140629b10 to 0x140629de3 (723 bytes) // // 4 xrefs: // > @ 0x14081b048 // > @ 0x1408e6f74 // > @ 0x1408e6fb8 // > @ 0x1409308d8 // // 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 11:35:25 +0000 // void __fastcall ShaderLayer::visit(__int64 a1) { cocos2d::CCDirector *v2; // rax float ContentScaleFactor; // xmm0_4 float v4; // xmm6_4 float v5; // xmm7_4 __int64 v6; // rcx cocos2d::CCDirector *v7; // rax __int64 v8; // rax cocos2d::CCGridBase *v9; // rcx cocos2d::CCGLProgram *v10; // rax cocos2d::CCGLProgram *v11; // rax float *v12; // rax __int64 v13; // rbx __int64 v14; // rsi __int64 v15; // rcx __int64 v16; // rax cocos2d::CCGridBase *v17; // rcx __int64 v18; // rcx __int64 v19; // rbx __int64 v20; // rax __int64 v21; // rbx cocos2d::CCDirector *v22; // rax float v23[4]; // [rsp+30h] [rbp-48h] BYREF char v24; // [rsp+80h] [rbp+8h] BYREF char v25; // [rsp+88h] [rbp+10h] BYREF char v26; // [rsp+90h] [rbp+18h] BYREF char v27; // [rsp+98h] [rbp+20h] BYREF if ( *(_BYTE *)(a1 + 286) ) { v2 = (cocos2d::CCDirector *)cocos2d::CCDirector::sharedDirector(a1); ContentScaleFactor = cocos2d::CCDirector::getContentScaleFactor(v2); v4 = *(float *)(a1 + 1200); v5 = ContentScaleFactor; v7 = (cocos2d::CCDirector *)cocos2d::CCDirector::sharedDirector(v6); cocos2d::CCDirector::setContentScaleFactor(v7, v4); ShaderLayer::prepareTargetContainer(a1, (cocos2d::CCPoint *)&v24); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v26, *(float *)(a1 + 1232) * 0.5, *(float *)(a1 + 1236) * 0.5); cocos2d::CCPoint::operator+(&v24, &v25, v8); kmGLPushMatrix(); v9 = *(cocos2d::CCGridBase **)(a1 + 200); if ( v9 && *((_BYTE *)v9 + 56) ) cocos2d::CCGridBase::beforeDraw(v9); cocos2d::CCNode::transform((cocos2d::CCNode *)a1); v10 = (cocos2d::CCGLProgram *)(*(__int64 (__fastcall **)(_QWORD))(**(_QWORD **)(a1 + 1152) + 648LL))(*(_QWORD *)(a1 + 1152)); cocos2d::CCGLProgram::use(v10); v11 = (cocos2d::CCGLProgram *)(*(__int64 (__fastcall **)(_QWORD))(**(_QWORD **)(a1 + 1152) + 648LL))(*(_QWORD *)(a1 + 1152)); cocos2d::CCGLProgram::setUniformsForBuiltins(v11); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v26, (const struct cocos2d::CCPoint *)&v25); ShaderLayer::updateEffectOffsets(a1, v12); ShaderLayer::preSplitScreenShader(a1); cocos2d::CCRenderTexture::beginWithClear(*(cocos2d::CCRenderTexture **)(a1 + 1144), 0.0, 0.0, 0.0, 0.0); v13 = 0; v14 = *(_QWORD *)(*(_QWORD *)(a1 + 208) + 56LL); if ( *(_DWORD *)v14 ) { do { v15 = *(_QWORD *)(*(_QWORD *)(v14 + 16) + 8 * v13); if ( v15 != *(_QWORD *)(a1 + 1152) ) (*(void (__fastcall **)(__int64))(*(_QWORD *)v15 + 744LL))(v15); v13 = (unsigned int)(v13 + 1); } while ( (unsigned int)v13 < *(_DWORD *)v14 ); } cocos2d::CCRenderTexture::end(*(cocos2d::CCRenderTexture **)(a1 + 1144)); cocos2d::CCRect::CCRect((cocos2d::CCRect *)v23, (const struct cocos2d::CCRect *)(*(_QWORD *)(a1 + 1152) + 424LL)); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v27, v23[0] / *(float *)(a1 + 560), v23[1] / *(float *)(a1 + 564)); cocos2d::CCPoint::operator+(&v24, &v26, v16); (*(void (__fastcall **)(_QWORD, char *))(**(_QWORD **)(a1 + 1152) + 184LL))(*(_QWORD *)(a1 + 1152), &v26); (*(void (__fastcall **)(_QWORD))(**(_QWORD **)(a1 + 1152) + 744LL))(*(_QWORD *)(a1 + 1152)); v17 = *(cocos2d::CCGridBase **)(a1 + 200); *(_DWORD *)(a1 + 48) = 0; if ( v17 && *((_BYTE *)v17 + 56) ) cocos2d::CCGridBase::afterDraw(v17, (struct cocos2d::CCNode *)a1); kmGLPopMatrix(); v19 = *(_QWORD *)(a1 + 1176); if ( v19 ) { v20 = 4280; if ( *(int *)(a1 + 1116) <= 1 ) v20 = 4272; v21 = *(_QWORD *)(v20 + v19); (*(void (__fastcall **)(__int64, __int64))(*(_QWORD *)v21 + 184LL))(v21, a1 + 1184); (*(void (__fastcall **)(__int64))(*(_QWORD *)v21 + 160LL))(v21); (*(void (__fastcall **)(__int64))(*(_QWORD *)v21 + 352LL))(v21); (*(void (__fastcall **)(__int64))(*(_QWORD *)a1 + 352LL))(a1); } v22 = (cocos2d::CCDirector *)cocos2d::CCDirector::sharedDirector(v18); cocos2d::CCDirector::setContentScaleFactor(v22, v5); } }
GD Web Decomp Icon

GD Web Decomp

Raw Source