{"type": "func", "start": 6442787728, "end": 6442787995, "name": "cocos2d::CCLayer::onEnter", "pseudocode": "// \n// cocos2d::CCLayer::onEnter from 0x180052390 to 0x18005249b (267 bytes)\n// \n// 8 xrefs:\n// > <???> @ 0x1800f32f8\n// > <???> @ 0x1800f37d8\n// > <???> @ 0x1800f3d30\n// > <???> @ 0x1800f42b8\n// > <???> @ 0x1800f48b0\n// > <???> @ 0x1800fd3e8\n// > <???> @ 0x18014cf68\n// > <???> @ 0x1801bc268\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\nvoid __fastcall cocos2d::CCLayer::onEnter(cocos2d::CCLayer *this)\n{\n  struct cocos2d::CCDirector *v2; // rsi\n  struct cocos2d::CCAccelerometerDelegate *v3; // rbx\n  cocos2d::CCAccelerometer *v4; // rax\n  struct cocos2d::CCKeypadDelegate *v5; // rbx\n  cocos2d::CCKeypadDispatcher *v6; // rax\n  struct cocos2d::CCKeyboardDelegate *v7; // rbx\n  cocos2d::CCKeyboardDispatcher *v8; // rax\n  struct cocos2d::CCMouseDelegate *v9; // rbx\n  cocos2d::CCMouseDispatcher *v10; // rax\n\n  v2 = cocos2d::CCDirector::sharedDirector();\n  if ( *((_BYTE *)this + 360) )\n    (*(void (__fastcall **)(cocos2d::CCLayer *))(*(_QWORD *)this + 888LL))(this);\n  cocos2d::CCNode::onEnter(this);\n  if ( *((_BYTE *)this + 361) )\n  {\n    v3 = (cocos2d::CCLayer *)((char *)this + 328);\n    if ( !this )\n      v3 = nullptr;\n    v4 = (cocos2d::CCAccelerometer *)(*(__int64 (__fastcall **)(struct cocos2d::CCDirector *))(*(_QWORD *)v2 + 208LL))(v2);\n    cocos2d::CCAccelerometer::setDelegate(v4, v3);\n  }\n  if ( *((_BYTE *)this + 362) )\n  {\n    v5 = (cocos2d::CCLayer *)((char *)this + 336);\n    if ( !this )\n      v5 = nullptr;\n    v6 = (cocos2d::CCKeypadDispatcher *)(*(__int64 (__fastcall **)(struct cocos2d::CCDirector *))(*(_QWORD *)v2 + 160LL))(v2);\n    cocos2d::CCKeypadDispatcher::addDelegate(v6, v5);\n  }\n  if ( *((_BYTE *)this + 363) )\n  {\n    v7 = (cocos2d::CCLayer *)((char *)this + 344);\n    if ( !this )\n      v7 = nullptr;\n    v8 = (cocos2d::CCKeyboardDispatcher *)(*(__int64 (__fastcall **)(struct cocos2d::CCDirector *))(*(_QWORD *)v2 + 176LL))(v2);\n    cocos2d::CCKeyboardDispatcher::addDelegate(v8, v7);\n  }\n  if ( *((_BYTE *)this + 364) )\n  {\n    v9 = (cocos2d::CCLayer *)((char *)this + 352);\n    if ( !this )\n      v9 = nullptr;\n    v10 = (cocos2d::CCMouseDispatcher *)(*(__int64 (__fastcall **)(struct cocos2d::CCDirector *))(*(_QWORD *)v2 + 192LL))(v2);\n    cocos2d::CCMouseDispatcher::addDelegate(v10, v9);\n  }\n}", "assembly": "; \n; cocos2d::CCLayer::onEnter from 0x180052390 to 0x18005249b (267 bytes)\n; \n; 8 xrefs:\n; > <???> @ 0x1800f32f8\n; > <???> @ 0x1800f37d8\n; > <???> @ 0x1800f3d30\n; > <???> @ 0x1800f42b8\n; > <???> @ 0x1800f48b0\n; > <???> @ 0x1800fd3e8\n; > <???> @ 0x18014cf68\n; > <???> @ 0x1801bc268\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; \nmov     [rsp+arg_8], rbp                                               ; +0x0, 0x180052390\nmov     [rsp+arg_10], rsi                                              ; +0x5, 0x180052395\npush    rdi                                                            ; +0xa, 0x18005239a\nsub     rsp, 20h                                                       ; +0xb, 0x18005239b\nmov     rdi, rcx                                                       ; +0xf, 0x18005239f\ncall    ?sharedDirector@CCDirector@cocos2d@@SAPEAV12@XZ; cocos2d::CCDirector::sharedDirector(void) ; +0x12, 0x1800523a2\ncmp     byte ptr [rdi+168h], 0                                         ; +0x17, 0x1800523a7\nmov     rsi, rax                                                       ; +0x1e, 0x1800523ae\njz      short loc_1800523BF                                            ; +0x21, 0x1800523b1\nmov     rdx, [rdi]                                                     ; +0x23, 0x1800523b3\nmov     rcx, rdi                                                       ; +0x26, 0x1800523b6\ncall    qword ptr [rdx+378h]                                           ; +0x29, 0x1800523b9\nmov     rcx, rdi; this                                                 ; +0x2f, 0x1800523bf\nmov     [rsp+28h+arg_0], rbx                                           ; +0x32, 0x1800523c2\ncall    ?onEnter@CCNode@cocos2d@@UEAAXXZ; cocos2d::CCNode::onEnter(void) ; +0x37, 0x1800523c7\nxor     ebp, ebp                                                       ; +0x3c, 0x1800523cc\ncmp     [rdi+169h], bpl                                                ; +0x3e, 0x1800523ce\njz      short loc_1800523FC                                            ; +0x45, 0x1800523d5\nmov     rax, [rsi]                                                     ; +0x47, 0x1800523d7\nlea     rbx, [rdi+148h]                                                ; +0x4a, 0x1800523da\ntest    rdi, rdi                                                       ; +0x51, 0x1800523e1\nmov     rcx, rsi                                                       ; +0x54, 0x1800523e4\ncmovz   rbx, rbp                                                       ; +0x57, 0x1800523e7\ncall    qword ptr [rax+0D0h]                                           ; +0x5b, 0x1800523eb\nmov     rcx, rax; this                                                 ; +0x61, 0x1800523f1\nmov     rdx, rbx; struct cocos2d::CCAccelerometerDelegate *            ; +0x64, 0x1800523f4\ncall    ?setDelegate@CCAccelerometer@cocos2d@@QEAAXPEAVCCAccelerometerDelegate@2@@Z; cocos2d::CCAccelerometer::setDelegate(cocos2d::CCAccelerometerDelegate *) ; +0x67, 0x1800523f7\ncmp     [rdi+16Ah], bpl                                                ; +0x6c, 0x1800523fc\njz      short loc_18005242A                                            ; +0x73, 0x180052403\nmov     rax, [rsi]                                                     ; +0x75, 0x180052405\nlea     rbx, [rdi+150h]                                                ; +0x78, 0x180052408\ntest    rdi, rdi                                                       ; +0x7f, 0x18005240f\nmov     rcx, rsi                                                       ; +0x82, 0x180052412\ncmovz   rbx, rbp                                                       ; +0x85, 0x180052415\ncall    qword ptr [rax+0A0h]                                           ; +0x89, 0x180052419\nmov     rcx, rax; this                                                 ; +0x8f, 0x18005241f\nmov     rdx, rbx; struct cocos2d::CCKeypadDelegate *                   ; +0x92, 0x180052422\ncall    ?addDelegate@CCKeypadDispatcher@cocos2d@@QEAAXPEAVCCKeypadDelegate@2@@Z; cocos2d::CCKeypadDispatcher::addDelegate(cocos2d::CCKeypadDelegate *) ; +0x95, 0x180052425\ncmp     [rdi+16Bh], bpl                                                ; +0x9a, 0x18005242a\njz      short loc_180052458                                            ; +0xa1, 0x180052431\nmov     rax, [rsi]                                                     ; +0xa3, 0x180052433\nlea     rbx, [rdi+158h]                                                ; +0xa6, 0x180052436\ntest    rdi, rdi                                                       ; +0xad, 0x18005243d\nmov     rcx, rsi                                                       ; +0xb0, 0x180052440\ncmovz   rbx, rbp                                                       ; +0xb3, 0x180052443\ncall    qword ptr [rax+0B0h]                                           ; +0xb7, 0x180052447\nmov     rcx, rax; this                                                 ; +0xbd, 0x18005244d\nmov     rdx, rbx; struct cocos2d::CCKeyboardDelegate *                 ; +0xc0, 0x180052450\ncall    ?addDelegate@CCKeyboardDispatcher@cocos2d@@QEAAXPEAVCCKeyboardDelegate@2@@Z; cocos2d::CCKeyboardDispatcher::addDelegate(cocos2d::CCKeyboardDelegate *) ; +0xc3, 0x180052453\ncmp     [rdi+16Ch], bpl                                                ; +0xc8, 0x180052458\njz      short loc_180052486                                            ; +0xcf, 0x18005245f\nmov     rax, [rsi]                                                     ; +0xd1, 0x180052461\nlea     rbx, [rdi+160h]                                                ; +0xd4, 0x180052464\ntest    rdi, rdi                                                       ; +0xdb, 0x18005246b\nmov     rcx, rsi                                                       ; +0xde, 0x18005246e\ncmovz   rbx, rbp                                                       ; +0xe1, 0x180052471\ncall    qword ptr [rax+0C0h]                                           ; +0xe5, 0x180052475\nmov     rcx, rax; this                                                 ; +0xeb, 0x18005247b\nmov     rdx, rbx; struct cocos2d::CCMouseDelegate *                    ; +0xee, 0x18005247e\ncall    ?addDelegate@CCMouseDispatcher@cocos2d@@QEAAXPEAVCCMouseDelegate@2@@Z; cocos2d::CCMouseDispatcher::addDelegate(cocos2d::CCMouseDelegate *) ; +0xf1, 0x180052481\nmov     rbx, [rsp+28h+arg_0]                                           ; +0xf6, 0x180052486\nmov     rbp, [rsp+28h+arg_8]                                           ; +0xfb, 0x18005248b\nmov     rsi, [rsp+28h+arg_10]                                          ; +0x100, 0x180052490\nadd     rsp, 20h                                                       ; +0x105, 0x180052495\npop     rdi                                                            ; +0x109, 0x180052499\nretn                                                                   ; +0x10a, 0x18005249a", "xrefs": ["<???> @ 0x1800f32f8", "<???> @ 0x1800f37d8", "<???> @ 0x1800f3d30", "<???> @ 0x1800f42b8", "<???> @ 0x1800f48b0", "<???> @ 0x1800fd3e8", "<???> @ 0x18014cf68", "<???> @ 0x1801bc268"], "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"}