{"type": "func", "start": 5373418592, "end": 5373419229, "name": "MusicBrowser::onChangelog", "pseudocode": "// \n// MusicBrowser::onChangelog from 0x14047dc60 to 0x14047dedd (637 bytes)\n// \n// 2 xrefs:\n// > MusicBrowser::init @ 0x14047b4bf\n// > <???> @ 0x14092873c\n// \n// This function is hookable on this platform (idp: pc, 32 bit: False, 64 bit: True!\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:32:43 +0000\n// \n\n// Hidden C++ exception states: #wind=3\n__int64 __fastcall MusicBrowser::onChangelog(__int64 *a1)\n{\n  __int64 v2; // rax\n  __int64 v3; // rdi\n  _QWORD *v4; // rbx\n  int v5; // r9d\n  __int64 (__fastcall *v6)(__int64); // rdx\n  __int64 v8; // rbx\n  __int64 v9; // rdx\n  __int64 v10; // r8\n  cocos2d::CCNode *v11; // rax\n  __int128 v12; // [rsp+30h] [rbp-48h] BYREF\n  __int64 v13; // [rsp+40h] [rbp-38h]\n  __int64 v14; // [rsp+48h] [rbp-30h]\n  __int128 v15; // [rsp+50h] [rbp-28h] BYREF\n  __int64 v16; // [rsp+60h] [rbp-18h]\n  __int64 v17; // [rsp+68h] [rbp-10h]\n  void *v18; // [rsp+90h] [rbp+18h]\n\n  v2 = qword_14090C070;\n  if ( !qword_14090C070 )\n  {\n    v18 = operator new(0x3D0u);\n    qword_14090C070 = MusicDownloadManager::MusicDownloadManager(v18);\n    (*(void (__fastcall **)(__int64))(*(_QWORD *)qword_14090C070 + 72LL))(qword_14090C070);\n    v2 = qword_14090C070;\n  }\n  v3 = *(_QWORD *)(v2 + 464);\n  if ( v3 && cocos2d::CCArray::count(*(cocos2d::CCArray **)(v2 + 464)) )\n  {\n    v4 = operator new(0x2A8u);\n    memset(v4, 0, 0x2A8u);\n    sub_14047F7B0(v4);\n    *v4 = &MusicChangelogPopup::`vftable';\n    v4[40] = &MusicChangelogPopup::`vftable';\n    v4[41] = &MusicChangelogPopup::`vftable';\n    v4[42] = &MusicChangelogPopup::`vftable';\n    v4[43] = &MusicChangelogPopup::`vftable';\n    v4[44] = &MusicChangelogPopup::`vftable';\n    v4[51] = &MusicChangelogPopup::`vftable';\n    v4[54] = &MusicChangelogPopup::`vftable';\n    v4[68] = &MusicChangelogPopup::`vftable';\n    if ( (unsigned __int8)ScrollViewPopup::initPopup(\n                            (_DWORD)v4,\n                            v3,\n                            (unsigned int)\"Music Changelog\",\n                            v5,\n                            1135869952,\n                            1131413504) )\n    {\n      cocos2d::CCObject::autorelease((cocos2d::CCObject *)v4);\n    }\n    else\n    {\n      (*(void (__fastcall **)(_QWORD *, __int64))(*v4 + 8LL))(v4, 1);\n      v4 = nullptr;\n    }\n    v6 = *(__int64 (__fastcall **)(__int64))(*v4 + 1064LL);\n    if ( v6 == FLAlertLayer::show )\n      return FLAlertLayer::show((__int64)v4);\n    else\n      return v6((__int64)v4);\n  }\n  else\n  {\n    v15 = 0;\n    v16 = 0;\n    v17 = 15;\n    LOBYTE(v15) = 0;\n    v12 = 0;\n    *(_QWORD *)&v12 = sub_14003D460(0x20u);\n    v13 = 23;\n    v14 = 31;\n    strcpy((char *)v12, \"No changelog available.\");\n    v8 = *a1;\n    v11 = TextAlertPopup::create((__int64)&v12, v9, v10, 150, (__int64)&v15);\n    return (*(__int64 (__fastcall **)(__int64 *, cocos2d::CCNode *, __int64))(v8 + 456))(a1, v11, 100);\n  }\n}", "assembly": "; \n; MusicBrowser::onChangelog from 0x14047dc60 to 0x14047dedd (637 bytes)\n; \n; 2 xrefs:\n; > MusicBrowser::init @ 0x14047b4bf\n; > <???> @ 0x14092873c\n; \n; This function is hookable on this platform (idp: pc, 32 bit: False, 64 bit: True!\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:32:43 +0000\n; \nmov     [rsp+arg_0], rbx                                               ; +0x0, 0x14047dc60\nmov     [rsp+arg_8], rsi                                               ; +0x5, 0x14047dc65\npush    rdi                                                            ; +0xa, 0x14047dc6a\nsub     rsp, 70h                                                       ; +0xb, 0x14047dc6b\nmov     rsi, rcx                                                       ; +0xf, 0x14047dc6f\nmov     rax, cs:qword_14090C070                                        ; +0x12, 0x14047dc72\ntest    rax, rax                                                       ; +0x19, 0x14047dc79\njnz     short loc_14047DCB3                                            ; +0x1c, 0x14047dc7c\nmov     ecx, 3D0h; Size                                                ; +0x1e, 0x14047dc7e\ncall    ??2@YAPEAX_K@Z; operator new(unsigned __int64)                 ; +0x23, 0x14047dc83\nmov     [rsp+78h+arg_10], rax                                          ; +0x28, 0x14047dc88\nmov     rcx, rax                                                       ; +0x30, 0x14047dc90\ncall    MusicDownloadManager__MusicDownloadManager                     ; +0x33, 0x14047dc93\nnop                                                                    ; +0x38, 0x14047dc98\nmov     cs:qword_14090C070, rax                                        ; +0x39, 0x14047dc99\nmov     rcx, [rax]                                                     ; +0x40, 0x14047dca0\nmov     rdx, [rcx+48h]                                                 ; +0x43, 0x14047dca3\nmov     rcx, rax                                                       ; +0x47, 0x14047dca7\ncall    rdx                                                            ; +0x4a, 0x14047dcaa\nmov     rax, cs:qword_14090C070                                        ; +0x4c, 0x14047dcac\nmov     rdi, [rax+1D0h]                                                ; +0x53, 0x14047dcb3\ntest    rdi, rdi                                                       ; +0x5a, 0x14047dcba\njz      loc_14047DE08                                                  ; +0x5d, 0x14047dcbd\nmov     rcx, rdi                                                       ; +0x63, 0x14047dcc3\ncall    cs:?count@CCArray@cocos2d@@QEBAIXZ; cocos2d::CCArray::count(void) ; +0x66, 0x14047dcc6\ntest    eax, eax                                                       ; +0x6c, 0x14047dccc\njz      loc_14047DE08                                                  ; +0x6e, 0x14047dcce\nmov     ecx, 2A8h; Size                                                ; +0x74, 0x14047dcd4\ncall    ??2@YAPEAX_K@Z; operator new(unsigned __int64)                 ; +0x79, 0x14047dcd9\nmov     rbx, rax                                                       ; +0x7e, 0x14047dcde\nmov     [rsp+78h+arg_10], rax                                          ; +0x81, 0x14047dce1\nxor     edx, edx; Val                                                  ; +0x89, 0x14047dce9\nmov     r8d, 2A8h; Size                                                ; +0x8b, 0x14047dceb\nmov     rcx, rax; void *                                               ; +0x91, 0x14047dcf1\ncall    memset                                                         ; +0x94, 0x14047dcf4\nmov     rcx, rbx                                                       ; +0x99, 0x14047dcf9\ncall    sub_14047F7B0                                                  ; +0x9c, 0x14047dcfc\nlea     rax, ??_7MusicChangelogPopup@@6B@; const MusicChangelogPopup::`vftable' ; +0xa1, 0x14047dd01\nmov     [rbx], rax                                                     ; +0xa8, 0x14047dd08\nlea     rax, ??_7MusicChangelogPopup@@6B@_0; const MusicChangelogPopup::`vftable' ; +0xab, 0x14047dd0b\nmov     [rbx+140h], rax                                                ; +0xb2, 0x14047dd12\nlea     rax, ??_7MusicChangelogPopup@@6B@_1; const MusicChangelogPopup::`vftable' ; +0xb9, 0x14047dd19\nmov     [rbx+148h], rax                                                ; +0xc0, 0x14047dd20\nlea     rax, ??_7MusicChangelogPopup@@6B@_2; const MusicChangelogPopup::`vftable' ; +0xc7, 0x14047dd27\nmov     [rbx+150h], rax                                                ; +0xce, 0x14047dd2e\nlea     rax, ??_7MusicChangelogPopup@@6B@_3; const MusicChangelogPopup::`vftable' ; +0xd5, 0x14047dd35\nmov     [rbx+158h], rax                                                ; +0xdc, 0x14047dd3c\nlea     rax, ??_7MusicChangelogPopup@@6B@_4; const MusicChangelogPopup::`vftable' ; +0xe3, 0x14047dd43\nmov     [rbx+160h], rax                                                ; +0xea, 0x14047dd4a\nlea     rax, ??_7MusicChangelogPopup@@6B@_5; const MusicChangelogPopup::`vftable' ; +0xf1, 0x14047dd51\nmov     [rbx+198h], rax                                                ; +0xf8, 0x14047dd58\nlea     rax, ??_7MusicChangelogPopup@@6B@_6; const MusicChangelogPopup::`vftable' ; +0xff, 0x14047dd5f\nmov     [rbx+1B0h], rax                                                ; +0x106, 0x14047dd66\nlea     rax, ??_7MusicChangelogPopup@@6B@_7; const MusicChangelogPopup::`vftable' ; +0x10d, 0x14047dd6d\nmov     [rbx+220h], rax                                                ; +0x114, 0x14047dd74\nmovss   xmm0, cs:dword_140835950                                       ; +0x11b, 0x14047dd7b\nmovss   [rsp+78h+var_50], xmm0                                         ; +0x123, 0x14047dd83\nmovss   xmm1, cs:Y                                                     ; +0x129, 0x14047dd89\nmovss   dword ptr [rsp+78h+var_58], xmm1                               ; +0x131, 0x14047dd91\nlea     r8, aMusicChangelog; \"Music Changelog\"                         ; +0x137, 0x14047dd97\nmov     rdx, rdi                                                       ; +0x13e, 0x14047dd9e\nmov     rcx, rbx                                                       ; +0x141, 0x14047dda1\ncall    ScrollViewPopup__initPopup                                     ; +0x144, 0x14047dda4\nmov     rcx, rbx                                                       ; +0x149, 0x14047dda9\ntest    al, al                                                         ; +0x14c, 0x14047ddac\njz      short loc_14047DDB8                                            ; +0x14e, 0x14047ddae\ncall    cs:?autorelease@CCObject@cocos2d@@QEAAPEAV12@XZ; cocos2d::CCObject::autorelease(void) ; +0x150, 0x14047ddb0\njmp     short loc_14047DDC5                                            ; +0x156, 0x14047ddb6\nmov     rax, [rbx]                                                     ; +0x158, 0x14047ddb8\nmov     edx, 1                                                         ; +0x15b, 0x14047ddbb\ncall    qword ptr [rax+8]                                              ; +0x160, 0x14047ddc0\nxor     ebx, ebx                                                       ; +0x163, 0x14047ddc3\nmov     rax, [rbx]                                                     ; +0x165, 0x14047ddc5\nmov     rdx, [rax+428h]                                                ; +0x168, 0x14047ddc8\nlea     rax, FLAlertLayer__show                                        ; +0x16f, 0x14047ddcf\nmov     rcx, rbx                                                       ; +0x176, 0x14047ddd6\ncmp     rdx, rax                                                       ; +0x179, 0x14047ddd9\njnz     short loc_14047DDF4                                            ; +0x17c, 0x14047dddc\nlea     r11, [rsp+78h+var_8]                                           ; +0x17e, 0x14047ddde\nmov     rbx, [r11+10h]                                                 ; +0x183, 0x14047dde3\nmov     rsi, [r11+18h]                                                 ; +0x187, 0x14047dde7\nmov     rsp, r11                                                       ; +0x18b, 0x14047ddeb\npop     rdi                                                            ; +0x18e, 0x14047ddee\njmp     FLAlertLayer__show                                             ; +0x18f, 0x14047ddef\nlea     r11, [rsp+78h+var_8]                                           ; +0x194, 0x14047ddf4\nmov     rbx, [r11+10h]                                                 ; +0x199, 0x14047ddf9\nmov     rsi, [r11+18h]                                                 ; +0x19d, 0x14047ddfd\nmov     rsp, r11                                                       ; +0x1a1, 0x14047de01\npop     rdi                                                            ; +0x1a4, 0x14047de04\njmp     rdx                                                            ; +0x1a5, 0x14047de05\nlea     rax, [rsp+78h+var_28]                                          ; +0x1a8, 0x14047de08\nmov     [rsp+78h+arg_10], rax                                          ; +0x1ad, 0x14047de0d\nxorps   xmm0, xmm0                                                     ; +0x1b5, 0x14047de15\nmovups  [rsp+78h+var_28], xmm0                                         ; +0x1b8, 0x14047de18\nxor     ebx, ebx                                                       ; +0x1bd, 0x14047de1d\nmov     [rsp+78h+var_18], rbx                                          ; +0x1bf, 0x14047de1f\nmov     [rsp+78h+var_10], 0Fh                                          ; +0x1c4, 0x14047de24\nmov     byte ptr [rsp+78h+var_28], bl                                  ; +0x1cd, 0x14047de2d\nmovups  [rsp+78h+var_48], xmm0                                         ; +0x1d1, 0x14047de31\nmov     [rsp+78h+var_38], rbx                                          ; +0x1d6, 0x14047de36\nmov     [rsp+78h+var_30], rbx                                          ; +0x1db, 0x14047de3b\nmov     ecx, 20h ; ' '                                                 ; +0x1e0, 0x14047de40\ncall    sub_14003D460                                                  ; +0x1e5, 0x14047de45\nmov     qword ptr [rsp+78h+var_48], rax                                ; +0x1ea, 0x14047de4a\nmov     [rsp+78h+var_38], 17h                                          ; +0x1ef, 0x14047de4f\nmov     [rsp+78h+var_30], 1Fh                                          ; +0x1f8, 0x14047de58\nmovups  xmm0, cs:xmmword_1407B6BE8                                     ; +0x201, 0x14047de61\nmovups  xmmword ptr [rax], xmm0                                        ; +0x208, 0x14047de68\nmov     ecx, cs:dword_1407B6BF8                                        ; +0x20b, 0x14047de6b\nmov     [rax+10h], ecx                                                 ; +0x211, 0x14047de71\nmovzx   ecx, cs:word_1407B6BFC                                         ; +0x214, 0x14047de74\nmov     [rax+14h], cx                                                  ; +0x21b, 0x14047de7b\nmovzx   ecx, cs:byte_1407B6BFE                                         ; +0x21f, 0x14047de7f\nmov     [rax+16h], cl                                                  ; +0x226, 0x14047de86\nmov     [rax+17h], bl                                                  ; +0x229, 0x14047de89\nmov     rbx, [rsi]                                                     ; +0x22c, 0x14047de8c\nlea     rax, [rsp+78h+var_28]                                          ; +0x22f, 0x14047de8f\nmov     [rsp+78h+var_58], rax                                          ; +0x234, 0x14047de94\nmov     r9d, 96h                                                       ; +0x239, 0x14047de99\nmovss   xmm2, cs:dword_140834F20                                       ; +0x23f, 0x14047de9f\nmovss   xmm1, cs:flt_140835080                                         ; +0x247, 0x14047dea7\nlea     rcx, [rsp+78h+var_48]                                          ; +0x24f, 0x14047deaf\ncall    TextAlertPopup__create                                         ; +0x254, 0x14047deb4\nmov     rdx, rax                                                       ; +0x259, 0x14047deb9\nmov     r8d, 64h ; 'd'                                                 ; +0x25c, 0x14047debc\nmov     rcx, rsi                                                       ; +0x262, 0x14047dec2\ncall    qword ptr [rbx+1C8h]                                           ; +0x265, 0x14047dec5\nlea     r11, [rsp+78h+var_8]                                           ; +0x26b, 0x14047decb\nmov     rbx, [r11+10h]                                                 ; +0x270, 0x14047ded0\nmov     rsi, [r11+18h]                                                 ; +0x274, 0x14047ded4\nmov     rsp, r11                                                       ; +0x278, 0x14047ded8\npop     rdi                                                            ; +0x27b, 0x14047dedb\nretn                                                                   ; +0x27c, 0x14047dedc", "xrefs": ["MusicBrowser::init @ 0x14047b4bf", "<???> @ 0x14092873c"], "is_objc": false, "is_32_bit": false, "is_64_bit": true, "idp_name": "pc", "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"}