//
// sub_1004FACFC from 0x1004facfc to 0x1004fad8c (144 bytes)
//
// 7 xrefs:
// > sub_1004FB004 @ 0x1004fb164
// > sub_1004FB598 @ 0x1004fb5cc
// > ThreadViewPopup::threadSearchFinished @ 0x1004fb76c
// > ThreadViewPopup::threadMessagesFinished @ 0x1004fdb30
// > ThreadViewPopup::threadMessagesFinished @ 0x1004fde44
// > ThreadViewPopup::threadMessagesFinished @ 0x1004fdff0
// > ThreadViewPopup::threadMessagesFailed @ 0x1004fe9a8
//
// 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:50 +0000
//
unsigned int *__fastcall sub_1004FACFC(unsigned int *result, float a2)
{
__int64 v2; // x19
__int64 v3; // x8
float v4; // s0
v2 = (__int64)result;
if ( (*((_BYTE *)result + 791) & 1) != 0
|| (v3 = *((_QWORD *)result + 94), (*(_BYTE *)(v3 + 264) & 1) == 0) && *(_DWORD *)(v3 + 268) == 8 )
{
a2 = 0.0;
}
if ( a2 != *((float *)result + 235) )
{
*((float *)result + 235) = a2;
result = cocos2d::CCNode::unschedule(result, (unsigned __int64)sub_1004F93D4, 0);
v4 = *(float *)(v2 + 940);
if ( v4 > 0.0 )
return cocos2d::CCNode::schedule(v2, (unsigned __int64)sub_1004F93D4, 0, v4);
}
return result;
}