
/* WARNING: Removing unreachable block (ram,0x00339743) */

void FUN_00158987(undefined8 param_1,undefined8 param_2,long param_3)

{
  uint *puVar1;
  long lVar2;
  long *unaff_R15;
  
  if (param_3 != 1) {
    __cxa_begin_catch();
    lVar2 = *(long *)(*unaff_R15 + -0x18);
    puVar1 = (uint *)((long)unaff_R15 + lVar2 + 0x20);
    *puVar1 = *puVar1 | 1;
    if ((*(byte *)((long)unaff_R15 + lVar2 + 0x1c) & 1) == 0) {
      __cxa_end_catch();
      return;
    }
                    /* WARNING: Subroutine does not return */
                    /* try { // try from 001589a8 to 001589ac has its CatchHandler @ 001589c0 */
    __cxa_rethrow();
  }
  __cxa_begin_catch();
  lVar2 = *(long *)(*unaff_R15 + -0x18);
  puVar1 = (uint *)((long)unaff_R15 + lVar2 + 0x20);
  *puVar1 = *puVar1 | 1;
  if ((*(byte *)((long)unaff_R15 + lVar2 + 0x1c) & 1) == 0) {
                    /* WARNING: Subroutine does not return */
                    /* try { // try from 001589d0 to 001589d4 has its CatchHandler @ 001589d5 */
    __cxa_rethrow();
  }
                    /* WARNING: Subroutine does not return */
  __cxa_rethrow();
}



/* WARNING: Removing unreachable block (ram,0x00339743) */

void FUN_00158987(undefined8 param_1,undefined8 param_2,long param_3)

{
  uint *puVar1;
  long lVar2;
  long *unaff_R15;
  
  if (param_3 != 1) {
    FUN_003382c0();
    lVar2 = *(long *)(*unaff_R15 + -0x18);
    puVar1 = (uint *)((long)unaff_R15 + lVar2 + 0x20);
    *puVar1 = *puVar1 | 1;
    if ((*(byte *)((long)unaff_R15 + lVar2 + 0x1c) & 1) == 0) {
      FUN_00338330();
      return;
    }
                    /* WARNING: Subroutine does not return */
                    /* try { // try from 001589a8 to 001589ac has its CatchHandler @ 001589c0 */
    FUN_00337650();
  }
  FUN_003382c0();
  lVar2 = *(long *)(*unaff_R15 + -0x18);
  puVar1 = (uint *)((long)unaff_R15 + lVar2 + 0x20);
  *puVar1 = *puVar1 | 1;
  if ((*(byte *)((long)unaff_R15 + lVar2 + 0x1c) & 1) == 0) {
                    /* WARNING: Subroutine does not return */
                    /* try { // try from 001589d0 to 001589d4 has its CatchHandler @ 001589d5 */
    FUN_00337650();
  }
                    /* WARNING: Subroutine does not return */
  FUN_00337650();
}


MOV R12D,0x1
JMP 0x00158961
CALL 0x003382c0
MOV RAX,qword ptr [R15]
MOV RBX,qword ptr [RAX + -0x18]
ADD RBX,R15
OR dword ptr [RBX + 0x20],0x1
TEST byte ptr [RBX + 0x1c],0x1
JZ 0x001589ad
CALL 0x00337650
CALL 0x00338330
TEST R12,R12
JZ 0x00339743
JMP 0x0033975a
CALL 0x00337650
(translation_unit "/* WARNING: Removing unreachable block (ram,0x00339743) */\n\nvoid FUN_00158987(undefined8 param_1,undefined8 param_2,long param_3)\n\n{\n  uint *puVar1;\n  long lVar2;\n  long *unaff_R15;\n  \n  if (param_3 != 1) {\n    FUN_003382c0();\n    lVar2 = *(long *)(*unaff_R15 + -0x18);\n    puVar1 = (uint *)((long)unaff_R15 + lVar2 + 0x20);\n    *puVar1 = *puVar1 | 1;\n    if ((*(byte *)((long)unaff_R15 + lVar2 + 0x1c) & 1) == 0) {\n      FUN_00338330();\n      return;\n    }\n                    /* WARNING: Subroutine does not return */\n                    /* try { // try from 001589a8 to 001589ac has its CatchHandler @ 001589c0 */\n    FUN_00337650();\n  }\n  FUN_003382c0();\n  lVar2 = *(long *)(*unaff_R15 + -0x18);\n  puVar1 = (uint *)((long)unaff_R15 + lVar2 + 0x20);\n  *puVar1 = *puVar1 | 1;\n  if ((*(byte *)((long)unaff_R15 + lVar2 + 0x1c) & 1) == 0) {\n                    /* WARNING: Subroutine does not return */\n                    /* try { // try from 001589d0 to 001589d4 has its CatchHandler @ 001589d5 */\n    FUN_00337650();\n  }\n                    /* WARNING: Subroutine does not return */\n  FUN_00337650();\n}\n\n" comment (function_definition "void FUN_00158987(undefined8 param_1,undefined8 param_2,long param_3)\n\n{\n  uint *puVar1;\n  long lVar2;\n  long *unaff_R15;\n  \n  if (param_3 != 1) {\n    FUN_003382c0();\n    lVar2 = *(long *)(*unaff_R15 + -0x18);\n    puVar1 = (uint *)((long)unaff_R15 + lVar2 + 0x20);\n    *puVar1 = *puVar1 | 1;\n    if ((*(byte *)((long)unaff_R15 + lVar2 + 0x1c) & 1) == 0) {\n      FUN_00338330();\n      return;\n    }\n                    /* WARNING: Subroutine does not return */\n                    /* try { // try from 001589a8 to 001589ac has its CatchHandler @ 001589c0 */\n    FUN_00337650();\n  }\n  FUN_003382c0();\n  lVar2 = *(long *)(*unaff_R15 + -0x18);\n  puVar1 = (uint *)((long)unaff_R15 + lVar2 + 0x20);\n  *puVar1 = *puVar1 | 1;\n  if ((*(byte *)((long)unaff_R15 + lVar2 + 0x1c) & 1) == 0) {\n                    /* WARNING: Subroutine does not return */\n                    /* try { // try from 001589d0 to 001589d4 has its CatchHandler @ 001589d5 */\n    FUN_00337650();\n  }\n                    /* WARNING: Subroutine does not return */\n  FUN_00337650();\n}" primitive_type (function_declarator "FUN_00158987(undefined8 param_1,undefined8 param_2,long param_3)" identifier (parameter_list "(undefined8 param_1,undefined8 param_2,long param_3)" ( (parameter_declaration "undefined8 param_1" type_identifier identifier) , (parameter_declaration "undefined8 param_2" type_identifier identifier) , (parameter_declaration "long param_3" (sized_type_specifier "long" long) identifier) ))) (compound_statement "{\n  uint *puVar1;\n  long lVar2;\n  long *unaff_R15;\n  \n  if (param_3 != 1) {\n    FUN_003382c0();\n    lVar2 = *(long *)(*unaff_R15 + -0x18);\n    puVar1 = (uint *)((long)unaff_R15 + lVar2 + 0x20);\n    *puVar1 = *puVar1 | 1;\n    if ((*(byte *)((long)unaff_R15 + lVar2 + 0x1c) & 1) == 0) {\n      FUN_00338330();\n      return;\n    }\n                    /* WARNING: Subroutine does not return */\n                    /* try { // try from 001589a8 to 001589ac has its CatchHandler @ 001589c0 */\n    FUN_00337650();\n  }\n  FUN_003382c0();\n  lVar2 = *(long *)(*unaff_R15 + -0x18);\n  puVar1 = (uint *)((long)unaff_R15 + lVar2 + 0x20);\n  *puVar1 = *puVar1 | 1;\n  if ((*(byte *)((long)unaff_R15 + lVar2 + 0x1c) & 1) == 0) {\n                    /* WARNING: Subroutine does not return */\n                    /* try { // try from 001589d0 to 001589d4 has its CatchHandler @ 001589d5 */\n    FUN_00337650();\n  }\n                    /* WARNING: Subroutine does not return */\n  FUN_00337650();\n}" { (declaration "uint *puVar1;" type_identifier (pointer_declarator "*puVar1" * identifier) ;) (declaration "long lVar2;" (sized_type_specifier "long" long) identifier ;) (declaration "long *unaff_R15;" (sized_type_specifier "long" long) (pointer_declarator "*unaff_R15" * identifier) ;) (if_statement "if (param_3 != 1) {\n    FUN_003382c0();\n    lVar2 = *(long *)(*unaff_R15 + -0x18);\n    puVar1 = (uint *)((long)unaff_R15 + lVar2 + 0x20);\n    *puVar1 = *puVar1 | 1;\n    if ((*(byte *)((long)unaff_R15 + lVar2 + 0x1c) & 1) == 0) {\n      FUN_00338330();\n      return;\n    }\n                    /* WARNING: Subroutine does not return */\n                    /* try { // try from 001589a8 to 001589ac has its CatchHandler @ 001589c0 */\n    FUN_00337650();\n  }" if (parenthesized_expression "(param_3 != 1)" ( (binary_expression "param_3 != 1" identifier != number_literal) )) (compound_statement "{\n    FUN_003382c0();\n    lVar2 = *(long *)(*unaff_R15 + -0x18);\n    puVar1 = (uint *)((long)unaff_R15 + lVar2 + 0x20);\n    *puVar1 = *puVar1 | 1;\n    if ((*(byte *)((long)unaff_R15 + lVar2 + 0x1c) & 1) == 0) {\n      FUN_00338330();\n      return;\n    }\n                    /* WARNING: Subroutine does not return */\n                    /* try { // try from 001589a8 to 001589ac has its CatchHandler @ 001589c0 */\n    FUN_00337650();\n  }" { (expression_statement "FUN_003382c0();" (call_expression "FUN_003382c0()" identifier (argument_list "()" ( ))) ;) (expression_statement "lVar2 = *(long *)(*unaff_R15 + -0x18);" (assignment_expression "lVar2 = *(long *)(*unaff_R15 + -0x18)" identifier = (pointer_expression "*(long *)(*unaff_R15 + -0x18)" * (cast_expression "(long *)(*unaff_R15 + -0x18)" ( (type_descriptor "long *" (sized_type_specifier "long" long) (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(*unaff_R15 + -0x18)" ( (binary_expression "*unaff_R15 + -0x18" (pointer_expression "*unaff_R15" * identifier) + number_literal) ))))) ;) (expression_statement "puVar1 = (uint *)((long)unaff_R15 + lVar2 + 0x20);" (assignment_expression "puVar1 = (uint *)((long)unaff_R15 + lVar2 + 0x20)" identifier = (cast_expression "(uint *)((long)unaff_R15 + lVar2 + 0x20)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((long)unaff_R15 + lVar2 + 0x20)" ( (binary_expression "(long)unaff_R15 + lVar2 + 0x20" (binary_expression "(long)unaff_R15 + lVar2" (cast_expression "(long)unaff_R15" ( (type_descriptor "long" (sized_type_specifier "long" long)) ) identifier) + identifier) + number_literal) )))) ;) (expression_statement "*puVar1 = *puVar1 | 1;" (assignment_expression "*puVar1 = *puVar1 | 1" (pointer_expression "*puVar1" * identifier) = (binary_expression "*puVar1 | 1" (pointer_expression "*puVar1" * identifier) | number_literal)) ;) (if_statement "if ((*(byte *)((long)unaff_R15 + lVar2 + 0x1c) & 1) == 0) {\n      FUN_00338330();\n      return;\n    }" if (parenthesized_expression "((*(byte *)((long)unaff_R15 + lVar2 + 0x1c) & 1) == 0)" ( (binary_expression "(*(byte *)((long)unaff_R15 + lVar2 + 0x1c) & 1) == 0" (parenthesized_expression "(*(byte *)((long)unaff_R15 + lVar2 + 0x1c) & 1)" ( (binary_expression "*(byte *)((long)unaff_R15 + lVar2 + 0x1c) & 1" (pointer_expression "*(byte *)((long)unaff_R15 + lVar2 + 0x1c)" * (cast_expression "(byte *)((long)unaff_R15 + lVar2 + 0x1c)" ( (type_descriptor "byte *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((long)unaff_R15 + lVar2 + 0x1c)" ( (binary_expression "(long)unaff_R15 + lVar2 + 0x1c" (binary_expression "(long)unaff_R15 + lVar2" (cast_expression "(long)unaff_R15" ( (type_descriptor "long" (sized_type_specifier "long" long)) ) identifier) + identifier) + number_literal) )))) & number_literal) )) == number_literal) )) (compound_statement "{\n      FUN_00338330();\n      return;\n    }" { (expression_statement "FUN_00338330();" (call_expression "FUN_00338330()" identifier (argument_list "()" ( ))) ;) (return_statement "return;" return ;) })) comment comment (expression_statement "FUN_00337650();" (call_expression "FUN_00337650()" identifier (argument_list "()" ( ))) ;) })) (expression_statement "FUN_003382c0();" (call_expression "FUN_003382c0()" identifier (argument_list "()" ( ))) ;) (expression_statement "lVar2 = *(long *)(*unaff_R15 + -0x18);" (assignment_expression "lVar2 = *(long *)(*unaff_R15 + -0x18)" identifier = (pointer_expression "*(long *)(*unaff_R15 + -0x18)" * (cast_expression "(long *)(*unaff_R15 + -0x18)" ( (type_descriptor "long *" (sized_type_specifier "long" long) (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(*unaff_R15 + -0x18)" ( (binary_expression "*unaff_R15 + -0x18" (pointer_expression "*unaff_R15" * identifier) + number_literal) ))))) ;) (expression_statement "puVar1 = (uint *)((long)unaff_R15 + lVar2 + 0x20);" (assignment_expression "puVar1 = (uint *)((long)unaff_R15 + lVar2 + 0x20)" identifier = (cast_expression "(uint *)((long)unaff_R15 + lVar2 + 0x20)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((long)unaff_R15 + lVar2 + 0x20)" ( (binary_expression "(long)unaff_R15 + lVar2 + 0x20" (binary_expression "(long)unaff_R15 + lVar2" (cast_expression "(long)unaff_R15" ( (type_descriptor "long" (sized_type_specifier "long" long)) ) identifier) + identifier) + number_literal) )))) ;) (expression_statement "*puVar1 = *puVar1 | 1;" (assignment_expression "*puVar1 = *puVar1 | 1" (pointer_expression "*puVar1" * identifier) = (binary_expression "*puVar1 | 1" (pointer_expression "*puVar1" * identifier) | number_literal)) ;) (if_statement "if ((*(byte *)((long)unaff_R15 + lVar2 + 0x1c) & 1) == 0) {\n                    /* WARNING: Subroutine does not return */\n                    /* try { // try from 001589d0 to 001589d4 has its CatchHandler @ 001589d5 */\n    FUN_00337650();\n  }" if (parenthesized_expression "((*(byte *)((long)unaff_R15 + lVar2 + 0x1c) & 1) == 0)" ( (binary_expression "(*(byte *)((long)unaff_R15 + lVar2 + 0x1c) & 1) == 0" (parenthesized_expression "(*(byte *)((long)unaff_R15 + lVar2 + 0x1c) & 1)" ( (binary_expression "*(byte *)((long)unaff_R15 + lVar2 + 0x1c) & 1" (pointer_expression "*(byte *)((long)unaff_R15 + lVar2 + 0x1c)" * (cast_expression "(byte *)((long)unaff_R15 + lVar2 + 0x1c)" ( (type_descriptor "byte *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((long)unaff_R15 + lVar2 + 0x1c)" ( (binary_expression "(long)unaff_R15 + lVar2 + 0x1c" (binary_expression "(long)unaff_R15 + lVar2" (cast_expression "(long)unaff_R15" ( (type_descriptor "long" (sized_type_specifier "long" long)) ) identifier) + identifier) + number_literal) )))) & number_literal) )) == number_literal) )) (compound_statement "{\n                    /* WARNING: Subroutine does not return */\n                    /* try { // try from 001589d0 to 001589d4 has its CatchHandler @ 001589d5 */\n    FUN_00337650();\n  }" { comment comment (expression_statement "FUN_00337650();" (call_expression "FUN_00337650()" identifier (argument_list "()" ( ))) ;) })) comment (expression_statement "FUN_00337650();" (call_expression "FUN_00337650()" identifier (argument_list "()" ( ))) ;) })))
(translation_unit "/* WARNING: Removing unreachable block (ram,0x00339743) */\n\nvoid FUN_00158987(undefined8 param_1,undefined8 param_2,long param_3)\n\n{\n  uint *puVar1;\n  long lVar2;\n  long *unaff_R15;\n  \n  if (param_3 != 1) {\n    __cxa_begin_catch();\n    lVar2 = *(long *)(*unaff_R15 + -0x18);\n    puVar1 = (uint *)((long)unaff_R15 + lVar2 + 0x20);\n    *puVar1 = *puVar1 | 1;\n    if ((*(byte *)((long)unaff_R15 + lVar2 + 0x1c) & 1) == 0) {\n      __cxa_end_catch();\n      return;\n    }\n                    /* WARNING: Subroutine does not return */\n                    /* try { // try from 001589a8 to 001589ac has its CatchHandler @ 001589c0 */\n    __cxa_rethrow();\n  }\n  __cxa_begin_catch();\n  lVar2 = *(long *)(*unaff_R15 + -0x18);\n  puVar1 = (uint *)((long)unaff_R15 + lVar2 + 0x20);\n  *puVar1 = *puVar1 | 1;\n  if ((*(byte *)((long)unaff_R15 + lVar2 + 0x1c) & 1) == 0) {\n                    /* WARNING: Subroutine does not return */\n                    /* try { // try from 001589d0 to 001589d4 has its CatchHandler @ 001589d5 */\n    __cxa_rethrow();\n  }\n                    /* WARNING: Subroutine does not return */\n  __cxa_rethrow();\n}\n\n" comment (function_definition "void FUN_00158987(undefined8 param_1,undefined8 param_2,long param_3)\n\n{\n  uint *puVar1;\n  long lVar2;\n  long *unaff_R15;\n  \n  if (param_3 != 1) {\n    __cxa_begin_catch();\n    lVar2 = *(long *)(*unaff_R15 + -0x18);\n    puVar1 = (uint *)((long)unaff_R15 + lVar2 + 0x20);\n    *puVar1 = *puVar1 | 1;\n    if ((*(byte *)((long)unaff_R15 + lVar2 + 0x1c) & 1) == 0) {\n      __cxa_end_catch();\n      return;\n    }\n                    /* WARNING: Subroutine does not return */\n                    /* try { // try from 001589a8 to 001589ac has its CatchHandler @ 001589c0 */\n    __cxa_rethrow();\n  }\n  __cxa_begin_catch();\n  lVar2 = *(long *)(*unaff_R15 + -0x18);\n  puVar1 = (uint *)((long)unaff_R15 + lVar2 + 0x20);\n  *puVar1 = *puVar1 | 1;\n  if ((*(byte *)((long)unaff_R15 + lVar2 + 0x1c) & 1) == 0) {\n                    /* WARNING: Subroutine does not return */\n                    /* try { // try from 001589d0 to 001589d4 has its CatchHandler @ 001589d5 */\n    __cxa_rethrow();\n  }\n                    /* WARNING: Subroutine does not return */\n  __cxa_rethrow();\n}" primitive_type (function_declarator "FUN_00158987(undefined8 param_1,undefined8 param_2,long param_3)" identifier (parameter_list "(undefined8 param_1,undefined8 param_2,long param_3)" ( (parameter_declaration "undefined8 param_1" type_identifier identifier) , (parameter_declaration "undefined8 param_2" type_identifier identifier) , (parameter_declaration "long param_3" (sized_type_specifier "long" long) identifier) ))) (compound_statement "{\n  uint *puVar1;\n  long lVar2;\n  long *unaff_R15;\n  \n  if (param_3 != 1) {\n    __cxa_begin_catch();\n    lVar2 = *(long *)(*unaff_R15 + -0x18);\n    puVar1 = (uint *)((long)unaff_R15 + lVar2 + 0x20);\n    *puVar1 = *puVar1 | 1;\n    if ((*(byte *)((long)unaff_R15 + lVar2 + 0x1c) & 1) == 0) {\n      __cxa_end_catch();\n      return;\n    }\n                    /* WARNING: Subroutine does not return */\n                    /* try { // try from 001589a8 to 001589ac has its CatchHandler @ 001589c0 */\n    __cxa_rethrow();\n  }\n  __cxa_begin_catch();\n  lVar2 = *(long *)(*unaff_R15 + -0x18);\n  puVar1 = (uint *)((long)unaff_R15 + lVar2 + 0x20);\n  *puVar1 = *puVar1 | 1;\n  if ((*(byte *)((long)unaff_R15 + lVar2 + 0x1c) & 1) == 0) {\n                    /* WARNING: Subroutine does not return */\n                    /* try { // try from 001589d0 to 001589d4 has its CatchHandler @ 001589d5 */\n    __cxa_rethrow();\n  }\n                    /* WARNING: Subroutine does not return */\n  __cxa_rethrow();\n}" { (declaration "uint *puVar1;" type_identifier (pointer_declarator "*puVar1" * identifier) ;) (declaration "long lVar2;" (sized_type_specifier "long" long) identifier ;) (declaration "long *unaff_R15;" (sized_type_specifier "long" long) (pointer_declarator "*unaff_R15" * identifier) ;) (if_statement "if (param_3 != 1) {\n    __cxa_begin_catch();\n    lVar2 = *(long *)(*unaff_R15 + -0x18);\n    puVar1 = (uint *)((long)unaff_R15 + lVar2 + 0x20);\n    *puVar1 = *puVar1 | 1;\n    if ((*(byte *)((long)unaff_R15 + lVar2 + 0x1c) & 1) == 0) {\n      __cxa_end_catch();\n      return;\n    }\n                    /* WARNING: Subroutine does not return */\n                    /* try { // try from 001589a8 to 001589ac has its CatchHandler @ 001589c0 */\n    __cxa_rethrow();\n  }" if (parenthesized_expression "(param_3 != 1)" ( (binary_expression "param_3 != 1" identifier != number_literal) )) (compound_statement "{\n    __cxa_begin_catch();\n    lVar2 = *(long *)(*unaff_R15 + -0x18);\n    puVar1 = (uint *)((long)unaff_R15 + lVar2 + 0x20);\n    *puVar1 = *puVar1 | 1;\n    if ((*(byte *)((long)unaff_R15 + lVar2 + 0x1c) & 1) == 0) {\n      __cxa_end_catch();\n      return;\n    }\n                    /* WARNING: Subroutine does not return */\n                    /* try { // try from 001589a8 to 001589ac has its CatchHandler @ 001589c0 */\n    __cxa_rethrow();\n  }" { (expression_statement "__cxa_begin_catch();" (call_expression "__cxa_begin_catch()" identifier (argument_list "()" ( ))) ;) (expression_statement "lVar2 = *(long *)(*unaff_R15 + -0x18);" (assignment_expression "lVar2 = *(long *)(*unaff_R15 + -0x18)" identifier = (pointer_expression "*(long *)(*unaff_R15 + -0x18)" * (cast_expression "(long *)(*unaff_R15 + -0x18)" ( (type_descriptor "long *" (sized_type_specifier "long" long) (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(*unaff_R15 + -0x18)" ( (binary_expression "*unaff_R15 + -0x18" (pointer_expression "*unaff_R15" * identifier) + number_literal) ))))) ;) (expression_statement "puVar1 = (uint *)((long)unaff_R15 + lVar2 + 0x20);" (assignment_expression "puVar1 = (uint *)((long)unaff_R15 + lVar2 + 0x20)" identifier = (cast_expression "(uint *)((long)unaff_R15 + lVar2 + 0x20)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((long)unaff_R15 + lVar2 + 0x20)" ( (binary_expression "(long)unaff_R15 + lVar2 + 0x20" (binary_expression "(long)unaff_R15 + lVar2" (cast_expression "(long)unaff_R15" ( (type_descriptor "long" (sized_type_specifier "long" long)) ) identifier) + identifier) + number_literal) )))) ;) (expression_statement "*puVar1 = *puVar1 | 1;" (assignment_expression "*puVar1 = *puVar1 | 1" (pointer_expression "*puVar1" * identifier) = (binary_expression "*puVar1 | 1" (pointer_expression "*puVar1" * identifier) | number_literal)) ;) (if_statement "if ((*(byte *)((long)unaff_R15 + lVar2 + 0x1c) & 1) == 0) {\n      __cxa_end_catch();\n      return;\n    }" if (parenthesized_expression "((*(byte *)((long)unaff_R15 + lVar2 + 0x1c) & 1) == 0)" ( (binary_expression "(*(byte *)((long)unaff_R15 + lVar2 + 0x1c) & 1) == 0" (parenthesized_expression "(*(byte *)((long)unaff_R15 + lVar2 + 0x1c) & 1)" ( (binary_expression "*(byte *)((long)unaff_R15 + lVar2 + 0x1c) & 1" (pointer_expression "*(byte *)((long)unaff_R15 + lVar2 + 0x1c)" * (cast_expression "(byte *)((long)unaff_R15 + lVar2 + 0x1c)" ( (type_descriptor "byte *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((long)unaff_R15 + lVar2 + 0x1c)" ( (binary_expression "(long)unaff_R15 + lVar2 + 0x1c" (binary_expression "(long)unaff_R15 + lVar2" (cast_expression "(long)unaff_R15" ( (type_descriptor "long" (sized_type_specifier "long" long)) ) identifier) + identifier) + number_literal) )))) & number_literal) )) == number_literal) )) (compound_statement "{\n      __cxa_end_catch();\n      return;\n    }" { (expression_statement "__cxa_end_catch();" (call_expression "__cxa_end_catch()" identifier (argument_list "()" ( ))) ;) (return_statement "return;" return ;) })) comment comment (expression_statement "__cxa_rethrow();" (call_expression "__cxa_rethrow()" identifier (argument_list "()" ( ))) ;) })) (expression_statement "__cxa_begin_catch();" (call_expression "__cxa_begin_catch()" identifier (argument_list "()" ( ))) ;) (expression_statement "lVar2 = *(long *)(*unaff_R15 + -0x18);" (assignment_expression "lVar2 = *(long *)(*unaff_R15 + -0x18)" identifier = (pointer_expression "*(long *)(*unaff_R15 + -0x18)" * (cast_expression "(long *)(*unaff_R15 + -0x18)" ( (type_descriptor "long *" (sized_type_specifier "long" long) (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(*unaff_R15 + -0x18)" ( (binary_expression "*unaff_R15 + -0x18" (pointer_expression "*unaff_R15" * identifier) + number_literal) ))))) ;) (expression_statement "puVar1 = (uint *)((long)unaff_R15 + lVar2 + 0x20);" (assignment_expression "puVar1 = (uint *)((long)unaff_R15 + lVar2 + 0x20)" identifier = (cast_expression "(uint *)((long)unaff_R15 + lVar2 + 0x20)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((long)unaff_R15 + lVar2 + 0x20)" ( (binary_expression "(long)unaff_R15 + lVar2 + 0x20" (binary_expression "(long)unaff_R15 + lVar2" (cast_expression "(long)unaff_R15" ( (type_descriptor "long" (sized_type_specifier "long" long)) ) identifier) + identifier) + number_literal) )))) ;) (expression_statement "*puVar1 = *puVar1 | 1;" (assignment_expression "*puVar1 = *puVar1 | 1" (pointer_expression "*puVar1" * identifier) = (binary_expression "*puVar1 | 1" (pointer_expression "*puVar1" * identifier) | number_literal)) ;) (if_statement "if ((*(byte *)((long)unaff_R15 + lVar2 + 0x1c) & 1) == 0) {\n                    /* WARNING: Subroutine does not return */\n                    /* try { // try from 001589d0 to 001589d4 has its CatchHandler @ 001589d5 */\n    __cxa_rethrow();\n  }" if (parenthesized_expression "((*(byte *)((long)unaff_R15 + lVar2 + 0x1c) & 1) == 0)" ( (binary_expression "(*(byte *)((long)unaff_R15 + lVar2 + 0x1c) & 1) == 0" (parenthesized_expression "(*(byte *)((long)unaff_R15 + lVar2 + 0x1c) & 1)" ( (binary_expression "*(byte *)((long)unaff_R15 + lVar2 + 0x1c) & 1" (pointer_expression "*(byte *)((long)unaff_R15 + lVar2 + 0x1c)" * (cast_expression "(byte *)((long)unaff_R15 + lVar2 + 0x1c)" ( (type_descriptor "byte *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((long)unaff_R15 + lVar2 + 0x1c)" ( (binary_expression "(long)unaff_R15 + lVar2 + 0x1c" (binary_expression "(long)unaff_R15 + lVar2" (cast_expression "(long)unaff_R15" ( (type_descriptor "long" (sized_type_specifier "long" long)) ) identifier) + identifier) + number_literal) )))) & number_literal) )) == number_literal) )) (compound_statement "{\n                    /* WARNING: Subroutine does not return */\n                    /* try { // try from 001589d0 to 001589d4 has its CatchHandler @ 001589d5 */\n    __cxa_rethrow();\n  }" { comment comment (expression_statement "__cxa_rethrow();" (call_expression "__cxa_rethrow()" identifier (argument_list "()" ( ))) ;) })) comment (expression_statement "__cxa_rethrow();" (call_expression "__cxa_rethrow()" identifier (argument_list "()" ( ))) ;) })))
(translation_unit "void FUN_00158987(undefined8 param_1,undefined8 param_2,long param_3)\n\n{\n  uint *puVar1;\n  long lVar2;\n  long *unaff_R15;\n  \n  if (param_3 != 1) {\n    FUN_003382c0();\n    lVar2 = *(long *)(*unaff_R15 + -0x18);\n    puVar1 = (uint *)((long)unaff_R15 + lVar2 + 0x20);\n    *puVar1 = *puVar1 | 1;\n    if ((*(byte *)((long)unaff_R15 + lVar2 + 0x1c) & 1) == 0) {\n      FUN_00338330();\n      return;\n    }\n                    \n                    \n    FUN_00337650();\n  }\n  FUN_003382c0();\n  lVar2 = *(long *)(*unaff_R15 + -0x18);\n  puVar1 = (uint *)((long)unaff_R15 + lVar2 + 0x20);\n  *puVar1 = *puVar1 | 1;\n  if ((*(byte *)((long)unaff_R15 + lVar2 + 0x1c) & 1) == 0) {\n                    \n                    \n    FUN_00337650();\n  }\n                    \n  FUN_00337650();\n}\n\n" (function_definition "void FUN_00158987(undefined8 param_1,undefined8 param_2,long param_3)\n\n{\n  uint *puVar1;\n  long lVar2;\n  long *unaff_R15;\n  \n  if (param_3 != 1) {\n    FUN_003382c0();\n    lVar2 = *(long *)(*unaff_R15 + -0x18);\n    puVar1 = (uint *)((long)unaff_R15 + lVar2 + 0x20);\n    *puVar1 = *puVar1 | 1;\n    if ((*(byte *)((long)unaff_R15 + lVar2 + 0x1c) & 1) == 0) {\n      FUN_00338330();\n      return;\n    }\n                    \n                    \n    FUN_00337650();\n  }\n  FUN_003382c0();\n  lVar2 = *(long *)(*unaff_R15 + -0x18);\n  puVar1 = (uint *)((long)unaff_R15 + lVar2 + 0x20);\n  *puVar1 = *puVar1 | 1;\n  if ((*(byte *)((long)unaff_R15 + lVar2 + 0x1c) & 1) == 0) {\n                    \n                    \n    FUN_00337650();\n  }\n                    \n  FUN_00337650();\n}" primitive_type (function_declarator "FUN_00158987(undefined8 param_1,undefined8 param_2,long param_3)" identifier (parameter_list "(undefined8 param_1,undefined8 param_2,long param_3)" ( (parameter_declaration "undefined8 param_1" type_identifier identifier) , (parameter_declaration "undefined8 param_2" type_identifier identifier) , (parameter_declaration "long param_3" (sized_type_specifier "long" long) identifier) ))) (compound_statement "{\n  uint *puVar1;\n  long lVar2;\n  long *unaff_R15;\n  \n  if (param_3 != 1) {\n    FUN_003382c0();\n    lVar2 = *(long *)(*unaff_R15 + -0x18);\n    puVar1 = (uint *)((long)unaff_R15 + lVar2 + 0x20);\n    *puVar1 = *puVar1 | 1;\n    if ((*(byte *)((long)unaff_R15 + lVar2 + 0x1c) & 1) == 0) {\n      FUN_00338330();\n      return;\n    }\n                    \n                    \n    FUN_00337650();\n  }\n  FUN_003382c0();\n  lVar2 = *(long *)(*unaff_R15 + -0x18);\n  puVar1 = (uint *)((long)unaff_R15 + lVar2 + 0x20);\n  *puVar1 = *puVar1 | 1;\n  if ((*(byte *)((long)unaff_R15 + lVar2 + 0x1c) & 1) == 0) {\n                    \n                    \n    FUN_00337650();\n  }\n                    \n  FUN_00337650();\n}" { (declaration "uint *puVar1;" type_identifier (pointer_declarator "*puVar1" * identifier) ;) (declaration "long lVar2;" (sized_type_specifier "long" long) identifier ;) (declaration "long *unaff_R15;" (sized_type_specifier "long" long) (pointer_declarator "*unaff_R15" * identifier) ;) (if_statement "if (param_3 != 1) {\n    FUN_003382c0();\n    lVar2 = *(long *)(*unaff_R15 + -0x18);\n    puVar1 = (uint *)((long)unaff_R15 + lVar2 + 0x20);\n    *puVar1 = *puVar1 | 1;\n    if ((*(byte *)((long)unaff_R15 + lVar2 + 0x1c) & 1) == 0) {\n      FUN_00338330();\n      return;\n    }\n                    \n                    \n    FUN_00337650();\n  }" if (parenthesized_expression "(param_3 != 1)" ( (binary_expression "param_3 != 1" identifier != number_literal) )) (compound_statement "{\n    FUN_003382c0();\n    lVar2 = *(long *)(*unaff_R15 + -0x18);\n    puVar1 = (uint *)((long)unaff_R15 + lVar2 + 0x20);\n    *puVar1 = *puVar1 | 1;\n    if ((*(byte *)((long)unaff_R15 + lVar2 + 0x1c) & 1) == 0) {\n      FUN_00338330();\n      return;\n    }\n                    \n                    \n    FUN_00337650();\n  }" { (expression_statement "FUN_003382c0();" (call_expression "FUN_003382c0()" identifier (argument_list "()" ( ))) ;) (expression_statement "lVar2 = *(long *)(*unaff_R15 + -0x18);" (assignment_expression "lVar2 = *(long *)(*unaff_R15 + -0x18)" identifier = (pointer_expression "*(long *)(*unaff_R15 + -0x18)" * (cast_expression "(long *)(*unaff_R15 + -0x18)" ( (type_descriptor "long *" (sized_type_specifier "long" long) (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(*unaff_R15 + -0x18)" ( (binary_expression "*unaff_R15 + -0x18" (pointer_expression "*unaff_R15" * identifier) + number_literal) ))))) ;) (expression_statement "puVar1 = (uint *)((long)unaff_R15 + lVar2 + 0x20);" (assignment_expression "puVar1 = (uint *)((long)unaff_R15 + lVar2 + 0x20)" identifier = (cast_expression "(uint *)((long)unaff_R15 + lVar2 + 0x20)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((long)unaff_R15 + lVar2 + 0x20)" ( (binary_expression "(long)unaff_R15 + lVar2 + 0x20" (binary_expression "(long)unaff_R15 + lVar2" (cast_expression "(long)unaff_R15" ( (type_descriptor "long" (sized_type_specifier "long" long)) ) identifier) + identifier) + number_literal) )))) ;) (expression_statement "*puVar1 = *puVar1 | 1;" (assignment_expression "*puVar1 = *puVar1 | 1" (pointer_expression "*puVar1" * identifier) = (binary_expression "*puVar1 | 1" (pointer_expression "*puVar1" * identifier) | number_literal)) ;) (if_statement "if ((*(byte *)((long)unaff_R15 + lVar2 + 0x1c) & 1) == 0) {\n      FUN_00338330();\n      return;\n    }" if (parenthesized_expression "((*(byte *)((long)unaff_R15 + lVar2 + 0x1c) & 1) == 0)" ( (binary_expression "(*(byte *)((long)unaff_R15 + lVar2 + 0x1c) & 1) == 0" (parenthesized_expression "(*(byte *)((long)unaff_R15 + lVar2 + 0x1c) & 1)" ( (binary_expression "*(byte *)((long)unaff_R15 + lVar2 + 0x1c) & 1" (pointer_expression "*(byte *)((long)unaff_R15 + lVar2 + 0x1c)" * (cast_expression "(byte *)((long)unaff_R15 + lVar2 + 0x1c)" ( (type_descriptor "byte *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((long)unaff_R15 + lVar2 + 0x1c)" ( (binary_expression "(long)unaff_R15 + lVar2 + 0x1c" (binary_expression "(long)unaff_R15 + lVar2" (cast_expression "(long)unaff_R15" ( (type_descriptor "long" (sized_type_specifier "long" long)) ) identifier) + identifier) + number_literal) )))) & number_literal) )) == number_literal) )) (compound_statement "{\n      FUN_00338330();\n      return;\n    }" { (expression_statement "FUN_00338330();" (call_expression "FUN_00338330()" identifier (argument_list "()" ( ))) ;) (return_statement "return;" return ;) })) (expression_statement "FUN_00337650();" (call_expression "FUN_00337650()" identifier (argument_list "()" ( ))) ;) })) (expression_statement "FUN_003382c0();" (call_expression "FUN_003382c0()" identifier (argument_list "()" ( ))) ;) (expression_statement "lVar2 = *(long *)(*unaff_R15 + -0x18);" (assignment_expression "lVar2 = *(long *)(*unaff_R15 + -0x18)" identifier = (pointer_expression "*(long *)(*unaff_R15 + -0x18)" * (cast_expression "(long *)(*unaff_R15 + -0x18)" ( (type_descriptor "long *" (sized_type_specifier "long" long) (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(*unaff_R15 + -0x18)" ( (binary_expression "*unaff_R15 + -0x18" (pointer_expression "*unaff_R15" * identifier) + number_literal) ))))) ;) (expression_statement "puVar1 = (uint *)((long)unaff_R15 + lVar2 + 0x20);" (assignment_expression "puVar1 = (uint *)((long)unaff_R15 + lVar2 + 0x20)" identifier = (cast_expression "(uint *)((long)unaff_R15 + lVar2 + 0x20)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((long)unaff_R15 + lVar2 + 0x20)" ( (binary_expression "(long)unaff_R15 + lVar2 + 0x20" (binary_expression "(long)unaff_R15 + lVar2" (cast_expression "(long)unaff_R15" ( (type_descriptor "long" (sized_type_specifier "long" long)) ) identifier) + identifier) + number_literal) )))) ;) (expression_statement "*puVar1 = *puVar1 | 1;" (assignment_expression "*puVar1 = *puVar1 | 1" (pointer_expression "*puVar1" * identifier) = (binary_expression "*puVar1 | 1" (pointer_expression "*puVar1" * identifier) | number_literal)) ;) (if_statement "if ((*(byte *)((long)unaff_R15 + lVar2 + 0x1c) & 1) == 0) {\n                    \n                    \n    FUN_00337650();\n  }" if (parenthesized_expression "((*(byte *)((long)unaff_R15 + lVar2 + 0x1c) & 1) == 0)" ( (binary_expression "(*(byte *)((long)unaff_R15 + lVar2 + 0x1c) & 1) == 0" (parenthesized_expression "(*(byte *)((long)unaff_R15 + lVar2 + 0x1c) & 1)" ( (binary_expression "*(byte *)((long)unaff_R15 + lVar2 + 0x1c) & 1" (pointer_expression "*(byte *)((long)unaff_R15 + lVar2 + 0x1c)" * (cast_expression "(byte *)((long)unaff_R15 + lVar2 + 0x1c)" ( (type_descriptor "byte *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((long)unaff_R15 + lVar2 + 0x1c)" ( (binary_expression "(long)unaff_R15 + lVar2 + 0x1c" (binary_expression "(long)unaff_R15 + lVar2" (cast_expression "(long)unaff_R15" ( (type_descriptor "long" (sized_type_specifier "long" long)) ) identifier) + identifier) + number_literal) )))) & number_literal) )) == number_literal) )) (compound_statement "{\n                    \n                    \n    FUN_00337650();\n  }" { (expression_statement "FUN_00337650();" (call_expression "FUN_00337650()" identifier (argument_list "()" ( ))) ;) })) (expression_statement "FUN_00337650();" (call_expression "FUN_00337650()" identifier (argument_list "()" ( ))) ;) })))
(translation_unit (function_definition TYPE (function_declarator IDENT (parameter_list ( (parameter_declaration TYPE IDENT) , (parameter_declaration TYPE IDENT) , (parameter_declaration (sized_type_specifier long) IDENT) ))) (compound_statement { (declaration TYPE (pointer_declarator * IDENT) ;) (declaration (sized_type_specifier long) IDENT ;) (declaration (sized_type_specifier long) (pointer_declarator * IDENT) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT != LIT) )) (compound_statement { (expression_statement (call_expression IDENT (argument_list ( ))) ;) (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor (sized_type_specifier long) (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression (pointer_expression * IDENT) + LIT) ))))) ;) (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression (binary_expression (cast_expression ( (type_descriptor (sized_type_specifier long)) ) IDENT) + IDENT) + LIT) )))) ;) (expression_statement (assignment_expression (pointer_expression * IDENT) = (binary_expression (pointer_expression * IDENT) | LIT)) ;) (if_statement if (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression (binary_expression (cast_expression ( (type_descriptor (sized_type_specifier long)) ) IDENT) + IDENT) + LIT) )))) & LIT) )) == LIT) )) (compound_statement { (expression_statement (call_expression IDENT (argument_list ( ))) ;) (return_statement return ;) })) (expression_statement (call_expression IDENT (argument_list ( ))) ;) })) (expression_statement (call_expression IDENT (argument_list ( ))) ;) (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor (sized_type_specifier long) (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression (pointer_expression * IDENT) + LIT) ))))) ;) (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression (binary_expression (cast_expression ( (type_descriptor (sized_type_specifier long)) ) IDENT) + IDENT) + LIT) )))) ;) (expression_statement (assignment_expression (pointer_expression * IDENT) = (binary_expression (pointer_expression * IDENT) | LIT)) ;) (if_statement if (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression (binary_expression (cast_expression ( (type_descriptor (sized_type_specifier long)) ) IDENT) + IDENT) + LIT) )))) & LIT) )) == LIT) )) (compound_statement { (expression_statement (call_expression IDENT (argument_list ( ))) ;) })) (expression_statement (call_expression IDENT (argument_list ( ))) ;) })))
(function_definition "void FUN_00158987(undefined8 param_1,undefined8 param_2,long param_3)\n\n{\n  uint *puVar1;\n  long lVar2;\n  long *unaff_R15;\n  \n  if (param_3 != 1) {\n    FUN_003382c0();\n    lVar2 = *(long *)(*unaff_R15 + -0x18);\n    puVar1 = (uint *)((long)unaff_R15 + lVar2 + 0x20);\n    *puVar1 = *puVar1 | 1;\n    if ((*(byte *)((long)unaff_R15 + lVar2 + 0x1c) & 1) == 0) {\n      FUN_00338330();\n      return;\n    }\n                    \n                    \n    FUN_00337650();\n  }\n  FUN_003382c0();\n  lVar2 = *(long *)(*unaff_R15 + -0x18);\n  puVar1 = (uint *)((long)unaff_R15 + lVar2 + 0x20);\n  *puVar1 = *puVar1 | 1;\n  if ((*(byte *)((long)unaff_R15 + lVar2 + 0x1c) & 1) == 0) {\n                    \n                    \n    FUN_00337650();\n  }\n                    \n  FUN_00337650();\n}" (primitive_type "void") (function_declarator "FUN_00158987(undefined8 param_1,undefined8 param_2,long param_3)" (identifier "FUN_00158987") (parameter_list "(undefined8 param_1,undefined8 param_2,long param_3)" (( "(") (parameter_declaration "undefined8 param_1" (type_identifier "undefined8") (identifier "param_1")) (, ",") (parameter_declaration "undefined8 param_2" (type_identifier "undefined8") (identifier "param_2")) (, ",") (parameter_declaration "long param_3" (sized_type_specifier "long" (long "long")) (identifier "param_3")) () ")"))) (compound_statement "{\n  uint *puVar1;\n  long lVar2;\n  long *unaff_R15;\n  \n  if (param_3 != 1) {\n    FUN_003382c0();\n    lVar2 = *(long *)(*unaff_R15 + -0x18);\n    puVar1 = (uint *)((long)unaff_R15 + lVar2 + 0x20);\n    *puVar1 = *puVar1 | 1;\n    if ((*(byte *)((long)unaff_R15 + lVar2 + 0x1c) & 1) == 0) {\n      FUN_00338330();\n      return;\n    }\n                    \n                    \n    FUN_00337650();\n  }\n  FUN_003382c0();\n  lVar2 = *(long *)(*unaff_R15 + -0x18);\n  puVar1 = (uint *)((long)unaff_R15 + lVar2 + 0x20);\n  *puVar1 = *puVar1 | 1;\n  if ((*(byte *)((long)unaff_R15 + lVar2 + 0x1c) & 1) == 0) {\n                    \n                    \n    FUN_00337650();\n  }\n                    \n  FUN_00337650();\n}" ({ "{") (declaration "uint *puVar1;" (type_identifier "uint") (pointer_declarator "*puVar1" (* "*") (identifier "puVar1")) (; ";")) (declaration "long lVar2;" (sized_type_specifier "long" (long "long")) (identifier "lVar2") (; ";")) (declaration "long *unaff_R15;" (sized_type_specifier "long" (long "long")) (pointer_declarator "*unaff_R15" (* "*") (identifier "unaff_R15")) (; ";")) (if_statement "if (param_3 != 1) {\n    FUN_003382c0();\n    lVar2 = *(long *)(*unaff_R15 + -0x18);\n    puVar1 = (uint *)((long)unaff_R15 + lVar2 + 0x20);\n    *puVar1 = *puVar1 | 1;\n    if ((*(byte *)((long)unaff_R15 + lVar2 + 0x1c) & 1) == 0) {\n      FUN_00338330();\n      return;\n    }\n                    \n                    \n    FUN_00337650();\n  }" (if "if") (parenthesized_expression "(param_3 != 1)" (( "(") (binary_expression "param_3 != 1" (identifier "param_3") (!= "!=") (number_literal "1")) () ")")) (compound_statement "{\n    FUN_003382c0();\n    lVar2 = *(long *)(*unaff_R15 + -0x18);\n    puVar1 = (uint *)((long)unaff_R15 + lVar2 + 0x20);\n    *puVar1 = *puVar1 | 1;\n    if ((*(byte *)((long)unaff_R15 + lVar2 + 0x1c) & 1) == 0) {\n      FUN_00338330();\n      return;\n    }\n                    \n                    \n    FUN_00337650();\n  }" ({ "{") (expression_statement "FUN_003382c0();" (call_expression "FUN_003382c0()" (identifier "FUN_003382c0") (argument_list "()" (( "(") () ")"))) (; ";")) (expression_statement "lVar2 = *(long *)(*unaff_R15 + -0x18);" (assignment_expression "lVar2 = *(long *)(*unaff_R15 + -0x18)" (identifier "lVar2") (= "=") (pointer_expression "*(long *)(*unaff_R15 + -0x18)" (* "*") (cast_expression "(long *)(*unaff_R15 + -0x18)" (( "(") (type_descriptor "long *" (sized_type_specifier "long" (long "long")) (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(*unaff_R15 + -0x18)" (( "(") (binary_expression "*unaff_R15 + -0x18" (pointer_expression "*unaff_R15" (* "*") (identifier "unaff_R15")) (+ "+") (number_literal "-0x18")) () ")"))))) (; ";")) (expression_statement "puVar1 = (uint *)((long)unaff_R15 + lVar2 + 0x20);" (assignment_expression "puVar1 = (uint *)((long)unaff_R15 + lVar2 + 0x20)" (identifier "puVar1") (= "=") (cast_expression "(uint *)((long)unaff_R15 + lVar2 + 0x20)" (( "(") (type_descriptor "uint *" (type_identifier "uint") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "((long)unaff_R15 + lVar2 + 0x20)" (( "(") (binary_expression "(long)unaff_R15 + lVar2 + 0x20" (binary_expression "(long)unaff_R15 + lVar2" (cast_expression "(long)unaff_R15" (( "(") (type_descriptor "long" (sized_type_specifier "long" (long "long"))) () ")") (identifier "unaff_R15")) (+ "+") (identifier "lVar2")) (+ "+") (number_literal "0x20")) () ")")))) (; ";")) (expression_statement "*puVar1 = *puVar1 | 1;" (assignment_expression "*puVar1 = *puVar1 | 1" (pointer_expression "*puVar1" (* "*") (identifier "puVar1")) (= "=") (binary_expression "*puVar1 | 1" (pointer_expression "*puVar1" (* "*") (identifier "puVar1")) (| "|") (number_literal "1"))) (; ";")) (if_statement "if ((*(byte *)((long)unaff_R15 + lVar2 + 0x1c) & 1) == 0) {\n      FUN_00338330();\n      return;\n    }" (if "if") (parenthesized_expression "((*(byte *)((long)unaff_R15 + lVar2 + 0x1c) & 1) == 0)" (( "(") (binary_expression "(*(byte *)((long)unaff_R15 + lVar2 + 0x1c) & 1) == 0" (parenthesized_expression "(*(byte *)((long)unaff_R15 + lVar2 + 0x1c) & 1)" (( "(") (binary_expression "*(byte *)((long)unaff_R15 + lVar2 + 0x1c) & 1" (pointer_expression "*(byte *)((long)unaff_R15 + lVar2 + 0x1c)" (* "*") (cast_expression "(byte *)((long)unaff_R15 + lVar2 + 0x1c)" (( "(") (type_descriptor "byte *" (type_identifier "byte") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "((long)unaff_R15 + lVar2 + 0x1c)" (( "(") (binary_expression "(long)unaff_R15 + lVar2 + 0x1c" (binary_expression "(long)unaff_R15 + lVar2" (cast_expression "(long)unaff_R15" (( "(") (type_descriptor "long" (sized_type_specifier "long" (long "long"))) () ")") (identifier "unaff_R15")) (+ "+") (identifier "lVar2")) (+ "+") (number_literal "0x1c")) () ")")))) (& "&") (number_literal "1")) () ")")) (== "==") (number_literal "0")) () ")")) (compound_statement "{\n      FUN_00338330();\n      return;\n    }" ({ "{") (expression_statement "FUN_00338330();" (call_expression "FUN_00338330()" (identifier "FUN_00338330") (argument_list "()" (( "(") () ")"))) (; ";")) (return_statement "return;" (return "return") (; ";")) (} "}"))) (expression_statement "FUN_00337650();" (call_expression "FUN_00337650()" (identifier "FUN_00337650") (argument_list "()" (( "(") () ")"))) (; ";")) (} "}"))) (expression_statement "FUN_003382c0();" (call_expression "FUN_003382c0()" (identifier "FUN_003382c0") (argument_list "()" (( "(") () ")"))) (; ";")) (expression_statement "lVar2 = *(long *)(*unaff_R15 + -0x18);" (assignment_expression "lVar2 = *(long *)(*unaff_R15 + -0x18)" (identifier "lVar2") (= "=") (pointer_expression "*(long *)(*unaff_R15 + -0x18)" (* "*") (cast_expression "(long *)(*unaff_R15 + -0x18)" (( "(") (type_descriptor "long *" (sized_type_specifier "long" (long "long")) (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(*unaff_R15 + -0x18)" (( "(") (binary_expression "*unaff_R15 + -0x18" (pointer_expression "*unaff_R15" (* "*") (identifier "unaff_R15")) (+ "+") (number_literal "-0x18")) () ")"))))) (; ";")) (expression_statement "puVar1 = (uint *)((long)unaff_R15 + lVar2 + 0x20);" (assignment_expression "puVar1 = (uint *)((long)unaff_R15 + lVar2 + 0x20)" (identifier "puVar1") (= "=") (cast_expression "(uint *)((long)unaff_R15 + lVar2 + 0x20)" (( "(") (type_descriptor "uint *" (type_identifier "uint") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "((long)unaff_R15 + lVar2 + 0x20)" (( "(") (binary_expression "(long)unaff_R15 + lVar2 + 0x20" (binary_expression "(long)unaff_R15 + lVar2" (cast_expression "(long)unaff_R15" (( "(") (type_descriptor "long" (sized_type_specifier "long" (long "long"))) () ")") (identifier "unaff_R15")) (+ "+") (identifier "lVar2")) (+ "+") (number_literal "0x20")) () ")")))) (; ";")) (expression_statement "*puVar1 = *puVar1 | 1;" (assignment_expression "*puVar1 = *puVar1 | 1" (pointer_expression "*puVar1" (* "*") (identifier "puVar1")) (= "=") (binary_expression "*puVar1 | 1" (pointer_expression "*puVar1" (* "*") (identifier "puVar1")) (| "|") (number_literal "1"))) (; ";")) (if_statement "if ((*(byte *)((long)unaff_R15 + lVar2 + 0x1c) & 1) == 0) {\n                    \n                    \n    FUN_00337650();\n  }" (if "if") (parenthesized_expression "((*(byte *)((long)unaff_R15 + lVar2 + 0x1c) & 1) == 0)" (( "(") (binary_expression "(*(byte *)((long)unaff_R15 + lVar2 + 0x1c) & 1) == 0" (parenthesized_expression "(*(byte *)((long)unaff_R15 + lVar2 + 0x1c) & 1)" (( "(") (binary_expression "*(byte *)((long)unaff_R15 + lVar2 + 0x1c) & 1" (pointer_expression "*(byte *)((long)unaff_R15 + lVar2 + 0x1c)" (* "*") (cast_expression "(byte *)((long)unaff_R15 + lVar2 + 0x1c)" (( "(") (type_descriptor "byte *" (type_identifier "byte") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "((long)unaff_R15 + lVar2 + 0x1c)" (( "(") (binary_expression "(long)unaff_R15 + lVar2 + 0x1c" (binary_expression "(long)unaff_R15 + lVar2" (cast_expression "(long)unaff_R15" (( "(") (type_descriptor "long" (sized_type_specifier "long" (long "long"))) () ")") (identifier "unaff_R15")) (+ "+") (identifier "lVar2")) (+ "+") (number_literal "0x1c")) () ")")))) (& "&") (number_literal "1")) () ")")) (== "==") (number_literal "0")) () ")")) (compound_statement "{\n                    \n                    \n    FUN_00337650();\n  }" ({ "{") (expression_statement "FUN_00337650();" (call_expression "FUN_00337650()" (identifier "FUN_00337650") (argument_list "()" (( "(") () ")"))) (; ";")) (} "}"))) (expression_statement "FUN_00337650();" (call_expression "FUN_00337650()" (identifier "FUN_00337650") (argument_list "()" (( "(") () ")"))) (; ";")) (} "}")))

/* WARNING: Removing unreachable block (ram,0x00339743) */

void function_1(type_1 param_1,type_1 param_2,long var_1)

{
  type_2 *puVar1;
  long var_3;
  long *unaff_R15;
  
  if (var_1 != 1) {
    var_2();
    var_3 = *(long *)(*unaff_R15 + -0x18);
    puVar1 = (type_2 *)((long)unaff_R15 + var_3 + 0x20);
    *puVar1 = *puVar1 | 1;
    if ((*(type_3 *)((long)unaff_R15 + var_3 + 0x1c) & 1) == 0) {
      var_4();
      return;
    }
                    /* WARNING: Subroutine does not return */
                    /* try { // try from 001589a8 to 001589ac has its CatchHandler @ 001589c0 */
    var_5();
  }
  var_2();
  var_3 = *(long *)(*unaff_R15 + -0x18);
  puVar1 = (type_2 *)((long)unaff_R15 + var_3 + 0x20);
  *puVar1 = *puVar1 | 1;
  if ((*(type_3 *)((long)unaff_R15 + var_3 + 0x1c) & 1) == 0) {
                    /* WARNING: Subroutine does not return */
                    /* try { // try from 001589d0 to 001589d4 has its CatchHandler @ 001589d5 */
    var_5();
  }
                    /* WARNING: Subroutine does not return */
  var_5();
}


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

/* WARNING: Removing unreachable block (ram,0x00339743) */

void MASKED(undefined8 param_1,undefined8 param_2,long param_3)

{
  uint *puVar1;
  long lVar2;
  long *unaff_R15;
  
  if (param_3 != 1) {
    FUN_003382c0();
    lVar2 = *(long *)(*unaff_R15 + -0x18);
    puVar1 = (uint *)((long)unaff_R15 + lVar2 + 0x20);
    *puVar1 = *puVar1 | 1;
    if ((*(byte *)((long)unaff_R15 + lVar2 + 0x1c) & 1) == 0) {
      FUN_00338330();
      return;
    }
                    /* WARNING: Subroutine does not return */
                    /* try { // try from 001589a8 to 001589ac has its CatchHandler @ 001589c0 */
    FUN_00337650();
  }
  FUN_003382c0();
  lVar2 = *(long *)(*unaff_R15 + -0x18);
  puVar1 = (uint *)((long)unaff_R15 + lVar2 + 0x20);
  *puVar1 = *puVar1 | 1;
  if ((*(byte *)((long)unaff_R15 + lVar2 + 0x1c) & 1) == 0) {
                    /* WARNING: Subroutine does not return */
                    /* try { // try from 001589d0 to 001589d4 has its CatchHandler @ 001589d5 */
    FUN_00337650();
  }
                    /* WARNING: Subroutine does not return */
  FUN_00337650();
}

