
/* WARNING: Unknown calling convention */

void frag_align_code(int alignment,int max)

{
  size_t max_chars;
  char *pcVar1;
  
  max_chars = (1 << ((byte)alignment & 0x1f)) - 1;
  if (alignment == 0) {
    max_chars = 1;
  }
  pcVar1 = frag_var(rs_align_code,max_chars,1,max,(symbolS *)0x0,alignment,(char *)0x0);
  *pcVar1 = -0x70;
  return;
}



void FUN_00023ac0(int param_1,undefined4 param_2)

{
  int iVar1;
  undefined1 *puVar2;
  
  iVar1 = (1 << ((byte)param_1 & 0x1f)) + -1;
  if (param_1 == 0) {
    iVar1 = 1;
  }
  puVar2 = (undefined1 *)FUN_00023910(3,iVar1,1,param_2,0,param_1,0);
  *puVar2 = 0x90;
  return;
}


SUB ESP,0x10
MOV EAX,0x1
MOV EDX,0x1
MOV ECX,dword ptr [ESP + 0x14]
PUSH 0x0
SHL EAX,CL
PUSH ECX
SUB EAX,0x1
TEST ECX,ECX
PUSH 0x0
CMOVZ EAX,EDX
PUSH dword ptr [ESP + 0x24]
PUSH 0x1
PUSH EAX
PUSH 0x3
CALL 0x00023910
MOV byte ptr [EAX],0x90
ADD ESP,0x2c
RET
(translation_unit "void FUN_00023ac0(int param_1,undefined4 param_2)\n\n{\n  int iVar1;\n  undefined1 *puVar2;\n  \n  iVar1 = (1 << ((byte)param_1 & 0x1f)) + -1;\n  if (param_1 == 0) {\n    iVar1 = 1;\n  }\n  puVar2 = (undefined1 *)FUN_00023910(3,iVar1,1,param_2,0,param_1,0);\n  *puVar2 = 0x90;\n  return;\n}\n\n" (function_definition "void FUN_00023ac0(int param_1,undefined4 param_2)\n\n{\n  int iVar1;\n  undefined1 *puVar2;\n  \n  iVar1 = (1 << ((byte)param_1 & 0x1f)) + -1;\n  if (param_1 == 0) {\n    iVar1 = 1;\n  }\n  puVar2 = (undefined1 *)FUN_00023910(3,iVar1,1,param_2,0,param_1,0);\n  *puVar2 = 0x90;\n  return;\n}" primitive_type (function_declarator "FUN_00023ac0(int param_1,undefined4 param_2)" identifier (parameter_list "(int param_1,undefined4 param_2)" ( (parameter_declaration "int param_1" primitive_type identifier) , (parameter_declaration "undefined4 param_2" type_identifier identifier) ))) (compound_statement "{\n  int iVar1;\n  undefined1 *puVar2;\n  \n  iVar1 = (1 << ((byte)param_1 & 0x1f)) + -1;\n  if (param_1 == 0) {\n    iVar1 = 1;\n  }\n  puVar2 = (undefined1 *)FUN_00023910(3,iVar1,1,param_2,0,param_1,0);\n  *puVar2 = 0x90;\n  return;\n}" { (declaration "int iVar1;" primitive_type identifier ;) (declaration "undefined1 *puVar2;" type_identifier (pointer_declarator "*puVar2" * identifier) ;) (expression_statement "iVar1 = (1 << ((byte)param_1 & 0x1f)) + -1;" (assignment_expression "iVar1 = (1 << ((byte)param_1 & 0x1f)) + -1" identifier = (binary_expression "(1 << ((byte)param_1 & 0x1f)) + -1" (parenthesized_expression "(1 << ((byte)param_1 & 0x1f))" ( (binary_expression "1 << ((byte)param_1 & 0x1f)" number_literal << (parenthesized_expression "((byte)param_1 & 0x1f)" ( (binary_expression "(byte)param_1 & 0x1f" (cast_expression "(byte)param_1" ( (type_descriptor "byte" type_identifier) ) identifier) & number_literal) ))) )) + number_literal)) ;) (if_statement "if (param_1 == 0) {\n    iVar1 = 1;\n  }" if (parenthesized_expression "(param_1 == 0)" ( (binary_expression "param_1 == 0" identifier == number_literal) )) (compound_statement "{\n    iVar1 = 1;\n  }" { (expression_statement "iVar1 = 1;" (assignment_expression "iVar1 = 1" identifier = number_literal) ;) })) (expression_statement "puVar2 = (undefined1 *)FUN_00023910(3,iVar1,1,param_2,0,param_1,0);" (assignment_expression "puVar2 = (undefined1 *)FUN_00023910(3,iVar1,1,param_2,0,param_1,0)" identifier = (cast_expression "(undefined1 *)FUN_00023910(3,iVar1,1,param_2,0,param_1,0)" ( (type_descriptor "undefined1 *" type_identifier (abstract_pointer_declarator "*" *)) ) (call_expression "FUN_00023910(3,iVar1,1,param_2,0,param_1,0)" identifier (argument_list "(3,iVar1,1,param_2,0,param_1,0)" ( number_literal , identifier , number_literal , identifier , number_literal , identifier , number_literal ))))) ;) (expression_statement "*puVar2 = 0x90;" (assignment_expression "*puVar2 = 0x90" (pointer_expression "*puVar2" * identifier) = number_literal) ;) (return_statement "return;" return ;) })))
(translation_unit "/* WARNING: Unknown calling convention */\n\nvoid frag_align_code(int alignment,int max)\n\n{\n  size_t max_chars;\n  char *pcVar1;\n  \n  max_chars = (1 << ((byte)alignment & 0x1f)) - 1;\n  if (alignment == 0) {\n    max_chars = 1;\n  }\n  pcVar1 = frag_var(rs_align_code,max_chars,1,max,(symbolS *)0x0,alignment,(char *)0x0);\n  *pcVar1 = -0x70;\n  return;\n}\n\n" comment (function_definition "void frag_align_code(int alignment,int max)\n\n{\n  size_t max_chars;\n  char *pcVar1;\n  \n  max_chars = (1 << ((byte)alignment & 0x1f)) - 1;\n  if (alignment == 0) {\n    max_chars = 1;\n  }\n  pcVar1 = frag_var(rs_align_code,max_chars,1,max,(symbolS *)0x0,alignment,(char *)0x0);\n  *pcVar1 = -0x70;\n  return;\n}" primitive_type (function_declarator "frag_align_code(int alignment,int max)" identifier (parameter_list "(int alignment,int max)" ( (parameter_declaration "int alignment" primitive_type identifier) , (parameter_declaration "int max" primitive_type identifier) ))) (compound_statement "{\n  size_t max_chars;\n  char *pcVar1;\n  \n  max_chars = (1 << ((byte)alignment & 0x1f)) - 1;\n  if (alignment == 0) {\n    max_chars = 1;\n  }\n  pcVar1 = frag_var(rs_align_code,max_chars,1,max,(symbolS *)0x0,alignment,(char *)0x0);\n  *pcVar1 = -0x70;\n  return;\n}" { (declaration "size_t max_chars;" primitive_type identifier ;) (declaration "char *pcVar1;" primitive_type (pointer_declarator "*pcVar1" * identifier) ;) (expression_statement "max_chars = (1 << ((byte)alignment & 0x1f)) - 1;" (assignment_expression "max_chars = (1 << ((byte)alignment & 0x1f)) - 1" identifier = (binary_expression "(1 << ((byte)alignment & 0x1f)) - 1" (parenthesized_expression "(1 << ((byte)alignment & 0x1f))" ( (binary_expression "1 << ((byte)alignment & 0x1f)" number_literal << (parenthesized_expression "((byte)alignment & 0x1f)" ( (binary_expression "(byte)alignment & 0x1f" (cast_expression "(byte)alignment" ( (type_descriptor "byte" type_identifier) ) identifier) & number_literal) ))) )) - number_literal)) ;) (if_statement "if (alignment == 0) {\n    max_chars = 1;\n  }" if (parenthesized_expression "(alignment == 0)" ( (binary_expression "alignment == 0" identifier == number_literal) )) (compound_statement "{\n    max_chars = 1;\n  }" { (expression_statement "max_chars = 1;" (assignment_expression "max_chars = 1" identifier = number_literal) ;) })) (expression_statement "pcVar1 = frag_var(rs_align_code,max_chars,1,max,(symbolS *)0x0,alignment,(char *)0x0);" (assignment_expression "pcVar1 = frag_var(rs_align_code,max_chars,1,max,(symbolS *)0x0,alignment,(char *)0x0)" identifier = (call_expression "frag_var(rs_align_code,max_chars,1,max,(symbolS *)0x0,alignment,(char *)0x0)" identifier (argument_list "(rs_align_code,max_chars,1,max,(symbolS *)0x0,alignment,(char *)0x0)" ( identifier , identifier , number_literal , identifier , (cast_expression "(symbolS *)0x0" ( (type_descriptor "symbolS *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal) , identifier , (cast_expression "(char *)0x0" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal) )))) ;) (expression_statement "*pcVar1 = -0x70;" (assignment_expression "*pcVar1 = -0x70" (pointer_expression "*pcVar1" * identifier) = number_literal) ;) (return_statement "return;" return ;) })))
(translation_unit "void FUN_00023ac0(int param_1,undefined4 param_2)\n\n{\n  int iVar1;\n  undefined1 *puVar2;\n  \n  iVar1 = (1 << ((byte)param_1 & 0x1f)) + -1;\n  if (param_1 == 0) {\n    iVar1 = 1;\n  }\n  puVar2 = (undefined1 *)FUN_00023910(3,iVar1,1,param_2,0,param_1,0);\n  *puVar2 = 0x90;\n  return;\n}\n\n" (function_definition "void FUN_00023ac0(int param_1,undefined4 param_2)\n\n{\n  int iVar1;\n  undefined1 *puVar2;\n  \n  iVar1 = (1 << ((byte)param_1 & 0x1f)) + -1;\n  if (param_1 == 0) {\n    iVar1 = 1;\n  }\n  puVar2 = (undefined1 *)FUN_00023910(3,iVar1,1,param_2,0,param_1,0);\n  *puVar2 = 0x90;\n  return;\n}" primitive_type (function_declarator "FUN_00023ac0(int param_1,undefined4 param_2)" identifier (parameter_list "(int param_1,undefined4 param_2)" ( (parameter_declaration "int param_1" primitive_type identifier) , (parameter_declaration "undefined4 param_2" type_identifier identifier) ))) (compound_statement "{\n  int iVar1;\n  undefined1 *puVar2;\n  \n  iVar1 = (1 << ((byte)param_1 & 0x1f)) + -1;\n  if (param_1 == 0) {\n    iVar1 = 1;\n  }\n  puVar2 = (undefined1 *)FUN_00023910(3,iVar1,1,param_2,0,param_1,0);\n  *puVar2 = 0x90;\n  return;\n}" { (declaration "int iVar1;" primitive_type identifier ;) (declaration "undefined1 *puVar2;" type_identifier (pointer_declarator "*puVar2" * identifier) ;) (expression_statement "iVar1 = (1 << ((byte)param_1 & 0x1f)) + -1;" (assignment_expression "iVar1 = (1 << ((byte)param_1 & 0x1f)) + -1" identifier = (binary_expression "(1 << ((byte)param_1 & 0x1f)) + -1" (parenthesized_expression "(1 << ((byte)param_1 & 0x1f))" ( (binary_expression "1 << ((byte)param_1 & 0x1f)" number_literal << (parenthesized_expression "((byte)param_1 & 0x1f)" ( (binary_expression "(byte)param_1 & 0x1f" (cast_expression "(byte)param_1" ( (type_descriptor "byte" type_identifier) ) identifier) & number_literal) ))) )) + number_literal)) ;) (if_statement "if (param_1 == 0) {\n    iVar1 = 1;\n  }" if (parenthesized_expression "(param_1 == 0)" ( (binary_expression "param_1 == 0" identifier == number_literal) )) (compound_statement "{\n    iVar1 = 1;\n  }" { (expression_statement "iVar1 = 1;" (assignment_expression "iVar1 = 1" identifier = number_literal) ;) })) (expression_statement "puVar2 = (undefined1 *)FUN_00023910(3,iVar1,1,param_2,0,param_1,0);" (assignment_expression "puVar2 = (undefined1 *)FUN_00023910(3,iVar1,1,param_2,0,param_1,0)" identifier = (cast_expression "(undefined1 *)FUN_00023910(3,iVar1,1,param_2,0,param_1,0)" ( (type_descriptor "undefined1 *" type_identifier (abstract_pointer_declarator "*" *)) ) (call_expression "FUN_00023910(3,iVar1,1,param_2,0,param_1,0)" identifier (argument_list "(3,iVar1,1,param_2,0,param_1,0)" ( number_literal , identifier , number_literal , identifier , number_literal , identifier , number_literal ))))) ;) (expression_statement "*puVar2 = 0x90;" (assignment_expression "*puVar2 = 0x90" (pointer_expression "*puVar2" * identifier) = number_literal) ;) (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 ;) (declaration TYPE (pointer_declarator * IDENT) ;) (expression_statement (assignment_expression IDENT = (binary_expression (parenthesized_expression ( (binary_expression LIT << (parenthesized_expression ( (binary_expression (cast_expression ( (type_descriptor TYPE) ) IDENT) & LIT) ))) )) + LIT)) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT == LIT) )) (compound_statement { (expression_statement (assignment_expression IDENT = LIT) ;) })) (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (call_expression IDENT (argument_list ( LIT , IDENT , LIT , IDENT , LIT , IDENT , LIT ))))) ;) (expression_statement (assignment_expression (pointer_expression * IDENT) = LIT) ;) (return_statement return ;) })))
(function_definition "void FUN_00023ac0(int param_1,undefined4 param_2)\n\n{\n  int iVar1;\n  undefined1 *puVar2;\n  \n  iVar1 = (1 << ((byte)param_1 & 0x1f)) + -1;\n  if (param_1 == 0) {\n    iVar1 = 1;\n  }\n  puVar2 = (undefined1 *)FUN_00023910(3,iVar1,1,param_2,0,param_1,0);\n  *puVar2 = 0x90;\n  return;\n}" (primitive_type "void") (function_declarator "FUN_00023ac0(int param_1,undefined4 param_2)" (identifier "FUN_00023ac0") (parameter_list "(int param_1,undefined4 param_2)" (( "(") (parameter_declaration "int param_1" (primitive_type "int") (identifier "param_1")) (, ",") (parameter_declaration "undefined4 param_2" (type_identifier "undefined4") (identifier "param_2")) () ")"))) (compound_statement "{\n  int iVar1;\n  undefined1 *puVar2;\n  \n  iVar1 = (1 << ((byte)param_1 & 0x1f)) + -1;\n  if (param_1 == 0) {\n    iVar1 = 1;\n  }\n  puVar2 = (undefined1 *)FUN_00023910(3,iVar1,1,param_2,0,param_1,0);\n  *puVar2 = 0x90;\n  return;\n}" ({ "{") (declaration "int iVar1;" (primitive_type "int") (identifier "iVar1") (; ";")) (declaration "undefined1 *puVar2;" (type_identifier "undefined1") (pointer_declarator "*puVar2" (* "*") (identifier "puVar2")) (; ";")) (expression_statement "iVar1 = (1 << ((byte)param_1 & 0x1f)) + -1;" (assignment_expression "iVar1 = (1 << ((byte)param_1 & 0x1f)) + -1" (identifier "iVar1") (= "=") (binary_expression "(1 << ((byte)param_1 & 0x1f)) + -1" (parenthesized_expression "(1 << ((byte)param_1 & 0x1f))" (( "(") (binary_expression "1 << ((byte)param_1 & 0x1f)" (number_literal "1") (<< "<<") (parenthesized_expression "((byte)param_1 & 0x1f)" (( "(") (binary_expression "(byte)param_1 & 0x1f" (cast_expression "(byte)param_1" (( "(") (type_descriptor "byte" (type_identifier "byte")) () ")") (identifier "param_1")) (& "&") (number_literal "0x1f")) () ")"))) () ")")) (+ "+") (number_literal "-1"))) (; ";")) (if_statement "if (param_1 == 0) {\n    iVar1 = 1;\n  }" (if "if") (parenthesized_expression "(param_1 == 0)" (( "(") (binary_expression "param_1 == 0" (identifier "param_1") (== "==") (number_literal "0")) () ")")) (compound_statement "{\n    iVar1 = 1;\n  }" ({ "{") (expression_statement "iVar1 = 1;" (assignment_expression "iVar1 = 1" (identifier "iVar1") (= "=") (number_literal "1")) (; ";")) (} "}"))) (expression_statement "puVar2 = (undefined1 *)FUN_00023910(3,iVar1,1,param_2,0,param_1,0);" (assignment_expression "puVar2 = (undefined1 *)FUN_00023910(3,iVar1,1,param_2,0,param_1,0)" (identifier "puVar2") (= "=") (cast_expression "(undefined1 *)FUN_00023910(3,iVar1,1,param_2,0,param_1,0)" (( "(") (type_descriptor "undefined1 *" (type_identifier "undefined1") (abstract_pointer_declarator "*" (* "*"))) () ")") (call_expression "FUN_00023910(3,iVar1,1,param_2,0,param_1,0)" (identifier "FUN_00023910") (argument_list "(3,iVar1,1,param_2,0,param_1,0)" (( "(") (number_literal "3") (, ",") (identifier "iVar1") (, ",") (number_literal "1") (, ",") (identifier "param_2") (, ",") (number_literal "0") (, ",") (identifier "param_1") (, ",") (number_literal "0") () ")"))))) (; ";")) (expression_statement "*puVar2 = 0x90;" (assignment_expression "*puVar2 = 0x90" (pointer_expression "*puVar2" (* "*") (identifier "puVar2")) (= "=") (number_literal "0x90")) (; ";")) (return_statement "return;" (return "return") (; ";")) (} "}")))

/* WARNING: Unknown calling convention */

void function_1(int var_1,int max)

{
  size_t max_chars;
  char *pcVar1;
  
  max_chars = (1 << ((type_1)var_1 & 0x1f)) - 1;
  if (var_1 == 0) {
    max_chars = 1;
  }
  pcVar1 = var_2(rs_align_code,max_chars,1,max,(type_2 *)0x0,var_1,(char *)0x0);
  *pcVar1 = -0x70;
  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: (type_identifier) declarator: (identifier)))) body: (compound_statement (declaration type: (primitive_type) declarator: (identifier)) (declaration type: (type_identifier) declarator: (pointer_declarator declarator: (identifier))) (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (parenthesized_expression (binary_expression left: (number_literal) right: (parenthesized_expression (binary_expression left: (cast_expression type: (type_descriptor type: (type_identifier)) value: (identifier)) right: (number_literal))))) right: (number_literal)))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))) consequence: (compound_statement (expression_statement (assignment_expression left: (identifier) right: (number_literal))))) (expression_statement (assignment_expression left: (identifier) right: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (call_expression function: (identifier) arguments: (argument_list (number_literal) (identifier) (number_literal) (identifier) (number_literal) (identifier) (number_literal)))))) (expression_statement (assignment_expression left: (pointer_expression argument: (identifier)) right: (number_literal))) (return_statement))))

void MASKED(int param_1,undefined4 param_2)

{
  int iVar1;
  undefined1 *puVar2;
  
  iVar1 = (1 << ((byte)param_1 & 0x1f)) + -1;
  if (param_1 == 0) {
    iVar1 = 1;
  }
  puVar2 = (undefined1 *)FUN_00023910(3,iVar1,1,param_2,0,param_1,0);
  *puVar2 = 0x90;
  return;
}

