//
// CCTextInputNode::getTextRowCount from 0x140054bc0 to 0x140054c24 (100 bytes)
//
// 3 xrefs:
// > ThreadViewPopup::textChanged @ 0x1400e2f69
// > ThreadViewPopup::textChanged @ 0x1400e2f81
// > ??> @ 0x1409102f8
//
// This function is hookable on this platform (idp: pc, 32 bit: False, 64 bit: True!
//
// 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:25:40 +0000
//
unsigned int __fastcall CCTextInputNode::getTextRowCount(__int64 a1)
{
__int64 v1; // rax
__int64 v3; // rax
cocos2d::CCArray *v4; // rcx
v1 = *(_QWORD *)(a1 + 632);
if ( v1
&& (v3 = *(_QWORD *)(v1 + 616)) != 0
&& (v4 = *(cocos2d::CCArray **)(v3 + 648)) != nullptr
&& (int)cocos2d::CCArray::count(v4) >= 1 )
{
return cocos2d::CCArray::count(*(cocos2d::CCArray **)(*(_QWORD *)(*(_QWORD *)(a1 + 632) + 616LL) + 648LL));
}
else
{
return 1;
}
}