// // SetupRotateGameplayPopup::init from 0x9ef538 to 0x9f016c (3124 bytes) // // 2 xrefs: // > SetupRotateGameplayPopup::create @ 0x9f0340 // > @ 0x57870 // // 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 // bool SetupRotateGameplayPopup::init(SetupRotateGameplayPopup *a1, RotateGameplayGameObject *a2, cocos2d::CCArray *a3) { bool v4; // w26 void *v6; // x0 __int64 v7; // x2 __int64 v8; // x3 __int64 v9; // x4 __int64 v10; // x5 const char *v11; // x6 void *v12; // x0 void *v13; // x0 void *v14; // x0 cocos2d::CCDirector *v15; // x0 void *v16; // x0 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; // s3 float v27; // s4 void *v28; // x0 long double v29; // q0 void *v30; // x0 void (__fastcall *toggleGroup)(SetupTriggerPopup *__hidden, int, bool); // x25 float v32; // s0 void (__fastcall *v33)(SetupTriggerPopup *__hidden, int, bool); // x25 float v34; // s0 void *v35; // x0 void *v36; // x22 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; // x1 int v58; // w2 unsigned int *v59; // x1 int v60; // w2 unsigned int *v61; // x1 int v62; // w2 unsigned int *v63; // x19 int v64; // w0 _QWORD v65[2]; // [xsp+30h] [xbp+0h] BYREF float v66; // [xsp+C0h] [xbp+90h] float v67; // [xsp+C4h] [xbp+94h] cocos2d::CCPoint v68; // [xsp+C8h] [xbp+98h] BYREF cocos2d::CCPoint v69; // [xsp+D0h] [xbp+A0h] BYREF cocos2d::CCPoint v70; // [xsp+D8h] [xbp+A8h] BYREF cocos2d::CCPoint v71; // [xsp+E0h] [xbp+B0h] BYREF cocos2d::CCPoint v72; // [xsp+E8h] [xbp+B8h] BYREF cocos2d::CCPoint v73; // [xsp+F0h] [xbp+C0h] BYREF cocos2d::CCPoint v74; // 0:s0.4,4:s1.4 cocos2d::CCPoint v75; // 0:s0.4,4:s1.4 cocos2d::CCPoint v76; // 0:s0.4,4:s1.4 v4 = SetupTriggerPopup::init(a1, a2, a3, 380.0, 280.0, 1); if ( v4 ) { SetupTriggerPopup::preSetup(a1); sub_D153B8((unsigned int)v65 + 192, "Rotate Gameplay"); SetupTriggerPopup::addTitle((__int64)a1); v6 = (void *)(*(_QWORD *)&v73 - 24LL); if ( (__int64 *)(*(_QWORD *)&v73 - 24LL) != &qword_124B6B0 ) { if ( &pthread_create ) { v37 = (unsigned int *)(*(_QWORD *)&v73 - 8LL); do v38 = __ldaxr(v37); while ( __stlxr(v38 - 1, v37) ); } else { v38 = *(_DWORD *)(*(_QWORD *)&v73 - 8LL); *(_DWORD *)(*(_QWORD *)&v73 - 8LL) = v38 - 1; } if ( v38 <= 0 ) operator delete(v6); } sub_D153B8((unsigned int)v65 + 192, "OK"); SetupTriggerPopup::addCloseButton((__int64)a1, (ButtonSprite **)&v73, v7, v8, v9, v10, v11); v12 = (void *)(*(_QWORD *)&v73 - 24LL); if ( (__int64 *)(*(_QWORD *)&v73 - 24LL) != &qword_124B6B0 ) { if ( &pthread_create ) { v39 = (unsigned int *)(*(_QWORD *)&v73 - 8LL); do v40 = __ldaxr(v39); while ( __stlxr(v40 - 1, v39) ); } else { v40 = *(_DWORD *)(*(_QWORD *)&v73 - 8LL); *(_DWORD *)(*(_QWORD *)&v73 - 8LL) = v40 - 1; } if ( v40 <= 0 ) operator delete(v12); } sub_D153B8((int)&v72, "Help"); sub_D153B8( (unsigned int)v65 + 192, "VelMod modifies the velocity after switching rotation.\n" "Override Velocity sets the velocity instead of multiplying.\n" "Change Channel allows you to specify which channel to switch to after rotating. Triggers in a given channe" "l will only be activated when the player is in that channel. You can use Channel Only to exclude gameplay " "rotation.\n" "The Rotate Gameplay trigger direction determines how the channel's triggers are sorted. Upwards means smal" "ler Y values are triggered first, right means smaller X values are triggered first, and so on.\n" "Instant Offset makes the camera update instantly when switching gameplay to the opposite direction."); SetupTriggerPopup::addHelpButton((__int64)a1, 0.9); v13 = (void *)(*(_QWORD *)&v73 - 24LL); if ( (__int64 *)(*(_QWORD *)&v73 - 24LL) != &qword_124B6B0 ) { if ( &pthread_create ) { v43 = (unsigned int *)(*(_QWORD *)&v73 - 8LL); do v44 = __ldaxr(v43); while ( __stlxr(v44 - 1, v43) ); } else { v44 = *(_DWORD *)(*(_QWORD *)&v73 - 8LL); *(_DWORD *)(*(_QWORD *)&v73 - 8LL) = v44 - 1; } if ( v44 <= 0 ) operator delete(v13); } v14 = (void *)(*(_QWORD *)&v72 - 24LL); if ( (__int64 *)(*(_QWORD *)&v72 - 24LL) != &qword_124B6B0 ) { if ( &pthread_create ) { v51 = (unsigned int *)(*(_QWORD *)&v72 - 8LL); do v52 = __ldaxr(v51); while ( __stlxr(v52 - 1, v51) ); } else { v52 = *(_DWORD *)(*(_QWORD *)&v72 - 8LL); *(_DWORD *)(*(_QWORD *)&v72 - 8LL) = v52 - 1; } if ( v52 <= 0 ) operator delete(v14); } v15 = cocos2d::CCDirector::sharedDirector(); cocos2d::CCDirector::getWinSize(v15); cocos2d::CCPoint::CCPoint(&v68, (float)(v66 * 0.5) + -25.0, (float)(v67 * 0.5) + 85.0); cocos2d::CCPoint::CCPoint(&v69, v66 * 0.5, v68.y); sub_D153B8((unsigned int)v65 + 192, "Edit\nVelocity"); cocos2d::CCPoint::CCPoint(&v71, -60.0, 0.0); cocos2d::CCPoint::operator+(&v72, &v68, &v71); SetupTriggerPopup::createToggleValueControl(a1, 169, 1.0, (__int64)&v73, &v72, 0, 0, 0); v16 = (void *)(*(_QWORD *)&v73 - 24LL); if ( (__int64 *)(*(_QWORD *)&v73 - 24LL) != &qword_124B6B0 ) { if ( &pthread_create ) { v47 = (unsigned int *)(*(_QWORD *)&v73 - 8LL); do v48 = __ldaxr(v47); while ( __stlxr(v48 - 1, v47) ); } else { v48 = *(_DWORD *)(*(_QWORD *)&v73 - 8LL); *(_DWORD *)(*(_QWORD *)&v73 - 8LL) = v48 - 1; } if ( v48 <= 0 ) operator delete(v16); } sub_D153B8((unsigned int)v65 + 192, "Override\nVelocity"); cocos2d::CCPoint::CCPoint(&v71, 60.0, 0.0); cocos2d::CCPoint::operator+(&v72, &v68, &v71); SetupTriggerPopup::createToggleValueControl(a1, 584, 1.0, (__int64)&v73, &v72, 0, 0, 169); v17 = (void *)(*(_QWORD *)&v73 - 24LL); if ( (__int64 *)(*(_QWORD *)&v73 - 24LL) != &qword_124B6B0 ) { if ( &pthread_create ) { v55 = (unsigned int *)(*(_QWORD *)&v73 - 8LL); do v56 = __ldaxr(v55); while ( __stlxr(v56 - 1, v55) ); } else { v56 = *(_DWORD *)(*(_QWORD *)&v73 - 8LL); *(_DWORD *)(*(_QWORD *)&v73 - 8LL) = v56 - 1; } if ( v56 <= 0 ) operator delete(v17); } sub_D153B8((unsigned int)v65 + 192, "VelModX:"); cocos2d::CCPoint::CCPoint(&v71, -80.0, -42.0); cocos2d::CCPoint::operator+(&v72, &v69, &v71); v74.x = 0.7; v74.y = -1.0; SetupTriggerPopup::createValueControlAdvanced( a1, 0x246u, v74, 1.0, v18, v19, (std::string)&v73, &v72, (InputValueType)0, Float, 6, 0, 0, 169, 1, 2, 0); v20 = (void *)(*(_QWORD *)&v73 - 24LL); if ( (__int64 *)(*(_QWORD *)&v73 - 24LL) != &qword_124B6B0 ) { if ( &pthread_create ) { v41 = (unsigned int *)(*(_QWORD *)&v73 - 8LL); do v42 = __ldaxr(v41); while ( __stlxr(v42 - 1, v41) ); } else { v42 = *(_DWORD *)(*(_QWORD *)&v73 - 8LL); *(_DWORD *)(*(_QWORD *)&v73 - 8LL) = v42 - 1; } if ( v42 <= 0 ) operator delete(v20); } sub_D153B8((unsigned int)v65 + 192, "Y:"); cocos2d::CCPoint::CCPoint(&v71, 80.0, -42.0); cocos2d::CCPoint::operator+(&v72, &v69, &v71); v75.x = 0.7; v75.y = -1.0; SetupTriggerPopup::createValueControlAdvanced( a1, 0x247u, v75, 1.0, v21, v22, (std::string)&v73, &v72, (InputValueType)0, Float, 6, 0, 0, 169, 1, 2, 0); v23 = (void *)(*(_QWORD *)&v73 - 24LL); if ( (__int64 *)(*(_QWORD *)&v73 - 24LL) != &qword_124B6B0 ) { if ( &pthread_create ) { v57 = (unsigned int *)(*(_QWORD *)&v73 - 8LL); do v58 = __ldaxr(v57); while ( __stlxr(v58 - 1, v57) ); } else { v58 = *(_DWORD *)(*(_QWORD *)&v73 - 8LL); *(_DWORD *)(*(_QWORD *)&v73 - 8LL) = v58 - 1; } if ( v58 <= 0 ) operator delete(v23); } sub_D153B8((unsigned int)v65 + 192, "Change\nChannel"); cocos2d::CCPoint::CCPoint(&v71, -60.0, -84.0); cocos2d::CCPoint::operator+(&v72, &v68, &v71); SetupTriggerPopup::createToggleValueControl(a1, 171, 1.0, (__int64)&v73, &v72, 0, 0, 0); v24 = (void *)(*(_QWORD *)&v73 - 24LL); if ( (__int64 *)(*(_QWORD *)&v73 - 24LL) != &qword_124B6B0 ) { if ( &pthread_create ) { v49 = (unsigned int *)(*(_QWORD *)&v73 - 8LL); do v50 = __ldaxr(v49); while ( __stlxr(v50 - 1, v49) ); } else { v50 = *(_DWORD *)(*(_QWORD *)&v73 - 8LL); *(_DWORD *)(*(_QWORD *)&v73 - 8LL) = v50 - 1; } if ( v50 <= 0 ) operator delete(v24); } sub_D153B8((unsigned int)v65 + 192, "Channel\nOnly"); cocos2d::CCPoint::CCPoint(&v71, 60.0, -84.0); cocos2d::CCPoint::operator+(&v72, &v68, &v71); SetupTriggerPopup::createToggleValueControl(a1, 172, 1.0, (__int64)&v73, &v72, 0, 0, 171); v25 = (void *)(*(_QWORD *)&v73 - 24LL); if ( (__int64 *)(*(_QWORD *)&v73 - 24LL) != &qword_124B6B0 ) { if ( &pthread_create ) { v61 = (unsigned int *)(*(_QWORD *)&v73 - 8LL); do v62 = __ldaxr(v61); while ( __stlxr(v62 - 1, v61) ); } else { v62 = *(_DWORD *)(*(_QWORD *)&v73 - 8LL); *(_DWORD *)(*(_QWORD *)&v73 - 8LL) = v62 - 1; } if ( v62 <= 0 ) operator delete(v25); } cocos2d::CCPoint::CCPoint(&v73, 0.0, -146.0); cocos2d::CCPoint::operator+(&v70, &v69, &v73); sub_D153B8((int)&v72, "Target Channel:"); cocos2d::CCPoint::CCPoint(&v73, &v70); v76.y = 0.0; v76.x = 0.8; SetupTriggerPopup::createValueControlAdvanced( a1, 0xADu, v76, 9999.0, v26, v27, (std::string)&v72, &v73, Float, Uint, 6, 1u, 0, 171, 0, 2, 0); v28 = (void *)(*(_QWORD *)&v72 - 24LL); if ( (__int64 *)(*(_QWORD *)&v72 - 24LL) != &qword_124B6B0 ) { if ( &pthread_create ) { v45 = (unsigned int *)(*(_QWORD *)&v72 - 8LL); do v46 = __ldaxr(v45); while ( __stlxr(v46 - 1, v45) ); } else { v46 = *(_DWORD *)(*(_QWORD *)&v72 - 8LL); *(_DWORD *)(*(_QWORD *)&v72 - 8LL) = v46 - 1; } if ( v46 <= 0 ) operator delete(v28); } cocos2d::CCPoint::CCPoint(&v71, 75.0, 0.0); cocos2d::CCPoint::operator+(&v72, &v70, &v71); sub_D153B8((int)&v73, &byte_F288A0); LODWORD(v29) = 1061997773; SetupTriggerPopup::createPlusButton(a1, 173, &v72, (const char **)&v73, 0, 171, v29); v30 = (void *)(*(_QWORD *)&v73 - 24LL); if ( (__int64 *)(*(_QWORD *)&v73 - 24LL) != &qword_124B6B0 ) { if ( &pthread_create ) { v59 = (unsigned int *)(*(_QWORD *)&v73 - 8LL); do v60 = __ldaxr(v59); while ( __stlxr(v60 - 1, v59) ); } else { v60 = *(_DWORD *)(*(_QWORD *)&v73 - 8LL); *(_DWORD *)(*(_QWORD *)&v73 - 8LL) = v60 - 1; } if ( v60 <= 0 ) operator delete(v30); } toggleGroup = a1->toggleGroup; v32 = a1->getValue(a1, 171); toggleGroup(a1, 171, v32 != 0.0); v33 = a1->toggleGroup; v34 = a1->getValue(a1, 169); v33(a1, 169, v34 != 0.0); sub_D153B8((unsigned int)v65 + 192, "Instant\nOffset"); cocos2d::CCPoint::CCPoint( &v72, (float)((float)(a1->m_width * 0.5) + (float)(v66 * 0.5)) - 72.0, 50.0 - (float)((float)(a1->m_height * 0.5) - (float)(v67 * 0.5))); SetupTriggerPopup::createToggleValueControl(a1, 368, 1.0, (__int64)&v73, &v72, 0, 0, 0); v35 = (void *)(*(_QWORD *)&v73 - 24LL); if ( (__int64 *)(*(_QWORD *)&v73 - 24LL) != &qword_124B6B0 ) { if ( &pthread_create ) { v53 = (unsigned int *)(*(_QWORD *)&v73 - 8LL); do v54 = __ldaxr(v53); while ( __stlxr(v54 - 1, v53) ); } else { v54 = *(_DWORD *)(*(_QWORD *)&v73 - 8LL); *(_DWORD *)(*(_QWORD *)&v73 - 8LL) = v54 - 1; } if ( v54 <= 0 ) operator delete(v35); } sub_D153B8((unsigned int)v65 + 192, "Dont\nSlide"); cocos2d::CCPoint::CCPoint( &v72, (float)((float)(a1->m_width * 0.5) + (float)(v66 * 0.5)) - 72.0, (float)(50.0 - (float)((float)(a1->m_height * 0.5) - (float)(v67 * 0.5))) + 30.0); SetupTriggerPopup::createToggleValueControl(a1, 585, 1.0, (__int64)&v73, &v72, 0, 0, 0); v36 = (void *)(*(_QWORD *)&v73 - 24LL); if ( (__int64 *)(*(_QWORD *)&v73 - 24LL) != &qword_124B6B0 ) { if ( &pthread_create ) { v63 = (unsigned int *)(*(_QWORD *)&v73 - 8LL); do v64 = __ldaxr(v63); while ( __stlxr(v64 - 1, v63) ); } else { v64 = *(_DWORD *)(*(_QWORD *)&v73 - 8LL); *(_DWORD *)(*(_QWORD *)&v73 - 8LL) = v64 - 1; } if ( v64 <= 0 ) operator delete(v36); } SetupTriggerPopup::createMultiTriggerItemsDefault(a1); SetupTriggerPopup::postSetup(a1); } return v4; }
GD Web Decomp Icon

GD Web Decomp

Raw Source