{"type": "func", "start": 6442784832, "end": 6442784952, "name": "cocos2d::CCLayerGradient::create", "pseudocode": "// \n// cocos2d::CCLayerGradient::create from 0x180051840 to 0x1800518b8 (120 bytes)\n// \n// 3 xrefs:\n// > <???> @ 0x18014cf68\n// > <???> @ 0x1801bc0e8\n// > <???> @ 0x1801bc0f4\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:45 +0000\n// \n\n// Hidden C++ exception states: #wind=1\nstruct cocos2d::CCLayerGradient *__fastcall cocos2d::CCLayerGradient::create()\n{\n  cocos2d::CCLayerGradient *v0; // rax\n  cocos2d::CCLayerGradient *v1; // rbx\n  cocos2d::CCObject *v2; // rbx\n\n  v0 = (cocos2d::CCLayerGradient *)sub_1800E4AC0(0x238u);\n  v1 = v0;\n  if ( v0 )\n  {\n    memset(v0, 0, 0x238u);\n    v2 = cocos2d::CCLayerGradient::CCLayerGradient(v1);\n  }\n  else\n  {\n    v2 = nullptr;\n  }\n  if ( v2 )\n  {\n    if ( (*(unsigned __int8 (__fastcall **)(cocos2d::CCObject *))(*(_QWORD *)v2 + 72LL))(v2) )\n    {\n      cocos2d::CCObject::autorelease(v2);\n      return v2;\n    }\n    (*(void (__fastcall **)(cocos2d::CCObject *, __int64))(*(_QWORD *)v2 + 8LL))(v2, 1);\n    return nullptr;\n  }\n  return v2;\n}", "assembly": "; \n; cocos2d::CCLayerGradient::create from 0x180051840 to 0x1800518b8 (120 bytes)\n; \n; 3 xrefs:\n; > <???> @ 0x18014cf68\n; > <???> @ 0x1801bc0e8\n; > <???> @ 0x1801bc0f4\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:45 +0000\n; \npush    rbx                                                            ; +0x0, 0x180051840\nsub     rsp, 20h                                                       ; +0x2, 0x180051842\nmov     ecx, 238h; Size                                                ; +0x6, 0x180051846\ncall    sub_1800E4AC0                                                  ; +0xb, 0x18005184b\nmov     rbx, rax                                                       ; +0x10, 0x180051850\nmov     [rsp+28h+arg_0], rax                                           ; +0x13, 0x180051853\ntest    rax, rax                                                       ; +0x18, 0x180051858\njz      short loc_18005187A                                            ; +0x1b, 0x18005185b\nxor     edx, edx; Val                                                  ; +0x1d, 0x18005185d\nmov     r8d, 238h; Size                                                ; +0x1f, 0x18005185f\nmov     rcx, rax; void *                                               ; +0x25, 0x180051865\ncall    memset                                                         ; +0x28, 0x180051868\nmov     rcx, rbx; this                                                 ; +0x2d, 0x18005186d\ncall    ??0CCLayerGradient@cocos2d@@QEAA@XZ; cocos2d::CCLayerGradient::CCLayerGradient(void) ; +0x30, 0x180051870\nmov     rbx, rax                                                       ; +0x35, 0x180051875\njmp     short loc_18005187C                                            ; +0x38, 0x180051878\nxor     ebx, ebx                                                       ; +0x3a, 0x18005187a\ntest    rbx, rbx                                                       ; +0x3c, 0x18005187c\njz      short loc_1800518AF                                            ; +0x3f, 0x18005187f\nmov     rcx, [rbx]                                                     ; +0x41, 0x180051881\nmov     rdx, [rcx+48h]                                                 ; +0x44, 0x180051884\nmov     rcx, rbx                                                       ; +0x48, 0x180051888\ncall    rdx                                                            ; +0x4b, 0x18005188b\nmov     rcx, rbx; this                                                 ; +0x4d, 0x18005188d\ntest    al, al                                                         ; +0x50, 0x180051890\njz      short loc_1800518A2                                            ; +0x52, 0x180051892\ncall    ?autorelease@CCObject@cocos2d@@QEAAPEAV12@XZ; cocos2d::CCObject::autorelease(void) ; +0x54, 0x180051894\nmov     rax, rbx                                                       ; +0x59, 0x180051899\nadd     rsp, 20h                                                       ; +0x5c, 0x18005189c\npop     rbx                                                            ; +0x60, 0x1800518a0\nretn                                                                   ; +0x61, 0x1800518a1\nmov     rax, [rbx]                                                     ; +0x62, 0x1800518a2\nmov     edx, 1                                                         ; +0x65, 0x1800518a5\ncall    qword ptr [rax+8]                                              ; +0x6a, 0x1800518aa\nxor     ebx, ebx                                                       ; +0x6d, 0x1800518ad\nmov     rax, rbx                                                       ; +0x6f, 0x1800518af\nadd     rsp, 20h                                                       ; +0x72, 0x1800518b2\npop     rbx                                                            ; +0x76, 0x1800518b6\nretn                                                                   ; +0x77, 0x1800518b7", "xrefs": ["<???> @ 0x18014cf68", "<???> @ 0x1801bc0e8", "<???> @ 0x1801bc0f4"], "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"}