//
// CreateGuidelinesLayer::getMergedRecordString from 0x10007d8a8 to 0x10007da6c (452 bytes)
//
// 1 xrefs:
// > CreateGuidelinesLayer::recordingDidStop @ 0x10007d6e0
//
// This function is hookable on this platform!
//
// Using BromaIDA 8.0.0 @ https://github.com/Stazzical/BromaIDA
// Using bindings at commit ba9f177b at Thu Jul 16 22:52:06 2026 from https://github.com/geode-sdk/bindings
//
__int64 __usercall CreateGuidelinesLayer::getMergedRecordString@(
__int64 a1@,
__int64 a2@,
__int64 a3@,
std::string *a4@)
{
cocos2d::CCArray *v7; // x22
cocos2d::CCArray *v8; // x23
int v9; // w25
cocos2d::CCArray *v10; // x20
float v11; // s8
cocos2d::CCString *v12; // x0
unsigned int v13; // w0
float v14; // s0
cocos2d::CCString *v15; // x0
float v16; // s1
cocos2d::CCArray *v17; // x24
__int64 v18; // x0
__int64 v19; // x0
unsigned int i; // w21
__int64 result; // x0
cocos2d::CCString *v22; // x0
float v23; // s0
cocos2d::CCString *v24; // x0
const char *CString; // x0
v7 = (cocos2d::CCArray *)sub_10007DA8C(a2);
v8 = (cocos2d::CCArray *)sub_10007DA8C(a3);
v9 = -1;
v10 = (cocos2d::CCArray *)sub_10024A15C(v8);
while ( 1 )
{
v11 = 10000000.0;
if ( (unsigned int)sub_10024A36C(v7) >= 2 )
{
v12 = cocos2d::CCArray::stringAtIndex(v7, 0);
v11 = cocos2d::CCString::floatValue(v12);
}
v13 = sub_10024A36C(v8);
v14 = 10000000.0;
if ( v13 >= 2 )
{
v15 = cocos2d::CCArray::stringAtIndex(v8, 0);
v14 = cocos2d::CCString::floatValue(v15);
}
v16 = v11 <= v14 ? v11 : v14;
if ( v16 == 10000000.0 )
break;
v17 = v7;
if ( v16 != v11 )
{
v17 = v8;
if ( v16 != v14 )
break;
}
v18 = sub_10024A388(v17, 0);
sub_10024A2D0(v10, v18);
v19 = sub_10024A388(v17, 1);
sub_10024A2D0(v10, v19);
sub_10024A44C(v17, 0, 1);
sub_10024A44C(v17, 0, 1);
if ( (unsigned int)++v9 >= 0x3E8 )
{
(*(void (__fastcall **)(_QWORD, const char *))(**(_QWORD **)(a1 + 672) + 912LL))(
*(_QWORD *)(a1 + 672),
"Maximum limit exceeded");
break;
}
}
sub_100009900(a4, "");
for ( i = 0; ; i += 2 )
{
result = sub_10024A36C(v10);
if ( i >= (unsigned int)result )
break;
v22 = cocos2d::CCArray::stringAtIndex(v10, i);
v23 = cocos2d::CCString::floatValue(v22);
v24 = (cocos2d::CCString *)sub_100268F4C("%0.2f~0~", v23);
CString = cocos2d::CCString::getCString(v24);
std::string::append(a4, CString);
}
return result;
}