{"type": "func", "start": 6442778416, "end": 6442778587, "name": "cocos2d::CCLayerRGBA::init", "pseudocode": "// \n// cocos2d::CCLayerRGBA::init from 0x18004ff30 to 0x18004ffdb (171 bytes)\n// \n// 5 xrefs:\n// > <???> @ 0x1800ed3f8\n// > <???> @ 0x1801380f4\n// > <???> @ 0x180138104\n// > <???> @ 0x1801438a8\n// > <???> @ 0x1801b1efc\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\nbool __fastcall cocos2d::CCLayerRGBA::init(cocos2d::CCLayerRGBA *this)\n{\n  cocos2d::CCDirector *v2; // rax\n  cocos2d::CCLayerRGBA_vtbl *v3; // rbx\n  struct cocos2d::CCSize WinSize; // rax\n  cocos2d::CCRGBAProtocol_vtbl *v5; // rax\n\n  v2 = cocos2d::CCDirector::sharedDirector();\n  if ( v2 )\n  {\n    v3 = this->cocos2d::CCLayer::cocos2d::CCNode::cocos2d::CCObject::cocos2d::CCCopying::__vftable;\n    WinSize = cocos2d::CCDirector::getWinSize(v2);\n    ((void (__fastcall *)(cocos2d::CCLayerRGBA *, struct cocos2d::CCSize))v3->setContentSize)(this, WinSize);\n    *(_WORD *)&this->_realColor.r = -1;\n    *(_WORD *)&this->_displayedColor.r = -1;\n    this->_realColor.b = -1;\n    this->_displayedColor.b = -1;\n    v5 = this->cocos2d::CCRGBAProtocol::__vftable;\n    *(_WORD *)&this->m_bTouchEnabled = 0;\n    *(_WORD *)&this->_displayedOpacity = -1;\n    ((void (__fastcall *)(cocos2d::CCRGBAProtocol *, _QWORD))v5->setCascadeOpacityEnabled)(\n      &this->cocos2d::CCRGBAProtocol,\n      0);\n    ((void (__fastcall *)(cocos2d::CCRGBAProtocol *, _QWORD))this->setCascadeColorEnabled)(\n      &this->cocos2d::CCRGBAProtocol,\n      0);\n    LOBYTE(v2) = 1;\n  }\n  return (char)v2;\n}", "assembly": "; \n; cocos2d::CCLayerRGBA::init from 0x18004ff30 to 0x18004ffdb (171 bytes)\n; \n; 5 xrefs:\n; > <???> @ 0x1800ed3f8\n; > <???> @ 0x1801380f4\n; > <???> @ 0x180138104\n; > <???> @ 0x1801438a8\n; > <???> @ 0x1801b1efc\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    rdi                                                            ; +0x0, 0x18004ff30\nsub     rsp, 20h                                                       ; +0x2, 0x18004ff32\nmov     rdi, rcx                                                       ; +0x6, 0x18004ff36\ncall    ?sharedDirector@CCDirector@cocos2d@@SAPEAV12@XZ; cocos2d::CCDirector::sharedDirector(void) ; +0x9, 0x18004ff39\ntest    rax, rax                                                       ; +0xe, 0x18004ff3e\njz      loc_18004FFD5                                                  ; +0x11, 0x18004ff41\nmov     [rsp+28h+arg_0], rbx                                           ; +0x17, 0x18004ff47\nlea     rdx, [rsp+28h+arg_8]                                           ; +0x1c, 0x18004ff4c\nmov     rbx, [rdi]                                                     ; +0x21, 0x18004ff51\nmov     rcx, rax                                                       ; +0x24, 0x18004ff54\ncall    ?getWinSize@CCDirector@cocos2d@@QEAA?AVCCSize@2@XZ; cocos2d::CCDirector::getWinSize(void) ; +0x27, 0x18004ff57\nmov     rdx, rax                                                       ; +0x2c, 0x18004ff5c\nmov     rcx, rdi                                                       ; +0x2f, 0x18004ff5f\ncall    qword ptr [rbx+128h]                                           ; +0x32, 0x18004ff62\nmovzx   ecx, cs:word_1800ECE30                                         ; +0x38, 0x18004ff68\nxor     edx, edx                                                       ; +0x3f, 0x18004ff6f\nmovzx   eax, cs:byte_1800ECE32                                         ; +0x41, 0x18004ff71\nmov     [rdi+1A5h], cx                                                 ; +0x48, 0x18004ff78\nmov     [rdi+1A2h], cx                                                 ; +0x4f, 0x18004ff7f\nlea     rcx, [rdi+198h]                                                ; +0x56, 0x18004ff86\nmov     [rdi+1A7h], al                                                 ; +0x5d, 0x18004ff8d\nmov     [rdi+1A4h], al                                                 ; +0x63, 0x18004ff93\nmov     rax, [rdi+198h]                                                ; +0x69, 0x18004ff99\nmov     word ptr [rdi+168h], 0                                         ; +0x70, 0x18004ffa0\nmov     word ptr [rdi+1A0h], 0FFFFh                                    ; +0x79, 0x18004ffa9\ncall    qword ptr [rax+60h]                                            ; +0x82, 0x18004ffb2\nmov     rax, [rdi+198h]                                                ; +0x85, 0x18004ffb5\nlea     rcx, [rdi+198h]                                                ; +0x8c, 0x18004ffbc\nxor     edx, edx                                                       ; +0x93, 0x18004ffc3\ncall    qword ptr [rax+48h]                                            ; +0x95, 0x18004ffc5\nmov     rbx, [rsp+28h+arg_0]                                           ; +0x98, 0x18004ffc8\nmov     al, 1                                                          ; +0x9d, 0x18004ffcd\nadd     rsp, 20h                                                       ; +0x9f, 0x18004ffcf\npop     rdi                                                            ; +0xa3, 0x18004ffd3\nretn                                                                   ; +0xa4, 0x18004ffd4\nadd     rsp, 20h                                                       ; +0xa5, 0x18004ffd5\npop     rdi                                                            ; +0xa9, 0x18004ffd9\nretn                                                                   ; +0xaa, 0x18004ffda", "xrefs": ["<???> @ 0x1800ed3f8", "<???> @ 0x1801380f4", "<???> @ 0x180138104", "<???> @ 0x1801438a8", "<???> @ 0x1801b1efc"], "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"}