{"type": "func", "start": 4299239760, "end": 4299239852, "name": "GJSmartTemplate::offsetForObject", "pseudocode": "// \n// GJSmartTemplate::offsetForObject from 0x100413150 to 0x1004131ac (92 bytes)\n// \n// 2 xrefs:\n// > EditorUI::createSmartObjectsFromTemplate @ 0x100013d4b\n// > EditorUI::createSmartObjectsFromTemplate @ 0x100013f23\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:30:10 +0000\n// \n\n_QWORD *__fastcall GJSmartTemplate::offsetForObject(_QWORD *a1, __int64 a2)\n{\n  __int64 v2; // rax\n  unsigned int v3; // eax\n  _QWORD v5[4]; // [rsp+0h] [rbp-20h] BYREF\n\n  v5[0] = v2;\n  if ( a2 )\n  {\n    sub_1002782D0(v5, &qword_100BE3838);\n    v3 = GJSmartTemplate::smartObjectToType(a2, v5);\n    GJSmartTemplate::offsetForType(a1, v3);\n  }\n  else\n  {\n    sub_1002782D0(a1, &qword_100BE3838);\n  }\n  return a1;\n}", "assembly": "; \n; GJSmartTemplate::offsetForObject from 0x100413150 to 0x1004131ac (92 bytes)\n; \n; 2 xrefs:\n; > EditorUI::createSmartObjectsFromTemplate @ 0x100013d4b\n; > EditorUI::createSmartObjectsFromTemplate @ 0x100013f23\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:30:10 +0000\n; \npush    rbp                                                            ; +0x0, 0x100413150\nmov     rbp, rsp                                                       ; +0x1, 0x100413151\npush    r15                                                            ; +0x4, 0x100413154\npush    r14                                                            ; +0x6, 0x100413156\npush    rbx                                                            ; +0x8, 0x100413158\npush    rax                                                            ; +0x9, 0x100413159\nmov     rbx, rdi                                                       ; +0xa, 0x10041315a\ntest    rsi, rsi                                                       ; +0xd, 0x10041315d\njz      short loc_10041318F                                            ; +0x10, 0x100413160\nmov     r14, rsi                                                       ; +0x12, 0x100413162\nlea     rsi, qword_100BE3838                                           ; +0x15, 0x100413165\nlea     r15, [rbp+var_20]                                              ; +0x1c, 0x10041316c\nmov     rdi, r15                                                       ; +0x20, 0x100413170\ncall    sub_1002782D0                                                  ; +0x23, 0x100413173\nmov     rdi, r14                                                       ; +0x28, 0x100413178\nmov     rsi, r15                                                       ; +0x2b, 0x10041317b\ncall    GJSmartTemplate__smartObjectToType                             ; +0x2e, 0x10041317e\nmov     rdi, rbx                                                       ; +0x33, 0x100413183\nmov     esi, eax                                                       ; +0x36, 0x100413186\ncall    GJSmartTemplate__offsetForType                                 ; +0x38, 0x100413188\njmp     short loc_10041319E                                            ; +0x3d, 0x10041318d\nlea     rsi, qword_100BE3838                                           ; +0x3f, 0x10041318f\nmov     rdi, rbx                                                       ; +0x46, 0x100413196\ncall    sub_1002782D0                                                  ; +0x49, 0x100413199\nmov     rax, rbx                                                       ; +0x4e, 0x10041319e\nadd     rsp, 8                                                         ; +0x51, 0x1004131a1\npop     rbx                                                            ; +0x55, 0x1004131a5\npop     r14                                                            ; +0x56, 0x1004131a6\npop     r15                                                            ; +0x58, 0x1004131a8\npop     rbp                                                            ; +0x5a, 0x1004131aa\nretn                                                                   ; +0x5b, 0x1004131ab", "xrefs": ["EditorUI::createSmartObjectsFromTemplate @ 0x100013d4b", "EditorUI::createSmartObjectsFromTemplate @ 0x100013f23"], "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"}