// // sub_1000A6CC4 from 0x1000a6cc4 to 0x1000a6ed8 (532 bytes) // // 3 xrefs: // > sub_1002E3CF0 @ 0x1002e3d38 // > LevelBrowserLayer::createNewList @ 0x10049a63c // > LevelBrowserLayer::shareCommentClosed @ 0x10049a754 // // 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 10:58:34 +0000 // __int64 sub_1000A6CC4() { __int64 v0; // x19 __int64 v1; // x0 std::string *v2; // x0 __int64 v3; // x0 __int64 v4; // x8 unsigned int *v5; // x9 __int64 v6; // x8 __int64 *v7; // x20 unsigned __int64 v8; // x21 __int64 v9; // x8 __int64 v10; // x20 void **v11; // x1 std::string::size_type v12; // x2 std::string *v13; // x0 bool v14; // cf char v15; // w24 __int64 v16; // x0 std::string v18; // [xsp+0h] [xbp-B0h] BYREF void *__p[2]; // [xsp+18h] [xbp-98h] BYREF unsigned __int8 v20; // [xsp+2Fh] [xbp-81h] std::string v21; // [xsp+30h] [xbp-80h] BYREF _QWORD *v22; // [xsp+48h] [xbp-68h] BYREF _QWORD v23[2]; // [xsp+50h] [xbp-60h] BYREF std::string __str; // [xsp+60h] [xbp-50h] BYREF v0 = GJLevelList::create_1(); *(_DWORD *)(v0 + 544) = 2; *(_BYTE *)(v0 + 392) = 1; v1 = GameManager::sharedState(v0); if ( *(char *)(v1 + 655) < 0 ) sub_1000097D0(&__str, *(void **)(v1 + 632), *(_QWORD *)(v1 + 640)); else __str = *(std::string *)(v1 + 632); v2 = std::string::operator=((std::string *)(v0 + 408), &__str); if ( SHIBYTE(__str.__r_.__value_.__r.__words[2]) < 0 ) operator delete(__str.__r_.__value_.__l.__data_); v3 = GJAccountManager::sharedState(v2); *(_DWORD *)(v0 + 364) = *(_DWORD *)(v3 + 352) - *(_DWORD *)(v3 + 356); v23[0] = 0; v23[1] = 0; v22 = v23; v4 = *(_QWORD *)(LocalLevelManager::sharedState(v3) + 368); if ( v4 ) { v5 = *(unsigned int **)(v4 + 56); v6 = *v5; if ( (_DWORD)v6 ) { v7 = *((__int64 **)v5 + 2); v8 = (unsigned __int64)&v7[v6 - 1]; while ( 1 ) { v9 = *v7; if ( !*v7 ) goto LABEL_16; if ( (*(char *)(v9 + 455) & 0x8000000000000000LL) == 0 ) break; if ( *(_QWORD *)(v9 + 440) ) goto LABEL_14; LABEL_15: if ( (unsigned __int64)++v7 > v8 ) goto LABEL_16; } if ( !*(_BYTE *)(v9 + 455) ) goto LABEL_15; LABEL_14: sub_1000D8F30(&v22, v9 + 432, v9 + 432); goto LABEL_15; } } LABEL_16: v10 = 0; do { sub_100009900(&v21, "Unnamed "); GameToolbox::intToString(v10, __p); if ( (v20 & 0x80u) == 0 ) v11 = __p; else v11 = (void **)__p[0]; if ( (v20 & 0x80u) == 0 ) v12 = v20; else v12 = (std::string::size_type)__p[1]; std::string::append(&v21, (const std::string::value_type *)v11, v12); if ( (char)v20 < 0 ) operator delete(__p[0]); v13 = (std::string *)sub_1000D9098(&v22, &v21); if ( v13 ) v14 = (unsigned int)v10 >= 0x3E7; else v14 = 1; v15 = !v14; if ( v14 ) { if ( SHIBYTE(v21.__r_.__value_.__r.__words[2]) < 0 ) sub_1000097D0(&v18, v21.__r_.__value_.__l.__data_, v21.__r_.__value_.__l.__size_); else v18 = v21; v13 = std::string::operator=((std::string *)(v0 + 456), &v18); if ( SHIBYTE(v18.__r_.__value_.__r.__words[2]) < 0 ) operator delete(v18.__r_.__value_.__l.__data_); } if ( SHIBYTE(v21.__r_.__value_.__r.__words[2]) < 0 ) operator delete(v21.__r_.__value_.__l.__data_); v10 = (unsigned int)(v10 + 1); } while ( (v15 & 1) != 0 ); v16 = LocalLevelManager::sharedState(v13); sub_1002E7640(*(_QWORD *)(v16 + 368), v0, 0); sub_1000D8D9C(&v22, v23[0]); return v0; }
GD Web Decomp Icon

GD Web Decomp

Raw Source