{"type": "func", "start": 4298186700, "end": 4298186872, "name": "GameManager::getPracticeMusicFile", "pseudocode": "// \n// GameManager::getPracticeMusicFile from 0x100311fcc to 0x100312078 (172 bytes)\n// \n// 1 xrefs:\n// > PlayLayer::togglePracticeMode @ 0x100121a68\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\nvoid __usercall GameManager::getPracticeMusicFile(__int64 a1@<X0>, _QWORD *a2@<X8>)\n{\n  MusicDownloadManager *v4; // x0\n  std::string *p_p; // x1\n  std::string __p; // [xsp+8h] [xbp-28h] BYREF\n\n  if ( *(int *)(a1 + 1052) < 1 )\n    goto LABEL_11;\n  v4 = MusicDownloadManager::sharedState();\n  if ( !MusicDownloadManager::isSongDownloaded(v4, *(_DWORD *)(a1 + 1052)) )\n  {\n    *(_DWORD *)(a1 + 1052) = 0;\n    goto LABEL_11;\n  }\n  if ( *(int *)(a1 + 1052) < 1 )\n  {\nLABEL_11:\n    sub_100009900(a2, \"StayInsideMe.mp3\");\n    return;\n  }\n  MusicDownloadManager::sharedState();\n  MusicDownloadManager::pathForSong(*(unsigned int *)(a1 + 1052), &__p);\n  if ( (__p.__r_.__value_.__r.__words[2] & 0x8000000000000000LL) == 0LL )\n    p_p = &__p;\n  else\n    p_p = (std::string *)__p.__r_.__value_.__r.__words[0];\n  sub_100009900(a2, (char *)p_p);\n  if ( SHIBYTE(__p.__r_.__value_.__r.__words[2]) < 0 )\n    operator delete(__p.__r_.__value_.__l.__data_);\n}", "assembly": "; \n; GameManager::getPracticeMusicFile from 0x100311fcc to 0x100312078 (172 bytes)\n; \n; 1 xrefs:\n; > PlayLayer::togglePracticeMode @ 0x100121a68\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\nSUB             SP, SP, #0x40                                          ; +0x0, 0x100311fcc\nSTP             X20, X19, [SP,#0x30+var_10]                            ; +0x4, 0x100311fd0\nSTP             X29, X30, [SP,#0x30+var_s0]                            ; +0x8, 0x100311fd4\nADD             X29, SP, #0x30                                         ; +0xc, 0x100311fd8\nMOV             X19, X8                                                ; +0x10, 0x100311fdc\nLDR             W8, [X0,#0x41C]                                        ; +0x14, 0x100311fe0\nCMP             W8, #1                                                 ; +0x18, 0x100311fe4\nB.LT            loc_10031205C                                          ; +0x1c, 0x100311fe8\nMOV             X20, X0                                                ; +0x20, 0x100311fec\nBL              MusicDownloadManager__sharedState                      ; +0x24, 0x100311ff0\nLDR             W1, [X20,#0x41C]                                       ; +0x28, 0x100311ff4\nBL              MusicDownloadManager__isSongDownloaded                 ; +0x2c, 0x100311ff8\nTBZ             W0, #0, loc_100312058                                  ; +0x30, 0x100311ffc\nLDR             W8, [X20,#0x41C]                                       ; +0x34, 0x100312000\nCMP             W8, #1                                                 ; +0x38, 0x100312004\nB.LT            loc_10031205C                                          ; +0x3c, 0x100312008\nBL              MusicDownloadManager__sharedState                      ; +0x40, 0x10031200c\nLDR             W1, [X20,#0x41C]                                       ; +0x44, 0x100312010\nADD             X20, SP, #0x30+__p                                     ; +0x48, 0x100312014\nADD             X8, SP, #0x30+__p                                      ; +0x4c, 0x100312018\nBL              MusicDownloadManager__pathForSong                      ; +0x50, 0x10031201c\nLDRSB           W8, [SP,#0x30+var_11]                                  ; +0x54, 0x100312020\nLDR             X9, [SP,#0x30+__p]                                     ; +0x58, 0x100312024\nCMP             W8, #0                                                 ; +0x5c, 0x100312028\nCSEL            X1, X9, X20, LT; __s                                   ; +0x60, 0x10031202c\nMOV             X0, X19; int                                           ; +0x64, 0x100312030\nBL              sub_100009900                                          ; +0x68, 0x100312034\nLDRSB           W8, [SP,#0x30+var_11]                                  ; +0x6c, 0x100312038\nTBZ             W8, #0x1F, loc_100312048                               ; +0x70, 0x10031203c\nLDR             X0, [SP,#0x30+__p]; __p                                ; +0x74, 0x100312040\nBL              __ZdlPv; operator delete(void *)                       ; +0x78, 0x100312044\nLDP             X29, X30, [SP,#0x30+var_s0]                            ; +0x7c, 0x100312048\nLDP             X20, X19, [SP,#0x30+var_10]                            ; +0x80, 0x10031204c\nADD             SP, SP, #0x40 ; '@'                                    ; +0x84, 0x100312050\nRET                                                                    ; +0x88, 0x100312054\nSTR             WZR, [X20,#0x41C]                                      ; +0x8c, 0x100312058\nADRL            X1, aStayinsidemeMp; \"StayInsideMe.mp3\"                ; +0x90, 0x10031205c\nMOV             X0, X19; int                                           ; +0x98, 0x100312064\nLDP             X29, X30, [SP,#0x30+var_s0]                            ; +0x9c, 0x100312068\nLDP             X20, X19, [SP,#0x30+var_10]                            ; +0xa0, 0x10031206c\nADD             SP, SP, #0x40 ; '@'                                    ; +0xa4, 0x100312070\nB               sub_100009900                                          ; +0xa8, 0x100312074", "xrefs": ["PlayLayer::togglePracticeMode @ 0x100121a68"], "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"}