{"type": "func", "start": 7869592, "end": 7869772, "name": "EditorSFXManager::applyMyConfig", "pseudocode": "// \n// EditorSFXManager::applyMyConfig from 0x781498 to 0x78154c (180 bytes)\n// \n// 2 xrefs:\n// > EditorSoundConfigInfoLayer::applyConfig @ 0x785dd2\n// > EditorSoundConfigInfoLayer::FLAlert_Clicked @ 0x788a8a\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:29 +0000\n// \n\nint __fastcall EditorSFXManager::applyMyConfig(cocos2d::CCArray **a1, int a2, int a3, int *a4)\n{\n  int MyConfig; // r0\n  int v8; // r4\n  int v9; // r4\n  int v10; // r8\n  int v12; // [sp+4h] [bp-14h] BYREF\n  int v13[3]; // [sp+8h] [bp-10h] BYREF\n\n  MyConfig = EditorSFXManager::getMyConfig(a1, a2);\n  v8 = MyConfig;\n  if ( MyConfig )\n  {\n    if ( *(_BYTE *)(MyConfig + 384) )\n    {\n      v9 = MyConfig + 372;\n      std::string::basic_string(v13, MyConfig + 372);\n      v10 = (v13[0] & 1) != 0 ? v13[1] : (int)LOBYTE(v13[0]) >> 1;\n      std::string::~string((int)v13);\n      if ( v10 )\n      {\n        v12 = a3;\n        std::string::basic_string(v13, v9);\n        v8 = EditorSFXManager::importFromString((EditorSFXManager *)a1, (unsigned __int8 *)v13, &v12, a4);\n        std::string::~string((int)v13);\n        return v8;\n      }\n    }\n    if ( a4 )\n      std::string::assign(a4, \"List has no data.\");\n    return 0;\n  }\n  if ( !a4 )\n    return 0;\n  std::string::assign(a4, \"List not found.\");\n  return v8;\n}", "assembly": "; \n; EditorSFXManager::applyMyConfig from 0x781498 to 0x78154c (180 bytes)\n; \n; 2 xrefs:\n; > EditorSoundConfigInfoLayer::applyConfig @ 0x785dd2\n; > EditorSoundConfigInfoLayer::FLAlert_Clicked @ 0x788a8a\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:29 +0000\n; \nPUSH.W          {R4-R10,LR}                                            ; +0x0, 0x781498\nMOV             R7, R3                                                 ; +0x4, 0x78149c\nLDR             R6, =(__stack_chk_guard_ptr - 0x7814AA)                ; +0x6, 0x78149e\nSUB             SP, SP, #0x18                                          ; +0x8, 0x7814a0\nMOV             R9, R0                                                 ; +0xa, 0x7814a2\nMOV             R10, R2                                                ; +0xc, 0x7814a4\nADD             R6, PC; __stack_chk_guard_ptr                          ; +0xe, 0x7814a6\nLDR             R6, [R6]; __stack_chk_guard                            ; +0x10, 0x7814a8\nLDR             R3, [R6]                                               ; +0x12, 0x7814aa\nSTR             R3, [SP,#0x18+var_4]                                   ; +0x14, 0x7814ac\nBL              _ZN16EditorSFXManager11getMyConfigEi; EditorSFXManager::getMyConfig(int) ; +0x16, 0x7814ae\nMOV             R4, R0                                                 ; +0x1a, 0x7814b2\nCBNZ            R0, loc_7814C4                                         ; +0x1c, 0x7814b4\nCBZ             R7, loc_781506                                         ; +0x1e, 0x7814b6\nLDR             R1, =(aListNotFound_0 - 0x7814C0); \"List not found.\"   ; +0x20, 0x7814b8\nMOV             R0, R7; int                                            ; +0x22, 0x7814ba\nADD             R1, PC; \"List not found.\"                              ; +0x24, 0x7814bc\nBL              _ZNSt6__ndk112basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEE6assignEPKc; std::string::assign(char const*) ; +0x26, 0x7814be\nB               loc_78152E                                             ; +0x2a, 0x7814c2\nLDRB.W          R3, [R0,#0x180]                                        ; +0x2c, 0x7814c4\nCBNZ            R3, loc_7814D8                                         ; +0x30, 0x7814c8\nCBZ             R7, loc_781506                                         ; +0x32, 0x7814ca\nLDR             R1, =(aListHasNoData - 0x7814D4); \"List has no data.\"  ; +0x34, 0x7814cc\nMOV             R0, R7; int                                            ; +0x36, 0x7814ce\nADD             R1, PC; \"List has no data.\"                            ; +0x38, 0x7814d0\nBL              _ZNSt6__ndk112basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEE6assignEPKc; std::string::assign(char const*) ; +0x3a, 0x7814d2\nB               loc_781506                                             ; +0x3e, 0x7814d6\nADD.W           R4, R0, #0x174                                         ; +0x40, 0x7814d8\nADD             R5, SP, #0x18+var_10                                   ; +0x44, 0x7814dc\nMOV             R1, R4                                                 ; +0x46, 0x7814de\nMOV             R0, R5                                                 ; +0x48, 0x7814e0\nBL              _ZNSt6__ndk112basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEEC2ERKS5_; std::string::basic_string(std::string const&) ; +0x4a, 0x7814e2\nLDRB.W          R8, [SP,#0x18+var_10]                                  ; +0x4e, 0x7814e6\nMOV             R0, R5                                                 ; +0x52, 0x7814ea\nTST.W           R8, #1                                                 ; +0x54, 0x7814ec\nITE EQ                                                                 ; +0x58, 0x7814f0\nMOVEQ.W         R8, R8,ASR#1                                           ; +0x5a, 0x7814f2\nLDRNE.W         R8, [SP,#0x18+var_C]                                   ; +0x5e, 0x7814f6\nBL              _ZNSt6__ndk112basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEED2Ev; std::string::~string() ; +0x62, 0x7814fa\nCMP.W           R8, #0                                                 ; +0x66, 0x7814fe\nBNE             loc_78150A                                             ; +0x6a, 0x781502\nB               loc_7814CA                                             ; +0x6c, 0x781504\nMOVS            R4, #0                                                 ; +0x6e, 0x781506\nB               loc_78152E                                             ; +0x70, 0x781508\nADD.W           R8, SP, #0x18+var_s0                                   ; +0x72, 0x78150a\nMOV             R1, R4                                                 ; +0x76, 0x78150e\nMOV             R0, R5                                                 ; +0x78, 0x781510\nSTR.W           R10, [R8,#-0x14]!                                      ; +0x7a, 0x781512\nBL              _ZNSt6__ndk112basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEEC2ERKS5_; std::string::basic_string(std::string const&) ; +0x7e, 0x781516\nMOV             R0, R9; int                                            ; +0x82, 0x78151a\nMOV             R1, R5; int                                            ; +0x84, 0x78151c\nMOV             R2, R8; int                                            ; +0x86, 0x78151e\nMOV             R3, R7; int                                            ; +0x88, 0x781520\nBL              _ZN16EditorSFXManager16importFromStringERKNSt6__ndk112basic_stringIcNS0_11char_traitsIcEENS0_9allocatorIcEEEERK22EditorSFXImportOptionsPS6_; EditorSFXManager::importFromString(std::string const&,EditorSFXImportOptions const&,std::string*) ; +0x8a, 0x781522\nMOV             R4, R0                                                 ; +0x8e, 0x781526\nMOV             R0, R5                                                 ; +0x90, 0x781528\nBL              _ZNSt6__ndk112basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEED2Ev; std::string::~string() ; +0x92, 0x78152a\nLDR             R2, [SP,#0x18+var_4]                                   ; +0x96, 0x78152e\nMOV             R0, R4                                                 ; +0x98, 0x781530\nLDR             R3, [R6]                                               ; +0x9a, 0x781532\nCMP             R2, R3                                                 ; +0x9c, 0x781534\nBEQ             loc_781546                                             ; +0x9e, 0x781536\nBLX             __stack_chk_fail                                       ; +0xa0, 0x781538\nMOV             R0, R5                                                 ; +0xa4, 0x78153c\nBL              _ZNSt6__ndk112basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEED2Ev; std::string::~string() ; +0xa6, 0x78153e\nBL              __cxa_end_cleanup                                      ; +0xaa, 0x781542\nADD             SP, SP, #0x18                                          ; +0xae, 0x781546\nPOP.W           {R4-R10,PC}                                            ; +0xb0, 0x781548", "xrefs": ["EditorSoundConfigInfoLayer::applyConfig @ 0x785dd2", "EditorSoundConfigInfoLayer::FLAlert_Clicked @ 0x788a8a"], "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"}