
void gldelf_k1om_add_options
               (int ns,char **shortopts,int nl,option **longopts,int nrl,option **really_longopts)

{
  undefined4 uVar1;
  char *pcVar2;
  option *poVar3;
  ulong uVar4;
  long lVar5;
  undefined8 *puVar6;
  undefined8 *puVar7;
  byte bVar8;
  
  bVar8 = 0;
  lVar5 = (long)ns;
  pcVar2 = (char *)xrealloc(*shortopts,lVar5 + 5);
  uVar1 = gldelf_k1om_add_options::xtra_short._0_4_;
  *shortopts = pcVar2;
  *(undefined4 *)(pcVar2 + lVar5) = uVar1;
  pcVar2[lVar5 + 4] = gldelf_k1om_add_options::xtra_short[4];
  poVar3 = (option *)xrealloc(*longopts,((long)nl + 0xe) * 0x20);
  *longopts = poVar3;
  poVar3 = poVar3 + nl;
  poVar3->name = gldelf_k1om_add_options::xtra_long[0].name;
  puVar7 = (undefined8 *)((ulong)&poVar3->has_arg & 0xfffffffffffffff8);
  uVar1 = gldelf_k1om_add_options::xtra_long[0xd]._28_4_;
  poVar3[0xd].val = gldelf_k1om_add_options::xtra_long[0xd].val;
  *(undefined4 *)&poVar3[0xd].field_0x1c = uVar1;
  lVar5 = (long)poVar3 - (long)puVar7;
  puVar6 = (undefined8 *)((long)gldelf_k1om_add_options::xtra_long - lVar5);
  for (uVar4 = (ulong)((int)lVar5 + 0x1c0U >> 3); uVar4 != 0; uVar4 = uVar4 - 1) {
    *puVar7 = *puVar6;
    puVar6 = puVar6 + (ulong)bVar8 * -2 + 1;
    puVar7 = puVar7 + (ulong)bVar8 * -2 + 1;
  }
  return;
}



void FUN_00141790(int param_1,long *param_2,int param_3,long *param_4)

{
  undefined4 uVar1;
  long lVar2;
  ulong uVar3;
  long lVar4;
  long lVar5;
  undefined8 *puVar6;
  undefined8 *puVar7;
  byte bVar8;
  
  bVar8 = 0;
  lVar5 = (long)param_1;
  lVar4 = ((long)param_3 + 0xe) * 0x20;
  lVar2 = xrealloc(*param_2,lVar5 + 5);
  uVar1 = DAT_00285214;
  *param_2 = lVar2;
  *(undefined4 *)(lVar2 + lVar5) = uVar1;
  *(undefined1 *)(lVar2 + 4 + lVar5) = DAT_00285218;
  lVar2 = xrealloc(*param_4,lVar4);
  *param_4 = lVar2;
  puVar7 = (undefined8 *)(lVar2 + -0x1c0 + lVar4);
  *puVar7 = PTR_s_audit_002afca0;
  puVar7[0x37] = DAT_002afe58;
  lVar2 = (long)puVar7 - (long)((ulong)(puVar7 + 1) & 0xfffffffffffffff8);
  puVar6 = (undefined8 *)((long)&PTR_s_audit_002afca0 - lVar2);
  puVar7 = (undefined8 *)((ulong)(puVar7 + 1) & 0xfffffffffffffff8);
  for (uVar3 = (ulong)((int)lVar2 + 0x1c0U >> 3); uVar3 != 0; uVar3 = uVar3 - 1) {
    *puVar7 = *puVar6;
    puVar6 = puVar6 + (ulong)bVar8 * -2 + 1;
    puVar7 = puVar7 + (ulong)bVar8 * -2 + 1;
  }
  return;
}


PUSH R13
MOV R13,RSI
PUSH R12
MOV R12,RCX
PUSH RBP
MOVSXD RBP,EDI
PUSH RBX
LEA RSI,[RBP + 0x5]
MOVSXD RBX,EDX
ADD RBX,0xe
SHL RBX,0x5
SUB RSP,0x8
MOV RDI,qword ptr [R13]
CALL 0x0010d400
MOV EDX,dword ptr [0x00285214]
MOV RSI,RBX
MOV qword ptr [R13],RAX
MOV dword ptr [RAX + RBP*0x1],EDX
MOVZX EDX,byte ptr [0x00285218]
MOV byte ptr [RAX + RBP*0x1 + 0x4],DL
MOV RDI,qword ptr [R12]
CALL 0x0010d400
LEA RSI,[0x2afca0]
MOV qword ptr [R12],RAX
LEA RCX,[RAX + RBX*0x1 + -0x1c0]
MOV RAX,qword ptr [0x002afca0]
LEA RDI,[RCX + 0x8]
MOV qword ptr [RCX],RAX
MOV RAX,qword ptr [0x002afe58]
AND RDI,-0x8
MOV qword ptr [RCX + 0x1b8],RAX
SUB RCX,RDI
SUB RSI,RCX
ADD ECX,0x1c0
SHR ECX,0x3
MOVSQ.REP RDI,RSI
ADD RSP,0x8
POP RBX
POP RBP
POP R12
POP R13
RET
(translation_unit "void FUN_00141790(int param_1,long *param_2,int param_3,long *param_4)\n\n{\n  undefined4 uVar1;\n  long lVar2;\n  ulong uVar3;\n  long lVar4;\n  long lVar5;\n  undefined8 *puVar6;\n  undefined8 *puVar7;\n  byte bVar8;\n  \n  bVar8 = 0;\n  lVar5 = (long)param_1;\n  lVar4 = ((long)param_3 + 0xe) * 0x20;\n  lVar2 = xrealloc(*param_2,lVar5 + 5);\n  uVar1 = DAT_00285214;\n  *param_2 = lVar2;\n  *(undefined4 *)(lVar2 + lVar5) = uVar1;\n  *(undefined1 *)(lVar2 + 4 + lVar5) = DAT_00285218;\n  lVar2 = xrealloc(*param_4,lVar4);\n  *param_4 = lVar2;\n  puVar7 = (undefined8 *)(lVar2 + -0x1c0 + lVar4);\n  *puVar7 = PTR_s_audit_002afca0;\n  puVar7[0x37] = DAT_002afe58;\n  lVar2 = (long)puVar7 - (long)((ulong)(puVar7 + 1) & 0xfffffffffffffff8);\n  puVar6 = (undefined8 *)((long)&PTR_s_audit_002afca0 - lVar2);\n  puVar7 = (undefined8 *)((ulong)(puVar7 + 1) & 0xfffffffffffffff8);\n  for (uVar3 = (ulong)((int)lVar2 + 0x1c0U >> 3); uVar3 != 0; uVar3 = uVar3 - 1) {\n    *puVar7 = *puVar6;\n    puVar6 = puVar6 + (ulong)bVar8 * -2 + 1;\n    puVar7 = puVar7 + (ulong)bVar8 * -2 + 1;\n  }\n  return;\n}\n\n" (function_definition "void FUN_00141790(int param_1,long *param_2,int param_3,long *param_4)\n\n{\n  undefined4 uVar1;\n  long lVar2;\n  ulong uVar3;\n  long lVar4;\n  long lVar5;\n  undefined8 *puVar6;\n  undefined8 *puVar7;\n  byte bVar8;\n  \n  bVar8 = 0;\n  lVar5 = (long)param_1;\n  lVar4 = ((long)param_3 + 0xe) * 0x20;\n  lVar2 = xrealloc(*param_2,lVar5 + 5);\n  uVar1 = DAT_00285214;\n  *param_2 = lVar2;\n  *(undefined4 *)(lVar2 + lVar5) = uVar1;\n  *(undefined1 *)(lVar2 + 4 + lVar5) = DAT_00285218;\n  lVar2 = xrealloc(*param_4,lVar4);\n  *param_4 = lVar2;\n  puVar7 = (undefined8 *)(lVar2 + -0x1c0 + lVar4);\n  *puVar7 = PTR_s_audit_002afca0;\n  puVar7[0x37] = DAT_002afe58;\n  lVar2 = (long)puVar7 - (long)((ulong)(puVar7 + 1) & 0xfffffffffffffff8);\n  puVar6 = (undefined8 *)((long)&PTR_s_audit_002afca0 - lVar2);\n  puVar7 = (undefined8 *)((ulong)(puVar7 + 1) & 0xfffffffffffffff8);\n  for (uVar3 = (ulong)((int)lVar2 + 0x1c0U >> 3); uVar3 != 0; uVar3 = uVar3 - 1) {\n    *puVar7 = *puVar6;\n    puVar6 = puVar6 + (ulong)bVar8 * -2 + 1;\n    puVar7 = puVar7 + (ulong)bVar8 * -2 + 1;\n  }\n  return;\n}" primitive_type (function_declarator "FUN_00141790(int param_1,long *param_2,int param_3,long *param_4)" identifier (parameter_list "(int param_1,long *param_2,int param_3,long *param_4)" ( (parameter_declaration "int param_1" primitive_type identifier) , (parameter_declaration "long *param_2" (sized_type_specifier "long" long) (pointer_declarator "*param_2" * identifier)) , (parameter_declaration "int param_3" primitive_type identifier) , (parameter_declaration "long *param_4" (sized_type_specifier "long" long) (pointer_declarator "*param_4" * identifier)) ))) (compound_statement "{\n  undefined4 uVar1;\n  long lVar2;\n  ulong uVar3;\n  long lVar4;\n  long lVar5;\n  undefined8 *puVar6;\n  undefined8 *puVar7;\n  byte bVar8;\n  \n  bVar8 = 0;\n  lVar5 = (long)param_1;\n  lVar4 = ((long)param_3 + 0xe) * 0x20;\n  lVar2 = xrealloc(*param_2,lVar5 + 5);\n  uVar1 = DAT_00285214;\n  *param_2 = lVar2;\n  *(undefined4 *)(lVar2 + lVar5) = uVar1;\n  *(undefined1 *)(lVar2 + 4 + lVar5) = DAT_00285218;\n  lVar2 = xrealloc(*param_4,lVar4);\n  *param_4 = lVar2;\n  puVar7 = (undefined8 *)(lVar2 + -0x1c0 + lVar4);\n  *puVar7 = PTR_s_audit_002afca0;\n  puVar7[0x37] = DAT_002afe58;\n  lVar2 = (long)puVar7 - (long)((ulong)(puVar7 + 1) & 0xfffffffffffffff8);\n  puVar6 = (undefined8 *)((long)&PTR_s_audit_002afca0 - lVar2);\n  puVar7 = (undefined8 *)((ulong)(puVar7 + 1) & 0xfffffffffffffff8);\n  for (uVar3 = (ulong)((int)lVar2 + 0x1c0U >> 3); uVar3 != 0; uVar3 = uVar3 - 1) {\n    *puVar7 = *puVar6;\n    puVar6 = puVar6 + (ulong)bVar8 * -2 + 1;\n    puVar7 = puVar7 + (ulong)bVar8 * -2 + 1;\n  }\n  return;\n}" { (declaration "undefined4 uVar1;" type_identifier identifier ;) (declaration "long lVar2;" (sized_type_specifier "long" long) identifier ;) (declaration "ulong uVar3;" type_identifier identifier ;) (declaration "long lVar4;" (sized_type_specifier "long" long) identifier ;) (declaration "long lVar5;" (sized_type_specifier "long" long) identifier ;) (declaration "undefined8 *puVar6;" type_identifier (pointer_declarator "*puVar6" * identifier) ;) (declaration "undefined8 *puVar7;" type_identifier (pointer_declarator "*puVar7" * identifier) ;) (declaration "byte bVar8;" type_identifier identifier ;) (expression_statement "bVar8 = 0;" (assignment_expression "bVar8 = 0" identifier = number_literal) ;) (expression_statement "lVar5 = (long)param_1;" (assignment_expression "lVar5 = (long)param_1" identifier = (cast_expression "(long)param_1" ( (type_descriptor "long" (sized_type_specifier "long" long)) ) identifier)) ;) (expression_statement "lVar4 = ((long)param_3 + 0xe) * 0x20;" (assignment_expression "lVar4 = ((long)param_3 + 0xe) * 0x20" identifier = (binary_expression "((long)param_3 + 0xe) * 0x20" (parenthesized_expression "((long)param_3 + 0xe)" ( (binary_expression "(long)param_3 + 0xe" (cast_expression "(long)param_3" ( (type_descriptor "long" (sized_type_specifier "long" long)) ) identifier) + number_literal) )) * number_literal)) ;) (expression_statement "lVar2 = xrealloc(*param_2,lVar5 + 5);" (assignment_expression "lVar2 = xrealloc(*param_2,lVar5 + 5)" identifier = (call_expression "xrealloc(*param_2,lVar5 + 5)" identifier (argument_list "(*param_2,lVar5 + 5)" ( (pointer_expression "*param_2" * identifier) , (binary_expression "lVar5 + 5" identifier + number_literal) )))) ;) (expression_statement "uVar1 = DAT_00285214;" (assignment_expression "uVar1 = DAT_00285214" identifier = identifier) ;) (expression_statement "*param_2 = lVar2;" (assignment_expression "*param_2 = lVar2" (pointer_expression "*param_2" * identifier) = identifier) ;) (expression_statement "*(undefined4 *)(lVar2 + lVar5) = uVar1;" (assignment_expression "*(undefined4 *)(lVar2 + lVar5) = uVar1" (pointer_expression "*(undefined4 *)(lVar2 + lVar5)" * (cast_expression "(undefined4 *)(lVar2 + lVar5)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(lVar2 + lVar5)" ( (binary_expression "lVar2 + lVar5" identifier + identifier) )))) = identifier) ;) (expression_statement "*(undefined1 *)(lVar2 + 4 + lVar5) = DAT_00285218;" (assignment_expression "*(undefined1 *)(lVar2 + 4 + lVar5) = DAT_00285218" (pointer_expression "*(undefined1 *)(lVar2 + 4 + lVar5)" * (cast_expression "(undefined1 *)(lVar2 + 4 + lVar5)" ( (type_descriptor "undefined1 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(lVar2 + 4 + lVar5)" ( (binary_expression "lVar2 + 4 + lVar5" (binary_expression "lVar2 + 4" identifier + number_literal) + identifier) )))) = identifier) ;) (expression_statement "lVar2 = xrealloc(*param_4,lVar4);" (assignment_expression "lVar2 = xrealloc(*param_4,lVar4)" identifier = (call_expression "xrealloc(*param_4,lVar4)" identifier (argument_list "(*param_4,lVar4)" ( (pointer_expression "*param_4" * identifier) , identifier )))) ;) (expression_statement "*param_4 = lVar2;" (assignment_expression "*param_4 = lVar2" (pointer_expression "*param_4" * identifier) = identifier) ;) (expression_statement "puVar7 = (undefined8 *)(lVar2 + -0x1c0 + lVar4);" (assignment_expression "puVar7 = (undefined8 *)(lVar2 + -0x1c0 + lVar4)" identifier = (cast_expression "(undefined8 *)(lVar2 + -0x1c0 + lVar4)" ( (type_descriptor "undefined8 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(lVar2 + -0x1c0 + lVar4)" ( (binary_expression "lVar2 + -0x1c0 + lVar4" (binary_expression "lVar2 + -0x1c0" identifier + number_literal) + identifier) )))) ;) (expression_statement "*puVar7 = PTR_s_audit_002afca0;" (assignment_expression "*puVar7 = PTR_s_audit_002afca0" (pointer_expression "*puVar7" * identifier) = identifier) ;) (expression_statement "puVar7[0x37] = DAT_002afe58;" (assignment_expression "puVar7[0x37] = DAT_002afe58" (subscript_expression "puVar7[0x37]" identifier [ number_literal ]) = identifier) ;) (expression_statement "lVar2 = (long)puVar7 - (long)((ulong)(puVar7 + 1) & 0xfffffffffffffff8);" (assignment_expression "lVar2 = (long)puVar7 - (long)((ulong)(puVar7 + 1) & 0xfffffffffffffff8)" identifier = (binary_expression "(long)puVar7 - (long)((ulong)(puVar7 + 1) & 0xfffffffffffffff8)" (cast_expression "(long)puVar7" ( (type_descriptor "long" (sized_type_specifier "long" long)) ) identifier) - (cast_expression "(long)((ulong)(puVar7 + 1) & 0xfffffffffffffff8)" ( (type_descriptor "long" (sized_type_specifier "long" long)) ) (parenthesized_expression "((ulong)(puVar7 + 1) & 0xfffffffffffffff8)" ( (binary_expression "(ulong)(puVar7 + 1) & 0xfffffffffffffff8" (call_expression "(ulong)(puVar7 + 1)" (parenthesized_expression "(ulong)" ( identifier )) (argument_list "(puVar7 + 1)" ( (binary_expression "puVar7 + 1" identifier + number_literal) ))) & number_literal) ))))) ;) (expression_statement "puVar6 = (undefined8 *)((long)&PTR_s_audit_002afca0 - lVar2);" (assignment_expression "puVar6 = (undefined8 *)((long)&PTR_s_audit_002afca0 - lVar2)" identifier = (cast_expression "(undefined8 *)((long)&PTR_s_audit_002afca0 - lVar2)" ( (type_descriptor "undefined8 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((long)&PTR_s_audit_002afca0 - lVar2)" ( (binary_expression "(long)&PTR_s_audit_002afca0 - lVar2" (cast_expression "(long)&PTR_s_audit_002afca0" ( (type_descriptor "long" (sized_type_specifier "long" long)) ) (pointer_expression "&PTR_s_audit_002afca0" & identifier)) - identifier) )))) ;) (expression_statement "puVar7 = (undefined8 *)((ulong)(puVar7 + 1) & 0xfffffffffffffff8);" (assignment_expression "puVar7 = (undefined8 *)((ulong)(puVar7 + 1) & 0xfffffffffffffff8)" identifier = (cast_expression "(undefined8 *)((ulong)(puVar7 + 1) & 0xfffffffffffffff8)" ( (type_descriptor "undefined8 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((ulong)(puVar7 + 1) & 0xfffffffffffffff8)" ( (binary_expression "(ulong)(puVar7 + 1) & 0xfffffffffffffff8" (call_expression "(ulong)(puVar7 + 1)" (parenthesized_expression "(ulong)" ( identifier )) (argument_list "(puVar7 + 1)" ( (binary_expression "puVar7 + 1" identifier + number_literal) ))) & number_literal) )))) ;) (for_statement "for (uVar3 = (ulong)((int)lVar2 + 0x1c0U >> 3); uVar3 != 0; uVar3 = uVar3 - 1) {\n    *puVar7 = *puVar6;\n    puVar6 = puVar6 + (ulong)bVar8 * -2 + 1;\n    puVar7 = puVar7 + (ulong)bVar8 * -2 + 1;\n  }" for ( (assignment_expression "uVar3 = (ulong)((int)lVar2 + 0x1c0U >> 3)" identifier = (call_expression "(ulong)((int)lVar2 + 0x1c0U >> 3)" (parenthesized_expression "(ulong)" ( identifier )) (argument_list "((int)lVar2 + 0x1c0U >> 3)" ( (binary_expression "(int)lVar2 + 0x1c0U >> 3" (binary_expression "(int)lVar2 + 0x1c0U" (cast_expression "(int)lVar2" ( (type_descriptor "int" primitive_type) ) identifier) + number_literal) >> number_literal) )))) ; (binary_expression "uVar3 != 0" identifier != number_literal) ; (assignment_expression "uVar3 = uVar3 - 1" identifier = (binary_expression "uVar3 - 1" identifier - number_literal)) ) (compound_statement "{\n    *puVar7 = *puVar6;\n    puVar6 = puVar6 + (ulong)bVar8 * -2 + 1;\n    puVar7 = puVar7 + (ulong)bVar8 * -2 + 1;\n  }" { (expression_statement "*puVar7 = *puVar6;" (assignment_expression "*puVar7 = *puVar6" (pointer_expression "*puVar7" * identifier) = (pointer_expression "*puVar6" * identifier)) ;) (expression_statement "puVar6 = puVar6 + (ulong)bVar8 * -2 + 1;" (assignment_expression "puVar6 = puVar6 + (ulong)bVar8 * -2 + 1" identifier = (binary_expression "puVar6 + (ulong)bVar8 * -2 + 1" (binary_expression "puVar6 + (ulong)bVar8 * -2" identifier + (binary_expression "(ulong)bVar8 * -2" (cast_expression "(ulong)bVar8" ( (type_descriptor "ulong" type_identifier) ) identifier) * number_literal)) + number_literal)) ;) (expression_statement "puVar7 = puVar7 + (ulong)bVar8 * -2 + 1;" (assignment_expression "puVar7 = puVar7 + (ulong)bVar8 * -2 + 1" identifier = (binary_expression "puVar7 + (ulong)bVar8 * -2 + 1" (binary_expression "puVar7 + (ulong)bVar8 * -2" identifier + (binary_expression "(ulong)bVar8 * -2" (cast_expression "(ulong)bVar8" ( (type_descriptor "ulong" type_identifier) ) identifier) * number_literal)) + number_literal)) ;) })) (return_statement "return;" return ;) })))
(translation_unit "void gldelf_k1om_add_options\n               (int ns,char **shortopts,int nl,option **longopts,int nrl,option **really_longopts)\n\n{\n  undefined4 uVar1;\n  char *pcVar2;\n  option *poVar3;\n  ulong uVar4;\n  long lVar5;\n  undefined8 *puVar6;\n  undefined8 *puVar7;\n  byte bVar8;\n  \n  bVar8 = 0;\n  lVar5 = (long)ns;\n  pcVar2 = (char *)xrealloc(*shortopts,lVar5 + 5);\n  uVar1 = gldelf_k1om_add_options::xtra_short._0_4_;\n  *shortopts = pcVar2;\n  *(undefined4 *)(pcVar2 + lVar5) = uVar1;\n  pcVar2[lVar5 + 4] = gldelf_k1om_add_options::xtra_short[4];\n  poVar3 = (option *)xrealloc(*longopts,((long)nl + 0xe) * 0x20);\n  *longopts = poVar3;\n  poVar3 = poVar3 + nl;\n  poVar3->name = gldelf_k1om_add_options::xtra_long[0].name;\n  puVar7 = (undefined8 *)((ulong)&poVar3->has_arg & 0xfffffffffffffff8);\n  uVar1 = gldelf_k1om_add_options::xtra_long[0xd]._28_4_;\n  poVar3[0xd].val = gldelf_k1om_add_options::xtra_long[0xd].val;\n  *(undefined4 *)&poVar3[0xd].field_0x1c = uVar1;\n  lVar5 = (long)poVar3 - (long)puVar7;\n  puVar6 = (undefined8 *)((long)gldelf_k1om_add_options::xtra_long - lVar5);\n  for (uVar4 = (ulong)((int)lVar5 + 0x1c0U >> 3); uVar4 != 0; uVar4 = uVar4 - 1) {\n    *puVar7 = *puVar6;\n    puVar6 = puVar6 + (ulong)bVar8 * -2 + 1;\n    puVar7 = puVar7 + (ulong)bVar8 * -2 + 1;\n  }\n  return;\n}\n\n" (function_definition "void gldelf_k1om_add_options\n               (int ns,char **shortopts,int nl,option **longopts,int nrl,option **really_longopts)\n\n{\n  undefined4 uVar1;\n  char *pcVar2;\n  option *poVar3;\n  ulong uVar4;\n  long lVar5;\n  undefined8 *puVar6;\n  undefined8 *puVar7;\n  byte bVar8;\n  \n  bVar8 = 0;\n  lVar5 = (long)ns;\n  pcVar2 = (char *)xrealloc(*shortopts,lVar5 + 5);\n  uVar1 = gldelf_k1om_add_options::xtra_short._0_4_;\n  *shortopts = pcVar2;\n  *(undefined4 *)(pcVar2 + lVar5) = uVar1;\n  pcVar2[lVar5 + 4] = gldelf_k1om_add_options::xtra_short[4];\n  poVar3 = (option *)xrealloc(*longopts,((long)nl + 0xe) * 0x20);\n  *longopts = poVar3;\n  poVar3 = poVar3 + nl;\n  poVar3->name = gldelf_k1om_add_options::xtra_long[0].name;\n  puVar7 = (undefined8 *)((ulong)&poVar3->has_arg & 0xfffffffffffffff8);\n  uVar1 = gldelf_k1om_add_options::xtra_long[0xd]._28_4_;\n  poVar3[0xd].val = gldelf_k1om_add_options::xtra_long[0xd].val;\n  *(undefined4 *)&poVar3[0xd].field_0x1c = uVar1;\n  lVar5 = (long)poVar3 - (long)puVar7;\n  puVar6 = (undefined8 *)((long)gldelf_k1om_add_options::xtra_long - lVar5);\n  for (uVar4 = (ulong)((int)lVar5 + 0x1c0U >> 3); uVar4 != 0; uVar4 = uVar4 - 1) {\n    *puVar7 = *puVar6;\n    puVar6 = puVar6 + (ulong)bVar8 * -2 + 1;\n    puVar7 = puVar7 + (ulong)bVar8 * -2 + 1;\n  }\n  return;\n}" primitive_type (function_declarator "gldelf_k1om_add_options\n               (int ns,char **shortopts,int nl,option **longopts,int nrl,option **really_longopts)" identifier (parameter_list "(int ns,char **shortopts,int nl,option **longopts,int nrl,option **really_longopts)" ( (parameter_declaration "int ns" primitive_type identifier) , (parameter_declaration "char **shortopts" primitive_type (pointer_declarator "**shortopts" * (pointer_declarator "*shortopts" * identifier))) , (parameter_declaration "int nl" primitive_type identifier) , (parameter_declaration "option **longopts" type_identifier (pointer_declarator "**longopts" * (pointer_declarator "*longopts" * identifier))) , (parameter_declaration "int nrl" primitive_type identifier) , (parameter_declaration "option **really_longopts" type_identifier (pointer_declarator "**really_longopts" * (pointer_declarator "*really_longopts" * identifier))) ))) (compound_statement "{\n  undefined4 uVar1;\n  char *pcVar2;\n  option *poVar3;\n  ulong uVar4;\n  long lVar5;\n  undefined8 *puVar6;\n  undefined8 *puVar7;\n  byte bVar8;\n  \n  bVar8 = 0;\n  lVar5 = (long)ns;\n  pcVar2 = (char *)xrealloc(*shortopts,lVar5 + 5);\n  uVar1 = gldelf_k1om_add_options::xtra_short._0_4_;\n  *shortopts = pcVar2;\n  *(undefined4 *)(pcVar2 + lVar5) = uVar1;\n  pcVar2[lVar5 + 4] = gldelf_k1om_add_options::xtra_short[4];\n  poVar3 = (option *)xrealloc(*longopts,((long)nl + 0xe) * 0x20);\n  *longopts = poVar3;\n  poVar3 = poVar3 + nl;\n  poVar3->name = gldelf_k1om_add_options::xtra_long[0].name;\n  puVar7 = (undefined8 *)((ulong)&poVar3->has_arg & 0xfffffffffffffff8);\n  uVar1 = gldelf_k1om_add_options::xtra_long[0xd]._28_4_;\n  poVar3[0xd].val = gldelf_k1om_add_options::xtra_long[0xd].val;\n  *(undefined4 *)&poVar3[0xd].field_0x1c = uVar1;\n  lVar5 = (long)poVar3 - (long)puVar7;\n  puVar6 = (undefined8 *)((long)gldelf_k1om_add_options::xtra_long - lVar5);\n  for (uVar4 = (ulong)((int)lVar5 + 0x1c0U >> 3); uVar4 != 0; uVar4 = uVar4 - 1) {\n    *puVar7 = *puVar6;\n    puVar6 = puVar6 + (ulong)bVar8 * -2 + 1;\n    puVar7 = puVar7 + (ulong)bVar8 * -2 + 1;\n  }\n  return;\n}" { (declaration "undefined4 uVar1;" type_identifier identifier ;) (declaration "char *pcVar2;" primitive_type (pointer_declarator "*pcVar2" * identifier) ;) (declaration "option *poVar3;" type_identifier (pointer_declarator "*poVar3" * identifier) ;) (declaration "ulong uVar4;" type_identifier identifier ;) (declaration "long lVar5;" (sized_type_specifier "long" long) identifier ;) (declaration "undefined8 *puVar6;" type_identifier (pointer_declarator "*puVar6" * identifier) ;) (declaration "undefined8 *puVar7;" type_identifier (pointer_declarator "*puVar7" * identifier) ;) (declaration "byte bVar8;" type_identifier identifier ;) (expression_statement "bVar8 = 0;" (assignment_expression "bVar8 = 0" identifier = number_literal) ;) (expression_statement "lVar5 = (long)ns;" (assignment_expression "lVar5 = (long)ns" identifier = (cast_expression "(long)ns" ( (type_descriptor "long" (sized_type_specifier "long" long)) ) identifier)) ;) (expression_statement "pcVar2 = (char *)xrealloc(*shortopts,lVar5 + 5);" (assignment_expression "pcVar2 = (char *)xrealloc(*shortopts,lVar5 + 5)" identifier = (cast_expression "(char *)xrealloc(*shortopts,lVar5 + 5)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (call_expression "xrealloc(*shortopts,lVar5 + 5)" identifier (argument_list "(*shortopts,lVar5 + 5)" ( (pointer_expression "*shortopts" * identifier) , (binary_expression "lVar5 + 5" identifier + number_literal) ))))) ;) (expression_statement "uVar1 = gldelf_k1om_add_options::xtra_short._0_4_;" (field_expression "uVar1 = gldelf_k1om_add_options::xtra_short._0_4_" (assignment_expression "uVar1 = gldelf_k1om_add_options" identifier = identifier) (ERROR "::xtra_short" : : identifier) . field_identifier) ;) (expression_statement "*shortopts = pcVar2;" (assignment_expression "*shortopts = pcVar2" (pointer_expression "*shortopts" * identifier) = identifier) ;) (expression_statement "*(undefined4 *)(pcVar2 + lVar5) = uVar1;" (assignment_expression "*(undefined4 *)(pcVar2 + lVar5) = uVar1" (pointer_expression "*(undefined4 *)(pcVar2 + lVar5)" * (cast_expression "(undefined4 *)(pcVar2 + lVar5)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(pcVar2 + lVar5)" ( (binary_expression "pcVar2 + lVar5" identifier + identifier) )))) = identifier) ;) (expression_statement "pcVar2[lVar5 + 4] = gldelf_k1om_add_options::xtra_short[4];" (subscript_expression "pcVar2[lVar5 + 4] = gldelf_k1om_add_options::xtra_short[4]" (assignment_expression "pcVar2[lVar5 + 4] = gldelf_k1om_add_options" (subscript_expression "pcVar2[lVar5 + 4]" identifier [ (binary_expression "lVar5 + 4" identifier + number_literal) ]) = identifier) (ERROR "::xtra_short" : : identifier) [ number_literal ]) ;) (expression_statement "poVar3 = (option *)xrealloc(*longopts,((long)nl + 0xe) * 0x20);" (assignment_expression "poVar3 = (option *)xrealloc(*longopts,((long)nl + 0xe) * 0x20)" identifier = (cast_expression "(option *)xrealloc(*longopts,((long)nl + 0xe) * 0x20)" ( (type_descriptor "option *" type_identifier (abstract_pointer_declarator "*" *)) ) (call_expression "xrealloc(*longopts,((long)nl + 0xe) * 0x20)" identifier (argument_list "(*longopts,((long)nl + 0xe) * 0x20)" ( (pointer_expression "*longopts" * identifier) , (binary_expression "((long)nl + 0xe) * 0x20" (parenthesized_expression "((long)nl + 0xe)" ( (binary_expression "(long)nl + 0xe" (cast_expression "(long)nl" ( (type_descriptor "long" (sized_type_specifier "long" long)) ) identifier) + number_literal) )) * number_literal) ))))) ;) (expression_statement "*longopts = poVar3;" (assignment_expression "*longopts = poVar3" (pointer_expression "*longopts" * identifier) = identifier) ;) (expression_statement "poVar3 = poVar3 + nl;" (assignment_expression "poVar3 = poVar3 + nl" identifier = (binary_expression "poVar3 + nl" identifier + identifier)) ;) (expression_statement "poVar3->name = gldelf_k1om_add_options::xtra_long[0].name;" (field_expression "poVar3->name = gldelf_k1om_add_options::xtra_long[0].name" (subscript_expression "poVar3->name = gldelf_k1om_add_options::xtra_long[0]" (assignment_expression "poVar3->name = gldelf_k1om_add_options" (field_expression "poVar3->name" identifier -> field_identifier) = identifier) (ERROR "::xtra_long" : : identifier) [ number_literal ]) . field_identifier) ;) (expression_statement "puVar7 = (undefined8 *)((ulong)&poVar3->has_arg & 0xfffffffffffffff8);" (assignment_expression "puVar7 = (undefined8 *)((ulong)&poVar3->has_arg & 0xfffffffffffffff8)" identifier = (cast_expression "(undefined8 *)((ulong)&poVar3->has_arg & 0xfffffffffffffff8)" ( (type_descriptor "undefined8 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((ulong)&poVar3->has_arg & 0xfffffffffffffff8)" ( (binary_expression "(ulong)&poVar3->has_arg & 0xfffffffffffffff8" (binary_expression "(ulong)&poVar3->has_arg" (parenthesized_expression "(ulong)" ( identifier )) & (field_expression "poVar3->has_arg" identifier -> field_identifier)) & number_literal) )))) ;) (expression_statement "uVar1 = gldelf_k1om_add_options::xtra_long[0xd]._28_4_;" (field_expression "uVar1 = gldelf_k1om_add_options::xtra_long[0xd]._28_4_" (subscript_expression "uVar1 = gldelf_k1om_add_options::xtra_long[0xd]" (assignment_expression "uVar1 = gldelf_k1om_add_options" identifier = identifier) (ERROR "::xtra_long" : : identifier) [ number_literal ]) . field_identifier) ;) (expression_statement "poVar3[0xd].val = gldelf_k1om_add_options::xtra_long[0xd].val;" (field_expression "poVar3[0xd].val = gldelf_k1om_add_options::xtra_long[0xd].val" (subscript_expression "poVar3[0xd].val = gldelf_k1om_add_options::xtra_long[0xd]" (assignment_expression "poVar3[0xd].val = gldelf_k1om_add_options" (field_expression "poVar3[0xd].val" (subscript_expression "poVar3[0xd]" identifier [ number_literal ]) . field_identifier) = identifier) (ERROR "::xtra_long" : : identifier) [ number_literal ]) . field_identifier) ;) (expression_statement "*(undefined4 *)&poVar3[0xd].field_0x1c = uVar1;" (assignment_expression "*(undefined4 *)&poVar3[0xd].field_0x1c = uVar1" (pointer_expression "*(undefined4 *)&poVar3[0xd].field_0x1c" * (cast_expression "(undefined4 *)&poVar3[0xd].field_0x1c" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (pointer_expression "&poVar3[0xd].field_0x1c" & (field_expression "poVar3[0xd].field_0x1c" (subscript_expression "poVar3[0xd]" identifier [ number_literal ]) . field_identifier)))) = identifier) ;) (expression_statement "lVar5 = (long)poVar3 - (long)puVar7;" (assignment_expression "lVar5 = (long)poVar3 - (long)puVar7" identifier = (binary_expression "(long)poVar3 - (long)puVar7" (cast_expression "(long)poVar3" ( (type_descriptor "long" (sized_type_specifier "long" long)) ) identifier) - (cast_expression "(long)puVar7" ( (type_descriptor "long" (sized_type_specifier "long" long)) ) identifier))) ;) (expression_statement "puVar6 = (undefined8 *)((long)gldelf_k1om_add_options::xtra_long - lVar5);" (assignment_expression "puVar6 = (undefined8 *)((long)gldelf_k1om_add_options::xtra_long - lVar5)" identifier = (cast_expression "(undefined8 *)((long)gldelf_k1om_add_options::xtra_long - lVar5)" ( (type_descriptor "undefined8 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((long)gldelf_k1om_add_options::xtra_long - lVar5)" ( (binary_expression "(long)gldelf_k1om_add_options::xtra_long - lVar5" (cast_expression "(long)gldelf_k1om_add_options" ( (type_descriptor "long" (sized_type_specifier "long" long)) ) identifier) (ERROR "::xtra_long" : : identifier) - identifier) )))) ;) (for_statement "for (uVar4 = (ulong)((int)lVar5 + 0x1c0U >> 3); uVar4 != 0; uVar4 = uVar4 - 1) {\n    *puVar7 = *puVar6;\n    puVar6 = puVar6 + (ulong)bVar8 * -2 + 1;\n    puVar7 = puVar7 + (ulong)bVar8 * -2 + 1;\n  }" for ( (assignment_expression "uVar4 = (ulong)((int)lVar5 + 0x1c0U >> 3)" identifier = (call_expression "(ulong)((int)lVar5 + 0x1c0U >> 3)" (parenthesized_expression "(ulong)" ( identifier )) (argument_list "((int)lVar5 + 0x1c0U >> 3)" ( (binary_expression "(int)lVar5 + 0x1c0U >> 3" (binary_expression "(int)lVar5 + 0x1c0U" (cast_expression "(int)lVar5" ( (type_descriptor "int" primitive_type) ) identifier) + number_literal) >> number_literal) )))) ; (binary_expression "uVar4 != 0" identifier != number_literal) ; (assignment_expression "uVar4 = uVar4 - 1" identifier = (binary_expression "uVar4 - 1" identifier - number_literal)) ) (compound_statement "{\n    *puVar7 = *puVar6;\n    puVar6 = puVar6 + (ulong)bVar8 * -2 + 1;\n    puVar7 = puVar7 + (ulong)bVar8 * -2 + 1;\n  }" { (expression_statement "*puVar7 = *puVar6;" (assignment_expression "*puVar7 = *puVar6" (pointer_expression "*puVar7" * identifier) = (pointer_expression "*puVar6" * identifier)) ;) (expression_statement "puVar6 = puVar6 + (ulong)bVar8 * -2 + 1;" (assignment_expression "puVar6 = puVar6 + (ulong)bVar8 * -2 + 1" identifier = (binary_expression "puVar6 + (ulong)bVar8 * -2 + 1" (binary_expression "puVar6 + (ulong)bVar8 * -2" identifier + (binary_expression "(ulong)bVar8 * -2" (cast_expression "(ulong)bVar8" ( (type_descriptor "ulong" type_identifier) ) identifier) * number_literal)) + number_literal)) ;) (expression_statement "puVar7 = puVar7 + (ulong)bVar8 * -2 + 1;" (assignment_expression "puVar7 = puVar7 + (ulong)bVar8 * -2 + 1" identifier = (binary_expression "puVar7 + (ulong)bVar8 * -2 + 1" (binary_expression "puVar7 + (ulong)bVar8 * -2" identifier + (binary_expression "(ulong)bVar8 * -2" (cast_expression "(ulong)bVar8" ( (type_descriptor "ulong" type_identifier) ) identifier) * number_literal)) + number_literal)) ;) })) (return_statement "return;" return ;) })))
(translation_unit "void FUN_00141790(int param_1,long *param_2,int param_3,long *param_4)\n\n{\n  undefined4 uVar1;\n  long lVar2;\n  ulong uVar3;\n  long lVar4;\n  long lVar5;\n  undefined8 *puVar6;\n  undefined8 *puVar7;\n  byte bVar8;\n  \n  bVar8 = 0;\n  lVar5 = (long)param_1;\n  lVar4 = ((long)param_3 + 0xe) * 0x20;\n  lVar2 = xrealloc(*param_2,lVar5 + 5);\n  uVar1 = DAT_00285214;\n  *param_2 = lVar2;\n  *(undefined4 *)(lVar2 + lVar5) = uVar1;\n  *(undefined1 *)(lVar2 + 4 + lVar5) = DAT_00285218;\n  lVar2 = xrealloc(*param_4,lVar4);\n  *param_4 = lVar2;\n  puVar7 = (undefined8 *)(lVar2 + -0x1c0 + lVar4);\n  *puVar7 = PTR_s_audit_002afca0;\n  puVar7[0x37] = DAT_002afe58;\n  lVar2 = (long)puVar7 - (long)((ulong)(puVar7 + 1) & 0xfffffffffffffff8);\n  puVar6 = (undefined8 *)((long)&PTR_s_audit_002afca0 - lVar2);\n  puVar7 = (undefined8 *)((ulong)(puVar7 + 1) & 0xfffffffffffffff8);\n  for (uVar3 = (ulong)((int)lVar2 + 0x1c0U >> 3); uVar3 != 0; uVar3 = uVar3 - 1) {\n    *puVar7 = *puVar6;\n    puVar6 = puVar6 + (ulong)bVar8 * -2 + 1;\n    puVar7 = puVar7 + (ulong)bVar8 * -2 + 1;\n  }\n  return;\n}\n\n" (function_definition "void FUN_00141790(int param_1,long *param_2,int param_3,long *param_4)\n\n{\n  undefined4 uVar1;\n  long lVar2;\n  ulong uVar3;\n  long lVar4;\n  long lVar5;\n  undefined8 *puVar6;\n  undefined8 *puVar7;\n  byte bVar8;\n  \n  bVar8 = 0;\n  lVar5 = (long)param_1;\n  lVar4 = ((long)param_3 + 0xe) * 0x20;\n  lVar2 = xrealloc(*param_2,lVar5 + 5);\n  uVar1 = DAT_00285214;\n  *param_2 = lVar2;\n  *(undefined4 *)(lVar2 + lVar5) = uVar1;\n  *(undefined1 *)(lVar2 + 4 + lVar5) = DAT_00285218;\n  lVar2 = xrealloc(*param_4,lVar4);\n  *param_4 = lVar2;\n  puVar7 = (undefined8 *)(lVar2 + -0x1c0 + lVar4);\n  *puVar7 = PTR_s_audit_002afca0;\n  puVar7[0x37] = DAT_002afe58;\n  lVar2 = (long)puVar7 - (long)((ulong)(puVar7 + 1) & 0xfffffffffffffff8);\n  puVar6 = (undefined8 *)((long)&PTR_s_audit_002afca0 - lVar2);\n  puVar7 = (undefined8 *)((ulong)(puVar7 + 1) & 0xfffffffffffffff8);\n  for (uVar3 = (ulong)((int)lVar2 + 0x1c0U >> 3); uVar3 != 0; uVar3 = uVar3 - 1) {\n    *puVar7 = *puVar6;\n    puVar6 = puVar6 + (ulong)bVar8 * -2 + 1;\n    puVar7 = puVar7 + (ulong)bVar8 * -2 + 1;\n  }\n  return;\n}" primitive_type (function_declarator "FUN_00141790(int param_1,long *param_2,int param_3,long *param_4)" identifier (parameter_list "(int param_1,long *param_2,int param_3,long *param_4)" ( (parameter_declaration "int param_1" primitive_type identifier) , (parameter_declaration "long *param_2" (sized_type_specifier "long" long) (pointer_declarator "*param_2" * identifier)) , (parameter_declaration "int param_3" primitive_type identifier) , (parameter_declaration "long *param_4" (sized_type_specifier "long" long) (pointer_declarator "*param_4" * identifier)) ))) (compound_statement "{\n  undefined4 uVar1;\n  long lVar2;\n  ulong uVar3;\n  long lVar4;\n  long lVar5;\n  undefined8 *puVar6;\n  undefined8 *puVar7;\n  byte bVar8;\n  \n  bVar8 = 0;\n  lVar5 = (long)param_1;\n  lVar4 = ((long)param_3 + 0xe) * 0x20;\n  lVar2 = xrealloc(*param_2,lVar5 + 5);\n  uVar1 = DAT_00285214;\n  *param_2 = lVar2;\n  *(undefined4 *)(lVar2 + lVar5) = uVar1;\n  *(undefined1 *)(lVar2 + 4 + lVar5) = DAT_00285218;\n  lVar2 = xrealloc(*param_4,lVar4);\n  *param_4 = lVar2;\n  puVar7 = (undefined8 *)(lVar2 + -0x1c0 + lVar4);\n  *puVar7 = PTR_s_audit_002afca0;\n  puVar7[0x37] = DAT_002afe58;\n  lVar2 = (long)puVar7 - (long)((ulong)(puVar7 + 1) & 0xfffffffffffffff8);\n  puVar6 = (undefined8 *)((long)&PTR_s_audit_002afca0 - lVar2);\n  puVar7 = (undefined8 *)((ulong)(puVar7 + 1) & 0xfffffffffffffff8);\n  for (uVar3 = (ulong)((int)lVar2 + 0x1c0U >> 3); uVar3 != 0; uVar3 = uVar3 - 1) {\n    *puVar7 = *puVar6;\n    puVar6 = puVar6 + (ulong)bVar8 * -2 + 1;\n    puVar7 = puVar7 + (ulong)bVar8 * -2 + 1;\n  }\n  return;\n}" { (declaration "undefined4 uVar1;" type_identifier identifier ;) (declaration "long lVar2;" (sized_type_specifier "long" long) identifier ;) (declaration "ulong uVar3;" type_identifier identifier ;) (declaration "long lVar4;" (sized_type_specifier "long" long) identifier ;) (declaration "long lVar5;" (sized_type_specifier "long" long) identifier ;) (declaration "undefined8 *puVar6;" type_identifier (pointer_declarator "*puVar6" * identifier) ;) (declaration "undefined8 *puVar7;" type_identifier (pointer_declarator "*puVar7" * identifier) ;) (declaration "byte bVar8;" type_identifier identifier ;) (expression_statement "bVar8 = 0;" (assignment_expression "bVar8 = 0" identifier = number_literal) ;) (expression_statement "lVar5 = (long)param_1;" (assignment_expression "lVar5 = (long)param_1" identifier = (cast_expression "(long)param_1" ( (type_descriptor "long" (sized_type_specifier "long" long)) ) identifier)) ;) (expression_statement "lVar4 = ((long)param_3 + 0xe) * 0x20;" (assignment_expression "lVar4 = ((long)param_3 + 0xe) * 0x20" identifier = (binary_expression "((long)param_3 + 0xe) * 0x20" (parenthesized_expression "((long)param_3 + 0xe)" ( (binary_expression "(long)param_3 + 0xe" (cast_expression "(long)param_3" ( (type_descriptor "long" (sized_type_specifier "long" long)) ) identifier) + number_literal) )) * number_literal)) ;) (expression_statement "lVar2 = xrealloc(*param_2,lVar5 + 5);" (assignment_expression "lVar2 = xrealloc(*param_2,lVar5 + 5)" identifier = (call_expression "xrealloc(*param_2,lVar5 + 5)" identifier (argument_list "(*param_2,lVar5 + 5)" ( (pointer_expression "*param_2" * identifier) , (binary_expression "lVar5 + 5" identifier + number_literal) )))) ;) (expression_statement "uVar1 = DAT_00285214;" (assignment_expression "uVar1 = DAT_00285214" identifier = identifier) ;) (expression_statement "*param_2 = lVar2;" (assignment_expression "*param_2 = lVar2" (pointer_expression "*param_2" * identifier) = identifier) ;) (expression_statement "*(undefined4 *)(lVar2 + lVar5) = uVar1;" (assignment_expression "*(undefined4 *)(lVar2 + lVar5) = uVar1" (pointer_expression "*(undefined4 *)(lVar2 + lVar5)" * (cast_expression "(undefined4 *)(lVar2 + lVar5)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(lVar2 + lVar5)" ( (binary_expression "lVar2 + lVar5" identifier + identifier) )))) = identifier) ;) (expression_statement "*(undefined1 *)(lVar2 + 4 + lVar5) = DAT_00285218;" (assignment_expression "*(undefined1 *)(lVar2 + 4 + lVar5) = DAT_00285218" (pointer_expression "*(undefined1 *)(lVar2 + 4 + lVar5)" * (cast_expression "(undefined1 *)(lVar2 + 4 + lVar5)" ( (type_descriptor "undefined1 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(lVar2 + 4 + lVar5)" ( (binary_expression "lVar2 + 4 + lVar5" (binary_expression "lVar2 + 4" identifier + number_literal) + identifier) )))) = identifier) ;) (expression_statement "lVar2 = xrealloc(*param_4,lVar4);" (assignment_expression "lVar2 = xrealloc(*param_4,lVar4)" identifier = (call_expression "xrealloc(*param_4,lVar4)" identifier (argument_list "(*param_4,lVar4)" ( (pointer_expression "*param_4" * identifier) , identifier )))) ;) (expression_statement "*param_4 = lVar2;" (assignment_expression "*param_4 = lVar2" (pointer_expression "*param_4" * identifier) = identifier) ;) (expression_statement "puVar7 = (undefined8 *)(lVar2 + -0x1c0 + lVar4);" (assignment_expression "puVar7 = (undefined8 *)(lVar2 + -0x1c0 + lVar4)" identifier = (cast_expression "(undefined8 *)(lVar2 + -0x1c0 + lVar4)" ( (type_descriptor "undefined8 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(lVar2 + -0x1c0 + lVar4)" ( (binary_expression "lVar2 + -0x1c0 + lVar4" (binary_expression "lVar2 + -0x1c0" identifier + number_literal) + identifier) )))) ;) (expression_statement "*puVar7 = PTR_s_audit_002afca0;" (assignment_expression "*puVar7 = PTR_s_audit_002afca0" (pointer_expression "*puVar7" * identifier) = identifier) ;) (expression_statement "puVar7[0x37] = DAT_002afe58;" (assignment_expression "puVar7[0x37] = DAT_002afe58" (subscript_expression "puVar7[0x37]" identifier [ number_literal ]) = identifier) ;) (expression_statement "lVar2 = (long)puVar7 - (long)((ulong)(puVar7 + 1) & 0xfffffffffffffff8);" (assignment_expression "lVar2 = (long)puVar7 - (long)((ulong)(puVar7 + 1) & 0xfffffffffffffff8)" identifier = (binary_expression "(long)puVar7 - (long)((ulong)(puVar7 + 1) & 0xfffffffffffffff8)" (cast_expression "(long)puVar7" ( (type_descriptor "long" (sized_type_specifier "long" long)) ) identifier) - (cast_expression "(long)((ulong)(puVar7 + 1) & 0xfffffffffffffff8)" ( (type_descriptor "long" (sized_type_specifier "long" long)) ) (parenthesized_expression "((ulong)(puVar7 + 1) & 0xfffffffffffffff8)" ( (binary_expression "(ulong)(puVar7 + 1) & 0xfffffffffffffff8" (call_expression "(ulong)(puVar7 + 1)" (parenthesized_expression "(ulong)" ( identifier )) (argument_list "(puVar7 + 1)" ( (binary_expression "puVar7 + 1" identifier + number_literal) ))) & number_literal) ))))) ;) (expression_statement "puVar6 = (undefined8 *)((long)&PTR_s_audit_002afca0 - lVar2);" (assignment_expression "puVar6 = (undefined8 *)((long)&PTR_s_audit_002afca0 - lVar2)" identifier = (cast_expression "(undefined8 *)((long)&PTR_s_audit_002afca0 - lVar2)" ( (type_descriptor "undefined8 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((long)&PTR_s_audit_002afca0 - lVar2)" ( (binary_expression "(long)&PTR_s_audit_002afca0 - lVar2" (cast_expression "(long)&PTR_s_audit_002afca0" ( (type_descriptor "long" (sized_type_specifier "long" long)) ) (pointer_expression "&PTR_s_audit_002afca0" & identifier)) - identifier) )))) ;) (expression_statement "puVar7 = (undefined8 *)((ulong)(puVar7 + 1) & 0xfffffffffffffff8);" (assignment_expression "puVar7 = (undefined8 *)((ulong)(puVar7 + 1) & 0xfffffffffffffff8)" identifier = (cast_expression "(undefined8 *)((ulong)(puVar7 + 1) & 0xfffffffffffffff8)" ( (type_descriptor "undefined8 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((ulong)(puVar7 + 1) & 0xfffffffffffffff8)" ( (binary_expression "(ulong)(puVar7 + 1) & 0xfffffffffffffff8" (call_expression "(ulong)(puVar7 + 1)" (parenthesized_expression "(ulong)" ( identifier )) (argument_list "(puVar7 + 1)" ( (binary_expression "puVar7 + 1" identifier + number_literal) ))) & number_literal) )))) ;) (for_statement "for (uVar3 = (ulong)((int)lVar2 + 0x1c0U >> 3); uVar3 != 0; uVar3 = uVar3 - 1) {\n    *puVar7 = *puVar6;\n    puVar6 = puVar6 + (ulong)bVar8 * -2 + 1;\n    puVar7 = puVar7 + (ulong)bVar8 * -2 + 1;\n  }" for ( (assignment_expression "uVar3 = (ulong)((int)lVar2 + 0x1c0U >> 3)" identifier = (call_expression "(ulong)((int)lVar2 + 0x1c0U >> 3)" (parenthesized_expression "(ulong)" ( identifier )) (argument_list "((int)lVar2 + 0x1c0U >> 3)" ( (binary_expression "(int)lVar2 + 0x1c0U >> 3" (binary_expression "(int)lVar2 + 0x1c0U" (cast_expression "(int)lVar2" ( (type_descriptor "int" primitive_type) ) identifier) + number_literal) >> number_literal) )))) ; (binary_expression "uVar3 != 0" identifier != number_literal) ; (assignment_expression "uVar3 = uVar3 - 1" identifier = (binary_expression "uVar3 - 1" identifier - number_literal)) ) (compound_statement "{\n    *puVar7 = *puVar6;\n    puVar6 = puVar6 + (ulong)bVar8 * -2 + 1;\n    puVar7 = puVar7 + (ulong)bVar8 * -2 + 1;\n  }" { (expression_statement "*puVar7 = *puVar6;" (assignment_expression "*puVar7 = *puVar6" (pointer_expression "*puVar7" * identifier) = (pointer_expression "*puVar6" * identifier)) ;) (expression_statement "puVar6 = puVar6 + (ulong)bVar8 * -2 + 1;" (assignment_expression "puVar6 = puVar6 + (ulong)bVar8 * -2 + 1" identifier = (binary_expression "puVar6 + (ulong)bVar8 * -2 + 1" (binary_expression "puVar6 + (ulong)bVar8 * -2" identifier + (binary_expression "(ulong)bVar8 * -2" (cast_expression "(ulong)bVar8" ( (type_descriptor "ulong" type_identifier) ) identifier) * number_literal)) + number_literal)) ;) (expression_statement "puVar7 = puVar7 + (ulong)bVar8 * -2 + 1;" (assignment_expression "puVar7 = puVar7 + (ulong)bVar8 * -2 + 1" identifier = (binary_expression "puVar7 + (ulong)bVar8 * -2 + 1" (binary_expression "puVar7 + (ulong)bVar8 * -2" identifier + (binary_expression "(ulong)bVar8 * -2" (cast_expression "(ulong)bVar8" ( (type_descriptor "ulong" type_identifier) ) identifier) * number_literal)) + number_literal)) ;) })) (return_statement "return;" return ;) })))
(translation_unit (function_definition TYPE (function_declarator IDENT (parameter_list ( (parameter_declaration TYPE IDENT) , (parameter_declaration (sized_type_specifier long) (pointer_declarator * IDENT)) , (parameter_declaration TYPE IDENT) , (parameter_declaration (sized_type_specifier long) (pointer_declarator * IDENT)) ))) (compound_statement { (declaration TYPE IDENT ;) (declaration (sized_type_specifier long) IDENT ;) (declaration TYPE IDENT ;) (declaration (sized_type_specifier long) IDENT ;) (declaration (sized_type_specifier long) IDENT ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE IDENT ;) (expression_statement (assignment_expression IDENT = LIT) ;) (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor (sized_type_specifier long)) ) IDENT)) ;) (expression_statement (assignment_expression IDENT = (binary_expression (parenthesized_expression ( (binary_expression (cast_expression ( (type_descriptor (sized_type_specifier long)) ) IDENT) + LIT) )) * LIT)) ;) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( (pointer_expression * IDENT) , (binary_expression IDENT + LIT) )))) ;) (expression_statement (assignment_expression IDENT = IDENT) ;) (expression_statement (assignment_expression (pointer_expression * IDENT) = IDENT) ;) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + IDENT) )))) = IDENT) ;) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression (binary_expression IDENT + LIT) + IDENT) )))) = IDENT) ;) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( (pointer_expression * IDENT) , IDENT )))) ;) (expression_statement (assignment_expression (pointer_expression * IDENT) = IDENT) ;) (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression (binary_expression IDENT + LIT) + IDENT) )))) ;) (expression_statement (assignment_expression (pointer_expression * IDENT) = IDENT) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = IDENT) ;) (expression_statement (assignment_expression IDENT = (binary_expression (cast_expression ( (type_descriptor (sized_type_specifier long)) ) IDENT) - (cast_expression ( (type_descriptor (sized_type_specifier long)) ) (parenthesized_expression ( (binary_expression (call_expression (parenthesized_expression ( IDENT )) (argument_list ( (binary_expression IDENT + LIT) ))) & LIT) ))))) ;) (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression (cast_expression ( (type_descriptor (sized_type_specifier long)) ) (pointer_expression & IDENT)) - IDENT) )))) ;) (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression (call_expression (parenthesized_expression ( IDENT )) (argument_list ( (binary_expression IDENT + LIT) ))) & LIT) )))) ;) (for_statement for ( (assignment_expression IDENT = (call_expression (parenthesized_expression ( IDENT )) (argument_list ( (binary_expression (binary_expression (cast_expression ( (type_descriptor TYPE) ) IDENT) + LIT) >> LIT) )))) ; (binary_expression IDENT != LIT) ; (assignment_expression IDENT = (binary_expression IDENT - LIT)) ) (compound_statement { (expression_statement (assignment_expression (pointer_expression * IDENT) = (pointer_expression * IDENT)) ;) (expression_statement (assignment_expression IDENT = (binary_expression (binary_expression IDENT + (binary_expression (cast_expression ( (type_descriptor TYPE) ) IDENT) * LIT)) + LIT)) ;) (expression_statement (assignment_expression IDENT = (binary_expression (binary_expression IDENT + (binary_expression (cast_expression ( (type_descriptor TYPE) ) IDENT) * LIT)) + LIT)) ;) })) (return_statement return ;) })))
(function_definition "void FUN_00141790(int param_1,long *param_2,int param_3,long *param_4)\n\n{\n  undefined4 uVar1;\n  long lVar2;\n  ulong uVar3;\n  long lVar4;\n  long lVar5;\n  undefined8 *puVar6;\n  undefined8 *puVar7;\n  byte bVar8;\n  \n  bVar8 = 0;\n  lVar5 = (long)param_1;\n  lVar4 = ((long)param_3 + 0xe) * 0x20;\n  lVar2 = xrealloc(*param_2,lVar5 + 5);\n  uVar1 = DAT_00285214;\n  *param_2 = lVar2;\n  *(undefined4 *)(lVar2 + lVar5) = uVar1;\n  *(undefined1 *)(lVar2 + 4 + lVar5) = DAT_00285218;\n  lVar2 = xrealloc(*param_4,lVar4);\n  *param_4 = lVar2;\n  puVar7 = (undefined8 *)(lVar2 + -0x1c0 + lVar4);\n  *puVar7 = PTR_s_audit_002afca0;\n  puVar7[0x37] = DAT_002afe58;\n  lVar2 = (long)puVar7 - (long)((ulong)(puVar7 + 1) & 0xfffffffffffffff8);\n  puVar6 = (undefined8 *)((long)&PTR_s_audit_002afca0 - lVar2);\n  puVar7 = (undefined8 *)((ulong)(puVar7 + 1) & 0xfffffffffffffff8);\n  for (uVar3 = (ulong)((int)lVar2 + 0x1c0U >> 3); uVar3 != 0; uVar3 = uVar3 - 1) {\n    *puVar7 = *puVar6;\n    puVar6 = puVar6 + (ulong)bVar8 * -2 + 1;\n    puVar7 = puVar7 + (ulong)bVar8 * -2 + 1;\n  }\n  return;\n}" (primitive_type "void") (function_declarator "FUN_00141790(int param_1,long *param_2,int param_3,long *param_4)" (identifier "FUN_00141790") (parameter_list "(int param_1,long *param_2,int param_3,long *param_4)" (( "(") (parameter_declaration "int param_1" (primitive_type "int") (identifier "param_1")) (, ",") (parameter_declaration "long *param_2" (sized_type_specifier "long" (long "long")) (pointer_declarator "*param_2" (* "*") (identifier "param_2"))) (, ",") (parameter_declaration "int param_3" (primitive_type "int") (identifier "param_3")) (, ",") (parameter_declaration "long *param_4" (sized_type_specifier "long" (long "long")) (pointer_declarator "*param_4" (* "*") (identifier "param_4"))) () ")"))) (compound_statement "{\n  undefined4 uVar1;\n  long lVar2;\n  ulong uVar3;\n  long lVar4;\n  long lVar5;\n  undefined8 *puVar6;\n  undefined8 *puVar7;\n  byte bVar8;\n  \n  bVar8 = 0;\n  lVar5 = (long)param_1;\n  lVar4 = ((long)param_3 + 0xe) * 0x20;\n  lVar2 = xrealloc(*param_2,lVar5 + 5);\n  uVar1 = DAT_00285214;\n  *param_2 = lVar2;\n  *(undefined4 *)(lVar2 + lVar5) = uVar1;\n  *(undefined1 *)(lVar2 + 4 + lVar5) = DAT_00285218;\n  lVar2 = xrealloc(*param_4,lVar4);\n  *param_4 = lVar2;\n  puVar7 = (undefined8 *)(lVar2 + -0x1c0 + lVar4);\n  *puVar7 = PTR_s_audit_002afca0;\n  puVar7[0x37] = DAT_002afe58;\n  lVar2 = (long)puVar7 - (long)((ulong)(puVar7 + 1) & 0xfffffffffffffff8);\n  puVar6 = (undefined8 *)((long)&PTR_s_audit_002afca0 - lVar2);\n  puVar7 = (undefined8 *)((ulong)(puVar7 + 1) & 0xfffffffffffffff8);\n  for (uVar3 = (ulong)((int)lVar2 + 0x1c0U >> 3); uVar3 != 0; uVar3 = uVar3 - 1) {\n    *puVar7 = *puVar6;\n    puVar6 = puVar6 + (ulong)bVar8 * -2 + 1;\n    puVar7 = puVar7 + (ulong)bVar8 * -2 + 1;\n  }\n  return;\n}" ({ "{") (declaration "undefined4 uVar1;" (type_identifier "undefined4") (identifier "uVar1") (; ";")) (declaration "long lVar2;" (sized_type_specifier "long" (long "long")) (identifier "lVar2") (; ";")) (declaration "ulong uVar3;" (type_identifier "ulong") (identifier "uVar3") (; ";")) (declaration "long lVar4;" (sized_type_specifier "long" (long "long")) (identifier "lVar4") (; ";")) (declaration "long lVar5;" (sized_type_specifier "long" (long "long")) (identifier "lVar5") (; ";")) (declaration "undefined8 *puVar6;" (type_identifier "undefined8") (pointer_declarator "*puVar6" (* "*") (identifier "puVar6")) (; ";")) (declaration "undefined8 *puVar7;" (type_identifier "undefined8") (pointer_declarator "*puVar7" (* "*") (identifier "puVar7")) (; ";")) (declaration "byte bVar8;" (type_identifier "byte") (identifier "bVar8") (; ";")) (expression_statement "bVar8 = 0;" (assignment_expression "bVar8 = 0" (identifier "bVar8") (= "=") (number_literal "0")) (; ";")) (expression_statement "lVar5 = (long)param_1;" (assignment_expression "lVar5 = (long)param_1" (identifier "lVar5") (= "=") (cast_expression "(long)param_1" (( "(") (type_descriptor "long" (sized_type_specifier "long" (long "long"))) () ")") (identifier "param_1"))) (; ";")) (expression_statement "lVar4 = ((long)param_3 + 0xe) * 0x20;" (assignment_expression "lVar4 = ((long)param_3 + 0xe) * 0x20" (identifier "lVar4") (= "=") (binary_expression "((long)param_3 + 0xe) * 0x20" (parenthesized_expression "((long)param_3 + 0xe)" (( "(") (binary_expression "(long)param_3 + 0xe" (cast_expression "(long)param_3" (( "(") (type_descriptor "long" (sized_type_specifier "long" (long "long"))) () ")") (identifier "param_3")) (+ "+") (number_literal "0xe")) () ")")) (* "*") (number_literal "0x20"))) (; ";")) (expression_statement "lVar2 = xrealloc(*param_2,lVar5 + 5);" (assignment_expression "lVar2 = xrealloc(*param_2,lVar5 + 5)" (identifier "lVar2") (= "=") (call_expression "xrealloc(*param_2,lVar5 + 5)" (identifier "xrealloc") (argument_list "(*param_2,lVar5 + 5)" (( "(") (pointer_expression "*param_2" (* "*") (identifier "param_2")) (, ",") (binary_expression "lVar5 + 5" (identifier "lVar5") (+ "+") (number_literal "5")) () ")")))) (; ";")) (expression_statement "uVar1 = DAT_00285214;" (assignment_expression "uVar1 = DAT_00285214" (identifier "uVar1") (= "=") (identifier "DAT_00285214")) (; ";")) (expression_statement "*param_2 = lVar2;" (assignment_expression "*param_2 = lVar2" (pointer_expression "*param_2" (* "*") (identifier "param_2")) (= "=") (identifier "lVar2")) (; ";")) (expression_statement "*(undefined4 *)(lVar2 + lVar5) = uVar1;" (assignment_expression "*(undefined4 *)(lVar2 + lVar5) = uVar1" (pointer_expression "*(undefined4 *)(lVar2 + lVar5)" (* "*") (cast_expression "(undefined4 *)(lVar2 + lVar5)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(lVar2 + lVar5)" (( "(") (binary_expression "lVar2 + lVar5" (identifier "lVar2") (+ "+") (identifier "lVar5")) () ")")))) (= "=") (identifier "uVar1")) (; ";")) (expression_statement "*(undefined1 *)(lVar2 + 4 + lVar5) = DAT_00285218;" (assignment_expression "*(undefined1 *)(lVar2 + 4 + lVar5) = DAT_00285218" (pointer_expression "*(undefined1 *)(lVar2 + 4 + lVar5)" (* "*") (cast_expression "(undefined1 *)(lVar2 + 4 + lVar5)" (( "(") (type_descriptor "undefined1 *" (type_identifier "undefined1") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(lVar2 + 4 + lVar5)" (( "(") (binary_expression "lVar2 + 4 + lVar5" (binary_expression "lVar2 + 4" (identifier "lVar2") (+ "+") (number_literal "4")) (+ "+") (identifier "lVar5")) () ")")))) (= "=") (identifier "DAT_00285218")) (; ";")) (expression_statement "lVar2 = xrealloc(*param_4,lVar4);" (assignment_expression "lVar2 = xrealloc(*param_4,lVar4)" (identifier "lVar2") (= "=") (call_expression "xrealloc(*param_4,lVar4)" (identifier "xrealloc") (argument_list "(*param_4,lVar4)" (( "(") (pointer_expression "*param_4" (* "*") (identifier "param_4")) (, ",") (identifier "lVar4") () ")")))) (; ";")) (expression_statement "*param_4 = lVar2;" (assignment_expression "*param_4 = lVar2" (pointer_expression "*param_4" (* "*") (identifier "param_4")) (= "=") (identifier "lVar2")) (; ";")) (expression_statement "puVar7 = (undefined8 *)(lVar2 + -0x1c0 + lVar4);" (assignment_expression "puVar7 = (undefined8 *)(lVar2 + -0x1c0 + lVar4)" (identifier "puVar7") (= "=") (cast_expression "(undefined8 *)(lVar2 + -0x1c0 + lVar4)" (( "(") (type_descriptor "undefined8 *" (type_identifier "undefined8") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(lVar2 + -0x1c0 + lVar4)" (( "(") (binary_expression "lVar2 + -0x1c0 + lVar4" (binary_expression "lVar2 + -0x1c0" (identifier "lVar2") (+ "+") (number_literal "-0x1c0")) (+ "+") (identifier "lVar4")) () ")")))) (; ";")) (expression_statement "*puVar7 = PTR_s_audit_002afca0;" (assignment_expression "*puVar7 = PTR_s_audit_002afca0" (pointer_expression "*puVar7" (* "*") (identifier "puVar7")) (= "=") (identifier "PTR_s_audit_002afca0")) (; ";")) (expression_statement "puVar7[0x37] = DAT_002afe58;" (assignment_expression "puVar7[0x37] = DAT_002afe58" (subscript_expression "puVar7[0x37]" (identifier "puVar7") ([ "[") (number_literal "0x37") (] "]")) (= "=") (identifier "DAT_002afe58")) (; ";")) (expression_statement "lVar2 = (long)puVar7 - (long)((ulong)(puVar7 + 1) & 0xfffffffffffffff8);" (assignment_expression "lVar2 = (long)puVar7 - (long)((ulong)(puVar7 + 1) & 0xfffffffffffffff8)" (identifier "lVar2") (= "=") (binary_expression "(long)puVar7 - (long)((ulong)(puVar7 + 1) & 0xfffffffffffffff8)" (cast_expression "(long)puVar7" (( "(") (type_descriptor "long" (sized_type_specifier "long" (long "long"))) () ")") (identifier "puVar7")) (- "-") (cast_expression "(long)((ulong)(puVar7 + 1) & 0xfffffffffffffff8)" (( "(") (type_descriptor "long" (sized_type_specifier "long" (long "long"))) () ")") (parenthesized_expression "((ulong)(puVar7 + 1) & 0xfffffffffffffff8)" (( "(") (binary_expression "(ulong)(puVar7 + 1) & 0xfffffffffffffff8" (call_expression "(ulong)(puVar7 + 1)" (parenthesized_expression "(ulong)" (( "(") (identifier "ulong") () ")")) (argument_list "(puVar7 + 1)" (( "(") (binary_expression "puVar7 + 1" (identifier "puVar7") (+ "+") (number_literal "1")) () ")"))) (& "&") (number_literal "0xfffffffffffffff8")) () ")"))))) (; ";")) (expression_statement "puVar6 = (undefined8 *)((long)&PTR_s_audit_002afca0 - lVar2);" (assignment_expression "puVar6 = (undefined8 *)((long)&PTR_s_audit_002afca0 - lVar2)" (identifier "puVar6") (= "=") (cast_expression "(undefined8 *)((long)&PTR_s_audit_002afca0 - lVar2)" (( "(") (type_descriptor "undefined8 *" (type_identifier "undefined8") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "((long)&PTR_s_audit_002afca0 - lVar2)" (( "(") (binary_expression "(long)&PTR_s_audit_002afca0 - lVar2" (cast_expression "(long)&PTR_s_audit_002afca0" (( "(") (type_descriptor "long" (sized_type_specifier "long" (long "long"))) () ")") (pointer_expression "&PTR_s_audit_002afca0" (& "&") (identifier "PTR_s_audit_002afca0"))) (- "-") (identifier "lVar2")) () ")")))) (; ";")) (expression_statement "puVar7 = (undefined8 *)((ulong)(puVar7 + 1) & 0xfffffffffffffff8);" (assignment_expression "puVar7 = (undefined8 *)((ulong)(puVar7 + 1) & 0xfffffffffffffff8)" (identifier "puVar7") (= "=") (cast_expression "(undefined8 *)((ulong)(puVar7 + 1) & 0xfffffffffffffff8)" (( "(") (type_descriptor "undefined8 *" (type_identifier "undefined8") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "((ulong)(puVar7 + 1) & 0xfffffffffffffff8)" (( "(") (binary_expression "(ulong)(puVar7 + 1) & 0xfffffffffffffff8" (call_expression "(ulong)(puVar7 + 1)" (parenthesized_expression "(ulong)" (( "(") (identifier "ulong") () ")")) (argument_list "(puVar7 + 1)" (( "(") (binary_expression "puVar7 + 1" (identifier "puVar7") (+ "+") (number_literal "1")) () ")"))) (& "&") (number_literal "0xfffffffffffffff8")) () ")")))) (; ";")) (for_statement "for (uVar3 = (ulong)((int)lVar2 + 0x1c0U >> 3); uVar3 != 0; uVar3 = uVar3 - 1) {\n    *puVar7 = *puVar6;\n    puVar6 = puVar6 + (ulong)bVar8 * -2 + 1;\n    puVar7 = puVar7 + (ulong)bVar8 * -2 + 1;\n  }" (for "for") (( "(") (assignment_expression "uVar3 = (ulong)((int)lVar2 + 0x1c0U >> 3)" (identifier "uVar3") (= "=") (call_expression "(ulong)((int)lVar2 + 0x1c0U >> 3)" (parenthesized_expression "(ulong)" (( "(") (identifier "ulong") () ")")) (argument_list "((int)lVar2 + 0x1c0U >> 3)" (( "(") (binary_expression "(int)lVar2 + 0x1c0U >> 3" (binary_expression "(int)lVar2 + 0x1c0U" (cast_expression "(int)lVar2" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (identifier "lVar2")) (+ "+") (number_literal "0x1c0U")) (>> ">>") (number_literal "3")) () ")")))) (; ";") (binary_expression "uVar3 != 0" (identifier "uVar3") (!= "!=") (number_literal "0")) (; ";") (assignment_expression "uVar3 = uVar3 - 1" (identifier "uVar3") (= "=") (binary_expression "uVar3 - 1" (identifier "uVar3") (- "-") (number_literal "1"))) () ")") (compound_statement "{\n    *puVar7 = *puVar6;\n    puVar6 = puVar6 + (ulong)bVar8 * -2 + 1;\n    puVar7 = puVar7 + (ulong)bVar8 * -2 + 1;\n  }" ({ "{") (expression_statement "*puVar7 = *puVar6;" (assignment_expression "*puVar7 = *puVar6" (pointer_expression "*puVar7" (* "*") (identifier "puVar7")) (= "=") (pointer_expression "*puVar6" (* "*") (identifier "puVar6"))) (; ";")) (expression_statement "puVar6 = puVar6 + (ulong)bVar8 * -2 + 1;" (assignment_expression "puVar6 = puVar6 + (ulong)bVar8 * -2 + 1" (identifier "puVar6") (= "=") (binary_expression "puVar6 + (ulong)bVar8 * -2 + 1" (binary_expression "puVar6 + (ulong)bVar8 * -2" (identifier "puVar6") (+ "+") (binary_expression "(ulong)bVar8 * -2" (cast_expression "(ulong)bVar8" (( "(") (type_descriptor "ulong" (type_identifier "ulong")) () ")") (identifier "bVar8")) (* "*") (number_literal "-2"))) (+ "+") (number_literal "1"))) (; ";")) (expression_statement "puVar7 = puVar7 + (ulong)bVar8 * -2 + 1;" (assignment_expression "puVar7 = puVar7 + (ulong)bVar8 * -2 + 1" (identifier "puVar7") (= "=") (binary_expression "puVar7 + (ulong)bVar8 * -2 + 1" (binary_expression "puVar7 + (ulong)bVar8 * -2" (identifier "puVar7") (+ "+") (binary_expression "(ulong)bVar8 * -2" (cast_expression "(ulong)bVar8" (( "(") (type_descriptor "ulong" (type_identifier "ulong")) () ")") (identifier "bVar8")) (* "*") (number_literal "-2"))) (+ "+") (number_literal "1"))) (; ";")) (} "}"))) (return_statement "return;" (return "return") (; ";")) (} "}")))

void function_1
               (int ns,char **shortopts,int var_5,type_1 **longopts,int nrl,type_1 **really_longopts)

{
  type_2 uVar1;
  char *var_3;
  type_1 *var_4;
  type_3 var_6;
  long var_2;
  type_4 *var_7;
  type_4 *var_8;
  type_5 bVar8;
  
  bVar8 = 0;
  var_2 = (long)ns;
  var_3 = (char *)var_1(*shortopts,var_2 + 5);
  uVar1 = function_1::xtra_short._0_4_;
  *shortopts = var_3;
  *(type_2 *)(var_3 + var_2) = uVar1;
  var_3[var_2 + 4] = function_1::xtra_short[4];
  var_4 = (type_1 *)var_1(*longopts,((long)var_5 + 0xe) * 0x20);
  *longopts = var_4;
  var_4 = var_4 + var_5;
  var_4->name = function_1::xtra_long[0].name;
  var_8 = (type_4 *)((type_3)&var_4->has_arg & 0xfffffffffffffff8);
  uVar1 = function_1::xtra_long[0xd]._28_4_;
  var_4[0xd].val = function_1::xtra_long[0xd].val;
  *(type_2 *)&var_4[0xd].field_0x1c = uVar1;
  var_2 = (long)var_4 - (long)var_8;
  var_7 = (type_4 *)((long)function_1::xtra_long - var_2);
  for (var_6 = (type_3)((int)var_2 + 0x1c0U >> 3); var_6 != 0; var_6 = var_6 - 1) {
    *var_8 = *var_7;
    var_7 = var_7 + (type_3)bVar8 * -2 + 1;
    var_8 = var_8 + (type_3)bVar8 * -2 + 1;
  }
  return;
}


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

void MASKED(int param_1,long *param_2,int param_3,long *param_4)

{
  undefined4 uVar1;
  long lVar2;
  ulong uVar3;
  long lVar4;
  long lVar5;
  undefined8 *puVar6;
  undefined8 *puVar7;
  byte bVar8;
  
  bVar8 = 0;
  lVar5 = (long)param_1;
  lVar4 = ((long)param_3 + 0xe) * 0x20;
  lVar2 = xrealloc(*param_2,lVar5 + 5);
  uVar1 = DAT_00285214;
  *param_2 = lVar2;
  *(undefined4 *)(lVar2 + lVar5) = uVar1;
  *(undefined1 *)(lVar2 + 4 + lVar5) = DAT_00285218;
  lVar2 = xrealloc(*param_4,lVar4);
  *param_4 = lVar2;
  puVar7 = (undefined8 *)(lVar2 + -0x1c0 + lVar4);
  *puVar7 = PTR_s_audit_002afca0;
  puVar7[0x37] = DAT_002afe58;
  lVar2 = (long)puVar7 - (long)((ulong)(puVar7 + 1) & 0xfffffffffffffff8);
  puVar6 = (undefined8 *)((long)&PTR_s_audit_002afca0 - lVar2);
  puVar7 = (undefined8 *)((ulong)(puVar7 + 1) & 0xfffffffffffffff8);
  for (uVar3 = (ulong)((int)lVar2 + 0x1c0U >> 3); uVar3 != 0; uVar3 = uVar3 - 1) {
    *puVar7 = *puVar6;
    puVar6 = puVar6 + (ulong)bVar8 * -2 + 1;
    puVar7 = puVar7 + (ulong)bVar8 * -2 + 1;
  }
  return;
}

