//
// sub_10005ED48 from 0x10005ed48 to 0x10005ee2c (228 bytes)
//
// 3 xrefs:
// > MoreSearchLayer::keyBackClicked @ 0x10005f8d8
// > sub_10005F8DC @ 0x10005f8e0
// > MoreSearchLayer::init @ 0x10005de58
//
// 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 10:57:49 +0000
//
__int64 __fastcall sub_10005ED48(_QWORD **a1)
{
__int64 v2; // x0
__int64 v3; // x20
char *v4; // x21
__int64 v5; // x0
__int64 BoolForKey; // x0
int v7; // w21
__int64 v8; // x0
__int64 v9; // x0
__int64 v10; // x0
char *v12[2]; // [xsp+8h] [xbp-38h] BYREF
char v13; // [xsp+1Fh] [xbp-21h]
(*(void (__fastcall **)(_QWORD *, _QWORD))(*a1[88] + 1160LL))(a1[88], 0);
CCTextInputNode::getString(v12);
if ( v13 < 0 )
{
v4 = v12[0];
v3 = atoi(v12[0]);
operator delete(v4);
}
else
{
v2 = atoi((const char *)v12);
v3 = v2;
}
v5 = GameLevelManager::sharedState(v2);
BoolForKey = GameLevelManager::getBoolForKey(v5, "customsong_filter");
v7 = BoolForKey;
v8 = GameLevelManager::sharedState(BoolForKey);
v9 = GameLevelManager::getBoolForKey(v8, "enable_songFilter");
if ( (_DWORD)v9 && v7 )
{
v10 = GameLevelManager::sharedState(v9);
GameLevelManager::setIntForKey(v10, v3, "song_filter");
}
((void (__fastcall *)(_QWORD **, _QWORD))(*a1)[134])(a1, 0);
return ((__int64 (__fastcall *)(_QWORD **, __int64))(*a1)[66])(a1, 1);
}