// // EditorSFXManager::collectAllSFXIDs from 0x14018c030 to 0x14018c12c (252 bytes) // // 3 xrefs: // > EditorSFXManager::downloadAllMissing @ 0x14018c164 // > EditorSoundsSettingsPopup::onDownloadAll @ 0x1403d4def // > @ 0x140918fa4 // // 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 11:27:41 +0000 // // Hidden C++ exception states: #wind=1 __int64 __fastcall EditorSFXManager::collectAllSFXIDs(__int64 a1, __int64 a2) { _QWORD *v3; // r15 _QWORD *i; // rbx cocos2d::CCArray **v5; // r14 unsigned int j; // esi struct cocos2d::CCObject *v7; // rax _DWORD *v8; // r8 int v9; // ecx _DWORD *v10; // rax _BYTE *v11; // rdx *(_QWORD *)a2 = 0; *(_QWORD *)(a2 + 8) = 0; *(_QWORD *)(a2 + 16) = 0; v3 = *(_QWORD **)(a1 + 8); for ( i = (_QWORD *)*v3; i != v3; i = (_QWORD *)*i ) { v5 = (cocos2d::CCArray **)i[3]; if ( v5 ) { if ( *v5 ) { for ( j = 0; j < cocos2d::CCArray::count(*v5); ++j ) { v7 = cocos2d::CCArray::objectAtIndex(*v5, j); if ( v7 ) { v8 = (_DWORD *)((char *)v7 + 1888); v9 = *((_DWORD *)v7 + 472); if ( v9 > 0 ) { v10 = *(_DWORD **)a2; v11 = *(_BYTE **)(a2 + 8); if ( *(_BYTE **)a2 == v11 ) { LABEL_10: if ( v11 == *(_BYTE **)(a2 + 16) ) { sub_140069B30((const void **)a2, v11, v8); } else { *(_DWORD *)v11 = v9; *(_QWORD *)(a2 + 8) += 4LL; } } else { while ( *v10 != v9 ) { if ( ++v10 == (_DWORD *)v11 ) goto LABEL_10; } } } } } } } } return a2; }