//
// LevelBrowserLayer::recallCell from 0x10049b268 to 0x10049b2cc (100 bytes)
//
// 1 xrefs:
// > LevelBrowserLayer::FLAlert_Clicked @ 0x10049aefc
//
// 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:05:59 +0000
//
__int64 __fastcall LevelBrowserLayer::recallCell(__int64 a1, int a2)
{
__int64 v2; // x8
__int64 v3; // x8
__int64 v4; // x8
__int64 v5; // x8
unsigned int *v6; // x8
__int64 v7; // x9
__int64 *v8; // x8
unsigned __int64 v9; // x9
__int64 result; // x0
v2 = *(_QWORD *)(a1 + 608);
if ( !v2 )
return 0;
v3 = *(_QWORD *)(v2 + 544);
if ( !v3 )
return 0;
v4 = *(_QWORD *)(v3 + 424);
if ( !v4 )
return 0;
v5 = *(_QWORD *)(v4 + 592);
if ( !v5 )
return 0;
v6 = *(unsigned int **)(v5 + 56);
v7 = *v6;
if ( !(_DWORD)v7 )
return 0;
v8 = *((__int64 **)v6 + 2);
v9 = (unsigned __int64)&v8[v7 - 1];
while ( 1 )
{
result = *v8;
if ( !*v8 || *(_DWORD *)(*(_QWORD *)(result + 560) + 1292LL) == a2 )
break;
if ( (unsigned __int64)++v8 > v9 )
return 0;
}
return result;
}