//
// CCTextInputNode::keyboardWillHide from 0x140057030 to 0x1400570ea (186 bytes)
//
// 2 xrefs:
// > ??> @ 0x14070d660
// > ??> @ 0x1409103e8
//
// 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
//
__int64 __fastcall CCTextInputNode::keyboardWillHide(__int64 a1)
{
bool v1; // zf
__int64 result; // rax
__int64 v4; // rcx
__int64 v5; // rcx
v1 = *(_BYTE *)(a1 + 218) == 0;
result = *(unsigned __int8 *)(a1 + 60);
dword_140909780 = 0;
if ( v1 )
{
if ( (_BYTE)result && *(_QWORD *)(a1 + 184) )
result = (*(__int64 (__fastcall **)(__int64, _QWORD))(*(_QWORD *)(a1 - 408) + 1032LL))(a1 - 408, 0);
if ( *(_QWORD *)(a1 + 184) )
{
if ( *(_BYTE *)(a1 + 61) )
{
v5 = *(_QWORD *)(a1 + 192);
*(_BYTE *)(a1 + 61) = 0;
if ( v5 )
return (*(__int64 (__fastcall **)(__int64, __int64))(*(_QWORD *)v5 + 32LL))(v5, a1 - 408);
}
}
}
else if ( (_BYTE)result && *(_QWORD *)(a1 + 184) )
{
v4 = *(_QWORD *)(a1 + 192);
if ( v4 )
result = (*(__int64 (__fastcall **)(__int64, __int64))(*(_QWORD *)v4 + 32LL))(v4, a1 - 408);
*(_BYTE *)(a1 + 60) = 0;
}
return result;
}