//
// SongOptionsLayer::onClose from 0x1001fa850 to 0x1001fa946 (246 bytes)
//
// 3 xrefs:
// > SongOptionsLayer::keyBackClicked @ 0x1001fabc5
// > sub_1001FABD0 @ 0x1001fabdc
// > SongOptionsLayer::init @ 0x1001fa1a9
//
// 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:26:49 +0000
//
__int64 __fastcall SongOptionsLayer::onClose(__int64 a1)
{
__int64 v2; // r14
float v3; // xmm0_4
char *v4; // r15
float v5; // xmm0_4
__int64 v6; // rax
char *v8[2]; // [rsp+8h] [rbp-38h] BYREF
char *v9; // [rsp+18h] [rbp-28h]
float v10; // [rsp+24h] [rbp-1Ch]
(*(void (__fastcall **)(_QWORD, _QWORD))(**(_QWORD **)(a1 + 672) + 1160LL))(*(_QWORD *)(a1 + 672), 0);
v10 = *(float *)((*(__int64 (__fastcall **)(_QWORD))(**(_QWORD **)(a1 + 664) + 24LL))(*(_QWORD *)(a1 + 664)) + 344);
v2 = (*(__int64 (__fastcall **)(_QWORD))(**(_QWORD **)(a1 + 664) + 24LL))(*(_QWORD *)(a1 + 664));
CCTextInputNode::getString(v8, *(_QWORD *)(a1 + 672));
if ( ((__int64)v8[0] & 1) != 0 )
{
v4 = v9;
v5 = atof(v9);
*(float *)(v2 + 344) = v5;
operator delete(v4);
}
else
{
v3 = atof((const char *)v8 + 1);
*(float *)(v2 + 344) = v3;
}
v6 = (*(__int64 (__fastcall **)(_QWORD))(**(_QWORD **)(a1 + 664) + 24LL))(*(_QWORD *)(a1 + 664));
if ( v10 != *(float *)(v6 + 344) )
*(_BYTE *)((*(__int64 (__fastcall **)(_QWORD))(**(_QWORD **)(a1 + 664) + 24LL))(*(_QWORD *)(a1 + 664)) + 416) = 1;
(*(void (__fastcall **)(__int64, _QWORD))(*(_QWORD *)a1 + 1072LL))(a1, 0);
return (*(__int64 (__fastcall **)(__int64, __int64))(*(_QWORD *)a1 + 528LL))(a1, 1);
}