//
// GJScaleControl::ccTouchEnded from 0x6957ec to 0x6958b8 (204 bytes)
//
// 3 xrefs:
// > `non-virtual thunk to'GJScaleControl::ccTouchEnded @ 0x6958bc
// > ??> @ 0xc2310
// > ??> @ 0x11577b0
//
// 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 GJScaleControl::ccTouchEnded(GJScaleControl *a1, cocos2d::CCTouch *a2, cocos2d::CCEvent *a3)
{
int m_scaleButtonType; // w0
Slider *m_sliderY; // x0
float v6; // s0
float v7; // s0
Slider *m_sliderX; // x0
Slider_vtbl *v9; // x3
float Value; // s0
float v11; // s0
if ( a1->m_touchID == a2->m_nId )
{
m_scaleButtonType = a1->m_scaleButtonType;
if ( m_scaleButtonType )
{
if ( m_scaleButtonType == 1 )
{
Value = Slider::getValue(a1->m_sliderY);
v11 = GJScaleControl::scaleFromValue(a1, Value);
m_sliderY = a1->m_sliderY;
a1->m_valueY = v11;
}
else
{
m_sliderY = a1->m_sliderXY;
}
((void (__fastcall *)(Slider *))m_sliderY->ccTouchEnded)(m_sliderY);
GJScaleControl::finishTouch(a1);
}
else
{
v6 = Slider::getValue(a1->m_sliderX);
v7 = GJScaleControl::scaleFromValue(a1, v6);
m_sliderX = a1->m_sliderX;
v9 = m_sliderX->cocos2d::CCLayer::cocos2d::CCNode::cocos2d::CCObject::cocos2d::CCCopying::__vftable;
a1->m_valueX = v7;
v9->ccTouchEnded(m_sliderX, a2, a3);
GJScaleControl::finishTouch(a1);
}
}
}