//
// sub_6F8220 from 0x6f8220 to 0x6f824c (44 bytes)
//
// 4 xrefs:
// > sub_6F85BC @ 0x6f8896
// > WebPIDelete @ 0x6f8c88
// > sub_6FC3A0 @ 0x6fc41c
// > sub_6FC3A0 @ 0x6fc518
//
// 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
//
int __fastcall sub_6F8220(int a1, int a2)
{
int v4; // r5
int v5; // r0
void (__fastcall *v6)(int); // r3
if ( *(int *)(a1 + 148) > 0 )
{
v5 = WebPGetWorkerInterface(a1);
v4 = (*(int (__fastcall **)(int))(v5 + 8))(a1 + 124);
}
else
{
v4 = 1;
}
v6 = *(void (__fastcall **)(int))(a2 + 52);
if ( v6 )
v6(a2);
return v4;
}