//
// PromoInterstitial::ccTouchBegan from 0x1002c1630 to 0x1002c16ab (123 bytes)
//
// 1 xrefs:
// > ??> @ 0x100b0fed8
//
// This function is hookable on this platform (idp: pc, 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:28:05 +0000
//
char __fastcall PromoInterstitial::ccTouchBegan(__int64 a1, __int64 a2)
{
__int64 v4; // rdi
char v5; // al
char v6; // cl
__int64 v7; // rdi
if ( *(_DWORD *)(a1 + 640) != -1 )
return 1;
v4 = *(_QWORD *)(a1 + 664);
if ( !v4 || (v5 = (*(__int64 (__fastcall **)(__int64, __int64))(*(_QWORD *)v4 + 896LL))(v4, a2), v6 = 1, !v5) )
{
v7 = *(_QWORD *)(a1 + 552);
if ( !v7 || !(*(unsigned __int8 (__fastcall **)(__int64, __int64))(*(_QWORD *)v7 + 896LL))(v7, a2) )
return 1;
v6 = 0;
}
*(_BYTE *)(a1 + 672) = v6;
*(_DWORD *)(a1 + 640) = *(_DWORD *)(a2 + 56);
return 1;
}