//
// CCTextInputNode::setTextScrollViewSize from 0x3dc7f4 to 0x3dc87a (134 bytes)
//
// 1 xrefs:
// > ThreadViewPopup::layoutComposeBar @ 0x747400
//
// 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
//
float *__fastcall CCTextInputNode::setTextScrollViewSize(float *result, float *a2)
{
float *v2; // r6
int v4; // r8
int v5; // r8
void (__fastcall *v6)(int, _BYTE *); // r9
_BYTE v7[8]; // [sp+4h] [bp-10h] BYREF
v2 = result;
if ( *((_DWORD *)result + 113) )
{
(*(void (__fastcall **)(float *))(*(_DWORD *)result + 160))(result);
v4 = *((_DWORD *)v2 + 113);
cocos2d::CCSize::CCSize((cocos2d::CCSize *)v7, (const cocos2d::CCSize *)a2);
ScrollableContentLayer::setViewSize(v4, v7);
v5 = *((_DWORD *)v2 + 113);
v6 = *(void (__fastcall **)(int, _BYTE *))(*(_DWORD *)v5 + 92);
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v7, -(float)(*a2 * 0.5), -(float)(a2[1] * 0.5));
v6(v5, v7);
return CCTextInputNode::scrollToCursor(v2);
}
return result;
}