{"type": "func", "start": 4295247248, "end": 4295247442, "name": "EditorUI::getNeighbor", "pseudocode": "// \n// EditorUI::getNeighbor from 0x100044590 to 0x100044652 (194 bytes)\n// \n// 13 xrefs:\n// > EditorUI::processSmartObjectsFromType @ 0x100044301\n// > EditorUI::convertKeyBasedOnNeighbors @ 0x100613a56\n// > EditorUI::convertKeyBasedOnNeighbors @ 0x100613a7d\n// > EditorUI::convertKeyBasedOnNeighbors @ 0x100613aa4\n// > EditorUI::convertKeyBasedOnNeighbors @ 0x100613acb\n// > EditorUI::createOutlines @ 0x100614960\n// > EditorUI::createOutlines @ 0x10061498d\n// > EditorUI::createOutlines @ 0x1006149ba\n// > EditorUI::createOutlines @ 0x1006149e7\n// > EditorUI::createOutlines @ 0x100614a18\n// > EditorUI::createOutlines @ 0x100614a46\n// > EditorUI::createOutlines @ 0x100614a74\n// > EditorUI::createOutlines @ 0x100614aa2\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\n// local variable allocation has failed, the output may be wrong!\ncocos2d::CCNode *__fastcall EditorUI::getNeighbor(\n        EditorUI *a1,\n        int a2,\n        cocos2d::CCPoint a3,\n        GJSmartDirection a4,\n        cocos2d::CCArray *a5)\n{\n  __int64 v5; // r8\n  __int64 v6; // rbx\n  __int64 v7; // r14\n  int v8; // r13d\n  cocos2d::CCNode *v9; // r12\n  unsigned int v10; // r15d\n  int v11; // r14d\n  __int64 v12; // rax\n  char v14; // [rsp+4h] [rbp-3Ch] BYREF\n  float v15[2]; // [rsp+Ch] [rbp-34h] BYREF\n  int v16; // [rsp+14h] [rbp-2Ch]\n  double v17; // 0:xmm0_8.8\n\n  v6 = v5;\n  v7 = *(_QWORD *)&a4;\n  *(cocos2d::CCPoint *)&v17 = GJSmartTemplate::offsetForDir((GJSmartDirection)&v14, (int)a5);\n  sub_10028CCE0(v15, v7);\n  v8 = (int)v15[0];\n  v16 = (int)v15[1];\n  v9 = nullptr;\n  if ( (unsigned int)sub_100720070(v6) )\n  {\n    v10 = 0;\n    while ( 1 )\n    {\n      v9 = (cocos2d::CCNode *)sub_1007200C0(v6, v10);\n      v11 = (int)*(float *)((__int64 (__fastcall *)(cocos2d::CCNode *, double))v9->getPosition)(v9, v17);\n      v12 = ((__int64 (__fastcall *)(cocos2d::CCNode *))v9->getPosition)(v9);\n      if ( v8 == v11 && v16 == (int)*(float *)(v12 + 4) )\n        break;\n      if ( ++v10 >= (unsigned int)sub_100720070(v6) )\n        return nullptr;\n    }\n  }\n  return v9;\n}", "assembly": "; \n; EditorUI::getNeighbor from 0x100044590 to 0x100044652 (194 bytes)\n; \n; 13 xrefs:\n; > EditorUI::processSmartObjectsFromType @ 0x100044301\n; > EditorUI::convertKeyBasedOnNeighbors @ 0x100613a56\n; > EditorUI::convertKeyBasedOnNeighbors @ 0x100613a7d\n; > EditorUI::convertKeyBasedOnNeighbors @ 0x100613aa4\n; > EditorUI::convertKeyBasedOnNeighbors @ 0x100613acb\n; > EditorUI::createOutlines @ 0x100614960\n; > EditorUI::createOutlines @ 0x10061498d\n; > EditorUI::createOutlines @ 0x1006149ba\n; > EditorUI::createOutlines @ 0x1006149e7\n; > EditorUI::createOutlines @ 0x100614a18\n; > EditorUI::createOutlines @ 0x100614a46\n; > EditorUI::createOutlines @ 0x100614a74\n; > EditorUI::createOutlines @ 0x100614aa2\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, 0x100044590\nmov     rbp, rsp                                                       ; +0x1, 0x100044591\npush    r15                                                            ; +0x4, 0x100044594\npush    r14                                                            ; +0x6, 0x100044596\npush    r13                                                            ; +0x8, 0x100044598\npush    r12                                                            ; +0xa, 0x10004459a\npush    rbx                                                            ; +0xc, 0x10004459c\nsub     rsp, 18h                                                       ; +0xd, 0x10004459d\nmov     rbx, r8                                                        ; +0x11, 0x1000445a1\nmov     r14, rdx                                                       ; +0x14, 0x1000445a4\nmov     edx, esi                                                       ; +0x17, 0x1000445a7\nlea     r15, [rbp+var_3C]                                              ; +0x19, 0x1000445a9\nmov     rdi, r15                                                       ; +0x1d, 0x1000445ad\nmov     esi, ecx                                                       ; +0x20, 0x1000445b0\ncall    GJSmartTemplate__offsetForDir                                  ; +0x22, 0x1000445b2\nlea     rdi, [rbp+var_34]                                              ; +0x27, 0x1000445b7\nmov     rsi, r14                                                       ; +0x2b, 0x1000445bb\nmov     rdx, r15                                                       ; +0x2e, 0x1000445be\ncall    sub_10028CCE0                                                  ; +0x31, 0x1000445c1\ncvttss2si r13d, [rbp+var_34]                                           ; +0x36, 0x1000445c6\ncvttss2si eax, [rbp+var_30]                                            ; +0x3c, 0x1000445cc\nmov     [rbp+var_2C], eax                                              ; +0x41, 0x1000445d1\nmov     rdi, rbx                                                       ; +0x44, 0x1000445d4\ncall    sub_100720070                                                  ; +0x47, 0x1000445d7\nxor     r12d, r12d                                                     ; +0x4c, 0x1000445dc\ntest    eax, eax                                                       ; +0x4f, 0x1000445df\njz      short loc_100044640                                            ; +0x51, 0x1000445e1\nxor     r15d, r15d                                                     ; +0x53, 0x1000445e3\njmp     short loc_100044600                                            ; +0x56, 0x1000445e6\nalign 10h                                                              ; +0x58, 0x1000445e8\ninc     r15d                                                           ; +0x60, 0x1000445f0\nmov     rdi, rbx                                                       ; +0x63, 0x1000445f3\ncall    sub_100720070                                                  ; +0x66, 0x1000445f6\ncmp     r15d, eax                                                      ; +0x6b, 0x1000445fb\njnb     short loc_10004463D                                            ; +0x6e, 0x1000445fe\nmov     rdi, rbx                                                       ; +0x70, 0x100044600\nmov     esi, r15d                                                      ; +0x73, 0x100044603\ncall    sub_1007200C0                                                  ; +0x76, 0x100044606\nmov     r12, rax                                                       ; +0x7b, 0x10004460b\nmov     rax, [rax]                                                     ; +0x7e, 0x10004460e\nmov     rdi, r12                                                       ; +0x81, 0x100044611\ncall    qword ptr [rax+0C0h]                                           ; +0x84, 0x100044614\ncvttss2si r14d, dword ptr [rax]                                        ; +0x8a, 0x10004461a\nmov     rax, [r12]                                                     ; +0x8f, 0x10004461f\nmov     rdi, r12                                                       ; +0x93, 0x100044623\ncall    qword ptr [rax+0C0h]                                           ; +0x96, 0x100044626\ncmp     r13d, r14d                                                     ; +0x9c, 0x10004462c\njnz     short loc_1000445F0                                            ; +0x9f, 0x10004462f\ncvttss2si eax, dword ptr [rax+4]                                       ; +0xa1, 0x100044631\ncmp     [rbp+var_2C], eax                                              ; +0xa6, 0x100044636\njnz     short loc_1000445F0                                            ; +0xa9, 0x100044639\njmp     short loc_100044640                                            ; +0xab, 0x10004463b\nxor     r12d, r12d                                                     ; +0xad, 0x10004463d\nmov     rax, r12                                                       ; +0xb0, 0x100044640\nadd     rsp, 18h                                                       ; +0xb3, 0x100044643\npop     rbx                                                            ; +0xb7, 0x100044647\npop     r12                                                            ; +0xb8, 0x100044648\npop     r13                                                            ; +0xba, 0x10004464a\npop     r14                                                            ; +0xbc, 0x10004464c\npop     r15                                                            ; +0xbe, 0x10004464e\npop     rbp                                                            ; +0xc0, 0x100044650\nretn                                                                   ; +0xc1, 0x100044651", "xrefs": ["EditorUI::processSmartObjectsFromType @ 0x100044301", "EditorUI::convertKeyBasedOnNeighbors @ 0x100613a56", "EditorUI::convertKeyBasedOnNeighbors @ 0x100613a7d", "EditorUI::convertKeyBasedOnNeighbors @ 0x100613aa4", "EditorUI::convertKeyBasedOnNeighbors @ 0x100613acb", "EditorUI::createOutlines @ 0x100614960", "EditorUI::createOutlines @ 0x10061498d", "EditorUI::createOutlines @ 0x1006149ba", "EditorUI::createOutlines @ 0x1006149e7", "EditorUI::createOutlines @ 0x100614a18", "EditorUI::createOutlines @ 0x100614a46", "EditorUI::createOutlines @ 0x100614a74", "EditorUI::createOutlines @ 0x100614aa2"], "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"}