// // SetupShaderEffectPopup::setupRadialBlur from 0xa026d4 to 0xa033ac (3288 bytes) // // 2 xrefs: // > SetupShaderEffectPopup::init @ 0xa08688 // > @ 0x93d08 // // 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::setupRadialBlur(SetupShaderEffectPopup *a1) { void *v2; // x0 void *v3; // x0 void *v4; // x0 cocos2d::CCDirector *v5; // x0 void *v6; // x0 void *v7; // x0 void *v8; // x0 float v9; // s3 float v10; // s4 void *v11; // x0 void *v12; // x0 void *v13; // x0 void *v14; // x0 float v15; // s3 float v16; // s4 void *v17; // x0 float v18; // s3 float v19; // s4 void *v20; // x0 float v21; // s3 float v22; // s4 void *v23; // x0 void *v24; // x0 void *v25; // x0 float v26; // s0 _BOOL4 v27; // w21 float v28; // s2 unsigned int *v29; // x1 int v30; // w2 unsigned int *v31; // x1 int v32; // w2 unsigned int *v33; // x1 int v34; // w2 unsigned int *v35; // x1 int v36; // w2 unsigned int *v37; // x1 int v38; // w2 unsigned int *v39; // x1 int v40; // w2 unsigned int *v41; // x1 int v42; // w2 unsigned int *v43; // x1 int v44; // w2 unsigned int *v45; // x1 int v46; // w2 unsigned int *v47; // x1 int v48; // w2 unsigned int *v49; // x1 int v50; // w2 unsigned int *v51; // x1 int v52; // w2 unsigned int *v53; // x1 int v54; // w2 unsigned int *v55; // x1 int v56; // w2 unsigned int *v57; // x21 int v58; // w1 float v59; // [xsp+B8h] [xbp+88h] float v60; // [xsp+BCh] [xbp+8Ch] cocos2d::CCPoint v61; // [xsp+C0h] [xbp+90h] BYREF cocos2d::CCPoint v62; // [xsp+C8h] [xbp+98h] BYREF cocos2d::CCPoint v63; // [xsp+D0h] [xbp+A0h] BYREF cocos2d::CCPoint v64; // [xsp+D8h] [xbp+A8h] BYREF cocos2d::CCPoint v65; // [xsp+E0h] [xbp+B0h] BYREF cocos2d::CCPoint v66; // 0:s0.4,4:s1.4 cocos2d::CCPoint v67; // 0:s0.4,4:s1.4 cocos2d::CCPoint v68; // 0:s0.4,4:s1.4 cocos2d::CCPoint v69; // 0:s0.4,4:s1.4 cocos2d::CCPoint v70; // 0:s0.4,4:s1.4 sub_D153B8((int)&v65, "Setup Radial Blur"); SetupTriggerPopup::addTitle((__int64)a1); v2 = (void *)(*(_QWORD *)&v65 - 24LL); if ( (__int64 *)(*(_QWORD *)&v65 - 24LL) != &qword_124B6B0 ) { if ( &pthread_create ) { v29 = (unsigned int *)(*(_QWORD *)&v65 - 8LL); do v30 = __ldaxr(v29); while ( __stlxr(v30 - 1, v29) ); } else { v30 = *(_DWORD *)(*(_QWORD *)&v65 - 8LL); *(_DWORD *)(*(_QWORD *)&v65 - 8LL) = v30 - 1; } if ( v30 <= 0 ) operator delete(v2); } sub_D153B8((int)&v64, "Help"); sub_D153B8( (int)&v65, "Applies radial blur.\n" "Size is how much blur to apply around the center.\n" "FadeTime is time until final state is reached.\n" "Intensity is opacity of the blur.\n" "RefChannel uses a color channel to reference the effect.\n" "Fade sets how much blur fades out at the edges.\n" "Screen OffX and OffY offsets the center of the effect.\n" "Target lets you set a specific target object as the center."); SetupTriggerPopup::addHelpButton((__int64)a1, 1.0); v3 = (void *)(*(_QWORD *)&v65 - 24LL); if ( (__int64 *)(*(_QWORD *)&v65 - 24LL) != &qword_124B6B0 ) { if ( &pthread_create ) { v31 = (unsigned int *)(*(_QWORD *)&v65 - 8LL); do v32 = __ldaxr(v31); while ( __stlxr(v32 - 1, v31) ); } else { v32 = *(_DWORD *)(*(_QWORD *)&v65 - 8LL); *(_DWORD *)(*(_QWORD *)&v65 - 8LL) = v32 - 1; } if ( v32 <= 0 ) operator delete(v3); } v4 = (void *)(*(_QWORD *)&v64 - 24LL); if ( (__int64 *)(*(_QWORD *)&v64 - 24LL) != &qword_124B6B0 ) { if ( &pthread_create ) { v33 = (unsigned int *)(*(_QWORD *)&v64 - 8LL); do v34 = __ldaxr(v33); while ( __stlxr(v34 - 1, v33) ); } else { v34 = *(_DWORD *)(*(_QWORD *)&v64 - 8LL); *(_DWORD *)(*(_QWORD *)&v64 - 8LL) = v34 - 1; } if ( v34 <= 0 ) operator delete(v4); } v5 = cocos2d::CCDirector::sharedDirector(); cocos2d::CCDirector::getWinSize(v5); cocos2d::CCPoint::CCPoint(&v61, v59 * 0.5, (float)(v60 * 0.5) + 85.0); sub_D153B8((int)&v65, "Size:"); cocos2d::CCPoint::CCPoint(&v63, -130.0, 0.0); cocos2d::CCPoint::operator+(&v64, &v61, &v63); SetupTriggerPopup::createValueControl(a1, 0xB3u, 0.6, 0.0, 2.0, (__int64)&v65, &v64); v6 = (void *)(*(_QWORD *)&v65 - 24LL); if ( (__int64 *)(*(_QWORD *)&v65 - 24LL) != &qword_124B6B0 ) { if ( &pthread_create ) { v35 = (unsigned int *)(*(_QWORD *)&v65 - 8LL); do v36 = __ldaxr(v35); while ( __stlxr(v36 - 1, v35) ); } else { v36 = *(_DWORD *)(*(_QWORD *)&v65 - 8LL); *(_DWORD *)(*(_QWORD *)&v65 - 8LL) = v36 - 1; } if ( v36 <= 0 ) operator delete(v6); } sub_D153B8((int)&v65, "FadeTime:"); cocos2d::CCPoint::CCPoint(&v63, 0.0, 0.0); cocos2d::CCPoint::operator+(&v64, &v61, &v63); SetupTriggerPopup::createValueControl(a1, 0xAu, 0.6, 0.0, 0.0, (__int64)&v65, &v64); v7 = (void *)(*(_QWORD *)&v65 - 24LL); if ( (__int64 *)(*(_QWORD *)&v65 - 24LL) != &qword_124B6B0 ) { if ( &pthread_create ) { v37 = (unsigned int *)(*(_QWORD *)&v65 - 8LL); do v38 = __ldaxr(v37); while ( __stlxr(v38 - 1, v37) ); } else { v38 = *(_DWORD *)(*(_QWORD *)&v65 - 8LL); *(_DWORD *)(*(_QWORD *)&v65 - 8LL) = v38 - 1; } if ( v38 <= 0 ) operator delete(v7); } sub_D153B8((int)&v65, "Intensity:"); cocos2d::CCPoint::CCPoint(&v63, -130.0, -50.0); cocos2d::CCPoint::operator+(&v64, &v61, &v63); SetupTriggerPopup::createValueControl(a1, 0xB0u, 0.6, 0.0, 5.0, (__int64)&v65, &v64); v8 = (void *)(*(_QWORD *)&v65 - 24LL); if ( (__int64 *)(*(_QWORD *)&v65 - 24LL) != &qword_124B6B0 ) { if ( &pthread_create ) { v39 = (unsigned int *)(*(_QWORD *)&v65 - 8LL); do v40 = __ldaxr(v39); while ( __stlxr(v40 - 1, v39) ); } else { v40 = *(_DWORD *)(*(_QWORD *)&v65 - 8LL); *(_DWORD *)(*(_QWORD *)&v65 - 8LL) = v40 - 1; } if ( v40 <= 0 ) operator delete(v8); } sub_D153B8((int)&v65, "Ref\nChannel:"); cocos2d::CCPoint::CCPoint(&v63, 0.0, -55.0); cocos2d::CCPoint::operator+(&v64, &v61, &v63); v66.y = 0.0; v66.x = 0.6; SetupTriggerPopup::createValueControlAdvanced( a1, 0x47u, v66, 0.0, v9, v10, (std::string)&v65, &v64, Float, Int, 6, 0, 0, 0, 0, 2, 0); v11 = (void *)(*(_QWORD *)&v65 - 24LL); if ( (__int64 *)(*(_QWORD *)&v65 - 24LL) != &qword_124B6B0 ) { if ( &pthread_create ) { v41 = (unsigned int *)(*(_QWORD *)&v65 - 8LL); do v42 = __ldaxr(v41); while ( __stlxr(v42 - 1, v41) ); } else { v42 = *(_DWORD *)(*(_QWORD *)&v65 - 8LL); *(_DWORD *)(*(_QWORD *)&v65 - 8LL) = v42 - 1; } if ( v42 <= 0 ) operator delete(v11); } sub_D153B8((int)&v65, "Fade:"); cocos2d::CCPoint::CCPoint(&v63, -130.0, -100.0); cocos2d::CCPoint::operator+(&v64, &v61, &v63); SetupTriggerPopup::createValueControl(a1, 0xB5u, 0.6, -1.0, 1.0, (__int64)&v65, &v64); v12 = (void *)(*(_QWORD *)&v65 - 24LL); if ( (__int64 *)(*(_QWORD *)&v65 - 24LL) != &qword_124B6B0 ) { if ( &pthread_create ) { v43 = (unsigned int *)(*(_QWORD *)&v65 - 8LL); do v44 = __ldaxr(v43); while ( __stlxr(v44 - 1, v43) ); } else { v44 = *(_DWORD *)(*(_QWORD *)&v65 - 8LL); *(_DWORD *)(*(_QWORD *)&v65 - 8LL) = v44 - 1; } if ( v44 <= 0 ) operator delete(v12); } cocos2d::CCPoint::CCPoint( &v62, 20.0 - (float)((float)(a1->m_width * 0.5) - (float)(v59 * 0.5)), (float)(20.0 - (float)((float)(a1->m_height * 0.5) - (float)(v60 * 0.5))) + 30.0); sub_D153B8((int)&v64, "Target"); cocos2d::CCPoint::CCPoint(&v65, &v62); SetupTriggerPopup::createToggleValueControl(a1, 188, 1.0, (__int64)&v64, &v65, 0, 0, 0); v13 = (void *)(*(_QWORD *)&v64 - 24LL); if ( (__int64 *)(*(_QWORD *)&v64 - 24LL) != &qword_124B6B0 ) { if ( &pthread_create ) { v45 = (unsigned int *)(*(_QWORD *)&v64 - 8LL); do v46 = __ldaxr(v45); while ( __stlxr(v46 - 1, v45) ); } else { v46 = *(_DWORD *)(*(_QWORD *)&v64 - 8LL); *(_DWORD *)(*(_QWORD *)&v64 - 8LL) = v46 - 1; } if ( v46 <= 0 ) operator delete(v13); } sub_D153B8((int)&v65, "EmptyOnly"); cocos2d::CCPoint::CCPoint(&v63, 90.0, 0.0); cocos2d::CCPoint::operator+(&v64, &v62, &v63); SetupTriggerPopup::createToggleValueControl(a1, 515, 1.0, (__int64)&v65, &v64, 0, 0, 0); v14 = (void *)(*(_QWORD *)&v65 - 24LL); if ( (__int64 *)(*(_QWORD *)&v65 - 24LL) != &qword_124B6B0 ) { if ( &pthread_create ) { v47 = (unsigned int *)(*(_QWORD *)&v65 - 8LL); do v48 = __ldaxr(v47); while ( __stlxr(v48 - 1, v47) ); } else { v48 = *(_DWORD *)(*(_QWORD *)&v65 - 8LL); *(_DWORD *)(*(_QWORD *)&v65 - 8LL) = v48 - 1; } if ( v48 <= 0 ) operator delete(v14); } sub_D153B8((int)&v65, "Screen\nOffX:"); cocos2d::CCPoint::CCPoint(&v63, 130.0, 0.0); cocos2d::CCPoint::operator+(&v64, &v61, &v63); v67.x = 0.6; v67.y = -1.0; SetupTriggerPopup::createValueControlAdvanced( a1, 0x122u, v67, 1.0, v15, v16, (std::string)&v65, &v64, (InputValueType)0, Float, 6, 0, 0, 101, 0, 2, 0); v17 = (void *)(*(_QWORD *)&v65 - 24LL); if ( (__int64 *)(*(_QWORD *)&v65 - 24LL) != &qword_124B6B0 ) { if ( &pthread_create ) { v49 = (unsigned int *)(*(_QWORD *)&v65 - 8LL); do v50 = __ldaxr(v49); while ( __stlxr(v50 - 1, v49) ); } else { v50 = *(_DWORD *)(*(_QWORD *)&v65 - 8LL); *(_DWORD *)(*(_QWORD *)&v65 - 8LL) = v50 - 1; } if ( v50 <= 0 ) operator delete(v17); } sub_D153B8((int)&v65, "Screen\nOffY:"); cocos2d::CCPoint::CCPoint(&v63, 130.0, -50.0); cocos2d::CCPoint::operator+(&v64, &v61, &v63); v68.x = 0.6; v68.y = -1.0; SetupTriggerPopup::createValueControlAdvanced( a1, 0x123u, v68, 1.0, v18, v19, (std::string)&v65, &v64, (InputValueType)0, Float, 6, 0, 0, 101, 0, 2, 0); v20 = (void *)(*(_QWORD *)&v65 - 24LL); if ( (__int64 *)(*(_QWORD *)&v65 - 24LL) != &qword_124B6B0 ) { if ( &pthread_create ) { v51 = (unsigned int *)(*(_QWORD *)&v65 - 8LL); do v52 = __ldaxr(v51); while ( __stlxr(v52 - 1, v51) ); } else { v52 = *(_DWORD *)(*(_QWORD *)&v65 - 8LL); *(_DWORD *)(*(_QWORD *)&v65 - 8LL) = v52 - 1; } if ( v52 <= 0 ) operator delete(v20); } sub_D153B8((int)&v65, "CenterID:"); cocos2d::CCPoint::CCPoint(&v63, 130.0, 0.0); cocos2d::CCPoint::operator+(&v64, &v61, &v63); v69.x = 0.6; v69.y = 0.0; SetupTriggerPopup::createValueControlAdvanced( a1, 0x33u, v69, 1.0, v21, v22, (std::string)&v65, &v64, Float, Int, 6, 1u, 0, 100, 0, 2, 0); v23 = (void *)(*(_QWORD *)&v65 - 24LL); if ( (__int64 *)(*(_QWORD *)&v65 - 24LL) != &qword_124B6B0 ) { if ( &pthread_create ) { v53 = (unsigned int *)(*(_QWORD *)&v65 - 8LL); do v54 = __ldaxr(v53); while ( __stlxr(v54 - 1, v53) ); } else { v54 = *(_DWORD *)(*(_QWORD *)&v65 - 8LL); *(_DWORD *)(*(_QWORD *)&v65 - 8LL) = v54 - 1; } if ( v54 <= 0 ) operator delete(v23); } sub_D153B8((int)&v65, "P1"); cocos2d::CCPoint::CCPoint(&v63, 90.0, -40.0); cocos2d::CCPoint::operator+(&v64, &v61, &v63); SetupTriggerPopup::createToggleValueControl(a1, 138, 1.0, (__int64)&v65, &v64, 0, 0, 100); v24 = (void *)(*(_QWORD *)&v65 - 24LL); if ( (__int64 *)(*(_QWORD *)&v65 - 24LL) != &qword_124B6B0 ) { if ( &pthread_create ) { v55 = (unsigned int *)(*(_QWORD *)&v65 - 8LL); do v56 = __ldaxr(v55); while ( __stlxr(v56 - 1, v55) ); } else { v56 = *(_DWORD *)(*(_QWORD *)&v65 - 8LL); *(_DWORD *)(*(_QWORD *)&v65 - 8LL) = v56 - 1; } if ( v56 <= 0 ) operator delete(v24); } sub_D153B8((int)&v65, "P2"); cocos2d::CCPoint::CCPoint(&v63, 160.0, -40.0); cocos2d::CCPoint::operator+(&v64, &v61, &v63); SetupTriggerPopup::createToggleValueControl(a1, 200, 1.0, (__int64)&v65, &v64, 0, 0, 100); v25 = (void *)(*(_QWORD *)&v65 - 24LL); if ( (__int64 *)(*(_QWORD *)&v65 - 24LL) != &qword_124B6B0 ) { if ( &pthread_create ) { v57 = (unsigned int *)(*(_QWORD *)&v65 - 8LL); do v58 = __ldaxr(v57); while ( __stlxr(v58 - 1, v57) ); } else { v58 = *(_DWORD *)(*(_QWORD *)&v65 - 8LL); *(_DWORD *)(*(_QWORD *)&v65 - 8LL) = v58 - 1; } if ( v58 <= 0 ) operator delete(v25); } v26 = a1->getValue(a1, 188); v27 = v26 != 0.0; a1->toggleGroup(a1, 100, v26 != 0.0); a1->toggleGroup(a1, 101, !v27); cocos2d::CCPoint::CCPoint(&v64, 65.0, -100.0); cocos2d::CCPoint::operator+(&v65, &v61, &v64); v70.x = 0.8; SetupTriggerPopup::createEasingControls(a1, v70, v28, (int)&v65, 0); }
GD Web Decomp Icon

GD Web Decomp

Raw Source