//
// sub_F19A68 from 0xf19a68 to 0xf19b20 (184 bytes)
//
// 4 xrefs:
// > sub_F10E20 @ 0xf10e5c
// > sub_F11F60 @ 0xf12228
// > sub_F11F60 @ 0xf1287c
// > sub_F11F60 @ 0xf13770
//
// 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:33 +0000
//
_DWORD *__fastcall sub_F19A68(int a1)
{
__int64 v2; // x0
_DWORD *v3; // x19
size_t v4; // x2
__int64 v5; // x21
__int64 v7; // x0
size_t v8; // [xsp+38h] [xbp+38h]
if ( a1 <= 0 )
{
v7 = WebPSafeMalloc(4400, 1);
v3 = (_DWORD *)v7;
if ( v7 )
{
v5 = v7 + 3280;
*(_DWORD *)(v7 + 3240) = a1;
*(_QWORD *)v7 = v7 + 3280;
v4 = 4400;
goto LABEL_4;
}
return nullptr;
}
v8 = 4 * ((1 << a1) + 1100);
v2 = WebPSafeMalloc(v8, 1);
v3 = (_DWORD *)v2;
v4 = v8;
if ( !v2 )
return nullptr;
v5 = v2 + 3280;
*(_DWORD *)(v2 + 3240) = a1;
*(_QWORD *)v2 = v2 + 3280;
LABEL_4:
memset(v3, 0, v4);
v3[810] = a1;
*(_QWORD *)v3 = v5;
return v3;
}