{"type": "func", "start": 7854412, "end": 7854542, "name": "EditorSFXManager::collectAllSFXIDs", "pseudocode": "// \n// EditorSFXManager::collectAllSFXIDs from 0x77d94c to 0x77d9ce (130 bytes)\n// \n// 2 xrefs:\n// > EditorSFXManager::downloadAllMissing @ 0x77d9e8\n// > EditorSoundsSettingsPopup::onDownloadAll @ 0x78bc3c\n// \n// This function is hookable on this platform (idp: arm, 32 bit: True, 64 bit: False!\n// \n// Using BromaIDA 8.3.0 @ https://github.com/Stazzical/BromaIDA\n// Using bindings at commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings\n// Generated at Fri, 27 Nov 2026 11:59:25 +0000\n// \n\nEditorSFXManager *__fastcall EditorSFXManager::collectAllSFXIDs(EditorSFXManager *this, int a2)\n{\n  _DWORD *i; // r7\n  cocos2d::CCArray **v4; // r6\n  unsigned int j; // r5\n  int v6; // r0\n  int v7; // r2\n  int *v8; // r3\n  int v9; // lr\n\n  *(_DWORD *)this = 0;\n  *((_DWORD *)this + 1) = 0;\n  *((_DWORD *)this + 2) = 0;\n  for ( i = *(_DWORD **)(a2 + 8); i; i = (_DWORD *)*i )\n  {\n    v4 = (cocos2d::CCArray **)i[3];\n    if ( v4 && *v4 )\n    {\n      for ( j = 0; j < cocos2d::CCArray::count(*v4); ++j )\n      {\n        v6 = cocos2d::CCArray::objectAtIndex(*v4, j);\n        if ( v6 )\n        {\n          v7 = *(_DWORD *)(v6 + 1660);\n          if ( v7 > 0 )\n          {\n            v8 = *(int **)this;\n            while ( v8 != *((int **)this + 1) )\n            {\n              v9 = *v8++;\n              if ( v9 == v7 )\n                goto LABEL_17;\n            }\n            if ( v8 == *((int **)this + 2) )\n            {\n              std::vector<int>::__push_back_slow_path<int const&>((int)this, (_DWORD *)(v6 + 1660));\n            }\n            else\n            {\n              if ( v8 )\n                *v8 = v7;\n              *((_DWORD *)this + 1) += 4;\n            }\n          }\n        }\nLABEL_17:\n        ;\n      }\n    }\n  }\n  return this;\n}", "assembly": "; \n; EditorSFXManager::collectAllSFXIDs from 0x77d94c to 0x77d9ce (130 bytes)\n; \n; 2 xrefs:\n; > EditorSFXManager::downloadAllMissing @ 0x77d9e8\n; > EditorSoundsSettingsPopup::onDownloadAll @ 0x78bc3c\n; \n; This function is hookable on this platform (idp: arm, 32 bit: True, 64 bit: False!\n; \n; Using BromaIDA 8.3.0 @ https://github.com/Stazzical/BromaIDA\n; Using bindings at commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings\n; Generated at Fri, 27 Nov 2026 11:59:25 +0000\n; \nPUSH            {R3-R7,LR}                                             ; +0x0, 0x77d94c\nMOVS            R3, #0                                                 ; +0x2, 0x77d94e\nSTR             R3, [R0]                                               ; +0x4, 0x77d950\nMOV             R4, R0                                                 ; +0x6, 0x77d952\nSTR             R3, [R0,#4]                                            ; +0x8, 0x77d954\nSTR             R3, [R0,#8]                                            ; +0xa, 0x77d956\nLDR             R7, [R1,#8]                                            ; +0xc, 0x77d958\nCMP             R7, #0                                                 ; +0xe, 0x77d95a\nBEQ             loc_77D9CA                                             ; +0x10, 0x77d95c\nLDR             R6, [R7,#0xC]                                          ; +0x12, 0x77d95e\nCBZ             R6, loc_77D9B0                                         ; +0x14, 0x77d960\nLDR             R3, [R6]                                               ; +0x16, 0x77d962\nCBZ             R3, loc_77D9B0                                         ; +0x18, 0x77d964\nMOVS            R5, #0                                                 ; +0x1a, 0x77d966\nLDR             R0, [R6]; this                                         ; +0x1c, 0x77d968\nBL              _ZNK7cocos2d7CCArray5countEv; cocos2d::CCArray::count(void) ; +0x1e, 0x77d96a\nCMP             R5, R0                                                 ; +0x22, 0x77d96e\nBCS             loc_77D9B0                                             ; +0x24, 0x77d970\nLDR             R0, [R6]; this                                         ; +0x26, 0x77d972\nMOV             R1, R5; unsigned int                                   ; +0x28, 0x77d974\nBL              _ZN7cocos2d7CCArray13objectAtIndexEj; cocos2d::CCArray::objectAtIndex(uint) ; +0x2a, 0x77d976\nMOV             R1, R0                                                 ; +0x2e, 0x77d97a\nCBZ             R0, loc_77D9AC                                         ; +0x30, 0x77d97c\nLDR.W           R2, [R0,#0x67C]                                        ; +0x32, 0x77d97e\nCMP             R2, #0                                                 ; +0x36, 0x77d982\nBLE             loc_77D9AC                                             ; +0x38, 0x77d984\nLDR             R0, [R4,#4]                                            ; +0x3a, 0x77d986\nLDR             R3, [R4]                                               ; +0x3c, 0x77d988\nCMP             R3, R0                                                 ; +0x3e, 0x77d98a\nMOV             LR, R3                                                 ; +0x40, 0x77d98c\nBEQ             loc_77D99C                                             ; +0x42, 0x77d98e\nLDR.W           LR, [LR]                                               ; +0x44, 0x77d990\nADDS            R3, #4                                                 ; +0x48, 0x77d994\nCMP             LR, R2                                                 ; +0x4a, 0x77d996\nBNE             loc_77D98A                                             ; +0x4c, 0x77d998\nB               loc_77D9AC                                             ; +0x4e, 0x77d99a\nLDR             R0, [R4,#8]                                            ; +0x50, 0x77d99c\nCMP             R3, R0                                                 ; +0x52, 0x77d99e\nBEQ             loc_77D9BE                                             ; +0x54, 0x77d9a0\nCBZ             R3, loc_77D9A6                                         ; +0x56, 0x77d9a2\nSTR             R2, [R3]                                               ; +0x58, 0x77d9a4\nLDR             R3, [R4,#4]                                            ; +0x5a, 0x77d9a6\nADDS            R3, #4                                                 ; +0x5c, 0x77d9a8\nSTR             R3, [R4,#4]                                            ; +0x5e, 0x77d9aa\nADDS            R5, #1                                                 ; +0x60, 0x77d9ac\nB               loc_77D968                                             ; +0x62, 0x77d9ae\nLDR             R7, [R7]                                               ; +0x64, 0x77d9b0\nB               loc_77D95A                                             ; +0x66, 0x77d9b2\nMOV             R0, R4                                                 ; +0x68, 0x77d9b4\nBL              _ZNSt6__ndk113__vector_baseIiNS_9allocatorIiEEED2Ev; std::__vector_base<int>::~__vector_base() ; +0x6a, 0x77d9b6\nBL              __cxa_end_cleanup                                      ; +0x6e, 0x77d9ba\nMOV             R0, R4                                                 ; +0x72, 0x77d9be\nADDW            R1, R1, #0x67C                                         ; +0x74, 0x77d9c0\nBL              _ZNSt6__ndk16vectorIiNS_9allocatorIiEEE21__push_back_slow_pathIRKiEEvOT_; std::vector<int>::__push_back_slow_path<int const&>(int const&) ; +0x78, 0x77d9c4\nB               loc_77D9AC                                             ; +0x7c, 0x77d9c8\nMOV             R0, R4                                                 ; +0x7e, 0x77d9ca\nPOP             {R3-R7,PC}                                             ; +0x80, 0x77d9cc", "xrefs": ["EditorSFXManager::downloadAllMissing @ 0x77d9e8", "EditorSoundsSettingsPopup::onDownloadAll @ 0x78bc3c"], "is_objc": false, "is_32_bit": true, "is_64_bit": false, "idp_name": "arm", "bida_info": "8.3.0 @ https://github.com/Stazzical/BromaIDA", "bindings_info": "commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings"}