//
// sub_14013D770 from 0x14013d770 to 0x14013d8c1 (337 bytes)
//
// 3 xrefs:
// > sub_14013FAE0 @ 0x14013fae7
// > ??> @ 0x140557d48
// > ??> @ 0x1406ca194
//
// 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
char *__fastcall sub_14013D770(char *Block, char a2)
{
char *v4; // rdi
__int64 v5; // rax
void *v6; // rax
cocos2d::CCObject *v7; // rcx
*(_QWORD *)Block = &FRequestProfilePage::`vftable';
*((_QWORD *)Block + 40) = &FRequestProfilePage::`vftable';
*((_QWORD *)Block + 41) = &FRequestProfilePage::`vftable';
*((_QWORD *)Block + 42) = &FRequestProfilePage::`vftable';
*((_QWORD *)Block + 43) = &FRequestProfilePage::`vftable';
*((_QWORD *)Block + 44) = &FRequestProfilePage::`vftable';
*((_QWORD *)Block + 51) = &FRequestProfilePage::`vftable';
*((_QWORD *)Block + 54) = &FRequestProfilePage::`vftable';
*((_QWORD *)Block + 79) = &FRequestProfilePage::`vftable';
*((_QWORD *)Block + 80) = &FRequestProfilePage::`vftable';
*((_QWORD *)Block + 81) = &FRequestProfilePage::`vftable';
v4 = Block + 656;
*((_QWORD *)Block + 82) = &FRequestProfilePage::`vftable';
v5 = qword_1406C2EC0;
if ( !qword_1406C2EC0 )
{
v6 = operator new(0x3D0u);
qword_1406C2EC0 = sub_140141280(v6);
(*(void (__fastcall **)(__int64))(*(_QWORD *)qword_1406C2EC0 + 72LL))(qword_1406C2EC0);
v5 = qword_1406C2EC0;
}
if ( *(char **)(v5 + 824) == v4 )
*(_QWORD *)(v5 + 824) = 0;
v7 = *((cocos2d::CCObject **)Block + 91);
if ( v7 )
cocos2d::CCObject::release(v7);
sub_14003A830((__int64)(Block + 672));
FLAlertLayer::dFLAlertLayer((__int64)Block);
if ( (a2 & 1) != 0 )
j_j_free(Block);
return Block;
}