//
// IDNameBrowserPopup::mountVirtualRow from 0x1004e17f4 to 0x1004e1cfc (1288 bytes)
//
// 2 xrefs:
// > sub_1004E1FAC @ 0x1004e1fb0
// > ??> @ 0x100992b08
//
// 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:37 +0000
//
__int64 __fastcall IDNameBrowserPopup::mountVirtualRow(__int64 a1, int a2, __int64 a3, __int64 a4)
{
float v8; // s11
float v9; // s10
float v10; // s8
float v11; // s9
unsigned int *v12; // x26
__int64 v13; // x21
const char *v14; // x23
void *v15; // x25
__int64 v16; // x1
void *v17; // x24
void *v18; // x22
_DWORD *v19; // x22
void *v20; // x22
void *v21; // x23
void *v22; // x23
float v23; // s9
float v24; // s9
float v25; // s0
void *v26; // x20
float v28; // [xsp+8h] [xbp-88h] BYREF
__int64 v29; // [xsp+10h] [xbp-80h] BYREF
char __str[16]; // [xsp+18h] [xbp-78h] BYREF
sub_100026438(&v29, (double *)(*(_QWORD *)(a1 + 696) + 424LL));
v8 = *(float *)&v29 + -10.0;
v9 = *(float *)&v29 * 0.5;
v10 = *(float *)&v29 + -20.0;
v11 = (float)(*(float *)&v29 + -20.0) + -24.0;
v12 = (unsigned int *)(*(_QWORD *)(a1 + 760) + 32LL * a2);
v13 = *v12;
v14 = (const char *)(v12 + 2);
sub_1000262CC((float *)__str, 0.0, 0.0, 40.0, 40.0);
v15 = cocos2d::extension::CCScale9Sprite::create((__int64)"square02_small.png", (__int64)__str);
sub_1000262C4((float *)__str, v8 + v8, 44.0);
(*(void (__fastcall **)(void *, char *))(*(_QWORD *)v15 + 320LL))(v15, __str);
(*(void (__fastcall **)(void *, float))(*(_QWORD *)v15 + 160LL))(v15, 0.5);
if ( (a2 & 1) != 0 )
v16 = 40;
else
v16 = 70;
(*(void (__fastcall **)(void *, __int64))(*(_QWORD *)v15 + 912LL))(v15, v16);
__str[2] = 0;
*(_WORD *)__str = 0;
(*(void (__fastcall **)(void *, char *))(*(_QWORD *)v15 + 960LL))(v15, __str);
sub_1000262BC((float *)__str, v9, 12.0);
(*(void (__fastcall **)(void *, char *))(*(_QWORD *)v15 + 184LL))(v15, __str);
(*(void (__fastcall **)(__int64, void *, _QWORD))(*(_QWORD *)a3 + 464LL))(a3, v15, 0);
snprintf(__str, 0x10u, "%d:", v13);
v17 = cocos2d::CCLabelBMFont::create_1(__str, "bigFont.fnt");
cocos2d::CCLabelBMFont::limitLabelWidth((__int64)v17, 34.0, 0.45, 0.0);
BYTE2(v28) = -1;
LOWORD(v28) = -1;
(*(void (__fastcall **)(void *, float *))(*(_QWORD *)v17 + 1072LL))(v17, &v28);
sub_1000262BC(&v28, 1.0, 0.5);
(*(void (__fastcall **)(void *, float *))(*(_QWORD *)v17 + 296LL))(v17, &v28);
sub_1000262BC(&v28, 46.0, 12.0);
(*(void (__fastcall **)(void *, float *))(*(_QWORD *)v17 + 184LL))(v17, &v28);
(*(void (__fastcall **)(__int64, void *, __int64))(*(_QWORD *)a3 + 464LL))(a3, v17, 1);
if ( *((char *)v12 + 31) < 0 )
v14 = *(const char **)v14;
v18 = cocos2d::CCLabelBMFont::create_1(v14, "bigFont.fnt");
BYTE2(v28) = -1;
LOWORD(v28) = -14211;
(*(void (__fastcall **)(void *, float *))(*(_QWORD *)v18 + 1072LL))(v18, &v28);
cocos2d::CCLabelBMFont::limitLabelWidth((__int64)v18, (float)(v11 + -54.0) + -12.0, 0.45, 0.15);
v19 = CCMenuItemSpriteExtra::create((__int64)v18, 0, a1, (__int64)sub_1004E1CFC, 0);
v19[100] = 1066024305;
(*(void (__fastcall **)(_DWORD *, __int64))(*(_QWORD *)v19 + 72LL))(v19, v13);
sub_1000262BC(&v28, 0.0, 0.5);
(*(void (__fastcall **)(_DWORD *, float *))(*(_QWORD *)v19 + 296LL))(v19, &v28);
sub_1000262BC(&v28, 54.0, 12.0);
(*(void (__fastcall **)(_DWORD *, float *))(*(_QWORD *)v19 + 184LL))(v19, &v28);
(*(void (__fastcall **)(__int64, _DWORD *, __int64))(*(_QWORD *)a4 + 464LL))(a4, v19, 1);
v20 = cocos2d::CCSprite::createWithSpriteFrameName((__int64)"GJ_selectSongBtn_001.png");
(*(void (__fastcall **)(void *, float))(*(_QWORD *)v20 + 160LL))(v20, 0.45);
v21 = CCMenuItemSpriteExtra::create((__int64)v20, 0, a1, (__int64)sub_1004E1E10, 0);
(*(void (__fastcall **)(void *, __int64))(*(_QWORD *)v21 + 72LL))(v21, v13);
CCMenuItemSpriteExtra::setSizeMult((__int64)v21, 1.3);
sub_1000262BC(&v28, v11, 12.0);
(*(void (__fastcall **)(void *, float *))(*(_QWORD *)v21 + 184LL))(v21, &v28);
(*(void (__fastcall **)(__int64, void *))(*(_QWORD *)a4 + 456LL))(a4, v21);
v22 = cocos2d::CCSprite::createWithSpriteFrameName((__int64)"GJ_deleteBtn_001.png");
if ( !v22 )
v22 = cocos2d::CCSprite::createWithSpriteFrameName((__int64)"GJ_trashBtn_001.png");
v23 = *(float *)(*(__int64 (__fastcall **)(void *))(*(_QWORD *)v20 + 328LL))(v20);
v24 = v23 / *(float *)(*(__int64 (__fastcall **)(void *))(*(_QWORD *)v22 + 328LL))(v22);
v25 = (*(float (__fastcall **)(void *))(*(_QWORD *)v20 + 168LL))(v20);
(*(void (__fastcall **)(void *, float))(*(_QWORD *)v22 + 160LL))(v22, v24 * v25);
v26 = CCMenuItemSpriteExtra::create((__int64)v22, 0, a1, (__int64)sub_1004E1EB4, 0);
(*(void (__fastcall **)(void *, __int64))(*(_QWORD *)v26 + 72LL))(v26, v13);
CCMenuItemSpriteExtra::setSizeMult((__int64)v26, 1.3);
sub_1000262BC(&v28, v10, 12.0);
(*(void (__fastcall **)(void *, float *))(*(_QWORD *)v26 + 184LL))(v26, &v28);
return (*(__int64 (__fastcall **)(__int64, void *))(*(_QWORD *)a4 + 456LL))(a4, v26);
}