//
// CCTextInputNode::isVisibleInTree from 0x6b85d8 to 0x6b8660 (136 bytes)
//
// 4 xrefs:
// > CCTextInputNode::ccTouchBegan @ 0x6c1ed4
// > CCTextInputNode::rightClick @ 0x6c22c8
// > CCTextInputNode::scrollWheel @ 0x6c436c
// > ??> @ 0x42b38
//
// This function is hookable on this platform (idp: arm, 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 12:50:53 +0000
//
__int64 __fastcall CCTextInputNode::isVisibleInTree(CCTextInputNode *this)
{
unsigned __int8 v2; // w0
unsigned int v3; // w20
__int64 v5; // x19
v2 = (*(__int64 (__fastcall **)(CCTextInputNode *))(*(_QWORD *)this + 352LL))(this);
v3 = v2;
if ( v2 )
{
v5 = (*(__int64 (__fastcall **)(CCTextInputNode *))(*(_QWORD *)this + 512LL))(this);
if ( !v5 )
return v3;
while ( (*(unsigned __int8 (__fastcall **)(__int64))(*(_QWORD *)v5 + 352LL))(v5) )
{
v5 = (*(__int64 (__fastcall **)(__int64))(*(_QWORD *)v5 + 512LL))(v5);
if ( !v5 )
return v3;
}
}
return 0;
}