// // cocos2d::CCClippingNode::visit from 0xd67d20 to 0xd680ac (908 bytes) // // 2 xrefs: // > @ 0x7e3b8 // > @ 0x1526bd0 // // 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:07:54 +0000 // __int64 __fastcall cocos2d::CCClippingNode::visit(cocos2d::CCClippingNode *this) { __int64 v2; // x0 int IsEnabled; // w27 cocos2d::CCDirector *v5; // x0 cocos2d::CCDirector *v6; // x0 const cocos2d::CCSize *v7; // x1 cocos2d::CCShaderCache *v8; // x0 cocos2d::CCShaderCache *v9; // x0 cocos2d::CCGLProgram *v10; // x21 int UniformLocation; // [xsp+68h] [xbp+68h] __int64 v12; // [xsp+90h] [xbp+90h] BYREF __int64 v13; // [xsp+98h] [xbp+98h] BYREF int v14; // [xsp+A0h] [xbp+A0h] BYREF if ( dword_154A0B0 <= 0 ) { LABEL_7: cocos2d::CCNode::visit(this); return _stack_chk_guard; } v2 = *((_QWORD *)this + 40); if ( !v2 || !(*(unsigned __int8 (__fastcall **)(__int64))(*(_QWORD *)v2 + 352LL))(v2) ) { if ( !*((_BYTE *)this + 332) ) return _stack_chk_guard; goto LABEL_7; } if ( dword_154A0B8 + 1 == dword_154A0B0 ) { if ( byte_154A0B4 ) byte_154A0B4 = 0; goto LABEL_7; } ++dword_154A0B8; IsEnabled = (unsigned __int8)glIsEnabled(); glGetIntegerv(); glGetIntegerv(); glGetIntegerv(); glGetIntegerv(); glGetIntegerv(); glGetIntegerv(); glGetIntegerv(); glEnable(); glStencilMask(); glClear(); glGetBooleanv(); glDepthMask(); glStencilFunc(); glStencilOp(); v5 = (cocos2d::CCDirector *)cocos2d::CCPoint::CCPoint(&v14, (const cocos2d::CCPoint *)&unk_1560450); v6 = (cocos2d::CCDirector *)cocos2d::CCDirector::sharedDirector(v5); cocos2d::CCDirector::getWinSize(&v12, v6); cocos2d::ccpFromSize(&v13, (cocos2d *)&v12, v7); cocos2d::ccDrawSolidRect((cocos2d::CCPoint *)&v14, (float *)&v13, 1.0, 1.0, 1.0, 1.0); glStencilFunc(); v8 = (cocos2d::CCShaderCache *)glStencilOp(); if ( *((float *)this + 82) < 1.0 ) { v9 = (cocos2d::CCShaderCache *)cocos2d::CCShaderCache::sharedShaderCache(v8); v10 = (cocos2d::CCGLProgram *)cocos2d::CCShaderCache::programForKey(v9, "ShaderPositionTextureColorAlphaTest"); UniformLocation = glGetUniformLocation(); cocos2d::CCGLProgram::use(v10); cocos2d::CCGLProgram::setUniformLocationWith1f(v10, UniformLocation, *((float *)this + 82)); sub_D678D8(*((__int64 **)this + 40), (__int64)v10); } kmGLPushMatrix(); cocos2d::CCNode::transform(this); (*(void (__fastcall **)(_QWORD))(**((_QWORD **)this + 40) + 752LL))(*((_QWORD *)this + 40)); kmGLPopMatrix(); glDepthMask(); glStencilFunc(); glStencilOp(); cocos2d::CCNode::visit(this); glStencilFunc(); glStencilOp(); glStencilMask(); if ( !IsEnabled ) glDisable(); --dword_154A0B8; return _stack_chk_guard; }
GD Web Decomp Icon

GD Web Decomp

Raw Source