{"type": "func", "start": 6443111072, "end": 6443111177, "name": "sub_1800A12A0", "pseudocode": "// \n// sub_1800A12A0 from 0x1800a12a0 to 0x1800a1309 (105 bytes)\n// \n// 13 xrefs:\n// > cocos2d::CCNode::addChild @ 0x180002c08\n// > cocos2d::CCNode::insertChild @ 0x180003752\n// > cocos2d::CCArray::addObject @ 0x1800069c4\n// > cocos2d::CCArray::copyWithZone @ 0x180006ac7\n// > cocos2d::CCArray::create @ 0x180006b4a\n// > cocos2d::CCArray::create @ 0x180006b67\n// > cocos2d::CCArray::createWithObject @ 0x180006f6a\n// > cocos2d::CCArray::initWithObject @ 0x180007144\n// > cocos2d::CCArray::initWithObjects @ 0x180007197\n// > cocos2d::CCArray::initWithObjects @ 0x1800071b6\n// > cocos2d::CCParallaxNode::addChild @ 0x1800ae3d8\n// > <???> @ 0x1801c1674\n// > <???> @ 0x1801c1680\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:22:13 +0000\n// \n\n__int64 __fastcall sub_1800A12A0(__int64 a1, cocos2d::CCObject *a2)\n{\n  unsigned int i; // ecx\n  unsigned int v5; // eax\n  void *v6; // rcx\n  __int64 result; // rax\n\n  for ( i = *(_DWORD *)(a1 + 4); i < *(_DWORD *)a1 + 1; i = *(_DWORD *)(a1 + 4) )\n  {\n    v5 = 2 * i;\n    v6 = *(void **)(a1 + 16);\n    *(_DWORD *)(a1 + 4) = v5;\n    *(_QWORD *)(a1 + 16) = realloc(v6, 8LL * v5);\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_1800A12A0 from 0x1800a12a0 to 0x1800a1309 (105 bytes)\n; \n; 13 xrefs:\n; > cocos2d::CCNode::addChild @ 0x180002c08\n; > cocos2d::CCNode::insertChild @ 0x180003752\n; > cocos2d::CCArray::addObject @ 0x1800069c4\n; > cocos2d::CCArray::copyWithZone @ 0x180006ac7\n; > cocos2d::CCArray::create @ 0x180006b4a\n; > cocos2d::CCArray::create @ 0x180006b67\n; > cocos2d::CCArray::createWithObject @ 0x180006f6a\n; > cocos2d::CCArray::initWithObject @ 0x180007144\n; > cocos2d::CCArray::initWithObjects @ 0x180007197\n; > cocos2d::CCArray::initWithObjects @ 0x1800071b6\n; > cocos2d::CCParallaxNode::addChild @ 0x1800ae3d8\n; > <???> @ 0x1801c1674\n; > <???> @ 0x1801c1680\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:22:13 +0000\n; \nmov     [rsp+arg_0], rbx                                               ; +0x0, 0x1800a12a0\nmov     [rsp+arg_8], rsi                                               ; +0x5, 0x1800a12a5\npush    rdi                                                            ; +0xa, 0x1800a12aa\nsub     rsp, 20h                                                       ; +0xb, 0x1800a12ab\nmov     rbx, rcx                                                       ; +0xf, 0x1800a12af\nmov     rsi, rdx                                                       ; +0x12, 0x1800a12b2\nmov     ecx, [rcx+4]                                                   ; +0x15, 0x1800a12b5\nmov     eax, [rbx]                                                     ; +0x18, 0x1800a12b8\ninc     eax                                                            ; +0x1a, 0x1800a12ba\ncmp     ecx, eax                                                       ; +0x1c, 0x1800a12bc\njnb     short loc_1800A12E5                                            ; +0x1e, 0x1800a12be\nlea     eax, [rcx+rcx]                                                 ; +0x20, 0x1800a12c0\nmov     rcx, [rbx+10h]; Block                                          ; +0x23, 0x1800a12c3\nmov     edx, eax                                                       ; +0x27, 0x1800a12c7\nshl     rdx, 3; Size                                                   ; +0x29, 0x1800a12c9\nmov     [rbx+4], eax                                                   ; +0x2d, 0x1800a12cd\ncall    cs:realloc                                                     ; +0x30, 0x1800a12d0\nmov     [rbx+10h], rax                                                 ; +0x36, 0x1800a12d6\nmov     eax, [rbx]                                                     ; +0x3a, 0x1800a12da\nmov     ecx, [rbx+4]                                                   ; +0x3c, 0x1800a12dc\ninc     eax                                                            ; +0x3f, 0x1800a12df\ncmp     ecx, eax                                                       ; +0x41, 0x1800a12e1\njb      short loc_1800A12C0                                            ; +0x43, 0x1800a12e3\nmov     rcx, rsi; this                                                 ; +0x45, 0x1800a12e5\ncall    ?retain@CCObject@cocos2d@@QEAAXXZ; cocos2d::CCObject::retain(void) ; +0x48, 0x1800a12e8\nmov     ecx, [rbx]                                                     ; +0x4d, 0x1800a12ed\nmov     rax, [rbx+10h]                                                 ; +0x4f, 0x1800a12ef\nmov     [rax+rcx*8], rsi                                               ; +0x53, 0x1800a12f3\ninc     dword ptr [rbx]                                                ; +0x57, 0x1800a12f7\nmov     rbx, [rsp+28h+arg_0]                                           ; +0x59, 0x1800a12f9\nmov     rsi, [rsp+28h+arg_8]                                           ; +0x5e, 0x1800a12fe\nadd     rsp, 20h                                                       ; +0x63, 0x1800a1303\npop     rdi                                                            ; +0x67, 0x1800a1307\nretn                                                                   ; +0x68, 0x1800a1308", "xrefs": ["cocos2d::CCNode::addChild @ 0x180002c08", "cocos2d::CCNode::insertChild @ 0x180003752", "cocos2d::CCArray::addObject @ 0x1800069c4", "cocos2d::CCArray::copyWithZone @ 0x180006ac7", "cocos2d::CCArray::create @ 0x180006b4a", "cocos2d::CCArray::create @ 0x180006b67", "cocos2d::CCArray::createWithObject @ 0x180006f6a", "cocos2d::CCArray::initWithObject @ 0x180007144", "cocos2d::CCArray::initWithObjects @ 0x180007197", "cocos2d::CCArray::initWithObjects @ 0x1800071b6", "cocos2d::CCParallaxNode::addChild @ 0x1800ae3d8", "<???> @ 0x1801c1674", "<???> @ 0x1801c1680"], "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"}