// // SetupShaderEffectPopup::setupLensCircle from 0xa01b34 to 0xa026a4 (2928 bytes) // // 2 xrefs: // > SetupShaderEffectPopup::init @ 0xa08694 // > @ 0xb55d8 // // 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::setupLensCircle(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 float v10; // s3 float v11; // s4 void *v12; // x0 float v13; // s3 float v14; // s4 void *v15; // x0 float v16; // s3 float v17; // s4 void *v18; // x0 void *v19; // x0 void *v20; // x0 float v21; // s3 float v22; // s4 void *v23; // x0 void *v24; // x0 float v25; // s2 unsigned int *v26; // x1 int v27; // w2 unsigned int *v28; // x1 int v29; // w2 unsigned int *v30; // x1 int v31; // w2 unsigned int *v32; // x1 int v33; // w2 unsigned int *v34; // x1 int v35; // w2 unsigned int *v36; // x1 int v37; // w2 unsigned int *v38; // x1 int v39; // w2 unsigned int *v40; // x1 int v41; // w2 unsigned int *v42; // x1 int v43; // w2 unsigned int *v44; // x1 int v45; // w2 unsigned int *v46; // x1 int v47; // w2 unsigned int *v48; // x1 int v49; // w2 unsigned int *v50; // x1 int v51; // w2 unsigned int *v52; // x21 int v53; // w1 float v54; // [xsp+B0h] [xbp+80h] float v55; // [xsp+B4h] [xbp+84h] cocos2d::CCPoint v56; // [xsp+B8h] [xbp+88h] BYREF cocos2d::CCPoint v57; // [xsp+C0h] [xbp+90h] BYREF cocos2d::CCPoint v58; // [xsp+C8h] [xbp+98h] BYREF __int64 v59; // [xsp+D0h] [xbp+A0h] BYREF cocos2d::CCPoint v60; // 0:s0.4,4:s1.4 cocos2d::CCPoint v61; // 0:s0.4,4:s1.4 cocos2d::CCPoint v62; // 0:s0.4,4:s1.4 cocos2d::CCPoint v63; // 0:s0.4,4:s1.4 cocos2d::CCPoint v64; // 0:s0.4,4:s1.4 sub_D153B8((int)&v59, "Setup Lens Circle"); SetupTriggerPopup::addTitle((__int64)a1); v2 = (void *)(v59 - 24); if ( (__int64 *)(v59 - 24) != &qword_124B6B0 ) { if ( &pthread_create ) { v26 = (unsigned int *)(v59 - 8); do v27 = __ldaxr(v26); while ( __stlxr(v27 - 1, v26) ); } else { v27 = *(_DWORD *)(v59 - 8); *(_DWORD *)(v59 - 8) = v27 - 1; } if ( v27 <= 0 ) operator delete(v2); } sub_D153B8((int)&v58, "Help"); sub_D153B8( (int)&v59, "Creates a lens circle.\n" "Size defines how big the circle is.\n" "Strength is the opacity of the circle.\n" "Fade sets how much the circle fades out at the edges.\n" "Screen OffX and OffY offsets the center of the effect.\n" "CenterID lets you set a specific target object as the center.\n" "FadeTime is time until final state is reached.\n" "Tint Channel lets you set a color channel to use for the circle."); SetupTriggerPopup::addHelpButton((__int64)a1, 1.0); v3 = (void *)(v59 - 24); if ( (__int64 *)(v59 - 24) != &qword_124B6B0 ) { if ( &pthread_create ) { v28 = (unsigned int *)(v59 - 8); do v29 = __ldaxr(v28); while ( __stlxr(v29 - 1, v28) ); } else { v29 = *(_DWORD *)(v59 - 8); *(_DWORD *)(v59 - 8) = v29 - 1; } if ( v29 <= 0 ) operator delete(v3); } v4 = (void *)(*(_QWORD *)&v58 - 24LL); if ( (__int64 *)(*(_QWORD *)&v58 - 24LL) != &qword_124B6B0 ) { if ( &pthread_create ) { v30 = (unsigned int *)(*(_QWORD *)&v58 - 8LL); do v31 = __ldaxr(v30); while ( __stlxr(v31 - 1, v30) ); } else { v31 = *(_DWORD *)(*(_QWORD *)&v58 - 8LL); *(_DWORD *)(*(_QWORD *)&v58 - 8LL) = v31 - 1; } if ( v31 <= 0 ) operator delete(v4); } v5 = cocos2d::CCDirector::sharedDirector(); cocos2d::CCDirector::getWinSize(v5); cocos2d::CCPoint::CCPoint(&v56, v54 * 0.5, (float)(v55 * 0.5) + 100.0); sub_D153B8((int)&v59, "Size:"); cocos2d::CCPoint::CCPoint(&v57, -100.0, 0.0); cocos2d::CCPoint::operator+(&v58, &v56, &v57); SetupTriggerPopup::createValueControl(a1, 0xB3u, 0.6, 0.0, 0.0, (__int64)&v59, &v58); v6 = (void *)(v59 - 24); if ( (__int64 *)(v59 - 24) != &qword_124B6B0 ) { if ( &pthread_create ) { v32 = (unsigned int *)(v59 - 8); do v33 = __ldaxr(v32); while ( __stlxr(v33 - 1, v32) ); } else { v33 = *(_DWORD *)(v59 - 8); *(_DWORD *)(v59 - 8) = v33 - 1; } if ( v33 <= 0 ) operator delete(v6); } sub_D153B8((int)&v59, "Fade:"); cocos2d::CCPoint::CCPoint(&v57, 100.0, 0.0); cocos2d::CCPoint::operator+(&v58, &v56, &v57); SetupTriggerPopup::createValueControl(a1, 0xB5u, 0.6, 0.0, 0.0, (__int64)&v59, &v58); v7 = (void *)(v59 - 24); if ( (__int64 *)(v59 - 24) != &qword_124B6B0 ) { if ( &pthread_create ) { v34 = (unsigned int *)(v59 - 8); do v35 = __ldaxr(v34); while ( __stlxr(v35 - 1, v34) ); } else { v35 = *(_DWORD *)(v59 - 8); *(_DWORD *)(v59 - 8) = v35 - 1; } if ( v35 <= 0 ) operator delete(v7); } sub_D153B8((int)&v59, "FadeTime:"); cocos2d::CCPoint::CCPoint(&v57, -100.0, -45.0); cocos2d::CCPoint::operator+(&v58, &v56, &v57); SetupTriggerPopup::createValueControl(a1, 0xAu, 0.6, 0.0, 0.0, (__int64)&v59, &v58); v8 = (void *)(v59 - 24); if ( (__int64 *)(v59 - 24) != &qword_124B6B0 ) { if ( &pthread_create ) { v36 = (unsigned int *)(v59 - 8); do v37 = __ldaxr(v36); while ( __stlxr(v37 - 1, v36) ); } else { v37 = *(_DWORD *)(v59 - 8); *(_DWORD *)(v59 - 8) = v37 - 1; } if ( v37 <= 0 ) operator delete(v8); } sub_D153B8((int)&v59, "Strength:"); cocos2d::CCPoint::CCPoint(&v57, 100.0, -45.0); cocos2d::CCPoint::operator+(&v58, &v56, &v57); SetupTriggerPopup::createValueControl(a1, 0xB0u, 0.6, 0.0, 0.0, (__int64)&v59, &v58); v9 = (void *)(v59 - 24); if ( (__int64 *)(v59 - 24) != &qword_124B6B0 ) { if ( &pthread_create ) { v38 = (unsigned int *)(v59 - 8); do v39 = __ldaxr(v38); while ( __stlxr(v39 - 1, v38) ); } else { v39 = *(_DWORD *)(v59 - 8); *(_DWORD *)(v59 - 8) = v39 - 1; } if ( v39 <= 0 ) operator delete(v9); } sub_D153B8((int)&v59, "Screen\nOffX:"); cocos2d::CCPoint::CCPoint(&v57, -100.0, -90.0); cocos2d::CCPoint::operator+(&v58, &v56, &v57); v60.x = 0.6; v60.y = -1.0; SetupTriggerPopup::createValueControlAdvanced( a1, 0x122u, v60, 1.0, v10, v11, (std::string)&v59, &v58, (InputValueType)0, Float, 6, 0, 0, 101, 0, 2, 0); v12 = (void *)(v59 - 24); if ( (__int64 *)(v59 - 24) != &qword_124B6B0 ) { if ( &pthread_create ) { v40 = (unsigned int *)(v59 - 8); do v41 = __ldaxr(v40); while ( __stlxr(v41 - 1, v40) ); } else { v41 = *(_DWORD *)(v59 - 8); *(_DWORD *)(v59 - 8) = v41 - 1; } if ( v41 <= 0 ) operator delete(v12); } sub_D153B8((int)&v59, "Screen\nOffY:"); cocos2d::CCPoint::CCPoint(&v57, 100.0, -90.0); cocos2d::CCPoint::operator+(&v58, &v56, &v57); v61.x = 0.6; v61.y = -1.0; SetupTriggerPopup::createValueControlAdvanced( a1, 0x123u, v61, 1.0, v13, v14, (std::string)&v59, &v58, (InputValueType)0, Float, 6, 0, 0, 101, 0, 2, 0); v15 = (void *)(v59 - 24); if ( (__int64 *)(v59 - 24) != &qword_124B6B0 ) { if ( &pthread_create ) { v42 = (unsigned int *)(v59 - 8); do v43 = __ldaxr(v42); while ( __stlxr(v43 - 1, v42) ); } else { v43 = *(_DWORD *)(v59 - 8); *(_DWORD *)(v59 - 8) = v43 - 1; } if ( v43 <= 0 ) operator delete(v15); } sub_D153B8((int)&v59, "CenterID:"); cocos2d::CCPoint::CCPoint(&v57, -100.0, -135.0); cocos2d::CCPoint::operator+(&v58, &v56, &v57); v62.y = 0.0; v62.x = 0.6; SetupTriggerPopup::createValueControlAdvanced( a1, 0x33u, v62, 0.0, v16, v17, (std::string)&v59, &v58, Float, Int, 6, 0, 0, 0, 0, 2, 0); v18 = (void *)(v59 - 24); if ( (__int64 *)(v59 - 24) != &qword_124B6B0 ) { if ( &pthread_create ) { v44 = (unsigned int *)(v59 - 8); do v45 = __ldaxr(v44); while ( __stlxr(v45 - 1, v44) ); } else { v45 = *(_DWORD *)(v59 - 8); *(_DWORD *)(v59 - 8) = v45 - 1; } if ( v45 <= 0 ) operator delete(v18); } sub_D153B8((int)&v59, "P1"); cocos2d::CCPoint::CCPoint(&v57, -140.0, -170.0); cocos2d::CCPoint::operator+(&v58, &v56, &v57); SetupTriggerPopup::createToggleValueControl(a1, 138, 1.0, (__int64)&v59, &v58, 0, 1, 0); v19 = (void *)(v59 - 24); if ( (__int64 *)(v59 - 24) != &qword_124B6B0 ) { if ( &pthread_create ) { v46 = (unsigned int *)(v59 - 8); do v47 = __ldaxr(v46); while ( __stlxr(v47 - 1, v46) ); } else { v47 = *(_DWORD *)(v59 - 8); *(_DWORD *)(v59 - 8) = v47 - 1; } if ( v47 <= 0 ) operator delete(v19); } sub_D153B8((int)&v59, "P2"); cocos2d::CCPoint::CCPoint(&v57, -70.0, -170.0); cocos2d::CCPoint::operator+(&v58, &v56, &v57); SetupTriggerPopup::createToggleValueControl(a1, 200, 1.0, (__int64)&v59, &v58, 0, 1, 0); v20 = (void *)(v59 - 24); if ( (__int64 *)(v59 - 24) != &qword_124B6B0 ) { if ( &pthread_create ) { v48 = (unsigned int *)(v59 - 8); do v49 = __ldaxr(v48); while ( __stlxr(v49 - 1, v48) ); } else { v49 = *(_DWORD *)(v59 - 8); *(_DWORD *)(v59 - 8) = v49 - 1; } if ( v49 <= 0 ) operator delete(v20); } sub_D153B8((int)&v59, "Tint\nChannel:"); cocos2d::CCPoint::CCPoint(&v57, 100.0, -135.0); cocos2d::CCPoint::operator+(&v58, &v56, &v57); v63.y = 0.0; v63.x = 0.6; SetupTriggerPopup::createValueControlAdvanced( a1, 0x47u, v63, 0.0, v21, v22, (std::string)&v59, &v58, Float, Int, 6, 0, 0, 0, 0, 2, 0); v23 = (void *)(v59 - 24); if ( (__int64 *)(v59 - 24) != &qword_124B6B0 ) { if ( &pthread_create ) { v50 = (unsigned int *)(v59 - 8); do v51 = __ldaxr(v50); while ( __stlxr(v51 - 1, v50) ); } else { v51 = *(_DWORD *)(v59 - 8); *(_DWORD *)(v59 - 8) = v51 - 1; } if ( v51 <= 0 ) operator delete(v23); } sub_D153B8((int)&v59, "Relative"); cocos2d::CCPoint::CCPoint( &v58, (float)((float)((float)(a1->m_width * 0.5) + (float)(v54 * 0.5)) - 72.0) - 90.0, 20.0 - (float)((float)(a1->m_height * 0.5) - (float)(v55 * 0.5))); SetupTriggerPopup::createToggleValueControl(a1, 514, 1.0, (__int64)&v59, &v58, 0, 0, 0); v24 = (void *)(v59 - 24); if ( (__int64 *)(v59 - 24) != &qword_124B6B0 ) { if ( &pthread_create ) { v52 = (unsigned int *)(v59 - 8); do v53 = __ldaxr(v52); while ( __stlxr(v53 - 1, v52) ); } else { v53 = *(_DWORD *)(v59 - 8); *(_DWORD *)(v59 - 8) = v53 - 1; } if ( v53 <= 0 ) operator delete(v24); } cocos2d::CCPoint::CCPoint(&v58, 100.0, -165.0); cocos2d::CCPoint::operator+(&v59, &v56, &v58); v64.x = 0.6; SetupTriggerPopup::createEasingControls(a1, v64, v25, (int)&v59, 0); }
GD Web Decomp Icon

GD Web Decomp

Raw Source