{"type": "func", "start": 4300582784, "end": 4300583046, "name": "GameLevelManager::getAllUsedSongIDs", "pseudocode": "// \n// GameLevelManager::getAllUsedSongIDs from 0x10055af80 to 0x10055b086 (262 bytes)\n// \n// 1 xrefs:\n// > MusicDownloadManager::clearUnusedSongs @ 0x10058ebb9\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\ncocos2d::CCDictionary *__fastcall GameLevelManager::getAllUsedSongIDs(GameLevelManager *a1)\n{\n  cocos2d::CCDictionary *v1; // rbx\n  cocos2d::CCDictionary *m_onlineLevels; // rax\n  cocos2d::CCDictElement *m_pElements; // r14\n  cocos2d::CCObject *m_pObject; // r15\n  intptr_t m_unknown2; // rsi\n  cocos2d::CCNode *v6; // rax\n  cocos2d::CCArray *m_localLevels; // r14\n  unsigned int v8; // r15d\n  __int64 v9; // rax\n  __int64 v10; // r12\n  intptr_t v11; // rsi\n  cocos2d::CCNode *v12; // rax\n\n  v1 = cocos2d::CCDictionary::create();\n  m_onlineLevels = a1->m_onlineLevels;\n  if ( m_onlineLevels )\n  {\n    m_pElements = m_onlineLevels->m_pElements;\n    while ( m_pElements )\n    {\n      m_pObject = m_pElements->m_pObject;\n      m_pElements = (cocos2d::CCDictElement *)m_pElements->hh.next;\n      if ( !BYTE1(m_pObject[17].m_unknown2) )\n      {\n        m_unknown2 = m_pObject[10].m_unknown2;\n        if ( m_unknown2 > 0 && !cocos2d::CCDictionary::objectForKey(v1, m_unknown2) )\n        {\n          v6 = cocos2d::CCNode::create();\n          cocos2d::CCDictionary::setObject(v1, v6, m_pObject[10].m_unknown2);\n        }\n      }\n    }\n  }\n  m_localLevels = LocalLevelManager::sharedState()->m_localLevels;\n  if ( (unsigned int)sub_100720070(m_localLevels) )\n  {\n    v8 = 0;\n    do\n    {\n      v9 = sub_1007200C0(m_localLevels, v8);\n      if ( !*(_BYTE *)(v9 + 993) )\n      {\n        v10 = v9;\n        v11 = *(int *)(v9 + 600);\n        if ( v11 > 0 && !cocos2d::CCDictionary::objectForKey(v1, v11) )\n        {\n          v12 = cocos2d::CCNode::create();\n          cocos2d::CCDictionary::setObject(v1, v12, *(int *)(v10 + 600));\n        }\n      }\n      ++v8;\n    }\n    while ( v8 < (unsigned int)sub_100720070(m_localLevels) );\n  }\n  return v1;\n}", "assembly": "; \n; GameLevelManager::getAllUsedSongIDs from 0x10055af80 to 0x10055b086 (262 bytes)\n; \n; 1 xrefs:\n; > MusicDownloadManager::clearUnusedSongs @ 0x10058ebb9\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\npush    rbp                                                            ; +0x0, 0x10055af80\nmov     rbp, rsp                                                       ; +0x1, 0x10055af81\npush    r15                                                            ; +0x4, 0x10055af84\npush    r14                                                            ; +0x6, 0x10055af86\npush    r12                                                            ; +0x8, 0x10055af88\npush    rbx                                                            ; +0xa, 0x10055af8a\nmov     r14, rdi                                                       ; +0xb, 0x10055af8b\ncall    cocos2d__CCDictionary__create                                  ; +0xe, 0x10055af8e\nmov     rbx, rax                                                       ; +0x13, 0x10055af93\nmov     rax, [r14+168h]                                                ; +0x16, 0x10055af96\ntest    rax, rax                                                       ; +0x1d, 0x10055af9d\njz      short loc_10055AFFF                                            ; +0x20, 0x10055afa0\nmov     r14, [rax+38h]                                                 ; +0x22, 0x10055afa2\nnop     word ptr [rax+rax+00000000h]                                   ; +0x26, 0x10055afa6\ntest    r14, r14                                                       ; +0x30, 0x10055afb0\njz      short loc_10055AFFF                                            ; +0x33, 0x10055afb3\nmov     r15, [r14+108h]                                                ; +0x35, 0x10055afb5\nmov     r14, [r14+120h]                                                ; +0x3c, 0x10055afbc\ncmp     byte ptr [r15+3E1h], 0                                         ; +0x43, 0x10055afc3\njnz     short loc_10055AFB0                                            ; +0x4b, 0x10055afcb\nmovsxd  rsi, dword ptr [r15+258h]                                      ; +0x4d, 0x10055afcd\ntest    rsi, rsi                                                       ; +0x54, 0x10055afd4\njle     short loc_10055AFB0                                            ; +0x57, 0x10055afd7\nmov     rdi, rbx                                                       ; +0x59, 0x10055afd9\ncall    cocos2d__CCDictionary__objectForKey                            ; +0x5c, 0x10055afdc\ntest    rax, rax                                                       ; +0x61, 0x10055afe1\njnz     short loc_10055AFB0                                            ; +0x64, 0x10055afe4\ncall    cocos2d__CCNode__create                                        ; +0x66, 0x10055afe6\nmovsxd  rdx, dword ptr [r15+258h]                                      ; +0x6b, 0x10055afeb\nmov     rdi, rbx                                                       ; +0x72, 0x10055aff2\nmov     rsi, rax                                                       ; +0x75, 0x10055aff5\ncall    cocos2d__CCDictionary__setObject                               ; +0x78, 0x10055aff8\njmp     short loc_10055AFB0                                            ; +0x7d, 0x10055affd\ncall    LocalLevelManager__sharedState                                 ; +0x7f, 0x10055afff\nmov     r14, [rax+160h]                                                ; +0x84, 0x10055b004\nmov     rdi, r14                                                       ; +0x8b, 0x10055b00b\ncall    sub_100720070                                                  ; +0x8e, 0x10055b00e\ntest    eax, eax                                                       ; +0x93, 0x10055b013\njz      short loc_10055B07A                                            ; +0x95, 0x10055b015\nxor     r15d, r15d                                                     ; +0x97, 0x10055b017\njmp     short loc_10055B030                                            ; +0x9a, 0x10055b01a\nalign 20h                                                              ; +0x9c, 0x10055b01c\ninc     r15d                                                           ; +0xa0, 0x10055b020\nmov     rdi, r14                                                       ; +0xa3, 0x10055b023\ncall    sub_100720070                                                  ; +0xa6, 0x10055b026\ncmp     r15d, eax                                                      ; +0xab, 0x10055b02b\njnb     short loc_10055B07A                                            ; +0xae, 0x10055b02e\nmov     rdi, r14                                                       ; +0xb0, 0x10055b030\nmov     esi, r15d                                                      ; +0xb3, 0x10055b033\ncall    sub_1007200C0                                                  ; +0xb6, 0x10055b036\ncmp     byte ptr [rax+3E1h], 0                                         ; +0xbb, 0x10055b03b\njnz     short loc_10055B020                                            ; +0xc2, 0x10055b042\nmov     r12, rax                                                       ; +0xc4, 0x10055b044\nmovsxd  rsi, dword ptr [rax+258h]                                      ; +0xc7, 0x10055b047\ntest    rsi, rsi                                                       ; +0xce, 0x10055b04e\njle     short loc_10055B020                                            ; +0xd1, 0x10055b051\nmov     rdi, rbx                                                       ; +0xd3, 0x10055b053\ncall    cocos2d__CCDictionary__objectForKey                            ; +0xd6, 0x10055b056\ntest    rax, rax                                                       ; +0xdb, 0x10055b05b\njnz     short loc_10055B020                                            ; +0xde, 0x10055b05e\ncall    cocos2d__CCNode__create                                        ; +0xe0, 0x10055b060\nmovsxd  rdx, dword ptr [r12+258h]                                      ; +0xe5, 0x10055b065\nmov     rdi, rbx                                                       ; +0xed, 0x10055b06d\nmov     rsi, rax                                                       ; +0xf0, 0x10055b070\ncall    cocos2d__CCDictionary__setObject                               ; +0xf3, 0x10055b073\njmp     short loc_10055B020                                            ; +0xf8, 0x10055b078\nmov     rax, rbx                                                       ; +0xfa, 0x10055b07a\npop     rbx                                                            ; +0xfd, 0x10055b07d\npop     r12                                                            ; +0xfe, 0x10055b07e\npop     r14                                                            ; +0x100, 0x10055b080\npop     r15                                                            ; +0x102, 0x10055b082\npop     rbp                                                            ; +0x104, 0x10055b084\nretn                                                                   ; +0x105, 0x10055b085", "xrefs": ["MusicDownloadManager::clearUnusedSongs @ 0x10058ebb9"], "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"}