{"type": "func", "start": 6878732, "end": 6879036, "name": "EditorUI::getXMin", "pseudocode": "// \n// EditorUI::getXMin from 0x68f60c to 0x68f73c (304 bytes)\n// \n// 3 xrefs:\n// > EditorUI::xPosFromValue @ 0x68f75c\n// > EditorUI::valueFromXPos @ 0x68f894\n// > <???> @ 0xbc4d8\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\nfloat EditorUI::getXMin(EditorUI *a1, int a2)\n{\n  const cocos2d::CCPoint *v4; // x0\n  cocos2d::CCDirector *v5; // x0\n  float v6; // s0\n  float v7; // s2\n  cocos2d::CCLayer *m_objectLayer; // x24\n  cocos2d::CCPoint v10; // [xsp+48h] [xbp+48h] BYREF\n  cocos2d::CCPoint v11; // [xsp+50h] [xbp+50h] BYREF\n  cocos2d::CCPoint v12; // [xsp+58h] [xbp+58h] BYREF\n  cocos2d::CCPoint v13; // [xsp+60h] [xbp+60h] BYREF\n  cocos2d::CCPoint v14; // 0:kr08_8.8\n\n  v4 = a1->m_editorLayer->m_objectLayer->getPosition(a1->m_editorLayer->m_objectLayer);\n  cocos2d::CCPoint::CCPoint(&v10, v4);\n  a1->m_editorLayer->m_objectLayer->setPosition(\n    a1->m_editorLayer->m_objectLayer,\n    (const cocos2d::CCPoint *)&dword_1242110);\n  v5 = cocos2d::CCDirector::sharedDirector();\n  cocos2d::CCDirector::getScreenLeft(v5);\n  cocos2d::CCPoint::CCPoint(&v11, v6, a1->m_constrainedHeight);\n  v7 = (float)a2;\n  m_objectLayer = a1->m_editorLayer->m_objectLayer;\n  cocos2d::CCPoint::CCPoint(&v13, (float)(v7 * 30.0) + -30.0, 60.0);\n  cocos2d::CCNode::convertToWorldSpace(m_objectLayer, &v13);\n  v14 = cocos2d::CCNode::convertToNodeSpace(a1->m_editorLayer, &v12);\n  cocos2d::CCPoint::operator=(&v12, v14.x, v14.y);\n  a1->m_editorLayer->m_objectLayer->setPosition(a1->m_editorLayer->m_objectLayer, &v10);\n  return v11.x - v12.x;\n}", "assembly": "; \n; EditorUI::getXMin from 0x68f60c to 0x68f73c (304 bytes)\n; \n; 3 xrefs:\n; > EditorUI::xPosFromValue @ 0x68f75c\n; > EditorUI::valueFromXPos @ 0x68f894\n; > <???> @ 0xbc4d8\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\nSTP             X29, X30, [SP,#var_70]!                                ; +0x0, 0x68f60c\nMOV             X29, SP                                                ; +0x4, 0x68f610\nSTP             X21, X22, [SP,#0x70+var_50]                            ; +0x8, 0x68f614\nADRP            X22, #__stack_chk_guard_ptr@PAGE                       ; +0xc, 0x68f618\nADD             X21, X29, #0x70+var_18                                 ; +0x10, 0x68f61c\nSTP             X19, X20, [SP,#0x70+var_60]                            ; +0x14, 0x68f620\nMOV             X19, X0                                                ; +0x18, 0x68f624\nLDR             X0, [X0,#0x4F8]                                        ; +0x1c, 0x68f628\nLDR             X22, [X22,#__stack_chk_guard_ptr@PAGEOFF]; __stack_chk_guard ; +0x20, 0x68f62c\nADD             X20, X29, #0x70+var_10                                 ; +0x24, 0x68f630\nSTP             X23, X24, [SP,#0x70+var_40]                            ; +0x28, 0x68f634\nMOV             W24, W1                                                ; +0x2c, 0x68f638\nLDR             X1, [X0,#0x1030]                                       ; +0x30, 0x68f63c\nLDR             X0, [X22]                                              ; +0x34, 0x68f640\nADD             X23, X29, #0x70+var_28                                 ; +0x38, 0x68f644\nSTR             X0, [X29,#0x70+var_8]                                  ; +0x3c, 0x68f648\nMOV             X0, X1                                                 ; +0x40, 0x68f64c\nLDR             X1, [X1]                                               ; +0x44, 0x68f650\nLDR             X1, [X1,#0xC0]                                         ; +0x48, 0x68f654\nBLR             X1                                                     ; +0x4c, 0x68f658\nMOV             X1, X0; cocos2d::CCPoint *                             ; +0x50, 0x68f65c\nMOV             X0, X23; this                                          ; +0x54, 0x68f660\nBL              _ZN7cocos2d7CCPointC1ERKS0_; cocos2d::CCPoint::CCPoint(cocos2d::CCPoint const&) ; +0x58, 0x68f664\nLDR             X0, [X19,#0x4F8]                                       ; +0x5c, 0x68f668\nADRL            X1, dword_1242110                                      ; +0x60, 0x68f66c\nLDR             X2, [X0,#0x1030]                                       ; +0x68, 0x68f674\nMOV             X0, X2                                                 ; +0x6c, 0x68f678\nLDR             X2, [X2]                                               ; +0x70, 0x68f67c\nLDR             X2, [X2,#0xB8]                                         ; +0x74, 0x68f680\nBLR             X2                                                     ; +0x78, 0x68f684\nBL              _ZN7cocos2d10CCDirector14sharedDirectorEv; cocos2d::CCDirector::sharedDirector(void) ; +0x7c, 0x68f688\nBL              _ZN7cocos2d10CCDirector13getScreenLeftEv; cocos2d::CCDirector::getScreenLeft(void) ; +0x80, 0x68f68c\nLDR             S1, [X19,#0x30C]; float                                ; +0x84, 0x68f690\nADD             X0, X29, #0x70+var_20; this                            ; +0x88, 0x68f694\nBL              _ZN7cocos2d7CCPointC1Eff; cocos2d::CCPoint::CCPoint(float,float) ; +0x8c, 0x68f698\nSCVTF           S2, W24                                                ; +0x90, 0x68f69c\nLDR             X1, [X19,#0x4F8]                                       ; +0x94, 0x68f6a0\nFMOV            S3, #30.0                                              ; +0x98, 0x68f6a4\nMOV             X0, X20; this                                          ; +0x9c, 0x68f6a8\nFMOV            S0, #-30.0                                             ; +0xa0, 0x68f6ac\nLDR             S1, flt_68F73C; float                                  ; +0xa4, 0x68f6b0\nLDR             X24, [X1,#0x1030]                                      ; +0xa8, 0x68f6b4\nFMADD           S0, S2, S3, S0; float                                  ; +0xac, 0x68f6b8\nBL              _ZN7cocos2d7CCPointC1Eff; cocos2d::CCPoint::CCPoint(float,float) ; +0xb0, 0x68f6bc\nMOV             X0, X24; this                                          ; +0xb4, 0x68f6c0\nMOV             X1, X20; cocos2d::CCPoint *                            ; +0xb8, 0x68f6c4\nMOV             X8, X21                                                ; +0xbc, 0x68f6c8\nBL              _ZN7cocos2d6CCNode19convertToWorldSpaceERKNS_7CCPointE; cocos2d::CCNode::convertToWorldSpace(cocos2d::CCPoint const&) ; +0xc0, 0x68f6cc\nLDR             X0, [X19,#0x4F8]; this                                 ; +0xc4, 0x68f6d0\nMOV             X8, X20                                                ; +0xc8, 0x68f6d4\nMOV             X1, X21; cocos2d::CCPoint *                            ; +0xcc, 0x68f6d8\nBL              _ZN7cocos2d6CCNode18convertToNodeSpaceERKNS_7CCPointE; cocos2d::CCNode::convertToNodeSpace(cocos2d::CCPoint const&) ; +0xd0, 0x68f6dc\nMOV             X1, X20                                                ; +0xd4, 0x68f6e0\nMOV             X0, X21                                                ; +0xd8, 0x68f6e4\nBL              _ZN7cocos2d7CCPointaSERKS0_; cocos2d::CCPoint::operator=(cocos2d::CCPoint const&) ; +0xdc, 0x68f6e8\nLDR             X0, [X19,#0x4F8]                                       ; +0xe0, 0x68f6ec\nMOV             X1, X23                                                ; +0xe4, 0x68f6f0\nLDR             X2, [X0,#0x1030]                                       ; +0xe8, 0x68f6f4\nMOV             X0, X2                                                 ; +0xec, 0x68f6f8\nLDR             X2, [X2]                                               ; +0xf0, 0x68f6fc\nLDR             X2, [X2,#0xB8]                                         ; +0xf4, 0x68f700\nBLR             X2                                                     ; +0xf8, 0x68f704\nLDR             X1, [X29,#0x70+var_8]                                  ; +0xfc, 0x68f708\nLDR             X0, [X22]                                              ; +0x100, 0x68f70c\nLDR             S0, [X29,#0x70+var_18]                                 ; +0x104, 0x68f710\nLDR             S1, [X29,#0x70+var_20]                                 ; +0x108, 0x68f714\nCMP             X1, X0                                                 ; +0x10c, 0x68f718\nFSUB            S0, S1, S0                                             ; +0x110, 0x68f71c\nB.NE            loc_68F738                                             ; +0x114, 0x68f720\nLDP             X19, X20, [SP,#0x70+var_60]                            ; +0x118, 0x68f724\nLDP             X21, X22, [SP,#0x70+var_50]                            ; +0x11c, 0x68f728\nLDP             X23, X24, [SP,#0x70+var_40]                            ; +0x120, 0x68f72c\nLDP             X29, X30, [SP+0x70+var_70],#0x70                       ; +0x124, 0x68f730\nRET                                                                    ; +0x128, 0x68f734\nBL              .__stack_chk_fail                                      ; +0x12c, 0x68f738", "xrefs": ["EditorUI::xPosFromValue @ 0x68f75c", "EditorUI::valueFromXPos @ 0x68f894", "<???> @ 0xbc4d8"], "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"}