//
// GJAccountSettingsLayer::onMessageSetting from 0x140293cf0 to 0x140293d83 (147 bytes)
//
// 6 xrefs:
// > GJAccountSettingsLayer::init @ 0x140292876
// > GJAccountSettingsLayer::init @ 0x140292931
// > GJAccountSettingsLayer::init @ 0x1402929dd
// > ??> @ 0x140689010
// > ??> @ 0x140689068
// > ??> @ 0x1406d1a0c
//
// 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::onMessageSetting(GJAccountSettingsLayer *a1, cocos2d::CCObject *a2)
{
cocos2d::CCArray *m_messageSettings; // rax
cocos2d::ccArray *data; // rdi
__int64 num; // rax
CCMenuItemToggler **arr; // rdi
CCMenuItemToggler **i; // rbp
CCMenuItemToggler *v8; // rbx
int v9; // eax
if ( a2 )
a1->m_messageStatus = a2->getTag(a2);
m_messageSettings = a1->m_messageSettings;
if ( m_messageSettings )
{
data = m_messageSettings->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_messageStatus);
}
}
}
}