//
// CreateGuidelinesLayer::getMergedRecordString from 0x10050e090 to 0x10050e289 (505 bytes)
//
// 1 xrefs:
// > CreateGuidelinesLayer::recordingDidStop @ 0x10050de78
//
// 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:31:35 +0000
//
std::string *__fastcall CreateGuidelinesLayer::getMergedRecordString(
std::string *a1,
__int64 a2,
__int64 a3,
__int64 a4)
{
__int64 v5; // r15
__int64 v6; // r13
char v7; // bl
__int64 v8; // r14
float v9; // xmm0_4
__int64 v10; // rax
double v11; // xmm0_8
__int64 v12; // rax
float v13; // xmm1_4
char v14; // al
__int64 v15; // rax
__int64 v16; // r12
__int64 v17; // rax
__int64 v18; // rax
unsigned int i; // r15d
__int64 v20; // rax
__int64 v21; // rax
const std::string::value_type *CString; // rax
char v24; // [rsp+0h] [rbp-40h]
float v25; // [rsp+10h] [rbp-30h]
int v26; // [rsp+14h] [rbp-2Ch]
v24 = (char)a1;
v5 = sub_10050E2B0(a3);
v6 = sub_10050E2B0(a4);
v7 = 1;
v8 = sub_1007FE900(a4);
v26 = 0;
do
{
v9 = 9999999.0;
if ( (unsigned int)sub_1007FEF90(v5) >= 2 )
{
v10 = cocos2d::CCArray::stringAtIndex(v5, 0);
v9 = cocos2d::CCString::floatValue(v10, COERCE_DOUBLE(1259902591));
}
v25 = v9;
*(_QWORD *)&v11 = 1259902591;
if ( (unsigned int)sub_1007FEF90(v6) >= 2 )
{
v12 = cocos2d::CCArray::stringAtIndex(v6, 0);
*(float *)&v11 = cocos2d::CCString::floatValue(v12, COERCE_DOUBLE(1259902591));
}
v13 = fminf(*(float *)&v11, v25);
if ( v13 == 9999999.0 )
break;
v14 = v7;
if ( v13 != *(float *)&v11 )
v14 = 0;
if ( v13 != v25 )
v7 = v14;
if ( (v7 & 1) != 0 )
{
v15 = v6;
if ( v13 != *(float *)&v11 )
v15 = 0;
v16 = v5;
if ( v13 != v25 )
v16 = v15;
v17 = sub_1007FEFE0(v16, 0);
sub_1007FEBF0(v8, v17);
v18 = sub_1007FEFE0(v16, 1);
sub_1007FEBF0(v8, v18);
sub_1007FF150(v16, 0, 1);
sub_1007FF150(v16, 0, 1);
if ( v26 >= 1000 )
{
(*(void (__fastcall **)(_QWORD, const char *))(**(_QWORD **)(a2 + 704) + 928LL))(
*(_QWORD *)(a2 + 704),
"Maximum limit exceeded");
break;
}
++v26;
}
}
while ( (v7 & 1) != 0 );
*(_WORD *)&a1->__r_.__value_.__l.0 = 0;
for ( i = 0; i < (unsigned int)sub_1007FEF90(v8); i += 2 )
{
v20 = cocos2d::CCArray::stringAtIndex(v8, i);
v11 = cocos2d::CCString::floatValue(v20, v11);
v21 = sub_10088E820("%0.2f~0~", v24);
CString = (const std::string::value_type *)cocos2d::CCString::getCString(v21);
std::string::append(a1, CString);
}
return a1;
}