//
// sub_10095F600 from 0x10095f600 to 0x10095f6f4 (244 bytes)
//
// 2 xrefs:
// > sub_10095E5D0 @ 0x10095e605
// > PlatformerControlsPopup::onClose @ 0x10095fe5d
//
// 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:38:45 +0000
//
void __fastcall sub_10095F600(__int64 a1)
{
__int64 v1; // rsi
char v3; // r14
size_t size; // rdx
unsigned int v5; // eax
std::string::pointer data; // rdi
std::string __str; // [rsp+8h] [rbp-28h] BYREF
v1 = *(_QWORD *)(a1 + 1064);
if ( v1 )
{
sub_100923C00(&__str, v1);
v3 = *(_BYTE *)&__str.__r_.__value_.__s.0 & 1;
if ( (*(_BYTE *)&__str.__r_.__value_.__s.0 & 1) != 0 )
{
size = __str.__r_.__value_.__l.__size_;
v5 = *(unsigned __int8 *)(a1 + 1072);
if ( (v5 & 1) == 0 )
goto LABEL_4;
}
else
{
size = *(_BYTE *)&__str.__r_.__value_.__l.0 >> 1;
v5 = *(unsigned __int8 *)(a1 + 1072);
if ( (v5 & 1) == 0 )
{
LABEL_4:
if ( size != v5 >> 1 )
goto LABEL_14;
goto LABEL_8;
}
}
if ( size != *(_QWORD *)(a1 + 1080) )
goto LABEL_14;
LABEL_8:
if ( v3 )
{
data = __str.__r_.__value_.__l.__data_;
if ( (v5 & 1) == 0 )
goto LABEL_10;
}
else
{
data = __str.__r_.__value_.__s.__data_;
if ( (v5 & 1) == 0 )
{
LABEL_10:
if ( !memcmp(data, (const void *)(a1 + 1073), size) )
{
LABEL_15:
if ( v3 )
operator delete(__str.__r_.__value_.__l.__data_);
return;
}
LABEL_14:
std::string::operator=((std::string *)(*(_QWORD *)(a1 + 1048) + 1816LL), &__str);
*(_BYTE *)(*(_QWORD *)(a1 + 1048) + 1844LL) = 1;
std::string::operator=((std::string *)(a1 + 1072), &__str);
v3 = *(_BYTE *)&__str.__r_.__value_.__s.0 & 1;
goto LABEL_15;
}
}
if ( !memcmp(data, *(const void **)(a1 + 1088), size) )
goto LABEL_15;
goto LABEL_14;
}
}