
char * dwarf_vmatoa64(dwarf_vma hvalue,dwarf_vma lvalue,char *buf,uint buf_len)

{
  int iVar1;
  
  if (hvalue == 0) {
    snprintf(buf,0x40,"%lx",lvalue);
    return buf;
  }
  iVar1 = snprintf(buf,0x40,"%lx",hvalue);
  snprintf(buf + iVar1,(ulong)(0x40 - iVar1),"%08lx",lvalue);
  return buf;
}



char * FUN_001106c0(long param_1,undefined8 param_2,char *param_3)

{
  int iVar1;
  
  if (param_1 == 0) {
    snprintf(param_3,0x40,"%lx",param_2);
    return param_3;
  }
  iVar1 = snprintf(param_3,0x40,"%lx",param_1);
  snprintf(param_3 + iVar1,(ulong)(0x40 - iVar1),"%08lx",param_2);
  return param_3;
}


PUSH RBP
MOV RBP,RSI
PUSH RBX
MOV RBX,RDX
SUB RSP,0x8
TEST RDI,RDI
JNZ 0x001106f8
MOV RCX,RSI
MOV RDI,RBX
LEA RDX,[0x141a3f]
XOR EAX,EAX
MOV ESI,0x40
CALL 0x001072a0
ADD RSP,0x8
MOV RAX,RBX
POP RBX
POP RBP
RET
MOV RCX,RDI
LEA RDX,[0x141a3f]
MOV RDI,RBX
XOR EAX,EAX
MOV ESI,0x40
CALL 0x001072a0
MOV ESI,0x40
MOV RCX,RBP
LEA RDX,[0x1422c6]
SUB ESI,EAX
CDQE
LEA RDI,[RBX + RAX*0x1]
XOR EAX,EAX
CALL 0x001072a0
ADD RSP,0x8
MOV RAX,RBX
POP RBX
POP RBP
RET
(translation_unit "char * FUN_001106c0(long param_1,undefined8 param_2,char *param_3)\n\n{\n  int iVar1;\n  \n  if (param_1 == 0) {\n    snprintf(param_3,0x40,"%lx",param_2);\n    return param_3;\n  }\n  iVar1 = snprintf(param_3,0x40,"%lx",param_1);\n  snprintf(param_3 + iVar1,(ulong)(0x40 - iVar1),"%08lx",param_2);\n  return param_3;\n}\n\n" (function_definition "char * FUN_001106c0(long param_1,undefined8 param_2,char *param_3)\n\n{\n  int iVar1;\n  \n  if (param_1 == 0) {\n    snprintf(param_3,0x40,"%lx",param_2);\n    return param_3;\n  }\n  iVar1 = snprintf(param_3,0x40,"%lx",param_1);\n  snprintf(param_3 + iVar1,(ulong)(0x40 - iVar1),"%08lx",param_2);\n  return param_3;\n}" primitive_type (pointer_declarator "* FUN_001106c0(long param_1,undefined8 param_2,char *param_3)" * (function_declarator "FUN_001106c0(long param_1,undefined8 param_2,char *param_3)" identifier (parameter_list "(long param_1,undefined8 param_2,char *param_3)" ( (parameter_declaration "long param_1" (sized_type_specifier "long" long) identifier) , (parameter_declaration "undefined8 param_2" type_identifier identifier) , (parameter_declaration "char *param_3" primitive_type (pointer_declarator "*param_3" * identifier)) )))) (compound_statement "{\n  int iVar1;\n  \n  if (param_1 == 0) {\n    snprintf(param_3,0x40,"%lx",param_2);\n    return param_3;\n  }\n  iVar1 = snprintf(param_3,0x40,"%lx",param_1);\n  snprintf(param_3 + iVar1,(ulong)(0x40 - iVar1),"%08lx",param_2);\n  return param_3;\n}" { (declaration "int iVar1;" primitive_type identifier ;) (if_statement "if (param_1 == 0) {\n    snprintf(param_3,0x40,"%lx",param_2);\n    return param_3;\n  }" if (parenthesized_expression "(param_1 == 0)" ( (binary_expression "param_1 == 0" identifier == number_literal) )) (compound_statement "{\n    snprintf(param_3,0x40,"%lx",param_2);\n    return param_3;\n  }" { (expression_statement "snprintf(param_3,0x40,"%lx",param_2);" (call_expression "snprintf(param_3,0x40,"%lx",param_2)" identifier (argument_list "(param_3,0x40,"%lx",param_2)" ( identifier , number_literal , (string_literal ""%lx"" " string_content ") , identifier ))) ;) (return_statement "return param_3;" return identifier ;) })) (expression_statement "iVar1 = snprintf(param_3,0x40,"%lx",param_1);" (assignment_expression "iVar1 = snprintf(param_3,0x40,"%lx",param_1)" identifier = (call_expression "snprintf(param_3,0x40,"%lx",param_1)" identifier (argument_list "(param_3,0x40,"%lx",param_1)" ( identifier , number_literal , (string_literal ""%lx"" " string_content ") , identifier )))) ;) (expression_statement "snprintf(param_3 + iVar1,(ulong)(0x40 - iVar1),"%08lx",param_2);" (call_expression "snprintf(param_3 + iVar1,(ulong)(0x40 - iVar1),"%08lx",param_2)" identifier (argument_list "(param_3 + iVar1,(ulong)(0x40 - iVar1),"%08lx",param_2)" ( (binary_expression "param_3 + iVar1" identifier + identifier) , (call_expression "(ulong)(0x40 - iVar1)" (parenthesized_expression "(ulong)" ( identifier )) (argument_list "(0x40 - iVar1)" ( (binary_expression "0x40 - iVar1" number_literal - identifier) ))) , (string_literal ""%08lx"" " string_content ") , identifier ))) ;) (return_statement "return param_3;" return identifier ;) })))
(translation_unit "char * dwarf_vmatoa64(dwarf_vma hvalue,dwarf_vma lvalue,char *buf,uint buf_len)\n\n{\n  int iVar1;\n  \n  if (hvalue == 0) {\n    snprintf(buf,0x40,"%lx",lvalue);\n    return buf;\n  }\n  iVar1 = snprintf(buf,0x40,"%lx",hvalue);\n  snprintf(buf + iVar1,(ulong)(0x40 - iVar1),"%08lx",lvalue);\n  return buf;\n}\n\n" (function_definition "char * dwarf_vmatoa64(dwarf_vma hvalue,dwarf_vma lvalue,char *buf,uint buf_len)\n\n{\n  int iVar1;\n  \n  if (hvalue == 0) {\n    snprintf(buf,0x40,"%lx",lvalue);\n    return buf;\n  }\n  iVar1 = snprintf(buf,0x40,"%lx",hvalue);\n  snprintf(buf + iVar1,(ulong)(0x40 - iVar1),"%08lx",lvalue);\n  return buf;\n}" primitive_type (pointer_declarator "* dwarf_vmatoa64(dwarf_vma hvalue,dwarf_vma lvalue,char *buf,uint buf_len)" * (function_declarator "dwarf_vmatoa64(dwarf_vma hvalue,dwarf_vma lvalue,char *buf,uint buf_len)" identifier (parameter_list "(dwarf_vma hvalue,dwarf_vma lvalue,char *buf,uint buf_len)" ( (parameter_declaration "dwarf_vma hvalue" type_identifier identifier) , (parameter_declaration "dwarf_vma lvalue" type_identifier identifier) , (parameter_declaration "char *buf" primitive_type (pointer_declarator "*buf" * identifier)) , (parameter_declaration "uint buf_len" type_identifier identifier) )))) (compound_statement "{\n  int iVar1;\n  \n  if (hvalue == 0) {\n    snprintf(buf,0x40,"%lx",lvalue);\n    return buf;\n  }\n  iVar1 = snprintf(buf,0x40,"%lx",hvalue);\n  snprintf(buf + iVar1,(ulong)(0x40 - iVar1),"%08lx",lvalue);\n  return buf;\n}" { (declaration "int iVar1;" primitive_type identifier ;) (if_statement "if (hvalue == 0) {\n    snprintf(buf,0x40,"%lx",lvalue);\n    return buf;\n  }" if (parenthesized_expression "(hvalue == 0)" ( (binary_expression "hvalue == 0" identifier == number_literal) )) (compound_statement "{\n    snprintf(buf,0x40,"%lx",lvalue);\n    return buf;\n  }" { (expression_statement "snprintf(buf,0x40,"%lx",lvalue);" (call_expression "snprintf(buf,0x40,"%lx",lvalue)" identifier (argument_list "(buf,0x40,"%lx",lvalue)" ( identifier , number_literal , (string_literal ""%lx"" " string_content ") , identifier ))) ;) (return_statement "return buf;" return identifier ;) })) (expression_statement "iVar1 = snprintf(buf,0x40,"%lx",hvalue);" (assignment_expression "iVar1 = snprintf(buf,0x40,"%lx",hvalue)" identifier = (call_expression "snprintf(buf,0x40,"%lx",hvalue)" identifier (argument_list "(buf,0x40,"%lx",hvalue)" ( identifier , number_literal , (string_literal ""%lx"" " string_content ") , identifier )))) ;) (expression_statement "snprintf(buf + iVar1,(ulong)(0x40 - iVar1),"%08lx",lvalue);" (call_expression "snprintf(buf + iVar1,(ulong)(0x40 - iVar1),"%08lx",lvalue)" identifier (argument_list "(buf + iVar1,(ulong)(0x40 - iVar1),"%08lx",lvalue)" ( (binary_expression "buf + iVar1" identifier + identifier) , (call_expression "(ulong)(0x40 - iVar1)" (parenthesized_expression "(ulong)" ( identifier )) (argument_list "(0x40 - iVar1)" ( (binary_expression "0x40 - iVar1" number_literal - identifier) ))) , (string_literal ""%08lx"" " string_content ") , identifier ))) ;) (return_statement "return buf;" return identifier ;) })))
(translation_unit "char * FUN_001106c0(long param_1,undefined8 param_2,char *param_3)\n\n{\n  int iVar1;\n  \n  if (param_1 == 0) {\n    snprintf(param_3,0x40,"%lx",param_2);\n    return param_3;\n  }\n  iVar1 = snprintf(param_3,0x40,"%lx",param_1);\n  snprintf(param_3 + iVar1,(ulong)(0x40 - iVar1),"%08lx",param_2);\n  return param_3;\n}\n\n" (function_definition "char * FUN_001106c0(long param_1,undefined8 param_2,char *param_3)\n\n{\n  int iVar1;\n  \n  if (param_1 == 0) {\n    snprintf(param_3,0x40,"%lx",param_2);\n    return param_3;\n  }\n  iVar1 = snprintf(param_3,0x40,"%lx",param_1);\n  snprintf(param_3 + iVar1,(ulong)(0x40 - iVar1),"%08lx",param_2);\n  return param_3;\n}" primitive_type (pointer_declarator "* FUN_001106c0(long param_1,undefined8 param_2,char *param_3)" * (function_declarator "FUN_001106c0(long param_1,undefined8 param_2,char *param_3)" identifier (parameter_list "(long param_1,undefined8 param_2,char *param_3)" ( (parameter_declaration "long param_1" (sized_type_specifier "long" long) identifier) , (parameter_declaration "undefined8 param_2" type_identifier identifier) , (parameter_declaration "char *param_3" primitive_type (pointer_declarator "*param_3" * identifier)) )))) (compound_statement "{\n  int iVar1;\n  \n  if (param_1 == 0) {\n    snprintf(param_3,0x40,"%lx",param_2);\n    return param_3;\n  }\n  iVar1 = snprintf(param_3,0x40,"%lx",param_1);\n  snprintf(param_3 + iVar1,(ulong)(0x40 - iVar1),"%08lx",param_2);\n  return param_3;\n}" { (declaration "int iVar1;" primitive_type identifier ;) (if_statement "if (param_1 == 0) {\n    snprintf(param_3,0x40,"%lx",param_2);\n    return param_3;\n  }" if (parenthesized_expression "(param_1 == 0)" ( (binary_expression "param_1 == 0" identifier == number_literal) )) (compound_statement "{\n    snprintf(param_3,0x40,"%lx",param_2);\n    return param_3;\n  }" { (expression_statement "snprintf(param_3,0x40,"%lx",param_2);" (call_expression "snprintf(param_3,0x40,"%lx",param_2)" identifier (argument_list "(param_3,0x40,"%lx",param_2)" ( identifier , number_literal , (string_literal ""%lx"" " string_content ") , identifier ))) ;) (return_statement "return param_3;" return identifier ;) })) (expression_statement "iVar1 = snprintf(param_3,0x40,"%lx",param_1);" (assignment_expression "iVar1 = snprintf(param_3,0x40,"%lx",param_1)" identifier = (call_expression "snprintf(param_3,0x40,"%lx",param_1)" identifier (argument_list "(param_3,0x40,"%lx",param_1)" ( identifier , number_literal , (string_literal ""%lx"" " string_content ") , identifier )))) ;) (expression_statement "snprintf(param_3 + iVar1,(ulong)(0x40 - iVar1),"%08lx",param_2);" (call_expression "snprintf(param_3 + iVar1,(ulong)(0x40 - iVar1),"%08lx",param_2)" identifier (argument_list "(param_3 + iVar1,(ulong)(0x40 - iVar1),"%08lx",param_2)" ( (binary_expression "param_3 + iVar1" identifier + identifier) , (call_expression "(ulong)(0x40 - iVar1)" (parenthesized_expression "(ulong)" ( identifier )) (argument_list "(0x40 - iVar1)" ( (binary_expression "0x40 - iVar1" number_literal - identifier) ))) , (string_literal ""%08lx"" " string_content ") , identifier ))) ;) (return_statement "return param_3;" return identifier ;) })))
(translation_unit (function_definition TYPE (pointer_declarator * (function_declarator IDENT (parameter_list ( (parameter_declaration (sized_type_specifier long) IDENT) , (parameter_declaration TYPE IDENT) , (parameter_declaration TYPE (pointer_declarator * IDENT)) )))) (compound_statement { (declaration TYPE IDENT ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT == LIT) )) (compound_statement { (expression_statement (call_expression IDENT (argument_list ( IDENT , LIT , (string_literal " string_content ") , IDENT ))) ;) (return_statement return IDENT ;) })) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( IDENT , LIT , (string_literal " string_content ") , IDENT )))) ;) (expression_statement (call_expression IDENT (argument_list ( (binary_expression IDENT + IDENT) , (call_expression (parenthesized_expression ( IDENT )) (argument_list ( (binary_expression LIT - IDENT) ))) , (string_literal " string_content ") , IDENT ))) ;) (return_statement return IDENT ;) })))
(function_definition "char * FUN_001106c0(long param_1,undefined8 param_2,char *param_3)\n\n{\n  int iVar1;\n  \n  if (param_1 == 0) {\n    snprintf(param_3,0x40,"%lx",param_2);\n    return param_3;\n  }\n  iVar1 = snprintf(param_3,0x40,"%lx",param_1);\n  snprintf(param_3 + iVar1,(ulong)(0x40 - iVar1),"%08lx",param_2);\n  return param_3;\n}" (primitive_type "char") (pointer_declarator "* FUN_001106c0(long param_1,undefined8 param_2,char *param_3)" (* "*") (function_declarator "FUN_001106c0(long param_1,undefined8 param_2,char *param_3)" (identifier "FUN_001106c0") (parameter_list "(long param_1,undefined8 param_2,char *param_3)" (( "(") (parameter_declaration "long param_1" (sized_type_specifier "long" (long "long")) (identifier "param_1")) (, ",") (parameter_declaration "undefined8 param_2" (type_identifier "undefined8") (identifier "param_2")) (, ",") (parameter_declaration "char *param_3" (primitive_type "char") (pointer_declarator "*param_3" (* "*") (identifier "param_3"))) () ")")))) (compound_statement "{\n  int iVar1;\n  \n  if (param_1 == 0) {\n    snprintf(param_3,0x40,"%lx",param_2);\n    return param_3;\n  }\n  iVar1 = snprintf(param_3,0x40,"%lx",param_1);\n  snprintf(param_3 + iVar1,(ulong)(0x40 - iVar1),"%08lx",param_2);\n  return param_3;\n}" ({ "{") (declaration "int iVar1;" (primitive_type "int") (identifier "iVar1") (; ";")) (if_statement "if (param_1 == 0) {\n    snprintf(param_3,0x40,"%lx",param_2);\n    return param_3;\n  }" (if "if") (parenthesized_expression "(param_1 == 0)" (( "(") (binary_expression "param_1 == 0" (identifier "param_1") (== "==") (number_literal "0")) () ")")) (compound_statement "{\n    snprintf(param_3,0x40,"%lx",param_2);\n    return param_3;\n  }" ({ "{") (expression_statement "snprintf(param_3,0x40,"%lx",param_2);" (call_expression "snprintf(param_3,0x40,"%lx",param_2)" (identifier "snprintf") (argument_list "(param_3,0x40,"%lx",param_2)" (( "(") (identifier "param_3") (, ",") (number_literal "0x40") (, ",") (string_literal ""%lx"" (" """) (string_content "%lx") (" """)) (, ",") (identifier "param_2") () ")"))) (; ";")) (return_statement "return param_3;" (return "return") (identifier "param_3") (; ";")) (} "}"))) (expression_statement "iVar1 = snprintf(param_3,0x40,"%lx",param_1);" (assignment_expression "iVar1 = snprintf(param_3,0x40,"%lx",param_1)" (identifier "iVar1") (= "=") (call_expression "snprintf(param_3,0x40,"%lx",param_1)" (identifier "snprintf") (argument_list "(param_3,0x40,"%lx",param_1)" (( "(") (identifier "param_3") (, ",") (number_literal "0x40") (, ",") (string_literal ""%lx"" (" """) (string_content "%lx") (" """)) (, ",") (identifier "param_1") () ")")))) (; ";")) (expression_statement "snprintf(param_3 + iVar1,(ulong)(0x40 - iVar1),"%08lx",param_2);" (call_expression "snprintf(param_3 + iVar1,(ulong)(0x40 - iVar1),"%08lx",param_2)" (identifier "snprintf") (argument_list "(param_3 + iVar1,(ulong)(0x40 - iVar1),"%08lx",param_2)" (( "(") (binary_expression "param_3 + iVar1" (identifier "param_3") (+ "+") (identifier "iVar1")) (, ",") (call_expression "(ulong)(0x40 - iVar1)" (parenthesized_expression "(ulong)" (( "(") (identifier "ulong") () ")")) (argument_list "(0x40 - iVar1)" (( "(") (binary_expression "0x40 - iVar1" (number_literal "0x40") (- "-") (identifier "iVar1")) () ")"))) (, ",") (string_literal ""%08lx"" (" """) (string_content "%08lx") (" """)) (, ",") (identifier "param_2") () ")"))) (; ";")) (return_statement "return param_3;" (return "return") (identifier "param_3") (; ";")) (} "}")))

char * function_1(type_1 var_1,type_1 lvalue,char *var_3,type_2 buf_len)

{
  int var_4;
  
  if (var_1 == 0) {
    var_2(var_3,0x40,"%lx",lvalue);
    return var_3;
  }
  var_4 = var_2(var_3,0x40,"%lx",var_1);
  var_2(var_3 + var_4,(ulong)(0x40 - var_4),"%08lx",lvalue);
  return var_3;
}


(translation_unit (function_definition type: (primitive_type) declarator: (pointer_declarator declarator: (function_declarator declarator: (identifier) parameters: (parameter_list (parameter_declaration type: (sized_type_specifier) declarator: (identifier)) (parameter_declaration type: (type_identifier) declarator: (identifier)) (parameter_declaration type: (primitive_type) declarator: (pointer_declarator declarator: (identifier)))))) body: (compound_statement (declaration type: (primitive_type) declarator: (identifier)) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))) consequence: (compound_statement (expression_statement (call_expression function: (identifier) arguments: (argument_list (identifier) (number_literal) (string_literal (string_content)) (identifier)))) (return_statement (identifier)))) (expression_statement (assignment_expression left: (identifier) right: (call_expression function: (identifier) arguments: (argument_list (identifier) (number_literal) (string_literal (string_content)) (identifier))))) (expression_statement (call_expression function: (identifier) arguments: (argument_list (binary_expression left: (identifier) right: (identifier)) (call_expression function: (parenthesized_expression (identifier)) arguments: (argument_list (binary_expression left: (number_literal) right: (identifier)))) (string_literal (string_content)) (identifier)))) (return_statement (identifier)))))

char * MASKED(long param_1,undefined8 param_2,char *param_3)

{
  int iVar1;
  
  if (param_1 == 0) {
    snprintf(param_3,0x40,"%lx",param_2);
    return param_3;
  }
  iVar1 = snprintf(param_3,0x40,"%lx",param_1);
  snprintf(param_3 + iVar1,(ulong)(0x40 - iVar1),"%08lx",param_2);
  return param_3;
}

