//
// SFXBrowser::onMoveToFolder from 0xb8ed68 to 0xb8ee74 (268 bytes)
//
// 3 xrefs:
// > ??> @ 0xdf1e0
// > sub_B947C8 @ 0xb95ff8
// > ??> @ 0x1546b20
//
// 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 13:02:36 +0000
//
__int64 __fastcall SFXBrowser::onMoveToFolder(SFXBrowser *this, cocos2d::CCObject *a2)
{
SFXSearchResult *v3; // x0
__int64 ActiveFolder; // x0
__int64 v6; // x4
__int64 v7; // x20
__int64 v8; // [xsp+38h] [xbp+38h]
__int64 v9[2]; // [xsp+40h] [xbp+40h] BYREF
void *v10; // [xsp+50h] [xbp+50h]
v3 = *((SFXSearchResult **)this + 89);
if ( v3 && *((_DWORD *)v3 + 35) == 4 && *((_QWORD *)this + 127) )
{
*((_DWORD *)this + 257) = 0;
ActiveFolder = SFXSearchResult::getActiveFolder(v3);
v6 = 0;
if ( ActiveFolder )
v6 = *(unsigned int *)(SFXSearchResult::getActiveFolder(*((SFXSearchResult **)this + 89)) + 76);
v8 = v6;
v9[0] = 0;
v9[1] = 0;
v10 = nullptr;
std::string::__init(v9, &byte_11B8890, 0);
v7 = SFXFolderPickerPopup::create(1, v9, (char *)this + 1000, (char *)this + 704, v8);
if ( (v9[0] & 1) != 0 )
operator delete(v10);
(*(void (__fastcall **)(__int64))(*(_QWORD *)v7 + 1312LL))(v7);
}
return _stack_chk_guard;
}