// // sub_82052C from 0x82052c to 0x8207e8 (700 bytes) // // 3 xrefs: // > GJRateLevelLayer::setupRateInfo @ 0x821cc0 // > GJRateLevelLayer::setupRateInfo @ 0x821cf8 // > GJRateLevelLayer::setupRateInfo @ 0x821fec // // 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 // cocos2d::CCArray *__fastcall sub_82052C(_QWORD *a1, char *a2) { unsigned __int64 v4; // x19 cocos2d::CCArray *v5; // x28 size_t v6; // x0 __int64 v7; // x20 __int64 v8; // x3 __int64 v9; // x26 const std::string *v10; // x1 cocos2d::CCObject *v11; // x0 void *v12; // x0 size_t v13; // x0 char *v14; // x0 unsigned int *v15; // x1 int v16; // w2 unsigned int *v17; // x1 int v18; // w2 char *v19; // x0 unsigned int *v21; // x19 int v22; // w1 char *v23; // [xsp+88h] [xbp+88h] BYREF __int64 v24; // [xsp+90h] [xbp+90h] BYREF v4 = 0; v5 = (cocos2d::CCArray *)cocos2d::CCArray::create(_stack_chk_guard); v6 = strlen(a2); v7 = sub_D168E0((int)a1, a2, 0, v6); v8 = v7; v9 = *(_QWORD *)(*a1 - 24LL); while ( 1 ) { sub_D14F84(&v23, a1, v4, v8); if ( v4 != v9 || *((_QWORD *)v23 - 3) ) { sub_D153B8((int)&v24, v23); v11 = (cocos2d::CCObject *)cocos2d::CCString::create((cocos2d::CCString *)&v24, v10); cocos2d::CCArray::addObject(v5, v11); v12 = (void *)(v24 - 24); if ( (__int64 *)(v24 - 24) != &qword_124B6B0 ) { if ( &pthread_create ) { v17 = (unsigned int *)(v24 - 8); do v18 = __ldaxr(v17); while ( __stlxr(v18 - 1, v17) ); } else { v18 = *(_DWORD *)(v24 - 8); *(_DWORD *)(v24 - 8) = v18 - 1; } if ( v18 <= 0 ) break; } } if ( v7 == -1 ) goto LABEL_19; LABEL_7: v4 = v7 + 1; v13 = strlen(a2); v7 = sub_D168E0((int)a1, a2, (int)v7 + 1, v13); v14 = v23 - 24; if ( v23 - 24 != (char *)&qword_124B6B0 ) { if ( &pthread_create ) { v15 = (unsigned int *)(v23 - 8); do v16 = __ldaxr(v15); while ( __stlxr(v16 - 1, v15) ); } else { v16 = *((_DWORD *)v23 - 2); *((_DWORD *)v23 - 2) = v16 - 1; } if ( v16 <= 0 ) operator delete(v14); } v8 = v7 - v4; if ( v4 > *(_QWORD *)(*a1 - 24LL) ) sub_D13C5C( "%s: __pos (which is %zu) > this->size() (which is %zu)", "basic_string::substr", v4, *(_QWORD *)(*a1 - 24LL)); } operator delete(v12); if ( v7 != -1 ) goto LABEL_7; LABEL_19: v19 = v23 - 24; if ( v23 - 24 != (char *)&qword_124B6B0 ) { if ( &pthread_create ) { v21 = (unsigned int *)(v23 - 8); do v22 = __ldaxr(v21); while ( __stlxr(v22 - 1, v21) ); } else { v22 = *((_DWORD *)v23 - 2); *((_DWORD *)v23 - 2) = v22 - 1; } if ( v22 <= 0 ) operator delete(v19); } return v5; }
GD Web Decomp Icon

GD Web Decomp

Raw Source