//
// sub_10015B1F0 from 0x10015b1f0 to 0x10015b348 (344 bytes)
//
// 2 xrefs:
// > GJTransformControl::ccTouchBegan @ 0x10015b060
// > GJTransformControl::ccTouchEnded @ 0x10015c1b0
//
// 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_10015B1F0(__int64 result, double *a2)
{
_QWORD *v2; // x19
__int64 v4; // x0
double *v5; // x0
__int64 v6; // x21
double v7; // d0
__int64 v8; // x0
__int64 v9; // x0
double *v10; // x0
double v11; // d0
__int64 v12; // x20
double v13; // d0
__int64 v14; // [xsp+8h] [xbp-48h] BYREF
__int64 v15; // [xsp+10h] [xbp-40h] BYREF
float32x2_t v16; // [xsp+18h] [xbp-38h] BYREF
float32x2_t v17; // [xsp+20h] [xbp-30h] BYREF
float32x2_t v18; // [xsp+28h] [xbp-28h] BYREF
if ( *(_QWORD *)(result + 440) )
{
v2 = (_QWORD *)result;
result = *(_QWORD *)(result + 424);
if ( result )
{
result = sub_1002E757C(result);
if ( (_DWORD)result )
{
v4 = sub_1002E75A0(v2[53], 0);
v5 = (double *)(*(__int64 (__fastcall **)(__int64))(*(_QWORD *)v4 + 192LL))(v4);
sub_1000262F4(&v18, v5);
v6 = v2[55];
v7 = sub_1000262F4(&v17, a2);
(*(void (__fastcall **)(__int64, float32x2_t *, double))(*(_QWORD *)v6 + 104LL))(v6, &v17, v7);
v8 = sub_1002E75A0(v2[64], 0);
(*(void (__fastcall **)(__int64, void *))(*(_QWORD *)v8 + 184LL))(v8, &unk_1009F3FA0);
GJTransformControl::updateButtons((__int64)v2, 0, 1);
GJTransformControl::updateButtons((__int64)v2, 0, 0);
v9 = sub_1002E75A0(v2[53], 0);
v10 = (double *)(*(__int64 (__fastcall **)(__int64))(*(_QWORD *)v9 + 192LL))(v9);
sub_1000262F4(&v17, v10);
*(float32x2_t *)&v11 = sub_10002632C(&v18, &v17, &v16);
v12 = (*(__int64 (__fastcall **)(_QWORD, double))(*(_QWORD *)v2[55] + 120LL))(v2[55], v11);
v13 = sub_1000262F4(&v15, (double *)&v16);
sub_100160908(&v14, v12, &v15, v2[53], v13);
GJTransformControl::updateButtons((__int64)v2, 0, 1);
return GJTransformControl::updateButtons((__int64)v2, 0, 0);
}
}
}
return result;
}