// // std::__ndk1::ios_base::iword from 0xf4e7e0 to 0xf4e8e8 (264 bytes) // // 1 xrefs: // > @ 0x47470 // // 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:13:15 +0000 // __int64 *__fastcall std::ios_base::iword(std::ios_base *this, int a2) { unsigned __int64 v3; // x8 __int64 v4; // x21 unsigned __int64 v5; // x22 unsigned __int64 v6; // x8 __int64 v7; // x23 unsigned __int64 v8; // x24 unsigned __int64 v9; // x20 unsigned __int64 *v10; // x25 char *v11; // x0 char *v12; // x0 unsigned __int64 v13; // x8 unsigned __int64 v14; // x8 v3 = *((_QWORD *)this + 13); v4 = a2; v5 = a2 + 1LL; if ( v5 <= v3 ) { v8 = *((_QWORD *)this + 12); v9 = *((_QWORD *)this + 11); v10 = (unsigned __int64 *)((char *)this + 96); } else { if ( v5 > 0xFFFFFFFFFFFFFFELL ) { v7 = 0x1FFFFFFFFFFFFFFFLL; } else { v6 = 2 * v3; if ( v6 >= v5 ) v7 = v6; else v7 = a2 + 1LL; } v11 = (char *)realloc(*((void **)this + 11), 8 * v7); v9 = (unsigned __int64)v11; if ( !v11 ) { std::ios_base::clear((__int64)this, *((_DWORD *)this + 8) | 1); qword_1564080 = 0; return &qword_1564080; } *((_QWORD *)this + 11) = v11; v10 = (unsigned __int64 *)((char *)this + 96); v8 = *((_QWORD *)this + 12); if ( (__int64)v8 < v7 ) { v12 = &v11[8 * v8]; v13 = v9 + 8 * v7; if ( (unsigned __int64)(v12 + 8) > v13 ) v13 = (unsigned __int64)(v12 + 8); memset(v12, 0, (v13 - 8 * v8 + ~v9 + 8) & 0xFFFFFFFFFFFFFFF8LL); } *((_QWORD *)this + 13) = v7; } if ( v8 >= v5 ) v14 = v8; else v14 = v5; *v10 = v14; return (__int64 *)(v9 + 8 * v4); }
GD Web Decomp Icon

GD Web Decomp

Raw Source