// // std::__ndk1::basic_istream>::get from 0x956da0 to 0x956ec8 (296 bytes) // // 1 xrefs: // > std::__ndk1::basic_istream>::get @ 0x956d68 // // 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 // _DWORD *__fastcall std::istream::get(_DWORD *a1, _BYTE *a2, int a3, int a4) { int v8; // r6 int v9; // r0 __int64 v10; // kr00_8 int v11; // r0 int v12; // r2 int v13; // r0 __int64 v14; // kr08_8 int v15; // r2 bool v17; // [sp+4h] [bp-14h] BYREF a1[1] = 0; std::istream::sentry::sentry(&v17, a1, 1); if ( !v17 ) return a1; if ( a3 < 1 ) { std::ios_base::clear( (std::ios_base *)((char *)a1 + *(_DWORD *)(*a1 - 12)), *(_DWORD *)((char *)a1 + *(_DWORD *)(*a1 - 12) + 16) | 4); return a1; } v8 = a3 - 1; if ( a1[1] >= v8 ) { LABEL_12: v15 = 0; goto LABEL_13; } while ( 1 ) { v9 = *(_DWORD *)((char *)a1 + *(_DWORD *)(*a1 - 12) + 24); v10 = *(_QWORD *)(v9 + 12); if ( (_DWORD)v10 != HIDWORD(v10) ) { LOBYTE(v11) = *(_BYTE *)v10; goto LABEL_7; } v11 = (*(int (__fastcall **)(int))(*(_DWORD *)v9 + 36))(v9); if ( v11 == -1 ) break; LABEL_7: if ( (unsigned __int8)v11 != a4 ) { *a2++ = v11; v12 = a1[1] + 1; a1[1] = v12; v13 = *(_DWORD *)((char *)a1 + *(_DWORD *)(*a1 - 12) + 24); v14 = *(_QWORD *)(v13 + 12); if ( (_DWORD)v14 == HIDWORD(v14) ) { (*(void (__fastcall **)(int))(*(_DWORD *)v13 + 40))(v13); v12 = a1[1]; } else { *(_DWORD *)(v13 + 12) = v14 + 1; } if ( v12 < v8 ) continue; } goto LABEL_12; } v15 = 2; LABEL_13: *a2 = 0; if ( !a1[1] ) v15 |= 4u; std::ios_base::clear( (std::ios_base *)((char *)a1 + *(_DWORD *)(*a1 - 12)), *(_DWORD *)((char *)a1 + *(_DWORD *)(*a1 - 12) + 16) | v15); return a1; }
GD Web Decomp Icon

GD Web Decomp

Raw Source