{"type": "func", "start": 6443096128, "end": 6443096211, "name": "sub_18009D840", "pseudocode": "// \n// sub_18009D840 from 0x18009d840 to 0x18009d893 (83 bytes)\n// \n// 2 xrefs:\n// > cocos2d::CCScheduler::scheduleSelector @ 0x1800c20bb\n// > <???> @ 0x1801b741c\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 __fastcall sub_18009D840(__int64 a1, int a2)\n{\n  unsigned int i; // r8d\n  void *v5; // rcx\n\n  for ( i = *(_DWORD *)(a1 + 4); i < a2 + *(_DWORD *)a1; i = *(_DWORD *)(a1 + 4) )\n  {\n    v5 = *(void **)(a1 + 16);\n    *(_DWORD *)(a1 + 4) = 2 * i;\n    *(_QWORD *)(a1 + 16) = realloc(v5, 16LL * i);\n  }\n}", "assembly": "; \n; sub_18009D840 from 0x18009d840 to 0x18009d893 (83 bytes)\n; \n; 2 xrefs:\n; > cocos2d::CCScheduler::scheduleSelector @ 0x1800c20bb\n; > <???> @ 0x1801b741c\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, 0x18009d840\npush    rdi                                                            ; +0x5, 0x18009d845\nsub     rsp, 20h                                                       ; +0x6, 0x18009d846\nmov     r8d, [rcx+4]                                                   ; +0xa, 0x18009d84a\nmov     rbx, rcx                                                       ; +0xe, 0x18009d84e\nmov     ecx, [rcx]                                                     ; +0x11, 0x18009d851\nmov     edi, edx                                                       ; +0x13, 0x18009d853\nadd     ecx, edx                                                       ; +0x15, 0x18009d855\ncmp     r8d, ecx                                                       ; +0x17, 0x18009d857\njnb     short loc_18009D888                                            ; +0x1a, 0x18009d85a\nnop     dword ptr [rax+00h]                                            ; +0x1c, 0x18009d85c\nmov     rcx, [rbx+10h]; Block                                          ; +0x20, 0x18009d860\nlea     eax, [r8+r8]                                                   ; +0x24, 0x18009d864\nmov     edx, eax                                                       ; +0x28, 0x18009d868\nshl     rdx, 3; Size                                                   ; +0x2a, 0x18009d86a\nmov     [rbx+4], eax                                                   ; +0x2e, 0x18009d86e\ncall    cs:realloc                                                     ; +0x31, 0x18009d871\nmov     [rbx+10h], rax                                                 ; +0x37, 0x18009d877\nmov     ecx, [rbx]                                                     ; +0x3b, 0x18009d87b\nmov     r8d, [rbx+4]                                                   ; +0x3d, 0x18009d87d\nadd     ecx, edi                                                       ; +0x41, 0x18009d881\ncmp     r8d, ecx                                                       ; +0x43, 0x18009d883\njb      short loc_18009D860                                            ; +0x46, 0x18009d886\nmov     rbx, [rsp+28h+arg_0]                                           ; +0x48, 0x18009d888\nadd     rsp, 20h                                                       ; +0x4d, 0x18009d88d\npop     rdi                                                            ; +0x51, 0x18009d891\nretn                                                                   ; +0x52, 0x18009d892", "xrefs": ["cocos2d::CCScheduler::scheduleSelector @ 0x1800c20bb", "<???> @ 0x1801b741c"], "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"}