{"type": "func", "start": 4737084, "end": 4737298, "name": "EditorUI::getXMin", "pseudocode": "// \n// EditorUI::getXMin from 0x48483c to 0x484912 (214 bytes)\n// \n// 2 xrefs:\n// > EditorUI::xPosFromValue @ 0x48492e\n// > EditorUI::valueFromXPos @ 0x4849fe\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:24 +0000\n// \n\nfloat __fastcall EditorUI::getXMin(EditorUI *this, int a2)\n{\n  const cocos2d::CCPoint *v4; // r0\n  cocos2d::CCDirector *v5; // r0\n  cocos2d::CCDirector *v6; // r0\n  float v7; // r0\n  const cocos2d::CCPoint *v8; // r9\n  _BYTE v10[8]; // [sp+4h] [bp-10h] BYREF\n  float v11[2]; // [sp+Ch] [bp-8h] BYREF\n  float v12[2]; // [sp+14h] [bp+0h] BYREF\n  _BYTE v13[8]; // [sp+1Ch] [bp+8h] BYREF\n\n  v4 = (const cocos2d::CCPoint *)(*(int (__fastcall **)(_DWORD, int))(**(_DWORD **)(*((_DWORD *)this + 236) + 2436) + 96))(\n                                   *(_DWORD *)(*((_DWORD *)this + 236) + 2436),\n                                   a2);\n  cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v10, v4);\n  v5 = (cocos2d::CCDirector *)(*(int (__fastcall **)(_DWORD, float *))(**(_DWORD **)(*((_DWORD *)this + 236) + 2436) + 92))(\n                                *(_DWORD *)(*((_DWORD *)this + 236) + 2436),\n                                &flt_D2B938);\n  v6 = (cocos2d::CCDirector *)cocos2d::CCDirector::sharedDirector(v5);\n  v7 = COERCE_FLOAT(cocos2d::CCDirector::getScreenLeft(v6));\n  cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v11, v7, *((float *)this + 157));\n  v8 = *(const cocos2d::CCPoint **)(*((_DWORD *)this + 236) + 2436);\n  cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v13, (float)((float)a2 * 30.0) - 30.0, 60.0);\n  cocos2d::CCNode::convertToWorldSpace((cocos2d::CCNode *)v12, v8);\n  cocos2d::CCNode::convertToNodeSpace((cocos2d::CCNode *)v13, *((const cocos2d::CCPoint **)this + 236));\n  cocos2d::CCPoint::operator=(v12, v13);\n  (*(void (__fastcall **)(_DWORD, _BYTE *))(**(_DWORD **)(*((_DWORD *)this + 236) + 2436) + 92))(\n    *(_DWORD *)(*((_DWORD *)this + 236) + 2436),\n    v10);\n  return v11[0] - v12[0];\n}", "assembly": "; \n; EditorUI::getXMin from 0x48483c to 0x484912 (214 bytes)\n; \n; 2 xrefs:\n; > EditorUI::xPosFromValue @ 0x48492e\n; > EditorUI::valueFromXPos @ 0x4849fe\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:24 +0000\n; \nPUSH.W          {R4-R9,LR}                                             ; +0x0, 0x48483c\nMOV             R4, R0                                                 ; +0x4, 0x484840\nVPUSH           {D8}                                                   ; +0x6, 0x484842\nLDR             R6, =(__stack_chk_guard_ptr - 0x48484C)                ; +0xa, 0x484846\nADD             R6, PC; __stack_chk_guard_ptr                          ; +0xc, 0x484848\nLDR             R6, [R6]; __stack_chk_guard                            ; +0xe, 0x48484a\nVMOV            S16, R1                                                ; +0x10, 0x48484c\nSUB             SP, SP, #0x2C                                          ; +0x14, 0x484850\nLDR             R3, [R6]                                               ; +0x16, 0x484852\nADD.W           R8, SP, #0x2C+var_28                                   ; +0x18, 0x484854\nADD             R5, SP, #0x2C+var_10                                   ; +0x1c, 0x484858\nADD             R7, SP, #0x14                                          ; +0x1e, 0x48485a\nSTR             R3, [SP,#0x2C+var_8]                                   ; +0x20, 0x48485c\nLDR.W           R3, [R0,#0x3B0]                                        ; +0x22, 0x48485e\nLDR.W           R0, [R3,#0x984]                                        ; +0x26, 0x484862\nLDR             R3, [R0]                                               ; +0x2a, 0x484866\nLDR             R3, [R3,#0x60]                                         ; +0x2c, 0x484868\nBLX             R3                                                     ; +0x2e, 0x48486a\nMOV             R1, R0; cocos2d::CCPoint *                             ; +0x30, 0x48486c\nMOV             R0, R8; this                                           ; +0x32, 0x48486e\nBL              _ZN7cocos2d7CCPointC1ERKS0_; cocos2d::CCPoint::CCPoint(cocos2d::CCPoint const&) ; +0x34, 0x484870\nLDR.W           R3, [R4,#0x3B0]                                        ; +0x38, 0x484874\nLDR             R1, =(flt_D2B938 - 0x484882)                           ; +0x3c, 0x484878\nLDR.W           R0, [R3,#0x984]                                        ; +0x3e, 0x48487a\nADD             R1, PC; flt_D2B938                                     ; +0x42, 0x48487e\nLDR             R3, [R0]                                               ; +0x44, 0x484880\nLDR             R3, [R3,#0x5C]                                         ; +0x46, 0x484882\nBLX             R3                                                     ; +0x48, 0x484884\nBL              _ZN7cocos2d10CCDirector14sharedDirectorEv; cocos2d::CCDirector::sharedDirector(void) ; +0x4a, 0x484886\nBL              _ZN7cocos2d10CCDirector13getScreenLeftEv; cocos2d::CCDirector::getScreenLeft(void) ; +0x4e, 0x48488a\nLDR.W           R2, [R4,#0x274]; float                                 ; +0x52, 0x48488e\nMOV             R1, R0; float                                          ; +0x56, 0x484892\nADD             R0, SP, #0x2C+var_20; this                             ; +0x58, 0x484894\nBL              _ZN7cocos2d7CCPointC1Eff; cocos2d::CCPoint::CCPoint(float,float) ; +0x5a, 0x484896\nVMOV.F32        S15, #30.0                                             ; +0x5e, 0x48489a\nLDR.W           R3, [R4,#0x3B0]                                        ; +0x62, 0x48489e\nMOV             R0, R5; this                                           ; +0x66, 0x4848a2\nLDR             R2, flt_484914; float                                  ; +0x68, 0x4848a4\nLDR.W           R9, [R3,#0x984]                                        ; +0x6a, 0x4848a6\nVCVT.F32.S32    S16, S16                                               ; +0x6e, 0x4848aa\nVMOV.F32        S14, S15                                               ; +0x72, 0x4848ae\nVNMLS.F32       S14, S16, S15                                          ; +0x76, 0x4848b2\nVMOV            R1, S14; float                                         ; +0x7a, 0x4848b6\nBL              _ZN7cocos2d7CCPointC1Eff; cocos2d::CCPoint::CCPoint(float,float) ; +0x7e, 0x4848ba\nMOV             R0, R7; this                                           ; +0x82, 0x4848be\nMOV             R1, R9; cocos2d::CCPoint *                             ; +0x84, 0x4848c0\nMOV             R2, R5                                                 ; +0x86, 0x4848c2\nBL              _ZN7cocos2d6CCNode19convertToWorldSpaceERKNS_7CCPointE; cocos2d::CCNode::convertToWorldSpace(cocos2d::CCPoint const&) ; +0x88, 0x4848c4\nMOV             R2, R7                                                 ; +0x8c, 0x4848c8\nMOV             R0, R5; this                                           ; +0x8e, 0x4848ca\nLDR.W           R1, [R4,#0x3B0]; cocos2d::CCPoint *                    ; +0x90, 0x4848cc\nBL              _ZN7cocos2d6CCNode18convertToNodeSpaceERKNS_7CCPointE; cocos2d::CCNode::convertToNodeSpace(cocos2d::CCPoint const&) ; +0x94, 0x4848d0\nMOV             R1, R5                                                 ; +0x98, 0x4848d4\nMOV             R0, R7                                                 ; +0x9a, 0x4848d6\nBL              _ZN7cocos2d7CCPointaSERKS0_; cocos2d::CCPoint::operator=(cocos2d::CCPoint const&) ; +0x9c, 0x4848d8\nLDR.W           R3, [R4,#0x3B0]                                        ; +0xa0, 0x4848dc\nMOV             R1, R8                                                 ; +0xa4, 0x4848e0\nLDR.W           R0, [R3,#0x984]                                        ; +0xa6, 0x4848e2\nLDR             R3, [R0]                                               ; +0xaa, 0x4848e6\nLDR             R3, [R3,#0x5C]                                         ; +0xac, 0x4848e8\nBLX             R3                                                     ; +0xae, 0x4848ea\nVLDR            S15, [SP,#0x2C+var_18]                                 ; +0xb0, 0x4848ec\nLDR             R2, [SP,#0x2C+var_8]                                   ; +0xb4, 0x4848f0\nLDR             R3, [R6]                                               ; +0xb6, 0x4848f2\nVLDR            S14, [SP,#0x2C+var_20]                                 ; +0xb8, 0x4848f4\nCMP             R2, R3                                                 ; +0xbc, 0x4848f8\nVSUB.F32        S15, S14, S15                                          ; +0xbe, 0x4848fa\nVMOV            R0, S15                                                ; +0xc2, 0x4848fe\nBEQ             loc_484908                                             ; +0xc6, 0x484902\nBLX             __stack_chk_fail                                       ; +0xc8, 0x484904\nADD             SP, SP, #0x2C ; ','                                    ; +0xcc, 0x484908\nVPOP            {D8}                                                   ; +0xce, 0x48490a\nPOP.W           {R4-R9,PC}                                             ; +0xd2, 0x48490e", "xrefs": ["EditorUI::xPosFromValue @ 0x48492e", "EditorUI::valueFromXPos @ 0x4849fe"], "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"}