//
// sub_2F622C from 0x2f622c to 0x2f62c6 (154 bytes)
//
// 2 xrefs:
// > CCTextInputNode::onTextFieldDetachWithIME @ 0x2fac96
// > CCTextInputNode::onTextFieldDetachWithIME @ 0x2face4
//
// This function is hookable on this platform!
//
// Using BromaIDA 8.0.0 @ https://github.com/Stazzical/BromaIDA
// Using bindings at commit ba9f177b at Thu Jul 16 22:52:06 2026 from https://github.com/geode-sdk/bindings
//
int __fastcall sub_2F622C(int a1, char *a2, char *a3, char *a4)
{
int i; // r2
int v8; // r8
int v10; // [sp+4h] [bp-10h] BYREF
int v11; // [sp+8h] [bp-Ch] BYREF
sub_776584(a1, a2);
sub_776584((int)&v10, a3);
sub_776584((int)&v11, a4);
for ( i = 0; ; i = *(_DWORD *)(v11 - 12) + v8 )
{
v8 = sub_774834(a1, &v10, i);
if ( v8 == -1 )
break;
sub_776454(a1, v8, *(_DWORD *)(v10 - 12), &v11);
}
sub_774008(&v11);
sub_774008(&v10);
return a1;
}