
ssize_t argp_fmtstream_printf(argp_fmtstream *fs,char *fmt,...)

{
  long lVar1;
  char in_AL;
  int iVar2;
  ssize_t sVar3;
  undefined8 in_RCX;
  undefined8 in_RDX;
  size_t amount;
  undefined8 in_R8;
  undefined8 in_R9;
  ulong uVar4;
  long in_FS_OFFSET;
  undefined8 in_XMM0_Qa;
  undefined8 in_XMM1_Qa;
  undefined8 in_XMM2_Qa;
  undefined8 in_XMM3_Qa;
  undefined8 in_XMM4_Qa;
  undefined8 in_XMM5_Qa;
  undefined8 in_XMM6_Qa;
  undefined8 in_XMM7_Qa;
  va_list args;
  undefined1 local_d8 [16];
  undefined8 local_c8;
  undefined8 local_c0;
  undefined8 local_b8;
  undefined8 local_b0;
  undefined8 local_a8;
  undefined8 local_98;
  undefined8 local_88;
  undefined8 local_78;
  undefined8 local_68;
  undefined8 local_58;
  undefined8 local_48;
  undefined8 local_38;
  
  if (in_AL != '\0') {
    local_a8 = in_XMM0_Qa;
    local_98 = in_XMM1_Qa;
    local_88 = in_XMM2_Qa;
    local_78 = in_XMM3_Qa;
    local_68 = in_XMM4_Qa;
    local_58 = in_XMM5_Qa;
    local_48 = in_XMM6_Qa;
    local_38 = in_XMM7_Qa;
  }
  lVar1 = *(long *)(in_FS_OFFSET + 0x28);
  amount = 0x96;
  local_c8 = in_RDX;
  local_c0 = in_RCX;
  local_b8 = in_R8;
  local_b0 = in_R9;
  do {
    iVar2 = _argp_fmtstream_ensure(fs,amount);
    if (iVar2 == 0) {
      sVar3 = -1;
LAB_0010a842:
      if (lVar1 == *(long *)(in_FS_OFFSET + 0x28)) {
        return sVar3;
      }
                    /* WARNING: Subroutine does not return */
      __stack_chk_fail();
    }
    args[0].gp_offset = 0x10;
    args[0].fp_offset = 0x30;
    args[0].overflow_arg_area = &stack0x00000008;
    args[0].reg_save_area = local_d8;
    uVar4 = (long)fs->end - (long)fs->p;
    iVar2 = __vsnprintf_chk(fs->p,uVar4,1,0xffffffffffffffff,fmt,args);
    if ((ulong)(long)iVar2 < uVar4) {
      fs->p = fs->p + iVar2;
      sVar3 = (ssize_t)iVar2;
      goto LAB_0010a842;
    }
    amount = (size_t)(iVar2 + 1);
  } while( true );
}



long FUN_0010a75a(undefined8 param_1,undefined8 param_2,undefined8 param_3,undefined8 param_4,
                 undefined8 param_5,undefined8 param_6,undefined8 param_7,undefined8 param_8,
                 long param_9,undefined8 param_10,undefined8 param_11,undefined8 param_12,
                 undefined8 param_13,undefined8 param_14)

{
  char in_AL;
  int iVar1;
  long lVar2;
  ulong uVar3;
  long in_FS_OFFSET;
  undefined4 local_f8;
  undefined4 local_f4;
  undefined1 *local_f0;
  undefined1 *local_e8;
  long local_e0;
  undefined1 local_d8 [16];
  undefined8 local_c8;
  undefined8 local_c0;
  undefined8 local_b8;
  undefined8 local_b0;
  undefined8 local_a8;
  undefined8 local_98;
  undefined8 local_88;
  undefined8 local_78;
  undefined8 local_68;
  undefined8 local_58;
  undefined8 local_48;
  undefined8 local_38;
  
  if (in_AL != '\0') {
    local_a8 = param_1;
    local_98 = param_2;
    local_88 = param_3;
    local_78 = param_4;
    local_68 = param_5;
    local_58 = param_6;
    local_48 = param_7;
    local_38 = param_8;
  }
  local_e0 = *(long *)(in_FS_OFFSET + 0x28);
  lVar2 = 0x96;
  local_c8 = param_11;
  local_c0 = param_12;
  local_b8 = param_13;
  local_b0 = param_14;
  do {
    iVar1 = FUN_0010a691(param_9,lVar2);
    if (iVar1 == 0) {
      lVar2 = -1;
LAB_0010a842:
      if (local_e0 == *(long *)(in_FS_OFFSET + 0x28)) {
        return lVar2;
      }
                    /* WARNING: Subroutine does not return */
      __stack_chk_fail();
    }
    local_f8 = 0x10;
    local_f4 = 0x30;
    local_f0 = &stack0x00000008;
    local_e8 = local_d8;
    uVar3 = *(long *)(param_9 + 0x40) - *(long *)(param_9 + 0x38);
    iVar1 = __vsnprintf_chk(*(long *)(param_9 + 0x38),uVar3,1,0xffffffffffffffff,param_10,&local_f8)
    ;
    if ((ulong)(long)iVar1 < uVar3) {
      *(long *)(param_9 + 0x38) = *(long *)(param_9 + 0x38) + (long)iVar1;
      lVar2 = (long)iVar1;
      goto LAB_0010a842;
    }
    lVar2 = (long)(iVar1 + 1);
  } while( true );
}


PUSH R13
PUSH R12
PUSH RBP
PUSH RBX
SUB RSP,0xd8
MOV RBX,RDI
MOV R12,RSI
MOV qword ptr [RSP + 0x30],RDX
MOV qword ptr [RSP + 0x38],RCX
MOV qword ptr [RSP + 0x40],R8
MOV qword ptr [RSP + 0x48],R9
TEST AL,AL
JZ 0x0010a7bc
MOVAPS xmmword ptr [RSP + 0x50],XMM0
MOVAPS xmmword ptr [RSP + 0x60],XMM1
MOVAPS xmmword ptr [RSP + 0x70],XMM2
MOVAPS xmmword ptr [RSP + 0x80],XMM3
MOVAPS xmmword ptr [RSP + 0x90],XMM4
MOVAPS xmmword ptr [RSP + 0xa0],XMM5
MOVAPS xmmword ptr [RSP + 0xb0],XMM6
MOVAPS xmmword ptr [RSP + 0xc0],XMM7
MOV RAX,qword ptr FS:[0x28]
MOV qword ptr [RSP + 0x18],RAX
XOR EAX,EAX
MOV ESI,0x96
MOV RBP,RSP
MOV RDI,RBX
CALL 0x0010a691
TEST EAX,EAX
JZ 0x0010a83b
MOV dword ptr [RSP],0x10
MOV dword ptr [RSP + 0x4],0x30
LEA RAX,[RSP + 0x100]
MOV qword ptr [RSP + 0x8],RAX
LEA RAX,[RSP + 0x20]
MOV qword ptr [RSP + 0x10],RAX
MOV RDI,qword ptr [RBX + 0x38]
MOV R13,qword ptr [RBX + 0x40]
SUB R13,RDI
MOV R9,RBP
MOV R8,R12
MOV RCX,-0x1
MOV EDX,0x1
MOV RSI,R13
CALL 0x00103350
MOVSXD RDX,EAX
CMP RDX,R13
JC 0x0010a860
ADD EAX,0x1
MOVSXD RSI,EAX
JMP 0x0010a7d4
MOV RAX,-0x1
MOV RCX,qword ptr [RSP + 0x18]
XOR RCX,qword ptr FS:[0x28]
JNZ 0x0010a868
ADD RSP,0xd8
POP RBX
POP RBP
POP R12
POP R13
RET
ADD qword ptr [RBX + 0x38],RDX
CDQE
JMP 0x0010a842
CALL 0x00103140
(translation_unit "long FUN_0010a75a(undefined8 param_1,undefined8 param_2,undefined8 param_3,undefined8 param_4,\n                 undefined8 param_5,undefined8 param_6,undefined8 param_7,undefined8 param_8,\n                 long param_9,undefined8 param_10,undefined8 param_11,undefined8 param_12,\n                 undefined8 param_13,undefined8 param_14)\n\n{\n  char in_AL;\n  int iVar1;\n  long lVar2;\n  ulong uVar3;\n  long in_FS_OFFSET;\n  undefined4 local_f8;\n  undefined4 local_f4;\n  undefined1 *local_f0;\n  undefined1 *local_e8;\n  long local_e0;\n  undefined1 local_d8 [16];\n  undefined8 local_c8;\n  undefined8 local_c0;\n  undefined8 local_b8;\n  undefined8 local_b0;\n  undefined8 local_a8;\n  undefined8 local_98;\n  undefined8 local_88;\n  undefined8 local_78;\n  undefined8 local_68;\n  undefined8 local_58;\n  undefined8 local_48;\n  undefined8 local_38;\n  \n  if (in_AL != '\0') {\n    local_a8 = param_1;\n    local_98 = param_2;\n    local_88 = param_3;\n    local_78 = param_4;\n    local_68 = param_5;\n    local_58 = param_6;\n    local_48 = param_7;\n    local_38 = param_8;\n  }\n  local_e0 = *(long *)(in_FS_OFFSET + 0x28);\n  lVar2 = 0x96;\n  local_c8 = param_11;\n  local_c0 = param_12;\n  local_b8 = param_13;\n  local_b0 = param_14;\n  do {\n    iVar1 = FUN_0010a691(param_9,lVar2);\n    if (iVar1 == 0) {\n      lVar2 = -1;\nLAB_0010a842:\n      if (local_e0 == *(long *)(in_FS_OFFSET + 0x28)) {\n        return lVar2;\n      }\n                    /* WARNING: Subroutine does not return */\n      __stack_chk_fail();\n    }\n    local_f8 = 0x10;\n    local_f4 = 0x30;\n    local_f0 = &stack0x00000008;\n    local_e8 = local_d8;\n    uVar3 = *(long *)(param_9 + 0x40) - *(long *)(param_9 + 0x38);\n    iVar1 = __vsnprintf_chk(*(long *)(param_9 + 0x38),uVar3,1,0xffffffffffffffff,param_10,&local_f8)\n    ;\n    if ((ulong)(long)iVar1 < uVar3) {\n      *(long *)(param_9 + 0x38) = *(long *)(param_9 + 0x38) + (long)iVar1;\n      lVar2 = (long)iVar1;\n      goto LAB_0010a842;\n    }\n    lVar2 = (long)(iVar1 + 1);\n  } while( true );\n}\n\n" (function_definition "long FUN_0010a75a(undefined8 param_1,undefined8 param_2,undefined8 param_3,undefined8 param_4,\n                 undefined8 param_5,undefined8 param_6,undefined8 param_7,undefined8 param_8,\n                 long param_9,undefined8 param_10,undefined8 param_11,undefined8 param_12,\n                 undefined8 param_13,undefined8 param_14)\n\n{\n  char in_AL;\n  int iVar1;\n  long lVar2;\n  ulong uVar3;\n  long in_FS_OFFSET;\n  undefined4 local_f8;\n  undefined4 local_f4;\n  undefined1 *local_f0;\n  undefined1 *local_e8;\n  long local_e0;\n  undefined1 local_d8 [16];\n  undefined8 local_c8;\n  undefined8 local_c0;\n  undefined8 local_b8;\n  undefined8 local_b0;\n  undefined8 local_a8;\n  undefined8 local_98;\n  undefined8 local_88;\n  undefined8 local_78;\n  undefined8 local_68;\n  undefined8 local_58;\n  undefined8 local_48;\n  undefined8 local_38;\n  \n  if (in_AL != '\0') {\n    local_a8 = param_1;\n    local_98 = param_2;\n    local_88 = param_3;\n    local_78 = param_4;\n    local_68 = param_5;\n    local_58 = param_6;\n    local_48 = param_7;\n    local_38 = param_8;\n  }\n  local_e0 = *(long *)(in_FS_OFFSET + 0x28);\n  lVar2 = 0x96;\n  local_c8 = param_11;\n  local_c0 = param_12;\n  local_b8 = param_13;\n  local_b0 = param_14;\n  do {\n    iVar1 = FUN_0010a691(param_9,lVar2);\n    if (iVar1 == 0) {\n      lVar2 = -1;\nLAB_0010a842:\n      if (local_e0 == *(long *)(in_FS_OFFSET + 0x28)) {\n        return lVar2;\n      }\n                    /* WARNING: Subroutine does not return */\n      __stack_chk_fail();\n    }\n    local_f8 = 0x10;\n    local_f4 = 0x30;\n    local_f0 = &stack0x00000008;\n    local_e8 = local_d8;\n    uVar3 = *(long *)(param_9 + 0x40) - *(long *)(param_9 + 0x38);\n    iVar1 = __vsnprintf_chk(*(long *)(param_9 + 0x38),uVar3,1,0xffffffffffffffff,param_10,&local_f8)\n    ;\n    if ((ulong)(long)iVar1 < uVar3) {\n      *(long *)(param_9 + 0x38) = *(long *)(param_9 + 0x38) + (long)iVar1;\n      lVar2 = (long)iVar1;\n      goto LAB_0010a842;\n    }\n    lVar2 = (long)(iVar1 + 1);\n  } while( true );\n}" (sized_type_specifier "long" long) (function_declarator "FUN_0010a75a(undefined8 param_1,undefined8 param_2,undefined8 param_3,undefined8 param_4,\n                 undefined8 param_5,undefined8 param_6,undefined8 param_7,undefined8 param_8,\n                 long param_9,undefined8 param_10,undefined8 param_11,undefined8 param_12,\n                 undefined8 param_13,undefined8 param_14)" identifier (parameter_list "(undefined8 param_1,undefined8 param_2,undefined8 param_3,undefined8 param_4,\n                 undefined8 param_5,undefined8 param_6,undefined8 param_7,undefined8 param_8,\n                 long param_9,undefined8 param_10,undefined8 param_11,undefined8 param_12,\n                 undefined8 param_13,undefined8 param_14)" ( (parameter_declaration "undefined8 param_1" type_identifier identifier) , (parameter_declaration "undefined8 param_2" type_identifier identifier) , (parameter_declaration "undefined8 param_3" type_identifier identifier) , (parameter_declaration "undefined8 param_4" type_identifier identifier) , (parameter_declaration "undefined8 param_5" type_identifier identifier) , (parameter_declaration "undefined8 param_6" type_identifier identifier) , (parameter_declaration "undefined8 param_7" type_identifier identifier) , (parameter_declaration "undefined8 param_8" type_identifier identifier) , (parameter_declaration "long param_9" (sized_type_specifier "long" long) identifier) , (parameter_declaration "undefined8 param_10" type_identifier identifier) , (parameter_declaration "undefined8 param_11" type_identifier identifier) , (parameter_declaration "undefined8 param_12" type_identifier identifier) , (parameter_declaration "undefined8 param_13" type_identifier identifier) , (parameter_declaration "undefined8 param_14" type_identifier identifier) ))) (compound_statement "{\n  char in_AL;\n  int iVar1;\n  long lVar2;\n  ulong uVar3;\n  long in_FS_OFFSET;\n  undefined4 local_f8;\n  undefined4 local_f4;\n  undefined1 *local_f0;\n  undefined1 *local_e8;\n  long local_e0;\n  undefined1 local_d8 [16];\n  undefined8 local_c8;\n  undefined8 local_c0;\n  undefined8 local_b8;\n  undefined8 local_b0;\n  undefined8 local_a8;\n  undefined8 local_98;\n  undefined8 local_88;\n  undefined8 local_78;\n  undefined8 local_68;\n  undefined8 local_58;\n  undefined8 local_48;\n  undefined8 local_38;\n  \n  if (in_AL != '\0') {\n    local_a8 = param_1;\n    local_98 = param_2;\n    local_88 = param_3;\n    local_78 = param_4;\n    local_68 = param_5;\n    local_58 = param_6;\n    local_48 = param_7;\n    local_38 = param_8;\n  }\n  local_e0 = *(long *)(in_FS_OFFSET + 0x28);\n  lVar2 = 0x96;\n  local_c8 = param_11;\n  local_c0 = param_12;\n  local_b8 = param_13;\n  local_b0 = param_14;\n  do {\n    iVar1 = FUN_0010a691(param_9,lVar2);\n    if (iVar1 == 0) {\n      lVar2 = -1;\nLAB_0010a842:\n      if (local_e0 == *(long *)(in_FS_OFFSET + 0x28)) {\n        return lVar2;\n      }\n                    /* WARNING: Subroutine does not return */\n      __stack_chk_fail();\n    }\n    local_f8 = 0x10;\n    local_f4 = 0x30;\n    local_f0 = &stack0x00000008;\n    local_e8 = local_d8;\n    uVar3 = *(long *)(param_9 + 0x40) - *(long *)(param_9 + 0x38);\n    iVar1 = __vsnprintf_chk(*(long *)(param_9 + 0x38),uVar3,1,0xffffffffffffffff,param_10,&local_f8)\n    ;\n    if ((ulong)(long)iVar1 < uVar3) {\n      *(long *)(param_9 + 0x38) = *(long *)(param_9 + 0x38) + (long)iVar1;\n      lVar2 = (long)iVar1;\n      goto LAB_0010a842;\n    }\n    lVar2 = (long)(iVar1 + 1);\n  } while( true );\n}" { (declaration "char in_AL;" primitive_type identifier ;) (declaration "int iVar1;" primitive_type identifier ;) (declaration "long lVar2;" (sized_type_specifier "long" long) identifier ;) (declaration "ulong uVar3;" type_identifier identifier ;) (declaration "long in_FS_OFFSET;" (sized_type_specifier "long" long) identifier ;) (declaration "undefined4 local_f8;" type_identifier identifier ;) (declaration "undefined4 local_f4;" type_identifier identifier ;) (declaration "undefined1 *local_f0;" type_identifier (pointer_declarator "*local_f0" * identifier) ;) (declaration "undefined1 *local_e8;" type_identifier (pointer_declarator "*local_e8" * identifier) ;) (declaration "long local_e0;" (sized_type_specifier "long" long) identifier ;) (declaration "undefined1 local_d8 [16];" type_identifier (array_declarator "local_d8 [16]" identifier [ number_literal ]) ;) (declaration "undefined8 local_c8;" type_identifier identifier ;) (declaration "undefined8 local_c0;" type_identifier identifier ;) (declaration "undefined8 local_b8;" type_identifier identifier ;) (declaration "undefined8 local_b0;" type_identifier identifier ;) (declaration "undefined8 local_a8;" type_identifier identifier ;) (declaration "undefined8 local_98;" type_identifier identifier ;) (declaration "undefined8 local_88;" type_identifier identifier ;) (declaration "undefined8 local_78;" type_identifier identifier ;) (declaration "undefined8 local_68;" type_identifier identifier ;) (declaration "undefined8 local_58;" type_identifier identifier ;) (declaration "undefined8 local_48;" type_identifier identifier ;) (declaration "undefined8 local_38;" type_identifier identifier ;) (if_statement "if (in_AL != '\0') {\n    local_a8 = param_1;\n    local_98 = param_2;\n    local_88 = param_3;\n    local_78 = param_4;\n    local_68 = param_5;\n    local_58 = param_6;\n    local_48 = param_7;\n    local_38 = param_8;\n  }" if (parenthesized_expression "(in_AL != '\0')" ( (binary_expression "in_AL != '\0'" identifier != (char_literal "'\0'" ' escape_sequence ')) )) (compound_statement "{\n    local_a8 = param_1;\n    local_98 = param_2;\n    local_88 = param_3;\n    local_78 = param_4;\n    local_68 = param_5;\n    local_58 = param_6;\n    local_48 = param_7;\n    local_38 = param_8;\n  }" { (expression_statement "local_a8 = param_1;" (assignment_expression "local_a8 = param_1" identifier = identifier) ;) (expression_statement "local_98 = param_2;" (assignment_expression "local_98 = param_2" identifier = identifier) ;) (expression_statement "local_88 = param_3;" (assignment_expression "local_88 = param_3" identifier = identifier) ;) (expression_statement "local_78 = param_4;" (assignment_expression "local_78 = param_4" identifier = identifier) ;) (expression_statement "local_68 = param_5;" (assignment_expression "local_68 = param_5" identifier = identifier) ;) (expression_statement "local_58 = param_6;" (assignment_expression "local_58 = param_6" identifier = identifier) ;) (expression_statement "local_48 = param_7;" (assignment_expression "local_48 = param_7" identifier = identifier) ;) (expression_statement "local_38 = param_8;" (assignment_expression "local_38 = param_8" identifier = identifier) ;) })) (expression_statement "local_e0 = *(long *)(in_FS_OFFSET + 0x28);" (assignment_expression "local_e0 = *(long *)(in_FS_OFFSET + 0x28)" identifier = (pointer_expression "*(long *)(in_FS_OFFSET + 0x28)" * (cast_expression "(long *)(in_FS_OFFSET + 0x28)" ( (type_descriptor "long *" (sized_type_specifier "long" long) (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(in_FS_OFFSET + 0x28)" ( (binary_expression "in_FS_OFFSET + 0x28" identifier + number_literal) ))))) ;) (expression_statement "lVar2 = 0x96;" (assignment_expression "lVar2 = 0x96" identifier = number_literal) ;) (expression_statement "local_c8 = param_11;" (assignment_expression "local_c8 = param_11" identifier = identifier) ;) (expression_statement "local_c0 = param_12;" (assignment_expression "local_c0 = param_12" identifier = identifier) ;) (expression_statement "local_b8 = param_13;" (assignment_expression "local_b8 = param_13" identifier = identifier) ;) (expression_statement "local_b0 = param_14;" (assignment_expression "local_b0 = param_14" identifier = identifier) ;) (do_statement "do {\n    iVar1 = FUN_0010a691(param_9,lVar2);\n    if (iVar1 == 0) {\n      lVar2 = -1;\nLAB_0010a842:\n      if (local_e0 == *(long *)(in_FS_OFFSET + 0x28)) {\n        return lVar2;\n      }\n                    /* WARNING: Subroutine does not return */\n      __stack_chk_fail();\n    }\n    local_f8 = 0x10;\n    local_f4 = 0x30;\n    local_f0 = &stack0x00000008;\n    local_e8 = local_d8;\n    uVar3 = *(long *)(param_9 + 0x40) - *(long *)(param_9 + 0x38);\n    iVar1 = __vsnprintf_chk(*(long *)(param_9 + 0x38),uVar3,1,0xffffffffffffffff,param_10,&local_f8)\n    ;\n    if ((ulong)(long)iVar1 < uVar3) {\n      *(long *)(param_9 + 0x38) = *(long *)(param_9 + 0x38) + (long)iVar1;\n      lVar2 = (long)iVar1;\n      goto LAB_0010a842;\n    }\n    lVar2 = (long)(iVar1 + 1);\n  } while( true );" do (compound_statement "{\n    iVar1 = FUN_0010a691(param_9,lVar2);\n    if (iVar1 == 0) {\n      lVar2 = -1;\nLAB_0010a842:\n      if (local_e0 == *(long *)(in_FS_OFFSET + 0x28)) {\n        return lVar2;\n      }\n                    /* WARNING: Subroutine does not return */\n      __stack_chk_fail();\n    }\n    local_f8 = 0x10;\n    local_f4 = 0x30;\n    local_f0 = &stack0x00000008;\n    local_e8 = local_d8;\n    uVar3 = *(long *)(param_9 + 0x40) - *(long *)(param_9 + 0x38);\n    iVar1 = __vsnprintf_chk(*(long *)(param_9 + 0x38),uVar3,1,0xffffffffffffffff,param_10,&local_f8)\n    ;\n    if ((ulong)(long)iVar1 < uVar3) {\n      *(long *)(param_9 + 0x38) = *(long *)(param_9 + 0x38) + (long)iVar1;\n      lVar2 = (long)iVar1;\n      goto LAB_0010a842;\n    }\n    lVar2 = (long)(iVar1 + 1);\n  }" { (expression_statement "iVar1 = FUN_0010a691(param_9,lVar2);" (assignment_expression "iVar1 = FUN_0010a691(param_9,lVar2)" identifier = (call_expression "FUN_0010a691(param_9,lVar2)" identifier (argument_list "(param_9,lVar2)" ( identifier , identifier )))) ;) (if_statement "if (iVar1 == 0) {\n      lVar2 = -1;\nLAB_0010a842:\n      if (local_e0 == *(long *)(in_FS_OFFSET + 0x28)) {\n        return lVar2;\n      }\n                    /* WARNING: Subroutine does not return */\n      __stack_chk_fail();\n    }" if (parenthesized_expression "(iVar1 == 0)" ( (binary_expression "iVar1 == 0" identifier == number_literal) )) (compound_statement "{\n      lVar2 = -1;\nLAB_0010a842:\n      if (local_e0 == *(long *)(in_FS_OFFSET + 0x28)) {\n        return lVar2;\n      }\n                    /* WARNING: Subroutine does not return */\n      __stack_chk_fail();\n    }" { (expression_statement "lVar2 = -1;" (assignment_expression "lVar2 = -1" identifier = number_literal) ;) (labeled_statement "LAB_0010a842:\n      if (local_e0 == *(long *)(in_FS_OFFSET + 0x28)) {\n        return lVar2;\n      }" statement_identifier : (if_statement "if (local_e0 == *(long *)(in_FS_OFFSET + 0x28)) {\n        return lVar2;\n      }" if (parenthesized_expression "(local_e0 == *(long *)(in_FS_OFFSET + 0x28))" ( (binary_expression "local_e0 == *(long *)(in_FS_OFFSET + 0x28)" identifier == (pointer_expression "*(long *)(in_FS_OFFSET + 0x28)" * (cast_expression "(long *)(in_FS_OFFSET + 0x28)" ( (type_descriptor "long *" (sized_type_specifier "long" long) (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(in_FS_OFFSET + 0x28)" ( (binary_expression "in_FS_OFFSET + 0x28" identifier + number_literal) ))))) )) (compound_statement "{\n        return lVar2;\n      }" { (return_statement "return lVar2;" return identifier ;) }))) comment (expression_statement "__stack_chk_fail();" (call_expression "__stack_chk_fail()" identifier (argument_list "()" ( ))) ;) })) (expression_statement "local_f8 = 0x10;" (assignment_expression "local_f8 = 0x10" identifier = number_literal) ;) (expression_statement "local_f4 = 0x30;" (assignment_expression "local_f4 = 0x30" identifier = number_literal) ;) (expression_statement "local_f0 = &stack0x00000008;" (assignment_expression "local_f0 = &stack0x00000008" identifier = (pointer_expression "&stack0x00000008" & identifier)) ;) (expression_statement "local_e8 = local_d8;" (assignment_expression "local_e8 = local_d8" identifier = identifier) ;) (expression_statement "uVar3 = *(long *)(param_9 + 0x40) - *(long *)(param_9 + 0x38);" (assignment_expression "uVar3 = *(long *)(param_9 + 0x40) - *(long *)(param_9 + 0x38)" identifier = (binary_expression "*(long *)(param_9 + 0x40) - *(long *)(param_9 + 0x38)" (pointer_expression "*(long *)(param_9 + 0x40)" * (cast_expression "(long *)(param_9 + 0x40)" ( (type_descriptor "long *" (sized_type_specifier "long" long) (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_9 + 0x40)" ( (binary_expression "param_9 + 0x40" identifier + number_literal) )))) - (pointer_expression "*(long *)(param_9 + 0x38)" * (cast_expression "(long *)(param_9 + 0x38)" ( (type_descriptor "long *" (sized_type_specifier "long" long) (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_9 + 0x38)" ( (binary_expression "param_9 + 0x38" identifier + number_literal) )))))) ;) (expression_statement "iVar1 = __vsnprintf_chk(*(long *)(param_9 + 0x38),uVar3,1,0xffffffffffffffff,param_10,&local_f8)\n    ;" (assignment_expression "iVar1 = __vsnprintf_chk(*(long *)(param_9 + 0x38),uVar3,1,0xffffffffffffffff,param_10,&local_f8)" identifier = (call_expression "__vsnprintf_chk(*(long *)(param_9 + 0x38),uVar3,1,0xffffffffffffffff,param_10,&local_f8)" identifier (argument_list "(*(long *)(param_9 + 0x38),uVar3,1,0xffffffffffffffff,param_10,&local_f8)" ( (pointer_expression "*(long *)(param_9 + 0x38)" * (cast_expression "(long *)(param_9 + 0x38)" ( (type_descriptor "long *" (sized_type_specifier "long" long) (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_9 + 0x38)" ( (binary_expression "param_9 + 0x38" identifier + number_literal) )))) , identifier , number_literal , number_literal , identifier , (pointer_expression "&local_f8" & identifier) )))) ;) (if_statement "if ((ulong)(long)iVar1 < uVar3) {\n      *(long *)(param_9 + 0x38) = *(long *)(param_9 + 0x38) + (long)iVar1;\n      lVar2 = (long)iVar1;\n      goto LAB_0010a842;\n    }" if (parenthesized_expression "((ulong)(long)iVar1 < uVar3)" ( (binary_expression "(ulong)(long)iVar1 < uVar3" (cast_expression "(ulong)(long)iVar1" ( (type_descriptor "ulong" type_identifier) ) (cast_expression "(long)iVar1" ( (type_descriptor "long" (sized_type_specifier "long" long)) ) identifier)) < identifier) )) (compound_statement "{\n      *(long *)(param_9 + 0x38) = *(long *)(param_9 + 0x38) + (long)iVar1;\n      lVar2 = (long)iVar1;\n      goto LAB_0010a842;\n    }" { (expression_statement "*(long *)(param_9 + 0x38) = *(long *)(param_9 + 0x38) + (long)iVar1;" (assignment_expression "*(long *)(param_9 + 0x38) = *(long *)(param_9 + 0x38) + (long)iVar1" (pointer_expression "*(long *)(param_9 + 0x38)" * (cast_expression "(long *)(param_9 + 0x38)" ( (type_descriptor "long *" (sized_type_specifier "long" long) (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_9 + 0x38)" ( (binary_expression "param_9 + 0x38" identifier + number_literal) )))) = (binary_expression "*(long *)(param_9 + 0x38) + (long)iVar1" (pointer_expression "*(long *)(param_9 + 0x38)" * (cast_expression "(long *)(param_9 + 0x38)" ( (type_descriptor "long *" (sized_type_specifier "long" long) (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_9 + 0x38)" ( (binary_expression "param_9 + 0x38" identifier + number_literal) )))) + (cast_expression "(long)iVar1" ( (type_descriptor "long" (sized_type_specifier "long" long)) ) identifier))) ;) (expression_statement "lVar2 = (long)iVar1;" (assignment_expression "lVar2 = (long)iVar1" identifier = (cast_expression "(long)iVar1" ( (type_descriptor "long" (sized_type_specifier "long" long)) ) identifier)) ;) (goto_statement "goto LAB_0010a842;" goto statement_identifier ;) })) (expression_statement "lVar2 = (long)(iVar1 + 1);" (assignment_expression "lVar2 = (long)(iVar1 + 1)" identifier = (cast_expression "(long)(iVar1 + 1)" ( (type_descriptor "long" (sized_type_specifier "long" long)) ) (parenthesized_expression "(iVar1 + 1)" ( (binary_expression "iVar1 + 1" identifier + number_literal) )))) ;) }) while (parenthesized_expression "( true )" ( true )) ;) })))
(translation_unit "ssize_t argp_fmtstream_printf(argp_fmtstream *fs,char *fmt,...)\n\n{\n  long lVar1;\n  char in_AL;\n  int iVar2;\n  ssize_t sVar3;\n  undefined8 in_RCX;\n  undefined8 in_RDX;\n  size_t amount;\n  undefined8 in_R8;\n  undefined8 in_R9;\n  ulong uVar4;\n  long in_FS_OFFSET;\n  undefined8 in_XMM0_Qa;\n  undefined8 in_XMM1_Qa;\n  undefined8 in_XMM2_Qa;\n  undefined8 in_XMM3_Qa;\n  undefined8 in_XMM4_Qa;\n  undefined8 in_XMM5_Qa;\n  undefined8 in_XMM6_Qa;\n  undefined8 in_XMM7_Qa;\n  va_list args;\n  undefined1 local_d8 [16];\n  undefined8 local_c8;\n  undefined8 local_c0;\n  undefined8 local_b8;\n  undefined8 local_b0;\n  undefined8 local_a8;\n  undefined8 local_98;\n  undefined8 local_88;\n  undefined8 local_78;\n  undefined8 local_68;\n  undefined8 local_58;\n  undefined8 local_48;\n  undefined8 local_38;\n  \n  if (in_AL != '\0') {\n    local_a8 = in_XMM0_Qa;\n    local_98 = in_XMM1_Qa;\n    local_88 = in_XMM2_Qa;\n    local_78 = in_XMM3_Qa;\n    local_68 = in_XMM4_Qa;\n    local_58 = in_XMM5_Qa;\n    local_48 = in_XMM6_Qa;\n    local_38 = in_XMM7_Qa;\n  }\n  lVar1 = *(long *)(in_FS_OFFSET + 0x28);\n  amount = 0x96;\n  local_c8 = in_RDX;\n  local_c0 = in_RCX;\n  local_b8 = in_R8;\n  local_b0 = in_R9;\n  do {\n    iVar2 = _argp_fmtstream_ensure(fs,amount);\n    if (iVar2 == 0) {\n      sVar3 = -1;\nLAB_0010a842:\n      if (lVar1 == *(long *)(in_FS_OFFSET + 0x28)) {\n        return sVar3;\n      }\n                    /* WARNING: Subroutine does not return */\n      __stack_chk_fail();\n    }\n    args[0].gp_offset = 0x10;\n    args[0].fp_offset = 0x30;\n    args[0].overflow_arg_area = &stack0x00000008;\n    args[0].reg_save_area = local_d8;\n    uVar4 = (long)fs->end - (long)fs->p;\n    iVar2 = __vsnprintf_chk(fs->p,uVar4,1,0xffffffffffffffff,fmt,args);\n    if ((ulong)(long)iVar2 < uVar4) {\n      fs->p = fs->p + iVar2;\n      sVar3 = (ssize_t)iVar2;\n      goto LAB_0010a842;\n    }\n    amount = (size_t)(iVar2 + 1);\n  } while( true );\n}\n\n" (function_definition "ssize_t argp_fmtstream_printf(argp_fmtstream *fs,char *fmt,...)\n\n{\n  long lVar1;\n  char in_AL;\n  int iVar2;\n  ssize_t sVar3;\n  undefined8 in_RCX;\n  undefined8 in_RDX;\n  size_t amount;\n  undefined8 in_R8;\n  undefined8 in_R9;\n  ulong uVar4;\n  long in_FS_OFFSET;\n  undefined8 in_XMM0_Qa;\n  undefined8 in_XMM1_Qa;\n  undefined8 in_XMM2_Qa;\n  undefined8 in_XMM3_Qa;\n  undefined8 in_XMM4_Qa;\n  undefined8 in_XMM5_Qa;\n  undefined8 in_XMM6_Qa;\n  undefined8 in_XMM7_Qa;\n  va_list args;\n  undefined1 local_d8 [16];\n  undefined8 local_c8;\n  undefined8 local_c0;\n  undefined8 local_b8;\n  undefined8 local_b0;\n  undefined8 local_a8;\n  undefined8 local_98;\n  undefined8 local_88;\n  undefined8 local_78;\n  undefined8 local_68;\n  undefined8 local_58;\n  undefined8 local_48;\n  undefined8 local_38;\n  \n  if (in_AL != '\0') {\n    local_a8 = in_XMM0_Qa;\n    local_98 = in_XMM1_Qa;\n    local_88 = in_XMM2_Qa;\n    local_78 = in_XMM3_Qa;\n    local_68 = in_XMM4_Qa;\n    local_58 = in_XMM5_Qa;\n    local_48 = in_XMM6_Qa;\n    local_38 = in_XMM7_Qa;\n  }\n  lVar1 = *(long *)(in_FS_OFFSET + 0x28);\n  amount = 0x96;\n  local_c8 = in_RDX;\n  local_c0 = in_RCX;\n  local_b8 = in_R8;\n  local_b0 = in_R9;\n  do {\n    iVar2 = _argp_fmtstream_ensure(fs,amount);\n    if (iVar2 == 0) {\n      sVar3 = -1;\nLAB_0010a842:\n      if (lVar1 == *(long *)(in_FS_OFFSET + 0x28)) {\n        return sVar3;\n      }\n                    /* WARNING: Subroutine does not return */\n      __stack_chk_fail();\n    }\n    args[0].gp_offset = 0x10;\n    args[0].fp_offset = 0x30;\n    args[0].overflow_arg_area = &stack0x00000008;\n    args[0].reg_save_area = local_d8;\n    uVar4 = (long)fs->end - (long)fs->p;\n    iVar2 = __vsnprintf_chk(fs->p,uVar4,1,0xffffffffffffffff,fmt,args);\n    if ((ulong)(long)iVar2 < uVar4) {\n      fs->p = fs->p + iVar2;\n      sVar3 = (ssize_t)iVar2;\n      goto LAB_0010a842;\n    }\n    amount = (size_t)(iVar2 + 1);\n  } while( true );\n}" primitive_type (function_declarator "argp_fmtstream_printf(argp_fmtstream *fs,char *fmt,...)" identifier (parameter_list "(argp_fmtstream *fs,char *fmt,...)" ( (parameter_declaration "argp_fmtstream *fs" type_identifier (pointer_declarator "*fs" * identifier)) , (parameter_declaration "char *fmt" primitive_type (pointer_declarator "*fmt" * identifier)) , (variadic_parameter "..." ...) ))) (compound_statement "{\n  long lVar1;\n  char in_AL;\n  int iVar2;\n  ssize_t sVar3;\n  undefined8 in_RCX;\n  undefined8 in_RDX;\n  size_t amount;\n  undefined8 in_R8;\n  undefined8 in_R9;\n  ulong uVar4;\n  long in_FS_OFFSET;\n  undefined8 in_XMM0_Qa;\n  undefined8 in_XMM1_Qa;\n  undefined8 in_XMM2_Qa;\n  undefined8 in_XMM3_Qa;\n  undefined8 in_XMM4_Qa;\n  undefined8 in_XMM5_Qa;\n  undefined8 in_XMM6_Qa;\n  undefined8 in_XMM7_Qa;\n  va_list args;\n  undefined1 local_d8 [16];\n  undefined8 local_c8;\n  undefined8 local_c0;\n  undefined8 local_b8;\n  undefined8 local_b0;\n  undefined8 local_a8;\n  undefined8 local_98;\n  undefined8 local_88;\n  undefined8 local_78;\n  undefined8 local_68;\n  undefined8 local_58;\n  undefined8 local_48;\n  undefined8 local_38;\n  \n  if (in_AL != '\0') {\n    local_a8 = in_XMM0_Qa;\n    local_98 = in_XMM1_Qa;\n    local_88 = in_XMM2_Qa;\n    local_78 = in_XMM3_Qa;\n    local_68 = in_XMM4_Qa;\n    local_58 = in_XMM5_Qa;\n    local_48 = in_XMM6_Qa;\n    local_38 = in_XMM7_Qa;\n  }\n  lVar1 = *(long *)(in_FS_OFFSET + 0x28);\n  amount = 0x96;\n  local_c8 = in_RDX;\n  local_c0 = in_RCX;\n  local_b8 = in_R8;\n  local_b0 = in_R9;\n  do {\n    iVar2 = _argp_fmtstream_ensure(fs,amount);\n    if (iVar2 == 0) {\n      sVar3 = -1;\nLAB_0010a842:\n      if (lVar1 == *(long *)(in_FS_OFFSET + 0x28)) {\n        return sVar3;\n      }\n                    /* WARNING: Subroutine does not return */\n      __stack_chk_fail();\n    }\n    args[0].gp_offset = 0x10;\n    args[0].fp_offset = 0x30;\n    args[0].overflow_arg_area = &stack0x00000008;\n    args[0].reg_save_area = local_d8;\n    uVar4 = (long)fs->end - (long)fs->p;\n    iVar2 = __vsnprintf_chk(fs->p,uVar4,1,0xffffffffffffffff,fmt,args);\n    if ((ulong)(long)iVar2 < uVar4) {\n      fs->p = fs->p + iVar2;\n      sVar3 = (ssize_t)iVar2;\n      goto LAB_0010a842;\n    }\n    amount = (size_t)(iVar2 + 1);\n  } while( true );\n}" { (declaration "long lVar1;" (sized_type_specifier "long" long) identifier ;) (declaration "char in_AL;" primitive_type identifier ;) (declaration "int iVar2;" primitive_type identifier ;) (declaration "ssize_t sVar3;" primitive_type identifier ;) (declaration "undefined8 in_RCX;" type_identifier identifier ;) (declaration "undefined8 in_RDX;" type_identifier identifier ;) (declaration "size_t amount;" primitive_type identifier ;) (declaration "undefined8 in_R8;" type_identifier identifier ;) (declaration "undefined8 in_R9;" type_identifier identifier ;) (declaration "ulong uVar4;" type_identifier identifier ;) (declaration "long in_FS_OFFSET;" (sized_type_specifier "long" long) identifier ;) (declaration "undefined8 in_XMM0_Qa;" type_identifier identifier ;) (declaration "undefined8 in_XMM1_Qa;" type_identifier identifier ;) (declaration "undefined8 in_XMM2_Qa;" type_identifier identifier ;) (declaration "undefined8 in_XMM3_Qa;" type_identifier identifier ;) (declaration "undefined8 in_XMM4_Qa;" type_identifier identifier ;) (declaration "undefined8 in_XMM5_Qa;" type_identifier identifier ;) (declaration "undefined8 in_XMM6_Qa;" type_identifier identifier ;) (declaration "undefined8 in_XMM7_Qa;" type_identifier identifier ;) (declaration "va_list args;" type_identifier identifier ;) (declaration "undefined1 local_d8 [16];" type_identifier (array_declarator "local_d8 [16]" identifier [ number_literal ]) ;) (declaration "undefined8 local_c8;" type_identifier identifier ;) (declaration "undefined8 local_c0;" type_identifier identifier ;) (declaration "undefined8 local_b8;" type_identifier identifier ;) (declaration "undefined8 local_b0;" type_identifier identifier ;) (declaration "undefined8 local_a8;" type_identifier identifier ;) (declaration "undefined8 local_98;" type_identifier identifier ;) (declaration "undefined8 local_88;" type_identifier identifier ;) (declaration "undefined8 local_78;" type_identifier identifier ;) (declaration "undefined8 local_68;" type_identifier identifier ;) (declaration "undefined8 local_58;" type_identifier identifier ;) (declaration "undefined8 local_48;" type_identifier identifier ;) (declaration "undefined8 local_38;" type_identifier identifier ;) (if_statement "if (in_AL != '\0') {\n    local_a8 = in_XMM0_Qa;\n    local_98 = in_XMM1_Qa;\n    local_88 = in_XMM2_Qa;\n    local_78 = in_XMM3_Qa;\n    local_68 = in_XMM4_Qa;\n    local_58 = in_XMM5_Qa;\n    local_48 = in_XMM6_Qa;\n    local_38 = in_XMM7_Qa;\n  }" if (parenthesized_expression "(in_AL != '\0')" ( (binary_expression "in_AL != '\0'" identifier != (char_literal "'\0'" ' escape_sequence ')) )) (compound_statement "{\n    local_a8 = in_XMM0_Qa;\n    local_98 = in_XMM1_Qa;\n    local_88 = in_XMM2_Qa;\n    local_78 = in_XMM3_Qa;\n    local_68 = in_XMM4_Qa;\n    local_58 = in_XMM5_Qa;\n    local_48 = in_XMM6_Qa;\n    local_38 = in_XMM7_Qa;\n  }" { (expression_statement "local_a8 = in_XMM0_Qa;" (assignment_expression "local_a8 = in_XMM0_Qa" identifier = identifier) ;) (expression_statement "local_98 = in_XMM1_Qa;" (assignment_expression "local_98 = in_XMM1_Qa" identifier = identifier) ;) (expression_statement "local_88 = in_XMM2_Qa;" (assignment_expression "local_88 = in_XMM2_Qa" identifier = identifier) ;) (expression_statement "local_78 = in_XMM3_Qa;" (assignment_expression "local_78 = in_XMM3_Qa" identifier = identifier) ;) (expression_statement "local_68 = in_XMM4_Qa;" (assignment_expression "local_68 = in_XMM4_Qa" identifier = identifier) ;) (expression_statement "local_58 = in_XMM5_Qa;" (assignment_expression "local_58 = in_XMM5_Qa" identifier = identifier) ;) (expression_statement "local_48 = in_XMM6_Qa;" (assignment_expression "local_48 = in_XMM6_Qa" identifier = identifier) ;) (expression_statement "local_38 = in_XMM7_Qa;" (assignment_expression "local_38 = in_XMM7_Qa" identifier = identifier) ;) })) (expression_statement "lVar1 = *(long *)(in_FS_OFFSET + 0x28);" (assignment_expression "lVar1 = *(long *)(in_FS_OFFSET + 0x28)" identifier = (pointer_expression "*(long *)(in_FS_OFFSET + 0x28)" * (cast_expression "(long *)(in_FS_OFFSET + 0x28)" ( (type_descriptor "long *" (sized_type_specifier "long" long) (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(in_FS_OFFSET + 0x28)" ( (binary_expression "in_FS_OFFSET + 0x28" identifier + number_literal) ))))) ;) (expression_statement "amount = 0x96;" (assignment_expression "amount = 0x96" identifier = number_literal) ;) (expression_statement "local_c8 = in_RDX;" (assignment_expression "local_c8 = in_RDX" identifier = identifier) ;) (expression_statement "local_c0 = in_RCX;" (assignment_expression "local_c0 = in_RCX" identifier = identifier) ;) (expression_statement "local_b8 = in_R8;" (assignment_expression "local_b8 = in_R8" identifier = identifier) ;) (expression_statement "local_b0 = in_R9;" (assignment_expression "local_b0 = in_R9" identifier = identifier) ;) (do_statement "do {\n    iVar2 = _argp_fmtstream_ensure(fs,amount);\n    if (iVar2 == 0) {\n      sVar3 = -1;\nLAB_0010a842:\n      if (lVar1 == *(long *)(in_FS_OFFSET + 0x28)) {\n        return sVar3;\n      }\n                    /* WARNING: Subroutine does not return */\n      __stack_chk_fail();\n    }\n    args[0].gp_offset = 0x10;\n    args[0].fp_offset = 0x30;\n    args[0].overflow_arg_area = &stack0x00000008;\n    args[0].reg_save_area = local_d8;\n    uVar4 = (long)fs->end - (long)fs->p;\n    iVar2 = __vsnprintf_chk(fs->p,uVar4,1,0xffffffffffffffff,fmt,args);\n    if ((ulong)(long)iVar2 < uVar4) {\n      fs->p = fs->p + iVar2;\n      sVar3 = (ssize_t)iVar2;\n      goto LAB_0010a842;\n    }\n    amount = (size_t)(iVar2 + 1);\n  } while( true );" do (compound_statement "{\n    iVar2 = _argp_fmtstream_ensure(fs,amount);\n    if (iVar2 == 0) {\n      sVar3 = -1;\nLAB_0010a842:\n      if (lVar1 == *(long *)(in_FS_OFFSET + 0x28)) {\n        return sVar3;\n      }\n                    /* WARNING: Subroutine does not return */\n      __stack_chk_fail();\n    }\n    args[0].gp_offset = 0x10;\n    args[0].fp_offset = 0x30;\n    args[0].overflow_arg_area = &stack0x00000008;\n    args[0].reg_save_area = local_d8;\n    uVar4 = (long)fs->end - (long)fs->p;\n    iVar2 = __vsnprintf_chk(fs->p,uVar4,1,0xffffffffffffffff,fmt,args);\n    if ((ulong)(long)iVar2 < uVar4) {\n      fs->p = fs->p + iVar2;\n      sVar3 = (ssize_t)iVar2;\n      goto LAB_0010a842;\n    }\n    amount = (size_t)(iVar2 + 1);\n  }" { (expression_statement "iVar2 = _argp_fmtstream_ensure(fs,amount);" (assignment_expression "iVar2 = _argp_fmtstream_ensure(fs,amount)" identifier = (call_expression "_argp_fmtstream_ensure(fs,amount)" identifier (argument_list "(fs,amount)" ( identifier , identifier )))) ;) (if_statement "if (iVar2 == 0) {\n      sVar3 = -1;\nLAB_0010a842:\n      if (lVar1 == *(long *)(in_FS_OFFSET + 0x28)) {\n        return sVar3;\n      }\n                    /* WARNING: Subroutine does not return */\n      __stack_chk_fail();\n    }" if (parenthesized_expression "(iVar2 == 0)" ( (binary_expression "iVar2 == 0" identifier == number_literal) )) (compound_statement "{\n      sVar3 = -1;\nLAB_0010a842:\n      if (lVar1 == *(long *)(in_FS_OFFSET + 0x28)) {\n        return sVar3;\n      }\n                    /* WARNING: Subroutine does not return */\n      __stack_chk_fail();\n    }" { (expression_statement "sVar3 = -1;" (assignment_expression "sVar3 = -1" identifier = number_literal) ;) (labeled_statement "LAB_0010a842:\n      if (lVar1 == *(long *)(in_FS_OFFSET + 0x28)) {\n        return sVar3;\n      }" statement_identifier : (if_statement "if (lVar1 == *(long *)(in_FS_OFFSET + 0x28)) {\n        return sVar3;\n      }" if (parenthesized_expression "(lVar1 == *(long *)(in_FS_OFFSET + 0x28))" ( (binary_expression "lVar1 == *(long *)(in_FS_OFFSET + 0x28)" identifier == (pointer_expression "*(long *)(in_FS_OFFSET + 0x28)" * (cast_expression "(long *)(in_FS_OFFSET + 0x28)" ( (type_descriptor "long *" (sized_type_specifier "long" long) (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(in_FS_OFFSET + 0x28)" ( (binary_expression "in_FS_OFFSET + 0x28" identifier + number_literal) ))))) )) (compound_statement "{\n        return sVar3;\n      }" { (return_statement "return sVar3;" return identifier ;) }))) comment (expression_statement "__stack_chk_fail();" (call_expression "__stack_chk_fail()" identifier (argument_list "()" ( ))) ;) })) (expression_statement "args[0].gp_offset = 0x10;" (assignment_expression "args[0].gp_offset = 0x10" (field_expression "args[0].gp_offset" (subscript_expression "args[0]" identifier [ number_literal ]) . field_identifier) = number_literal) ;) (expression_statement "args[0].fp_offset = 0x30;" (assignment_expression "args[0].fp_offset = 0x30" (field_expression "args[0].fp_offset" (subscript_expression "args[0]" identifier [ number_literal ]) . field_identifier) = number_literal) ;) (expression_statement "args[0].overflow_arg_area = &stack0x00000008;" (assignment_expression "args[0].overflow_arg_area = &stack0x00000008" (field_expression "args[0].overflow_arg_area" (subscript_expression "args[0]" identifier [ number_literal ]) . field_identifier) = (pointer_expression "&stack0x00000008" & identifier)) ;) (expression_statement "args[0].reg_save_area = local_d8;" (assignment_expression "args[0].reg_save_area = local_d8" (field_expression "args[0].reg_save_area" (subscript_expression "args[0]" identifier [ number_literal ]) . field_identifier) = identifier) ;) (expression_statement "uVar4 = (long)fs->end - (long)fs->p;" (assignment_expression "uVar4 = (long)fs->end - (long)fs->p" identifier = (binary_expression "(long)fs->end - (long)fs->p" (cast_expression "(long)fs->end" ( (type_descriptor "long" (sized_type_specifier "long" long)) ) (field_expression "fs->end" identifier -> field_identifier)) - (cast_expression "(long)fs->p" ( (type_descriptor "long" (sized_type_specifier "long" long)) ) (field_expression "fs->p" identifier -> field_identifier)))) ;) (expression_statement "iVar2 = __vsnprintf_chk(fs->p,uVar4,1,0xffffffffffffffff,fmt,args);" (assignment_expression "iVar2 = __vsnprintf_chk(fs->p,uVar4,1,0xffffffffffffffff,fmt,args)" identifier = (call_expression "__vsnprintf_chk(fs->p,uVar4,1,0xffffffffffffffff,fmt,args)" identifier (argument_list "(fs->p,uVar4,1,0xffffffffffffffff,fmt,args)" ( (field_expression "fs->p" identifier -> field_identifier) , identifier , number_literal , number_literal , identifier , identifier )))) ;) (if_statement "if ((ulong)(long)iVar2 < uVar4) {\n      fs->p = fs->p + iVar2;\n      sVar3 = (ssize_t)iVar2;\n      goto LAB_0010a842;\n    }" if (parenthesized_expression "((ulong)(long)iVar2 < uVar4)" ( (binary_expression "(ulong)(long)iVar2 < uVar4" (cast_expression "(ulong)(long)iVar2" ( (type_descriptor "ulong" type_identifier) ) (cast_expression "(long)iVar2" ( (type_descriptor "long" (sized_type_specifier "long" long)) ) identifier)) < identifier) )) (compound_statement "{\n      fs->p = fs->p + iVar2;\n      sVar3 = (ssize_t)iVar2;\n      goto LAB_0010a842;\n    }" { (expression_statement "fs->p = fs->p + iVar2;" (assignment_expression "fs->p = fs->p + iVar2" (field_expression "fs->p" identifier -> field_identifier) = (binary_expression "fs->p + iVar2" (field_expression "fs->p" identifier -> field_identifier) + identifier)) ;) (expression_statement "sVar3 = (ssize_t)iVar2;" (assignment_expression "sVar3 = (ssize_t)iVar2" identifier = (cast_expression "(ssize_t)iVar2" ( (type_descriptor "ssize_t" primitive_type) ) identifier)) ;) (goto_statement "goto LAB_0010a842;" goto statement_identifier ;) })) (expression_statement "amount = (size_t)(iVar2 + 1);" (assignment_expression "amount = (size_t)(iVar2 + 1)" identifier = (cast_expression "(size_t)(iVar2 + 1)" ( (type_descriptor "size_t" primitive_type) ) (parenthesized_expression "(iVar2 + 1)" ( (binary_expression "iVar2 + 1" identifier + number_literal) )))) ;) }) while (parenthesized_expression "( true )" ( true )) ;) })))
(translation_unit "long FUN_0010a75a(undefined8 param_1,undefined8 param_2,undefined8 param_3,undefined8 param_4,\n                 undefined8 param_5,undefined8 param_6,undefined8 param_7,undefined8 param_8,\n                 long param_9,undefined8 param_10,undefined8 param_11,undefined8 param_12,\n                 undefined8 param_13,undefined8 param_14)\n\n{\n  char in_AL;\n  int iVar1;\n  long lVar2;\n  ulong uVar3;\n  long in_FS_OFFSET;\n  undefined4 local_f8;\n  undefined4 local_f4;\n  undefined1 *local_f0;\n  undefined1 *local_e8;\n  long local_e0;\n  undefined1 local_d8 [16];\n  undefined8 local_c8;\n  undefined8 local_c0;\n  undefined8 local_b8;\n  undefined8 local_b0;\n  undefined8 local_a8;\n  undefined8 local_98;\n  undefined8 local_88;\n  undefined8 local_78;\n  undefined8 local_68;\n  undefined8 local_58;\n  undefined8 local_48;\n  undefined8 local_38;\n  \n  if (in_AL != '\0') {\n    local_a8 = param_1;\n    local_98 = param_2;\n    local_88 = param_3;\n    local_78 = param_4;\n    local_68 = param_5;\n    local_58 = param_6;\n    local_48 = param_7;\n    local_38 = param_8;\n  }\n  local_e0 = *(long *)(in_FS_OFFSET + 0x28);\n  lVar2 = 0x96;\n  local_c8 = param_11;\n  local_c0 = param_12;\n  local_b8 = param_13;\n  local_b0 = param_14;\n  do {\n    iVar1 = FUN_0010a691(param_9,lVar2);\n    if (iVar1 == 0) {\n      lVar2 = -1;\nLAB_0010a842:\n      if (local_e0 == *(long *)(in_FS_OFFSET + 0x28)) {\n        return lVar2;\n      }\n                    \n      __stack_chk_fail();\n    }\n    local_f8 = 0x10;\n    local_f4 = 0x30;\n    local_f0 = &stack0x00000008;\n    local_e8 = local_d8;\n    uVar3 = *(long *)(param_9 + 0x40) - *(long *)(param_9 + 0x38);\n    iVar1 = __vsnprintf_chk(*(long *)(param_9 + 0x38),uVar3,1,0xffffffffffffffff,param_10,&local_f8)\n    ;\n    if ((ulong)(long)iVar1 < uVar3) {\n      *(long *)(param_9 + 0x38) = *(long *)(param_9 + 0x38) + (long)iVar1;\n      lVar2 = (long)iVar1;\n      goto LAB_0010a842;\n    }\n    lVar2 = (long)(iVar1 + 1);\n  } while( true );\n}\n\n" (function_definition "long FUN_0010a75a(undefined8 param_1,undefined8 param_2,undefined8 param_3,undefined8 param_4,\n                 undefined8 param_5,undefined8 param_6,undefined8 param_7,undefined8 param_8,\n                 long param_9,undefined8 param_10,undefined8 param_11,undefined8 param_12,\n                 undefined8 param_13,undefined8 param_14)\n\n{\n  char in_AL;\n  int iVar1;\n  long lVar2;\n  ulong uVar3;\n  long in_FS_OFFSET;\n  undefined4 local_f8;\n  undefined4 local_f4;\n  undefined1 *local_f0;\n  undefined1 *local_e8;\n  long local_e0;\n  undefined1 local_d8 [16];\n  undefined8 local_c8;\n  undefined8 local_c0;\n  undefined8 local_b8;\n  undefined8 local_b0;\n  undefined8 local_a8;\n  undefined8 local_98;\n  undefined8 local_88;\n  undefined8 local_78;\n  undefined8 local_68;\n  undefined8 local_58;\n  undefined8 local_48;\n  undefined8 local_38;\n  \n  if (in_AL != '\0') {\n    local_a8 = param_1;\n    local_98 = param_2;\n    local_88 = param_3;\n    local_78 = param_4;\n    local_68 = param_5;\n    local_58 = param_6;\n    local_48 = param_7;\n    local_38 = param_8;\n  }\n  local_e0 = *(long *)(in_FS_OFFSET + 0x28);\n  lVar2 = 0x96;\n  local_c8 = param_11;\n  local_c0 = param_12;\n  local_b8 = param_13;\n  local_b0 = param_14;\n  do {\n    iVar1 = FUN_0010a691(param_9,lVar2);\n    if (iVar1 == 0) {\n      lVar2 = -1;\nLAB_0010a842:\n      if (local_e0 == *(long *)(in_FS_OFFSET + 0x28)) {\n        return lVar2;\n      }\n                    \n      __stack_chk_fail();\n    }\n    local_f8 = 0x10;\n    local_f4 = 0x30;\n    local_f0 = &stack0x00000008;\n    local_e8 = local_d8;\n    uVar3 = *(long *)(param_9 + 0x40) - *(long *)(param_9 + 0x38);\n    iVar1 = __vsnprintf_chk(*(long *)(param_9 + 0x38),uVar3,1,0xffffffffffffffff,param_10,&local_f8)\n    ;\n    if ((ulong)(long)iVar1 < uVar3) {\n      *(long *)(param_9 + 0x38) = *(long *)(param_9 + 0x38) + (long)iVar1;\n      lVar2 = (long)iVar1;\n      goto LAB_0010a842;\n    }\n    lVar2 = (long)(iVar1 + 1);\n  } while( true );\n}" (sized_type_specifier "long" long) (function_declarator "FUN_0010a75a(undefined8 param_1,undefined8 param_2,undefined8 param_3,undefined8 param_4,\n                 undefined8 param_5,undefined8 param_6,undefined8 param_7,undefined8 param_8,\n                 long param_9,undefined8 param_10,undefined8 param_11,undefined8 param_12,\n                 undefined8 param_13,undefined8 param_14)" identifier (parameter_list "(undefined8 param_1,undefined8 param_2,undefined8 param_3,undefined8 param_4,\n                 undefined8 param_5,undefined8 param_6,undefined8 param_7,undefined8 param_8,\n                 long param_9,undefined8 param_10,undefined8 param_11,undefined8 param_12,\n                 undefined8 param_13,undefined8 param_14)" ( (parameter_declaration "undefined8 param_1" type_identifier identifier) , (parameter_declaration "undefined8 param_2" type_identifier identifier) , (parameter_declaration "undefined8 param_3" type_identifier identifier) , (parameter_declaration "undefined8 param_4" type_identifier identifier) , (parameter_declaration "undefined8 param_5" type_identifier identifier) , (parameter_declaration "undefined8 param_6" type_identifier identifier) , (parameter_declaration "undefined8 param_7" type_identifier identifier) , (parameter_declaration "undefined8 param_8" type_identifier identifier) , (parameter_declaration "long param_9" (sized_type_specifier "long" long) identifier) , (parameter_declaration "undefined8 param_10" type_identifier identifier) , (parameter_declaration "undefined8 param_11" type_identifier identifier) , (parameter_declaration "undefined8 param_12" type_identifier identifier) , (parameter_declaration "undefined8 param_13" type_identifier identifier) , (parameter_declaration "undefined8 param_14" type_identifier identifier) ))) (compound_statement "{\n  char in_AL;\n  int iVar1;\n  long lVar2;\n  ulong uVar3;\n  long in_FS_OFFSET;\n  undefined4 local_f8;\n  undefined4 local_f4;\n  undefined1 *local_f0;\n  undefined1 *local_e8;\n  long local_e0;\n  undefined1 local_d8 [16];\n  undefined8 local_c8;\n  undefined8 local_c0;\n  undefined8 local_b8;\n  undefined8 local_b0;\n  undefined8 local_a8;\n  undefined8 local_98;\n  undefined8 local_88;\n  undefined8 local_78;\n  undefined8 local_68;\n  undefined8 local_58;\n  undefined8 local_48;\n  undefined8 local_38;\n  \n  if (in_AL != '\0') {\n    local_a8 = param_1;\n    local_98 = param_2;\n    local_88 = param_3;\n    local_78 = param_4;\n    local_68 = param_5;\n    local_58 = param_6;\n    local_48 = param_7;\n    local_38 = param_8;\n  }\n  local_e0 = *(long *)(in_FS_OFFSET + 0x28);\n  lVar2 = 0x96;\n  local_c8 = param_11;\n  local_c0 = param_12;\n  local_b8 = param_13;\n  local_b0 = param_14;\n  do {\n    iVar1 = FUN_0010a691(param_9,lVar2);\n    if (iVar1 == 0) {\n      lVar2 = -1;\nLAB_0010a842:\n      if (local_e0 == *(long *)(in_FS_OFFSET + 0x28)) {\n        return lVar2;\n      }\n                    \n      __stack_chk_fail();\n    }\n    local_f8 = 0x10;\n    local_f4 = 0x30;\n    local_f0 = &stack0x00000008;\n    local_e8 = local_d8;\n    uVar3 = *(long *)(param_9 + 0x40) - *(long *)(param_9 + 0x38);\n    iVar1 = __vsnprintf_chk(*(long *)(param_9 + 0x38),uVar3,1,0xffffffffffffffff,param_10,&local_f8)\n    ;\n    if ((ulong)(long)iVar1 < uVar3) {\n      *(long *)(param_9 + 0x38) = *(long *)(param_9 + 0x38) + (long)iVar1;\n      lVar2 = (long)iVar1;\n      goto LAB_0010a842;\n    }\n    lVar2 = (long)(iVar1 + 1);\n  } while( true );\n}" { (declaration "char in_AL;" primitive_type identifier ;) (declaration "int iVar1;" primitive_type identifier ;) (declaration "long lVar2;" (sized_type_specifier "long" long) identifier ;) (declaration "ulong uVar3;" type_identifier identifier ;) (declaration "long in_FS_OFFSET;" (sized_type_specifier "long" long) identifier ;) (declaration "undefined4 local_f8;" type_identifier identifier ;) (declaration "undefined4 local_f4;" type_identifier identifier ;) (declaration "undefined1 *local_f0;" type_identifier (pointer_declarator "*local_f0" * identifier) ;) (declaration "undefined1 *local_e8;" type_identifier (pointer_declarator "*local_e8" * identifier) ;) (declaration "long local_e0;" (sized_type_specifier "long" long) identifier ;) (declaration "undefined1 local_d8 [16];" type_identifier (array_declarator "local_d8 [16]" identifier [ number_literal ]) ;) (declaration "undefined8 local_c8;" type_identifier identifier ;) (declaration "undefined8 local_c0;" type_identifier identifier ;) (declaration "undefined8 local_b8;" type_identifier identifier ;) (declaration "undefined8 local_b0;" type_identifier identifier ;) (declaration "undefined8 local_a8;" type_identifier identifier ;) (declaration "undefined8 local_98;" type_identifier identifier ;) (declaration "undefined8 local_88;" type_identifier identifier ;) (declaration "undefined8 local_78;" type_identifier identifier ;) (declaration "undefined8 local_68;" type_identifier identifier ;) (declaration "undefined8 local_58;" type_identifier identifier ;) (declaration "undefined8 local_48;" type_identifier identifier ;) (declaration "undefined8 local_38;" type_identifier identifier ;) (if_statement "if (in_AL != '\0') {\n    local_a8 = param_1;\n    local_98 = param_2;\n    local_88 = param_3;\n    local_78 = param_4;\n    local_68 = param_5;\n    local_58 = param_6;\n    local_48 = param_7;\n    local_38 = param_8;\n  }" if (parenthesized_expression "(in_AL != '\0')" ( (binary_expression "in_AL != '\0'" identifier != (char_literal "'\0'" ' escape_sequence ')) )) (compound_statement "{\n    local_a8 = param_1;\n    local_98 = param_2;\n    local_88 = param_3;\n    local_78 = param_4;\n    local_68 = param_5;\n    local_58 = param_6;\n    local_48 = param_7;\n    local_38 = param_8;\n  }" { (expression_statement "local_a8 = param_1;" (assignment_expression "local_a8 = param_1" identifier = identifier) ;) (expression_statement "local_98 = param_2;" (assignment_expression "local_98 = param_2" identifier = identifier) ;) (expression_statement "local_88 = param_3;" (assignment_expression "local_88 = param_3" identifier = identifier) ;) (expression_statement "local_78 = param_4;" (assignment_expression "local_78 = param_4" identifier = identifier) ;) (expression_statement "local_68 = param_5;" (assignment_expression "local_68 = param_5" identifier = identifier) ;) (expression_statement "local_58 = param_6;" (assignment_expression "local_58 = param_6" identifier = identifier) ;) (expression_statement "local_48 = param_7;" (assignment_expression "local_48 = param_7" identifier = identifier) ;) (expression_statement "local_38 = param_8;" (assignment_expression "local_38 = param_8" identifier = identifier) ;) })) (expression_statement "local_e0 = *(long *)(in_FS_OFFSET + 0x28);" (assignment_expression "local_e0 = *(long *)(in_FS_OFFSET + 0x28)" identifier = (pointer_expression "*(long *)(in_FS_OFFSET + 0x28)" * (cast_expression "(long *)(in_FS_OFFSET + 0x28)" ( (type_descriptor "long *" (sized_type_specifier "long" long) (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(in_FS_OFFSET + 0x28)" ( (binary_expression "in_FS_OFFSET + 0x28" identifier + number_literal) ))))) ;) (expression_statement "lVar2 = 0x96;" (assignment_expression "lVar2 = 0x96" identifier = number_literal) ;) (expression_statement "local_c8 = param_11;" (assignment_expression "local_c8 = param_11" identifier = identifier) ;) (expression_statement "local_c0 = param_12;" (assignment_expression "local_c0 = param_12" identifier = identifier) ;) (expression_statement "local_b8 = param_13;" (assignment_expression "local_b8 = param_13" identifier = identifier) ;) (expression_statement "local_b0 = param_14;" (assignment_expression "local_b0 = param_14" identifier = identifier) ;) (do_statement "do {\n    iVar1 = FUN_0010a691(param_9,lVar2);\n    if (iVar1 == 0) {\n      lVar2 = -1;\nLAB_0010a842:\n      if (local_e0 == *(long *)(in_FS_OFFSET + 0x28)) {\n        return lVar2;\n      }\n                    \n      __stack_chk_fail();\n    }\n    local_f8 = 0x10;\n    local_f4 = 0x30;\n    local_f0 = &stack0x00000008;\n    local_e8 = local_d8;\n    uVar3 = *(long *)(param_9 + 0x40) - *(long *)(param_9 + 0x38);\n    iVar1 = __vsnprintf_chk(*(long *)(param_9 + 0x38),uVar3,1,0xffffffffffffffff,param_10,&local_f8)\n    ;\n    if ((ulong)(long)iVar1 < uVar3) {\n      *(long *)(param_9 + 0x38) = *(long *)(param_9 + 0x38) + (long)iVar1;\n      lVar2 = (long)iVar1;\n      goto LAB_0010a842;\n    }\n    lVar2 = (long)(iVar1 + 1);\n  } while( true );" do (compound_statement "{\n    iVar1 = FUN_0010a691(param_9,lVar2);\n    if (iVar1 == 0) {\n      lVar2 = -1;\nLAB_0010a842:\n      if (local_e0 == *(long *)(in_FS_OFFSET + 0x28)) {\n        return lVar2;\n      }\n                    \n      __stack_chk_fail();\n    }\n    local_f8 = 0x10;\n    local_f4 = 0x30;\n    local_f0 = &stack0x00000008;\n    local_e8 = local_d8;\n    uVar3 = *(long *)(param_9 + 0x40) - *(long *)(param_9 + 0x38);\n    iVar1 = __vsnprintf_chk(*(long *)(param_9 + 0x38),uVar3,1,0xffffffffffffffff,param_10,&local_f8)\n    ;\n    if ((ulong)(long)iVar1 < uVar3) {\n      *(long *)(param_9 + 0x38) = *(long *)(param_9 + 0x38) + (long)iVar1;\n      lVar2 = (long)iVar1;\n      goto LAB_0010a842;\n    }\n    lVar2 = (long)(iVar1 + 1);\n  }" { (expression_statement "iVar1 = FUN_0010a691(param_9,lVar2);" (assignment_expression "iVar1 = FUN_0010a691(param_9,lVar2)" identifier = (call_expression "FUN_0010a691(param_9,lVar2)" identifier (argument_list "(param_9,lVar2)" ( identifier , identifier )))) ;) (if_statement "if (iVar1 == 0) {\n      lVar2 = -1;\nLAB_0010a842:\n      if (local_e0 == *(long *)(in_FS_OFFSET + 0x28)) {\n        return lVar2;\n      }\n                    \n      __stack_chk_fail();\n    }" if (parenthesized_expression "(iVar1 == 0)" ( (binary_expression "iVar1 == 0" identifier == number_literal) )) (compound_statement "{\n      lVar2 = -1;\nLAB_0010a842:\n      if (local_e0 == *(long *)(in_FS_OFFSET + 0x28)) {\n        return lVar2;\n      }\n                    \n      __stack_chk_fail();\n    }" { (expression_statement "lVar2 = -1;" (assignment_expression "lVar2 = -1" identifier = number_literal) ;) (labeled_statement "LAB_0010a842:\n      if (local_e0 == *(long *)(in_FS_OFFSET + 0x28)) {\n        return lVar2;\n      }" statement_identifier : (if_statement "if (local_e0 == *(long *)(in_FS_OFFSET + 0x28)) {\n        return lVar2;\n      }" if (parenthesized_expression "(local_e0 == *(long *)(in_FS_OFFSET + 0x28))" ( (binary_expression "local_e0 == *(long *)(in_FS_OFFSET + 0x28)" identifier == (pointer_expression "*(long *)(in_FS_OFFSET + 0x28)" * (cast_expression "(long *)(in_FS_OFFSET + 0x28)" ( (type_descriptor "long *" (sized_type_specifier "long" long) (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(in_FS_OFFSET + 0x28)" ( (binary_expression "in_FS_OFFSET + 0x28" identifier + number_literal) ))))) )) (compound_statement "{\n        return lVar2;\n      }" { (return_statement "return lVar2;" return identifier ;) }))) (expression_statement "__stack_chk_fail();" (call_expression "__stack_chk_fail()" identifier (argument_list "()" ( ))) ;) })) (expression_statement "local_f8 = 0x10;" (assignment_expression "local_f8 = 0x10" identifier = number_literal) ;) (expression_statement "local_f4 = 0x30;" (assignment_expression "local_f4 = 0x30" identifier = number_literal) ;) (expression_statement "local_f0 = &stack0x00000008;" (assignment_expression "local_f0 = &stack0x00000008" identifier = (pointer_expression "&stack0x00000008" & identifier)) ;) (expression_statement "local_e8 = local_d8;" (assignment_expression "local_e8 = local_d8" identifier = identifier) ;) (expression_statement "uVar3 = *(long *)(param_9 + 0x40) - *(long *)(param_9 + 0x38);" (assignment_expression "uVar3 = *(long *)(param_9 + 0x40) - *(long *)(param_9 + 0x38)" identifier = (binary_expression "*(long *)(param_9 + 0x40) - *(long *)(param_9 + 0x38)" (pointer_expression "*(long *)(param_9 + 0x40)" * (cast_expression "(long *)(param_9 + 0x40)" ( (type_descriptor "long *" (sized_type_specifier "long" long) (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_9 + 0x40)" ( (binary_expression "param_9 + 0x40" identifier + number_literal) )))) - (pointer_expression "*(long *)(param_9 + 0x38)" * (cast_expression "(long *)(param_9 + 0x38)" ( (type_descriptor "long *" (sized_type_specifier "long" long) (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_9 + 0x38)" ( (binary_expression "param_9 + 0x38" identifier + number_literal) )))))) ;) (expression_statement "iVar1 = __vsnprintf_chk(*(long *)(param_9 + 0x38),uVar3,1,0xffffffffffffffff,param_10,&local_f8)\n    ;" (assignment_expression "iVar1 = __vsnprintf_chk(*(long *)(param_9 + 0x38),uVar3,1,0xffffffffffffffff,param_10,&local_f8)" identifier = (call_expression "__vsnprintf_chk(*(long *)(param_9 + 0x38),uVar3,1,0xffffffffffffffff,param_10,&local_f8)" identifier (argument_list "(*(long *)(param_9 + 0x38),uVar3,1,0xffffffffffffffff,param_10,&local_f8)" ( (pointer_expression "*(long *)(param_9 + 0x38)" * (cast_expression "(long *)(param_9 + 0x38)" ( (type_descriptor "long *" (sized_type_specifier "long" long) (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_9 + 0x38)" ( (binary_expression "param_9 + 0x38" identifier + number_literal) )))) , identifier , number_literal , number_literal , identifier , (pointer_expression "&local_f8" & identifier) )))) ;) (if_statement "if ((ulong)(long)iVar1 < uVar3) {\n      *(long *)(param_9 + 0x38) = *(long *)(param_9 + 0x38) + (long)iVar1;\n      lVar2 = (long)iVar1;\n      goto LAB_0010a842;\n    }" if (parenthesized_expression "((ulong)(long)iVar1 < uVar3)" ( (binary_expression "(ulong)(long)iVar1 < uVar3" (cast_expression "(ulong)(long)iVar1" ( (type_descriptor "ulong" type_identifier) ) (cast_expression "(long)iVar1" ( (type_descriptor "long" (sized_type_specifier "long" long)) ) identifier)) < identifier) )) (compound_statement "{\n      *(long *)(param_9 + 0x38) = *(long *)(param_9 + 0x38) + (long)iVar1;\n      lVar2 = (long)iVar1;\n      goto LAB_0010a842;\n    }" { (expression_statement "*(long *)(param_9 + 0x38) = *(long *)(param_9 + 0x38) + (long)iVar1;" (assignment_expression "*(long *)(param_9 + 0x38) = *(long *)(param_9 + 0x38) + (long)iVar1" (pointer_expression "*(long *)(param_9 + 0x38)" * (cast_expression "(long *)(param_9 + 0x38)" ( (type_descriptor "long *" (sized_type_specifier "long" long) (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_9 + 0x38)" ( (binary_expression "param_9 + 0x38" identifier + number_literal) )))) = (binary_expression "*(long *)(param_9 + 0x38) + (long)iVar1" (pointer_expression "*(long *)(param_9 + 0x38)" * (cast_expression "(long *)(param_9 + 0x38)" ( (type_descriptor "long *" (sized_type_specifier "long" long) (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_9 + 0x38)" ( (binary_expression "param_9 + 0x38" identifier + number_literal) )))) + (cast_expression "(long)iVar1" ( (type_descriptor "long" (sized_type_specifier "long" long)) ) identifier))) ;) (expression_statement "lVar2 = (long)iVar1;" (assignment_expression "lVar2 = (long)iVar1" identifier = (cast_expression "(long)iVar1" ( (type_descriptor "long" (sized_type_specifier "long" long)) ) identifier)) ;) (goto_statement "goto LAB_0010a842;" goto statement_identifier ;) })) (expression_statement "lVar2 = (long)(iVar1 + 1);" (assignment_expression "lVar2 = (long)(iVar1 + 1)" identifier = (cast_expression "(long)(iVar1 + 1)" ( (type_descriptor "long" (sized_type_specifier "long" long)) ) (parenthesized_expression "(iVar1 + 1)" ( (binary_expression "iVar1 + 1" identifier + number_literal) )))) ;) }) while (parenthesized_expression "( true )" ( true )) ;) })))
(translation_unit (function_definition (sized_type_specifier long) (function_declarator IDENT (parameter_list ( (parameter_declaration TYPE IDENT) , (parameter_declaration TYPE IDENT) , (parameter_declaration TYPE IDENT) , (parameter_declaration TYPE IDENT) , (parameter_declaration TYPE IDENT) , (parameter_declaration TYPE IDENT) , (parameter_declaration TYPE IDENT) , (parameter_declaration TYPE IDENT) , (parameter_declaration (sized_type_specifier long) IDENT) , (parameter_declaration TYPE IDENT) , (parameter_declaration TYPE IDENT) , (parameter_declaration TYPE IDENT) , (parameter_declaration TYPE IDENT) , (parameter_declaration TYPE IDENT) ))) (compound_statement { (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration (sized_type_specifier long) IDENT ;) (declaration TYPE IDENT ;) (declaration (sized_type_specifier long) IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration (sized_type_specifier long) IDENT ;) (declaration TYPE (array_declarator IDENT [ LIT ]) ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT != (char_literal ' escape_sequence ')) )) (compound_statement { (expression_statement (assignment_expression IDENT = IDENT) ;) (expression_statement (assignment_expression IDENT = IDENT) ;) (expression_statement (assignment_expression IDENT = IDENT) ;) (expression_statement (assignment_expression IDENT = IDENT) ;) (expression_statement (assignment_expression IDENT = IDENT) ;) (expression_statement (assignment_expression IDENT = IDENT) ;) (expression_statement (assignment_expression IDENT = IDENT) ;) (expression_statement (assignment_expression IDENT = IDENT) ;) })) (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor (sized_type_specifier long) (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) ;) (expression_statement (assignment_expression IDENT = LIT) ;) (expression_statement (assignment_expression IDENT = IDENT) ;) (expression_statement (assignment_expression IDENT = IDENT) ;) (expression_statement (assignment_expression IDENT = IDENT) ;) (expression_statement (assignment_expression IDENT = IDENT) ;) (do_statement do (compound_statement { (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( IDENT , IDENT )))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT == LIT) )) (compound_statement { (expression_statement (assignment_expression IDENT = LIT) ;) (labeled_statement statement_identifier : (if_statement if (parenthesized_expression ( (binary_expression IDENT == (pointer_expression * (cast_expression ( (type_descriptor (sized_type_specifier long) (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) )) (compound_statement { (return_statement return IDENT ;) }))) (expression_statement (call_expression IDENT (argument_list ( ))) ;) })) (expression_statement (assignment_expression IDENT = LIT) ;) (expression_statement (assignment_expression IDENT = LIT) ;) (expression_statement (assignment_expression IDENT = (pointer_expression & IDENT)) ;) (expression_statement (assignment_expression IDENT = IDENT) ;) (expression_statement (assignment_expression IDENT = (binary_expression (pointer_expression * (cast_expression ( (type_descriptor (sized_type_specifier long) (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) - (pointer_expression * (cast_expression ( (type_descriptor (sized_type_specifier long) (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))))) ;) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( (pointer_expression * (cast_expression ( (type_descriptor (sized_type_specifier long) (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) , IDENT , LIT , LIT , IDENT , (pointer_expression & IDENT) )))) ;) (if_statement if (parenthesized_expression ( (binary_expression (cast_expression ( (type_descriptor TYPE) ) (cast_expression ( (type_descriptor (sized_type_specifier long)) ) IDENT)) < IDENT) )) (compound_statement { (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor (sized_type_specifier long) (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) = (binary_expression (pointer_expression * (cast_expression ( (type_descriptor (sized_type_specifier long) (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) + (cast_expression ( (type_descriptor (sized_type_specifier long)) ) IDENT))) ;) (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor (sized_type_specifier long)) ) IDENT)) ;) (goto_statement goto statement_identifier ;) })) (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor (sized_type_specifier long)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) ;) }) while (parenthesized_expression ( BOOL )) ;) })))
(function_definition "long FUN_0010a75a(undefined8 param_1,undefined8 param_2,undefined8 param_3,undefined8 param_4,\n                 undefined8 param_5,undefined8 param_6,undefined8 param_7,undefined8 param_8,\n                 long param_9,undefined8 param_10,undefined8 param_11,undefined8 param_12,\n                 undefined8 param_13,undefined8 param_14)\n\n{\n  char in_AL;\n  int iVar1;\n  long lVar2;\n  ulong uVar3;\n  long in_FS_OFFSET;\n  undefined4 local_f8;\n  undefined4 local_f4;\n  undefined1 *local_f0;\n  undefined1 *local_e8;\n  long local_e0;\n  undefined1 local_d8 [16];\n  undefined8 local_c8;\n  undefined8 local_c0;\n  undefined8 local_b8;\n  undefined8 local_b0;\n  undefined8 local_a8;\n  undefined8 local_98;\n  undefined8 local_88;\n  undefined8 local_78;\n  undefined8 local_68;\n  undefined8 local_58;\n  undefined8 local_48;\n  undefined8 local_38;\n  \n  if (in_AL != '\0') {\n    local_a8 = param_1;\n    local_98 = param_2;\n    local_88 = param_3;\n    local_78 = param_4;\n    local_68 = param_5;\n    local_58 = param_6;\n    local_48 = param_7;\n    local_38 = param_8;\n  }\n  local_e0 = *(long *)(in_FS_OFFSET + 0x28);\n  lVar2 = 0x96;\n  local_c8 = param_11;\n  local_c0 = param_12;\n  local_b8 = param_13;\n  local_b0 = param_14;\n  do {\n    iVar1 = FUN_0010a691(param_9,lVar2);\n    if (iVar1 == 0) {\n      lVar2 = -1;\nLAB_0010a842:\n      if (local_e0 == *(long *)(in_FS_OFFSET + 0x28)) {\n        return lVar2;\n      }\n                    \n      __stack_chk_fail();\n    }\n    local_f8 = 0x10;\n    local_f4 = 0x30;\n    local_f0 = &stack0x00000008;\n    local_e8 = local_d8;\n    uVar3 = *(long *)(param_9 + 0x40) - *(long *)(param_9 + 0x38);\n    iVar1 = __vsnprintf_chk(*(long *)(param_9 + 0x38),uVar3,1,0xffffffffffffffff,param_10,&local_f8)\n    ;\n    if ((ulong)(long)iVar1 < uVar3) {\n      *(long *)(param_9 + 0x38) = *(long *)(param_9 + 0x38) + (long)iVar1;\n      lVar2 = (long)iVar1;\n      goto LAB_0010a842;\n    }\n    lVar2 = (long)(iVar1 + 1);\n  } while( true );\n}" (sized_type_specifier "long" (long "long")) (function_declarator "FUN_0010a75a(undefined8 param_1,undefined8 param_2,undefined8 param_3,undefined8 param_4,\n                 undefined8 param_5,undefined8 param_6,undefined8 param_7,undefined8 param_8,\n                 long param_9,undefined8 param_10,undefined8 param_11,undefined8 param_12,\n                 undefined8 param_13,undefined8 param_14)" (identifier "FUN_0010a75a") (parameter_list "(undefined8 param_1,undefined8 param_2,undefined8 param_3,undefined8 param_4,\n                 undefined8 param_5,undefined8 param_6,undefined8 param_7,undefined8 param_8,\n                 long param_9,undefined8 param_10,undefined8 param_11,undefined8 param_12,\n                 undefined8 param_13,undefined8 param_14)" (( "(") (parameter_declaration "undefined8 param_1" (type_identifier "undefined8") (identifier "param_1")) (, ",") (parameter_declaration "undefined8 param_2" (type_identifier "undefined8") (identifier "param_2")) (, ",") (parameter_declaration "undefined8 param_3" (type_identifier "undefined8") (identifier "param_3")) (, ",") (parameter_declaration "undefined8 param_4" (type_identifier "undefined8") (identifier "param_4")) (, ",") (parameter_declaration "undefined8 param_5" (type_identifier "undefined8") (identifier "param_5")) (, ",") (parameter_declaration "undefined8 param_6" (type_identifier "undefined8") (identifier "param_6")) (, ",") (parameter_declaration "undefined8 param_7" (type_identifier "undefined8") (identifier "param_7")) (, ",") (parameter_declaration "undefined8 param_8" (type_identifier "undefined8") (identifier "param_8")) (, ",") (parameter_declaration "long param_9" (sized_type_specifier "long" (long "long")) (identifier "param_9")) (, ",") (parameter_declaration "undefined8 param_10" (type_identifier "undefined8") (identifier "param_10")) (, ",") (parameter_declaration "undefined8 param_11" (type_identifier "undefined8") (identifier "param_11")) (, ",") (parameter_declaration "undefined8 param_12" (type_identifier "undefined8") (identifier "param_12")) (, ",") (parameter_declaration "undefined8 param_13" (type_identifier "undefined8") (identifier "param_13")) (, ",") (parameter_declaration "undefined8 param_14" (type_identifier "undefined8") (identifier "param_14")) () ")"))) (compound_statement "{\n  char in_AL;\n  int iVar1;\n  long lVar2;\n  ulong uVar3;\n  long in_FS_OFFSET;\n  undefined4 local_f8;\n  undefined4 local_f4;\n  undefined1 *local_f0;\n  undefined1 *local_e8;\n  long local_e0;\n  undefined1 local_d8 [16];\n  undefined8 local_c8;\n  undefined8 local_c0;\n  undefined8 local_b8;\n  undefined8 local_b0;\n  undefined8 local_a8;\n  undefined8 local_98;\n  undefined8 local_88;\n  undefined8 local_78;\n  undefined8 local_68;\n  undefined8 local_58;\n  undefined8 local_48;\n  undefined8 local_38;\n  \n  if (in_AL != '\0') {\n    local_a8 = param_1;\n    local_98 = param_2;\n    local_88 = param_3;\n    local_78 = param_4;\n    local_68 = param_5;\n    local_58 = param_6;\n    local_48 = param_7;\n    local_38 = param_8;\n  }\n  local_e0 = *(long *)(in_FS_OFFSET + 0x28);\n  lVar2 = 0x96;\n  local_c8 = param_11;\n  local_c0 = param_12;\n  local_b8 = param_13;\n  local_b0 = param_14;\n  do {\n    iVar1 = FUN_0010a691(param_9,lVar2);\n    if (iVar1 == 0) {\n      lVar2 = -1;\nLAB_0010a842:\n      if (local_e0 == *(long *)(in_FS_OFFSET + 0x28)) {\n        return lVar2;\n      }\n                    \n      __stack_chk_fail();\n    }\n    local_f8 = 0x10;\n    local_f4 = 0x30;\n    local_f0 = &stack0x00000008;\n    local_e8 = local_d8;\n    uVar3 = *(long *)(param_9 + 0x40) - *(long *)(param_9 + 0x38);\n    iVar1 = __vsnprintf_chk(*(long *)(param_9 + 0x38),uVar3,1,0xffffffffffffffff,param_10,&local_f8)\n    ;\n    if ((ulong)(long)iVar1 < uVar3) {\n      *(long *)(param_9 + 0x38) = *(long *)(param_9 + 0x38) + (long)iVar1;\n      lVar2 = (long)iVar1;\n      goto LAB_0010a842;\n    }\n    lVar2 = (long)(iVar1 + 1);\n  } while( true );\n}" ({ "{") (declaration "char in_AL;" (primitive_type "char") (identifier "in_AL") (; ";")) (declaration "int iVar1;" (primitive_type "int") (identifier "iVar1") (; ";")) (declaration "long lVar2;" (sized_type_specifier "long" (long "long")) (identifier "lVar2") (; ";")) (declaration "ulong uVar3;" (type_identifier "ulong") (identifier "uVar3") (; ";")) (declaration "long in_FS_OFFSET;" (sized_type_specifier "long" (long "long")) (identifier "in_FS_OFFSET") (; ";")) (declaration "undefined4 local_f8;" (type_identifier "undefined4") (identifier "local_f8") (; ";")) (declaration "undefined4 local_f4;" (type_identifier "undefined4") (identifier "local_f4") (; ";")) (declaration "undefined1 *local_f0;" (type_identifier "undefined1") (pointer_declarator "*local_f0" (* "*") (identifier "local_f0")) (; ";")) (declaration "undefined1 *local_e8;" (type_identifier "undefined1") (pointer_declarator "*local_e8" (* "*") (identifier "local_e8")) (; ";")) (declaration "long local_e0;" (sized_type_specifier "long" (long "long")) (identifier "local_e0") (; ";")) (declaration "undefined1 local_d8 [16];" (type_identifier "undefined1") (array_declarator "local_d8 [16]" (identifier "local_d8") ([ "[") (number_literal "16") (] "]")) (; ";")) (declaration "undefined8 local_c8;" (type_identifier "undefined8") (identifier "local_c8") (; ";")) (declaration "undefined8 local_c0;" (type_identifier "undefined8") (identifier "local_c0") (; ";")) (declaration "undefined8 local_b8;" (type_identifier "undefined8") (identifier "local_b8") (; ";")) (declaration "undefined8 local_b0;" (type_identifier "undefined8") (identifier "local_b0") (; ";")) (declaration "undefined8 local_a8;" (type_identifier "undefined8") (identifier "local_a8") (; ";")) (declaration "undefined8 local_98;" (type_identifier "undefined8") (identifier "local_98") (; ";")) (declaration "undefined8 local_88;" (type_identifier "undefined8") (identifier "local_88") (; ";")) (declaration "undefined8 local_78;" (type_identifier "undefined8") (identifier "local_78") (; ";")) (declaration "undefined8 local_68;" (type_identifier "undefined8") (identifier "local_68") (; ";")) (declaration "undefined8 local_58;" (type_identifier "undefined8") (identifier "local_58") (; ";")) (declaration "undefined8 local_48;" (type_identifier "undefined8") (identifier "local_48") (; ";")) (declaration "undefined8 local_38;" (type_identifier "undefined8") (identifier "local_38") (; ";")) (if_statement "if (in_AL != '\0') {\n    local_a8 = param_1;\n    local_98 = param_2;\n    local_88 = param_3;\n    local_78 = param_4;\n    local_68 = param_5;\n    local_58 = param_6;\n    local_48 = param_7;\n    local_38 = param_8;\n  }" (if "if") (parenthesized_expression "(in_AL != '\0')" (( "(") (binary_expression "in_AL != '\0'" (identifier "in_AL") (!= "!=") (char_literal "'\0'" (' "'") (escape_sequence "\0") (' "'"))) () ")")) (compound_statement "{\n    local_a8 = param_1;\n    local_98 = param_2;\n    local_88 = param_3;\n    local_78 = param_4;\n    local_68 = param_5;\n    local_58 = param_6;\n    local_48 = param_7;\n    local_38 = param_8;\n  }" ({ "{") (expression_statement "local_a8 = param_1;" (assignment_expression "local_a8 = param_1" (identifier "local_a8") (= "=") (identifier "param_1")) (; ";")) (expression_statement "local_98 = param_2;" (assignment_expression "local_98 = param_2" (identifier "local_98") (= "=") (identifier "param_2")) (; ";")) (expression_statement "local_88 = param_3;" (assignment_expression "local_88 = param_3" (identifier "local_88") (= "=") (identifier "param_3")) (; ";")) (expression_statement "local_78 = param_4;" (assignment_expression "local_78 = param_4" (identifier "local_78") (= "=") (identifier "param_4")) (; ";")) (expression_statement "local_68 = param_5;" (assignment_expression "local_68 = param_5" (identifier "local_68") (= "=") (identifier "param_5")) (; ";")) (expression_statement "local_58 = param_6;" (assignment_expression "local_58 = param_6" (identifier "local_58") (= "=") (identifier "param_6")) (; ";")) (expression_statement "local_48 = param_7;" (assignment_expression "local_48 = param_7" (identifier "local_48") (= "=") (identifier "param_7")) (; ";")) (expression_statement "local_38 = param_8;" (assignment_expression "local_38 = param_8" (identifier "local_38") (= "=") (identifier "param_8")) (; ";")) (} "}"))) (expression_statement "local_e0 = *(long *)(in_FS_OFFSET + 0x28);" (assignment_expression "local_e0 = *(long *)(in_FS_OFFSET + 0x28)" (identifier "local_e0") (= "=") (pointer_expression "*(long *)(in_FS_OFFSET + 0x28)" (* "*") (cast_expression "(long *)(in_FS_OFFSET + 0x28)" (( "(") (type_descriptor "long *" (sized_type_specifier "long" (long "long")) (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(in_FS_OFFSET + 0x28)" (( "(") (binary_expression "in_FS_OFFSET + 0x28" (identifier "in_FS_OFFSET") (+ "+") (number_literal "0x28")) () ")"))))) (; ";")) (expression_statement "lVar2 = 0x96;" (assignment_expression "lVar2 = 0x96" (identifier "lVar2") (= "=") (number_literal "0x96")) (; ";")) (expression_statement "local_c8 = param_11;" (assignment_expression "local_c8 = param_11" (identifier "local_c8") (= "=") (identifier "param_11")) (; ";")) (expression_statement "local_c0 = param_12;" (assignment_expression "local_c0 = param_12" (identifier "local_c0") (= "=") (identifier "param_12")) (; ";")) (expression_statement "local_b8 = param_13;" (assignment_expression "local_b8 = param_13" (identifier "local_b8") (= "=") (identifier "param_13")) (; ";")) (expression_statement "local_b0 = param_14;" (assignment_expression "local_b0 = param_14" (identifier "local_b0") (= "=") (identifier "param_14")) (; ";")) (do_statement "do {\n    iVar1 = FUN_0010a691(param_9,lVar2);\n    if (iVar1 == 0) {\n      lVar2 = -1;\nLAB_0010a842:\n      if (local_e0 == *(long *)(in_FS_OFFSET + 0x28)) {\n        return lVar2;\n      }\n                    \n      __stack_chk_fail();\n    }\n    local_f8 = 0x10;\n    local_f4 = 0x30;\n    local_f0 = &stack0x00000008;\n    local_e8 = local_d8;\n    uVar3 = *(long *)(param_9 + 0x40) - *(long *)(param_9 + 0x38);\n    iVar1 = __vsnprintf_chk(*(long *)(param_9 + 0x38),uVar3,1,0xffffffffffffffff,param_10,&local_f8)\n    ;\n    if ((ulong)(long)iVar1 < uVar3) {\n      *(long *)(param_9 + 0x38) = *(long *)(param_9 + 0x38) + (long)iVar1;\n      lVar2 = (long)iVar1;\n      goto LAB_0010a842;\n    }\n    lVar2 = (long)(iVar1 + 1);\n  } while( true );" (do "do") (compound_statement "{\n    iVar1 = FUN_0010a691(param_9,lVar2);\n    if (iVar1 == 0) {\n      lVar2 = -1;\nLAB_0010a842:\n      if (local_e0 == *(long *)(in_FS_OFFSET + 0x28)) {\n        return lVar2;\n      }\n                    \n      __stack_chk_fail();\n    }\n    local_f8 = 0x10;\n    local_f4 = 0x30;\n    local_f0 = &stack0x00000008;\n    local_e8 = local_d8;\n    uVar3 = *(long *)(param_9 + 0x40) - *(long *)(param_9 + 0x38);\n    iVar1 = __vsnprintf_chk(*(long *)(param_9 + 0x38),uVar3,1,0xffffffffffffffff,param_10,&local_f8)\n    ;\n    if ((ulong)(long)iVar1 < uVar3) {\n      *(long *)(param_9 + 0x38) = *(long *)(param_9 + 0x38) + (long)iVar1;\n      lVar2 = (long)iVar1;\n      goto LAB_0010a842;\n    }\n    lVar2 = (long)(iVar1 + 1);\n  }" ({ "{") (expression_statement "iVar1 = FUN_0010a691(param_9,lVar2);" (assignment_expression "iVar1 = FUN_0010a691(param_9,lVar2)" (identifier "iVar1") (= "=") (call_expression "FUN_0010a691(param_9,lVar2)" (identifier "FUN_0010a691") (argument_list "(param_9,lVar2)" (( "(") (identifier "param_9") (, ",") (identifier "lVar2") () ")")))) (; ";")) (if_statement "if (iVar1 == 0) {\n      lVar2 = -1;\nLAB_0010a842:\n      if (local_e0 == *(long *)(in_FS_OFFSET + 0x28)) {\n        return lVar2;\n      }\n                    \n      __stack_chk_fail();\n    }" (if "if") (parenthesized_expression "(iVar1 == 0)" (( "(") (binary_expression "iVar1 == 0" (identifier "iVar1") (== "==") (number_literal "0")) () ")")) (compound_statement "{\n      lVar2 = -1;\nLAB_0010a842:\n      if (local_e0 == *(long *)(in_FS_OFFSET + 0x28)) {\n        return lVar2;\n      }\n                    \n      __stack_chk_fail();\n    }" ({ "{") (expression_statement "lVar2 = -1;" (assignment_expression "lVar2 = -1" (identifier "lVar2") (= "=") (number_literal "-1")) (; ";")) (labeled_statement "LAB_0010a842:\n      if (local_e0 == *(long *)(in_FS_OFFSET + 0x28)) {\n        return lVar2;\n      }" (statement_identifier "LAB_0010a842") (: ":") (if_statement "if (local_e0 == *(long *)(in_FS_OFFSET + 0x28)) {\n        return lVar2;\n      }" (if "if") (parenthesized_expression "(local_e0 == *(long *)(in_FS_OFFSET + 0x28))" (( "(") (binary_expression "local_e0 == *(long *)(in_FS_OFFSET + 0x28)" (identifier "local_e0") (== "==") (pointer_expression "*(long *)(in_FS_OFFSET + 0x28)" (* "*") (cast_expression "(long *)(in_FS_OFFSET + 0x28)" (( "(") (type_descriptor "long *" (sized_type_specifier "long" (long "long")) (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(in_FS_OFFSET + 0x28)" (( "(") (binary_expression "in_FS_OFFSET + 0x28" (identifier "in_FS_OFFSET") (+ "+") (number_literal "0x28")) () ")"))))) () ")")) (compound_statement "{\n        return lVar2;\n      }" ({ "{") (return_statement "return lVar2;" (return "return") (identifier "lVar2") (; ";")) (} "}")))) (expression_statement "__stack_chk_fail();" (call_expression "__stack_chk_fail()" (identifier "__stack_chk_fail") (argument_list "()" (( "(") () ")"))) (; ";")) (} "}"))) (expression_statement "local_f8 = 0x10;" (assignment_expression "local_f8 = 0x10" (identifier "local_f8") (= "=") (number_literal "0x10")) (; ";")) (expression_statement "local_f4 = 0x30;" (assignment_expression "local_f4 = 0x30" (identifier "local_f4") (= "=") (number_literal "0x30")) (; ";")) (expression_statement "local_f0 = &stack0x00000008;" (assignment_expression "local_f0 = &stack0x00000008" (identifier "local_f0") (= "=") (pointer_expression "&stack0x00000008" (& "&") (identifier "stack0x00000008"))) (; ";")) (expression_statement "local_e8 = local_d8;" (assignment_expression "local_e8 = local_d8" (identifier "local_e8") (= "=") (identifier "local_d8")) (; ";")) (expression_statement "uVar3 = *(long *)(param_9 + 0x40) - *(long *)(param_9 + 0x38);" (assignment_expression "uVar3 = *(long *)(param_9 + 0x40) - *(long *)(param_9 + 0x38)" (identifier "uVar3") (= "=") (binary_expression "*(long *)(param_9 + 0x40) - *(long *)(param_9 + 0x38)" (pointer_expression "*(long *)(param_9 + 0x40)" (* "*") (cast_expression "(long *)(param_9 + 0x40)" (( "(") (type_descriptor "long *" (sized_type_specifier "long" (long "long")) (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_9 + 0x40)" (( "(") (binary_expression "param_9 + 0x40" (identifier "param_9") (+ "+") (number_literal "0x40")) () ")")))) (- "-") (pointer_expression "*(long *)(param_9 + 0x38)" (* "*") (cast_expression "(long *)(param_9 + 0x38)" (( "(") (type_descriptor "long *" (sized_type_specifier "long" (long "long")) (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_9 + 0x38)" (( "(") (binary_expression "param_9 + 0x38" (identifier "param_9") (+ "+") (number_literal "0x38")) () ")")))))) (; ";")) (expression_statement "iVar1 = __vsnprintf_chk(*(long *)(param_9 + 0x38),uVar3,1,0xffffffffffffffff,param_10,&local_f8)\n    ;" (assignment_expression "iVar1 = __vsnprintf_chk(*(long *)(param_9 + 0x38),uVar3,1,0xffffffffffffffff,param_10,&local_f8)" (identifier "iVar1") (= "=") (call_expression "__vsnprintf_chk(*(long *)(param_9 + 0x38),uVar3,1,0xffffffffffffffff,param_10,&local_f8)" (identifier "__vsnprintf_chk") (argument_list "(*(long *)(param_9 + 0x38),uVar3,1,0xffffffffffffffff,param_10,&local_f8)" (( "(") (pointer_expression "*(long *)(param_9 + 0x38)" (* "*") (cast_expression "(long *)(param_9 + 0x38)" (( "(") (type_descriptor "long *" (sized_type_specifier "long" (long "long")) (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_9 + 0x38)" (( "(") (binary_expression "param_9 + 0x38" (identifier "param_9") (+ "+") (number_literal "0x38")) () ")")))) (, ",") (identifier "uVar3") (, ",") (number_literal "1") (, ",") (number_literal "0xffffffffffffffff") (, ",") (identifier "param_10") (, ",") (pointer_expression "&local_f8" (& "&") (identifier "local_f8")) () ")")))) (; ";")) (if_statement "if ((ulong)(long)iVar1 < uVar3) {\n      *(long *)(param_9 + 0x38) = *(long *)(param_9 + 0x38) + (long)iVar1;\n      lVar2 = (long)iVar1;\n      goto LAB_0010a842;\n    }" (if "if") (parenthesized_expression "((ulong)(long)iVar1 < uVar3)" (( "(") (binary_expression "(ulong)(long)iVar1 < uVar3" (cast_expression "(ulong)(long)iVar1" (( "(") (type_descriptor "ulong" (type_identifier "ulong")) () ")") (cast_expression "(long)iVar1" (( "(") (type_descriptor "long" (sized_type_specifier "long" (long "long"))) () ")") (identifier "iVar1"))) (< "<") (identifier "uVar3")) () ")")) (compound_statement "{\n      *(long *)(param_9 + 0x38) = *(long *)(param_9 + 0x38) + (long)iVar1;\n      lVar2 = (long)iVar1;\n      goto LAB_0010a842;\n    }" ({ "{") (expression_statement "*(long *)(param_9 + 0x38) = *(long *)(param_9 + 0x38) + (long)iVar1;" (assignment_expression "*(long *)(param_9 + 0x38) = *(long *)(param_9 + 0x38) + (long)iVar1" (pointer_expression "*(long *)(param_9 + 0x38)" (* "*") (cast_expression "(long *)(param_9 + 0x38)" (( "(") (type_descriptor "long *" (sized_type_specifier "long" (long "long")) (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_9 + 0x38)" (( "(") (binary_expression "param_9 + 0x38" (identifier "param_9") (+ "+") (number_literal "0x38")) () ")")))) (= "=") (binary_expression "*(long *)(param_9 + 0x38) + (long)iVar1" (pointer_expression "*(long *)(param_9 + 0x38)" (* "*") (cast_expression "(long *)(param_9 + 0x38)" (( "(") (type_descriptor "long *" (sized_type_specifier "long" (long "long")) (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_9 + 0x38)" (( "(") (binary_expression "param_9 + 0x38" (identifier "param_9") (+ "+") (number_literal "0x38")) () ")")))) (+ "+") (cast_expression "(long)iVar1" (( "(") (type_descriptor "long" (sized_type_specifier "long" (long "long"))) () ")") (identifier "iVar1")))) (; ";")) (expression_statement "lVar2 = (long)iVar1;" (assignment_expression "lVar2 = (long)iVar1" (identifier "lVar2") (= "=") (cast_expression "(long)iVar1" (( "(") (type_descriptor "long" (sized_type_specifier "long" (long "long"))) () ")") (identifier "iVar1"))) (; ";")) (goto_statement "goto LAB_0010a842;" (goto "goto") (statement_identifier "LAB_0010a842") (; ";")) (} "}"))) (expression_statement "lVar2 = (long)(iVar1 + 1);" (assignment_expression "lVar2 = (long)(iVar1 + 1)" (identifier "lVar2") (= "=") (cast_expression "(long)(iVar1 + 1)" (( "(") (type_descriptor "long" (sized_type_specifier "long" (long "long"))) () ")") (parenthesized_expression "(iVar1 + 1)" (( "(") (binary_expression "iVar1 + 1" (identifier "iVar1") (+ "+") (number_literal "1")) () ")")))) (; ";")) (} "}")) (while "while") (parenthesized_expression "( true )" (( "(") (true "true") () ")")) (; ";")) (} "}")))

ssize_t function_1(type_1 *fs,char *fmt,...)

{
  long var_5;
  char var_1;
  int var_4;
  ssize_t sVar3;
  type_2 in_RCX;
  type_2 in_RDX;
  size_t amount;
  type_2 in_R8;
  type_2 in_R9;
  type_3 var_8;
  long var_2;
  type_2 in_XMM0_Qa;
  type_2 in_XMM1_Qa;
  type_2 in_XMM2_Qa;
  type_2 in_XMM3_Qa;
  type_2 in_XMM4_Qa;
  type_2 in_XMM5_Qa;
  type_2 in_XMM6_Qa;
  type_2 in_XMM7_Qa;
  type_4 args;
  type_5 local_d8 [16];
  type_2 local_c8;
  type_2 local_c0;
  type_2 local_b8;
  type_2 local_b0;
  type_2 local_a8;
  type_2 local_98;
  type_2 local_88;
  type_2 local_78;
  type_2 local_68;
  type_2 local_58;
  type_2 local_48;
  type_2 local_38;
  
  if (var_1 != '\0') {
    local_a8 = in_XMM0_Qa;
    local_98 = in_XMM1_Qa;
    local_88 = in_XMM2_Qa;
    local_78 = in_XMM3_Qa;
    local_68 = in_XMM4_Qa;
    local_58 = in_XMM5_Qa;
    local_48 = in_XMM6_Qa;
    local_38 = in_XMM7_Qa;
  }
  var_5 = *(long *)(var_2 + 0x28);
  amount = 0x96;
  local_c8 = in_RDX;
  local_c0 = in_RCX;
  local_b8 = in_R8;
  local_b0 = in_R9;
  do {
    var_4 = var_3(fs,amount);
    if (var_4 == 0) {
      sVar3 = -1;
LAB_0010a842:
      if (var_5 == *(long *)(var_2 + 0x28)) {
        return sVar3;
      }
                    /* WARNING: Subroutine does not return */
      var_6();
    }
    args[0].gp_offset = 0x10;
    args[0].fp_offset = 0x30;
    args[0].overflow_arg_area = &stack0x00000008;
    args[0].reg_save_area = local_d8;
    var_8 = (long)fs->end - (long)fs->p;
    var_4 = var_7(fs->p,var_8,1,0xffffffffffffffff,fmt,args);
    if ((type_3)(long)var_4 < var_8) {
      fs->p = fs->p + var_4;
      sVar3 = (ssize_t)var_4;
      goto LAB_0010a842;
    }
    amount = (size_t)(var_4 + 1);
  } while( true );
}


(translation_unit (function_definition type: (sized_type_specifier) 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: (identifier)) (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: (identifier)) (parameter_declaration type: (sized_type_specifier) declarator: (identifier)) (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: (identifier)) (parameter_declaration type: (type_identifier) declarator: (identifier)))) body: (compound_statement (declaration type: (primitive_type) declarator: (identifier)) (declaration type: (primitive_type) declarator: (identifier)) (declaration type: (sized_type_specifier) declarator: (identifier)) (declaration type: (type_identifier) declarator: (identifier)) (declaration type: (sized_type_specifier) declarator: (identifier)) (declaration type: (type_identifier) declarator: (identifier)) (declaration type: (type_identifier) declarator: (identifier)) (declaration type: (type_identifier) declarator: (pointer_declarator declarator: (identifier))) (declaration type: (type_identifier) declarator: (pointer_declarator declarator: (identifier))) (declaration type: (sized_type_specifier) declarator: (identifier)) (declaration type: (type_identifier) declarator: (array_declarator declarator: (identifier) size: (number_literal))) (declaration type: (type_identifier) declarator: (identifier)) (declaration type: (type_identifier) declarator: (identifier)) (declaration type: (type_identifier) declarator: (identifier)) (declaration type: (type_identifier) declarator: (identifier)) (declaration type: (type_identifier) declarator: (identifier)) (declaration type: (type_identifier) declarator: (identifier)) (declaration type: (type_identifier) declarator: (identifier)) (declaration type: (type_identifier) declarator: (identifier)) (declaration type: (type_identifier) declarator: (identifier)) (declaration type: (type_identifier) declarator: (identifier)) (declaration type: (type_identifier) declarator: (identifier)) (declaration type: (type_identifier) declarator: (identifier)) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (char_literal (escape_sequence)))) consequence: (compound_statement (expression_statement (assignment_expression left: (identifier) right: (identifier))) (expression_statement (assignment_expression left: (identifier) right: (identifier))) (expression_statement (assignment_expression left: (identifier) right: (identifier))) (expression_statement (assignment_expression left: (identifier) right: (identifier))) (expression_statement (assignment_expression left: (identifier) right: (identifier))) (expression_statement (assignment_expression left: (identifier) right: (identifier))) (expression_statement (assignment_expression left: (identifier) right: (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: (sized_type_specifier) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))))))) (expression_statement (assignment_expression left: (identifier) right: (number_literal))) (expression_statement (assignment_expression left: (identifier) right: (identifier))) (expression_statement (assignment_expression left: (identifier) right: (identifier))) (expression_statement (assignment_expression left: (identifier) right: (identifier))) (expression_statement (assignment_expression left: (identifier) right: (identifier))) (do_statement body: (compound_statement (expression_statement (assignment_expression left: (identifier) right: (call_expression function: (identifier) arguments: (argument_list (identifier) (identifier))))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))) consequence: (compound_statement (expression_statement (assignment_expression left: (identifier) right: (number_literal))) (labeled_statement label: (statement_identifier) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (pointer_expression argument: (cast_expression type: (type_descriptor type: (sized_type_specifier) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))))))) consequence: (compound_statement (return_statement (identifier))))) (expression_statement (call_expression function: (identifier) arguments: (argument_list))))) (expression_statement (assignment_expression left: (identifier) right: (number_literal))) (expression_statement (assignment_expression left: (identifier) right: (number_literal))) (expression_statement (assignment_expression left: (identifier) right: (pointer_expression argument: (identifier)))) (expression_statement (assignment_expression left: (identifier) right: (identifier))) (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (pointer_expression argument: (cast_expression type: (type_descriptor type: (sized_type_specifier) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))))) right: (pointer_expression argument: (cast_expression type: (type_descriptor type: (sized_type_specifier) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal)))))))) (expression_statement (assignment_expression left: (identifier) right: (call_expression function: (identifier) arguments: (argument_list (pointer_expression argument: (cast_expression type: (type_descriptor type: (sized_type_specifier) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))))) (identifier) (number_literal) (number_literal) (identifier) (pointer_expression argument: (identifier)))))) (if_statement condition: (parenthesized_expression (binary_expression left: (cast_expression type: (type_descriptor type: (type_identifier)) value: (cast_expression type: (type_descriptor type: (sized_type_specifier)) value: (identifier))) right: (identifier))) consequence: (compound_statement (expression_statement (assignment_expression left: (pointer_expression argument: (cast_expression type: (type_descriptor type: (sized_type_specifier) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))))) right: (binary_expression left: (pointer_expression argument: (cast_expression type: (type_descriptor type: (sized_type_specifier) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))))) right: (cast_expression type: (type_descriptor type: (sized_type_specifier)) value: (identifier))))) (expression_statement (assignment_expression left: (identifier) right: (cast_expression type: (type_descriptor type: (sized_type_specifier)) value: (identifier)))) (goto_statement label: (statement_identifier)))) (expression_statement (assignment_expression left: (identifier) right: (cast_expression type: (type_descriptor type: (sized_type_specifier)) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))))))) condition: (parenthesized_expression (true))))))

long MASKED(undefined8 param_1,undefined8 param_2,undefined8 param_3,undefined8 param_4,
                 undefined8 param_5,undefined8 param_6,undefined8 param_7,undefined8 param_8,
                 long param_9,undefined8 param_10,undefined8 param_11,undefined8 param_12,
                 undefined8 param_13,undefined8 param_14)

{
  char in_AL;
  int iVar1;
  long lVar2;
  ulong uVar3;
  long in_FS_OFFSET;
  undefined4 local_f8;
  undefined4 local_f4;
  undefined1 *local_f0;
  undefined1 *local_e8;
  long local_e0;
  undefined1 local_d8 [16];
  undefined8 local_c8;
  undefined8 local_c0;
  undefined8 local_b8;
  undefined8 local_b0;
  undefined8 local_a8;
  undefined8 local_98;
  undefined8 local_88;
  undefined8 local_78;
  undefined8 local_68;
  undefined8 local_58;
  undefined8 local_48;
  undefined8 local_38;
  
  if (in_AL != '\0') {
    local_a8 = param_1;
    local_98 = param_2;
    local_88 = param_3;
    local_78 = param_4;
    local_68 = param_5;
    local_58 = param_6;
    local_48 = param_7;
    local_38 = param_8;
  }
  local_e0 = *(long *)(in_FS_OFFSET + 0x28);
  lVar2 = 0x96;
  local_c8 = param_11;
  local_c0 = param_12;
  local_b8 = param_13;
  local_b0 = param_14;
  do {
    iVar1 = FUN_0010a691(param_9,lVar2);
    if (iVar1 == 0) {
      lVar2 = -1;
LAB_0010a842:
      if (local_e0 == *(long *)(in_FS_OFFSET + 0x28)) {
        return lVar2;
      }
                    /* WARNING: Subroutine does not return */
      __stack_chk_fail();
    }
    local_f8 = 0x10;
    local_f4 = 0x30;
    local_f0 = &stack0x00000008;
    local_e8 = local_d8;
    uVar3 = *(long *)(param_9 + 0x40) - *(long *)(param_9 + 0x38);
    iVar1 = __vsnprintf_chk(*(long *)(param_9 + 0x38),uVar3,1,0xffffffffffffffff,param_10,&local_f8)
    ;
    if ((ulong)(long)iVar1 < uVar3) {
      *(long *)(param_9 + 0x38) = *(long *)(param_9 + 0x38) + (long)iVar1;
      lVar2 = (long)iVar1;
      goto LAB_0010a842;
    }
    lVar2 = (long)(iVar1 + 1);
  } while( true );
}

