{"type": "func", "start": 5373469312, "end": 5373469445, "name": "MusicDownloadManager::syncCustomSFXPlacements", "pseudocode": "// \n// MusicDownloadManager::syncCustomSFXPlacements from 0x14048a280 to 0x14048a305 (133 bytes)\n// \n// 5 xrefs:\n// > MusicDownloadManager::decodeCustomSFX @ 0x14048a8cd\n// > MusicDownloadManager::parseSFXLibrary @ 0x1404909ea\n// > <???> @ 0x1408d0938\n// > <???> @ 0x1408d0948\n// > <???> @ 0x140928d18\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:48 +0000\n// \n\nvoid __fastcall MusicDownloadManager::syncCustomSFXPlacements(__int64 a1)\n{\n  __int64 v1; // rdi\n  __int64 v3; // rdi\n  __int64 i; // rbx\n  __int64 v5; // rdi\n  cocos2d::CCDictionary *v6; // rcx\n  struct cocos2d::CCObject *v7; // rax\n\n  v1 = *(_QWORD *)(a1 + 920);\n  if ( v1 )\n  {\n    v3 = *(_QWORD *)(v1 + 56);\n    if ( v3 )\n    {\n      for ( i = *(_QWORD *)(v3 + 288); ; i = *(_QWORD *)(i + 288) )\n      {\n        v5 = *(_QWORD *)(v3 + 264);\n        if ( !*(_BYTE *)(v5 + 72) )\n        {\n          v6 = *(cocos2d::CCDictionary **)(a1 + 408);\n          if ( v6 )\n          {\n            v7 = cocos2d::CCDictionary::objectForKey(v6, *(int *)(v5 + 56));\n            if ( v7 )\n            {\n              *(_DWORD *)(v5 + 64) = *((_DWORD *)v7 + 16);\n              *(_DWORD *)(v5 + 68) = *((_DWORD *)v7 + 17);\n            }\n          }\n        }\n        v3 = i;\n        if ( !i )\n          break;\n      }\n    }\n  }\n}", "assembly": "; \n; MusicDownloadManager::syncCustomSFXPlacements from 0x14048a280 to 0x14048a305 (133 bytes)\n; \n; 5 xrefs:\n; > MusicDownloadManager::decodeCustomSFX @ 0x14048a8cd\n; > MusicDownloadManager::parseSFXLibrary @ 0x1404909ea\n; > <???> @ 0x1408d0938\n; > <???> @ 0x1408d0948\n; > <???> @ 0x140928d18\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:48 +0000\n; \nmov     [rsp+arg_8], rsi                                               ; +0x0, 0x14048a280\npush    rdi                                                            ; +0x5, 0x14048a285\nsub     rsp, 20h                                                       ; +0x6, 0x14048a286\nmov     rdi, [rcx+398h]                                                ; +0xa, 0x14048a28a\nmov     rsi, rcx                                                       ; +0x11, 0x14048a291\ntest    rdi, rdi                                                       ; +0x14, 0x14048a294\njz      short loc_14048A2FA                                            ; +0x17, 0x14048a297\nmov     rdi, [rdi+38h]                                                 ; +0x19, 0x14048a299\ntest    rdi, rdi                                                       ; +0x1d, 0x14048a29d\njz      short loc_14048A2FA                                            ; +0x20, 0x14048a2a0\nmov     [rsp+28h+arg_0], rbx                                           ; +0x22, 0x14048a2a2\nmov     rbx, [rdi+120h]                                                ; +0x27, 0x14048a2a7\nxchg    ax, ax                                                         ; +0x2e, 0x14048a2ae\nmov     rdi, [rdi+108h]                                                ; +0x30, 0x14048a2b0\ncmp     byte ptr [rdi+48h], 0                                          ; +0x37, 0x14048a2b7\njnz     short loc_14048A2E4                                            ; +0x3b, 0x14048a2bb\nmov     rcx, [rsi+198h]                                                ; +0x3d, 0x14048a2bd\ntest    rcx, rcx                                                       ; +0x44, 0x14048a2c4\njz      short loc_14048A2E4                                            ; +0x47, 0x14048a2c7\nmovsxd  rdx, dword ptr [rdi+38h]                                       ; +0x49, 0x14048a2c9\ncall    cs:?objectForKey@CCDictionary@cocos2d@@QEAAPEAVCCObject@2@_J@Z; cocos2d::CCDictionary::objectForKey(__int64) ; +0x4d, 0x14048a2cd\ntest    rax, rax                                                       ; +0x53, 0x14048a2d3\njz      short loc_14048A2E4                                            ; +0x56, 0x14048a2d6\nmov     ecx, [rax+40h]                                                 ; +0x58, 0x14048a2d8\nmov     [rdi+40h], ecx                                                 ; +0x5b, 0x14048a2db\nmov     eax, [rax+44h]                                                 ; +0x5e, 0x14048a2de\nmov     [rdi+44h], eax                                                 ; +0x61, 0x14048a2e1\nmov     rdi, rbx                                                       ; +0x64, 0x14048a2e4\ntest    rbx, rbx                                                       ; +0x67, 0x14048a2e7\njz      short loc_14048A2F5                                            ; +0x6a, 0x14048a2ea\nmov     rbx, [rbx+120h]                                                ; +0x6c, 0x14048a2ec\njmp     short loc_14048A2B0                                            ; +0x73, 0x14048a2f3\nmov     rbx, [rsp+28h+arg_0]                                           ; +0x75, 0x14048a2f5\nmov     rsi, [rsp+28h+arg_8]                                           ; +0x7a, 0x14048a2fa\nadd     rsp, 20h                                                       ; +0x7f, 0x14048a2ff\npop     rdi                                                            ; +0x83, 0x14048a303\nretn                                                                   ; +0x84, 0x14048a304", "xrefs": ["MusicDownloadManager::decodeCustomSFX @ 0x14048a8cd", "MusicDownloadManager::parseSFXLibrary @ 0x1404909ea", "<???> @ 0x1408d0938", "<???> @ 0x1408d0948", "<???> @ 0x140928d18"], "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"}