// // AccountLayer::syncAccountFailed from 0x84c82c to 0x84ca40 (532 bytes) // // 3 xrefs: // > `non-virtual thunk to'AccountLayer::syncAccountFailed @ 0x84ca44 // > @ 0x7e048 // > @ 0x118ddc0 // // 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 AccountLayer::syncAccountFailed(AccountLayer *a1, BackupAccountError a2, int a3) { TextArea *v4; // x22 char *v5; // x2 char *v6; // x0 unsigned int *v7; // x2 int v8; // w1 TextArea *m_textArea; // x22 cocos2d::CCString *v10; // x0 char *CString; // x0 unsigned int *v12; // x2 unsigned int *v13; // x2 char *v16; // [xsp+50h] [xbp+50h] BYREF AccountLayer::hideLoadingUI(a1); if ( a2 == BackupOrSyncFailed ) { m_textArea = a1->m_textArea; v10 = (cocos2d::CCString *)cocos2d::CCString::createWithFormat( (cocos2d::CCString *)"Sync failed. Error code: %i", (const char *)(unsigned int)a3); CString = (char *)cocos2d::CCString::getCString(v10); sub_D153B8((int)&v16, CString); TextArea::setString((__int64)m_textArea, (const void **)&v16); v5 = v16; v6 = v16 - 24; if ( v16 - 24 == (char *)&qword_124B6B0 ) goto LABEL_4; if ( !&pthread_create ) goto LABEL_20; v12 = (unsigned int *)(v16 - 8); do v8 = __ldaxr(v12); while ( __stlxr(v8 - 1, v12) ); } else { v4 = a1->m_textArea; if ( a2 != LoginFailed ) { sub_D153B8((int)&v16, "Sync failed. Please try again later."); TextArea::setString((__int64)v4, (const void **)&v16); v5 = v16; v6 = v16 - 24; if ( v16 - 24 == (char *)&qword_124B6B0 ) goto LABEL_4; if ( &pthread_create ) { v13 = (unsigned int *)(v16 - 8); do v8 = __ldaxr(v13); while ( __stlxr(v8 - 1, v13) ); goto LABEL_14; } LABEL_20: v8 = *((_DWORD *)v5 - 2); *((_DWORD *)v5 - 2) = v8 - 1; goto LABEL_14; } sub_D153B8((int)&v16, "Login failed. Please login to verify your account."); TextArea::setString((__int64)v4, (const void **)&v16); v5 = v16; v6 = v16 - 24; if ( v16 - 24 == (char *)&qword_124B6B0 ) goto LABEL_4; if ( !&pthread_create ) goto LABEL_20; v7 = (unsigned int *)(v16 - 8); do v8 = __ldaxr(v7); while ( __stlxr(v8 - 1, v7) ); } LABEL_14: if ( v8 <= 0 ) operator delete(v6); LABEL_4: LOBYTE(v16) = -1; *(_WORD *)((char *)&v16 + 1) = 75; TextArea::colorAllCharactersTo(a1->m_textArea, (cocos2d::ccColor3B)v16); }