//
// sub_75D2A8 from 0x75d2a8 to 0x75d340 (152 bytes)
//
// 11 xrefs:
// > GJGameLevel::scoreStringToVector @ 0x3d674e
// > GJGameLevel::scoreStringToVector @ 0x3d675c
// > formatTags @ 0x42daa6
// > formatTags @ 0x42dace
// > cocos2d::CCTMXMapInfo::startElement @ 0x5f9dfe
// > cocos2d::CCTMXMapInfo::startElement @ 0x5f9e2e
// > DS_Dictionary::setVec2ForKey @ 0x5fda4e
// > DS_Dictionary::setRectForKey @ 0x5fdc28
// > DS_Dictionary::setVec2ArrayForKey @ 0x5fde3e
// > DS_Dictionary::setRectArrayForKey @ 0x5fe082
// > sub_75D358 @ 0x75d35c
//
// This function is hookable on this platform!
//
// Using BromaIDA 8.0.0 @ https://github.com/Stazzical/BromaIDA
// Using bindings at commit ba9f177b at Thu Jul 16 22:52:06 2026 from https://github.com/geode-sdk/bindings
//
int __fastcall sub_75D2A8(int a1)
{
int v2; // r5
void *v3; // r0
unsigned int *v5; // r5
int v6; // r3
v2 = *(_DWORD *)(a1 + 48);
v3 = (void *)(v2 - 12);
*(_DWORD *)a1 = &off_A2E084;
*(_DWORD *)(a1 + 52) = &off_A2E0AC;
*(_DWORD *)(a1 + 8) = &off_A2E098;
*(_DWORD *)(a1 + 12) = &off_AAFF80;
if ( (int *)(v2 - 12) != &dword_ACDD9C )
{
if ( &pthread_create )
{
v5 = (unsigned int *)(v2 - 4);
__dmb(0xFu);
do
v6 = __ldrex(v5);
while ( __strex(v6 - 1, v5) );
__dmb(0xFu);
}
else
{
v6 = *(_DWORD *)(v2 - 4);
*(_DWORD *)(v2 - 4) = v6 - 1;
}
if ( v6 <= 0 )
operator delete(v3);
}
*(_DWORD *)(a1 + 12) = &off_A2E198;
sub_756898((unsigned int **)(a1 + 40));
*(_DWORD *)(a1 + 52) = &off_A2DC70;
sub_7453C8((_DWORD *)(a1 + 52));
return a1;
}