//
// sub_1008D8560 from 0x1008d8560 to 0x1008d85f2 (146 bytes)
//
// 1 xrefs:
// > ??> @ 0x100bb1b50
//
// 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:37:42 +0000
//
__int64 __fastcall sub_1008D8560(__int64 a1, __int64 a2)
{
int v2; // eax
__int64 v3; // rax
__int64 v4; // r14
__int64 v5; // rbx
v2 = *(_DWORD *)(a1 + 408);
if ( !v2 )
{
LABEL_4:
v3 = *(_QWORD *)(a1 + 392);
if ( !v3 )
return FLAlertLayer::ccTouchEnded(a1 - 320, a2);
goto LABEL_10;
}
if ( v2 == 2 )
{
if ( *(_BYTE *)(a1 + 666) == 1 )
goto LABEL_4;
goto LABEL_7;
}
if ( (unsigned int)(v2 - 1) <= 1 )
{
LABEL_7:
if ( *(_QWORD *)(a1 + 368) )
{
v4 = a1;
v5 = a2;
sub_10096C5E0(*(_QWORD *)(a1 + 368), a2);
LABEL_11:
a1 = v4;
a2 = v5;
return FLAlertLayer::ccTouchEnded(a1 - 320, a2);
}
return FLAlertLayer::ccTouchEnded(a1 - 320, a2);
}
v3 = *(_QWORD *)(a1 + 400);
if ( v3 )
{
LABEL_10:
v4 = a1;
v5 = a2;
sub_1008BBF10(v3, a2);
goto LABEL_11;
}
return FLAlertLayer::ccTouchEnded(a1 - 320, a2);
}