
void argp_fmtstream_free(argp_fmtstream_t fs)

{
  char *__ptr;
  
  _argp_fmtstream_update(fs);
  __ptr = fs->buf;
  if (__ptr < fs->p) {
    fwrite_unlocked(__ptr,1,(long)fs->p - (long)__ptr,(FILE *)fs->stream);
  }
  free(fs->buf);
  free(fs);
  return;
}



void FUN_0010b7f5(undefined8 *param_1)

{
  void *__ptr;
  
  FUN_0010b34f();
  __ptr = (void *)param_1[6];
  if (__ptr < (void *)param_1[7]) {
    fwrite_unlocked(__ptr,1,(long)param_1[7] - (long)__ptr,(FILE *)*param_1);
  }
  free((void *)param_1[6]);
  free(param_1);
  return;
}


PUSH RBX
MOV RBX,RDI
CALL 0x0010b34f
MOV RDX,qword ptr [RBX + 0x38]
MOV RDI,qword ptr [RBX + 0x30]
CMP RDX,RDI
JBE 0x0010b81b
SUB RDX,RDI
MOV RCX,qword ptr [RBX]
MOV ESI,0x1
CALL 0x00103370
MOV RDI,qword ptr [RBX + 0x30]
CALL 0x00103050
MOV RDI,RBX
CALL 0x00103050
POP RBX
RET
(translation_unit "void FUN_0010b7f5(undefined8 *param_1)\n\n{\n  void *__ptr;\n  \n  FUN_0010b34f();\n  __ptr = (void *)param_1[6];\n  if (__ptr < (void *)param_1[7]) {\n    fwrite_unlocked(__ptr,1,(long)param_1[7] - (long)__ptr,(FILE *)*param_1);\n  }\n  free((void *)param_1[6]);\n  free(param_1);\n  return;\n}\n\n" (function_definition "void FUN_0010b7f5(undefined8 *param_1)\n\n{\n  void *__ptr;\n  \n  FUN_0010b34f();\n  __ptr = (void *)param_1[6];\n  if (__ptr < (void *)param_1[7]) {\n    fwrite_unlocked(__ptr,1,(long)param_1[7] - (long)__ptr,(FILE *)*param_1);\n  }\n  free((void *)param_1[6]);\n  free(param_1);\n  return;\n}" primitive_type (function_declarator "FUN_0010b7f5(undefined8 *param_1)" identifier (parameter_list "(undefined8 *param_1)" ( (parameter_declaration "undefined8 *param_1" type_identifier (pointer_declarator "*param_1" * identifier)) ))) (compound_statement "{\n  void *__ptr;\n  \n  FUN_0010b34f();\n  __ptr = (void *)param_1[6];\n  if (__ptr < (void *)param_1[7]) {\n    fwrite_unlocked(__ptr,1,(long)param_1[7] - (long)__ptr,(FILE *)*param_1);\n  }\n  free((void *)param_1[6]);\n  free(param_1);\n  return;\n}" { (declaration "void *__ptr;" primitive_type (pointer_declarator "*__ptr" * identifier) ;) (expression_statement "FUN_0010b34f();" (call_expression "FUN_0010b34f()" identifier (argument_list "()" ( ))) ;) (expression_statement "__ptr = (void *)param_1[6];" (assignment_expression "__ptr = (void *)param_1[6]" identifier = (cast_expression "(void *)param_1[6]" ( (type_descriptor "void *" primitive_type (abstract_pointer_declarator "*" *)) ) (subscript_expression "param_1[6]" identifier [ number_literal ]))) ;) (if_statement "if (__ptr < (void *)param_1[7]) {\n    fwrite_unlocked(__ptr,1,(long)param_1[7] - (long)__ptr,(FILE *)*param_1);\n  }" if (parenthesized_expression "(__ptr < (void *)param_1[7])" ( (binary_expression "__ptr < (void *)param_1[7]" identifier < (cast_expression "(void *)param_1[7]" ( (type_descriptor "void *" primitive_type (abstract_pointer_declarator "*" *)) ) (subscript_expression "param_1[7]" identifier [ number_literal ]))) )) (compound_statement "{\n    fwrite_unlocked(__ptr,1,(long)param_1[7] - (long)__ptr,(FILE *)*param_1);\n  }" { (expression_statement "fwrite_unlocked(__ptr,1,(long)param_1[7] - (long)__ptr,(FILE *)*param_1);" (call_expression "fwrite_unlocked(__ptr,1,(long)param_1[7] - (long)__ptr,(FILE *)*param_1)" identifier (argument_list "(__ptr,1,(long)param_1[7] - (long)__ptr,(FILE *)*param_1)" ( identifier , number_literal , (binary_expression "(long)param_1[7] - (long)__ptr" (cast_expression "(long)param_1[7]" ( (type_descriptor "long" (sized_type_specifier "long" long)) ) (subscript_expression "param_1[7]" identifier [ number_literal ])) - (cast_expression "(long)__ptr" ( (type_descriptor "long" (sized_type_specifier "long" long)) ) identifier)) , (cast_expression "(FILE *)*param_1" ( (type_descriptor "FILE *" type_identifier (abstract_pointer_declarator "*" *)) ) (pointer_expression "*param_1" * identifier)) ))) ;) })) (expression_statement "free((void *)param_1[6]);" (call_expression "free((void *)param_1[6])" identifier (argument_list "((void *)param_1[6])" ( (cast_expression "(void *)param_1[6]" ( (type_descriptor "void *" primitive_type (abstract_pointer_declarator "*" *)) ) (subscript_expression "param_1[6]" identifier [ number_literal ])) ))) ;) (expression_statement "free(param_1);" (call_expression "free(param_1)" identifier (argument_list "(param_1)" ( identifier ))) ;) (return_statement "return;" return ;) })))
(translation_unit "void argp_fmtstream_free(argp_fmtstream_t fs)\n\n{\n  char *__ptr;\n  \n  _argp_fmtstream_update(fs);\n  __ptr = fs->buf;\n  if (__ptr < fs->p) {\n    fwrite_unlocked(__ptr,1,(long)fs->p - (long)__ptr,(FILE *)fs->stream);\n  }\n  free(fs->buf);\n  free(fs);\n  return;\n}\n\n" (function_definition "void argp_fmtstream_free(argp_fmtstream_t fs)\n\n{\n  char *__ptr;\n  \n  _argp_fmtstream_update(fs);\n  __ptr = fs->buf;\n  if (__ptr < fs->p) {\n    fwrite_unlocked(__ptr,1,(long)fs->p - (long)__ptr,(FILE *)fs->stream);\n  }\n  free(fs->buf);\n  free(fs);\n  return;\n}" primitive_type (function_declarator "argp_fmtstream_free(argp_fmtstream_t fs)" identifier (parameter_list "(argp_fmtstream_t fs)" ( (parameter_declaration "argp_fmtstream_t fs" type_identifier identifier) ))) (compound_statement "{\n  char *__ptr;\n  \n  _argp_fmtstream_update(fs);\n  __ptr = fs->buf;\n  if (__ptr < fs->p) {\n    fwrite_unlocked(__ptr,1,(long)fs->p - (long)__ptr,(FILE *)fs->stream);\n  }\n  free(fs->buf);\n  free(fs);\n  return;\n}" { (declaration "char *__ptr;" primitive_type (pointer_declarator "*__ptr" * identifier) ;) (expression_statement "_argp_fmtstream_update(fs);" (call_expression "_argp_fmtstream_update(fs)" identifier (argument_list "(fs)" ( identifier ))) ;) (expression_statement "__ptr = fs->buf;" (assignment_expression "__ptr = fs->buf" identifier = (field_expression "fs->buf" identifier -> field_identifier)) ;) (if_statement "if (__ptr < fs->p) {\n    fwrite_unlocked(__ptr,1,(long)fs->p - (long)__ptr,(FILE *)fs->stream);\n  }" if (parenthesized_expression "(__ptr < fs->p)" ( (binary_expression "__ptr < fs->p" identifier < (field_expression "fs->p" identifier -> field_identifier)) )) (compound_statement "{\n    fwrite_unlocked(__ptr,1,(long)fs->p - (long)__ptr,(FILE *)fs->stream);\n  }" { (expression_statement "fwrite_unlocked(__ptr,1,(long)fs->p - (long)__ptr,(FILE *)fs->stream);" (call_expression "fwrite_unlocked(__ptr,1,(long)fs->p - (long)__ptr,(FILE *)fs->stream)" identifier (argument_list "(__ptr,1,(long)fs->p - (long)__ptr,(FILE *)fs->stream)" ( identifier , number_literal , (binary_expression "(long)fs->p - (long)__ptr" (cast_expression "(long)fs->p" ( (type_descriptor "long" (sized_type_specifier "long" long)) ) (field_expression "fs->p" identifier -> field_identifier)) - (cast_expression "(long)__ptr" ( (type_descriptor "long" (sized_type_specifier "long" long)) ) identifier)) , (cast_expression "(FILE *)fs->stream" ( (type_descriptor "FILE *" type_identifier (abstract_pointer_declarator "*" *)) ) (field_expression "fs->stream" identifier -> field_identifier)) ))) ;) })) (expression_statement "free(fs->buf);" (call_expression "free(fs->buf)" identifier (argument_list "(fs->buf)" ( (field_expression "fs->buf" identifier -> field_identifier) ))) ;) (expression_statement "free(fs);" (call_expression "free(fs)" identifier (argument_list "(fs)" ( identifier ))) ;) (return_statement "return;" return ;) })))
(translation_unit "void FUN_0010b7f5(undefined8 *param_1)\n\n{\n  void *__ptr;\n  \n  FUN_0010b34f();\n  __ptr = (void *)param_1[6];\n  if (__ptr < (void *)param_1[7]) {\n    fwrite_unlocked(__ptr,1,(long)param_1[7] - (long)__ptr,(FILE *)*param_1);\n  }\n  free((void *)param_1[6]);\n  free(param_1);\n  return;\n}\n\n" (function_definition "void FUN_0010b7f5(undefined8 *param_1)\n\n{\n  void *__ptr;\n  \n  FUN_0010b34f();\n  __ptr = (void *)param_1[6];\n  if (__ptr < (void *)param_1[7]) {\n    fwrite_unlocked(__ptr,1,(long)param_1[7] - (long)__ptr,(FILE *)*param_1);\n  }\n  free((void *)param_1[6]);\n  free(param_1);\n  return;\n}" primitive_type (function_declarator "FUN_0010b7f5(undefined8 *param_1)" identifier (parameter_list "(undefined8 *param_1)" ( (parameter_declaration "undefined8 *param_1" type_identifier (pointer_declarator "*param_1" * identifier)) ))) (compound_statement "{\n  void *__ptr;\n  \n  FUN_0010b34f();\n  __ptr = (void *)param_1[6];\n  if (__ptr < (void *)param_1[7]) {\n    fwrite_unlocked(__ptr,1,(long)param_1[7] - (long)__ptr,(FILE *)*param_1);\n  }\n  free((void *)param_1[6]);\n  free(param_1);\n  return;\n}" { (declaration "void *__ptr;" primitive_type (pointer_declarator "*__ptr" * identifier) ;) (expression_statement "FUN_0010b34f();" (call_expression "FUN_0010b34f()" identifier (argument_list "()" ( ))) ;) (expression_statement "__ptr = (void *)param_1[6];" (assignment_expression "__ptr = (void *)param_1[6]" identifier = (cast_expression "(void *)param_1[6]" ( (type_descriptor "void *" primitive_type (abstract_pointer_declarator "*" *)) ) (subscript_expression "param_1[6]" identifier [ number_literal ]))) ;) (if_statement "if (__ptr < (void *)param_1[7]) {\n    fwrite_unlocked(__ptr,1,(long)param_1[7] - (long)__ptr,(FILE *)*param_1);\n  }" if (parenthesized_expression "(__ptr < (void *)param_1[7])" ( (binary_expression "__ptr < (void *)param_1[7]" identifier < (cast_expression "(void *)param_1[7]" ( (type_descriptor "void *" primitive_type (abstract_pointer_declarator "*" *)) ) (subscript_expression "param_1[7]" identifier [ number_literal ]))) )) (compound_statement "{\n    fwrite_unlocked(__ptr,1,(long)param_1[7] - (long)__ptr,(FILE *)*param_1);\n  }" { (expression_statement "fwrite_unlocked(__ptr,1,(long)param_1[7] - (long)__ptr,(FILE *)*param_1);" (call_expression "fwrite_unlocked(__ptr,1,(long)param_1[7] - (long)__ptr,(FILE *)*param_1)" identifier (argument_list "(__ptr,1,(long)param_1[7] - (long)__ptr,(FILE *)*param_1)" ( identifier , number_literal , (binary_expression "(long)param_1[7] - (long)__ptr" (cast_expression "(long)param_1[7]" ( (type_descriptor "long" (sized_type_specifier "long" long)) ) (subscript_expression "param_1[7]" identifier [ number_literal ])) - (cast_expression "(long)__ptr" ( (type_descriptor "long" (sized_type_specifier "long" long)) ) identifier)) , (cast_expression "(FILE *)*param_1" ( (type_descriptor "FILE *" type_identifier (abstract_pointer_declarator "*" *)) ) (pointer_expression "*param_1" * identifier)) ))) ;) })) (expression_statement "free((void *)param_1[6]);" (call_expression "free((void *)param_1[6])" identifier (argument_list "((void *)param_1[6])" ( (cast_expression "(void *)param_1[6]" ( (type_descriptor "void *" primitive_type (abstract_pointer_declarator "*" *)) ) (subscript_expression "param_1[6]" identifier [ number_literal ])) ))) ;) (expression_statement "free(param_1);" (call_expression "free(param_1)" identifier (argument_list "(param_1)" ( identifier ))) ;) (return_statement "return;" return ;) })))
(translation_unit (function_definition TYPE (function_declarator IDENT (parameter_list ( (parameter_declaration TYPE (pointer_declarator * IDENT)) ))) (compound_statement { (declaration TYPE (pointer_declarator * IDENT) ;) (expression_statement (call_expression IDENT (argument_list ( ))) ;) (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (subscript_expression IDENT [ LIT ]))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT < (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (subscript_expression IDENT [ LIT ]))) )) (compound_statement { (expression_statement (call_expression IDENT (argument_list ( IDENT , LIT , (binary_expression (cast_expression ( (type_descriptor (sized_type_specifier long)) ) (subscript_expression IDENT [ LIT ])) - (cast_expression ( (type_descriptor (sized_type_specifier long)) ) IDENT)) , (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (pointer_expression * IDENT)) ))) ;) })) (expression_statement (call_expression IDENT (argument_list ( (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (subscript_expression IDENT [ LIT ])) ))) ;) (expression_statement (call_expression IDENT (argument_list ( IDENT ))) ;) (return_statement return ;) })))
(function_definition "void FUN_0010b7f5(undefined8 *param_1)\n\n{\n  void *__ptr;\n  \n  FUN_0010b34f();\n  __ptr = (void *)param_1[6];\n  if (__ptr < (void *)param_1[7]) {\n    fwrite_unlocked(__ptr,1,(long)param_1[7] - (long)__ptr,(FILE *)*param_1);\n  }\n  free((void *)param_1[6]);\n  free(param_1);\n  return;\n}" (primitive_type "void") (function_declarator "FUN_0010b7f5(undefined8 *param_1)" (identifier "FUN_0010b7f5") (parameter_list "(undefined8 *param_1)" (( "(") (parameter_declaration "undefined8 *param_1" (type_identifier "undefined8") (pointer_declarator "*param_1" (* "*") (identifier "param_1"))) () ")"))) (compound_statement "{\n  void *__ptr;\n  \n  FUN_0010b34f();\n  __ptr = (void *)param_1[6];\n  if (__ptr < (void *)param_1[7]) {\n    fwrite_unlocked(__ptr,1,(long)param_1[7] - (long)__ptr,(FILE *)*param_1);\n  }\n  free((void *)param_1[6]);\n  free(param_1);\n  return;\n}" ({ "{") (declaration "void *__ptr;" (primitive_type "void") (pointer_declarator "*__ptr" (* "*") (identifier "__ptr")) (; ";")) (expression_statement "FUN_0010b34f();" (call_expression "FUN_0010b34f()" (identifier "FUN_0010b34f") (argument_list "()" (( "(") () ")"))) (; ";")) (expression_statement "__ptr = (void *)param_1[6];" (assignment_expression "__ptr = (void *)param_1[6]" (identifier "__ptr") (= "=") (cast_expression "(void *)param_1[6]" (( "(") (type_descriptor "void *" (primitive_type "void") (abstract_pointer_declarator "*" (* "*"))) () ")") (subscript_expression "param_1[6]" (identifier "param_1") ([ "[") (number_literal "6") (] "]")))) (; ";")) (if_statement "if (__ptr < (void *)param_1[7]) {\n    fwrite_unlocked(__ptr,1,(long)param_1[7] - (long)__ptr,(FILE *)*param_1);\n  }" (if "if") (parenthesized_expression "(__ptr < (void *)param_1[7])" (( "(") (binary_expression "__ptr < (void *)param_1[7]" (identifier "__ptr") (< "<") (cast_expression "(void *)param_1[7]" (( "(") (type_descriptor "void *" (primitive_type "void") (abstract_pointer_declarator "*" (* "*"))) () ")") (subscript_expression "param_1[7]" (identifier "param_1") ([ "[") (number_literal "7") (] "]")))) () ")")) (compound_statement "{\n    fwrite_unlocked(__ptr,1,(long)param_1[7] - (long)__ptr,(FILE *)*param_1);\n  }" ({ "{") (expression_statement "fwrite_unlocked(__ptr,1,(long)param_1[7] - (long)__ptr,(FILE *)*param_1);" (call_expression "fwrite_unlocked(__ptr,1,(long)param_1[7] - (long)__ptr,(FILE *)*param_1)" (identifier "fwrite_unlocked") (argument_list "(__ptr,1,(long)param_1[7] - (long)__ptr,(FILE *)*param_1)" (( "(") (identifier "__ptr") (, ",") (number_literal "1") (, ",") (binary_expression "(long)param_1[7] - (long)__ptr" (cast_expression "(long)param_1[7]" (( "(") (type_descriptor "long" (sized_type_specifier "long" (long "long"))) () ")") (subscript_expression "param_1[7]" (identifier "param_1") ([ "[") (number_literal "7") (] "]"))) (- "-") (cast_expression "(long)__ptr" (( "(") (type_descriptor "long" (sized_type_specifier "long" (long "long"))) () ")") (identifier "__ptr"))) (, ",") (cast_expression "(FILE *)*param_1" (( "(") (type_descriptor "FILE *" (type_identifier "FILE") (abstract_pointer_declarator "*" (* "*"))) () ")") (pointer_expression "*param_1" (* "*") (identifier "param_1"))) () ")"))) (; ";")) (} "}"))) (expression_statement "free((void *)param_1[6]);" (call_expression "free((void *)param_1[6])" (identifier "free") (argument_list "((void *)param_1[6])" (( "(") (cast_expression "(void *)param_1[6]" (( "(") (type_descriptor "void *" (primitive_type "void") (abstract_pointer_declarator "*" (* "*"))) () ")") (subscript_expression "param_1[6]" (identifier "param_1") ([ "[") (number_literal "6") (] "]"))) () ")"))) (; ";")) (expression_statement "free(param_1);" (call_expression "free(param_1)" (identifier "free") (argument_list "(param_1)" (( "(") (identifier "param_1") () ")"))) (; ";")) (return_statement "return;" (return "return") (; ";")) (} "}")))

void function_1(type_1 fs)

{
  char *var_2;
  
  var_1(fs);
  var_2 = fs->buf;
  if (var_2 < fs->p) {
    var_3(var_2,1,(long)fs->p - (long)var_2,(type_2 *)fs->stream);
  }
  var_4(fs->buf);
  var_4(fs);
  return;
}


(translation_unit (function_definition type: (primitive_type) declarator: (function_declarator declarator: (identifier) parameters: (parameter_list (parameter_declaration type: (type_identifier) declarator: (pointer_declarator declarator: (identifier))))) body: (compound_statement (declaration type: (primitive_type) declarator: (pointer_declarator declarator: (identifier))) (expression_statement (call_expression function: (identifier) arguments: (argument_list))) (expression_statement (assignment_expression left: (identifier) right: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (subscript_expression argument: (identifier) index: (number_literal))))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (subscript_expression argument: (identifier) index: (number_literal))))) consequence: (compound_statement (expression_statement (call_expression function: (identifier) arguments: (argument_list (identifier) (number_literal) (binary_expression left: (cast_expression type: (type_descriptor type: (sized_type_specifier)) value: (subscript_expression argument: (identifier) index: (number_literal))) right: (cast_expression type: (type_descriptor type: (sized_type_specifier)) value: (identifier))) (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (pointer_expression argument: (identifier)))))))) (expression_statement (call_expression function: (identifier) arguments: (argument_list (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (subscript_expression argument: (identifier) index: (number_literal)))))) (expression_statement (call_expression function: (identifier) arguments: (argument_list (identifier)))) (return_statement))))

void MASKED(undefined8 *param_1)

{
  void *__ptr;
  
  FUN_0010b34f();
  __ptr = (void *)param_1[6];
  if (__ptr < (void *)param_1[7]) {
    fwrite_unlocked(__ptr,1,(long)param_1[7] - (long)__ptr,(FILE *)*param_1);
  }
  free((void *)param_1[6]);
  free(param_1);
  return;
}

