//
// CreateGuidelinesLayer::recordingDidStop from 0x3f9190 to 0x3f92fe (366 bytes)
//
// 0 xrefs:
//
// This function is hookable on this platform (idp: arm, 32 bit: True, 64 bit: False!
//
// 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 11:47:19 +0000
//
int __fastcall CreateGuidelinesLayer::recordingDidStop(CreateGuidelinesLayer *this)
{
int v2; // r5
int v3; // r3
int v4; // r0
int result; // r0
int v6; // r0
int v7; // r3
int v8; // r8
int v9; // r9
int v10[3]; // [sp+0h] [bp-40h] BYREF
int v11[3]; // [sp+Ch] [bp-34h] BYREF
int v12[3]; // [sp+18h] [bp-28h] BYREF
int v13[3]; // [sp+24h] [bp-1Ch] BYREF
int v14[3]; // [sp+30h] [bp-10h] BYREF
v2 = *((unsigned __int8 *)this + 560);
if ( (v2 & 1) != 0 )
v3 = *((_DWORD *)this + 141);
else
v3 = v2 >> 1;
v4 = *((_DWORD *)this + 135);
if ( v3 )
{
(*(void (__fastcall **)(int, const char *))(*(_DWORD *)v4 + 464))(v4, "Guidelines saved");
v6 = (*(int (__fastcall **)(_DWORD))(**((_DWORD **)this + 131) + 12))(*((_DWORD *)this + 131));
std::string::basic_string(v10, v6 + 324);
if ( (v10[0] & 1) != 0 )
v7 = v10[1];
else
v7 = (int)LOBYTE(v10[0]) >> 1;
if ( v7 )
{
std::string::basic_string(v12, (int)v10);
std::string::basic_string(v13, (int)this + 560);
CreateGuidelinesLayer::getMergedRecordString(v11, (int)this, (cocos2d::CCArray *)v12, (cocos2d::CCArray *)v13);
std::string::~string((int)v13);
std::string::~string((int)v12);
v9 = (*(int (__fastcall **)(_DWORD))(**((_DWORD **)this + 131) + 12))(*((_DWORD *)this + 131));
std::string::basic_string(v14, (int)v11);
std::string::operator=((unsigned __int8 *)(v9 + 324), (unsigned __int8 *)v14);
std::string::~string((int)v14);
*(_BYTE *)((*(int (__fastcall **)(_DWORD))(**((_DWORD **)this + 131) + 12))(*((_DWORD *)this + 131)) + 336) = 1;
std::string::~string((int)v11);
}
else
{
v8 = (*(int (__fastcall **)(_DWORD))(**((_DWORD **)this + 131) + 12))(*((_DWORD *)this + 131));
std::string::basic_string(v11, (int)this + 560);
std::string::operator=((unsigned __int8 *)(v8 + 324), (unsigned __int8 *)v11);
std::string::~string((int)v11);
*(_BYTE *)((*(int (__fastcall **)(_DWORD))(**((_DWORD **)this + 131) + 12))(*((_DWORD *)this + 131)) + 336) = 1;
}
result = std::string::~string((int)v10);
}
else
{
result = (*(int (__fastcall **)(int, void *))(*(_DWORD *)v4 + 464))(v4, &unk_B6B226);
}
if ( *((int *)this + 139) > 1000 )
result = (*(int (__fastcall **)(_DWORD, const char *))(**((_DWORD **)this + 135) + 464))(
*((_DWORD *)this + 135),
"Maximum limit exceeded");
*((_DWORD *)this + 139) = 0;
return result;
}