//
// GJAccountSettingsLayer::onFriendRequests from 0x140293d90 to 0x140293e23 (147 bytes)
//
// 5 xrefs:
// > GJAccountSettingsLayer::init @ 0x140292c03
// > GJAccountSettingsLayer::init @ 0x140292ca2
// > ??> @ 0x14068907c
// > ??> @ 0x1406890d4
// > ??> @ 0x1406d1a60
//
// This function is hookable on this platform!
//
// Using BromaIDA 8.0.0 @ https://github.com/Stazzical/BromaIDA
// Using bindings at commit ba9f177b at Thu Jul 16 22:52:06 2026 from https://github.com/geode-sdk/bindings
//
void GJAccountSettingsLayer::onFriendRequests(GJAccountSettingsLayer *a1, cocos2d::CCObject *a2)
{
cocos2d::CCArray *m_friendRequestSettings; // rax
cocos2d::ccArray *data; // rdi
__int64 num; // rax
CCMenuItemToggler **arr; // rdi
CCMenuItemToggler **i; // rbp
CCMenuItemToggler *v8; // rbx
int v9; // eax
if ( a2 )
a1->m_friendStatus = a2->getTag(a2);
m_friendRequestSettings = a1->m_friendRequestSettings;
if ( m_friendRequestSettings )
{
data = m_friendRequestSettings->data;
num = data->num;
if ( (_DWORD)num )
{
arr = (CCMenuItemToggler **)data->arr;
for ( i = &arr[num - 1]; arr <= i; ++arr )
{
v8 = *arr;
if ( !*arr )
break;
v9 = v8->getTag(*arr);
CCMenuItemToggler::toggle(v8, v9 != a1->m_friendStatus);
}
}
}
}