
void lang_enter_overlay_section(char *name)

{
  overlay_list *poVar1;
  etree_type *rhs;
  
  lang_enter_output_section_statement
            (name,overlay_vma,overlay_section,(etree_type *)0x0,overlay_subalign,(etree_type *)0x0,0
             ,0);
  if (overlay_list == (overlay_list *)0x0) {
    overlay_vma = exp_nameop(0x143,name);
  }
  poVar1 = (overlay_list *)xmalloc(0x10);
  poVar1->os = current_section;
  poVar1->next = overlay_list;
  overlay_list = poVar1;
  rhs = exp_nameop(0x141,name);
  if (overlay_max != (etree_type *)0x0) {
    rhs = exp_binop(0x145,overlay_max,rhs);
  }
  overlay_max = rhs;
  return;
}



void FUN_0011b200(undefined8 param_1)

{
  long *plVar1;
  undefined8 uVar2;
  
  FUN_00119c20(param_1,DAT_00171240,1,0,DAT_00171238,0,0);
  if (DAT_00171228 == (long *)0x0) {
    DAT_00171240 = FUN_001232b0(0x143,param_1,0);
  }
  plVar1 = (long *)xmalloc(0x10);
  plVar1[1] = DAT_00171270;
  *plVar1 = (long)DAT_00171228;
  DAT_00171228 = plVar1;
  uVar2 = FUN_001232b0(0x141,param_1);
  if (DAT_00171230 != 0) {
    uVar2 = FUN_00123130(0x145,DAT_00171230,uVar2);
  }
  DAT_00171230 = uVar2;
  return;
}


PUSH RBX
MOV R8,qword ptr [0x00171238]
XOR R9D,R9D
XOR ECX,ECX
PUSH 0x0
MOV RSI,qword ptr [0x00171240]
MOV EDX,0x1
MOV RBX,RDI
PUSH 0x0
CALL 0x00119c20
CMP qword ptr [0x00171228],0x0
POP RAX
POP RDX
JZ 0x0011b290
MOV EDI,0x10
CALL 0x00109c00
MOV RDX,qword ptr [0x00171270]
MOV RSI,RBX
MOV EDI,0x141
MOV qword ptr [RAX + 0x8],RDX
MOV RDX,qword ptr [0x00171228]
MOV qword ptr [0x00171228],RAX
MOV qword ptr [RAX],RDX
CALL 0x001232b0
MOV RSI,qword ptr [0x00171230]
TEST RSI,RSI
JZ 0x0011b27d
MOV RDX,RAX
MOV EDI,0x145
CALL 0x00123130
MOV qword ptr [0x00171230],RAX
POP RBX
RET
MOV RSI,RBX
MOV EDI,0x143
CALL 0x001232b0
MOV qword ptr [0x00171240],RAX
JMP 0x0011b231
(translation_unit "void FUN_0011b200(undefined8 param_1)\n\n{\n  long *plVar1;\n  undefined8 uVar2;\n  \n  FUN_00119c20(param_1,DAT_00171240,1,0,DAT_00171238,0,0);\n  if (DAT_00171228 == (long *)0x0) {\n    DAT_00171240 = FUN_001232b0(0x143,param_1,0);\n  }\n  plVar1 = (long *)xmalloc(0x10);\n  plVar1[1] = DAT_00171270;\n  *plVar1 = (long)DAT_00171228;\n  DAT_00171228 = plVar1;\n  uVar2 = FUN_001232b0(0x141,param_1);\n  if (DAT_00171230 != 0) {\n    uVar2 = FUN_00123130(0x145,DAT_00171230,uVar2);\n  }\n  DAT_00171230 = uVar2;\n  return;\n}\n\n" (function_definition "void FUN_0011b200(undefined8 param_1)\n\n{\n  long *plVar1;\n  undefined8 uVar2;\n  \n  FUN_00119c20(param_1,DAT_00171240,1,0,DAT_00171238,0,0);\n  if (DAT_00171228 == (long *)0x0) {\n    DAT_00171240 = FUN_001232b0(0x143,param_1,0);\n  }\n  plVar1 = (long *)xmalloc(0x10);\n  plVar1[1] = DAT_00171270;\n  *plVar1 = (long)DAT_00171228;\n  DAT_00171228 = plVar1;\n  uVar2 = FUN_001232b0(0x141,param_1);\n  if (DAT_00171230 != 0) {\n    uVar2 = FUN_00123130(0x145,DAT_00171230,uVar2);\n  }\n  DAT_00171230 = uVar2;\n  return;\n}" primitive_type (function_declarator "FUN_0011b200(undefined8 param_1)" identifier (parameter_list "(undefined8 param_1)" ( (parameter_declaration "undefined8 param_1" type_identifier identifier) ))) (compound_statement "{\n  long *plVar1;\n  undefined8 uVar2;\n  \n  FUN_00119c20(param_1,DAT_00171240,1,0,DAT_00171238,0,0);\n  if (DAT_00171228 == (long *)0x0) {\n    DAT_00171240 = FUN_001232b0(0x143,param_1,0);\n  }\n  plVar1 = (long *)xmalloc(0x10);\n  plVar1[1] = DAT_00171270;\n  *plVar1 = (long)DAT_00171228;\n  DAT_00171228 = plVar1;\n  uVar2 = FUN_001232b0(0x141,param_1);\n  if (DAT_00171230 != 0) {\n    uVar2 = FUN_00123130(0x145,DAT_00171230,uVar2);\n  }\n  DAT_00171230 = uVar2;\n  return;\n}" { (declaration "long *plVar1;" (sized_type_specifier "long" long) (pointer_declarator "*plVar1" * identifier) ;) (declaration "undefined8 uVar2;" type_identifier identifier ;) (expression_statement "FUN_00119c20(param_1,DAT_00171240,1,0,DAT_00171238,0,0);" (call_expression "FUN_00119c20(param_1,DAT_00171240,1,0,DAT_00171238,0,0)" identifier (argument_list "(param_1,DAT_00171240,1,0,DAT_00171238,0,0)" ( identifier , identifier , number_literal , number_literal , identifier , number_literal , number_literal ))) ;) (if_statement "if (DAT_00171228 == (long *)0x0) {\n    DAT_00171240 = FUN_001232b0(0x143,param_1,0);\n  }" if (parenthesized_expression "(DAT_00171228 == (long *)0x0)" ( (binary_expression "DAT_00171228 == (long *)0x0" identifier == (cast_expression "(long *)0x0" ( (type_descriptor "long *" (sized_type_specifier "long" long) (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n    DAT_00171240 = FUN_001232b0(0x143,param_1,0);\n  }" { (expression_statement "DAT_00171240 = FUN_001232b0(0x143,param_1,0);" (assignment_expression "DAT_00171240 = FUN_001232b0(0x143,param_1,0)" identifier = (call_expression "FUN_001232b0(0x143,param_1,0)" identifier (argument_list "(0x143,param_1,0)" ( number_literal , identifier , number_literal )))) ;) })) (expression_statement "plVar1 = (long *)xmalloc(0x10);" (assignment_expression "plVar1 = (long *)xmalloc(0x10)" identifier = (cast_expression "(long *)xmalloc(0x10)" ( (type_descriptor "long *" (sized_type_specifier "long" long) (abstract_pointer_declarator "*" *)) ) (call_expression "xmalloc(0x10)" identifier (argument_list "(0x10)" ( number_literal ))))) ;) (expression_statement "plVar1[1] = DAT_00171270;" (assignment_expression "plVar1[1] = DAT_00171270" (subscript_expression "plVar1[1]" identifier [ number_literal ]) = identifier) ;) (expression_statement "*plVar1 = (long)DAT_00171228;" (assignment_expression "*plVar1 = (long)DAT_00171228" (pointer_expression "*plVar1" * identifier) = (cast_expression "(long)DAT_00171228" ( (type_descriptor "long" (sized_type_specifier "long" long)) ) identifier)) ;) (expression_statement "DAT_00171228 = plVar1;" (assignment_expression "DAT_00171228 = plVar1" identifier = identifier) ;) (expression_statement "uVar2 = FUN_001232b0(0x141,param_1);" (assignment_expression "uVar2 = FUN_001232b0(0x141,param_1)" identifier = (call_expression "FUN_001232b0(0x141,param_1)" identifier (argument_list "(0x141,param_1)" ( number_literal , identifier )))) ;) (if_statement "if (DAT_00171230 != 0) {\n    uVar2 = FUN_00123130(0x145,DAT_00171230,uVar2);\n  }" if (parenthesized_expression "(DAT_00171230 != 0)" ( (binary_expression "DAT_00171230 != 0" identifier != number_literal) )) (compound_statement "{\n    uVar2 = FUN_00123130(0x145,DAT_00171230,uVar2);\n  }" { (expression_statement "uVar2 = FUN_00123130(0x145,DAT_00171230,uVar2);" (assignment_expression "uVar2 = FUN_00123130(0x145,DAT_00171230,uVar2)" identifier = (call_expression "FUN_00123130(0x145,DAT_00171230,uVar2)" identifier (argument_list "(0x145,DAT_00171230,uVar2)" ( number_literal , identifier , identifier )))) ;) })) (expression_statement "DAT_00171230 = uVar2;" (assignment_expression "DAT_00171230 = uVar2" identifier = identifier) ;) (return_statement "return;" return ;) })))
(translation_unit "void lang_enter_overlay_section(char *name)\n\n{\n  overlay_list *poVar1;\n  etree_type *rhs;\n  \n  lang_enter_output_section_statement\n            (name,overlay_vma,overlay_section,(etree_type *)0x0,overlay_subalign,(etree_type *)0x0,0\n             ,0);\n  if (overlay_list == (overlay_list *)0x0) {\n    overlay_vma = exp_nameop(0x143,name);\n  }\n  poVar1 = (overlay_list *)xmalloc(0x10);\n  poVar1->os = current_section;\n  poVar1->next = overlay_list;\n  overlay_list = poVar1;\n  rhs = exp_nameop(0x141,name);\n  if (overlay_max != (etree_type *)0x0) {\n    rhs = exp_binop(0x145,overlay_max,rhs);\n  }\n  overlay_max = rhs;\n  return;\n}\n\n" (function_definition "void lang_enter_overlay_section(char *name)\n\n{\n  overlay_list *poVar1;\n  etree_type *rhs;\n  \n  lang_enter_output_section_statement\n            (name,overlay_vma,overlay_section,(etree_type *)0x0,overlay_subalign,(etree_type *)0x0,0\n             ,0);\n  if (overlay_list == (overlay_list *)0x0) {\n    overlay_vma = exp_nameop(0x143,name);\n  }\n  poVar1 = (overlay_list *)xmalloc(0x10);\n  poVar1->os = current_section;\n  poVar1->next = overlay_list;\n  overlay_list = poVar1;\n  rhs = exp_nameop(0x141,name);\n  if (overlay_max != (etree_type *)0x0) {\n    rhs = exp_binop(0x145,overlay_max,rhs);\n  }\n  overlay_max = rhs;\n  return;\n}" primitive_type (function_declarator "lang_enter_overlay_section(char *name)" identifier (parameter_list "(char *name)" ( (parameter_declaration "char *name" primitive_type (pointer_declarator "*name" * identifier)) ))) (compound_statement "{\n  overlay_list *poVar1;\n  etree_type *rhs;\n  \n  lang_enter_output_section_statement\n            (name,overlay_vma,overlay_section,(etree_type *)0x0,overlay_subalign,(etree_type *)0x0,0\n             ,0);\n  if (overlay_list == (overlay_list *)0x0) {\n    overlay_vma = exp_nameop(0x143,name);\n  }\n  poVar1 = (overlay_list *)xmalloc(0x10);\n  poVar1->os = current_section;\n  poVar1->next = overlay_list;\n  overlay_list = poVar1;\n  rhs = exp_nameop(0x141,name);\n  if (overlay_max != (etree_type *)0x0) {\n    rhs = exp_binop(0x145,overlay_max,rhs);\n  }\n  overlay_max = rhs;\n  return;\n}" { (declaration "overlay_list *poVar1;" type_identifier (pointer_declarator "*poVar1" * identifier) ;) (declaration "etree_type *rhs;" type_identifier (pointer_declarator "*rhs" * identifier) ;) (expression_statement "lang_enter_output_section_statement\n            (name,overlay_vma,overlay_section,(etree_type *)0x0,overlay_subalign,(etree_type *)0x0,0\n             ,0);" (call_expression "lang_enter_output_section_statement\n            (name,overlay_vma,overlay_section,(etree_type *)0x0,overlay_subalign,(etree_type *)0x0,0\n             ,0)" identifier (argument_list "(name,overlay_vma,overlay_section,(etree_type *)0x0,overlay_subalign,(etree_type *)0x0,0\n             ,0)" ( identifier , identifier , identifier , (cast_expression "(etree_type *)0x0" ( (type_descriptor "etree_type *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal) , identifier , (cast_expression "(etree_type *)0x0" ( (type_descriptor "etree_type *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal) , number_literal , number_literal ))) ;) (if_statement "if (overlay_list == (overlay_list *)0x0) {\n    overlay_vma = exp_nameop(0x143,name);\n  }" if (parenthesized_expression "(overlay_list == (overlay_list *)0x0)" ( (binary_expression "overlay_list == (overlay_list *)0x0" identifier == (cast_expression "(overlay_list *)0x0" ( (type_descriptor "overlay_list *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n    overlay_vma = exp_nameop(0x143,name);\n  }" { (expression_statement "overlay_vma = exp_nameop(0x143,name);" (assignment_expression "overlay_vma = exp_nameop(0x143,name)" identifier = (call_expression "exp_nameop(0x143,name)" identifier (argument_list "(0x143,name)" ( number_literal , identifier )))) ;) })) (expression_statement "poVar1 = (overlay_list *)xmalloc(0x10);" (assignment_expression "poVar1 = (overlay_list *)xmalloc(0x10)" identifier = (cast_expression "(overlay_list *)xmalloc(0x10)" ( (type_descriptor "overlay_list *" type_identifier (abstract_pointer_declarator "*" *)) ) (call_expression "xmalloc(0x10)" identifier (argument_list "(0x10)" ( number_literal ))))) ;) (expression_statement "poVar1->os = current_section;" (assignment_expression "poVar1->os = current_section" (field_expression "poVar1->os" identifier -> field_identifier) = identifier) ;) (expression_statement "poVar1->next = overlay_list;" (assignment_expression "poVar1->next = overlay_list" (field_expression "poVar1->next" identifier -> field_identifier) = identifier) ;) (expression_statement "overlay_list = poVar1;" (assignment_expression "overlay_list = poVar1" identifier = identifier) ;) (expression_statement "rhs = exp_nameop(0x141,name);" (assignment_expression "rhs = exp_nameop(0x141,name)" identifier = (call_expression "exp_nameop(0x141,name)" identifier (argument_list "(0x141,name)" ( number_literal , identifier )))) ;) (if_statement "if (overlay_max != (etree_type *)0x0) {\n    rhs = exp_binop(0x145,overlay_max,rhs);\n  }" if (parenthesized_expression "(overlay_max != (etree_type *)0x0)" ( (binary_expression "overlay_max != (etree_type *)0x0" identifier != (cast_expression "(etree_type *)0x0" ( (type_descriptor "etree_type *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n    rhs = exp_binop(0x145,overlay_max,rhs);\n  }" { (expression_statement "rhs = exp_binop(0x145,overlay_max,rhs);" (assignment_expression "rhs = exp_binop(0x145,overlay_max,rhs)" identifier = (call_expression "exp_binop(0x145,overlay_max,rhs)" identifier (argument_list "(0x145,overlay_max,rhs)" ( number_literal , identifier , identifier )))) ;) })) (expression_statement "overlay_max = rhs;" (assignment_expression "overlay_max = rhs" identifier = identifier) ;) (return_statement "return;" return ;) })))
(translation_unit "void FUN_0011b200(undefined8 param_1)\n\n{\n  long *plVar1;\n  undefined8 uVar2;\n  \n  FUN_00119c20(param_1,DAT_00171240,1,0,DAT_00171238,0,0);\n  if (DAT_00171228 == (long *)0x0) {\n    DAT_00171240 = FUN_001232b0(0x143,param_1,0);\n  }\n  plVar1 = (long *)xmalloc(0x10);\n  plVar1[1] = DAT_00171270;\n  *plVar1 = (long)DAT_00171228;\n  DAT_00171228 = plVar1;\n  uVar2 = FUN_001232b0(0x141,param_1);\n  if (DAT_00171230 != 0) {\n    uVar2 = FUN_00123130(0x145,DAT_00171230,uVar2);\n  }\n  DAT_00171230 = uVar2;\n  return;\n}\n\n" (function_definition "void FUN_0011b200(undefined8 param_1)\n\n{\n  long *plVar1;\n  undefined8 uVar2;\n  \n  FUN_00119c20(param_1,DAT_00171240,1,0,DAT_00171238,0,0);\n  if (DAT_00171228 == (long *)0x0) {\n    DAT_00171240 = FUN_001232b0(0x143,param_1,0);\n  }\n  plVar1 = (long *)xmalloc(0x10);\n  plVar1[1] = DAT_00171270;\n  *plVar1 = (long)DAT_00171228;\n  DAT_00171228 = plVar1;\n  uVar2 = FUN_001232b0(0x141,param_1);\n  if (DAT_00171230 != 0) {\n    uVar2 = FUN_00123130(0x145,DAT_00171230,uVar2);\n  }\n  DAT_00171230 = uVar2;\n  return;\n}" primitive_type (function_declarator "FUN_0011b200(undefined8 param_1)" identifier (parameter_list "(undefined8 param_1)" ( (parameter_declaration "undefined8 param_1" type_identifier identifier) ))) (compound_statement "{\n  long *plVar1;\n  undefined8 uVar2;\n  \n  FUN_00119c20(param_1,DAT_00171240,1,0,DAT_00171238,0,0);\n  if (DAT_00171228 == (long *)0x0) {\n    DAT_00171240 = FUN_001232b0(0x143,param_1,0);\n  }\n  plVar1 = (long *)xmalloc(0x10);\n  plVar1[1] = DAT_00171270;\n  *plVar1 = (long)DAT_00171228;\n  DAT_00171228 = plVar1;\n  uVar2 = FUN_001232b0(0x141,param_1);\n  if (DAT_00171230 != 0) {\n    uVar2 = FUN_00123130(0x145,DAT_00171230,uVar2);\n  }\n  DAT_00171230 = uVar2;\n  return;\n}" { (declaration "long *plVar1;" (sized_type_specifier "long" long) (pointer_declarator "*plVar1" * identifier) ;) (declaration "undefined8 uVar2;" type_identifier identifier ;) (expression_statement "FUN_00119c20(param_1,DAT_00171240,1,0,DAT_00171238,0,0);" (call_expression "FUN_00119c20(param_1,DAT_00171240,1,0,DAT_00171238,0,0)" identifier (argument_list "(param_1,DAT_00171240,1,0,DAT_00171238,0,0)" ( identifier , identifier , number_literal , number_literal , identifier , number_literal , number_literal ))) ;) (if_statement "if (DAT_00171228 == (long *)0x0) {\n    DAT_00171240 = FUN_001232b0(0x143,param_1,0);\n  }" if (parenthesized_expression "(DAT_00171228 == (long *)0x0)" ( (binary_expression "DAT_00171228 == (long *)0x0" identifier == (cast_expression "(long *)0x0" ( (type_descriptor "long *" (sized_type_specifier "long" long) (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n    DAT_00171240 = FUN_001232b0(0x143,param_1,0);\n  }" { (expression_statement "DAT_00171240 = FUN_001232b0(0x143,param_1,0);" (assignment_expression "DAT_00171240 = FUN_001232b0(0x143,param_1,0)" identifier = (call_expression "FUN_001232b0(0x143,param_1,0)" identifier (argument_list "(0x143,param_1,0)" ( number_literal , identifier , number_literal )))) ;) })) (expression_statement "plVar1 = (long *)xmalloc(0x10);" (assignment_expression "plVar1 = (long *)xmalloc(0x10)" identifier = (cast_expression "(long *)xmalloc(0x10)" ( (type_descriptor "long *" (sized_type_specifier "long" long) (abstract_pointer_declarator "*" *)) ) (call_expression "xmalloc(0x10)" identifier (argument_list "(0x10)" ( number_literal ))))) ;) (expression_statement "plVar1[1] = DAT_00171270;" (assignment_expression "plVar1[1] = DAT_00171270" (subscript_expression "plVar1[1]" identifier [ number_literal ]) = identifier) ;) (expression_statement "*plVar1 = (long)DAT_00171228;" (assignment_expression "*plVar1 = (long)DAT_00171228" (pointer_expression "*plVar1" * identifier) = (cast_expression "(long)DAT_00171228" ( (type_descriptor "long" (sized_type_specifier "long" long)) ) identifier)) ;) (expression_statement "DAT_00171228 = plVar1;" (assignment_expression "DAT_00171228 = plVar1" identifier = identifier) ;) (expression_statement "uVar2 = FUN_001232b0(0x141,param_1);" (assignment_expression "uVar2 = FUN_001232b0(0x141,param_1)" identifier = (call_expression "FUN_001232b0(0x141,param_1)" identifier (argument_list "(0x141,param_1)" ( number_literal , identifier )))) ;) (if_statement "if (DAT_00171230 != 0) {\n    uVar2 = FUN_00123130(0x145,DAT_00171230,uVar2);\n  }" if (parenthesized_expression "(DAT_00171230 != 0)" ( (binary_expression "DAT_00171230 != 0" identifier != number_literal) )) (compound_statement "{\n    uVar2 = FUN_00123130(0x145,DAT_00171230,uVar2);\n  }" { (expression_statement "uVar2 = FUN_00123130(0x145,DAT_00171230,uVar2);" (assignment_expression "uVar2 = FUN_00123130(0x145,DAT_00171230,uVar2)" identifier = (call_expression "FUN_00123130(0x145,DAT_00171230,uVar2)" identifier (argument_list "(0x145,DAT_00171230,uVar2)" ( number_literal , identifier , identifier )))) ;) })) (expression_statement "DAT_00171230 = uVar2;" (assignment_expression "DAT_00171230 = uVar2" identifier = identifier) ;) (return_statement "return;" return ;) })))
(translation_unit (function_definition TYPE (function_declarator IDENT (parameter_list ( (parameter_declaration TYPE IDENT) ))) (compound_statement { (declaration (sized_type_specifier long) (pointer_declarator * IDENT) ;) (declaration TYPE IDENT ;) (expression_statement (call_expression IDENT (argument_list ( IDENT , IDENT , LIT , LIT , IDENT , LIT , LIT ))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT == (cast_expression ( (type_descriptor (sized_type_specifier long) (abstract_pointer_declarator *)) ) LIT)) )) (compound_statement { (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( LIT , IDENT , LIT )))) ;) })) (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor (sized_type_specifier long) (abstract_pointer_declarator *)) ) (call_expression IDENT (argument_list ( LIT ))))) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = IDENT) ;) (expression_statement (assignment_expression (pointer_expression * IDENT) = (cast_expression ( (type_descriptor (sized_type_specifier long)) ) IDENT)) ;) (expression_statement (assignment_expression IDENT = IDENT) ;) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( LIT , IDENT )))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT != LIT) )) (compound_statement { (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( LIT , IDENT , IDENT )))) ;) })) (expression_statement (assignment_expression IDENT = IDENT) ;) (return_statement return ;) })))
(function_definition "void FUN_0011b200(undefined8 param_1)\n\n{\n  long *plVar1;\n  undefined8 uVar2;\n  \n  FUN_00119c20(param_1,DAT_00171240,1,0,DAT_00171238,0,0);\n  if (DAT_00171228 == (long *)0x0) {\n    DAT_00171240 = FUN_001232b0(0x143,param_1,0);\n  }\n  plVar1 = (long *)xmalloc(0x10);\n  plVar1[1] = DAT_00171270;\n  *plVar1 = (long)DAT_00171228;\n  DAT_00171228 = plVar1;\n  uVar2 = FUN_001232b0(0x141,param_1);\n  if (DAT_00171230 != 0) {\n    uVar2 = FUN_00123130(0x145,DAT_00171230,uVar2);\n  }\n  DAT_00171230 = uVar2;\n  return;\n}" (primitive_type "void") (function_declarator "FUN_0011b200(undefined8 param_1)" (identifier "FUN_0011b200") (parameter_list "(undefined8 param_1)" (( "(") (parameter_declaration "undefined8 param_1" (type_identifier "undefined8") (identifier "param_1")) () ")"))) (compound_statement "{\n  long *plVar1;\n  undefined8 uVar2;\n  \n  FUN_00119c20(param_1,DAT_00171240,1,0,DAT_00171238,0,0);\n  if (DAT_00171228 == (long *)0x0) {\n    DAT_00171240 = FUN_001232b0(0x143,param_1,0);\n  }\n  plVar1 = (long *)xmalloc(0x10);\n  plVar1[1] = DAT_00171270;\n  *plVar1 = (long)DAT_00171228;\n  DAT_00171228 = plVar1;\n  uVar2 = FUN_001232b0(0x141,param_1);\n  if (DAT_00171230 != 0) {\n    uVar2 = FUN_00123130(0x145,DAT_00171230,uVar2);\n  }\n  DAT_00171230 = uVar2;\n  return;\n}" ({ "{") (declaration "long *plVar1;" (sized_type_specifier "long" (long "long")) (pointer_declarator "*plVar1" (* "*") (identifier "plVar1")) (; ";")) (declaration "undefined8 uVar2;" (type_identifier "undefined8") (identifier "uVar2") (; ";")) (expression_statement "FUN_00119c20(param_1,DAT_00171240,1,0,DAT_00171238,0,0);" (call_expression "FUN_00119c20(param_1,DAT_00171240,1,0,DAT_00171238,0,0)" (identifier "FUN_00119c20") (argument_list "(param_1,DAT_00171240,1,0,DAT_00171238,0,0)" (( "(") (identifier "param_1") (, ",") (identifier "DAT_00171240") (, ",") (number_literal "1") (, ",") (number_literal "0") (, ",") (identifier "DAT_00171238") (, ",") (number_literal "0") (, ",") (number_literal "0") () ")"))) (; ";")) (if_statement "if (DAT_00171228 == (long *)0x0) {\n    DAT_00171240 = FUN_001232b0(0x143,param_1,0);\n  }" (if "if") (parenthesized_expression "(DAT_00171228 == (long *)0x0)" (( "(") (binary_expression "DAT_00171228 == (long *)0x0" (identifier "DAT_00171228") (== "==") (cast_expression "(long *)0x0" (( "(") (type_descriptor "long *" (sized_type_specifier "long" (long "long")) (abstract_pointer_declarator "*" (* "*"))) () ")") (number_literal "0x0"))) () ")")) (compound_statement "{\n    DAT_00171240 = FUN_001232b0(0x143,param_1,0);\n  }" ({ "{") (expression_statement "DAT_00171240 = FUN_001232b0(0x143,param_1,0);" (assignment_expression "DAT_00171240 = FUN_001232b0(0x143,param_1,0)" (identifier "DAT_00171240") (= "=") (call_expression "FUN_001232b0(0x143,param_1,0)" (identifier "FUN_001232b0") (argument_list "(0x143,param_1,0)" (( "(") (number_literal "0x143") (, ",") (identifier "param_1") (, ",") (number_literal "0") () ")")))) (; ";")) (} "}"))) (expression_statement "plVar1 = (long *)xmalloc(0x10);" (assignment_expression "plVar1 = (long *)xmalloc(0x10)" (identifier "plVar1") (= "=") (cast_expression "(long *)xmalloc(0x10)" (( "(") (type_descriptor "long *" (sized_type_specifier "long" (long "long")) (abstract_pointer_declarator "*" (* "*"))) () ")") (call_expression "xmalloc(0x10)" (identifier "xmalloc") (argument_list "(0x10)" (( "(") (number_literal "0x10") () ")"))))) (; ";")) (expression_statement "plVar1[1] = DAT_00171270;" (assignment_expression "plVar1[1] = DAT_00171270" (subscript_expression "plVar1[1]" (identifier "plVar1") ([ "[") (number_literal "1") (] "]")) (= "=") (identifier "DAT_00171270")) (; ";")) (expression_statement "*plVar1 = (long)DAT_00171228;" (assignment_expression "*plVar1 = (long)DAT_00171228" (pointer_expression "*plVar1" (* "*") (identifier "plVar1")) (= "=") (cast_expression "(long)DAT_00171228" (( "(") (type_descriptor "long" (sized_type_specifier "long" (long "long"))) () ")") (identifier "DAT_00171228"))) (; ";")) (expression_statement "DAT_00171228 = plVar1;" (assignment_expression "DAT_00171228 = plVar1" (identifier "DAT_00171228") (= "=") (identifier "plVar1")) (; ";")) (expression_statement "uVar2 = FUN_001232b0(0x141,param_1);" (assignment_expression "uVar2 = FUN_001232b0(0x141,param_1)" (identifier "uVar2") (= "=") (call_expression "FUN_001232b0(0x141,param_1)" (identifier "FUN_001232b0") (argument_list "(0x141,param_1)" (( "(") (number_literal "0x141") (, ",") (identifier "param_1") () ")")))) (; ";")) (if_statement "if (DAT_00171230 != 0) {\n    uVar2 = FUN_00123130(0x145,DAT_00171230,uVar2);\n  }" (if "if") (parenthesized_expression "(DAT_00171230 != 0)" (( "(") (binary_expression "DAT_00171230 != 0" (identifier "DAT_00171230") (!= "!=") (number_literal "0")) () ")")) (compound_statement "{\n    uVar2 = FUN_00123130(0x145,DAT_00171230,uVar2);\n  }" ({ "{") (expression_statement "uVar2 = FUN_00123130(0x145,DAT_00171230,uVar2);" (assignment_expression "uVar2 = FUN_00123130(0x145,DAT_00171230,uVar2)" (identifier "uVar2") (= "=") (call_expression "FUN_00123130(0x145,DAT_00171230,uVar2)" (identifier "FUN_00123130") (argument_list "(0x145,DAT_00171230,uVar2)" (( "(") (number_literal "0x145") (, ",") (identifier "DAT_00171230") (, ",") (identifier "uVar2") () ")")))) (; ";")) (} "}"))) (expression_statement "DAT_00171230 = uVar2;" (assignment_expression "DAT_00171230 = uVar2" (identifier "DAT_00171230") (= "=") (identifier "uVar2")) (; ";")) (return_statement "return;" (return "return") (; ";")) (} "}")))

void function_1(char *name)

{
  type_1 *poVar1;
  type_2 *rhs;
  
  var_1
            (name,overlay_vma,overlay_section,(type_2 *)0x0,overlay_subalign,(type_2 *)0x0,0
             ,0);
  if (type_1 == (type_1 *)0x0) {
    overlay_vma = var_2(0x143,name);
  }
  poVar1 = (type_1 *)var_3(0x10);
  poVar1->os = current_section;
  poVar1->next = type_1;
  type_1 = poVar1;
  rhs = var_2(0x141,name);
  if (var_4 != (type_2 *)0x0) {
    rhs = var_5(0x145,var_4,rhs);
  }
  var_4 = rhs;
  return;
}


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

void MASKED(undefined8 param_1)

{
  long *plVar1;
  undefined8 uVar2;
  
  FUN_00119c20(param_1,DAT_00171240,1,0,DAT_00171238,0,0);
  if (DAT_00171228 == (long *)0x0) {
    DAT_00171240 = FUN_001232b0(0x143,param_1,0);
  }
  plVar1 = (long *)xmalloc(0x10);
  plVar1[1] = DAT_00171270;
  *plVar1 = (long)DAT_00171228;
  DAT_00171228 = plVar1;
  uVar2 = FUN_001232b0(0x141,param_1);
  if (DAT_00171230 != 0) {
    uVar2 = FUN_00123130(0x145,DAT_00171230,uVar2);
  }
  DAT_00171230 = uVar2;
  return;
}

