// // EditorUI::getNeighbor from 0x1401187e0 to 0x1401188ab (203 bytes) // // 14 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 // // This function is hookable on this platform! // // Using BromaIDA 8.0.0 @ https://github.com/Stazzical/BromaIDA // Using bindings at commit ba9f177b at Thu Jul 16 22:52:06 2026 from https://github.com/geode-sdk/bindings // cocos2d::CCNode *EditorUI::getNeighbor( EditorUI *a1, int a2, cocos2d::CCPoint a3, GJSmartDirection a4, cocos2d::CCArray *a5) { cocos2d::CCArray *v6; // rbp unsigned int v7; // edi int v8; // r15d int v9; // r14d cocos2d::CCNode *v10; // rsi int x; // ebx int y; // ecx char v14; // [rsp+20h] [rbp-28h] BYREF EditorUI *v15; // [rsp+50h] [rbp+8h] BYREF v15 = a1; GJSmartTemplate::offsetForDir((GJSmartDirection)&v14, a4); ((void (__fastcall *)(_QWORD, _QWORD))cocos2d::CCPoint::operator+)(a3, &v15); v6 = a5; v7 = 0; v8 = (int)*(float *)&v15; v9 = (int)*((float *)&v15 + 1); if ( !cocos2d::CCArray::count(a5) ) return nullptr; while ( 1 ) { v10 = (cocos2d::CCNode *)cocos2d::CCArray::objectAtIndex(v6, v7); x = (int)v10->getPosition_0(v10)->x; y = (int)v10->getPosition_0(v10)->y; if ( v8 == x && v9 == y ) break; if ( ++v7 >= cocos2d::CCArray::count(v6) ) return nullptr; } return v10; }