{"type": "func", "start": 12584960, "end": 12585128, "name": "EditorUI::getLimitedPosition", "pseudocode": "// \n// EditorUI::getLimitedPosition from 0xc00800 to 0xc008a8 (168 bytes)\n// \n// 3 xrefs:\n// > EditorUI::getGridSnappedPos @ 0x7c74a0\n// > EditorUI::moveObject @ 0xc00920\n// > <???> @ 0x60628\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 13:03:48 +0000\n// \n\ncocos2d::CCPoint *__usercall EditorUI::getLimitedPosition@<X0>(\n        __int64 a1@<X0>,\n        float *a2@<X1>,\n        cocos2d::CCPoint *a3@<X8>)\n{\n  float v3; // s1\n  float v4; // s0\n  float v5; // s1\n\n  v3 = *a2;\n  if ( *a2 > -3000.0 )\n  {\n    if ( v3 >= 240000.0 )\n      v3 = 240000.0;\n  }\n  else\n  {\n    v3 = -3000.0;\n  }\n  v4 = a2[1];\n  *a2 = v3;\n  if ( v4 <= -3000.0 )\n  {\n    a2[1] = -3000.0;\n    v4 = -3000.0;\n    if ( *(_BYTE *)(*(_QWORD *)(*(_QWORD *)(a1 + 1440) + 3272LL) + 453LL) )\n      goto LABEL_8;\n    goto LABEL_5;\n  }\n  if ( !*(_BYTE *)(*(_QWORD *)(*(_QWORD *)(a1 + 1440) + 3272LL) + 453LL) )\n  {\nLABEL_5:\n    v5 = 2490.0;\n    goto LABEL_6;\n  }\n  v5 = 30090.0;\nLABEL_6:\n  if ( v5 <= v4 )\n    v4 = v5;\nLABEL_8:\n  a2[1] = v4;\n  cocos2d::CCPoint::CCPoint(a3, (const cocos2d::CCPoint *)a2);\n  return a3;\n}", "assembly": "; \n; EditorUI::getLimitedPosition from 0xc00800 to 0xc008a8 (168 bytes)\n; \n; 3 xrefs:\n; > EditorUI::getGridSnappedPos @ 0x7c74a0\n; > EditorUI::moveObject @ 0xc00920\n; > <???> @ 0x60628\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 13:03:48 +0000\n; \nSTP             X29, X30, [SP,#var_20]!                                ; +0x0, 0xc00800\nMOV             X2, X1                                                 ; +0x4, 0xc00804\nMOV             X29, SP                                                ; +0x8, 0xc00808\nLDR             S2, =0xC53B8000                                        ; +0xc, 0xc0080c\nLDR             S1, [X1]                                               ; +0x10, 0xc00810\nFCMPE           S1, S2                                                 ; +0x14, 0xc00814\nB.GT            loc_C00894                                             ; +0x18, 0xc00818\nFMOV            S1, S2                                                 ; +0x1c, 0xc0081c\nLDR             S0, [X2,#4]                                            ; +0x20, 0xc00820\nSTR             S1, [X2]                                               ; +0x24, 0xc00824\nFCMPE           S0, S2                                                 ; +0x28, 0xc00828\nB.GT            loc_C0087C                                             ; +0x2c, 0xc0082c\nSTR             S2, [X2,#4]                                            ; +0x30, 0xc00830\nLDR             X0, [X0,#0x5A0]                                        ; +0x34, 0xc00834\nFMOV            S0, S2                                                 ; +0x38, 0xc00838\nLDR             X0, [X0,#0xCC8]                                        ; +0x3c, 0xc0083c\nLDRB            W0, [X0,#0x1C5]                                        ; +0x40, 0xc00840\nCBNZ            W0, loc_C00858                                         ; +0x44, 0xc00844\nLDR             S1, =0x451BA000                                        ; +0x48, 0xc00848\nFCMPE           S1, S0                                                 ; +0x4c, 0xc0084c\nB.GT            loc_C00858                                             ; +0x50, 0xc00850\nFMOV            S0, S1                                                 ; +0x54, 0xc00854\nMOV             X0, X8; this                                           ; +0x58, 0xc00858\nMOV             X1, X2; cocos2d::CCPoint *                             ; +0x5c, 0xc0085c\nSTR             X8, [X29,#0x20+var_8]                                  ; +0x60, 0xc00860\nSTR             S0, [X2,#4]                                            ; +0x64, 0xc00864\nBL              _ZN7cocos2d7CCPointC1ERKS0_; cocos2d::CCPoint::CCPoint(cocos2d::CCPoint const&) ; +0x68, 0xc00868\nLDR             X8, [X29,#0x20+var_8]                                  ; +0x6c, 0xc0086c\nLDP             X29, X30, [SP+0x20+var_20],#0x20                       ; +0x70, 0xc00870\nMOV             X0, X8                                                 ; +0x74, 0xc00874\nRET                                                                    ; +0x78, 0xc00878\nLDR             X0, [X0,#0x5A0]                                        ; +0x7c, 0xc0087c\nLDR             X0, [X0,#0xCC8]                                        ; +0x80, 0xc00880\nLDRB            W0, [X0,#0x1C5]                                        ; +0x84, 0xc00884\nCBZ             W0, loc_C00848                                         ; +0x88, 0xc00888\nLDR             S1, =0x46EB1400                                        ; +0x8c, 0xc0088c\nB               loc_C0084C                                             ; +0x90, 0xc00890\nLDR             S0, =0x486A6000                                        ; +0x94, 0xc00894\nFCMPE           S1, S0                                                 ; +0x98, 0xc00898\nB.MI            loc_C00820                                             ; +0x9c, 0xc0089c\nFMOV            S1, S0                                                 ; +0xa0, 0xc008a0\nB               loc_C00820                                             ; +0xa4, 0xc008a4", "xrefs": ["EditorUI::getGridSnappedPos @ 0x7c74a0", "EditorUI::moveObject @ 0xc00920", "<???> @ 0x60628"], "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"}