{"type": "func", "start": 4298829024, "end": 4298829196, "name": "GameManager::getPracticeMusicFile", "pseudocode": "// \n// GameManager::getPracticeMusicFile from 0x1003aece0 to 0x1003aed8c (172 bytes)\n// \n// 1 xrefs:\n// > PlayLayer::playPracticeMusic @ 0x10014c354\n// \n// This function is hookable on this platform (idp: arm, 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:03:53 +0000\n// \n\nvoid __usercall GameManager::getPracticeMusicFile(__int64 a1@<X0>, _QWORD *a2@<X8>)\n{\n  __int64 v4; // x0\n  std::string *p_p; // x1\n  std::string __p; // [xsp+8h] [xbp-28h] BYREF\n\n  if ( *(int *)(a1 + 1144) < 1 )\n    goto LABEL_11;\n  v4 = MusicDownloadManager::sharedState();\n  if ( (MusicDownloadManager::isSongDownloaded(v4, *(unsigned int *)(a1 + 1144)) & 1) == 0 )\n  {\n    *(_DWORD *)(a1 + 1144) = 0;\n    goto LABEL_11;\n  }\n  if ( *(int *)(a1 + 1144) < 1 )\n  {\nLABEL_11:\n    sub_100009900(a2, \"StayInsideMe.mp3\");\n    return;\n  }\n  MusicDownloadManager::sharedState();\n  MusicDownloadManager::pathForSong(*(unsigned int *)(a1 + 1144), &__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 0x1003aece0 to 0x1003aed8c (172 bytes)\n; \n; 1 xrefs:\n; > PlayLayer::playPracticeMusic @ 0x10014c354\n; \n; This function is hookable on this platform (idp: arm, 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:03:53 +0000\n; \nSUB             SP, SP, #0x40                                          ; +0x0, 0x1003aece0\nSTP             X20, X19, [SP,#0x30+var_10]                            ; +0x4, 0x1003aece4\nSTP             X29, X30, [SP,#0x30+var_s0]                            ; +0x8, 0x1003aece8\nADD             X29, SP, #0x30                                         ; +0xc, 0x1003aecec\nMOV             X19, X8                                                ; +0x10, 0x1003aecf0\nLDR             W8, [X0,#0x478]                                        ; +0x14, 0x1003aecf4\nCMP             W8, #1                                                 ; +0x18, 0x1003aecf8\nB.LT            loc_1003AED70                                          ; +0x1c, 0x1003aecfc\nMOV             X20, X0                                                ; +0x20, 0x1003aed00\nBL              MusicDownloadManager__sharedState                      ; +0x24, 0x1003aed04\nLDR             W1, [X20,#0x478]                                       ; +0x28, 0x1003aed08\nBL              MusicDownloadManager__isSongDownloaded                 ; +0x2c, 0x1003aed0c\nTBZ             W0, #0, loc_1003AED6C                                  ; +0x30, 0x1003aed10\nLDR             W8, [X20,#0x478]                                       ; +0x34, 0x1003aed14\nCMP             W8, #1                                                 ; +0x38, 0x1003aed18\nB.LT            loc_1003AED70                                          ; +0x3c, 0x1003aed1c\nBL              MusicDownloadManager__sharedState                      ; +0x40, 0x1003aed20\nLDR             W1, [X20,#0x478]                                       ; +0x44, 0x1003aed24\nADD             X20, SP, #0x30+__p                                     ; +0x48, 0x1003aed28\nADD             X8, SP, #0x30+__p                                      ; +0x4c, 0x1003aed2c\nBL              MusicDownloadManager__pathForSong                      ; +0x50, 0x1003aed30\nLDRSB           W8, [SP,#0x30+var_11]                                  ; +0x54, 0x1003aed34\nLDR             X9, [SP,#0x30+__p]                                     ; +0x58, 0x1003aed38\nCMP             W8, #0                                                 ; +0x5c, 0x1003aed3c\nCSEL            X1, X9, X20, LT; __s                                   ; +0x60, 0x1003aed40\nMOV             X0, X19; int                                           ; +0x64, 0x1003aed44\nBL              sub_100009900                                          ; +0x68, 0x1003aed48\nLDRSB           W8, [SP,#0x30+var_11]                                  ; +0x6c, 0x1003aed4c\nTBZ             W8, #0x1F, loc_1003AED5C                               ; +0x70, 0x1003aed50\nLDR             X0, [SP,#0x30+__p]; __p                                ; +0x74, 0x1003aed54\nBL              __ZdlPv; operator delete(void *)                       ; +0x78, 0x1003aed58\nLDP             X29, X30, [SP,#0x30+var_s0]                            ; +0x7c, 0x1003aed5c\nLDP             X20, X19, [SP,#0x30+var_10]                            ; +0x80, 0x1003aed60\nADD             SP, SP, #0x40 ; '@'                                    ; +0x84, 0x1003aed64\nRET                                                                    ; +0x88, 0x1003aed68\nSTR             WZR, [X20,#0x478]                                      ; +0x8c, 0x1003aed6c\nADRL            X1, aStayinsidemeMp; \"StayInsideMe.mp3\"                ; +0x90, 0x1003aed70\nMOV             X0, X19; int                                           ; +0x98, 0x1003aed78\nLDP             X29, X30, [SP,#0x30+var_s0]                            ; +0x9c, 0x1003aed7c\nLDP             X20, X19, [SP,#0x30+var_10]                            ; +0xa0, 0x1003aed80\nADD             SP, SP, #0x40 ; '@'                                    ; +0xa4, 0x1003aed84\nB               sub_100009900                                          ; +0xa8, 0x1003aed88", "xrefs": ["PlayLayer::playPracticeMusic @ 0x10014c354"], "is_objc": false, "is_32_bit": false, "is_64_bit": true, "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"}