{"type": "func", "start": 4300533808, "end": 4300533866, "name": "GameLevelManager::createSmartTemplate", "pseudocode": "// \n// GameLevelManager::createSmartTemplate from 0x10054f030 to 0x10054f06a (58 bytes)\n// \n// 2 xrefs:\n// > LevelBrowserLayer::onNew @ 0x100482f6b\n// > LevelBrowserLayer::createNewSmartTemplate @ 0x10048741a\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\nchar *__fastcall GameLevelManager::createSmartTemplate(__int64 a1)\n{\n  char *v1; // r14\n\n  v1 = GJSmartTemplate::create();\n  *((_DWORD *)v1 + 48) = GameLevelManager::getNextFreeTemplateID(a1);\n  sub_1007FF110(*(_QWORD *)(a1 + 1520), v1, 0);\n  return v1;\n}", "assembly": "; \n; GameLevelManager::createSmartTemplate from 0x10054f030 to 0x10054f06a (58 bytes)\n; \n; 2 xrefs:\n; > LevelBrowserLayer::onNew @ 0x100482f6b\n; > LevelBrowserLayer::createNewSmartTemplate @ 0x10048741a\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, 0x10054f030\nmov     rbp, rsp                                                       ; +0x1, 0x10054f031\npush    r14                                                            ; +0x4, 0x10054f034\npush    rbx                                                            ; +0x6, 0x10054f036\nmov     rbx, rdi                                                       ; +0x7, 0x10054f037\ncall    GJSmartTemplate__create                                        ; +0xa, 0x10054f03a\nmov     r14, rax                                                       ; +0xf, 0x10054f03f\nmov     rdi, rbx                                                       ; +0x12, 0x10054f042\ncall    GameLevelManager__getNextFreeTemplateID                        ; +0x15, 0x10054f045\nmov     [r14+0C0h], eax                                                ; +0x1a, 0x10054f04a\nmov     rdi, [rbx+5F0h]                                                ; +0x21, 0x10054f051\nmov     rsi, r14                                                       ; +0x28, 0x10054f058\nxor     edx, edx                                                       ; +0x2b, 0x10054f05b\ncall    sub_1007FF110                                                  ; +0x2d, 0x10054f05d\nmov     rax, r14                                                       ; +0x32, 0x10054f062\npop     rbx                                                            ; +0x35, 0x10054f065\npop     r14                                                            ; +0x36, 0x10054f066\npop     rbp                                                            ; +0x38, 0x10054f068\nretn                                                                   ; +0x39, 0x10054f069", "xrefs": ["LevelBrowserLayer::onNew @ 0x100482f6b", "LevelBrowserLayer::createNewSmartTemplate @ 0x10048741a"], "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"}