{"type": "func", "start": 5372105968, "end": 5372106085, "name": "MusicDownloadManager::isRunningActionForSongID", "pseudocode": "// \n// MusicDownloadManager::isRunningActionForSongID from 0x14033d4f0 to 0x14033d565 (117 bytes)\n// \n// 5 xrefs:\n// > CustomSFXWidget::init @ 0x1400c1616\n// > CustomSFXWidget::updateSFXInfo @ 0x1400c23e6\n// > CustomSongWidget::init @ 0x1400c95b5\n// > CustomSongWidget::updateSongInfo @ 0x1400cbd94\n// > <???> @ 0x1406d55dc\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\nbool MusicDownloadManager::isRunningActionForSongID(MusicDownloadManager *a1, int a2)\n{\n  cocos2d::CCString *v4; // rax\n  const char *CString; // rax\n  cocos2d::CCString *v6; // rax\n  const char *v7; // rax\n  __int64 AchievementsWithID; // rax\n\n  v4 = cocos2d::CCString::createWithFormat(\"i_%i\", a2);\n  CString = cocos2d::CCString::getCString(v4);\n  if ( AchievementManager::getAchievementsWithID((__int64)a1, (__int64)CString)\n    || (v6 = cocos2d::CCString::createWithFormat(\"d_%i\", a2),\n        v7 = cocos2d::CCString::getCString(v6),\n        (AchievementsWithID = AchievementManager::getAchievementsWithID((__int64)a1, (__int64)v7)) != 0) )\n  {\n    LOBYTE(AchievementsWithID) = 1;\n  }\n  return AchievementsWithID;\n}", "assembly": "; \n; MusicDownloadManager::isRunningActionForSongID from 0x14033d4f0 to 0x14033d565 (117 bytes)\n; \n; 5 xrefs:\n; > CustomSFXWidget::init @ 0x1400c1616\n; > CustomSFXWidget::updateSFXInfo @ 0x1400c23e6\n; > CustomSongWidget::init @ 0x1400c95b5\n; > CustomSongWidget::updateSongInfo @ 0x1400cbd94\n; > <???> @ 0x1406d55dc\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\nmov     [rsp+arg_0], rbx                                               ; +0x0, 0x14033d4f0\npush    rdi                                                            ; +0x5, 0x14033d4f5\nsub     rsp, 20h                                                       ; +0x6, 0x14033d4f6\nmov     rdi, rcx                                                       ; +0xa, 0x14033d4fa\nmov     ebx, edx                                                       ; +0xd, 0x14033d4fd\nlea     rcx, aII_3; \"i_%i\"                                             ; +0xf, 0x14033d4ff\ncall    cs:?createWithFormat@CCString@cocos2d@@SAPEAV12@PEBDZZ; cocos2d::CCString::createWithFormat(char const *,...) ; +0x16, 0x14033d506\nmov     rcx, rax                                                       ; +0x1c, 0x14033d50c\ncall    cs:?getCString@CCString@cocos2d@@QEBAPEBDXZ; cocos2d::CCString::getCString(void) ; +0x1f, 0x14033d50f\nmov     rdx, rax                                                       ; +0x25, 0x14033d515\nmov     rcx, rdi                                                       ; +0x28, 0x14033d518\ncall    AchievementManager__getAchievementsWithID; Merged with: AchievementManager::getAchievementsWithID, MusicDownloadManager::getDLObject ; +0x2b, 0x14033d51b\ntest    rax, rax                                                       ; +0x30, 0x14033d520\njnz     short loc_14033D558                                            ; +0x33, 0x14033d523\nmov     edx, ebx                                                       ; +0x35, 0x14033d525\nlea     rcx, aDI; \"d_%i\"                                               ; +0x37, 0x14033d527\ncall    cs:?createWithFormat@CCString@cocos2d@@SAPEAV12@PEBDZZ; cocos2d::CCString::createWithFormat(char const *,...) ; +0x3e, 0x14033d52e\nmov     rcx, rax                                                       ; +0x44, 0x14033d534\ncall    cs:?getCString@CCString@cocos2d@@QEBAPEBDXZ; cocos2d::CCString::getCString(void) ; +0x47, 0x14033d537\nmov     rdx, rax                                                       ; +0x4d, 0x14033d53d\nmov     rcx, rdi                                                       ; +0x50, 0x14033d540\ncall    AchievementManager__getAchievementsWithID; Merged with: AchievementManager::getAchievementsWithID, MusicDownloadManager::getDLObject ; +0x53, 0x14033d543\ntest    rax, rax                                                       ; +0x58, 0x14033d548\njnz     short loc_14033D558                                            ; +0x5b, 0x14033d54b\nmov     rbx, [rsp+28h+arg_0]                                           ; +0x5d, 0x14033d54d\nadd     rsp, 20h                                                       ; +0x62, 0x14033d552\npop     rdi                                                            ; +0x66, 0x14033d556\nretn                                                                   ; +0x67, 0x14033d557\nmov     rbx, [rsp+28h+arg_0]                                           ; +0x68, 0x14033d558\nmov     al, 1                                                          ; +0x6d, 0x14033d55d\nadd     rsp, 20h                                                       ; +0x6f, 0x14033d55f\npop     rdi                                                            ; +0x73, 0x14033d563\nretn                                                                   ; +0x74, 0x14033d564", "xrefs": ["CustomSFXWidget::init @ 0x1400c1616", "CustomSFXWidget::updateSFXInfo @ 0x1400c23e6", "CustomSongWidget::init @ 0x1400c95b5", "CustomSongWidget::updateSongInfo @ 0x1400cbd94", "<???> @ 0x1406d55dc"], "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"}