{"type": "func", "start": 4295054944, "end": 4295055138, "name": "EditorUI::getNeighbor", "pseudocode": "// \n// EditorUI::getNeighbor from 0x100015660 to 0x100015722 (194 bytes)\n// \n// 13 xrefs:\n// > EditorUI::processSmartObjectsFromType @ 0x1000153d1\n// > EditorUI::convertKeyBasedOnNeighbors @ 0x1006f04e6\n// > EditorUI::convertKeyBasedOnNeighbors @ 0x1006f050d\n// > EditorUI::convertKeyBasedOnNeighbors @ 0x1006f0534\n// > EditorUI::convertKeyBasedOnNeighbors @ 0x1006f055b\n// > EditorUI::createOutlines @ 0x1006f13f0\n// > EditorUI::createOutlines @ 0x1006f141d\n// > EditorUI::createOutlines @ 0x1006f144a\n// > EditorUI::createOutlines @ 0x1006f1477\n// > EditorUI::createOutlines @ 0x1006f14a8\n// > EditorUI::createOutlines @ 0x1006f14d6\n// > EditorUI::createOutlines @ 0x1006f1504\n// > EditorUI::createOutlines @ 0x1006f1532\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:54 +0000\n// \n\n__int64 __fastcall EditorUI::getNeighbor(__int64 a1, unsigned int a2, __int64 a3, unsigned int a4, __int64 a5)\n{\n  int v7; // r13d\n  __int64 v8; // r12\n  unsigned int v9; // r15d\n  int v10; // r14d\n  __int64 v11; // rax\n  _BYTE v13[8]; // [rsp+4h] [rbp-3Ch] BYREF\n  float v14[2]; // [rsp+Ch] [rbp-34h] BYREF\n  int v15; // [rsp+14h] [rbp-2Ch]\n\n  GJSmartTemplate::offsetForDir(v13, a4, a2);\n  sub_100278350(v14, a3, v13);\n  v7 = (int)v14[0];\n  v15 = (int)v14[1];\n  v8 = 0;\n  if ( (unsigned int)sub_1007FEF90(a5) )\n  {\n    v9 = 0;\n    while ( 1 )\n    {\n      v8 = sub_1007FEFE0(a5, v9);\n      v10 = (int)*(float *)(*(__int64 (__fastcall **)(__int64))(*(_QWORD *)v8 + 192LL))(v8);\n      v11 = (*(__int64 (__fastcall **)(__int64))(*(_QWORD *)v8 + 192LL))(v8);\n      if ( v7 == v10 && v15 == (int)*(float *)(v11 + 4) )\n        break;\n      if ( ++v9 >= (unsigned int)sub_1007FEF90(a5) )\n        return 0;\n    }\n  }\n  return v8;\n}", "assembly": "; \n; EditorUI::getNeighbor from 0x100015660 to 0x100015722 (194 bytes)\n; \n; 13 xrefs:\n; > EditorUI::processSmartObjectsFromType @ 0x1000153d1\n; > EditorUI::convertKeyBasedOnNeighbors @ 0x1006f04e6\n; > EditorUI::convertKeyBasedOnNeighbors @ 0x1006f050d\n; > EditorUI::convertKeyBasedOnNeighbors @ 0x1006f0534\n; > EditorUI::convertKeyBasedOnNeighbors @ 0x1006f055b\n; > EditorUI::createOutlines @ 0x1006f13f0\n; > EditorUI::createOutlines @ 0x1006f141d\n; > EditorUI::createOutlines @ 0x1006f144a\n; > EditorUI::createOutlines @ 0x1006f1477\n; > EditorUI::createOutlines @ 0x1006f14a8\n; > EditorUI::createOutlines @ 0x1006f14d6\n; > EditorUI::createOutlines @ 0x1006f1504\n; > EditorUI::createOutlines @ 0x1006f1532\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:54 +0000\n; \npush    rbp                                                            ; +0x0, 0x100015660\nmov     rbp, rsp                                                       ; +0x1, 0x100015661\npush    r15                                                            ; +0x4, 0x100015664\npush    r14                                                            ; +0x6, 0x100015666\npush    r13                                                            ; +0x8, 0x100015668\npush    r12                                                            ; +0xa, 0x10001566a\npush    rbx                                                            ; +0xc, 0x10001566c\nsub     rsp, 18h                                                       ; +0xd, 0x10001566d\nmov     rbx, r8                                                        ; +0x11, 0x100015671\nmov     r14, rdx                                                       ; +0x14, 0x100015674\nmov     edx, esi                                                       ; +0x17, 0x100015677\nlea     r15, [rbp+var_3C]                                              ; +0x19, 0x100015679\nmov     rdi, r15                                                       ; +0x1d, 0x10001567d\nmov     esi, ecx                                                       ; +0x20, 0x100015680\ncall    GJSmartTemplate__offsetForDir                                  ; +0x22, 0x100015682\nlea     rdi, [rbp+var_34]                                              ; +0x27, 0x100015687\nmov     rsi, r14                                                       ; +0x2b, 0x10001568b\nmov     rdx, r15                                                       ; +0x2e, 0x10001568e\ncall    sub_100278350                                                  ; +0x31, 0x100015691\ncvttss2si r13d, [rbp+var_34]                                           ; +0x36, 0x100015696\ncvttss2si eax, [rbp+var_30]                                            ; +0x3c, 0x10001569c\nmov     [rbp+var_2C], eax                                              ; +0x41, 0x1000156a1\nmov     rdi, rbx                                                       ; +0x44, 0x1000156a4\ncall    sub_1007FEF90                                                  ; +0x47, 0x1000156a7\nxor     r12d, r12d                                                     ; +0x4c, 0x1000156ac\ntest    eax, eax                                                       ; +0x4f, 0x1000156af\njz      short loc_100015710                                            ; +0x51, 0x1000156b1\nxor     r15d, r15d                                                     ; +0x53, 0x1000156b3\njmp     short loc_1000156D0                                            ; +0x56, 0x1000156b6\nalign 20h                                                              ; +0x58, 0x1000156b8\ninc     r15d                                                           ; +0x60, 0x1000156c0\nmov     rdi, rbx                                                       ; +0x63, 0x1000156c3\ncall    sub_1007FEF90                                                  ; +0x66, 0x1000156c6\ncmp     r15d, eax                                                      ; +0x6b, 0x1000156cb\njnb     short loc_10001570D                                            ; +0x6e, 0x1000156ce\nmov     rdi, rbx                                                       ; +0x70, 0x1000156d0\nmov     esi, r15d                                                      ; +0x73, 0x1000156d3\ncall    sub_1007FEFE0                                                  ; +0x76, 0x1000156d6\nmov     r12, rax                                                       ; +0x7b, 0x1000156db\nmov     rax, [rax]                                                     ; +0x7e, 0x1000156de\nmov     rdi, r12                                                       ; +0x81, 0x1000156e1\ncall    qword ptr [rax+0C0h]                                           ; +0x84, 0x1000156e4\ncvttss2si r14d, dword ptr [rax]                                        ; +0x8a, 0x1000156ea\nmov     rax, [r12]                                                     ; +0x8f, 0x1000156ef\nmov     rdi, r12                                                       ; +0x93, 0x1000156f3\ncall    qword ptr [rax+0C0h]                                           ; +0x96, 0x1000156f6\ncmp     r13d, r14d                                                     ; +0x9c, 0x1000156fc\njnz     short loc_1000156C0                                            ; +0x9f, 0x1000156ff\ncvttss2si eax, dword ptr [rax+4]                                       ; +0xa1, 0x100015701\ncmp     [rbp+var_2C], eax                                              ; +0xa6, 0x100015706\njnz     short loc_1000156C0                                            ; +0xa9, 0x100015709\njmp     short loc_100015710                                            ; +0xab, 0x10001570b\nxor     r12d, r12d                                                     ; +0xad, 0x10001570d\nmov     rax, r12                                                       ; +0xb0, 0x100015710\nadd     rsp, 18h                                                       ; +0xb3, 0x100015713\npop     rbx                                                            ; +0xb7, 0x100015717\npop     r12                                                            ; +0xb8, 0x100015718\npop     r13                                                            ; +0xba, 0x10001571a\npop     r14                                                            ; +0xbc, 0x10001571c\npop     r15                                                            ; +0xbe, 0x10001571e\npop     rbp                                                            ; +0xc0, 0x100015720\nretn                                                                   ; +0xc1, 0x100015721", "xrefs": ["EditorUI::processSmartObjectsFromType @ 0x1000153d1", "EditorUI::convertKeyBasedOnNeighbors @ 0x1006f04e6", "EditorUI::convertKeyBasedOnNeighbors @ 0x1006f050d", "EditorUI::convertKeyBasedOnNeighbors @ 0x1006f0534", "EditorUI::convertKeyBasedOnNeighbors @ 0x1006f055b", "EditorUI::createOutlines @ 0x1006f13f0", "EditorUI::createOutlines @ 0x1006f141d", "EditorUI::createOutlines @ 0x1006f144a", "EditorUI::createOutlines @ 0x1006f1477", "EditorUI::createOutlines @ 0x1006f14a8", "EditorUI::createOutlines @ 0x1006f14d6", "EditorUI::createOutlines @ 0x1006f1504", "EditorUI::createOutlines @ 0x1006f1532"], "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"}