//
// sub_1003B0AA8 from 0x1003b0aa8 to 0x1003b0b88 (224 bytes)
//
// 1 xrefs:
// > GameManager::dataLoaded @ 0x1003b97b8
//
// 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:03:53 +0000
//
__int64 __fastcall sub_1003B0AA8(__int64 a1)
{
__int64 v2; // x0
__int64 v3; // x20
__int64 result; // x0
unsigned int v5; // w21
__int64 v6; // x23
__int64 v7; // x0
char *CString; // x23
void *v9[2]; // [xsp+0h] [xbp-60h] BYREF
char v10; // [xsp+17h] [xbp-49h]
void *__p[2]; // [xsp+18h] [xbp-48h] BYREF
char v12; // [xsp+2Fh] [xbp-31h]
v2 = AchievementManager::sharedState();
v3 = sub_10010E3A4(v2);
result = sub_1002E757C(v3);
if ( (_DWORD)result )
{
v5 = 0;
do
{
v6 = sub_1002E75A0(v3, v5);
sub_100009900(__p, "identifier");
v7 = cocos2d::CCDictionary::objectForKey(v6, __p);
CString = (char *)cocos2d::CCString::getCString(v7);
if ( v12 < 0 )
operator delete(__p[0]);
AchievementManager::sharedState();
if ( AchievementManager::isAchievementEarned() )
{
sub_100009900(v9, CString);
GameManager::completedAchievement(a1, (__int64)v9);
if ( v10 < 0 )
operator delete(v9[0]);
}
++v5;
result = sub_1002E757C(v3);
}
while ( v5 < (unsigned int)result );
}
return result;
}