//
// IDNameBrowserPopup::mountVirtualRow from 0x10090bbd0 to 0x10090c0d4 (1284 bytes)
//
// 2 xrefs:
// > sub_10090C440 @ 0x10090c44c
// > ??> @ 0x100bbfeb0
//
// 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 12:38:07 +0000
//
__int64 __fastcall IDNameBrowserPopup::mountVirtualRow(__int64 a1, int a2, __int64 a3, __int64 a4)
{
__int64 v4; // rbx
unsigned int v5; // r12d
void *v6; // r15
bool v7; // zf
unsigned int v8; // r13d
__int64 v9; // rsi
__int64 v10; // r12
void *v11; // r15
__int64 v12; // rdi
void *v13; // r14
__int64 v14; // rbx
_DWORD *v15; // r15
__int64 v16; // rax
__int64 v17; // r13
double v18; // xmm0_8
char *v19; // r12
__int64 v20; // rdx
unsigned int v21; // ebx
void *v22; // r15
double v23; // xmm0_8
char *v24; // r15
float *v25; // rax
float v26; // xmm0_4
void *v27; // r14
__int64 v29; // [rsp+0h] [rbp-90h] BYREF
__int64 v30; // [rsp+8h] [rbp-88h]
__int64 v31; // [rsp+10h] [rbp-80h]
__int64 v32; // [rsp+18h] [rbp-78h]
__int64 v33; // [rsp+20h] [rbp-70h]
__int64 v34; // [rsp+28h] [rbp-68h]
float v35; // [rsp+34h] [rbp-5Ch]
float v36; // [rsp+38h] [rbp-58h]
unsigned int v37; // [rsp+3Ch] [rbp-54h]
float v38; // [rsp+40h] [rbp-50h]
float v39; // [rsp+44h] [rbp-4Ch] BYREF
float v40; // [rsp+4Ch] [rbp-44h]
char __str[16]; // [rsp+50h] [rbp-40h] BYREF
v30 = a4;
v32 = a3;
sub_100278630(&v29, (_QWORD *)(*(_QWORD *)(a1 + 696) + 424LL));
v38 = *(float *)&v29 + -10.0;
v36 = *(float *)&v29 * 0.5;
v35 = *(float *)&v29 + -20.0;
v40 = (float)(*(float *)&v29 + -20.0) + -24.0;
v33 = a1;
v31 = *(_QWORD *)(a1 + 760);
v4 = 32LL * a2;
v34 = v31 + v4;
v5 = *(_DWORD *)(v31 + v4);
sub_100278270((__int64)__str, 0.0, 0.0, (__m128)0x42200000u, (__m128)0x42200000u);
v6 = cocos2d::extension::CCScale9Sprite::create_2((__int64)"square02_small.png", (unsigned __int64 *)__str);
sub_100278260((float *)__str, v38 + v38, 44.0);
(*(void (__fastcall **)(void *, char *))(*(_QWORD *)v6 + 320LL))(v6, __str);
(*(void (__fastcall **)(void *, float))(*(_QWORD *)v6 + 160LL))(v6, 0.5);
v7 = (a2 & 1) == 0;
v8 = v5;
v9 = 40;
if ( v7 )
v9 = 70;
(*(void (__fastcall **)(void *, __int64))(*(_QWORD *)v6 + 912LL))(v6, v9);
__str[2] = 0;
*(_WORD *)__str = 0;
(*(void (__fastcall **)(void *, char *))(*(_QWORD *)v6 + 960LL))(v6, __str);
sub_100278250((float *)__str, v36, 12.0);
(*(void (__fastcall **)(void *, char *))(*(_QWORD *)v6 + 184LL))(v6, __str);
v10 = v32;
(*(void (__fastcall **)(__int64, void *, _QWORD))(*(_QWORD *)v32 + 464LL))(v32, v6, 0);
snprintf(__str, 0x10u, "%d:", v8);
v11 = cocos2d::CCLabelBMFont::create_3((__int64)__str, (__int64)"bigFont.fnt");
cocos2d::CCLabelBMFont::limitLabelWidth((__int64)v11, 34.0, (__m128)0x3EE66666u, (__m128)0LL);
BYTE2(v39) = -1;
LOWORD(v39) = -1;
(*(void (__fastcall **)(void *, float *))(*(_QWORD *)v11 + 1072LL))(v11, &v39);
sub_100278250(&v39, 1.0, 0.5);
(*(void (__fastcall **)(void *, float *))(*(_QWORD *)v11 + 296LL))(v11, &v39);
sub_100278250(&v39, 46.0, 12.0);
(*(void (__fastcall **)(void *, float *))(*(_QWORD *)v11 + 184LL))(v11, &v39);
(*(void (__fastcall **)(__int64, void *, __int64))(*(_QWORD *)v10 + 464LL))(v10, v11, 1);
if ( (*(_BYTE *)(v31 + v4 + 8) & 1) != 0 )
v12 = *(_QWORD *)(v34 + 24);
else
v12 = v34 + 9;
v13 = cocos2d::CCLabelBMFont::create_3(v12, (__int64)"bigFont.fnt");
BYTE2(v39) = -1;
LOWORD(v39) = -14211;
(*(void (__fastcall **)(void *, float *))(*(_QWORD *)v13 + 1072LL))(v13, &v39);
cocos2d::CCLabelBMFont::limitLabelWidth(
(__int64)v13,
(float)(v40 + -54.0) + -12.0,
(__m128)0x3EE66666u,
(__m128)0x3E19999Au);
v14 = v33;
v15 = CCMenuItemSpriteExtra::create((__int64)v13, 0, v33, (__int64)sub_10090C0E0, 0);
v15[100] = 1066024305;
v16 = *(_QWORD *)v15;
v37 = v8;
(*(void (__fastcall **)(_DWORD *, _QWORD))(v16 + 72))(v15, v8);
sub_100278250(&v39, 0.0, 0.5);
(*(void (__fastcall **)(_DWORD *, float *))(*(_QWORD *)v15 + 296LL))(v15, &v39);
sub_100278250(&v39, 54.0, 12.0);
(*(void (__fastcall **)(_DWORD *, float *))(*(_QWORD *)v15 + 184LL))(v15, &v39);
v17 = v30;
v18 = (*(double (__fastcall **)(__int64, _DWORD *, __int64))(*(_QWORD *)v30 + 464LL))(v30, v15, 1);
v19 = cocos2d::CCSprite::createWithSpriteFrameName((__int64)"GJ_selectSongBtn_001.png", v18);
(*(void (__fastcall **)(char *, float))(*(_QWORD *)v19 + 160LL))(v19, 0.44999999);
v20 = v14;
v21 = v37;
v22 = CCMenuItemSpriteExtra::create((__int64)v19, 0, v20, (__int64)sub_10090C2A0, 0);
(*(void (__fastcall **)(void *, _QWORD))(*(_QWORD *)v22 + 72LL))(v22, v21);
CCMenuItemSpriteExtra::setSizeMult((__int64)v22, 1.3);
sub_100278250(&v39, v40, 12.0);
(*(void (__fastcall **)(void *, float *))(*(_QWORD *)v22 + 184LL))(v22, &v39);
v23 = (*(double (__fastcall **)(__int64, void *))(*(_QWORD *)v17 + 456LL))(v17, v22);
v24 = cocos2d::CCSprite::createWithSpriteFrameName((__int64)"GJ_deleteBtn_001.png", v23);
if ( !v24 )
v24 = cocos2d::CCSprite::createWithSpriteFrameName((__int64)"GJ_trashBtn_001.png", v23);
v40 = *(float *)(*(__int64 (__fastcall **)(char *))(*(_QWORD *)v19 + 328LL))(v19);
v25 = (float *)(*(__int64 (__fastcall **)(char *))(*(_QWORD *)v24 + 328LL))(v24);
v40 = v40 / *v25;
v26 = (*(float (__fastcall **)(char *))(*(_QWORD *)v19 + 168LL))(v19);
(*(void (__fastcall **)(char *, float))(*(_QWORD *)v24 + 160LL))(v24, v26 * v40);
v27 = CCMenuItemSpriteExtra::create((__int64)v24, 0, v33, (__int64)sub_10090C350, 0);
(*(void (__fastcall **)(void *, _QWORD))(*(_QWORD *)v27 + 72LL))(v27, v21);
CCMenuItemSpriteExtra::setSizeMult((__int64)v27, 1.3);
sub_100278250(&v39, v35, 12.0);
(*(void (__fastcall **)(void *, float *))(*(_QWORD *)v27 + 184LL))(v27, &v39);
(*(void (__fastcall **)(__int64, void *))(*(_QWORD *)v17 + 456LL))(v17, v27);
return __stack_chk_guard;
}