{"type": "func", "start": 4295708616, "end": 4295708772, "name": "CreatorLayer::create", "pseudocode": "// \n// CreatorLayer::create from 0x1000b4fc8 to 0x1000b5064 (156 bytes)\n// \n// 1 xrefs:\n// > CreatorLayer::scene @ 0x1000b4f8c\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\nCreatorLayer *__fastcall CreatorLayer::create()\n{\n  CreatorLayer *v0; // x19\n\n  v0 = (CreatorLayer *)operator new(0x1C0u);\n  cocos2d::CCLayer::CCLayer(v0);\n  v0->cocos2d::CCLayer::cocos2d::CCNode::cocos2d::CCObject::cocos2d::CCCopying::__vftable = (CreatorLayer_vtbl *)&off_100781620;\n  v0->cocos2d::CCLayer::cocos2d::CCTouchDelegate::__vftable = (cocos2d::CCTouchDelegate_vtbl *)off_100781AB0;\n  v0->cocos2d::CCLayer::cocos2d::CCAccelerometerDelegate::__vftable = (cocos2d::CCAccelerometerDelegate_vtbl *)&off_100781B20;\n  v0->cocos2d::CCLayer::cocos2d::CCKeypadDelegate::__vftable = (cocos2d::CCKeypadDelegate_vtbl *)off_100781B38;\n  v0->cocos2d::CCLayer::cocos2d::CCKeyboardDelegate::__vftable = (cocos2d::CCKeyboardDelegate_vtbl *)&off_100781B58;\n  v0->cocos2d::CCLayer::cocos2d::CCMouseDelegate::__vftable = (cocos2d::CCMouseDelegate_vtbl *)off_100781B78;\n  v0->cocos2d::CCSceneTransitionDelegate::__vftable = (cocos2d::CCSceneTransitionDelegate_vtbl *)&off_100781BA0;\n  v0->DialogDelegate::__vftable = (DialogDelegate_vtbl *)&off_100781BB8;\n  v0->m_secretDoorSprite = nullptr;\n  v0->m_questsSprite = nullptr;\n  *(_QWORD *)&v0->m_vaultDialogIndex = 0xFFFFFFFFLL;\n  if ( CreatorLayer::init(v0) )\n  {\n    cocos2d::CCObject::autorelease(v0);\n  }\n  else\n  {\n    ((void (__fastcall *)(CreatorLayer *))v0->~CreatorLayer_0)(v0);\n    return nullptr;\n  }\n  return v0;\n}", "assembly": "; \n; CreatorLayer::create from 0x1000b4fc8 to 0x1000b5064 (156 bytes)\n; \n; 1 xrefs:\n; > CreatorLayer::scene @ 0x1000b4f8c\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\nSTP             X20, X19, [SP,#-0x10+var_10]!                          ; +0x0, 0x1000b4fc8\nSTP             X29, X30, [SP,#0x10+var_s0]                            ; +0x4, 0x1000b4fcc\nADD             X29, SP, #0x10                                         ; +0x8, 0x1000b4fd0\nMOV             W0, #0x1C0; __sz                                       ; +0xc, 0x1000b4fd4\nBL              __Znwm; operator new(ulong)                            ; +0x10, 0x1000b4fd8\nMOV             X19, X0                                                ; +0x14, 0x1000b4fdc\nBL              cocos2d__CCLayer__CCLayer                              ; +0x18, 0x1000b4fe0\nADRL            X8, off_100781620                                      ; +0x1c, 0x1000b4fe4\nSTR             X8, [X19]                                              ; +0x24, 0x1000b4fec\nADD             X9, X8, #(off_100781AB0 - 0x100781620)                 ; +0x28, 0x1000b4ff0\nADD             X10, X8, #(off_100781B20 - 0x100781620)                ; +0x2c, 0x1000b4ff4\nSTP             X9, X10, [X19,#0x140]                                  ; +0x30, 0x1000b4ff8\nADD             X9, X8, #(off_100781B38 - 0x100781620)                 ; +0x34, 0x1000b4ffc\nADD             X10, X8, #(off_100781B58 - 0x100781620)                ; +0x38, 0x1000b5000\nSTP             X9, X10, [X19,#0x150]                                  ; +0x3c, 0x1000b5004\nADD             X9, X8, #(off_100781B78 - 0x100781620)                 ; +0x40, 0x1000b5008\nSTR             X9, [X19,#0x160]                                       ; +0x44, 0x1000b500c\nADD             X9, X8, #(off_100781BA0 - 0x100781620)                 ; +0x48, 0x1000b5010\nADD             X8, X8, #(off_100781BB8 - 0x100781620)                 ; +0x4c, 0x1000b5014\nSTP             X9, X8, [X19,#0x198]                                   ; +0x50, 0x1000b5018\nSTP             XZR, XZR, [X19,#0x1A8]                                 ; +0x54, 0x1000b501c\nMOVI            D0, #0xFFFFFFFF                                        ; +0x58, 0x1000b5020\nSTR             D0, [X19,#0x1B8]                                       ; +0x5c, 0x1000b5024\nMOV             X0, X19                                                ; +0x60, 0x1000b5028\nBL              CreatorLayer__init                                     ; +0x64, 0x1000b502c\nCBZ             W0, loc_1000B5040                                      ; +0x68, 0x1000b5030\nMOV             X0, X19                                                ; +0x6c, 0x1000b5034\nBL              cocos2d__CCObject__autorelease                         ; +0x70, 0x1000b5038\nB               loc_1000B5054                                          ; +0x74, 0x1000b503c\nLDR             X8, [X19]                                              ; +0x78, 0x1000b5040\nLDR             X8, [X8,#0x10]                                         ; +0x7c, 0x1000b5044\nMOV             X0, X19                                                ; +0x80, 0x1000b5048\nBLR             X8                                                     ; +0x84, 0x1000b504c\nMOV             X19, #0                                                ; +0x88, 0x1000b5050\nMOV             X0, X19                                                ; +0x8c, 0x1000b5054\nLDP             X29, X30, [SP,#0x10+var_s0]                            ; +0x90, 0x1000b5058\nLDP             X20, X19, [SP+0x10+var_10],#0x20                       ; +0x94, 0x1000b505c\nRET                                                                    ; +0x98, 0x1000b5060", "xrefs": ["CreatorLayer::scene @ 0x1000b4f8c"], "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"}