{"type": "func", "start": 7869352, "end": 7869528, "name": "EditorSFXManager::applyConfigDirect", "pseudocode": "// \n// EditorSFXManager::applyConfigDirect from 0x7813a8 to 0x781458 (176 bytes)\n// \n// 2 xrefs:\n// > EditorSFXManager::applyFavoriteConfig @ 0x78148c\n// > EditorSoundConfigInfoLayer::applyConfig @ 0x785eec\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::applyConfigDirect(EditorSFXManager *a1, int a2, int a3, int *a4)\n{\n  int v7; // r4\n  int v8; // r4\n  int v9; // r8\n  int v11; // [sp+4h] [bp-14h] BYREF\n  int v12[3]; // [sp+8h] [bp-10h] BYREF\n\n  v7 = a2;\n  if ( a2 )\n  {\n    if ( *(_BYTE *)(a2 + 384) )\n    {\n      v8 = a2 + 372;\n      std::string::basic_string(v12, a2 + 372);\n      v9 = (v12[0] & 1) != 0 ? v12[1] : (int)LOBYTE(v12[0]) >> 1;\n      std::string::~string((int)v12);\n      if ( v9 )\n      {\n        v11 = a3;\n        std::string::basic_string(v12, v8);\n        v7 = EditorSFXManager::importFromString(a1, (unsigned __int8 *)v12, &v11, a4);\n        std::string::~string((int)v12);\n        return v7;\n      }\n    }\n    if ( a4 )\n      std::string::assign(a4, \"Config has no data.\");\n    return 0;\n  }\n  if ( !a4 )\n    return 0;\n  std::string::assign(a4, \"No config to apply.\");\n  return v7;\n}", "assembly": "; \n; EditorSFXManager::applyConfigDirect from 0x7813a8 to 0x781458 (176 bytes)\n; \n; 2 xrefs:\n; > EditorSFXManager::applyFavoriteConfig @ 0x78148c\n; > EditorSoundConfigInfoLayer::applyConfig @ 0x785eec\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, 0x7813a8\nMOV             R7, R3                                                 ; +0x4, 0x7813ac\nLDR             R6, =(__stack_chk_guard_ptr - 0x7813BA)                ; +0x6, 0x7813ae\nSUB             SP, SP, #0x18                                          ; +0x8, 0x7813b0\nMOV             R9, R0                                                 ; +0xa, 0x7813b2\nMOV             R10, R2                                                ; +0xc, 0x7813b4\nADD             R6, PC; __stack_chk_guard_ptr                          ; +0xe, 0x7813b6\nLDR             R6, [R6]; __stack_chk_guard                            ; +0x10, 0x7813b8\nMOV             R4, R1                                                 ; +0x12, 0x7813ba\nLDR             R3, [R6]                                               ; +0x14, 0x7813bc\nSTR             R3, [SP,#0x18+var_4]                                   ; +0x16, 0x7813be\nCBNZ            R1, loc_7813D0                                         ; +0x18, 0x7813c0\nCBZ             R7, loc_781412                                         ; +0x1a, 0x7813c2\nLDR             R1, =(aNoConfigToAppl - 0x7813CC); \"No config to apply.\" ; +0x1c, 0x7813c4\nMOV             R0, R7; int                                            ; +0x1e, 0x7813c6\nADD             R1, PC; \"No config to apply.\"                          ; +0x20, 0x7813c8\nBL              _ZNSt6__ndk112basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEE6assignEPKc; std::string::assign(char const*) ; +0x22, 0x7813ca\nB               loc_78143A                                             ; +0x26, 0x7813ce\nLDRB.W          R3, [R1,#0x180]                                        ; +0x28, 0x7813d0\nCBNZ            R3, loc_7813E4                                         ; +0x2c, 0x7813d4\nCBZ             R7, loc_781412                                         ; +0x2e, 0x7813d6\nLDR             R1, =(aConfigHasNoDat - 0x7813E0); \"Config has no data.\" ; +0x30, 0x7813d8\nMOV             R0, R7; int                                            ; +0x32, 0x7813da\nADD             R1, PC; \"Config has no data.\"                          ; +0x34, 0x7813dc\nBL              _ZNSt6__ndk112basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEE6assignEPKc; std::string::assign(char const*) ; +0x36, 0x7813de\nB               loc_781412                                             ; +0x3a, 0x7813e2\nADD             R5, SP, #0x18+var_10                                   ; +0x3c, 0x7813e4\nADD.W           R4, R1, #0x174                                         ; +0x3e, 0x7813e6\nMOV             R0, R5                                                 ; +0x42, 0x7813ea\nMOV             R1, R4                                                 ; +0x44, 0x7813ec\nBL              _ZNSt6__ndk112basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEEC2ERKS5_; std::string::basic_string(std::string const&) ; +0x46, 0x7813ee\nLDRB.W          R8, [SP,#0x18+var_10]                                  ; +0x4a, 0x7813f2\nMOV             R0, R5                                                 ; +0x4e, 0x7813f6\nTST.W           R8, #1                                                 ; +0x50, 0x7813f8\nITE EQ                                                                 ; +0x54, 0x7813fc\nMOVEQ.W         R8, R8,ASR#1                                           ; +0x56, 0x7813fe\nLDRNE.W         R8, [SP,#0x18+var_C]                                   ; +0x5a, 0x781402\nBL              _ZNSt6__ndk112basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEED2Ev; std::string::~string() ; +0x5e, 0x781406\nCMP.W           R8, #0                                                 ; +0x62, 0x78140a\nBNE             loc_781416                                             ; +0x66, 0x78140e\nB               loc_7813D6                                             ; +0x68, 0x781410\nMOVS            R4, #0                                                 ; +0x6a, 0x781412\nB               loc_78143A                                             ; +0x6c, 0x781414\nADD.W           R8, SP, #0x18+var_s0                                   ; +0x6e, 0x781416\nMOV             R1, R4                                                 ; +0x72, 0x78141a\nMOV             R0, R5                                                 ; +0x74, 0x78141c\nSTR.W           R10, [R8,#-0x14]!                                      ; +0x76, 0x78141e\nBL              _ZNSt6__ndk112basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEEC2ERKS5_; std::string::basic_string(std::string const&) ; +0x7a, 0x781422\nMOV             R0, R9; int                                            ; +0x7e, 0x781426\nMOV             R1, R5; int                                            ; +0x80, 0x781428\nMOV             R2, R8; int                                            ; +0x82, 0x78142a\nMOV             R3, R7; int                                            ; +0x84, 0x78142c\nBL              _ZN16EditorSFXManager16importFromStringERKNSt6__ndk112basic_stringIcNS0_11char_traitsIcEENS0_9allocatorIcEEEERK22EditorSFXImportOptionsPS6_; EditorSFXManager::importFromString(std::string const&,EditorSFXImportOptions const&,std::string*) ; +0x86, 0x78142e\nMOV             R4, R0                                                 ; +0x8a, 0x781432\nMOV             R0, R5                                                 ; +0x8c, 0x781434\nBL              _ZNSt6__ndk112basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEED2Ev; std::string::~string() ; +0x8e, 0x781436\nLDR             R2, [SP,#0x18+var_4]                                   ; +0x92, 0x78143a\nMOV             R0, R4                                                 ; +0x94, 0x78143c\nLDR             R3, [R6]                                               ; +0x96, 0x78143e\nCMP             R2, R3                                                 ; +0x98, 0x781440\nBEQ             loc_781452                                             ; +0x9a, 0x781442\nBLX             __stack_chk_fail                                       ; +0x9c, 0x781444\nMOV             R0, R5                                                 ; +0xa0, 0x781448\nBL              _ZNSt6__ndk112basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEED2Ev; std::string::~string() ; +0xa2, 0x78144a\nBL              __cxa_end_cleanup                                      ; +0xa6, 0x78144e\nADD             SP, SP, #0x18                                          ; +0xaa, 0x781452\nPOP.W           {R4-R10,PC}                                            ; +0xac, 0x781454", "xrefs": ["EditorSFXManager::applyFavoriteConfig @ 0x78148c", "EditorSoundConfigInfoLayer::applyConfig @ 0x785eec"], "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"}