//
// sub_1008F3270 from 0x1008f3270 to 0x1008f3488 (536 bytes)
//
// 2 xrefs:
// > EditorSoundConfigCell::loadFromConfig @ 0x1008f2c1a
// > EditorSoundConfigCell::loadFromConfig @ 0x1008f316f
//
// 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:37:57 +0000
//
__int64 __fastcall sub_1008F3270(__int64 a1, float a2, float a3, float a4)
{
__int64 *v4; // r14
__int64 v5; // r13
char *v6; // rax
__int64 CString; // rax
__int64 v8; // r14
void *v9; // r15
__int64 *v10; // rbx
char *v11; // rax
__int64 v12; // rax
__int64 v13; // r15
void *v14; // rbx
float v16[12]; // [rsp+10h] [rbp-30h] BYREF
v4 = *(__int64 **)a1;
v5 = *(_QWORD *)(a1 + 8);
v6 = sub_10088E820("Actions: %d", *(_DWORD *)(*(_QWORD *)(v5 + 552) + 352LL));
CString = cocos2d::CCString::getCString((__int64)v6);
v8 = *v4;
v9 = cocos2d::CCLabelBMFont::create_3(CString, (__int64)"chatFont.fnt");
sub_100278250(v16, 1.0, 0.5);
(*(void (__fastcall **)(void *, float *))(*(_QWORD *)v9 + 296LL))(v9, v16);
BYTE2(v16[0]) = 0;
LOWORD(v16[0]) = 0;
(*(void (__fastcall **)(void *, float *))(*(_QWORD *)v9 + 1072LL))(v9, v16);
(*(void (__fastcall **)(void *, __int64))(*(_QWORD *)v9 + 1024LL))(v9, 175);
cocos2d::CCLabelBMFont::limitLabelWidth((__int64)v9, 90.0, (__m128)0x3F19999Au, (__m128)0LL);
sub_100278250(v16, (float)(*(float *)(v8 + 520) - a2) + -21.0, a3);
(*(void (__fastcall **)(void *, float *))(*(_QWORD *)v9 + 184LL))(v9, v16);
(*(void (__fastcall **)(_QWORD, void *))(**(_QWORD **)(v8 + 536) + 456LL))(*(_QWORD *)(v8 + 536), v9);
v10 = *(__int64 **)a1;
v11 = sub_10088E820("Sounds: %d", *(_DWORD *)(*(_QWORD *)(v5 + 552) + 356LL));
v12 = cocos2d::CCString::getCString((__int64)v11);
v13 = *v10;
v14 = cocos2d::CCLabelBMFont::create_3(v12, (__int64)"chatFont.fnt");
sub_100278250(v16, 1.0, 0.5);
(*(void (__fastcall **)(void *, float *))(*(_QWORD *)v14 + 296LL))(v14, v16);
BYTE2(v16[0]) = 0;
LOWORD(v16[0]) = 0;
(*(void (__fastcall **)(void *, float *))(*(_QWORD *)v14 + 1072LL))(v14, v16);
(*(void (__fastcall **)(void *, __int64))(*(_QWORD *)v14 + 1024LL))(v14, 175);
cocos2d::CCLabelBMFont::limitLabelWidth((__int64)v14, 90.0, (__m128)0x3F19999Au, (__m128)0LL);
sub_100278250(v16, (float)(*(float *)(v13 + 520) - a2) + -21.0, a4);
(*(void (__fastcall **)(void *, float *))(*(_QWORD *)v14 + 184LL))(v14, v16);
return (*(__int64 (__fastcall **)(_QWORD, void *))(**(_QWORD **)(v13 + 536) + 456LL))(*(_QWORD *)(v13 + 536), v14);
}