//
// sub_1404C8430 from 0x1404c8430 to 0x1404c8555 (293 bytes)
//
// 3 xrefs:
// > sub_1404CAAF0 @ 0x1404caaf7
// > ??> @ 0x140620df8
// > ??> @ 0x1406dd2c8
//
// 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
//
// Hidden C++ exception states: #wind=1
cocos2d::CCLayerColor *__fastcall sub_1404C8430(cocos2d::CCLayerColor *Block, char a2)
{
char *p_m_fVertexZ; // rdi
__int64 v5; // rax
void *v6; // rax
Block->cocos2d::CCLayerRGBA::cocos2d::CCLayer::cocos2d::CCNode::cocos2d::CCObject::cocos2d::CCCopying::__vftable = (cocos2d::CCLayerColor_vtbl *)&SupportLayer::`vftable';
Block->cocos2d::CCLayerRGBA::cocos2d::CCLayer::cocos2d::CCTouchDelegate::__vftable = (cocos2d::CCTouchDelegate_vtbl *)&SupportLayer::`vftable';
Block->cocos2d::CCLayerRGBA::cocos2d::CCLayer::cocos2d::CCAccelerometerDelegate::__vftable = (cocos2d::CCAccelerometerDelegate_vtbl *)&SupportLayer::`vftable';
Block->cocos2d::CCLayerRGBA::cocos2d::CCLayer::cocos2d::CCKeypadDelegate::__vftable = (cocos2d::CCKeypadDelegate_vtbl *)&SupportLayer::`vftable';
Block->cocos2d::CCLayerRGBA::cocos2d::CCLayer::cocos2d::CCKeyboardDelegate::__vftable = (cocos2d::CCKeyboardDelegate_vtbl *)&SupportLayer::`vftable';
Block->cocos2d::CCLayerRGBA::cocos2d::CCLayer::cocos2d::CCMouseDelegate::__vftable = (cocos2d::CCMouseDelegate_vtbl *)&SupportLayer::`vftable';
Block->cocos2d::CCLayerRGBA::cocos2d::CCRGBAProtocol::__vftable = (cocos2d::CCRGBAProtocol_vtbl *)&SupportLayer::`vftable';
Block->cocos2d::CCBlendProtocol::__vftable = (cocos2d::CCBlendProtocol_vtbl *)&SupportLayer::`vftable';
*(_QWORD *)&Block[1].m_fScaleX = &SupportLayer::`vftable';
p_m_fVertexZ = (char *)&Block[1].m_fVertexZ;
*(_QWORD *)&Block[1].m_fVertexZ = &SupportLayer::`vftable';
*(_QWORD *)&Block[1].m_obPosition.y = &SupportLayer::`vftable';
v5 = qword_1406C2EC0;
if ( !qword_1406C2EC0 )
{
v6 = operator new(0x3D0u);
qword_1406C2EC0 = sub_140141280((__int64)v6);
(*(void (__fastcall **)(__int64))(*(_QWORD *)qword_1406C2EC0 + 72LL))(qword_1406C2EC0);
v5 = qword_1406C2EC0;
}
if ( *(char **)(v5 + 808) == p_m_fVertexZ )
*(_QWORD *)(v5 + 808) = 0;
GJDropDownLayer::dGJDropDownLayer(Block);
if ( (a2 & 1) != 0 )
j_j_free(Block);
return Block;
}