
/* WARNING: Function: __x86.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */
/* WARNING: Unknown calling convention */

awk_bool_t api_sym_update_scalar(awk_ext_id_t id,awk_scalar_t cookie,awk_value_t *value)

{
  awk_string_t aVar1;
  char *pcVar2;
  awk_valtype_t aVar3;
  wchar_t wVar4;
  NODE *pNVar5;
  uint uVar6;
  
  if (value == (awk_value_t *)0x0) {
    return awk_false;
  }
  if (cookie == (awk_scalar_t)0x0) {
    return awk_false;
  }
  if (*(int *)((int)cookie + 0x28) != 4) {
    return awk_false;
  }
  if ((*(uint *)((int)cookie + 0x2c) & 0x1000) != 0) {
    return awk_false;
  }
  if (AWK_VALUE_COOKIE < value->val_type) {
    return awk_false;
  }
  uVar6 = 1 << ((byte)value->val_type & 0x1f);
  if ((uVar6 & 0xc9) == 0) {
    if ((uVar6 & 0x14) != 0) {
                    /* WARNING: Load size is inaccurate */
      pNVar5 = *cookie;
      if ((pNVar5->sub).nodep.name == (char *)0x1) {
        if ((pNVar5->flags & 5) == 5) {
          free((pNVar5->sub).val.sp);
        }
        mpfr_unset(pNVar5);
        if ((pNVar5->flags & 0x200) != 0) {
          r_free_wstr(pNVar5);
        }
        aVar3 = value->val_type;
        pNVar5->flags = 7;
        (pNVar5->sub).val.fltnum = 0.0;
        if (aVar3 == AWK_STRNUM) {
          pNVar5->flags = 0x27;
        }
        pcVar2 = (value->u).s.str;
        (pNVar5->sub).nodep.reserved = 0xffffffff;
        (pNVar5->sub).val.sp = pcVar2;
        (pNVar5->sub).nodep.x = (anon_union_4_4_38bfafa6_for_x)(value->u).s.len;
        return awk_true;
      }
      goto LAB_0005adde;
    }
    if ((uVar6 & 2) == 0) {
      return awk_false;
    }
                    /* WARNING: Load size is inaccurate */
    pNVar5 = *cookie;
    if ((pNVar5->sub).nodep.name != (char *)0x1) goto LAB_0005adde;
    if ((do_flags & 0x8000U) == 0) {
      uVar6 = pNVar5->flags;
      if ((uVar6 & 5) == 5) {
        free((pNVar5->sub).val.sp);
        uVar6 = pNVar5->flags;
      }
      if ((uVar6 & 0x200) != 0) {
        r_free_wstr(pNVar5);
      }
      aVar1 = (value->u).s;
      pNVar5->flags = 0x19;
      (pNVar5->sub).val.sp = (char *)0x0;
      (pNVar5->sub).val.slen = 0;
      (pNVar5->sub).val.fltnum = (double)aVar1;
      return awk_true;
    }
    (pNVar5->sub).nodep.name = (char *)0x0;
  }
  else {
                    /* WARNING: Load size is inaccurate */
    pNVar5 = *cookie;
    if (pNVar5 == (NODE *)0x0) goto LAB_0005adeb;
LAB_0005adde:
    wVar4 = (pNVar5->sub).val.sref + L'\xffffffff';
    (pNVar5->sub).val.sref = wVar4;
    if (L'\0' < wVar4) goto LAB_0005adeb;
  }
  r_unref(pNVar5);
LAB_0005adeb:
  pNVar5 = awk_value_to_node(value);
  *(NODE **)cookie = pNVar5;
  return awk_true;
}



/* WARNING: Function: __i686.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */
/* WARNING: Globals starting with '_' overlap smaller symbols at the same address */

undefined4 FUN_0005ad40(undefined4 param_1,undefined4 *param_2,uint *param_3)

{
  undefined8 uVar1;
  int iVar2;
  undefined4 uVar3;
  uint uVar4;
  undefined8 *puVar5;
  
  if (param_3 == (uint *)0x0) {
    return 0;
  }
  if (param_2 == (undefined4 *)0x0) {
    return 0;
  }
  if (param_2[10] != 4) {
    return 0;
  }
  if ((param_2[0xb] & 0x1000) != 0) {
    return 0;
  }
  if (7 < *param_3) {
    return 0;
  }
  uVar4 = 1 << ((byte)*param_3 & 0x1f);
  if ((uVar4 & 0xc9) == 0) {
    if ((uVar4 & 0x14) != 0) {
      puVar5 = (undefined8 *)*param_2;
      if (*(int *)(puVar5 + 2) == 1) {
        if ((*(uint *)((int)puVar5 + 0x2c) & 5) == 5) {
          free(*(void **)(puVar5 + 1));
        }
        FUN_000660c0(puVar5);
        if ((*(byte *)((int)puVar5 + 0x2d) & 2) != 0) {
          FUN_00067810(puVar5);
        }
        uVar4 = *param_3;
        *(undefined4 *)((int)puVar5 + 0x2c) = 7;
        *puVar5 = 0;
        if (uVar4 == 4) {
          *(undefined4 *)((int)puVar5 + 0x2c) = 0x27;
        }
        uVar4 = param_3[1];
        *(undefined4 *)((int)puVar5 + 0x14) = 0xffffffff;
        *(uint *)(puVar5 + 1) = uVar4;
        *(uint *)((int)puVar5 + 0xc) = param_3[2];
        return 1;
      }
      goto LAB_0005adde;
    }
    if ((uVar4 & 2) == 0) {
      return 0;
    }
    puVar5 = (undefined8 *)*param_2;
    if (*(int *)(puVar5 + 2) != 1) goto LAB_0005adde;
    if ((_DAT_000c3760 & 0x8000) == 0) {
      uVar4 = *(uint *)((int)puVar5 + 0x2c);
      if ((uVar4 & 5) == 5) {
        free(*(void **)(puVar5 + 1));
        uVar4 = *(uint *)((int)puVar5 + 0x2c);
      }
      if ((uVar4 & 0x200) != 0) {
        FUN_00067810(puVar5);
      }
      uVar1 = *(undefined8 *)(param_3 + 1);
      *(undefined4 *)((int)puVar5 + 0x2c) = 0x19;
      *(undefined4 *)(puVar5 + 1) = 0;
      *(undefined4 *)((int)puVar5 + 0xc) = 0;
      *puVar5 = uVar1;
      return 1;
    }
    *(undefined4 *)(puVar5 + 2) = 0;
  }
  else {
    puVar5 = (undefined8 *)*param_2;
    if (puVar5 == (undefined8 *)0x0) goto LAB_0005adeb;
LAB_0005adde:
    iVar2 = *(int *)(puVar5 + 2);
    *(int *)(puVar5 + 2) = iVar2 + -1;
    if (0 < iVar2 + -1) goto LAB_0005adeb;
  }
  FUN_000668b0(puVar5);
LAB_0005adeb:
  uVar3 = FUN_0005a7e0(param_3);
  *param_2 = uVar3;
  return 1;
}


PUSH EBP
PUSH EDI
XOR EAX,EAX
PUSH ESI
PUSH EBX
CALL 0x00016f50
ADD EBX,0x63f99
SUB ESP,0xc
MOV EDI,dword ptr [ESP + 0x28]
MOV ESI,dword ptr [ESP + 0x24]
TEST EDI,EDI
JZ 0x0005ad6a
TEST ESI,ESI
JZ 0x0005ad6a
CMP dword ptr [ESI + 0x28],0x4
JZ 0x0005ad78
ADD ESP,0xc
POP EBX
POP ESI
POP EDI
POP EBP
RET
MOV EDX,dword ptr [ESI + 0x2c]
AND EDX,0x1000
JNZ 0x0005ad6a
MOV ECX,dword ptr [EDI]
MOV EAX,EDX
CMP ECX,0x7
JA 0x0005ad6a
MOV EDX,0x1
SHL EDX,CL
TEST DL,0xc9
JNZ 0x0005add8
MOV EAX,EDX
AND EAX,0x14
JNZ 0x0005ae08
AND EDX,0x2
JZ 0x0005ad6a
MOV EBP,dword ptr [ESI]
CMP dword ptr [EBP + 0x10],0x1
JNZ 0x0005adde
LEA EAX,[EBX + 0x4a7c]
MOV EAX,dword ptr [EAX]
TEST AH,0x80
JZ 0x0005ae72
MOV dword ptr [EBP + 0x10],0x0
SUB ESP,0xc
PUSH EBP
CALL 0x000668b0
ADD ESP,0x10
JMP 0x0005adeb
MOV EBP,dword ptr [ESI]
TEST EBP,EBP
JZ 0x0005adeb
MOV EAX,dword ptr [EBP + 0x10]
SUB EAX,0x1
TEST EAX,EAX
MOV dword ptr [EBP + 0x10],EAX
JLE 0x0005adc4
SUB ESP,0xc
PUSH EDI
CALL 0x0005a7e0
ADD ESP,0x10
MOV dword ptr [ESI],EAX
MOV EAX,0x1
JMP 0x0005ad6a
MOV EBP,dword ptr [ESI]
CMP dword ptr [EBP + 0x10],0x1
JNZ 0x0005adde
MOV EAX,dword ptr [EBP + 0x2c]
AND EAX,0x5
CMP EAX,0x5
JZ 0x0005aeb5
SUB ESP,0xc
PUSH EBP
CALL 0x000660c0
ADD ESP,0x10
TEST byte ptr [EBP + 0x2d],0x2
JZ 0x0005ae3d
SUB ESP,0xc
PUSH EBP
CALL 0x00067810
ADD ESP,0x10
CMP dword ptr [EDI],0x4
FLDZ
MOV dword ptr [EBP + 0x2c],0x7
FSTP qword ptr [EBP]
JNZ 0x0005ae55
MOV dword ptr [EBP + 0x2c],0x27
MOV EAX,dword ptr [EDI + 0x4]
MOV dword ptr [EBP + 0x14],0xffffffff
MOV dword ptr [EBP + 0x8],EAX
MOV EAX,dword ptr [EDI + 0x8]
MOV dword ptr [EBP + 0xc],EAX
MOV EAX,0x1
JMP 0x0005ad6a
MOV EAX,dword ptr [EBP + 0x2c]
MOV EDX,EAX
AND EDX,0x5
CMP EDX,0x5
JZ 0x0005aec8
TEST AH,0x2
JZ 0x0005ae90
SUB ESP,0xc
PUSH EBP
CALL 0x00067810
ADD ESP,0x10
FLD qword ptr [EDI + 0x4]
MOV EAX,0x1
MOV dword ptr [EBP + 0x2c],0x19
MOV dword ptr [EBP + 0x8],0x0
MOV dword ptr [EBP + 0xc],0x0
FSTP qword ptr [EBP]
JMP 0x0005ad6a
SUB ESP,0xc
PUSH dword ptr [EBP + 0x8]
CALL 0x00013e50
ADD ESP,0x10
JMP 0x0005ae1f
SUB ESP,0xc
PUSH dword ptr [EBP + 0x8]
CALL 0x00013e50
ADD ESP,0x10
MOV EAX,dword ptr [EBP + 0x2c]
JMP 0x0005ae7f
(translation_unit "/* WARNING: Function: __i686.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */\n/* WARNING: Globals starting with '_' overlap smaller symbols at the same address */\n\nundefined4 FUN_0005ad40(undefined4 param_1,undefined4 *param_2,uint *param_3)\n\n{\n  undefined8 uVar1;\n  int iVar2;\n  undefined4 uVar3;\n  uint uVar4;\n  undefined8 *puVar5;\n  \n  if (param_3 == (uint *)0x0) {\n    return 0;\n  }\n  if (param_2 == (undefined4 *)0x0) {\n    return 0;\n  }\n  if (param_2[10] != 4) {\n    return 0;\n  }\n  if ((param_2[0xb] & 0x1000) != 0) {\n    return 0;\n  }\n  if (7 < *param_3) {\n    return 0;\n  }\n  uVar4 = 1 << ((byte)*param_3 & 0x1f);\n  if ((uVar4 & 0xc9) == 0) {\n    if ((uVar4 & 0x14) != 0) {\n      puVar5 = (undefined8 *)*param_2;\n      if (*(int *)(puVar5 + 2) == 1) {\n        if ((*(uint *)((int)puVar5 + 0x2c) & 5) == 5) {\n          free(*(void **)(puVar5 + 1));\n        }\n        FUN_000660c0(puVar5);\n        if ((*(byte *)((int)puVar5 + 0x2d) & 2) != 0) {\n          FUN_00067810(puVar5);\n        }\n        uVar4 = *param_3;\n        *(undefined4 *)((int)puVar5 + 0x2c) = 7;\n        *puVar5 = 0;\n        if (uVar4 == 4) {\n          *(undefined4 *)((int)puVar5 + 0x2c) = 0x27;\n        }\n        uVar4 = param_3[1];\n        *(undefined4 *)((int)puVar5 + 0x14) = 0xffffffff;\n        *(uint *)(puVar5 + 1) = uVar4;\n        *(uint *)((int)puVar5 + 0xc) = param_3[2];\n        return 1;\n      }\n      goto LAB_0005adde;\n    }\n    if ((uVar4 & 2) == 0) {\n      return 0;\n    }\n    puVar5 = (undefined8 *)*param_2;\n    if (*(int *)(puVar5 + 2) != 1) goto LAB_0005adde;\n    if ((_DAT_000c3760 & 0x8000) == 0) {\n      uVar4 = *(uint *)((int)puVar5 + 0x2c);\n      if ((uVar4 & 5) == 5) {\n        free(*(void **)(puVar5 + 1));\n        uVar4 = *(uint *)((int)puVar5 + 0x2c);\n      }\n      if ((uVar4 & 0x200) != 0) {\n        FUN_00067810(puVar5);\n      }\n      uVar1 = *(undefined8 *)(param_3 + 1);\n      *(undefined4 *)((int)puVar5 + 0x2c) = 0x19;\n      *(undefined4 *)(puVar5 + 1) = 0;\n      *(undefined4 *)((int)puVar5 + 0xc) = 0;\n      *puVar5 = uVar1;\n      return 1;\n    }\n    *(undefined4 *)(puVar5 + 2) = 0;\n  }\n  else {\n    puVar5 = (undefined8 *)*param_2;\n    if (puVar5 == (undefined8 *)0x0) goto LAB_0005adeb;\nLAB_0005adde:\n    iVar2 = *(int *)(puVar5 + 2);\n    *(int *)(puVar5 + 2) = iVar2 + -1;\n    if (0 < iVar2 + -1) goto LAB_0005adeb;\n  }\n  FUN_000668b0(puVar5);\nLAB_0005adeb:\n  uVar3 = FUN_0005a7e0(param_3);\n  *param_2 = uVar3;\n  return 1;\n}\n\n" comment comment (function_definition "undefined4 FUN_0005ad40(undefined4 param_1,undefined4 *param_2,uint *param_3)\n\n{\n  undefined8 uVar1;\n  int iVar2;\n  undefined4 uVar3;\n  uint uVar4;\n  undefined8 *puVar5;\n  \n  if (param_3 == (uint *)0x0) {\n    return 0;\n  }\n  if (param_2 == (undefined4 *)0x0) {\n    return 0;\n  }\n  if (param_2[10] != 4) {\n    return 0;\n  }\n  if ((param_2[0xb] & 0x1000) != 0) {\n    return 0;\n  }\n  if (7 < *param_3) {\n    return 0;\n  }\n  uVar4 = 1 << ((byte)*param_3 & 0x1f);\n  if ((uVar4 & 0xc9) == 0) {\n    if ((uVar4 & 0x14) != 0) {\n      puVar5 = (undefined8 *)*param_2;\n      if (*(int *)(puVar5 + 2) == 1) {\n        if ((*(uint *)((int)puVar5 + 0x2c) & 5) == 5) {\n          free(*(void **)(puVar5 + 1));\n        }\n        FUN_000660c0(puVar5);\n        if ((*(byte *)((int)puVar5 + 0x2d) & 2) != 0) {\n          FUN_00067810(puVar5);\n        }\n        uVar4 = *param_3;\n        *(undefined4 *)((int)puVar5 + 0x2c) = 7;\n        *puVar5 = 0;\n        if (uVar4 == 4) {\n          *(undefined4 *)((int)puVar5 + 0x2c) = 0x27;\n        }\n        uVar4 = param_3[1];\n        *(undefined4 *)((int)puVar5 + 0x14) = 0xffffffff;\n        *(uint *)(puVar5 + 1) = uVar4;\n        *(uint *)((int)puVar5 + 0xc) = param_3[2];\n        return 1;\n      }\n      goto LAB_0005adde;\n    }\n    if ((uVar4 & 2) == 0) {\n      return 0;\n    }\n    puVar5 = (undefined8 *)*param_2;\n    if (*(int *)(puVar5 + 2) != 1) goto LAB_0005adde;\n    if ((_DAT_000c3760 & 0x8000) == 0) {\n      uVar4 = *(uint *)((int)puVar5 + 0x2c);\n      if ((uVar4 & 5) == 5) {\n        free(*(void **)(puVar5 + 1));\n        uVar4 = *(uint *)((int)puVar5 + 0x2c);\n      }\n      if ((uVar4 & 0x200) != 0) {\n        FUN_00067810(puVar5);\n      }\n      uVar1 = *(undefined8 *)(param_3 + 1);\n      *(undefined4 *)((int)puVar5 + 0x2c) = 0x19;\n      *(undefined4 *)(puVar5 + 1) = 0;\n      *(undefined4 *)((int)puVar5 + 0xc) = 0;\n      *puVar5 = uVar1;\n      return 1;\n    }\n    *(undefined4 *)(puVar5 + 2) = 0;\n  }\n  else {\n    puVar5 = (undefined8 *)*param_2;\n    if (puVar5 == (undefined8 *)0x0) goto LAB_0005adeb;\nLAB_0005adde:\n    iVar2 = *(int *)(puVar5 + 2);\n    *(int *)(puVar5 + 2) = iVar2 + -1;\n    if (0 < iVar2 + -1) goto LAB_0005adeb;\n  }\n  FUN_000668b0(puVar5);\nLAB_0005adeb:\n  uVar3 = FUN_0005a7e0(param_3);\n  *param_2 = uVar3;\n  return 1;\n}" type_identifier (function_declarator "FUN_0005ad40(undefined4 param_1,undefined4 *param_2,uint *param_3)" identifier (parameter_list "(undefined4 param_1,undefined4 *param_2,uint *param_3)" ( (parameter_declaration "undefined4 param_1" type_identifier identifier) , (parameter_declaration "undefined4 *param_2" type_identifier (pointer_declarator "*param_2" * identifier)) , (parameter_declaration "uint *param_3" type_identifier (pointer_declarator "*param_3" * identifier)) ))) (compound_statement "{\n  undefined8 uVar1;\n  int iVar2;\n  undefined4 uVar3;\n  uint uVar4;\n  undefined8 *puVar5;\n  \n  if (param_3 == (uint *)0x0) {\n    return 0;\n  }\n  if (param_2 == (undefined4 *)0x0) {\n    return 0;\n  }\n  if (param_2[10] != 4) {\n    return 0;\n  }\n  if ((param_2[0xb] & 0x1000) != 0) {\n    return 0;\n  }\n  if (7 < *param_3) {\n    return 0;\n  }\n  uVar4 = 1 << ((byte)*param_3 & 0x1f);\n  if ((uVar4 & 0xc9) == 0) {\n    if ((uVar4 & 0x14) != 0) {\n      puVar5 = (undefined8 *)*param_2;\n      if (*(int *)(puVar5 + 2) == 1) {\n        if ((*(uint *)((int)puVar5 + 0x2c) & 5) == 5) {\n          free(*(void **)(puVar5 + 1));\n        }\n        FUN_000660c0(puVar5);\n        if ((*(byte *)((int)puVar5 + 0x2d) & 2) != 0) {\n          FUN_00067810(puVar5);\n        }\n        uVar4 = *param_3;\n        *(undefined4 *)((int)puVar5 + 0x2c) = 7;\n        *puVar5 = 0;\n        if (uVar4 == 4) {\n          *(undefined4 *)((int)puVar5 + 0x2c) = 0x27;\n        }\n        uVar4 = param_3[1];\n        *(undefined4 *)((int)puVar5 + 0x14) = 0xffffffff;\n        *(uint *)(puVar5 + 1) = uVar4;\n        *(uint *)((int)puVar5 + 0xc) = param_3[2];\n        return 1;\n      }\n      goto LAB_0005adde;\n    }\n    if ((uVar4 & 2) == 0) {\n      return 0;\n    }\n    puVar5 = (undefined8 *)*param_2;\n    if (*(int *)(puVar5 + 2) != 1) goto LAB_0005adde;\n    if ((_DAT_000c3760 & 0x8000) == 0) {\n      uVar4 = *(uint *)((int)puVar5 + 0x2c);\n      if ((uVar4 & 5) == 5) {\n        free(*(void **)(puVar5 + 1));\n        uVar4 = *(uint *)((int)puVar5 + 0x2c);\n      }\n      if ((uVar4 & 0x200) != 0) {\n        FUN_00067810(puVar5);\n      }\n      uVar1 = *(undefined8 *)(param_3 + 1);\n      *(undefined4 *)((int)puVar5 + 0x2c) = 0x19;\n      *(undefined4 *)(puVar5 + 1) = 0;\n      *(undefined4 *)((int)puVar5 + 0xc) = 0;\n      *puVar5 = uVar1;\n      return 1;\n    }\n    *(undefined4 *)(puVar5 + 2) = 0;\n  }\n  else {\n    puVar5 = (undefined8 *)*param_2;\n    if (puVar5 == (undefined8 *)0x0) goto LAB_0005adeb;\nLAB_0005adde:\n    iVar2 = *(int *)(puVar5 + 2);\n    *(int *)(puVar5 + 2) = iVar2 + -1;\n    if (0 < iVar2 + -1) goto LAB_0005adeb;\n  }\n  FUN_000668b0(puVar5);\nLAB_0005adeb:\n  uVar3 = FUN_0005a7e0(param_3);\n  *param_2 = uVar3;\n  return 1;\n}" { (declaration "undefined8 uVar1;" type_identifier identifier ;) (declaration "int iVar2;" primitive_type identifier ;) (declaration "undefined4 uVar3;" type_identifier identifier ;) (declaration "uint uVar4;" type_identifier identifier ;) (declaration "undefined8 *puVar5;" type_identifier (pointer_declarator "*puVar5" * identifier) ;) (if_statement "if (param_3 == (uint *)0x0) {\n    return 0;\n  }" if (parenthesized_expression "(param_3 == (uint *)0x0)" ( (binary_expression "param_3 == (uint *)0x0" identifier == (cast_expression "(uint *)0x0" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n    return 0;\n  }" { (return_statement "return 0;" return number_literal ;) })) (if_statement "if (param_2 == (undefined4 *)0x0) {\n    return 0;\n  }" if (parenthesized_expression "(param_2 == (undefined4 *)0x0)" ( (binary_expression "param_2 == (undefined4 *)0x0" identifier == (cast_expression "(undefined4 *)0x0" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n    return 0;\n  }" { (return_statement "return 0;" return number_literal ;) })) (if_statement "if (param_2[10] != 4) {\n    return 0;\n  }" if (parenthesized_expression "(param_2[10] != 4)" ( (binary_expression "param_2[10] != 4" (subscript_expression "param_2[10]" identifier [ number_literal ]) != number_literal) )) (compound_statement "{\n    return 0;\n  }" { (return_statement "return 0;" return number_literal ;) })) (if_statement "if ((param_2[0xb] & 0x1000) != 0) {\n    return 0;\n  }" if (parenthesized_expression "((param_2[0xb] & 0x1000) != 0)" ( (binary_expression "(param_2[0xb] & 0x1000) != 0" (parenthesized_expression "(param_2[0xb] & 0x1000)" ( (binary_expression "param_2[0xb] & 0x1000" (subscript_expression "param_2[0xb]" identifier [ number_literal ]) & number_literal) )) != number_literal) )) (compound_statement "{\n    return 0;\n  }" { (return_statement "return 0;" return number_literal ;) })) (if_statement "if (7 < *param_3) {\n    return 0;\n  }" if (parenthesized_expression "(7 < *param_3)" ( (binary_expression "7 < *param_3" number_literal < (pointer_expression "*param_3" * identifier)) )) (compound_statement "{\n    return 0;\n  }" { (return_statement "return 0;" return number_literal ;) })) (expression_statement "uVar4 = 1 << ((byte)*param_3 & 0x1f);" (assignment_expression "uVar4 = 1 << ((byte)*param_3 & 0x1f)" identifier = (binary_expression "1 << ((byte)*param_3 & 0x1f)" number_literal << (parenthesized_expression "((byte)*param_3 & 0x1f)" ( (binary_expression "(byte)*param_3 & 0x1f" (binary_expression "(byte)*param_3" (parenthesized_expression "(byte)" ( identifier )) * identifier) & number_literal) )))) ;) (if_statement "if ((uVar4 & 0xc9) == 0) {\n    if ((uVar4 & 0x14) != 0) {\n      puVar5 = (undefined8 *)*param_2;\n      if (*(int *)(puVar5 + 2) == 1) {\n        if ((*(uint *)((int)puVar5 + 0x2c) & 5) == 5) {\n          free(*(void **)(puVar5 + 1));\n        }\n        FUN_000660c0(puVar5);\n        if ((*(byte *)((int)puVar5 + 0x2d) & 2) != 0) {\n          FUN_00067810(puVar5);\n        }\n        uVar4 = *param_3;\n        *(undefined4 *)((int)puVar5 + 0x2c) = 7;\n        *puVar5 = 0;\n        if (uVar4 == 4) {\n          *(undefined4 *)((int)puVar5 + 0x2c) = 0x27;\n        }\n        uVar4 = param_3[1];\n        *(undefined4 *)((int)puVar5 + 0x14) = 0xffffffff;\n        *(uint *)(puVar5 + 1) = uVar4;\n        *(uint *)((int)puVar5 + 0xc) = param_3[2];\n        return 1;\n      }\n      goto LAB_0005adde;\n    }\n    if ((uVar4 & 2) == 0) {\n      return 0;\n    }\n    puVar5 = (undefined8 *)*param_2;\n    if (*(int *)(puVar5 + 2) != 1) goto LAB_0005adde;\n    if ((_DAT_000c3760 & 0x8000) == 0) {\n      uVar4 = *(uint *)((int)puVar5 + 0x2c);\n      if ((uVar4 & 5) == 5) {\n        free(*(void **)(puVar5 + 1));\n        uVar4 = *(uint *)((int)puVar5 + 0x2c);\n      }\n      if ((uVar4 & 0x200) != 0) {\n        FUN_00067810(puVar5);\n      }\n      uVar1 = *(undefined8 *)(param_3 + 1);\n      *(undefined4 *)((int)puVar5 + 0x2c) = 0x19;\n      *(undefined4 *)(puVar5 + 1) = 0;\n      *(undefined4 *)((int)puVar5 + 0xc) = 0;\n      *puVar5 = uVar1;\n      return 1;\n    }\n    *(undefined4 *)(puVar5 + 2) = 0;\n  }\n  else {\n    puVar5 = (undefined8 *)*param_2;\n    if (puVar5 == (undefined8 *)0x0) goto LAB_0005adeb;\nLAB_0005adde:\n    iVar2 = *(int *)(puVar5 + 2);\n    *(int *)(puVar5 + 2) = iVar2 + -1;\n    if (0 < iVar2 + -1) goto LAB_0005adeb;\n  }" if (parenthesized_expression "((uVar4 & 0xc9) == 0)" ( (binary_expression "(uVar4 & 0xc9) == 0" (parenthesized_expression "(uVar4 & 0xc9)" ( (binary_expression "uVar4 & 0xc9" identifier & number_literal) )) == number_literal) )) (compound_statement "{\n    if ((uVar4 & 0x14) != 0) {\n      puVar5 = (undefined8 *)*param_2;\n      if (*(int *)(puVar5 + 2) == 1) {\n        if ((*(uint *)((int)puVar5 + 0x2c) & 5) == 5) {\n          free(*(void **)(puVar5 + 1));\n        }\n        FUN_000660c0(puVar5);\n        if ((*(byte *)((int)puVar5 + 0x2d) & 2) != 0) {\n          FUN_00067810(puVar5);\n        }\n        uVar4 = *param_3;\n        *(undefined4 *)((int)puVar5 + 0x2c) = 7;\n        *puVar5 = 0;\n        if (uVar4 == 4) {\n          *(undefined4 *)((int)puVar5 + 0x2c) = 0x27;\n        }\n        uVar4 = param_3[1];\n        *(undefined4 *)((int)puVar5 + 0x14) = 0xffffffff;\n        *(uint *)(puVar5 + 1) = uVar4;\n        *(uint *)((int)puVar5 + 0xc) = param_3[2];\n        return 1;\n      }\n      goto LAB_0005adde;\n    }\n    if ((uVar4 & 2) == 0) {\n      return 0;\n    }\n    puVar5 = (undefined8 *)*param_2;\n    if (*(int *)(puVar5 + 2) != 1) goto LAB_0005adde;\n    if ((_DAT_000c3760 & 0x8000) == 0) {\n      uVar4 = *(uint *)((int)puVar5 + 0x2c);\n      if ((uVar4 & 5) == 5) {\n        free(*(void **)(puVar5 + 1));\n        uVar4 = *(uint *)((int)puVar5 + 0x2c);\n      }\n      if ((uVar4 & 0x200) != 0) {\n        FUN_00067810(puVar5);\n      }\n      uVar1 = *(undefined8 *)(param_3 + 1);\n      *(undefined4 *)((int)puVar5 + 0x2c) = 0x19;\n      *(undefined4 *)(puVar5 + 1) = 0;\n      *(undefined4 *)((int)puVar5 + 0xc) = 0;\n      *puVar5 = uVar1;\n      return 1;\n    }\n    *(undefined4 *)(puVar5 + 2) = 0;\n  }" { (if_statement "if ((uVar4 & 0x14) != 0) {\n      puVar5 = (undefined8 *)*param_2;\n      if (*(int *)(puVar5 + 2) == 1) {\n        if ((*(uint *)((int)puVar5 + 0x2c) & 5) == 5) {\n          free(*(void **)(puVar5 + 1));\n        }\n        FUN_000660c0(puVar5);\n        if ((*(byte *)((int)puVar5 + 0x2d) & 2) != 0) {\n          FUN_00067810(puVar5);\n        }\n        uVar4 = *param_3;\n        *(undefined4 *)((int)puVar5 + 0x2c) = 7;\n        *puVar5 = 0;\n        if (uVar4 == 4) {\n          *(undefined4 *)((int)puVar5 + 0x2c) = 0x27;\n        }\n        uVar4 = param_3[1];\n        *(undefined4 *)((int)puVar5 + 0x14) = 0xffffffff;\n        *(uint *)(puVar5 + 1) = uVar4;\n        *(uint *)((int)puVar5 + 0xc) = param_3[2];\n        return 1;\n      }\n      goto LAB_0005adde;\n    }" if (parenthesized_expression "((uVar4 & 0x14) != 0)" ( (binary_expression "(uVar4 & 0x14) != 0" (parenthesized_expression "(uVar4 & 0x14)" ( (binary_expression "uVar4 & 0x14" identifier & number_literal) )) != number_literal) )) (compound_statement "{\n      puVar5 = (undefined8 *)*param_2;\n      if (*(int *)(puVar5 + 2) == 1) {\n        if ((*(uint *)((int)puVar5 + 0x2c) & 5) == 5) {\n          free(*(void **)(puVar5 + 1));\n        }\n        FUN_000660c0(puVar5);\n        if ((*(byte *)((int)puVar5 + 0x2d) & 2) != 0) {\n          FUN_00067810(puVar5);\n        }\n        uVar4 = *param_3;\n        *(undefined4 *)((int)puVar5 + 0x2c) = 7;\n        *puVar5 = 0;\n        if (uVar4 == 4) {\n          *(undefined4 *)((int)puVar5 + 0x2c) = 0x27;\n        }\n        uVar4 = param_3[1];\n        *(undefined4 *)((int)puVar5 + 0x14) = 0xffffffff;\n        *(uint *)(puVar5 + 1) = uVar4;\n        *(uint *)((int)puVar5 + 0xc) = param_3[2];\n        return 1;\n      }\n      goto LAB_0005adde;\n    }" { (expression_statement "puVar5 = (undefined8 *)*param_2;" (assignment_expression "puVar5 = (undefined8 *)*param_2" identifier = (cast_expression "(undefined8 *)*param_2" ( (type_descriptor "undefined8 *" type_identifier (abstract_pointer_declarator "*" *)) ) (pointer_expression "*param_2" * identifier))) ;) (if_statement "if (*(int *)(puVar5 + 2) == 1) {\n        if ((*(uint *)((int)puVar5 + 0x2c) & 5) == 5) {\n          free(*(void **)(puVar5 + 1));\n        }\n        FUN_000660c0(puVar5);\n        if ((*(byte *)((int)puVar5 + 0x2d) & 2) != 0) {\n          FUN_00067810(puVar5);\n        }\n        uVar4 = *param_3;\n        *(undefined4 *)((int)puVar5 + 0x2c) = 7;\n        *puVar5 = 0;\n        if (uVar4 == 4) {\n          *(undefined4 *)((int)puVar5 + 0x2c) = 0x27;\n        }\n        uVar4 = param_3[1];\n        *(undefined4 *)((int)puVar5 + 0x14) = 0xffffffff;\n        *(uint *)(puVar5 + 1) = uVar4;\n        *(uint *)((int)puVar5 + 0xc) = param_3[2];\n        return 1;\n      }" if (parenthesized_expression "(*(int *)(puVar5 + 2) == 1)" ( (binary_expression "*(int *)(puVar5 + 2) == 1" (pointer_expression "*(int *)(puVar5 + 2)" * (cast_expression "(int *)(puVar5 + 2)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(puVar5 + 2)" ( (binary_expression "puVar5 + 2" identifier + number_literal) )))) == number_literal) )) (compound_statement "{\n        if ((*(uint *)((int)puVar5 + 0x2c) & 5) == 5) {\n          free(*(void **)(puVar5 + 1));\n        }\n        FUN_000660c0(puVar5);\n        if ((*(byte *)((int)puVar5 + 0x2d) & 2) != 0) {\n          FUN_00067810(puVar5);\n        }\n        uVar4 = *param_3;\n        *(undefined4 *)((int)puVar5 + 0x2c) = 7;\n        *puVar5 = 0;\n        if (uVar4 == 4) {\n          *(undefined4 *)((int)puVar5 + 0x2c) = 0x27;\n        }\n        uVar4 = param_3[1];\n        *(undefined4 *)((int)puVar5 + 0x14) = 0xffffffff;\n        *(uint *)(puVar5 + 1) = uVar4;\n        *(uint *)((int)puVar5 + 0xc) = param_3[2];\n        return 1;\n      }" { (if_statement "if ((*(uint *)((int)puVar5 + 0x2c) & 5) == 5) {\n          free(*(void **)(puVar5 + 1));\n        }" if (parenthesized_expression "((*(uint *)((int)puVar5 + 0x2c) & 5) == 5)" ( (binary_expression "(*(uint *)((int)puVar5 + 0x2c) & 5) == 5" (parenthesized_expression "(*(uint *)((int)puVar5 + 0x2c) & 5)" ( (binary_expression "*(uint *)((int)puVar5 + 0x2c) & 5" (pointer_expression "*(uint *)((int)puVar5 + 0x2c)" * (cast_expression "(uint *)((int)puVar5 + 0x2c)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)puVar5 + 0x2c)" ( (binary_expression "(int)puVar5 + 0x2c" (cast_expression "(int)puVar5" ( (type_descriptor "int" primitive_type) ) identifier) + number_literal) )))) & number_literal) )) == number_literal) )) (compound_statement "{\n          free(*(void **)(puVar5 + 1));\n        }" { (expression_statement "free(*(void **)(puVar5 + 1));" (call_expression "free(*(void **)(puVar5 + 1))" identifier (argument_list "(*(void **)(puVar5 + 1))" ( (pointer_expression "*(void **)(puVar5 + 1)" * (cast_expression "(void **)(puVar5 + 1)" ( (type_descriptor "void **" primitive_type (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(puVar5 + 1)" ( (binary_expression "puVar5 + 1" identifier + number_literal) )))) ))) ;) })) (expression_statement "FUN_000660c0(puVar5);" (call_expression "FUN_000660c0(puVar5)" identifier (argument_list "(puVar5)" ( identifier ))) ;) (if_statement "if ((*(byte *)((int)puVar5 + 0x2d) & 2) != 0) {\n          FUN_00067810(puVar5);\n        }" if (parenthesized_expression "((*(byte *)((int)puVar5 + 0x2d) & 2) != 0)" ( (binary_expression "(*(byte *)((int)puVar5 + 0x2d) & 2) != 0" (parenthesized_expression "(*(byte *)((int)puVar5 + 0x2d) & 2)" ( (binary_expression "*(byte *)((int)puVar5 + 0x2d) & 2" (pointer_expression "*(byte *)((int)puVar5 + 0x2d)" * (cast_expression "(byte *)((int)puVar5 + 0x2d)" ( (type_descriptor "byte *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)puVar5 + 0x2d)" ( (binary_expression "(int)puVar5 + 0x2d" (cast_expression "(int)puVar5" ( (type_descriptor "int" primitive_type) ) identifier) + number_literal) )))) & number_literal) )) != number_literal) )) (compound_statement "{\n          FUN_00067810(puVar5);\n        }" { (expression_statement "FUN_00067810(puVar5);" (call_expression "FUN_00067810(puVar5)" identifier (argument_list "(puVar5)" ( identifier ))) ;) })) (expression_statement "uVar4 = *param_3;" (assignment_expression "uVar4 = *param_3" identifier = (pointer_expression "*param_3" * identifier)) ;) (expression_statement "*(undefined4 *)((int)puVar5 + 0x2c) = 7;" (assignment_expression "*(undefined4 *)((int)puVar5 + 0x2c) = 7" (pointer_expression "*(undefined4 *)((int)puVar5 + 0x2c)" * (cast_expression "(undefined4 *)((int)puVar5 + 0x2c)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)puVar5 + 0x2c)" ( (binary_expression "(int)puVar5 + 0x2c" (cast_expression "(int)puVar5" ( (type_descriptor "int" primitive_type) ) identifier) + number_literal) )))) = number_literal) ;) (expression_statement "*puVar5 = 0;" (assignment_expression "*puVar5 = 0" (pointer_expression "*puVar5" * identifier) = number_literal) ;) (if_statement "if (uVar4 == 4) {\n          *(undefined4 *)((int)puVar5 + 0x2c) = 0x27;\n        }" if (parenthesized_expression "(uVar4 == 4)" ( (binary_expression "uVar4 == 4" identifier == number_literal) )) (compound_statement "{\n          *(undefined4 *)((int)puVar5 + 0x2c) = 0x27;\n        }" { (expression_statement "*(undefined4 *)((int)puVar5 + 0x2c) = 0x27;" (assignment_expression "*(undefined4 *)((int)puVar5 + 0x2c) = 0x27" (pointer_expression "*(undefined4 *)((int)puVar5 + 0x2c)" * (cast_expression "(undefined4 *)((int)puVar5 + 0x2c)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)puVar5 + 0x2c)" ( (binary_expression "(int)puVar5 + 0x2c" (cast_expression "(int)puVar5" ( (type_descriptor "int" primitive_type) ) identifier) + number_literal) )))) = number_literal) ;) })) (expression_statement "uVar4 = param_3[1];" (assignment_expression "uVar4 = param_3[1]" identifier = (subscript_expression "param_3[1]" identifier [ number_literal ])) ;) (expression_statement "*(undefined4 *)((int)puVar5 + 0x14) = 0xffffffff;" (assignment_expression "*(undefined4 *)((int)puVar5 + 0x14) = 0xffffffff" (pointer_expression "*(undefined4 *)((int)puVar5 + 0x14)" * (cast_expression "(undefined4 *)((int)puVar5 + 0x14)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)puVar5 + 0x14)" ( (binary_expression "(int)puVar5 + 0x14" (cast_expression "(int)puVar5" ( (type_descriptor "int" primitive_type) ) identifier) + number_literal) )))) = number_literal) ;) (expression_statement "*(uint *)(puVar5 + 1) = uVar4;" (assignment_expression "*(uint *)(puVar5 + 1) = uVar4" (pointer_expression "*(uint *)(puVar5 + 1)" * (cast_expression "(uint *)(puVar5 + 1)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(puVar5 + 1)" ( (binary_expression "puVar5 + 1" identifier + number_literal) )))) = identifier) ;) (expression_statement "*(uint *)((int)puVar5 + 0xc) = param_3[2];" (assignment_expression "*(uint *)((int)puVar5 + 0xc) = param_3[2]" (pointer_expression "*(uint *)((int)puVar5 + 0xc)" * (cast_expression "(uint *)((int)puVar5 + 0xc)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)puVar5 + 0xc)" ( (binary_expression "(int)puVar5 + 0xc" (cast_expression "(int)puVar5" ( (type_descriptor "int" primitive_type) ) identifier) + number_literal) )))) = (subscript_expression "param_3[2]" identifier [ number_literal ])) ;) (return_statement "return 1;" return number_literal ;) })) (goto_statement "goto LAB_0005adde;" goto statement_identifier ;) })) (if_statement "if ((uVar4 & 2) == 0) {\n      return 0;\n    }" if (parenthesized_expression "((uVar4 & 2) == 0)" ( (binary_expression "(uVar4 & 2) == 0" (parenthesized_expression "(uVar4 & 2)" ( (binary_expression "uVar4 & 2" identifier & number_literal) )) == number_literal) )) (compound_statement "{\n      return 0;\n    }" { (return_statement "return 0;" return number_literal ;) })) (expression_statement "puVar5 = (undefined8 *)*param_2;" (assignment_expression "puVar5 = (undefined8 *)*param_2" identifier = (cast_expression "(undefined8 *)*param_2" ( (type_descriptor "undefined8 *" type_identifier (abstract_pointer_declarator "*" *)) ) (pointer_expression "*param_2" * identifier))) ;) (if_statement "if (*(int *)(puVar5 + 2) != 1) goto LAB_0005adde;" if (parenthesized_expression "(*(int *)(puVar5 + 2) != 1)" ( (binary_expression "*(int *)(puVar5 + 2) != 1" (pointer_expression "*(int *)(puVar5 + 2)" * (cast_expression "(int *)(puVar5 + 2)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(puVar5 + 2)" ( (binary_expression "puVar5 + 2" identifier + number_literal) )))) != number_literal) )) (goto_statement "goto LAB_0005adde;" goto statement_identifier ;)) (if_statement "if ((_DAT_000c3760 & 0x8000) == 0) {\n      uVar4 = *(uint *)((int)puVar5 + 0x2c);\n      if ((uVar4 & 5) == 5) {\n        free(*(void **)(puVar5 + 1));\n        uVar4 = *(uint *)((int)puVar5 + 0x2c);\n      }\n      if ((uVar4 & 0x200) != 0) {\n        FUN_00067810(puVar5);\n      }\n      uVar1 = *(undefined8 *)(param_3 + 1);\n      *(undefined4 *)((int)puVar5 + 0x2c) = 0x19;\n      *(undefined4 *)(puVar5 + 1) = 0;\n      *(undefined4 *)((int)puVar5 + 0xc) = 0;\n      *puVar5 = uVar1;\n      return 1;\n    }" if (parenthesized_expression "((_DAT_000c3760 & 0x8000) == 0)" ( (binary_expression "(_DAT_000c3760 & 0x8000) == 0" (parenthesized_expression "(_DAT_000c3760 & 0x8000)" ( (binary_expression "_DAT_000c3760 & 0x8000" identifier & number_literal) )) == number_literal) )) (compound_statement "{\n      uVar4 = *(uint *)((int)puVar5 + 0x2c);\n      if ((uVar4 & 5) == 5) {\n        free(*(void **)(puVar5 + 1));\n        uVar4 = *(uint *)((int)puVar5 + 0x2c);\n      }\n      if ((uVar4 & 0x200) != 0) {\n        FUN_00067810(puVar5);\n      }\n      uVar1 = *(undefined8 *)(param_3 + 1);\n      *(undefined4 *)((int)puVar5 + 0x2c) = 0x19;\n      *(undefined4 *)(puVar5 + 1) = 0;\n      *(undefined4 *)((int)puVar5 + 0xc) = 0;\n      *puVar5 = uVar1;\n      return 1;\n    }" { (expression_statement "uVar4 = *(uint *)((int)puVar5 + 0x2c);" (assignment_expression "uVar4 = *(uint *)((int)puVar5 + 0x2c)" identifier = (pointer_expression "*(uint *)((int)puVar5 + 0x2c)" * (cast_expression "(uint *)((int)puVar5 + 0x2c)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)puVar5 + 0x2c)" ( (binary_expression "(int)puVar5 + 0x2c" (cast_expression "(int)puVar5" ( (type_descriptor "int" primitive_type) ) identifier) + number_literal) ))))) ;) (if_statement "if ((uVar4 & 5) == 5) {\n        free(*(void **)(puVar5 + 1));\n        uVar4 = *(uint *)((int)puVar5 + 0x2c);\n      }" if (parenthesized_expression "((uVar4 & 5) == 5)" ( (binary_expression "(uVar4 & 5) == 5" (parenthesized_expression "(uVar4 & 5)" ( (binary_expression "uVar4 & 5" identifier & number_literal) )) == number_literal) )) (compound_statement "{\n        free(*(void **)(puVar5 + 1));\n        uVar4 = *(uint *)((int)puVar5 + 0x2c);\n      }" { (expression_statement "free(*(void **)(puVar5 + 1));" (call_expression "free(*(void **)(puVar5 + 1))" identifier (argument_list "(*(void **)(puVar5 + 1))" ( (pointer_expression "*(void **)(puVar5 + 1)" * (cast_expression "(void **)(puVar5 + 1)" ( (type_descriptor "void **" primitive_type (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(puVar5 + 1)" ( (binary_expression "puVar5 + 1" identifier + number_literal) )))) ))) ;) (expression_statement "uVar4 = *(uint *)((int)puVar5 + 0x2c);" (assignment_expression "uVar4 = *(uint *)((int)puVar5 + 0x2c)" identifier = (pointer_expression "*(uint *)((int)puVar5 + 0x2c)" * (cast_expression "(uint *)((int)puVar5 + 0x2c)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)puVar5 + 0x2c)" ( (binary_expression "(int)puVar5 + 0x2c" (cast_expression "(int)puVar5" ( (type_descriptor "int" primitive_type) ) identifier) + number_literal) ))))) ;) })) (if_statement "if ((uVar4 & 0x200) != 0) {\n        FUN_00067810(puVar5);\n      }" if (parenthesized_expression "((uVar4 & 0x200) != 0)" ( (binary_expression "(uVar4 & 0x200) != 0" (parenthesized_expression "(uVar4 & 0x200)" ( (binary_expression "uVar4 & 0x200" identifier & number_literal) )) != number_literal) )) (compound_statement "{\n        FUN_00067810(puVar5);\n      }" { (expression_statement "FUN_00067810(puVar5);" (call_expression "FUN_00067810(puVar5)" identifier (argument_list "(puVar5)" ( identifier ))) ;) })) (expression_statement "uVar1 = *(undefined8 *)(param_3 + 1);" (assignment_expression "uVar1 = *(undefined8 *)(param_3 + 1)" identifier = (pointer_expression "*(undefined8 *)(param_3 + 1)" * (cast_expression "(undefined8 *)(param_3 + 1)" ( (type_descriptor "undefined8 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_3 + 1)" ( (binary_expression "param_3 + 1" identifier + number_literal) ))))) ;) (expression_statement "*(undefined4 *)((int)puVar5 + 0x2c) = 0x19;" (assignment_expression "*(undefined4 *)((int)puVar5 + 0x2c) = 0x19" (pointer_expression "*(undefined4 *)((int)puVar5 + 0x2c)" * (cast_expression "(undefined4 *)((int)puVar5 + 0x2c)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)puVar5 + 0x2c)" ( (binary_expression "(int)puVar5 + 0x2c" (cast_expression "(int)puVar5" ( (type_descriptor "int" primitive_type) ) identifier) + number_literal) )))) = number_literal) ;) (expression_statement "*(undefined4 *)(puVar5 + 1) = 0;" (assignment_expression "*(undefined4 *)(puVar5 + 1) = 0" (pointer_expression "*(undefined4 *)(puVar5 + 1)" * (cast_expression "(undefined4 *)(puVar5 + 1)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(puVar5 + 1)" ( (binary_expression "puVar5 + 1" identifier + number_literal) )))) = number_literal) ;) (expression_statement "*(undefined4 *)((int)puVar5 + 0xc) = 0;" (assignment_expression "*(undefined4 *)((int)puVar5 + 0xc) = 0" (pointer_expression "*(undefined4 *)((int)puVar5 + 0xc)" * (cast_expression "(undefined4 *)((int)puVar5 + 0xc)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)puVar5 + 0xc)" ( (binary_expression "(int)puVar5 + 0xc" (cast_expression "(int)puVar5" ( (type_descriptor "int" primitive_type) ) identifier) + number_literal) )))) = number_literal) ;) (expression_statement "*puVar5 = uVar1;" (assignment_expression "*puVar5 = uVar1" (pointer_expression "*puVar5" * identifier) = identifier) ;) (return_statement "return 1;" return number_literal ;) })) (expression_statement "*(undefined4 *)(puVar5 + 2) = 0;" (assignment_expression "*(undefined4 *)(puVar5 + 2) = 0" (pointer_expression "*(undefined4 *)(puVar5 + 2)" * (cast_expression "(undefined4 *)(puVar5 + 2)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(puVar5 + 2)" ( (binary_expression "puVar5 + 2" identifier + number_literal) )))) = number_literal) ;) }) (else_clause "else {\n    puVar5 = (undefined8 *)*param_2;\n    if (puVar5 == (undefined8 *)0x0) goto LAB_0005adeb;\nLAB_0005adde:\n    iVar2 = *(int *)(puVar5 + 2);\n    *(int *)(puVar5 + 2) = iVar2 + -1;\n    if (0 < iVar2 + -1) goto LAB_0005adeb;\n  }" else (compound_statement "{\n    puVar5 = (undefined8 *)*param_2;\n    if (puVar5 == (undefined8 *)0x0) goto LAB_0005adeb;\nLAB_0005adde:\n    iVar2 = *(int *)(puVar5 + 2);\n    *(int *)(puVar5 + 2) = iVar2 + -1;\n    if (0 < iVar2 + -1) goto LAB_0005adeb;\n  }" { (expression_statement "puVar5 = (undefined8 *)*param_2;" (assignment_expression "puVar5 = (undefined8 *)*param_2" identifier = (cast_expression "(undefined8 *)*param_2" ( (type_descriptor "undefined8 *" type_identifier (abstract_pointer_declarator "*" *)) ) (pointer_expression "*param_2" * identifier))) ;) (if_statement "if (puVar5 == (undefined8 *)0x0) goto LAB_0005adeb;" if (parenthesized_expression "(puVar5 == (undefined8 *)0x0)" ( (binary_expression "puVar5 == (undefined8 *)0x0" identifier == (cast_expression "(undefined8 *)0x0" ( (type_descriptor "undefined8 *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (goto_statement "goto LAB_0005adeb;" goto statement_identifier ;)) (labeled_statement "LAB_0005adde:\n    iVar2 = *(int *)(puVar5 + 2);" statement_identifier : (expression_statement "iVar2 = *(int *)(puVar5 + 2);" (assignment_expression "iVar2 = *(int *)(puVar5 + 2)" identifier = (pointer_expression "*(int *)(puVar5 + 2)" * (cast_expression "(int *)(puVar5 + 2)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(puVar5 + 2)" ( (binary_expression "puVar5 + 2" identifier + number_literal) ))))) ;)) (expression_statement "*(int *)(puVar5 + 2) = iVar2 + -1;" (assignment_expression "*(int *)(puVar5 + 2) = iVar2 + -1" (pointer_expression "*(int *)(puVar5 + 2)" * (cast_expression "(int *)(puVar5 + 2)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(puVar5 + 2)" ( (binary_expression "puVar5 + 2" identifier + number_literal) )))) = (binary_expression "iVar2 + -1" identifier + number_literal)) ;) (if_statement "if (0 < iVar2 + -1) goto LAB_0005adeb;" if (parenthesized_expression "(0 < iVar2 + -1)" ( (binary_expression "0 < iVar2 + -1" number_literal < (binary_expression "iVar2 + -1" identifier + number_literal)) )) (goto_statement "goto LAB_0005adeb;" goto statement_identifier ;)) }))) (expression_statement "FUN_000668b0(puVar5);" (call_expression "FUN_000668b0(puVar5)" identifier (argument_list "(puVar5)" ( identifier ))) ;) (labeled_statement "LAB_0005adeb:\n  uVar3 = FUN_0005a7e0(param_3);" statement_identifier : (expression_statement "uVar3 = FUN_0005a7e0(param_3);" (assignment_expression "uVar3 = FUN_0005a7e0(param_3)" identifier = (call_expression "FUN_0005a7e0(param_3)" identifier (argument_list "(param_3)" ( identifier )))) ;)) (expression_statement "*param_2 = uVar3;" (assignment_expression "*param_2 = uVar3" (pointer_expression "*param_2" * identifier) = identifier) ;) (return_statement "return 1;" return number_literal ;) })))
(translation_unit "/* WARNING: Function: __x86.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */\n/* WARNING: Unknown calling convention */\n\nawk_bool_t api_sym_update_scalar(awk_ext_id_t id,awk_scalar_t cookie,awk_value_t *value)\n\n{\n  awk_string_t aVar1;\n  char *pcVar2;\n  awk_valtype_t aVar3;\n  wchar_t wVar4;\n  NODE *pNVar5;\n  uint uVar6;\n  \n  if (value == (awk_value_t *)0x0) {\n    return awk_false;\n  }\n  if (cookie == (awk_scalar_t)0x0) {\n    return awk_false;\n  }\n  if (*(int *)((int)cookie + 0x28) != 4) {\n    return awk_false;\n  }\n  if ((*(uint *)((int)cookie + 0x2c) & 0x1000) != 0) {\n    return awk_false;\n  }\n  if (AWK_VALUE_COOKIE < value->val_type) {\n    return awk_false;\n  }\n  uVar6 = 1 << ((byte)value->val_type & 0x1f);\n  if ((uVar6 & 0xc9) == 0) {\n    if ((uVar6 & 0x14) != 0) {\n                    /* WARNING: Load size is inaccurate */\n      pNVar5 = *cookie;\n      if ((pNVar5->sub).nodep.name == (char *)0x1) {\n        if ((pNVar5->flags & 5) == 5) {\n          free((pNVar5->sub).val.sp);\n        }\n        mpfr_unset(pNVar5);\n        if ((pNVar5->flags & 0x200) != 0) {\n          r_free_wstr(pNVar5);\n        }\n        aVar3 = value->val_type;\n        pNVar5->flags = 7;\n        (pNVar5->sub).val.fltnum = 0.0;\n        if (aVar3 == AWK_STRNUM) {\n          pNVar5->flags = 0x27;\n        }\n        pcVar2 = (value->u).s.str;\n        (pNVar5->sub).nodep.reserved = 0xffffffff;\n        (pNVar5->sub).val.sp = pcVar2;\n        (pNVar5->sub).nodep.x = (anon_union_4_4_38bfafa6_for_x)(value->u).s.len;\n        return awk_true;\n      }\n      goto LAB_0005adde;\n    }\n    if ((uVar6 & 2) == 0) {\n      return awk_false;\n    }\n                    /* WARNING: Load size is inaccurate */\n    pNVar5 = *cookie;\n    if ((pNVar5->sub).nodep.name != (char *)0x1) goto LAB_0005adde;\n    if ((do_flags & 0x8000U) == 0) {\n      uVar6 = pNVar5->flags;\n      if ((uVar6 & 5) == 5) {\n        free((pNVar5->sub).val.sp);\n        uVar6 = pNVar5->flags;\n      }\n      if ((uVar6 & 0x200) != 0) {\n        r_free_wstr(pNVar5);\n      }\n      aVar1 = (value->u).s;\n      pNVar5->flags = 0x19;\n      (pNVar5->sub).val.sp = (char *)0x0;\n      (pNVar5->sub).val.slen = 0;\n      (pNVar5->sub).val.fltnum = (double)aVar1;\n      return awk_true;\n    }\n    (pNVar5->sub).nodep.name = (char *)0x0;\n  }\n  else {\n                    /* WARNING: Load size is inaccurate */\n    pNVar5 = *cookie;\n    if (pNVar5 == (NODE *)0x0) goto LAB_0005adeb;\nLAB_0005adde:\n    wVar4 = (pNVar5->sub).val.sref + L'\xffffffff';\n    (pNVar5->sub).val.sref = wVar4;\n    if (L'\0' < wVar4) goto LAB_0005adeb;\n  }\n  r_unref(pNVar5);\nLAB_0005adeb:\n  pNVar5 = awk_value_to_node(value);\n  *(NODE **)cookie = pNVar5;\n  return awk_true;\n}\n\n" comment comment (function_definition "awk_bool_t api_sym_update_scalar(awk_ext_id_t id,awk_scalar_t cookie,awk_value_t *value)\n\n{\n  awk_string_t aVar1;\n  char *pcVar2;\n  awk_valtype_t aVar3;\n  wchar_t wVar4;\n  NODE *pNVar5;\n  uint uVar6;\n  \n  if (value == (awk_value_t *)0x0) {\n    return awk_false;\n  }\n  if (cookie == (awk_scalar_t)0x0) {\n    return awk_false;\n  }\n  if (*(int *)((int)cookie + 0x28) != 4) {\n    return awk_false;\n  }\n  if ((*(uint *)((int)cookie + 0x2c) & 0x1000) != 0) {\n    return awk_false;\n  }\n  if (AWK_VALUE_COOKIE < value->val_type) {\n    return awk_false;\n  }\n  uVar6 = 1 << ((byte)value->val_type & 0x1f);\n  if ((uVar6 & 0xc9) == 0) {\n    if ((uVar6 & 0x14) != 0) {\n                    /* WARNING: Load size is inaccurate */\n      pNVar5 = *cookie;\n      if ((pNVar5->sub).nodep.name == (char *)0x1) {\n        if ((pNVar5->flags & 5) == 5) {\n          free((pNVar5->sub).val.sp);\n        }\n        mpfr_unset(pNVar5);\n        if ((pNVar5->flags & 0x200) != 0) {\n          r_free_wstr(pNVar5);\n        }\n        aVar3 = value->val_type;\n        pNVar5->flags = 7;\n        (pNVar5->sub).val.fltnum = 0.0;\n        if (aVar3 == AWK_STRNUM) {\n          pNVar5->flags = 0x27;\n        }\n        pcVar2 = (value->u).s.str;\n        (pNVar5->sub).nodep.reserved = 0xffffffff;\n        (pNVar5->sub).val.sp = pcVar2;\n        (pNVar5->sub).nodep.x = (anon_union_4_4_38bfafa6_for_x)(value->u).s.len;\n        return awk_true;\n      }\n      goto LAB_0005adde;\n    }\n    if ((uVar6 & 2) == 0) {\n      return awk_false;\n    }\n                    /* WARNING: Load size is inaccurate */\n    pNVar5 = *cookie;\n    if ((pNVar5->sub).nodep.name != (char *)0x1) goto LAB_0005adde;\n    if ((do_flags & 0x8000U) == 0) {\n      uVar6 = pNVar5->flags;\n      if ((uVar6 & 5) == 5) {\n        free((pNVar5->sub).val.sp);\n        uVar6 = pNVar5->flags;\n      }\n      if ((uVar6 & 0x200) != 0) {\n        r_free_wstr(pNVar5);\n      }\n      aVar1 = (value->u).s;\n      pNVar5->flags = 0x19;\n      (pNVar5->sub).val.sp = (char *)0x0;\n      (pNVar5->sub).val.slen = 0;\n      (pNVar5->sub).val.fltnum = (double)aVar1;\n      return awk_true;\n    }\n    (pNVar5->sub).nodep.name = (char *)0x0;\n  }\n  else {\n                    /* WARNING: Load size is inaccurate */\n    pNVar5 = *cookie;\n    if (pNVar5 == (NODE *)0x0) goto LAB_0005adeb;\nLAB_0005adde:\n    wVar4 = (pNVar5->sub).val.sref + L'\xffffffff';\n    (pNVar5->sub).val.sref = wVar4;\n    if (L'\0' < wVar4) goto LAB_0005adeb;\n  }\n  r_unref(pNVar5);\nLAB_0005adeb:\n  pNVar5 = awk_value_to_node(value);\n  *(NODE **)cookie = pNVar5;\n  return awk_true;\n}" type_identifier (function_declarator "api_sym_update_scalar(awk_ext_id_t id,awk_scalar_t cookie,awk_value_t *value)" identifier (parameter_list "(awk_ext_id_t id,awk_scalar_t cookie,awk_value_t *value)" ( (parameter_declaration "awk_ext_id_t id" type_identifier identifier) , (parameter_declaration "awk_scalar_t cookie" type_identifier identifier) , (parameter_declaration "awk_value_t *value" type_identifier (pointer_declarator "*value" * identifier)) ))) (compound_statement "{\n  awk_string_t aVar1;\n  char *pcVar2;\n  awk_valtype_t aVar3;\n  wchar_t wVar4;\n  NODE *pNVar5;\n  uint uVar6;\n  \n  if (value == (awk_value_t *)0x0) {\n    return awk_false;\n  }\n  if (cookie == (awk_scalar_t)0x0) {\n    return awk_false;\n  }\n  if (*(int *)((int)cookie + 0x28) != 4) {\n    return awk_false;\n  }\n  if ((*(uint *)((int)cookie + 0x2c) & 0x1000) != 0) {\n    return awk_false;\n  }\n  if (AWK_VALUE_COOKIE < value->val_type) {\n    return awk_false;\n  }\n  uVar6 = 1 << ((byte)value->val_type & 0x1f);\n  if ((uVar6 & 0xc9) == 0) {\n    if ((uVar6 & 0x14) != 0) {\n                    /* WARNING: Load size is inaccurate */\n      pNVar5 = *cookie;\n      if ((pNVar5->sub).nodep.name == (char *)0x1) {\n        if ((pNVar5->flags & 5) == 5) {\n          free((pNVar5->sub).val.sp);\n        }\n        mpfr_unset(pNVar5);\n        if ((pNVar5->flags & 0x200) != 0) {\n          r_free_wstr(pNVar5);\n        }\n        aVar3 = value->val_type;\n        pNVar5->flags = 7;\n        (pNVar5->sub).val.fltnum = 0.0;\n        if (aVar3 == AWK_STRNUM) {\n          pNVar5->flags = 0x27;\n        }\n        pcVar2 = (value->u).s.str;\n        (pNVar5->sub).nodep.reserved = 0xffffffff;\n        (pNVar5->sub).val.sp = pcVar2;\n        (pNVar5->sub).nodep.x = (anon_union_4_4_38bfafa6_for_x)(value->u).s.len;\n        return awk_true;\n      }\n      goto LAB_0005adde;\n    }\n    if ((uVar6 & 2) == 0) {\n      return awk_false;\n    }\n                    /* WARNING: Load size is inaccurate */\n    pNVar5 = *cookie;\n    if ((pNVar5->sub).nodep.name != (char *)0x1) goto LAB_0005adde;\n    if ((do_flags & 0x8000U) == 0) {\n      uVar6 = pNVar5->flags;\n      if ((uVar6 & 5) == 5) {\n        free((pNVar5->sub).val.sp);\n        uVar6 = pNVar5->flags;\n      }\n      if ((uVar6 & 0x200) != 0) {\n        r_free_wstr(pNVar5);\n      }\n      aVar1 = (value->u).s;\n      pNVar5->flags = 0x19;\n      (pNVar5->sub).val.sp = (char *)0x0;\n      (pNVar5->sub).val.slen = 0;\n      (pNVar5->sub).val.fltnum = (double)aVar1;\n      return awk_true;\n    }\n    (pNVar5->sub).nodep.name = (char *)0x0;\n  }\n  else {\n                    /* WARNING: Load size is inaccurate */\n    pNVar5 = *cookie;\n    if (pNVar5 == (NODE *)0x0) goto LAB_0005adeb;\nLAB_0005adde:\n    wVar4 = (pNVar5->sub).val.sref + L'\xffffffff';\n    (pNVar5->sub).val.sref = wVar4;\n    if (L'\0' < wVar4) goto LAB_0005adeb;\n  }\n  r_unref(pNVar5);\nLAB_0005adeb:\n  pNVar5 = awk_value_to_node(value);\n  *(NODE **)cookie = pNVar5;\n  return awk_true;\n}" { (declaration "awk_string_t aVar1;" type_identifier identifier ;) (declaration "char *pcVar2;" primitive_type (pointer_declarator "*pcVar2" * identifier) ;) (declaration "awk_valtype_t aVar3;" type_identifier identifier ;) (declaration "wchar_t wVar4;" type_identifier identifier ;) (declaration "NODE *pNVar5;" type_identifier (pointer_declarator "*pNVar5" * identifier) ;) (declaration "uint uVar6;" type_identifier identifier ;) (if_statement "if (value == (awk_value_t *)0x0) {\n    return awk_false;\n  }" if (parenthesized_expression "(value == (awk_value_t *)0x0)" ( (binary_expression "value == (awk_value_t *)0x0" identifier == (cast_expression "(awk_value_t *)0x0" ( (type_descriptor "awk_value_t *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n    return awk_false;\n  }" { (return_statement "return awk_false;" return identifier ;) })) (if_statement "if (cookie == (awk_scalar_t)0x0) {\n    return awk_false;\n  }" if (parenthesized_expression "(cookie == (awk_scalar_t)0x0)" ( (binary_expression "cookie == (awk_scalar_t)0x0" identifier == (cast_expression "(awk_scalar_t)0x0" ( (type_descriptor "awk_scalar_t" type_identifier) ) number_literal)) )) (compound_statement "{\n    return awk_false;\n  }" { (return_statement "return awk_false;" return identifier ;) })) (if_statement "if (*(int *)((int)cookie + 0x28) != 4) {\n    return awk_false;\n  }" if (parenthesized_expression "(*(int *)((int)cookie + 0x28) != 4)" ( (binary_expression "*(int *)((int)cookie + 0x28) != 4" (pointer_expression "*(int *)((int)cookie + 0x28)" * (cast_expression "(int *)((int)cookie + 0x28)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)cookie + 0x28)" ( (binary_expression "(int)cookie + 0x28" (cast_expression "(int)cookie" ( (type_descriptor "int" primitive_type) ) identifier) + number_literal) )))) != number_literal) )) (compound_statement "{\n    return awk_false;\n  }" { (return_statement "return awk_false;" return identifier ;) })) (if_statement "if ((*(uint *)((int)cookie + 0x2c) & 0x1000) != 0) {\n    return awk_false;\n  }" if (parenthesized_expression "((*(uint *)((int)cookie + 0x2c) & 0x1000) != 0)" ( (binary_expression "(*(uint *)((int)cookie + 0x2c) & 0x1000) != 0" (parenthesized_expression "(*(uint *)((int)cookie + 0x2c) & 0x1000)" ( (binary_expression "*(uint *)((int)cookie + 0x2c) & 0x1000" (pointer_expression "*(uint *)((int)cookie + 0x2c)" * (cast_expression "(uint *)((int)cookie + 0x2c)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)cookie + 0x2c)" ( (binary_expression "(int)cookie + 0x2c" (cast_expression "(int)cookie" ( (type_descriptor "int" primitive_type) ) identifier) + number_literal) )))) & number_literal) )) != number_literal) )) (compound_statement "{\n    return awk_false;\n  }" { (return_statement "return awk_false;" return identifier ;) })) (if_statement "if (AWK_VALUE_COOKIE < value->val_type) {\n    return awk_false;\n  }" if (parenthesized_expression "(AWK_VALUE_COOKIE < value->val_type)" ( (binary_expression "AWK_VALUE_COOKIE < value->val_type" identifier < (field_expression "value->val_type" identifier -> field_identifier)) )) (compound_statement "{\n    return awk_false;\n  }" { (return_statement "return awk_false;" return identifier ;) })) (expression_statement "uVar6 = 1 << ((byte)value->val_type & 0x1f);" (assignment_expression "uVar6 = 1 << ((byte)value->val_type & 0x1f)" identifier = (binary_expression "1 << ((byte)value->val_type & 0x1f)" number_literal << (parenthesized_expression "((byte)value->val_type & 0x1f)" ( (binary_expression "(byte)value->val_type & 0x1f" (cast_expression "(byte)value->val_type" ( (type_descriptor "byte" type_identifier) ) (field_expression "value->val_type" identifier -> field_identifier)) & number_literal) )))) ;) (if_statement "if ((uVar6 & 0xc9) == 0) {\n    if ((uVar6 & 0x14) != 0) {\n                    /* WARNING: Load size is inaccurate */\n      pNVar5 = *cookie;\n      if ((pNVar5->sub).nodep.name == (char *)0x1) {\n        if ((pNVar5->flags & 5) == 5) {\n          free((pNVar5->sub).val.sp);\n        }\n        mpfr_unset(pNVar5);\n        if ((pNVar5->flags & 0x200) != 0) {\n          r_free_wstr(pNVar5);\n        }\n        aVar3 = value->val_type;\n        pNVar5->flags = 7;\n        (pNVar5->sub).val.fltnum = 0.0;\n        if (aVar3 == AWK_STRNUM) {\n          pNVar5->flags = 0x27;\n        }\n        pcVar2 = (value->u).s.str;\n        (pNVar5->sub).nodep.reserved = 0xffffffff;\n        (pNVar5->sub).val.sp = pcVar2;\n        (pNVar5->sub).nodep.x = (anon_union_4_4_38bfafa6_for_x)(value->u).s.len;\n        return awk_true;\n      }\n      goto LAB_0005adde;\n    }\n    if ((uVar6 & 2) == 0) {\n      return awk_false;\n    }\n                    /* WARNING: Load size is inaccurate */\n    pNVar5 = *cookie;\n    if ((pNVar5->sub).nodep.name != (char *)0x1) goto LAB_0005adde;\n    if ((do_flags & 0x8000U) == 0) {\n      uVar6 = pNVar5->flags;\n      if ((uVar6 & 5) == 5) {\n        free((pNVar5->sub).val.sp);\n        uVar6 = pNVar5->flags;\n      }\n      if ((uVar6 & 0x200) != 0) {\n        r_free_wstr(pNVar5);\n      }\n      aVar1 = (value->u).s;\n      pNVar5->flags = 0x19;\n      (pNVar5->sub).val.sp = (char *)0x0;\n      (pNVar5->sub).val.slen = 0;\n      (pNVar5->sub).val.fltnum = (double)aVar1;\n      return awk_true;\n    }\n    (pNVar5->sub).nodep.name = (char *)0x0;\n  }\n  else {\n                    /* WARNING: Load size is inaccurate */\n    pNVar5 = *cookie;\n    if (pNVar5 == (NODE *)0x0) goto LAB_0005adeb;\nLAB_0005adde:\n    wVar4 = (pNVar5->sub).val.sref + L'\xffffffff';\n    (pNVar5->sub).val.sref = wVar4;\n    if (L'\0' < wVar4) goto LAB_0005adeb;\n  }" if (parenthesized_expression "((uVar6 & 0xc9) == 0)" ( (binary_expression "(uVar6 & 0xc9) == 0" (parenthesized_expression "(uVar6 & 0xc9)" ( (binary_expression "uVar6 & 0xc9" identifier & number_literal) )) == number_literal) )) (compound_statement "{\n    if ((uVar6 & 0x14) != 0) {\n                    /* WARNING: Load size is inaccurate */\n      pNVar5 = *cookie;\n      if ((pNVar5->sub).nodep.name == (char *)0x1) {\n        if ((pNVar5->flags & 5) == 5) {\n          free((pNVar5->sub).val.sp);\n        }\n        mpfr_unset(pNVar5);\n        if ((pNVar5->flags & 0x200) != 0) {\n          r_free_wstr(pNVar5);\n        }\n        aVar3 = value->val_type;\n        pNVar5->flags = 7;\n        (pNVar5->sub).val.fltnum = 0.0;\n        if (aVar3 == AWK_STRNUM) {\n          pNVar5->flags = 0x27;\n        }\n        pcVar2 = (value->u).s.str;\n        (pNVar5->sub).nodep.reserved = 0xffffffff;\n        (pNVar5->sub).val.sp = pcVar2;\n        (pNVar5->sub).nodep.x = (anon_union_4_4_38bfafa6_for_x)(value->u).s.len;\n        return awk_true;\n      }\n      goto LAB_0005adde;\n    }\n    if ((uVar6 & 2) == 0) {\n      return awk_false;\n    }\n                    /* WARNING: Load size is inaccurate */\n    pNVar5 = *cookie;\n    if ((pNVar5->sub).nodep.name != (char *)0x1) goto LAB_0005adde;\n    if ((do_flags & 0x8000U) == 0) {\n      uVar6 = pNVar5->flags;\n      if ((uVar6 & 5) == 5) {\n        free((pNVar5->sub).val.sp);\n        uVar6 = pNVar5->flags;\n      }\n      if ((uVar6 & 0x200) != 0) {\n        r_free_wstr(pNVar5);\n      }\n      aVar1 = (value->u).s;\n      pNVar5->flags = 0x19;\n      (pNVar5->sub).val.sp = (char *)0x0;\n      (pNVar5->sub).val.slen = 0;\n      (pNVar5->sub).val.fltnum = (double)aVar1;\n      return awk_true;\n    }\n    (pNVar5->sub).nodep.name = (char *)0x0;\n  }" { (if_statement "if ((uVar6 & 0x14) != 0) {\n                    /* WARNING: Load size is inaccurate */\n      pNVar5 = *cookie;\n      if ((pNVar5->sub).nodep.name == (char *)0x1) {\n        if ((pNVar5->flags & 5) == 5) {\n          free((pNVar5->sub).val.sp);\n        }\n        mpfr_unset(pNVar5);\n        if ((pNVar5->flags & 0x200) != 0) {\n          r_free_wstr(pNVar5);\n        }\n        aVar3 = value->val_type;\n        pNVar5->flags = 7;\n        (pNVar5->sub).val.fltnum = 0.0;\n        if (aVar3 == AWK_STRNUM) {\n          pNVar5->flags = 0x27;\n        }\n        pcVar2 = (value->u).s.str;\n        (pNVar5->sub).nodep.reserved = 0xffffffff;\n        (pNVar5->sub).val.sp = pcVar2;\n        (pNVar5->sub).nodep.x = (anon_union_4_4_38bfafa6_for_x)(value->u).s.len;\n        return awk_true;\n      }\n      goto LAB_0005adde;\n    }" if (parenthesized_expression "((uVar6 & 0x14) != 0)" ( (binary_expression "(uVar6 & 0x14) != 0" (parenthesized_expression "(uVar6 & 0x14)" ( (binary_expression "uVar6 & 0x14" identifier & number_literal) )) != number_literal) )) (compound_statement "{\n                    /* WARNING: Load size is inaccurate */\n      pNVar5 = *cookie;\n      if ((pNVar5->sub).nodep.name == (char *)0x1) {\n        if ((pNVar5->flags & 5) == 5) {\n          free((pNVar5->sub).val.sp);\n        }\n        mpfr_unset(pNVar5);\n        if ((pNVar5->flags & 0x200) != 0) {\n          r_free_wstr(pNVar5);\n        }\n        aVar3 = value->val_type;\n        pNVar5->flags = 7;\n        (pNVar5->sub).val.fltnum = 0.0;\n        if (aVar3 == AWK_STRNUM) {\n          pNVar5->flags = 0x27;\n        }\n        pcVar2 = (value->u).s.str;\n        (pNVar5->sub).nodep.reserved = 0xffffffff;\n        (pNVar5->sub).val.sp = pcVar2;\n        (pNVar5->sub).nodep.x = (anon_union_4_4_38bfafa6_for_x)(value->u).s.len;\n        return awk_true;\n      }\n      goto LAB_0005adde;\n    }" { comment (expression_statement "pNVar5 = *cookie;" (assignment_expression "pNVar5 = *cookie" identifier = (pointer_expression "*cookie" * identifier)) ;) (if_statement "if ((pNVar5->sub).nodep.name == (char *)0x1) {\n        if ((pNVar5->flags & 5) == 5) {\n          free((pNVar5->sub).val.sp);\n        }\n        mpfr_unset(pNVar5);\n        if ((pNVar5->flags & 0x200) != 0) {\n          r_free_wstr(pNVar5);\n        }\n        aVar3 = value->val_type;\n        pNVar5->flags = 7;\n        (pNVar5->sub).val.fltnum = 0.0;\n        if (aVar3 == AWK_STRNUM) {\n          pNVar5->flags = 0x27;\n        }\n        pcVar2 = (value->u).s.str;\n        (pNVar5->sub).nodep.reserved = 0xffffffff;\n        (pNVar5->sub).val.sp = pcVar2;\n        (pNVar5->sub).nodep.x = (anon_union_4_4_38bfafa6_for_x)(value->u).s.len;\n        return awk_true;\n      }" if (parenthesized_expression "((pNVar5->sub).nodep.name == (char *)0x1)" ( (binary_expression "(pNVar5->sub).nodep.name == (char *)0x1" (field_expression "(pNVar5->sub).nodep.name" (field_expression "(pNVar5->sub).nodep" (parenthesized_expression "(pNVar5->sub)" ( (field_expression "pNVar5->sub" identifier -> field_identifier) )) . field_identifier) . field_identifier) == (cast_expression "(char *)0x1" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n        if ((pNVar5->flags & 5) == 5) {\n          free((pNVar5->sub).val.sp);\n        }\n        mpfr_unset(pNVar5);\n        if ((pNVar5->flags & 0x200) != 0) {\n          r_free_wstr(pNVar5);\n        }\n        aVar3 = value->val_type;\n        pNVar5->flags = 7;\n        (pNVar5->sub).val.fltnum = 0.0;\n        if (aVar3 == AWK_STRNUM) {\n          pNVar5->flags = 0x27;\n        }\n        pcVar2 = (value->u).s.str;\n        (pNVar5->sub).nodep.reserved = 0xffffffff;\n        (pNVar5->sub).val.sp = pcVar2;\n        (pNVar5->sub).nodep.x = (anon_union_4_4_38bfafa6_for_x)(value->u).s.len;\n        return awk_true;\n      }" { (if_statement "if ((pNVar5->flags & 5) == 5) {\n          free((pNVar5->sub).val.sp);\n        }" if (parenthesized_expression "((pNVar5->flags & 5) == 5)" ( (binary_expression "(pNVar5->flags & 5) == 5" (parenthesized_expression "(pNVar5->flags & 5)" ( (binary_expression "pNVar5->flags & 5" (field_expression "pNVar5->flags" identifier -> field_identifier) & number_literal) )) == number_literal) )) (compound_statement "{\n          free((pNVar5->sub).val.sp);\n        }" { (expression_statement "free((pNVar5->sub).val.sp);" (call_expression "free((pNVar5->sub).val.sp)" identifier (argument_list "((pNVar5->sub).val.sp)" ( (field_expression "(pNVar5->sub).val.sp" (field_expression "(pNVar5->sub).val" (parenthesized_expression "(pNVar5->sub)" ( (field_expression "pNVar5->sub" identifier -> field_identifier) )) . field_identifier) . field_identifier) ))) ;) })) (expression_statement "mpfr_unset(pNVar5);" (call_expression "mpfr_unset(pNVar5)" identifier (argument_list "(pNVar5)" ( identifier ))) ;) (if_statement "if ((pNVar5->flags & 0x200) != 0) {\n          r_free_wstr(pNVar5);\n        }" if (parenthesized_expression "((pNVar5->flags & 0x200) != 0)" ( (binary_expression "(pNVar5->flags & 0x200) != 0" (parenthesized_expression "(pNVar5->flags & 0x200)" ( (binary_expression "pNVar5->flags & 0x200" (field_expression "pNVar5->flags" identifier -> field_identifier) & number_literal) )) != number_literal) )) (compound_statement "{\n          r_free_wstr(pNVar5);\n        }" { (expression_statement "r_free_wstr(pNVar5);" (call_expression "r_free_wstr(pNVar5)" identifier (argument_list "(pNVar5)" ( identifier ))) ;) })) (expression_statement "aVar3 = value->val_type;" (assignment_expression "aVar3 = value->val_type" identifier = (field_expression "value->val_type" identifier -> field_identifier)) ;) (expression_statement "pNVar5->flags = 7;" (assignment_expression "pNVar5->flags = 7" (field_expression "pNVar5->flags" identifier -> field_identifier) = number_literal) ;) (expression_statement "(pNVar5->sub).val.fltnum = 0.0;" (assignment_expression "(pNVar5->sub).val.fltnum = 0.0" (field_expression "(pNVar5->sub).val.fltnum" (field_expression "(pNVar5->sub).val" (parenthesized_expression "(pNVar5->sub)" ( (field_expression "pNVar5->sub" identifier -> field_identifier) )) . field_identifier) . field_identifier) = number_literal) ;) (if_statement "if (aVar3 == AWK_STRNUM) {\n          pNVar5->flags = 0x27;\n        }" if (parenthesized_expression "(aVar3 == AWK_STRNUM)" ( (binary_expression "aVar3 == AWK_STRNUM" identifier == identifier) )) (compound_statement "{\n          pNVar5->flags = 0x27;\n        }" { (expression_statement "pNVar5->flags = 0x27;" (assignment_expression "pNVar5->flags = 0x27" (field_expression "pNVar5->flags" identifier -> field_identifier) = number_literal) ;) })) (expression_statement "pcVar2 = (value->u).s.str;" (assignment_expression "pcVar2 = (value->u).s.str" identifier = (field_expression "(value->u).s.str" (field_expression "(value->u).s" (parenthesized_expression "(value->u)" ( (field_expression "value->u" identifier -> field_identifier) )) . field_identifier) . field_identifier)) ;) (expression_statement "(pNVar5->sub).nodep.reserved = 0xffffffff;" (assignment_expression "(pNVar5->sub).nodep.reserved = 0xffffffff" (field_expression "(pNVar5->sub).nodep.reserved" (field_expression "(pNVar5->sub).nodep" (parenthesized_expression "(pNVar5->sub)" ( (field_expression "pNVar5->sub" identifier -> field_identifier) )) . field_identifier) . field_identifier) = number_literal) ;) (expression_statement "(pNVar5->sub).val.sp = pcVar2;" (assignment_expression "(pNVar5->sub).val.sp = pcVar2" (field_expression "(pNVar5->sub).val.sp" (field_expression "(pNVar5->sub).val" (parenthesized_expression "(pNVar5->sub)" ( (field_expression "pNVar5->sub" identifier -> field_identifier) )) . field_identifier) . field_identifier) = identifier) ;) (expression_statement "(pNVar5->sub).nodep.x = (anon_union_4_4_38bfafa6_for_x)(value->u).s.len;" (assignment_expression "(pNVar5->sub).nodep.x = (anon_union_4_4_38bfafa6_for_x)(value->u).s.len" (field_expression "(pNVar5->sub).nodep.x" (field_expression "(pNVar5->sub).nodep" (parenthesized_expression "(pNVar5->sub)" ( (field_expression "pNVar5->sub" identifier -> field_identifier) )) . field_identifier) . field_identifier) = (field_expression "(anon_union_4_4_38bfafa6_for_x)(value->u).s.len" (field_expression "(anon_union_4_4_38bfafa6_for_x)(value->u).s" (call_expression "(anon_union_4_4_38bfafa6_for_x)(value->u)" (parenthesized_expression "(anon_union_4_4_38bfafa6_for_x)" ( identifier )) (argument_list "(value->u)" ( (field_expression "value->u" identifier -> field_identifier) ))) . field_identifier) . field_identifier)) ;) (return_statement "return awk_true;" return identifier ;) })) (goto_statement "goto LAB_0005adde;" goto statement_identifier ;) })) (if_statement "if ((uVar6 & 2) == 0) {\n      return awk_false;\n    }" if (parenthesized_expression "((uVar6 & 2) == 0)" ( (binary_expression "(uVar6 & 2) == 0" (parenthesized_expression "(uVar6 & 2)" ( (binary_expression "uVar6 & 2" identifier & number_literal) )) == number_literal) )) (compound_statement "{\n      return awk_false;\n    }" { (return_statement "return awk_false;" return identifier ;) })) comment (expression_statement "pNVar5 = *cookie;" (assignment_expression "pNVar5 = *cookie" identifier = (pointer_expression "*cookie" * identifier)) ;) (if_statement "if ((pNVar5->sub).nodep.name != (char *)0x1) goto LAB_0005adde;" if (parenthesized_expression "((pNVar5->sub).nodep.name != (char *)0x1)" ( (binary_expression "(pNVar5->sub).nodep.name != (char *)0x1" (field_expression "(pNVar5->sub).nodep.name" (field_expression "(pNVar5->sub).nodep" (parenthesized_expression "(pNVar5->sub)" ( (field_expression "pNVar5->sub" identifier -> field_identifier) )) . field_identifier) . field_identifier) != (cast_expression "(char *)0x1" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) (goto_statement "goto LAB_0005adde;" goto statement_identifier ;)) (if_statement "if ((do_flags & 0x8000U) == 0) {\n      uVar6 = pNVar5->flags;\n      if ((uVar6 & 5) == 5) {\n        free((pNVar5->sub).val.sp);\n        uVar6 = pNVar5->flags;\n      }\n      if ((uVar6 & 0x200) != 0) {\n        r_free_wstr(pNVar5);\n      }\n      aVar1 = (value->u).s;\n      pNVar5->flags = 0x19;\n      (pNVar5->sub).val.sp = (char *)0x0;\n      (pNVar5->sub).val.slen = 0;\n      (pNVar5->sub).val.fltnum = (double)aVar1;\n      return awk_true;\n    }" if (parenthesized_expression "((do_flags & 0x8000U) == 0)" ( (binary_expression "(do_flags & 0x8000U) == 0" (parenthesized_expression "(do_flags & 0x8000U)" ( (binary_expression "do_flags & 0x8000U" identifier & number_literal) )) == number_literal) )) (compound_statement "{\n      uVar6 = pNVar5->flags;\n      if ((uVar6 & 5) == 5) {\n        free((pNVar5->sub).val.sp);\n        uVar6 = pNVar5->flags;\n      }\n      if ((uVar6 & 0x200) != 0) {\n        r_free_wstr(pNVar5);\n      }\n      aVar1 = (value->u).s;\n      pNVar5->flags = 0x19;\n      (pNVar5->sub).val.sp = (char *)0x0;\n      (pNVar5->sub).val.slen = 0;\n      (pNVar5->sub).val.fltnum = (double)aVar1;\n      return awk_true;\n    }" { (expression_statement "uVar6 = pNVar5->flags;" (assignment_expression "uVar6 = pNVar5->flags" identifier = (field_expression "pNVar5->flags" identifier -> field_identifier)) ;) (if_statement "if ((uVar6 & 5) == 5) {\n        free((pNVar5->sub).val.sp);\n        uVar6 = pNVar5->flags;\n      }" if (parenthesized_expression "((uVar6 & 5) == 5)" ( (binary_expression "(uVar6 & 5) == 5" (parenthesized_expression "(uVar6 & 5)" ( (binary_expression "uVar6 & 5" identifier & number_literal) )) == number_literal) )) (compound_statement "{\n        free((pNVar5->sub).val.sp);\n        uVar6 = pNVar5->flags;\n      }" { (expression_statement "free((pNVar5->sub).val.sp);" (call_expression "free((pNVar5->sub).val.sp)" identifier (argument_list "((pNVar5->sub).val.sp)" ( (field_expression "(pNVar5->sub).val.sp" (field_expression "(pNVar5->sub).val" (parenthesized_expression "(pNVar5->sub)" ( (field_expression "pNVar5->sub" identifier -> field_identifier) )) . field_identifier) . field_identifier) ))) ;) (expression_statement "uVar6 = pNVar5->flags;" (assignment_expression "uVar6 = pNVar5->flags" identifier = (field_expression "pNVar5->flags" identifier -> field_identifier)) ;) })) (if_statement "if ((uVar6 & 0x200) != 0) {\n        r_free_wstr(pNVar5);\n      }" if (parenthesized_expression "((uVar6 & 0x200) != 0)" ( (binary_expression "(uVar6 & 0x200) != 0" (parenthesized_expression "(uVar6 & 0x200)" ( (binary_expression "uVar6 & 0x200" identifier & number_literal) )) != number_literal) )) (compound_statement "{\n        r_free_wstr(pNVar5);\n      }" { (expression_statement "r_free_wstr(pNVar5);" (call_expression "r_free_wstr(pNVar5)" identifier (argument_list "(pNVar5)" ( identifier ))) ;) })) (expression_statement "aVar1 = (value->u).s;" (assignment_expression "aVar1 = (value->u).s" identifier = (field_expression "(value->u).s" (parenthesized_expression "(value->u)" ( (field_expression "value->u" identifier -> field_identifier) )) . field_identifier)) ;) (expression_statement "pNVar5->flags = 0x19;" (assignment_expression "pNVar5->flags = 0x19" (field_expression "pNVar5->flags" identifier -> field_identifier) = number_literal) ;) (expression_statement "(pNVar5->sub).val.sp = (char *)0x0;" (assignment_expression "(pNVar5->sub).val.sp = (char *)0x0" (field_expression "(pNVar5->sub).val.sp" (field_expression "(pNVar5->sub).val" (parenthesized_expression "(pNVar5->sub)" ( (field_expression "pNVar5->sub" identifier -> field_identifier) )) . field_identifier) . field_identifier) = (cast_expression "(char *)0x0" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) ;) (expression_statement "(pNVar5->sub).val.slen = 0;" (assignment_expression "(pNVar5->sub).val.slen = 0" (field_expression "(pNVar5->sub).val.slen" (field_expression "(pNVar5->sub).val" (parenthesized_expression "(pNVar5->sub)" ( (field_expression "pNVar5->sub" identifier -> field_identifier) )) . field_identifier) . field_identifier) = number_literal) ;) (expression_statement "(pNVar5->sub).val.fltnum = (double)aVar1;" (assignment_expression "(pNVar5->sub).val.fltnum = (double)aVar1" (field_expression "(pNVar5->sub).val.fltnum" (field_expression "(pNVar5->sub).val" (parenthesized_expression "(pNVar5->sub)" ( (field_expression "pNVar5->sub" identifier -> field_identifier) )) . field_identifier) . field_identifier) = (cast_expression "(double)aVar1" ( (type_descriptor "double" primitive_type) ) identifier)) ;) (return_statement "return awk_true;" return identifier ;) })) (expression_statement "(pNVar5->sub).nodep.name = (char *)0x0;" (assignment_expression "(pNVar5->sub).nodep.name = (char *)0x0" (field_expression "(pNVar5->sub).nodep.name" (field_expression "(pNVar5->sub).nodep" (parenthesized_expression "(pNVar5->sub)" ( (field_expression "pNVar5->sub" identifier -> field_identifier) )) . field_identifier) . field_identifier) = (cast_expression "(char *)0x0" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) ;) }) (else_clause "else {\n                    /* WARNING: Load size is inaccurate */\n    pNVar5 = *cookie;\n    if (pNVar5 == (NODE *)0x0) goto LAB_0005adeb;\nLAB_0005adde:\n    wVar4 = (pNVar5->sub).val.sref + L'\xffffffff';\n    (pNVar5->sub).val.sref = wVar4;\n    if (L'\0' < wVar4) goto LAB_0005adeb;\n  }" else (compound_statement "{\n                    /* WARNING: Load size is inaccurate */\n    pNVar5 = *cookie;\n    if (pNVar5 == (NODE *)0x0) goto LAB_0005adeb;\nLAB_0005adde:\n    wVar4 = (pNVar5->sub).val.sref + L'\xffffffff';\n    (pNVar5->sub).val.sref = wVar4;\n    if (L'\0' < wVar4) goto LAB_0005adeb;\n  }" { comment (expression_statement "pNVar5 = *cookie;" (assignment_expression "pNVar5 = *cookie" identifier = (pointer_expression "*cookie" * identifier)) ;) (if_statement "if (pNVar5 == (NODE *)0x0) goto LAB_0005adeb;" if (parenthesized_expression "(pNVar5 == (NODE *)0x0)" ( (binary_expression "pNVar5 == (NODE *)0x0" identifier == (cast_expression "(NODE *)0x0" ( (type_descriptor "NODE *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (goto_statement "goto LAB_0005adeb;" goto statement_identifier ;)) (labeled_statement "LAB_0005adde:\n    wVar4 = (pNVar5->sub).val.sref + L'\xffffffff';" statement_identifier : (expression_statement "wVar4 = (pNVar5->sub).val.sref + L'\xffffffff';" (assignment_expression "wVar4 = (pNVar5->sub).val.sref + L'\xffffffff'" identifier = (binary_expression "(pNVar5->sub).val.sref + L'\xffffffff'" (field_expression "(pNVar5->sub).val.sref" (field_expression "(pNVar5->sub).val" (parenthesized_expression "(pNVar5->sub)" ( (field_expression "pNVar5->sub" identifier -> field_identifier) )) . field_identifier) . field_identifier) + (char_literal "L'\xffffffff'" L' escape_sequence character character character character '))) ;)) (expression_statement "(pNVar5->sub).val.sref = wVar4;" (assignment_expression "(pNVar5->sub).val.sref = wVar4" (field_expression "(pNVar5->sub).val.sref" (field_expression "(pNVar5->sub).val" (parenthesized_expression "(pNVar5->sub)" ( (field_expression "pNVar5->sub" identifier -> field_identifier) )) . field_identifier) . field_identifier) = identifier) ;) (if_statement "if (L'\0' < wVar4) goto LAB_0005adeb;" if (parenthesized_expression "(L'\0' < wVar4)" ( (binary_expression "L'\0' < wVar4" (char_literal "L'\0'" L' escape_sequence ') < identifier) )) (goto_statement "goto LAB_0005adeb;" goto statement_identifier ;)) }))) (expression_statement "r_unref(pNVar5);" (call_expression "r_unref(pNVar5)" identifier (argument_list "(pNVar5)" ( identifier ))) ;) (labeled_statement "LAB_0005adeb:\n  pNVar5 = awk_value_to_node(value);" statement_identifier : (expression_statement "pNVar5 = awk_value_to_node(value);" (assignment_expression "pNVar5 = awk_value_to_node(value)" identifier = (call_expression "awk_value_to_node(value)" identifier (argument_list "(value)" ( identifier )))) ;)) (expression_statement "*(NODE **)cookie = pNVar5;" (assignment_expression "*(NODE **)cookie = pNVar5" (pointer_expression "*(NODE **)cookie" * (cast_expression "(NODE **)cookie" ( (type_descriptor "NODE **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) identifier)) = identifier) ;) (return_statement "return awk_true;" return identifier ;) })))
(translation_unit "undefined4 FUN_0005ad40(undefined4 param_1,undefined4 *param_2,uint *param_3)\n\n{\n  undefined8 uVar1;\n  int iVar2;\n  undefined4 uVar3;\n  uint uVar4;\n  undefined8 *puVar5;\n  \n  if (param_3 == (uint *)0x0) {\n    return 0;\n  }\n  if (param_2 == (undefined4 *)0x0) {\n    return 0;\n  }\n  if (param_2[10] != 4) {\n    return 0;\n  }\n  if ((param_2[0xb] & 0x1000) != 0) {\n    return 0;\n  }\n  if (7 < *param_3) {\n    return 0;\n  }\n  uVar4 = 1 << ((byte)*param_3 & 0x1f);\n  if ((uVar4 & 0xc9) == 0) {\n    if ((uVar4 & 0x14) != 0) {\n      puVar5 = (undefined8 *)*param_2;\n      if (*(int *)(puVar5 + 2) == 1) {\n        if ((*(uint *)((int)puVar5 + 0x2c) & 5) == 5) {\n          free(*(void **)(puVar5 + 1));\n        }\n        FUN_000660c0(puVar5);\n        if ((*(byte *)((int)puVar5 + 0x2d) & 2) != 0) {\n          FUN_00067810(puVar5);\n        }\n        uVar4 = *param_3;\n        *(undefined4 *)((int)puVar5 + 0x2c) = 7;\n        *puVar5 = 0;\n        if (uVar4 == 4) {\n          *(undefined4 *)((int)puVar5 + 0x2c) = 0x27;\n        }\n        uVar4 = param_3[1];\n        *(undefined4 *)((int)puVar5 + 0x14) = 0xffffffff;\n        *(uint *)(puVar5 + 1) = uVar4;\n        *(uint *)((int)puVar5 + 0xc) = param_3[2];\n        return 1;\n      }\n      goto LAB_0005adde;\n    }\n    if ((uVar4 & 2) == 0) {\n      return 0;\n    }\n    puVar5 = (undefined8 *)*param_2;\n    if (*(int *)(puVar5 + 2) != 1) goto LAB_0005adde;\n    if ((_DAT_000c3760 & 0x8000) == 0) {\n      uVar4 = *(uint *)((int)puVar5 + 0x2c);\n      if ((uVar4 & 5) == 5) {\n        free(*(void **)(puVar5 + 1));\n        uVar4 = *(uint *)((int)puVar5 + 0x2c);\n      }\n      if ((uVar4 & 0x200) != 0) {\n        FUN_00067810(puVar5);\n      }\n      uVar1 = *(undefined8 *)(param_3 + 1);\n      *(undefined4 *)((int)puVar5 + 0x2c) = 0x19;\n      *(undefined4 *)(puVar5 + 1) = 0;\n      *(undefined4 *)((int)puVar5 + 0xc) = 0;\n      *puVar5 = uVar1;\n      return 1;\n    }\n    *(undefined4 *)(puVar5 + 2) = 0;\n  }\n  else {\n    puVar5 = (undefined8 *)*param_2;\n    if (puVar5 == (undefined8 *)0x0) goto LAB_0005adeb;\nLAB_0005adde:\n    iVar2 = *(int *)(puVar5 + 2);\n    *(int *)(puVar5 + 2) = iVar2 + -1;\n    if (0 < iVar2 + -1) goto LAB_0005adeb;\n  }\n  FUN_000668b0(puVar5);\nLAB_0005adeb:\n  uVar3 = FUN_0005a7e0(param_3);\n  *param_2 = uVar3;\n  return 1;\n}\n\n" (function_definition "undefined4 FUN_0005ad40(undefined4 param_1,undefined4 *param_2,uint *param_3)\n\n{\n  undefined8 uVar1;\n  int iVar2;\n  undefined4 uVar3;\n  uint uVar4;\n  undefined8 *puVar5;\n  \n  if (param_3 == (uint *)0x0) {\n    return 0;\n  }\n  if (param_2 == (undefined4 *)0x0) {\n    return 0;\n  }\n  if (param_2[10] != 4) {\n    return 0;\n  }\n  if ((param_2[0xb] & 0x1000) != 0) {\n    return 0;\n  }\n  if (7 < *param_3) {\n    return 0;\n  }\n  uVar4 = 1 << ((byte)*param_3 & 0x1f);\n  if ((uVar4 & 0xc9) == 0) {\n    if ((uVar4 & 0x14) != 0) {\n      puVar5 = (undefined8 *)*param_2;\n      if (*(int *)(puVar5 + 2) == 1) {\n        if ((*(uint *)((int)puVar5 + 0x2c) & 5) == 5) {\n          free(*(void **)(puVar5 + 1));\n        }\n        FUN_000660c0(puVar5);\n        if ((*(byte *)((int)puVar5 + 0x2d) & 2) != 0) {\n          FUN_00067810(puVar5);\n        }\n        uVar4 = *param_3;\n        *(undefined4 *)((int)puVar5 + 0x2c) = 7;\n        *puVar5 = 0;\n        if (uVar4 == 4) {\n          *(undefined4 *)((int)puVar5 + 0x2c) = 0x27;\n        }\n        uVar4 = param_3[1];\n        *(undefined4 *)((int)puVar5 + 0x14) = 0xffffffff;\n        *(uint *)(puVar5 + 1) = uVar4;\n        *(uint *)((int)puVar5 + 0xc) = param_3[2];\n        return 1;\n      }\n      goto LAB_0005adde;\n    }\n    if ((uVar4 & 2) == 0) {\n      return 0;\n    }\n    puVar5 = (undefined8 *)*param_2;\n    if (*(int *)(puVar5 + 2) != 1) goto LAB_0005adde;\n    if ((_DAT_000c3760 & 0x8000) == 0) {\n      uVar4 = *(uint *)((int)puVar5 + 0x2c);\n      if ((uVar4 & 5) == 5) {\n        free(*(void **)(puVar5 + 1));\n        uVar4 = *(uint *)((int)puVar5 + 0x2c);\n      }\n      if ((uVar4 & 0x200) != 0) {\n        FUN_00067810(puVar5);\n      }\n      uVar1 = *(undefined8 *)(param_3 + 1);\n      *(undefined4 *)((int)puVar5 + 0x2c) = 0x19;\n      *(undefined4 *)(puVar5 + 1) = 0;\n      *(undefined4 *)((int)puVar5 + 0xc) = 0;\n      *puVar5 = uVar1;\n      return 1;\n    }\n    *(undefined4 *)(puVar5 + 2) = 0;\n  }\n  else {\n    puVar5 = (undefined8 *)*param_2;\n    if (puVar5 == (undefined8 *)0x0) goto LAB_0005adeb;\nLAB_0005adde:\n    iVar2 = *(int *)(puVar5 + 2);\n    *(int *)(puVar5 + 2) = iVar2 + -1;\n    if (0 < iVar2 + -1) goto LAB_0005adeb;\n  }\n  FUN_000668b0(puVar5);\nLAB_0005adeb:\n  uVar3 = FUN_0005a7e0(param_3);\n  *param_2 = uVar3;\n  return 1;\n}" type_identifier (function_declarator "FUN_0005ad40(undefined4 param_1,undefined4 *param_2,uint *param_3)" identifier (parameter_list "(undefined4 param_1,undefined4 *param_2,uint *param_3)" ( (parameter_declaration "undefined4 param_1" type_identifier identifier) , (parameter_declaration "undefined4 *param_2" type_identifier (pointer_declarator "*param_2" * identifier)) , (parameter_declaration "uint *param_3" type_identifier (pointer_declarator "*param_3" * identifier)) ))) (compound_statement "{\n  undefined8 uVar1;\n  int iVar2;\n  undefined4 uVar3;\n  uint uVar4;\n  undefined8 *puVar5;\n  \n  if (param_3 == (uint *)0x0) {\n    return 0;\n  }\n  if (param_2 == (undefined4 *)0x0) {\n    return 0;\n  }\n  if (param_2[10] != 4) {\n    return 0;\n  }\n  if ((param_2[0xb] & 0x1000) != 0) {\n    return 0;\n  }\n  if (7 < *param_3) {\n    return 0;\n  }\n  uVar4 = 1 << ((byte)*param_3 & 0x1f);\n  if ((uVar4 & 0xc9) == 0) {\n    if ((uVar4 & 0x14) != 0) {\n      puVar5 = (undefined8 *)*param_2;\n      if (*(int *)(puVar5 + 2) == 1) {\n        if ((*(uint *)((int)puVar5 + 0x2c) & 5) == 5) {\n          free(*(void **)(puVar5 + 1));\n        }\n        FUN_000660c0(puVar5);\n        if ((*(byte *)((int)puVar5 + 0x2d) & 2) != 0) {\n          FUN_00067810(puVar5);\n        }\n        uVar4 = *param_3;\n        *(undefined4 *)((int)puVar5 + 0x2c) = 7;\n        *puVar5 = 0;\n        if (uVar4 == 4) {\n          *(undefined4 *)((int)puVar5 + 0x2c) = 0x27;\n        }\n        uVar4 = param_3[1];\n        *(undefined4 *)((int)puVar5 + 0x14) = 0xffffffff;\n        *(uint *)(puVar5 + 1) = uVar4;\n        *(uint *)((int)puVar5 + 0xc) = param_3[2];\n        return 1;\n      }\n      goto LAB_0005adde;\n    }\n    if ((uVar4 & 2) == 0) {\n      return 0;\n    }\n    puVar5 = (undefined8 *)*param_2;\n    if (*(int *)(puVar5 + 2) != 1) goto LAB_0005adde;\n    if ((_DAT_000c3760 & 0x8000) == 0) {\n      uVar4 = *(uint *)((int)puVar5 + 0x2c);\n      if ((uVar4 & 5) == 5) {\n        free(*(void **)(puVar5 + 1));\n        uVar4 = *(uint *)((int)puVar5 + 0x2c);\n      }\n      if ((uVar4 & 0x200) != 0) {\n        FUN_00067810(puVar5);\n      }\n      uVar1 = *(undefined8 *)(param_3 + 1);\n      *(undefined4 *)((int)puVar5 + 0x2c) = 0x19;\n      *(undefined4 *)(puVar5 + 1) = 0;\n      *(undefined4 *)((int)puVar5 + 0xc) = 0;\n      *puVar5 = uVar1;\n      return 1;\n    }\n    *(undefined4 *)(puVar5 + 2) = 0;\n  }\n  else {\n    puVar5 = (undefined8 *)*param_2;\n    if (puVar5 == (undefined8 *)0x0) goto LAB_0005adeb;\nLAB_0005adde:\n    iVar2 = *(int *)(puVar5 + 2);\n    *(int *)(puVar5 + 2) = iVar2 + -1;\n    if (0 < iVar2 + -1) goto LAB_0005adeb;\n  }\n  FUN_000668b0(puVar5);\nLAB_0005adeb:\n  uVar3 = FUN_0005a7e0(param_3);\n  *param_2 = uVar3;\n  return 1;\n}" { (declaration "undefined8 uVar1;" type_identifier identifier ;) (declaration "int iVar2;" primitive_type identifier ;) (declaration "undefined4 uVar3;" type_identifier identifier ;) (declaration "uint uVar4;" type_identifier identifier ;) (declaration "undefined8 *puVar5;" type_identifier (pointer_declarator "*puVar5" * identifier) ;) (if_statement "if (param_3 == (uint *)0x0) {\n    return 0;\n  }" if (parenthesized_expression "(param_3 == (uint *)0x0)" ( (binary_expression "param_3 == (uint *)0x0" identifier == (cast_expression "(uint *)0x0" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n    return 0;\n  }" { (return_statement "return 0;" return number_literal ;) })) (if_statement "if (param_2 == (undefined4 *)0x0) {\n    return 0;\n  }" if (parenthesized_expression "(param_2 == (undefined4 *)0x0)" ( (binary_expression "param_2 == (undefined4 *)0x0" identifier == (cast_expression "(undefined4 *)0x0" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n    return 0;\n  }" { (return_statement "return 0;" return number_literal ;) })) (if_statement "if (param_2[10] != 4) {\n    return 0;\n  }" if (parenthesized_expression "(param_2[10] != 4)" ( (binary_expression "param_2[10] != 4" (subscript_expression "param_2[10]" identifier [ number_literal ]) != number_literal) )) (compound_statement "{\n    return 0;\n  }" { (return_statement "return 0;" return number_literal ;) })) (if_statement "if ((param_2[0xb] & 0x1000) != 0) {\n    return 0;\n  }" if (parenthesized_expression "((param_2[0xb] & 0x1000) != 0)" ( (binary_expression "(param_2[0xb] & 0x1000) != 0" (parenthesized_expression "(param_2[0xb] & 0x1000)" ( (binary_expression "param_2[0xb] & 0x1000" (subscript_expression "param_2[0xb]" identifier [ number_literal ]) & number_literal) )) != number_literal) )) (compound_statement "{\n    return 0;\n  }" { (return_statement "return 0;" return number_literal ;) })) (if_statement "if (7 < *param_3) {\n    return 0;\n  }" if (parenthesized_expression "(7 < *param_3)" ( (binary_expression "7 < *param_3" number_literal < (pointer_expression "*param_3" * identifier)) )) (compound_statement "{\n    return 0;\n  }" { (return_statement "return 0;" return number_literal ;) })) (expression_statement "uVar4 = 1 << ((byte)*param_3 & 0x1f);" (assignment_expression "uVar4 = 1 << ((byte)*param_3 & 0x1f)" identifier = (binary_expression "1 << ((byte)*param_3 & 0x1f)" number_literal << (parenthesized_expression "((byte)*param_3 & 0x1f)" ( (binary_expression "(byte)*param_3 & 0x1f" (binary_expression "(byte)*param_3" (parenthesized_expression "(byte)" ( identifier )) * identifier) & number_literal) )))) ;) (if_statement "if ((uVar4 & 0xc9) == 0) {\n    if ((uVar4 & 0x14) != 0) {\n      puVar5 = (undefined8 *)*param_2;\n      if (*(int *)(puVar5 + 2) == 1) {\n        if ((*(uint *)((int)puVar5 + 0x2c) & 5) == 5) {\n          free(*(void **)(puVar5 + 1));\n        }\n        FUN_000660c0(puVar5);\n        if ((*(byte *)((int)puVar5 + 0x2d) & 2) != 0) {\n          FUN_00067810(puVar5);\n        }\n        uVar4 = *param_3;\n        *(undefined4 *)((int)puVar5 + 0x2c) = 7;\n        *puVar5 = 0;\n        if (uVar4 == 4) {\n          *(undefined4 *)((int)puVar5 + 0x2c) = 0x27;\n        }\n        uVar4 = param_3[1];\n        *(undefined4 *)((int)puVar5 + 0x14) = 0xffffffff;\n        *(uint *)(puVar5 + 1) = uVar4;\n        *(uint *)((int)puVar5 + 0xc) = param_3[2];\n        return 1;\n      }\n      goto LAB_0005adde;\n    }\n    if ((uVar4 & 2) == 0) {\n      return 0;\n    }\n    puVar5 = (undefined8 *)*param_2;\n    if (*(int *)(puVar5 + 2) != 1) goto LAB_0005adde;\n    if ((_DAT_000c3760 & 0x8000) == 0) {\n      uVar4 = *(uint *)((int)puVar5 + 0x2c);\n      if ((uVar4 & 5) == 5) {\n        free(*(void **)(puVar5 + 1));\n        uVar4 = *(uint *)((int)puVar5 + 0x2c);\n      }\n      if ((uVar4 & 0x200) != 0) {\n        FUN_00067810(puVar5);\n      }\n      uVar1 = *(undefined8 *)(param_3 + 1);\n      *(undefined4 *)((int)puVar5 + 0x2c) = 0x19;\n      *(undefined4 *)(puVar5 + 1) = 0;\n      *(undefined4 *)((int)puVar5 + 0xc) = 0;\n      *puVar5 = uVar1;\n      return 1;\n    }\n    *(undefined4 *)(puVar5 + 2) = 0;\n  }\n  else {\n    puVar5 = (undefined8 *)*param_2;\n    if (puVar5 == (undefined8 *)0x0) goto LAB_0005adeb;\nLAB_0005adde:\n    iVar2 = *(int *)(puVar5 + 2);\n    *(int *)(puVar5 + 2) = iVar2 + -1;\n    if (0 < iVar2 + -1) goto LAB_0005adeb;\n  }" if (parenthesized_expression "((uVar4 & 0xc9) == 0)" ( (binary_expression "(uVar4 & 0xc9) == 0" (parenthesized_expression "(uVar4 & 0xc9)" ( (binary_expression "uVar4 & 0xc9" identifier & number_literal) )) == number_literal) )) (compound_statement "{\n    if ((uVar4 & 0x14) != 0) {\n      puVar5 = (undefined8 *)*param_2;\n      if (*(int *)(puVar5 + 2) == 1) {\n        if ((*(uint *)((int)puVar5 + 0x2c) & 5) == 5) {\n          free(*(void **)(puVar5 + 1));\n        }\n        FUN_000660c0(puVar5);\n        if ((*(byte *)((int)puVar5 + 0x2d) & 2) != 0) {\n          FUN_00067810(puVar5);\n        }\n        uVar4 = *param_3;\n        *(undefined4 *)((int)puVar5 + 0x2c) = 7;\n        *puVar5 = 0;\n        if (uVar4 == 4) {\n          *(undefined4 *)((int)puVar5 + 0x2c) = 0x27;\n        }\n        uVar4 = param_3[1];\n        *(undefined4 *)((int)puVar5 + 0x14) = 0xffffffff;\n        *(uint *)(puVar5 + 1) = uVar4;\n        *(uint *)((int)puVar5 + 0xc) = param_3[2];\n        return 1;\n      }\n      goto LAB_0005adde;\n    }\n    if ((uVar4 & 2) == 0) {\n      return 0;\n    }\n    puVar5 = (undefined8 *)*param_2;\n    if (*(int *)(puVar5 + 2) != 1) goto LAB_0005adde;\n    if ((_DAT_000c3760 & 0x8000) == 0) {\n      uVar4 = *(uint *)((int)puVar5 + 0x2c);\n      if ((uVar4 & 5) == 5) {\n        free(*(void **)(puVar5 + 1));\n        uVar4 = *(uint *)((int)puVar5 + 0x2c);\n      }\n      if ((uVar4 & 0x200) != 0) {\n        FUN_00067810(puVar5);\n      }\n      uVar1 = *(undefined8 *)(param_3 + 1);\n      *(undefined4 *)((int)puVar5 + 0x2c) = 0x19;\n      *(undefined4 *)(puVar5 + 1) = 0;\n      *(undefined4 *)((int)puVar5 + 0xc) = 0;\n      *puVar5 = uVar1;\n      return 1;\n    }\n    *(undefined4 *)(puVar5 + 2) = 0;\n  }" { (if_statement "if ((uVar4 & 0x14) != 0) {\n      puVar5 = (undefined8 *)*param_2;\n      if (*(int *)(puVar5 + 2) == 1) {\n        if ((*(uint *)((int)puVar5 + 0x2c) & 5) == 5) {\n          free(*(void **)(puVar5 + 1));\n        }\n        FUN_000660c0(puVar5);\n        if ((*(byte *)((int)puVar5 + 0x2d) & 2) != 0) {\n          FUN_00067810(puVar5);\n        }\n        uVar4 = *param_3;\n        *(undefined4 *)((int)puVar5 + 0x2c) = 7;\n        *puVar5 = 0;\n        if (uVar4 == 4) {\n          *(undefined4 *)((int)puVar5 + 0x2c) = 0x27;\n        }\n        uVar4 = param_3[1];\n        *(undefined4 *)((int)puVar5 + 0x14) = 0xffffffff;\n        *(uint *)(puVar5 + 1) = uVar4;\n        *(uint *)((int)puVar5 + 0xc) = param_3[2];\n        return 1;\n      }\n      goto LAB_0005adde;\n    }" if (parenthesized_expression "((uVar4 & 0x14) != 0)" ( (binary_expression "(uVar4 & 0x14) != 0" (parenthesized_expression "(uVar4 & 0x14)" ( (binary_expression "uVar4 & 0x14" identifier & number_literal) )) != number_literal) )) (compound_statement "{\n      puVar5 = (undefined8 *)*param_2;\n      if (*(int *)(puVar5 + 2) == 1) {\n        if ((*(uint *)((int)puVar5 + 0x2c) & 5) == 5) {\n          free(*(void **)(puVar5 + 1));\n        }\n        FUN_000660c0(puVar5);\n        if ((*(byte *)((int)puVar5 + 0x2d) & 2) != 0) {\n          FUN_00067810(puVar5);\n        }\n        uVar4 = *param_3;\n        *(undefined4 *)((int)puVar5 + 0x2c) = 7;\n        *puVar5 = 0;\n        if (uVar4 == 4) {\n          *(undefined4 *)((int)puVar5 + 0x2c) = 0x27;\n        }\n        uVar4 = param_3[1];\n        *(undefined4 *)((int)puVar5 + 0x14) = 0xffffffff;\n        *(uint *)(puVar5 + 1) = uVar4;\n        *(uint *)((int)puVar5 + 0xc) = param_3[2];\n        return 1;\n      }\n      goto LAB_0005adde;\n    }" { (expression_statement "puVar5 = (undefined8 *)*param_2;" (assignment_expression "puVar5 = (undefined8 *)*param_2" identifier = (cast_expression "(undefined8 *)*param_2" ( (type_descriptor "undefined8 *" type_identifier (abstract_pointer_declarator "*" *)) ) (pointer_expression "*param_2" * identifier))) ;) (if_statement "if (*(int *)(puVar5 + 2) == 1) {\n        if ((*(uint *)((int)puVar5 + 0x2c) & 5) == 5) {\n          free(*(void **)(puVar5 + 1));\n        }\n        FUN_000660c0(puVar5);\n        if ((*(byte *)((int)puVar5 + 0x2d) & 2) != 0) {\n          FUN_00067810(puVar5);\n        }\n        uVar4 = *param_3;\n        *(undefined4 *)((int)puVar5 + 0x2c) = 7;\n        *puVar5 = 0;\n        if (uVar4 == 4) {\n          *(undefined4 *)((int)puVar5 + 0x2c) = 0x27;\n        }\n        uVar4 = param_3[1];\n        *(undefined4 *)((int)puVar5 + 0x14) = 0xffffffff;\n        *(uint *)(puVar5 + 1) = uVar4;\n        *(uint *)((int)puVar5 + 0xc) = param_3[2];\n        return 1;\n      }" if (parenthesized_expression "(*(int *)(puVar5 + 2) == 1)" ( (binary_expression "*(int *)(puVar5 + 2) == 1" (pointer_expression "*(int *)(puVar5 + 2)" * (cast_expression "(int *)(puVar5 + 2)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(puVar5 + 2)" ( (binary_expression "puVar5 + 2" identifier + number_literal) )))) == number_literal) )) (compound_statement "{\n        if ((*(uint *)((int)puVar5 + 0x2c) & 5) == 5) {\n          free(*(void **)(puVar5 + 1));\n        }\n        FUN_000660c0(puVar5);\n        if ((*(byte *)((int)puVar5 + 0x2d) & 2) != 0) {\n          FUN_00067810(puVar5);\n        }\n        uVar4 = *param_3;\n        *(undefined4 *)((int)puVar5 + 0x2c) = 7;\n        *puVar5 = 0;\n        if (uVar4 == 4) {\n          *(undefined4 *)((int)puVar5 + 0x2c) = 0x27;\n        }\n        uVar4 = param_3[1];\n        *(undefined4 *)((int)puVar5 + 0x14) = 0xffffffff;\n        *(uint *)(puVar5 + 1) = uVar4;\n        *(uint *)((int)puVar5 + 0xc) = param_3[2];\n        return 1;\n      }" { (if_statement "if ((*(uint *)((int)puVar5 + 0x2c) & 5) == 5) {\n          free(*(void **)(puVar5 + 1));\n        }" if (parenthesized_expression "((*(uint *)((int)puVar5 + 0x2c) & 5) == 5)" ( (binary_expression "(*(uint *)((int)puVar5 + 0x2c) & 5) == 5" (parenthesized_expression "(*(uint *)((int)puVar5 + 0x2c) & 5)" ( (binary_expression "*(uint *)((int)puVar5 + 0x2c) & 5" (pointer_expression "*(uint *)((int)puVar5 + 0x2c)" * (cast_expression "(uint *)((int)puVar5 + 0x2c)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)puVar5 + 0x2c)" ( (binary_expression "(int)puVar5 + 0x2c" (cast_expression "(int)puVar5" ( (type_descriptor "int" primitive_type) ) identifier) + number_literal) )))) & number_literal) )) == number_literal) )) (compound_statement "{\n          free(*(void **)(puVar5 + 1));\n        }" { (expression_statement "free(*(void **)(puVar5 + 1));" (call_expression "free(*(void **)(puVar5 + 1))" identifier (argument_list "(*(void **)(puVar5 + 1))" ( (pointer_expression "*(void **)(puVar5 + 1)" * (cast_expression "(void **)(puVar5 + 1)" ( (type_descriptor "void **" primitive_type (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(puVar5 + 1)" ( (binary_expression "puVar5 + 1" identifier + number_literal) )))) ))) ;) })) (expression_statement "FUN_000660c0(puVar5);" (call_expression "FUN_000660c0(puVar5)" identifier (argument_list "(puVar5)" ( identifier ))) ;) (if_statement "if ((*(byte *)((int)puVar5 + 0x2d) & 2) != 0) {\n          FUN_00067810(puVar5);\n        }" if (parenthesized_expression "((*(byte *)((int)puVar5 + 0x2d) & 2) != 0)" ( (binary_expression "(*(byte *)((int)puVar5 + 0x2d) & 2) != 0" (parenthesized_expression "(*(byte *)((int)puVar5 + 0x2d) & 2)" ( (binary_expression "*(byte *)((int)puVar5 + 0x2d) & 2" (pointer_expression "*(byte *)((int)puVar5 + 0x2d)" * (cast_expression "(byte *)((int)puVar5 + 0x2d)" ( (type_descriptor "byte *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)puVar5 + 0x2d)" ( (binary_expression "(int)puVar5 + 0x2d" (cast_expression "(int)puVar5" ( (type_descriptor "int" primitive_type) ) identifier) + number_literal) )))) & number_literal) )) != number_literal) )) (compound_statement "{\n          FUN_00067810(puVar5);\n        }" { (expression_statement "FUN_00067810(puVar5);" (call_expression "FUN_00067810(puVar5)" identifier (argument_list "(puVar5)" ( identifier ))) ;) })) (expression_statement "uVar4 = *param_3;" (assignment_expression "uVar4 = *param_3" identifier = (pointer_expression "*param_3" * identifier)) ;) (expression_statement "*(undefined4 *)((int)puVar5 + 0x2c) = 7;" (assignment_expression "*(undefined4 *)((int)puVar5 + 0x2c) = 7" (pointer_expression "*(undefined4 *)((int)puVar5 + 0x2c)" * (cast_expression "(undefined4 *)((int)puVar5 + 0x2c)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)puVar5 + 0x2c)" ( (binary_expression "(int)puVar5 + 0x2c" (cast_expression "(int)puVar5" ( (type_descriptor "int" primitive_type) ) identifier) + number_literal) )))) = number_literal) ;) (expression_statement "*puVar5 = 0;" (assignment_expression "*puVar5 = 0" (pointer_expression "*puVar5" * identifier) = number_literal) ;) (if_statement "if (uVar4 == 4) {\n          *(undefined4 *)((int)puVar5 + 0x2c) = 0x27;\n        }" if (parenthesized_expression "(uVar4 == 4)" ( (binary_expression "uVar4 == 4" identifier == number_literal) )) (compound_statement "{\n          *(undefined4 *)((int)puVar5 + 0x2c) = 0x27;\n        }" { (expression_statement "*(undefined4 *)((int)puVar5 + 0x2c) = 0x27;" (assignment_expression "*(undefined4 *)((int)puVar5 + 0x2c) = 0x27" (pointer_expression "*(undefined4 *)((int)puVar5 + 0x2c)" * (cast_expression "(undefined4 *)((int)puVar5 + 0x2c)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)puVar5 + 0x2c)" ( (binary_expression "(int)puVar5 + 0x2c" (cast_expression "(int)puVar5" ( (type_descriptor "int" primitive_type) ) identifier) + number_literal) )))) = number_literal) ;) })) (expression_statement "uVar4 = param_3[1];" (assignment_expression "uVar4 = param_3[1]" identifier = (subscript_expression "param_3[1]" identifier [ number_literal ])) ;) (expression_statement "*(undefined4 *)((int)puVar5 + 0x14) = 0xffffffff;" (assignment_expression "*(undefined4 *)((int)puVar5 + 0x14) = 0xffffffff" (pointer_expression "*(undefined4 *)((int)puVar5 + 0x14)" * (cast_expression "(undefined4 *)((int)puVar5 + 0x14)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)puVar5 + 0x14)" ( (binary_expression "(int)puVar5 + 0x14" (cast_expression "(int)puVar5" ( (type_descriptor "int" primitive_type) ) identifier) + number_literal) )))) = number_literal) ;) (expression_statement "*(uint *)(puVar5 + 1) = uVar4;" (assignment_expression "*(uint *)(puVar5 + 1) = uVar4" (pointer_expression "*(uint *)(puVar5 + 1)" * (cast_expression "(uint *)(puVar5 + 1)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(puVar5 + 1)" ( (binary_expression "puVar5 + 1" identifier + number_literal) )))) = identifier) ;) (expression_statement "*(uint *)((int)puVar5 + 0xc) = param_3[2];" (assignment_expression "*(uint *)((int)puVar5 + 0xc) = param_3[2]" (pointer_expression "*(uint *)((int)puVar5 + 0xc)" * (cast_expression "(uint *)((int)puVar5 + 0xc)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)puVar5 + 0xc)" ( (binary_expression "(int)puVar5 + 0xc" (cast_expression "(int)puVar5" ( (type_descriptor "int" primitive_type) ) identifier) + number_literal) )))) = (subscript_expression "param_3[2]" identifier [ number_literal ])) ;) (return_statement "return 1;" return number_literal ;) })) (goto_statement "goto LAB_0005adde;" goto statement_identifier ;) })) (if_statement "if ((uVar4 & 2) == 0) {\n      return 0;\n    }" if (parenthesized_expression "((uVar4 & 2) == 0)" ( (binary_expression "(uVar4 & 2) == 0" (parenthesized_expression "(uVar4 & 2)" ( (binary_expression "uVar4 & 2" identifier & number_literal) )) == number_literal) )) (compound_statement "{\n      return 0;\n    }" { (return_statement "return 0;" return number_literal ;) })) (expression_statement "puVar5 = (undefined8 *)*param_2;" (assignment_expression "puVar5 = (undefined8 *)*param_2" identifier = (cast_expression "(undefined8 *)*param_2" ( (type_descriptor "undefined8 *" type_identifier (abstract_pointer_declarator "*" *)) ) (pointer_expression "*param_2" * identifier))) ;) (if_statement "if (*(int *)(puVar5 + 2) != 1) goto LAB_0005adde;" if (parenthesized_expression "(*(int *)(puVar5 + 2) != 1)" ( (binary_expression "*(int *)(puVar5 + 2) != 1" (pointer_expression "*(int *)(puVar5 + 2)" * (cast_expression "(int *)(puVar5 + 2)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(puVar5 + 2)" ( (binary_expression "puVar5 + 2" identifier + number_literal) )))) != number_literal) )) (goto_statement "goto LAB_0005adde;" goto statement_identifier ;)) (if_statement "if ((_DAT_000c3760 & 0x8000) == 0) {\n      uVar4 = *(uint *)((int)puVar5 + 0x2c);\n      if ((uVar4 & 5) == 5) {\n        free(*(void **)(puVar5 + 1));\n        uVar4 = *(uint *)((int)puVar5 + 0x2c);\n      }\n      if ((uVar4 & 0x200) != 0) {\n        FUN_00067810(puVar5);\n      }\n      uVar1 = *(undefined8 *)(param_3 + 1);\n      *(undefined4 *)((int)puVar5 + 0x2c) = 0x19;\n      *(undefined4 *)(puVar5 + 1) = 0;\n      *(undefined4 *)((int)puVar5 + 0xc) = 0;\n      *puVar5 = uVar1;\n      return 1;\n    }" if (parenthesized_expression "((_DAT_000c3760 & 0x8000) == 0)" ( (binary_expression "(_DAT_000c3760 & 0x8000) == 0" (parenthesized_expression "(_DAT_000c3760 & 0x8000)" ( (binary_expression "_DAT_000c3760 & 0x8000" identifier & number_literal) )) == number_literal) )) (compound_statement "{\n      uVar4 = *(uint *)((int)puVar5 + 0x2c);\n      if ((uVar4 & 5) == 5) {\n        free(*(void **)(puVar5 + 1));\n        uVar4 = *(uint *)((int)puVar5 + 0x2c);\n      }\n      if ((uVar4 & 0x200) != 0) {\n        FUN_00067810(puVar5);\n      }\n      uVar1 = *(undefined8 *)(param_3 + 1);\n      *(undefined4 *)((int)puVar5 + 0x2c) = 0x19;\n      *(undefined4 *)(puVar5 + 1) = 0;\n      *(undefined4 *)((int)puVar5 + 0xc) = 0;\n      *puVar5 = uVar1;\n      return 1;\n    }" { (expression_statement "uVar4 = *(uint *)((int)puVar5 + 0x2c);" (assignment_expression "uVar4 = *(uint *)((int)puVar5 + 0x2c)" identifier = (pointer_expression "*(uint *)((int)puVar5 + 0x2c)" * (cast_expression "(uint *)((int)puVar5 + 0x2c)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)puVar5 + 0x2c)" ( (binary_expression "(int)puVar5 + 0x2c" (cast_expression "(int)puVar5" ( (type_descriptor "int" primitive_type) ) identifier) + number_literal) ))))) ;) (if_statement "if ((uVar4 & 5) == 5) {\n        free(*(void **)(puVar5 + 1));\n        uVar4 = *(uint *)((int)puVar5 + 0x2c);\n      }" if (parenthesized_expression "((uVar4 & 5) == 5)" ( (binary_expression "(uVar4 & 5) == 5" (parenthesized_expression "(uVar4 & 5)" ( (binary_expression "uVar4 & 5" identifier & number_literal) )) == number_literal) )) (compound_statement "{\n        free(*(void **)(puVar5 + 1));\n        uVar4 = *(uint *)((int)puVar5 + 0x2c);\n      }" { (expression_statement "free(*(void **)(puVar5 + 1));" (call_expression "free(*(void **)(puVar5 + 1))" identifier (argument_list "(*(void **)(puVar5 + 1))" ( (pointer_expression "*(void **)(puVar5 + 1)" * (cast_expression "(void **)(puVar5 + 1)" ( (type_descriptor "void **" primitive_type (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(puVar5 + 1)" ( (binary_expression "puVar5 + 1" identifier + number_literal) )))) ))) ;) (expression_statement "uVar4 = *(uint *)((int)puVar5 + 0x2c);" (assignment_expression "uVar4 = *(uint *)((int)puVar5 + 0x2c)" identifier = (pointer_expression "*(uint *)((int)puVar5 + 0x2c)" * (cast_expression "(uint *)((int)puVar5 + 0x2c)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)puVar5 + 0x2c)" ( (binary_expression "(int)puVar5 + 0x2c" (cast_expression "(int)puVar5" ( (type_descriptor "int" primitive_type) ) identifier) + number_literal) ))))) ;) })) (if_statement "if ((uVar4 & 0x200) != 0) {\n        FUN_00067810(puVar5);\n      }" if (parenthesized_expression "((uVar4 & 0x200) != 0)" ( (binary_expression "(uVar4 & 0x200) != 0" (parenthesized_expression "(uVar4 & 0x200)" ( (binary_expression "uVar4 & 0x200" identifier & number_literal) )) != number_literal) )) (compound_statement "{\n        FUN_00067810(puVar5);\n      }" { (expression_statement "FUN_00067810(puVar5);" (call_expression "FUN_00067810(puVar5)" identifier (argument_list "(puVar5)" ( identifier ))) ;) })) (expression_statement "uVar1 = *(undefined8 *)(param_3 + 1);" (assignment_expression "uVar1 = *(undefined8 *)(param_3 + 1)" identifier = (pointer_expression "*(undefined8 *)(param_3 + 1)" * (cast_expression "(undefined8 *)(param_3 + 1)" ( (type_descriptor "undefined8 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_3 + 1)" ( (binary_expression "param_3 + 1" identifier + number_literal) ))))) ;) (expression_statement "*(undefined4 *)((int)puVar5 + 0x2c) = 0x19;" (assignment_expression "*(undefined4 *)((int)puVar5 + 0x2c) = 0x19" (pointer_expression "*(undefined4 *)((int)puVar5 + 0x2c)" * (cast_expression "(undefined4 *)((int)puVar5 + 0x2c)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)puVar5 + 0x2c)" ( (binary_expression "(int)puVar5 + 0x2c" (cast_expression "(int)puVar5" ( (type_descriptor "int" primitive_type) ) identifier) + number_literal) )))) = number_literal) ;) (expression_statement "*(undefined4 *)(puVar5 + 1) = 0;" (assignment_expression "*(undefined4 *)(puVar5 + 1) = 0" (pointer_expression "*(undefined4 *)(puVar5 + 1)" * (cast_expression "(undefined4 *)(puVar5 + 1)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(puVar5 + 1)" ( (binary_expression "puVar5 + 1" identifier + number_literal) )))) = number_literal) ;) (expression_statement "*(undefined4 *)((int)puVar5 + 0xc) = 0;" (assignment_expression "*(undefined4 *)((int)puVar5 + 0xc) = 0" (pointer_expression "*(undefined4 *)((int)puVar5 + 0xc)" * (cast_expression "(undefined4 *)((int)puVar5 + 0xc)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)puVar5 + 0xc)" ( (binary_expression "(int)puVar5 + 0xc" (cast_expression "(int)puVar5" ( (type_descriptor "int" primitive_type) ) identifier) + number_literal) )))) = number_literal) ;) (expression_statement "*puVar5 = uVar1;" (assignment_expression "*puVar5 = uVar1" (pointer_expression "*puVar5" * identifier) = identifier) ;) (return_statement "return 1;" return number_literal ;) })) (expression_statement "*(undefined4 *)(puVar5 + 2) = 0;" (assignment_expression "*(undefined4 *)(puVar5 + 2) = 0" (pointer_expression "*(undefined4 *)(puVar5 + 2)" * (cast_expression "(undefined4 *)(puVar5 + 2)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(puVar5 + 2)" ( (binary_expression "puVar5 + 2" identifier + number_literal) )))) = number_literal) ;) }) (else_clause "else {\n    puVar5 = (undefined8 *)*param_2;\n    if (puVar5 == (undefined8 *)0x0) goto LAB_0005adeb;\nLAB_0005adde:\n    iVar2 = *(int *)(puVar5 + 2);\n    *(int *)(puVar5 + 2) = iVar2 + -1;\n    if (0 < iVar2 + -1) goto LAB_0005adeb;\n  }" else (compound_statement "{\n    puVar5 = (undefined8 *)*param_2;\n    if (puVar5 == (undefined8 *)0x0) goto LAB_0005adeb;\nLAB_0005adde:\n    iVar2 = *(int *)(puVar5 + 2);\n    *(int *)(puVar5 + 2) = iVar2 + -1;\n    if (0 < iVar2 + -1) goto LAB_0005adeb;\n  }" { (expression_statement "puVar5 = (undefined8 *)*param_2;" (assignment_expression "puVar5 = (undefined8 *)*param_2" identifier = (cast_expression "(undefined8 *)*param_2" ( (type_descriptor "undefined8 *" type_identifier (abstract_pointer_declarator "*" *)) ) (pointer_expression "*param_2" * identifier))) ;) (if_statement "if (puVar5 == (undefined8 *)0x0) goto LAB_0005adeb;" if (parenthesized_expression "(puVar5 == (undefined8 *)0x0)" ( (binary_expression "puVar5 == (undefined8 *)0x0" identifier == (cast_expression "(undefined8 *)0x0" ( (type_descriptor "undefined8 *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (goto_statement "goto LAB_0005adeb;" goto statement_identifier ;)) (labeled_statement "LAB_0005adde:\n    iVar2 = *(int *)(puVar5 + 2);" statement_identifier : (expression_statement "iVar2 = *(int *)(puVar5 + 2);" (assignment_expression "iVar2 = *(int *)(puVar5 + 2)" identifier = (pointer_expression "*(int *)(puVar5 + 2)" * (cast_expression "(int *)(puVar5 + 2)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(puVar5 + 2)" ( (binary_expression "puVar5 + 2" identifier + number_literal) ))))) ;)) (expression_statement "*(int *)(puVar5 + 2) = iVar2 + -1;" (assignment_expression "*(int *)(puVar5 + 2) = iVar2 + -1" (pointer_expression "*(int *)(puVar5 + 2)" * (cast_expression "(int *)(puVar5 + 2)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(puVar5 + 2)" ( (binary_expression "puVar5 + 2" identifier + number_literal) )))) = (binary_expression "iVar2 + -1" identifier + number_literal)) ;) (if_statement "if (0 < iVar2 + -1) goto LAB_0005adeb;" if (parenthesized_expression "(0 < iVar2 + -1)" ( (binary_expression "0 < iVar2 + -1" number_literal < (binary_expression "iVar2 + -1" identifier + number_literal)) )) (goto_statement "goto LAB_0005adeb;" goto statement_identifier ;)) }))) (expression_statement "FUN_000668b0(puVar5);" (call_expression "FUN_000668b0(puVar5)" identifier (argument_list "(puVar5)" ( identifier ))) ;) (labeled_statement "LAB_0005adeb:\n  uVar3 = FUN_0005a7e0(param_3);" statement_identifier : (expression_statement "uVar3 = FUN_0005a7e0(param_3);" (assignment_expression "uVar3 = FUN_0005a7e0(param_3)" identifier = (call_expression "FUN_0005a7e0(param_3)" identifier (argument_list "(param_3)" ( identifier )))) ;)) (expression_statement "*param_2 = uVar3;" (assignment_expression "*param_2 = uVar3" (pointer_expression "*param_2" * identifier) = identifier) ;) (return_statement "return 1;" return number_literal ;) })))
(translation_unit (function_definition TYPE (function_declarator IDENT (parameter_list ( (parameter_declaration TYPE IDENT) , (parameter_declaration TYPE (pointer_declarator * IDENT)) , (parameter_declaration TYPE (pointer_declarator * IDENT)) ))) (compound_statement { (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE (pointer_declarator * IDENT) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT == (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) LIT)) )) (compound_statement { (return_statement return LIT ;) })) (if_statement if (parenthesized_expression ( (binary_expression IDENT == (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) LIT)) )) (compound_statement { (return_statement return LIT ;) })) (if_statement if (parenthesized_expression ( (binary_expression (subscript_expression IDENT [ LIT ]) != LIT) )) (compound_statement { (return_statement return LIT ;) })) (if_statement if (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression (subscript_expression IDENT [ LIT ]) & LIT) )) != LIT) )) (compound_statement { (return_statement return LIT ;) })) (if_statement if (parenthesized_expression ( (binary_expression LIT < (pointer_expression * IDENT)) )) (compound_statement { (return_statement return LIT ;) })) (expression_statement (assignment_expression IDENT = (binary_expression LIT << (parenthesized_expression ( (binary_expression (binary_expression (parenthesized_expression ( IDENT )) * IDENT) & LIT) )))) ;) (if_statement if (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression IDENT & LIT) )) == LIT) )) (compound_statement { (if_statement if (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression IDENT & LIT) )) != LIT) )) (compound_statement { (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (pointer_expression * IDENT))) ;) (if_statement if (parenthesized_expression ( (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) == LIT) )) (compound_statement { (if_statement if (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression (cast_expression ( (type_descriptor TYPE) ) IDENT) + LIT) )))) & LIT) )) == LIT) )) (compound_statement { (expression_statement (call_expression IDENT (argument_list ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator * (abstract_pointer_declarator *))) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) ))) ;) })) (expression_statement (call_expression IDENT (argument_list ( IDENT ))) ;) (if_statement if (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression (cast_expression ( (type_descriptor TYPE) ) IDENT) + LIT) )))) & LIT) )) != LIT) )) (compound_statement { (expression_statement (call_expression IDENT (argument_list ( IDENT ))) ;) })) (expression_statement (assignment_expression IDENT = (pointer_expression * IDENT)) ;) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression (cast_expression ( (type_descriptor TYPE) ) IDENT) + LIT) )))) = LIT) ;) (expression_statement (assignment_expression (pointer_expression * IDENT) = LIT) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT == LIT) )) (compound_statement { (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression (cast_expression ( (type_descriptor TYPE) ) IDENT) + LIT) )))) = LIT) ;) })) (expression_statement (assignment_expression IDENT = (subscript_expression IDENT [ LIT ])) ;) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression (cast_expression ( (type_descriptor TYPE) ) IDENT) + LIT) )))) = LIT) ;) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) = IDENT) ;) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression (cast_expression ( (type_descriptor TYPE) ) IDENT) + LIT) )))) = (subscript_expression IDENT [ LIT ])) ;) (return_statement return LIT ;) })) (goto_statement goto statement_identifier ;) })) (if_statement if (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression IDENT & LIT) )) == LIT) )) (compound_statement { (return_statement return LIT ;) })) (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (pointer_expression * IDENT))) ;) (if_statement if (parenthesized_expression ( (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) != LIT) )) (goto_statement goto statement_identifier ;)) (if_statement if (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression IDENT & LIT) )) == LIT) )) (compound_statement { (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression (cast_expression ( (type_descriptor TYPE) ) IDENT) + LIT) ))))) ;) (if_statement if (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression IDENT & LIT) )) == LIT) )) (compound_statement { (expression_statement (call_expression IDENT (argument_list ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator * (abstract_pointer_declarator *))) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) ))) ;) (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression (cast_expression ( (type_descriptor TYPE) ) IDENT) + LIT) ))))) ;) })) (if_statement if (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression IDENT & LIT) )) != LIT) )) (compound_statement { (expression_statement (call_expression IDENT (argument_list ( IDENT ))) ;) })) (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) ;) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression (cast_expression ( (type_descriptor TYPE) ) IDENT) + LIT) )))) = LIT) ;) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) = LIT) ;) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression (cast_expression ( (type_descriptor TYPE) ) IDENT) + LIT) )))) = LIT) ;) (expression_statement (assignment_expression (pointer_expression * IDENT) = IDENT) ;) (return_statement return LIT ;) })) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) = LIT) ;) }) (else_clause else (compound_statement { (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (pointer_expression * IDENT))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT == (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) LIT)) )) (goto_statement goto statement_identifier ;)) (labeled_statement statement_identifier : (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) ;)) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) = (binary_expression IDENT + LIT)) ;) (if_statement if (parenthesized_expression ( (binary_expression LIT < (binary_expression IDENT + LIT)) )) (goto_statement goto statement_identifier ;)) }))) (expression_statement (call_expression IDENT (argument_list ( IDENT ))) ;) (labeled_statement statement_identifier : (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( IDENT )))) ;)) (expression_statement (assignment_expression (pointer_expression * IDENT) = IDENT) ;) (return_statement return LIT ;) })))
(function_definition "undefined4 FUN_0005ad40(undefined4 param_1,undefined4 *param_2,uint *param_3)\n\n{\n  undefined8 uVar1;\n  int iVar2;\n  undefined4 uVar3;\n  uint uVar4;\n  undefined8 *puVar5;\n  \n  if (param_3 == (uint *)0x0) {\n    return 0;\n  }\n  if (param_2 == (undefined4 *)0x0) {\n    return 0;\n  }\n  if (param_2[10] != 4) {\n    return 0;\n  }\n  if ((param_2[0xb] & 0x1000) != 0) {\n    return 0;\n  }\n  if (7 < *param_3) {\n    return 0;\n  }\n  uVar4 = 1 << ((byte)*param_3 & 0x1f);\n  if ((uVar4 & 0xc9) == 0) {\n    if ((uVar4 & 0x14) != 0) {\n      puVar5 = (undefined8 *)*param_2;\n      if (*(int *)(puVar5 + 2) == 1) {\n        if ((*(uint *)((int)puVar5 + 0x2c) & 5) == 5) {\n          free(*(void **)(puVar5 + 1));\n        }\n        FUN_000660c0(puVar5);\n        if ((*(byte *)((int)puVar5 + 0x2d) & 2) != 0) {\n          FUN_00067810(puVar5);\n        }\n        uVar4 = *param_3;\n        *(undefined4 *)((int)puVar5 + 0x2c) = 7;\n        *puVar5 = 0;\n        if (uVar4 == 4) {\n          *(undefined4 *)((int)puVar5 + 0x2c) = 0x27;\n        }\n        uVar4 = param_3[1];\n        *(undefined4 *)((int)puVar5 + 0x14) = 0xffffffff;\n        *(uint *)(puVar5 + 1) = uVar4;\n        *(uint *)((int)puVar5 + 0xc) = param_3[2];\n        return 1;\n      }\n      goto LAB_0005adde;\n    }\n    if ((uVar4 & 2) == 0) {\n      return 0;\n    }\n    puVar5 = (undefined8 *)*param_2;\n    if (*(int *)(puVar5 + 2) != 1) goto LAB_0005adde;\n    if ((_DAT_000c3760 & 0x8000) == 0) {\n      uVar4 = *(uint *)((int)puVar5 + 0x2c);\n      if ((uVar4 & 5) == 5) {\n        free(*(void **)(puVar5 + 1));\n        uVar4 = *(uint *)((int)puVar5 + 0x2c);\n      }\n      if ((uVar4 & 0x200) != 0) {\n        FUN_00067810(puVar5);\n      }\n      uVar1 = *(undefined8 *)(param_3 + 1);\n      *(undefined4 *)((int)puVar5 + 0x2c) = 0x19;\n      *(undefined4 *)(puVar5 + 1) = 0;\n      *(undefined4 *)((int)puVar5 + 0xc) = 0;\n      *puVar5 = uVar1;\n      return 1;\n    }\n    *(undefined4 *)(puVar5 + 2) = 0;\n  }\n  else {\n    puVar5 = (undefined8 *)*param_2;\n    if (puVar5 == (undefined8 *)0x0) goto LAB_0005adeb;\nLAB_0005adde:\n    iVar2 = *(int *)(puVar5 + 2);\n    *(int *)(puVar5 + 2) = iVar2 + -1;\n    if (0 < iVar2 + -1) goto LAB_0005adeb;\n  }\n  FUN_000668b0(puVar5);\nLAB_0005adeb:\n  uVar3 = FUN_0005a7e0(param_3);\n  *param_2 = uVar3;\n  return 1;\n}" (type_identifier "undefined4") (function_declarator "FUN_0005ad40(undefined4 param_1,undefined4 *param_2,uint *param_3)" (identifier "FUN_0005ad40") (parameter_list "(undefined4 param_1,undefined4 *param_2,uint *param_3)" (( "(") (parameter_declaration "undefined4 param_1" (type_identifier "undefined4") (identifier "param_1")) (, ",") (parameter_declaration "undefined4 *param_2" (type_identifier "undefined4") (pointer_declarator "*param_2" (* "*") (identifier "param_2"))) (, ",") (parameter_declaration "uint *param_3" (type_identifier "uint") (pointer_declarator "*param_3" (* "*") (identifier "param_3"))) () ")"))) (compound_statement "{\n  undefined8 uVar1;\n  int iVar2;\n  undefined4 uVar3;\n  uint uVar4;\n  undefined8 *puVar5;\n  \n  if (param_3 == (uint *)0x0) {\n    return 0;\n  }\n  if (param_2 == (undefined4 *)0x0) {\n    return 0;\n  }\n  if (param_2[10] != 4) {\n    return 0;\n  }\n  if ((param_2[0xb] & 0x1000) != 0) {\n    return 0;\n  }\n  if (7 < *param_3) {\n    return 0;\n  }\n  uVar4 = 1 << ((byte)*param_3 & 0x1f);\n  if ((uVar4 & 0xc9) == 0) {\n    if ((uVar4 & 0x14) != 0) {\n      puVar5 = (undefined8 *)*param_2;\n      if (*(int *)(puVar5 + 2) == 1) {\n        if ((*(uint *)((int)puVar5 + 0x2c) & 5) == 5) {\n          free(*(void **)(puVar5 + 1));\n        }\n        FUN_000660c0(puVar5);\n        if ((*(byte *)((int)puVar5 + 0x2d) & 2) != 0) {\n          FUN_00067810(puVar5);\n        }\n        uVar4 = *param_3;\n        *(undefined4 *)((int)puVar5 + 0x2c) = 7;\n        *puVar5 = 0;\n        if (uVar4 == 4) {\n          *(undefined4 *)((int)puVar5 + 0x2c) = 0x27;\n        }\n        uVar4 = param_3[1];\n        *(undefined4 *)((int)puVar5 + 0x14) = 0xffffffff;\n        *(uint *)(puVar5 + 1) = uVar4;\n        *(uint *)((int)puVar5 + 0xc) = param_3[2];\n        return 1;\n      }\n      goto LAB_0005adde;\n    }\n    if ((uVar4 & 2) == 0) {\n      return 0;\n    }\n    puVar5 = (undefined8 *)*param_2;\n    if (*(int *)(puVar5 + 2) != 1) goto LAB_0005adde;\n    if ((_DAT_000c3760 & 0x8000) == 0) {\n      uVar4 = *(uint *)((int)puVar5 + 0x2c);\n      if ((uVar4 & 5) == 5) {\n        free(*(void **)(puVar5 + 1));\n        uVar4 = *(uint *)((int)puVar5 + 0x2c);\n      }\n      if ((uVar4 & 0x200) != 0) {\n        FUN_00067810(puVar5);\n      }\n      uVar1 = *(undefined8 *)(param_3 + 1);\n      *(undefined4 *)((int)puVar5 + 0x2c) = 0x19;\n      *(undefined4 *)(puVar5 + 1) = 0;\n      *(undefined4 *)((int)puVar5 + 0xc) = 0;\n      *puVar5 = uVar1;\n      return 1;\n    }\n    *(undefined4 *)(puVar5 + 2) = 0;\n  }\n  else {\n    puVar5 = (undefined8 *)*param_2;\n    if (puVar5 == (undefined8 *)0x0) goto LAB_0005adeb;\nLAB_0005adde:\n    iVar2 = *(int *)(puVar5 + 2);\n    *(int *)(puVar5 + 2) = iVar2 + -1;\n    if (0 < iVar2 + -1) goto LAB_0005adeb;\n  }\n  FUN_000668b0(puVar5);\nLAB_0005adeb:\n  uVar3 = FUN_0005a7e0(param_3);\n  *param_2 = uVar3;\n  return 1;\n}" ({ "{") (declaration "undefined8 uVar1;" (type_identifier "undefined8") (identifier "uVar1") (; ";")) (declaration "int iVar2;" (primitive_type "int") (identifier "iVar2") (; ";")) (declaration "undefined4 uVar3;" (type_identifier "undefined4") (identifier "uVar3") (; ";")) (declaration "uint uVar4;" (type_identifier "uint") (identifier "uVar4") (; ";")) (declaration "undefined8 *puVar5;" (type_identifier "undefined8") (pointer_declarator "*puVar5" (* "*") (identifier "puVar5")) (; ";")) (if_statement "if (param_3 == (uint *)0x0) {\n    return 0;\n  }" (if "if") (parenthesized_expression "(param_3 == (uint *)0x0)" (( "(") (binary_expression "param_3 == (uint *)0x0" (identifier "param_3") (== "==") (cast_expression "(uint *)0x0" (( "(") (type_descriptor "uint *" (type_identifier "uint") (abstract_pointer_declarator "*" (* "*"))) () ")") (number_literal "0x0"))) () ")")) (compound_statement "{\n    return 0;\n  }" ({ "{") (return_statement "return 0;" (return "return") (number_literal "0") (; ";")) (} "}"))) (if_statement "if (param_2 == (undefined4 *)0x0) {\n    return 0;\n  }" (if "if") (parenthesized_expression "(param_2 == (undefined4 *)0x0)" (( "(") (binary_expression "param_2 == (undefined4 *)0x0" (identifier "param_2") (== "==") (cast_expression "(undefined4 *)0x0" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (number_literal "0x0"))) () ")")) (compound_statement "{\n    return 0;\n  }" ({ "{") (return_statement "return 0;" (return "return") (number_literal "0") (; ";")) (} "}"))) (if_statement "if (param_2[10] != 4) {\n    return 0;\n  }" (if "if") (parenthesized_expression "(param_2[10] != 4)" (( "(") (binary_expression "param_2[10] != 4" (subscript_expression "param_2[10]" (identifier "param_2") ([ "[") (number_literal "10") (] "]")) (!= "!=") (number_literal "4")) () ")")) (compound_statement "{\n    return 0;\n  }" ({ "{") (return_statement "return 0;" (return "return") (number_literal "0") (; ";")) (} "}"))) (if_statement "if ((param_2[0xb] & 0x1000) != 0) {\n    return 0;\n  }" (if "if") (parenthesized_expression "((param_2[0xb] & 0x1000) != 0)" (( "(") (binary_expression "(param_2[0xb] & 0x1000) != 0" (parenthesized_expression "(param_2[0xb] & 0x1000)" (( "(") (binary_expression "param_2[0xb] & 0x1000" (subscript_expression "param_2[0xb]" (identifier "param_2") ([ "[") (number_literal "0xb") (] "]")) (& "&") (number_literal "0x1000")) () ")")) (!= "!=") (number_literal "0")) () ")")) (compound_statement "{\n    return 0;\n  }" ({ "{") (return_statement "return 0;" (return "return") (number_literal "0") (; ";")) (} "}"))) (if_statement "if (7 < *param_3) {\n    return 0;\n  }" (if "if") (parenthesized_expression "(7 < *param_3)" (( "(") (binary_expression "7 < *param_3" (number_literal "7") (< "<") (pointer_expression "*param_3" (* "*") (identifier "param_3"))) () ")")) (compound_statement "{\n    return 0;\n  }" ({ "{") (return_statement "return 0;" (return "return") (number_literal "0") (; ";")) (} "}"))) (expression_statement "uVar4 = 1 << ((byte)*param_3 & 0x1f);" (assignment_expression "uVar4 = 1 << ((byte)*param_3 & 0x1f)" (identifier "uVar4") (= "=") (binary_expression "1 << ((byte)*param_3 & 0x1f)" (number_literal "1") (<< "<<") (parenthesized_expression "((byte)*param_3 & 0x1f)" (( "(") (binary_expression "(byte)*param_3 & 0x1f" (binary_expression "(byte)*param_3" (parenthesized_expression "(byte)" (( "(") (identifier "byte") () ")")) (* "*") (identifier "param_3")) (& "&") (number_literal "0x1f")) () ")")))) (; ";")) (if_statement "if ((uVar4 & 0xc9) == 0) {\n    if ((uVar4 & 0x14) != 0) {\n      puVar5 = (undefined8 *)*param_2;\n      if (*(int *)(puVar5 + 2) == 1) {\n        if ((*(uint *)((int)puVar5 + 0x2c) & 5) == 5) {\n          free(*(void **)(puVar5 + 1));\n        }\n        FUN_000660c0(puVar5);\n        if ((*(byte *)((int)puVar5 + 0x2d) & 2) != 0) {\n          FUN_00067810(puVar5);\n        }\n        uVar4 = *param_3;\n        *(undefined4 *)((int)puVar5 + 0x2c) = 7;\n        *puVar5 = 0;\n        if (uVar4 == 4) {\n          *(undefined4 *)((int)puVar5 + 0x2c) = 0x27;\n        }\n        uVar4 = param_3[1];\n        *(undefined4 *)((int)puVar5 + 0x14) = 0xffffffff;\n        *(uint *)(puVar5 + 1) = uVar4;\n        *(uint *)((int)puVar5 + 0xc) = param_3[2];\n        return 1;\n      }\n      goto LAB_0005adde;\n    }\n    if ((uVar4 & 2) == 0) {\n      return 0;\n    }\n    puVar5 = (undefined8 *)*param_2;\n    if (*(int *)(puVar5 + 2) != 1) goto LAB_0005adde;\n    if ((_DAT_000c3760 & 0x8000) == 0) {\n      uVar4 = *(uint *)((int)puVar5 + 0x2c);\n      if ((uVar4 & 5) == 5) {\n        free(*(void **)(puVar5 + 1));\n        uVar4 = *(uint *)((int)puVar5 + 0x2c);\n      }\n      if ((uVar4 & 0x200) != 0) {\n        FUN_00067810(puVar5);\n      }\n      uVar1 = *(undefined8 *)(param_3 + 1);\n      *(undefined4 *)((int)puVar5 + 0x2c) = 0x19;\n      *(undefined4 *)(puVar5 + 1) = 0;\n      *(undefined4 *)((int)puVar5 + 0xc) = 0;\n      *puVar5 = uVar1;\n      return 1;\n    }\n    *(undefined4 *)(puVar5 + 2) = 0;\n  }\n  else {\n    puVar5 = (undefined8 *)*param_2;\n    if (puVar5 == (undefined8 *)0x0) goto LAB_0005adeb;\nLAB_0005adde:\n    iVar2 = *(int *)(puVar5 + 2);\n    *(int *)(puVar5 + 2) = iVar2 + -1;\n    if (0 < iVar2 + -1) goto LAB_0005adeb;\n  }" (if "if") (parenthesized_expression "((uVar4 & 0xc9) == 0)" (( "(") (binary_expression "(uVar4 & 0xc9) == 0" (parenthesized_expression "(uVar4 & 0xc9)" (( "(") (binary_expression "uVar4 & 0xc9" (identifier "uVar4") (& "&") (number_literal "0xc9")) () ")")) (== "==") (number_literal "0")) () ")")) (compound_statement "{\n    if ((uVar4 & 0x14) != 0) {\n      puVar5 = (undefined8 *)*param_2;\n      if (*(int *)(puVar5 + 2) == 1) {\n        if ((*(uint *)((int)puVar5 + 0x2c) & 5) == 5) {\n          free(*(void **)(puVar5 + 1));\n        }\n        FUN_000660c0(puVar5);\n        if ((*(byte *)((int)puVar5 + 0x2d) & 2) != 0) {\n          FUN_00067810(puVar5);\n        }\n        uVar4 = *param_3;\n        *(undefined4 *)((int)puVar5 + 0x2c) = 7;\n        *puVar5 = 0;\n        if (uVar4 == 4) {\n          *(undefined4 *)((int)puVar5 + 0x2c) = 0x27;\n        }\n        uVar4 = param_3[1];\n        *(undefined4 *)((int)puVar5 + 0x14) = 0xffffffff;\n        *(uint *)(puVar5 + 1) = uVar4;\n        *(uint *)((int)puVar5 + 0xc) = param_3[2];\n        return 1;\n      }\n      goto LAB_0005adde;\n    }\n    if ((uVar4 & 2) == 0) {\n      return 0;\n    }\n    puVar5 = (undefined8 *)*param_2;\n    if (*(int *)(puVar5 + 2) != 1) goto LAB_0005adde;\n    if ((_DAT_000c3760 & 0x8000) == 0) {\n      uVar4 = *(uint *)((int)puVar5 + 0x2c);\n      if ((uVar4 & 5) == 5) {\n        free(*(void **)(puVar5 + 1));\n        uVar4 = *(uint *)((int)puVar5 + 0x2c);\n      }\n      if ((uVar4 & 0x200) != 0) {\n        FUN_00067810(puVar5);\n      }\n      uVar1 = *(undefined8 *)(param_3 + 1);\n      *(undefined4 *)((int)puVar5 + 0x2c) = 0x19;\n      *(undefined4 *)(puVar5 + 1) = 0;\n      *(undefined4 *)((int)puVar5 + 0xc) = 0;\n      *puVar5 = uVar1;\n      return 1;\n    }\n    *(undefined4 *)(puVar5 + 2) = 0;\n  }" ({ "{") (if_statement "if ((uVar4 & 0x14) != 0) {\n      puVar5 = (undefined8 *)*param_2;\n      if (*(int *)(puVar5 + 2) == 1) {\n        if ((*(uint *)((int)puVar5 + 0x2c) & 5) == 5) {\n          free(*(void **)(puVar5 + 1));\n        }\n        FUN_000660c0(puVar5);\n        if ((*(byte *)((int)puVar5 + 0x2d) & 2) != 0) {\n          FUN_00067810(puVar5);\n        }\n        uVar4 = *param_3;\n        *(undefined4 *)((int)puVar5 + 0x2c) = 7;\n        *puVar5 = 0;\n        if (uVar4 == 4) {\n          *(undefined4 *)((int)puVar5 + 0x2c) = 0x27;\n        }\n        uVar4 = param_3[1];\n        *(undefined4 *)((int)puVar5 + 0x14) = 0xffffffff;\n        *(uint *)(puVar5 + 1) = uVar4;\n        *(uint *)((int)puVar5 + 0xc) = param_3[2];\n        return 1;\n      }\n      goto LAB_0005adde;\n    }" (if "if") (parenthesized_expression "((uVar4 & 0x14) != 0)" (( "(") (binary_expression "(uVar4 & 0x14) != 0" (parenthesized_expression "(uVar4 & 0x14)" (( "(") (binary_expression "uVar4 & 0x14" (identifier "uVar4") (& "&") (number_literal "0x14")) () ")")) (!= "!=") (number_literal "0")) () ")")) (compound_statement "{\n      puVar5 = (undefined8 *)*param_2;\n      if (*(int *)(puVar5 + 2) == 1) {\n        if ((*(uint *)((int)puVar5 + 0x2c) & 5) == 5) {\n          free(*(void **)(puVar5 + 1));\n        }\n        FUN_000660c0(puVar5);\n        if ((*(byte *)((int)puVar5 + 0x2d) & 2) != 0) {\n          FUN_00067810(puVar5);\n        }\n        uVar4 = *param_3;\n        *(undefined4 *)((int)puVar5 + 0x2c) = 7;\n        *puVar5 = 0;\n        if (uVar4 == 4) {\n          *(undefined4 *)((int)puVar5 + 0x2c) = 0x27;\n        }\n        uVar4 = param_3[1];\n        *(undefined4 *)((int)puVar5 + 0x14) = 0xffffffff;\n        *(uint *)(puVar5 + 1) = uVar4;\n        *(uint *)((int)puVar5 + 0xc) = param_3[2];\n        return 1;\n      }\n      goto LAB_0005adde;\n    }" ({ "{") (expression_statement "puVar5 = (undefined8 *)*param_2;" (assignment_expression "puVar5 = (undefined8 *)*param_2" (identifier "puVar5") (= "=") (cast_expression "(undefined8 *)*param_2" (( "(") (type_descriptor "undefined8 *" (type_identifier "undefined8") (abstract_pointer_declarator "*" (* "*"))) () ")") (pointer_expression "*param_2" (* "*") (identifier "param_2")))) (; ";")) (if_statement "if (*(int *)(puVar5 + 2) == 1) {\n        if ((*(uint *)((int)puVar5 + 0x2c) & 5) == 5) {\n          free(*(void **)(puVar5 + 1));\n        }\n        FUN_000660c0(puVar5);\n        if ((*(byte *)((int)puVar5 + 0x2d) & 2) != 0) {\n          FUN_00067810(puVar5);\n        }\n        uVar4 = *param_3;\n        *(undefined4 *)((int)puVar5 + 0x2c) = 7;\n        *puVar5 = 0;\n        if (uVar4 == 4) {\n          *(undefined4 *)((int)puVar5 + 0x2c) = 0x27;\n        }\n        uVar4 = param_3[1];\n        *(undefined4 *)((int)puVar5 + 0x14) = 0xffffffff;\n        *(uint *)(puVar5 + 1) = uVar4;\n        *(uint *)((int)puVar5 + 0xc) = param_3[2];\n        return 1;\n      }" (if "if") (parenthesized_expression "(*(int *)(puVar5 + 2) == 1)" (( "(") (binary_expression "*(int *)(puVar5 + 2) == 1" (pointer_expression "*(int *)(puVar5 + 2)" (* "*") (cast_expression "(int *)(puVar5 + 2)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(puVar5 + 2)" (( "(") (binary_expression "puVar5 + 2" (identifier "puVar5") (+ "+") (number_literal "2")) () ")")))) (== "==") (number_literal "1")) () ")")) (compound_statement "{\n        if ((*(uint *)((int)puVar5 + 0x2c) & 5) == 5) {\n          free(*(void **)(puVar5 + 1));\n        }\n        FUN_000660c0(puVar5);\n        if ((*(byte *)((int)puVar5 + 0x2d) & 2) != 0) {\n          FUN_00067810(puVar5);\n        }\n        uVar4 = *param_3;\n        *(undefined4 *)((int)puVar5 + 0x2c) = 7;\n        *puVar5 = 0;\n        if (uVar4 == 4) {\n          *(undefined4 *)((int)puVar5 + 0x2c) = 0x27;\n        }\n        uVar4 = param_3[1];\n        *(undefined4 *)((int)puVar5 + 0x14) = 0xffffffff;\n        *(uint *)(puVar5 + 1) = uVar4;\n        *(uint *)((int)puVar5 + 0xc) = param_3[2];\n        return 1;\n      }" ({ "{") (if_statement "if ((*(uint *)((int)puVar5 + 0x2c) & 5) == 5) {\n          free(*(void **)(puVar5 + 1));\n        }" (if "if") (parenthesized_expression "((*(uint *)((int)puVar5 + 0x2c) & 5) == 5)" (( "(") (binary_expression "(*(uint *)((int)puVar5 + 0x2c) & 5) == 5" (parenthesized_expression "(*(uint *)((int)puVar5 + 0x2c) & 5)" (( "(") (binary_expression "*(uint *)((int)puVar5 + 0x2c) & 5" (pointer_expression "*(uint *)((int)puVar5 + 0x2c)" (* "*") (cast_expression "(uint *)((int)puVar5 + 0x2c)" (( "(") (type_descriptor "uint *" (type_identifier "uint") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "((int)puVar5 + 0x2c)" (( "(") (binary_expression "(int)puVar5 + 0x2c" (cast_expression "(int)puVar5" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (identifier "puVar5")) (+ "+") (number_literal "0x2c")) () ")")))) (& "&") (number_literal "5")) () ")")) (== "==") (number_literal "5")) () ")")) (compound_statement "{\n          free(*(void **)(puVar5 + 1));\n        }" ({ "{") (expression_statement "free(*(void **)(puVar5 + 1));" (call_expression "free(*(void **)(puVar5 + 1))" (identifier "free") (argument_list "(*(void **)(puVar5 + 1))" (( "(") (pointer_expression "*(void **)(puVar5 + 1)" (* "*") (cast_expression "(void **)(puVar5 + 1)" (( "(") (type_descriptor "void **" (primitive_type "void") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (parenthesized_expression "(puVar5 + 1)" (( "(") (binary_expression "puVar5 + 1" (identifier "puVar5") (+ "+") (number_literal "1")) () ")")))) () ")"))) (; ";")) (} "}"))) (expression_statement "FUN_000660c0(puVar5);" (call_expression "FUN_000660c0(puVar5)" (identifier "FUN_000660c0") (argument_list "(puVar5)" (( "(") (identifier "puVar5") () ")"))) (; ";")) (if_statement "if ((*(byte *)((int)puVar5 + 0x2d) & 2) != 0) {\n          FUN_00067810(puVar5);\n        }" (if "if") (parenthesized_expression "((*(byte *)((int)puVar5 + 0x2d) & 2) != 0)" (( "(") (binary_expression "(*(byte *)((int)puVar5 + 0x2d) & 2) != 0" (parenthesized_expression "(*(byte *)((int)puVar5 + 0x2d) & 2)" (( "(") (binary_expression "*(byte *)((int)puVar5 + 0x2d) & 2" (pointer_expression "*(byte *)((int)puVar5 + 0x2d)" (* "*") (cast_expression "(byte *)((int)puVar5 + 0x2d)" (( "(") (type_descriptor "byte *" (type_identifier "byte") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "((int)puVar5 + 0x2d)" (( "(") (binary_expression "(int)puVar5 + 0x2d" (cast_expression "(int)puVar5" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (identifier "puVar5")) (+ "+") (number_literal "0x2d")) () ")")))) (& "&") (number_literal "2")) () ")")) (!= "!=") (number_literal "0")) () ")")) (compound_statement "{\n          FUN_00067810(puVar5);\n        }" ({ "{") (expression_statement "FUN_00067810(puVar5);" (call_expression "FUN_00067810(puVar5)" (identifier "FUN_00067810") (argument_list "(puVar5)" (( "(") (identifier "puVar5") () ")"))) (; ";")) (} "}"))) (expression_statement "uVar4 = *param_3;" (assignment_expression "uVar4 = *param_3" (identifier "uVar4") (= "=") (pointer_expression "*param_3" (* "*") (identifier "param_3"))) (; ";")) (expression_statement "*(undefined4 *)((int)puVar5 + 0x2c) = 7;" (assignment_expression "*(undefined4 *)((int)puVar5 + 0x2c) = 7" (pointer_expression "*(undefined4 *)((int)puVar5 + 0x2c)" (* "*") (cast_expression "(undefined4 *)((int)puVar5 + 0x2c)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "((int)puVar5 + 0x2c)" (( "(") (binary_expression "(int)puVar5 + 0x2c" (cast_expression "(int)puVar5" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (identifier "puVar5")) (+ "+") (number_literal "0x2c")) () ")")))) (= "=") (number_literal "7")) (; ";")) (expression_statement "*puVar5 = 0;" (assignment_expression "*puVar5 = 0" (pointer_expression "*puVar5" (* "*") (identifier "puVar5")) (= "=") (number_literal "0")) (; ";")) (if_statement "if (uVar4 == 4) {\n          *(undefined4 *)((int)puVar5 + 0x2c) = 0x27;\n        }" (if "if") (parenthesized_expression "(uVar4 == 4)" (( "(") (binary_expression "uVar4 == 4" (identifier "uVar4") (== "==") (number_literal "4")) () ")")) (compound_statement "{\n          *(undefined4 *)((int)puVar5 + 0x2c) = 0x27;\n        }" ({ "{") (expression_statement "*(undefined4 *)((int)puVar5 + 0x2c) = 0x27;" (assignment_expression "*(undefined4 *)((int)puVar5 + 0x2c) = 0x27" (pointer_expression "*(undefined4 *)((int)puVar5 + 0x2c)" (* "*") (cast_expression "(undefined4 *)((int)puVar5 + 0x2c)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "((int)puVar5 + 0x2c)" (( "(") (binary_expression "(int)puVar5 + 0x2c" (cast_expression "(int)puVar5" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (identifier "puVar5")) (+ "+") (number_literal "0x2c")) () ")")))) (= "=") (number_literal "0x27")) (; ";")) (} "}"))) (expression_statement "uVar4 = param_3[1];" (assignment_expression "uVar4 = param_3[1]" (identifier "uVar4") (= "=") (subscript_expression "param_3[1]" (identifier "param_3") ([ "[") (number_literal "1") (] "]"))) (; ";")) (expression_statement "*(undefined4 *)((int)puVar5 + 0x14) = 0xffffffff;" (assignment_expression "*(undefined4 *)((int)puVar5 + 0x14) = 0xffffffff" (pointer_expression "*(undefined4 *)((int)puVar5 + 0x14)" (* "*") (cast_expression "(undefined4 *)((int)puVar5 + 0x14)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "((int)puVar5 + 0x14)" (( "(") (binary_expression "(int)puVar5 + 0x14" (cast_expression "(int)puVar5" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (identifier "puVar5")) (+ "+") (number_literal "0x14")) () ")")))) (= "=") (number_literal "0xffffffff")) (; ";")) (expression_statement "*(uint *)(puVar5 + 1) = uVar4;" (assignment_expression "*(uint *)(puVar5 + 1) = uVar4" (pointer_expression "*(uint *)(puVar5 + 1)" (* "*") (cast_expression "(uint *)(puVar5 + 1)" (( "(") (type_descriptor "uint *" (type_identifier "uint") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(puVar5 + 1)" (( "(") (binary_expression "puVar5 + 1" (identifier "puVar5") (+ "+") (number_literal "1")) () ")")))) (= "=") (identifier "uVar4")) (; ";")) (expression_statement "*(uint *)((int)puVar5 + 0xc) = param_3[2];" (assignment_expression "*(uint *)((int)puVar5 + 0xc) = param_3[2]" (pointer_expression "*(uint *)((int)puVar5 + 0xc)" (* "*") (cast_expression "(uint *)((int)puVar5 + 0xc)" (( "(") (type_descriptor "uint *" (type_identifier "uint") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "((int)puVar5 + 0xc)" (( "(") (binary_expression "(int)puVar5 + 0xc" (cast_expression "(int)puVar5" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (identifier "puVar5")) (+ "+") (number_literal "0xc")) () ")")))) (= "=") (subscript_expression "param_3[2]" (identifier "param_3") ([ "[") (number_literal "2") (] "]"))) (; ";")) (return_statement "return 1;" (return "return") (number_literal "1") (; ";")) (} "}"))) (goto_statement "goto LAB_0005adde;" (goto "goto") (statement_identifier "LAB_0005adde") (; ";")) (} "}"))) (if_statement "if ((uVar4 & 2) == 0) {\n      return 0;\n    }" (if "if") (parenthesized_expression "((uVar4 & 2) == 0)" (( "(") (binary_expression "(uVar4 & 2) == 0" (parenthesized_expression "(uVar4 & 2)" (( "(") (binary_expression "uVar4 & 2" (identifier "uVar4") (& "&") (number_literal "2")) () ")")) (== "==") (number_literal "0")) () ")")) (compound_statement "{\n      return 0;\n    }" ({ "{") (return_statement "return 0;" (return "return") (number_literal "0") (; ";")) (} "}"))) (expression_statement "puVar5 = (undefined8 *)*param_2;" (assignment_expression "puVar5 = (undefined8 *)*param_2" (identifier "puVar5") (= "=") (cast_expression "(undefined8 *)*param_2" (( "(") (type_descriptor "undefined8 *" (type_identifier "undefined8") (abstract_pointer_declarator "*" (* "*"))) () ")") (pointer_expression "*param_2" (* "*") (identifier "param_2")))) (; ";")) (if_statement "if (*(int *)(puVar5 + 2) != 1) goto LAB_0005adde;" (if "if") (parenthesized_expression "(*(int *)(puVar5 + 2) != 1)" (( "(") (binary_expression "*(int *)(puVar5 + 2) != 1" (pointer_expression "*(int *)(puVar5 + 2)" (* "*") (cast_expression "(int *)(puVar5 + 2)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(puVar5 + 2)" (( "(") (binary_expression "puVar5 + 2" (identifier "puVar5") (+ "+") (number_literal "2")) () ")")))) (!= "!=") (number_literal "1")) () ")")) (goto_statement "goto LAB_0005adde;" (goto "goto") (statement_identifier "LAB_0005adde") (; ";"))) (if_statement "if ((_DAT_000c3760 & 0x8000) == 0) {\n      uVar4 = *(uint *)((int)puVar5 + 0x2c);\n      if ((uVar4 & 5) == 5) {\n        free(*(void **)(puVar5 + 1));\n        uVar4 = *(uint *)((int)puVar5 + 0x2c);\n      }\n      if ((uVar4 & 0x200) != 0) {\n        FUN_00067810(puVar5);\n      }\n      uVar1 = *(undefined8 *)(param_3 + 1);\n      *(undefined4 *)((int)puVar5 + 0x2c) = 0x19;\n      *(undefined4 *)(puVar5 + 1) = 0;\n      *(undefined4 *)((int)puVar5 + 0xc) = 0;\n      *puVar5 = uVar1;\n      return 1;\n    }" (if "if") (parenthesized_expression "((_DAT_000c3760 & 0x8000) == 0)" (( "(") (binary_expression "(_DAT_000c3760 & 0x8000) == 0" (parenthesized_expression "(_DAT_000c3760 & 0x8000)" (( "(") (binary_expression "_DAT_000c3760 & 0x8000" (identifier "_DAT_000c3760") (& "&") (number_literal "0x8000")) () ")")) (== "==") (number_literal "0")) () ")")) (compound_statement "{\n      uVar4 = *(uint *)((int)puVar5 + 0x2c);\n      if ((uVar4 & 5) == 5) {\n        free(*(void **)(puVar5 + 1));\n        uVar4 = *(uint *)((int)puVar5 + 0x2c);\n      }\n      if ((uVar4 & 0x200) != 0) {\n        FUN_00067810(puVar5);\n      }\n      uVar1 = *(undefined8 *)(param_3 + 1);\n      *(undefined4 *)((int)puVar5 + 0x2c) = 0x19;\n      *(undefined4 *)(puVar5 + 1) = 0;\n      *(undefined4 *)((int)puVar5 + 0xc) = 0;\n      *puVar5 = uVar1;\n      return 1;\n    }" ({ "{") (expression_statement "uVar4 = *(uint *)((int)puVar5 + 0x2c);" (assignment_expression "uVar4 = *(uint *)((int)puVar5 + 0x2c)" (identifier "uVar4") (= "=") (pointer_expression "*(uint *)((int)puVar5 + 0x2c)" (* "*") (cast_expression "(uint *)((int)puVar5 + 0x2c)" (( "(") (type_descriptor "uint *" (type_identifier "uint") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "((int)puVar5 + 0x2c)" (( "(") (binary_expression "(int)puVar5 + 0x2c" (cast_expression "(int)puVar5" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (identifier "puVar5")) (+ "+") (number_literal "0x2c")) () ")"))))) (; ";")) (if_statement "if ((uVar4 & 5) == 5) {\n        free(*(void **)(puVar5 + 1));\n        uVar4 = *(uint *)((int)puVar5 + 0x2c);\n      }" (if "if") (parenthesized_expression "((uVar4 & 5) == 5)" (( "(") (binary_expression "(uVar4 & 5) == 5" (parenthesized_expression "(uVar4 & 5)" (( "(") (binary_expression "uVar4 & 5" (identifier "uVar4") (& "&") (number_literal "5")) () ")")) (== "==") (number_literal "5")) () ")")) (compound_statement "{\n        free(*(void **)(puVar5 + 1));\n        uVar4 = *(uint *)((int)puVar5 + 0x2c);\n      }" ({ "{") (expression_statement "free(*(void **)(puVar5 + 1));" (call_expression "free(*(void **)(puVar5 + 1))" (identifier "free") (argument_list "(*(void **)(puVar5 + 1))" (( "(") (pointer_expression "*(void **)(puVar5 + 1)" (* "*") (cast_expression "(void **)(puVar5 + 1)" (( "(") (type_descriptor "void **" (primitive_type "void") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (parenthesized_expression "(puVar5 + 1)" (( "(") (binary_expression "puVar5 + 1" (identifier "puVar5") (+ "+") (number_literal "1")) () ")")))) () ")"))) (; ";")) (expression_statement "uVar4 = *(uint *)((int)puVar5 + 0x2c);" (assignment_expression "uVar4 = *(uint *)((int)puVar5 + 0x2c)" (identifier "uVar4") (= "=") (pointer_expression "*(uint *)((int)puVar5 + 0x2c)" (* "*") (cast_expression "(uint *)((int)puVar5 + 0x2c)" (( "(") (type_descriptor "uint *" (type_identifier "uint") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "((int)puVar5 + 0x2c)" (( "(") (binary_expression "(int)puVar5 + 0x2c" (cast_expression "(int)puVar5" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (identifier "puVar5")) (+ "+") (number_literal "0x2c")) () ")"))))) (; ";")) (} "}"))) (if_statement "if ((uVar4 & 0x200) != 0) {\n        FUN_00067810(puVar5);\n      }" (if "if") (parenthesized_expression "((uVar4 & 0x200) != 0)" (( "(") (binary_expression "(uVar4 & 0x200) != 0" (parenthesized_expression "(uVar4 & 0x200)" (( "(") (binary_expression "uVar4 & 0x200" (identifier "uVar4") (& "&") (number_literal "0x200")) () ")")) (!= "!=") (number_literal "0")) () ")")) (compound_statement "{\n        FUN_00067810(puVar5);\n      }" ({ "{") (expression_statement "FUN_00067810(puVar5);" (call_expression "FUN_00067810(puVar5)" (identifier "FUN_00067810") (argument_list "(puVar5)" (( "(") (identifier "puVar5") () ")"))) (; ";")) (} "}"))) (expression_statement "uVar1 = *(undefined8 *)(param_3 + 1);" (assignment_expression "uVar1 = *(undefined8 *)(param_3 + 1)" (identifier "uVar1") (= "=") (pointer_expression "*(undefined8 *)(param_3 + 1)" (* "*") (cast_expression "(undefined8 *)(param_3 + 1)" (( "(") (type_descriptor "undefined8 *" (type_identifier "undefined8") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_3 + 1)" (( "(") (binary_expression "param_3 + 1" (identifier "param_3") (+ "+") (number_literal "1")) () ")"))))) (; ";")) (expression_statement "*(undefined4 *)((int)puVar5 + 0x2c) = 0x19;" (assignment_expression "*(undefined4 *)((int)puVar5 + 0x2c) = 0x19" (pointer_expression "*(undefined4 *)((int)puVar5 + 0x2c)" (* "*") (cast_expression "(undefined4 *)((int)puVar5 + 0x2c)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "((int)puVar5 + 0x2c)" (( "(") (binary_expression "(int)puVar5 + 0x2c" (cast_expression "(int)puVar5" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (identifier "puVar5")) (+ "+") (number_literal "0x2c")) () ")")))) (= "=") (number_literal "0x19")) (; ";")) (expression_statement "*(undefined4 *)(puVar5 + 1) = 0;" (assignment_expression "*(undefined4 *)(puVar5 + 1) = 0" (pointer_expression "*(undefined4 *)(puVar5 + 1)" (* "*") (cast_expression "(undefined4 *)(puVar5 + 1)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(puVar5 + 1)" (( "(") (binary_expression "puVar5 + 1" (identifier "puVar5") (+ "+") (number_literal "1")) () ")")))) (= "=") (number_literal "0")) (; ";")) (expression_statement "*(undefined4 *)((int)puVar5 + 0xc) = 0;" (assignment_expression "*(undefined4 *)((int)puVar5 + 0xc) = 0" (pointer_expression "*(undefined4 *)((int)puVar5 + 0xc)" (* "*") (cast_expression "(undefined4 *)((int)puVar5 + 0xc)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "((int)puVar5 + 0xc)" (( "(") (binary_expression "(int)puVar5 + 0xc" (cast_expression "(int)puVar5" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (identifier "puVar5")) (+ "+") (number_literal "0xc")) () ")")))) (= "=") (number_literal "0")) (; ";")) (expression_statement "*puVar5 = uVar1;" (assignment_expression "*puVar5 = uVar1" (pointer_expression "*puVar5" (* "*") (identifier "puVar5")) (= "=") (identifier "uVar1")) (; ";")) (return_statement "return 1;" (return "return") (number_literal "1") (; ";")) (} "}"))) (expression_statement "*(undefined4 *)(puVar5 + 2) = 0;" (assignment_expression "*(undefined4 *)(puVar5 + 2) = 0" (pointer_expression "*(undefined4 *)(puVar5 + 2)" (* "*") (cast_expression "(undefined4 *)(puVar5 + 2)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(puVar5 + 2)" (( "(") (binary_expression "puVar5 + 2" (identifier "puVar5") (+ "+") (number_literal "2")) () ")")))) (= "=") (number_literal "0")) (; ";")) (} "}")) (else_clause "else {\n    puVar5 = (undefined8 *)*param_2;\n    if (puVar5 == (undefined8 *)0x0) goto LAB_0005adeb;\nLAB_0005adde:\n    iVar2 = *(int *)(puVar5 + 2);\n    *(int *)(puVar5 + 2) = iVar2 + -1;\n    if (0 < iVar2 + -1) goto LAB_0005adeb;\n  }" (else "else") (compound_statement "{\n    puVar5 = (undefined8 *)*param_2;\n    if (puVar5 == (undefined8 *)0x0) goto LAB_0005adeb;\nLAB_0005adde:\n    iVar2 = *(int *)(puVar5 + 2);\n    *(int *)(puVar5 + 2) = iVar2 + -1;\n    if (0 < iVar2 + -1) goto LAB_0005adeb;\n  }" ({ "{") (expression_statement "puVar5 = (undefined8 *)*param_2;" (assignment_expression "puVar5 = (undefined8 *)*param_2" (identifier "puVar5") (= "=") (cast_expression "(undefined8 *)*param_2" (( "(") (type_descriptor "undefined8 *" (type_identifier "undefined8") (abstract_pointer_declarator "*" (* "*"))) () ")") (pointer_expression "*param_2" (* "*") (identifier "param_2")))) (; ";")) (if_statement "if (puVar5 == (undefined8 *)0x0) goto LAB_0005adeb;" (if "if") (parenthesized_expression "(puVar5 == (undefined8 *)0x0)" (( "(") (binary_expression "puVar5 == (undefined8 *)0x0" (identifier "puVar5") (== "==") (cast_expression "(undefined8 *)0x0" (( "(") (type_descriptor "undefined8 *" (type_identifier "undefined8") (abstract_pointer_declarator "*" (* "*"))) () ")") (number_literal "0x0"))) () ")")) (goto_statement "goto LAB_0005adeb;" (goto "goto") (statement_identifier "LAB_0005adeb") (; ";"))) (labeled_statement "LAB_0005adde:\n    iVar2 = *(int *)(puVar5 + 2);" (statement_identifier "LAB_0005adde") (: ":") (expression_statement "iVar2 = *(int *)(puVar5 + 2);" (assignment_expression "iVar2 = *(int *)(puVar5 + 2)" (identifier "iVar2") (= "=") (pointer_expression "*(int *)(puVar5 + 2)" (* "*") (cast_expression "(int *)(puVar5 + 2)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(puVar5 + 2)" (( "(") (binary_expression "puVar5 + 2" (identifier "puVar5") (+ "+") (number_literal "2")) () ")"))))) (; ";"))) (expression_statement "*(int *)(puVar5 + 2) = iVar2 + -1;" (assignment_expression "*(int *)(puVar5 + 2) = iVar2 + -1" (pointer_expression "*(int *)(puVar5 + 2)" (* "*") (cast_expression "(int *)(puVar5 + 2)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(puVar5 + 2)" (( "(") (binary_expression "puVar5 + 2" (identifier "puVar5") (+ "+") (number_literal "2")) () ")")))) (= "=") (binary_expression "iVar2 + -1" (identifier "iVar2") (+ "+") (number_literal "-1"))) (; ";")) (if_statement "if (0 < iVar2 + -1) goto LAB_0005adeb;" (if "if") (parenthesized_expression "(0 < iVar2 + -1)" (( "(") (binary_expression "0 < iVar2 + -1" (number_literal "0") (< "<") (binary_expression "iVar2 + -1" (identifier "iVar2") (+ "+") (number_literal "-1"))) () ")")) (goto_statement "goto LAB_0005adeb;" (goto "goto") (statement_identifier "LAB_0005adeb") (; ";"))) (} "}")))) (expression_statement "FUN_000668b0(puVar5);" (call_expression "FUN_000668b0(puVar5)" (identifier "FUN_000668b0") (argument_list "(puVar5)" (( "(") (identifier "puVar5") () ")"))) (; ";")) (labeled_statement "LAB_0005adeb:\n  uVar3 = FUN_0005a7e0(param_3);" (statement_identifier "LAB_0005adeb") (: ":") (expression_statement "uVar3 = FUN_0005a7e0(param_3);" (assignment_expression "uVar3 = FUN_0005a7e0(param_3)" (identifier "uVar3") (= "=") (call_expression "FUN_0005a7e0(param_3)" (identifier "FUN_0005a7e0") (argument_list "(param_3)" (( "(") (identifier "param_3") () ")")))) (; ";"))) (expression_statement "*param_2 = uVar3;" (assignment_expression "*param_2 = uVar3" (pointer_expression "*param_2" (* "*") (identifier "param_2")) (= "=") (identifier "uVar3")) (; ";")) (return_statement "return 1;" (return "return") (number_literal "1") (; ";")) (} "}")))

/* WARNING: Function: __x86.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */
/* WARNING: Unknown calling convention */

type_1 function_1(type_2 id,type_3 var_2,type_4 *var_1)

{
  type_5 aVar1;
  char *pcVar2;
  type_6 var_8;
  type_7 var_12;
  type_8 *var_11;
  type_9 var_4;
  
  if (var_1 == (type_4 *)0x0) {
    return awk_false;
  }
  if (var_2 == (type_3)0x0) {
    return awk_false;
  }
  if (*(int *)((int)var_2 + 0x28) != 4) {
    return awk_false;
  }
  if ((*(type_9 *)((int)var_2 + 0x2c) & 0x1000) != 0) {
    return awk_false;
  }
  if (var_3 < var_1->val_type) {
    return awk_false;
  }
  var_4 = 1 << ((type_10)var_1->val_type & 0x1f);
  if ((var_4 & 0xc9) == 0) {
    if ((var_4 & 0x14) != 0) {
                    /* WARNING: Load size is inaccurate */
      var_11 = *var_2;
      if ((var_11->sub).nodep.name == (char *)0x1) {
        if ((var_11->flags & 5) == 5) {
          var_5((var_11->sub).val.sp);
        }
        var_6(var_11);
        if ((var_11->flags & 0x200) != 0) {
          var_7(var_11);
        }
        var_8 = var_1->val_type;
        var_11->flags = 7;
        (var_11->sub).val.fltnum = 0.0;
        if (var_8 == var_9) {
          var_11->flags = 0x27;
        }
        pcVar2 = (var_1->u).s.str;
        (var_11->sub).nodep.reserved = 0xffffffff;
        (var_11->sub).val.sp = pcVar2;
        (var_11->sub).nodep.x = (anon_union_4_4_38bfafa6_for_x)(var_1->u).s.len;
        return awk_true;
      }
      goto LAB_0005adde;
    }
    if ((var_4 & 2) == 0) {
      return awk_false;
    }
                    /* WARNING: Load size is inaccurate */
    var_11 = *var_2;
    if ((var_11->sub).nodep.name != (char *)0x1) goto LAB_0005adde;
    if ((var_10 & 0x8000U) == 0) {
      var_4 = var_11->flags;
      if ((var_4 & 5) == 5) {
        var_5((var_11->sub).val.sp);
        var_4 = var_11->flags;
      }
      if ((var_4 & 0x200) != 0) {
        var_7(var_11);
      }
      aVar1 = (var_1->u).s;
      var_11->flags = 0x19;
      (var_11->sub).val.sp = (char *)0x0;
      (var_11->sub).val.slen = 0;
      (var_11->sub).val.fltnum = (double)aVar1;
      return awk_true;
    }
    (var_11->sub).nodep.name = (char *)0x0;
  }
  else {
                    /* WARNING: Load size is inaccurate */
    var_11 = *var_2;
    if (var_11 == (type_8 *)0x0) goto LAB_0005adeb;
LAB_0005adde:
    var_12 = (var_11->sub).val.sref + L'\xffffffff';
    (var_11->sub).val.sref = var_12;
    if (L'\0' < var_12) goto LAB_0005adeb;
  }
  var_13(var_11);
LAB_0005adeb:
  var_11 = var_14(var_1);
  *(type_8 **)var_2 = var_11;
  return awk_true;
}


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

/* WARNING: Function: __i686.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */
/* WARNING: Globals starting with '_' overlap smaller symbols at the same address */

undefined4 MASKED(undefined4 param_1,undefined4 *param_2,uint *param_3)

{
  undefined8 uVar1;
  int iVar2;
  undefined4 uVar3;
  uint uVar4;
  undefined8 *puVar5;
  
  if (param_3 == (uint *)0x0) {
    return 0;
  }
  if (param_2 == (undefined4 *)0x0) {
    return 0;
  }
  if (param_2[10] != 4) {
    return 0;
  }
  if ((param_2[0xb] & 0x1000) != 0) {
    return 0;
  }
  if (7 < *param_3) {
    return 0;
  }
  uVar4 = 1 << ((byte)*param_3 & 0x1f);
  if ((uVar4 & 0xc9) == 0) {
    if ((uVar4 & 0x14) != 0) {
      puVar5 = (undefined8 *)*param_2;
      if (*(int *)(puVar5 + 2) == 1) {
        if ((*(uint *)((int)puVar5 + 0x2c) & 5) == 5) {
          free(*(void **)(puVar5 + 1));
        }
        FUN_000660c0(puVar5);
        if ((*(byte *)((int)puVar5 + 0x2d) & 2) != 0) {
          FUN_00067810(puVar5);
        }
        uVar4 = *param_3;
        *(undefined4 *)((int)puVar5 + 0x2c) = 7;
        *puVar5 = 0;
        if (uVar4 == 4) {
          *(undefined4 *)((int)puVar5 + 0x2c) = 0x27;
        }
        uVar4 = param_3[1];
        *(undefined4 *)((int)puVar5 + 0x14) = 0xffffffff;
        *(uint *)(puVar5 + 1) = uVar4;
        *(uint *)((int)puVar5 + 0xc) = param_3[2];
        return 1;
      }
      goto LAB_0005adde;
    }
    if ((uVar4 & 2) == 0) {
      return 0;
    }
    puVar5 = (undefined8 *)*param_2;
    if (*(int *)(puVar5 + 2) != 1) goto LAB_0005adde;
    if ((_DAT_000c3760 & 0x8000) == 0) {
      uVar4 = *(uint *)((int)puVar5 + 0x2c);
      if ((uVar4 & 5) == 5) {
        free(*(void **)(puVar5 + 1));
        uVar4 = *(uint *)((int)puVar5 + 0x2c);
      }
      if ((uVar4 & 0x200) != 0) {
        FUN_00067810(puVar5);
      }
      uVar1 = *(undefined8 *)(param_3 + 1);
      *(undefined4 *)((int)puVar5 + 0x2c) = 0x19;
      *(undefined4 *)(puVar5 + 1) = 0;
      *(undefined4 *)((int)puVar5 + 0xc) = 0;
      *puVar5 = uVar1;
      return 1;
    }
    *(undefined4 *)(puVar5 + 2) = 0;
  }
  else {
    puVar5 = (undefined8 *)*param_2;
    if (puVar5 == (undefined8 *)0x0) goto LAB_0005adeb;
LAB_0005adde:
    iVar2 = *(int *)(puVar5 + 2);
    *(int *)(puVar5 + 2) = iVar2 + -1;
    if (0 < iVar2 + -1) goto LAB_0005adeb;
  }
  FUN_000668b0(puVar5);
LAB_0005adeb:
  uVar3 = FUN_0005a7e0(param_3);
  *param_2 = uVar3;
  return 1;
}

