// // SetupAudioTriggerPopup::addTimeControls from 0xa3de40 to 0xa3e2dc (1180 bytes) // // 3 xrefs: // > SetupSongTriggerPopup::init @ 0x9aa614 // > SetupSFXPopup::init @ 0xa4084c // > @ 0xa4478 // // 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 // // local variable allocation has failed, the output may be wrong! void SetupAudioTriggerPopup::addTimeControls(SetupAudioTriggerPopup *a1, int a2, float a3) { cocos2d::CCDirector *v5; // x0 float v6; // s3 float v7; // s4 void *v8; // x0 float v9; // s3 float v10; // s4 void *v11; // x0 float v12; // s3 float v13; // s4 void *v14; // x0 float v15; // s3 float v16; // s4 void *v17; // x21 unsigned int *v18; // x1 int v19; // w2 unsigned int *v20; // x1 int v21; // w2 unsigned int *v22; // x1 int v23; // w2 unsigned int *v24; // x20 int v25; // w0 _QWORD v26[2]; // [xsp+30h] [xbp+0h] BYREF float v27[6]; // [xsp+B0h] [xbp+80h] float v28; // [xsp+D0h] [xbp+A0h] float v29; // [xsp+D4h] [xbp+A4h] cocos2d::CCPoint v30; // [xsp+D8h] [xbp+A8h] BYREF cocos2d::CCPoint v31; // [xsp+E0h] [xbp+B0h] BYREF cocos2d::CCPoint v32; // [xsp+E8h] [xbp+B8h] BYREF __int64 v33; // [xsp+F0h] [xbp+C0h] BYREF cocos2d::CCPoint v34; // 0:s0.4,4:s1.4 cocos2d::CCPoint v35; // 0:s0.4,4:s1.4 cocos2d::CCPoint v36; // 0:s0.4,4:s1.4 cocos2d::CCPoint v37; // 0:s0.4,4:s1.4 *(_OWORD *)v27 = *(_OWORD *)&a3; v5 = cocos2d::CCDirector::sharedDirector(); cocos2d::CCDirector::getWinSize(v5); cocos2d::CCPoint::CCPoint(&v30, v28 * 0.5, v27[0] + (float)(v29 * 0.5)); sub_D153B8((unsigned int)v26 + 192, "Start:"); cocos2d::CCPoint::CCPoint(&v31, -91.0, -0.0); cocos2d::CCPoint::operator+(&v32, &v30, &v31); v34.y = 0.0; v34.x = 0.65; SetupTriggerPopup::createValueControlAdvanced( a1, 0x198u, v34, 1000.0, v6, v7, (std::string)&v33, &v32, (InputValueType)0, Int, 6, 0, a2, 0, 1, 2, 0); v8 = (void *)(v33 - 24); if ( (__int64 *)(v33 - 24) != &qword_124B6B0 ) { if ( &pthread_create ) { v18 = (unsigned int *)(v33 - 8); do v19 = __ldaxr(v18); while ( __stlxr(v19 - 1, v18) ); } else { v19 = *(_DWORD *)(v33 - 8); *(_DWORD *)(v33 - 8) = v19 - 1; } if ( v19 <= 0 ) operator delete(v8); } sub_D153B8((unsigned int)v26 + 192, "FadeIn:"); cocos2d::CCPoint::CCPoint(&v31, 91.0, -0.0); cocos2d::CCPoint::operator+(&v32, &v30, &v31); v35.x = 0.65; v35.y = 0.0; SetupTriggerPopup::createValueControlAdvanced( a1, 0x199u, v35, 1000.0, v9, v10, (std::string)&v33, &v32, (InputValueType)0, Int, 6, 0, a2, 0, 1, 2, 0); v11 = (void *)(v33 - 24); if ( (__int64 *)(v33 - 24) != &qword_124B6B0 ) { if ( &pthread_create ) { v20 = (unsigned int *)(v33 - 8); do v21 = __ldaxr(v20); while ( __stlxr(v21 - 1, v20) ); } else { v21 = *(_DWORD *)(v33 - 8); *(_DWORD *)(v33 - 8) = v21 - 1; } if ( v21 <= 0 ) operator delete(v11); } sub_D153B8((unsigned int)v26 + 192, "End:"); cocos2d::CCPoint::CCPoint(&v31, -91.0, -39.0); cocos2d::CCPoint::operator+(&v32, &v30, &v31); v36.x = 0.65; v36.y = 0.0; SetupTriggerPopup::createValueControlAdvanced( a1, 0x19Au, v36, 1000.0, v12, v13, (std::string)&v33, &v32, (InputValueType)0, Int, 6, 0, a2, 0, 1, 2, 0); v14 = (void *)(v33 - 24); if ( (__int64 *)(v33 - 24) != &qword_124B6B0 ) { if ( &pthread_create ) { v22 = (unsigned int *)(v33 - 8); do v23 = __ldaxr(v22); while ( __stlxr(v23 - 1, v22) ); } else { v23 = *(_DWORD *)(v33 - 8); *(_DWORD *)(v33 - 8) = v23 - 1; } if ( v23 <= 0 ) operator delete(v14); } sub_D153B8((unsigned int)v26 + 192, "FadeOut:"); cocos2d::CCPoint::CCPoint(&v31, 91.0, -39.0); cocos2d::CCPoint::operator+(&v32, &v30, &v31); v37.x = 0.65; v37.y = 0.0; SetupTriggerPopup::createValueControlAdvanced( a1, 0x19Bu, v37, 1000.0, v15, v16, (std::string)&v33, &v32, (InputValueType)0, Int, 6, 0, a2, 0, 1, 2, 0); v17 = (void *)(v33 - 24); if ( (__int64 *)(v33 - 24) != &qword_124B6B0 ) { if ( &pthread_create ) { v24 = (unsigned int *)(v33 - 8); do v25 = __ldaxr(v24); while ( __stlxr(v25 - 1, v24) ); } else { v25 = *(_DWORD *)(v33 - 8); *(_DWORD *)(v33 - 8) = v25 - 1; } if ( v25 <= 0 ) operator delete(v17); } }
GD Web Decomp Icon

GD Web Decomp

Raw Source