//
// EditorSoundBrowserLayer::setMode from 0x782604 to 0x78267e (122 bytes)
//
// 4 xrefs:
// > EditorSoundBrowserLayer::init @ 0x7830b6
// > EditorSoundBrowserLayer::onSelectMode @ 0x783536
// > EditorSoundBrowserLayer::setTextPopupClosed @ 0x7836fa
// > EditorSoundBrowserLayer::onConfigCopiedToMyLists @ 0x783752
//
// 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:59:29 +0000
//
_DWORD *__fastcall EditorSoundBrowserLayer::setMode(EditorSoundBrowserLayer *this, int a2)
{
unsigned int v3; // r5
int v4; // r3
int v7; // r0
unsigned int v8; // r1
int v9; // r8
int v10; // r7
void (__fastcall *v11)(int, bool); // r9
int v12; // r0
*((_DWORD *)this + 182) = a2;
v3 = 0;
v4 = *((_DWORD *)this + 198);
*((_DWORD *)this + 183) = 0;
*((_DWORD *)this + 191) = 0;
if ( v4 && *((_DWORD *)this + 199) )
{
while ( v3 < cocos2d::CCArray::count(*((cocos2d::CCArray **)this + 199)) )
{
v7 = cocos2d::CCArray::objectAtIndex(*((cocos2d::CCArray **)this + 198), v3);
v8 = v3++;
v9 = v7;
v10 = cocos2d::CCArray::objectAtIndex(*((cocos2d::CCArray **)this + 199), v8);
v11 = *(void (__fastcall **)(int, bool))(*(_DWORD *)v10 + 172);
v12 = (*(int (__fastcall **)(int))(*(_DWORD *)v9 + 32))(v9);
v11(v10, v12 == a2);
}
}
EditorSoundBrowserLayer::updateFooterButtonVisibility(this);
return EditorSoundBrowserLayer::loadCurrentPage(this, 0, 0);
}