//
// LevelBadgePopup::buildCell from 0x100502914 to 0x100502b30 (540 bytes)
//
// 1 xrefs:
// > LevelBadgePopup::loadLevelsFinished @ 0x100502804
//
// This function is hookable on this platform (idp: arm, 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:06:54 +0000
//
void __fastcall LevelBadgePopup::buildCell(__int64 a1, __int64 a2)
{
__int64 v4; // x0
int v5; // w0
float v6; // s11
float v7; // s9
float v8; // s8
void *v9; // x21
__int64 v10; // x0
__int64 v11; // x0
void *v12; // x21
float v13[4]; // [xsp+8h] [xbp-68h] BYREF
__int64 v14; // [xsp+18h] [xbp-58h] BYREF
v4 = cocos2d::CCDirector::sharedDirector();
cocos2d::CCDirector::getWinSize(v4, &v14);
if ( *(_BYTE *)(a1 + 676) )
v5 = 25;
else
v5 = 4;
v6 = sub_100125E38(v5);
v7 = *(float *)&v14 * 0.5;
v8 = *((float *)&v14 + 1) * 0.5;
sub_1000262CC(v13, 0.0, 0.0, 80.0, 80.0);
v9 = cocos2d::extension::CCScale9Sprite::create((__int64)"GJ_square01.png", (__int64)v13);
sub_1000262C4(v13, 370.0, v6 + 14.0);
(*(void (__fastcall **)(void *, float *))(*(_QWORD *)v9 + 320LL))(v9, v13);
sub_1000262BC(v13, v7, v8);
(*(void (__fastcall **)(void *, float *))(*(_QWORD *)v9 + 184LL))(v9, v13);
(*(void (__fastcall **)(_QWORD, void *, __int64))(**(_QWORD **)(a1 + 584) + 464LL))(*(_QWORD *)(a1 + 584), v9, 1);
v10 = cocos2d::CCDirector::sharedDirector();
v11 = (*(__int64 (__fastcall **)(__int64))(*(_QWORD *)v10 + 160LL))(v10);
cocos2d::CCTouchDispatcher::registerForcePrio(v11, a1, 2, 0);
if ( *(_BYTE *)(a1 + 676) == 1 )
{
v12 = sub_10013B688(356.0, v6);
LevelListCell::loadFromList((__int64)v12, a2);
LevelListCell::updateBGColor((__int64)v12);
}
else
{
v12 = LevelCell::create(356.0, v6);
LevelCell::loadFromLevel((__int64)v12, a2);
LevelCell::updateBGColor((__int64)v12);
}
sub_1000262BC(v13, v7 + -178.0, v8 - (float)(v6 * 0.5));
(*(void (__fastcall **)(void *, float *))(*(_QWORD *)v12 + 184LL))(v12, v13);
(*(void (__fastcall **)(_QWORD, void *, __int64))(**(_QWORD **)(a1 + 584) + 464LL))(*(_QWORD *)(a1 + 584), v12, 2);
sub_1000262CC(v13, v7 + -185.0, v8 - (float)((float)(v6 + 14.0) * 0.5), 370.0, v6 + 14.0);
sub_1000264EC((_QWORD *)(a1 + 680), (__int64)v13);
}