{"type": "func", "start": 5372105824, "end": 5372105958, "name": "MusicDownloadManager::removeMusicDownloadDelegate", "pseudocode": "// \n// MusicDownloadManager::removeMusicDownloadDelegate from 0x14033d460 to 0x14033d4e6 (134 bytes)\n// \n// 8 xrefs:\n// > sub_140083690 @ 0x140083743\n// > sub_1400C05A0 @ 0x1400c05f1\n// > sub_1400C8160 @ 0x1400c81b1\n// > sub_1400DEE40 @ 0x1400def1d\n// > sub_140338500 @ 0x1403385dd\n// > sub_14045C6F0 @ 0x14045c7cd\n// > sub_14047E560 @ 0x14047e62f\n// > <???> @ 0x1406d55d0\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\nvoid MusicDownloadManager::removeMusicDownloadDelegate(MusicDownloadManager *a1, MusicDownloadDelegate *a2)\n{\n  unsigned int v4; // ebx\n  struct cocos2d::CCObject *v5; // rax\n  cocos2d::CCArray *m_musicDownloadDelegates; // rcx\n\n  v4 = 0;\n  if ( cocos2d::CCArray::count(a1->m_musicDownloadDelegates) )\n  {\n    while ( 1 )\n    {\n      v5 = cocos2d::CCArray::objectAtIndex(a1->m_musicDownloadDelegates, v4);\n      m_musicDownloadDelegates = a1->m_musicDownloadDelegates;\n      if ( *(MusicDownloadDelegate **)&v5[5].m_unknown2 == a2 )\n        break;\n      if ( ++v4 >= cocos2d::CCArray::count(m_musicDownloadDelegates) )\n        return;\n    }\n    cocos2d::CCArray::removeObjectAtIndex(m_musicDownloadDelegates, v4, 1);\n  }\n}", "assembly": "; \n; MusicDownloadManager::removeMusicDownloadDelegate from 0x14033d460 to 0x14033d4e6 (134 bytes)\n; \n; 8 xrefs:\n; > sub_140083690 @ 0x140083743\n; > sub_1400C05A0 @ 0x1400c05f1\n; > sub_1400C8160 @ 0x1400c81b1\n; > sub_1400DEE40 @ 0x1400def1d\n; > sub_140338500 @ 0x1403385dd\n; > sub_14045C6F0 @ 0x14045c7cd\n; > sub_14047E560 @ 0x14047e62f\n; > <???> @ 0x1406d55d0\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, 0x14033d460\nmov     [rsp+arg_8], rsi                                               ; +0x5, 0x14033d465\npush    rdi                                                            ; +0xa, 0x14033d46a\nsub     rsp, 20h                                                       ; +0xb, 0x14033d46b\nmov     rdi, rcx                                                       ; +0xf, 0x14033d46f\nmov     rsi, rdx                                                       ; +0x12, 0x14033d472\nmov     rcx, [rcx+150h]                                                ; +0x15, 0x14033d475\nxor     ebx, ebx                                                       ; +0x1c, 0x14033d47c\ncall    cs:?count@CCArray@cocos2d@@QEBAIXZ; cocos2d::CCArray::count(void) ; +0x1e, 0x14033d47e\ntest    eax, eax                                                       ; +0x24, 0x14033d484\njz      short loc_14033D4D6                                            ; +0x26, 0x14033d486\nnop     dword ptr [rax+rax+00000000h]                                  ; +0x28, 0x14033d488\nmov     rcx, [rdi+150h]                                                ; +0x30, 0x14033d490\nmov     edx, ebx                                                       ; +0x37, 0x14033d497\ncall    cs:?objectAtIndex@CCArray@cocos2d@@QEAAPEAVCCObject@2@I@Z; cocos2d::CCArray::objectAtIndex(uint) ; +0x39, 0x14033d499\nmov     rcx, [rdi+150h]                                                ; +0x3f, 0x14033d49f\ncmp     [rax+140h], rsi                                                ; +0x46, 0x14033d4a6\njz      short loc_14033D4CB                                            ; +0x4d, 0x14033d4ad\ninc     ebx                                                            ; +0x4f, 0x14033d4af\ncall    cs:?count@CCArray@cocos2d@@QEBAIXZ; cocos2d::CCArray::count(void) ; +0x51, 0x14033d4b1\ncmp     ebx, eax                                                       ; +0x57, 0x14033d4b7\njb      short loc_14033D490                                            ; +0x59, 0x14033d4b9\nmov     rbx, [rsp+28h+arg_0]                                           ; +0x5b, 0x14033d4bb\nmov     rsi, [rsp+28h+arg_8]                                           ; +0x60, 0x14033d4c0\nadd     rsp, 20h                                                       ; +0x65, 0x14033d4c5\npop     rdi                                                            ; +0x69, 0x14033d4c9\nretn                                                                   ; +0x6a, 0x14033d4ca\nmov     r8b, 1                                                         ; +0x6b, 0x14033d4cb\nmov     edx, ebx                                                       ; +0x6e, 0x14033d4ce\ncall    cs:?removeObjectAtIndex@CCArray@cocos2d@@QEAAXI_N@Z; cocos2d::CCArray::removeObjectAtIndex(uint,bool) ; +0x70, 0x14033d4d0\nmov     rbx, [rsp+28h+arg_0]                                           ; +0x76, 0x14033d4d6\nmov     rsi, [rsp+28h+arg_8]                                           ; +0x7b, 0x14033d4db\nadd     rsp, 20h                                                       ; +0x80, 0x14033d4e0\npop     rdi                                                            ; +0x84, 0x14033d4e4\nretn                                                                   ; +0x85, 0x14033d4e5", "xrefs": ["sub_140083690 @ 0x140083743", "sub_1400C05A0 @ 0x1400c05f1", "sub_1400C8160 @ 0x1400c81b1", "sub_1400DEE40 @ 0x1400def1d", "sub_140338500 @ 0x1403385dd", "sub_14045C6F0 @ 0x14045c7cd", "sub_14047E560 @ 0x14047e62f", "<???> @ 0x1406d55d0"], "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"}