//
// sub_140266150 from 0x140266150 to 0x14026621d (205 bytes)
//
// 7 xrefs:
// > sub_14025A480 @ 0x14025a93c
// > sub_140265310 @ 0x140265310
// > sub_1403A5660 @ 0x1403a56d0
// > sub_1403B6DE0 @ 0x1403b7298
// > ??> @ 0x1406858f8
// > ??> @ 0x140685908
// > ??> @ 0x1406d044c
//
// 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
//
__int64 __fastcall sub_140266150(_QWORD *a1)
{
_QWORD *v1; // rbx
_QWORD *i; // rsi
_QWORD *v4; // r8
__int64 result; // rax
v1 = (_QWORD *)*a1;
if ( *a1 )
{
for ( i = (_QWORD *)a1[1]; v1 != i; v1 += 65 )
{
sub_14005E430((__int64)(v1 + 61));
sub_140257B50(v1 + 55);
}
v4 = (_QWORD *)*a1;
if ( (unsigned __int64)(520 * ((a1[2] - *a1) / 520LL)) >= 0x1000 )
{
if ( (unsigned __int64)v4 - *(v4 - 1) - 8 > 0x1F )
invalid_parameter_noinfo_noreturn();
v4 = (_QWORD *)*(v4 - 1);
}
j_j_free(v4);
result = 0;
*a1 = 0;
a1[1] = 0;
a1[2] = 0;
}
return result;
}