// // SetupShaderEffectPopup::setupChromatic from 0xa000a4 to 0xa007e4 (1856 bytes) // // 2 xrefs: // > SetupShaderEffectPopup::init @ 0xa086b8 // > @ 0x5ff58 // // 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::setupChromatic(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 float v12; // s2 unsigned int *v13; // x1 int v14; // w2 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; // x21 int v30; // w1 float v31; // [xsp+70h] [xbp+70h] float v32; // [xsp+74h] [xbp+74h] cocos2d::CCPoint v33; // [xsp+78h] [xbp+78h] BYREF cocos2d::CCPoint v34; // [xsp+80h] [xbp+80h] BYREF cocos2d::CCPoint v35; // [xsp+88h] [xbp+88h] BYREF __int64 v36; // [xsp+90h] [xbp+90h] BYREF cocos2d::CCPoint v37; // 0:s0.4,4:s1.4 sub_D153B8((int)&v36, "Setup Chromatic"); SetupTriggerPopup::addTitle((__int64)a1); v2 = (void *)(v36 - 24); if ( (__int64 *)(v36 - 24) != &qword_124B6B0 ) { if ( &pthread_create ) { v13 = (unsigned int *)(v36 - 8); do v14 = __ldaxr(v13); while ( __stlxr(v14 - 1, v13) ); } else { v14 = *(_DWORD *)(v36 - 8); *(_DWORD *)(v36 - 8) = v14 - 1; } if ( v14 <= 0 ) operator delete(v2); } sub_D153B8((int)&v35, "Help"); sub_D153B8( (int)&v36, "Applies chromatic aberration.\n" "Use X and Y sets which axis is affected.\n" "TargetX and TargetY define how strong the effect is.\n" "FadeTime is time until final state is reached."); SetupTriggerPopup::addHelpButton((__int64)a1, 1.0); v3 = (void *)(v36 - 24); if ( (__int64 *)(v36 - 24) != &qword_124B6B0 ) { if ( &pthread_create ) { v15 = (unsigned int *)(v36 - 8); do v16 = __ldaxr(v15); while ( __stlxr(v16 - 1, v15) ); } else { v16 = *(_DWORD *)(v36 - 8); *(_DWORD *)(v36 - 8) = v16 - 1; } if ( v16 <= 0 ) operator delete(v3); } v4 = (void *)(*(_QWORD *)&v35 - 24LL); if ( (__int64 *)(*(_QWORD *)&v35 - 24LL) != &qword_124B6B0 ) { if ( &pthread_create ) { v17 = (unsigned int *)(*(_QWORD *)&v35 - 8LL); do v18 = __ldaxr(v17); while ( __stlxr(v18 - 1, v17) ); } else { v18 = *(_DWORD *)(*(_QWORD *)&v35 - 8LL); *(_DWORD *)(*(_QWORD *)&v35 - 8LL) = v18 - 1; } if ( v18 <= 0 ) operator delete(v4); } v5 = cocos2d::CCDirector::sharedDirector(); cocos2d::CCDirector::getWinSize(v5); cocos2d::CCPoint::CCPoint(&v33, v31 * 0.5, (float)(v32 * 0.5) + 85.0); sub_D153B8((int)&v36, "TargetX:"); cocos2d::CCPoint::CCPoint(&v34, -100.0, 0.0); cocos2d::CCPoint::operator+(&v35, &v33, &v34); SetupTriggerPopup::createValueControl(a1, 0xB4u, 0.7, 0.0, 5.0, (__int64)&v36, &v35); v6 = (void *)(v36 - 24); if ( (__int64 *)(v36 - 24) != &qword_124B6B0 ) { if ( &pthread_create ) { v19 = (unsigned int *)(v36 - 8); do v20 = __ldaxr(v19); while ( __stlxr(v20 - 1, v19) ); } else { v20 = *(_DWORD *)(v36 - 8); *(_DWORD *)(v36 - 8) = v20 - 1; } if ( v20 <= 0 ) operator delete(v6); } sub_D153B8((int)&v36, "TargetY:"); cocos2d::CCPoint::CCPoint(&v34, 100.0, 0.0); cocos2d::CCPoint::operator+(&v35, &v33, &v34); SetupTriggerPopup::createValueControl(a1, 0xBDu, 0.7, 0.0, 5.0, (__int64)&v36, &v35); v7 = (void *)(v36 - 24); if ( (__int64 *)(v36 - 24) != &qword_124B6B0 ) { if ( &pthread_create ) { v21 = (unsigned int *)(v36 - 8); do v22 = __ldaxr(v21); while ( __stlxr(v22 - 1, v21) ); } else { v22 = *(_DWORD *)(v36 - 8); *(_DWORD *)(v36 - 8) = v22 - 1; } if ( v22 <= 0 ) operator delete(v7); } sub_D153B8((int)&v36, "FadeTime:"); cocos2d::CCPoint::CCPoint(&v34, -100.0, -50.0); cocos2d::CCPoint::operator+(&v35, &v33, &v34); SetupTriggerPopup::createValueControl(a1, 0xAu, 0.7, 0.0, 0.0, (__int64)&v36, &v35); v8 = (void *)(v36 - 24); if ( (__int64 *)(v36 - 24) != &qword_124B6B0 ) { if ( &pthread_create ) { v23 = (unsigned int *)(v36 - 8); do v24 = __ldaxr(v23); while ( __stlxr(v24 - 1, v23) ); } else { v24 = *(_DWORD *)(v36 - 8); *(_DWORD *)(v36 - 8) = v24 - 1; } if ( v24 <= 0 ) operator delete(v8); } sub_D153B8((int)&v36, "Use X"); cocos2d::CCPoint::CCPoint(&v34, 45.0, -55.0); cocos2d::CCPoint::operator+(&v35, &v33, &v34); SetupTriggerPopup::createToggleValueControl(a1, 188, 1.0, (__int64)&v36, &v35, 0, 0, 0); v9 = (void *)(v36 - 24); if ( (__int64 *)(v36 - 24) != &qword_124B6B0 ) { if ( &pthread_create ) { v25 = (unsigned int *)(v36 - 8); do v26 = __ldaxr(v25); while ( __stlxr(v26 - 1, v25) ); } else { v26 = *(_DWORD *)(v36 - 8); *(_DWORD *)(v36 - 8) = v26 - 1; } if ( v26 <= 0 ) operator delete(v9); } sub_D153B8((int)&v36, "Use Y"); cocos2d::CCPoint::CCPoint(&v34, 130.0, -55.0); cocos2d::CCPoint::operator+(&v35, &v33, &v34); SetupTriggerPopup::createToggleValueControl(a1, 190, 1.0, (__int64)&v36, &v35, 0, 0, 0); v10 = (void *)(v36 - 24); if ( (__int64 *)(v36 - 24) != &qword_124B6B0 ) { if ( &pthread_create ) { v27 = (unsigned int *)(v36 - 8); do v28 = __ldaxr(v27); while ( __stlxr(v28 - 1, v27) ); } else { v28 = *(_DWORD *)(v36 - 8); *(_DWORD *)(v36 - 8) = v28 - 1; } if ( v28 <= 0 ) operator delete(v10); } sub_D153B8((int)&v36, "Relative"); cocos2d::CCPoint::CCPoint( &v35, (float)((float)((float)(a1->m_width * 0.5) + (float)(v31 * 0.5)) - 72.0) - 90.0, 20.0 - (float)((float)(a1->m_height * 0.5) - (float)(v32 * 0.5))); SetupTriggerPopup::createToggleValueControl(a1, 514, 1.0, (__int64)&v36, &v35, 0, 0, 0); v11 = (void *)(v36 - 24); if ( (__int64 *)(v36 - 24) != &qword_124B6B0 ) { if ( &pthread_create ) { v29 = (unsigned int *)(v36 - 8); do v30 = __ldaxr(v29); while ( __stlxr(v30 - 1, v29) ); } else { v30 = *(_DWORD *)(v36 - 8); *(_DWORD *)(v36 - 8) = v30 - 1; } if ( v30 <= 0 ) operator delete(v11); } cocos2d::CCPoint::CCPoint(&v35, 0.0, -100.0); cocos2d::CCPoint::operator+(&v36, &v33, &v35); v37.x = 1.0; SetupTriggerPopup::createEasingControls(a1, v37, v12, (int)&v36, 0); }
GD Web Decomp Icon

GD Web Decomp

Raw Source