// // cocos2d::CCClippingNode::visit from 0x18005e5b0 to 0x18005e936 (902 bytes) // // 6 xrefs: // > @ 0x1800ff830 // > @ 0x180142368 // > @ 0x1801423b8 // > @ 0x18014cf68 // > @ 0x1801bd33c // > @ 0x1801bd348 // // 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:21:50 +0000 // void __fastcall cocos2d::CCClippingNode::visit(cocos2d::CCClippingNode *this) { __int64 v2; // rcx GLenum v3; // esi int v4; // edi int v5; // r15d GLboolean IsEnabled; // r12 struct cocos2d::CCDirector *v7; // rax __int64 v8; // rax float *v9; // rbx _DWORD *v10; // rax cocos2d::CCShaderCache *v11; // rax unsigned int *v12; // rdi int UniformLocation; // ebx GLint v14; // [rsp+20h] [rbp-19h] BYREF GLint v15; // [rsp+24h] [rbp-15h] BYREF GLint v16; // [rsp+28h] [rbp-11h] BYREF GLint v17; // [rsp+2Ch] [rbp-Dh] BYREF GLint params; // [rsp+30h] [rbp-9h] BYREF _BYTE v19[12]; // [rsp+34h] [rbp-5h] BYREF _BYTE v20[8]; // [rsp+40h] [rbp+7h] BYREF int v21; // [rsp+48h] [rbp+Fh] BYREF __m128i si128; // [rsp+50h] [rbp+17h] BYREF GLboolean v23; // [rsp+A8h] [rbp+6Fh] BYREF GLint v24; // [rsp+B0h] [rbp+77h] BYREF GLint ref; // [rsp+B8h] [rbp+7Fh] BYREF if ( ::params < 1 ) { LABEL_15: cocos2d::CCNode::visit(this); return; } v2 = *((_QWORD *)this + 40); if ( !v2 || !(*(unsigned __int8 (__fastcall **)(__int64))(*(_QWORD *)v2 + 344LL))(v2) ) { if ( !*((_BYTE *)this + 332) ) return; goto LABEL_15; } if ( dword_1801ACB80 + 1 == ::params ) { if ( byte_1801ACB84 ) { byte_1801ACB84 = 0; cocos2d::CCNode::visit(this); return; } goto LABEL_15; } v3 = 0; v4 = 1 << ++dword_1801ACB80; v5 = v4 | (v4 - 1); params = -1; v14 = 519; ref = 0; v24 = -1; v17 = 7680; v16 = 7680; v15 = 7680; IsEnabled = glIsEnabled(0xB90u); glGetIntegerv(0xB98u, ¶ms); glGetIntegerv(0xB92u, &v14); glGetIntegerv(0xB97u, &ref); glGetIntegerv(0xB93u, &v24); glGetIntegerv(0xB94u, &v17); glGetIntegerv(0xB95u, &v16); glGetIntegerv(0xB96u, &v15); glEnable(0xB90u); glStencilMask(v4); glClear(0x400u); v23 = 1; glGetBooleanv(0xB72u, &v23); glDepthMask(0); glStencilFunc(0x200u, v4, v4); glStencilOp(*((_BYTE *)this + 332) != 0 ? 0x1E01 : 0, 0x1E00u, 0x1E00u); si128 = _mm_load_si128((const __m128i *)&xmmword_1800FF900); v7 = cocos2d::CCDirector::sharedDirector(); cocos2d::CCDirector::getWinSize(v7, v19); v9 = (float *)cocos2d::ccpFromSize(v20, v8); v10 = cocos2d::cc_timeval::operator=(&v21, dword_1801B2428); cocos2d::ccDrawSolidRect((__int64)v10, v9, (__int128 *)si128.m128i_i8); glStencilFunc(0x200u, v4, v4); if ( !*((_BYTE *)this + 332) ) v3 = 7681; glStencilOp(v3, 0x1E00u, 0x1E00u); if ( *((float *)this + 82) < 1.0 ) { v11 = cocos2d::CCShaderCache::sharedShaderCache(); v12 = (unsigned int *)cocos2d::CCShaderCache::programForKey(v11, "ShaderPositionTextureColorAlphaTest"); UniformLocation = _glewGetUniformLocation(v12[14], "CC_alpha_value"); cocos2d::CCGLProgram::use((cocos2d::CCGLProgram *)v12); cocos2d::CCGLProgram::setUniformLocationWith1f((cocos2d::CCGLProgram *)v12, UniformLocation, *((float *)this + 82)); sub_18005E490(*((_QWORD *)this + 40), (__int64)v12); } kmGLPushMatrix(); cocos2d::CCNode::transform(this); (*(void (__fastcall **)(_QWORD))(**((_QWORD **)this + 40) + 744LL))(*((_QWORD *)this + 40)); kmGLPopMatrix(); glDepthMask(v23); glStencilFunc(0x202u, v5, v5); glStencilOp(0x1E00u, 0x1E00u, 0x1E00u); cocos2d::CCNode::visit(this); glStencilFunc(v14, ref, v24); glStencilOp(v17, v16, v15); glStencilMask(params); if ( !IsEnabled ) glDisable(0xB90u); --dword_1801ACB80; }
GD Web Decomp Icon

GD Web Decomp

Raw Source