//
// GJBaseGameLayer::updateGuideArt from 0x1403509f0 to 0x140350af7 (263 bytes)
//
// 5 xrefs:
// > GJBaseGameLayer::update @ 0x140341c94
// > GJBaseGameLayer::update @ 0x140341f22
// > ??> @ 0x1408b88e0
// > ??> @ 0x1408b8944
// > ??> @ 0x140920258
//
// 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 11:30:47 +0000
//
__int64 __fastcall GJBaseGameLayer::updateGuideArt(__int64 a1)
{
__m128 v1; // xmm0
__int64 result; // rax
unsigned int *v4; // rdi
__int64 **v5; // rdi
__int64 **i; // rbp
__int64 *v7; // rsi
__int64 v8; // rbx
result = *(_QWORD *)(a1 + 13656);
if ( result )
{
v4 = *(unsigned int **)(result + 56);
result = *v4;
if ( (_DWORD)result )
{
v5 = *((__int64 ***)v4 + 2);
for ( i = &v5[result - 1]; v5 <= i; ++v5 )
{
v7 = *v5;
if ( !*v5 )
break;
result = (*(__int64 (__fastcall **)(__int64 *))(*v7 + 504))(*v5);
if ( *(_BYTE *)(result + 773) )
{
if ( *(_DWORD *)(result + 1036) == 84 && *(_BYTE *)(*(_QWORD *)(a1 + 3512) + 2503LL) )
{
v8 = *v7;
(*(float (__fastcall **)(__int64))(*(_QWORD *)result + 360LL))(result);
}
else
{
v8 = *v7;
*(double *)v1.m128_u64 = (*(double (__fastcall **)(__int64))(*(_QWORD *)result + 360LL))(result);
v1.m128_u64[1] = _mm_xor_ps(v1, (__m128)0x80000000).m128_u64[1];
}
result = (*(__int64 (__fastcall **)(__int64 *))(v8 + 352))(v7);
}
}
}
}
return result;
}