//
// ThreadOptionsPopup::onReport from 0x1400f5950 to 0x1400f5a2a (218 bytes)
//
// 3 xrefs:
// > ThreadOptionsPopup::init @ 0x1400f48ca
// > ThreadOptionsPopup::init @ 0x1400f4a46
// > ??> @ 0x140915248
//
// 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:38 +0000
//
// Hidden C++ exception states: #wind=1
__int64 __fastcall ThreadOptionsPopup::onReport(__int64 *a1)
{
char *v2; // rbx
void *v3; // r8
void *Block[2]; // [rsp+30h] [rbp-38h] BYREF
__m128i si128; // [rsp+40h] [rbp-28h]
*(_OWORD *)Block = 0;
si128 = _mm_load_si128((const __m128i *)&Size);
LOBYTE(Block[0]) = 0;
v2 = ReportPopup::createForThread(a1[127], nullptr, (size_t *)Block);
if ( si128.m128i_i64[1] > 0xFuLL )
{
v3 = Block[0];
if ( (unsigned __int64)(si128.m128i_i64[1] + 1) >= 0x1000 )
{
v3 = *((void **)Block[0] - 1);
if ( (unsigned __int64)((char *)Block[0] - (char *)v3 - 8) > 0x1F )
invoke_watson(nullptr, nullptr, nullptr, 0, 0);
}
j_j_free(v3);
}
if ( v2 )
(*(void (__fastcall **)(char *))(*(_QWORD *)v2 + 1064LL))(v2);
return (*(__int64 (__fastcall **)(__int64 *, _QWORD))(*a1 + 1104))(a1, 0);
}