//
// GJBaseGameLayer::updateObjectSection from 0x9a4a50 to 0x9a4b84 (308 bytes)
//
// 4 xrefs:
// > LevelEditorLayer::updateObjectSection @ 0x786f90
// > ??> @ 0x7b478
// > ??> @ 0x1428998
// > ??> @ 0x14757c8
//
// 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:09 +0000
//
float *__fastcall GJBaseGameLayer::updateObjectSection(float *this, GameObject *a2)
{
int v2; // w3
double v3; // d0
int v4; // w19
double v5; // d0
int v6; // w2
float *v8; // x20
int v9; // w0
v2 = *((_DWORD *)a2 + 157);
if ( v2 < 0 )
return this;
v3 = *((double *)a2 + 118);
if ( v3 <= 0.0 )
{
v4 = 0;
LABEL_5:
v5 = *((double *)a2 + 119);
if ( v5 > 0.0 )
goto LABEL_6;
goto LABEL_14;
}
if ( v3 < 10000000.0 )
{
v4 = (int)(v3 * *(this + 3408));
goto LABEL_5;
}
v4 = (int)(float)(*(this + 3408) * 10000000.0);
v5 = *((double *)a2 + 119);
if ( v5 > 0.0 )
{
LABEL_6:
if ( v5 < 10000000.0 )
v6 = (int)(v5 * *(this + 3409));
else
v6 = (int)(float)(*(this + 3409) * 10000000.0);
if ( v4 != v2 )
goto LABEL_9;
LABEL_15:
if ( v6 == *((_DWORD *)a2 + 158) )
return this;
goto LABEL_9;
}
LABEL_14:
v6 = 0;
if ( v4 == v2 )
goto LABEL_15;
LABEL_9:
v8 = this;
GJBaseGameLayer::reorderObjectSection((GJBaseGameLayer *)this, a2);
this = (float *)*((unsigned __int8 *)a2 + 773);
if ( *((_BYTE *)a2 + 773) )
{
v9 = *((_DWORD *)a2 + 157);
if ( v9 > *((_DWORD *)v8 + 3056)
|| v9 < *((_DWORD *)v8 + 3055)
|| (this = (float *)*((unsigned int *)a2 + 158), (int)this > *((_DWORD *)v8 + 3058))
|| (int)this < *((_DWORD *)v8 + 3057) )
{
cocos2d::CCDictionary::setObject(*((cocos2d::CCDictionary **)v8 + 499), a2, *((unsigned int *)a2 + 229));
this = (float *)(&dword_0 + 1);
*((_BYTE *)a2 + 998) = 1;
}
}
return this;
}