{"type": "func", "start": 3659652, "end": 3659746, "name": "EditorUI::positionIsInSnapped", "pseudocode": "// \n// EditorUI::positionIsInSnapped from 0x37d784 to 0x37d7e2 (94 bytes)\n// \n// 1 xrefs:\n// > EditorUI::onCreateObject @ 0x3a3ca0\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 x; // r7\n  unsigned int i; // r4\n  int v5; // r5\n\n  x = a2.x;\n  for ( i = 0; ; ++i )\n  {\n    if ( i >= cocos2d::CCArray::count(a1->m_snapPositions) )\n      return 0;\n    v5 = cocos2d::CCArray::objectAtIndex(a1->m_snapPositions, i);\n    if ( *(float *)(*(int (__fastcall **)(int))(*(_DWORD *)v5 + 96))(v5) == *(float *)LODWORD(x)\n      && *(float *)((*(int (__fastcall **)(int))(*(_DWORD *)v5 + 96))(v5) + 4) == *(float *)(LODWORD(x) + 4) )\n    {\n      break;\n    }\n  }\n  return 1;\n}", "assembly": "; \n; EditorUI::positionIsInSnapped from 0x37d784 to 0x37d7e2 (94 bytes)\n; \n; 1 xrefs:\n; > EditorUI::onCreateObject @ 0x3a3ca0\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\nPUSH            {R3-R7,LR}                                             ; +0x0, 0x37d784\nMOV             R6, R0                                                 ; +0x2, 0x37d786\nMOV             R7, R1                                                 ; +0x4, 0x37d788\nMOVS            R4, #0                                                 ; +0x6, 0x37d78a\nLDR.W           R0, [R6,#0x254]; this                                  ; +0x8, 0x37d78c\nBL              _ZNK7cocos2d7CCArray5countEv; cocos2d::CCArray::count(void) ; +0xc, 0x37d790\nCMP             R4, R0                                                 ; +0x10, 0x37d794\nBCS             loc_37D7DA                                             ; +0x12, 0x37d796\nMOV             R1, R4; unsigned int                                   ; +0x14, 0x37d798\nLDR.W           R0, [R6,#0x254]; this                                  ; +0x16, 0x37d79a\nBL              _ZN7cocos2d7CCArray13objectAtIndexEj; cocos2d::CCArray::objectAtIndex(uint) ; +0x1a, 0x37d79e\nLDR             R3, [R0]                                               ; +0x1e, 0x37d7a2\nMOV             R5, R0                                                 ; +0x20, 0x37d7a4\nLDR             R3, [R3,#0x60]                                         ; +0x22, 0x37d7a6\nBLX             R3                                                     ; +0x24, 0x37d7a8\nVLDR            S15, [R7]                                              ; +0x26, 0x37d7aa\nVLDR            S14, [R0]                                              ; +0x2a, 0x37d7ae\nVCMP.F32        S14, S15                                               ; +0x2e, 0x37d7b2\nVMRS            APSR_nzcv, FPSCR                                       ; +0x32, 0x37d7b6\nBNE             loc_37D7D6                                             ; +0x36, 0x37d7ba\nLDR             R3, [R5]                                               ; +0x38, 0x37d7bc\nMOV             R0, R5                                                 ; +0x3a, 0x37d7be\nLDR             R3, [R3,#0x60]                                         ; +0x3c, 0x37d7c0\nBLX             R3                                                     ; +0x3e, 0x37d7c2\nVLDR            S15, [R7,#4]                                           ; +0x40, 0x37d7c4\nVLDR            S14, [R0,#4]                                           ; +0x44, 0x37d7c8\nVCMP.F32        S14, S15                                               ; +0x48, 0x37d7cc\nVMRS            APSR_nzcv, FPSCR                                       ; +0x4c, 0x37d7d0\nBEQ             loc_37D7DE                                             ; +0x50, 0x37d7d4\nADDS            R4, #1                                                 ; +0x52, 0x37d7d6\nB               loc_37D78C                                             ; +0x54, 0x37d7d8\nMOVS            R0, #0                                                 ; +0x56, 0x37d7da\nPOP             {R3-R7,PC}                                             ; +0x58, 0x37d7dc\nMOVS            R0, #1                                                 ; +0x5a, 0x37d7de\nPOP             {R3-R7,PC}                                             ; +0x5c, 0x37d7e0", "xrefs": ["EditorUI::onCreateObject @ 0x3a3ca0"], "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"}