//
// sub_140069BA0 from 0x140069ba0 to 0x140069c2c (140 bytes)
//
// 88 xrefs:
// > PlayLayer::dPlayLayer @ 0x1403a5a33
// > sub_1404E2BB0 @ 0x1404e2bb7
// > int `__acrt_get_current_directory<__crt_win32_buffer_internal_dynamic_resizing> @ 0x1404e2c07
// > sub_1404E74E8 @ 0x1404e74ef
// > sub_1404E74F4 @ 0x1404e74fb
// > sub_1404E9168 @ 0x1404e916f
// > sub_1404E918C @ 0x1404e9193
// > int `std::money_get>>::_Getmfld @ 0x1404e919f
// > sub_1404EC5B4 @ 0x1404ec5bb
// > sub_1404EF720 @ 0x1404ef727
// > int `__acrt_get_current_directory<__crt_win32_buffer_internal_dynamic_resizing> @ 0x1404efaf7
// > int `__acrt_get_current_directory<__crt_win32_buffer_internal_dynamic_resizing> @ 0x1404efb23
// > int `__acrt_get_current_directory<__crt_win32_buffer_internal_dynamic_resizing> @ 0x1404efb51
// > unknown_libname_176 @ 0x1404f0c59
// > sub_1404F676C @ 0x1404f6773
// > sub_1404F686C @ 0x1404f6873
// > sub_1404F8CDC @ 0x1404f8ce3
// > ?dtor$0@?0???$__acrt_get_current_directory@U__crt_win32_buffer_internal_dynamic_resizing@@@@YAHAEAV?$__crt_win32_buffer@DU__crt_win32_buffer_internal_dynamic_resizing@@@@@Z@4HA_128 @ 0x1404fba87
// > int `_wcrtomb_s_l @ 0x140500b4d
// > sub_140500DF9 @ 0x140500e00
// > sub_140500E29 @ 0x140500e30
// > sub_140500E89 @ 0x140500e90
// > sub_140500EA1 @ 0x140500ea8
// > int `_wcstombs_l_helper @ 0x140501543
// > sub_1405058FC @ 0x140505903
// > sub_140505BB8 @ 0x140505bbf
// > sub_140505BC4 @ 0x140505bcb
// > sub_140505BD0 @ 0x140505bd7
// > int `std::money_put>>::_Putmfld @ 0x140505c1f
// > sub_140505CB4 @ 0x140505cbb
// > sub_140505CE8 @ 0x140505cef
// > unknown_libname_274 @ 0x140505cfb
// > sub_140505D00 @ 0x140505d07
// > sub_140505D7C @ 0x140505d83
// > int `_wcstombs_l_helper @ 0x140506127
// > sub_140506222 @ 0x140506229
// > sub_14050625C @ 0x140506263
// > sub_140507F6C @ 0x140507f7a
// > unknown_libname_305 @ 0x140508817
// > sub_140509F6C @ 0x140509f73
// > sub_14050A02C @ 0x14050a033
// > sub_14050A04C @ 0x14050a053
// > sub_140512068 @ 0x14051206f
// > sub_140513322 @ 0x140513329
// > ??> @ 0x1406660c7
// > ??> @ 0x14066625f
// > ??> @ 0x1406663f4
// > ??> @ 0x140666404
// > ??> @ 0x14066cde4
// > ??> @ 0x14066cdea
// > ??> @ 0x14066f3f9
// > ??> @ 0x14066f40c
// > ??> @ 0x14066f412
// > ??> @ 0x1406740bd
// > ??> @ 0x140677e7b
// > ??> @ 0x1406780df
// > ??> @ 0x14067816b
// > ??> @ 0x1406793d1
// > ??> @ 0x14067c4d5
// > ??> @ 0x14067c681
// > ??> @ 0x14067ec41
// > ??> @ 0x140687c6b
// > ??> @ 0x14068ddf3
// > ??> @ 0x14068dfa0
// > ??> @ 0x14068dfba
// > ??> @ 0x14068e018
// > ??> @ 0x14068e024
// > ??> @ 0x14068f561
// > ??> @ 0x140694f7a
// > ??> @ 0x14069551d
// > ??> @ 0x140695524
// > ??> @ 0x14069552b
// > ??> @ 0x140695556
// > ??> @ 0x1406955b2
// > ??> @ 0x140695805
// > ??> @ 0x14069580b
// > ??> @ 0x140695812
// > ??> @ 0x14069583c
// > ??> @ 0x140695c22
// > ??> @ 0x140695d42
// > ??> @ 0x140695da1
// > ??> @ 0x14069951b
// > ??> @ 0x14069b6a2
// > ??> @ 0x14069b7c6
// > ??> @ 0x14069b816
// > ??> @ 0x1406a703d
// > ??> @ 0x1406a89f0
// > ??> @ 0x1406c5e98
//
// 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_140069BA0(__int64 *a1)
{
__int64 v1; // rbx
__int64 i; // rdi
_QWORD *v4; // rcx
__int64 result; // rax
v1 = *a1;
if ( *a1 )
{
for ( i = a1[1]; v1 != i; v1 += 32 )
sub_14003A830(v1);
v4 = (_QWORD *)*a1;
if ( ((a1[2] - *a1) & 0xFFFFFFFFFFFFFFE0uLL) >= 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;
}