{"type": "func", "start": 4299107204, "end": 4299107428, "name": "EditorUI::getNeighbor", "pseudocode": "// \n// EditorUI::getNeighbor from 0x1003f2b84 to 0x1003f2c64 (224 bytes)\n// \n// 13 xrefs:\n// > EditorUI::convertKeyBasedOnNeighbors @ 0x100077e2c\n// > EditorUI::convertKeyBasedOnNeighbors @ 0x100077e54\n// > EditorUI::convertKeyBasedOnNeighbors @ 0x100077e7c\n// > EditorUI::convertKeyBasedOnNeighbors @ 0x100077ea4\n// > EditorUI::createOutlines @ 0x100078af8\n// > EditorUI::createOutlines @ 0x100078b20\n// > EditorUI::createOutlines @ 0x100078b48\n// > EditorUI::createOutlines @ 0x100078b70\n// > EditorUI::createOutlines @ 0x100078b98\n// > EditorUI::createOutlines @ 0x100078bc0\n// > EditorUI::createOutlines @ 0x100078be8\n// > EditorUI::createOutlines @ 0x100078c10\n// > EditorUI::processSmartObjectsFromType @ 0x1003f29bc\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; // x4\n  __int64 v6; // x19\n  float32x2_t *v7; // x20\n  float32x2_t v8; // kr08_8\n  unsigned int v9; // w20\n  cocos2d::CCNode *v10; // x21\n  int v11; // w24\n  __int64 v12; // x0\n  float32x2_t v14; // [xsp+0h] [xbp-50h] BYREF\n  float32x2_t v15; // [xsp+8h] [xbp-48h] BYREF\n\n  v6 = v5;\n  v7 = *(float32x2_t **)&a4;\n  GJSmartTemplate::offsetForDir((GJSmartDirection)a5, a2);\n  sub_1000229DC(v7, &v14, &v15);\n  v8 = v15;\n  if ( !(unsigned int)sub_10024A36C(v6) )\n    return nullptr;\n  v9 = 0;\n  while ( 1 )\n  {\n    v10 = (cocos2d::CCNode *)sub_10024A388(v6, v9);\n    v11 = (int)*(float *)((__int64 (__fastcall *)(cocos2d::CCNode *))v10->getPosition)(v10);\n    v12 = ((__int64 (__fastcall *)(cocos2d::CCNode *))v10->getPosition)(v10);\n    if ( (int)v8.f32[0] == v11 && v8.i32[1] == *(int *)(v12 + 4) )\n      break;\n    if ( ++v9 >= (unsigned int)sub_10024A36C(v6) )\n      return nullptr;\n  }\n  return v10;\n}", "assembly": "; \n; EditorUI::getNeighbor from 0x1003f2b84 to 0x1003f2c64 (224 bytes)\n; \n; 13 xrefs:\n; > EditorUI::convertKeyBasedOnNeighbors @ 0x100077e2c\n; > EditorUI::convertKeyBasedOnNeighbors @ 0x100077e54\n; > EditorUI::convertKeyBasedOnNeighbors @ 0x100077e7c\n; > EditorUI::convertKeyBasedOnNeighbors @ 0x100077ea4\n; > EditorUI::createOutlines @ 0x100078af8\n; > EditorUI::createOutlines @ 0x100078b20\n; > EditorUI::createOutlines @ 0x100078b48\n; > EditorUI::createOutlines @ 0x100078b70\n; > EditorUI::createOutlines @ 0x100078b98\n; > EditorUI::createOutlines @ 0x100078bc0\n; > EditorUI::createOutlines @ 0x100078be8\n; > EditorUI::createOutlines @ 0x100078c10\n; > EditorUI::processSmartObjectsFromType @ 0x1003f29bc\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\nSUB             SP, SP, #0x60                                          ; +0x0, 0x1003f2b84\nSTP             D9, D8, [SP,#0x50+var_40]                              ; +0x4, 0x1003f2b88\nSTP             X24, X23, [SP,#0x50+var_30]                            ; +0x8, 0x1003f2b8c\nSTP             X22, X21, [SP,#0x50+var_20]                            ; +0xc, 0x1003f2b90\nSTP             X20, X19, [SP,#0x50+var_10]                            ; +0x10, 0x1003f2b94\nSTP             X29, X30, [SP,#0x50+var_s0]                            ; +0x14, 0x1003f2b98\nADD             X29, SP, #0x50                                         ; +0x18, 0x1003f2b9c\nMOV             X19, X4                                                ; +0x1c, 0x1003f2ba0\nMOV             X0, X3                                                 ; +0x20, 0x1003f2ba4\nMOV             X20, X2                                                ; +0x24, 0x1003f2ba8\nMOV             X8, SP                                                 ; +0x28, 0x1003f2bac\nBL              GJSmartTemplate__offsetForDir                          ; +0x2c, 0x1003f2bb0\nADD             X8, SP, #0x50+var_48                                   ; +0x30, 0x1003f2bb4\nMOV             X1, SP                                                 ; +0x34, 0x1003f2bb8\nMOV             X0, X20                                                ; +0x38, 0x1003f2bbc\nBL              sub_1000229DC                                          ; +0x3c, 0x1003f2bc0\nLDP             S8, S9, [SP,#0x50+var_48]                              ; +0x40, 0x1003f2bc4\nMOV             X0, X19                                                ; +0x44, 0x1003f2bc8\nBL              sub_10024A36C                                          ; +0x48, 0x1003f2bcc\nCBZ             W0, loc_1003F2C40                                      ; +0x4c, 0x1003f2bd0\nMOV             W20, #0                                                ; +0x50, 0x1003f2bd4\nFCVTZS          W22, S8                                                ; +0x54, 0x1003f2bd8\nFCVTZS          W23, S9                                                ; +0x58, 0x1003f2bdc\nMOV             X0, X19                                                ; +0x5c, 0x1003f2be0\nMOV             X1, X20                                                ; +0x60, 0x1003f2be4\nBL              sub_10024A388                                          ; +0x64, 0x1003f2be8\nMOV             X21, X0                                                ; +0x68, 0x1003f2bec\nLDR             X8, [X0]                                               ; +0x6c, 0x1003f2bf0\nLDR             X8, [X8,#0xC0]                                         ; +0x70, 0x1003f2bf4\nBLR             X8                                                     ; +0x74, 0x1003f2bf8\nLDR             S0, [X0]                                               ; +0x78, 0x1003f2bfc\nFCVTZS          W24, S0                                                ; +0x7c, 0x1003f2c00\nLDR             X8, [X21]                                              ; +0x80, 0x1003f2c04\nLDR             X8, [X8,#0xC0]                                         ; +0x84, 0x1003f2c08\nMOV             X0, X21                                                ; +0x88, 0x1003f2c0c\nBLR             X8                                                     ; +0x8c, 0x1003f2c10\nCMP             W22, W24                                               ; +0x90, 0x1003f2c14\nB.NE            loc_1003F2C2C                                          ; +0x94, 0x1003f2c18\nLDR             S0, [X0,#4]                                            ; +0x98, 0x1003f2c1c\nFCVTZS          W8, S0                                                 ; +0x9c, 0x1003f2c20\nCMP             W23, W8                                                ; +0xa0, 0x1003f2c24\nB.EQ            loc_1003F2C44                                          ; +0xa4, 0x1003f2c28\nADD             W20, W20, #1                                           ; +0xa8, 0x1003f2c2c\nMOV             X0, X19                                                ; +0xac, 0x1003f2c30\nBL              sub_10024A36C                                          ; +0xb0, 0x1003f2c34\nCMP             W20, W0                                                ; +0xb4, 0x1003f2c38\nB.CC            loc_1003F2BE0                                          ; +0xb8, 0x1003f2c3c\nMOV             X21, #0                                                ; +0xbc, 0x1003f2c40\nMOV             X0, X21                                                ; +0xc0, 0x1003f2c44\nLDP             X29, X30, [SP,#0x50+var_s0]                            ; +0xc4, 0x1003f2c48\nLDP             X20, X19, [SP,#0x50+var_10]                            ; +0xc8, 0x1003f2c4c\nLDP             X22, X21, [SP,#0x50+var_20]                            ; +0xcc, 0x1003f2c50\nLDP             X24, X23, [SP,#0x50+var_30]                            ; +0xd0, 0x1003f2c54\nLDP             D9, D8, [SP,#0x50+var_40]                              ; +0xd4, 0x1003f2c58\nADD             SP, SP, #0x60 ; '`'                                    ; +0xd8, 0x1003f2c5c\nRET                                                                    ; +0xdc, 0x1003f2c60", "xrefs": ["EditorUI::convertKeyBasedOnNeighbors @ 0x100077e2c", "EditorUI::convertKeyBasedOnNeighbors @ 0x100077e54", "EditorUI::convertKeyBasedOnNeighbors @ 0x100077e7c", "EditorUI::convertKeyBasedOnNeighbors @ 0x100077ea4", "EditorUI::createOutlines @ 0x100078af8", "EditorUI::createOutlines @ 0x100078b20", "EditorUI::createOutlines @ 0x100078b48", "EditorUI::createOutlines @ 0x100078b70", "EditorUI::createOutlines @ 0x100078b98", "EditorUI::createOutlines @ 0x100078bc0", "EditorUI::createOutlines @ 0x100078be8", "EditorUI::createOutlines @ 0x100078c10", "EditorUI::processSmartObjectsFromType @ 0x1003f29bc"], "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"}