//
// cocos2d::CCMenu::alignItemsInColumns from 0x18005a1e0 to 0x18005a289 (169 bytes)
//
// 3 xrefs:
// > cocos2d::CCMenu::alignItemsInColumns @ 0x18005a2a7
// > ??> @ 0x18014cf68
// > ??> @ 0x1801bccc4
//
// 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:21:48 +0000
//
// Hidden C++ exception states: #wind=1
void __fastcall cocos2d::CCMenu::alignItemsInColumns(cocos2d::CCMenu *this, int a2, char *a3)
{
cocos2d::CCArray *v6; // rbp
char *v7; // rsi
cocos2d::CCObject *v8; // rax
cocos2d::CCObject *v9; // rbx
v6 = cocos2d::CCArray::create();
if ( a2 )
{
v7 = a3 - 8;
do
{
v8 = (cocos2d::CCObject *)sub_1800E4AC0(0x40u);
v9 = v8;
if ( v8 )
{
cocos2d::CCObject::CCObject(v8);
*(_QWORD *)v9 = &cocos2d::CCInteger::`vftable';
*((_DWORD *)v9 + 14) = a2;
}
else
{
v9 = nullptr;
}
cocos2d::CCObject::autorelease(v9);
cocos2d::CCArray::addObject(v6, v9);
v7 += 8;
a2 = *(_DWORD *)v7;
}
while ( *(_DWORD *)v7 );
}
cocos2d::CCMenu::alignItemsInColumnsWithArray(this, v6);
}