{"type": "func", "start": 6442786128, "end": 6442786299, "name": "cocos2d::CCLayerRGBA::init", "pseudocode": "// \n// cocos2d::CCLayerRGBA::init from 0x180051d50 to 0x180051dfb (171 bytes)\n// \n// 5 xrefs:\n// > <???> @ 0x1800f3568\n// > <???> @ 0x18014131c\n// > <???> @ 0x18014132c\n// > <???> @ 0x18014cf68\n// > <???> @ 0x1801bc190\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\nbool __fastcall cocos2d::CCLayerRGBA::init(cocos2d::CCLayerRGBA *this)\n{\n  struct cocos2d::CCDirector *v2; // rax\n  __int64 v3; // rbx\n  __int64 v4; // rax\n  __int64 v5; // rax\n  char v7; // [rsp+38h] [rbp+10h] BYREF\n\n  v2 = cocos2d::CCDirector::sharedDirector();\n  if ( v2 )\n  {\n    v3 = *(_QWORD *)this;\n    cocos2d::CCDirector::getWinSize(v2, &v7);\n    (*(void (__fastcall **)(cocos2d::CCLayerRGBA *, __int64))(v3 + 312))(this, v4);\n    *(_WORD *)((char *)this + 421) = -1;\n    *((_WORD *)this + 209) = -1;\n    *((_BYTE *)this + 423) = -1;\n    *((_BYTE *)this + 420) = -1;\n    v5 = *((_QWORD *)this + 51);\n    *((_WORD *)this + 180) = 0;\n    *((_WORD *)this + 208) = -1;\n    (*(void (__fastcall **)(char *, _QWORD))(v5 + 96))((char *)this + 408, 0);\n    (*(void (__fastcall **)(char *, _QWORD))(*((_QWORD *)this + 51) + 72LL))((char *)this + 408, 0);\n    LOBYTE(v2) = 1;\n  }\n  return (char)v2;\n}", "assembly": "; \n; cocos2d::CCLayerRGBA::init from 0x180051d50 to 0x180051dfb (171 bytes)\n; \n; 5 xrefs:\n; > <???> @ 0x1800f3568\n; > <???> @ 0x18014131c\n; > <???> @ 0x18014132c\n; > <???> @ 0x18014cf68\n; > <???> @ 0x1801bc190\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    rdi                                                            ; +0x0, 0x180051d50\nsub     rsp, 20h                                                       ; +0x2, 0x180051d52\nmov     rdi, rcx                                                       ; +0x6, 0x180051d56\ncall    ?sharedDirector@CCDirector@cocos2d@@SAPEAV12@XZ; cocos2d::CCDirector::sharedDirector(void) ; +0x9, 0x180051d59\ntest    rax, rax                                                       ; +0xe, 0x180051d5e\njz      loc_180051DF5                                                  ; +0x11, 0x180051d61\nmov     [rsp+28h+arg_0], rbx                                           ; +0x17, 0x180051d67\nlea     rdx, [rsp+28h+arg_8]                                           ; +0x1c, 0x180051d6c\nmov     rbx, [rdi]                                                     ; +0x21, 0x180051d71\nmov     rcx, rax                                                       ; +0x24, 0x180051d74\ncall    ?getWinSize@CCDirector@cocos2d@@QEAA?AVCCSize@2@XZ; cocos2d::CCDirector::getWinSize(void) ; +0x27, 0x180051d77\nmov     rdx, rax                                                       ; +0x2c, 0x180051d7c\nmov     rcx, rdi                                                       ; +0x2f, 0x180051d7f\ncall    qword ptr [rbx+138h]                                           ; +0x32, 0x180051d82\nmovzx   ecx, cs:word_1800F2F70                                         ; +0x38, 0x180051d88\nxor     edx, edx                                                       ; +0x3f, 0x180051d8f\nmovzx   eax, cs:byte_1800F2F72                                         ; +0x41, 0x180051d91\nmov     [rdi+1A5h], cx                                                 ; +0x48, 0x180051d98\nmov     [rdi+1A2h], cx                                                 ; +0x4f, 0x180051d9f\nlea     rcx, [rdi+198h]                                                ; +0x56, 0x180051da6\nmov     [rdi+1A7h], al                                                 ; +0x5d, 0x180051dad\nmov     [rdi+1A4h], al                                                 ; +0x63, 0x180051db3\nmov     rax, [rdi+198h]                                                ; +0x69, 0x180051db9\nmov     word ptr [rdi+168h], 0                                         ; +0x70, 0x180051dc0\nmov     word ptr [rdi+1A0h], 0FFFFh                                    ; +0x79, 0x180051dc9\ncall    qword ptr [rax+60h]                                            ; +0x82, 0x180051dd2\nmov     rax, [rdi+198h]                                                ; +0x85, 0x180051dd5\nlea     rcx, [rdi+198h]                                                ; +0x8c, 0x180051ddc\nxor     edx, edx                                                       ; +0x93, 0x180051de3\ncall    qword ptr [rax+48h]                                            ; +0x95, 0x180051de5\nmov     rbx, [rsp+28h+arg_0]                                           ; +0x98, 0x180051de8\nmov     al, 1                                                          ; +0x9d, 0x180051ded\nadd     rsp, 20h                                                       ; +0x9f, 0x180051def\npop     rdi                                                            ; +0xa3, 0x180051df3\nretn                                                                   ; +0xa4, 0x180051df4\nadd     rsp, 20h                                                       ; +0xa5, 0x180051df5\npop     rdi                                                            ; +0xa9, 0x180051df9\nretn                                                                   ; +0xaa, 0x180051dfa", "xrefs": ["<???> @ 0x1800f3568", "<???> @ 0x18014131c", "<???> @ 0x18014132c", "<???> @ 0x18014cf68", "<???> @ 0x1801bc190"], "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"}