//
// sub_100586770 from 0x100586770 to 0x1005868d0 (352 bytes)
//
// 1 xrefs:
// > PlayLayer::destroyPlayer @ 0x100087c04
//
// 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:22 +0000
//
std::string *__fastcall sub_100586770(__int64 a1, int a2, int a3, int a4)
{
char v4; // al
unsigned int v6; // eax
std::string *v7; // r15
std::string *result; // rax
__int64 v9; // rax
const std::string::value_type *CString; // rax
unsigned int v11; // eax
__int64 v12; // rax
const std::string::value_type *v13; // rax
char v14; // [rsp-8h] [rbp-30h]
char v15; // [rsp-8h] [rbp-30h]
v14 = v4;
*(_DWORD *)(a1 + 1536) = 2;
if ( !a4 )
{
sub_1005851C0(a1, (std::string *)(a1 + 1544), a3);
result = sub_1005863E0(a1, (std::string *)(a1 + 1592), a3, 1);
*(_BYTE *)(a1 + 1744) = 1;
return result;
}
GJGameLevel::dtBumpRun(a1, (std::string *)(a1 + 1568), a2, a3);
v6 = *(unsigned __int8 *)(a1 + 1616);
if ( (v6 & 1) == 0 )
{
v7 = (std::string *)(a1 + 1616);
if ( !(v6 >> 1) )
goto LABEL_8;
goto LABEL_7;
}
v7 = (std::string *)(a1 + 1616);
if ( *(_QWORD *)(a1 + 1624) )
LABEL_7:
std::string::append(v7, ",");
LABEL_8:
v9 = sub_10088E820("%i", v14);
CString = (const std::string::value_type *)cocos2d::CCString::getCString(v9);
std::string::append(v7, CString);
v11 = *(unsigned __int8 *)(a1 + 1616);
if ( (v11 & 1) != 0 )
{
if ( !*(_QWORD *)(a1 + 1624) )
goto LABEL_13;
goto LABEL_12;
}
if ( v11 >> 1 )
LABEL_12:
std::string::append(v7, ",");
LABEL_13:
v12 = sub_10088E820("%i", v15);
v13 = (const std::string::value_type *)cocos2d::CCString::getCString(v12);
return std::string::append(v7, v13);
}