//
// cocos2d::CCAtlasNode::setOpacityModifyRGB from 0x100316800 to 0x100316847 (71 bytes)
//
// 3 xrefs:
// > ??> @ 0x100ae5700
// > ??> @ 0x100b1cc70
// > ??> @ 0x100ba2b28
//
// 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:40 +0000
//
__int64 __fastcall cocos2d::CCAtlasNode::setOpacityModifyRGB(_BYTE *a1, char a2)
{
__int64 v2; // rax
__int16 v4; // [rsp+Ch] [rbp-14h] BYREF
char v5; // [rsp+Eh] [rbp-12h]
v2 = (*(__int64 (__fastcall **)(_BYTE *))(*(_QWORD *)a1 + 944LL))(a1);
v5 = *(_BYTE *)(v2 + 2);
v4 = *(_WORD *)v2;
a1[384] = a2;
return (*(__int64 (__fastcall **)(_BYTE *, __int16 *))(*(_QWORD *)a1 + 960LL))(a1, &v4);
}