//
// GJBaseGameLayer::updateQueuedLabels from 0x9a8238 to 0x9a82ec (180 bytes)
//
// 2 xrefs:
// > GJBaseGameLayer::update @ 0x9ee104
// > ??> @ 0x475d8
//
// 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:58:11 +0000
//
__int64 __fastcall GJBaseGameLayer::updateQueuedLabels(__int64 this)
{
__int64 v1; // x22
_QWORD *i; // x21
__int64 *v3; // x20
__int64 *j; // x19
_QWORD *k; // x21
__int64 *v6; // x20
__int64 *m; // x19
v1 = this;
for ( i = *(_QWORD **)(this + 4016); i; i = (_QWORD *)*i )
{
v3 = (__int64 *)i[4];
for ( j = (__int64 *)i[3]; v3 != j; this = LabelGameObject::updateLabelIfDirty((LabelGameObject *)this) )
{
while ( 1 )
{
this = *j++;
if ( *(_BYTE *)(this + 773) )
break;
if ( v3 == j )
goto LABEL_7;
}
}
LABEL_7:
;
}
for ( k = *(_QWORD **)(v1 + 4056); k; k = (_QWORD *)*k )
{
v6 = (__int64 *)k[4];
for ( m = (__int64 *)k[3]; v6 != m; this = LabelGameObject::updateLabelIfDirty((LabelGameObject *)this) )
{
while ( 1 )
{
this = *m++;
if ( *(_BYTE *)(this + 773) )
break;
if ( v6 == m )
goto LABEL_14;
}
}
LABEL_14:
;
}
return this;
}