
reg_errcode_t calc_first(void *extra,bin_tree_t *node)

{
  re_token_t token;
  reg_errcode_t rVar1;
  Idx IVar2;
  undefined4 unaff_EBX;
  anon_union_4_5_a39f51ca_for_opr in_stack_fffffff4;
  
  if ((node->token).field_0x4 == '\x10') {
    IVar2 = node->left->node_idx;
    node->first = node->left->first;
    node->node_idx = IVar2;
    rVar1 = _REG_NOERROR;
  }
  else {
    node->first = node;
    token._4_4_ = unaff_EBX;
    token.opr.sbcset = in_stack_fffffff4.sbcset;
    IVar2 = re_dfa_add_node((re_dfa_t *)extra,token);
    node->node_idx = IVar2;
    if (IVar2 == -1) {
      rVar1 = _REG_ESPACE;
    }
    else {
      rVar1 = _REG_NOERROR;
      if ((node->token).field_0x4 == '\f') {
                    /* WARNING: Load size is inaccurate */
        *(re_context_type *)(*extra + 4 + IVar2 * 8) =
             *(uint *)(*extra + 4 + IVar2 * 8) & 0xfffc00ff |
             ((node->token).opr.ctx_type & 0x3ff) << 8;
        return rVar1;
      }
    }
  }
  return rVar1;
}



undefined4 FUN_0001f5c0(int *param_1,int param_2)

{
  undefined4 uVar1;
  int iVar2;
  
  if (*(char *)(param_2 + 0x18) == '\x10') {
    uVar1 = *(undefined4 *)(*(int *)(param_2 + 4) + 0x1c);
    *(undefined4 *)(param_2 + 0xc) = *(undefined4 *)(*(int *)(param_2 + 4) + 0xc);
    *(undefined4 *)(param_2 + 0x1c) = uVar1;
    uVar1 = 0;
  }
  else {
    *(int *)(param_2 + 0xc) = param_2;
    iVar2 = FUN_0001b480();
    *(int *)(param_2 + 0x1c) = iVar2;
    if (iVar2 == -1) {
      uVar1 = 0xc;
    }
    else {
      uVar1 = 0;
      if (*(char *)(param_2 + 0x18) == '\f') {
        *(uint *)(*param_1 + 4 + iVar2 * 8) =
             *(uint *)(*param_1 + 4 + iVar2 * 8) & 0xfffc00ff |
             (*(uint *)(param_2 + 0x14) & 0x3ff) << 8;
        return uVar1;
      }
    }
  }
  return uVar1;
}


PUSH ESI
PUSH EBX
SUB ESP,0x4
MOV EBX,dword ptr [ESP + 0x14]
CMP byte ptr [EBX + 0x18],0x10
JNZ 0x0001f5f0
MOV EAX,dword ptr [EBX + 0x4]
MOV EDX,dword ptr [EAX + 0xc]
MOV EAX,dword ptr [EAX + 0x1c]
MOV dword ptr [EBX + 0xc],EDX
MOV dword ptr [EBX + 0x1c],EAX
XOR EAX,EAX
ADD ESP,0x4
POP EBX
POP ESI
RET
MOV EDX,dword ptr [EBX + 0x14]
MOV ECX,dword ptr [EBX + 0x18]
MOV dword ptr [EBX + 0xc],EBX
MOV EAX,dword ptr [ESP + 0x10]
CALL 0x0001b480
MOV EDX,EAX
MOV dword ptr [EBX + 0x1c],EAX
CMP EAX,-0x1
JZ 0x0001f640
XOR EAX,EAX
CMP byte ptr [EBX + 0x18],0xc
JNZ 0x0001f5e0
MOV ECX,dword ptr [EBX + 0x14]
MOV ESI,dword ptr [ESP + 0x10]
MOV ESI,dword ptr [ESI]
AND ECX,0x3ff
SHL ECX,0x8
MOV EBX,ECX
MOV ECX,dword ptr [ESI + EDX*0x8 + 0x4]
AND ECX,0xfffc00ff
OR ECX,EBX
MOV dword ptr [ESI + EDX*0x8 + 0x4],ECX
ADD ESP,0x4
POP EBX
POP ESI
RET
MOV EAX,0xc
JMP 0x0001f5e0
(translation_unit "undefined4 FUN_0001f5c0(int *param_1,int param_2)\n\n{\n  undefined4 uVar1;\n  int iVar2;\n  \n  if (*(char *)(param_2 + 0x18) == '\x10') {\n    uVar1 = *(undefined4 *)(*(int *)(param_2 + 4) + 0x1c);\n    *(undefined4 *)(param_2 + 0xc) = *(undefined4 *)(*(int *)(param_2 + 4) + 0xc);\n    *(undefined4 *)(param_2 + 0x1c) = uVar1;\n    uVar1 = 0;\n  }\n  else {\n    *(int *)(param_2 + 0xc) = param_2;\n    iVar2 = FUN_0001b480();\n    *(int *)(param_2 + 0x1c) = iVar2;\n    if (iVar2 == -1) {\n      uVar1 = 0xc;\n    }\n    else {\n      uVar1 = 0;\n      if (*(char *)(param_2 + 0x18) == '\f') {\n        *(uint *)(*param_1 + 4 + iVar2 * 8) =\n             *(uint *)(*param_1 + 4 + iVar2 * 8) & 0xfffc00ff |\n             (*(uint *)(param_2 + 0x14) & 0x3ff) << 8;\n        return uVar1;\n      }\n    }\n  }\n  return uVar1;\n}\n\n" (function_definition "undefined4 FUN_0001f5c0(int *param_1,int param_2)\n\n{\n  undefined4 uVar1;\n  int iVar2;\n  \n  if (*(char *)(param_2 + 0x18) == '\x10') {\n    uVar1 = *(undefined4 *)(*(int *)(param_2 + 4) + 0x1c);\n    *(undefined4 *)(param_2 + 0xc) = *(undefined4 *)(*(int *)(param_2 + 4) + 0xc);\n    *(undefined4 *)(param_2 + 0x1c) = uVar1;\n    uVar1 = 0;\n  }\n  else {\n    *(int *)(param_2 + 0xc) = param_2;\n    iVar2 = FUN_0001b480();\n    *(int *)(param_2 + 0x1c) = iVar2;\n    if (iVar2 == -1) {\n      uVar1 = 0xc;\n    }\n    else {\n      uVar1 = 0;\n      if (*(char *)(param_2 + 0x18) == '\f') {\n        *(uint *)(*param_1 + 4 + iVar2 * 8) =\n             *(uint *)(*param_1 + 4 + iVar2 * 8) & 0xfffc00ff |\n             (*(uint *)(param_2 + 0x14) & 0x3ff) << 8;\n        return uVar1;\n      }\n    }\n  }\n  return uVar1;\n}" type_identifier (function_declarator "FUN_0001f5c0(int *param_1,int param_2)" identifier (parameter_list "(int *param_1,int param_2)" ( (parameter_declaration "int *param_1" primitive_type (pointer_declarator "*param_1" * identifier)) , (parameter_declaration "int param_2" primitive_type identifier) ))) (compound_statement "{\n  undefined4 uVar1;\n  int iVar2;\n  \n  if (*(char *)(param_2 + 0x18) == '\x10') {\n    uVar1 = *(undefined4 *)(*(int *)(param_2 + 4) + 0x1c);\n    *(undefined4 *)(param_2 + 0xc) = *(undefined4 *)(*(int *)(param_2 + 4) + 0xc);\n    *(undefined4 *)(param_2 + 0x1c) = uVar1;\n    uVar1 = 0;\n  }\n  else {\n    *(int *)(param_2 + 0xc) = param_2;\n    iVar2 = FUN_0001b480();\n    *(int *)(param_2 + 0x1c) = iVar2;\n    if (iVar2 == -1) {\n      uVar1 = 0xc;\n    }\n    else {\n      uVar1 = 0;\n      if (*(char *)(param_2 + 0x18) == '\f') {\n        *(uint *)(*param_1 + 4 + iVar2 * 8) =\n             *(uint *)(*param_1 + 4 + iVar2 * 8) & 0xfffc00ff |\n             (*(uint *)(param_2 + 0x14) & 0x3ff) << 8;\n        return uVar1;\n      }\n    }\n  }\n  return uVar1;\n}" { (declaration "undefined4 uVar1;" type_identifier identifier ;) (declaration "int iVar2;" primitive_type identifier ;) (if_statement "if (*(char *)(param_2 + 0x18) == '\x10') {\n    uVar1 = *(undefined4 *)(*(int *)(param_2 + 4) + 0x1c);\n    *(undefined4 *)(param_2 + 0xc) = *(undefined4 *)(*(int *)(param_2 + 4) + 0xc);\n    *(undefined4 *)(param_2 + 0x1c) = uVar1;\n    uVar1 = 0;\n  }\n  else {\n    *(int *)(param_2 + 0xc) = param_2;\n    iVar2 = FUN_0001b480();\n    *(int *)(param_2 + 0x1c) = iVar2;\n    if (iVar2 == -1) {\n      uVar1 = 0xc;\n    }\n    else {\n      uVar1 = 0;\n      if (*(char *)(param_2 + 0x18) == '\f') {\n        *(uint *)(*param_1 + 4 + iVar2 * 8) =\n             *(uint *)(*param_1 + 4 + iVar2 * 8) & 0xfffc00ff |\n             (*(uint *)(param_2 + 0x14) & 0x3ff) << 8;\n        return uVar1;\n      }\n    }\n  }" if (parenthesized_expression "(*(char *)(param_2 + 0x18) == '\x10')" ( (binary_expression "*(char *)(param_2 + 0x18) == '\x10'" (pointer_expression "*(char *)(param_2 + 0x18)" * (cast_expression "(char *)(param_2 + 0x18)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_2 + 0x18)" ( (binary_expression "param_2 + 0x18" identifier + number_literal) )))) == (char_literal "'\x10'" ' escape_sequence ')) )) (compound_statement "{\n    uVar1 = *(undefined4 *)(*(int *)(param_2 + 4) + 0x1c);\n    *(undefined4 *)(param_2 + 0xc) = *(undefined4 *)(*(int *)(param_2 + 4) + 0xc);\n    *(undefined4 *)(param_2 + 0x1c) = uVar1;\n    uVar1 = 0;\n  }" { (expression_statement "uVar1 = *(undefined4 *)(*(int *)(param_2 + 4) + 0x1c);" (assignment_expression "uVar1 = *(undefined4 *)(*(int *)(param_2 + 4) + 0x1c)" identifier = (pointer_expression "*(undefined4 *)(*(int *)(param_2 + 4) + 0x1c)" * (cast_expression "(undefined4 *)(*(int *)(param_2 + 4) + 0x1c)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(*(int *)(param_2 + 4) + 0x1c)" ( (binary_expression "*(int *)(param_2 + 4) + 0x1c" (pointer_expression "*(int *)(param_2 + 4)" * (cast_expression "(int *)(param_2 + 4)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_2 + 4)" ( (binary_expression "param_2 + 4" identifier + number_literal) )))) + number_literal) ))))) ;) (expression_statement "*(undefined4 *)(param_2 + 0xc) = *(undefined4 *)(*(int *)(param_2 + 4) + 0xc);" (assignment_expression "*(undefined4 *)(param_2 + 0xc) = *(undefined4 *)(*(int *)(param_2 + 4) + 0xc)" (pointer_expression "*(undefined4 *)(param_2 + 0xc)" * (cast_expression "(undefined4 *)(param_2 + 0xc)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_2 + 0xc)" ( (binary_expression "param_2 + 0xc" identifier + number_literal) )))) = (pointer_expression "*(undefined4 *)(*(int *)(param_2 + 4) + 0xc)" * (cast_expression "(undefined4 *)(*(int *)(param_2 + 4) + 0xc)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(*(int *)(param_2 + 4) + 0xc)" ( (binary_expression "*(int *)(param_2 + 4) + 0xc" (pointer_expression "*(int *)(param_2 + 4)" * (cast_expression "(int *)(param_2 + 4)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_2 + 4)" ( (binary_expression "param_2 + 4" identifier + number_literal) )))) + number_literal) ))))) ;) (expression_statement "*(undefined4 *)(param_2 + 0x1c) = uVar1;" (assignment_expression "*(undefined4 *)(param_2 + 0x1c) = uVar1" (pointer_expression "*(undefined4 *)(param_2 + 0x1c)" * (cast_expression "(undefined4 *)(param_2 + 0x1c)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_2 + 0x1c)" ( (binary_expression "param_2 + 0x1c" identifier + number_literal) )))) = identifier) ;) (expression_statement "uVar1 = 0;" (assignment_expression "uVar1 = 0" identifier = number_literal) ;) }) (else_clause "else {\n    *(int *)(param_2 + 0xc) = param_2;\n    iVar2 = FUN_0001b480();\n    *(int *)(param_2 + 0x1c) = iVar2;\n    if (iVar2 == -1) {\n      uVar1 = 0xc;\n    }\n    else {\n      uVar1 = 0;\n      if (*(char *)(param_2 + 0x18) == '\f') {\n        *(uint *)(*param_1 + 4 + iVar2 * 8) =\n             *(uint *)(*param_1 + 4 + iVar2 * 8) & 0xfffc00ff |\n             (*(uint *)(param_2 + 0x14) & 0x3ff) << 8;\n        return uVar1;\n      }\n    }\n  }" else (compound_statement "{\n    *(int *)(param_2 + 0xc) = param_2;\n    iVar2 = FUN_0001b480();\n    *(int *)(param_2 + 0x1c) = iVar2;\n    if (iVar2 == -1) {\n      uVar1 = 0xc;\n    }\n    else {\n      uVar1 = 0;\n      if (*(char *)(param_2 + 0x18) == '\f') {\n        *(uint *)(*param_1 + 4 + iVar2 * 8) =\n             *(uint *)(*param_1 + 4 + iVar2 * 8) & 0xfffc00ff |\n             (*(uint *)(param_2 + 0x14) & 0x3ff) << 8;\n        return uVar1;\n      }\n    }\n  }" { (expression_statement "*(int *)(param_2 + 0xc) = param_2;" (assignment_expression "*(int *)(param_2 + 0xc) = param_2" (pointer_expression "*(int *)(param_2 + 0xc)" * (cast_expression "(int *)(param_2 + 0xc)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_2 + 0xc)" ( (binary_expression "param_2 + 0xc" identifier + number_literal) )))) = identifier) ;) (expression_statement "iVar2 = FUN_0001b480();" (assignment_expression "iVar2 = FUN_0001b480()" identifier = (call_expression "FUN_0001b480()" identifier (argument_list "()" ( )))) ;) (expression_statement "*(int *)(param_2 + 0x1c) = iVar2;" (assignment_expression "*(int *)(param_2 + 0x1c) = iVar2" (pointer_expression "*(int *)(param_2 + 0x1c)" * (cast_expression "(int *)(param_2 + 0x1c)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_2 + 0x1c)" ( (binary_expression "param_2 + 0x1c" identifier + number_literal) )))) = identifier) ;) (if_statement "if (iVar2 == -1) {\n      uVar1 = 0xc;\n    }\n    else {\n      uVar1 = 0;\n      if (*(char *)(param_2 + 0x18) == '\f') {\n        *(uint *)(*param_1 + 4 + iVar2 * 8) =\n             *(uint *)(*param_1 + 4 + iVar2 * 8) & 0xfffc00ff |\n             (*(uint *)(param_2 + 0x14) & 0x3ff) << 8;\n        return uVar1;\n      }\n    }" if (parenthesized_expression "(iVar2 == -1)" ( (binary_expression "iVar2 == -1" identifier == number_literal) )) (compound_statement "{\n      uVar1 = 0xc;\n    }" { (expression_statement "uVar1 = 0xc;" (assignment_expression "uVar1 = 0xc" identifier = number_literal) ;) }) (else_clause "else {\n      uVar1 = 0;\n      if (*(char *)(param_2 + 0x18) == '\f') {\n        *(uint *)(*param_1 + 4 + iVar2 * 8) =\n             *(uint *)(*param_1 + 4 + iVar2 * 8) & 0xfffc00ff |\n             (*(uint *)(param_2 + 0x14) & 0x3ff) << 8;\n        return uVar1;\n      }\n    }" else (compound_statement "{\n      uVar1 = 0;\n      if (*(char *)(param_2 + 0x18) == '\f') {\n        *(uint *)(*param_1 + 4 + iVar2 * 8) =\n             *(uint *)(*param_1 + 4 + iVar2 * 8) & 0xfffc00ff |\n             (*(uint *)(param_2 + 0x14) & 0x3ff) << 8;\n        return uVar1;\n      }\n    }" { (expression_statement "uVar1 = 0;" (assignment_expression "uVar1 = 0" identifier = number_literal) ;) (if_statement "if (*(char *)(param_2 + 0x18) == '\f') {\n        *(uint *)(*param_1 + 4 + iVar2 * 8) =\n             *(uint *)(*param_1 + 4 + iVar2 * 8) & 0xfffc00ff |\n             (*(uint *)(param_2 + 0x14) & 0x3ff) << 8;\n        return uVar1;\n      }" if (parenthesized_expression "(*(char *)(param_2 + 0x18) == '\f')" ( (binary_expression "*(char *)(param_2 + 0x18) == '\f'" (pointer_expression "*(char *)(param_2 + 0x18)" * (cast_expression "(char *)(param_2 + 0x18)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_2 + 0x18)" ( (binary_expression "param_2 + 0x18" identifier + number_literal) )))) == (char_literal "'\f'" ' escape_sequence ')) )) (compound_statement "{\n        *(uint *)(*param_1 + 4 + iVar2 * 8) =\n             *(uint *)(*param_1 + 4 + iVar2 * 8) & 0xfffc00ff |\n             (*(uint *)(param_2 + 0x14) & 0x3ff) << 8;\n        return uVar1;\n      }" { (expression_statement "*(uint *)(*param_1 + 4 + iVar2 * 8) =\n             *(uint *)(*param_1 + 4 + iVar2 * 8) & 0xfffc00ff |\n             (*(uint *)(param_2 + 0x14) & 0x3ff) << 8;" (assignment_expression "*(uint *)(*param_1 + 4 + iVar2 * 8) =\n             *(uint *)(*param_1 + 4 + iVar2 * 8) & 0xfffc00ff |\n             (*(uint *)(param_2 + 0x14) & 0x3ff) << 8" (pointer_expression "*(uint *)(*param_1 + 4 + iVar2 * 8)" * (cast_expression "(uint *)(*param_1 + 4 + iVar2 * 8)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(*param_1 + 4 + iVar2 * 8)" ( (binary_expression "*param_1 + 4 + iVar2 * 8" (binary_expression "*param_1 + 4" (pointer_expression "*param_1" * identifier) + number_literal) + (binary_expression "iVar2 * 8" identifier * number_literal)) )))) = (binary_expression "*(uint *)(*param_1 + 4 + iVar2 * 8) & 0xfffc00ff |\n             (*(uint *)(param_2 + 0x14) & 0x3ff) << 8" (binary_expression "*(uint *)(*param_1 + 4 + iVar2 * 8) & 0xfffc00ff" (pointer_expression "*(uint *)(*param_1 + 4 + iVar2 * 8)" * (cast_expression "(uint *)(*param_1 + 4 + iVar2 * 8)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(*param_1 + 4 + iVar2 * 8)" ( (binary_expression "*param_1 + 4 + iVar2 * 8" (binary_expression "*param_1 + 4" (pointer_expression "*param_1" * identifier) + number_literal) + (binary_expression "iVar2 * 8" identifier * number_literal)) )))) & number_literal) | (binary_expression "(*(uint *)(param_2 + 0x14) & 0x3ff) << 8" (parenthesized_expression "(*(uint *)(param_2 + 0x14) & 0x3ff)" ( (binary_expression "*(uint *)(param_2 + 0x14) & 0x3ff" (pointer_expression "*(uint *)(param_2 + 0x14)" * (cast_expression "(uint *)(param_2 + 0x14)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_2 + 0x14)" ( (binary_expression "param_2 + 0x14" identifier + number_literal) )))) & number_literal) )) << number_literal))) ;) (return_statement "return uVar1;" return identifier ;) })) }))) }))) (return_statement "return uVar1;" return identifier ;) })))
(translation_unit "reg_errcode_t calc_first(void *extra,bin_tree_t *node)\n\n{\n  re_token_t token;\n  reg_errcode_t rVar1;\n  Idx IVar2;\n  undefined4 unaff_EBX;\n  anon_union_4_5_a39f51ca_for_opr in_stack_fffffff4;\n  \n  if ((node->token).field_0x4 == '\x10') {\n    IVar2 = node->left->node_idx;\n    node->first = node->left->first;\n    node->node_idx = IVar2;\n    rVar1 = _REG_NOERROR;\n  }\n  else {\n    node->first = node;\n    token._4_4_ = unaff_EBX;\n    token.opr.sbcset = in_stack_fffffff4.sbcset;\n    IVar2 = re_dfa_add_node((re_dfa_t *)extra,token);\n    node->node_idx = IVar2;\n    if (IVar2 == -1) {\n      rVar1 = _REG_ESPACE;\n    }\n    else {\n      rVar1 = _REG_NOERROR;\n      if ((node->token).field_0x4 == '\f') {\n                    /* WARNING: Load size is inaccurate */\n        *(re_context_type *)(*extra + 4 + IVar2 * 8) =\n             *(uint *)(*extra + 4 + IVar2 * 8) & 0xfffc00ff |\n             ((node->token).opr.ctx_type & 0x3ff) << 8;\n        return rVar1;\n      }\n    }\n  }\n  return rVar1;\n}\n\n" (function_definition "reg_errcode_t calc_first(void *extra,bin_tree_t *node)\n\n{\n  re_token_t token;\n  reg_errcode_t rVar1;\n  Idx IVar2;\n  undefined4 unaff_EBX;\n  anon_union_4_5_a39f51ca_for_opr in_stack_fffffff4;\n  \n  if ((node->token).field_0x4 == '\x10') {\n    IVar2 = node->left->node_idx;\n    node->first = node->left->first;\n    node->node_idx = IVar2;\n    rVar1 = _REG_NOERROR;\n  }\n  else {\n    node->first = node;\n    token._4_4_ = unaff_EBX;\n    token.opr.sbcset = in_stack_fffffff4.sbcset;\n    IVar2 = re_dfa_add_node((re_dfa_t *)extra,token);\n    node->node_idx = IVar2;\n    if (IVar2 == -1) {\n      rVar1 = _REG_ESPACE;\n    }\n    else {\n      rVar1 = _REG_NOERROR;\n      if ((node->token).field_0x4 == '\f') {\n                    /* WARNING: Load size is inaccurate */\n        *(re_context_type *)(*extra + 4 + IVar2 * 8) =\n             *(uint *)(*extra + 4 + IVar2 * 8) & 0xfffc00ff |\n             ((node->token).opr.ctx_type & 0x3ff) << 8;\n        return rVar1;\n      }\n    }\n  }\n  return rVar1;\n}" type_identifier (function_declarator "calc_first(void *extra,bin_tree_t *node)" identifier (parameter_list "(void *extra,bin_tree_t *node)" ( (parameter_declaration "void *extra" primitive_type (pointer_declarator "*extra" * identifier)) , (parameter_declaration "bin_tree_t *node" type_identifier (pointer_declarator "*node" * identifier)) ))) (compound_statement "{\n  re_token_t token;\n  reg_errcode_t rVar1;\n  Idx IVar2;\n  undefined4 unaff_EBX;\n  anon_union_4_5_a39f51ca_for_opr in_stack_fffffff4;\n  \n  if ((node->token).field_0x4 == '\x10') {\n    IVar2 = node->left->node_idx;\n    node->first = node->left->first;\n    node->node_idx = IVar2;\n    rVar1 = _REG_NOERROR;\n  }\n  else {\n    node->first = node;\n    token._4_4_ = unaff_EBX;\n    token.opr.sbcset = in_stack_fffffff4.sbcset;\n    IVar2 = re_dfa_add_node((re_dfa_t *)extra,token);\n    node->node_idx = IVar2;\n    if (IVar2 == -1) {\n      rVar1 = _REG_ESPACE;\n    }\n    else {\n      rVar1 = _REG_NOERROR;\n      if ((node->token).field_0x4 == '\f') {\n                    /* WARNING: Load size is inaccurate */\n        *(re_context_type *)(*extra + 4 + IVar2 * 8) =\n             *(uint *)(*extra + 4 + IVar2 * 8) & 0xfffc00ff |\n             ((node->token).opr.ctx_type & 0x3ff) << 8;\n        return rVar1;\n      }\n    }\n  }\n  return rVar1;\n}" { (declaration "re_token_t token;" type_identifier identifier ;) (declaration "reg_errcode_t rVar1;" type_identifier identifier ;) (declaration "Idx IVar2;" type_identifier identifier ;) (declaration "undefined4 unaff_EBX;" type_identifier identifier ;) (declaration "anon_union_4_5_a39f51ca_for_opr in_stack_fffffff4;" type_identifier identifier ;) (if_statement "if ((node->token).field_0x4 == '\x10') {\n    IVar2 = node->left->node_idx;\n    node->first = node->left->first;\n    node->node_idx = IVar2;\n    rVar1 = _REG_NOERROR;\n  }\n  else {\n    node->first = node;\n    token._4_4_ = unaff_EBX;\n    token.opr.sbcset = in_stack_fffffff4.sbcset;\n    IVar2 = re_dfa_add_node((re_dfa_t *)extra,token);\n    node->node_idx = IVar2;\n    if (IVar2 == -1) {\n      rVar1 = _REG_ESPACE;\n    }\n    else {\n      rVar1 = _REG_NOERROR;\n      if ((node->token).field_0x4 == '\f') {\n                    /* WARNING: Load size is inaccurate */\n        *(re_context_type *)(*extra + 4 + IVar2 * 8) =\n             *(uint *)(*extra + 4 + IVar2 * 8) & 0xfffc00ff |\n             ((node->token).opr.ctx_type & 0x3ff) << 8;\n        return rVar1;\n      }\n    }\n  }" if (parenthesized_expression "((node->token).field_0x4 == '\x10')" ( (binary_expression "(node->token).field_0x4 == '\x10'" (field_expression "(node->token).field_0x4" (parenthesized_expression "(node->token)" ( (field_expression "node->token" identifier -> field_identifier) )) . field_identifier) == (char_literal "'\x10'" ' escape_sequence ')) )) (compound_statement "{\n    IVar2 = node->left->node_idx;\n    node->first = node->left->first;\n    node->node_idx = IVar2;\n    rVar1 = _REG_NOERROR;\n  }" { (expression_statement "IVar2 = node->left->node_idx;" (assignment_expression "IVar2 = node->left->node_idx" identifier = (field_expression "node->left->node_idx" (field_expression "node->left" identifier -> field_identifier) -> field_identifier)) ;) (expression_statement "node->first = node->left->first;" (assignment_expression "node->first = node->left->first" (field_expression "node->first" identifier -> field_identifier) = (field_expression "node->left->first" (field_expression "node->left" identifier -> field_identifier) -> field_identifier)) ;) (expression_statement "node->node_idx = IVar2;" (assignment_expression "node->node_idx = IVar2" (field_expression "node->node_idx" identifier -> field_identifier) = identifier) ;) (expression_statement "rVar1 = _REG_NOERROR;" (assignment_expression "rVar1 = _REG_NOERROR" identifier = identifier) ;) }) (else_clause "else {\n    node->first = node;\n    token._4_4_ = unaff_EBX;\n    token.opr.sbcset = in_stack_fffffff4.sbcset;\n    IVar2 = re_dfa_add_node((re_dfa_t *)extra,token);\n    node->node_idx = IVar2;\n    if (IVar2 == -1) {\n      rVar1 = _REG_ESPACE;\n    }\n    else {\n      rVar1 = _REG_NOERROR;\n      if ((node->token).field_0x4 == '\f') {\n                    /* WARNING: Load size is inaccurate */\n        *(re_context_type *)(*extra + 4 + IVar2 * 8) =\n             *(uint *)(*extra + 4 + IVar2 * 8) & 0xfffc00ff |\n             ((node->token).opr.ctx_type & 0x3ff) << 8;\n        return rVar1;\n      }\n    }\n  }" else (compound_statement "{\n    node->first = node;\n    token._4_4_ = unaff_EBX;\n    token.opr.sbcset = in_stack_fffffff4.sbcset;\n    IVar2 = re_dfa_add_node((re_dfa_t *)extra,token);\n    node->node_idx = IVar2;\n    if (IVar2 == -1) {\n      rVar1 = _REG_ESPACE;\n    }\n    else {\n      rVar1 = _REG_NOERROR;\n      if ((node->token).field_0x4 == '\f') {\n                    /* WARNING: Load size is inaccurate */\n        *(re_context_type *)(*extra + 4 + IVar2 * 8) =\n             *(uint *)(*extra + 4 + IVar2 * 8) & 0xfffc00ff |\n             ((node->token).opr.ctx_type & 0x3ff) << 8;\n        return rVar1;\n      }\n    }\n  }" { (expression_statement "node->first = node;" (assignment_expression "node->first = node" (field_expression "node->first" identifier -> field_identifier) = identifier) ;) (expression_statement "token._4_4_ = unaff_EBX;" (assignment_expression "token._4_4_ = unaff_EBX" (field_expression "token._4_4_" identifier . field_identifier) = identifier) ;) (expression_statement "token.opr.sbcset = in_stack_fffffff4.sbcset;" (assignment_expression "token.opr.sbcset = in_stack_fffffff4.sbcset" (field_expression "token.opr.sbcset" (field_expression "token.opr" identifier . field_identifier) . field_identifier) = (field_expression "in_stack_fffffff4.sbcset" identifier . field_identifier)) ;) (expression_statement "IVar2 = re_dfa_add_node((re_dfa_t *)extra,token);" (assignment_expression "IVar2 = re_dfa_add_node((re_dfa_t *)extra,token)" identifier = (call_expression "re_dfa_add_node((re_dfa_t *)extra,token)" identifier (argument_list "((re_dfa_t *)extra,token)" ( (cast_expression "(re_dfa_t *)extra" ( (type_descriptor "re_dfa_t *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier) , identifier )))) ;) (expression_statement "node->node_idx = IVar2;" (assignment_expression "node->node_idx = IVar2" (field_expression "node->node_idx" identifier -> field_identifier) = identifier) ;) (if_statement "if (IVar2 == -1) {\n      rVar1 = _REG_ESPACE;\n    }\n    else {\n      rVar1 = _REG_NOERROR;\n      if ((node->token).field_0x4 == '\f') {\n                    /* WARNING: Load size is inaccurate */\n        *(re_context_type *)(*extra + 4 + IVar2 * 8) =\n             *(uint *)(*extra + 4 + IVar2 * 8) & 0xfffc00ff |\n             ((node->token).opr.ctx_type & 0x3ff) << 8;\n        return rVar1;\n      }\n    }" if (parenthesized_expression "(IVar2 == -1)" ( (binary_expression "IVar2 == -1" identifier == number_literal) )) (compound_statement "{\n      rVar1 = _REG_ESPACE;\n    }" { (expression_statement "rVar1 = _REG_ESPACE;" (assignment_expression "rVar1 = _REG_ESPACE" identifier = identifier) ;) }) (else_clause "else {\n      rVar1 = _REG_NOERROR;\n      if ((node->token).field_0x4 == '\f') {\n                    /* WARNING: Load size is inaccurate */\n        *(re_context_type *)(*extra + 4 + IVar2 * 8) =\n             *(uint *)(*extra + 4 + IVar2 * 8) & 0xfffc00ff |\n             ((node->token).opr.ctx_type & 0x3ff) << 8;\n        return rVar1;\n      }\n    }" else (compound_statement "{\n      rVar1 = _REG_NOERROR;\n      if ((node->token).field_0x4 == '\f') {\n                    /* WARNING: Load size is inaccurate */\n        *(re_context_type *)(*extra + 4 + IVar2 * 8) =\n             *(uint *)(*extra + 4 + IVar2 * 8) & 0xfffc00ff |\n             ((node->token).opr.ctx_type & 0x3ff) << 8;\n        return rVar1;\n      }\n    }" { (expression_statement "rVar1 = _REG_NOERROR;" (assignment_expression "rVar1 = _REG_NOERROR" identifier = identifier) ;) (if_statement "if ((node->token).field_0x4 == '\f') {\n                    /* WARNING: Load size is inaccurate */\n        *(re_context_type *)(*extra + 4 + IVar2 * 8) =\n             *(uint *)(*extra + 4 + IVar2 * 8) & 0xfffc00ff |\n             ((node->token).opr.ctx_type & 0x3ff) << 8;\n        return rVar1;\n      }" if (parenthesized_expression "((node->token).field_0x4 == '\f')" ( (binary_expression "(node->token).field_0x4 == '\f'" (field_expression "(node->token).field_0x4" (parenthesized_expression "(node->token)" ( (field_expression "node->token" identifier -> field_identifier) )) . field_identifier) == (char_literal "'\f'" ' escape_sequence ')) )) (compound_statement "{\n                    /* WARNING: Load size is inaccurate */\n        *(re_context_type *)(*extra + 4 + IVar2 * 8) =\n             *(uint *)(*extra + 4 + IVar2 * 8) & 0xfffc00ff |\n             ((node->token).opr.ctx_type & 0x3ff) << 8;\n        return rVar1;\n      }" { comment (expression_statement "*(re_context_type *)(*extra + 4 + IVar2 * 8) =\n             *(uint *)(*extra + 4 + IVar2 * 8) & 0xfffc00ff |\n             ((node->token).opr.ctx_type & 0x3ff) << 8;" (assignment_expression "*(re_context_type *)(*extra + 4 + IVar2 * 8) =\n             *(uint *)(*extra + 4 + IVar2 * 8) & 0xfffc00ff |\n             ((node->token).opr.ctx_type & 0x3ff) << 8" (pointer_expression "*(re_context_type *)(*extra + 4 + IVar2 * 8)" * (cast_expression "(re_context_type *)(*extra + 4 + IVar2 * 8)" ( (type_descriptor "re_context_type *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(*extra + 4 + IVar2 * 8)" ( (binary_expression "*extra + 4 + IVar2 * 8" (binary_expression "*extra + 4" (pointer_expression "*extra" * identifier) + number_literal) + (binary_expression "IVar2 * 8" identifier * number_literal)) )))) = (binary_expression "*(uint *)(*extra + 4 + IVar2 * 8) & 0xfffc00ff |\n             ((node->token).opr.ctx_type & 0x3ff) << 8" (binary_expression "*(uint *)(*extra + 4 + IVar2 * 8) & 0xfffc00ff" (pointer_expression "*(uint *)(*extra + 4 + IVar2 * 8)" * (cast_expression "(uint *)(*extra + 4 + IVar2 * 8)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(*extra + 4 + IVar2 * 8)" ( (binary_expression "*extra + 4 + IVar2 * 8" (binary_expression "*extra + 4" (pointer_expression "*extra" * identifier) + number_literal) + (binary_expression "IVar2 * 8" identifier * number_literal)) )))) & number_literal) | (binary_expression "((node->token).opr.ctx_type & 0x3ff) << 8" (parenthesized_expression "((node->token).opr.ctx_type & 0x3ff)" ( (binary_expression "(node->token).opr.ctx_type & 0x3ff" (field_expression "(node->token).opr.ctx_type" (field_expression "(node->token).opr" (parenthesized_expression "(node->token)" ( (field_expression "node->token" identifier -> field_identifier) )) . field_identifier) . field_identifier) & number_literal) )) << number_literal))) ;) (return_statement "return rVar1;" return identifier ;) })) }))) }))) (return_statement "return rVar1;" return identifier ;) })))
(translation_unit "undefined4 FUN_0001f5c0(int *param_1,int param_2)\n\n{\n  undefined4 uVar1;\n  int iVar2;\n  \n  if (*(char *)(param_2 + 0x18) == '\x10') {\n    uVar1 = *(undefined4 *)(*(int *)(param_2 + 4) + 0x1c);\n    *(undefined4 *)(param_2 + 0xc) = *(undefined4 *)(*(int *)(param_2 + 4) + 0xc);\n    *(undefined4 *)(param_2 + 0x1c) = uVar1;\n    uVar1 = 0;\n  }\n  else {\n    *(int *)(param_2 + 0xc) = param_2;\n    iVar2 = FUN_0001b480();\n    *(int *)(param_2 + 0x1c) = iVar2;\n    if (iVar2 == -1) {\n      uVar1 = 0xc;\n    }\n    else {\n      uVar1 = 0;\n      if (*(char *)(param_2 + 0x18) == '\f') {\n        *(uint *)(*param_1 + 4 + iVar2 * 8) =\n             *(uint *)(*param_1 + 4 + iVar2 * 8) & 0xfffc00ff |\n             (*(uint *)(param_2 + 0x14) & 0x3ff) << 8;\n        return uVar1;\n      }\n    }\n  }\n  return uVar1;\n}\n\n" (function_definition "undefined4 FUN_0001f5c0(int *param_1,int param_2)\n\n{\n  undefined4 uVar1;\n  int iVar2;\n  \n  if (*(char *)(param_2 + 0x18) == '\x10') {\n    uVar1 = *(undefined4 *)(*(int *)(param_2 + 4) + 0x1c);\n    *(undefined4 *)(param_2 + 0xc) = *(undefined4 *)(*(int *)(param_2 + 4) + 0xc);\n    *(undefined4 *)(param_2 + 0x1c) = uVar1;\n    uVar1 = 0;\n  }\n  else {\n    *(int *)(param_2 + 0xc) = param_2;\n    iVar2 = FUN_0001b480();\n    *(int *)(param_2 + 0x1c) = iVar2;\n    if (iVar2 == -1) {\n      uVar1 = 0xc;\n    }\n    else {\n      uVar1 = 0;\n      if (*(char *)(param_2 + 0x18) == '\f') {\n        *(uint *)(*param_1 + 4 + iVar2 * 8) =\n             *(uint *)(*param_1 + 4 + iVar2 * 8) & 0xfffc00ff |\n             (*(uint *)(param_2 + 0x14) & 0x3ff) << 8;\n        return uVar1;\n      }\n    }\n  }\n  return uVar1;\n}" type_identifier (function_declarator "FUN_0001f5c0(int *param_1,int param_2)" identifier (parameter_list "(int *param_1,int param_2)" ( (parameter_declaration "int *param_1" primitive_type (pointer_declarator "*param_1" * identifier)) , (parameter_declaration "int param_2" primitive_type identifier) ))) (compound_statement "{\n  undefined4 uVar1;\n  int iVar2;\n  \n  if (*(char *)(param_2 + 0x18) == '\x10') {\n    uVar1 = *(undefined4 *)(*(int *)(param_2 + 4) + 0x1c);\n    *(undefined4 *)(param_2 + 0xc) = *(undefined4 *)(*(int *)(param_2 + 4) + 0xc);\n    *(undefined4 *)(param_2 + 0x1c) = uVar1;\n    uVar1 = 0;\n  }\n  else {\n    *(int *)(param_2 + 0xc) = param_2;\n    iVar2 = FUN_0001b480();\n    *(int *)(param_2 + 0x1c) = iVar2;\n    if (iVar2 == -1) {\n      uVar1 = 0xc;\n    }\n    else {\n      uVar1 = 0;\n      if (*(char *)(param_2 + 0x18) == '\f') {\n        *(uint *)(*param_1 + 4 + iVar2 * 8) =\n             *(uint *)(*param_1 + 4 + iVar2 * 8) & 0xfffc00ff |\n             (*(uint *)(param_2 + 0x14) & 0x3ff) << 8;\n        return uVar1;\n      }\n    }\n  }\n  return uVar1;\n}" { (declaration "undefined4 uVar1;" type_identifier identifier ;) (declaration "int iVar2;" primitive_type identifier ;) (if_statement "if (*(char *)(param_2 + 0x18) == '\x10') {\n    uVar1 = *(undefined4 *)(*(int *)(param_2 + 4) + 0x1c);\n    *(undefined4 *)(param_2 + 0xc) = *(undefined4 *)(*(int *)(param_2 + 4) + 0xc);\n    *(undefined4 *)(param_2 + 0x1c) = uVar1;\n    uVar1 = 0;\n  }\n  else {\n    *(int *)(param_2 + 0xc) = param_2;\n    iVar2 = FUN_0001b480();\n    *(int *)(param_2 + 0x1c) = iVar2;\n    if (iVar2 == -1) {\n      uVar1 = 0xc;\n    }\n    else {\n      uVar1 = 0;\n      if (*(char *)(param_2 + 0x18) == '\f') {\n        *(uint *)(*param_1 + 4 + iVar2 * 8) =\n             *(uint *)(*param_1 + 4 + iVar2 * 8) & 0xfffc00ff |\n             (*(uint *)(param_2 + 0x14) & 0x3ff) << 8;\n        return uVar1;\n      }\n    }\n  }" if (parenthesized_expression "(*(char *)(param_2 + 0x18) == '\x10')" ( (binary_expression "*(char *)(param_2 + 0x18) == '\x10'" (pointer_expression "*(char *)(param_2 + 0x18)" * (cast_expression "(char *)(param_2 + 0x18)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_2 + 0x18)" ( (binary_expression "param_2 + 0x18" identifier + number_literal) )))) == (char_literal "'\x10'" ' escape_sequence ')) )) (compound_statement "{\n    uVar1 = *(undefined4 *)(*(int *)(param_2 + 4) + 0x1c);\n    *(undefined4 *)(param_2 + 0xc) = *(undefined4 *)(*(int *)(param_2 + 4) + 0xc);\n    *(undefined4 *)(param_2 + 0x1c) = uVar1;\n    uVar1 = 0;\n  }" { (expression_statement "uVar1 = *(undefined4 *)(*(int *)(param_2 + 4) + 0x1c);" (assignment_expression "uVar1 = *(undefined4 *)(*(int *)(param_2 + 4) + 0x1c)" identifier = (pointer_expression "*(undefined4 *)(*(int *)(param_2 + 4) + 0x1c)" * (cast_expression "(undefined4 *)(*(int *)(param_2 + 4) + 0x1c)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(*(int *)(param_2 + 4) + 0x1c)" ( (binary_expression "*(int *)(param_2 + 4) + 0x1c" (pointer_expression "*(int *)(param_2 + 4)" * (cast_expression "(int *)(param_2 + 4)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_2 + 4)" ( (binary_expression "param_2 + 4" identifier + number_literal) )))) + number_literal) ))))) ;) (expression_statement "*(undefined4 *)(param_2 + 0xc) = *(undefined4 *)(*(int *)(param_2 + 4) + 0xc);" (assignment_expression "*(undefined4 *)(param_2 + 0xc) = *(undefined4 *)(*(int *)(param_2 + 4) + 0xc)" (pointer_expression "*(undefined4 *)(param_2 + 0xc)" * (cast_expression "(undefined4 *)(param_2 + 0xc)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_2 + 0xc)" ( (binary_expression "param_2 + 0xc" identifier + number_literal) )))) = (pointer_expression "*(undefined4 *)(*(int *)(param_2 + 4) + 0xc)" * (cast_expression "(undefined4 *)(*(int *)(param_2 + 4) + 0xc)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(*(int *)(param_2 + 4) + 0xc)" ( (binary_expression "*(int *)(param_2 + 4) + 0xc" (pointer_expression "*(int *)(param_2 + 4)" * (cast_expression "(int *)(param_2 + 4)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_2 + 4)" ( (binary_expression "param_2 + 4" identifier + number_literal) )))) + number_literal) ))))) ;) (expression_statement "*(undefined4 *)(param_2 + 0x1c) = uVar1;" (assignment_expression "*(undefined4 *)(param_2 + 0x1c) = uVar1" (pointer_expression "*(undefined4 *)(param_2 + 0x1c)" * (cast_expression "(undefined4 *)(param_2 + 0x1c)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_2 + 0x1c)" ( (binary_expression "param_2 + 0x1c" identifier + number_literal) )))) = identifier) ;) (expression_statement "uVar1 = 0;" (assignment_expression "uVar1 = 0" identifier = number_literal) ;) }) (else_clause "else {\n    *(int *)(param_2 + 0xc) = param_2;\n    iVar2 = FUN_0001b480();\n    *(int *)(param_2 + 0x1c) = iVar2;\n    if (iVar2 == -1) {\n      uVar1 = 0xc;\n    }\n    else {\n      uVar1 = 0;\n      if (*(char *)(param_2 + 0x18) == '\f') {\n        *(uint *)(*param_1 + 4 + iVar2 * 8) =\n             *(uint *)(*param_1 + 4 + iVar2 * 8) & 0xfffc00ff |\n             (*(uint *)(param_2 + 0x14) & 0x3ff) << 8;\n        return uVar1;\n      }\n    }\n  }" else (compound_statement "{\n    *(int *)(param_2 + 0xc) = param_2;\n    iVar2 = FUN_0001b480();\n    *(int *)(param_2 + 0x1c) = iVar2;\n    if (iVar2 == -1) {\n      uVar1 = 0xc;\n    }\n    else {\n      uVar1 = 0;\n      if (*(char *)(param_2 + 0x18) == '\f') {\n        *(uint *)(*param_1 + 4 + iVar2 * 8) =\n             *(uint *)(*param_1 + 4 + iVar2 * 8) & 0xfffc00ff |\n             (*(uint *)(param_2 + 0x14) & 0x3ff) << 8;\n        return uVar1;\n      }\n    }\n  }" { (expression_statement "*(int *)(param_2 + 0xc) = param_2;" (assignment_expression "*(int *)(param_2 + 0xc) = param_2" (pointer_expression "*(int *)(param_2 + 0xc)" * (cast_expression "(int *)(param_2 + 0xc)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_2 + 0xc)" ( (binary_expression "param_2 + 0xc" identifier + number_literal) )))) = identifier) ;) (expression_statement "iVar2 = FUN_0001b480();" (assignment_expression "iVar2 = FUN_0001b480()" identifier = (call_expression "FUN_0001b480()" identifier (argument_list "()" ( )))) ;) (expression_statement "*(int *)(param_2 + 0x1c) = iVar2;" (assignment_expression "*(int *)(param_2 + 0x1c) = iVar2" (pointer_expression "*(int *)(param_2 + 0x1c)" * (cast_expression "(int *)(param_2 + 0x1c)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_2 + 0x1c)" ( (binary_expression "param_2 + 0x1c" identifier + number_literal) )))) = identifier) ;) (if_statement "if (iVar2 == -1) {\n      uVar1 = 0xc;\n    }\n    else {\n      uVar1 = 0;\n      if (*(char *)(param_2 + 0x18) == '\f') {\n        *(uint *)(*param_1 + 4 + iVar2 * 8) =\n             *(uint *)(*param_1 + 4 + iVar2 * 8) & 0xfffc00ff |\n             (*(uint *)(param_2 + 0x14) & 0x3ff) << 8;\n        return uVar1;\n      }\n    }" if (parenthesized_expression "(iVar2 == -1)" ( (binary_expression "iVar2 == -1" identifier == number_literal) )) (compound_statement "{\n      uVar1 = 0xc;\n    }" { (expression_statement "uVar1 = 0xc;" (assignment_expression "uVar1 = 0xc" identifier = number_literal) ;) }) (else_clause "else {\n      uVar1 = 0;\n      if (*(char *)(param_2 + 0x18) == '\f') {\n        *(uint *)(*param_1 + 4 + iVar2 * 8) =\n             *(uint *)(*param_1 + 4 + iVar2 * 8) & 0xfffc00ff |\n             (*(uint *)(param_2 + 0x14) & 0x3ff) << 8;\n        return uVar1;\n      }\n    }" else (compound_statement "{\n      uVar1 = 0;\n      if (*(char *)(param_2 + 0x18) == '\f') {\n        *(uint *)(*param_1 + 4 + iVar2 * 8) =\n             *(uint *)(*param_1 + 4 + iVar2 * 8) & 0xfffc00ff |\n             (*(uint *)(param_2 + 0x14) & 0x3ff) << 8;\n        return uVar1;\n      }\n    }" { (expression_statement "uVar1 = 0;" (assignment_expression "uVar1 = 0" identifier = number_literal) ;) (if_statement "if (*(char *)(param_2 + 0x18) == '\f') {\n        *(uint *)(*param_1 + 4 + iVar2 * 8) =\n             *(uint *)(*param_1 + 4 + iVar2 * 8) & 0xfffc00ff |\n             (*(uint *)(param_2 + 0x14) & 0x3ff) << 8;\n        return uVar1;\n      }" if (parenthesized_expression "(*(char *)(param_2 + 0x18) == '\f')" ( (binary_expression "*(char *)(param_2 + 0x18) == '\f'" (pointer_expression "*(char *)(param_2 + 0x18)" * (cast_expression "(char *)(param_2 + 0x18)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_2 + 0x18)" ( (binary_expression "param_2 + 0x18" identifier + number_literal) )))) == (char_literal "'\f'" ' escape_sequence ')) )) (compound_statement "{\n        *(uint *)(*param_1 + 4 + iVar2 * 8) =\n             *(uint *)(*param_1 + 4 + iVar2 * 8) & 0xfffc00ff |\n             (*(uint *)(param_2 + 0x14) & 0x3ff) << 8;\n        return uVar1;\n      }" { (expression_statement "*(uint *)(*param_1 + 4 + iVar2 * 8) =\n             *(uint *)(*param_1 + 4 + iVar2 * 8) & 0xfffc00ff |\n             (*(uint *)(param_2 + 0x14) & 0x3ff) << 8;" (assignment_expression "*(uint *)(*param_1 + 4 + iVar2 * 8) =\n             *(uint *)(*param_1 + 4 + iVar2 * 8) & 0xfffc00ff |\n             (*(uint *)(param_2 + 0x14) & 0x3ff) << 8" (pointer_expression "*(uint *)(*param_1 + 4 + iVar2 * 8)" * (cast_expression "(uint *)(*param_1 + 4 + iVar2 * 8)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(*param_1 + 4 + iVar2 * 8)" ( (binary_expression "*param_1 + 4 + iVar2 * 8" (binary_expression "*param_1 + 4" (pointer_expression "*param_1" * identifier) + number_literal) + (binary_expression "iVar2 * 8" identifier * number_literal)) )))) = (binary_expression "*(uint *)(*param_1 + 4 + iVar2 * 8) & 0xfffc00ff |\n             (*(uint *)(param_2 + 0x14) & 0x3ff) << 8" (binary_expression "*(uint *)(*param_1 + 4 + iVar2 * 8) & 0xfffc00ff" (pointer_expression "*(uint *)(*param_1 + 4 + iVar2 * 8)" * (cast_expression "(uint *)(*param_1 + 4 + iVar2 * 8)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(*param_1 + 4 + iVar2 * 8)" ( (binary_expression "*param_1 + 4 + iVar2 * 8" (binary_expression "*param_1 + 4" (pointer_expression "*param_1" * identifier) + number_literal) + (binary_expression "iVar2 * 8" identifier * number_literal)) )))) & number_literal) | (binary_expression "(*(uint *)(param_2 + 0x14) & 0x3ff) << 8" (parenthesized_expression "(*(uint *)(param_2 + 0x14) & 0x3ff)" ( (binary_expression "*(uint *)(param_2 + 0x14) & 0x3ff" (pointer_expression "*(uint *)(param_2 + 0x14)" * (cast_expression "(uint *)(param_2 + 0x14)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_2 + 0x14)" ( (binary_expression "param_2 + 0x14" identifier + number_literal) )))) & number_literal) )) << number_literal))) ;) (return_statement "return uVar1;" return identifier ;) })) }))) }))) (return_statement "return uVar1;" return identifier ;) })))
(translation_unit (function_definition TYPE (function_declarator IDENT (parameter_list ( (parameter_declaration TYPE (pointer_declarator * IDENT)) , (parameter_declaration TYPE IDENT) ))) (compound_statement { (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (if_statement if (parenthesized_expression ( (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) == (char_literal ' escape_sequence ')) )) (compound_statement { (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_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 IDENT + LIT) )))) = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_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 IDENT + LIT) )))) = IDENT) ;) (expression_statement (assignment_expression IDENT = LIT) ;) }) (else_clause else (compound_statement { (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 IDENT = (call_expression IDENT (argument_list ( )))) ;) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) = IDENT) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT == LIT) )) (compound_statement { (expression_statement (assignment_expression IDENT = LIT) ;) }) (else_clause else (compound_statement { (expression_statement (assignment_expression IDENT = LIT) ;) (if_statement if (parenthesized_expression ( (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) == (char_literal ' escape_sequence ')) )) (compound_statement { (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression (binary_expression (pointer_expression * IDENT) + LIT) + (binary_expression IDENT * LIT)) )))) = (binary_expression (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression (binary_expression (pointer_expression * IDENT) + LIT) + (binary_expression IDENT * LIT)) )))) & LIT) | (binary_expression (parenthesized_expression ( (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) & LIT) )) << LIT))) ;) (return_statement return IDENT ;) })) }))) }))) (return_statement return IDENT ;) })))
(function_definition "undefined4 FUN_0001f5c0(int *param_1,int param_2)\n\n{\n  undefined4 uVar1;\n  int iVar2;\n  \n  if (*(char *)(param_2 + 0x18) == '\x10') {\n    uVar1 = *(undefined4 *)(*(int *)(param_2 + 4) + 0x1c);\n    *(undefined4 *)(param_2 + 0xc) = *(undefined4 *)(*(int *)(param_2 + 4) + 0xc);\n    *(undefined4 *)(param_2 + 0x1c) = uVar1;\n    uVar1 = 0;\n  }\n  else {\n    *(int *)(param_2 + 0xc) = param_2;\n    iVar2 = FUN_0001b480();\n    *(int *)(param_2 + 0x1c) = iVar2;\n    if (iVar2 == -1) {\n      uVar1 = 0xc;\n    }\n    else {\n      uVar1 = 0;\n      if (*(char *)(param_2 + 0x18) == '\f') {\n        *(uint *)(*param_1 + 4 + iVar2 * 8) =\n             *(uint *)(*param_1 + 4 + iVar2 * 8) & 0xfffc00ff |\n             (*(uint *)(param_2 + 0x14) & 0x3ff) << 8;\n        return uVar1;\n      }\n    }\n  }\n  return uVar1;\n}" (type_identifier "undefined4") (function_declarator "FUN_0001f5c0(int *param_1,int param_2)" (identifier "FUN_0001f5c0") (parameter_list "(int *param_1,int param_2)" (( "(") (parameter_declaration "int *param_1" (primitive_type "int") (pointer_declarator "*param_1" (* "*") (identifier "param_1"))) (, ",") (parameter_declaration "int param_2" (primitive_type "int") (identifier "param_2")) () ")"))) (compound_statement "{\n  undefined4 uVar1;\n  int iVar2;\n  \n  if (*(char *)(param_2 + 0x18) == '\x10') {\n    uVar1 = *(undefined4 *)(*(int *)(param_2 + 4) + 0x1c);\n    *(undefined4 *)(param_2 + 0xc) = *(undefined4 *)(*(int *)(param_2 + 4) + 0xc);\n    *(undefined4 *)(param_2 + 0x1c) = uVar1;\n    uVar1 = 0;\n  }\n  else {\n    *(int *)(param_2 + 0xc) = param_2;\n    iVar2 = FUN_0001b480();\n    *(int *)(param_2 + 0x1c) = iVar2;\n    if (iVar2 == -1) {\n      uVar1 = 0xc;\n    }\n    else {\n      uVar1 = 0;\n      if (*(char *)(param_2 + 0x18) == '\f') {\n        *(uint *)(*param_1 + 4 + iVar2 * 8) =\n             *(uint *)(*param_1 + 4 + iVar2 * 8) & 0xfffc00ff |\n             (*(uint *)(param_2 + 0x14) & 0x3ff) << 8;\n        return uVar1;\n      }\n    }\n  }\n  return uVar1;\n}" ({ "{") (declaration "undefined4 uVar1;" (type_identifier "undefined4") (identifier "uVar1") (; ";")) (declaration "int iVar2;" (primitive_type "int") (identifier "iVar2") (; ";")) (if_statement "if (*(char *)(param_2 + 0x18) == '\x10') {\n    uVar1 = *(undefined4 *)(*(int *)(param_2 + 4) + 0x1c);\n    *(undefined4 *)(param_2 + 0xc) = *(undefined4 *)(*(int *)(param_2 + 4) + 0xc);\n    *(undefined4 *)(param_2 + 0x1c) = uVar1;\n    uVar1 = 0;\n  }\n  else {\n    *(int *)(param_2 + 0xc) = param_2;\n    iVar2 = FUN_0001b480();\n    *(int *)(param_2 + 0x1c) = iVar2;\n    if (iVar2 == -1) {\n      uVar1 = 0xc;\n    }\n    else {\n      uVar1 = 0;\n      if (*(char *)(param_2 + 0x18) == '\f') {\n        *(uint *)(*param_1 + 4 + iVar2 * 8) =\n             *(uint *)(*param_1 + 4 + iVar2 * 8) & 0xfffc00ff |\n             (*(uint *)(param_2 + 0x14) & 0x3ff) << 8;\n        return uVar1;\n      }\n    }\n  }" (if "if") (parenthesized_expression "(*(char *)(param_2 + 0x18) == '\x10')" (( "(") (binary_expression "*(char *)(param_2 + 0x18) == '\x10'" (pointer_expression "*(char *)(param_2 + 0x18)" (* "*") (cast_expression "(char *)(param_2 + 0x18)" (( "(") (type_descriptor "char *" (primitive_type "char") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_2 + 0x18)" (( "(") (binary_expression "param_2 + 0x18" (identifier "param_2") (+ "+") (number_literal "0x18")) () ")")))) (== "==") (char_literal "'\x10'" (' "'") (escape_sequence "\x10") (' "'"))) () ")")) (compound_statement "{\n    uVar1 = *(undefined4 *)(*(int *)(param_2 + 4) + 0x1c);\n    *(undefined4 *)(param_2 + 0xc) = *(undefined4 *)(*(int *)(param_2 + 4) + 0xc);\n    *(undefined4 *)(param_2 + 0x1c) = uVar1;\n    uVar1 = 0;\n  }" ({ "{") (expression_statement "uVar1 = *(undefined4 *)(*(int *)(param_2 + 4) + 0x1c);" (assignment_expression "uVar1 = *(undefined4 *)(*(int *)(param_2 + 4) + 0x1c)" (identifier "uVar1") (= "=") (pointer_expression "*(undefined4 *)(*(int *)(param_2 + 4) + 0x1c)" (* "*") (cast_expression "(undefined4 *)(*(int *)(param_2 + 4) + 0x1c)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(*(int *)(param_2 + 4) + 0x1c)" (( "(") (binary_expression "*(int *)(param_2 + 4) + 0x1c" (pointer_expression "*(int *)(param_2 + 4)" (* "*") (cast_expression "(int *)(param_2 + 4)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_2 + 4)" (( "(") (binary_expression "param_2 + 4" (identifier "param_2") (+ "+") (number_literal "4")) () ")")))) (+ "+") (number_literal "0x1c")) () ")"))))) (; ";")) (expression_statement "*(undefined4 *)(param_2 + 0xc) = *(undefined4 *)(*(int *)(param_2 + 4) + 0xc);" (assignment_expression "*(undefined4 *)(param_2 + 0xc) = *(undefined4 *)(*(int *)(param_2 + 4) + 0xc)" (pointer_expression "*(undefined4 *)(param_2 + 0xc)" (* "*") (cast_expression "(undefined4 *)(param_2 + 0xc)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_2 + 0xc)" (( "(") (binary_expression "param_2 + 0xc" (identifier "param_2") (+ "+") (number_literal "0xc")) () ")")))) (= "=") (pointer_expression "*(undefined4 *)(*(int *)(param_2 + 4) + 0xc)" (* "*") (cast_expression "(undefined4 *)(*(int *)(param_2 + 4) + 0xc)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(*(int *)(param_2 + 4) + 0xc)" (( "(") (binary_expression "*(int *)(param_2 + 4) + 0xc" (pointer_expression "*(int *)(param_2 + 4)" (* "*") (cast_expression "(int *)(param_2 + 4)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_2 + 4)" (( "(") (binary_expression "param_2 + 4" (identifier "param_2") (+ "+") (number_literal "4")) () ")")))) (+ "+") (number_literal "0xc")) () ")"))))) (; ";")) (expression_statement "*(undefined4 *)(param_2 + 0x1c) = uVar1;" (assignment_expression "*(undefined4 *)(param_2 + 0x1c) = uVar1" (pointer_expression "*(undefined4 *)(param_2 + 0x1c)" (* "*") (cast_expression "(undefined4 *)(param_2 + 0x1c)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_2 + 0x1c)" (( "(") (binary_expression "param_2 + 0x1c" (identifier "param_2") (+ "+") (number_literal "0x1c")) () ")")))) (= "=") (identifier "uVar1")) (; ";")) (expression_statement "uVar1 = 0;" (assignment_expression "uVar1 = 0" (identifier "uVar1") (= "=") (number_literal "0")) (; ";")) (} "}")) (else_clause "else {\n    *(int *)(param_2 + 0xc) = param_2;\n    iVar2 = FUN_0001b480();\n    *(int *)(param_2 + 0x1c) = iVar2;\n    if (iVar2 == -1) {\n      uVar1 = 0xc;\n    }\n    else {\n      uVar1 = 0;\n      if (*(char *)(param_2 + 0x18) == '\f') {\n        *(uint *)(*param_1 + 4 + iVar2 * 8) =\n             *(uint *)(*param_1 + 4 + iVar2 * 8) & 0xfffc00ff |\n             (*(uint *)(param_2 + 0x14) & 0x3ff) << 8;\n        return uVar1;\n      }\n    }\n  }" (else "else") (compound_statement "{\n    *(int *)(param_2 + 0xc) = param_2;\n    iVar2 = FUN_0001b480();\n    *(int *)(param_2 + 0x1c) = iVar2;\n    if (iVar2 == -1) {\n      uVar1 = 0xc;\n    }\n    else {\n      uVar1 = 0;\n      if (*(char *)(param_2 + 0x18) == '\f') {\n        *(uint *)(*param_1 + 4 + iVar2 * 8) =\n             *(uint *)(*param_1 + 4 + iVar2 * 8) & 0xfffc00ff |\n             (*(uint *)(param_2 + 0x14) & 0x3ff) << 8;\n        return uVar1;\n      }\n    }\n  }" ({ "{") (expression_statement "*(int *)(param_2 + 0xc) = param_2;" (assignment_expression "*(int *)(param_2 + 0xc) = param_2" (pointer_expression "*(int *)(param_2 + 0xc)" (* "*") (cast_expression "(int *)(param_2 + 0xc)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_2 + 0xc)" (( "(") (binary_expression "param_2 + 0xc" (identifier "param_2") (+ "+") (number_literal "0xc")) () ")")))) (= "=") (identifier "param_2")) (; ";")) (expression_statement "iVar2 = FUN_0001b480();" (assignment_expression "iVar2 = FUN_0001b480()" (identifier "iVar2") (= "=") (call_expression "FUN_0001b480()" (identifier "FUN_0001b480") (argument_list "()" (( "(") () ")")))) (; ";")) (expression_statement "*(int *)(param_2 + 0x1c) = iVar2;" (assignment_expression "*(int *)(param_2 + 0x1c) = iVar2" (pointer_expression "*(int *)(param_2 + 0x1c)" (* "*") (cast_expression "(int *)(param_2 + 0x1c)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_2 + 0x1c)" (( "(") (binary_expression "param_2 + 0x1c" (identifier "param_2") (+ "+") (number_literal "0x1c")) () ")")))) (= "=") (identifier "iVar2")) (; ";")) (if_statement "if (iVar2 == -1) {\n      uVar1 = 0xc;\n    }\n    else {\n      uVar1 = 0;\n      if (*(char *)(param_2 + 0x18) == '\f') {\n        *(uint *)(*param_1 + 4 + iVar2 * 8) =\n             *(uint *)(*param_1 + 4 + iVar2 * 8) & 0xfffc00ff |\n             (*(uint *)(param_2 + 0x14) & 0x3ff) << 8;\n        return uVar1;\n      }\n    }" (if "if") (parenthesized_expression "(iVar2 == -1)" (( "(") (binary_expression "iVar2 == -1" (identifier "iVar2") (== "==") (number_literal "-1")) () ")")) (compound_statement "{\n      uVar1 = 0xc;\n    }" ({ "{") (expression_statement "uVar1 = 0xc;" (assignment_expression "uVar1 = 0xc" (identifier "uVar1") (= "=") (number_literal "0xc")) (; ";")) (} "}")) (else_clause "else {\n      uVar1 = 0;\n      if (*(char *)(param_2 + 0x18) == '\f') {\n        *(uint *)(*param_1 + 4 + iVar2 * 8) =\n             *(uint *)(*param_1 + 4 + iVar2 * 8) & 0xfffc00ff |\n             (*(uint *)(param_2 + 0x14) & 0x3ff) << 8;\n        return uVar1;\n      }\n    }" (else "else") (compound_statement "{\n      uVar1 = 0;\n      if (*(char *)(param_2 + 0x18) == '\f') {\n        *(uint *)(*param_1 + 4 + iVar2 * 8) =\n             *(uint *)(*param_1 + 4 + iVar2 * 8) & 0xfffc00ff |\n             (*(uint *)(param_2 + 0x14) & 0x3ff) << 8;\n        return uVar1;\n      }\n    }" ({ "{") (expression_statement "uVar1 = 0;" (assignment_expression "uVar1 = 0" (identifier "uVar1") (= "=") (number_literal "0")) (; ";")) (if_statement "if (*(char *)(param_2 + 0x18) == '\f') {\n        *(uint *)(*param_1 + 4 + iVar2 * 8) =\n             *(uint *)(*param_1 + 4 + iVar2 * 8) & 0xfffc00ff |\n             (*(uint *)(param_2 + 0x14) & 0x3ff) << 8;\n        return uVar1;\n      }" (if "if") (parenthesized_expression "(*(char *)(param_2 + 0x18) == '\f')" (( "(") (binary_expression "*(char *)(param_2 + 0x18) == '\f'" (pointer_expression "*(char *)(param_2 + 0x18)" (* "*") (cast_expression "(char *)(param_2 + 0x18)" (( "(") (type_descriptor "char *" (primitive_type "char") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_2 + 0x18)" (( "(") (binary_expression "param_2 + 0x18" (identifier "param_2") (+ "+") (number_literal "0x18")) () ")")))) (== "==") (char_literal "'\f'" (' "'") (escape_sequence "\f") (' "'"))) () ")")) (compound_statement "{\n        *(uint *)(*param_1 + 4 + iVar2 * 8) =\n             *(uint *)(*param_1 + 4 + iVar2 * 8) & 0xfffc00ff |\n             (*(uint *)(param_2 + 0x14) & 0x3ff) << 8;\n        return uVar1;\n      }" ({ "{") (expression_statement "*(uint *)(*param_1 + 4 + iVar2 * 8) =\n             *(uint *)(*param_1 + 4 + iVar2 * 8) & 0xfffc00ff |\n             (*(uint *)(param_2 + 0x14) & 0x3ff) << 8;" (assignment_expression "*(uint *)(*param_1 + 4 + iVar2 * 8) =\n             *(uint *)(*param_1 + 4 + iVar2 * 8) & 0xfffc00ff |\n             (*(uint *)(param_2 + 0x14) & 0x3ff) << 8" (pointer_expression "*(uint *)(*param_1 + 4 + iVar2 * 8)" (* "*") (cast_expression "(uint *)(*param_1 + 4 + iVar2 * 8)" (( "(") (type_descriptor "uint *" (type_identifier "uint") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(*param_1 + 4 + iVar2 * 8)" (( "(") (binary_expression "*param_1 + 4 + iVar2 * 8" (binary_expression "*param_1 + 4" (pointer_expression "*param_1" (* "*") (identifier "param_1")) (+ "+") (number_literal "4")) (+ "+") (binary_expression "iVar2 * 8" (identifier "iVar2") (* "*") (number_literal "8"))) () ")")))) (= "=") (binary_expression "*(uint *)(*param_1 + 4 + iVar2 * 8) & 0xfffc00ff |\n             (*(uint *)(param_2 + 0x14) & 0x3ff) << 8" (binary_expression "*(uint *)(*param_1 + 4 + iVar2 * 8) & 0xfffc00ff" (pointer_expression "*(uint *)(*param_1 + 4 + iVar2 * 8)" (* "*") (cast_expression "(uint *)(*param_1 + 4 + iVar2 * 8)" (( "(") (type_descriptor "uint *" (type_identifier "uint") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(*param_1 + 4 + iVar2 * 8)" (( "(") (binary_expression "*param_1 + 4 + iVar2 * 8" (binary_expression "*param_1 + 4" (pointer_expression "*param_1" (* "*") (identifier "param_1")) (+ "+") (number_literal "4")) (+ "+") (binary_expression "iVar2 * 8" (identifier "iVar2") (* "*") (number_literal "8"))) () ")")))) (& "&") (number_literal "0xfffc00ff")) (| "|") (binary_expression "(*(uint *)(param_2 + 0x14) & 0x3ff) << 8" (parenthesized_expression "(*(uint *)(param_2 + 0x14) & 0x3ff)" (( "(") (binary_expression "*(uint *)(param_2 + 0x14) & 0x3ff" (pointer_expression "*(uint *)(param_2 + 0x14)" (* "*") (cast_expression "(uint *)(param_2 + 0x14)" (( "(") (type_descriptor "uint *" (type_identifier "uint") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_2 + 0x14)" (( "(") (binary_expression "param_2 + 0x14" (identifier "param_2") (+ "+") (number_literal "0x14")) () ")")))) (& "&") (number_literal "0x3ff")) () ")")) (<< "<<") (number_literal "8")))) (; ";")) (return_statement "return uVar1;" (return "return") (identifier "uVar1") (; ";")) (} "}"))) (} "}")))) (} "}")))) (return_statement "return uVar1;" (return "return") (identifier "uVar1") (; ";")) (} "}")))

type_1 function_1(void *extra,type_2 *node)

{
  type_3 token;
  type_1 rVar1;
  type_4 var_2;
  type_5 unaff_EBX;
  type_6 in_stack_fffffff4;
  
  if ((node->token).field_0x4 == '\x10') {
    var_2 = node->left->node_idx;
    node->first = node->left->first;
    node->node_idx = var_2;
    rVar1 = _REG_NOERROR;
  }
  else {
    node->first = node;
    token._4_4_ = unaff_EBX;
    token.opr.sbcset = in_stack_fffffff4.sbcset;
    var_2 = var_1((type_7 *)extra,token);
    node->node_idx = var_2;
    if (var_2 == -1) {
      rVar1 = _REG_ESPACE;
    }
    else {
      rVar1 = _REG_NOERROR;
      if ((node->token).field_0x4 == '\f') {
                    /* WARNING: Load size is inaccurate */
        *(type_8 *)(*extra + 4 + var_2 * 8) =
             *(type_9 *)(*extra + 4 + var_2 * 8) & 0xfffc00ff |
             ((node->token).opr.ctx_type & 0x3ff) << 8;
        return rVar1;
      }
    }
  }
  return rVar1;
}


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

undefined4 MASKED(int *param_1,int param_2)

{
  undefined4 uVar1;
  int iVar2;
  
  if (*(char *)(param_2 + 0x18) == '\x10') {
    uVar1 = *(undefined4 *)(*(int *)(param_2 + 4) + 0x1c);
    *(undefined4 *)(param_2 + 0xc) = *(undefined4 *)(*(int *)(param_2 + 4) + 0xc);
    *(undefined4 *)(param_2 + 0x1c) = uVar1;
    uVar1 = 0;
  }
  else {
    *(int *)(param_2 + 0xc) = param_2;
    iVar2 = FUN_0001b480();
    *(int *)(param_2 + 0x1c) = iVar2;
    if (iVar2 == -1) {
      uVar1 = 0xc;
    }
    else {
      uVar1 = 0;
      if (*(char *)(param_2 + 0x18) == '\f') {
        *(uint *)(*param_1 + 4 + iVar2 * 8) =
             *(uint *)(*param_1 + 4 + iVar2 * 8) & 0xfffc00ff |
             (*(uint *)(param_2 + 0x14) & 0x3ff) << 8;
        return uVar1;
      }
    }
  }
  return uVar1;
}

