// // cocos2d::CCLayerRGBA::setColor from 0x1004aaf10 to 0x1004aafc8 (184 bytes) // // 15 xrefs: // > cocos2d::extension::CCControlButton::setColor @ 0x100340a7d // > sub_100340AD0 @ 0x100340ae4 // > @ 0x100b14068 // > @ 0x100b1d840 // > @ 0x100b1e780 // > @ 0x100b1ee80 // > @ 0x100b1fe30 // > @ 0x100b235d8 // > @ 0x100b2d0b8 // > @ 0x100b2f5f0 // > @ 0x100b30e90 // > @ 0x100b544e0 // > @ 0x100b80340 // > @ 0x100b8a2a0 // > @ 0x100ba0a38 // // 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:30:56 +0000 // __int64 __fastcall cocos2d::CCLayerRGBA::setColor(__int64 a1, unsigned __int16 *a2) { __int64 result; // rax const void *v4; // rdi void *v5; // rax void *v6; // rbx __int64 v7; // rax __int16 v8; // [rsp-1Ch] [rbp-1Ch] BYREF char v9; // [rsp-1Ah] [rbp-1Ah] *(_BYTE *)(a1 + 423) = *((_BYTE *)a2 + 2); *(_WORD *)(a1 + 421) = *a2; result = *a2; *(_BYTE *)(a1 + 420) = *((_BYTE *)a2 + 2); *(_WORD *)(a1 + 418) = result; if ( *(_BYTE *)(a1 + 425) == 1 ) { v9 = -1; v8 = -1; v4 = *(const void **)(a1 + 216); if ( v4 ) { v5 = __dynamic_cast( v4, (const struct __class_type_info *)&`typeinfo for'cocos2d::CCNode, (const struct __class_type_info *)&`typeinfo for'cocos2d::CCRGBAProtocol, -2); if ( v5 ) { v6 = v5; if ( (*(unsigned __int8 (__fastcall **)(void *))(*(_QWORD *)v5 + 64LL))(v5) ) { v7 = (*(__int64 (__fastcall **)(void *))(*(_QWORD *)v6 + 16LL))(v6); v8 = *(_WORD *)v7; v9 = *(_BYTE *)(v7 + 2); } } } return (*(__int64 (__fastcall **)(__int64, __int16 *))(*(_QWORD *)a1 + 1224LL))(a1, &v8); } return result; }
GD Web Decomp Icon

GD Web Decomp

Raw Source