//
// cocos2d::extension::CCControlSlider::needsLayout from 0x5a39ac to 0x5a3a78 (204 bytes)
//
// 0 xrefs:
//
// 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)
{
unsigned int m_uAutoReleaseCount; // r0
float v3; // s16
const cocos2d::CCPoint *v4; // r0
float v5; // s15
unsigned int v6; // r0
void (__fastcall *v7)(unsigned int, cocos2d::CCPoint *); // r3
cocos2d::CCPoint v8; // [sp+Ch] [bp-30h] BYREF
cocos2d::CCRect v9; // [sp+14h] [bp-28h] BYREF
cocos2d::CCRect v10; // [sp+24h] [bp-18h] BYREF
m_uAutoReleaseCount = a1[1].m_uAutoReleaseCount;
if ( m_uAutoReleaseCount && a1[1].m_uIndexInArray )
{
if ( a1[1].m_eObjType )
{
v3 = (float)(*(float *)&a1[1].cocos2d::extension::CCControl::cocos2d::CCLayerRGBA::cocos2d::CCLayer::cocos2d::CCNode::cocos2d::CCObject::cocos2d::CCCopying::__vftable
- *(float *)&a1[1].m_uID)
/ (float)(*(float *)&a1[1].m_nLuaID - *(float *)&a1[1].m_uID);
v4 = (const cocos2d::CCPoint *)(*(int (__fastcall **)(unsigned int))(*(_DWORD *)m_uAutoReleaseCount + 96))(m_uAutoReleaseCount);
cocos2d::CCPoint::CCPoint(&v8, v4);
v5 = *(float *)(*(int (__fastcall **)(int))(*(_DWORD *)a1[1].m_uIndexInArray + 156))(a1[1].m_uIndexInArray);
v6 = a1[1].m_uAutoReleaseCount;
v7 = *(void (__fastcall **)(unsigned int, cocos2d::CCPoint *))(*(_DWORD *)v6 + 92);
v8.x = v3 * v5;
v7(v6, &v8);
cocos2d::CCRect::CCRect(&v9, (const cocos2d::CCRect *)(a1[1].m_eObjType + 336));
cocos2d::CCRect::CCRect(&v10, v9.origin.x, v9.origin.y, v8.x, v9.size.height);
cocos2d::CCRect::operator=(&v9, &v10);
(*(void (__fastcall **)(cocos2d::CCObjectType, cocos2d::CCRect *, _DWORD, cocos2d::CCSize *))(*(_DWORD *)a1[1].m_eObjType
+ 564))(
a1[1].m_eObjType,
&v9,
*(unsigned __int8 *)(a1[1].m_eObjType + 352),
&v9.size);
}
}
}