{"type": "func", "start": 6442778192, "end": 6442778272, "name": "cocos2d::CCLayer::init", "pseudocode": "// \n// cocos2d::CCLayer::init from 0x18004fe50 to 0x18004fea0 (80 bytes)\n// \n// 7 xrefs:\n// > cocos2d::CCMenu::initWithArray @ 0x18005946d\n// > <???> @ 0x1800ecf38\n// > <???> @ 0x1800ee470\n// > <???> @ 0x180137fa4\n// > <???> @ 0x180137fb4\n// > <???> @ 0x1801438a8\n// > <???> @ 0x1801b1ec0\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::CCLayer::init(cocos2d::CCLayer *this)\n{\n  cocos2d::CCDirector *v2; // rax\n  cocos2d::CCLayer_vtbl *v3; // rbx\n  struct cocos2d::CCSize WinSize; // rax\n\n  v2 = cocos2d::CCDirector::sharedDirector();\n  if ( v2 )\n  {\n    v3 = this->cocos2d::CCNode::cocos2d::CCObject::cocos2d::CCCopying::__vftable;\n    WinSize = cocos2d::CCDirector::getWinSize(v2);\n    ((void (__fastcall *)(cocos2d::CCLayer *, struct cocos2d::CCSize))v3->setContentSize)(this, WinSize);\n    *(_WORD *)&this->m_bTouchEnabled = 0;\n    LOBYTE(v2) = 1;\n  }\n  return (char)v2;\n}", "assembly": "; \n; cocos2d::CCLayer::init from 0x18004fe50 to 0x18004fea0 (80 bytes)\n; \n; 7 xrefs:\n; > cocos2d::CCMenu::initWithArray @ 0x18005946d\n; > <???> @ 0x1800ecf38\n; > <???> @ 0x1800ee470\n; > <???> @ 0x180137fa4\n; > <???> @ 0x180137fb4\n; > <???> @ 0x1801438a8\n; > <???> @ 0x1801b1ec0\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, 0x18004fe50\nsub     rsp, 20h                                                       ; +0x2, 0x18004fe52\nmov     rdi, rcx                                                       ; +0x6, 0x18004fe56\ncall    ?sharedDirector@CCDirector@cocos2d@@SAPEAV12@XZ; cocos2d::CCDirector::sharedDirector(void) ; +0x9, 0x18004fe59\ntest    rax, rax                                                       ; +0xe, 0x18004fe5e\njz      short loc_18004FE9A                                            ; +0x11, 0x18004fe61\nmov     [rsp+28h+arg_0], rbx                                           ; +0x13, 0x18004fe63\nlea     rdx, [rsp+28h+arg_8]                                           ; +0x18, 0x18004fe68\nmov     rbx, [rdi]                                                     ; +0x1d, 0x18004fe6d\nmov     rcx, rax                                                       ; +0x20, 0x18004fe70\ncall    ?getWinSize@CCDirector@cocos2d@@QEAA?AVCCSize@2@XZ; cocos2d::CCDirector::getWinSize(void) ; +0x23, 0x18004fe73\nmov     rdx, rax                                                       ; +0x28, 0x18004fe78\nmov     rcx, rdi                                                       ; +0x2b, 0x18004fe7b\ncall    qword ptr [rbx+128h]                                           ; +0x2e, 0x18004fe7e\nmov     rbx, [rsp+28h+arg_0]                                           ; +0x34, 0x18004fe84\nmov     al, 1                                                          ; +0x39, 0x18004fe89\nmov     word ptr [rdi+168h], 0                                         ; +0x3b, 0x18004fe8b\nadd     rsp, 20h                                                       ; +0x44, 0x18004fe94\npop     rdi                                                            ; +0x48, 0x18004fe98\nretn                                                                   ; +0x49, 0x18004fe99\nadd     rsp, 20h                                                       ; +0x4a, 0x18004fe9a\npop     rdi                                                            ; +0x4e, 0x18004fe9e\nretn                                                                   ; +0x4f, 0x18004fe9f", "xrefs": ["cocos2d::CCMenu::initWithArray @ 0x18005946d", "<???> @ 0x1800ecf38", "<???> @ 0x1800ee470", "<???> @ 0x180137fa4", "<???> @ 0x180137fb4", "<???> @ 0x1801438a8", "<???> @ 0x1801b1ec0"], "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"}