{"type": "func", "start": 4300533872, "end": 4300533938, "name": "GameLevelManager::deleteSmartTemplate", "pseudocode": "// \n// GameLevelManager::deleteSmartTemplate from 0x10054f070 to 0x10054f0b2 (66 bytes)\n// \n// 2 xrefs:\n// > SetupSmartTemplateLayer::FLAlert_Clicked @ 0x1004e3264\n// > sub_1004E32A0 @ 0x1004e32d8\n// \n// This function is hookable on this platform (idp: pc, 32 bit: False, 64 bit: True!\n// \n// Using BromaIDA 8.3.0 @ https://github.com/Stazzical/BromaIDA\n// Using bindings at commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings\n// Generated at Fri, 27 Nov 2026 12:32:02 +0000\n// \n\nvoid __fastcall GameLevelManager::deleteSmartTemplate(__int64 a1, __int64 a2)\n{\n  __int64 v2; // rax\n\n  if ( a2 )\n  {\n    v2 = *(_QWORD *)(a1 + 1528);\n    if ( v2 )\n    {\n      if ( *(_DWORD *)(v2 + 192) == *(_DWORD *)(a2 + 192) )\n        *(_QWORD *)(a1 + 1528) = 0;\n    }\n    sub_1007FF140(*(_QWORD *)(a1 + 1520), a2, 1);\n  }\n}", "assembly": "; \n; GameLevelManager::deleteSmartTemplate from 0x10054f070 to 0x10054f0b2 (66 bytes)\n; \n; 2 xrefs:\n; > SetupSmartTemplateLayer::FLAlert_Clicked @ 0x1004e3264\n; > sub_1004E32A0 @ 0x1004e32d8\n; \n; This function is hookable on this platform (idp: pc, 32 bit: False, 64 bit: True!\n; \n; Using BromaIDA 8.3.0 @ https://github.com/Stazzical/BromaIDA\n; Using bindings at commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings\n; Generated at Fri, 27 Nov 2026 12:32:02 +0000\n; \npush    rbp                                                            ; +0x0, 0x10054f070\nmov     rbp, rsp                                                       ; +0x1, 0x10054f071\ntest    rsi, rsi                                                       ; +0x4, 0x10054f074\njz      short loc_10054F0B0                                            ; +0x7, 0x10054f077\nmov     rax, [rdi+5F8h]                                                ; +0x9, 0x10054f079\ntest    rax, rax                                                       ; +0x10, 0x10054f080\njz      short loc_10054F09E                                            ; +0x13, 0x10054f083\nmov     eax, [rax+0C0h]                                                ; +0x15, 0x10054f085\ncmp     eax, [rsi+0C0h]                                                ; +0x1b, 0x10054f08b\njnz     short loc_10054F09E                                            ; +0x21, 0x10054f091\nmov     qword ptr [rdi+5F8h], 0                                        ; +0x23, 0x10054f093\nmov     rdi, [rdi+5F0h]                                                ; +0x2e, 0x10054f09e\nmov     edx, 1                                                         ; +0x35, 0x10054f0a5\npop     rbp                                                            ; +0x3a, 0x10054f0aa\njmp     sub_1007FF140                                                  ; +0x3b, 0x10054f0ab\npop     rbp                                                            ; +0x40, 0x10054f0b0\nretn                                                                   ; +0x41, 0x10054f0b1", "xrefs": ["SetupSmartTemplateLayer::FLAlert_Clicked @ 0x1004e3264", "sub_1004E32A0 @ 0x1004e32d8"], "is_objc": false, "is_32_bit": false, "is_64_bit": true, "idp_name": "pc", "bida_info": "8.3.0 @ https://github.com/Stazzical/BromaIDA", "bindings_info": "commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings"}