{"type": "func", "start": 6442479968, "end": 6442480092, "name": "cocos2d::CCArray::initWithObjects", "pseudocode": "// \n// cocos2d::CCArray::initWithObjects from 0x180007160 to 0x1800071dc (124 bytes)\n// \n// 4 xrefs:\n// > <???> @ 0x18013a478\n// > <???> @ 0x18013a488\n// > <???> @ 0x18014cf68\n// > <???> @ 0x1801b79cc\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:21:18 +0000\n// \n\nchar cocos2d::CCArray::initWithObjects(cocos2d::CCArray *this, struct cocos2d::CCObject *a2, __int64 a3, ...)\n{\n  _QWORD *v3; // rdi\n  __int64 v4; // rax\n  va_list v5; // rbx\n  va_list va; // [rsp+58h] [rbp+20h] BYREF\n\n  va_start(va, a3);\n  v3 = (_QWORD *)((char *)this + 56);\n  sub_1800A16E0((char *)this + 56);\n  if ( !a2 )\n    return 0;\n  sub_1800A12A0(*v3, a2);\n  v4 = a3;\n  va_copy(v5, va);\n  if ( a3 )\n  {\n    do\n    {\n      sub_1800A12A0(*v3, v4);\n      v4 = *(_QWORD *)v5;\n      v5 += 8;\n    }\n    while ( v4 );\n  }\n  return 1;\n}", "assembly": "; \n; cocos2d::CCArray::initWithObjects from 0x180007160 to 0x1800071dc (124 bytes)\n; \n; 4 xrefs:\n; > <???> @ 0x18013a478\n; > <???> @ 0x18013a488\n; > <???> @ 0x18014cf68\n; > <???> @ 0x1801b79cc\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:21:18 +0000\n; \nmov     [rsp+arg_8], rdx                                               ; +0x0, 0x180007160\nmov     [rsp+arg_10], r8                                               ; +0x5, 0x180007165\nmov     [rsp+arg_18], r9                                               ; +0xa, 0x18000716a\npush    rdi                                                            ; +0xf, 0x18000716f\nsub     rsp, 30h                                                       ; +0x10, 0x180007170\nlea     rdi, [rcx+38h]                                                 ; +0x14, 0x180007174\nmov     rcx, rdi                                                       ; +0x18, 0x180007178\ncall    sub_1800A16E0                                                  ; +0x1b, 0x18000717b\nmov     rdx, [rsp+38h+arg_8]                                           ; +0x20, 0x180007180\ntest    rdx, rdx                                                       ; +0x25, 0x180007185\njz      short loc_1800071D4                                            ; +0x28, 0x180007188\nmov     rcx, [rdi]                                                     ; +0x2a, 0x18000718a\nmov     [rsp+38h+var_10], rbx                                          ; +0x2d, 0x18000718d\nlea     rbx, [rsp+38h+arg_10]                                          ; +0x32, 0x180007192\ncall    sub_1800A12A0                                                  ; +0x37, 0x180007197\nmov     rax, [rbx]                                                     ; +0x3c, 0x18000719c\nadd     rbx, 8                                                         ; +0x3f, 0x18000719f\ntest    rax, rax                                                       ; +0x43, 0x1800071a3\njz      short loc_1800071C7                                            ; +0x46, 0x1800071a6\nnop     dword ptr [rax+rax+00000000h]                                  ; +0x48, 0x1800071a8\nmov     rcx, [rdi]                                                     ; +0x50, 0x1800071b0\nmov     rdx, rax                                                       ; +0x53, 0x1800071b3\ncall    sub_1800A12A0                                                  ; +0x56, 0x1800071b6\nmov     rax, [rbx]                                                     ; +0x5b, 0x1800071bb\nlea     rbx, [rbx+8]                                                   ; +0x5e, 0x1800071be\ntest    rax, rax                                                       ; +0x62, 0x1800071c2\njnz     short loc_1800071B0                                            ; +0x65, 0x1800071c5\nmov     rbx, [rsp+38h+var_10]                                          ; +0x67, 0x1800071c7\nmov     al, 1                                                          ; +0x6c, 0x1800071cc\nadd     rsp, 30h                                                       ; +0x6e, 0x1800071ce\npop     rdi                                                            ; +0x72, 0x1800071d2\nretn                                                                   ; +0x73, 0x1800071d3\nxor     al, al                                                         ; +0x74, 0x1800071d4\nadd     rsp, 30h                                                       ; +0x76, 0x1800071d6\npop     rdi                                                            ; +0x7a, 0x1800071da\nretn                                                                   ; +0x7b, 0x1800071db", "xrefs": ["<???> @ 0x18013a478", "<???> @ 0x18013a488", "<???> @ 0x18014cf68", "<???> @ 0x1801b79cc"], "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"}