//
// sub_1004FE8CC from 0x1004fe8cc to 0x1004fe944 (120 bytes)
//
// 8 xrefs:
// > sub_1004F9AE0 @ 0x1004f9b48
// > ThreadViewPopup::onSend @ 0x1004f9e80
// > ThreadViewPopup::threadSearchFinished @ 0x1004fb788
// > sub_1004FBC14 @ 0x1004fbc40
// > sub_1004FBC14 @ 0x1004fbc58
// > ThreadViewPopup::threadMessagesFinished @ 0x1004fe058
// > ThreadViewPopup::threadMessagesFinished @ 0x1004fe464
// > sub_1004FE8CC @ 0x1004fe91c
//
// 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 11:06:52 +0000
//
unsigned int *__fastcall sub_1004FE8CC(unsigned int *result)
{
__int64 v1; // x8
unsigned int *v2; // x19
__int64 v3; // x0
v1 = *((_QWORD *)result + 103);
if ( v1 )
{
v2 = result;
if ( (float)((float)(*(float *)(v1 + 432) - *(float *)(v1 + 436)) - *((float *)result + 211)) < 24.0 )
{
v3 = *((_QWORD *)result + 128);
if ( v3 )
(*(void (__fastcall **)(__int64, _QWORD))(*(_QWORD *)v3 + 344LL))(v3, 0);
return cocos2d::CCNode::unschedule(v2, (unsigned __int64)sub_1004FE8CC, 0);
}
}
return result;
}