// // SetupRotateGameplayPopup::init from 0x100878310 to 0x100878c02 (2290 bytes) // // 1 xrefs: // > sub_100878200 @ 0x1008782c4 // // This function is hookable on this platform (idp: pc, 32 bit: False, 64 bit: True! // // Using BromaIDA 8.3.0 @ https://github.com/Stazzical/BromaIDA // Using bindings at commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings // Generated at Fri, 27 Nov 2026 12:36:54 +0000 // __int64 __fastcall SetupRotateGameplayPopup::init(__int64 a1, __int64 a2, __int64 a3) { __int64 result; // rax unsigned int v4; // r12d __int64 v5; // rax __m128 v6; // xmm0 __m128 v7; // xmm0 __m128 v8; // rt1 unsigned __int64 v9; // [rsp+40h] [rbp-1A0h] BYREF std::string v10; // [rsp+48h] [rbp-198h] BYREF char v11; // [rsp+60h] [rbp-180h] BYREF char v12[15]; // [rsp+61h] [rbp-17Fh] BYREF void *v13; // [rsp+70h] [rbp-170h] __int128 v14; // [rsp+78h] [rbp-168h] BYREF void *v15; // [rsp+88h] [rbp-158h] __int128 v16; // [rsp+90h] [rbp-150h] BYREF void *v17; // [rsp+A0h] [rbp-140h] _BYTE v18[24]; // [rsp+A8h] [rbp-138h] BYREF std::string v19; // [rsp+C0h] [rbp-120h] BYREF std::string v20; // [rsp+D8h] [rbp-108h] BYREF char v21; // [rsp+F0h] [rbp-F0h] BYREF _BYTE v22[23]; // [rsp+F1h] [rbp-EFh] BYREF __int128 v23; // [rsp+108h] [rbp-D8h] BYREF void *v24; // [rsp+118h] [rbp-C8h] __int128 v25; // [rsp+120h] [rbp-C0h] BYREF void *v26; // [rsp+130h] [rbp-B0h] __int128 v27; // [rsp+138h] [rbp-A8h] BYREF void *v28; // [rsp+148h] [rbp-98h] std::string v29; // [rsp+150h] [rbp-90h] BYREF __int128 v30; // [rsp+168h] [rbp-78h] BYREF void *v31; // [rsp+178h] [rbp-68h] __int128 v32; // [rsp+180h] [rbp-60h] BYREF void *v33; // [rsp+190h] [rbp-50h] unsigned __int64 v34; // [rsp+198h] [rbp-48h] BYREF unsigned __int64 v35; // [rsp+1A0h] [rbp-40h] BYREF __int64 v36; // [rsp+1A8h] [rbp-38h] BYREF unsigned __int64 v37; // [rsp+1B0h] [rbp-30h] BYREF unsigned __int64 v38[5]; // [rsp+1B8h] [rbp-28h] BYREF result = SetupTriggerPopup::init(a1, a2, a3, 1, 380.0, 280.0, 0.0); if ( (_BYTE)result ) { v4 = result; SetupTriggerPopup::preSetup((_BYTE *)a1); v21 = 30; strcpy(v22, "Rotate Gameplay"); SetupTriggerPopup::addTitle(a1, (__int64)&v21); if ( (v21 & 1) != 0 ) operator delete(*(void **)&v22[15]); v11 = 4; strcpy(v12, "OK"); SetupTriggerPopup::addCloseButton(a1, (__int64)&v11); if ( (v11 & 1) != 0 ) operator delete(v13); LOBYTE(v14) = 8; strcpy((char *)&v14 + 1, "Help"); v17 = operator new(0x2B0u); *(_QWORD *)&v16 = 689; *((_QWORD *)&v16 + 1) = 685; strcpy( (char *)v17, "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(a1, &v14, &v16, 0.89999998); if ( (v16 & 1) != 0 ) operator delete(v17); if ( (v14 & 1) != 0 ) operator delete(v15); v5 = cocos2d::CCDirector::sharedDirector(); cocos2d::CCDirector::getWinSize(&v36, v5); sub_100278250((float *)&v35, (float)(*(float *)&v36 * 0.5) + -25.0, (float)(*((float *)&v36 + 1) * 0.5) + 85.0); sub_100278250((float *)&v34, *(float *)&v36 * 0.5, *((float *)&v35 + 1)); LOBYTE(v23) = 26; strcpy((char *)&v23 + 1, "Edit\nVelocity"); sub_100278250((float *)v38, -60.0, 0.0); sub_100278350((double *)&v37, &v35, v38); SetupTriggerPopup::createToggleValueControl(a1, 169, &v23, (__int64)&v37, 0, 0, 1.0, 0); if ( (v23 & 1) != 0 ) operator delete(v24); strcpy(v18, "\"Override\nVelocity"); sub_100278250((float *)v38, 60.0, 0.0); sub_100278350((double *)&v37, &v35, v38); SetupTriggerPopup::createToggleValueControl(a1, 584, (__int128 *)v18, (__int64)&v37, 0, 0, 1.0, 169); if ( (v18[0] & 1) != 0 ) operator delete(*(void **)&v18[16]); v19.__r_.__value_.__s.0 = (std::string::__short::$7162EEB0FEF29CC674EFA33D0008C7E0)16; strcpy(v19.__r_.__value_.__s.__data_, "VelModX:"); sub_100278250((float *)v38, -80.0, -42.0); sub_100278350((double *)&v37, &v34, v38); SetupTriggerPopup::createValueControlAdvanced( a1, 582, &v19, (__int64)&v37, 0, 1u, 0.69999999, -1.0, 1.0, 6u, 0, 0, 0xA9u, 1u, 2u, 0); if ( (*(_BYTE *)&v19.__r_.__value_.__s.0 & 1) != 0 ) operator delete(v19.__r_.__value_.__l.__data_); v20.__r_.__value_.__s.0 = (std::string::__short::$7162EEB0FEF29CC674EFA33D0008C7E0)4; strcpy(v20.__r_.__value_.__s.__data_, "Y:"); sub_100278250((float *)v38, 80.0, -42.0); sub_100278350((double *)&v37, &v34, v38); SetupTriggerPopup::createValueControlAdvanced( a1, 583, &v20, (__int64)&v37, 0, 1u, 0.69999999, -1.0, 1.0, 6u, 0, 0, 0xA9u, 1u, 2u, 0); if ( (*(_BYTE *)&v20.__r_.__value_.__s.0 & 1) != 0 ) operator delete(v20.__r_.__value_.__l.__data_); LOBYTE(v25) = 28; strcpy((char *)&v25 + 1, "Change\nChannel"); sub_100278250((float *)v38, -60.0, -84.0); sub_100278350((double *)&v37, &v35, v38); SetupTriggerPopup::createToggleValueControl(a1, 171, &v25, (__int64)&v37, 0, 0, 1.0, 0); if ( (v25 & 1) != 0 ) operator delete(v26); LOBYTE(v27) = 24; strcpy((char *)&v27 + 1, "Channel\nOnly"); sub_100278250((float *)v38, 60.0, -84.0); sub_100278350((double *)&v37, &v35, v38); SetupTriggerPopup::createToggleValueControl(a1, 172, &v27, (__int64)&v37, 0, 0, 1.0, 171); if ( (v27 & 1) != 0 ) operator delete(v28); sub_100278250((float *)v38, 0.0, -146.0); sub_100278350((double *)&v37, &v34, v38); v29.__r_.__value_.__s.0 = (std::string::__short::$7162EEB0FEF29CC674EFA33D0008C7E0)30; strcpy(v29.__r_.__value_.__s.__data_, "Target Channel:"); sub_1002782D0(v38, &v37); SetupTriggerPopup::createValueControlAdvanced( a1, 173, &v29, (__int64)v38, 1, 3u, 0.80000001, 0.0, 9999.0, 6u, 1, 0, 0xABu, 0, 2u, 0); if ( (*(_BYTE *)&v29.__r_.__value_.__s.0 & 1) != 0 ) operator delete(v29.__r_.__value_.__l.__data_); sub_100278250((float *)&v9, 75.0, 0.0); sub_100278350((double *)v38, &v37, &v9); *(_WORD *)&v10.__r_.__value_.__l.0 = 0; v6 = (__m128)0x3F4CCCCDu; SetupTriggerPopup::createPlusButton(a1, 0xADu, (__int64)v38, &v10, 0, 171, 0.80000001); if ( (*(_BYTE *)&v10.__r_.__value_.__s.0 & 1) != 0 ) operator delete(v10.__r_.__value_.__l.__data_); *(double *)v6.i64 = (*(double (__fastcall **)(__int64, __int64))(*(_QWORD *)a1 + 1464LL))(a1, 171); v7 = _mm_cmpneq_ss(v6, (__m128)0LL); (*(void (__fastcall **)(__int64, __int64, _QWORD))(*(_QWORD *)a1 + 1352LL))( a1, 171, _mm_cvtsi128_si32((__m128i)v7) & 1); *(double *)v7.i64 = (*(double (__fastcall **)(__int64, __int64))(*(_QWORD *)a1 + 1464LL))(a1, 169); v8.i32[0] = 0; (*(void (__fastcall **)(__int64, __int64, _QWORD))(*(_QWORD *)a1 + 1352LL))( a1, 169, _mm_cvtsi128_si32((__m128i)_mm_cmpneq_ss(v7, v8)) & 1); LOBYTE(v30) = 28; strcpy((char *)&v30 + 1, "Instant\nOffset"); sub_100278250( (float *)v38, (float)((float)(*(float *)(a1 + 732) * 0.5) + (float)(*(float *)&v36 * 0.5)) + -72.0, (float)((float)(*((float *)&v36 + 1) * 0.5) - (float)(*(float *)(a1 + 736) * 0.5)) + 50.0); SetupTriggerPopup::createToggleValueControl(a1, 368, &v30, (__int64)v38, 0, 0, 1.0, 0); if ( (v30 & 1) != 0 ) operator delete(v31); LOBYTE(v32) = 20; strcpy((char *)&v32 + 1, "Dont\nSlide"); sub_100278250( (float *)v38, (float)((float)(*(float *)(a1 + 732) * 0.5) + (float)(*(float *)&v36 * 0.5)) + -72.0, (float)((float)((float)(*((float *)&v36 + 1) * 0.5) - (float)(0.5 * *(float *)(a1 + 736))) + 50.0) + 30.0); SetupTriggerPopup::createToggleValueControl(a1, 585, &v32, (__int64)v38, 0, 0, 1.0, 0); if ( (v32 & 1) != 0 ) operator delete(v33); SetupTriggerPopup::createMultiTriggerItemsDefault((float *)a1, 585); SetupTriggerPopup::postSetup((_BYTE *)a1); return v4; } return result; }
GD Web Decomp Icon

GD Web Decomp

Raw Source