//
// CreateGuidelinesLayer::onRecord from 0x140134180 to 0x14013431e (414 bytes)
//
// 3 xrefs:
// > FindBPMLayer::onRecord @ 0x1401350a9
// > ??> @ 0x140736ae0
// > ??> @ 0x140916fe8
//
// 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 11:27:04 +0000
//
void __fastcall CreateGuidelinesLayer::onRecord(cocos2d::CCNode *a1)
{
__int64 v2; // rcx
_BYTE *v3; // rax
size_t v4; // r8
const char *v5; // rcx
double v6; // xmm0_8
__int64 v7; // rdx
float v8; // xmm6_4
char *v9; // rcx
void (__fastcall ***v10)(_QWORD, __int16 *); // rcx
__int16 v11; // [rsp+30h] [rbp-48h] BYREF
char v12; // [rsp+32h] [rbp-46h]
char *String[2]; // [rsp+38h] [rbp-40h] BYREF
__int128 v14; // [rsp+48h] [rbp-30h]
(*(void (__fastcall **)(_QWORD, _QWORD))(**((_QWORD **)a1 + 85) + 1032LL))(*((_QWORD *)a1 + 85), 0);
v2 = *(_QWORD *)(*((_QWORD *)a1 + 85) + 592LL) + 600LL;
v3 = (_BYTE *)(*(__int64 (__fastcall **)(__int64))(*(_QWORD *)v2 + 8LL))(v2);
*(_OWORD *)String = 0;
v4 = -1;
v14 = 0;
do
++v4;
while ( v3[v4] );
sub_14003D230(String, v3, v4);
v5 = (const char *)String;
if ( *((_QWORD *)&v14 + 1) > 0xFu )
v5 = String[0];
v6 = atof(v5);
v7 = *((_QWORD *)&v14 + 1);
if ( *((_QWORD *)&v14 + 1) > 0xFu )
{
v9 = String[0];
if ( (unsigned __int64)(*((_QWORD *)&v14 + 1) + 1LL) >= 0x1000 )
{
v9 = *((char **)String[0] - 1);
if ( (unsigned __int64)(String[0] - v9 - 8) > 0x1F )
invoke_watson(nullptr, nullptr, nullptr, 0, 0);
}
j_j_free(v9);
}
LOBYTE(v7) = 1;
CreateGuidelinesLayer::toggleItems(a1, v7);
(*(void (__fastcall **)(_QWORD, _QWORD))(**((_QWORD **)a1 + 85) + 920LL))(*((_QWORD *)a1 + 85), 0);
v8 = v6;
*((float *)a1 + 180) = v8;
sub_1400405A0((void **)a1 + 92, &byte_1406ED6E0, 0);
v10 = (void (__fastcall ***)(_QWORD, __int16 *))(*((_QWORD *)a1 + 89) + 320LL);
*((_DWORD *)a1 + 182) = 0;
v11 = -26881;
v12 = 0;
(**v10)(v10, &v11);
(*(void (__fastcall **)(_QWORD))(**((_QWORD **)a1 + 89) + 160LL))(*((_QWORD *)a1 + 89));
(*(void (__fastcall **)(cocos2d::CCNode *))(*(_QWORD *)a1 + 1088LL))(a1);
*((_BYTE *)a1 + 724) = 1;
cocos2d::CCNode::scheduleUpdate(a1);
}