// // SetupShaderEffectPopup::setupPixelate from 0xa01250 to 0xa01b00 (2224 bytes) // // 2 xrefs: // > SetupShaderEffectPopup::init @ 0xa086a0 // > @ 0x33ea0 // // 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 SetupShaderEffectPopup::setupPixelate(SetupShaderEffectPopup *a1) { void *v2; // x0 void *v3; // x0 void *v4; // x0 cocos2d::CCDirector *v5; // x0 void *v6; // x0 void *v7; // x0 void *v8; // x0 void *v9; // x0 void *v10; // x0 void *v11; // x0 void *v12; // x0 void *v13; // x0 float v14; // s2 unsigned int *v15; // x1 int v16; // w2 unsigned int *v17; // x1 int v18; // w2 unsigned int *v19; // x1 int v20; // w2 unsigned int *v21; // x1 int v22; // w2 unsigned int *v23; // x1 int v24; // w2 unsigned int *v25; // x1 int v26; // w2 unsigned int *v27; // x1 int v28; // w2 unsigned int *v29; // x1 int v30; // w2 unsigned int *v31; // x1 int v32; // w2 unsigned int *v33; // x1 int v34; // w2 unsigned int *v35; // x21 int v36; // w1 float v37; // [xsp+70h] [xbp+70h] float v38; // [xsp+74h] [xbp+74h] cocos2d::CCPoint v39; // [xsp+78h] [xbp+78h] BYREF cocos2d::CCPoint v40; // [xsp+80h] [xbp+80h] BYREF cocos2d::CCPoint v41; // [xsp+88h] [xbp+88h] BYREF __int64 v42; // [xsp+90h] [xbp+90h] BYREF cocos2d::CCPoint v43; // 0:s0.4,4:s1.4 sub_D153B8((int)&v42, "Setup Pixelate"); SetupTriggerPopup::addTitle((__int64)a1); v2 = (void *)(v42 - 24); if ( (__int64 *)(v42 - 24) != &qword_124B6B0 ) { if ( &pthread_create ) { v15 = (unsigned int *)(v42 - 8); do v16 = __ldaxr(v15); while ( __stlxr(v16 - 1, v15) ); } else { v16 = *(_DWORD *)(v42 - 8); *(_DWORD *)(v42 - 8) = v16 - 1; } if ( v16 <= 0 ) operator delete(v2); } sub_D153B8((int)&v41, "Help"); sub_D153B8( (int)&v42, "Pixelates the screen.\n" "TargetX and TargetY define how strong the effect is.\n" "FadeTime is time until final state is reached.\n" "Snap Grid makes the pixels align with the game camera."); SetupTriggerPopup::addHelpButton((__int64)a1, 1.0); v3 = (void *)(v42 - 24); if ( (__int64 *)(v42 - 24) != &qword_124B6B0 ) { if ( &pthread_create ) { v17 = (unsigned int *)(v42 - 8); do v18 = __ldaxr(v17); while ( __stlxr(v18 - 1, v17) ); } else { v18 = *(_DWORD *)(v42 - 8); *(_DWORD *)(v42 - 8) = v18 - 1; } if ( v18 <= 0 ) operator delete(v3); } v4 = (void *)(*(_QWORD *)&v41 - 24LL); if ( (__int64 *)(*(_QWORD *)&v41 - 24LL) != &qword_124B6B0 ) { if ( &pthread_create ) { v19 = (unsigned int *)(*(_QWORD *)&v41 - 8LL); do v20 = __ldaxr(v19); while ( __stlxr(v20 - 1, v19) ); } else { v20 = *(_DWORD *)(*(_QWORD *)&v41 - 8LL); *(_DWORD *)(*(_QWORD *)&v41 - 8LL) = v20 - 1; } if ( v20 <= 0 ) operator delete(v4); } v5 = cocos2d::CCDirector::sharedDirector(); cocos2d::CCDirector::getWinSize(v5); cocos2d::CCPoint::CCPoint(&v39, v37 * 0.5, (float)(v38 * 0.5) + 95.0); sub_D153B8((int)&v42, "TargetX:"); cocos2d::CCPoint::CCPoint(&v40, -100.0, 0.0); cocos2d::CCPoint::operator+(&v41, &v39, &v40); SetupTriggerPopup::createValueControl(a1, 0xB4u, 0.6, 0.0, 10.0, (__int64)&v42, &v41); v6 = (void *)(v42 - 24); if ( (__int64 *)(v42 - 24) != &qword_124B6B0 ) { if ( &pthread_create ) { v21 = (unsigned int *)(v42 - 8); do v22 = __ldaxr(v21); while ( __stlxr(v22 - 1, v21) ); } else { v22 = *(_DWORD *)(v42 - 8); *(_DWORD *)(v42 - 8) = v22 - 1; } if ( v22 <= 0 ) operator delete(v6); } sub_D153B8((int)&v42, "TargetY:"); cocos2d::CCPoint::CCPoint(&v40, 100.0, 0.0); cocos2d::CCPoint::operator+(&v41, &v39, &v40); SetupTriggerPopup::createValueControl(a1, 0xBDu, 0.6, 0.0, 10.0, (__int64)&v42, &v41); v7 = (void *)(v42 - 24); if ( (__int64 *)(v42 - 24) != &qword_124B6B0 ) { if ( &pthread_create ) { v23 = (unsigned int *)(v42 - 8); do v24 = __ldaxr(v23); while ( __stlxr(v24 - 1, v23) ); } else { v24 = *(_DWORD *)(v42 - 8); *(_DWORD *)(v42 - 8) = v24 - 1; } if ( v24 <= 0 ) operator delete(v7); } sub_D153B8((int)&v42, "FadeTime:"); cocos2d::CCPoint::CCPoint(&v40, -100.0, -40.0); cocos2d::CCPoint::operator+(&v41, &v39, &v40); SetupTriggerPopup::createValueControl(a1, 0xAu, 0.6, 0.0, 0.0, (__int64)&v42, &v41); v8 = (void *)(v42 - 24); if ( (__int64 *)(v42 - 24) != &qword_124B6B0 ) { if ( &pthread_create ) { v25 = (unsigned int *)(v42 - 8); do v26 = __ldaxr(v25); while ( __stlxr(v26 - 1, v25) ); } else { v26 = *(_DWORD *)(v42 - 8); *(_DWORD *)(v42 - 8) = v26 - 1; } if ( v26 <= 0 ) operator delete(v8); } sub_D153B8((int)&v42, "Use X"); cocos2d::CCPoint::CCPoint(&v40, 45.0, -45.0); cocos2d::CCPoint::operator+(&v41, &v39, &v40); SetupTriggerPopup::createToggleValueControl(a1, 188, 1.0, (__int64)&v42, &v41, 0, 0, 0); v9 = (void *)(v42 - 24); if ( (__int64 *)(v42 - 24) != &qword_124B6B0 ) { if ( &pthread_create ) { v27 = (unsigned int *)(v42 - 8); do v28 = __ldaxr(v27); while ( __stlxr(v28 - 1, v27) ); } else { v28 = *(_DWORD *)(v42 - 8); *(_DWORD *)(v42 - 8) = v28 - 1; } if ( v28 <= 0 ) operator delete(v9); } sub_D153B8((int)&v42, "Use Y"); cocos2d::CCPoint::CCPoint(&v40, 130.0, -45.0); cocos2d::CCPoint::operator+(&v41, &v39, &v40); SetupTriggerPopup::createToggleValueControl(a1, 190, 1.0, (__int64)&v42, &v41, 0, 0, 0); v10 = (void *)(v42 - 24); if ( (__int64 *)(v42 - 24) != &qword_124B6B0 ) { if ( &pthread_create ) { v29 = (unsigned int *)(v42 - 8); do v30 = __ldaxr(v29); while ( __stlxr(v30 - 1, v29) ); } else { v30 = *(_DWORD *)(v42 - 8); *(_DWORD *)(v42 - 8) = v30 - 1; } if ( v30 <= 0 ) operator delete(v10); } sub_D153B8((int)&v42, "Snap Grid"); cocos2d::CCPoint::CCPoint(&v40, -155.0, -85.0); cocos2d::CCPoint::operator+(&v41, &v39, &v40); SetupTriggerPopup::createToggleValueControl(a1, 194, 1.0, (__int64)&v42, &v41, 0, 0, 0); v11 = (void *)(v42 - 24); if ( (__int64 *)(v42 - 24) != &qword_124B6B0 ) { if ( &pthread_create ) { v31 = (unsigned int *)(v42 - 8); do v32 = __ldaxr(v31); while ( __stlxr(v32 - 1, v31) ); } else { v32 = *(_DWORD *)(v42 - 8); *(_DWORD *)(v42 - 8) = v32 - 1; } if ( v32 <= 0 ) operator delete(v11); } sub_D153B8((int)&v42, "Hard Edges"); cocos2d::CCPoint::CCPoint(&v40, 45.0, -85.0); cocos2d::CCPoint::operator+(&v41, &v39, &v40); SetupTriggerPopup::createToggleValueControl(a1, 515, 1.0, (__int64)&v42, &v41, 0, 0, 0); v12 = (void *)(v42 - 24); if ( (__int64 *)(v42 - 24) != &qword_124B6B0 ) { if ( &pthread_create ) { v33 = (unsigned int *)(v42 - 8); do v34 = __ldaxr(v33); while ( __stlxr(v34 - 1, v33) ); } else { v34 = *(_DWORD *)(v42 - 8); *(_DWORD *)(v42 - 8) = v34 - 1; } if ( v34 <= 0 ) operator delete(v12); } sub_D153B8((int)&v42, "Relative"); cocos2d::CCPoint::CCPoint( &v41, (float)((float)((float)(a1->m_width * 0.5) + (float)(v37 * 0.5)) - 72.0) - 90.0, 20.0 - (float)((float)(a1->m_height * 0.5) - (float)(v38 * 0.5))); SetupTriggerPopup::createToggleValueControl(a1, 514, 1.0, (__int64)&v42, &v41, 0, 0, 0); v13 = (void *)(v42 - 24); if ( (__int64 *)(v42 - 24) != &qword_124B6B0 ) { if ( &pthread_create ) { v35 = (unsigned int *)(v42 - 8); do v36 = __ldaxr(v35); while ( __stlxr(v36 - 1, v35) ); } else { v36 = *(_DWORD *)(v42 - 8); *(_DWORD *)(v42 - 8) = v36 - 1; } if ( v36 <= 0 ) operator delete(v13); } cocos2d::CCPoint::CCPoint(&v41, 0.0, -120.0); cocos2d::CCPoint::operator+(&v42, &v39, &v41); v43.x = 1.0; SetupTriggerPopup::createEasingControls(a1, v43, v14, (int)&v42, 0); }
GD Web Decomp Icon

GD Web Decomp

Raw Source