{"type": "func", "start": 7910680, "end": 7910972, "name": "EditorSoundsLayer::~EditorSoundsLayer", "pseudocode": "// \n// EditorSoundsLayer::~EditorSoundsLayer from 0x78b518 to 0x78b63c (292 bytes)\n// \n// 2 xrefs:\n// > `non-virtual thunk to'EditorSoundsLayer::~EditorSoundsLayer @ 0x78b654\n// > EditorSoundsLayer::~EditorSoundsLayer @ 0x78b65c\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:36 +0000\n// \n\n// Alternative name is '_ZN17EditorSoundsLayerD1Ev'\nvoid __fastcall EditorSoundsLayer::~EditorSoundsLayer(EditorSoundsLayer *this)\n{\n  int v1; // r7\n  char *v3; // r1\n  size_t v4; // r2\n  _DWORD *v5; // r0\n  int v6; // r1\n  int v7; // r2\n  _DWORD v8[3]; // [sp+0h] [bp-2Ch] BYREF\n  int v9[3]; // [sp+Ch] [bp-20h] BYREF\n  unsigned __int8 v10; // [sp+18h] [bp-14h] BYREF\n  char v11; // [sp+19h] [bp-13h] BYREF\n  size_t v12; // [sp+1Ch] [bp-10h]\n  char *v13; // [sp+20h] [bp-Ch]\n\n  v1 = *((_DWORD *)this + 196);\n  *(_DWORD *)this = &off_CF9F48;\n  *((_DWORD *)this + 66) = &off_CFA244;\n  *((_DWORD *)this + 67) = &off_CFA27C;\n  *((_DWORD *)this + 68) = &off_CFA288;\n  *((_DWORD *)this + 69) = &off_CFA298;\n  *((_DWORD *)this + 70) = &off_CFA2AC;\n  *((_DWORD *)this + 79) = &off_CFA2C4;\n  *((_DWORD *)this + 83) = &off_CFA304;\n  *((_DWORD *)this + 110) = &off_CFA314;\n  *((_DWORD *)this + 130) = &off_CFA338;\n  *((_DWORD *)this + 131) = &off_CFA344;\n  if ( v1 && *((int *)this + 184) >= 0 )\n  {\n    memset(v9, 0, sizeof(v9));\n    std::string::__init(v9, \"editorsounds.tab.\", 0x11u);\n    std::to_string((int)&v10);\n    if ( (v10 & 1) != 0 )\n    {\n      v3 = v13;\n      v4 = v12;\n    }\n    else\n    {\n      v4 = (int)v10 >> 1;\n      v3 = &v11;\n    }\n    v5 = std::string::append(v9, v3, v4);\n    v6 = v5[1];\n    v7 = v5[2];\n    v8[0] = *v5;\n    v8[1] = v6;\n    v8[2] = v7;\n    *v5 = 0;\n    v5[1] = 0;\n    v5[2] = 0;\n    ScrollableContentLayer::persistScrollOffset(v1, (unsigned __int8 *)v8);\n    std::string::~string((int)v8);\n    std::string::~string((int)&v10);\n    std::string::~string((int)v9);\n  }\n  EditorSoundsLayer::s_lastActiveTab = *((_DWORD *)this + 184);\n  std::string::operator=((unsigned __int8 *)&EditorSoundsLayer::s_lastSearchText, (unsigned __int8 *)this + 768);\n  std::string::~string((int)this + 768);\n  TabbedPopupLayer::~TabbedPopupLayer(this);\n}", "assembly": "; \n; EditorSoundsLayer::~EditorSoundsLayer from 0x78b518 to 0x78b63c (292 bytes)\n; \n; 2 xrefs:\n; > `non-virtual thunk to'EditorSoundsLayer::~EditorSoundsLayer @ 0x78b654\n; > EditorSoundsLayer::~EditorSoundsLayer @ 0x78b65c\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:36 +0000\n; \nLDR             R1, =(__stack_chk_guard_ptr - 0x78B522)                ; +0x0, 0x78b518\nPUSH.W          {R4-R9,LR}                                             ; +0x2, 0x78b51a\nADD             R1, PC; __stack_chk_guard_ptr                          ; +0x6, 0x78b51e\nLDR             R1, [R1]; __stack_chk_guard                            ; +0x8, 0x78b520\nSUB             SP, SP, #0x2C                                          ; +0xa, 0x78b522\nLDR.W           R7, [R0,#0x310]                                        ; +0xc, 0x78b524\nLDR             R3, [R1]                                               ; +0x10, 0x78b528\nMOV             R4, R0                                                 ; +0x12, 0x78b52a\nMOV             R6, R1                                                 ; +0x14, 0x78b52c\nSTR             R3, [SP,#0x2C+var_8]                                   ; +0x16, 0x78b52e\nLDR             R3, =(_ZTV17EditorSoundsLayer_ptr - 0x78B536)          ; +0x18, 0x78b530\nADD             R3, PC; _ZTV17EditorSoundsLayer_ptr                    ; +0x1a, 0x78b532\nLDR             R3, [R3]; `vtable for'EditorSoundsLayer ...            ; +0x1c, 0x78b534\nADD.W           R2, R3, #8                                             ; +0x1e, 0x78b536\nSTR             R2, [R0]                                               ; +0x22, 0x78b53a\nADD.W           R2, R3, #0x304                                         ; +0x24, 0x78b53c\nSTR.W           R2, [R0,#0x108]                                        ; +0x28, 0x78b540\nADD.W           R2, R3, #0x33C                                         ; +0x2c, 0x78b544\nSTR.W           R2, [R0,#0x10C]                                        ; +0x30, 0x78b548\nADD.W           R2, R3, #0x348                                         ; +0x34, 0x78b54c\nSTR.W           R2, [R0,#0x110]                                        ; +0x38, 0x78b550\nADD.W           R2, R3, #0x358                                         ; +0x3c, 0x78b554\nSTR.W           R2, [R0,#0x114]                                        ; +0x40, 0x78b558\nADD.W           R2, R3, #0x36C                                         ; +0x44, 0x78b55c\nSTR.W           R2, [R0,#0x118]                                        ; +0x48, 0x78b560\nADD.W           R2, R3, #0x384                                         ; +0x4c, 0x78b564\nSTR.W           R2, [R0,#0x13C]                                        ; +0x50, 0x78b568\nADD.W           R2, R3, #0x3C4                                         ; +0x54, 0x78b56c\nSTR.W           R2, [R0,#0x14C]                                        ; +0x58, 0x78b570\nADD.W           R2, R3, #0x3D4                                         ; +0x5c, 0x78b574\nSTR.W           R2, [R0,#0x1B8]                                        ; +0x60, 0x78b578\nADD.W           R2, R3, #0x3F8                                         ; +0x64, 0x78b57c\nADDW            R3, R3, #0x404                                         ; +0x68, 0x78b580\nSTR.W           R2, [R0,#0x208]                                        ; +0x6c, 0x78b584\nSTR.W           R3, [R0,#0x20C]                                        ; +0x70, 0x78b588\nCBZ             R7, loc_78B5F8                                         ; +0x74, 0x78b58c\nLDR.W           R3, [R0,#0x2E0]                                        ; +0x76, 0x78b58e\nCMP             R3, #0                                                 ; +0x7a, 0x78b592\nBLT             loc_78B5F8                                             ; +0x7c, 0x78b594\nADD.W           R9, SP, #0x2C+var_20                                   ; +0x7e, 0x78b596\nLDR             R1, =(aEditorsoundsTa - 0x78B5A8); \"editorsounds.tab.\" ; +0x82, 0x78b59a\nADD.W           R8, SP, #0x2C+var_14                                   ; +0x84, 0x78b59c\nMOVS            R2, #0x11                                              ; +0x88, 0x78b5a0\nMOV             R0, R9                                                 ; +0x8a, 0x78b5a2\nADD             R1, PC; \"editorsounds.tab.\"                            ; +0x8c, 0x78b5a4\nMOVS            R3, #0                                                 ; +0x8e, 0x78b5a6\nSTR             R3, [SP,#0x2C+var_20]                                  ; +0x90, 0x78b5a8\nSTR             R3, [SP,#0x2C+var_1C]                                  ; +0x92, 0x78b5aa\nSTR             R3, [SP,#0x2C+var_18]                                  ; +0x94, 0x78b5ac\nBL              _ZNSt6__ndk112basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEE6__initEPKcj; std::string::__init(char const*,uint) ; +0x96, 0x78b5ae\nMOV             R0, R8; int                                            ; +0x9a, 0x78b5b2\nLDR.W           R1, [R4,#0x2E0]                                        ; +0x9c, 0x78b5b4\nBL              _ZNSt6__ndk19to_stringEi; std::to_string(int)          ; +0xa0, 0x78b5b8\nLDRB.W          R2, [SP,#0x2C+var_14]                                  ; +0xa4, 0x78b5bc\nLSLS            R3, R2, #0x1F                                          ; +0xa8, 0x78b5c0\nBPL             loc_78B62E                                             ; +0xaa, 0x78b5c2\nLDR             R1, [SP,#0x2C+var_C]                                   ; +0xac, 0x78b5c4\nLDR             R2, [SP,#0x2C+var_10]                                  ; +0xae, 0x78b5c6\nMOV             R0, R9                                                 ; +0xb0, 0x78b5c8\nBL              _ZNSt6__ndk112basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEE6appendEPKcj; std::string::append(char const*,uint) ; +0xb2, 0x78b5ca\nMOV             R3, R0                                                 ; +0xb6, 0x78b5ce\nLDM             R0, {R0-R2}                                            ; +0xb8, 0x78b5d0\nSTMEA.W         SP, {R0-R2}                                            ; +0xba, 0x78b5d2\nMOVS            R2, #0                                                 ; +0xbe, 0x78b5d6\nMOV             R1, SP                                                 ; +0xc0, 0x78b5d8\nSTR             R2, [R3]                                               ; +0xc2, 0x78b5da\nSTR             R2, [R3,#4]                                            ; +0xc4, 0x78b5dc\nMOV             R0, R7                                                 ; +0xc6, 0x78b5de\nSTR             R2, [R3,#8]                                            ; +0xc8, 0x78b5e0\nBL              _ZN22ScrollableContentLayer19persistScrollOffsetERKNSt6__ndk112basic_stringIcNS0_11char_traitsIcEENS0_9allocatorIcEEEE; ScrollableContentLayer::persistScrollOffset(std::string const&) ; +0xca, 0x78b5e2\nMOV             R0, SP                                                 ; +0xce, 0x78b5e6\nBL              _ZNSt6__ndk112basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEED2Ev; std::string::~string() ; +0xd0, 0x78b5e8\nMOV             R0, R8                                                 ; +0xd4, 0x78b5ec\nBL              _ZNSt6__ndk112basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEED2Ev; std::string::~string() ; +0xd6, 0x78b5ee\nMOV             R0, R9                                                 ; +0xda, 0x78b5f2\nBL              _ZNSt6__ndk112basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEED2Ev; std::string::~string() ; +0xdc, 0x78b5f4\nLDR             R3, =(_ZN17EditorSoundsLayer15s_lastActiveTabE_ptr - 0x78B608) ; +0xe0, 0x78b5f8\nADD.W           R5, R4, #0x300                                         ; +0xe2, 0x78b5fa\nLDR.W           R2, [R4,#0x2E0]                                        ; +0xe6, 0x78b5fe\nLDR             R0, =(_ZN17EditorSoundsLayer16s_lastSearchTextE_ptr - 0x78B60E) ; +0xea, 0x78b602\nADD             R3, PC; _ZN17EditorSoundsLayer15s_lastActiveTabE_ptr   ; +0xec, 0x78b604\nLDR             R3, [R3]; EditorSoundsLayer::s_lastActiveTab ...       ; +0xee, 0x78b606\nMOV             R1, R5                                                 ; +0xf0, 0x78b608\nADD             R0, PC; _ZN17EditorSoundsLayer16s_lastSearchTextE_ptr  ; +0xf2, 0x78b60a\nLDR             R0, [R0]; EditorSoundsLayer::s_lastSearchText ...      ; +0xf4, 0x78b60c\nSTR             R2, [R3]; EditorSoundsLayer::s_lastActiveTab           ; +0xf6, 0x78b60e\nBL              _ZNSt6__ndk112basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEEaSERKS5_; std::string::operator=(std::string const&) ; +0xf8, 0x78b610\nMOV             R0, R5                                                 ; +0xfc, 0x78b614\nBL              _ZNSt6__ndk112basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEED2Ev; std::string::~string() ; +0xfe, 0x78b616\nMOV             R0, R4; this                                           ; +0x102, 0x78b61a\nBL              _ZN16TabbedPopupLayerD2Ev; TabbedPopupLayer::~TabbedPopupLayer() ; +0x104, 0x78b61c\nLDR             R2, [SP,#0x2C+var_8]                                   ; +0x108, 0x78b620\nLDR             R3, [R6]                                               ; +0x10a, 0x78b622\nMOV             R0, R4                                                 ; +0x10c, 0x78b624\nCMP             R2, R3                                                 ; +0x10e, 0x78b626\nBEQ             loc_78B636                                             ; +0x110, 0x78b628\nBLX             __stack_chk_fail                                       ; +0x112, 0x78b62a\nASRS            R2, R2, #1                                             ; +0x116, 0x78b62e\nADD.W           R1, SP, #0x2C+var_13                                   ; +0x118, 0x78b630\nB               loc_78B5C8                                             ; +0x11c, 0x78b634\nADD             SP, SP, #0x2C ; ','                                    ; +0x11e, 0x78b636\nPOP.W           {R4-R9,PC}                                             ; +0x120, 0x78b638", "xrefs": ["`non-virtual thunk to'EditorSoundsLayer::~EditorSoundsLayer @ 0x78b654", "EditorSoundsLayer::~EditorSoundsLayer @ 0x78b65c"], "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"}