//
// GJTransformControl::scaleButtons from 0x6ebe80 to 0x6ebf04 (132 bytes)
//
// 3 xrefs:
// > EditorUI::updateZoom @ 0x484c56
// > GJTransformControl::init @ 0x6efc2a
// > EditorUI::showTransformControl @ 0x70eae4
//
// This function is hookable on this platform (idp: arm, 32 bit: True, 64 bit: False!
//
// Using BromaIDA 8.3.0 @ https://github.com/Stazzical/BromaIDA
// Using bindings at commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings
// Generated at Fri, 27 Nov 2026 11:57:32 +0000
//
int __fastcall GJTransformControl::scaleButtons(GJTransformControl *this, float a2)
{
int v4; // r3
int v5; // r0
_DWORD *v7; // r2
int *v8; // r4
int *v9; // r5
int v10; // r6
int v11; // t1
float v12; // s15
v4 = *((_DWORD *)this + 101);
if ( v4 )
{
v7 = *(_DWORD **)(v4 + 52);
if ( *v7 )
{
v8 = (int *)v7[3];
v9 = &v8[*v7 - 1];
while ( v8 <= v9 )
{
v11 = *v8++;
v10 = v11;
if ( !v11 )
break;
if ( (unsigned int)((*(int (__fastcall **)(int))(*(_DWORD *)v10 + 32))(v10) - 1) > 8 )
v12 = 1.0;
else
v12 = *((float *)this + 118);
(*(void (__fastcall **)(int, _DWORD))(*(_DWORD *)v10 + 80))(v10, (float)(a2 * 0.7) * v12);
}
}
}
v5 = (*(int (__fastcall **)(_DWORD))(**((_DWORD **)this + 104) + 256))(*((_DWORD *)this + 104));
return (*(int (__fastcall **)(int, _DWORD))(*(_DWORD *)v5 + 80))(v5, LODWORD(a2));
}