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

int dc_top_of_stack(dc_data *result)

{
  anon_union_4_2_78161589_for_v aVar1;
  undefined *puVar2;
  int iVar3;
  
  puVar2 = PTR_stderr_0001dfa4;
  if (dc_stack == (dc_list *)0x0) {
    __fprintf_chk(*(undefined4 *)PTR_stderr_0001dfa4,1,"%s: stack empty\n",progname);
    checkferror_output(*(FILE **)puVar2);
    iVar3 = 2;
  }
  else {
    if (1 < (dc_stack->value).dc_type - DC_NUMBER) {
      dc_garbage("at top of stack",-1);
    }
    aVar1 = (dc_stack->value).v;
    result->dc_type = (dc_stack->value).dc_type;
    result->v = aVar1;
    iVar3 = 0;
  }
  return iVar3;
}



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

undefined4 FUN_000137a0(int *param_1)

{
  int iVar1;
  undefined *puVar2;
  undefined4 uVar3;
  
  puVar2 = PTR_stderr_0001dfa4;
  if (DAT_0001e460 == (int *)0x0) {
    __fprintf_chk(*(undefined4 *)PTR_stderr_0001dfa4,1,"%s: stack empty\n",DAT_0001e478);
    FUN_00018780(*(undefined4 *)puVar2);
    uVar3 = 2;
  }
  else {
    if (1 < *DAT_0001e460 - 1U) {
      FUN_00011b70("at top of stack",0xffffffff);
    }
    iVar1 = DAT_0001e460[1];
    *param_1 = *DAT_0001e460;
    param_1[1] = iVar1;
    uVar3 = 0;
  }
  return uVar3;
}


PUSH ESI
PUSH EBX
CALL 0x00011640
ADD EBX,0xa741
SUB ESP,0x4
MOV EAX,dword ptr [EBX + 0x578]
TEST EAX,EAX
JZ 0x000137f8
MOV ESI,dword ptr [EAX]
LEA EDX,[ESI + -0x1]
CMP EDX,0x1
JBE 0x000137de
SUB ESP,0x8
LEA EAX,[EBX + 0xffffb561]
PUSH -0x1
PUSH EAX
CALL 0x00011b70
MOV EAX,dword ptr [EBX + 0x578]
ADD ESP,0x10
MOV ECX,dword ptr [EAX]
MOV EBX,dword ptr [EAX + 0x4]
MOV EAX,dword ptr [ESP + 0x10]
MOV dword ptr [EAX],ECX
MOV dword ptr [EAX + 0x4],EBX
XOR EAX,EAX
ADD ESP,0x4
POP EBX
POP ESI
RET
LEA EAX,[EBX + 0x590]
MOV ESI,dword ptr [EBX + 0xbc]
PUSH dword ptr [EAX]
LEA EAX,[EBX + 0xffffb9de]
PUSH EAX
PUSH 0x1
PUSH dword ptr [ESI]
CALL 0x00011270
POP EAX
PUSH dword ptr [ESI]
CALL 0x00018780
ADD ESP,0x10
MOV EAX,0x2
JMP 0x000137ee
(translation_unit "/* WARNING: Function: __i686.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */\n\nundefined4 FUN_000137a0(int *param_1)\n\n{\n  int iVar1;\n  undefined *puVar2;\n  undefined4 uVar3;\n  \n  puVar2 = PTR_stderr_0001dfa4;\n  if (DAT_0001e460 == (int *)0x0) {\n    __fprintf_chk(*(undefined4 *)PTR_stderr_0001dfa4,1,"%s: stack empty\n",DAT_0001e478);\n    FUN_00018780(*(undefined4 *)puVar2);\n    uVar3 = 2;\n  }\n  else {\n    if (1 < *DAT_0001e460 - 1U) {\n      FUN_00011b70("at top of stack",0xffffffff);\n    }\n    iVar1 = DAT_0001e460[1];\n    *param_1 = *DAT_0001e460;\n    param_1[1] = iVar1;\n    uVar3 = 0;\n  }\n  return uVar3;\n}\n\n" comment (function_definition "undefined4 FUN_000137a0(int *param_1)\n\n{\n  int iVar1;\n  undefined *puVar2;\n  undefined4 uVar3;\n  \n  puVar2 = PTR_stderr_0001dfa4;\n  if (DAT_0001e460 == (int *)0x0) {\n    __fprintf_chk(*(undefined4 *)PTR_stderr_0001dfa4,1,"%s: stack empty\n",DAT_0001e478);\n    FUN_00018780(*(undefined4 *)puVar2);\n    uVar3 = 2;\n  }\n  else {\n    if (1 < *DAT_0001e460 - 1U) {\n      FUN_00011b70("at top of stack",0xffffffff);\n    }\n    iVar1 = DAT_0001e460[1];\n    *param_1 = *DAT_0001e460;\n    param_1[1] = iVar1;\n    uVar3 = 0;\n  }\n  return uVar3;\n}" type_identifier (function_declarator "FUN_000137a0(int *param_1)" identifier (parameter_list "(int *param_1)" ( (parameter_declaration "int *param_1" primitive_type (pointer_declarator "*param_1" * identifier)) ))) (compound_statement "{\n  int iVar1;\n  undefined *puVar2;\n  undefined4 uVar3;\n  \n  puVar2 = PTR_stderr_0001dfa4;\n  if (DAT_0001e460 == (int *)0x0) {\n    __fprintf_chk(*(undefined4 *)PTR_stderr_0001dfa4,1,"%s: stack empty\n",DAT_0001e478);\n    FUN_00018780(*(undefined4 *)puVar2);\n    uVar3 = 2;\n  }\n  else {\n    if (1 < *DAT_0001e460 - 1U) {\n      FUN_00011b70("at top of stack",0xffffffff);\n    }\n    iVar1 = DAT_0001e460[1];\n    *param_1 = *DAT_0001e460;\n    param_1[1] = iVar1;\n    uVar3 = 0;\n  }\n  return uVar3;\n}" { (declaration "int iVar1;" primitive_type identifier ;) (declaration "undefined *puVar2;" type_identifier (pointer_declarator "*puVar2" * identifier) ;) (declaration "undefined4 uVar3;" type_identifier identifier ;) (expression_statement "puVar2 = PTR_stderr_0001dfa4;" (assignment_expression "puVar2 = PTR_stderr_0001dfa4" identifier = identifier) ;) (if_statement "if (DAT_0001e460 == (int *)0x0) {\n    __fprintf_chk(*(undefined4 *)PTR_stderr_0001dfa4,1,"%s: stack empty\n",DAT_0001e478);\n    FUN_00018780(*(undefined4 *)puVar2);\n    uVar3 = 2;\n  }\n  else {\n    if (1 < *DAT_0001e460 - 1U) {\n      FUN_00011b70("at top of stack",0xffffffff);\n    }\n    iVar1 = DAT_0001e460[1];\n    *param_1 = *DAT_0001e460;\n    param_1[1] = iVar1;\n    uVar3 = 0;\n  }" if (parenthesized_expression "(DAT_0001e460 == (int *)0x0)" ( (binary_expression "DAT_0001e460 == (int *)0x0" identifier == (cast_expression "(int *)0x0" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n    __fprintf_chk(*(undefined4 *)PTR_stderr_0001dfa4,1,"%s: stack empty\n",DAT_0001e478);\n    FUN_00018780(*(undefined4 *)puVar2);\n    uVar3 = 2;\n  }" { (expression_statement "__fprintf_chk(*(undefined4 *)PTR_stderr_0001dfa4,1,"%s: stack empty\n",DAT_0001e478);" (call_expression "__fprintf_chk(*(undefined4 *)PTR_stderr_0001dfa4,1,"%s: stack empty\n",DAT_0001e478)" identifier (argument_list "(*(undefined4 *)PTR_stderr_0001dfa4,1,"%s: stack empty\n",DAT_0001e478)" ( (pointer_expression "*(undefined4 *)PTR_stderr_0001dfa4" * (cast_expression "(undefined4 *)PTR_stderr_0001dfa4" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) , number_literal , (string_literal ""%s: stack empty\n"" " string_content escape_sequence ") , identifier ))) ;) (expression_statement "FUN_00018780(*(undefined4 *)puVar2);" (call_expression "FUN_00018780(*(undefined4 *)puVar2)" identifier (argument_list "(*(undefined4 *)puVar2)" ( (pointer_expression "*(undefined4 *)puVar2" * (cast_expression "(undefined4 *)puVar2" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) ))) ;) (expression_statement "uVar3 = 2;" (assignment_expression "uVar3 = 2" identifier = number_literal) ;) }) (else_clause "else {\n    if (1 < *DAT_0001e460 - 1U) {\n      FUN_00011b70("at top of stack",0xffffffff);\n    }\n    iVar1 = DAT_0001e460[1];\n    *param_1 = *DAT_0001e460;\n    param_1[1] = iVar1;\n    uVar3 = 0;\n  }" else (compound_statement "{\n    if (1 < *DAT_0001e460 - 1U) {\n      FUN_00011b70("at top of stack",0xffffffff);\n    }\n    iVar1 = DAT_0001e460[1];\n    *param_1 = *DAT_0001e460;\n    param_1[1] = iVar1;\n    uVar3 = 0;\n  }" { (if_statement "if (1 < *DAT_0001e460 - 1U) {\n      FUN_00011b70("at top of stack",0xffffffff);\n    }" if (parenthesized_expression "(1 < *DAT_0001e460 - 1U)" ( (binary_expression "1 < *DAT_0001e460 - 1U" number_literal < (binary_expression "*DAT_0001e460 - 1U" (pointer_expression "*DAT_0001e460" * identifier) - number_literal)) )) (compound_statement "{\n      FUN_00011b70("at top of stack",0xffffffff);\n    }" { (expression_statement "FUN_00011b70("at top of stack",0xffffffff);" (call_expression "FUN_00011b70("at top of stack",0xffffffff)" identifier (argument_list "("at top of stack",0xffffffff)" ( (string_literal ""at top of stack"" " string_content ") , number_literal ))) ;) })) (expression_statement "iVar1 = DAT_0001e460[1];" (assignment_expression "iVar1 = DAT_0001e460[1]" identifier = (subscript_expression "DAT_0001e460[1]" identifier [ number_literal ])) ;) (expression_statement "*param_1 = *DAT_0001e460;" (assignment_expression "*param_1 = *DAT_0001e460" (pointer_expression "*param_1" * identifier) = (pointer_expression "*DAT_0001e460" * identifier)) ;) (expression_statement "param_1[1] = iVar1;" (assignment_expression "param_1[1] = iVar1" (subscript_expression "param_1[1]" identifier [ number_literal ]) = identifier) ;) (expression_statement "uVar3 = 0;" (assignment_expression "uVar3 = 0" identifier = number_literal) ;) }))) (return_statement "return uVar3;" return identifier ;) })))
(translation_unit "/* WARNING: Function: __x86.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */\n/* WARNING: Unknown calling convention */\n\nint dc_top_of_stack(dc_data *result)\n\n{\n  anon_union_4_2_78161589_for_v aVar1;\n  undefined *puVar2;\n  int iVar3;\n  \n  puVar2 = PTR_stderr_0001dfa4;\n  if (dc_stack == (dc_list *)0x0) {\n    __fprintf_chk(*(undefined4 *)PTR_stderr_0001dfa4,1,"%s: stack empty\n",progname);\n    checkferror_output(*(FILE **)puVar2);\n    iVar3 = 2;\n  }\n  else {\n    if (1 < (dc_stack->value).dc_type - DC_NUMBER) {\n      dc_garbage("at top of stack",-1);\n    }\n    aVar1 = (dc_stack->value).v;\n    result->dc_type = (dc_stack->value).dc_type;\n    result->v = aVar1;\n    iVar3 = 0;\n  }\n  return iVar3;\n}\n\n" comment comment (function_definition "int dc_top_of_stack(dc_data *result)\n\n{\n  anon_union_4_2_78161589_for_v aVar1;\n  undefined *puVar2;\n  int iVar3;\n  \n  puVar2 = PTR_stderr_0001dfa4;\n  if (dc_stack == (dc_list *)0x0) {\n    __fprintf_chk(*(undefined4 *)PTR_stderr_0001dfa4,1,"%s: stack empty\n",progname);\n    checkferror_output(*(FILE **)puVar2);\n    iVar3 = 2;\n  }\n  else {\n    if (1 < (dc_stack->value).dc_type - DC_NUMBER) {\n      dc_garbage("at top of stack",-1);\n    }\n    aVar1 = (dc_stack->value).v;\n    result->dc_type = (dc_stack->value).dc_type;\n    result->v = aVar1;\n    iVar3 = 0;\n  }\n  return iVar3;\n}" primitive_type (function_declarator "dc_top_of_stack(dc_data *result)" identifier (parameter_list "(dc_data *result)" ( (parameter_declaration "dc_data *result" type_identifier (pointer_declarator "*result" * identifier)) ))) (compound_statement "{\n  anon_union_4_2_78161589_for_v aVar1;\n  undefined *puVar2;\n  int iVar3;\n  \n  puVar2 = PTR_stderr_0001dfa4;\n  if (dc_stack == (dc_list *)0x0) {\n    __fprintf_chk(*(undefined4 *)PTR_stderr_0001dfa4,1,"%s: stack empty\n",progname);\n    checkferror_output(*(FILE **)puVar2);\n    iVar3 = 2;\n  }\n  else {\n    if (1 < (dc_stack->value).dc_type - DC_NUMBER) {\n      dc_garbage("at top of stack",-1);\n    }\n    aVar1 = (dc_stack->value).v;\n    result->dc_type = (dc_stack->value).dc_type;\n    result->v = aVar1;\n    iVar3 = 0;\n  }\n  return iVar3;\n}" { (declaration "anon_union_4_2_78161589_for_v aVar1;" type_identifier identifier ;) (declaration "undefined *puVar2;" type_identifier (pointer_declarator "*puVar2" * identifier) ;) (declaration "int iVar3;" primitive_type identifier ;) (expression_statement "puVar2 = PTR_stderr_0001dfa4;" (assignment_expression "puVar2 = PTR_stderr_0001dfa4" identifier = identifier) ;) (if_statement "if (dc_stack == (dc_list *)0x0) {\n    __fprintf_chk(*(undefined4 *)PTR_stderr_0001dfa4,1,"%s: stack empty\n",progname);\n    checkferror_output(*(FILE **)puVar2);\n    iVar3 = 2;\n  }\n  else {\n    if (1 < (dc_stack->value).dc_type - DC_NUMBER) {\n      dc_garbage("at top of stack",-1);\n    }\n    aVar1 = (dc_stack->value).v;\n    result->dc_type = (dc_stack->value).dc_type;\n    result->v = aVar1;\n    iVar3 = 0;\n  }" if (parenthesized_expression "(dc_stack == (dc_list *)0x0)" ( (binary_expression "dc_stack == (dc_list *)0x0" identifier == (cast_expression "(dc_list *)0x0" ( (type_descriptor "dc_list *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n    __fprintf_chk(*(undefined4 *)PTR_stderr_0001dfa4,1,"%s: stack empty\n",progname);\n    checkferror_output(*(FILE **)puVar2);\n    iVar3 = 2;\n  }" { (expression_statement "__fprintf_chk(*(undefined4 *)PTR_stderr_0001dfa4,1,"%s: stack empty\n",progname);" (call_expression "__fprintf_chk(*(undefined4 *)PTR_stderr_0001dfa4,1,"%s: stack empty\n",progname)" identifier (argument_list "(*(undefined4 *)PTR_stderr_0001dfa4,1,"%s: stack empty\n",progname)" ( (pointer_expression "*(undefined4 *)PTR_stderr_0001dfa4" * (cast_expression "(undefined4 *)PTR_stderr_0001dfa4" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) , number_literal , (string_literal ""%s: stack empty\n"" " string_content escape_sequence ") , identifier ))) ;) (expression_statement "checkferror_output(*(FILE **)puVar2);" (call_expression "checkferror_output(*(FILE **)puVar2)" identifier (argument_list "(*(FILE **)puVar2)" ( (pointer_expression "*(FILE **)puVar2" * (cast_expression "(FILE **)puVar2" ( (type_descriptor "FILE **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) identifier)) ))) ;) (expression_statement "iVar3 = 2;" (assignment_expression "iVar3 = 2" identifier = number_literal) ;) }) (else_clause "else {\n    if (1 < (dc_stack->value).dc_type - DC_NUMBER) {\n      dc_garbage("at top of stack",-1);\n    }\n    aVar1 = (dc_stack->value).v;\n    result->dc_type = (dc_stack->value).dc_type;\n    result->v = aVar1;\n    iVar3 = 0;\n  }" else (compound_statement "{\n    if (1 < (dc_stack->value).dc_type - DC_NUMBER) {\n      dc_garbage("at top of stack",-1);\n    }\n    aVar1 = (dc_stack->value).v;\n    result->dc_type = (dc_stack->value).dc_type;\n    result->v = aVar1;\n    iVar3 = 0;\n  }" { (if_statement "if (1 < (dc_stack->value).dc_type - DC_NUMBER) {\n      dc_garbage("at top of stack",-1);\n    }" if (parenthesized_expression "(1 < (dc_stack->value).dc_type - DC_NUMBER)" ( (binary_expression "1 < (dc_stack->value).dc_type - DC_NUMBER" number_literal < (binary_expression "(dc_stack->value).dc_type - DC_NUMBER" (field_expression "(dc_stack->value).dc_type" (parenthesized_expression "(dc_stack->value)" ( (field_expression "dc_stack->value" identifier -> field_identifier) )) . field_identifier) - identifier)) )) (compound_statement "{\n      dc_garbage("at top of stack",-1);\n    }" { (expression_statement "dc_garbage("at top of stack",-1);" (call_expression "dc_garbage("at top of stack",-1)" identifier (argument_list "("at top of stack",-1)" ( (string_literal ""at top of stack"" " string_content ") , number_literal ))) ;) })) (expression_statement "aVar1 = (dc_stack->value).v;" (assignment_expression "aVar1 = (dc_stack->value).v" identifier = (field_expression "(dc_stack->value).v" (parenthesized_expression "(dc_stack->value)" ( (field_expression "dc_stack->value" identifier -> field_identifier) )) . field_identifier)) ;) (expression_statement "result->dc_type = (dc_stack->value).dc_type;" (assignment_expression "result->dc_type = (dc_stack->value).dc_type" (field_expression "result->dc_type" identifier -> field_identifier) = (field_expression "(dc_stack->value).dc_type" (parenthesized_expression "(dc_stack->value)" ( (field_expression "dc_stack->value" identifier -> field_identifier) )) . field_identifier)) ;) (expression_statement "result->v = aVar1;" (assignment_expression "result->v = aVar1" (field_expression "result->v" identifier -> field_identifier) = identifier) ;) (expression_statement "iVar3 = 0;" (assignment_expression "iVar3 = 0" identifier = number_literal) ;) }))) (return_statement "return iVar3;" return identifier ;) })))
(translation_unit "undefined4 FUN_000137a0(int *param_1)\n\n{\n  int iVar1;\n  undefined *puVar2;\n  undefined4 uVar3;\n  \n  puVar2 = PTR_stderr_0001dfa4;\n  if (DAT_0001e460 == (int *)0x0) {\n    __fprintf_chk(*(undefined4 *)PTR_stderr_0001dfa4,1,"%s: stack empty\n",DAT_0001e478);\n    FUN_00018780(*(undefined4 *)puVar2);\n    uVar3 = 2;\n  }\n  else {\n    if (1 < *DAT_0001e460 - 1U) {\n      FUN_00011b70("at top of stack",0xffffffff);\n    }\n    iVar1 = DAT_0001e460[1];\n    *param_1 = *DAT_0001e460;\n    param_1[1] = iVar1;\n    uVar3 = 0;\n  }\n  return uVar3;\n}\n\n" (function_definition "undefined4 FUN_000137a0(int *param_1)\n\n{\n  int iVar1;\n  undefined *puVar2;\n  undefined4 uVar3;\n  \n  puVar2 = PTR_stderr_0001dfa4;\n  if (DAT_0001e460 == (int *)0x0) {\n    __fprintf_chk(*(undefined4 *)PTR_stderr_0001dfa4,1,"%s: stack empty\n",DAT_0001e478);\n    FUN_00018780(*(undefined4 *)puVar2);\n    uVar3 = 2;\n  }\n  else {\n    if (1 < *DAT_0001e460 - 1U) {\n      FUN_00011b70("at top of stack",0xffffffff);\n    }\n    iVar1 = DAT_0001e460[1];\n    *param_1 = *DAT_0001e460;\n    param_1[1] = iVar1;\n    uVar3 = 0;\n  }\n  return uVar3;\n}" type_identifier (function_declarator "FUN_000137a0(int *param_1)" identifier (parameter_list "(int *param_1)" ( (parameter_declaration "int *param_1" primitive_type (pointer_declarator "*param_1" * identifier)) ))) (compound_statement "{\n  int iVar1;\n  undefined *puVar2;\n  undefined4 uVar3;\n  \n  puVar2 = PTR_stderr_0001dfa4;\n  if (DAT_0001e460 == (int *)0x0) {\n    __fprintf_chk(*(undefined4 *)PTR_stderr_0001dfa4,1,"%s: stack empty\n",DAT_0001e478);\n    FUN_00018780(*(undefined4 *)puVar2);\n    uVar3 = 2;\n  }\n  else {\n    if (1 < *DAT_0001e460 - 1U) {\n      FUN_00011b70("at top of stack",0xffffffff);\n    }\n    iVar1 = DAT_0001e460[1];\n    *param_1 = *DAT_0001e460;\n    param_1[1] = iVar1;\n    uVar3 = 0;\n  }\n  return uVar3;\n}" { (declaration "int iVar1;" primitive_type identifier ;) (declaration "undefined *puVar2;" type_identifier (pointer_declarator "*puVar2" * identifier) ;) (declaration "undefined4 uVar3;" type_identifier identifier ;) (expression_statement "puVar2 = PTR_stderr_0001dfa4;" (assignment_expression "puVar2 = PTR_stderr_0001dfa4" identifier = identifier) ;) (if_statement "if (DAT_0001e460 == (int *)0x0) {\n    __fprintf_chk(*(undefined4 *)PTR_stderr_0001dfa4,1,"%s: stack empty\n",DAT_0001e478);\n    FUN_00018780(*(undefined4 *)puVar2);\n    uVar3 = 2;\n  }\n  else {\n    if (1 < *DAT_0001e460 - 1U) {\n      FUN_00011b70("at top of stack",0xffffffff);\n    }\n    iVar1 = DAT_0001e460[1];\n    *param_1 = *DAT_0001e460;\n    param_1[1] = iVar1;\n    uVar3 = 0;\n  }" if (parenthesized_expression "(DAT_0001e460 == (int *)0x0)" ( (binary_expression "DAT_0001e460 == (int *)0x0" identifier == (cast_expression "(int *)0x0" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n    __fprintf_chk(*(undefined4 *)PTR_stderr_0001dfa4,1,"%s: stack empty\n",DAT_0001e478);\n    FUN_00018780(*(undefined4 *)puVar2);\n    uVar3 = 2;\n  }" { (expression_statement "__fprintf_chk(*(undefined4 *)PTR_stderr_0001dfa4,1,"%s: stack empty\n",DAT_0001e478);" (call_expression "__fprintf_chk(*(undefined4 *)PTR_stderr_0001dfa4,1,"%s: stack empty\n",DAT_0001e478)" identifier (argument_list "(*(undefined4 *)PTR_stderr_0001dfa4,1,"%s: stack empty\n",DAT_0001e478)" ( (pointer_expression "*(undefined4 *)PTR_stderr_0001dfa4" * (cast_expression "(undefined4 *)PTR_stderr_0001dfa4" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) , number_literal , (string_literal ""%s: stack empty\n"" " string_content escape_sequence ") , identifier ))) ;) (expression_statement "FUN_00018780(*(undefined4 *)puVar2);" (call_expression "FUN_00018780(*(undefined4 *)puVar2)" identifier (argument_list "(*(undefined4 *)puVar2)" ( (pointer_expression "*(undefined4 *)puVar2" * (cast_expression "(undefined4 *)puVar2" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) ))) ;) (expression_statement "uVar3 = 2;" (assignment_expression "uVar3 = 2" identifier = number_literal) ;) }) (else_clause "else {\n    if (1 < *DAT_0001e460 - 1U) {\n      FUN_00011b70("at top of stack",0xffffffff);\n    }\n    iVar1 = DAT_0001e460[1];\n    *param_1 = *DAT_0001e460;\n    param_1[1] = iVar1;\n    uVar3 = 0;\n  }" else (compound_statement "{\n    if (1 < *DAT_0001e460 - 1U) {\n      FUN_00011b70("at top of stack",0xffffffff);\n    }\n    iVar1 = DAT_0001e460[1];\n    *param_1 = *DAT_0001e460;\n    param_1[1] = iVar1;\n    uVar3 = 0;\n  }" { (if_statement "if (1 < *DAT_0001e460 - 1U) {\n      FUN_00011b70("at top of stack",0xffffffff);\n    }" if (parenthesized_expression "(1 < *DAT_0001e460 - 1U)" ( (binary_expression "1 < *DAT_0001e460 - 1U" number_literal < (binary_expression "*DAT_0001e460 - 1U" (pointer_expression "*DAT_0001e460" * identifier) - number_literal)) )) (compound_statement "{\n      FUN_00011b70("at top of stack",0xffffffff);\n    }" { (expression_statement "FUN_00011b70("at top of stack",0xffffffff);" (call_expression "FUN_00011b70("at top of stack",0xffffffff)" identifier (argument_list "("at top of stack",0xffffffff)" ( (string_literal ""at top of stack"" " string_content ") , number_literal ))) ;) })) (expression_statement "iVar1 = DAT_0001e460[1];" (assignment_expression "iVar1 = DAT_0001e460[1]" identifier = (subscript_expression "DAT_0001e460[1]" identifier [ number_literal ])) ;) (expression_statement "*param_1 = *DAT_0001e460;" (assignment_expression "*param_1 = *DAT_0001e460" (pointer_expression "*param_1" * identifier) = (pointer_expression "*DAT_0001e460" * identifier)) ;) (expression_statement "param_1[1] = iVar1;" (assignment_expression "param_1[1] = iVar1" (subscript_expression "param_1[1]" identifier [ number_literal ]) = identifier) ;) (expression_statement "uVar3 = 0;" (assignment_expression "uVar3 = 0" identifier = number_literal) ;) }))) (return_statement "return uVar3;" return identifier ;) })))
(translation_unit (function_definition TYPE (function_declarator IDENT (parameter_list ( (parameter_declaration TYPE (pointer_declarator * IDENT)) ))) (compound_statement { (declaration TYPE IDENT ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE IDENT ;) (expression_statement (assignment_expression IDENT = IDENT) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT == (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) LIT)) )) (compound_statement { (expression_statement (call_expression IDENT (argument_list ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT)) , LIT , (string_literal " string_content escape_sequence ") , IDENT ))) ;) (expression_statement (call_expression IDENT (argument_list ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT)) ))) ;) (expression_statement (assignment_expression IDENT = LIT) ;) }) (else_clause else (compound_statement { (if_statement if (parenthesized_expression ( (binary_expression LIT < (binary_expression (pointer_expression * IDENT) - LIT)) )) (compound_statement { (expression_statement (call_expression IDENT (argument_list ( (string_literal " string_content ") , LIT ))) ;) })) (expression_statement (assignment_expression IDENT = (subscript_expression IDENT [ LIT ])) ;) (expression_statement (assignment_expression (pointer_expression * IDENT) = (pointer_expression * IDENT)) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = IDENT) ;) (expression_statement (assignment_expression IDENT = LIT) ;) }))) (return_statement return IDENT ;) })))
(function_definition "undefined4 FUN_000137a0(int *param_1)\n\n{\n  int iVar1;\n  undefined *puVar2;\n  undefined4 uVar3;\n  \n  puVar2 = PTR_stderr_0001dfa4;\n  if (DAT_0001e460 == (int *)0x0) {\n    __fprintf_chk(*(undefined4 *)PTR_stderr_0001dfa4,1,"%s: stack empty\n",DAT_0001e478);\n    FUN_00018780(*(undefined4 *)puVar2);\n    uVar3 = 2;\n  }\n  else {\n    if (1 < *DAT_0001e460 - 1U) {\n      FUN_00011b70("at top of stack",0xffffffff);\n    }\n    iVar1 = DAT_0001e460[1];\n    *param_1 = *DAT_0001e460;\n    param_1[1] = iVar1;\n    uVar3 = 0;\n  }\n  return uVar3;\n}" (type_identifier "undefined4") (function_declarator "FUN_000137a0(int *param_1)" (identifier "FUN_000137a0") (parameter_list "(int *param_1)" (( "(") (parameter_declaration "int *param_1" (primitive_type "int") (pointer_declarator "*param_1" (* "*") (identifier "param_1"))) () ")"))) (compound_statement "{\n  int iVar1;\n  undefined *puVar2;\n  undefined4 uVar3;\n  \n  puVar2 = PTR_stderr_0001dfa4;\n  if (DAT_0001e460 == (int *)0x0) {\n    __fprintf_chk(*(undefined4 *)PTR_stderr_0001dfa4,1,"%s: stack empty\n",DAT_0001e478);\n    FUN_00018780(*(undefined4 *)puVar2);\n    uVar3 = 2;\n  }\n  else {\n    if (1 < *DAT_0001e460 - 1U) {\n      FUN_00011b70("at top of stack",0xffffffff);\n    }\n    iVar1 = DAT_0001e460[1];\n    *param_1 = *DAT_0001e460;\n    param_1[1] = iVar1;\n    uVar3 = 0;\n  }\n  return uVar3;\n}" ({ "{") (declaration "int iVar1;" (primitive_type "int") (identifier "iVar1") (; ";")) (declaration "undefined *puVar2;" (type_identifier "undefined") (pointer_declarator "*puVar2" (* "*") (identifier "puVar2")) (; ";")) (declaration "undefined4 uVar3;" (type_identifier "undefined4") (identifier "uVar3") (; ";")) (expression_statement "puVar2 = PTR_stderr_0001dfa4;" (assignment_expression "puVar2 = PTR_stderr_0001dfa4" (identifier "puVar2") (= "=") (identifier "PTR_stderr_0001dfa4")) (; ";")) (if_statement "if (DAT_0001e460 == (int *)0x0) {\n    __fprintf_chk(*(undefined4 *)PTR_stderr_0001dfa4,1,"%s: stack empty\n",DAT_0001e478);\n    FUN_00018780(*(undefined4 *)puVar2);\n    uVar3 = 2;\n  }\n  else {\n    if (1 < *DAT_0001e460 - 1U) {\n      FUN_00011b70("at top of stack",0xffffffff);\n    }\n    iVar1 = DAT_0001e460[1];\n    *param_1 = *DAT_0001e460;\n    param_1[1] = iVar1;\n    uVar3 = 0;\n  }" (if "if") (parenthesized_expression "(DAT_0001e460 == (int *)0x0)" (( "(") (binary_expression "DAT_0001e460 == (int *)0x0" (identifier "DAT_0001e460") (== "==") (cast_expression "(int *)0x0" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (number_literal "0x0"))) () ")")) (compound_statement "{\n    __fprintf_chk(*(undefined4 *)PTR_stderr_0001dfa4,1,"%s: stack empty\n",DAT_0001e478);\n    FUN_00018780(*(undefined4 *)puVar2);\n    uVar3 = 2;\n  }" ({ "{") (expression_statement "__fprintf_chk(*(undefined4 *)PTR_stderr_0001dfa4,1,"%s: stack empty\n",DAT_0001e478);" (call_expression "__fprintf_chk(*(undefined4 *)PTR_stderr_0001dfa4,1,"%s: stack empty\n",DAT_0001e478)" (identifier "__fprintf_chk") (argument_list "(*(undefined4 *)PTR_stderr_0001dfa4,1,"%s: stack empty\n",DAT_0001e478)" (( "(") (pointer_expression "*(undefined4 *)PTR_stderr_0001dfa4" (* "*") (cast_expression "(undefined4 *)PTR_stderr_0001dfa4" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR_stderr_0001dfa4"))) (, ",") (number_literal "1") (, ",") (string_literal ""%s: stack empty\n"" (" """) (string_content "%s: stack empty") (escape_sequence "\n") (" """)) (, ",") (identifier "DAT_0001e478") () ")"))) (; ";")) (expression_statement "FUN_00018780(*(undefined4 *)puVar2);" (call_expression "FUN_00018780(*(undefined4 *)puVar2)" (identifier "FUN_00018780") (argument_list "(*(undefined4 *)puVar2)" (( "(") (pointer_expression "*(undefined4 *)puVar2" (* "*") (cast_expression "(undefined4 *)puVar2" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "puVar2"))) () ")"))) (; ";")) (expression_statement "uVar3 = 2;" (assignment_expression "uVar3 = 2" (identifier "uVar3") (= "=") (number_literal "2")) (; ";")) (} "}")) (else_clause "else {\n    if (1 < *DAT_0001e460 - 1U) {\n      FUN_00011b70("at top of stack",0xffffffff);\n    }\n    iVar1 = DAT_0001e460[1];\n    *param_1 = *DAT_0001e460;\n    param_1[1] = iVar1;\n    uVar3 = 0;\n  }" (else "else") (compound_statement "{\n    if (1 < *DAT_0001e460 - 1U) {\n      FUN_00011b70("at top of stack",0xffffffff);\n    }\n    iVar1 = DAT_0001e460[1];\n    *param_1 = *DAT_0001e460;\n    param_1[1] = iVar1;\n    uVar3 = 0;\n  }" ({ "{") (if_statement "if (1 < *DAT_0001e460 - 1U) {\n      FUN_00011b70("at top of stack",0xffffffff);\n    }" (if "if") (parenthesized_expression "(1 < *DAT_0001e460 - 1U)" (( "(") (binary_expression "1 < *DAT_0001e460 - 1U" (number_literal "1") (< "<") (binary_expression "*DAT_0001e460 - 1U" (pointer_expression "*DAT_0001e460" (* "*") (identifier "DAT_0001e460")) (- "-") (number_literal "1U"))) () ")")) (compound_statement "{\n      FUN_00011b70("at top of stack",0xffffffff);\n    }" ({ "{") (expression_statement "FUN_00011b70("at top of stack",0xffffffff);" (call_expression "FUN_00011b70("at top of stack",0xffffffff)" (identifier "FUN_00011b70") (argument_list "("at top of stack",0xffffffff)" (( "(") (string_literal ""at top of stack"" (" """) (string_content "at top of stack") (" """)) (, ",") (number_literal "0xffffffff") () ")"))) (; ";")) (} "}"))) (expression_statement "iVar1 = DAT_0001e460[1];" (assignment_expression "iVar1 = DAT_0001e460[1]" (identifier "iVar1") (= "=") (subscript_expression "DAT_0001e460[1]" (identifier "DAT_0001e460") ([ "[") (number_literal "1") (] "]"))) (; ";")) (expression_statement "*param_1 = *DAT_0001e460;" (assignment_expression "*param_1 = *DAT_0001e460" (pointer_expression "*param_1" (* "*") (identifier "param_1")) (= "=") (pointer_expression "*DAT_0001e460" (* "*") (identifier "DAT_0001e460"))) (; ";")) (expression_statement "param_1[1] = iVar1;" (assignment_expression "param_1[1] = iVar1" (subscript_expression "param_1[1]" (identifier "param_1") ([ "[") (number_literal "1") (] "]")) (= "=") (identifier "iVar1")) (; ";")) (expression_statement "uVar3 = 0;" (assignment_expression "uVar3 = 0" (identifier "uVar3") (= "=") (number_literal "0")) (; ";")) (} "}")))) (return_statement "return uVar3;" (return "return") (identifier "uVar3") (; ";")) (} "}")))

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

int function_1(type_1 *result)

{
  type_2 aVar1;
  type_3 *puVar2;
  int iVar3;
  
  puVar2 = PTR_stderr_0001dfa4;
  if (var_1 == (type_4 *)0x0) {
    var_2(*(type_5 *)PTR_stderr_0001dfa4,1,"%s: stack empty\n",progname);
    var_3(*(type_6 **)puVar2);
    iVar3 = 2;
  }
  else {
    if (1 < (var_1->value).dc_type - var_4) {
      var_5("at top of stack",-1);
    }
    aVar1 = (var_1->value).v;
    result->dc_type = (var_1->value).dc_type;
    result->v = aVar1;
    iVar3 = 0;
  }
  return iVar3;
}


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

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

undefined4 MASKED(int *param_1)

{
  int iVar1;
  undefined *puVar2;
  undefined4 uVar3;
  
  puVar2 = PTR_stderr_0001dfa4;
  if (DAT_0001e460 == (int *)0x0) {
    __fprintf_chk(*(undefined4 *)PTR_stderr_0001dfa4,1,"%s: stack empty\n",DAT_0001e478);
    FUN_00018780(*(undefined4 *)puVar2);
    uVar3 = 2;
  }
  else {
    if (1 < *DAT_0001e460 - 1U) {
      FUN_00011b70("at top of stack",0xffffffff);
    }
    iVar1 = DAT_0001e460[1];
    *param_1 = *DAT_0001e460;
    param_1[1] = iVar1;
    uVar3 = 0;
  }
  return uVar3;
}

