{"type": "func", "start": 4299121156, "end": 4299121264, "name": "EditorUI::getLimitedPosition", "pseudocode": "// \n// EditorUI::getLimitedPosition from 0x1003f6204 to 0x1003f6270 (108 bytes)\n// \n// 2 xrefs:\n// > EditorUI::getGridSnappedPos @ 0x1003eba40\n// > EditorUI::moveObject @ 0x1003eefb4\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\ncocos2d::CCPoint __fastcall EditorUI::getLimitedPosition(EditorUI *a1, cocos2d::CCPoint a2)\n{\n  float32x2_t *v2; // x1\n  __int64 *v3; // x8\n  float v4; // s0\n  float32x2_t v5; // d1\n  float32x2_t v6; // d0\n  cocos2d::CCPoint result; // 0:s0.4,4:s1.4\n\n  v4 = 80.0;\n  if ( a1->m_editorLayer->m_levelSettings->m_dynamicLevelHeight )\n    v4 = 1000.0;\n  v5.f32[0] = vld1_dup_f32((const float *)&dword_1006455C4).f32[0];\n  v5.f32[1] = (float)(v4 * 30.0) + 90.0;\n  v6 = vmaxnm_f32(*v2, (float32x2_t)vdup_n_s32(0xC53B8000));\n  *v2 = (float32x2_t)vbsl_s8((int8x8_t)vcgt_f32(v5, v6), (int8x8_t)v6, (int8x8_t)v5);\n  result.x = sub_1000229B8(v3, (__int64 *)v2);\n  return result;\n}", "assembly": "; \n; EditorUI::getLimitedPosition from 0x1003f6204 to 0x1003f6270 (108 bytes)\n; \n; 2 xrefs:\n; > EditorUI::getGridSnappedPos @ 0x1003eba40\n; > EditorUI::moveObject @ 0x1003eefb4\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\nLDR             X9, [X0,#0x4E8]                                        ; +0x0, 0x1003f6204\nLDR             X9, [X9,#0xCD8]                                        ; +0x4, 0x1003f6208\nLDRB            W9, [X9,#0x1C5]                                        ; +0x8, 0x1003f620c\nCMP             W9, #0                                                 ; +0xc, 0x1003f6210\nMOV             W9, #0x42A00000                                        ; +0x10, 0x1003f6214\nFMOV            S0, W9                                                 ; +0x14, 0x1003f6218\nMOV             W9, #0x447A0000                                        ; +0x18, 0x1003f621c\nFMOV            S1, W9                                                 ; +0x1c, 0x1003f6220\nFCSEL           S0, S1, S0, NE                                         ; +0x20, 0x1003f6224\nMOV             W9, #0x42B40000                                        ; +0x24, 0x1003f6228\nFMOV            S1, W9                                                 ; +0x28, 0x1003f622c\nFMOV            S2, #30.0                                              ; +0x2c, 0x1003f6230\nFMADD           S0, S0, S2, S1                                         ; +0x30, 0x1003f6234\nADRL            X9, dword_1006455C4                                    ; +0x34, 0x1003f6238\nLD1R            {V1.2S}, [X9]                                          ; +0x3c, 0x1003f6240\nLDR             D2, [X1]                                               ; +0x40, 0x1003f6244\nMOV             W9, #0xC53B8000                                        ; +0x44, 0x1003f6248\nINS             V1.S[1], V0.S[0]                                       ; +0x4c, 0x1003f6250\nDUP             V0.2S, W9                                              ; +0x50, 0x1003f6254\nFMAXNM          V0.2S, V2.2S, V0.2S                                    ; +0x54, 0x1003f6258\nFCMGT           V2.2S, V1.2S, V0.2S                                    ; +0x58, 0x1003f625c\nBIF             V0.8B, V1.8B, V2.8B                                    ; +0x5c, 0x1003f6260\nSTR             D0, [X1]                                               ; +0x60, 0x1003f6264\nMOV             X0, X8                                                 ; +0x64, 0x1003f6268\nB               sub_1000229B8                                          ; +0x68, 0x1003f626c", "xrefs": ["EditorUI::getGridSnappedPos @ 0x1003eba40", "EditorUI::moveObject @ 0x1003eefb4"], "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"}