
char * mitos(intmax_t i)

{
  long lVar1;
  char *pcVar2;
  long in_FS_OFFSET;
  char lbuf [22];
  
  lVar1 = *(long *)(in_FS_OFFSET + 0x28);
  pcVar2 = fmtumax(i,10,lbuf,0x16,0);
  pcVar2 = strdup(pcVar2);
  if (lVar1 == *(long *)(in_FS_OFFSET + 0x28)) {
    return pcVar2;
  }
                    /* WARNING: Subroutine does not return */
  __stack_chk_fail();
}



void mitos(undefined8 param_1)

{
  char *__s;
  long in_FS_OFFSET;
  undefined1 auStack_28 [24];
  long local_10;
  
  local_10 = *(long *)(in_FS_OFFSET + 0x28);
  __s = (char *)fmtumax(param_1,10,auStack_28,0x16,0);
  strdup(__s);
  if (local_10 == *(long *)(in_FS_OFFSET + 0x28)) {
    return;
  }
                    /* WARNING: Subroutine does not return */
  __stack_chk_fail();
}


PUSH RBX
SUB RSP,0x20
MOV EBX,0x28
MOV RAX,qword ptr FS:[RBX]
MOV qword ptr [RSP + 0x18],RAX
XOR EAX,EAX
MOV RDX,RSP
MOV R8D,0x0
MOV ECX,0x16
MOV ESI,0xa
CALL 0x001ac5aa
MOV RDI,RAX
CALL 0x0012dc60
MOV RCX,qword ptr [RSP + 0x18]
XOR RCX,qword ptr FS:[RBX]
JNZ 0x001a7bf5
ADD RSP,0x20
POP RBX
RET
CALL 0x0012d3b0
(translation_unit "void mitos(undefined8 param_1)\n\n{\n  char *__s;\n  long in_FS_OFFSET;\n  undefined1 auStack_28 [24];\n  long local_10;\n  \n  local_10 = *(long *)(in_FS_OFFSET + 0x28);\n  __s = (char *)fmtumax(param_1,10,auStack_28,0x16,0);\n  strdup(__s);\n  if (local_10 == *(long *)(in_FS_OFFSET + 0x28)) {\n    return;\n  }\n                    /* WARNING: Subroutine does not return */\n  __stack_chk_fail();\n}\n\n" (function_definition "void mitos(undefined8 param_1)\n\n{\n  char *__s;\n  long in_FS_OFFSET;\n  undefined1 auStack_28 [24];\n  long local_10;\n  \n  local_10 = *(long *)(in_FS_OFFSET + 0x28);\n  __s = (char *)fmtumax(param_1,10,auStack_28,0x16,0);\n  strdup(__s);\n  if (local_10 == *(long *)(in_FS_OFFSET + 0x28)) {\n    return;\n  }\n                    /* WARNING: Subroutine does not return */\n  __stack_chk_fail();\n}" primitive_type (function_declarator "mitos(undefined8 param_1)" identifier (parameter_list "(undefined8 param_1)" ( (parameter_declaration "undefined8 param_1" type_identifier identifier) ))) (compound_statement "{\n  char *__s;\n  long in_FS_OFFSET;\n  undefined1 auStack_28 [24];\n  long local_10;\n  \n  local_10 = *(long *)(in_FS_OFFSET + 0x28);\n  __s = (char *)fmtumax(param_1,10,auStack_28,0x16,0);\n  strdup(__s);\n  if (local_10 == *(long *)(in_FS_OFFSET + 0x28)) {\n    return;\n  }\n                    /* WARNING: Subroutine does not return */\n  __stack_chk_fail();\n}" { (declaration "char *__s;" primitive_type (pointer_declarator "*__s" * identifier) ;) (declaration "long in_FS_OFFSET;" (sized_type_specifier "long" long) identifier ;) (declaration "undefined1 auStack_28 [24];" type_identifier (array_declarator "auStack_28 [24]" identifier [ number_literal ]) ;) (declaration "long local_10;" (sized_type_specifier "long" long) identifier ;) (expression_statement "local_10 = *(long *)(in_FS_OFFSET + 0x28);" (assignment_expression "local_10 = *(long *)(in_FS_OFFSET + 0x28)" identifier = (pointer_expression "*(long *)(in_FS_OFFSET + 0x28)" * (cast_expression "(long *)(in_FS_OFFSET + 0x28)" ( (type_descriptor "long *" (sized_type_specifier "long" long) (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(in_FS_OFFSET + 0x28)" ( (binary_expression "in_FS_OFFSET + 0x28" identifier + number_literal) ))))) ;) (expression_statement "__s = (char *)fmtumax(param_1,10,auStack_28,0x16,0);" (assignment_expression "__s = (char *)fmtumax(param_1,10,auStack_28,0x16,0)" identifier = (cast_expression "(char *)fmtumax(param_1,10,auStack_28,0x16,0)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (call_expression "fmtumax(param_1,10,auStack_28,0x16,0)" identifier (argument_list "(param_1,10,auStack_28,0x16,0)" ( identifier , number_literal , identifier , number_literal , number_literal ))))) ;) (expression_statement "strdup(__s);" (call_expression "strdup(__s)" identifier (argument_list "(__s)" ( identifier ))) ;) (if_statement "if (local_10 == *(long *)(in_FS_OFFSET + 0x28)) {\n    return;\n  }" if (parenthesized_expression "(local_10 == *(long *)(in_FS_OFFSET + 0x28))" ( (binary_expression "local_10 == *(long *)(in_FS_OFFSET + 0x28)" identifier == (pointer_expression "*(long *)(in_FS_OFFSET + 0x28)" * (cast_expression "(long *)(in_FS_OFFSET + 0x28)" ( (type_descriptor "long *" (sized_type_specifier "long" long) (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(in_FS_OFFSET + 0x28)" ( (binary_expression "in_FS_OFFSET + 0x28" identifier + number_literal) ))))) )) (compound_statement "{\n    return;\n  }" { (return_statement "return;" return ;) })) comment (expression_statement "__stack_chk_fail();" (call_expression "__stack_chk_fail()" identifier (argument_list "()" ( ))) ;) })))
(translation_unit "char * mitos(intmax_t i)\n\n{\n  long lVar1;\n  char *pcVar2;\n  long in_FS_OFFSET;\n  char lbuf [22];\n  \n  lVar1 = *(long *)(in_FS_OFFSET + 0x28);\n  pcVar2 = fmtumax(i,10,lbuf,0x16,0);\n  pcVar2 = strdup(pcVar2);\n  if (lVar1 == *(long *)(in_FS_OFFSET + 0x28)) {\n    return pcVar2;\n  }\n                    /* WARNING: Subroutine does not return */\n  __stack_chk_fail();\n}\n\n" (function_definition "char * mitos(intmax_t i)\n\n{\n  long lVar1;\n  char *pcVar2;\n  long in_FS_OFFSET;\n  char lbuf [22];\n  \n  lVar1 = *(long *)(in_FS_OFFSET + 0x28);\n  pcVar2 = fmtumax(i,10,lbuf,0x16,0);\n  pcVar2 = strdup(pcVar2);\n  if (lVar1 == *(long *)(in_FS_OFFSET + 0x28)) {\n    return pcVar2;\n  }\n                    /* WARNING: Subroutine does not return */\n  __stack_chk_fail();\n}" primitive_type (pointer_declarator "* mitos(intmax_t i)" * (function_declarator "mitos(intmax_t i)" identifier (parameter_list "(intmax_t i)" ( (parameter_declaration "intmax_t i" type_identifier identifier) )))) (compound_statement "{\n  long lVar1;\n  char *pcVar2;\n  long in_FS_OFFSET;\n  char lbuf [22];\n  \n  lVar1 = *(long *)(in_FS_OFFSET + 0x28);\n  pcVar2 = fmtumax(i,10,lbuf,0x16,0);\n  pcVar2 = strdup(pcVar2);\n  if (lVar1 == *(long *)(in_FS_OFFSET + 0x28)) {\n    return pcVar2;\n  }\n                    /* WARNING: Subroutine does not return */\n  __stack_chk_fail();\n}" { (declaration "long lVar1;" (sized_type_specifier "long" long) identifier ;) (declaration "char *pcVar2;" primitive_type (pointer_declarator "*pcVar2" * identifier) ;) (declaration "long in_FS_OFFSET;" (sized_type_specifier "long" long) identifier ;) (declaration "char lbuf [22];" primitive_type (array_declarator "lbuf [22]" identifier [ number_literal ]) ;) (expression_statement "lVar1 = *(long *)(in_FS_OFFSET + 0x28);" (assignment_expression "lVar1 = *(long *)(in_FS_OFFSET + 0x28)" identifier = (pointer_expression "*(long *)(in_FS_OFFSET + 0x28)" * (cast_expression "(long *)(in_FS_OFFSET + 0x28)" ( (type_descriptor "long *" (sized_type_specifier "long" long) (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(in_FS_OFFSET + 0x28)" ( (binary_expression "in_FS_OFFSET + 0x28" identifier + number_literal) ))))) ;) (expression_statement "pcVar2 = fmtumax(i,10,lbuf,0x16,0);" (assignment_expression "pcVar2 = fmtumax(i,10,lbuf,0x16,0)" identifier = (call_expression "fmtumax(i,10,lbuf,0x16,0)" identifier (argument_list "(i,10,lbuf,0x16,0)" ( identifier , number_literal , identifier , number_literal , number_literal )))) ;) (expression_statement "pcVar2 = strdup(pcVar2);" (assignment_expression "pcVar2 = strdup(pcVar2)" identifier = (call_expression "strdup(pcVar2)" identifier (argument_list "(pcVar2)" ( identifier )))) ;) (if_statement "if (lVar1 == *(long *)(in_FS_OFFSET + 0x28)) {\n    return pcVar2;\n  }" if (parenthesized_expression "(lVar1 == *(long *)(in_FS_OFFSET + 0x28))" ( (binary_expression "lVar1 == *(long *)(in_FS_OFFSET + 0x28)" identifier == (pointer_expression "*(long *)(in_FS_OFFSET + 0x28)" * (cast_expression "(long *)(in_FS_OFFSET + 0x28)" ( (type_descriptor "long *" (sized_type_specifier "long" long) (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(in_FS_OFFSET + 0x28)" ( (binary_expression "in_FS_OFFSET + 0x28" identifier + number_literal) ))))) )) (compound_statement "{\n    return pcVar2;\n  }" { (return_statement "return pcVar2;" return identifier ;) })) comment (expression_statement "__stack_chk_fail();" (call_expression "__stack_chk_fail()" identifier (argument_list "()" ( ))) ;) })))
(translation_unit "void mitos(undefined8 param_1)\n\n{\n  char *__s;\n  long in_FS_OFFSET;\n  undefined1 auStack_28 [24];\n  long local_10;\n  \n  local_10 = *(long *)(in_FS_OFFSET + 0x28);\n  __s = (char *)fmtumax(param_1,10,auStack_28,0x16,0);\n  strdup(__s);\n  if (local_10 == *(long *)(in_FS_OFFSET + 0x28)) {\n    return;\n  }\n                    \n  __stack_chk_fail();\n}\n\n" (function_definition "void mitos(undefined8 param_1)\n\n{\n  char *__s;\n  long in_FS_OFFSET;\n  undefined1 auStack_28 [24];\n  long local_10;\n  \n  local_10 = *(long *)(in_FS_OFFSET + 0x28);\n  __s = (char *)fmtumax(param_1,10,auStack_28,0x16,0);\n  strdup(__s);\n  if (local_10 == *(long *)(in_FS_OFFSET + 0x28)) {\n    return;\n  }\n                    \n  __stack_chk_fail();\n}" primitive_type (function_declarator "mitos(undefined8 param_1)" identifier (parameter_list "(undefined8 param_1)" ( (parameter_declaration "undefined8 param_1" type_identifier identifier) ))) (compound_statement "{\n  char *__s;\n  long in_FS_OFFSET;\n  undefined1 auStack_28 [24];\n  long local_10;\n  \n  local_10 = *(long *)(in_FS_OFFSET + 0x28);\n  __s = (char *)fmtumax(param_1,10,auStack_28,0x16,0);\n  strdup(__s);\n  if (local_10 == *(long *)(in_FS_OFFSET + 0x28)) {\n    return;\n  }\n                    \n  __stack_chk_fail();\n}" { (declaration "char *__s;" primitive_type (pointer_declarator "*__s" * identifier) ;) (declaration "long in_FS_OFFSET;" (sized_type_specifier "long" long) identifier ;) (declaration "undefined1 auStack_28 [24];" type_identifier (array_declarator "auStack_28 [24]" identifier [ number_literal ]) ;) (declaration "long local_10;" (sized_type_specifier "long" long) identifier ;) (expression_statement "local_10 = *(long *)(in_FS_OFFSET + 0x28);" (assignment_expression "local_10 = *(long *)(in_FS_OFFSET + 0x28)" identifier = (pointer_expression "*(long *)(in_FS_OFFSET + 0x28)" * (cast_expression "(long *)(in_FS_OFFSET + 0x28)" ( (type_descriptor "long *" (sized_type_specifier "long" long) (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(in_FS_OFFSET + 0x28)" ( (binary_expression "in_FS_OFFSET + 0x28" identifier + number_literal) ))))) ;) (expression_statement "__s = (char *)fmtumax(param_1,10,auStack_28,0x16,0);" (assignment_expression "__s = (char *)fmtumax(param_1,10,auStack_28,0x16,0)" identifier = (cast_expression "(char *)fmtumax(param_1,10,auStack_28,0x16,0)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (call_expression "fmtumax(param_1,10,auStack_28,0x16,0)" identifier (argument_list "(param_1,10,auStack_28,0x16,0)" ( identifier , number_literal , identifier , number_literal , number_literal ))))) ;) (expression_statement "strdup(__s);" (call_expression "strdup(__s)" identifier (argument_list "(__s)" ( identifier ))) ;) (if_statement "if (local_10 == *(long *)(in_FS_OFFSET + 0x28)) {\n    return;\n  }" if (parenthesized_expression "(local_10 == *(long *)(in_FS_OFFSET + 0x28))" ( (binary_expression "local_10 == *(long *)(in_FS_OFFSET + 0x28)" identifier == (pointer_expression "*(long *)(in_FS_OFFSET + 0x28)" * (cast_expression "(long *)(in_FS_OFFSET + 0x28)" ( (type_descriptor "long *" (sized_type_specifier "long" long) (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(in_FS_OFFSET + 0x28)" ( (binary_expression "in_FS_OFFSET + 0x28" identifier + number_literal) ))))) )) (compound_statement "{\n    return;\n  }" { (return_statement "return;" return ;) })) (expression_statement "__stack_chk_fail();" (call_expression "__stack_chk_fail()" identifier (argument_list "()" ( ))) ;) })))
(translation_unit (function_definition TYPE (function_declarator IDENT (parameter_list ( (parameter_declaration TYPE IDENT) ))) (compound_statement { (declaration TYPE (pointer_declarator * IDENT) ;) (declaration (sized_type_specifier long) IDENT ;) (declaration TYPE (array_declarator IDENT [ LIT ]) ;) (declaration (sized_type_specifier long) IDENT ;) (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor (sized_type_specifier long) (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) ;) (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (call_expression IDENT (argument_list ( IDENT , LIT , IDENT , LIT , LIT ))))) ;) (expression_statement (call_expression IDENT (argument_list ( IDENT ))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT == (pointer_expression * (cast_expression ( (type_descriptor (sized_type_specifier long) (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) )) (compound_statement { (return_statement return ;) })) (expression_statement (call_expression IDENT (argument_list ( ))) ;) })))
(function_definition "void mitos(undefined8 param_1)\n\n{\n  char *__s;\n  long in_FS_OFFSET;\n  undefined1 auStack_28 [24];\n  long local_10;\n  \n  local_10 = *(long *)(in_FS_OFFSET + 0x28);\n  __s = (char *)fmtumax(param_1,10,auStack_28,0x16,0);\n  strdup(__s);\n  if (local_10 == *(long *)(in_FS_OFFSET + 0x28)) {\n    return;\n  }\n                    \n  __stack_chk_fail();\n}" (primitive_type "void") (function_declarator "mitos(undefined8 param_1)" (identifier "mitos") (parameter_list "(undefined8 param_1)" (( "(") (parameter_declaration "undefined8 param_1" (type_identifier "undefined8") (identifier "param_1")) () ")"))) (compound_statement "{\n  char *__s;\n  long in_FS_OFFSET;\n  undefined1 auStack_28 [24];\n  long local_10;\n  \n  local_10 = *(long *)(in_FS_OFFSET + 0x28);\n  __s = (char *)fmtumax(param_1,10,auStack_28,0x16,0);\n  strdup(__s);\n  if (local_10 == *(long *)(in_FS_OFFSET + 0x28)) {\n    return;\n  }\n                    \n  __stack_chk_fail();\n}" ({ "{") (declaration "char *__s;" (primitive_type "char") (pointer_declarator "*__s" (* "*") (identifier "__s")) (; ";")) (declaration "long in_FS_OFFSET;" (sized_type_specifier "long" (long "long")) (identifier "in_FS_OFFSET") (; ";")) (declaration "undefined1 auStack_28 [24];" (type_identifier "undefined1") (array_declarator "auStack_28 [24]" (identifier "auStack_28") ([ "[") (number_literal "24") (] "]")) (; ";")) (declaration "long local_10;" (sized_type_specifier "long" (long "long")) (identifier "local_10") (; ";")) (expression_statement "local_10 = *(long *)(in_FS_OFFSET + 0x28);" (assignment_expression "local_10 = *(long *)(in_FS_OFFSET + 0x28)" (identifier "local_10") (= "=") (pointer_expression "*(long *)(in_FS_OFFSET + 0x28)" (* "*") (cast_expression "(long *)(in_FS_OFFSET + 0x28)" (( "(") (type_descriptor "long *" (sized_type_specifier "long" (long "long")) (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(in_FS_OFFSET + 0x28)" (( "(") (binary_expression "in_FS_OFFSET + 0x28" (identifier "in_FS_OFFSET") (+ "+") (number_literal "0x28")) () ")"))))) (; ";")) (expression_statement "__s = (char *)fmtumax(param_1,10,auStack_28,0x16,0);" (assignment_expression "__s = (char *)fmtumax(param_1,10,auStack_28,0x16,0)" (identifier "__s") (= "=") (cast_expression "(char *)fmtumax(param_1,10,auStack_28,0x16,0)" (( "(") (type_descriptor "char *" (primitive_type "char") (abstract_pointer_declarator "*" (* "*"))) () ")") (call_expression "fmtumax(param_1,10,auStack_28,0x16,0)" (identifier "fmtumax") (argument_list "(param_1,10,auStack_28,0x16,0)" (( "(") (identifier "param_1") (, ",") (number_literal "10") (, ",") (identifier "auStack_28") (, ",") (number_literal "0x16") (, ",") (number_literal "0") () ")"))))) (; ";")) (expression_statement "strdup(__s);" (call_expression "strdup(__s)" (identifier "strdup") (argument_list "(__s)" (( "(") (identifier "__s") () ")"))) (; ";")) (if_statement "if (local_10 == *(long *)(in_FS_OFFSET + 0x28)) {\n    return;\n  }" (if "if") (parenthesized_expression "(local_10 == *(long *)(in_FS_OFFSET + 0x28))" (( "(") (binary_expression "local_10 == *(long *)(in_FS_OFFSET + 0x28)" (identifier "local_10") (== "==") (pointer_expression "*(long *)(in_FS_OFFSET + 0x28)" (* "*") (cast_expression "(long *)(in_FS_OFFSET + 0x28)" (( "(") (type_descriptor "long *" (sized_type_specifier "long" (long "long")) (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(in_FS_OFFSET + 0x28)" (( "(") (binary_expression "in_FS_OFFSET + 0x28" (identifier "in_FS_OFFSET") (+ "+") (number_literal "0x28")) () ")"))))) () ")")) (compound_statement "{\n    return;\n  }" ({ "{") (return_statement "return;" (return "return") (; ";")) (} "}"))) (expression_statement "__stack_chk_fail();" (call_expression "__stack_chk_fail()" (identifier "__stack_chk_fail") (argument_list "()" (( "(") () ")"))) (; ";")) (} "}")))

char * function_1(type_1 i)

{
  long var_4;
  char *pcVar2;
  long var_1;
  char lbuf [22];
  
  var_4 = *(long *)(var_1 + 0x28);
  pcVar2 = var_2(i,10,lbuf,0x16,0);
  pcVar2 = var_3(pcVar2);
  if (var_4 == *(long *)(var_1 + 0x28)) {
    return pcVar2;
  }
                    /* WARNING: Subroutine does not return */
  var_5();
}


(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: (primitive_type) declarator: (pointer_declarator declarator: (identifier))) (declaration type: (sized_type_specifier) declarator: (identifier)) (declaration type: (type_identifier) declarator: (array_declarator declarator: (identifier) size: (number_literal))) (declaration type: (sized_type_specifier) declarator: (identifier)) (expression_statement (assignment_expression left: (identifier) right: (pointer_expression argument: (cast_expression type: (type_descriptor type: (sized_type_specifier) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))))))) (expression_statement (assignment_expression left: (identifier) right: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (call_expression function: (identifier) arguments: (argument_list (identifier) (number_literal) (identifier) (number_literal) (number_literal)))))) (expression_statement (call_expression function: (identifier) arguments: (argument_list (identifier)))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (pointer_expression argument: (cast_expression type: (type_descriptor type: (sized_type_specifier) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))))))) consequence: (compound_statement (return_statement))) (expression_statement (call_expression function: (identifier) arguments: (argument_list))))))

void MASKED(undefined8 param_1)

{
  char *__s;
  long in_FS_OFFSET;
  undefined1 auStack_28 [24];
  long local_10;
  
  local_10 = *(long *)(in_FS_OFFSET + 0x28);
  __s = (char *)fmtumax(param_1,10,auStack_28,0x16,0);
  strdup(__s);
  if (local_10 == *(long *)(in_FS_OFFSET + 0x28)) {
    return;
  }
                    /* WARNING: Subroutine does not return */
  __stack_chk_fail();
}

