//
// CCScrollLayerExt::touchInsideClip from 0x14004bc20 to 0x14004bce2 (194 bytes)
//
// 3 xrefs:
// > ??> @ 0x14070b118
// > ??> @ 0x140714ad0
// > ??> @ 0x14090feb4
//
// 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 11:25:33 +0000
//
bool __fastcall CCScrollLayerExt::touchInsideClip(__int64 a1, const struct cocos2d::CCPoint *a2)
{
__int64 v2; // rbx
cocos2d::CCRect *v5; // rdi
__int64 v6; // rax
__int64 v7; // rax
__int64 v8; // rax
_BYTE v9[16]; // [rsp+20h] [rbp-38h] BYREF
_BYTE v10[16]; // [rsp+30h] [rbp-28h] BYREF
char v11; // [rsp+60h] [rbp+8h] BYREF
char v12; // [rsp+70h] [rbp+18h] BYREF
char v13; // [rsp+78h] [rbp+20h] BYREF
v2 = a1 - 408;
if ( !*(_BYTE *)(a1 + 80) )
return 1;
v5 = CCScrollLayerExt::scissorRect(a1 - 408, (cocos2d::CCRect *)v10);
v6 = (*(__int64 (__fastcall **)(__int64))(*(_QWORD *)v2 + 200LL))(v2);
cocos2d::CCPoint::operator+(v6, &v11, v5);
v7 = (*(__int64 (__fastcall **)(__int64))(*(_QWORD *)v2 + 504LL))(v2);
if ( v7 )
v8 = cocos2d::CCNode::convertToWorldSpace(v7, &v12, &v11);
else
v8 = cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v13, (const struct cocos2d::CCPoint *)&v11);
cocos2d::CCPoint::operator=(v5, v8);
cocos2d::CCRect::CCRect((cocos2d::CCRect *)v9, v5);
return cocos2d::CCRect::containsPoint((cocos2d::CCRect *)v9, a2);
}