//
// SelectEventLayer::onInfo from 0x1005a7a50 to 0x1005a7be8 (408 bytes)
//
// 1 xrefs:
// > SelectEventLayer::addToggle @ 0x1005a74f7
//
// 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 12:32:35 +0000
//
__int64 __fastcall SelectEventLayer::onInfo(__int64 a1, __int64 a2)
{
int v2; // r15d
__int64 v3; // rax
_QWORD *v4; // r12
char *v5; // rbx
int v6; // eax
char *v7; // r13
__int64 v8; // rax
const char *v9; // rbx
size_t v10; // rax
size_t v11; // r14
char *v12; // r15
size_t v13; // r12
char *v14; // rbx
_QWORD __dst[2]; // [rsp+0h] [rbp-40h] BYREF
void *__p; // [rsp+10h] [rbp-30h]
v2 = (*(__int64 (__fastcall **)(__int64))(*(_QWORD *)a2 + 64LL))(a2);
v3 = *(_QWORD *)(a1 + 1048);
if ( v3 )
{
while ( 1 )
{
while ( 1 )
{
v5 = (char *)v3;
v6 = *(_DWORD *)(v3 + 32);
if ( v2 >= v6 )
break;
v3 = *(_QWORD *)v5;
v4 = v5;
if ( !*(_QWORD *)v5 )
goto LABEL_8;
}
if ( v2 <= v6 )
break;
v3 = *((_QWORD *)v5 + 1);
if ( !v3 )
{
v4 = v5 + 8;
goto LABEL_8;
}
}
}
else
{
v4 = (_QWORD *)(a1 + 1048);
v5 = (char *)(a1 + 1048);
LABEL_8:
v7 = v5;
v5 = (char *)operator new(0x40u);
*((_DWORD *)v5 + 8) = v2;
*(_OWORD *)(v5 + 40) = 0;
*((_QWORD *)v5 + 7) = 0;
*(_OWORD *)v5 = 0;
*((_QWORD *)v5 + 2) = v7;
*v4 = v5;
v8 = **(_QWORD **)(a1 + 1040);
if ( v8 )
*(_QWORD *)(a1 + 1040) = v8;
sub_10001B680(*(__int64 **)(a1 + 1048), (__int64 *)v5);
++*(_QWORD *)(a1 + 1056);
}
if ( (v5[40] & 1) != 0 )
v9 = *((const char **)v5 + 7);
else
v9 = v5 + 41;
v10 = strlen(v9);
if ( v10 >= 0xFFFFFFFFFFFFFFF8LL )
sub_100003630();
v11 = v10;
if ( v10 >= 0x17 )
{
v13 = 26;
if ( (v10 | 7) != 0x17 )
v13 = (v10 | 7) + 1;
v12 = (char *)operator new(v13);
__p = v12;
__dst[0] = v13 + 1;
__dst[1] = v11;
goto LABEL_21;
}
LOBYTE(__dst[0]) = 2 * v10;
v12 = (char *)__dst + 1;
if ( v10 )
LABEL_21:
memmove(v12, v9, v11);
v12[v11] = 0;
v14 = FLAlertLayer::create_1(0, (int)"Info", (__int64)__dst, (int)"OK", 0, 380.0);
if ( (__dst[0] & 1) != 0 )
operator delete(__p);
return (*(__int64 (__fastcall **)(char *))(*(_QWORD *)v14 + 1312LL))(v14);
}