//
// GJUINode::create from 0x1404ceab0 to 0x1404ceb87 (215 bytes)
//
// 7 xrefs:
// > UIOptionsLayer::init @ 0x1402a1273
// > UIOptionsLayer::init @ 0x1402a1387
// > UIOptionsLayer::init @ 0x1402a140d
// > UIOptionsLayer::init @ 0x1402a14e1
// > UIOptionsLayer::init @ 0x1402a1567
// > UILayer::init @ 0x1404ccc8b
// > ??> @ 0x1406dd514
//
// 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=2
GJUINode *GJUINode::create(UIButtonConfig *a1)
{
char *v2; // rdi
v2 = (char *)operator new(0x188u);
cocos2d::CCNode::CCNode((cocos2d::CCNode *)v2);
*(_QWORD *)v2 = &GJUINode::`vftable';
*((_QWORD *)v2 + 40) = 0;
*((_QWORD *)v2 + 41) = 0;
cocos2d::CCRect::CCRect((cocos2d::CCRect *)v2 + 21);
*((_DWORD *)v2 + 88) = -1;
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)(v2 + 356));
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)(v2 + 364));
*(_QWORD *)(v2 + 372) = 0;
*((_DWORD *)v2 + 95) = 0;
*((_QWORD *)v2 + 48) = 0;
if ( GJUINode::init((GJUINode *)v2, a1) )
{
cocos2d::CCObject::autorelease((cocos2d::CCObject *)v2);
return (GJUINode *)v2;
}
else
{
(*(void (__fastcall **)(char *, __int64))(*(_QWORD *)v2 + 8LL))(v2, 1);
return nullptr;
}
}