//
// sub_140191600 from 0x140191600 to 0x140191789 (393 bytes)
//
// 3 xrefs:
// > EditorSoundConfigCell::loadFromConfig @ 0x140190db1
// > EditorSoundConfigCell::loadFromConfig @ 0x1401914a7
// > ??> @ 0x140919310
//
// 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:27:43 +0000
//
// Hidden C++ exception states: #wind=1
__m128 __fastcall sub_140191600(float **a1)
{
cocos2d::CCObject *v2; // rbx
cocos2d::CCObject *v3; // rsi
__int128 v4; // xmm7
__int64 v5; // rdi
__int64 v6; // rbx
__int64 v7; // rax
__int64 v8; // rax
void *v10; // [rsp+80h] [rbp+8h] BYREF
char v11; // [rsp+88h] [rbp+10h] BYREF
v10 = operator new(0x2C8u);
v2 = (cocos2d::CCObject *)ButtonSprite::ButtonSprite((__int64)v10);
if ( v2 )
{
if ( ButtonSprite::init_1(
(__int64)v2,
(__int64)"View",
50,
0,
1058642330,
0,
&qword_140704F78,
(__int64)"GJ_button_01.png",
1106247680) )
{
cocos2d::CCObject::autorelease(v2);
}
else
{
(*(void (__fastcall **)(cocos2d::CCObject *, __int64))(*(_QWORD *)v2 + 8LL))(v2, 1);
v2 = nullptr;
}
}
v3 = CCMenuItemSpriteExtra::create((int)v2, 0, (int)*a1, (__int64)EditorSoundConfigCell::onView);
(*(void (__fastcall **)(cocos2d::CCObject *))(*(_QWORD *)v3 + 160LL))(v3);
*((_DWORD *)v3 + 101) = 1061997773;
(*(void (__fastcall **)(_QWORD, cocos2d::CCObject *))(**((_QWORD **)*a1 + 72) + 464LL))(*((_QWORD *)*a1 + 72), v3);
v4 = *(unsigned int *)(*(__int64 (__fastcall **)(cocos2d::CCObject *))(*(_QWORD *)v2 + 320LL))(v2);
*(float *)&v4 = *(float *)&v4 * 0.80000001;
v5 = *(_QWORD *)v3;
v6 = *((_QWORD *)*a1 + 72);
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v10, (float)((*a1)[132] - (float)(*(float *)&v4 * 0.5)) - 9.0, *a1[1]);
cocos2d::CCNode::convertToNodeSpace(v6, &v11, v7);
(*(void (__fastcall **)(cocos2d::CCObject *, __int64))(v5 + 184))(v3, v8);
return (__m128)v4;
}