//
// sub_1001C42B4 from 0x1001c42b4 to 0x1001c43c4 (272 bytes)
//
// 3 xrefs:
// > SongOptionsLayer::keyBackClicked @ 0x1001c45c4
// > sub_1001C45C8 @ 0x1001c45cc
// > SongOptionsLayer::init @ 0x1001c3cdc
//
// 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:00:16 +0000
//
__int64 __fastcall sub_1001C42B4(_QWORD **a1)
{
float v2; // s8
__int64 v3; // x20
float v4; // s0
char *v5; // x21
float v6; // s0
char *v8[2]; // [xsp+8h] [xbp-48h] BYREF
char v9; // [xsp+1Fh] [xbp-31h]
(*(void (__fastcall **)(_QWORD *, _QWORD))(*a1[84] + 1160LL))(a1[84], 0);
v2 = *(float *)((*(__int64 (__fastcall **)(_QWORD *))(*a1[83] + 24LL))(a1[83]) + 344);
v3 = (*(__int64 (__fastcall **)(_QWORD *))(*a1[83] + 24LL))(a1[83]);
CCTextInputNode::getString(v8);
if ( v9 < 0 )
{
v5 = v8[0];
v6 = atof(v8[0]);
*(float *)(v3 + 344) = v6;
operator delete(v5);
}
else
{
v4 = atof((const char *)v8);
*(float *)(v3 + 344) = v4;
}
if ( v2 != *(float *)((*(__int64 (__fastcall **)(_QWORD *))(*a1[83] + 24LL))(a1[83]) + 344) )
*(_BYTE *)((*(__int64 (__fastcall **)(_QWORD *))(*a1[83] + 24LL))(a1[83]) + 416) = 1;
((void (__fastcall *)(_QWORD **, _QWORD))(*a1)[134])(a1, 0);
return ((__int64 (__fastcall *)(_QWORD **, __int64))(*a1)[66])(a1, 1);
}