//
// sub_97EBBC from 0x97ebbc to 0x97ec06 (74 bytes)
//
// 1 xrefs:
// > std::__ndk1::__thread_struct::notify_all_at_thread_exit @ 0x97ec92
//
// This function is hookable on this platform (idp: arm, 32 bit: True, 64 bit: False!
//
// 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:06:05 +0000
//
int __fastcall sub_97EBBC(int a1, unsigned int a2, unsigned int a3)
{
__int64 v3; // kr00_8
unsigned __int64 v5; // [sp+0h] [bp-10h] BYREF
int v6; // [sp+Ch] [bp-4h]
v5 = __PAIR64__(a3, a2);
v3 = *(_QWORD *)(a1 + 16);
if ( (unsigned int)v3 >= HIDWORD(v3) )
{
sub_97ECB0(a1 + 12, &v5);
}
else
{
*(_QWORD *)v3 = v5;
*(_DWORD *)(a1 + 16) += 8;
}
return _stack_chk_guard - v6;
}