//
// FindBPMLayer::registerTouch from 0x6e819c to 0x6e8290 (244 bytes)
//
// 2 xrefs:
// > ??> @ 0x96430
// > ??> @ 0x1426820
//
// 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 12:51:44 +0000
//
__int64 __fastcall FindBPMLayer::registerTouch(FindBPMLayer *this)
{
int v2; // w1
__int64 v3; // x22
GameToolbox *v4; // x0
void (__fastcall *v5)(__int64, char *); // x20
char *v6; // x1
int v8; // w3
__int64 v9; // x0
unsigned __int64 v10[2]; // [xsp+30h] [xbp+30h] BYREF
void *v11; // [xsp+40h] [xbp+40h]
v2 = *((_DWORD *)this + 195) + 1;
*((_DWORD *)this + 195) = v2;
if ( v2 <= 1 )
{
v8 = *((_DWORD *)this + 180);
v9 = *((_QWORD *)this + 96);
*((_DWORD *)this + 194) = v8;
(*(void (__fastcall **)(__int64, char *))(*(_QWORD *)v9 + 928LL))(v9, "0");
}
else
{
FindBPMLayer::calculateBPM(this);
v3 = *((_QWORD *)this + 96);
v4 = (GameToolbox *)*((unsigned int *)this + 196);
v5 = *(void (__fastcall **)(__int64, char *))(*(_QWORD *)v3 + 928LL);
GameToolbox::intToString(v10, v4);
v6 = (char *)v10 + 1;
if ( (v10[0] & 1) != 0 )
v6 = (char *)v11;
v5(v3, v6);
if ( (v10[0] & 1) != 0 )
operator delete(v11);
}
return _stack_chk_guard;
}