// // LevelPickerPopup::refreshUseID from 0x74ce00 to 0x74cf90 (400 bytes) // // 3 xrefs: // > LevelPickerPopup::onToggleKind @ 0x75aa8e // > LevelPickerPopup::onOnlineMode @ 0x75ae1a // > LevelPickerPopup::textChanged @ 0x75af04 // // This function is hookable on this platform (idp: arm, 32 bit: True, 64 bit: False! // // 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:58:48 +0000 // int __fastcall LevelPickerPopup::refreshUseID(LevelPickerPopup *this) { char *v2; // r1 int v3; // r3 unsigned __int8 *v4; // r3 char *v5; // r0 char *v6; // r2 int v7; // r4 unsigned int v8; // r2 char *v9; // r1 int v10; // r3 char *v11; // r3 int v12; // t1 int v13; // r1 int v14; // r4 int v15; // r3 char *v16; // r10 unsigned __int8 *v17; // r11 char *v18; // r8 const char *v19; // r3 char *v20; // r9 void *v21; // r0 char *v22; // r0 char *v23; // r0 int v24; // r0 int v25; // r4 char *v27; // r1 cocos2d::CCString *v28; // r0 char *CString; // r0 const char *v30; // [sp+4h] [bp-18h] int v31; // [sp+8h] [bp-14h] BYREF int v32; // [sp+Ch] [bp-10h] char *v33; // [sp+10h] [bp-Ch] std::string::basic_string(&v31, (int)this + 648); if ( (v31 & 1) != 0 ) { v2 = v33; v3 = v32; } else { v3 = (int)(unsigned __int8)v31 >> 1; v2 = (char *)&v31 + 1; } if ( v3 ) { v4 = (unsigned __int8 *)&v2[v3]; v5 = v2; while ( 1 ) { v6 = v5; if ( v5 == (char *)v4 ) break; v7 = (unsigned __int8)*v5++; if ( v7 != 32 ) { v8 = v6 - v2; goto LABEL_9; } } } v8 = -1; LABEL_9: std::string::erase((unsigned __int8 *)&v31, 0, v8); if ( (v31 & 1) != 0 ) { v9 = v33; v10 = v32; } else { v10 = (int)(unsigned __int8)v31 >> 1; v9 = (char *)&v31 + 1; } v11 = &v9[v10]; while ( v11 != v9 ) { v12 = (unsigned __int8)*--v11; if ( v12 != 32 ) { v13 = v11 - v9; goto LABEL_16; } } v13 = -1; LABEL_16: std::string::erase((unsigned __int8 *)&v31, v13 + 1, 0xFFFFFFFF); v14 = v31 & 1; if ( v14 ) { v15 = v32; if ( (unsigned int)(v32 - 1) > 9 ) { LABEL_37: v14 = 0; goto LABEL_38; } v16 = v33; } else { v15 = (int)(unsigned __int8)v31 >> 1; if ( !v15 ) { v14 = 0; goto LABEL_38; } if ( v15 > 10 ) goto LABEL_38; v16 = (char *)&v31 + 1; } v17 = (unsigned __int8 *)&v16[v15]; v18 = v16; v19 = "0123456789"; while ( 1 ) { v20 = v18; if ( v18 == (char *)v17 ) break; v30 = v19; v21 = memchr(v19, (unsigned __int8)*v18++, 0xAu); v19 = v30; if ( !v21 ) { if ( v20 - v16 != -1 ) { v14 = 0; goto LABEL_38; } break; } } if ( v14 ) v22 = v33; else v22 = (char *)&v31 + 1; if ( atoll(v22) < 1 ) goto LABEL_37; if ( v14 ) v23 = v33; else v23 = (char *)&v31 + 1; v14 = atoll(v23) <= 0x7FFFFFFF; LABEL_38: v24 = *((_DWORD *)this + 169); if ( v24 ) (*(void (__fastcall **)(int, int))(*(_DWORD *)v24 + 172))(v24, v14); if ( v14 ) { v25 = *((_DWORD *)this + 170); if ( v25 ) { if ( (v31 & 1) != 0 ) v27 = v33; else v27 = (char *)&v31 + 1; v28 = (cocos2d::CCString *)cocos2d::CCString::createWithFormat((cocos2d::CCString *)"Use ID %s", v27); CString = (char *)cocos2d::CCString::getCString(v28); ButtonSprite::setString(v25, CString); } } return std::string::~string((int)&v31); }
GD Web Decomp Icon

GD Web Decomp

Raw Source