//
// sub_100275200 from 0x100275200 to 0x10027528f (143 bytes)
//
// 15 xrefs:
// > ??> @ 0x1008b1f48
// > ??> @ 0x1008b3440
// > ??> @ 0x1008b6698
// > ??> @ 0x1008ef1d0
// > ??> @ 0x1008ef718
// > ??> @ 0x10090ccf0
// > ??> @ 0x10092b470
// > ??> @ 0x10092b940
// > ??> @ 0x10092be28
// > ??> @ 0x10092c328
// > ??> @ 0x10092c828
// > ??> @ 0x10092cd28
// > ??> @ 0x10092d210
// > ??> @ 0x100965890
// > ??> @ 0x1009819d0
//
// This function is hookable on this platform!
//
// Using BromaIDA 8.0.0 @ https://github.com/Stazzical/BromaIDA
// Using bindings at commit ba9f177b at Thu Jul 16 22:52:06 2026 from https://github.com/geode-sdk/bindings
//
__int64 __fastcall sub_100275200(_BYTE *a1, char a2)
{
__int64 result; // rax
const void *v3; // rax
_BYTE *v4; // rdi
unsigned __int8 v5; // bl
void *v6; // rax
void *v7; // r14
a1[9] = a2;
a1[8] = a2;
if ( a1[17] == 1 )
{
v3 = *((const void **)a1 - 13);
v4 = a1 - 320;
v5 = -1;
if ( v3 )
{
v6 = __dynamic_cast(
v3,
(const struct __class_type_info *)&`typeinfo for'cocos2d::CCNode,
(const struct __class_type_info *)&`typeinfo for'cocos2d::CCRGBAProtocol,
-2);
if ( v6 )
{
v7 = v6;
if ( (*(unsigned __int8 (__fastcall **)(void *))(*(_QWORD *)v6 + 88LL))(v6) )
v5 = (*(__int64 (__fastcall **)(void *))(*(_QWORD *)v7 + 24LL))(v7);
}
}
return (*(__int64 (__fastcall **)(_BYTE *, _QWORD))(*(_QWORD *)v4 + 904LL))(v4, v5);
}
return result;
}