{"type": "func", "start": 3675364, "end": 3675578, "name": "EditorUI::getXMin", "pseudocode": "// \n// EditorUI::getXMin from 0x3814e4 to 0x3815ba (214 bytes)\n// \n// 2 xrefs:\n// > EditorUI::xPosFromValue @ 0x3815d6\n// > EditorUI::valueFromXPos @ 0x3816a6\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; // r0\n  cocos2d::CCDirector *v5; // r0\n  float v6; // r0\n  cocos2d::CCLayer *m_objectLayer; // r9\n  int v8; // r2\n  bool v9; // r3\n  cocos2d::CCPoint v11; // [sp+4h] [bp-10h] BYREF\n  cocos2d::CCPoint v12; // [sp+Ch] [bp-8h] BYREF\n  cocos2d::CCPoint v13; // [sp+14h] [bp+0h] BYREF\n  cocos2d::CCPoint v14; // [sp+1Ch] [bp+8h] BYREF\n\n  v4 = (const cocos2d::CCPoint *)((int (__fastcall *)(cocos2d::CCLayer *, int))a1->m_editorLayer->m_objectLayer->getPosition)(\n                                   a1->m_editorLayer->m_objectLayer,\n                                   a2);\n  cocos2d::CCPoint::CCPoint(&v11, v4);\n  a1->m_editorLayer->m_objectLayer->setPosition(a1->m_editorLayer->m_objectLayer, (const cocos2d::CCPoint *)&flt_AC5D38);\n  v5 = cocos2d::CCDirector::sharedDirector();\n  v6 = COERCE_FLOAT(cocos2d::CCDirector::getScreenLeft(v5));\n  cocos2d::CCPoint::CCPoint(&v12, v6, a1->m_constrainedHeight);\n  m_objectLayer = a1->m_editorLayer->m_objectLayer;\n  cocos2d::CCPoint::CCPoint(&v14, (float)((float)a2 * 30.0) - 30.0, 60.0);\n  cocos2d::CCNode::convertToWorldSpace(&v13, m_objectLayer, &v14);\n  cocos2d::CCNode::convertToNodeSpace(&v14, a1->m_editorLayer, &v13);\n  cocos2d::CCPoint::operator=((PlayerObject *)&v13, COERCE_FLOAT(&v14), v8, v9);\n  a1->m_editorLayer->m_objectLayer->setPosition(a1->m_editorLayer->m_objectLayer, &v11);\n  return v12.x - v13.x;\n}", "assembly": "; \n; EditorUI::getXMin from 0x3814e4 to 0x3815ba (214 bytes)\n; \n; 2 xrefs:\n; > EditorUI::xPosFromValue @ 0x3815d6\n; > EditorUI::valueFromXPos @ 0x3816a6\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.W          {R4-R9,LR}                                             ; +0x0, 0x3814e4\nMOV             R4, R0                                                 ; +0x4, 0x3814e8\nLDR             R6, =(__stack_chk_guard_ptr - 0x3814F4)                ; +0x6, 0x3814ea\nVPUSH           {D8}                                                   ; +0x8, 0x3814ec\nADD             R6, PC; __stack_chk_guard_ptr                          ; +0xc, 0x3814f0\nLDR             R6, [R6]; __stack_chk_guard                            ; +0xe, 0x3814f2\nLDR             R3, [R6]                                               ; +0x10, 0x3814f4\nVMOV            S16, R1                                                ; +0x12, 0x3814f6\nSUB             SP, SP, #0x2C                                          ; +0x16, 0x3814fa\nADD.W           R8, SP, #0x2C+var_28                                   ; +0x18, 0x3814fc\nADD             R5, SP, #0x2C+var_10                                   ; +0x1c, 0x381500\nSTR             R3, [SP,#0x2C+var_8]                                   ; +0x1e, 0x381502\nADD             R7, SP, #0x14                                          ; +0x20, 0x381504\nLDR.W           R3, [R0,#0x340]                                        ; +0x22, 0x381506\nLDR.W           R0, [R3,#0x9F0]                                        ; +0x26, 0x38150a\nLDR             R3, [R0]                                               ; +0x2a, 0x38150e\nLDR             R3, [R3,#0x60]                                         ; +0x2c, 0x381510\nBLX             R3                                                     ; +0x2e, 0x381512\nMOV             R1, R0; cocos2d::CCPoint *                             ; +0x30, 0x381514\nMOV             R0, R8; this                                           ; +0x32, 0x381516\nBL              _ZN7cocos2d7CCPointC1ERKS0_; cocos2d::CCPoint::CCPoint(cocos2d::CCPoint const&) ; +0x34, 0x381518\nLDR.W           R3, [R4,#0x340]                                        ; +0x38, 0x38151c\nLDR             R1, =(flt_AC5D38 - 0x38152A)                           ; +0x3c, 0x381520\nLDR.W           R0, [R3,#0x9F0]                                        ; +0x3e, 0x381522\nADD             R1, PC; flt_AC5D38                                     ; +0x42, 0x381526\nLDR             R3, [R0]                                               ; +0x44, 0x381528\nLDR             R3, [R3,#0x5C]                                         ; +0x46, 0x38152a\nBLX             R3                                                     ; +0x48, 0x38152c\nBL              _ZN7cocos2d10CCDirector14sharedDirectorEv; cocos2d::CCDirector::sharedDirector(void) ; +0x4a, 0x38152e\nBL              _ZN7cocos2d10CCDirector13getScreenLeftEv; cocos2d::CCDirector::getScreenLeft(void) ; +0x4e, 0x381532\nLDR.W           R2, [R4,#0x238]; float                                 ; +0x52, 0x381536\nMOV             R1, R0; float                                          ; +0x56, 0x38153a\nADD             R0, SP, #0x2C+var_20; this                             ; +0x58, 0x38153c\nBL              _ZN7cocos2d7CCPointC1Eff; cocos2d::CCPoint::CCPoint(float,float) ; +0x5a, 0x38153e\nVMOV.F32        S15, #30.0                                             ; +0x5e, 0x381542\nLDR.W           R3, [R4,#0x340]                                        ; +0x62, 0x381546\nMOV             R0, R5; this                                           ; +0x66, 0x38154a\nLDR             R2, flt_3815BC; float                                  ; +0x68, 0x38154c\nLDR.W           R9, [R3,#0x9F0]                                        ; +0x6a, 0x38154e\nVCVT.F32.S32    S16, S16                                               ; +0x6e, 0x381552\nVMOV.F32        S14, S15                                               ; +0x72, 0x381556\nVNMLS.F32       S14, S16, S15                                          ; +0x76, 0x38155a\nVMOV            R1, S14; float                                         ; +0x7a, 0x38155e\nBL              _ZN7cocos2d7CCPointC1Eff; cocos2d::CCPoint::CCPoint(float,float) ; +0x7e, 0x381562\nMOV             R0, R7; this                                           ; +0x82, 0x381566\nMOV             R1, R9; cocos2d::CCPoint *                             ; +0x84, 0x381568\nMOV             R2, R5                                                 ; +0x86, 0x38156a\nBL              _ZN7cocos2d6CCNode19convertToWorldSpaceERKNS_7CCPointE; cocos2d::CCNode::convertToWorldSpace(cocos2d::CCPoint const&) ; +0x88, 0x38156c\nMOV             R2, R7                                                 ; +0x8c, 0x381570\nMOV             R0, R5; this                                           ; +0x8e, 0x381572\nLDR.W           R1, [R4,#0x340]; cocos2d::CCPoint *                    ; +0x90, 0x381574\nBL              _ZN7cocos2d6CCNode18convertToNodeSpaceERKNS_7CCPointE; cocos2d::CCNode::convertToNodeSpace(cocos2d::CCPoint const&) ; +0x94, 0x381578\nMOV             R1, R5                                                 ; +0x98, 0x38157c\nMOV             R0, R7                                                 ; +0x9a, 0x38157e\nBL              _ZN7cocos2d7CCPointaSERKS0_; cocos2d::CCPoint::operator=(cocos2d::CCPoint const&) ; +0x9c, 0x381580\nLDR.W           R3, [R4,#0x340]                                        ; +0xa0, 0x381584\nMOV             R1, R8                                                 ; +0xa4, 0x381588\nLDR.W           R0, [R3,#0x9F0]                                        ; +0xa6, 0x38158a\nLDR             R3, [R0]                                               ; +0xaa, 0x38158e\nLDR             R3, [R3,#0x5C]                                         ; +0xac, 0x381590\nBLX             R3                                                     ; +0xae, 0x381592\nVLDR            S15, [SP,#0x2C+var_18]                                 ; +0xb0, 0x381594\nLDR             R2, [SP,#0x2C+var_8]                                   ; +0xb4, 0x381598\nLDR             R3, [R6]                                               ; +0xb6, 0x38159a\nVLDR            S14, [SP,#0x2C+var_20]                                 ; +0xb8, 0x38159c\nCMP             R2, R3                                                 ; +0xbc, 0x3815a0\nVSUB.F32        S15, S14, S15                                          ; +0xbe, 0x3815a2\nVMOV            R0, S15                                                ; +0xc2, 0x3815a6\nBEQ             loc_3815B0                                             ; +0xc6, 0x3815aa\nBLX             __stack_chk_fail                                       ; +0xc8, 0x3815ac\nADD             SP, SP, #0x2C ; ','                                    ; +0xcc, 0x3815b0\nVPOP            {D8}                                                   ; +0xce, 0x3815b2\nPOP.W           {R4-R9,PC}                                             ; +0xd2, 0x3815b6", "xrefs": ["EditorUI::xPosFromValue @ 0x3815d6", "EditorUI::valueFromXPos @ 0x3816a6"], "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"}