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

void * dh_setup_group(ssh_kex *kex)

{
  dh_ctx *ctx;
  Bignum_conflict pBVar1;
  uchar *data;
  int nbytes;
  undefined4 *puVar2;
  
  puVar2 = (undefined4 *)kex->extra;
  ctx = (dh_ctx *)(*(code *)PTR_safemalloc_001112ec)(1,0x18);
  pBVar1 = bignum_from_bytes((uchar *)*puVar2,puVar2[2]);
  nbytes = puVar2[3];
  data = (uchar *)puVar2[1];
  ctx->p = pBVar1;
  pBVar1 = bignum_from_bytes(data,nbytes);
  ctx->g = pBVar1;
  dh_init(ctx);
  return ctx;
}



int dh_setup_group(int param_1)

{
  int iVar1;
  undefined4 uVar2;
  undefined4 uVar3;
  undefined4 uVar4;
  undefined4 *puVar5;
  
  puVar5 = *(undefined4 **)(param_1 + 0x10);
  iVar1 = (*(code *)PTR_safemalloc_001112ec)(1,0x18);
  uVar2 = bignum_from_bytes(*puVar5,puVar5[2]);
  uVar4 = puVar5[3];
  uVar3 = puVar5[1];
  *(undefined4 *)(iVar1 + 8) = uVar2;
  uVar2 = bignum_from_bytes(uVar3,uVar4);
  *(undefined4 *)(iVar1 + 0x14) = uVar2;
  FUN_00070060(iVar1);
  return iVar1;
}


lui gp,0xb
addiu gp,gp,-0x6e20
addu gp,gp,t9
addiu sp,sp,-0x28
lw t9,-0x7fc4(gp)
li a1,0x18
sw s1,0x20(sp)
sw ra,0x24(sp)
sw s0,0x1c(sp)
sw gp,0x10(sp)
lw s1,0x10(a0)
jalr t9
_li a0,0x1
lw gp,0x10(sp)
or s0,v0,zero
lw a1,0x8(s1)
lw t9,-0x7b54(gp)
bal 0x00067f70
_lw a0,0x0(s1)
lw gp,0x10(sp)
lw a1,0xc(s1)
lw a0,0x4(s1)
lw t9,-0x7b54(gp)
bal 0x00067f70
_sw v0,0x8(s0)
or a0,s0,zero
lw gp,0x10(sp)
lw t9,-0x7910(gp)
addiu t9,t9,0x60
bal 0x00070060
_sw v0,0x14(s0)
or v0,s0,zero
lw ra,0x24(sp)
lw s1,0x20(sp)
lw s0,0x1c(sp)
jr ra
_addiu sp,sp,0x28
(translation_unit "int dh_setup_group(int param_1)\n\n{\n  int iVar1;\n  undefined4 uVar2;\n  undefined4 uVar3;\n  undefined4 uVar4;\n  undefined4 *puVar5;\n  \n  puVar5 = *(undefined4 **)(param_1 + 0x10);\n  iVar1 = (*(code *)PTR_safemalloc_001112ec)(1,0x18);\n  uVar2 = bignum_from_bytes(*puVar5,puVar5[2]);\n  uVar4 = puVar5[3];\n  uVar3 = puVar5[1];\n  *(undefined4 *)(iVar1 + 8) = uVar2;\n  uVar2 = bignum_from_bytes(uVar3,uVar4);\n  *(undefined4 *)(iVar1 + 0x14) = uVar2;\n  FUN_00070060(iVar1);\n  return iVar1;\n}\n\n" (function_definition "int dh_setup_group(int param_1)\n\n{\n  int iVar1;\n  undefined4 uVar2;\n  undefined4 uVar3;\n  undefined4 uVar4;\n  undefined4 *puVar5;\n  \n  puVar5 = *(undefined4 **)(param_1 + 0x10);\n  iVar1 = (*(code *)PTR_safemalloc_001112ec)(1,0x18);\n  uVar2 = bignum_from_bytes(*puVar5,puVar5[2]);\n  uVar4 = puVar5[3];\n  uVar3 = puVar5[1];\n  *(undefined4 *)(iVar1 + 8) = uVar2;\n  uVar2 = bignum_from_bytes(uVar3,uVar4);\n  *(undefined4 *)(iVar1 + 0x14) = uVar2;\n  FUN_00070060(iVar1);\n  return iVar1;\n}" primitive_type (function_declarator "dh_setup_group(int param_1)" identifier (parameter_list "(int param_1)" ( (parameter_declaration "int param_1" primitive_type identifier) ))) (compound_statement "{\n  int iVar1;\n  undefined4 uVar2;\n  undefined4 uVar3;\n  undefined4 uVar4;\n  undefined4 *puVar5;\n  \n  puVar5 = *(undefined4 **)(param_1 + 0x10);\n  iVar1 = (*(code *)PTR_safemalloc_001112ec)(1,0x18);\n  uVar2 = bignum_from_bytes(*puVar5,puVar5[2]);\n  uVar4 = puVar5[3];\n  uVar3 = puVar5[1];\n  *(undefined4 *)(iVar1 + 8) = uVar2;\n  uVar2 = bignum_from_bytes(uVar3,uVar4);\n  *(undefined4 *)(iVar1 + 0x14) = uVar2;\n  FUN_00070060(iVar1);\n  return iVar1;\n}" { (declaration "int iVar1;" primitive_type identifier ;) (declaration "undefined4 uVar2;" type_identifier identifier ;) (declaration "undefined4 uVar3;" type_identifier identifier ;) (declaration "undefined4 uVar4;" type_identifier identifier ;) (declaration "undefined4 *puVar5;" type_identifier (pointer_declarator "*puVar5" * identifier) ;) (expression_statement "puVar5 = *(undefined4 **)(param_1 + 0x10);" (assignment_expression "puVar5 = *(undefined4 **)(param_1 + 0x10)" identifier = (pointer_expression "*(undefined4 **)(param_1 + 0x10)" * (cast_expression "(undefined4 **)(param_1 + 0x10)" ( (type_descriptor "undefined4 **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(param_1 + 0x10)" ( (binary_expression "param_1 + 0x10" identifier + number_literal) ))))) ;) (expression_statement "iVar1 = (*(code *)PTR_safemalloc_001112ec)(1,0x18);" (assignment_expression "iVar1 = (*(code *)PTR_safemalloc_001112ec)(1,0x18)" identifier = (call_expression "(*(code *)PTR_safemalloc_001112ec)(1,0x18)" (parenthesized_expression "(*(code *)PTR_safemalloc_001112ec)" ( (pointer_expression "*(code *)PTR_safemalloc_001112ec" * (cast_expression "(code *)PTR_safemalloc_001112ec" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(1,0x18)" ( number_literal , number_literal )))) ;) (expression_statement "uVar2 = bignum_from_bytes(*puVar5,puVar5[2]);" (assignment_expression "uVar2 = bignum_from_bytes(*puVar5,puVar5[2])" identifier = (call_expression "bignum_from_bytes(*puVar5,puVar5[2])" identifier (argument_list "(*puVar5,puVar5[2])" ( (pointer_expression "*puVar5" * identifier) , (subscript_expression "puVar5[2]" identifier [ number_literal ]) )))) ;) (expression_statement "uVar4 = puVar5[3];" (assignment_expression "uVar4 = puVar5[3]" identifier = (subscript_expression "puVar5[3]" identifier [ number_literal ])) ;) (expression_statement "uVar3 = puVar5[1];" (assignment_expression "uVar3 = puVar5[1]" identifier = (subscript_expression "puVar5[1]" identifier [ number_literal ])) ;) (expression_statement "*(undefined4 *)(iVar1 + 8) = uVar2;" (assignment_expression "*(undefined4 *)(iVar1 + 8) = uVar2" (pointer_expression "*(undefined4 *)(iVar1 + 8)" * (cast_expression "(undefined4 *)(iVar1 + 8)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar1 + 8)" ( (binary_expression "iVar1 + 8" identifier + number_literal) )))) = identifier) ;) (expression_statement "uVar2 = bignum_from_bytes(uVar3,uVar4);" (assignment_expression "uVar2 = bignum_from_bytes(uVar3,uVar4)" identifier = (call_expression "bignum_from_bytes(uVar3,uVar4)" identifier (argument_list "(uVar3,uVar4)" ( identifier , identifier )))) ;) (expression_statement "*(undefined4 *)(iVar1 + 0x14) = uVar2;" (assignment_expression "*(undefined4 *)(iVar1 + 0x14) = uVar2" (pointer_expression "*(undefined4 *)(iVar1 + 0x14)" * (cast_expression "(undefined4 *)(iVar1 + 0x14)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar1 + 0x14)" ( (binary_expression "iVar1 + 0x14" identifier + number_literal) )))) = identifier) ;) (expression_statement "FUN_00070060(iVar1);" (call_expression "FUN_00070060(iVar1)" identifier (argument_list "(iVar1)" ( identifier ))) ;) (return_statement "return iVar1;" return identifier ;) })))
(translation_unit "/* WARNING: Enum "anon_enum_32": Some values do not have unique names */\n\nvoid * dh_setup_group(ssh_kex *kex)\n\n{\n  dh_ctx *ctx;\n  Bignum_conflict pBVar1;\n  uchar *data;\n  int nbytes;\n  undefined4 *puVar2;\n  \n  puVar2 = (undefined4 *)kex->extra;\n  ctx = (dh_ctx *)(*(code *)PTR_safemalloc_001112ec)(1,0x18);\n  pBVar1 = bignum_from_bytes((uchar *)*puVar2,puVar2[2]);\n  nbytes = puVar2[3];\n  data = (uchar *)puVar2[1];\n  ctx->p = pBVar1;\n  pBVar1 = bignum_from_bytes(data,nbytes);\n  ctx->g = pBVar1;\n  dh_init(ctx);\n  return ctx;\n}\n\n" comment (function_definition "void * dh_setup_group(ssh_kex *kex)\n\n{\n  dh_ctx *ctx;\n  Bignum_conflict pBVar1;\n  uchar *data;\n  int nbytes;\n  undefined4 *puVar2;\n  \n  puVar2 = (undefined4 *)kex->extra;\n  ctx = (dh_ctx *)(*(code *)PTR_safemalloc_001112ec)(1,0x18);\n  pBVar1 = bignum_from_bytes((uchar *)*puVar2,puVar2[2]);\n  nbytes = puVar2[3];\n  data = (uchar *)puVar2[1];\n  ctx->p = pBVar1;\n  pBVar1 = bignum_from_bytes(data,nbytes);\n  ctx->g = pBVar1;\n  dh_init(ctx);\n  return ctx;\n}" primitive_type (pointer_declarator "* dh_setup_group(ssh_kex *kex)" * (function_declarator "dh_setup_group(ssh_kex *kex)" identifier (parameter_list "(ssh_kex *kex)" ( (parameter_declaration "ssh_kex *kex" type_identifier (pointer_declarator "*kex" * identifier)) )))) (compound_statement "{\n  dh_ctx *ctx;\n  Bignum_conflict pBVar1;\n  uchar *data;\n  int nbytes;\n  undefined4 *puVar2;\n  \n  puVar2 = (undefined4 *)kex->extra;\n  ctx = (dh_ctx *)(*(code *)PTR_safemalloc_001112ec)(1,0x18);\n  pBVar1 = bignum_from_bytes((uchar *)*puVar2,puVar2[2]);\n  nbytes = puVar2[3];\n  data = (uchar *)puVar2[1];\n  ctx->p = pBVar1;\n  pBVar1 = bignum_from_bytes(data,nbytes);\n  ctx->g = pBVar1;\n  dh_init(ctx);\n  return ctx;\n}" { (declaration "dh_ctx *ctx;" type_identifier (pointer_declarator "*ctx" * identifier) ;) (declaration "Bignum_conflict pBVar1;" type_identifier identifier ;) (declaration "uchar *data;" type_identifier (pointer_declarator "*data" * identifier) ;) (declaration "int nbytes;" primitive_type identifier ;) (declaration "undefined4 *puVar2;" type_identifier (pointer_declarator "*puVar2" * identifier) ;) (expression_statement "puVar2 = (undefined4 *)kex->extra;" (assignment_expression "puVar2 = (undefined4 *)kex->extra" identifier = (cast_expression "(undefined4 *)kex->extra" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (field_expression "kex->extra" identifier -> field_identifier))) ;) (expression_statement "ctx = (dh_ctx *)(*(code *)PTR_safemalloc_001112ec)(1,0x18);" (assignment_expression "ctx = (dh_ctx *)(*(code *)PTR_safemalloc_001112ec)(1,0x18)" identifier = (cast_expression "(dh_ctx *)(*(code *)PTR_safemalloc_001112ec)(1,0x18)" ( (type_descriptor "dh_ctx *" type_identifier (abstract_pointer_declarator "*" *)) ) (call_expression "(*(code *)PTR_safemalloc_001112ec)(1,0x18)" (parenthesized_expression "(*(code *)PTR_safemalloc_001112ec)" ( (pointer_expression "*(code *)PTR_safemalloc_001112ec" * (cast_expression "(code *)PTR_safemalloc_001112ec" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(1,0x18)" ( number_literal , number_literal ))))) ;) (expression_statement "pBVar1 = bignum_from_bytes((uchar *)*puVar2,puVar2[2]);" (assignment_expression "pBVar1 = bignum_from_bytes((uchar *)*puVar2,puVar2[2])" identifier = (call_expression "bignum_from_bytes((uchar *)*puVar2,puVar2[2])" identifier (argument_list "((uchar *)*puVar2,puVar2[2])" ( (cast_expression "(uchar *)*puVar2" ( (type_descriptor "uchar *" type_identifier (abstract_pointer_declarator "*" *)) ) (pointer_expression "*puVar2" * identifier)) , (subscript_expression "puVar2[2]" identifier [ number_literal ]) )))) ;) (expression_statement "nbytes = puVar2[3];" (assignment_expression "nbytes = puVar2[3]" identifier = (subscript_expression "puVar2[3]" identifier [ number_literal ])) ;) (expression_statement "data = (uchar *)puVar2[1];" (assignment_expression "data = (uchar *)puVar2[1]" identifier = (cast_expression "(uchar *)puVar2[1]" ( (type_descriptor "uchar *" type_identifier (abstract_pointer_declarator "*" *)) ) (subscript_expression "puVar2[1]" identifier [ number_literal ]))) ;) (expression_statement "ctx->p = pBVar1;" (assignment_expression "ctx->p = pBVar1" (field_expression "ctx->p" identifier -> field_identifier) = identifier) ;) (expression_statement "pBVar1 = bignum_from_bytes(data,nbytes);" (assignment_expression "pBVar1 = bignum_from_bytes(data,nbytes)" identifier = (call_expression "bignum_from_bytes(data,nbytes)" identifier (argument_list "(data,nbytes)" ( identifier , identifier )))) ;) (expression_statement "ctx->g = pBVar1;" (assignment_expression "ctx->g = pBVar1" (field_expression "ctx->g" identifier -> field_identifier) = identifier) ;) (expression_statement "dh_init(ctx);" (call_expression "dh_init(ctx)" identifier (argument_list "(ctx)" ( identifier ))) ;) (return_statement "return ctx;" return identifier ;) })))
(translation_unit "int dh_setup_group(int param_1)\n\n{\n  int iVar1;\n  undefined4 uVar2;\n  undefined4 uVar3;\n  undefined4 uVar4;\n  undefined4 *puVar5;\n  \n  puVar5 = *(undefined4 **)(param_1 + 0x10);\n  iVar1 = (*(code *)PTR_safemalloc_001112ec)(1,0x18);\n  uVar2 = bignum_from_bytes(*puVar5,puVar5[2]);\n  uVar4 = puVar5[3];\n  uVar3 = puVar5[1];\n  *(undefined4 *)(iVar1 + 8) = uVar2;\n  uVar2 = bignum_from_bytes(uVar3,uVar4);\n  *(undefined4 *)(iVar1 + 0x14) = uVar2;\n  FUN_00070060(iVar1);\n  return iVar1;\n}\n\n" (function_definition "int dh_setup_group(int param_1)\n\n{\n  int iVar1;\n  undefined4 uVar2;\n  undefined4 uVar3;\n  undefined4 uVar4;\n  undefined4 *puVar5;\n  \n  puVar5 = *(undefined4 **)(param_1 + 0x10);\n  iVar1 = (*(code *)PTR_safemalloc_001112ec)(1,0x18);\n  uVar2 = bignum_from_bytes(*puVar5,puVar5[2]);\n  uVar4 = puVar5[3];\n  uVar3 = puVar5[1];\n  *(undefined4 *)(iVar1 + 8) = uVar2;\n  uVar2 = bignum_from_bytes(uVar3,uVar4);\n  *(undefined4 *)(iVar1 + 0x14) = uVar2;\n  FUN_00070060(iVar1);\n  return iVar1;\n}" primitive_type (function_declarator "dh_setup_group(int param_1)" identifier (parameter_list "(int param_1)" ( (parameter_declaration "int param_1" primitive_type identifier) ))) (compound_statement "{\n  int iVar1;\n  undefined4 uVar2;\n  undefined4 uVar3;\n  undefined4 uVar4;\n  undefined4 *puVar5;\n  \n  puVar5 = *(undefined4 **)(param_1 + 0x10);\n  iVar1 = (*(code *)PTR_safemalloc_001112ec)(1,0x18);\n  uVar2 = bignum_from_bytes(*puVar5,puVar5[2]);\n  uVar4 = puVar5[3];\n  uVar3 = puVar5[1];\n  *(undefined4 *)(iVar1 + 8) = uVar2;\n  uVar2 = bignum_from_bytes(uVar3,uVar4);\n  *(undefined4 *)(iVar1 + 0x14) = uVar2;\n  FUN_00070060(iVar1);\n  return iVar1;\n}" { (declaration "int iVar1;" primitive_type identifier ;) (declaration "undefined4 uVar2;" type_identifier identifier ;) (declaration "undefined4 uVar3;" type_identifier identifier ;) (declaration "undefined4 uVar4;" type_identifier identifier ;) (declaration "undefined4 *puVar5;" type_identifier (pointer_declarator "*puVar5" * identifier) ;) (expression_statement "puVar5 = *(undefined4 **)(param_1 + 0x10);" (assignment_expression "puVar5 = *(undefined4 **)(param_1 + 0x10)" identifier = (pointer_expression "*(undefined4 **)(param_1 + 0x10)" * (cast_expression "(undefined4 **)(param_1 + 0x10)" ( (type_descriptor "undefined4 **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(param_1 + 0x10)" ( (binary_expression "param_1 + 0x10" identifier + number_literal) ))))) ;) (expression_statement "iVar1 = (*(code *)PTR_safemalloc_001112ec)(1,0x18);" (assignment_expression "iVar1 = (*(code *)PTR_safemalloc_001112ec)(1,0x18)" identifier = (call_expression "(*(code *)PTR_safemalloc_001112ec)(1,0x18)" (parenthesized_expression "(*(code *)PTR_safemalloc_001112ec)" ( (pointer_expression "*(code *)PTR_safemalloc_001112ec" * (cast_expression "(code *)PTR_safemalloc_001112ec" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(1,0x18)" ( number_literal , number_literal )))) ;) (expression_statement "uVar2 = bignum_from_bytes(*puVar5,puVar5[2]);" (assignment_expression "uVar2 = bignum_from_bytes(*puVar5,puVar5[2])" identifier = (call_expression "bignum_from_bytes(*puVar5,puVar5[2])" identifier (argument_list "(*puVar5,puVar5[2])" ( (pointer_expression "*puVar5" * identifier) , (subscript_expression "puVar5[2]" identifier [ number_literal ]) )))) ;) (expression_statement "uVar4 = puVar5[3];" (assignment_expression "uVar4 = puVar5[3]" identifier = (subscript_expression "puVar5[3]" identifier [ number_literal ])) ;) (expression_statement "uVar3 = puVar5[1];" (assignment_expression "uVar3 = puVar5[1]" identifier = (subscript_expression "puVar5[1]" identifier [ number_literal ])) ;) (expression_statement "*(undefined4 *)(iVar1 + 8) = uVar2;" (assignment_expression "*(undefined4 *)(iVar1 + 8) = uVar2" (pointer_expression "*(undefined4 *)(iVar1 + 8)" * (cast_expression "(undefined4 *)(iVar1 + 8)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar1 + 8)" ( (binary_expression "iVar1 + 8" identifier + number_literal) )))) = identifier) ;) (expression_statement "uVar2 = bignum_from_bytes(uVar3,uVar4);" (assignment_expression "uVar2 = bignum_from_bytes(uVar3,uVar4)" identifier = (call_expression "bignum_from_bytes(uVar3,uVar4)" identifier (argument_list "(uVar3,uVar4)" ( identifier , identifier )))) ;) (expression_statement "*(undefined4 *)(iVar1 + 0x14) = uVar2;" (assignment_expression "*(undefined4 *)(iVar1 + 0x14) = uVar2" (pointer_expression "*(undefined4 *)(iVar1 + 0x14)" * (cast_expression "(undefined4 *)(iVar1 + 0x14)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar1 + 0x14)" ( (binary_expression "iVar1 + 0x14" identifier + number_literal) )))) = identifier) ;) (expression_statement "FUN_00070060(iVar1);" (call_expression "FUN_00070060(iVar1)" identifier (argument_list "(iVar1)" ( identifier ))) ;) (return_statement "return iVar1;" return identifier ;) })))
(translation_unit (function_definition TYPE (function_declarator IDENT (parameter_list ( (parameter_declaration TYPE IDENT) ))) (compound_statement { (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE (pointer_declarator * IDENT) ;) (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator * (abstract_pointer_declarator *))) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) ;) (expression_statement (assignment_expression IDENT = (call_expression (parenthesized_expression ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT)) )) (argument_list ( LIT , LIT )))) ;) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( (pointer_expression * IDENT) , (subscript_expression IDENT [ LIT ]) )))) ;) (expression_statement (assignment_expression IDENT = (subscript_expression IDENT [ LIT ])) ;) (expression_statement (assignment_expression IDENT = (subscript_expression IDENT [ LIT ])) ;) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) = IDENT) ;) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( IDENT , IDENT )))) ;) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) = IDENT) ;) (expression_statement (call_expression IDENT (argument_list ( IDENT ))) ;) (return_statement return IDENT ;) })))
(function_definition "int dh_setup_group(int param_1)\n\n{\n  int iVar1;\n  undefined4 uVar2;\n  undefined4 uVar3;\n  undefined4 uVar4;\n  undefined4 *puVar5;\n  \n  puVar5 = *(undefined4 **)(param_1 + 0x10);\n  iVar1 = (*(code *)PTR_safemalloc_001112ec)(1,0x18);\n  uVar2 = bignum_from_bytes(*puVar5,puVar5[2]);\n  uVar4 = puVar5[3];\n  uVar3 = puVar5[1];\n  *(undefined4 *)(iVar1 + 8) = uVar2;\n  uVar2 = bignum_from_bytes(uVar3,uVar4);\n  *(undefined4 *)(iVar1 + 0x14) = uVar2;\n  FUN_00070060(iVar1);\n  return iVar1;\n}" (primitive_type "int") (function_declarator "dh_setup_group(int param_1)" (identifier "dh_setup_group") (parameter_list "(int param_1)" (( "(") (parameter_declaration "int param_1" (primitive_type "int") (identifier "param_1")) () ")"))) (compound_statement "{\n  int iVar1;\n  undefined4 uVar2;\n  undefined4 uVar3;\n  undefined4 uVar4;\n  undefined4 *puVar5;\n  \n  puVar5 = *(undefined4 **)(param_1 + 0x10);\n  iVar1 = (*(code *)PTR_safemalloc_001112ec)(1,0x18);\n  uVar2 = bignum_from_bytes(*puVar5,puVar5[2]);\n  uVar4 = puVar5[3];\n  uVar3 = puVar5[1];\n  *(undefined4 *)(iVar1 + 8) = uVar2;\n  uVar2 = bignum_from_bytes(uVar3,uVar4);\n  *(undefined4 *)(iVar1 + 0x14) = uVar2;\n  FUN_00070060(iVar1);\n  return iVar1;\n}" ({ "{") (declaration "int iVar1;" (primitive_type "int") (identifier "iVar1") (; ";")) (declaration "undefined4 uVar2;" (type_identifier "undefined4") (identifier "uVar2") (; ";")) (declaration "undefined4 uVar3;" (type_identifier "undefined4") (identifier "uVar3") (; ";")) (declaration "undefined4 uVar4;" (type_identifier "undefined4") (identifier "uVar4") (; ";")) (declaration "undefined4 *puVar5;" (type_identifier "undefined4") (pointer_declarator "*puVar5" (* "*") (identifier "puVar5")) (; ";")) (expression_statement "puVar5 = *(undefined4 **)(param_1 + 0x10);" (assignment_expression "puVar5 = *(undefined4 **)(param_1 + 0x10)" (identifier "puVar5") (= "=") (pointer_expression "*(undefined4 **)(param_1 + 0x10)" (* "*") (cast_expression "(undefined4 **)(param_1 + 0x10)" (( "(") (type_descriptor "undefined4 **" (type_identifier "undefined4") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (parenthesized_expression "(param_1 + 0x10)" (( "(") (binary_expression "param_1 + 0x10" (identifier "param_1") (+ "+") (number_literal "0x10")) () ")"))))) (; ";")) (expression_statement "iVar1 = (*(code *)PTR_safemalloc_001112ec)(1,0x18);" (assignment_expression "iVar1 = (*(code *)PTR_safemalloc_001112ec)(1,0x18)" (identifier "iVar1") (= "=") (call_expression "(*(code *)PTR_safemalloc_001112ec)(1,0x18)" (parenthesized_expression "(*(code *)PTR_safemalloc_001112ec)" (( "(") (pointer_expression "*(code *)PTR_safemalloc_001112ec" (* "*") (cast_expression "(code *)PTR_safemalloc_001112ec" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR_safemalloc_001112ec"))) () ")")) (argument_list "(1,0x18)" (( "(") (number_literal "1") (, ",") (number_literal "0x18") () ")")))) (; ";")) (expression_statement "uVar2 = bignum_from_bytes(*puVar5,puVar5[2]);" (assignment_expression "uVar2 = bignum_from_bytes(*puVar5,puVar5[2])" (identifier "uVar2") (= "=") (call_expression "bignum_from_bytes(*puVar5,puVar5[2])" (identifier "bignum_from_bytes") (argument_list "(*puVar5,puVar5[2])" (( "(") (pointer_expression "*puVar5" (* "*") (identifier "puVar5")) (, ",") (subscript_expression "puVar5[2]" (identifier "puVar5") ([ "[") (number_literal "2") (] "]")) () ")")))) (; ";")) (expression_statement "uVar4 = puVar5[3];" (assignment_expression "uVar4 = puVar5[3]" (identifier "uVar4") (= "=") (subscript_expression "puVar5[3]" (identifier "puVar5") ([ "[") (number_literal "3") (] "]"))) (; ";")) (expression_statement "uVar3 = puVar5[1];" (assignment_expression "uVar3 = puVar5[1]" (identifier "uVar3") (= "=") (subscript_expression "puVar5[1]" (identifier "puVar5") ([ "[") (number_literal "1") (] "]"))) (; ";")) (expression_statement "*(undefined4 *)(iVar1 + 8) = uVar2;" (assignment_expression "*(undefined4 *)(iVar1 + 8) = uVar2" (pointer_expression "*(undefined4 *)(iVar1 + 8)" (* "*") (cast_expression "(undefined4 *)(iVar1 + 8)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar1 + 8)" (( "(") (binary_expression "iVar1 + 8" (identifier "iVar1") (+ "+") (number_literal "8")) () ")")))) (= "=") (identifier "uVar2")) (; ";")) (expression_statement "uVar2 = bignum_from_bytes(uVar3,uVar4);" (assignment_expression "uVar2 = bignum_from_bytes(uVar3,uVar4)" (identifier "uVar2") (= "=") (call_expression "bignum_from_bytes(uVar3,uVar4)" (identifier "bignum_from_bytes") (argument_list "(uVar3,uVar4)" (( "(") (identifier "uVar3") (, ",") (identifier "uVar4") () ")")))) (; ";")) (expression_statement "*(undefined4 *)(iVar1 + 0x14) = uVar2;" (assignment_expression "*(undefined4 *)(iVar1 + 0x14) = uVar2" (pointer_expression "*(undefined4 *)(iVar1 + 0x14)" (* "*") (cast_expression "(undefined4 *)(iVar1 + 0x14)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar1 + 0x14)" (( "(") (binary_expression "iVar1 + 0x14" (identifier "iVar1") (+ "+") (number_literal "0x14")) () ")")))) (= "=") (identifier "uVar2")) (; ";")) (expression_statement "FUN_00070060(iVar1);" (call_expression "FUN_00070060(iVar1)" (identifier "FUN_00070060") (argument_list "(iVar1)" (( "(") (identifier "iVar1") () ")"))) (; ";")) (return_statement "return iVar1;" (return "return") (identifier "iVar1") (; ";")) (} "}")))

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

void * function_1(type_1 *kex)

{
  type_2 *ctx;
  type_3 pBVar1;
  type_4 *data;
  int nbytes;
  type_5 *puVar2;
  
  puVar2 = (type_5 *)kex->extra;
  ctx = (type_2 *)(*(type_6 *)PTR_safemalloc_001112ec)(1,0x18);
  pBVar1 = var_1((type_4 *)*puVar2,puVar2[2]);
  nbytes = puVar2[3];
  data = (type_4 *)puVar2[1];
  ctx->p = pBVar1;
  pBVar1 = var_1(data,nbytes);
  ctx->g = pBVar1;
  var_2(ctx);
  return ctx;
}


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

int MASKED(int param_1)

{
  int iVar1;
  undefined4 uVar2;
  undefined4 uVar3;
  undefined4 uVar4;
  undefined4 *puVar5;
  
  puVar5 = *(undefined4 **)(param_1 + 0x10);
  iVar1 = (*(code *)PTR_safemalloc_001112ec)(1,0x18);
  uVar2 = bignum_from_bytes(*puVar5,puVar5[2]);
  uVar4 = puVar5[3];
  uVar3 = puVar5[1];
  *(undefined4 *)(iVar1 + 8) = uVar2;
  uVar2 = bignum_from_bytes(uVar3,uVar4);
  *(undefined4 *)(iVar1 + 0x14) = uVar2;
  FUN_00070060(iVar1);
  return iVar1;
}

