//
// CCScrollLayerExt::scissorRect from 0x14004bb40 to 0x14004bc1a (218 bytes)
//
// 4 xrefs:
// > CCScrollLayerExt::visit @ 0x14004bb07
// > CCScrollLayerExt::touchInsideClip @ 0x14004bc4d
// > ??> @ 0x14090fe9c
// > ??> @ 0x14090fea8
//
// 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
//
cocos2d::CCRect *__fastcall CCScrollLayerExt::scissorRect(__int64 a1, cocos2d::CCRect *a2)
{
float *v4; // rbx
float *v5; // rdi
float v6; // xmm6_4
double v7; // xmm0_8
float v8; // xmm8_4
float v9; // xmm6_4
double v10; // xmm0_8
__int64 v11; // rax
v4 = (float *)(*(__int64 (__fastcall **)(__int64))(*(_QWORD *)a1 + 320LL))(a1);
v5 = (float *)(*(__int64 (__fastcall **)(__int64))(*(_QWORD *)a1 + 200LL))(a1);
v6 = *(float *)((*(__int64 (__fastcall **)(__int64))(*(_QWORD *)a1 + 320LL))(a1) + 4);
v7 = (*(double (__fastcall **)(__int64))(*(_QWORD *)a1 + 144LL))(a1);
v8 = *(float *)&v7 * v6;
v9 = *v4;
v10 = (*(double (__fastcall **)(__int64))(*(_QWORD *)a1 + 128LL))(a1);
v11 = (*(__int64 (__fastcall **)(__int64))(*(_QWORD *)a1 + 200LL))(a1);
cocos2d::CCRect::CCRect(a2, *v5, *(float *)(v11 + 4), *(float *)&v10 * v9, v8);
return a2;
}