{"type": "func", "start": 6442777120, "end": 6442777237, "name": "cocos2d::CCLayerGradient::create", "pseudocode": "// \n// cocos2d::CCLayerGradient::create from 0x18004fa20 to 0x18004fa95 (117 bytes)\n// \n// 3 xrefs:\n// > <???> @ 0x1801438a8\n// > <???> @ 0x1801b1e54\n// > <???> @ 0x1801b1e60\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\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::CCLayerGradient *v2; // rbx\n\n  v0 = (cocos2d::CCLayerGradient *)operator new(0x238u);\n  v1 = v0;\n  if ( v0 )\n  {\n    memset(v0, 0, sizeof(cocos2d::CCLayerGradient));\n    v2 = cocos2d::CCLayerGradient::CCLayerGradient(v1);\n  }\n  else\n  {\n    v2 = nullptr;\n  }\n  if ( v2 )\n  {\n    if ( ((unsigned __int8 (__fastcall *)(cocos2d::CCLayerGradient *))v2->init)(v2) )\n    {\n      cocos2d::CCObject::autorelease(v2);\n      return v2;\n    }\n    ((void (__fastcall *)(cocos2d::CCLayerGradient *, __int64))v2->~CCLayerGradient)(v2, 1);\n    return nullptr;\n  }\n  return v2;\n}", "assembly": "; \n; cocos2d::CCLayerGradient::create from 0x18004fa20 to 0x18004fa95 (117 bytes)\n; \n; 3 xrefs:\n; > <???> @ 0x1801438a8\n; > <???> @ 0x1801b1e54\n; > <???> @ 0x1801b1e60\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\npush    rbx                                                            ; +0x0, 0x18004fa20\nsub     rsp, 20h                                                       ; +0x2, 0x18004fa22\nmov     ecx, 238h; Size                                                ; +0x6, 0x18004fa26\ncall    ??2@YAPEAX_K@Z; operator new(unsigned __int64)                 ; +0xb, 0x18004fa2b\nmov     rbx, rax                                                       ; +0x10, 0x18004fa30\nmov     [rsp+28h+arg_0], rax                                           ; +0x13, 0x18004fa33\ntest    rax, rax                                                       ; +0x18, 0x18004fa38\njz      short loc_18004FA5A                                            ; +0x1b, 0x18004fa3b\nxor     edx, edx; Val                                                  ; +0x1d, 0x18004fa3d\nmov     r8d, 238h; Size                                                ; +0x1f, 0x18004fa3f\nmov     rcx, rax; void *                                               ; +0x25, 0x18004fa45\ncall    memset                                                         ; +0x28, 0x18004fa48\nmov     rcx, rbx; this                                                 ; +0x2d, 0x18004fa4d\ncall    ??0CCLayerGradient@cocos2d@@QEAA@XZ; cocos2d::CCLayerGradient::CCLayerGradient(void) ; +0x30, 0x18004fa50\nmov     rbx, rax                                                       ; +0x35, 0x18004fa55\njmp     short loc_18004FA5C                                            ; +0x38, 0x18004fa58\nxor     ebx, ebx                                                       ; +0x3a, 0x18004fa5a\ntest    rbx, rbx                                                       ; +0x3c, 0x18004fa5c\njz      short loc_18004FA8C                                            ; +0x3f, 0x18004fa5f\nmov     rdx, [rbx]                                                     ; +0x41, 0x18004fa61\nmov     rcx, rbx                                                       ; +0x44, 0x18004fa64\ncall    qword ptr [rdx+48h]                                            ; +0x47, 0x18004fa67\nmov     rcx, rbx; this                                                 ; +0x4a, 0x18004fa6a\ntest    al, al                                                         ; +0x4d, 0x18004fa6d\njz      short loc_18004FA7F                                            ; +0x4f, 0x18004fa6f\ncall    ?autorelease@CCObject@cocos2d@@QEAAPEAV12@XZ; cocos2d::CCObject::autorelease(void) ; +0x51, 0x18004fa71\nmov     rax, rbx                                                       ; +0x56, 0x18004fa76\nadd     rsp, 20h                                                       ; +0x59, 0x18004fa79\npop     rbx                                                            ; +0x5d, 0x18004fa7d\nretn                                                                   ; +0x5e, 0x18004fa7e\nmov     rax, [rbx]                                                     ; +0x5f, 0x18004fa7f\nmov     edx, 1                                                         ; +0x62, 0x18004fa82\ncall    qword ptr [rax+8]                                              ; +0x67, 0x18004fa87\nxor     ebx, ebx                                                       ; +0x6a, 0x18004fa8a\nmov     rax, rbx                                                       ; +0x6c, 0x18004fa8c\nadd     rsp, 20h                                                       ; +0x6f, 0x18004fa8f\npop     rbx                                                            ; +0x73, 0x18004fa93\nretn                                                                   ; +0x74, 0x18004fa94", "xrefs": ["<???> @ 0x1801438a8", "<???> @ 0x1801b1e54", "<???> @ 0x1801b1e60"], "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"}