//
// FindBPMLayer::registerTouch from 0x3f7e58 to 0x3f7ee2 (138 bytes)
//
// 0 xrefs:
//
// This function is hookable on this platform (idp: arm, 32 bit: True, 64 bit: False!
//
// 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:47:18 +0000
//
int __fastcall FindBPMLayer::registerTouch(FindBPMLayer *this, int a2, char *a3, int a4)
{
int v5; // r2
int v7; // r7
void (__fastcall *v8)(int, char *); // r8
char *v9; // r1
_DWORD v10[2]; // [sp+0h] [bp-10h] BYREF
char *v11; // [sp+8h] [bp-8h]
int v12; // [sp+Ch] [bp-4h]
v10[0] = this;
v10[1] = a2;
v11 = a3;
v12 = a4;
v5 = *((_DWORD *)this + 146) + 1;
*((_DWORD *)this + 146) = v5;
if ( v5 > 1 )
{
FindBPMLayer::calculateBPM(*(float *)&this);
v7 = *((_DWORD *)this + 144);
v8 = *(void (__fastcall **)(int, char *))(*(_DWORD *)v7 + 464);
GameToolbox::intToString((GameToolbox *)v10, *((_DWORD *)this + 147));
if ( (v10[0] & 1) != 0 )
v9 = v11;
else
v9 = (char *)v10 + 1;
v8(v7, v9);
return std::string::~string((int)v10);
}
else
{
*((_DWORD *)this + 145) = *((_DWORD *)this + 137);
return (*(int (__fastcall **)(_DWORD, const char *))(**((_DWORD **)this + 144) + 464))(*((_DWORD *)this + 144), "0");
}
}