{"type": "func", "start": 6442785808, "end": 6442785879, "name": "cocos2d::CCScene::init", "pseudocode": "// \n// cocos2d::CCScene::init from 0x180051c10 to 0x180051c57 (71 bytes)\n// \n// 42 xrefs:\n// > cocos2d::CCTransitionScene::initWithDuration @ 0x180054a6a\n// > <???> @ 0x1800ee930\n// > <???> @ 0x1800eecb8\n// > <???> @ 0x1800ef038\n// > <???> @ 0x1800ef3c0\n// > <???> @ 0x1800ef740\n// > <???> @ 0x1800efac0\n// > <???> @ 0x1800efe60\n// > <???> @ 0x1800f0200\n// > <???> @ 0x1800f05a0\n// > <???> @ 0x1800f0940\n// > <???> @ 0x1800f0ce0\n// > <???> @ 0x1800f1080\n// > <???> @ 0x1800f1420\n// > <???> @ 0x1800f17c0\n// > <???> @ 0x1800f1b50\n// > <???> @ 0x1800f1ed8\n// > <???> @ 0x1800f2260\n// > <???> @ 0x1800f25e8\n// > <???> @ 0x1800f2970\n// > <???> @ 0x1800f2cf8\n// > <???> @ 0x1800f3080\n// > <???> @ 0x1800f3408\n// > <???> @ 0x1800f3788\n// > <???> @ 0x1800f3b18\n// > <???> @ 0x1800f3eb0\n// > <???> @ 0x1800f4248\n// > <???> @ 0x1800f45e0\n// > <???> @ 0x1800f4978\n// > <???> @ 0x1800f4d10\n// > <???> @ 0x1800f50c0\n// > <???> @ 0x1800f5448\n// > <???> @ 0x1800f57d8\n// > <???> @ 0x1800f5b68\n// > <???> @ 0x1800f5ef8\n// > <???> @ 0x1800f6288\n// > <???> @ 0x1800f6618\n// > <???> @ 0x1800f69a8\n// > <???> @ 0x1801384ec\n// > <???> @ 0x1801384fc\n// > <???> @ 0x1801438a8\n// > <???> @ 0x1801b22d4\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::CCScene::init(cocos2d::CCScene *this)\n{\n  cocos2d::CCDirector *v2; // rax\n  cocos2d::CCScene_vtbl *v3; // rbx\n  struct cocos2d::CCSize WinSize; // rax\n\n  v2 = cocos2d::CCDirector::sharedDirector();\n  if ( v2 )\n  {\n    v3 = this->__vftable;\n    WinSize = cocos2d::CCDirector::getWinSize(v2);\n    ((void (__fastcall *)(cocos2d::CCScene *, struct cocos2d::CCSize))v3->setContentSize)(this, WinSize);\n    LOBYTE(v2) = 1;\n  }\n  return (char)v2;\n}", "assembly": "; \n; cocos2d::CCScene::init from 0x180051c10 to 0x180051c57 (71 bytes)\n; \n; 42 xrefs:\n; > cocos2d::CCTransitionScene::initWithDuration @ 0x180054a6a\n; > <???> @ 0x1800ee930\n; > <???> @ 0x1800eecb8\n; > <???> @ 0x1800ef038\n; > <???> @ 0x1800ef3c0\n; > <???> @ 0x1800ef740\n; > <???> @ 0x1800efac0\n; > <???> @ 0x1800efe60\n; > <???> @ 0x1800f0200\n; > <???> @ 0x1800f05a0\n; > <???> @ 0x1800f0940\n; > <???> @ 0x1800f0ce0\n; > <???> @ 0x1800f1080\n; > <???> @ 0x1800f1420\n; > <???> @ 0x1800f17c0\n; > <???> @ 0x1800f1b50\n; > <???> @ 0x1800f1ed8\n; > <???> @ 0x1800f2260\n; > <???> @ 0x1800f25e8\n; > <???> @ 0x1800f2970\n; > <???> @ 0x1800f2cf8\n; > <???> @ 0x1800f3080\n; > <???> @ 0x1800f3408\n; > <???> @ 0x1800f3788\n; > <???> @ 0x1800f3b18\n; > <???> @ 0x1800f3eb0\n; > <???> @ 0x1800f4248\n; > <???> @ 0x1800f45e0\n; > <???> @ 0x1800f4978\n; > <???> @ 0x1800f4d10\n; > <???> @ 0x1800f50c0\n; > <???> @ 0x1800f5448\n; > <???> @ 0x1800f57d8\n; > <???> @ 0x1800f5b68\n; > <???> @ 0x1800f5ef8\n; > <???> @ 0x1800f6288\n; > <???> @ 0x1800f6618\n; > <???> @ 0x1800f69a8\n; > <???> @ 0x1801384ec\n; > <???> @ 0x1801384fc\n; > <???> @ 0x1801438a8\n; > <???> @ 0x1801b22d4\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, 0x180051c10\nsub     rsp, 20h                                                       ; +0x2, 0x180051c12\nmov     rdi, rcx                                                       ; +0x6, 0x180051c16\ncall    ?sharedDirector@CCDirector@cocos2d@@SAPEAV12@XZ; cocos2d::CCDirector::sharedDirector(void) ; +0x9, 0x180051c19\ntest    rax, rax                                                       ; +0xe, 0x180051c1e\njz      short loc_180051C51                                            ; +0x11, 0x180051c21\nmov     [rsp+28h+arg_0], rbx                                           ; +0x13, 0x180051c23\nlea     rdx, [rsp+28h+arg_8]                                           ; +0x18, 0x180051c28\nmov     rbx, [rdi]                                                     ; +0x1d, 0x180051c2d\nmov     rcx, rax                                                       ; +0x20, 0x180051c30\ncall    ?getWinSize@CCDirector@cocos2d@@QEAA?AVCCSize@2@XZ; cocos2d::CCDirector::getWinSize(void) ; +0x23, 0x180051c33\nmov     rdx, rax                                                       ; +0x28, 0x180051c38\nmov     rcx, rdi                                                       ; +0x2b, 0x180051c3b\ncall    qword ptr [rbx+128h]                                           ; +0x2e, 0x180051c3e\nmov     rbx, [rsp+28h+arg_0]                                           ; +0x34, 0x180051c44\nmov     al, 1                                                          ; +0x39, 0x180051c49\nadd     rsp, 20h                                                       ; +0x3b, 0x180051c4b\npop     rdi                                                            ; +0x3f, 0x180051c4f\nretn                                                                   ; +0x40, 0x180051c50\nadd     rsp, 20h                                                       ; +0x41, 0x180051c51\npop     rdi                                                            ; +0x45, 0x180051c55\nretn                                                                   ; +0x46, 0x180051c56", "xrefs": ["cocos2d::CCTransitionScene::initWithDuration @ 0x180054a6a", "<???> @ 0x1800ee930", "<???> @ 0x1800eecb8", "<???> @ 0x1800ef038", "<???> @ 0x1800ef3c0", "<???> @ 0x1800ef740", "<???> @ 0x1800efac0", "<???> @ 0x1800efe60", "<???> @ 0x1800f0200", "<???> @ 0x1800f05a0", "<???> @ 0x1800f0940", "<???> @ 0x1800f0ce0", "<???> @ 0x1800f1080", "<???> @ 0x1800f1420", "<???> @ 0x1800f17c0", "<???> @ 0x1800f1b50", "<???> @ 0x1800f1ed8", "<???> @ 0x1800f2260", "<???> @ 0x1800f25e8", "<???> @ 0x1800f2970", "<???> @ 0x1800f2cf8", "<???> @ 0x1800f3080", "<???> @ 0x1800f3408", "<???> @ 0x1800f3788", "<???> @ 0x1800f3b18", "<???> @ 0x1800f3eb0", "<???> @ 0x1800f4248", "<???> @ 0x1800f45e0", "<???> @ 0x1800f4978", "<???> @ 0x1800f4d10", "<???> @ 0x1800f50c0", "<???> @ 0x1800f5448", "<???> @ 0x1800f57d8", "<???> @ 0x1800f5b68", "<???> @ 0x1800f5ef8", "<???> @ 0x1800f6288", "<???> @ 0x1800f6618", "<???> @ 0x1800f69a8", "<???> @ 0x1801384ec", "<???> @ 0x1801384fc", "<???> @ 0x1801438a8", "<???> @ 0x1801b22d4"], "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"}