//
// WebPPictureInitInternal from 0xca7268 to 0xca72d8 (112 bytes)
//
// 3 xrefs:
// > sub_C98F4C @ 0xc990bc
// > sub_CA772C @ 0xca77a8
// > ??> @ 0x9d1a0
//
// 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 WebPPictureInitInternal(_QWORD *a1, int a2)
{
bool v2; // zf
unsigned int v3; // w1
v2 = a2 >> 8 == 2;
v3 = 0;
if ( !v2 )
return v3;
if ( !a1 )
return 1;
memset(a1, 0, 0x100u);
a1[12] = sub_CA7174;
sub_CB54B0(a1, 0);
return 1;
}