{"type": "func", "start": 4297671248, "end": 4297671386, "name": "EditorPauseLayer::onCreateTemplate", "pseudocode": "// \n// EditorPauseLayer::onCreateTemplate from 0x100294250 to 0x1002942da (138 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\nvoid __fastcall EditorPauseLayer::onCreateTemplate(EditorPauseLayer *a1, cocos2d::CCObject *a2)\n{\n  __int64 v2; // rbx\n  GameObject *m_selectedObject; // r14\n  EditorUI *m_editorUI; // rdi\n  GameManager *v5; // rax\n  cocos2d::CCArray *SelectedObjects; // rax\n\n  v2 = sub_10071F9E0(a1, a2);\n  m_selectedObject = GameManager::sharedState()->m_levelEditorLayer->m_editorUI->m_selectedObject;\n  m_editorUI = GameManager::sharedState()->m_levelEditorLayer->m_editorUI;\n  if ( m_selectedObject )\n  {\n    sub_10071FCD0(v2, m_editorUI->m_selectedObject);\n  }\n  else if ( EditorUI::getSelectedObjects(m_editorUI) )\n  {\n    v5 = GameManager::sharedState();\n    SelectedObjects = EditorUI::getSelectedObjects(v5->m_levelEditorLayer->m_editorUI);\n    sub_100720050(v2, SelectedObjects);\n  }\n}", "assembly": "; \n; EditorPauseLayer::onCreateTemplate from 0x100294250 to 0x1002942da (138 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, 0x100294250\nmov     rbp, rsp                                                       ; +0x1, 0x100294251\npush    r14                                                            ; +0x4, 0x100294254\npush    rbx                                                            ; +0x6, 0x100294256\ncall    sub_10071F9E0                                                  ; +0x7, 0x100294257\nmov     rbx, rax                                                       ; +0xc, 0x10029425c\ncall    GameManager__sharedState                                       ; +0xf, 0x10029425f\nmov     rax, [rax+200h]                                                ; +0x14, 0x100294264\nmov     rax, [rax+3670h]                                               ; +0x1b, 0x10029426b\nmov     r14, [rax+520h]                                                ; +0x22, 0x100294272\ncall    GameManager__sharedState                                       ; +0x29, 0x100294279\nmov     rax, [rax+200h]                                                ; +0x2e, 0x10029427e\nmov     rdi, [rax+3670h]                                               ; +0x35, 0x100294285\ntest    r14, r14                                                       ; +0x3c, 0x10029428c\njz      short loc_1002942A4                                            ; +0x3f, 0x10029428f\nmov     rsi, [rdi+520h]                                                ; +0x41, 0x100294291\nmov     rdi, rbx                                                       ; +0x48, 0x100294298\npop     rbx                                                            ; +0x4b, 0x10029429b\npop     r14                                                            ; +0x4c, 0x10029429c\npop     rbp                                                            ; +0x4e, 0x10029429e\njmp     sub_10071FCD0                                                  ; +0x4f, 0x10029429f\ncall    EditorUI__getSelectedObjects                                   ; +0x54, 0x1002942a4\ntest    rax, rax                                                       ; +0x59, 0x1002942a9\njz      short loc_1002942D5                                            ; +0x5c, 0x1002942ac\ncall    GameManager__sharedState                                       ; +0x5e, 0x1002942ae\nmov     rax, [rax+200h]                                                ; +0x63, 0x1002942b3\nmov     rdi, [rax+3670h]                                               ; +0x6a, 0x1002942ba\ncall    EditorUI__getSelectedObjects                                   ; +0x71, 0x1002942c1\nmov     rdi, rbx                                                       ; +0x76, 0x1002942c6\nmov     rsi, rax                                                       ; +0x79, 0x1002942c9\npop     rbx                                                            ; +0x7c, 0x1002942cc\npop     r14                                                            ; +0x7d, 0x1002942cd\npop     rbp                                                            ; +0x7f, 0x1002942cf\njmp     sub_100720050                                                  ; +0x80, 0x1002942d0\npop     rbx                                                            ; +0x85, 0x1002942d5\npop     r14                                                            ; +0x86, 0x1002942d6\npop     rbp                                                            ; +0x88, 0x1002942d8\nretn                                                                   ; +0x89, 0x1002942d9", "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"}