//
// ListButtonPage::create from 0x100168104 to 0x1001681f8 (244 bytes)
//
// 1 xrefs:
// > ListButtonBar::init @ 0x100167e84
//
// 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
//
// local variable allocation has failed, the output may be wrong!
ListButtonPage *__fastcall ListButtonPage::create(
cocos2d::CCArray *a1,
cocos2d::CCPoint a2,
int a3,
int a4,
float a5,
float a6,
float a7)
{
float y; // s9
float x; // s10
__int64 *v11; // x23
ListButtonPage *v13; // x19
float v14; // s3
float v15; // s4
__int64 v17; // [xsp+8h] [xbp-58h] BYREF
cocos2d::CCPoint v18; // 0:s0.4,4:s1.4
y = a2.y;
x = a2.x;
v11 = *(__int64 **)&a3;
v13 = (ListButtonPage *)operator new(0x198u);
cocos2d::CCLayer::CCLayer((__int64)v13);
v13->cocos2d::CCLayer::cocos2d::CCNode::cocos2d::CCObject::cocos2d::CCCopying::__vftable = (ListButtonPage_vtbl *)&off_10079D118;
v13->cocos2d::CCLayer::cocos2d::CCTouchDelegate::__vftable = (cocos2d::CCTouchDelegate_vtbl *)off_10079D598;
v13->cocos2d::CCLayer::cocos2d::CCAccelerometerDelegate::__vftable = (cocos2d::CCAccelerometerDelegate_vtbl *)&off_10079D608;
v13->cocos2d::CCLayer::cocos2d::CCKeypadDelegate::__vftable = (cocos2d::CCKeypadDelegate_vtbl *)off_10079D620;
v13->cocos2d::CCLayer::cocos2d::CCKeyboardDelegate::__vftable = (cocos2d::CCKeyboardDelegate_vtbl *)&off_10079D640;
v13->cocos2d::CCLayer::cocos2d::CCMouseDelegate::__vftable = (cocos2d::CCMouseDelegate_vtbl *)off_10079D660;
sub_1000229B8(&v17, v11);
v18.x = x;
v18.y = y;
if ( ListButtonPage::init(v13, a1, v18, (int)&v17, a4, a5, v14, v15) )
{
cocos2d::CCObject::autorelease(v13);
}
else
{
((void (__fastcall *)(ListButtonPage *))v13->~ListButtonPage_0)(v13);
return nullptr;
}
return v13;
}