{"type": "func", "start": 8139100, "end": 8139376, "name": "EditorUI::getNeighbor", "pseudocode": "// \n// EditorUI::getNeighbor from 0x7c315c to 0x7c3270 (276 bytes)\n// \n// 14 xrefs:\n// > EditorUI::processSmartObjectsFromType @ 0x7c3384\n// > EditorUI::convertKeyBasedOnNeighbors @ 0xb070bc\n// > EditorUI::convertKeyBasedOnNeighbors @ 0xb070e8\n// > EditorUI::convertKeyBasedOnNeighbors @ 0xb07114\n// > EditorUI::convertKeyBasedOnNeighbors @ 0xb07140\n// > EditorUI::createOutlines @ 0xb0871c\n// > EditorUI::createOutlines @ 0xb08744\n// > EditorUI::createOutlines @ 0xb0876c\n// > EditorUI::createOutlines @ 0xb08794\n// > EditorUI::createOutlines @ 0xb087bc\n// > EditorUI::createOutlines @ 0xb087e4\n// > EditorUI::createOutlines @ 0xb0880c\n// > EditorUI::createOutlines @ 0xb08834\n// > <???> @ 0xafc30\n// \n// This function is hookable on this platform (idp: arm, 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:54:07 +0000\n// \n\n__int64 __fastcall EditorUI::getNeighbor(__int64 a1, __int64 a2, __int64 a3, unsigned int a4, cocos2d::CCArray *a5)\n{\n  unsigned int v6; // w20\n  int v7; // w25\n  int v8; // w23\n  __int64 v9; // x19\n  int v10; // w21\n  __int64 v13; // [xsp+68h] [xbp+68h] BYREF\n  __int64 v14; // [xsp+70h] [xbp+70h] BYREF\n\n  v6 = 0;\n  GJSmartTemplate::offsetForDir(&v14, a4, a2);\n  cocos2d::CCPoint::operator+(&v13, a3);\n  v7 = (int)*(float *)&v13;\n  v8 = (int)*((float *)&v13 + 1);\n  if ( !(unsigned int)cocos2d::CCArray::count(a5) )\n    return 0;\n  while ( 1 )\n  {\n    v9 = cocos2d::CCArray::objectAtIndex(a5, v6);\n    v10 = (int)*(float *)(*(__int64 (__fastcall **)(__int64))(*(_QWORD *)v9 + 192LL))(v9);\n    if ( v8 == (int)*(float *)((*(__int64 (__fastcall **)(__int64))(*(_QWORD *)v9 + 192LL))(v9) + 4) && v7 == v10 )\n      break;\n    if ( ++v6 >= (unsigned int)cocos2d::CCArray::count(a5) )\n      return 0;\n  }\n  return v9;\n}", "assembly": "; \n; EditorUI::getNeighbor from 0x7c315c to 0x7c3270 (276 bytes)\n; \n; 14 xrefs:\n; > EditorUI::processSmartObjectsFromType @ 0x7c3384\n; > EditorUI::convertKeyBasedOnNeighbors @ 0xb070bc\n; > EditorUI::convertKeyBasedOnNeighbors @ 0xb070e8\n; > EditorUI::convertKeyBasedOnNeighbors @ 0xb07114\n; > EditorUI::convertKeyBasedOnNeighbors @ 0xb07140\n; > EditorUI::createOutlines @ 0xb0871c\n; > EditorUI::createOutlines @ 0xb08744\n; > EditorUI::createOutlines @ 0xb0876c\n; > EditorUI::createOutlines @ 0xb08794\n; > EditorUI::createOutlines @ 0xb087bc\n; > EditorUI::createOutlines @ 0xb087e4\n; > EditorUI::createOutlines @ 0xb0880c\n; > EditorUI::createOutlines @ 0xb08834\n; > <???> @ 0xafc30\n; \n; This function is hookable on this platform (idp: arm, 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:54:07 +0000\n; \nSTP             X29, X30, [SP,#var_80]!                                ; +0x0, 0x7c315c\nMOV             W0, W3                                                 ; +0x4, 0x7c3160\nMOV             X29, SP                                                ; +0x8, 0x7c3164\nSTP             X23, X24, [SP,#0x80+var_50]                            ; +0xc, 0x7c3168\nADRP            X24, #__stack_chk_guard_ptr@PAGE                       ; +0x10, 0x7c316c\nSTR             X25, [SP,#0x80+var_40]                                 ; +0x14, 0x7c3170\nSTP             X19, X20, [SP,#0x80+var_70]                            ; +0x18, 0x7c3174\nSTP             X21, X22, [SP,#0x80+var_60]                            ; +0x1c, 0x7c3178\nLDR             X3, [X24,#__stack_chk_guard_ptr@PAGEOFF]; __stack_chk_guard ; +0x20, 0x7c317c\nADD             X19, X29, #0x80+var_10                                 ; +0x24, 0x7c3180\nMOV             X8, X19                                                ; +0x28, 0x7c3184\nMOV             X22, X4                                                ; +0x2c, 0x7c3188\nSTR             X2, [X29,#0x80+var_28]                                 ; +0x30, 0x7c318c\nMOV             W20, #0                                                ; +0x34, 0x7c3190\nLDR             X3, [X3]                                               ; +0x38, 0x7c3194\nSTR             X3, [X29,#0x80+var_8]                                  ; +0x3c, 0x7c3198\nBL              _ZN15GJSmartTemplate12offsetForDirE16GJSmartDirectioni; GJSmartTemplate::offsetForDir(GJSmartDirection,int) ; +0x40, 0x7c319c\nLDR             X2, [X29,#0x80+var_28]                                 ; +0x44, 0x7c31a0\nADD             X8, X29, #0x80+var_18                                  ; +0x48, 0x7c31a4\nMOV             X1, X19                                                ; +0x4c, 0x7c31a8\nMOV             X0, X2                                                 ; +0x50, 0x7c31ac\nBL              _ZNK7cocos2d7CCPointplERKS0_; cocos2d::CCPoint::operator+(cocos2d::CCPoint const&) ; +0x54, 0x7c31b0\nLDR             S2, [X29,#0x80+var_18]                                 ; +0x58, 0x7c31b4\nMOV             X0, X22; this                                          ; +0x5c, 0x7c31b8\nFCVTZS          W25, S2                                                ; +0x60, 0x7c31bc\nLDR             S2, [X29,#0x80+var_14]                                 ; +0x64, 0x7c31c0\nFCVTZS          W23, S2                                                ; +0x68, 0x7c31c4\nBL              _ZNK7cocos2d7CCArray5countEv; cocos2d::CCArray::count(void) ; +0x6c, 0x7c31c8\nCMP             W20, W0                                                ; +0x70, 0x7c31cc\nB.CS            loc_7C3234                                             ; +0x74, 0x7c31d0\nMOV             W1, W20; unsigned int                                  ; +0x78, 0x7c31d4\nMOV             X0, X22; this                                          ; +0x7c, 0x7c31d8\nBL              _ZN7cocos2d7CCArray13objectAtIndexEj; cocos2d::CCArray::objectAtIndex(uint) ; +0x80, 0x7c31dc\nLDR             X1, [X0]                                               ; +0x84, 0x7c31e0\nMOV             X19, X0                                                ; +0x88, 0x7c31e4\nLDR             X1, [X1,#0xC0]                                         ; +0x8c, 0x7c31e8\nBLR             X1                                                     ; +0x90, 0x7c31ec\nLDR             X1, [X19]                                              ; +0x94, 0x7c31f0\nLDR             S1, [X0]                                               ; +0x98, 0x7c31f4\nMOV             X0, X19                                                ; +0x9c, 0x7c31f8\nLDR             X1, [X1,#0xC0]                                         ; +0xa0, 0x7c31fc\nFCVTZS          W21, S1                                                ; +0xa4, 0x7c3200\nBLR             X1                                                     ; +0xa8, 0x7c3204\nLDR             S0, [X0,#4]                                            ; +0xac, 0x7c3208\nFCVTZS          W0, S0                                                 ; +0xb0, 0x7c320c\nCMP             W23, W0                                                ; +0xb4, 0x7c3210\nB.NE            loc_7C3220                                             ; +0xb8, 0x7c3214\nCMP             W25, W21                                               ; +0xbc, 0x7c3218\nB.EQ            loc_7C3264                                             ; +0xc0, 0x7c321c\nMOV             X0, X22; this                                          ; +0xc4, 0x7c3220\nADD             W20, W20, #1                                           ; +0xc8, 0x7c3224\nBL              _ZNK7cocos2d7CCArray5countEv; cocos2d::CCArray::count(void) ; +0xcc, 0x7c3228\nCMP             W20, W0                                                ; +0xd0, 0x7c322c\nB.CC            loc_7C31D4                                             ; +0xd4, 0x7c3230\nMOV             X0, #0                                                 ; +0xd8, 0x7c3234\nLDR             X24, [X24,#__stack_chk_guard_ptr@PAGEOFF]; __stack_chk_guard ; +0xdc, 0x7c3238\nLDR             X2, [X29,#0x80+var_8]                                  ; +0xe0, 0x7c323c\nLDR             X1, [X24]                                              ; +0xe4, 0x7c3240\nCMP             X2, X1                                                 ; +0xe8, 0x7c3244\nB.NE            loc_7C326C                                             ; +0xec, 0x7c3248\nLDP             X19, X20, [SP,#0x80+var_70]                            ; +0xf0, 0x7c324c\nLDP             X21, X22, [SP,#0x80+var_60]                            ; +0xf4, 0x7c3250\nLDP             X23, X24, [SP,#0x80+var_50]                            ; +0xf8, 0x7c3254\nLDR             X25, [SP,#0x80+var_40]                                 ; +0xfc, 0x7c3258\nLDP             X29, X30, [SP+0x80+var_80],#0x80                       ; +0x100, 0x7c325c\nRET                                                                    ; +0x104, 0x7c3260\nMOV             X0, X19                                                ; +0x108, 0x7c3264\nB               loc_7C3238                                             ; +0x10c, 0x7c3268\nBL              .__stack_chk_fail                                      ; +0x110, 0x7c326c", "xrefs": ["EditorUI::processSmartObjectsFromType @ 0x7c3384", "EditorUI::convertKeyBasedOnNeighbors @ 0xb070bc", "EditorUI::convertKeyBasedOnNeighbors @ 0xb070e8", "EditorUI::convertKeyBasedOnNeighbors @ 0xb07114", "EditorUI::convertKeyBasedOnNeighbors @ 0xb07140", "EditorUI::createOutlines @ 0xb0871c", "EditorUI::createOutlines @ 0xb08744", "EditorUI::createOutlines @ 0xb0876c", "EditorUI::createOutlines @ 0xb08794", "EditorUI::createOutlines @ 0xb087bc", "EditorUI::createOutlines @ 0xb087e4", "EditorUI::createOutlines @ 0xb0880c", "EditorUI::createOutlines @ 0xb08834", "<???> @ 0xafc30"], "is_objc": false, "is_32_bit": false, "is_64_bit": true, "idp_name": "arm", "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"}