//
// sub_D1CD80 from 0xd1cd80 to 0xd1cdf0 (112 bytes)
//
// 5 xrefs:
// > std::__ndk1::vector>::assign @ 0xd1e1c4
// > std::__ndk1::vector>::assign @ 0xd1e22c
// > std::__ndk1::vector>::assign @ 0xd1e2d0
// > std::__ndk1::vector>::assign @ 0xd1e3a0
// > std::__ndk1::vector>::assign @ 0xd1e404
//
// 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 13:07:10 +0000
//
__int64 sub_D1CD80()
{
_BYTE *address; // x1
__int64 result; // x0
_QWORD *v2; // x19
address = (_BYTE *)_emutls_get_address(&unk_1548510);
result = (unsigned __int8)*address;
if ( !*address )
{
*address = 1;
v2 = (_QWORD *)_emutls_get_address(&unk_1548530);
*v2 = sub_E0ACDC();
return _cxa_thread_atexit(
(void (*)(void *))cocos2d::extension::ThreadCurlHandle::~ThreadCurlHandle,
v2,
&unk_1548000);
}
return result;
}