//
// CCMenuItemSpriteExtra::unselected from 0x6915dc to 0x6916e8 (268 bytes)
//
// 5 xrefs:
// > RowPressItem::unselected @ 0x735e90
// > ??> @ 0xb3800
// > ??> @ 0x1416bb0
// > ??> @ 0x1488110
// > ??> @ 0x14e1810
//
// 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:50:35 +0000
//
__int64 __fastcall CCMenuItemSpriteExtra::unselected(__int64 this)
{
__int64 v1; // x19
cocos2d::CCNode *v2; // x20
const cocos2d::CCPoint *v3; // x1
cocos2d::CCEaseInOut *v4; // x0
cocos2d::CCActionInterval *v5; // x1
cocos2d::CCAction *v6; // x19
__int64 v7; // x0
cocos2d::CCScaleTo *v8; // x0
cocos2d::CCEaseBounceOut *v9; // x0
cocos2d::CCActionInterval *v10; // x1
cocos2d::CCAction *v11; // x20
if ( *(_BYTE *)(this + 339) )
{
v1 = this;
cocos2d::CCMenuItemSprite::unselected((cocos2d::CCMenuItemSprite *)this);
if ( *(_BYTE *)(v1 + 409) )
{
v7 = (*(__int64 (__fastcall **)(__int64))(*(_QWORD *)v1 + 1072LL))(v1);
(*(void (__fastcall **)(__int64, void *))(*(_QWORD *)v7 + 960LL))(v7, &unk_111C0F0);
}
this = *(unsigned __int8 *)(v1 + 408);
if ( *(_BYTE *)(v1 + 408) )
{
this = *(unsigned int *)(v1 + 484);
if ( (_DWORD)this )
{
if ( (_DWORD)this == 1 )
{
v2 = (cocos2d::CCNode *)(*(__int64 (__fastcall **)(__int64))(*(_QWORD *)v1 + 1072LL))(v1);
cocos2d::CCNode::stopActionByTag(v2, 0);
v4 = (cocos2d::CCEaseInOut *)cocos2d::CCMoveTo::create(
(cocos2d::CCMoveTo *)(v1 + 488),
*(float *)(v1 + 480),
v3);
v6 = (cocos2d::CCAction *)cocos2d::CCEaseInOut::create(v4, v5, 2.0);
(*(void (__fastcall **)(cocos2d::CCAction *, _QWORD))(*(_QWORD *)v6 + 72LL))(v6, 0);
return cocos2d::CCNode::runAction(v2, v6);
}
}
else
{
v8 = (cocos2d::CCScaleTo *)cocos2d::CCNode::stopActionByTag((cocos2d::CCNode *)v1, 0);
v9 = (cocos2d::CCEaseBounceOut *)cocos2d::CCScaleTo::create(v8, *(float *)(v1 + 480), *(float *)(v1 + 404));
v11 = (cocos2d::CCAction *)cocos2d::CCEaseBounceOut::create(v9, v10);
(*(void (__fastcall **)(cocos2d::CCAction *, _QWORD))(*(_QWORD *)v11 + 72LL))(v11, 0);
return cocos2d::CCNode::runAction((cocos2d::CCNode *)v1, v11);
}
}
}
return this;
}