instruction
stringlengths
25
17.8k
response
stringclasses
1 value
// attributes: thunk void __noreturn _Unwind_Resume(struct _Unwind_Exception *a1) { Unwind_Resume(a1); }
This opensource is libicu
__int64 __fastcall u_scanf_scidbl_handler( __int64 a1, __int64 a2, long double **a3, double a4, __int64 a5, __int64 a6, _DWORD *a7) { __int64 NumberFormat_75; // rbp __int64 v9; // rax unsigned int v10; // r13d char v11; // dl long double *v12; // rcx __int64 result; // rax float v14; // xmm0_4 int v15; // [rsp+8h] [rbp-70h] v15 = u_scanf_skip_leading_ws(a1, *(_WORD *)(a2 + 6)); ufile_fill_uchar_buffer_75(a1); NumberFormat_75 = u_locbund_getNumberFormat_75(a1 + 48, 4); v9 = u_locbund_getNumberFormat_75(a1 + 48, 1); if ( !NumberFormat_75 || !v9 ) return 0LL; v10 = u_scanf_skip_leading_positive_sign(a1, v9, 0) + v15; unum_parseDouble_75(); unum_parseDouble_75(); *(_QWORD *)(a1 + 24) = *(_QWORD *)(a1 + 24); v11 = *(_BYTE *)(a2 + 8); if ( v11 ) { LABEL_7: result = v10; *a7 = v11 == 0; return result; } v12 = *a3; if ( !*(_BYTE *)(a2 + 11) ) { if ( *(_BYTE *)(a2 + 9) ) { *v12 = a4; } else { v14 = a4; *(float *)v12 = v14; } goto LABEL_7; } result = v10; *(double *)v12 = a4; *a7 = 1; return result; }
This opensource is libicu
char16_t *__fastcall ufmt_64tou_75(char16_t *a1, int *a2, unsigned __int64 a3, unsigned __int64 a4, char a5, int a6) { __int64 v7; // r10 char16_t v8; // r11 bool v9; // cc char16_t v10; // dx int v11; // r11d unsigned __int64 v12; // rbx unsigned __int64 v13; // rdx unsigned __int64 v14; // rtt char16_t v15; // bp char16_t v16; // r11 int v17; // edx __int64 v18; // rax char16_t *result; // rax char16_t v20; // dx char16_t v21; // cx a4 = (unsigned __int8)a4; v7 = 1LL; do { v12 = a3; v14 = a3; a3 /= a4; v13 = v14 % a4; v15 = v14 % a4 + 48; if ( a5 ) { v8 = v13 + 87; v9 = v13 <= 9; v10 = v15; if ( !v9 ) v10 = v8; } else { v16 = v13 + 55; v9 = v13 <= 9; v10 = v15; if ( !v9 ) v10 = v16; } a1[v7 - 1] = v10; v11 = v7++; } while ( v12 >= a4 ); if ( a6 == -1 || v11 >= a6 ) { LABEL_14: v18 = v11; } else { v17 = *a2; v18 = v11; while ( v17 > v11 ) { ++v11; a1[v18++] = 48; if ( a6 <= v11 ) goto LABEL_14; } } for ( result = &a1[v18 - 1]; result > a1; result[1] = v20 ) { v20 = *a1; v21 = *result; ++a1; --result; *(a1 - 1) = v21; } *a2 = v11; return result; }
This opensource is libicu
// attributes: thunk __int64 uprv_trunc_75() { return uprv_trunc_75(); }
This opensource is libicu
// attributes: thunk __int64 u_UCharsToChars_75() { return u_UCharsToChars_75(); }
This opensource is libicu
__int64 __fastcall u_printf_write(void *a1, const char16_t *a2, unsigned int a3) { return u_file_write_75(a2, a3, a1); }
This opensource is libicu
// attributes: thunk size_t fwrite(const void *ptr, size_t size, size_t n, FILE *s) { return fwrite(ptr, size, n, s); }
This opensource is libicu
__int64 locbund_cleanup() { char *v0; // rbx v0 = (char *)&gPosixNumberFormat; do { v0 += 8; unum_close_75(); *((_QWORD *)v0 - 1) = 0LL; } while ( v0 != (char *)&gPosixNumberFormat + 40 ); return 1LL; }
This opensource is libicu
// attributes: thunk __int64 unum_open_75() { return unum_open_75(); }
This opensource is libicu
// attributes: thunk __int64 unum_close_75() { return unum_close_75(); }
This opensource is libicu
__int64 __fastcall u_scanf_count_handler(__int64 a1, _BYTE *a2, _WORD **a3, __int64 a4, __int64 a5, _DWORD *a6) { _WORD *v6; // rdx __int64 v7; // rax __int64 result; // rax if ( a2[8] ) goto LABEL_4; v6 = *a3; v7 = *(int *)a2; if ( a2[10] ) { *v6 = v7; LABEL_4: *a6 = 0; return 0LL; } if ( a2[12] ) *(_QWORD *)v6 = v7; else *(_DWORD *)v6 = v7; result = 0LL; *a6 = 0; return result; }
This opensource is libicu
__int64 __fastcall u_printf_pad_and_justify(__int64 a1, __int64 a2, __int64 a3, unsigned int a4) { int v5; // eax int v6; // r13d int v7; // r12d unsigned int v8; // r12d int v10; // r14d v5 = *(_DWORD *)(a2 + 4); if ( v5 <= (int)a4 || v5 == -1 ) return u_file_write_75(a3, a4, a1); if ( *(_BYTE *)(a2 + 16) ) { v8 = u_file_write_75(a3, a4, a1); if ( (int)(*(_DWORD *)(a2 + 4) - a4) > 0 ) { v10 = 0; do { ++v10; v8 += u_file_write_75(a2 + 12, 1LL, a1); } while ( (int)(*(_DWORD *)(a2 + 4) - a4) > v10 ); } } else { v6 = 0; v7 = 0; do { ++v6; v7 += u_file_write_75(a2 + 12, 1LL, a1); } while ( (int)(*(_DWORD *)(a2 + 4) - a4) > v6 ); return (unsigned int)u_file_write_75(a3, a4, a1) + v7; } return v8; }
This opensource is libicu
// attributes: thunk void __fastcall icu_75::UnicodeString::~UnicodeString(icu_75::UnicodeString *this) { _ZN6icu_7513UnicodeStringD1Ev(this); }
This opensource is libicu
_QWORD *__fastcall u_frewind_75(_QWORD *a1) { FILE *v2; // rdi _QWORD *result; // rax u_fflush_75(a1); ucnv_reset_75(); v2 = (FILE *)a1[1]; if ( v2 ) { rewind(v2); result = a1 + 13; a1[4] = a1 + 13; a1[3] = a1 + 13; } else { result = (_QWORD *)a1[5]; a1[3] = result; } return result; }
This opensource is libicu
// attributes: thunk __int64 uset_applyPattern_75() { return uset_applyPattern_75(); }
This opensource is libicu
__int64 __fastcall u_scanf_scientific_handler( __int64 a1, __int64 a2, double **a3, double a4, __int64 a5, __int64 a6, _DWORD *a7) { int v7; // r14d __int64 NumberFormat_75; // r12 __int64 result; // rax unsigned int v10; // r14d char v11; // cl double *v12; // rax float v13; // xmm0_4 v7 = u_scanf_skip_leading_ws(a1, *(_WORD *)(a2 + 6)); ufile_fill_uchar_buffer_75(a1); NumberFormat_75 = u_locbund_getNumberFormat_75(a1 + 48, 4); result = 0LL; if ( NumberFormat_75 ) { unum_getSymbol_75(); if ( *(_WORD *)(a2 + 4) == 101 ) u_strToLower_75(); else u_strToUpper_75(); unum_setSymbol_75(); v10 = u_scanf_skip_leading_positive_sign(a1, NumberFormat_75, 0) + v7; unum_parseDouble_75(); v11 = *(_BYTE *)(a2 + 8); if ( !v11 ) { v12 = *a3; if ( *(_BYTE *)(a2 + 11) ) { *v12 = a4; } else if ( *(_BYTE *)(a2 + 9) ) { *(long double *)v12 = a4; } else { v13 = a4; *(float *)v12 = v13; } } *(_QWORD *)(a1 + 24) = *(_QWORD *)(a1 + 24); result = v10; *a7 = v11 == 0; } return result; }
This opensource is libicu
__int64 __fastcall u_fputs_75(_BYTE *a1, void ***a2) { int v2; // eax int v3; // ebx v2 = u_strlen_75(); v3 = u_file_write_75(a1, v2, a2); return v3 + (unsigned int)u_file_write_75(DELIMITERS, 1, a2); }
This opensource is libicu
// attributes: thunk __int64 utrans_close_75() { return utrans_close_75(); }
This opensource is libicu
// attributes: thunk __int64 u_getDefaultConverter_75() { return u_getDefaultConverter_75(); }
This opensource is libicu
// attributes: thunk __int64 std::__ostream_insert<char,std::char_traits<char>>() { return _ZSt16__ostream_insertIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_PKS3_l(); }
This opensource is libicu
char __fastcall u_feof_75(_QWORD *a1) { unsigned __int64 v1; // rcx unsigned __int64 v2; // rdx FILE *v3; // rdi char result; // al if ( !a1 ) return 1; v1 = a1[3]; v2 = a1[4]; v3 = (FILE *)a1[1]; if ( !v3 ) return v1 >= v2; result = 0; if ( v1 >= v2 ) return feof(v3) != 0; return result; }
This opensource is libicu
// attributes: thunk __int64 ucnv_reset_75() { return ucnv_reset_75(); }
This opensource is libicu
__int64 __fastcall u_vfscanf_u_75(__int64 a1, __int64 a2, __int64 a3) { return u_scanf_parse_75(a1, a2, a3); }
This opensource is libicu
__int64 __fastcall u_printf_hex_handler(__int64 a1, __int64 a2, __int64 a3, __int64 a4, unsigned __int64 *a5) { unsigned __int64 v6; // rbx bool v7; // zf int v8; // r9d unsigned int v9; // r15d int v11; // [rsp+Ch] [rbp-84Ch] BYREF char16_t v12[2]; // [rsp+10h] [rbp-848h] BYREF unsigned __int64 v13; // [rsp+818h] [rbp-40h] v6 = *a5; v13 = __readfsqword(0x28u); v7 = *(_BYTE *)(a4 + 20) == 0; v11 = 1024; if ( !v7 ) { v6 = (unsigned __int16)v6; goto LABEL_3; } if ( *(_BYTE *)(a4 + 22) ) { LABEL_3: v8 = *(_DWORD *)a4; if ( *(_DWORD *)a4 != -1 ) goto LABEL_4; goto LABEL_11; } v8 = *(_DWORD *)a4; v6 = (unsigned int)v6; if ( *(_DWORD *)a4 != -1 ) goto LABEL_4; LABEL_11: if ( *(_BYTE *)(a4 + 18) ) v8 = *(_DWORD *)(a4 + 4); LABEL_4: ufmt_64tou_75(v12, &v11, v6, 0x10uLL, *(_WORD *)(a4 + 10) == 120, v8); v9 = v11; if ( v6 && *(_BYTE *)(a4 + 14) && v11 <= 1021 ) { v9 = v11 + 2; __memmove_chk(); v11 = v9; v12[0] = 48; v12[1] = *(_WORD *)(a4 + 10); } return (*(__int64 (__fastcall **)(__int64, __int64, char16_t *, _QWORD))(a1 + 8))(a2, a4, v12, v9); }
This opensource is libicu
__int64 __fastcall u_fgetNumberFormat_75(__int64 a1) { return u_locbund_getNumberFormat_75(a1 + 48, 1); }
This opensource is libicu
_WORD *__fastcall u_fgets_75(_WORD *a1, int a2, __int64 a3) { __int16 *v4; // rax __int16 *v5; // r8 int v6; // ebx __int64 v7; // rcx int v8; // esi _WORD *v9; // r13 __int16 v10; // r15 int v11; // r14d __int16 v13; // cx bool v14; // si if ( a2 <= 0 ) return 0LL; v4 = *(__int16 **)(a3 + 24); v5 = *(__int16 **)(a3 + 32); if ( v4 >= v5 ) { ufile_fill_uchar_buffer_75(a3); v5 = *(__int16 **)(a3 + 32); v4 = *(__int16 **)(a3 + 24); } v6 = a2 - 1; v7 = v5 - v4; v8 = v7; if ( !(_DWORD)v7 ) return 0LL; v9 = a1; if ( v6 <= 0 || (int)v7 <= 0 ) goto LABEL_14; v10 = 0; v11 = 0; while ( 1 ) { if ( v6 - v11 <= v8 ) v5 = &v4[v6 - v11]; if ( !v10 ) break; if ( v4 < v5 ) goto LABEL_12; LABEL_24: *(_QWORD *)(a3 + 24) = v4; if ( v10 == 1 ) goto LABEL_14; LABEL_25: ufile_fill_uchar_buffer_75(a3); v5 = *(__int16 **)(a3 + 32); v4 = *(__int16 **)(a3 + 24); v8 = v5 - v4; if ( v8 <= 0 || v6 <= v11 ) goto LABEL_14; } while ( 1 ) { if ( v5 <= v4 ) goto LABEL_30; v13 = *v4; v14 = v13 == 133 || (unsigned __int16)(v13 - 10) <= 3u; if ( (unsigned __int16)(*v4 - 8232) <= 1u || v14 ) break; *v9++ = v13; ++v11; ++v4; } if ( v5 <= v4 ) { LABEL_30: *(_QWORD *)(a3 + 24) = v4; goto LABEL_25; } v10 = 1; if ( v14 ) { v10 = 13; if ( v13 != 13 ) v10 = 1; } ++v4; *v9 = v13; ++v11; ++v9; if ( v4 >= v5 ) goto LABEL_24; LABEL_12: if ( v10 == 13 && *v4 == 10 ) { *v9++ = 10; *(_QWORD *)(a3 + 24) = v4 + 1; } else { *(_QWORD *)(a3 + 24) = v4; } LABEL_14: *v9 = 0; return a1; }
This opensource is libicu
// attributes: thunk __int64 unum_getTextAttribute_75() { return unum_getTextAttribute_75(); }
This opensource is libicu
// attributes: thunk __int64 __fastcall std::istream::putback(std::istream *this, char a2) { return _ZNSi7putbackEc(this, a2); }
This opensource is libicu
_QWORD *__fastcall u_finit_75(_IO_FILE *a1, const char *a2, const char *a3) { return finit_owner(a1, a2, a3, 0); }
This opensource is libicu
// attributes: thunk __int64 u_releaseDefaultConverter_75() { return u_releaseDefaultConverter_75(); }
This opensource is libicu
__int64 __fastcall u_scanf_scanset_handler(__int64 a1, __int64 a2, _WORD **a3, __int64 a4, _DWORD *a5, _DWORD *a6) { _WORD *v8; // r12 int v9; // ebx char v11; // r15 __int64 v12; // rax char v13; // al char v14; // al __int64 v15; // rdi char v16; // al int v17; // eax char v18; // [rsp+17h] [rbp-51h] unsigned int v20; // [rsp+24h] [rbp-44h] BYREF unsigned __int64 v21; // [rsp+28h] [rbp-40h] v8 = *a3; v21 = __readfsqword(0x28u); uset_open_75(); v9 = *(_DWORD *)a2; if ( *(int *)a2 < 0 ) { *a5 = uset_applyPattern_75(); v20 = 0; v9 = 0x7FFFFFFF; } else { *a5 = uset_applyPattern_75(); v20 = 0; if ( !v9 ) { uset_close_75(); return 0xFFFFFFFFLL; } } v11 = 0; while ( 1 ) { v18 = v11; v13 = ufile_getch32_75(a1, &v20); v11 = v13; if ( v13 != 1 ) break; v14 = uset_contains_75(); v15 = v20; if ( !v14 ) goto LABEL_25; if ( !*(_BYTE *)(a2 + 8) ) { if ( v20 <= 0xFFFF ) { *v8 = v20; v12 = 2LL; } else { if ( v20 > 0x10FFFF || v9 == 1 ) { v18 = 1; goto LABEL_25; } *v8 = ((int)v20 >> 10) - 10304; v8[1] = v15 & 0x3FF | 0xDC00; v12 = 4LL; } v8 = (_WORD *)((char *)v8 + v12); } v9 = (__PAIR64__(v9, (int)v15 - 0x10000) - 0x100100000LL) >> 32; if ( v9 <= 0 ) { uset_close_75(); goto LABEL_19; } } if ( !v13 ) goto LABEL_18; v15 = v20; LABEL_25: u_fungetc_75(v15, a1); LABEL_18: uset_close_75(); if ( !v18 ) return 0xFFFFFFFFLL; LABEL_19: v16 = *(_BYTE *)(a2 + 8); if ( !v16 ) { *v8 = 0; v16 = *(_BYTE *)(a2 + 8); } *a6 = v16 == 0; v17 = *(_DWORD *)a2; if ( *(int *)a2 < 0 ) v17 = 0x7FFFFFFF; return (unsigned int)(v17 - v9); }
This opensource is libicu
__int64 __fastcall icu_75::operator<<(__int64 a1, __int64 a2) { int v2; // eax char v4; // [rsp+30h] [rbp-108h] unsigned __int64 v5; // [rsp+F8h] [rbp-40h] v5 = __readfsqword(0x28u); if ( *(__int16 *)(a2 + 8) < 0 ) v2 = *(_DWORD *)(a2 + 12); else v2 = *(__int16 *)(a2 + 8) >> 5; if ( v2 > 0 ) { u_getDefaultConverter_75(); ucnv_fromUnicode_75(); v4 = 0; u_releaseDefaultConverter_75(); } return a1; }
This opensource is libicu
// attributes: thunk __int64 uset_close_75() { return uset_close_75(); }
This opensource is libicu
// attributes: thunk __int64 u_isspace_75() { return u_isspace_75(); }
This opensource is libicu
// attributes: thunk __int64 unum_getAttribute_75() { return unum_getAttribute_75(); }
This opensource is libicu
__int64 frame_dummy() { return register_tm_clones(); }
This opensource is libicu
// attributes: thunk __int64 __fread_chk() { return _fread_chk(); }
This opensource is libicu
__int64 __fastcall u_printf_uinteger_handler(__int64 a1, __int64 a2, __int64 a3, _DWORD *a4) { unsigned int v5; // r13d int Attribute_75; // [rsp+Ch] [rbp-85Ch] char v8[2056]; // [rsp+20h] [rbp-848h] BYREF unsigned __int64 v9; // [rsp+828h] [rbp-40h] v9 = __readfsqword(0x28u); if ( !u_locbund_getNumberFormat_75(a3, 1) ) return 0LL; if ( *a4 == -1 ) { v5 = unum_formatInt64_75(); } else { Attribute_75 = unum_getAttribute_75(); unum_setAttribute_75(); v5 = unum_formatInt64_75(); if ( Attribute_75 != -1 ) unum_setAttribute_75(); } return (*(__int64 (__fastcall **)(__int64, _DWORD *, char *, _QWORD))(a1 + 8))(a2, a4, v8, v5); }
This opensource is libicu
__int64 __fastcall ucln_io_registerCleanup_75(unsigned int a1, __int64 (*a2)(void)) { umtx_lock_75(); ucln_registerCleanup_75(); if ( a1 <= 1 ) *(&gCleanupFunctions + (int)a1) = a2; return umtx_unlock_75(); }
This opensource is libicu
// attributes: thunk int __fastcall _cxa_finalize(void *a1) { return __cxa_finalize(a1); }
This opensource is libicu
// attributes: thunk __int64 uloc_getDefault_75() { return uloc_getDefault_75(); }
This opensource is libicu
// attributes: thunk __int64 __fastcall icu_75::UnicodeString::extract( icu_75::UnicodeString *this, int a2, int a3, char *a4, unsigned int a5) { return _ZNK6icu_7513UnicodeString7extractEiiPcj(this, a2, a3, a4, a5); }
This opensource is libicu
// attributes: thunk __int64 uprv_realloc_75() { return uprv_realloc_75(); }
This opensource is libicu
// attributes: thunk __int64 icu_75::umtx_initImplPostInit() { return _ZN6icu_7521umtx_initImplPostInitERNS_9UInitOnceE(); }
This opensource is libicu
// attributes: thunk __int64 unum_setAttribute_75() { return unum_setAttribute_75(); }
This opensource is libicu
__int64 __fastcall u_printf_ustring_handler(__int64 a1, __int64 a2, __int64 a3, int *a4, const __int16 **a5) { const __int16 *v6; // r12 __int64 v7; // rcx int v8; // eax v6 = *a5; if ( !*a5 ) v6 = L"(null)"; v7 = (unsigned int)u_strlen_75(); v8 = *a4; if ( *a4 != -1 && (int)v7 > v8 ) v7 = (unsigned int)v8; return (*(__int64 (__fastcall **)(__int64, int *, const __int16 *, __int64))(a1 + 8))(a2, a4, v6, v7); }
This opensource is libicu
// attributes: thunk void __noreturn __stack_chk_fail() { _stack_chk_fail(); }
This opensource is libicu
__int64 __fastcall u_vsscanf_75(__int64 a1, const char *a2, __int64 a3) { __int64 v4; // r15 unsigned int v5; // r12d _QWORD v7[39]; // [rsp+0h] [rbp-138h] BYREF v7[33] = __readfsqword(0x28u); if ( (int)(strlen(a2) + 1) <= 63 ) { u_charsToUChars_75(); return (unsigned int)u_vsscanf_u_75(a1, (__int64)v7, a3); } else { v4 = uprv_malloc_75(); if ( v4 ) { u_charsToUChars_75(); v5 = u_vsscanf_u_75(a1, v4, a3); uprv_free_75(); } else { return 0; } } return v5; }
This opensource is libicu
__int64 __fastcall u_printf_parse_75( __int64 (__fastcall **a1)(__int64, unsigned __int16 *, __int64), _WORD *a2, __int64 a3, __int64 a4, __int64 a5, _DWORD *a6, __int64 a7) { _WORD *v8; // rax int i; // r14d int v10; // r15d __int64 v11; // r13 __int64 v12; // r12 __int64 v13; // rax unsigned __int16 *v14; // rax int v15; // ecx __int64 v16; // rax unsigned __int16 *v17; // r14 __int64 v18; // r13 unsigned __int16 v19; // ax unsigned __int16 *v20; // r8 unsigned __int16 *v21; // r15 int v22; // eax unsigned __int16 *v23; // rcx unsigned __int64 v24; // rdx unsigned __int16 *v25; // r9 int v26; // eax int v27; // edx int v28; // edi unsigned __int16 v29; // si unsigned __int16 v30; // ax __int64 v31; // rcx int v32; // eax int v33; // edx __int64 (__fastcall *v34)(__int64 (__fastcall **)(__int64, unsigned __int16 *, __int64), __int64, __int64, __int64 *, __int64 *); // rax unsigned __int16 *v35; // r9 unsigned int v36; // edx __int64 *v37; // rax unsigned __int16 *v38; // r15 __int16 v39; // ax __int16 v40; // ax unsigned __int16 v41; // di __int16 v42; // bx __int16 v43; // ax unsigned __int16 v44; // di __int16 v45; // bx __int16 v46; // ax unsigned __int16 v47; // di __int16 v48; // bx __int16 v49; // ax int v50; // eax int v51; // edx unsigned __int16 *v52; // rcx int v53; // eax unsigned __int16 *v54; // r9 int v55; // edx int v56; // eax unsigned __int16 *v57; // rdi int v58; // esi unsigned __int16 *v59; // rsi unsigned int v60; // ecx int *v61; // rdx unsigned int v62; // ecx _DWORD *v63; // rdx int v64; // esi unsigned __int16 *v65; // rsi unsigned __int16 *v66; // r9 unsigned __int16 *v67; // r15 unsigned int v69; // edx __int64 *v70; // rax unsigned int v71; // edx double *v72; // rax float v73; // xmm0_4 unsigned int v74; // eax __int64 *v75; // rdx unsigned __int16 *v76; // rdi int v77; // ecx int v78; // esi unsigned __int16 *v79; // r9 _BYTE *v80; // r10 unsigned __int16 *v81; // rdx bool v82; // dl __int16 v83; // si _DWORD *v84; // rsi int *v85; // rdx unsigned int v86; // r8d _QWORD *v87; // rdx unsigned int v88; // edx _QWORD *v89; // r8 unsigned int v90; // r8d _QWORD *v91; // rdx unsigned int v92; // r8d double *v93; // rdx float v94; // xmm0_4 int *v95; // r8 unsigned __int16 *v100; // [rsp+28h] [rbp-90h] unsigned __int16 *v101; // [rsp+28h] [rbp-90h] unsigned __int16 *v102; // [rsp+28h] [rbp-90h] __int64 v103; // [rsp+30h] [rbp-88h] __int64 v105; // [rsp+48h] [rbp-70h] BYREF __int64 v106; // [rsp+50h] [rbp-68h] BYREF __int128 v107; // [rsp+58h] [rbp-60h] __int64 v108; // [rsp+68h] [rbp-50h] int v109; // [rsp+70h] [rbp-48h] unsigned __int64 v110; // [rsp+78h] [rbp-40h] v110 = __readfsqword(0x28u); if ( a4 && *(int *)(a4 + 8) < 0 ) { LABEL_14: v103 = 0LL; goto LABEL_15; } v8 = a2; i = 0; v10 = 0; while ( 1 ) { while ( *v8 == 37 ) { v51 = (unsigned __int16)v8[1]; if ( (unsigned __int16)(v51 - 48) > 9u ) goto LABEL_14; v52 = v8 + 2; v53 = (unsigned __int16)v8[2]; for ( i = v51 - 48; (unsigned __int16)(v53 - 48) <= 9u; v53 = *v52 ) { ++v52; i = v53 + 10 * i - 48; } if ( (_WORD)v53 != 36 ) goto LABEL_14; v8 = v52; if ( v10 < i ) v10 = i; } if ( !*v8 ) break; ++v8; } v11 = uprv_malloc_75(); v12 = uprv_malloc_75(); v13 = uprv_malloc_75(); v103 = v13; if ( !v11 ) { LABEL_187: if ( v12 ) uprv_free_75(); if ( v103 ) uprv_free_75(); return 0xFFFFFFFFLL; } if ( !v12 || !v13 ) { uprv_free_75(); goto LABEL_187; } v14 = a2; LOWORD(v15) = *a2; while ( 1 ) { while ( (_WORD)v15 == 37 ) { v15 = v14[1]; if ( (unsigned __int16)(v15 - 48) <= 9u ) { i = v15 - 48; v15 = v14[2]; for ( v14 += 2; (unsigned __int16)(v15 - 48) <= 9u; v15 = *v14 ) { ++v14; i = v15 + 10 * i - 48; } } else { ++v14; } v80 = (_BYTE *)(v12 + --i); while ( 1 ) { v82 = 1; v83 = v15 & 0xFFDF; if ( (unsigned __int16)v15 <= 0x39u ) v82 = ((0x3FF6D1900000000uLL >> v15) & 1) == 0; if ( (_WORD)v15 != 104 && (v15 & 0xFFDF) != 76 && v82 ) break; *v80 = 0; v81 = v14 + 1; if ( (_WORD)v15 == 104 || (LOWORD(v15) = v14[1], v83 == 76) ) { LOWORD(v15) = v14[2]; v81 = v14 + 2; if ( v14[1] == 108 ) *v80 = 1; } v14 = v81; } v84 = (_DWORD *)(v11 + 4LL * i); if ( (unsigned __int16)(v15 - 32) > 0x6Bu ) *v84 = 0; else *v84 = *((_DWORD *)&g_u_printf_infos + 4 * (unsigned __int16)(v15 - 32)); } if ( !(_WORD)v15 ) break; LOWORD(v15) = v14[1]; ++v14; } v16 = 0LL; if ( v10 ) { while ( 1 ) { switch ( *(_DWORD *)(v11 + 4 * v16) ) { case 3: case 4: case 9: v88 = *(_DWORD *)a7; if ( *(_BYTE *)(v12 + v16) ) { if ( v88 > 0x2F ) { v89 = *(_QWORD **)(a7 + 8); *(_QWORD *)(a7 + 8) = v89 + 1; } else { v89 = (_QWORD *)(*(_QWORD *)(a7 + 16) + v88); *(_DWORD *)a7 = v88 + 8; } *(_QWORD *)(v103 + 8 * v16) = *v89; } else { if ( v88 > 0x2F ) { v95 = *(int **)(a7 + 8); *(_QWORD *)(a7 + 8) = v95 + 2; } else { v95 = (int *)(*(_QWORD *)(a7 + 16) + v88); *(_DWORD *)a7 = v88 + 8; } *(_QWORD *)(v103 + 8 * v16) = *v95; } break; case 5: case 6: case 0xA: v86 = *(_DWORD *)a7; if ( *(_DWORD *)a7 > 0x2Fu ) { v87 = *(_QWORD **)(a7 + 8); *(_QWORD *)(a7 + 8) = v87 + 1; } else { v87 = (_QWORD *)(*(_QWORD *)(a7 + 16) + v86); *(_DWORD *)a7 = v86 + 8; } *(_QWORD *)(v103 + 8 * v16) = *v87; break; case 7: v92 = *(_DWORD *)(a7 + 4); if ( v92 > 0xAF ) { v93 = *(double **)(a7 + 8); *(_QWORD *)(a7 + 8) = v93 + 1; } else { v93 = (double *)(*(_QWORD *)(a7 + 16) + v92); *(_DWORD *)(a7 + 4) = v92 + 16; } v94 = *v93; *(float *)(v103 + 8 * v16) = v94; break; case 8: v90 = *(_DWORD *)(a7 + 4); if ( v90 > 0xAF ) { v91 = *(_QWORD **)(a7 + 8); *(_QWORD *)(a7 + 8) = v91 + 1; } else { v91 = (_QWORD *)(*(_QWORD *)(a7 + 16) + v90); *(_DWORD *)(a7 + 4) = v90 + 16; } *(_QWORD *)(v103 + 8 * v16) = *v91; break; default: *(_QWORD *)(v103 + 8 * v16) = 0LL; break; } if ( v16 == v10 - 1 ) break; ++v16; } } uprv_free_75(); uprv_free_75(); LABEL_15: v17 = a2; v18 = 0x1290900000000LL; while ( !a4 || *(int *)(a4 + 8) >= 0 ) { v19 = *v17; v20 = v17; if ( *v17 && v19 != 37 ) { do { v21 = v20; v19 = v20[1]; ++v20; } while ( v19 && v19 != 37 ); if ( v17 < v20 ) { v100 = v20; v22 = (*a1)(a3, v17, v20 - v17); v20 = v100; *a6 += v22; v19 = v21[1]; } } if ( !v19 ) { v67 = v20; goto LABEL_116; } v23 = v20 + 1; v108 = -1LL; v107 = 0LL; WORD2(v107) = 32; v24 = v20[1]; v109 = -1; v106 = -1LL; if ( (unsigned __int16)(v24 - 48) <= 9u ) { v56 = v20[2]; v57 = v20 + 2; v58 = (unsigned __int16)v24 - 48; v109 = v58; if ( (unsigned __int16)(v56 - 48) <= 9u ) { do { ++v57; v58 = v56 + 10 * v58 - 48; v56 = *v57; } while ( (unsigned __int16)(v56 - 48) <= 9u ); v109 = v58; } if ( (_WORD)v56 == 36 ) { v24 = v57[1]; v23 = v57 + 1; } else { v109 = -1; } } while ( 1 ) { if ( (unsigned __int16)v24 > 0x30u ) { v25 = v23 + 1; goto LABEL_29; } if ( !_bittest64(&v18, v24) ) break; v38 = v23++; v39 = v24 - 32; v24 = v38[1]; switch ( v39 ) { case 0: BYTE9(v107) = 1; BYTE7(v107) = 1; break; case 3: BYTE6(v107) = 1; break; case 8: v40 = ufmt_digitvalue_75(v24); v41 = v38[2]; v42 = v40; WORD2(v107) = v40; v43 = ufmt_digitvalue_75(v41); v44 = v38[3]; v45 = v43 + 16 * v42; WORD2(v107) = v45; v46 = ufmt_digitvalue_75(v44); v47 = v38[4]; v48 = v46 + 16 * v45; WORD2(v107) = v48; v49 = ufmt_digitvalue_75(v47); v24 = v38[6]; v23 = v38 + 6; WORD2(v107) = v49 + 16 * v48; break; case 11: BYTE9(v107) = 1; break; case 13: BYTE8(v107) = 1; break; case 16: BYTE10(v107) = 1; WORD2(v107) = 48; break; default: continue; } } if ( (_WORD)v24 != 42 ) { v25 = v23 + 1; LABEL_29: if ( (unsigned __int16)(v24 - 48) <= 9u ) { v26 = v23[1]; v27 = v24 - 48; HIDWORD(v106) = v27; if ( (unsigned __int16)(v26 - 48) > 9u ) { v23 = v25++; } else { do { v59 = v25++; v27 = v26 + 10 * v27 - 48; v26 = *v25; } while ( (unsigned __int16)(v26 - 48) <= 9u ); v23 = v25; HIDWORD(v106) = v27; v25 = v59 + 2; } } else { LOWORD(v26) = *v23; v27 = HIDWORD(v106); } LABEL_31: if ( (_WORD)v26 == 46 ) goto LABEL_80; LABEL_32: v28 = v106; goto LABEL_33; } LOWORD(v26) = v23[1]; HIDWORD(v106) = -2; v54 = v23 + 1; LOWORD(v55) = v26; if ( (unsigned __int16)(v26 - 48) <= 9u ) { v55 = v23[2]; v54 = v23 + 2; v64 = (unsigned __int16)v26 - 48; LODWORD(v108) = v64; if ( (unsigned __int16)(v55 - 48) <= 9u ) { do { ++v54; v64 = v55 + 10 * v64 - 48; v55 = *v54; } while ( (unsigned __int16)(v55 - 48) <= 9u ); LODWORD(v108) = v64; } } if ( (_WORD)v55 == 36 ) { LOWORD(v26) = v54[1]; v23 = v54 + 1; v27 = -2; v25 = v54 + 2; goto LABEL_31; } v25 = v23 + 2; LODWORD(v108) = -1; ++v23; v27 = -2; if ( (_WORD)v26 != 46 ) goto LABEL_32; LABEL_80: v26 = v23[1]; if ( (_WORD)v26 == 42 ) { LOWORD(v26) = v23[2]; LODWORD(v106) = -2; if ( (unsigned __int16)(v26 - 48) <= 9u ) { v76 = v23 + 3; v77 = v23[3]; v78 = (unsigned __int16)v26 - 48; v79 = v76; HIDWORD(v108) = v78; if ( (unsigned __int16)(v77 - 48) <= 9u ) { do { ++v79; v78 = v77 + 10 * v78 - 48; v77 = *v79; } while ( (unsigned __int16)(v77 - 48) <= 9u ); HIDWORD(v108) = v78; } if ( (_WORD)v77 != 36 ) { v25 = v76; HIDWORD(v108) = -1; v28 = -2; goto LABEL_40; } LOWORD(v26) = v79[1]; v23 = v79 + 1; v28 = -2; v25 = v79 + 2; } else { v25 = v23 + 3; v28 = -2; v23 += 2; } } else if ( (unsigned __int16)(v26 - 48) <= 9u ) { v28 = v26 - 48; v26 = v23[2]; v65 = v23 + 2; v25 = v23 + 3; LODWORD(v106) = v28; v23 += 2; if ( (unsigned __int16)(v26 - 48) <= 9u ) { do { v66 = v65++; v28 = v26 + 10 * v28 - 48; v26 = *v65; } while ( (unsigned __int16)(v26 - 48) <= 9u ); LODWORD(v106) = v28; v25 = v66 + 2; v23 = v65; } } else { v23 = v25; v28 = v106; ++v25; } LABEL_33: if ( (v26 & 0xFFDF) == 76 || (_WORD)v26 == 104 ) { v29 = v23[1]; if ( (_WORD)v26 == 104 ) { BYTE12(v107) = 1; ++v25; LOWORD(v26) = v29; } else if ( (_WORD)v26 == 108 ) { if ( v29 == 108 ) { BYTE14(v107) = 1; LOWORD(v26) = v23[2]; v25 = v23 + 3; } else { BYTE13(v107) = 1; ++v25; LOWORD(v26) = v29; } } else { if ( (_WORD)v26 == 76 ) BYTE11(v107) = 1; ++v25; LOWORD(v26) = v29; } } LABEL_40: WORD1(v107) = v26; LOWORD(v107) = v26; if ( v27 == -2 ) { if ( (_DWORD)v108 != -1 || ((v60 = *(_DWORD *)a7, *(_DWORD *)a7 > 0x2Fu) ? (v61 = *(int **)(a7 + 8), *(_QWORD *)(a7 + 8) = v61 + 2) : (v61 = (int *)(*(_QWORD *)(a7 + 16) + v60), *(_DWORD *)a7 = v60 + 8), v27 = *v61, HIDWORD(v106) = v27, v27 < 0) ) { BYTE8(v107) = 1; HIDWORD(v106) = -v27; } } if ( v28 == -2 ) { if ( HIDWORD(v108) != -1 || ((v62 = *(_DWORD *)a7, *(_DWORD *)a7 > 0x2Fu) ? (v63 = *(_DWORD **)(a7 + 8), *(_QWORD *)(a7 + 8) = v63 + 2) : (v63 = (_DWORD *)(*(_QWORD *)(a7 + 16) + v62), *(_DWORD *)a7 = v62 + 8), LODWORD(v106) = *v63, (int)v106 < 0) ) { LODWORD(v106) = 0; } } v30 = v26 - 32; if ( v30 > 0x6Bu ) goto LABEL_64; v31 = v30; v32 = *((_DWORD *)&g_u_printf_infos + 4 * v30); if ( v109 <= 0 ) { switch ( v32 ) { case 2: HIDWORD(v106) = *a6; goto LABEL_53; case 3: case 4: case 9: v74 = *(_DWORD *)a7; if ( BYTE14(v107) ) { if ( v74 > 0x2F ) { v75 = *(__int64 **)(a7 + 8); *(_QWORD *)(a7 + 8) = v75 + 1; } else { v75 = (__int64 *)(*(_QWORD *)(a7 + 16) + v74); *(_DWORD *)a7 = v74 + 8; } v105 = *v75; } else { if ( v74 > 0x2F ) { v85 = *(int **)(a7 + 8); *(_QWORD *)(a7 + 8) = v85 + 2; } else { *(_DWORD *)a7 = v74 + 8; v85 = (int *)(*(_QWORD *)(a7 + 16) + v74); } v105 = *v85; } break; case 5: case 6: case 10: LABEL_53: v36 = *(_DWORD *)a7; if ( *(_DWORD *)a7 > 0x2Fu ) { v37 = *(__int64 **)(a7 + 8); *(_QWORD *)(a7 + 8) = v37 + 1; } else { v37 = (__int64 *)(*(_QWORD *)(a7 + 16) + v36); *(_DWORD *)a7 = v36 + 8; } v105 = *v37; break; case 7: v71 = *(_DWORD *)(a7 + 4); if ( v71 <= 0xAF ) { v72 = (double *)(*(_QWORD *)(a7 + 16) + v71); *(_DWORD *)(a7 + 4) = v71 + 16; } else { v72 = *(double **)(a7 + 8); *(_QWORD *)(a7 + 8) = v72 + 1; } v73 = *v72; *(float *)&v105 = v73; break; case 8: v69 = *(_DWORD *)(a7 + 4); if ( v69 > 0xAF ) { v70 = *(__int64 **)(a7 + 8); *(_QWORD *)(a7 + 8) = v70 + 1; } else { v70 = (__int64 *)(*(_QWORD *)(a7 + 16) + v69); *(_DWORD *)(a7 + 4) = v69 + 16; } v105 = *v70; break; default: LABEL_51: v105 = 0LL; break; } } else { v33 = --v109; switch ( v32 ) { case 2: HIDWORD(v106) = *a6; goto LABEL_46; case 3: case 4: case 5: case 6: case 9: case 10: LABEL_46: v105 = *(_QWORD *)(v103 + 8LL * v33); break; case 7: LODWORD(v105) = *(_DWORD *)(v103 + 8LL * v33); break; case 8: v105 = *(_QWORD *)(v103 + 8LL * v33); break; default: goto LABEL_51; } } v34 = (__int64 (__fastcall *)(__int64 (__fastcall **)(__int64, unsigned __int16 *, __int64), __int64, __int64, __int64 *, __int64 *))*((_QWORD *)&g_u_printf_infos + 2 * v31 + 1); if ( v34 ) { v101 = v25; *a6 += v34(a1, a3, a5, &v106, &v105); v35 = v101; } else { LABEL_64: v102 = v25; v50 = (*a1)(a3, a2, v25 - v17); v35 = v102; *a6 += v50; } v17 = v35; } v67 = v17; LABEL_116: if ( v103 ) uprv_free_75(); return v67 - a2; }
This opensource is libicu
__int64 *__fastcall ufmt_ptou_75(char16_t *a1, int *a2, __int64 a3, char a4) { __int64 *i; // r9 bool v5; // cc char16_t v6; // r8 char16_t v7; // ax char16_t v8; // ax char16_t v9; // dx __int64 *result; // rax int v11; // eax __int16 v12; // dx unsigned __int8 v13; // r11 char16_t v14; // r8 char16_t v15; // ax char16_t v16; // ax __int64 v17[2]; // [rsp+0h] [rbp-10h] BYREF v17[0] = a3; for ( i = (__int64 *)((char *)v17 + 7); ; i = result ) { v11 = (int)*(unsigned __int8 *)i >> 4; v12 = *(_BYTE *)i & 0xF; v13 = *(_BYTE *)i & 0xF; if ( a4 ) break; v14 = v11 + 55; v5 = v11 <= 9; v15 = v11 + 48; if ( !v5 ) v15 = v14; *a1 = v15; v16 = v12 + 55; if ( v13 <= 9u ) v16 = v12 + 48; a1 += 2; *(a1 - 1) = v16; result = (__int64 *)((char *)i - 1); if ( v17 == i ) goto LABEL_14; LABEL_7: ; } v5 = v11 <= 9; v6 = v11 + 87; v7 = v11 + 48; if ( !v5 ) v7 = v6; *a1 = v7; v8 = v12 + 48; v9 = v12 + 87; if ( v13 <= 9u ) v9 = v8; result = (__int64 *)((char *)i - 1); a1 += 2; *(a1 - 1) = v9; if ( v17 != i ) goto LABEL_7; LABEL_14: *a2 = 16; return result; }
This opensource is libicu
__int64 __fastcall ufile_getch_75(__int64 a1, _WORD *a2) { __int16 *v2; // rax _WORD *v3; // rdx __int16 v4; // ax __int64 result; // rax _WORD *v6; // rdx *a2 = -1; v2 = *(__int16 **)(a1 + 24); if ( (unsigned __int64)v2 >= *(_QWORD *)(a1 + 32) ) { ufile_fill_uchar_buffer_75(a1); v6 = *(_WORD **)(a1 + 24); result = 0LL; if ( (unsigned __int64)v6 < *(_QWORD *)(a1 + 32) ) { *(_QWORD *)(a1 + 24) = v6 + 1; *a2 = *v6; return 1LL; } } else { v3 = v2 + 1; v4 = *v2; *(_QWORD *)(a1 + 24) = v3; *a2 = v4; return 1LL; } return result; }
This opensource is libicu
// attributes: thunk __int64 ucnv_getName_75() { return ucnv_getName_75(); }
This opensource is libicu
unsigned __int64 __fastcall ufile_fill_uchar_buffer_75(__int64 a1) { __int64 v1; // rbp unsigned __int64 v2; // r12 __int64 v3; // rax __int64 v4; // rdx char v6[1032]; // [rsp+30h] [rbp-448h] BYREF unsigned __int64 v7; // [rsp+438h] [rbp-40h] v7 = __readfsqword(0x28u); if ( *(_QWORD *)(a1 + 8) ) { v1 = (__int64)(*(_QWORD *)(a1 + 32) - *(_QWORD *)(a1 + 24)) >> 1; if ( *(_DWORD *)(a1 + 2156) || (int)v1 <= 0 ) { if ( (_DWORD)v1 ) u_memmove_75(); if ( *(_QWORD *)(a1 + 16) ) ucnv_getMinCharSize_75(); if ( *(_DWORD *)(a1 + 2156) ) { v2 = (int)__fread_chk(); } else if ( __fgets_chk() ) { v2 = strlen(v6); } else { v2 = 0LL; } if ( *(_QWORD *)(a1 + 16) ) { feof(*(FILE **)(a1 + 8)); ucnv_toUnicode_75(); v3 = a1 + 104 + 2LL * (int)v1; } else { u_charsToUChars_75(); v3 = a1 + 104 + 2LL * (int)v1 + 2 * v2; } v4 = *(_QWORD *)(a1 + 40); *(_QWORD *)(a1 + 32) = v3; *(_QWORD *)(a1 + 24) = v4; } } return __readfsqword(0x28u) ^ v7; }
This opensource is libicu
int __fastcall u_fflush_75(_QWORD *a1) { FILE *v2; // rdi _WORD *v3; // rax ufile_flush_translit_75(); ufile_flush_io_75(a1); v2 = (FILE *)a1[1]; if ( v2 ) { LODWORD(v3) = fflush(v2); } else { v3 = (_WORD *)a1[3]; if ( (unsigned __int64)v3 < a1[4] ) { a1[3] = v3 + 1; *v3 = 0; } } return (int)v3; }
This opensource is libicu
__int64 __fastcall u_scanf_uchar_handler(__int64 a1, __int64 a2, _WORD **a3, __int64 a4, __int64 a5, _DWORD *a6) { if ( *(int *)a2 < 0 ) *(_DWORD *)a2 = 1; *(_BYTE *)(a2 + 13) = 0; return u_scanf_ustring_handler(a1, a2, a3, a4, a5, a6); }
This opensource is libicu
// attributes: thunk __int64 u_charsToUChars_75() { return u_charsToUChars_75(); }
This opensource is libicu
__int64 register_tm_clones(void) { return 0LL; }
This opensource is libicu
// attributes: thunk int fclose(FILE *stream) { return fclose(stream); }
This opensource is libicu
__int64 __fastcall u_vsscanf_u_75(__int64 a1, __int64 a2, __int64 a3) { unsigned int v4; // r12d __int64 v6[6]; // [rsp+0h] [rbp-8B8h] BYREF char v7[56]; // [rsp+30h] [rbp-888h] BYREF __int16 v8; // [rsp+68h] [rbp-850h] char v9; // [rsp+868h] [rbp-50h] unsigned __int64 v10; // [rsp+878h] [rbp-40h] v4 = 0; v10 = __readfsqword(0x28u); v6[5] = a1; v6[3] = a1; v9 = 0; memset(v6, 0, 24); v8 = 0; v6[4] = a1 + 2LL * (int)u_strlen_75(); if ( u_locbund_init_75((__int64)v7, "en_US_POSIX") ) { v4 = u_scanf_parse_75(v6, a2, a3); u_locbund_close_75((__int64)v7); } return v4; }
This opensource is libicu
// attributes: thunk __int64 unum_parseDouble_75() { return unum_parseDouble_75(); }
This opensource is libicu
__int64 __fastcall u_scanf_integer_handler(__int64 a1, __int64 a2, _WORD **a3, __int64 a4, __int64 a5, _DWORD *a6) { int v6; // r13d __int64 v7; // r15 unsigned int v8; // r13d __int64 v9; // rax _WORD *v12; // [rsp+8h] [rbp-50h] v12 = *a3; v6 = u_scanf_skip_leading_ws(a1, *(_WORD *)(a2 + 6)); ufile_fill_uchar_buffer_75(a1); if ( !u_locbund_getNumberFormat_75(a1 + 48, 1) ) return 0LL; v7 = unum_clone_75(); unum_setAttribute_75(); v8 = u_scanf_skip_leading_positive_sign(a1, v7, 0) + v6; v9 = unum_parseInt64_75(); if ( !*(_BYTE *)(a2 + 8) ) { if ( *(_BYTE *)(a2 + 10) ) { *v12 = v9; } else if ( *(_BYTE *)(a2 + 12) ) { *(_QWORD *)v12 = v9; } else { *(_DWORD *)v12 = v9; } } *(_QWORD *)(a1 + 24) = *(_QWORD *)(a1 + 24); unum_close_75(); *a6 = *(_BYTE *)(a2 + 8) == 0; return v8; }
This opensource is libicu
// attributes: thunk __int64 std::ios::clear() { return _ZNSt9basic_iosIcSt11char_traitsIcEE5clearESt12_Ios_Iostate(); }
This opensource is libicu
// attributes: thunk __int64 uprv_pow10_75() { return uprv_pow10_75(); }
This opensource is libicu
__int64 __fastcall u_scanf_octal_handler(__int64 a1, __int64 a2, _WORD **a3, __int64 a4, __int64 a5, _DWORD *a6) { __int16 v9; // si _WORD *v10; // r13 int v11; // ebp const char16_t *v12; // rdi int v13; // eax __int64 v14; // rdx __int64 v15; // rax int v16; // ecx char v17; // dl int v19; // [rsp+4h] [rbp-34h] BYREF unsigned __int64 v20; // [rsp+8h] [rbp-30h] v9 = *(_WORD *)(a2 + 6); v10 = *a3; v20 = __readfsqword(0x28u); v11 = u_scanf_skip_leading_ws(a1, v9); ufile_fill_uchar_buffer_75(a1); v12 = *(const char16_t **)(a1 + 24); v13 = *(_DWORD *)a2; v14 = (__int64)(*(_QWORD *)(a1 + 32) - (_QWORD)v12) >> 1; v19 = v14; if ( v13 != -1 ) { if ( (int)v14 > v13 ) LODWORD(v14) = v13; v19 = v14; } v15 = ufmt_uto64_75(v12, &v19, 8); v16 = v19; *(_QWORD *)(a1 + 24) += 2LL * v19; v17 = *(_BYTE *)(a2 + 8); if ( !v17 ) { v17 = *(_BYTE *)(a2 + 10); if ( v17 ) { *v10 = v15; v17 = *(_BYTE *)(a2 + 8); } else if ( *(_BYTE *)(a2 + 12) ) { *(_QWORD *)v10 = v15; } else { *(_DWORD *)v10 = v15; v17 = *(_BYTE *)(a2 + 8); v16 = v19; } } *a6 = v17 == 0; return (unsigned int)(v11 + v16); }
This opensource is libicu
// attributes: thunk __int64 __fgets_chk() { return _fgets_chk(); }
This opensource is libicu
std::istream *__fastcall icu_75::operator>>(std::istream *this, icu_75::UnicodeString *a2) { std::istream *v2; // r12 char v4; // bp int v5; // ebx int v6; // eax int v7; // r12d __int16 v8; // r14 __int16 v9; // dx __int16 v10; // ax int v11; // edx char v12; // al char v13; // si char *i; // rbx char v15; // [rsp+1Bh] [rbp-CDh] int v16; // [rsp+1Ch] [rbp-CCh] std::istream *v17; // [rsp+48h] [rbp-A0h] char v18; // [rsp+59h] [rbp-8Fh] BYREF __int16 v19; // [rsp+5Ah] [rbp-8Eh] BYREF int v20; // [rsp+5Ch] [rbp-8Ch] __int16 *v21; // [rsp+60h] [rbp-88h] char *v22; // [rsp+68h] [rbp-80h] __int16 v23[15]; // [rsp+70h] [rbp-78h] BYREF char v24[25]; // [rsp+8Fh] [rbp-59h] BYREF unsigned __int64 v25; // [rsp+A8h] [rbp-40h] v2 = this; v25 = __readfsqword(0x28u); if ( (*((_BYTE *)this + *(_QWORD *)(*(_QWORD *)this - 24LL) + 32) & 5) != 0 ) return v2; v20 = 0; u_getDefaultConverter_75(); v16 = 0; v4 = 1; v21 = v23; while ( 1 ) { v18 = std::istream::get(v2); if ( (*(_DWORD *)((_BYTE *)v2 + *(_QWORD *)(*(_QWORD *)v2 - 24LL) + 32) & 2) != 0 ) { if ( !v4 ) std::ios::clear(); v15 = 0; } else { v15 = 1; } v20 = 0; v21 = v23; v22 = &v18; ucnv_toUnicode_75(); if ( v20 > 0 ) { std::ios::clear(); goto LABEL_38; } if ( v21 != v23 ) break; v24[++v16] = v18; LABEL_11: if ( !v15 ) goto LABEL_38; } v5 = v21 - v23; if ( v5 <= 0 ) { LABEL_25: v16 = 0; goto LABEL_11; } v17 = v2; v6 = 0; while ( 2 ) { v7 = v6 + 1; v8 = v23[v6]; if ( (v8 & 0xFC00) == 55296 && v5 != v7 ) { v9 = v23[v7]; if ( (v9 & 0xFC00) == 56320 ) { v7 = v6 + 2; v8 = v9 + (v8 << 10) + 9216; } } if ( !(unsigned __int8)u_isWhitespace_75() ) { if ( v4 ) { v10 = *((_WORD *)a2 + 4); if ( (v10 & 1) != 0 ) { icu_75::UnicodeString::unBogus(a2); } else { if ( v10 < 0 ) v11 = *((_DWORD *)a2 + 3); else v11 = v10 >> 5; if ( v11 ) *((_WORD *)a2 + 4) &= 0x1Fu; } } v19 = v8; v4 = 0; icu_75::UnicodeString::doAppend(a2, (const char16_t *)&v19, 0, 1); if ( v7 >= v5 ) { LABEL_24: v2 = v17; goto LABEL_25; } goto LABEL_18; } if ( v4 ) { if ( v7 >= v5 ) goto LABEL_24; LABEL_18: v6 = v7; continue; } break; } v12 = v18; v2 = v17; v24[v16 + 1] = v18; v13 = v12; for ( i = &v24[v16 + 1]; ; v13 = *i ) { --i; std::istream::putback(v17, v13); if ( i == v24 ) break; } LABEL_38: u_releaseDefaultConverter_75(); return v2; }
This opensource is libicu
// attributes: thunk __int64 uprv_free_75() { return uprv_free_75(); }
This opensource is libicu
__int64 __fastcall u_printf_count_handler(__int64 a1, __int64 a2, __int64 a3, __int64 a4, _DWORD **a5) { **a5 = *(_DWORD *)(a4 + 4); return 0LL; }
This opensource is libicu
__int64 __fastcall u_scanf_pointer_handler(__int64 a1, __int64 a2, __int64 **a3, __int64 a4, __int64 a5, _DWORD *a6) { __int16 v9; // si __int64 *v10; // r13 int v11; // ebp const char16_t *v12; // rdi int v13; // ecx __int64 v14; // rdx int v15; // eax __int64 v16; // rax char v17; // cl int v18; // eax __int64 result; // rax int v20; // [rsp+4h] [rbp-34h] BYREF unsigned __int64 v21; // [rsp+8h] [rbp-30h] v9 = *(_WORD *)(a2 + 6); v10 = *a3; v21 = __readfsqword(0x28u); v11 = u_scanf_skip_leading_ws(a1, v9); ufile_fill_uchar_buffer_75(a1); v12 = *(const char16_t **)(a1 + 24); v13 = *(_DWORD *)a2; v14 = (__int64)(*(_QWORD *)(a1 + 32) - (_QWORD)v12) >> 1; v20 = v14; v15 = v14; if ( v13 != -1 ) { v15 = v13; if ( (int)v14 <= v13 ) v15 = v14; v20 = v15; } if ( v15 > 16 ) v20 = 16; v16 = ufmt_utop_75(v12, &v20); v17 = *(_BYTE *)(a2 + 8); if ( !v17 ) *v10 = v16; v18 = v20; *(_QWORD *)(a1 + 24) += 2LL * v20; result = (unsigned int)(v11 + v18); *a6 = v17 == 0; return result; }
This opensource is libicu
// attributes: thunk __int64 __memmove_chk() { return _memmove_chk(); }
This opensource is libicu
__int64 io_cleanup(void) { if ( gCleanupFunctions ) { gCleanupFunctions(); gCleanupFunctions = 0LL; } if ( qword_F338 ) { qword_F338(); qword_F338 = 0LL; } return 1LL; }
This opensource is libicu
// attributes: thunk void *memcpy(void *dest, const void *src, size_t n) { return memcpy(dest, src, n); }
This opensource is libicu
// attributes: thunk __int64 __fastcall icu_75::UnicodeString::doAppend(icu_75::UnicodeString *this, const char16_t *a2, int a3, int a4) { return _ZN6icu_7513UnicodeString8doAppendEPKDsii(this, a2, a3, a4); }
This opensource is libicu
// attributes: thunk __int64 ucln_registerCleanup_75() { return ucln_registerCleanup_75(); }
This opensource is libicu
__int64 __fastcall u_fgetlocale_75(__int64 a1) { return *(_QWORD *)(a1 + 48); }
This opensource is libicu
__int64 __fastcall ufmt_digitvalue_75(unsigned __int16 a1) { __int64 result; // rax if ( (unsigned __int16)(a1 - 48) <= 9u ) return (unsigned int)a1 - 48; if ( (unsigned __int16)((a1 & 0xFFDF) - 65) > 0x19u ) return 0xFFFFFFFFLL; result = (unsigned int)a1 - 48; if ( a1 > 0x40u ) { result = (unsigned int)a1 - 87; if ( a1 < 0x61u ) return (unsigned int)a1 - 55; } return result; }
This opensource is libicu
// attributes: thunk __int64 ucnv_open_75() { return ucnv_open_75(); }
This opensource is libicu
__int64 __fastcall u_scanf_spellout_handler( __int64 a1, __int64 a2, double **a3, double a4, __int64 a5, __int64 a6, _DWORD *a7) { unsigned int v10; // r12d __int64 NumberFormat_75; // rdi __int64 result; // rax char v13; // cl v10 = u_scanf_skip_leading_ws(a1, *(_WORD *)(a2 + 6)); ufile_fill_uchar_buffer_75(a1); NumberFormat_75 = u_locbund_getNumberFormat_75(a1 + 48, 5); result = 0LL; if ( NumberFormat_75 ) { unum_parseDouble_75(); v13 = *(_BYTE *)(a2 + 8); if ( !v13 ) **a3 = a4; *(_QWORD *)(a1 + 24) = *(_QWORD *)(a1 + 24); result = v10; *a7 = v13 == 0; } return result; }
This opensource is libicu
// attributes: thunk __int64 u_strlen_75() { return u_strlen_75(); }
This opensource is libicu
__int64 __fastcall u_file_write_flush_75(_BYTE *a1, int a2, void ***a3, char a4, char a5) { int v6; // r13d void **v8; // r12 int v9; // edx char *v10; // r14 __int64 v11; // rcx int v12; // eax __int64 v13; // rax _BYTE *v14; // r14 void **v15; // rax __int64 v16; // r12 _BYTE *v18; // r13 char *v19; // rdx signed __int64 v20; // rdx __int64 v21; // rdx __int64 v22; // r15 __int64 v24; // [rsp+0h] [rbp-498h] int v25; // [rsp+10h] [rbp-488h] int v26; // [rsp+24h] [rbp-474h] _BYTE *v27; // [rsp+30h] [rbp-468h] int v28; // [rsp+4Ch] [rbp-44Ch] char ptr[1024]; // [rsp+50h] [rbp-448h] BYREF unsigned __int64 v30; // [rsp+458h] [rbp-40h] v6 = a2; v30 = __readfsqword(0x28u); v27 = a1; if ( a2 < 0 ) v6 = u_strlen_75(); v8 = *a3; if ( !*a3 || !v8[3] ) { v14 = a1; if ( !a3[1] ) goto LABEL_15; goto LABEL_22; } v9 = *((_DWORD *)v8 + 4); v10 = (char *)*v8; v11 = *((int *)v8 + 3); v12 = v9 - v11; if ( v9 > (int)v11 ) { memmove(v10, &v10[2 * v11], 2LL * v12); v8 = *a3; v10 = (char *)**a3; v12 = *((_DWORD *)*a3 + 4) - *((_DWORD *)*a3 + 3); } *((_DWORD *)v8 + 4) = v12; *((_DWORD *)v8 + 3) = 0; if ( 4 * (v6 + v12) <= *((_DWORD *)v8 + 2) ) goto LABEL_12; v25 = 4 * (v6 + v12); if ( v10 ) v13 = uprv_realloc_75(); else v13 = uprv_malloc_75(); *v8 = (void *)v13; v14 = **a3; if ( v14 ) { *((_DWORD *)*a3 + 2) = v25; LABEL_12: u_strncpy_75(); v6 += *((_DWORD *)*a3 + 4); *((_DWORD *)*a3 + 4) = v6; if ( a5 ) { utrans_transUChars_75(); v14 = **a3; *(void **)((char *)*a3 + 12) = 0LL; } else { v28 = v6; utrans_transIncrementalUChars_75(); v15 = *a3; v6 = 0; *((_DWORD *)v15 + 3) = 0; v14 = *v15; *((_DWORD *)v15 + 4) = v28; } } v27 = v14; if ( !a3[1] ) { LABEL_15: v16 = ((char *)a3[4] - (char *)a3[3]) >> 1; if ( v6 < (int)v16 ) v6 -= (a4 == 0) - 1; if ( (int)v16 > v6 ) LODWORD(v16) = v6; u_strncpy_75(); a3[3] = (void **)((char *)a3[3] + 2 * (int)v16); return (unsigned int)v16; } LABEL_22: v18 = &v14[2 * v6]; LODWORD(v16) = 0; while ( 1 ) { v26 = 0; if ( a3[2] ) { ucnv_fromUnicode_75(); v19 = ptr; } else { v21 = (v18 - v14) >> 1; if ( (int)v21 > 1024 ) { v26 = 15; v22 = 1024LL; v24 = 2048LL; } else { v22 = (int)v21; v24 = 2LL * (int)v21; } u_UCharsToChars_75(); v27 += v24; v19 = &ptr[v22]; } v20 = v19 - ptr; if ( (int)v20 > 0 ) { fwrite(ptr, 1uLL, (int)v20, (FILE *)a3[1]); LODWORD(v16) = ((v27 - v14) >> 1) + v16; } if ( v26 != 15 ) break; v14 = v27; } return (unsigned int)v16; }
This opensource is libicu
__int64 __fastcall u_vsnprintf_u_75(__int64 a1, int a2, int a3, __int64 a4) { int v6; // r12d unsigned int v8; // [rsp+Ch] [rbp-8Ch] BYREF __int64 v9; // [rsp+10h] [rbp-88h] BYREF int v10; // [rsp+18h] [rbp-80h] int v11; // [rsp+1Ch] [rbp-7Ch] char v12[56]; // [rsp+20h] [rbp-78h] BYREF unsigned __int64 v13; // [rsp+58h] [rbp-40h] v13 = __readfsqword(0x28u); if ( a2 < 0 ) a2 = 0x7FFFFFFF; v9 = a1; v6 = 0; v8 = 0; v11 = a2; v10 = a2; if ( u_locbund_init_75((__int64)v12, "en_US_POSIX") ) { v6 = u_printf_parse_75( (unsigned int)&g_sprintf_stream_handler, a3, (unsigned int)&v9, (unsigned int)&v9, (unsigned int)v12, (unsigned int)&v8, a4); if ( v10 > 0 ) *(_WORD *)(a1 + 2LL * (v11 - v10)) = 0; u_locbund_close_75((__int64)v12); if ( v6 >= 0 ) return v8; } return (unsigned int)v6; }
This opensource is libicu
int fscanf_4(char **bufp, const char *format, ...) { gcc_va_list va; // [rsp+0h] [rbp-D8h] BYREF unsigned __int64 v4; // [rsp+18h] [rbp-C0h] va_start(va, format); v4 = __readfsqword(0x28u); return u_vfscanf_75((__int64)bufp, format, (__int64)va); }
This opensource is libicu
__int64 __fastcall u_scanf_simple_percent_handler( __int64 a1, __int64 a2, __int64 a3, __int64 a4, __int64 a5, _DWORD *a6) { *a6 = 0; if ( (unsigned __int16)u_fgetc_75() != 37 ) *a6 = -1; return 1LL; }
This opensource is libicu
__int64 __fastcall u_scanf_ustring_handler(__int64 a1, __int64 a2, _WORD **a3, __int64 a4, __int64 a5, _DWORD *a6) { _WORD *v6; // rbp int v7; // ebx char v8; // r14 char v9; // al unsigned int v11; // [rsp+4h] [rbp-54h] unsigned __int16 v13; // [rsp+16h] [rbp-42h] BYREF unsigned __int64 v14; // [rsp+18h] [rbp-40h] v6 = *a3; v14 = __readfsqword(0x28u); v11 = 0; if ( *(_BYTE *)(a2 + 13) ) v11 = u_scanf_skip_leading_ws(a1, *(_WORD *)(a2 + 6)); if ( *(_DWORD *)a2 != -1 && *(int *)a2 <= 0 ) { LABEL_15: v9 = *(_BYTE *)(a2 + 8); if ( v9 ) goto LABEL_16; goto LABEL_22; } v7 = 0; while ( 1 ) { v8 = ufile_getch_75(a1, &v13); if ( v8 != 1 || *(_BYTE *)(a2 + 13) && (*(_WORD *)(a2 + 6) == v13 || (unsigned __int8)u_isWhitespace_75()) ) break; if ( !*(_BYTE *)(a2 + 8) ) *v6++ = v13; if ( *(_DWORD *)a2 <= ++v7 && *(_DWORD *)a2 != -1 ) { v11 += v7; goto LABEL_15; } } v9 = *(_BYTE *)(a2 + 8); v11 += v7; if ( !v9 ) { if ( (*(_DWORD *)a2 > v7 || *(_DWORD *)a2 == -1) && v8 ) u_fungetc_75(v13, a1); LABEL_22: if ( *(_BYTE *)(a2 + 13) ) *v6 = 0; v9 = *(_BYTE *)(a2 + 8); } LABEL_16: *a6 = v9 == 0; return v11; }
This opensource is libicu
// attributes: thunk __int64 ucnv_fromUnicode_75() { return ucnv_fromUnicode_75(); }
This opensource is libicu
__int64 __fastcall u_fgetcodepage_75(__int64 a1) { if ( *(_QWORD *)(a1 + 16) ) return ucnv_getName_75(); else return 0LL; }
This opensource is libicu
__int64 u_printf_u_75(__int64 a1, ...) { int stdout_75; // eax gcc_va_list va; // [rsp+0h] [rbp-D8h] BYREF unsigned __int64 v4; // [rsp+18h] [rbp-C0h] __int64 v5; // [rsp+28h] [rbp-B0h] __int64 v6; // [rsp+30h] [rbp-A8h] __int64 v7; // [rsp+38h] [rbp-A0h] va_start(va, a1); v5 = va_arg(va, _QWORD); v6 = va_arg(va, _QWORD); v7 = va_arg(va, _QWORD); va_end(va); va_start(va, a1); v4 = __readfsqword(0x28u); stdout_75 = u_get_stdout_75(a1, v5, v6, v7); return u_vfprintf_u_75(stdout_75, a1, (__int64)va); }
This opensource is libicu
// attributes: thunk __int64 unum_clone_75() { return unum_clone_75(); }
This opensource is libicu
__int64 __fastcall u_printf_string_handler(__int64 a1, __int64 a2, __int64 a3, int *a4, const char **a5) { const char *v6; // r15 int v7; // eax char16_t *v8; // rbp __int64 v9; // rcx int v10; // eax bool v11; // r14 __int64 result; // rax char16_t *v13; // rax unsigned int v14; // [rsp+Ch] [rbp-14Ch] int v15; // [rsp+Ch] [rbp-14Ch] char16_t v16[132]; // [rsp+10h] [rbp-148h] BYREF unsigned __int64 v17; // [rsp+118h] [rbp-40h] v6 = *a5; v17 = __readfsqword(0x28u); if ( !v6 ) { v11 = 0; v8 = (char16_t *)L"(null)"; v9 = (unsigned int)u_strlen_75(); v10 = *a4; if ( *a4 == -1 ) return (*(__int64 (__fastcall **)(__int64, int *, const __int16 *, __int64))(a1 + 8))(a2, a4, L"(null)", v9); LABEL_5: if ( (int)v9 > v10 ) v9 = (unsigned int)v10; goto LABEL_7; } v7 = strlen(v6); if ( v7 + 1 > 63 ) { v15 = v7 + 1; v13 = (char16_t *)uprv_malloc_75(); v8 = ufmt_defaultCPToUnicode_75(v6, v15, v13); if ( !v8 ) return 0LL; } else { v8 = ufmt_defaultCPToUnicode_75(v6, v7 + 1, v16); } v9 = (unsigned int)u_strlen_75(); v10 = *a4; v11 = v8 != v16 && v8 != (char16_t *)L"(null)"; if ( *a4 != -1 ) goto LABEL_5; LABEL_7: result = (*(__int64 (__fastcall **)(__int64, int *, char16_t *, __int64))(a1 + 8))(a2, a4, v8, v9); if ( v11 ) { v14 = result; uprv_free_75(); return v14; } return result; }
This opensource is libicu
// attributes: thunk __int64 unum_setSymbol_75() { return unum_setSymbol_75(); }
This opensource is libicu
__int64 __fastcall u_file_write_75(_BYTE *a1, int a2, void ***a3) { return u_file_write_flush_75(a1, a2, a3, 0, 0); }
This opensource is libicu
void *deregister_tm_clones() { return &_TMC_END__; }
This opensource is libicu
int fscanf_3(char **bufp, const char *format, ...) { gcc_va_list va; // [rsp+0h] [rbp-D8h] BYREF unsigned __int64 v4; // [rsp+18h] [rbp-C0h] va_start(va, format); v4 = __readfsqword(0x28u); return u_vfscanf_u_75((__int64)bufp, (__int64)format, (__int64)va); }
This opensource is libicu
__int64 __fastcall u_printf_integer_handler(__int64 a1, __int64 a2, __int64 a3, int *a4) { __int64 NumberFormat_75; // r12 int Attribute_75; // r15d char v7; // dl unsigned int v8; // r13d int v10; // [rsp+14h] [rbp-1054h] BYREF int v11; // [rsp+18h] [rbp-1050h] int v12; // [rsp+1Ch] [rbp-104Ch] char v13[24]; // [rsp+20h] [rbp-1048h] BYREF __int16 v14[1028]; // [rsp+820h] [rbp-848h] BYREF unsigned __int64 v15; // [rsp+1028h] [rbp-40h] v15 = __readfsqword(0x28u); v10 = 2048; v11 = 0; v14[0] = 0; NumberFormat_75 = u_locbund_getNumberFormat_75(a3, 1); if ( NumberFormat_75 ) { Attribute_75 = *a4; if ( *a4 == -1 ) { v7 = *((_BYTE *)a4 + 17); if ( !v7 ) goto LABEL_4; } else { Attribute_75 = unum_getAttribute_75(); unum_setAttribute_75(); v7 = *((_BYTE *)a4 + 17); if ( !v7 ) goto LABEL_4; } u_printf_set_sign(NumberFormat_75, (_BYTE *)a4 + 15, v7, (__int64)v14, &v10); LABEL_4: v8 = unum_formatInt64_75(); if ( v11 > 0 ) v8 = 0; if ( Attribute_75 == -1 ) { if ( !*((_BYTE *)a4 + 17) ) return (*(__int64 (__fastcall **)(__int64, int *, char *, _QWORD))(a1 + 8))(a2, a4, v13, v8); } else { unum_setAttribute_75(); if ( !*((_BYTE *)a4 + 17) ) return (*(__int64 (__fastcall **)(__int64, int *, char *, _QWORD))(a1 + 8))(a2, a4, v13, v8); } v12 = 0; unum_setTextAttribute_75(); return (*(__int64 (__fastcall **)(__int64, int *, char *, _QWORD))(a1 + 8))(a2, a4, v13, v8); } return 0LL; }
This opensource is libicu
__int64 __fastcall u_scanf_parse_75(_QWORD *a1, __int16 *a2, int *a3) { __int16 v5; // ax __int16 v6; // r8 unsigned __int16 *i; // r14 unsigned __int16 v8; // ax unsigned __int16 v9; // dx unsigned __int16 *v10; // rsi int v11; // ecx unsigned __int16 *v12; // rdx int v13; // ecx int v14; // ecx unsigned __int16 *v15; // rdi unsigned __int16 v16; // cx unsigned __int16 v17; // ax __int64 v18; // r13 int v19; // r14d int *v20; // rsi unsigned int v21; // eax __int64 *v22; // rdx __int64 (__fastcall *v23)(_QWORD *, __int64 *, __int64 *, __int16 *, int *, int *); // rax unsigned __int16 v24; // di __int16 v25; // ax unsigned __int16 v26; // di __int16 v27; // r13 __int16 v28; // ax unsigned __int16 v29; // di __int16 v30; // r13 __int16 v31; // ax unsigned __int16 v32; // di unsigned __int16 *v34; // rcx int v35; // [rsp+0h] [rbp-88h] unsigned int v36; // [rsp+4h] [rbp-84h] int v38; // [rsp+20h] [rbp-68h] BYREF int v39; // [rsp+24h] [rbp-64h] BYREF __int64 v40; // [rsp+28h] [rbp-60h] BYREF __int64 v41; // [rsp+30h] [rbp-58h] BYREF int v42; // [rsp+38h] [rbp-50h] __int16 v43; // [rsp+3Ch] [rbp-4Ch] int v44; // [rsp+40h] [rbp-48h] unsigned __int64 v45; // [rsp+48h] [rbp-40h] v45 = __readfsqword(0x28u); v39 = 0; v35 = 0; v36 = 0; while ( 1 ) { while ( 1 ) { while ( 1 ) { v5 = *a2; if ( *a2 == 37 ) break; if ( !v5 || (v6 = u_fgetc_75(a1), v5 = *a2, *a2 != v6) ) { if ( v5 != 37 ) return v36; break; } ++a2; } v44 = -1; i = (unsigned __int16 *)(a2 + 1); v43 = 256; v8 = a2[1]; v41 = 0x200000FFFFFFFFLL; v42 = 0; if ( (unsigned __int16)(v8 - 48) > 9u ) goto LABEL_37; v9 = a2[2]; v10 = (unsigned __int16 *)(a2 + 2); v11 = v8 - 48; v44 = v11; if ( (unsigned __int16)(v9 - 48) <= 9u ) { do { ++v10; v11 = v9 + 10 * v11 - 48; v9 = *v10; } while ( (unsigned __int16)(*v10 - 48) <= 9u ); v44 = v11; } if ( v9 == 36 ) { v8 = v10[1]; for ( i = v10 + 1; ; v8 = *i ) { LABEL_37: if ( v8 == 42 ) { LOBYTE(v42) = 1; ++i; } else { if ( v8 != 40 ) goto LABEL_12; v24 = i[1]; i += 6; v25 = ufmt_digitvalue_75(v24); v26 = *(i - 4); v27 = v25; HIWORD(v41) = v25; v28 = ufmt_digitvalue_75(v26); v29 = *(i - 3); v30 = v28 + 16 * v27; HIWORD(v41) = v30; v31 = ufmt_digitvalue_75(v29); v32 = *(i - 2); HIWORD(v41) = v31 + 16 * v30; HIWORD(v41) = ufmt_digitvalue_75(v32) + 16 * HIWORD(v41); } } } v44 = -1; LABEL_12: v12 = i + 1; if ( (unsigned __int16)(v8 - 48) <= 9u ) { v13 = v8; v8 = i[1]; v14 = v13 - 48; LODWORD(v41) = v14; if ( (unsigned __int16)(v8 - 48) > 9u ) { v34 = i + 2; ++i; v12 = v34; } else { do { v15 = v12++; v14 = v8 + 10 * v14 - 48; v8 = *v12; } while ( (unsigned __int16)(*v12 - 48) <= 9u ); LODWORD(v41) = v14; i = v12; v12 = v15 + 2; } } if ( (v8 & 0xFFDF) == 76 || v8 == 104 ) { v16 = i[1]; if ( v8 == 104 ) { BYTE2(v42) = 1; ++v12; v8 = v16; } else if ( v8 == 108 ) { if ( v16 == 108 ) { LOBYTE(v43) = 1; v8 = i[2]; v12 = i + 3; } else { HIBYTE(v42) = 1; ++v12; v8 = v16; } } else { if ( v8 == 76 ) BYTE1(v42) = 1; ++v12; v8 = v16; } } WORD2(v41) = v8; v17 = v8 - 32; v38 = ((char *)v12 - (char *)a2) >> 1; a2 += v38; if ( v17 <= 0x6Bu ) { v18 = v17; v19 = *((_DWORD *)&g_u_scanf_infos + 4 * v17); if ( v19 == 2 ) { if ( !(_BYTE)v42 ) { v20 = a3; LODWORD(v41) = v35; v21 = *a3; if ( (unsigned int)*a3 > 0x2F ) goto LABEL_42; LABEL_29: v22 = (__int64 *)(*((_QWORD *)v20 + 2) + v21); *v20 = v21 + 8; LABEL_30: v40 = *v22; goto LABEL_31; } } else { if ( u_feof_75(a1) ) return v36; if ( !(_BYTE)v42 && (unsigned int)(v19 - 3) <= 7 ) { v20 = a3; v21 = *a3; if ( (unsigned int)*a3 <= 0x2F ) goto LABEL_29; LABEL_42: v22 = (__int64 *)*((_QWORD *)a3 + 1); *((_QWORD *)a3 + 1) = v22 + 1; goto LABEL_30; } } v40 = 0LL; LABEL_31: v23 = (__int64 (__fastcall *)(_QWORD *, __int64 *, __int64 *, __int16 *, int *, int *))*((_QWORD *)&g_u_scanf_infos + 2 * v18 + 1); if ( v23 ) break; } } v38 = 1; v35 += v23(a1, &v41, &v40, a2, &v38, &v39); if ( v39 < 0 ) return (unsigned int)-1; v36 += v39; a2 = &a2[v38 - 1]; } }
This opensource is libicu
// attributes: thunk __int64 uprv_malloc_75() { return uprv_malloc_75(); }
This opensource is libicu
__int64 __fastcall u_scanf_hex_handler(__int64 a1, __int64 a2, _WORD **a3, __int64 a4, __int64 a5, _DWORD *a6) { __int16 v9; // si _WORD *v10; // r13 int v11; // ebp __int64 v12; // rdi int v13; // eax __int64 v14; // rdx __int64 v15; // rax int v16; // ecx char v17; // dl int v19; // [rsp+4h] [rbp-34h] BYREF unsigned __int64 v20; // [rsp+8h] [rbp-30h] v9 = *(_WORD *)(a2 + 6); v10 = *a3; v20 = __readfsqword(0x28u); v11 = u_scanf_skip_leading_ws(a1, v9); ufile_fill_uchar_buffer_75(a1); v12 = *(_QWORD *)(a1 + 24); v13 = *(_DWORD *)a2; v14 = (*(_QWORD *)(a1 + 32) - v12) >> 1; v19 = v14; if ( v13 != -1 ) { if ( (int)v14 > v13 ) LODWORD(v14) = v13; v19 = v14; } if ( *(_WORD *)v12 == 48 && (*(_WORD *)(v12 + 2) & 0xFFDF) == 88 ) { v12 += 4LL; v19 -= 2; *(_QWORD *)(a1 + 24) = v12; } v15 = ufmt_uto64_75((const char16_t *)v12, &v19, 16); v16 = v19; *(_QWORD *)(a1 + 24) += 2LL * v19; v17 = *(_BYTE *)(a2 + 8); if ( !v17 ) { v17 = *(_BYTE *)(a2 + 10); if ( v17 ) { *v10 = v15; v17 = *(_BYTE *)(a2 + 8); } else if ( *(_BYTE *)(a2 + 12) ) { *(_QWORD *)v10 = v15; } else { *(_DWORD *)v10 = v15; v17 = *(_BYTE *)(a2 + 8); v16 = v19; } } *a6 = v17 == 0; return (unsigned int)(v11 + v16); }
This opensource is libicu
// attributes: thunk void *memmove(void *dest, const void *src, size_t n) { return memmove(dest, src, n); }
This opensource is libicu
__int64 u_sprintf_75(__int64 a1, const char *a2, ...) { gcc_va_list va; // [rsp+0h] [rbp-D8h] BYREF unsigned __int64 v4; // [rsp+18h] [rbp-C0h] va_start(va, a2); v4 = __readfsqword(0x28u); return u_vsnprintf_75(a1, 0x7FFFFFFF, a2, (__int64)va); }
This opensource is libicu
__int64 __fastcall u_scanf_string_handler(__int64 a1, __int64 a2, _QWORD *a3, __int64 a4, __int64 a5, _DWORD *a6) { _BYTE *v6; // rax bool v7; // zf int v8; // ebp char v9; // dl char isWhitespace_75; // al int v11; // eax unsigned int v13; // [rsp+24h] [rbp-64h] unsigned __int16 v15; // [rsp+32h] [rbp-56h] BYREF int v16; // [rsp+34h] [rbp-54h] unsigned __int16 *v17; // [rsp+38h] [rbp-50h] _BYTE *v18; // [rsp+40h] [rbp-48h] unsigned __int64 v19; // [rsp+48h] [rbp-40h] v19 = __readfsqword(0x28u); v6 = (_BYTE *)*a3; v7 = *(_BYTE *)(a2 + 13) == 0; v16 = 0; v13 = 0; v18 = v6; if ( !v7 ) v13 = u_scanf_skip_leading_ws(a1, *(_WORD *)(a2 + 6)); u_getDefaultConverter_75(); if ( *(_DWORD *)a2 == -1 || *(int *)a2 > 0 ) { v8 = 0; while ( 1 ) { v9 = ufile_getch_75(a1, &v15); if ( v9 != 1 ) break; if ( *(_BYTE *)(a2 + 13) ) { if ( *(_WORD *)(a2 + 6) == v15 ) break; isWhitespace_75 = u_isWhitespace_75(); v9 = 1; if ( isWhitespace_75 ) break; } v11 = *(_DWORD *)a2; if ( !*(_BYTE *)(a2 + 8) ) { v17 = &v15; if ( v11 <= 0 ) ucnv_getMaxCharSize_75(); ucnv_fromUnicode_75(); if ( v16 > 0 ) { u_releaseDefaultConverter_75(); return (unsigned int)-1; } v11 = *(_DWORD *)a2; } if ( ++v8 >= v11 && v11 != -1 ) { v13 += v8; goto LABEL_18; } } v13 += v8; if ( *(_BYTE *)(a2 + 8) ) goto LABEL_19; if ( (*(_DWORD *)a2 == -1 || *(_DWORD *)a2 > v8) && v9 ) u_fungetc_75(v15, a1); goto LABEL_26; } LABEL_18: if ( !*(_BYTE *)(a2 + 8) ) { LABEL_26: if ( *(_BYTE *)(a2 + 13) ) *v18 = 0; } LABEL_19: u_releaseDefaultConverter_75(); *a6 = *(_BYTE *)(a2 + 8) == 0; return v13; }
This opensource is libicu