
void * MHD_pool_allocate(MemoryPool *pool,size_t size,int from_end)

{
  uint uVar1;
  uint uVar2;
  uint uVar3;
  uint uVar4;
  
  uVar2 = size + 7 & 0xfffffff8;
  if (uVar2 == 0) {
    if (size != 0) {
      return (void *)0x0;
    }
    uVar3 = pool->pos;
    uVar1 = pool->end;
    uVar4 = uVar3;
    if (uVar1 < uVar3) {
      return (void *)0x0;
    }
  }
  else {
    uVar3 = pool->pos;
    uVar4 = uVar3 + uVar2;
    uVar1 = pool->end;
    if (uVar1 < uVar4) {
      return (void *)0x0;
    }
    if (uVar4 < uVar3) {
      return (void *)0x0;
    }
  }
  if (from_end == 1) {
    pool->end = uVar1 - uVar2;
    return pool->memory + (uVar1 - uVar2);
  }
  pool->pos = uVar4;
  return pool->memory + uVar3;
}



int FUN_00023448(int *param_1,int param_2,int param_3)

{
  uint uVar1;
  uint uVar2;
  uint uVar3;
  uint uVar4;
  
  uVar2 = param_2 + 7U & 0xfffffff8;
  if (uVar2 == 0) {
    if (param_2 != 0) {
      return 0;
    }
    uVar3 = param_1[2];
    uVar1 = param_1[3];
    uVar4 = uVar3;
    if (uVar1 < uVar3) {
      return 0;
    }
  }
  else {
    uVar3 = param_1[2];
    uVar4 = uVar3 + uVar2;
    uVar1 = param_1[3];
    if (uVar1 < uVar4) {
      return 0;
    }
    if (uVar4 < uVar3) {
      return 0;
    }
  }
  if (param_3 == 1) {
    param_1[3] = uVar1 - uVar2;
    return *param_1 + (uVar1 - uVar2);
  }
  param_1[2] = uVar4;
  return *param_1 + uVar3;
}


addiu v1,a1,0x7
li v0,-0x8
and v1,v1,v0
bne v1,zero,0x00023494
_nop
bne a1,zero,0x000234d0
_nop
lw a1,0x8(a0)
lw v0,0xc(a0)
sltu a3,v0,a1
bne a3,zero,0x000234e0
_or a3,a1,zero
li t0,0x1
beq a2,t0,0x000234bc
_nop
lw v0,0x0(a0)
addu v0,v0,a1
jr ra
_sw a3,0x8(a0)
lw a1,0x8(a0)
addu a3,a1,v1
lw v0,0xc(a0)
sltu t0,v0,a3
bne t0,zero,0x000234d8
_sltu t0,a3,a1
beq t0,zero,0x0002347c
_li t0,0x1
jr ra
_or v0,zero,zero
subu v1,v0,v1
lw v0,0x0(a0)
addu v0,v0,v1
jr ra
_sw v1,0xc(a0)
jr ra
_or v0,zero,zero
jr ra
_or v0,zero,zero
jr ra
_or v0,zero,zero
(translation_unit "int FUN_00023448(int *param_1,int param_2,int param_3)\n\n{\n  uint uVar1;\n  uint uVar2;\n  uint uVar3;\n  uint uVar4;\n  \n  uVar2 = param_2 + 7U & 0xfffffff8;\n  if (uVar2 == 0) {\n    if (param_2 != 0) {\n      return 0;\n    }\n    uVar3 = param_1[2];\n    uVar1 = param_1[3];\n    uVar4 = uVar3;\n    if (uVar1 < uVar3) {\n      return 0;\n    }\n  }\n  else {\n    uVar3 = param_1[2];\n    uVar4 = uVar3 + uVar2;\n    uVar1 = param_1[3];\n    if (uVar1 < uVar4) {\n      return 0;\n    }\n    if (uVar4 < uVar3) {\n      return 0;\n    }\n  }\n  if (param_3 == 1) {\n    param_1[3] = uVar1 - uVar2;\n    return *param_1 + (uVar1 - uVar2);\n  }\n  param_1[2] = uVar4;\n  return *param_1 + uVar3;\n}\n\n" (function_definition "int FUN_00023448(int *param_1,int param_2,int param_3)\n\n{\n  uint uVar1;\n  uint uVar2;\n  uint uVar3;\n  uint uVar4;\n  \n  uVar2 = param_2 + 7U & 0xfffffff8;\n  if (uVar2 == 0) {\n    if (param_2 != 0) {\n      return 0;\n    }\n    uVar3 = param_1[2];\n    uVar1 = param_1[3];\n    uVar4 = uVar3;\n    if (uVar1 < uVar3) {\n      return 0;\n    }\n  }\n  else {\n    uVar3 = param_1[2];\n    uVar4 = uVar3 + uVar2;\n    uVar1 = param_1[3];\n    if (uVar1 < uVar4) {\n      return 0;\n    }\n    if (uVar4 < uVar3) {\n      return 0;\n    }\n  }\n  if (param_3 == 1) {\n    param_1[3] = uVar1 - uVar2;\n    return *param_1 + (uVar1 - uVar2);\n  }\n  param_1[2] = uVar4;\n  return *param_1 + uVar3;\n}" primitive_type (function_declarator "FUN_00023448(int *param_1,int param_2,int param_3)" identifier (parameter_list "(int *param_1,int param_2,int param_3)" ( (parameter_declaration "int *param_1" primitive_type (pointer_declarator "*param_1" * identifier)) , (parameter_declaration "int param_2" primitive_type identifier) , (parameter_declaration "int param_3" primitive_type identifier) ))) (compound_statement "{\n  uint uVar1;\n  uint uVar2;\n  uint uVar3;\n  uint uVar4;\n  \n  uVar2 = param_2 + 7U & 0xfffffff8;\n  if (uVar2 == 0) {\n    if (param_2 != 0) {\n      return 0;\n    }\n    uVar3 = param_1[2];\n    uVar1 = param_1[3];\n    uVar4 = uVar3;\n    if (uVar1 < uVar3) {\n      return 0;\n    }\n  }\n  else {\n    uVar3 = param_1[2];\n    uVar4 = uVar3 + uVar2;\n    uVar1 = param_1[3];\n    if (uVar1 < uVar4) {\n      return 0;\n    }\n    if (uVar4 < uVar3) {\n      return 0;\n    }\n  }\n  if (param_3 == 1) {\n    param_1[3] = uVar1 - uVar2;\n    return *param_1 + (uVar1 - uVar2);\n  }\n  param_1[2] = uVar4;\n  return *param_1 + uVar3;\n}" { (declaration "uint uVar1;" type_identifier identifier ;) (declaration "uint uVar2;" type_identifier identifier ;) (declaration "uint uVar3;" type_identifier identifier ;) (declaration "uint uVar4;" type_identifier identifier ;) (expression_statement "uVar2 = param_2 + 7U & 0xfffffff8;" (assignment_expression "uVar2 = param_2 + 7U & 0xfffffff8" identifier = (binary_expression "param_2 + 7U & 0xfffffff8" (binary_expression "param_2 + 7U" identifier + number_literal) & number_literal)) ;) (if_statement "if (uVar2 == 0) {\n    if (param_2 != 0) {\n      return 0;\n    }\n    uVar3 = param_1[2];\n    uVar1 = param_1[3];\n    uVar4 = uVar3;\n    if (uVar1 < uVar3) {\n      return 0;\n    }\n  }\n  else {\n    uVar3 = param_1[2];\n    uVar4 = uVar3 + uVar2;\n    uVar1 = param_1[3];\n    if (uVar1 < uVar4) {\n      return 0;\n    }\n    if (uVar4 < uVar3) {\n      return 0;\n    }\n  }" if (parenthesized_expression "(uVar2 == 0)" ( (binary_expression "uVar2 == 0" identifier == number_literal) )) (compound_statement "{\n    if (param_2 != 0) {\n      return 0;\n    }\n    uVar3 = param_1[2];\n    uVar1 = param_1[3];\n    uVar4 = uVar3;\n    if (uVar1 < uVar3) {\n      return 0;\n    }\n  }" { (if_statement "if (param_2 != 0) {\n      return 0;\n    }" if (parenthesized_expression "(param_2 != 0)" ( (binary_expression "param_2 != 0" identifier != number_literal) )) (compound_statement "{\n      return 0;\n    }" { (return_statement "return 0;" return number_literal ;) })) (expression_statement "uVar3 = param_1[2];" (assignment_expression "uVar3 = param_1[2]" identifier = (subscript_expression "param_1[2]" identifier [ number_literal ])) ;) (expression_statement "uVar1 = param_1[3];" (assignment_expression "uVar1 = param_1[3]" identifier = (subscript_expression "param_1[3]" identifier [ number_literal ])) ;) (expression_statement "uVar4 = uVar3;" (assignment_expression "uVar4 = uVar3" identifier = identifier) ;) (if_statement "if (uVar1 < uVar3) {\n      return 0;\n    }" if (parenthesized_expression "(uVar1 < uVar3)" ( (binary_expression "uVar1 < uVar3" identifier < identifier) )) (compound_statement "{\n      return 0;\n    }" { (return_statement "return 0;" return number_literal ;) })) }) (else_clause "else {\n    uVar3 = param_1[2];\n    uVar4 = uVar3 + uVar2;\n    uVar1 = param_1[3];\n    if (uVar1 < uVar4) {\n      return 0;\n    }\n    if (uVar4 < uVar3) {\n      return 0;\n    }\n  }" else (compound_statement "{\n    uVar3 = param_1[2];\n    uVar4 = uVar3 + uVar2;\n    uVar1 = param_1[3];\n    if (uVar1 < uVar4) {\n      return 0;\n    }\n    if (uVar4 < uVar3) {\n      return 0;\n    }\n  }" { (expression_statement "uVar3 = param_1[2];" (assignment_expression "uVar3 = param_1[2]" identifier = (subscript_expression "param_1[2]" identifier [ number_literal ])) ;) (expression_statement "uVar4 = uVar3 + uVar2;" (assignment_expression "uVar4 = uVar3 + uVar2" identifier = (binary_expression "uVar3 + uVar2" identifier + identifier)) ;) (expression_statement "uVar1 = param_1[3];" (assignment_expression "uVar1 = param_1[3]" identifier = (subscript_expression "param_1[3]" identifier [ number_literal ])) ;) (if_statement "if (uVar1 < uVar4) {\n      return 0;\n    }" if (parenthesized_expression "(uVar1 < uVar4)" ( (binary_expression "uVar1 < uVar4" identifier < identifier) )) (compound_statement "{\n      return 0;\n    }" { (return_statement "return 0;" return number_literal ;) })) (if_statement "if (uVar4 < uVar3) {\n      return 0;\n    }" if (parenthesized_expression "(uVar4 < uVar3)" ( (binary_expression "uVar4 < uVar3" identifier < identifier) )) (compound_statement "{\n      return 0;\n    }" { (return_statement "return 0;" return number_literal ;) })) }))) (if_statement "if (param_3 == 1) {\n    param_1[3] = uVar1 - uVar2;\n    return *param_1 + (uVar1 - uVar2);\n  }" if (parenthesized_expression "(param_3 == 1)" ( (binary_expression "param_3 == 1" identifier == number_literal) )) (compound_statement "{\n    param_1[3] = uVar1 - uVar2;\n    return *param_1 + (uVar1 - uVar2);\n  }" { (expression_statement "param_1[3] = uVar1 - uVar2;" (assignment_expression "param_1[3] = uVar1 - uVar2" (subscript_expression "param_1[3]" identifier [ number_literal ]) = (binary_expression "uVar1 - uVar2" identifier - identifier)) ;) (return_statement "return *param_1 + (uVar1 - uVar2);" return (binary_expression "*param_1 + (uVar1 - uVar2)" (pointer_expression "*param_1" * identifier) + (parenthesized_expression "(uVar1 - uVar2)" ( (binary_expression "uVar1 - uVar2" identifier - identifier) ))) ;) })) (expression_statement "param_1[2] = uVar4;" (assignment_expression "param_1[2] = uVar4" (subscript_expression "param_1[2]" identifier [ number_literal ]) = identifier) ;) (return_statement "return *param_1 + uVar3;" return (binary_expression "*param_1 + uVar3" (pointer_expression "*param_1" * identifier) + identifier) ;) })))
(translation_unit "void * MHD_pool_allocate(MemoryPool *pool,size_t size,int from_end)\n\n{\n  uint uVar1;\n  uint uVar2;\n  uint uVar3;\n  uint uVar4;\n  \n  uVar2 = size + 7 & 0xfffffff8;\n  if (uVar2 == 0) {\n    if (size != 0) {\n      return (void *)0x0;\n    }\n    uVar3 = pool->pos;\n    uVar1 = pool->end;\n    uVar4 = uVar3;\n    if (uVar1 < uVar3) {\n      return (void *)0x0;\n    }\n  }\n  else {\n    uVar3 = pool->pos;\n    uVar4 = uVar3 + uVar2;\n    uVar1 = pool->end;\n    if (uVar1 < uVar4) {\n      return (void *)0x0;\n    }\n    if (uVar4 < uVar3) {\n      return (void *)0x0;\n    }\n  }\n  if (from_end == 1) {\n    pool->end = uVar1 - uVar2;\n    return pool->memory + (uVar1 - uVar2);\n  }\n  pool->pos = uVar4;\n  return pool->memory + uVar3;\n}\n\n" (function_definition "void * MHD_pool_allocate(MemoryPool *pool,size_t size,int from_end)\n\n{\n  uint uVar1;\n  uint uVar2;\n  uint uVar3;\n  uint uVar4;\n  \n  uVar2 = size + 7 & 0xfffffff8;\n  if (uVar2 == 0) {\n    if (size != 0) {\n      return (void *)0x0;\n    }\n    uVar3 = pool->pos;\n    uVar1 = pool->end;\n    uVar4 = uVar3;\n    if (uVar1 < uVar3) {\n      return (void *)0x0;\n    }\n  }\n  else {\n    uVar3 = pool->pos;\n    uVar4 = uVar3 + uVar2;\n    uVar1 = pool->end;\n    if (uVar1 < uVar4) {\n      return (void *)0x0;\n    }\n    if (uVar4 < uVar3) {\n      return (void *)0x0;\n    }\n  }\n  if (from_end == 1) {\n    pool->end = uVar1 - uVar2;\n    return pool->memory + (uVar1 - uVar2);\n  }\n  pool->pos = uVar4;\n  return pool->memory + uVar3;\n}" primitive_type (pointer_declarator "* MHD_pool_allocate(MemoryPool *pool,size_t size,int from_end)" * (function_declarator "MHD_pool_allocate(MemoryPool *pool,size_t size,int from_end)" identifier (parameter_list "(MemoryPool *pool,size_t size,int from_end)" ( (parameter_declaration "MemoryPool *pool" type_identifier (pointer_declarator "*pool" * identifier)) , (parameter_declaration "size_t size" primitive_type identifier) , (parameter_declaration "int from_end" primitive_type identifier) )))) (compound_statement "{\n  uint uVar1;\n  uint uVar2;\n  uint uVar3;\n  uint uVar4;\n  \n  uVar2 = size + 7 & 0xfffffff8;\n  if (uVar2 == 0) {\n    if (size != 0) {\n      return (void *)0x0;\n    }\n    uVar3 = pool->pos;\n    uVar1 = pool->end;\n    uVar4 = uVar3;\n    if (uVar1 < uVar3) {\n      return (void *)0x0;\n    }\n  }\n  else {\n    uVar3 = pool->pos;\n    uVar4 = uVar3 + uVar2;\n    uVar1 = pool->end;\n    if (uVar1 < uVar4) {\n      return (void *)0x0;\n    }\n    if (uVar4 < uVar3) {\n      return (void *)0x0;\n    }\n  }\n  if (from_end == 1) {\n    pool->end = uVar1 - uVar2;\n    return pool->memory + (uVar1 - uVar2);\n  }\n  pool->pos = uVar4;\n  return pool->memory + uVar3;\n}" { (declaration "uint uVar1;" type_identifier identifier ;) (declaration "uint uVar2;" type_identifier identifier ;) (declaration "uint uVar3;" type_identifier identifier ;) (declaration "uint uVar4;" type_identifier identifier ;) (expression_statement "uVar2 = size + 7 & 0xfffffff8;" (assignment_expression "uVar2 = size + 7 & 0xfffffff8" identifier = (binary_expression "size + 7 & 0xfffffff8" (binary_expression "size + 7" identifier + number_literal) & number_literal)) ;) (if_statement "if (uVar2 == 0) {\n    if (size != 0) {\n      return (void *)0x0;\n    }\n    uVar3 = pool->pos;\n    uVar1 = pool->end;\n    uVar4 = uVar3;\n    if (uVar1 < uVar3) {\n      return (void *)0x0;\n    }\n  }\n  else {\n    uVar3 = pool->pos;\n    uVar4 = uVar3 + uVar2;\n    uVar1 = pool->end;\n    if (uVar1 < uVar4) {\n      return (void *)0x0;\n    }\n    if (uVar4 < uVar3) {\n      return (void *)0x0;\n    }\n  }" if (parenthesized_expression "(uVar2 == 0)" ( (binary_expression "uVar2 == 0" identifier == number_literal) )) (compound_statement "{\n    if (size != 0) {\n      return (void *)0x0;\n    }\n    uVar3 = pool->pos;\n    uVar1 = pool->end;\n    uVar4 = uVar3;\n    if (uVar1 < uVar3) {\n      return (void *)0x0;\n    }\n  }" { (if_statement "if (size != 0) {\n      return (void *)0x0;\n    }" if (parenthesized_expression "(size != 0)" ( (binary_expression "size != 0" identifier != number_literal) )) (compound_statement "{\n      return (void *)0x0;\n    }" { (return_statement "return (void *)0x0;" return (cast_expression "(void *)0x0" ( (type_descriptor "void *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal) ;) })) (expression_statement "uVar3 = pool->pos;" (assignment_expression "uVar3 = pool->pos" identifier = (field_expression "pool->pos" identifier -> field_identifier)) ;) (expression_statement "uVar1 = pool->end;" (assignment_expression "uVar1 = pool->end" identifier = (field_expression "pool->end" identifier -> field_identifier)) ;) (expression_statement "uVar4 = uVar3;" (assignment_expression "uVar4 = uVar3" identifier = identifier) ;) (if_statement "if (uVar1 < uVar3) {\n      return (void *)0x0;\n    }" if (parenthesized_expression "(uVar1 < uVar3)" ( (binary_expression "uVar1 < uVar3" identifier < identifier) )) (compound_statement "{\n      return (void *)0x0;\n    }" { (return_statement "return (void *)0x0;" return (cast_expression "(void *)0x0" ( (type_descriptor "void *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal) ;) })) }) (else_clause "else {\n    uVar3 = pool->pos;\n    uVar4 = uVar3 + uVar2;\n    uVar1 = pool->end;\n    if (uVar1 < uVar4) {\n      return (void *)0x0;\n    }\n    if (uVar4 < uVar3) {\n      return (void *)0x0;\n    }\n  }" else (compound_statement "{\n    uVar3 = pool->pos;\n    uVar4 = uVar3 + uVar2;\n    uVar1 = pool->end;\n    if (uVar1 < uVar4) {\n      return (void *)0x0;\n    }\n    if (uVar4 < uVar3) {\n      return (void *)0x0;\n    }\n  }" { (expression_statement "uVar3 = pool->pos;" (assignment_expression "uVar3 = pool->pos" identifier = (field_expression "pool->pos" identifier -> field_identifier)) ;) (expression_statement "uVar4 = uVar3 + uVar2;" (assignment_expression "uVar4 = uVar3 + uVar2" identifier = (binary_expression "uVar3 + uVar2" identifier + identifier)) ;) (expression_statement "uVar1 = pool->end;" (assignment_expression "uVar1 = pool->end" identifier = (field_expression "pool->end" identifier -> field_identifier)) ;) (if_statement "if (uVar1 < uVar4) {\n      return (void *)0x0;\n    }" if (parenthesized_expression "(uVar1 < uVar4)" ( (binary_expression "uVar1 < uVar4" identifier < identifier) )) (compound_statement "{\n      return (void *)0x0;\n    }" { (return_statement "return (void *)0x0;" return (cast_expression "(void *)0x0" ( (type_descriptor "void *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal) ;) })) (if_statement "if (uVar4 < uVar3) {\n      return (void *)0x0;\n    }" if (parenthesized_expression "(uVar4 < uVar3)" ( (binary_expression "uVar4 < uVar3" identifier < identifier) )) (compound_statement "{\n      return (void *)0x0;\n    }" { (return_statement "return (void *)0x0;" return (cast_expression "(void *)0x0" ( (type_descriptor "void *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal) ;) })) }))) (if_statement "if (from_end == 1) {\n    pool->end = uVar1 - uVar2;\n    return pool->memory + (uVar1 - uVar2);\n  }" if (parenthesized_expression "(from_end == 1)" ( (binary_expression "from_end == 1" identifier == number_literal) )) (compound_statement "{\n    pool->end = uVar1 - uVar2;\n    return pool->memory + (uVar1 - uVar2);\n  }" { (expression_statement "pool->end = uVar1 - uVar2;" (assignment_expression "pool->end = uVar1 - uVar2" (field_expression "pool->end" identifier -> field_identifier) = (binary_expression "uVar1 - uVar2" identifier - identifier)) ;) (return_statement "return pool->memory + (uVar1 - uVar2);" return (binary_expression "pool->memory + (uVar1 - uVar2)" (field_expression "pool->memory" identifier -> field_identifier) + (parenthesized_expression "(uVar1 - uVar2)" ( (binary_expression "uVar1 - uVar2" identifier - identifier) ))) ;) })) (expression_statement "pool->pos = uVar4;" (assignment_expression "pool->pos = uVar4" (field_expression "pool->pos" identifier -> field_identifier) = identifier) ;) (return_statement "return pool->memory + uVar3;" return (binary_expression "pool->memory + uVar3" (field_expression "pool->memory" identifier -> field_identifier) + identifier) ;) })))
(translation_unit "int FUN_00023448(int *param_1,int param_2,int param_3)\n\n{\n  uint uVar1;\n  uint uVar2;\n  uint uVar3;\n  uint uVar4;\n  \n  uVar2 = param_2 + 7U & 0xfffffff8;\n  if (uVar2 == 0) {\n    if (param_2 != 0) {\n      return 0;\n    }\n    uVar3 = param_1[2];\n    uVar1 = param_1[3];\n    uVar4 = uVar3;\n    if (uVar1 < uVar3) {\n      return 0;\n    }\n  }\n  else {\n    uVar3 = param_1[2];\n    uVar4 = uVar3 + uVar2;\n    uVar1 = param_1[3];\n    if (uVar1 < uVar4) {\n      return 0;\n    }\n    if (uVar4 < uVar3) {\n      return 0;\n    }\n  }\n  if (param_3 == 1) {\n    param_1[3] = uVar1 - uVar2;\n    return *param_1 + (uVar1 - uVar2);\n  }\n  param_1[2] = uVar4;\n  return *param_1 + uVar3;\n}\n\n" (function_definition "int FUN_00023448(int *param_1,int param_2,int param_3)\n\n{\n  uint uVar1;\n  uint uVar2;\n  uint uVar3;\n  uint uVar4;\n  \n  uVar2 = param_2 + 7U & 0xfffffff8;\n  if (uVar2 == 0) {\n    if (param_2 != 0) {\n      return 0;\n    }\n    uVar3 = param_1[2];\n    uVar1 = param_1[3];\n    uVar4 = uVar3;\n    if (uVar1 < uVar3) {\n      return 0;\n    }\n  }\n  else {\n    uVar3 = param_1[2];\n    uVar4 = uVar3 + uVar2;\n    uVar1 = param_1[3];\n    if (uVar1 < uVar4) {\n      return 0;\n    }\n    if (uVar4 < uVar3) {\n      return 0;\n    }\n  }\n  if (param_3 == 1) {\n    param_1[3] = uVar1 - uVar2;\n    return *param_1 + (uVar1 - uVar2);\n  }\n  param_1[2] = uVar4;\n  return *param_1 + uVar3;\n}" primitive_type (function_declarator "FUN_00023448(int *param_1,int param_2,int param_3)" identifier (parameter_list "(int *param_1,int param_2,int param_3)" ( (parameter_declaration "int *param_1" primitive_type (pointer_declarator "*param_1" * identifier)) , (parameter_declaration "int param_2" primitive_type identifier) , (parameter_declaration "int param_3" primitive_type identifier) ))) (compound_statement "{\n  uint uVar1;\n  uint uVar2;\n  uint uVar3;\n  uint uVar4;\n  \n  uVar2 = param_2 + 7U & 0xfffffff8;\n  if (uVar2 == 0) {\n    if (param_2 != 0) {\n      return 0;\n    }\n    uVar3 = param_1[2];\n    uVar1 = param_1[3];\n    uVar4 = uVar3;\n    if (uVar1 < uVar3) {\n      return 0;\n    }\n  }\n  else {\n    uVar3 = param_1[2];\n    uVar4 = uVar3 + uVar2;\n    uVar1 = param_1[3];\n    if (uVar1 < uVar4) {\n      return 0;\n    }\n    if (uVar4 < uVar3) {\n      return 0;\n    }\n  }\n  if (param_3 == 1) {\n    param_1[3] = uVar1 - uVar2;\n    return *param_1 + (uVar1 - uVar2);\n  }\n  param_1[2] = uVar4;\n  return *param_1 + uVar3;\n}" { (declaration "uint uVar1;" type_identifier identifier ;) (declaration "uint uVar2;" type_identifier identifier ;) (declaration "uint uVar3;" type_identifier identifier ;) (declaration "uint uVar4;" type_identifier identifier ;) (expression_statement "uVar2 = param_2 + 7U & 0xfffffff8;" (assignment_expression "uVar2 = param_2 + 7U & 0xfffffff8" identifier = (binary_expression "param_2 + 7U & 0xfffffff8" (binary_expression "param_2 + 7U" identifier + number_literal) & number_literal)) ;) (if_statement "if (uVar2 == 0) {\n    if (param_2 != 0) {\n      return 0;\n    }\n    uVar3 = param_1[2];\n    uVar1 = param_1[3];\n    uVar4 = uVar3;\n    if (uVar1 < uVar3) {\n      return 0;\n    }\n  }\n  else {\n    uVar3 = param_1[2];\n    uVar4 = uVar3 + uVar2;\n    uVar1 = param_1[3];\n    if (uVar1 < uVar4) {\n      return 0;\n    }\n    if (uVar4 < uVar3) {\n      return 0;\n    }\n  }" if (parenthesized_expression "(uVar2 == 0)" ( (binary_expression "uVar2 == 0" identifier == number_literal) )) (compound_statement "{\n    if (param_2 != 0) {\n      return 0;\n    }\n    uVar3 = param_1[2];\n    uVar1 = param_1[3];\n    uVar4 = uVar3;\n    if (uVar1 < uVar3) {\n      return 0;\n    }\n  }" { (if_statement "if (param_2 != 0) {\n      return 0;\n    }" if (parenthesized_expression "(param_2 != 0)" ( (binary_expression "param_2 != 0" identifier != number_literal) )) (compound_statement "{\n      return 0;\n    }" { (return_statement "return 0;" return number_literal ;) })) (expression_statement "uVar3 = param_1[2];" (assignment_expression "uVar3 = param_1[2]" identifier = (subscript_expression "param_1[2]" identifier [ number_literal ])) ;) (expression_statement "uVar1 = param_1[3];" (assignment_expression "uVar1 = param_1[3]" identifier = (subscript_expression "param_1[3]" identifier [ number_literal ])) ;) (expression_statement "uVar4 = uVar3;" (assignment_expression "uVar4 = uVar3" identifier = identifier) ;) (if_statement "if (uVar1 < uVar3) {\n      return 0;\n    }" if (parenthesized_expression "(uVar1 < uVar3)" ( (binary_expression "uVar1 < uVar3" identifier < identifier) )) (compound_statement "{\n      return 0;\n    }" { (return_statement "return 0;" return number_literal ;) })) }) (else_clause "else {\n    uVar3 = param_1[2];\n    uVar4 = uVar3 + uVar2;\n    uVar1 = param_1[3];\n    if (uVar1 < uVar4) {\n      return 0;\n    }\n    if (uVar4 < uVar3) {\n      return 0;\n    }\n  }" else (compound_statement "{\n    uVar3 = param_1[2];\n    uVar4 = uVar3 + uVar2;\n    uVar1 = param_1[3];\n    if (uVar1 < uVar4) {\n      return 0;\n    }\n    if (uVar4 < uVar3) {\n      return 0;\n    }\n  }" { (expression_statement "uVar3 = param_1[2];" (assignment_expression "uVar3 = param_1[2]" identifier = (subscript_expression "param_1[2]" identifier [ number_literal ])) ;) (expression_statement "uVar4 = uVar3 + uVar2;" (assignment_expression "uVar4 = uVar3 + uVar2" identifier = (binary_expression "uVar3 + uVar2" identifier + identifier)) ;) (expression_statement "uVar1 = param_1[3];" (assignment_expression "uVar1 = param_1[3]" identifier = (subscript_expression "param_1[3]" identifier [ number_literal ])) ;) (if_statement "if (uVar1 < uVar4) {\n      return 0;\n    }" if (parenthesized_expression "(uVar1 < uVar4)" ( (binary_expression "uVar1 < uVar4" identifier < identifier) )) (compound_statement "{\n      return 0;\n    }" { (return_statement "return 0;" return number_literal ;) })) (if_statement "if (uVar4 < uVar3) {\n      return 0;\n    }" if (parenthesized_expression "(uVar4 < uVar3)" ( (binary_expression "uVar4 < uVar3" identifier < identifier) )) (compound_statement "{\n      return 0;\n    }" { (return_statement "return 0;" return number_literal ;) })) }))) (if_statement "if (param_3 == 1) {\n    param_1[3] = uVar1 - uVar2;\n    return *param_1 + (uVar1 - uVar2);\n  }" if (parenthesized_expression "(param_3 == 1)" ( (binary_expression "param_3 == 1" identifier == number_literal) )) (compound_statement "{\n    param_1[3] = uVar1 - uVar2;\n    return *param_1 + (uVar1 - uVar2);\n  }" { (expression_statement "param_1[3] = uVar1 - uVar2;" (assignment_expression "param_1[3] = uVar1 - uVar2" (subscript_expression "param_1[3]" identifier [ number_literal ]) = (binary_expression "uVar1 - uVar2" identifier - identifier)) ;) (return_statement "return *param_1 + (uVar1 - uVar2);" return (binary_expression "*param_1 + (uVar1 - uVar2)" (pointer_expression "*param_1" * identifier) + (parenthesized_expression "(uVar1 - uVar2)" ( (binary_expression "uVar1 - uVar2" identifier - identifier) ))) ;) })) (expression_statement "param_1[2] = uVar4;" (assignment_expression "param_1[2] = uVar4" (subscript_expression "param_1[2]" identifier [ number_literal ]) = identifier) ;) (return_statement "return *param_1 + uVar3;" return (binary_expression "*param_1 + uVar3" (pointer_expression "*param_1" * identifier) + identifier) ;) })))
(translation_unit (function_definition TYPE (function_declarator IDENT (parameter_list ( (parameter_declaration TYPE (pointer_declarator * IDENT)) , (parameter_declaration TYPE IDENT) , (parameter_declaration TYPE IDENT) ))) (compound_statement { (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (expression_statement (assignment_expression IDENT = (binary_expression (binary_expression IDENT + LIT) & LIT)) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT == LIT) )) (compound_statement { (if_statement if (parenthesized_expression ( (binary_expression IDENT != LIT) )) (compound_statement { (return_statement return LIT ;) })) (expression_statement (assignment_expression IDENT = (subscript_expression IDENT [ LIT ])) ;) (expression_statement (assignment_expression IDENT = (subscript_expression IDENT [ LIT ])) ;) (expression_statement (assignment_expression IDENT = IDENT) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT < IDENT) )) (compound_statement { (return_statement return LIT ;) })) }) (else_clause else (compound_statement { (expression_statement (assignment_expression IDENT = (subscript_expression IDENT [ LIT ])) ;) (expression_statement (assignment_expression IDENT = (binary_expression IDENT + IDENT)) ;) (expression_statement (assignment_expression IDENT = (subscript_expression IDENT [ LIT ])) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT < IDENT) )) (compound_statement { (return_statement return LIT ;) })) (if_statement if (parenthesized_expression ( (binary_expression IDENT < IDENT) )) (compound_statement { (return_statement return LIT ;) })) }))) (if_statement if (parenthesized_expression ( (binary_expression IDENT == LIT) )) (compound_statement { (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = (binary_expression IDENT - IDENT)) ;) (return_statement return (binary_expression (pointer_expression * IDENT) + (parenthesized_expression ( (binary_expression IDENT - IDENT) ))) ;) })) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = IDENT) ;) (return_statement return (binary_expression (pointer_expression * IDENT) + IDENT) ;) })))
(function_definition "int FUN_00023448(int *param_1,int param_2,int param_3)\n\n{\n  uint uVar1;\n  uint uVar2;\n  uint uVar3;\n  uint uVar4;\n  \n  uVar2 = param_2 + 7U & 0xfffffff8;\n  if (uVar2 == 0) {\n    if (param_2 != 0) {\n      return 0;\n    }\n    uVar3 = param_1[2];\n    uVar1 = param_1[3];\n    uVar4 = uVar3;\n    if (uVar1 < uVar3) {\n      return 0;\n    }\n  }\n  else {\n    uVar3 = param_1[2];\n    uVar4 = uVar3 + uVar2;\n    uVar1 = param_1[3];\n    if (uVar1 < uVar4) {\n      return 0;\n    }\n    if (uVar4 < uVar3) {\n      return 0;\n    }\n  }\n  if (param_3 == 1) {\n    param_1[3] = uVar1 - uVar2;\n    return *param_1 + (uVar1 - uVar2);\n  }\n  param_1[2] = uVar4;\n  return *param_1 + uVar3;\n}" (primitive_type "int") (function_declarator "FUN_00023448(int *param_1,int param_2,int param_3)" (identifier "FUN_00023448") (parameter_list "(int *param_1,int param_2,int param_3)" (( "(") (parameter_declaration "int *param_1" (primitive_type "int") (pointer_declarator "*param_1" (* "*") (identifier "param_1"))) (, ",") (parameter_declaration "int param_2" (primitive_type "int") (identifier "param_2")) (, ",") (parameter_declaration "int param_3" (primitive_type "int") (identifier "param_3")) () ")"))) (compound_statement "{\n  uint uVar1;\n  uint uVar2;\n  uint uVar3;\n  uint uVar4;\n  \n  uVar2 = param_2 + 7U & 0xfffffff8;\n  if (uVar2 == 0) {\n    if (param_2 != 0) {\n      return 0;\n    }\n    uVar3 = param_1[2];\n    uVar1 = param_1[3];\n    uVar4 = uVar3;\n    if (uVar1 < uVar3) {\n      return 0;\n    }\n  }\n  else {\n    uVar3 = param_1[2];\n    uVar4 = uVar3 + uVar2;\n    uVar1 = param_1[3];\n    if (uVar1 < uVar4) {\n      return 0;\n    }\n    if (uVar4 < uVar3) {\n      return 0;\n    }\n  }\n  if (param_3 == 1) {\n    param_1[3] = uVar1 - uVar2;\n    return *param_1 + (uVar1 - uVar2);\n  }\n  param_1[2] = uVar4;\n  return *param_1 + uVar3;\n}" ({ "{") (declaration "uint uVar1;" (type_identifier "uint") (identifier "uVar1") (; ";")) (declaration "uint uVar2;" (type_identifier "uint") (identifier "uVar2") (; ";")) (declaration "uint uVar3;" (type_identifier "uint") (identifier "uVar3") (; ";")) (declaration "uint uVar4;" (type_identifier "uint") (identifier "uVar4") (; ";")) (expression_statement "uVar2 = param_2 + 7U & 0xfffffff8;" (assignment_expression "uVar2 = param_2 + 7U & 0xfffffff8" (identifier "uVar2") (= "=") (binary_expression "param_2 + 7U & 0xfffffff8" (binary_expression "param_2 + 7U" (identifier "param_2") (+ "+") (number_literal "7U")) (& "&") (number_literal "0xfffffff8"))) (; ";")) (if_statement "if (uVar2 == 0) {\n    if (param_2 != 0) {\n      return 0;\n    }\n    uVar3 = param_1[2];\n    uVar1 = param_1[3];\n    uVar4 = uVar3;\n    if (uVar1 < uVar3) {\n      return 0;\n    }\n  }\n  else {\n    uVar3 = param_1[2];\n    uVar4 = uVar3 + uVar2;\n    uVar1 = param_1[3];\n    if (uVar1 < uVar4) {\n      return 0;\n    }\n    if (uVar4 < uVar3) {\n      return 0;\n    }\n  }" (if "if") (parenthesized_expression "(uVar2 == 0)" (( "(") (binary_expression "uVar2 == 0" (identifier "uVar2") (== "==") (number_literal "0")) () ")")) (compound_statement "{\n    if (param_2 != 0) {\n      return 0;\n    }\n    uVar3 = param_1[2];\n    uVar1 = param_1[3];\n    uVar4 = uVar3;\n    if (uVar1 < uVar3) {\n      return 0;\n    }\n  }" ({ "{") (if_statement "if (param_2 != 0) {\n      return 0;\n    }" (if "if") (parenthesized_expression "(param_2 != 0)" (( "(") (binary_expression "param_2 != 0" (identifier "param_2") (!= "!=") (number_literal "0")) () ")")) (compound_statement "{\n      return 0;\n    }" ({ "{") (return_statement "return 0;" (return "return") (number_literal "0") (; ";")) (} "}"))) (expression_statement "uVar3 = param_1[2];" (assignment_expression "uVar3 = param_1[2]" (identifier "uVar3") (= "=") (subscript_expression "param_1[2]" (identifier "param_1") ([ "[") (number_literal "2") (] "]"))) (; ";")) (expression_statement "uVar1 = param_1[3];" (assignment_expression "uVar1 = param_1[3]" (identifier "uVar1") (= "=") (subscript_expression "param_1[3]" (identifier "param_1") ([ "[") (number_literal "3") (] "]"))) (; ";")) (expression_statement "uVar4 = uVar3;" (assignment_expression "uVar4 = uVar3" (identifier "uVar4") (= "=") (identifier "uVar3")) (; ";")) (if_statement "if (uVar1 < uVar3) {\n      return 0;\n    }" (if "if") (parenthesized_expression "(uVar1 < uVar3)" (( "(") (binary_expression "uVar1 < uVar3" (identifier "uVar1") (< "<") (identifier "uVar3")) () ")")) (compound_statement "{\n      return 0;\n    }" ({ "{") (return_statement "return 0;" (return "return") (number_literal "0") (; ";")) (} "}"))) (} "}")) (else_clause "else {\n    uVar3 = param_1[2];\n    uVar4 = uVar3 + uVar2;\n    uVar1 = param_1[3];\n    if (uVar1 < uVar4) {\n      return 0;\n    }\n    if (uVar4 < uVar3) {\n      return 0;\n    }\n  }" (else "else") (compound_statement "{\n    uVar3 = param_1[2];\n    uVar4 = uVar3 + uVar2;\n    uVar1 = param_1[3];\n    if (uVar1 < uVar4) {\n      return 0;\n    }\n    if (uVar4 < uVar3) {\n      return 0;\n    }\n  }" ({ "{") (expression_statement "uVar3 = param_1[2];" (assignment_expression "uVar3 = param_1[2]" (identifier "uVar3") (= "=") (subscript_expression "param_1[2]" (identifier "param_1") ([ "[") (number_literal "2") (] "]"))) (; ";")) (expression_statement "uVar4 = uVar3 + uVar2;" (assignment_expression "uVar4 = uVar3 + uVar2" (identifier "uVar4") (= "=") (binary_expression "uVar3 + uVar2" (identifier "uVar3") (+ "+") (identifier "uVar2"))) (; ";")) (expression_statement "uVar1 = param_1[3];" (assignment_expression "uVar1 = param_1[3]" (identifier "uVar1") (= "=") (subscript_expression "param_1[3]" (identifier "param_1") ([ "[") (number_literal "3") (] "]"))) (; ";")) (if_statement "if (uVar1 < uVar4) {\n      return 0;\n    }" (if "if") (parenthesized_expression "(uVar1 < uVar4)" (( "(") (binary_expression "uVar1 < uVar4" (identifier "uVar1") (< "<") (identifier "uVar4")) () ")")) (compound_statement "{\n      return 0;\n    }" ({ "{") (return_statement "return 0;" (return "return") (number_literal "0") (; ";")) (} "}"))) (if_statement "if (uVar4 < uVar3) {\n      return 0;\n    }" (if "if") (parenthesized_expression "(uVar4 < uVar3)" (( "(") (binary_expression "uVar4 < uVar3" (identifier "uVar4") (< "<") (identifier "uVar3")) () ")")) (compound_statement "{\n      return 0;\n    }" ({ "{") (return_statement "return 0;" (return "return") (number_literal "0") (; ";")) (} "}"))) (} "}")))) (if_statement "if (param_3 == 1) {\n    param_1[3] = uVar1 - uVar2;\n    return *param_1 + (uVar1 - uVar2);\n  }" (if "if") (parenthesized_expression "(param_3 == 1)" (( "(") (binary_expression "param_3 == 1" (identifier "param_3") (== "==") (number_literal "1")) () ")")) (compound_statement "{\n    param_1[3] = uVar1 - uVar2;\n    return *param_1 + (uVar1 - uVar2);\n  }" ({ "{") (expression_statement "param_1[3] = uVar1 - uVar2;" (assignment_expression "param_1[3] = uVar1 - uVar2" (subscript_expression "param_1[3]" (identifier "param_1") ([ "[") (number_literal "3") (] "]")) (= "=") (binary_expression "uVar1 - uVar2" (identifier "uVar1") (- "-") (identifier "uVar2"))) (; ";")) (return_statement "return *param_1 + (uVar1 - uVar2);" (return "return") (binary_expression "*param_1 + (uVar1 - uVar2)" (pointer_expression "*param_1" (* "*") (identifier "param_1")) (+ "+") (parenthesized_expression "(uVar1 - uVar2)" (( "(") (binary_expression "uVar1 - uVar2" (identifier "uVar1") (- "-") (identifier "uVar2")) () ")"))) (; ";")) (} "}"))) (expression_statement "param_1[2] = uVar4;" (assignment_expression "param_1[2] = uVar4" (subscript_expression "param_1[2]" (identifier "param_1") ([ "[") (number_literal "2") (] "]")) (= "=") (identifier "uVar4")) (; ";")) (return_statement "return *param_1 + uVar3;" (return "return") (binary_expression "*param_1 + uVar3" (pointer_expression "*param_1" (* "*") (identifier "param_1")) (+ "+") (identifier "uVar3")) (; ";")) (} "}")))
(translation_unit (function_definition type: (primitive_type) declarator: (function_declarator declarator: (identifier) parameters: (parameter_list (parameter_declaration type: (primitive_type) declarator: (pointer_declarator declarator: (identifier))) (parameter_declaration type: (primitive_type) declarator: (identifier)) (parameter_declaration type: (primitive_type) declarator: (identifier)))) body: (compound_statement (declaration type: (type_identifier) declarator: (identifier)) (declaration type: (type_identifier) declarator: (identifier)) (declaration type: (type_identifier) declarator: (identifier)) (declaration type: (type_identifier) declarator: (identifier)) (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (binary_expression left: (identifier) right: (number_literal)) right: (number_literal)))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))) consequence: (compound_statement (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))) consequence: (compound_statement (return_statement (number_literal)))) (expression_statement (assignment_expression left: (identifier) right: (subscript_expression argument: (identifier) index: (number_literal)))) (expression_statement (assignment_expression left: (identifier) right: (subscript_expression argument: (identifier) index: (number_literal)))) (expression_statement (assignment_expression left: (identifier) right: (identifier))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (identifier))) consequence: (compound_statement (return_statement (number_literal))))) alternative: (else_clause (compound_statement (expression_statement (assignment_expression left: (identifier) right: (subscript_expression argument: (identifier) index: (number_literal)))) (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (identifier) right: (identifier)))) (expression_statement (assignment_expression left: (identifier) right: (subscript_expression argument: (identifier) index: (number_literal)))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (identifier))) consequence: (compound_statement (return_statement (number_literal)))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (identifier))) consequence: (compound_statement (return_statement (number_literal))))))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))) consequence: (compound_statement (expression_statement (assignment_expression left: (subscript_expression argument: (identifier) index: (number_literal)) right: (binary_expression left: (identifier) right: (identifier)))) (return_statement (binary_expression left: (pointer_expression argument: (identifier)) right: (parenthesized_expression (binary_expression left: (identifier) right: (identifier))))))) (expression_statement (assignment_expression left: (subscript_expression argument: (identifier) index: (number_literal)) right: (identifier))) (return_statement (binary_expression left: (pointer_expression argument: (identifier)) right: (identifier))))))

int MASKED(int *param_1,int param_2,int param_3)

{
  uint uVar1;
  uint uVar2;
  uint uVar3;
  uint uVar4;
  
  uVar2 = param_2 + 7U & 0xfffffff8;
  if (uVar2 == 0) {
    if (param_2 != 0) {
      return 0;
    }
    uVar3 = param_1[2];
    uVar1 = param_1[3];
    uVar4 = uVar3;
    if (uVar1 < uVar3) {
      return 0;
    }
  }
  else {
    uVar3 = param_1[2];
    uVar4 = uVar3 + uVar2;
    uVar1 = param_1[3];
    if (uVar1 < uVar4) {
      return 0;
    }
    if (uVar4 < uVar3) {
      return 0;
    }
  }
  if (param_3 == 1) {
    param_1[3] = uVar1 - uVar2;
    return *param_1 + (uVar1 - uVar2);
  }
  param_1[2] = uVar4;
  return *param_1 + uVar3;
}

