//
// sub_BA4A38 from 0xba4a38 to 0xba4a9c (100 bytes)
//
// 3 xrefs:
// > sub_B765B0 @ 0xb76668
// > sub_BBAA80 @ 0xbbab2c
// > sub_BBAB90 @ 0xbbac40
//
// 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
//
_QWORD *__fastcall sub_BA4A38(__int64 a1, __int64 a2)
{
_QWORD *result; // x0
__int64 i; // x2
result = off_1231000(0x10u);
if ( result )
{
result[1] = 0;
*result = a2;
if ( a1 )
{
for ( i = a1; *(_QWORD *)(i + 8); i = *(_QWORD *)(i + 8) )
;
*(_QWORD *)(i + 8) = result;
return (_QWORD *)a1;
}
}
return result;
}