// // ShaderLayer::visit from 0x1002731b4 to 0x1002733b0 (508 bytes) // // 1 xrefs: // > @ 0x1007d3860 // // This function is hookable on this platform! // // Using BromaIDA 8.0.0 @ https://github.com/Stazzical/BromaIDA // Using bindings at commit ba9f177b at Thu Jul 16 22:52:06 2026 from https://github.com/geode-sdk/bindings // void __fastcall ShaderLayer::visit(ShaderLayer *a1) { float32x2_t v1; // x29 float32x2_t v2; // x30 float32x2_t v3; // d8 float32x2_t v4; // d9 cocos2d::CCDirector *v6; // x0 float v7; // s8 cocos2d::CCDirector *v8; // x0 __n128 v9; // q0 __n128 v10; // q1 cocos2d::CCGridBase *m_pGrid; // x0 cocos2d::CCGLProgram *v12; // x0 cocos2d::CCGLProgram *v13; // x0 cocos2d::ccArray *data; // x20 unsigned __int64 num; // x8 unsigned __int64 i; // x21 cocos2d::CCSprite *v17; // x0 __n128 v18; // q0 cocos2d::CCSprite *m_sprite; // x20 __n128 v20; // q1 double v21; // d0 __int64 v22; // x1 cocos2d::CCGridBase *v23; // x0 cocos2d::CCDirector *v24; // x0 float32x2_t v25; // [xsp+0h] [xbp-70h] BYREF float32x2_t v26; // [xsp+8h] [xbp-68h] BYREF float32x2_t v27; // [xsp+10h] [xbp-60h] BYREF float32x2_t v28; // [xsp+20h] [xbp-50h] BYREF float32x2_t v29[9]; // [xsp+28h] [xbp-48h] BYREF cocos2d::CCPoint v30; // 0:s0.4,4:s1.4 if ( a1->m_bVisible ) { v29[1] = v4; v29[2] = v3; v29[7] = v1; v29[8] = v2; v6 = cocos2d::CCDirector::sharedDirector(); v7 = sub_1001765E4((__int64)v6); v8 = cocos2d::CCDirector::sharedDirector(); cocos2d::CCDirector::setContentScaleFactor(v8, a1->m_scaleFactor); ShaderLayer::prepareTargetContainer(a1); v9.n128_f32[0] = a1->m_targetTextureSizeExtra.width * 0.5; v10.n128_f32[0] = a1->m_targetTextureSizeExtra.height * 0.5; sub_100022980(v9, v10, &v27); sub_1000229DC(v29, &v27, &v28); sub_100168594(); m_pGrid = a1->m_pGrid; if ( m_pGrid && m_pGrid->m_bActive ) sub_1003422EC(); cocos2d::CCNode::transform(a1); v12 = (cocos2d::CCGLProgram *)((__int64 (__fastcall *)(cocos2d::CCSprite *))a1->m_sprite->getShaderProgram)(a1->m_sprite); cocos2d::CCGLProgram::use(v12); v13 = (cocos2d::CCGLProgram *)((__int64 (__fastcall *)(cocos2d::CCSprite *))a1->m_sprite->getShaderProgram)(a1->m_sprite); cocos2d::CCGLProgram::setUniformsForBuiltins(v13); v30.x = sub_1000229B8((__int64 *)&v27, (__int64 *)&v28); ShaderLayer::updateEffectOffsets(a1, v30); ShaderLayer::preSplitScreenShader(a1); cocos2d::CCRenderTexture::beginWithClear_1(a1->m_renderTexture, 0.0, 0.0, 0.0, 0.0); data = a1->m_pChildren->data; num = data->num; if ( (_DWORD)num ) { for ( i = 0; i < num; ++i ) { v17 = (cocos2d::CCSprite *)data->arr[i]; if ( v17 != a1->m_sprite ) { ((void (__fastcall *)(cocos2d::CCSprite *))v17->visit)(v17); num = data->num; } } } cocos2d::CCRenderTexture::end(a1->m_renderTexture); v18.n128_f64[0] = sub_100022B98(&v27, (__int64)&a1->m_sprite->m_obRect); m_sprite = a1->m_sprite; v18.n128_f32[0] = v27.f32[0] / a1->m_state.m_textureScaleX; v20.n128_f32[0] = v27.f32[1] / a1->m_state.m_textureScaleY; sub_100022980(v18, v20, &v25); *(float32x2_t *)&v21 = sub_1000229DC(v29, &v25, &v26); ((void (__fastcall *)(cocos2d::CCSprite *, float32x2_t *, double))m_sprite->setPosition)(m_sprite, &v26, v21); ((void (__fastcall *)(cocos2d::CCSprite *))a1->m_sprite->visit)(a1->m_sprite); a1->m_uOrderOfArrival = 0; v23 = a1->m_pGrid; if ( v23 ) { if ( v23->m_bActive ) v23 = (cocos2d::CCGridBase *)sub_100342320(); } sub_1001685D8((__int64)v23, v22); ShaderLayer::resetTargetContainer(a1); v24 = cocos2d::CCDirector::sharedDirector(); cocos2d::CCDirector::setContentScaleFactor(v24, v7); } }
GD Web Decomp Icon

GD Web Decomp

Raw Source