{"type": "func", "start": 6442784128, "end": 6442784246, "name": "cocos2d::CCLayerColor::create", "pseudocode": "// \n// cocos2d::CCLayerColor::create from 0x180051580 to 0x1800515f6 (118 bytes)\n// \n// 4 xrefs:\n// > cocos2d::CCTransitionCrossFade::onEnter @ 0x18005696c\n// > cocos2d::CCTransitionFade::onEnter @ 0x180056cd9\n// > <???> @ 0x18014cf68\n// > <???> @ 0x1801bc0b8\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::CCLayerColor *__fastcall cocos2d::CCLayerColor::create(const struct cocos2d::_ccColor4B *a1)\n{\n  cocos2d::CCLayerColor *v2; // rax\n  cocos2d::CCObject *v3; // rbx\n\n  v2 = (cocos2d::CCLayerColor *)sub_1800E4AC0(0x220u);\n  if ( v2 )\n    v3 = cocos2d::CCLayerColor::CCLayerColor(v2);\n  else\n    v3 = nullptr;\n  if ( v3 )\n  {\n    if ( (*(unsigned __int8 (__fastcall **)(cocos2d::CCObject *, const struct cocos2d::_ccColor4B *))(*(_QWORD *)v3 + 1032LL))(\n           v3,\n           a1) )\n    {\n      cocos2d::CCObject::autorelease(v3);\n      return v3;\n    }\n    (*(void (__fastcall **)(cocos2d::CCObject *, __int64))(*(_QWORD *)v3 + 8LL))(v3, 1);\n  }\n  return nullptr;\n}", "assembly": "; \n; cocos2d::CCLayerColor::create from 0x180051580 to 0x1800515f6 (118 bytes)\n; \n; 4 xrefs:\n; > cocos2d::CCTransitionCrossFade::onEnter @ 0x18005696c\n; > cocos2d::CCTransitionFade::onEnter @ 0x180056cd9\n; > <???> @ 0x18014cf68\n; > <???> @ 0x1801bc0b8\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; \nmov     [rsp+arg_0], rbx                                               ; +0x0, 0x180051580\npush    rdi                                                            ; +0x5, 0x180051585\nsub     rsp, 20h                                                       ; +0x6, 0x180051586\nmov     rdi, rcx                                                       ; +0xa, 0x18005158a\nmov     ecx, 220h; Size                                                ; +0xd, 0x18005158d\ncall    sub_1800E4AC0                                                  ; +0x12, 0x180051592\nmov     [rsp+28h+arg_8], rax                                           ; +0x17, 0x180051597\ntest    rax, rax                                                       ; +0x1c, 0x18005159c\njz      short loc_1800515AE                                            ; +0x1f, 0x18005159f\nmov     rcx, rax; this                                                 ; +0x21, 0x1800515a1\ncall    ??0CCLayerColor@cocos2d@@QEAA@XZ; cocos2d::CCLayerColor::CCLayerColor(void) ; +0x24, 0x1800515a4\nmov     rbx, rax                                                       ; +0x29, 0x1800515a9\njmp     short loc_1800515B0                                            ; +0x2c, 0x1800515ac\nxor     ebx, ebx                                                       ; +0x2e, 0x1800515ae\ntest    rbx, rbx                                                       ; +0x30, 0x1800515b0\njz      short loc_1800515E9                                            ; +0x33, 0x1800515b3\nmov     rax, [rbx]                                                     ; +0x35, 0x1800515b5\nmov     rdx, rdi                                                       ; +0x38, 0x1800515b8\nmov     rcx, rbx                                                       ; +0x3b, 0x1800515bb\ncall    qword ptr [rax+408h]                                           ; +0x3e, 0x1800515be\nmov     rcx, rbx; this                                                 ; +0x44, 0x1800515c4\ntest    al, al                                                         ; +0x47, 0x1800515c7\njz      short loc_1800515DE                                            ; +0x49, 0x1800515c9\ncall    ?autorelease@CCObject@cocos2d@@QEAAPEAV12@XZ; cocos2d::CCObject::autorelease(void) ; +0x4b, 0x1800515cb\nmov     rax, rbx                                                       ; +0x50, 0x1800515d0\nmov     rbx, [rsp+28h+arg_0]                                           ; +0x53, 0x1800515d3\nadd     rsp, 20h                                                       ; +0x58, 0x1800515d8\npop     rdi                                                            ; +0x5c, 0x1800515dc\nretn                                                                   ; +0x5d, 0x1800515dd\nmov     rax, [rbx]                                                     ; +0x5e, 0x1800515de\nmov     edx, 1                                                         ; +0x61, 0x1800515e1\ncall    qword ptr [rax+8]                                              ; +0x66, 0x1800515e6\nxor     eax, eax                                                       ; +0x69, 0x1800515e9\nmov     rbx, [rsp+28h+arg_0]                                           ; +0x6b, 0x1800515eb\nadd     rsp, 20h                                                       ; +0x70, 0x1800515f0\npop     rdi                                                            ; +0x74, 0x1800515f4\nretn                                                                   ; +0x75, 0x1800515f5", "xrefs": ["cocos2d::CCTransitionCrossFade::onEnter @ 0x18005696c", "cocos2d::CCTransitionFade::onEnter @ 0x180056cd9", "<???> @ 0x18014cf68", "<???> @ 0x1801bc0b8"], "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"}