{"type": "func", "start": 5369858016, "end": 5369858219, "name": "EditorUI::getNeighbor", "pseudocode": "// \n// EditorUI::getNeighbor from 0x1401187e0 to 0x1401188ab (203 bytes)\n// \n// 14 xrefs:\n// > EditorUI::processSmartObjectsFromType @ 0x1401184dd\n// > EditorUI::convertKeyBasedOnNeighbors @ 0x14012deff\n// > EditorUI::convertKeyBasedOnNeighbors @ 0x14012df25\n// > EditorUI::convertKeyBasedOnNeighbors @ 0x14012df4b\n// > EditorUI::convertKeyBasedOnNeighbors @ 0x14012df71\n// > EditorUI::createOutlines @ 0x14012f0b7\n// > EditorUI::createOutlines @ 0x14012f0f1\n// > EditorUI::createOutlines @ 0x14012f12b\n// > EditorUI::createOutlines @ 0x14012f165\n// > EditorUI::createOutlines @ 0x14012f19f\n// > EditorUI::createOutlines @ 0x14012f1d9\n// > EditorUI::createOutlines @ 0x14012f213\n// > EditorUI::createOutlines @ 0x14012f24a\n// > <???> @ 0x1406c93a8\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\ncocos2d::CCNode *EditorUI::getNeighbor(\n        EditorUI *a1,\n        int a2,\n        cocos2d::CCPoint a3,\n        GJSmartDirection a4,\n        cocos2d::CCArray *a5)\n{\n  cocos2d::CCArray *v6; // rbp\n  unsigned int v7; // edi\n  int v8; // r15d\n  int v9; // r14d\n  cocos2d::CCNode *v10; // rsi\n  int x; // ebx\n  int y; // ecx\n  char v14; // [rsp+20h] [rbp-28h] BYREF\n  EditorUI *v15; // [rsp+50h] [rbp+8h] BYREF\n\n  v15 = a1;\n  GJSmartTemplate::offsetForDir((GJSmartDirection)&v14, a4);\n  ((void (__fastcall *)(_QWORD, _QWORD))cocos2d::CCPoint::operator+)(a3, &v15);\n  v6 = a5;\n  v7 = 0;\n  v8 = (int)*(float *)&v15;\n  v9 = (int)*((float *)&v15 + 1);\n  if ( !cocos2d::CCArray::count(a5) )\n    return nullptr;\n  while ( 1 )\n  {\n    v10 = (cocos2d::CCNode *)cocos2d::CCArray::objectAtIndex(v6, v7);\n    x = (int)v10->getPosition_0(v10)->x;\n    y = (int)v10->getPosition_0(v10)->y;\n    if ( v8 == x && v9 == y )\n      break;\n    if ( ++v7 >= cocos2d::CCArray::count(v6) )\n      return nullptr;\n  }\n  return v10;\n}", "assembly": "; \n; EditorUI::getNeighbor from 0x1401187e0 to 0x1401188ab (203 bytes)\n; \n; 14 xrefs:\n; > EditorUI::processSmartObjectsFromType @ 0x1401184dd\n; > EditorUI::convertKeyBasedOnNeighbors @ 0x14012deff\n; > EditorUI::convertKeyBasedOnNeighbors @ 0x14012df25\n; > EditorUI::convertKeyBasedOnNeighbors @ 0x14012df4b\n; > EditorUI::convertKeyBasedOnNeighbors @ 0x14012df71\n; > EditorUI::createOutlines @ 0x14012f0b7\n; > EditorUI::createOutlines @ 0x14012f0f1\n; > EditorUI::createOutlines @ 0x14012f12b\n; > EditorUI::createOutlines @ 0x14012f165\n; > EditorUI::createOutlines @ 0x14012f19f\n; > EditorUI::createOutlines @ 0x14012f1d9\n; > EditorUI::createOutlines @ 0x14012f213\n; > EditorUI::createOutlines @ 0x14012f24a\n; > <???> @ 0x1406c93a8\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\nmov     [rsp+arg_8], rbx                                               ; +0x0, 0x1401187e0\nmov     [rsp+arg_10], rbp                                              ; +0x5, 0x1401187e5\nmov     [rsp+arg_18], rsi                                              ; +0xa, 0x1401187ea\nmov     [rsp+arg_0], rcx                                               ; +0xf, 0x1401187ef\npush    rdi                                                            ; +0x14, 0x1401187f4\npush    r14                                                            ; +0x15, 0x1401187f5\npush    r15                                                            ; +0x17, 0x1401187f7\nsub     rsp, 30h                                                       ; +0x19, 0x1401187f9\nmov     rbx, r8                                                        ; +0x1d, 0x1401187fd\nlea     rcx, [rsp+48h+var_28]                                          ; +0x20, 0x140118800\nmov     r8d, edx                                                       ; +0x25, 0x140118805\nmov     edx, r9d                                                       ; +0x28, 0x140118808\ncall    GJSmartTemplate__offsetForDir                                  ; +0x2b, 0x14011880b\nmov     r8, rax                                                        ; +0x30, 0x140118810\nlea     rdx, [rsp+48h+arg_0]                                           ; +0x33, 0x140118813\nmov     rcx, rbx                                                       ; +0x38, 0x140118818\ncall    cs:??HCCPoint@cocos2d@@QEBA?AV01@AEBV01@@Z; cocos2d::CCPoint::operator+(cocos2d::CCPoint const &) ; +0x3b, 0x14011881b\nmov     rbp, [rsp+48h+arg_20]                                          ; +0x41, 0x140118821\nxor     edi, edi                                                       ; +0x46, 0x140118826\ncvttss2si r15d, dword ptr [rsp+48h+arg_0]                              ; +0x48, 0x140118828\nmov     rcx, rbp                                                       ; +0x4f, 0x14011882f\ncvttss2si r14d, dword ptr [rsp+48h+arg_0+4]                            ; +0x52, 0x140118832\ncall    cs:?count@CCArray@cocos2d@@QEBAIXZ; cocos2d::CCArray::count(void) ; +0x59, 0x140118839\ntest    eax, eax                                                       ; +0x5f, 0x14011883f\njz      short loc_14011888B                                            ; +0x61, 0x140118841\nmov     edx, edi                                                       ; +0x63, 0x140118843\nmov     rcx, rbp                                                       ; +0x65, 0x140118845\ncall    cs:?objectAtIndex@CCArray@cocos2d@@QEAAPEAVCCObject@2@I@Z; cocos2d::CCArray::objectAtIndex(uint) ; +0x68, 0x140118848\nmov     rcx, rax                                                       ; +0x6e, 0x14011884e\nmov     rsi, rax                                                       ; +0x71, 0x140118851\nmov     rdx, [rax]                                                     ; +0x74, 0x140118854\ncall    qword ptr [rdx+0C8h]                                           ; +0x77, 0x140118857\nmov     rdx, [rsi]                                                     ; +0x7d, 0x14011885d\nmov     rcx, rsi                                                       ; +0x80, 0x140118860\ncvttss2si ebx, dword ptr [rax]                                         ; +0x83, 0x140118863\ncall    qword ptr [rdx+0C8h]                                           ; +0x87, 0x140118867\ncvttss2si ecx, dword ptr [rax+4]                                       ; +0x8d, 0x14011886d\ncmp     r15d, ebx                                                      ; +0x92, 0x140118872\njnz     short loc_14011887C                                            ; +0x95, 0x140118875\ncmp     r14d, ecx                                                      ; +0x97, 0x140118877\njz      short loc_1401188A6                                            ; +0x9a, 0x14011887a\nmov     rcx, rbp                                                       ; +0x9c, 0x14011887c\ninc     edi                                                            ; +0x9f, 0x14011887f\ncall    cs:?count@CCArray@cocos2d@@QEBAIXZ; cocos2d::CCArray::count(void) ; +0xa1, 0x140118881\ncmp     edi, eax                                                       ; +0xa7, 0x140118887\njb      short loc_140118843                                            ; +0xa9, 0x140118889\nxor     eax, eax                                                       ; +0xab, 0x14011888b\nmov     rbx, [rsp+48h+arg_8]                                           ; +0xad, 0x14011888d\nmov     rbp, [rsp+48h+arg_10]                                          ; +0xb2, 0x140118892\nmov     rsi, [rsp+48h+arg_18]                                          ; +0xb7, 0x140118897\nadd     rsp, 30h                                                       ; +0xbc, 0x14011889c\npop     r15                                                            ; +0xc0, 0x1401188a0\npop     r14                                                            ; +0xc2, 0x1401188a2\npop     rdi                                                            ; +0xc4, 0x1401188a4\nretn                                                                   ; +0xc5, 0x1401188a5\nmov     rax, rsi                                                       ; +0xc6, 0x1401188a6\njmp     short loc_14011888D                                            ; +0xc9, 0x1401188a9", "xrefs": ["EditorUI::processSmartObjectsFromType @ 0x1401184dd", "EditorUI::convertKeyBasedOnNeighbors @ 0x14012deff", "EditorUI::convertKeyBasedOnNeighbors @ 0x14012df25", "EditorUI::convertKeyBasedOnNeighbors @ 0x14012df4b", "EditorUI::convertKeyBasedOnNeighbors @ 0x14012df71", "EditorUI::createOutlines @ 0x14012f0b7", "EditorUI::createOutlines @ 0x14012f0f1", "EditorUI::createOutlines @ 0x14012f12b", "EditorUI::createOutlines @ 0x14012f165", "EditorUI::createOutlines @ 0x14012f19f", "EditorUI::createOutlines @ 0x14012f1d9", "EditorUI::createOutlines @ 0x14012f213", "EditorUI::createOutlines @ 0x14012f24a", "<???> @ 0x1406c93a8"], "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"}