{"type": "func", "start": 8135564, "end": 8135728, "name": "EditorUI::positionIsInSnapped", "pseudocode": "// \n// EditorUI::positionIsInSnapped from 0x7c238c to 0x7c2430 (164 bytes)\n// \n// 2 xrefs:\n// > EditorUI::onCreateObject @ 0x7ca378\n// > <???> @ 0xf5bc0\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::positionIsInSnapped(__int64 a1, float *a2)\n{\n  unsigned int v4; // w19\n  bool v5; // cf\n  unsigned int v6; // w1\n  __int64 v7; // x20\n  float *v8; // x0\n\n  v4 = 0;\n  while ( 1 )\n  {\n    v5 = v4 >= (unsigned int)cocos2d::CCArray::count(*(cocos2d::CCArray **)(a1 + 880));\n    v6 = v4++;\n    if ( v5 )\n      break;\n    v7 = cocos2d::CCArray::objectAtIndex(*(cocos2d::CCArray **)(a1 + 880), v6);\n    v8 = (float *)(*(__int64 (__fastcall **)(__int64))(*(_QWORD *)v7 + 192LL))(v7);\n    if ( *v8 == *a2\n      && *(float *)((*(__int64 (__fastcall **)(__int64, float, float))(*(_QWORD *)v7 + 192LL))(v7, *a2, *v8) + 4) == a2[1] )\n    {\n      return 1;\n    }\n  }\n  return 0;\n}", "assembly": "; \n; EditorUI::positionIsInSnapped from 0x7c238c to 0x7c2430 (164 bytes)\n; \n; 2 xrefs:\n; > EditorUI::onCreateObject @ 0x7ca378\n; > <???> @ 0xf5bc0\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,#-0x30+var_s0]!                          ; +0x0, 0x7c238c\nMOV             X29, SP                                                ; +0x4, 0x7c2390\nSTP             X21, X22, [SP,#var_s20]                                ; +0x8, 0x7c2394\nSTP             X19, X20, [SP,#var_s10]                                ; +0xc, 0x7c2398\nMOV             X21, X0                                                ; +0x10, 0x7c239c\nMOV             X22, X1                                                ; +0x14, 0x7c23a0\nMOV             W19, #0                                                ; +0x18, 0x7c23a4\nLDR             X0, [X21,#0x370]; this                                 ; +0x1c, 0x7c23a8\nBL              _ZNK7cocos2d7CCArray5countEv; cocos2d::CCArray::count(void) ; +0x20, 0x7c23ac\nCMP             W19, W0                                                ; +0x24, 0x7c23b0\nMOV             W1, W19; unsigned int                                  ; +0x28, 0x7c23b4\nADD             W19, W19, #1                                           ; +0x2c, 0x7c23b8\nB.CS            loc_7C241C                                             ; +0x30, 0x7c23bc\nLDR             X0, [X21,#0x370]; this                                 ; +0x34, 0x7c23c0\nBL              _ZN7cocos2d7CCArray13objectAtIndexEj; cocos2d::CCArray::objectAtIndex(uint) ; +0x38, 0x7c23c4\nLDR             X1, [X0]                                               ; +0x3c, 0x7c23c8\nMOV             X20, X0                                                ; +0x40, 0x7c23cc\nLDR             X1, [X1,#0xC0]                                         ; +0x44, 0x7c23d0\nBLR             X1                                                     ; +0x48, 0x7c23d4\nLDR             S0, [X22]                                              ; +0x4c, 0x7c23d8\nLDR             S1, [X0]                                               ; +0x50, 0x7c23dc\nFCMP            S1, S0                                                 ; +0x54, 0x7c23e0\nB.NE            loc_7C23A8                                             ; +0x58, 0x7c23e4\nLDR             X1, [X20]                                              ; +0x5c, 0x7c23e8\nMOV             X0, X20                                                ; +0x60, 0x7c23ec\nLDR             X1, [X1,#0xC0]                                         ; +0x64, 0x7c23f0\nBLR             X1                                                     ; +0x68, 0x7c23f4\nLDR             S0, [X22,#4]                                           ; +0x6c, 0x7c23f8\nLDR             S1, [X0,#4]                                            ; +0x70, 0x7c23fc\nFCMP            S1, S0                                                 ; +0x74, 0x7c2400\nB.NE            loc_7C23A8                                             ; +0x78, 0x7c2404\nMOV             W0, #1                                                 ; +0x7c, 0x7c2408\nLDP             X19, X20, [SP,#var_s10]                                ; +0x80, 0x7c240c\nLDP             X21, X22, [SP,#var_s20]                                ; +0x84, 0x7c2410\nLDP             X29, X30, [SP+var_s0],#0x30                            ; +0x88, 0x7c2414\nRET                                                                    ; +0x8c, 0x7c2418\nMOV             W0, #0                                                 ; +0x90, 0x7c241c\nLDP             X19, X20, [SP,#var_s10]                                ; +0x94, 0x7c2420\nLDP             X21, X22, [SP,#var_s20]                                ; +0x98, 0x7c2424\nLDP             X29, X30, [SP+var_s0],#0x30                            ; +0x9c, 0x7c2428\nRET                                                                    ; +0xa0, 0x7c242c", "xrefs": ["EditorUI::onCreateObject @ 0x7ca378", "<???> @ 0xf5bc0"], "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"}