{"type": "func", "start": 4300450544, "end": 4300450610, "name": "GameLevelManager::deleteSmartTemplate", "pseudocode": "// \n// GameLevelManager::deleteSmartTemplate from 0x10053aaf0 to 0x10053ab32 (66 bytes)\n// \n// 2 xrefs:\n// > SetupSmartTemplateLayer::FLAlert_Clicked @ 0x1004e87e4\n// > sub_1004E8820 @ 0x1004e8858\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; // rax\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_100720220(a1->m_smartTemplates, a2, 1);\n  }\n}", "assembly": "; \n; GameLevelManager::deleteSmartTemplate from 0x10053aaf0 to 0x10053ab32 (66 bytes)\n; \n; 2 xrefs:\n; > SetupSmartTemplateLayer::FLAlert_Clicked @ 0x1004e87e4\n; > sub_1004E8820 @ 0x1004e8858\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, 0x10053aaf0\nmov     rbp, rsp                                                       ; +0x1, 0x10053aaf1\ntest    rsi, rsi                                                       ; +0x4, 0x10053aaf4\njz      short loc_10053AB30                                            ; +0x7, 0x10053aaf7\nmov     rax, [rdi+3B8h]                                                ; +0x9, 0x10053aaf9\ntest    rax, rax                                                       ; +0x10, 0x10053ab00\njz      short loc_10053AB1E                                            ; +0x13, 0x10053ab03\nmov     eax, [rax+0C0h]                                                ; +0x15, 0x10053ab05\ncmp     eax, [rsi+0C0h]                                                ; +0x1b, 0x10053ab0b\njnz     short loc_10053AB1E                                            ; +0x21, 0x10053ab11\nmov     qword ptr [rdi+3B8h], 0                                        ; +0x23, 0x10053ab13\nmov     rdi, [rdi+3B0h]                                                ; +0x2e, 0x10053ab1e\nmov     edx, 1                                                         ; +0x35, 0x10053ab25\npop     rbp                                                            ; +0x3a, 0x10053ab2a\njmp     sub_100720220                                                  ; +0x3b, 0x10053ab2b\npop     rbp                                                            ; +0x40, 0x10053ab30\nretn                                                                   ; +0x41, 0x10053ab31", "xrefs": ["SetupSmartTemplateLayer::FLAlert_Clicked @ 0x1004e87e4", "sub_1004E8820 @ 0x1004e8858"], "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"}