{"type": "func", "start": 7853854, "end": 7854004, "name": "EditorSFXManager::firstSetup", "pseudocode": "// \n// EditorSFXManager::firstSetup from 0x77d71e to 0x77d7b4 (150 bytes)\n// \n// 1 xrefs:\n// > GameManager::firstLoad @ 0x4180be\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:24 +0000\n// \n\ncocos2d::CCArray *__fastcall EditorSFXManager::firstSetup(cocos2d::CCArray **this)\n{\n  bool v2; // zf\n  int v3; // r3\n  cocos2d::CCArray *v4; // r0\n  cocos2d::CCArray *result; // r0\n  cocos2d::CCArray *v6; // r5\n  cocos2d::CCArray *v7; // r3\n  cocos2d::CCArray *v8; // r5\n  cocos2d::CCArray *v9; // r3\n\n  EditorSFXManager::clearAll((EditorSFXManager *)this);\n  v3 = *(_BYTE *)(this + 21) & 1;\n  v2 = v3 == 0;\n  if ( (*(_BYTE *)(this + 21) & 1) != 0 )\n  {\n    v3 = 0;\n    *(_BYTE *)*(this + 23) = 0;\n  }\n  else\n  {\n    *((_BYTE *)this + 85) = v3;\n    *((_BYTE *)this + 84) = v3;\n  }\n  v4 = *(this + 18);\n  if ( !v2 )\n    *(this + 22) = (cocos2d::CCArray *)v3;\n  if ( v4 )\n    cocos2d::CCArray::removeAllObjects(v4);\n  result = *(this + 19);\n  if ( result )\n    result = (cocos2d::CCArray *)cocos2d::CCArray::removeAllObjects(result);\n  *(this + 20) = (cocos2d::CCArray *)(&dword_0 + 1);\n  if ( *(this + 8) )\n  {\n    for ( result = *(this + 7); result; result = v6 )\n    {\n      v6 = *(cocos2d::CCArray **)result;\n      operator delete(result);\n    }\n    v7 = *(this + 6);\n    *(this + 7) = nullptr;\n    while ( result != v7 )\n    {\n      *((_DWORD *)*(this + 5) + (_DWORD)result) = 0;\n      result = (cocos2d::CCArray *)((char *)result + 1);\n    }\n    *(this + 8) = nullptr;\n  }\n  if ( *(this + 13) )\n  {\n    for ( result = *(this + 12); result; result = v8 )\n    {\n      v8 = *(cocos2d::CCArray **)result;\n      operator delete(result);\n    }\n    v9 = *(this + 11);\n    *(this + 12) = nullptr;\n    while ( result != v9 )\n    {\n      *((_DWORD *)*(this + 10) + (_DWORD)result) = 0;\n      result = (cocos2d::CCArray *)((char *)result + 1);\n    }\n    *(this + 13) = nullptr;\n  }\n  *(this + 24) = (cocos2d::CCArray *)1065353216;\n  return result;\n}", "assembly": "; \n; EditorSFXManager::firstSetup from 0x77d71e to 0x77d7b4 (150 bytes)\n; \n; 1 xrefs:\n; > GameManager::firstLoad @ 0x4180be\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:24 +0000\n; \nPUSH            {R3-R5,LR}                                             ; +0x0, 0x77d71e\nMOV             R4, R0                                                 ; +0x2, 0x77d720\nBL              _ZN16EditorSFXManager8clearAllEv; EditorSFXManager::clearAll(void) ; +0x4, 0x77d722\nLDRB.W          R3, [R4,#0x54]                                         ; +0x8, 0x77d726\nANDS.W          R3, R3, #1                                             ; +0xc, 0x77d72a\nITTEE EQ                                                               ; +0x10, 0x77d72e\nSTRBEQ.W        R3, [R4,#0x55]                                         ; +0x12, 0x77d730\nSTRBEQ.W        R3, [R4,#0x54]                                         ; +0x16, 0x77d734\nLDRNE           R2, [R4,#0x5C]                                         ; +0x1a, 0x77d738\nMOVNE           R3, #0                                                 ; +0x1c, 0x77d73a\nIT NE                                                                  ; +0x1e, 0x77d73c\nSTRBNE          R3, [R2]                                               ; +0x20, 0x77d73e\nLDR             R0, [R4,#0x48]; this                                   ; +0x22, 0x77d740\nIT NE                                                                  ; +0x24, 0x77d742\nSTRNE           R3, [R4,#0x58]                                         ; +0x26, 0x77d744\nCBZ             R0, loc_77D74C                                         ; +0x28, 0x77d746\nBL              _ZN7cocos2d7CCArray16removeAllObjectsEv; cocos2d::CCArray::removeAllObjects(void) ; +0x2a, 0x77d748\nLDR             R0, [R4,#0x4C]; this                                   ; +0x2e, 0x77d74c\nCBZ             R0, loc_77D754                                         ; +0x30, 0x77d74e\nBL              _ZN7cocos2d7CCArray16removeAllObjectsEv; cocos2d::CCArray::removeAllObjects(void) ; +0x32, 0x77d750\nMOVS            R3, #1                                                 ; +0x36, 0x77d754\nSTR             R3, [R4,#0x50]                                         ; +0x38, 0x77d756\nLDR             R3, [R4,#0x20]                                         ; +0x3a, 0x77d758\nCBZ             R3, loc_77D782                                         ; +0x3c, 0x77d75a\nLDR             R0, [R4,#0x1C]; void *                                 ; +0x3e, 0x77d75c\nCBZ             R0, loc_77D76A                                         ; +0x40, 0x77d75e\nLDR             R5, [R0]                                               ; +0x42, 0x77d760\nBL              _ZdlPv; operator delete(void *)                        ; +0x44, 0x77d762\nMOV             R0, R5                                                 ; +0x48, 0x77d766\nB               loc_77D75E                                             ; +0x4a, 0x77d768\nLDR             R3, [R4,#0x18]                                         ; +0x4c, 0x77d76a\nMOV             R2, R0                                                 ; +0x4e, 0x77d76c\nSTR             R0, [R4,#0x1C]                                         ; +0x50, 0x77d76e\nCMP             R0, R3                                                 ; +0x52, 0x77d770\nBEQ             loc_77D77E                                             ; +0x54, 0x77d772\nLDR             R1, [R4,#0x14]                                         ; +0x56, 0x77d774\nSTR.W           R2, [R1,R0,LSL#2]                                      ; +0x58, 0x77d776\nADDS            R0, #1                                                 ; +0x5c, 0x77d77a\nB               loc_77D770                                             ; +0x5e, 0x77d77c\nMOVS            R3, #0                                                 ; +0x60, 0x77d77e\nSTR             R3, [R4,#0x20]                                         ; +0x62, 0x77d780\nLDR             R3, [R4,#0x34]                                         ; +0x64, 0x77d782\nCBZ             R3, loc_77D7AC                                         ; +0x66, 0x77d784\nLDR             R0, [R4,#0x30]; void *                                 ; +0x68, 0x77d786\nCBZ             R0, loc_77D794                                         ; +0x6a, 0x77d788\nLDR             R5, [R0]                                               ; +0x6c, 0x77d78a\nBL              _ZdlPv; operator delete(void *)                        ; +0x6e, 0x77d78c\nMOV             R0, R5                                                 ; +0x72, 0x77d790\nB               loc_77D788                                             ; +0x74, 0x77d792\nLDR             R3, [R4,#0x2C]                                         ; +0x76, 0x77d794\nMOV             R2, R0                                                 ; +0x78, 0x77d796\nSTR             R0, [R4,#0x30]                                         ; +0x7a, 0x77d798\nCMP             R0, R3                                                 ; +0x7c, 0x77d79a\nBEQ             loc_77D7A8                                             ; +0x7e, 0x77d79c\nLDR             R1, [R4,#0x28]                                         ; +0x80, 0x77d79e\nSTR.W           R2, [R1,R0,LSL#2]                                      ; +0x82, 0x77d7a0\nADDS            R0, #1                                                 ; +0x86, 0x77d7a4\nB               loc_77D79A                                             ; +0x88, 0x77d7a6\nMOVS            R3, #0                                                 ; +0x8a, 0x77d7a8\nSTR             R3, [R4,#0x34]                                         ; +0x8c, 0x77d7aa\nMOV.W           R3, #0x3F800000                                        ; +0x8e, 0x77d7ac\nSTR             R3, [R4,#0x60]                                         ; +0x92, 0x77d7b0\nPOP             {R3-R5,PC}                                             ; +0x94, 0x77d7b2", "xrefs": ["GameManager::firstLoad @ 0x4180be"], "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"}