//
// sub_1000BD5A0 from 0x1000bd5a0 to 0x1000bd645 (165 bytes)
//
// 0 xrefs:
//
// This function is hookable on this platform (idp: pc, 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 12:20:32 +0000
//
__int64 __fastcall sub_1000BD5A0(__int64 a1)
{
__int64 v1; // rcx
__int64 v2; // rax
__int64 v3; // r14
__int64 result; // rax
__int64 v5; // r15
unsigned int v6; // eax
v1 = *(_QWORD *)(a1 + 12416);
if ( !v1 || (v2 = 3936, !*(_BYTE *)(v1 + 1078)) )
v2 = 3920;
v3 = *(_QWORD *)(a1 + v2);
result = (*(__int64 (__fastcall **)(_QWORD))(**(_QWORD **)(a1 + 14288) + 512LL))(*(_QWORD *)(a1 + 14288));
if ( result != v3 )
{
cocos2d::CCObject::retain(*(_QWORD *)(a1 + 14288));
(*(void (__fastcall **)(_QWORD, _QWORD))(**(_QWORD **)(a1 + 14288) + 528LL))(*(_QWORD *)(a1 + 14288), 0);
v5 = *(_QWORD *)(a1 + 14288);
v6 = (*(__int64 (__fastcall **)(__int64))(*(_QWORD *)v5 + 104LL))(v5);
(*(void (__fastcall **)(__int64, __int64, _QWORD))(*(_QWORD *)v3 + 464LL))(v3, v5, v6);
return cocos2d::CCObject::release(*(_QWORD *)(a1 + 14288));
}
return result;
}