//
// GJScaleControl::ccTouchEnded from 0x100052cc0 to 0x100052dfe (318 bytes)
//
// 2 xrefs:
// > sub_100052E00 @ 0x100052e0c
// > ??> @ 0x1008b1898
//
// 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 GJScaleControl::ccTouchEnded(GJScaleControl *a1, cocos2d::CCTouch *a2, cocos2d::CCEvent *a3)
{
Slider **p_m_sliderY; // r14
cocos2d::CCEvent *v4; // r15
cocos2d::CCString *v5; // rax
float v6; // xmm0_4
cocos2d::CCEvent *v7; // r15
cocos2d::CCString *v8; // rax
float v9; // xmm0_4
GJScaleControlDelegate *m_delegate; // rdi
char v11; // [rsp+0h] [rbp-20h]
if ( a1->m_touchID == a2->m_nId )
{
if ( a1->m_scaleButtonType == Y )
{
p_m_sliderY = &a1->m_sliderY;
v7 = a3;
Slider::getValue(a1->m_sliderY);
v8 = (cocos2d::CCString *)sub_1007AB580("%.02f", v11);
v9 = cocos2d::CCString::floatValue(v8);
a3 = v7;
a1->m_valueY = v9;
}
else if ( a1->m_scaleButtonType )
{
p_m_sliderY = &a1->m_sliderXY;
}
else
{
p_m_sliderY = &a1->m_sliderX;
v4 = a3;
Slider::getValue(a1->m_sliderX);
v5 = (cocos2d::CCString *)sub_1007AB580("%.02f", v11);
v6 = cocos2d::CCString::floatValue(v5);
a3 = v4;
a1->m_valueX = v6;
}
((void (__fastcall *)(Slider *, cocos2d::CCTouch *, cocos2d::CCEvent *))(*p_m_sliderY)->ccTouchEnded)(
*p_m_sliderY,
a2,
a3);
if ( a1->m_touchID != -1 )
{
a1->m_touchID = -1;
m_delegate = a1->m_delegate;
if ( m_delegate )
((void (__fastcall *)(GJScaleControlDelegate *))m_delegate->scaleChangeEnded)(m_delegate);
}
}
}