{"type": "func", "start": 4299320000, "end": 4299320031, "name": "GJSmartTemplate::smartTypeToObjectKey", "pseudocode": "// \n// GJSmartTemplate::smartTypeToObjectKey from 0x100426ac0 to 0x100426adf (31 bytes)\n// \n// 2 xrefs:\n// > EditorUI::createPrefab @ 0x1000439cc\n// > EditorUI::createPrefab @ 0x100043b93\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\nint __fastcall GJSmartTemplate::smartTypeToObjectKey(SmartBlockType a1)\n{\n  unsigned __int32 v1; // edi\n  int result; // eax\n\n  v1 = a1 - 50;\n  result = 2895;\n  if ( v1 <= 0x1A )\n    return *(_DWORD *)&aP_1[4 * v1];\n  return result;\n}", "assembly": "; \n; GJSmartTemplate::smartTypeToObjectKey from 0x100426ac0 to 0x100426adf (31 bytes)\n; \n; 2 xrefs:\n; > EditorUI::createPrefab @ 0x1000439cc\n; > EditorUI::createPrefab @ 0x100043b93\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, 0x100426ac0\nmov     rbp, rsp                                                       ; +0x1, 0x100426ac1\nadd     edi, 0FFFFFFCEh                                                ; +0x4, 0x100426ac4\nmov     eax, 0B4Fh                                                     ; +0x7, 0x100426ac7\ncmp     edi, 1Ah                                                       ; +0xc, 0x100426acc\nja      short loc_100426ADD                                            ; +0xf, 0x100426acf\nmov     eax, edi                                                       ; +0x11, 0x100426ad1\nlea     rcx, aP_1; \"P\\v\"                                               ; +0x13, 0x100426ad3\nmov     eax, [rcx+rax*4]                                               ; +0x1a, 0x100426ada\npop     rbp                                                            ; +0x1d, 0x100426add\nretn                                                                   ; +0x1e, 0x100426ade", "xrefs": ["EditorUI::createPrefab @ 0x1000439cc", "EditorUI::createPrefab @ 0x100043b93"], "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"}