// // std::__ndk1::codecvt::do_unshift from 0x970a20 to 0x970ad0 (176 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:52 +0000 // int __fastcall std::codecvt::do_unshift(int a1, int a2, int a3, int a4, _DWORD *a5) { int v7; // r5 int v8; // r6 _BYTE *v10; // r0 char v11; // r1 char *v12; // r0 int v13; // r1 _BYTE *v14; // r2 char v15; // t1 char v16; // [sp+7h] [bp-11h] BYREF int v17; // [sp+8h] [bp-10h] BYREF *a5 = a3; v7 = sub_992F18(*(_DWORD *)(a1 + 8)); v8 = sub_993870(&v16, 0, a2); if ( v7 ) sub_992F18(v7); if ( (unsigned int)(v8 + 1) < 2 ) return 2; v10 = (_BYTE *)*a5; if ( v8 - 1 > (unsigned int)(a4 - *a5) ) return 1; if ( v8 != 1 ) { v11 = v16; *a5 = v10 + 1; *v10 = v11; if ( v8 != 2 ) { v12 = (char *)&v17; v13 = 2 - v8; do { v14 = (_BYTE *)*a5; ++v13; v15 = *v12++; ++*a5; *v14 = v15; } while ( v13 ); } } return 0; }
GD Web Decomp Icon

GD Web Decomp

Raw Source