//
// MapSelectLayer::update from 0xac383c to 0xac39f4 (440 bytes)
//
// 2 xrefs:
// > ??> @ 0xfc2f8
// > ??> @ 0x14aad98
//
// 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 13:01:06 +0000
//
__int64 __fastcall MapSelectLayer::update(MapSelectLayer *this, float a2)
{
__int64 v3; // x25
float v4; // s8
void (__fastcall *v5)(__int64, _BYTE *); // x26
__int64 v6; // x27
__int64 v8; // x21
void (__fastcall *v9)(__int64, __int64); // x22
__int64 v10; // x0
__int64 v11; // x21
void (__fastcall *v12)(__int64); // x22
_BYTE v13[8]; // [xsp+60h] [xbp+60h] BYREF
__int64 v14; // [xsp+68h] [xbp+68h] BYREF
_BYTE v15[8]; // [xsp+70h] [xbp+70h] BYREF
if ( !*((_BYTE *)this + 435) )
{
if ( *((_BYTE *)this + 448) )
{
v8 = *((_QWORD *)this + 51);
v9 = *(void (__fastcall **)(__int64, __int64))(*(_QWORD *)v8 + 184LL);
v10 = (*(__int64 (__fastcall **)(_QWORD, float))(**(_QWORD **)(*((_QWORD *)this + 60) + 3920LL) + 192LL))(
*(_QWORD *)(*((_QWORD *)this + 60) + 3920LL),
a2);
v9(v8, v10);
v11 = *((_QWORD *)this + 51);
v12 = *(void (__fastcall **)(__int64))(*(_QWORD *)v11 + 160LL);
(*(void (__fastcall **)(_QWORD))(**(_QWORD **)(*((_QWORD *)this + 60) + 3920LL) + 168LL))(*(_QWORD *)(*((_QWORD *)this + 60) + 3920LL));
v12(v11);
GJBigSprite::updateSpriteVisibility(*((GJBigSprite **)this + 51));
}
else
{
v3 = *((_QWORD *)this + 51);
v4 = a2 * 60.0;
v5 = *(void (__fastcall **)(__int64, _BYTE *))(*(_QWORD *)v3 + 184LL);
v6 = (*(__int64 (__fastcall **)(__int64))(*(_QWORD *)v3 + 192LL))(v3);
cocos2d::CCPoint::operator*((char *)this + 460, v4);
cocos2d::CCPoint::operator+(&v14, v6);
MapSelectLayer::getConstrainedMapPos((__int64)this, (float *)&v14, (cocos2d::CCPoint *)v13);
v5(v3, v13);
GJBigSprite::updateSpriteVisibility(*((GJBigSprite **)this + 51));
cocos2d::CCPoint::operator*((char *)this + 460, 1.0 - (float)(v4 * 0.05));
cocos2d::CCPoint::operator=((char *)this + 460, v15);
if ( fabsf(*((float *)this + 115)) <= 0.1 )
*((_DWORD *)this + 115) = 0;
if ( fabsf(*((float *)this + 116)) <= 0.1 )
*((_DWORD *)this + 116) = 0;
}
}
return _stack_chk_guard;
}