//
// GJUINode::create from 0x1004c8350 to 0x1004c83f4 (164 bytes)
//
// 9 xrefs:
// > UIOptionsLayer::init @ 0x1002b29b6
// > UIOptionsLayer::init @ 0x1002b29fb
// > UIOptionsLayer::init @ 0x1002b2aa0
// > UIOptionsLayer::init @ 0x1002b2ae5
// > UIOptionsLayer::init @ 0x1002b2b7b
// > UILayer::init @ 0x1004c7c83
// > UILayer::init @ 0x1004c7cc8
// > UILayer::init @ 0x1004c7d15
// > UILayer::init @ 0x1004c7d5a
//
// 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 *__fastcall GJUINode::create(UIButtonConfig *a1)
{
_OWORD *v1; // rbx
v1 = operator new(0x188u);
cocos2d::CCNode::CCNode((__int64)v1);
*(_QWORD *)v1 = off_100950F00;
v1[20] = 0;
sub_10028D130(v1 + 21);
*((_DWORD *)v1 + 88) = -1;
sub_10028CC30((_OWORD *)((char *)v1 + 356));
sub_10028CC30((_OWORD *)((char *)v1 + 364));
*(_OWORD *)((char *)v1 + 372) = 0;
*((_DWORD *)v1 + 97) = 0;
if ( GJUINode::init((GJUINode *)v1, a1) )
{
cocos2d::CCObject::autorelease((cocos2d::CCObject *)v1);
}
else
{
(*(void (__fastcall **)(_OWORD *))(*(_QWORD *)v1 + 16LL))(v1);
return nullptr;
}
return (GJUINode *)v1;
}