
int relax_segment(frag *segment_frag_root,segT segment,int pass)

{
  relax_stateT rVar1;
  int iVar2;
  char *format;
  int unaff_EDI;
  
  __x86_get_pc_thunk_di();
  subseg_change(segment,0);
  if (segment_frag_root == (frag *)0x0) {
    return 0;
  }
  segment_frag_root->fr_address = 0;
  rVar1 = segment_frag_root->fr_type;
  segment_frag_root->field_0x2e = segment_frag_root->field_0x2e & 0xfe;
  *(undefined2 *)&segment_frag_root->field_0x2c = 0;
  if (rVar1 < (rs_cfa|rs_align)) {
                    /* WARNING: Could not recover jumptable at 0x0003cb9b. Too many branches */
                    /* WARNING: Treating indirect jump as call */
    iVar2 = (*(code *)(*(int *)(unaff_EDI + 0x1405d + rVar1 * 4) + unaff_EDI + 0x2d4d9))(0);
    return iVar2;
  }
  format = (char *)dcgettext(0,unaff_EDI + 0xd571,5);
                    /* WARNING: Subroutine does not return */
  as_fatal(format,rVar1,0xaa0,unaff_EDI + 0x13e51);
}



undefined4 FUN_0003cb20(undefined4 *param_1,undefined4 param_2)

{
  uint uVar1;
  undefined4 uVar2;
  int unaff_EDI;
  
  FUN_000332bf();
  FUN_00034730(param_2,0);
  if (param_1 == (undefined4 *)0x0) {
    return 0;
  }
  *param_1 = 0;
  uVar1 = param_1[0xc];
  *(byte *)((int)param_1 + 0x2e) = *(byte *)((int)param_1 + 0x2e) & 0xfe;
  *(undefined2 *)(param_1 + 0xb) = 0;
  if (uVar1 < 0xe) {
                    /* WARNING: Could not recover jumptable at 0x0003cb9b. Too many branches */
                    /* WARNING: Treating indirect jump as call */
    uVar2 = (*(code *)(*(int *)(unaff_EDI + 0x1405d + uVar1 * 4) + unaff_EDI + 0x2d4d9))(0);
    return uVar2;
  }
  uVar2 = dcgettext(0,unaff_EDI + 0xd571,5);
                    /* WARNING: Subroutine does not return */
  FUN_0002a7e0(uVar2,uVar1,0xaa0,unaff_EDI + 0x13e51);
}


PUSH EBP
PUSH EDI
CALL 0x000332bf
ADD EDI,0x2d4d9
PUSH ESI
PUSH EBX
SUB ESP,0x44
PUSH 0x0
PUSH dword ptr [ESP + 0x60]
MOV EBX,EDI
CALL 0x00034730
ADD ESP,0x10
MOV EAX,dword ptr [ESP + 0x50]
TEST EAX,EAX
JZ 0x0003d3c5
LEA EAX,[EDI + 0xfffe6798]
MOV dword ptr [ESP],0x0
MOV EBP,dword ptr [ESP + 0x50]
XOR ESI,ESI
MOV dword ptr [ESP + 0x4],0x0
MOV dword ptr [ESP + 0xc],EAX
LEA ESI,[ESI]
MOV EDX,dword ptr [EBP + 0x8]
MOVZX EAX,word ptr [ESP]
MOV dword ptr [EBP],ESI
MOV ECX,dword ptr [EBP + 0x30]
AND byte ptr [EBP + 0x2e],0xfe
ADD EDX,ESI
MOV word ptr [EBP + 0x2c],AX
MOV ESI,EDX
CMP ECX,0xd
JA 0x0003d3ec
MOV EAX,dword ptr [EDI + ECX*0x4 + 0xfffe6b84]
ADD EAX,EDI
JMP EAX
MOV EAX,dword ptr [ESP + 0x20]
ADD ESP,0x3c
POP EBX
POP ESI
POP EDI
POP EBP
RET
MOV dword ptr [ESP + 0x20],0x0
JMP 0x0003d354
MOV dword ptr [ESP],ECX
LEA EAX,[EDI + 0xfffe0098]
SUB ESP,0x4
MOV EBX,EDI
PUSH 0x5
PUSH EAX
PUSH 0x0
CALL 0x000141c0
LEA EDX,[EDI + 0xfffe6978]
PUSH EDX
PUSH 0xaa0
MOV ECX,dword ptr [ESP + 0x18]
PUSH ECX
PUSH EAX
CALL 0x0002a7e0
(translation_unit "undefined4 FUN_0003cb20(undefined4 *param_1,undefined4 param_2)\n\n{\n  uint uVar1;\n  undefined4 uVar2;\n  int unaff_EDI;\n  \n  FUN_000332bf();\n  FUN_00034730(param_2,0);\n  if (param_1 == (undefined4 *)0x0) {\n    return 0;\n  }\n  *param_1 = 0;\n  uVar1 = param_1[0xc];\n  *(byte *)((int)param_1 + 0x2e) = *(byte *)((int)param_1 + 0x2e) & 0xfe;\n  *(undefined2 *)(param_1 + 0xb) = 0;\n  if (uVar1 < 0xe) {\n                    /* WARNING: Could not recover jumptable at 0x0003cb9b. Too many branches */\n                    /* WARNING: Treating indirect jump as call */\n    uVar2 = (*(code *)(*(int *)(unaff_EDI + 0x1405d + uVar1 * 4) + unaff_EDI + 0x2d4d9))(0);\n    return uVar2;\n  }\n  uVar2 = dcgettext(0,unaff_EDI + 0xd571,5);\n                    /* WARNING: Subroutine does not return */\n  FUN_0002a7e0(uVar2,uVar1,0xaa0,unaff_EDI + 0x13e51);\n}\n\n" (function_definition "undefined4 FUN_0003cb20(undefined4 *param_1,undefined4 param_2)\n\n{\n  uint uVar1;\n  undefined4 uVar2;\n  int unaff_EDI;\n  \n  FUN_000332bf();\n  FUN_00034730(param_2,0);\n  if (param_1 == (undefined4 *)0x0) {\n    return 0;\n  }\n  *param_1 = 0;\n  uVar1 = param_1[0xc];\n  *(byte *)((int)param_1 + 0x2e) = *(byte *)((int)param_1 + 0x2e) & 0xfe;\n  *(undefined2 *)(param_1 + 0xb) = 0;\n  if (uVar1 < 0xe) {\n                    /* WARNING: Could not recover jumptable at 0x0003cb9b. Too many branches */\n                    /* WARNING: Treating indirect jump as call */\n    uVar2 = (*(code *)(*(int *)(unaff_EDI + 0x1405d + uVar1 * 4) + unaff_EDI + 0x2d4d9))(0);\n    return uVar2;\n  }\n  uVar2 = dcgettext(0,unaff_EDI + 0xd571,5);\n                    /* WARNING: Subroutine does not return */\n  FUN_0002a7e0(uVar2,uVar1,0xaa0,unaff_EDI + 0x13e51);\n}" type_identifier (function_declarator "FUN_0003cb20(undefined4 *param_1,undefined4 param_2)" identifier (parameter_list "(undefined4 *param_1,undefined4 param_2)" ( (parameter_declaration "undefined4 *param_1" type_identifier (pointer_declarator "*param_1" * identifier)) , (parameter_declaration "undefined4 param_2" type_identifier identifier) ))) (compound_statement "{\n  uint uVar1;\n  undefined4 uVar2;\n  int unaff_EDI;\n  \n  FUN_000332bf();\n  FUN_00034730(param_2,0);\n  if (param_1 == (undefined4 *)0x0) {\n    return 0;\n  }\n  *param_1 = 0;\n  uVar1 = param_1[0xc];\n  *(byte *)((int)param_1 + 0x2e) = *(byte *)((int)param_1 + 0x2e) & 0xfe;\n  *(undefined2 *)(param_1 + 0xb) = 0;\n  if (uVar1 < 0xe) {\n                    /* WARNING: Could not recover jumptable at 0x0003cb9b. Too many branches */\n                    /* WARNING: Treating indirect jump as call */\n    uVar2 = (*(code *)(*(int *)(unaff_EDI + 0x1405d + uVar1 * 4) + unaff_EDI + 0x2d4d9))(0);\n    return uVar2;\n  }\n  uVar2 = dcgettext(0,unaff_EDI + 0xd571,5);\n                    /* WARNING: Subroutine does not return */\n  FUN_0002a7e0(uVar2,uVar1,0xaa0,unaff_EDI + 0x13e51);\n}" { (declaration "uint uVar1;" type_identifier identifier ;) (declaration "undefined4 uVar2;" type_identifier identifier ;) (declaration "int unaff_EDI;" primitive_type identifier ;) (expression_statement "FUN_000332bf();" (call_expression "FUN_000332bf()" identifier (argument_list "()" ( ))) ;) (expression_statement "FUN_00034730(param_2,0);" (call_expression "FUN_00034730(param_2,0)" identifier (argument_list "(param_2,0)" ( identifier , number_literal ))) ;) (if_statement "if (param_1 == (undefined4 *)0x0) {\n    return 0;\n  }" if (parenthesized_expression "(param_1 == (undefined4 *)0x0)" ( (binary_expression "param_1 == (undefined4 *)0x0" identifier == (cast_expression "(undefined4 *)0x0" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n    return 0;\n  }" { (return_statement "return 0;" return number_literal ;) })) (expression_statement "*param_1 = 0;" (assignment_expression "*param_1 = 0" (pointer_expression "*param_1" * identifier) = number_literal) ;) (expression_statement "uVar1 = param_1[0xc];" (assignment_expression "uVar1 = param_1[0xc]" identifier = (subscript_expression "param_1[0xc]" identifier [ number_literal ])) ;) (expression_statement "*(byte *)((int)param_1 + 0x2e) = *(byte *)((int)param_1 + 0x2e) & 0xfe;" (assignment_expression "*(byte *)((int)param_1 + 0x2e) = *(byte *)((int)param_1 + 0x2e) & 0xfe" (pointer_expression "*(byte *)((int)param_1 + 0x2e)" * (cast_expression "(byte *)((int)param_1 + 0x2e)" ( (type_descriptor "byte *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)param_1 + 0x2e)" ( (binary_expression "(int)param_1 + 0x2e" (cast_expression "(int)param_1" ( (type_descriptor "int" primitive_type) ) identifier) + number_literal) )))) = (binary_expression "*(byte *)((int)param_1 + 0x2e) & 0xfe" (pointer_expression "*(byte *)((int)param_1 + 0x2e)" * (cast_expression "(byte *)((int)param_1 + 0x2e)" ( (type_descriptor "byte *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)param_1 + 0x2e)" ( (binary_expression "(int)param_1 + 0x2e" (cast_expression "(int)param_1" ( (type_descriptor "int" primitive_type) ) identifier) + number_literal) )))) & number_literal)) ;) (expression_statement "*(undefined2 *)(param_1 + 0xb) = 0;" (assignment_expression "*(undefined2 *)(param_1 + 0xb) = 0" (pointer_expression "*(undefined2 *)(param_1 + 0xb)" * (cast_expression "(undefined2 *)(param_1 + 0xb)" ( (type_descriptor "undefined2 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0xb)" ( (binary_expression "param_1 + 0xb" identifier + number_literal) )))) = number_literal) ;) (if_statement "if (uVar1 < 0xe) {\n                    /* WARNING: Could not recover jumptable at 0x0003cb9b. Too many branches */\n                    /* WARNING: Treating indirect jump as call */\n    uVar2 = (*(code *)(*(int *)(unaff_EDI + 0x1405d + uVar1 * 4) + unaff_EDI + 0x2d4d9))(0);\n    return uVar2;\n  }" if (parenthesized_expression "(uVar1 < 0xe)" ( (binary_expression "uVar1 < 0xe" identifier < number_literal) )) (compound_statement "{\n                    /* WARNING: Could not recover jumptable at 0x0003cb9b. Too many branches */\n                    /* WARNING: Treating indirect jump as call */\n    uVar2 = (*(code *)(*(int *)(unaff_EDI + 0x1405d + uVar1 * 4) + unaff_EDI + 0x2d4d9))(0);\n    return uVar2;\n  }" { comment comment (expression_statement "uVar2 = (*(code *)(*(int *)(unaff_EDI + 0x1405d + uVar1 * 4) + unaff_EDI + 0x2d4d9))(0);" (assignment_expression "uVar2 = (*(code *)(*(int *)(unaff_EDI + 0x1405d + uVar1 * 4) + unaff_EDI + 0x2d4d9))(0)" identifier = (call_expression "(*(code *)(*(int *)(unaff_EDI + 0x1405d + uVar1 * 4) + unaff_EDI + 0x2d4d9))(0)" (parenthesized_expression "(*(code *)(*(int *)(unaff_EDI + 0x1405d + uVar1 * 4) + unaff_EDI + 0x2d4d9))" ( (pointer_expression "*(code *)(*(int *)(unaff_EDI + 0x1405d + uVar1 * 4) + unaff_EDI + 0x2d4d9)" * (cast_expression "(code *)(*(int *)(unaff_EDI + 0x1405d + uVar1 * 4) + unaff_EDI + 0x2d4d9)" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(*(int *)(unaff_EDI + 0x1405d + uVar1 * 4) + unaff_EDI + 0x2d4d9)" ( (binary_expression "*(int *)(unaff_EDI + 0x1405d + uVar1 * 4) + unaff_EDI + 0x2d4d9" (binary_expression "*(int *)(unaff_EDI + 0x1405d + uVar1 * 4) + unaff_EDI" (pointer_expression "*(int *)(unaff_EDI + 0x1405d + uVar1 * 4)" * (cast_expression "(int *)(unaff_EDI + 0x1405d + uVar1 * 4)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(unaff_EDI + 0x1405d + uVar1 * 4)" ( (binary_expression "unaff_EDI + 0x1405d + uVar1 * 4" (binary_expression "unaff_EDI + 0x1405d" identifier + number_literal) + (binary_expression "uVar1 * 4" identifier * number_literal)) )))) + identifier) + number_literal) )))) )) (argument_list "(0)" ( number_literal )))) ;) (return_statement "return uVar2;" return identifier ;) })) (expression_statement "uVar2 = dcgettext(0,unaff_EDI + 0xd571,5);" (assignment_expression "uVar2 = dcgettext(0,unaff_EDI + 0xd571,5)" identifier = (call_expression "dcgettext(0,unaff_EDI + 0xd571,5)" identifier (argument_list "(0,unaff_EDI + 0xd571,5)" ( number_literal , (binary_expression "unaff_EDI + 0xd571" identifier + number_literal) , number_literal )))) ;) comment (expression_statement "FUN_0002a7e0(uVar2,uVar1,0xaa0,unaff_EDI + 0x13e51);" (call_expression "FUN_0002a7e0(uVar2,uVar1,0xaa0,unaff_EDI + 0x13e51)" identifier (argument_list "(uVar2,uVar1,0xaa0,unaff_EDI + 0x13e51)" ( identifier , identifier , number_literal , (binary_expression "unaff_EDI + 0x13e51" identifier + number_literal) ))) ;) })))
(translation_unit "int relax_segment(frag *segment_frag_root,segT segment,int pass)\n\n{\n  relax_stateT rVar1;\n  int iVar2;\n  char *format;\n  int unaff_EDI;\n  \n  __x86_get_pc_thunk_di();\n  subseg_change(segment,0);\n  if (segment_frag_root == (frag *)0x0) {\n    return 0;\n  }\n  segment_frag_root->fr_address = 0;\n  rVar1 = segment_frag_root->fr_type;\n  segment_frag_root->field_0x2e = segment_frag_root->field_0x2e & 0xfe;\n  *(undefined2 *)&segment_frag_root->field_0x2c = 0;\n  if (rVar1 < (rs_cfa|rs_align)) {\n                    /* WARNING: Could not recover jumptable at 0x0003cb9b. Too many branches */\n                    /* WARNING: Treating indirect jump as call */\n    iVar2 = (*(code *)(*(int *)(unaff_EDI + 0x1405d + rVar1 * 4) + unaff_EDI + 0x2d4d9))(0);\n    return iVar2;\n  }\n  format = (char *)dcgettext(0,unaff_EDI + 0xd571,5);\n                    /* WARNING: Subroutine does not return */\n  as_fatal(format,rVar1,0xaa0,unaff_EDI + 0x13e51);\n}\n\n" (function_definition "int relax_segment(frag *segment_frag_root,segT segment,int pass)\n\n{\n  relax_stateT rVar1;\n  int iVar2;\n  char *format;\n  int unaff_EDI;\n  \n  __x86_get_pc_thunk_di();\n  subseg_change(segment,0);\n  if (segment_frag_root == (frag *)0x0) {\n    return 0;\n  }\n  segment_frag_root->fr_address = 0;\n  rVar1 = segment_frag_root->fr_type;\n  segment_frag_root->field_0x2e = segment_frag_root->field_0x2e & 0xfe;\n  *(undefined2 *)&segment_frag_root->field_0x2c = 0;\n  if (rVar1 < (rs_cfa|rs_align)) {\n                    /* WARNING: Could not recover jumptable at 0x0003cb9b. Too many branches */\n                    /* WARNING: Treating indirect jump as call */\n    iVar2 = (*(code *)(*(int *)(unaff_EDI + 0x1405d + rVar1 * 4) + unaff_EDI + 0x2d4d9))(0);\n    return iVar2;\n  }\n  format = (char *)dcgettext(0,unaff_EDI + 0xd571,5);\n                    /* WARNING: Subroutine does not return */\n  as_fatal(format,rVar1,0xaa0,unaff_EDI + 0x13e51);\n}" primitive_type (function_declarator "relax_segment(frag *segment_frag_root,segT segment,int pass)" identifier (parameter_list "(frag *segment_frag_root,segT segment,int pass)" ( (parameter_declaration "frag *segment_frag_root" type_identifier (pointer_declarator "*segment_frag_root" * identifier)) , (parameter_declaration "segT segment" type_identifier identifier) , (parameter_declaration "int pass" primitive_type identifier) ))) (compound_statement "{\n  relax_stateT rVar1;\n  int iVar2;\n  char *format;\n  int unaff_EDI;\n  \n  __x86_get_pc_thunk_di();\n  subseg_change(segment,0);\n  if (segment_frag_root == (frag *)0x0) {\n    return 0;\n  }\n  segment_frag_root->fr_address = 0;\n  rVar1 = segment_frag_root->fr_type;\n  segment_frag_root->field_0x2e = segment_frag_root->field_0x2e & 0xfe;\n  *(undefined2 *)&segment_frag_root->field_0x2c = 0;\n  if (rVar1 < (rs_cfa|rs_align)) {\n                    /* WARNING: Could not recover jumptable at 0x0003cb9b. Too many branches */\n                    /* WARNING: Treating indirect jump as call */\n    iVar2 = (*(code *)(*(int *)(unaff_EDI + 0x1405d + rVar1 * 4) + unaff_EDI + 0x2d4d9))(0);\n    return iVar2;\n  }\n  format = (char *)dcgettext(0,unaff_EDI + 0xd571,5);\n                    /* WARNING: Subroutine does not return */\n  as_fatal(format,rVar1,0xaa0,unaff_EDI + 0x13e51);\n}" { (declaration "relax_stateT rVar1;" type_identifier identifier ;) (declaration "int iVar2;" primitive_type identifier ;) (declaration "char *format;" primitive_type (pointer_declarator "*format" * identifier) ;) (declaration "int unaff_EDI;" primitive_type identifier ;) (expression_statement "__x86_get_pc_thunk_di();" (call_expression "__x86_get_pc_thunk_di()" identifier (argument_list "()" ( ))) ;) (expression_statement "subseg_change(segment,0);" (call_expression "subseg_change(segment,0)" identifier (argument_list "(segment,0)" ( identifier , number_literal ))) ;) (if_statement "if (segment_frag_root == (frag *)0x0) {\n    return 0;\n  }" if (parenthesized_expression "(segment_frag_root == (frag *)0x0)" ( (binary_expression "segment_frag_root == (frag *)0x0" identifier == (cast_expression "(frag *)0x0" ( (type_descriptor "frag *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n    return 0;\n  }" { (return_statement "return 0;" return number_literal ;) })) (expression_statement "segment_frag_root->fr_address = 0;" (assignment_expression "segment_frag_root->fr_address = 0" (field_expression "segment_frag_root->fr_address" identifier -> field_identifier) = number_literal) ;) (expression_statement "rVar1 = segment_frag_root->fr_type;" (assignment_expression "rVar1 = segment_frag_root->fr_type" identifier = (field_expression "segment_frag_root->fr_type" identifier -> field_identifier)) ;) (expression_statement "segment_frag_root->field_0x2e = segment_frag_root->field_0x2e & 0xfe;" (assignment_expression "segment_frag_root->field_0x2e = segment_frag_root->field_0x2e & 0xfe" (field_expression "segment_frag_root->field_0x2e" identifier -> field_identifier) = (binary_expression "segment_frag_root->field_0x2e & 0xfe" (field_expression "segment_frag_root->field_0x2e" identifier -> field_identifier) & number_literal)) ;) (expression_statement "*(undefined2 *)&segment_frag_root->field_0x2c = 0;" (assignment_expression "*(undefined2 *)&segment_frag_root->field_0x2c = 0" (pointer_expression "*(undefined2 *)&segment_frag_root->field_0x2c" * (cast_expression "(undefined2 *)&segment_frag_root->field_0x2c" ( (type_descriptor "undefined2 *" type_identifier (abstract_pointer_declarator "*" *)) ) (pointer_expression "&segment_frag_root->field_0x2c" & (field_expression "segment_frag_root->field_0x2c" identifier -> field_identifier)))) = number_literal) ;) (if_statement "if (rVar1 < (rs_cfa|rs_align)) {\n                    /* WARNING: Could not recover jumptable at 0x0003cb9b. Too many branches */\n                    /* WARNING: Treating indirect jump as call */\n    iVar2 = (*(code *)(*(int *)(unaff_EDI + 0x1405d + rVar1 * 4) + unaff_EDI + 0x2d4d9))(0);\n    return iVar2;\n  }" if (parenthesized_expression "(rVar1 < (rs_cfa|rs_align))" ( (binary_expression "rVar1 < (rs_cfa|rs_align)" identifier < (parenthesized_expression "(rs_cfa|rs_align)" ( (binary_expression "rs_cfa|rs_align" identifier | identifier) ))) )) (compound_statement "{\n                    /* WARNING: Could not recover jumptable at 0x0003cb9b. Too many branches */\n                    /* WARNING: Treating indirect jump as call */\n    iVar2 = (*(code *)(*(int *)(unaff_EDI + 0x1405d + rVar1 * 4) + unaff_EDI + 0x2d4d9))(0);\n    return iVar2;\n  }" { comment comment (expression_statement "iVar2 = (*(code *)(*(int *)(unaff_EDI + 0x1405d + rVar1 * 4) + unaff_EDI + 0x2d4d9))(0);" (assignment_expression "iVar2 = (*(code *)(*(int *)(unaff_EDI + 0x1405d + rVar1 * 4) + unaff_EDI + 0x2d4d9))(0)" identifier = (call_expression "(*(code *)(*(int *)(unaff_EDI + 0x1405d + rVar1 * 4) + unaff_EDI + 0x2d4d9))(0)" (parenthesized_expression "(*(code *)(*(int *)(unaff_EDI + 0x1405d + rVar1 * 4) + unaff_EDI + 0x2d4d9))" ( (pointer_expression "*(code *)(*(int *)(unaff_EDI + 0x1405d + rVar1 * 4) + unaff_EDI + 0x2d4d9)" * (cast_expression "(code *)(*(int *)(unaff_EDI + 0x1405d + rVar1 * 4) + unaff_EDI + 0x2d4d9)" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(*(int *)(unaff_EDI + 0x1405d + rVar1 * 4) + unaff_EDI + 0x2d4d9)" ( (binary_expression "*(int *)(unaff_EDI + 0x1405d + rVar1 * 4) + unaff_EDI + 0x2d4d9" (binary_expression "*(int *)(unaff_EDI + 0x1405d + rVar1 * 4) + unaff_EDI" (pointer_expression "*(int *)(unaff_EDI + 0x1405d + rVar1 * 4)" * (cast_expression "(int *)(unaff_EDI + 0x1405d + rVar1 * 4)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(unaff_EDI + 0x1405d + rVar1 * 4)" ( (binary_expression "unaff_EDI + 0x1405d + rVar1 * 4" (binary_expression "unaff_EDI + 0x1405d" identifier + number_literal) + (binary_expression "rVar1 * 4" identifier * number_literal)) )))) + identifier) + number_literal) )))) )) (argument_list "(0)" ( number_literal )))) ;) (return_statement "return iVar2;" return identifier ;) })) (expression_statement "format = (char *)dcgettext(0,unaff_EDI + 0xd571,5);" (assignment_expression "format = (char *)dcgettext(0,unaff_EDI + 0xd571,5)" identifier = (cast_expression "(char *)dcgettext(0,unaff_EDI + 0xd571,5)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (call_expression "dcgettext(0,unaff_EDI + 0xd571,5)" identifier (argument_list "(0,unaff_EDI + 0xd571,5)" ( number_literal , (binary_expression "unaff_EDI + 0xd571" identifier + number_literal) , number_literal ))))) ;) comment (expression_statement "as_fatal(format,rVar1,0xaa0,unaff_EDI + 0x13e51);" (call_expression "as_fatal(format,rVar1,0xaa0,unaff_EDI + 0x13e51)" identifier (argument_list "(format,rVar1,0xaa0,unaff_EDI + 0x13e51)" ( identifier , identifier , number_literal , (binary_expression "unaff_EDI + 0x13e51" identifier + number_literal) ))) ;) })))
(translation_unit "undefined4 FUN_0003cb20(undefined4 *param_1,undefined4 param_2)\n\n{\n  uint uVar1;\n  undefined4 uVar2;\n  int unaff_EDI;\n  \n  FUN_000332bf();\n  FUN_00034730(param_2,0);\n  if (param_1 == (undefined4 *)0x0) {\n    return 0;\n  }\n  *param_1 = 0;\n  uVar1 = param_1[0xc];\n  *(byte *)((int)param_1 + 0x2e) = *(byte *)((int)param_1 + 0x2e) & 0xfe;\n  *(undefined2 *)(param_1 + 0xb) = 0;\n  if (uVar1 < 0xe) {\n                    \n                    \n    uVar2 = (*(code *)(*(int *)(unaff_EDI + 0x1405d + uVar1 * 4) + unaff_EDI + 0x2d4d9))(0);\n    return uVar2;\n  }\n  uVar2 = dcgettext(0,unaff_EDI + 0xd571,5);\n                    \n  FUN_0002a7e0(uVar2,uVar1,0xaa0,unaff_EDI + 0x13e51);\n}\n\n" (function_definition "undefined4 FUN_0003cb20(undefined4 *param_1,undefined4 param_2)\n\n{\n  uint uVar1;\n  undefined4 uVar2;\n  int unaff_EDI;\n  \n  FUN_000332bf();\n  FUN_00034730(param_2,0);\n  if (param_1 == (undefined4 *)0x0) {\n    return 0;\n  }\n  *param_1 = 0;\n  uVar1 = param_1[0xc];\n  *(byte *)((int)param_1 + 0x2e) = *(byte *)((int)param_1 + 0x2e) & 0xfe;\n  *(undefined2 *)(param_1 + 0xb) = 0;\n  if (uVar1 < 0xe) {\n                    \n                    \n    uVar2 = (*(code *)(*(int *)(unaff_EDI + 0x1405d + uVar1 * 4) + unaff_EDI + 0x2d4d9))(0);\n    return uVar2;\n  }\n  uVar2 = dcgettext(0,unaff_EDI + 0xd571,5);\n                    \n  FUN_0002a7e0(uVar2,uVar1,0xaa0,unaff_EDI + 0x13e51);\n}" type_identifier (function_declarator "FUN_0003cb20(undefined4 *param_1,undefined4 param_2)" identifier (parameter_list "(undefined4 *param_1,undefined4 param_2)" ( (parameter_declaration "undefined4 *param_1" type_identifier (pointer_declarator "*param_1" * identifier)) , (parameter_declaration "undefined4 param_2" type_identifier identifier) ))) (compound_statement "{\n  uint uVar1;\n  undefined4 uVar2;\n  int unaff_EDI;\n  \n  FUN_000332bf();\n  FUN_00034730(param_2,0);\n  if (param_1 == (undefined4 *)0x0) {\n    return 0;\n  }\n  *param_1 = 0;\n  uVar1 = param_1[0xc];\n  *(byte *)((int)param_1 + 0x2e) = *(byte *)((int)param_1 + 0x2e) & 0xfe;\n  *(undefined2 *)(param_1 + 0xb) = 0;\n  if (uVar1 < 0xe) {\n                    \n                    \n    uVar2 = (*(code *)(*(int *)(unaff_EDI + 0x1405d + uVar1 * 4) + unaff_EDI + 0x2d4d9))(0);\n    return uVar2;\n  }\n  uVar2 = dcgettext(0,unaff_EDI + 0xd571,5);\n                    \n  FUN_0002a7e0(uVar2,uVar1,0xaa0,unaff_EDI + 0x13e51);\n}" { (declaration "uint uVar1;" type_identifier identifier ;) (declaration "undefined4 uVar2;" type_identifier identifier ;) (declaration "int unaff_EDI;" primitive_type identifier ;) (expression_statement "FUN_000332bf();" (call_expression "FUN_000332bf()" identifier (argument_list "()" ( ))) ;) (expression_statement "FUN_00034730(param_2,0);" (call_expression "FUN_00034730(param_2,0)" identifier (argument_list "(param_2,0)" ( identifier , number_literal ))) ;) (if_statement "if (param_1 == (undefined4 *)0x0) {\n    return 0;\n  }" if (parenthesized_expression "(param_1 == (undefined4 *)0x0)" ( (binary_expression "param_1 == (undefined4 *)0x0" identifier == (cast_expression "(undefined4 *)0x0" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n    return 0;\n  }" { (return_statement "return 0;" return number_literal ;) })) (expression_statement "*param_1 = 0;" (assignment_expression "*param_1 = 0" (pointer_expression "*param_1" * identifier) = number_literal) ;) (expression_statement "uVar1 = param_1[0xc];" (assignment_expression "uVar1 = param_1[0xc]" identifier = (subscript_expression "param_1[0xc]" identifier [ number_literal ])) ;) (expression_statement "*(byte *)((int)param_1 + 0x2e) = *(byte *)((int)param_1 + 0x2e) & 0xfe;" (assignment_expression "*(byte *)((int)param_1 + 0x2e) = *(byte *)((int)param_1 + 0x2e) & 0xfe" (pointer_expression "*(byte *)((int)param_1 + 0x2e)" * (cast_expression "(byte *)((int)param_1 + 0x2e)" ( (type_descriptor "byte *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)param_1 + 0x2e)" ( (binary_expression "(int)param_1 + 0x2e" (cast_expression "(int)param_1" ( (type_descriptor "int" primitive_type) ) identifier) + number_literal) )))) = (binary_expression "*(byte *)((int)param_1 + 0x2e) & 0xfe" (pointer_expression "*(byte *)((int)param_1 + 0x2e)" * (cast_expression "(byte *)((int)param_1 + 0x2e)" ( (type_descriptor "byte *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)param_1 + 0x2e)" ( (binary_expression "(int)param_1 + 0x2e" (cast_expression "(int)param_1" ( (type_descriptor "int" primitive_type) ) identifier) + number_literal) )))) & number_literal)) ;) (expression_statement "*(undefined2 *)(param_1 + 0xb) = 0;" (assignment_expression "*(undefined2 *)(param_1 + 0xb) = 0" (pointer_expression "*(undefined2 *)(param_1 + 0xb)" * (cast_expression "(undefined2 *)(param_1 + 0xb)" ( (type_descriptor "undefined2 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0xb)" ( (binary_expression "param_1 + 0xb" identifier + number_literal) )))) = number_literal) ;) (if_statement "if (uVar1 < 0xe) {\n                    \n                    \n    uVar2 = (*(code *)(*(int *)(unaff_EDI + 0x1405d + uVar1 * 4) + unaff_EDI + 0x2d4d9))(0);\n    return uVar2;\n  }" if (parenthesized_expression "(uVar1 < 0xe)" ( (binary_expression "uVar1 < 0xe" identifier < number_literal) )) (compound_statement "{\n                    \n                    \n    uVar2 = (*(code *)(*(int *)(unaff_EDI + 0x1405d + uVar1 * 4) + unaff_EDI + 0x2d4d9))(0);\n    return uVar2;\n  }" { (expression_statement "uVar2 = (*(code *)(*(int *)(unaff_EDI + 0x1405d + uVar1 * 4) + unaff_EDI + 0x2d4d9))(0);" (assignment_expression "uVar2 = (*(code *)(*(int *)(unaff_EDI + 0x1405d + uVar1 * 4) + unaff_EDI + 0x2d4d9))(0)" identifier = (call_expression "(*(code *)(*(int *)(unaff_EDI + 0x1405d + uVar1 * 4) + unaff_EDI + 0x2d4d9))(0)" (parenthesized_expression "(*(code *)(*(int *)(unaff_EDI + 0x1405d + uVar1 * 4) + unaff_EDI + 0x2d4d9))" ( (pointer_expression "*(code *)(*(int *)(unaff_EDI + 0x1405d + uVar1 * 4) + unaff_EDI + 0x2d4d9)" * (cast_expression "(code *)(*(int *)(unaff_EDI + 0x1405d + uVar1 * 4) + unaff_EDI + 0x2d4d9)" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(*(int *)(unaff_EDI + 0x1405d + uVar1 * 4) + unaff_EDI + 0x2d4d9)" ( (binary_expression "*(int *)(unaff_EDI + 0x1405d + uVar1 * 4) + unaff_EDI + 0x2d4d9" (binary_expression "*(int *)(unaff_EDI + 0x1405d + uVar1 * 4) + unaff_EDI" (pointer_expression "*(int *)(unaff_EDI + 0x1405d + uVar1 * 4)" * (cast_expression "(int *)(unaff_EDI + 0x1405d + uVar1 * 4)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(unaff_EDI + 0x1405d + uVar1 * 4)" ( (binary_expression "unaff_EDI + 0x1405d + uVar1 * 4" (binary_expression "unaff_EDI + 0x1405d" identifier + number_literal) + (binary_expression "uVar1 * 4" identifier * number_literal)) )))) + identifier) + number_literal) )))) )) (argument_list "(0)" ( number_literal )))) ;) (return_statement "return uVar2;" return identifier ;) })) (expression_statement "uVar2 = dcgettext(0,unaff_EDI + 0xd571,5);" (assignment_expression "uVar2 = dcgettext(0,unaff_EDI + 0xd571,5)" identifier = (call_expression "dcgettext(0,unaff_EDI + 0xd571,5)" identifier (argument_list "(0,unaff_EDI + 0xd571,5)" ( number_literal , (binary_expression "unaff_EDI + 0xd571" identifier + number_literal) , number_literal )))) ;) (expression_statement "FUN_0002a7e0(uVar2,uVar1,0xaa0,unaff_EDI + 0x13e51);" (call_expression "FUN_0002a7e0(uVar2,uVar1,0xaa0,unaff_EDI + 0x13e51)" identifier (argument_list "(uVar2,uVar1,0xaa0,unaff_EDI + 0x13e51)" ( identifier , identifier , number_literal , (binary_expression "unaff_EDI + 0x13e51" identifier + number_literal) ))) ;) })))
(translation_unit (function_definition TYPE (function_declarator IDENT (parameter_list ( (parameter_declaration TYPE (pointer_declarator * IDENT)) , (parameter_declaration TYPE IDENT) ))) (compound_statement { (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (expression_statement (call_expression IDENT (argument_list ( ))) ;) (expression_statement (call_expression IDENT (argument_list ( IDENT , LIT ))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT == (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) LIT)) )) (compound_statement { (return_statement return LIT ;) })) (expression_statement (assignment_expression (pointer_expression * IDENT) = LIT) ;) (expression_statement (assignment_expression IDENT = (subscript_expression IDENT [ LIT ])) ;) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression (cast_expression ( (type_descriptor TYPE) ) IDENT) + LIT) )))) = (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression (cast_expression ( (type_descriptor TYPE) ) IDENT) + LIT) )))) & LIT)) ;) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) = LIT) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT < LIT) )) (compound_statement { (expression_statement (assignment_expression IDENT = (call_expression (parenthesized_expression ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression (binary_expression IDENT + LIT) + (binary_expression IDENT * LIT)) )))) + IDENT) + LIT) )))) )) (argument_list ( LIT )))) ;) (return_statement return IDENT ;) })) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( LIT , (binary_expression IDENT + LIT) , LIT )))) ;) (expression_statement (call_expression IDENT (argument_list ( IDENT , IDENT , LIT , (binary_expression IDENT + LIT) ))) ;) })))
(function_definition "undefined4 FUN_0003cb20(undefined4 *param_1,undefined4 param_2)\n\n{\n  uint uVar1;\n  undefined4 uVar2;\n  int unaff_EDI;\n  \n  FUN_000332bf();\n  FUN_00034730(param_2,0);\n  if (param_1 == (undefined4 *)0x0) {\n    return 0;\n  }\n  *param_1 = 0;\n  uVar1 = param_1[0xc];\n  *(byte *)((int)param_1 + 0x2e) = *(byte *)((int)param_1 + 0x2e) & 0xfe;\n  *(undefined2 *)(param_1 + 0xb) = 0;\n  if (uVar1 < 0xe) {\n                    \n                    \n    uVar2 = (*(code *)(*(int *)(unaff_EDI + 0x1405d + uVar1 * 4) + unaff_EDI + 0x2d4d9))(0);\n    return uVar2;\n  }\n  uVar2 = dcgettext(0,unaff_EDI + 0xd571,5);\n                    \n  FUN_0002a7e0(uVar2,uVar1,0xaa0,unaff_EDI + 0x13e51);\n}" (type_identifier "undefined4") (function_declarator "FUN_0003cb20(undefined4 *param_1,undefined4 param_2)" (identifier "FUN_0003cb20") (parameter_list "(undefined4 *param_1,undefined4 param_2)" (( "(") (parameter_declaration "undefined4 *param_1" (type_identifier "undefined4") (pointer_declarator "*param_1" (* "*") (identifier "param_1"))) (, ",") (parameter_declaration "undefined4 param_2" (type_identifier "undefined4") (identifier "param_2")) () ")"))) (compound_statement "{\n  uint uVar1;\n  undefined4 uVar2;\n  int unaff_EDI;\n  \n  FUN_000332bf();\n  FUN_00034730(param_2,0);\n  if (param_1 == (undefined4 *)0x0) {\n    return 0;\n  }\n  *param_1 = 0;\n  uVar1 = param_1[0xc];\n  *(byte *)((int)param_1 + 0x2e) = *(byte *)((int)param_1 + 0x2e) & 0xfe;\n  *(undefined2 *)(param_1 + 0xb) = 0;\n  if (uVar1 < 0xe) {\n                    \n                    \n    uVar2 = (*(code *)(*(int *)(unaff_EDI + 0x1405d + uVar1 * 4) + unaff_EDI + 0x2d4d9))(0);\n    return uVar2;\n  }\n  uVar2 = dcgettext(0,unaff_EDI + 0xd571,5);\n                    \n  FUN_0002a7e0(uVar2,uVar1,0xaa0,unaff_EDI + 0x13e51);\n}" ({ "{") (declaration "uint uVar1;" (type_identifier "uint") (identifier "uVar1") (; ";")) (declaration "undefined4 uVar2;" (type_identifier "undefined4") (identifier "uVar2") (; ";")) (declaration "int unaff_EDI;" (primitive_type "int") (identifier "unaff_EDI") (; ";")) (expression_statement "FUN_000332bf();" (call_expression "FUN_000332bf()" (identifier "FUN_000332bf") (argument_list "()" (( "(") () ")"))) (; ";")) (expression_statement "FUN_00034730(param_2,0);" (call_expression "FUN_00034730(param_2,0)" (identifier "FUN_00034730") (argument_list "(param_2,0)" (( "(") (identifier "param_2") (, ",") (number_literal "0") () ")"))) (; ";")) (if_statement "if (param_1 == (undefined4 *)0x0) {\n    return 0;\n  }" (if "if") (parenthesized_expression "(param_1 == (undefined4 *)0x0)" (( "(") (binary_expression "param_1 == (undefined4 *)0x0" (identifier "param_1") (== "==") (cast_expression "(undefined4 *)0x0" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (number_literal "0x0"))) () ")")) (compound_statement "{\n    return 0;\n  }" ({ "{") (return_statement "return 0;" (return "return") (number_literal "0") (; ";")) (} "}"))) (expression_statement "*param_1 = 0;" (assignment_expression "*param_1 = 0" (pointer_expression "*param_1" (* "*") (identifier "param_1")) (= "=") (number_literal "0")) (; ";")) (expression_statement "uVar1 = param_1[0xc];" (assignment_expression "uVar1 = param_1[0xc]" (identifier "uVar1") (= "=") (subscript_expression "param_1[0xc]" (identifier "param_1") ([ "[") (number_literal "0xc") (] "]"))) (; ";")) (expression_statement "*(byte *)((int)param_1 + 0x2e) = *(byte *)((int)param_1 + 0x2e) & 0xfe;" (assignment_expression "*(byte *)((int)param_1 + 0x2e) = *(byte *)((int)param_1 + 0x2e) & 0xfe" (pointer_expression "*(byte *)((int)param_1 + 0x2e)" (* "*") (cast_expression "(byte *)((int)param_1 + 0x2e)" (( "(") (type_descriptor "byte *" (type_identifier "byte") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "((int)param_1 + 0x2e)" (( "(") (binary_expression "(int)param_1 + 0x2e" (cast_expression "(int)param_1" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (identifier "param_1")) (+ "+") (number_literal "0x2e")) () ")")))) (= "=") (binary_expression "*(byte *)((int)param_1 + 0x2e) & 0xfe" (pointer_expression "*(byte *)((int)param_1 + 0x2e)" (* "*") (cast_expression "(byte *)((int)param_1 + 0x2e)" (( "(") (type_descriptor "byte *" (type_identifier "byte") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "((int)param_1 + 0x2e)" (( "(") (binary_expression "(int)param_1 + 0x2e" (cast_expression "(int)param_1" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (identifier "param_1")) (+ "+") (number_literal "0x2e")) () ")")))) (& "&") (number_literal "0xfe"))) (; ";")) (expression_statement "*(undefined2 *)(param_1 + 0xb) = 0;" (assignment_expression "*(undefined2 *)(param_1 + 0xb) = 0" (pointer_expression "*(undefined2 *)(param_1 + 0xb)" (* "*") (cast_expression "(undefined2 *)(param_1 + 0xb)" (( "(") (type_descriptor "undefined2 *" (type_identifier "undefined2") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0xb)" (( "(") (binary_expression "param_1 + 0xb" (identifier "param_1") (+ "+") (number_literal "0xb")) () ")")))) (= "=") (number_literal "0")) (; ";")) (if_statement "if (uVar1 < 0xe) {\n                    \n                    \n    uVar2 = (*(code *)(*(int *)(unaff_EDI + 0x1405d + uVar1 * 4) + unaff_EDI + 0x2d4d9))(0);\n    return uVar2;\n  }" (if "if") (parenthesized_expression "(uVar1 < 0xe)" (( "(") (binary_expression "uVar1 < 0xe" (identifier "uVar1") (< "<") (number_literal "0xe")) () ")")) (compound_statement "{\n                    \n                    \n    uVar2 = (*(code *)(*(int *)(unaff_EDI + 0x1405d + uVar1 * 4) + unaff_EDI + 0x2d4d9))(0);\n    return uVar2;\n  }" ({ "{") (expression_statement "uVar2 = (*(code *)(*(int *)(unaff_EDI + 0x1405d + uVar1 * 4) + unaff_EDI + 0x2d4d9))(0);" (assignment_expression "uVar2 = (*(code *)(*(int *)(unaff_EDI + 0x1405d + uVar1 * 4) + unaff_EDI + 0x2d4d9))(0)" (identifier "uVar2") (= "=") (call_expression "(*(code *)(*(int *)(unaff_EDI + 0x1405d + uVar1 * 4) + unaff_EDI + 0x2d4d9))(0)" (parenthesized_expression "(*(code *)(*(int *)(unaff_EDI + 0x1405d + uVar1 * 4) + unaff_EDI + 0x2d4d9))" (( "(") (pointer_expression "*(code *)(*(int *)(unaff_EDI + 0x1405d + uVar1 * 4) + unaff_EDI + 0x2d4d9)" (* "*") (cast_expression "(code *)(*(int *)(unaff_EDI + 0x1405d + uVar1 * 4) + unaff_EDI + 0x2d4d9)" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(*(int *)(unaff_EDI + 0x1405d + uVar1 * 4) + unaff_EDI + 0x2d4d9)" (( "(") (binary_expression "*(int *)(unaff_EDI + 0x1405d + uVar1 * 4) + unaff_EDI + 0x2d4d9" (binary_expression "*(int *)(unaff_EDI + 0x1405d + uVar1 * 4) + unaff_EDI" (pointer_expression "*(int *)(unaff_EDI + 0x1405d + uVar1 * 4)" (* "*") (cast_expression "(int *)(unaff_EDI + 0x1405d + uVar1 * 4)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(unaff_EDI + 0x1405d + uVar1 * 4)" (( "(") (binary_expression "unaff_EDI + 0x1405d + uVar1 * 4" (binary_expression "unaff_EDI + 0x1405d" (identifier "unaff_EDI") (+ "+") (number_literal "0x1405d")) (+ "+") (binary_expression "uVar1 * 4" (identifier "uVar1") (* "*") (number_literal "4"))) () ")")))) (+ "+") (identifier "unaff_EDI")) (+ "+") (number_literal "0x2d4d9")) () ")")))) () ")")) (argument_list "(0)" (( "(") (number_literal "0") () ")")))) (; ";")) (return_statement "return uVar2;" (return "return") (identifier "uVar2") (; ";")) (} "}"))) (expression_statement "uVar2 = dcgettext(0,unaff_EDI + 0xd571,5);" (assignment_expression "uVar2 = dcgettext(0,unaff_EDI + 0xd571,5)" (identifier "uVar2") (= "=") (call_expression "dcgettext(0,unaff_EDI + 0xd571,5)" (identifier "dcgettext") (argument_list "(0,unaff_EDI + 0xd571,5)" (( "(") (number_literal "0") (, ",") (binary_expression "unaff_EDI + 0xd571" (identifier "unaff_EDI") (+ "+") (number_literal "0xd571")) (, ",") (number_literal "5") () ")")))) (; ";")) (expression_statement "FUN_0002a7e0(uVar2,uVar1,0xaa0,unaff_EDI + 0x13e51);" (call_expression "FUN_0002a7e0(uVar2,uVar1,0xaa0,unaff_EDI + 0x13e51)" (identifier "FUN_0002a7e0") (argument_list "(uVar2,uVar1,0xaa0,unaff_EDI + 0x13e51)" (( "(") (identifier "uVar2") (, ",") (identifier "uVar1") (, ",") (number_literal "0xaa0") (, ",") (binary_expression "unaff_EDI + 0x13e51" (identifier "unaff_EDI") (+ "+") (number_literal "0x13e51")) () ")"))) (; ";")) (} "}")))

int function_1(type_1 *var_3,type_2 segment,int pass)

{
  type_3 var_4;
  int iVar2;
  char *format;
  int var_7;
  
  var_1();
  var_2(segment,0);
  if (var_3 == (type_1 *)0x0) {
    return 0;
  }
  var_3->fr_address = 0;
  var_4 = var_3->fr_type;
  var_3->field_0x2e = var_3->field_0x2e & 0xfe;
  *(type_4 *)&var_3->field_0x2c = 0;
  if (var_4 < (var_5|var_6)) {
                    /* WARNING: Could not recover jumptable at 0x0003cb9b. Too many branches */
                    /* WARNING: Treating indirect jump as call */
    iVar2 = (*(type_5 *)(*(int *)(var_7 + 0x1405d + var_4 * 4) + var_7 + 0x2d4d9))(0);
    return iVar2;
  }
  format = (char *)var_8(0,var_7 + 0xd571,5);
                    /* WARNING: Subroutine does not return */
  var_9(format,var_4,0xaa0,var_7 + 0x13e51);
}


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

undefined4 MASKED(undefined4 *param_1,undefined4 param_2)

{
  uint uVar1;
  undefined4 uVar2;
  int unaff_EDI;
  
  FUN_000332bf();
  FUN_00034730(param_2,0);
  if (param_1 == (undefined4 *)0x0) {
    return 0;
  }
  *param_1 = 0;
  uVar1 = param_1[0xc];
  *(byte *)((int)param_1 + 0x2e) = *(byte *)((int)param_1 + 0x2e) & 0xfe;
  *(undefined2 *)(param_1 + 0xb) = 0;
  if (uVar1 < 0xe) {
                    /* WARNING: Could not recover jumptable at 0x0003cb9b. Too many branches */
                    /* WARNING: Treating indirect jump as call */
    uVar2 = (*(code *)(*(int *)(unaff_EDI + 0x1405d + uVar1 * 4) + unaff_EDI + 0x2d4d9))(0);
    return uVar2;
  }
  uVar2 = dcgettext(0,unaff_EDI + 0xd571,5);
                    /* WARNING: Subroutine does not return */
  FUN_0002a7e0(uVar2,uVar1,0xaa0,unaff_EDI + 0x13e51);
}

