
ptrdiff_t argmatch(char *arg,char **arglist,char *vallist,size_t valsize)

{
  bool bVar1;
  int iVar2;
  int iVar3;
  char **ppcVar4;
  char *pcVar5;
  int iVar6;
  int iVar7;
  char *pcVar8;
  
  iVar2 = (*(code *)PTR_strlen_0002c2b4)();
  pcVar8 = *arglist;
  if (pcVar8 == (char *)0x0) {
    iVar7 = -1;
  }
  else {
    bVar1 = false;
    ppcVar4 = arglist + 1;
    pcVar5 = vallist;
    iVar3 = 0;
    iVar7 = -1;
    do {
      while (iVar6 = iVar3, iVar3 = (*(code *)PTR_strncmp_0002c24c)(pcVar8,arg,iVar2), iVar3 != 0) {
LAB_00013668:
        pcVar8 = *ppcVar4;
        ppcVar4 = ppcVar4 + 1;
        pcVar5 = pcVar5 + valsize;
        iVar3 = iVar6 + 1;
        if (pcVar8 == (char *)0x0) goto LAB_000136e8;
      }
      iVar3 = (*(code *)PTR_strlen_0002c2b4)(pcVar8);
      if (iVar3 == iVar2) {
        return iVar6;
      }
      if (iVar7 != -1) {
        if (vallist == (char *)0x0) {
          bVar1 = true;
        }
        else {
          iVar3 = (*(code *)PTR_memcmp_0002c308)(vallist + iVar7 * valsize,pcVar5,valsize);
          if (iVar3 != 0) {
            bVar1 = true;
          }
        }
        goto LAB_00013668;
      }
      pcVar8 = *ppcVar4;
      ppcVar4 = ppcVar4 + 1;
      pcVar5 = pcVar5 + valsize;
      iVar3 = iVar6 + 1;
      iVar7 = iVar6;
    } while (pcVar8 != (char *)0x0);
LAB_000136e8:
    if (bVar1) {
      iVar7 = -2;
    }
  }
  return iVar7;
}



int argmatch(undefined4 param_1,int *param_2,int param_3,int param_4)

{
  bool bVar1;
  int iVar2;
  int iVar3;
  int iVar4;
  int iVar5;
  int iVar6;
  int iVar7;
  
  iVar2 = (*(code *)PTR_strlen_0002c2b4)();
  iVar7 = *param_2;
  if (iVar7 == 0) {
    iVar6 = -1;
  }
  else {
    bVar1 = false;
    param_2 = param_2 + 1;
    iVar4 = param_3;
    iVar3 = 0;
    iVar6 = -1;
    do {
      while (iVar5 = iVar3, iVar3 = (*(code *)PTR_strncmp_0002c24c)(iVar7,param_1,iVar2), iVar3 != 0
            ) {
LAB_00013668:
        iVar7 = *param_2;
        param_2 = param_2 + 1;
        iVar4 = iVar4 + param_4;
        iVar3 = iVar5 + 1;
        if (iVar7 == 0) goto LAB_000136e8;
      }
      iVar7 = (*(code *)PTR_strlen_0002c2b4)(iVar7);
      if (iVar7 == iVar2) {
        return iVar5;
      }
      if (iVar6 != -1) {
        if (param_3 == 0) {
          bVar1 = true;
        }
        else {
          iVar7 = (*(code *)PTR_memcmp_0002c308)(iVar6 * param_4 + param_3,iVar4,param_4);
          if (iVar7 != 0) {
            bVar1 = true;
          }
        }
        goto LAB_00013668;
      }
      iVar7 = *param_2;
      param_2 = param_2 + 1;
      iVar4 = iVar4 + param_4;
      iVar3 = iVar5 + 1;
      iVar6 = iVar5;
    } while (iVar7 != 0);
LAB_000136e8:
    if (bVar1) {
      iVar6 = -2;
    }
  }
  return iVar6;
}


lui gp,0x2
addiu gp,gp,0xb18
addu gp,gp,t9
addiu sp,sp,-0x48
lw t9,-0x7e2c(gp)
sw s0,0x20(sp)
or s0,a1,zero
sw gp,0x10(sp)
sw s8,0x40(sp)
sw s7,0x3c(sp)
or s7,a2,zero
sw s6,0x38(sp)
or s6,a0,zero
sw s3,0x2c(sp)
or s3,a3,zero
sw ra,0x44(sp)
sw s5,0x34(sp)
sw s4,0x30(sp)
sw s2,0x28(sp)
jalr t9
_sw s1,0x24(sp)
lw s8,0x0(s0)
beq s8,zero,0x00013768
_lw gp,0x10(sp)
or s4,v0,zero
sw zero,0x1c(sp)
addiu s0,s0,0x4
li s5,-0x1
or s2,zero,zero
b 0x0001367c
_or s1,s7,zero
beq s7,zero,0x00013728
_li v0,0x1
jalr t9
_nop
li a0,0x1
lw v1,0x1c(sp)
lw gp,0x10(sp)
movn v1,a0,v0
sw v1,0x1c(sp)
lw s8,0x0(s0)
addiu s2,s2,0x1
addiu s0,s0,0x4
beq s8,zero,0x000136e8
_addu s1,s1,s3
lw t9,-0x7e94(gp)
or a0,s8,zero
or a2,s4,zero
jalr t9
_or a1,s6,zero
or a0,s8,zero
lw gp,0x10(sp)
bne v0,zero,0x00013668
_lw t9,-0x7e2c(gp)
jalr t9
_nop
mul v1,s5,s3
lw gp,0x10(sp)
or a2,s3,zero
or a1,s1,zero
lw t9,-0x7dd8(gp)
beq v0,s4,0x00013730
_addu a0,v1,s7
li v0,-0x1
bne s5,v0,0x00013644
_nop
lw s8,0x0(s0)
or s5,s2,zero
addiu s0,s0,0x4
addiu s2,s2,0x1
bne s8,zero,0x0001367c
_addu s1,s1,s3
lw v1,0x1c(sp)
li v0,-0x2
movn s5,v0,v1
or v0,s5,zero
lw ra,0x44(sp)
lw s8,0x40(sp)
lw s7,0x3c(sp)
lw s6,0x38(sp)
lw s5,0x34(sp)
lw s4,0x30(sp)
lw s3,0x2c(sp)
lw s2,0x28(sp)
lw s1,0x24(sp)
lw s0,0x20(sp)
jr ra
_addiu sp,sp,0x48
b 0x00013668
_sw v0,0x1c(sp)
lw ra,0x44(sp)
or s5,s2,zero
or v0,s5,zero
lw s8,0x40(sp)
lw s7,0x3c(sp)
lw s6,0x38(sp)
lw s5,0x34(sp)
lw s4,0x30(sp)
lw s3,0x2c(sp)
lw s2,0x28(sp)
lw s1,0x24(sp)
lw s0,0x20(sp)
jr ra
_addiu sp,sp,0x48
b 0x000136f4
_li s5,-0x1
(translation_unit "int argmatch(undefined4 param_1,int *param_2,int param_3,int param_4)\n\n{\n  bool bVar1;\n  int iVar2;\n  int iVar3;\n  int iVar4;\n  int iVar5;\n  int iVar6;\n  int iVar7;\n  \n  iVar2 = (*(code *)PTR_strlen_0002c2b4)();\n  iVar7 = *param_2;\n  if (iVar7 == 0) {\n    iVar6 = -1;\n  }\n  else {\n    bVar1 = false;\n    param_2 = param_2 + 1;\n    iVar4 = param_3;\n    iVar3 = 0;\n    iVar6 = -1;\n    do {\n      while (iVar5 = iVar3, iVar3 = (*(code *)PTR_strncmp_0002c24c)(iVar7,param_1,iVar2), iVar3 != 0\n            ) {\nLAB_00013668:\n        iVar7 = *param_2;\n        param_2 = param_2 + 1;\n        iVar4 = iVar4 + param_4;\n        iVar3 = iVar5 + 1;\n        if (iVar7 == 0) goto LAB_000136e8;\n      }\n      iVar7 = (*(code *)PTR_strlen_0002c2b4)(iVar7);\n      if (iVar7 == iVar2) {\n        return iVar5;\n      }\n      if (iVar6 != -1) {\n        if (param_3 == 0) {\n          bVar1 = true;\n        }\n        else {\n          iVar7 = (*(code *)PTR_memcmp_0002c308)(iVar6 * param_4 + param_3,iVar4,param_4);\n          if (iVar7 != 0) {\n            bVar1 = true;\n          }\n        }\n        goto LAB_00013668;\n      }\n      iVar7 = *param_2;\n      param_2 = param_2 + 1;\n      iVar4 = iVar4 + param_4;\n      iVar3 = iVar5 + 1;\n      iVar6 = iVar5;\n    } while (iVar7 != 0);\nLAB_000136e8:\n    if (bVar1) {\n      iVar6 = -2;\n    }\n  }\n  return iVar6;\n}\n\n" (function_definition "int argmatch(undefined4 param_1,int *param_2,int param_3,int param_4)\n\n{\n  bool bVar1;\n  int iVar2;\n  int iVar3;\n  int iVar4;\n  int iVar5;\n  int iVar6;\n  int iVar7;\n  \n  iVar2 = (*(code *)PTR_strlen_0002c2b4)();\n  iVar7 = *param_2;\n  if (iVar7 == 0) {\n    iVar6 = -1;\n  }\n  else {\n    bVar1 = false;\n    param_2 = param_2 + 1;\n    iVar4 = param_3;\n    iVar3 = 0;\n    iVar6 = -1;\n    do {\n      while (iVar5 = iVar3, iVar3 = (*(code *)PTR_strncmp_0002c24c)(iVar7,param_1,iVar2), iVar3 != 0\n            ) {\nLAB_00013668:\n        iVar7 = *param_2;\n        param_2 = param_2 + 1;\n        iVar4 = iVar4 + param_4;\n        iVar3 = iVar5 + 1;\n        if (iVar7 == 0) goto LAB_000136e8;\n      }\n      iVar7 = (*(code *)PTR_strlen_0002c2b4)(iVar7);\n      if (iVar7 == iVar2) {\n        return iVar5;\n      }\n      if (iVar6 != -1) {\n        if (param_3 == 0) {\n          bVar1 = true;\n        }\n        else {\n          iVar7 = (*(code *)PTR_memcmp_0002c308)(iVar6 * param_4 + param_3,iVar4,param_4);\n          if (iVar7 != 0) {\n            bVar1 = true;\n          }\n        }\n        goto LAB_00013668;\n      }\n      iVar7 = *param_2;\n      param_2 = param_2 + 1;\n      iVar4 = iVar4 + param_4;\n      iVar3 = iVar5 + 1;\n      iVar6 = iVar5;\n    } while (iVar7 != 0);\nLAB_000136e8:\n    if (bVar1) {\n      iVar6 = -2;\n    }\n  }\n  return iVar6;\n}" primitive_type (function_declarator "argmatch(undefined4 param_1,int *param_2,int param_3,int param_4)" identifier (parameter_list "(undefined4 param_1,int *param_2,int param_3,int param_4)" ( (parameter_declaration "undefined4 param_1" type_identifier identifier) , (parameter_declaration "int *param_2" primitive_type (pointer_declarator "*param_2" * identifier)) , (parameter_declaration "int param_3" primitive_type identifier) , (parameter_declaration "int param_4" primitive_type identifier) ))) (compound_statement "{\n  bool bVar1;\n  int iVar2;\n  int iVar3;\n  int iVar4;\n  int iVar5;\n  int iVar6;\n  int iVar7;\n  \n  iVar2 = (*(code *)PTR_strlen_0002c2b4)();\n  iVar7 = *param_2;\n  if (iVar7 == 0) {\n    iVar6 = -1;\n  }\n  else {\n    bVar1 = false;\n    param_2 = param_2 + 1;\n    iVar4 = param_3;\n    iVar3 = 0;\n    iVar6 = -1;\n    do {\n      while (iVar5 = iVar3, iVar3 = (*(code *)PTR_strncmp_0002c24c)(iVar7,param_1,iVar2), iVar3 != 0\n            ) {\nLAB_00013668:\n        iVar7 = *param_2;\n        param_2 = param_2 + 1;\n        iVar4 = iVar4 + param_4;\n        iVar3 = iVar5 + 1;\n        if (iVar7 == 0) goto LAB_000136e8;\n      }\n      iVar7 = (*(code *)PTR_strlen_0002c2b4)(iVar7);\n      if (iVar7 == iVar2) {\n        return iVar5;\n      }\n      if (iVar6 != -1) {\n        if (param_3 == 0) {\n          bVar1 = true;\n        }\n        else {\n          iVar7 = (*(code *)PTR_memcmp_0002c308)(iVar6 * param_4 + param_3,iVar4,param_4);\n          if (iVar7 != 0) {\n            bVar1 = true;\n          }\n        }\n        goto LAB_00013668;\n      }\n      iVar7 = *param_2;\n      param_2 = param_2 + 1;\n      iVar4 = iVar4 + param_4;\n      iVar3 = iVar5 + 1;\n      iVar6 = iVar5;\n    } while (iVar7 != 0);\nLAB_000136e8:\n    if (bVar1) {\n      iVar6 = -2;\n    }\n  }\n  return iVar6;\n}" { (declaration "bool bVar1;" primitive_type identifier ;) (declaration "int iVar2;" primitive_type identifier ;) (declaration "int iVar3;" primitive_type identifier ;) (declaration "int iVar4;" primitive_type identifier ;) (declaration "int iVar5;" primitive_type identifier ;) (declaration "int iVar6;" primitive_type identifier ;) (declaration "int iVar7;" primitive_type identifier ;) (expression_statement "iVar2 = (*(code *)PTR_strlen_0002c2b4)();" (assignment_expression "iVar2 = (*(code *)PTR_strlen_0002c2b4)()" identifier = (call_expression "(*(code *)PTR_strlen_0002c2b4)()" (parenthesized_expression "(*(code *)PTR_strlen_0002c2b4)" ( (pointer_expression "*(code *)PTR_strlen_0002c2b4" * (cast_expression "(code *)PTR_strlen_0002c2b4" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "()" ( )))) ;) (expression_statement "iVar7 = *param_2;" (assignment_expression "iVar7 = *param_2" identifier = (pointer_expression "*param_2" * identifier)) ;) (if_statement "if (iVar7 == 0) {\n    iVar6 = -1;\n  }\n  else {\n    bVar1 = false;\n    param_2 = param_2 + 1;\n    iVar4 = param_3;\n    iVar3 = 0;\n    iVar6 = -1;\n    do {\n      while (iVar5 = iVar3, iVar3 = (*(code *)PTR_strncmp_0002c24c)(iVar7,param_1,iVar2), iVar3 != 0\n            ) {\nLAB_00013668:\n        iVar7 = *param_2;\n        param_2 = param_2 + 1;\n        iVar4 = iVar4 + param_4;\n        iVar3 = iVar5 + 1;\n        if (iVar7 == 0) goto LAB_000136e8;\n      }\n      iVar7 = (*(code *)PTR_strlen_0002c2b4)(iVar7);\n      if (iVar7 == iVar2) {\n        return iVar5;\n      }\n      if (iVar6 != -1) {\n        if (param_3 == 0) {\n          bVar1 = true;\n        }\n        else {\n          iVar7 = (*(code *)PTR_memcmp_0002c308)(iVar6 * param_4 + param_3,iVar4,param_4);\n          if (iVar7 != 0) {\n            bVar1 = true;\n          }\n        }\n        goto LAB_00013668;\n      }\n      iVar7 = *param_2;\n      param_2 = param_2 + 1;\n      iVar4 = iVar4 + param_4;\n      iVar3 = iVar5 + 1;\n      iVar6 = iVar5;\n    } while (iVar7 != 0);\nLAB_000136e8:\n    if (bVar1) {\n      iVar6 = -2;\n    }\n  }" if (parenthesized_expression "(iVar7 == 0)" ( (binary_expression "iVar7 == 0" identifier == number_literal) )) (compound_statement "{\n    iVar6 = -1;\n  }" { (expression_statement "iVar6 = -1;" (assignment_expression "iVar6 = -1" identifier = number_literal) ;) }) (else_clause "else {\n    bVar1 = false;\n    param_2 = param_2 + 1;\n    iVar4 = param_3;\n    iVar3 = 0;\n    iVar6 = -1;\n    do {\n      while (iVar5 = iVar3, iVar3 = (*(code *)PTR_strncmp_0002c24c)(iVar7,param_1,iVar2), iVar3 != 0\n            ) {\nLAB_00013668:\n        iVar7 = *param_2;\n        param_2 = param_2 + 1;\n        iVar4 = iVar4 + param_4;\n        iVar3 = iVar5 + 1;\n        if (iVar7 == 0) goto LAB_000136e8;\n      }\n      iVar7 = (*(code *)PTR_strlen_0002c2b4)(iVar7);\n      if (iVar7 == iVar2) {\n        return iVar5;\n      }\n      if (iVar6 != -1) {\n        if (param_3 == 0) {\n          bVar1 = true;\n        }\n        else {\n          iVar7 = (*(code *)PTR_memcmp_0002c308)(iVar6 * param_4 + param_3,iVar4,param_4);\n          if (iVar7 != 0) {\n            bVar1 = true;\n          }\n        }\n        goto LAB_00013668;\n      }\n      iVar7 = *param_2;\n      param_2 = param_2 + 1;\n      iVar4 = iVar4 + param_4;\n      iVar3 = iVar5 + 1;\n      iVar6 = iVar5;\n    } while (iVar7 != 0);\nLAB_000136e8:\n    if (bVar1) {\n      iVar6 = -2;\n    }\n  }" else (compound_statement "{\n    bVar1 = false;\n    param_2 = param_2 + 1;\n    iVar4 = param_3;\n    iVar3 = 0;\n    iVar6 = -1;\n    do {\n      while (iVar5 = iVar3, iVar3 = (*(code *)PTR_strncmp_0002c24c)(iVar7,param_1,iVar2), iVar3 != 0\n            ) {\nLAB_00013668:\n        iVar7 = *param_2;\n        param_2 = param_2 + 1;\n        iVar4 = iVar4 + param_4;\n        iVar3 = iVar5 + 1;\n        if (iVar7 == 0) goto LAB_000136e8;\n      }\n      iVar7 = (*(code *)PTR_strlen_0002c2b4)(iVar7);\n      if (iVar7 == iVar2) {\n        return iVar5;\n      }\n      if (iVar6 != -1) {\n        if (param_3 == 0) {\n          bVar1 = true;\n        }\n        else {\n          iVar7 = (*(code *)PTR_memcmp_0002c308)(iVar6 * param_4 + param_3,iVar4,param_4);\n          if (iVar7 != 0) {\n            bVar1 = true;\n          }\n        }\n        goto LAB_00013668;\n      }\n      iVar7 = *param_2;\n      param_2 = param_2 + 1;\n      iVar4 = iVar4 + param_4;\n      iVar3 = iVar5 + 1;\n      iVar6 = iVar5;\n    } while (iVar7 != 0);\nLAB_000136e8:\n    if (bVar1) {\n      iVar6 = -2;\n    }\n  }" { (expression_statement "bVar1 = false;" (assignment_expression "bVar1 = false" identifier = false) ;) (expression_statement "param_2 = param_2 + 1;" (assignment_expression "param_2 = param_2 + 1" identifier = (binary_expression "param_2 + 1" identifier + number_literal)) ;) (expression_statement "iVar4 = param_3;" (assignment_expression "iVar4 = param_3" identifier = identifier) ;) (expression_statement "iVar3 = 0;" (assignment_expression "iVar3 = 0" identifier = number_literal) ;) (expression_statement "iVar6 = -1;" (assignment_expression "iVar6 = -1" identifier = number_literal) ;) (do_statement "do {\n      while (iVar5 = iVar3, iVar3 = (*(code *)PTR_strncmp_0002c24c)(iVar7,param_1,iVar2), iVar3 != 0\n            ) {\nLAB_00013668:\n        iVar7 = *param_2;\n        param_2 = param_2 + 1;\n        iVar4 = iVar4 + param_4;\n        iVar3 = iVar5 + 1;\n        if (iVar7 == 0) goto LAB_000136e8;\n      }\n      iVar7 = (*(code *)PTR_strlen_0002c2b4)(iVar7);\n      if (iVar7 == iVar2) {\n        return iVar5;\n      }\n      if (iVar6 != -1) {\n        if (param_3 == 0) {\n          bVar1 = true;\n        }\n        else {\n          iVar7 = (*(code *)PTR_memcmp_0002c308)(iVar6 * param_4 + param_3,iVar4,param_4);\n          if (iVar7 != 0) {\n            bVar1 = true;\n          }\n        }\n        goto LAB_00013668;\n      }\n      iVar7 = *param_2;\n      param_2 = param_2 + 1;\n      iVar4 = iVar4 + param_4;\n      iVar3 = iVar5 + 1;\n      iVar6 = iVar5;\n    } while (iVar7 != 0);" do (compound_statement "{\n      while (iVar5 = iVar3, iVar3 = (*(code *)PTR_strncmp_0002c24c)(iVar7,param_1,iVar2), iVar3 != 0\n            ) {\nLAB_00013668:\n        iVar7 = *param_2;\n        param_2 = param_2 + 1;\n        iVar4 = iVar4 + param_4;\n        iVar3 = iVar5 + 1;\n        if (iVar7 == 0) goto LAB_000136e8;\n      }\n      iVar7 = (*(code *)PTR_strlen_0002c2b4)(iVar7);\n      if (iVar7 == iVar2) {\n        return iVar5;\n      }\n      if (iVar6 != -1) {\n        if (param_3 == 0) {\n          bVar1 = true;\n        }\n        else {\n          iVar7 = (*(code *)PTR_memcmp_0002c308)(iVar6 * param_4 + param_3,iVar4,param_4);\n          if (iVar7 != 0) {\n            bVar1 = true;\n          }\n        }\n        goto LAB_00013668;\n      }\n      iVar7 = *param_2;\n      param_2 = param_2 + 1;\n      iVar4 = iVar4 + param_4;\n      iVar3 = iVar5 + 1;\n      iVar6 = iVar5;\n    }" { (while_statement "while (iVar5 = iVar3, iVar3 = (*(code *)PTR_strncmp_0002c24c)(iVar7,param_1,iVar2), iVar3 != 0\n            ) {\nLAB_00013668:\n        iVar7 = *param_2;\n        param_2 = param_2 + 1;\n        iVar4 = iVar4 + param_4;\n        iVar3 = iVar5 + 1;\n        if (iVar7 == 0) goto LAB_000136e8;\n      }" while (parenthesized_expression "(iVar5 = iVar3, iVar3 = (*(code *)PTR_strncmp_0002c24c)(iVar7,param_1,iVar2), iVar3 != 0\n            )" ( (comma_expression "iVar5 = iVar3, iVar3 = (*(code *)PTR_strncmp_0002c24c)(iVar7,param_1,iVar2), iVar3 != 0" (assignment_expression "iVar5 = iVar3" identifier = identifier) , (comma_expression "iVar3 = (*(code *)PTR_strncmp_0002c24c)(iVar7,param_1,iVar2), iVar3 != 0" (assignment_expression "iVar3 = (*(code *)PTR_strncmp_0002c24c)(iVar7,param_1,iVar2)" identifier = (call_expression "(*(code *)PTR_strncmp_0002c24c)(iVar7,param_1,iVar2)" (parenthesized_expression "(*(code *)PTR_strncmp_0002c24c)" ( (pointer_expression "*(code *)PTR_strncmp_0002c24c" * (cast_expression "(code *)PTR_strncmp_0002c24c" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(iVar7,param_1,iVar2)" ( identifier , identifier , identifier )))) , (binary_expression "iVar3 != 0" identifier != number_literal))) )) (compound_statement "{\nLAB_00013668:\n        iVar7 = *param_2;\n        param_2 = param_2 + 1;\n        iVar4 = iVar4 + param_4;\n        iVar3 = iVar5 + 1;\n        if (iVar7 == 0) goto LAB_000136e8;\n      }" { (labeled_statement "LAB_00013668:\n        iVar7 = *param_2;" statement_identifier : (expression_statement "iVar7 = *param_2;" (assignment_expression "iVar7 = *param_2" identifier = (pointer_expression "*param_2" * identifier)) ;)) (expression_statement "param_2 = param_2 + 1;" (assignment_expression "param_2 = param_2 + 1" identifier = (binary_expression "param_2 + 1" identifier + number_literal)) ;) (expression_statement "iVar4 = iVar4 + param_4;" (assignment_expression "iVar4 = iVar4 + param_4" identifier = (binary_expression "iVar4 + param_4" identifier + identifier)) ;) (expression_statement "iVar3 = iVar5 + 1;" (assignment_expression "iVar3 = iVar5 + 1" identifier = (binary_expression "iVar5 + 1" identifier + number_literal)) ;) (if_statement "if (iVar7 == 0) goto LAB_000136e8;" if (parenthesized_expression "(iVar7 == 0)" ( (binary_expression "iVar7 == 0" identifier == number_literal) )) (goto_statement "goto LAB_000136e8;" goto statement_identifier ;)) })) (expression_statement "iVar7 = (*(code *)PTR_strlen_0002c2b4)(iVar7);" (assignment_expression "iVar7 = (*(code *)PTR_strlen_0002c2b4)(iVar7)" identifier = (call_expression "(*(code *)PTR_strlen_0002c2b4)(iVar7)" (parenthesized_expression "(*(code *)PTR_strlen_0002c2b4)" ( (pointer_expression "*(code *)PTR_strlen_0002c2b4" * (cast_expression "(code *)PTR_strlen_0002c2b4" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(iVar7)" ( identifier )))) ;) (if_statement "if (iVar7 == iVar2) {\n        return iVar5;\n      }" if (parenthesized_expression "(iVar7 == iVar2)" ( (binary_expression "iVar7 == iVar2" identifier == identifier) )) (compound_statement "{\n        return iVar5;\n      }" { (return_statement "return iVar5;" return identifier ;) })) (if_statement "if (iVar6 != -1) {\n        if (param_3 == 0) {\n          bVar1 = true;\n        }\n        else {\n          iVar7 = (*(code *)PTR_memcmp_0002c308)(iVar6 * param_4 + param_3,iVar4,param_4);\n          if (iVar7 != 0) {\n            bVar1 = true;\n          }\n        }\n        goto LAB_00013668;\n      }" if (parenthesized_expression "(iVar6 != -1)" ( (binary_expression "iVar6 != -1" identifier != number_literal) )) (compound_statement "{\n        if (param_3 == 0) {\n          bVar1 = true;\n        }\n        else {\n          iVar7 = (*(code *)PTR_memcmp_0002c308)(iVar6 * param_4 + param_3,iVar4,param_4);\n          if (iVar7 != 0) {\n            bVar1 = true;\n          }\n        }\n        goto LAB_00013668;\n      }" { (if_statement "if (param_3 == 0) {\n          bVar1 = true;\n        }\n        else {\n          iVar7 = (*(code *)PTR_memcmp_0002c308)(iVar6 * param_4 + param_3,iVar4,param_4);\n          if (iVar7 != 0) {\n            bVar1 = true;\n          }\n        }" if (parenthesized_expression "(param_3 == 0)" ( (binary_expression "param_3 == 0" identifier == number_literal) )) (compound_statement "{\n          bVar1 = true;\n        }" { (expression_statement "bVar1 = true;" (assignment_expression "bVar1 = true" identifier = true) ;) }) (else_clause "else {\n          iVar7 = (*(code *)PTR_memcmp_0002c308)(iVar6 * param_4 + param_3,iVar4,param_4);\n          if (iVar7 != 0) {\n            bVar1 = true;\n          }\n        }" else (compound_statement "{\n          iVar7 = (*(code *)PTR_memcmp_0002c308)(iVar6 * param_4 + param_3,iVar4,param_4);\n          if (iVar7 != 0) {\n            bVar1 = true;\n          }\n        }" { (expression_statement "iVar7 = (*(code *)PTR_memcmp_0002c308)(iVar6 * param_4 + param_3,iVar4,param_4);" (assignment_expression "iVar7 = (*(code *)PTR_memcmp_0002c308)(iVar6 * param_4 + param_3,iVar4,param_4)" identifier = (call_expression "(*(code *)PTR_memcmp_0002c308)(iVar6 * param_4 + param_3,iVar4,param_4)" (parenthesized_expression "(*(code *)PTR_memcmp_0002c308)" ( (pointer_expression "*(code *)PTR_memcmp_0002c308" * (cast_expression "(code *)PTR_memcmp_0002c308" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(iVar6 * param_4 + param_3,iVar4,param_4)" ( (binary_expression "iVar6 * param_4 + param_3" (binary_expression "iVar6 * param_4" identifier * identifier) + identifier) , identifier , identifier )))) ;) (if_statement "if (iVar7 != 0) {\n            bVar1 = true;\n          }" if (parenthesized_expression "(iVar7 != 0)" ( (binary_expression "iVar7 != 0" identifier != number_literal) )) (compound_statement "{\n            bVar1 = true;\n          }" { (expression_statement "bVar1 = true;" (assignment_expression "bVar1 = true" identifier = true) ;) })) }))) (goto_statement "goto LAB_00013668;" goto statement_identifier ;) })) (expression_statement "iVar7 = *param_2;" (assignment_expression "iVar7 = *param_2" identifier = (pointer_expression "*param_2" * identifier)) ;) (expression_statement "param_2 = param_2 + 1;" (assignment_expression "param_2 = param_2 + 1" identifier = (binary_expression "param_2 + 1" identifier + number_literal)) ;) (expression_statement "iVar4 = iVar4 + param_4;" (assignment_expression "iVar4 = iVar4 + param_4" identifier = (binary_expression "iVar4 + param_4" identifier + identifier)) ;) (expression_statement "iVar3 = iVar5 + 1;" (assignment_expression "iVar3 = iVar5 + 1" identifier = (binary_expression "iVar5 + 1" identifier + number_literal)) ;) (expression_statement "iVar6 = iVar5;" (assignment_expression "iVar6 = iVar5" identifier = identifier) ;) }) while (parenthesized_expression "(iVar7 != 0)" ( (binary_expression "iVar7 != 0" identifier != number_literal) )) ;) (labeled_statement "LAB_000136e8:\n    if (bVar1) {\n      iVar6 = -2;\n    }" statement_identifier : (if_statement "if (bVar1) {\n      iVar6 = -2;\n    }" if (parenthesized_expression "(bVar1)" ( identifier )) (compound_statement "{\n      iVar6 = -2;\n    }" { (expression_statement "iVar6 = -2;" (assignment_expression "iVar6 = -2" identifier = number_literal) ;) }))) }))) (return_statement "return iVar6;" return identifier ;) })))
(translation_unit "ptrdiff_t argmatch(char *arg,char **arglist,char *vallist,size_t valsize)\n\n{\n  bool bVar1;\n  int iVar2;\n  int iVar3;\n  char **ppcVar4;\n  char *pcVar5;\n  int iVar6;\n  int iVar7;\n  char *pcVar8;\n  \n  iVar2 = (*(code *)PTR_strlen_0002c2b4)();\n  pcVar8 = *arglist;\n  if (pcVar8 == (char *)0x0) {\n    iVar7 = -1;\n  }\n  else {\n    bVar1 = false;\n    ppcVar4 = arglist + 1;\n    pcVar5 = vallist;\n    iVar3 = 0;\n    iVar7 = -1;\n    do {\n      while (iVar6 = iVar3, iVar3 = (*(code *)PTR_strncmp_0002c24c)(pcVar8,arg,iVar2), iVar3 != 0) {\nLAB_00013668:\n        pcVar8 = *ppcVar4;\n        ppcVar4 = ppcVar4 + 1;\n        pcVar5 = pcVar5 + valsize;\n        iVar3 = iVar6 + 1;\n        if (pcVar8 == (char *)0x0) goto LAB_000136e8;\n      }\n      iVar3 = (*(code *)PTR_strlen_0002c2b4)(pcVar8);\n      if (iVar3 == iVar2) {\n        return iVar6;\n      }\n      if (iVar7 != -1) {\n        if (vallist == (char *)0x0) {\n          bVar1 = true;\n        }\n        else {\n          iVar3 = (*(code *)PTR_memcmp_0002c308)(vallist + iVar7 * valsize,pcVar5,valsize);\n          if (iVar3 != 0) {\n            bVar1 = true;\n          }\n        }\n        goto LAB_00013668;\n      }\n      pcVar8 = *ppcVar4;\n      ppcVar4 = ppcVar4 + 1;\n      pcVar5 = pcVar5 + valsize;\n      iVar3 = iVar6 + 1;\n      iVar7 = iVar6;\n    } while (pcVar8 != (char *)0x0);\nLAB_000136e8:\n    if (bVar1) {\n      iVar7 = -2;\n    }\n  }\n  return iVar7;\n}\n\n" (function_definition "ptrdiff_t argmatch(char *arg,char **arglist,char *vallist,size_t valsize)\n\n{\n  bool bVar1;\n  int iVar2;\n  int iVar3;\n  char **ppcVar4;\n  char *pcVar5;\n  int iVar6;\n  int iVar7;\n  char *pcVar8;\n  \n  iVar2 = (*(code *)PTR_strlen_0002c2b4)();\n  pcVar8 = *arglist;\n  if (pcVar8 == (char *)0x0) {\n    iVar7 = -1;\n  }\n  else {\n    bVar1 = false;\n    ppcVar4 = arglist + 1;\n    pcVar5 = vallist;\n    iVar3 = 0;\n    iVar7 = -1;\n    do {\n      while (iVar6 = iVar3, iVar3 = (*(code *)PTR_strncmp_0002c24c)(pcVar8,arg,iVar2), iVar3 != 0) {\nLAB_00013668:\n        pcVar8 = *ppcVar4;\n        ppcVar4 = ppcVar4 + 1;\n        pcVar5 = pcVar5 + valsize;\n        iVar3 = iVar6 + 1;\n        if (pcVar8 == (char *)0x0) goto LAB_000136e8;\n      }\n      iVar3 = (*(code *)PTR_strlen_0002c2b4)(pcVar8);\n      if (iVar3 == iVar2) {\n        return iVar6;\n      }\n      if (iVar7 != -1) {\n        if (vallist == (char *)0x0) {\n          bVar1 = true;\n        }\n        else {\n          iVar3 = (*(code *)PTR_memcmp_0002c308)(vallist + iVar7 * valsize,pcVar5,valsize);\n          if (iVar3 != 0) {\n            bVar1 = true;\n          }\n        }\n        goto LAB_00013668;\n      }\n      pcVar8 = *ppcVar4;\n      ppcVar4 = ppcVar4 + 1;\n      pcVar5 = pcVar5 + valsize;\n      iVar3 = iVar6 + 1;\n      iVar7 = iVar6;\n    } while (pcVar8 != (char *)0x0);\nLAB_000136e8:\n    if (bVar1) {\n      iVar7 = -2;\n    }\n  }\n  return iVar7;\n}" primitive_type (function_declarator "argmatch(char *arg,char **arglist,char *vallist,size_t valsize)" identifier (parameter_list "(char *arg,char **arglist,char *vallist,size_t valsize)" ( (parameter_declaration "char *arg" primitive_type (pointer_declarator "*arg" * identifier)) , (parameter_declaration "char **arglist" primitive_type (pointer_declarator "**arglist" * (pointer_declarator "*arglist" * identifier))) , (parameter_declaration "char *vallist" primitive_type (pointer_declarator "*vallist" * identifier)) , (parameter_declaration "size_t valsize" primitive_type identifier) ))) (compound_statement "{\n  bool bVar1;\n  int iVar2;\n  int iVar3;\n  char **ppcVar4;\n  char *pcVar5;\n  int iVar6;\n  int iVar7;\n  char *pcVar8;\n  \n  iVar2 = (*(code *)PTR_strlen_0002c2b4)();\n  pcVar8 = *arglist;\n  if (pcVar8 == (char *)0x0) {\n    iVar7 = -1;\n  }\n  else {\n    bVar1 = false;\n    ppcVar4 = arglist + 1;\n    pcVar5 = vallist;\n    iVar3 = 0;\n    iVar7 = -1;\n    do {\n      while (iVar6 = iVar3, iVar3 = (*(code *)PTR_strncmp_0002c24c)(pcVar8,arg,iVar2), iVar3 != 0) {\nLAB_00013668:\n        pcVar8 = *ppcVar4;\n        ppcVar4 = ppcVar4 + 1;\n        pcVar5 = pcVar5 + valsize;\n        iVar3 = iVar6 + 1;\n        if (pcVar8 == (char *)0x0) goto LAB_000136e8;\n      }\n      iVar3 = (*(code *)PTR_strlen_0002c2b4)(pcVar8);\n      if (iVar3 == iVar2) {\n        return iVar6;\n      }\n      if (iVar7 != -1) {\n        if (vallist == (char *)0x0) {\n          bVar1 = true;\n        }\n        else {\n          iVar3 = (*(code *)PTR_memcmp_0002c308)(vallist + iVar7 * valsize,pcVar5,valsize);\n          if (iVar3 != 0) {\n            bVar1 = true;\n          }\n        }\n        goto LAB_00013668;\n      }\n      pcVar8 = *ppcVar4;\n      ppcVar4 = ppcVar4 + 1;\n      pcVar5 = pcVar5 + valsize;\n      iVar3 = iVar6 + 1;\n      iVar7 = iVar6;\n    } while (pcVar8 != (char *)0x0);\nLAB_000136e8:\n    if (bVar1) {\n      iVar7 = -2;\n    }\n  }\n  return iVar7;\n}" { (declaration "bool bVar1;" primitive_type identifier ;) (declaration "int iVar2;" primitive_type identifier ;) (declaration "int iVar3;" primitive_type identifier ;) (declaration "char **ppcVar4;" primitive_type (pointer_declarator "**ppcVar4" * (pointer_declarator "*ppcVar4" * identifier)) ;) (declaration "char *pcVar5;" primitive_type (pointer_declarator "*pcVar5" * identifier) ;) (declaration "int iVar6;" primitive_type identifier ;) (declaration "int iVar7;" primitive_type identifier ;) (declaration "char *pcVar8;" primitive_type (pointer_declarator "*pcVar8" * identifier) ;) (expression_statement "iVar2 = (*(code *)PTR_strlen_0002c2b4)();" (assignment_expression "iVar2 = (*(code *)PTR_strlen_0002c2b4)()" identifier = (call_expression "(*(code *)PTR_strlen_0002c2b4)()" (parenthesized_expression "(*(code *)PTR_strlen_0002c2b4)" ( (pointer_expression "*(code *)PTR_strlen_0002c2b4" * (cast_expression "(code *)PTR_strlen_0002c2b4" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "()" ( )))) ;) (expression_statement "pcVar8 = *arglist;" (assignment_expression "pcVar8 = *arglist" identifier = (pointer_expression "*arglist" * identifier)) ;) (if_statement "if (pcVar8 == (char *)0x0) {\n    iVar7 = -1;\n  }\n  else {\n    bVar1 = false;\n    ppcVar4 = arglist + 1;\n    pcVar5 = vallist;\n    iVar3 = 0;\n    iVar7 = -1;\n    do {\n      while (iVar6 = iVar3, iVar3 = (*(code *)PTR_strncmp_0002c24c)(pcVar8,arg,iVar2), iVar3 != 0) {\nLAB_00013668:\n        pcVar8 = *ppcVar4;\n        ppcVar4 = ppcVar4 + 1;\n        pcVar5 = pcVar5 + valsize;\n        iVar3 = iVar6 + 1;\n        if (pcVar8 == (char *)0x0) goto LAB_000136e8;\n      }\n      iVar3 = (*(code *)PTR_strlen_0002c2b4)(pcVar8);\n      if (iVar3 == iVar2) {\n        return iVar6;\n      }\n      if (iVar7 != -1) {\n        if (vallist == (char *)0x0) {\n          bVar1 = true;\n        }\n        else {\n          iVar3 = (*(code *)PTR_memcmp_0002c308)(vallist + iVar7 * valsize,pcVar5,valsize);\n          if (iVar3 != 0) {\n            bVar1 = true;\n          }\n        }\n        goto LAB_00013668;\n      }\n      pcVar8 = *ppcVar4;\n      ppcVar4 = ppcVar4 + 1;\n      pcVar5 = pcVar5 + valsize;\n      iVar3 = iVar6 + 1;\n      iVar7 = iVar6;\n    } while (pcVar8 != (char *)0x0);\nLAB_000136e8:\n    if (bVar1) {\n      iVar7 = -2;\n    }\n  }" if (parenthesized_expression "(pcVar8 == (char *)0x0)" ( (binary_expression "pcVar8 == (char *)0x0" identifier == (cast_expression "(char *)0x0" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n    iVar7 = -1;\n  }" { (expression_statement "iVar7 = -1;" (assignment_expression "iVar7 = -1" identifier = number_literal) ;) }) (else_clause "else {\n    bVar1 = false;\n    ppcVar4 = arglist + 1;\n    pcVar5 = vallist;\n    iVar3 = 0;\n    iVar7 = -1;\n    do {\n      while (iVar6 = iVar3, iVar3 = (*(code *)PTR_strncmp_0002c24c)(pcVar8,arg,iVar2), iVar3 != 0) {\nLAB_00013668:\n        pcVar8 = *ppcVar4;\n        ppcVar4 = ppcVar4 + 1;\n        pcVar5 = pcVar5 + valsize;\n        iVar3 = iVar6 + 1;\n        if (pcVar8 == (char *)0x0) goto LAB_000136e8;\n      }\n      iVar3 = (*(code *)PTR_strlen_0002c2b4)(pcVar8);\n      if (iVar3 == iVar2) {\n        return iVar6;\n      }\n      if (iVar7 != -1) {\n        if (vallist == (char *)0x0) {\n          bVar1 = true;\n        }\n        else {\n          iVar3 = (*(code *)PTR_memcmp_0002c308)(vallist + iVar7 * valsize,pcVar5,valsize);\n          if (iVar3 != 0) {\n            bVar1 = true;\n          }\n        }\n        goto LAB_00013668;\n      }\n      pcVar8 = *ppcVar4;\n      ppcVar4 = ppcVar4 + 1;\n      pcVar5 = pcVar5 + valsize;\n      iVar3 = iVar6 + 1;\n      iVar7 = iVar6;\n    } while (pcVar8 != (char *)0x0);\nLAB_000136e8:\n    if (bVar1) {\n      iVar7 = -2;\n    }\n  }" else (compound_statement "{\n    bVar1 = false;\n    ppcVar4 = arglist + 1;\n    pcVar5 = vallist;\n    iVar3 = 0;\n    iVar7 = -1;\n    do {\n      while (iVar6 = iVar3, iVar3 = (*(code *)PTR_strncmp_0002c24c)(pcVar8,arg,iVar2), iVar3 != 0) {\nLAB_00013668:\n        pcVar8 = *ppcVar4;\n        ppcVar4 = ppcVar4 + 1;\n        pcVar5 = pcVar5 + valsize;\n        iVar3 = iVar6 + 1;\n        if (pcVar8 == (char *)0x0) goto LAB_000136e8;\n      }\n      iVar3 = (*(code *)PTR_strlen_0002c2b4)(pcVar8);\n      if (iVar3 == iVar2) {\n        return iVar6;\n      }\n      if (iVar7 != -1) {\n        if (vallist == (char *)0x0) {\n          bVar1 = true;\n        }\n        else {\n          iVar3 = (*(code *)PTR_memcmp_0002c308)(vallist + iVar7 * valsize,pcVar5,valsize);\n          if (iVar3 != 0) {\n            bVar1 = true;\n          }\n        }\n        goto LAB_00013668;\n      }\n      pcVar8 = *ppcVar4;\n      ppcVar4 = ppcVar4 + 1;\n      pcVar5 = pcVar5 + valsize;\n      iVar3 = iVar6 + 1;\n      iVar7 = iVar6;\n    } while (pcVar8 != (char *)0x0);\nLAB_000136e8:\n    if (bVar1) {\n      iVar7 = -2;\n    }\n  }" { (expression_statement "bVar1 = false;" (assignment_expression "bVar1 = false" identifier = false) ;) (expression_statement "ppcVar4 = arglist + 1;" (assignment_expression "ppcVar4 = arglist + 1" identifier = (binary_expression "arglist + 1" identifier + number_literal)) ;) (expression_statement "pcVar5 = vallist;" (assignment_expression "pcVar5 = vallist" identifier = identifier) ;) (expression_statement "iVar3 = 0;" (assignment_expression "iVar3 = 0" identifier = number_literal) ;) (expression_statement "iVar7 = -1;" (assignment_expression "iVar7 = -1" identifier = number_literal) ;) (do_statement "do {\n      while (iVar6 = iVar3, iVar3 = (*(code *)PTR_strncmp_0002c24c)(pcVar8,arg,iVar2), iVar3 != 0) {\nLAB_00013668:\n        pcVar8 = *ppcVar4;\n        ppcVar4 = ppcVar4 + 1;\n        pcVar5 = pcVar5 + valsize;\n        iVar3 = iVar6 + 1;\n        if (pcVar8 == (char *)0x0) goto LAB_000136e8;\n      }\n      iVar3 = (*(code *)PTR_strlen_0002c2b4)(pcVar8);\n      if (iVar3 == iVar2) {\n        return iVar6;\n      }\n      if (iVar7 != -1) {\n        if (vallist == (char *)0x0) {\n          bVar1 = true;\n        }\n        else {\n          iVar3 = (*(code *)PTR_memcmp_0002c308)(vallist + iVar7 * valsize,pcVar5,valsize);\n          if (iVar3 != 0) {\n            bVar1 = true;\n          }\n        }\n        goto LAB_00013668;\n      }\n      pcVar8 = *ppcVar4;\n      ppcVar4 = ppcVar4 + 1;\n      pcVar5 = pcVar5 + valsize;\n      iVar3 = iVar6 + 1;\n      iVar7 = iVar6;\n    } while (pcVar8 != (char *)0x0);" do (compound_statement "{\n      while (iVar6 = iVar3, iVar3 = (*(code *)PTR_strncmp_0002c24c)(pcVar8,arg,iVar2), iVar3 != 0) {\nLAB_00013668:\n        pcVar8 = *ppcVar4;\n        ppcVar4 = ppcVar4 + 1;\n        pcVar5 = pcVar5 + valsize;\n        iVar3 = iVar6 + 1;\n        if (pcVar8 == (char *)0x0) goto LAB_000136e8;\n      }\n      iVar3 = (*(code *)PTR_strlen_0002c2b4)(pcVar8);\n      if (iVar3 == iVar2) {\n        return iVar6;\n      }\n      if (iVar7 != -1) {\n        if (vallist == (char *)0x0) {\n          bVar1 = true;\n        }\n        else {\n          iVar3 = (*(code *)PTR_memcmp_0002c308)(vallist + iVar7 * valsize,pcVar5,valsize);\n          if (iVar3 != 0) {\n            bVar1 = true;\n          }\n        }\n        goto LAB_00013668;\n      }\n      pcVar8 = *ppcVar4;\n      ppcVar4 = ppcVar4 + 1;\n      pcVar5 = pcVar5 + valsize;\n      iVar3 = iVar6 + 1;\n      iVar7 = iVar6;\n    }" { (while_statement "while (iVar6 = iVar3, iVar3 = (*(code *)PTR_strncmp_0002c24c)(pcVar8,arg,iVar2), iVar3 != 0) {\nLAB_00013668:\n        pcVar8 = *ppcVar4;\n        ppcVar4 = ppcVar4 + 1;\n        pcVar5 = pcVar5 + valsize;\n        iVar3 = iVar6 + 1;\n        if (pcVar8 == (char *)0x0) goto LAB_000136e8;\n      }" while (parenthesized_expression "(iVar6 = iVar3, iVar3 = (*(code *)PTR_strncmp_0002c24c)(pcVar8,arg,iVar2), iVar3 != 0)" ( (comma_expression "iVar6 = iVar3, iVar3 = (*(code *)PTR_strncmp_0002c24c)(pcVar8,arg,iVar2), iVar3 != 0" (assignment_expression "iVar6 = iVar3" identifier = identifier) , (comma_expression "iVar3 = (*(code *)PTR_strncmp_0002c24c)(pcVar8,arg,iVar2), iVar3 != 0" (assignment_expression "iVar3 = (*(code *)PTR_strncmp_0002c24c)(pcVar8,arg,iVar2)" identifier = (call_expression "(*(code *)PTR_strncmp_0002c24c)(pcVar8,arg,iVar2)" (parenthesized_expression "(*(code *)PTR_strncmp_0002c24c)" ( (pointer_expression "*(code *)PTR_strncmp_0002c24c" * (cast_expression "(code *)PTR_strncmp_0002c24c" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(pcVar8,arg,iVar2)" ( identifier , identifier , identifier )))) , (binary_expression "iVar3 != 0" identifier != number_literal))) )) (compound_statement "{\nLAB_00013668:\n        pcVar8 = *ppcVar4;\n        ppcVar4 = ppcVar4 + 1;\n        pcVar5 = pcVar5 + valsize;\n        iVar3 = iVar6 + 1;\n        if (pcVar8 == (char *)0x0) goto LAB_000136e8;\n      }" { (labeled_statement "LAB_00013668:\n        pcVar8 = *ppcVar4;" statement_identifier : (expression_statement "pcVar8 = *ppcVar4;" (assignment_expression "pcVar8 = *ppcVar4" identifier = (pointer_expression "*ppcVar4" * identifier)) ;)) (expression_statement "ppcVar4 = ppcVar4 + 1;" (assignment_expression "ppcVar4 = ppcVar4 + 1" identifier = (binary_expression "ppcVar4 + 1" identifier + number_literal)) ;) (expression_statement "pcVar5 = pcVar5 + valsize;" (assignment_expression "pcVar5 = pcVar5 + valsize" identifier = (binary_expression "pcVar5 + valsize" identifier + identifier)) ;) (expression_statement "iVar3 = iVar6 + 1;" (assignment_expression "iVar3 = iVar6 + 1" identifier = (binary_expression "iVar6 + 1" identifier + number_literal)) ;) (if_statement "if (pcVar8 == (char *)0x0) goto LAB_000136e8;" if (parenthesized_expression "(pcVar8 == (char *)0x0)" ( (binary_expression "pcVar8 == (char *)0x0" identifier == (cast_expression "(char *)0x0" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) (goto_statement "goto LAB_000136e8;" goto statement_identifier ;)) })) (expression_statement "iVar3 = (*(code *)PTR_strlen_0002c2b4)(pcVar8);" (assignment_expression "iVar3 = (*(code *)PTR_strlen_0002c2b4)(pcVar8)" identifier = (call_expression "(*(code *)PTR_strlen_0002c2b4)(pcVar8)" (parenthesized_expression "(*(code *)PTR_strlen_0002c2b4)" ( (pointer_expression "*(code *)PTR_strlen_0002c2b4" * (cast_expression "(code *)PTR_strlen_0002c2b4" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(pcVar8)" ( identifier )))) ;) (if_statement "if (iVar3 == iVar2) {\n        return iVar6;\n      }" if (parenthesized_expression "(iVar3 == iVar2)" ( (binary_expression "iVar3 == iVar2" identifier == identifier) )) (compound_statement "{\n        return iVar6;\n      }" { (return_statement "return iVar6;" return identifier ;) })) (if_statement "if (iVar7 != -1) {\n        if (vallist == (char *)0x0) {\n          bVar1 = true;\n        }\n        else {\n          iVar3 = (*(code *)PTR_memcmp_0002c308)(vallist + iVar7 * valsize,pcVar5,valsize);\n          if (iVar3 != 0) {\n            bVar1 = true;\n          }\n        }\n        goto LAB_00013668;\n      }" if (parenthesized_expression "(iVar7 != -1)" ( (binary_expression "iVar7 != -1" identifier != number_literal) )) (compound_statement "{\n        if (vallist == (char *)0x0) {\n          bVar1 = true;\n        }\n        else {\n          iVar3 = (*(code *)PTR_memcmp_0002c308)(vallist + iVar7 * valsize,pcVar5,valsize);\n          if (iVar3 != 0) {\n            bVar1 = true;\n          }\n        }\n        goto LAB_00013668;\n      }" { (if_statement "if (vallist == (char *)0x0) {\n          bVar1 = true;\n        }\n        else {\n          iVar3 = (*(code *)PTR_memcmp_0002c308)(vallist + iVar7 * valsize,pcVar5,valsize);\n          if (iVar3 != 0) {\n            bVar1 = true;\n          }\n        }" if (parenthesized_expression "(vallist == (char *)0x0)" ( (binary_expression "vallist == (char *)0x0" identifier == (cast_expression "(char *)0x0" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n          bVar1 = true;\n        }" { (expression_statement "bVar1 = true;" (assignment_expression "bVar1 = true" identifier = true) ;) }) (else_clause "else {\n          iVar3 = (*(code *)PTR_memcmp_0002c308)(vallist + iVar7 * valsize,pcVar5,valsize);\n          if (iVar3 != 0) {\n            bVar1 = true;\n          }\n        }" else (compound_statement "{\n          iVar3 = (*(code *)PTR_memcmp_0002c308)(vallist + iVar7 * valsize,pcVar5,valsize);\n          if (iVar3 != 0) {\n            bVar1 = true;\n          }\n        }" { (expression_statement "iVar3 = (*(code *)PTR_memcmp_0002c308)(vallist + iVar7 * valsize,pcVar5,valsize);" (assignment_expression "iVar3 = (*(code *)PTR_memcmp_0002c308)(vallist + iVar7 * valsize,pcVar5,valsize)" identifier = (call_expression "(*(code *)PTR_memcmp_0002c308)(vallist + iVar7 * valsize,pcVar5,valsize)" (parenthesized_expression "(*(code *)PTR_memcmp_0002c308)" ( (pointer_expression "*(code *)PTR_memcmp_0002c308" * (cast_expression "(code *)PTR_memcmp_0002c308" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(vallist + iVar7 * valsize,pcVar5,valsize)" ( (binary_expression "vallist + iVar7 * valsize" identifier + (binary_expression "iVar7 * valsize" identifier * identifier)) , identifier , identifier )))) ;) (if_statement "if (iVar3 != 0) {\n            bVar1 = true;\n          }" if (parenthesized_expression "(iVar3 != 0)" ( (binary_expression "iVar3 != 0" identifier != number_literal) )) (compound_statement "{\n            bVar1 = true;\n          }" { (expression_statement "bVar1 = true;" (assignment_expression "bVar1 = true" identifier = true) ;) })) }))) (goto_statement "goto LAB_00013668;" goto statement_identifier ;) })) (expression_statement "pcVar8 = *ppcVar4;" (assignment_expression "pcVar8 = *ppcVar4" identifier = (pointer_expression "*ppcVar4" * identifier)) ;) (expression_statement "ppcVar4 = ppcVar4 + 1;" (assignment_expression "ppcVar4 = ppcVar4 + 1" identifier = (binary_expression "ppcVar4 + 1" identifier + number_literal)) ;) (expression_statement "pcVar5 = pcVar5 + valsize;" (assignment_expression "pcVar5 = pcVar5 + valsize" identifier = (binary_expression "pcVar5 + valsize" identifier + identifier)) ;) (expression_statement "iVar3 = iVar6 + 1;" (assignment_expression "iVar3 = iVar6 + 1" identifier = (binary_expression "iVar6 + 1" identifier + number_literal)) ;) (expression_statement "iVar7 = iVar6;" (assignment_expression "iVar7 = iVar6" identifier = identifier) ;) }) while (parenthesized_expression "(pcVar8 != (char *)0x0)" ( (binary_expression "pcVar8 != (char *)0x0" identifier != (cast_expression "(char *)0x0" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) ;) (labeled_statement "LAB_000136e8:\n    if (bVar1) {\n      iVar7 = -2;\n    }" statement_identifier : (if_statement "if (bVar1) {\n      iVar7 = -2;\n    }" if (parenthesized_expression "(bVar1)" ( identifier )) (compound_statement "{\n      iVar7 = -2;\n    }" { (expression_statement "iVar7 = -2;" (assignment_expression "iVar7 = -2" identifier = number_literal) ;) }))) }))) (return_statement "return iVar7;" return identifier ;) })))
(translation_unit "int argmatch(undefined4 param_1,int *param_2,int param_3,int param_4)\n\n{\n  bool bVar1;\n  int iVar2;\n  int iVar3;\n  int iVar4;\n  int iVar5;\n  int iVar6;\n  int iVar7;\n  \n  iVar2 = (*(code *)PTR_strlen_0002c2b4)();\n  iVar7 = *param_2;\n  if (iVar7 == 0) {\n    iVar6 = -1;\n  }\n  else {\n    bVar1 = false;\n    param_2 = param_2 + 1;\n    iVar4 = param_3;\n    iVar3 = 0;\n    iVar6 = -1;\n    do {\n      while (iVar5 = iVar3, iVar3 = (*(code *)PTR_strncmp_0002c24c)(iVar7,param_1,iVar2), iVar3 != 0\n            ) {\nLAB_00013668:\n        iVar7 = *param_2;\n        param_2 = param_2 + 1;\n        iVar4 = iVar4 + param_4;\n        iVar3 = iVar5 + 1;\n        if (iVar7 == 0) goto LAB_000136e8;\n      }\n      iVar7 = (*(code *)PTR_strlen_0002c2b4)(iVar7);\n      if (iVar7 == iVar2) {\n        return iVar5;\n      }\n      if (iVar6 != -1) {\n        if (param_3 == 0) {\n          bVar1 = true;\n        }\n        else {\n          iVar7 = (*(code *)PTR_memcmp_0002c308)(iVar6 * param_4 + param_3,iVar4,param_4);\n          if (iVar7 != 0) {\n            bVar1 = true;\n          }\n        }\n        goto LAB_00013668;\n      }\n      iVar7 = *param_2;\n      param_2 = param_2 + 1;\n      iVar4 = iVar4 + param_4;\n      iVar3 = iVar5 + 1;\n      iVar6 = iVar5;\n    } while (iVar7 != 0);\nLAB_000136e8:\n    if (bVar1) {\n      iVar6 = -2;\n    }\n  }\n  return iVar6;\n}\n\n" (function_definition "int argmatch(undefined4 param_1,int *param_2,int param_3,int param_4)\n\n{\n  bool bVar1;\n  int iVar2;\n  int iVar3;\n  int iVar4;\n  int iVar5;\n  int iVar6;\n  int iVar7;\n  \n  iVar2 = (*(code *)PTR_strlen_0002c2b4)();\n  iVar7 = *param_2;\n  if (iVar7 == 0) {\n    iVar6 = -1;\n  }\n  else {\n    bVar1 = false;\n    param_2 = param_2 + 1;\n    iVar4 = param_3;\n    iVar3 = 0;\n    iVar6 = -1;\n    do {\n      while (iVar5 = iVar3, iVar3 = (*(code *)PTR_strncmp_0002c24c)(iVar7,param_1,iVar2), iVar3 != 0\n            ) {\nLAB_00013668:\n        iVar7 = *param_2;\n        param_2 = param_2 + 1;\n        iVar4 = iVar4 + param_4;\n        iVar3 = iVar5 + 1;\n        if (iVar7 == 0) goto LAB_000136e8;\n      }\n      iVar7 = (*(code *)PTR_strlen_0002c2b4)(iVar7);\n      if (iVar7 == iVar2) {\n        return iVar5;\n      }\n      if (iVar6 != -1) {\n        if (param_3 == 0) {\n          bVar1 = true;\n        }\n        else {\n          iVar7 = (*(code *)PTR_memcmp_0002c308)(iVar6 * param_4 + param_3,iVar4,param_4);\n          if (iVar7 != 0) {\n            bVar1 = true;\n          }\n        }\n        goto LAB_00013668;\n      }\n      iVar7 = *param_2;\n      param_2 = param_2 + 1;\n      iVar4 = iVar4 + param_4;\n      iVar3 = iVar5 + 1;\n      iVar6 = iVar5;\n    } while (iVar7 != 0);\nLAB_000136e8:\n    if (bVar1) {\n      iVar6 = -2;\n    }\n  }\n  return iVar6;\n}" primitive_type (function_declarator "argmatch(undefined4 param_1,int *param_2,int param_3,int param_4)" identifier (parameter_list "(undefined4 param_1,int *param_2,int param_3,int param_4)" ( (parameter_declaration "undefined4 param_1" type_identifier identifier) , (parameter_declaration "int *param_2" primitive_type (pointer_declarator "*param_2" * identifier)) , (parameter_declaration "int param_3" primitive_type identifier) , (parameter_declaration "int param_4" primitive_type identifier) ))) (compound_statement "{\n  bool bVar1;\n  int iVar2;\n  int iVar3;\n  int iVar4;\n  int iVar5;\n  int iVar6;\n  int iVar7;\n  \n  iVar2 = (*(code *)PTR_strlen_0002c2b4)();\n  iVar7 = *param_2;\n  if (iVar7 == 0) {\n    iVar6 = -1;\n  }\n  else {\n    bVar1 = false;\n    param_2 = param_2 + 1;\n    iVar4 = param_3;\n    iVar3 = 0;\n    iVar6 = -1;\n    do {\n      while (iVar5 = iVar3, iVar3 = (*(code *)PTR_strncmp_0002c24c)(iVar7,param_1,iVar2), iVar3 != 0\n            ) {\nLAB_00013668:\n        iVar7 = *param_2;\n        param_2 = param_2 + 1;\n        iVar4 = iVar4 + param_4;\n        iVar3 = iVar5 + 1;\n        if (iVar7 == 0) goto LAB_000136e8;\n      }\n      iVar7 = (*(code *)PTR_strlen_0002c2b4)(iVar7);\n      if (iVar7 == iVar2) {\n        return iVar5;\n      }\n      if (iVar6 != -1) {\n        if (param_3 == 0) {\n          bVar1 = true;\n        }\n        else {\n          iVar7 = (*(code *)PTR_memcmp_0002c308)(iVar6 * param_4 + param_3,iVar4,param_4);\n          if (iVar7 != 0) {\n            bVar1 = true;\n          }\n        }\n        goto LAB_00013668;\n      }\n      iVar7 = *param_2;\n      param_2 = param_2 + 1;\n      iVar4 = iVar4 + param_4;\n      iVar3 = iVar5 + 1;\n      iVar6 = iVar5;\n    } while (iVar7 != 0);\nLAB_000136e8:\n    if (bVar1) {\n      iVar6 = -2;\n    }\n  }\n  return iVar6;\n}" { (declaration "bool bVar1;" primitive_type identifier ;) (declaration "int iVar2;" primitive_type identifier ;) (declaration "int iVar3;" primitive_type identifier ;) (declaration "int iVar4;" primitive_type identifier ;) (declaration "int iVar5;" primitive_type identifier ;) (declaration "int iVar6;" primitive_type identifier ;) (declaration "int iVar7;" primitive_type identifier ;) (expression_statement "iVar2 = (*(code *)PTR_strlen_0002c2b4)();" (assignment_expression "iVar2 = (*(code *)PTR_strlen_0002c2b4)()" identifier = (call_expression "(*(code *)PTR_strlen_0002c2b4)()" (parenthesized_expression "(*(code *)PTR_strlen_0002c2b4)" ( (pointer_expression "*(code *)PTR_strlen_0002c2b4" * (cast_expression "(code *)PTR_strlen_0002c2b4" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "()" ( )))) ;) (expression_statement "iVar7 = *param_2;" (assignment_expression "iVar7 = *param_2" identifier = (pointer_expression "*param_2" * identifier)) ;) (if_statement "if (iVar7 == 0) {\n    iVar6 = -1;\n  }\n  else {\n    bVar1 = false;\n    param_2 = param_2 + 1;\n    iVar4 = param_3;\n    iVar3 = 0;\n    iVar6 = -1;\n    do {\n      while (iVar5 = iVar3, iVar3 = (*(code *)PTR_strncmp_0002c24c)(iVar7,param_1,iVar2), iVar3 != 0\n            ) {\nLAB_00013668:\n        iVar7 = *param_2;\n        param_2 = param_2 + 1;\n        iVar4 = iVar4 + param_4;\n        iVar3 = iVar5 + 1;\n        if (iVar7 == 0) goto LAB_000136e8;\n      }\n      iVar7 = (*(code *)PTR_strlen_0002c2b4)(iVar7);\n      if (iVar7 == iVar2) {\n        return iVar5;\n      }\n      if (iVar6 != -1) {\n        if (param_3 == 0) {\n          bVar1 = true;\n        }\n        else {\n          iVar7 = (*(code *)PTR_memcmp_0002c308)(iVar6 * param_4 + param_3,iVar4,param_4);\n          if (iVar7 != 0) {\n            bVar1 = true;\n          }\n        }\n        goto LAB_00013668;\n      }\n      iVar7 = *param_2;\n      param_2 = param_2 + 1;\n      iVar4 = iVar4 + param_4;\n      iVar3 = iVar5 + 1;\n      iVar6 = iVar5;\n    } while (iVar7 != 0);\nLAB_000136e8:\n    if (bVar1) {\n      iVar6 = -2;\n    }\n  }" if (parenthesized_expression "(iVar7 == 0)" ( (binary_expression "iVar7 == 0" identifier == number_literal) )) (compound_statement "{\n    iVar6 = -1;\n  }" { (expression_statement "iVar6 = -1;" (assignment_expression "iVar6 = -1" identifier = number_literal) ;) }) (else_clause "else {\n    bVar1 = false;\n    param_2 = param_2 + 1;\n    iVar4 = param_3;\n    iVar3 = 0;\n    iVar6 = -1;\n    do {\n      while (iVar5 = iVar3, iVar3 = (*(code *)PTR_strncmp_0002c24c)(iVar7,param_1,iVar2), iVar3 != 0\n            ) {\nLAB_00013668:\n        iVar7 = *param_2;\n        param_2 = param_2 + 1;\n        iVar4 = iVar4 + param_4;\n        iVar3 = iVar5 + 1;\n        if (iVar7 == 0) goto LAB_000136e8;\n      }\n      iVar7 = (*(code *)PTR_strlen_0002c2b4)(iVar7);\n      if (iVar7 == iVar2) {\n        return iVar5;\n      }\n      if (iVar6 != -1) {\n        if (param_3 == 0) {\n          bVar1 = true;\n        }\n        else {\n          iVar7 = (*(code *)PTR_memcmp_0002c308)(iVar6 * param_4 + param_3,iVar4,param_4);\n          if (iVar7 != 0) {\n            bVar1 = true;\n          }\n        }\n        goto LAB_00013668;\n      }\n      iVar7 = *param_2;\n      param_2 = param_2 + 1;\n      iVar4 = iVar4 + param_4;\n      iVar3 = iVar5 + 1;\n      iVar6 = iVar5;\n    } while (iVar7 != 0);\nLAB_000136e8:\n    if (bVar1) {\n      iVar6 = -2;\n    }\n  }" else (compound_statement "{\n    bVar1 = false;\n    param_2 = param_2 + 1;\n    iVar4 = param_3;\n    iVar3 = 0;\n    iVar6 = -1;\n    do {\n      while (iVar5 = iVar3, iVar3 = (*(code *)PTR_strncmp_0002c24c)(iVar7,param_1,iVar2), iVar3 != 0\n            ) {\nLAB_00013668:\n        iVar7 = *param_2;\n        param_2 = param_2 + 1;\n        iVar4 = iVar4 + param_4;\n        iVar3 = iVar5 + 1;\n        if (iVar7 == 0) goto LAB_000136e8;\n      }\n      iVar7 = (*(code *)PTR_strlen_0002c2b4)(iVar7);\n      if (iVar7 == iVar2) {\n        return iVar5;\n      }\n      if (iVar6 != -1) {\n        if (param_3 == 0) {\n          bVar1 = true;\n        }\n        else {\n          iVar7 = (*(code *)PTR_memcmp_0002c308)(iVar6 * param_4 + param_3,iVar4,param_4);\n          if (iVar7 != 0) {\n            bVar1 = true;\n          }\n        }\n        goto LAB_00013668;\n      }\n      iVar7 = *param_2;\n      param_2 = param_2 + 1;\n      iVar4 = iVar4 + param_4;\n      iVar3 = iVar5 + 1;\n      iVar6 = iVar5;\n    } while (iVar7 != 0);\nLAB_000136e8:\n    if (bVar1) {\n      iVar6 = -2;\n    }\n  }" { (expression_statement "bVar1 = false;" (assignment_expression "bVar1 = false" identifier = false) ;) (expression_statement "param_2 = param_2 + 1;" (assignment_expression "param_2 = param_2 + 1" identifier = (binary_expression "param_2 + 1" identifier + number_literal)) ;) (expression_statement "iVar4 = param_3;" (assignment_expression "iVar4 = param_3" identifier = identifier) ;) (expression_statement "iVar3 = 0;" (assignment_expression "iVar3 = 0" identifier = number_literal) ;) (expression_statement "iVar6 = -1;" (assignment_expression "iVar6 = -1" identifier = number_literal) ;) (do_statement "do {\n      while (iVar5 = iVar3, iVar3 = (*(code *)PTR_strncmp_0002c24c)(iVar7,param_1,iVar2), iVar3 != 0\n            ) {\nLAB_00013668:\n        iVar7 = *param_2;\n        param_2 = param_2 + 1;\n        iVar4 = iVar4 + param_4;\n        iVar3 = iVar5 + 1;\n        if (iVar7 == 0) goto LAB_000136e8;\n      }\n      iVar7 = (*(code *)PTR_strlen_0002c2b4)(iVar7);\n      if (iVar7 == iVar2) {\n        return iVar5;\n      }\n      if (iVar6 != -1) {\n        if (param_3 == 0) {\n          bVar1 = true;\n        }\n        else {\n          iVar7 = (*(code *)PTR_memcmp_0002c308)(iVar6 * param_4 + param_3,iVar4,param_4);\n          if (iVar7 != 0) {\n            bVar1 = true;\n          }\n        }\n        goto LAB_00013668;\n      }\n      iVar7 = *param_2;\n      param_2 = param_2 + 1;\n      iVar4 = iVar4 + param_4;\n      iVar3 = iVar5 + 1;\n      iVar6 = iVar5;\n    } while (iVar7 != 0);" do (compound_statement "{\n      while (iVar5 = iVar3, iVar3 = (*(code *)PTR_strncmp_0002c24c)(iVar7,param_1,iVar2), iVar3 != 0\n            ) {\nLAB_00013668:\n        iVar7 = *param_2;\n        param_2 = param_2 + 1;\n        iVar4 = iVar4 + param_4;\n        iVar3 = iVar5 + 1;\n        if (iVar7 == 0) goto LAB_000136e8;\n      }\n      iVar7 = (*(code *)PTR_strlen_0002c2b4)(iVar7);\n      if (iVar7 == iVar2) {\n        return iVar5;\n      }\n      if (iVar6 != -1) {\n        if (param_3 == 0) {\n          bVar1 = true;\n        }\n        else {\n          iVar7 = (*(code *)PTR_memcmp_0002c308)(iVar6 * param_4 + param_3,iVar4,param_4);\n          if (iVar7 != 0) {\n            bVar1 = true;\n          }\n        }\n        goto LAB_00013668;\n      }\n      iVar7 = *param_2;\n      param_2 = param_2 + 1;\n      iVar4 = iVar4 + param_4;\n      iVar3 = iVar5 + 1;\n      iVar6 = iVar5;\n    }" { (while_statement "while (iVar5 = iVar3, iVar3 = (*(code *)PTR_strncmp_0002c24c)(iVar7,param_1,iVar2), iVar3 != 0\n            ) {\nLAB_00013668:\n        iVar7 = *param_2;\n        param_2 = param_2 + 1;\n        iVar4 = iVar4 + param_4;\n        iVar3 = iVar5 + 1;\n        if (iVar7 == 0) goto LAB_000136e8;\n      }" while (parenthesized_expression "(iVar5 = iVar3, iVar3 = (*(code *)PTR_strncmp_0002c24c)(iVar7,param_1,iVar2), iVar3 != 0\n            )" ( (comma_expression "iVar5 = iVar3, iVar3 = (*(code *)PTR_strncmp_0002c24c)(iVar7,param_1,iVar2), iVar3 != 0" (assignment_expression "iVar5 = iVar3" identifier = identifier) , (comma_expression "iVar3 = (*(code *)PTR_strncmp_0002c24c)(iVar7,param_1,iVar2), iVar3 != 0" (assignment_expression "iVar3 = (*(code *)PTR_strncmp_0002c24c)(iVar7,param_1,iVar2)" identifier = (call_expression "(*(code *)PTR_strncmp_0002c24c)(iVar7,param_1,iVar2)" (parenthesized_expression "(*(code *)PTR_strncmp_0002c24c)" ( (pointer_expression "*(code *)PTR_strncmp_0002c24c" * (cast_expression "(code *)PTR_strncmp_0002c24c" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(iVar7,param_1,iVar2)" ( identifier , identifier , identifier )))) , (binary_expression "iVar3 != 0" identifier != number_literal))) )) (compound_statement "{\nLAB_00013668:\n        iVar7 = *param_2;\n        param_2 = param_2 + 1;\n        iVar4 = iVar4 + param_4;\n        iVar3 = iVar5 + 1;\n        if (iVar7 == 0) goto LAB_000136e8;\n      }" { (labeled_statement "LAB_00013668:\n        iVar7 = *param_2;" statement_identifier : (expression_statement "iVar7 = *param_2;" (assignment_expression "iVar7 = *param_2" identifier = (pointer_expression "*param_2" * identifier)) ;)) (expression_statement "param_2 = param_2 + 1;" (assignment_expression "param_2 = param_2 + 1" identifier = (binary_expression "param_2 + 1" identifier + number_literal)) ;) (expression_statement "iVar4 = iVar4 + param_4;" (assignment_expression "iVar4 = iVar4 + param_4" identifier = (binary_expression "iVar4 + param_4" identifier + identifier)) ;) (expression_statement "iVar3 = iVar5 + 1;" (assignment_expression "iVar3 = iVar5 + 1" identifier = (binary_expression "iVar5 + 1" identifier + number_literal)) ;) (if_statement "if (iVar7 == 0) goto LAB_000136e8;" if (parenthesized_expression "(iVar7 == 0)" ( (binary_expression "iVar7 == 0" identifier == number_literal) )) (goto_statement "goto LAB_000136e8;" goto statement_identifier ;)) })) (expression_statement "iVar7 = (*(code *)PTR_strlen_0002c2b4)(iVar7);" (assignment_expression "iVar7 = (*(code *)PTR_strlen_0002c2b4)(iVar7)" identifier = (call_expression "(*(code *)PTR_strlen_0002c2b4)(iVar7)" (parenthesized_expression "(*(code *)PTR_strlen_0002c2b4)" ( (pointer_expression "*(code *)PTR_strlen_0002c2b4" * (cast_expression "(code *)PTR_strlen_0002c2b4" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(iVar7)" ( identifier )))) ;) (if_statement "if (iVar7 == iVar2) {\n        return iVar5;\n      }" if (parenthesized_expression "(iVar7 == iVar2)" ( (binary_expression "iVar7 == iVar2" identifier == identifier) )) (compound_statement "{\n        return iVar5;\n      }" { (return_statement "return iVar5;" return identifier ;) })) (if_statement "if (iVar6 != -1) {\n        if (param_3 == 0) {\n          bVar1 = true;\n        }\n        else {\n          iVar7 = (*(code *)PTR_memcmp_0002c308)(iVar6 * param_4 + param_3,iVar4,param_4);\n          if (iVar7 != 0) {\n            bVar1 = true;\n          }\n        }\n        goto LAB_00013668;\n      }" if (parenthesized_expression "(iVar6 != -1)" ( (binary_expression "iVar6 != -1" identifier != number_literal) )) (compound_statement "{\n        if (param_3 == 0) {\n          bVar1 = true;\n        }\n        else {\n          iVar7 = (*(code *)PTR_memcmp_0002c308)(iVar6 * param_4 + param_3,iVar4,param_4);\n          if (iVar7 != 0) {\n            bVar1 = true;\n          }\n        }\n        goto LAB_00013668;\n      }" { (if_statement "if (param_3 == 0) {\n          bVar1 = true;\n        }\n        else {\n          iVar7 = (*(code *)PTR_memcmp_0002c308)(iVar6 * param_4 + param_3,iVar4,param_4);\n          if (iVar7 != 0) {\n            bVar1 = true;\n          }\n        }" if (parenthesized_expression "(param_3 == 0)" ( (binary_expression "param_3 == 0" identifier == number_literal) )) (compound_statement "{\n          bVar1 = true;\n        }" { (expression_statement "bVar1 = true;" (assignment_expression "bVar1 = true" identifier = true) ;) }) (else_clause "else {\n          iVar7 = (*(code *)PTR_memcmp_0002c308)(iVar6 * param_4 + param_3,iVar4,param_4);\n          if (iVar7 != 0) {\n            bVar1 = true;\n          }\n        }" else (compound_statement "{\n          iVar7 = (*(code *)PTR_memcmp_0002c308)(iVar6 * param_4 + param_3,iVar4,param_4);\n          if (iVar7 != 0) {\n            bVar1 = true;\n          }\n        }" { (expression_statement "iVar7 = (*(code *)PTR_memcmp_0002c308)(iVar6 * param_4 + param_3,iVar4,param_4);" (assignment_expression "iVar7 = (*(code *)PTR_memcmp_0002c308)(iVar6 * param_4 + param_3,iVar4,param_4)" identifier = (call_expression "(*(code *)PTR_memcmp_0002c308)(iVar6 * param_4 + param_3,iVar4,param_4)" (parenthesized_expression "(*(code *)PTR_memcmp_0002c308)" ( (pointer_expression "*(code *)PTR_memcmp_0002c308" * (cast_expression "(code *)PTR_memcmp_0002c308" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(iVar6 * param_4 + param_3,iVar4,param_4)" ( (binary_expression "iVar6 * param_4 + param_3" (binary_expression "iVar6 * param_4" identifier * identifier) + identifier) , identifier , identifier )))) ;) (if_statement "if (iVar7 != 0) {\n            bVar1 = true;\n          }" if (parenthesized_expression "(iVar7 != 0)" ( (binary_expression "iVar7 != 0" identifier != number_literal) )) (compound_statement "{\n            bVar1 = true;\n          }" { (expression_statement "bVar1 = true;" (assignment_expression "bVar1 = true" identifier = true) ;) })) }))) (goto_statement "goto LAB_00013668;" goto statement_identifier ;) })) (expression_statement "iVar7 = *param_2;" (assignment_expression "iVar7 = *param_2" identifier = (pointer_expression "*param_2" * identifier)) ;) (expression_statement "param_2 = param_2 + 1;" (assignment_expression "param_2 = param_2 + 1" identifier = (binary_expression "param_2 + 1" identifier + number_literal)) ;) (expression_statement "iVar4 = iVar4 + param_4;" (assignment_expression "iVar4 = iVar4 + param_4" identifier = (binary_expression "iVar4 + param_4" identifier + identifier)) ;) (expression_statement "iVar3 = iVar5 + 1;" (assignment_expression "iVar3 = iVar5 + 1" identifier = (binary_expression "iVar5 + 1" identifier + number_literal)) ;) (expression_statement "iVar6 = iVar5;" (assignment_expression "iVar6 = iVar5" identifier = identifier) ;) }) while (parenthesized_expression "(iVar7 != 0)" ( (binary_expression "iVar7 != 0" identifier != number_literal) )) ;) (labeled_statement "LAB_000136e8:\n    if (bVar1) {\n      iVar6 = -2;\n    }" statement_identifier : (if_statement "if (bVar1) {\n      iVar6 = -2;\n    }" if (parenthesized_expression "(bVar1)" ( identifier )) (compound_statement "{\n      iVar6 = -2;\n    }" { (expression_statement "iVar6 = -2;" (assignment_expression "iVar6 = -2" identifier = number_literal) ;) }))) }))) (return_statement "return iVar6;" return identifier ;) })))
(translation_unit (function_definition TYPE (function_declarator IDENT (parameter_list ( (parameter_declaration TYPE IDENT) , (parameter_declaration TYPE (pointer_declarator * IDENT)) , (parameter_declaration TYPE IDENT) , (parameter_declaration TYPE IDENT) ))) (compound_statement { (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (expression_statement (assignment_expression IDENT = (call_expression (parenthesized_expression ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT)) )) (argument_list ( )))) ;) (expression_statement (assignment_expression IDENT = (pointer_expression * IDENT)) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT == LIT) )) (compound_statement { (expression_statement (assignment_expression IDENT = LIT) ;) }) (else_clause else (compound_statement { (expression_statement (assignment_expression IDENT = BOOL) ;) (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) (expression_statement (assignment_expression IDENT = IDENT) ;) (expression_statement (assignment_expression IDENT = LIT) ;) (expression_statement (assignment_expression IDENT = LIT) ;) (do_statement do (compound_statement { (while_statement while (parenthesized_expression ( (comma_expression (assignment_expression IDENT = IDENT) , (comma_expression (assignment_expression IDENT = (call_expression (parenthesized_expression ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT)) )) (argument_list ( IDENT , IDENT , IDENT )))) , (binary_expression IDENT != LIT))) )) (compound_statement { (labeled_statement statement_identifier : (expression_statement (assignment_expression IDENT = (pointer_expression * IDENT)) ;)) (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) (expression_statement (assignment_expression IDENT = (binary_expression IDENT + IDENT)) ;) (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT == LIT) )) (goto_statement goto statement_identifier ;)) })) (expression_statement (assignment_expression IDENT = (call_expression (parenthesized_expression ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT)) )) (argument_list ( IDENT )))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT == IDENT) )) (compound_statement { (return_statement return 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 = BOOL) ;) }) (else_clause else (compound_statement { (expression_statement (assignment_expression IDENT = (call_expression (parenthesized_expression ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT)) )) (argument_list ( (binary_expression (binary_expression IDENT * IDENT) + IDENT) , IDENT , IDENT )))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT != LIT) )) (compound_statement { (expression_statement (assignment_expression IDENT = BOOL) ;) })) }))) (goto_statement goto statement_identifier ;) })) (expression_statement (assignment_expression IDENT = (pointer_expression * IDENT)) ;) (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) (expression_statement (assignment_expression IDENT = (binary_expression IDENT + IDENT)) ;) (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) (expression_statement (assignment_expression IDENT = IDENT) ;) }) while (parenthesized_expression ( (binary_expression IDENT != LIT) )) ;) (labeled_statement statement_identifier : (if_statement if (parenthesized_expression ( IDENT )) (compound_statement { (expression_statement (assignment_expression IDENT = LIT) ;) }))) }))) (return_statement return IDENT ;) })))
(function_definition "int argmatch(undefined4 param_1,int *param_2,int param_3,int param_4)\n\n{\n  bool bVar1;\n  int iVar2;\n  int iVar3;\n  int iVar4;\n  int iVar5;\n  int iVar6;\n  int iVar7;\n  \n  iVar2 = (*(code *)PTR_strlen_0002c2b4)();\n  iVar7 = *param_2;\n  if (iVar7 == 0) {\n    iVar6 = -1;\n  }\n  else {\n    bVar1 = false;\n    param_2 = param_2 + 1;\n    iVar4 = param_3;\n    iVar3 = 0;\n    iVar6 = -1;\n    do {\n      while (iVar5 = iVar3, iVar3 = (*(code *)PTR_strncmp_0002c24c)(iVar7,param_1,iVar2), iVar3 != 0\n            ) {\nLAB_00013668:\n        iVar7 = *param_2;\n        param_2 = param_2 + 1;\n        iVar4 = iVar4 + param_4;\n        iVar3 = iVar5 + 1;\n        if (iVar7 == 0) goto LAB_000136e8;\n      }\n      iVar7 = (*(code *)PTR_strlen_0002c2b4)(iVar7);\n      if (iVar7 == iVar2) {\n        return iVar5;\n      }\n      if (iVar6 != -1) {\n        if (param_3 == 0) {\n          bVar1 = true;\n        }\n        else {\n          iVar7 = (*(code *)PTR_memcmp_0002c308)(iVar6 * param_4 + param_3,iVar4,param_4);\n          if (iVar7 != 0) {\n            bVar1 = true;\n          }\n        }\n        goto LAB_00013668;\n      }\n      iVar7 = *param_2;\n      param_2 = param_2 + 1;\n      iVar4 = iVar4 + param_4;\n      iVar3 = iVar5 + 1;\n      iVar6 = iVar5;\n    } while (iVar7 != 0);\nLAB_000136e8:\n    if (bVar1) {\n      iVar6 = -2;\n    }\n  }\n  return iVar6;\n}" (primitive_type "int") (function_declarator "argmatch(undefined4 param_1,int *param_2,int param_3,int param_4)" (identifier "argmatch") (parameter_list "(undefined4 param_1,int *param_2,int param_3,int param_4)" (( "(") (parameter_declaration "undefined4 param_1" (type_identifier "undefined4") (identifier "param_1")) (, ",") (parameter_declaration "int *param_2" (primitive_type "int") (pointer_declarator "*param_2" (* "*") (identifier "param_2"))) (, ",") (parameter_declaration "int param_3" (primitive_type "int") (identifier "param_3")) (, ",") (parameter_declaration "int param_4" (primitive_type "int") (identifier "param_4")) () ")"))) (compound_statement "{\n  bool bVar1;\n  int iVar2;\n  int iVar3;\n  int iVar4;\n  int iVar5;\n  int iVar6;\n  int iVar7;\n  \n  iVar2 = (*(code *)PTR_strlen_0002c2b4)();\n  iVar7 = *param_2;\n  if (iVar7 == 0) {\n    iVar6 = -1;\n  }\n  else {\n    bVar1 = false;\n    param_2 = param_2 + 1;\n    iVar4 = param_3;\n    iVar3 = 0;\n    iVar6 = -1;\n    do {\n      while (iVar5 = iVar3, iVar3 = (*(code *)PTR_strncmp_0002c24c)(iVar7,param_1,iVar2), iVar3 != 0\n            ) {\nLAB_00013668:\n        iVar7 = *param_2;\n        param_2 = param_2 + 1;\n        iVar4 = iVar4 + param_4;\n        iVar3 = iVar5 + 1;\n        if (iVar7 == 0) goto LAB_000136e8;\n      }\n      iVar7 = (*(code *)PTR_strlen_0002c2b4)(iVar7);\n      if (iVar7 == iVar2) {\n        return iVar5;\n      }\n      if (iVar6 != -1) {\n        if (param_3 == 0) {\n          bVar1 = true;\n        }\n        else {\n          iVar7 = (*(code *)PTR_memcmp_0002c308)(iVar6 * param_4 + param_3,iVar4,param_4);\n          if (iVar7 != 0) {\n            bVar1 = true;\n          }\n        }\n        goto LAB_00013668;\n      }\n      iVar7 = *param_2;\n      param_2 = param_2 + 1;\n      iVar4 = iVar4 + param_4;\n      iVar3 = iVar5 + 1;\n      iVar6 = iVar5;\n    } while (iVar7 != 0);\nLAB_000136e8:\n    if (bVar1) {\n      iVar6 = -2;\n    }\n  }\n  return iVar6;\n}" ({ "{") (declaration "bool bVar1;" (primitive_type "bool") (identifier "bVar1") (; ";")) (declaration "int iVar2;" (primitive_type "int") (identifier "iVar2") (; ";")) (declaration "int iVar3;" (primitive_type "int") (identifier "iVar3") (; ";")) (declaration "int iVar4;" (primitive_type "int") (identifier "iVar4") (; ";")) (declaration "int iVar5;" (primitive_type "int") (identifier "iVar5") (; ";")) (declaration "int iVar6;" (primitive_type "int") (identifier "iVar6") (; ";")) (declaration "int iVar7;" (primitive_type "int") (identifier "iVar7") (; ";")) (expression_statement "iVar2 = (*(code *)PTR_strlen_0002c2b4)();" (assignment_expression "iVar2 = (*(code *)PTR_strlen_0002c2b4)()" (identifier "iVar2") (= "=") (call_expression "(*(code *)PTR_strlen_0002c2b4)()" (parenthesized_expression "(*(code *)PTR_strlen_0002c2b4)" (( "(") (pointer_expression "*(code *)PTR_strlen_0002c2b4" (* "*") (cast_expression "(code *)PTR_strlen_0002c2b4" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR_strlen_0002c2b4"))) () ")")) (argument_list "()" (( "(") () ")")))) (; ";")) (expression_statement "iVar7 = *param_2;" (assignment_expression "iVar7 = *param_2" (identifier "iVar7") (= "=") (pointer_expression "*param_2" (* "*") (identifier "param_2"))) (; ";")) (if_statement "if (iVar7 == 0) {\n    iVar6 = -1;\n  }\n  else {\n    bVar1 = false;\n    param_2 = param_2 + 1;\n    iVar4 = param_3;\n    iVar3 = 0;\n    iVar6 = -1;\n    do {\n      while (iVar5 = iVar3, iVar3 = (*(code *)PTR_strncmp_0002c24c)(iVar7,param_1,iVar2), iVar3 != 0\n            ) {\nLAB_00013668:\n        iVar7 = *param_2;\n        param_2 = param_2 + 1;\n        iVar4 = iVar4 + param_4;\n        iVar3 = iVar5 + 1;\n        if (iVar7 == 0) goto LAB_000136e8;\n      }\n      iVar7 = (*(code *)PTR_strlen_0002c2b4)(iVar7);\n      if (iVar7 == iVar2) {\n        return iVar5;\n      }\n      if (iVar6 != -1) {\n        if (param_3 == 0) {\n          bVar1 = true;\n        }\n        else {\n          iVar7 = (*(code *)PTR_memcmp_0002c308)(iVar6 * param_4 + param_3,iVar4,param_4);\n          if (iVar7 != 0) {\n            bVar1 = true;\n          }\n        }\n        goto LAB_00013668;\n      }\n      iVar7 = *param_2;\n      param_2 = param_2 + 1;\n      iVar4 = iVar4 + param_4;\n      iVar3 = iVar5 + 1;\n      iVar6 = iVar5;\n    } while (iVar7 != 0);\nLAB_000136e8:\n    if (bVar1) {\n      iVar6 = -2;\n    }\n  }" (if "if") (parenthesized_expression "(iVar7 == 0)" (( "(") (binary_expression "iVar7 == 0" (identifier "iVar7") (== "==") (number_literal "0")) () ")")) (compound_statement "{\n    iVar6 = -1;\n  }" ({ "{") (expression_statement "iVar6 = -1;" (assignment_expression "iVar6 = -1" (identifier "iVar6") (= "=") (number_literal "-1")) (; ";")) (} "}")) (else_clause "else {\n    bVar1 = false;\n    param_2 = param_2 + 1;\n    iVar4 = param_3;\n    iVar3 = 0;\n    iVar6 = -1;\n    do {\n      while (iVar5 = iVar3, iVar3 = (*(code *)PTR_strncmp_0002c24c)(iVar7,param_1,iVar2), iVar3 != 0\n            ) {\nLAB_00013668:\n        iVar7 = *param_2;\n        param_2 = param_2 + 1;\n        iVar4 = iVar4 + param_4;\n        iVar3 = iVar5 + 1;\n        if (iVar7 == 0) goto LAB_000136e8;\n      }\n      iVar7 = (*(code *)PTR_strlen_0002c2b4)(iVar7);\n      if (iVar7 == iVar2) {\n        return iVar5;\n      }\n      if (iVar6 != -1) {\n        if (param_3 == 0) {\n          bVar1 = true;\n        }\n        else {\n          iVar7 = (*(code *)PTR_memcmp_0002c308)(iVar6 * param_4 + param_3,iVar4,param_4);\n          if (iVar7 != 0) {\n            bVar1 = true;\n          }\n        }\n        goto LAB_00013668;\n      }\n      iVar7 = *param_2;\n      param_2 = param_2 + 1;\n      iVar4 = iVar4 + param_4;\n      iVar3 = iVar5 + 1;\n      iVar6 = iVar5;\n    } while (iVar7 != 0);\nLAB_000136e8:\n    if (bVar1) {\n      iVar6 = -2;\n    }\n  }" (else "else") (compound_statement "{\n    bVar1 = false;\n    param_2 = param_2 + 1;\n    iVar4 = param_3;\n    iVar3 = 0;\n    iVar6 = -1;\n    do {\n      while (iVar5 = iVar3, iVar3 = (*(code *)PTR_strncmp_0002c24c)(iVar7,param_1,iVar2), iVar3 != 0\n            ) {\nLAB_00013668:\n        iVar7 = *param_2;\n        param_2 = param_2 + 1;\n        iVar4 = iVar4 + param_4;\n        iVar3 = iVar5 + 1;\n        if (iVar7 == 0) goto LAB_000136e8;\n      }\n      iVar7 = (*(code *)PTR_strlen_0002c2b4)(iVar7);\n      if (iVar7 == iVar2) {\n        return iVar5;\n      }\n      if (iVar6 != -1) {\n        if (param_3 == 0) {\n          bVar1 = true;\n        }\n        else {\n          iVar7 = (*(code *)PTR_memcmp_0002c308)(iVar6 * param_4 + param_3,iVar4,param_4);\n          if (iVar7 != 0) {\n            bVar1 = true;\n          }\n        }\n        goto LAB_00013668;\n      }\n      iVar7 = *param_2;\n      param_2 = param_2 + 1;\n      iVar4 = iVar4 + param_4;\n      iVar3 = iVar5 + 1;\n      iVar6 = iVar5;\n    } while (iVar7 != 0);\nLAB_000136e8:\n    if (bVar1) {\n      iVar6 = -2;\n    }\n  }" ({ "{") (expression_statement "bVar1 = false;" (assignment_expression "bVar1 = false" (identifier "bVar1") (= "=") (false "false")) (; ";")) (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"))) (; ";")) (expression_statement "iVar4 = param_3;" (assignment_expression "iVar4 = param_3" (identifier "iVar4") (= "=") (identifier "param_3")) (; ";")) (expression_statement "iVar3 = 0;" (assignment_expression "iVar3 = 0" (identifier "iVar3") (= "=") (number_literal "0")) (; ";")) (expression_statement "iVar6 = -1;" (assignment_expression "iVar6 = -1" (identifier "iVar6") (= "=") (number_literal "-1")) (; ";")) (do_statement "do {\n      while (iVar5 = iVar3, iVar3 = (*(code *)PTR_strncmp_0002c24c)(iVar7,param_1,iVar2), iVar3 != 0\n            ) {\nLAB_00013668:\n        iVar7 = *param_2;\n        param_2 = param_2 + 1;\n        iVar4 = iVar4 + param_4;\n        iVar3 = iVar5 + 1;\n        if (iVar7 == 0) goto LAB_000136e8;\n      }\n      iVar7 = (*(code *)PTR_strlen_0002c2b4)(iVar7);\n      if (iVar7 == iVar2) {\n        return iVar5;\n      }\n      if (iVar6 != -1) {\n        if (param_3 == 0) {\n          bVar1 = true;\n        }\n        else {\n          iVar7 = (*(code *)PTR_memcmp_0002c308)(iVar6 * param_4 + param_3,iVar4,param_4);\n          if (iVar7 != 0) {\n            bVar1 = true;\n          }\n        }\n        goto LAB_00013668;\n      }\n      iVar7 = *param_2;\n      param_2 = param_2 + 1;\n      iVar4 = iVar4 + param_4;\n      iVar3 = iVar5 + 1;\n      iVar6 = iVar5;\n    } while (iVar7 != 0);" (do "do") (compound_statement "{\n      while (iVar5 = iVar3, iVar3 = (*(code *)PTR_strncmp_0002c24c)(iVar7,param_1,iVar2), iVar3 != 0\n            ) {\nLAB_00013668:\n        iVar7 = *param_2;\n        param_2 = param_2 + 1;\n        iVar4 = iVar4 + param_4;\n        iVar3 = iVar5 + 1;\n        if (iVar7 == 0) goto LAB_000136e8;\n      }\n      iVar7 = (*(code *)PTR_strlen_0002c2b4)(iVar7);\n      if (iVar7 == iVar2) {\n        return iVar5;\n      }\n      if (iVar6 != -1) {\n        if (param_3 == 0) {\n          bVar1 = true;\n        }\n        else {\n          iVar7 = (*(code *)PTR_memcmp_0002c308)(iVar6 * param_4 + param_3,iVar4,param_4);\n          if (iVar7 != 0) {\n            bVar1 = true;\n          }\n        }\n        goto LAB_00013668;\n      }\n      iVar7 = *param_2;\n      param_2 = param_2 + 1;\n      iVar4 = iVar4 + param_4;\n      iVar3 = iVar5 + 1;\n      iVar6 = iVar5;\n    }" ({ "{") (while_statement "while (iVar5 = iVar3, iVar3 = (*(code *)PTR_strncmp_0002c24c)(iVar7,param_1,iVar2), iVar3 != 0\n            ) {\nLAB_00013668:\n        iVar7 = *param_2;\n        param_2 = param_2 + 1;\n        iVar4 = iVar4 + param_4;\n        iVar3 = iVar5 + 1;\n        if (iVar7 == 0) goto LAB_000136e8;\n      }" (while "while") (parenthesized_expression "(iVar5 = iVar3, iVar3 = (*(code *)PTR_strncmp_0002c24c)(iVar7,param_1,iVar2), iVar3 != 0\n            )" (( "(") (comma_expression "iVar5 = iVar3, iVar3 = (*(code *)PTR_strncmp_0002c24c)(iVar7,param_1,iVar2), iVar3 != 0" (assignment_expression "iVar5 = iVar3" (identifier "iVar5") (= "=") (identifier "iVar3")) (, ",") (comma_expression "iVar3 = (*(code *)PTR_strncmp_0002c24c)(iVar7,param_1,iVar2), iVar3 != 0" (assignment_expression "iVar3 = (*(code *)PTR_strncmp_0002c24c)(iVar7,param_1,iVar2)" (identifier "iVar3") (= "=") (call_expression "(*(code *)PTR_strncmp_0002c24c)(iVar7,param_1,iVar2)" (parenthesized_expression "(*(code *)PTR_strncmp_0002c24c)" (( "(") (pointer_expression "*(code *)PTR_strncmp_0002c24c" (* "*") (cast_expression "(code *)PTR_strncmp_0002c24c" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR_strncmp_0002c24c"))) () ")")) (argument_list "(iVar7,param_1,iVar2)" (( "(") (identifier "iVar7") (, ",") (identifier "param_1") (, ",") (identifier "iVar2") () ")")))) (, ",") (binary_expression "iVar3 != 0" (identifier "iVar3") (!= "!=") (number_literal "0")))) () ")")) (compound_statement "{\nLAB_00013668:\n        iVar7 = *param_2;\n        param_2 = param_2 + 1;\n        iVar4 = iVar4 + param_4;\n        iVar3 = iVar5 + 1;\n        if (iVar7 == 0) goto LAB_000136e8;\n      }" ({ "{") (labeled_statement "LAB_00013668:\n        iVar7 = *param_2;" (statement_identifier "LAB_00013668") (: ":") (expression_statement "iVar7 = *param_2;" (assignment_expression "iVar7 = *param_2" (identifier "iVar7") (= "=") (pointer_expression "*param_2" (* "*") (identifier "param_2"))) (; ";"))) (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"))) (; ";")) (expression_statement "iVar4 = iVar4 + param_4;" (assignment_expression "iVar4 = iVar4 + param_4" (identifier "iVar4") (= "=") (binary_expression "iVar4 + param_4" (identifier "iVar4") (+ "+") (identifier "param_4"))) (; ";")) (expression_statement "iVar3 = iVar5 + 1;" (assignment_expression "iVar3 = iVar5 + 1" (identifier "iVar3") (= "=") (binary_expression "iVar5 + 1" (identifier "iVar5") (+ "+") (number_literal "1"))) (; ";")) (if_statement "if (iVar7 == 0) goto LAB_000136e8;" (if "if") (parenthesized_expression "(iVar7 == 0)" (( "(") (binary_expression "iVar7 == 0" (identifier "iVar7") (== "==") (number_literal "0")) () ")")) (goto_statement "goto LAB_000136e8;" (goto "goto") (statement_identifier "LAB_000136e8") (; ";"))) (} "}"))) (expression_statement "iVar7 = (*(code *)PTR_strlen_0002c2b4)(iVar7);" (assignment_expression "iVar7 = (*(code *)PTR_strlen_0002c2b4)(iVar7)" (identifier "iVar7") (= "=") (call_expression "(*(code *)PTR_strlen_0002c2b4)(iVar7)" (parenthesized_expression "(*(code *)PTR_strlen_0002c2b4)" (( "(") (pointer_expression "*(code *)PTR_strlen_0002c2b4" (* "*") (cast_expression "(code *)PTR_strlen_0002c2b4" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR_strlen_0002c2b4"))) () ")")) (argument_list "(iVar7)" (( "(") (identifier "iVar7") () ")")))) (; ";")) (if_statement "if (iVar7 == iVar2) {\n        return iVar5;\n      }" (if "if") (parenthesized_expression "(iVar7 == iVar2)" (( "(") (binary_expression "iVar7 == iVar2" (identifier "iVar7") (== "==") (identifier "iVar2")) () ")")) (compound_statement "{\n        return iVar5;\n      }" ({ "{") (return_statement "return iVar5;" (return "return") (identifier "iVar5") (; ";")) (} "}"))) (if_statement "if (iVar6 != -1) {\n        if (param_3 == 0) {\n          bVar1 = true;\n        }\n        else {\n          iVar7 = (*(code *)PTR_memcmp_0002c308)(iVar6 * param_4 + param_3,iVar4,param_4);\n          if (iVar7 != 0) {\n            bVar1 = true;\n          }\n        }\n        goto LAB_00013668;\n      }" (if "if") (parenthesized_expression "(iVar6 != -1)" (( "(") (binary_expression "iVar6 != -1" (identifier "iVar6") (!= "!=") (number_literal "-1")) () ")")) (compound_statement "{\n        if (param_3 == 0) {\n          bVar1 = true;\n        }\n        else {\n          iVar7 = (*(code *)PTR_memcmp_0002c308)(iVar6 * param_4 + param_3,iVar4,param_4);\n          if (iVar7 != 0) {\n            bVar1 = true;\n          }\n        }\n        goto LAB_00013668;\n      }" ({ "{") (if_statement "if (param_3 == 0) {\n          bVar1 = true;\n        }\n        else {\n          iVar7 = (*(code *)PTR_memcmp_0002c308)(iVar6 * param_4 + param_3,iVar4,param_4);\n          if (iVar7 != 0) {\n            bVar1 = true;\n          }\n        }" (if "if") (parenthesized_expression "(param_3 == 0)" (( "(") (binary_expression "param_3 == 0" (identifier "param_3") (== "==") (number_literal "0")) () ")")) (compound_statement "{\n          bVar1 = true;\n        }" ({ "{") (expression_statement "bVar1 = true;" (assignment_expression "bVar1 = true" (identifier "bVar1") (= "=") (true "true")) (; ";")) (} "}")) (else_clause "else {\n          iVar7 = (*(code *)PTR_memcmp_0002c308)(iVar6 * param_4 + param_3,iVar4,param_4);\n          if (iVar7 != 0) {\n            bVar1 = true;\n          }\n        }" (else "else") (compound_statement "{\n          iVar7 = (*(code *)PTR_memcmp_0002c308)(iVar6 * param_4 + param_3,iVar4,param_4);\n          if (iVar7 != 0) {\n            bVar1 = true;\n          }\n        }" ({ "{") (expression_statement "iVar7 = (*(code *)PTR_memcmp_0002c308)(iVar6 * param_4 + param_3,iVar4,param_4);" (assignment_expression "iVar7 = (*(code *)PTR_memcmp_0002c308)(iVar6 * param_4 + param_3,iVar4,param_4)" (identifier "iVar7") (= "=") (call_expression "(*(code *)PTR_memcmp_0002c308)(iVar6 * param_4 + param_3,iVar4,param_4)" (parenthesized_expression "(*(code *)PTR_memcmp_0002c308)" (( "(") (pointer_expression "*(code *)PTR_memcmp_0002c308" (* "*") (cast_expression "(code *)PTR_memcmp_0002c308" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR_memcmp_0002c308"))) () ")")) (argument_list "(iVar6 * param_4 + param_3,iVar4,param_4)" (( "(") (binary_expression "iVar6 * param_4 + param_3" (binary_expression "iVar6 * param_4" (identifier "iVar6") (* "*") (identifier "param_4")) (+ "+") (identifier "param_3")) (, ",") (identifier "iVar4") (, ",") (identifier "param_4") () ")")))) (; ";")) (if_statement "if (iVar7 != 0) {\n            bVar1 = true;\n          }" (if "if") (parenthesized_expression "(iVar7 != 0)" (( "(") (binary_expression "iVar7 != 0" (identifier "iVar7") (!= "!=") (number_literal "0")) () ")")) (compound_statement "{\n            bVar1 = true;\n          }" ({ "{") (expression_statement "bVar1 = true;" (assignment_expression "bVar1 = true" (identifier "bVar1") (= "=") (true "true")) (; ";")) (} "}"))) (} "}")))) (goto_statement "goto LAB_00013668;" (goto "goto") (statement_identifier "LAB_00013668") (; ";")) (} "}"))) (expression_statement "iVar7 = *param_2;" (assignment_expression "iVar7 = *param_2" (identifier "iVar7") (= "=") (pointer_expression "*param_2" (* "*") (identifier "param_2"))) (; ";")) (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"))) (; ";")) (expression_statement "iVar4 = iVar4 + param_4;" (assignment_expression "iVar4 = iVar4 + param_4" (identifier "iVar4") (= "=") (binary_expression "iVar4 + param_4" (identifier "iVar4") (+ "+") (identifier "param_4"))) (; ";")) (expression_statement "iVar3 = iVar5 + 1;" (assignment_expression "iVar3 = iVar5 + 1" (identifier "iVar3") (= "=") (binary_expression "iVar5 + 1" (identifier "iVar5") (+ "+") (number_literal "1"))) (; ";")) (expression_statement "iVar6 = iVar5;" (assignment_expression "iVar6 = iVar5" (identifier "iVar6") (= "=") (identifier "iVar5")) (; ";")) (} "}")) (while "while") (parenthesized_expression "(iVar7 != 0)" (( "(") (binary_expression "iVar7 != 0" (identifier "iVar7") (!= "!=") (number_literal "0")) () ")")) (; ";")) (labeled_statement "LAB_000136e8:\n    if (bVar1) {\n      iVar6 = -2;\n    }" (statement_identifier "LAB_000136e8") (: ":") (if_statement "if (bVar1) {\n      iVar6 = -2;\n    }" (if "if") (parenthesized_expression "(bVar1)" (( "(") (identifier "bVar1") () ")")) (compound_statement "{\n      iVar6 = -2;\n    }" ({ "{") (expression_statement "iVar6 = -2;" (assignment_expression "iVar6 = -2" (identifier "iVar6") (= "=") (number_literal "-2")) (; ";")) (} "}")))) (} "}")))) (return_statement "return iVar6;" (return "return") (identifier "iVar6") (; ";")) (} "}")))

ptrdiff_t function_1(char *arg,char **var_2,char *var_10,size_t var_6)

{
  bool bVar1;
  int var_8;
  int var_3;
  char **var_4;
  char *var_5;
  int var_7;
  int var_9;
  char *var_1;
  
  var_8 = (*(type_1 *)PTR_strlen_0002c2b4)();
  var_1 = *var_2;
  if (var_1 == (char *)0x0) {
    var_9 = -1;
  }
  else {
    bVar1 = false;
    var_4 = var_2 + 1;
    var_5 = var_10;
    var_3 = 0;
    var_9 = -1;
    do {
      while (var_7 = var_3, var_3 = (*(type_1 *)PTR_strncmp_0002c24c)(var_1,arg,var_8), var_3 != 0) {
LAB_00013668:
        var_1 = *var_4;
        var_4 = var_4 + 1;
        var_5 = var_5 + var_6;
        var_3 = var_7 + 1;
        if (var_1 == (char *)0x0) goto LAB_000136e8;
      }
      var_3 = (*(type_1 *)PTR_strlen_0002c2b4)(var_1);
      if (var_3 == var_8) {
        return var_7;
      }
      if (var_9 != -1) {
        if (var_10 == (char *)0x0) {
          bVar1 = true;
        }
        else {
          var_3 = (*(type_1 *)PTR_memcmp_0002c308)(var_10 + var_9 * var_6,var_5,var_6);
          if (var_3 != 0) {
            bVar1 = true;
          }
        }
        goto LAB_00013668;
      }
      var_1 = *var_4;
      var_4 = var_4 + 1;
      var_5 = var_5 + var_6;
      var_3 = var_7 + 1;
      var_9 = var_7;
    } while (var_1 != (char *)0x0);
LAB_000136e8:
    if (bVar1) {
      var_9 = -2;
    }
  }
  return var_9;
}


(translation_unit (function_definition type: (primitive_type) declarator: (function_declarator declarator: (identifier) parameters: (parameter_list (parameter_declaration type: (type_identifier) declarator: (identifier)) (parameter_declaration type: (primitive_type) declarator: (pointer_declarator declarator: (identifier))) (parameter_declaration type: (primitive_type) declarator: (identifier)) (parameter_declaration type: (primitive_type) declarator: (identifier)))) body: (compound_statement (declaration type: (primitive_type) declarator: (identifier)) (declaration type: (primitive_type) declarator: (identifier)) (declaration type: (primitive_type) declarator: (identifier)) (declaration type: (primitive_type) declarator: (identifier)) (declaration type: (primitive_type) declarator: (identifier)) (declaration type: (primitive_type) declarator: (identifier)) (declaration type: (primitive_type) declarator: (identifier)) (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)))) (expression_statement (assignment_expression left: (identifier) right: (pointer_expression argument: (identifier)))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))) consequence: (compound_statement (expression_statement (assignment_expression left: (identifier) right: (number_literal)))) alternative: (else_clause (compound_statement (expression_statement (assignment_expression left: (identifier) right: (false))) (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (identifier) right: (number_literal)))) (expression_statement (assignment_expression left: (identifier) right: (identifier))) (expression_statement (assignment_expression left: (identifier) right: (number_literal))) (expression_statement (assignment_expression left: (identifier) right: (number_literal))) (do_statement body: (compound_statement (while_statement condition: (parenthesized_expression (comma_expression left: (assignment_expression left: (identifier) right: (identifier)) right: (comma_expression left: (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) (identifier) (identifier)))) right: (binary_expression left: (identifier) right: (number_literal))))) body: (compound_statement (labeled_statement label: (statement_identifier) (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: (identifier) right: (binary_expression left: (identifier) right: (identifier)))) (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: (goto_statement label: (statement_identifier))))) (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))))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (identifier))) consequence: (compound_statement (return_statement (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: (true)))) alternative: (else_clause (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 (binary_expression left: (binary_expression left: (identifier) right: (identifier)) right: (identifier)) (identifier) (identifier))))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))) consequence: (compound_statement (expression_statement (assignment_expression left: (identifier) right: (true)))))))) (goto_statement label: (statement_identifier)))) (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: (identifier) right: (binary_expression left: (identifier) right: (identifier)))) (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (identifier) right: (number_literal)))) (expression_statement (assignment_expression left: (identifier) right: (identifier)))) condition: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal)))) (labeled_statement label: (statement_identifier) (if_statement condition: (parenthesized_expression (identifier)) consequence: (compound_statement (expression_statement (assignment_expression left: (identifier) right: (number_literal))))))))) (return_statement (identifier)))))

int MASKED(undefined4 param_1,int *param_2,int param_3,int param_4)

{
  bool bVar1;
  int iVar2;
  int iVar3;
  int iVar4;
  int iVar5;
  int iVar6;
  int iVar7;
  
  iVar2 = (*(code *)PTR_strlen_0002c2b4)();
  iVar7 = *param_2;
  if (iVar7 == 0) {
    iVar6 = -1;
  }
  else {
    bVar1 = false;
    param_2 = param_2 + 1;
    iVar4 = param_3;
    iVar3 = 0;
    iVar6 = -1;
    do {
      while (iVar5 = iVar3, iVar3 = (*(code *)PTR_strncmp_0002c24c)(iVar7,param_1,iVar2), iVar3 != 0
            ) {
LAB_00013668:
        iVar7 = *param_2;
        param_2 = param_2 + 1;
        iVar4 = iVar4 + param_4;
        iVar3 = iVar5 + 1;
        if (iVar7 == 0) goto LAB_000136e8;
      }
      iVar7 = (*(code *)PTR_strlen_0002c2b4)(iVar7);
      if (iVar7 == iVar2) {
        return iVar5;
      }
      if (iVar6 != -1) {
        if (param_3 == 0) {
          bVar1 = true;
        }
        else {
          iVar7 = (*(code *)PTR_memcmp_0002c308)(iVar6 * param_4 + param_3,iVar4,param_4);
          if (iVar7 != 0) {
            bVar1 = true;
          }
        }
        goto LAB_00013668;
      }
      iVar7 = *param_2;
      param_2 = param_2 + 1;
      iVar4 = iVar4 + param_4;
      iVar3 = iVar5 + 1;
      iVar6 = iVar5;
    } while (iVar7 != 0);
LAB_000136e8:
    if (bVar1) {
      iVar6 = -2;
    }
  }
  return iVar6;
}

