//
// GJUINode::create from 0x5c7bcc to 0x5c7cc8 (252 bytes)
//
// 7 xrefs:
// > UILayer::init @ 0x5c7f8c
// > UIOptionsLayer::init @ 0x8d6724
// > UIOptionsLayer::init @ 0x8d6768
// > UIOptionsLayer::init @ 0x8d6804
// > UIOptionsLayer::init @ 0x8d6848
// > UIOptionsLayer::init @ 0x8d7758
// > ??> @ 0xbc988
//
// 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
//
GJUINode *GJUINode::create(UIButtonConfig *a1)
{
__int64 v2; // x19
v2 = operator new(0x188u);
cocos2d::CCNode::CCNode((cocos2d::CCNode *)v2);
*(_QWORD *)(v2 + 320) = 0;
*(_QWORD *)(v2 + 328) = 0;
*(_QWORD *)v2 = &off_1147FB0;
cocos2d::CCRect::CCRect((cocos2d::CCRect *)(v2 + 336));
*(_DWORD *)(v2 + 352) = -1;
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)(v2 + 356));
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)(v2 + 364));
*(_BYTE *)(v2 + 380) = 0;
*(_BYTE *)(v2 + 381) = 0;
*(_BYTE *)(v2 + 382) = 0;
*(_BYTE *)(v2 + 383) = 0;
*(_BYTE *)(v2 + 384) = 0;
*(_BYTE *)(v2 + 385) = 0;
*(_BYTE *)(v2 + 386) = 0;
*(_BYTE *)(v2 + 387) = 0;
*(_DWORD *)(v2 + 388) = 0;
*(_DWORD *)(v2 + 372) = 0;
*(_DWORD *)(v2 + 376) = 0;
if ( GJUINode::init((GJUINode *)v2, a1) )
{
cocos2d::CCObject::autorelease((cocos2d::CCObject *)v2);
return (GJUINode *)v2;
}
else
{
(*(void (__fastcall **)(__int64))(*(_QWORD *)v2 + 16LL))(v2);
return nullptr;
}
}