{"type": "func", "start": 6852452, "end": 6852616, "name": "EditorUI::positionIsInSnapped", "pseudocode": "// \n// EditorUI::positionIsInSnapped from 0x688f64 to 0x689008 (164 bytes)\n// \n// 2 xrefs:\n// > EditorUI::onCreateObject @ 0x6c01fc\n// > <???> @ 0xbc6e8\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\nbool EditorUI::positionIsInSnapped(EditorUI *a1, cocos2d::CCPoint a2)\n{\n  float *v2; // x1\n  float *v4; // x22\n  unsigned int v5; // w19\n  bool v6; // cf\n  unsigned int v7; // w1\n  __int64 v8; // x20\n  float *v9; // x0\n\n  v4 = v2;\n  v5 = 0;\n  while ( 1 )\n  {\n    v6 = v5 >= (unsigned int)cocos2d::CCArray::count(a1->m_snapPositions);\n    v7 = v5++;\n    if ( v6 )\n      break;\n    v8 = cocos2d::CCArray::objectAtIndex(a1->m_snapPositions, v7);\n    v9 = (float *)(*(__int64 (__fastcall **)(__int64))(*(_QWORD *)v8 + 192LL))(v8);\n    if ( *v9 == *v4\n      && *(float *)((*(__int64 (__fastcall **)(__int64, float, float))(*(_QWORD *)v8 + 192LL))(v8, *v4, *v9) + 4) == v4[1] )\n    {\n      return 1;\n    }\n  }\n  return 0;\n}", "assembly": "; \n; EditorUI::positionIsInSnapped from 0x688f64 to 0x689008 (164 bytes)\n; \n; 2 xrefs:\n; > EditorUI::onCreateObject @ 0x6c01fc\n; > <???> @ 0xbc6e8\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\nSTP             X29, X30, [SP,#-0x30+var_s0]!                          ; +0x0, 0x688f64\nMOV             X29, SP                                                ; +0x4, 0x688f68\nSTP             X21, X22, [SP,#var_s20]                                ; +0x8, 0x688f6c\nSTP             X19, X20, [SP,#var_s10]                                ; +0xc, 0x688f70\nMOV             X21, X0                                                ; +0x10, 0x688f74\nMOV             X22, X1                                                ; +0x14, 0x688f78\nMOV             W19, #0                                                ; +0x18, 0x688f7c\nLDR             X0, [X21,#0x328]; this                                 ; +0x1c, 0x688f80\nBL              _ZNK7cocos2d7CCArray5countEv; cocos2d::CCArray::count(void) ; +0x20, 0x688f84\nCMP             W19, W0                                                ; +0x24, 0x688f88\nMOV             W1, W19; unsigned int                                  ; +0x28, 0x688f8c\nADD             W19, W19, #1                                           ; +0x2c, 0x688f90\nB.CS            loc_688FF4                                             ; +0x30, 0x688f94\nLDR             X0, [X21,#0x328]; this                                 ; +0x34, 0x688f98\nBL              _ZN7cocos2d7CCArray13objectAtIndexEj; cocos2d::CCArray::objectAtIndex(uint) ; +0x38, 0x688f9c\nLDR             X1, [X0]                                               ; +0x3c, 0x688fa0\nMOV             X20, X0                                                ; +0x40, 0x688fa4\nLDR             X1, [X1,#0xC0]                                         ; +0x44, 0x688fa8\nBLR             X1                                                     ; +0x48, 0x688fac\nLDR             S0, [X22]                                              ; +0x4c, 0x688fb0\nLDR             S1, [X0]                                               ; +0x50, 0x688fb4\nFCMP            S1, S0                                                 ; +0x54, 0x688fb8\nB.NE            loc_688F80                                             ; +0x58, 0x688fbc\nLDR             X1, [X20]                                              ; +0x5c, 0x688fc0\nMOV             X0, X20                                                ; +0x60, 0x688fc4\nLDR             X1, [X1,#0xC0]                                         ; +0x64, 0x688fc8\nBLR             X1                                                     ; +0x68, 0x688fcc\nLDR             S0, [X22,#4]                                           ; +0x6c, 0x688fd0\nLDR             S1, [X0,#4]                                            ; +0x70, 0x688fd4\nFCMP            S1, S0                                                 ; +0x74, 0x688fd8\nB.NE            loc_688F80                                             ; +0x78, 0x688fdc\nMOV             W0, #1                                                 ; +0x7c, 0x688fe0\nLDP             X19, X20, [SP,#var_s10]                                ; +0x80, 0x688fe4\nLDP             X21, X22, [SP,#var_s20]                                ; +0x84, 0x688fe8\nLDP             X29, X30, [SP+var_s0],#0x30                            ; +0x88, 0x688fec\nRET                                                                    ; +0x8c, 0x688ff0\nMOV             W0, #0                                                 ; +0x90, 0x688ff4\nLDP             X19, X20, [SP,#var_s10]                                ; +0x94, 0x688ff8\nLDP             X21, X22, [SP,#var_s20]                                ; +0x98, 0x688ffc\nLDP             X29, X30, [SP+var_s0],#0x30                            ; +0x9c, 0x689000\nRET                                                                    ; +0xa0, 0x689004", "xrefs": ["EditorUI::onCreateObject @ 0x6c01fc", "<???> @ 0xbc6e8"], "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"}