//
// sub_10095B010 from 0x10095b010 to 0x10095b066 (86 bytes)
//
// 1 xrefs:
// > ??> @ 0x100bca5a0
//
// 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:38:43 +0000
//
__int64 __fastcall sub_10095B010(__int64 a1, __int64 a2, int a3)
{
__int64 result; // rax
unsigned int v4; // eax
__int64 v5; // rax
__int64 v6; // rbx
if ( a3 )
{
v4 = *(unsigned __int8 *)(a1 + 104);
if ( (v4 & 1) != 0 )
{
result = *(_QWORD *)(a1 + 112);
if ( !result )
return result;
}
else
{
result = v4 >> 1;
if ( !result )
return result;
}
v5 = cocos2d::CCApplication::sharedApplication();
if ( (*(_BYTE *)(a1 + 104) & 1) != 0 )
v6 = *(_QWORD *)(a1 + 120);
else
v6 = a1 + 105;
return (*(__int64 (__fastcall **)(__int64, __int64))(*(_QWORD *)v5 + 104LL))(v5, v6);
}
return result;
}