{"type": "func", "start": 4299081284, "end": 4299081448, "name": "EditorUI::positionIsInSnapped", "pseudocode": "// \n// EditorUI::positionIsInSnapped from 0x1003ec644 to 0x1003ec6e8 (164 bytes)\n// \n// 1 xrefs:\n// > EditorUI::onCreateObject @ 0x1003eb4e0\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 __fastcall EditorUI::positionIsInSnapped(EditorUI *a1, cocos2d::CCPoint a2)\n{\n  float *v2; // x1\n  float *v3; // x19\n  int v5; // w0\n  unsigned int v6; // w21\n  __int64 v7; // x22\n  float *v8; // x0\n\n  v3 = v2;\n  v5 = sub_10024A36C((__int64)a1->m_snapPositions);\n  if ( v5 )\n  {\n    v6 = 0;\n    while ( 1 )\n    {\n      v7 = sub_10024A388((__int64)a1->m_snapPositions, v6);\n      v8 = (float *)(*(__int64 (__fastcall **)(__int64))(*(_QWORD *)v7 + 192LL))(v7);\n      if ( *v8 == *v3\n        && *(float *)((*(__int64 (__fastcall **)(__int64, float))(*(_QWORD *)v7 + 192LL))(v7, *v8) + 4) == v3[1] )\n      {\n        break;\n      }\n      if ( ++v6 >= (unsigned int)sub_10024A36C((__int64)a1->m_snapPositions) )\n      {\n        LOBYTE(v5) = 0;\n        return v5;\n      }\n    }\n    LOBYTE(v5) = 1;\n  }\n  return v5;\n}", "assembly": "; \n; EditorUI::positionIsInSnapped from 0x1003ec644 to 0x1003ec6e8 (164 bytes)\n; \n; 1 xrefs:\n; > EditorUI::onCreateObject @ 0x1003eb4e0\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             X22, X21, [SP,#-0x10+var_20]!                          ; +0x0, 0x1003ec644\nSTP             X20, X19, [SP,#0x20+var_10]                            ; +0x4, 0x1003ec648\nSTP             X29, X30, [SP,#0x20+var_s0]                            ; +0x8, 0x1003ec64c\nADD             X29, SP, #0x20                                         ; +0xc, 0x1003ec650\nMOV             X19, X1                                                ; +0x10, 0x1003ec654\nMOV             X20, X0                                                ; +0x14, 0x1003ec658\nLDR             X0, [X0,#0x318]                                        ; +0x18, 0x1003ec65c\nBL              sub_10024A36C                                          ; +0x1c, 0x1003ec660\nCBZ             W0, loc_1003EC6D8                                      ; +0x20, 0x1003ec664\nMOV             W21, #0                                                ; +0x24, 0x1003ec668\nLDR             X0, [X20,#0x318]                                       ; +0x28, 0x1003ec66c\nMOV             X1, X21                                                ; +0x2c, 0x1003ec670\nBL              sub_10024A388                                          ; +0x30, 0x1003ec674\nMOV             X22, X0                                                ; +0x34, 0x1003ec678\nLDR             X8, [X0]                                               ; +0x38, 0x1003ec67c\nLDR             X8, [X8,#0xC0]                                         ; +0x3c, 0x1003ec680\nBLR             X8                                                     ; +0x40, 0x1003ec684\nLDR             S0, [X0]                                               ; +0x44, 0x1003ec688\nLDR             S1, [X19]                                              ; +0x48, 0x1003ec68c\nFCMP            S0, S1                                                 ; +0x4c, 0x1003ec690\nB.NE            loc_1003EC6B8                                          ; +0x50, 0x1003ec694\nLDR             X8, [X22]                                              ; +0x54, 0x1003ec698\nLDR             X8, [X8,#0xC0]                                         ; +0x58, 0x1003ec69c\nMOV             X0, X22                                                ; +0x5c, 0x1003ec6a0\nBLR             X8                                                     ; +0x60, 0x1003ec6a4\nLDR             S0, [X0,#4]                                            ; +0x64, 0x1003ec6a8\nLDR             S1, [X19,#4]                                           ; +0x68, 0x1003ec6ac\nFCMP            S0, S1                                                 ; +0x6c, 0x1003ec6b0\nB.EQ            loc_1003EC6D4                                          ; +0x70, 0x1003ec6b4\nADD             W21, W21, #1                                           ; +0x74, 0x1003ec6b8\nLDR             X0, [X20,#0x318]                                       ; +0x78, 0x1003ec6bc\nBL              sub_10024A36C                                          ; +0x7c, 0x1003ec6c0\nCMP             W21, W0                                                ; +0x80, 0x1003ec6c4\nB.CC            loc_1003EC66C                                          ; +0x84, 0x1003ec6c8\nMOV             W0, #0                                                 ; +0x88, 0x1003ec6cc\nB               loc_1003EC6D8                                          ; +0x8c, 0x1003ec6d0\nMOV             W0, #1                                                 ; +0x90, 0x1003ec6d4\nLDP             X29, X30, [SP,#0x20+var_s0]                            ; +0x94, 0x1003ec6d8\nLDP             X20, X19, [SP,#0x20+var_10]                            ; +0x98, 0x1003ec6dc\nLDP             X22, X21, [SP+0x20+var_20],#0x30                       ; +0x9c, 0x1003ec6e0\nRET                                                                    ; +0xa0, 0x1003ec6e4", "xrefs": ["EditorUI::onCreateObject @ 0x1003eb4e0"], "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"}