
int parse_mbchar(char *buf,char *chr,size_t *col)

{
  char cVar1;
  undefined3 extraout_var;
  char *pcVar2;
  _Bool _Var4;
  int iVar3;
  uint uVar5;
  int iVar6;
  
  if (*buf < '\0') {
    iVar3 = (*(code *)PTR_mblen_00078090)(buf,6);
    iVar6 = 1;
    if (0 < iVar3) {
      iVar6 = iVar3;
    }
  }
  else {
    iVar6 = 1;
  }
  if (chr != (char *)0x0) {
    pcVar2 = buf;
    do {
      cVar1 = *pcVar2;
      pcVar2 = pcVar2 + 1;
      *chr = cVar1;
      chr = chr + 1;
    } while (pcVar2 != buf + iVar6);
  }
  if (col != (size_t *)0x0) {
    if (*buf == '\t') {
      uVar5 = *(uint *)PTR_tabsize_000777bc;
      if (uVar5 == 0) {
        trap(7);
      }
      *col = (*col + uVar5) - *col % uVar5;
      return iVar6;
    }
    _Var4 = is_cntrl_mbchar(buf);
    if (CONCAT31(extraout_var,_Var4) == 0) {
      if (iVar6 != 1) {
        iVar3 = 1;
        if (PTR_DAT_0007754c[-0x7da0] != '\0') {
          iVar3 = mbwidth(buf);
        }
        *col = *col + iVar3;
        return iVar6;
      }
      *col = *col + 1;
    }
    else {
      *col = *col + 2;
    }
  }
  return iVar6;
}



int parse_mbchar(char *param_1,char *param_2,uint *param_3)

{
  char cVar1;
  char *pcVar2;
  int iVar3;
  uint uVar4;
  int iVar5;
  
  if (*param_1 < '\0') {
    iVar3 = (*(code *)PTR_mblen_00078090)(param_1,6);
    iVar5 = 1;
    if (0 < iVar3) {
      iVar5 = iVar3;
    }
  }
  else {
    iVar5 = 1;
  }
  if (param_2 != (char *)0x0) {
    pcVar2 = param_1;
    do {
      cVar1 = *pcVar2;
      pcVar2 = pcVar2 + 1;
      *param_2 = cVar1;
      param_2 = param_2 + 1;
    } while (pcVar2 != param_1 + iVar5);
  }
  if (param_3 != (uint *)0x0) {
    if (*param_1 == '\t') {
      uVar4 = *(uint *)PTR_tabsize_000777bc;
      if (uVar4 == 0) {
        trap(7);
      }
      *param_3 = (*param_3 + uVar4) - *param_3 % uVar4;
      return iVar5;
    }
    iVar3 = is_cntrl_mbchar(param_1);
    if (iVar3 == 0) {
      if (iVar5 != 1) {
        iVar3 = 1;
        if (PTR_DAT_0007754c[-0x7da0] != '\0') {
          iVar3 = FUN_0001b340();
        }
        *param_3 = *param_3 + iVar3;
        return iVar5;
      }
      *param_3 = *param_3 + 1;
    }
    else {
      *param_3 = *param_3 + 2;
    }
  }
  return iVar5;
}


lui gp,0x6
addiu gp,gp,0x390c
addu gp,gp,t9
addiu sp,sp,-0x30
sw s3,0x28(sp)
or s3,a2,zero
sw s1,0x20(sp)
or s1,a0,zero
sw s0,0x1c(sp)
sw gp,0x10(sp)
sw ra,0x2c(sp)
sw s2,0x24(sp)
lb v0,0x0(a0)
bltz v0,0x0001bd0c
_or s0,a1,zero
li s2,0x1
beq s0,zero,0x0001bc78
_or v0,s1,zero
addu a0,s2,s1
or a1,s0,zero
lb v1,0x0(v0)
addiu a1,a1,0x1
addiu v0,v0,0x1
bne v0,a0,0x0001bc64
_sb v1,-0x1(a1)
beq s3,zero,0x0001bca8
_li v0,0x9
lb v1,0x0(s1)
beq v1,v0,0x0001bcc8
_lw t9,-0x7ba4(gp)
bal 0x0001b710
_or a0,s1,zero
beq v0,zero,0x0001bd30
_lw gp,0x10(sp)
lw v0,0x0(s3)
addiu v0,v0,0x2
sw v0,0x0(s3)
lw ra,0x2c(sp)
or v0,s2,zero
lw s3,0x28(sp)
lw s2,0x24(sp)
lw s1,0x20(sp)
lw s0,0x1c(sp)
jr ra
_addiu sp,sp,0x30
lw v1,-0x7d64(gp)
lw v0,0x0(s3)
lw ra,0x2c(sp)
lw s1,0x20(sp)
lw v1,0x0(v1)
lw s0,0x1c(sp)
teq v1,zero
divu v0,v1
addu v0,v0,v1
mfhi a0
subu v0,v0,a0
sw v0,0x0(s3)
or v0,s2,zero
lw s3,0x28(sp)
lw s2,0x24(sp)
jr ra
_addiu sp,sp,0x30
lw t9,-0x7490(gp)
jalr t9
_li a1,0x6
li v1,0x1
slt s2,zero,v0
lw gp,0x10(sp)
movn v1,v0,s2
b 0x0001bc54
_or s2,v1,zero
li v0,0x1
beq s2,v0,0x0001bd84
_lw v0,-0x7fd4(gp)
lbu v0,-0x7da0(v0)
beq v0,zero,0x0001bd58
_li v0,0x1
lw t9,-0x7fc8(gp)
addiu t9,t9,-0x4cc0
bal 0x0001b340
_nop
lw v1,0x0(s3)
lw ra,0x2c(sp)
lw s1,0x20(sp)
addu v1,v1,v0
lw s0,0x1c(sp)
or v0,s2,zero
lw s2,0x24(sp)
sw v1,0x0(s3)
lw s3,0x28(sp)
jr ra
_addiu sp,sp,0x30
lw v0,0x0(s3)
addiu v0,v0,0x1
b 0x0001bca8
_sw v0,0x0(s3)
(translation_unit "int parse_mbchar(char *param_1,char *param_2,uint *param_3)\n\n{\n  char cVar1;\n  char *pcVar2;\n  int iVar3;\n  uint uVar4;\n  int iVar5;\n  \n  if (*param_1 < '\0') {\n    iVar3 = (*(code *)PTR_mblen_00078090)(param_1,6);\n    iVar5 = 1;\n    if (0 < iVar3) {\n      iVar5 = iVar3;\n    }\n  }\n  else {\n    iVar5 = 1;\n  }\n  if (param_2 != (char *)0x0) {\n    pcVar2 = param_1;\n    do {\n      cVar1 = *pcVar2;\n      pcVar2 = pcVar2 + 1;\n      *param_2 = cVar1;\n      param_2 = param_2 + 1;\n    } while (pcVar2 != param_1 + iVar5);\n  }\n  if (param_3 != (uint *)0x0) {\n    if (*param_1 == '\t') {\n      uVar4 = *(uint *)PTR_tabsize_000777bc;\n      if (uVar4 == 0) {\n        trap(7);\n      }\n      *param_3 = (*param_3 + uVar4) - *param_3 % uVar4;\n      return iVar5;\n    }\n    iVar3 = is_cntrl_mbchar(param_1);\n    if (iVar3 == 0) {\n      if (iVar5 != 1) {\n        iVar3 = 1;\n        if (PTR_DAT_0007754c[-0x7da0] != '\0') {\n          iVar3 = FUN_0001b340();\n        }\n        *param_3 = *param_3 + iVar3;\n        return iVar5;\n      }\n      *param_3 = *param_3 + 1;\n    }\n    else {\n      *param_3 = *param_3 + 2;\n    }\n  }\n  return iVar5;\n}\n\n" (function_definition "int parse_mbchar(char *param_1,char *param_2,uint *param_3)\n\n{\n  char cVar1;\n  char *pcVar2;\n  int iVar3;\n  uint uVar4;\n  int iVar5;\n  \n  if (*param_1 < '\0') {\n    iVar3 = (*(code *)PTR_mblen_00078090)(param_1,6);\n    iVar5 = 1;\n    if (0 < iVar3) {\n      iVar5 = iVar3;\n    }\n  }\n  else {\n    iVar5 = 1;\n  }\n  if (param_2 != (char *)0x0) {\n    pcVar2 = param_1;\n    do {\n      cVar1 = *pcVar2;\n      pcVar2 = pcVar2 + 1;\n      *param_2 = cVar1;\n      param_2 = param_2 + 1;\n    } while (pcVar2 != param_1 + iVar5);\n  }\n  if (param_3 != (uint *)0x0) {\n    if (*param_1 == '\t') {\n      uVar4 = *(uint *)PTR_tabsize_000777bc;\n      if (uVar4 == 0) {\n        trap(7);\n      }\n      *param_3 = (*param_3 + uVar4) - *param_3 % uVar4;\n      return iVar5;\n    }\n    iVar3 = is_cntrl_mbchar(param_1);\n    if (iVar3 == 0) {\n      if (iVar5 != 1) {\n        iVar3 = 1;\n        if (PTR_DAT_0007754c[-0x7da0] != '\0') {\n          iVar3 = FUN_0001b340();\n        }\n        *param_3 = *param_3 + iVar3;\n        return iVar5;\n      }\n      *param_3 = *param_3 + 1;\n    }\n    else {\n      *param_3 = *param_3 + 2;\n    }\n  }\n  return iVar5;\n}" primitive_type (function_declarator "parse_mbchar(char *param_1,char *param_2,uint *param_3)" identifier (parameter_list "(char *param_1,char *param_2,uint *param_3)" ( (parameter_declaration "char *param_1" primitive_type (pointer_declarator "*param_1" * identifier)) , (parameter_declaration "char *param_2" primitive_type (pointer_declarator "*param_2" * identifier)) , (parameter_declaration "uint *param_3" type_identifier (pointer_declarator "*param_3" * identifier)) ))) (compound_statement "{\n  char cVar1;\n  char *pcVar2;\n  int iVar3;\n  uint uVar4;\n  int iVar5;\n  \n  if (*param_1 < '\0') {\n    iVar3 = (*(code *)PTR_mblen_00078090)(param_1,6);\n    iVar5 = 1;\n    if (0 < iVar3) {\n      iVar5 = iVar3;\n    }\n  }\n  else {\n    iVar5 = 1;\n  }\n  if (param_2 != (char *)0x0) {\n    pcVar2 = param_1;\n    do {\n      cVar1 = *pcVar2;\n      pcVar2 = pcVar2 + 1;\n      *param_2 = cVar1;\n      param_2 = param_2 + 1;\n    } while (pcVar2 != param_1 + iVar5);\n  }\n  if (param_3 != (uint *)0x0) {\n    if (*param_1 == '\t') {\n      uVar4 = *(uint *)PTR_tabsize_000777bc;\n      if (uVar4 == 0) {\n        trap(7);\n      }\n      *param_3 = (*param_3 + uVar4) - *param_3 % uVar4;\n      return iVar5;\n    }\n    iVar3 = is_cntrl_mbchar(param_1);\n    if (iVar3 == 0) {\n      if (iVar5 != 1) {\n        iVar3 = 1;\n        if (PTR_DAT_0007754c[-0x7da0] != '\0') {\n          iVar3 = FUN_0001b340();\n        }\n        *param_3 = *param_3 + iVar3;\n        return iVar5;\n      }\n      *param_3 = *param_3 + 1;\n    }\n    else {\n      *param_3 = *param_3 + 2;\n    }\n  }\n  return iVar5;\n}" { (declaration "char cVar1;" primitive_type identifier ;) (declaration "char *pcVar2;" primitive_type (pointer_declarator "*pcVar2" * identifier) ;) (declaration "int iVar3;" primitive_type identifier ;) (declaration "uint uVar4;" type_identifier identifier ;) (declaration "int iVar5;" primitive_type identifier ;) (if_statement "if (*param_1 < '\0') {\n    iVar3 = (*(code *)PTR_mblen_00078090)(param_1,6);\n    iVar5 = 1;\n    if (0 < iVar3) {\n      iVar5 = iVar3;\n    }\n  }\n  else {\n    iVar5 = 1;\n  }" if (parenthesized_expression "(*param_1 < '\0')" ( (binary_expression "*param_1 < '\0'" (pointer_expression "*param_1" * identifier) < (char_literal "'\0'" ' escape_sequence ')) )) (compound_statement "{\n    iVar3 = (*(code *)PTR_mblen_00078090)(param_1,6);\n    iVar5 = 1;\n    if (0 < iVar3) {\n      iVar5 = iVar3;\n    }\n  }" { (expression_statement "iVar3 = (*(code *)PTR_mblen_00078090)(param_1,6);" (assignment_expression "iVar3 = (*(code *)PTR_mblen_00078090)(param_1,6)" identifier = (call_expression "(*(code *)PTR_mblen_00078090)(param_1,6)" (parenthesized_expression "(*(code *)PTR_mblen_00078090)" ( (pointer_expression "*(code *)PTR_mblen_00078090" * (cast_expression "(code *)PTR_mblen_00078090" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(param_1,6)" ( identifier , number_literal )))) ;) (expression_statement "iVar5 = 1;" (assignment_expression "iVar5 = 1" identifier = number_literal) ;) (if_statement "if (0 < iVar3) {\n      iVar5 = iVar3;\n    }" if (parenthesized_expression "(0 < iVar3)" ( (binary_expression "0 < iVar3" number_literal < identifier) )) (compound_statement "{\n      iVar5 = iVar3;\n    }" { (expression_statement "iVar5 = iVar3;" (assignment_expression "iVar5 = iVar3" identifier = identifier) ;) })) }) (else_clause "else {\n    iVar5 = 1;\n  }" else (compound_statement "{\n    iVar5 = 1;\n  }" { (expression_statement "iVar5 = 1;" (assignment_expression "iVar5 = 1" identifier = number_literal) ;) }))) (if_statement "if (param_2 != (char *)0x0) {\n    pcVar2 = param_1;\n    do {\n      cVar1 = *pcVar2;\n      pcVar2 = pcVar2 + 1;\n      *param_2 = cVar1;\n      param_2 = param_2 + 1;\n    } while (pcVar2 != param_1 + iVar5);\n  }" if (parenthesized_expression "(param_2 != (char *)0x0)" ( (binary_expression "param_2 != (char *)0x0" identifier != (cast_expression "(char *)0x0" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n    pcVar2 = param_1;\n    do {\n      cVar1 = *pcVar2;\n      pcVar2 = pcVar2 + 1;\n      *param_2 = cVar1;\n      param_2 = param_2 + 1;\n    } while (pcVar2 != param_1 + iVar5);\n  }" { (expression_statement "pcVar2 = param_1;" (assignment_expression "pcVar2 = param_1" identifier = identifier) ;) (do_statement "do {\n      cVar1 = *pcVar2;\n      pcVar2 = pcVar2 + 1;\n      *param_2 = cVar1;\n      param_2 = param_2 + 1;\n    } while (pcVar2 != param_1 + iVar5);" do (compound_statement "{\n      cVar1 = *pcVar2;\n      pcVar2 = pcVar2 + 1;\n      *param_2 = cVar1;\n      param_2 = param_2 + 1;\n    }" { (expression_statement "cVar1 = *pcVar2;" (assignment_expression "cVar1 = *pcVar2" identifier = (pointer_expression "*pcVar2" * identifier)) ;) (expression_statement "pcVar2 = pcVar2 + 1;" (assignment_expression "pcVar2 = pcVar2 + 1" identifier = (binary_expression "pcVar2 + 1" identifier + number_literal)) ;) (expression_statement "*param_2 = cVar1;" (assignment_expression "*param_2 = cVar1" (pointer_expression "*param_2" * identifier) = identifier) ;) (expression_statement "param_2 = param_2 + 1;" (assignment_expression "param_2 = param_2 + 1" identifier = (binary_expression "param_2 + 1" identifier + number_literal)) ;) }) while (parenthesized_expression "(pcVar2 != param_1 + iVar5)" ( (binary_expression "pcVar2 != param_1 + iVar5" identifier != (binary_expression "param_1 + iVar5" identifier + identifier)) )) ;) })) (if_statement "if (param_3 != (uint *)0x0) {\n    if (*param_1 == '\t') {\n      uVar4 = *(uint *)PTR_tabsize_000777bc;\n      if (uVar4 == 0) {\n        trap(7);\n      }\n      *param_3 = (*param_3 + uVar4) - *param_3 % uVar4;\n      return iVar5;\n    }\n    iVar3 = is_cntrl_mbchar(param_1);\n    if (iVar3 == 0) {\n      if (iVar5 != 1) {\n        iVar3 = 1;\n        if (PTR_DAT_0007754c[-0x7da0] != '\0') {\n          iVar3 = FUN_0001b340();\n        }\n        *param_3 = *param_3 + iVar3;\n        return iVar5;\n      }\n      *param_3 = *param_3 + 1;\n    }\n    else {\n      *param_3 = *param_3 + 2;\n    }\n  }" if (parenthesized_expression "(param_3 != (uint *)0x0)" ( (binary_expression "param_3 != (uint *)0x0" identifier != (cast_expression "(uint *)0x0" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n    if (*param_1 == '\t') {\n      uVar4 = *(uint *)PTR_tabsize_000777bc;\n      if (uVar4 == 0) {\n        trap(7);\n      }\n      *param_3 = (*param_3 + uVar4) - *param_3 % uVar4;\n      return iVar5;\n    }\n    iVar3 = is_cntrl_mbchar(param_1);\n    if (iVar3 == 0) {\n      if (iVar5 != 1) {\n        iVar3 = 1;\n        if (PTR_DAT_0007754c[-0x7da0] != '\0') {\n          iVar3 = FUN_0001b340();\n        }\n        *param_3 = *param_3 + iVar3;\n        return iVar5;\n      }\n      *param_3 = *param_3 + 1;\n    }\n    else {\n      *param_3 = *param_3 + 2;\n    }\n  }" { (if_statement "if (*param_1 == '\t') {\n      uVar4 = *(uint *)PTR_tabsize_000777bc;\n      if (uVar4 == 0) {\n        trap(7);\n      }\n      *param_3 = (*param_3 + uVar4) - *param_3 % uVar4;\n      return iVar5;\n    }" if (parenthesized_expression "(*param_1 == '\t')" ( (binary_expression "*param_1 == '\t'" (pointer_expression "*param_1" * identifier) == (char_literal "'\t'" ' escape_sequence ')) )) (compound_statement "{\n      uVar4 = *(uint *)PTR_tabsize_000777bc;\n      if (uVar4 == 0) {\n        trap(7);\n      }\n      *param_3 = (*param_3 + uVar4) - *param_3 % uVar4;\n      return iVar5;\n    }" { (expression_statement "uVar4 = *(uint *)PTR_tabsize_000777bc;" (assignment_expression "uVar4 = *(uint *)PTR_tabsize_000777bc" identifier = (pointer_expression "*(uint *)PTR_tabsize_000777bc" * (cast_expression "(uint *)PTR_tabsize_000777bc" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier))) ;) (if_statement "if (uVar4 == 0) {\n        trap(7);\n      }" if (parenthesized_expression "(uVar4 == 0)" ( (binary_expression "uVar4 == 0" identifier == number_literal) )) (compound_statement "{\n        trap(7);\n      }" { (expression_statement "trap(7);" (call_expression "trap(7)" identifier (argument_list "(7)" ( number_literal ))) ;) })) (expression_statement "*param_3 = (*param_3 + uVar4) - *param_3 % uVar4;" (assignment_expression "*param_3 = (*param_3 + uVar4) - *param_3 % uVar4" (pointer_expression "*param_3" * identifier) = (binary_expression "(*param_3 + uVar4) - *param_3 % uVar4" (parenthesized_expression "(*param_3 + uVar4)" ( (binary_expression "*param_3 + uVar4" (pointer_expression "*param_3" * identifier) + identifier) )) - (binary_expression "*param_3 % uVar4" (pointer_expression "*param_3" * identifier) % identifier))) ;) (return_statement "return iVar5;" return identifier ;) })) (expression_statement "iVar3 = is_cntrl_mbchar(param_1);" (assignment_expression "iVar3 = is_cntrl_mbchar(param_1)" identifier = (call_expression "is_cntrl_mbchar(param_1)" identifier (argument_list "(param_1)" ( identifier )))) ;) (if_statement "if (iVar3 == 0) {\n      if (iVar5 != 1) {\n        iVar3 = 1;\n        if (PTR_DAT_0007754c[-0x7da0] != '\0') {\n          iVar3 = FUN_0001b340();\n        }\n        *param_3 = *param_3 + iVar3;\n        return iVar5;\n      }\n      *param_3 = *param_3 + 1;\n    }\n    else {\n      *param_3 = *param_3 + 2;\n    }" if (parenthesized_expression "(iVar3 == 0)" ( (binary_expression "iVar3 == 0" identifier == number_literal) )) (compound_statement "{\n      if (iVar5 != 1) {\n        iVar3 = 1;\n        if (PTR_DAT_0007754c[-0x7da0] != '\0') {\n          iVar3 = FUN_0001b340();\n        }\n        *param_3 = *param_3 + iVar3;\n        return iVar5;\n      }\n      *param_3 = *param_3 + 1;\n    }" { (if_statement "if (iVar5 != 1) {\n        iVar3 = 1;\n        if (PTR_DAT_0007754c[-0x7da0] != '\0') {\n          iVar3 = FUN_0001b340();\n        }\n        *param_3 = *param_3 + iVar3;\n        return iVar5;\n      }" if (parenthesized_expression "(iVar5 != 1)" ( (binary_expression "iVar5 != 1" identifier != number_literal) )) (compound_statement "{\n        iVar3 = 1;\n        if (PTR_DAT_0007754c[-0x7da0] != '\0') {\n          iVar3 = FUN_0001b340();\n        }\n        *param_3 = *param_3 + iVar3;\n        return iVar5;\n      }" { (expression_statement "iVar3 = 1;" (assignment_expression "iVar3 = 1" identifier = number_literal) ;) (if_statement "if (PTR_DAT_0007754c[-0x7da0] != '\0') {\n          iVar3 = FUN_0001b340();\n        }" if (parenthesized_expression "(PTR_DAT_0007754c[-0x7da0] != '\0')" ( (binary_expression "PTR_DAT_0007754c[-0x7da0] != '\0'" (subscript_expression "PTR_DAT_0007754c[-0x7da0]" identifier [ number_literal ]) != (char_literal "'\0'" ' escape_sequence ')) )) (compound_statement "{\n          iVar3 = FUN_0001b340();\n        }" { (expression_statement "iVar3 = FUN_0001b340();" (assignment_expression "iVar3 = FUN_0001b340()" identifier = (call_expression "FUN_0001b340()" identifier (argument_list "()" ( )))) ;) })) (expression_statement "*param_3 = *param_3 + iVar3;" (assignment_expression "*param_3 = *param_3 + iVar3" (pointer_expression "*param_3" * identifier) = (binary_expression "*param_3 + iVar3" (pointer_expression "*param_3" * identifier) + identifier)) ;) (return_statement "return iVar5;" return identifier ;) })) (expression_statement "*param_3 = *param_3 + 1;" (assignment_expression "*param_3 = *param_3 + 1" (pointer_expression "*param_3" * identifier) = (binary_expression "*param_3 + 1" (pointer_expression "*param_3" * identifier) + number_literal)) ;) }) (else_clause "else {\n      *param_3 = *param_3 + 2;\n    }" else (compound_statement "{\n      *param_3 = *param_3 + 2;\n    }" { (expression_statement "*param_3 = *param_3 + 2;" (assignment_expression "*param_3 = *param_3 + 2" (pointer_expression "*param_3" * identifier) = (binary_expression "*param_3 + 2" (pointer_expression "*param_3" * identifier) + number_literal)) ;) }))) })) (return_statement "return iVar5;" return identifier ;) })))
(translation_unit "int parse_mbchar(char *buf,char *chr,size_t *col)\n\n{\n  char cVar1;\n  undefined3 extraout_var;\n  char *pcVar2;\n  _Bool _Var4;\n  int iVar3;\n  uint uVar5;\n  int iVar6;\n  \n  if (*buf < '\0') {\n    iVar3 = (*(code *)PTR_mblen_00078090)(buf,6);\n    iVar6 = 1;\n    if (0 < iVar3) {\n      iVar6 = iVar3;\n    }\n  }\n  else {\n    iVar6 = 1;\n  }\n  if (chr != (char *)0x0) {\n    pcVar2 = buf;\n    do {\n      cVar1 = *pcVar2;\n      pcVar2 = pcVar2 + 1;\n      *chr = cVar1;\n      chr = chr + 1;\n    } while (pcVar2 != buf + iVar6);\n  }\n  if (col != (size_t *)0x0) {\n    if (*buf == '\t') {\n      uVar5 = *(uint *)PTR_tabsize_000777bc;\n      if (uVar5 == 0) {\n        trap(7);\n      }\n      *col = (*col + uVar5) - *col % uVar5;\n      return iVar6;\n    }\n    _Var4 = is_cntrl_mbchar(buf);\n    if (CONCAT31(extraout_var,_Var4) == 0) {\n      if (iVar6 != 1) {\n        iVar3 = 1;\n        if (PTR_DAT_0007754c[-0x7da0] != '\0') {\n          iVar3 = mbwidth(buf);\n        }\n        *col = *col + iVar3;\n        return iVar6;\n      }\n      *col = *col + 1;\n    }\n    else {\n      *col = *col + 2;\n    }\n  }\n  return iVar6;\n}\n\n" (function_definition "int parse_mbchar(char *buf,char *chr,size_t *col)\n\n{\n  char cVar1;\n  undefined3 extraout_var;\n  char *pcVar2;\n  _Bool _Var4;\n  int iVar3;\n  uint uVar5;\n  int iVar6;\n  \n  if (*buf < '\0') {\n    iVar3 = (*(code *)PTR_mblen_00078090)(buf,6);\n    iVar6 = 1;\n    if (0 < iVar3) {\n      iVar6 = iVar3;\n    }\n  }\n  else {\n    iVar6 = 1;\n  }\n  if (chr != (char *)0x0) {\n    pcVar2 = buf;\n    do {\n      cVar1 = *pcVar2;\n      pcVar2 = pcVar2 + 1;\n      *chr = cVar1;\n      chr = chr + 1;\n    } while (pcVar2 != buf + iVar6);\n  }\n  if (col != (size_t *)0x0) {\n    if (*buf == '\t') {\n      uVar5 = *(uint *)PTR_tabsize_000777bc;\n      if (uVar5 == 0) {\n        trap(7);\n      }\n      *col = (*col + uVar5) - *col % uVar5;\n      return iVar6;\n    }\n    _Var4 = is_cntrl_mbchar(buf);\n    if (CONCAT31(extraout_var,_Var4) == 0) {\n      if (iVar6 != 1) {\n        iVar3 = 1;\n        if (PTR_DAT_0007754c[-0x7da0] != '\0') {\n          iVar3 = mbwidth(buf);\n        }\n        *col = *col + iVar3;\n        return iVar6;\n      }\n      *col = *col + 1;\n    }\n    else {\n      *col = *col + 2;\n    }\n  }\n  return iVar6;\n}" primitive_type (function_declarator "parse_mbchar(char *buf,char *chr,size_t *col)" identifier (parameter_list "(char *buf,char *chr,size_t *col)" ( (parameter_declaration "char *buf" primitive_type (pointer_declarator "*buf" * identifier)) , (parameter_declaration "char *chr" primitive_type (pointer_declarator "*chr" * identifier)) , (parameter_declaration "size_t *col" primitive_type (pointer_declarator "*col" * identifier)) ))) (compound_statement "{\n  char cVar1;\n  undefined3 extraout_var;\n  char *pcVar2;\n  _Bool _Var4;\n  int iVar3;\n  uint uVar5;\n  int iVar6;\n  \n  if (*buf < '\0') {\n    iVar3 = (*(code *)PTR_mblen_00078090)(buf,6);\n    iVar6 = 1;\n    if (0 < iVar3) {\n      iVar6 = iVar3;\n    }\n  }\n  else {\n    iVar6 = 1;\n  }\n  if (chr != (char *)0x0) {\n    pcVar2 = buf;\n    do {\n      cVar1 = *pcVar2;\n      pcVar2 = pcVar2 + 1;\n      *chr = cVar1;\n      chr = chr + 1;\n    } while (pcVar2 != buf + iVar6);\n  }\n  if (col != (size_t *)0x0) {\n    if (*buf == '\t') {\n      uVar5 = *(uint *)PTR_tabsize_000777bc;\n      if (uVar5 == 0) {\n        trap(7);\n      }\n      *col = (*col + uVar5) - *col % uVar5;\n      return iVar6;\n    }\n    _Var4 = is_cntrl_mbchar(buf);\n    if (CONCAT31(extraout_var,_Var4) == 0) {\n      if (iVar6 != 1) {\n        iVar3 = 1;\n        if (PTR_DAT_0007754c[-0x7da0] != '\0') {\n          iVar3 = mbwidth(buf);\n        }\n        *col = *col + iVar3;\n        return iVar6;\n      }\n      *col = *col + 1;\n    }\n    else {\n      *col = *col + 2;\n    }\n  }\n  return iVar6;\n}" { (declaration "char cVar1;" primitive_type identifier ;) (declaration "undefined3 extraout_var;" type_identifier identifier ;) (declaration "char *pcVar2;" primitive_type (pointer_declarator "*pcVar2" * identifier) ;) (declaration "_Bool _Var4;" type_identifier identifier ;) (declaration "int iVar3;" primitive_type identifier ;) (declaration "uint uVar5;" type_identifier identifier ;) (declaration "int iVar6;" primitive_type identifier ;) (if_statement "if (*buf < '\0') {\n    iVar3 = (*(code *)PTR_mblen_00078090)(buf,6);\n    iVar6 = 1;\n    if (0 < iVar3) {\n      iVar6 = iVar3;\n    }\n  }\n  else {\n    iVar6 = 1;\n  }" if (parenthesized_expression "(*buf < '\0')" ( (binary_expression "*buf < '\0'" (pointer_expression "*buf" * identifier) < (char_literal "'\0'" ' escape_sequence ')) )) (compound_statement "{\n    iVar3 = (*(code *)PTR_mblen_00078090)(buf,6);\n    iVar6 = 1;\n    if (0 < iVar3) {\n      iVar6 = iVar3;\n    }\n  }" { (expression_statement "iVar3 = (*(code *)PTR_mblen_00078090)(buf,6);" (assignment_expression "iVar3 = (*(code *)PTR_mblen_00078090)(buf,6)" identifier = (call_expression "(*(code *)PTR_mblen_00078090)(buf,6)" (parenthesized_expression "(*(code *)PTR_mblen_00078090)" ( (pointer_expression "*(code *)PTR_mblen_00078090" * (cast_expression "(code *)PTR_mblen_00078090" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(buf,6)" ( identifier , number_literal )))) ;) (expression_statement "iVar6 = 1;" (assignment_expression "iVar6 = 1" identifier = number_literal) ;) (if_statement "if (0 < iVar3) {\n      iVar6 = iVar3;\n    }" if (parenthesized_expression "(0 < iVar3)" ( (binary_expression "0 < iVar3" number_literal < identifier) )) (compound_statement "{\n      iVar6 = iVar3;\n    }" { (expression_statement "iVar6 = iVar3;" (assignment_expression "iVar6 = iVar3" identifier = identifier) ;) })) }) (else_clause "else {\n    iVar6 = 1;\n  }" else (compound_statement "{\n    iVar6 = 1;\n  }" { (expression_statement "iVar6 = 1;" (assignment_expression "iVar6 = 1" identifier = number_literal) ;) }))) (if_statement "if (chr != (char *)0x0) {\n    pcVar2 = buf;\n    do {\n      cVar1 = *pcVar2;\n      pcVar2 = pcVar2 + 1;\n      *chr = cVar1;\n      chr = chr + 1;\n    } while (pcVar2 != buf + iVar6);\n  }" if (parenthesized_expression "(chr != (char *)0x0)" ( (binary_expression "chr != (char *)0x0" identifier != (cast_expression "(char *)0x0" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n    pcVar2 = buf;\n    do {\n      cVar1 = *pcVar2;\n      pcVar2 = pcVar2 + 1;\n      *chr = cVar1;\n      chr = chr + 1;\n    } while (pcVar2 != buf + iVar6);\n  }" { (expression_statement "pcVar2 = buf;" (assignment_expression "pcVar2 = buf" identifier = identifier) ;) (do_statement "do {\n      cVar1 = *pcVar2;\n      pcVar2 = pcVar2 + 1;\n      *chr = cVar1;\n      chr = chr + 1;\n    } while (pcVar2 != buf + iVar6);" do (compound_statement "{\n      cVar1 = *pcVar2;\n      pcVar2 = pcVar2 + 1;\n      *chr = cVar1;\n      chr = chr + 1;\n    }" { (expression_statement "cVar1 = *pcVar2;" (assignment_expression "cVar1 = *pcVar2" identifier = (pointer_expression "*pcVar2" * identifier)) ;) (expression_statement "pcVar2 = pcVar2 + 1;" (assignment_expression "pcVar2 = pcVar2 + 1" identifier = (binary_expression "pcVar2 + 1" identifier + number_literal)) ;) (expression_statement "*chr = cVar1;" (assignment_expression "*chr = cVar1" (pointer_expression "*chr" * identifier) = identifier) ;) (expression_statement "chr = chr + 1;" (assignment_expression "chr = chr + 1" identifier = (binary_expression "chr + 1" identifier + number_literal)) ;) }) while (parenthesized_expression "(pcVar2 != buf + iVar6)" ( (binary_expression "pcVar2 != buf + iVar6" identifier != (binary_expression "buf + iVar6" identifier + identifier)) )) ;) })) (if_statement "if (col != (size_t *)0x0) {\n    if (*buf == '\t') {\n      uVar5 = *(uint *)PTR_tabsize_000777bc;\n      if (uVar5 == 0) {\n        trap(7);\n      }\n      *col = (*col + uVar5) - *col % uVar5;\n      return iVar6;\n    }\n    _Var4 = is_cntrl_mbchar(buf);\n    if (CONCAT31(extraout_var,_Var4) == 0) {\n      if (iVar6 != 1) {\n        iVar3 = 1;\n        if (PTR_DAT_0007754c[-0x7da0] != '\0') {\n          iVar3 = mbwidth(buf);\n        }\n        *col = *col + iVar3;\n        return iVar6;\n      }\n      *col = *col + 1;\n    }\n    else {\n      *col = *col + 2;\n    }\n  }" if (parenthesized_expression "(col != (size_t *)0x0)" ( (binary_expression "col != (size_t *)0x0" identifier != (cast_expression "(size_t *)0x0" ( (type_descriptor "size_t *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n    if (*buf == '\t') {\n      uVar5 = *(uint *)PTR_tabsize_000777bc;\n      if (uVar5 == 0) {\n        trap(7);\n      }\n      *col = (*col + uVar5) - *col % uVar5;\n      return iVar6;\n    }\n    _Var4 = is_cntrl_mbchar(buf);\n    if (CONCAT31(extraout_var,_Var4) == 0) {\n      if (iVar6 != 1) {\n        iVar3 = 1;\n        if (PTR_DAT_0007754c[-0x7da0] != '\0') {\n          iVar3 = mbwidth(buf);\n        }\n        *col = *col + iVar3;\n        return iVar6;\n      }\n      *col = *col + 1;\n    }\n    else {\n      *col = *col + 2;\n    }\n  }" { (if_statement "if (*buf == '\t') {\n      uVar5 = *(uint *)PTR_tabsize_000777bc;\n      if (uVar5 == 0) {\n        trap(7);\n      }\n      *col = (*col + uVar5) - *col % uVar5;\n      return iVar6;\n    }" if (parenthesized_expression "(*buf == '\t')" ( (binary_expression "*buf == '\t'" (pointer_expression "*buf" * identifier) == (char_literal "'\t'" ' escape_sequence ')) )) (compound_statement "{\n      uVar5 = *(uint *)PTR_tabsize_000777bc;\n      if (uVar5 == 0) {\n        trap(7);\n      }\n      *col = (*col + uVar5) - *col % uVar5;\n      return iVar6;\n    }" { (expression_statement "uVar5 = *(uint *)PTR_tabsize_000777bc;" (assignment_expression "uVar5 = *(uint *)PTR_tabsize_000777bc" identifier = (pointer_expression "*(uint *)PTR_tabsize_000777bc" * (cast_expression "(uint *)PTR_tabsize_000777bc" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier))) ;) (if_statement "if (uVar5 == 0) {\n        trap(7);\n      }" if (parenthesized_expression "(uVar5 == 0)" ( (binary_expression "uVar5 == 0" identifier == number_literal) )) (compound_statement "{\n        trap(7);\n      }" { (expression_statement "trap(7);" (call_expression "trap(7)" identifier (argument_list "(7)" ( number_literal ))) ;) })) (expression_statement "*col = (*col + uVar5) - *col % uVar5;" (assignment_expression "*col = (*col + uVar5) - *col % uVar5" (pointer_expression "*col" * identifier) = (binary_expression "(*col + uVar5) - *col % uVar5" (parenthesized_expression "(*col + uVar5)" ( (binary_expression "*col + uVar5" (pointer_expression "*col" * identifier) + identifier) )) - (binary_expression "*col % uVar5" (pointer_expression "*col" * identifier) % identifier))) ;) (return_statement "return iVar6;" return identifier ;) })) (expression_statement "_Var4 = is_cntrl_mbchar(buf);" (assignment_expression "_Var4 = is_cntrl_mbchar(buf)" identifier = (call_expression "is_cntrl_mbchar(buf)" identifier (argument_list "(buf)" ( identifier )))) ;) (if_statement "if (CONCAT31(extraout_var,_Var4) == 0) {\n      if (iVar6 != 1) {\n        iVar3 = 1;\n        if (PTR_DAT_0007754c[-0x7da0] != '\0') {\n          iVar3 = mbwidth(buf);\n        }\n        *col = *col + iVar3;\n        return iVar6;\n      }\n      *col = *col + 1;\n    }\n    else {\n      *col = *col + 2;\n    }" if (parenthesized_expression "(CONCAT31(extraout_var,_Var4) == 0)" ( (binary_expression "CONCAT31(extraout_var,_Var4) == 0" (call_expression "CONCAT31(extraout_var,_Var4)" identifier (argument_list "(extraout_var,_Var4)" ( identifier , identifier ))) == number_literal) )) (compound_statement "{\n      if (iVar6 != 1) {\n        iVar3 = 1;\n        if (PTR_DAT_0007754c[-0x7da0] != '\0') {\n          iVar3 = mbwidth(buf);\n        }\n        *col = *col + iVar3;\n        return iVar6;\n      }\n      *col = *col + 1;\n    }" { (if_statement "if (iVar6 != 1) {\n        iVar3 = 1;\n        if (PTR_DAT_0007754c[-0x7da0] != '\0') {\n          iVar3 = mbwidth(buf);\n        }\n        *col = *col + iVar3;\n        return iVar6;\n      }" if (parenthesized_expression "(iVar6 != 1)" ( (binary_expression "iVar6 != 1" identifier != number_literal) )) (compound_statement "{\n        iVar3 = 1;\n        if (PTR_DAT_0007754c[-0x7da0] != '\0') {\n          iVar3 = mbwidth(buf);\n        }\n        *col = *col + iVar3;\n        return iVar6;\n      }" { (expression_statement "iVar3 = 1;" (assignment_expression "iVar3 = 1" identifier = number_literal) ;) (if_statement "if (PTR_DAT_0007754c[-0x7da0] != '\0') {\n          iVar3 = mbwidth(buf);\n        }" if (parenthesized_expression "(PTR_DAT_0007754c[-0x7da0] != '\0')" ( (binary_expression "PTR_DAT_0007754c[-0x7da0] != '\0'" (subscript_expression "PTR_DAT_0007754c[-0x7da0]" identifier [ number_literal ]) != (char_literal "'\0'" ' escape_sequence ')) )) (compound_statement "{\n          iVar3 = mbwidth(buf);\n        }" { (expression_statement "iVar3 = mbwidth(buf);" (assignment_expression "iVar3 = mbwidth(buf)" identifier = (call_expression "mbwidth(buf)" identifier (argument_list "(buf)" ( identifier )))) ;) })) (expression_statement "*col = *col + iVar3;" (assignment_expression "*col = *col + iVar3" (pointer_expression "*col" * identifier) = (binary_expression "*col + iVar3" (pointer_expression "*col" * identifier) + identifier)) ;) (return_statement "return iVar6;" return identifier ;) })) (expression_statement "*col = *col + 1;" (assignment_expression "*col = *col + 1" (pointer_expression "*col" * identifier) = (binary_expression "*col + 1" (pointer_expression "*col" * identifier) + number_literal)) ;) }) (else_clause "else {\n      *col = *col + 2;\n    }" else (compound_statement "{\n      *col = *col + 2;\n    }" { (expression_statement "*col = *col + 2;" (assignment_expression "*col = *col + 2" (pointer_expression "*col" * identifier) = (binary_expression "*col + 2" (pointer_expression "*col" * identifier) + number_literal)) ;) }))) })) (return_statement "return iVar6;" return identifier ;) })))
(translation_unit "int parse_mbchar(char *param_1,char *param_2,uint *param_3)\n\n{\n  char cVar1;\n  char *pcVar2;\n  int iVar3;\n  uint uVar4;\n  int iVar5;\n  \n  if (*param_1 < '\0') {\n    iVar3 = (*(code *)PTR_mblen_00078090)(param_1,6);\n    iVar5 = 1;\n    if (0 < iVar3) {\n      iVar5 = iVar3;\n    }\n  }\n  else {\n    iVar5 = 1;\n  }\n  if (param_2 != (char *)0x0) {\n    pcVar2 = param_1;\n    do {\n      cVar1 = *pcVar2;\n      pcVar2 = pcVar2 + 1;\n      *param_2 = cVar1;\n      param_2 = param_2 + 1;\n    } while (pcVar2 != param_1 + iVar5);\n  }\n  if (param_3 != (uint *)0x0) {\n    if (*param_1 == '\t') {\n      uVar4 = *(uint *)PTR_tabsize_000777bc;\n      if (uVar4 == 0) {\n        trap(7);\n      }\n      *param_3 = (*param_3 + uVar4) - *param_3 % uVar4;\n      return iVar5;\n    }\n    iVar3 = is_cntrl_mbchar(param_1);\n    if (iVar3 == 0) {\n      if (iVar5 != 1) {\n        iVar3 = 1;\n        if (PTR_DAT_0007754c[-0x7da0] != '\0') {\n          iVar3 = FUN_0001b340();\n        }\n        *param_3 = *param_3 + iVar3;\n        return iVar5;\n      }\n      *param_3 = *param_3 + 1;\n    }\n    else {\n      *param_3 = *param_3 + 2;\n    }\n  }\n  return iVar5;\n}\n\n" (function_definition "int parse_mbchar(char *param_1,char *param_2,uint *param_3)\n\n{\n  char cVar1;\n  char *pcVar2;\n  int iVar3;\n  uint uVar4;\n  int iVar5;\n  \n  if (*param_1 < '\0') {\n    iVar3 = (*(code *)PTR_mblen_00078090)(param_1,6);\n    iVar5 = 1;\n    if (0 < iVar3) {\n      iVar5 = iVar3;\n    }\n  }\n  else {\n    iVar5 = 1;\n  }\n  if (param_2 != (char *)0x0) {\n    pcVar2 = param_1;\n    do {\n      cVar1 = *pcVar2;\n      pcVar2 = pcVar2 + 1;\n      *param_2 = cVar1;\n      param_2 = param_2 + 1;\n    } while (pcVar2 != param_1 + iVar5);\n  }\n  if (param_3 != (uint *)0x0) {\n    if (*param_1 == '\t') {\n      uVar4 = *(uint *)PTR_tabsize_000777bc;\n      if (uVar4 == 0) {\n        trap(7);\n      }\n      *param_3 = (*param_3 + uVar4) - *param_3 % uVar4;\n      return iVar5;\n    }\n    iVar3 = is_cntrl_mbchar(param_1);\n    if (iVar3 == 0) {\n      if (iVar5 != 1) {\n        iVar3 = 1;\n        if (PTR_DAT_0007754c[-0x7da0] != '\0') {\n          iVar3 = FUN_0001b340();\n        }\n        *param_3 = *param_3 + iVar3;\n        return iVar5;\n      }\n      *param_3 = *param_3 + 1;\n    }\n    else {\n      *param_3 = *param_3 + 2;\n    }\n  }\n  return iVar5;\n}" primitive_type (function_declarator "parse_mbchar(char *param_1,char *param_2,uint *param_3)" identifier (parameter_list "(char *param_1,char *param_2,uint *param_3)" ( (parameter_declaration "char *param_1" primitive_type (pointer_declarator "*param_1" * identifier)) , (parameter_declaration "char *param_2" primitive_type (pointer_declarator "*param_2" * identifier)) , (parameter_declaration "uint *param_3" type_identifier (pointer_declarator "*param_3" * identifier)) ))) (compound_statement "{\n  char cVar1;\n  char *pcVar2;\n  int iVar3;\n  uint uVar4;\n  int iVar5;\n  \n  if (*param_1 < '\0') {\n    iVar3 = (*(code *)PTR_mblen_00078090)(param_1,6);\n    iVar5 = 1;\n    if (0 < iVar3) {\n      iVar5 = iVar3;\n    }\n  }\n  else {\n    iVar5 = 1;\n  }\n  if (param_2 != (char *)0x0) {\n    pcVar2 = param_1;\n    do {\n      cVar1 = *pcVar2;\n      pcVar2 = pcVar2 + 1;\n      *param_2 = cVar1;\n      param_2 = param_2 + 1;\n    } while (pcVar2 != param_1 + iVar5);\n  }\n  if (param_3 != (uint *)0x0) {\n    if (*param_1 == '\t') {\n      uVar4 = *(uint *)PTR_tabsize_000777bc;\n      if (uVar4 == 0) {\n        trap(7);\n      }\n      *param_3 = (*param_3 + uVar4) - *param_3 % uVar4;\n      return iVar5;\n    }\n    iVar3 = is_cntrl_mbchar(param_1);\n    if (iVar3 == 0) {\n      if (iVar5 != 1) {\n        iVar3 = 1;\n        if (PTR_DAT_0007754c[-0x7da0] != '\0') {\n          iVar3 = FUN_0001b340();\n        }\n        *param_3 = *param_3 + iVar3;\n        return iVar5;\n      }\n      *param_3 = *param_3 + 1;\n    }\n    else {\n      *param_3 = *param_3 + 2;\n    }\n  }\n  return iVar5;\n}" { (declaration "char cVar1;" primitive_type identifier ;) (declaration "char *pcVar2;" primitive_type (pointer_declarator "*pcVar2" * identifier) ;) (declaration "int iVar3;" primitive_type identifier ;) (declaration "uint uVar4;" type_identifier identifier ;) (declaration "int iVar5;" primitive_type identifier ;) (if_statement "if (*param_1 < '\0') {\n    iVar3 = (*(code *)PTR_mblen_00078090)(param_1,6);\n    iVar5 = 1;\n    if (0 < iVar3) {\n      iVar5 = iVar3;\n    }\n  }\n  else {\n    iVar5 = 1;\n  }" if (parenthesized_expression "(*param_1 < '\0')" ( (binary_expression "*param_1 < '\0'" (pointer_expression "*param_1" * identifier) < (char_literal "'\0'" ' escape_sequence ')) )) (compound_statement "{\n    iVar3 = (*(code *)PTR_mblen_00078090)(param_1,6);\n    iVar5 = 1;\n    if (0 < iVar3) {\n      iVar5 = iVar3;\n    }\n  }" { (expression_statement "iVar3 = (*(code *)PTR_mblen_00078090)(param_1,6);" (assignment_expression "iVar3 = (*(code *)PTR_mblen_00078090)(param_1,6)" identifier = (call_expression "(*(code *)PTR_mblen_00078090)(param_1,6)" (parenthesized_expression "(*(code *)PTR_mblen_00078090)" ( (pointer_expression "*(code *)PTR_mblen_00078090" * (cast_expression "(code *)PTR_mblen_00078090" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(param_1,6)" ( identifier , number_literal )))) ;) (expression_statement "iVar5 = 1;" (assignment_expression "iVar5 = 1" identifier = number_literal) ;) (if_statement "if (0 < iVar3) {\n      iVar5 = iVar3;\n    }" if (parenthesized_expression "(0 < iVar3)" ( (binary_expression "0 < iVar3" number_literal < identifier) )) (compound_statement "{\n      iVar5 = iVar3;\n    }" { (expression_statement "iVar5 = iVar3;" (assignment_expression "iVar5 = iVar3" identifier = identifier) ;) })) }) (else_clause "else {\n    iVar5 = 1;\n  }" else (compound_statement "{\n    iVar5 = 1;\n  }" { (expression_statement "iVar5 = 1;" (assignment_expression "iVar5 = 1" identifier = number_literal) ;) }))) (if_statement "if (param_2 != (char *)0x0) {\n    pcVar2 = param_1;\n    do {\n      cVar1 = *pcVar2;\n      pcVar2 = pcVar2 + 1;\n      *param_2 = cVar1;\n      param_2 = param_2 + 1;\n    } while (pcVar2 != param_1 + iVar5);\n  }" if (parenthesized_expression "(param_2 != (char *)0x0)" ( (binary_expression "param_2 != (char *)0x0" identifier != (cast_expression "(char *)0x0" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n    pcVar2 = param_1;\n    do {\n      cVar1 = *pcVar2;\n      pcVar2 = pcVar2 + 1;\n      *param_2 = cVar1;\n      param_2 = param_2 + 1;\n    } while (pcVar2 != param_1 + iVar5);\n  }" { (expression_statement "pcVar2 = param_1;" (assignment_expression "pcVar2 = param_1" identifier = identifier) ;) (do_statement "do {\n      cVar1 = *pcVar2;\n      pcVar2 = pcVar2 + 1;\n      *param_2 = cVar1;\n      param_2 = param_2 + 1;\n    } while (pcVar2 != param_1 + iVar5);" do (compound_statement "{\n      cVar1 = *pcVar2;\n      pcVar2 = pcVar2 + 1;\n      *param_2 = cVar1;\n      param_2 = param_2 + 1;\n    }" { (expression_statement "cVar1 = *pcVar2;" (assignment_expression "cVar1 = *pcVar2" identifier = (pointer_expression "*pcVar2" * identifier)) ;) (expression_statement "pcVar2 = pcVar2 + 1;" (assignment_expression "pcVar2 = pcVar2 + 1" identifier = (binary_expression "pcVar2 + 1" identifier + number_literal)) ;) (expression_statement "*param_2 = cVar1;" (assignment_expression "*param_2 = cVar1" (pointer_expression "*param_2" * identifier) = identifier) ;) (expression_statement "param_2 = param_2 + 1;" (assignment_expression "param_2 = param_2 + 1" identifier = (binary_expression "param_2 + 1" identifier + number_literal)) ;) }) while (parenthesized_expression "(pcVar2 != param_1 + iVar5)" ( (binary_expression "pcVar2 != param_1 + iVar5" identifier != (binary_expression "param_1 + iVar5" identifier + identifier)) )) ;) })) (if_statement "if (param_3 != (uint *)0x0) {\n    if (*param_1 == '\t') {\n      uVar4 = *(uint *)PTR_tabsize_000777bc;\n      if (uVar4 == 0) {\n        trap(7);\n      }\n      *param_3 = (*param_3 + uVar4) - *param_3 % uVar4;\n      return iVar5;\n    }\n    iVar3 = is_cntrl_mbchar(param_1);\n    if (iVar3 == 0) {\n      if (iVar5 != 1) {\n        iVar3 = 1;\n        if (PTR_DAT_0007754c[-0x7da0] != '\0') {\n          iVar3 = FUN_0001b340();\n        }\n        *param_3 = *param_3 + iVar3;\n        return iVar5;\n      }\n      *param_3 = *param_3 + 1;\n    }\n    else {\n      *param_3 = *param_3 + 2;\n    }\n  }" if (parenthesized_expression "(param_3 != (uint *)0x0)" ( (binary_expression "param_3 != (uint *)0x0" identifier != (cast_expression "(uint *)0x0" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n    if (*param_1 == '\t') {\n      uVar4 = *(uint *)PTR_tabsize_000777bc;\n      if (uVar4 == 0) {\n        trap(7);\n      }\n      *param_3 = (*param_3 + uVar4) - *param_3 % uVar4;\n      return iVar5;\n    }\n    iVar3 = is_cntrl_mbchar(param_1);\n    if (iVar3 == 0) {\n      if (iVar5 != 1) {\n        iVar3 = 1;\n        if (PTR_DAT_0007754c[-0x7da0] != '\0') {\n          iVar3 = FUN_0001b340();\n        }\n        *param_3 = *param_3 + iVar3;\n        return iVar5;\n      }\n      *param_3 = *param_3 + 1;\n    }\n    else {\n      *param_3 = *param_3 + 2;\n    }\n  }" { (if_statement "if (*param_1 == '\t') {\n      uVar4 = *(uint *)PTR_tabsize_000777bc;\n      if (uVar4 == 0) {\n        trap(7);\n      }\n      *param_3 = (*param_3 + uVar4) - *param_3 % uVar4;\n      return iVar5;\n    }" if (parenthesized_expression "(*param_1 == '\t')" ( (binary_expression "*param_1 == '\t'" (pointer_expression "*param_1" * identifier) == (char_literal "'\t'" ' escape_sequence ')) )) (compound_statement "{\n      uVar4 = *(uint *)PTR_tabsize_000777bc;\n      if (uVar4 == 0) {\n        trap(7);\n      }\n      *param_3 = (*param_3 + uVar4) - *param_3 % uVar4;\n      return iVar5;\n    }" { (expression_statement "uVar4 = *(uint *)PTR_tabsize_000777bc;" (assignment_expression "uVar4 = *(uint *)PTR_tabsize_000777bc" identifier = (pointer_expression "*(uint *)PTR_tabsize_000777bc" * (cast_expression "(uint *)PTR_tabsize_000777bc" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier))) ;) (if_statement "if (uVar4 == 0) {\n        trap(7);\n      }" if (parenthesized_expression "(uVar4 == 0)" ( (binary_expression "uVar4 == 0" identifier == number_literal) )) (compound_statement "{\n        trap(7);\n      }" { (expression_statement "trap(7);" (call_expression "trap(7)" identifier (argument_list "(7)" ( number_literal ))) ;) })) (expression_statement "*param_3 = (*param_3 + uVar4) - *param_3 % uVar4;" (assignment_expression "*param_3 = (*param_3 + uVar4) - *param_3 % uVar4" (pointer_expression "*param_3" * identifier) = (binary_expression "(*param_3 + uVar4) - *param_3 % uVar4" (parenthesized_expression "(*param_3 + uVar4)" ( (binary_expression "*param_3 + uVar4" (pointer_expression "*param_3" * identifier) + identifier) )) - (binary_expression "*param_3 % uVar4" (pointer_expression "*param_3" * identifier) % identifier))) ;) (return_statement "return iVar5;" return identifier ;) })) (expression_statement "iVar3 = is_cntrl_mbchar(param_1);" (assignment_expression "iVar3 = is_cntrl_mbchar(param_1)" identifier = (call_expression "is_cntrl_mbchar(param_1)" identifier (argument_list "(param_1)" ( identifier )))) ;) (if_statement "if (iVar3 == 0) {\n      if (iVar5 != 1) {\n        iVar3 = 1;\n        if (PTR_DAT_0007754c[-0x7da0] != '\0') {\n          iVar3 = FUN_0001b340();\n        }\n        *param_3 = *param_3 + iVar3;\n        return iVar5;\n      }\n      *param_3 = *param_3 + 1;\n    }\n    else {\n      *param_3 = *param_3 + 2;\n    }" if (parenthesized_expression "(iVar3 == 0)" ( (binary_expression "iVar3 == 0" identifier == number_literal) )) (compound_statement "{\n      if (iVar5 != 1) {\n        iVar3 = 1;\n        if (PTR_DAT_0007754c[-0x7da0] != '\0') {\n          iVar3 = FUN_0001b340();\n        }\n        *param_3 = *param_3 + iVar3;\n        return iVar5;\n      }\n      *param_3 = *param_3 + 1;\n    }" { (if_statement "if (iVar5 != 1) {\n        iVar3 = 1;\n        if (PTR_DAT_0007754c[-0x7da0] != '\0') {\n          iVar3 = FUN_0001b340();\n        }\n        *param_3 = *param_3 + iVar3;\n        return iVar5;\n      }" if (parenthesized_expression "(iVar5 != 1)" ( (binary_expression "iVar5 != 1" identifier != number_literal) )) (compound_statement "{\n        iVar3 = 1;\n        if (PTR_DAT_0007754c[-0x7da0] != '\0') {\n          iVar3 = FUN_0001b340();\n        }\n        *param_3 = *param_3 + iVar3;\n        return iVar5;\n      }" { (expression_statement "iVar3 = 1;" (assignment_expression "iVar3 = 1" identifier = number_literal) ;) (if_statement "if (PTR_DAT_0007754c[-0x7da0] != '\0') {\n          iVar3 = FUN_0001b340();\n        }" if (parenthesized_expression "(PTR_DAT_0007754c[-0x7da0] != '\0')" ( (binary_expression "PTR_DAT_0007754c[-0x7da0] != '\0'" (subscript_expression "PTR_DAT_0007754c[-0x7da0]" identifier [ number_literal ]) != (char_literal "'\0'" ' escape_sequence ')) )) (compound_statement "{\n          iVar3 = FUN_0001b340();\n        }" { (expression_statement "iVar3 = FUN_0001b340();" (assignment_expression "iVar3 = FUN_0001b340()" identifier = (call_expression "FUN_0001b340()" identifier (argument_list "()" ( )))) ;) })) (expression_statement "*param_3 = *param_3 + iVar3;" (assignment_expression "*param_3 = *param_3 + iVar3" (pointer_expression "*param_3" * identifier) = (binary_expression "*param_3 + iVar3" (pointer_expression "*param_3" * identifier) + identifier)) ;) (return_statement "return iVar5;" return identifier ;) })) (expression_statement "*param_3 = *param_3 + 1;" (assignment_expression "*param_3 = *param_3 + 1" (pointer_expression "*param_3" * identifier) = (binary_expression "*param_3 + 1" (pointer_expression "*param_3" * identifier) + number_literal)) ;) }) (else_clause "else {\n      *param_3 = *param_3 + 2;\n    }" else (compound_statement "{\n      *param_3 = *param_3 + 2;\n    }" { (expression_statement "*param_3 = *param_3 + 2;" (assignment_expression "*param_3 = *param_3 + 2" (pointer_expression "*param_3" * identifier) = (binary_expression "*param_3 + 2" (pointer_expression "*param_3" * identifier) + number_literal)) ;) }))) })) (return_statement "return iVar5;" return identifier ;) })))
(translation_unit (function_definition TYPE (function_declarator IDENT (parameter_list ( (parameter_declaration TYPE (pointer_declarator * IDENT)) , (parameter_declaration TYPE (pointer_declarator * IDENT)) , (parameter_declaration TYPE (pointer_declarator * IDENT)) ))) (compound_statement { (declaration TYPE IDENT ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (if_statement if (parenthesized_expression ( (binary_expression (pointer_expression * IDENT) < (char_literal ' escape_sequence ')) )) (compound_statement { (expression_statement (assignment_expression IDENT = (call_expression (parenthesized_expression ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT)) )) (argument_list ( IDENT , LIT )))) ;) (expression_statement (assignment_expression IDENT = LIT) ;) (if_statement if (parenthesized_expression ( (binary_expression LIT < IDENT) )) (compound_statement { (expression_statement (assignment_expression IDENT = IDENT) ;) })) }) (else_clause else (compound_statement { (expression_statement (assignment_expression IDENT = LIT) ;) }))) (if_statement if (parenthesized_expression ( (binary_expression IDENT != (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) LIT)) )) (compound_statement { (expression_statement (assignment_expression IDENT = IDENT) ;) (do_statement do (compound_statement { (expression_statement (assignment_expression IDENT = (pointer_expression * IDENT)) ;) (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) (expression_statement (assignment_expression (pointer_expression * IDENT) = IDENT) ;) (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) }) while (parenthesized_expression ( (binary_expression IDENT != (binary_expression IDENT + IDENT)) )) ;) })) (if_statement if (parenthesized_expression ( (binary_expression IDENT != (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) LIT)) )) (compound_statement { (if_statement if (parenthesized_expression ( (binary_expression (pointer_expression * IDENT) == (char_literal ' escape_sequence ')) )) (compound_statement { (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT == LIT) )) (compound_statement { (expression_statement (call_expression IDENT (argument_list ( LIT ))) ;) })) (expression_statement (assignment_expression (pointer_expression * IDENT) = (binary_expression (parenthesized_expression ( (binary_expression (pointer_expression * IDENT) + IDENT) )) - (binary_expression (pointer_expression * IDENT) % IDENT))) ;) (return_statement return IDENT ;) })) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( IDENT )))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT == LIT) )) (compound_statement { (if_statement if (parenthesized_expression ( (binary_expression IDENT != LIT) )) (compound_statement { (expression_statement (assignment_expression IDENT = LIT) ;) (if_statement if (parenthesized_expression ( (binary_expression (subscript_expression IDENT [ LIT ]) != (char_literal ' escape_sequence ')) )) (compound_statement { (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( )))) ;) })) (expression_statement (assignment_expression (pointer_expression * IDENT) = (binary_expression (pointer_expression * IDENT) + IDENT)) ;) (return_statement return IDENT ;) })) (expression_statement (assignment_expression (pointer_expression * IDENT) = (binary_expression (pointer_expression * IDENT) + LIT)) ;) }) (else_clause else (compound_statement { (expression_statement (assignment_expression (pointer_expression * IDENT) = (binary_expression (pointer_expression * IDENT) + LIT)) ;) }))) })) (return_statement return IDENT ;) })))
(function_definition "int parse_mbchar(char *param_1,char *param_2,uint *param_3)\n\n{\n  char cVar1;\n  char *pcVar2;\n  int iVar3;\n  uint uVar4;\n  int iVar5;\n  \n  if (*param_1 < '\0') {\n    iVar3 = (*(code *)PTR_mblen_00078090)(param_1,6);\n    iVar5 = 1;\n    if (0 < iVar3) {\n      iVar5 = iVar3;\n    }\n  }\n  else {\n    iVar5 = 1;\n  }\n  if (param_2 != (char *)0x0) {\n    pcVar2 = param_1;\n    do {\n      cVar1 = *pcVar2;\n      pcVar2 = pcVar2 + 1;\n      *param_2 = cVar1;\n      param_2 = param_2 + 1;\n    } while (pcVar2 != param_1 + iVar5);\n  }\n  if (param_3 != (uint *)0x0) {\n    if (*param_1 == '\t') {\n      uVar4 = *(uint *)PTR_tabsize_000777bc;\n      if (uVar4 == 0) {\n        trap(7);\n      }\n      *param_3 = (*param_3 + uVar4) - *param_3 % uVar4;\n      return iVar5;\n    }\n    iVar3 = is_cntrl_mbchar(param_1);\n    if (iVar3 == 0) {\n      if (iVar5 != 1) {\n        iVar3 = 1;\n        if (PTR_DAT_0007754c[-0x7da0] != '\0') {\n          iVar3 = FUN_0001b340();\n        }\n        *param_3 = *param_3 + iVar3;\n        return iVar5;\n      }\n      *param_3 = *param_3 + 1;\n    }\n    else {\n      *param_3 = *param_3 + 2;\n    }\n  }\n  return iVar5;\n}" (primitive_type "int") (function_declarator "parse_mbchar(char *param_1,char *param_2,uint *param_3)" (identifier "parse_mbchar") (parameter_list "(char *param_1,char *param_2,uint *param_3)" (( "(") (parameter_declaration "char *param_1" (primitive_type "char") (pointer_declarator "*param_1" (* "*") (identifier "param_1"))) (, ",") (parameter_declaration "char *param_2" (primitive_type "char") (pointer_declarator "*param_2" (* "*") (identifier "param_2"))) (, ",") (parameter_declaration "uint *param_3" (type_identifier "uint") (pointer_declarator "*param_3" (* "*") (identifier "param_3"))) () ")"))) (compound_statement "{\n  char cVar1;\n  char *pcVar2;\n  int iVar3;\n  uint uVar4;\n  int iVar5;\n  \n  if (*param_1 < '\0') {\n    iVar3 = (*(code *)PTR_mblen_00078090)(param_1,6);\n    iVar5 = 1;\n    if (0 < iVar3) {\n      iVar5 = iVar3;\n    }\n  }\n  else {\n    iVar5 = 1;\n  }\n  if (param_2 != (char *)0x0) {\n    pcVar2 = param_1;\n    do {\n      cVar1 = *pcVar2;\n      pcVar2 = pcVar2 + 1;\n      *param_2 = cVar1;\n      param_2 = param_2 + 1;\n    } while (pcVar2 != param_1 + iVar5);\n  }\n  if (param_3 != (uint *)0x0) {\n    if (*param_1 == '\t') {\n      uVar4 = *(uint *)PTR_tabsize_000777bc;\n      if (uVar4 == 0) {\n        trap(7);\n      }\n      *param_3 = (*param_3 + uVar4) - *param_3 % uVar4;\n      return iVar5;\n    }\n    iVar3 = is_cntrl_mbchar(param_1);\n    if (iVar3 == 0) {\n      if (iVar5 != 1) {\n        iVar3 = 1;\n        if (PTR_DAT_0007754c[-0x7da0] != '\0') {\n          iVar3 = FUN_0001b340();\n        }\n        *param_3 = *param_3 + iVar3;\n        return iVar5;\n      }\n      *param_3 = *param_3 + 1;\n    }\n    else {\n      *param_3 = *param_3 + 2;\n    }\n  }\n  return iVar5;\n}" ({ "{") (declaration "char cVar1;" (primitive_type "char") (identifier "cVar1") (; ";")) (declaration "char *pcVar2;" (primitive_type "char") (pointer_declarator "*pcVar2" (* "*") (identifier "pcVar2")) (; ";")) (declaration "int iVar3;" (primitive_type "int") (identifier "iVar3") (; ";")) (declaration "uint uVar4;" (type_identifier "uint") (identifier "uVar4") (; ";")) (declaration "int iVar5;" (primitive_type "int") (identifier "iVar5") (; ";")) (if_statement "if (*param_1 < '\0') {\n    iVar3 = (*(code *)PTR_mblen_00078090)(param_1,6);\n    iVar5 = 1;\n    if (0 < iVar3) {\n      iVar5 = iVar3;\n    }\n  }\n  else {\n    iVar5 = 1;\n  }" (if "if") (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    iVar3 = (*(code *)PTR_mblen_00078090)(param_1,6);\n    iVar5 = 1;\n    if (0 < iVar3) {\n      iVar5 = iVar3;\n    }\n  }" ({ "{") (expression_statement "iVar3 = (*(code *)PTR_mblen_00078090)(param_1,6);" (assignment_expression "iVar3 = (*(code *)PTR_mblen_00078090)(param_1,6)" (identifier "iVar3") (= "=") (call_expression "(*(code *)PTR_mblen_00078090)(param_1,6)" (parenthesized_expression "(*(code *)PTR_mblen_00078090)" (( "(") (pointer_expression "*(code *)PTR_mblen_00078090" (* "*") (cast_expression "(code *)PTR_mblen_00078090" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR_mblen_00078090"))) () ")")) (argument_list "(param_1,6)" (( "(") (identifier "param_1") (, ",") (number_literal "6") () ")")))) (; ";")) (expression_statement "iVar5 = 1;" (assignment_expression "iVar5 = 1" (identifier "iVar5") (= "=") (number_literal "1")) (; ";")) (if_statement "if (0 < iVar3) {\n      iVar5 = iVar3;\n    }" (if "if") (parenthesized_expression "(0 < iVar3)" (( "(") (binary_expression "0 < iVar3" (number_literal "0") (< "<") (identifier "iVar3")) () ")")) (compound_statement "{\n      iVar5 = iVar3;\n    }" ({ "{") (expression_statement "iVar5 = iVar3;" (assignment_expression "iVar5 = iVar3" (identifier "iVar5") (= "=") (identifier "iVar3")) (; ";")) (} "}"))) (} "}")) (else_clause "else {\n    iVar5 = 1;\n  }" (else "else") (compound_statement "{\n    iVar5 = 1;\n  }" ({ "{") (expression_statement "iVar5 = 1;" (assignment_expression "iVar5 = 1" (identifier "iVar5") (= "=") (number_literal "1")) (; ";")) (} "}")))) (if_statement "if (param_2 != (char *)0x0) {\n    pcVar2 = param_1;\n    do {\n      cVar1 = *pcVar2;\n      pcVar2 = pcVar2 + 1;\n      *param_2 = cVar1;\n      param_2 = param_2 + 1;\n    } while (pcVar2 != param_1 + iVar5);\n  }" (if "if") (parenthesized_expression "(param_2 != (char *)0x0)" (( "(") (binary_expression "param_2 != (char *)0x0" (identifier "param_2") (!= "!=") (cast_expression "(char *)0x0" (( "(") (type_descriptor "char *" (primitive_type "char") (abstract_pointer_declarator "*" (* "*"))) () ")") (number_literal "0x0"))) () ")")) (compound_statement "{\n    pcVar2 = param_1;\n    do {\n      cVar1 = *pcVar2;\n      pcVar2 = pcVar2 + 1;\n      *param_2 = cVar1;\n      param_2 = param_2 + 1;\n    } while (pcVar2 != param_1 + iVar5);\n  }" ({ "{") (expression_statement "pcVar2 = param_1;" (assignment_expression "pcVar2 = param_1" (identifier "pcVar2") (= "=") (identifier "param_1")) (; ";")) (do_statement "do {\n      cVar1 = *pcVar2;\n      pcVar2 = pcVar2 + 1;\n      *param_2 = cVar1;\n      param_2 = param_2 + 1;\n    } while (pcVar2 != param_1 + iVar5);" (do "do") (compound_statement "{\n      cVar1 = *pcVar2;\n      pcVar2 = pcVar2 + 1;\n      *param_2 = cVar1;\n      param_2 = param_2 + 1;\n    }" ({ "{") (expression_statement "cVar1 = *pcVar2;" (assignment_expression "cVar1 = *pcVar2" (identifier "cVar1") (= "=") (pointer_expression "*pcVar2" (* "*") (identifier "pcVar2"))) (; ";")) (expression_statement "pcVar2 = pcVar2 + 1;" (assignment_expression "pcVar2 = pcVar2 + 1" (identifier "pcVar2") (= "=") (binary_expression "pcVar2 + 1" (identifier "pcVar2") (+ "+") (number_literal "1"))) (; ";")) (expression_statement "*param_2 = cVar1;" (assignment_expression "*param_2 = cVar1" (pointer_expression "*param_2" (* "*") (identifier "param_2")) (= "=") (identifier "cVar1")) (; ";")) (expression_statement "param_2 = param_2 + 1;" (assignment_expression "param_2 = param_2 + 1" (identifier "param_2") (= "=") (binary_expression "param_2 + 1" (identifier "param_2") (+ "+") (number_literal "1"))) (; ";")) (} "}")) (while "while") (parenthesized_expression "(pcVar2 != param_1 + iVar5)" (( "(") (binary_expression "pcVar2 != param_1 + iVar5" (identifier "pcVar2") (!= "!=") (binary_expression "param_1 + iVar5" (identifier "param_1") (+ "+") (identifier "iVar5"))) () ")")) (; ";")) (} "}"))) (if_statement "if (param_3 != (uint *)0x0) {\n    if (*param_1 == '\t') {\n      uVar4 = *(uint *)PTR_tabsize_000777bc;\n      if (uVar4 == 0) {\n        trap(7);\n      }\n      *param_3 = (*param_3 + uVar4) - *param_3 % uVar4;\n      return iVar5;\n    }\n    iVar3 = is_cntrl_mbchar(param_1);\n    if (iVar3 == 0) {\n      if (iVar5 != 1) {\n        iVar3 = 1;\n        if (PTR_DAT_0007754c[-0x7da0] != '\0') {\n          iVar3 = FUN_0001b340();\n        }\n        *param_3 = *param_3 + iVar3;\n        return iVar5;\n      }\n      *param_3 = *param_3 + 1;\n    }\n    else {\n      *param_3 = *param_3 + 2;\n    }\n  }" (if "if") (parenthesized_expression "(param_3 != (uint *)0x0)" (( "(") (binary_expression "param_3 != (uint *)0x0" (identifier "param_3") (!= "!=") (cast_expression "(uint *)0x0" (( "(") (type_descriptor "uint *" (type_identifier "uint") (abstract_pointer_declarator "*" (* "*"))) () ")") (number_literal "0x0"))) () ")")) (compound_statement "{\n    if (*param_1 == '\t') {\n      uVar4 = *(uint *)PTR_tabsize_000777bc;\n      if (uVar4 == 0) {\n        trap(7);\n      }\n      *param_3 = (*param_3 + uVar4) - *param_3 % uVar4;\n      return iVar5;\n    }\n    iVar3 = is_cntrl_mbchar(param_1);\n    if (iVar3 == 0) {\n      if (iVar5 != 1) {\n        iVar3 = 1;\n        if (PTR_DAT_0007754c[-0x7da0] != '\0') {\n          iVar3 = FUN_0001b340();\n        }\n        *param_3 = *param_3 + iVar3;\n        return iVar5;\n      }\n      *param_3 = *param_3 + 1;\n    }\n    else {\n      *param_3 = *param_3 + 2;\n    }\n  }" ({ "{") (if_statement "if (*param_1 == '\t') {\n      uVar4 = *(uint *)PTR_tabsize_000777bc;\n      if (uVar4 == 0) {\n        trap(7);\n      }\n      *param_3 = (*param_3 + uVar4) - *param_3 % uVar4;\n      return iVar5;\n    }" (if "if") (parenthesized_expression "(*param_1 == '\t')" (( "(") (binary_expression "*param_1 == '\t'" (pointer_expression "*param_1" (* "*") (identifier "param_1")) (== "==") (char_literal "'\t'" (' "'") (escape_sequence "\t") (' "'"))) () ")")) (compound_statement "{\n      uVar4 = *(uint *)PTR_tabsize_000777bc;\n      if (uVar4 == 0) {\n        trap(7);\n      }\n      *param_3 = (*param_3 + uVar4) - *param_3 % uVar4;\n      return iVar5;\n    }" ({ "{") (expression_statement "uVar4 = *(uint *)PTR_tabsize_000777bc;" (assignment_expression "uVar4 = *(uint *)PTR_tabsize_000777bc" (identifier "uVar4") (= "=") (pointer_expression "*(uint *)PTR_tabsize_000777bc" (* "*") (cast_expression "(uint *)PTR_tabsize_000777bc" (( "(") (type_descriptor "uint *" (type_identifier "uint") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR_tabsize_000777bc")))) (; ";")) (if_statement "if (uVar4 == 0) {\n        trap(7);\n      }" (if "if") (parenthesized_expression "(uVar4 == 0)" (( "(") (binary_expression "uVar4 == 0" (identifier "uVar4") (== "==") (number_literal "0")) () ")")) (compound_statement "{\n        trap(7);\n      }" ({ "{") (expression_statement "trap(7);" (call_expression "trap(7)" (identifier "trap") (argument_list "(7)" (( "(") (number_literal "7") () ")"))) (; ";")) (} "}"))) (expression_statement "*param_3 = (*param_3 + uVar4) - *param_3 % uVar4;" (assignment_expression "*param_3 = (*param_3 + uVar4) - *param_3 % uVar4" (pointer_expression "*param_3" (* "*") (identifier "param_3")) (= "=") (binary_expression "(*param_3 + uVar4) - *param_3 % uVar4" (parenthesized_expression "(*param_3 + uVar4)" (( "(") (binary_expression "*param_3 + uVar4" (pointer_expression "*param_3" (* "*") (identifier "param_3")) (+ "+") (identifier "uVar4")) () ")")) (- "-") (binary_expression "*param_3 % uVar4" (pointer_expression "*param_3" (* "*") (identifier "param_3")) (% "%") (identifier "uVar4")))) (; ";")) (return_statement "return iVar5;" (return "return") (identifier "iVar5") (; ";")) (} "}"))) (expression_statement "iVar3 = is_cntrl_mbchar(param_1);" (assignment_expression "iVar3 = is_cntrl_mbchar(param_1)" (identifier "iVar3") (= "=") (call_expression "is_cntrl_mbchar(param_1)" (identifier "is_cntrl_mbchar") (argument_list "(param_1)" (( "(") (identifier "param_1") () ")")))) (; ";")) (if_statement "if (iVar3 == 0) {\n      if (iVar5 != 1) {\n        iVar3 = 1;\n        if (PTR_DAT_0007754c[-0x7da0] != '\0') {\n          iVar3 = FUN_0001b340();\n        }\n        *param_3 = *param_3 + iVar3;\n        return iVar5;\n      }\n      *param_3 = *param_3 + 1;\n    }\n    else {\n      *param_3 = *param_3 + 2;\n    }" (if "if") (parenthesized_expression "(iVar3 == 0)" (( "(") (binary_expression "iVar3 == 0" (identifier "iVar3") (== "==") (number_literal "0")) () ")")) (compound_statement "{\n      if (iVar5 != 1) {\n        iVar3 = 1;\n        if (PTR_DAT_0007754c[-0x7da0] != '\0') {\n          iVar3 = FUN_0001b340();\n        }\n        *param_3 = *param_3 + iVar3;\n        return iVar5;\n      }\n      *param_3 = *param_3 + 1;\n    }" ({ "{") (if_statement "if (iVar5 != 1) {\n        iVar3 = 1;\n        if (PTR_DAT_0007754c[-0x7da0] != '\0') {\n          iVar3 = FUN_0001b340();\n        }\n        *param_3 = *param_3 + iVar3;\n        return iVar5;\n      }" (if "if") (parenthesized_expression "(iVar5 != 1)" (( "(") (binary_expression "iVar5 != 1" (identifier "iVar5") (!= "!=") (number_literal "1")) () ")")) (compound_statement "{\n        iVar3 = 1;\n        if (PTR_DAT_0007754c[-0x7da0] != '\0') {\n          iVar3 = FUN_0001b340();\n        }\n        *param_3 = *param_3 + iVar3;\n        return iVar5;\n      }" ({ "{") (expression_statement "iVar3 = 1;" (assignment_expression "iVar3 = 1" (identifier "iVar3") (= "=") (number_literal "1")) (; ";")) (if_statement "if (PTR_DAT_0007754c[-0x7da0] != '\0') {\n          iVar3 = FUN_0001b340();\n        }" (if "if") (parenthesized_expression "(PTR_DAT_0007754c[-0x7da0] != '\0')" (( "(") (binary_expression "PTR_DAT_0007754c[-0x7da0] != '\0'" (subscript_expression "PTR_DAT_0007754c[-0x7da0]" (identifier "PTR_DAT_0007754c") ([ "[") (number_literal "-0x7da0") (] "]")) (!= "!=") (char_literal "'\0'" (' "'") (escape_sequence "\0") (' "'"))) () ")")) (compound_statement "{\n          iVar3 = FUN_0001b340();\n        }" ({ "{") (expression_statement "iVar3 = FUN_0001b340();" (assignment_expression "iVar3 = FUN_0001b340()" (identifier "iVar3") (= "=") (call_expression "FUN_0001b340()" (identifier "FUN_0001b340") (argument_list "()" (( "(") () ")")))) (; ";")) (} "}"))) (expression_statement "*param_3 = *param_3 + iVar3;" (assignment_expression "*param_3 = *param_3 + iVar3" (pointer_expression "*param_3" (* "*") (identifier "param_3")) (= "=") (binary_expression "*param_3 + iVar3" (pointer_expression "*param_3" (* "*") (identifier "param_3")) (+ "+") (identifier "iVar3"))) (; ";")) (return_statement "return iVar5;" (return "return") (identifier "iVar5") (; ";")) (} "}"))) (expression_statement "*param_3 = *param_3 + 1;" (assignment_expression "*param_3 = *param_3 + 1" (pointer_expression "*param_3" (* "*") (identifier "param_3")) (= "=") (binary_expression "*param_3 + 1" (pointer_expression "*param_3" (* "*") (identifier "param_3")) (+ "+") (number_literal "1"))) (; ";")) (} "}")) (else_clause "else {\n      *param_3 = *param_3 + 2;\n    }" (else "else") (compound_statement "{\n      *param_3 = *param_3 + 2;\n    }" ({ "{") (expression_statement "*param_3 = *param_3 + 2;" (assignment_expression "*param_3 = *param_3 + 2" (pointer_expression "*param_3" (* "*") (identifier "param_3")) (= "=") (binary_expression "*param_3 + 2" (pointer_expression "*param_3" (* "*") (identifier "param_3")) (+ "+") (number_literal "2"))) (; ";")) (} "}")))) (} "}"))) (return_statement "return iVar5;" (return "return") (identifier "iVar5") (; ";")) (} "}")))

int function_1(char *var_4,char *var_2,size_t *var_6)

{
  char cVar1;
  type_1 extraout_var;
  char *var_3;
  type_2 _Var4;
  int var_1;
  type_3 var_7;
  int var_5;
  
  if (*var_4 < '\0') {
    var_1 = (*(type_4 *)PTR_mblen_00078090)(var_4,6);
    var_5 = 1;
    if (0 < var_1) {
      var_5 = var_1;
    }
  }
  else {
    var_5 = 1;
  }
  if (var_2 != (char *)0x0) {
    var_3 = var_4;
    do {
      cVar1 = *var_3;
      var_3 = var_3 + 1;
      *var_2 = cVar1;
      var_2 = var_2 + 1;
    } while (var_3 != var_4 + var_5);
  }
  if (var_6 != (size_t *)0x0) {
    if (*var_4 == '\t') {
      var_7 = *(type_3 *)PTR_tabsize_000777bc;
      if (var_7 == 0) {
        var_8(7);
      }
      *var_6 = (*var_6 + var_7) - *var_6 % var_7;
      return var_5;
    }
    _Var4 = var_9(var_4);
    if (var_10(extraout_var,_Var4) == 0) {
      if (var_5 != 1) {
        var_1 = 1;
        if (PTR_DAT_0007754c[-0x7da0] != '\0') {
          var_1 = var_11(var_4);
        }
        *var_6 = *var_6 + var_1;
        return var_5;
      }
      *var_6 = *var_6 + 1;
    }
    else {
      *var_6 = *var_6 + 2;
    }
  }
  return var_5;
}


(translation_unit (function_definition type: (primitive_type) declarator: (function_declarator declarator: (identifier) parameters: (parameter_list (parameter_declaration type: (primitive_type) declarator: (pointer_declarator declarator: (identifier))) (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: (pointer_declarator declarator: (identifier))) (declaration type: (primitive_type) declarator: (identifier)) (declaration type: (type_identifier) declarator: (identifier)) (declaration type: (primitive_type) declarator: (identifier)) (if_statement condition: (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: (parenthesized_expression (pointer_expression argument: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (identifier)))) arguments: (argument_list (identifier) (number_literal))))) (expression_statement (assignment_expression left: (identifier) right: (number_literal))) (if_statement condition: (parenthesized_expression (binary_expression left: (number_literal) right: (identifier))) consequence: (compound_statement (expression_statement (assignment_expression left: (identifier) right: (identifier)))))) alternative: (else_clause (compound_statement (expression_statement (assignment_expression left: (identifier) right: (number_literal)))))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (number_literal)))) consequence: (compound_statement (expression_statement (assignment_expression left: (identifier) right: (identifier))) (do_statement body: (compound_statement (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)))) (expression_statement (assignment_expression left: (pointer_expression argument: (identifier)) right: (identifier))) (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (identifier) right: (number_literal))))) condition: (parenthesized_expression (binary_expression left: (identifier) right: (binary_expression left: (identifier) right: (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 (if_statement condition: (parenthesized_expression (binary_expression left: (pointer_expression argument: (identifier)) right: (char_literal (escape_sequence)))) consequence: (compound_statement (expression_statement (assignment_expression left: (identifier) right: (pointer_expression argument: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (identifier))))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))) consequence: (compound_statement (expression_statement (call_expression function: (identifier) arguments: (argument_list (number_literal)))))) (expression_statement (assignment_expression left: (pointer_expression argument: (identifier)) right: (binary_expression left: (parenthesized_expression (binary_expression left: (pointer_expression argument: (identifier)) right: (identifier))) right: (binary_expression left: (pointer_expression argument: (identifier)) right: (identifier))))) (return_statement (identifier)))) (expression_statement (assignment_expression left: (identifier) right: (call_expression function: (identifier) arguments: (argument_list (identifier))))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))) consequence: (compound_statement (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))) consequence: (compound_statement (expression_statement (assignment_expression left: (identifier) right: (number_literal))) (if_statement condition: (parenthesized_expression (binary_expression left: (subscript_expression argument: (identifier) index: (number_literal)) right: (char_literal (escape_sequence)))) consequence: (compound_statement (expression_statement (assignment_expression left: (identifier) right: (call_expression function: (identifier) arguments: (argument_list)))))) (expression_statement (assignment_expression left: (pointer_expression argument: (identifier)) right: (binary_expression left: (pointer_expression argument: (identifier)) right: (identifier)))) (return_statement (identifier)))) (expression_statement (assignment_expression left: (pointer_expression argument: (identifier)) right: (binary_expression left: (pointer_expression argument: (identifier)) right: (number_literal))))) alternative: (else_clause (compound_statement (expression_statement (assignment_expression left: (pointer_expression argument: (identifier)) right: (binary_expression left: (pointer_expression argument: (identifier)) right: (number_literal))))))))) (return_statement (identifier)))))

int MASKED(char *param_1,char *param_2,uint *param_3)

{
  char cVar1;
  char *pcVar2;
  int iVar3;
  uint uVar4;
  int iVar5;
  
  if (*param_1 < '\0') {
    iVar3 = (*(code *)PTR_mblen_00078090)(param_1,6);
    iVar5 = 1;
    if (0 < iVar3) {
      iVar5 = iVar3;
    }
  }
  else {
    iVar5 = 1;
  }
  if (param_2 != (char *)0x0) {
    pcVar2 = param_1;
    do {
      cVar1 = *pcVar2;
      pcVar2 = pcVar2 + 1;
      *param_2 = cVar1;
      param_2 = param_2 + 1;
    } while (pcVar2 != param_1 + iVar5);
  }
  if (param_3 != (uint *)0x0) {
    if (*param_1 == '\t') {
      uVar4 = *(uint *)PTR_tabsize_000777bc;
      if (uVar4 == 0) {
        trap(7);
      }
      *param_3 = (*param_3 + uVar4) - *param_3 % uVar4;
      return iVar5;
    }
    iVar3 = is_cntrl_mbchar(param_1);
    if (iVar3 == 0) {
      if (iVar5 != 1) {
        iVar3 = 1;
        if (PTR_DAT_0007754c[-0x7da0] != '\0') {
          iVar3 = FUN_0001b340();
        }
        *param_3 = *param_3 + iVar3;
        return iVar5;
      }
      *param_3 = *param_3 + 1;
    }
    else {
      *param_3 = *param_3 + 2;
    }
  }
  return iVar5;
}

