// // CreateGuidelinesLayer::getMergedRecordString from 0x6e9c6c to 0x6e9ebc (592 bytes) // // 2 xrefs: // > CreateGuidelinesLayer::recordingDidStop @ 0x6ea070 // > @ 0xda8d8 // // This function is hookable on this platform (idp: arm, 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:51:45 +0000 // __int64 *__usercall CreateGuidelinesLayer::getMergedRecordString@( __int64 a1@, unsigned __int8 *a2@, unsigned __int8 *a3@, __int64 *a4@) { cocos2d::CCArray *v6; // x22 int v7; // w24 cocos2d::CCArray *v8; // x19 cocos2d::CCArray *v9; // x20 unsigned int v10; // w19 cocos2d::CCString *v11; // x0 float v12; // s0 const char *v13; // x1 cocos2d::CCString *v14; // x0 size_t v15; // x0 cocos2d::CCString *v17; // x0 float v18; // s0 float v19; // s8 cocos2d::CCString *v20; // x0 float v21; // s0 float v22; // s1 cocos2d::CCArray *v23; // x23 cocos2d::CCObject *v24; // x0 cocos2d::CCObject *v25; // x0 char *CString; // [xsp+78h] [xbp+78h] v6 = sub_6E8290(a2); v7 = 0; v8 = sub_6E8290(a3); v9 = (cocos2d::CCArray *)cocos2d::CCArray::create(v8); do { if ( (unsigned int)cocos2d::CCArray::count(v6) <= 1 ) { if ( (unsigned int)cocos2d::CCArray::count(v8) <= 1 ) goto LABEL_4; v19 = 10000000.0; LABEL_9: v20 = (cocos2d::CCString *)cocos2d::CCArray::stringAtIndex(v8, 0); cocos2d::CCString::floatValue(v20); v22 = v21; if ( v21 < v19 ) goto LABEL_11; goto LABEL_10; } v17 = (cocos2d::CCString *)cocos2d::CCArray::stringAtIndex(v6, 0); cocos2d::CCString::floatValue(v17); v19 = v18; if ( (unsigned int)cocos2d::CCArray::count(v8) > 1 ) goto LABEL_9; if ( v19 > 10000000.0 ) goto LABEL_4; v21 = 10000000.0; LABEL_10: v22 = v21; v21 = v19; LABEL_11: if ( v21 == 10000000.0 ) goto LABEL_4; if ( v19 == v21 ) { v23 = v6; } else { if ( v22 != v21 ) goto LABEL_4; v23 = v8; } ++v7; v24 = (cocos2d::CCObject *)cocos2d::CCArray::objectAtIndex(v23, 0); cocos2d::CCArray::addObject(v9, v24); v25 = (cocos2d::CCObject *)cocos2d::CCArray::objectAtIndex(v23, 1u); cocos2d::CCArray::addObject(v9, v25); cocos2d::CCArray::removeObjectAtIndex(v23, 0, 1); cocos2d::CCArray::removeObjectAtIndex(v23, 0, 1); } while ( v7 != 1001 ); (*(void (__fastcall **)(_QWORD, const char *))(**(_QWORD **)(a1 + 704) + 928LL))( *(_QWORD *)(a1 + 704), "Maximum limit exceeded"); LABEL_4: *a4 = 0; a4[1] = 0; a4[2] = 0; v10 = 0; std::string::__init(a4, &byte_11B8890, 0); while ( v10 < (unsigned int)cocos2d::CCArray::count(v9) ) { v11 = (cocos2d::CCString *)cocos2d::CCArray::stringAtIndex(v9, v10); cocos2d::CCString::floatValue(v11); v14 = (cocos2d::CCString *)cocos2d::CCString::createWithFormat((cocos2d::CCString *)"%0.2f~0~", v13, v12); CString = (char *)cocos2d::CCString::getCString(v14); v15 = strlen(CString); std::string::append((__int64)a4, CString, v15); v10 += 2; } return a4; }
GD Web Decomp Icon

GD Web Decomp

Raw Source