//
// GJTransformControl::scaleButtons from 0x1401a5df0 to 0x1401a5eed (253 bytes)
//
// 6 xrefs:
// > GJTransformControl::init @ 0x1401a5835
// > EditorUI::updateZoom @ 0x1401b4dcc
// > EditorUI::showTransformControl @ 0x140203430
// > ??> @ 0x1408a0b90
// > ??> @ 0x1408a0bf0
// > ??> @ 0x140919b5c
//
// 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 11:27:50 +0000
//
__int64 __fastcall GJTransformControl::scaleButtons(__int64 a1)
{
__int64 v1; // rax
unsigned int *v3; // rdi
__int64 v4; // rax
_QWORD *v5; // rdi
_QWORD *i; // rbp
__int64 v7; // rbx
__int64 v8; // rax
v1 = *(_QWORD *)(a1 + 512);
if ( v1 )
{
v3 = *(unsigned int **)(v1 + 56);
v4 = *v3;
if ( (_DWORD)v4 )
{
v5 = *((_QWORD **)v3 + 2);
for ( i = &v5[v4 - 1]; v5 <= i; ++v5 )
{
v7 = *v5;
if ( !*v5 )
break;
(*(__int64 (__fastcall **)(_QWORD))(*(_QWORD *)v7 + 56LL))(*v5);
(*(void (__fastcall **)(__int64))(*(_QWORD *)v7 + 160LL))(v7);
}
}
}
v8 = (*(__int64 (__fastcall **)(_QWORD))(**(_QWORD **)(a1 + 528) + 504LL))(*(_QWORD *)(a1 + 528));
return (*(__int64 (__fastcall **)(__int64))(*(_QWORD *)v8 + 160LL))(v8);
}