//
// GJEffectManager::hasActiveDualTouch from 0x9fa808 to 0x9fa84c (68 bytes)
//
// 4 xrefs:
// > GJBaseGameLayer::buttonIsRelevant @ 0x9a7638
// > GJBaseGameLayer::handleButton @ 0x9c26c4
// > GJBaseGameLayer::handleButton @ 0x9c275c
// > ??> @ 0x498b8
//
// 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:59:16 +0000
//
__int64 __fastcall GJEffectManager::hasActiveDualTouch(GJEffectManager *this)
{
_BYTE *v1; // x2
_BYTE *v2; // x0
v1 = *((_BYTE **)this + 57);
if ( *((_BYTE **)this + 56) == v1 )
return 0;
v2 = *((_BYTE **)this + 56);
while ( !v2[28] || *v2 )
{
v2 += 56;
if ( v1 == v2 )
return 0;
}
return 1;
}