//
// cocos2d::extension::CCControlSlider::needsLayout from 0xa9e42c to 0xa9e568 (316 bytes)
//
// 2 xrefs:
// > ??> @ 0x33960
// > ??> @ 0x11f6e80
//
// 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 cocos2d::extension::CCControlSlider::needsLayout(cocos2d::extension::CCControlSlider *a1)
{
__int64 v2; // x0
float v3; // s8
const cocos2d::CCPoint *v4; // x0
float v5; // s1
__int64 v6; // x0
void (__fastcall *v7)(__int64, cocos2d::CCPoint *); // x2
cocos2d::CCPoint v8; // [xsp+50h] [xbp+50h] BYREF
cocos2d::CCRect v9; // [xsp+58h] [xbp+58h] BYREF
cocos2d::CCRect v10; // [xsp+68h] [xbp+68h] BYREF
v2 = *(_QWORD *)&a1[1].m_uAutoReleaseCount;
if ( v2 && *(_QWORD *)&a1[1].m_unknown2 )
{
if ( *(_QWORD *)&a1[1].m_uIndexInArray )
{
v3 = (float)(*(float *)&a1[1].cocos2d::extension::CCControl::cocos2d::CCLayerRGBA::cocos2d::CCLayer::cocos2d::CCNode::cocos2d::CCObject::cocos2d::CCCopying::__vftable
- *((float *)&a1[1].cocos2d::extension::CCControl::cocos2d::CCLayerRGBA::cocos2d::CCLayer::cocos2d::CCNode::cocos2d::CCObject::cocos2d::CCCopying::__vftable
+ 1))
/ (float)(*(float *)&a1[1].m_uID
- *((float *)&a1[1].cocos2d::extension::CCControl::cocos2d::CCLayerRGBA::cocos2d::CCLayer::cocos2d::CCNode::cocos2d::CCObject::cocos2d::CCCopying::__vftable
+ 1));
v4 = (const cocos2d::CCPoint *)(*(__int64 (__fastcall **)(__int64))(*(_QWORD *)v2 + 192LL))(v2);
cocos2d::CCPoint::CCPoint(&v8, v4);
v5 = *(float *)(*(__int64 (__fastcall **)(_QWORD))(**(_QWORD **)&a1[1].m_unknown2 + 312LL))(*(_QWORD *)&a1[1].m_unknown2);
v6 = *(_QWORD *)&a1[1].m_uAutoReleaseCount;
v7 = *(void (__fastcall **)(__int64, cocos2d::CCPoint *))(*(_QWORD *)v6 + 184LL);
v8.x = v5 * v3;
v7(v6, &v8);
cocos2d::CCRect::CCRect(&v9, (const cocos2d::CCRect *)(*(_QWORD *)&a1[1].m_uIndexInArray + 424LL));
cocos2d::CCRect::CCRect(&v10, v9.origin.x, v9.origin.y, v8.x, v9.size.height);
cocos2d::CCRect::operator=(&v9, &v10);
(*(void (__fastcall **)(_QWORD, cocos2d::CCRect *, _QWORD, cocos2d::CCSize *))(**(_QWORD **)&a1[1].m_uIndexInArray
+ 1128LL))(
*(_QWORD *)&a1[1].m_uIndexInArray,
&v9,
*(unsigned __int8 *)(*(_QWORD *)&a1[1].m_uIndexInArray + 440LL),
&v9.size);
}
}
}