//
// SelectSettingLayer::onSelect from 0x10025b200 to 0x10025b2ad (173 bytes)
//
// 1 xrefs:
// > SelectSettingLayer::init @ 0x10025ad5d
//
// 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:27:28 +0000
//
__int64 __fastcall SelectSettingLayer::onSelect(__int64 a1, __int64 a2)
{
__int64 result; // rax
unsigned int v4; // r14d
__int64 v5; // rcx
_QWORD *v6; // rdi
_WORD *v7; // rsi
_QWORD *v8; // rax
_WORD v9[18]; // [rsp+Ch] [rbp-24h] BYREF
if ( a2 )
*(_DWORD *)(a1 + 672) = (*(__int64 (__fastcall **)(__int64))(*(_QWORD *)a2 + 64LL))(a2);
result = sub_1007FEF90(*(_QWORD *)(a1 + 664));
if ( (_DWORD)result )
{
v4 = 0;
do
{
v8 = (_QWORD *)sub_1007FEFE0(*(_QWORD *)(a1 + 664), v4);
if ( v4 == *(_DWORD *)(a1 + 672) )
{
v5 = *v8;
v6 = v8;
v7 = &unk_100A06A06;
}
else
{
memset(v9, 125, 3);
v5 = *v8;
v6 = v8;
v7 = v9;
}
(*(void (__fastcall **)(_QWORD *, _WORD *))(v5 + 960))(v6, v7);
++v4;
result = sub_1007FEF90(*(_QWORD *)(a1 + 664));
}
while ( v4 < (unsigned int)result );
}
return result;
}