//
// ListButtonPage::create from 0x1400783b0 to 0x140078670 (704 bytes)
//
// 2 xrefs:
// > ListButtonBar::init @ 0x140077f9e
// > ??> @ 0x140911c84
//
// This function is hookable on this platform (idp: pc, 32 bit: False, 64 bit: True!
//
// Using BromaIDA 8.3.0 @ https://github.com/Stazzical/BromaIDA
// Using bindings at commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings
// Generated at Fri, 27 Nov 2026 11:25:52 +0000
//
// Hidden C++ exception states: #wind=1
cocos2d::CCLayer *__fastcall ListButtonPage::create(
cocos2d::CCArray *a1,
const struct cocos2d::CCPoint *a2,
int a3,
int a4,
float a5,
float a6,
float a7)
{
cocos2d::CCLayer *v11; // r14
float *v12; // rax
float *v13; // rbx
float v15; // xmm6_4
float v16; // xmm9_4
int v17; // edi
unsigned int v18; // esi
__int64 v19; // r14
int v20; // ebx
int v21; // r13d
struct cocos2d::CCObject *v22; // r15
__int64 v23; // rbx
__int64 v24; // rax
__int64 v25; // [rsp+20h] [rbp-B8h] BYREF
cocos2d::CCLayer *v26; // [rsp+28h] [rbp-B0h]
char v27[8]; // [rsp+30h] [rbp-A8h] BYREF
char v28[8]; // [rsp+38h] [rbp-A0h] BYREF
v11 = (cocos2d::CCLayer *)operator new(0x198u);
v26 = v11;
cocos2d::CCLayer::CCLayer(v11);
*(_QWORD *)v11 = &ListButtonPage::`vftable';
*((_QWORD *)v11 + 40) = &ListButtonPage::`vftable';
*((_QWORD *)v11 + 41) = &ListButtonPage::`vftable';
*((_QWORD *)v11 + 42) = &ListButtonPage::`vftable';
*((_QWORD *)v11 + 43) = &ListButtonPage::`vftable';
*((_QWORD *)v11 + 44) = &ListButtonPage::`vftable';
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v27, a2);
v13 = v12;
if ( cocos2d::CCLayer::init(v11) )
{
v25 = cocos2d::CCMenu::create();
(*(void (__fastcall **)(cocos2d::CCLayer *, __int64))(*(_QWORD *)v11 + 464LL))(v11, v25);
v15 = (float)((float)((float)(a4 - 1) * 0.5) * (float)(a6 + a7)) + v13[1];
v16 = (float)(*v13 - (float)((float)((float)a3 * 0.5) * a7)) - (float)((float)((float)(a3 - 1) * 0.5) * a5);
v17 = 0;
v18 = 0;
if ( cocos2d::CCArray::count(a1) )
{
v19 = v25;
do
{
v20 = v17 % a3;
v21 = (int)floorf((float)v17 / (float)a3);
v22 = cocos2d::CCArray::objectAtIndex(a1, v18);
if ( (*(unsigned int (__fastcall **)(struct cocos2d::CCObject *))(*(_QWORD *)v22 + 56LL))(v22) == -2 )
{
v17 += a3 - v20;
}
else
{
(*(void (__fastcall **)(__int64, struct cocos2d::CCObject *))(*(_QWORD *)v19 + 464LL))(v19, v22);
cocos2d::CCPoint::CCPoint(
(cocos2d::CCPoint *)&v25,
(float)((float)(a5 + a7) * (float)v20) + (float)((float)(a7 * 0.5) + v16),
v15 - (float)((float)v21 * (float)(a6 + a7)));
v23 = *(_QWORD *)v22;
cocos2d::CCNode::convertToNodeSpace(v19, v28, &v25);
(*(void (__fastcall **)(struct cocos2d::CCObject *, __int64))(v23 + 184))(v22, v24);
++v17;
}
++v18;
}
while ( v18 < cocos2d::CCArray::count(a1) );
v11 = v26;
}
cocos2d::CCObject::autorelease(v11);
return v11;
}
else
{
(*(void (__fastcall **)(cocos2d::CCLayer *, __int64))(*(_QWORD *)v11 + 8LL))(v11, 1);
return nullptr;
}
}