
int wgnutls_write(int fd,char *buf,int bufsize,void *arg)

{
  int iVar1;
  
  do {
    do {
                    /* WARNING: Load size is inaccurate */
      iVar1 = (*(code *)PTR_gnutls_record_send_000afbe4)(*arg,buf,bufsize);
    } while (iVar1 == -0x34);
  } while (iVar1 == -0x1c);
  if (iVar1 < 0) {
    *(int *)((int)arg + 8) = iVar1;
  }
  return iVar1;
}



void FUN_0005e39c(undefined4 param_1,undefined4 param_2,undefined4 param_3,undefined4 *param_4)

{
  int iVar1;
  
  do {
    do {
      iVar1 = (*(code *)PTR_gnutls_record_send_000afbe4)(*param_4,param_2,param_3);
    } while (iVar1 == -0x34);
  } while (iVar1 == -0x1c);
  if (iVar1 < 0) {
    param_4[2] = iVar1;
  }
  return;
}


lui gp,0x6
addiu gp,gp,-0x6f6c
addu gp,gp,t9
addiu sp,sp,-0x30
sw s4,0x28(sp)
li s4,-0x1c
sw s3,0x24(sp)
li s3,-0x34
sw s2,0x20(sp)
or s2,a1,zero
sw s1,0x1c(sp)
or s1,a2,zero
sw s0,0x18(sp)
or s0,a3,zero
sw gp,0x10(sp)
sw ra,0x2c(sp)
lw t9,-0x784c(gp)
or a2,s1,zero
lw a0,0x0(s0)
jalr t9
_or a1,s2,zero
beq v0,s3,0x0005e3dc
_lw gp,0x10(sp)
beq v0,s4,0x0005e3e0
_lw t9,-0x784c(gp)
bgez v0,0x0005e410
_lw ra,0x2c(sp)
sw v0,0x8(s0)
lw ra,0x2c(sp)
lw s4,0x28(sp)
lw s3,0x24(sp)
lw s2,0x20(sp)
lw s1,0x1c(sp)
lw s0,0x18(sp)
jr ra
_addiu sp,sp,0x30
(translation_unit "void FUN_0005e39c(undefined4 param_1,undefined4 param_2,undefined4 param_3,undefined4 *param_4)\n\n{\n  int iVar1;\n  \n  do {\n    do {\n      iVar1 = (*(code *)PTR_gnutls_record_send_000afbe4)(*param_4,param_2,param_3);\n    } while (iVar1 == -0x34);\n  } while (iVar1 == -0x1c);\n  if (iVar1 < 0) {\n    param_4[2] = iVar1;\n  }\n  return;\n}\n\n" (function_definition "void FUN_0005e39c(undefined4 param_1,undefined4 param_2,undefined4 param_3,undefined4 *param_4)\n\n{\n  int iVar1;\n  \n  do {\n    do {\n      iVar1 = (*(code *)PTR_gnutls_record_send_000afbe4)(*param_4,param_2,param_3);\n    } while (iVar1 == -0x34);\n  } while (iVar1 == -0x1c);\n  if (iVar1 < 0) {\n    param_4[2] = iVar1;\n  }\n  return;\n}" primitive_type (function_declarator "FUN_0005e39c(undefined4 param_1,undefined4 param_2,undefined4 param_3,undefined4 *param_4)" identifier (parameter_list "(undefined4 param_1,undefined4 param_2,undefined4 param_3,undefined4 *param_4)" ( (parameter_declaration "undefined4 param_1" type_identifier identifier) , (parameter_declaration "undefined4 param_2" type_identifier identifier) , (parameter_declaration "undefined4 param_3" type_identifier identifier) , (parameter_declaration "undefined4 *param_4" type_identifier (pointer_declarator "*param_4" * identifier)) ))) (compound_statement "{\n  int iVar1;\n  \n  do {\n    do {\n      iVar1 = (*(code *)PTR_gnutls_record_send_000afbe4)(*param_4,param_2,param_3);\n    } while (iVar1 == -0x34);\n  } while (iVar1 == -0x1c);\n  if (iVar1 < 0) {\n    param_4[2] = iVar1;\n  }\n  return;\n}" { (declaration "int iVar1;" primitive_type identifier ;) (do_statement "do {\n    do {\n      iVar1 = (*(code *)PTR_gnutls_record_send_000afbe4)(*param_4,param_2,param_3);\n    } while (iVar1 == -0x34);\n  } while (iVar1 == -0x1c);" do (compound_statement "{\n    do {\n      iVar1 = (*(code *)PTR_gnutls_record_send_000afbe4)(*param_4,param_2,param_3);\n    } while (iVar1 == -0x34);\n  }" { (do_statement "do {\n      iVar1 = (*(code *)PTR_gnutls_record_send_000afbe4)(*param_4,param_2,param_3);\n    } while (iVar1 == -0x34);" do (compound_statement "{\n      iVar1 = (*(code *)PTR_gnutls_record_send_000afbe4)(*param_4,param_2,param_3);\n    }" { (expression_statement "iVar1 = (*(code *)PTR_gnutls_record_send_000afbe4)(*param_4,param_2,param_3);" (assignment_expression "iVar1 = (*(code *)PTR_gnutls_record_send_000afbe4)(*param_4,param_2,param_3)" identifier = (call_expression "(*(code *)PTR_gnutls_record_send_000afbe4)(*param_4,param_2,param_3)" (parenthesized_expression "(*(code *)PTR_gnutls_record_send_000afbe4)" ( (pointer_expression "*(code *)PTR_gnutls_record_send_000afbe4" * (cast_expression "(code *)PTR_gnutls_record_send_000afbe4" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(*param_4,param_2,param_3)" ( (pointer_expression "*param_4" * identifier) , identifier , identifier )))) ;) }) while (parenthesized_expression "(iVar1 == -0x34)" ( (binary_expression "iVar1 == -0x34" identifier == number_literal) )) ;) }) while (parenthesized_expression "(iVar1 == -0x1c)" ( (binary_expression "iVar1 == -0x1c" identifier == number_literal) )) ;) (if_statement "if (iVar1 < 0) {\n    param_4[2] = iVar1;\n  }" if (parenthesized_expression "(iVar1 < 0)" ( (binary_expression "iVar1 < 0" identifier < number_literal) )) (compound_statement "{\n    param_4[2] = iVar1;\n  }" { (expression_statement "param_4[2] = iVar1;" (assignment_expression "param_4[2] = iVar1" (subscript_expression "param_4[2]" identifier [ number_literal ]) = identifier) ;) })) (return_statement "return;" return ;) })))
(translation_unit "int wgnutls_write(int fd,char *buf,int bufsize,void *arg)\n\n{\n  int iVar1;\n  \n  do {\n    do {\n                    /* WARNING: Load size is inaccurate */\n      iVar1 = (*(code *)PTR_gnutls_record_send_000afbe4)(*arg,buf,bufsize);\n    } while (iVar1 == -0x34);\n  } while (iVar1 == -0x1c);\n  if (iVar1 < 0) {\n    *(int *)((int)arg + 8) = iVar1;\n  }\n  return iVar1;\n}\n\n" (function_definition "int wgnutls_write(int fd,char *buf,int bufsize,void *arg)\n\n{\n  int iVar1;\n  \n  do {\n    do {\n                    /* WARNING: Load size is inaccurate */\n      iVar1 = (*(code *)PTR_gnutls_record_send_000afbe4)(*arg,buf,bufsize);\n    } while (iVar1 == -0x34);\n  } while (iVar1 == -0x1c);\n  if (iVar1 < 0) {\n    *(int *)((int)arg + 8) = iVar1;\n  }\n  return iVar1;\n}" primitive_type (function_declarator "wgnutls_write(int fd,char *buf,int bufsize,void *arg)" identifier (parameter_list "(int fd,char *buf,int bufsize,void *arg)" ( (parameter_declaration "int fd" primitive_type identifier) , (parameter_declaration "char *buf" primitive_type (pointer_declarator "*buf" * identifier)) , (parameter_declaration "int bufsize" primitive_type identifier) , (parameter_declaration "void *arg" primitive_type (pointer_declarator "*arg" * identifier)) ))) (compound_statement "{\n  int iVar1;\n  \n  do {\n    do {\n                    /* WARNING: Load size is inaccurate */\n      iVar1 = (*(code *)PTR_gnutls_record_send_000afbe4)(*arg,buf,bufsize);\n    } while (iVar1 == -0x34);\n  } while (iVar1 == -0x1c);\n  if (iVar1 < 0) {\n    *(int *)((int)arg + 8) = iVar1;\n  }\n  return iVar1;\n}" { (declaration "int iVar1;" primitive_type identifier ;) (do_statement "do {\n    do {\n                    /* WARNING: Load size is inaccurate */\n      iVar1 = (*(code *)PTR_gnutls_record_send_000afbe4)(*arg,buf,bufsize);\n    } while (iVar1 == -0x34);\n  } while (iVar1 == -0x1c);" do (compound_statement "{\n    do {\n                    /* WARNING: Load size is inaccurate */\n      iVar1 = (*(code *)PTR_gnutls_record_send_000afbe4)(*arg,buf,bufsize);\n    } while (iVar1 == -0x34);\n  }" { (do_statement "do {\n                    /* WARNING: Load size is inaccurate */\n      iVar1 = (*(code *)PTR_gnutls_record_send_000afbe4)(*arg,buf,bufsize);\n    } while (iVar1 == -0x34);" do (compound_statement "{\n                    /* WARNING: Load size is inaccurate */\n      iVar1 = (*(code *)PTR_gnutls_record_send_000afbe4)(*arg,buf,bufsize);\n    }" { comment (expression_statement "iVar1 = (*(code *)PTR_gnutls_record_send_000afbe4)(*arg,buf,bufsize);" (assignment_expression "iVar1 = (*(code *)PTR_gnutls_record_send_000afbe4)(*arg,buf,bufsize)" identifier = (call_expression "(*(code *)PTR_gnutls_record_send_000afbe4)(*arg,buf,bufsize)" (parenthesized_expression "(*(code *)PTR_gnutls_record_send_000afbe4)" ( (pointer_expression "*(code *)PTR_gnutls_record_send_000afbe4" * (cast_expression "(code *)PTR_gnutls_record_send_000afbe4" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(*arg,buf,bufsize)" ( (pointer_expression "*arg" * identifier) , identifier , identifier )))) ;) }) while (parenthesized_expression "(iVar1 == -0x34)" ( (binary_expression "iVar1 == -0x34" identifier == number_literal) )) ;) }) while (parenthesized_expression "(iVar1 == -0x1c)" ( (binary_expression "iVar1 == -0x1c" identifier == number_literal) )) ;) (if_statement "if (iVar1 < 0) {\n    *(int *)((int)arg + 8) = iVar1;\n  }" if (parenthesized_expression "(iVar1 < 0)" ( (binary_expression "iVar1 < 0" identifier < number_literal) )) (compound_statement "{\n    *(int *)((int)arg + 8) = iVar1;\n  }" { (expression_statement "*(int *)((int)arg + 8) = iVar1;" (assignment_expression "*(int *)((int)arg + 8) = iVar1" (pointer_expression "*(int *)((int)arg + 8)" * (cast_expression "(int *)((int)arg + 8)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)arg + 8)" ( (binary_expression "(int)arg + 8" (cast_expression "(int)arg" ( (type_descriptor "int" primitive_type) ) identifier) + number_literal) )))) = identifier) ;) })) (return_statement "return iVar1;" return identifier ;) })))
(translation_unit "void FUN_0005e39c(undefined4 param_1,undefined4 param_2,undefined4 param_3,undefined4 *param_4)\n\n{\n  int iVar1;\n  \n  do {\n    do {\n      iVar1 = (*(code *)PTR_gnutls_record_send_000afbe4)(*param_4,param_2,param_3);\n    } while (iVar1 == -0x34);\n  } while (iVar1 == -0x1c);\n  if (iVar1 < 0) {\n    param_4[2] = iVar1;\n  }\n  return;\n}\n\n" (function_definition "void FUN_0005e39c(undefined4 param_1,undefined4 param_2,undefined4 param_3,undefined4 *param_4)\n\n{\n  int iVar1;\n  \n  do {\n    do {\n      iVar1 = (*(code *)PTR_gnutls_record_send_000afbe4)(*param_4,param_2,param_3);\n    } while (iVar1 == -0x34);\n  } while (iVar1 == -0x1c);\n  if (iVar1 < 0) {\n    param_4[2] = iVar1;\n  }\n  return;\n}" primitive_type (function_declarator "FUN_0005e39c(undefined4 param_1,undefined4 param_2,undefined4 param_3,undefined4 *param_4)" identifier (parameter_list "(undefined4 param_1,undefined4 param_2,undefined4 param_3,undefined4 *param_4)" ( (parameter_declaration "undefined4 param_1" type_identifier identifier) , (parameter_declaration "undefined4 param_2" type_identifier identifier) , (parameter_declaration "undefined4 param_3" type_identifier identifier) , (parameter_declaration "undefined4 *param_4" type_identifier (pointer_declarator "*param_4" * identifier)) ))) (compound_statement "{\n  int iVar1;\n  \n  do {\n    do {\n      iVar1 = (*(code *)PTR_gnutls_record_send_000afbe4)(*param_4,param_2,param_3);\n    } while (iVar1 == -0x34);\n  } while (iVar1 == -0x1c);\n  if (iVar1 < 0) {\n    param_4[2] = iVar1;\n  }\n  return;\n}" { (declaration "int iVar1;" primitive_type identifier ;) (do_statement "do {\n    do {\n      iVar1 = (*(code *)PTR_gnutls_record_send_000afbe4)(*param_4,param_2,param_3);\n    } while (iVar1 == -0x34);\n  } while (iVar1 == -0x1c);" do (compound_statement "{\n    do {\n      iVar1 = (*(code *)PTR_gnutls_record_send_000afbe4)(*param_4,param_2,param_3);\n    } while (iVar1 == -0x34);\n  }" { (do_statement "do {\n      iVar1 = (*(code *)PTR_gnutls_record_send_000afbe4)(*param_4,param_2,param_3);\n    } while (iVar1 == -0x34);" do (compound_statement "{\n      iVar1 = (*(code *)PTR_gnutls_record_send_000afbe4)(*param_4,param_2,param_3);\n    }" { (expression_statement "iVar1 = (*(code *)PTR_gnutls_record_send_000afbe4)(*param_4,param_2,param_3);" (assignment_expression "iVar1 = (*(code *)PTR_gnutls_record_send_000afbe4)(*param_4,param_2,param_3)" identifier = (call_expression "(*(code *)PTR_gnutls_record_send_000afbe4)(*param_4,param_2,param_3)" (parenthesized_expression "(*(code *)PTR_gnutls_record_send_000afbe4)" ( (pointer_expression "*(code *)PTR_gnutls_record_send_000afbe4" * (cast_expression "(code *)PTR_gnutls_record_send_000afbe4" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(*param_4,param_2,param_3)" ( (pointer_expression "*param_4" * identifier) , identifier , identifier )))) ;) }) while (parenthesized_expression "(iVar1 == -0x34)" ( (binary_expression "iVar1 == -0x34" identifier == number_literal) )) ;) }) while (parenthesized_expression "(iVar1 == -0x1c)" ( (binary_expression "iVar1 == -0x1c" identifier == number_literal) )) ;) (if_statement "if (iVar1 < 0) {\n    param_4[2] = iVar1;\n  }" if (parenthesized_expression "(iVar1 < 0)" ( (binary_expression "iVar1 < 0" identifier < number_literal) )) (compound_statement "{\n    param_4[2] = iVar1;\n  }" { (expression_statement "param_4[2] = iVar1;" (assignment_expression "param_4[2] = iVar1" (subscript_expression "param_4[2]" identifier [ number_literal ]) = identifier) ;) })) (return_statement "return;" return ;) })))
(translation_unit (function_definition TYPE (function_declarator IDENT (parameter_list ( (parameter_declaration TYPE IDENT) , (parameter_declaration TYPE IDENT) , (parameter_declaration TYPE IDENT) , (parameter_declaration TYPE (pointer_declarator * IDENT)) ))) (compound_statement { (declaration TYPE IDENT ;) (do_statement do (compound_statement { (do_statement do (compound_statement { (expression_statement (assignment_expression IDENT = (call_expression (parenthesized_expression ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT)) )) (argument_list ( (pointer_expression * IDENT) , IDENT , IDENT )))) ;) }) while (parenthesized_expression ( (binary_expression IDENT == LIT) )) ;) }) while (parenthesized_expression ( (binary_expression IDENT == LIT) )) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT < LIT) )) (compound_statement { (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = IDENT) ;) })) (return_statement return ;) })))
(function_definition "void FUN_0005e39c(undefined4 param_1,undefined4 param_2,undefined4 param_3,undefined4 *param_4)\n\n{\n  int iVar1;\n  \n  do {\n    do {\n      iVar1 = (*(code *)PTR_gnutls_record_send_000afbe4)(*param_4,param_2,param_3);\n    } while (iVar1 == -0x34);\n  } while (iVar1 == -0x1c);\n  if (iVar1 < 0) {\n    param_4[2] = iVar1;\n  }\n  return;\n}" (primitive_type "void") (function_declarator "FUN_0005e39c(undefined4 param_1,undefined4 param_2,undefined4 param_3,undefined4 *param_4)" (identifier "FUN_0005e39c") (parameter_list "(undefined4 param_1,undefined4 param_2,undefined4 param_3,undefined4 *param_4)" (( "(") (parameter_declaration "undefined4 param_1" (type_identifier "undefined4") (identifier "param_1")) (, ",") (parameter_declaration "undefined4 param_2" (type_identifier "undefined4") (identifier "param_2")) (, ",") (parameter_declaration "undefined4 param_3" (type_identifier "undefined4") (identifier "param_3")) (, ",") (parameter_declaration "undefined4 *param_4" (type_identifier "undefined4") (pointer_declarator "*param_4" (* "*") (identifier "param_4"))) () ")"))) (compound_statement "{\n  int iVar1;\n  \n  do {\n    do {\n      iVar1 = (*(code *)PTR_gnutls_record_send_000afbe4)(*param_4,param_2,param_3);\n    } while (iVar1 == -0x34);\n  } while (iVar1 == -0x1c);\n  if (iVar1 < 0) {\n    param_4[2] = iVar1;\n  }\n  return;\n}" ({ "{") (declaration "int iVar1;" (primitive_type "int") (identifier "iVar1") (; ";")) (do_statement "do {\n    do {\n      iVar1 = (*(code *)PTR_gnutls_record_send_000afbe4)(*param_4,param_2,param_3);\n    } while (iVar1 == -0x34);\n  } while (iVar1 == -0x1c);" (do "do") (compound_statement "{\n    do {\n      iVar1 = (*(code *)PTR_gnutls_record_send_000afbe4)(*param_4,param_2,param_3);\n    } while (iVar1 == -0x34);\n  }" ({ "{") (do_statement "do {\n      iVar1 = (*(code *)PTR_gnutls_record_send_000afbe4)(*param_4,param_2,param_3);\n    } while (iVar1 == -0x34);" (do "do") (compound_statement "{\n      iVar1 = (*(code *)PTR_gnutls_record_send_000afbe4)(*param_4,param_2,param_3);\n    }" ({ "{") (expression_statement "iVar1 = (*(code *)PTR_gnutls_record_send_000afbe4)(*param_4,param_2,param_3);" (assignment_expression "iVar1 = (*(code *)PTR_gnutls_record_send_000afbe4)(*param_4,param_2,param_3)" (identifier "iVar1") (= "=") (call_expression "(*(code *)PTR_gnutls_record_send_000afbe4)(*param_4,param_2,param_3)" (parenthesized_expression "(*(code *)PTR_gnutls_record_send_000afbe4)" (( "(") (pointer_expression "*(code *)PTR_gnutls_record_send_000afbe4" (* "*") (cast_expression "(code *)PTR_gnutls_record_send_000afbe4" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR_gnutls_record_send_000afbe4"))) () ")")) (argument_list "(*param_4,param_2,param_3)" (( "(") (pointer_expression "*param_4" (* "*") (identifier "param_4")) (, ",") (identifier "param_2") (, ",") (identifier "param_3") () ")")))) (; ";")) (} "}")) (while "while") (parenthesized_expression "(iVar1 == -0x34)" (( "(") (binary_expression "iVar1 == -0x34" (identifier "iVar1") (== "==") (number_literal "-0x34")) () ")")) (; ";")) (} "}")) (while "while") (parenthesized_expression "(iVar1 == -0x1c)" (( "(") (binary_expression "iVar1 == -0x1c" (identifier "iVar1") (== "==") (number_literal "-0x1c")) () ")")) (; ";")) (if_statement "if (iVar1 < 0) {\n    param_4[2] = iVar1;\n  }" (if "if") (parenthesized_expression "(iVar1 < 0)" (( "(") (binary_expression "iVar1 < 0" (identifier "iVar1") (< "<") (number_literal "0")) () ")")) (compound_statement "{\n    param_4[2] = iVar1;\n  }" ({ "{") (expression_statement "param_4[2] = iVar1;" (assignment_expression "param_4[2] = iVar1" (subscript_expression "param_4[2]" (identifier "param_4") ([ "[") (number_literal "2") (] "]")) (= "=") (identifier "iVar1")) (; ";")) (} "}"))) (return_statement "return;" (return "return") (; ";")) (} "}")))
(translation_unit (function_definition type: (primitive_type) declarator: (function_declarator declarator: (identifier) parameters: (parameter_list (parameter_declaration type: (type_identifier) declarator: (identifier)) (parameter_declaration type: (type_identifier) declarator: (identifier)) (parameter_declaration type: (type_identifier) declarator: (identifier)) (parameter_declaration type: (type_identifier) declarator: (pointer_declarator declarator: (identifier))))) body: (compound_statement (declaration type: (primitive_type) declarator: (identifier)) (do_statement body: (compound_statement (do_statement body: (compound_statement (expression_statement (assignment_expression left: (identifier) right: (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 (pointer_expression argument: (identifier)) (identifier) (identifier)))))) condition: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))))) condition: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal)))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))) consequence: (compound_statement (expression_statement (assignment_expression left: (subscript_expression argument: (identifier) index: (number_literal)) right: (identifier))))) (return_statement))))

void MASKED(undefined4 param_1,undefined4 param_2,undefined4 param_3,undefined4 *param_4)

{
  int iVar1;
  
  do {
    do {
      iVar1 = (*(code *)PTR_gnutls_record_send_000afbe4)(*param_4,param_2,param_3);
    } while (iVar1 == -0x34);
  } while (iVar1 == -0x1c);
  if (iVar1 < 0) {
    param_4[2] = iVar1;
  }
  return;
}

