{"type": "func", "start": 4294984496, "end": 4294984612, "name": "GJSmartTemplate::create", "pseudocode": "// \n// GJSmartTemplate::create from 0x100004330 to 0x1000043a4 (116 bytes)\n// \n// 2 xrefs:\n// > GJSmartTemplate::createWithCoder @ 0x1000083c8\n// > GameLevelManager::createSmartTemplate @ 0x10009a7bc\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\nGJSmartTemplate *__fastcall GJSmartTemplate::create()\n{\n  GJSmartTemplate *v0; // x19\n\n  v0 = (GJSmartTemplate *)operator new(0xC8u);\n  cocos2d::CCObject::CCObject();\n  v0->__vftable = (GJSmartTemplate_vtbl *)off_100761C20;\n  v0->m_remapDict3 = nullptr;\n  v0->m_prefabResults.__tree_.__pair3_.__value_ = 0;\n  v0->m_prefabResults.__tree_.__pair1_.__value_.__left_ = nullptr;\n  v0->m_prefabArrays = nullptr;\n  v0->m_remapDict1 = nullptr;\n  v0->m_prefabResults.__tree_.__begin_node_ = &v0->m_prefabResults.__tree_.__pair1_.__value_;\n  *(_DWORD *)&v0->m_allowFlipX = 0;\n  *(_OWORD *)&v0->m_templateName.m_data.m_short.sizex2 = 0u;\n  *(_OWORD *)&v0->m_templateName.m_data.m_long.longStorage = 0u;\n  *(_OWORD *)&v0->m_unk0a8.m_data.m_long.size = 0u;\n  *(_QWORD *)&v0->m_nameIndex = 0;\n  GJSmartTemplate::init(v0);\n  cocos2d::CCObject::autorelease(v0);\n  return v0;\n}", "assembly": "; \n; GJSmartTemplate::create from 0x100004330 to 0x1000043a4 (116 bytes)\n; \n; 2 xrefs:\n; > GJSmartTemplate::createWithCoder @ 0x1000083c8\n; > GameLevelManager::createSmartTemplate @ 0x10009a7bc\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, 0x100004330\nSTP             X29, X30, [SP,#0x10+var_s0]                            ; +0x4, 0x100004334\nADD             X29, SP, #0x10                                         ; +0x8, 0x100004338\nMOV             W0, #0xC8; __sz                                        ; +0xc, 0x10000433c\nBL              __Znwm; operator new(ulong)                            ; +0x10, 0x100004340\nMOV             X19, X0                                                ; +0x14, 0x100004344\nBL              cocos2d__CCObject__CCObject                            ; +0x18, 0x100004348\nADRL            X8, off_100761C20                                      ; +0x1c, 0x10000434c\nSTR             X8, [X19]                                              ; +0x24, 0x100004354\nSTR             XZR, [X19,#0x50]                                       ; +0x28, 0x100004358\nSTR             XZR, [X19,#0x80]                                       ; +0x2c, 0x10000435c\nMOV             X8, X19                                                ; +0x30, 0x100004360\nSTR             XZR, [X8,#0x78]!                                       ; +0x34, 0x100004364\nSTP             XZR, XZR, [X19,#0x38]                                  ; +0x38, 0x100004368\nSTR             X8, [X19,#0x70]                                        ; +0x3c, 0x10000436c\nSTR             WZR, [X19,#0x88]                                       ; +0x40, 0x100004370\nMOVI            V0.16B, #0                                             ; +0x44, 0x100004374\nSTP             Q0, Q0, [X19,#0x90]                                    ; +0x48, 0x100004378\nSTR             Q0, [X19,#0xB0]                                        ; +0x4c, 0x10000437c\nSTR             XZR, [X19,#0xC0]                                       ; +0x50, 0x100004380\nMOV             X0, X19                                                ; +0x54, 0x100004384\nBL              GJSmartTemplate__init                                  ; +0x58, 0x100004388\nMOV             X0, X19                                                ; +0x5c, 0x10000438c\nBL              cocos2d__CCObject__autorelease                         ; +0x60, 0x100004390\nMOV             X0, X19                                                ; +0x64, 0x100004394\nLDP             X29, X30, [SP,#0x10+var_s0]                            ; +0x68, 0x100004398\nLDP             X20, X19, [SP+0x10+var_10],#0x20                       ; +0x6c, 0x10000439c\nRET                                                                    ; +0x70, 0x1000043a0", "xrefs": ["GJSmartTemplate::createWithCoder @ 0x1000083c8", "GameLevelManager::createSmartTemplate @ 0x10009a7bc"], "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"}