//
// CreateGuidelinesLayer::onRecord from 0x308dc8 to 0x308e88 (192 bytes)
//
// 1 xrefs:
// > FindBPMLayer::onRecord @ 0x308e98
//
// 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 CreateGuidelinesLayer::onRecord(CreateGuidelinesLayer *a1, cocos2d::CCObject *a2)
{
double v3; // d8
cocos2d::CCSprite *m_circleSprite; // r0
void (__fastcall *setColor)(cocos2d::CCSprite *__hidden, const cocos2d::ccColor3B *); // r2
char *v6; // [sp+0h] [bp-8h] BYREF
a1->m_offsetInput->onClickTrackNode(a1->m_offsetInput, 0);
CCTextInputNode::getString((CCTextInputNode *)&v6, (int)a1->m_offsetInput);
v3 = atof(v6);
sub_774008(&v6);
CreateGuidelinesLayer::toggleItems(a1, 1);
a1->m_offsetInput->setTouchEnabled(a1->m_offsetInput, 0);
*(float *)&v3 = v3;
a1->m_elapsed = *(float *)&v3;
sub_7753D4((int)&a1->m_guidelineString, (char *)&unk_939830);
m_circleSprite = a1->m_circleSprite;
a1->m_guidelines = 0;
setColor = m_circleSprite->setColor;
LOBYTE(v6) = -1;
*(_WORD *)((char *)&v6 + 1) = 150;
setColor(m_circleSprite, (const cocos2d::ccColor3B *)&v6);
((void (__fastcall *)(cocos2d::CCSprite *, int))a1->m_circleSprite->setScale)(a1->m_circleSprite, 1061997773);
a1->playMusic(a1);
a1->m_recording = 1;
cocos2d::CCNode::scheduleUpdate(a1);
}