{"type": "func", "start": 5280412, "end": 5280550, "name": "EditorPauseLayer::onDownloadAudio", "pseudocode": "// \n// EditorPauseLayer::onDownloadAudio from 0x50929c to 0x509326 (138 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:51:26 +0000\n// \n\nint __fastcall EditorPauseLayer::onDownloadAudio(int this, cocos2d::CCObject *a2)\n{\n  int v2; // r1\n  int v3; // r8\n  int v4; // r7\n  int v5; // r0\n  bool v6; // [sp+3h] [bp-1Dh] BYREF\n  _BYTE v7[12]; // [sp+4h] [bp-1Ch] BYREF\n  _BYTE v8[12]; // [sp+10h] [bp-10h] BYREF\n\n  v2 = *(_DWORD *)(this + 456);\n  v3 = this;\n  v4 = *(_DWORD *)(v2 + 1408);\n  if ( v4 )\n  {\n    v6 = 0;\n    LevelEditorLayer::getSongIDs((LevelEditorLayer *)v7, (bool *)v2, &v6);\n    LevelEditorLayer::getSFXIDs((LevelEditorLayer *)v8, *(_DWORD *)(v3 + 456));\n    v5 = AudioAssetsPopup::create(*(_DWORD *)(v4 + 436), *(_DWORD *)(v4 + 432), v7, v8);\n    if ( v5 )\n      (*(void (__fastcall **)(int))(*(_DWORD *)v5 + 656))(v5);\n    std::string::~string((int)v8);\n    return std::string::~string((int)v7);\n  }\n  return this;\n}", "assembly": "; \n; EditorPauseLayer::onDownloadAudio from 0x50929c to 0x509326 (138 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:51:26 +0000\n; \nLDR             R3, =(__stack_chk_guard_ptr - 0x5092A6)                ; +0x0, 0x50929c\nPUSH.W          {R4-R8,LR}                                             ; +0x2, 0x50929e\nADD             R3, PC; __stack_chk_guard_ptr                          ; +0x6, 0x5092a2\nLDR             R3, [R3]; __stack_chk_guard                            ; +0x8, 0x5092a4\nLDR.W           R1, [R0,#0x1C8]; bool *                                ; +0xa, 0x5092a6\nSUB             SP, SP, #0x20                                          ; +0xe, 0x5092aa\nLDR             R2, [R3]                                               ; +0x10, 0x5092ac\nMOV             R8, R0                                                 ; +0x12, 0x5092ae\nMOV             R6, R3                                                 ; +0x14, 0x5092b0\nLDR.W           R7, [R1,#0x580]                                        ; +0x16, 0x5092b2\nSTR             R2, [SP,#0x20+var_4]                                   ; +0x1a, 0x5092b6\nCBZ             R7, loc_509314                                         ; +0x1c, 0x5092b8\nADD             R4, SP, #0x20+var_1C                                   ; +0x1e, 0x5092ba\nADD             R5, SP, #0x20+var_10                                   ; +0x20, 0x5092bc\nADD.W           R2, SP, #0x20+var_1D                                   ; +0x22, 0x5092be\nMOVS            R3, #0                                                 ; +0x26, 0x5092c2\nMOV             R0, R4; this                                           ; +0x28, 0x5092c4\nSTRB.W          R3, [SP,#0x20+var_1D]                                  ; +0x2a, 0x5092c6\nBL              _ZN16LevelEditorLayer10getSongIDsERb; LevelEditorLayer::getSongIDs(bool &) ; +0x2e, 0x5092ca\nMOV             R0, R5; this                                           ; +0x32, 0x5092ce\nLDR.W           R1, [R8,#0x1C8]                                        ; +0x34, 0x5092d0\nBL              _ZN16LevelEditorLayer9getSFXIDsEv; LevelEditorLayer::getSFXIDs(void) ; +0x38, 0x5092d4\nLDR.W           R0, [R7,#0x1B4]                                        ; +0x3c, 0x5092d8\nMOV             R2, R4                                                 ; +0x40, 0x5092dc\nLDR.W           R1, [R7,#0x1B0]                                        ; +0x42, 0x5092de\nMOV             R3, R5                                                 ; +0x46, 0x5092e2\nBL              _ZN16AudioAssetsPopup6createEiiRKNSt6__ndk112basic_stringIcNS0_11char_traitsIcEENS0_9allocatorIcEEEES8_; AudioAssetsPopup::create(int,int,std::string const&,std::string const&) ; +0x48, 0x5092e4\nCBNZ            R0, loc_5092F8                                         ; +0x4c, 0x5092e8\nMOV             R0, R5                                                 ; +0x4e, 0x5092ea\nBL              _ZNSt6__ndk112basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEED2Ev; std::string::~string() ; +0x50, 0x5092ec\nMOV             R0, R4                                                 ; +0x54, 0x5092f0\nBL              _ZNSt6__ndk112basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEED2Ev; std::string::~string() ; +0x56, 0x5092f2\nB               loc_509314                                             ; +0x5a, 0x5092f6\nLDR             R3, [R0]                                               ; +0x5c, 0x5092f8\nLDR.W           R3, [R3,#0x290]                                        ; +0x5e, 0x5092fa\nBLX             R3                                                     ; +0x62, 0x5092fe\nB               loc_5092EA                                             ; +0x64, 0x509300\nMOV             R0, R5                                                 ; +0x66, 0x509302\nBL              _ZNSt6__ndk112basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEED2Ev; std::string::~string() ; +0x68, 0x509304\nB               loc_50930A                                             ; +0x6c, 0x509308\nMOV             R0, R4                                                 ; +0x6e, 0x50930a\nBL              _ZNSt6__ndk112basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEED2Ev; std::string::~string() ; +0x70, 0x50930c\nBL              __cxa_end_cleanup                                      ; +0x74, 0x509310\nLDR             R2, [SP,#0x20+var_4]                                   ; +0x78, 0x509314\nLDR             R3, [R6]                                               ; +0x7a, 0x509316\nCMP             R2, R3                                                 ; +0x7c, 0x509318\nBEQ             loc_509320                                             ; +0x7e, 0x50931a\nBLX             __stack_chk_fail                                       ; +0x80, 0x50931c\nADD             SP, SP, #0x20 ; ' '                                    ; +0x84, 0x509320\nPOP.W           {R4-R8,PC}                                             ; +0x86, 0x509322", "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"}