//
// SFXFolderPickerPopup::pickFolder from 0xc3aa34 to 0xc3ab2c (248 bytes)
//
// 2 xrefs:
// > SFXFolderPickerPopup::onConfirm @ 0xc3ab68
// > ??> @ 0xf1dc8
//
// 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:04:53 +0000
//
__int64 __fastcall SFXFolderPickerPopup::pickFolder(SFXFolderPickerPopup *this, unsigned int a2)
{
CCTextInputNode *v4; // x0
void (__fastcall ***v5)(_QWORD, SFXFolderPickerPopup *, _QWORD, __int64 *); // x0
__int64 v7[2]; // [xsp+40h] [xbp+40h] BYREF
void *v8; // [xsp+50h] [xbp+50h]
v4 = *((CCTextInputNode **)this + 93);
if ( v4 )
{
CCTextInputNode::getString(v4, v7);
}
else
{
v7[0] = 0;
v7[1] = 0;
v8 = nullptr;
std::string::__init(v7, &byte_11B8890, 0);
}
v5 = *((void (__fastcall ****)(_QWORD, SFXFolderPickerPopup *, _QWORD, __int64 *))this + 92);
SFXFolderPickerPopup::s_lastFolderID = a2;
if ( v5 )
(**v5)(v5, this, a2, v7);
SFXFolderPickerPopup::onClose(this, nullptr);
if ( (v7[0] & 1) != 0 )
operator delete(v8);
return _stack_chk_guard;
}