// // std::__ndk1::__codecvt_utf8::do_out from 0x971852 to 0x9718fc (170 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:53 +0000 // int __fastcall std::__codecvt_utf8::do_out( int a1, int a2, unsigned __int16 *a3, unsigned int a4, _DWORD *a5, _BYTE *a6, int a7, _DWORD *a8) { _BYTE *v8; // r1 unsigned int v9; // r5 int result; // r0 unsigned int v11; // r6 int v12; // r7 v8 = a6; v9 = *(_DWORD *)(a1 + 8); if ( (*(_BYTE *)(a1 + 12) & 2) != 0 ) { if ( a7 - (int)a6 < 3 ) { LABEL_17: result = 1; goto LABEL_19; } *(_WORD *)a6 = -17425; a6[2] = -65; v8 = a6 + 3; } result = 0; if ( (unsigned int)a3 < a4 ) { while ( 1 ) { v11 = *a3; if ( v11 > v9 || (v11 & 0xF800) == 0xD800 ) break; v12 = a7 - (_DWORD)v8; if ( v11 > 0x7F ) { if ( v11 >> 11 ) { if ( v12 < 3 ) goto LABEL_17; *v8 = (v11 >> 12) | 0xE0; v8[1] = (v11 >> 6) & 0x3F | 0x80; v8[2] = v11 & 0x3F | 0x80; v8 += 3; } else { if ( v12 < 2 ) goto LABEL_17; *v8 = (v11 >> 6) | 0xC0; v8[1] = v11 & 0x3F | 0x80; v8 += 2; } } else { if ( v12 < 1 ) goto LABEL_17; *v8++ = v11; } if ( (unsigned int)++a3 >= a4 ) { result = 0; goto LABEL_19; } } result = 2; } LABEL_19: *a5 = a3; *a8 = v8; return result; }
GD Web Decomp Icon

GD Web Decomp

Raw Source