// // sub_10022EDE8 from 0x10022ede8 to 0x10022ef84 (412 bytes) // // 1 xrefs: // > ProfilePage::loadPageFromUserInfo @ 0x10022c9dc // // 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:01:16 +0000 // void __fastcall sub_10022EDE8(_QWORD *a1) { __int64 v2; // x0 std::string::size_type v3; // x9 std::string::size_type v4; // x8 std::string::size_type size; // x10 std::string::size_type v6; // x11 __int64 v7; // x9 __int64 v8; // x0 void *v9[2]; // [xsp+0h] [xbp-A0h] BYREF char v10; // [xsp+17h] [xbp-89h] void *v11[2]; // [xsp+18h] [xbp-88h] BYREF char v12; // [xsp+2Fh] [xbp-71h] std::string __p; // [xsp+30h] [xbp-70h] BYREF std::string __dst; // [xsp+50h] [xbp-50h] BYREF std::string v15; // [xsp+70h] [xbp-30h] BYREF if ( !a1[91] ) return; v2 = GameLevelManager::sharedState(); sub_1000A7734(v2, *(_DWORD *)(a1[91] + 376LL), (__int64)&v15); v3 = HIBYTE(v15.__r_.__value_.__r.__words[2]); LOBYTE(v4) = *((_BYTE *)&v15.__r_.__value_.__s + 23); size = v15.__r_.__value_.__l.__size_; if ( (v15.__r_.__value_.__r.__words[2] & 0x8000000000000000LL) == 0LL ) v6 = HIBYTE(v15.__r_.__value_.__r.__words[2]); else v6 = v15.__r_.__value_.__l.__size_; if ( !v6 ) { v7 = a1[91]; if ( *(char *)(v7 + 343) < 0 ) { sub_1000097D0(&__dst, *(void **)(v7 + 320), *(_QWORD *)(v7 + 328)); if ( (*((_BYTE *)&v15.__r_.__value_.__s + 23) & 0x80) == 0 ) goto LABEL_9; } else { __dst = *(std::string *)(v7 + 320); if ( (*((_BYTE *)&v15.__r_.__value_.__s + 23) & 0x80) == 0 ) { LABEL_9: v15 = __dst; v3 = HIBYTE(__dst.__r_.__value_.__r.__words[2]); size = __dst.__r_.__value_.__l.__size_; v4 = HIBYTE(__dst.__r_.__value_.__r.__words[2]); goto LABEL_10; } } operator delete(v15.__r_.__value_.__l.__data_); goto LABEL_9; } LABEL_10: if ( (v4 & 0x80u) != 0LL ) v3 = size; if ( !v3 ) { std::string::assign(&v15, "-"); if ( (*((_BYTE *)&v15.__r_.__value_.__s + 23) & 0x80) == 0 ) goto LABEL_14; LABEL_16: sub_1000097D0(&__p, v15.__r_.__value_.__l.__data_, v15.__r_.__value_.__l.__size_); goto LABEL_17; } if ( (v4 & 0x80) != 0 ) goto LABEL_16; LABEL_14: __p = v15; LABEL_17: sub_1001F965C((__int64 *)&__p); if ( SHIBYTE(__p.__r_.__value_.__r.__words[2]) < 0 ) operator delete(__p.__r_.__value_.__l.__data_); sub_100009900(v11, "Copied to clipboard"); sub_100009900(v9, ""); v8 = TextAlertPopup::create(v11, 150, v9, 0.5, 0.6); (*(void (__fastcall **)(_QWORD *, __int64, __int64))(*a1 + 464LL))(a1, v8, 100); if ( v10 < 0 ) operator delete(v9[0]); if ( v12 < 0 ) operator delete(v11[0]); if ( SHIBYTE(v15.__r_.__value_.__r.__words[2]) < 0 ) operator delete(v15.__r_.__value_.__l.__data_); }
GD Web Decomp Icon

GD Web Decomp

Raw Source