//
// sub_100656D80 from 0x100656d80 to 0x100656e3e (190 bytes)
//
// 1 xrefs:
// > SFXBrowser::setTextPopupClosed @ 0x100433c4b
//
// 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:34:51 +0000
//
__int64 __fastcall sub_100656D80(__int64 a1, unsigned int a2, unsigned __int8 *a3)
{
__int64 v4; // rdi
__int64 v5; // r14
__int64 result; // rax
unsigned int v7; // eax
__int128 v8; // [rsp+8h] [rbp-28h] BYREF
__int64 v9; // [rsp+18h] [rbp-18h]
v4 = *(_QWORD *)(a1 + 824);
if ( v4 == 0 || (int)a2 <= 0 )
v5 = 0;
else
v5 = cocos2d::CCDictionary::objectForKey_1(v4, a2);
sub_100652190(&v8, a3);
if ( (*a3 & 1) != 0 )
operator delete(*((void **)a3 + 2));
result = v9;
*((_QWORD *)a3 + 2) = v9;
*(_OWORD *)a3 = v8;
if ( v5 )
{
v7 = *a3;
if ( (v7 & 1) != 0 )
{
result = *((_QWORD *)a3 + 1);
if ( !result )
return result;
}
else
{
result = v7 >> 1;
if ( !result )
return result;
}
std::string::operator=((std::string *)(v5 + 80), (const std::string *)a3);
sub_1004EE4C0(&v8, (__int64)a3);
if ( (*(_BYTE *)(v5 + 104) & 1) != 0 )
operator delete(*(void **)(v5 + 120));
result = v9;
*(_QWORD *)(v5 + 120) = v9;
*(_OWORD *)(v5 + 104) = v8;
}
return result;
}