//
// sub_140103B80 from 0x140103b80 to 0x140103d36 (438 bytes)
//
// 3 xrefs:
// > DeathTrackerPopup::parseSessions @ 0x1401060c1
// > DeathTrackerPopup::parseSessions @ 0x1401060fc
// > ??> @ 0x1409159b0
//
// This function is hookable on this platform (idp: pc, 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 11:26:43 +0000
//
// Hidden C++ exception states: #wind=3
__int64 *__fastcall sub_140103B80(__int64 *a1, __int64 a2, unsigned __int8 a3)
{
__int64 v5; // rax
__int64 v6; // rax
void *v7; // rcx
__int64 v9; // [rsp+38h] [rbp-150h]
_QWORD v10[3]; // [rsp+40h] [rbp-148h] BYREF
void **v11; // [rsp+58h] [rbp-130h] BYREF
_BYTE v12[120]; // [rsp+60h] [rbp-128h] BYREF
_BYTE v13[104]; // [rsp+D8h] [rbp-B0h] BYREF
void *Block[2]; // [rsp+140h] [rbp-48h] BYREF
__m128i si128; // [rsp+150h] [rbp-38h]
HIDWORD(v9) = HIDWORD(a1);
*a1 = 0;
a1[1] = 0;
a1[2] = 0;
sub_14010F2D0(v10);
*(_OWORD *)Block = 0;
si128 = _mm_load_si128((const __m128i *)&Size);
LOBYTE(Block[0]) = 0;
v5 = sub_14010F9D0(v10, Block, a3);
if ( (unsigned __int8)std::ios_base::operator bool(v5 + *(int *)(*(_QWORD *)v5 + 4LL)) )
{
do
{
sub_140075F50(a1, (__int64)Block);
v6 = sub_14010F9D0(v10, Block, a3);
}
while ( (unsigned __int8)std::ios_base::operator bool(v6 + *(int *)(*(_QWORD *)v6 + 4LL)) );
}
if ( si128.m128i_i64[1] > 0xFuLL )
{
v7 = Block[0];
if ( (unsigned __int64)(si128.m128i_i64[1] + 1) >= 0x1000 )
{
v7 = *((void **)Block[0] - 1);
if ( (unsigned __int64)((char *)Block[0] - (char *)v7 - 8) > 0x1F )
invoke_watson(nullptr, nullptr, nullptr, 0, 0);
}
j_j_free(v7);
}
*(_QWORD *)((char *)v10 + *(int *)(v10[0] + 4LL)) = &std::basic_stringstream,std::allocator>::`vftable';
*(_DWORD *)((char *)&v9 + *(int *)(v10[0] + 4LL) + 4) = *(_DWORD *)(v10[0] + 4LL) - 152;
v11 = &std::stringbuf::`vftable';
sub_14010FC00(&v11);
std::streambuf::~streambuf>(&v11);
std::iostream::~iostream>(v12);
std::ios::~ios>(v13);
return a1;
}