{"type": "func", "start": 4295600112, "end": 4295600160, "name": "GameLevelManager::deleteSmartTemplate", "pseudocode": "// \n// GameLevelManager::deleteSmartTemplate from 0x10009a7f0 to 0x10009a820 (48 bytes)\n// \n// 1 xrefs:\n// > SetupSmartTemplateLayer::FLAlert_Clicked @ 0x1000710e4\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 GameLevelManager::deleteSmartTemplate(GameLevelManager *a1, GJSmartTemplate *a2)\n{\n  GJSmartTemplate *m_smartTemplate; // x8\n\n  if ( a2 )\n  {\n    m_smartTemplate = a1->m_smartTemplate;\n    if ( m_smartTemplate )\n    {\n      if ( m_smartTemplate->m_nameIndex == a2->m_nameIndex )\n        a1->m_smartTemplate = nullptr;\n    }\n    sub_10024A444(a1->m_smartTemplates, a2, 1);\n  }\n}", "assembly": "; \n; GameLevelManager::deleteSmartTemplate from 0x10009a7f0 to 0x10009a820 (48 bytes)\n; \n; 1 xrefs:\n; > SetupSmartTemplateLayer::FLAlert_Clicked @ 0x1000710e4\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\nCBZ             X1, locret_10009A81C                                   ; +0x0, 0x10009a7f0\nLDR             X8, [X0,#0x3B8]                                        ; +0x4, 0x10009a7f4\nCBZ             X8, loc_10009A810                                      ; +0x8, 0x10009a7f8\nLDR             W8, [X8,#0xC0]                                         ; +0xc, 0x10009a7fc\nLDR             W9, [X1,#0xC0]                                         ; +0x10, 0x10009a800\nCMP             W8, W9                                                 ; +0x14, 0x10009a804\nB.NE            loc_10009A810                                          ; +0x18, 0x10009a808\nSTR             XZR, [X0,#0x3B8]                                       ; +0x1c, 0x10009a80c\nLDR             X0, [X0,#0x3B0]                                        ; +0x20, 0x10009a810\nMOV             W2, #1                                                 ; +0x24, 0x10009a814\nB               sub_10024A444                                          ; +0x28, 0x10009a818\nRET                                                                    ; +0x2c, 0x10009a81c", "xrefs": ["SetupSmartTemplateLayer::FLAlert_Clicked @ 0x1000710e4"], "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"}