//
// SongOptionsLayer::onClose from 0x57b8d4 to 0x57b992 (190 bytes)
//
// 1 xrefs:
// > SongOptionsLayer::keyBackClicked @ 0x57b99a
//
// This function is hookable on this platform (idp: arm, 32 bit: True, 64 bit: False!
//
// 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:52:49 +0000
//
int __fastcall SongOptionsLayer::onClose(SongOptionsLayer *this, cocos2d::CCObject *a2)
{
float v3; // s16
int v4; // r7
char *v5; // r0
float v6; // s15
char v8; // [sp+0h] [bp-14h] BYREF
char v9; // [sp+1h] [bp-13h] BYREF
char *v10; // [sp+8h] [bp-Ch]
(*(void (__fastcall **)(_DWORD, _DWORD))(**((_DWORD **)this + 131) + 580))(*((_DWORD *)this + 131), 0);
v3 = *(float *)((*(int (__fastcall **)(_DWORD))(**((_DWORD **)this + 130) + 12))(*((_DWORD *)this + 130)) + 284);
v4 = (*(int (__fastcall **)(_DWORD))(**((_DWORD **)this + 130) + 12))(*((_DWORD *)this + 130));
CCTextInputNode::getString((CCTextInputNode *)&v8, *((_DWORD *)this + 131));
if ( (v8 & 1) != 0 )
v5 = v10;
else
v5 = &v9;
v6 = atof(v5);
*(float *)(v4 + 284) = v6;
std::string::~string((int)&v8);
if ( v3 != *(float *)((*(int (__fastcall **)(_DWORD))(**((_DWORD **)this + 130) + 12))(*((_DWORD *)this + 130)) + 284) )
*(_BYTE *)((*(int (__fastcall **)(_DWORD))(**((_DWORD **)this + 130) + 12))(*((_DWORD *)this + 130)) + 336) = 1;
(*(void (__fastcall **)(SongOptionsLayer *, _DWORD))(*(_DWORD *)this + 536))(this, 0);
return (*(int (__fastcall **)(SongOptionsLayer *, int))(*(_DWORD *)this + 264))(this, 1);
}