// // GauntletSelectLayer::loadLevelsFinished from 0x91d07c to 0x91d2a8 (556 bytes) // // 3 xrefs: // > `non-virtual thunk to'GauntletSelectLayer::loadLevelsFinished @ 0x91d2ac // > @ 0x35868 // > @ 0x11ac498 // // 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 // void GauntletSelectLayer::loadLevelsFinished(GauntletSelectLayer *a1, cocos2d::CCArray *a2, const char *a3, int a4) { _DWORD *v5; // x22 _DWORD *v6; // x25 unsigned __int64 v7; // x20 unsigned __int64 v8; // x26 size_t v9; // x2 int v10; // w19 __int64 v11; // x20 __int64 *v12; // x0 char *v13; // x0 unsigned int *v14; // x25 int v15; // w1 unsigned int *v16; // x22 int v17; // w1 void *v18; // [xsp+68h] [xbp+68h] BYREF void *v19; // [xsp+70h] [xbp+70h] BYREF sub_D153B8((int)&v18, (char *)a3); sub_D153B8((int)&v19, "get_gauntlets"); v5 = v18; v6 = v19; v7 = *((_QWORD *)v18 - 3); v8 = *((_QWORD *)v19 - 3); if ( v8 > v7 ) v9 = *((_QWORD *)v18 - 3); else v9 = *((_QWORD *)v19 - 3); v10 = memcmp(v18, v19, v9); if ( v10 || (v10 = 0x7FFFFFFF, v11 = v7 - v8, v11 > 0x7FFFFFFF) ) { v12 = (__int64 *)(v6 - 6); if ( v6 - 6 == (_DWORD *)&qword_124B6B0 ) goto LABEL_7; } else { v12 = (__int64 *)(v6 - 6); if ( v11 >= (__int64)0xFFFFFFFF80000000LL ) v10 = v11; else v10 = 0x80000000; if ( v12 == &qword_124B6B0 ) { LABEL_7: v13 = (char *)(v5 - 6); if ( v5 - 6 == (_DWORD *)&qword_124B6B0 ) goto LABEL_8; goto LABEL_21; } } if ( &pthread_create ) { v14 = v6 - 2; do v15 = __ldaxr(v14); while ( __stlxr(v15 - 1, v14) ); } else { v15 = *(v6 - 2); *(v6 - 2) = v15 - 1; } if ( v15 <= 0 ) operator delete(v12); v5 = v18; v13 = (char *)v18 - 24; if ( (char *)v18 - 24 != (char *)&qword_124B6B0 ) { LABEL_21: if ( &pthread_create ) { v16 = v5 - 2; do v17 = __ldaxr(v16); while ( __stlxr(v17 - 1, v16) ); } else { v17 = *(v5 - 2); *(v5 - 2) = v17 - 1; } if ( v17 <= 0 ) operator delete(v13); } LABEL_8: if ( !v10 ) { a1->m_loadingCircle->setVisible(a1->m_loadingCircle, 0); a1->m_tryAgainText->setVisible(a1->m_tryAgainText, 0); GauntletSelectLayer::setupGauntlets(a1); GauntletSelectLayer::updateArrows(a1); a1->m_refreshButton->setVisible(a1->m_refreshButton, 1); } }
GD Web Decomp Icon

GD Web Decomp

Raw Source