
/* WARNING: Enum "anon_enum_32": Some values do not have unique names */

void term_timer(void *ctx,ulong now)

{
  int iVar1;
  
  iVar1 = *(int *)((int)ctx + 0x10a4);
  if ((iVar1 != 0) && (iVar1 = 0, *(ulong *)((int)ctx + 0x10ac) == now)) {
    *(undefined4 *)((int)ctx + 0x10a4) = 0;
    *(uint *)((int)ctx + 0xc0) = (uint)(*(int *)((int)ctx + 0xc0) == 0);
    if (*(int *)((int)ctx + 0xc4) == 0) {
      iVar1 = 1;
      *(undefined4 *)((int)ctx + 0xc0) = 1;
    }
    else {
      term_schedule_tblink((Terminal *)ctx);
      iVar1 = 1;
    }
  }
  if ((*(int *)((int)ctx + 0x10a8) == 0) || (*(ulong *)((int)ctx + 0x10b0) != now)) {
    if ((*(int *)((int)ctx + 0x138) == 0) || (*(ulong *)((int)ctx + 0x13c) != now)) {
      if ((iVar1 == 0) &&
         ((*(int *)((int)ctx + 0x109c) == 0 || (*(ulong *)((int)ctx + 0x10a0) != now)))) {
        return;
      }
      goto LAB_000499e8;
    }
  }
  else {
    *(undefined4 *)((int)ctx + 0x10a8) = 0;
    *(uint *)((int)ctx + 0xbc) = (uint)(*(int *)((int)ctx + 0xbc) == 0);
    if ((*(int *)((int)ctx + 0x1100) == 0) || (*(int *)((int)ctx + 0x134) == 0)) {
      *(undefined4 *)((int)ctx + 0xbc) = 1;
    }
    else {
      term_schedule_cblink((Terminal *)ctx);
    }
    if ((*(int *)((int)ctx + 0x138) == 0) || (now != *(ulong *)((int)ctx + 0x13c)))
    goto LAB_000499e8;
  }
  *(undefined4 *)((int)ctx + 0x138) = 0;
LAB_000499e8:
  term_update((Terminal *)ctx);
  return;
}



void FUN_00049908(int param_1,int param_2)

{
  int iVar1;
  
  iVar1 = *(int *)(param_1 + 0x10a4);
  if ((iVar1 != 0) && (iVar1 = 0, *(int *)(param_1 + 0x10ac) == param_2)) {
    *(undefined4 *)(param_1 + 0x10a4) = 0;
    *(uint *)(param_1 + 0xc0) = (uint)(*(int *)(param_1 + 0xc0) == 0);
    if (*(int *)(param_1 + 0xc4) == 0) {
      iVar1 = 1;
      *(undefined4 *)(param_1 + 0xc0) = 1;
    }
    else {
      FUN_000461c0();
      iVar1 = 1;
    }
  }
  if ((*(int *)(param_1 + 0x10a8) == 0) || (*(int *)(param_1 + 0x10b0) != param_2)) {
    if ((*(int *)(param_1 + 0x138) == 0) || (*(int *)(param_1 + 0x13c) != param_2)) {
      if ((iVar1 == 0) &&
         ((*(int *)(param_1 + 0x109c) == 0 || (*(int *)(param_1 + 0x10a0) != param_2)))) {
        return;
      }
      goto LAB_000499e8;
    }
  }
  else {
    *(undefined4 *)(param_1 + 0x10a8) = 0;
    *(uint *)(param_1 + 0xbc) = (uint)(*(int *)(param_1 + 0xbc) == 0);
    if ((*(int *)(param_1 + 0x1100) == 0) || (*(int *)(param_1 + 0x134) == 0)) {
      *(undefined4 *)(param_1 + 0xbc) = 1;
    }
    else {
      FUN_00046234(param_1);
    }
    if ((*(int *)(param_1 + 0x138) == 0) || (param_2 != *(int *)(param_1 + 0x13c)))
    goto LAB_000499e8;
  }
  *(undefined4 *)(param_1 + 0x138) = 0;
LAB_000499e8:
  term_update(param_1);
  return;
}


lui gp,0x7
addiu gp,gp,0x38c8
addu gp,gp,t9
addiu sp,sp,-0x28
lw v0,0x10a4(a0)
sw gp,0x10(sp)
sw s0,0x20(sp)
or s0,a0,zero
beq v0,zero,0x0004993c
_sw ra,0x24(sp)
lw v0,0x10ac(a0)
beq v0,a1,0x000499f8
_or v0,zero,zero
lw v1,0x10a8(s0)
beq v1,zero,0x00049954
_nop
lw v1,0x10b0(s0)
beq v1,a1,0x00049998
_nop
lw v1,0x138(s0)
beq v1,zero,0x0004996c
_nop
lw v1,0x13c(s0)
beq v1,a1,0x000499dc
_nop
bne v0,zero,0x000499e0
_nop
lw v0,0x109c(s0)
beq v0,zero,0x0004998c
_lw ra,0x24(sp)
lw v0,0x10a0(s0)
beq v0,a1,0x000499e4
_nop
lw s0,0x20(sp)
jr ra
_addiu sp,sp,0x28
lw v0,0xbc(s0)
lw v1,0x1100(s0)
sw zero,0x10a8(s0)
sltiu v0,v0,0x1
beq v1,zero,0x000499bc
_sw v0,0xbc(s0)
lw v0,0x134(s0)
bne v0,zero,0x00049a40
_lw t9,-0x7c1c(gp)
li v0,0x1
sw v0,0xbc(s0)
lw v0,0x138(s0)
beq v0,zero,0x000499e4
_lw ra,0x24(sp)
lw v0,0x13c(s0)
bne a1,v0,0x000499e8
_or a0,s0,zero
sw zero,0x138(s0)
lw ra,0x24(sp)
or a0,s0,zero
lw t9,-0x7b30(gp)
lw s0,0x20(sp)
b 0x00049830
_addiu sp,sp,0x28
lw v0,0xc0(a0)
lw v1,0xc4(a0)
sw zero,0x10a4(a0)
sltiu v0,v0,0x1
beq v1,zero,0x00049a30
_sw v0,0xc0(a0)
lw t9,-0x7c1c(gp)
addiu t9,t9,0x61c0
bal 0x000461c0
_sw a1,0x1c(sp)
li v0,0x1
lw gp,0x10(sp)
b 0x0004993c
_lw a1,0x1c(sp)
li v1,0x1
li v0,0x1
b 0x0004993c
_sw v1,0xc0(a0)
or a0,s0,zero
addiu t9,t9,0x6234
bal 0x00046234
_sw a1,0x1c(sp)
lw gp,0x10(sp)
b 0x000499c4
_lw a1,0x1c(sp)
(translation_unit "void FUN_00049908(int param_1,int param_2)\n\n{\n  int iVar1;\n  \n  iVar1 = *(int *)(param_1 + 0x10a4);\n  if ((iVar1 != 0) && (iVar1 = 0, *(int *)(param_1 + 0x10ac) == param_2)) {\n    *(undefined4 *)(param_1 + 0x10a4) = 0;\n    *(uint *)(param_1 + 0xc0) = (uint)(*(int *)(param_1 + 0xc0) == 0);\n    if (*(int *)(param_1 + 0xc4) == 0) {\n      iVar1 = 1;\n      *(undefined4 *)(param_1 + 0xc0) = 1;\n    }\n    else {\n      FUN_000461c0();\n      iVar1 = 1;\n    }\n  }\n  if ((*(int *)(param_1 + 0x10a8) == 0) || (*(int *)(param_1 + 0x10b0) != param_2)) {\n    if ((*(int *)(param_1 + 0x138) == 0) || (*(int *)(param_1 + 0x13c) != param_2)) {\n      if ((iVar1 == 0) &&\n         ((*(int *)(param_1 + 0x109c) == 0 || (*(int *)(param_1 + 0x10a0) != param_2)))) {\n        return;\n      }\n      goto LAB_000499e8;\n    }\n  }\n  else {\n    *(undefined4 *)(param_1 + 0x10a8) = 0;\n    *(uint *)(param_1 + 0xbc) = (uint)(*(int *)(param_1 + 0xbc) == 0);\n    if ((*(int *)(param_1 + 0x1100) == 0) || (*(int *)(param_1 + 0x134) == 0)) {\n      *(undefined4 *)(param_1 + 0xbc) = 1;\n    }\n    else {\n      FUN_00046234(param_1);\n    }\n    if ((*(int *)(param_1 + 0x138) == 0) || (param_2 != *(int *)(param_1 + 0x13c)))\n    goto LAB_000499e8;\n  }\n  *(undefined4 *)(param_1 + 0x138) = 0;\nLAB_000499e8:\n  term_update(param_1);\n  return;\n}\n\n" (function_definition "void FUN_00049908(int param_1,int param_2)\n\n{\n  int iVar1;\n  \n  iVar1 = *(int *)(param_1 + 0x10a4);\n  if ((iVar1 != 0) && (iVar1 = 0, *(int *)(param_1 + 0x10ac) == param_2)) {\n    *(undefined4 *)(param_1 + 0x10a4) = 0;\n    *(uint *)(param_1 + 0xc0) = (uint)(*(int *)(param_1 + 0xc0) == 0);\n    if (*(int *)(param_1 + 0xc4) == 0) {\n      iVar1 = 1;\n      *(undefined4 *)(param_1 + 0xc0) = 1;\n    }\n    else {\n      FUN_000461c0();\n      iVar1 = 1;\n    }\n  }\n  if ((*(int *)(param_1 + 0x10a8) == 0) || (*(int *)(param_1 + 0x10b0) != param_2)) {\n    if ((*(int *)(param_1 + 0x138) == 0) || (*(int *)(param_1 + 0x13c) != param_2)) {\n      if ((iVar1 == 0) &&\n         ((*(int *)(param_1 + 0x109c) == 0 || (*(int *)(param_1 + 0x10a0) != param_2)))) {\n        return;\n      }\n      goto LAB_000499e8;\n    }\n  }\n  else {\n    *(undefined4 *)(param_1 + 0x10a8) = 0;\n    *(uint *)(param_1 + 0xbc) = (uint)(*(int *)(param_1 + 0xbc) == 0);\n    if ((*(int *)(param_1 + 0x1100) == 0) || (*(int *)(param_1 + 0x134) == 0)) {\n      *(undefined4 *)(param_1 + 0xbc) = 1;\n    }\n    else {\n      FUN_00046234(param_1);\n    }\n    if ((*(int *)(param_1 + 0x138) == 0) || (param_2 != *(int *)(param_1 + 0x13c)))\n    goto LAB_000499e8;\n  }\n  *(undefined4 *)(param_1 + 0x138) = 0;\nLAB_000499e8:\n  term_update(param_1);\n  return;\n}" primitive_type (function_declarator "FUN_00049908(int param_1,int param_2)" identifier (parameter_list "(int param_1,int param_2)" ( (parameter_declaration "int param_1" primitive_type identifier) , (parameter_declaration "int param_2" primitive_type identifier) ))) (compound_statement "{\n  int iVar1;\n  \n  iVar1 = *(int *)(param_1 + 0x10a4);\n  if ((iVar1 != 0) && (iVar1 = 0, *(int *)(param_1 + 0x10ac) == param_2)) {\n    *(undefined4 *)(param_1 + 0x10a4) = 0;\n    *(uint *)(param_1 + 0xc0) = (uint)(*(int *)(param_1 + 0xc0) == 0);\n    if (*(int *)(param_1 + 0xc4) == 0) {\n      iVar1 = 1;\n      *(undefined4 *)(param_1 + 0xc0) = 1;\n    }\n    else {\n      FUN_000461c0();\n      iVar1 = 1;\n    }\n  }\n  if ((*(int *)(param_1 + 0x10a8) == 0) || (*(int *)(param_1 + 0x10b0) != param_2)) {\n    if ((*(int *)(param_1 + 0x138) == 0) || (*(int *)(param_1 + 0x13c) != param_2)) {\n      if ((iVar1 == 0) &&\n         ((*(int *)(param_1 + 0x109c) == 0 || (*(int *)(param_1 + 0x10a0) != param_2)))) {\n        return;\n      }\n      goto LAB_000499e8;\n    }\n  }\n  else {\n    *(undefined4 *)(param_1 + 0x10a8) = 0;\n    *(uint *)(param_1 + 0xbc) = (uint)(*(int *)(param_1 + 0xbc) == 0);\n    if ((*(int *)(param_1 + 0x1100) == 0) || (*(int *)(param_1 + 0x134) == 0)) {\n      *(undefined4 *)(param_1 + 0xbc) = 1;\n    }\n    else {\n      FUN_00046234(param_1);\n    }\n    if ((*(int *)(param_1 + 0x138) == 0) || (param_2 != *(int *)(param_1 + 0x13c)))\n    goto LAB_000499e8;\n  }\n  *(undefined4 *)(param_1 + 0x138) = 0;\nLAB_000499e8:\n  term_update(param_1);\n  return;\n}" { (declaration "int iVar1;" primitive_type identifier ;) (expression_statement "iVar1 = *(int *)(param_1 + 0x10a4);" (assignment_expression "iVar1 = *(int *)(param_1 + 0x10a4)" identifier = (pointer_expression "*(int *)(param_1 + 0x10a4)" * (cast_expression "(int *)(param_1 + 0x10a4)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x10a4)" ( (binary_expression "param_1 + 0x10a4" identifier + number_literal) ))))) ;) (if_statement "if ((iVar1 != 0) && (iVar1 = 0, *(int *)(param_1 + 0x10ac) == param_2)) {\n    *(undefined4 *)(param_1 + 0x10a4) = 0;\n    *(uint *)(param_1 + 0xc0) = (uint)(*(int *)(param_1 + 0xc0) == 0);\n    if (*(int *)(param_1 + 0xc4) == 0) {\n      iVar1 = 1;\n      *(undefined4 *)(param_1 + 0xc0) = 1;\n    }\n    else {\n      FUN_000461c0();\n      iVar1 = 1;\n    }\n  }" if (parenthesized_expression "((iVar1 != 0) && (iVar1 = 0, *(int *)(param_1 + 0x10ac) == param_2))" ( (binary_expression "(iVar1 != 0) && (iVar1 = 0, *(int *)(param_1 + 0x10ac) == param_2)" (parenthesized_expression "(iVar1 != 0)" ( (binary_expression "iVar1 != 0" identifier != number_literal) )) && (parenthesized_expression "(iVar1 = 0, *(int *)(param_1 + 0x10ac) == param_2)" ( (comma_expression "iVar1 = 0, *(int *)(param_1 + 0x10ac) == param_2" (assignment_expression "iVar1 = 0" identifier = number_literal) , (binary_expression "*(int *)(param_1 + 0x10ac) == param_2" (pointer_expression "*(int *)(param_1 + 0x10ac)" * (cast_expression "(int *)(param_1 + 0x10ac)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x10ac)" ( (binary_expression "param_1 + 0x10ac" identifier + number_literal) )))) == identifier)) ))) )) (compound_statement "{\n    *(undefined4 *)(param_1 + 0x10a4) = 0;\n    *(uint *)(param_1 + 0xc0) = (uint)(*(int *)(param_1 + 0xc0) == 0);\n    if (*(int *)(param_1 + 0xc4) == 0) {\n      iVar1 = 1;\n      *(undefined4 *)(param_1 + 0xc0) = 1;\n    }\n    else {\n      FUN_000461c0();\n      iVar1 = 1;\n    }\n  }" { (expression_statement "*(undefined4 *)(param_1 + 0x10a4) = 0;" (assignment_expression "*(undefined4 *)(param_1 + 0x10a4) = 0" (pointer_expression "*(undefined4 *)(param_1 + 0x10a4)" * (cast_expression "(undefined4 *)(param_1 + 0x10a4)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x10a4)" ( (binary_expression "param_1 + 0x10a4" identifier + number_literal) )))) = number_literal) ;) (expression_statement "*(uint *)(param_1 + 0xc0) = (uint)(*(int *)(param_1 + 0xc0) == 0);" (assignment_expression "*(uint *)(param_1 + 0xc0) = (uint)(*(int *)(param_1 + 0xc0) == 0)" (pointer_expression "*(uint *)(param_1 + 0xc0)" * (cast_expression "(uint *)(param_1 + 0xc0)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0xc0)" ( (binary_expression "param_1 + 0xc0" identifier + number_literal) )))) = (call_expression "(uint)(*(int *)(param_1 + 0xc0) == 0)" (parenthesized_expression "(uint)" ( identifier )) (argument_list "(*(int *)(param_1 + 0xc0) == 0)" ( (binary_expression "*(int *)(param_1 + 0xc0) == 0" (pointer_expression "*(int *)(param_1 + 0xc0)" * (cast_expression "(int *)(param_1 + 0xc0)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0xc0)" ( (binary_expression "param_1 + 0xc0" identifier + number_literal) )))) == number_literal) )))) ;) (if_statement "if (*(int *)(param_1 + 0xc4) == 0) {\n      iVar1 = 1;\n      *(undefined4 *)(param_1 + 0xc0) = 1;\n    }\n    else {\n      FUN_000461c0();\n      iVar1 = 1;\n    }" if (parenthesized_expression "(*(int *)(param_1 + 0xc4) == 0)" ( (binary_expression "*(int *)(param_1 + 0xc4) == 0" (pointer_expression "*(int *)(param_1 + 0xc4)" * (cast_expression "(int *)(param_1 + 0xc4)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0xc4)" ( (binary_expression "param_1 + 0xc4" identifier + number_literal) )))) == number_literal) )) (compound_statement "{\n      iVar1 = 1;\n      *(undefined4 *)(param_1 + 0xc0) = 1;\n    }" { (expression_statement "iVar1 = 1;" (assignment_expression "iVar1 = 1" identifier = number_literal) ;) (expression_statement "*(undefined4 *)(param_1 + 0xc0) = 1;" (assignment_expression "*(undefined4 *)(param_1 + 0xc0) = 1" (pointer_expression "*(undefined4 *)(param_1 + 0xc0)" * (cast_expression "(undefined4 *)(param_1 + 0xc0)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0xc0)" ( (binary_expression "param_1 + 0xc0" identifier + number_literal) )))) = number_literal) ;) }) (else_clause "else {\n      FUN_000461c0();\n      iVar1 = 1;\n    }" else (compound_statement "{\n      FUN_000461c0();\n      iVar1 = 1;\n    }" { (expression_statement "FUN_000461c0();" (call_expression "FUN_000461c0()" identifier (argument_list "()" ( ))) ;) (expression_statement "iVar1 = 1;" (assignment_expression "iVar1 = 1" identifier = number_literal) ;) }))) })) (if_statement "if ((*(int *)(param_1 + 0x10a8) == 0) || (*(int *)(param_1 + 0x10b0) != param_2)) {\n    if ((*(int *)(param_1 + 0x138) == 0) || (*(int *)(param_1 + 0x13c) != param_2)) {\n      if ((iVar1 == 0) &&\n         ((*(int *)(param_1 + 0x109c) == 0 || (*(int *)(param_1 + 0x10a0) != param_2)))) {\n        return;\n      }\n      goto LAB_000499e8;\n    }\n  }\n  else {\n    *(undefined4 *)(param_1 + 0x10a8) = 0;\n    *(uint *)(param_1 + 0xbc) = (uint)(*(int *)(param_1 + 0xbc) == 0);\n    if ((*(int *)(param_1 + 0x1100) == 0) || (*(int *)(param_1 + 0x134) == 0)) {\n      *(undefined4 *)(param_1 + 0xbc) = 1;\n    }\n    else {\n      FUN_00046234(param_1);\n    }\n    if ((*(int *)(param_1 + 0x138) == 0) || (param_2 != *(int *)(param_1 + 0x13c)))\n    goto LAB_000499e8;\n  }" if (parenthesized_expression "((*(int *)(param_1 + 0x10a8) == 0) || (*(int *)(param_1 + 0x10b0) != param_2))" ( (binary_expression "(*(int *)(param_1 + 0x10a8) == 0) || (*(int *)(param_1 + 0x10b0) != param_2)" (parenthesized_expression "(*(int *)(param_1 + 0x10a8) == 0)" ( (binary_expression "*(int *)(param_1 + 0x10a8) == 0" (pointer_expression "*(int *)(param_1 + 0x10a8)" * (cast_expression "(int *)(param_1 + 0x10a8)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x10a8)" ( (binary_expression "param_1 + 0x10a8" identifier + number_literal) )))) == number_literal) )) || (parenthesized_expression "(*(int *)(param_1 + 0x10b0) != param_2)" ( (binary_expression "*(int *)(param_1 + 0x10b0) != param_2" (pointer_expression "*(int *)(param_1 + 0x10b0)" * (cast_expression "(int *)(param_1 + 0x10b0)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x10b0)" ( (binary_expression "param_1 + 0x10b0" identifier + number_literal) )))) != identifier) ))) )) (compound_statement "{\n    if ((*(int *)(param_1 + 0x138) == 0) || (*(int *)(param_1 + 0x13c) != param_2)) {\n      if ((iVar1 == 0) &&\n         ((*(int *)(param_1 + 0x109c) == 0 || (*(int *)(param_1 + 0x10a0) != param_2)))) {\n        return;\n      }\n      goto LAB_000499e8;\n    }\n  }" { (if_statement "if ((*(int *)(param_1 + 0x138) == 0) || (*(int *)(param_1 + 0x13c) != param_2)) {\n      if ((iVar1 == 0) &&\n         ((*(int *)(param_1 + 0x109c) == 0 || (*(int *)(param_1 + 0x10a0) != param_2)))) {\n        return;\n      }\n      goto LAB_000499e8;\n    }" if (parenthesized_expression "((*(int *)(param_1 + 0x138) == 0) || (*(int *)(param_1 + 0x13c) != param_2))" ( (binary_expression "(*(int *)(param_1 + 0x138) == 0) || (*(int *)(param_1 + 0x13c) != param_2)" (parenthesized_expression "(*(int *)(param_1 + 0x138) == 0)" ( (binary_expression "*(int *)(param_1 + 0x138) == 0" (pointer_expression "*(int *)(param_1 + 0x138)" * (cast_expression "(int *)(param_1 + 0x138)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x138)" ( (binary_expression "param_1 + 0x138" identifier + number_literal) )))) == number_literal) )) || (parenthesized_expression "(*(int *)(param_1 + 0x13c) != param_2)" ( (binary_expression "*(int *)(param_1 + 0x13c) != param_2" (pointer_expression "*(int *)(param_1 + 0x13c)" * (cast_expression "(int *)(param_1 + 0x13c)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x13c)" ( (binary_expression "param_1 + 0x13c" identifier + number_literal) )))) != identifier) ))) )) (compound_statement "{\n      if ((iVar1 == 0) &&\n         ((*(int *)(param_1 + 0x109c) == 0 || (*(int *)(param_1 + 0x10a0) != param_2)))) {\n        return;\n      }\n      goto LAB_000499e8;\n    }" { (if_statement "if ((iVar1 == 0) &&\n         ((*(int *)(param_1 + 0x109c) == 0 || (*(int *)(param_1 + 0x10a0) != param_2)))) {\n        return;\n      }" if (parenthesized_expression "((iVar1 == 0) &&\n         ((*(int *)(param_1 + 0x109c) == 0 || (*(int *)(param_1 + 0x10a0) != param_2))))" ( (binary_expression "(iVar1 == 0) &&\n         ((*(int *)(param_1 + 0x109c) == 0 || (*(int *)(param_1 + 0x10a0) != param_2)))" (parenthesized_expression "(iVar1 == 0)" ( (binary_expression "iVar1 == 0" identifier == number_literal) )) && (parenthesized_expression "((*(int *)(param_1 + 0x109c) == 0 || (*(int *)(param_1 + 0x10a0) != param_2)))" ( (parenthesized_expression "(*(int *)(param_1 + 0x109c) == 0 || (*(int *)(param_1 + 0x10a0) != param_2))" ( (binary_expression "*(int *)(param_1 + 0x109c) == 0 || (*(int *)(param_1 + 0x10a0) != param_2)" (binary_expression "*(int *)(param_1 + 0x109c) == 0" (pointer_expression "*(int *)(param_1 + 0x109c)" * (cast_expression "(int *)(param_1 + 0x109c)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x109c)" ( (binary_expression "param_1 + 0x109c" identifier + number_literal) )))) == number_literal) || (parenthesized_expression "(*(int *)(param_1 + 0x10a0) != param_2)" ( (binary_expression "*(int *)(param_1 + 0x10a0) != param_2" (pointer_expression "*(int *)(param_1 + 0x10a0)" * (cast_expression "(int *)(param_1 + 0x10a0)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x10a0)" ( (binary_expression "param_1 + 0x10a0" identifier + number_literal) )))) != identifier) ))) )) ))) )) (compound_statement "{\n        return;\n      }" { (return_statement "return;" return ;) })) (goto_statement "goto LAB_000499e8;" goto statement_identifier ;) })) }) (else_clause "else {\n    *(undefined4 *)(param_1 + 0x10a8) = 0;\n    *(uint *)(param_1 + 0xbc) = (uint)(*(int *)(param_1 + 0xbc) == 0);\n    if ((*(int *)(param_1 + 0x1100) == 0) || (*(int *)(param_1 + 0x134) == 0)) {\n      *(undefined4 *)(param_1 + 0xbc) = 1;\n    }\n    else {\n      FUN_00046234(param_1);\n    }\n    if ((*(int *)(param_1 + 0x138) == 0) || (param_2 != *(int *)(param_1 + 0x13c)))\n    goto LAB_000499e8;\n  }" else (compound_statement "{\n    *(undefined4 *)(param_1 + 0x10a8) = 0;\n    *(uint *)(param_1 + 0xbc) = (uint)(*(int *)(param_1 + 0xbc) == 0);\n    if ((*(int *)(param_1 + 0x1100) == 0) || (*(int *)(param_1 + 0x134) == 0)) {\n      *(undefined4 *)(param_1 + 0xbc) = 1;\n    }\n    else {\n      FUN_00046234(param_1);\n    }\n    if ((*(int *)(param_1 + 0x138) == 0) || (param_2 != *(int *)(param_1 + 0x13c)))\n    goto LAB_000499e8;\n  }" { (expression_statement "*(undefined4 *)(param_1 + 0x10a8) = 0;" (assignment_expression "*(undefined4 *)(param_1 + 0x10a8) = 0" (pointer_expression "*(undefined4 *)(param_1 + 0x10a8)" * (cast_expression "(undefined4 *)(param_1 + 0x10a8)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x10a8)" ( (binary_expression "param_1 + 0x10a8" identifier + number_literal) )))) = number_literal) ;) (expression_statement "*(uint *)(param_1 + 0xbc) = (uint)(*(int *)(param_1 + 0xbc) == 0);" (assignment_expression "*(uint *)(param_1 + 0xbc) = (uint)(*(int *)(param_1 + 0xbc) == 0)" (pointer_expression "*(uint *)(param_1 + 0xbc)" * (cast_expression "(uint *)(param_1 + 0xbc)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0xbc)" ( (binary_expression "param_1 + 0xbc" identifier + number_literal) )))) = (call_expression "(uint)(*(int *)(param_1 + 0xbc) == 0)" (parenthesized_expression "(uint)" ( identifier )) (argument_list "(*(int *)(param_1 + 0xbc) == 0)" ( (binary_expression "*(int *)(param_1 + 0xbc) == 0" (pointer_expression "*(int *)(param_1 + 0xbc)" * (cast_expression "(int *)(param_1 + 0xbc)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0xbc)" ( (binary_expression "param_1 + 0xbc" identifier + number_literal) )))) == number_literal) )))) ;) (if_statement "if ((*(int *)(param_1 + 0x1100) == 0) || (*(int *)(param_1 + 0x134) == 0)) {\n      *(undefined4 *)(param_1 + 0xbc) = 1;\n    }\n    else {\n      FUN_00046234(param_1);\n    }" if (parenthesized_expression "((*(int *)(param_1 + 0x1100) == 0) || (*(int *)(param_1 + 0x134) == 0))" ( (binary_expression "(*(int *)(param_1 + 0x1100) == 0) || (*(int *)(param_1 + 0x134) == 0)" (parenthesized_expression "(*(int *)(param_1 + 0x1100) == 0)" ( (binary_expression "*(int *)(param_1 + 0x1100) == 0" (pointer_expression "*(int *)(param_1 + 0x1100)" * (cast_expression "(int *)(param_1 + 0x1100)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x1100)" ( (binary_expression "param_1 + 0x1100" identifier + number_literal) )))) == number_literal) )) || (parenthesized_expression "(*(int *)(param_1 + 0x134) == 0)" ( (binary_expression "*(int *)(param_1 + 0x134) == 0" (pointer_expression "*(int *)(param_1 + 0x134)" * (cast_expression "(int *)(param_1 + 0x134)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x134)" ( (binary_expression "param_1 + 0x134" identifier + number_literal) )))) == number_literal) ))) )) (compound_statement "{\n      *(undefined4 *)(param_1 + 0xbc) = 1;\n    }" { (expression_statement "*(undefined4 *)(param_1 + 0xbc) = 1;" (assignment_expression "*(undefined4 *)(param_1 + 0xbc) = 1" (pointer_expression "*(undefined4 *)(param_1 + 0xbc)" * (cast_expression "(undefined4 *)(param_1 + 0xbc)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0xbc)" ( (binary_expression "param_1 + 0xbc" identifier + number_literal) )))) = number_literal) ;) }) (else_clause "else {\n      FUN_00046234(param_1);\n    }" else (compound_statement "{\n      FUN_00046234(param_1);\n    }" { (expression_statement "FUN_00046234(param_1);" (call_expression "FUN_00046234(param_1)" identifier (argument_list "(param_1)" ( identifier ))) ;) }))) (if_statement "if ((*(int *)(param_1 + 0x138) == 0) || (param_2 != *(int *)(param_1 + 0x13c)))\n    goto LAB_000499e8;" if (parenthesized_expression "((*(int *)(param_1 + 0x138) == 0) || (param_2 != *(int *)(param_1 + 0x13c)))" ( (binary_expression "(*(int *)(param_1 + 0x138) == 0) || (param_2 != *(int *)(param_1 + 0x13c))" (parenthesized_expression "(*(int *)(param_1 + 0x138) == 0)" ( (binary_expression "*(int *)(param_1 + 0x138) == 0" (pointer_expression "*(int *)(param_1 + 0x138)" * (cast_expression "(int *)(param_1 + 0x138)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x138)" ( (binary_expression "param_1 + 0x138" identifier + number_literal) )))) == number_literal) )) || (parenthesized_expression "(param_2 != *(int *)(param_1 + 0x13c))" ( (binary_expression "param_2 != *(int *)(param_1 + 0x13c)" identifier != (pointer_expression "*(int *)(param_1 + 0x13c)" * (cast_expression "(int *)(param_1 + 0x13c)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x13c)" ( (binary_expression "param_1 + 0x13c" identifier + number_literal) ))))) ))) )) (goto_statement "goto LAB_000499e8;" goto statement_identifier ;)) }))) (expression_statement "*(undefined4 *)(param_1 + 0x138) = 0;" (assignment_expression "*(undefined4 *)(param_1 + 0x138) = 0" (pointer_expression "*(undefined4 *)(param_1 + 0x138)" * (cast_expression "(undefined4 *)(param_1 + 0x138)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x138)" ( (binary_expression "param_1 + 0x138" identifier + number_literal) )))) = number_literal) ;) (labeled_statement "LAB_000499e8:\n  term_update(param_1);" statement_identifier : (expression_statement "term_update(param_1);" (call_expression "term_update(param_1)" identifier (argument_list "(param_1)" ( identifier ))) ;)) (return_statement "return;" return ;) })))
(translation_unit "/* WARNING: Enum "anon_enum_32": Some values do not have unique names */\n\nvoid term_timer(void *ctx,ulong now)\n\n{\n  int iVar1;\n  \n  iVar1 = *(int *)((int)ctx + 0x10a4);\n  if ((iVar1 != 0) && (iVar1 = 0, *(ulong *)((int)ctx + 0x10ac) == now)) {\n    *(undefined4 *)((int)ctx + 0x10a4) = 0;\n    *(uint *)((int)ctx + 0xc0) = (uint)(*(int *)((int)ctx + 0xc0) == 0);\n    if (*(int *)((int)ctx + 0xc4) == 0) {\n      iVar1 = 1;\n      *(undefined4 *)((int)ctx + 0xc0) = 1;\n    }\n    else {\n      term_schedule_tblink((Terminal *)ctx);\n      iVar1 = 1;\n    }\n  }\n  if ((*(int *)((int)ctx + 0x10a8) == 0) || (*(ulong *)((int)ctx + 0x10b0) != now)) {\n    if ((*(int *)((int)ctx + 0x138) == 0) || (*(ulong *)((int)ctx + 0x13c) != now)) {\n      if ((iVar1 == 0) &&\n         ((*(int *)((int)ctx + 0x109c) == 0 || (*(ulong *)((int)ctx + 0x10a0) != now)))) {\n        return;\n      }\n      goto LAB_000499e8;\n    }\n  }\n  else {\n    *(undefined4 *)((int)ctx + 0x10a8) = 0;\n    *(uint *)((int)ctx + 0xbc) = (uint)(*(int *)((int)ctx + 0xbc) == 0);\n    if ((*(int *)((int)ctx + 0x1100) == 0) || (*(int *)((int)ctx + 0x134) == 0)) {\n      *(undefined4 *)((int)ctx + 0xbc) = 1;\n    }\n    else {\n      term_schedule_cblink((Terminal *)ctx);\n    }\n    if ((*(int *)((int)ctx + 0x138) == 0) || (now != *(ulong *)((int)ctx + 0x13c)))\n    goto LAB_000499e8;\n  }\n  *(undefined4 *)((int)ctx + 0x138) = 0;\nLAB_000499e8:\n  term_update((Terminal *)ctx);\n  return;\n}\n\n" comment (function_definition "void term_timer(void *ctx,ulong now)\n\n{\n  int iVar1;\n  \n  iVar1 = *(int *)((int)ctx + 0x10a4);\n  if ((iVar1 != 0) && (iVar1 = 0, *(ulong *)((int)ctx + 0x10ac) == now)) {\n    *(undefined4 *)((int)ctx + 0x10a4) = 0;\n    *(uint *)((int)ctx + 0xc0) = (uint)(*(int *)((int)ctx + 0xc0) == 0);\n    if (*(int *)((int)ctx + 0xc4) == 0) {\n      iVar1 = 1;\n      *(undefined4 *)((int)ctx + 0xc0) = 1;\n    }\n    else {\n      term_schedule_tblink((Terminal *)ctx);\n      iVar1 = 1;\n    }\n  }\n  if ((*(int *)((int)ctx + 0x10a8) == 0) || (*(ulong *)((int)ctx + 0x10b0) != now)) {\n    if ((*(int *)((int)ctx + 0x138) == 0) || (*(ulong *)((int)ctx + 0x13c) != now)) {\n      if ((iVar1 == 0) &&\n         ((*(int *)((int)ctx + 0x109c) == 0 || (*(ulong *)((int)ctx + 0x10a0) != now)))) {\n        return;\n      }\n      goto LAB_000499e8;\n    }\n  }\n  else {\n    *(undefined4 *)((int)ctx + 0x10a8) = 0;\n    *(uint *)((int)ctx + 0xbc) = (uint)(*(int *)((int)ctx + 0xbc) == 0);\n    if ((*(int *)((int)ctx + 0x1100) == 0) || (*(int *)((int)ctx + 0x134) == 0)) {\n      *(undefined4 *)((int)ctx + 0xbc) = 1;\n    }\n    else {\n      term_schedule_cblink((Terminal *)ctx);\n    }\n    if ((*(int *)((int)ctx + 0x138) == 0) || (now != *(ulong *)((int)ctx + 0x13c)))\n    goto LAB_000499e8;\n  }\n  *(undefined4 *)((int)ctx + 0x138) = 0;\nLAB_000499e8:\n  term_update((Terminal *)ctx);\n  return;\n}" primitive_type (function_declarator "term_timer(void *ctx,ulong now)" identifier (parameter_list "(void *ctx,ulong now)" ( (parameter_declaration "void *ctx" primitive_type (pointer_declarator "*ctx" * identifier)) , (parameter_declaration "ulong now" type_identifier identifier) ))) (compound_statement "{\n  int iVar1;\n  \n  iVar1 = *(int *)((int)ctx + 0x10a4);\n  if ((iVar1 != 0) && (iVar1 = 0, *(ulong *)((int)ctx + 0x10ac) == now)) {\n    *(undefined4 *)((int)ctx + 0x10a4) = 0;\n    *(uint *)((int)ctx + 0xc0) = (uint)(*(int *)((int)ctx + 0xc0) == 0);\n    if (*(int *)((int)ctx + 0xc4) == 0) {\n      iVar1 = 1;\n      *(undefined4 *)((int)ctx + 0xc0) = 1;\n    }\n    else {\n      term_schedule_tblink((Terminal *)ctx);\n      iVar1 = 1;\n    }\n  }\n  if ((*(int *)((int)ctx + 0x10a8) == 0) || (*(ulong *)((int)ctx + 0x10b0) != now)) {\n    if ((*(int *)((int)ctx + 0x138) == 0) || (*(ulong *)((int)ctx + 0x13c) != now)) {\n      if ((iVar1 == 0) &&\n         ((*(int *)((int)ctx + 0x109c) == 0 || (*(ulong *)((int)ctx + 0x10a0) != now)))) {\n        return;\n      }\n      goto LAB_000499e8;\n    }\n  }\n  else {\n    *(undefined4 *)((int)ctx + 0x10a8) = 0;\n    *(uint *)((int)ctx + 0xbc) = (uint)(*(int *)((int)ctx + 0xbc) == 0);\n    if ((*(int *)((int)ctx + 0x1100) == 0) || (*(int *)((int)ctx + 0x134) == 0)) {\n      *(undefined4 *)((int)ctx + 0xbc) = 1;\n    }\n    else {\n      term_schedule_cblink((Terminal *)ctx);\n    }\n    if ((*(int *)((int)ctx + 0x138) == 0) || (now != *(ulong *)((int)ctx + 0x13c)))\n    goto LAB_000499e8;\n  }\n  *(undefined4 *)((int)ctx + 0x138) = 0;\nLAB_000499e8:\n  term_update((Terminal *)ctx);\n  return;\n}" { (declaration "int iVar1;" primitive_type identifier ;) (expression_statement "iVar1 = *(int *)((int)ctx + 0x10a4);" (assignment_expression "iVar1 = *(int *)((int)ctx + 0x10a4)" identifier = (pointer_expression "*(int *)((int)ctx + 0x10a4)" * (cast_expression "(int *)((int)ctx + 0x10a4)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)ctx + 0x10a4)" ( (binary_expression "(int)ctx + 0x10a4" (cast_expression "(int)ctx" ( (type_descriptor "int" primitive_type) ) identifier) + number_literal) ))))) ;) (if_statement "if ((iVar1 != 0) && (iVar1 = 0, *(ulong *)((int)ctx + 0x10ac) == now)) {\n    *(undefined4 *)((int)ctx + 0x10a4) = 0;\n    *(uint *)((int)ctx + 0xc0) = (uint)(*(int *)((int)ctx + 0xc0) == 0);\n    if (*(int *)((int)ctx + 0xc4) == 0) {\n      iVar1 = 1;\n      *(undefined4 *)((int)ctx + 0xc0) = 1;\n    }\n    else {\n      term_schedule_tblink((Terminal *)ctx);\n      iVar1 = 1;\n    }\n  }" if (parenthesized_expression "((iVar1 != 0) && (iVar1 = 0, *(ulong *)((int)ctx + 0x10ac) == now))" ( (binary_expression "(iVar1 != 0) && (iVar1 = 0, *(ulong *)((int)ctx + 0x10ac) == now)" (parenthesized_expression "(iVar1 != 0)" ( (binary_expression "iVar1 != 0" identifier != number_literal) )) && (parenthesized_expression "(iVar1 = 0, *(ulong *)((int)ctx + 0x10ac) == now)" ( (comma_expression "iVar1 = 0, *(ulong *)((int)ctx + 0x10ac) == now" (assignment_expression "iVar1 = 0" identifier = number_literal) , (binary_expression "*(ulong *)((int)ctx + 0x10ac) == now" (pointer_expression "*(ulong *)((int)ctx + 0x10ac)" * (cast_expression "(ulong *)((int)ctx + 0x10ac)" ( (type_descriptor "ulong *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)ctx + 0x10ac)" ( (binary_expression "(int)ctx + 0x10ac" (cast_expression "(int)ctx" ( (type_descriptor "int" primitive_type) ) identifier) + number_literal) )))) == identifier)) ))) )) (compound_statement "{\n    *(undefined4 *)((int)ctx + 0x10a4) = 0;\n    *(uint *)((int)ctx + 0xc0) = (uint)(*(int *)((int)ctx + 0xc0) == 0);\n    if (*(int *)((int)ctx + 0xc4) == 0) {\n      iVar1 = 1;\n      *(undefined4 *)((int)ctx + 0xc0) = 1;\n    }\n    else {\n      term_schedule_tblink((Terminal *)ctx);\n      iVar1 = 1;\n    }\n  }" { (expression_statement "*(undefined4 *)((int)ctx + 0x10a4) = 0;" (assignment_expression "*(undefined4 *)((int)ctx + 0x10a4) = 0" (pointer_expression "*(undefined4 *)((int)ctx + 0x10a4)" * (cast_expression "(undefined4 *)((int)ctx + 0x10a4)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)ctx + 0x10a4)" ( (binary_expression "(int)ctx + 0x10a4" (cast_expression "(int)ctx" ( (type_descriptor "int" primitive_type) ) identifier) + number_literal) )))) = number_literal) ;) (expression_statement "*(uint *)((int)ctx + 0xc0) = (uint)(*(int *)((int)ctx + 0xc0) == 0);" (assignment_expression "*(uint *)((int)ctx + 0xc0) = (uint)(*(int *)((int)ctx + 0xc0) == 0)" (pointer_expression "*(uint *)((int)ctx + 0xc0)" * (cast_expression "(uint *)((int)ctx + 0xc0)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)ctx + 0xc0)" ( (binary_expression "(int)ctx + 0xc0" (cast_expression "(int)ctx" ( (type_descriptor "int" primitive_type) ) identifier) + number_literal) )))) = (call_expression "(uint)(*(int *)((int)ctx + 0xc0) == 0)" (parenthesized_expression "(uint)" ( identifier )) (argument_list "(*(int *)((int)ctx + 0xc0) == 0)" ( (binary_expression "*(int *)((int)ctx + 0xc0) == 0" (pointer_expression "*(int *)((int)ctx + 0xc0)" * (cast_expression "(int *)((int)ctx + 0xc0)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)ctx + 0xc0)" ( (binary_expression "(int)ctx + 0xc0" (cast_expression "(int)ctx" ( (type_descriptor "int" primitive_type) ) identifier) + number_literal) )))) == number_literal) )))) ;) (if_statement "if (*(int *)((int)ctx + 0xc4) == 0) {\n      iVar1 = 1;\n      *(undefined4 *)((int)ctx + 0xc0) = 1;\n    }\n    else {\n      term_schedule_tblink((Terminal *)ctx);\n      iVar1 = 1;\n    }" if (parenthesized_expression "(*(int *)((int)ctx + 0xc4) == 0)" ( (binary_expression "*(int *)((int)ctx + 0xc4) == 0" (pointer_expression "*(int *)((int)ctx + 0xc4)" * (cast_expression "(int *)((int)ctx + 0xc4)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)ctx + 0xc4)" ( (binary_expression "(int)ctx + 0xc4" (cast_expression "(int)ctx" ( (type_descriptor "int" primitive_type) ) identifier) + number_literal) )))) == number_literal) )) (compound_statement "{\n      iVar1 = 1;\n      *(undefined4 *)((int)ctx + 0xc0) = 1;\n    }" { (expression_statement "iVar1 = 1;" (assignment_expression "iVar1 = 1" identifier = number_literal) ;) (expression_statement "*(undefined4 *)((int)ctx + 0xc0) = 1;" (assignment_expression "*(undefined4 *)((int)ctx + 0xc0) = 1" (pointer_expression "*(undefined4 *)((int)ctx + 0xc0)" * (cast_expression "(undefined4 *)((int)ctx + 0xc0)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)ctx + 0xc0)" ( (binary_expression "(int)ctx + 0xc0" (cast_expression "(int)ctx" ( (type_descriptor "int" primitive_type) ) identifier) + number_literal) )))) = number_literal) ;) }) (else_clause "else {\n      term_schedule_tblink((Terminal *)ctx);\n      iVar1 = 1;\n    }" else (compound_statement "{\n      term_schedule_tblink((Terminal *)ctx);\n      iVar1 = 1;\n    }" { (expression_statement "term_schedule_tblink((Terminal *)ctx);" (call_expression "term_schedule_tblink((Terminal *)ctx)" identifier (argument_list "((Terminal *)ctx)" ( (cast_expression "(Terminal *)ctx" ( (type_descriptor "Terminal *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier) ))) ;) (expression_statement "iVar1 = 1;" (assignment_expression "iVar1 = 1" identifier = number_literal) ;) }))) })) (if_statement "if ((*(int *)((int)ctx + 0x10a8) == 0) || (*(ulong *)((int)ctx + 0x10b0) != now)) {\n    if ((*(int *)((int)ctx + 0x138) == 0) || (*(ulong *)((int)ctx + 0x13c) != now)) {\n      if ((iVar1 == 0) &&\n         ((*(int *)((int)ctx + 0x109c) == 0 || (*(ulong *)((int)ctx + 0x10a0) != now)))) {\n        return;\n      }\n      goto LAB_000499e8;\n    }\n  }\n  else {\n    *(undefined4 *)((int)ctx + 0x10a8) = 0;\n    *(uint *)((int)ctx + 0xbc) = (uint)(*(int *)((int)ctx + 0xbc) == 0);\n    if ((*(int *)((int)ctx + 0x1100) == 0) || (*(int *)((int)ctx + 0x134) == 0)) {\n      *(undefined4 *)((int)ctx + 0xbc) = 1;\n    }\n    else {\n      term_schedule_cblink((Terminal *)ctx);\n    }\n    if ((*(int *)((int)ctx + 0x138) == 0) || (now != *(ulong *)((int)ctx + 0x13c)))\n    goto LAB_000499e8;\n  }" if (parenthesized_expression "((*(int *)((int)ctx + 0x10a8) == 0) || (*(ulong *)((int)ctx + 0x10b0) != now))" ( (binary_expression "(*(int *)((int)ctx + 0x10a8) == 0) || (*(ulong *)((int)ctx + 0x10b0) != now)" (parenthesized_expression "(*(int *)((int)ctx + 0x10a8) == 0)" ( (binary_expression "*(int *)((int)ctx + 0x10a8) == 0" (pointer_expression "*(int *)((int)ctx + 0x10a8)" * (cast_expression "(int *)((int)ctx + 0x10a8)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)ctx + 0x10a8)" ( (binary_expression "(int)ctx + 0x10a8" (cast_expression "(int)ctx" ( (type_descriptor "int" primitive_type) ) identifier) + number_literal) )))) == number_literal) )) || (parenthesized_expression "(*(ulong *)((int)ctx + 0x10b0) != now)" ( (binary_expression "*(ulong *)((int)ctx + 0x10b0) != now" (pointer_expression "*(ulong *)((int)ctx + 0x10b0)" * (cast_expression "(ulong *)((int)ctx + 0x10b0)" ( (type_descriptor "ulong *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)ctx + 0x10b0)" ( (binary_expression "(int)ctx + 0x10b0" (cast_expression "(int)ctx" ( (type_descriptor "int" primitive_type) ) identifier) + number_literal) )))) != identifier) ))) )) (compound_statement "{\n    if ((*(int *)((int)ctx + 0x138) == 0) || (*(ulong *)((int)ctx + 0x13c) != now)) {\n      if ((iVar1 == 0) &&\n         ((*(int *)((int)ctx + 0x109c) == 0 || (*(ulong *)((int)ctx + 0x10a0) != now)))) {\n        return;\n      }\n      goto LAB_000499e8;\n    }\n  }" { (if_statement "if ((*(int *)((int)ctx + 0x138) == 0) || (*(ulong *)((int)ctx + 0x13c) != now)) {\n      if ((iVar1 == 0) &&\n         ((*(int *)((int)ctx + 0x109c) == 0 || (*(ulong *)((int)ctx + 0x10a0) != now)))) {\n        return;\n      }\n      goto LAB_000499e8;\n    }" if (parenthesized_expression "((*(int *)((int)ctx + 0x138) == 0) || (*(ulong *)((int)ctx + 0x13c) != now))" ( (binary_expression "(*(int *)((int)ctx + 0x138) == 0) || (*(ulong *)((int)ctx + 0x13c) != now)" (parenthesized_expression "(*(int *)((int)ctx + 0x138) == 0)" ( (binary_expression "*(int *)((int)ctx + 0x138) == 0" (pointer_expression "*(int *)((int)ctx + 0x138)" * (cast_expression "(int *)((int)ctx + 0x138)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)ctx + 0x138)" ( (binary_expression "(int)ctx + 0x138" (cast_expression "(int)ctx" ( (type_descriptor "int" primitive_type) ) identifier) + number_literal) )))) == number_literal) )) || (parenthesized_expression "(*(ulong *)((int)ctx + 0x13c) != now)" ( (binary_expression "*(ulong *)((int)ctx + 0x13c) != now" (pointer_expression "*(ulong *)((int)ctx + 0x13c)" * (cast_expression "(ulong *)((int)ctx + 0x13c)" ( (type_descriptor "ulong *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)ctx + 0x13c)" ( (binary_expression "(int)ctx + 0x13c" (cast_expression "(int)ctx" ( (type_descriptor "int" primitive_type) ) identifier) + number_literal) )))) != identifier) ))) )) (compound_statement "{\n      if ((iVar1 == 0) &&\n         ((*(int *)((int)ctx + 0x109c) == 0 || (*(ulong *)((int)ctx + 0x10a0) != now)))) {\n        return;\n      }\n      goto LAB_000499e8;\n    }" { (if_statement "if ((iVar1 == 0) &&\n         ((*(int *)((int)ctx + 0x109c) == 0 || (*(ulong *)((int)ctx + 0x10a0) != now)))) {\n        return;\n      }" if (parenthesized_expression "((iVar1 == 0) &&\n         ((*(int *)((int)ctx + 0x109c) == 0 || (*(ulong *)((int)ctx + 0x10a0) != now))))" ( (binary_expression "(iVar1 == 0) &&\n         ((*(int *)((int)ctx + 0x109c) == 0 || (*(ulong *)((int)ctx + 0x10a0) != now)))" (parenthesized_expression "(iVar1 == 0)" ( (binary_expression "iVar1 == 0" identifier == number_literal) )) && (parenthesized_expression "((*(int *)((int)ctx + 0x109c) == 0 || (*(ulong *)((int)ctx + 0x10a0) != now)))" ( (parenthesized_expression "(*(int *)((int)ctx + 0x109c) == 0 || (*(ulong *)((int)ctx + 0x10a0) != now))" ( (binary_expression "*(int *)((int)ctx + 0x109c) == 0 || (*(ulong *)((int)ctx + 0x10a0) != now)" (binary_expression "*(int *)((int)ctx + 0x109c) == 0" (pointer_expression "*(int *)((int)ctx + 0x109c)" * (cast_expression "(int *)((int)ctx + 0x109c)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)ctx + 0x109c)" ( (binary_expression "(int)ctx + 0x109c" (cast_expression "(int)ctx" ( (type_descriptor "int" primitive_type) ) identifier) + number_literal) )))) == number_literal) || (parenthesized_expression "(*(ulong *)((int)ctx + 0x10a0) != now)" ( (binary_expression "*(ulong *)((int)ctx + 0x10a0) != now" (pointer_expression "*(ulong *)((int)ctx + 0x10a0)" * (cast_expression "(ulong *)((int)ctx + 0x10a0)" ( (type_descriptor "ulong *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)ctx + 0x10a0)" ( (binary_expression "(int)ctx + 0x10a0" (cast_expression "(int)ctx" ( (type_descriptor "int" primitive_type) ) identifier) + number_literal) )))) != identifier) ))) )) ))) )) (compound_statement "{\n        return;\n      }" { (return_statement "return;" return ;) })) (goto_statement "goto LAB_000499e8;" goto statement_identifier ;) })) }) (else_clause "else {\n    *(undefined4 *)((int)ctx + 0x10a8) = 0;\n    *(uint *)((int)ctx + 0xbc) = (uint)(*(int *)((int)ctx + 0xbc) == 0);\n    if ((*(int *)((int)ctx + 0x1100) == 0) || (*(int *)((int)ctx + 0x134) == 0)) {\n      *(undefined4 *)((int)ctx + 0xbc) = 1;\n    }\n    else {\n      term_schedule_cblink((Terminal *)ctx);\n    }\n    if ((*(int *)((int)ctx + 0x138) == 0) || (now != *(ulong *)((int)ctx + 0x13c)))\n    goto LAB_000499e8;\n  }" else (compound_statement "{\n    *(undefined4 *)((int)ctx + 0x10a8) = 0;\n    *(uint *)((int)ctx + 0xbc) = (uint)(*(int *)((int)ctx + 0xbc) == 0);\n    if ((*(int *)((int)ctx + 0x1100) == 0) || (*(int *)((int)ctx + 0x134) == 0)) {\n      *(undefined4 *)((int)ctx + 0xbc) = 1;\n    }\n    else {\n      term_schedule_cblink((Terminal *)ctx);\n    }\n    if ((*(int *)((int)ctx + 0x138) == 0) || (now != *(ulong *)((int)ctx + 0x13c)))\n    goto LAB_000499e8;\n  }" { (expression_statement "*(undefined4 *)((int)ctx + 0x10a8) = 0;" (assignment_expression "*(undefined4 *)((int)ctx + 0x10a8) = 0" (pointer_expression "*(undefined4 *)((int)ctx + 0x10a8)" * (cast_expression "(undefined4 *)((int)ctx + 0x10a8)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)ctx + 0x10a8)" ( (binary_expression "(int)ctx + 0x10a8" (cast_expression "(int)ctx" ( (type_descriptor "int" primitive_type) ) identifier) + number_literal) )))) = number_literal) ;) (expression_statement "*(uint *)((int)ctx + 0xbc) = (uint)(*(int *)((int)ctx + 0xbc) == 0);" (assignment_expression "*(uint *)((int)ctx + 0xbc) = (uint)(*(int *)((int)ctx + 0xbc) == 0)" (pointer_expression "*(uint *)((int)ctx + 0xbc)" * (cast_expression "(uint *)((int)ctx + 0xbc)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)ctx + 0xbc)" ( (binary_expression "(int)ctx + 0xbc" (cast_expression "(int)ctx" ( (type_descriptor "int" primitive_type) ) identifier) + number_literal) )))) = (call_expression "(uint)(*(int *)((int)ctx + 0xbc) == 0)" (parenthesized_expression "(uint)" ( identifier )) (argument_list "(*(int *)((int)ctx + 0xbc) == 0)" ( (binary_expression "*(int *)((int)ctx + 0xbc) == 0" (pointer_expression "*(int *)((int)ctx + 0xbc)" * (cast_expression "(int *)((int)ctx + 0xbc)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)ctx + 0xbc)" ( (binary_expression "(int)ctx + 0xbc" (cast_expression "(int)ctx" ( (type_descriptor "int" primitive_type) ) identifier) + number_literal) )))) == number_literal) )))) ;) (if_statement "if ((*(int *)((int)ctx + 0x1100) == 0) || (*(int *)((int)ctx + 0x134) == 0)) {\n      *(undefined4 *)((int)ctx + 0xbc) = 1;\n    }\n    else {\n      term_schedule_cblink((Terminal *)ctx);\n    }" if (parenthesized_expression "((*(int *)((int)ctx + 0x1100) == 0) || (*(int *)((int)ctx + 0x134) == 0))" ( (binary_expression "(*(int *)((int)ctx + 0x1100) == 0) || (*(int *)((int)ctx + 0x134) == 0)" (parenthesized_expression "(*(int *)((int)ctx + 0x1100) == 0)" ( (binary_expression "*(int *)((int)ctx + 0x1100) == 0" (pointer_expression "*(int *)((int)ctx + 0x1100)" * (cast_expression "(int *)((int)ctx + 0x1100)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)ctx + 0x1100)" ( (binary_expression "(int)ctx + 0x1100" (cast_expression "(int)ctx" ( (type_descriptor "int" primitive_type) ) identifier) + number_literal) )))) == number_literal) )) || (parenthesized_expression "(*(int *)((int)ctx + 0x134) == 0)" ( (binary_expression "*(int *)((int)ctx + 0x134) == 0" (pointer_expression "*(int *)((int)ctx + 0x134)" * (cast_expression "(int *)((int)ctx + 0x134)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)ctx + 0x134)" ( (binary_expression "(int)ctx + 0x134" (cast_expression "(int)ctx" ( (type_descriptor "int" primitive_type) ) identifier) + number_literal) )))) == number_literal) ))) )) (compound_statement "{\n      *(undefined4 *)((int)ctx + 0xbc) = 1;\n    }" { (expression_statement "*(undefined4 *)((int)ctx + 0xbc) = 1;" (assignment_expression "*(undefined4 *)((int)ctx + 0xbc) = 1" (pointer_expression "*(undefined4 *)((int)ctx + 0xbc)" * (cast_expression "(undefined4 *)((int)ctx + 0xbc)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)ctx + 0xbc)" ( (binary_expression "(int)ctx + 0xbc" (cast_expression "(int)ctx" ( (type_descriptor "int" primitive_type) ) identifier) + number_literal) )))) = number_literal) ;) }) (else_clause "else {\n      term_schedule_cblink((Terminal *)ctx);\n    }" else (compound_statement "{\n      term_schedule_cblink((Terminal *)ctx);\n    }" { (expression_statement "term_schedule_cblink((Terminal *)ctx);" (call_expression "term_schedule_cblink((Terminal *)ctx)" identifier (argument_list "((Terminal *)ctx)" ( (cast_expression "(Terminal *)ctx" ( (type_descriptor "Terminal *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier) ))) ;) }))) (if_statement "if ((*(int *)((int)ctx + 0x138) == 0) || (now != *(ulong *)((int)ctx + 0x13c)))\n    goto LAB_000499e8;" if (parenthesized_expression "((*(int *)((int)ctx + 0x138) == 0) || (now != *(ulong *)((int)ctx + 0x13c)))" ( (binary_expression "(*(int *)((int)ctx + 0x138) == 0) || (now != *(ulong *)((int)ctx + 0x13c))" (parenthesized_expression "(*(int *)((int)ctx + 0x138) == 0)" ( (binary_expression "*(int *)((int)ctx + 0x138) == 0" (pointer_expression "*(int *)((int)ctx + 0x138)" * (cast_expression "(int *)((int)ctx + 0x138)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)ctx + 0x138)" ( (binary_expression "(int)ctx + 0x138" (cast_expression "(int)ctx" ( (type_descriptor "int" primitive_type) ) identifier) + number_literal) )))) == number_literal) )) || (parenthesized_expression "(now != *(ulong *)((int)ctx + 0x13c))" ( (binary_expression "now != *(ulong *)((int)ctx + 0x13c)" identifier != (pointer_expression "*(ulong *)((int)ctx + 0x13c)" * (cast_expression "(ulong *)((int)ctx + 0x13c)" ( (type_descriptor "ulong *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)ctx + 0x13c)" ( (binary_expression "(int)ctx + 0x13c" (cast_expression "(int)ctx" ( (type_descriptor "int" primitive_type) ) identifier) + number_literal) ))))) ))) )) (goto_statement "goto LAB_000499e8;" goto statement_identifier ;)) }))) (expression_statement "*(undefined4 *)((int)ctx + 0x138) = 0;" (assignment_expression "*(undefined4 *)((int)ctx + 0x138) = 0" (pointer_expression "*(undefined4 *)((int)ctx + 0x138)" * (cast_expression "(undefined4 *)((int)ctx + 0x138)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)ctx + 0x138)" ( (binary_expression "(int)ctx + 0x138" (cast_expression "(int)ctx" ( (type_descriptor "int" primitive_type) ) identifier) + number_literal) )))) = number_literal) ;) (labeled_statement "LAB_000499e8:\n  term_update((Terminal *)ctx);" statement_identifier : (expression_statement "term_update((Terminal *)ctx);" (call_expression "term_update((Terminal *)ctx)" identifier (argument_list "((Terminal *)ctx)" ( (cast_expression "(Terminal *)ctx" ( (type_descriptor "Terminal *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier) ))) ;)) (return_statement "return;" return ;) })))
(translation_unit "void FUN_00049908(int param_1,int param_2)\n\n{\n  int iVar1;\n  \n  iVar1 = *(int *)(param_1 + 0x10a4);\n  if ((iVar1 != 0) && (iVar1 = 0, *(int *)(param_1 + 0x10ac) == param_2)) {\n    *(undefined4 *)(param_1 + 0x10a4) = 0;\n    *(uint *)(param_1 + 0xc0) = (uint)(*(int *)(param_1 + 0xc0) == 0);\n    if (*(int *)(param_1 + 0xc4) == 0) {\n      iVar1 = 1;\n      *(undefined4 *)(param_1 + 0xc0) = 1;\n    }\n    else {\n      FUN_000461c0();\n      iVar1 = 1;\n    }\n  }\n  if ((*(int *)(param_1 + 0x10a8) == 0) || (*(int *)(param_1 + 0x10b0) != param_2)) {\n    if ((*(int *)(param_1 + 0x138) == 0) || (*(int *)(param_1 + 0x13c) != param_2)) {\n      if ((iVar1 == 0) &&\n         ((*(int *)(param_1 + 0x109c) == 0 || (*(int *)(param_1 + 0x10a0) != param_2)))) {\n        return;\n      }\n      goto LAB_000499e8;\n    }\n  }\n  else {\n    *(undefined4 *)(param_1 + 0x10a8) = 0;\n    *(uint *)(param_1 + 0xbc) = (uint)(*(int *)(param_1 + 0xbc) == 0);\n    if ((*(int *)(param_1 + 0x1100) == 0) || (*(int *)(param_1 + 0x134) == 0)) {\n      *(undefined4 *)(param_1 + 0xbc) = 1;\n    }\n    else {\n      FUN_00046234(param_1);\n    }\n    if ((*(int *)(param_1 + 0x138) == 0) || (param_2 != *(int *)(param_1 + 0x13c)))\n    goto LAB_000499e8;\n  }\n  *(undefined4 *)(param_1 + 0x138) = 0;\nLAB_000499e8:\n  term_update(param_1);\n  return;\n}\n\n" (function_definition "void FUN_00049908(int param_1,int param_2)\n\n{\n  int iVar1;\n  \n  iVar1 = *(int *)(param_1 + 0x10a4);\n  if ((iVar1 != 0) && (iVar1 = 0, *(int *)(param_1 + 0x10ac) == param_2)) {\n    *(undefined4 *)(param_1 + 0x10a4) = 0;\n    *(uint *)(param_1 + 0xc0) = (uint)(*(int *)(param_1 + 0xc0) == 0);\n    if (*(int *)(param_1 + 0xc4) == 0) {\n      iVar1 = 1;\n      *(undefined4 *)(param_1 + 0xc0) = 1;\n    }\n    else {\n      FUN_000461c0();\n      iVar1 = 1;\n    }\n  }\n  if ((*(int *)(param_1 + 0x10a8) == 0) || (*(int *)(param_1 + 0x10b0) != param_2)) {\n    if ((*(int *)(param_1 + 0x138) == 0) || (*(int *)(param_1 + 0x13c) != param_2)) {\n      if ((iVar1 == 0) &&\n         ((*(int *)(param_1 + 0x109c) == 0 || (*(int *)(param_1 + 0x10a0) != param_2)))) {\n        return;\n      }\n      goto LAB_000499e8;\n    }\n  }\n  else {\n    *(undefined4 *)(param_1 + 0x10a8) = 0;\n    *(uint *)(param_1 + 0xbc) = (uint)(*(int *)(param_1 + 0xbc) == 0);\n    if ((*(int *)(param_1 + 0x1100) == 0) || (*(int *)(param_1 + 0x134) == 0)) {\n      *(undefined4 *)(param_1 + 0xbc) = 1;\n    }\n    else {\n      FUN_00046234(param_1);\n    }\n    if ((*(int *)(param_1 + 0x138) == 0) || (param_2 != *(int *)(param_1 + 0x13c)))\n    goto LAB_000499e8;\n  }\n  *(undefined4 *)(param_1 + 0x138) = 0;\nLAB_000499e8:\n  term_update(param_1);\n  return;\n}" primitive_type (function_declarator "FUN_00049908(int param_1,int param_2)" identifier (parameter_list "(int param_1,int param_2)" ( (parameter_declaration "int param_1" primitive_type identifier) , (parameter_declaration "int param_2" primitive_type identifier) ))) (compound_statement "{\n  int iVar1;\n  \n  iVar1 = *(int *)(param_1 + 0x10a4);\n  if ((iVar1 != 0) && (iVar1 = 0, *(int *)(param_1 + 0x10ac) == param_2)) {\n    *(undefined4 *)(param_1 + 0x10a4) = 0;\n    *(uint *)(param_1 + 0xc0) = (uint)(*(int *)(param_1 + 0xc0) == 0);\n    if (*(int *)(param_1 + 0xc4) == 0) {\n      iVar1 = 1;\n      *(undefined4 *)(param_1 + 0xc0) = 1;\n    }\n    else {\n      FUN_000461c0();\n      iVar1 = 1;\n    }\n  }\n  if ((*(int *)(param_1 + 0x10a8) == 0) || (*(int *)(param_1 + 0x10b0) != param_2)) {\n    if ((*(int *)(param_1 + 0x138) == 0) || (*(int *)(param_1 + 0x13c) != param_2)) {\n      if ((iVar1 == 0) &&\n         ((*(int *)(param_1 + 0x109c) == 0 || (*(int *)(param_1 + 0x10a0) != param_2)))) {\n        return;\n      }\n      goto LAB_000499e8;\n    }\n  }\n  else {\n    *(undefined4 *)(param_1 + 0x10a8) = 0;\n    *(uint *)(param_1 + 0xbc) = (uint)(*(int *)(param_1 + 0xbc) == 0);\n    if ((*(int *)(param_1 + 0x1100) == 0) || (*(int *)(param_1 + 0x134) == 0)) {\n      *(undefined4 *)(param_1 + 0xbc) = 1;\n    }\n    else {\n      FUN_00046234(param_1);\n    }\n    if ((*(int *)(param_1 + 0x138) == 0) || (param_2 != *(int *)(param_1 + 0x13c)))\n    goto LAB_000499e8;\n  }\n  *(undefined4 *)(param_1 + 0x138) = 0;\nLAB_000499e8:\n  term_update(param_1);\n  return;\n}" { (declaration "int iVar1;" primitive_type identifier ;) (expression_statement "iVar1 = *(int *)(param_1 + 0x10a4);" (assignment_expression "iVar1 = *(int *)(param_1 + 0x10a4)" identifier = (pointer_expression "*(int *)(param_1 + 0x10a4)" * (cast_expression "(int *)(param_1 + 0x10a4)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x10a4)" ( (binary_expression "param_1 + 0x10a4" identifier + number_literal) ))))) ;) (if_statement "if ((iVar1 != 0) && (iVar1 = 0, *(int *)(param_1 + 0x10ac) == param_2)) {\n    *(undefined4 *)(param_1 + 0x10a4) = 0;\n    *(uint *)(param_1 + 0xc0) = (uint)(*(int *)(param_1 + 0xc0) == 0);\n    if (*(int *)(param_1 + 0xc4) == 0) {\n      iVar1 = 1;\n      *(undefined4 *)(param_1 + 0xc0) = 1;\n    }\n    else {\n      FUN_000461c0();\n      iVar1 = 1;\n    }\n  }" if (parenthesized_expression "((iVar1 != 0) && (iVar1 = 0, *(int *)(param_1 + 0x10ac) == param_2))" ( (binary_expression "(iVar1 != 0) && (iVar1 = 0, *(int *)(param_1 + 0x10ac) == param_2)" (parenthesized_expression "(iVar1 != 0)" ( (binary_expression "iVar1 != 0" identifier != number_literal) )) && (parenthesized_expression "(iVar1 = 0, *(int *)(param_1 + 0x10ac) == param_2)" ( (comma_expression "iVar1 = 0, *(int *)(param_1 + 0x10ac) == param_2" (assignment_expression "iVar1 = 0" identifier = number_literal) , (binary_expression "*(int *)(param_1 + 0x10ac) == param_2" (pointer_expression "*(int *)(param_1 + 0x10ac)" * (cast_expression "(int *)(param_1 + 0x10ac)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x10ac)" ( (binary_expression "param_1 + 0x10ac" identifier + number_literal) )))) == identifier)) ))) )) (compound_statement "{\n    *(undefined4 *)(param_1 + 0x10a4) = 0;\n    *(uint *)(param_1 + 0xc0) = (uint)(*(int *)(param_1 + 0xc0) == 0);\n    if (*(int *)(param_1 + 0xc4) == 0) {\n      iVar1 = 1;\n      *(undefined4 *)(param_1 + 0xc0) = 1;\n    }\n    else {\n      FUN_000461c0();\n      iVar1 = 1;\n    }\n  }" { (expression_statement "*(undefined4 *)(param_1 + 0x10a4) = 0;" (assignment_expression "*(undefined4 *)(param_1 + 0x10a4) = 0" (pointer_expression "*(undefined4 *)(param_1 + 0x10a4)" * (cast_expression "(undefined4 *)(param_1 + 0x10a4)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x10a4)" ( (binary_expression "param_1 + 0x10a4" identifier + number_literal) )))) = number_literal) ;) (expression_statement "*(uint *)(param_1 + 0xc0) = (uint)(*(int *)(param_1 + 0xc0) == 0);" (assignment_expression "*(uint *)(param_1 + 0xc0) = (uint)(*(int *)(param_1 + 0xc0) == 0)" (pointer_expression "*(uint *)(param_1 + 0xc0)" * (cast_expression "(uint *)(param_1 + 0xc0)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0xc0)" ( (binary_expression "param_1 + 0xc0" identifier + number_literal) )))) = (call_expression "(uint)(*(int *)(param_1 + 0xc0) == 0)" (parenthesized_expression "(uint)" ( identifier )) (argument_list "(*(int *)(param_1 + 0xc0) == 0)" ( (binary_expression "*(int *)(param_1 + 0xc0) == 0" (pointer_expression "*(int *)(param_1 + 0xc0)" * (cast_expression "(int *)(param_1 + 0xc0)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0xc0)" ( (binary_expression "param_1 + 0xc0" identifier + number_literal) )))) == number_literal) )))) ;) (if_statement "if (*(int *)(param_1 + 0xc4) == 0) {\n      iVar1 = 1;\n      *(undefined4 *)(param_1 + 0xc0) = 1;\n    }\n    else {\n      FUN_000461c0();\n      iVar1 = 1;\n    }" if (parenthesized_expression "(*(int *)(param_1 + 0xc4) == 0)" ( (binary_expression "*(int *)(param_1 + 0xc4) == 0" (pointer_expression "*(int *)(param_1 + 0xc4)" * (cast_expression "(int *)(param_1 + 0xc4)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0xc4)" ( (binary_expression "param_1 + 0xc4" identifier + number_literal) )))) == number_literal) )) (compound_statement "{\n      iVar1 = 1;\n      *(undefined4 *)(param_1 + 0xc0) = 1;\n    }" { (expression_statement "iVar1 = 1;" (assignment_expression "iVar1 = 1" identifier = number_literal) ;) (expression_statement "*(undefined4 *)(param_1 + 0xc0) = 1;" (assignment_expression "*(undefined4 *)(param_1 + 0xc0) = 1" (pointer_expression "*(undefined4 *)(param_1 + 0xc0)" * (cast_expression "(undefined4 *)(param_1 + 0xc0)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0xc0)" ( (binary_expression "param_1 + 0xc0" identifier + number_literal) )))) = number_literal) ;) }) (else_clause "else {\n      FUN_000461c0();\n      iVar1 = 1;\n    }" else (compound_statement "{\n      FUN_000461c0();\n      iVar1 = 1;\n    }" { (expression_statement "FUN_000461c0();" (call_expression "FUN_000461c0()" identifier (argument_list "()" ( ))) ;) (expression_statement "iVar1 = 1;" (assignment_expression "iVar1 = 1" identifier = number_literal) ;) }))) })) (if_statement "if ((*(int *)(param_1 + 0x10a8) == 0) || (*(int *)(param_1 + 0x10b0) != param_2)) {\n    if ((*(int *)(param_1 + 0x138) == 0) || (*(int *)(param_1 + 0x13c) != param_2)) {\n      if ((iVar1 == 0) &&\n         ((*(int *)(param_1 + 0x109c) == 0 || (*(int *)(param_1 + 0x10a0) != param_2)))) {\n        return;\n      }\n      goto LAB_000499e8;\n    }\n  }\n  else {\n    *(undefined4 *)(param_1 + 0x10a8) = 0;\n    *(uint *)(param_1 + 0xbc) = (uint)(*(int *)(param_1 + 0xbc) == 0);\n    if ((*(int *)(param_1 + 0x1100) == 0) || (*(int *)(param_1 + 0x134) == 0)) {\n      *(undefined4 *)(param_1 + 0xbc) = 1;\n    }\n    else {\n      FUN_00046234(param_1);\n    }\n    if ((*(int *)(param_1 + 0x138) == 0) || (param_2 != *(int *)(param_1 + 0x13c)))\n    goto LAB_000499e8;\n  }" if (parenthesized_expression "((*(int *)(param_1 + 0x10a8) == 0) || (*(int *)(param_1 + 0x10b0) != param_2))" ( (binary_expression "(*(int *)(param_1 + 0x10a8) == 0) || (*(int *)(param_1 + 0x10b0) != param_2)" (parenthesized_expression "(*(int *)(param_1 + 0x10a8) == 0)" ( (binary_expression "*(int *)(param_1 + 0x10a8) == 0" (pointer_expression "*(int *)(param_1 + 0x10a8)" * (cast_expression "(int *)(param_1 + 0x10a8)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x10a8)" ( (binary_expression "param_1 + 0x10a8" identifier + number_literal) )))) == number_literal) )) || (parenthesized_expression "(*(int *)(param_1 + 0x10b0) != param_2)" ( (binary_expression "*(int *)(param_1 + 0x10b0) != param_2" (pointer_expression "*(int *)(param_1 + 0x10b0)" * (cast_expression "(int *)(param_1 + 0x10b0)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x10b0)" ( (binary_expression "param_1 + 0x10b0" identifier + number_literal) )))) != identifier) ))) )) (compound_statement "{\n    if ((*(int *)(param_1 + 0x138) == 0) || (*(int *)(param_1 + 0x13c) != param_2)) {\n      if ((iVar1 == 0) &&\n         ((*(int *)(param_1 + 0x109c) == 0 || (*(int *)(param_1 + 0x10a0) != param_2)))) {\n        return;\n      }\n      goto LAB_000499e8;\n    }\n  }" { (if_statement "if ((*(int *)(param_1 + 0x138) == 0) || (*(int *)(param_1 + 0x13c) != param_2)) {\n      if ((iVar1 == 0) &&\n         ((*(int *)(param_1 + 0x109c) == 0 || (*(int *)(param_1 + 0x10a0) != param_2)))) {\n        return;\n      }\n      goto LAB_000499e8;\n    }" if (parenthesized_expression "((*(int *)(param_1 + 0x138) == 0) || (*(int *)(param_1 + 0x13c) != param_2))" ( (binary_expression "(*(int *)(param_1 + 0x138) == 0) || (*(int *)(param_1 + 0x13c) != param_2)" (parenthesized_expression "(*(int *)(param_1 + 0x138) == 0)" ( (binary_expression "*(int *)(param_1 + 0x138) == 0" (pointer_expression "*(int *)(param_1 + 0x138)" * (cast_expression "(int *)(param_1 + 0x138)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x138)" ( (binary_expression "param_1 + 0x138" identifier + number_literal) )))) == number_literal) )) || (parenthesized_expression "(*(int *)(param_1 + 0x13c) != param_2)" ( (binary_expression "*(int *)(param_1 + 0x13c) != param_2" (pointer_expression "*(int *)(param_1 + 0x13c)" * (cast_expression "(int *)(param_1 + 0x13c)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x13c)" ( (binary_expression "param_1 + 0x13c" identifier + number_literal) )))) != identifier) ))) )) (compound_statement "{\n      if ((iVar1 == 0) &&\n         ((*(int *)(param_1 + 0x109c) == 0 || (*(int *)(param_1 + 0x10a0) != param_2)))) {\n        return;\n      }\n      goto LAB_000499e8;\n    }" { (if_statement "if ((iVar1 == 0) &&\n         ((*(int *)(param_1 + 0x109c) == 0 || (*(int *)(param_1 + 0x10a0) != param_2)))) {\n        return;\n      }" if (parenthesized_expression "((iVar1 == 0) &&\n         ((*(int *)(param_1 + 0x109c) == 0 || (*(int *)(param_1 + 0x10a0) != param_2))))" ( (binary_expression "(iVar1 == 0) &&\n         ((*(int *)(param_1 + 0x109c) == 0 || (*(int *)(param_1 + 0x10a0) != param_2)))" (parenthesized_expression "(iVar1 == 0)" ( (binary_expression "iVar1 == 0" identifier == number_literal) )) && (parenthesized_expression "((*(int *)(param_1 + 0x109c) == 0 || (*(int *)(param_1 + 0x10a0) != param_2)))" ( (parenthesized_expression "(*(int *)(param_1 + 0x109c) == 0 || (*(int *)(param_1 + 0x10a0) != param_2))" ( (binary_expression "*(int *)(param_1 + 0x109c) == 0 || (*(int *)(param_1 + 0x10a0) != param_2)" (binary_expression "*(int *)(param_1 + 0x109c) == 0" (pointer_expression "*(int *)(param_1 + 0x109c)" * (cast_expression "(int *)(param_1 + 0x109c)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x109c)" ( (binary_expression "param_1 + 0x109c" identifier + number_literal) )))) == number_literal) || (parenthesized_expression "(*(int *)(param_1 + 0x10a0) != param_2)" ( (binary_expression "*(int *)(param_1 + 0x10a0) != param_2" (pointer_expression "*(int *)(param_1 + 0x10a0)" * (cast_expression "(int *)(param_1 + 0x10a0)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x10a0)" ( (binary_expression "param_1 + 0x10a0" identifier + number_literal) )))) != identifier) ))) )) ))) )) (compound_statement "{\n        return;\n      }" { (return_statement "return;" return ;) })) (goto_statement "goto LAB_000499e8;" goto statement_identifier ;) })) }) (else_clause "else {\n    *(undefined4 *)(param_1 + 0x10a8) = 0;\n    *(uint *)(param_1 + 0xbc) = (uint)(*(int *)(param_1 + 0xbc) == 0);\n    if ((*(int *)(param_1 + 0x1100) == 0) || (*(int *)(param_1 + 0x134) == 0)) {\n      *(undefined4 *)(param_1 + 0xbc) = 1;\n    }\n    else {\n      FUN_00046234(param_1);\n    }\n    if ((*(int *)(param_1 + 0x138) == 0) || (param_2 != *(int *)(param_1 + 0x13c)))\n    goto LAB_000499e8;\n  }" else (compound_statement "{\n    *(undefined4 *)(param_1 + 0x10a8) = 0;\n    *(uint *)(param_1 + 0xbc) = (uint)(*(int *)(param_1 + 0xbc) == 0);\n    if ((*(int *)(param_1 + 0x1100) == 0) || (*(int *)(param_1 + 0x134) == 0)) {\n      *(undefined4 *)(param_1 + 0xbc) = 1;\n    }\n    else {\n      FUN_00046234(param_1);\n    }\n    if ((*(int *)(param_1 + 0x138) == 0) || (param_2 != *(int *)(param_1 + 0x13c)))\n    goto LAB_000499e8;\n  }" { (expression_statement "*(undefined4 *)(param_1 + 0x10a8) = 0;" (assignment_expression "*(undefined4 *)(param_1 + 0x10a8) = 0" (pointer_expression "*(undefined4 *)(param_1 + 0x10a8)" * (cast_expression "(undefined4 *)(param_1 + 0x10a8)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x10a8)" ( (binary_expression "param_1 + 0x10a8" identifier + number_literal) )))) = number_literal) ;) (expression_statement "*(uint *)(param_1 + 0xbc) = (uint)(*(int *)(param_1 + 0xbc) == 0);" (assignment_expression "*(uint *)(param_1 + 0xbc) = (uint)(*(int *)(param_1 + 0xbc) == 0)" (pointer_expression "*(uint *)(param_1 + 0xbc)" * (cast_expression "(uint *)(param_1 + 0xbc)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0xbc)" ( (binary_expression "param_1 + 0xbc" identifier + number_literal) )))) = (call_expression "(uint)(*(int *)(param_1 + 0xbc) == 0)" (parenthesized_expression "(uint)" ( identifier )) (argument_list "(*(int *)(param_1 + 0xbc) == 0)" ( (binary_expression "*(int *)(param_1 + 0xbc) == 0" (pointer_expression "*(int *)(param_1 + 0xbc)" * (cast_expression "(int *)(param_1 + 0xbc)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0xbc)" ( (binary_expression "param_1 + 0xbc" identifier + number_literal) )))) == number_literal) )))) ;) (if_statement "if ((*(int *)(param_1 + 0x1100) == 0) || (*(int *)(param_1 + 0x134) == 0)) {\n      *(undefined4 *)(param_1 + 0xbc) = 1;\n    }\n    else {\n      FUN_00046234(param_1);\n    }" if (parenthesized_expression "((*(int *)(param_1 + 0x1100) == 0) || (*(int *)(param_1 + 0x134) == 0))" ( (binary_expression "(*(int *)(param_1 + 0x1100) == 0) || (*(int *)(param_1 + 0x134) == 0)" (parenthesized_expression "(*(int *)(param_1 + 0x1100) == 0)" ( (binary_expression "*(int *)(param_1 + 0x1100) == 0" (pointer_expression "*(int *)(param_1 + 0x1100)" * (cast_expression "(int *)(param_1 + 0x1100)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x1100)" ( (binary_expression "param_1 + 0x1100" identifier + number_literal) )))) == number_literal) )) || (parenthesized_expression "(*(int *)(param_1 + 0x134) == 0)" ( (binary_expression "*(int *)(param_1 + 0x134) == 0" (pointer_expression "*(int *)(param_1 + 0x134)" * (cast_expression "(int *)(param_1 + 0x134)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x134)" ( (binary_expression "param_1 + 0x134" identifier + number_literal) )))) == number_literal) ))) )) (compound_statement "{\n      *(undefined4 *)(param_1 + 0xbc) = 1;\n    }" { (expression_statement "*(undefined4 *)(param_1 + 0xbc) = 1;" (assignment_expression "*(undefined4 *)(param_1 + 0xbc) = 1" (pointer_expression "*(undefined4 *)(param_1 + 0xbc)" * (cast_expression "(undefined4 *)(param_1 + 0xbc)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0xbc)" ( (binary_expression "param_1 + 0xbc" identifier + number_literal) )))) = number_literal) ;) }) (else_clause "else {\n      FUN_00046234(param_1);\n    }" else (compound_statement "{\n      FUN_00046234(param_1);\n    }" { (expression_statement "FUN_00046234(param_1);" (call_expression "FUN_00046234(param_1)" identifier (argument_list "(param_1)" ( identifier ))) ;) }))) (if_statement "if ((*(int *)(param_1 + 0x138) == 0) || (param_2 != *(int *)(param_1 + 0x13c)))\n    goto LAB_000499e8;" if (parenthesized_expression "((*(int *)(param_1 + 0x138) == 0) || (param_2 != *(int *)(param_1 + 0x13c)))" ( (binary_expression "(*(int *)(param_1 + 0x138) == 0) || (param_2 != *(int *)(param_1 + 0x13c))" (parenthesized_expression "(*(int *)(param_1 + 0x138) == 0)" ( (binary_expression "*(int *)(param_1 + 0x138) == 0" (pointer_expression "*(int *)(param_1 + 0x138)" * (cast_expression "(int *)(param_1 + 0x138)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x138)" ( (binary_expression "param_1 + 0x138" identifier + number_literal) )))) == number_literal) )) || (parenthesized_expression "(param_2 != *(int *)(param_1 + 0x13c))" ( (binary_expression "param_2 != *(int *)(param_1 + 0x13c)" identifier != (pointer_expression "*(int *)(param_1 + 0x13c)" * (cast_expression "(int *)(param_1 + 0x13c)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x13c)" ( (binary_expression "param_1 + 0x13c" identifier + number_literal) ))))) ))) )) (goto_statement "goto LAB_000499e8;" goto statement_identifier ;)) }))) (expression_statement "*(undefined4 *)(param_1 + 0x138) = 0;" (assignment_expression "*(undefined4 *)(param_1 + 0x138) = 0" (pointer_expression "*(undefined4 *)(param_1 + 0x138)" * (cast_expression "(undefined4 *)(param_1 + 0x138)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x138)" ( (binary_expression "param_1 + 0x138" identifier + number_literal) )))) = number_literal) ;) (labeled_statement "LAB_000499e8:\n  term_update(param_1);" statement_identifier : (expression_statement "term_update(param_1);" (call_expression "term_update(param_1)" identifier (argument_list "(param_1)" ( identifier ))) ;)) (return_statement "return;" return ;) })))
(translation_unit (function_definition TYPE (function_declarator IDENT (parameter_list ( (parameter_declaration TYPE IDENT) , (parameter_declaration TYPE IDENT) ))) (compound_statement { (declaration TYPE IDENT ;) (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) ;) (if_statement if (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression IDENT != LIT) )) && (parenthesized_expression ( (comma_expression (assignment_expression IDENT = LIT) , (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) == IDENT)) ))) )) (compound_statement { (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) = LIT) ;) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) = (call_expression (parenthesized_expression ( IDENT )) (argument_list ( (binary_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 (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) == LIT) )) (compound_statement { (expression_statement (assignment_expression IDENT = LIT) ;) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) = LIT) ;) }) (else_clause else (compound_statement { (expression_statement (call_expression IDENT (argument_list ( ))) ;) (expression_statement (assignment_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 IDENT + LIT) )))) == LIT) )) || (parenthesized_expression ( (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) != IDENT) ))) )) (compound_statement { (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 IDENT + LIT) )))) == LIT) )) || (parenthesized_expression ( (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) != IDENT) ))) )) (compound_statement { (if_statement if (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression IDENT == LIT) )) && (parenthesized_expression ( (parenthesized_expression ( (binary_expression (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) == LIT) || (parenthesized_expression ( (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) != IDENT) ))) )) ))) )) (compound_statement { (return_statement return ;) })) (goto_statement goto statement_identifier ;) })) }) (else_clause else (compound_statement { (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) = LIT) ;) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) = (call_expression (parenthesized_expression ( IDENT )) (argument_list ( (binary_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 (parenthesized_expression ( (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) == LIT) )) || (parenthesized_expression ( (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) == LIT) ))) )) (compound_statement { (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) = LIT) ;) }) (else_clause else (compound_statement { (expression_statement (call_expression IDENT (argument_list ( IDENT ))) ;) }))) (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 IDENT + LIT) )))) == LIT) )) || (parenthesized_expression ( (binary_expression IDENT != (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) ))) )) (goto_statement goto statement_identifier ;)) }))) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) = LIT) ;) (labeled_statement statement_identifier : (expression_statement (call_expression IDENT (argument_list ( IDENT ))) ;)) (return_statement return ;) })))
(function_definition "void FUN_00049908(int param_1,int param_2)\n\n{\n  int iVar1;\n  \n  iVar1 = *(int *)(param_1 + 0x10a4);\n  if ((iVar1 != 0) && (iVar1 = 0, *(int *)(param_1 + 0x10ac) == param_2)) {\n    *(undefined4 *)(param_1 + 0x10a4) = 0;\n    *(uint *)(param_1 + 0xc0) = (uint)(*(int *)(param_1 + 0xc0) == 0);\n    if (*(int *)(param_1 + 0xc4) == 0) {\n      iVar1 = 1;\n      *(undefined4 *)(param_1 + 0xc0) = 1;\n    }\n    else {\n      FUN_000461c0();\n      iVar1 = 1;\n    }\n  }\n  if ((*(int *)(param_1 + 0x10a8) == 0) || (*(int *)(param_1 + 0x10b0) != param_2)) {\n    if ((*(int *)(param_1 + 0x138) == 0) || (*(int *)(param_1 + 0x13c) != param_2)) {\n      if ((iVar1 == 0) &&\n         ((*(int *)(param_1 + 0x109c) == 0 || (*(int *)(param_1 + 0x10a0) != param_2)))) {\n        return;\n      }\n      goto LAB_000499e8;\n    }\n  }\n  else {\n    *(undefined4 *)(param_1 + 0x10a8) = 0;\n    *(uint *)(param_1 + 0xbc) = (uint)(*(int *)(param_1 + 0xbc) == 0);\n    if ((*(int *)(param_1 + 0x1100) == 0) || (*(int *)(param_1 + 0x134) == 0)) {\n      *(undefined4 *)(param_1 + 0xbc) = 1;\n    }\n    else {\n      FUN_00046234(param_1);\n    }\n    if ((*(int *)(param_1 + 0x138) == 0) || (param_2 != *(int *)(param_1 + 0x13c)))\n    goto LAB_000499e8;\n  }\n  *(undefined4 *)(param_1 + 0x138) = 0;\nLAB_000499e8:\n  term_update(param_1);\n  return;\n}" (primitive_type "void") (function_declarator "FUN_00049908(int param_1,int param_2)" (identifier "FUN_00049908") (parameter_list "(int param_1,int param_2)" (( "(") (parameter_declaration "int param_1" (primitive_type "int") (identifier "param_1")) (, ",") (parameter_declaration "int param_2" (primitive_type "int") (identifier "param_2")) () ")"))) (compound_statement "{\n  int iVar1;\n  \n  iVar1 = *(int *)(param_1 + 0x10a4);\n  if ((iVar1 != 0) && (iVar1 = 0, *(int *)(param_1 + 0x10ac) == param_2)) {\n    *(undefined4 *)(param_1 + 0x10a4) = 0;\n    *(uint *)(param_1 + 0xc0) = (uint)(*(int *)(param_1 + 0xc0) == 0);\n    if (*(int *)(param_1 + 0xc4) == 0) {\n      iVar1 = 1;\n      *(undefined4 *)(param_1 + 0xc0) = 1;\n    }\n    else {\n      FUN_000461c0();\n      iVar1 = 1;\n    }\n  }\n  if ((*(int *)(param_1 + 0x10a8) == 0) || (*(int *)(param_1 + 0x10b0) != param_2)) {\n    if ((*(int *)(param_1 + 0x138) == 0) || (*(int *)(param_1 + 0x13c) != param_2)) {\n      if ((iVar1 == 0) &&\n         ((*(int *)(param_1 + 0x109c) == 0 || (*(int *)(param_1 + 0x10a0) != param_2)))) {\n        return;\n      }\n      goto LAB_000499e8;\n    }\n  }\n  else {\n    *(undefined4 *)(param_1 + 0x10a8) = 0;\n    *(uint *)(param_1 + 0xbc) = (uint)(*(int *)(param_1 + 0xbc) == 0);\n    if ((*(int *)(param_1 + 0x1100) == 0) || (*(int *)(param_1 + 0x134) == 0)) {\n      *(undefined4 *)(param_1 + 0xbc) = 1;\n    }\n    else {\n      FUN_00046234(param_1);\n    }\n    if ((*(int *)(param_1 + 0x138) == 0) || (param_2 != *(int *)(param_1 + 0x13c)))\n    goto LAB_000499e8;\n  }\n  *(undefined4 *)(param_1 + 0x138) = 0;\nLAB_000499e8:\n  term_update(param_1);\n  return;\n}" ({ "{") (declaration "int iVar1;" (primitive_type "int") (identifier "iVar1") (; ";")) (expression_statement "iVar1 = *(int *)(param_1 + 0x10a4);" (assignment_expression "iVar1 = *(int *)(param_1 + 0x10a4)" (identifier "iVar1") (= "=") (pointer_expression "*(int *)(param_1 + 0x10a4)" (* "*") (cast_expression "(int *)(param_1 + 0x10a4)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x10a4)" (( "(") (binary_expression "param_1 + 0x10a4" (identifier "param_1") (+ "+") (number_literal "0x10a4")) () ")"))))) (; ";")) (if_statement "if ((iVar1 != 0) && (iVar1 = 0, *(int *)(param_1 + 0x10ac) == param_2)) {\n    *(undefined4 *)(param_1 + 0x10a4) = 0;\n    *(uint *)(param_1 + 0xc0) = (uint)(*(int *)(param_1 + 0xc0) == 0);\n    if (*(int *)(param_1 + 0xc4) == 0) {\n      iVar1 = 1;\n      *(undefined4 *)(param_1 + 0xc0) = 1;\n    }\n    else {\n      FUN_000461c0();\n      iVar1 = 1;\n    }\n  }" (if "if") (parenthesized_expression "((iVar1 != 0) && (iVar1 = 0, *(int *)(param_1 + 0x10ac) == param_2))" (( "(") (binary_expression "(iVar1 != 0) && (iVar1 = 0, *(int *)(param_1 + 0x10ac) == param_2)" (parenthesized_expression "(iVar1 != 0)" (( "(") (binary_expression "iVar1 != 0" (identifier "iVar1") (!= "!=") (number_literal "0")) () ")")) (&& "&&") (parenthesized_expression "(iVar1 = 0, *(int *)(param_1 + 0x10ac) == param_2)" (( "(") (comma_expression "iVar1 = 0, *(int *)(param_1 + 0x10ac) == param_2" (assignment_expression "iVar1 = 0" (identifier "iVar1") (= "=") (number_literal "0")) (, ",") (binary_expression "*(int *)(param_1 + 0x10ac) == param_2" (pointer_expression "*(int *)(param_1 + 0x10ac)" (* "*") (cast_expression "(int *)(param_1 + 0x10ac)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x10ac)" (( "(") (binary_expression "param_1 + 0x10ac" (identifier "param_1") (+ "+") (number_literal "0x10ac")) () ")")))) (== "==") (identifier "param_2"))) () ")"))) () ")")) (compound_statement "{\n    *(undefined4 *)(param_1 + 0x10a4) = 0;\n    *(uint *)(param_1 + 0xc0) = (uint)(*(int *)(param_1 + 0xc0) == 0);\n    if (*(int *)(param_1 + 0xc4) == 0) {\n      iVar1 = 1;\n      *(undefined4 *)(param_1 + 0xc0) = 1;\n    }\n    else {\n      FUN_000461c0();\n      iVar1 = 1;\n    }\n  }" ({ "{") (expression_statement "*(undefined4 *)(param_1 + 0x10a4) = 0;" (assignment_expression "*(undefined4 *)(param_1 + 0x10a4) = 0" (pointer_expression "*(undefined4 *)(param_1 + 0x10a4)" (* "*") (cast_expression "(undefined4 *)(param_1 + 0x10a4)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x10a4)" (( "(") (binary_expression "param_1 + 0x10a4" (identifier "param_1") (+ "+") (number_literal "0x10a4")) () ")")))) (= "=") (number_literal "0")) (; ";")) (expression_statement "*(uint *)(param_1 + 0xc0) = (uint)(*(int *)(param_1 + 0xc0) == 0);" (assignment_expression "*(uint *)(param_1 + 0xc0) = (uint)(*(int *)(param_1 + 0xc0) == 0)" (pointer_expression "*(uint *)(param_1 + 0xc0)" (* "*") (cast_expression "(uint *)(param_1 + 0xc0)" (( "(") (type_descriptor "uint *" (type_identifier "uint") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0xc0)" (( "(") (binary_expression "param_1 + 0xc0" (identifier "param_1") (+ "+") (number_literal "0xc0")) () ")")))) (= "=") (call_expression "(uint)(*(int *)(param_1 + 0xc0) == 0)" (parenthesized_expression "(uint)" (( "(") (identifier "uint") () ")")) (argument_list "(*(int *)(param_1 + 0xc0) == 0)" (( "(") (binary_expression "*(int *)(param_1 + 0xc0) == 0" (pointer_expression "*(int *)(param_1 + 0xc0)" (* "*") (cast_expression "(int *)(param_1 + 0xc0)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0xc0)" (( "(") (binary_expression "param_1 + 0xc0" (identifier "param_1") (+ "+") (number_literal "0xc0")) () ")")))) (== "==") (number_literal "0")) () ")")))) (; ";")) (if_statement "if (*(int *)(param_1 + 0xc4) == 0) {\n      iVar1 = 1;\n      *(undefined4 *)(param_1 + 0xc0) = 1;\n    }\n    else {\n      FUN_000461c0();\n      iVar1 = 1;\n    }" (if "if") (parenthesized_expression "(*(int *)(param_1 + 0xc4) == 0)" (( "(") (binary_expression "*(int *)(param_1 + 0xc4) == 0" (pointer_expression "*(int *)(param_1 + 0xc4)" (* "*") (cast_expression "(int *)(param_1 + 0xc4)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0xc4)" (( "(") (binary_expression "param_1 + 0xc4" (identifier "param_1") (+ "+") (number_literal "0xc4")) () ")")))) (== "==") (number_literal "0")) () ")")) (compound_statement "{\n      iVar1 = 1;\n      *(undefined4 *)(param_1 + 0xc0) = 1;\n    }" ({ "{") (expression_statement "iVar1 = 1;" (assignment_expression "iVar1 = 1" (identifier "iVar1") (= "=") (number_literal "1")) (; ";")) (expression_statement "*(undefined4 *)(param_1 + 0xc0) = 1;" (assignment_expression "*(undefined4 *)(param_1 + 0xc0) = 1" (pointer_expression "*(undefined4 *)(param_1 + 0xc0)" (* "*") (cast_expression "(undefined4 *)(param_1 + 0xc0)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0xc0)" (( "(") (binary_expression "param_1 + 0xc0" (identifier "param_1") (+ "+") (number_literal "0xc0")) () ")")))) (= "=") (number_literal "1")) (; ";")) (} "}")) (else_clause "else {\n      FUN_000461c0();\n      iVar1 = 1;\n    }" (else "else") (compound_statement "{\n      FUN_000461c0();\n      iVar1 = 1;\n    }" ({ "{") (expression_statement "FUN_000461c0();" (call_expression "FUN_000461c0()" (identifier "FUN_000461c0") (argument_list "()" (( "(") () ")"))) (; ";")) (expression_statement "iVar1 = 1;" (assignment_expression "iVar1 = 1" (identifier "iVar1") (= "=") (number_literal "1")) (; ";")) (} "}")))) (} "}"))) (if_statement "if ((*(int *)(param_1 + 0x10a8) == 0) || (*(int *)(param_1 + 0x10b0) != param_2)) {\n    if ((*(int *)(param_1 + 0x138) == 0) || (*(int *)(param_1 + 0x13c) != param_2)) {\n      if ((iVar1 == 0) &&\n         ((*(int *)(param_1 + 0x109c) == 0 || (*(int *)(param_1 + 0x10a0) != param_2)))) {\n        return;\n      }\n      goto LAB_000499e8;\n    }\n  }\n  else {\n    *(undefined4 *)(param_1 + 0x10a8) = 0;\n    *(uint *)(param_1 + 0xbc) = (uint)(*(int *)(param_1 + 0xbc) == 0);\n    if ((*(int *)(param_1 + 0x1100) == 0) || (*(int *)(param_1 + 0x134) == 0)) {\n      *(undefined4 *)(param_1 + 0xbc) = 1;\n    }\n    else {\n      FUN_00046234(param_1);\n    }\n    if ((*(int *)(param_1 + 0x138) == 0) || (param_2 != *(int *)(param_1 + 0x13c)))\n    goto LAB_000499e8;\n  }" (if "if") (parenthesized_expression "((*(int *)(param_1 + 0x10a8) == 0) || (*(int *)(param_1 + 0x10b0) != param_2))" (( "(") (binary_expression "(*(int *)(param_1 + 0x10a8) == 0) || (*(int *)(param_1 + 0x10b0) != param_2)" (parenthesized_expression "(*(int *)(param_1 + 0x10a8) == 0)" (( "(") (binary_expression "*(int *)(param_1 + 0x10a8) == 0" (pointer_expression "*(int *)(param_1 + 0x10a8)" (* "*") (cast_expression "(int *)(param_1 + 0x10a8)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x10a8)" (( "(") (binary_expression "param_1 + 0x10a8" (identifier "param_1") (+ "+") (number_literal "0x10a8")) () ")")))) (== "==") (number_literal "0")) () ")")) (|| "||") (parenthesized_expression "(*(int *)(param_1 + 0x10b0) != param_2)" (( "(") (binary_expression "*(int *)(param_1 + 0x10b0) != param_2" (pointer_expression "*(int *)(param_1 + 0x10b0)" (* "*") (cast_expression "(int *)(param_1 + 0x10b0)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x10b0)" (( "(") (binary_expression "param_1 + 0x10b0" (identifier "param_1") (+ "+") (number_literal "0x10b0")) () ")")))) (!= "!=") (identifier "param_2")) () ")"))) () ")")) (compound_statement "{\n    if ((*(int *)(param_1 + 0x138) == 0) || (*(int *)(param_1 + 0x13c) != param_2)) {\n      if ((iVar1 == 0) &&\n         ((*(int *)(param_1 + 0x109c) == 0 || (*(int *)(param_1 + 0x10a0) != param_2)))) {\n        return;\n      }\n      goto LAB_000499e8;\n    }\n  }" ({ "{") (if_statement "if ((*(int *)(param_1 + 0x138) == 0) || (*(int *)(param_1 + 0x13c) != param_2)) {\n      if ((iVar1 == 0) &&\n         ((*(int *)(param_1 + 0x109c) == 0 || (*(int *)(param_1 + 0x10a0) != param_2)))) {\n        return;\n      }\n      goto LAB_000499e8;\n    }" (if "if") (parenthesized_expression "((*(int *)(param_1 + 0x138) == 0) || (*(int *)(param_1 + 0x13c) != param_2))" (( "(") (binary_expression "(*(int *)(param_1 + 0x138) == 0) || (*(int *)(param_1 + 0x13c) != param_2)" (parenthesized_expression "(*(int *)(param_1 + 0x138) == 0)" (( "(") (binary_expression "*(int *)(param_1 + 0x138) == 0" (pointer_expression "*(int *)(param_1 + 0x138)" (* "*") (cast_expression "(int *)(param_1 + 0x138)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x138)" (( "(") (binary_expression "param_1 + 0x138" (identifier "param_1") (+ "+") (number_literal "0x138")) () ")")))) (== "==") (number_literal "0")) () ")")) (|| "||") (parenthesized_expression "(*(int *)(param_1 + 0x13c) != param_2)" (( "(") (binary_expression "*(int *)(param_1 + 0x13c) != param_2" (pointer_expression "*(int *)(param_1 + 0x13c)" (* "*") (cast_expression "(int *)(param_1 + 0x13c)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x13c)" (( "(") (binary_expression "param_1 + 0x13c" (identifier "param_1") (+ "+") (number_literal "0x13c")) () ")")))) (!= "!=") (identifier "param_2")) () ")"))) () ")")) (compound_statement "{\n      if ((iVar1 == 0) &&\n         ((*(int *)(param_1 + 0x109c) == 0 || (*(int *)(param_1 + 0x10a0) != param_2)))) {\n        return;\n      }\n      goto LAB_000499e8;\n    }" ({ "{") (if_statement "if ((iVar1 == 0) &&\n         ((*(int *)(param_1 + 0x109c) == 0 || (*(int *)(param_1 + 0x10a0) != param_2)))) {\n        return;\n      }" (if "if") (parenthesized_expression "((iVar1 == 0) &&\n         ((*(int *)(param_1 + 0x109c) == 0 || (*(int *)(param_1 + 0x10a0) != param_2))))" (( "(") (binary_expression "(iVar1 == 0) &&\n         ((*(int *)(param_1 + 0x109c) == 0 || (*(int *)(param_1 + 0x10a0) != param_2)))" (parenthesized_expression "(iVar1 == 0)" (( "(") (binary_expression "iVar1 == 0" (identifier "iVar1") (== "==") (number_literal "0")) () ")")) (&& "&&") (parenthesized_expression "((*(int *)(param_1 + 0x109c) == 0 || (*(int *)(param_1 + 0x10a0) != param_2)))" (( "(") (parenthesized_expression "(*(int *)(param_1 + 0x109c) == 0 || (*(int *)(param_1 + 0x10a0) != param_2))" (( "(") (binary_expression "*(int *)(param_1 + 0x109c) == 0 || (*(int *)(param_1 + 0x10a0) != param_2)" (binary_expression "*(int *)(param_1 + 0x109c) == 0" (pointer_expression "*(int *)(param_1 + 0x109c)" (* "*") (cast_expression "(int *)(param_1 + 0x109c)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x109c)" (( "(") (binary_expression "param_1 + 0x109c" (identifier "param_1") (+ "+") (number_literal "0x109c")) () ")")))) (== "==") (number_literal "0")) (|| "||") (parenthesized_expression "(*(int *)(param_1 + 0x10a0) != param_2)" (( "(") (binary_expression "*(int *)(param_1 + 0x10a0) != param_2" (pointer_expression "*(int *)(param_1 + 0x10a0)" (* "*") (cast_expression "(int *)(param_1 + 0x10a0)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x10a0)" (( "(") (binary_expression "param_1 + 0x10a0" (identifier "param_1") (+ "+") (number_literal "0x10a0")) () ")")))) (!= "!=") (identifier "param_2")) () ")"))) () ")")) () ")"))) () ")")) (compound_statement "{\n        return;\n      }" ({ "{") (return_statement "return;" (return "return") (; ";")) (} "}"))) (goto_statement "goto LAB_000499e8;" (goto "goto") (statement_identifier "LAB_000499e8") (; ";")) (} "}"))) (} "}")) (else_clause "else {\n    *(undefined4 *)(param_1 + 0x10a8) = 0;\n    *(uint *)(param_1 + 0xbc) = (uint)(*(int *)(param_1 + 0xbc) == 0);\n    if ((*(int *)(param_1 + 0x1100) == 0) || (*(int *)(param_1 + 0x134) == 0)) {\n      *(undefined4 *)(param_1 + 0xbc) = 1;\n    }\n    else {\n      FUN_00046234(param_1);\n    }\n    if ((*(int *)(param_1 + 0x138) == 0) || (param_2 != *(int *)(param_1 + 0x13c)))\n    goto LAB_000499e8;\n  }" (else "else") (compound_statement "{\n    *(undefined4 *)(param_1 + 0x10a8) = 0;\n    *(uint *)(param_1 + 0xbc) = (uint)(*(int *)(param_1 + 0xbc) == 0);\n    if ((*(int *)(param_1 + 0x1100) == 0) || (*(int *)(param_1 + 0x134) == 0)) {\n      *(undefined4 *)(param_1 + 0xbc) = 1;\n    }\n    else {\n      FUN_00046234(param_1);\n    }\n    if ((*(int *)(param_1 + 0x138) == 0) || (param_2 != *(int *)(param_1 + 0x13c)))\n    goto LAB_000499e8;\n  }" ({ "{") (expression_statement "*(undefined4 *)(param_1 + 0x10a8) = 0;" (assignment_expression "*(undefined4 *)(param_1 + 0x10a8) = 0" (pointer_expression "*(undefined4 *)(param_1 + 0x10a8)" (* "*") (cast_expression "(undefined4 *)(param_1 + 0x10a8)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x10a8)" (( "(") (binary_expression "param_1 + 0x10a8" (identifier "param_1") (+ "+") (number_literal "0x10a8")) () ")")))) (= "=") (number_literal "0")) (; ";")) (expression_statement "*(uint *)(param_1 + 0xbc) = (uint)(*(int *)(param_1 + 0xbc) == 0);" (assignment_expression "*(uint *)(param_1 + 0xbc) = (uint)(*(int *)(param_1 + 0xbc) == 0)" (pointer_expression "*(uint *)(param_1 + 0xbc)" (* "*") (cast_expression "(uint *)(param_1 + 0xbc)" (( "(") (type_descriptor "uint *" (type_identifier "uint") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0xbc)" (( "(") (binary_expression "param_1 + 0xbc" (identifier "param_1") (+ "+") (number_literal "0xbc")) () ")")))) (= "=") (call_expression "(uint)(*(int *)(param_1 + 0xbc) == 0)" (parenthesized_expression "(uint)" (( "(") (identifier "uint") () ")")) (argument_list "(*(int *)(param_1 + 0xbc) == 0)" (( "(") (binary_expression "*(int *)(param_1 + 0xbc) == 0" (pointer_expression "*(int *)(param_1 + 0xbc)" (* "*") (cast_expression "(int *)(param_1 + 0xbc)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0xbc)" (( "(") (binary_expression "param_1 + 0xbc" (identifier "param_1") (+ "+") (number_literal "0xbc")) () ")")))) (== "==") (number_literal "0")) () ")")))) (; ";")) (if_statement "if ((*(int *)(param_1 + 0x1100) == 0) || (*(int *)(param_1 + 0x134) == 0)) {\n      *(undefined4 *)(param_1 + 0xbc) = 1;\n    }\n    else {\n      FUN_00046234(param_1);\n    }" (if "if") (parenthesized_expression "((*(int *)(param_1 + 0x1100) == 0) || (*(int *)(param_1 + 0x134) == 0))" (( "(") (binary_expression "(*(int *)(param_1 + 0x1100) == 0) || (*(int *)(param_1 + 0x134) == 0)" (parenthesized_expression "(*(int *)(param_1 + 0x1100) == 0)" (( "(") (binary_expression "*(int *)(param_1 + 0x1100) == 0" (pointer_expression "*(int *)(param_1 + 0x1100)" (* "*") (cast_expression "(int *)(param_1 + 0x1100)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x1100)" (( "(") (binary_expression "param_1 + 0x1100" (identifier "param_1") (+ "+") (number_literal "0x1100")) () ")")))) (== "==") (number_literal "0")) () ")")) (|| "||") (parenthesized_expression "(*(int *)(param_1 + 0x134) == 0)" (( "(") (binary_expression "*(int *)(param_1 + 0x134) == 0" (pointer_expression "*(int *)(param_1 + 0x134)" (* "*") (cast_expression "(int *)(param_1 + 0x134)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x134)" (( "(") (binary_expression "param_1 + 0x134" (identifier "param_1") (+ "+") (number_literal "0x134")) () ")")))) (== "==") (number_literal "0")) () ")"))) () ")")) (compound_statement "{\n      *(undefined4 *)(param_1 + 0xbc) = 1;\n    }" ({ "{") (expression_statement "*(undefined4 *)(param_1 + 0xbc) = 1;" (assignment_expression "*(undefined4 *)(param_1 + 0xbc) = 1" (pointer_expression "*(undefined4 *)(param_1 + 0xbc)" (* "*") (cast_expression "(undefined4 *)(param_1 + 0xbc)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0xbc)" (( "(") (binary_expression "param_1 + 0xbc" (identifier "param_1") (+ "+") (number_literal "0xbc")) () ")")))) (= "=") (number_literal "1")) (; ";")) (} "}")) (else_clause "else {\n      FUN_00046234(param_1);\n    }" (else "else") (compound_statement "{\n      FUN_00046234(param_1);\n    }" ({ "{") (expression_statement "FUN_00046234(param_1);" (call_expression "FUN_00046234(param_1)" (identifier "FUN_00046234") (argument_list "(param_1)" (( "(") (identifier "param_1") () ")"))) (; ";")) (} "}")))) (if_statement "if ((*(int *)(param_1 + 0x138) == 0) || (param_2 != *(int *)(param_1 + 0x13c)))\n    goto LAB_000499e8;" (if "if") (parenthesized_expression "((*(int *)(param_1 + 0x138) == 0) || (param_2 != *(int *)(param_1 + 0x13c)))" (( "(") (binary_expression "(*(int *)(param_1 + 0x138) == 0) || (param_2 != *(int *)(param_1 + 0x13c))" (parenthesized_expression "(*(int *)(param_1 + 0x138) == 0)" (( "(") (binary_expression "*(int *)(param_1 + 0x138) == 0" (pointer_expression "*(int *)(param_1 + 0x138)" (* "*") (cast_expression "(int *)(param_1 + 0x138)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x138)" (( "(") (binary_expression "param_1 + 0x138" (identifier "param_1") (+ "+") (number_literal "0x138")) () ")")))) (== "==") (number_literal "0")) () ")")) (|| "||") (parenthesized_expression "(param_2 != *(int *)(param_1 + 0x13c))" (( "(") (binary_expression "param_2 != *(int *)(param_1 + 0x13c)" (identifier "param_2") (!= "!=") (pointer_expression "*(int *)(param_1 + 0x13c)" (* "*") (cast_expression "(int *)(param_1 + 0x13c)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x13c)" (( "(") (binary_expression "param_1 + 0x13c" (identifier "param_1") (+ "+") (number_literal "0x13c")) () ")"))))) () ")"))) () ")")) (goto_statement "goto LAB_000499e8;" (goto "goto") (statement_identifier "LAB_000499e8") (; ";"))) (} "}")))) (expression_statement "*(undefined4 *)(param_1 + 0x138) = 0;" (assignment_expression "*(undefined4 *)(param_1 + 0x138) = 0" (pointer_expression "*(undefined4 *)(param_1 + 0x138)" (* "*") (cast_expression "(undefined4 *)(param_1 + 0x138)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x138)" (( "(") (binary_expression "param_1 + 0x138" (identifier "param_1") (+ "+") (number_literal "0x138")) () ")")))) (= "=") (number_literal "0")) (; ";")) (labeled_statement "LAB_000499e8:\n  term_update(param_1);" (statement_identifier "LAB_000499e8") (: ":") (expression_statement "term_update(param_1);" (call_expression "term_update(param_1)" (identifier "term_update") (argument_list "(param_1)" (( "(") (identifier "param_1") () ")"))) (; ";"))) (return_statement "return;" (return "return") (; ";")) (} "}")))

/* WARNING: Enum "anon_enum_32": Some values do not have unique names */

void function_1(void *ctx,type_1 var_2)

{
  int var_1;
  
  var_1 = *(int *)((int)ctx + 0x10a4);
  if ((var_1 != 0) && (var_1 = 0, *(type_1 *)((int)ctx + 0x10ac) == var_2)) {
    *(type_2 *)((int)ctx + 0x10a4) = 0;
    *(type_3 *)((int)ctx + 0xc0) = (type_3)(*(int *)((int)ctx + 0xc0) == 0);
    if (*(int *)((int)ctx + 0xc4) == 0) {
      var_1 = 1;
      *(type_2 *)((int)ctx + 0xc0) = 1;
    }
    else {
      var_3((type_4 *)ctx);
      var_1 = 1;
    }
  }
  if ((*(int *)((int)ctx + 0x10a8) == 0) || (*(type_1 *)((int)ctx + 0x10b0) != var_2)) {
    if ((*(int *)((int)ctx + 0x138) == 0) || (*(type_1 *)((int)ctx + 0x13c) != var_2)) {
      if ((var_1 == 0) &&
         ((*(int *)((int)ctx + 0x109c) == 0 || (*(type_1 *)((int)ctx + 0x10a0) != var_2)))) {
        return;
      }
      goto LAB_000499e8;
    }
  }
  else {
    *(type_2 *)((int)ctx + 0x10a8) = 0;
    *(type_3 *)((int)ctx + 0xbc) = (type_3)(*(int *)((int)ctx + 0xbc) == 0);
    if ((*(int *)((int)ctx + 0x1100) == 0) || (*(int *)((int)ctx + 0x134) == 0)) {
      *(type_2 *)((int)ctx + 0xbc) = 1;
    }
    else {
      var_4((type_4 *)ctx);
    }
    if ((*(int *)((int)ctx + 0x138) == 0) || (var_2 != *(type_1 *)((int)ctx + 0x13c)))
    goto LAB_000499e8;
  }
  *(type_2 *)((int)ctx + 0x138) = 0;
LAB_000499e8:
  var_5((type_4 *)ctx);
  return;
}


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

void MASKED(int param_1,int param_2)

{
  int iVar1;
  
  iVar1 = *(int *)(param_1 + 0x10a4);
  if ((iVar1 != 0) && (iVar1 = 0, *(int *)(param_1 + 0x10ac) == param_2)) {
    *(undefined4 *)(param_1 + 0x10a4) = 0;
    *(uint *)(param_1 + 0xc0) = (uint)(*(int *)(param_1 + 0xc0) == 0);
    if (*(int *)(param_1 + 0xc4) == 0) {
      iVar1 = 1;
      *(undefined4 *)(param_1 + 0xc0) = 1;
    }
    else {
      FUN_000461c0();
      iVar1 = 1;
    }
  }
  if ((*(int *)(param_1 + 0x10a8) == 0) || (*(int *)(param_1 + 0x10b0) != param_2)) {
    if ((*(int *)(param_1 + 0x138) == 0) || (*(int *)(param_1 + 0x13c) != param_2)) {
      if ((iVar1 == 0) &&
         ((*(int *)(param_1 + 0x109c) == 0 || (*(int *)(param_1 + 0x10a0) != param_2)))) {
        return;
      }
      goto LAB_000499e8;
    }
  }
  else {
    *(undefined4 *)(param_1 + 0x10a8) = 0;
    *(uint *)(param_1 + 0xbc) = (uint)(*(int *)(param_1 + 0xbc) == 0);
    if ((*(int *)(param_1 + 0x1100) == 0) || (*(int *)(param_1 + 0x134) == 0)) {
      *(undefined4 *)(param_1 + 0xbc) = 1;
    }
    else {
      FUN_00046234(param_1);
    }
    if ((*(int *)(param_1 + 0x138) == 0) || (param_2 != *(int *)(param_1 + 0x13c)))
    goto LAB_000499e8;
  }
  *(undefined4 *)(param_1 + 0x138) = 0;
LAB_000499e8:
  term_update(param_1);
  return;
}

