{"type": "func", "start": 4296890476, "end": 4296890624, "name": "MusicDownloadManager::pathForSFX", "pseudocode": "// \n// MusicDownloadManager::pathForSFX from 0x1001d586c to 0x1001d5900 (148 bytes)\n// \n// 20 xrefs:\n// > SecretLayer5::onSubmit @ 0x10007d76c\n// > SecretLayer5::animateHead @ 0x10007e0fc\n// > SecretLayer5::showSuccessAnimation @ 0x10007e8d0\n// > SecretLayer5::showSuccessAnimation @ 0x10007e910\n// > SecretLayer5::showSuccessAnimation @ 0x10007e960\n// > SecretLayer5::showSuccessAnimation @ 0x10007e9a8\n// > SecretLayer5::showFailAnimation @ 0x10007ee24\n// > SecretLayer5::showFailAnimation @ 0x10007ee64\n// > sub_10007F0DC @ 0x10007f100\n// > MusicDownloadManager::isSFXDownloaded @ 0x1001d57cc\n// > MusicDownloadManager::onDownloadSFXCompleted @ 0x1001de924\n// > sub_1001DFE8C @ 0x1001dfea4\n// > sub_10021378C @ 0x100213958\n// > SetupSFXPopup::onClose @ 0x100213bc4\n// > RewardUnlockLayer::playRewardEffect @ 0x10025ba2c\n// > GJBaseGameLayer::processSFXObjects @ 0x10027c850\n// > CustomSFXWidget::onPlayback @ 0x10038c554\n// > sub_10038D590 @ 0x10038d5bc\n// > sub_1003AF1A8 @ 0x1003af1fc\n// > sub_1004CBA00 @ 0x1004cba38\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:00:25 +0000\n// \n\nstd::string *__usercall MusicDownloadManager::pathForSFX@<X0>(__int64 a1@<X1>, std::string *a2@<X8>)\n{\n  void **v4; // x1\n  std::string::size_type v5; // x2\n  void *__p[2]; // [xsp+8h] [xbp-38h] BYREF\n  unsigned __int8 v8; // [xsp+1Fh] [xbp-21h]\n\n  MusicDownloadManager::pathForSFXFolder();\n  std::string::append(a2, \"s\");\n  GameToolbox::intToString(a1, __p);\n  if ( (v8 & 0x80u) == 0 )\n    v4 = __p;\n  else\n    v4 = (void **)__p[0];\n  if ( (v8 & 0x80u) == 0 )\n    v5 = v8;\n  else\n    v5 = (std::string::size_type)__p[1];\n  std::string::append(a2, (const std::string::value_type *)v4, v5);\n  if ( (char)v8 < 0 )\n    operator delete(__p[0]);\n  return std::string::append(a2, \".ogg\");\n}", "assembly": "; \n; MusicDownloadManager::pathForSFX from 0x1001d586c to 0x1001d5900 (148 bytes)\n; \n; 20 xrefs:\n; > SecretLayer5::onSubmit @ 0x10007d76c\n; > SecretLayer5::animateHead @ 0x10007e0fc\n; > SecretLayer5::showSuccessAnimation @ 0x10007e8d0\n; > SecretLayer5::showSuccessAnimation @ 0x10007e910\n; > SecretLayer5::showSuccessAnimation @ 0x10007e960\n; > SecretLayer5::showSuccessAnimation @ 0x10007e9a8\n; > SecretLayer5::showFailAnimation @ 0x10007ee24\n; > SecretLayer5::showFailAnimation @ 0x10007ee64\n; > sub_10007F0DC @ 0x10007f100\n; > MusicDownloadManager::isSFXDownloaded @ 0x1001d57cc\n; > MusicDownloadManager::onDownloadSFXCompleted @ 0x1001de924\n; > sub_1001DFE8C @ 0x1001dfea4\n; > sub_10021378C @ 0x100213958\n; > SetupSFXPopup::onClose @ 0x100213bc4\n; > RewardUnlockLayer::playRewardEffect @ 0x10025ba2c\n; > GJBaseGameLayer::processSFXObjects @ 0x10027c850\n; > CustomSFXWidget::onPlayback @ 0x10038c554\n; > sub_10038D590 @ 0x10038d5bc\n; > sub_1003AF1A8 @ 0x1003af1fc\n; > sub_1004CBA00 @ 0x1004cba38\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:00:25 +0000\n; \nSUB             SP, SP, #0x50                                          ; +0x0, 0x1001d586c\nSTP             X22, X21, [SP,#0x40+var_20]                            ; +0x4, 0x1001d5870\nSTP             X20, X19, [SP,#0x40+var_10]                            ; +0x8, 0x1001d5874\nSTP             X29, X30, [SP,#0x40+var_s0]                            ; +0xc, 0x1001d5878\nADD             X29, SP, #0x40                                         ; +0x10, 0x1001d587c\nMOV             X20, X1                                                ; +0x14, 0x1001d5880\nMOV             X19, X8                                                ; +0x18, 0x1001d5884\nBL              MusicDownloadManager__pathForSFXFolder                 ; +0x1c, 0x1001d5888\nADRL            X1, aS_0; \"s\"                                          ; +0x20, 0x1001d588c\nMOV             X0, X19; this                                          ; +0x28, 0x1001d5894\nBL              __ZNSt3__112basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEE6appendEPKc; std::string::append(char const*) ; +0x2c, 0x1001d5898\nADD             X21, SP, #0x40+__p                                     ; +0x30, 0x1001d589c\nADD             X8, SP, #0x40+__p                                      ; +0x34, 0x1001d58a0\nMOV             X0, X20                                                ; +0x38, 0x1001d58a4\nBL              GameToolbox__intToString                               ; +0x3c, 0x1001d58a8\nLDRB            W8, [SP,#0x40+var_21]                                  ; +0x40, 0x1001d58ac\nSXTB            W9, W8                                                 ; +0x44, 0x1001d58b0\nLDP             X10, X11, [SP,#0x40+__p]                               ; +0x48, 0x1001d58b4\nCMP             W9, #0                                                 ; +0x4c, 0x1001d58b8\nCSEL            X1, X10, X21, LT; __s                                  ; +0x50, 0x1001d58bc\nCSEL            X2, X11, X8, LT; __n                                   ; +0x54, 0x1001d58c0\nMOV             X0, X19; this                                          ; +0x58, 0x1001d58c4\nBL              __ZNSt3__112basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEE6appendEPKcm; std::string::append(char const*,ulong) ; +0x5c, 0x1001d58c8\nLDRSB           W8, [SP,#0x40+var_21]                                  ; +0x60, 0x1001d58cc\nTBZ             W8, #0x1F, loc_1001D58DC                               ; +0x64, 0x1001d58d0\nLDR             X0, [SP,#0x40+__p]; __p                                ; +0x68, 0x1001d58d4\nBL              __ZdlPv; operator delete(void *)                       ; +0x6c, 0x1001d58d8\nADRL            X1, aOgg; \".ogg\"                                       ; +0x70, 0x1001d58dc\nMOV             X0, X19; this                                          ; +0x78, 0x1001d58e4\nBL              __ZNSt3__112basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEE6appendEPKc; std::string::append(char const*) ; +0x7c, 0x1001d58e8\nLDP             X29, X30, [SP,#0x40+var_s0]                            ; +0x80, 0x1001d58ec\nLDP             X20, X19, [SP,#0x40+var_10]                            ; +0x84, 0x1001d58f0\nLDP             X22, X21, [SP,#0x40+var_20]                            ; +0x88, 0x1001d58f4\nADD             SP, SP, #0x50 ; 'P'                                    ; +0x8c, 0x1001d58f8\nRET                                                                    ; +0x90, 0x1001d58fc", "xrefs": ["SecretLayer5::onSubmit @ 0x10007d76c", "SecretLayer5::animateHead @ 0x10007e0fc", "SecretLayer5::showSuccessAnimation @ 0x10007e8d0", "SecretLayer5::showSuccessAnimation @ 0x10007e910", "SecretLayer5::showSuccessAnimation @ 0x10007e960", "SecretLayer5::showSuccessAnimation @ 0x10007e9a8", "SecretLayer5::showFailAnimation @ 0x10007ee24", "SecretLayer5::showFailAnimation @ 0x10007ee64", "sub_10007F0DC @ 0x10007f100", "MusicDownloadManager::isSFXDownloaded @ 0x1001d57cc", "MusicDownloadManager::onDownloadSFXCompleted @ 0x1001de924", "sub_1001DFE8C @ 0x1001dfea4", "sub_10021378C @ 0x100213958", "SetupSFXPopup::onClose @ 0x100213bc4", "RewardUnlockLayer::playRewardEffect @ 0x10025ba2c", "GJBaseGameLayer::processSFXObjects @ 0x10027c850", "CustomSFXWidget::onPlayback @ 0x10038c554", "sub_10038D590 @ 0x10038d5bc", "sub_1003AF1A8 @ 0x1003af1fc", "sub_1004CBA00 @ 0x1004cba38"], "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"}