{"type": "func", "start": 3845968, "end": 3846116, "name": "CreatorLayer::create", "pseudocode": "// \n// CreatorLayer::create from 0x3aaf50 to 0x3aafe4 (148 bytes)\n// \n// 1 xrefs:\n// > CreatorLayer::scene @ 0x3aaff6\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 *CreatorLayer::create()\n{\n  CreatorLayer *v0; // r4\n  CreatorLayer_vtbl *v1; // r3\n  CreatorLayer *v2; // r0\n\n  v0 = (CreatorLayer *)operator new(0x154u);\n  cocos2d::CCLayer::CCLayer(v0);\n  v0->cocos2d::CCLayer::cocos2d::CCNode::cocos2d::CCObject::cocos2d::CCCopying::__vftable = (CreatorLayer_vtbl *)&off_A4D9D8;\n  v0->cocos2d::CCLayer::cocos2d::CCTouchDelegate::__vftable = (cocos2d::CCTouchDelegate_vtbl *)&off_A4DC20;\n  v0->cocos2d::CCLayer::cocos2d::CCAccelerometerDelegate::__vftable = (cocos2d::CCAccelerometerDelegate_vtbl *)&off_A4DC58;\n  v0->cocos2d::CCLayer::cocos2d::CCKeypadDelegate::__vftable = (cocos2d::CCKeypadDelegate_vtbl *)&off_A4DC64;\n  v0->cocos2d::CCLayer::cocos2d::CCKeyboardDelegate::__vftable = (cocos2d::CCKeyboardDelegate_vtbl *)&off_A4DC74;\n  v0->cocos2d::CCLayer::cocos2d::CCMouseDelegate::__vftable = (cocos2d::CCMouseDelegate_vtbl *)&off_A4DC84;\n  v0->cocos2d::CCSceneTransitionDelegate::__vftable = (cocos2d::CCSceneTransitionDelegate_vtbl *)&off_A4DC98;\n  v0->DialogDelegate::__vftable = (DialogDelegate_vtbl *)&off_A4DCA4;\n  v0->m_vaultDialogIndex = -1;\n  v0->m_secretDoorSprite = nullptr;\n  v0->m_questsSprite = nullptr;\n  v0->m_versusDialogIndex = 0;\n  if ( CreatorLayer::init(v0) )\n  {\n    cocos2d::CCObject::autorelease(v0);\n  }\n  else\n  {\n    v1 = v0->cocos2d::CCLayer::cocos2d::CCNode::cocos2d::CCObject::cocos2d::CCCopying::__vftable;\n    v2 = v0;\n    v0 = nullptr;\n    v1->~CreatorLayer_0(v2);\n  }\n  return v0;\n}", "assembly": "; \n; CreatorLayer::create from 0x3aaf50 to 0x3aafe4 (148 bytes)\n; \n; 1 xrefs:\n; > CreatorLayer::scene @ 0x3aaff6\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            {R3-R5,LR}                                             ; +0x0, 0x3aaf50\nMOV.W           R0, #0x154; unsigned int                               ; +0x2, 0x3aaf52\nBL              _Znwj; operator new(uint)                              ; +0x6, 0x3aaf56\nMOV             R4, R0                                                 ; +0xa, 0x3aaf5a\nBL              _ZN7cocos2d7CCLayerC2Ev; cocos2d::CCLayer::CCLayer(void) ; +0xc, 0x3aaf5c\nLDR             R3, =(_ZTV12CreatorLayer_ptr - 0x3AAF68)               ; +0x10, 0x3aaf60\nMOV             R0, R4; this                                           ; +0x12, 0x3aaf62\nADD             R3, PC; _ZTV12CreatorLayer_ptr                         ; +0x14, 0x3aaf64\nLDR             R3, [R3]; `vtable for'CreatorLayer ...                 ; +0x16, 0x3aaf66\nADD.W           R2, R3, #8                                             ; +0x18, 0x3aaf68\nSTR             R2, [R4]                                               ; +0x1c, 0x3aaf6c\nADD.W           R2, R3, #0x250                                         ; +0x1e, 0x3aaf6e\nSTR.W           R2, [R4,#0x108]                                        ; +0x22, 0x3aaf72\nADD.W           R2, R3, #0x288                                         ; +0x26, 0x3aaf76\nSTR.W           R2, [R4,#0x10C]                                        ; +0x2a, 0x3aaf7a\nADD.W           R2, R3, #0x294                                         ; +0x2e, 0x3aaf7e\nSTR.W           R2, [R4,#0x110]                                        ; +0x32, 0x3aaf82\nADD.W           R2, R3, #0x2A4                                         ; +0x36, 0x3aaf86\nSTR.W           R2, [R4,#0x114]                                        ; +0x3a, 0x3aaf8a\nADD.W           R2, R3, #0x2B4                                         ; +0x3e, 0x3aaf8e\nSTR.W           R2, [R4,#0x118]                                        ; +0x42, 0x3aaf92\nADD.W           R2, R3, #0x2C8                                         ; +0x46, 0x3aaf96\nADD.W           R3, R3, #0x2D4                                         ; +0x4a, 0x3aaf9a\nSTR.W           R2, [R4,#0x13C]                                        ; +0x4e, 0x3aaf9e\nMOV.W           R2, #0xFFFFFFFF                                        ; +0x52, 0x3aafa2\nSTR.W           R3, [R4,#0x140]                                        ; +0x56, 0x3aafa6\nMOVS            R3, #0                                                 ; +0x5a, 0x3aafaa\nSTR.W           R2, [R4,#0x14C]                                        ; +0x5c, 0x3aafac\nSTR.W           R3, [R4,#0x144]                                        ; +0x60, 0x3aafb0\nSTR.W           R3, [R4,#0x148]                                        ; +0x64, 0x3aafb4\nSTR.W           R3, [R4,#0x150]                                        ; +0x68, 0x3aafb8\nBL              _ZN12CreatorLayer4initEv; CreatorLayer::init(void)     ; +0x6c, 0x3aafbc\nMOV             R5, R0                                                 ; +0x70, 0x3aafc0\nCBZ             R0, loc_3AAFD6                                         ; +0x72, 0x3aafc2\nMOV             R0, R4; this                                           ; +0x74, 0x3aafc4\nBL              _ZN7cocos2d8CCObject11autoreleaseEv; cocos2d::CCObject::autorelease(void) ; +0x76, 0x3aafc6\nB               loc_3AAFE0                                             ; +0x7a, 0x3aafca\nMOV             R0, R4; p                                              ; +0x7c, 0x3aafcc\nBL              _ZdlPv; operator delete(void *)                        ; +0x7e, 0x3aafce\nBL              __cxa_end_cleanup                                      ; +0x82, 0x3aafd2\nLDR             R3, [R4]                                               ; +0x86, 0x3aafd6\nMOV             R0, R4                                                 ; +0x88, 0x3aafd8\nMOV             R4, R5                                                 ; +0x8a, 0x3aafda\nLDR             R3, [R3,#8]                                            ; +0x8c, 0x3aafdc\nBLX             R3                                                     ; +0x8e, 0x3aafde\nMOV             R0, R4                                                 ; +0x90, 0x3aafe0\nPOP             {R3-R5,PC}                                             ; +0x92, 0x3aafe2", "xrefs": ["CreatorLayer::scene @ 0x3aaff6"], "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"}