// // sub_1001984BC from 0x1001984bc to 0x10019879c (736 bytes) // // 2 xrefs: // > processFMODAudioState @ 0x10019ee90 // > processFMODAudioState @ 0x10019ee9c // // 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:59:57 +0000 // void __fastcall sub_1001984BC(std::string *a1, __int64 a2) { signed int v4; // w8 const char *v5; // x0 int v6; // w20 signed int v7; // w8 const char *v8; // x0 std::string *v9; // x0 std::string *v10; // x22 signed int v11; // w8 __int64 v12; // x0 signed int v13; // w8 const char *v14; // x0 int v15; // w0 int v16; // [xsp+4h] [xbp-BCh] BYREF __int64 v17; // [xsp+8h] [xbp-B8h] BYREF __int64 v18; // [xsp+10h] [xbp-B0h] signed int v19; // [xsp+20h] [xbp-A0h] std::string __p; // [xsp+30h] [xbp-90h] BYREF char v21; // [xsp+4Fh] [xbp-71h] BYREF __int128 v22; // [xsp+50h] [xbp-70h] BYREF std::string::size_type v23; // [xsp+60h] [xbp-60h] std::string v24; // [xsp+68h] [xbp-58h] BYREF memset(&__p, 0, sizeof(__p)); sub_100194F54(a1, &__p); sub_100194880((__int64)&v17, &__p, ":", a1[1].__r_.__value_.__l.__size_); v4 = v19; if ( v19 >= (int)(-1431655765 * ((unsigned __int64)(v18 - v17) >> 3)) ) { sub_1001A3160(a2); } else { ++v19; v5 = (const char *)(v17 + 24LL * v4); if ( v5[23] < 0 ) v5 = *(const char **)v5; v6 = atoi(v5); sub_1001A3160(a2); if ( v6 >= 1 ) { do { v16 = 0; v7 = v19; if ( v19 < (int)(-1431655765 * ((unsigned __int64)(v18 - v17) >> 3)) ) { ++v19; v8 = (const char *)(v17 + 24LL * v7); if ( v8[23] < 0 ) v8 = *(const char **)v8; v16 = atoi(v8); } *(_QWORD *)&v22 = &v16; v9 = (std::string *)sub_1001A31B4(a2, &v16, &unk_10075EF86, &v22, &v21); v10 = v9; memset(&v24, 0, sizeof(v24)); v11 = v19; if ( v19 < (int)(-1431655765 * ((unsigned __int64)(v18 - v17) >> 3)) ) { ++v19; v9 = std::string::operator=(&v24, (const std::string *)(v17 + 24LL * v11)); } v12 = cocos2d::CCFileUtils::sharedFileUtils(v9); (*(void (__fastcall **)(__int128 *__return_ptr))(*(_QWORD *)v12 + 48LL))(&v22); if ( SHIBYTE(v10[1].__r_.__value_.__r.__words[2]) < 0 ) operator delete(v10[1].__r_.__value_.__l.__data_); *(_OWORD *)&v10[1].__r_.__value_.__l.__data_ = v22; v10[1].__r_.__value_.__r.__words[2] = v23; if ( SHIBYTE(v24.__r_.__value_.__r.__words[2]) < 0 ) operator delete(v24.__r_.__value_.__l.__data_); sub_100194A74(&v17, (float *)&v10[2]); sub_100194A74(&v17, (float *)v10[2].__r_.__value_.__r.__words + 1); sub_100194A74(&v17, (float *)&v10[2].__r_.__value_.__r.__words[1]); sub_100194B44((__int64)&v17, (_DWORD *)&v10[2].__r_.__value_.__r.__words[1] + 1); sub_100194B44((__int64)&v17, &v10[2].__r_.__value_.__r.__words[2]); sub_100194B44((__int64)&v17, (_DWORD *)&v10[2].__r_.__value_.__r.__words[2] + 1); sub_100194B44((__int64)&v17, &v10[3]); sub_100194BA8(&v17, (bool *)&v10[3].__r_.__value_.__s.__data_[4]); sub_100194B44((__int64)&v17, &v10[3].__r_.__value_.__r.__words[1]); sub_100194BA8(&v17, (bool *)&v10[3].__r_.__value_.__s.__data_[12]); sub_100194B44((__int64)&v17, &v10[3].__r_.__value_.__r.__words[2]); sub_100194BA8(&v17, (bool *)&v10[3].__r_.__value_.__s.__data_[20]); v13 = v19; if ( v19 >= (int)(-1431655765 * ((unsigned __int64)(v18 - v17) >> 3)) ) { v15 = 0; } else { ++v19; v14 = (const char *)(v17 + 24LL * v13); if ( v14[23] < 0 ) v14 = *(const char **)v14; v15 = atoi(v14); } LODWORD(v10[4].__r_.__value_.__l.__data_) = v15; sub_100194BA8(&v17, (bool *)&v10[4].__r_.__value_.__s.__data_[16]); --v6; } while ( v6 ); } } v24.__r_.__value_.__r.__words[0] = (std::string::size_type)&v17; sub_100018250((void ***)&v24); if ( SHIBYTE(__p.__r_.__value_.__r.__words[2]) < 0 ) operator delete(__p.__r_.__value_.__l.__data_); }
GD Web Decomp Icon

GD Web Decomp

Raw Source