//
// GameToolbox::highestChildZ from 0x69bb20 to 0x69bbe8 (200 bytes)
//
// 6 xrefs:
// > FLAlertLayer::show @ 0x69933c
// > FLAlertLayer::show @ 0x699358
// > FLAlertLayer::show @ 0x69936c
// > FLAlertLayer::show @ 0x699388
// > CCTextInputNode::openEditMenu @ 0x6b8ad8
// > ??> @ 0x7c5a0
//
// 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 12:50:40 +0000
//
__int64 __fastcall GameToolbox::highestChildZ(__int64 a1)
{
__int64 v1; // x0
unsigned int *v2; // x1
int v3; // w22
_QWORD *v5; // x19
__int64 v6; // x0
char *v7; // x21
__int64 v8; // x20
if ( a1
&& (v1 = (*(__int64 (__fastcall **)(__int64))(*(_QWORD *)a1 + 488LL))(a1)) != 0
&& (v2 = *(unsigned int **)(v1 + 56), *v2)
&& (v5 = *((_QWORD **)v2 + 2), v6 = 8LL * *v2 - 8, v7 = (char *)v5 + v6, v5 <= (_QWORD *)((char *)v5 + v6))
&& (v8 = *v5, v3 = 0, *v5) )
{
if ( (*(int (__fastcall **)(_QWORD))(*(_QWORD *)v8 + 104LL))(*v5) > 0 )
goto LABEL_12;
while ( v7 >= (char *)++v5 )
{
v8 = *v5;
if ( !*v5 )
break;
if ( (*(int (__fastcall **)(_QWORD))(*(_QWORD *)v8 + 104LL))(*v5) > v3 )
LABEL_12:
v3 = (*(__int64 (__fastcall **)(__int64))(*(_QWORD *)v8 + 104LL))(v8);
}
}
else
{
return 0;
}
return (unsigned int)v3;
}