//
// sub_1001F3764 from 0x1001f3764 to 0x1001f3948 (484 bytes)
//
// 1 xrefs:
// > SFXBrowser::init @ 0x1001f253c
//
// 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 11:00:39 +0000
//
__int64 __fastcall sub_1001F3764(__int64 result)
{
__int64 v1; // x19
__int64 v2; // x20
__int64 v3; // x0
const char *v4; // x1
__int64 v5; // x0
__int64 v6; // x8
unsigned int *v7; // x9
__int64 v8; // x8
_QWORD *v9; // x20
unsigned __int64 v10; // x21
__int64 v11; // x20
__int64 v12; // x8
char *v13; // x1
void (*v14)(void); // x8
__int64 v15; // x20
_DWORD *v16; // x0
void *v17[2]; // [xsp+0h] [xbp-50h] BYREF
char v18; // [xsp+17h] [xbp-39h]
void *__p[2]; // [xsp+18h] [xbp-38h] BYREF
char v20; // [xsp+2Fh] [xbp-21h]
if ( *(_QWORD *)(result + 712) )
{
v1 = result;
*(_BYTE *)(result + 872) ^= 1u;
v2 = (*(__int64 (__fastcall **)(_QWORD))(**(_QWORD **)(result + 832) + 1072LL))(*(_QWORD *)(result + 832));
v3 = cocos2d::CCSpriteFrameCache::sharedSpriteFrameCache(v2);
if ( *(_BYTE *)(v1 + 872) )
v4 = "gj_findBtnOff_001.png";
else
v4 = "gj_findBtn_001.png";
v5 = cocos2d::CCSpriteFrameCache::spriteFrameByName(v3, v4);
(*(void (__fastcall **)(__int64, __int64))(*(_QWORD *)v2 + 1160LL))(v2, v5);
(*(void (__fastcall **)(_QWORD, _QWORD))(**(_QWORD **)(v1 + 848) + 344LL))(
*(_QWORD *)(v1 + 848),
*(unsigned __int8 *)(v1 + 872));
(*(void (__fastcall **)(_QWORD, _QWORD))(**(_QWORD **)(v1 + 840) + 344LL))(
*(_QWORD *)(v1 + 840),
*(unsigned __int8 *)(v1 + 872));
(*(void (__fastcall **)(_QWORD, _QWORD))(**(_QWORD **)(v1 + 840) + 1000LL))(
*(_QWORD *)(v1 + 840),
*(unsigned __int8 *)(v1 + 872));
v6 = *(_QWORD *)(v1 + 864);
if ( v6 )
{
v7 = *(unsigned int **)(v6 + 56);
v8 = *v7;
if ( (_DWORD)v8 )
{
v9 = *((_QWORD **)v7 + 2);
v10 = (unsigned __int64)&v9[v8 - 1];
do
{
if ( !*v9 )
break;
(*(void (__fastcall **)(_QWORD, _QWORD))(*(_QWORD *)*v9 + 344LL))(*v9, *(unsigned __int8 *)(v1 + 872));
++v9;
}
while ( (unsigned __int64)v9 <= v10 );
}
}
v11 = *(_QWORD *)(v1 + 840);
if ( *(_BYTE *)(v1 + 872) == 1 )
{
v12 = *(_QWORD *)(v1 + 712);
v13 = (char *)(v12 + 104);
if ( *(char *)(v12 + 127) < 0 )
v13 = *(char **)v13;
sub_100009900(__p, v13);
CCTextInputNode::setString(v11, __p);
if ( v20 < 0 )
operator delete(__p[0]);
v14 = *(void (**)(void))(**(_QWORD **)(v1 + 840) + 1160LL);
}
else
{
(*(void (__fastcall **)(_QWORD, _QWORD))(*(_QWORD *)v11 + 1160LL))(*(_QWORD *)(v1 + 840), 0);
v15 = *(_QWORD *)(v1 + 840);
sub_100009900(v17, "");
CCTextInputNode::setString(v15, v17);
if ( v18 < 0 )
operator delete(v17[0]);
std::string::assign((std::string *)(*(_QWORD *)(v1 + 712) + 104LL), "");
v16 = *(_DWORD **)(v1 + 712);
v16[24] = 0;
v14 = *(void (**)(void))(*(_QWORD *)v16 + 80LL);
}
v14();
return sub_1001F50BC(v1);
}
return result;
}