{"type": "func", "start": 4727120, "end": 4727214, "name": "EditorUI::positionIsInSnapped", "pseudocode": "// \n// EditorUI::positionIsInSnapped from 0x482150 to 0x4821ae (94 bytes)\n// \n// 1 xrefs:\n// > EditorUI::onCreateObject @ 0x4873ee\n// \n// This function is hookable on this platform (idp: arm, 32 bit: True, 64 bit: False!\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 11:49:23 +0000\n// \n\nint __fastcall EditorUI::positionIsInSnapped(int a1, float *a2)\n{\n  unsigned int i; // r4\n  int v5; // r5\n\n  for ( i = 0; ; ++i )\n  {\n    if ( i >= cocos2d::CCArray::count(*(cocos2d::CCArray **)(a1 + 656)) )\n      return 0;\n    v5 = cocos2d::CCArray::objectAtIndex(*(cocos2d::CCArray **)(a1 + 656), i);\n    if ( *(float *)(*(int (__fastcall **)(int))(*(_DWORD *)v5 + 96))(v5) == *a2\n      && *(float *)((*(int (__fastcall **)(int))(*(_DWORD *)v5 + 96))(v5) + 4) == a2[1] )\n    {\n      break;\n    }\n  }\n  return 1;\n}", "assembly": "; \n; EditorUI::positionIsInSnapped from 0x482150 to 0x4821ae (94 bytes)\n; \n; 1 xrefs:\n; > EditorUI::onCreateObject @ 0x4873ee\n; \n; This function is hookable on this platform (idp: arm, 32 bit: True, 64 bit: False!\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 11:49:23 +0000\n; \nPUSH            {R3-R7,LR}                                             ; +0x0, 0x482150\nMOV             R6, R0                                                 ; +0x2, 0x482152\nMOV             R7, R1                                                 ; +0x4, 0x482154\nMOVS            R4, #0                                                 ; +0x6, 0x482156\nLDR.W           R0, [R6,#0x290]; this                                  ; +0x8, 0x482158\nBL              _ZNK7cocos2d7CCArray5countEv; cocos2d::CCArray::count(void) ; +0xc, 0x48215c\nCMP             R4, R0                                                 ; +0x10, 0x482160\nBCS             loc_4821A6                                             ; +0x12, 0x482162\nMOV             R1, R4; unsigned int                                   ; +0x14, 0x482164\nLDR.W           R0, [R6,#0x290]; this                                  ; +0x16, 0x482166\nBL              _ZN7cocos2d7CCArray13objectAtIndexEj; cocos2d::CCArray::objectAtIndex(uint) ; +0x1a, 0x48216a\nLDR             R3, [R0]                                               ; +0x1e, 0x48216e\nMOV             R5, R0                                                 ; +0x20, 0x482170\nLDR             R3, [R3,#0x60]                                         ; +0x22, 0x482172\nBLX             R3                                                     ; +0x24, 0x482174\nVLDR            S15, [R7]                                              ; +0x26, 0x482176\nVLDR            S14, [R0]                                              ; +0x2a, 0x48217a\nVCMP.F32        S14, S15                                               ; +0x2e, 0x48217e\nVMRS            APSR_nzcv, FPSCR                                       ; +0x32, 0x482182\nBNE             loc_4821A2                                             ; +0x36, 0x482186\nLDR             R3, [R5]                                               ; +0x38, 0x482188\nMOV             R0, R5                                                 ; +0x3a, 0x48218a\nLDR             R3, [R3,#0x60]                                         ; +0x3c, 0x48218c\nBLX             R3                                                     ; +0x3e, 0x48218e\nVLDR            S15, [R7,#4]                                           ; +0x40, 0x482190\nVLDR            S14, [R0,#4]                                           ; +0x44, 0x482194\nVCMP.F32        S14, S15                                               ; +0x48, 0x482198\nVMRS            APSR_nzcv, FPSCR                                       ; +0x4c, 0x48219c\nBEQ             loc_4821AA                                             ; +0x50, 0x4821a0\nADDS            R4, #1                                                 ; +0x52, 0x4821a2\nB               loc_482158                                             ; +0x54, 0x4821a4\nMOVS            R0, #0                                                 ; +0x56, 0x4821a6\nPOP             {R3-R7,PC}                                             ; +0x58, 0x4821a8\nMOVS            R0, #1                                                 ; +0x5a, 0x4821aa\nPOP             {R3-R7,PC}                                             ; +0x5c, 0x4821ac", "xrefs": ["EditorUI::onCreateObject @ 0x4873ee"], "is_objc": false, "is_32_bit": true, "is_64_bit": false, "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"}