
char * INET_rresolve(sockaddr_in *s_in,int numeric,uint32_t netmask)

{
  undefined *puVar1;
  char *pcVar2;
  int iVar3;
  undefined4 *puVar4;
  int *piVar5;
  uint uVar6;
  uint uVar8;
  undefined1 uVar7;
  
  if (s_in->sin_family != 2) {
    **(undefined4 **)PTR_bb_errno_001311d8 = 0x7c;
    return (char *)0x0;
  }
  if ((numeric & 0xfffU) != 0) {
    pcVar2 = xmalloc_sockaddr2dotted_noport((sockaddr *)s_in);
    return pcVar2;
  }
  uVar8 = (s_in->sin_addr).s_addr;
  if (uVar8 == 0) {
    if ((numeric & 0x8000U) != 0) {
      pcVar2 = (char *)(*(code *)PTR_xstrdup_001312b8)(PTR_bdcommands_4__name_4__001311a4 + -0x5de4)
      ;
      return pcVar2;
    }
    pcVar2 = (char *)(*(code *)PTR_xstrdup_001312b8)(PTR_bdcommands_4__name_4__001311a4 + 0x2a80);
    return pcVar2;
  }
  if ((~netmask & uVar8) == 0) {
    uVar6 = (uint)(numeric << 0x11) >> 0x1f;
    for (piVar5 = *(int **)(PTR_OptArray_14__flags_00131178 + 0x23b0); piVar5 != (int *)0x0;
        piVar5 = (int *)*piVar5) {
LAB_000f4e68:
      if ((piVar5[1] == uVar8) && ((int)*(char *)(piVar5 + 2) == uVar6)) {
        pcVar2 = (char *)(*(code *)PTR_xstrdup_001312b8)((int)piVar5 + 9);
        return pcVar2;
      }
    }
    if (uVar6 != 0) goto LAB_000f4eac;
  }
  else {
    piVar5 = *(int **)(PTR_OptArray_14__flags_00131178 + 0x23b0);
    if (piVar5 != (int *)0x0) {
      uVar6 = 1;
      goto LAB_000f4e68;
    }
LAB_000f4eac:
    pcVar2 = xmalloc_sockaddr2host_noport((sockaddr *)s_in);
    uVar6 = 1;
    uVar7 = 1;
    if (pcVar2 != (char *)0x0) goto LAB_000f4ee4;
  }
  uVar7 = (undefined1)uVar6;
  pcVar2 = xmalloc_sockaddr2dotted_noport((sockaddr *)s_in);
LAB_000f4ee4:
  iVar3 = (*(code *)PTR_strlen_00131f58)(pcVar2);
  puVar4 = (undefined4 *)(*(code *)PTR_xmalloc_00131240)(iVar3 + 0xc);
  puVar1 = PTR_OptArray_14__flags_00131178;
  *puVar4 = *(undefined4 *)(PTR_OptArray_14__flags_00131178 + 0x23b0);
  puVar4[1] = uVar8;
  *(undefined1 *)(puVar4 + 2) = uVar7;
  (*(code *)PTR_strcpy_00132018)((int)puVar4 + 9,pcVar2);
  *(undefined4 **)(puVar1 + 0x23b0) = puVar4;
  return pcVar2;
}



int FUN_000f4d6c(short *param_1,uint param_2,uint param_3)

{
  undefined *puVar1;
  int iVar2;
  int iVar3;
  undefined4 *puVar4;
  int *piVar5;
  uint uVar6;
  uint uVar8;
  undefined1 uVar7;
  
  if (*param_1 != 2) {
    **(undefined4 **)PTR_DAT_001311d8 = 0x7c;
    return 0;
  }
  if ((param_2 & 0xfff) != 0) {
    iVar2 = FUN_00103cc8();
    return iVar2;
  }
  uVar8 = *(uint *)(param_1 + 2);
  if (uVar8 == 0) {
    if ((param_2 & 0x8000) != 0) {
      iVar2 = (*(code *)PTR_FUN_001312b8)(PTR_FUN_001311a4 + -0x5de4);
      return iVar2;
    }
    iVar2 = (*(code *)PTR_FUN_001312b8)(PTR_FUN_001311a4 + 0x2a80);
    return iVar2;
  }
  if ((~param_3 & uVar8) == 0) {
    uVar6 = (param_2 << 0x11) >> 0x1f;
    for (piVar5 = *(int **)(PTR_DAT_00131178 + 0x23b0); piVar5 != (int *)0x0;
        piVar5 = (int *)*piVar5) {
LAB_000f4e68:
      if ((piVar5[1] == uVar8) && ((int)*(char *)(piVar5 + 2) == uVar6)) {
        iVar2 = (*(code *)PTR_FUN_001312b8)((int)piVar5 + 9);
        return iVar2;
      }
    }
    if (uVar6 != 0) goto LAB_000f4eac;
  }
  else {
    piVar5 = *(int **)(PTR_DAT_00131178 + 0x23b0);
    if (piVar5 != (int *)0x0) {
      uVar6 = 1;
      goto LAB_000f4e68;
    }
LAB_000f4eac:
    iVar2 = FUN_00103c50(param_1);
    uVar6 = 1;
    uVar7 = 1;
    if (iVar2 != 0) goto LAB_000f4ee4;
  }
  uVar7 = (undefined1)uVar6;
  iVar2 = FUN_00103cc8(param_1);
LAB_000f4ee4:
  iVar3 = (*(code *)PTR_strlen_00131f58)(iVar2);
  puVar4 = (undefined4 *)(*(code *)PTR_FUN_00131240)(iVar3 + 0xc);
  puVar1 = PTR_DAT_00131178;
  *puVar4 = *(undefined4 *)(PTR_DAT_00131178 + 0x23b0);
  puVar4[1] = uVar8;
  *(undefined1 *)(puVar4 + 2) = uVar7;
  (*(code *)PTR_strcpy_00132018)((int)puVar4 + 9,iVar2);
  *(undefined4 **)(puVar1 + 0x23b0) = puVar4;
  return iVar2;
}


lui gp,0x4
addiu gp,gp,0x43e4
addu gp,gp,t9
addiu sp,sp,-0x30
sw ra,0x2c(sp)
sw s4,0x28(sp)
sw s3,0x24(sp)
sw s2,0x20(sp)
sw s1,0x1c(sp)
sw s0,0x18(sp)
sw gp,0x10(sp)
lhu v1,0x0(a0)
li v0,0x2
beq v1,v0,0x000f4ddc
_lw v0,-0x7f78(gp)
lw v0,0x0(v0)
li v1,0x7c
sw v1,0x0(v0)
or s1,zero,zero
or v0,s1,zero
lw ra,0x2c(sp)
lw s4,0x28(sp)
lw s3,0x24(sp)
lw s2,0x20(sp)
lw s1,0x1c(sp)
lw s0,0x18(sp)
jr ra
_addiu sp,sp,0x30
andi v0,a1,0xfff
beq v0,zero,0x000f4e00
_or s2,a0,zero
lw t9,-0x7bc8(gp)
bal 0x00103cc8
_nop
lw gp,0x10(sp)
b 0x000f4db8
_or s1,v0,zero
lw s3,0x4(a0)
bne s3,zero,0x000f4e50
_nor a2,zero,a2
andi a1,a1,0x8000
beq a1,zero,0x000f4e34
_lw t9,-0x7e98(gp)
lw a0,-0x7fac(gp)
addiu a0,a0,-0x5de4
jalr t9
_nop
lw gp,0x10(sp)
b 0x000f4db8
_or s1,v0,zero
lw a0,-0x7fac(gp)
addiu a0,a0,0x2a80
jalr t9
_nop
lw gp,0x10(sp)
b 0x000f4db8
_or s1,v0,zero
and a2,a2,s3
bne a2,zero,0x000f4f44
_lw v0,-0x7fd8(gp)
lw a0,0x23b0(v0)
beq a0,zero,0x000f4ea4
_ext s0,a1,0xe,0x1
lw v1,0x4(a0)
bne v1,s3,0x000f4e98
_nop
lb v1,0x8(a0)
bne v1,s0,0x000f4e98
_lw t9,-0x7e98(gp)
addiu a0,a0,0x9
jalr t9
_nop
lw gp,0x10(sp)
b 0x000f4db8
_or s1,v0,zero
lw a0,0x0(a0)
bne a0,zero,0x000f4e68
_nop
beq s0,zero,0x000f4ed0
_or a0,s2,zero
or a0,s2,zero
lw t9,-0x7bcc(gp)
bal 0x00103c50
_nop
lw gp,0x10(sp)
or s1,v0,zero
bne v0,zero,0x000f4ee4
_li s0,0x1
or a0,s2,zero
lw t9,-0x7bc8(gp)
bal 0x00103cc8
_nop
lw gp,0x10(sp)
or s1,v0,zero
or a0,s1,zero
lw t9,-0x71f8(gp)
jalr t9
_nop
lw gp,0x10(sp)
addiu a0,v0,0xc
lw t9,-0x7f10(gp)
jalr t9
_nop
lw gp,0x10(sp)
or s2,v0,zero
lw s4,-0x7fd8(gp)
lw v0,0x23b0(s4)
sw v0,0x0(s2)
sw s3,0x4(s2)
sb s0,0x8(s2)
or a1,s1,zero
addiu a0,s2,0x9
lw t9,-0x7138(gp)
jalr t9
_nop
lw gp,0x10(sp)
b 0x000f4db8
_sw s2,0x23b0(s4)
lw a0,0x23b0(v0)
beq a0,zero,0x000f4eac
_nop
b 0x000f4e68
_li s0,0x1
(translation_unit "int FUN_000f4d6c(short *param_1,uint param_2,uint param_3)\n\n{\n  undefined *puVar1;\n  int iVar2;\n  int iVar3;\n  undefined4 *puVar4;\n  int *piVar5;\n  uint uVar6;\n  uint uVar8;\n  undefined1 uVar7;\n  \n  if (*param_1 != 2) {\n    **(undefined4 **)PTR_DAT_001311d8 = 0x7c;\n    return 0;\n  }\n  if ((param_2 & 0xfff) != 0) {\n    iVar2 = FUN_00103cc8();\n    return iVar2;\n  }\n  uVar8 = *(uint *)(param_1 + 2);\n  if (uVar8 == 0) {\n    if ((param_2 & 0x8000) != 0) {\n      iVar2 = (*(code *)PTR_FUN_001312b8)(PTR_FUN_001311a4 + -0x5de4);\n      return iVar2;\n    }\n    iVar2 = (*(code *)PTR_FUN_001312b8)(PTR_FUN_001311a4 + 0x2a80);\n    return iVar2;\n  }\n  if ((~param_3 & uVar8) == 0) {\n    uVar6 = (param_2 << 0x11) >> 0x1f;\n    for (piVar5 = *(int **)(PTR_DAT_00131178 + 0x23b0); piVar5 != (int *)0x0;\n        piVar5 = (int *)*piVar5) {\nLAB_000f4e68:\n      if ((piVar5[1] == uVar8) && ((int)*(char *)(piVar5 + 2) == uVar6)) {\n        iVar2 = (*(code *)PTR_FUN_001312b8)((int)piVar5 + 9);\n        return iVar2;\n      }\n    }\n    if (uVar6 != 0) goto LAB_000f4eac;\n  }\n  else {\n    piVar5 = *(int **)(PTR_DAT_00131178 + 0x23b0);\n    if (piVar5 != (int *)0x0) {\n      uVar6 = 1;\n      goto LAB_000f4e68;\n    }\nLAB_000f4eac:\n    iVar2 = FUN_00103c50(param_1);\n    uVar6 = 1;\n    uVar7 = 1;\n    if (iVar2 != 0) goto LAB_000f4ee4;\n  }\n  uVar7 = (undefined1)uVar6;\n  iVar2 = FUN_00103cc8(param_1);\nLAB_000f4ee4:\n  iVar3 = (*(code *)PTR_strlen_00131f58)(iVar2);\n  puVar4 = (undefined4 *)(*(code *)PTR_FUN_00131240)(iVar3 + 0xc);\n  puVar1 = PTR_DAT_00131178;\n  *puVar4 = *(undefined4 *)(PTR_DAT_00131178 + 0x23b0);\n  puVar4[1] = uVar8;\n  *(undefined1 *)(puVar4 + 2) = uVar7;\n  (*(code *)PTR_strcpy_00132018)((int)puVar4 + 9,iVar2);\n  *(undefined4 **)(puVar1 + 0x23b0) = puVar4;\n  return iVar2;\n}\n\n" (function_definition "int FUN_000f4d6c(short *param_1,uint param_2,uint param_3)\n\n{\n  undefined *puVar1;\n  int iVar2;\n  int iVar3;\n  undefined4 *puVar4;\n  int *piVar5;\n  uint uVar6;\n  uint uVar8;\n  undefined1 uVar7;\n  \n  if (*param_1 != 2) {\n    **(undefined4 **)PTR_DAT_001311d8 = 0x7c;\n    return 0;\n  }\n  if ((param_2 & 0xfff) != 0) {\n    iVar2 = FUN_00103cc8();\n    return iVar2;\n  }\n  uVar8 = *(uint *)(param_1 + 2);\n  if (uVar8 == 0) {\n    if ((param_2 & 0x8000) != 0) {\n      iVar2 = (*(code *)PTR_FUN_001312b8)(PTR_FUN_001311a4 + -0x5de4);\n      return iVar2;\n    }\n    iVar2 = (*(code *)PTR_FUN_001312b8)(PTR_FUN_001311a4 + 0x2a80);\n    return iVar2;\n  }\n  if ((~param_3 & uVar8) == 0) {\n    uVar6 = (param_2 << 0x11) >> 0x1f;\n    for (piVar5 = *(int **)(PTR_DAT_00131178 + 0x23b0); piVar5 != (int *)0x0;\n        piVar5 = (int *)*piVar5) {\nLAB_000f4e68:\n      if ((piVar5[1] == uVar8) && ((int)*(char *)(piVar5 + 2) == uVar6)) {\n        iVar2 = (*(code *)PTR_FUN_001312b8)((int)piVar5 + 9);\n        return iVar2;\n      }\n    }\n    if (uVar6 != 0) goto LAB_000f4eac;\n  }\n  else {\n    piVar5 = *(int **)(PTR_DAT_00131178 + 0x23b0);\n    if (piVar5 != (int *)0x0) {\n      uVar6 = 1;\n      goto LAB_000f4e68;\n    }\nLAB_000f4eac:\n    iVar2 = FUN_00103c50(param_1);\n    uVar6 = 1;\n    uVar7 = 1;\n    if (iVar2 != 0) goto LAB_000f4ee4;\n  }\n  uVar7 = (undefined1)uVar6;\n  iVar2 = FUN_00103cc8(param_1);\nLAB_000f4ee4:\n  iVar3 = (*(code *)PTR_strlen_00131f58)(iVar2);\n  puVar4 = (undefined4 *)(*(code *)PTR_FUN_00131240)(iVar3 + 0xc);\n  puVar1 = PTR_DAT_00131178;\n  *puVar4 = *(undefined4 *)(PTR_DAT_00131178 + 0x23b0);\n  puVar4[1] = uVar8;\n  *(undefined1 *)(puVar4 + 2) = uVar7;\n  (*(code *)PTR_strcpy_00132018)((int)puVar4 + 9,iVar2);\n  *(undefined4 **)(puVar1 + 0x23b0) = puVar4;\n  return iVar2;\n}" primitive_type (function_declarator "FUN_000f4d6c(short *param_1,uint param_2,uint param_3)" identifier (parameter_list "(short *param_1,uint param_2,uint param_3)" ( (parameter_declaration "short *param_1" (sized_type_specifier "short" short) (pointer_declarator "*param_1" * identifier)) , (parameter_declaration "uint param_2" type_identifier identifier) , (parameter_declaration "uint param_3" type_identifier identifier) ))) (compound_statement "{\n  undefined *puVar1;\n  int iVar2;\n  int iVar3;\n  undefined4 *puVar4;\n  int *piVar5;\n  uint uVar6;\n  uint uVar8;\n  undefined1 uVar7;\n  \n  if (*param_1 != 2) {\n    **(undefined4 **)PTR_DAT_001311d8 = 0x7c;\n    return 0;\n  }\n  if ((param_2 & 0xfff) != 0) {\n    iVar2 = FUN_00103cc8();\n    return iVar2;\n  }\n  uVar8 = *(uint *)(param_1 + 2);\n  if (uVar8 == 0) {\n    if ((param_2 & 0x8000) != 0) {\n      iVar2 = (*(code *)PTR_FUN_001312b8)(PTR_FUN_001311a4 + -0x5de4);\n      return iVar2;\n    }\n    iVar2 = (*(code *)PTR_FUN_001312b8)(PTR_FUN_001311a4 + 0x2a80);\n    return iVar2;\n  }\n  if ((~param_3 & uVar8) == 0) {\n    uVar6 = (param_2 << 0x11) >> 0x1f;\n    for (piVar5 = *(int **)(PTR_DAT_00131178 + 0x23b0); piVar5 != (int *)0x0;\n        piVar5 = (int *)*piVar5) {\nLAB_000f4e68:\n      if ((piVar5[1] == uVar8) && ((int)*(char *)(piVar5 + 2) == uVar6)) {\n        iVar2 = (*(code *)PTR_FUN_001312b8)((int)piVar5 + 9);\n        return iVar2;\n      }\n    }\n    if (uVar6 != 0) goto LAB_000f4eac;\n  }\n  else {\n    piVar5 = *(int **)(PTR_DAT_00131178 + 0x23b0);\n    if (piVar5 != (int *)0x0) {\n      uVar6 = 1;\n      goto LAB_000f4e68;\n    }\nLAB_000f4eac:\n    iVar2 = FUN_00103c50(param_1);\n    uVar6 = 1;\n    uVar7 = 1;\n    if (iVar2 != 0) goto LAB_000f4ee4;\n  }\n  uVar7 = (undefined1)uVar6;\n  iVar2 = FUN_00103cc8(param_1);\nLAB_000f4ee4:\n  iVar3 = (*(code *)PTR_strlen_00131f58)(iVar2);\n  puVar4 = (undefined4 *)(*(code *)PTR_FUN_00131240)(iVar3 + 0xc);\n  puVar1 = PTR_DAT_00131178;\n  *puVar4 = *(undefined4 *)(PTR_DAT_00131178 + 0x23b0);\n  puVar4[1] = uVar8;\n  *(undefined1 *)(puVar4 + 2) = uVar7;\n  (*(code *)PTR_strcpy_00132018)((int)puVar4 + 9,iVar2);\n  *(undefined4 **)(puVar1 + 0x23b0) = puVar4;\n  return iVar2;\n}" { (declaration "undefined *puVar1;" type_identifier (pointer_declarator "*puVar1" * identifier) ;) (declaration "int iVar2;" primitive_type identifier ;) (declaration "int iVar3;" primitive_type identifier ;) (declaration "undefined4 *puVar4;" type_identifier (pointer_declarator "*puVar4" * identifier) ;) (declaration "int *piVar5;" primitive_type (pointer_declarator "*piVar5" * identifier) ;) (declaration "uint uVar6;" type_identifier identifier ;) (declaration "uint uVar8;" type_identifier identifier ;) (declaration "undefined1 uVar7;" type_identifier identifier ;) (if_statement "if (*param_1 != 2) {\n    **(undefined4 **)PTR_DAT_001311d8 = 0x7c;\n    return 0;\n  }" if (parenthesized_expression "(*param_1 != 2)" ( (binary_expression "*param_1 != 2" (pointer_expression "*param_1" * identifier) != number_literal) )) (compound_statement "{\n    **(undefined4 **)PTR_DAT_001311d8 = 0x7c;\n    return 0;\n  }" { (expression_statement "**(undefined4 **)PTR_DAT_001311d8 = 0x7c;" (assignment_expression "**(undefined4 **)PTR_DAT_001311d8 = 0x7c" (pointer_expression "**(undefined4 **)PTR_DAT_001311d8" * (pointer_expression "*(undefined4 **)PTR_DAT_001311d8" * (cast_expression "(undefined4 **)PTR_DAT_001311d8" ( (type_descriptor "undefined4 **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) identifier))) = number_literal) ;) (return_statement "return 0;" return number_literal ;) })) (if_statement "if ((param_2 & 0xfff) != 0) {\n    iVar2 = FUN_00103cc8();\n    return iVar2;\n  }" if (parenthesized_expression "((param_2 & 0xfff) != 0)" ( (binary_expression "(param_2 & 0xfff) != 0" (parenthesized_expression "(param_2 & 0xfff)" ( (binary_expression "param_2 & 0xfff" identifier & number_literal) )) != number_literal) )) (compound_statement "{\n    iVar2 = FUN_00103cc8();\n    return iVar2;\n  }" { (expression_statement "iVar2 = FUN_00103cc8();" (assignment_expression "iVar2 = FUN_00103cc8()" identifier = (call_expression "FUN_00103cc8()" identifier (argument_list "()" ( )))) ;) (return_statement "return iVar2;" return identifier ;) })) (expression_statement "uVar8 = *(uint *)(param_1 + 2);" (assignment_expression "uVar8 = *(uint *)(param_1 + 2)" identifier = (pointer_expression "*(uint *)(param_1 + 2)" * (cast_expression "(uint *)(param_1 + 2)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 2)" ( (binary_expression "param_1 + 2" identifier + number_literal) ))))) ;) (if_statement "if (uVar8 == 0) {\n    if ((param_2 & 0x8000) != 0) {\n      iVar2 = (*(code *)PTR_FUN_001312b8)(PTR_FUN_001311a4 + -0x5de4);\n      return iVar2;\n    }\n    iVar2 = (*(code *)PTR_FUN_001312b8)(PTR_FUN_001311a4 + 0x2a80);\n    return iVar2;\n  }" if (parenthesized_expression "(uVar8 == 0)" ( (binary_expression "uVar8 == 0" identifier == number_literal) )) (compound_statement "{\n    if ((param_2 & 0x8000) != 0) {\n      iVar2 = (*(code *)PTR_FUN_001312b8)(PTR_FUN_001311a4 + -0x5de4);\n      return iVar2;\n    }\n    iVar2 = (*(code *)PTR_FUN_001312b8)(PTR_FUN_001311a4 + 0x2a80);\n    return iVar2;\n  }" { (if_statement "if ((param_2 & 0x8000) != 0) {\n      iVar2 = (*(code *)PTR_FUN_001312b8)(PTR_FUN_001311a4 + -0x5de4);\n      return iVar2;\n    }" if (parenthesized_expression "((param_2 & 0x8000) != 0)" ( (binary_expression "(param_2 & 0x8000) != 0" (parenthesized_expression "(param_2 & 0x8000)" ( (binary_expression "param_2 & 0x8000" identifier & number_literal) )) != number_literal) )) (compound_statement "{\n      iVar2 = (*(code *)PTR_FUN_001312b8)(PTR_FUN_001311a4 + -0x5de4);\n      return iVar2;\n    }" { (expression_statement "iVar2 = (*(code *)PTR_FUN_001312b8)(PTR_FUN_001311a4 + -0x5de4);" (assignment_expression "iVar2 = (*(code *)PTR_FUN_001312b8)(PTR_FUN_001311a4 + -0x5de4)" identifier = (call_expression "(*(code *)PTR_FUN_001312b8)(PTR_FUN_001311a4 + -0x5de4)" (parenthesized_expression "(*(code *)PTR_FUN_001312b8)" ( (pointer_expression "*(code *)PTR_FUN_001312b8" * (cast_expression "(code *)PTR_FUN_001312b8" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(PTR_FUN_001311a4 + -0x5de4)" ( (binary_expression "PTR_FUN_001311a4 + -0x5de4" identifier + number_literal) )))) ;) (return_statement "return iVar2;" return identifier ;) })) (expression_statement "iVar2 = (*(code *)PTR_FUN_001312b8)(PTR_FUN_001311a4 + 0x2a80);" (assignment_expression "iVar2 = (*(code *)PTR_FUN_001312b8)(PTR_FUN_001311a4 + 0x2a80)" identifier = (call_expression "(*(code *)PTR_FUN_001312b8)(PTR_FUN_001311a4 + 0x2a80)" (parenthesized_expression "(*(code *)PTR_FUN_001312b8)" ( (pointer_expression "*(code *)PTR_FUN_001312b8" * (cast_expression "(code *)PTR_FUN_001312b8" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(PTR_FUN_001311a4 + 0x2a80)" ( (binary_expression "PTR_FUN_001311a4 + 0x2a80" identifier + number_literal) )))) ;) (return_statement "return iVar2;" return identifier ;) })) (if_statement "if ((~param_3 & uVar8) == 0) {\n    uVar6 = (param_2 << 0x11) >> 0x1f;\n    for (piVar5 = *(int **)(PTR_DAT_00131178 + 0x23b0); piVar5 != (int *)0x0;\n        piVar5 = (int *)*piVar5) {\nLAB_000f4e68:\n      if ((piVar5[1] == uVar8) && ((int)*(char *)(piVar5 + 2) == uVar6)) {\n        iVar2 = (*(code *)PTR_FUN_001312b8)((int)piVar5 + 9);\n        return iVar2;\n      }\n    }\n    if (uVar6 != 0) goto LAB_000f4eac;\n  }\n  else {\n    piVar5 = *(int **)(PTR_DAT_00131178 + 0x23b0);\n    if (piVar5 != (int *)0x0) {\n      uVar6 = 1;\n      goto LAB_000f4e68;\n    }\nLAB_000f4eac:\n    iVar2 = FUN_00103c50(param_1);\n    uVar6 = 1;\n    uVar7 = 1;\n    if (iVar2 != 0) goto LAB_000f4ee4;\n  }" if (parenthesized_expression "((~param_3 & uVar8) == 0)" ( (binary_expression "(~param_3 & uVar8) == 0" (parenthesized_expression "(~param_3 & uVar8)" ( (binary_expression "~param_3 & uVar8" (unary_expression "~param_3" ~ identifier) & identifier) )) == number_literal) )) (compound_statement "{\n    uVar6 = (param_2 << 0x11) >> 0x1f;\n    for (piVar5 = *(int **)(PTR_DAT_00131178 + 0x23b0); piVar5 != (int *)0x0;\n        piVar5 = (int *)*piVar5) {\nLAB_000f4e68:\n      if ((piVar5[1] == uVar8) && ((int)*(char *)(piVar5 + 2) == uVar6)) {\n        iVar2 = (*(code *)PTR_FUN_001312b8)((int)piVar5 + 9);\n        return iVar2;\n      }\n    }\n    if (uVar6 != 0) goto LAB_000f4eac;\n  }" { (expression_statement "uVar6 = (param_2 << 0x11) >> 0x1f;" (assignment_expression "uVar6 = (param_2 << 0x11) >> 0x1f" identifier = (binary_expression "(param_2 << 0x11) >> 0x1f" (parenthesized_expression "(param_2 << 0x11)" ( (binary_expression "param_2 << 0x11" identifier << number_literal) )) >> number_literal)) ;) (for_statement "for (piVar5 = *(int **)(PTR_DAT_00131178 + 0x23b0); piVar5 != (int *)0x0;\n        piVar5 = (int *)*piVar5) {\nLAB_000f4e68:\n      if ((piVar5[1] == uVar8) && ((int)*(char *)(piVar5 + 2) == uVar6)) {\n        iVar2 = (*(code *)PTR_FUN_001312b8)((int)piVar5 + 9);\n        return iVar2;\n      }\n    }" for ( (assignment_expression "piVar5 = *(int **)(PTR_DAT_00131178 + 0x23b0)" identifier = (pointer_expression "*(int **)(PTR_DAT_00131178 + 0x23b0)" * (cast_expression "(int **)(PTR_DAT_00131178 + 0x23b0)" ( (type_descriptor "int **" primitive_type (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(PTR_DAT_00131178 + 0x23b0)" ( (binary_expression "PTR_DAT_00131178 + 0x23b0" identifier + number_literal) ))))) ; (binary_expression "piVar5 != (int *)0x0" identifier != (cast_expression "(int *)0x0" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) ; (assignment_expression "piVar5 = (int *)*piVar5" identifier = (cast_expression "(int *)*piVar5" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (pointer_expression "*piVar5" * identifier))) ) (compound_statement "{\nLAB_000f4e68:\n      if ((piVar5[1] == uVar8) && ((int)*(char *)(piVar5 + 2) == uVar6)) {\n        iVar2 = (*(code *)PTR_FUN_001312b8)((int)piVar5 + 9);\n        return iVar2;\n      }\n    }" { (labeled_statement "LAB_000f4e68:\n      if ((piVar5[1] == uVar8) && ((int)*(char *)(piVar5 + 2) == uVar6)) {\n        iVar2 = (*(code *)PTR_FUN_001312b8)((int)piVar5 + 9);\n        return iVar2;\n      }" statement_identifier : (if_statement "if ((piVar5[1] == uVar8) && ((int)*(char *)(piVar5 + 2) == uVar6)) {\n        iVar2 = (*(code *)PTR_FUN_001312b8)((int)piVar5 + 9);\n        return iVar2;\n      }" if (parenthesized_expression "((piVar5[1] == uVar8) && ((int)*(char *)(piVar5 + 2) == uVar6))" ( (binary_expression "(piVar5[1] == uVar8) && ((int)*(char *)(piVar5 + 2) == uVar6)" (parenthesized_expression "(piVar5[1] == uVar8)" ( (binary_expression "piVar5[1] == uVar8" (subscript_expression "piVar5[1]" identifier [ number_literal ]) == identifier) )) && (parenthesized_expression "((int)*(char *)(piVar5 + 2) == uVar6)" ( (binary_expression "(int)*(char *)(piVar5 + 2) == uVar6" (cast_expression "(int)*(char *)(piVar5 + 2)" ( (type_descriptor "int" primitive_type) ) (pointer_expression "*(char *)(piVar5 + 2)" * (cast_expression "(char *)(piVar5 + 2)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(piVar5 + 2)" ( (binary_expression "piVar5 + 2" identifier + number_literal) ))))) == identifier) ))) )) (compound_statement "{\n        iVar2 = (*(code *)PTR_FUN_001312b8)((int)piVar5 + 9);\n        return iVar2;\n      }" { (expression_statement "iVar2 = (*(code *)PTR_FUN_001312b8)((int)piVar5 + 9);" (assignment_expression "iVar2 = (*(code *)PTR_FUN_001312b8)((int)piVar5 + 9)" identifier = (call_expression "(*(code *)PTR_FUN_001312b8)((int)piVar5 + 9)" (parenthesized_expression "(*(code *)PTR_FUN_001312b8)" ( (pointer_expression "*(code *)PTR_FUN_001312b8" * (cast_expression "(code *)PTR_FUN_001312b8" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "((int)piVar5 + 9)" ( (binary_expression "(int)piVar5 + 9" (cast_expression "(int)piVar5" ( (type_descriptor "int" primitive_type) ) identifier) + number_literal) )))) ;) (return_statement "return iVar2;" return identifier ;) }))) })) (if_statement "if (uVar6 != 0) goto LAB_000f4eac;" if (parenthesized_expression "(uVar6 != 0)" ( (binary_expression "uVar6 != 0" identifier != number_literal) )) (goto_statement "goto LAB_000f4eac;" goto statement_identifier ;)) }) (else_clause "else {\n    piVar5 = *(int **)(PTR_DAT_00131178 + 0x23b0);\n    if (piVar5 != (int *)0x0) {\n      uVar6 = 1;\n      goto LAB_000f4e68;\n    }\nLAB_000f4eac:\n    iVar2 = FUN_00103c50(param_1);\n    uVar6 = 1;\n    uVar7 = 1;\n    if (iVar2 != 0) goto LAB_000f4ee4;\n  }" else (compound_statement "{\n    piVar5 = *(int **)(PTR_DAT_00131178 + 0x23b0);\n    if (piVar5 != (int *)0x0) {\n      uVar6 = 1;\n      goto LAB_000f4e68;\n    }\nLAB_000f4eac:\n    iVar2 = FUN_00103c50(param_1);\n    uVar6 = 1;\n    uVar7 = 1;\n    if (iVar2 != 0) goto LAB_000f4ee4;\n  }" { (expression_statement "piVar5 = *(int **)(PTR_DAT_00131178 + 0x23b0);" (assignment_expression "piVar5 = *(int **)(PTR_DAT_00131178 + 0x23b0)" identifier = (pointer_expression "*(int **)(PTR_DAT_00131178 + 0x23b0)" * (cast_expression "(int **)(PTR_DAT_00131178 + 0x23b0)" ( (type_descriptor "int **" primitive_type (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(PTR_DAT_00131178 + 0x23b0)" ( (binary_expression "PTR_DAT_00131178 + 0x23b0" identifier + number_literal) ))))) ;) (if_statement "if (piVar5 != (int *)0x0) {\n      uVar6 = 1;\n      goto LAB_000f4e68;\n    }" if (parenthesized_expression "(piVar5 != (int *)0x0)" ( (binary_expression "piVar5 != (int *)0x0" identifier != (cast_expression "(int *)0x0" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n      uVar6 = 1;\n      goto LAB_000f4e68;\n    }" { (expression_statement "uVar6 = 1;" (assignment_expression "uVar6 = 1" identifier = number_literal) ;) (goto_statement "goto LAB_000f4e68;" goto statement_identifier ;) })) (labeled_statement "LAB_000f4eac:\n    iVar2 = FUN_00103c50(param_1);" statement_identifier : (expression_statement "iVar2 = FUN_00103c50(param_1);" (assignment_expression "iVar2 = FUN_00103c50(param_1)" identifier = (call_expression "FUN_00103c50(param_1)" identifier (argument_list "(param_1)" ( identifier )))) ;)) (expression_statement "uVar6 = 1;" (assignment_expression "uVar6 = 1" identifier = number_literal) ;) (expression_statement "uVar7 = 1;" (assignment_expression "uVar7 = 1" identifier = number_literal) ;) (if_statement "if (iVar2 != 0) goto LAB_000f4ee4;" if (parenthesized_expression "(iVar2 != 0)" ( (binary_expression "iVar2 != 0" identifier != number_literal) )) (goto_statement "goto LAB_000f4ee4;" goto statement_identifier ;)) }))) (expression_statement "uVar7 = (undefined1)uVar6;" (assignment_expression "uVar7 = (undefined1)uVar6" identifier = (cast_expression "(undefined1)uVar6" ( (type_descriptor "undefined1" type_identifier) ) identifier)) ;) (expression_statement "iVar2 = FUN_00103cc8(param_1);" (assignment_expression "iVar2 = FUN_00103cc8(param_1)" identifier = (call_expression "FUN_00103cc8(param_1)" identifier (argument_list "(param_1)" ( identifier )))) ;) (labeled_statement "LAB_000f4ee4:\n  iVar3 = (*(code *)PTR_strlen_00131f58)(iVar2);" statement_identifier : (expression_statement "iVar3 = (*(code *)PTR_strlen_00131f58)(iVar2);" (assignment_expression "iVar3 = (*(code *)PTR_strlen_00131f58)(iVar2)" identifier = (call_expression "(*(code *)PTR_strlen_00131f58)(iVar2)" (parenthesized_expression "(*(code *)PTR_strlen_00131f58)" ( (pointer_expression "*(code *)PTR_strlen_00131f58" * (cast_expression "(code *)PTR_strlen_00131f58" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(iVar2)" ( identifier )))) ;)) (expression_statement "puVar4 = (undefined4 *)(*(code *)PTR_FUN_00131240)(iVar3 + 0xc);" (assignment_expression "puVar4 = (undefined4 *)(*(code *)PTR_FUN_00131240)(iVar3 + 0xc)" identifier = (cast_expression "(undefined4 *)(*(code *)PTR_FUN_00131240)(iVar3 + 0xc)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (call_expression "(*(code *)PTR_FUN_00131240)(iVar3 + 0xc)" (parenthesized_expression "(*(code *)PTR_FUN_00131240)" ( (pointer_expression "*(code *)PTR_FUN_00131240" * (cast_expression "(code *)PTR_FUN_00131240" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(iVar3 + 0xc)" ( (binary_expression "iVar3 + 0xc" identifier + number_literal) ))))) ;) (expression_statement "puVar1 = PTR_DAT_00131178;" (assignment_expression "puVar1 = PTR_DAT_00131178" identifier = identifier) ;) (expression_statement "*puVar4 = *(undefined4 *)(PTR_DAT_00131178 + 0x23b0);" (assignment_expression "*puVar4 = *(undefined4 *)(PTR_DAT_00131178 + 0x23b0)" (pointer_expression "*puVar4" * identifier) = (pointer_expression "*(undefined4 *)(PTR_DAT_00131178 + 0x23b0)" * (cast_expression "(undefined4 *)(PTR_DAT_00131178 + 0x23b0)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(PTR_DAT_00131178 + 0x23b0)" ( (binary_expression "PTR_DAT_00131178 + 0x23b0" identifier + number_literal) ))))) ;) (expression_statement "puVar4[1] = uVar8;" (assignment_expression "puVar4[1] = uVar8" (subscript_expression "puVar4[1]" identifier [ number_literal ]) = identifier) ;) (expression_statement "*(undefined1 *)(puVar4 + 2) = uVar7;" (assignment_expression "*(undefined1 *)(puVar4 + 2) = uVar7" (pointer_expression "*(undefined1 *)(puVar4 + 2)" * (cast_expression "(undefined1 *)(puVar4 + 2)" ( (type_descriptor "undefined1 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(puVar4 + 2)" ( (binary_expression "puVar4 + 2" identifier + number_literal) )))) = identifier) ;) (expression_statement "(*(code *)PTR_strcpy_00132018)((int)puVar4 + 9,iVar2);" (call_expression "(*(code *)PTR_strcpy_00132018)((int)puVar4 + 9,iVar2)" (parenthesized_expression "(*(code *)PTR_strcpy_00132018)" ( (pointer_expression "*(code *)PTR_strcpy_00132018" * (cast_expression "(code *)PTR_strcpy_00132018" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "((int)puVar4 + 9,iVar2)" ( (binary_expression "(int)puVar4 + 9" (cast_expression "(int)puVar4" ( (type_descriptor "int" primitive_type) ) identifier) + number_literal) , identifier ))) ;) (expression_statement "*(undefined4 **)(puVar1 + 0x23b0) = puVar4;" (assignment_expression "*(undefined4 **)(puVar1 + 0x23b0) = puVar4" (pointer_expression "*(undefined4 **)(puVar1 + 0x23b0)" * (cast_expression "(undefined4 **)(puVar1 + 0x23b0)" ( (type_descriptor "undefined4 **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(puVar1 + 0x23b0)" ( (binary_expression "puVar1 + 0x23b0" identifier + number_literal) )))) = identifier) ;) (return_statement "return iVar2;" return identifier ;) })))
(translation_unit "char * INET_rresolve(sockaddr_in *s_in,int numeric,uint32_t netmask)\n\n{\n  undefined *puVar1;\n  char *pcVar2;\n  int iVar3;\n  undefined4 *puVar4;\n  int *piVar5;\n  uint uVar6;\n  uint uVar8;\n  undefined1 uVar7;\n  \n  if (s_in->sin_family != 2) {\n    **(undefined4 **)PTR_bb_errno_001311d8 = 0x7c;\n    return (char *)0x0;\n  }\n  if ((numeric & 0xfffU) != 0) {\n    pcVar2 = xmalloc_sockaddr2dotted_noport((sockaddr *)s_in);\n    return pcVar2;\n  }\n  uVar8 = (s_in->sin_addr).s_addr;\n  if (uVar8 == 0) {\n    if ((numeric & 0x8000U) != 0) {\n      pcVar2 = (char *)(*(code *)PTR_xstrdup_001312b8)(PTR_bdcommands_4__name_4__001311a4 + -0x5de4)\n      ;\n      return pcVar2;\n    }\n    pcVar2 = (char *)(*(code *)PTR_xstrdup_001312b8)(PTR_bdcommands_4__name_4__001311a4 + 0x2a80);\n    return pcVar2;\n  }\n  if ((~netmask & uVar8) == 0) {\n    uVar6 = (uint)(numeric << 0x11) >> 0x1f;\n    for (piVar5 = *(int **)(PTR_OptArray_14__flags_00131178 + 0x23b0); piVar5 != (int *)0x0;\n        piVar5 = (int *)*piVar5) {\nLAB_000f4e68:\n      if ((piVar5[1] == uVar8) && ((int)*(char *)(piVar5 + 2) == uVar6)) {\n        pcVar2 = (char *)(*(code *)PTR_xstrdup_001312b8)((int)piVar5 + 9);\n        return pcVar2;\n      }\n    }\n    if (uVar6 != 0) goto LAB_000f4eac;\n  }\n  else {\n    piVar5 = *(int **)(PTR_OptArray_14__flags_00131178 + 0x23b0);\n    if (piVar5 != (int *)0x0) {\n      uVar6 = 1;\n      goto LAB_000f4e68;\n    }\nLAB_000f4eac:\n    pcVar2 = xmalloc_sockaddr2host_noport((sockaddr *)s_in);\n    uVar6 = 1;\n    uVar7 = 1;\n    if (pcVar2 != (char *)0x0) goto LAB_000f4ee4;\n  }\n  uVar7 = (undefined1)uVar6;\n  pcVar2 = xmalloc_sockaddr2dotted_noport((sockaddr *)s_in);\nLAB_000f4ee4:\n  iVar3 = (*(code *)PTR_strlen_00131f58)(pcVar2);\n  puVar4 = (undefined4 *)(*(code *)PTR_xmalloc_00131240)(iVar3 + 0xc);\n  puVar1 = PTR_OptArray_14__flags_00131178;\n  *puVar4 = *(undefined4 *)(PTR_OptArray_14__flags_00131178 + 0x23b0);\n  puVar4[1] = uVar8;\n  *(undefined1 *)(puVar4 + 2) = uVar7;\n  (*(code *)PTR_strcpy_00132018)((int)puVar4 + 9,pcVar2);\n  *(undefined4 **)(puVar1 + 0x23b0) = puVar4;\n  return pcVar2;\n}\n\n" (function_definition "char * INET_rresolve(sockaddr_in *s_in,int numeric,uint32_t netmask)\n\n{\n  undefined *puVar1;\n  char *pcVar2;\n  int iVar3;\n  undefined4 *puVar4;\n  int *piVar5;\n  uint uVar6;\n  uint uVar8;\n  undefined1 uVar7;\n  \n  if (s_in->sin_family != 2) {\n    **(undefined4 **)PTR_bb_errno_001311d8 = 0x7c;\n    return (char *)0x0;\n  }\n  if ((numeric & 0xfffU) != 0) {\n    pcVar2 = xmalloc_sockaddr2dotted_noport((sockaddr *)s_in);\n    return pcVar2;\n  }\n  uVar8 = (s_in->sin_addr).s_addr;\n  if (uVar8 == 0) {\n    if ((numeric & 0x8000U) != 0) {\n      pcVar2 = (char *)(*(code *)PTR_xstrdup_001312b8)(PTR_bdcommands_4__name_4__001311a4 + -0x5de4)\n      ;\n      return pcVar2;\n    }\n    pcVar2 = (char *)(*(code *)PTR_xstrdup_001312b8)(PTR_bdcommands_4__name_4__001311a4 + 0x2a80);\n    return pcVar2;\n  }\n  if ((~netmask & uVar8) == 0) {\n    uVar6 = (uint)(numeric << 0x11) >> 0x1f;\n    for (piVar5 = *(int **)(PTR_OptArray_14__flags_00131178 + 0x23b0); piVar5 != (int *)0x0;\n        piVar5 = (int *)*piVar5) {\nLAB_000f4e68:\n      if ((piVar5[1] == uVar8) && ((int)*(char *)(piVar5 + 2) == uVar6)) {\n        pcVar2 = (char *)(*(code *)PTR_xstrdup_001312b8)((int)piVar5 + 9);\n        return pcVar2;\n      }\n    }\n    if (uVar6 != 0) goto LAB_000f4eac;\n  }\n  else {\n    piVar5 = *(int **)(PTR_OptArray_14__flags_00131178 + 0x23b0);\n    if (piVar5 != (int *)0x0) {\n      uVar6 = 1;\n      goto LAB_000f4e68;\n    }\nLAB_000f4eac:\n    pcVar2 = xmalloc_sockaddr2host_noport((sockaddr *)s_in);\n    uVar6 = 1;\n    uVar7 = 1;\n    if (pcVar2 != (char *)0x0) goto LAB_000f4ee4;\n  }\n  uVar7 = (undefined1)uVar6;\n  pcVar2 = xmalloc_sockaddr2dotted_noport((sockaddr *)s_in);\nLAB_000f4ee4:\n  iVar3 = (*(code *)PTR_strlen_00131f58)(pcVar2);\n  puVar4 = (undefined4 *)(*(code *)PTR_xmalloc_00131240)(iVar3 + 0xc);\n  puVar1 = PTR_OptArray_14__flags_00131178;\n  *puVar4 = *(undefined4 *)(PTR_OptArray_14__flags_00131178 + 0x23b0);\n  puVar4[1] = uVar8;\n  *(undefined1 *)(puVar4 + 2) = uVar7;\n  (*(code *)PTR_strcpy_00132018)((int)puVar4 + 9,pcVar2);\n  *(undefined4 **)(puVar1 + 0x23b0) = puVar4;\n  return pcVar2;\n}" primitive_type (pointer_declarator "* INET_rresolve(sockaddr_in *s_in,int numeric,uint32_t netmask)" * (function_declarator "INET_rresolve(sockaddr_in *s_in,int numeric,uint32_t netmask)" identifier (parameter_list "(sockaddr_in *s_in,int numeric,uint32_t netmask)" ( (parameter_declaration "sockaddr_in *s_in" type_identifier (pointer_declarator "*s_in" * identifier)) , (parameter_declaration "int numeric" primitive_type identifier) , (parameter_declaration "uint32_t netmask" primitive_type identifier) )))) (compound_statement "{\n  undefined *puVar1;\n  char *pcVar2;\n  int iVar3;\n  undefined4 *puVar4;\n  int *piVar5;\n  uint uVar6;\n  uint uVar8;\n  undefined1 uVar7;\n  \n  if (s_in->sin_family != 2) {\n    **(undefined4 **)PTR_bb_errno_001311d8 = 0x7c;\n    return (char *)0x0;\n  }\n  if ((numeric & 0xfffU) != 0) {\n    pcVar2 = xmalloc_sockaddr2dotted_noport((sockaddr *)s_in);\n    return pcVar2;\n  }\n  uVar8 = (s_in->sin_addr).s_addr;\n  if (uVar8 == 0) {\n    if ((numeric & 0x8000U) != 0) {\n      pcVar2 = (char *)(*(code *)PTR_xstrdup_001312b8)(PTR_bdcommands_4__name_4__001311a4 + -0x5de4)\n      ;\n      return pcVar2;\n    }\n    pcVar2 = (char *)(*(code *)PTR_xstrdup_001312b8)(PTR_bdcommands_4__name_4__001311a4 + 0x2a80);\n    return pcVar2;\n  }\n  if ((~netmask & uVar8) == 0) {\n    uVar6 = (uint)(numeric << 0x11) >> 0x1f;\n    for (piVar5 = *(int **)(PTR_OptArray_14__flags_00131178 + 0x23b0); piVar5 != (int *)0x0;\n        piVar5 = (int *)*piVar5) {\nLAB_000f4e68:\n      if ((piVar5[1] == uVar8) && ((int)*(char *)(piVar5 + 2) == uVar6)) {\n        pcVar2 = (char *)(*(code *)PTR_xstrdup_001312b8)((int)piVar5 + 9);\n        return pcVar2;\n      }\n    }\n    if (uVar6 != 0) goto LAB_000f4eac;\n  }\n  else {\n    piVar5 = *(int **)(PTR_OptArray_14__flags_00131178 + 0x23b0);\n    if (piVar5 != (int *)0x0) {\n      uVar6 = 1;\n      goto LAB_000f4e68;\n    }\nLAB_000f4eac:\n    pcVar2 = xmalloc_sockaddr2host_noport((sockaddr *)s_in);\n    uVar6 = 1;\n    uVar7 = 1;\n    if (pcVar2 != (char *)0x0) goto LAB_000f4ee4;\n  }\n  uVar7 = (undefined1)uVar6;\n  pcVar2 = xmalloc_sockaddr2dotted_noport((sockaddr *)s_in);\nLAB_000f4ee4:\n  iVar3 = (*(code *)PTR_strlen_00131f58)(pcVar2);\n  puVar4 = (undefined4 *)(*(code *)PTR_xmalloc_00131240)(iVar3 + 0xc);\n  puVar1 = PTR_OptArray_14__flags_00131178;\n  *puVar4 = *(undefined4 *)(PTR_OptArray_14__flags_00131178 + 0x23b0);\n  puVar4[1] = uVar8;\n  *(undefined1 *)(puVar4 + 2) = uVar7;\n  (*(code *)PTR_strcpy_00132018)((int)puVar4 + 9,pcVar2);\n  *(undefined4 **)(puVar1 + 0x23b0) = puVar4;\n  return pcVar2;\n}" { (declaration "undefined *puVar1;" type_identifier (pointer_declarator "*puVar1" * identifier) ;) (declaration "char *pcVar2;" primitive_type (pointer_declarator "*pcVar2" * identifier) ;) (declaration "int iVar3;" primitive_type identifier ;) (declaration "undefined4 *puVar4;" type_identifier (pointer_declarator "*puVar4" * identifier) ;) (declaration "int *piVar5;" primitive_type (pointer_declarator "*piVar5" * identifier) ;) (declaration "uint uVar6;" type_identifier identifier ;) (declaration "uint uVar8;" type_identifier identifier ;) (declaration "undefined1 uVar7;" type_identifier identifier ;) (if_statement "if (s_in->sin_family != 2) {\n    **(undefined4 **)PTR_bb_errno_001311d8 = 0x7c;\n    return (char *)0x0;\n  }" if (parenthesized_expression "(s_in->sin_family != 2)" ( (binary_expression "s_in->sin_family != 2" (field_expression "s_in->sin_family" identifier -> field_identifier) != number_literal) )) (compound_statement "{\n    **(undefined4 **)PTR_bb_errno_001311d8 = 0x7c;\n    return (char *)0x0;\n  }" { (expression_statement "**(undefined4 **)PTR_bb_errno_001311d8 = 0x7c;" (assignment_expression "**(undefined4 **)PTR_bb_errno_001311d8 = 0x7c" (pointer_expression "**(undefined4 **)PTR_bb_errno_001311d8" * (pointer_expression "*(undefined4 **)PTR_bb_errno_001311d8" * (cast_expression "(undefined4 **)PTR_bb_errno_001311d8" ( (type_descriptor "undefined4 **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) identifier))) = number_literal) ;) (return_statement "return (char *)0x0;" return (cast_expression "(char *)0x0" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal) ;) })) (if_statement "if ((numeric & 0xfffU) != 0) {\n    pcVar2 = xmalloc_sockaddr2dotted_noport((sockaddr *)s_in);\n    return pcVar2;\n  }" if (parenthesized_expression "((numeric & 0xfffU) != 0)" ( (binary_expression "(numeric & 0xfffU) != 0" (parenthesized_expression "(numeric & 0xfffU)" ( (binary_expression "numeric & 0xfffU" identifier & number_literal) )) != number_literal) )) (compound_statement "{\n    pcVar2 = xmalloc_sockaddr2dotted_noport((sockaddr *)s_in);\n    return pcVar2;\n  }" { (expression_statement "pcVar2 = xmalloc_sockaddr2dotted_noport((sockaddr *)s_in);" (assignment_expression "pcVar2 = xmalloc_sockaddr2dotted_noport((sockaddr *)s_in)" identifier = (call_expression "xmalloc_sockaddr2dotted_noport((sockaddr *)s_in)" identifier (argument_list "((sockaddr *)s_in)" ( (cast_expression "(sockaddr *)s_in" ( (type_descriptor "sockaddr *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier) )))) ;) (return_statement "return pcVar2;" return identifier ;) })) (expression_statement "uVar8 = (s_in->sin_addr).s_addr;" (assignment_expression "uVar8 = (s_in->sin_addr).s_addr" identifier = (field_expression "(s_in->sin_addr).s_addr" (parenthesized_expression "(s_in->sin_addr)" ( (field_expression "s_in->sin_addr" identifier -> field_identifier) )) . field_identifier)) ;) (if_statement "if (uVar8 == 0) {\n    if ((numeric & 0x8000U) != 0) {\n      pcVar2 = (char *)(*(code *)PTR_xstrdup_001312b8)(PTR_bdcommands_4__name_4__001311a4 + -0x5de4)\n      ;\n      return pcVar2;\n    }\n    pcVar2 = (char *)(*(code *)PTR_xstrdup_001312b8)(PTR_bdcommands_4__name_4__001311a4 + 0x2a80);\n    return pcVar2;\n  }" if (parenthesized_expression "(uVar8 == 0)" ( (binary_expression "uVar8 == 0" identifier == number_literal) )) (compound_statement "{\n    if ((numeric & 0x8000U) != 0) {\n      pcVar2 = (char *)(*(code *)PTR_xstrdup_001312b8)(PTR_bdcommands_4__name_4__001311a4 + -0x5de4)\n      ;\n      return pcVar2;\n    }\n    pcVar2 = (char *)(*(code *)PTR_xstrdup_001312b8)(PTR_bdcommands_4__name_4__001311a4 + 0x2a80);\n    return pcVar2;\n  }" { (if_statement "if ((numeric & 0x8000U) != 0) {\n      pcVar2 = (char *)(*(code *)PTR_xstrdup_001312b8)(PTR_bdcommands_4__name_4__001311a4 + -0x5de4)\n      ;\n      return pcVar2;\n    }" if (parenthesized_expression "((numeric & 0x8000U) != 0)" ( (binary_expression "(numeric & 0x8000U) != 0" (parenthesized_expression "(numeric & 0x8000U)" ( (binary_expression "numeric & 0x8000U" identifier & number_literal) )) != number_literal) )) (compound_statement "{\n      pcVar2 = (char *)(*(code *)PTR_xstrdup_001312b8)(PTR_bdcommands_4__name_4__001311a4 + -0x5de4)\n      ;\n      return pcVar2;\n    }" { (expression_statement "pcVar2 = (char *)(*(code *)PTR_xstrdup_001312b8)(PTR_bdcommands_4__name_4__001311a4 + -0x5de4)\n      ;" (assignment_expression "pcVar2 = (char *)(*(code *)PTR_xstrdup_001312b8)(PTR_bdcommands_4__name_4__001311a4 + -0x5de4)" identifier = (cast_expression "(char *)(*(code *)PTR_xstrdup_001312b8)(PTR_bdcommands_4__name_4__001311a4 + -0x5de4)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (call_expression "(*(code *)PTR_xstrdup_001312b8)(PTR_bdcommands_4__name_4__001311a4 + -0x5de4)" (parenthesized_expression "(*(code *)PTR_xstrdup_001312b8)" ( (pointer_expression "*(code *)PTR_xstrdup_001312b8" * (cast_expression "(code *)PTR_xstrdup_001312b8" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(PTR_bdcommands_4__name_4__001311a4 + -0x5de4)" ( (binary_expression "PTR_bdcommands_4__name_4__001311a4 + -0x5de4" identifier + number_literal) ))))) ;) (return_statement "return pcVar2;" return identifier ;) })) (expression_statement "pcVar2 = (char *)(*(code *)PTR_xstrdup_001312b8)(PTR_bdcommands_4__name_4__001311a4 + 0x2a80);" (assignment_expression "pcVar2 = (char *)(*(code *)PTR_xstrdup_001312b8)(PTR_bdcommands_4__name_4__001311a4 + 0x2a80)" identifier = (cast_expression "(char *)(*(code *)PTR_xstrdup_001312b8)(PTR_bdcommands_4__name_4__001311a4 + 0x2a80)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (call_expression "(*(code *)PTR_xstrdup_001312b8)(PTR_bdcommands_4__name_4__001311a4 + 0x2a80)" (parenthesized_expression "(*(code *)PTR_xstrdup_001312b8)" ( (pointer_expression "*(code *)PTR_xstrdup_001312b8" * (cast_expression "(code *)PTR_xstrdup_001312b8" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(PTR_bdcommands_4__name_4__001311a4 + 0x2a80)" ( (binary_expression "PTR_bdcommands_4__name_4__001311a4 + 0x2a80" identifier + number_literal) ))))) ;) (return_statement "return pcVar2;" return identifier ;) })) (if_statement "if ((~netmask & uVar8) == 0) {\n    uVar6 = (uint)(numeric << 0x11) >> 0x1f;\n    for (piVar5 = *(int **)(PTR_OptArray_14__flags_00131178 + 0x23b0); piVar5 != (int *)0x0;\n        piVar5 = (int *)*piVar5) {\nLAB_000f4e68:\n      if ((piVar5[1] == uVar8) && ((int)*(char *)(piVar5 + 2) == uVar6)) {\n        pcVar2 = (char *)(*(code *)PTR_xstrdup_001312b8)((int)piVar5 + 9);\n        return pcVar2;\n      }\n    }\n    if (uVar6 != 0) goto LAB_000f4eac;\n  }\n  else {\n    piVar5 = *(int **)(PTR_OptArray_14__flags_00131178 + 0x23b0);\n    if (piVar5 != (int *)0x0) {\n      uVar6 = 1;\n      goto LAB_000f4e68;\n    }\nLAB_000f4eac:\n    pcVar2 = xmalloc_sockaddr2host_noport((sockaddr *)s_in);\n    uVar6 = 1;\n    uVar7 = 1;\n    if (pcVar2 != (char *)0x0) goto LAB_000f4ee4;\n  }" if (parenthesized_expression "((~netmask & uVar8) == 0)" ( (binary_expression "(~netmask & uVar8) == 0" (parenthesized_expression "(~netmask & uVar8)" ( (binary_expression "~netmask & uVar8" (unary_expression "~netmask" ~ identifier) & identifier) )) == number_literal) )) (compound_statement "{\n    uVar6 = (uint)(numeric << 0x11) >> 0x1f;\n    for (piVar5 = *(int **)(PTR_OptArray_14__flags_00131178 + 0x23b0); piVar5 != (int *)0x0;\n        piVar5 = (int *)*piVar5) {\nLAB_000f4e68:\n      if ((piVar5[1] == uVar8) && ((int)*(char *)(piVar5 + 2) == uVar6)) {\n        pcVar2 = (char *)(*(code *)PTR_xstrdup_001312b8)((int)piVar5 + 9);\n        return pcVar2;\n      }\n    }\n    if (uVar6 != 0) goto LAB_000f4eac;\n  }" { (expression_statement "uVar6 = (uint)(numeric << 0x11) >> 0x1f;" (assignment_expression "uVar6 = (uint)(numeric << 0x11) >> 0x1f" identifier = (binary_expression "(uint)(numeric << 0x11) >> 0x1f" (call_expression "(uint)(numeric << 0x11)" (parenthesized_expression "(uint)" ( identifier )) (argument_list "(numeric << 0x11)" ( (binary_expression "numeric << 0x11" identifier << number_literal) ))) >> number_literal)) ;) (for_statement "for (piVar5 = *(int **)(PTR_OptArray_14__flags_00131178 + 0x23b0); piVar5 != (int *)0x0;\n        piVar5 = (int *)*piVar5) {\nLAB_000f4e68:\n      if ((piVar5[1] == uVar8) && ((int)*(char *)(piVar5 + 2) == uVar6)) {\n        pcVar2 = (char *)(*(code *)PTR_xstrdup_001312b8)((int)piVar5 + 9);\n        return pcVar2;\n      }\n    }" for ( (assignment_expression "piVar5 = *(int **)(PTR_OptArray_14__flags_00131178 + 0x23b0)" identifier = (pointer_expression "*(int **)(PTR_OptArray_14__flags_00131178 + 0x23b0)" * (cast_expression "(int **)(PTR_OptArray_14__flags_00131178 + 0x23b0)" ( (type_descriptor "int **" primitive_type (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(PTR_OptArray_14__flags_00131178 + 0x23b0)" ( (binary_expression "PTR_OptArray_14__flags_00131178 + 0x23b0" identifier + number_literal) ))))) ; (binary_expression "piVar5 != (int *)0x0" identifier != (cast_expression "(int *)0x0" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) ; (assignment_expression "piVar5 = (int *)*piVar5" identifier = (cast_expression "(int *)*piVar5" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (pointer_expression "*piVar5" * identifier))) ) (compound_statement "{\nLAB_000f4e68:\n      if ((piVar5[1] == uVar8) && ((int)*(char *)(piVar5 + 2) == uVar6)) {\n        pcVar2 = (char *)(*(code *)PTR_xstrdup_001312b8)((int)piVar5 + 9);\n        return pcVar2;\n      }\n    }" { (labeled_statement "LAB_000f4e68:\n      if ((piVar5[1] == uVar8) && ((int)*(char *)(piVar5 + 2) == uVar6)) {\n        pcVar2 = (char *)(*(code *)PTR_xstrdup_001312b8)((int)piVar5 + 9);\n        return pcVar2;\n      }" statement_identifier : (if_statement "if ((piVar5[1] == uVar8) && ((int)*(char *)(piVar5 + 2) == uVar6)) {\n        pcVar2 = (char *)(*(code *)PTR_xstrdup_001312b8)((int)piVar5 + 9);\n        return pcVar2;\n      }" if (parenthesized_expression "((piVar5[1] == uVar8) && ((int)*(char *)(piVar5 + 2) == uVar6))" ( (binary_expression "(piVar5[1] == uVar8) && ((int)*(char *)(piVar5 + 2) == uVar6)" (parenthesized_expression "(piVar5[1] == uVar8)" ( (binary_expression "piVar5[1] == uVar8" (subscript_expression "piVar5[1]" identifier [ number_literal ]) == identifier) )) && (parenthesized_expression "((int)*(char *)(piVar5 + 2) == uVar6)" ( (binary_expression "(int)*(char *)(piVar5 + 2) == uVar6" (cast_expression "(int)*(char *)(piVar5 + 2)" ( (type_descriptor "int" primitive_type) ) (pointer_expression "*(char *)(piVar5 + 2)" * (cast_expression "(char *)(piVar5 + 2)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(piVar5 + 2)" ( (binary_expression "piVar5 + 2" identifier + number_literal) ))))) == identifier) ))) )) (compound_statement "{\n        pcVar2 = (char *)(*(code *)PTR_xstrdup_001312b8)((int)piVar5 + 9);\n        return pcVar2;\n      }" { (expression_statement "pcVar2 = (char *)(*(code *)PTR_xstrdup_001312b8)((int)piVar5 + 9);" (assignment_expression "pcVar2 = (char *)(*(code *)PTR_xstrdup_001312b8)((int)piVar5 + 9)" identifier = (cast_expression "(char *)(*(code *)PTR_xstrdup_001312b8)((int)piVar5 + 9)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (call_expression "(*(code *)PTR_xstrdup_001312b8)((int)piVar5 + 9)" (parenthesized_expression "(*(code *)PTR_xstrdup_001312b8)" ( (pointer_expression "*(code *)PTR_xstrdup_001312b8" * (cast_expression "(code *)PTR_xstrdup_001312b8" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "((int)piVar5 + 9)" ( (binary_expression "(int)piVar5 + 9" (cast_expression "(int)piVar5" ( (type_descriptor "int" primitive_type) ) identifier) + number_literal) ))))) ;) (return_statement "return pcVar2;" return identifier ;) }))) })) (if_statement "if (uVar6 != 0) goto LAB_000f4eac;" if (parenthesized_expression "(uVar6 != 0)" ( (binary_expression "uVar6 != 0" identifier != number_literal) )) (goto_statement "goto LAB_000f4eac;" goto statement_identifier ;)) }) (else_clause "else {\n    piVar5 = *(int **)(PTR_OptArray_14__flags_00131178 + 0x23b0);\n    if (piVar5 != (int *)0x0) {\n      uVar6 = 1;\n      goto LAB_000f4e68;\n    }\nLAB_000f4eac:\n    pcVar2 = xmalloc_sockaddr2host_noport((sockaddr *)s_in);\n    uVar6 = 1;\n    uVar7 = 1;\n    if (pcVar2 != (char *)0x0) goto LAB_000f4ee4;\n  }" else (compound_statement "{\n    piVar5 = *(int **)(PTR_OptArray_14__flags_00131178 + 0x23b0);\n    if (piVar5 != (int *)0x0) {\n      uVar6 = 1;\n      goto LAB_000f4e68;\n    }\nLAB_000f4eac:\n    pcVar2 = xmalloc_sockaddr2host_noport((sockaddr *)s_in);\n    uVar6 = 1;\n    uVar7 = 1;\n    if (pcVar2 != (char *)0x0) goto LAB_000f4ee4;\n  }" { (expression_statement "piVar5 = *(int **)(PTR_OptArray_14__flags_00131178 + 0x23b0);" (assignment_expression "piVar5 = *(int **)(PTR_OptArray_14__flags_00131178 + 0x23b0)" identifier = (pointer_expression "*(int **)(PTR_OptArray_14__flags_00131178 + 0x23b0)" * (cast_expression "(int **)(PTR_OptArray_14__flags_00131178 + 0x23b0)" ( (type_descriptor "int **" primitive_type (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(PTR_OptArray_14__flags_00131178 + 0x23b0)" ( (binary_expression "PTR_OptArray_14__flags_00131178 + 0x23b0" identifier + number_literal) ))))) ;) (if_statement "if (piVar5 != (int *)0x0) {\n      uVar6 = 1;\n      goto LAB_000f4e68;\n    }" if (parenthesized_expression "(piVar5 != (int *)0x0)" ( (binary_expression "piVar5 != (int *)0x0" identifier != (cast_expression "(int *)0x0" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n      uVar6 = 1;\n      goto LAB_000f4e68;\n    }" { (expression_statement "uVar6 = 1;" (assignment_expression "uVar6 = 1" identifier = number_literal) ;) (goto_statement "goto LAB_000f4e68;" goto statement_identifier ;) })) (labeled_statement "LAB_000f4eac:\n    pcVar2 = xmalloc_sockaddr2host_noport((sockaddr *)s_in);" statement_identifier : (expression_statement "pcVar2 = xmalloc_sockaddr2host_noport((sockaddr *)s_in);" (assignment_expression "pcVar2 = xmalloc_sockaddr2host_noport((sockaddr *)s_in)" identifier = (call_expression "xmalloc_sockaddr2host_noport((sockaddr *)s_in)" identifier (argument_list "((sockaddr *)s_in)" ( (cast_expression "(sockaddr *)s_in" ( (type_descriptor "sockaddr *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier) )))) ;)) (expression_statement "uVar6 = 1;" (assignment_expression "uVar6 = 1" identifier = number_literal) ;) (expression_statement "uVar7 = 1;" (assignment_expression "uVar7 = 1" identifier = number_literal) ;) (if_statement "if (pcVar2 != (char *)0x0) goto LAB_000f4ee4;" if (parenthesized_expression "(pcVar2 != (char *)0x0)" ( (binary_expression "pcVar2 != (char *)0x0" identifier != (cast_expression "(char *)0x0" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) (goto_statement "goto LAB_000f4ee4;" goto statement_identifier ;)) }))) (expression_statement "uVar7 = (undefined1)uVar6;" (assignment_expression "uVar7 = (undefined1)uVar6" identifier = (cast_expression "(undefined1)uVar6" ( (type_descriptor "undefined1" type_identifier) ) identifier)) ;) (expression_statement "pcVar2 = xmalloc_sockaddr2dotted_noport((sockaddr *)s_in);" (assignment_expression "pcVar2 = xmalloc_sockaddr2dotted_noport((sockaddr *)s_in)" identifier = (call_expression "xmalloc_sockaddr2dotted_noport((sockaddr *)s_in)" identifier (argument_list "((sockaddr *)s_in)" ( (cast_expression "(sockaddr *)s_in" ( (type_descriptor "sockaddr *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier) )))) ;) (labeled_statement "LAB_000f4ee4:\n  iVar3 = (*(code *)PTR_strlen_00131f58)(pcVar2);" statement_identifier : (expression_statement "iVar3 = (*(code *)PTR_strlen_00131f58)(pcVar2);" (assignment_expression "iVar3 = (*(code *)PTR_strlen_00131f58)(pcVar2)" identifier = (call_expression "(*(code *)PTR_strlen_00131f58)(pcVar2)" (parenthesized_expression "(*(code *)PTR_strlen_00131f58)" ( (pointer_expression "*(code *)PTR_strlen_00131f58" * (cast_expression "(code *)PTR_strlen_00131f58" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(pcVar2)" ( identifier )))) ;)) (expression_statement "puVar4 = (undefined4 *)(*(code *)PTR_xmalloc_00131240)(iVar3 + 0xc);" (assignment_expression "puVar4 = (undefined4 *)(*(code *)PTR_xmalloc_00131240)(iVar3 + 0xc)" identifier = (cast_expression "(undefined4 *)(*(code *)PTR_xmalloc_00131240)(iVar3 + 0xc)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (call_expression "(*(code *)PTR_xmalloc_00131240)(iVar3 + 0xc)" (parenthesized_expression "(*(code *)PTR_xmalloc_00131240)" ( (pointer_expression "*(code *)PTR_xmalloc_00131240" * (cast_expression "(code *)PTR_xmalloc_00131240" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(iVar3 + 0xc)" ( (binary_expression "iVar3 + 0xc" identifier + number_literal) ))))) ;) (expression_statement "puVar1 = PTR_OptArray_14__flags_00131178;" (assignment_expression "puVar1 = PTR_OptArray_14__flags_00131178" identifier = identifier) ;) (expression_statement "*puVar4 = *(undefined4 *)(PTR_OptArray_14__flags_00131178 + 0x23b0);" (assignment_expression "*puVar4 = *(undefined4 *)(PTR_OptArray_14__flags_00131178 + 0x23b0)" (pointer_expression "*puVar4" * identifier) = (pointer_expression "*(undefined4 *)(PTR_OptArray_14__flags_00131178 + 0x23b0)" * (cast_expression "(undefined4 *)(PTR_OptArray_14__flags_00131178 + 0x23b0)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(PTR_OptArray_14__flags_00131178 + 0x23b0)" ( (binary_expression "PTR_OptArray_14__flags_00131178 + 0x23b0" identifier + number_literal) ))))) ;) (expression_statement "puVar4[1] = uVar8;" (assignment_expression "puVar4[1] = uVar8" (subscript_expression "puVar4[1]" identifier [ number_literal ]) = identifier) ;) (expression_statement "*(undefined1 *)(puVar4 + 2) = uVar7;" (assignment_expression "*(undefined1 *)(puVar4 + 2) = uVar7" (pointer_expression "*(undefined1 *)(puVar4 + 2)" * (cast_expression "(undefined1 *)(puVar4 + 2)" ( (type_descriptor "undefined1 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(puVar4 + 2)" ( (binary_expression "puVar4 + 2" identifier + number_literal) )))) = identifier) ;) (expression_statement "(*(code *)PTR_strcpy_00132018)((int)puVar4 + 9,pcVar2);" (call_expression "(*(code *)PTR_strcpy_00132018)((int)puVar4 + 9,pcVar2)" (parenthesized_expression "(*(code *)PTR_strcpy_00132018)" ( (pointer_expression "*(code *)PTR_strcpy_00132018" * (cast_expression "(code *)PTR_strcpy_00132018" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "((int)puVar4 + 9,pcVar2)" ( (binary_expression "(int)puVar4 + 9" (cast_expression "(int)puVar4" ( (type_descriptor "int" primitive_type) ) identifier) + number_literal) , identifier ))) ;) (expression_statement "*(undefined4 **)(puVar1 + 0x23b0) = puVar4;" (assignment_expression "*(undefined4 **)(puVar1 + 0x23b0) = puVar4" (pointer_expression "*(undefined4 **)(puVar1 + 0x23b0)" * (cast_expression "(undefined4 **)(puVar1 + 0x23b0)" ( (type_descriptor "undefined4 **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(puVar1 + 0x23b0)" ( (binary_expression "puVar1 + 0x23b0" identifier + number_literal) )))) = identifier) ;) (return_statement "return pcVar2;" return identifier ;) })))
(translation_unit "int FUN_000f4d6c(short *param_1,uint param_2,uint param_3)\n\n{\n  undefined *puVar1;\n  int iVar2;\n  int iVar3;\n  undefined4 *puVar4;\n  int *piVar5;\n  uint uVar6;\n  uint uVar8;\n  undefined1 uVar7;\n  \n  if (*param_1 != 2) {\n    **(undefined4 **)PTR_DAT_001311d8 = 0x7c;\n    return 0;\n  }\n  if ((param_2 & 0xfff) != 0) {\n    iVar2 = FUN_00103cc8();\n    return iVar2;\n  }\n  uVar8 = *(uint *)(param_1 + 2);\n  if (uVar8 == 0) {\n    if ((param_2 & 0x8000) != 0) {\n      iVar2 = (*(code *)PTR_FUN_001312b8)(PTR_FUN_001311a4 + -0x5de4);\n      return iVar2;\n    }\n    iVar2 = (*(code *)PTR_FUN_001312b8)(PTR_FUN_001311a4 + 0x2a80);\n    return iVar2;\n  }\n  if ((~param_3 & uVar8) == 0) {\n    uVar6 = (param_2 << 0x11) >> 0x1f;\n    for (piVar5 = *(int **)(PTR_DAT_00131178 + 0x23b0); piVar5 != (int *)0x0;\n        piVar5 = (int *)*piVar5) {\nLAB_000f4e68:\n      if ((piVar5[1] == uVar8) && ((int)*(char *)(piVar5 + 2) == uVar6)) {\n        iVar2 = (*(code *)PTR_FUN_001312b8)((int)piVar5 + 9);\n        return iVar2;\n      }\n    }\n    if (uVar6 != 0) goto LAB_000f4eac;\n  }\n  else {\n    piVar5 = *(int **)(PTR_DAT_00131178 + 0x23b0);\n    if (piVar5 != (int *)0x0) {\n      uVar6 = 1;\n      goto LAB_000f4e68;\n    }\nLAB_000f4eac:\n    iVar2 = FUN_00103c50(param_1);\n    uVar6 = 1;\n    uVar7 = 1;\n    if (iVar2 != 0) goto LAB_000f4ee4;\n  }\n  uVar7 = (undefined1)uVar6;\n  iVar2 = FUN_00103cc8(param_1);\nLAB_000f4ee4:\n  iVar3 = (*(code *)PTR_strlen_00131f58)(iVar2);\n  puVar4 = (undefined4 *)(*(code *)PTR_FUN_00131240)(iVar3 + 0xc);\n  puVar1 = PTR_DAT_00131178;\n  *puVar4 = *(undefined4 *)(PTR_DAT_00131178 + 0x23b0);\n  puVar4[1] = uVar8;\n  *(undefined1 *)(puVar4 + 2) = uVar7;\n  (*(code *)PTR_strcpy_00132018)((int)puVar4 + 9,iVar2);\n  *(undefined4 **)(puVar1 + 0x23b0) = puVar4;\n  return iVar2;\n}\n\n" (function_definition "int FUN_000f4d6c(short *param_1,uint param_2,uint param_3)\n\n{\n  undefined *puVar1;\n  int iVar2;\n  int iVar3;\n  undefined4 *puVar4;\n  int *piVar5;\n  uint uVar6;\n  uint uVar8;\n  undefined1 uVar7;\n  \n  if (*param_1 != 2) {\n    **(undefined4 **)PTR_DAT_001311d8 = 0x7c;\n    return 0;\n  }\n  if ((param_2 & 0xfff) != 0) {\n    iVar2 = FUN_00103cc8();\n    return iVar2;\n  }\n  uVar8 = *(uint *)(param_1 + 2);\n  if (uVar8 == 0) {\n    if ((param_2 & 0x8000) != 0) {\n      iVar2 = (*(code *)PTR_FUN_001312b8)(PTR_FUN_001311a4 + -0x5de4);\n      return iVar2;\n    }\n    iVar2 = (*(code *)PTR_FUN_001312b8)(PTR_FUN_001311a4 + 0x2a80);\n    return iVar2;\n  }\n  if ((~param_3 & uVar8) == 0) {\n    uVar6 = (param_2 << 0x11) >> 0x1f;\n    for (piVar5 = *(int **)(PTR_DAT_00131178 + 0x23b0); piVar5 != (int *)0x0;\n        piVar5 = (int *)*piVar5) {\nLAB_000f4e68:\n      if ((piVar5[1] == uVar8) && ((int)*(char *)(piVar5 + 2) == uVar6)) {\n        iVar2 = (*(code *)PTR_FUN_001312b8)((int)piVar5 + 9);\n        return iVar2;\n      }\n    }\n    if (uVar6 != 0) goto LAB_000f4eac;\n  }\n  else {\n    piVar5 = *(int **)(PTR_DAT_00131178 + 0x23b0);\n    if (piVar5 != (int *)0x0) {\n      uVar6 = 1;\n      goto LAB_000f4e68;\n    }\nLAB_000f4eac:\n    iVar2 = FUN_00103c50(param_1);\n    uVar6 = 1;\n    uVar7 = 1;\n    if (iVar2 != 0) goto LAB_000f4ee4;\n  }\n  uVar7 = (undefined1)uVar6;\n  iVar2 = FUN_00103cc8(param_1);\nLAB_000f4ee4:\n  iVar3 = (*(code *)PTR_strlen_00131f58)(iVar2);\n  puVar4 = (undefined4 *)(*(code *)PTR_FUN_00131240)(iVar3 + 0xc);\n  puVar1 = PTR_DAT_00131178;\n  *puVar4 = *(undefined4 *)(PTR_DAT_00131178 + 0x23b0);\n  puVar4[1] = uVar8;\n  *(undefined1 *)(puVar4 + 2) = uVar7;\n  (*(code *)PTR_strcpy_00132018)((int)puVar4 + 9,iVar2);\n  *(undefined4 **)(puVar1 + 0x23b0) = puVar4;\n  return iVar2;\n}" primitive_type (function_declarator "FUN_000f4d6c(short *param_1,uint param_2,uint param_3)" identifier (parameter_list "(short *param_1,uint param_2,uint param_3)" ( (parameter_declaration "short *param_1" (sized_type_specifier "short" short) (pointer_declarator "*param_1" * identifier)) , (parameter_declaration "uint param_2" type_identifier identifier) , (parameter_declaration "uint param_3" type_identifier identifier) ))) (compound_statement "{\n  undefined *puVar1;\n  int iVar2;\n  int iVar3;\n  undefined4 *puVar4;\n  int *piVar5;\n  uint uVar6;\n  uint uVar8;\n  undefined1 uVar7;\n  \n  if (*param_1 != 2) {\n    **(undefined4 **)PTR_DAT_001311d8 = 0x7c;\n    return 0;\n  }\n  if ((param_2 & 0xfff) != 0) {\n    iVar2 = FUN_00103cc8();\n    return iVar2;\n  }\n  uVar8 = *(uint *)(param_1 + 2);\n  if (uVar8 == 0) {\n    if ((param_2 & 0x8000) != 0) {\n      iVar2 = (*(code *)PTR_FUN_001312b8)(PTR_FUN_001311a4 + -0x5de4);\n      return iVar2;\n    }\n    iVar2 = (*(code *)PTR_FUN_001312b8)(PTR_FUN_001311a4 + 0x2a80);\n    return iVar2;\n  }\n  if ((~param_3 & uVar8) == 0) {\n    uVar6 = (param_2 << 0x11) >> 0x1f;\n    for (piVar5 = *(int **)(PTR_DAT_00131178 + 0x23b0); piVar5 != (int *)0x0;\n        piVar5 = (int *)*piVar5) {\nLAB_000f4e68:\n      if ((piVar5[1] == uVar8) && ((int)*(char *)(piVar5 + 2) == uVar6)) {\n        iVar2 = (*(code *)PTR_FUN_001312b8)((int)piVar5 + 9);\n        return iVar2;\n      }\n    }\n    if (uVar6 != 0) goto LAB_000f4eac;\n  }\n  else {\n    piVar5 = *(int **)(PTR_DAT_00131178 + 0x23b0);\n    if (piVar5 != (int *)0x0) {\n      uVar6 = 1;\n      goto LAB_000f4e68;\n    }\nLAB_000f4eac:\n    iVar2 = FUN_00103c50(param_1);\n    uVar6 = 1;\n    uVar7 = 1;\n    if (iVar2 != 0) goto LAB_000f4ee4;\n  }\n  uVar7 = (undefined1)uVar6;\n  iVar2 = FUN_00103cc8(param_1);\nLAB_000f4ee4:\n  iVar3 = (*(code *)PTR_strlen_00131f58)(iVar2);\n  puVar4 = (undefined4 *)(*(code *)PTR_FUN_00131240)(iVar3 + 0xc);\n  puVar1 = PTR_DAT_00131178;\n  *puVar4 = *(undefined4 *)(PTR_DAT_00131178 + 0x23b0);\n  puVar4[1] = uVar8;\n  *(undefined1 *)(puVar4 + 2) = uVar7;\n  (*(code *)PTR_strcpy_00132018)((int)puVar4 + 9,iVar2);\n  *(undefined4 **)(puVar1 + 0x23b0) = puVar4;\n  return iVar2;\n}" { (declaration "undefined *puVar1;" type_identifier (pointer_declarator "*puVar1" * identifier) ;) (declaration "int iVar2;" primitive_type identifier ;) (declaration "int iVar3;" primitive_type identifier ;) (declaration "undefined4 *puVar4;" type_identifier (pointer_declarator "*puVar4" * identifier) ;) (declaration "int *piVar5;" primitive_type (pointer_declarator "*piVar5" * identifier) ;) (declaration "uint uVar6;" type_identifier identifier ;) (declaration "uint uVar8;" type_identifier identifier ;) (declaration "undefined1 uVar7;" type_identifier identifier ;) (if_statement "if (*param_1 != 2) {\n    **(undefined4 **)PTR_DAT_001311d8 = 0x7c;\n    return 0;\n  }" if (parenthesized_expression "(*param_1 != 2)" ( (binary_expression "*param_1 != 2" (pointer_expression "*param_1" * identifier) != number_literal) )) (compound_statement "{\n    **(undefined4 **)PTR_DAT_001311d8 = 0x7c;\n    return 0;\n  }" { (expression_statement "**(undefined4 **)PTR_DAT_001311d8 = 0x7c;" (assignment_expression "**(undefined4 **)PTR_DAT_001311d8 = 0x7c" (pointer_expression "**(undefined4 **)PTR_DAT_001311d8" * (pointer_expression "*(undefined4 **)PTR_DAT_001311d8" * (cast_expression "(undefined4 **)PTR_DAT_001311d8" ( (type_descriptor "undefined4 **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) identifier))) = number_literal) ;) (return_statement "return 0;" return number_literal ;) })) (if_statement "if ((param_2 & 0xfff) != 0) {\n    iVar2 = FUN_00103cc8();\n    return iVar2;\n  }" if (parenthesized_expression "((param_2 & 0xfff) != 0)" ( (binary_expression "(param_2 & 0xfff) != 0" (parenthesized_expression "(param_2 & 0xfff)" ( (binary_expression "param_2 & 0xfff" identifier & number_literal) )) != number_literal) )) (compound_statement "{\n    iVar2 = FUN_00103cc8();\n    return iVar2;\n  }" { (expression_statement "iVar2 = FUN_00103cc8();" (assignment_expression "iVar2 = FUN_00103cc8()" identifier = (call_expression "FUN_00103cc8()" identifier (argument_list "()" ( )))) ;) (return_statement "return iVar2;" return identifier ;) })) (expression_statement "uVar8 = *(uint *)(param_1 + 2);" (assignment_expression "uVar8 = *(uint *)(param_1 + 2)" identifier = (pointer_expression "*(uint *)(param_1 + 2)" * (cast_expression "(uint *)(param_1 + 2)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 2)" ( (binary_expression "param_1 + 2" identifier + number_literal) ))))) ;) (if_statement "if (uVar8 == 0) {\n    if ((param_2 & 0x8000) != 0) {\n      iVar2 = (*(code *)PTR_FUN_001312b8)(PTR_FUN_001311a4 + -0x5de4);\n      return iVar2;\n    }\n    iVar2 = (*(code *)PTR_FUN_001312b8)(PTR_FUN_001311a4 + 0x2a80);\n    return iVar2;\n  }" if (parenthesized_expression "(uVar8 == 0)" ( (binary_expression "uVar8 == 0" identifier == number_literal) )) (compound_statement "{\n    if ((param_2 & 0x8000) != 0) {\n      iVar2 = (*(code *)PTR_FUN_001312b8)(PTR_FUN_001311a4 + -0x5de4);\n      return iVar2;\n    }\n    iVar2 = (*(code *)PTR_FUN_001312b8)(PTR_FUN_001311a4 + 0x2a80);\n    return iVar2;\n  }" { (if_statement "if ((param_2 & 0x8000) != 0) {\n      iVar2 = (*(code *)PTR_FUN_001312b8)(PTR_FUN_001311a4 + -0x5de4);\n      return iVar2;\n    }" if (parenthesized_expression "((param_2 & 0x8000) != 0)" ( (binary_expression "(param_2 & 0x8000) != 0" (parenthesized_expression "(param_2 & 0x8000)" ( (binary_expression "param_2 & 0x8000" identifier & number_literal) )) != number_literal) )) (compound_statement "{\n      iVar2 = (*(code *)PTR_FUN_001312b8)(PTR_FUN_001311a4 + -0x5de4);\n      return iVar2;\n    }" { (expression_statement "iVar2 = (*(code *)PTR_FUN_001312b8)(PTR_FUN_001311a4 + -0x5de4);" (assignment_expression "iVar2 = (*(code *)PTR_FUN_001312b8)(PTR_FUN_001311a4 + -0x5de4)" identifier = (call_expression "(*(code *)PTR_FUN_001312b8)(PTR_FUN_001311a4 + -0x5de4)" (parenthesized_expression "(*(code *)PTR_FUN_001312b8)" ( (pointer_expression "*(code *)PTR_FUN_001312b8" * (cast_expression "(code *)PTR_FUN_001312b8" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(PTR_FUN_001311a4 + -0x5de4)" ( (binary_expression "PTR_FUN_001311a4 + -0x5de4" identifier + number_literal) )))) ;) (return_statement "return iVar2;" return identifier ;) })) (expression_statement "iVar2 = (*(code *)PTR_FUN_001312b8)(PTR_FUN_001311a4 + 0x2a80);" (assignment_expression "iVar2 = (*(code *)PTR_FUN_001312b8)(PTR_FUN_001311a4 + 0x2a80)" identifier = (call_expression "(*(code *)PTR_FUN_001312b8)(PTR_FUN_001311a4 + 0x2a80)" (parenthesized_expression "(*(code *)PTR_FUN_001312b8)" ( (pointer_expression "*(code *)PTR_FUN_001312b8" * (cast_expression "(code *)PTR_FUN_001312b8" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(PTR_FUN_001311a4 + 0x2a80)" ( (binary_expression "PTR_FUN_001311a4 + 0x2a80" identifier + number_literal) )))) ;) (return_statement "return iVar2;" return identifier ;) })) (if_statement "if ((~param_3 & uVar8) == 0) {\n    uVar6 = (param_2 << 0x11) >> 0x1f;\n    for (piVar5 = *(int **)(PTR_DAT_00131178 + 0x23b0); piVar5 != (int *)0x0;\n        piVar5 = (int *)*piVar5) {\nLAB_000f4e68:\n      if ((piVar5[1] == uVar8) && ((int)*(char *)(piVar5 + 2) == uVar6)) {\n        iVar2 = (*(code *)PTR_FUN_001312b8)((int)piVar5 + 9);\n        return iVar2;\n      }\n    }\n    if (uVar6 != 0) goto LAB_000f4eac;\n  }\n  else {\n    piVar5 = *(int **)(PTR_DAT_00131178 + 0x23b0);\n    if (piVar5 != (int *)0x0) {\n      uVar6 = 1;\n      goto LAB_000f4e68;\n    }\nLAB_000f4eac:\n    iVar2 = FUN_00103c50(param_1);\n    uVar6 = 1;\n    uVar7 = 1;\n    if (iVar2 != 0) goto LAB_000f4ee4;\n  }" if (parenthesized_expression "((~param_3 & uVar8) == 0)" ( (binary_expression "(~param_3 & uVar8) == 0" (parenthesized_expression "(~param_3 & uVar8)" ( (binary_expression "~param_3 & uVar8" (unary_expression "~param_3" ~ identifier) & identifier) )) == number_literal) )) (compound_statement "{\n    uVar6 = (param_2 << 0x11) >> 0x1f;\n    for (piVar5 = *(int **)(PTR_DAT_00131178 + 0x23b0); piVar5 != (int *)0x0;\n        piVar5 = (int *)*piVar5) {\nLAB_000f4e68:\n      if ((piVar5[1] == uVar8) && ((int)*(char *)(piVar5 + 2) == uVar6)) {\n        iVar2 = (*(code *)PTR_FUN_001312b8)((int)piVar5 + 9);\n        return iVar2;\n      }\n    }\n    if (uVar6 != 0) goto LAB_000f4eac;\n  }" { (expression_statement "uVar6 = (param_2 << 0x11) >> 0x1f;" (assignment_expression "uVar6 = (param_2 << 0x11) >> 0x1f" identifier = (binary_expression "(param_2 << 0x11) >> 0x1f" (parenthesized_expression "(param_2 << 0x11)" ( (binary_expression "param_2 << 0x11" identifier << number_literal) )) >> number_literal)) ;) (for_statement "for (piVar5 = *(int **)(PTR_DAT_00131178 + 0x23b0); piVar5 != (int *)0x0;\n        piVar5 = (int *)*piVar5) {\nLAB_000f4e68:\n      if ((piVar5[1] == uVar8) && ((int)*(char *)(piVar5 + 2) == uVar6)) {\n        iVar2 = (*(code *)PTR_FUN_001312b8)((int)piVar5 + 9);\n        return iVar2;\n      }\n    }" for ( (assignment_expression "piVar5 = *(int **)(PTR_DAT_00131178 + 0x23b0)" identifier = (pointer_expression "*(int **)(PTR_DAT_00131178 + 0x23b0)" * (cast_expression "(int **)(PTR_DAT_00131178 + 0x23b0)" ( (type_descriptor "int **" primitive_type (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(PTR_DAT_00131178 + 0x23b0)" ( (binary_expression "PTR_DAT_00131178 + 0x23b0" identifier + number_literal) ))))) ; (binary_expression "piVar5 != (int *)0x0" identifier != (cast_expression "(int *)0x0" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) ; (assignment_expression "piVar5 = (int *)*piVar5" identifier = (cast_expression "(int *)*piVar5" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (pointer_expression "*piVar5" * identifier))) ) (compound_statement "{\nLAB_000f4e68:\n      if ((piVar5[1] == uVar8) && ((int)*(char *)(piVar5 + 2) == uVar6)) {\n        iVar2 = (*(code *)PTR_FUN_001312b8)((int)piVar5 + 9);\n        return iVar2;\n      }\n    }" { (labeled_statement "LAB_000f4e68:\n      if ((piVar5[1] == uVar8) && ((int)*(char *)(piVar5 + 2) == uVar6)) {\n        iVar2 = (*(code *)PTR_FUN_001312b8)((int)piVar5 + 9);\n        return iVar2;\n      }" statement_identifier : (if_statement "if ((piVar5[1] == uVar8) && ((int)*(char *)(piVar5 + 2) == uVar6)) {\n        iVar2 = (*(code *)PTR_FUN_001312b8)((int)piVar5 + 9);\n        return iVar2;\n      }" if (parenthesized_expression "((piVar5[1] == uVar8) && ((int)*(char *)(piVar5 + 2) == uVar6))" ( (binary_expression "(piVar5[1] == uVar8) && ((int)*(char *)(piVar5 + 2) == uVar6)" (parenthesized_expression "(piVar5[1] == uVar8)" ( (binary_expression "piVar5[1] == uVar8" (subscript_expression "piVar5[1]" identifier [ number_literal ]) == identifier) )) && (parenthesized_expression "((int)*(char *)(piVar5 + 2) == uVar6)" ( (binary_expression "(int)*(char *)(piVar5 + 2) == uVar6" (cast_expression "(int)*(char *)(piVar5 + 2)" ( (type_descriptor "int" primitive_type) ) (pointer_expression "*(char *)(piVar5 + 2)" * (cast_expression "(char *)(piVar5 + 2)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(piVar5 + 2)" ( (binary_expression "piVar5 + 2" identifier + number_literal) ))))) == identifier) ))) )) (compound_statement "{\n        iVar2 = (*(code *)PTR_FUN_001312b8)((int)piVar5 + 9);\n        return iVar2;\n      }" { (expression_statement "iVar2 = (*(code *)PTR_FUN_001312b8)((int)piVar5 + 9);" (assignment_expression "iVar2 = (*(code *)PTR_FUN_001312b8)((int)piVar5 + 9)" identifier = (call_expression "(*(code *)PTR_FUN_001312b8)((int)piVar5 + 9)" (parenthesized_expression "(*(code *)PTR_FUN_001312b8)" ( (pointer_expression "*(code *)PTR_FUN_001312b8" * (cast_expression "(code *)PTR_FUN_001312b8" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "((int)piVar5 + 9)" ( (binary_expression "(int)piVar5 + 9" (cast_expression "(int)piVar5" ( (type_descriptor "int" primitive_type) ) identifier) + number_literal) )))) ;) (return_statement "return iVar2;" return identifier ;) }))) })) (if_statement "if (uVar6 != 0) goto LAB_000f4eac;" if (parenthesized_expression "(uVar6 != 0)" ( (binary_expression "uVar6 != 0" identifier != number_literal) )) (goto_statement "goto LAB_000f4eac;" goto statement_identifier ;)) }) (else_clause "else {\n    piVar5 = *(int **)(PTR_DAT_00131178 + 0x23b0);\n    if (piVar5 != (int *)0x0) {\n      uVar6 = 1;\n      goto LAB_000f4e68;\n    }\nLAB_000f4eac:\n    iVar2 = FUN_00103c50(param_1);\n    uVar6 = 1;\n    uVar7 = 1;\n    if (iVar2 != 0) goto LAB_000f4ee4;\n  }" else (compound_statement "{\n    piVar5 = *(int **)(PTR_DAT_00131178 + 0x23b0);\n    if (piVar5 != (int *)0x0) {\n      uVar6 = 1;\n      goto LAB_000f4e68;\n    }\nLAB_000f4eac:\n    iVar2 = FUN_00103c50(param_1);\n    uVar6 = 1;\n    uVar7 = 1;\n    if (iVar2 != 0) goto LAB_000f4ee4;\n  }" { (expression_statement "piVar5 = *(int **)(PTR_DAT_00131178 + 0x23b0);" (assignment_expression "piVar5 = *(int **)(PTR_DAT_00131178 + 0x23b0)" identifier = (pointer_expression "*(int **)(PTR_DAT_00131178 + 0x23b0)" * (cast_expression "(int **)(PTR_DAT_00131178 + 0x23b0)" ( (type_descriptor "int **" primitive_type (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(PTR_DAT_00131178 + 0x23b0)" ( (binary_expression "PTR_DAT_00131178 + 0x23b0" identifier + number_literal) ))))) ;) (if_statement "if (piVar5 != (int *)0x0) {\n      uVar6 = 1;\n      goto LAB_000f4e68;\n    }" if (parenthesized_expression "(piVar5 != (int *)0x0)" ( (binary_expression "piVar5 != (int *)0x0" identifier != (cast_expression "(int *)0x0" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n      uVar6 = 1;\n      goto LAB_000f4e68;\n    }" { (expression_statement "uVar6 = 1;" (assignment_expression "uVar6 = 1" identifier = number_literal) ;) (goto_statement "goto LAB_000f4e68;" goto statement_identifier ;) })) (labeled_statement "LAB_000f4eac:\n    iVar2 = FUN_00103c50(param_1);" statement_identifier : (expression_statement "iVar2 = FUN_00103c50(param_1);" (assignment_expression "iVar2 = FUN_00103c50(param_1)" identifier = (call_expression "FUN_00103c50(param_1)" identifier (argument_list "(param_1)" ( identifier )))) ;)) (expression_statement "uVar6 = 1;" (assignment_expression "uVar6 = 1" identifier = number_literal) ;) (expression_statement "uVar7 = 1;" (assignment_expression "uVar7 = 1" identifier = number_literal) ;) (if_statement "if (iVar2 != 0) goto LAB_000f4ee4;" if (parenthesized_expression "(iVar2 != 0)" ( (binary_expression "iVar2 != 0" identifier != number_literal) )) (goto_statement "goto LAB_000f4ee4;" goto statement_identifier ;)) }))) (expression_statement "uVar7 = (undefined1)uVar6;" (assignment_expression "uVar7 = (undefined1)uVar6" identifier = (cast_expression "(undefined1)uVar6" ( (type_descriptor "undefined1" type_identifier) ) identifier)) ;) (expression_statement "iVar2 = FUN_00103cc8(param_1);" (assignment_expression "iVar2 = FUN_00103cc8(param_1)" identifier = (call_expression "FUN_00103cc8(param_1)" identifier (argument_list "(param_1)" ( identifier )))) ;) (labeled_statement "LAB_000f4ee4:\n  iVar3 = (*(code *)PTR_strlen_00131f58)(iVar2);" statement_identifier : (expression_statement "iVar3 = (*(code *)PTR_strlen_00131f58)(iVar2);" (assignment_expression "iVar3 = (*(code *)PTR_strlen_00131f58)(iVar2)" identifier = (call_expression "(*(code *)PTR_strlen_00131f58)(iVar2)" (parenthesized_expression "(*(code *)PTR_strlen_00131f58)" ( (pointer_expression "*(code *)PTR_strlen_00131f58" * (cast_expression "(code *)PTR_strlen_00131f58" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(iVar2)" ( identifier )))) ;)) (expression_statement "puVar4 = (undefined4 *)(*(code *)PTR_FUN_00131240)(iVar3 + 0xc);" (assignment_expression "puVar4 = (undefined4 *)(*(code *)PTR_FUN_00131240)(iVar3 + 0xc)" identifier = (cast_expression "(undefined4 *)(*(code *)PTR_FUN_00131240)(iVar3 + 0xc)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (call_expression "(*(code *)PTR_FUN_00131240)(iVar3 + 0xc)" (parenthesized_expression "(*(code *)PTR_FUN_00131240)" ( (pointer_expression "*(code *)PTR_FUN_00131240" * (cast_expression "(code *)PTR_FUN_00131240" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(iVar3 + 0xc)" ( (binary_expression "iVar3 + 0xc" identifier + number_literal) ))))) ;) (expression_statement "puVar1 = PTR_DAT_00131178;" (assignment_expression "puVar1 = PTR_DAT_00131178" identifier = identifier) ;) (expression_statement "*puVar4 = *(undefined4 *)(PTR_DAT_00131178 + 0x23b0);" (assignment_expression "*puVar4 = *(undefined4 *)(PTR_DAT_00131178 + 0x23b0)" (pointer_expression "*puVar4" * identifier) = (pointer_expression "*(undefined4 *)(PTR_DAT_00131178 + 0x23b0)" * (cast_expression "(undefined4 *)(PTR_DAT_00131178 + 0x23b0)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(PTR_DAT_00131178 + 0x23b0)" ( (binary_expression "PTR_DAT_00131178 + 0x23b0" identifier + number_literal) ))))) ;) (expression_statement "puVar4[1] = uVar8;" (assignment_expression "puVar4[1] = uVar8" (subscript_expression "puVar4[1]" identifier [ number_literal ]) = identifier) ;) (expression_statement "*(undefined1 *)(puVar4 + 2) = uVar7;" (assignment_expression "*(undefined1 *)(puVar4 + 2) = uVar7" (pointer_expression "*(undefined1 *)(puVar4 + 2)" * (cast_expression "(undefined1 *)(puVar4 + 2)" ( (type_descriptor "undefined1 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(puVar4 + 2)" ( (binary_expression "puVar4 + 2" identifier + number_literal) )))) = identifier) ;) (expression_statement "(*(code *)PTR_strcpy_00132018)((int)puVar4 + 9,iVar2);" (call_expression "(*(code *)PTR_strcpy_00132018)((int)puVar4 + 9,iVar2)" (parenthesized_expression "(*(code *)PTR_strcpy_00132018)" ( (pointer_expression "*(code *)PTR_strcpy_00132018" * (cast_expression "(code *)PTR_strcpy_00132018" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "((int)puVar4 + 9,iVar2)" ( (binary_expression "(int)puVar4 + 9" (cast_expression "(int)puVar4" ( (type_descriptor "int" primitive_type) ) identifier) + number_literal) , identifier ))) ;) (expression_statement "*(undefined4 **)(puVar1 + 0x23b0) = puVar4;" (assignment_expression "*(undefined4 **)(puVar1 + 0x23b0) = puVar4" (pointer_expression "*(undefined4 **)(puVar1 + 0x23b0)" * (cast_expression "(undefined4 **)(puVar1 + 0x23b0)" ( (type_descriptor "undefined4 **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(puVar1 + 0x23b0)" ( (binary_expression "puVar1 + 0x23b0" identifier + number_literal) )))) = identifier) ;) (return_statement "return iVar2;" return identifier ;) })))
(translation_unit (function_definition TYPE (function_declarator IDENT (parameter_list ( (parameter_declaration (sized_type_specifier short) (pointer_declarator * IDENT)) , (parameter_declaration TYPE IDENT) , (parameter_declaration TYPE IDENT) ))) (compound_statement { (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (if_statement if (parenthesized_expression ( (binary_expression (pointer_expression * IDENT) != LIT) )) (compound_statement { (expression_statement (assignment_expression (pointer_expression * (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator * (abstract_pointer_declarator *))) ) IDENT))) = LIT) ;) (return_statement return LIT ;) })) (if_statement if (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression IDENT & LIT) )) != LIT) )) (compound_statement { (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( )))) ;) (return_statement return IDENT ;) })) (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT == LIT) )) (compound_statement { (if_statement if (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression IDENT & LIT) )) != LIT) )) (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 IDENT + LIT) )))) ;) (return_statement return IDENT ;) })) (expression_statement (assignment_expression IDENT = (call_expression (parenthesized_expression ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT)) )) (argument_list ( (binary_expression IDENT + LIT) )))) ;) (return_statement return IDENT ;) })) (if_statement if (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression (unary_expression ~ IDENT) & IDENT) )) == LIT) )) (compound_statement { (expression_statement (assignment_expression IDENT = (binary_expression (parenthesized_expression ( (binary_expression IDENT << LIT) )) >> LIT)) ;) (for_statement for ( (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator * (abstract_pointer_declarator *))) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) ; (binary_expression IDENT != (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) LIT)) ; (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (pointer_expression * IDENT))) ) (compound_statement { (labeled_statement statement_identifier : (if_statement if (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression (subscript_expression IDENT [ LIT ]) == IDENT) )) && (parenthesized_expression ( (binary_expression (cast_expression ( (type_descriptor TYPE) ) (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) == IDENT) ))) )) (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 (cast_expression ( (type_descriptor TYPE) ) IDENT) + LIT) )))) ;) (return_statement return IDENT ;) }))) })) (if_statement if (parenthesized_expression ( (binary_expression IDENT != LIT) )) (goto_statement goto statement_identifier ;)) }) (else_clause else (compound_statement { (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator * (abstract_pointer_declarator *))) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT != (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) LIT)) )) (compound_statement { (expression_statement (assignment_expression IDENT = LIT) ;) (goto_statement goto statement_identifier ;) })) (labeled_statement statement_identifier : (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( IDENT )))) ;)) (expression_statement (assignment_expression IDENT = LIT) ;) (expression_statement (assignment_expression IDENT = LIT) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT != LIT) )) (goto_statement goto statement_identifier ;)) }))) (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE) ) IDENT)) ;) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( IDENT )))) ;) (labeled_statement 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 )))) ;)) (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (call_expression (parenthesized_expression ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT)) )) (argument_list ( (binary_expression IDENT + LIT) ))))) ;) (expression_statement (assignment_expression IDENT = IDENT) ;) (expression_statement (assignment_expression (pointer_expression * IDENT) = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = IDENT) ;) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) = IDENT) ;) (expression_statement (call_expression (parenthesized_expression ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT)) )) (argument_list ( (binary_expression (cast_expression ( (type_descriptor TYPE) ) IDENT) + LIT) , IDENT ))) ;) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator * (abstract_pointer_declarator *))) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) = IDENT) ;) (return_statement return IDENT ;) })))
(function_definition "int FUN_000f4d6c(short *param_1,uint param_2,uint param_3)\n\n{\n  undefined *puVar1;\n  int iVar2;\n  int iVar3;\n  undefined4 *puVar4;\n  int *piVar5;\n  uint uVar6;\n  uint uVar8;\n  undefined1 uVar7;\n  \n  if (*param_1 != 2) {\n    **(undefined4 **)PTR_DAT_001311d8 = 0x7c;\n    return 0;\n  }\n  if ((param_2 & 0xfff) != 0) {\n    iVar2 = FUN_00103cc8();\n    return iVar2;\n  }\n  uVar8 = *(uint *)(param_1 + 2);\n  if (uVar8 == 0) {\n    if ((param_2 & 0x8000) != 0) {\n      iVar2 = (*(code *)PTR_FUN_001312b8)(PTR_FUN_001311a4 + -0x5de4);\n      return iVar2;\n    }\n    iVar2 = (*(code *)PTR_FUN_001312b8)(PTR_FUN_001311a4 + 0x2a80);\n    return iVar2;\n  }\n  if ((~param_3 & uVar8) == 0) {\n    uVar6 = (param_2 << 0x11) >> 0x1f;\n    for (piVar5 = *(int **)(PTR_DAT_00131178 + 0x23b0); piVar5 != (int *)0x0;\n        piVar5 = (int *)*piVar5) {\nLAB_000f4e68:\n      if ((piVar5[1] == uVar8) && ((int)*(char *)(piVar5 + 2) == uVar6)) {\n        iVar2 = (*(code *)PTR_FUN_001312b8)((int)piVar5 + 9);\n        return iVar2;\n      }\n    }\n    if (uVar6 != 0) goto LAB_000f4eac;\n  }\n  else {\n    piVar5 = *(int **)(PTR_DAT_00131178 + 0x23b0);\n    if (piVar5 != (int *)0x0) {\n      uVar6 = 1;\n      goto LAB_000f4e68;\n    }\nLAB_000f4eac:\n    iVar2 = FUN_00103c50(param_1);\n    uVar6 = 1;\n    uVar7 = 1;\n    if (iVar2 != 0) goto LAB_000f4ee4;\n  }\n  uVar7 = (undefined1)uVar6;\n  iVar2 = FUN_00103cc8(param_1);\nLAB_000f4ee4:\n  iVar3 = (*(code *)PTR_strlen_00131f58)(iVar2);\n  puVar4 = (undefined4 *)(*(code *)PTR_FUN_00131240)(iVar3 + 0xc);\n  puVar1 = PTR_DAT_00131178;\n  *puVar4 = *(undefined4 *)(PTR_DAT_00131178 + 0x23b0);\n  puVar4[1] = uVar8;\n  *(undefined1 *)(puVar4 + 2) = uVar7;\n  (*(code *)PTR_strcpy_00132018)((int)puVar4 + 9,iVar2);\n  *(undefined4 **)(puVar1 + 0x23b0) = puVar4;\n  return iVar2;\n}" (primitive_type "int") (function_declarator "FUN_000f4d6c(short *param_1,uint param_2,uint param_3)" (identifier "FUN_000f4d6c") (parameter_list "(short *param_1,uint param_2,uint param_3)" (( "(") (parameter_declaration "short *param_1" (sized_type_specifier "short" (short "short")) (pointer_declarator "*param_1" (* "*") (identifier "param_1"))) (, ",") (parameter_declaration "uint param_2" (type_identifier "uint") (identifier "param_2")) (, ",") (parameter_declaration "uint param_3" (type_identifier "uint") (identifier "param_3")) () ")"))) (compound_statement "{\n  undefined *puVar1;\n  int iVar2;\n  int iVar3;\n  undefined4 *puVar4;\n  int *piVar5;\n  uint uVar6;\n  uint uVar8;\n  undefined1 uVar7;\n  \n  if (*param_1 != 2) {\n    **(undefined4 **)PTR_DAT_001311d8 = 0x7c;\n    return 0;\n  }\n  if ((param_2 & 0xfff) != 0) {\n    iVar2 = FUN_00103cc8();\n    return iVar2;\n  }\n  uVar8 = *(uint *)(param_1 + 2);\n  if (uVar8 == 0) {\n    if ((param_2 & 0x8000) != 0) {\n      iVar2 = (*(code *)PTR_FUN_001312b8)(PTR_FUN_001311a4 + -0x5de4);\n      return iVar2;\n    }\n    iVar2 = (*(code *)PTR_FUN_001312b8)(PTR_FUN_001311a4 + 0x2a80);\n    return iVar2;\n  }\n  if ((~param_3 & uVar8) == 0) {\n    uVar6 = (param_2 << 0x11) >> 0x1f;\n    for (piVar5 = *(int **)(PTR_DAT_00131178 + 0x23b0); piVar5 != (int *)0x0;\n        piVar5 = (int *)*piVar5) {\nLAB_000f4e68:\n      if ((piVar5[1] == uVar8) && ((int)*(char *)(piVar5 + 2) == uVar6)) {\n        iVar2 = (*(code *)PTR_FUN_001312b8)((int)piVar5 + 9);\n        return iVar2;\n      }\n    }\n    if (uVar6 != 0) goto LAB_000f4eac;\n  }\n  else {\n    piVar5 = *(int **)(PTR_DAT_00131178 + 0x23b0);\n    if (piVar5 != (int *)0x0) {\n      uVar6 = 1;\n      goto LAB_000f4e68;\n    }\nLAB_000f4eac:\n    iVar2 = FUN_00103c50(param_1);\n    uVar6 = 1;\n    uVar7 = 1;\n    if (iVar2 != 0) goto LAB_000f4ee4;\n  }\n  uVar7 = (undefined1)uVar6;\n  iVar2 = FUN_00103cc8(param_1);\nLAB_000f4ee4:\n  iVar3 = (*(code *)PTR_strlen_00131f58)(iVar2);\n  puVar4 = (undefined4 *)(*(code *)PTR_FUN_00131240)(iVar3 + 0xc);\n  puVar1 = PTR_DAT_00131178;\n  *puVar4 = *(undefined4 *)(PTR_DAT_00131178 + 0x23b0);\n  puVar4[1] = uVar8;\n  *(undefined1 *)(puVar4 + 2) = uVar7;\n  (*(code *)PTR_strcpy_00132018)((int)puVar4 + 9,iVar2);\n  *(undefined4 **)(puVar1 + 0x23b0) = puVar4;\n  return iVar2;\n}" ({ "{") (declaration "undefined *puVar1;" (type_identifier "undefined") (pointer_declarator "*puVar1" (* "*") (identifier "puVar1")) (; ";")) (declaration "int iVar2;" (primitive_type "int") (identifier "iVar2") (; ";")) (declaration "int iVar3;" (primitive_type "int") (identifier "iVar3") (; ";")) (declaration "undefined4 *puVar4;" (type_identifier "undefined4") (pointer_declarator "*puVar4" (* "*") (identifier "puVar4")) (; ";")) (declaration "int *piVar5;" (primitive_type "int") (pointer_declarator "*piVar5" (* "*") (identifier "piVar5")) (; ";")) (declaration "uint uVar6;" (type_identifier "uint") (identifier "uVar6") (; ";")) (declaration "uint uVar8;" (type_identifier "uint") (identifier "uVar8") (; ";")) (declaration "undefined1 uVar7;" (type_identifier "undefined1") (identifier "uVar7") (; ";")) (if_statement "if (*param_1 != 2) {\n    **(undefined4 **)PTR_DAT_001311d8 = 0x7c;\n    return 0;\n  }" (if "if") (parenthesized_expression "(*param_1 != 2)" (( "(") (binary_expression "*param_1 != 2" (pointer_expression "*param_1" (* "*") (identifier "param_1")) (!= "!=") (number_literal "2")) () ")")) (compound_statement "{\n    **(undefined4 **)PTR_DAT_001311d8 = 0x7c;\n    return 0;\n  }" ({ "{") (expression_statement "**(undefined4 **)PTR_DAT_001311d8 = 0x7c;" (assignment_expression "**(undefined4 **)PTR_DAT_001311d8 = 0x7c" (pointer_expression "**(undefined4 **)PTR_DAT_001311d8" (* "*") (pointer_expression "*(undefined4 **)PTR_DAT_001311d8" (* "*") (cast_expression "(undefined4 **)PTR_DAT_001311d8" (( "(") (type_descriptor "undefined4 **" (type_identifier "undefined4") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (identifier "PTR_DAT_001311d8")))) (= "=") (number_literal "0x7c")) (; ";")) (return_statement "return 0;" (return "return") (number_literal "0") (; ";")) (} "}"))) (if_statement "if ((param_2 & 0xfff) != 0) {\n    iVar2 = FUN_00103cc8();\n    return iVar2;\n  }" (if "if") (parenthesized_expression "((param_2 & 0xfff) != 0)" (( "(") (binary_expression "(param_2 & 0xfff) != 0" (parenthesized_expression "(param_2 & 0xfff)" (( "(") (binary_expression "param_2 & 0xfff" (identifier "param_2") (& "&") (number_literal "0xfff")) () ")")) (!= "!=") (number_literal "0")) () ")")) (compound_statement "{\n    iVar2 = FUN_00103cc8();\n    return iVar2;\n  }" ({ "{") (expression_statement "iVar2 = FUN_00103cc8();" (assignment_expression "iVar2 = FUN_00103cc8()" (identifier "iVar2") (= "=") (call_expression "FUN_00103cc8()" (identifier "FUN_00103cc8") (argument_list "()" (( "(") () ")")))) (; ";")) (return_statement "return iVar2;" (return "return") (identifier "iVar2") (; ";")) (} "}"))) (expression_statement "uVar8 = *(uint *)(param_1 + 2);" (assignment_expression "uVar8 = *(uint *)(param_1 + 2)" (identifier "uVar8") (= "=") (pointer_expression "*(uint *)(param_1 + 2)" (* "*") (cast_expression "(uint *)(param_1 + 2)" (( "(") (type_descriptor "uint *" (type_identifier "uint") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 2)" (( "(") (binary_expression "param_1 + 2" (identifier "param_1") (+ "+") (number_literal "2")) () ")"))))) (; ";")) (if_statement "if (uVar8 == 0) {\n    if ((param_2 & 0x8000) != 0) {\n      iVar2 = (*(code *)PTR_FUN_001312b8)(PTR_FUN_001311a4 + -0x5de4);\n      return iVar2;\n    }\n    iVar2 = (*(code *)PTR_FUN_001312b8)(PTR_FUN_001311a4 + 0x2a80);\n    return iVar2;\n  }" (if "if") (parenthesized_expression "(uVar8 == 0)" (( "(") (binary_expression "uVar8 == 0" (identifier "uVar8") (== "==") (number_literal "0")) () ")")) (compound_statement "{\n    if ((param_2 & 0x8000) != 0) {\n      iVar2 = (*(code *)PTR_FUN_001312b8)(PTR_FUN_001311a4 + -0x5de4);\n      return iVar2;\n    }\n    iVar2 = (*(code *)PTR_FUN_001312b8)(PTR_FUN_001311a4 + 0x2a80);\n    return iVar2;\n  }" ({ "{") (if_statement "if ((param_2 & 0x8000) != 0) {\n      iVar2 = (*(code *)PTR_FUN_001312b8)(PTR_FUN_001311a4 + -0x5de4);\n      return iVar2;\n    }" (if "if") (parenthesized_expression "((param_2 & 0x8000) != 0)" (( "(") (binary_expression "(param_2 & 0x8000) != 0" (parenthesized_expression "(param_2 & 0x8000)" (( "(") (binary_expression "param_2 & 0x8000" (identifier "param_2") (& "&") (number_literal "0x8000")) () ")")) (!= "!=") (number_literal "0")) () ")")) (compound_statement "{\n      iVar2 = (*(code *)PTR_FUN_001312b8)(PTR_FUN_001311a4 + -0x5de4);\n      return iVar2;\n    }" ({ "{") (expression_statement "iVar2 = (*(code *)PTR_FUN_001312b8)(PTR_FUN_001311a4 + -0x5de4);" (assignment_expression "iVar2 = (*(code *)PTR_FUN_001312b8)(PTR_FUN_001311a4 + -0x5de4)" (identifier "iVar2") (= "=") (call_expression "(*(code *)PTR_FUN_001312b8)(PTR_FUN_001311a4 + -0x5de4)" (parenthesized_expression "(*(code *)PTR_FUN_001312b8)" (( "(") (pointer_expression "*(code *)PTR_FUN_001312b8" (* "*") (cast_expression "(code *)PTR_FUN_001312b8" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR_FUN_001312b8"))) () ")")) (argument_list "(PTR_FUN_001311a4 + -0x5de4)" (( "(") (binary_expression "PTR_FUN_001311a4 + -0x5de4" (identifier "PTR_FUN_001311a4") (+ "+") (number_literal "-0x5de4")) () ")")))) (; ";")) (return_statement "return iVar2;" (return "return") (identifier "iVar2") (; ";")) (} "}"))) (expression_statement "iVar2 = (*(code *)PTR_FUN_001312b8)(PTR_FUN_001311a4 + 0x2a80);" (assignment_expression "iVar2 = (*(code *)PTR_FUN_001312b8)(PTR_FUN_001311a4 + 0x2a80)" (identifier "iVar2") (= "=") (call_expression "(*(code *)PTR_FUN_001312b8)(PTR_FUN_001311a4 + 0x2a80)" (parenthesized_expression "(*(code *)PTR_FUN_001312b8)" (( "(") (pointer_expression "*(code *)PTR_FUN_001312b8" (* "*") (cast_expression "(code *)PTR_FUN_001312b8" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR_FUN_001312b8"))) () ")")) (argument_list "(PTR_FUN_001311a4 + 0x2a80)" (( "(") (binary_expression "PTR_FUN_001311a4 + 0x2a80" (identifier "PTR_FUN_001311a4") (+ "+") (number_literal "0x2a80")) () ")")))) (; ";")) (return_statement "return iVar2;" (return "return") (identifier "iVar2") (; ";")) (} "}"))) (if_statement "if ((~param_3 & uVar8) == 0) {\n    uVar6 = (param_2 << 0x11) >> 0x1f;\n    for (piVar5 = *(int **)(PTR_DAT_00131178 + 0x23b0); piVar5 != (int *)0x0;\n        piVar5 = (int *)*piVar5) {\nLAB_000f4e68:\n      if ((piVar5[1] == uVar8) && ((int)*(char *)(piVar5 + 2) == uVar6)) {\n        iVar2 = (*(code *)PTR_FUN_001312b8)((int)piVar5 + 9);\n        return iVar2;\n      }\n    }\n    if (uVar6 != 0) goto LAB_000f4eac;\n  }\n  else {\n    piVar5 = *(int **)(PTR_DAT_00131178 + 0x23b0);\n    if (piVar5 != (int *)0x0) {\n      uVar6 = 1;\n      goto LAB_000f4e68;\n    }\nLAB_000f4eac:\n    iVar2 = FUN_00103c50(param_1);\n    uVar6 = 1;\n    uVar7 = 1;\n    if (iVar2 != 0) goto LAB_000f4ee4;\n  }" (if "if") (parenthesized_expression "((~param_3 & uVar8) == 0)" (( "(") (binary_expression "(~param_3 & uVar8) == 0" (parenthesized_expression "(~param_3 & uVar8)" (( "(") (binary_expression "~param_3 & uVar8" (unary_expression "~param_3" (~ "~") (identifier "param_3")) (& "&") (identifier "uVar8")) () ")")) (== "==") (number_literal "0")) () ")")) (compound_statement "{\n    uVar6 = (param_2 << 0x11) >> 0x1f;\n    for (piVar5 = *(int **)(PTR_DAT_00131178 + 0x23b0); piVar5 != (int *)0x0;\n        piVar5 = (int *)*piVar5) {\nLAB_000f4e68:\n      if ((piVar5[1] == uVar8) && ((int)*(char *)(piVar5 + 2) == uVar6)) {\n        iVar2 = (*(code *)PTR_FUN_001312b8)((int)piVar5 + 9);\n        return iVar2;\n      }\n    }\n    if (uVar6 != 0) goto LAB_000f4eac;\n  }" ({ "{") (expression_statement "uVar6 = (param_2 << 0x11) >> 0x1f;" (assignment_expression "uVar6 = (param_2 << 0x11) >> 0x1f" (identifier "uVar6") (= "=") (binary_expression "(param_2 << 0x11) >> 0x1f" (parenthesized_expression "(param_2 << 0x11)" (( "(") (binary_expression "param_2 << 0x11" (identifier "param_2") (<< "<<") (number_literal "0x11")) () ")")) (>> ">>") (number_literal "0x1f"))) (; ";")) (for_statement "for (piVar5 = *(int **)(PTR_DAT_00131178 + 0x23b0); piVar5 != (int *)0x0;\n        piVar5 = (int *)*piVar5) {\nLAB_000f4e68:\n      if ((piVar5[1] == uVar8) && ((int)*(char *)(piVar5 + 2) == uVar6)) {\n        iVar2 = (*(code *)PTR_FUN_001312b8)((int)piVar5 + 9);\n        return iVar2;\n      }\n    }" (for "for") (( "(") (assignment_expression "piVar5 = *(int **)(PTR_DAT_00131178 + 0x23b0)" (identifier "piVar5") (= "=") (pointer_expression "*(int **)(PTR_DAT_00131178 + 0x23b0)" (* "*") (cast_expression "(int **)(PTR_DAT_00131178 + 0x23b0)" (( "(") (type_descriptor "int **" (primitive_type "int") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (parenthesized_expression "(PTR_DAT_00131178 + 0x23b0)" (( "(") (binary_expression "PTR_DAT_00131178 + 0x23b0" (identifier "PTR_DAT_00131178") (+ "+") (number_literal "0x23b0")) () ")"))))) (; ";") (binary_expression "piVar5 != (int *)0x0" (identifier "piVar5") (!= "!=") (cast_expression "(int *)0x0" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (number_literal "0x0"))) (; ";") (assignment_expression "piVar5 = (int *)*piVar5" (identifier "piVar5") (= "=") (cast_expression "(int *)*piVar5" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (pointer_expression "*piVar5" (* "*") (identifier "piVar5")))) () ")") (compound_statement "{\nLAB_000f4e68:\n      if ((piVar5[1] == uVar8) && ((int)*(char *)(piVar5 + 2) == uVar6)) {\n        iVar2 = (*(code *)PTR_FUN_001312b8)((int)piVar5 + 9);\n        return iVar2;\n      }\n    }" ({ "{") (labeled_statement "LAB_000f4e68:\n      if ((piVar5[1] == uVar8) && ((int)*(char *)(piVar5 + 2) == uVar6)) {\n        iVar2 = (*(code *)PTR_FUN_001312b8)((int)piVar5 + 9);\n        return iVar2;\n      }" (statement_identifier "LAB_000f4e68") (: ":") (if_statement "if ((piVar5[1] == uVar8) && ((int)*(char *)(piVar5 + 2) == uVar6)) {\n        iVar2 = (*(code *)PTR_FUN_001312b8)((int)piVar5 + 9);\n        return iVar2;\n      }" (if "if") (parenthesized_expression "((piVar5[1] == uVar8) && ((int)*(char *)(piVar5 + 2) == uVar6))" (( "(") (binary_expression "(piVar5[1] == uVar8) && ((int)*(char *)(piVar5 + 2) == uVar6)" (parenthesized_expression "(piVar5[1] == uVar8)" (( "(") (binary_expression "piVar5[1] == uVar8" (subscript_expression "piVar5[1]" (identifier "piVar5") ([ "[") (number_literal "1") (] "]")) (== "==") (identifier "uVar8")) () ")")) (&& "&&") (parenthesized_expression "((int)*(char *)(piVar5 + 2) == uVar6)" (( "(") (binary_expression "(int)*(char *)(piVar5 + 2) == uVar6" (cast_expression "(int)*(char *)(piVar5 + 2)" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (pointer_expression "*(char *)(piVar5 + 2)" (* "*") (cast_expression "(char *)(piVar5 + 2)" (( "(") (type_descriptor "char *" (primitive_type "char") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(piVar5 + 2)" (( "(") (binary_expression "piVar5 + 2" (identifier "piVar5") (+ "+") (number_literal "2")) () ")"))))) (== "==") (identifier "uVar6")) () ")"))) () ")")) (compound_statement "{\n        iVar2 = (*(code *)PTR_FUN_001312b8)((int)piVar5 + 9);\n        return iVar2;\n      }" ({ "{") (expression_statement "iVar2 = (*(code *)PTR_FUN_001312b8)((int)piVar5 + 9);" (assignment_expression "iVar2 = (*(code *)PTR_FUN_001312b8)((int)piVar5 + 9)" (identifier "iVar2") (= "=") (call_expression "(*(code *)PTR_FUN_001312b8)((int)piVar5 + 9)" (parenthesized_expression "(*(code *)PTR_FUN_001312b8)" (( "(") (pointer_expression "*(code *)PTR_FUN_001312b8" (* "*") (cast_expression "(code *)PTR_FUN_001312b8" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR_FUN_001312b8"))) () ")")) (argument_list "((int)piVar5 + 9)" (( "(") (binary_expression "(int)piVar5 + 9" (cast_expression "(int)piVar5" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (identifier "piVar5")) (+ "+") (number_literal "9")) () ")")))) (; ";")) (return_statement "return iVar2;" (return "return") (identifier "iVar2") (; ";")) (} "}")))) (} "}"))) (if_statement "if (uVar6 != 0) goto LAB_000f4eac;" (if "if") (parenthesized_expression "(uVar6 != 0)" (( "(") (binary_expression "uVar6 != 0" (identifier "uVar6") (!= "!=") (number_literal "0")) () ")")) (goto_statement "goto LAB_000f4eac;" (goto "goto") (statement_identifier "LAB_000f4eac") (; ";"))) (} "}")) (else_clause "else {\n    piVar5 = *(int **)(PTR_DAT_00131178 + 0x23b0);\n    if (piVar5 != (int *)0x0) {\n      uVar6 = 1;\n      goto LAB_000f4e68;\n    }\nLAB_000f4eac:\n    iVar2 = FUN_00103c50(param_1);\n    uVar6 = 1;\n    uVar7 = 1;\n    if (iVar2 != 0) goto LAB_000f4ee4;\n  }" (else "else") (compound_statement "{\n    piVar5 = *(int **)(PTR_DAT_00131178 + 0x23b0);\n    if (piVar5 != (int *)0x0) {\n      uVar6 = 1;\n      goto LAB_000f4e68;\n    }\nLAB_000f4eac:\n    iVar2 = FUN_00103c50(param_1);\n    uVar6 = 1;\n    uVar7 = 1;\n    if (iVar2 != 0) goto LAB_000f4ee4;\n  }" ({ "{") (expression_statement "piVar5 = *(int **)(PTR_DAT_00131178 + 0x23b0);" (assignment_expression "piVar5 = *(int **)(PTR_DAT_00131178 + 0x23b0)" (identifier "piVar5") (= "=") (pointer_expression "*(int **)(PTR_DAT_00131178 + 0x23b0)" (* "*") (cast_expression "(int **)(PTR_DAT_00131178 + 0x23b0)" (( "(") (type_descriptor "int **" (primitive_type "int") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (parenthesized_expression "(PTR_DAT_00131178 + 0x23b0)" (( "(") (binary_expression "PTR_DAT_00131178 + 0x23b0" (identifier "PTR_DAT_00131178") (+ "+") (number_literal "0x23b0")) () ")"))))) (; ";")) (if_statement "if (piVar5 != (int *)0x0) {\n      uVar6 = 1;\n      goto LAB_000f4e68;\n    }" (if "if") (parenthesized_expression "(piVar5 != (int *)0x0)" (( "(") (binary_expression "piVar5 != (int *)0x0" (identifier "piVar5") (!= "!=") (cast_expression "(int *)0x0" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (number_literal "0x0"))) () ")")) (compound_statement "{\n      uVar6 = 1;\n      goto LAB_000f4e68;\n    }" ({ "{") (expression_statement "uVar6 = 1;" (assignment_expression "uVar6 = 1" (identifier "uVar6") (= "=") (number_literal "1")) (; ";")) (goto_statement "goto LAB_000f4e68;" (goto "goto") (statement_identifier "LAB_000f4e68") (; ";")) (} "}"))) (labeled_statement "LAB_000f4eac:\n    iVar2 = FUN_00103c50(param_1);" (statement_identifier "LAB_000f4eac") (: ":") (expression_statement "iVar2 = FUN_00103c50(param_1);" (assignment_expression "iVar2 = FUN_00103c50(param_1)" (identifier "iVar2") (= "=") (call_expression "FUN_00103c50(param_1)" (identifier "FUN_00103c50") (argument_list "(param_1)" (( "(") (identifier "param_1") () ")")))) (; ";"))) (expression_statement "uVar6 = 1;" (assignment_expression "uVar6 = 1" (identifier "uVar6") (= "=") (number_literal "1")) (; ";")) (expression_statement "uVar7 = 1;" (assignment_expression "uVar7 = 1" (identifier "uVar7") (= "=") (number_literal "1")) (; ";")) (if_statement "if (iVar2 != 0) goto LAB_000f4ee4;" (if "if") (parenthesized_expression "(iVar2 != 0)" (( "(") (binary_expression "iVar2 != 0" (identifier "iVar2") (!= "!=") (number_literal "0")) () ")")) (goto_statement "goto LAB_000f4ee4;" (goto "goto") (statement_identifier "LAB_000f4ee4") (; ";"))) (} "}")))) (expression_statement "uVar7 = (undefined1)uVar6;" (assignment_expression "uVar7 = (undefined1)uVar6" (identifier "uVar7") (= "=") (cast_expression "(undefined1)uVar6" (( "(") (type_descriptor "undefined1" (type_identifier "undefined1")) () ")") (identifier "uVar6"))) (; ";")) (expression_statement "iVar2 = FUN_00103cc8(param_1);" (assignment_expression "iVar2 = FUN_00103cc8(param_1)" (identifier "iVar2") (= "=") (call_expression "FUN_00103cc8(param_1)" (identifier "FUN_00103cc8") (argument_list "(param_1)" (( "(") (identifier "param_1") () ")")))) (; ";")) (labeled_statement "LAB_000f4ee4:\n  iVar3 = (*(code *)PTR_strlen_00131f58)(iVar2);" (statement_identifier "LAB_000f4ee4") (: ":") (expression_statement "iVar3 = (*(code *)PTR_strlen_00131f58)(iVar2);" (assignment_expression "iVar3 = (*(code *)PTR_strlen_00131f58)(iVar2)" (identifier "iVar3") (= "=") (call_expression "(*(code *)PTR_strlen_00131f58)(iVar2)" (parenthesized_expression "(*(code *)PTR_strlen_00131f58)" (( "(") (pointer_expression "*(code *)PTR_strlen_00131f58" (* "*") (cast_expression "(code *)PTR_strlen_00131f58" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR_strlen_00131f58"))) () ")")) (argument_list "(iVar2)" (( "(") (identifier "iVar2") () ")")))) (; ";"))) (expression_statement "puVar4 = (undefined4 *)(*(code *)PTR_FUN_00131240)(iVar3 + 0xc);" (assignment_expression "puVar4 = (undefined4 *)(*(code *)PTR_FUN_00131240)(iVar3 + 0xc)" (identifier "puVar4") (= "=") (cast_expression "(undefined4 *)(*(code *)PTR_FUN_00131240)(iVar3 + 0xc)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (call_expression "(*(code *)PTR_FUN_00131240)(iVar3 + 0xc)" (parenthesized_expression "(*(code *)PTR_FUN_00131240)" (( "(") (pointer_expression "*(code *)PTR_FUN_00131240" (* "*") (cast_expression "(code *)PTR_FUN_00131240" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR_FUN_00131240"))) () ")")) (argument_list "(iVar3 + 0xc)" (( "(") (binary_expression "iVar3 + 0xc" (identifier "iVar3") (+ "+") (number_literal "0xc")) () ")"))))) (; ";")) (expression_statement "puVar1 = PTR_DAT_00131178;" (assignment_expression "puVar1 = PTR_DAT_00131178" (identifier "puVar1") (= "=") (identifier "PTR_DAT_00131178")) (; ";")) (expression_statement "*puVar4 = *(undefined4 *)(PTR_DAT_00131178 + 0x23b0);" (assignment_expression "*puVar4 = *(undefined4 *)(PTR_DAT_00131178 + 0x23b0)" (pointer_expression "*puVar4" (* "*") (identifier "puVar4")) (= "=") (pointer_expression "*(undefined4 *)(PTR_DAT_00131178 + 0x23b0)" (* "*") (cast_expression "(undefined4 *)(PTR_DAT_00131178 + 0x23b0)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(PTR_DAT_00131178 + 0x23b0)" (( "(") (binary_expression "PTR_DAT_00131178 + 0x23b0" (identifier "PTR_DAT_00131178") (+ "+") (number_literal "0x23b0")) () ")"))))) (; ";")) (expression_statement "puVar4[1] = uVar8;" (assignment_expression "puVar4[1] = uVar8" (subscript_expression "puVar4[1]" (identifier "puVar4") ([ "[") (number_literal "1") (] "]")) (= "=") (identifier "uVar8")) (; ";")) (expression_statement "*(undefined1 *)(puVar4 + 2) = uVar7;" (assignment_expression "*(undefined1 *)(puVar4 + 2) = uVar7" (pointer_expression "*(undefined1 *)(puVar4 + 2)" (* "*") (cast_expression "(undefined1 *)(puVar4 + 2)" (( "(") (type_descriptor "undefined1 *" (type_identifier "undefined1") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(puVar4 + 2)" (( "(") (binary_expression "puVar4 + 2" (identifier "puVar4") (+ "+") (number_literal "2")) () ")")))) (= "=") (identifier "uVar7")) (; ";")) (expression_statement "(*(code *)PTR_strcpy_00132018)((int)puVar4 + 9,iVar2);" (call_expression "(*(code *)PTR_strcpy_00132018)((int)puVar4 + 9,iVar2)" (parenthesized_expression "(*(code *)PTR_strcpy_00132018)" (( "(") (pointer_expression "*(code *)PTR_strcpy_00132018" (* "*") (cast_expression "(code *)PTR_strcpy_00132018" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR_strcpy_00132018"))) () ")")) (argument_list "((int)puVar4 + 9,iVar2)" (( "(") (binary_expression "(int)puVar4 + 9" (cast_expression "(int)puVar4" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (identifier "puVar4")) (+ "+") (number_literal "9")) (, ",") (identifier "iVar2") () ")"))) (; ";")) (expression_statement "*(undefined4 **)(puVar1 + 0x23b0) = puVar4;" (assignment_expression "*(undefined4 **)(puVar1 + 0x23b0) = puVar4" (pointer_expression "*(undefined4 **)(puVar1 + 0x23b0)" (* "*") (cast_expression "(undefined4 **)(puVar1 + 0x23b0)" (( "(") (type_descriptor "undefined4 **" (type_identifier "undefined4") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (parenthesized_expression "(puVar1 + 0x23b0)" (( "(") (binary_expression "puVar1 + 0x23b0" (identifier "puVar1") (+ "+") (number_literal "0x23b0")) () ")")))) (= "=") (identifier "puVar4")) (; ";")) (return_statement "return iVar2;" (return "return") (identifier "iVar2") (; ";")) (} "}")))

char * function_1(type_1 *s_in,int var_1,uint32_t netmask)

{
  type_2 *var_12;
  char *var_9;
  int var_10;
  type_3 *var_11;
  int *var_6;
  type_4 var_7;
  type_4 var_3;
  type_5 uVar7;
  
  if (s_in->sin_family != 2) {
    **(type_3 **)PTR_bb_errno_001311d8 = 0x7c;
    return (char *)0x0;
  }
  if ((var_1 & 0xfffU) != 0) {
    var_9 = var_2((type_6 *)s_in);
    return var_9;
  }
  var_3 = (s_in->sin_addr).s_addr;
  if (var_3 == 0) {
    if ((var_1 & 0x8000U) != 0) {
      var_9 = (char *)(*(type_7 *)PTR_xstrdup_001312b8)(var_4 + -0x5de4)
      ;
      return var_9;
    }
    var_9 = (char *)(*(type_7 *)PTR_xstrdup_001312b8)(var_4 + 0x2a80);
    return var_9;
  }
  if ((~netmask & var_3) == 0) {
    var_7 = (type_4)(var_1 << 0x11) >> 0x1f;
    for (var_6 = *(int **)(var_5 + 0x23b0); var_6 != (int *)0x0;
        var_6 = (int *)*var_6) {
LAB_000f4e68:
      if ((var_6[1] == var_3) && ((int)*(char *)(var_6 + 2) == var_7)) {
        var_9 = (char *)(*(type_7 *)PTR_xstrdup_001312b8)((int)var_6 + 9);
        return var_9;
      }
    }
    if (var_7 != 0) goto LAB_000f4eac;
  }
  else {
    var_6 = *(int **)(var_5 + 0x23b0);
    if (var_6 != (int *)0x0) {
      var_7 = 1;
      goto LAB_000f4e68;
    }
LAB_000f4eac:
    var_9 = var_8((type_6 *)s_in);
    var_7 = 1;
    uVar7 = 1;
    if (var_9 != (char *)0x0) goto LAB_000f4ee4;
  }
  uVar7 = (type_5)var_7;
  var_9 = var_2((type_6 *)s_in);
LAB_000f4ee4:
  var_10 = (*(type_7 *)PTR_strlen_00131f58)(var_9);
  var_11 = (type_3 *)(*(type_7 *)PTR_xmalloc_00131240)(var_10 + 0xc);
  var_12 = var_5;
  *var_11 = *(type_3 *)(var_5 + 0x23b0);
  var_11[1] = var_3;
  *(type_5 *)(var_11 + 2) = uVar7;
  (*(type_7 *)PTR_strcpy_00132018)((int)var_11 + 9,var_9);
  *(type_3 **)(var_12 + 0x23b0) = var_11;
  return var_9;
}


(translation_unit (function_definition type: (primitive_type) declarator: (function_declarator declarator: (identifier) parameters: (parameter_list (parameter_declaration type: (sized_type_specifier) declarator: (pointer_declarator declarator: (identifier))) (parameter_declaration type: (type_identifier) declarator: (identifier)) (parameter_declaration type: (type_identifier) declarator: (identifier)))) body: (compound_statement (declaration type: (type_identifier) declarator: (pointer_declarator declarator: (identifier))) (declaration type: (primitive_type) declarator: (identifier)) (declaration type: (primitive_type) declarator: (identifier)) (declaration type: (type_identifier) declarator: (pointer_declarator declarator: (identifier))) (declaration type: (primitive_type) declarator: (pointer_declarator declarator: (identifier))) (declaration type: (type_identifier) declarator: (identifier)) (declaration type: (type_identifier) declarator: (identifier)) (declaration type: (type_identifier) declarator: (identifier)) (if_statement condition: (parenthesized_expression (binary_expression left: (pointer_expression argument: (identifier)) right: (number_literal))) consequence: (compound_statement (expression_statement (assignment_expression left: (pointer_expression argument: (pointer_expression argument: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator declarator: (abstract_pointer_declarator))) value: (identifier)))) right: (number_literal))) (return_statement (number_literal)))) (if_statement condition: (parenthesized_expression (binary_expression left: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))) right: (number_literal))) consequence: (compound_statement (expression_statement (assignment_expression left: (identifier) right: (call_expression function: (identifier) arguments: (argument_list)))) (return_statement (identifier)))) (expression_statement (assignment_expression left: (identifier) right: (pointer_expression argument: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))))))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))) consequence: (compound_statement (if_statement condition: (parenthesized_expression (binary_expression left: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))) right: (number_literal))) consequence: (compound_statement (expression_statement (assignment_expression left: (identifier) right: (call_expression function: (parenthesized_expression (pointer_expression argument: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (identifier)))) arguments: (argument_list (binary_expression left: (identifier) right: (number_literal)))))) (return_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 (binary_expression left: (identifier) right: (number_literal)))))) (return_statement (identifier)))) (if_statement condition: (parenthesized_expression (binary_expression left: (parenthesized_expression (binary_expression left: (unary_expression argument: (identifier)) right: (identifier))) right: (number_literal))) consequence: (compound_statement (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))) right: (number_literal)))) (for_statement initializer: (assignment_expression left: (identifier) right: (pointer_expression argument: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator declarator: (abstract_pointer_declarator))) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal)))))) condition: (binary_expression left: (identifier) right: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (number_literal))) update: (assignment_expression left: (identifier) right: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (pointer_expression argument: (identifier)))) body: (compound_statement (labeled_statement label: (statement_identifier) (if_statement condition: (parenthesized_expression (binary_expression left: (parenthesized_expression (binary_expression left: (subscript_expression argument: (identifier) index: (number_literal)) right: (identifier))) right: (parenthesized_expression (binary_expression left: (cast_expression type: (type_descriptor type: (primitive_type)) value: (pointer_expression argument: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal)))))) right: (identifier))))) consequence: (compound_statement (expression_statement (assignment_expression left: (identifier) right: (call_expression function: (parenthesized_expression (pointer_expression argument: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (identifier)))) arguments: (argument_list (binary_expression left: (cast_expression type: (type_descriptor type: (primitive_type)) value: (identifier)) right: (number_literal)))))) (return_statement (identifier))))))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))) consequence: (goto_statement label: (statement_identifier)))) alternative: (else_clause (compound_statement (expression_statement (assignment_expression left: (identifier) right: (pointer_expression argument: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator declarator: (abstract_pointer_declarator))) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))))))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (number_literal)))) consequence: (compound_statement (expression_statement (assignment_expression left: (identifier) right: (number_literal))) (goto_statement label: (statement_identifier)))) (labeled_statement label: (statement_identifier) (expression_statement (assignment_expression left: (identifier) right: (call_expression function: (identifier) arguments: (argument_list (identifier)))))) (expression_statement (assignment_expression left: (identifier) right: (number_literal))) (expression_statement (assignment_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: (cast_expression type: (type_descriptor type: (type_identifier)) value: (identifier)))) (expression_statement (assignment_expression left: (identifier) right: (call_expression function: (identifier) arguments: (argument_list (identifier))))) (labeled_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)))))) (expression_statement (assignment_expression left: (identifier) right: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (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: (identifier) right: (number_literal))))))) (expression_statement (assignment_expression left: (identifier) right: (identifier))) (expression_statement (assignment_expression left: (pointer_expression argument: (identifier)) right: (pointer_expression argument: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))))))) (expression_statement (assignment_expression left: (subscript_expression argument: (identifier) index: (number_literal)) right: (identifier))) (expression_statement (assignment_expression left: (pointer_expression argument: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))))) right: (identifier))) (expression_statement (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: (cast_expression type: (type_descriptor type: (primitive_type)) value: (identifier)) right: (number_literal)) (identifier)))) (expression_statement (assignment_expression left: (pointer_expression argument: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator declarator: (abstract_pointer_declarator))) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))))) right: (identifier))) (return_statement (identifier)))))

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

{
  undefined *puVar1;
  int iVar2;
  int iVar3;
  undefined4 *puVar4;
  int *piVar5;
  uint uVar6;
  uint uVar8;
  undefined1 uVar7;
  
  if (*param_1 != 2) {
    **(undefined4 **)PTR_DAT_001311d8 = 0x7c;
    return 0;
  }
  if ((param_2 & 0xfff) != 0) {
    iVar2 = FUN_00103cc8();
    return iVar2;
  }
  uVar8 = *(uint *)(param_1 + 2);
  if (uVar8 == 0) {
    if ((param_2 & 0x8000) != 0) {
      iVar2 = (*(code *)PTR_FUN_001312b8)(PTR_FUN_001311a4 + -0x5de4);
      return iVar2;
    }
    iVar2 = (*(code *)PTR_FUN_001312b8)(PTR_FUN_001311a4 + 0x2a80);
    return iVar2;
  }
  if ((~param_3 & uVar8) == 0) {
    uVar6 = (param_2 << 0x11) >> 0x1f;
    for (piVar5 = *(int **)(PTR_DAT_00131178 + 0x23b0); piVar5 != (int *)0x0;
        piVar5 = (int *)*piVar5) {
LAB_000f4e68:
      if ((piVar5[1] == uVar8) && ((int)*(char *)(piVar5 + 2) == uVar6)) {
        iVar2 = (*(code *)PTR_FUN_001312b8)((int)piVar5 + 9);
        return iVar2;
      }
    }
    if (uVar6 != 0) goto LAB_000f4eac;
  }
  else {
    piVar5 = *(int **)(PTR_DAT_00131178 + 0x23b0);
    if (piVar5 != (int *)0x0) {
      uVar6 = 1;
      goto LAB_000f4e68;
    }
LAB_000f4eac:
    iVar2 = FUN_00103c50(param_1);
    uVar6 = 1;
    uVar7 = 1;
    if (iVar2 != 0) goto LAB_000f4ee4;
  }
  uVar7 = (undefined1)uVar6;
  iVar2 = FUN_00103cc8(param_1);
LAB_000f4ee4:
  iVar3 = (*(code *)PTR_strlen_00131f58)(iVar2);
  puVar4 = (undefined4 *)(*(code *)PTR_FUN_00131240)(iVar3 + 0xc);
  puVar1 = PTR_DAT_00131178;
  *puVar4 = *(undefined4 *)(PTR_DAT_00131178 + 0x23b0);
  puVar4[1] = uVar8;
  *(undefined1 *)(puVar4 + 2) = uVar7;
  (*(code *)PTR_strcpy_00132018)((int)puVar4 + 9,iVar2);
  *(undefined4 **)(puVar1 + 0x23b0) = puVar4;
  return iVar2;
}

