//
// sub_10023760C from 0x10023760c to 0x100237718 (268 bytes)
//
// 2 xrefs:
// > CommunityCreditsPage::init @ 0x100236f6c
// > sub_1002375CC @ 0x100237608
//
// 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:01:19 +0000
//
__int64 __fastcall sub_10023760C(__int64 a1, int a2)
{
__int64 result; // x0
__int64 v5; // x21
int v6; // w22
__int64 v7; // x24
__int64 v8; // x0
__n128 v9; // q0
unsigned int *v10; // x9
__int64 v11; // x8
_QWORD *v12; // x25
unsigned __int64 v13; // x26
result = cocos2d::CCDictionary::count(*(_QWORD *)(a1 + 664));
if ( (a2 & 0x80000000) == 0 && (int)result > a2 && *(_DWORD *)(a1 + 688) != a2 )
{
v5 = 0;
v6 = result - 1;
*(_DWORD *)(a1 + 688) = a2;
v7 = (unsigned int)result;
do
{
v9 = cocos2d::CCDictionary::objectForKey_1(*(_QWORD *)(a1 + 664), v5);
if ( v8 )
{
v10 = *(unsigned int **)(v8 + 56);
v11 = *v10;
if ( (_DWORD)v11 )
{
v12 = *((_QWORD **)v10 + 2);
v13 = (unsigned __int64)&v12[v11 - 1];
do
{
if ( !*v12 )
break;
(*(void (__fastcall **)(_QWORD, bool, __n128))(*(_QWORD *)*v12 + 344LL))(*v12, v5 == a2, v9);
++v12;
}
while ( (unsigned __int64)v12 <= v13 );
}
}
++v5;
}
while ( v5 != v7 );
(*(void (__fastcall **)(_QWORD, bool, __n128))(**(_QWORD **)(a1 + 672) + 344LL))(*(_QWORD *)(a1 + 672), a2 != 0, v9);
return (*(__int64 (__fastcall **)(_QWORD, bool))(**(_QWORD **)(a1 + 680) + 344LL))(*(_QWORD *)(a1 + 680), v6 > a2);
}
return result;
}