//
// CCTextInputNode::keyboardWillHide from 0x6b7b88 to 0x6b7c44 (188 bytes)
//
// 3 xrefs:
// > `non-virtual thunk to'CCTextInputNode::keyboardWillHide @ 0x6b7c48
// > ??> @ 0x799a8
// > ??> @ 0x141ff18
//
// 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::keyboardWillHide(__int64 result)
{
__int64 v1; // x19
int v2; // w2
v1 = result;
v2 = *(unsigned __int8 *)(result + 610);
CCTextInputNode::s_keyboardTop = 0;
if ( v2 )
{
result = *(unsigned __int8 *)(result + 460);
if ( (_DWORD)result )
{
result = *(_QWORD *)(v1 + 576);
if ( result )
{
result = *(_QWORD *)(v1 + 584);
if ( result )
result = (*(__int64 (__fastcall **)(__int64, __int64))(*(_QWORD *)result + 32LL))(result, v1);
*(_BYTE *)(v1 + 460) = 0;
}
}
}
else
{
if ( *(_BYTE *)(result + 460) )
{
if ( !*(_QWORD *)(result + 576) )
return result;
(*(void (__fastcall **)(__int64, _QWORD))(*(_QWORD *)result + 1160LL))(result, 0);
}
result = *(_QWORD *)(v1 + 576);
if ( result )
{
result = *(unsigned __int8 *)(v1 + 461);
if ( *(_BYTE *)(v1 + 461) )
{
result = *(_QWORD *)(v1 + 584);
*(_BYTE *)(v1 + 461) = 0;
if ( result )
return (*(__int64 (__fastcall **)(__int64, __int64))(*(_QWORD *)result + 32LL))(result, v1);
}
}
}
return result;
}