{"type": "func", "start": 4300744128, "end": 4300744390, "name": "GameLevelManager::getAllUsedSongIDs", "pseudocode": "// \n// GameLevelManager::getAllUsedSongIDs from 0x1005825c0 to 0x1005826c6 (262 bytes)\n// \n// 1 xrefs:\n// > MusicDownloadManager::clearUnusedSongs @ 0x10064ebd9\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 12:32:20 +0000\n// \n\n_QWORD *__fastcall GameLevelManager::getAllUsedSongIDs(__int64 a1, double a2)\n{\n  _QWORD *v2; // rbx\n  __int64 v3; // rax\n  __int64 v4; // r14\n  __int64 v5; // r15\n  __int64 v6; // rsi\n  void *v7; // rax\n  __int64 v8; // r14\n  unsigned int v9; // r15d\n  __int64 v10; // rax\n  __int64 v11; // r12\n  __int64 v12; // rsi\n  void *v13; // rax\n\n  v2 = cocos2d::CCDictionary::create();\n  v3 = *(_QWORD *)(a1 + 760);\n  if ( v3 )\n  {\n    v4 = *(_QWORD *)(v3 + 56);\n    while ( v4 )\n    {\n      v5 = *(_QWORD *)(v4 + 264);\n      v4 = *(_QWORD *)(v4 + 288);\n      if ( !*(_BYTE *)(v5 + 1105) )\n      {\n        v6 = *(int *)(v5 + 608);\n        if ( v6 > 0 && !cocos2d::CCDictionary::objectForKey_1((__int64)v2, v6) )\n        {\n          v7 = cocos2d::CCNode::create();\n          cocos2d::CCDictionary::setObject_1((__int64)v2, (__int64)v7, *(int *)(v5 + 608));\n        }\n      }\n    }\n  }\n  v8 = *(_QWORD *)(LocalLevelManager::sharedState(a2) + 360);\n  if ( (unsigned int)sub_1007FEF90(v8) )\n  {\n    v9 = 0;\n    do\n    {\n      v10 = sub_1007FEFE0(v8, v9);\n      if ( !*(_BYTE *)(v10 + 1105) )\n      {\n        v11 = v10;\n        v12 = *(int *)(v10 + 608);\n        if ( v12 > 0 && !cocos2d::CCDictionary::objectForKey_1((__int64)v2, v12) )\n        {\n          v13 = cocos2d::CCNode::create();\n          cocos2d::CCDictionary::setObject_1((__int64)v2, (__int64)v13, *(int *)(v11 + 608));\n        }\n      }\n      ++v9;\n    }\n    while ( v9 < (unsigned int)sub_1007FEF90(v8) );\n  }\n  return v2;\n}", "assembly": "; \n; GameLevelManager::getAllUsedSongIDs from 0x1005825c0 to 0x1005826c6 (262 bytes)\n; \n; 1 xrefs:\n; > MusicDownloadManager::clearUnusedSongs @ 0x10064ebd9\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 12:32:20 +0000\n; \npush    rbp                                                            ; +0x0, 0x1005825c0\nmov     rbp, rsp                                                       ; +0x1, 0x1005825c1\npush    r15                                                            ; +0x4, 0x1005825c4\npush    r14                                                            ; +0x6, 0x1005825c6\npush    r12                                                            ; +0x8, 0x1005825c8\npush    rbx                                                            ; +0xa, 0x1005825ca\nmov     r14, rdi                                                       ; +0xb, 0x1005825cb\ncall    cocos2d__CCDictionary__create                                  ; +0xe, 0x1005825ce\nmov     rbx, rax                                                       ; +0x13, 0x1005825d3\nmov     rax, [r14+2F8h]                                                ; +0x16, 0x1005825d6\ntest    rax, rax                                                       ; +0x1d, 0x1005825dd\njz      short loc_10058263F                                            ; +0x20, 0x1005825e0\nmov     r14, [rax+38h]                                                 ; +0x22, 0x1005825e2\nnop     word ptr [rax+rax+00000000h]                                   ; +0x26, 0x1005825e6\ntest    r14, r14                                                       ; +0x30, 0x1005825f0\njz      short loc_10058263F                                            ; +0x33, 0x1005825f3\nmov     r15, [r14+108h]                                                ; +0x35, 0x1005825f5\nmov     r14, [r14+120h]                                                ; +0x3c, 0x1005825fc\ncmp     byte ptr [r15+451h], 0                                         ; +0x43, 0x100582603\njnz     short loc_1005825F0                                            ; +0x4b, 0x10058260b\nmovsxd  rsi, dword ptr [r15+260h]                                      ; +0x4d, 0x10058260d\ntest    rsi, rsi                                                       ; +0x54, 0x100582614\njle     short loc_1005825F0                                            ; +0x57, 0x100582617\nmov     rdi, rbx                                                       ; +0x59, 0x100582619\ncall    cocos2d__CCDictionary__objectForKey_1                          ; +0x5c, 0x10058261c\ntest    rax, rax                                                       ; +0x61, 0x100582621\njnz     short loc_1005825F0                                            ; +0x64, 0x100582624\ncall    cocos2d__CCNode__create                                        ; +0x66, 0x100582626\nmovsxd  rdx, dword ptr [r15+260h]                                      ; +0x6b, 0x10058262b\nmov     rdi, rbx                                                       ; +0x72, 0x100582632\nmov     rsi, rax                                                       ; +0x75, 0x100582635\ncall    cocos2d__CCDictionary__setObject_1                             ; +0x78, 0x100582638\njmp     short loc_1005825F0                                            ; +0x7d, 0x10058263d\ncall    LocalLevelManager__sharedState                                 ; +0x7f, 0x10058263f\nmov     r14, [rax+168h]                                                ; +0x84, 0x100582644\nmov     rdi, r14                                                       ; +0x8b, 0x10058264b\ncall    sub_1007FEF90                                                  ; +0x8e, 0x10058264e\ntest    eax, eax                                                       ; +0x93, 0x100582653\njz      short loc_1005826BA                                            ; +0x95, 0x100582655\nxor     r15d, r15d                                                     ; +0x97, 0x100582657\njmp     short loc_100582670                                            ; +0x9a, 0x10058265a\nalign 20h                                                              ; +0x9c, 0x10058265c\ninc     r15d                                                           ; +0xa0, 0x100582660\nmov     rdi, r14                                                       ; +0xa3, 0x100582663\ncall    sub_1007FEF90                                                  ; +0xa6, 0x100582666\ncmp     r15d, eax                                                      ; +0xab, 0x10058266b\njnb     short loc_1005826BA                                            ; +0xae, 0x10058266e\nmov     rdi, r14                                                       ; +0xb0, 0x100582670\nmov     esi, r15d                                                      ; +0xb3, 0x100582673\ncall    sub_1007FEFE0                                                  ; +0xb6, 0x100582676\ncmp     byte ptr [rax+451h], 0                                         ; +0xbb, 0x10058267b\njnz     short loc_100582660                                            ; +0xc2, 0x100582682\nmov     r12, rax                                                       ; +0xc4, 0x100582684\nmovsxd  rsi, dword ptr [rax+260h]                                      ; +0xc7, 0x100582687\ntest    rsi, rsi                                                       ; +0xce, 0x10058268e\njle     short loc_100582660                                            ; +0xd1, 0x100582691\nmov     rdi, rbx                                                       ; +0xd3, 0x100582693\ncall    cocos2d__CCDictionary__objectForKey_1                          ; +0xd6, 0x100582696\ntest    rax, rax                                                       ; +0xdb, 0x10058269b\njnz     short loc_100582660                                            ; +0xde, 0x10058269e\ncall    cocos2d__CCNode__create                                        ; +0xe0, 0x1005826a0\nmovsxd  rdx, dword ptr [r12+260h]                                      ; +0xe5, 0x1005826a5\nmov     rdi, rbx                                                       ; +0xed, 0x1005826ad\nmov     rsi, rax                                                       ; +0xf0, 0x1005826b0\ncall    cocos2d__CCDictionary__setObject_1                             ; +0xf3, 0x1005826b3\njmp     short loc_100582660                                            ; +0xf8, 0x1005826b8\nmov     rax, rbx                                                       ; +0xfa, 0x1005826ba\npop     rbx                                                            ; +0xfd, 0x1005826bd\npop     r12                                                            ; +0xfe, 0x1005826be\npop     r14                                                            ; +0x100, 0x1005826c0\npop     r15                                                            ; +0x102, 0x1005826c2\npop     rbp                                                            ; +0x104, 0x1005826c4\nretn                                                                   ; +0x105, 0x1005826c5", "xrefs": ["MusicDownloadManager::clearUnusedSongs @ 0x10064ebd9"], "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"}