{"type": "func", "start": 6443080192, "end": 6443080387, "name": "cocos2d::CCComponent::create", "pseudocode": "// \n// cocos2d::CCComponent::create from 0x180099a00 to 0x180099ac3 (195 bytes)\n// \n// 2 xrefs:\n// > <???> @ 0x18014cf68\n// > <???> @ 0x1801c0b4c\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:11 +0000\n// \n\n// Hidden C++ exception states: #wind=1\nstruct cocos2d::CCComponent *__fastcall cocos2d::CCComponent::create()\n{\n  cocos2d::CCObject *v0; // rax\n  cocos2d::CCObject *v1; // rbx\n  char (__fastcall *v2)(cocos2d::CCComponent *, void *); // rdx\n  cocos2d::CCObject *(__fastcall *v3)(cocos2d::CCObject *, char); // r8\n\n  v0 = (cocos2d::CCObject *)sub_1800E4AC0(0x68u);\n  v1 = v0;\n  if ( v0 )\n  {\n    cocos2d::CCObject::CCObject(v0);\n    *(_QWORD *)v1 = &cocos2d::CCComponent::`vftable';\n    *((_QWORD *)v1 + 7) = 0;\n    *((_OWORD *)v1 + 4) = 0;\n    *((_QWORD *)v1 + 10) = 0;\n    *((_QWORD *)v1 + 11) = 15;\n    *((_BYTE *)v1 + 64) = 0;\n    *((_BYTE *)v1 + 96) = 1;\n  }\n  else\n  {\n    v1 = nullptr;\n  }\n  if ( !v1 )\n    return v1;\n  v2 = *(char (__fastcall **)(cocos2d::CCComponent *, void *))(*(_QWORD *)v1 + 72LL);\n  if ( v2 == cocos2d::CCComponent::serialize || ((unsigned __int8 (__fastcall *)(cocos2d::CCObject *))v2)(v1) )\n  {\n    cocos2d::CCObject::autorelease(v1);\n    return v1;\n  }\n  v3 = *(cocos2d::CCObject *(__fastcall **)(cocos2d::CCObject *, char))(*(_QWORD *)v1 + 8LL);\n  if ( v3 == sub_180099960 )\n    sub_180099960(v1, 1);\n  else\n    v3(v1, 1);\n  return nullptr;\n}", "assembly": "; \n; cocos2d::CCComponent::create from 0x180099a00 to 0x180099ac3 (195 bytes)\n; \n; 2 xrefs:\n; > <???> @ 0x18014cf68\n; > <???> @ 0x1801c0b4c\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:11 +0000\n; \npush    rbx                                                            ; +0x0, 0x180099a00\nsub     rsp, 20h                                                       ; +0x2, 0x180099a02\nmov     ecx, 68h ; 'h'; Size                                           ; +0x6, 0x180099a06\ncall    sub_1800E4AC0                                                  ; +0xb, 0x180099a0b\nmov     rbx, rax                                                       ; +0x10, 0x180099a10\nmov     [rsp+28h+arg_0], rax                                           ; +0x13, 0x180099a13\ntest    rax, rax                                                       ; +0x18, 0x180099a18\njz      short loc_180099A58                                            ; +0x1b, 0x180099a1b\nmov     rcx, rax; this                                                 ; +0x1d, 0x180099a1d\ncall    ??0CCObject@cocos2d@@QEAA@XZ; cocos2d::CCObject::CCObject(void) ; +0x20, 0x180099a20\nlea     rax, ??_7CCComponent@cocos2d@@6B@; const cocos2d::CCComponent::`vftable' ; +0x25, 0x180099a25\nmov     [rbx], rax                                                     ; +0x2c, 0x180099a2c\nmov     qword ptr [rbx+38h], 0                                         ; +0x2f, 0x180099a2f\nxorps   xmm0, xmm0                                                     ; +0x37, 0x180099a37\nmovups  xmmword ptr [rbx+40h], xmm0                                    ; +0x3a, 0x180099a3a\nmov     qword ptr [rbx+50h], 0                                         ; +0x3e, 0x180099a3e\nmov     qword ptr [rbx+58h], 0Fh                                       ; +0x46, 0x180099a46\nmov     byte ptr [rbx+40h], 0                                          ; +0x4e, 0x180099a4e\nmov     byte ptr [rbx+60h], 1                                          ; +0x52, 0x180099a52\njmp     short loc_180099A5A                                            ; +0x56, 0x180099a56\nxor     ebx, ebx                                                       ; +0x58, 0x180099a58\ntest    rbx, rbx                                                       ; +0x5a, 0x180099a5a\njz      short loc_180099ABA                                            ; +0x5d, 0x180099a5d\nmov     rax, [rbx]                                                     ; +0x5f, 0x180099a5f\nmov     rdx, [rax+48h]                                                 ; +0x62, 0x180099a62\nlea     rax, ?serialize@CCComponent@cocos2d@@UEAA_NPEAX@Z; cocos2d::CCComponent::serialize(void *) ; +0x66, 0x180099a66\ncmp     rdx, rax                                                       ; +0x6d, 0x180099a6d\njz      short loc_180099AB2                                            ; +0x70, 0x180099a70\nmov     rcx, rbx                                                       ; +0x72, 0x180099a72\ncall    rdx                                                            ; +0x75, 0x180099a75\ntest    al, al                                                         ; +0x77, 0x180099a77\njnz     short loc_180099AB2                                            ; +0x79, 0x180099a79\nmov     rax, [rbx]                                                     ; +0x7b, 0x180099a7b\nmov     r8, [rax+8]                                                    ; +0x7e, 0x180099a7e\nlea     rax, sub_180099960                                             ; +0x82, 0x180099a82\nmov     edx, 1                                                         ; +0x89, 0x180099a89\nmov     rcx, rbx; this                                                 ; +0x8e, 0x180099a8e\ncmp     r8, rax                                                        ; +0x91, 0x180099a91\njnz     short loc_180099AA5                                            ; +0x94, 0x180099a94\ncall    sub_180099960                                                  ; +0x96, 0x180099a96\nxor     ebx, ebx                                                       ; +0x9b, 0x180099a9b\nmov     eax, ebx                                                       ; +0x9d, 0x180099a9d\nadd     rsp, 20h                                                       ; +0x9f, 0x180099a9f\npop     rbx                                                            ; +0xa3, 0x180099aa3\nretn                                                                   ; +0xa4, 0x180099aa4\ncall    r8                                                             ; +0xa5, 0x180099aa5\nxor     ebx, ebx                                                       ; +0xa8, 0x180099aa8\nmov     eax, ebx                                                       ; +0xaa, 0x180099aaa\nadd     rsp, 20h                                                       ; +0xac, 0x180099aac\npop     rbx                                                            ; +0xb0, 0x180099ab0\nretn                                                                   ; +0xb1, 0x180099ab1\nmov     rcx, rbx; this                                                 ; +0xb2, 0x180099ab2\ncall    ?autorelease@CCObject@cocos2d@@QEAAPEAV12@XZ; cocos2d::CCObject::autorelease(void) ; +0xb5, 0x180099ab5\nmov     rax, rbx                                                       ; +0xba, 0x180099aba\nadd     rsp, 20h                                                       ; +0xbd, 0x180099abd\npop     rbx                                                            ; +0xc1, 0x180099ac1\nretn                                                                   ; +0xc2, 0x180099ac2", "xrefs": ["<???> @ 0x18014cf68", "<???> @ 0x1801c0b4c"], "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"}