{"type": "func", "start": 4298788832, "end": 4298788992, "name": "ExtendedLayer::create", "pseudocode": "// \n// ExtendedLayer::create from 0x1003a4fe0 to 0x1003a5080 (160 bytes)\n// \n// 0 xrefs:\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\nExtendedLayer *__fastcall ExtendedLayer::create()\n{\n  ExtendedLayer *v0; // rbx\n\n  v0 = (ExtendedLayer *)operator new(0x1A0u);\n  cocos2d::CCLayer::CCLayer(v0);\n  v0->cocos2d::CCLayer::cocos2d::CCNode::cocos2d::CCObject::cocos2d::CCCopying::__vftable = (ExtendedLayer_vtbl *)off_100927748;\n  v0->cocos2d::CCLayer::cocos2d::CCTouchDelegate::__vftable = (cocos2d::CCTouchDelegate_vtbl *)off_100927BC8;\n  v0->cocos2d::CCLayer::cocos2d::CCAccelerometerDelegate::__vftable = (cocos2d::CCAccelerometerDelegate_vtbl *)&off_100927C38;\n  v0->cocos2d::CCLayer::cocos2d::CCKeypadDelegate::__vftable = (cocos2d::CCKeypadDelegate_vtbl *)off_100927C50;\n  v0->cocos2d::CCLayer::cocos2d::CCKeyboardDelegate::__vftable = (cocos2d::CCKeyboardDelegate_vtbl *)off_100927C70;\n  v0->cocos2d::CCLayer::cocos2d::CCMouseDelegate::__vftable = (cocos2d::CCMouseDelegate_vtbl *)off_100927C90;\n  v0->m_delegate = nullptr;\n  if ( cocos2d::CCLayer::init(v0) )\n  {\n    cocos2d::CCObject::autorelease(v0);\n  }\n  else\n  {\n    ((void (__fastcall *)(ExtendedLayer *))v0->~ExtendedLayer_0)(v0);\n    return nullptr;\n  }\n  return v0;\n}", "assembly": "; \n; ExtendedLayer::create from 0x1003a4fe0 to 0x1003a5080 (160 bytes)\n; \n; 0 xrefs:\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    rbp                                                            ; +0x0, 0x1003a4fe0\nmov     rbp, rsp                                                       ; +0x1, 0x1003a4fe1\npush    r14                                                            ; +0x4, 0x1003a4fe4\npush    rbx                                                            ; +0x6, 0x1003a4fe6\nmov     edi, 1A0h; __sz                                                ; +0x7, 0x1003a4fe7\ncall    __Znwm; operator new(ulong)                                    ; +0xc, 0x1003a4fec\nmov     rbx, rax                                                       ; +0x11, 0x1003a4ff1\nmov     rdi, rax                                                       ; +0x14, 0x1003a4ff4\ncall    cocos2d__CCLayer__CCLayer                                      ; +0x17, 0x1003a4ff7\nlea     rax, off_100927748                                             ; +0x1c, 0x1003a4ffc\nmov     [rbx], rax                                                     ; +0x23, 0x1003a5003\nlea     rax, off_100927BC8                                             ; +0x26, 0x1003a5006\nmov     [rbx+140h], rax                                                ; +0x2d, 0x1003a500d\nlea     rax, off_100927C38                                             ; +0x34, 0x1003a5014\nmov     [rbx+148h], rax                                                ; +0x3b, 0x1003a501b\nlea     rax, off_100927C50                                             ; +0x42, 0x1003a5022\nmov     [rbx+150h], rax                                                ; +0x49, 0x1003a5029\nlea     rax, off_100927C70                                             ; +0x50, 0x1003a5030\nmov     [rbx+158h], rax                                                ; +0x57, 0x1003a5037\nlea     rax, off_100927C90                                             ; +0x5e, 0x1003a503e\nmov     [rbx+160h], rax                                                ; +0x65, 0x1003a5045\nmov     qword ptr [rbx+198h], 0                                        ; +0x6c, 0x1003a504c\nmov     rdi, rbx                                                       ; +0x77, 0x1003a5057\ncall    cocos2d__CCLayer__init                                         ; +0x7a, 0x1003a505a\ntest    al, al                                                         ; +0x7f, 0x1003a505f\njz      short loc_1003A506D                                            ; +0x81, 0x1003a5061\nmov     rdi, rbx                                                       ; +0x83, 0x1003a5063\ncall    cocos2d__CCObject__autorelease                                 ; +0x86, 0x1003a5066\njmp     short loc_1003A5078                                            ; +0x8b, 0x1003a506b\nmov     rax, [rbx]                                                     ; +0x8d, 0x1003a506d\nmov     rdi, rbx                                                       ; +0x90, 0x1003a5070\ncall    qword ptr [rax+10h]                                            ; +0x93, 0x1003a5073\nxor     ebx, ebx                                                       ; +0x96, 0x1003a5076\nmov     rax, rbx                                                       ; +0x98, 0x1003a5078\npop     rbx                                                            ; +0x9b, 0x1003a507b\npop     r14                                                            ; +0x9c, 0x1003a507c\npop     rbp                                                            ; +0x9e, 0x1003a507e\nretn                                                                   ; +0x9f, 0x1003a507f", "xrefs": [], "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"}