//
// LevelEditorLayer::updateArt from 0x1000ae430 to 0x1000ae56d (317 bytes)
//
// 0 xrefs:
//
// 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:20:19 +0000
//
__int64 __fastcall LevelEditorLayer::updateArt(__int64 a1, __int64 a2)
{
__int64 v2; // rcx
__int64 v3; // rax
__int64 v4; // r14
__int64 result; // rax
__int64 v6; // r15
unsigned int v7; // eax
__int64 v8; // r14
unsigned int v9; // eax
__int64 v10; // rdx
bool v11; // r15
__int64 v12; // rcx
__int64 v13; // r14
v2 = *(_QWORD *)(a1 + 12416);
if ( !v2 || (v3 = 3936, !*(_BYTE *)(v2 + 1078)) )
v3 = 3920;
v4 = *(_QWORD *)(a1 + v3);
result = (*(__int64 (__fastcall **)(_QWORD))(**(_QWORD **)(a1 + 14288) + 512LL))(*(_QWORD *)(a1 + 14288));
if ( result != v4 )
{
cocos2d::CCObject::retain(*(_QWORD *)(a1 + 14288));
(*(void (__fastcall **)(_QWORD, _QWORD))(**(_QWORD **)(a1 + 14288) + 528LL))(*(_QWORD *)(a1 + 14288), 0);
v6 = *(_QWORD *)(a1 + 14288);
v7 = (*(__int64 (__fastcall **)(__int64))(*(_QWORD *)v6 + 104LL))(v6);
a2 = v6;
(*(void (__fastcall **)(__int64, __int64, _QWORD))(*(_QWORD *)v4 + 464LL))(v4, v6, v7);
result = cocos2d::CCObject::release(*(_QWORD *)(a1 + 14288));
}
if ( !*(_DWORD *)(a1 + 1972) )
{
v8 = *(_QWORD *)(a1 + 3904);
v9 = (*(__int64 (__fastcall **)(__int64))(*(_QWORD *)v8 + 496LL))(v8);
v11 = 1;
LOBYTE(v12) = 1;
if ( v9 <= 1 )
LOBYTE(v12) = (*(unsigned int (__fastcall **)(_QWORD, __int64, __int64, __int64))(**(_QWORD **)(a1 + 3928) + 496LL))(
*(_QWORD *)(a1 + 3928),
a2,
v10,
v12) != 0;
(*(void (__fastcall **)(__int64, _QWORD))(*(_QWORD *)v8 + 344LL))(v8, (unsigned __int8)v12);
v13 = *(_QWORD *)(a1 + 3912);
if ( (*(unsigned int (__fastcall **)(__int64))(*(_QWORD *)v13 + 496LL))(v13) <= 1 )
v11 = (*(unsigned int (__fastcall **)(_QWORD))(**(_QWORD **)(a1 + 3936) + 496LL))(*(_QWORD *)(a1 + 3936)) != 0;
(*(void (__fastcall **)(__int64, bool))(*(_QWORD *)v13 + 344LL))(v13, v11);
GJBaseGameLayer::updateGradientLayers(a1);
return GJBaseGameLayer::updateExtraGameLayers(a1);
}
return result;
}