{"type": "func", "start": 5373438064, "end": 5373438181, "name": "MusicDownloadManager::isRunningActionForSongID", "pseudocode": "// \n// MusicDownloadManager::isRunningActionForSongID from 0x140482870 to 0x1404828e5 (117 bytes)\n// \n// 5 xrefs:\n// > CustomSFXWidget::init @ 0x1401617a6\n// > CustomSFXWidget::updateSFXInfo @ 0x140162b2e\n// > CustomSongWidget::init @ 0x14016a672\n// > CustomSongWidget::updateSongInfo @ 0x14016ccd4\n// > <???> @ 0x1409289dc\n// \n// This function is hookable on this platform (idp: pc, 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:32:45 +0000\n// \n\nchar __fastcall MusicDownloadManager::isRunningActionForSongID(__int64 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(a1, (__int64)CString)\n    || (v6 = cocos2d::CCString::createWithFormat(\"d_%i\", a2),\n        v7 = cocos2d::CCString::getCString(v6),\n        (AchievementsWithID = AchievementManager::getAchievementsWithID(a1, (__int64)v7)) != 0) )\n  {\n    LOBYTE(AchievementsWithID) = 1;\n  }\n  return AchievementsWithID;\n}", "assembly": "; \n; MusicDownloadManager::isRunningActionForSongID from 0x140482870 to 0x1404828e5 (117 bytes)\n; \n; 5 xrefs:\n; > CustomSFXWidget::init @ 0x1401617a6\n; > CustomSFXWidget::updateSFXInfo @ 0x140162b2e\n; > CustomSongWidget::init @ 0x14016a672\n; > CustomSongWidget::updateSongInfo @ 0x14016ccd4\n; > <???> @ 0x1409289dc\n; \n; This function is hookable on this platform (idp: pc, 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:32:45 +0000\n; \nmov     [rsp+arg_0], rbx                                               ; +0x0, 0x140482870\npush    rdi                                                            ; +0x5, 0x140482875\nsub     rsp, 20h                                                       ; +0x6, 0x140482876\nmov     rdi, rcx                                                       ; +0xa, 0x14048287a\nmov     ebx, edx                                                       ; +0xd, 0x14048287d\nlea     rcx, aII_4; \"i_%i\"                                             ; +0xf, 0x14048287f\ncall    cs:?createWithFormat@CCString@cocos2d@@SAPEAV12@PEBDZZ; cocos2d::CCString::createWithFormat(char const *,...) ; +0x16, 0x140482886\nmov     rcx, rax                                                       ; +0x1c, 0x14048288c\ncall    cs:?getCString@CCString@cocos2d@@QEBAPEBDXZ; cocos2d::CCString::getCString(void) ; +0x1f, 0x14048288f\nmov     rdx, rax                                                       ; +0x25, 0x140482895\nmov     rcx, rdi                                                       ; +0x28, 0x140482898\ncall    AchievementManager__getAchievementsWithID; Merged with: AchievementManager::getAchievementsWithID, MusicDownloadManager::getDLObject ; +0x2b, 0x14048289b\ntest    rax, rax                                                       ; +0x30, 0x1404828a0\njnz     short loc_1404828D8                                            ; +0x33, 0x1404828a3\nmov     edx, ebx                                                       ; +0x35, 0x1404828a5\nlea     rcx, aDI; \"d_%i\"                                               ; +0x37, 0x1404828a7\ncall    cs:?createWithFormat@CCString@cocos2d@@SAPEAV12@PEBDZZ; cocos2d::CCString::createWithFormat(char const *,...) ; +0x3e, 0x1404828ae\nmov     rcx, rax                                                       ; +0x44, 0x1404828b4\ncall    cs:?getCString@CCString@cocos2d@@QEBAPEBDXZ; cocos2d::CCString::getCString(void) ; +0x47, 0x1404828b7\nmov     rdx, rax                                                       ; +0x4d, 0x1404828bd\nmov     rcx, rdi                                                       ; +0x50, 0x1404828c0\ncall    AchievementManager__getAchievementsWithID; Merged with: AchievementManager::getAchievementsWithID, MusicDownloadManager::getDLObject ; +0x53, 0x1404828c3\ntest    rax, rax                                                       ; +0x58, 0x1404828c8\njnz     short loc_1404828D8                                            ; +0x5b, 0x1404828cb\nmov     rbx, [rsp+28h+arg_0]                                           ; +0x5d, 0x1404828cd\nadd     rsp, 20h                                                       ; +0x62, 0x1404828d2\npop     rdi                                                            ; +0x66, 0x1404828d6\nretn                                                                   ; +0x67, 0x1404828d7\nmov     rbx, [rsp+28h+arg_0]                                           ; +0x68, 0x1404828d8\nmov     al, 1                                                          ; +0x6d, 0x1404828dd\nadd     rsp, 20h                                                       ; +0x6f, 0x1404828df\npop     rdi                                                            ; +0x73, 0x1404828e3\nretn                                                                   ; +0x74, 0x1404828e4", "xrefs": ["CustomSFXWidget::init @ 0x1401617a6", "CustomSFXWidget::updateSFXInfo @ 0x140162b2e", "CustomSongWidget::init @ 0x14016a672", "CustomSongWidget::updateSongInfo @ 0x14016ccd4", "<???> @ 0x1409289dc"], "is_objc": false, "is_32_bit": false, "is_64_bit": true, "idp_name": "pc", "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"}