// // LevelPickerPopup::onUseID from 0xc70afc to 0xc70d14 (536 bytes) // // 3 xrefs: // > @ 0x103fd8 // > LevelPickerPopup::init @ 0xc6a538 // > @ 0x1547ee8 // // 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 13:05:30 +0000 // __int64 __fastcall LevelPickerPopup::onUseID(LevelPickerPopup *this, cocos2d::CCObject *a2) { char *v2; // x2 char v4; // w0 __int64 v5; // x0 __int64 v6; // x1 char *v7; // x3 __int64 v8; // x0 unsigned __int64 v9; // x2 char *v10; // x0 char *v11; // x1 char *v12; // x2 __int64 v13; // x1 char *v14; // x1 int v15; // w0 char *v16; // x1 int v17; // t1 unsigned __int64 v18; // x1 char *v19; // x0 int v20; // w19 __int64 v21; // x1 __int64 v22; // x0 __int64 v24; // [xsp+30h] [xbp+30h] BYREF __int64 v25; // [xsp+38h] [xbp+38h] char *v26; // [xsp+40h] [xbp+40h] v2 = (char *)this + 872; v24 = 0; v4 = *((_BYTE *)this + 872); v25 = 0; v26 = nullptr; if ( (v4 & 1) != 0 ) { std::string::__init(&v24, *((void **)v2 + 2), *((_QWORD *)v2 + 1)); } else { v5 = *(_QWORD *)v2; v6 = *((_QWORD *)v2 + 1); v26 = *((char **)v2 + 2); v24 = v5; v25 = v6; } if ( (v24 & 1) != 0 ) { v7 = v26; v8 = v25; } else { v8 = (unsigned __int8)v24 >> 1; v7 = (char *)&v24 + 1; } v9 = -1; if ( v8 ) { v10 = &v7[v8]; if ( v10 != v7 ) { v11 = v7; if ( *v7 == 32 ) { do { if ( v10 == ++v11 ) { v9 = -1; goto LABEL_12; } } while ( *v11 == 32 ); v9 = v11 - v7; } else { v9 = 0; } } } LABEL_12: std::string::erase((char *)&v24, 0, v9); if ( (v24 & 1) != 0 ) { v12 = v26; v13 = v25; } else { v13 = (unsigned __int8)v24 >> 1; v12 = (char *)&v24 + 1; } v14 = &v12[v13]; if ( v14 == v12 ) goto LABEL_19; v15 = (unsigned __int8)*(v14 - 1); v16 = v14 - 1; if ( v15 == 32 ) { while ( v16 != v12 ) { v17 = (unsigned __int8)*--v16; if ( v17 != 32 ) goto LABEL_30; } LABEL_19: v18 = 0; goto LABEL_20; } LABEL_30: v18 = v16 - v12 + 1; LABEL_20: std::string::erase((char *)&v24, v18, 0xFFFFFFFFFFFFFFFFLL); v19 = (char *)&v24 + 1; v20 = v24 & 1; if ( v20 ) v19 = v26; v21 = atoll(v19); if ( (unsigned __int64)(v21 - 1) > 0x7FFFFFFE || (v22 = *((_QWORD *)this + 99)) == 0 ) { if ( !v20 ) return _stack_chk_guard; LABEL_27: operator delete(v26); return _stack_chk_guard; } (*(void (__fastcall **)(__int64, __int64, _QWORD))(*(_QWORD *)v22 + 16LL))(v22, v21, *((unsigned __int8 *)this + 809)); (*(void (__fastcall **)(LevelPickerPopup *, _QWORD))(*(_QWORD *)this + 1360LL))(this, 0); if ( (v24 & 1) != 0 ) goto LABEL_27; return _stack_chk_guard; }
GD Web Decomp Icon

GD Web Decomp

Raw Source