//
// LevelBrowserLayer::onExportSelected from 0x100482bc0 to 0x100482c6b (171 bytes)
//
// 1 xrefs:
// > LevelBrowserLayer::init @ 0x1004812e3
//
// 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:30:41 +0000
//
void __fastcall LevelBrowserLayer::onExportSelected(__int64 a1, double a2)
{
__int64 v2; // r14
__int64 v3; // rax
unsigned int *v4; // rax
__int64 *v5; // r15
unsigned __int64 v6; // r12
__int64 v7; // rsi
__int64 v8; // rax
unsigned int v9; // eax
if ( *(_QWORD *)(a1 + 656) )
{
v2 = sub_1007FE900(a1);
v3 = *(_QWORD *)(a1 + 656);
if ( v3 )
{
v4 = *(unsigned int **)(v3 + 56);
if ( *v4 )
{
v5 = *((__int64 **)v4 + 2);
v6 = (unsigned __int64)&v5[*v4 - 1];
do
{
v7 = *v5;
if ( !*v5 )
break;
if ( *(_BYTE *)(v7 + 771) == 1 )
sub_1007FEBF0(v2, v7);
++v5;
}
while ( (unsigned __int64)v5 <= v6 );
}
}
if ( (unsigned int)sub_1007FEF90(v2) )
{
v8 = LocalLevelManager::sharedState(a2);
v9 = sub_1006CE060(v8, v2);
LevelBrowserLayer::showExportResult(a1, v9);
}
}
}