{"type": "func", "start": 6442479632, "end": 6442479756, "name": "cocos2d::CCArray::initWithObjects", "pseudocode": "// \n// cocos2d::CCArray::initWithObjects from 0x180007010 to 0x18000708c (124 bytes)\n// \n// 4 xrefs:\n// > <???> @ 0x180131610\n// > <???> @ 0x180131620\n// > <???> @ 0x1801438a8\n// > <???> @ 0x1801ad9a8\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\nchar cocos2d::CCArray::initWithObjects(cocos2d::CCArray *this, struct cocos2d::CCObject *a2, __int64 a3, ...)\n{\n  cocos2d::ccArray **p_data; // 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  p_data = &this->data;\n  sub_18009DA50(&this->data);\n  if ( !a2 )\n    return 0;\n  sub_18009D610(*p_data, a2);\n  v4 = a3;\n  va_copy(v5, va);\n  if ( a3 )\n  {\n    do\n    {\n      sub_18009D610(*p_data, v4);\n      v4 = *(_QWORD *)v5;\n      v5 += 8;\n    }\n    while ( v4 );\n  }\n  return 1;\n}", "assembly": "; \n; cocos2d::CCArray::initWithObjects from 0x180007010 to 0x18000708c (124 bytes)\n; \n; 4 xrefs:\n; > <???> @ 0x180131610\n; > <???> @ 0x180131620\n; > <???> @ 0x1801438a8\n; > <???> @ 0x1801ad9a8\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_8], rdx                                               ; +0x0, 0x180007010\nmov     [rsp+arg_10], r8                                               ; +0x5, 0x180007015\nmov     [rsp+arg_18], r9                                               ; +0xa, 0x18000701a\npush    rdi                                                            ; +0xf, 0x18000701f\nsub     rsp, 30h                                                       ; +0x10, 0x180007020\nlea     rdi, [rcx+38h]                                                 ; +0x14, 0x180007024\nmov     rcx, rdi                                                       ; +0x18, 0x180007028\ncall    sub_18009DA50                                                  ; +0x1b, 0x18000702b\nmov     rdx, [rsp+38h+arg_8]                                           ; +0x20, 0x180007030\ntest    rdx, rdx                                                       ; +0x25, 0x180007035\njz      short loc_180007084                                            ; +0x28, 0x180007038\nmov     rcx, [rdi]                                                     ; +0x2a, 0x18000703a\nmov     [rsp+38h+var_10], rbx                                          ; +0x2d, 0x18000703d\nlea     rbx, [rsp+38h+arg_10]                                          ; +0x32, 0x180007042\ncall    sub_18009D610                                                  ; +0x37, 0x180007047\nmov     rax, [rbx]                                                     ; +0x3c, 0x18000704c\nadd     rbx, 8                                                         ; +0x3f, 0x18000704f\ntest    rax, rax                                                       ; +0x43, 0x180007053\njz      short loc_180007077                                            ; +0x46, 0x180007056\nnop     dword ptr [rax+rax+00000000h]                                  ; +0x48, 0x180007058\nmov     rcx, [rdi]                                                     ; +0x50, 0x180007060\nmov     rdx, rax                                                       ; +0x53, 0x180007063\ncall    sub_18009D610                                                  ; +0x56, 0x180007066\nmov     rax, [rbx]                                                     ; +0x5b, 0x18000706b\nlea     rbx, [rbx+8]                                                   ; +0x5e, 0x18000706e\ntest    rax, rax                                                       ; +0x62, 0x180007072\njnz     short loc_180007060                                            ; +0x65, 0x180007075\nmov     rbx, [rsp+38h+var_10]                                          ; +0x67, 0x180007077\nmov     al, 1                                                          ; +0x6c, 0x18000707c\nadd     rsp, 30h                                                       ; +0x6e, 0x18000707e\npop     rdi                                                            ; +0x72, 0x180007082\nretn                                                                   ; +0x73, 0x180007083\nxor     al, al                                                         ; +0x74, 0x180007084\nadd     rsp, 30h                                                       ; +0x76, 0x180007086\npop     rdi                                                            ; +0x7a, 0x18000708a\nretn                                                                   ; +0x7b, 0x18000708b", "xrefs": ["<???> @ 0x180131610", "<???> @ 0x180131620", "<???> @ 0x1801438a8", "<???> @ 0x1801ad9a8"], "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"}