// // std::__ndk1::basic_istream>::peek from 0x957338 to 0x9573e4 (172 bytes) // // 0 xrefs: // // This function is hookable on this platform (idp: arm, 32 bit: True, 64 bit: False! // // 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 12:05:29 +0000 // int __fastcall std::istream::peek(_DWORD *a1) { int v2; // r0 __int64 v3; // kr00_8 int result; // r0 bool v5; // [sp+0h] [bp-10h] BYREF a1[1] = 0; std::istream::sentry::sentry(&v5, a1, 1); if ( !v5 ) return -1; v2 = *(_DWORD *)((char *)a1 + *(_DWORD *)(*a1 - 12) + 24); v3 = *(_QWORD *)(v2 + 12); if ( (_DWORD)v3 != HIDWORD(v3) ) return *(unsigned __int8 *)v3; result = (*(int (__fastcall **)(int))(*(_DWORD *)v2 + 36))(v2); if ( result == -1 ) { std::ios_base::clear( (std::ios_base *)((char *)a1 + *(_DWORD *)(*a1 - 12)), *(_DWORD *)((char *)a1 + *(_DWORD *)(*a1 - 12) + 16) | 2); return -1; } return result; }
GD Web Decomp Icon

GD Web Decomp

Raw Source