
Ssh_gss_stat ssh_gssapi_display_status(ssh_gss_library *lib,Ssh_gss_ctx ctx,Ssh_gss_buf *buf)

{
  long lVar1;
  gss_OID pgVar2;
  OM_uint32 OVar3;
  void *__dest;
  Ssh_gss_stat SVar4;
  long in_FS_OFFSET;
  OM_uint32 lmin;
  OM_uint32 ccc;
  gss_buffer_desc msg_maj;
  gss_buffer_desc msg_min;
  
  lVar1 = *(long *)(in_FS_OFFSET + 0x28);
  msg_maj.length = 0;
  msg_maj.value = (void *)0x0;
  msg_min.length = 0;
  msg_min.value = (void *)0x0;
  buf->length = 0;
  buf->value = (void *)0x0;
  pgVar2 = GSS_MECH_KRB5;
  ccc = 0;
                    /* WARNING: Load size is inaccurate */
  OVar3 = (*(lib->u).gssapi.display_status)(&lmin,*ctx,1,GSS_MECH_KRB5,&ccc,&msg_maj);
  SVar4 = SSH_GSS_FAILURE;
  if (OVar3 == 0) {
    ccc = 0;
    OVar3 = (*(lib->u).gssapi.display_status)
                      (&lmin,*(OM_uint32 *)((long)ctx + 4),2,pgVar2,&ccc,&msg_min);
    if (OVar3 == 0) {
      buf->length = msg_min.length + msg_maj.length + 1;
      __dest = safemalloc(msg_min.length + msg_maj.length + 2,1);
      buf->value = __dest;
      memcpy(__dest,msg_maj.value,msg_maj.length);
      *(undefined1 *)((long)buf->value + msg_maj.length) = 0x20;
      memcpy((void *)((long)buf->value + msg_maj.length + 1),msg_min.value,msg_min.length);
      *(undefined1 *)((long)buf->value + buf->length) = 0;
      (*(lib->u).gssapi.release_buffer)(&lmin,&msg_maj);
      (*(lib->u).gssapi.release_buffer)(&lmin,&msg_min);
      SVar4 = SSH_GSS_OK;
    }
    else {
      (*(lib->u).gssapi.release_buffer)(&lmin,&msg_maj);
      SVar4 = SSH_GSS_FAILURE;
    }
  }
  if (lVar1 == *(long *)(in_FS_OFFSET + 0x28)) {
    return SVar4;
  }
                    /* WARNING: Subroutine does not return */
  __stack_chk_fail();
}



undefined4 FUN_0013d99c(long param_1,undefined4 *param_2,long *param_3)

{
  undefined *puVar1;
  int iVar2;
  void *__dest;
  undefined4 uVar3;
  long in_FS_OFFSET;
  undefined1 local_60 [4];
  undefined4 local_5c;
  size_t local_58;
  void *local_50;
  size_t local_48;
  void *local_40;
  long local_30;
  
  local_30 = *(long *)(in_FS_OFFSET + 0x28);
  local_58 = 0;
  local_50 = (void *)0x0;
  local_48 = 0;
  local_40 = (void *)0x0;
  *param_3 = 0;
  param_3[1] = 0;
  puVar1 = PTR_DAT_0017f180;
  local_5c = 0;
  iVar2 = (**(code **)(param_1 + 0x68))(local_60,*param_2,1,PTR_DAT_0017f180,&local_5c,&local_58);
  uVar3 = 4;
  if (iVar2 == 0) {
    local_5c = 0;
    iVar2 = (**(code **)(param_1 + 0x68))(local_60,param_2[1],2,puVar1,&local_5c,&local_48);
    if (iVar2 == 0) {
      *param_3 = local_48 + local_58 + 1;
      __dest = (void *)FUN_0010ea3d(local_48 + local_58 + 2,1);
      param_3[1] = (long)__dest;
      memcpy(__dest,local_50,local_58);
      *(undefined1 *)(param_3[1] + local_58) = 0x20;
      memcpy((void *)(param_3[1] + 1 + local_58),local_40,local_48);
      *(undefined1 *)(param_3[1] + *param_3) = 0;
      (**(code **)(param_1 + 0x88))(local_60,&local_58);
      (**(code **)(param_1 + 0x88))(local_60,&local_48);
      uVar3 = 0;
    }
    else {
      (**(code **)(param_1 + 0x88))(local_60,&local_58);
      uVar3 = 4;
    }
  }
  if (local_30 == *(long *)(in_FS_OFFSET + 0x28)) {
    return uVar3;
  }
                    /* WARNING: Subroutine does not return */
  __stack_chk_fail();
}


PUSH R14
PUSH R13
PUSH R12
PUSH RBP
PUSH RBX
SUB RSP,0x40
MOV RBP,RDI
MOV R14,RSI
MOV RBX,RDX
MOV RAX,qword ptr FS:[0x28]
MOV qword ptr [RSP + 0x38],RAX
XOR EAX,EAX
MOV qword ptr [RSP + 0x10],0x0
MOV qword ptr [RSP + 0x18],0x0
MOV qword ptr [RSP + 0x20],0x0
MOV qword ptr [RSP + 0x28],0x0
MOV qword ptr [RDX],0x0
MOV qword ptr [RDX + 0x8],0x0
MOV dword ptr [RSP + 0xc],0x0
MOV R13,qword ptr [0x0017f180]
LEA RDI,[RSP + 0x8]
LEA R9,[RSP + 0x10]
LEA R8,[RSP + 0xc]
MOV RCX,R13
MOV EDX,0x1
MOV ESI,dword ptr [RSI]
CALL qword ptr [RBP + 0x68]
MOV R12D,0x4
TEST EAX,EAX
JNZ 0x0013dae9
MOV dword ptr [RSP + 0xc],0x0
MOV ESI,dword ptr [R14 + 0x4]
LEA RDI,[RSP + 0x8]
LEA R9,[RSP + 0x20]
LEA R8,[RSP + 0xc]
MOV RCX,R13
MOV EDX,0x2
CALL qword ptr [RBP + 0x68]
MOV R12D,EAX
TEST EAX,EAX
JNZ 0x0013db09
MOV RDI,qword ptr [RSP + 0x20]
ADD RDI,qword ptr [RSP + 0x10]
LEA RAX,[RDI + 0x1]
MOV qword ptr [RBX],RAX
ADD RDI,0x2
MOV ESI,0x1
CALL 0x0010ea3d
MOV qword ptr [RBX + 0x8],RAX
MOV RDX,qword ptr [RSP + 0x10]
MOV RSI,qword ptr [RSP + 0x18]
MOV RDI,RAX
CALL 0x001084f0
MOV RDX,qword ptr [RBX + 0x8]
MOV RAX,qword ptr [RSP + 0x10]
MOV byte ptr [RDX + RAX*0x1],0x20
MOV RDX,qword ptr [RBX + 0x8]
MOV RAX,qword ptr [RSP + 0x10]
LEA RDI,[RDX + RAX*0x1 + 0x1]
MOV RDX,qword ptr [RSP + 0x20]
MOV RSI,qword ptr [RSP + 0x28]
CALL 0x001084f0
MOV RDX,qword ptr [RBX + 0x8]
MOV RAX,qword ptr [RBX]
MOV byte ptr [RDX + RAX*0x1],0x0
LEA RSI,[RSP + 0x10]
LEA RBX,[RSP + 0x8]
MOV RDI,RBX
CALL qword ptr [RBP + 0x88]
LEA RSI,[RSP + 0x20]
MOV RDI,RBX
CALL qword ptr [RBP + 0x88]
MOV EAX,R12D
MOV RCX,qword ptr [RSP + 0x38]
XOR RCX,qword ptr FS:[0x28]
JNZ 0x0013db21
ADD RSP,0x40
POP RBX
POP RBP
POP R12
POP R13
POP R14
RET
LEA RSI,[RSP + 0x10]
LEA RDI,[RSP + 0x8]
CALL qword ptr [RBP + 0x88]
MOV R12D,0x4
JMP 0x0013dae9
CALL 0x00108280
(translation_unit "undefined4 FUN_0013d99c(long param_1,undefined4 *param_2,long *param_3)\n\n{\n  undefined *puVar1;\n  int iVar2;\n  void *__dest;\n  undefined4 uVar3;\n  long in_FS_OFFSET;\n  undefined1 local_60 [4];\n  undefined4 local_5c;\n  size_t local_58;\n  void *local_50;\n  size_t local_48;\n  void *local_40;\n  long local_30;\n  \n  local_30 = *(long *)(in_FS_OFFSET + 0x28);\n  local_58 = 0;\n  local_50 = (void *)0x0;\n  local_48 = 0;\n  local_40 = (void *)0x0;\n  *param_3 = 0;\n  param_3[1] = 0;\n  puVar1 = PTR_DAT_0017f180;\n  local_5c = 0;\n  iVar2 = (**(code **)(param_1 + 0x68))(local_60,*param_2,1,PTR_DAT_0017f180,&local_5c,&local_58);\n  uVar3 = 4;\n  if (iVar2 == 0) {\n    local_5c = 0;\n    iVar2 = (**(code **)(param_1 + 0x68))(local_60,param_2[1],2,puVar1,&local_5c,&local_48);\n    if (iVar2 == 0) {\n      *param_3 = local_48 + local_58 + 1;\n      __dest = (void *)FUN_0010ea3d(local_48 + local_58 + 2,1);\n      param_3[1] = (long)__dest;\n      memcpy(__dest,local_50,local_58);\n      *(undefined1 *)(param_3[1] + local_58) = 0x20;\n      memcpy((void *)(param_3[1] + 1 + local_58),local_40,local_48);\n      *(undefined1 *)(param_3[1] + *param_3) = 0;\n      (**(code **)(param_1 + 0x88))(local_60,&local_58);\n      (**(code **)(param_1 + 0x88))(local_60,&local_48);\n      uVar3 = 0;\n    }\n    else {\n      (**(code **)(param_1 + 0x88))(local_60,&local_58);\n      uVar3 = 4;\n    }\n  }\n  if (local_30 == *(long *)(in_FS_OFFSET + 0x28)) {\n    return uVar3;\n  }\n                    /* WARNING: Subroutine does not return */\n  __stack_chk_fail();\n}\n\n" (function_definition "undefined4 FUN_0013d99c(long param_1,undefined4 *param_2,long *param_3)\n\n{\n  undefined *puVar1;\n  int iVar2;\n  void *__dest;\n  undefined4 uVar3;\n  long in_FS_OFFSET;\n  undefined1 local_60 [4];\n  undefined4 local_5c;\n  size_t local_58;\n  void *local_50;\n  size_t local_48;\n  void *local_40;\n  long local_30;\n  \n  local_30 = *(long *)(in_FS_OFFSET + 0x28);\n  local_58 = 0;\n  local_50 = (void *)0x0;\n  local_48 = 0;\n  local_40 = (void *)0x0;\n  *param_3 = 0;\n  param_3[1] = 0;\n  puVar1 = PTR_DAT_0017f180;\n  local_5c = 0;\n  iVar2 = (**(code **)(param_1 + 0x68))(local_60,*param_2,1,PTR_DAT_0017f180,&local_5c,&local_58);\n  uVar3 = 4;\n  if (iVar2 == 0) {\n    local_5c = 0;\n    iVar2 = (**(code **)(param_1 + 0x68))(local_60,param_2[1],2,puVar1,&local_5c,&local_48);\n    if (iVar2 == 0) {\n      *param_3 = local_48 + local_58 + 1;\n      __dest = (void *)FUN_0010ea3d(local_48 + local_58 + 2,1);\n      param_3[1] = (long)__dest;\n      memcpy(__dest,local_50,local_58);\n      *(undefined1 *)(param_3[1] + local_58) = 0x20;\n      memcpy((void *)(param_3[1] + 1 + local_58),local_40,local_48);\n      *(undefined1 *)(param_3[1] + *param_3) = 0;\n      (**(code **)(param_1 + 0x88))(local_60,&local_58);\n      (**(code **)(param_1 + 0x88))(local_60,&local_48);\n      uVar3 = 0;\n    }\n    else {\n      (**(code **)(param_1 + 0x88))(local_60,&local_58);\n      uVar3 = 4;\n    }\n  }\n  if (local_30 == *(long *)(in_FS_OFFSET + 0x28)) {\n    return uVar3;\n  }\n                    /* WARNING: Subroutine does not return */\n  __stack_chk_fail();\n}" type_identifier (function_declarator "FUN_0013d99c(long param_1,undefined4 *param_2,long *param_3)" identifier (parameter_list "(long param_1,undefined4 *param_2,long *param_3)" ( (parameter_declaration "long param_1" (sized_type_specifier "long" long) identifier) , (parameter_declaration "undefined4 *param_2" type_identifier (pointer_declarator "*param_2" * identifier)) , (parameter_declaration "long *param_3" (sized_type_specifier "long" long) (pointer_declarator "*param_3" * identifier)) ))) (compound_statement "{\n  undefined *puVar1;\n  int iVar2;\n  void *__dest;\n  undefined4 uVar3;\n  long in_FS_OFFSET;\n  undefined1 local_60 [4];\n  undefined4 local_5c;\n  size_t local_58;\n  void *local_50;\n  size_t local_48;\n  void *local_40;\n  long local_30;\n  \n  local_30 = *(long *)(in_FS_OFFSET + 0x28);\n  local_58 = 0;\n  local_50 = (void *)0x0;\n  local_48 = 0;\n  local_40 = (void *)0x0;\n  *param_3 = 0;\n  param_3[1] = 0;\n  puVar1 = PTR_DAT_0017f180;\n  local_5c = 0;\n  iVar2 = (**(code **)(param_1 + 0x68))(local_60,*param_2,1,PTR_DAT_0017f180,&local_5c,&local_58);\n  uVar3 = 4;\n  if (iVar2 == 0) {\n    local_5c = 0;\n    iVar2 = (**(code **)(param_1 + 0x68))(local_60,param_2[1],2,puVar1,&local_5c,&local_48);\n    if (iVar2 == 0) {\n      *param_3 = local_48 + local_58 + 1;\n      __dest = (void *)FUN_0010ea3d(local_48 + local_58 + 2,1);\n      param_3[1] = (long)__dest;\n      memcpy(__dest,local_50,local_58);\n      *(undefined1 *)(param_3[1] + local_58) = 0x20;\n      memcpy((void *)(param_3[1] + 1 + local_58),local_40,local_48);\n      *(undefined1 *)(param_3[1] + *param_3) = 0;\n      (**(code **)(param_1 + 0x88))(local_60,&local_58);\n      (**(code **)(param_1 + 0x88))(local_60,&local_48);\n      uVar3 = 0;\n    }\n    else {\n      (**(code **)(param_1 + 0x88))(local_60,&local_58);\n      uVar3 = 4;\n    }\n  }\n  if (local_30 == *(long *)(in_FS_OFFSET + 0x28)) {\n    return uVar3;\n  }\n                    /* WARNING: Subroutine does not return */\n  __stack_chk_fail();\n}" { (declaration "undefined *puVar1;" type_identifier (pointer_declarator "*puVar1" * identifier) ;) (declaration "int iVar2;" primitive_type identifier ;) (declaration "void *__dest;" primitive_type (pointer_declarator "*__dest" * identifier) ;) (declaration "undefined4 uVar3;" type_identifier identifier ;) (declaration "long in_FS_OFFSET;" (sized_type_specifier "long" long) identifier ;) (declaration "undefined1 local_60 [4];" type_identifier (array_declarator "local_60 [4]" identifier [ number_literal ]) ;) (declaration "undefined4 local_5c;" type_identifier identifier ;) (declaration "size_t local_58;" primitive_type identifier ;) (declaration "void *local_50;" primitive_type (pointer_declarator "*local_50" * identifier) ;) (declaration "size_t local_48;" primitive_type identifier ;) (declaration "void *local_40;" primitive_type (pointer_declarator "*local_40" * identifier) ;) (declaration "long local_30;" (sized_type_specifier "long" long) identifier ;) (expression_statement "local_30 = *(long *)(in_FS_OFFSET + 0x28);" (assignment_expression "local_30 = *(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 "local_58 = 0;" (assignment_expression "local_58 = 0" identifier = number_literal) ;) (expression_statement "local_50 = (void *)0x0;" (assignment_expression "local_50 = (void *)0x0" identifier = (cast_expression "(void *)0x0" ( (type_descriptor "void *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) ;) (expression_statement "local_48 = 0;" (assignment_expression "local_48 = 0" identifier = number_literal) ;) (expression_statement "local_40 = (void *)0x0;" (assignment_expression "local_40 = (void *)0x0" identifier = (cast_expression "(void *)0x0" ( (type_descriptor "void *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) ;) (expression_statement "*param_3 = 0;" (assignment_expression "*param_3 = 0" (pointer_expression "*param_3" * identifier) = number_literal) ;) (expression_statement "param_3[1] = 0;" (assignment_expression "param_3[1] = 0" (subscript_expression "param_3[1]" identifier [ number_literal ]) = number_literal) ;) (expression_statement "puVar1 = PTR_DAT_0017f180;" (assignment_expression "puVar1 = PTR_DAT_0017f180" identifier = identifier) ;) (expression_statement "local_5c = 0;" (assignment_expression "local_5c = 0" identifier = number_literal) ;) (expression_statement "iVar2 = (**(code **)(param_1 + 0x68))(local_60,*param_2,1,PTR_DAT_0017f180,&local_5c,&local_58);" (assignment_expression "iVar2 = (**(code **)(param_1 + 0x68))(local_60,*param_2,1,PTR_DAT_0017f180,&local_5c,&local_58)" identifier = (call_expression "(**(code **)(param_1 + 0x68))(local_60,*param_2,1,PTR_DAT_0017f180,&local_5c,&local_58)" (parenthesized_expression "(**(code **)(param_1 + 0x68))" ( (pointer_expression "**(code **)(param_1 + 0x68)" * (pointer_expression "*(code **)(param_1 + 0x68)" * (cast_expression "(code **)(param_1 + 0x68)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(param_1 + 0x68)" ( (binary_expression "param_1 + 0x68" identifier + number_literal) ))))) )) (argument_list "(local_60,*param_2,1,PTR_DAT_0017f180,&local_5c,&local_58)" ( identifier , (pointer_expression "*param_2" * identifier) , number_literal , identifier , (pointer_expression "&local_5c" & identifier) , (pointer_expression "&local_58" & identifier) )))) ;) (expression_statement "uVar3 = 4;" (assignment_expression "uVar3 = 4" identifier = number_literal) ;) (if_statement "if (iVar2 == 0) {\n    local_5c = 0;\n    iVar2 = (**(code **)(param_1 + 0x68))(local_60,param_2[1],2,puVar1,&local_5c,&local_48);\n    if (iVar2 == 0) {\n      *param_3 = local_48 + local_58 + 1;\n      __dest = (void *)FUN_0010ea3d(local_48 + local_58 + 2,1);\n      param_3[1] = (long)__dest;\n      memcpy(__dest,local_50,local_58);\n      *(undefined1 *)(param_3[1] + local_58) = 0x20;\n      memcpy((void *)(param_3[1] + 1 + local_58),local_40,local_48);\n      *(undefined1 *)(param_3[1] + *param_3) = 0;\n      (**(code **)(param_1 + 0x88))(local_60,&local_58);\n      (**(code **)(param_1 + 0x88))(local_60,&local_48);\n      uVar3 = 0;\n    }\n    else {\n      (**(code **)(param_1 + 0x88))(local_60,&local_58);\n      uVar3 = 4;\n    }\n  }" if (parenthesized_expression "(iVar2 == 0)" ( (binary_expression "iVar2 == 0" identifier == number_literal) )) (compound_statement "{\n    local_5c = 0;\n    iVar2 = (**(code **)(param_1 + 0x68))(local_60,param_2[1],2,puVar1,&local_5c,&local_48);\n    if (iVar2 == 0) {\n      *param_3 = local_48 + local_58 + 1;\n      __dest = (void *)FUN_0010ea3d(local_48 + local_58 + 2,1);\n      param_3[1] = (long)__dest;\n      memcpy(__dest,local_50,local_58);\n      *(undefined1 *)(param_3[1] + local_58) = 0x20;\n      memcpy((void *)(param_3[1] + 1 + local_58),local_40,local_48);\n      *(undefined1 *)(param_3[1] + *param_3) = 0;\n      (**(code **)(param_1 + 0x88))(local_60,&local_58);\n      (**(code **)(param_1 + 0x88))(local_60,&local_48);\n      uVar3 = 0;\n    }\n    else {\n      (**(code **)(param_1 + 0x88))(local_60,&local_58);\n      uVar3 = 4;\n    }\n  }" { (expression_statement "local_5c = 0;" (assignment_expression "local_5c = 0" identifier = number_literal) ;) (expression_statement "iVar2 = (**(code **)(param_1 + 0x68))(local_60,param_2[1],2,puVar1,&local_5c,&local_48);" (assignment_expression "iVar2 = (**(code **)(param_1 + 0x68))(local_60,param_2[1],2,puVar1,&local_5c,&local_48)" identifier = (call_expression "(**(code **)(param_1 + 0x68))(local_60,param_2[1],2,puVar1,&local_5c,&local_48)" (parenthesized_expression "(**(code **)(param_1 + 0x68))" ( (pointer_expression "**(code **)(param_1 + 0x68)" * (pointer_expression "*(code **)(param_1 + 0x68)" * (cast_expression "(code **)(param_1 + 0x68)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(param_1 + 0x68)" ( (binary_expression "param_1 + 0x68" identifier + number_literal) ))))) )) (argument_list "(local_60,param_2[1],2,puVar1,&local_5c,&local_48)" ( identifier , (subscript_expression "param_2[1]" identifier [ number_literal ]) , number_literal , identifier , (pointer_expression "&local_5c" & identifier) , (pointer_expression "&local_48" & identifier) )))) ;) (if_statement "if (iVar2 == 0) {\n      *param_3 = local_48 + local_58 + 1;\n      __dest = (void *)FUN_0010ea3d(local_48 + local_58 + 2,1);\n      param_3[1] = (long)__dest;\n      memcpy(__dest,local_50,local_58);\n      *(undefined1 *)(param_3[1] + local_58) = 0x20;\n      memcpy((void *)(param_3[1] + 1 + local_58),local_40,local_48);\n      *(undefined1 *)(param_3[1] + *param_3) = 0;\n      (**(code **)(param_1 + 0x88))(local_60,&local_58);\n      (**(code **)(param_1 + 0x88))(local_60,&local_48);\n      uVar3 = 0;\n    }\n    else {\n      (**(code **)(param_1 + 0x88))(local_60,&local_58);\n      uVar3 = 4;\n    }" if (parenthesized_expression "(iVar2 == 0)" ( (binary_expression "iVar2 == 0" identifier == number_literal) )) (compound_statement "{\n      *param_3 = local_48 + local_58 + 1;\n      __dest = (void *)FUN_0010ea3d(local_48 + local_58 + 2,1);\n      param_3[1] = (long)__dest;\n      memcpy(__dest,local_50,local_58);\n      *(undefined1 *)(param_3[1] + local_58) = 0x20;\n      memcpy((void *)(param_3[1] + 1 + local_58),local_40,local_48);\n      *(undefined1 *)(param_3[1] + *param_3) = 0;\n      (**(code **)(param_1 + 0x88))(local_60,&local_58);\n      (**(code **)(param_1 + 0x88))(local_60,&local_48);\n      uVar3 = 0;\n    }" { (expression_statement "*param_3 = local_48 + local_58 + 1;" (assignment_expression "*param_3 = local_48 + local_58 + 1" (pointer_expression "*param_3" * identifier) = (binary_expression "local_48 + local_58 + 1" (binary_expression "local_48 + local_58" identifier + identifier) + number_literal)) ;) (expression_statement "__dest = (void *)FUN_0010ea3d(local_48 + local_58 + 2,1);" (assignment_expression "__dest = (void *)FUN_0010ea3d(local_48 + local_58 + 2,1)" identifier = (cast_expression "(void *)FUN_0010ea3d(local_48 + local_58 + 2,1)" ( (type_descriptor "void *" primitive_type (abstract_pointer_declarator "*" *)) ) (call_expression "FUN_0010ea3d(local_48 + local_58 + 2,1)" identifier (argument_list "(local_48 + local_58 + 2,1)" ( (binary_expression "local_48 + local_58 + 2" (binary_expression "local_48 + local_58" identifier + identifier) + number_literal) , number_literal ))))) ;) (expression_statement "param_3[1] = (long)__dest;" (assignment_expression "param_3[1] = (long)__dest" (subscript_expression "param_3[1]" identifier [ number_literal ]) = (cast_expression "(long)__dest" ( (type_descriptor "long" (sized_type_specifier "long" long)) ) identifier)) ;) (expression_statement "memcpy(__dest,local_50,local_58);" (call_expression "memcpy(__dest,local_50,local_58)" identifier (argument_list "(__dest,local_50,local_58)" ( identifier , identifier , identifier ))) ;) (expression_statement "*(undefined1 *)(param_3[1] + local_58) = 0x20;" (assignment_expression "*(undefined1 *)(param_3[1] + local_58) = 0x20" (pointer_expression "*(undefined1 *)(param_3[1] + local_58)" * (cast_expression "(undefined1 *)(param_3[1] + local_58)" ( (type_descriptor "undefined1 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_3[1] + local_58)" ( (binary_expression "param_3[1] + local_58" (subscript_expression "param_3[1]" identifier [ number_literal ]) + identifier) )))) = number_literal) ;) (expression_statement "memcpy((void *)(param_3[1] + 1 + local_58),local_40,local_48);" (call_expression "memcpy((void *)(param_3[1] + 1 + local_58),local_40,local_48)" identifier (argument_list "((void *)(param_3[1] + 1 + local_58),local_40,local_48)" ( (cast_expression "(void *)(param_3[1] + 1 + local_58)" ( (type_descriptor "void *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_3[1] + 1 + local_58)" ( (binary_expression "param_3[1] + 1 + local_58" (binary_expression "param_3[1] + 1" (subscript_expression "param_3[1]" identifier [ number_literal ]) + number_literal) + identifier) ))) , identifier , identifier ))) ;) (expression_statement "*(undefined1 *)(param_3[1] + *param_3) = 0;" (assignment_expression "*(undefined1 *)(param_3[1] + *param_3) = 0" (pointer_expression "*(undefined1 *)(param_3[1] + *param_3)" * (cast_expression "(undefined1 *)(param_3[1] + *param_3)" ( (type_descriptor "undefined1 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_3[1] + *param_3)" ( (binary_expression "param_3[1] + *param_3" (subscript_expression "param_3[1]" identifier [ number_literal ]) + (pointer_expression "*param_3" * identifier)) )))) = number_literal) ;) (expression_statement "(**(code **)(param_1 + 0x88))(local_60,&local_58);" (call_expression "(**(code **)(param_1 + 0x88))(local_60,&local_58)" (parenthesized_expression "(**(code **)(param_1 + 0x88))" ( (pointer_expression "**(code **)(param_1 + 0x88)" * (pointer_expression "*(code **)(param_1 + 0x88)" * (cast_expression "(code **)(param_1 + 0x88)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(param_1 + 0x88)" ( (binary_expression "param_1 + 0x88" identifier + number_literal) ))))) )) (argument_list "(local_60,&local_58)" ( identifier , (pointer_expression "&local_58" & identifier) ))) ;) (expression_statement "(**(code **)(param_1 + 0x88))(local_60,&local_48);" (call_expression "(**(code **)(param_1 + 0x88))(local_60,&local_48)" (parenthesized_expression "(**(code **)(param_1 + 0x88))" ( (pointer_expression "**(code **)(param_1 + 0x88)" * (pointer_expression "*(code **)(param_1 + 0x88)" * (cast_expression "(code **)(param_1 + 0x88)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(param_1 + 0x88)" ( (binary_expression "param_1 + 0x88" identifier + number_literal) ))))) )) (argument_list "(local_60,&local_48)" ( identifier , (pointer_expression "&local_48" & identifier) ))) ;) (expression_statement "uVar3 = 0;" (assignment_expression "uVar3 = 0" identifier = number_literal) ;) }) (else_clause "else {\n      (**(code **)(param_1 + 0x88))(local_60,&local_58);\n      uVar3 = 4;\n    }" else (compound_statement "{\n      (**(code **)(param_1 + 0x88))(local_60,&local_58);\n      uVar3 = 4;\n    }" { (expression_statement "(**(code **)(param_1 + 0x88))(local_60,&local_58);" (call_expression "(**(code **)(param_1 + 0x88))(local_60,&local_58)" (parenthesized_expression "(**(code **)(param_1 + 0x88))" ( (pointer_expression "**(code **)(param_1 + 0x88)" * (pointer_expression "*(code **)(param_1 + 0x88)" * (cast_expression "(code **)(param_1 + 0x88)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(param_1 + 0x88)" ( (binary_expression "param_1 + 0x88" identifier + number_literal) ))))) )) (argument_list "(local_60,&local_58)" ( identifier , (pointer_expression "&local_58" & identifier) ))) ;) (expression_statement "uVar3 = 4;" (assignment_expression "uVar3 = 4" identifier = number_literal) ;) }))) })) (if_statement "if (local_30 == *(long *)(in_FS_OFFSET + 0x28)) {\n    return uVar3;\n  }" if (parenthesized_expression "(local_30 == *(long *)(in_FS_OFFSET + 0x28))" ( (binary_expression "local_30 == *(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 uVar3;\n  }" { (return_statement "return uVar3;" return identifier ;) })) comment (expression_statement "__stack_chk_fail();" (call_expression "__stack_chk_fail()" identifier (argument_list "()" ( ))) ;) })))
(translation_unit "Ssh_gss_stat ssh_gssapi_display_status(ssh_gss_library *lib,Ssh_gss_ctx ctx,Ssh_gss_buf *buf)\n\n{\n  long lVar1;\n  gss_OID pgVar2;\n  OM_uint32 OVar3;\n  void *__dest;\n  Ssh_gss_stat SVar4;\n  long in_FS_OFFSET;\n  OM_uint32 lmin;\n  OM_uint32 ccc;\n  gss_buffer_desc msg_maj;\n  gss_buffer_desc msg_min;\n  \n  lVar1 = *(long *)(in_FS_OFFSET + 0x28);\n  msg_maj.length = 0;\n  msg_maj.value = (void *)0x0;\n  msg_min.length = 0;\n  msg_min.value = (void *)0x0;\n  buf->length = 0;\n  buf->value = (void *)0x0;\n  pgVar2 = GSS_MECH_KRB5;\n  ccc = 0;\n                    /* WARNING: Load size is inaccurate */\n  OVar3 = (*(lib->u).gssapi.display_status)(&lmin,*ctx,1,GSS_MECH_KRB5,&ccc,&msg_maj);\n  SVar4 = SSH_GSS_FAILURE;\n  if (OVar3 == 0) {\n    ccc = 0;\n    OVar3 = (*(lib->u).gssapi.display_status)\n                      (&lmin,*(OM_uint32 *)((long)ctx + 4),2,pgVar2,&ccc,&msg_min);\n    if (OVar3 == 0) {\n      buf->length = msg_min.length + msg_maj.length + 1;\n      __dest = safemalloc(msg_min.length + msg_maj.length + 2,1);\n      buf->value = __dest;\n      memcpy(__dest,msg_maj.value,msg_maj.length);\n      *(undefined1 *)((long)buf->value + msg_maj.length) = 0x20;\n      memcpy((void *)((long)buf->value + msg_maj.length + 1),msg_min.value,msg_min.length);\n      *(undefined1 *)((long)buf->value + buf->length) = 0;\n      (*(lib->u).gssapi.release_buffer)(&lmin,&msg_maj);\n      (*(lib->u).gssapi.release_buffer)(&lmin,&msg_min);\n      SVar4 = SSH_GSS_OK;\n    }\n    else {\n      (*(lib->u).gssapi.release_buffer)(&lmin,&msg_maj);\n      SVar4 = SSH_GSS_FAILURE;\n    }\n  }\n  if (lVar1 == *(long *)(in_FS_OFFSET + 0x28)) {\n    return SVar4;\n  }\n                    /* WARNING: Subroutine does not return */\n  __stack_chk_fail();\n}\n\n" (function_definition "Ssh_gss_stat ssh_gssapi_display_status(ssh_gss_library *lib,Ssh_gss_ctx ctx,Ssh_gss_buf *buf)\n\n{\n  long lVar1;\n  gss_OID pgVar2;\n  OM_uint32 OVar3;\n  void *__dest;\n  Ssh_gss_stat SVar4;\n  long in_FS_OFFSET;\n  OM_uint32 lmin;\n  OM_uint32 ccc;\n  gss_buffer_desc msg_maj;\n  gss_buffer_desc msg_min;\n  \n  lVar1 = *(long *)(in_FS_OFFSET + 0x28);\n  msg_maj.length = 0;\n  msg_maj.value = (void *)0x0;\n  msg_min.length = 0;\n  msg_min.value = (void *)0x0;\n  buf->length = 0;\n  buf->value = (void *)0x0;\n  pgVar2 = GSS_MECH_KRB5;\n  ccc = 0;\n                    /* WARNING: Load size is inaccurate */\n  OVar3 = (*(lib->u).gssapi.display_status)(&lmin,*ctx,1,GSS_MECH_KRB5,&ccc,&msg_maj);\n  SVar4 = SSH_GSS_FAILURE;\n  if (OVar3 == 0) {\n    ccc = 0;\n    OVar3 = (*(lib->u).gssapi.display_status)\n                      (&lmin,*(OM_uint32 *)((long)ctx + 4),2,pgVar2,&ccc,&msg_min);\n    if (OVar3 == 0) {\n      buf->length = msg_min.length + msg_maj.length + 1;\n      __dest = safemalloc(msg_min.length + msg_maj.length + 2,1);\n      buf->value = __dest;\n      memcpy(__dest,msg_maj.value,msg_maj.length);\n      *(undefined1 *)((long)buf->value + msg_maj.length) = 0x20;\n      memcpy((void *)((long)buf->value + msg_maj.length + 1),msg_min.value,msg_min.length);\n      *(undefined1 *)((long)buf->value + buf->length) = 0;\n      (*(lib->u).gssapi.release_buffer)(&lmin,&msg_maj);\n      (*(lib->u).gssapi.release_buffer)(&lmin,&msg_min);\n      SVar4 = SSH_GSS_OK;\n    }\n    else {\n      (*(lib->u).gssapi.release_buffer)(&lmin,&msg_maj);\n      SVar4 = SSH_GSS_FAILURE;\n    }\n  }\n  if (lVar1 == *(long *)(in_FS_OFFSET + 0x28)) {\n    return SVar4;\n  }\n                    /* WARNING: Subroutine does not return */\n  __stack_chk_fail();\n}" type_identifier (function_declarator "ssh_gssapi_display_status(ssh_gss_library *lib,Ssh_gss_ctx ctx,Ssh_gss_buf *buf)" identifier (parameter_list "(ssh_gss_library *lib,Ssh_gss_ctx ctx,Ssh_gss_buf *buf)" ( (parameter_declaration "ssh_gss_library *lib" type_identifier (pointer_declarator "*lib" * identifier)) , (parameter_declaration "Ssh_gss_ctx ctx" type_identifier identifier) , (parameter_declaration "Ssh_gss_buf *buf" type_identifier (pointer_declarator "*buf" * identifier)) ))) (compound_statement "{\n  long lVar1;\n  gss_OID pgVar2;\n  OM_uint32 OVar3;\n  void *__dest;\n  Ssh_gss_stat SVar4;\n  long in_FS_OFFSET;\n  OM_uint32 lmin;\n  OM_uint32 ccc;\n  gss_buffer_desc msg_maj;\n  gss_buffer_desc msg_min;\n  \n  lVar1 = *(long *)(in_FS_OFFSET + 0x28);\n  msg_maj.length = 0;\n  msg_maj.value = (void *)0x0;\n  msg_min.length = 0;\n  msg_min.value = (void *)0x0;\n  buf->length = 0;\n  buf->value = (void *)0x0;\n  pgVar2 = GSS_MECH_KRB5;\n  ccc = 0;\n                    /* WARNING: Load size is inaccurate */\n  OVar3 = (*(lib->u).gssapi.display_status)(&lmin,*ctx,1,GSS_MECH_KRB5,&ccc,&msg_maj);\n  SVar4 = SSH_GSS_FAILURE;\n  if (OVar3 == 0) {\n    ccc = 0;\n    OVar3 = (*(lib->u).gssapi.display_status)\n                      (&lmin,*(OM_uint32 *)((long)ctx + 4),2,pgVar2,&ccc,&msg_min);\n    if (OVar3 == 0) {\n      buf->length = msg_min.length + msg_maj.length + 1;\n      __dest = safemalloc(msg_min.length + msg_maj.length + 2,1);\n      buf->value = __dest;\n      memcpy(__dest,msg_maj.value,msg_maj.length);\n      *(undefined1 *)((long)buf->value + msg_maj.length) = 0x20;\n      memcpy((void *)((long)buf->value + msg_maj.length + 1),msg_min.value,msg_min.length);\n      *(undefined1 *)((long)buf->value + buf->length) = 0;\n      (*(lib->u).gssapi.release_buffer)(&lmin,&msg_maj);\n      (*(lib->u).gssapi.release_buffer)(&lmin,&msg_min);\n      SVar4 = SSH_GSS_OK;\n    }\n    else {\n      (*(lib->u).gssapi.release_buffer)(&lmin,&msg_maj);\n      SVar4 = SSH_GSS_FAILURE;\n    }\n  }\n  if (lVar1 == *(long *)(in_FS_OFFSET + 0x28)) {\n    return SVar4;\n  }\n                    /* WARNING: Subroutine does not return */\n  __stack_chk_fail();\n}" { (declaration "long lVar1;" (sized_type_specifier "long" long) identifier ;) (declaration "gss_OID pgVar2;" type_identifier identifier ;) (declaration "OM_uint32 OVar3;" type_identifier identifier ;) (declaration "void *__dest;" primitive_type (pointer_declarator "*__dest" * identifier) ;) (declaration "Ssh_gss_stat SVar4;" type_identifier identifier ;) (declaration "long in_FS_OFFSET;" (sized_type_specifier "long" long) identifier ;) (declaration "OM_uint32 lmin;" type_identifier identifier ;) (declaration "OM_uint32 ccc;" type_identifier identifier ;) (declaration "gss_buffer_desc msg_maj;" type_identifier identifier ;) (declaration "gss_buffer_desc msg_min;" type_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 "msg_maj.length = 0;" (assignment_expression "msg_maj.length = 0" (field_expression "msg_maj.length" identifier . field_identifier) = number_literal) ;) (expression_statement "msg_maj.value = (void *)0x0;" (assignment_expression "msg_maj.value = (void *)0x0" (field_expression "msg_maj.value" identifier . field_identifier) = (cast_expression "(void *)0x0" ( (type_descriptor "void *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) ;) (expression_statement "msg_min.length = 0;" (assignment_expression "msg_min.length = 0" (field_expression "msg_min.length" identifier . field_identifier) = number_literal) ;) (expression_statement "msg_min.value = (void *)0x0;" (assignment_expression "msg_min.value = (void *)0x0" (field_expression "msg_min.value" identifier . field_identifier) = (cast_expression "(void *)0x0" ( (type_descriptor "void *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) ;) (expression_statement "buf->length = 0;" (assignment_expression "buf->length = 0" (field_expression "buf->length" identifier -> field_identifier) = number_literal) ;) (expression_statement "buf->value = (void *)0x0;" (assignment_expression "buf->value = (void *)0x0" (field_expression "buf->value" identifier -> field_identifier) = (cast_expression "(void *)0x0" ( (type_descriptor "void *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) ;) (expression_statement "pgVar2 = GSS_MECH_KRB5;" (assignment_expression "pgVar2 = GSS_MECH_KRB5" identifier = identifier) ;) (expression_statement "ccc = 0;" (assignment_expression "ccc = 0" identifier = number_literal) ;) comment (expression_statement "OVar3 = (*(lib->u).gssapi.display_status)(&lmin,*ctx,1,GSS_MECH_KRB5,&ccc,&msg_maj);" (assignment_expression "OVar3 = (*(lib->u).gssapi.display_status)(&lmin,*ctx,1,GSS_MECH_KRB5,&ccc,&msg_maj)" identifier = (call_expression "(*(lib->u).gssapi.display_status)(&lmin,*ctx,1,GSS_MECH_KRB5,&ccc,&msg_maj)" (parenthesized_expression "(*(lib->u).gssapi.display_status)" ( (pointer_expression "*(lib->u).gssapi.display_status" * (field_expression "(lib->u).gssapi.display_status" (field_expression "(lib->u).gssapi" (parenthesized_expression "(lib->u)" ( (field_expression "lib->u" identifier -> field_identifier) )) . field_identifier) . field_identifier)) )) (argument_list "(&lmin,*ctx,1,GSS_MECH_KRB5,&ccc,&msg_maj)" ( (pointer_expression "&lmin" & identifier) , (pointer_expression "*ctx" * identifier) , number_literal , identifier , (pointer_expression "&ccc" & identifier) , (pointer_expression "&msg_maj" & identifier) )))) ;) (expression_statement "SVar4 = SSH_GSS_FAILURE;" (assignment_expression "SVar4 = SSH_GSS_FAILURE" identifier = identifier) ;) (if_statement "if (OVar3 == 0) {\n    ccc = 0;\n    OVar3 = (*(lib->u).gssapi.display_status)\n                      (&lmin,*(OM_uint32 *)((long)ctx + 4),2,pgVar2,&ccc,&msg_min);\n    if (OVar3 == 0) {\n      buf->length = msg_min.length + msg_maj.length + 1;\n      __dest = safemalloc(msg_min.length + msg_maj.length + 2,1);\n      buf->value = __dest;\n      memcpy(__dest,msg_maj.value,msg_maj.length);\n      *(undefined1 *)((long)buf->value + msg_maj.length) = 0x20;\n      memcpy((void *)((long)buf->value + msg_maj.length + 1),msg_min.value,msg_min.length);\n      *(undefined1 *)((long)buf->value + buf->length) = 0;\n      (*(lib->u).gssapi.release_buffer)(&lmin,&msg_maj);\n      (*(lib->u).gssapi.release_buffer)(&lmin,&msg_min);\n      SVar4 = SSH_GSS_OK;\n    }\n    else {\n      (*(lib->u).gssapi.release_buffer)(&lmin,&msg_maj);\n      SVar4 = SSH_GSS_FAILURE;\n    }\n  }" if (parenthesized_expression "(OVar3 == 0)" ( (binary_expression "OVar3 == 0" identifier == number_literal) )) (compound_statement "{\n    ccc = 0;\n    OVar3 = (*(lib->u).gssapi.display_status)\n                      (&lmin,*(OM_uint32 *)((long)ctx + 4),2,pgVar2,&ccc,&msg_min);\n    if (OVar3 == 0) {\n      buf->length = msg_min.length + msg_maj.length + 1;\n      __dest = safemalloc(msg_min.length + msg_maj.length + 2,1);\n      buf->value = __dest;\n      memcpy(__dest,msg_maj.value,msg_maj.length);\n      *(undefined1 *)((long)buf->value + msg_maj.length) = 0x20;\n      memcpy((void *)((long)buf->value + msg_maj.length + 1),msg_min.value,msg_min.length);\n      *(undefined1 *)((long)buf->value + buf->length) = 0;\n      (*(lib->u).gssapi.release_buffer)(&lmin,&msg_maj);\n      (*(lib->u).gssapi.release_buffer)(&lmin,&msg_min);\n      SVar4 = SSH_GSS_OK;\n    }\n    else {\n      (*(lib->u).gssapi.release_buffer)(&lmin,&msg_maj);\n      SVar4 = SSH_GSS_FAILURE;\n    }\n  }" { (expression_statement "ccc = 0;" (assignment_expression "ccc = 0" identifier = number_literal) ;) (expression_statement "OVar3 = (*(lib->u).gssapi.display_status)\n                      (&lmin,*(OM_uint32 *)((long)ctx + 4),2,pgVar2,&ccc,&msg_min);" (assignment_expression "OVar3 = (*(lib->u).gssapi.display_status)\n                      (&lmin,*(OM_uint32 *)((long)ctx + 4),2,pgVar2,&ccc,&msg_min)" identifier = (call_expression "(*(lib->u).gssapi.display_status)\n                      (&lmin,*(OM_uint32 *)((long)ctx + 4),2,pgVar2,&ccc,&msg_min)" (parenthesized_expression "(*(lib->u).gssapi.display_status)" ( (pointer_expression "*(lib->u).gssapi.display_status" * (field_expression "(lib->u).gssapi.display_status" (field_expression "(lib->u).gssapi" (parenthesized_expression "(lib->u)" ( (field_expression "lib->u" identifier -> field_identifier) )) . field_identifier) . field_identifier)) )) (argument_list "(&lmin,*(OM_uint32 *)((long)ctx + 4),2,pgVar2,&ccc,&msg_min)" ( (pointer_expression "&lmin" & identifier) , (pointer_expression "*(OM_uint32 *)((long)ctx + 4)" * (cast_expression "(OM_uint32 *)((long)ctx + 4)" ( (type_descriptor "OM_uint32 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((long)ctx + 4)" ( (binary_expression "(long)ctx + 4" (cast_expression "(long)ctx" ( (type_descriptor "long" (sized_type_specifier "long" long)) ) identifier) + number_literal) )))) , number_literal , identifier , (pointer_expression "&ccc" & identifier) , (pointer_expression "&msg_min" & identifier) )))) ;) (if_statement "if (OVar3 == 0) {\n      buf->length = msg_min.length + msg_maj.length + 1;\n      __dest = safemalloc(msg_min.length + msg_maj.length + 2,1);\n      buf->value = __dest;\n      memcpy(__dest,msg_maj.value,msg_maj.length);\n      *(undefined1 *)((long)buf->value + msg_maj.length) = 0x20;\n      memcpy((void *)((long)buf->value + msg_maj.length + 1),msg_min.value,msg_min.length);\n      *(undefined1 *)((long)buf->value + buf->length) = 0;\n      (*(lib->u).gssapi.release_buffer)(&lmin,&msg_maj);\n      (*(lib->u).gssapi.release_buffer)(&lmin,&msg_min);\n      SVar4 = SSH_GSS_OK;\n    }\n    else {\n      (*(lib->u).gssapi.release_buffer)(&lmin,&msg_maj);\n      SVar4 = SSH_GSS_FAILURE;\n    }" if (parenthesized_expression "(OVar3 == 0)" ( (binary_expression "OVar3 == 0" identifier == number_literal) )) (compound_statement "{\n      buf->length = msg_min.length + msg_maj.length + 1;\n      __dest = safemalloc(msg_min.length + msg_maj.length + 2,1);\n      buf->value = __dest;\n      memcpy(__dest,msg_maj.value,msg_maj.length);\n      *(undefined1 *)((long)buf->value + msg_maj.length) = 0x20;\n      memcpy((void *)((long)buf->value + msg_maj.length + 1),msg_min.value,msg_min.length);\n      *(undefined1 *)((long)buf->value + buf->length) = 0;\n      (*(lib->u).gssapi.release_buffer)(&lmin,&msg_maj);\n      (*(lib->u).gssapi.release_buffer)(&lmin,&msg_min);\n      SVar4 = SSH_GSS_OK;\n    }" { (expression_statement "buf->length = msg_min.length + msg_maj.length + 1;" (assignment_expression "buf->length = msg_min.length + msg_maj.length + 1" (field_expression "buf->length" identifier -> field_identifier) = (binary_expression "msg_min.length + msg_maj.length + 1" (binary_expression "msg_min.length + msg_maj.length" (field_expression "msg_min.length" identifier . field_identifier) + (field_expression "msg_maj.length" identifier . field_identifier)) + number_literal)) ;) (expression_statement "__dest = safemalloc(msg_min.length + msg_maj.length + 2,1);" (assignment_expression "__dest = safemalloc(msg_min.length + msg_maj.length + 2,1)" identifier = (call_expression "safemalloc(msg_min.length + msg_maj.length + 2,1)" identifier (argument_list "(msg_min.length + msg_maj.length + 2,1)" ( (binary_expression "msg_min.length + msg_maj.length + 2" (binary_expression "msg_min.length + msg_maj.length" (field_expression "msg_min.length" identifier . field_identifier) + (field_expression "msg_maj.length" identifier . field_identifier)) + number_literal) , number_literal )))) ;) (expression_statement "buf->value = __dest;" (assignment_expression "buf->value = __dest" (field_expression "buf->value" identifier -> field_identifier) = identifier) ;) (expression_statement "memcpy(__dest,msg_maj.value,msg_maj.length);" (call_expression "memcpy(__dest,msg_maj.value,msg_maj.length)" identifier (argument_list "(__dest,msg_maj.value,msg_maj.length)" ( identifier , (field_expression "msg_maj.value" identifier . field_identifier) , (field_expression "msg_maj.length" identifier . field_identifier) ))) ;) (expression_statement "*(undefined1 *)((long)buf->value + msg_maj.length) = 0x20;" (assignment_expression "*(undefined1 *)((long)buf->value + msg_maj.length) = 0x20" (pointer_expression "*(undefined1 *)((long)buf->value + msg_maj.length)" * (cast_expression "(undefined1 *)((long)buf->value + msg_maj.length)" ( (type_descriptor "undefined1 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((long)buf->value + msg_maj.length)" ( (binary_expression "(long)buf->value + msg_maj.length" (cast_expression "(long)buf->value" ( (type_descriptor "long" (sized_type_specifier "long" long)) ) (field_expression "buf->value" identifier -> field_identifier)) + (field_expression "msg_maj.length" identifier . field_identifier)) )))) = number_literal) ;) (expression_statement "memcpy((void *)((long)buf->value + msg_maj.length + 1),msg_min.value,msg_min.length);" (call_expression "memcpy((void *)((long)buf->value + msg_maj.length + 1),msg_min.value,msg_min.length)" identifier (argument_list "((void *)((long)buf->value + msg_maj.length + 1),msg_min.value,msg_min.length)" ( (cast_expression "(void *)((long)buf->value + msg_maj.length + 1)" ( (type_descriptor "void *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((long)buf->value + msg_maj.length + 1)" ( (binary_expression "(long)buf->value + msg_maj.length + 1" (binary_expression "(long)buf->value + msg_maj.length" (cast_expression "(long)buf->value" ( (type_descriptor "long" (sized_type_specifier "long" long)) ) (field_expression "buf->value" identifier -> field_identifier)) + (field_expression "msg_maj.length" identifier . field_identifier)) + number_literal) ))) , (field_expression "msg_min.value" identifier . field_identifier) , (field_expression "msg_min.length" identifier . field_identifier) ))) ;) (expression_statement "*(undefined1 *)((long)buf->value + buf->length) = 0;" (assignment_expression "*(undefined1 *)((long)buf->value + buf->length) = 0" (pointer_expression "*(undefined1 *)((long)buf->value + buf->length)" * (cast_expression "(undefined1 *)((long)buf->value + buf->length)" ( (type_descriptor "undefined1 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((long)buf->value + buf->length)" ( (binary_expression "(long)buf->value + buf->length" (cast_expression "(long)buf->value" ( (type_descriptor "long" (sized_type_specifier "long" long)) ) (field_expression "buf->value" identifier -> field_identifier)) + (field_expression "buf->length" identifier -> field_identifier)) )))) = number_literal) ;) (expression_statement "(*(lib->u).gssapi.release_buffer)(&lmin,&msg_maj);" (call_expression "(*(lib->u).gssapi.release_buffer)(&lmin,&msg_maj)" (parenthesized_expression "(*(lib->u).gssapi.release_buffer)" ( (pointer_expression "*(lib->u).gssapi.release_buffer" * (field_expression "(lib->u).gssapi.release_buffer" (field_expression "(lib->u).gssapi" (parenthesized_expression "(lib->u)" ( (field_expression "lib->u" identifier -> field_identifier) )) . field_identifier) . field_identifier)) )) (argument_list "(&lmin,&msg_maj)" ( (pointer_expression "&lmin" & identifier) , (pointer_expression "&msg_maj" & identifier) ))) ;) (expression_statement "(*(lib->u).gssapi.release_buffer)(&lmin,&msg_min);" (call_expression "(*(lib->u).gssapi.release_buffer)(&lmin,&msg_min)" (parenthesized_expression "(*(lib->u).gssapi.release_buffer)" ( (pointer_expression "*(lib->u).gssapi.release_buffer" * (field_expression "(lib->u).gssapi.release_buffer" (field_expression "(lib->u).gssapi" (parenthesized_expression "(lib->u)" ( (field_expression "lib->u" identifier -> field_identifier) )) . field_identifier) . field_identifier)) )) (argument_list "(&lmin,&msg_min)" ( (pointer_expression "&lmin" & identifier) , (pointer_expression "&msg_min" & identifier) ))) ;) (expression_statement "SVar4 = SSH_GSS_OK;" (assignment_expression "SVar4 = SSH_GSS_OK" identifier = identifier) ;) }) (else_clause "else {\n      (*(lib->u).gssapi.release_buffer)(&lmin,&msg_maj);\n      SVar4 = SSH_GSS_FAILURE;\n    }" else (compound_statement "{\n      (*(lib->u).gssapi.release_buffer)(&lmin,&msg_maj);\n      SVar4 = SSH_GSS_FAILURE;\n    }" { (expression_statement "(*(lib->u).gssapi.release_buffer)(&lmin,&msg_maj);" (call_expression "(*(lib->u).gssapi.release_buffer)(&lmin,&msg_maj)" (parenthesized_expression "(*(lib->u).gssapi.release_buffer)" ( (pointer_expression "*(lib->u).gssapi.release_buffer" * (field_expression "(lib->u).gssapi.release_buffer" (field_expression "(lib->u).gssapi" (parenthesized_expression "(lib->u)" ( (field_expression "lib->u" identifier -> field_identifier) )) . field_identifier) . field_identifier)) )) (argument_list "(&lmin,&msg_maj)" ( (pointer_expression "&lmin" & identifier) , (pointer_expression "&msg_maj" & identifier) ))) ;) (expression_statement "SVar4 = SSH_GSS_FAILURE;" (assignment_expression "SVar4 = SSH_GSS_FAILURE" identifier = identifier) ;) }))) })) (if_statement "if (lVar1 == *(long *)(in_FS_OFFSET + 0x28)) {\n    return SVar4;\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 SVar4;\n  }" { (return_statement "return SVar4;" return identifier ;) })) comment (expression_statement "__stack_chk_fail();" (call_expression "__stack_chk_fail()" identifier (argument_list "()" ( ))) ;) })))
(translation_unit "undefined4 FUN_0013d99c(long param_1,undefined4 *param_2,long *param_3)\n\n{\n  undefined *puVar1;\n  int iVar2;\n  void *__dest;\n  undefined4 uVar3;\n  long in_FS_OFFSET;\n  undefined1 local_60 [4];\n  undefined4 local_5c;\n  size_t local_58;\n  void *local_50;\n  size_t local_48;\n  void *local_40;\n  long local_30;\n  \n  local_30 = *(long *)(in_FS_OFFSET + 0x28);\n  local_58 = 0;\n  local_50 = (void *)0x0;\n  local_48 = 0;\n  local_40 = (void *)0x0;\n  *param_3 = 0;\n  param_3[1] = 0;\n  puVar1 = PTR_DAT_0017f180;\n  local_5c = 0;\n  iVar2 = (**(code **)(param_1 + 0x68))(local_60,*param_2,1,PTR_DAT_0017f180,&local_5c,&local_58);\n  uVar3 = 4;\n  if (iVar2 == 0) {\n    local_5c = 0;\n    iVar2 = (**(code **)(param_1 + 0x68))(local_60,param_2[1],2,puVar1,&local_5c,&local_48);\n    if (iVar2 == 0) {\n      *param_3 = local_48 + local_58 + 1;\n      __dest = (void *)FUN_0010ea3d(local_48 + local_58 + 2,1);\n      param_3[1] = (long)__dest;\n      memcpy(__dest,local_50,local_58);\n      *(undefined1 *)(param_3[1] + local_58) = 0x20;\n      memcpy((void *)(param_3[1] + 1 + local_58),local_40,local_48);\n      *(undefined1 *)(param_3[1] + *param_3) = 0;\n      (**(code **)(param_1 + 0x88))(local_60,&local_58);\n      (**(code **)(param_1 + 0x88))(local_60,&local_48);\n      uVar3 = 0;\n    }\n    else {\n      (**(code **)(param_1 + 0x88))(local_60,&local_58);\n      uVar3 = 4;\n    }\n  }\n  if (local_30 == *(long *)(in_FS_OFFSET + 0x28)) {\n    return uVar3;\n  }\n                    \n  __stack_chk_fail();\n}\n\n" (function_definition "undefined4 FUN_0013d99c(long param_1,undefined4 *param_2,long *param_3)\n\n{\n  undefined *puVar1;\n  int iVar2;\n  void *__dest;\n  undefined4 uVar3;\n  long in_FS_OFFSET;\n  undefined1 local_60 [4];\n  undefined4 local_5c;\n  size_t local_58;\n  void *local_50;\n  size_t local_48;\n  void *local_40;\n  long local_30;\n  \n  local_30 = *(long *)(in_FS_OFFSET + 0x28);\n  local_58 = 0;\n  local_50 = (void *)0x0;\n  local_48 = 0;\n  local_40 = (void *)0x0;\n  *param_3 = 0;\n  param_3[1] = 0;\n  puVar1 = PTR_DAT_0017f180;\n  local_5c = 0;\n  iVar2 = (**(code **)(param_1 + 0x68))(local_60,*param_2,1,PTR_DAT_0017f180,&local_5c,&local_58);\n  uVar3 = 4;\n  if (iVar2 == 0) {\n    local_5c = 0;\n    iVar2 = (**(code **)(param_1 + 0x68))(local_60,param_2[1],2,puVar1,&local_5c,&local_48);\n    if (iVar2 == 0) {\n      *param_3 = local_48 + local_58 + 1;\n      __dest = (void *)FUN_0010ea3d(local_48 + local_58 + 2,1);\n      param_3[1] = (long)__dest;\n      memcpy(__dest,local_50,local_58);\n      *(undefined1 *)(param_3[1] + local_58) = 0x20;\n      memcpy((void *)(param_3[1] + 1 + local_58),local_40,local_48);\n      *(undefined1 *)(param_3[1] + *param_3) = 0;\n      (**(code **)(param_1 + 0x88))(local_60,&local_58);\n      (**(code **)(param_1 + 0x88))(local_60,&local_48);\n      uVar3 = 0;\n    }\n    else {\n      (**(code **)(param_1 + 0x88))(local_60,&local_58);\n      uVar3 = 4;\n    }\n  }\n  if (local_30 == *(long *)(in_FS_OFFSET + 0x28)) {\n    return uVar3;\n  }\n                    \n  __stack_chk_fail();\n}" type_identifier (function_declarator "FUN_0013d99c(long param_1,undefined4 *param_2,long *param_3)" identifier (parameter_list "(long param_1,undefined4 *param_2,long *param_3)" ( (parameter_declaration "long param_1" (sized_type_specifier "long" long) identifier) , (parameter_declaration "undefined4 *param_2" type_identifier (pointer_declarator "*param_2" * identifier)) , (parameter_declaration "long *param_3" (sized_type_specifier "long" long) (pointer_declarator "*param_3" * identifier)) ))) (compound_statement "{\n  undefined *puVar1;\n  int iVar2;\n  void *__dest;\n  undefined4 uVar3;\n  long in_FS_OFFSET;\n  undefined1 local_60 [4];\n  undefined4 local_5c;\n  size_t local_58;\n  void *local_50;\n  size_t local_48;\n  void *local_40;\n  long local_30;\n  \n  local_30 = *(long *)(in_FS_OFFSET + 0x28);\n  local_58 = 0;\n  local_50 = (void *)0x0;\n  local_48 = 0;\n  local_40 = (void *)0x0;\n  *param_3 = 0;\n  param_3[1] = 0;\n  puVar1 = PTR_DAT_0017f180;\n  local_5c = 0;\n  iVar2 = (**(code **)(param_1 + 0x68))(local_60,*param_2,1,PTR_DAT_0017f180,&local_5c,&local_58);\n  uVar3 = 4;\n  if (iVar2 == 0) {\n    local_5c = 0;\n    iVar2 = (**(code **)(param_1 + 0x68))(local_60,param_2[1],2,puVar1,&local_5c,&local_48);\n    if (iVar2 == 0) {\n      *param_3 = local_48 + local_58 + 1;\n      __dest = (void *)FUN_0010ea3d(local_48 + local_58 + 2,1);\n      param_3[1] = (long)__dest;\n      memcpy(__dest,local_50,local_58);\n      *(undefined1 *)(param_3[1] + local_58) = 0x20;\n      memcpy((void *)(param_3[1] + 1 + local_58),local_40,local_48);\n      *(undefined1 *)(param_3[1] + *param_3) = 0;\n      (**(code **)(param_1 + 0x88))(local_60,&local_58);\n      (**(code **)(param_1 + 0x88))(local_60,&local_48);\n      uVar3 = 0;\n    }\n    else {\n      (**(code **)(param_1 + 0x88))(local_60,&local_58);\n      uVar3 = 4;\n    }\n  }\n  if (local_30 == *(long *)(in_FS_OFFSET + 0x28)) {\n    return uVar3;\n  }\n                    \n  __stack_chk_fail();\n}" { (declaration "undefined *puVar1;" type_identifier (pointer_declarator "*puVar1" * identifier) ;) (declaration "int iVar2;" primitive_type identifier ;) (declaration "void *__dest;" primitive_type (pointer_declarator "*__dest" * identifier) ;) (declaration "undefined4 uVar3;" type_identifier identifier ;) (declaration "long in_FS_OFFSET;" (sized_type_specifier "long" long) identifier ;) (declaration "undefined1 local_60 [4];" type_identifier (array_declarator "local_60 [4]" identifier [ number_literal ]) ;) (declaration "undefined4 local_5c;" type_identifier identifier ;) (declaration "size_t local_58;" primitive_type identifier ;) (declaration "void *local_50;" primitive_type (pointer_declarator "*local_50" * identifier) ;) (declaration "size_t local_48;" primitive_type identifier ;) (declaration "void *local_40;" primitive_type (pointer_declarator "*local_40" * identifier) ;) (declaration "long local_30;" (sized_type_specifier "long" long) identifier ;) (expression_statement "local_30 = *(long *)(in_FS_OFFSET + 0x28);" (assignment_expression "local_30 = *(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 "local_58 = 0;" (assignment_expression "local_58 = 0" identifier = number_literal) ;) (expression_statement "local_50 = (void *)0x0;" (assignment_expression "local_50 = (void *)0x0" identifier = (cast_expression "(void *)0x0" ( (type_descriptor "void *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) ;) (expression_statement "local_48 = 0;" (assignment_expression "local_48 = 0" identifier = number_literal) ;) (expression_statement "local_40 = (void *)0x0;" (assignment_expression "local_40 = (void *)0x0" identifier = (cast_expression "(void *)0x0" ( (type_descriptor "void *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) ;) (expression_statement "*param_3 = 0;" (assignment_expression "*param_3 = 0" (pointer_expression "*param_3" * identifier) = number_literal) ;) (expression_statement "param_3[1] = 0;" (assignment_expression "param_3[1] = 0" (subscript_expression "param_3[1]" identifier [ number_literal ]) = number_literal) ;) (expression_statement "puVar1 = PTR_DAT_0017f180;" (assignment_expression "puVar1 = PTR_DAT_0017f180" identifier = identifier) ;) (expression_statement "local_5c = 0;" (assignment_expression "local_5c = 0" identifier = number_literal) ;) (expression_statement "iVar2 = (**(code **)(param_1 + 0x68))(local_60,*param_2,1,PTR_DAT_0017f180,&local_5c,&local_58);" (assignment_expression "iVar2 = (**(code **)(param_1 + 0x68))(local_60,*param_2,1,PTR_DAT_0017f180,&local_5c,&local_58)" identifier = (call_expression "(**(code **)(param_1 + 0x68))(local_60,*param_2,1,PTR_DAT_0017f180,&local_5c,&local_58)" (parenthesized_expression "(**(code **)(param_1 + 0x68))" ( (pointer_expression "**(code **)(param_1 + 0x68)" * (pointer_expression "*(code **)(param_1 + 0x68)" * (cast_expression "(code **)(param_1 + 0x68)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(param_1 + 0x68)" ( (binary_expression "param_1 + 0x68" identifier + number_literal) ))))) )) (argument_list "(local_60,*param_2,1,PTR_DAT_0017f180,&local_5c,&local_58)" ( identifier , (pointer_expression "*param_2" * identifier) , number_literal , identifier , (pointer_expression "&local_5c" & identifier) , (pointer_expression "&local_58" & identifier) )))) ;) (expression_statement "uVar3 = 4;" (assignment_expression "uVar3 = 4" identifier = number_literal) ;) (if_statement "if (iVar2 == 0) {\n    local_5c = 0;\n    iVar2 = (**(code **)(param_1 + 0x68))(local_60,param_2[1],2,puVar1,&local_5c,&local_48);\n    if (iVar2 == 0) {\n      *param_3 = local_48 + local_58 + 1;\n      __dest = (void *)FUN_0010ea3d(local_48 + local_58 + 2,1);\n      param_3[1] = (long)__dest;\n      memcpy(__dest,local_50,local_58);\n      *(undefined1 *)(param_3[1] + local_58) = 0x20;\n      memcpy((void *)(param_3[1] + 1 + local_58),local_40,local_48);\n      *(undefined1 *)(param_3[1] + *param_3) = 0;\n      (**(code **)(param_1 + 0x88))(local_60,&local_58);\n      (**(code **)(param_1 + 0x88))(local_60,&local_48);\n      uVar3 = 0;\n    }\n    else {\n      (**(code **)(param_1 + 0x88))(local_60,&local_58);\n      uVar3 = 4;\n    }\n  }" if (parenthesized_expression "(iVar2 == 0)" ( (binary_expression "iVar2 == 0" identifier == number_literal) )) (compound_statement "{\n    local_5c = 0;\n    iVar2 = (**(code **)(param_1 + 0x68))(local_60,param_2[1],2,puVar1,&local_5c,&local_48);\n    if (iVar2 == 0) {\n      *param_3 = local_48 + local_58 + 1;\n      __dest = (void *)FUN_0010ea3d(local_48 + local_58 + 2,1);\n      param_3[1] = (long)__dest;\n      memcpy(__dest,local_50,local_58);\n      *(undefined1 *)(param_3[1] + local_58) = 0x20;\n      memcpy((void *)(param_3[1] + 1 + local_58),local_40,local_48);\n      *(undefined1 *)(param_3[1] + *param_3) = 0;\n      (**(code **)(param_1 + 0x88))(local_60,&local_58);\n      (**(code **)(param_1 + 0x88))(local_60,&local_48);\n      uVar3 = 0;\n    }\n    else {\n      (**(code **)(param_1 + 0x88))(local_60,&local_58);\n      uVar3 = 4;\n    }\n  }" { (expression_statement "local_5c = 0;" (assignment_expression "local_5c = 0" identifier = number_literal) ;) (expression_statement "iVar2 = (**(code **)(param_1 + 0x68))(local_60,param_2[1],2,puVar1,&local_5c,&local_48);" (assignment_expression "iVar2 = (**(code **)(param_1 + 0x68))(local_60,param_2[1],2,puVar1,&local_5c,&local_48)" identifier = (call_expression "(**(code **)(param_1 + 0x68))(local_60,param_2[1],2,puVar1,&local_5c,&local_48)" (parenthesized_expression "(**(code **)(param_1 + 0x68))" ( (pointer_expression "**(code **)(param_1 + 0x68)" * (pointer_expression "*(code **)(param_1 + 0x68)" * (cast_expression "(code **)(param_1 + 0x68)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(param_1 + 0x68)" ( (binary_expression "param_1 + 0x68" identifier + number_literal) ))))) )) (argument_list "(local_60,param_2[1],2,puVar1,&local_5c,&local_48)" ( identifier , (subscript_expression "param_2[1]" identifier [ number_literal ]) , number_literal , identifier , (pointer_expression "&local_5c" & identifier) , (pointer_expression "&local_48" & identifier) )))) ;) (if_statement "if (iVar2 == 0) {\n      *param_3 = local_48 + local_58 + 1;\n      __dest = (void *)FUN_0010ea3d(local_48 + local_58 + 2,1);\n      param_3[1] = (long)__dest;\n      memcpy(__dest,local_50,local_58);\n      *(undefined1 *)(param_3[1] + local_58) = 0x20;\n      memcpy((void *)(param_3[1] + 1 + local_58),local_40,local_48);\n      *(undefined1 *)(param_3[1] + *param_3) = 0;\n      (**(code **)(param_1 + 0x88))(local_60,&local_58);\n      (**(code **)(param_1 + 0x88))(local_60,&local_48);\n      uVar3 = 0;\n    }\n    else {\n      (**(code **)(param_1 + 0x88))(local_60,&local_58);\n      uVar3 = 4;\n    }" if (parenthesized_expression "(iVar2 == 0)" ( (binary_expression "iVar2 == 0" identifier == number_literal) )) (compound_statement "{\n      *param_3 = local_48 + local_58 + 1;\n      __dest = (void *)FUN_0010ea3d(local_48 + local_58 + 2,1);\n      param_3[1] = (long)__dest;\n      memcpy(__dest,local_50,local_58);\n      *(undefined1 *)(param_3[1] + local_58) = 0x20;\n      memcpy((void *)(param_3[1] + 1 + local_58),local_40,local_48);\n      *(undefined1 *)(param_3[1] + *param_3) = 0;\n      (**(code **)(param_1 + 0x88))(local_60,&local_58);\n      (**(code **)(param_1 + 0x88))(local_60,&local_48);\n      uVar3 = 0;\n    }" { (expression_statement "*param_3 = local_48 + local_58 + 1;" (assignment_expression "*param_3 = local_48 + local_58 + 1" (pointer_expression "*param_3" * identifier) = (binary_expression "local_48 + local_58 + 1" (binary_expression "local_48 + local_58" identifier + identifier) + number_literal)) ;) (expression_statement "__dest = (void *)FUN_0010ea3d(local_48 + local_58 + 2,1);" (assignment_expression "__dest = (void *)FUN_0010ea3d(local_48 + local_58 + 2,1)" identifier = (cast_expression "(void *)FUN_0010ea3d(local_48 + local_58 + 2,1)" ( (type_descriptor "void *" primitive_type (abstract_pointer_declarator "*" *)) ) (call_expression "FUN_0010ea3d(local_48 + local_58 + 2,1)" identifier (argument_list "(local_48 + local_58 + 2,1)" ( (binary_expression "local_48 + local_58 + 2" (binary_expression "local_48 + local_58" identifier + identifier) + number_literal) , number_literal ))))) ;) (expression_statement "param_3[1] = (long)__dest;" (assignment_expression "param_3[1] = (long)__dest" (subscript_expression "param_3[1]" identifier [ number_literal ]) = (cast_expression "(long)__dest" ( (type_descriptor "long" (sized_type_specifier "long" long)) ) identifier)) ;) (expression_statement "memcpy(__dest,local_50,local_58);" (call_expression "memcpy(__dest,local_50,local_58)" identifier (argument_list "(__dest,local_50,local_58)" ( identifier , identifier , identifier ))) ;) (expression_statement "*(undefined1 *)(param_3[1] + local_58) = 0x20;" (assignment_expression "*(undefined1 *)(param_3[1] + local_58) = 0x20" (pointer_expression "*(undefined1 *)(param_3[1] + local_58)" * (cast_expression "(undefined1 *)(param_3[1] + local_58)" ( (type_descriptor "undefined1 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_3[1] + local_58)" ( (binary_expression "param_3[1] + local_58" (subscript_expression "param_3[1]" identifier [ number_literal ]) + identifier) )))) = number_literal) ;) (expression_statement "memcpy((void *)(param_3[1] + 1 + local_58),local_40,local_48);" (call_expression "memcpy((void *)(param_3[1] + 1 + local_58),local_40,local_48)" identifier (argument_list "((void *)(param_3[1] + 1 + local_58),local_40,local_48)" ( (cast_expression "(void *)(param_3[1] + 1 + local_58)" ( (type_descriptor "void *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_3[1] + 1 + local_58)" ( (binary_expression "param_3[1] + 1 + local_58" (binary_expression "param_3[1] + 1" (subscript_expression "param_3[1]" identifier [ number_literal ]) + number_literal) + identifier) ))) , identifier , identifier ))) ;) (expression_statement "*(undefined1 *)(param_3[1] + *param_3) = 0;" (assignment_expression "*(undefined1 *)(param_3[1] + *param_3) = 0" (pointer_expression "*(undefined1 *)(param_3[1] + *param_3)" * (cast_expression "(undefined1 *)(param_3[1] + *param_3)" ( (type_descriptor "undefined1 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_3[1] + *param_3)" ( (binary_expression "param_3[1] + *param_3" (subscript_expression "param_3[1]" identifier [ number_literal ]) + (pointer_expression "*param_3" * identifier)) )))) = number_literal) ;) (expression_statement "(**(code **)(param_1 + 0x88))(local_60,&local_58);" (call_expression "(**(code **)(param_1 + 0x88))(local_60,&local_58)" (parenthesized_expression "(**(code **)(param_1 + 0x88))" ( (pointer_expression "**(code **)(param_1 + 0x88)" * (pointer_expression "*(code **)(param_1 + 0x88)" * (cast_expression "(code **)(param_1 + 0x88)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(param_1 + 0x88)" ( (binary_expression "param_1 + 0x88" identifier + number_literal) ))))) )) (argument_list "(local_60,&local_58)" ( identifier , (pointer_expression "&local_58" & identifier) ))) ;) (expression_statement "(**(code **)(param_1 + 0x88))(local_60,&local_48);" (call_expression "(**(code **)(param_1 + 0x88))(local_60,&local_48)" (parenthesized_expression "(**(code **)(param_1 + 0x88))" ( (pointer_expression "**(code **)(param_1 + 0x88)" * (pointer_expression "*(code **)(param_1 + 0x88)" * (cast_expression "(code **)(param_1 + 0x88)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(param_1 + 0x88)" ( (binary_expression "param_1 + 0x88" identifier + number_literal) ))))) )) (argument_list "(local_60,&local_48)" ( identifier , (pointer_expression "&local_48" & identifier) ))) ;) (expression_statement "uVar3 = 0;" (assignment_expression "uVar3 = 0" identifier = number_literal) ;) }) (else_clause "else {\n      (**(code **)(param_1 + 0x88))(local_60,&local_58);\n      uVar3 = 4;\n    }" else (compound_statement "{\n      (**(code **)(param_1 + 0x88))(local_60,&local_58);\n      uVar3 = 4;\n    }" { (expression_statement "(**(code **)(param_1 + 0x88))(local_60,&local_58);" (call_expression "(**(code **)(param_1 + 0x88))(local_60,&local_58)" (parenthesized_expression "(**(code **)(param_1 + 0x88))" ( (pointer_expression "**(code **)(param_1 + 0x88)" * (pointer_expression "*(code **)(param_1 + 0x88)" * (cast_expression "(code **)(param_1 + 0x88)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(param_1 + 0x88)" ( (binary_expression "param_1 + 0x88" identifier + number_literal) ))))) )) (argument_list "(local_60,&local_58)" ( identifier , (pointer_expression "&local_58" & identifier) ))) ;) (expression_statement "uVar3 = 4;" (assignment_expression "uVar3 = 4" identifier = number_literal) ;) }))) })) (if_statement "if (local_30 == *(long *)(in_FS_OFFSET + 0x28)) {\n    return uVar3;\n  }" if (parenthesized_expression "(local_30 == *(long *)(in_FS_OFFSET + 0x28))" ( (binary_expression "local_30 == *(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 uVar3;\n  }" { (return_statement "return uVar3;" return identifier ;) })) (expression_statement "__stack_chk_fail();" (call_expression "__stack_chk_fail()" identifier (argument_list "()" ( ))) ;) })))
(translation_unit (function_definition TYPE (function_declarator IDENT (parameter_list ( (parameter_declaration (sized_type_specifier long) IDENT) , (parameter_declaration TYPE (pointer_declarator * IDENT)) , (parameter_declaration (sized_type_specifier long) (pointer_declarator * IDENT)) ))) (compound_statement { (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE IDENT ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE IDENT ;) (declaration (sized_type_specifier long) IDENT ;) (declaration TYPE (array_declarator IDENT [ LIT ]) ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE IDENT ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration (sized_type_specifier long) 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 = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) LIT)) ;) (expression_statement (assignment_expression IDENT = LIT) ;) (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) LIT)) ;) (expression_statement (assignment_expression (pointer_expression * IDENT) = LIT) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = LIT) ;) (expression_statement (assignment_expression IDENT = IDENT) ;) (expression_statement (assignment_expression IDENT = LIT) ;) (expression_statement (assignment_expression IDENT = (call_expression (parenthesized_expression ( (pointer_expression * (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator * (abstract_pointer_declarator *))) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) )) (argument_list ( IDENT , (pointer_expression * IDENT) , LIT , IDENT , (pointer_expression & IDENT) , (pointer_expression & IDENT) )))) ;) (expression_statement (assignment_expression IDENT = LIT) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT == LIT) )) (compound_statement { (expression_statement (assignment_expression IDENT = LIT) ;) (expression_statement (assignment_expression IDENT = (call_expression (parenthesized_expression ( (pointer_expression * (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator * (abstract_pointer_declarator *))) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) )) (argument_list ( IDENT , (subscript_expression IDENT [ LIT ]) , LIT , IDENT , (pointer_expression & IDENT) , (pointer_expression & IDENT) )))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT == LIT) )) (compound_statement { (expression_statement (assignment_expression (pointer_expression * IDENT) = (binary_expression (binary_expression IDENT + IDENT) + LIT)) ;) (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (call_expression IDENT (argument_list ( (binary_expression (binary_expression IDENT + IDENT) + LIT) , LIT ))))) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = (cast_expression ( (type_descriptor (sized_type_specifier long)) ) IDENT)) ;) (expression_statement (call_expression IDENT (argument_list ( IDENT , IDENT , IDENT ))) ;) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression (subscript_expression IDENT [ LIT ]) + IDENT) )))) = LIT) ;) (expression_statement (call_expression IDENT (argument_list ( (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression (binary_expression (subscript_expression IDENT [ LIT ]) + LIT) + IDENT) ))) , IDENT , IDENT ))) ;) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression (subscript_expression IDENT [ LIT ]) + (pointer_expression * IDENT)) )))) = LIT) ;) (expression_statement (call_expression (parenthesized_expression ( (pointer_expression * (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator * (abstract_pointer_declarator *))) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) )) (argument_list ( IDENT , (pointer_expression & IDENT) ))) ;) (expression_statement (call_expression (parenthesized_expression ( (pointer_expression * (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator * (abstract_pointer_declarator *))) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) )) (argument_list ( IDENT , (pointer_expression & IDENT) ))) ;) (expression_statement (assignment_expression IDENT = LIT) ;) }) (else_clause else (compound_statement { (expression_statement (call_expression (parenthesized_expression ( (pointer_expression * (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator * (abstract_pointer_declarator *))) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) )) (argument_list ( IDENT , (pointer_expression & IDENT) ))) ;) (expression_statement (assignment_expression IDENT = LIT) ;) }))) })) (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 ( ))) ;) })))
(function_definition "undefined4 FUN_0013d99c(long param_1,undefined4 *param_2,long *param_3)\n\n{\n  undefined *puVar1;\n  int iVar2;\n  void *__dest;\n  undefined4 uVar3;\n  long in_FS_OFFSET;\n  undefined1 local_60 [4];\n  undefined4 local_5c;\n  size_t local_58;\n  void *local_50;\n  size_t local_48;\n  void *local_40;\n  long local_30;\n  \n  local_30 = *(long *)(in_FS_OFFSET + 0x28);\n  local_58 = 0;\n  local_50 = (void *)0x0;\n  local_48 = 0;\n  local_40 = (void *)0x0;\n  *param_3 = 0;\n  param_3[1] = 0;\n  puVar1 = PTR_DAT_0017f180;\n  local_5c = 0;\n  iVar2 = (**(code **)(param_1 + 0x68))(local_60,*param_2,1,PTR_DAT_0017f180,&local_5c,&local_58);\n  uVar3 = 4;\n  if (iVar2 == 0) {\n    local_5c = 0;\n    iVar2 = (**(code **)(param_1 + 0x68))(local_60,param_2[1],2,puVar1,&local_5c,&local_48);\n    if (iVar2 == 0) {\n      *param_3 = local_48 + local_58 + 1;\n      __dest = (void *)FUN_0010ea3d(local_48 + local_58 + 2,1);\n      param_3[1] = (long)__dest;\n      memcpy(__dest,local_50,local_58);\n      *(undefined1 *)(param_3[1] + local_58) = 0x20;\n      memcpy((void *)(param_3[1] + 1 + local_58),local_40,local_48);\n      *(undefined1 *)(param_3[1] + *param_3) = 0;\n      (**(code **)(param_1 + 0x88))(local_60,&local_58);\n      (**(code **)(param_1 + 0x88))(local_60,&local_48);\n      uVar3 = 0;\n    }\n    else {\n      (**(code **)(param_1 + 0x88))(local_60,&local_58);\n      uVar3 = 4;\n    }\n  }\n  if (local_30 == *(long *)(in_FS_OFFSET + 0x28)) {\n    return uVar3;\n  }\n                    \n  __stack_chk_fail();\n}" (type_identifier "undefined4") (function_declarator "FUN_0013d99c(long param_1,undefined4 *param_2,long *param_3)" (identifier "FUN_0013d99c") (parameter_list "(long param_1,undefined4 *param_2,long *param_3)" (( "(") (parameter_declaration "long param_1" (sized_type_specifier "long" (long "long")) (identifier "param_1")) (, ",") (parameter_declaration "undefined4 *param_2" (type_identifier "undefined4") (pointer_declarator "*param_2" (* "*") (identifier "param_2"))) (, ",") (parameter_declaration "long *param_3" (sized_type_specifier "long" (long "long")) (pointer_declarator "*param_3" (* "*") (identifier "param_3"))) () ")"))) (compound_statement "{\n  undefined *puVar1;\n  int iVar2;\n  void *__dest;\n  undefined4 uVar3;\n  long in_FS_OFFSET;\n  undefined1 local_60 [4];\n  undefined4 local_5c;\n  size_t local_58;\n  void *local_50;\n  size_t local_48;\n  void *local_40;\n  long local_30;\n  \n  local_30 = *(long *)(in_FS_OFFSET + 0x28);\n  local_58 = 0;\n  local_50 = (void *)0x0;\n  local_48 = 0;\n  local_40 = (void *)0x0;\n  *param_3 = 0;\n  param_3[1] = 0;\n  puVar1 = PTR_DAT_0017f180;\n  local_5c = 0;\n  iVar2 = (**(code **)(param_1 + 0x68))(local_60,*param_2,1,PTR_DAT_0017f180,&local_5c,&local_58);\n  uVar3 = 4;\n  if (iVar2 == 0) {\n    local_5c = 0;\n    iVar2 = (**(code **)(param_1 + 0x68))(local_60,param_2[1],2,puVar1,&local_5c,&local_48);\n    if (iVar2 == 0) {\n      *param_3 = local_48 + local_58 + 1;\n      __dest = (void *)FUN_0010ea3d(local_48 + local_58 + 2,1);\n      param_3[1] = (long)__dest;\n      memcpy(__dest,local_50,local_58);\n      *(undefined1 *)(param_3[1] + local_58) = 0x20;\n      memcpy((void *)(param_3[1] + 1 + local_58),local_40,local_48);\n      *(undefined1 *)(param_3[1] + *param_3) = 0;\n      (**(code **)(param_1 + 0x88))(local_60,&local_58);\n      (**(code **)(param_1 + 0x88))(local_60,&local_48);\n      uVar3 = 0;\n    }\n    else {\n      (**(code **)(param_1 + 0x88))(local_60,&local_58);\n      uVar3 = 4;\n    }\n  }\n  if (local_30 == *(long *)(in_FS_OFFSET + 0x28)) {\n    return uVar3;\n  }\n                    \n  __stack_chk_fail();\n}" ({ "{") (declaration "undefined *puVar1;" (type_identifier "undefined") (pointer_declarator "*puVar1" (* "*") (identifier "puVar1")) (; ";")) (declaration "int iVar2;" (primitive_type "int") (identifier "iVar2") (; ";")) (declaration "void *__dest;" (primitive_type "void") (pointer_declarator "*__dest" (* "*") (identifier "__dest")) (; ";")) (declaration "undefined4 uVar3;" (type_identifier "undefined4") (identifier "uVar3") (; ";")) (declaration "long in_FS_OFFSET;" (sized_type_specifier "long" (long "long")) (identifier "in_FS_OFFSET") (; ";")) (declaration "undefined1 local_60 [4];" (type_identifier "undefined1") (array_declarator "local_60 [4]" (identifier "local_60") ([ "[") (number_literal "4") (] "]")) (; ";")) (declaration "undefined4 local_5c;" (type_identifier "undefined4") (identifier "local_5c") (; ";")) (declaration "size_t local_58;" (primitive_type "size_t") (identifier "local_58") (; ";")) (declaration "void *local_50;" (primitive_type "void") (pointer_declarator "*local_50" (* "*") (identifier "local_50")) (; ";")) (declaration "size_t local_48;" (primitive_type "size_t") (identifier "local_48") (; ";")) (declaration "void *local_40;" (primitive_type "void") (pointer_declarator "*local_40" (* "*") (identifier "local_40")) (; ";")) (declaration "long local_30;" (sized_type_specifier "long" (long "long")) (identifier "local_30") (; ";")) (expression_statement "local_30 = *(long *)(in_FS_OFFSET + 0x28);" (assignment_expression "local_30 = *(long *)(in_FS_OFFSET + 0x28)" (identifier "local_30") (= "=") (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 "local_58 = 0;" (assignment_expression "local_58 = 0" (identifier "local_58") (= "=") (number_literal "0")) (; ";")) (expression_statement "local_50 = (void *)0x0;" (assignment_expression "local_50 = (void *)0x0" (identifier "local_50") (= "=") (cast_expression "(void *)0x0" (( "(") (type_descriptor "void *" (primitive_type "void") (abstract_pointer_declarator "*" (* "*"))) () ")") (number_literal "0x0"))) (; ";")) (expression_statement "local_48 = 0;" (assignment_expression "local_48 = 0" (identifier "local_48") (= "=") (number_literal "0")) (; ";")) (expression_statement "local_40 = (void *)0x0;" (assignment_expression "local_40 = (void *)0x0" (identifier "local_40") (= "=") (cast_expression "(void *)0x0" (( "(") (type_descriptor "void *" (primitive_type "void") (abstract_pointer_declarator "*" (* "*"))) () ")") (number_literal "0x0"))) (; ";")) (expression_statement "*param_3 = 0;" (assignment_expression "*param_3 = 0" (pointer_expression "*param_3" (* "*") (identifier "param_3")) (= "=") (number_literal "0")) (; ";")) (expression_statement "param_3[1] = 0;" (assignment_expression "param_3[1] = 0" (subscript_expression "param_3[1]" (identifier "param_3") ([ "[") (number_literal "1") (] "]")) (= "=") (number_literal "0")) (; ";")) (expression_statement "puVar1 = PTR_DAT_0017f180;" (assignment_expression "puVar1 = PTR_DAT_0017f180" (identifier "puVar1") (= "=") (identifier "PTR_DAT_0017f180")) (; ";")) (expression_statement "local_5c = 0;" (assignment_expression "local_5c = 0" (identifier "local_5c") (= "=") (number_literal "0")) (; ";")) (expression_statement "iVar2 = (**(code **)(param_1 + 0x68))(local_60,*param_2,1,PTR_DAT_0017f180,&local_5c,&local_58);" (assignment_expression "iVar2 = (**(code **)(param_1 + 0x68))(local_60,*param_2,1,PTR_DAT_0017f180,&local_5c,&local_58)" (identifier "iVar2") (= "=") (call_expression "(**(code **)(param_1 + 0x68))(local_60,*param_2,1,PTR_DAT_0017f180,&local_5c,&local_58)" (parenthesized_expression "(**(code **)(param_1 + 0x68))" (( "(") (pointer_expression "**(code **)(param_1 + 0x68)" (* "*") (pointer_expression "*(code **)(param_1 + 0x68)" (* "*") (cast_expression "(code **)(param_1 + 0x68)" (( "(") (type_descriptor "code **" (type_identifier "code") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (parenthesized_expression "(param_1 + 0x68)" (( "(") (binary_expression "param_1 + 0x68" (identifier "param_1") (+ "+") (number_literal "0x68")) () ")"))))) () ")")) (argument_list "(local_60,*param_2,1,PTR_DAT_0017f180,&local_5c,&local_58)" (( "(") (identifier "local_60") (, ",") (pointer_expression "*param_2" (* "*") (identifier "param_2")) (, ",") (number_literal "1") (, ",") (identifier "PTR_DAT_0017f180") (, ",") (pointer_expression "&local_5c" (& "&") (identifier "local_5c")) (, ",") (pointer_expression "&local_58" (& "&") (identifier "local_58")) () ")")))) (; ";")) (expression_statement "uVar3 = 4;" (assignment_expression "uVar3 = 4" (identifier "uVar3") (= "=") (number_literal "4")) (; ";")) (if_statement "if (iVar2 == 0) {\n    local_5c = 0;\n    iVar2 = (**(code **)(param_1 + 0x68))(local_60,param_2[1],2,puVar1,&local_5c,&local_48);\n    if (iVar2 == 0) {\n      *param_3 = local_48 + local_58 + 1;\n      __dest = (void *)FUN_0010ea3d(local_48 + local_58 + 2,1);\n      param_3[1] = (long)__dest;\n      memcpy(__dest,local_50,local_58);\n      *(undefined1 *)(param_3[1] + local_58) = 0x20;\n      memcpy((void *)(param_3[1] + 1 + local_58),local_40,local_48);\n      *(undefined1 *)(param_3[1] + *param_3) = 0;\n      (**(code **)(param_1 + 0x88))(local_60,&local_58);\n      (**(code **)(param_1 + 0x88))(local_60,&local_48);\n      uVar3 = 0;\n    }\n    else {\n      (**(code **)(param_1 + 0x88))(local_60,&local_58);\n      uVar3 = 4;\n    }\n  }" (if "if") (parenthesized_expression "(iVar2 == 0)" (( "(") (binary_expression "iVar2 == 0" (identifier "iVar2") (== "==") (number_literal "0")) () ")")) (compound_statement "{\n    local_5c = 0;\n    iVar2 = (**(code **)(param_1 + 0x68))(local_60,param_2[1],2,puVar1,&local_5c,&local_48);\n    if (iVar2 == 0) {\n      *param_3 = local_48 + local_58 + 1;\n      __dest = (void *)FUN_0010ea3d(local_48 + local_58 + 2,1);\n      param_3[1] = (long)__dest;\n      memcpy(__dest,local_50,local_58);\n      *(undefined1 *)(param_3[1] + local_58) = 0x20;\n      memcpy((void *)(param_3[1] + 1 + local_58),local_40,local_48);\n      *(undefined1 *)(param_3[1] + *param_3) = 0;\n      (**(code **)(param_1 + 0x88))(local_60,&local_58);\n      (**(code **)(param_1 + 0x88))(local_60,&local_48);\n      uVar3 = 0;\n    }\n    else {\n      (**(code **)(param_1 + 0x88))(local_60,&local_58);\n      uVar3 = 4;\n    }\n  }" ({ "{") (expression_statement "local_5c = 0;" (assignment_expression "local_5c = 0" (identifier "local_5c") (= "=") (number_literal "0")) (; ";")) (expression_statement "iVar2 = (**(code **)(param_1 + 0x68))(local_60,param_2[1],2,puVar1,&local_5c,&local_48);" (assignment_expression "iVar2 = (**(code **)(param_1 + 0x68))(local_60,param_2[1],2,puVar1,&local_5c,&local_48)" (identifier "iVar2") (= "=") (call_expression "(**(code **)(param_1 + 0x68))(local_60,param_2[1],2,puVar1,&local_5c,&local_48)" (parenthesized_expression "(**(code **)(param_1 + 0x68))" (( "(") (pointer_expression "**(code **)(param_1 + 0x68)" (* "*") (pointer_expression "*(code **)(param_1 + 0x68)" (* "*") (cast_expression "(code **)(param_1 + 0x68)" (( "(") (type_descriptor "code **" (type_identifier "code") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (parenthesized_expression "(param_1 + 0x68)" (( "(") (binary_expression "param_1 + 0x68" (identifier "param_1") (+ "+") (number_literal "0x68")) () ")"))))) () ")")) (argument_list "(local_60,param_2[1],2,puVar1,&local_5c,&local_48)" (( "(") (identifier "local_60") (, ",") (subscript_expression "param_2[1]" (identifier "param_2") ([ "[") (number_literal "1") (] "]")) (, ",") (number_literal "2") (, ",") (identifier "puVar1") (, ",") (pointer_expression "&local_5c" (& "&") (identifier "local_5c")) (, ",") (pointer_expression "&local_48" (& "&") (identifier "local_48")) () ")")))) (; ";")) (if_statement "if (iVar2 == 0) {\n      *param_3 = local_48 + local_58 + 1;\n      __dest = (void *)FUN_0010ea3d(local_48 + local_58 + 2,1);\n      param_3[1] = (long)__dest;\n      memcpy(__dest,local_50,local_58);\n      *(undefined1 *)(param_3[1] + local_58) = 0x20;\n      memcpy((void *)(param_3[1] + 1 + local_58),local_40,local_48);\n      *(undefined1 *)(param_3[1] + *param_3) = 0;\n      (**(code **)(param_1 + 0x88))(local_60,&local_58);\n      (**(code **)(param_1 + 0x88))(local_60,&local_48);\n      uVar3 = 0;\n    }\n    else {\n      (**(code **)(param_1 + 0x88))(local_60,&local_58);\n      uVar3 = 4;\n    }" (if "if") (parenthesized_expression "(iVar2 == 0)" (( "(") (binary_expression "iVar2 == 0" (identifier "iVar2") (== "==") (number_literal "0")) () ")")) (compound_statement "{\n      *param_3 = local_48 + local_58 + 1;\n      __dest = (void *)FUN_0010ea3d(local_48 + local_58 + 2,1);\n      param_3[1] = (long)__dest;\n      memcpy(__dest,local_50,local_58);\n      *(undefined1 *)(param_3[1] + local_58) = 0x20;\n      memcpy((void *)(param_3[1] + 1 + local_58),local_40,local_48);\n      *(undefined1 *)(param_3[1] + *param_3) = 0;\n      (**(code **)(param_1 + 0x88))(local_60,&local_58);\n      (**(code **)(param_1 + 0x88))(local_60,&local_48);\n      uVar3 = 0;\n    }" ({ "{") (expression_statement "*param_3 = local_48 + local_58 + 1;" (assignment_expression "*param_3 = local_48 + local_58 + 1" (pointer_expression "*param_3" (* "*") (identifier "param_3")) (= "=") (binary_expression "local_48 + local_58 + 1" (binary_expression "local_48 + local_58" (identifier "local_48") (+ "+") (identifier "local_58")) (+ "+") (number_literal "1"))) (; ";")) (expression_statement "__dest = (void *)FUN_0010ea3d(local_48 + local_58 + 2,1);" (assignment_expression "__dest = (void *)FUN_0010ea3d(local_48 + local_58 + 2,1)" (identifier "__dest") (= "=") (cast_expression "(void *)FUN_0010ea3d(local_48 + local_58 + 2,1)" (( "(") (type_descriptor "void *" (primitive_type "void") (abstract_pointer_declarator "*" (* "*"))) () ")") (call_expression "FUN_0010ea3d(local_48 + local_58 + 2,1)" (identifier "FUN_0010ea3d") (argument_list "(local_48 + local_58 + 2,1)" (( "(") (binary_expression "local_48 + local_58 + 2" (binary_expression "local_48 + local_58" (identifier "local_48") (+ "+") (identifier "local_58")) (+ "+") (number_literal "2")) (, ",") (number_literal "1") () ")"))))) (; ";")) (expression_statement "param_3[1] = (long)__dest;" (assignment_expression "param_3[1] = (long)__dest" (subscript_expression "param_3[1]" (identifier "param_3") ([ "[") (number_literal "1") (] "]")) (= "=") (cast_expression "(long)__dest" (( "(") (type_descriptor "long" (sized_type_specifier "long" (long "long"))) () ")") (identifier "__dest"))) (; ";")) (expression_statement "memcpy(__dest,local_50,local_58);" (call_expression "memcpy(__dest,local_50,local_58)" (identifier "memcpy") (argument_list "(__dest,local_50,local_58)" (( "(") (identifier "__dest") (, ",") (identifier "local_50") (, ",") (identifier "local_58") () ")"))) (; ";")) (expression_statement "*(undefined1 *)(param_3[1] + local_58) = 0x20;" (assignment_expression "*(undefined1 *)(param_3[1] + local_58) = 0x20" (pointer_expression "*(undefined1 *)(param_3[1] + local_58)" (* "*") (cast_expression "(undefined1 *)(param_3[1] + local_58)" (( "(") (type_descriptor "undefined1 *" (type_identifier "undefined1") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_3[1] + local_58)" (( "(") (binary_expression "param_3[1] + local_58" (subscript_expression "param_3[1]" (identifier "param_3") ([ "[") (number_literal "1") (] "]")) (+ "+") (identifier "local_58")) () ")")))) (= "=") (number_literal "0x20")) (; ";")) (expression_statement "memcpy((void *)(param_3[1] + 1 + local_58),local_40,local_48);" (call_expression "memcpy((void *)(param_3[1] + 1 + local_58),local_40,local_48)" (identifier "memcpy") (argument_list "((void *)(param_3[1] + 1 + local_58),local_40,local_48)" (( "(") (cast_expression "(void *)(param_3[1] + 1 + local_58)" (( "(") (type_descriptor "void *" (primitive_type "void") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_3[1] + 1 + local_58)" (( "(") (binary_expression "param_3[1] + 1 + local_58" (binary_expression "param_3[1] + 1" (subscript_expression "param_3[1]" (identifier "param_3") ([ "[") (number_literal "1") (] "]")) (+ "+") (number_literal "1")) (+ "+") (identifier "local_58")) () ")"))) (, ",") (identifier "local_40") (, ",") (identifier "local_48") () ")"))) (; ";")) (expression_statement "*(undefined1 *)(param_3[1] + *param_3) = 0;" (assignment_expression "*(undefined1 *)(param_3[1] + *param_3) = 0" (pointer_expression "*(undefined1 *)(param_3[1] + *param_3)" (* "*") (cast_expression "(undefined1 *)(param_3[1] + *param_3)" (( "(") (type_descriptor "undefined1 *" (type_identifier "undefined1") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_3[1] + *param_3)" (( "(") (binary_expression "param_3[1] + *param_3" (subscript_expression "param_3[1]" (identifier "param_3") ([ "[") (number_literal "1") (] "]")) (+ "+") (pointer_expression "*param_3" (* "*") (identifier "param_3"))) () ")")))) (= "=") (number_literal "0")) (; ";")) (expression_statement "(**(code **)(param_1 + 0x88))(local_60,&local_58);" (call_expression "(**(code **)(param_1 + 0x88))(local_60,&local_58)" (parenthesized_expression "(**(code **)(param_1 + 0x88))" (( "(") (pointer_expression "**(code **)(param_1 + 0x88)" (* "*") (pointer_expression "*(code **)(param_1 + 0x88)" (* "*") (cast_expression "(code **)(param_1 + 0x88)" (( "(") (type_descriptor "code **" (type_identifier "code") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (parenthesized_expression "(param_1 + 0x88)" (( "(") (binary_expression "param_1 + 0x88" (identifier "param_1") (+ "+") (number_literal "0x88")) () ")"))))) () ")")) (argument_list "(local_60,&local_58)" (( "(") (identifier "local_60") (, ",") (pointer_expression "&local_58" (& "&") (identifier "local_58")) () ")"))) (; ";")) (expression_statement "(**(code **)(param_1 + 0x88))(local_60,&local_48);" (call_expression "(**(code **)(param_1 + 0x88))(local_60,&local_48)" (parenthesized_expression "(**(code **)(param_1 + 0x88))" (( "(") (pointer_expression "**(code **)(param_1 + 0x88)" (* "*") (pointer_expression "*(code **)(param_1 + 0x88)" (* "*") (cast_expression "(code **)(param_1 + 0x88)" (( "(") (type_descriptor "code **" (type_identifier "code") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (parenthesized_expression "(param_1 + 0x88)" (( "(") (binary_expression "param_1 + 0x88" (identifier "param_1") (+ "+") (number_literal "0x88")) () ")"))))) () ")")) (argument_list "(local_60,&local_48)" (( "(") (identifier "local_60") (, ",") (pointer_expression "&local_48" (& "&") (identifier "local_48")) () ")"))) (; ";")) (expression_statement "uVar3 = 0;" (assignment_expression "uVar3 = 0" (identifier "uVar3") (= "=") (number_literal "0")) (; ";")) (} "}")) (else_clause "else {\n      (**(code **)(param_1 + 0x88))(local_60,&local_58);\n      uVar3 = 4;\n    }" (else "else") (compound_statement "{\n      (**(code **)(param_1 + 0x88))(local_60,&local_58);\n      uVar3 = 4;\n    }" ({ "{") (expression_statement "(**(code **)(param_1 + 0x88))(local_60,&local_58);" (call_expression "(**(code **)(param_1 + 0x88))(local_60,&local_58)" (parenthesized_expression "(**(code **)(param_1 + 0x88))" (( "(") (pointer_expression "**(code **)(param_1 + 0x88)" (* "*") (pointer_expression "*(code **)(param_1 + 0x88)" (* "*") (cast_expression "(code **)(param_1 + 0x88)" (( "(") (type_descriptor "code **" (type_identifier "code") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (parenthesized_expression "(param_1 + 0x88)" (( "(") (binary_expression "param_1 + 0x88" (identifier "param_1") (+ "+") (number_literal "0x88")) () ")"))))) () ")")) (argument_list "(local_60,&local_58)" (( "(") (identifier "local_60") (, ",") (pointer_expression "&local_58" (& "&") (identifier "local_58")) () ")"))) (; ";")) (expression_statement "uVar3 = 4;" (assignment_expression "uVar3 = 4" (identifier "uVar3") (= "=") (number_literal "4")) (; ";")) (} "}")))) (} "}"))) (if_statement "if (local_30 == *(long *)(in_FS_OFFSET + 0x28)) {\n    return uVar3;\n  }" (if "if") (parenthesized_expression "(local_30 == *(long *)(in_FS_OFFSET + 0x28))" (( "(") (binary_expression "local_30 == *(long *)(in_FS_OFFSET + 0x28)" (identifier "local_30") (== "==") (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 uVar3;\n  }" ({ "{") (return_statement "return uVar3;" (return "return") (identifier "uVar3") (; ";")) (} "}"))) (expression_statement "__stack_chk_fail();" (call_expression "__stack_chk_fail()" (identifier "__stack_chk_fail") (argument_list "()" (( "(") () ")"))) (; ";")) (} "}")))

type_1 function_1(type_2 *lib,type_3 ctx,type_4 *buf)

{
  long var_5;
  type_5 pgVar2;
  type_6 var_2;
  void *__dest;
  type_1 SVar4;
  long var_1;
  type_6 lmin;
  type_6 ccc;
  type_7 msg_maj;
  type_7 msg_min;
  
  var_5 = *(long *)(var_1 + 0x28);
  msg_maj.length = 0;
  msg_maj.value = (void *)0x0;
  msg_min.length = 0;
  msg_min.value = (void *)0x0;
  buf->length = 0;
  buf->value = (void *)0x0;
  pgVar2 = GSS_MECH_KRB5;
  ccc = 0;
                    /* WARNING: Load size is inaccurate */
  var_2 = (*(lib->u).gssapi.display_status)(&lmin,*ctx,1,GSS_MECH_KRB5,&ccc,&msg_maj);
  SVar4 = SSH_GSS_FAILURE;
  if (var_2 == 0) {
    ccc = 0;
    var_2 = (*(lib->u).gssapi.display_status)
                      (&lmin,*(type_6 *)((long)ctx + 4),2,pgVar2,&ccc,&msg_min);
    if (var_2 == 0) {
      buf->length = msg_min.length + msg_maj.length + 1;
      __dest = var_3(msg_min.length + msg_maj.length + 2,1);
      buf->value = __dest;
      var_4(__dest,msg_maj.value,msg_maj.length);
      *(type_8 *)((long)buf->value + msg_maj.length) = 0x20;
      var_4((void *)((long)buf->value + msg_maj.length + 1),msg_min.value,msg_min.length);
      *(type_8 *)((long)buf->value + buf->length) = 0;
      (*(lib->u).gssapi.release_buffer)(&lmin,&msg_maj);
      (*(lib->u).gssapi.release_buffer)(&lmin,&msg_min);
      SVar4 = SSH_GSS_OK;
    }
    else {
      (*(lib->u).gssapi.release_buffer)(&lmin,&msg_maj);
      SVar4 = SSH_GSS_FAILURE;
    }
  }
  if (var_5 == *(long *)(var_1 + 0x28)) {
    return SVar4;
  }
                    /* WARNING: Subroutine does not return */
  var_6();
}


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

undefined4 MASKED(long param_1,undefined4 *param_2,long *param_3)

{
  undefined *puVar1;
  int iVar2;
  void *__dest;
  undefined4 uVar3;
  long in_FS_OFFSET;
  undefined1 local_60 [4];
  undefined4 local_5c;
  size_t local_58;
  void *local_50;
  size_t local_48;
  void *local_40;
  long local_30;
  
  local_30 = *(long *)(in_FS_OFFSET + 0x28);
  local_58 = 0;
  local_50 = (void *)0x0;
  local_48 = 0;
  local_40 = (void *)0x0;
  *param_3 = 0;
  param_3[1] = 0;
  puVar1 = PTR_DAT_0017f180;
  local_5c = 0;
  iVar2 = (**(code **)(param_1 + 0x68))(local_60,*param_2,1,PTR_DAT_0017f180,&local_5c,&local_58);
  uVar3 = 4;
  if (iVar2 == 0) {
    local_5c = 0;
    iVar2 = (**(code **)(param_1 + 0x68))(local_60,param_2[1],2,puVar1,&local_5c,&local_48);
    if (iVar2 == 0) {
      *param_3 = local_48 + local_58 + 1;
      __dest = (void *)FUN_0010ea3d(local_48 + local_58 + 2,1);
      param_3[1] = (long)__dest;
      memcpy(__dest,local_50,local_58);
      *(undefined1 *)(param_3[1] + local_58) = 0x20;
      memcpy((void *)(param_3[1] + 1 + local_58),local_40,local_48);
      *(undefined1 *)(param_3[1] + *param_3) = 0;
      (**(code **)(param_1 + 0x88))(local_60,&local_58);
      (**(code **)(param_1 + 0x88))(local_60,&local_48);
      uVar3 = 0;
    }
    else {
      (**(code **)(param_1 + 0x88))(local_60,&local_58);
      uVar3 = 4;
    }
  }
  if (local_30 == *(long *)(in_FS_OFFSET + 0x28)) {
    return uVar3;
  }
                    /* WARNING: Subroutine does not return */
  __stack_chk_fail();
}

