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

void __regparm3 check_absolute_expr(riscv_cl_insn *ip,expressionS *ex,bfd_boolean maybe_csr)

{
  char cVar1;
  char *pcVar2;
  char *pcVar3;
  
  cVar1 = ex->field_0x10;
  if (cVar1 == '\x06') {
    pcVar2 = (char *)dcgettext(0,"unsupported large constant",5);
    as_bad(pcVar2);
  }
  else {
    if ((cVar1 == '\x03') && ((maybe_csr & 1U) != 0)) {
      pcVar3 = S_GET_NAME(ex->X_add_symbol);
      pcVar2 = "unknown CSR `%s\'";
    }
    else {
      if (cVar1 == '\x02') {
        if (0x20 < xlen) {
          return;
        }
        goto LAB_00040550;
      }
      pcVar3 = ip->insn_mo->name;
      pcVar2 = "Instruction %s requires absolute expression";
    }
    pcVar2 = (char *)dcgettext(0,pcVar2,5);
    as_bad(pcVar2,pcVar3);
  }
  if ((0x20 < xlen) || (1 < (byte)(ex->field_0x10 - 2))) {
    return;
  }
LAB_00040550:
  normalize_constant_expr(ex);
  return;
}



/* WARNING: Function: __i686.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */

void __regparm3 FUN_00040520(undefined4 *param_1,undefined4 *param_2,uint param_3)

{
  char cVar1;
  char *pcVar2;
  undefined4 uVar3;
  undefined4 uVar4;
  
  cVar1 = *(char *)(param_2 + 4);
  if (cVar1 == '\x06') {
    uVar4 = dcgettext(0,"unsupported large constant",5);
    FUN_0002a430(uVar4);
  }
  else {
    if ((cVar1 == '\x03') && ((param_3 & 1) != 0)) {
      uVar4 = FUN_00036ce0(*param_2);
      pcVar2 = "unknown CSR `%s\'";
    }
    else {
      if (cVar1 == '\x02') {
        if (0x20 < DAT_00074c60) {
          return;
        }
        goto LAB_00040550;
      }
      uVar4 = *(undefined4 *)*param_1;
      pcVar2 = "Instruction %s requires absolute expression";
    }
    uVar3 = dcgettext(0,pcVar2,5);
    FUN_0002a430(uVar3,uVar4);
  }
  if ((0x20 < DAT_00074c60) || (1 < (byte)(*(char *)(param_2 + 4) - 2U))) {
    return;
  }
LAB_00040550:
  FUN_000404e0();
  return;
}


PUSH EDI
MOV EDI,EAX
PUSH ESI
MOV ESI,EDX
PUSH EBX
MOVZX EAX,byte ptr [EDX + 0x10]
CALL 0x00015040
ADD EBX,0x2bad0
CMP AL,0x6
JZ 0x000405a0
CMP AL,0x3
JNZ 0x00040543
AND ECX,0x1
JNZ 0x000405c0
CMP AL,0x2
JNZ 0x00040560
CMP dword ptr [EBX + 0x8c60],0x20
JA 0x00040597
POP EBX
MOV EAX,ESI
POP ESI
POP EDI
JMP 0x000404e0
MOV EAX,dword ptr [EDI]
SUB ESP,0x4
MOV EDI,dword ptr [EAX]
PUSH 0x5
LEA EAX,[EBX + 0xfffe7f4c]
PUSH EAX
PUSH 0x0
CALL 0x000131a0
POP EDX
POP ECX
PUSH EDI
PUSH EAX
CALL 0x0002a430
ADD ESP,0x10
CMP dword ptr [EBX + 0x8c60],0x20
JA 0x00040597
MOVZX EAX,byte ptr [ESI + 0x10]
SUB EAX,0x2
CMP AL,0x1
JBE 0x00040550
POP EBX
POP ESI
POP EDI
RET
SUB ESP,0x4
LEA EAX,[EBX + 0xfffe8674]
PUSH 0x5
PUSH EAX
PUSH 0x0
CALL 0x000131a0
MOV dword ptr [ESP],EAX
CALL 0x0002a430
ADD ESP,0x10
JMP 0x00040583
SUB ESP,0xc
PUSH dword ptr [EDX]
CALL 0x00036ce0
ADD ESP,0xc
MOV EDI,EAX
PUSH 0x5
LEA EAX,[EBX + 0xfffe868f]
JMP 0x0004056f
(translation_unit "/* WARNING: Function: __i686.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */\n\nvoid __regparm3 FUN_00040520(undefined4 *param_1,undefined4 *param_2,uint param_3)\n\n{\n  char cVar1;\n  char *pcVar2;\n  undefined4 uVar3;\n  undefined4 uVar4;\n  \n  cVar1 = *(char *)(param_2 + 4);\n  if (cVar1 == '\x06') {\n    uVar4 = dcgettext(0,"unsupported large constant",5);\n    FUN_0002a430(uVar4);\n  }\n  else {\n    if ((cVar1 == '\x03') && ((param_3 & 1) != 0)) {\n      uVar4 = FUN_00036ce0(*param_2);\n      pcVar2 = "unknown CSR `%s\'";\n    }\n    else {\n      if (cVar1 == '\x02') {\n        if (0x20 < DAT_00074c60) {\n          return;\n        }\n        goto LAB_00040550;\n      }\n      uVar4 = *(undefined4 *)*param_1;\n      pcVar2 = "Instruction %s requires absolute expression";\n    }\n    uVar3 = dcgettext(0,pcVar2,5);\n    FUN_0002a430(uVar3,uVar4);\n  }\n  if ((0x20 < DAT_00074c60) || (1 < (byte)(*(char *)(param_2 + 4) - 2U))) {\n    return;\n  }\nLAB_00040550:\n  FUN_000404e0();\n  return;\n}\n\n" comment (function_definition "void __regparm3 FUN_00040520(undefined4 *param_1,undefined4 *param_2,uint param_3)\n\n{\n  char cVar1;\n  char *pcVar2;\n  undefined4 uVar3;\n  undefined4 uVar4;\n  \n  cVar1 = *(char *)(param_2 + 4);\n  if (cVar1 == '\x06') {\n    uVar4 = dcgettext(0,"unsupported large constant",5);\n    FUN_0002a430(uVar4);\n  }\n  else {\n    if ((cVar1 == '\x03') && ((param_3 & 1) != 0)) {\n      uVar4 = FUN_00036ce0(*param_2);\n      pcVar2 = "unknown CSR `%s\'";\n    }\n    else {\n      if (cVar1 == '\x02') {\n        if (0x20 < DAT_00074c60) {\n          return;\n        }\n        goto LAB_00040550;\n      }\n      uVar4 = *(undefined4 *)*param_1;\n      pcVar2 = "Instruction %s requires absolute expression";\n    }\n    uVar3 = dcgettext(0,pcVar2,5);\n    FUN_0002a430(uVar3,uVar4);\n  }\n  if ((0x20 < DAT_00074c60) || (1 < (byte)(*(char *)(param_2 + 4) - 2U))) {\n    return;\n  }\nLAB_00040550:\n  FUN_000404e0();\n  return;\n}" primitive_type (ERROR "__regparm3" identifier) (function_declarator "FUN_00040520(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 (pointer_declarator "*param_1" * identifier)) , (parameter_declaration "undefined4 *param_2" type_identifier (pointer_declarator "*param_2" * identifier)) , (parameter_declaration "uint param_3" type_identifier identifier) ))) (compound_statement "{\n  char cVar1;\n  char *pcVar2;\n  undefined4 uVar3;\n  undefined4 uVar4;\n  \n  cVar1 = *(char *)(param_2 + 4);\n  if (cVar1 == '\x06') {\n    uVar4 = dcgettext(0,"unsupported large constant",5);\n    FUN_0002a430(uVar4);\n  }\n  else {\n    if ((cVar1 == '\x03') && ((param_3 & 1) != 0)) {\n      uVar4 = FUN_00036ce0(*param_2);\n      pcVar2 = "unknown CSR `%s\'";\n    }\n    else {\n      if (cVar1 == '\x02') {\n        if (0x20 < DAT_00074c60) {\n          return;\n        }\n        goto LAB_00040550;\n      }\n      uVar4 = *(undefined4 *)*param_1;\n      pcVar2 = "Instruction %s requires absolute expression";\n    }\n    uVar3 = dcgettext(0,pcVar2,5);\n    FUN_0002a430(uVar3,uVar4);\n  }\n  if ((0x20 < DAT_00074c60) || (1 < (byte)(*(char *)(param_2 + 4) - 2U))) {\n    return;\n  }\nLAB_00040550:\n  FUN_000404e0();\n  return;\n}" { (declaration "char cVar1;" primitive_type identifier ;) (declaration "char *pcVar2;" primitive_type (pointer_declarator "*pcVar2" * identifier) ;) (declaration "undefined4 uVar3;" type_identifier identifier ;) (declaration "undefined4 uVar4;" type_identifier identifier ;) (expression_statement "cVar1 = *(char *)(param_2 + 4);" (assignment_expression "cVar1 = *(char *)(param_2 + 4)" identifier = (pointer_expression "*(char *)(param_2 + 4)" * (cast_expression "(char *)(param_2 + 4)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_2 + 4)" ( (binary_expression "param_2 + 4" identifier + number_literal) ))))) ;) (if_statement "if (cVar1 == '\x06') {\n    uVar4 = dcgettext(0,"unsupported large constant",5);\n    FUN_0002a430(uVar4);\n  }\n  else {\n    if ((cVar1 == '\x03') && ((param_3 & 1) != 0)) {\n      uVar4 = FUN_00036ce0(*param_2);\n      pcVar2 = "unknown CSR `%s\'";\n    }\n    else {\n      if (cVar1 == '\x02') {\n        if (0x20 < DAT_00074c60) {\n          return;\n        }\n        goto LAB_00040550;\n      }\n      uVar4 = *(undefined4 *)*param_1;\n      pcVar2 = "Instruction %s requires absolute expression";\n    }\n    uVar3 = dcgettext(0,pcVar2,5);\n    FUN_0002a430(uVar3,uVar4);\n  }" if (parenthesized_expression "(cVar1 == '\x06')" ( (binary_expression "cVar1 == '\x06'" identifier == (char_literal "'\x06'" ' escape_sequence ')) )) (compound_statement "{\n    uVar4 = dcgettext(0,"unsupported large constant",5);\n    FUN_0002a430(uVar4);\n  }" { (expression_statement "uVar4 = dcgettext(0,"unsupported large constant",5);" (assignment_expression "uVar4 = dcgettext(0,"unsupported large constant",5)" identifier = (call_expression "dcgettext(0,"unsupported large constant",5)" identifier (argument_list "(0,"unsupported large constant",5)" ( number_literal , (string_literal ""unsupported large constant"" " string_content ") , number_literal )))) ;) (expression_statement "FUN_0002a430(uVar4);" (call_expression "FUN_0002a430(uVar4)" identifier (argument_list "(uVar4)" ( identifier ))) ;) }) (else_clause "else {\n    if ((cVar1 == '\x03') && ((param_3 & 1) != 0)) {\n      uVar4 = FUN_00036ce0(*param_2);\n      pcVar2 = "unknown CSR `%s\'";\n    }\n    else {\n      if (cVar1 == '\x02') {\n        if (0x20 < DAT_00074c60) {\n          return;\n        }\n        goto LAB_00040550;\n      }\n      uVar4 = *(undefined4 *)*param_1;\n      pcVar2 = "Instruction %s requires absolute expression";\n    }\n    uVar3 = dcgettext(0,pcVar2,5);\n    FUN_0002a430(uVar3,uVar4);\n  }" else (compound_statement "{\n    if ((cVar1 == '\x03') && ((param_3 & 1) != 0)) {\n      uVar4 = FUN_00036ce0(*param_2);\n      pcVar2 = "unknown CSR `%s\'";\n    }\n    else {\n      if (cVar1 == '\x02') {\n        if (0x20 < DAT_00074c60) {\n          return;\n        }\n        goto LAB_00040550;\n      }\n      uVar4 = *(undefined4 *)*param_1;\n      pcVar2 = "Instruction %s requires absolute expression";\n    }\n    uVar3 = dcgettext(0,pcVar2,5);\n    FUN_0002a430(uVar3,uVar4);\n  }" { (if_statement "if ((cVar1 == '\x03') && ((param_3 & 1) != 0)) {\n      uVar4 = FUN_00036ce0(*param_2);\n      pcVar2 = "unknown CSR `%s\'";\n    }\n    else {\n      if (cVar1 == '\x02') {\n        if (0x20 < DAT_00074c60) {\n          return;\n        }\n        goto LAB_00040550;\n      }\n      uVar4 = *(undefined4 *)*param_1;\n      pcVar2 = "Instruction %s requires absolute expression";\n    }" if (parenthesized_expression "((cVar1 == '\x03') && ((param_3 & 1) != 0))" ( (binary_expression "(cVar1 == '\x03') && ((param_3 & 1) != 0)" (parenthesized_expression "(cVar1 == '\x03')" ( (binary_expression "cVar1 == '\x03'" identifier == (char_literal "'\x03'" ' escape_sequence ')) )) && (parenthesized_expression "((param_3 & 1) != 0)" ( (binary_expression "(param_3 & 1) != 0" (parenthesized_expression "(param_3 & 1)" ( (binary_expression "param_3 & 1" identifier & number_literal) )) != number_literal) ))) )) (compound_statement "{\n      uVar4 = FUN_00036ce0(*param_2);\n      pcVar2 = "unknown CSR `%s\'";\n    }" { (expression_statement "uVar4 = FUN_00036ce0(*param_2);" (assignment_expression "uVar4 = FUN_00036ce0(*param_2)" identifier = (call_expression "FUN_00036ce0(*param_2)" identifier (argument_list "(*param_2)" ( (pointer_expression "*param_2" * identifier) )))) ;) (expression_statement "pcVar2 = "unknown CSR `%s\'";" (assignment_expression "pcVar2 = "unknown CSR `%s\'"" identifier = (string_literal ""unknown CSR `%s\'"" " string_content escape_sequence ")) ;) }) (else_clause "else {\n      if (cVar1 == '\x02') {\n        if (0x20 < DAT_00074c60) {\n          return;\n        }\n        goto LAB_00040550;\n      }\n      uVar4 = *(undefined4 *)*param_1;\n      pcVar2 = "Instruction %s requires absolute expression";\n    }" else (compound_statement "{\n      if (cVar1 == '\x02') {\n        if (0x20 < DAT_00074c60) {\n          return;\n        }\n        goto LAB_00040550;\n      }\n      uVar4 = *(undefined4 *)*param_1;\n      pcVar2 = "Instruction %s requires absolute expression";\n    }" { (if_statement "if (cVar1 == '\x02') {\n        if (0x20 < DAT_00074c60) {\n          return;\n        }\n        goto LAB_00040550;\n      }" if (parenthesized_expression "(cVar1 == '\x02')" ( (binary_expression "cVar1 == '\x02'" identifier == (char_literal "'\x02'" ' escape_sequence ')) )) (compound_statement "{\n        if (0x20 < DAT_00074c60) {\n          return;\n        }\n        goto LAB_00040550;\n      }" { (if_statement "if (0x20 < DAT_00074c60) {\n          return;\n        }" if (parenthesized_expression "(0x20 < DAT_00074c60)" ( (binary_expression "0x20 < DAT_00074c60" number_literal < identifier) )) (compound_statement "{\n          return;\n        }" { (return_statement "return;" return ;) })) (goto_statement "goto LAB_00040550;" goto statement_identifier ;) })) (expression_statement "uVar4 = *(undefined4 *)*param_1;" (assignment_expression "uVar4 = *(undefined4 *)*param_1" identifier = (pointer_expression "*(undefined4 *)*param_1" * (cast_expression "(undefined4 *)*param_1" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (pointer_expression "*param_1" * identifier)))) ;) (expression_statement "pcVar2 = "Instruction %s requires absolute expression";" (assignment_expression "pcVar2 = "Instruction %s requires absolute expression"" identifier = (string_literal ""Instruction %s requires absolute expression"" " string_content ")) ;) }))) (expression_statement "uVar3 = dcgettext(0,pcVar2,5);" (assignment_expression "uVar3 = dcgettext(0,pcVar2,5)" identifier = (call_expression "dcgettext(0,pcVar2,5)" identifier (argument_list "(0,pcVar2,5)" ( number_literal , identifier , number_literal )))) ;) (expression_statement "FUN_0002a430(uVar3,uVar4);" (call_expression "FUN_0002a430(uVar3,uVar4)" identifier (argument_list "(uVar3,uVar4)" ( identifier , identifier ))) ;) }))) (if_statement "if ((0x20 < DAT_00074c60) || (1 < (byte)(*(char *)(param_2 + 4) - 2U))) {\n    return;\n  }" if (parenthesized_expression "((0x20 < DAT_00074c60) || (1 < (byte)(*(char *)(param_2 + 4) - 2U)))" ( (binary_expression "(0x20 < DAT_00074c60) || (1 < (byte)(*(char *)(param_2 + 4) - 2U))" (parenthesized_expression "(0x20 < DAT_00074c60)" ( (binary_expression "0x20 < DAT_00074c60" number_literal < identifier) )) || (parenthesized_expression "(1 < (byte)(*(char *)(param_2 + 4) - 2U))" ( (binary_expression "1 < (byte)(*(char *)(param_2 + 4) - 2U)" number_literal < (call_expression "(byte)(*(char *)(param_2 + 4) - 2U)" (parenthesized_expression "(byte)" ( identifier )) (argument_list "(*(char *)(param_2 + 4) - 2U)" ( (binary_expression "*(char *)(param_2 + 4) - 2U" (pointer_expression "*(char *)(param_2 + 4)" * (cast_expression "(char *)(param_2 + 4)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_2 + 4)" ( (binary_expression "param_2 + 4" identifier + number_literal) )))) - number_literal) )))) ))) )) (compound_statement "{\n    return;\n  }" { (return_statement "return;" return ;) })) (labeled_statement "LAB_00040550:\n  FUN_000404e0();" statement_identifier : (expression_statement "FUN_000404e0();" (call_expression "FUN_000404e0()" identifier (argument_list "()" ( ))) ;)) (return_statement "return;" return ;) })))
(translation_unit "/* WARNING: Function: __x86.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */\n\nvoid __regparm3 check_absolute_expr(riscv_cl_insn *ip,expressionS *ex,bfd_boolean maybe_csr)\n\n{\n  char cVar1;\n  char *pcVar2;\n  char *pcVar3;\n  \n  cVar1 = ex->field_0x10;\n  if (cVar1 == '\x06') {\n    pcVar2 = (char *)dcgettext(0,"unsupported large constant",5);\n    as_bad(pcVar2);\n  }\n  else {\n    if ((cVar1 == '\x03') && ((maybe_csr & 1U) != 0)) {\n      pcVar3 = S_GET_NAME(ex->X_add_symbol);\n      pcVar2 = "unknown CSR `%s\'";\n    }\n    else {\n      if (cVar1 == '\x02') {\n        if (0x20 < xlen) {\n          return;\n        }\n        goto LAB_00040550;\n      }\n      pcVar3 = ip->insn_mo->name;\n      pcVar2 = "Instruction %s requires absolute expression";\n    }\n    pcVar2 = (char *)dcgettext(0,pcVar2,5);\n    as_bad(pcVar2,pcVar3);\n  }\n  if ((0x20 < xlen) || (1 < (byte)(ex->field_0x10 - 2))) {\n    return;\n  }\nLAB_00040550:\n  normalize_constant_expr(ex);\n  return;\n}\n\n" comment (function_definition "void __regparm3 check_absolute_expr(riscv_cl_insn *ip,expressionS *ex,bfd_boolean maybe_csr)\n\n{\n  char cVar1;\n  char *pcVar2;\n  char *pcVar3;\n  \n  cVar1 = ex->field_0x10;\n  if (cVar1 == '\x06') {\n    pcVar2 = (char *)dcgettext(0,"unsupported large constant",5);\n    as_bad(pcVar2);\n  }\n  else {\n    if ((cVar1 == '\x03') && ((maybe_csr & 1U) != 0)) {\n      pcVar3 = S_GET_NAME(ex->X_add_symbol);\n      pcVar2 = "unknown CSR `%s\'";\n    }\n    else {\n      if (cVar1 == '\x02') {\n        if (0x20 < xlen) {\n          return;\n        }\n        goto LAB_00040550;\n      }\n      pcVar3 = ip->insn_mo->name;\n      pcVar2 = "Instruction %s requires absolute expression";\n    }\n    pcVar2 = (char *)dcgettext(0,pcVar2,5);\n    as_bad(pcVar2,pcVar3);\n  }\n  if ((0x20 < xlen) || (1 < (byte)(ex->field_0x10 - 2))) {\n    return;\n  }\nLAB_00040550:\n  normalize_constant_expr(ex);\n  return;\n}" primitive_type (ERROR "__regparm3" identifier) (function_declarator "check_absolute_expr(riscv_cl_insn *ip,expressionS *ex,bfd_boolean maybe_csr)" identifier (parameter_list "(riscv_cl_insn *ip,expressionS *ex,bfd_boolean maybe_csr)" ( (parameter_declaration "riscv_cl_insn *ip" type_identifier (pointer_declarator "*ip" * identifier)) , (parameter_declaration "expressionS *ex" type_identifier (pointer_declarator "*ex" * identifier)) , (parameter_declaration "bfd_boolean maybe_csr" type_identifier identifier) ))) (compound_statement "{\n  char cVar1;\n  char *pcVar2;\n  char *pcVar3;\n  \n  cVar1 = ex->field_0x10;\n  if (cVar1 == '\x06') {\n    pcVar2 = (char *)dcgettext(0,"unsupported large constant",5);\n    as_bad(pcVar2);\n  }\n  else {\n    if ((cVar1 == '\x03') && ((maybe_csr & 1U) != 0)) {\n      pcVar3 = S_GET_NAME(ex->X_add_symbol);\n      pcVar2 = "unknown CSR `%s\'";\n    }\n    else {\n      if (cVar1 == '\x02') {\n        if (0x20 < xlen) {\n          return;\n        }\n        goto LAB_00040550;\n      }\n      pcVar3 = ip->insn_mo->name;\n      pcVar2 = "Instruction %s requires absolute expression";\n    }\n    pcVar2 = (char *)dcgettext(0,pcVar2,5);\n    as_bad(pcVar2,pcVar3);\n  }\n  if ((0x20 < xlen) || (1 < (byte)(ex->field_0x10 - 2))) {\n    return;\n  }\nLAB_00040550:\n  normalize_constant_expr(ex);\n  return;\n}" { (declaration "char cVar1;" primitive_type identifier ;) (declaration "char *pcVar2;" primitive_type (pointer_declarator "*pcVar2" * identifier) ;) (declaration "char *pcVar3;" primitive_type (pointer_declarator "*pcVar3" * identifier) ;) (expression_statement "cVar1 = ex->field_0x10;" (assignment_expression "cVar1 = ex->field_0x10" identifier = (field_expression "ex->field_0x10" identifier -> field_identifier)) ;) (if_statement "if (cVar1 == '\x06') {\n    pcVar2 = (char *)dcgettext(0,"unsupported large constant",5);\n    as_bad(pcVar2);\n  }\n  else {\n    if ((cVar1 == '\x03') && ((maybe_csr & 1U) != 0)) {\n      pcVar3 = S_GET_NAME(ex->X_add_symbol);\n      pcVar2 = "unknown CSR `%s\'";\n    }\n    else {\n      if (cVar1 == '\x02') {\n        if (0x20 < xlen) {\n          return;\n        }\n        goto LAB_00040550;\n      }\n      pcVar3 = ip->insn_mo->name;\n      pcVar2 = "Instruction %s requires absolute expression";\n    }\n    pcVar2 = (char *)dcgettext(0,pcVar2,5);\n    as_bad(pcVar2,pcVar3);\n  }" if (parenthesized_expression "(cVar1 == '\x06')" ( (binary_expression "cVar1 == '\x06'" identifier == (char_literal "'\x06'" ' escape_sequence ')) )) (compound_statement "{\n    pcVar2 = (char *)dcgettext(0,"unsupported large constant",5);\n    as_bad(pcVar2);\n  }" { (expression_statement "pcVar2 = (char *)dcgettext(0,"unsupported large constant",5);" (assignment_expression "pcVar2 = (char *)dcgettext(0,"unsupported large constant",5)" identifier = (cast_expression "(char *)dcgettext(0,"unsupported large constant",5)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (call_expression "dcgettext(0,"unsupported large constant",5)" identifier (argument_list "(0,"unsupported large constant",5)" ( number_literal , (string_literal ""unsupported large constant"" " string_content ") , number_literal ))))) ;) (expression_statement "as_bad(pcVar2);" (call_expression "as_bad(pcVar2)" identifier (argument_list "(pcVar2)" ( identifier ))) ;) }) (else_clause "else {\n    if ((cVar1 == '\x03') && ((maybe_csr & 1U) != 0)) {\n      pcVar3 = S_GET_NAME(ex->X_add_symbol);\n      pcVar2 = "unknown CSR `%s\'";\n    }\n    else {\n      if (cVar1 == '\x02') {\n        if (0x20 < xlen) {\n          return;\n        }\n        goto LAB_00040550;\n      }\n      pcVar3 = ip->insn_mo->name;\n      pcVar2 = "Instruction %s requires absolute expression";\n    }\n    pcVar2 = (char *)dcgettext(0,pcVar2,5);\n    as_bad(pcVar2,pcVar3);\n  }" else (compound_statement "{\n    if ((cVar1 == '\x03') && ((maybe_csr & 1U) != 0)) {\n      pcVar3 = S_GET_NAME(ex->X_add_symbol);\n      pcVar2 = "unknown CSR `%s\'";\n    }\n    else {\n      if (cVar1 == '\x02') {\n        if (0x20 < xlen) {\n          return;\n        }\n        goto LAB_00040550;\n      }\n      pcVar3 = ip->insn_mo->name;\n      pcVar2 = "Instruction %s requires absolute expression";\n    }\n    pcVar2 = (char *)dcgettext(0,pcVar2,5);\n    as_bad(pcVar2,pcVar3);\n  }" { (if_statement "if ((cVar1 == '\x03') && ((maybe_csr & 1U) != 0)) {\n      pcVar3 = S_GET_NAME(ex->X_add_symbol);\n      pcVar2 = "unknown CSR `%s\'";\n    }\n    else {\n      if (cVar1 == '\x02') {\n        if (0x20 < xlen) {\n          return;\n        }\n        goto LAB_00040550;\n      }\n      pcVar3 = ip->insn_mo->name;\n      pcVar2 = "Instruction %s requires absolute expression";\n    }" if (parenthesized_expression "((cVar1 == '\x03') && ((maybe_csr & 1U) != 0))" ( (binary_expression "(cVar1 == '\x03') && ((maybe_csr & 1U) != 0)" (parenthesized_expression "(cVar1 == '\x03')" ( (binary_expression "cVar1 == '\x03'" identifier == (char_literal "'\x03'" ' escape_sequence ')) )) && (parenthesized_expression "((maybe_csr & 1U) != 0)" ( (binary_expression "(maybe_csr & 1U) != 0" (parenthesized_expression "(maybe_csr & 1U)" ( (binary_expression "maybe_csr & 1U" identifier & number_literal) )) != number_literal) ))) )) (compound_statement "{\n      pcVar3 = S_GET_NAME(ex->X_add_symbol);\n      pcVar2 = "unknown CSR `%s\'";\n    }" { (expression_statement "pcVar3 = S_GET_NAME(ex->X_add_symbol);" (assignment_expression "pcVar3 = S_GET_NAME(ex->X_add_symbol)" identifier = (call_expression "S_GET_NAME(ex->X_add_symbol)" identifier (argument_list "(ex->X_add_symbol)" ( (field_expression "ex->X_add_symbol" identifier -> field_identifier) )))) ;) (expression_statement "pcVar2 = "unknown CSR `%s\'";" (assignment_expression "pcVar2 = "unknown CSR `%s\'"" identifier = (string_literal ""unknown CSR `%s\'"" " string_content escape_sequence ")) ;) }) (else_clause "else {\n      if (cVar1 == '\x02') {\n        if (0x20 < xlen) {\n          return;\n        }\n        goto LAB_00040550;\n      }\n      pcVar3 = ip->insn_mo->name;\n      pcVar2 = "Instruction %s requires absolute expression";\n    }" else (compound_statement "{\n      if (cVar1 == '\x02') {\n        if (0x20 < xlen) {\n          return;\n        }\n        goto LAB_00040550;\n      }\n      pcVar3 = ip->insn_mo->name;\n      pcVar2 = "Instruction %s requires absolute expression";\n    }" { (if_statement "if (cVar1 == '\x02') {\n        if (0x20 < xlen) {\n          return;\n        }\n        goto LAB_00040550;\n      }" if (parenthesized_expression "(cVar1 == '\x02')" ( (binary_expression "cVar1 == '\x02'" identifier == (char_literal "'\x02'" ' escape_sequence ')) )) (compound_statement "{\n        if (0x20 < xlen) {\n          return;\n        }\n        goto LAB_00040550;\n      }" { (if_statement "if (0x20 < xlen) {\n          return;\n        }" if (parenthesized_expression "(0x20 < xlen)" ( (binary_expression "0x20 < xlen" number_literal < identifier) )) (compound_statement "{\n          return;\n        }" { (return_statement "return;" return ;) })) (goto_statement "goto LAB_00040550;" goto statement_identifier ;) })) (expression_statement "pcVar3 = ip->insn_mo->name;" (assignment_expression "pcVar3 = ip->insn_mo->name" identifier = (field_expression "ip->insn_mo->name" (field_expression "ip->insn_mo" identifier -> field_identifier) -> field_identifier)) ;) (expression_statement "pcVar2 = "Instruction %s requires absolute expression";" (assignment_expression "pcVar2 = "Instruction %s requires absolute expression"" identifier = (string_literal ""Instruction %s requires absolute expression"" " string_content ")) ;) }))) (expression_statement "pcVar2 = (char *)dcgettext(0,pcVar2,5);" (assignment_expression "pcVar2 = (char *)dcgettext(0,pcVar2,5)" identifier = (cast_expression "(char *)dcgettext(0,pcVar2,5)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (call_expression "dcgettext(0,pcVar2,5)" identifier (argument_list "(0,pcVar2,5)" ( number_literal , identifier , number_literal ))))) ;) (expression_statement "as_bad(pcVar2,pcVar3);" (call_expression "as_bad(pcVar2,pcVar3)" identifier (argument_list "(pcVar2,pcVar3)" ( identifier , identifier ))) ;) }))) (if_statement "if ((0x20 < xlen) || (1 < (byte)(ex->field_0x10 - 2))) {\n    return;\n  }" if (parenthesized_expression "((0x20 < xlen) || (1 < (byte)(ex->field_0x10 - 2)))" ( (binary_expression "(0x20 < xlen) || (1 < (byte)(ex->field_0x10 - 2))" (parenthesized_expression "(0x20 < xlen)" ( (binary_expression "0x20 < xlen" number_literal < identifier) )) || (parenthesized_expression "(1 < (byte)(ex->field_0x10 - 2))" ( (binary_expression "1 < (byte)(ex->field_0x10 - 2)" number_literal < (call_expression "(byte)(ex->field_0x10 - 2)" (parenthesized_expression "(byte)" ( identifier )) (argument_list "(ex->field_0x10 - 2)" ( (binary_expression "ex->field_0x10 - 2" (field_expression "ex->field_0x10" identifier -> field_identifier) - number_literal) )))) ))) )) (compound_statement "{\n    return;\n  }" { (return_statement "return;" return ;) })) (labeled_statement "LAB_00040550:\n  normalize_constant_expr(ex);" statement_identifier : (expression_statement "normalize_constant_expr(ex);" (call_expression "normalize_constant_expr(ex)" identifier (argument_list "(ex)" ( identifier ))) ;)) (return_statement "return;" return ;) })))
(translation_unit "void __regparm3 FUN_00040520(undefined4 *param_1,undefined4 *param_2,uint param_3)\n\n{\n  char cVar1;\n  char *pcVar2;\n  undefined4 uVar3;\n  undefined4 uVar4;\n  \n  cVar1 = *(char *)(param_2 + 4);\n  if (cVar1 == '\x06') {\n    uVar4 = dcgettext(0,"unsupported large constant",5);\n    FUN_0002a430(uVar4);\n  }\n  else {\n    if ((cVar1 == '\x03') && ((param_3 & 1) != 0)) {\n      uVar4 = FUN_00036ce0(*param_2);\n      pcVar2 = "unknown CSR `%s\'";\n    }\n    else {\n      if (cVar1 == '\x02') {\n        if (0x20 < DAT_00074c60) {\n          return;\n        }\n        goto LAB_00040550;\n      }\n      uVar4 = *(undefined4 *)*param_1;\n      pcVar2 = "Instruction %s requires absolute expression";\n    }\n    uVar3 = dcgettext(0,pcVar2,5);\n    FUN_0002a430(uVar3,uVar4);\n  }\n  if ((0x20 < DAT_00074c60) || (1 < (byte)(*(char *)(param_2 + 4) - 2U))) {\n    return;\n  }\nLAB_00040550:\n  FUN_000404e0();\n  return;\n}\n\n" (function_definition "void __regparm3 FUN_00040520(undefined4 *param_1,undefined4 *param_2,uint param_3)\n\n{\n  char cVar1;\n  char *pcVar2;\n  undefined4 uVar3;\n  undefined4 uVar4;\n  \n  cVar1 = *(char *)(param_2 + 4);\n  if (cVar1 == '\x06') {\n    uVar4 = dcgettext(0,"unsupported large constant",5);\n    FUN_0002a430(uVar4);\n  }\n  else {\n    if ((cVar1 == '\x03') && ((param_3 & 1) != 0)) {\n      uVar4 = FUN_00036ce0(*param_2);\n      pcVar2 = "unknown CSR `%s\'";\n    }\n    else {\n      if (cVar1 == '\x02') {\n        if (0x20 < DAT_00074c60) {\n          return;\n        }\n        goto LAB_00040550;\n      }\n      uVar4 = *(undefined4 *)*param_1;\n      pcVar2 = "Instruction %s requires absolute expression";\n    }\n    uVar3 = dcgettext(0,pcVar2,5);\n    FUN_0002a430(uVar3,uVar4);\n  }\n  if ((0x20 < DAT_00074c60) || (1 < (byte)(*(char *)(param_2 + 4) - 2U))) {\n    return;\n  }\nLAB_00040550:\n  FUN_000404e0();\n  return;\n}" primitive_type (ERROR "__regparm3" identifier) (function_declarator "FUN_00040520(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 (pointer_declarator "*param_1" * identifier)) , (parameter_declaration "undefined4 *param_2" type_identifier (pointer_declarator "*param_2" * identifier)) , (parameter_declaration "uint param_3" type_identifier identifier) ))) (compound_statement "{\n  char cVar1;\n  char *pcVar2;\n  undefined4 uVar3;\n  undefined4 uVar4;\n  \n  cVar1 = *(char *)(param_2 + 4);\n  if (cVar1 == '\x06') {\n    uVar4 = dcgettext(0,"unsupported large constant",5);\n    FUN_0002a430(uVar4);\n  }\n  else {\n    if ((cVar1 == '\x03') && ((param_3 & 1) != 0)) {\n      uVar4 = FUN_00036ce0(*param_2);\n      pcVar2 = "unknown CSR `%s\'";\n    }\n    else {\n      if (cVar1 == '\x02') {\n        if (0x20 < DAT_00074c60) {\n          return;\n        }\n        goto LAB_00040550;\n      }\n      uVar4 = *(undefined4 *)*param_1;\n      pcVar2 = "Instruction %s requires absolute expression";\n    }\n    uVar3 = dcgettext(0,pcVar2,5);\n    FUN_0002a430(uVar3,uVar4);\n  }\n  if ((0x20 < DAT_00074c60) || (1 < (byte)(*(char *)(param_2 + 4) - 2U))) {\n    return;\n  }\nLAB_00040550:\n  FUN_000404e0();\n  return;\n}" { (declaration "char cVar1;" primitive_type identifier ;) (declaration "char *pcVar2;" primitive_type (pointer_declarator "*pcVar2" * identifier) ;) (declaration "undefined4 uVar3;" type_identifier identifier ;) (declaration "undefined4 uVar4;" type_identifier identifier ;) (expression_statement "cVar1 = *(char *)(param_2 + 4);" (assignment_expression "cVar1 = *(char *)(param_2 + 4)" identifier = (pointer_expression "*(char *)(param_2 + 4)" * (cast_expression "(char *)(param_2 + 4)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_2 + 4)" ( (binary_expression "param_2 + 4" identifier + number_literal) ))))) ;) (if_statement "if (cVar1 == '\x06') {\n    uVar4 = dcgettext(0,"unsupported large constant",5);\n    FUN_0002a430(uVar4);\n  }\n  else {\n    if ((cVar1 == '\x03') && ((param_3 & 1) != 0)) {\n      uVar4 = FUN_00036ce0(*param_2);\n      pcVar2 = "unknown CSR `%s\'";\n    }\n    else {\n      if (cVar1 == '\x02') {\n        if (0x20 < DAT_00074c60) {\n          return;\n        }\n        goto LAB_00040550;\n      }\n      uVar4 = *(undefined4 *)*param_1;\n      pcVar2 = "Instruction %s requires absolute expression";\n    }\n    uVar3 = dcgettext(0,pcVar2,5);\n    FUN_0002a430(uVar3,uVar4);\n  }" if (parenthesized_expression "(cVar1 == '\x06')" ( (binary_expression "cVar1 == '\x06'" identifier == (char_literal "'\x06'" ' escape_sequence ')) )) (compound_statement "{\n    uVar4 = dcgettext(0,"unsupported large constant",5);\n    FUN_0002a430(uVar4);\n  }" { (expression_statement "uVar4 = dcgettext(0,"unsupported large constant",5);" (assignment_expression "uVar4 = dcgettext(0,"unsupported large constant",5)" identifier = (call_expression "dcgettext(0,"unsupported large constant",5)" identifier (argument_list "(0,"unsupported large constant",5)" ( number_literal , (string_literal ""unsupported large constant"" " string_content ") , number_literal )))) ;) (expression_statement "FUN_0002a430(uVar4);" (call_expression "FUN_0002a430(uVar4)" identifier (argument_list "(uVar4)" ( identifier ))) ;) }) (else_clause "else {\n    if ((cVar1 == '\x03') && ((param_3 & 1) != 0)) {\n      uVar4 = FUN_00036ce0(*param_2);\n      pcVar2 = "unknown CSR `%s\'";\n    }\n    else {\n      if (cVar1 == '\x02') {\n        if (0x20 < DAT_00074c60) {\n          return;\n        }\n        goto LAB_00040550;\n      }\n      uVar4 = *(undefined4 *)*param_1;\n      pcVar2 = "Instruction %s requires absolute expression";\n    }\n    uVar3 = dcgettext(0,pcVar2,5);\n    FUN_0002a430(uVar3,uVar4);\n  }" else (compound_statement "{\n    if ((cVar1 == '\x03') && ((param_3 & 1) != 0)) {\n      uVar4 = FUN_00036ce0(*param_2);\n      pcVar2 = "unknown CSR `%s\'";\n    }\n    else {\n      if (cVar1 == '\x02') {\n        if (0x20 < DAT_00074c60) {\n          return;\n        }\n        goto LAB_00040550;\n      }\n      uVar4 = *(undefined4 *)*param_1;\n      pcVar2 = "Instruction %s requires absolute expression";\n    }\n    uVar3 = dcgettext(0,pcVar2,5);\n    FUN_0002a430(uVar3,uVar4);\n  }" { (if_statement "if ((cVar1 == '\x03') && ((param_3 & 1) != 0)) {\n      uVar4 = FUN_00036ce0(*param_2);\n      pcVar2 = "unknown CSR `%s\'";\n    }\n    else {\n      if (cVar1 == '\x02') {\n        if (0x20 < DAT_00074c60) {\n          return;\n        }\n        goto LAB_00040550;\n      }\n      uVar4 = *(undefined4 *)*param_1;\n      pcVar2 = "Instruction %s requires absolute expression";\n    }" if (parenthesized_expression "((cVar1 == '\x03') && ((param_3 & 1) != 0))" ( (binary_expression "(cVar1 == '\x03') && ((param_3 & 1) != 0)" (parenthesized_expression "(cVar1 == '\x03')" ( (binary_expression "cVar1 == '\x03'" identifier == (char_literal "'\x03'" ' escape_sequence ')) )) && (parenthesized_expression "((param_3 & 1) != 0)" ( (binary_expression "(param_3 & 1) != 0" (parenthesized_expression "(param_3 & 1)" ( (binary_expression "param_3 & 1" identifier & number_literal) )) != number_literal) ))) )) (compound_statement "{\n      uVar4 = FUN_00036ce0(*param_2);\n      pcVar2 = "unknown CSR `%s\'";\n    }" { (expression_statement "uVar4 = FUN_00036ce0(*param_2);" (assignment_expression "uVar4 = FUN_00036ce0(*param_2)" identifier = (call_expression "FUN_00036ce0(*param_2)" identifier (argument_list "(*param_2)" ( (pointer_expression "*param_2" * identifier) )))) ;) (expression_statement "pcVar2 = "unknown CSR `%s\'";" (assignment_expression "pcVar2 = "unknown CSR `%s\'"" identifier = (string_literal ""unknown CSR `%s\'"" " string_content escape_sequence ")) ;) }) (else_clause "else {\n      if (cVar1 == '\x02') {\n        if (0x20 < DAT_00074c60) {\n          return;\n        }\n        goto LAB_00040550;\n      }\n      uVar4 = *(undefined4 *)*param_1;\n      pcVar2 = "Instruction %s requires absolute expression";\n    }" else (compound_statement "{\n      if (cVar1 == '\x02') {\n        if (0x20 < DAT_00074c60) {\n          return;\n        }\n        goto LAB_00040550;\n      }\n      uVar4 = *(undefined4 *)*param_1;\n      pcVar2 = "Instruction %s requires absolute expression";\n    }" { (if_statement "if (cVar1 == '\x02') {\n        if (0x20 < DAT_00074c60) {\n          return;\n        }\n        goto LAB_00040550;\n      }" if (parenthesized_expression "(cVar1 == '\x02')" ( (binary_expression "cVar1 == '\x02'" identifier == (char_literal "'\x02'" ' escape_sequence ')) )) (compound_statement "{\n        if (0x20 < DAT_00074c60) {\n          return;\n        }\n        goto LAB_00040550;\n      }" { (if_statement "if (0x20 < DAT_00074c60) {\n          return;\n        }" if (parenthesized_expression "(0x20 < DAT_00074c60)" ( (binary_expression "0x20 < DAT_00074c60" number_literal < identifier) )) (compound_statement "{\n          return;\n        }" { (return_statement "return;" return ;) })) (goto_statement "goto LAB_00040550;" goto statement_identifier ;) })) (expression_statement "uVar4 = *(undefined4 *)*param_1;" (assignment_expression "uVar4 = *(undefined4 *)*param_1" identifier = (pointer_expression "*(undefined4 *)*param_1" * (cast_expression "(undefined4 *)*param_1" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (pointer_expression "*param_1" * identifier)))) ;) (expression_statement "pcVar2 = "Instruction %s requires absolute expression";" (assignment_expression "pcVar2 = "Instruction %s requires absolute expression"" identifier = (string_literal ""Instruction %s requires absolute expression"" " string_content ")) ;) }))) (expression_statement "uVar3 = dcgettext(0,pcVar2,5);" (assignment_expression "uVar3 = dcgettext(0,pcVar2,5)" identifier = (call_expression "dcgettext(0,pcVar2,5)" identifier (argument_list "(0,pcVar2,5)" ( number_literal , identifier , number_literal )))) ;) (expression_statement "FUN_0002a430(uVar3,uVar4);" (call_expression "FUN_0002a430(uVar3,uVar4)" identifier (argument_list "(uVar3,uVar4)" ( identifier , identifier ))) ;) }))) (if_statement "if ((0x20 < DAT_00074c60) || (1 < (byte)(*(char *)(param_2 + 4) - 2U))) {\n    return;\n  }" if (parenthesized_expression "((0x20 < DAT_00074c60) || (1 < (byte)(*(char *)(param_2 + 4) - 2U)))" ( (binary_expression "(0x20 < DAT_00074c60) || (1 < (byte)(*(char *)(param_2 + 4) - 2U))" (parenthesized_expression "(0x20 < DAT_00074c60)" ( (binary_expression "0x20 < DAT_00074c60" number_literal < identifier) )) || (parenthesized_expression "(1 < (byte)(*(char *)(param_2 + 4) - 2U))" ( (binary_expression "1 < (byte)(*(char *)(param_2 + 4) - 2U)" number_literal < (call_expression "(byte)(*(char *)(param_2 + 4) - 2U)" (parenthesized_expression "(byte)" ( identifier )) (argument_list "(*(char *)(param_2 + 4) - 2U)" ( (binary_expression "*(char *)(param_2 + 4) - 2U" (pointer_expression "*(char *)(param_2 + 4)" * (cast_expression "(char *)(param_2 + 4)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_2 + 4)" ( (binary_expression "param_2 + 4" identifier + number_literal) )))) - number_literal) )))) ))) )) (compound_statement "{\n    return;\n  }" { (return_statement "return;" return ;) })) (labeled_statement "LAB_00040550:\n  FUN_000404e0();" statement_identifier : (expression_statement "FUN_000404e0();" (call_expression "FUN_000404e0()" identifier (argument_list "()" ( ))) ;)) (return_statement "return;" return ;) })))
(translation_unit (function_definition TYPE (ERROR IDENT) (function_declarator IDENT (parameter_list ( (parameter_declaration TYPE (pointer_declarator * IDENT)) , (parameter_declaration TYPE (pointer_declarator * IDENT)) , (parameter_declaration TYPE IDENT) ))) (compound_statement { (declaration TYPE IDENT ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT == (char_literal ' escape_sequence ')) )) (compound_statement { (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( LIT , (string_literal " string_content ") , LIT )))) ;) (expression_statement (call_expression IDENT (argument_list ( IDENT ))) ;) }) (else_clause else (compound_statement { (if_statement if (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression IDENT == (char_literal ' escape_sequence ')) )) && (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression IDENT & LIT) )) != LIT) ))) )) (compound_statement { (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( (pointer_expression * IDENT) )))) ;) (expression_statement (assignment_expression IDENT = (string_literal " string_content escape_sequence ")) ;) }) (else_clause else (compound_statement { (if_statement if (parenthesized_expression ( (binary_expression IDENT == (char_literal ' escape_sequence ')) )) (compound_statement { (if_statement if (parenthesized_expression ( (binary_expression LIT < IDENT) )) (compound_statement { (return_statement return ;) })) (goto_statement goto statement_identifier ;) })) (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (pointer_expression * IDENT)))) ;) (expression_statement (assignment_expression IDENT = (string_literal " string_content ")) ;) }))) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( LIT , IDENT , LIT )))) ;) (expression_statement (call_expression IDENT (argument_list ( IDENT , IDENT ))) ;) }))) (if_statement if (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression LIT < IDENT) )) || (parenthesized_expression ( (binary_expression LIT < (call_expression (parenthesized_expression ( IDENT )) (argument_list ( (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) - LIT) )))) ))) )) (compound_statement { (return_statement return ;) })) (labeled_statement statement_identifier : (expression_statement (call_expression IDENT (argument_list ( ))) ;)) (return_statement return ;) })))
(function_definition "void __regparm3 FUN_00040520(undefined4 *param_1,undefined4 *param_2,uint param_3)\n\n{\n  char cVar1;\n  char *pcVar2;\n  undefined4 uVar3;\n  undefined4 uVar4;\n  \n  cVar1 = *(char *)(param_2 + 4);\n  if (cVar1 == '\x06') {\n    uVar4 = dcgettext(0,"unsupported large constant",5);\n    FUN_0002a430(uVar4);\n  }\n  else {\n    if ((cVar1 == '\x03') && ((param_3 & 1) != 0)) {\n      uVar4 = FUN_00036ce0(*param_2);\n      pcVar2 = "unknown CSR `%s\'";\n    }\n    else {\n      if (cVar1 == '\x02') {\n        if (0x20 < DAT_00074c60) {\n          return;\n        }\n        goto LAB_00040550;\n      }\n      uVar4 = *(undefined4 *)*param_1;\n      pcVar2 = "Instruction %s requires absolute expression";\n    }\n    uVar3 = dcgettext(0,pcVar2,5);\n    FUN_0002a430(uVar3,uVar4);\n  }\n  if ((0x20 < DAT_00074c60) || (1 < (byte)(*(char *)(param_2 + 4) - 2U))) {\n    return;\n  }\nLAB_00040550:\n  FUN_000404e0();\n  return;\n}" (primitive_type "void") (ERROR "__regparm3" (identifier "__regparm3")) (function_declarator "FUN_00040520(undefined4 *param_1,undefined4 *param_2,uint param_3)" (identifier "FUN_00040520") (parameter_list "(undefined4 *param_1,undefined4 *param_2,uint param_3)" (( "(") (parameter_declaration "undefined4 *param_1" (type_identifier "undefined4") (pointer_declarator "*param_1" (* "*") (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") (identifier "param_3")) () ")"))) (compound_statement "{\n  char cVar1;\n  char *pcVar2;\n  undefined4 uVar3;\n  undefined4 uVar4;\n  \n  cVar1 = *(char *)(param_2 + 4);\n  if (cVar1 == '\x06') {\n    uVar4 = dcgettext(0,"unsupported large constant",5);\n    FUN_0002a430(uVar4);\n  }\n  else {\n    if ((cVar1 == '\x03') && ((param_3 & 1) != 0)) {\n      uVar4 = FUN_00036ce0(*param_2);\n      pcVar2 = "unknown CSR `%s\'";\n    }\n    else {\n      if (cVar1 == '\x02') {\n        if (0x20 < DAT_00074c60) {\n          return;\n        }\n        goto LAB_00040550;\n      }\n      uVar4 = *(undefined4 *)*param_1;\n      pcVar2 = "Instruction %s requires absolute expression";\n    }\n    uVar3 = dcgettext(0,pcVar2,5);\n    FUN_0002a430(uVar3,uVar4);\n  }\n  if ((0x20 < DAT_00074c60) || (1 < (byte)(*(char *)(param_2 + 4) - 2U))) {\n    return;\n  }\nLAB_00040550:\n  FUN_000404e0();\n  return;\n}" ({ "{") (declaration "char cVar1;" (primitive_type "char") (identifier "cVar1") (; ";")) (declaration "char *pcVar2;" (primitive_type "char") (pointer_declarator "*pcVar2" (* "*") (identifier "pcVar2")) (; ";")) (declaration "undefined4 uVar3;" (type_identifier "undefined4") (identifier "uVar3") (; ";")) (declaration "undefined4 uVar4;" (type_identifier "undefined4") (identifier "uVar4") (; ";")) (expression_statement "cVar1 = *(char *)(param_2 + 4);" (assignment_expression "cVar1 = *(char *)(param_2 + 4)" (identifier "cVar1") (= "=") (pointer_expression "*(char *)(param_2 + 4)" (* "*") (cast_expression "(char *)(param_2 + 4)" (( "(") (type_descriptor "char *" (primitive_type "char") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_2 + 4)" (( "(") (binary_expression "param_2 + 4" (identifier "param_2") (+ "+") (number_literal "4")) () ")"))))) (; ";")) (if_statement "if (cVar1 == '\x06') {\n    uVar4 = dcgettext(0,"unsupported large constant",5);\n    FUN_0002a430(uVar4);\n  }\n  else {\n    if ((cVar1 == '\x03') && ((param_3 & 1) != 0)) {\n      uVar4 = FUN_00036ce0(*param_2);\n      pcVar2 = "unknown CSR `%s\'";\n    }\n    else {\n      if (cVar1 == '\x02') {\n        if (0x20 < DAT_00074c60) {\n          return;\n        }\n        goto LAB_00040550;\n      }\n      uVar4 = *(undefined4 *)*param_1;\n      pcVar2 = "Instruction %s requires absolute expression";\n    }\n    uVar3 = dcgettext(0,pcVar2,5);\n    FUN_0002a430(uVar3,uVar4);\n  }" (if "if") (parenthesized_expression "(cVar1 == '\x06')" (( "(") (binary_expression "cVar1 == '\x06'" (identifier "cVar1") (== "==") (char_literal "'\x06'" (' "'") (escape_sequence "\x06") (' "'"))) () ")")) (compound_statement "{\n    uVar4 = dcgettext(0,"unsupported large constant",5);\n    FUN_0002a430(uVar4);\n  }" ({ "{") (expression_statement "uVar4 = dcgettext(0,"unsupported large constant",5);" (assignment_expression "uVar4 = dcgettext(0,"unsupported large constant",5)" (identifier "uVar4") (= "=") (call_expression "dcgettext(0,"unsupported large constant",5)" (identifier "dcgettext") (argument_list "(0,"unsupported large constant",5)" (( "(") (number_literal "0") (, ",") (string_literal ""unsupported large constant"" (" """) (string_content "unsupported large constant") (" """)) (, ",") (number_literal "5") () ")")))) (; ";")) (expression_statement "FUN_0002a430(uVar4);" (call_expression "FUN_0002a430(uVar4)" (identifier "FUN_0002a430") (argument_list "(uVar4)" (( "(") (identifier "uVar4") () ")"))) (; ";")) (} "}")) (else_clause "else {\n    if ((cVar1 == '\x03') && ((param_3 & 1) != 0)) {\n      uVar4 = FUN_00036ce0(*param_2);\n      pcVar2 = "unknown CSR `%s\'";\n    }\n    else {\n      if (cVar1 == '\x02') {\n        if (0x20 < DAT_00074c60) {\n          return;\n        }\n        goto LAB_00040550;\n      }\n      uVar4 = *(undefined4 *)*param_1;\n      pcVar2 = "Instruction %s requires absolute expression";\n    }\n    uVar3 = dcgettext(0,pcVar2,5);\n    FUN_0002a430(uVar3,uVar4);\n  }" (else "else") (compound_statement "{\n    if ((cVar1 == '\x03') && ((param_3 & 1) != 0)) {\n      uVar4 = FUN_00036ce0(*param_2);\n      pcVar2 = "unknown CSR `%s\'";\n    }\n    else {\n      if (cVar1 == '\x02') {\n        if (0x20 < DAT_00074c60) {\n          return;\n        }\n        goto LAB_00040550;\n      }\n      uVar4 = *(undefined4 *)*param_1;\n      pcVar2 = "Instruction %s requires absolute expression";\n    }\n    uVar3 = dcgettext(0,pcVar2,5);\n    FUN_0002a430(uVar3,uVar4);\n  }" ({ "{") (if_statement "if ((cVar1 == '\x03') && ((param_3 & 1) != 0)) {\n      uVar4 = FUN_00036ce0(*param_2);\n      pcVar2 = "unknown CSR `%s\'";\n    }\n    else {\n      if (cVar1 == '\x02') {\n        if (0x20 < DAT_00074c60) {\n          return;\n        }\n        goto LAB_00040550;\n      }\n      uVar4 = *(undefined4 *)*param_1;\n      pcVar2 = "Instruction %s requires absolute expression";\n    }" (if "if") (parenthesized_expression "((cVar1 == '\x03') && ((param_3 & 1) != 0))" (( "(") (binary_expression "(cVar1 == '\x03') && ((param_3 & 1) != 0)" (parenthesized_expression "(cVar1 == '\x03')" (( "(") (binary_expression "cVar1 == '\x03'" (identifier "cVar1") (== "==") (char_literal "'\x03'" (' "'") (escape_sequence "\x03") (' "'"))) () ")")) (&& "&&") (parenthesized_expression "((param_3 & 1) != 0)" (( "(") (binary_expression "(param_3 & 1) != 0" (parenthesized_expression "(param_3 & 1)" (( "(") (binary_expression "param_3 & 1" (identifier "param_3") (& "&") (number_literal "1")) () ")")) (!= "!=") (number_literal "0")) () ")"))) () ")")) (compound_statement "{\n      uVar4 = FUN_00036ce0(*param_2);\n      pcVar2 = "unknown CSR `%s\'";\n    }" ({ "{") (expression_statement "uVar4 = FUN_00036ce0(*param_2);" (assignment_expression "uVar4 = FUN_00036ce0(*param_2)" (identifier "uVar4") (= "=") (call_expression "FUN_00036ce0(*param_2)" (identifier "FUN_00036ce0") (argument_list "(*param_2)" (( "(") (pointer_expression "*param_2" (* "*") (identifier "param_2")) () ")")))) (; ";")) (expression_statement "pcVar2 = "unknown CSR `%s\'";" (assignment_expression "pcVar2 = "unknown CSR `%s\'"" (identifier "pcVar2") (= "=") (string_literal ""unknown CSR `%s\'"" (" """) (string_content "unknown CSR `%s") (escape_sequence "\'") (" """))) (; ";")) (} "}")) (else_clause "else {\n      if (cVar1 == '\x02') {\n        if (0x20 < DAT_00074c60) {\n          return;\n        }\n        goto LAB_00040550;\n      }\n      uVar4 = *(undefined4 *)*param_1;\n      pcVar2 = "Instruction %s requires absolute expression";\n    }" (else "else") (compound_statement "{\n      if (cVar1 == '\x02') {\n        if (0x20 < DAT_00074c60) {\n          return;\n        }\n        goto LAB_00040550;\n      }\n      uVar4 = *(undefined4 *)*param_1;\n      pcVar2 = "Instruction %s requires absolute expression";\n    }" ({ "{") (if_statement "if (cVar1 == '\x02') {\n        if (0x20 < DAT_00074c60) {\n          return;\n        }\n        goto LAB_00040550;\n      }" (if "if") (parenthesized_expression "(cVar1 == '\x02')" (( "(") (binary_expression "cVar1 == '\x02'" (identifier "cVar1") (== "==") (char_literal "'\x02'" (' "'") (escape_sequence "\x02") (' "'"))) () ")")) (compound_statement "{\n        if (0x20 < DAT_00074c60) {\n          return;\n        }\n        goto LAB_00040550;\n      }" ({ "{") (if_statement "if (0x20 < DAT_00074c60) {\n          return;\n        }" (if "if") (parenthesized_expression "(0x20 < DAT_00074c60)" (( "(") (binary_expression "0x20 < DAT_00074c60" (number_literal "0x20") (< "<") (identifier "DAT_00074c60")) () ")")) (compound_statement "{\n          return;\n        }" ({ "{") (return_statement "return;" (return "return") (; ";")) (} "}"))) (goto_statement "goto LAB_00040550;" (goto "goto") (statement_identifier "LAB_00040550") (; ";")) (} "}"))) (expression_statement "uVar4 = *(undefined4 *)*param_1;" (assignment_expression "uVar4 = *(undefined4 *)*param_1" (identifier "uVar4") (= "=") (pointer_expression "*(undefined4 *)*param_1" (* "*") (cast_expression "(undefined4 *)*param_1" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (pointer_expression "*param_1" (* "*") (identifier "param_1"))))) (; ";")) (expression_statement "pcVar2 = "Instruction %s requires absolute expression";" (assignment_expression "pcVar2 = "Instruction %s requires absolute expression"" (identifier "pcVar2") (= "=") (string_literal ""Instruction %s requires absolute expression"" (" """) (string_content "Instruction %s requires absolute expression") (" """))) (; ";")) (} "}")))) (expression_statement "uVar3 = dcgettext(0,pcVar2,5);" (assignment_expression "uVar3 = dcgettext(0,pcVar2,5)" (identifier "uVar3") (= "=") (call_expression "dcgettext(0,pcVar2,5)" (identifier "dcgettext") (argument_list "(0,pcVar2,5)" (( "(") (number_literal "0") (, ",") (identifier "pcVar2") (, ",") (number_literal "5") () ")")))) (; ";")) (expression_statement "FUN_0002a430(uVar3,uVar4);" (call_expression "FUN_0002a430(uVar3,uVar4)" (identifier "FUN_0002a430") (argument_list "(uVar3,uVar4)" (( "(") (identifier "uVar3") (, ",") (identifier "uVar4") () ")"))) (; ";")) (} "}")))) (if_statement "if ((0x20 < DAT_00074c60) || (1 < (byte)(*(char *)(param_2 + 4) - 2U))) {\n    return;\n  }" (if "if") (parenthesized_expression "((0x20 < DAT_00074c60) || (1 < (byte)(*(char *)(param_2 + 4) - 2U)))" (( "(") (binary_expression "(0x20 < DAT_00074c60) || (1 < (byte)(*(char *)(param_2 + 4) - 2U))" (parenthesized_expression "(0x20 < DAT_00074c60)" (( "(") (binary_expression "0x20 < DAT_00074c60" (number_literal "0x20") (< "<") (identifier "DAT_00074c60")) () ")")) (|| "||") (parenthesized_expression "(1 < (byte)(*(char *)(param_2 + 4) - 2U))" (( "(") (binary_expression "1 < (byte)(*(char *)(param_2 + 4) - 2U)" (number_literal "1") (< "<") (call_expression "(byte)(*(char *)(param_2 + 4) - 2U)" (parenthesized_expression "(byte)" (( "(") (identifier "byte") () ")")) (argument_list "(*(char *)(param_2 + 4) - 2U)" (( "(") (binary_expression "*(char *)(param_2 + 4) - 2U" (pointer_expression "*(char *)(param_2 + 4)" (* "*") (cast_expression "(char *)(param_2 + 4)" (( "(") (type_descriptor "char *" (primitive_type "char") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_2 + 4)" (( "(") (binary_expression "param_2 + 4" (identifier "param_2") (+ "+") (number_literal "4")) () ")")))) (- "-") (number_literal "2U")) () ")")))) () ")"))) () ")")) (compound_statement "{\n    return;\n  }" ({ "{") (return_statement "return;" (return "return") (; ";")) (} "}"))) (labeled_statement "LAB_00040550:\n  FUN_000404e0();" (statement_identifier "LAB_00040550") (: ":") (expression_statement "FUN_000404e0();" (call_expression "FUN_000404e0()" (identifier "FUN_000404e0") (argument_list "()" (( "(") () ")"))) (; ";"))) (return_statement "return;" (return "return") (; ";")) (} "}")))

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

void __regparm3 function_1(type_1 *ip,type_2 *ex,type_3 var_4)

{
  char var_1;
  char *pcVar2;
  char *pcVar3;
  
  var_1 = ex->field_0x10;
  if (var_1 == '\x06') {
    pcVar2 = (char *)var_2(0,"unsupported large constant",5);
    var_3(pcVar2);
  }
  else {
    if ((var_1 == '\x03') && ((var_4 & 1U) != 0)) {
      pcVar3 = var_5(ex->X_add_symbol);
      pcVar2 = "unknown CSR `%s\'";
    }
    else {
      if (var_1 == '\x02') {
        if (0x20 < var_6) {
          return;
        }
        goto LAB_00040550;
      }
      pcVar3 = ip->insn_mo->name;
      pcVar2 = "Instruction %s requires absolute expression";
    }
    pcVar2 = (char *)var_2(0,pcVar2,5);
    var_3(pcVar2,pcVar3);
  }
  if ((0x20 < var_6) || (1 < (byte)(ex->field_0x10 - 2))) {
    return;
  }
LAB_00040550:
  var_7(ex);
  return;
}


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

/* WARNING: Function: __i686.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */

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

{
  char cVar1;
  char *pcVar2;
  undefined4 uVar3;
  undefined4 uVar4;
  
  cVar1 = *(char *)(param_2 + 4);
  if (cVar1 == '\x06') {
    uVar4 = dcgettext(0,"unsupported large constant",5);
    FUN_0002a430(uVar4);
  }
  else {
    if ((cVar1 == '\x03') && ((param_3 & 1) != 0)) {
      uVar4 = FUN_00036ce0(*param_2);
      pcVar2 = "unknown CSR `%s\'";
    }
    else {
      if (cVar1 == '\x02') {
        if (0x20 < DAT_00074c60) {
          return;
        }
        goto LAB_00040550;
      }
      uVar4 = *(undefined4 *)*param_1;
      pcVar2 = "Instruction %s requires absolute expression";
    }
    uVar3 = dcgettext(0,pcVar2,5);
    FUN_0002a430(uVar3,uVar4);
  }
  if ((0x20 < DAT_00074c60) || (1 < (byte)(*(char *)(param_2 + 4) - 2U))) {
    return;
  }
LAB_00040550:
  FUN_000404e0();
  return;
}

