//
// std::__ndk1::align from 0xf79bc4 to 0xf79c0c (72 bytes)
//
// 1 xrefs:
// > ??> @ 0x6ec20
//
// 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:13:44 +0000
//
_BYTE *__fastcall std::align(__int64 a1, unsigned __int64 a2, void **a3, unsigned __int64 *a4)
{
_BYTE *result; // x0
_BYTE *v6; // x8
unsigned __int64 v7; // x11
unsigned __int64 v8; // x9
result = nullptr;
if ( *a4 >= a2 )
{
v6 = (_BYTE *)(((unsigned __int64)*a3 + a1 - 1) & -a1);
v7 = v6 - (_BYTE *)*a3;
if ( v7 <= *a4 - a2 )
{
v8 = *a4 - v7;
*a3 = v6;
*a4 = v8;
return v6;
}
}
return result;
}