{"type": "func", "start": 6443095520, "end": 6443095568, "name": "sub_18009D5E0", "pseudocode": "// \n// sub_18009D5E0 from 0x18009d5e0 to 0x18009d610 (48 bytes)\n// \n// 3 xrefs:\n// > cocos2d::CCActionManager::addAction @ 0x180037e03\n// > cocos2d::CCScheduler::scheduleSelector @ 0x1800c2165\n// > <???> @ 0x1801b73d4\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\n__int64 __fastcall sub_18009D5E0(__int64 a1, cocos2d::CCObject *a2)\n{\n  __int64 result; // rax\n\n  cocos2d::CCObject::retain(a2);\n  result = *(_QWORD *)(a1 + 16);\n  *(_QWORD *)(result + 8LL * (unsigned int)(*(_DWORD *)a1)++) = a2;\n  return result;\n}", "assembly": "; \n; sub_18009D5E0 from 0x18009d5e0 to 0x18009d610 (48 bytes)\n; \n; 3 xrefs:\n; > cocos2d::CCActionManager::addAction @ 0x180037e03\n; > cocos2d::CCScheduler::scheduleSelector @ 0x1800c2165\n; > <???> @ 0x1801b73d4\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, 0x18009d5e0\npush    rdi                                                            ; +0x5, 0x18009d5e5\nsub     rsp, 20h                                                       ; +0x6, 0x18009d5e6\nmov     rdi, rcx                                                       ; +0xa, 0x18009d5ea\nmov     rbx, rdx                                                       ; +0xd, 0x18009d5ed\nmov     rcx, rdx; this                                                 ; +0x10, 0x18009d5f0\ncall    ?retain@CCObject@cocos2d@@QEAAXXZ; cocos2d::CCObject::retain(void) ; +0x13, 0x18009d5f3\nmov     r8d, [rdi]                                                     ; +0x18, 0x18009d5f8\nmov     rax, [rdi+10h]                                                 ; +0x1b, 0x18009d5fb\nmov     [rax+r8*8], rbx                                                ; +0x1f, 0x18009d5ff\ninc     dword ptr [rdi]                                                ; +0x23, 0x18009d603\nmov     rbx, [rsp+28h+arg_0]                                           ; +0x25, 0x18009d605\nadd     rsp, 20h                                                       ; +0x2a, 0x18009d60a\npop     rdi                                                            ; +0x2e, 0x18009d60e\nretn                                                                   ; +0x2f, 0x18009d60f", "xrefs": ["cocos2d::CCActionManager::addAction @ 0x180037e03", "cocos2d::CCScheduler::scheduleSelector @ 0x1800c2165", "<???> @ 0x1801b73d4"], "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"}