
/* DWARF original prototype: void * sqlite3RenameTokenMap(Parse * pParse, void * pPtr, Token *
   pToken, Parse * pParse) */

void * sqlite3RenameTokenMap(Parse *pParse,void *pPtr,Token *pToken,Parse *pParse_1)

{
  undefined4 *puVar1;
  sqlite3 *psVar2;
  undefined4 in_stack_ffffffec;
  
  puVar1 = (undefined4 *)sqlite3DbMallocZero((sqlite3 *)pParse,CONCAT44(&_gp,in_stack_ffffffec));
  if (puVar1 != (undefined4 *)0x0) {
    *puVar1 = pToken;
    psVar2 = pParse_1->db;
    puVar1[2] = pParse_1->zErrMsg;
    puVar1[1] = psVar2;
                    /* WARNING: Load size is inaccurate */
    puVar1[3] = *pPtr;
    *(undefined4 **)pPtr = puVar1;
  }
  return pToken;
}



undefined4 FUN_0005b888(undefined4 param_1,int *param_2,undefined4 param_3,undefined4 *param_4)

{
  undefined4 *puVar1;
  undefined4 uVar2;
  
  puVar1 = (undefined4 *)FUN_00050924(param_1,param_2,0,0x10);
  if (puVar1 != (undefined4 *)0x0) {
    *puVar1 = param_3;
    uVar2 = *param_4;
    puVar1[2] = param_4[1];
    puVar1[1] = uVar2;
    puVar1[3] = *param_2;
    *param_2 = (int)puVar1;
  }
  return param_3;
}


lui gp,0x14
addiu gp,gp,-0x2f68
addu gp,gp,t9
addiu sp,sp,-0x28
lw t9,-0x7d78(gp)
addiu t9,t9,0x924
sw s2,0x20(sp)
sw s0,0x18(sp)
or s2,a3,zero
or s0,a2,zero
sw s1,0x1c(sp)
li a3,0x10
sw gp,0x10(sp)
or a2,zero,zero
sw ra,0x24(sp)
bal 0x00050924
_or s1,a1,zero
beq v0,zero,0x0005b8f8
_lw ra,0x24(sp)
sw s0,0x0(v0)
lw v1,0x4(s2)
lw a0,0x0(s2)
sw v1,0x8(v0)
sw a0,0x4(v0)
lw v1,0x0(s1)
sw v1,0xc(v0)
sw v0,0x0(s1)
lw ra,0x24(sp)
or v0,s0,zero
lw s2,0x20(sp)
lw s1,0x1c(sp)
lw s0,0x18(sp)
jr ra
_addiu sp,sp,0x28
(translation_unit "undefined4 FUN_0005b888(undefined4 param_1,int *param_2,undefined4 param_3,undefined4 *param_4)\n\n{\n  undefined4 *puVar1;\n  undefined4 uVar2;\n  \n  puVar1 = (undefined4 *)FUN_00050924(param_1,param_2,0,0x10);\n  if (puVar1 != (undefined4 *)0x0) {\n    *puVar1 = param_3;\n    uVar2 = *param_4;\n    puVar1[2] = param_4[1];\n    puVar1[1] = uVar2;\n    puVar1[3] = *param_2;\n    *param_2 = (int)puVar1;\n  }\n  return param_3;\n}\n\n" (function_definition "undefined4 FUN_0005b888(undefined4 param_1,int *param_2,undefined4 param_3,undefined4 *param_4)\n\n{\n  undefined4 *puVar1;\n  undefined4 uVar2;\n  \n  puVar1 = (undefined4 *)FUN_00050924(param_1,param_2,0,0x10);\n  if (puVar1 != (undefined4 *)0x0) {\n    *puVar1 = param_3;\n    uVar2 = *param_4;\n    puVar1[2] = param_4[1];\n    puVar1[1] = uVar2;\n    puVar1[3] = *param_2;\n    *param_2 = (int)puVar1;\n  }\n  return param_3;\n}" type_identifier (function_declarator "FUN_0005b888(undefined4 param_1,int *param_2,undefined4 param_3,undefined4 *param_4)" identifier (parameter_list "(undefined4 param_1,int *param_2,undefined4 param_3,undefined4 *param_4)" ( (parameter_declaration "undefined4 param_1" type_identifier identifier) , (parameter_declaration "int *param_2" primitive_type (pointer_declarator "*param_2" * identifier)) , (parameter_declaration "undefined4 param_3" type_identifier identifier) , (parameter_declaration "undefined4 *param_4" type_identifier (pointer_declarator "*param_4" * identifier)) ))) (compound_statement "{\n  undefined4 *puVar1;\n  undefined4 uVar2;\n  \n  puVar1 = (undefined4 *)FUN_00050924(param_1,param_2,0,0x10);\n  if (puVar1 != (undefined4 *)0x0) {\n    *puVar1 = param_3;\n    uVar2 = *param_4;\n    puVar1[2] = param_4[1];\n    puVar1[1] = uVar2;\n    puVar1[3] = *param_2;\n    *param_2 = (int)puVar1;\n  }\n  return param_3;\n}" { (declaration "undefined4 *puVar1;" type_identifier (pointer_declarator "*puVar1" * identifier) ;) (declaration "undefined4 uVar2;" type_identifier identifier ;) (expression_statement "puVar1 = (undefined4 *)FUN_00050924(param_1,param_2,0,0x10);" (assignment_expression "puVar1 = (undefined4 *)FUN_00050924(param_1,param_2,0,0x10)" identifier = (cast_expression "(undefined4 *)FUN_00050924(param_1,param_2,0,0x10)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (call_expression "FUN_00050924(param_1,param_2,0,0x10)" identifier (argument_list "(param_1,param_2,0,0x10)" ( identifier , identifier , number_literal , number_literal ))))) ;) (if_statement "if (puVar1 != (undefined4 *)0x0) {\n    *puVar1 = param_3;\n    uVar2 = *param_4;\n    puVar1[2] = param_4[1];\n    puVar1[1] = uVar2;\n    puVar1[3] = *param_2;\n    *param_2 = (int)puVar1;\n  }" if (parenthesized_expression "(puVar1 != (undefined4 *)0x0)" ( (binary_expression "puVar1 != (undefined4 *)0x0" identifier != (cast_expression "(undefined4 *)0x0" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n    *puVar1 = param_3;\n    uVar2 = *param_4;\n    puVar1[2] = param_4[1];\n    puVar1[1] = uVar2;\n    puVar1[3] = *param_2;\n    *param_2 = (int)puVar1;\n  }" { (expression_statement "*puVar1 = param_3;" (assignment_expression "*puVar1 = param_3" (pointer_expression "*puVar1" * identifier) = identifier) ;) (expression_statement "uVar2 = *param_4;" (assignment_expression "uVar2 = *param_4" identifier = (pointer_expression "*param_4" * identifier)) ;) (expression_statement "puVar1[2] = param_4[1];" (assignment_expression "puVar1[2] = param_4[1]" (subscript_expression "puVar1[2]" identifier [ number_literal ]) = (subscript_expression "param_4[1]" identifier [ number_literal ])) ;) (expression_statement "puVar1[1] = uVar2;" (assignment_expression "puVar1[1] = uVar2" (subscript_expression "puVar1[1]" identifier [ number_literal ]) = identifier) ;) (expression_statement "puVar1[3] = *param_2;" (assignment_expression "puVar1[3] = *param_2" (subscript_expression "puVar1[3]" identifier [ number_literal ]) = (pointer_expression "*param_2" * identifier)) ;) (expression_statement "*param_2 = (int)puVar1;" (assignment_expression "*param_2 = (int)puVar1" (pointer_expression "*param_2" * identifier) = (cast_expression "(int)puVar1" ( (type_descriptor "int" primitive_type) ) identifier)) ;) })) (return_statement "return param_3;" return identifier ;) })))
(translation_unit "/* DWARF original prototype: void * sqlite3RenameTokenMap(Parse * pParse, void * pPtr, Token *\n   pToken, Parse * pParse) */\n\nvoid * sqlite3RenameTokenMap(Parse *pParse,void *pPtr,Token *pToken,Parse *pParse_1)\n\n{\n  undefined4 *puVar1;\n  sqlite3 *psVar2;\n  undefined4 in_stack_ffffffec;\n  \n  puVar1 = (undefined4 *)sqlite3DbMallocZero((sqlite3 *)pParse,CONCAT44(&_gp,in_stack_ffffffec));\n  if (puVar1 != (undefined4 *)0x0) {\n    *puVar1 = pToken;\n    psVar2 = pParse_1->db;\n    puVar1[2] = pParse_1->zErrMsg;\n    puVar1[1] = psVar2;\n                    /* WARNING: Load size is inaccurate */\n    puVar1[3] = *pPtr;\n    *(undefined4 **)pPtr = puVar1;\n  }\n  return pToken;\n}\n\n" comment (function_definition "void * sqlite3RenameTokenMap(Parse *pParse,void *pPtr,Token *pToken,Parse *pParse_1)\n\n{\n  undefined4 *puVar1;\n  sqlite3 *psVar2;\n  undefined4 in_stack_ffffffec;\n  \n  puVar1 = (undefined4 *)sqlite3DbMallocZero((sqlite3 *)pParse,CONCAT44(&_gp,in_stack_ffffffec));\n  if (puVar1 != (undefined4 *)0x0) {\n    *puVar1 = pToken;\n    psVar2 = pParse_1->db;\n    puVar1[2] = pParse_1->zErrMsg;\n    puVar1[1] = psVar2;\n                    /* WARNING: Load size is inaccurate */\n    puVar1[3] = *pPtr;\n    *(undefined4 **)pPtr = puVar1;\n  }\n  return pToken;\n}" primitive_type (pointer_declarator "* sqlite3RenameTokenMap(Parse *pParse,void *pPtr,Token *pToken,Parse *pParse_1)" * (function_declarator "sqlite3RenameTokenMap(Parse *pParse,void *pPtr,Token *pToken,Parse *pParse_1)" identifier (parameter_list "(Parse *pParse,void *pPtr,Token *pToken,Parse *pParse_1)" ( (parameter_declaration "Parse *pParse" type_identifier (pointer_declarator "*pParse" * identifier)) , (parameter_declaration "void *pPtr" primitive_type (pointer_declarator "*pPtr" * identifier)) , (parameter_declaration "Token *pToken" type_identifier (pointer_declarator "*pToken" * identifier)) , (parameter_declaration "Parse *pParse_1" type_identifier (pointer_declarator "*pParse_1" * identifier)) )))) (compound_statement "{\n  undefined4 *puVar1;\n  sqlite3 *psVar2;\n  undefined4 in_stack_ffffffec;\n  \n  puVar1 = (undefined4 *)sqlite3DbMallocZero((sqlite3 *)pParse,CONCAT44(&_gp,in_stack_ffffffec));\n  if (puVar1 != (undefined4 *)0x0) {\n    *puVar1 = pToken;\n    psVar2 = pParse_1->db;\n    puVar1[2] = pParse_1->zErrMsg;\n    puVar1[1] = psVar2;\n                    /* WARNING: Load size is inaccurate */\n    puVar1[3] = *pPtr;\n    *(undefined4 **)pPtr = puVar1;\n  }\n  return pToken;\n}" { (declaration "undefined4 *puVar1;" type_identifier (pointer_declarator "*puVar1" * identifier) ;) (declaration "sqlite3 *psVar2;" type_identifier (pointer_declarator "*psVar2" * identifier) ;) (declaration "undefined4 in_stack_ffffffec;" type_identifier identifier ;) (expression_statement "puVar1 = (undefined4 *)sqlite3DbMallocZero((sqlite3 *)pParse,CONCAT44(&_gp,in_stack_ffffffec));" (assignment_expression "puVar1 = (undefined4 *)sqlite3DbMallocZero((sqlite3 *)pParse,CONCAT44(&_gp,in_stack_ffffffec))" identifier = (cast_expression "(undefined4 *)sqlite3DbMallocZero((sqlite3 *)pParse,CONCAT44(&_gp,in_stack_ffffffec))" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (call_expression "sqlite3DbMallocZero((sqlite3 *)pParse,CONCAT44(&_gp,in_stack_ffffffec))" identifier (argument_list "((sqlite3 *)pParse,CONCAT44(&_gp,in_stack_ffffffec))" ( (cast_expression "(sqlite3 *)pParse" ( (type_descriptor "sqlite3 *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier) , (call_expression "CONCAT44(&_gp,in_stack_ffffffec)" identifier (argument_list "(&_gp,in_stack_ffffffec)" ( (pointer_expression "&_gp" & identifier) , identifier ))) ))))) ;) (if_statement "if (puVar1 != (undefined4 *)0x0) {\n    *puVar1 = pToken;\n    psVar2 = pParse_1->db;\n    puVar1[2] = pParse_1->zErrMsg;\n    puVar1[1] = psVar2;\n                    /* WARNING: Load size is inaccurate */\n    puVar1[3] = *pPtr;\n    *(undefined4 **)pPtr = puVar1;\n  }" if (parenthesized_expression "(puVar1 != (undefined4 *)0x0)" ( (binary_expression "puVar1 != (undefined4 *)0x0" identifier != (cast_expression "(undefined4 *)0x0" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n    *puVar1 = pToken;\n    psVar2 = pParse_1->db;\n    puVar1[2] = pParse_1->zErrMsg;\n    puVar1[1] = psVar2;\n                    /* WARNING: Load size is inaccurate */\n    puVar1[3] = *pPtr;\n    *(undefined4 **)pPtr = puVar1;\n  }" { (expression_statement "*puVar1 = pToken;" (assignment_expression "*puVar1 = pToken" (pointer_expression "*puVar1" * identifier) = identifier) ;) (expression_statement "psVar2 = pParse_1->db;" (assignment_expression "psVar2 = pParse_1->db" identifier = (field_expression "pParse_1->db" identifier -> field_identifier)) ;) (expression_statement "puVar1[2] = pParse_1->zErrMsg;" (assignment_expression "puVar1[2] = pParse_1->zErrMsg" (subscript_expression "puVar1[2]" identifier [ number_literal ]) = (field_expression "pParse_1->zErrMsg" identifier -> field_identifier)) ;) (expression_statement "puVar1[1] = psVar2;" (assignment_expression "puVar1[1] = psVar2" (subscript_expression "puVar1[1]" identifier [ number_literal ]) = identifier) ;) comment (expression_statement "puVar1[3] = *pPtr;" (assignment_expression "puVar1[3] = *pPtr" (subscript_expression "puVar1[3]" identifier [ number_literal ]) = (pointer_expression "*pPtr" * identifier)) ;) (expression_statement "*(undefined4 **)pPtr = puVar1;" (assignment_expression "*(undefined4 **)pPtr = puVar1" (pointer_expression "*(undefined4 **)pPtr" * (cast_expression "(undefined4 **)pPtr" ( (type_descriptor "undefined4 **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) identifier)) = identifier) ;) })) (return_statement "return pToken;" return identifier ;) })))
(translation_unit "undefined4 FUN_0005b888(undefined4 param_1,int *param_2,undefined4 param_3,undefined4 *param_4)\n\n{\n  undefined4 *puVar1;\n  undefined4 uVar2;\n  \n  puVar1 = (undefined4 *)FUN_00050924(param_1,param_2,0,0x10);\n  if (puVar1 != (undefined4 *)0x0) {\n    *puVar1 = param_3;\n    uVar2 = *param_4;\n    puVar1[2] = param_4[1];\n    puVar1[1] = uVar2;\n    puVar1[3] = *param_2;\n    *param_2 = (int)puVar1;\n  }\n  return param_3;\n}\n\n" (function_definition "undefined4 FUN_0005b888(undefined4 param_1,int *param_2,undefined4 param_3,undefined4 *param_4)\n\n{\n  undefined4 *puVar1;\n  undefined4 uVar2;\n  \n  puVar1 = (undefined4 *)FUN_00050924(param_1,param_2,0,0x10);\n  if (puVar1 != (undefined4 *)0x0) {\n    *puVar1 = param_3;\n    uVar2 = *param_4;\n    puVar1[2] = param_4[1];\n    puVar1[1] = uVar2;\n    puVar1[3] = *param_2;\n    *param_2 = (int)puVar1;\n  }\n  return param_3;\n}" type_identifier (function_declarator "FUN_0005b888(undefined4 param_1,int *param_2,undefined4 param_3,undefined4 *param_4)" identifier (parameter_list "(undefined4 param_1,int *param_2,undefined4 param_3,undefined4 *param_4)" ( (parameter_declaration "undefined4 param_1" type_identifier identifier) , (parameter_declaration "int *param_2" primitive_type (pointer_declarator "*param_2" * identifier)) , (parameter_declaration "undefined4 param_3" type_identifier identifier) , (parameter_declaration "undefined4 *param_4" type_identifier (pointer_declarator "*param_4" * identifier)) ))) (compound_statement "{\n  undefined4 *puVar1;\n  undefined4 uVar2;\n  \n  puVar1 = (undefined4 *)FUN_00050924(param_1,param_2,0,0x10);\n  if (puVar1 != (undefined4 *)0x0) {\n    *puVar1 = param_3;\n    uVar2 = *param_4;\n    puVar1[2] = param_4[1];\n    puVar1[1] = uVar2;\n    puVar1[3] = *param_2;\n    *param_2 = (int)puVar1;\n  }\n  return param_3;\n}" { (declaration "undefined4 *puVar1;" type_identifier (pointer_declarator "*puVar1" * identifier) ;) (declaration "undefined4 uVar2;" type_identifier identifier ;) (expression_statement "puVar1 = (undefined4 *)FUN_00050924(param_1,param_2,0,0x10);" (assignment_expression "puVar1 = (undefined4 *)FUN_00050924(param_1,param_2,0,0x10)" identifier = (cast_expression "(undefined4 *)FUN_00050924(param_1,param_2,0,0x10)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (call_expression "FUN_00050924(param_1,param_2,0,0x10)" identifier (argument_list "(param_1,param_2,0,0x10)" ( identifier , identifier , number_literal , number_literal ))))) ;) (if_statement "if (puVar1 != (undefined4 *)0x0) {\n    *puVar1 = param_3;\n    uVar2 = *param_4;\n    puVar1[2] = param_4[1];\n    puVar1[1] = uVar2;\n    puVar1[3] = *param_2;\n    *param_2 = (int)puVar1;\n  }" if (parenthesized_expression "(puVar1 != (undefined4 *)0x0)" ( (binary_expression "puVar1 != (undefined4 *)0x0" identifier != (cast_expression "(undefined4 *)0x0" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n    *puVar1 = param_3;\n    uVar2 = *param_4;\n    puVar1[2] = param_4[1];\n    puVar1[1] = uVar2;\n    puVar1[3] = *param_2;\n    *param_2 = (int)puVar1;\n  }" { (expression_statement "*puVar1 = param_3;" (assignment_expression "*puVar1 = param_3" (pointer_expression "*puVar1" * identifier) = identifier) ;) (expression_statement "uVar2 = *param_4;" (assignment_expression "uVar2 = *param_4" identifier = (pointer_expression "*param_4" * identifier)) ;) (expression_statement "puVar1[2] = param_4[1];" (assignment_expression "puVar1[2] = param_4[1]" (subscript_expression "puVar1[2]" identifier [ number_literal ]) = (subscript_expression "param_4[1]" identifier [ number_literal ])) ;) (expression_statement "puVar1[1] = uVar2;" (assignment_expression "puVar1[1] = uVar2" (subscript_expression "puVar1[1]" identifier [ number_literal ]) = identifier) ;) (expression_statement "puVar1[3] = *param_2;" (assignment_expression "puVar1[3] = *param_2" (subscript_expression "puVar1[3]" identifier [ number_literal ]) = (pointer_expression "*param_2" * identifier)) ;) (expression_statement "*param_2 = (int)puVar1;" (assignment_expression "*param_2 = (int)puVar1" (pointer_expression "*param_2" * identifier) = (cast_expression "(int)puVar1" ( (type_descriptor "int" primitive_type) ) identifier)) ;) })) (return_statement "return param_3;" return identifier ;) })))
(translation_unit (function_definition TYPE (function_declarator IDENT (parameter_list ( (parameter_declaration TYPE IDENT) , (parameter_declaration TYPE (pointer_declarator * IDENT)) , (parameter_declaration TYPE IDENT) , (parameter_declaration TYPE (pointer_declarator * IDENT)) ))) (compound_statement { (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE IDENT ;) (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (call_expression IDENT (argument_list ( IDENT , IDENT , LIT , LIT ))))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT != (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) LIT)) )) (compound_statement { (expression_statement (assignment_expression (pointer_expression * IDENT) = IDENT) ;) (expression_statement (assignment_expression IDENT = (pointer_expression * IDENT)) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = (subscript_expression IDENT [ LIT ])) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = IDENT) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = (pointer_expression * IDENT)) ;) (expression_statement (assignment_expression (pointer_expression * IDENT) = (cast_expression ( (type_descriptor TYPE) ) IDENT)) ;) })) (return_statement return IDENT ;) })))
(function_definition "undefined4 FUN_0005b888(undefined4 param_1,int *param_2,undefined4 param_3,undefined4 *param_4)\n\n{\n  undefined4 *puVar1;\n  undefined4 uVar2;\n  \n  puVar1 = (undefined4 *)FUN_00050924(param_1,param_2,0,0x10);\n  if (puVar1 != (undefined4 *)0x0) {\n    *puVar1 = param_3;\n    uVar2 = *param_4;\n    puVar1[2] = param_4[1];\n    puVar1[1] = uVar2;\n    puVar1[3] = *param_2;\n    *param_2 = (int)puVar1;\n  }\n  return param_3;\n}" (type_identifier "undefined4") (function_declarator "FUN_0005b888(undefined4 param_1,int *param_2,undefined4 param_3,undefined4 *param_4)" (identifier "FUN_0005b888") (parameter_list "(undefined4 param_1,int *param_2,undefined4 param_3,undefined4 *param_4)" (( "(") (parameter_declaration "undefined4 param_1" (type_identifier "undefined4") (identifier "param_1")) (, ",") (parameter_declaration "int *param_2" (primitive_type "int") (pointer_declarator "*param_2" (* "*") (identifier "param_2"))) (, ",") (parameter_declaration "undefined4 param_3" (type_identifier "undefined4") (identifier "param_3")) (, ",") (parameter_declaration "undefined4 *param_4" (type_identifier "undefined4") (pointer_declarator "*param_4" (* "*") (identifier "param_4"))) () ")"))) (compound_statement "{\n  undefined4 *puVar1;\n  undefined4 uVar2;\n  \n  puVar1 = (undefined4 *)FUN_00050924(param_1,param_2,0,0x10);\n  if (puVar1 != (undefined4 *)0x0) {\n    *puVar1 = param_3;\n    uVar2 = *param_4;\n    puVar1[2] = param_4[1];\n    puVar1[1] = uVar2;\n    puVar1[3] = *param_2;\n    *param_2 = (int)puVar1;\n  }\n  return param_3;\n}" ({ "{") (declaration "undefined4 *puVar1;" (type_identifier "undefined4") (pointer_declarator "*puVar1" (* "*") (identifier "puVar1")) (; ";")) (declaration "undefined4 uVar2;" (type_identifier "undefined4") (identifier "uVar2") (; ";")) (expression_statement "puVar1 = (undefined4 *)FUN_00050924(param_1,param_2,0,0x10);" (assignment_expression "puVar1 = (undefined4 *)FUN_00050924(param_1,param_2,0,0x10)" (identifier "puVar1") (= "=") (cast_expression "(undefined4 *)FUN_00050924(param_1,param_2,0,0x10)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (call_expression "FUN_00050924(param_1,param_2,0,0x10)" (identifier "FUN_00050924") (argument_list "(param_1,param_2,0,0x10)" (( "(") (identifier "param_1") (, ",") (identifier "param_2") (, ",") (number_literal "0") (, ",") (number_literal "0x10") () ")"))))) (; ";")) (if_statement "if (puVar1 != (undefined4 *)0x0) {\n    *puVar1 = param_3;\n    uVar2 = *param_4;\n    puVar1[2] = param_4[1];\n    puVar1[1] = uVar2;\n    puVar1[3] = *param_2;\n    *param_2 = (int)puVar1;\n  }" (if "if") (parenthesized_expression "(puVar1 != (undefined4 *)0x0)" (( "(") (binary_expression "puVar1 != (undefined4 *)0x0" (identifier "puVar1") (!= "!=") (cast_expression "(undefined4 *)0x0" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (number_literal "0x0"))) () ")")) (compound_statement "{\n    *puVar1 = param_3;\n    uVar2 = *param_4;\n    puVar1[2] = param_4[1];\n    puVar1[1] = uVar2;\n    puVar1[3] = *param_2;\n    *param_2 = (int)puVar1;\n  }" ({ "{") (expression_statement "*puVar1 = param_3;" (assignment_expression "*puVar1 = param_3" (pointer_expression "*puVar1" (* "*") (identifier "puVar1")) (= "=") (identifier "param_3")) (; ";")) (expression_statement "uVar2 = *param_4;" (assignment_expression "uVar2 = *param_4" (identifier "uVar2") (= "=") (pointer_expression "*param_4" (* "*") (identifier "param_4"))) (; ";")) (expression_statement "puVar1[2] = param_4[1];" (assignment_expression "puVar1[2] = param_4[1]" (subscript_expression "puVar1[2]" (identifier "puVar1") ([ "[") (number_literal "2") (] "]")) (= "=") (subscript_expression "param_4[1]" (identifier "param_4") ([ "[") (number_literal "1") (] "]"))) (; ";")) (expression_statement "puVar1[1] = uVar2;" (assignment_expression "puVar1[1] = uVar2" (subscript_expression "puVar1[1]" (identifier "puVar1") ([ "[") (number_literal "1") (] "]")) (= "=") (identifier "uVar2")) (; ";")) (expression_statement "puVar1[3] = *param_2;" (assignment_expression "puVar1[3] = *param_2" (subscript_expression "puVar1[3]" (identifier "puVar1") ([ "[") (number_literal "3") (] "]")) (= "=") (pointer_expression "*param_2" (* "*") (identifier "param_2"))) (; ";")) (expression_statement "*param_2 = (int)puVar1;" (assignment_expression "*param_2 = (int)puVar1" (pointer_expression "*param_2" (* "*") (identifier "param_2")) (= "=") (cast_expression "(int)puVar1" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (identifier "puVar1"))) (; ";")) (} "}"))) (return_statement "return param_3;" (return "return") (identifier "param_3") (; ";")) (} "}")))

/* DWARF original prototype: void * sqlite3RenameTokenMap(Parse * pParse, void * pPtr, Token *
   pToken, Parse * pParse) */

void * function_1(type_1 *pParse,void *pPtr,type_2 *pToken,type_1 *pParse_1)

{
  type_3 *var_3;
  type_4 *psVar2;
  type_3 in_stack_ffffffec;
  
  var_3 = (type_3 *)var_1((type_4 *)pParse,var_2(&_gp,in_stack_ffffffec));
  if (var_3 != (type_3 *)0x0) {
    *var_3 = pToken;
    psVar2 = pParse_1->db;
    var_3[2] = pParse_1->zErrMsg;
    var_3[1] = psVar2;
                    /* WARNING: Load size is inaccurate */
    var_3[3] = *pPtr;
    *(type_3 **)pPtr = var_3;
  }
  return pToken;
}


(translation_unit (function_definition type: (type_identifier) declarator: (function_declarator declarator: (identifier) parameters: (parameter_list (parameter_declaration type: (type_identifier) declarator: (identifier)) (parameter_declaration type: (primitive_type) declarator: (pointer_declarator declarator: (identifier))) (parameter_declaration type: (type_identifier) declarator: (identifier)) (parameter_declaration type: (type_identifier) declarator: (pointer_declarator declarator: (identifier))))) body: (compound_statement (declaration type: (type_identifier) declarator: (pointer_declarator declarator: (identifier))) (declaration type: (type_identifier) declarator: (identifier)) (expression_statement (assignment_expression left: (identifier) right: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (call_expression function: (identifier) arguments: (argument_list (identifier) (identifier) (number_literal) (number_literal)))))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (number_literal)))) consequence: (compound_statement (expression_statement (assignment_expression left: (pointer_expression argument: (identifier)) right: (identifier))) (expression_statement (assignment_expression left: (identifier) right: (pointer_expression argument: (identifier)))) (expression_statement (assignment_expression left: (subscript_expression argument: (identifier) index: (number_literal)) right: (subscript_expression argument: (identifier) index: (number_literal)))) (expression_statement (assignment_expression left: (subscript_expression argument: (identifier) index: (number_literal)) right: (identifier))) (expression_statement (assignment_expression left: (subscript_expression argument: (identifier) index: (number_literal)) right: (pointer_expression argument: (identifier)))) (expression_statement (assignment_expression left: (pointer_expression argument: (identifier)) right: (cast_expression type: (type_descriptor type: (primitive_type)) value: (identifier)))))) (return_statement (identifier)))))

undefined4 MASKED(undefined4 param_1,int *param_2,undefined4 param_3,undefined4 *param_4)

{
  undefined4 *puVar1;
  undefined4 uVar2;
  
  puVar1 = (undefined4 *)FUN_00050924(param_1,param_2,0,0x10);
  if (puVar1 != (undefined4 *)0x0) {
    *puVar1 = param_3;
    uVar2 = *param_4;
    puVar1[2] = param_4[1];
    puVar1[1] = uVar2;
    puVar1[3] = *param_2;
    *param_2 = (int)puVar1;
  }
  return param_3;
}

