
/* WARNING: Enum "anon_enum_32": Some values do not have unique names */

CURLcode ssh_multi_statemach(connectdata *conn,_Bool *done)

{
  undefined *puVar1;
  CURLcode CVar2;
  connectdata *conn_00;
  _Bool *done_00;
  _Bool block;
  connectdata *pcStack_1c;
  
  puVar1 = PTR___stack_chk_guard_000b1fd4;
  pcStack_1c = *(connectdata **)PTR___stack_chk_guard_000b1fd4;
  CVar2 = ssh_statemach_act(conn,&block);
  *done = (conn->proto).ftpc.pp.sendthis == (char *)0x0;
  done_00 = (_Bool *)(uint)block;
  ssh_block2waitfor(conn,block);
  if (pcStack_1c == *(connectdata **)puVar1) {
    return CVar2;
  }
  conn_00 = pcStack_1c;
  (*(code *)PTR___stack_chk_fail_000b1c48)();
  CVar2 = ssh_multi_statemach(conn_00,done_00);
  return CVar2;
}



undefined4 FUN_0005a584(int param_1,undefined4 param_2)

{
  undefined *puVar1;
  undefined4 uVar2;
  undefined1 local_1d;
  int local_1c;
  
  puVar1 = PTR___stack_chk_guard_000b1fd4;
  local_1c = *(int *)PTR___stack_chk_guard_000b1fd4;
  uVar2 = FUN_00055564(param_1,&local_1d);
  *(bool *)param_2 = *(int *)(param_1 + 0x4c4) == 0;
  FUN_00055198(param_1,local_1d);
  if (local_1c == *(int *)puVar1) {
    return uVar2;
  }
  (*(code *)PTR___stack_chk_fail_000b1c48)();
  uVar2 = FUN_0005a584();
  return uVar2;
}


lui gp,0x6
addiu gp,gp,-0x1474
addu gp,gp,t9
addiu sp,sp,-0x38
sw ra,0x34(sp)
sw s3,0x30(sp)
sw s2,0x2c(sp)
sw s1,0x28(sp)
sw s0,0x24(sp)
sw gp,0x10(sp)
or s1,a0,zero
or s3,a1,zero
lw s0,-0x713c(gp)
lw v0,0x0(s0)
sw v0,0x1c(sp)
addiu a1,sp,0x1b
lw t9,-0x7aec(gp)
addiu t9,t9,0x5564
bal 0x00055564
_nop
lw gp,0x10(sp)
or s2,v0,zero
lw v0,0x4c4(s1)
sltiu v0,v0,0x1
sb v0,0x0(s3)
lbu a1,0x1b(sp)
or a0,s1,zero
lw t9,-0x7aec(gp)
addiu t9,t9,0x5198
bal 0x00055198
_nop
lw gp,0x10(sp)
lw a0,0x1c(sp)
lw v1,0x0(s0)
bne a0,v1,0x0005a630
_or v0,s2,zero
lw ra,0x34(sp)
lw s3,0x30(sp)
lw s2,0x2c(sp)
lw s1,0x28(sp)
lw s0,0x24(sp)
jr ra
_addiu sp,sp,0x38
lw t9,-0x74c8(gp)
jalr t9
_nop
lui gp,0x6
addiu gp,gp,-0x152c
addu gp,gp,t9
addiu sp,sp,-0x20
sw ra,0x1c(sp)
sw gp,0x10(sp)
lw t9,-0x7a08(gp)
addiu t9,t9,-0x5a7c
bal 0x0005a584
_nop
lw gp,0x10(sp)
lw ra,0x1c(sp)
jr ra
_addiu sp,sp,0x20
(translation_unit "undefined4 FUN_0005a584(int param_1,undefined4 param_2)\n\n{\n  undefined *puVar1;\n  undefined4 uVar2;\n  undefined1 local_1d;\n  int local_1c;\n  \n  puVar1 = PTR___stack_chk_guard_000b1fd4;\n  local_1c = *(int *)PTR___stack_chk_guard_000b1fd4;\n  uVar2 = FUN_00055564(param_1,&local_1d);\n  *(bool *)param_2 = *(int *)(param_1 + 0x4c4) == 0;\n  FUN_00055198(param_1,local_1d);\n  if (local_1c == *(int *)puVar1) {\n    return uVar2;\n  }\n  (*(code *)PTR___stack_chk_fail_000b1c48)();\n  uVar2 = FUN_0005a584();\n  return uVar2;\n}\n\n" (function_definition "undefined4 FUN_0005a584(int param_1,undefined4 param_2)\n\n{\n  undefined *puVar1;\n  undefined4 uVar2;\n  undefined1 local_1d;\n  int local_1c;\n  \n  puVar1 = PTR___stack_chk_guard_000b1fd4;\n  local_1c = *(int *)PTR___stack_chk_guard_000b1fd4;\n  uVar2 = FUN_00055564(param_1,&local_1d);\n  *(bool *)param_2 = *(int *)(param_1 + 0x4c4) == 0;\n  FUN_00055198(param_1,local_1d);\n  if (local_1c == *(int *)puVar1) {\n    return uVar2;\n  }\n  (*(code *)PTR___stack_chk_fail_000b1c48)();\n  uVar2 = FUN_0005a584();\n  return uVar2;\n}" type_identifier (function_declarator "FUN_0005a584(int param_1,undefined4 param_2)" identifier (parameter_list "(int param_1,undefined4 param_2)" ( (parameter_declaration "int param_1" primitive_type identifier) , (parameter_declaration "undefined4 param_2" type_identifier identifier) ))) (compound_statement "{\n  undefined *puVar1;\n  undefined4 uVar2;\n  undefined1 local_1d;\n  int local_1c;\n  \n  puVar1 = PTR___stack_chk_guard_000b1fd4;\n  local_1c = *(int *)PTR___stack_chk_guard_000b1fd4;\n  uVar2 = FUN_00055564(param_1,&local_1d);\n  *(bool *)param_2 = *(int *)(param_1 + 0x4c4) == 0;\n  FUN_00055198(param_1,local_1d);\n  if (local_1c == *(int *)puVar1) {\n    return uVar2;\n  }\n  (*(code *)PTR___stack_chk_fail_000b1c48)();\n  uVar2 = FUN_0005a584();\n  return uVar2;\n}" { (declaration "undefined *puVar1;" type_identifier (pointer_declarator "*puVar1" * identifier) ;) (declaration "undefined4 uVar2;" type_identifier identifier ;) (declaration "undefined1 local_1d;" type_identifier identifier ;) (declaration "int local_1c;" primitive_type identifier ;) (expression_statement "puVar1 = PTR___stack_chk_guard_000b1fd4;" (assignment_expression "puVar1 = PTR___stack_chk_guard_000b1fd4" identifier = identifier) ;) (expression_statement "local_1c = *(int *)PTR___stack_chk_guard_000b1fd4;" (assignment_expression "local_1c = *(int *)PTR___stack_chk_guard_000b1fd4" identifier = (pointer_expression "*(int *)PTR___stack_chk_guard_000b1fd4" * (cast_expression "(int *)PTR___stack_chk_guard_000b1fd4" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) identifier))) ;) (expression_statement "uVar2 = FUN_00055564(param_1,&local_1d);" (assignment_expression "uVar2 = FUN_00055564(param_1,&local_1d)" identifier = (call_expression "FUN_00055564(param_1,&local_1d)" identifier (argument_list "(param_1,&local_1d)" ( identifier , (pointer_expression "&local_1d" & identifier) )))) ;) (expression_statement "*(bool *)param_2 = *(int *)(param_1 + 0x4c4) == 0;" (assignment_expression "*(bool *)param_2 = *(int *)(param_1 + 0x4c4) == 0" (pointer_expression "*(bool *)param_2" * (cast_expression "(bool *)param_2" ( (type_descriptor "bool *" primitive_type (abstract_pointer_declarator "*" *)) ) identifier)) = (binary_expression "*(int *)(param_1 + 0x4c4) == 0" (pointer_expression "*(int *)(param_1 + 0x4c4)" * (cast_expression "(int *)(param_1 + 0x4c4)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x4c4)" ( (binary_expression "param_1 + 0x4c4" identifier + number_literal) )))) == number_literal)) ;) (expression_statement "FUN_00055198(param_1,local_1d);" (call_expression "FUN_00055198(param_1,local_1d)" identifier (argument_list "(param_1,local_1d)" ( identifier , identifier ))) ;) (if_statement "if (local_1c == *(int *)puVar1) {\n    return uVar2;\n  }" if (parenthesized_expression "(local_1c == *(int *)puVar1)" ( (binary_expression "local_1c == *(int *)puVar1" identifier == (pointer_expression "*(int *)puVar1" * (cast_expression "(int *)puVar1" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) identifier))) )) (compound_statement "{\n    return uVar2;\n  }" { (return_statement "return uVar2;" return identifier ;) })) (expression_statement "(*(code *)PTR___stack_chk_fail_000b1c48)();" (call_expression "(*(code *)PTR___stack_chk_fail_000b1c48)()" (parenthesized_expression "(*(code *)PTR___stack_chk_fail_000b1c48)" ( (pointer_expression "*(code *)PTR___stack_chk_fail_000b1c48" * (cast_expression "(code *)PTR___stack_chk_fail_000b1c48" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "()" ( ))) ;) (expression_statement "uVar2 = FUN_0005a584();" (assignment_expression "uVar2 = FUN_0005a584()" identifier = (call_expression "FUN_0005a584()" identifier (argument_list "()" ( )))) ;) (return_statement "return uVar2;" return identifier ;) })))
(translation_unit "/* WARNING: Enum "anon_enum_32": Some values do not have unique names */\n\nCURLcode ssh_multi_statemach(connectdata *conn,_Bool *done)\n\n{\n  undefined *puVar1;\n  CURLcode CVar2;\n  connectdata *conn_00;\n  _Bool *done_00;\n  _Bool block;\n  connectdata *pcStack_1c;\n  \n  puVar1 = PTR___stack_chk_guard_000b1fd4;\n  pcStack_1c = *(connectdata **)PTR___stack_chk_guard_000b1fd4;\n  CVar2 = ssh_statemach_act(conn,&block);\n  *done = (conn->proto).ftpc.pp.sendthis == (char *)0x0;\n  done_00 = (_Bool *)(uint)block;\n  ssh_block2waitfor(conn,block);\n  if (pcStack_1c == *(connectdata **)puVar1) {\n    return CVar2;\n  }\n  conn_00 = pcStack_1c;\n  (*(code *)PTR___stack_chk_fail_000b1c48)();\n  CVar2 = ssh_multi_statemach(conn_00,done_00);\n  return CVar2;\n}\n\n" comment (function_definition "CURLcode ssh_multi_statemach(connectdata *conn,_Bool *done)\n\n{\n  undefined *puVar1;\n  CURLcode CVar2;\n  connectdata *conn_00;\n  _Bool *done_00;\n  _Bool block;\n  connectdata *pcStack_1c;\n  \n  puVar1 = PTR___stack_chk_guard_000b1fd4;\n  pcStack_1c = *(connectdata **)PTR___stack_chk_guard_000b1fd4;\n  CVar2 = ssh_statemach_act(conn,&block);\n  *done = (conn->proto).ftpc.pp.sendthis == (char *)0x0;\n  done_00 = (_Bool *)(uint)block;\n  ssh_block2waitfor(conn,block);\n  if (pcStack_1c == *(connectdata **)puVar1) {\n    return CVar2;\n  }\n  conn_00 = pcStack_1c;\n  (*(code *)PTR___stack_chk_fail_000b1c48)();\n  CVar2 = ssh_multi_statemach(conn_00,done_00);\n  return CVar2;\n}" type_identifier (function_declarator "ssh_multi_statemach(connectdata *conn,_Bool *done)" identifier (parameter_list "(connectdata *conn,_Bool *done)" ( (parameter_declaration "connectdata *conn" type_identifier (pointer_declarator "*conn" * identifier)) , (parameter_declaration "_Bool *done" type_identifier (pointer_declarator "*done" * identifier)) ))) (compound_statement "{\n  undefined *puVar1;\n  CURLcode CVar2;\n  connectdata *conn_00;\n  _Bool *done_00;\n  _Bool block;\n  connectdata *pcStack_1c;\n  \n  puVar1 = PTR___stack_chk_guard_000b1fd4;\n  pcStack_1c = *(connectdata **)PTR___stack_chk_guard_000b1fd4;\n  CVar2 = ssh_statemach_act(conn,&block);\n  *done = (conn->proto).ftpc.pp.sendthis == (char *)0x0;\n  done_00 = (_Bool *)(uint)block;\n  ssh_block2waitfor(conn,block);\n  if (pcStack_1c == *(connectdata **)puVar1) {\n    return CVar2;\n  }\n  conn_00 = pcStack_1c;\n  (*(code *)PTR___stack_chk_fail_000b1c48)();\n  CVar2 = ssh_multi_statemach(conn_00,done_00);\n  return CVar2;\n}" { (declaration "undefined *puVar1;" type_identifier (pointer_declarator "*puVar1" * identifier) ;) (declaration "CURLcode CVar2;" type_identifier identifier ;) (declaration "connectdata *conn_00;" type_identifier (pointer_declarator "*conn_00" * identifier) ;) (declaration "_Bool *done_00;" type_identifier (pointer_declarator "*done_00" * identifier) ;) (declaration "_Bool block;" type_identifier identifier ;) (declaration "connectdata *pcStack_1c;" type_identifier (pointer_declarator "*pcStack_1c" * identifier) ;) (expression_statement "puVar1 = PTR___stack_chk_guard_000b1fd4;" (assignment_expression "puVar1 = PTR___stack_chk_guard_000b1fd4" identifier = identifier) ;) (expression_statement "pcStack_1c = *(connectdata **)PTR___stack_chk_guard_000b1fd4;" (assignment_expression "pcStack_1c = *(connectdata **)PTR___stack_chk_guard_000b1fd4" identifier = (pointer_expression "*(connectdata **)PTR___stack_chk_guard_000b1fd4" * (cast_expression "(connectdata **)PTR___stack_chk_guard_000b1fd4" ( (type_descriptor "connectdata **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) identifier))) ;) (expression_statement "CVar2 = ssh_statemach_act(conn,&block);" (assignment_expression "CVar2 = ssh_statemach_act(conn,&block)" identifier = (call_expression "ssh_statemach_act(conn,&block)" identifier (argument_list "(conn,&block)" ( identifier , (pointer_expression "&block" & identifier) )))) ;) (expression_statement "*done = (conn->proto).ftpc.pp.sendthis == (char *)0x0;" (assignment_expression "*done = (conn->proto).ftpc.pp.sendthis == (char *)0x0" (pointer_expression "*done" * identifier) = (binary_expression "(conn->proto).ftpc.pp.sendthis == (char *)0x0" (field_expression "(conn->proto).ftpc.pp.sendthis" (field_expression "(conn->proto).ftpc.pp" (field_expression "(conn->proto).ftpc" (parenthesized_expression "(conn->proto)" ( (field_expression "conn->proto" identifier -> field_identifier) )) . field_identifier) . field_identifier) . field_identifier) == (cast_expression "(char *)0x0" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal))) ;) (expression_statement "done_00 = (_Bool *)(uint)block;" (assignment_expression "done_00 = (_Bool *)(uint)block" identifier = (cast_expression "(_Bool *)(uint)block" ( (type_descriptor "_Bool *" type_identifier (abstract_pointer_declarator "*" *)) ) (cast_expression "(uint)block" ( (type_descriptor "uint" type_identifier) ) identifier))) ;) (expression_statement "ssh_block2waitfor(conn,block);" (call_expression "ssh_block2waitfor(conn,block)" identifier (argument_list "(conn,block)" ( identifier , identifier ))) ;) (if_statement "if (pcStack_1c == *(connectdata **)puVar1) {\n    return CVar2;\n  }" if (parenthesized_expression "(pcStack_1c == *(connectdata **)puVar1)" ( (binary_expression "pcStack_1c == *(connectdata **)puVar1" identifier == (pointer_expression "*(connectdata **)puVar1" * (cast_expression "(connectdata **)puVar1" ( (type_descriptor "connectdata **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) identifier))) )) (compound_statement "{\n    return CVar2;\n  }" { (return_statement "return CVar2;" return identifier ;) })) (expression_statement "conn_00 = pcStack_1c;" (assignment_expression "conn_00 = pcStack_1c" identifier = identifier) ;) (expression_statement "(*(code *)PTR___stack_chk_fail_000b1c48)();" (call_expression "(*(code *)PTR___stack_chk_fail_000b1c48)()" (parenthesized_expression "(*(code *)PTR___stack_chk_fail_000b1c48)" ( (pointer_expression "*(code *)PTR___stack_chk_fail_000b1c48" * (cast_expression "(code *)PTR___stack_chk_fail_000b1c48" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "()" ( ))) ;) (expression_statement "CVar2 = ssh_multi_statemach(conn_00,done_00);" (assignment_expression "CVar2 = ssh_multi_statemach(conn_00,done_00)" identifier = (call_expression "ssh_multi_statemach(conn_00,done_00)" identifier (argument_list "(conn_00,done_00)" ( identifier , identifier )))) ;) (return_statement "return CVar2;" return identifier ;) })))
(translation_unit "undefined4 FUN_0005a584(int param_1,undefined4 param_2)\n\n{\n  undefined *puVar1;\n  undefined4 uVar2;\n  undefined1 local_1d;\n  int local_1c;\n  \n  puVar1 = PTR___stack_chk_guard_000b1fd4;\n  local_1c = *(int *)PTR___stack_chk_guard_000b1fd4;\n  uVar2 = FUN_00055564(param_1,&local_1d);\n  *(bool *)param_2 = *(int *)(param_1 + 0x4c4) == 0;\n  FUN_00055198(param_1,local_1d);\n  if (local_1c == *(int *)puVar1) {\n    return uVar2;\n  }\n  (*(code *)PTR___stack_chk_fail_000b1c48)();\n  uVar2 = FUN_0005a584();\n  return uVar2;\n}\n\n" (function_definition "undefined4 FUN_0005a584(int param_1,undefined4 param_2)\n\n{\n  undefined *puVar1;\n  undefined4 uVar2;\n  undefined1 local_1d;\n  int local_1c;\n  \n  puVar1 = PTR___stack_chk_guard_000b1fd4;\n  local_1c = *(int *)PTR___stack_chk_guard_000b1fd4;\n  uVar2 = FUN_00055564(param_1,&local_1d);\n  *(bool *)param_2 = *(int *)(param_1 + 0x4c4) == 0;\n  FUN_00055198(param_1,local_1d);\n  if (local_1c == *(int *)puVar1) {\n    return uVar2;\n  }\n  (*(code *)PTR___stack_chk_fail_000b1c48)();\n  uVar2 = FUN_0005a584();\n  return uVar2;\n}" type_identifier (function_declarator "FUN_0005a584(int param_1,undefined4 param_2)" identifier (parameter_list "(int param_1,undefined4 param_2)" ( (parameter_declaration "int param_1" primitive_type identifier) , (parameter_declaration "undefined4 param_2" type_identifier identifier) ))) (compound_statement "{\n  undefined *puVar1;\n  undefined4 uVar2;\n  undefined1 local_1d;\n  int local_1c;\n  \n  puVar1 = PTR___stack_chk_guard_000b1fd4;\n  local_1c = *(int *)PTR___stack_chk_guard_000b1fd4;\n  uVar2 = FUN_00055564(param_1,&local_1d);\n  *(bool *)param_2 = *(int *)(param_1 + 0x4c4) == 0;\n  FUN_00055198(param_1,local_1d);\n  if (local_1c == *(int *)puVar1) {\n    return uVar2;\n  }\n  (*(code *)PTR___stack_chk_fail_000b1c48)();\n  uVar2 = FUN_0005a584();\n  return uVar2;\n}" { (declaration "undefined *puVar1;" type_identifier (pointer_declarator "*puVar1" * identifier) ;) (declaration "undefined4 uVar2;" type_identifier identifier ;) (declaration "undefined1 local_1d;" type_identifier identifier ;) (declaration "int local_1c;" primitive_type identifier ;) (expression_statement "puVar1 = PTR___stack_chk_guard_000b1fd4;" (assignment_expression "puVar1 = PTR___stack_chk_guard_000b1fd4" identifier = identifier) ;) (expression_statement "local_1c = *(int *)PTR___stack_chk_guard_000b1fd4;" (assignment_expression "local_1c = *(int *)PTR___stack_chk_guard_000b1fd4" identifier = (pointer_expression "*(int *)PTR___stack_chk_guard_000b1fd4" * (cast_expression "(int *)PTR___stack_chk_guard_000b1fd4" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) identifier))) ;) (expression_statement "uVar2 = FUN_00055564(param_1,&local_1d);" (assignment_expression "uVar2 = FUN_00055564(param_1,&local_1d)" identifier = (call_expression "FUN_00055564(param_1,&local_1d)" identifier (argument_list "(param_1,&local_1d)" ( identifier , (pointer_expression "&local_1d" & identifier) )))) ;) (expression_statement "*(bool *)param_2 = *(int *)(param_1 + 0x4c4) == 0;" (assignment_expression "*(bool *)param_2 = *(int *)(param_1 + 0x4c4) == 0" (pointer_expression "*(bool *)param_2" * (cast_expression "(bool *)param_2" ( (type_descriptor "bool *" primitive_type (abstract_pointer_declarator "*" *)) ) identifier)) = (binary_expression "*(int *)(param_1 + 0x4c4) == 0" (pointer_expression "*(int *)(param_1 + 0x4c4)" * (cast_expression "(int *)(param_1 + 0x4c4)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x4c4)" ( (binary_expression "param_1 + 0x4c4" identifier + number_literal) )))) == number_literal)) ;) (expression_statement "FUN_00055198(param_1,local_1d);" (call_expression "FUN_00055198(param_1,local_1d)" identifier (argument_list "(param_1,local_1d)" ( identifier , identifier ))) ;) (if_statement "if (local_1c == *(int *)puVar1) {\n    return uVar2;\n  }" if (parenthesized_expression "(local_1c == *(int *)puVar1)" ( (binary_expression "local_1c == *(int *)puVar1" identifier == (pointer_expression "*(int *)puVar1" * (cast_expression "(int *)puVar1" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) identifier))) )) (compound_statement "{\n    return uVar2;\n  }" { (return_statement "return uVar2;" return identifier ;) })) (expression_statement "(*(code *)PTR___stack_chk_fail_000b1c48)();" (call_expression "(*(code *)PTR___stack_chk_fail_000b1c48)()" (parenthesized_expression "(*(code *)PTR___stack_chk_fail_000b1c48)" ( (pointer_expression "*(code *)PTR___stack_chk_fail_000b1c48" * (cast_expression "(code *)PTR___stack_chk_fail_000b1c48" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "()" ( ))) ;) (expression_statement "uVar2 = FUN_0005a584();" (assignment_expression "uVar2 = FUN_0005a584()" identifier = (call_expression "FUN_0005a584()" identifier (argument_list "()" ( )))) ;) (return_statement "return uVar2;" return identifier ;) })))
(translation_unit (function_definition TYPE (function_declarator IDENT (parameter_list ( (parameter_declaration TYPE IDENT) , (parameter_declaration TYPE IDENT) ))) (compound_statement { (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (expression_statement (assignment_expression IDENT = IDENT) ;) (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT))) ;) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( IDENT , (pointer_expression & IDENT) )))) ;) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT)) = (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) == LIT)) ;) (expression_statement (call_expression IDENT (argument_list ( IDENT , IDENT ))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT == (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT))) )) (compound_statement { (return_statement return IDENT ;) })) (expression_statement (call_expression (parenthesized_expression ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT)) )) (argument_list ( ))) ;) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( )))) ;) (return_statement return IDENT ;) })))
(function_definition "undefined4 FUN_0005a584(int param_1,undefined4 param_2)\n\n{\n  undefined *puVar1;\n  undefined4 uVar2;\n  undefined1 local_1d;\n  int local_1c;\n  \n  puVar1 = PTR___stack_chk_guard_000b1fd4;\n  local_1c = *(int *)PTR___stack_chk_guard_000b1fd4;\n  uVar2 = FUN_00055564(param_1,&local_1d);\n  *(bool *)param_2 = *(int *)(param_1 + 0x4c4) == 0;\n  FUN_00055198(param_1,local_1d);\n  if (local_1c == *(int *)puVar1) {\n    return uVar2;\n  }\n  (*(code *)PTR___stack_chk_fail_000b1c48)();\n  uVar2 = FUN_0005a584();\n  return uVar2;\n}" (type_identifier "undefined4") (function_declarator "FUN_0005a584(int param_1,undefined4 param_2)" (identifier "FUN_0005a584") (parameter_list "(int param_1,undefined4 param_2)" (( "(") (parameter_declaration "int param_1" (primitive_type "int") (identifier "param_1")) (, ",") (parameter_declaration "undefined4 param_2" (type_identifier "undefined4") (identifier "param_2")) () ")"))) (compound_statement "{\n  undefined *puVar1;\n  undefined4 uVar2;\n  undefined1 local_1d;\n  int local_1c;\n  \n  puVar1 = PTR___stack_chk_guard_000b1fd4;\n  local_1c = *(int *)PTR___stack_chk_guard_000b1fd4;\n  uVar2 = FUN_00055564(param_1,&local_1d);\n  *(bool *)param_2 = *(int *)(param_1 + 0x4c4) == 0;\n  FUN_00055198(param_1,local_1d);\n  if (local_1c == *(int *)puVar1) {\n    return uVar2;\n  }\n  (*(code *)PTR___stack_chk_fail_000b1c48)();\n  uVar2 = FUN_0005a584();\n  return uVar2;\n}" ({ "{") (declaration "undefined *puVar1;" (type_identifier "undefined") (pointer_declarator "*puVar1" (* "*") (identifier "puVar1")) (; ";")) (declaration "undefined4 uVar2;" (type_identifier "undefined4") (identifier "uVar2") (; ";")) (declaration "undefined1 local_1d;" (type_identifier "undefined1") (identifier "local_1d") (; ";")) (declaration "int local_1c;" (primitive_type "int") (identifier "local_1c") (; ";")) (expression_statement "puVar1 = PTR___stack_chk_guard_000b1fd4;" (assignment_expression "puVar1 = PTR___stack_chk_guard_000b1fd4" (identifier "puVar1") (= "=") (identifier "PTR___stack_chk_guard_000b1fd4")) (; ";")) (expression_statement "local_1c = *(int *)PTR___stack_chk_guard_000b1fd4;" (assignment_expression "local_1c = *(int *)PTR___stack_chk_guard_000b1fd4" (identifier "local_1c") (= "=") (pointer_expression "*(int *)PTR___stack_chk_guard_000b1fd4" (* "*") (cast_expression "(int *)PTR___stack_chk_guard_000b1fd4" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR___stack_chk_guard_000b1fd4")))) (; ";")) (expression_statement "uVar2 = FUN_00055564(param_1,&local_1d);" (assignment_expression "uVar2 = FUN_00055564(param_1,&local_1d)" (identifier "uVar2") (= "=") (call_expression "FUN_00055564(param_1,&local_1d)" (identifier "FUN_00055564") (argument_list "(param_1,&local_1d)" (( "(") (identifier "param_1") (, ",") (pointer_expression "&local_1d" (& "&") (identifier "local_1d")) () ")")))) (; ";")) (expression_statement "*(bool *)param_2 = *(int *)(param_1 + 0x4c4) == 0;" (assignment_expression "*(bool *)param_2 = *(int *)(param_1 + 0x4c4) == 0" (pointer_expression "*(bool *)param_2" (* "*") (cast_expression "(bool *)param_2" (( "(") (type_descriptor "bool *" (primitive_type "bool") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "param_2"))) (= "=") (binary_expression "*(int *)(param_1 + 0x4c4) == 0" (pointer_expression "*(int *)(param_1 + 0x4c4)" (* "*") (cast_expression "(int *)(param_1 + 0x4c4)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x4c4)" (( "(") (binary_expression "param_1 + 0x4c4" (identifier "param_1") (+ "+") (number_literal "0x4c4")) () ")")))) (== "==") (number_literal "0"))) (; ";")) (expression_statement "FUN_00055198(param_1,local_1d);" (call_expression "FUN_00055198(param_1,local_1d)" (identifier "FUN_00055198") (argument_list "(param_1,local_1d)" (( "(") (identifier "param_1") (, ",") (identifier "local_1d") () ")"))) (; ";")) (if_statement "if (local_1c == *(int *)puVar1) {\n    return uVar2;\n  }" (if "if") (parenthesized_expression "(local_1c == *(int *)puVar1)" (( "(") (binary_expression "local_1c == *(int *)puVar1" (identifier "local_1c") (== "==") (pointer_expression "*(int *)puVar1" (* "*") (cast_expression "(int *)puVar1" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "puVar1")))) () ")")) (compound_statement "{\n    return uVar2;\n  }" ({ "{") (return_statement "return uVar2;" (return "return") (identifier "uVar2") (; ";")) (} "}"))) (expression_statement "(*(code *)PTR___stack_chk_fail_000b1c48)();" (call_expression "(*(code *)PTR___stack_chk_fail_000b1c48)()" (parenthesized_expression "(*(code *)PTR___stack_chk_fail_000b1c48)" (( "(") (pointer_expression "*(code *)PTR___stack_chk_fail_000b1c48" (* "*") (cast_expression "(code *)PTR___stack_chk_fail_000b1c48" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR___stack_chk_fail_000b1c48"))) () ")")) (argument_list "()" (( "(") () ")"))) (; ";")) (expression_statement "uVar2 = FUN_0005a584();" (assignment_expression "uVar2 = FUN_0005a584()" (identifier "uVar2") (= "=") (call_expression "FUN_0005a584()" (identifier "FUN_0005a584") (argument_list "()" (( "(") () ")")))) (; ";")) (return_statement "return uVar2;" (return "return") (identifier "uVar2") (; ";")) (} "}")))

/* WARNING: Enum "anon_enum_32": Some values do not have unique names */

type_1 function_1(type_2 *conn,type_3 *done)

{
  type_4 *puVar1;
  type_1 CVar2;
  type_2 *conn_00;
  type_3 *done_00;
  type_3 block;
  type_2 *var_3;
  
  puVar1 = PTR___stack_chk_guard_000b1fd4;
  var_3 = *(type_2 **)PTR___stack_chk_guard_000b1fd4;
  CVar2 = var_1(conn,&block);
  *done = (conn->proto).ftpc.pp.sendthis == (char *)0x0;
  done_00 = (type_3 *)(type_5)block;
  var_2(conn,block);
  if (var_3 == *(type_2 **)puVar1) {
    return CVar2;
  }
  conn_00 = var_3;
  (*(type_6 *)PTR___stack_chk_fail_000b1c48)();
  CVar2 = function_1(conn_00,done_00);
  return CVar2;
}


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

undefined4 MASKED(int param_1,undefined4 param_2)

{
  undefined *puVar1;
  undefined4 uVar2;
  undefined1 local_1d;
  int local_1c;
  
  puVar1 = PTR___stack_chk_guard_000b1fd4;
  local_1c = *(int *)PTR___stack_chk_guard_000b1fd4;
  uVar2 = FUN_00055564(param_1,&local_1d);
  *(bool *)param_2 = *(int *)(param_1 + 0x4c4) == 0;
  FUN_00055198(param_1,local_1d);
  if (local_1c == *(int *)puVar1) {
    return uVar2;
  }
  (*(code *)PTR___stack_chk_fail_000b1c48)();
  uVar2 = MASKED();
  return uVar2;
}

