//
// sub_97EC10 from 0x97ec10 to 0x97ec56 (70 bytes)
//
// 1 xrefs:
// > std::__ndk1::__thread_struct::__make_ready_at_thread_exit @ 0x97ec98
//
// 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_97EC10(int a1, std::__shared_count *a2)
{
__int64 v2; // r2
int v5; // [sp+4h] [bp-4h]
v2 = *(_QWORD *)(a1 + 4);
if ( (_DWORD)v2 == HIDWORD(v2) )
{
sub_97EDC0(a1);
}
else
{
*(_DWORD *)v2 = a2;
*(_DWORD *)(a1 + 4) += 4;
}
std::__shared_count::__add_shared(a2);
return _stack_chk_guard - v5;
}