//
// sub_100159F5C from 0x100159f5c to 0x10015a020 (196 bytes)
//
// 3 xrefs:
// > GJTransformControl::init @ 0x100159d04
// > EditorUI::showTransformControl @ 0x100160574
// > EditorUI::updateZoom @ 0x100477fd0
//
// This function is hookable on this platform (idp: arm, 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 10:59:43 +0000
//
__int64 __fastcall sub_100159F5C(__int64 a1, __n128 a2)
{
float v2; // s8
__int64 v4; // x8
unsigned int *v5; // x9
__int64 v6; // x8
_QWORD *v7; // x21
unsigned __int64 v8; // x22
__int64 v9; // x20
int v10; // w0
float v11; // s0
__int64 v12; // x0
v2 = a2.n128_f32[0];
v4 = *(_QWORD *)(a1 + 512);
if ( v4 )
{
v5 = *(unsigned int **)(v4 + 56);
v6 = *v5;
if ( (_DWORD)v6 )
{
v7 = *((_QWORD **)v5 + 2);
v8 = (unsigned __int64)&v7[v6 - 1];
a2.n128_u32[0] = 1060320051;
do
{
v9 = *v7;
if ( !*v7 )
break;
v10 = (*(__int64 (__fastcall **)(_QWORD, __n128))(*(_QWORD *)v9 + 64LL))(*v7, a2);
v11 = 1.0;
if ( (unsigned int)(v10 - 1) <= 8 )
v11 = *(float *)(a1 + 616);
(*(void (__fastcall **)(__int64, float))(*(_QWORD *)v9 + 160LL))(v9, (float)(v2 * 0.7) * v11);
++v7;
}
while ( (unsigned __int64)v7 <= v8 );
}
}
v12 = (*(__int64 (__fastcall **)(_QWORD))(**(_QWORD **)(a1 + 528) + 512LL))(*(_QWORD *)(a1 + 528));
return (*(__int64 (__fastcall **)(__int64, float))(*(_QWORD *)v12 + 160LL))(v12, v2);
}