//
// sub_982782 from 0x982782 to 0x9827ac (42 bytes)
//
// 6 xrefs:
// > sub_9826C4 @ 0x9826ec
// > sub_9826F4 @ 0x98271c
// > sub_982724 @ 0x982778
// > sub_9828DA @ 0x9828fe
// > sub_989826 @ 0x989870
// > sub_991E02 @ 0x991e26
//
// This function is hookable on this platform (idp: arm, 32 bit: True, 64 bit: False!
//
// 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 12:06:09 +0000
//
void __fastcall sub_982782(unsigned int a1, char *p, int a3)
{
if ( a1 + 4096 < (unsigned int)p || a1 > (unsigned int)p )
{
j_free(p);
}
else if ( &p[(a3 + 15) & 0xFFFFFFF0] == *(char **)(a1 + 4096) )
{
*(_DWORD *)(a1 + 4096) = p;
}
}