//
// cocos2d::CCLayerColor::initWithColor from 0xaeaf28 to 0xaeb048 (288 bytes)
//
// 239 xrefs:
// > CCContentLayer::create @ 0x5741d0
// > BoomListLayer::init @ 0x594c40
// > GJListLayer::init @ 0x7a07fc
// > GJCommentListLayer::init @ 0x8c9a08
// > ParticlePreviewLayer::init @ 0x9c52d0
// > ??> @ 0x5d7f8
// > ??> @ 0x1137030
// > ??> @ 0x1138200
// > ??> @ 0x113bf10
// > ??> @ 0x113c9b0
// > ??> @ 0x113f060
// > ??> @ 0x11408a0
// > ??> @ 0x1144450
// > ??> @ 0x1145bb0
// > ??> @ 0x1146360
// > ??> @ 0x1146a70
// > ??> @ 0x1147dc0
// > ??> @ 0x114a290
// > ??> @ 0x114a960
// > ??> @ 0x11587d0
// > ??> @ 0x115a7a0
// > ??> @ 0x115aeb0
// > ??> @ 0x115c590
// > ??> @ 0x115cc40
// > ??> @ 0x115d320
// > ??> @ 0x115db30
// > ??> @ 0x1161200
// > ??> @ 0x1177b60
// > ??> @ 0x11782a0
// > ??> @ 0x1179cc0
// > ??> @ 0x117a390
// > ??> @ 0x117b6b0
// > ??> @ 0x117c690
// > ??> @ 0x117d440
// > ??> @ 0x117db60
// > ??> @ 0x117e2b0
// > ??> @ 0x117e960
// > ??> @ 0x117f060
// > ??> @ 0x117f730
// > ??> @ 0x11802e0
// > ??> @ 0x1180a00
// > ??> @ 0x1181120
// > ??> @ 0x1181830
// > ??> @ 0x1181fc0
// > ??> @ 0x1182690
// > ??> @ 0x1182e70
// > ??> @ 0x1183630
// > ??> @ 0x1184170
// > ??> @ 0x1184840
// > ??> @ 0x1186020
// > ??> @ 0x1187210
// > ??> @ 0x11878c0
// > ??> @ 0x1188160
// > ??> @ 0x1188860
// > ??> @ 0x118a850
// > ??> @ 0x118afb0
// > ??> @ 0x118b660
// > ??> @ 0x118bd30
// > ??> @ 0x118c8f0
// > ??> @ 0x118d070
// > ??> @ 0x118dd30
// > ??> @ 0x118e4d0
// > ??> @ 0x118ed20
// > ??> @ 0x118f4a0
// > ??> @ 0x118fc20
// > ??> @ 0x11911c0
// > ??> @ 0x1191ea0
// > ??> @ 0x1193cd0
// > ??> @ 0x1194a40
// > ??> @ 0x11950f0
// > ??> @ 0x11958d0
// > ??> @ 0x11960b0
// > ??> @ 0x11968b0
// > ??> @ 0x11970b0
// > ??> @ 0x1197760
// > ??> @ 0x1197e70
// > ??> @ 0x1198550
// > ??> @ 0x1198c00
// > ??> @ 0x1199320
// > ??> @ 0x1199a70
// > ??> @ 0x119a200
// > ??> @ 0x119a9e0
// > ??> @ 0x119b0f0
// > ??> @ 0x119b820
// > ??> @ 0x119bf30
// > ??> @ 0x119c660
// > ??> @ 0x119cd70
// > ??> @ 0x119d800
// > ??> @ 0x119e000
// > ??> @ 0x119e800
// > ??> @ 0x119efe0
// > ??> @ 0x119f6e0
// > ??> @ 0x119fd90
// > ??> @ 0x11a05c0
// > ??> @ 0x11a1be0
// > ??> @ 0x11a28f0
// > ??> @ 0x11a2fc0
// > ??> @ 0x11a37c0
// > ??> @ 0x11a3fc0
// > ??> @ 0x11a47f0
// > ??> @ 0x11a50d0
// > ??> @ 0x11a58f0
// > ??> @ 0x11a6110
// > ??> @ 0x11a6970
// > ??> @ 0x11a71a0
// > ??> @ 0x11a7850
// > ??> @ 0x11a85e0
// > ??> @ 0x11a90c0
// > ??> @ 0x11a9800
// > ??> @ 0x11a9ef0
// > ??> @ 0x11ab200
// > ??> @ 0x11abdb0
// > ??> @ 0x11ad840
// > ??> @ 0x11ae040
// > ??> @ 0x11ae850
// > ??> @ 0x11af030
// > ??> @ 0x11afeb0
// > ??> @ 0x11b0b50
// > ??> @ 0x11b12c0
// > ??> @ 0x11b1a90
// > ??> @ 0x11b2190
// > ??> @ 0x11b49d0
// > ??> @ 0x11b51d0
// > ??> @ 0x11b59d0
// > ??> @ 0x11b61d0
// > ??> @ 0x11b6a00
// > ??> @ 0x11b71e0
// > ??> @ 0x11b79c0
// > ??> @ 0x11b81c0
// > ??> @ 0x11b89c0
// > ??> @ 0x11b91c0
// > ??> @ 0x11b99c0
// > ??> @ 0x11ba1c0
// > ??> @ 0x11ba9c0
// > ??> @ 0x11bb1c0
// > ??> @ 0x11bb9c0
// > ??> @ 0x11bca20
// > ??> @ 0x11bd130
// > ??> @ 0x11bd8d0
// > ??> @ 0x11bdfe0
// > ??> @ 0x11be800
// > ??> @ 0x11bef20
// > ??> @ 0x11bf720
// > ??> @ 0x11bff20
// > ??> @ 0x11c0730
// > ??> @ 0x11c0f10
// > ??> @ 0x11c1aa0
// > ??> @ 0x11c21f0
// > ??> @ 0x11c2920
// > ??> @ 0x11c3030
// > ??> @ 0x11c4c30
// > ??> @ 0x11c5490
// > ??> @ 0x11c5d10
// > ??> @ 0x11c6520
// > ??> @ 0x11c6d00
// > ??> @ 0x11c7500
// > ??> @ 0x11c8330
// > ??> @ 0x11c8ab0
// > ??> @ 0x11c9220
// > ??> @ 0x11ca940
// > ??> @ 0x11cb060
// > ??> @ 0x11cb790
// > ??> @ 0x11cbe50
// > ??> @ 0x11cc530
// > ??> @ 0x11ccd70
// > ??> @ 0x11cd570
// > ??> @ 0x11cdd80
// > ??> @ 0x11ce560
// > ??> @ 0x11ced60
// > ??> @ 0x11cfaf0
// > ??> @ 0x11d02f0
// > ??> @ 0x11d0ba0
// > ??> @ 0x11d1380
// > ??> @ 0x11d1b60
// > ??> @ 0x11d2340
// > ??> @ 0x11d2b20
// > ??> @ 0x11d3330
// > ??> @ 0x11d3b10
// > ??> @ 0x11d4360
// > ??> @ 0x11d4b90
// > ??> @ 0x11d5420
// > ??> @ 0x11d5c20
// > ??> @ 0x11d62d0
// > ??> @ 0x11d6ab0
// > ??> @ 0x11d72c0
// > ??> @ 0x11d7aa0
// > ??> @ 0x11d82a0
// > ??> @ 0x11d8ac0
// > ??> @ 0x11d91c0
// > ??> @ 0x11db670
// > ??> @ 0x11dbe10
// > ??> @ 0x11dc4c0
// > ??> @ 0x11dcb70
// > ??> @ 0x11dd370
// > ??> @ 0x11ddba0
// > ??> @ 0x11de380
// > ??> @ 0x11dec20
// > ??> @ 0x11df400
// > ??> @ 0x11dfbe0
// > ??> @ 0x11e0420
// > ??> @ 0x11e0e10
// > ??> @ 0x11e15f0
// > ??> @ 0x11e1dd0
// > ??> @ 0x11e25b0
// > ??> @ 0x11e2d90
// > ??> @ 0x11e3570
// > ??> @ 0x11e3d50
// > ??> @ 0x11e4530
// > ??> @ 0x11e4d10
// > ??> @ 0x11e54f0
// > ??> @ 0x11e5cd0
// > ??> @ 0x11e64b0
// > ??> @ 0x11e6c90
// > ??> @ 0x11e7470
// > ??> @ 0x11e7c50
// > ??> @ 0x11e8430
// > ??> @ 0x11e8c30
// > ??> @ 0x11e9410
// > ??> @ 0x11e9c10
// > ??> @ 0x11ea410
// > ??> @ 0x11eaca0
// > ??> @ 0x11eb470
// > ??> @ 0x11ebc30
// > ??> @ 0x11ec340
// > ??> @ 0x11ecaf0
// > ??> @ 0x11ede00
// > ??> @ 0x11ee4d0
// > ??> @ 0x11eebc0
// > ??> @ 0x11ef3f0
// > ??> @ 0x11efb00
// > ??> @ 0x11f0390
// > ??> @ 0x11f0a40
// > ??> @ 0x11f10f0
// > ??> @ 0x11f1820
// > ??> @ 0x11f2000
// > ??> @ 0x11f27e0
// > ??> @ 0x11f3010
// > ??> @ 0x1204810
// > ??> @ 0x1204ec0
//
// This function is hookable on this platform!
//
// Using BromaIDA 8.0.0 @ https://github.com/Stazzical/BromaIDA
// Using bindings at commit ba9f177b at Thu Jul 16 22:52:06 2026 from https://github.com/geode-sdk/bindings
//
bool cocos2d::CCLayerColor::initWithColor(cocos2d::CCLayerColor *a1, const cocos2d::ccColor4B *a2, float a3, float a4)
{
cocos2d::CCLayerColor_vtbl *v5; // x3
GLubyte r; // w2
GLubyte g; // w2
GLubyte b; // w2
GLubyte a; // w1
void (__fastcall *setContentSize)(cocos2d::CCLayerColor *__hidden, const cocos2d::CCSize *); // x22
void (__fastcall *setShaderProgram)(cocos2d::CCNode *__hidden, cocos2d::CCGLProgram *); // x21
cocos2d::CCShaderCache *v12; // x0
cocos2d::CCGLProgram *v13; // x0
cocos2d::CCSize v18; // [xsp+60h] [xbp+60h] BYREF
if ( cocos2d::CCLayer::init(a1) )
{
a1->m_tBlendFunc.src = 770;
a1->m_tBlendFunc.dst = 771;
v5 = a1->cocos2d::CCLayerRGBA::cocos2d::CCLayer::cocos2d::CCNode::cocos2d::CCObject::cocos2d::CCCopying::__vftable;
r = a2->r;
a1->_realColor.r = a2->r;
a1->_displayedColor.r = r;
g = a2->g;
a1->_realColor.g = g;
a1->_displayedColor.g = g;
b = a2->b;
a1->_realColor.b = b;
a1->_displayedColor.b = b;
a = a2->a;
a1->_realOpacity = a;
a1->_displayedOpacity = a;
*(_OWORD *)&a1->m_pSquareVertices[0].x = 0u;
*(_OWORD *)&a1->m_pSquareVertices[2].x = 0u;
v5->updateColor(a1);
setContentSize = a1->setContentSize;
cocos2d::CCSize::CCSize(&v18, a3, a4);
setContentSize(a1, &v18);
setShaderProgram = a1->setShaderProgram;
v12 = cocos2d::CCShaderCache::sharedShaderCache();
v13 = cocos2d::CCShaderCache::programForKey(v12, "ShaderPositionColor");
setShaderProgram(a1, v13);
}
return 1;
}