// // LevelBadgePopup::loadLevelsFinished from 0x1005026f4 to 0x1005028d8 (484 bytes) // // 2 xrefs: // > sub_100502B30 @ 0x100502b34 // > @ 0x1009969c0 // // 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:06:54 +0000 // __int64 __fastcall LevelBadgePopup::loadLevelsFinished(__int64 a1, __int64 a2, char *__s) { _QWORD *v6; // x22 __int64 result; // x0 __int64 v8; // x8 __int64 v9; // x0 signed int i; // w21 signed int v11; // w0 _DWORD *v12; // x0 int v13; // w8 __int64 v14; // x20 char *v15; // x1 _QWORD *v16; // x0 void *__p[2]; // [xsp+0h] [xbp-50h] BYREF char v18; // [xsp+17h] [xbp-39h] void *v19[2]; // [xsp+18h] [xbp-38h] BYREF char v20; // [xsp+2Fh] [xbp-21h] if ( !__s ) goto LABEL_9; v6 = (_QWORD *)(a1 + 696); result = strlen(__s); v8 = *(char *)(a1 + 719); if ( v8 < 0 ) { if ( result != *(_QWORD *)(a1 + 704) ) return result; if ( result == -1 ) sub_100050040(); v6 = (_QWORD *)*v6; } else if ( result != v8 ) { return result; } result = memcmp(v6, __s, result); if ( !(_DWORD)result ) { LABEL_9: if ( *(_QWORD *)(GameLevelManager::sharedState() + 1224) == a1 + 664 ) *(_QWORD *)(GameLevelManager::sharedState() + 1224) = 0; v9 = *(_QWORD *)(a1 + 720); if ( v9 ) { LoadingCircle::fadeAndRemove(v9); *(_QWORD *)(a1 + 720) = 0; } for ( i = 0; ; ++i ) { v11 = a2 ? sub_1002E757C(a2) : 0; if ( i >= v11 ) break; v12 = (_DWORD *)sub_1002E75A0(a2, i); if ( *(_BYTE *)(a1 + 676) == 1 ) v13 = v12[86]; else v13 = v12[82] - v12[83]; if ( v13 == *(_DWORD *)(a1 + 672) ) return LevelBadgePopup::buildCell(a1, v12); } v14 = *(_QWORD *)(cocos2d::CCDirector::sharedDirector() + 272); if ( *(_BYTE *)(a1 + 676) ) v15 = "List not found"; else v15 = "Level not found"; sub_100009900(v19, v15); sub_100009900(__p, ""); v16 = TextAlertPopup::create((__int64)v19, 150, (__int64)__p, 0.5, 0.6); (*(void (__fastcall **)(__int64, _QWORD *, __int64))(*(_QWORD *)v14 + 464LL))(v14, v16, 1000); if ( v18 < 0 ) operator delete(__p[0]); if ( v20 < 0 ) operator delete(v19[0]); (*(void (__fastcall **)(__int64, _QWORD))(*(_QWORD *)a1 + 1072LL))(a1, 0); return (*(__int64 (__fastcall **)(__int64, __int64))(*(_QWORD *)a1 + 528LL))(a1, 1); } return result; }
GD Web Decomp Icon

GD Web Decomp

Raw Source