{"type": "func", "start": 5373510528, "end": 5373510715, "name": "SongInfoLayer::onPracticeMusic", "pseudocode": "// \n// SongInfoLayer::onPracticeMusic from 0x140494380 to 0x14049443b (187 bytes)\n// \n// 2 xrefs:\n// > SongInfoLayer::init @ 0x1404939e9\n// > <???> @ 0x1406dc14c\n// \n// This function is hookable on this platform!\n// \n// Using BromaIDA 8.0.0 @ https://github.com/Stazzical/BromaIDA\n// Using bindings at commit ba9f177b at Thu Jul 16 22:52:06 2026 from https://github.com/geode-sdk/bindings\n// \n\n// Hidden C++ exception states: #wind=4\nvoid SongInfoLayer::onPracticeMusic(SongInfoLayer *a1, cocos2d::CCObject *a2)\n{\n  __int64 v3; // rcx\n  int m_songID; // eax\n  void *v5; // [rsp+40h] [rbp+18h]\n  void *v6; // [rsp+40h] [rbp+18h]\n\n  if ( !qword_1406C2EE8 )\n  {\n    v5 = operator new(0x3E0u);\n    qword_1406C2EE8 = sub_1401D0AE0((__int64)v5);\n    (*(void (__fastcall **)(__int64))(*(_QWORD *)qword_1406C2EE8 + 72LL))(qword_1406C2EE8);\n  }\n  if ( GameStatsManager::isItemUnlocked((GameStatsManager *)a1, GJItem, 16) )\n  {\n    if ( a1->m_songID > 0 )\n    {\n      v3 = qword_1406C2ED8;\n      if ( !qword_1406C2ED8 )\n      {\n        v6 = operator new(0x668u);\n        qword_1406C2ED8 = sub_14017AB00((__int64)v6);\n        (*(void (__fastcall **)(__int64))(*(_QWORD *)qword_1406C2ED8 + 72LL))(qword_1406C2ED8);\n        v3 = qword_1406C2ED8;\n      }\n      m_songID = a1->m_songID;\n      if ( *(_DWORD *)(v3 + 1084) == m_songID )\n        m_songID = 0;\n      *(_DWORD *)(v3 + 1084) = m_songID;\n    }\n  }\n  else\n  {\n    SongInfoLayer::showCustomMusicUnlockInfo(a1);\n  }\n}", "assembly": "; \n; SongInfoLayer::onPracticeMusic from 0x140494380 to 0x14049443b (187 bytes)\n; \n; 2 xrefs:\n; > SongInfoLayer::init @ 0x1404939e9\n; > <???> @ 0x1406dc14c\n; \n; This function is hookable on this platform!\n; \n; Using BromaIDA 8.0.0 @ https:;github.com/Stazzical/BromaIDA\n; Using bindings at commit ba9f177b at Thu Jul 16 22:52:06 2026 from https:;github.com/geode-sdk/bindings\n; \n\npush    rbx                                                            ; +0x0, 0x140494380\nsub     rsp, 20h                                                       ; +0x2, 0x140494382\nmov     rbx, rcx                                                       ; +0x6, 0x140494386\ncmp     cs:qword_1406C2EE8, 0                                          ; +0x9, 0x140494389\njnz     short loc_1404943BB                                            ; +0x11, 0x140494391\nmov     ecx, 3E0h; Size                                                ; +0x13, 0x140494393\ncall    ??2@YAPEAX_K@Z; operator new(unsigned __int64)                 ; +0x18, 0x140494398\nmov     [rsp+28h+arg_10], rax                                          ; +0x1d, 0x14049439d\nmov     rcx, rax                                                       ; +0x22, 0x1404943a2\ncall    sub_1401D0AE0                                                  ; +0x25, 0x1404943a5\nnop                                                                    ; +0x2a, 0x1404943aa\nmov     cs:qword_1406C2EE8, rax                                        ; +0x2b, 0x1404943ab\nmov     rdx, [rax]                                                     ; +0x32, 0x1404943b2\nmov     rcx, rax                                                       ; +0x35, 0x1404943b5\ncall    qword ptr [rdx+48h]                                            ; +0x38, 0x1404943b8\nmov     edx, 0Ch                                                       ; +0x3b, 0x1404943bb\nlea     r8d, [rdx+4]                                                   ; +0x40, 0x1404943c0\ncall    GameStatsManager__isItemUnlocked                               ; +0x44, 0x1404943c4\ntest    al, al                                                         ; +0x49, 0x1404943c9\njnz     short loc_1404943DA                                            ; +0x4b, 0x1404943cb\nmov     rcx, rbx                                                       ; +0x4d, 0x1404943cd\nadd     rsp, 20h                                                       ; +0x50, 0x1404943d0\npop     rbx                                                            ; +0x54, 0x1404943d4\njmp     SongInfoLayer__showCustomMusicUnlockInfo                       ; +0x55, 0x1404943d5\ncmp     dword ptr [rbx+2F8h], 0                                        ; +0x5a, 0x1404943da\njle     short loc_140494435                                            ; +0x61, 0x1404943e1\nmov     rcx, cs:qword_1406C2ED8                                        ; +0x63, 0x1404943e3\ntest    rcx, rcx                                                       ; +0x6a, 0x1404943ea\njnz     short loc_14049441E                                            ; +0x6d, 0x1404943ed\nmov     ecx, 668h; Size                                                ; +0x6f, 0x1404943ef\ncall    ??2@YAPEAX_K@Z; operator new(unsigned __int64)                 ; +0x74, 0x1404943f4\nmov     [rsp+28h+arg_10], rax                                          ; +0x79, 0x1404943f9\nmov     rcx, rax                                                       ; +0x7e, 0x1404943fe\ncall    sub_14017AB00                                                  ; +0x81, 0x140494401\nnop                                                                    ; +0x86, 0x140494406\nmov     cs:qword_1406C2ED8, rax                                        ; +0x87, 0x140494407\nmov     rdx, [rax]                                                     ; +0x8e, 0x14049440e\nmov     rcx, rax                                                       ; +0x91, 0x140494411\ncall    qword ptr [rdx+48h]                                            ; +0x94, 0x140494414\nmov     rcx, cs:qword_1406C2ED8                                        ; +0x97, 0x140494417\nmov     eax, [rbx+2F8h]                                                ; +0x9e, 0x14049441e\nxor     edx, edx                                                       ; +0xa4, 0x140494424\ncmp     [rcx+43Ch], eax                                                ; +0xa6, 0x140494426\ncmovz   eax, edx                                                       ; +0xac, 0x14049442c\nmov     [rcx+43Ch], eax                                                ; +0xaf, 0x14049442f\nadd     rsp, 20h                                                       ; +0xb5, 0x140494435\npop     rbx                                                            ; +0xb9, 0x140494439\nretn                                                                   ; +0xba, 0x14049443a", "xrefs": ["SongInfoLayer::init @ 0x1404939e9", "<???> @ 0x1406dc14c"], "is_objc": false, "is_arm32": false, "is_arm64": false, "bida_info": "8.0.0 @ https://github.com/Stazzical/BromaIDA", "bindings_info": "commit ba9f177b at Thu Jul 16 22:52:06 2026 from https://github.com/geode-sdk/bindings"}