
void dh_init(dh_ctx *ctx)

{
  Bignum_conflict pBVar1;
  
  pBVar1 = bignum_rshift((Bignum_conflict)ctx->p,1);
  ctx->q = pBVar1;
  pBVar1 = bignum_bitmask(pBVar1);
  ctx->qmask = pBVar1;
  ctx->e = (Bignum)0x0;
  ctx->x = (Bignum)0x0;
  return;
}



void FUN_00058070(undefined4 *param_1)

{
  undefined4 uVar1;
  
  uVar1 = bignum_rshift(param_1[2],1);
  param_1[3] = uVar1;
  uVar1 = bignum_bitmask(uVar1);
  param_1[4] = uVar1;
  param_1[1] = 0;
  *param_1 = 0;
  return;
}


lui gp,0x6
addiu gp,gp,-0x2de0
addu gp,gp,t9
addiu sp,sp,-0x20
lw t9,-0x79e8(gp)
li a1,0x1
sw s0,0x18(sp)
or s0,a0,zero
sw ra,0x1c(sp)
sw gp,0x10(sp)
bal 0x00050a84
_lw a0,0x8(a0)
lw gp,0x10(sp)
or a0,v0,zero
lw t9,-0x79e4(gp)
bal 0x00051334
_sw v0,0xc(s0)
lw ra,0x1c(sp)
sw v0,0x10(s0)
sw zero,0x4(s0)
sw zero,0x0(s0)
lw s0,0x18(sp)
jr ra
_addiu sp,sp,0x20
(translation_unit "void FUN_00058070(undefined4 *param_1)\n\n{\n  undefined4 uVar1;\n  \n  uVar1 = bignum_rshift(param_1[2],1);\n  param_1[3] = uVar1;\n  uVar1 = bignum_bitmask(uVar1);\n  param_1[4] = uVar1;\n  param_1[1] = 0;\n  *param_1 = 0;\n  return;\n}\n\n" (function_definition "void FUN_00058070(undefined4 *param_1)\n\n{\n  undefined4 uVar1;\n  \n  uVar1 = bignum_rshift(param_1[2],1);\n  param_1[3] = uVar1;\n  uVar1 = bignum_bitmask(uVar1);\n  param_1[4] = uVar1;\n  param_1[1] = 0;\n  *param_1 = 0;\n  return;\n}" primitive_type (function_declarator "FUN_00058070(undefined4 *param_1)" identifier (parameter_list "(undefined4 *param_1)" ( (parameter_declaration "undefined4 *param_1" type_identifier (pointer_declarator "*param_1" * identifier)) ))) (compound_statement "{\n  undefined4 uVar1;\n  \n  uVar1 = bignum_rshift(param_1[2],1);\n  param_1[3] = uVar1;\n  uVar1 = bignum_bitmask(uVar1);\n  param_1[4] = uVar1;\n  param_1[1] = 0;\n  *param_1 = 0;\n  return;\n}" { (declaration "undefined4 uVar1;" type_identifier identifier ;) (expression_statement "uVar1 = bignum_rshift(param_1[2],1);" (assignment_expression "uVar1 = bignum_rshift(param_1[2],1)" identifier = (call_expression "bignum_rshift(param_1[2],1)" identifier (argument_list "(param_1[2],1)" ( (subscript_expression "param_1[2]" identifier [ number_literal ]) , number_literal )))) ;) (expression_statement "param_1[3] = uVar1;" (assignment_expression "param_1[3] = uVar1" (subscript_expression "param_1[3]" identifier [ number_literal ]) = identifier) ;) (expression_statement "uVar1 = bignum_bitmask(uVar1);" (assignment_expression "uVar1 = bignum_bitmask(uVar1)" identifier = (call_expression "bignum_bitmask(uVar1)" identifier (argument_list "(uVar1)" ( identifier )))) ;) (expression_statement "param_1[4] = uVar1;" (assignment_expression "param_1[4] = uVar1" (subscript_expression "param_1[4]" identifier [ number_literal ]) = identifier) ;) (expression_statement "param_1[1] = 0;" (assignment_expression "param_1[1] = 0" (subscript_expression "param_1[1]" identifier [ number_literal ]) = number_literal) ;) (expression_statement "*param_1 = 0;" (assignment_expression "*param_1 = 0" (pointer_expression "*param_1" * identifier) = number_literal) ;) (return_statement "return;" return ;) })))
(translation_unit "void dh_init(dh_ctx *ctx)\n\n{\n  Bignum_conflict pBVar1;\n  \n  pBVar1 = bignum_rshift((Bignum_conflict)ctx->p,1);\n  ctx->q = pBVar1;\n  pBVar1 = bignum_bitmask(pBVar1);\n  ctx->qmask = pBVar1;\n  ctx->e = (Bignum)0x0;\n  ctx->x = (Bignum)0x0;\n  return;\n}\n\n" (function_definition "void dh_init(dh_ctx *ctx)\n\n{\n  Bignum_conflict pBVar1;\n  \n  pBVar1 = bignum_rshift((Bignum_conflict)ctx->p,1);\n  ctx->q = pBVar1;\n  pBVar1 = bignum_bitmask(pBVar1);\n  ctx->qmask = pBVar1;\n  ctx->e = (Bignum)0x0;\n  ctx->x = (Bignum)0x0;\n  return;\n}" primitive_type (function_declarator "dh_init(dh_ctx *ctx)" identifier (parameter_list "(dh_ctx *ctx)" ( (parameter_declaration "dh_ctx *ctx" type_identifier (pointer_declarator "*ctx" * identifier)) ))) (compound_statement "{\n  Bignum_conflict pBVar1;\n  \n  pBVar1 = bignum_rshift((Bignum_conflict)ctx->p,1);\n  ctx->q = pBVar1;\n  pBVar1 = bignum_bitmask(pBVar1);\n  ctx->qmask = pBVar1;\n  ctx->e = (Bignum)0x0;\n  ctx->x = (Bignum)0x0;\n  return;\n}" { (declaration "Bignum_conflict pBVar1;" type_identifier identifier ;) (expression_statement "pBVar1 = bignum_rshift((Bignum_conflict)ctx->p,1);" (assignment_expression "pBVar1 = bignum_rshift((Bignum_conflict)ctx->p,1)" identifier = (call_expression "bignum_rshift((Bignum_conflict)ctx->p,1)" identifier (argument_list "((Bignum_conflict)ctx->p,1)" ( (cast_expression "(Bignum_conflict)ctx->p" ( (type_descriptor "Bignum_conflict" type_identifier) ) (field_expression "ctx->p" identifier -> field_identifier)) , number_literal )))) ;) (expression_statement "ctx->q = pBVar1;" (assignment_expression "ctx->q = pBVar1" (field_expression "ctx->q" identifier -> field_identifier) = identifier) ;) (expression_statement "pBVar1 = bignum_bitmask(pBVar1);" (assignment_expression "pBVar1 = bignum_bitmask(pBVar1)" identifier = (call_expression "bignum_bitmask(pBVar1)" identifier (argument_list "(pBVar1)" ( identifier )))) ;) (expression_statement "ctx->qmask = pBVar1;" (assignment_expression "ctx->qmask = pBVar1" (field_expression "ctx->qmask" identifier -> field_identifier) = identifier) ;) (expression_statement "ctx->e = (Bignum)0x0;" (assignment_expression "ctx->e = (Bignum)0x0" (field_expression "ctx->e" identifier -> field_identifier) = (cast_expression "(Bignum)0x0" ( (type_descriptor "Bignum" type_identifier) ) number_literal)) ;) (expression_statement "ctx->x = (Bignum)0x0;" (assignment_expression "ctx->x = (Bignum)0x0" (field_expression "ctx->x" identifier -> field_identifier) = (cast_expression "(Bignum)0x0" ( (type_descriptor "Bignum" type_identifier) ) number_literal)) ;) (return_statement "return;" return ;) })))
(translation_unit "void FUN_00058070(undefined4 *param_1)\n\n{\n  undefined4 uVar1;\n  \n  uVar1 = bignum_rshift(param_1[2],1);\n  param_1[3] = uVar1;\n  uVar1 = bignum_bitmask(uVar1);\n  param_1[4] = uVar1;\n  param_1[1] = 0;\n  *param_1 = 0;\n  return;\n}\n\n" (function_definition "void FUN_00058070(undefined4 *param_1)\n\n{\n  undefined4 uVar1;\n  \n  uVar1 = bignum_rshift(param_1[2],1);\n  param_1[3] = uVar1;\n  uVar1 = bignum_bitmask(uVar1);\n  param_1[4] = uVar1;\n  param_1[1] = 0;\n  *param_1 = 0;\n  return;\n}" primitive_type (function_declarator "FUN_00058070(undefined4 *param_1)" identifier (parameter_list "(undefined4 *param_1)" ( (parameter_declaration "undefined4 *param_1" type_identifier (pointer_declarator "*param_1" * identifier)) ))) (compound_statement "{\n  undefined4 uVar1;\n  \n  uVar1 = bignum_rshift(param_1[2],1);\n  param_1[3] = uVar1;\n  uVar1 = bignum_bitmask(uVar1);\n  param_1[4] = uVar1;\n  param_1[1] = 0;\n  *param_1 = 0;\n  return;\n}" { (declaration "undefined4 uVar1;" type_identifier identifier ;) (expression_statement "uVar1 = bignum_rshift(param_1[2],1);" (assignment_expression "uVar1 = bignum_rshift(param_1[2],1)" identifier = (call_expression "bignum_rshift(param_1[2],1)" identifier (argument_list "(param_1[2],1)" ( (subscript_expression "param_1[2]" identifier [ number_literal ]) , number_literal )))) ;) (expression_statement "param_1[3] = uVar1;" (assignment_expression "param_1[3] = uVar1" (subscript_expression "param_1[3]" identifier [ number_literal ]) = identifier) ;) (expression_statement "uVar1 = bignum_bitmask(uVar1);" (assignment_expression "uVar1 = bignum_bitmask(uVar1)" identifier = (call_expression "bignum_bitmask(uVar1)" identifier (argument_list "(uVar1)" ( identifier )))) ;) (expression_statement "param_1[4] = uVar1;" (assignment_expression "param_1[4] = uVar1" (subscript_expression "param_1[4]" identifier [ number_literal ]) = identifier) ;) (expression_statement "param_1[1] = 0;" (assignment_expression "param_1[1] = 0" (subscript_expression "param_1[1]" identifier [ number_literal ]) = number_literal) ;) (expression_statement "*param_1 = 0;" (assignment_expression "*param_1 = 0" (pointer_expression "*param_1" * identifier) = number_literal) ;) (return_statement "return;" return ;) })))
(translation_unit (function_definition TYPE (function_declarator IDENT (parameter_list ( (parameter_declaration TYPE (pointer_declarator * IDENT)) ))) (compound_statement { (declaration TYPE IDENT ;) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( (subscript_expression IDENT [ LIT ]) , LIT )))) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = IDENT) ;) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( IDENT )))) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = IDENT) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = LIT) ;) (expression_statement (assignment_expression (pointer_expression * IDENT) = LIT) ;) (return_statement return ;) })))
(function_definition "void FUN_00058070(undefined4 *param_1)\n\n{\n  undefined4 uVar1;\n  \n  uVar1 = bignum_rshift(param_1[2],1);\n  param_1[3] = uVar1;\n  uVar1 = bignum_bitmask(uVar1);\n  param_1[4] = uVar1;\n  param_1[1] = 0;\n  *param_1 = 0;\n  return;\n}" (primitive_type "void") (function_declarator "FUN_00058070(undefined4 *param_1)" (identifier "FUN_00058070") (parameter_list "(undefined4 *param_1)" (( "(") (parameter_declaration "undefined4 *param_1" (type_identifier "undefined4") (pointer_declarator "*param_1" (* "*") (identifier "param_1"))) () ")"))) (compound_statement "{\n  undefined4 uVar1;\n  \n  uVar1 = bignum_rshift(param_1[2],1);\n  param_1[3] = uVar1;\n  uVar1 = bignum_bitmask(uVar1);\n  param_1[4] = uVar1;\n  param_1[1] = 0;\n  *param_1 = 0;\n  return;\n}" ({ "{") (declaration "undefined4 uVar1;" (type_identifier "undefined4") (identifier "uVar1") (; ";")) (expression_statement "uVar1 = bignum_rshift(param_1[2],1);" (assignment_expression "uVar1 = bignum_rshift(param_1[2],1)" (identifier "uVar1") (= "=") (call_expression "bignum_rshift(param_1[2],1)" (identifier "bignum_rshift") (argument_list "(param_1[2],1)" (( "(") (subscript_expression "param_1[2]" (identifier "param_1") ([ "[") (number_literal "2") (] "]")) (, ",") (number_literal "1") () ")")))) (; ";")) (expression_statement "param_1[3] = uVar1;" (assignment_expression "param_1[3] = uVar1" (subscript_expression "param_1[3]" (identifier "param_1") ([ "[") (number_literal "3") (] "]")) (= "=") (identifier "uVar1")) (; ";")) (expression_statement "uVar1 = bignum_bitmask(uVar1);" (assignment_expression "uVar1 = bignum_bitmask(uVar1)" (identifier "uVar1") (= "=") (call_expression "bignum_bitmask(uVar1)" (identifier "bignum_bitmask") (argument_list "(uVar1)" (( "(") (identifier "uVar1") () ")")))) (; ";")) (expression_statement "param_1[4] = uVar1;" (assignment_expression "param_1[4] = uVar1" (subscript_expression "param_1[4]" (identifier "param_1") ([ "[") (number_literal "4") (] "]")) (= "=") (identifier "uVar1")) (; ";")) (expression_statement "param_1[1] = 0;" (assignment_expression "param_1[1] = 0" (subscript_expression "param_1[1]" (identifier "param_1") ([ "[") (number_literal "1") (] "]")) (= "=") (number_literal "0")) (; ";")) (expression_statement "*param_1 = 0;" (assignment_expression "*param_1 = 0" (pointer_expression "*param_1" (* "*") (identifier "param_1")) (= "=") (number_literal "0")) (; ";")) (return_statement "return;" (return "return") (; ";")) (} "}")))
(translation_unit (function_definition type: (primitive_type) declarator: (function_declarator declarator: (identifier) parameters: (parameter_list (parameter_declaration type: (type_identifier) declarator: (pointer_declarator declarator: (identifier))))) body: (compound_statement (declaration type: (type_identifier) declarator: (identifier)) (expression_statement (assignment_expression left: (identifier) right: (call_expression function: (identifier) arguments: (argument_list (subscript_expression argument: (identifier) index: (number_literal)) (number_literal))))) (expression_statement (assignment_expression left: (subscript_expression argument: (identifier) index: (number_literal)) right: (identifier))) (expression_statement (assignment_expression left: (identifier) right: (call_expression function: (identifier) arguments: (argument_list (identifier))))) (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: (number_literal))) (expression_statement (assignment_expression left: (pointer_expression argument: (identifier)) right: (number_literal))) (return_statement))))

void MASKED(undefined4 *param_1)

{
  undefined4 uVar1;
  
  uVar1 = bignum_rshift(param_1[2],1);
  param_1[3] = uVar1;
  uVar1 = bignum_bitmask(uVar1);
  param_1[4] = uVar1;
  param_1[1] = 0;
  *param_1 = 0;
  return;
}

