//
// AccountReviewPopup::onToggleRow from 0x73aa38 to 0x73aae2 (170 bytes)
//
// 0 xrefs:
//
// This function is hookable on this platform (idp: arm, 32 bit: True, 64 bit: False!
//
// 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:58:29 +0000
//
const char **__fastcall AccountReviewPopup::onToggleRow(AccountReviewPopup *this, cocos2d::CCObject *a2)
{
cocos2d::CCDirector *v3; // r6
cocos2d::CCDirector *v4; // r0
_BOOL4 v5; // r6
int v6; // r0
cocos2d::CCDirector *v7; // r0
int v8; // r3
int v9; // r0
int v10; // r0
int v12; // r5
int v13; // r7
int v14; // r1
int v15[2]; // [sp+0h] [bp-8h] BYREF
v15[0] = (int)this;
v15[1] = (int)a2;
v3 = (AccountReviewPopup *)((char *)this + 944);
v15[0] = (*(int (__fastcall **)(cocos2d::CCObject *))(*(_DWORD *)a2 + 32))(a2);
v4 = (cocos2d::CCDirector *)std::__tree::find((int)this + 940, v15);
v5 = v3 == v4;
v6 = cocos2d::CCDirector::sharedDirector(v4);
v7 = (cocos2d::CCDirector *)(*(int (__fastcall **)(int))(*(_DWORD *)v6 + 96))(v6);
if ( v7
&& (v9 = cocos2d::CCDirector::sharedDirector(v7),
v10 = (*(int (__fastcall **)(int))(*(_DWORD *)v9 + 96))(v9),
v8 = *(unsigned __int8 *)(v10 + 88),
*(_BYTE *)(v10 + 88))
&& (v8 = *((_DWORD *)this + 225), v8 >= 0)
&& (v12 = v15[0], v8 != v15[0]) )
{
v13 = v15[0];
if ( v15[0] < v8 )
v12 = *((_DWORD *)this + 225);
else
v13 = *((_DWORD *)this + 225);
while ( v13 <= v12 )
{
v14 = v13++;
AccountReviewPopup::applySelected((int)this, v14, v5, v8);
}
}
else
{
AccountReviewPopup::applySelected((int)this, v15[0], v5, v8);
}
*((_DWORD *)this + 225) = v15[0];
return AccountReviewPopup::updateSelectedLabel((const char **)this);
}