//
// CCTextInputNode::isVisibleInTree from 0x140058b60 to 0x140058bc4 (100 bytes)
//
// 4 xrefs:
// > CCTextInputNode::ccTouchBegan @ 0x140058bf2
// > CCTextInputNode::rightClick @ 0x140059179
// > CCTextInputNode::scrollWheel @ 0x1400596fa
// > ??> @ 0x1409104b4
//
// 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:41 +0000
//
char __fastcall CCTextInputNode::isVisibleInTree(__int64 a1)
{
__int64 v2; // rbx
if ( (*(unsigned __int8 (__fastcall **)(__int64))(*(_QWORD *)a1 + 344LL))(a1) )
{
v2 = (*(__int64 (__fastcall **)(__int64))(*(_QWORD *)a1 + 504LL))(a1);
if ( !v2 )
return 1;
while ( (*(unsigned __int8 (__fastcall **)(__int64))(*(_QWORD *)v2 + 344LL))(v2) )
{
v2 = (*(__int64 (__fastcall **)(__int64))(*(_QWORD *)v2 + 504LL))(v2);
if ( !v2 )
return 1;
}
}
return 0;
}