{"type": "func", "start": 6442785920, "end": 6442786000, "name": "cocos2d::CCLayer::init", "pseudocode": "// \n// cocos2d::CCLayer::init from 0x180051c80 to 0x180051cd0 (80 bytes)\n// \n// 7 xrefs:\n// > cocos2d::CCMenu::initWithArray @ 0x18005b47d\n// > <???> @ 0x1800f3088\n// > <???> @ 0x1800f4640\n// > <???> @ 0x1801411cc\n// > <???> @ 0x1801411dc\n// > <???> @ 0x18014cf68\n// > <???> @ 0x1801bc154\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::CCLayer::init(cocos2d::CCLayer *this)\n{\n  struct cocos2d::CCDirector *v2; // rax\n  __int64 v3; // rbx\n  __int64 WinSize; // rax\n  char v6; // [rsp+38h] [rbp+10h] BYREF\n\n  v2 = cocos2d::CCDirector::sharedDirector();\n  if ( v2 )\n  {\n    v3 = *(_QWORD *)this;\n    WinSize = cocos2d::CCDirector::getWinSize(v2, &v6);\n    (*(void (__fastcall **)(cocos2d::CCLayer *, __int64))(v3 + 312))(this, WinSize);\n    *((_WORD *)this + 180) = 0;\n    LOBYTE(v2) = 1;\n  }\n  return (char)v2;\n}", "assembly": "; \n; cocos2d::CCLayer::init from 0x180051c80 to 0x180051cd0 (80 bytes)\n; \n; 7 xrefs:\n; > cocos2d::CCMenu::initWithArray @ 0x18005b47d\n; > <???> @ 0x1800f3088\n; > <???> @ 0x1800f4640\n; > <???> @ 0x1801411cc\n; > <???> @ 0x1801411dc\n; > <???> @ 0x18014cf68\n; > <???> @ 0x1801bc154\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, 0x180051c80\nsub     rsp, 20h                                                       ; +0x2, 0x180051c82\nmov     rdi, rcx                                                       ; +0x6, 0x180051c86\ncall    ?sharedDirector@CCDirector@cocos2d@@SAPEAV12@XZ; cocos2d::CCDirector::sharedDirector(void) ; +0x9, 0x180051c89\ntest    rax, rax                                                       ; +0xe, 0x180051c8e\njz      short loc_180051CCA                                            ; +0x11, 0x180051c91\nmov     [rsp+28h+arg_0], rbx                                           ; +0x13, 0x180051c93\nlea     rdx, [rsp+28h+arg_8]                                           ; +0x18, 0x180051c98\nmov     rbx, [rdi]                                                     ; +0x1d, 0x180051c9d\nmov     rcx, rax                                                       ; +0x20, 0x180051ca0\ncall    ?getWinSize@CCDirector@cocos2d@@QEAA?AVCCSize@2@XZ; cocos2d::CCDirector::getWinSize(void) ; +0x23, 0x180051ca3\nmov     rdx, rax                                                       ; +0x28, 0x180051ca8\nmov     rcx, rdi                                                       ; +0x2b, 0x180051cab\ncall    qword ptr [rbx+138h]                                           ; +0x2e, 0x180051cae\nmov     rbx, [rsp+28h+arg_0]                                           ; +0x34, 0x180051cb4\nmov     al, 1                                                          ; +0x39, 0x180051cb9\nmov     word ptr [rdi+168h], 0                                         ; +0x3b, 0x180051cbb\nadd     rsp, 20h                                                       ; +0x44, 0x180051cc4\npop     rdi                                                            ; +0x48, 0x180051cc8\nretn                                                                   ; +0x49, 0x180051cc9\nadd     rsp, 20h                                                       ; +0x4a, 0x180051cca\npop     rdi                                                            ; +0x4e, 0x180051cce\nretn                                                                   ; +0x4f, 0x180051ccf", "xrefs": ["cocos2d::CCMenu::initWithArray @ 0x18005b47d", "<???> @ 0x1800f3088", "<???> @ 0x1800f4640", "<???> @ 0x1801411cc", "<???> @ 0x1801411dc", "<???> @ 0x18014cf68", "<???> @ 0x1801bc154"], "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"}