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

int size_number(bfd_size_type num)

{
  uint *puVar1;
  uint *puVar2;
  uint uVar3;
  uint uVar4;
  char *__format;
  bool bVar5;
  char buffer [40];
  
  __format = "%lu";
  if ((radix != decimal) && (__format = "0%lo", radix != _sch_isblank)) {
    __format = "0x%lx";
  }
  sprintf(buffer,__format,num);
  puVar2 = (uint *)buffer;
  do {
    puVar1 = puVar2;
    uVar3 = *puVar1 + 0xfefefeff & ~*puVar1;
    uVar4 = uVar3 & 0x80808080;
    puVar2 = puVar1 + 1;
  } while (uVar4 == 0);
  bVar5 = (uVar3 & 0x8080) == 0;
  if (bVar5) {
    uVar4 = uVar4 >> 0x10;
  }
  if (bVar5) {
    puVar2 = (uint *)((long)puVar1 + 6);
  }
  return (((int)puVar2 + -3) - (uint)CARRY1((byte)uVar4,(byte)uVar4)) - (int)buffer;
}



long FUN_00102a90(undefined8 param_1)

{
  uint *puVar1;
  uint *puVar2;
  uint uVar3;
  uint uVar4;
  char *__format;
  bool bVar5;
  uint local_38 [12];
  
  __format = "%lu";
  if ((DAT_00109890 != 0) && (__format = "0%lo", DAT_00109890 != 1)) {
    __format = "0x%lx";
  }
  sprintf((char *)local_38,__format,param_1);
  puVar2 = local_38;
  do {
    puVar1 = puVar2;
    uVar3 = *puVar1 + 0xfefefeff & ~*puVar1;
    uVar4 = uVar3 & 0x80808080;
    puVar2 = puVar1 + 1;
  } while (uVar4 == 0);
  bVar5 = (uVar3 & 0x8080) == 0;
  if (bVar5) {
    uVar4 = uVar4 >> 0x10;
  }
  if (bVar5) {
    puVar2 = (uint *)((long)puVar1 + 6);
  }
  return (long)puVar2 + ((-3 - (ulong)CARRY1((byte)uVar4,(byte)uVar4)) - (long)local_38);
}


PUSH RBX
MOV RDX,RDI
LEA RSI,[0x1063bd]
SUB RSP,0x30
MOV EAX,dword ptr [0x00109890]
TEST EAX,EAX
JZ 0x00102abe
CMP EAX,0x1
LEA RSI,[0x1063c1]
LEA RAX,[0x106841]
CMOVNZ RSI,RAX
MOV RBX,RSP
XOR EAX,EAX
MOV RDI,RBX
CALL 0x00102420
MOV RAX,RBX
MOV ECX,dword ptr [RAX]
ADD RAX,0x4
LEA EDX,[RCX + -0x1010101]
NOT ECX
AND EDX,ECX
AND EDX,0x80808080
JZ 0x00102ace
MOV ECX,EDX
SHR ECX,0x10
TEST EDX,0x8080
CMOVZ EDX,ECX
LEA RCX,[RAX + 0x2]
CMOVZ RAX,RCX
MOV EDI,EDX
ADD DIL,DL
SBB RAX,0x3
ADD RSP,0x30
SUB RAX,RBX
POP RBX
RET
(translation_unit "long FUN_00102a90(undefined8 param_1)\n\n{\n  uint *puVar1;\n  uint *puVar2;\n  uint uVar3;\n  uint uVar4;\n  char *__format;\n  bool bVar5;\n  uint local_38 [12];\n  \n  __format = "%lu";\n  if ((DAT_00109890 != 0) && (__format = "0%lo", DAT_00109890 != 1)) {\n    __format = "0x%lx";\n  }\n  sprintf((char *)local_38,__format,param_1);\n  puVar2 = local_38;\n  do {\n    puVar1 = puVar2;\n    uVar3 = *puVar1 + 0xfefefeff & ~*puVar1;\n    uVar4 = uVar3 & 0x80808080;\n    puVar2 = puVar1 + 1;\n  } while (uVar4 == 0);\n  bVar5 = (uVar3 & 0x8080) == 0;\n  if (bVar5) {\n    uVar4 = uVar4 >> 0x10;\n  }\n  if (bVar5) {\n    puVar2 = (uint *)((long)puVar1 + 6);\n  }\n  return (long)puVar2 + ((-3 - (ulong)CARRY1((byte)uVar4,(byte)uVar4)) - (long)local_38);\n}\n\n" (function_definition "long FUN_00102a90(undefined8 param_1)\n\n{\n  uint *puVar1;\n  uint *puVar2;\n  uint uVar3;\n  uint uVar4;\n  char *__format;\n  bool bVar5;\n  uint local_38 [12];\n  \n  __format = "%lu";\n  if ((DAT_00109890 != 0) && (__format = "0%lo", DAT_00109890 != 1)) {\n    __format = "0x%lx";\n  }\n  sprintf((char *)local_38,__format,param_1);\n  puVar2 = local_38;\n  do {\n    puVar1 = puVar2;\n    uVar3 = *puVar1 + 0xfefefeff & ~*puVar1;\n    uVar4 = uVar3 & 0x80808080;\n    puVar2 = puVar1 + 1;\n  } while (uVar4 == 0);\n  bVar5 = (uVar3 & 0x8080) == 0;\n  if (bVar5) {\n    uVar4 = uVar4 >> 0x10;\n  }\n  if (bVar5) {\n    puVar2 = (uint *)((long)puVar1 + 6);\n  }\n  return (long)puVar2 + ((-3 - (ulong)CARRY1((byte)uVar4,(byte)uVar4)) - (long)local_38);\n}" (sized_type_specifier "long" long) (function_declarator "FUN_00102a90(undefined8 param_1)" identifier (parameter_list "(undefined8 param_1)" ( (parameter_declaration "undefined8 param_1" type_identifier identifier) ))) (compound_statement "{\n  uint *puVar1;\n  uint *puVar2;\n  uint uVar3;\n  uint uVar4;\n  char *__format;\n  bool bVar5;\n  uint local_38 [12];\n  \n  __format = "%lu";\n  if ((DAT_00109890 != 0) && (__format = "0%lo", DAT_00109890 != 1)) {\n    __format = "0x%lx";\n  }\n  sprintf((char *)local_38,__format,param_1);\n  puVar2 = local_38;\n  do {\n    puVar1 = puVar2;\n    uVar3 = *puVar1 + 0xfefefeff & ~*puVar1;\n    uVar4 = uVar3 & 0x80808080;\n    puVar2 = puVar1 + 1;\n  } while (uVar4 == 0);\n  bVar5 = (uVar3 & 0x8080) == 0;\n  if (bVar5) {\n    uVar4 = uVar4 >> 0x10;\n  }\n  if (bVar5) {\n    puVar2 = (uint *)((long)puVar1 + 6);\n  }\n  return (long)puVar2 + ((-3 - (ulong)CARRY1((byte)uVar4,(byte)uVar4)) - (long)local_38);\n}" { (declaration "uint *puVar1;" type_identifier (pointer_declarator "*puVar1" * identifier) ;) (declaration "uint *puVar2;" type_identifier (pointer_declarator "*puVar2" * identifier) ;) (declaration "uint uVar3;" type_identifier identifier ;) (declaration "uint uVar4;" type_identifier identifier ;) (declaration "char *__format;" primitive_type (pointer_declarator "*__format" * identifier) ;) (declaration "bool bVar5;" primitive_type identifier ;) (declaration "uint local_38 [12];" type_identifier (array_declarator "local_38 [12]" identifier [ number_literal ]) ;) (expression_statement "__format = "%lu";" (assignment_expression "__format = "%lu"" identifier = (string_literal ""%lu"" " string_content ")) ;) (if_statement "if ((DAT_00109890 != 0) && (__format = "0%lo", DAT_00109890 != 1)) {\n    __format = "0x%lx";\n  }" if (parenthesized_expression "((DAT_00109890 != 0) && (__format = "0%lo", DAT_00109890 != 1))" ( (binary_expression "(DAT_00109890 != 0) && (__format = "0%lo", DAT_00109890 != 1)" (parenthesized_expression "(DAT_00109890 != 0)" ( (binary_expression "DAT_00109890 != 0" identifier != number_literal) )) && (parenthesized_expression "(__format = "0%lo", DAT_00109890 != 1)" ( (comma_expression "__format = "0%lo", DAT_00109890 != 1" (assignment_expression "__format = "0%lo"" identifier = (string_literal ""0%lo"" " string_content ")) , (binary_expression "DAT_00109890 != 1" identifier != number_literal)) ))) )) (compound_statement "{\n    __format = "0x%lx";\n  }" { (expression_statement "__format = "0x%lx";" (assignment_expression "__format = "0x%lx"" identifier = (string_literal ""0x%lx"" " string_content ")) ;) })) (expression_statement "sprintf((char *)local_38,__format,param_1);" (call_expression "sprintf((char *)local_38,__format,param_1)" identifier (argument_list "((char *)local_38,__format,param_1)" ( (cast_expression "(char *)local_38" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) identifier) , identifier , identifier ))) ;) (expression_statement "puVar2 = local_38;" (assignment_expression "puVar2 = local_38" identifier = identifier) ;) (do_statement "do {\n    puVar1 = puVar2;\n    uVar3 = *puVar1 + 0xfefefeff & ~*puVar1;\n    uVar4 = uVar3 & 0x80808080;\n    puVar2 = puVar1 + 1;\n  } while (uVar4 == 0);" do (compound_statement "{\n    puVar1 = puVar2;\n    uVar3 = *puVar1 + 0xfefefeff & ~*puVar1;\n    uVar4 = uVar3 & 0x80808080;\n    puVar2 = puVar1 + 1;\n  }" { (expression_statement "puVar1 = puVar2;" (assignment_expression "puVar1 = puVar2" identifier = identifier) ;) (expression_statement "uVar3 = *puVar1 + 0xfefefeff & ~*puVar1;" (assignment_expression "uVar3 = *puVar1 + 0xfefefeff & ~*puVar1" identifier = (binary_expression "*puVar1 + 0xfefefeff & ~*puVar1" (binary_expression "*puVar1 + 0xfefefeff" (pointer_expression "*puVar1" * identifier) + number_literal) & (unary_expression "~*puVar1" ~ (pointer_expression "*puVar1" * identifier)))) ;) (expression_statement "uVar4 = uVar3 & 0x80808080;" (assignment_expression "uVar4 = uVar3 & 0x80808080" identifier = (binary_expression "uVar3 & 0x80808080" identifier & number_literal)) ;) (expression_statement "puVar2 = puVar1 + 1;" (assignment_expression "puVar2 = puVar1 + 1" identifier = (binary_expression "puVar1 + 1" identifier + number_literal)) ;) }) while (parenthesized_expression "(uVar4 == 0)" ( (binary_expression "uVar4 == 0" identifier == number_literal) )) ;) (expression_statement "bVar5 = (uVar3 & 0x8080) == 0;" (assignment_expression "bVar5 = (uVar3 & 0x8080) == 0" identifier = (binary_expression "(uVar3 & 0x8080) == 0" (parenthesized_expression "(uVar3 & 0x8080)" ( (binary_expression "uVar3 & 0x8080" identifier & number_literal) )) == number_literal)) ;) (if_statement "if (bVar5) {\n    uVar4 = uVar4 >> 0x10;\n  }" if (parenthesized_expression "(bVar5)" ( identifier )) (compound_statement "{\n    uVar4 = uVar4 >> 0x10;\n  }" { (expression_statement "uVar4 = uVar4 >> 0x10;" (assignment_expression "uVar4 = uVar4 >> 0x10" identifier = (binary_expression "uVar4 >> 0x10" identifier >> number_literal)) ;) })) (if_statement "if (bVar5) {\n    puVar2 = (uint *)((long)puVar1 + 6);\n  }" if (parenthesized_expression "(bVar5)" ( identifier )) (compound_statement "{\n    puVar2 = (uint *)((long)puVar1 + 6);\n  }" { (expression_statement "puVar2 = (uint *)((long)puVar1 + 6);" (assignment_expression "puVar2 = (uint *)((long)puVar1 + 6)" identifier = (cast_expression "(uint *)((long)puVar1 + 6)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((long)puVar1 + 6)" ( (binary_expression "(long)puVar1 + 6" (cast_expression "(long)puVar1" ( (type_descriptor "long" (sized_type_specifier "long" long)) ) identifier) + number_literal) )))) ;) })) (return_statement "return (long)puVar2 + ((-3 - (ulong)CARRY1((byte)uVar4,(byte)uVar4)) - (long)local_38);" return (binary_expression "(long)puVar2 + ((-3 - (ulong)CARRY1((byte)uVar4,(byte)uVar4)) - (long)local_38)" (cast_expression "(long)puVar2" ( (type_descriptor "long" (sized_type_specifier "long" long)) ) identifier) + (parenthesized_expression "((-3 - (ulong)CARRY1((byte)uVar4,(byte)uVar4)) - (long)local_38)" ( (binary_expression "(-3 - (ulong)CARRY1((byte)uVar4,(byte)uVar4)) - (long)local_38" (parenthesized_expression "(-3 - (ulong)CARRY1((byte)uVar4,(byte)uVar4))" ( (binary_expression "-3 - (ulong)CARRY1((byte)uVar4,(byte)uVar4)" number_literal - (cast_expression "(ulong)CARRY1((byte)uVar4,(byte)uVar4)" ( (type_descriptor "ulong" type_identifier) ) (call_expression "CARRY1((byte)uVar4,(byte)uVar4)" identifier (argument_list "((byte)uVar4,(byte)uVar4)" ( (cast_expression "(byte)uVar4" ( (type_descriptor "byte" type_identifier) ) identifier) , (cast_expression "(byte)uVar4" ( (type_descriptor "byte" type_identifier) ) identifier) ))))) )) - (cast_expression "(long)local_38" ( (type_descriptor "long" (sized_type_specifier "long" long)) ) identifier)) ))) ;) })))
(translation_unit "/* WARNING: Enum "anon_enum_32": Some values do not have unique names */\n\nint size_number(bfd_size_type num)\n\n{\n  uint *puVar1;\n  uint *puVar2;\n  uint uVar3;\n  uint uVar4;\n  char *__format;\n  bool bVar5;\n  char buffer [40];\n  \n  __format = "%lu";\n  if ((radix != decimal) && (__format = "0%lo", radix != _sch_isblank)) {\n    __format = "0x%lx";\n  }\n  sprintf(buffer,__format,num);\n  puVar2 = (uint *)buffer;\n  do {\n    puVar1 = puVar2;\n    uVar3 = *puVar1 + 0xfefefeff & ~*puVar1;\n    uVar4 = uVar3 & 0x80808080;\n    puVar2 = puVar1 + 1;\n  } while (uVar4 == 0);\n  bVar5 = (uVar3 & 0x8080) == 0;\n  if (bVar5) {\n    uVar4 = uVar4 >> 0x10;\n  }\n  if (bVar5) {\n    puVar2 = (uint *)((long)puVar1 + 6);\n  }\n  return (((int)puVar2 + -3) - (uint)CARRY1((byte)uVar4,(byte)uVar4)) - (int)buffer;\n}\n\n" comment (function_definition "int size_number(bfd_size_type num)\n\n{\n  uint *puVar1;\n  uint *puVar2;\n  uint uVar3;\n  uint uVar4;\n  char *__format;\n  bool bVar5;\n  char buffer [40];\n  \n  __format = "%lu";\n  if ((radix != decimal) && (__format = "0%lo", radix != _sch_isblank)) {\n    __format = "0x%lx";\n  }\n  sprintf(buffer,__format,num);\n  puVar2 = (uint *)buffer;\n  do {\n    puVar1 = puVar2;\n    uVar3 = *puVar1 + 0xfefefeff & ~*puVar1;\n    uVar4 = uVar3 & 0x80808080;\n    puVar2 = puVar1 + 1;\n  } while (uVar4 == 0);\n  bVar5 = (uVar3 & 0x8080) == 0;\n  if (bVar5) {\n    uVar4 = uVar4 >> 0x10;\n  }\n  if (bVar5) {\n    puVar2 = (uint *)((long)puVar1 + 6);\n  }\n  return (((int)puVar2 + -3) - (uint)CARRY1((byte)uVar4,(byte)uVar4)) - (int)buffer;\n}" primitive_type (function_declarator "size_number(bfd_size_type num)" identifier (parameter_list "(bfd_size_type num)" ( (parameter_declaration "bfd_size_type num" type_identifier identifier) ))) (compound_statement "{\n  uint *puVar1;\n  uint *puVar2;\n  uint uVar3;\n  uint uVar4;\n  char *__format;\n  bool bVar5;\n  char buffer [40];\n  \n  __format = "%lu";\n  if ((radix != decimal) && (__format = "0%lo", radix != _sch_isblank)) {\n    __format = "0x%lx";\n  }\n  sprintf(buffer,__format,num);\n  puVar2 = (uint *)buffer;\n  do {\n    puVar1 = puVar2;\n    uVar3 = *puVar1 + 0xfefefeff & ~*puVar1;\n    uVar4 = uVar3 & 0x80808080;\n    puVar2 = puVar1 + 1;\n  } while (uVar4 == 0);\n  bVar5 = (uVar3 & 0x8080) == 0;\n  if (bVar5) {\n    uVar4 = uVar4 >> 0x10;\n  }\n  if (bVar5) {\n    puVar2 = (uint *)((long)puVar1 + 6);\n  }\n  return (((int)puVar2 + -3) - (uint)CARRY1((byte)uVar4,(byte)uVar4)) - (int)buffer;\n}" { (declaration "uint *puVar1;" type_identifier (pointer_declarator "*puVar1" * identifier) ;) (declaration "uint *puVar2;" type_identifier (pointer_declarator "*puVar2" * identifier) ;) (declaration "uint uVar3;" type_identifier identifier ;) (declaration "uint uVar4;" type_identifier identifier ;) (declaration "char *__format;" primitive_type (pointer_declarator "*__format" * identifier) ;) (declaration "bool bVar5;" primitive_type identifier ;) (declaration "char buffer [40];" primitive_type (array_declarator "buffer [40]" identifier [ number_literal ]) ;) (expression_statement "__format = "%lu";" (assignment_expression "__format = "%lu"" identifier = (string_literal ""%lu"" " string_content ")) ;) (if_statement "if ((radix != decimal) && (__format = "0%lo", radix != _sch_isblank)) {\n    __format = "0x%lx";\n  }" if (parenthesized_expression "((radix != decimal) && (__format = "0%lo", radix != _sch_isblank))" ( (binary_expression "(radix != decimal) && (__format = "0%lo", radix != _sch_isblank)" (parenthesized_expression "(radix != decimal)" ( (binary_expression "radix != decimal" identifier != identifier) )) && (parenthesized_expression "(__format = "0%lo", radix != _sch_isblank)" ( (comma_expression "__format = "0%lo", radix != _sch_isblank" (assignment_expression "__format = "0%lo"" identifier = (string_literal ""0%lo"" " string_content ")) , (binary_expression "radix != _sch_isblank" identifier != identifier)) ))) )) (compound_statement "{\n    __format = "0x%lx";\n  }" { (expression_statement "__format = "0x%lx";" (assignment_expression "__format = "0x%lx"" identifier = (string_literal ""0x%lx"" " string_content ")) ;) })) (expression_statement "sprintf(buffer,__format,num);" (call_expression "sprintf(buffer,__format,num)" identifier (argument_list "(buffer,__format,num)" ( identifier , identifier , identifier ))) ;) (expression_statement "puVar2 = (uint *)buffer;" (assignment_expression "puVar2 = (uint *)buffer" identifier = (cast_expression "(uint *)buffer" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) ;) (do_statement "do {\n    puVar1 = puVar2;\n    uVar3 = *puVar1 + 0xfefefeff & ~*puVar1;\n    uVar4 = uVar3 & 0x80808080;\n    puVar2 = puVar1 + 1;\n  } while (uVar4 == 0);" do (compound_statement "{\n    puVar1 = puVar2;\n    uVar3 = *puVar1 + 0xfefefeff & ~*puVar1;\n    uVar4 = uVar3 & 0x80808080;\n    puVar2 = puVar1 + 1;\n  }" { (expression_statement "puVar1 = puVar2;" (assignment_expression "puVar1 = puVar2" identifier = identifier) ;) (expression_statement "uVar3 = *puVar1 + 0xfefefeff & ~*puVar1;" (assignment_expression "uVar3 = *puVar1 + 0xfefefeff & ~*puVar1" identifier = (binary_expression "*puVar1 + 0xfefefeff & ~*puVar1" (binary_expression "*puVar1 + 0xfefefeff" (pointer_expression "*puVar1" * identifier) + number_literal) & (unary_expression "~*puVar1" ~ (pointer_expression "*puVar1" * identifier)))) ;) (expression_statement "uVar4 = uVar3 & 0x80808080;" (assignment_expression "uVar4 = uVar3 & 0x80808080" identifier = (binary_expression "uVar3 & 0x80808080" identifier & number_literal)) ;) (expression_statement "puVar2 = puVar1 + 1;" (assignment_expression "puVar2 = puVar1 + 1" identifier = (binary_expression "puVar1 + 1" identifier + number_literal)) ;) }) while (parenthesized_expression "(uVar4 == 0)" ( (binary_expression "uVar4 == 0" identifier == number_literal) )) ;) (expression_statement "bVar5 = (uVar3 & 0x8080) == 0;" (assignment_expression "bVar5 = (uVar3 & 0x8080) == 0" identifier = (binary_expression "(uVar3 & 0x8080) == 0" (parenthesized_expression "(uVar3 & 0x8080)" ( (binary_expression "uVar3 & 0x8080" identifier & number_literal) )) == number_literal)) ;) (if_statement "if (bVar5) {\n    uVar4 = uVar4 >> 0x10;\n  }" if (parenthesized_expression "(bVar5)" ( identifier )) (compound_statement "{\n    uVar4 = uVar4 >> 0x10;\n  }" { (expression_statement "uVar4 = uVar4 >> 0x10;" (assignment_expression "uVar4 = uVar4 >> 0x10" identifier = (binary_expression "uVar4 >> 0x10" identifier >> number_literal)) ;) })) (if_statement "if (bVar5) {\n    puVar2 = (uint *)((long)puVar1 + 6);\n  }" if (parenthesized_expression "(bVar5)" ( identifier )) (compound_statement "{\n    puVar2 = (uint *)((long)puVar1 + 6);\n  }" { (expression_statement "puVar2 = (uint *)((long)puVar1 + 6);" (assignment_expression "puVar2 = (uint *)((long)puVar1 + 6)" identifier = (cast_expression "(uint *)((long)puVar1 + 6)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((long)puVar1 + 6)" ( (binary_expression "(long)puVar1 + 6" (cast_expression "(long)puVar1" ( (type_descriptor "long" (sized_type_specifier "long" long)) ) identifier) + number_literal) )))) ;) })) (return_statement "return (((int)puVar2 + -3) - (uint)CARRY1((byte)uVar4,(byte)uVar4)) - (int)buffer;" return (binary_expression "(((int)puVar2 + -3) - (uint)CARRY1((byte)uVar4,(byte)uVar4)) - (int)buffer" (parenthesized_expression "(((int)puVar2 + -3) - (uint)CARRY1((byte)uVar4,(byte)uVar4))" ( (binary_expression "((int)puVar2 + -3) - (uint)CARRY1((byte)uVar4,(byte)uVar4)" (parenthesized_expression "((int)puVar2 + -3)" ( (binary_expression "(int)puVar2 + -3" (cast_expression "(int)puVar2" ( (type_descriptor "int" primitive_type) ) identifier) + number_literal) )) - (cast_expression "(uint)CARRY1((byte)uVar4,(byte)uVar4)" ( (type_descriptor "uint" type_identifier) ) (call_expression "CARRY1((byte)uVar4,(byte)uVar4)" identifier (argument_list "((byte)uVar4,(byte)uVar4)" ( (cast_expression "(byte)uVar4" ( (type_descriptor "byte" type_identifier) ) identifier) , (cast_expression "(byte)uVar4" ( (type_descriptor "byte" type_identifier) ) identifier) ))))) )) - (cast_expression "(int)buffer" ( (type_descriptor "int" primitive_type) ) identifier)) ;) })))
(translation_unit "long FUN_00102a90(undefined8 param_1)\n\n{\n  uint *puVar1;\n  uint *puVar2;\n  uint uVar3;\n  uint uVar4;\n  char *__format;\n  bool bVar5;\n  uint local_38 [12];\n  \n  __format = "%lu";\n  if ((DAT_00109890 != 0) && (__format = "0%lo", DAT_00109890 != 1)) {\n    __format = "0x%lx";\n  }\n  sprintf((char *)local_38,__format,param_1);\n  puVar2 = local_38;\n  do {\n    puVar1 = puVar2;\n    uVar3 = *puVar1 + 0xfefefeff & ~*puVar1;\n    uVar4 = uVar3 & 0x80808080;\n    puVar2 = puVar1 + 1;\n  } while (uVar4 == 0);\n  bVar5 = (uVar3 & 0x8080) == 0;\n  if (bVar5) {\n    uVar4 = uVar4 >> 0x10;\n  }\n  if (bVar5) {\n    puVar2 = (uint *)((long)puVar1 + 6);\n  }\n  return (long)puVar2 + ((-3 - (ulong)CARRY1((byte)uVar4,(byte)uVar4)) - (long)local_38);\n}\n\n" (function_definition "long FUN_00102a90(undefined8 param_1)\n\n{\n  uint *puVar1;\n  uint *puVar2;\n  uint uVar3;\n  uint uVar4;\n  char *__format;\n  bool bVar5;\n  uint local_38 [12];\n  \n  __format = "%lu";\n  if ((DAT_00109890 != 0) && (__format = "0%lo", DAT_00109890 != 1)) {\n    __format = "0x%lx";\n  }\n  sprintf((char *)local_38,__format,param_1);\n  puVar2 = local_38;\n  do {\n    puVar1 = puVar2;\n    uVar3 = *puVar1 + 0xfefefeff & ~*puVar1;\n    uVar4 = uVar3 & 0x80808080;\n    puVar2 = puVar1 + 1;\n  } while (uVar4 == 0);\n  bVar5 = (uVar3 & 0x8080) == 0;\n  if (bVar5) {\n    uVar4 = uVar4 >> 0x10;\n  }\n  if (bVar5) {\n    puVar2 = (uint *)((long)puVar1 + 6);\n  }\n  return (long)puVar2 + ((-3 - (ulong)CARRY1((byte)uVar4,(byte)uVar4)) - (long)local_38);\n}" (sized_type_specifier "long" long) (function_declarator "FUN_00102a90(undefined8 param_1)" identifier (parameter_list "(undefined8 param_1)" ( (parameter_declaration "undefined8 param_1" type_identifier identifier) ))) (compound_statement "{\n  uint *puVar1;\n  uint *puVar2;\n  uint uVar3;\n  uint uVar4;\n  char *__format;\n  bool bVar5;\n  uint local_38 [12];\n  \n  __format = "%lu";\n  if ((DAT_00109890 != 0) && (__format = "0%lo", DAT_00109890 != 1)) {\n    __format = "0x%lx";\n  }\n  sprintf((char *)local_38,__format,param_1);\n  puVar2 = local_38;\n  do {\n    puVar1 = puVar2;\n    uVar3 = *puVar1 + 0xfefefeff & ~*puVar1;\n    uVar4 = uVar3 & 0x80808080;\n    puVar2 = puVar1 + 1;\n  } while (uVar4 == 0);\n  bVar5 = (uVar3 & 0x8080) == 0;\n  if (bVar5) {\n    uVar4 = uVar4 >> 0x10;\n  }\n  if (bVar5) {\n    puVar2 = (uint *)((long)puVar1 + 6);\n  }\n  return (long)puVar2 + ((-3 - (ulong)CARRY1((byte)uVar4,(byte)uVar4)) - (long)local_38);\n}" { (declaration "uint *puVar1;" type_identifier (pointer_declarator "*puVar1" * identifier) ;) (declaration "uint *puVar2;" type_identifier (pointer_declarator "*puVar2" * identifier) ;) (declaration "uint uVar3;" type_identifier identifier ;) (declaration "uint uVar4;" type_identifier identifier ;) (declaration "char *__format;" primitive_type (pointer_declarator "*__format" * identifier) ;) (declaration "bool bVar5;" primitive_type identifier ;) (declaration "uint local_38 [12];" type_identifier (array_declarator "local_38 [12]" identifier [ number_literal ]) ;) (expression_statement "__format = "%lu";" (assignment_expression "__format = "%lu"" identifier = (string_literal ""%lu"" " string_content ")) ;) (if_statement "if ((DAT_00109890 != 0) && (__format = "0%lo", DAT_00109890 != 1)) {\n    __format = "0x%lx";\n  }" if (parenthesized_expression "((DAT_00109890 != 0) && (__format = "0%lo", DAT_00109890 != 1))" ( (binary_expression "(DAT_00109890 != 0) && (__format = "0%lo", DAT_00109890 != 1)" (parenthesized_expression "(DAT_00109890 != 0)" ( (binary_expression "DAT_00109890 != 0" identifier != number_literal) )) && (parenthesized_expression "(__format = "0%lo", DAT_00109890 != 1)" ( (comma_expression "__format = "0%lo", DAT_00109890 != 1" (assignment_expression "__format = "0%lo"" identifier = (string_literal ""0%lo"" " string_content ")) , (binary_expression "DAT_00109890 != 1" identifier != number_literal)) ))) )) (compound_statement "{\n    __format = "0x%lx";\n  }" { (expression_statement "__format = "0x%lx";" (assignment_expression "__format = "0x%lx"" identifier = (string_literal ""0x%lx"" " string_content ")) ;) })) (expression_statement "sprintf((char *)local_38,__format,param_1);" (call_expression "sprintf((char *)local_38,__format,param_1)" identifier (argument_list "((char *)local_38,__format,param_1)" ( (cast_expression "(char *)local_38" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) identifier) , identifier , identifier ))) ;) (expression_statement "puVar2 = local_38;" (assignment_expression "puVar2 = local_38" identifier = identifier) ;) (do_statement "do {\n    puVar1 = puVar2;\n    uVar3 = *puVar1 + 0xfefefeff & ~*puVar1;\n    uVar4 = uVar3 & 0x80808080;\n    puVar2 = puVar1 + 1;\n  } while (uVar4 == 0);" do (compound_statement "{\n    puVar1 = puVar2;\n    uVar3 = *puVar1 + 0xfefefeff & ~*puVar1;\n    uVar4 = uVar3 & 0x80808080;\n    puVar2 = puVar1 + 1;\n  }" { (expression_statement "puVar1 = puVar2;" (assignment_expression "puVar1 = puVar2" identifier = identifier) ;) (expression_statement "uVar3 = *puVar1 + 0xfefefeff & ~*puVar1;" (assignment_expression "uVar3 = *puVar1 + 0xfefefeff & ~*puVar1" identifier = (binary_expression "*puVar1 + 0xfefefeff & ~*puVar1" (binary_expression "*puVar1 + 0xfefefeff" (pointer_expression "*puVar1" * identifier) + number_literal) & (unary_expression "~*puVar1" ~ (pointer_expression "*puVar1" * identifier)))) ;) (expression_statement "uVar4 = uVar3 & 0x80808080;" (assignment_expression "uVar4 = uVar3 & 0x80808080" identifier = (binary_expression "uVar3 & 0x80808080" identifier & number_literal)) ;) (expression_statement "puVar2 = puVar1 + 1;" (assignment_expression "puVar2 = puVar1 + 1" identifier = (binary_expression "puVar1 + 1" identifier + number_literal)) ;) }) while (parenthesized_expression "(uVar4 == 0)" ( (binary_expression "uVar4 == 0" identifier == number_literal) )) ;) (expression_statement "bVar5 = (uVar3 & 0x8080) == 0;" (assignment_expression "bVar5 = (uVar3 & 0x8080) == 0" identifier = (binary_expression "(uVar3 & 0x8080) == 0" (parenthesized_expression "(uVar3 & 0x8080)" ( (binary_expression "uVar3 & 0x8080" identifier & number_literal) )) == number_literal)) ;) (if_statement "if (bVar5) {\n    uVar4 = uVar4 >> 0x10;\n  }" if (parenthesized_expression "(bVar5)" ( identifier )) (compound_statement "{\n    uVar4 = uVar4 >> 0x10;\n  }" { (expression_statement "uVar4 = uVar4 >> 0x10;" (assignment_expression "uVar4 = uVar4 >> 0x10" identifier = (binary_expression "uVar4 >> 0x10" identifier >> number_literal)) ;) })) (if_statement "if (bVar5) {\n    puVar2 = (uint *)((long)puVar1 + 6);\n  }" if (parenthesized_expression "(bVar5)" ( identifier )) (compound_statement "{\n    puVar2 = (uint *)((long)puVar1 + 6);\n  }" { (expression_statement "puVar2 = (uint *)((long)puVar1 + 6);" (assignment_expression "puVar2 = (uint *)((long)puVar1 + 6)" identifier = (cast_expression "(uint *)((long)puVar1 + 6)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((long)puVar1 + 6)" ( (binary_expression "(long)puVar1 + 6" (cast_expression "(long)puVar1" ( (type_descriptor "long" (sized_type_specifier "long" long)) ) identifier) + number_literal) )))) ;) })) (return_statement "return (long)puVar2 + ((-3 - (ulong)CARRY1((byte)uVar4,(byte)uVar4)) - (long)local_38);" return (binary_expression "(long)puVar2 + ((-3 - (ulong)CARRY1((byte)uVar4,(byte)uVar4)) - (long)local_38)" (cast_expression "(long)puVar2" ( (type_descriptor "long" (sized_type_specifier "long" long)) ) identifier) + (parenthesized_expression "((-3 - (ulong)CARRY1((byte)uVar4,(byte)uVar4)) - (long)local_38)" ( (binary_expression "(-3 - (ulong)CARRY1((byte)uVar4,(byte)uVar4)) - (long)local_38" (parenthesized_expression "(-3 - (ulong)CARRY1((byte)uVar4,(byte)uVar4))" ( (binary_expression "-3 - (ulong)CARRY1((byte)uVar4,(byte)uVar4)" number_literal - (cast_expression "(ulong)CARRY1((byte)uVar4,(byte)uVar4)" ( (type_descriptor "ulong" type_identifier) ) (call_expression "CARRY1((byte)uVar4,(byte)uVar4)" identifier (argument_list "((byte)uVar4,(byte)uVar4)" ( (cast_expression "(byte)uVar4" ( (type_descriptor "byte" type_identifier) ) identifier) , (cast_expression "(byte)uVar4" ( (type_descriptor "byte" type_identifier) ) identifier) ))))) )) - (cast_expression "(long)local_38" ( (type_descriptor "long" (sized_type_specifier "long" long)) ) identifier)) ))) ;) })))
(translation_unit (function_definition (sized_type_specifier long) (function_declarator IDENT (parameter_list ( (parameter_declaration TYPE IDENT) ))) (compound_statement { (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE IDENT ;) (declaration TYPE (array_declarator IDENT [ LIT ]) ;) (expression_statement (assignment_expression IDENT = (string_literal " string_content ")) ;) (if_statement if (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression IDENT != LIT) )) && (parenthesized_expression ( (comma_expression (assignment_expression IDENT = (string_literal " string_content ")) , (binary_expression IDENT != LIT)) ))) )) (compound_statement { (expression_statement (assignment_expression IDENT = (string_literal " string_content ")) ;) })) (expression_statement (call_expression IDENT (argument_list ( (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT) , IDENT , IDENT ))) ;) (expression_statement (assignment_expression IDENT = IDENT) ;) (do_statement do (compound_statement { (expression_statement (assignment_expression IDENT = IDENT) ;) (expression_statement (assignment_expression IDENT = (binary_expression (binary_expression (pointer_expression * IDENT) + LIT) & (unary_expression ~ (pointer_expression * IDENT)))) ;) (expression_statement (assignment_expression IDENT = (binary_expression IDENT & LIT)) ;) (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) }) while (parenthesized_expression ( (binary_expression IDENT == LIT) )) ;) (expression_statement (assignment_expression IDENT = (binary_expression (parenthesized_expression ( (binary_expression IDENT & LIT) )) == LIT)) ;) (if_statement if (parenthesized_expression ( IDENT )) (compound_statement { (expression_statement (assignment_expression IDENT = (binary_expression IDENT >> LIT)) ;) })) (if_statement if (parenthesized_expression ( IDENT )) (compound_statement { (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression (cast_expression ( (type_descriptor (sized_type_specifier long)) ) IDENT) + LIT) )))) ;) })) (return_statement return (binary_expression (cast_expression ( (type_descriptor (sized_type_specifier long)) ) IDENT) + (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression LIT - (cast_expression ( (type_descriptor TYPE) ) (call_expression IDENT (argument_list ( (cast_expression ( (type_descriptor TYPE) ) IDENT) , (cast_expression ( (type_descriptor TYPE) ) IDENT) ))))) )) - (cast_expression ( (type_descriptor (sized_type_specifier long)) ) IDENT)) ))) ;) })))
(function_definition "long FUN_00102a90(undefined8 param_1)\n\n{\n  uint *puVar1;\n  uint *puVar2;\n  uint uVar3;\n  uint uVar4;\n  char *__format;\n  bool bVar5;\n  uint local_38 [12];\n  \n  __format = "%lu";\n  if ((DAT_00109890 != 0) && (__format = "0%lo", DAT_00109890 != 1)) {\n    __format = "0x%lx";\n  }\n  sprintf((char *)local_38,__format,param_1);\n  puVar2 = local_38;\n  do {\n    puVar1 = puVar2;\n    uVar3 = *puVar1 + 0xfefefeff & ~*puVar1;\n    uVar4 = uVar3 & 0x80808080;\n    puVar2 = puVar1 + 1;\n  } while (uVar4 == 0);\n  bVar5 = (uVar3 & 0x8080) == 0;\n  if (bVar5) {\n    uVar4 = uVar4 >> 0x10;\n  }\n  if (bVar5) {\n    puVar2 = (uint *)((long)puVar1 + 6);\n  }\n  return (long)puVar2 + ((-3 - (ulong)CARRY1((byte)uVar4,(byte)uVar4)) - (long)local_38);\n}" (sized_type_specifier "long" (long "long")) (function_declarator "FUN_00102a90(undefined8 param_1)" (identifier "FUN_00102a90") (parameter_list "(undefined8 param_1)" (( "(") (parameter_declaration "undefined8 param_1" (type_identifier "undefined8") (identifier "param_1")) () ")"))) (compound_statement "{\n  uint *puVar1;\n  uint *puVar2;\n  uint uVar3;\n  uint uVar4;\n  char *__format;\n  bool bVar5;\n  uint local_38 [12];\n  \n  __format = "%lu";\n  if ((DAT_00109890 != 0) && (__format = "0%lo", DAT_00109890 != 1)) {\n    __format = "0x%lx";\n  }\n  sprintf((char *)local_38,__format,param_1);\n  puVar2 = local_38;\n  do {\n    puVar1 = puVar2;\n    uVar3 = *puVar1 + 0xfefefeff & ~*puVar1;\n    uVar4 = uVar3 & 0x80808080;\n    puVar2 = puVar1 + 1;\n  } while (uVar4 == 0);\n  bVar5 = (uVar3 & 0x8080) == 0;\n  if (bVar5) {\n    uVar4 = uVar4 >> 0x10;\n  }\n  if (bVar5) {\n    puVar2 = (uint *)((long)puVar1 + 6);\n  }\n  return (long)puVar2 + ((-3 - (ulong)CARRY1((byte)uVar4,(byte)uVar4)) - (long)local_38);\n}" ({ "{") (declaration "uint *puVar1;" (type_identifier "uint") (pointer_declarator "*puVar1" (* "*") (identifier "puVar1")) (; ";")) (declaration "uint *puVar2;" (type_identifier "uint") (pointer_declarator "*puVar2" (* "*") (identifier "puVar2")) (; ";")) (declaration "uint uVar3;" (type_identifier "uint") (identifier "uVar3") (; ";")) (declaration "uint uVar4;" (type_identifier "uint") (identifier "uVar4") (; ";")) (declaration "char *__format;" (primitive_type "char") (pointer_declarator "*__format" (* "*") (identifier "__format")) (; ";")) (declaration "bool bVar5;" (primitive_type "bool") (identifier "bVar5") (; ";")) (declaration "uint local_38 [12];" (type_identifier "uint") (array_declarator "local_38 [12]" (identifier "local_38") ([ "[") (number_literal "12") (] "]")) (; ";")) (expression_statement "__format = "%lu";" (assignment_expression "__format = "%lu"" (identifier "__format") (= "=") (string_literal ""%lu"" (" """) (string_content "%lu") (" """))) (; ";")) (if_statement "if ((DAT_00109890 != 0) && (__format = "0%lo", DAT_00109890 != 1)) {\n    __format = "0x%lx";\n  }" (if "if") (parenthesized_expression "((DAT_00109890 != 0) && (__format = "0%lo", DAT_00109890 != 1))" (( "(") (binary_expression "(DAT_00109890 != 0) && (__format = "0%lo", DAT_00109890 != 1)" (parenthesized_expression "(DAT_00109890 != 0)" (( "(") (binary_expression "DAT_00109890 != 0" (identifier "DAT_00109890") (!= "!=") (number_literal "0")) () ")")) (&& "&&") (parenthesized_expression "(__format = "0%lo", DAT_00109890 != 1)" (( "(") (comma_expression "__format = "0%lo", DAT_00109890 != 1" (assignment_expression "__format = "0%lo"" (identifier "__format") (= "=") (string_literal ""0%lo"" (" """) (string_content "0%lo") (" """))) (, ",") (binary_expression "DAT_00109890 != 1" (identifier "DAT_00109890") (!= "!=") (number_literal "1"))) () ")"))) () ")")) (compound_statement "{\n    __format = "0x%lx";\n  }" ({ "{") (expression_statement "__format = "0x%lx";" (assignment_expression "__format = "0x%lx"" (identifier "__format") (= "=") (string_literal ""0x%lx"" (" """) (string_content "0x%lx") (" """))) (; ";")) (} "}"))) (expression_statement "sprintf((char *)local_38,__format,param_1);" (call_expression "sprintf((char *)local_38,__format,param_1)" (identifier "sprintf") (argument_list "((char *)local_38,__format,param_1)" (( "(") (cast_expression "(char *)local_38" (( "(") (type_descriptor "char *" (primitive_type "char") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "local_38")) (, ",") (identifier "__format") (, ",") (identifier "param_1") () ")"))) (; ";")) (expression_statement "puVar2 = local_38;" (assignment_expression "puVar2 = local_38" (identifier "puVar2") (= "=") (identifier "local_38")) (; ";")) (do_statement "do {\n    puVar1 = puVar2;\n    uVar3 = *puVar1 + 0xfefefeff & ~*puVar1;\n    uVar4 = uVar3 & 0x80808080;\n    puVar2 = puVar1 + 1;\n  } while (uVar4 == 0);" (do "do") (compound_statement "{\n    puVar1 = puVar2;\n    uVar3 = *puVar1 + 0xfefefeff & ~*puVar1;\n    uVar4 = uVar3 & 0x80808080;\n    puVar2 = puVar1 + 1;\n  }" ({ "{") (expression_statement "puVar1 = puVar2;" (assignment_expression "puVar1 = puVar2" (identifier "puVar1") (= "=") (identifier "puVar2")) (; ";")) (expression_statement "uVar3 = *puVar1 + 0xfefefeff & ~*puVar1;" (assignment_expression "uVar3 = *puVar1 + 0xfefefeff & ~*puVar1" (identifier "uVar3") (= "=") (binary_expression "*puVar1 + 0xfefefeff & ~*puVar1" (binary_expression "*puVar1 + 0xfefefeff" (pointer_expression "*puVar1" (* "*") (identifier "puVar1")) (+ "+") (number_literal "0xfefefeff")) (& "&") (unary_expression "~*puVar1" (~ "~") (pointer_expression "*puVar1" (* "*") (identifier "puVar1"))))) (; ";")) (expression_statement "uVar4 = uVar3 & 0x80808080;" (assignment_expression "uVar4 = uVar3 & 0x80808080" (identifier "uVar4") (= "=") (binary_expression "uVar3 & 0x80808080" (identifier "uVar3") (& "&") (number_literal "0x80808080"))) (; ";")) (expression_statement "puVar2 = puVar1 + 1;" (assignment_expression "puVar2 = puVar1 + 1" (identifier "puVar2") (= "=") (binary_expression "puVar1 + 1" (identifier "puVar1") (+ "+") (number_literal "1"))) (; ";")) (} "}")) (while "while") (parenthesized_expression "(uVar4 == 0)" (( "(") (binary_expression "uVar4 == 0" (identifier "uVar4") (== "==") (number_literal "0")) () ")")) (; ";")) (expression_statement "bVar5 = (uVar3 & 0x8080) == 0;" (assignment_expression "bVar5 = (uVar3 & 0x8080) == 0" (identifier "bVar5") (= "=") (binary_expression "(uVar3 & 0x8080) == 0" (parenthesized_expression "(uVar3 & 0x8080)" (( "(") (binary_expression "uVar3 & 0x8080" (identifier "uVar3") (& "&") (number_literal "0x8080")) () ")")) (== "==") (number_literal "0"))) (; ";")) (if_statement "if (bVar5) {\n    uVar4 = uVar4 >> 0x10;\n  }" (if "if") (parenthesized_expression "(bVar5)" (( "(") (identifier "bVar5") () ")")) (compound_statement "{\n    uVar4 = uVar4 >> 0x10;\n  }" ({ "{") (expression_statement "uVar4 = uVar4 >> 0x10;" (assignment_expression "uVar4 = uVar4 >> 0x10" (identifier "uVar4") (= "=") (binary_expression "uVar4 >> 0x10" (identifier "uVar4") (>> ">>") (number_literal "0x10"))) (; ";")) (} "}"))) (if_statement "if (bVar5) {\n    puVar2 = (uint *)((long)puVar1 + 6);\n  }" (if "if") (parenthesized_expression "(bVar5)" (( "(") (identifier "bVar5") () ")")) (compound_statement "{\n    puVar2 = (uint *)((long)puVar1 + 6);\n  }" ({ "{") (expression_statement "puVar2 = (uint *)((long)puVar1 + 6);" (assignment_expression "puVar2 = (uint *)((long)puVar1 + 6)" (identifier "puVar2") (= "=") (cast_expression "(uint *)((long)puVar1 + 6)" (( "(") (type_descriptor "uint *" (type_identifier "uint") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "((long)puVar1 + 6)" (( "(") (binary_expression "(long)puVar1 + 6" (cast_expression "(long)puVar1" (( "(") (type_descriptor "long" (sized_type_specifier "long" (long "long"))) () ")") (identifier "puVar1")) (+ "+") (number_literal "6")) () ")")))) (; ";")) (} "}"))) (return_statement "return (long)puVar2 + ((-3 - (ulong)CARRY1((byte)uVar4,(byte)uVar4)) - (long)local_38);" (return "return") (binary_expression "(long)puVar2 + ((-3 - (ulong)CARRY1((byte)uVar4,(byte)uVar4)) - (long)local_38)" (cast_expression "(long)puVar2" (( "(") (type_descriptor "long" (sized_type_specifier "long" (long "long"))) () ")") (identifier "puVar2")) (+ "+") (parenthesized_expression "((-3 - (ulong)CARRY1((byte)uVar4,(byte)uVar4)) - (long)local_38)" (( "(") (binary_expression "(-3 - (ulong)CARRY1((byte)uVar4,(byte)uVar4)) - (long)local_38" (parenthesized_expression "(-3 - (ulong)CARRY1((byte)uVar4,(byte)uVar4))" (( "(") (binary_expression "-3 - (ulong)CARRY1((byte)uVar4,(byte)uVar4)" (number_literal "-3") (- "-") (cast_expression "(ulong)CARRY1((byte)uVar4,(byte)uVar4)" (( "(") (type_descriptor "ulong" (type_identifier "ulong")) () ")") (call_expression "CARRY1((byte)uVar4,(byte)uVar4)" (identifier "CARRY1") (argument_list "((byte)uVar4,(byte)uVar4)" (( "(") (cast_expression "(byte)uVar4" (( "(") (type_descriptor "byte" (type_identifier "byte")) () ")") (identifier "uVar4")) (, ",") (cast_expression "(byte)uVar4" (( "(") (type_descriptor "byte" (type_identifier "byte")) () ")") (identifier "uVar4")) () ")"))))) () ")")) (- "-") (cast_expression "(long)local_38" (( "(") (type_descriptor "long" (sized_type_specifier "long" (long "long"))) () ")") (identifier "local_38"))) () ")"))) (; ";")) (} "}")))

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

int function_1(type_1 num)

{
  type_2 *var_6;
  type_2 *puVar2;
  type_2 var_5;
  type_2 var_7;
  char *__format;
  bool bVar5;
  char buffer [40];
  
  __format = "%lu";
  if ((var_1 != var_2) && (__format = "0%lo", var_1 != var_3)) {
    __format = "0x%lx";
  }
  var_4(buffer,__format,num);
  puVar2 = (type_2 *)buffer;
  do {
    var_6 = puVar2;
    var_5 = *var_6 + 0xfefefeff & ~*var_6;
    var_7 = var_5 & 0x80808080;
    puVar2 = var_6 + 1;
  } while (var_7 == 0);
  bVar5 = (var_5 & 0x8080) == 0;
  if (bVar5) {
    var_7 = var_7 >> 0x10;
  }
  if (bVar5) {
    puVar2 = (type_2 *)((long)var_6 + 6);
  }
  return (((int)puVar2 + -3) - (type_2)var_8((type_3)var_7,(type_3)var_7)) - (int)buffer;
}


(translation_unit (function_definition type: (sized_type_specifier) declarator: (function_declarator declarator: (identifier) parameters: (parameter_list (parameter_declaration type: (type_identifier) declarator: (identifier)))) body: (compound_statement (declaration type: (type_identifier) declarator: (pointer_declarator declarator: (identifier))) (declaration type: (type_identifier) declarator: (pointer_declarator declarator: (identifier))) (declaration type: (type_identifier) declarator: (identifier)) (declaration type: (type_identifier) declarator: (identifier)) (declaration type: (primitive_type) declarator: (pointer_declarator declarator: (identifier))) (declaration type: (primitive_type) declarator: (identifier)) (declaration type: (type_identifier) declarator: (array_declarator declarator: (identifier) size: (number_literal))) (expression_statement (assignment_expression left: (identifier) right: (string_literal (string_content)))) (if_statement condition: (parenthesized_expression (binary_expression left: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))) right: (parenthesized_expression (comma_expression left: (assignment_expression left: (identifier) right: (string_literal (string_content))) right: (binary_expression left: (identifier) right: (number_literal)))))) consequence: (compound_statement (expression_statement (assignment_expression left: (identifier) right: (string_literal (string_content)))))) (expression_statement (call_expression function: (identifier) arguments: (argument_list (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (identifier)) (identifier) (identifier)))) (expression_statement (assignment_expression left: (identifier) right: (identifier))) (do_statement body: (compound_statement (expression_statement (assignment_expression left: (identifier) right: (identifier))) (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (binary_expression left: (pointer_expression argument: (identifier)) right: (number_literal)) right: (unary_expression argument: (pointer_expression argument: (identifier)))))) (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (identifier) right: (number_literal)))) (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (identifier) right: (number_literal))))) condition: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal)))) (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))) right: (number_literal)))) (if_statement condition: (parenthesized_expression (identifier)) consequence: (compound_statement (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (identifier) right: (number_literal)))))) (if_statement condition: (parenthesized_expression (identifier)) consequence: (compound_statement (expression_statement (assignment_expression left: (identifier) right: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (cast_expression type: (type_descriptor type: (sized_type_specifier)) value: (identifier)) right: (number_literal)))))))) (return_statement (binary_expression left: (cast_expression type: (type_descriptor type: (sized_type_specifier)) value: (identifier)) right: (parenthesized_expression (binary_expression left: (parenthesized_expression (binary_expression left: (number_literal) right: (cast_expression type: (type_descriptor type: (type_identifier)) value: (call_expression function: (identifier) arguments: (argument_list (cast_expression type: (type_descriptor type: (type_identifier)) value: (identifier)) (cast_expression type: (type_descriptor type: (type_identifier)) value: (identifier))))))) right: (cast_expression type: (type_descriptor type: (sized_type_specifier)) value: (identifier)))))))))

long MASKED(undefined8 param_1)

{
  uint *puVar1;
  uint *puVar2;
  uint uVar3;
  uint uVar4;
  char *__format;
  bool bVar5;
  uint local_38 [12];
  
  __format = "%lu";
  if ((DAT_00109890 != 0) && (__format = "0%lo", DAT_00109890 != 1)) {
    __format = "0x%lx";
  }
  sprintf((char *)local_38,__format,param_1);
  puVar2 = local_38;
  do {
    puVar1 = puVar2;
    uVar3 = *puVar1 + 0xfefefeff & ~*puVar1;
    uVar4 = uVar3 & 0x80808080;
    puVar2 = puVar1 + 1;
  } while (uVar4 == 0);
  bVar5 = (uVar3 & 0x8080) == 0;
  if (bVar5) {
    uVar4 = uVar4 >> 0x10;
  }
  if (bVar5) {
    puVar2 = (uint *)((long)puVar1 + 6);
  }
  return (long)puVar2 + ((-3 - (ulong)CARRY1((byte)uVar4,(byte)uVar4)) - (long)local_38);
}

