// // std::__ndk1::basic_istream>::putback from 0xf46de0 to 0xf46f24 (324 bytes) // // 1 xrefs: // > @ 0xe0548 // // 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:10 +0000 // __int64 *__fastcall std::istream::putback(__int64 *a1, unsigned __int8 a2) { __int64 v3; // x8 __int64 v5; // x8 __int64 v6; // x0 int v7; // w9 __int64 v8; // x0 int v9; // w9 _QWORD *v11; // x0 _QWORD *v12; // x0 __int64 v13; // x8 __int64 v14; // x8 int v15; // t1 int v16; // w1 v3 = *a1; a1[1] = 0; std::ios_base::clear( (__int64)a1 + *(_QWORD *)(v3 - 24), *(_DWORD *)((_BYTE *)a1 + *(_QWORD *)(v3 - 24) + 32) & 0xFFFFFFFD); v5 = *(_QWORD *)(*a1 - 24); v6 = (__int64)a1 + v5; v7 = *(_DWORD *)((char *)a1 + v5 + 32); if ( v7 ) { std::ios_base::clear(v6, v7 | 4); v8 = (__int64)a1 + *(_QWORD *)(*a1 - 24); v9 = *(_DWORD *)(v8 + 32); } else { v11 = *(_QWORD **)(v6 + 136); if ( !v11 || (std::ostream::flush(v11), v5 = *(_QWORD *)(*a1 - 24), v8 = (__int64)a1 + v5, (v9 = *(_DWORD *)((char *)a1 + v5 + 32)) == 0) ) { v12 = *(_QWORD **)((char *)a1 + v5 + 40); if ( v12 ) { v13 = v12[3]; if ( v12[2] != v13 ) { v15 = *(unsigned __int8 *)(v13 - 1); v14 = v13 - 1; if ( v15 == a2 ) { v12[3] = v14; return a1; } } if ( (*(unsigned int (__fastcall **)(_QWORD *, _QWORD))(*v12 + 88LL))(v12, a2) != -1 ) return a1; v5 = *(_QWORD *)(*a1 - 24); v16 = *(_DWORD *)((char *)a1 + v5 + 32) | 1; } else { v16 = 1; } std::ios_base::clear((__int64)a1 + v5, v16); return a1; } } std::ios_base::clear(v8, v9 | 4); return a1; }
GD Web Decomp Icon

GD Web Decomp

Raw Source