{"type": "func", "start": 4302245696, "end": 4302246103, "name": "EditorUI::createEdgeForObject", "pseudocode": "// \n// EditorUI::createEdgeForObject from 0x1006f0f40 to 0x1006f10d7 (407 bytes)\n// \n// 5 xrefs:\n// > EditorUI::createRockEdges @ 0x1006f0d5b\n// > EditorUI::createRockEdges @ 0x1006f0dab\n// > EditorUI::createRockEdges @ 0x1006f0dec\n// > EditorUI::createRockEdges @ 0x1006f0e35\n// > EditorUI::createRockEdges @ 0x1006f0e62\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:35:51 +0000\n// \n\n__int64 __fastcall EditorUI::createEdgeForObject(__int64 a1, __int64 a2, int a3)\n{\n  int v4; // eax\n  unsigned int v5; // r15d\n  float v6; // xmm1_4\n  float v7; // xmm0_4\n  __int64 result; // rax\n  unsigned __int64 v9; // [rsp+8h] [rbp-48h] BYREF\n  __int64 v10; // [rsp+10h] [rbp-40h] BYREF\n  unsigned __int64 v11; // [rsp+18h] [rbp-38h] BYREF\n  unsigned __int64 v12[6]; // [rsp+20h] [rbp-30h] BYREF\n\n  v4 = EditorUI::edgeForObject(a1, *(unsigned int *)(a2 + 1028));\n  if ( !v4 )\n    return 0;\n  v5 = v4;\n  offsetForKey((float *)&v9, v4);\n  sub_1002782D0(v12, &qword_100BE6500);\n  switch ( a3 )\n  {\n    case 0:\n      v6 = 30.0;\n      v7 = 0.0;\n      goto LABEL_14;\n    case 1:\n      v7 = 30.0;\n      v6 = 0.0;\n      goto LABEL_14;\n    case 2:\n      v6 = -30.0;\n      v7 = 0.0;\n      goto LABEL_14;\n    case 3:\n      v7 = -30.0;\n      v6 = 0.0;\n      goto LABEL_14;\n    case 4:\n      v7 = 30.0;\n      goto LABEL_13;\n    case 5:\n      v7 = 30.0;\n      v6 = -30.0;\n      goto LABEL_14;\n    case 6:\n      v7 = -30.0;\nLABEL_13:\n      v6 = v7;\n      goto LABEL_14;\n    case 7:\n      v7 = -30.0;\n      v6 = 30.0;\nLABEL_14:\n      sub_100278250((float *)&v11, v7, v6);\n      sub_100278300(v12, &v11);\n      break;\n    default:\n      break;\n  }\n  (*(void (__fastcall **)(unsigned __int64 *, __int64))(*(_QWORD *)a2 + 1360LL))(&v11, a2);\n  sub_100278350((double *)&v10, &v11, &v9);\n  sub_100278300(&v11, &v10);\n  sub_100278350((double *)&v10, &v11, v12);\n  sub_100278300(&v11, &v10);\n  sub_1002782D0(&v10, &v11);\n  result = EditorUI::createObject(a1, v5, (__int64)&v10);\n  if ( result )\n    *(_WORD *)(result + 1204) = *(_WORD *)(a2 + 1202) + 1;\n  return result;\n}", "assembly": "; \n; EditorUI::createEdgeForObject from 0x1006f0f40 to 0x1006f10d7 (407 bytes)\n; \n; 5 xrefs:\n; > EditorUI::createRockEdges @ 0x1006f0d5b\n; > EditorUI::createRockEdges @ 0x1006f0dab\n; > EditorUI::createRockEdges @ 0x1006f0dec\n; > EditorUI::createRockEdges @ 0x1006f0e35\n; > EditorUI::createRockEdges @ 0x1006f0e62\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:35:51 +0000\n; \npush    rbp                                                            ; +0x0, 0x1006f0f40\nmov     rbp, rsp                                                       ; +0x1, 0x1006f0f41\npush    r15                                                            ; +0x4, 0x1006f0f44\npush    r14                                                            ; +0x6, 0x1006f0f46\npush    r13                                                            ; +0x8, 0x1006f0f48\npush    r12                                                            ; +0xa, 0x1006f0f4a\npush    rbx                                                            ; +0xc, 0x1006f0f4c\nsub     rsp, 28h                                                       ; +0xd, 0x1006f0f4d\nmov     r12d, edx                                                      ; +0x11, 0x1006f0f51\nmov     rbx, rsi                                                       ; +0x14, 0x1006f0f54\nmov     r14, rdi                                                       ; +0x17, 0x1006f0f57\nmov     esi, [rsi+404h]                                                ; +0x1a, 0x1006f0f5a\ncall    EditorUI__edgeForObject                                        ; +0x20, 0x1006f0f60\ntest    eax, eax                                                       ; +0x25, 0x1006f0f65\njz      short loc_1006F0FB5                                            ; +0x27, 0x1006f0f67\nmov     r15d, eax                                                      ; +0x29, 0x1006f0f69\nlea     rdi, [rbp+var_48]                                              ; +0x2c, 0x1006f0f6c\nmov     esi, eax                                                       ; +0x30, 0x1006f0f70\ncall    offsetForKey                                                   ; +0x32, 0x1006f0f72\nlea     rsi, qword_100BE6500                                           ; +0x37, 0x1006f0f77\nlea     rdi, [rbp+var_30]                                              ; +0x3e, 0x1006f0f7e\ncall    sub_1002782D0                                                  ; +0x42, 0x1006f0f82\ncmp     r12d, 7; switch 8 cases                                        ; +0x47, 0x1006f0f87\nja      def_1006F0FA2; jumptable 00000001006F0FA2 default case         ; +0x4b, 0x1006f0f8b\nmov     eax, r12d                                                      ; +0x51, 0x1006f0f91\nlea     rcx, jpt_1006F0FA2                                             ; +0x54, 0x1006f0f94\nmovsxd  rax, (jpt_1006F0FA2 - 1006F10D8h)[rcx+rax*4]                   ; +0x5b, 0x1006f0f9b\nadd     rax, rcx                                                       ; +0x5f, 0x1006f0f9f\njmp     rax; switch jump                                               ; +0x62, 0x1006f0fa2\nlea     r12, [rbp+var_38]; jumptable 00000001006F0FA2 case 0           ; +0x64, 0x1006f0fa4\nmovss   xmm1, cs:dword_100A035C4                                       ; +0x68, 0x1006f0fa8\nxorps   xmm0, xmm0                                                     ; +0x70, 0x1006f0fb0\njmp     short loc_1006F1027                                            ; +0x73, 0x1006f0fb3\nxor     eax, eax                                                       ; +0x75, 0x1006f0fb5\njmp     loc_1006F10C8                                                  ; +0x77, 0x1006f0fb7\nlea     r12, [rbp+var_38]; jumptable 00000001006F0FA2 case 4           ; +0x7c, 0x1006f0fbc\nmovss   xmm0, cs:dword_100A035C4                                       ; +0x80, 0x1006f0fc0\njmp     short loc_1006F1038                                            ; +0x88, 0x1006f0fc8\nlea     r12, [rbp+var_38]; jumptable 00000001006F0FA2 case 2           ; +0x8a, 0x1006f0fca\nmovss   xmm1, cs:dword_100A037D8                                       ; +0x8e, 0x1006f0fce\nxorps   xmm0, xmm0                                                     ; +0x96, 0x1006f0fd6\njmp     short loc_1006F1027                                            ; +0x99, 0x1006f0fd9\nlea     r12, [rbp+var_38]; jumptable 00000001006F0FA2 case 3           ; +0x9b, 0x1006f0fdb\nmovss   xmm0, cs:dword_100A037D8                                       ; +0x9f, 0x1006f0fdf\nxorps   xmm1, xmm1                                                     ; +0xa7, 0x1006f0fe7\njmp     short loc_1006F1027                                            ; +0xaa, 0x1006f0fea\nlea     r12, [rbp+var_38]; jumptable 00000001006F0FA2 case 7           ; +0xac, 0x1006f0fec\nmovss   xmm0, cs:dword_100A037D8                                       ; +0xb0, 0x1006f0ff0\nmovss   xmm1, cs:dword_100A035C4                                       ; +0xb8, 0x1006f0ff8\njmp     short loc_1006F1027                                            ; +0xc0, 0x1006f1000\nlea     r12, [rbp+var_38]; jumptable 00000001006F0FA2 case 1           ; +0xc2, 0x1006f1002\nmovss   xmm0, cs:dword_100A035C4                                       ; +0xc6, 0x1006f1006\nxorps   xmm1, xmm1                                                     ; +0xce, 0x1006f100e\njmp     short loc_1006F1027                                            ; +0xd1, 0x1006f1011\nlea     r12, [rbp+var_38]; jumptable 00000001006F0FA2 case 5           ; +0xd3, 0x1006f1013\nmovss   xmm0, cs:dword_100A035C4                                       ; +0xd7, 0x1006f1017\nmovss   xmm1, cs:dword_100A037D8                                       ; +0xdf, 0x1006f101f\nmov     rdi, r12                                                       ; +0xe7, 0x1006f1027\njmp     short loc_1006F103E                                            ; +0xea, 0x1006f102a\nlea     r12, [rbp+var_38]; jumptable 00000001006F0FA2 case 6           ; +0xec, 0x1006f102c\nmovss   xmm0, cs:dword_100A037D8                                       ; +0xf0, 0x1006f1030\nmov     rdi, r12                                                       ; +0xf8, 0x1006f1038\nmovaps  xmm1, xmm0                                                     ; +0xfb, 0x1006f103b\ncall    sub_100278250                                                  ; +0xfe, 0x1006f103e\nlea     rdi, [rbp+var_30]                                              ; +0x103, 0x1006f1043\nmov     rsi, r12                                                       ; +0x107, 0x1006f1047\ncall    sub_100278300                                                  ; +0x10a, 0x1006f104a\nmov     rax, [rbx]; jumptable 00000001006F0FA2 default case            ; +0x10f, 0x1006f104f\nlea     r12, [rbp+var_38]                                              ; +0x112, 0x1006f1052\nmov     rdi, r12                                                       ; +0x116, 0x1006f1056\nmov     rsi, rbx                                                       ; +0x119, 0x1006f1059\ncall    qword ptr [rax+550h]                                           ; +0x11c, 0x1006f105c\nlea     r13, [rbp+var_40]                                              ; +0x122, 0x1006f1062\nlea     rdx, [rbp+var_48]                                              ; +0x126, 0x1006f1066\nmov     rdi, r13                                                       ; +0x12a, 0x1006f106a\nmov     rsi, r12                                                       ; +0x12d, 0x1006f106d\ncall    sub_100278350                                                  ; +0x130, 0x1006f1070\nmov     rdi, r12                                                       ; +0x135, 0x1006f1075\nmov     rsi, r13                                                       ; +0x138, 0x1006f1078\ncall    sub_100278300                                                  ; +0x13b, 0x1006f107b\nlea     rdx, [rbp+var_30]                                              ; +0x140, 0x1006f1080\nmov     rdi, r13                                                       ; +0x144, 0x1006f1084\nmov     rsi, r12                                                       ; +0x147, 0x1006f1087\ncall    sub_100278350                                                  ; +0x14a, 0x1006f108a\nmov     rdi, r12                                                       ; +0x14f, 0x1006f108f\nmov     rsi, r13                                                       ; +0x152, 0x1006f1092\ncall    sub_100278300                                                  ; +0x155, 0x1006f1095\nmov     rdi, r13                                                       ; +0x15a, 0x1006f109a\nmov     rsi, r12                                                       ; +0x15d, 0x1006f109d\ncall    sub_1002782D0                                                  ; +0x160, 0x1006f10a0\nmov     rdi, r14                                                       ; +0x165, 0x1006f10a5\nmov     esi, r15d                                                      ; +0x168, 0x1006f10a8\nmov     rdx, r13                                                       ; +0x16b, 0x1006f10ab\ncall    EditorUI__createObject                                         ; +0x16e, 0x1006f10ae\ntest    rax, rax                                                       ; +0x173, 0x1006f10b3\njz      short loc_1006F10C8                                            ; +0x176, 0x1006f10b6\nmovzx   ecx, word ptr [rbx+4B2h]                                       ; +0x178, 0x1006f10b8\ninc     ecx                                                            ; +0x17f, 0x1006f10bf\nmov     [rax+4B4h], cx                                                 ; +0x181, 0x1006f10c1\nadd     rsp, 28h                                                       ; +0x188, 0x1006f10c8\npop     rbx                                                            ; +0x18c, 0x1006f10cc\npop     r12                                                            ; +0x18d, 0x1006f10cd\npop     r13                                                            ; +0x18f, 0x1006f10cf\npop     r14                                                            ; +0x191, 0x1006f10d1\npop     r15                                                            ; +0x193, 0x1006f10d3\npop     rbp                                                            ; +0x195, 0x1006f10d5\nretn                                                                   ; +0x196, 0x1006f10d6", "xrefs": ["EditorUI::createRockEdges @ 0x1006f0d5b", "EditorUI::createRockEdges @ 0x1006f0dab", "EditorUI::createRockEdges @ 0x1006f0dec", "EditorUI::createRockEdges @ 0x1006f0e35", "EditorUI::createRockEdges @ 0x1006f0e62"], "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"}