// // ThreadViewPopup::expandShareTokens from 0xc74a00 to 0xc74e90 (1168 bytes) // // 5 xrefs: // > ThreadRequestPopup::init @ 0xc80494 // > InvitesPopup::buildRows @ 0xc81c68 // > ThreadViewPopup::measureBody @ 0xc85114 // > ThreadViewPopup::mountVirtualRow @ 0xc8b79c // > @ 0x45580 // // 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:32 +0000 // __int64 *__usercall ThreadViewPopup::expandShareTokens@(__int64 a1@, _QWORD *a2@, __int64 *a3@) { __int64 v6; // x0 __int64 v7; // x1 unsigned __int64 v8; // x21 int v9; // w1 unsigned __int64 v10; // x2 __int64 v11; // x0 int v12; // w2 __int64 v13; // x0 unsigned __int8 v14; // w3 unsigned __int64 v15; // x2 int v16; // w28 unsigned __int64 v17; // x3 unsigned __int64 i; // x19 unsigned __int64 v19; // x0 unsigned int v20; // w0 _BOOL4 v21; // w23 int v22; // w0 const char *v23; // x0 const char *v24; // x27 char *v25; // x0 cocos2d::CCString *v26; // x0 size_t v27; // x0 __int64 v28; // x1 unsigned __int8 v29; // w0 int v30; // w2 size_t v31; // x3 __int64 *v32; // x1 __int64 *v33; // x4 size_t v34; // x3 char *v35; // x1 size_t v36; // x2 int v38; // [xsp+78h] [xbp+78h] char *CString; // [xsp+78h] [xbp+78h] __int64 v40; // [xsp+88h] [xbp+88h] BYREF size_t v41; // [xsp+90h] [xbp+90h] void *v42; // [xsp+98h] [xbp+98h] __int64 v43; // [xsp+A0h] [xbp+A0h] BYREF size_t v44; // [xsp+A8h] [xbp+A8h] __int64 v45; // [xsp+B0h] [xbp+B0h] __int64 v46; // [xsp+B8h] [xbp+B8h] a3[1] = 0; v6 = _stack_chk_guard; a3[2] = 0; *a3 = 0; v46 = v6; v7 = *(_BYTE *)a1 >> 1; if ( (*(_BYTE *)a1 & 1) != 0 ) v7 = *(_QWORD *)(a1 + 8); std::string::reserve(a3, v7 + 16); v8 = 0; while ( 1 ) { v9 = *(_BYTE *)a1 & 1; v10 = *(_BYTE *)a1 >> 1; if ( (*(_BYTE *)a1 & 1) != 0 ) v10 = *(_QWORD *)(a1 + 8); if ( v8 >= v10 ) return a3; if ( v8 ) { v11 = a1 + 1; if ( (*(_BYTE *)a1 & 1) != 0 ) v11 = *(_QWORD *)(a1 + 16); v12 = *(unsigned __int8 *)(v11 + v8 - 1); if ( (unsigned __int8)(v12 - 48) <= 9u || (unsigned __int8)((v12 & 0xDF) - 65) <= 0x19u || v12 == 95 ) goto LABEL_17; } if ( (*(_BYTE *)a1 & 1) != 0 ) { v13 = *(_QWORD *)(a1 + 16); if ( *(_BYTE *)(v13 + v8) != 108 ) goto LABEL_15; } else if ( *(_BYTE *)(a1 + v8 + 1) != 108 ) { goto LABEL_20; } if ( (int)(-1431655765 * ((__int64)(a2[1] - *a2) >> 3)) > 4 ) goto LABEL_17; if ( !(unsigned int)std::string::compare(a1, v8, 2u, "l_", 2u) ) { v14 = *(_BYTE *)a1; v15 = v8 + 2; v16 = 0; v9 = *(_BYTE *)a1 & 1; } else { if ( (unsigned int)std::string::compare(a1, v8, 3u, "li_", 3u) ) goto LABEL_16; v14 = *(_BYTE *)a1; v16 = 1; v15 = v8 + 3; v9 = *(_BYTE *)a1 & 1; } if ( v15 == -1 ) goto LABEL_17; v17 = v14 >> 1; for ( i = v15; ; ++i ) { v19 = v17; if ( v9 ) v19 = *(_QWORD *)(a1 + 8); if ( i >= v19 || i == v15 + 10 ) break; if ( v9 ) { v20 = *(unsigned __int8 *)(*(_QWORD *)(a1 + 16) + i); if ( v20 <= 0x2F ) goto LABEL_32; } else { v20 = *(unsigned __int8 *)(a1 + i + 1); if ( v20 <= 0x2F ) goto LABEL_60; } if ( v20 > 0x39 ) break; } if ( v9 ) { LABEL_32: v21 = 1; if ( i >= *(_QWORD *)(a1 + 8) ) goto LABEL_36; v22 = *(unsigned __int8 *)(*(_QWORD *)(a1 + 16) + i); if ( (unsigned __int8)(v22 - 97) <= 0x19u ) goto LABEL_64; LABEL_34: if ( (unsigned __int8)(v22 - 48) > 9u ) { v21 = (unsigned __int8)(v22 - 65) > 0x19u && v22 != 95; goto LABEL_36; } goto LABEL_64; } LABEL_60: if ( i >= v17 ) { v9 = 0; v21 = 1; goto LABEL_36; } v9 = 0; v22 = *(unsigned __int8 *)(a1 + 1 + i); if ( (unsigned __int8)(v22 - 97) > 0x19u ) goto LABEL_34; LABEL_64: v21 = 0; LABEL_36: if ( v15 >= i ) { LABEL_17: if ( v9 ) { v13 = *(_QWORD *)(a1 + 16); goto LABEL_15; } LABEL_20: v13 = a1 + 1; LABEL_15: std::string::push_back(a3, *(_BYTE *)(v13 + v8++)); } else { std::string::basic_string(&v40, a1, v15, i - v15); v23 = (char *)&v40 + 1; v38 = v40 & 1; if ( (v40 & 1) != 0 ) v23 = (const char *)v42; v24 = (const char *)atoll(v23); if ( v38 ) operator delete(v42); if ( (unsigned __int64)(v24 - 1) > 0x7FFFFFFE || !v21 ) { LABEL_16: v9 = *(_BYTE *)a1 & 1; goto LABEL_17; } if ( v16 ) v25 = "List %lli"; else v25 = "Level %lli"; v26 = (cocos2d::CCString *)cocos2d::CCString::createWithFormat((cocos2d::CCString *)v25, v24); CString = (char *)cocos2d::CCString::getCString(v26); v40 = 0; v41 = 0; v42 = nullptr; v27 = strlen(CString); std::string::__init(&v40, CString, v27); v28 = *(_BYTE *)a3 >> 1; if ( (*(_BYTE *)a3 & 1) != 0 ) v28 = a3[1]; v29 = v40; v43 = v28; v30 = v40 & 1; v31 = (unsigned __int8)v40 >> 1; if ( (v40 & 1) != 0 ) v31 = v41; v32 = (__int64 *)a2[1]; v33 = (__int64 *)a2[2]; v44 = v31; LODWORD(v45) = (_DWORD)v24; BYTE4(v45) = v16; if ( v32 == v33 ) { std::vector::__push_back_slow_path(a2, &v43); v29 = v40; v30 = v40 & 1; } else { if ( v32 ) { v34 = v44; *v32 = v43; v32[1] = v34; v32[2] = v45; v29 = v40; v32 = (__int64 *)a2[1]; v30 = v40 & 1; } a2[1] = v32 + 3; } if ( v30 ) { v35 = (char *)v42; v36 = v41; } else { v36 = v29 >> 1; v35 = (char *)&v40 + 1; } std::string::append((__int64)a3, v35, v36); v8 = i; if ( (v40 & 1) != 0 ) operator delete(v42); } } }
GD Web Decomp Icon

GD Web Decomp

Raw Source