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

ostream * operator<<(ostream *o,mpz_srcptr z)

{
  int iVar1;
  char *s;
  ostream *poVar2;
  int in_GS_OFFSET;
  doprnt_params_t param;
  
  iVar1 = *(int *)(in_GS_OFFSET + 0x14);
  __gmp_doprnt_params_from_ios(&param,(ios *)(o + *(int *)(*(int *)o + -0xc)));
  s = (char *)__gmpz_get_str(0,param.base,z);
  poVar2 = __gmp_doprnt_integer_ostream(o,&param,s);
  if (iVar1 == *(int *)(in_GS_OFFSET + 0x14)) {
    return poVar2;
  }
                    /* WARNING: Subroutine does not return */
  __stack_chk_fail_local();
}



/* WARNING: Function: __i686.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */
/* TEMPNAMEPLACEHOLDERVALUE(std::ostream&, __mpz_struct const*) */

void operator<<(ostream *param_1,__mpz_struct *param_2)

{
  char *pcVar1;
  int in_GS_OFFSET;
  undefined4 local_50 [12];
  int local_20;
  undefined4 uStack_14;
  
  uStack_14 = 0x14679;
  local_20 = *(int *)(in_GS_OFFSET + 0x14);
  __gmp_doprnt_params_from_ios
            ((doprnt_params_t *)local_50,(ios *)(param_1 + *(int *)(*(int *)param_1 + -0xc)));
  pcVar1 = (char *)__gmpz_get_str(0,local_50[0],param_2);
  __gmp_doprnt_integer_ostream(param_1,(doprnt_params_t *)local_50,pcVar1);
  if (local_20 == *(int *)(in_GS_OFFSET + 0x14)) {
    return;
  }
                    /* WARNING: Subroutine does not return */
  FUN_000146e0();
}


PUSH EBP
PUSH EDI
PUSH ESI
PUSH EBX
CALL 0x000135d0
ADD EBX,0x2987
SUB ESP,0x54
MOV EAX,GS:[0x14]
MOV dword ptr [ESP + 0x44],EAX
XOR EAX,EAX
MOV ESI,dword ptr [ESP + 0x68]
MOV EBP,dword ptr [ESP + 0x6c]
MOV EAX,dword ptr [ESI]
MOV EDX,dword ptr [EAX + -0xc]
ADD EDX,ESI
PUSH EDX
LEA EDI,[ESP + 0x18]
PUSH EDI
CALL 0x00013110
ADD ESP,0xc
PUSH EBP
PUSH dword ptr [ESP + 0x14]
PUSH 0x0
CALL 0x000131c0
ADD ESP,0xc
PUSH EAX
PUSH EDI
PUSH ESI
CALL 0x000130d0
ADD ESP,0x10
MOV ECX,dword ptr [ESP + 0x3c]
XOR ECX,dword ptr GS:[0x14]
JNZ 0x000146da
ADD ESP,0x4c
POP EBX
POP ESI
POP EDI
POP EBP
RET
CALL 0x000146e0
(translation_unit "/* WARNING: Function: __i686.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */\n/* TEMPNAMEPLACEHOLDERVALUE(std::ostream&, __mpz_struct const*) */\n\nvoid operator<<(ostream *param_1,__mpz_struct *param_2)\n\n{\n  char *pcVar1;\n  int in_GS_OFFSET;\n  undefined4 local_50 [12];\n  int local_20;\n  undefined4 uStack_14;\n  \n  uStack_14 = 0x14679;\n  local_20 = *(int *)(in_GS_OFFSET + 0x14);\n  __gmp_doprnt_params_from_ios\n            ((doprnt_params_t *)local_50,(ios *)(param_1 + *(int *)(*(int *)param_1 + -0xc)));\n  pcVar1 = (char *)__gmpz_get_str(0,local_50[0],param_2);\n  __gmp_doprnt_integer_ostream(param_1,(doprnt_params_t *)local_50,pcVar1);\n  if (local_20 == *(int *)(in_GS_OFFSET + 0x14)) {\n    return;\n  }\n                    /* WARNING: Subroutine does not return */\n  FUN_000146e0();\n}\n\n" comment comment (declaration "void operator<<(ostream *param_1,__mpz_struct *param_2)\n\n{\n  char *pcVar1;" primitive_type (ERROR "operator<<(ostream" identifier << ( identifier) (pointer_declarator "*param_1" * identifier) , (ERROR "__mpz_struct *param_2)\n\n{\n  char" identifier (pointer_declarator "*param_2" * identifier) ) { primitive_type) (pointer_declarator "*pcVar1" * identifier) ;) (declaration "int in_GS_OFFSET;" primitive_type identifier ;) (declaration "undefined4 local_50 [12];" type_identifier (array_declarator "local_50 [12]" identifier [ number_literal ]) ;) (declaration "int local_20;" primitive_type identifier ;) (declaration "undefined4 uStack_14;" type_identifier identifier ;) (expression_statement "uStack_14 = 0x14679;" (assignment_expression "uStack_14 = 0x14679" identifier = number_literal) ;) (expression_statement "local_20 = *(int *)(in_GS_OFFSET + 0x14);" (assignment_expression "local_20 = *(int *)(in_GS_OFFSET + 0x14)" identifier = (pointer_expression "*(int *)(in_GS_OFFSET + 0x14)" * (cast_expression "(int *)(in_GS_OFFSET + 0x14)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(in_GS_OFFSET + 0x14)" ( (binary_expression "in_GS_OFFSET + 0x14" identifier + number_literal) ))))) ;) (expression_statement "__gmp_doprnt_params_from_ios\n            ((doprnt_params_t *)local_50,(ios *)(param_1 + *(int *)(*(int *)param_1 + -0xc)));" (call_expression "__gmp_doprnt_params_from_ios\n            ((doprnt_params_t *)local_50,(ios *)(param_1 + *(int *)(*(int *)param_1 + -0xc)))" identifier (argument_list "((doprnt_params_t *)local_50,(ios *)(param_1 + *(int *)(*(int *)param_1 + -0xc)))" ( (cast_expression "(doprnt_params_t *)local_50" ( (type_descriptor "doprnt_params_t *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier) , (cast_expression "(ios *)(param_1 + *(int *)(*(int *)param_1 + -0xc))" ( (type_descriptor "ios *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + *(int *)(*(int *)param_1 + -0xc))" ( (binary_expression "param_1 + *(int *)(*(int *)param_1 + -0xc)" identifier + (pointer_expression "*(int *)(*(int *)param_1 + -0xc)" * (cast_expression "(int *)(*(int *)param_1 + -0xc)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(*(int *)param_1 + -0xc)" ( (binary_expression "*(int *)param_1 + -0xc" (pointer_expression "*(int *)param_1" * (cast_expression "(int *)param_1" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) identifier)) + number_literal) ))))) ))) ))) ;) (expression_statement "pcVar1 = (char *)__gmpz_get_str(0,local_50[0],param_2);" (assignment_expression "pcVar1 = (char *)__gmpz_get_str(0,local_50[0],param_2)" identifier = (cast_expression "(char *)__gmpz_get_str(0,local_50[0],param_2)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (call_expression "__gmpz_get_str(0,local_50[0],param_2)" identifier (argument_list "(0,local_50[0],param_2)" ( number_literal , (subscript_expression "local_50[0]" identifier [ number_literal ]) , identifier ))))) ;) (expression_statement "__gmp_doprnt_integer_ostream(param_1,(doprnt_params_t *)local_50,pcVar1);" (call_expression "__gmp_doprnt_integer_ostream(param_1,(doprnt_params_t *)local_50,pcVar1)" identifier (argument_list "(param_1,(doprnt_params_t *)local_50,pcVar1)" ( identifier , (cast_expression "(doprnt_params_t *)local_50" ( (type_descriptor "doprnt_params_t *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier) , identifier ))) ;) (if_statement "if (local_20 == *(int *)(in_GS_OFFSET + 0x14)) {\n    return;\n  }" if (parenthesized_expression "(local_20 == *(int *)(in_GS_OFFSET + 0x14))" ( (binary_expression "local_20 == *(int *)(in_GS_OFFSET + 0x14)" identifier == (pointer_expression "*(int *)(in_GS_OFFSET + 0x14)" * (cast_expression "(int *)(in_GS_OFFSET + 0x14)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(in_GS_OFFSET + 0x14)" ( (binary_expression "in_GS_OFFSET + 0x14" identifier + number_literal) ))))) )) (compound_statement "{\n    return;\n  }" { (return_statement "return;" return ;) })) comment (expression_statement "FUN_000146e0();" (call_expression "FUN_000146e0()" identifier (argument_list "()" ( ))) ;) (ERROR "}" }))
(translation_unit "/* WARNING: Function: __x86.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */\n/* WARNING: Unknown calling convention */\n\nostream * operator<<(ostream *o,mpz_srcptr z)\n\n{\n  int iVar1;\n  char *s;\n  ostream *poVar2;\n  int in_GS_OFFSET;\n  doprnt_params_t param;\n  \n  iVar1 = *(int *)(in_GS_OFFSET + 0x14);\n  __gmp_doprnt_params_from_ios(&param,(ios *)(o + *(int *)(*(int *)o + -0xc)));\n  s = (char *)__gmpz_get_str(0,param.base,z);\n  poVar2 = __gmp_doprnt_integer_ostream(o,&param,s);\n  if (iVar1 == *(int *)(in_GS_OFFSET + 0x14)) {\n    return poVar2;\n  }\n                    /* WARNING: Subroutine does not return */\n  __stack_chk_fail_local();\n}\n\n" comment comment (ERROR "ostream * operator<<(ostream *o,mpz_srcptr z)" (binary_expression "ostream * operator<<(ostream *o,mpz_srcptr z)" (binary_expression "ostream * operator" identifier * identifier) << (parenthesized_expression "(ostream *o,mpz_srcptr z)" ( (comma_expression "ostream *o,mpz_srcptr" (binary_expression "ostream *o" identifier * identifier) , identifier) (ERROR "z" identifier) )))) (compound_statement "{\n  int iVar1;\n  char *s;\n  ostream *poVar2;\n  int in_GS_OFFSET;\n  doprnt_params_t param;\n  \n  iVar1 = *(int *)(in_GS_OFFSET + 0x14);\n  __gmp_doprnt_params_from_ios(&param,(ios *)(o + *(int *)(*(int *)o + -0xc)));\n  s = (char *)__gmpz_get_str(0,param.base,z);\n  poVar2 = __gmp_doprnt_integer_ostream(o,&param,s);\n  if (iVar1 == *(int *)(in_GS_OFFSET + 0x14)) {\n    return poVar2;\n  }\n                    /* WARNING: Subroutine does not return */\n  __stack_chk_fail_local();\n}" { (declaration "int iVar1;" primitive_type identifier ;) (declaration "char *s;" primitive_type (pointer_declarator "*s" * identifier) ;) (declaration "ostream *poVar2;" type_identifier (pointer_declarator "*poVar2" * identifier) ;) (declaration "int in_GS_OFFSET;" primitive_type identifier ;) (declaration "doprnt_params_t param;" type_identifier identifier ;) (expression_statement "iVar1 = *(int *)(in_GS_OFFSET + 0x14);" (assignment_expression "iVar1 = *(int *)(in_GS_OFFSET + 0x14)" identifier = (pointer_expression "*(int *)(in_GS_OFFSET + 0x14)" * (cast_expression "(int *)(in_GS_OFFSET + 0x14)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(in_GS_OFFSET + 0x14)" ( (binary_expression "in_GS_OFFSET + 0x14" identifier + number_literal) ))))) ;) (expression_statement "__gmp_doprnt_params_from_ios(&param,(ios *)(o + *(int *)(*(int *)o + -0xc)));" (call_expression "__gmp_doprnt_params_from_ios(&param,(ios *)(o + *(int *)(*(int *)o + -0xc)))" identifier (argument_list "(&param,(ios *)(o + *(int *)(*(int *)o + -0xc)))" ( (pointer_expression "&param" & identifier) , (cast_expression "(ios *)(o + *(int *)(*(int *)o + -0xc))" ( (type_descriptor "ios *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(o + *(int *)(*(int *)o + -0xc))" ( (binary_expression "o + *(int *)(*(int *)o + -0xc)" identifier + (pointer_expression "*(int *)(*(int *)o + -0xc)" * (cast_expression "(int *)(*(int *)o + -0xc)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(*(int *)o + -0xc)" ( (binary_expression "*(int *)o + -0xc" (pointer_expression "*(int *)o" * (cast_expression "(int *)o" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) identifier)) + number_literal) ))))) ))) ))) ;) (expression_statement "s = (char *)__gmpz_get_str(0,param.base,z);" (assignment_expression "s = (char *)__gmpz_get_str(0,param.base,z)" identifier = (cast_expression "(char *)__gmpz_get_str(0,param.base,z)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (call_expression "__gmpz_get_str(0,param.base,z)" identifier (argument_list "(0,param.base,z)" ( number_literal , (field_expression "param.base" identifier . field_identifier) , identifier ))))) ;) (expression_statement "poVar2 = __gmp_doprnt_integer_ostream(o,&param,s);" (assignment_expression "poVar2 = __gmp_doprnt_integer_ostream(o,&param,s)" identifier = (call_expression "__gmp_doprnt_integer_ostream(o,&param,s)" identifier (argument_list "(o,&param,s)" ( identifier , (pointer_expression "&param" & identifier) , identifier )))) ;) (if_statement "if (iVar1 == *(int *)(in_GS_OFFSET + 0x14)) {\n    return poVar2;\n  }" if (parenthesized_expression "(iVar1 == *(int *)(in_GS_OFFSET + 0x14))" ( (binary_expression "iVar1 == *(int *)(in_GS_OFFSET + 0x14)" identifier == (pointer_expression "*(int *)(in_GS_OFFSET + 0x14)" * (cast_expression "(int *)(in_GS_OFFSET + 0x14)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(in_GS_OFFSET + 0x14)" ( (binary_expression "in_GS_OFFSET + 0x14" identifier + number_literal) ))))) )) (compound_statement "{\n    return poVar2;\n  }" { (return_statement "return poVar2;" return identifier ;) })) comment (expression_statement "__stack_chk_fail_local();" (call_expression "__stack_chk_fail_local()" identifier (argument_list "()" ( ))) ;) }))
(translation_unit "void operator<<(ostream *param_1,__mpz_struct *param_2)\n\n{\n  char *pcVar1;\n  int in_GS_OFFSET;\n  undefined4 local_50 [12];\n  int local_20;\n  undefined4 uStack_14;\n  \n  uStack_14 = 0x14679;\n  local_20 = *(int *)(in_GS_OFFSET + 0x14);\n  __gmp_doprnt_params_from_ios\n            ((doprnt_params_t *)local_50,(ios *)(param_1 + *(int *)(*(int *)param_1 + -0xc)));\n  pcVar1 = (char *)__gmpz_get_str(0,local_50[0],param_2);\n  __gmp_doprnt_integer_ostream(param_1,(doprnt_params_t *)local_50,pcVar1);\n  if (local_20 == *(int *)(in_GS_OFFSET + 0x14)) {\n    return;\n  }\n                    \n  FUN_000146e0();\n}\n\n" (declaration "void operator<<(ostream *param_1,__mpz_struct *param_2)\n\n{\n  char *pcVar1;" primitive_type (ERROR "operator<<(ostream" identifier << ( identifier) (pointer_declarator "*param_1" * identifier) , (ERROR "__mpz_struct *param_2)\n\n{\n  char" identifier (pointer_declarator "*param_2" * identifier) ) { primitive_type) (pointer_declarator "*pcVar1" * identifier) ;) (declaration "int in_GS_OFFSET;" primitive_type identifier ;) (declaration "undefined4 local_50 [12];" type_identifier (array_declarator "local_50 [12]" identifier [ number_literal ]) ;) (declaration "int local_20;" primitive_type identifier ;) (declaration "undefined4 uStack_14;" type_identifier identifier ;) (expression_statement "uStack_14 = 0x14679;" (assignment_expression "uStack_14 = 0x14679" identifier = number_literal) ;) (expression_statement "local_20 = *(int *)(in_GS_OFFSET + 0x14);" (assignment_expression "local_20 = *(int *)(in_GS_OFFSET + 0x14)" identifier = (pointer_expression "*(int *)(in_GS_OFFSET + 0x14)" * (cast_expression "(int *)(in_GS_OFFSET + 0x14)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(in_GS_OFFSET + 0x14)" ( (binary_expression "in_GS_OFFSET + 0x14" identifier + number_literal) ))))) ;) (expression_statement "__gmp_doprnt_params_from_ios\n            ((doprnt_params_t *)local_50,(ios *)(param_1 + *(int *)(*(int *)param_1 + -0xc)));" (call_expression "__gmp_doprnt_params_from_ios\n            ((doprnt_params_t *)local_50,(ios *)(param_1 + *(int *)(*(int *)param_1 + -0xc)))" identifier (argument_list "((doprnt_params_t *)local_50,(ios *)(param_1 + *(int *)(*(int *)param_1 + -0xc)))" ( (cast_expression "(doprnt_params_t *)local_50" ( (type_descriptor "doprnt_params_t *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier) , (cast_expression "(ios *)(param_1 + *(int *)(*(int *)param_1 + -0xc))" ( (type_descriptor "ios *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + *(int *)(*(int *)param_1 + -0xc))" ( (binary_expression "param_1 + *(int *)(*(int *)param_1 + -0xc)" identifier + (pointer_expression "*(int *)(*(int *)param_1 + -0xc)" * (cast_expression "(int *)(*(int *)param_1 + -0xc)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(*(int *)param_1 + -0xc)" ( (binary_expression "*(int *)param_1 + -0xc" (pointer_expression "*(int *)param_1" * (cast_expression "(int *)param_1" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) identifier)) + number_literal) ))))) ))) ))) ;) (expression_statement "pcVar1 = (char *)__gmpz_get_str(0,local_50[0],param_2);" (assignment_expression "pcVar1 = (char *)__gmpz_get_str(0,local_50[0],param_2)" identifier = (cast_expression "(char *)__gmpz_get_str(0,local_50[0],param_2)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (call_expression "__gmpz_get_str(0,local_50[0],param_2)" identifier (argument_list "(0,local_50[0],param_2)" ( number_literal , (subscript_expression "local_50[0]" identifier [ number_literal ]) , identifier ))))) ;) (expression_statement "__gmp_doprnt_integer_ostream(param_1,(doprnt_params_t *)local_50,pcVar1);" (call_expression "__gmp_doprnt_integer_ostream(param_1,(doprnt_params_t *)local_50,pcVar1)" identifier (argument_list "(param_1,(doprnt_params_t *)local_50,pcVar1)" ( identifier , (cast_expression "(doprnt_params_t *)local_50" ( (type_descriptor "doprnt_params_t *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier) , identifier ))) ;) (if_statement "if (local_20 == *(int *)(in_GS_OFFSET + 0x14)) {\n    return;\n  }" if (parenthesized_expression "(local_20 == *(int *)(in_GS_OFFSET + 0x14))" ( (binary_expression "local_20 == *(int *)(in_GS_OFFSET + 0x14)" identifier == (pointer_expression "*(int *)(in_GS_OFFSET + 0x14)" * (cast_expression "(int *)(in_GS_OFFSET + 0x14)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(in_GS_OFFSET + 0x14)" ( (binary_expression "in_GS_OFFSET + 0x14" identifier + number_literal) ))))) )) (compound_statement "{\n    return;\n  }" { (return_statement "return;" return ;) })) (expression_statement "FUN_000146e0();" (call_expression "FUN_000146e0()" identifier (argument_list "()" ( ))) ;) (ERROR "}" }))
(translation_unit (declaration TYPE (ERROR IDENT << ( IDENT) (pointer_declarator * IDENT) , (ERROR IDENT (pointer_declarator * IDENT) ) { TYPE) (pointer_declarator * IDENT) ;) (declaration TYPE IDENT ;) (declaration TYPE (array_declarator IDENT [ LIT ]) ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (expression_statement (assignment_expression IDENT = LIT) ;) (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) ;) (expression_statement (call_expression IDENT (argument_list ( (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT) , (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT)) + LIT) ))))) ))) ))) ;) (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (call_expression IDENT (argument_list ( LIT , (subscript_expression IDENT [ LIT ]) , IDENT ))))) ;) (expression_statement (call_expression IDENT (argument_list ( IDENT , (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT) , IDENT ))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT == (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) )) (compound_statement { (return_statement return ;) })) (expression_statement (call_expression IDENT (argument_list ( ))) ;) (ERROR }))
(declaration "void operator<<(ostream *param_1,__mpz_struct *param_2)\n\n{\n  char *pcVar1;" (primitive_type "void") (ERROR "operator<<(ostream" (identifier "operator") (<< "<<") (( "(") (identifier "ostream")) (pointer_declarator "*param_1" (* "*") (identifier "param_1")) (, ",") (ERROR "__mpz_struct *param_2)\n\n{\n  char" (identifier "__mpz_struct") (pointer_declarator "*param_2" (* "*") (identifier "param_2")) () ")") ({ "{") (primitive_type "char")) (pointer_declarator "*pcVar1" (* "*") (identifier "pcVar1")) (; ";")) (declaration "int in_GS_OFFSET;" (primitive_type "int") (identifier "in_GS_OFFSET") (; ";")) (declaration "undefined4 local_50 [12];" (type_identifier "undefined4") (array_declarator "local_50 [12]" (identifier "local_50") ([ "[") (number_literal "12") (] "]")) (; ";")) (declaration "int local_20;" (primitive_type "int") (identifier "local_20") (; ";")) (declaration "undefined4 uStack_14;" (type_identifier "undefined4") (identifier "uStack_14") (; ";")) (expression_statement "uStack_14 = 0x14679;" (assignment_expression "uStack_14 = 0x14679" (identifier "uStack_14") (= "=") (number_literal "0x14679")) (; ";")) (expression_statement "local_20 = *(int *)(in_GS_OFFSET + 0x14);" (assignment_expression "local_20 = *(int *)(in_GS_OFFSET + 0x14)" (identifier "local_20") (= "=") (pointer_expression "*(int *)(in_GS_OFFSET + 0x14)" (* "*") (cast_expression "(int *)(in_GS_OFFSET + 0x14)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(in_GS_OFFSET + 0x14)" (( "(") (binary_expression "in_GS_OFFSET + 0x14" (identifier "in_GS_OFFSET") (+ "+") (number_literal "0x14")) () ")"))))) (; ";")) (expression_statement "__gmp_doprnt_params_from_ios\n            ((doprnt_params_t *)local_50,(ios *)(param_1 + *(int *)(*(int *)param_1 + -0xc)));" (call_expression "__gmp_doprnt_params_from_ios\n            ((doprnt_params_t *)local_50,(ios *)(param_1 + *(int *)(*(int *)param_1 + -0xc)))" (identifier "__gmp_doprnt_params_from_ios") (argument_list "((doprnt_params_t *)local_50,(ios *)(param_1 + *(int *)(*(int *)param_1 + -0xc)))" (( "(") (cast_expression "(doprnt_params_t *)local_50" (( "(") (type_descriptor "doprnt_params_t *" (type_identifier "doprnt_params_t") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "local_50")) (, ",") (cast_expression "(ios *)(param_1 + *(int *)(*(int *)param_1 + -0xc))" (( "(") (type_descriptor "ios *" (type_identifier "ios") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + *(int *)(*(int *)param_1 + -0xc))" (( "(") (binary_expression "param_1 + *(int *)(*(int *)param_1 + -0xc)" (identifier "param_1") (+ "+") (pointer_expression "*(int *)(*(int *)param_1 + -0xc)" (* "*") (cast_expression "(int *)(*(int *)param_1 + -0xc)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(*(int *)param_1 + -0xc)" (( "(") (binary_expression "*(int *)param_1 + -0xc" (pointer_expression "*(int *)param_1" (* "*") (cast_expression "(int *)param_1" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "param_1"))) (+ "+") (number_literal "-0xc")) () ")"))))) () ")"))) () ")"))) (; ";")) (expression_statement "pcVar1 = (char *)__gmpz_get_str(0,local_50[0],param_2);" (assignment_expression "pcVar1 = (char *)__gmpz_get_str(0,local_50[0],param_2)" (identifier "pcVar1") (= "=") (cast_expression "(char *)__gmpz_get_str(0,local_50[0],param_2)" (( "(") (type_descriptor "char *" (primitive_type "char") (abstract_pointer_declarator "*" (* "*"))) () ")") (call_expression "__gmpz_get_str(0,local_50[0],param_2)" (identifier "__gmpz_get_str") (argument_list "(0,local_50[0],param_2)" (( "(") (number_literal "0") (, ",") (subscript_expression "local_50[0]" (identifier "local_50") ([ "[") (number_literal "0") (] "]")) (, ",") (identifier "param_2") () ")"))))) (; ";")) (expression_statement "__gmp_doprnt_integer_ostream(param_1,(doprnt_params_t *)local_50,pcVar1);" (call_expression "__gmp_doprnt_integer_ostream(param_1,(doprnt_params_t *)local_50,pcVar1)" (identifier "__gmp_doprnt_integer_ostream") (argument_list "(param_1,(doprnt_params_t *)local_50,pcVar1)" (( "(") (identifier "param_1") (, ",") (cast_expression "(doprnt_params_t *)local_50" (( "(") (type_descriptor "doprnt_params_t *" (type_identifier "doprnt_params_t") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "local_50")) (, ",") (identifier "pcVar1") () ")"))) (; ";")) (if_statement "if (local_20 == *(int *)(in_GS_OFFSET + 0x14)) {\n    return;\n  }" (if "if") (parenthesized_expression "(local_20 == *(int *)(in_GS_OFFSET + 0x14))" (( "(") (binary_expression "local_20 == *(int *)(in_GS_OFFSET + 0x14)" (identifier "local_20") (== "==") (pointer_expression "*(int *)(in_GS_OFFSET + 0x14)" (* "*") (cast_expression "(int *)(in_GS_OFFSET + 0x14)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(in_GS_OFFSET + 0x14)" (( "(") (binary_expression "in_GS_OFFSET + 0x14" (identifier "in_GS_OFFSET") (+ "+") (number_literal "0x14")) () ")"))))) () ")")) (compound_statement "{\n    return;\n  }" ({ "{") (return_statement "return;" (return "return") (; ";")) (} "}"))) (expression_statement "FUN_000146e0();" (call_expression "FUN_000146e0()" (identifier "FUN_000146e0") (argument_list "()" (( "(") () ")"))) (; ";")) (ERROR "}" (} "}"))

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

type_1 * operator<<(type_1 *var_3,mpz_srcptr z)

{
  int var_6;
  char *s;
  type_1 *poVar2;
  int var_1;
  type_2 param;
  
  var_6 = *(int *)(var_1 + 0x14);
  var_2(&param,(type_3 *)(var_3 + *(int *)(*(int *)var_3 + -0xc)));
  s = (char *)var_4(0,param.base,z);
  poVar2 = var_5(var_3,&param,s);
  if (var_6 == *(int *)(var_1 + 0x14)) {
    return poVar2;
  }
                    /* WARNING: Subroutine does not return */
  var_7();
}


(translation_unit (declaration type: (primitive_type) (ERROR (identifier) (identifier)) declarator: (pointer_declarator declarator: (identifier)) (ERROR (identifier) (pointer_declarator declarator: (identifier)) (primitive_type)) declarator: (pointer_declarator declarator: (identifier))) (declaration type: (primitive_type) declarator: (identifier)) (declaration type: (type_identifier) declarator: (array_declarator declarator: (identifier) size: (number_literal))) (declaration type: (primitive_type) declarator: (identifier)) (declaration type: (type_identifier) declarator: (identifier)) (expression_statement (assignment_expression left: (identifier) right: (number_literal))) (expression_statement (assignment_expression left: (identifier) right: (pointer_expression argument: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))))))) (expression_statement (call_expression function: (identifier) arguments: (argument_list (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (identifier)) (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_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: (pointer_expression argument: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (identifier))) right: (number_literal))))))))))) (expression_statement (assignment_expression left: (identifier) right: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (call_expression function: (identifier) arguments: (argument_list (number_literal) (subscript_expression argument: (identifier) index: (number_literal)) (identifier)))))) (expression_statement (call_expression function: (identifier) arguments: (argument_list (identifier) (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (identifier)) (identifier)))) (if_statement condition: (parenthesized_expression (binary_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))))))) consequence: (compound_statement (return_statement))) (expression_statement (call_expression function: (identifier) arguments: (argument_list))) (ERROR))

/* WARNING: Function: __i686.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */
/* TEMPNAMEPLACEHOLDERVALUE(std::ostream&, __mpz_struct const*) */

void MASKED(ostream *param_1,__mpz_struct *param_2)

{
  char *pcVar1;
  int in_GS_OFFSET;
  undefined4 local_50 [12];
  int local_20;
  undefined4 uStack_14;
  
  uStack_14 = 0x14679;
  local_20 = *(int *)(in_GS_OFFSET + 0x14);
  __gmp_doprnt_params_from_ios
            ((doprnt_params_t *)local_50,(ios *)(param_1 + *(int *)(*(int *)param_1 + -0xc)));
  pcVar1 = (char *)__gmpz_get_str(0,local_50[0],param_2);
  __gmp_doprnt_integer_ostream(param_1,(doprnt_params_t *)local_50,pcVar1);
  if (local_20 == *(int *)(in_GS_OFFSET + 0x14)) {
    return;
  }
                    /* WARNING: Subroutine does not return */
  FUN_000146e0();
}

