//
// GJTransformControl::scaleButtons from 0x1003ee858 to 0x1003ee8f8 (160 bytes)
//
// 3 xrefs:
// > EditorUI::updateZoom @ 0x1003ee83c
// > EditorUI::activateTransformControl @ 0x1003efe98
// > GJTransformControl::init @ 0x1003fbaf8
//
// 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 GJTransformControl::scaleButtons(GJTransformControl *a1, float a2)
{
cocos2d::CCArray *m_warpSprites; // x8
cocos2d::ccArray *data; // x9
__int64 num; // x8
cocos2d::CCObject **arr; // x20
unsigned __int64 v8; // x21
__int64 v9; // x0
m_warpSprites = a1->m_warpSprites;
if ( m_warpSprites )
{
data = m_warpSprites->data;
num = data->num;
if ( (_DWORD)num )
{
arr = data->arr;
v8 = (unsigned __int64)&arr[num - 1];
do
{
if ( !*arr )
break;
((void (__fastcall *)(cocos2d::CCObject *, float))(*arr)->__vftable[2].copyWithZone)(
*arr,
(float)(a2 * 0.7) * a1->m_buttonScale);
++arr;
}
while ( (unsigned __int64)arr <= v8 );
}
}
v9 = ((__int64 (__fastcall *)(CCMenuItemSpriteExtra *))a1->m_warpLockButton->getNormalImage)(a1->m_warpLockButton);
(*(void (__fastcall **)(__int64, float))(*(_QWORD *)v9 + 160LL))(v9, a2);
}