//
// CreateGuidelinesLayer::ccTouchBegan from 0x5bf260 to 0x5bf318 (184 bytes)
//
// 4 xrefs:
// > `non-virtual thunk to'CreateGuidelinesLayer::ccTouchBegan @ 0x5bf320
// > ??> @ 0x70d88
// > ??> @ 0x11461f0
// > ??> @ 0x1146900
//
// 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
//
bool CreateGuidelinesLayer::ccTouchBegan(CreateGuidelinesLayer *a1, cocos2d::CCTouch *a2, cocos2d::CCEvent *a3)
{
cocos2d::CCSprite *m_circleSprite; // x0
cocos2d::CCSprite_vtbl *v6; // x3
void (__fastcall *setColor)(cocos2d::CCSprite *__hidden, const cocos2d::ccColor3B *); // x2
_BYTE v8[8]; // [xsp+20h] [xbp+20h] BYREF
if ( a1->m_recording && a1->m_guidelines <= 1000 )
{
a1->registerTouch(a1);
m_circleSprite = a1->m_circleSprite;
v6 = m_circleSprite->cocos2d::CCNodeRGBA::cocos2d::CCNode::cocos2d::CCObject::cocos2d::CCCopying::__vftable;
v8[0] = -1;
v8[1] = -1;
setColor = v6->setColor;
v8[2] = 0;
setColor(m_circleSprite, (const cocos2d::ccColor3B *)v8);
a1->m_circleSprite->setScale(a1->m_circleSprite, 0.9);
++a1->m_guidelines;
}
return 1;
}