//
// cocos2d::CCLayer::setTouchMode from 0x7d739a to 0x7d73cc (50 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 12:00:40 +0000
//
int __fastcall cocos2d::CCLayer::setTouchMode(int result, int a2)
{
int v2; // r4
int v3; // r3
v2 = result;
if ( *(_DWORD *)(result + 308) != a2 )
{
v3 = *(unsigned __int8 *)(result + 284);
*(_DWORD *)(result + 308) = a2;
if ( v3 )
{
(*(void (__fastcall **)(int, _DWORD))(*(_DWORD *)result + 500))(result, 0);
return (*(int (__fastcall **)(int, int))(*(_DWORD *)v2 + 500))(v2, 1);
}
}
return result;
}