//
// GJAccountSettingsLayer::closeAccInputNodes from 0x140293ed0 to 0x140294026 (342 bytes)
//
// 5 xrefs:
// > GJAccountSettingsLayer::onClose @ 0x140294040
// > GJAccountSettingsLayer::onUpdate @ 0x1402940a2
// > GJAccountSettingsLayer::keyBackClicked @ 0x140294547
// > UpdateAccountSettingsPopup::onClose @ 0x14029513d
// > ??> @ 0x1406d1b08
//
// 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
//
// Hidden C++ exception states: #wind=1
void GJAccountSettingsLayer::closeAccInputNodes(GJAccountSettingsLayer *a1, cocos2d::CCArray *a2)
{
cocos2d::ccArray *data; // rbx
__int64 num; // rax
cocos2d::CCObject **arr; // rbx
cocos2d::CCObject **i; // rsi
cocos2d::CCObject *v7; // rdi
_BYTE *v8; // rax
size_t v9; // r8
__int64 v10; // rax
void *v11; // rcx
int v12; // [rsp+20h] [rbp-48h] BYREF
__int128 v13; // [rsp+28h] [rbp-40h] BYREF
__int64 v14; // [rsp+38h] [rbp-30h]
unsigned __int64 v15; // [rsp+40h] [rbp-28h]
if ( a2 )
{
data = a2->data;
num = data->num;
if ( (_DWORD)num )
{
arr = data->arr;
for ( i = &arr[num - 1]; arr <= i; ++arr )
{
v7 = *arr;
if ( !*arr )
break;
v7[10].__vftable = nullptr;
((void (__fastcall *)(cocos2d::CCObject *, _QWORD))v7->__vftable[14].~CCObject)(v7, 0);
v12 = v7->getTag(v7);
v8 = (_BYTE *)(*(__int64 (__fastcall **)(__int64))(*(_QWORD *)(*(_QWORD *)&v7[9].m_uOrderOfArrival + 600LL) + 8LL))(*(_QWORD *)&v7[9].m_uOrderOfArrival + 600LL);
v13 = 0;
v14 = 0;
v15 = 0;
v9 = -1;
do
++v9;
while ( v8[v9] );
sub_14003A930(&v13, v8, v9);
v10 = sub_1401D0660((__int64 *)&a1->m_links, &v12);
sub_140051590(v10, (__int64)&v13);
if ( v15 > 0xF )
{
v11 = (void *)v13;
if ( v15 + 1 >= 0x1000 )
{
v11 = *(void **)(v13 - 8);
if ( (unsigned __int64)(v13 - (_QWORD)v11 - 8) > 0x1F )
invalid_parameter_noinfo_noreturn();
}
j_j_free(v11);
}
}
}
}
}