//
// CreateGuidelinesLayer::onRecord from 0x10007d410 to 0x10007d520 (272 bytes)
//
// 2 xrefs:
// > FindBPMLayer::onRecord @ 0x10007e220
// > ??> @ 0x10077a8c0
//
// 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
//
void __fastcall CreateGuidelinesLayer::onRecord(CreateGuidelinesLayer *a1, cocos2d::CCObject *a2)
{
double v3; // d8
char *v4; // x20
float v5; // s8
cocos2d::CCSprite *m_circleSprite; // x0
char *v7[2]; // [xsp+8h] [xbp-38h] BYREF
char v8; // [xsp+1Fh] [xbp-21h]
((void (__fastcall *)(CCTextInputNode *, _QWORD))a1->m_offsetInput->onClickTrackNode)(a1->m_offsetInput, 0);
CCTextInputNode::getString(v7, a1->m_offsetInput);
if ( v8 < 0 )
{
v4 = v7[0];
v3 = atof(v7[0]);
operator delete(v4);
}
else
{
v3 = atof((const char *)v7);
}
CreateGuidelinesLayer::toggleItems(a1, 1);
((void (__fastcall *)(CCTextInputNode *, _QWORD))a1->m_offsetInput->setTouchEnabled)(a1->m_offsetInput, 0);
v5 = v3;
a1->m_elapsed = v5;
std::string::assign((std::string *)&a1->m_guidelineString, "");
a1->m_guidelines = 0;
m_circleSprite = a1->m_circleSprite;
BYTE2(v7[0]) = 0;
LOWORD(v7[0]) = -26881;
((void (__fastcall *)(cocos2d::CCSprite *, char **))m_circleSprite->setColor)(m_circleSprite, v7);
((void (__fastcall *)(cocos2d::CCSprite *, float))a1->m_circleSprite->setScale)(a1->m_circleSprite, 0.8);
((void (__fastcall *)(CreateGuidelinesLayer *))a1->playMusic)(a1);
a1->m_recording = 1;
cocos2d::CCNode::scheduleUpdate(a1);
}