
void sh_cons_align(int nbytes)

{
  char *format;
  uint align;
  
  if ((nbytes & 1U) == 0) {
    align = 0;
    do {
      nbytes = nbytes >> 1;
      align = align + 1;
    } while ((nbytes & 1U) == 0);
    if (now_seg != (segT)(_bfd_std_section + 0x230)) {
      frag_var(rs_align_test,1,1,0,(symbolS *)0x0,(long)(int)align,(char *)0x0);
      record_alignment(now_seg,align);
      return;
    }
    if ((abs_section_offset & (long)((1 << ((byte)align & 0x1f)) + -1)) != 0) {
      format = (char *)dcgettext(0,"misaligned data",5);
      as_warn(format);
      return;
    }
  }
  return;
}



void FUN_001363c0(uint param_1)

{
  undefined8 uVar1;
  int iVar2;
  undefined8 uStack_10;
  
  if ((param_1 & 1) == 0) {
    iVar2 = 0;
    do {
      param_1 = (int)param_1 >> 1;
      iVar2 = iVar2 + 1;
    } while ((param_1 & 1) == 0);
    if (DAT_00168848 != 0x15fb30) {
      FUN_00117c20(4,1,1,0,0,(long)iVar2,0);
      FUN_0012ffc0(DAT_00168848,iVar2,uStack_10);
      return;
    }
    if ((DAT_00168ad8 & (long)((1 << ((byte)iVar2 & 0x1f)) + -1)) != 0) {
      uVar1 = dcgettext(0,"misaligned data",5);
      FUN_0011e530(uVar1);
      return;
    }
  }
  return;
}


PUSH RBX
MOV EBX,EDI
AND EBX,0x1
JNZ 0x00136437
NOP dword ptr [RAX + RAX*0x1]
SAR EDI,0x1
ADD EBX,0x1
TEST DIL,0x1
JZ 0x001363d0
LEA RAX,[0x15fb30]
CMP qword ptr [0x00168848],RAX
JZ 0x00136420
SUB RSP,0x8
MOVSXD R9,EBX
MOV EDX,0x1
XOR R8D,R8D
PUSH 0x0
MOV ESI,0x1
MOV EDI,0x4
XOR ECX,ECX
CALL 0x00117c20
MOV RDI,qword ptr [0x00168848]
POP RAX
MOV ESI,EBX
POP RDX
POP RBX
JMP 0x0012ffc0
MOV EAX,0x1
MOV ECX,EBX
SHL EAX,CL
SUB EAX,0x1
CDQE
TEST qword ptr [0x00168ad8],RAX
JNZ 0x00136439
POP RBX
RET
XOR EDI,EDI
MOV EDX,0x5
LEA RSI,[0x1489a7]
CALL 0x001091c0
POP RBX
MOV RDI,RAX
XOR EAX,EAX
JMP 0x0011e530
(translation_unit "void FUN_001363c0(uint param_1)\n\n{\n  undefined8 uVar1;\n  int iVar2;\n  undefined8 uStack_10;\n  \n  if ((param_1 & 1) == 0) {\n    iVar2 = 0;\n    do {\n      param_1 = (int)param_1 >> 1;\n      iVar2 = iVar2 + 1;\n    } while ((param_1 & 1) == 0);\n    if (DAT_00168848 != 0x15fb30) {\n      FUN_00117c20(4,1,1,0,0,(long)iVar2,0);\n      FUN_0012ffc0(DAT_00168848,iVar2,uStack_10);\n      return;\n    }\n    if ((DAT_00168ad8 & (long)((1 << ((byte)iVar2 & 0x1f)) + -1)) != 0) {\n      uVar1 = dcgettext(0,"misaligned data",5);\n      FUN_0011e530(uVar1);\n      return;\n    }\n  }\n  return;\n}\n\n" (function_definition "void FUN_001363c0(uint param_1)\n\n{\n  undefined8 uVar1;\n  int iVar2;\n  undefined8 uStack_10;\n  \n  if ((param_1 & 1) == 0) {\n    iVar2 = 0;\n    do {\n      param_1 = (int)param_1 >> 1;\n      iVar2 = iVar2 + 1;\n    } while ((param_1 & 1) == 0);\n    if (DAT_00168848 != 0x15fb30) {\n      FUN_00117c20(4,1,1,0,0,(long)iVar2,0);\n      FUN_0012ffc0(DAT_00168848,iVar2,uStack_10);\n      return;\n    }\n    if ((DAT_00168ad8 & (long)((1 << ((byte)iVar2 & 0x1f)) + -1)) != 0) {\n      uVar1 = dcgettext(0,"misaligned data",5);\n      FUN_0011e530(uVar1);\n      return;\n    }\n  }\n  return;\n}" primitive_type (function_declarator "FUN_001363c0(uint param_1)" identifier (parameter_list "(uint param_1)" ( (parameter_declaration "uint param_1" type_identifier identifier) ))) (compound_statement "{\n  undefined8 uVar1;\n  int iVar2;\n  undefined8 uStack_10;\n  \n  if ((param_1 & 1) == 0) {\n    iVar2 = 0;\n    do {\n      param_1 = (int)param_1 >> 1;\n      iVar2 = iVar2 + 1;\n    } while ((param_1 & 1) == 0);\n    if (DAT_00168848 != 0x15fb30) {\n      FUN_00117c20(4,1,1,0,0,(long)iVar2,0);\n      FUN_0012ffc0(DAT_00168848,iVar2,uStack_10);\n      return;\n    }\n    if ((DAT_00168ad8 & (long)((1 << ((byte)iVar2 & 0x1f)) + -1)) != 0) {\n      uVar1 = dcgettext(0,"misaligned data",5);\n      FUN_0011e530(uVar1);\n      return;\n    }\n  }\n  return;\n}" { (declaration "undefined8 uVar1;" type_identifier identifier ;) (declaration "int iVar2;" primitive_type identifier ;) (declaration "undefined8 uStack_10;" type_identifier identifier ;) (if_statement "if ((param_1 & 1) == 0) {\n    iVar2 = 0;\n    do {\n      param_1 = (int)param_1 >> 1;\n      iVar2 = iVar2 + 1;\n    } while ((param_1 & 1) == 0);\n    if (DAT_00168848 != 0x15fb30) {\n      FUN_00117c20(4,1,1,0,0,(long)iVar2,0);\n      FUN_0012ffc0(DAT_00168848,iVar2,uStack_10);\n      return;\n    }\n    if ((DAT_00168ad8 & (long)((1 << ((byte)iVar2 & 0x1f)) + -1)) != 0) {\n      uVar1 = dcgettext(0,"misaligned data",5);\n      FUN_0011e530(uVar1);\n      return;\n    }\n  }" if (parenthesized_expression "((param_1 & 1) == 0)" ( (binary_expression "(param_1 & 1) == 0" (parenthesized_expression "(param_1 & 1)" ( (binary_expression "param_1 & 1" identifier & number_literal) )) == number_literal) )) (compound_statement "{\n    iVar2 = 0;\n    do {\n      param_1 = (int)param_1 >> 1;\n      iVar2 = iVar2 + 1;\n    } while ((param_1 & 1) == 0);\n    if (DAT_00168848 != 0x15fb30) {\n      FUN_00117c20(4,1,1,0,0,(long)iVar2,0);\n      FUN_0012ffc0(DAT_00168848,iVar2,uStack_10);\n      return;\n    }\n    if ((DAT_00168ad8 & (long)((1 << ((byte)iVar2 & 0x1f)) + -1)) != 0) {\n      uVar1 = dcgettext(0,"misaligned data",5);\n      FUN_0011e530(uVar1);\n      return;\n    }\n  }" { (expression_statement "iVar2 = 0;" (assignment_expression "iVar2 = 0" identifier = number_literal) ;) (do_statement "do {\n      param_1 = (int)param_1 >> 1;\n      iVar2 = iVar2 + 1;\n    } while ((param_1 & 1) == 0);" do (compound_statement "{\n      param_1 = (int)param_1 >> 1;\n      iVar2 = iVar2 + 1;\n    }" { (expression_statement "param_1 = (int)param_1 >> 1;" (assignment_expression "param_1 = (int)param_1 >> 1" identifier = (binary_expression "(int)param_1 >> 1" (cast_expression "(int)param_1" ( (type_descriptor "int" primitive_type) ) identifier) >> number_literal)) ;) (expression_statement "iVar2 = iVar2 + 1;" (assignment_expression "iVar2 = iVar2 + 1" identifier = (binary_expression "iVar2 + 1" identifier + number_literal)) ;) }) while (parenthesized_expression "((param_1 & 1) == 0)" ( (binary_expression "(param_1 & 1) == 0" (parenthesized_expression "(param_1 & 1)" ( (binary_expression "param_1 & 1" identifier & number_literal) )) == number_literal) )) ;) (if_statement "if (DAT_00168848 != 0x15fb30) {\n      FUN_00117c20(4,1,1,0,0,(long)iVar2,0);\n      FUN_0012ffc0(DAT_00168848,iVar2,uStack_10);\n      return;\n    }" if (parenthesized_expression "(DAT_00168848 != 0x15fb30)" ( (binary_expression "DAT_00168848 != 0x15fb30" identifier != number_literal) )) (compound_statement "{\n      FUN_00117c20(4,1,1,0,0,(long)iVar2,0);\n      FUN_0012ffc0(DAT_00168848,iVar2,uStack_10);\n      return;\n    }" { (expression_statement "FUN_00117c20(4,1,1,0,0,(long)iVar2,0);" (call_expression "FUN_00117c20(4,1,1,0,0,(long)iVar2,0)" identifier (argument_list "(4,1,1,0,0,(long)iVar2,0)" ( number_literal , number_literal , number_literal , number_literal , number_literal , (cast_expression "(long)iVar2" ( (type_descriptor "long" (sized_type_specifier "long" long)) ) identifier) , number_literal ))) ;) (expression_statement "FUN_0012ffc0(DAT_00168848,iVar2,uStack_10);" (call_expression "FUN_0012ffc0(DAT_00168848,iVar2,uStack_10)" identifier (argument_list "(DAT_00168848,iVar2,uStack_10)" ( identifier , identifier , identifier ))) ;) (return_statement "return;" return ;) })) (if_statement "if ((DAT_00168ad8 & (long)((1 << ((byte)iVar2 & 0x1f)) + -1)) != 0) {\n      uVar1 = dcgettext(0,"misaligned data",5);\n      FUN_0011e530(uVar1);\n      return;\n    }" if (parenthesized_expression "((DAT_00168ad8 & (long)((1 << ((byte)iVar2 & 0x1f)) + -1)) != 0)" ( (binary_expression "(DAT_00168ad8 & (long)((1 << ((byte)iVar2 & 0x1f)) + -1)) != 0" (parenthesized_expression "(DAT_00168ad8 & (long)((1 << ((byte)iVar2 & 0x1f)) + -1))" ( (binary_expression "DAT_00168ad8 & (long)((1 << ((byte)iVar2 & 0x1f)) + -1)" identifier & (cast_expression "(long)((1 << ((byte)iVar2 & 0x1f)) + -1)" ( (type_descriptor "long" (sized_type_specifier "long" long)) ) (parenthesized_expression "((1 << ((byte)iVar2 & 0x1f)) + -1)" ( (binary_expression "(1 << ((byte)iVar2 & 0x1f)) + -1" (parenthesized_expression "(1 << ((byte)iVar2 & 0x1f))" ( (binary_expression "1 << ((byte)iVar2 & 0x1f)" number_literal << (parenthesized_expression "((byte)iVar2 & 0x1f)" ( (binary_expression "(byte)iVar2 & 0x1f" (cast_expression "(byte)iVar2" ( (type_descriptor "byte" type_identifier) ) identifier) & number_literal) ))) )) + number_literal) )))) )) != number_literal) )) (compound_statement "{\n      uVar1 = dcgettext(0,"misaligned data",5);\n      FUN_0011e530(uVar1);\n      return;\n    }" { (expression_statement "uVar1 = dcgettext(0,"misaligned data",5);" (assignment_expression "uVar1 = dcgettext(0,"misaligned data",5)" identifier = (call_expression "dcgettext(0,"misaligned data",5)" identifier (argument_list "(0,"misaligned data",5)" ( number_literal , (string_literal ""misaligned data"" " string_content ") , number_literal )))) ;) (expression_statement "FUN_0011e530(uVar1);" (call_expression "FUN_0011e530(uVar1)" identifier (argument_list "(uVar1)" ( identifier ))) ;) (return_statement "return;" return ;) })) })) (return_statement "return;" return ;) })))
(translation_unit "void sh_cons_align(int nbytes)\n\n{\n  char *format;\n  uint align;\n  \n  if ((nbytes & 1U) == 0) {\n    align = 0;\n    do {\n      nbytes = nbytes >> 1;\n      align = align + 1;\n    } while ((nbytes & 1U) == 0);\n    if (now_seg != (segT)(_bfd_std_section + 0x230)) {\n      frag_var(rs_align_test,1,1,0,(symbolS *)0x0,(long)(int)align,(char *)0x0);\n      record_alignment(now_seg,align);\n      return;\n    }\n    if ((abs_section_offset & (long)((1 << ((byte)align & 0x1f)) + -1)) != 0) {\n      format = (char *)dcgettext(0,"misaligned data",5);\n      as_warn(format);\n      return;\n    }\n  }\n  return;\n}\n\n" (function_definition "void sh_cons_align(int nbytes)\n\n{\n  char *format;\n  uint align;\n  \n  if ((nbytes & 1U) == 0) {\n    align = 0;\n    do {\n      nbytes = nbytes >> 1;\n      align = align + 1;\n    } while ((nbytes & 1U) == 0);\n    if (now_seg != (segT)(_bfd_std_section + 0x230)) {\n      frag_var(rs_align_test,1,1,0,(symbolS *)0x0,(long)(int)align,(char *)0x0);\n      record_alignment(now_seg,align);\n      return;\n    }\n    if ((abs_section_offset & (long)((1 << ((byte)align & 0x1f)) + -1)) != 0) {\n      format = (char *)dcgettext(0,"misaligned data",5);\n      as_warn(format);\n      return;\n    }\n  }\n  return;\n}" primitive_type (function_declarator "sh_cons_align(int nbytes)" identifier (parameter_list "(int nbytes)" ( (parameter_declaration "int nbytes" primitive_type identifier) ))) (compound_statement "{\n  char *format;\n  uint align;\n  \n  if ((nbytes & 1U) == 0) {\n    align = 0;\n    do {\n      nbytes = nbytes >> 1;\n      align = align + 1;\n    } while ((nbytes & 1U) == 0);\n    if (now_seg != (segT)(_bfd_std_section + 0x230)) {\n      frag_var(rs_align_test,1,1,0,(symbolS *)0x0,(long)(int)align,(char *)0x0);\n      record_alignment(now_seg,align);\n      return;\n    }\n    if ((abs_section_offset & (long)((1 << ((byte)align & 0x1f)) + -1)) != 0) {\n      format = (char *)dcgettext(0,"misaligned data",5);\n      as_warn(format);\n      return;\n    }\n  }\n  return;\n}" { (declaration "char *format;" primitive_type (pointer_declarator "*format" * identifier) ;) (declaration "uint align;" type_identifier identifier ;) (if_statement "if ((nbytes & 1U) == 0) {\n    align = 0;\n    do {\n      nbytes = nbytes >> 1;\n      align = align + 1;\n    } while ((nbytes & 1U) == 0);\n    if (now_seg != (segT)(_bfd_std_section + 0x230)) {\n      frag_var(rs_align_test,1,1,0,(symbolS *)0x0,(long)(int)align,(char *)0x0);\n      record_alignment(now_seg,align);\n      return;\n    }\n    if ((abs_section_offset & (long)((1 << ((byte)align & 0x1f)) + -1)) != 0) {\n      format = (char *)dcgettext(0,"misaligned data",5);\n      as_warn(format);\n      return;\n    }\n  }" if (parenthesized_expression "((nbytes & 1U) == 0)" ( (binary_expression "(nbytes & 1U) == 0" (parenthesized_expression "(nbytes & 1U)" ( (binary_expression "nbytes & 1U" identifier & number_literal) )) == number_literal) )) (compound_statement "{\n    align = 0;\n    do {\n      nbytes = nbytes >> 1;\n      align = align + 1;\n    } while ((nbytes & 1U) == 0);\n    if (now_seg != (segT)(_bfd_std_section + 0x230)) {\n      frag_var(rs_align_test,1,1,0,(symbolS *)0x0,(long)(int)align,(char *)0x0);\n      record_alignment(now_seg,align);\n      return;\n    }\n    if ((abs_section_offset & (long)((1 << ((byte)align & 0x1f)) + -1)) != 0) {\n      format = (char *)dcgettext(0,"misaligned data",5);\n      as_warn(format);\n      return;\n    }\n  }" { (expression_statement "align = 0;" (assignment_expression "align = 0" identifier = number_literal) ;) (do_statement "do {\n      nbytes = nbytes >> 1;\n      align = align + 1;\n    } while ((nbytes & 1U) == 0);" do (compound_statement "{\n      nbytes = nbytes >> 1;\n      align = align + 1;\n    }" { (expression_statement "nbytes = nbytes >> 1;" (assignment_expression "nbytes = nbytes >> 1" identifier = (binary_expression "nbytes >> 1" identifier >> number_literal)) ;) (expression_statement "align = align + 1;" (assignment_expression "align = align + 1" identifier = (binary_expression "align + 1" identifier + number_literal)) ;) }) while (parenthesized_expression "((nbytes & 1U) == 0)" ( (binary_expression "(nbytes & 1U) == 0" (parenthesized_expression "(nbytes & 1U)" ( (binary_expression "nbytes & 1U" identifier & number_literal) )) == number_literal) )) ;) (if_statement "if (now_seg != (segT)(_bfd_std_section + 0x230)) {\n      frag_var(rs_align_test,1,1,0,(symbolS *)0x0,(long)(int)align,(char *)0x0);\n      record_alignment(now_seg,align);\n      return;\n    }" if (parenthesized_expression "(now_seg != (segT)(_bfd_std_section + 0x230))" ( (binary_expression "now_seg != (segT)(_bfd_std_section + 0x230)" identifier != (call_expression "(segT)(_bfd_std_section + 0x230)" (parenthesized_expression "(segT)" ( identifier )) (argument_list "(_bfd_std_section + 0x230)" ( (binary_expression "_bfd_std_section + 0x230" identifier + number_literal) )))) )) (compound_statement "{\n      frag_var(rs_align_test,1,1,0,(symbolS *)0x0,(long)(int)align,(char *)0x0);\n      record_alignment(now_seg,align);\n      return;\n    }" { (expression_statement "frag_var(rs_align_test,1,1,0,(symbolS *)0x0,(long)(int)align,(char *)0x0);" (call_expression "frag_var(rs_align_test,1,1,0,(symbolS *)0x0,(long)(int)align,(char *)0x0)" identifier (argument_list "(rs_align_test,1,1,0,(symbolS *)0x0,(long)(int)align,(char *)0x0)" ( identifier , number_literal , number_literal , number_literal , (cast_expression "(symbolS *)0x0" ( (type_descriptor "symbolS *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal) , (cast_expression "(long)(int)align" ( (type_descriptor "long" (sized_type_specifier "long" long)) ) (cast_expression "(int)align" ( (type_descriptor "int" primitive_type) ) identifier)) , (cast_expression "(char *)0x0" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal) ))) ;) (expression_statement "record_alignment(now_seg,align);" (call_expression "record_alignment(now_seg,align)" identifier (argument_list "(now_seg,align)" ( identifier , identifier ))) ;) (return_statement "return;" return ;) })) (if_statement "if ((abs_section_offset & (long)((1 << ((byte)align & 0x1f)) + -1)) != 0) {\n      format = (char *)dcgettext(0,"misaligned data",5);\n      as_warn(format);\n      return;\n    }" if (parenthesized_expression "((abs_section_offset & (long)((1 << ((byte)align & 0x1f)) + -1)) != 0)" ( (binary_expression "(abs_section_offset & (long)((1 << ((byte)align & 0x1f)) + -1)) != 0" (parenthesized_expression "(abs_section_offset & (long)((1 << ((byte)align & 0x1f)) + -1))" ( (binary_expression "abs_section_offset & (long)((1 << ((byte)align & 0x1f)) + -1)" identifier & (cast_expression "(long)((1 << ((byte)align & 0x1f)) + -1)" ( (type_descriptor "long" (sized_type_specifier "long" long)) ) (parenthesized_expression "((1 << ((byte)align & 0x1f)) + -1)" ( (binary_expression "(1 << ((byte)align & 0x1f)) + -1" (parenthesized_expression "(1 << ((byte)align & 0x1f))" ( (binary_expression "1 << ((byte)align & 0x1f)" number_literal << (parenthesized_expression "((byte)align & 0x1f)" ( (binary_expression "(byte)align & 0x1f" (cast_expression "(byte)align" ( (type_descriptor "byte" type_identifier) ) identifier) & number_literal) ))) )) + number_literal) )))) )) != number_literal) )) (compound_statement "{\n      format = (char *)dcgettext(0,"misaligned data",5);\n      as_warn(format);\n      return;\n    }" { (expression_statement "format = (char *)dcgettext(0,"misaligned data",5);" (assignment_expression "format = (char *)dcgettext(0,"misaligned data",5)" identifier = (cast_expression "(char *)dcgettext(0,"misaligned data",5)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (call_expression "dcgettext(0,"misaligned data",5)" identifier (argument_list "(0,"misaligned data",5)" ( number_literal , (string_literal ""misaligned data"" " string_content ") , number_literal ))))) ;) (expression_statement "as_warn(format);" (call_expression "as_warn(format)" identifier (argument_list "(format)" ( identifier ))) ;) (return_statement "return;" return ;) })) })) (return_statement "return;" return ;) })))
(translation_unit "void FUN_001363c0(uint param_1)\n\n{\n  undefined8 uVar1;\n  int iVar2;\n  undefined8 uStack_10;\n  \n  if ((param_1 & 1) == 0) {\n    iVar2 = 0;\n    do {\n      param_1 = (int)param_1 >> 1;\n      iVar2 = iVar2 + 1;\n    } while ((param_1 & 1) == 0);\n    if (DAT_00168848 != 0x15fb30) {\n      FUN_00117c20(4,1,1,0,0,(long)iVar2,0);\n      FUN_0012ffc0(DAT_00168848,iVar2,uStack_10);\n      return;\n    }\n    if ((DAT_00168ad8 & (long)((1 << ((byte)iVar2 & 0x1f)) + -1)) != 0) {\n      uVar1 = dcgettext(0,"misaligned data",5);\n      FUN_0011e530(uVar1);\n      return;\n    }\n  }\n  return;\n}\n\n" (function_definition "void FUN_001363c0(uint param_1)\n\n{\n  undefined8 uVar1;\n  int iVar2;\n  undefined8 uStack_10;\n  \n  if ((param_1 & 1) == 0) {\n    iVar2 = 0;\n    do {\n      param_1 = (int)param_1 >> 1;\n      iVar2 = iVar2 + 1;\n    } while ((param_1 & 1) == 0);\n    if (DAT_00168848 != 0x15fb30) {\n      FUN_00117c20(4,1,1,0,0,(long)iVar2,0);\n      FUN_0012ffc0(DAT_00168848,iVar2,uStack_10);\n      return;\n    }\n    if ((DAT_00168ad8 & (long)((1 << ((byte)iVar2 & 0x1f)) + -1)) != 0) {\n      uVar1 = dcgettext(0,"misaligned data",5);\n      FUN_0011e530(uVar1);\n      return;\n    }\n  }\n  return;\n}" primitive_type (function_declarator "FUN_001363c0(uint param_1)" identifier (parameter_list "(uint param_1)" ( (parameter_declaration "uint param_1" type_identifier identifier) ))) (compound_statement "{\n  undefined8 uVar1;\n  int iVar2;\n  undefined8 uStack_10;\n  \n  if ((param_1 & 1) == 0) {\n    iVar2 = 0;\n    do {\n      param_1 = (int)param_1 >> 1;\n      iVar2 = iVar2 + 1;\n    } while ((param_1 & 1) == 0);\n    if (DAT_00168848 != 0x15fb30) {\n      FUN_00117c20(4,1,1,0,0,(long)iVar2,0);\n      FUN_0012ffc0(DAT_00168848,iVar2,uStack_10);\n      return;\n    }\n    if ((DAT_00168ad8 & (long)((1 << ((byte)iVar2 & 0x1f)) + -1)) != 0) {\n      uVar1 = dcgettext(0,"misaligned data",5);\n      FUN_0011e530(uVar1);\n      return;\n    }\n  }\n  return;\n}" { (declaration "undefined8 uVar1;" type_identifier identifier ;) (declaration "int iVar2;" primitive_type identifier ;) (declaration "undefined8 uStack_10;" type_identifier identifier ;) (if_statement "if ((param_1 & 1) == 0) {\n    iVar2 = 0;\n    do {\n      param_1 = (int)param_1 >> 1;\n      iVar2 = iVar2 + 1;\n    } while ((param_1 & 1) == 0);\n    if (DAT_00168848 != 0x15fb30) {\n      FUN_00117c20(4,1,1,0,0,(long)iVar2,0);\n      FUN_0012ffc0(DAT_00168848,iVar2,uStack_10);\n      return;\n    }\n    if ((DAT_00168ad8 & (long)((1 << ((byte)iVar2 & 0x1f)) + -1)) != 0) {\n      uVar1 = dcgettext(0,"misaligned data",5);\n      FUN_0011e530(uVar1);\n      return;\n    }\n  }" if (parenthesized_expression "((param_1 & 1) == 0)" ( (binary_expression "(param_1 & 1) == 0" (parenthesized_expression "(param_1 & 1)" ( (binary_expression "param_1 & 1" identifier & number_literal) )) == number_literal) )) (compound_statement "{\n    iVar2 = 0;\n    do {\n      param_1 = (int)param_1 >> 1;\n      iVar2 = iVar2 + 1;\n    } while ((param_1 & 1) == 0);\n    if (DAT_00168848 != 0x15fb30) {\n      FUN_00117c20(4,1,1,0,0,(long)iVar2,0);\n      FUN_0012ffc0(DAT_00168848,iVar2,uStack_10);\n      return;\n    }\n    if ((DAT_00168ad8 & (long)((1 << ((byte)iVar2 & 0x1f)) + -1)) != 0) {\n      uVar1 = dcgettext(0,"misaligned data",5);\n      FUN_0011e530(uVar1);\n      return;\n    }\n  }" { (expression_statement "iVar2 = 0;" (assignment_expression "iVar2 = 0" identifier = number_literal) ;) (do_statement "do {\n      param_1 = (int)param_1 >> 1;\n      iVar2 = iVar2 + 1;\n    } while ((param_1 & 1) == 0);" do (compound_statement "{\n      param_1 = (int)param_1 >> 1;\n      iVar2 = iVar2 + 1;\n    }" { (expression_statement "param_1 = (int)param_1 >> 1;" (assignment_expression "param_1 = (int)param_1 >> 1" identifier = (binary_expression "(int)param_1 >> 1" (cast_expression "(int)param_1" ( (type_descriptor "int" primitive_type) ) identifier) >> number_literal)) ;) (expression_statement "iVar2 = iVar2 + 1;" (assignment_expression "iVar2 = iVar2 + 1" identifier = (binary_expression "iVar2 + 1" identifier + number_literal)) ;) }) while (parenthesized_expression "((param_1 & 1) == 0)" ( (binary_expression "(param_1 & 1) == 0" (parenthesized_expression "(param_1 & 1)" ( (binary_expression "param_1 & 1" identifier & number_literal) )) == number_literal) )) ;) (if_statement "if (DAT_00168848 != 0x15fb30) {\n      FUN_00117c20(4,1,1,0,0,(long)iVar2,0);\n      FUN_0012ffc0(DAT_00168848,iVar2,uStack_10);\n      return;\n    }" if (parenthesized_expression "(DAT_00168848 != 0x15fb30)" ( (binary_expression "DAT_00168848 != 0x15fb30" identifier != number_literal) )) (compound_statement "{\n      FUN_00117c20(4,1,1,0,0,(long)iVar2,0);\n      FUN_0012ffc0(DAT_00168848,iVar2,uStack_10);\n      return;\n    }" { (expression_statement "FUN_00117c20(4,1,1,0,0,(long)iVar2,0);" (call_expression "FUN_00117c20(4,1,1,0,0,(long)iVar2,0)" identifier (argument_list "(4,1,1,0,0,(long)iVar2,0)" ( number_literal , number_literal , number_literal , number_literal , number_literal , (cast_expression "(long)iVar2" ( (type_descriptor "long" (sized_type_specifier "long" long)) ) identifier) , number_literal ))) ;) (expression_statement "FUN_0012ffc0(DAT_00168848,iVar2,uStack_10);" (call_expression "FUN_0012ffc0(DAT_00168848,iVar2,uStack_10)" identifier (argument_list "(DAT_00168848,iVar2,uStack_10)" ( identifier , identifier , identifier ))) ;) (return_statement "return;" return ;) })) (if_statement "if ((DAT_00168ad8 & (long)((1 << ((byte)iVar2 & 0x1f)) + -1)) != 0) {\n      uVar1 = dcgettext(0,"misaligned data",5);\n      FUN_0011e530(uVar1);\n      return;\n    }" if (parenthesized_expression "((DAT_00168ad8 & (long)((1 << ((byte)iVar2 & 0x1f)) + -1)) != 0)" ( (binary_expression "(DAT_00168ad8 & (long)((1 << ((byte)iVar2 & 0x1f)) + -1)) != 0" (parenthesized_expression "(DAT_00168ad8 & (long)((1 << ((byte)iVar2 & 0x1f)) + -1))" ( (binary_expression "DAT_00168ad8 & (long)((1 << ((byte)iVar2 & 0x1f)) + -1)" identifier & (cast_expression "(long)((1 << ((byte)iVar2 & 0x1f)) + -1)" ( (type_descriptor "long" (sized_type_specifier "long" long)) ) (parenthesized_expression "((1 << ((byte)iVar2 & 0x1f)) + -1)" ( (binary_expression "(1 << ((byte)iVar2 & 0x1f)) + -1" (parenthesized_expression "(1 << ((byte)iVar2 & 0x1f))" ( (binary_expression "1 << ((byte)iVar2 & 0x1f)" number_literal << (parenthesized_expression "((byte)iVar2 & 0x1f)" ( (binary_expression "(byte)iVar2 & 0x1f" (cast_expression "(byte)iVar2" ( (type_descriptor "byte" type_identifier) ) identifier) & number_literal) ))) )) + number_literal) )))) )) != number_literal) )) (compound_statement "{\n      uVar1 = dcgettext(0,"misaligned data",5);\n      FUN_0011e530(uVar1);\n      return;\n    }" { (expression_statement "uVar1 = dcgettext(0,"misaligned data",5);" (assignment_expression "uVar1 = dcgettext(0,"misaligned data",5)" identifier = (call_expression "dcgettext(0,"misaligned data",5)" identifier (argument_list "(0,"misaligned data",5)" ( number_literal , (string_literal ""misaligned data"" " string_content ") , number_literal )))) ;) (expression_statement "FUN_0011e530(uVar1);" (call_expression "FUN_0011e530(uVar1)" identifier (argument_list "(uVar1)" ( identifier ))) ;) (return_statement "return;" return ;) })) })) (return_statement "return;" return ;) })))
(translation_unit (function_definition TYPE (function_declarator IDENT (parameter_list ( (parameter_declaration TYPE IDENT) ))) (compound_statement { (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (if_statement if (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression IDENT & LIT) )) == LIT) )) (compound_statement { (expression_statement (assignment_expression IDENT = LIT) ;) (do_statement do (compound_statement { (expression_statement (assignment_expression IDENT = (binary_expression (cast_expression ( (type_descriptor TYPE) ) IDENT) >> LIT)) ;) (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) }) while (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression IDENT & LIT) )) == LIT) )) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT != LIT) )) (compound_statement { (expression_statement (call_expression IDENT (argument_list ( LIT , LIT , LIT , LIT , LIT , (cast_expression ( (type_descriptor (sized_type_specifier long)) ) IDENT) , LIT ))) ;) (expression_statement (call_expression IDENT (argument_list ( IDENT , IDENT , IDENT ))) ;) (return_statement return ;) })) (if_statement if (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression IDENT & (cast_expression ( (type_descriptor (sized_type_specifier long)) ) (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression LIT << (parenthesized_expression ( (binary_expression (cast_expression ( (type_descriptor TYPE) ) IDENT) & LIT) ))) )) + LIT) )))) )) != LIT) )) (compound_statement { (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( LIT , (string_literal " string_content ") , LIT )))) ;) (expression_statement (call_expression IDENT (argument_list ( IDENT ))) ;) (return_statement return ;) })) })) (return_statement return ;) })))
(function_definition "void FUN_001363c0(uint param_1)\n\n{\n  undefined8 uVar1;\n  int iVar2;\n  undefined8 uStack_10;\n  \n  if ((param_1 & 1) == 0) {\n    iVar2 = 0;\n    do {\n      param_1 = (int)param_1 >> 1;\n      iVar2 = iVar2 + 1;\n    } while ((param_1 & 1) == 0);\n    if (DAT_00168848 != 0x15fb30) {\n      FUN_00117c20(4,1,1,0,0,(long)iVar2,0);\n      FUN_0012ffc0(DAT_00168848,iVar2,uStack_10);\n      return;\n    }\n    if ((DAT_00168ad8 & (long)((1 << ((byte)iVar2 & 0x1f)) + -1)) != 0) {\n      uVar1 = dcgettext(0,"misaligned data",5);\n      FUN_0011e530(uVar1);\n      return;\n    }\n  }\n  return;\n}" (primitive_type "void") (function_declarator "FUN_001363c0(uint param_1)" (identifier "FUN_001363c0") (parameter_list "(uint param_1)" (( "(") (parameter_declaration "uint param_1" (type_identifier "uint") (identifier "param_1")) () ")"))) (compound_statement "{\n  undefined8 uVar1;\n  int iVar2;\n  undefined8 uStack_10;\n  \n  if ((param_1 & 1) == 0) {\n    iVar2 = 0;\n    do {\n      param_1 = (int)param_1 >> 1;\n      iVar2 = iVar2 + 1;\n    } while ((param_1 & 1) == 0);\n    if (DAT_00168848 != 0x15fb30) {\n      FUN_00117c20(4,1,1,0,0,(long)iVar2,0);\n      FUN_0012ffc0(DAT_00168848,iVar2,uStack_10);\n      return;\n    }\n    if ((DAT_00168ad8 & (long)((1 << ((byte)iVar2 & 0x1f)) + -1)) != 0) {\n      uVar1 = dcgettext(0,"misaligned data",5);\n      FUN_0011e530(uVar1);\n      return;\n    }\n  }\n  return;\n}" ({ "{") (declaration "undefined8 uVar1;" (type_identifier "undefined8") (identifier "uVar1") (; ";")) (declaration "int iVar2;" (primitive_type "int") (identifier "iVar2") (; ";")) (declaration "undefined8 uStack_10;" (type_identifier "undefined8") (identifier "uStack_10") (; ";")) (if_statement "if ((param_1 & 1) == 0) {\n    iVar2 = 0;\n    do {\n      param_1 = (int)param_1 >> 1;\n      iVar2 = iVar2 + 1;\n    } while ((param_1 & 1) == 0);\n    if (DAT_00168848 != 0x15fb30) {\n      FUN_00117c20(4,1,1,0,0,(long)iVar2,0);\n      FUN_0012ffc0(DAT_00168848,iVar2,uStack_10);\n      return;\n    }\n    if ((DAT_00168ad8 & (long)((1 << ((byte)iVar2 & 0x1f)) + -1)) != 0) {\n      uVar1 = dcgettext(0,"misaligned data",5);\n      FUN_0011e530(uVar1);\n      return;\n    }\n  }" (if "if") (parenthesized_expression "((param_1 & 1) == 0)" (( "(") (binary_expression "(param_1 & 1) == 0" (parenthesized_expression "(param_1 & 1)" (( "(") (binary_expression "param_1 & 1" (identifier "param_1") (& "&") (number_literal "1")) () ")")) (== "==") (number_literal "0")) () ")")) (compound_statement "{\n    iVar2 = 0;\n    do {\n      param_1 = (int)param_1 >> 1;\n      iVar2 = iVar2 + 1;\n    } while ((param_1 & 1) == 0);\n    if (DAT_00168848 != 0x15fb30) {\n      FUN_00117c20(4,1,1,0,0,(long)iVar2,0);\n      FUN_0012ffc0(DAT_00168848,iVar2,uStack_10);\n      return;\n    }\n    if ((DAT_00168ad8 & (long)((1 << ((byte)iVar2 & 0x1f)) + -1)) != 0) {\n      uVar1 = dcgettext(0,"misaligned data",5);\n      FUN_0011e530(uVar1);\n      return;\n    }\n  }" ({ "{") (expression_statement "iVar2 = 0;" (assignment_expression "iVar2 = 0" (identifier "iVar2") (= "=") (number_literal "0")) (; ";")) (do_statement "do {\n      param_1 = (int)param_1 >> 1;\n      iVar2 = iVar2 + 1;\n    } while ((param_1 & 1) == 0);" (do "do") (compound_statement "{\n      param_1 = (int)param_1 >> 1;\n      iVar2 = iVar2 + 1;\n    }" ({ "{") (expression_statement "param_1 = (int)param_1 >> 1;" (assignment_expression "param_1 = (int)param_1 >> 1" (identifier "param_1") (= "=") (binary_expression "(int)param_1 >> 1" (cast_expression "(int)param_1" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (identifier "param_1")) (>> ">>") (number_literal "1"))) (; ";")) (expression_statement "iVar2 = iVar2 + 1;" (assignment_expression "iVar2 = iVar2 + 1" (identifier "iVar2") (= "=") (binary_expression "iVar2 + 1" (identifier "iVar2") (+ "+") (number_literal "1"))) (; ";")) (} "}")) (while "while") (parenthesized_expression "((param_1 & 1) == 0)" (( "(") (binary_expression "(param_1 & 1) == 0" (parenthesized_expression "(param_1 & 1)" (( "(") (binary_expression "param_1 & 1" (identifier "param_1") (& "&") (number_literal "1")) () ")")) (== "==") (number_literal "0")) () ")")) (; ";")) (if_statement "if (DAT_00168848 != 0x15fb30) {\n      FUN_00117c20(4,1,1,0,0,(long)iVar2,0);\n      FUN_0012ffc0(DAT_00168848,iVar2,uStack_10);\n      return;\n    }" (if "if") (parenthesized_expression "(DAT_00168848 != 0x15fb30)" (( "(") (binary_expression "DAT_00168848 != 0x15fb30" (identifier "DAT_00168848") (!= "!=") (number_literal "0x15fb30")) () ")")) (compound_statement "{\n      FUN_00117c20(4,1,1,0,0,(long)iVar2,0);\n      FUN_0012ffc0(DAT_00168848,iVar2,uStack_10);\n      return;\n    }" ({ "{") (expression_statement "FUN_00117c20(4,1,1,0,0,(long)iVar2,0);" (call_expression "FUN_00117c20(4,1,1,0,0,(long)iVar2,0)" (identifier "FUN_00117c20") (argument_list "(4,1,1,0,0,(long)iVar2,0)" (( "(") (number_literal "4") (, ",") (number_literal "1") (, ",") (number_literal "1") (, ",") (number_literal "0") (, ",") (number_literal "0") (, ",") (cast_expression "(long)iVar2" (( "(") (type_descriptor "long" (sized_type_specifier "long" (long "long"))) () ")") (identifier "iVar2")) (, ",") (number_literal "0") () ")"))) (; ";")) (expression_statement "FUN_0012ffc0(DAT_00168848,iVar2,uStack_10);" (call_expression "FUN_0012ffc0(DAT_00168848,iVar2,uStack_10)" (identifier "FUN_0012ffc0") (argument_list "(DAT_00168848,iVar2,uStack_10)" (( "(") (identifier "DAT_00168848") (, ",") (identifier "iVar2") (, ",") (identifier "uStack_10") () ")"))) (; ";")) (return_statement "return;" (return "return") (; ";")) (} "}"))) (if_statement "if ((DAT_00168ad8 & (long)((1 << ((byte)iVar2 & 0x1f)) + -1)) != 0) {\n      uVar1 = dcgettext(0,"misaligned data",5);\n      FUN_0011e530(uVar1);\n      return;\n    }" (if "if") (parenthesized_expression "((DAT_00168ad8 & (long)((1 << ((byte)iVar2 & 0x1f)) + -1)) != 0)" (( "(") (binary_expression "(DAT_00168ad8 & (long)((1 << ((byte)iVar2 & 0x1f)) + -1)) != 0" (parenthesized_expression "(DAT_00168ad8 & (long)((1 << ((byte)iVar2 & 0x1f)) + -1))" (( "(") (binary_expression "DAT_00168ad8 & (long)((1 << ((byte)iVar2 & 0x1f)) + -1)" (identifier "DAT_00168ad8") (& "&") (cast_expression "(long)((1 << ((byte)iVar2 & 0x1f)) + -1)" (( "(") (type_descriptor "long" (sized_type_specifier "long" (long "long"))) () ")") (parenthesized_expression "((1 << ((byte)iVar2 & 0x1f)) + -1)" (( "(") (binary_expression "(1 << ((byte)iVar2 & 0x1f)) + -1" (parenthesized_expression "(1 << ((byte)iVar2 & 0x1f))" (( "(") (binary_expression "1 << ((byte)iVar2 & 0x1f)" (number_literal "1") (<< "<<") (parenthesized_expression "((byte)iVar2 & 0x1f)" (( "(") (binary_expression "(byte)iVar2 & 0x1f" (cast_expression "(byte)iVar2" (( "(") (type_descriptor "byte" (type_identifier "byte")) () ")") (identifier "iVar2")) (& "&") (number_literal "0x1f")) () ")"))) () ")")) (+ "+") (number_literal "-1")) () ")")))) () ")")) (!= "!=") (number_literal "0")) () ")")) (compound_statement "{\n      uVar1 = dcgettext(0,"misaligned data",5);\n      FUN_0011e530(uVar1);\n      return;\n    }" ({ "{") (expression_statement "uVar1 = dcgettext(0,"misaligned data",5);" (assignment_expression "uVar1 = dcgettext(0,"misaligned data",5)" (identifier "uVar1") (= "=") (call_expression "dcgettext(0,"misaligned data",5)" (identifier "dcgettext") (argument_list "(0,"misaligned data",5)" (( "(") (number_literal "0") (, ",") (string_literal ""misaligned data"" (" """) (string_content "misaligned data") (" """)) (, ",") (number_literal "5") () ")")))) (; ";")) (expression_statement "FUN_0011e530(uVar1);" (call_expression "FUN_0011e530(uVar1)" (identifier "FUN_0011e530") (argument_list "(uVar1)" (( "(") (identifier "uVar1") () ")"))) (; ";")) (return_statement "return;" (return "return") (; ";")) (} "}"))) (} "}"))) (return_statement "return;" (return "return") (; ";")) (} "}")))

void function_1(int var_1)

{
  char *format;
  type_1 var_2;
  
  if ((var_1 & 1U) == 0) {
    var_2 = 0;
    do {
      var_1 = var_1 >> 1;
      var_2 = var_2 + 1;
    } while ((var_1 & 1U) == 0);
    if (var_3 != (segT)(var_4 + 0x230)) {
      var_5(rs_align_test,1,1,0,(type_2 *)0x0,(long)(int)var_2,(char *)0x0);
      var_6(var_3,var_2);
      return;
    }
    if ((var_7 & (long)((1 << ((type_3)var_2 & 0x1f)) + -1)) != 0) {
      format = (char *)var_8(0,"misaligned data",5);
      var_9(format);
      return;
    }
  }
  return;
}


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

void MASKED(uint param_1)

{
  undefined8 uVar1;
  int iVar2;
  undefined8 uStack_10;
  
  if ((param_1 & 1) == 0) {
    iVar2 = 0;
    do {
      param_1 = (int)param_1 >> 1;
      iVar2 = iVar2 + 1;
    } while ((param_1 & 1) == 0);
    if (DAT_00168848 != 0x15fb30) {
      FUN_00117c20(4,1,1,0,0,(long)iVar2,0);
      FUN_0012ffc0(DAT_00168848,iVar2,uStack_10);
      return;
    }
    if ((DAT_00168ad8 & (long)((1 << ((byte)iVar2 & 0x1f)) + -1)) != 0) {
      uVar1 = dcgettext(0,"misaligned data",5);
      FUN_0011e530(uVar1);
      return;
    }
  }
  return;
}

