{"type": "func", "start": 4295040160, "end": 4295040293, "name": "EditorUI::createObject", "pseudocode": "// \n// EditorUI::createObject from 0x100011ca0 to 0x100011d25 (133 bytes)\n// \n// 6 xrefs:\n// > EditorUI::createEdgeForObject @ 0x1006f10ae\n// > EditorUI::createOutlines @ 0x1006f185a\n// > EditorUI::createOutlines @ 0x1006f1918\n// > EditorUI::createRockBases @ 0x1006f2608\n// > EditorUI::createRockBases @ 0x1006f272a\n// > EditorUI::createExtraObject @ 0x1006f5539\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:18:52 +0000\n// \n\n__int64 __fastcall EditorUI::createObject(__int64 a1, unsigned int a2, __int64 a3)\n{\n  __int64 v3; // rax\n  __int64 v4; // r14\n  __int64 Object; // rax\n  __int64 v6; // rbx\n  _QWORD v8[4]; // [rsp+0h] [rbp-20h] BYREF\n\n  v8[0] = v3;\n  v4 = *(_QWORD *)(a1 + 1440);\n  sub_1002782D0(v8, a3);\n  Object = LevelEditorLayer::createObject(v4, a2, v8, 0);\n  v6 = Object;\n  if ( Object && (*(float *)(Object + 1312) != 1.0 || *(float *)(Object + 1316) != 1.0) )\n  {\n    GameObject::updateCustomScaleX(Object);\n    GameObject::updateCustomScaleY(v6, *(float *)(v6 + 1316));\n  }\n  return v6;\n}", "assembly": "; \n; EditorUI::createObject from 0x100011ca0 to 0x100011d25 (133 bytes)\n; \n; 6 xrefs:\n; > EditorUI::createEdgeForObject @ 0x1006f10ae\n; > EditorUI::createOutlines @ 0x1006f185a\n; > EditorUI::createOutlines @ 0x1006f1918\n; > EditorUI::createRockBases @ 0x1006f2608\n; > EditorUI::createRockBases @ 0x1006f272a\n; > EditorUI::createExtraObject @ 0x1006f5539\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:18:52 +0000\n; \npush    rbp                                                            ; +0x0, 0x100011ca0\nmov     rbp, rsp                                                       ; +0x1, 0x100011ca1\npush    r15                                                            ; +0x4, 0x100011ca4\npush    r14                                                            ; +0x6, 0x100011ca6\npush    rbx                                                            ; +0x8, 0x100011ca8\npush    rax                                                            ; +0x9, 0x100011ca9\nmov     ebx, esi                                                       ; +0xa, 0x100011caa\nmov     r14, [rdi+5A0h]                                                ; +0xc, 0x100011cac\nlea     r15, [rbp+var_20]                                              ; +0x13, 0x100011cb3\nmov     rdi, r15                                                       ; +0x17, 0x100011cb7\nmov     rsi, rdx                                                       ; +0x1a, 0x100011cba\ncall    sub_1002782D0                                                  ; +0x1d, 0x100011cbd\nmov     rdi, r14                                                       ; +0x22, 0x100011cc2\nmov     esi, ebx                                                       ; +0x25, 0x100011cc5\nmov     rdx, r15                                                       ; +0x27, 0x100011cc7\nxor     ecx, ecx                                                       ; +0x2a, 0x100011cca\ncall    LevelEditorLayer__createObject                                 ; +0x2c, 0x100011ccc\nmov     rbx, rax                                                       ; +0x31, 0x100011cd1\ntest    rax, rax                                                       ; +0x34, 0x100011cd4\njz      short loc_100011D17                                            ; +0x37, 0x100011cd7\nmovss   xmm0, dword ptr [rbx+520h]                                     ; +0x39, 0x100011cd9\nucomiss xmm0, cs:alpha                                                 ; +0x41, 0x100011ce1\njnz     short loc_100011CFF                                            ; +0x48, 0x100011ce8\njp      short loc_100011CFF                                            ; +0x4a, 0x100011cea\nmovss   xmm1, dword ptr [rbx+524h]                                     ; +0x4c, 0x100011cec\nucomiss xmm1, cs:alpha                                                 ; +0x54, 0x100011cf4\njnz     short loc_100011CFF                                            ; +0x5b, 0x100011cfb\njnp     short loc_100011D17                                            ; +0x5d, 0x100011cfd\nmov     rdi, rbx                                                       ; +0x5f, 0x100011cff\ncall    GameObject__updateCustomScaleX                                 ; +0x62, 0x100011d02\nmovss   xmm0, dword ptr [rbx+524h]                                     ; +0x67, 0x100011d07\nmov     rdi, rbx                                                       ; +0x6f, 0x100011d0f\ncall    GameObject__updateCustomScaleY                                 ; +0x72, 0x100011d12\nmov     rax, rbx                                                       ; +0x77, 0x100011d17\nadd     rsp, 8                                                         ; +0x7a, 0x100011d1a\npop     rbx                                                            ; +0x7e, 0x100011d1e\npop     r14                                                            ; +0x7f, 0x100011d1f\npop     r15                                                            ; +0x81, 0x100011d21\npop     rbp                                                            ; +0x83, 0x100011d23\nretn                                                                   ; +0x84, 0x100011d24", "xrefs": ["EditorUI::createEdgeForObject @ 0x1006f10ae", "EditorUI::createOutlines @ 0x1006f185a", "EditorUI::createOutlines @ 0x1006f1918", "EditorUI::createRockBases @ 0x1006f2608", "EditorUI::createRockBases @ 0x1006f272a", "EditorUI::createExtraObject @ 0x1006f5539"], "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"}