//
// sub_100158E98 from 0x100158e98 to 0x100158f04 (108 bytes)
//
// 3 xrefs:
// > GJScaleControl::ccTouchBegan @ 0x100158d64
// > EditorUI::deactivateScaleControl @ 0x100160100
// > EditorUI::keyDown @ 0x10016245c
//
// 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:42 +0000
//
__int64 __fastcall sub_100158E98(_QWORD *a1)
{
__int64 v2; // x0
__int64 v3; // x0
__int64 result; // x0
v2 = a1[61];
if ( v2 )
(*(void (__fastcall **)(__int64, _QWORD))(*(_QWORD *)v2 + 1160LL))(v2, 0);
v3 = a1[62];
if ( v3 )
(*(void (__fastcall **)(__int64, _QWORD))(*(_QWORD *)v3 + 1160LL))(v3, 0);
result = a1[63];
if ( result )
return (*(__int64 (__fastcall **)(__int64, _QWORD))(*(_QWORD *)result + 1160LL))(result, 0);
return result;
}