//
// sub_F2DB30 from 0xf2db30 to 0xf2db9c (108 bytes)
//
// 9 xrefs:
// > sub_EE3C90 @ 0xee3ea0
// > sub_EE4914 @ 0xee4de8
// > sub_EE6428 @ 0xee66c0
// > sub_F10E20 @ 0xf10ef0
// > sub_F111BC @ 0xf11998
// > sub_F11F60 @ 0xf122f4
// > sub_F11F60 @ 0xf125c0
// > sub_F11F60 @ 0xf1286c
// > sub_F11F60 @ 0xf137f8
//
// This function is hookable on this platform (idp: arm, 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 13:12:51 +0000
//
__int64 __fastcall sub_F2DB30(__int64 a1, int a2)
{
__int64 v4; // x0
v4 = WebPSafeCalloc(1 << a2, 4);
*(_QWORD *)a1 = v4;
if ( !v4 )
return 0;
*(_DWORD *)(a1 + 12) = a2;
*(_DWORD *)(a1 + 8) = 32 - a2;
return 1;
}