// // EditorSFXManager::playAction_1 from 0x1004c8014 to 0x1004c82e0 (716 bytes) // // 45 xrefs: // > GJTransformControl::ccTouchMoved @ 0x10015bba0 // > EditorUI::moveObjectCall_1 @ 0x10015cdc4 // > EditorUI::moveObjectCall_1 @ 0x10015cde8 // > EditorUI::transformObjectCall_1 @ 0x10015d4f8 // > EditorUI::activateTransformControl @ 0x10015f910 // > EditorUI::activateScaleControl @ 0x10015ff28 // > EditorUI::ccTouchMoved @ 0x100161934 // > EditorUI::ccTouchEnded @ 0x100161ee0 // > EditorUI::ccTouchEnded @ 0x100162014 // > EditorUI::handleEditorAction @ 0x1001636d8 // > sub_100163D04 @ 0x100163dc4 // > sub_100163D04 @ 0x100163ea8 // > EditorUI::onDpadStep @ 0x100186ab8 // > EditorUI::onDuplicate @ 0x100189b10 // > EditorUI::onCopy @ 0x10018a954 // > EditorUI::onPaste @ 0x10018aa98 // > EditorUI::selectObjectsInRect @ 0x1001a62e0 // > EditorUI::onDeselectAll @ 0x1001a6d64 // > LevelEditorLayer::saveLevel @ 0x100404d38 // > LevelEditorLayer::doAutoSave @ 0x10040b488 // > LevelEditorLayer::doAutoBackup @ 0x10040b87c // > EditorPauseLayer::onResume @ 0x10044435c // > EditorPauseLayer::onExitEditor @ 0x100444b34 // > EditorUI::undoLastAction @ 0x100470f68 // > EditorUI::redoLastAction @ 0x100470fcc // > EditorUI::onDeleteSelected @ 0x100471040 // > EditorUI::onPlaytest @ 0x100471428 // > EditorUI::onStopPlaytest @ 0x1004715c0 // > EditorUI::zoomIn @ 0x100471614 // > EditorUI::zoomOut @ 0x100471644 // > EditorUI::onPause @ 0x10047185c // > EditorUI::onSettings @ 0x100471bf4 // > EditorUI::editObject @ 0x100471d1c // > EditorUI::clickOnPosition @ 0x1004740f8 // > EditorUI::onDelete @ 0x1004743a0 // > EditorUI::onCreateButton @ 0x100476cb4 // > EditorUI::selectBuildTab @ 0x100476d60 // > EditorUI::playSoundForCreatedObject @ 0x1004779c0 // > EditorUI::triggerSwipeMode @ 0x10047d2a8 // > EditButtonBar::onLeft @ 0x1004a3770 // > EditButtonBar::onRight @ 0x1004a37b4 // > EditButtonBar::onDotClicked @ 0x1004a3838 // > sub_1004B14BC @ 0x1004b14e8 // > sub_1004B302C @ 0x1004b3058 // > EditorSFXManager::playAction @ 0x1004c7fc4 // // This function is hookable on this platform (idp: arm, 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 11:06:24 +0000 // __int64 __fastcall EditorSFXManager::playAction_1(__int64 result, int a2) { __int64 v2; // x19 __int64 v3; // x24 __int64 v4; // x0 double v5; // d8 __int64 *v6; // x0 double v7; // d0 double v8; // d9 double v9; // d0 int v10; // w0 int v11; // w20 int v12; // w8 unsigned int v13; // w1 char *v14; // x8 char *v15; // x9 int v16; // w10 int v17; // w10 unsigned __int64 v18; // x22 __int64 v19; // x23 unsigned int v20; // w0 unsigned int v21; // w8 int v22; // w9 int v23; // w10 __int64 v24; // x20 float v25; // s0 float v26; // s8 float v27; // s9 int v28; // w19 char v29; // w21 __int64 v30; // x0 int v31; // [xsp+0h] [xbp-50h] BYREF int *v32; // [xsp+8h] [xbp-48h] BYREF v31 = a2; if ( (*(_BYTE *)(result + 196) & 1) == 0 ) { v2 = result; LODWORD(v32) = a2; result = (__int64)sub_100019268((_QWORD *)result, (int *)&v32); if ( result ) { v3 = *(_QWORD *)(result + 24); if ( v3 ) { result = *(_QWORD *)v3; if ( *(_QWORD *)v3 ) { result = sub_1002E757C(result); if ( (_DWORD)result ) { v4 = cocos2d::CCDirector::sharedDirector(); v5 = (*(double (__fastcall **)(_QWORD))(**(_QWORD **)(v4 + 192) + 192LL))(*(_QWORD *)(v4 + 192)); v6 = sub_100019268((_QWORD *)(v2 + 40), &v31); v7 = v6 ? *((double *)v6 + 3) : 0.0; v8 = v5 - v7; LODWORD(v32) = v31; result = (__int64)sub_100019268((_QWORD *)(v2 + 80), (int *)&v32); v9 = result ? *(float *)(result + 20) : 0.0500000007; if ( v8 >= v9 ) { v10 = sub_1002E757C(*(_QWORD *)v3); v11 = v10; if ( *(_DWORD *)(v3 + 8) == 1 ) { v12 = *(_DWORD *)(v3 + 12); v13 = v12 % v10; *(_DWORD *)(v3 + 12) = (v12 + 1) % v10; } else { v14 = *(char **)(v3 + 40); v15 = *(char **)(v3 + 48); v16 = *(_DWORD *)(v3 + 72); if ( v14 == v15 || v16 != v10 ) { if ( v16 != v10 ) *(_DWORD *)(v3 + 68) = -1; *(_QWORD *)(v3 + 48) = v14; sub_100015DB8(v3 + 40, v10); LODWORD(v32) = 0; if ( v11 >= 1 ) { do { sub_10000D038(v3 + 40, (int *)&v32); LODWORD(v32) = (_DWORD)v32 + 1; } while ( (int)v32 < v11 ); } v18 = *(_QWORD *)(v3 + 40); v19 = *(_QWORD *)(v3 + 48); v20 = rand(); v21 = v20 + ((v20 / 0x7FFFFFFF) | ((v20 / 0x7FFFFFFF) << 31)); if ( v21 <= 1 ) v21 = 1; LODWORD(v32) = v21; sub_10007F97C(v18, v19, (__int64)&v32); if ( v11 <= 1 ) { v14 = *(char **)(v3 + 40); } else { v22 = *(_DWORD *)(v3 + 68); v14 = *(char **)(v3 + 40); if ( (v22 & 0x80000000) == 0 && *(_DWORD *)v14 == v22 ) { *(_DWORD *)v14 = *((_DWORD *)v14 + 1); *((_DWORD *)v14 + 1) = v22; } } v17 = 0; *(_DWORD *)(v3 + 64) = 0; *(_DWORD *)(v3 + 72) = v11; v15 = *(char **)(v3 + 48); } else { v17 = *(_DWORD *)(v3 + 64); } v13 = *(_DWORD *)&v14[4 * v17]; v23 = v17 + 1; *(_DWORD *)(v3 + 64) = v23; if ( v23 >= (int)((unsigned __int64)(v15 - v14) >> 2) ) { *(_DWORD *)(v3 + 68) = v13; *(_QWORD *)(v3 + 48) = v14; } } result = sub_1002E75A0(*(_QWORD *)v3, v13); if ( result ) { v24 = result; if ( *(int *)(result + 1864) >= 1 ) { v32 = &v31; result = (__int64)sub_10001A978(v2 + 40, &v31, (__int64)&unk_10076FAD5, &v32); *(double *)(result + 24) = v5; v25 = *(float *)(v2 + 192); if ( v25 > 0.0 ) { v26 = *(float *)(v24 + 1884); v27 = *(float *)(v24 + 1992); v28 = *(_DWORD *)(v24 + 1952); v29 = *(_BYTE *)(v24 + 1945); *(float *)(v24 + 1884) = v25 * v26; *(float *)(v24 + 1992) = v25 * v27; *(_DWORD *)(v24 + 1952) = -999999; *(_BYTE *)(v24 + 1945) = 1; v30 = GameManager::sharedState(); result = sub_1003AF1A8(v30, v24); *(float *)(v24 + 1884) = v26; *(float *)(v24 + 1992) = v27; *(_DWORD *)(v24 + 1952) = v28; *(_BYTE *)(v24 + 1945) = v29; } } } } } } } } } return result; }
GD Web Decomp Icon

GD Web Decomp

Raw Source