//
// sub_1003852CC from 0x1003852cc to 0x100385310 (68 bytes)
//
// 36 xrefs:
// > ??> @ 0x1007f6098
// > ??> @ 0x1007f7880
// > ??> @ 0x1007f8078
// > ??> @ 0x1007f8870
// > ??> @ 0x1007fa8c8
// > ??> @ 0x1007fb0d8
// > ??> @ 0x1007fb8e8
// > ??> @ 0x1007fc0f8
// > ??> @ 0x1007fc908
// > ??> @ 0x1007fd118
// > ??> @ 0x1007fd928
// > ??> @ 0x1007fe138
// > ??> @ 0x1007fe948
// > ??> @ 0x1007ff158
// > ??> @ 0x1007ff998
// > ??> @ 0x1008001d8
// > ??> @ 0x100800a00
// > ??> @ 0x100801228
// > ??> @ 0x100801a50
// > ??> @ 0x100802278
// > ??> @ 0x100802a88
// > ??> @ 0x100803298
// > ??> @ 0x100803aa8
// > ??> @ 0x1008042b8
// > ??> @ 0x100804ac8
// > ??> @ 0x1008052d8
// > ??> @ 0x100805ae8
// > ??> @ 0x1008062f8
// > ??> @ 0x100806b08
// > ??> @ 0x100807318
// > ??> @ 0x100807b28
// > ??> @ 0x100808338
// > ??> @ 0x100808b48
// > ??> @ 0x100809358
// > ??> @ 0x100809b68
// > ??> @ 0x10080a378
//
// 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_1003852CC(__int64 a1, unsigned __int8 a2)
{
__int64 result; // x0
GameObject::setOpacity((GameObject *)(a1 - 320), a2);
result = *(_QWORD *)(a1 + 1504);
if ( result )
return (*(__int64 (__fastcall **)(__int64, _QWORD))(*(_QWORD *)result + 1008LL))(
result,
*(unsigned __int8 *)(a1 + 9));
return result;
}