{"type": "func", "start": 7872060, "end": 7872316, "name": "EditorSoundBrowserLayer::onSaveActive", "pseudocode": "// \n// EditorSoundBrowserLayer::onSaveActive from 0x781e3c to 0x781f3c (256 bytes)\n// \n// 0 xrefs:\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 EditorSoundBrowserLayer::onSaveActive(EditorSoundBrowserLayer *this, cocos2d::CCObject *a2)\n{\n  FLAlertLayer *v3; // r10\n  int v4; // r0\n  int v5; // r3\n  int v7[3]; // [sp+1Ch] [bp-Ch] BYREF\n  int v8[3]; // [sp+28h] [bp+0h] BYREF\n  int v9[3]; // [sp+34h] [bp+Ch] BYREF\n  int v10[3]; // [sp+40h] [bp+18h] BYREF\n\n  v7[0] = 0;\n  v7[1] = 0;\n  *((_DWORD *)this + 200) = 1;\n  v7[2] = 0;\n  std::string::__init(v7, &unk_B6B226, 0);\n  memset(v8, 0, sizeof(v8));\n  std::string::__init(v8, \"Pack name...\", 0xCu);\n  memset(v9, 0, sizeof(v9));\n  std::string::__init(v9, \"Save Active as New Pack\", 0x17u);\n  memset(v10, 0, sizeof(v10));\n  std::string::__init(v10, \"Create\", 6u);\n  v3 = SetTextPopup::create((int)v7, (int)v8, COERCE_FLOAT(20), (int)v9, (int)v10, 0, 0.0, 0, 1, 0);\n  std::string::~string((int)v10);\n  std::string::~string((int)v9);\n  std::string::~string((int)v8);\n  std::string::~string((int)v7);\n  *((_DWORD *)v3 + 142) = (char *)this + 724;\n  v4 = (*(int (__fastcall **)(EditorSoundBrowserLayer *))(*(_DWORD *)this + 52))(this);\n  v5 = *(_DWORD *)v3;\n  *((_DWORD *)v3 + 116) = v4 + 1;\n  return (*(int (__fastcall **)(FLAlertLayer *))(v5 + 656))(v3);\n}", "assembly": "; \n; EditorSoundBrowserLayer::onSaveActive from 0x781e3c to 0x781f3c (256 bytes)\n; \n; 0 xrefs:\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, 0x781e3c\nSUB             SP, SP, #0x50                                          ; +0x4, 0x781e40\nLDR             R5, =(__stack_chk_guard_ptr - 0x781E4E)                ; +0x6, 0x781e42\nADD             R6, SP, #0x50+var_34                                   ; +0x8, 0x781e44\nLDR             R1, =(unk_B6B226 - 0x781E54)                           ; +0xa, 0x781e46\nMOVS            R4, #0                                                 ; +0xc, 0x781e48\nADD             R5, PC; __stack_chk_guard_ptr                          ; +0xe, 0x781e4a\nLDR             R5, [R5]; __stack_chk_guard                            ; +0x10, 0x781e4c\nMOV             R2, R4                                                 ; +0x12, 0x781e4e\nADD             R1, PC; unk_B6B226                                     ; +0x14, 0x781e50\nMOV             R9, R0                                                 ; +0x16, 0x781e52\nLDR             R3, [R5]                                               ; +0x18, 0x781e54\nADD             R7, SP, #0x28                                          ; +0x1a, 0x781e56\nSTR             R4, [SP,#0x50+var_34]                                  ; +0x1c, 0x781e58\nSTR             R4, [SP,#0x50+var_30]                                  ; +0x1e, 0x781e5a\nSTR             R3, [SP,#0x50+var_4]                                   ; +0x20, 0x781e5c\nMOVS            R3, #1                                                 ; +0x22, 0x781e5e\nSTR.W           R3, [R0,#0x320]                                        ; +0x24, 0x781e60\nMOV             R0, R6                                                 ; +0x28, 0x781e64\nSTR             R4, [SP,#0x50+var_2C]                                  ; +0x2a, 0x781e66\nBL              _ZNSt6__ndk112basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEE6__initEPKcj; std::string::__init(char const*,uint) ; +0x2c, 0x781e68\nLDR             R1, =(aPackName - 0x781E78); \"Pack name...\"            ; +0x30, 0x781e6c\nMOV             R0, R7                                                 ; +0x32, 0x781e6e\nMOVS            R2, #0xC                                               ; +0x34, 0x781e70\nSTR             R4, [SP,#0x50+var_28]                                  ; +0x36, 0x781e72\nADD             R1, PC; \"Pack name...\"                                 ; +0x38, 0x781e74\nSTR             R4, [SP,#0x50+var_24]                                  ; +0x3a, 0x781e76\nSTR             R4, [SP,#0x50+var_20]                                  ; +0x3c, 0x781e78\nBL              _ZNSt6__ndk112basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEE6__initEPKcj; std::string::__init(char const*,uint) ; +0x3e, 0x781e7a\nSTR             R4, [SP,#0x50+var_1C]                                  ; +0x42, 0x781e7e\nMOVS            R2, #0x17                                              ; +0x44, 0x781e80\nSTR             R4, [SP,#0x50+var_18]                                  ; +0x46, 0x781e82\nSTR             R4, [SP,#0x50+var_14]                                  ; +0x48, 0x781e84\nADD             R4, SP, #0x50+var_1C                                   ; +0x4a, 0x781e86\nLDR             R1, =(aSaveActiveAsNe - 0x781E90); \"Save Active as New Pack\" ; +0x4c, 0x781e88\nMOV             R0, R4                                                 ; +0x4e, 0x781e8a\nADD             R1, PC; \"Save Active as New Pack\"                      ; +0x50, 0x781e8c\nBL              _ZNSt6__ndk112basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEE6__initEPKcj; std::string::__init(char const*,uint) ; +0x52, 0x781e8e\nADD.W           R8, SP, #0x50+var_10                                   ; +0x56, 0x781e92\nLDR             R1, =(aCreate - 0x781EA2); \"Create\"                    ; +0x5a, 0x781e96\nMOVS            R2, #6                                                 ; +0x5c, 0x781e98\nMOVS            R3, #0                                                 ; +0x5e, 0x781e9a\nMOV             R0, R8                                                 ; +0x60, 0x781e9c\nADD             R1, PC; \"Create\"                                       ; +0x62, 0x781e9e\nSTR             R3, [SP,#0x50+var_10]                                  ; +0x64, 0x781ea0\nSTR             R3, [SP,#0x50+var_C]                                   ; +0x66, 0x781ea2\nSTR             R3, [SP,#0x50+var_8]                                   ; +0x68, 0x781ea4\nBL              _ZNSt6__ndk112basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEE6__initEPKcj; std::string::__init(char const*,uint) ; +0x6a, 0x781ea6\nMOVS            R3, #0                                                 ; +0x6e, 0x781eaa\nMOVS            R2, #0                                                 ; +0x70, 0x781eac\nSTR             R3, [SP,#0x50+var_4C]; char                            ; +0x72, 0x781eae\nMOV             R0, R6; int                                            ; +0x74, 0x781eb0\nSTR             R2, [SP,#0x50+var_48]; float                           ; +0x76, 0x781eb2\nMOV             R1, R7; int                                            ; +0x78, 0x781eb4\nMOVS            R2, #1                                                 ; +0x7a, 0x781eb6\nSTR             R3, [SP,#0x50+var_44]; char                            ; +0x7c, 0x781eb8\nSTR             R2, [SP,#0x50+var_40]; int                             ; +0x7e, 0x781eba\nMOVS            R2, #0x14; int                                         ; +0x80, 0x781ebc\nSTR             R3, [SP,#0x50+var_3C]; int                             ; +0x82, 0x781ebe\nMOV             R3, R4; int                                            ; +0x84, 0x781ec0\nSTR.W           R8, [SP,#0x50+var_50]; int                             ; +0x86, 0x781ec2\nBL              _ZN12SetTextPopup6createENSt6__ndk112basic_stringIcNS0_11char_traitsIcEENS0_9allocatorIcEEEES6_iS6_S6_bfbii; SetTextPopup::create(std::string,std::string,int,std::string,std::string,bool,float,bool,int,int) ; +0x8a, 0x781ec6\nMOV             R10, R0                                                ; +0x8e, 0x781eca\nMOV             R0, R8                                                 ; +0x90, 0x781ecc\nBL              _ZNSt6__ndk112basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEED2Ev; std::string::~string() ; +0x92, 0x781ece\nMOV             R0, R4                                                 ; +0x96, 0x781ed2\nBL              _ZNSt6__ndk112basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEED2Ev; std::string::~string() ; +0x98, 0x781ed4\nMOV             R0, R7                                                 ; +0x9c, 0x781ed8\nBL              _ZNSt6__ndk112basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEED2Ev; std::string::~string() ; +0x9e, 0x781eda\nMOV             R0, R6                                                 ; +0xa2, 0x781ede\nBL              _ZNSt6__ndk112basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEED2Ev; std::string::~string() ; +0xa4, 0x781ee0\nADD.W           R3, R9, #0x2D4                                         ; +0xa8, 0x781ee4\nSTR.W           R3, [R10,#0x238]                                       ; +0xac, 0x781ee8\nMOV             R0, R9                                                 ; +0xb0, 0x781eec\nLDR.W           R3, [R9]                                               ; +0xb2, 0x781eee\nLDR             R3, [R3,#0x34]                                         ; +0xb6, 0x781ef2\nBLX             R3                                                     ; +0xb8, 0x781ef4\nLDR.W           R3, [R10]                                              ; +0xba, 0x781ef6\nADDS            R0, #1                                                 ; +0xbe, 0x781efa\nSTR.W           R0, [R10,#0x1D0]                                       ; +0xc0, 0x781efc\nMOV             R0, R10                                                ; +0xc4, 0x781f00\nLDR.W           R3, [R3,#0x290]                                        ; +0xc6, 0x781f02\nBLX             R3                                                     ; +0xca, 0x781f06\nLDR             R2, [SP,#0x50+var_4]                                   ; +0xcc, 0x781f08\nLDR             R3, [R5]                                               ; +0xce, 0x781f0a\nCMP             R2, R3                                                 ; +0xd0, 0x781f0c\nBEQ             loc_781F36                                             ; +0xd2, 0x781f0e\nBLX             __stack_chk_fail                                       ; +0xd4, 0x781f10\nMOV             R0, R8                                                 ; +0xd8, 0x781f14\nBL              _ZNSt6__ndk112basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEED2Ev; std::string::~string() ; +0xda, 0x781f16\nB               loc_781F1C                                             ; +0xde, 0x781f1a\nMOV             R0, R4                                                 ; +0xe0, 0x781f1c\nBL              _ZNSt6__ndk112basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEED2Ev; std::string::~string() ; +0xe2, 0x781f1e\nB               loc_781F24                                             ; +0xe6, 0x781f22\nMOV             R0, R7                                                 ; +0xe8, 0x781f24\nBL              _ZNSt6__ndk112basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEED2Ev; std::string::~string() ; +0xea, 0x781f26\nB               loc_781F2C                                             ; +0xee, 0x781f2a\nMOV             R0, R6                                                 ; +0xf0, 0x781f2c\nBL              _ZNSt6__ndk112basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEED2Ev; std::string::~string() ; +0xf2, 0x781f2e\nBL              __cxa_end_cleanup                                      ; +0xf6, 0x781f32\nADD             SP, SP, #0x50 ; 'P'                                    ; +0xfa, 0x781f36\nPOP.W           {R4-R10,PC}                                            ; +0xfc, 0x781f38", "xrefs": [], "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"}