
wchar_t _rl_get_char_len(char *src,mbstate_t_conflict *ps)

{
  char cVar1;
  wchar_t wVar2;
  size_t sVar3;
  ulong uVar4;
  char *pcVar5;
  
  uVar4 = 0xffffffffffffffff;
  pcVar5 = src;
  do {
    if (uVar4 == 0) break;
    uVar4 = uVar4 - 1;
    cVar1 = *pcVar5;
    pcVar5 = pcVar5 + 1;
  } while (cVar1 != '\0');
  uVar4 = ~uVar4 - 1;
  if (((_rl_utf8locale == L'\0') || (uVar4 == 0)) || (*src < '\0')) {
    sVar3 = __ctype_get_mb_cur_max();
    if ((ulong)(long)(int)sVar3 <= uVar4) {
      uVar4 = (long)(int)sVar3;
    }
    if (ps == (mbstate_t_conflict *)0x0) {
      uVar4 = __mbrlen(src,uVar4,(mbstate_t *)0x0);
      if (uVar4 == 0xfffffffffffffffe) {
        return L'\xfffffffe';
      }
      if (uVar4 == 0xffffffffffffffff) {
        return L'\xffffffff';
      }
    }
    else {
      uVar4 = mbrtowc((wchar_t *)0x0,src,uVar4,(mbstate_t *)ps);
      if (uVar4 == 0xfffffffffffffffe) {
        ps->__count = L'\0';
        ps->__value = (anon_union_4_2_91654ee9_for___value)0x0;
        return L'\xfffffffe';
      }
      if (uVar4 == 0xffffffffffffffff) {
        ps->__count = L'\0';
        ps->__value = (anon_union_4_2_91654ee9_for___value)0x0;
        return L'\xffffffff';
      }
    }
  }
  else {
    uVar4 = (ulong)(*src != '\0');
  }
  wVar2 = (wchar_t)uVar4;
  if (uVar4 == 0) {
    wVar2 = L'\0';
  }
  return wVar2;
}



ulong _rl_get_char_len(char *param_1,mbstate_t *param_2)

{
  char cVar1;
  size_t sVar2;
  ulong uVar3;
  ulong uVar4;
  char *pcVar5;
  
  uVar4 = 0xffffffffffffffff;
  pcVar5 = param_1;
  do {
    if (uVar4 == 0) break;
    uVar4 = uVar4 - 1;
    cVar1 = *pcVar5;
    pcVar5 = pcVar5 + 1;
  } while (cVar1 != '\0');
  uVar4 = ~uVar4 - 1;
  if (((_rl_utf8locale == 0) || (uVar4 == 0)) || (*param_1 < '\0')) {
    sVar2 = __ctype_get_mb_cur_max();
    if ((ulong)(long)(int)sVar2 <= uVar4) {
      uVar4 = (long)(int)sVar2;
    }
    if (param_2 == (mbstate_t *)0x0) {
      uVar4 = __mbrlen(param_1,uVar4,(mbstate_t *)0x0);
      if (uVar4 == 0xfffffffffffffffe) {
        return 0xfffffffe;
      }
      if (uVar4 == 0xffffffffffffffff) {
        return 0xffffffff;
      }
    }
    else {
      uVar4 = mbrtowc((wchar_t *)0x0,param_1,uVar4,param_2);
      if (uVar4 == 0xfffffffffffffffe) {
        param_2->__count = 0;
        param_2->__value = (_union_27)0x0;
        return 0xfffffffe;
      }
      if (uVar4 == 0xffffffffffffffff) {
        param_2->__count = 0;
        param_2->__value = (_union_27)0x0;
        return 0xffffffff;
      }
    }
  }
  else {
    uVar4 = (ulong)(*param_1 != '\0');
  }
  uVar3 = uVar4 & 0xffffffff;
  if (uVar4 == 0) {
    uVar3 = 0;
  }
  return uVar3;
}


PUSH R12
PUSH RBP
PUSH RBX
MOV R12,RDI
MOV RCX,-0x1
MOV EAX,0x0
SCASB.REPNE RDI
MOV RAX,RCX
NOT RAX
LEA RBX,[RAX + -0x1]
CMP dword ptr [0x00217768],0x0
JZ 0x001cf539
TEST RBX,RBX
JZ 0x001cf539
MOVZX EAX,byte ptr [R12]
TEST AL,AL
JS 0x001cf539
SETNZ AL
MOVZX EAX,AL
JMP 0x001cf571
MOV RBP,RSI
CALL 0x0012d370
CDQE
CMP RAX,RBX
CMOVBE RBX,RAX
MOV RSI,RBX
TEST RBP,RBP
JZ 0x001cf581
MOV RCX,RBP
MOV RDX,RBX
MOV RSI,R12
MOV EDI,0x0
CALL 0x0012d3d0
CMP RAX,-0x2
JZ 0x001cf5a1
CMP RAX,-0x1
JZ 0x001cf5b0
TEST RAX,RAX
MOV EDX,0x0
CMOVZ EAX,EDX
POP RBX
POP RBP
POP R12
RET
MOV EDX,0x0
MOV RDI,R12
CALL 0x0012d1e0
CMP RAX,-0x2
JZ 0x001cf5bf
CMP RAX,-0x1
JNZ 0x001cf571
MOV EAX,0xffffffff
JMP 0x001cf57c
MOV qword ptr [RBP],0x0
MOV EAX,0xfffffffe
JMP 0x001cf57c
MOV qword ptr [RBP],0x0
MOV EAX,0xffffffff
JMP 0x001cf57c
MOV EAX,0xfffffffe
JMP 0x001cf57c
(translation_unit "ulong _rl_get_char_len(char *param_1,mbstate_t *param_2)\n\n{\n  char cVar1;\n  size_t sVar2;\n  ulong uVar3;\n  ulong uVar4;\n  char *pcVar5;\n  \n  uVar4 = 0xffffffffffffffff;\n  pcVar5 = param_1;\n  do {\n    if (uVar4 == 0) break;\n    uVar4 = uVar4 - 1;\n    cVar1 = *pcVar5;\n    pcVar5 = pcVar5 + 1;\n  } while (cVar1 != '\0');\n  uVar4 = ~uVar4 - 1;\n  if (((_rl_utf8locale == 0) || (uVar4 == 0)) || (*param_1 < '\0')) {\n    sVar2 = __ctype_get_mb_cur_max();\n    if ((ulong)(long)(int)sVar2 <= uVar4) {\n      uVar4 = (long)(int)sVar2;\n    }\n    if (param_2 == (mbstate_t *)0x0) {\n      uVar4 = __mbrlen(param_1,uVar4,(mbstate_t *)0x0);\n      if (uVar4 == 0xfffffffffffffffe) {\n        return 0xfffffffe;\n      }\n      if (uVar4 == 0xffffffffffffffff) {\n        return 0xffffffff;\n      }\n    }\n    else {\n      uVar4 = mbrtowc((wchar_t *)0x0,param_1,uVar4,param_2);\n      if (uVar4 == 0xfffffffffffffffe) {\n        param_2->__count = 0;\n        param_2->__value = (_union_27)0x0;\n        return 0xfffffffe;\n      }\n      if (uVar4 == 0xffffffffffffffff) {\n        param_2->__count = 0;\n        param_2->__value = (_union_27)0x0;\n        return 0xffffffff;\n      }\n    }\n  }\n  else {\n    uVar4 = (ulong)(*param_1 != '\0');\n  }\n  uVar3 = uVar4 & 0xffffffff;\n  if (uVar4 == 0) {\n    uVar3 = 0;\n  }\n  return uVar3;\n}\n\n" (function_definition "ulong _rl_get_char_len(char *param_1,mbstate_t *param_2)\n\n{\n  char cVar1;\n  size_t sVar2;\n  ulong uVar3;\n  ulong uVar4;\n  char *pcVar5;\n  \n  uVar4 = 0xffffffffffffffff;\n  pcVar5 = param_1;\n  do {\n    if (uVar4 == 0) break;\n    uVar4 = uVar4 - 1;\n    cVar1 = *pcVar5;\n    pcVar5 = pcVar5 + 1;\n  } while (cVar1 != '\0');\n  uVar4 = ~uVar4 - 1;\n  if (((_rl_utf8locale == 0) || (uVar4 == 0)) || (*param_1 < '\0')) {\n    sVar2 = __ctype_get_mb_cur_max();\n    if ((ulong)(long)(int)sVar2 <= uVar4) {\n      uVar4 = (long)(int)sVar2;\n    }\n    if (param_2 == (mbstate_t *)0x0) {\n      uVar4 = __mbrlen(param_1,uVar4,(mbstate_t *)0x0);\n      if (uVar4 == 0xfffffffffffffffe) {\n        return 0xfffffffe;\n      }\n      if (uVar4 == 0xffffffffffffffff) {\n        return 0xffffffff;\n      }\n    }\n    else {\n      uVar4 = mbrtowc((wchar_t *)0x0,param_1,uVar4,param_2);\n      if (uVar4 == 0xfffffffffffffffe) {\n        param_2->__count = 0;\n        param_2->__value = (_union_27)0x0;\n        return 0xfffffffe;\n      }\n      if (uVar4 == 0xffffffffffffffff) {\n        param_2->__count = 0;\n        param_2->__value = (_union_27)0x0;\n        return 0xffffffff;\n      }\n    }\n  }\n  else {\n    uVar4 = (ulong)(*param_1 != '\0');\n  }\n  uVar3 = uVar4 & 0xffffffff;\n  if (uVar4 == 0) {\n    uVar3 = 0;\n  }\n  return uVar3;\n}" type_identifier (function_declarator "_rl_get_char_len(char *param_1,mbstate_t *param_2)" identifier (parameter_list "(char *param_1,mbstate_t *param_2)" ( (parameter_declaration "char *param_1" primitive_type (pointer_declarator "*param_1" * identifier)) , (parameter_declaration "mbstate_t *param_2" type_identifier (pointer_declarator "*param_2" * identifier)) ))) (compound_statement "{\n  char cVar1;\n  size_t sVar2;\n  ulong uVar3;\n  ulong uVar4;\n  char *pcVar5;\n  \n  uVar4 = 0xffffffffffffffff;\n  pcVar5 = param_1;\n  do {\n    if (uVar4 == 0) break;\n    uVar4 = uVar4 - 1;\n    cVar1 = *pcVar5;\n    pcVar5 = pcVar5 + 1;\n  } while (cVar1 != '\0');\n  uVar4 = ~uVar4 - 1;\n  if (((_rl_utf8locale == 0) || (uVar4 == 0)) || (*param_1 < '\0')) {\n    sVar2 = __ctype_get_mb_cur_max();\n    if ((ulong)(long)(int)sVar2 <= uVar4) {\n      uVar4 = (long)(int)sVar2;\n    }\n    if (param_2 == (mbstate_t *)0x0) {\n      uVar4 = __mbrlen(param_1,uVar4,(mbstate_t *)0x0);\n      if (uVar4 == 0xfffffffffffffffe) {\n        return 0xfffffffe;\n      }\n      if (uVar4 == 0xffffffffffffffff) {\n        return 0xffffffff;\n      }\n    }\n    else {\n      uVar4 = mbrtowc((wchar_t *)0x0,param_1,uVar4,param_2);\n      if (uVar4 == 0xfffffffffffffffe) {\n        param_2->__count = 0;\n        param_2->__value = (_union_27)0x0;\n        return 0xfffffffe;\n      }\n      if (uVar4 == 0xffffffffffffffff) {\n        param_2->__count = 0;\n        param_2->__value = (_union_27)0x0;\n        return 0xffffffff;\n      }\n    }\n  }\n  else {\n    uVar4 = (ulong)(*param_1 != '\0');\n  }\n  uVar3 = uVar4 & 0xffffffff;\n  if (uVar4 == 0) {\n    uVar3 = 0;\n  }\n  return uVar3;\n}" { (declaration "char cVar1;" primitive_type identifier ;) (declaration "size_t sVar2;" primitive_type identifier ;) (declaration "ulong uVar3;" type_identifier identifier ;) (declaration "ulong uVar4;" type_identifier identifier ;) (declaration "char *pcVar5;" primitive_type (pointer_declarator "*pcVar5" * identifier) ;) (expression_statement "uVar4 = 0xffffffffffffffff;" (assignment_expression "uVar4 = 0xffffffffffffffff" identifier = number_literal) ;) (expression_statement "pcVar5 = param_1;" (assignment_expression "pcVar5 = param_1" identifier = identifier) ;) (do_statement "do {\n    if (uVar4 == 0) break;\n    uVar4 = uVar4 - 1;\n    cVar1 = *pcVar5;\n    pcVar5 = pcVar5 + 1;\n  } while (cVar1 != '\0');" do (compound_statement "{\n    if (uVar4 == 0) break;\n    uVar4 = uVar4 - 1;\n    cVar1 = *pcVar5;\n    pcVar5 = pcVar5 + 1;\n  }" { (if_statement "if (uVar4 == 0) break;" if (parenthesized_expression "(uVar4 == 0)" ( (binary_expression "uVar4 == 0" identifier == number_literal) )) (break_statement "break;" break ;)) (expression_statement "uVar4 = uVar4 - 1;" (assignment_expression "uVar4 = uVar4 - 1" identifier = (binary_expression "uVar4 - 1" identifier - number_literal)) ;) (expression_statement "cVar1 = *pcVar5;" (assignment_expression "cVar1 = *pcVar5" identifier = (pointer_expression "*pcVar5" * identifier)) ;) (expression_statement "pcVar5 = pcVar5 + 1;" (assignment_expression "pcVar5 = pcVar5 + 1" identifier = (binary_expression "pcVar5 + 1" identifier + number_literal)) ;) }) while (parenthesized_expression "(cVar1 != '\0')" ( (binary_expression "cVar1 != '\0'" identifier != (char_literal "'\0'" ' escape_sequence ')) )) ;) (expression_statement "uVar4 = ~uVar4 - 1;" (assignment_expression "uVar4 = ~uVar4 - 1" identifier = (binary_expression "~uVar4 - 1" (unary_expression "~uVar4" ~ identifier) - number_literal)) ;) (if_statement "if (((_rl_utf8locale == 0) || (uVar4 == 0)) || (*param_1 < '\0')) {\n    sVar2 = __ctype_get_mb_cur_max();\n    if ((ulong)(long)(int)sVar2 <= uVar4) {\n      uVar4 = (long)(int)sVar2;\n    }\n    if (param_2 == (mbstate_t *)0x0) {\n      uVar4 = __mbrlen(param_1,uVar4,(mbstate_t *)0x0);\n      if (uVar4 == 0xfffffffffffffffe) {\n        return 0xfffffffe;\n      }\n      if (uVar4 == 0xffffffffffffffff) {\n        return 0xffffffff;\n      }\n    }\n    else {\n      uVar4 = mbrtowc((wchar_t *)0x0,param_1,uVar4,param_2);\n      if (uVar4 == 0xfffffffffffffffe) {\n        param_2->__count = 0;\n        param_2->__value = (_union_27)0x0;\n        return 0xfffffffe;\n      }\n      if (uVar4 == 0xffffffffffffffff) {\n        param_2->__count = 0;\n        param_2->__value = (_union_27)0x0;\n        return 0xffffffff;\n      }\n    }\n  }\n  else {\n    uVar4 = (ulong)(*param_1 != '\0');\n  }" if (parenthesized_expression "(((_rl_utf8locale == 0) || (uVar4 == 0)) || (*param_1 < '\0'))" ( (binary_expression "((_rl_utf8locale == 0) || (uVar4 == 0)) || (*param_1 < '\0')" (parenthesized_expression "((_rl_utf8locale == 0) || (uVar4 == 0))" ( (binary_expression "(_rl_utf8locale == 0) || (uVar4 == 0)" (parenthesized_expression "(_rl_utf8locale == 0)" ( (binary_expression "_rl_utf8locale == 0" identifier == number_literal) )) || (parenthesized_expression "(uVar4 == 0)" ( (binary_expression "uVar4 == 0" identifier == number_literal) ))) )) || (parenthesized_expression "(*param_1 < '\0')" ( (binary_expression "*param_1 < '\0'" (pointer_expression "*param_1" * identifier) < (char_literal "'\0'" ' escape_sequence ')) ))) )) (compound_statement "{\n    sVar2 = __ctype_get_mb_cur_max();\n    if ((ulong)(long)(int)sVar2 <= uVar4) {\n      uVar4 = (long)(int)sVar2;\n    }\n    if (param_2 == (mbstate_t *)0x0) {\n      uVar4 = __mbrlen(param_1,uVar4,(mbstate_t *)0x0);\n      if (uVar4 == 0xfffffffffffffffe) {\n        return 0xfffffffe;\n      }\n      if (uVar4 == 0xffffffffffffffff) {\n        return 0xffffffff;\n      }\n    }\n    else {\n      uVar4 = mbrtowc((wchar_t *)0x0,param_1,uVar4,param_2);\n      if (uVar4 == 0xfffffffffffffffe) {\n        param_2->__count = 0;\n        param_2->__value = (_union_27)0x0;\n        return 0xfffffffe;\n      }\n      if (uVar4 == 0xffffffffffffffff) {\n        param_2->__count = 0;\n        param_2->__value = (_union_27)0x0;\n        return 0xffffffff;\n      }\n    }\n  }" { (expression_statement "sVar2 = __ctype_get_mb_cur_max();" (assignment_expression "sVar2 = __ctype_get_mb_cur_max()" identifier = (call_expression "__ctype_get_mb_cur_max()" identifier (argument_list "()" ( )))) ;) (if_statement "if ((ulong)(long)(int)sVar2 <= uVar4) {\n      uVar4 = (long)(int)sVar2;\n    }" if (parenthesized_expression "((ulong)(long)(int)sVar2 <= uVar4)" ( (binary_expression "(ulong)(long)(int)sVar2 <= uVar4" (cast_expression "(ulong)(long)(int)sVar2" ( (type_descriptor "ulong" type_identifier) ) (cast_expression "(long)(int)sVar2" ( (type_descriptor "long" (sized_type_specifier "long" long)) ) (cast_expression "(int)sVar2" ( (type_descriptor "int" primitive_type) ) identifier))) <= identifier) )) (compound_statement "{\n      uVar4 = (long)(int)sVar2;\n    }" { (expression_statement "uVar4 = (long)(int)sVar2;" (assignment_expression "uVar4 = (long)(int)sVar2" identifier = (cast_expression "(long)(int)sVar2" ( (type_descriptor "long" (sized_type_specifier "long" long)) ) (cast_expression "(int)sVar2" ( (type_descriptor "int" primitive_type) ) identifier))) ;) })) (if_statement "if (param_2 == (mbstate_t *)0x0) {\n      uVar4 = __mbrlen(param_1,uVar4,(mbstate_t *)0x0);\n      if (uVar4 == 0xfffffffffffffffe) {\n        return 0xfffffffe;\n      }\n      if (uVar4 == 0xffffffffffffffff) {\n        return 0xffffffff;\n      }\n    }\n    else {\n      uVar4 = mbrtowc((wchar_t *)0x0,param_1,uVar4,param_2);\n      if (uVar4 == 0xfffffffffffffffe) {\n        param_2->__count = 0;\n        param_2->__value = (_union_27)0x0;\n        return 0xfffffffe;\n      }\n      if (uVar4 == 0xffffffffffffffff) {\n        param_2->__count = 0;\n        param_2->__value = (_union_27)0x0;\n        return 0xffffffff;\n      }\n    }" if (parenthesized_expression "(param_2 == (mbstate_t *)0x0)" ( (binary_expression "param_2 == (mbstate_t *)0x0" identifier == (cast_expression "(mbstate_t *)0x0" ( (type_descriptor "mbstate_t *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n      uVar4 = __mbrlen(param_1,uVar4,(mbstate_t *)0x0);\n      if (uVar4 == 0xfffffffffffffffe) {\n        return 0xfffffffe;\n      }\n      if (uVar4 == 0xffffffffffffffff) {\n        return 0xffffffff;\n      }\n    }" { (expression_statement "uVar4 = __mbrlen(param_1,uVar4,(mbstate_t *)0x0);" (assignment_expression "uVar4 = __mbrlen(param_1,uVar4,(mbstate_t *)0x0)" identifier = (call_expression "__mbrlen(param_1,uVar4,(mbstate_t *)0x0)" identifier (argument_list "(param_1,uVar4,(mbstate_t *)0x0)" ( identifier , identifier , (cast_expression "(mbstate_t *)0x0" ( (type_descriptor "mbstate_t *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal) )))) ;) (if_statement "if (uVar4 == 0xfffffffffffffffe) {\n        return 0xfffffffe;\n      }" if (parenthesized_expression "(uVar4 == 0xfffffffffffffffe)" ( (binary_expression "uVar4 == 0xfffffffffffffffe" identifier == number_literal) )) (compound_statement "{\n        return 0xfffffffe;\n      }" { (return_statement "return 0xfffffffe;" return number_literal ;) })) (if_statement "if (uVar4 == 0xffffffffffffffff) {\n        return 0xffffffff;\n      }" if (parenthesized_expression "(uVar4 == 0xffffffffffffffff)" ( (binary_expression "uVar4 == 0xffffffffffffffff" identifier == number_literal) )) (compound_statement "{\n        return 0xffffffff;\n      }" { (return_statement "return 0xffffffff;" return number_literal ;) })) }) (else_clause "else {\n      uVar4 = mbrtowc((wchar_t *)0x0,param_1,uVar4,param_2);\n      if (uVar4 == 0xfffffffffffffffe) {\n        param_2->__count = 0;\n        param_2->__value = (_union_27)0x0;\n        return 0xfffffffe;\n      }\n      if (uVar4 == 0xffffffffffffffff) {\n        param_2->__count = 0;\n        param_2->__value = (_union_27)0x0;\n        return 0xffffffff;\n      }\n    }" else (compound_statement "{\n      uVar4 = mbrtowc((wchar_t *)0x0,param_1,uVar4,param_2);\n      if (uVar4 == 0xfffffffffffffffe) {\n        param_2->__count = 0;\n        param_2->__value = (_union_27)0x0;\n        return 0xfffffffe;\n      }\n      if (uVar4 == 0xffffffffffffffff) {\n        param_2->__count = 0;\n        param_2->__value = (_union_27)0x0;\n        return 0xffffffff;\n      }\n    }" { (expression_statement "uVar4 = mbrtowc((wchar_t *)0x0,param_1,uVar4,param_2);" (assignment_expression "uVar4 = mbrtowc((wchar_t *)0x0,param_1,uVar4,param_2)" identifier = (call_expression "mbrtowc((wchar_t *)0x0,param_1,uVar4,param_2)" identifier (argument_list "((wchar_t *)0x0,param_1,uVar4,param_2)" ( (cast_expression "(wchar_t *)0x0" ( (type_descriptor "wchar_t *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal) , identifier , identifier , identifier )))) ;) (if_statement "if (uVar4 == 0xfffffffffffffffe) {\n        param_2->__count = 0;\n        param_2->__value = (_union_27)0x0;\n        return 0xfffffffe;\n      }" if (parenthesized_expression "(uVar4 == 0xfffffffffffffffe)" ( (binary_expression "uVar4 == 0xfffffffffffffffe" identifier == number_literal) )) (compound_statement "{\n        param_2->__count = 0;\n        param_2->__value = (_union_27)0x0;\n        return 0xfffffffe;\n      }" { (expression_statement "param_2->__count = 0;" (assignment_expression "param_2->__count = 0" (field_expression "param_2->__count" identifier -> field_identifier) = number_literal) ;) (expression_statement "param_2->__value = (_union_27)0x0;" (assignment_expression "param_2->__value = (_union_27)0x0" (field_expression "param_2->__value" identifier -> field_identifier) = (cast_expression "(_union_27)0x0" ( (type_descriptor "_union_27" type_identifier) ) number_literal)) ;) (return_statement "return 0xfffffffe;" return number_literal ;) })) (if_statement "if (uVar4 == 0xffffffffffffffff) {\n        param_2->__count = 0;\n        param_2->__value = (_union_27)0x0;\n        return 0xffffffff;\n      }" if (parenthesized_expression "(uVar4 == 0xffffffffffffffff)" ( (binary_expression "uVar4 == 0xffffffffffffffff" identifier == number_literal) )) (compound_statement "{\n        param_2->__count = 0;\n        param_2->__value = (_union_27)0x0;\n        return 0xffffffff;\n      }" { (expression_statement "param_2->__count = 0;" (assignment_expression "param_2->__count = 0" (field_expression "param_2->__count" identifier -> field_identifier) = number_literal) ;) (expression_statement "param_2->__value = (_union_27)0x0;" (assignment_expression "param_2->__value = (_union_27)0x0" (field_expression "param_2->__value" identifier -> field_identifier) = (cast_expression "(_union_27)0x0" ( (type_descriptor "_union_27" type_identifier) ) number_literal)) ;) (return_statement "return 0xffffffff;" return number_literal ;) })) }))) }) (else_clause "else {\n    uVar4 = (ulong)(*param_1 != '\0');\n  }" else (compound_statement "{\n    uVar4 = (ulong)(*param_1 != '\0');\n  }" { (expression_statement "uVar4 = (ulong)(*param_1 != '\0');" (assignment_expression "uVar4 = (ulong)(*param_1 != '\0')" identifier = (call_expression "(ulong)(*param_1 != '\0')" (parenthesized_expression "(ulong)" ( identifier )) (argument_list "(*param_1 != '\0')" ( (binary_expression "*param_1 != '\0'" (pointer_expression "*param_1" * identifier) != (char_literal "'\0'" ' escape_sequence ')) )))) ;) }))) (expression_statement "uVar3 = uVar4 & 0xffffffff;" (assignment_expression "uVar3 = uVar4 & 0xffffffff" identifier = (binary_expression "uVar4 & 0xffffffff" identifier & number_literal)) ;) (if_statement "if (uVar4 == 0) {\n    uVar3 = 0;\n  }" if (parenthesized_expression "(uVar4 == 0)" ( (binary_expression "uVar4 == 0" identifier == number_literal) )) (compound_statement "{\n    uVar3 = 0;\n  }" { (expression_statement "uVar3 = 0;" (assignment_expression "uVar3 = 0" identifier = number_literal) ;) })) (return_statement "return uVar3;" return identifier ;) })))
(translation_unit "wchar_t _rl_get_char_len(char *src,mbstate_t_conflict *ps)\n\n{\n  char cVar1;\n  wchar_t wVar2;\n  size_t sVar3;\n  ulong uVar4;\n  char *pcVar5;\n  \n  uVar4 = 0xffffffffffffffff;\n  pcVar5 = src;\n  do {\n    if (uVar4 == 0) break;\n    uVar4 = uVar4 - 1;\n    cVar1 = *pcVar5;\n    pcVar5 = pcVar5 + 1;\n  } while (cVar1 != '\0');\n  uVar4 = ~uVar4 - 1;\n  if (((_rl_utf8locale == L'\0') || (uVar4 == 0)) || (*src < '\0')) {\n    sVar3 = __ctype_get_mb_cur_max();\n    if ((ulong)(long)(int)sVar3 <= uVar4) {\n      uVar4 = (long)(int)sVar3;\n    }\n    if (ps == (mbstate_t_conflict *)0x0) {\n      uVar4 = __mbrlen(src,uVar4,(mbstate_t *)0x0);\n      if (uVar4 == 0xfffffffffffffffe) {\n        return L'\xfffffffe';\n      }\n      if (uVar4 == 0xffffffffffffffff) {\n        return L'\xffffffff';\n      }\n    }\n    else {\n      uVar4 = mbrtowc((wchar_t *)0x0,src,uVar4,(mbstate_t *)ps);\n      if (uVar4 == 0xfffffffffffffffe) {\n        ps->__count = L'\0';\n        ps->__value = (anon_union_4_2_91654ee9_for___value)0x0;\n        return L'\xfffffffe';\n      }\n      if (uVar4 == 0xffffffffffffffff) {\n        ps->__count = L'\0';\n        ps->__value = (anon_union_4_2_91654ee9_for___value)0x0;\n        return L'\xffffffff';\n      }\n    }\n  }\n  else {\n    uVar4 = (ulong)(*src != '\0');\n  }\n  wVar2 = (wchar_t)uVar4;\n  if (uVar4 == 0) {\n    wVar2 = L'\0';\n  }\n  return wVar2;\n}\n\n" (function_definition "wchar_t _rl_get_char_len(char *src,mbstate_t_conflict *ps)\n\n{\n  char cVar1;\n  wchar_t wVar2;\n  size_t sVar3;\n  ulong uVar4;\n  char *pcVar5;\n  \n  uVar4 = 0xffffffffffffffff;\n  pcVar5 = src;\n  do {\n    if (uVar4 == 0) break;\n    uVar4 = uVar4 - 1;\n    cVar1 = *pcVar5;\n    pcVar5 = pcVar5 + 1;\n  } while (cVar1 != '\0');\n  uVar4 = ~uVar4 - 1;\n  if (((_rl_utf8locale == L'\0') || (uVar4 == 0)) || (*src < '\0')) {\n    sVar3 = __ctype_get_mb_cur_max();\n    if ((ulong)(long)(int)sVar3 <= uVar4) {\n      uVar4 = (long)(int)sVar3;\n    }\n    if (ps == (mbstate_t_conflict *)0x0) {\n      uVar4 = __mbrlen(src,uVar4,(mbstate_t *)0x0);\n      if (uVar4 == 0xfffffffffffffffe) {\n        return L'\xfffffffe';\n      }\n      if (uVar4 == 0xffffffffffffffff) {\n        return L'\xffffffff';\n      }\n    }\n    else {\n      uVar4 = mbrtowc((wchar_t *)0x0,src,uVar4,(mbstate_t *)ps);\n      if (uVar4 == 0xfffffffffffffffe) {\n        ps->__count = L'\0';\n        ps->__value = (anon_union_4_2_91654ee9_for___value)0x0;\n        return L'\xfffffffe';\n      }\n      if (uVar4 == 0xffffffffffffffff) {\n        ps->__count = L'\0';\n        ps->__value = (anon_union_4_2_91654ee9_for___value)0x0;\n        return L'\xffffffff';\n      }\n    }\n  }\n  else {\n    uVar4 = (ulong)(*src != '\0');\n  }\n  wVar2 = (wchar_t)uVar4;\n  if (uVar4 == 0) {\n    wVar2 = L'\0';\n  }\n  return wVar2;\n}" type_identifier (function_declarator "_rl_get_char_len(char *src,mbstate_t_conflict *ps)" identifier (parameter_list "(char *src,mbstate_t_conflict *ps)" ( (parameter_declaration "char *src" primitive_type (pointer_declarator "*src" * identifier)) , (parameter_declaration "mbstate_t_conflict *ps" type_identifier (pointer_declarator "*ps" * identifier)) ))) (compound_statement "{\n  char cVar1;\n  wchar_t wVar2;\n  size_t sVar3;\n  ulong uVar4;\n  char *pcVar5;\n  \n  uVar4 = 0xffffffffffffffff;\n  pcVar5 = src;\n  do {\n    if (uVar4 == 0) break;\n    uVar4 = uVar4 - 1;\n    cVar1 = *pcVar5;\n    pcVar5 = pcVar5 + 1;\n  } while (cVar1 != '\0');\n  uVar4 = ~uVar4 - 1;\n  if (((_rl_utf8locale == L'\0') || (uVar4 == 0)) || (*src < '\0')) {\n    sVar3 = __ctype_get_mb_cur_max();\n    if ((ulong)(long)(int)sVar3 <= uVar4) {\n      uVar4 = (long)(int)sVar3;\n    }\n    if (ps == (mbstate_t_conflict *)0x0) {\n      uVar4 = __mbrlen(src,uVar4,(mbstate_t *)0x0);\n      if (uVar4 == 0xfffffffffffffffe) {\n        return L'\xfffffffe';\n      }\n      if (uVar4 == 0xffffffffffffffff) {\n        return L'\xffffffff';\n      }\n    }\n    else {\n      uVar4 = mbrtowc((wchar_t *)0x0,src,uVar4,(mbstate_t *)ps);\n      if (uVar4 == 0xfffffffffffffffe) {\n        ps->__count = L'\0';\n        ps->__value = (anon_union_4_2_91654ee9_for___value)0x0;\n        return L'\xfffffffe';\n      }\n      if (uVar4 == 0xffffffffffffffff) {\n        ps->__count = L'\0';\n        ps->__value = (anon_union_4_2_91654ee9_for___value)0x0;\n        return L'\xffffffff';\n      }\n    }\n  }\n  else {\n    uVar4 = (ulong)(*src != '\0');\n  }\n  wVar2 = (wchar_t)uVar4;\n  if (uVar4 == 0) {\n    wVar2 = L'\0';\n  }\n  return wVar2;\n}" { (declaration "char cVar1;" primitive_type identifier ;) (declaration "wchar_t wVar2;" type_identifier identifier ;) (declaration "size_t sVar3;" primitive_type identifier ;) (declaration "ulong uVar4;" type_identifier identifier ;) (declaration "char *pcVar5;" primitive_type (pointer_declarator "*pcVar5" * identifier) ;) (expression_statement "uVar4 = 0xffffffffffffffff;" (assignment_expression "uVar4 = 0xffffffffffffffff" identifier = number_literal) ;) (expression_statement "pcVar5 = src;" (assignment_expression "pcVar5 = src" identifier = identifier) ;) (do_statement "do {\n    if (uVar4 == 0) break;\n    uVar4 = uVar4 - 1;\n    cVar1 = *pcVar5;\n    pcVar5 = pcVar5 + 1;\n  } while (cVar1 != '\0');" do (compound_statement "{\n    if (uVar4 == 0) break;\n    uVar4 = uVar4 - 1;\n    cVar1 = *pcVar5;\n    pcVar5 = pcVar5 + 1;\n  }" { (if_statement "if (uVar4 == 0) break;" if (parenthesized_expression "(uVar4 == 0)" ( (binary_expression "uVar4 == 0" identifier == number_literal) )) (break_statement "break;" break ;)) (expression_statement "uVar4 = uVar4 - 1;" (assignment_expression "uVar4 = uVar4 - 1" identifier = (binary_expression "uVar4 - 1" identifier - number_literal)) ;) (expression_statement "cVar1 = *pcVar5;" (assignment_expression "cVar1 = *pcVar5" identifier = (pointer_expression "*pcVar5" * identifier)) ;) (expression_statement "pcVar5 = pcVar5 + 1;" (assignment_expression "pcVar5 = pcVar5 + 1" identifier = (binary_expression "pcVar5 + 1" identifier + number_literal)) ;) }) while (parenthesized_expression "(cVar1 != '\0')" ( (binary_expression "cVar1 != '\0'" identifier != (char_literal "'\0'" ' escape_sequence ')) )) ;) (expression_statement "uVar4 = ~uVar4 - 1;" (assignment_expression "uVar4 = ~uVar4 - 1" identifier = (binary_expression "~uVar4 - 1" (unary_expression "~uVar4" ~ identifier) - number_literal)) ;) (if_statement "if (((_rl_utf8locale == L'\0') || (uVar4 == 0)) || (*src < '\0')) {\n    sVar3 = __ctype_get_mb_cur_max();\n    if ((ulong)(long)(int)sVar3 <= uVar4) {\n      uVar4 = (long)(int)sVar3;\n    }\n    if (ps == (mbstate_t_conflict *)0x0) {\n      uVar4 = __mbrlen(src,uVar4,(mbstate_t *)0x0);\n      if (uVar4 == 0xfffffffffffffffe) {\n        return L'\xfffffffe';\n      }\n      if (uVar4 == 0xffffffffffffffff) {\n        return L'\xffffffff';\n      }\n    }\n    else {\n      uVar4 = mbrtowc((wchar_t *)0x0,src,uVar4,(mbstate_t *)ps);\n      if (uVar4 == 0xfffffffffffffffe) {\n        ps->__count = L'\0';\n        ps->__value = (anon_union_4_2_91654ee9_for___value)0x0;\n        return L'\xfffffffe';\n      }\n      if (uVar4 == 0xffffffffffffffff) {\n        ps->__count = L'\0';\n        ps->__value = (anon_union_4_2_91654ee9_for___value)0x0;\n        return L'\xffffffff';\n      }\n    }\n  }\n  else {\n    uVar4 = (ulong)(*src != '\0');\n  }" if (parenthesized_expression "(((_rl_utf8locale == L'\0') || (uVar4 == 0)) || (*src < '\0'))" ( (binary_expression "((_rl_utf8locale == L'\0') || (uVar4 == 0)) || (*src < '\0')" (parenthesized_expression "((_rl_utf8locale == L'\0') || (uVar4 == 0))" ( (binary_expression "(_rl_utf8locale == L'\0') || (uVar4 == 0)" (parenthesized_expression "(_rl_utf8locale == L'\0')" ( (binary_expression "_rl_utf8locale == L'\0'" identifier == (char_literal "L'\0'" L' escape_sequence ')) )) || (parenthesized_expression "(uVar4 == 0)" ( (binary_expression "uVar4 == 0" identifier == number_literal) ))) )) || (parenthesized_expression "(*src < '\0')" ( (binary_expression "*src < '\0'" (pointer_expression "*src" * identifier) < (char_literal "'\0'" ' escape_sequence ')) ))) )) (compound_statement "{\n    sVar3 = __ctype_get_mb_cur_max();\n    if ((ulong)(long)(int)sVar3 <= uVar4) {\n      uVar4 = (long)(int)sVar3;\n    }\n    if (ps == (mbstate_t_conflict *)0x0) {\n      uVar4 = __mbrlen(src,uVar4,(mbstate_t *)0x0);\n      if (uVar4 == 0xfffffffffffffffe) {\n        return L'\xfffffffe';\n      }\n      if (uVar4 == 0xffffffffffffffff) {\n        return L'\xffffffff';\n      }\n    }\n    else {\n      uVar4 = mbrtowc((wchar_t *)0x0,src,uVar4,(mbstate_t *)ps);\n      if (uVar4 == 0xfffffffffffffffe) {\n        ps->__count = L'\0';\n        ps->__value = (anon_union_4_2_91654ee9_for___value)0x0;\n        return L'\xfffffffe';\n      }\n      if (uVar4 == 0xffffffffffffffff) {\n        ps->__count = L'\0';\n        ps->__value = (anon_union_4_2_91654ee9_for___value)0x0;\n        return L'\xffffffff';\n      }\n    }\n  }" { (expression_statement "sVar3 = __ctype_get_mb_cur_max();" (assignment_expression "sVar3 = __ctype_get_mb_cur_max()" identifier = (call_expression "__ctype_get_mb_cur_max()" identifier (argument_list "()" ( )))) ;) (if_statement "if ((ulong)(long)(int)sVar3 <= uVar4) {\n      uVar4 = (long)(int)sVar3;\n    }" if (parenthesized_expression "((ulong)(long)(int)sVar3 <= uVar4)" ( (binary_expression "(ulong)(long)(int)sVar3 <= uVar4" (cast_expression "(ulong)(long)(int)sVar3" ( (type_descriptor "ulong" type_identifier) ) (cast_expression "(long)(int)sVar3" ( (type_descriptor "long" (sized_type_specifier "long" long)) ) (cast_expression "(int)sVar3" ( (type_descriptor "int" primitive_type) ) identifier))) <= identifier) )) (compound_statement "{\n      uVar4 = (long)(int)sVar3;\n    }" { (expression_statement "uVar4 = (long)(int)sVar3;" (assignment_expression "uVar4 = (long)(int)sVar3" identifier = (cast_expression "(long)(int)sVar3" ( (type_descriptor "long" (sized_type_specifier "long" long)) ) (cast_expression "(int)sVar3" ( (type_descriptor "int" primitive_type) ) identifier))) ;) })) (if_statement "if (ps == (mbstate_t_conflict *)0x0) {\n      uVar4 = __mbrlen(src,uVar4,(mbstate_t *)0x0);\n      if (uVar4 == 0xfffffffffffffffe) {\n        return L'\xfffffffe';\n      }\n      if (uVar4 == 0xffffffffffffffff) {\n        return L'\xffffffff';\n      }\n    }\n    else {\n      uVar4 = mbrtowc((wchar_t *)0x0,src,uVar4,(mbstate_t *)ps);\n      if (uVar4 == 0xfffffffffffffffe) {\n        ps->__count = L'\0';\n        ps->__value = (anon_union_4_2_91654ee9_for___value)0x0;\n        return L'\xfffffffe';\n      }\n      if (uVar4 == 0xffffffffffffffff) {\n        ps->__count = L'\0';\n        ps->__value = (anon_union_4_2_91654ee9_for___value)0x0;\n        return L'\xffffffff';\n      }\n    }" if (parenthesized_expression "(ps == (mbstate_t_conflict *)0x0)" ( (binary_expression "ps == (mbstate_t_conflict *)0x0" identifier == (cast_expression "(mbstate_t_conflict *)0x0" ( (type_descriptor "mbstate_t_conflict *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n      uVar4 = __mbrlen(src,uVar4,(mbstate_t *)0x0);\n      if (uVar4 == 0xfffffffffffffffe) {\n        return L'\xfffffffe';\n      }\n      if (uVar4 == 0xffffffffffffffff) {\n        return L'\xffffffff';\n      }\n    }" { (expression_statement "uVar4 = __mbrlen(src,uVar4,(mbstate_t *)0x0);" (assignment_expression "uVar4 = __mbrlen(src,uVar4,(mbstate_t *)0x0)" identifier = (call_expression "__mbrlen(src,uVar4,(mbstate_t *)0x0)" identifier (argument_list "(src,uVar4,(mbstate_t *)0x0)" ( identifier , identifier , (cast_expression "(mbstate_t *)0x0" ( (type_descriptor "mbstate_t *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal) )))) ;) (if_statement "if (uVar4 == 0xfffffffffffffffe) {\n        return L'\xfffffffe';\n      }" if (parenthesized_expression "(uVar4 == 0xfffffffffffffffe)" ( (binary_expression "uVar4 == 0xfffffffffffffffe" identifier == number_literal) )) (compound_statement "{\n        return L'\xfffffffe';\n      }" { (return_statement "return L'\xfffffffe';" return (char_literal "L'\xfffffffe'" L' escape_sequence character character character character ') ;) })) (if_statement "if (uVar4 == 0xffffffffffffffff) {\n        return L'\xffffffff';\n      }" if (parenthesized_expression "(uVar4 == 0xffffffffffffffff)" ( (binary_expression "uVar4 == 0xffffffffffffffff" identifier == number_literal) )) (compound_statement "{\n        return L'\xffffffff';\n      }" { (return_statement "return L'\xffffffff';" return (char_literal "L'\xffffffff'" L' escape_sequence character character character character ') ;) })) }) (else_clause "else {\n      uVar4 = mbrtowc((wchar_t *)0x0,src,uVar4,(mbstate_t *)ps);\n      if (uVar4 == 0xfffffffffffffffe) {\n        ps->__count = L'\0';\n        ps->__value = (anon_union_4_2_91654ee9_for___value)0x0;\n        return L'\xfffffffe';\n      }\n      if (uVar4 == 0xffffffffffffffff) {\n        ps->__count = L'\0';\n        ps->__value = (anon_union_4_2_91654ee9_for___value)0x0;\n        return L'\xffffffff';\n      }\n    }" else (compound_statement "{\n      uVar4 = mbrtowc((wchar_t *)0x0,src,uVar4,(mbstate_t *)ps);\n      if (uVar4 == 0xfffffffffffffffe) {\n        ps->__count = L'\0';\n        ps->__value = (anon_union_4_2_91654ee9_for___value)0x0;\n        return L'\xfffffffe';\n      }\n      if (uVar4 == 0xffffffffffffffff) {\n        ps->__count = L'\0';\n        ps->__value = (anon_union_4_2_91654ee9_for___value)0x0;\n        return L'\xffffffff';\n      }\n    }" { (expression_statement "uVar4 = mbrtowc((wchar_t *)0x0,src,uVar4,(mbstate_t *)ps);" (assignment_expression "uVar4 = mbrtowc((wchar_t *)0x0,src,uVar4,(mbstate_t *)ps)" identifier = (call_expression "mbrtowc((wchar_t *)0x0,src,uVar4,(mbstate_t *)ps)" identifier (argument_list "((wchar_t *)0x0,src,uVar4,(mbstate_t *)ps)" ( (cast_expression "(wchar_t *)0x0" ( (type_descriptor "wchar_t *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal) , identifier , identifier , (cast_expression "(mbstate_t *)ps" ( (type_descriptor "mbstate_t *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier) )))) ;) (if_statement "if (uVar4 == 0xfffffffffffffffe) {\n        ps->__count = L'\0';\n        ps->__value = (anon_union_4_2_91654ee9_for___value)0x0;\n        return L'\xfffffffe';\n      }" if (parenthesized_expression "(uVar4 == 0xfffffffffffffffe)" ( (binary_expression "uVar4 == 0xfffffffffffffffe" identifier == number_literal) )) (compound_statement "{\n        ps->__count = L'\0';\n        ps->__value = (anon_union_4_2_91654ee9_for___value)0x0;\n        return L'\xfffffffe';\n      }" { (expression_statement "ps->__count = L'\0';" (assignment_expression "ps->__count = L'\0'" (field_expression "ps->__count" identifier -> field_identifier) = (char_literal "L'\0'" L' escape_sequence ')) ;) (expression_statement "ps->__value = (anon_union_4_2_91654ee9_for___value)0x0;" (assignment_expression "ps->__value = (anon_union_4_2_91654ee9_for___value)0x0" (field_expression "ps->__value" identifier -> field_identifier) = (cast_expression "(anon_union_4_2_91654ee9_for___value)0x0" ( (type_descriptor "anon_union_4_2_91654ee9_for___value" type_identifier) ) number_literal)) ;) (return_statement "return L'\xfffffffe';" return (char_literal "L'\xfffffffe'" L' escape_sequence character character character character ') ;) })) (if_statement "if (uVar4 == 0xffffffffffffffff) {\n        ps->__count = L'\0';\n        ps->__value = (anon_union_4_2_91654ee9_for___value)0x0;\n        return L'\xffffffff';\n      }" if (parenthesized_expression "(uVar4 == 0xffffffffffffffff)" ( (binary_expression "uVar4 == 0xffffffffffffffff" identifier == number_literal) )) (compound_statement "{\n        ps->__count = L'\0';\n        ps->__value = (anon_union_4_2_91654ee9_for___value)0x0;\n        return L'\xffffffff';\n      }" { (expression_statement "ps->__count = L'\0';" (assignment_expression "ps->__count = L'\0'" (field_expression "ps->__count" identifier -> field_identifier) = (char_literal "L'\0'" L' escape_sequence ')) ;) (expression_statement "ps->__value = (anon_union_4_2_91654ee9_for___value)0x0;" (assignment_expression "ps->__value = (anon_union_4_2_91654ee9_for___value)0x0" (field_expression "ps->__value" identifier -> field_identifier) = (cast_expression "(anon_union_4_2_91654ee9_for___value)0x0" ( (type_descriptor "anon_union_4_2_91654ee9_for___value" type_identifier) ) number_literal)) ;) (return_statement "return L'\xffffffff';" return (char_literal "L'\xffffffff'" L' escape_sequence character character character character ') ;) })) }))) }) (else_clause "else {\n    uVar4 = (ulong)(*src != '\0');\n  }" else (compound_statement "{\n    uVar4 = (ulong)(*src != '\0');\n  }" { (expression_statement "uVar4 = (ulong)(*src != '\0');" (assignment_expression "uVar4 = (ulong)(*src != '\0')" identifier = (call_expression "(ulong)(*src != '\0')" (parenthesized_expression "(ulong)" ( identifier )) (argument_list "(*src != '\0')" ( (binary_expression "*src != '\0'" (pointer_expression "*src" * identifier) != (char_literal "'\0'" ' escape_sequence ')) )))) ;) }))) (expression_statement "wVar2 = (wchar_t)uVar4;" (assignment_expression "wVar2 = (wchar_t)uVar4" identifier = (cast_expression "(wchar_t)uVar4" ( (type_descriptor "wchar_t" type_identifier) ) identifier)) ;) (if_statement "if (uVar4 == 0) {\n    wVar2 = L'\0';\n  }" if (parenthesized_expression "(uVar4 == 0)" ( (binary_expression "uVar4 == 0" identifier == number_literal) )) (compound_statement "{\n    wVar2 = L'\0';\n  }" { (expression_statement "wVar2 = L'\0';" (assignment_expression "wVar2 = L'\0'" identifier = (char_literal "L'\0'" L' escape_sequence ')) ;) })) (return_statement "return wVar2;" return identifier ;) })))
(translation_unit "ulong _rl_get_char_len(char *param_1,mbstate_t *param_2)\n\n{\n  char cVar1;\n  size_t sVar2;\n  ulong uVar3;\n  ulong uVar4;\n  char *pcVar5;\n  \n  uVar4 = 0xffffffffffffffff;\n  pcVar5 = param_1;\n  do {\n    if (uVar4 == 0) break;\n    uVar4 = uVar4 - 1;\n    cVar1 = *pcVar5;\n    pcVar5 = pcVar5 + 1;\n  } while (cVar1 != '\0');\n  uVar4 = ~uVar4 - 1;\n  if (((_rl_utf8locale == 0) || (uVar4 == 0)) || (*param_1 < '\0')) {\n    sVar2 = __ctype_get_mb_cur_max();\n    if ((ulong)(long)(int)sVar2 <= uVar4) {\n      uVar4 = (long)(int)sVar2;\n    }\n    if (param_2 == (mbstate_t *)0x0) {\n      uVar4 = __mbrlen(param_1,uVar4,(mbstate_t *)0x0);\n      if (uVar4 == 0xfffffffffffffffe) {\n        return 0xfffffffe;\n      }\n      if (uVar4 == 0xffffffffffffffff) {\n        return 0xffffffff;\n      }\n    }\n    else {\n      uVar4 = mbrtowc((wchar_t *)0x0,param_1,uVar4,param_2);\n      if (uVar4 == 0xfffffffffffffffe) {\n        param_2->__count = 0;\n        param_2->__value = (_union_27)0x0;\n        return 0xfffffffe;\n      }\n      if (uVar4 == 0xffffffffffffffff) {\n        param_2->__count = 0;\n        param_2->__value = (_union_27)0x0;\n        return 0xffffffff;\n      }\n    }\n  }\n  else {\n    uVar4 = (ulong)(*param_1 != '\0');\n  }\n  uVar3 = uVar4 & 0xffffffff;\n  if (uVar4 == 0) {\n    uVar3 = 0;\n  }\n  return uVar3;\n}\n\n" (function_definition "ulong _rl_get_char_len(char *param_1,mbstate_t *param_2)\n\n{\n  char cVar1;\n  size_t sVar2;\n  ulong uVar3;\n  ulong uVar4;\n  char *pcVar5;\n  \n  uVar4 = 0xffffffffffffffff;\n  pcVar5 = param_1;\n  do {\n    if (uVar4 == 0) break;\n    uVar4 = uVar4 - 1;\n    cVar1 = *pcVar5;\n    pcVar5 = pcVar5 + 1;\n  } while (cVar1 != '\0');\n  uVar4 = ~uVar4 - 1;\n  if (((_rl_utf8locale == 0) || (uVar4 == 0)) || (*param_1 < '\0')) {\n    sVar2 = __ctype_get_mb_cur_max();\n    if ((ulong)(long)(int)sVar2 <= uVar4) {\n      uVar4 = (long)(int)sVar2;\n    }\n    if (param_2 == (mbstate_t *)0x0) {\n      uVar4 = __mbrlen(param_1,uVar4,(mbstate_t *)0x0);\n      if (uVar4 == 0xfffffffffffffffe) {\n        return 0xfffffffe;\n      }\n      if (uVar4 == 0xffffffffffffffff) {\n        return 0xffffffff;\n      }\n    }\n    else {\n      uVar4 = mbrtowc((wchar_t *)0x0,param_1,uVar4,param_2);\n      if (uVar4 == 0xfffffffffffffffe) {\n        param_2->__count = 0;\n        param_2->__value = (_union_27)0x0;\n        return 0xfffffffe;\n      }\n      if (uVar4 == 0xffffffffffffffff) {\n        param_2->__count = 0;\n        param_2->__value = (_union_27)0x0;\n        return 0xffffffff;\n      }\n    }\n  }\n  else {\n    uVar4 = (ulong)(*param_1 != '\0');\n  }\n  uVar3 = uVar4 & 0xffffffff;\n  if (uVar4 == 0) {\n    uVar3 = 0;\n  }\n  return uVar3;\n}" type_identifier (function_declarator "_rl_get_char_len(char *param_1,mbstate_t *param_2)" identifier (parameter_list "(char *param_1,mbstate_t *param_2)" ( (parameter_declaration "char *param_1" primitive_type (pointer_declarator "*param_1" * identifier)) , (parameter_declaration "mbstate_t *param_2" type_identifier (pointer_declarator "*param_2" * identifier)) ))) (compound_statement "{\n  char cVar1;\n  size_t sVar2;\n  ulong uVar3;\n  ulong uVar4;\n  char *pcVar5;\n  \n  uVar4 = 0xffffffffffffffff;\n  pcVar5 = param_1;\n  do {\n    if (uVar4 == 0) break;\n    uVar4 = uVar4 - 1;\n    cVar1 = *pcVar5;\n    pcVar5 = pcVar5 + 1;\n  } while (cVar1 != '\0');\n  uVar4 = ~uVar4 - 1;\n  if (((_rl_utf8locale == 0) || (uVar4 == 0)) || (*param_1 < '\0')) {\n    sVar2 = __ctype_get_mb_cur_max();\n    if ((ulong)(long)(int)sVar2 <= uVar4) {\n      uVar4 = (long)(int)sVar2;\n    }\n    if (param_2 == (mbstate_t *)0x0) {\n      uVar4 = __mbrlen(param_1,uVar4,(mbstate_t *)0x0);\n      if (uVar4 == 0xfffffffffffffffe) {\n        return 0xfffffffe;\n      }\n      if (uVar4 == 0xffffffffffffffff) {\n        return 0xffffffff;\n      }\n    }\n    else {\n      uVar4 = mbrtowc((wchar_t *)0x0,param_1,uVar4,param_2);\n      if (uVar4 == 0xfffffffffffffffe) {\n        param_2->__count = 0;\n        param_2->__value = (_union_27)0x0;\n        return 0xfffffffe;\n      }\n      if (uVar4 == 0xffffffffffffffff) {\n        param_2->__count = 0;\n        param_2->__value = (_union_27)0x0;\n        return 0xffffffff;\n      }\n    }\n  }\n  else {\n    uVar4 = (ulong)(*param_1 != '\0');\n  }\n  uVar3 = uVar4 & 0xffffffff;\n  if (uVar4 == 0) {\n    uVar3 = 0;\n  }\n  return uVar3;\n}" { (declaration "char cVar1;" primitive_type identifier ;) (declaration "size_t sVar2;" primitive_type identifier ;) (declaration "ulong uVar3;" type_identifier identifier ;) (declaration "ulong uVar4;" type_identifier identifier ;) (declaration "char *pcVar5;" primitive_type (pointer_declarator "*pcVar5" * identifier) ;) (expression_statement "uVar4 = 0xffffffffffffffff;" (assignment_expression "uVar4 = 0xffffffffffffffff" identifier = number_literal) ;) (expression_statement "pcVar5 = param_1;" (assignment_expression "pcVar5 = param_1" identifier = identifier) ;) (do_statement "do {\n    if (uVar4 == 0) break;\n    uVar4 = uVar4 - 1;\n    cVar1 = *pcVar5;\n    pcVar5 = pcVar5 + 1;\n  } while (cVar1 != '\0');" do (compound_statement "{\n    if (uVar4 == 0) break;\n    uVar4 = uVar4 - 1;\n    cVar1 = *pcVar5;\n    pcVar5 = pcVar5 + 1;\n  }" { (if_statement "if (uVar4 == 0) break;" if (parenthesized_expression "(uVar4 == 0)" ( (binary_expression "uVar4 == 0" identifier == number_literal) )) (break_statement "break;" break ;)) (expression_statement "uVar4 = uVar4 - 1;" (assignment_expression "uVar4 = uVar4 - 1" identifier = (binary_expression "uVar4 - 1" identifier - number_literal)) ;) (expression_statement "cVar1 = *pcVar5;" (assignment_expression "cVar1 = *pcVar5" identifier = (pointer_expression "*pcVar5" * identifier)) ;) (expression_statement "pcVar5 = pcVar5 + 1;" (assignment_expression "pcVar5 = pcVar5 + 1" identifier = (binary_expression "pcVar5 + 1" identifier + number_literal)) ;) }) while (parenthesized_expression "(cVar1 != '\0')" ( (binary_expression "cVar1 != '\0'" identifier != (char_literal "'\0'" ' escape_sequence ')) )) ;) (expression_statement "uVar4 = ~uVar4 - 1;" (assignment_expression "uVar4 = ~uVar4 - 1" identifier = (binary_expression "~uVar4 - 1" (unary_expression "~uVar4" ~ identifier) - number_literal)) ;) (if_statement "if (((_rl_utf8locale == 0) || (uVar4 == 0)) || (*param_1 < '\0')) {\n    sVar2 = __ctype_get_mb_cur_max();\n    if ((ulong)(long)(int)sVar2 <= uVar4) {\n      uVar4 = (long)(int)sVar2;\n    }\n    if (param_2 == (mbstate_t *)0x0) {\n      uVar4 = __mbrlen(param_1,uVar4,(mbstate_t *)0x0);\n      if (uVar4 == 0xfffffffffffffffe) {\n        return 0xfffffffe;\n      }\n      if (uVar4 == 0xffffffffffffffff) {\n        return 0xffffffff;\n      }\n    }\n    else {\n      uVar4 = mbrtowc((wchar_t *)0x0,param_1,uVar4,param_2);\n      if (uVar4 == 0xfffffffffffffffe) {\n        param_2->__count = 0;\n        param_2->__value = (_union_27)0x0;\n        return 0xfffffffe;\n      }\n      if (uVar4 == 0xffffffffffffffff) {\n        param_2->__count = 0;\n        param_2->__value = (_union_27)0x0;\n        return 0xffffffff;\n      }\n    }\n  }\n  else {\n    uVar4 = (ulong)(*param_1 != '\0');\n  }" if (parenthesized_expression "(((_rl_utf8locale == 0) || (uVar4 == 0)) || (*param_1 < '\0'))" ( (binary_expression "((_rl_utf8locale == 0) || (uVar4 == 0)) || (*param_1 < '\0')" (parenthesized_expression "((_rl_utf8locale == 0) || (uVar4 == 0))" ( (binary_expression "(_rl_utf8locale == 0) || (uVar4 == 0)" (parenthesized_expression "(_rl_utf8locale == 0)" ( (binary_expression "_rl_utf8locale == 0" identifier == number_literal) )) || (parenthesized_expression "(uVar4 == 0)" ( (binary_expression "uVar4 == 0" identifier == number_literal) ))) )) || (parenthesized_expression "(*param_1 < '\0')" ( (binary_expression "*param_1 < '\0'" (pointer_expression "*param_1" * identifier) < (char_literal "'\0'" ' escape_sequence ')) ))) )) (compound_statement "{\n    sVar2 = __ctype_get_mb_cur_max();\n    if ((ulong)(long)(int)sVar2 <= uVar4) {\n      uVar4 = (long)(int)sVar2;\n    }\n    if (param_2 == (mbstate_t *)0x0) {\n      uVar4 = __mbrlen(param_1,uVar4,(mbstate_t *)0x0);\n      if (uVar4 == 0xfffffffffffffffe) {\n        return 0xfffffffe;\n      }\n      if (uVar4 == 0xffffffffffffffff) {\n        return 0xffffffff;\n      }\n    }\n    else {\n      uVar4 = mbrtowc((wchar_t *)0x0,param_1,uVar4,param_2);\n      if (uVar4 == 0xfffffffffffffffe) {\n        param_2->__count = 0;\n        param_2->__value = (_union_27)0x0;\n        return 0xfffffffe;\n      }\n      if (uVar4 == 0xffffffffffffffff) {\n        param_2->__count = 0;\n        param_2->__value = (_union_27)0x0;\n        return 0xffffffff;\n      }\n    }\n  }" { (expression_statement "sVar2 = __ctype_get_mb_cur_max();" (assignment_expression "sVar2 = __ctype_get_mb_cur_max()" identifier = (call_expression "__ctype_get_mb_cur_max()" identifier (argument_list "()" ( )))) ;) (if_statement "if ((ulong)(long)(int)sVar2 <= uVar4) {\n      uVar4 = (long)(int)sVar2;\n    }" if (parenthesized_expression "((ulong)(long)(int)sVar2 <= uVar4)" ( (binary_expression "(ulong)(long)(int)sVar2 <= uVar4" (cast_expression "(ulong)(long)(int)sVar2" ( (type_descriptor "ulong" type_identifier) ) (cast_expression "(long)(int)sVar2" ( (type_descriptor "long" (sized_type_specifier "long" long)) ) (cast_expression "(int)sVar2" ( (type_descriptor "int" primitive_type) ) identifier))) <= identifier) )) (compound_statement "{\n      uVar4 = (long)(int)sVar2;\n    }" { (expression_statement "uVar4 = (long)(int)sVar2;" (assignment_expression "uVar4 = (long)(int)sVar2" identifier = (cast_expression "(long)(int)sVar2" ( (type_descriptor "long" (sized_type_specifier "long" long)) ) (cast_expression "(int)sVar2" ( (type_descriptor "int" primitive_type) ) identifier))) ;) })) (if_statement "if (param_2 == (mbstate_t *)0x0) {\n      uVar4 = __mbrlen(param_1,uVar4,(mbstate_t *)0x0);\n      if (uVar4 == 0xfffffffffffffffe) {\n        return 0xfffffffe;\n      }\n      if (uVar4 == 0xffffffffffffffff) {\n        return 0xffffffff;\n      }\n    }\n    else {\n      uVar4 = mbrtowc((wchar_t *)0x0,param_1,uVar4,param_2);\n      if (uVar4 == 0xfffffffffffffffe) {\n        param_2->__count = 0;\n        param_2->__value = (_union_27)0x0;\n        return 0xfffffffe;\n      }\n      if (uVar4 == 0xffffffffffffffff) {\n        param_2->__count = 0;\n        param_2->__value = (_union_27)0x0;\n        return 0xffffffff;\n      }\n    }" if (parenthesized_expression "(param_2 == (mbstate_t *)0x0)" ( (binary_expression "param_2 == (mbstate_t *)0x0" identifier == (cast_expression "(mbstate_t *)0x0" ( (type_descriptor "mbstate_t *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n      uVar4 = __mbrlen(param_1,uVar4,(mbstate_t *)0x0);\n      if (uVar4 == 0xfffffffffffffffe) {\n        return 0xfffffffe;\n      }\n      if (uVar4 == 0xffffffffffffffff) {\n        return 0xffffffff;\n      }\n    }" { (expression_statement "uVar4 = __mbrlen(param_1,uVar4,(mbstate_t *)0x0);" (assignment_expression "uVar4 = __mbrlen(param_1,uVar4,(mbstate_t *)0x0)" identifier = (call_expression "__mbrlen(param_1,uVar4,(mbstate_t *)0x0)" identifier (argument_list "(param_1,uVar4,(mbstate_t *)0x0)" ( identifier , identifier , (cast_expression "(mbstate_t *)0x0" ( (type_descriptor "mbstate_t *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal) )))) ;) (if_statement "if (uVar4 == 0xfffffffffffffffe) {\n        return 0xfffffffe;\n      }" if (parenthesized_expression "(uVar4 == 0xfffffffffffffffe)" ( (binary_expression "uVar4 == 0xfffffffffffffffe" identifier == number_literal) )) (compound_statement "{\n        return 0xfffffffe;\n      }" { (return_statement "return 0xfffffffe;" return number_literal ;) })) (if_statement "if (uVar4 == 0xffffffffffffffff) {\n        return 0xffffffff;\n      }" if (parenthesized_expression "(uVar4 == 0xffffffffffffffff)" ( (binary_expression "uVar4 == 0xffffffffffffffff" identifier == number_literal) )) (compound_statement "{\n        return 0xffffffff;\n      }" { (return_statement "return 0xffffffff;" return number_literal ;) })) }) (else_clause "else {\n      uVar4 = mbrtowc((wchar_t *)0x0,param_1,uVar4,param_2);\n      if (uVar4 == 0xfffffffffffffffe) {\n        param_2->__count = 0;\n        param_2->__value = (_union_27)0x0;\n        return 0xfffffffe;\n      }\n      if (uVar4 == 0xffffffffffffffff) {\n        param_2->__count = 0;\n        param_2->__value = (_union_27)0x0;\n        return 0xffffffff;\n      }\n    }" else (compound_statement "{\n      uVar4 = mbrtowc((wchar_t *)0x0,param_1,uVar4,param_2);\n      if (uVar4 == 0xfffffffffffffffe) {\n        param_2->__count = 0;\n        param_2->__value = (_union_27)0x0;\n        return 0xfffffffe;\n      }\n      if (uVar4 == 0xffffffffffffffff) {\n        param_2->__count = 0;\n        param_2->__value = (_union_27)0x0;\n        return 0xffffffff;\n      }\n    }" { (expression_statement "uVar4 = mbrtowc((wchar_t *)0x0,param_1,uVar4,param_2);" (assignment_expression "uVar4 = mbrtowc((wchar_t *)0x0,param_1,uVar4,param_2)" identifier = (call_expression "mbrtowc((wchar_t *)0x0,param_1,uVar4,param_2)" identifier (argument_list "((wchar_t *)0x0,param_1,uVar4,param_2)" ( (cast_expression "(wchar_t *)0x0" ( (type_descriptor "wchar_t *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal) , identifier , identifier , identifier )))) ;) (if_statement "if (uVar4 == 0xfffffffffffffffe) {\n        param_2->__count = 0;\n        param_2->__value = (_union_27)0x0;\n        return 0xfffffffe;\n      }" if (parenthesized_expression "(uVar4 == 0xfffffffffffffffe)" ( (binary_expression "uVar4 == 0xfffffffffffffffe" identifier == number_literal) )) (compound_statement "{\n        param_2->__count = 0;\n        param_2->__value = (_union_27)0x0;\n        return 0xfffffffe;\n      }" { (expression_statement "param_2->__count = 0;" (assignment_expression "param_2->__count = 0" (field_expression "param_2->__count" identifier -> field_identifier) = number_literal) ;) (expression_statement "param_2->__value = (_union_27)0x0;" (assignment_expression "param_2->__value = (_union_27)0x0" (field_expression "param_2->__value" identifier -> field_identifier) = (cast_expression "(_union_27)0x0" ( (type_descriptor "_union_27" type_identifier) ) number_literal)) ;) (return_statement "return 0xfffffffe;" return number_literal ;) })) (if_statement "if (uVar4 == 0xffffffffffffffff) {\n        param_2->__count = 0;\n        param_2->__value = (_union_27)0x0;\n        return 0xffffffff;\n      }" if (parenthesized_expression "(uVar4 == 0xffffffffffffffff)" ( (binary_expression "uVar4 == 0xffffffffffffffff" identifier == number_literal) )) (compound_statement "{\n        param_2->__count = 0;\n        param_2->__value = (_union_27)0x0;\n        return 0xffffffff;\n      }" { (expression_statement "param_2->__count = 0;" (assignment_expression "param_2->__count = 0" (field_expression "param_2->__count" identifier -> field_identifier) = number_literal) ;) (expression_statement "param_2->__value = (_union_27)0x0;" (assignment_expression "param_2->__value = (_union_27)0x0" (field_expression "param_2->__value" identifier -> field_identifier) = (cast_expression "(_union_27)0x0" ( (type_descriptor "_union_27" type_identifier) ) number_literal)) ;) (return_statement "return 0xffffffff;" return number_literal ;) })) }))) }) (else_clause "else {\n    uVar4 = (ulong)(*param_1 != '\0');\n  }" else (compound_statement "{\n    uVar4 = (ulong)(*param_1 != '\0');\n  }" { (expression_statement "uVar4 = (ulong)(*param_1 != '\0');" (assignment_expression "uVar4 = (ulong)(*param_1 != '\0')" identifier = (call_expression "(ulong)(*param_1 != '\0')" (parenthesized_expression "(ulong)" ( identifier )) (argument_list "(*param_1 != '\0')" ( (binary_expression "*param_1 != '\0'" (pointer_expression "*param_1" * identifier) != (char_literal "'\0'" ' escape_sequence ')) )))) ;) }))) (expression_statement "uVar3 = uVar4 & 0xffffffff;" (assignment_expression "uVar3 = uVar4 & 0xffffffff" identifier = (binary_expression "uVar4 & 0xffffffff" identifier & number_literal)) ;) (if_statement "if (uVar4 == 0) {\n    uVar3 = 0;\n  }" if (parenthesized_expression "(uVar4 == 0)" ( (binary_expression "uVar4 == 0" identifier == number_literal) )) (compound_statement "{\n    uVar3 = 0;\n  }" { (expression_statement "uVar3 = 0;" (assignment_expression "uVar3 = 0" identifier = number_literal) ;) })) (return_statement "return uVar3;" return identifier ;) })))
(translation_unit (function_definition TYPE (function_declarator IDENT (parameter_list ( (parameter_declaration TYPE (pointer_declarator * IDENT)) , (parameter_declaration TYPE (pointer_declarator * IDENT)) ))) (compound_statement { (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE (pointer_declarator * IDENT) ;) (expression_statement (assignment_expression IDENT = LIT) ;) (expression_statement (assignment_expression IDENT = IDENT) ;) (do_statement do (compound_statement { (if_statement if (parenthesized_expression ( (binary_expression IDENT == LIT) )) (break_statement break ;)) (expression_statement (assignment_expression IDENT = (binary_expression IDENT - LIT)) ;) (expression_statement (assignment_expression IDENT = (pointer_expression * IDENT)) ;) (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) }) while (parenthesized_expression ( (binary_expression IDENT != (char_literal ' escape_sequence ')) )) ;) (expression_statement (assignment_expression IDENT = (binary_expression (unary_expression ~ IDENT) - LIT)) ;) (if_statement if (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression IDENT == LIT) )) || (parenthesized_expression ( (binary_expression IDENT == LIT) ))) )) || (parenthesized_expression ( (binary_expression (pointer_expression * IDENT) < (char_literal ' escape_sequence ')) ))) )) (compound_statement { (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( )))) ;) (if_statement if (parenthesized_expression ( (binary_expression (cast_expression ( (type_descriptor TYPE) ) (cast_expression ( (type_descriptor (sized_type_specifier long)) ) (cast_expression ( (type_descriptor TYPE) ) IDENT))) <= IDENT) )) (compound_statement { (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor (sized_type_specifier long)) ) (cast_expression ( (type_descriptor TYPE) ) IDENT))) ;) })) (if_statement if (parenthesized_expression ( (binary_expression IDENT == (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) LIT)) )) (compound_statement { (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( IDENT , IDENT , (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) LIT) )))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT == LIT) )) (compound_statement { (return_statement return LIT ;) })) (if_statement if (parenthesized_expression ( (binary_expression IDENT == LIT) )) (compound_statement { (return_statement return LIT ;) })) }) (else_clause else (compound_statement { (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) LIT) , IDENT , IDENT , IDENT )))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT == LIT) )) (compound_statement { (expression_statement (assignment_expression (field_expression IDENT -> field_identifier) = LIT) ;) (expression_statement (assignment_expression (field_expression IDENT -> field_identifier) = (cast_expression ( (type_descriptor TYPE) ) LIT)) ;) (return_statement return LIT ;) })) (if_statement if (parenthesized_expression ( (binary_expression IDENT == LIT) )) (compound_statement { (expression_statement (assignment_expression (field_expression IDENT -> field_identifier) = LIT) ;) (expression_statement (assignment_expression (field_expression IDENT -> field_identifier) = (cast_expression ( (type_descriptor TYPE) ) LIT)) ;) (return_statement return LIT ;) })) }))) }) (else_clause else (compound_statement { (expression_statement (assignment_expression IDENT = (call_expression (parenthesized_expression ( IDENT )) (argument_list ( (binary_expression (pointer_expression * IDENT) != (char_literal ' escape_sequence ')) )))) ;) }))) (expression_statement (assignment_expression IDENT = (binary_expression IDENT & LIT)) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT == LIT) )) (compound_statement { (expression_statement (assignment_expression IDENT = LIT) ;) })) (return_statement return IDENT ;) })))
(function_definition "ulong _rl_get_char_len(char *param_1,mbstate_t *param_2)\n\n{\n  char cVar1;\n  size_t sVar2;\n  ulong uVar3;\n  ulong uVar4;\n  char *pcVar5;\n  \n  uVar4 = 0xffffffffffffffff;\n  pcVar5 = param_1;\n  do {\n    if (uVar4 == 0) break;\n    uVar4 = uVar4 - 1;\n    cVar1 = *pcVar5;\n    pcVar5 = pcVar5 + 1;\n  } while (cVar1 != '\0');\n  uVar4 = ~uVar4 - 1;\n  if (((_rl_utf8locale == 0) || (uVar4 == 0)) || (*param_1 < '\0')) {\n    sVar2 = __ctype_get_mb_cur_max();\n    if ((ulong)(long)(int)sVar2 <= uVar4) {\n      uVar4 = (long)(int)sVar2;\n    }\n    if (param_2 == (mbstate_t *)0x0) {\n      uVar4 = __mbrlen(param_1,uVar4,(mbstate_t *)0x0);\n      if (uVar4 == 0xfffffffffffffffe) {\n        return 0xfffffffe;\n      }\n      if (uVar4 == 0xffffffffffffffff) {\n        return 0xffffffff;\n      }\n    }\n    else {\n      uVar4 = mbrtowc((wchar_t *)0x0,param_1,uVar4,param_2);\n      if (uVar4 == 0xfffffffffffffffe) {\n        param_2->__count = 0;\n        param_2->__value = (_union_27)0x0;\n        return 0xfffffffe;\n      }\n      if (uVar4 == 0xffffffffffffffff) {\n        param_2->__count = 0;\n        param_2->__value = (_union_27)0x0;\n        return 0xffffffff;\n      }\n    }\n  }\n  else {\n    uVar4 = (ulong)(*param_1 != '\0');\n  }\n  uVar3 = uVar4 & 0xffffffff;\n  if (uVar4 == 0) {\n    uVar3 = 0;\n  }\n  return uVar3;\n}" (type_identifier "ulong") (function_declarator "_rl_get_char_len(char *param_1,mbstate_t *param_2)" (identifier "_rl_get_char_len") (parameter_list "(char *param_1,mbstate_t *param_2)" (( "(") (parameter_declaration "char *param_1" (primitive_type "char") (pointer_declarator "*param_1" (* "*") (identifier "param_1"))) (, ",") (parameter_declaration "mbstate_t *param_2" (type_identifier "mbstate_t") (pointer_declarator "*param_2" (* "*") (identifier "param_2"))) () ")"))) (compound_statement "{\n  char cVar1;\n  size_t sVar2;\n  ulong uVar3;\n  ulong uVar4;\n  char *pcVar5;\n  \n  uVar4 = 0xffffffffffffffff;\n  pcVar5 = param_1;\n  do {\n    if (uVar4 == 0) break;\n    uVar4 = uVar4 - 1;\n    cVar1 = *pcVar5;\n    pcVar5 = pcVar5 + 1;\n  } while (cVar1 != '\0');\n  uVar4 = ~uVar4 - 1;\n  if (((_rl_utf8locale == 0) || (uVar4 == 0)) || (*param_1 < '\0')) {\n    sVar2 = __ctype_get_mb_cur_max();\n    if ((ulong)(long)(int)sVar2 <= uVar4) {\n      uVar4 = (long)(int)sVar2;\n    }\n    if (param_2 == (mbstate_t *)0x0) {\n      uVar4 = __mbrlen(param_1,uVar4,(mbstate_t *)0x0);\n      if (uVar4 == 0xfffffffffffffffe) {\n        return 0xfffffffe;\n      }\n      if (uVar4 == 0xffffffffffffffff) {\n        return 0xffffffff;\n      }\n    }\n    else {\n      uVar4 = mbrtowc((wchar_t *)0x0,param_1,uVar4,param_2);\n      if (uVar4 == 0xfffffffffffffffe) {\n        param_2->__count = 0;\n        param_2->__value = (_union_27)0x0;\n        return 0xfffffffe;\n      }\n      if (uVar4 == 0xffffffffffffffff) {\n        param_2->__count = 0;\n        param_2->__value = (_union_27)0x0;\n        return 0xffffffff;\n      }\n    }\n  }\n  else {\n    uVar4 = (ulong)(*param_1 != '\0');\n  }\n  uVar3 = uVar4 & 0xffffffff;\n  if (uVar4 == 0) {\n    uVar3 = 0;\n  }\n  return uVar3;\n}" ({ "{") (declaration "char cVar1;" (primitive_type "char") (identifier "cVar1") (; ";")) (declaration "size_t sVar2;" (primitive_type "size_t") (identifier "sVar2") (; ";")) (declaration "ulong uVar3;" (type_identifier "ulong") (identifier "uVar3") (; ";")) (declaration "ulong uVar4;" (type_identifier "ulong") (identifier "uVar4") (; ";")) (declaration "char *pcVar5;" (primitive_type "char") (pointer_declarator "*pcVar5" (* "*") (identifier "pcVar5")) (; ";")) (expression_statement "uVar4 = 0xffffffffffffffff;" (assignment_expression "uVar4 = 0xffffffffffffffff" (identifier "uVar4") (= "=") (number_literal "0xffffffffffffffff")) (; ";")) (expression_statement "pcVar5 = param_1;" (assignment_expression "pcVar5 = param_1" (identifier "pcVar5") (= "=") (identifier "param_1")) (; ";")) (do_statement "do {\n    if (uVar4 == 0) break;\n    uVar4 = uVar4 - 1;\n    cVar1 = *pcVar5;\n    pcVar5 = pcVar5 + 1;\n  } while (cVar1 != '\0');" (do "do") (compound_statement "{\n    if (uVar4 == 0) break;\n    uVar4 = uVar4 - 1;\n    cVar1 = *pcVar5;\n    pcVar5 = pcVar5 + 1;\n  }" ({ "{") (if_statement "if (uVar4 == 0) break;" (if "if") (parenthesized_expression "(uVar4 == 0)" (( "(") (binary_expression "uVar4 == 0" (identifier "uVar4") (== "==") (number_literal "0")) () ")")) (break_statement "break;" (break "break") (; ";"))) (expression_statement "uVar4 = uVar4 - 1;" (assignment_expression "uVar4 = uVar4 - 1" (identifier "uVar4") (= "=") (binary_expression "uVar4 - 1" (identifier "uVar4") (- "-") (number_literal "1"))) (; ";")) (expression_statement "cVar1 = *pcVar5;" (assignment_expression "cVar1 = *pcVar5" (identifier "cVar1") (= "=") (pointer_expression "*pcVar5" (* "*") (identifier "pcVar5"))) (; ";")) (expression_statement "pcVar5 = pcVar5 + 1;" (assignment_expression "pcVar5 = pcVar5 + 1" (identifier "pcVar5") (= "=") (binary_expression "pcVar5 + 1" (identifier "pcVar5") (+ "+") (number_literal "1"))) (; ";")) (} "}")) (while "while") (parenthesized_expression "(cVar1 != '\0')" (( "(") (binary_expression "cVar1 != '\0'" (identifier "cVar1") (!= "!=") (char_literal "'\0'" (' "'") (escape_sequence "\0") (' "'"))) () ")")) (; ";")) (expression_statement "uVar4 = ~uVar4 - 1;" (assignment_expression "uVar4 = ~uVar4 - 1" (identifier "uVar4") (= "=") (binary_expression "~uVar4 - 1" (unary_expression "~uVar4" (~ "~") (identifier "uVar4")) (- "-") (number_literal "1"))) (; ";")) (if_statement "if (((_rl_utf8locale == 0) || (uVar4 == 0)) || (*param_1 < '\0')) {\n    sVar2 = __ctype_get_mb_cur_max();\n    if ((ulong)(long)(int)sVar2 <= uVar4) {\n      uVar4 = (long)(int)sVar2;\n    }\n    if (param_2 == (mbstate_t *)0x0) {\n      uVar4 = __mbrlen(param_1,uVar4,(mbstate_t *)0x0);\n      if (uVar4 == 0xfffffffffffffffe) {\n        return 0xfffffffe;\n      }\n      if (uVar4 == 0xffffffffffffffff) {\n        return 0xffffffff;\n      }\n    }\n    else {\n      uVar4 = mbrtowc((wchar_t *)0x0,param_1,uVar4,param_2);\n      if (uVar4 == 0xfffffffffffffffe) {\n        param_2->__count = 0;\n        param_2->__value = (_union_27)0x0;\n        return 0xfffffffe;\n      }\n      if (uVar4 == 0xffffffffffffffff) {\n        param_2->__count = 0;\n        param_2->__value = (_union_27)0x0;\n        return 0xffffffff;\n      }\n    }\n  }\n  else {\n    uVar4 = (ulong)(*param_1 != '\0');\n  }" (if "if") (parenthesized_expression "(((_rl_utf8locale == 0) || (uVar4 == 0)) || (*param_1 < '\0'))" (( "(") (binary_expression "((_rl_utf8locale == 0) || (uVar4 == 0)) || (*param_1 < '\0')" (parenthesized_expression "((_rl_utf8locale == 0) || (uVar4 == 0))" (( "(") (binary_expression "(_rl_utf8locale == 0) || (uVar4 == 0)" (parenthesized_expression "(_rl_utf8locale == 0)" (( "(") (binary_expression "_rl_utf8locale == 0" (identifier "_rl_utf8locale") (== "==") (number_literal "0")) () ")")) (|| "||") (parenthesized_expression "(uVar4 == 0)" (( "(") (binary_expression "uVar4 == 0" (identifier "uVar4") (== "==") (number_literal "0")) () ")"))) () ")")) (|| "||") (parenthesized_expression "(*param_1 < '\0')" (( "(") (binary_expression "*param_1 < '\0'" (pointer_expression "*param_1" (* "*") (identifier "param_1")) (< "<") (char_literal "'\0'" (' "'") (escape_sequence "\0") (' "'"))) () ")"))) () ")")) (compound_statement "{\n    sVar2 = __ctype_get_mb_cur_max();\n    if ((ulong)(long)(int)sVar2 <= uVar4) {\n      uVar4 = (long)(int)sVar2;\n    }\n    if (param_2 == (mbstate_t *)0x0) {\n      uVar4 = __mbrlen(param_1,uVar4,(mbstate_t *)0x0);\n      if (uVar4 == 0xfffffffffffffffe) {\n        return 0xfffffffe;\n      }\n      if (uVar4 == 0xffffffffffffffff) {\n        return 0xffffffff;\n      }\n    }\n    else {\n      uVar4 = mbrtowc((wchar_t *)0x0,param_1,uVar4,param_2);\n      if (uVar4 == 0xfffffffffffffffe) {\n        param_2->__count = 0;\n        param_2->__value = (_union_27)0x0;\n        return 0xfffffffe;\n      }\n      if (uVar4 == 0xffffffffffffffff) {\n        param_2->__count = 0;\n        param_2->__value = (_union_27)0x0;\n        return 0xffffffff;\n      }\n    }\n  }" ({ "{") (expression_statement "sVar2 = __ctype_get_mb_cur_max();" (assignment_expression "sVar2 = __ctype_get_mb_cur_max()" (identifier "sVar2") (= "=") (call_expression "__ctype_get_mb_cur_max()" (identifier "__ctype_get_mb_cur_max") (argument_list "()" (( "(") () ")")))) (; ";")) (if_statement "if ((ulong)(long)(int)sVar2 <= uVar4) {\n      uVar4 = (long)(int)sVar2;\n    }" (if "if") (parenthesized_expression "((ulong)(long)(int)sVar2 <= uVar4)" (( "(") (binary_expression "(ulong)(long)(int)sVar2 <= uVar4" (cast_expression "(ulong)(long)(int)sVar2" (( "(") (type_descriptor "ulong" (type_identifier "ulong")) () ")") (cast_expression "(long)(int)sVar2" (( "(") (type_descriptor "long" (sized_type_specifier "long" (long "long"))) () ")") (cast_expression "(int)sVar2" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (identifier "sVar2")))) (<= "<=") (identifier "uVar4")) () ")")) (compound_statement "{\n      uVar4 = (long)(int)sVar2;\n    }" ({ "{") (expression_statement "uVar4 = (long)(int)sVar2;" (assignment_expression "uVar4 = (long)(int)sVar2" (identifier "uVar4") (= "=") (cast_expression "(long)(int)sVar2" (( "(") (type_descriptor "long" (sized_type_specifier "long" (long "long"))) () ")") (cast_expression "(int)sVar2" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (identifier "sVar2")))) (; ";")) (} "}"))) (if_statement "if (param_2 == (mbstate_t *)0x0) {\n      uVar4 = __mbrlen(param_1,uVar4,(mbstate_t *)0x0);\n      if (uVar4 == 0xfffffffffffffffe) {\n        return 0xfffffffe;\n      }\n      if (uVar4 == 0xffffffffffffffff) {\n        return 0xffffffff;\n      }\n    }\n    else {\n      uVar4 = mbrtowc((wchar_t *)0x0,param_1,uVar4,param_2);\n      if (uVar4 == 0xfffffffffffffffe) {\n        param_2->__count = 0;\n        param_2->__value = (_union_27)0x0;\n        return 0xfffffffe;\n      }\n      if (uVar4 == 0xffffffffffffffff) {\n        param_2->__count = 0;\n        param_2->__value = (_union_27)0x0;\n        return 0xffffffff;\n      }\n    }" (if "if") (parenthesized_expression "(param_2 == (mbstate_t *)0x0)" (( "(") (binary_expression "param_2 == (mbstate_t *)0x0" (identifier "param_2") (== "==") (cast_expression "(mbstate_t *)0x0" (( "(") (type_descriptor "mbstate_t *" (type_identifier "mbstate_t") (abstract_pointer_declarator "*" (* "*"))) () ")") (number_literal "0x0"))) () ")")) (compound_statement "{\n      uVar4 = __mbrlen(param_1,uVar4,(mbstate_t *)0x0);\n      if (uVar4 == 0xfffffffffffffffe) {\n        return 0xfffffffe;\n      }\n      if (uVar4 == 0xffffffffffffffff) {\n        return 0xffffffff;\n      }\n    }" ({ "{") (expression_statement "uVar4 = __mbrlen(param_1,uVar4,(mbstate_t *)0x0);" (assignment_expression "uVar4 = __mbrlen(param_1,uVar4,(mbstate_t *)0x0)" (identifier "uVar4") (= "=") (call_expression "__mbrlen(param_1,uVar4,(mbstate_t *)0x0)" (identifier "__mbrlen") (argument_list "(param_1,uVar4,(mbstate_t *)0x0)" (( "(") (identifier "param_1") (, ",") (identifier "uVar4") (, ",") (cast_expression "(mbstate_t *)0x0" (( "(") (type_descriptor "mbstate_t *" (type_identifier "mbstate_t") (abstract_pointer_declarator "*" (* "*"))) () ")") (number_literal "0x0")) () ")")))) (; ";")) (if_statement "if (uVar4 == 0xfffffffffffffffe) {\n        return 0xfffffffe;\n      }" (if "if") (parenthesized_expression "(uVar4 == 0xfffffffffffffffe)" (( "(") (binary_expression "uVar4 == 0xfffffffffffffffe" (identifier "uVar4") (== "==") (number_literal "0xfffffffffffffffe")) () ")")) (compound_statement "{\n        return 0xfffffffe;\n      }" ({ "{") (return_statement "return 0xfffffffe;" (return "return") (number_literal "0xfffffffe") (; ";")) (} "}"))) (if_statement "if (uVar4 == 0xffffffffffffffff) {\n        return 0xffffffff;\n      }" (if "if") (parenthesized_expression "(uVar4 == 0xffffffffffffffff)" (( "(") (binary_expression "uVar4 == 0xffffffffffffffff" (identifier "uVar4") (== "==") (number_literal "0xffffffffffffffff")) () ")")) (compound_statement "{\n        return 0xffffffff;\n      }" ({ "{") (return_statement "return 0xffffffff;" (return "return") (number_literal "0xffffffff") (; ";")) (} "}"))) (} "}")) (else_clause "else {\n      uVar4 = mbrtowc((wchar_t *)0x0,param_1,uVar4,param_2);\n      if (uVar4 == 0xfffffffffffffffe) {\n        param_2->__count = 0;\n        param_2->__value = (_union_27)0x0;\n        return 0xfffffffe;\n      }\n      if (uVar4 == 0xffffffffffffffff) {\n        param_2->__count = 0;\n        param_2->__value = (_union_27)0x0;\n        return 0xffffffff;\n      }\n    }" (else "else") (compound_statement "{\n      uVar4 = mbrtowc((wchar_t *)0x0,param_1,uVar4,param_2);\n      if (uVar4 == 0xfffffffffffffffe) {\n        param_2->__count = 0;\n        param_2->__value = (_union_27)0x0;\n        return 0xfffffffe;\n      }\n      if (uVar4 == 0xffffffffffffffff) {\n        param_2->__count = 0;\n        param_2->__value = (_union_27)0x0;\n        return 0xffffffff;\n      }\n    }" ({ "{") (expression_statement "uVar4 = mbrtowc((wchar_t *)0x0,param_1,uVar4,param_2);" (assignment_expression "uVar4 = mbrtowc((wchar_t *)0x0,param_1,uVar4,param_2)" (identifier "uVar4") (= "=") (call_expression "mbrtowc((wchar_t *)0x0,param_1,uVar4,param_2)" (identifier "mbrtowc") (argument_list "((wchar_t *)0x0,param_1,uVar4,param_2)" (( "(") (cast_expression "(wchar_t *)0x0" (( "(") (type_descriptor "wchar_t *" (type_identifier "wchar_t") (abstract_pointer_declarator "*" (* "*"))) () ")") (number_literal "0x0")) (, ",") (identifier "param_1") (, ",") (identifier "uVar4") (, ",") (identifier "param_2") () ")")))) (; ";")) (if_statement "if (uVar4 == 0xfffffffffffffffe) {\n        param_2->__count = 0;\n        param_2->__value = (_union_27)0x0;\n        return 0xfffffffe;\n      }" (if "if") (parenthesized_expression "(uVar4 == 0xfffffffffffffffe)" (( "(") (binary_expression "uVar4 == 0xfffffffffffffffe" (identifier "uVar4") (== "==") (number_literal "0xfffffffffffffffe")) () ")")) (compound_statement "{\n        param_2->__count = 0;\n        param_2->__value = (_union_27)0x0;\n        return 0xfffffffe;\n      }" ({ "{") (expression_statement "param_2->__count = 0;" (assignment_expression "param_2->__count = 0" (field_expression "param_2->__count" (identifier "param_2") (-> "->") (field_identifier "__count")) (= "=") (number_literal "0")) (; ";")) (expression_statement "param_2->__value = (_union_27)0x0;" (assignment_expression "param_2->__value = (_union_27)0x0" (field_expression "param_2->__value" (identifier "param_2") (-> "->") (field_identifier "__value")) (= "=") (cast_expression "(_union_27)0x0" (( "(") (type_descriptor "_union_27" (type_identifier "_union_27")) () ")") (number_literal "0x0"))) (; ";")) (return_statement "return 0xfffffffe;" (return "return") (number_literal "0xfffffffe") (; ";")) (} "}"))) (if_statement "if (uVar4 == 0xffffffffffffffff) {\n        param_2->__count = 0;\n        param_2->__value = (_union_27)0x0;\n        return 0xffffffff;\n      }" (if "if") (parenthesized_expression "(uVar4 == 0xffffffffffffffff)" (( "(") (binary_expression "uVar4 == 0xffffffffffffffff" (identifier "uVar4") (== "==") (number_literal "0xffffffffffffffff")) () ")")) (compound_statement "{\n        param_2->__count = 0;\n        param_2->__value = (_union_27)0x0;\n        return 0xffffffff;\n      }" ({ "{") (expression_statement "param_2->__count = 0;" (assignment_expression "param_2->__count = 0" (field_expression "param_2->__count" (identifier "param_2") (-> "->") (field_identifier "__count")) (= "=") (number_literal "0")) (; ";")) (expression_statement "param_2->__value = (_union_27)0x0;" (assignment_expression "param_2->__value = (_union_27)0x0" (field_expression "param_2->__value" (identifier "param_2") (-> "->") (field_identifier "__value")) (= "=") (cast_expression "(_union_27)0x0" (( "(") (type_descriptor "_union_27" (type_identifier "_union_27")) () ")") (number_literal "0x0"))) (; ";")) (return_statement "return 0xffffffff;" (return "return") (number_literal "0xffffffff") (; ";")) (} "}"))) (} "}")))) (} "}")) (else_clause "else {\n    uVar4 = (ulong)(*param_1 != '\0');\n  }" (else "else") (compound_statement "{\n    uVar4 = (ulong)(*param_1 != '\0');\n  }" ({ "{") (expression_statement "uVar4 = (ulong)(*param_1 != '\0');" (assignment_expression "uVar4 = (ulong)(*param_1 != '\0')" (identifier "uVar4") (= "=") (call_expression "(ulong)(*param_1 != '\0')" (parenthesized_expression "(ulong)" (( "(") (identifier "ulong") () ")")) (argument_list "(*param_1 != '\0')" (( "(") (binary_expression "*param_1 != '\0'" (pointer_expression "*param_1" (* "*") (identifier "param_1")) (!= "!=") (char_literal "'\0'" (' "'") (escape_sequence "\0") (' "'"))) () ")")))) (; ";")) (} "}")))) (expression_statement "uVar3 = uVar4 & 0xffffffff;" (assignment_expression "uVar3 = uVar4 & 0xffffffff" (identifier "uVar3") (= "=") (binary_expression "uVar4 & 0xffffffff" (identifier "uVar4") (& "&") (number_literal "0xffffffff"))) (; ";")) (if_statement "if (uVar4 == 0) {\n    uVar3 = 0;\n  }" (if "if") (parenthesized_expression "(uVar4 == 0)" (( "(") (binary_expression "uVar4 == 0" (identifier "uVar4") (== "==") (number_literal "0")) () ")")) (compound_statement "{\n    uVar3 = 0;\n  }" ({ "{") (expression_statement "uVar3 = 0;" (assignment_expression "uVar3 = 0" (identifier "uVar3") (= "=") (number_literal "0")) (; ";")) (} "}"))) (return_statement "return uVar3;" (return "return") (identifier "uVar3") (; ";")) (} "}")))

type_1 function_1(char *src,type_2 *var_6)

{
  char var_3;
  type_1 wVar2;
  size_t sVar3;
  type_3 var_1;
  char *var_2;
  
  var_1 = 0xffffffffffffffff;
  var_2 = src;
  do {
    if (var_1 == 0) break;
    var_1 = var_1 - 1;
    var_3 = *var_2;
    var_2 = var_2 + 1;
  } while (var_3 != '\0');
  var_1 = ~var_1 - 1;
  if (((var_4 == L'\0') || (var_1 == 0)) || (*src < '\0')) {
    sVar3 = var_5();
    if ((type_3)(long)(int)sVar3 <= var_1) {
      var_1 = (long)(int)sVar3;
    }
    if (var_6 == (type_2 *)0x0) {
      var_1 = var_7(src,var_1,(type_4 *)0x0);
      if (var_1 == 0xfffffffffffffffe) {
        return L'\xfffffffe';
      }
      if (var_1 == 0xffffffffffffffff) {
        return L'\xffffffff';
      }
    }
    else {
      var_1 = var_8((type_1 *)0x0,src,var_1,(type_4 *)var_6);
      if (var_1 == 0xfffffffffffffffe) {
        var_6->__count = L'\0';
        var_6->__value = (type_5)0x0;
        return L'\xfffffffe';
      }
      if (var_1 == 0xffffffffffffffff) {
        var_6->__count = L'\0';
        var_6->__value = (type_5)0x0;
        return L'\xffffffff';
      }
    }
  }
  else {
    var_1 = (type_3)(*src != '\0');
  }
  wVar2 = (type_1)var_1;
  if (var_1 == 0) {
    wVar2 = L'\0';
  }
  return wVar2;
}


(translation_unit (function_definition type: (type_identifier) declarator: (function_declarator declarator: (identifier) parameters: (parameter_list (parameter_declaration type: (primitive_type) declarator: (pointer_declarator declarator: (identifier))) (parameter_declaration type: (type_identifier) declarator: (pointer_declarator declarator: (identifier))))) body: (compound_statement (declaration type: (primitive_type) declarator: (identifier)) (declaration type: (primitive_type) declarator: (identifier)) (declaration type: (type_identifier) declarator: (identifier)) (declaration type: (type_identifier) declarator: (identifier)) (declaration type: (primitive_type) declarator: (pointer_declarator declarator: (identifier))) (expression_statement (assignment_expression left: (identifier) right: (number_literal))) (expression_statement (assignment_expression left: (identifier) right: (identifier))) (do_statement body: (compound_statement (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))) consequence: (break_statement)) (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (identifier) right: (number_literal)))) (expression_statement (assignment_expression left: (identifier) right: (pointer_expression argument: (identifier)))) (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (identifier) right: (number_literal))))) condition: (parenthesized_expression (binary_expression left: (identifier) right: (char_literal (escape_sequence))))) (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (unary_expression argument: (identifier)) right: (number_literal)))) (if_statement condition: (parenthesized_expression (binary_expression left: (parenthesized_expression (binary_expression left: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))) right: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))))) right: (parenthesized_expression (binary_expression left: (pointer_expression argument: (identifier)) right: (char_literal (escape_sequence)))))) consequence: (compound_statement (expression_statement (assignment_expression left: (identifier) right: (call_expression function: (identifier) arguments: (argument_list)))) (if_statement condition: (parenthesized_expression (binary_expression left: (cast_expression type: (type_descriptor type: (type_identifier)) value: (cast_expression type: (type_descriptor type: (sized_type_specifier)) value: (cast_expression type: (type_descriptor type: (primitive_type)) value: (identifier)))) right: (identifier))) consequence: (compound_statement (expression_statement (assignment_expression left: (identifier) right: (cast_expression type: (type_descriptor type: (sized_type_specifier)) value: (cast_expression type: (type_descriptor type: (primitive_type)) value: (identifier))))))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (number_literal)))) consequence: (compound_statement (expression_statement (assignment_expression left: (identifier) right: (call_expression function: (identifier) arguments: (argument_list (identifier) (identifier) (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (number_literal)))))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))) consequence: (compound_statement (return_statement (number_literal)))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))) consequence: (compound_statement (return_statement (number_literal))))) alternative: (else_clause (compound_statement (expression_statement (assignment_expression left: (identifier) right: (call_expression function: (identifier) arguments: (argument_list (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (number_literal)) (identifier) (identifier) (identifier))))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))) consequence: (compound_statement (expression_statement (assignment_expression left: (field_expression argument: (identifier) field: (field_identifier)) right: (number_literal))) (expression_statement (assignment_expression left: (field_expression argument: (identifier) field: (field_identifier)) right: (cast_expression type: (type_descriptor type: (type_identifier)) value: (number_literal)))) (return_statement (number_literal)))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))) consequence: (compound_statement (expression_statement (assignment_expression left: (field_expression argument: (identifier) field: (field_identifier)) right: (number_literal))) (expression_statement (assignment_expression left: (field_expression argument: (identifier) field: (field_identifier)) right: (cast_expression type: (type_descriptor type: (type_identifier)) value: (number_literal)))) (return_statement (number_literal)))))))) alternative: (else_clause (compound_statement (expression_statement (assignment_expression left: (identifier) right: (call_expression function: (parenthesized_expression (identifier)) arguments: (argument_list (binary_expression left: (pointer_expression argument: (identifier)) right: (char_literal (escape_sequence)))))))))) (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (identifier) right: (number_literal)))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))) consequence: (compound_statement (expression_statement (assignment_expression left: (identifier) right: (number_literal))))) (return_statement (identifier)))))

ulong MASKED(char *param_1,mbstate_t *param_2)

{
  char cVar1;
  size_t sVar2;
  ulong uVar3;
  ulong uVar4;
  char *pcVar5;
  
  uVar4 = 0xffffffffffffffff;
  pcVar5 = param_1;
  do {
    if (uVar4 == 0) break;
    uVar4 = uVar4 - 1;
    cVar1 = *pcVar5;
    pcVar5 = pcVar5 + 1;
  } while (cVar1 != '\0');
  uVar4 = ~uVar4 - 1;
  if (((_rl_utf8locale == 0) || (uVar4 == 0)) || (*param_1 < '\0')) {
    sVar2 = __ctype_get_mb_cur_max();
    if ((ulong)(long)(int)sVar2 <= uVar4) {
      uVar4 = (long)(int)sVar2;
    }
    if (param_2 == (mbstate_t *)0x0) {
      uVar4 = __mbrlen(param_1,uVar4,(mbstate_t *)0x0);
      if (uVar4 == 0xfffffffffffffffe) {
        return 0xfffffffe;
      }
      if (uVar4 == 0xffffffffffffffff) {
        return 0xffffffff;
      }
    }
    else {
      uVar4 = mbrtowc((wchar_t *)0x0,param_1,uVar4,param_2);
      if (uVar4 == 0xfffffffffffffffe) {
        param_2->__count = 0;
        param_2->__value = (_union_27)0x0;
        return 0xfffffffe;
      }
      if (uVar4 == 0xffffffffffffffff) {
        param_2->__count = 0;
        param_2->__value = (_union_27)0x0;
        return 0xffffffff;
      }
    }
  }
  else {
    uVar4 = (ulong)(*param_1 != '\0');
  }
  uVar3 = uVar4 & 0xffffffff;
  if (uVar4 == 0) {
    uVar3 = 0;
  }
  return uVar3;
}

