//
// sub_1008701D0 from 0x1008701d0 to 0x1008702ac (220 bytes)
//
// 1 xrefs:
// > FRequestProfilePage::init @ 0x10086f723
//
// 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 12:36:50 +0000
//
__int64 __fastcall sub_1008701D0(__int64 a1)
{
_QWORD *v2; // rdi
_DWORD *v3; // rdi
unsigned int v4; // eax
__int64 result; // rax
_WORD v6[8]; // [rsp+0h] [rbp-20h] BYREF
void *__p; // [rsp+10h] [rbp-10h]
v2 = *(_QWORD **)(a1 + 864);
if ( v2 )
{
v6[0] = 0;
CCTextInputNode::setString(v2, (__int64)v6);
if ( (v6[0] & 1) != 0 )
operator delete(__p);
}
if ( *(_BYTE *)(a1 + 880) == 1 )
{
*(_BYTE *)(a1 + 880) = 0;
v3 = *(_DWORD **)(a1 + 872);
if ( v3 )
{
cocos2d::CCObject::release(v3);
*(_QWORD *)(a1 + 872) = 0;
}
(*(void (__fastcall **)(_QWORD, _QWORD))(**(_QWORD **)(a1 + 776) + 344LL))(*(_QWORD *)(a1 + 776), 0);
cocos2d::CCNode::unschedule(a1, (__int64)sub_100871160, 0);
goto LABEL_12;
}
cocos2d::CCNode::unschedule(a1, (__int64)sub_100871160, 0);
v4 = *(unsigned __int8 *)(a1 + 736);
if ( (v4 & 1) != 0 )
{
result = *(_QWORD *)(a1 + 744);
if ( !result )
return result;
goto LABEL_12;
}
result = v4 >> 1;
if ( result )
{
LABEL_12:
std::string::assign((std::string *)(a1 + 736), "");
return sub_100870C20(a1, 0);
}
return result;
}