//
// GJTransformControl::scaleButtons from 0x100644590 to 0x100644654 (196 bytes)
//
// 2 xrefs:
// > EditorUI::updateZoom @ 0x1000122ae
// > EditorUI::showTransformControl @ 0x100613605
//
// This function is hookable on this platform (idp: pc, 32 bit: False, 64 bit: True!
//
// 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 12:34:44 +0000
//
__int64 __fastcall GJTransformControl::scaleButtons(__int64 a1, float a2)
{
__int64 v2; // rax
unsigned int *v3; // rax
_QWORD *v4; // r15
unsigned __int64 v5; // r12
__int64 v6; // r14
float v7; // xmm0_4
__int64 v8; // rax
v2 = *(_QWORD *)(a1 + 512);
if ( v2 )
{
v3 = *(unsigned int **)(v2 + 56);
if ( *v3 )
{
v4 = *((_QWORD **)v3 + 2);
v5 = (unsigned __int64)&v4[*v3 - 1];
do
{
v6 = *v4;
if ( !*v4 )
break;
v7 = 1.0;
if ( (*(unsigned int (__fastcall **)(_QWORD))(*(_QWORD *)v6 + 64LL))(*v4) - 1 <= 8 )
v7 = *(float *)(a1 + 616);
(*(void (__fastcall **)(__int64, float))(*(_QWORD *)v6 + 160LL))(v6, v7 * (float)(0.69999999 * a2));
++v4;
}
while ( (unsigned __int64)v4 <= v5 );
}
}
v8 = (*(__int64 (__fastcall **)(_QWORD))(**(_QWORD **)(a1 + 528) + 512LL))(*(_QWORD *)(a1 + 528));
return (*(__int64 (__fastcall **)(__int64, float))(*(_QWORD *)v8 + 160LL))(v8, a2);
}