// // CCTextInputNode::getBoxRect from 0x3dca74 to 0x3dcb30 (188 bytes) // // 1 xrefs: // > CCTextInputMenu::init @ 0x3dbe28 // // This function is hookable on this platform (idp: arm, 32 bit: True, 64 bit: False! // // Using BromaIDA 8.3.0 @ https://github.com/Stazzical/BromaIDA // Using bindings at commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings // Generated at Fri, 27 Nov 2026 11:46:48 +0000 // CCTextInputNode *__fastcall CCTextInputNode::getBoxRect(CCTextInputNode *this, const cocos2d::CCPoint *a2) { float v4; // s17 float v5; // s16 float v6; // s16 float v7; // r4 float v8; // r0 _BYTE v10[8]; // [sp+Ch] [bp-18h] BYREF float v11; // [sp+14h] [bp-10h] float v12; // [sp+18h] [bp-Ch] CCTextInputNode::getWorldRect((CCTextInputNode *)v10, a2); if ( *((_DWORD *)a2 + 109) ) { cocos2d::CCRect::CCRect(this, (const cocos2d::CCRect *)v10); } else { v4 = v12; v5 = 1.0; if ( *(float *)((*(int (__fastcall **)(const cocos2d::CCPoint *))(*(_DWORD *)a2 + 164))(a2) + 4) > 1.0 ) v5 = *(float *)((*(int (__fastcall **)(const cocos2d::CCPoint *))(*(_DWORD *)a2 + 164))(a2) + 4); v6 = (float)(v4 / v5) * 30.0; if ( v12 <= v6 ) v6 = v12; v7 = COERCE_FLOAT(cocos2d::CCRect::getMinX((cocos2d::CCRect *)v10)); v8 = COERCE_FLOAT(cocos2d::CCRect::getMidY((cocos2d::CCRect *)v10)); cocos2d::CCRect::CCRect(this, v7, v8 - (float)(v6 * 0.5), v11, v6); } return this; }