
/* WARNING: Globals starting with '_' overlap smaller symbols at the same address */
/* WARNING: Unknown calling convention */

int dsa_set_pqg_dsaparam(uchar *dsaparam,ulong dsaparamlen,dsa_key *key)

{
  int iVar1;
  dsa_key *unaff_RBX;
  uchar *unaff_R12;
  ulong unaff_R13;
  long in_FS_OFFSET;
  int stat;
  long local_30;
  
  local_30 = *(long *)(in_FS_OFFSET + 0x28);
  if (dsaparam == (uchar *)0x0) {
    crypt_argchk("dsaparam != NULL","src/pk/dsa/dsa_set_pqg_dsaparam.c",0x1d);
LAB_0010009a:
    crypt_argchk("key != NULL","src/pk/dsa/dsa_set_pqg_dsaparam.c",0x1e);
LAB_001000b2:
    crypt_argchk("ltc_mp.name != NULL","src/pk/dsa/dsa_set_pqg_dsaparam.c",0x1f);
  }
  else {
    unaff_RBX = key;
    unaff_R12 = dsaparam;
    unaff_R13 = dsaparamlen;
    if (key == (dsa_key *)0x0) goto LAB_0010009a;
    if (_ltc_mp == 0) goto LAB_001000b2;
    iVar1 = ltc_init_multi(&key->p,&key->g,&key->q,&key->x,&key->y,0);
    if (iVar1 != 0) goto LAB_00100061;
  }
  iVar1 = der_decode_sequence_multi
                    (unaff_R12,unaff_R13,2,1,unaff_RBX->p,2,1,unaff_RBX->q,2,1,unaff_RBX->g,0,0,0);
  if (iVar1 == 0) {
    iVar1 = (*_DAT_00101090)(unaff_RBX->q);
    unaff_RBX->qord = iVar1;
    iVar1 = dsa_int_validate_pqg(unaff_RBX,&stat);
    if (iVar1 == 0) {
      if (stat != 0) goto LAB_00100061;
      iVar1 = 7;
    }
  }
  dsa_free(unaff_RBX);
LAB_00100061:
  if (local_30 == *(long *)(in_FS_OFFSET + 0x28)) {
    return iVar1;
  }
                    /* WARNING: Subroutine does not return */
  __stack_chk_fail();
}



/* WARNING: Control flow encountered bad instruction data */

int FUN_00100000(long param_1,undefined8 param_2,long param_3)

{
  undefined8 uVar1;
  undefined8 uVar2;
  int iVar3;
  long unaff_RBX;
  undefined1 *puVar4;
  undefined8 *puVar5;
  undefined1 *puVar6;
  undefined8 *puVar7;
  undefined8 unaff_R13;
  long in_FS_OFFSET;
  long alStack_98 [7];
  int iStack_5c;
  undefined8 auStack_58 [4];
  undefined1 local_38 [8];
  undefined8 local_30;
  
  puVar5 = (undefined8 *)local_38;
  puVar6 = local_38;
  local_30 = *(undefined8 *)(in_FS_OFFSET + 0x28);
  if (param_1 == 0) {
    puVar5 = auStack_58 + 3;
    auStack_58[3] = 0x10009a;
LAB_0010009a:
    puVar6 = (undefined1 *)((long)puVar5 + -8);
    *(undefined8 *)((long)puVar5 + -8) = 0x1000b2;
LAB_001000b2:
    puVar7 = (undefined8 *)(puVar6 + -8);
    *(undefined8 *)(puVar6 + -8) = 0x1000ca;
  }
  else {
    unaff_RBX = param_3;
    unaff_R13 = param_2;
    if (param_3 == 0) goto LAB_0010009a;
    if (lRam0000000000100035 == 0) goto LAB_001000b2;
    puVar7 = auStack_58 + 3;
    auStack_58[3] = 0x10005b;
  }
  *(undefined8 *)((long)puVar7 + -8) = 0;
  *(undefined8 *)((long)puVar7 + -0x10) = 0;
  *(undefined8 *)((long)puVar7 + -0x18) = 0;
  *(undefined8 *)((long)puVar7 + -0x20) = *(undefined8 *)(unaff_RBX + 8);
  *(undefined8 *)((long)puVar7 + -0x28) = 1;
  *(undefined8 *)((long)puVar7 + -0x30) = 2;
  *(undefined8 *)((long)puVar7 + -0x38) = *(undefined8 *)(unaff_RBX + 0x10);
  *(undefined8 *)((long)puVar7 + -0x40) = 1;
  uVar1 = *(undefined8 *)(unaff_RBX + 0x18);
  *(undefined8 *)((long)puVar7 + -0x48) = 0x100100;
  uVar2 = *(undefined8 *)(unaff_RBX + 0x10);
  *(undefined8 *)((long)puVar7 + -0x10) = 0x100114;
  iVar3 = (*pcRam0000000000100114)(uVar2,unaff_R13,2,1,uVar1,2);
  *(int *)(unaff_RBX + 4) = iVar3;
  puVar4 = (undefined1 *)((long)puVar7 + -0x10);
  *(undefined8 *)((long)puVar7 + -0x10) = 0x100124;
  if (iVar3 == 0) {
    if (*(int *)((long)puVar7 + -0xc) != 0) goto LAB_00100061;
    iVar3 = 7;
  }
  puVar4 = (undefined1 *)((long)puVar7 + -0x18);
  *(undefined8 *)((long)puVar7 + -0x18) = 0x100142;
LAB_00100061:
  if (*(long *)(puVar4 + 8) != *(long *)(in_FS_OFFSET + 0x28)) {
    *(undefined1 **)(puVar4 + -8) = &LAB_0010014c;
                    /* WARNING: Bad instruction - Truncating control flow here */
    halt_baddata();
  }
  return iVar3;
}


PUSH R13
PUSH R12
PUSH RBP
PUSH RBX
SUB RSP,0x18
MOV RAX,qword ptr FS:[0x28]
MOV qword ptr [RSP + 0x8],RAX
XOR EAX,EAX
TEST RDI,RDI
JZ 0x00100082
MOV R12,RDI
MOV R13,RSI
MOV RBX,RDX
TEST RDX,RDX
JZ 0x0010009a
CMP qword ptr [0x00100035],0x0
JZ 0x001000b2
LEA RCX,[RDX + 0x20]
LEA RDX,[RDX + 0x10]
LEA RSI,[RBX + 0x8]
LEA RDI,[RBX + 0x18]
MOV R9D,0x0
LEA R8,[RBX + 0x28]
MOV EAX,0x0
CALL 0x0010005b
MOV EBP,EAX
TEST EAX,EAX
JZ 0x001000ca
MOV EAX,EBP
MOV RCX,qword ptr [RSP + 0x8]
XOR RCX,qword ptr FS:[0x28]
JNZ 0x00100147
ADD RSP,0x18
POP RBX
POP RBP
POP R12
POP R13
RET
MOV EDX,0x1d
LEA RSI,[0x10008e]
LEA RDI,[0x100095]
CALL 0x0010009a
MOV EDX,0x1e
LEA RSI,[0x1000a6]
LEA RDI,[0x1000ad]
CALL 0x001000b2
MOV EDX,0x1f
LEA RSI,[0x1000be]
LEA RDI,[0x1000c5]
CALL 0x001000ca
PUSH 0x0
PUSH 0x0
PUSH 0x0
PUSH qword ptr [RBX + 0x8]
PUSH 0x1
PUSH 0x2
PUSH qword ptr [RBX + 0x10]
PUSH 0x1
MOV R9D,0x2
MOV R8,qword ptr [RBX + 0x18]
MOV ECX,0x1
MOV EDX,0x2
MOV RSI,R13
MOV RDI,R12
MOV EAX,0x0
CALL 0x00100100
MOV EBP,EAX
ADD RSP,0x40
TEST EAX,EAX
JNZ 0x0010013a
MOV RDI,qword ptr [RBX + 0x10]
CALL qword ptr [0x00100114]
MOV dword ptr [RBX + 0x4],EAX
LEA RSI,[RSP + 0x4]
MOV RDI,RBX
CALL 0x00100124
MOV EBP,EAX
TEST EAX,EAX
JNZ 0x0010013a
CMP dword ptr [RSP + 0x4],0x0
JNZ 0x00100061
MOV EBP,0x7
MOV RDI,RBX
CALL 0x00100142
JMP 0x00100061
CALL 0x0010014c
(translation_unit "/* WARNING: Control flow encountered bad instruction data */\n\nint FUN_00100000(long param_1,undefined8 param_2,long param_3)\n\n{\n  undefined8 uVar1;\n  undefined8 uVar2;\n  int iVar3;\n  long unaff_RBX;\n  undefined1 *puVar4;\n  undefined8 *puVar5;\n  undefined1 *puVar6;\n  undefined8 *puVar7;\n  undefined8 unaff_R13;\n  long in_FS_OFFSET;\n  long alStack_98 [7];\n  int iStack_5c;\n  undefined8 auStack_58 [4];\n  undefined1 local_38 [8];\n  undefined8 local_30;\n  \n  puVar5 = (undefined8 *)local_38;\n  puVar6 = local_38;\n  local_30 = *(undefined8 *)(in_FS_OFFSET + 0x28);\n  if (param_1 == 0) {\n    puVar5 = auStack_58 + 3;\n    auStack_58[3] = 0x10009a;\nLAB_0010009a:\n    puVar6 = (undefined1 *)((long)puVar5 + -8);\n    *(undefined8 *)((long)puVar5 + -8) = 0x1000b2;\nLAB_001000b2:\n    puVar7 = (undefined8 *)(puVar6 + -8);\n    *(undefined8 *)(puVar6 + -8) = 0x1000ca;\n  }\n  else {\n    unaff_RBX = param_3;\n    unaff_R13 = param_2;\n    if (param_3 == 0) goto LAB_0010009a;\n    if (lRam0000000000100035 == 0) goto LAB_001000b2;\n    puVar7 = auStack_58 + 3;\n    auStack_58[3] = 0x10005b;\n  }\n  *(undefined8 *)((long)puVar7 + -8) = 0;\n  *(undefined8 *)((long)puVar7 + -0x10) = 0;\n  *(undefined8 *)((long)puVar7 + -0x18) = 0;\n  *(undefined8 *)((long)puVar7 + -0x20) = *(undefined8 *)(unaff_RBX + 8);\n  *(undefined8 *)((long)puVar7 + -0x28) = 1;\n  *(undefined8 *)((long)puVar7 + -0x30) = 2;\n  *(undefined8 *)((long)puVar7 + -0x38) = *(undefined8 *)(unaff_RBX + 0x10);\n  *(undefined8 *)((long)puVar7 + -0x40) = 1;\n  uVar1 = *(undefined8 *)(unaff_RBX + 0x18);\n  *(undefined8 *)((long)puVar7 + -0x48) = 0x100100;\n  uVar2 = *(undefined8 *)(unaff_RBX + 0x10);\n  *(undefined8 *)((long)puVar7 + -0x10) = 0x100114;\n  iVar3 = (*pcRam0000000000100114)(uVar2,unaff_R13,2,1,uVar1,2);\n  *(int *)(unaff_RBX + 4) = iVar3;\n  puVar4 = (undefined1 *)((long)puVar7 + -0x10);\n  *(undefined8 *)((long)puVar7 + -0x10) = 0x100124;\n  if (iVar3 == 0) {\n    if (*(int *)((long)puVar7 + -0xc) != 0) goto LAB_00100061;\n    iVar3 = 7;\n  }\n  puVar4 = (undefined1 *)((long)puVar7 + -0x18);\n  *(undefined8 *)((long)puVar7 + -0x18) = 0x100142;\nLAB_00100061:\n  if (*(long *)(puVar4 + 8) != *(long *)(in_FS_OFFSET + 0x28)) {\n    *(undefined1 **)(puVar4 + -8) = &LAB_0010014c;\n                    /* WARNING: Bad instruction - Truncating control flow here */\n    halt_baddata();\n  }\n  return iVar3;\n}\n\n" comment (function_definition "int FUN_00100000(long param_1,undefined8 param_2,long param_3)\n\n{\n  undefined8 uVar1;\n  undefined8 uVar2;\n  int iVar3;\n  long unaff_RBX;\n  undefined1 *puVar4;\n  undefined8 *puVar5;\n  undefined1 *puVar6;\n  undefined8 *puVar7;\n  undefined8 unaff_R13;\n  long in_FS_OFFSET;\n  long alStack_98 [7];\n  int iStack_5c;\n  undefined8 auStack_58 [4];\n  undefined1 local_38 [8];\n  undefined8 local_30;\n  \n  puVar5 = (undefined8 *)local_38;\n  puVar6 = local_38;\n  local_30 = *(undefined8 *)(in_FS_OFFSET + 0x28);\n  if (param_1 == 0) {\n    puVar5 = auStack_58 + 3;\n    auStack_58[3] = 0x10009a;\nLAB_0010009a:\n    puVar6 = (undefined1 *)((long)puVar5 + -8);\n    *(undefined8 *)((long)puVar5 + -8) = 0x1000b2;\nLAB_001000b2:\n    puVar7 = (undefined8 *)(puVar6 + -8);\n    *(undefined8 *)(puVar6 + -8) = 0x1000ca;\n  }\n  else {\n    unaff_RBX = param_3;\n    unaff_R13 = param_2;\n    if (param_3 == 0) goto LAB_0010009a;\n    if (lRam0000000000100035 == 0) goto LAB_001000b2;\n    puVar7 = auStack_58 + 3;\n    auStack_58[3] = 0x10005b;\n  }\n  *(undefined8 *)((long)puVar7 + -8) = 0;\n  *(undefined8 *)((long)puVar7 + -0x10) = 0;\n  *(undefined8 *)((long)puVar7 + -0x18) = 0;\n  *(undefined8 *)((long)puVar7 + -0x20) = *(undefined8 *)(unaff_RBX + 8);\n  *(undefined8 *)((long)puVar7 + -0x28) = 1;\n  *(undefined8 *)((long)puVar7 + -0x30) = 2;\n  *(undefined8 *)((long)puVar7 + -0x38) = *(undefined8 *)(unaff_RBX + 0x10);\n  *(undefined8 *)((long)puVar7 + -0x40) = 1;\n  uVar1 = *(undefined8 *)(unaff_RBX + 0x18);\n  *(undefined8 *)((long)puVar7 + -0x48) = 0x100100;\n  uVar2 = *(undefined8 *)(unaff_RBX + 0x10);\n  *(undefined8 *)((long)puVar7 + -0x10) = 0x100114;\n  iVar3 = (*pcRam0000000000100114)(uVar2,unaff_R13,2,1,uVar1,2);\n  *(int *)(unaff_RBX + 4) = iVar3;\n  puVar4 = (undefined1 *)((long)puVar7 + -0x10);\n  *(undefined8 *)((long)puVar7 + -0x10) = 0x100124;\n  if (iVar3 == 0) {\n    if (*(int *)((long)puVar7 + -0xc) != 0) goto LAB_00100061;\n    iVar3 = 7;\n  }\n  puVar4 = (undefined1 *)((long)puVar7 + -0x18);\n  *(undefined8 *)((long)puVar7 + -0x18) = 0x100142;\nLAB_00100061:\n  if (*(long *)(puVar4 + 8) != *(long *)(in_FS_OFFSET + 0x28)) {\n    *(undefined1 **)(puVar4 + -8) = &LAB_0010014c;\n                    /* WARNING: Bad instruction - Truncating control flow here */\n    halt_baddata();\n  }\n  return iVar3;\n}" primitive_type (function_declarator "FUN_00100000(long param_1,undefined8 param_2,long param_3)" identifier (parameter_list "(long param_1,undefined8 param_2,long param_3)" ( (parameter_declaration "long param_1" (sized_type_specifier "long" long) identifier) , (parameter_declaration "undefined8 param_2" type_identifier identifier) , (parameter_declaration "long param_3" (sized_type_specifier "long" long) identifier) ))) (compound_statement "{\n  undefined8 uVar1;\n  undefined8 uVar2;\n  int iVar3;\n  long unaff_RBX;\n  undefined1 *puVar4;\n  undefined8 *puVar5;\n  undefined1 *puVar6;\n  undefined8 *puVar7;\n  undefined8 unaff_R13;\n  long in_FS_OFFSET;\n  long alStack_98 [7];\n  int iStack_5c;\n  undefined8 auStack_58 [4];\n  undefined1 local_38 [8];\n  undefined8 local_30;\n  \n  puVar5 = (undefined8 *)local_38;\n  puVar6 = local_38;\n  local_30 = *(undefined8 *)(in_FS_OFFSET + 0x28);\n  if (param_1 == 0) {\n    puVar5 = auStack_58 + 3;\n    auStack_58[3] = 0x10009a;\nLAB_0010009a:\n    puVar6 = (undefined1 *)((long)puVar5 + -8);\n    *(undefined8 *)((long)puVar5 + -8) = 0x1000b2;\nLAB_001000b2:\n    puVar7 = (undefined8 *)(puVar6 + -8);\n    *(undefined8 *)(puVar6 + -8) = 0x1000ca;\n  }\n  else {\n    unaff_RBX = param_3;\n    unaff_R13 = param_2;\n    if (param_3 == 0) goto LAB_0010009a;\n    if (lRam0000000000100035 == 0) goto LAB_001000b2;\n    puVar7 = auStack_58 + 3;\n    auStack_58[3] = 0x10005b;\n  }\n  *(undefined8 *)((long)puVar7 + -8) = 0;\n  *(undefined8 *)((long)puVar7 + -0x10) = 0;\n  *(undefined8 *)((long)puVar7 + -0x18) = 0;\n  *(undefined8 *)((long)puVar7 + -0x20) = *(undefined8 *)(unaff_RBX + 8);\n  *(undefined8 *)((long)puVar7 + -0x28) = 1;\n  *(undefined8 *)((long)puVar7 + -0x30) = 2;\n  *(undefined8 *)((long)puVar7 + -0x38) = *(undefined8 *)(unaff_RBX + 0x10);\n  *(undefined8 *)((long)puVar7 + -0x40) = 1;\n  uVar1 = *(undefined8 *)(unaff_RBX + 0x18);\n  *(undefined8 *)((long)puVar7 + -0x48) = 0x100100;\n  uVar2 = *(undefined8 *)(unaff_RBX + 0x10);\n  *(undefined8 *)((long)puVar7 + -0x10) = 0x100114;\n  iVar3 = (*pcRam0000000000100114)(uVar2,unaff_R13,2,1,uVar1,2);\n  *(int *)(unaff_RBX + 4) = iVar3;\n  puVar4 = (undefined1 *)((long)puVar7 + -0x10);\n  *(undefined8 *)((long)puVar7 + -0x10) = 0x100124;\n  if (iVar3 == 0) {\n    if (*(int *)((long)puVar7 + -0xc) != 0) goto LAB_00100061;\n    iVar3 = 7;\n  }\n  puVar4 = (undefined1 *)((long)puVar7 + -0x18);\n  *(undefined8 *)((long)puVar7 + -0x18) = 0x100142;\nLAB_00100061:\n  if (*(long *)(puVar4 + 8) != *(long *)(in_FS_OFFSET + 0x28)) {\n    *(undefined1 **)(puVar4 + -8) = &LAB_0010014c;\n                    /* WARNING: Bad instruction - Truncating control flow here */\n    halt_baddata();\n  }\n  return iVar3;\n}" { (declaration "undefined8 uVar1;" type_identifier identifier ;) (declaration "undefined8 uVar2;" type_identifier identifier ;) (declaration "int iVar3;" primitive_type identifier ;) (declaration "long unaff_RBX;" (sized_type_specifier "long" long) identifier ;) (declaration "undefined1 *puVar4;" type_identifier (pointer_declarator "*puVar4" * identifier) ;) (declaration "undefined8 *puVar5;" type_identifier (pointer_declarator "*puVar5" * identifier) ;) (declaration "undefined1 *puVar6;" type_identifier (pointer_declarator "*puVar6" * identifier) ;) (declaration "undefined8 *puVar7;" type_identifier (pointer_declarator "*puVar7" * identifier) ;) (declaration "undefined8 unaff_R13;" type_identifier identifier ;) (declaration "long in_FS_OFFSET;" (sized_type_specifier "long" long) identifier ;) (declaration "long alStack_98 [7];" (sized_type_specifier "long" long) (array_declarator "alStack_98 [7]" identifier [ number_literal ]) ;) (declaration "int iStack_5c;" primitive_type identifier ;) (declaration "undefined8 auStack_58 [4];" type_identifier (array_declarator "auStack_58 [4]" identifier [ number_literal ]) ;) (declaration "undefined1 local_38 [8];" type_identifier (array_declarator "local_38 [8]" identifier [ number_literal ]) ;) (declaration "undefined8 local_30;" type_identifier identifier ;) (expression_statement "puVar5 = (undefined8 *)local_38;" (assignment_expression "puVar5 = (undefined8 *)local_38" identifier = (cast_expression "(undefined8 *)local_38" ( (type_descriptor "undefined8 *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) ;) (expression_statement "puVar6 = local_38;" (assignment_expression "puVar6 = local_38" identifier = identifier) ;) (expression_statement "local_30 = *(undefined8 *)(in_FS_OFFSET + 0x28);" (assignment_expression "local_30 = *(undefined8 *)(in_FS_OFFSET + 0x28)" identifier = (pointer_expression "*(undefined8 *)(in_FS_OFFSET + 0x28)" * (cast_expression "(undefined8 *)(in_FS_OFFSET + 0x28)" ( (type_descriptor "undefined8 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(in_FS_OFFSET + 0x28)" ( (binary_expression "in_FS_OFFSET + 0x28" identifier + number_literal) ))))) ;) (if_statement "if (param_1 == 0) {\n    puVar5 = auStack_58 + 3;\n    auStack_58[3] = 0x10009a;\nLAB_0010009a:\n    puVar6 = (undefined1 *)((long)puVar5 + -8);\n    *(undefined8 *)((long)puVar5 + -8) = 0x1000b2;\nLAB_001000b2:\n    puVar7 = (undefined8 *)(puVar6 + -8);\n    *(undefined8 *)(puVar6 + -8) = 0x1000ca;\n  }\n  else {\n    unaff_RBX = param_3;\n    unaff_R13 = param_2;\n    if (param_3 == 0) goto LAB_0010009a;\n    if (lRam0000000000100035 == 0) goto LAB_001000b2;\n    puVar7 = auStack_58 + 3;\n    auStack_58[3] = 0x10005b;\n  }" if (parenthesized_expression "(param_1 == 0)" ( (binary_expression "param_1 == 0" identifier == number_literal) )) (compound_statement "{\n    puVar5 = auStack_58 + 3;\n    auStack_58[3] = 0x10009a;\nLAB_0010009a:\n    puVar6 = (undefined1 *)((long)puVar5 + -8);\n    *(undefined8 *)((long)puVar5 + -8) = 0x1000b2;\nLAB_001000b2:\n    puVar7 = (undefined8 *)(puVar6 + -8);\n    *(undefined8 *)(puVar6 + -8) = 0x1000ca;\n  }" { (expression_statement "puVar5 = auStack_58 + 3;" (assignment_expression "puVar5 = auStack_58 + 3" identifier = (binary_expression "auStack_58 + 3" identifier + number_literal)) ;) (expression_statement "auStack_58[3] = 0x10009a;" (assignment_expression "auStack_58[3] = 0x10009a" (subscript_expression "auStack_58[3]" identifier [ number_literal ]) = number_literal) ;) (labeled_statement "LAB_0010009a:\n    puVar6 = (undefined1 *)((long)puVar5 + -8);" statement_identifier : (expression_statement "puVar6 = (undefined1 *)((long)puVar5 + -8);" (assignment_expression "puVar6 = (undefined1 *)((long)puVar5 + -8)" identifier = (cast_expression "(undefined1 *)((long)puVar5 + -8)" ( (type_descriptor "undefined1 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((long)puVar5 + -8)" ( (binary_expression "(long)puVar5 + -8" (cast_expression "(long)puVar5" ( (type_descriptor "long" (sized_type_specifier "long" long)) ) identifier) + number_literal) )))) ;)) (expression_statement "*(undefined8 *)((long)puVar5 + -8) = 0x1000b2;" (assignment_expression "*(undefined8 *)((long)puVar5 + -8) = 0x1000b2" (pointer_expression "*(undefined8 *)((long)puVar5 + -8)" * (cast_expression "(undefined8 *)((long)puVar5 + -8)" ( (type_descriptor "undefined8 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((long)puVar5 + -8)" ( (binary_expression "(long)puVar5 + -8" (cast_expression "(long)puVar5" ( (type_descriptor "long" (sized_type_specifier "long" long)) ) identifier) + number_literal) )))) = number_literal) ;) (labeled_statement "LAB_001000b2:\n    puVar7 = (undefined8 *)(puVar6 + -8);" statement_identifier : (expression_statement "puVar7 = (undefined8 *)(puVar6 + -8);" (assignment_expression "puVar7 = (undefined8 *)(puVar6 + -8)" identifier = (cast_expression "(undefined8 *)(puVar6 + -8)" ( (type_descriptor "undefined8 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(puVar6 + -8)" ( (binary_expression "puVar6 + -8" identifier + number_literal) )))) ;)) (expression_statement "*(undefined8 *)(puVar6 + -8) = 0x1000ca;" (assignment_expression "*(undefined8 *)(puVar6 + -8) = 0x1000ca" (pointer_expression "*(undefined8 *)(puVar6 + -8)" * (cast_expression "(undefined8 *)(puVar6 + -8)" ( (type_descriptor "undefined8 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(puVar6 + -8)" ( (binary_expression "puVar6 + -8" identifier + number_literal) )))) = number_literal) ;) }) (else_clause "else {\n    unaff_RBX = param_3;\n    unaff_R13 = param_2;\n    if (param_3 == 0) goto LAB_0010009a;\n    if (lRam0000000000100035 == 0) goto LAB_001000b2;\n    puVar7 = auStack_58 + 3;\n    auStack_58[3] = 0x10005b;\n  }" else (compound_statement "{\n    unaff_RBX = param_3;\n    unaff_R13 = param_2;\n    if (param_3 == 0) goto LAB_0010009a;\n    if (lRam0000000000100035 == 0) goto LAB_001000b2;\n    puVar7 = auStack_58 + 3;\n    auStack_58[3] = 0x10005b;\n  }" { (expression_statement "unaff_RBX = param_3;" (assignment_expression "unaff_RBX = param_3" identifier = identifier) ;) (expression_statement "unaff_R13 = param_2;" (assignment_expression "unaff_R13 = param_2" identifier = identifier) ;) (if_statement "if (param_3 == 0) goto LAB_0010009a;" if (parenthesized_expression "(param_3 == 0)" ( (binary_expression "param_3 == 0" identifier == number_literal) )) (goto_statement "goto LAB_0010009a;" goto statement_identifier ;)) (if_statement "if (lRam0000000000100035 == 0) goto LAB_001000b2;" if (parenthesized_expression "(lRam0000000000100035 == 0)" ( (binary_expression "lRam0000000000100035 == 0" identifier == number_literal) )) (goto_statement "goto LAB_001000b2;" goto statement_identifier ;)) (expression_statement "puVar7 = auStack_58 + 3;" (assignment_expression "puVar7 = auStack_58 + 3" identifier = (binary_expression "auStack_58 + 3" identifier + number_literal)) ;) (expression_statement "auStack_58[3] = 0x10005b;" (assignment_expression "auStack_58[3] = 0x10005b" (subscript_expression "auStack_58[3]" identifier [ number_literal ]) = number_literal) ;) }))) (expression_statement "*(undefined8 *)((long)puVar7 + -8) = 0;" (assignment_expression "*(undefined8 *)((long)puVar7 + -8) = 0" (pointer_expression "*(undefined8 *)((long)puVar7 + -8)" * (cast_expression "(undefined8 *)((long)puVar7 + -8)" ( (type_descriptor "undefined8 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((long)puVar7 + -8)" ( (binary_expression "(long)puVar7 + -8" (cast_expression "(long)puVar7" ( (type_descriptor "long" (sized_type_specifier "long" long)) ) identifier) + number_literal) )))) = number_literal) ;) (expression_statement "*(undefined8 *)((long)puVar7 + -0x10) = 0;" (assignment_expression "*(undefined8 *)((long)puVar7 + -0x10) = 0" (pointer_expression "*(undefined8 *)((long)puVar7 + -0x10)" * (cast_expression "(undefined8 *)((long)puVar7 + -0x10)" ( (type_descriptor "undefined8 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((long)puVar7 + -0x10)" ( (binary_expression "(long)puVar7 + -0x10" (cast_expression "(long)puVar7" ( (type_descriptor "long" (sized_type_specifier "long" long)) ) identifier) + number_literal) )))) = number_literal) ;) (expression_statement "*(undefined8 *)((long)puVar7 + -0x18) = 0;" (assignment_expression "*(undefined8 *)((long)puVar7 + -0x18) = 0" (pointer_expression "*(undefined8 *)((long)puVar7 + -0x18)" * (cast_expression "(undefined8 *)((long)puVar7 + -0x18)" ( (type_descriptor "undefined8 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((long)puVar7 + -0x18)" ( (binary_expression "(long)puVar7 + -0x18" (cast_expression "(long)puVar7" ( (type_descriptor "long" (sized_type_specifier "long" long)) ) identifier) + number_literal) )))) = number_literal) ;) (expression_statement "*(undefined8 *)((long)puVar7 + -0x20) = *(undefined8 *)(unaff_RBX + 8);" (assignment_expression "*(undefined8 *)((long)puVar7 + -0x20) = *(undefined8 *)(unaff_RBX + 8)" (pointer_expression "*(undefined8 *)((long)puVar7 + -0x20)" * (cast_expression "(undefined8 *)((long)puVar7 + -0x20)" ( (type_descriptor "undefined8 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((long)puVar7 + -0x20)" ( (binary_expression "(long)puVar7 + -0x20" (cast_expression "(long)puVar7" ( (type_descriptor "long" (sized_type_specifier "long" long)) ) identifier) + number_literal) )))) = (pointer_expression "*(undefined8 *)(unaff_RBX + 8)" * (cast_expression "(undefined8 *)(unaff_RBX + 8)" ( (type_descriptor "undefined8 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(unaff_RBX + 8)" ( (binary_expression "unaff_RBX + 8" identifier + number_literal) ))))) ;) (expression_statement "*(undefined8 *)((long)puVar7 + -0x28) = 1;" (assignment_expression "*(undefined8 *)((long)puVar7 + -0x28) = 1" (pointer_expression "*(undefined8 *)((long)puVar7 + -0x28)" * (cast_expression "(undefined8 *)((long)puVar7 + -0x28)" ( (type_descriptor "undefined8 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((long)puVar7 + -0x28)" ( (binary_expression "(long)puVar7 + -0x28" (cast_expression "(long)puVar7" ( (type_descriptor "long" (sized_type_specifier "long" long)) ) identifier) + number_literal) )))) = number_literal) ;) (expression_statement "*(undefined8 *)((long)puVar7 + -0x30) = 2;" (assignment_expression "*(undefined8 *)((long)puVar7 + -0x30) = 2" (pointer_expression "*(undefined8 *)((long)puVar7 + -0x30)" * (cast_expression "(undefined8 *)((long)puVar7 + -0x30)" ( (type_descriptor "undefined8 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((long)puVar7 + -0x30)" ( (binary_expression "(long)puVar7 + -0x30" (cast_expression "(long)puVar7" ( (type_descriptor "long" (sized_type_specifier "long" long)) ) identifier) + number_literal) )))) = number_literal) ;) (expression_statement "*(undefined8 *)((long)puVar7 + -0x38) = *(undefined8 *)(unaff_RBX + 0x10);" (assignment_expression "*(undefined8 *)((long)puVar7 + -0x38) = *(undefined8 *)(unaff_RBX + 0x10)" (pointer_expression "*(undefined8 *)((long)puVar7 + -0x38)" * (cast_expression "(undefined8 *)((long)puVar7 + -0x38)" ( (type_descriptor "undefined8 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((long)puVar7 + -0x38)" ( (binary_expression "(long)puVar7 + -0x38" (cast_expression "(long)puVar7" ( (type_descriptor "long" (sized_type_specifier "long" long)) ) identifier) + number_literal) )))) = (pointer_expression "*(undefined8 *)(unaff_RBX + 0x10)" * (cast_expression "(undefined8 *)(unaff_RBX + 0x10)" ( (type_descriptor "undefined8 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(unaff_RBX + 0x10)" ( (binary_expression "unaff_RBX + 0x10" identifier + number_literal) ))))) ;) (expression_statement "*(undefined8 *)((long)puVar7 + -0x40) = 1;" (assignment_expression "*(undefined8 *)((long)puVar7 + -0x40) = 1" (pointer_expression "*(undefined8 *)((long)puVar7 + -0x40)" * (cast_expression "(undefined8 *)((long)puVar7 + -0x40)" ( (type_descriptor "undefined8 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((long)puVar7 + -0x40)" ( (binary_expression "(long)puVar7 + -0x40" (cast_expression "(long)puVar7" ( (type_descriptor "long" (sized_type_specifier "long" long)) ) identifier) + number_literal) )))) = number_literal) ;) (expression_statement "uVar1 = *(undefined8 *)(unaff_RBX + 0x18);" (assignment_expression "uVar1 = *(undefined8 *)(unaff_RBX + 0x18)" identifier = (pointer_expression "*(undefined8 *)(unaff_RBX + 0x18)" * (cast_expression "(undefined8 *)(unaff_RBX + 0x18)" ( (type_descriptor "undefined8 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(unaff_RBX + 0x18)" ( (binary_expression "unaff_RBX + 0x18" identifier + number_literal) ))))) ;) (expression_statement "*(undefined8 *)((long)puVar7 + -0x48) = 0x100100;" (assignment_expression "*(undefined8 *)((long)puVar7 + -0x48) = 0x100100" (pointer_expression "*(undefined8 *)((long)puVar7 + -0x48)" * (cast_expression "(undefined8 *)((long)puVar7 + -0x48)" ( (type_descriptor "undefined8 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((long)puVar7 + -0x48)" ( (binary_expression "(long)puVar7 + -0x48" (cast_expression "(long)puVar7" ( (type_descriptor "long" (sized_type_specifier "long" long)) ) identifier) + number_literal) )))) = number_literal) ;) (expression_statement "uVar2 = *(undefined8 *)(unaff_RBX + 0x10);" (assignment_expression "uVar2 = *(undefined8 *)(unaff_RBX + 0x10)" identifier = (pointer_expression "*(undefined8 *)(unaff_RBX + 0x10)" * (cast_expression "(undefined8 *)(unaff_RBX + 0x10)" ( (type_descriptor "undefined8 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(unaff_RBX + 0x10)" ( (binary_expression "unaff_RBX + 0x10" identifier + number_literal) ))))) ;) (expression_statement "*(undefined8 *)((long)puVar7 + -0x10) = 0x100114;" (assignment_expression "*(undefined8 *)((long)puVar7 + -0x10) = 0x100114" (pointer_expression "*(undefined8 *)((long)puVar7 + -0x10)" * (cast_expression "(undefined8 *)((long)puVar7 + -0x10)" ( (type_descriptor "undefined8 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((long)puVar7 + -0x10)" ( (binary_expression "(long)puVar7 + -0x10" (cast_expression "(long)puVar7" ( (type_descriptor "long" (sized_type_specifier "long" long)) ) identifier) + number_literal) )))) = number_literal) ;) (expression_statement "iVar3 = (*pcRam0000000000100114)(uVar2,unaff_R13,2,1,uVar1,2);" (assignment_expression "iVar3 = (*pcRam0000000000100114)(uVar2,unaff_R13,2,1,uVar1,2)" identifier = (call_expression "(*pcRam0000000000100114)(uVar2,unaff_R13,2,1,uVar1,2)" (parenthesized_expression "(*pcRam0000000000100114)" ( (pointer_expression "*pcRam0000000000100114" * identifier) )) (argument_list "(uVar2,unaff_R13,2,1,uVar1,2)" ( identifier , identifier , number_literal , number_literal , identifier , number_literal )))) ;) (expression_statement "*(int *)(unaff_RBX + 4) = iVar3;" (assignment_expression "*(int *)(unaff_RBX + 4) = iVar3" (pointer_expression "*(int *)(unaff_RBX + 4)" * (cast_expression "(int *)(unaff_RBX + 4)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(unaff_RBX + 4)" ( (binary_expression "unaff_RBX + 4" identifier + number_literal) )))) = identifier) ;) (expression_statement "puVar4 = (undefined1 *)((long)puVar7 + -0x10);" (assignment_expression "puVar4 = (undefined1 *)((long)puVar7 + -0x10)" identifier = (cast_expression "(undefined1 *)((long)puVar7 + -0x10)" ( (type_descriptor "undefined1 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((long)puVar7 + -0x10)" ( (binary_expression "(long)puVar7 + -0x10" (cast_expression "(long)puVar7" ( (type_descriptor "long" (sized_type_specifier "long" long)) ) identifier) + number_literal) )))) ;) (expression_statement "*(undefined8 *)((long)puVar7 + -0x10) = 0x100124;" (assignment_expression "*(undefined8 *)((long)puVar7 + -0x10) = 0x100124" (pointer_expression "*(undefined8 *)((long)puVar7 + -0x10)" * (cast_expression "(undefined8 *)((long)puVar7 + -0x10)" ( (type_descriptor "undefined8 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((long)puVar7 + -0x10)" ( (binary_expression "(long)puVar7 + -0x10" (cast_expression "(long)puVar7" ( (type_descriptor "long" (sized_type_specifier "long" long)) ) identifier) + number_literal) )))) = number_literal) ;) (if_statement "if (iVar3 == 0) {\n    if (*(int *)((long)puVar7 + -0xc) != 0) goto LAB_00100061;\n    iVar3 = 7;\n  }" if (parenthesized_expression "(iVar3 == 0)" ( (binary_expression "iVar3 == 0" identifier == number_literal) )) (compound_statement "{\n    if (*(int *)((long)puVar7 + -0xc) != 0) goto LAB_00100061;\n    iVar3 = 7;\n  }" { (if_statement "if (*(int *)((long)puVar7 + -0xc) != 0) goto LAB_00100061;" if (parenthesized_expression "(*(int *)((long)puVar7 + -0xc) != 0)" ( (binary_expression "*(int *)((long)puVar7 + -0xc) != 0" (pointer_expression "*(int *)((long)puVar7 + -0xc)" * (cast_expression "(int *)((long)puVar7 + -0xc)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((long)puVar7 + -0xc)" ( (binary_expression "(long)puVar7 + -0xc" (cast_expression "(long)puVar7" ( (type_descriptor "long" (sized_type_specifier "long" long)) ) identifier) + number_literal) )))) != number_literal) )) (goto_statement "goto LAB_00100061;" goto statement_identifier ;)) (expression_statement "iVar3 = 7;" (assignment_expression "iVar3 = 7" identifier = number_literal) ;) })) (expression_statement "puVar4 = (undefined1 *)((long)puVar7 + -0x18);" (assignment_expression "puVar4 = (undefined1 *)((long)puVar7 + -0x18)" identifier = (cast_expression "(undefined1 *)((long)puVar7 + -0x18)" ( (type_descriptor "undefined1 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((long)puVar7 + -0x18)" ( (binary_expression "(long)puVar7 + -0x18" (cast_expression "(long)puVar7" ( (type_descriptor "long" (sized_type_specifier "long" long)) ) identifier) + number_literal) )))) ;) (expression_statement "*(undefined8 *)((long)puVar7 + -0x18) = 0x100142;" (assignment_expression "*(undefined8 *)((long)puVar7 + -0x18) = 0x100142" (pointer_expression "*(undefined8 *)((long)puVar7 + -0x18)" * (cast_expression "(undefined8 *)((long)puVar7 + -0x18)" ( (type_descriptor "undefined8 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((long)puVar7 + -0x18)" ( (binary_expression "(long)puVar7 + -0x18" (cast_expression "(long)puVar7" ( (type_descriptor "long" (sized_type_specifier "long" long)) ) identifier) + number_literal) )))) = number_literal) ;) (labeled_statement "LAB_00100061:\n  if (*(long *)(puVar4 + 8) != *(long *)(in_FS_OFFSET + 0x28)) {\n    *(undefined1 **)(puVar4 + -8) = &LAB_0010014c;\n                    /* WARNING: Bad instruction - Truncating control flow here */\n    halt_baddata();\n  }" statement_identifier : (if_statement "if (*(long *)(puVar4 + 8) != *(long *)(in_FS_OFFSET + 0x28)) {\n    *(undefined1 **)(puVar4 + -8) = &LAB_0010014c;\n                    /* WARNING: Bad instruction - Truncating control flow here */\n    halt_baddata();\n  }" if (parenthesized_expression "(*(long *)(puVar4 + 8) != *(long *)(in_FS_OFFSET + 0x28))" ( (binary_expression "*(long *)(puVar4 + 8) != *(long *)(in_FS_OFFSET + 0x28)" (pointer_expression "*(long *)(puVar4 + 8)" * (cast_expression "(long *)(puVar4 + 8)" ( (type_descriptor "long *" (sized_type_specifier "long" long) (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(puVar4 + 8)" ( (binary_expression "puVar4 + 8" identifier + number_literal) )))) != (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    *(undefined1 **)(puVar4 + -8) = &LAB_0010014c;\n                    /* WARNING: Bad instruction - Truncating control flow here */\n    halt_baddata();\n  }" { (expression_statement "*(undefined1 **)(puVar4 + -8) = &LAB_0010014c;" (assignment_expression "*(undefined1 **)(puVar4 + -8) = &LAB_0010014c" (pointer_expression "*(undefined1 **)(puVar4 + -8)" * (cast_expression "(undefined1 **)(puVar4 + -8)" ( (type_descriptor "undefined1 **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(puVar4 + -8)" ( (binary_expression "puVar4 + -8" identifier + number_literal) )))) = (pointer_expression "&LAB_0010014c" & identifier)) ;) comment (expression_statement "halt_baddata();" (call_expression "halt_baddata()" identifier (argument_list "()" ( ))) ;) }))) (return_statement "return iVar3;" return identifier ;) })))
(translation_unit "/* WARNING: Globals starting with '_' overlap smaller symbols at the same address */\n/* WARNING: Unknown calling convention */\n\nint dsa_set_pqg_dsaparam(uchar *dsaparam,ulong dsaparamlen,dsa_key *key)\n\n{\n  int iVar1;\n  dsa_key *unaff_RBX;\n  uchar *unaff_R12;\n  ulong unaff_R13;\n  long in_FS_OFFSET;\n  int stat;\n  long local_30;\n  \n  local_30 = *(long *)(in_FS_OFFSET + 0x28);\n  if (dsaparam == (uchar *)0x0) {\n    crypt_argchk("dsaparam != NULL","src/pk/dsa/dsa_set_pqg_dsaparam.c",0x1d);\nLAB_0010009a:\n    crypt_argchk("key != NULL","src/pk/dsa/dsa_set_pqg_dsaparam.c",0x1e);\nLAB_001000b2:\n    crypt_argchk("ltc_mp.name != NULL","src/pk/dsa/dsa_set_pqg_dsaparam.c",0x1f);\n  }\n  else {\n    unaff_RBX = key;\n    unaff_R12 = dsaparam;\n    unaff_R13 = dsaparamlen;\n    if (key == (dsa_key *)0x0) goto LAB_0010009a;\n    if (_ltc_mp == 0) goto LAB_001000b2;\n    iVar1 = ltc_init_multi(&key->p,&key->g,&key->q,&key->x,&key->y,0);\n    if (iVar1 != 0) goto LAB_00100061;\n  }\n  iVar1 = der_decode_sequence_multi\n                    (unaff_R12,unaff_R13,2,1,unaff_RBX->p,2,1,unaff_RBX->q,2,1,unaff_RBX->g,0,0,0);\n  if (iVar1 == 0) {\n    iVar1 = (*_DAT_00101090)(unaff_RBX->q);\n    unaff_RBX->qord = iVar1;\n    iVar1 = dsa_int_validate_pqg(unaff_RBX,&stat);\n    if (iVar1 == 0) {\n      if (stat != 0) goto LAB_00100061;\n      iVar1 = 7;\n    }\n  }\n  dsa_free(unaff_RBX);\nLAB_00100061:\n  if (local_30 == *(long *)(in_FS_OFFSET + 0x28)) {\n    return iVar1;\n  }\n                    /* WARNING: Subroutine does not return */\n  __stack_chk_fail();\n}\n\n" comment comment (function_definition "int dsa_set_pqg_dsaparam(uchar *dsaparam,ulong dsaparamlen,dsa_key *key)\n\n{\n  int iVar1;\n  dsa_key *unaff_RBX;\n  uchar *unaff_R12;\n  ulong unaff_R13;\n  long in_FS_OFFSET;\n  int stat;\n  long local_30;\n  \n  local_30 = *(long *)(in_FS_OFFSET + 0x28);\n  if (dsaparam == (uchar *)0x0) {\n    crypt_argchk("dsaparam != NULL","src/pk/dsa/dsa_set_pqg_dsaparam.c",0x1d);\nLAB_0010009a:\n    crypt_argchk("key != NULL","src/pk/dsa/dsa_set_pqg_dsaparam.c",0x1e);\nLAB_001000b2:\n    crypt_argchk("ltc_mp.name != NULL","src/pk/dsa/dsa_set_pqg_dsaparam.c",0x1f);\n  }\n  else {\n    unaff_RBX = key;\n    unaff_R12 = dsaparam;\n    unaff_R13 = dsaparamlen;\n    if (key == (dsa_key *)0x0) goto LAB_0010009a;\n    if (_ltc_mp == 0) goto LAB_001000b2;\n    iVar1 = ltc_init_multi(&key->p,&key->g,&key->q,&key->x,&key->y,0);\n    if (iVar1 != 0) goto LAB_00100061;\n  }\n  iVar1 = der_decode_sequence_multi\n                    (unaff_R12,unaff_R13,2,1,unaff_RBX->p,2,1,unaff_RBX->q,2,1,unaff_RBX->g,0,0,0);\n  if (iVar1 == 0) {\n    iVar1 = (*_DAT_00101090)(unaff_RBX->q);\n    unaff_RBX->qord = iVar1;\n    iVar1 = dsa_int_validate_pqg(unaff_RBX,&stat);\n    if (iVar1 == 0) {\n      if (stat != 0) goto LAB_00100061;\n      iVar1 = 7;\n    }\n  }\n  dsa_free(unaff_RBX);\nLAB_00100061:\n  if (local_30 == *(long *)(in_FS_OFFSET + 0x28)) {\n    return iVar1;\n  }\n                    /* WARNING: Subroutine does not return */\n  __stack_chk_fail();\n}" primitive_type (function_declarator "dsa_set_pqg_dsaparam(uchar *dsaparam,ulong dsaparamlen,dsa_key *key)" identifier (parameter_list "(uchar *dsaparam,ulong dsaparamlen,dsa_key *key)" ( (parameter_declaration "uchar *dsaparam" type_identifier (pointer_declarator "*dsaparam" * identifier)) , (parameter_declaration "ulong dsaparamlen" type_identifier identifier) , (parameter_declaration "dsa_key *key" type_identifier (pointer_declarator "*key" * identifier)) ))) (compound_statement "{\n  int iVar1;\n  dsa_key *unaff_RBX;\n  uchar *unaff_R12;\n  ulong unaff_R13;\n  long in_FS_OFFSET;\n  int stat;\n  long local_30;\n  \n  local_30 = *(long *)(in_FS_OFFSET + 0x28);\n  if (dsaparam == (uchar *)0x0) {\n    crypt_argchk("dsaparam != NULL","src/pk/dsa/dsa_set_pqg_dsaparam.c",0x1d);\nLAB_0010009a:\n    crypt_argchk("key != NULL","src/pk/dsa/dsa_set_pqg_dsaparam.c",0x1e);\nLAB_001000b2:\n    crypt_argchk("ltc_mp.name != NULL","src/pk/dsa/dsa_set_pqg_dsaparam.c",0x1f);\n  }\n  else {\n    unaff_RBX = key;\n    unaff_R12 = dsaparam;\n    unaff_R13 = dsaparamlen;\n    if (key == (dsa_key *)0x0) goto LAB_0010009a;\n    if (_ltc_mp == 0) goto LAB_001000b2;\n    iVar1 = ltc_init_multi(&key->p,&key->g,&key->q,&key->x,&key->y,0);\n    if (iVar1 != 0) goto LAB_00100061;\n  }\n  iVar1 = der_decode_sequence_multi\n                    (unaff_R12,unaff_R13,2,1,unaff_RBX->p,2,1,unaff_RBX->q,2,1,unaff_RBX->g,0,0,0);\n  if (iVar1 == 0) {\n    iVar1 = (*_DAT_00101090)(unaff_RBX->q);\n    unaff_RBX->qord = iVar1;\n    iVar1 = dsa_int_validate_pqg(unaff_RBX,&stat);\n    if (iVar1 == 0) {\n      if (stat != 0) goto LAB_00100061;\n      iVar1 = 7;\n    }\n  }\n  dsa_free(unaff_RBX);\nLAB_00100061:\n  if (local_30 == *(long *)(in_FS_OFFSET + 0x28)) {\n    return iVar1;\n  }\n                    /* WARNING: Subroutine does not return */\n  __stack_chk_fail();\n}" { (declaration "int iVar1;" primitive_type identifier ;) (declaration "dsa_key *unaff_RBX;" type_identifier (pointer_declarator "*unaff_RBX" * identifier) ;) (declaration "uchar *unaff_R12;" type_identifier (pointer_declarator "*unaff_R12" * identifier) ;) (declaration "ulong unaff_R13;" type_identifier identifier ;) (declaration "long in_FS_OFFSET;" (sized_type_specifier "long" long) identifier ;) (declaration "int stat;" primitive_type identifier ;) (declaration "long local_30;" (sized_type_specifier "long" long) identifier ;) (expression_statement "local_30 = *(long *)(in_FS_OFFSET + 0x28);" (assignment_expression "local_30 = *(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) ))))) ;) (if_statement "if (dsaparam == (uchar *)0x0) {\n    crypt_argchk("dsaparam != NULL","src/pk/dsa/dsa_set_pqg_dsaparam.c",0x1d);\nLAB_0010009a:\n    crypt_argchk("key != NULL","src/pk/dsa/dsa_set_pqg_dsaparam.c",0x1e);\nLAB_001000b2:\n    crypt_argchk("ltc_mp.name != NULL","src/pk/dsa/dsa_set_pqg_dsaparam.c",0x1f);\n  }\n  else {\n    unaff_RBX = key;\n    unaff_R12 = dsaparam;\n    unaff_R13 = dsaparamlen;\n    if (key == (dsa_key *)0x0) goto LAB_0010009a;\n    if (_ltc_mp == 0) goto LAB_001000b2;\n    iVar1 = ltc_init_multi(&key->p,&key->g,&key->q,&key->x,&key->y,0);\n    if (iVar1 != 0) goto LAB_00100061;\n  }" if (parenthesized_expression "(dsaparam == (uchar *)0x0)" ( (binary_expression "dsaparam == (uchar *)0x0" identifier == (cast_expression "(uchar *)0x0" ( (type_descriptor "uchar *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n    crypt_argchk("dsaparam != NULL","src/pk/dsa/dsa_set_pqg_dsaparam.c",0x1d);\nLAB_0010009a:\n    crypt_argchk("key != NULL","src/pk/dsa/dsa_set_pqg_dsaparam.c",0x1e);\nLAB_001000b2:\n    crypt_argchk("ltc_mp.name != NULL","src/pk/dsa/dsa_set_pqg_dsaparam.c",0x1f);\n  }" { (expression_statement "crypt_argchk("dsaparam != NULL","src/pk/dsa/dsa_set_pqg_dsaparam.c",0x1d);" (call_expression "crypt_argchk("dsaparam != NULL","src/pk/dsa/dsa_set_pqg_dsaparam.c",0x1d)" identifier (argument_list "("dsaparam != NULL","src/pk/dsa/dsa_set_pqg_dsaparam.c",0x1d)" ( (string_literal ""dsaparam != NULL"" " string_content ") , (string_literal ""src/pk/dsa/dsa_set_pqg_dsaparam.c"" " string_content ") , number_literal ))) ;) (labeled_statement "LAB_0010009a:\n    crypt_argchk("key != NULL","src/pk/dsa/dsa_set_pqg_dsaparam.c",0x1e);" statement_identifier : (expression_statement "crypt_argchk("key != NULL","src/pk/dsa/dsa_set_pqg_dsaparam.c",0x1e);" (call_expression "crypt_argchk("key != NULL","src/pk/dsa/dsa_set_pqg_dsaparam.c",0x1e)" identifier (argument_list "("key != NULL","src/pk/dsa/dsa_set_pqg_dsaparam.c",0x1e)" ( (string_literal ""key != NULL"" " string_content ") , (string_literal ""src/pk/dsa/dsa_set_pqg_dsaparam.c"" " string_content ") , number_literal ))) ;)) (labeled_statement "LAB_001000b2:\n    crypt_argchk("ltc_mp.name != NULL","src/pk/dsa/dsa_set_pqg_dsaparam.c",0x1f);" statement_identifier : (expression_statement "crypt_argchk("ltc_mp.name != NULL","src/pk/dsa/dsa_set_pqg_dsaparam.c",0x1f);" (call_expression "crypt_argchk("ltc_mp.name != NULL","src/pk/dsa/dsa_set_pqg_dsaparam.c",0x1f)" identifier (argument_list "("ltc_mp.name != NULL","src/pk/dsa/dsa_set_pqg_dsaparam.c",0x1f)" ( (string_literal ""ltc_mp.name != NULL"" " string_content ") , (string_literal ""src/pk/dsa/dsa_set_pqg_dsaparam.c"" " string_content ") , number_literal ))) ;)) }) (else_clause "else {\n    unaff_RBX = key;\n    unaff_R12 = dsaparam;\n    unaff_R13 = dsaparamlen;\n    if (key == (dsa_key *)0x0) goto LAB_0010009a;\n    if (_ltc_mp == 0) goto LAB_001000b2;\n    iVar1 = ltc_init_multi(&key->p,&key->g,&key->q,&key->x,&key->y,0);\n    if (iVar1 != 0) goto LAB_00100061;\n  }" else (compound_statement "{\n    unaff_RBX = key;\n    unaff_R12 = dsaparam;\n    unaff_R13 = dsaparamlen;\n    if (key == (dsa_key *)0x0) goto LAB_0010009a;\n    if (_ltc_mp == 0) goto LAB_001000b2;\n    iVar1 = ltc_init_multi(&key->p,&key->g,&key->q,&key->x,&key->y,0);\n    if (iVar1 != 0) goto LAB_00100061;\n  }" { (expression_statement "unaff_RBX = key;" (assignment_expression "unaff_RBX = key" identifier = identifier) ;) (expression_statement "unaff_R12 = dsaparam;" (assignment_expression "unaff_R12 = dsaparam" identifier = identifier) ;) (expression_statement "unaff_R13 = dsaparamlen;" (assignment_expression "unaff_R13 = dsaparamlen" identifier = identifier) ;) (if_statement "if (key == (dsa_key *)0x0) goto LAB_0010009a;" if (parenthesized_expression "(key == (dsa_key *)0x0)" ( (binary_expression "key == (dsa_key *)0x0" identifier == (cast_expression "(dsa_key *)0x0" ( (type_descriptor "dsa_key *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (goto_statement "goto LAB_0010009a;" goto statement_identifier ;)) (if_statement "if (_ltc_mp == 0) goto LAB_001000b2;" if (parenthesized_expression "(_ltc_mp == 0)" ( (binary_expression "_ltc_mp == 0" identifier == number_literal) )) (goto_statement "goto LAB_001000b2;" goto statement_identifier ;)) (expression_statement "iVar1 = ltc_init_multi(&key->p,&key->g,&key->q,&key->x,&key->y,0);" (assignment_expression "iVar1 = ltc_init_multi(&key->p,&key->g,&key->q,&key->x,&key->y,0)" identifier = (call_expression "ltc_init_multi(&key->p,&key->g,&key->q,&key->x,&key->y,0)" identifier (argument_list "(&key->p,&key->g,&key->q,&key->x,&key->y,0)" ( (pointer_expression "&key->p" & (field_expression "key->p" identifier -> field_identifier)) , (pointer_expression "&key->g" & (field_expression "key->g" identifier -> field_identifier)) , (pointer_expression "&key->q" & (field_expression "key->q" identifier -> field_identifier)) , (pointer_expression "&key->x" & (field_expression "key->x" identifier -> field_identifier)) , (pointer_expression "&key->y" & (field_expression "key->y" identifier -> field_identifier)) , number_literal )))) ;) (if_statement "if (iVar1 != 0) goto LAB_00100061;" if (parenthesized_expression "(iVar1 != 0)" ( (binary_expression "iVar1 != 0" identifier != number_literal) )) (goto_statement "goto LAB_00100061;" goto statement_identifier ;)) }))) (expression_statement "iVar1 = der_decode_sequence_multi\n                    (unaff_R12,unaff_R13,2,1,unaff_RBX->p,2,1,unaff_RBX->q,2,1,unaff_RBX->g,0,0,0);" (assignment_expression "iVar1 = der_decode_sequence_multi\n                    (unaff_R12,unaff_R13,2,1,unaff_RBX->p,2,1,unaff_RBX->q,2,1,unaff_RBX->g,0,0,0)" identifier = (call_expression "der_decode_sequence_multi\n                    (unaff_R12,unaff_R13,2,1,unaff_RBX->p,2,1,unaff_RBX->q,2,1,unaff_RBX->g,0,0,0)" identifier (argument_list "(unaff_R12,unaff_R13,2,1,unaff_RBX->p,2,1,unaff_RBX->q,2,1,unaff_RBX->g,0,0,0)" ( identifier , identifier , number_literal , number_literal , (field_expression "unaff_RBX->p" identifier -> field_identifier) , number_literal , number_literal , (field_expression "unaff_RBX->q" identifier -> field_identifier) , number_literal , number_literal , (field_expression "unaff_RBX->g" identifier -> field_identifier) , number_literal , number_literal , number_literal )))) ;) (if_statement "if (iVar1 == 0) {\n    iVar1 = (*_DAT_00101090)(unaff_RBX->q);\n    unaff_RBX->qord = iVar1;\n    iVar1 = dsa_int_validate_pqg(unaff_RBX,&stat);\n    if (iVar1 == 0) {\n      if (stat != 0) goto LAB_00100061;\n      iVar1 = 7;\n    }\n  }" if (parenthesized_expression "(iVar1 == 0)" ( (binary_expression "iVar1 == 0" identifier == number_literal) )) (compound_statement "{\n    iVar1 = (*_DAT_00101090)(unaff_RBX->q);\n    unaff_RBX->qord = iVar1;\n    iVar1 = dsa_int_validate_pqg(unaff_RBX,&stat);\n    if (iVar1 == 0) {\n      if (stat != 0) goto LAB_00100061;\n      iVar1 = 7;\n    }\n  }" { (expression_statement "iVar1 = (*_DAT_00101090)(unaff_RBX->q);" (assignment_expression "iVar1 = (*_DAT_00101090)(unaff_RBX->q)" identifier = (call_expression "(*_DAT_00101090)(unaff_RBX->q)" (parenthesized_expression "(*_DAT_00101090)" ( (pointer_expression "*_DAT_00101090" * identifier) )) (argument_list "(unaff_RBX->q)" ( (field_expression "unaff_RBX->q" identifier -> field_identifier) )))) ;) (expression_statement "unaff_RBX->qord = iVar1;" (assignment_expression "unaff_RBX->qord = iVar1" (field_expression "unaff_RBX->qord" identifier -> field_identifier) = identifier) ;) (expression_statement "iVar1 = dsa_int_validate_pqg(unaff_RBX,&stat);" (assignment_expression "iVar1 = dsa_int_validate_pqg(unaff_RBX,&stat)" identifier = (call_expression "dsa_int_validate_pqg(unaff_RBX,&stat)" identifier (argument_list "(unaff_RBX,&stat)" ( identifier , (pointer_expression "&stat" & identifier) )))) ;) (if_statement "if (iVar1 == 0) {\n      if (stat != 0) goto LAB_00100061;\n      iVar1 = 7;\n    }" if (parenthesized_expression "(iVar1 == 0)" ( (binary_expression "iVar1 == 0" identifier == number_literal) )) (compound_statement "{\n      if (stat != 0) goto LAB_00100061;\n      iVar1 = 7;\n    }" { (if_statement "if (stat != 0) goto LAB_00100061;" if (parenthesized_expression "(stat != 0)" ( (binary_expression "stat != 0" identifier != number_literal) )) (goto_statement "goto LAB_00100061;" goto statement_identifier ;)) (expression_statement "iVar1 = 7;" (assignment_expression "iVar1 = 7" identifier = number_literal) ;) })) })) (expression_statement "dsa_free(unaff_RBX);" (call_expression "dsa_free(unaff_RBX)" identifier (argument_list "(unaff_RBX)" ( identifier ))) ;) (labeled_statement "LAB_00100061:\n  if (local_30 == *(long *)(in_FS_OFFSET + 0x28)) {\n    return iVar1;\n  }" statement_identifier : (if_statement "if (local_30 == *(long *)(in_FS_OFFSET + 0x28)) {\n    return iVar1;\n  }" if (parenthesized_expression "(local_30 == *(long *)(in_FS_OFFSET + 0x28))" ( (binary_expression "local_30 == *(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 iVar1;\n  }" { (return_statement "return iVar1;" return identifier ;) }))) comment (expression_statement "__stack_chk_fail();" (call_expression "__stack_chk_fail()" identifier (argument_list "()" ( ))) ;) })))
(translation_unit "int FUN_00100000(long param_1,undefined8 param_2,long param_3)\n\n{\n  undefined8 uVar1;\n  undefined8 uVar2;\n  int iVar3;\n  long unaff_RBX;\n  undefined1 *puVar4;\n  undefined8 *puVar5;\n  undefined1 *puVar6;\n  undefined8 *puVar7;\n  undefined8 unaff_R13;\n  long in_FS_OFFSET;\n  long alStack_98 [7];\n  int iStack_5c;\n  undefined8 auStack_58 [4];\n  undefined1 local_38 [8];\n  undefined8 local_30;\n  \n  puVar5 = (undefined8 *)local_38;\n  puVar6 = local_38;\n  local_30 = *(undefined8 *)(in_FS_OFFSET + 0x28);\n  if (param_1 == 0) {\n    puVar5 = auStack_58 + 3;\n    auStack_58[3] = 0x10009a;\nLAB_0010009a:\n    puVar6 = (undefined1 *)((long)puVar5 + -8);\n    *(undefined8 *)((long)puVar5 + -8) = 0x1000b2;\nLAB_001000b2:\n    puVar7 = (undefined8 *)(puVar6 + -8);\n    *(undefined8 *)(puVar6 + -8) = 0x1000ca;\n  }\n  else {\n    unaff_RBX = param_3;\n    unaff_R13 = param_2;\n    if (param_3 == 0) goto LAB_0010009a;\n    if (lRam0000000000100035 == 0) goto LAB_001000b2;\n    puVar7 = auStack_58 + 3;\n    auStack_58[3] = 0x10005b;\n  }\n  *(undefined8 *)((long)puVar7 + -8) = 0;\n  *(undefined8 *)((long)puVar7 + -0x10) = 0;\n  *(undefined8 *)((long)puVar7 + -0x18) = 0;\n  *(undefined8 *)((long)puVar7 + -0x20) = *(undefined8 *)(unaff_RBX + 8);\n  *(undefined8 *)((long)puVar7 + -0x28) = 1;\n  *(undefined8 *)((long)puVar7 + -0x30) = 2;\n  *(undefined8 *)((long)puVar7 + -0x38) = *(undefined8 *)(unaff_RBX + 0x10);\n  *(undefined8 *)((long)puVar7 + -0x40) = 1;\n  uVar1 = *(undefined8 *)(unaff_RBX + 0x18);\n  *(undefined8 *)((long)puVar7 + -0x48) = 0x100100;\n  uVar2 = *(undefined8 *)(unaff_RBX + 0x10);\n  *(undefined8 *)((long)puVar7 + -0x10) = 0x100114;\n  iVar3 = (*pcRam0000000000100114)(uVar2,unaff_R13,2,1,uVar1,2);\n  *(int *)(unaff_RBX + 4) = iVar3;\n  puVar4 = (undefined1 *)((long)puVar7 + -0x10);\n  *(undefined8 *)((long)puVar7 + -0x10) = 0x100124;\n  if (iVar3 == 0) {\n    if (*(int *)((long)puVar7 + -0xc) != 0) goto LAB_00100061;\n    iVar3 = 7;\n  }\n  puVar4 = (undefined1 *)((long)puVar7 + -0x18);\n  *(undefined8 *)((long)puVar7 + -0x18) = 0x100142;\nLAB_00100061:\n  if (*(long *)(puVar4 + 8) != *(long *)(in_FS_OFFSET + 0x28)) {\n    *(undefined1 **)(puVar4 + -8) = &LAB_0010014c;\n                    \n    halt_baddata();\n  }\n  return iVar3;\n}\n\n" (function_definition "int FUN_00100000(long param_1,undefined8 param_2,long param_3)\n\n{\n  undefined8 uVar1;\n  undefined8 uVar2;\n  int iVar3;\n  long unaff_RBX;\n  undefined1 *puVar4;\n  undefined8 *puVar5;\n  undefined1 *puVar6;\n  undefined8 *puVar7;\n  undefined8 unaff_R13;\n  long in_FS_OFFSET;\n  long alStack_98 [7];\n  int iStack_5c;\n  undefined8 auStack_58 [4];\n  undefined1 local_38 [8];\n  undefined8 local_30;\n  \n  puVar5 = (undefined8 *)local_38;\n  puVar6 = local_38;\n  local_30 = *(undefined8 *)(in_FS_OFFSET + 0x28);\n  if (param_1 == 0) {\n    puVar5 = auStack_58 + 3;\n    auStack_58[3] = 0x10009a;\nLAB_0010009a:\n    puVar6 = (undefined1 *)((long)puVar5 + -8);\n    *(undefined8 *)((long)puVar5 + -8) = 0x1000b2;\nLAB_001000b2:\n    puVar7 = (undefined8 *)(puVar6 + -8);\n    *(undefined8 *)(puVar6 + -8) = 0x1000ca;\n  }\n  else {\n    unaff_RBX = param_3;\n    unaff_R13 = param_2;\n    if (param_3 == 0) goto LAB_0010009a;\n    if (lRam0000000000100035 == 0) goto LAB_001000b2;\n    puVar7 = auStack_58 + 3;\n    auStack_58[3] = 0x10005b;\n  }\n  *(undefined8 *)((long)puVar7 + -8) = 0;\n  *(undefined8 *)((long)puVar7 + -0x10) = 0;\n  *(undefined8 *)((long)puVar7 + -0x18) = 0;\n  *(undefined8 *)((long)puVar7 + -0x20) = *(undefined8 *)(unaff_RBX + 8);\n  *(undefined8 *)((long)puVar7 + -0x28) = 1;\n  *(undefined8 *)((long)puVar7 + -0x30) = 2;\n  *(undefined8 *)((long)puVar7 + -0x38) = *(undefined8 *)(unaff_RBX + 0x10);\n  *(undefined8 *)((long)puVar7 + -0x40) = 1;\n  uVar1 = *(undefined8 *)(unaff_RBX + 0x18);\n  *(undefined8 *)((long)puVar7 + -0x48) = 0x100100;\n  uVar2 = *(undefined8 *)(unaff_RBX + 0x10);\n  *(undefined8 *)((long)puVar7 + -0x10) = 0x100114;\n  iVar3 = (*pcRam0000000000100114)(uVar2,unaff_R13,2,1,uVar1,2);\n  *(int *)(unaff_RBX + 4) = iVar3;\n  puVar4 = (undefined1 *)((long)puVar7 + -0x10);\n  *(undefined8 *)((long)puVar7 + -0x10) = 0x100124;\n  if (iVar3 == 0) {\n    if (*(int *)((long)puVar7 + -0xc) != 0) goto LAB_00100061;\n    iVar3 = 7;\n  }\n  puVar4 = (undefined1 *)((long)puVar7 + -0x18);\n  *(undefined8 *)((long)puVar7 + -0x18) = 0x100142;\nLAB_00100061:\n  if (*(long *)(puVar4 + 8) != *(long *)(in_FS_OFFSET + 0x28)) {\n    *(undefined1 **)(puVar4 + -8) = &LAB_0010014c;\n                    \n    halt_baddata();\n  }\n  return iVar3;\n}" primitive_type (function_declarator "FUN_00100000(long param_1,undefined8 param_2,long param_3)" identifier (parameter_list "(long param_1,undefined8 param_2,long param_3)" ( (parameter_declaration "long param_1" (sized_type_specifier "long" long) identifier) , (parameter_declaration "undefined8 param_2" type_identifier identifier) , (parameter_declaration "long param_3" (sized_type_specifier "long" long) identifier) ))) (compound_statement "{\n  undefined8 uVar1;\n  undefined8 uVar2;\n  int iVar3;\n  long unaff_RBX;\n  undefined1 *puVar4;\n  undefined8 *puVar5;\n  undefined1 *puVar6;\n  undefined8 *puVar7;\n  undefined8 unaff_R13;\n  long in_FS_OFFSET;\n  long alStack_98 [7];\n  int iStack_5c;\n  undefined8 auStack_58 [4];\n  undefined1 local_38 [8];\n  undefined8 local_30;\n  \n  puVar5 = (undefined8 *)local_38;\n  puVar6 = local_38;\n  local_30 = *(undefined8 *)(in_FS_OFFSET + 0x28);\n  if (param_1 == 0) {\n    puVar5 = auStack_58 + 3;\n    auStack_58[3] = 0x10009a;\nLAB_0010009a:\n    puVar6 = (undefined1 *)((long)puVar5 + -8);\n    *(undefined8 *)((long)puVar5 + -8) = 0x1000b2;\nLAB_001000b2:\n    puVar7 = (undefined8 *)(puVar6 + -8);\n    *(undefined8 *)(puVar6 + -8) = 0x1000ca;\n  }\n  else {\n    unaff_RBX = param_3;\n    unaff_R13 = param_2;\n    if (param_3 == 0) goto LAB_0010009a;\n    if (lRam0000000000100035 == 0) goto LAB_001000b2;\n    puVar7 = auStack_58 + 3;\n    auStack_58[3] = 0x10005b;\n  }\n  *(undefined8 *)((long)puVar7 + -8) = 0;\n  *(undefined8 *)((long)puVar7 + -0x10) = 0;\n  *(undefined8 *)((long)puVar7 + -0x18) = 0;\n  *(undefined8 *)((long)puVar7 + -0x20) = *(undefined8 *)(unaff_RBX + 8);\n  *(undefined8 *)((long)puVar7 + -0x28) = 1;\n  *(undefined8 *)((long)puVar7 + -0x30) = 2;\n  *(undefined8 *)((long)puVar7 + -0x38) = *(undefined8 *)(unaff_RBX + 0x10);\n  *(undefined8 *)((long)puVar7 + -0x40) = 1;\n  uVar1 = *(undefined8 *)(unaff_RBX + 0x18);\n  *(undefined8 *)((long)puVar7 + -0x48) = 0x100100;\n  uVar2 = *(undefined8 *)(unaff_RBX + 0x10);\n  *(undefined8 *)((long)puVar7 + -0x10) = 0x100114;\n  iVar3 = (*pcRam0000000000100114)(uVar2,unaff_R13,2,1,uVar1,2);\n  *(int *)(unaff_RBX + 4) = iVar3;\n  puVar4 = (undefined1 *)((long)puVar7 + -0x10);\n  *(undefined8 *)((long)puVar7 + -0x10) = 0x100124;\n  if (iVar3 == 0) {\n    if (*(int *)((long)puVar7 + -0xc) != 0) goto LAB_00100061;\n    iVar3 = 7;\n  }\n  puVar4 = (undefined1 *)((long)puVar7 + -0x18);\n  *(undefined8 *)((long)puVar7 + -0x18) = 0x100142;\nLAB_00100061:\n  if (*(long *)(puVar4 + 8) != *(long *)(in_FS_OFFSET + 0x28)) {\n    *(undefined1 **)(puVar4 + -8) = &LAB_0010014c;\n                    \n    halt_baddata();\n  }\n  return iVar3;\n}" { (declaration "undefined8 uVar1;" type_identifier identifier ;) (declaration "undefined8 uVar2;" type_identifier identifier ;) (declaration "int iVar3;" primitive_type identifier ;) (declaration "long unaff_RBX;" (sized_type_specifier "long" long) identifier ;) (declaration "undefined1 *puVar4;" type_identifier (pointer_declarator "*puVar4" * identifier) ;) (declaration "undefined8 *puVar5;" type_identifier (pointer_declarator "*puVar5" * identifier) ;) (declaration "undefined1 *puVar6;" type_identifier (pointer_declarator "*puVar6" * identifier) ;) (declaration "undefined8 *puVar7;" type_identifier (pointer_declarator "*puVar7" * identifier) ;) (declaration "undefined8 unaff_R13;" type_identifier identifier ;) (declaration "long in_FS_OFFSET;" (sized_type_specifier "long" long) identifier ;) (declaration "long alStack_98 [7];" (sized_type_specifier "long" long) (array_declarator "alStack_98 [7]" identifier [ number_literal ]) ;) (declaration "int iStack_5c;" primitive_type identifier ;) (declaration "undefined8 auStack_58 [4];" type_identifier (array_declarator "auStack_58 [4]" identifier [ number_literal ]) ;) (declaration "undefined1 local_38 [8];" type_identifier (array_declarator "local_38 [8]" identifier [ number_literal ]) ;) (declaration "undefined8 local_30;" type_identifier identifier ;) (expression_statement "puVar5 = (undefined8 *)local_38;" (assignment_expression "puVar5 = (undefined8 *)local_38" identifier = (cast_expression "(undefined8 *)local_38" ( (type_descriptor "undefined8 *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) ;) (expression_statement "puVar6 = local_38;" (assignment_expression "puVar6 = local_38" identifier = identifier) ;) (expression_statement "local_30 = *(undefined8 *)(in_FS_OFFSET + 0x28);" (assignment_expression "local_30 = *(undefined8 *)(in_FS_OFFSET + 0x28)" identifier = (pointer_expression "*(undefined8 *)(in_FS_OFFSET + 0x28)" * (cast_expression "(undefined8 *)(in_FS_OFFSET + 0x28)" ( (type_descriptor "undefined8 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(in_FS_OFFSET + 0x28)" ( (binary_expression "in_FS_OFFSET + 0x28" identifier + number_literal) ))))) ;) (if_statement "if (param_1 == 0) {\n    puVar5 = auStack_58 + 3;\n    auStack_58[3] = 0x10009a;\nLAB_0010009a:\n    puVar6 = (undefined1 *)((long)puVar5 + -8);\n    *(undefined8 *)((long)puVar5 + -8) = 0x1000b2;\nLAB_001000b2:\n    puVar7 = (undefined8 *)(puVar6 + -8);\n    *(undefined8 *)(puVar6 + -8) = 0x1000ca;\n  }\n  else {\n    unaff_RBX = param_3;\n    unaff_R13 = param_2;\n    if (param_3 == 0) goto LAB_0010009a;\n    if (lRam0000000000100035 == 0) goto LAB_001000b2;\n    puVar7 = auStack_58 + 3;\n    auStack_58[3] = 0x10005b;\n  }" if (parenthesized_expression "(param_1 == 0)" ( (binary_expression "param_1 == 0" identifier == number_literal) )) (compound_statement "{\n    puVar5 = auStack_58 + 3;\n    auStack_58[3] = 0x10009a;\nLAB_0010009a:\n    puVar6 = (undefined1 *)((long)puVar5 + -8);\n    *(undefined8 *)((long)puVar5 + -8) = 0x1000b2;\nLAB_001000b2:\n    puVar7 = (undefined8 *)(puVar6 + -8);\n    *(undefined8 *)(puVar6 + -8) = 0x1000ca;\n  }" { (expression_statement "puVar5 = auStack_58 + 3;" (assignment_expression "puVar5 = auStack_58 + 3" identifier = (binary_expression "auStack_58 + 3" identifier + number_literal)) ;) (expression_statement "auStack_58[3] = 0x10009a;" (assignment_expression "auStack_58[3] = 0x10009a" (subscript_expression "auStack_58[3]" identifier [ number_literal ]) = number_literal) ;) (labeled_statement "LAB_0010009a:\n    puVar6 = (undefined1 *)((long)puVar5 + -8);" statement_identifier : (expression_statement "puVar6 = (undefined1 *)((long)puVar5 + -8);" (assignment_expression "puVar6 = (undefined1 *)((long)puVar5 + -8)" identifier = (cast_expression "(undefined1 *)((long)puVar5 + -8)" ( (type_descriptor "undefined1 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((long)puVar5 + -8)" ( (binary_expression "(long)puVar5 + -8" (cast_expression "(long)puVar5" ( (type_descriptor "long" (sized_type_specifier "long" long)) ) identifier) + number_literal) )))) ;)) (expression_statement "*(undefined8 *)((long)puVar5 + -8) = 0x1000b2;" (assignment_expression "*(undefined8 *)((long)puVar5 + -8) = 0x1000b2" (pointer_expression "*(undefined8 *)((long)puVar5 + -8)" * (cast_expression "(undefined8 *)((long)puVar5 + -8)" ( (type_descriptor "undefined8 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((long)puVar5 + -8)" ( (binary_expression "(long)puVar5 + -8" (cast_expression "(long)puVar5" ( (type_descriptor "long" (sized_type_specifier "long" long)) ) identifier) + number_literal) )))) = number_literal) ;) (labeled_statement "LAB_001000b2:\n    puVar7 = (undefined8 *)(puVar6 + -8);" statement_identifier : (expression_statement "puVar7 = (undefined8 *)(puVar6 + -8);" (assignment_expression "puVar7 = (undefined8 *)(puVar6 + -8)" identifier = (cast_expression "(undefined8 *)(puVar6 + -8)" ( (type_descriptor "undefined8 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(puVar6 + -8)" ( (binary_expression "puVar6 + -8" identifier + number_literal) )))) ;)) (expression_statement "*(undefined8 *)(puVar6 + -8) = 0x1000ca;" (assignment_expression "*(undefined8 *)(puVar6 + -8) = 0x1000ca" (pointer_expression "*(undefined8 *)(puVar6 + -8)" * (cast_expression "(undefined8 *)(puVar6 + -8)" ( (type_descriptor "undefined8 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(puVar6 + -8)" ( (binary_expression "puVar6 + -8" identifier + number_literal) )))) = number_literal) ;) }) (else_clause "else {\n    unaff_RBX = param_3;\n    unaff_R13 = param_2;\n    if (param_3 == 0) goto LAB_0010009a;\n    if (lRam0000000000100035 == 0) goto LAB_001000b2;\n    puVar7 = auStack_58 + 3;\n    auStack_58[3] = 0x10005b;\n  }" else (compound_statement "{\n    unaff_RBX = param_3;\n    unaff_R13 = param_2;\n    if (param_3 == 0) goto LAB_0010009a;\n    if (lRam0000000000100035 == 0) goto LAB_001000b2;\n    puVar7 = auStack_58 + 3;\n    auStack_58[3] = 0x10005b;\n  }" { (expression_statement "unaff_RBX = param_3;" (assignment_expression "unaff_RBX = param_3" identifier = identifier) ;) (expression_statement "unaff_R13 = param_2;" (assignment_expression "unaff_R13 = param_2" identifier = identifier) ;) (if_statement "if (param_3 == 0) goto LAB_0010009a;" if (parenthesized_expression "(param_3 == 0)" ( (binary_expression "param_3 == 0" identifier == number_literal) )) (goto_statement "goto LAB_0010009a;" goto statement_identifier ;)) (if_statement "if (lRam0000000000100035 == 0) goto LAB_001000b2;" if (parenthesized_expression "(lRam0000000000100035 == 0)" ( (binary_expression "lRam0000000000100035 == 0" identifier == number_literal) )) (goto_statement "goto LAB_001000b2;" goto statement_identifier ;)) (expression_statement "puVar7 = auStack_58 + 3;" (assignment_expression "puVar7 = auStack_58 + 3" identifier = (binary_expression "auStack_58 + 3" identifier + number_literal)) ;) (expression_statement "auStack_58[3] = 0x10005b;" (assignment_expression "auStack_58[3] = 0x10005b" (subscript_expression "auStack_58[3]" identifier [ number_literal ]) = number_literal) ;) }))) (expression_statement "*(undefined8 *)((long)puVar7 + -8) = 0;" (assignment_expression "*(undefined8 *)((long)puVar7 + -8) = 0" (pointer_expression "*(undefined8 *)((long)puVar7 + -8)" * (cast_expression "(undefined8 *)((long)puVar7 + -8)" ( (type_descriptor "undefined8 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((long)puVar7 + -8)" ( (binary_expression "(long)puVar7 + -8" (cast_expression "(long)puVar7" ( (type_descriptor "long" (sized_type_specifier "long" long)) ) identifier) + number_literal) )))) = number_literal) ;) (expression_statement "*(undefined8 *)((long)puVar7 + -0x10) = 0;" (assignment_expression "*(undefined8 *)((long)puVar7 + -0x10) = 0" (pointer_expression "*(undefined8 *)((long)puVar7 + -0x10)" * (cast_expression "(undefined8 *)((long)puVar7 + -0x10)" ( (type_descriptor "undefined8 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((long)puVar7 + -0x10)" ( (binary_expression "(long)puVar7 + -0x10" (cast_expression "(long)puVar7" ( (type_descriptor "long" (sized_type_specifier "long" long)) ) identifier) + number_literal) )))) = number_literal) ;) (expression_statement "*(undefined8 *)((long)puVar7 + -0x18) = 0;" (assignment_expression "*(undefined8 *)((long)puVar7 + -0x18) = 0" (pointer_expression "*(undefined8 *)((long)puVar7 + -0x18)" * (cast_expression "(undefined8 *)((long)puVar7 + -0x18)" ( (type_descriptor "undefined8 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((long)puVar7 + -0x18)" ( (binary_expression "(long)puVar7 + -0x18" (cast_expression "(long)puVar7" ( (type_descriptor "long" (sized_type_specifier "long" long)) ) identifier) + number_literal) )))) = number_literal) ;) (expression_statement "*(undefined8 *)((long)puVar7 + -0x20) = *(undefined8 *)(unaff_RBX + 8);" (assignment_expression "*(undefined8 *)((long)puVar7 + -0x20) = *(undefined8 *)(unaff_RBX + 8)" (pointer_expression "*(undefined8 *)((long)puVar7 + -0x20)" * (cast_expression "(undefined8 *)((long)puVar7 + -0x20)" ( (type_descriptor "undefined8 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((long)puVar7 + -0x20)" ( (binary_expression "(long)puVar7 + -0x20" (cast_expression "(long)puVar7" ( (type_descriptor "long" (sized_type_specifier "long" long)) ) identifier) + number_literal) )))) = (pointer_expression "*(undefined8 *)(unaff_RBX + 8)" * (cast_expression "(undefined8 *)(unaff_RBX + 8)" ( (type_descriptor "undefined8 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(unaff_RBX + 8)" ( (binary_expression "unaff_RBX + 8" identifier + number_literal) ))))) ;) (expression_statement "*(undefined8 *)((long)puVar7 + -0x28) = 1;" (assignment_expression "*(undefined8 *)((long)puVar7 + -0x28) = 1" (pointer_expression "*(undefined8 *)((long)puVar7 + -0x28)" * (cast_expression "(undefined8 *)((long)puVar7 + -0x28)" ( (type_descriptor "undefined8 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((long)puVar7 + -0x28)" ( (binary_expression "(long)puVar7 + -0x28" (cast_expression "(long)puVar7" ( (type_descriptor "long" (sized_type_specifier "long" long)) ) identifier) + number_literal) )))) = number_literal) ;) (expression_statement "*(undefined8 *)((long)puVar7 + -0x30) = 2;" (assignment_expression "*(undefined8 *)((long)puVar7 + -0x30) = 2" (pointer_expression "*(undefined8 *)((long)puVar7 + -0x30)" * (cast_expression "(undefined8 *)((long)puVar7 + -0x30)" ( (type_descriptor "undefined8 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((long)puVar7 + -0x30)" ( (binary_expression "(long)puVar7 + -0x30" (cast_expression "(long)puVar7" ( (type_descriptor "long" (sized_type_specifier "long" long)) ) identifier) + number_literal) )))) = number_literal) ;) (expression_statement "*(undefined8 *)((long)puVar7 + -0x38) = *(undefined8 *)(unaff_RBX + 0x10);" (assignment_expression "*(undefined8 *)((long)puVar7 + -0x38) = *(undefined8 *)(unaff_RBX + 0x10)" (pointer_expression "*(undefined8 *)((long)puVar7 + -0x38)" * (cast_expression "(undefined8 *)((long)puVar7 + -0x38)" ( (type_descriptor "undefined8 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((long)puVar7 + -0x38)" ( (binary_expression "(long)puVar7 + -0x38" (cast_expression "(long)puVar7" ( (type_descriptor "long" (sized_type_specifier "long" long)) ) identifier) + number_literal) )))) = (pointer_expression "*(undefined8 *)(unaff_RBX + 0x10)" * (cast_expression "(undefined8 *)(unaff_RBX + 0x10)" ( (type_descriptor "undefined8 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(unaff_RBX + 0x10)" ( (binary_expression "unaff_RBX + 0x10" identifier + number_literal) ))))) ;) (expression_statement "*(undefined8 *)((long)puVar7 + -0x40) = 1;" (assignment_expression "*(undefined8 *)((long)puVar7 + -0x40) = 1" (pointer_expression "*(undefined8 *)((long)puVar7 + -0x40)" * (cast_expression "(undefined8 *)((long)puVar7 + -0x40)" ( (type_descriptor "undefined8 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((long)puVar7 + -0x40)" ( (binary_expression "(long)puVar7 + -0x40" (cast_expression "(long)puVar7" ( (type_descriptor "long" (sized_type_specifier "long" long)) ) identifier) + number_literal) )))) = number_literal) ;) (expression_statement "uVar1 = *(undefined8 *)(unaff_RBX + 0x18);" (assignment_expression "uVar1 = *(undefined8 *)(unaff_RBX + 0x18)" identifier = (pointer_expression "*(undefined8 *)(unaff_RBX + 0x18)" * (cast_expression "(undefined8 *)(unaff_RBX + 0x18)" ( (type_descriptor "undefined8 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(unaff_RBX + 0x18)" ( (binary_expression "unaff_RBX + 0x18" identifier + number_literal) ))))) ;) (expression_statement "*(undefined8 *)((long)puVar7 + -0x48) = 0x100100;" (assignment_expression "*(undefined8 *)((long)puVar7 + -0x48) = 0x100100" (pointer_expression "*(undefined8 *)((long)puVar7 + -0x48)" * (cast_expression "(undefined8 *)((long)puVar7 + -0x48)" ( (type_descriptor "undefined8 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((long)puVar7 + -0x48)" ( (binary_expression "(long)puVar7 + -0x48" (cast_expression "(long)puVar7" ( (type_descriptor "long" (sized_type_specifier "long" long)) ) identifier) + number_literal) )))) = number_literal) ;) (expression_statement "uVar2 = *(undefined8 *)(unaff_RBX + 0x10);" (assignment_expression "uVar2 = *(undefined8 *)(unaff_RBX + 0x10)" identifier = (pointer_expression "*(undefined8 *)(unaff_RBX + 0x10)" * (cast_expression "(undefined8 *)(unaff_RBX + 0x10)" ( (type_descriptor "undefined8 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(unaff_RBX + 0x10)" ( (binary_expression "unaff_RBX + 0x10" identifier + number_literal) ))))) ;) (expression_statement "*(undefined8 *)((long)puVar7 + -0x10) = 0x100114;" (assignment_expression "*(undefined8 *)((long)puVar7 + -0x10) = 0x100114" (pointer_expression "*(undefined8 *)((long)puVar7 + -0x10)" * (cast_expression "(undefined8 *)((long)puVar7 + -0x10)" ( (type_descriptor "undefined8 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((long)puVar7 + -0x10)" ( (binary_expression "(long)puVar7 + -0x10" (cast_expression "(long)puVar7" ( (type_descriptor "long" (sized_type_specifier "long" long)) ) identifier) + number_literal) )))) = number_literal) ;) (expression_statement "iVar3 = (*pcRam0000000000100114)(uVar2,unaff_R13,2,1,uVar1,2);" (assignment_expression "iVar3 = (*pcRam0000000000100114)(uVar2,unaff_R13,2,1,uVar1,2)" identifier = (call_expression "(*pcRam0000000000100114)(uVar2,unaff_R13,2,1,uVar1,2)" (parenthesized_expression "(*pcRam0000000000100114)" ( (pointer_expression "*pcRam0000000000100114" * identifier) )) (argument_list "(uVar2,unaff_R13,2,1,uVar1,2)" ( identifier , identifier , number_literal , number_literal , identifier , number_literal )))) ;) (expression_statement "*(int *)(unaff_RBX + 4) = iVar3;" (assignment_expression "*(int *)(unaff_RBX + 4) = iVar3" (pointer_expression "*(int *)(unaff_RBX + 4)" * (cast_expression "(int *)(unaff_RBX + 4)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(unaff_RBX + 4)" ( (binary_expression "unaff_RBX + 4" identifier + number_literal) )))) = identifier) ;) (expression_statement "puVar4 = (undefined1 *)((long)puVar7 + -0x10);" (assignment_expression "puVar4 = (undefined1 *)((long)puVar7 + -0x10)" identifier = (cast_expression "(undefined1 *)((long)puVar7 + -0x10)" ( (type_descriptor "undefined1 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((long)puVar7 + -0x10)" ( (binary_expression "(long)puVar7 + -0x10" (cast_expression "(long)puVar7" ( (type_descriptor "long" (sized_type_specifier "long" long)) ) identifier) + number_literal) )))) ;) (expression_statement "*(undefined8 *)((long)puVar7 + -0x10) = 0x100124;" (assignment_expression "*(undefined8 *)((long)puVar7 + -0x10) = 0x100124" (pointer_expression "*(undefined8 *)((long)puVar7 + -0x10)" * (cast_expression "(undefined8 *)((long)puVar7 + -0x10)" ( (type_descriptor "undefined8 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((long)puVar7 + -0x10)" ( (binary_expression "(long)puVar7 + -0x10" (cast_expression "(long)puVar7" ( (type_descriptor "long" (sized_type_specifier "long" long)) ) identifier) + number_literal) )))) = number_literal) ;) (if_statement "if (iVar3 == 0) {\n    if (*(int *)((long)puVar7 + -0xc) != 0) goto LAB_00100061;\n    iVar3 = 7;\n  }" if (parenthesized_expression "(iVar3 == 0)" ( (binary_expression "iVar3 == 0" identifier == number_literal) )) (compound_statement "{\n    if (*(int *)((long)puVar7 + -0xc) != 0) goto LAB_00100061;\n    iVar3 = 7;\n  }" { (if_statement "if (*(int *)((long)puVar7 + -0xc) != 0) goto LAB_00100061;" if (parenthesized_expression "(*(int *)((long)puVar7 + -0xc) != 0)" ( (binary_expression "*(int *)((long)puVar7 + -0xc) != 0" (pointer_expression "*(int *)((long)puVar7 + -0xc)" * (cast_expression "(int *)((long)puVar7 + -0xc)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((long)puVar7 + -0xc)" ( (binary_expression "(long)puVar7 + -0xc" (cast_expression "(long)puVar7" ( (type_descriptor "long" (sized_type_specifier "long" long)) ) identifier) + number_literal) )))) != number_literal) )) (goto_statement "goto LAB_00100061;" goto statement_identifier ;)) (expression_statement "iVar3 = 7;" (assignment_expression "iVar3 = 7" identifier = number_literal) ;) })) (expression_statement "puVar4 = (undefined1 *)((long)puVar7 + -0x18);" (assignment_expression "puVar4 = (undefined1 *)((long)puVar7 + -0x18)" identifier = (cast_expression "(undefined1 *)((long)puVar7 + -0x18)" ( (type_descriptor "undefined1 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((long)puVar7 + -0x18)" ( (binary_expression "(long)puVar7 + -0x18" (cast_expression "(long)puVar7" ( (type_descriptor "long" (sized_type_specifier "long" long)) ) identifier) + number_literal) )))) ;) (expression_statement "*(undefined8 *)((long)puVar7 + -0x18) = 0x100142;" (assignment_expression "*(undefined8 *)((long)puVar7 + -0x18) = 0x100142" (pointer_expression "*(undefined8 *)((long)puVar7 + -0x18)" * (cast_expression "(undefined8 *)((long)puVar7 + -0x18)" ( (type_descriptor "undefined8 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((long)puVar7 + -0x18)" ( (binary_expression "(long)puVar7 + -0x18" (cast_expression "(long)puVar7" ( (type_descriptor "long" (sized_type_specifier "long" long)) ) identifier) + number_literal) )))) = number_literal) ;) (labeled_statement "LAB_00100061:\n  if (*(long *)(puVar4 + 8) != *(long *)(in_FS_OFFSET + 0x28)) {\n    *(undefined1 **)(puVar4 + -8) = &LAB_0010014c;\n                    \n    halt_baddata();\n  }" statement_identifier : (if_statement "if (*(long *)(puVar4 + 8) != *(long *)(in_FS_OFFSET + 0x28)) {\n    *(undefined1 **)(puVar4 + -8) = &LAB_0010014c;\n                    \n    halt_baddata();\n  }" if (parenthesized_expression "(*(long *)(puVar4 + 8) != *(long *)(in_FS_OFFSET + 0x28))" ( (binary_expression "*(long *)(puVar4 + 8) != *(long *)(in_FS_OFFSET + 0x28)" (pointer_expression "*(long *)(puVar4 + 8)" * (cast_expression "(long *)(puVar4 + 8)" ( (type_descriptor "long *" (sized_type_specifier "long" long) (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(puVar4 + 8)" ( (binary_expression "puVar4 + 8" identifier + number_literal) )))) != (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    *(undefined1 **)(puVar4 + -8) = &LAB_0010014c;\n                    \n    halt_baddata();\n  }" { (expression_statement "*(undefined1 **)(puVar4 + -8) = &LAB_0010014c;" (assignment_expression "*(undefined1 **)(puVar4 + -8) = &LAB_0010014c" (pointer_expression "*(undefined1 **)(puVar4 + -8)" * (cast_expression "(undefined1 **)(puVar4 + -8)" ( (type_descriptor "undefined1 **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(puVar4 + -8)" ( (binary_expression "puVar4 + -8" identifier + number_literal) )))) = (pointer_expression "&LAB_0010014c" & identifier)) ;) (expression_statement "halt_baddata();" (call_expression "halt_baddata()" identifier (argument_list "()" ( ))) ;) }))) (return_statement "return iVar3;" return identifier ;) })))
(translation_unit (function_definition TYPE (function_declarator IDENT (parameter_list ( (parameter_declaration (sized_type_specifier long) IDENT) , (parameter_declaration TYPE IDENT) , (parameter_declaration (sized_type_specifier long) IDENT) ))) (compound_statement { (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration (sized_type_specifier long) IDENT ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE IDENT ;) (declaration (sized_type_specifier long) IDENT ;) (declaration (sized_type_specifier long) (array_declarator IDENT [ LIT ]) ;) (declaration TYPE IDENT ;) (declaration TYPE (array_declarator IDENT [ LIT ]) ;) (declaration TYPE (array_declarator IDENT [ LIT ]) ;) (declaration TYPE IDENT ;) (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT)) ;) (expression_statement (assignment_expression IDENT = IDENT) ;) (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT == LIT) )) (compound_statement { (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = LIT) ;) (labeled_statement statement_identifier : (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression (cast_expression ( (type_descriptor (sized_type_specifier long)) ) IDENT) + LIT) )))) ;)) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression (cast_expression ( (type_descriptor (sized_type_specifier long)) ) IDENT) + LIT) )))) = LIT) ;) (labeled_statement statement_identifier : (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) ;)) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) = LIT) ;) }) (else_clause else (compound_statement { (expression_statement (assignment_expression IDENT = IDENT) ;) (expression_statement (assignment_expression IDENT = IDENT) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT == LIT) )) (goto_statement goto statement_identifier ;)) (if_statement if (parenthesized_expression ( (binary_expression IDENT == LIT) )) (goto_statement goto statement_identifier ;)) (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = LIT) ;) }))) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression (cast_expression ( (type_descriptor (sized_type_specifier long)) ) IDENT) + LIT) )))) = LIT) ;) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression (cast_expression ( (type_descriptor (sized_type_specifier long)) ) IDENT) + LIT) )))) = LIT) ;) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression (cast_expression ( (type_descriptor (sized_type_specifier long)) ) IDENT) + LIT) )))) = LIT) ;) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression (cast_expression ( (type_descriptor (sized_type_specifier long)) ) IDENT) + LIT) )))) = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) ;) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression (cast_expression ( (type_descriptor (sized_type_specifier long)) ) IDENT) + LIT) )))) = LIT) ;) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression (cast_expression ( (type_descriptor (sized_type_specifier long)) ) IDENT) + LIT) )))) = LIT) ;) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression (cast_expression ( (type_descriptor (sized_type_specifier long)) ) IDENT) + LIT) )))) = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) ;) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression (cast_expression ( (type_descriptor (sized_type_specifier long)) ) IDENT) + LIT) )))) = LIT) ;) (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) ;) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression (cast_expression ( (type_descriptor (sized_type_specifier long)) ) IDENT) + LIT) )))) = LIT) ;) (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) ;) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression (cast_expression ( (type_descriptor (sized_type_specifier long)) ) IDENT) + LIT) )))) = LIT) ;) (expression_statement (assignment_expression IDENT = (call_expression (parenthesized_expression ( (pointer_expression * IDENT) )) (argument_list ( IDENT , IDENT , LIT , LIT , 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 = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression (cast_expression ( (type_descriptor (sized_type_specifier long)) ) IDENT) + LIT) )))) ;) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression (cast_expression ( (type_descriptor (sized_type_specifier long)) ) IDENT) + LIT) )))) = LIT) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT == LIT) )) (compound_statement { (if_statement if (parenthesized_expression ( (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression (cast_expression ( (type_descriptor (sized_type_specifier long)) ) IDENT) + LIT) )))) != LIT) )) (goto_statement goto statement_identifier ;)) (expression_statement (assignment_expression IDENT = LIT) ;) })) (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression (cast_expression ( (type_descriptor (sized_type_specifier long)) ) IDENT) + LIT) )))) ;) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression (cast_expression ( (type_descriptor (sized_type_specifier long)) ) IDENT) + LIT) )))) = LIT) ;) (labeled_statement statement_identifier : (if_statement if (parenthesized_expression ( (binary_expression (pointer_expression * (cast_expression ( (type_descriptor (sized_type_specifier long) (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) != (pointer_expression * (cast_expression ( (type_descriptor (sized_type_specifier long) (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) )) (compound_statement { (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator * (abstract_pointer_declarator *))) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) = (pointer_expression & IDENT)) ;) (expression_statement (call_expression IDENT (argument_list ( ))) ;) }))) (return_statement return IDENT ;) })))
(function_definition "int FUN_00100000(long param_1,undefined8 param_2,long param_3)\n\n{\n  undefined8 uVar1;\n  undefined8 uVar2;\n  int iVar3;\n  long unaff_RBX;\n  undefined1 *puVar4;\n  undefined8 *puVar5;\n  undefined1 *puVar6;\n  undefined8 *puVar7;\n  undefined8 unaff_R13;\n  long in_FS_OFFSET;\n  long alStack_98 [7];\n  int iStack_5c;\n  undefined8 auStack_58 [4];\n  undefined1 local_38 [8];\n  undefined8 local_30;\n  \n  puVar5 = (undefined8 *)local_38;\n  puVar6 = local_38;\n  local_30 = *(undefined8 *)(in_FS_OFFSET + 0x28);\n  if (param_1 == 0) {\n    puVar5 = auStack_58 + 3;\n    auStack_58[3] = 0x10009a;\nLAB_0010009a:\n    puVar6 = (undefined1 *)((long)puVar5 + -8);\n    *(undefined8 *)((long)puVar5 + -8) = 0x1000b2;\nLAB_001000b2:\n    puVar7 = (undefined8 *)(puVar6 + -8);\n    *(undefined8 *)(puVar6 + -8) = 0x1000ca;\n  }\n  else {\n    unaff_RBX = param_3;\n    unaff_R13 = param_2;\n    if (param_3 == 0) goto LAB_0010009a;\n    if (lRam0000000000100035 == 0) goto LAB_001000b2;\n    puVar7 = auStack_58 + 3;\n    auStack_58[3] = 0x10005b;\n  }\n  *(undefined8 *)((long)puVar7 + -8) = 0;\n  *(undefined8 *)((long)puVar7 + -0x10) = 0;\n  *(undefined8 *)((long)puVar7 + -0x18) = 0;\n  *(undefined8 *)((long)puVar7 + -0x20) = *(undefined8 *)(unaff_RBX + 8);\n  *(undefined8 *)((long)puVar7 + -0x28) = 1;\n  *(undefined8 *)((long)puVar7 + -0x30) = 2;\n  *(undefined8 *)((long)puVar7 + -0x38) = *(undefined8 *)(unaff_RBX + 0x10);\n  *(undefined8 *)((long)puVar7 + -0x40) = 1;\n  uVar1 = *(undefined8 *)(unaff_RBX + 0x18);\n  *(undefined8 *)((long)puVar7 + -0x48) = 0x100100;\n  uVar2 = *(undefined8 *)(unaff_RBX + 0x10);\n  *(undefined8 *)((long)puVar7 + -0x10) = 0x100114;\n  iVar3 = (*pcRam0000000000100114)(uVar2,unaff_R13,2,1,uVar1,2);\n  *(int *)(unaff_RBX + 4) = iVar3;\n  puVar4 = (undefined1 *)((long)puVar7 + -0x10);\n  *(undefined8 *)((long)puVar7 + -0x10) = 0x100124;\n  if (iVar3 == 0) {\n    if (*(int *)((long)puVar7 + -0xc) != 0) goto LAB_00100061;\n    iVar3 = 7;\n  }\n  puVar4 = (undefined1 *)((long)puVar7 + -0x18);\n  *(undefined8 *)((long)puVar7 + -0x18) = 0x100142;\nLAB_00100061:\n  if (*(long *)(puVar4 + 8) != *(long *)(in_FS_OFFSET + 0x28)) {\n    *(undefined1 **)(puVar4 + -8) = &LAB_0010014c;\n                    \n    halt_baddata();\n  }\n  return iVar3;\n}" (primitive_type "int") (function_declarator "FUN_00100000(long param_1,undefined8 param_2,long param_3)" (identifier "FUN_00100000") (parameter_list "(long param_1,undefined8 param_2,long 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 "long param_3" (sized_type_specifier "long" (long "long")) (identifier "param_3")) () ")"))) (compound_statement "{\n  undefined8 uVar1;\n  undefined8 uVar2;\n  int iVar3;\n  long unaff_RBX;\n  undefined1 *puVar4;\n  undefined8 *puVar5;\n  undefined1 *puVar6;\n  undefined8 *puVar7;\n  undefined8 unaff_R13;\n  long in_FS_OFFSET;\n  long alStack_98 [7];\n  int iStack_5c;\n  undefined8 auStack_58 [4];\n  undefined1 local_38 [8];\n  undefined8 local_30;\n  \n  puVar5 = (undefined8 *)local_38;\n  puVar6 = local_38;\n  local_30 = *(undefined8 *)(in_FS_OFFSET + 0x28);\n  if (param_1 == 0) {\n    puVar5 = auStack_58 + 3;\n    auStack_58[3] = 0x10009a;\nLAB_0010009a:\n    puVar6 = (undefined1 *)((long)puVar5 + -8);\n    *(undefined8 *)((long)puVar5 + -8) = 0x1000b2;\nLAB_001000b2:\n    puVar7 = (undefined8 *)(puVar6 + -8);\n    *(undefined8 *)(puVar6 + -8) = 0x1000ca;\n  }\n  else {\n    unaff_RBX = param_3;\n    unaff_R13 = param_2;\n    if (param_3 == 0) goto LAB_0010009a;\n    if (lRam0000000000100035 == 0) goto LAB_001000b2;\n    puVar7 = auStack_58 + 3;\n    auStack_58[3] = 0x10005b;\n  }\n  *(undefined8 *)((long)puVar7 + -8) = 0;\n  *(undefined8 *)((long)puVar7 + -0x10) = 0;\n  *(undefined8 *)((long)puVar7 + -0x18) = 0;\n  *(undefined8 *)((long)puVar7 + -0x20) = *(undefined8 *)(unaff_RBX + 8);\n  *(undefined8 *)((long)puVar7 + -0x28) = 1;\n  *(undefined8 *)((long)puVar7 + -0x30) = 2;\n  *(undefined8 *)((long)puVar7 + -0x38) = *(undefined8 *)(unaff_RBX + 0x10);\n  *(undefined8 *)((long)puVar7 + -0x40) = 1;\n  uVar1 = *(undefined8 *)(unaff_RBX + 0x18);\n  *(undefined8 *)((long)puVar7 + -0x48) = 0x100100;\n  uVar2 = *(undefined8 *)(unaff_RBX + 0x10);\n  *(undefined8 *)((long)puVar7 + -0x10) = 0x100114;\n  iVar3 = (*pcRam0000000000100114)(uVar2,unaff_R13,2,1,uVar1,2);\n  *(int *)(unaff_RBX + 4) = iVar3;\n  puVar4 = (undefined1 *)((long)puVar7 + -0x10);\n  *(undefined8 *)((long)puVar7 + -0x10) = 0x100124;\n  if (iVar3 == 0) {\n    if (*(int *)((long)puVar7 + -0xc) != 0) goto LAB_00100061;\n    iVar3 = 7;\n  }\n  puVar4 = (undefined1 *)((long)puVar7 + -0x18);\n  *(undefined8 *)((long)puVar7 + -0x18) = 0x100142;\nLAB_00100061:\n  if (*(long *)(puVar4 + 8) != *(long *)(in_FS_OFFSET + 0x28)) {\n    *(undefined1 **)(puVar4 + -8) = &LAB_0010014c;\n                    \n    halt_baddata();\n  }\n  return iVar3;\n}" ({ "{") (declaration "undefined8 uVar1;" (type_identifier "undefined8") (identifier "uVar1") (; ";")) (declaration "undefined8 uVar2;" (type_identifier "undefined8") (identifier "uVar2") (; ";")) (declaration "int iVar3;" (primitive_type "int") (identifier "iVar3") (; ";")) (declaration "long unaff_RBX;" (sized_type_specifier "long" (long "long")) (identifier "unaff_RBX") (; ";")) (declaration "undefined1 *puVar4;" (type_identifier "undefined1") (pointer_declarator "*puVar4" (* "*") (identifier "puVar4")) (; ";")) (declaration "undefined8 *puVar5;" (type_identifier "undefined8") (pointer_declarator "*puVar5" (* "*") (identifier "puVar5")) (; ";")) (declaration "undefined1 *puVar6;" (type_identifier "undefined1") (pointer_declarator "*puVar6" (* "*") (identifier "puVar6")) (; ";")) (declaration "undefined8 *puVar7;" (type_identifier "undefined8") (pointer_declarator "*puVar7" (* "*") (identifier "puVar7")) (; ";")) (declaration "undefined8 unaff_R13;" (type_identifier "undefined8") (identifier "unaff_R13") (; ";")) (declaration "long in_FS_OFFSET;" (sized_type_specifier "long" (long "long")) (identifier "in_FS_OFFSET") (; ";")) (declaration "long alStack_98 [7];" (sized_type_specifier "long" (long "long")) (array_declarator "alStack_98 [7]" (identifier "alStack_98") ([ "[") (number_literal "7") (] "]")) (; ";")) (declaration "int iStack_5c;" (primitive_type "int") (identifier "iStack_5c") (; ";")) (declaration "undefined8 auStack_58 [4];" (type_identifier "undefined8") (array_declarator "auStack_58 [4]" (identifier "auStack_58") ([ "[") (number_literal "4") (] "]")) (; ";")) (declaration "undefined1 local_38 [8];" (type_identifier "undefined1") (array_declarator "local_38 [8]" (identifier "local_38") ([ "[") (number_literal "8") (] "]")) (; ";")) (declaration "undefined8 local_30;" (type_identifier "undefined8") (identifier "local_30") (; ";")) (expression_statement "puVar5 = (undefined8 *)local_38;" (assignment_expression "puVar5 = (undefined8 *)local_38" (identifier "puVar5") (= "=") (cast_expression "(undefined8 *)local_38" (( "(") (type_descriptor "undefined8 *" (type_identifier "undefined8") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "local_38"))) (; ";")) (expression_statement "puVar6 = local_38;" (assignment_expression "puVar6 = local_38" (identifier "puVar6") (= "=") (identifier "local_38")) (; ";")) (expression_statement "local_30 = *(undefined8 *)(in_FS_OFFSET + 0x28);" (assignment_expression "local_30 = *(undefined8 *)(in_FS_OFFSET + 0x28)" (identifier "local_30") (= "=") (pointer_expression "*(undefined8 *)(in_FS_OFFSET + 0x28)" (* "*") (cast_expression "(undefined8 *)(in_FS_OFFSET + 0x28)" (( "(") (type_descriptor "undefined8 *" (type_identifier "undefined8") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(in_FS_OFFSET + 0x28)" (( "(") (binary_expression "in_FS_OFFSET + 0x28" (identifier "in_FS_OFFSET") (+ "+") (number_literal "0x28")) () ")"))))) (; ";")) (if_statement "if (param_1 == 0) {\n    puVar5 = auStack_58 + 3;\n    auStack_58[3] = 0x10009a;\nLAB_0010009a:\n    puVar6 = (undefined1 *)((long)puVar5 + -8);\n    *(undefined8 *)((long)puVar5 + -8) = 0x1000b2;\nLAB_001000b2:\n    puVar7 = (undefined8 *)(puVar6 + -8);\n    *(undefined8 *)(puVar6 + -8) = 0x1000ca;\n  }\n  else {\n    unaff_RBX = param_3;\n    unaff_R13 = param_2;\n    if (param_3 == 0) goto LAB_0010009a;\n    if (lRam0000000000100035 == 0) goto LAB_001000b2;\n    puVar7 = auStack_58 + 3;\n    auStack_58[3] = 0x10005b;\n  }" (if "if") (parenthesized_expression "(param_1 == 0)" (( "(") (binary_expression "param_1 == 0" (identifier "param_1") (== "==") (number_literal "0")) () ")")) (compound_statement "{\n    puVar5 = auStack_58 + 3;\n    auStack_58[3] = 0x10009a;\nLAB_0010009a:\n    puVar6 = (undefined1 *)((long)puVar5 + -8);\n    *(undefined8 *)((long)puVar5 + -8) = 0x1000b2;\nLAB_001000b2:\n    puVar7 = (undefined8 *)(puVar6 + -8);\n    *(undefined8 *)(puVar6 + -8) = 0x1000ca;\n  }" ({ "{") (expression_statement "puVar5 = auStack_58 + 3;" (assignment_expression "puVar5 = auStack_58 + 3" (identifier "puVar5") (= "=") (binary_expression "auStack_58 + 3" (identifier "auStack_58") (+ "+") (number_literal "3"))) (; ";")) (expression_statement "auStack_58[3] = 0x10009a;" (assignment_expression "auStack_58[3] = 0x10009a" (subscript_expression "auStack_58[3]" (identifier "auStack_58") ([ "[") (number_literal "3") (] "]")) (= "=") (number_literal "0x10009a")) (; ";")) (labeled_statement "LAB_0010009a:\n    puVar6 = (undefined1 *)((long)puVar5 + -8);" (statement_identifier "LAB_0010009a") (: ":") (expression_statement "puVar6 = (undefined1 *)((long)puVar5 + -8);" (assignment_expression "puVar6 = (undefined1 *)((long)puVar5 + -8)" (identifier "puVar6") (= "=") (cast_expression "(undefined1 *)((long)puVar5 + -8)" (( "(") (type_descriptor "undefined1 *" (type_identifier "undefined1") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "((long)puVar5 + -8)" (( "(") (binary_expression "(long)puVar5 + -8" (cast_expression "(long)puVar5" (( "(") (type_descriptor "long" (sized_type_specifier "long" (long "long"))) () ")") (identifier "puVar5")) (+ "+") (number_literal "-8")) () ")")))) (; ";"))) (expression_statement "*(undefined8 *)((long)puVar5 + -8) = 0x1000b2;" (assignment_expression "*(undefined8 *)((long)puVar5 + -8) = 0x1000b2" (pointer_expression "*(undefined8 *)((long)puVar5 + -8)" (* "*") (cast_expression "(undefined8 *)((long)puVar5 + -8)" (( "(") (type_descriptor "undefined8 *" (type_identifier "undefined8") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "((long)puVar5 + -8)" (( "(") (binary_expression "(long)puVar5 + -8" (cast_expression "(long)puVar5" (( "(") (type_descriptor "long" (sized_type_specifier "long" (long "long"))) () ")") (identifier "puVar5")) (+ "+") (number_literal "-8")) () ")")))) (= "=") (number_literal "0x1000b2")) (; ";")) (labeled_statement "LAB_001000b2:\n    puVar7 = (undefined8 *)(puVar6 + -8);" (statement_identifier "LAB_001000b2") (: ":") (expression_statement "puVar7 = (undefined8 *)(puVar6 + -8);" (assignment_expression "puVar7 = (undefined8 *)(puVar6 + -8)" (identifier "puVar7") (= "=") (cast_expression "(undefined8 *)(puVar6 + -8)" (( "(") (type_descriptor "undefined8 *" (type_identifier "undefined8") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(puVar6 + -8)" (( "(") (binary_expression "puVar6 + -8" (identifier "puVar6") (+ "+") (number_literal "-8")) () ")")))) (; ";"))) (expression_statement "*(undefined8 *)(puVar6 + -8) = 0x1000ca;" (assignment_expression "*(undefined8 *)(puVar6 + -8) = 0x1000ca" (pointer_expression "*(undefined8 *)(puVar6 + -8)" (* "*") (cast_expression "(undefined8 *)(puVar6 + -8)" (( "(") (type_descriptor "undefined8 *" (type_identifier "undefined8") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(puVar6 + -8)" (( "(") (binary_expression "puVar6 + -8" (identifier "puVar6") (+ "+") (number_literal "-8")) () ")")))) (= "=") (number_literal "0x1000ca")) (; ";")) (} "}")) (else_clause "else {\n    unaff_RBX = param_3;\n    unaff_R13 = param_2;\n    if (param_3 == 0) goto LAB_0010009a;\n    if (lRam0000000000100035 == 0) goto LAB_001000b2;\n    puVar7 = auStack_58 + 3;\n    auStack_58[3] = 0x10005b;\n  }" (else "else") (compound_statement "{\n    unaff_RBX = param_3;\n    unaff_R13 = param_2;\n    if (param_3 == 0) goto LAB_0010009a;\n    if (lRam0000000000100035 == 0) goto LAB_001000b2;\n    puVar7 = auStack_58 + 3;\n    auStack_58[3] = 0x10005b;\n  }" ({ "{") (expression_statement "unaff_RBX = param_3;" (assignment_expression "unaff_RBX = param_3" (identifier "unaff_RBX") (= "=") (identifier "param_3")) (; ";")) (expression_statement "unaff_R13 = param_2;" (assignment_expression "unaff_R13 = param_2" (identifier "unaff_R13") (= "=") (identifier "param_2")) (; ";")) (if_statement "if (param_3 == 0) goto LAB_0010009a;" (if "if") (parenthesized_expression "(param_3 == 0)" (( "(") (binary_expression "param_3 == 0" (identifier "param_3") (== "==") (number_literal "0")) () ")")) (goto_statement "goto LAB_0010009a;" (goto "goto") (statement_identifier "LAB_0010009a") (; ";"))) (if_statement "if (lRam0000000000100035 == 0) goto LAB_001000b2;" (if "if") (parenthesized_expression "(lRam0000000000100035 == 0)" (( "(") (binary_expression "lRam0000000000100035 == 0" (identifier "lRam0000000000100035") (== "==") (number_literal "0")) () ")")) (goto_statement "goto LAB_001000b2;" (goto "goto") (statement_identifier "LAB_001000b2") (; ";"))) (expression_statement "puVar7 = auStack_58 + 3;" (assignment_expression "puVar7 = auStack_58 + 3" (identifier "puVar7") (= "=") (binary_expression "auStack_58 + 3" (identifier "auStack_58") (+ "+") (number_literal "3"))) (; ";")) (expression_statement "auStack_58[3] = 0x10005b;" (assignment_expression "auStack_58[3] = 0x10005b" (subscript_expression "auStack_58[3]" (identifier "auStack_58") ([ "[") (number_literal "3") (] "]")) (= "=") (number_literal "0x10005b")) (; ";")) (} "}")))) (expression_statement "*(undefined8 *)((long)puVar7 + -8) = 0;" (assignment_expression "*(undefined8 *)((long)puVar7 + -8) = 0" (pointer_expression "*(undefined8 *)((long)puVar7 + -8)" (* "*") (cast_expression "(undefined8 *)((long)puVar7 + -8)" (( "(") (type_descriptor "undefined8 *" (type_identifier "undefined8") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "((long)puVar7 + -8)" (( "(") (binary_expression "(long)puVar7 + -8" (cast_expression "(long)puVar7" (( "(") (type_descriptor "long" (sized_type_specifier "long" (long "long"))) () ")") (identifier "puVar7")) (+ "+") (number_literal "-8")) () ")")))) (= "=") (number_literal "0")) (; ";")) (expression_statement "*(undefined8 *)((long)puVar7 + -0x10) = 0;" (assignment_expression "*(undefined8 *)((long)puVar7 + -0x10) = 0" (pointer_expression "*(undefined8 *)((long)puVar7 + -0x10)" (* "*") (cast_expression "(undefined8 *)((long)puVar7 + -0x10)" (( "(") (type_descriptor "undefined8 *" (type_identifier "undefined8") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "((long)puVar7 + -0x10)" (( "(") (binary_expression "(long)puVar7 + -0x10" (cast_expression "(long)puVar7" (( "(") (type_descriptor "long" (sized_type_specifier "long" (long "long"))) () ")") (identifier "puVar7")) (+ "+") (number_literal "-0x10")) () ")")))) (= "=") (number_literal "0")) (; ";")) (expression_statement "*(undefined8 *)((long)puVar7 + -0x18) = 0;" (assignment_expression "*(undefined8 *)((long)puVar7 + -0x18) = 0" (pointer_expression "*(undefined8 *)((long)puVar7 + -0x18)" (* "*") (cast_expression "(undefined8 *)((long)puVar7 + -0x18)" (( "(") (type_descriptor "undefined8 *" (type_identifier "undefined8") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "((long)puVar7 + -0x18)" (( "(") (binary_expression "(long)puVar7 + -0x18" (cast_expression "(long)puVar7" (( "(") (type_descriptor "long" (sized_type_specifier "long" (long "long"))) () ")") (identifier "puVar7")) (+ "+") (number_literal "-0x18")) () ")")))) (= "=") (number_literal "0")) (; ";")) (expression_statement "*(undefined8 *)((long)puVar7 + -0x20) = *(undefined8 *)(unaff_RBX + 8);" (assignment_expression "*(undefined8 *)((long)puVar7 + -0x20) = *(undefined8 *)(unaff_RBX + 8)" (pointer_expression "*(undefined8 *)((long)puVar7 + -0x20)" (* "*") (cast_expression "(undefined8 *)((long)puVar7 + -0x20)" (( "(") (type_descriptor "undefined8 *" (type_identifier "undefined8") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "((long)puVar7 + -0x20)" (( "(") (binary_expression "(long)puVar7 + -0x20" (cast_expression "(long)puVar7" (( "(") (type_descriptor "long" (sized_type_specifier "long" (long "long"))) () ")") (identifier "puVar7")) (+ "+") (number_literal "-0x20")) () ")")))) (= "=") (pointer_expression "*(undefined8 *)(unaff_RBX + 8)" (* "*") (cast_expression "(undefined8 *)(unaff_RBX + 8)" (( "(") (type_descriptor "undefined8 *" (type_identifier "undefined8") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(unaff_RBX + 8)" (( "(") (binary_expression "unaff_RBX + 8" (identifier "unaff_RBX") (+ "+") (number_literal "8")) () ")"))))) (; ";")) (expression_statement "*(undefined8 *)((long)puVar7 + -0x28) = 1;" (assignment_expression "*(undefined8 *)((long)puVar7 + -0x28) = 1" (pointer_expression "*(undefined8 *)((long)puVar7 + -0x28)" (* "*") (cast_expression "(undefined8 *)((long)puVar7 + -0x28)" (( "(") (type_descriptor "undefined8 *" (type_identifier "undefined8") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "((long)puVar7 + -0x28)" (( "(") (binary_expression "(long)puVar7 + -0x28" (cast_expression "(long)puVar7" (( "(") (type_descriptor "long" (sized_type_specifier "long" (long "long"))) () ")") (identifier "puVar7")) (+ "+") (number_literal "-0x28")) () ")")))) (= "=") (number_literal "1")) (; ";")) (expression_statement "*(undefined8 *)((long)puVar7 + -0x30) = 2;" (assignment_expression "*(undefined8 *)((long)puVar7 + -0x30) = 2" (pointer_expression "*(undefined8 *)((long)puVar7 + -0x30)" (* "*") (cast_expression "(undefined8 *)((long)puVar7 + -0x30)" (( "(") (type_descriptor "undefined8 *" (type_identifier "undefined8") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "((long)puVar7 + -0x30)" (( "(") (binary_expression "(long)puVar7 + -0x30" (cast_expression "(long)puVar7" (( "(") (type_descriptor "long" (sized_type_specifier "long" (long "long"))) () ")") (identifier "puVar7")) (+ "+") (number_literal "-0x30")) () ")")))) (= "=") (number_literal "2")) (; ";")) (expression_statement "*(undefined8 *)((long)puVar7 + -0x38) = *(undefined8 *)(unaff_RBX + 0x10);" (assignment_expression "*(undefined8 *)((long)puVar7 + -0x38) = *(undefined8 *)(unaff_RBX + 0x10)" (pointer_expression "*(undefined8 *)((long)puVar7 + -0x38)" (* "*") (cast_expression "(undefined8 *)((long)puVar7 + -0x38)" (( "(") (type_descriptor "undefined8 *" (type_identifier "undefined8") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "((long)puVar7 + -0x38)" (( "(") (binary_expression "(long)puVar7 + -0x38" (cast_expression "(long)puVar7" (( "(") (type_descriptor "long" (sized_type_specifier "long" (long "long"))) () ")") (identifier "puVar7")) (+ "+") (number_literal "-0x38")) () ")")))) (= "=") (pointer_expression "*(undefined8 *)(unaff_RBX + 0x10)" (* "*") (cast_expression "(undefined8 *)(unaff_RBX + 0x10)" (( "(") (type_descriptor "undefined8 *" (type_identifier "undefined8") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(unaff_RBX + 0x10)" (( "(") (binary_expression "unaff_RBX + 0x10" (identifier "unaff_RBX") (+ "+") (number_literal "0x10")) () ")"))))) (; ";")) (expression_statement "*(undefined8 *)((long)puVar7 + -0x40) = 1;" (assignment_expression "*(undefined8 *)((long)puVar7 + -0x40) = 1" (pointer_expression "*(undefined8 *)((long)puVar7 + -0x40)" (* "*") (cast_expression "(undefined8 *)((long)puVar7 + -0x40)" (( "(") (type_descriptor "undefined8 *" (type_identifier "undefined8") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "((long)puVar7 + -0x40)" (( "(") (binary_expression "(long)puVar7 + -0x40" (cast_expression "(long)puVar7" (( "(") (type_descriptor "long" (sized_type_specifier "long" (long "long"))) () ")") (identifier "puVar7")) (+ "+") (number_literal "-0x40")) () ")")))) (= "=") (number_literal "1")) (; ";")) (expression_statement "uVar1 = *(undefined8 *)(unaff_RBX + 0x18);" (assignment_expression "uVar1 = *(undefined8 *)(unaff_RBX + 0x18)" (identifier "uVar1") (= "=") (pointer_expression "*(undefined8 *)(unaff_RBX + 0x18)" (* "*") (cast_expression "(undefined8 *)(unaff_RBX + 0x18)" (( "(") (type_descriptor "undefined8 *" (type_identifier "undefined8") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(unaff_RBX + 0x18)" (( "(") (binary_expression "unaff_RBX + 0x18" (identifier "unaff_RBX") (+ "+") (number_literal "0x18")) () ")"))))) (; ";")) (expression_statement "*(undefined8 *)((long)puVar7 + -0x48) = 0x100100;" (assignment_expression "*(undefined8 *)((long)puVar7 + -0x48) = 0x100100" (pointer_expression "*(undefined8 *)((long)puVar7 + -0x48)" (* "*") (cast_expression "(undefined8 *)((long)puVar7 + -0x48)" (( "(") (type_descriptor "undefined8 *" (type_identifier "undefined8") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "((long)puVar7 + -0x48)" (( "(") (binary_expression "(long)puVar7 + -0x48" (cast_expression "(long)puVar7" (( "(") (type_descriptor "long" (sized_type_specifier "long" (long "long"))) () ")") (identifier "puVar7")) (+ "+") (number_literal "-0x48")) () ")")))) (= "=") (number_literal "0x100100")) (; ";")) (expression_statement "uVar2 = *(undefined8 *)(unaff_RBX + 0x10);" (assignment_expression "uVar2 = *(undefined8 *)(unaff_RBX + 0x10)" (identifier "uVar2") (= "=") (pointer_expression "*(undefined8 *)(unaff_RBX + 0x10)" (* "*") (cast_expression "(undefined8 *)(unaff_RBX + 0x10)" (( "(") (type_descriptor "undefined8 *" (type_identifier "undefined8") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(unaff_RBX + 0x10)" (( "(") (binary_expression "unaff_RBX + 0x10" (identifier "unaff_RBX") (+ "+") (number_literal "0x10")) () ")"))))) (; ";")) (expression_statement "*(undefined8 *)((long)puVar7 + -0x10) = 0x100114;" (assignment_expression "*(undefined8 *)((long)puVar7 + -0x10) = 0x100114" (pointer_expression "*(undefined8 *)((long)puVar7 + -0x10)" (* "*") (cast_expression "(undefined8 *)((long)puVar7 + -0x10)" (( "(") (type_descriptor "undefined8 *" (type_identifier "undefined8") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "((long)puVar7 + -0x10)" (( "(") (binary_expression "(long)puVar7 + -0x10" (cast_expression "(long)puVar7" (( "(") (type_descriptor "long" (sized_type_specifier "long" (long "long"))) () ")") (identifier "puVar7")) (+ "+") (number_literal "-0x10")) () ")")))) (= "=") (number_literal "0x100114")) (; ";")) (expression_statement "iVar3 = (*pcRam0000000000100114)(uVar2,unaff_R13,2,1,uVar1,2);" (assignment_expression "iVar3 = (*pcRam0000000000100114)(uVar2,unaff_R13,2,1,uVar1,2)" (identifier "iVar3") (= "=") (call_expression "(*pcRam0000000000100114)(uVar2,unaff_R13,2,1,uVar1,2)" (parenthesized_expression "(*pcRam0000000000100114)" (( "(") (pointer_expression "*pcRam0000000000100114" (* "*") (identifier "pcRam0000000000100114")) () ")")) (argument_list "(uVar2,unaff_R13,2,1,uVar1,2)" (( "(") (identifier "uVar2") (, ",") (identifier "unaff_R13") (, ",") (number_literal "2") (, ",") (number_literal "1") (, ",") (identifier "uVar1") (, ",") (number_literal "2") () ")")))) (; ";")) (expression_statement "*(int *)(unaff_RBX + 4) = iVar3;" (assignment_expression "*(int *)(unaff_RBX + 4) = iVar3" (pointer_expression "*(int *)(unaff_RBX + 4)" (* "*") (cast_expression "(int *)(unaff_RBX + 4)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(unaff_RBX + 4)" (( "(") (binary_expression "unaff_RBX + 4" (identifier "unaff_RBX") (+ "+") (number_literal "4")) () ")")))) (= "=") (identifier "iVar3")) (; ";")) (expression_statement "puVar4 = (undefined1 *)((long)puVar7 + -0x10);" (assignment_expression "puVar4 = (undefined1 *)((long)puVar7 + -0x10)" (identifier "puVar4") (= "=") (cast_expression "(undefined1 *)((long)puVar7 + -0x10)" (( "(") (type_descriptor "undefined1 *" (type_identifier "undefined1") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "((long)puVar7 + -0x10)" (( "(") (binary_expression "(long)puVar7 + -0x10" (cast_expression "(long)puVar7" (( "(") (type_descriptor "long" (sized_type_specifier "long" (long "long"))) () ")") (identifier "puVar7")) (+ "+") (number_literal "-0x10")) () ")")))) (; ";")) (expression_statement "*(undefined8 *)((long)puVar7 + -0x10) = 0x100124;" (assignment_expression "*(undefined8 *)((long)puVar7 + -0x10) = 0x100124" (pointer_expression "*(undefined8 *)((long)puVar7 + -0x10)" (* "*") (cast_expression "(undefined8 *)((long)puVar7 + -0x10)" (( "(") (type_descriptor "undefined8 *" (type_identifier "undefined8") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "((long)puVar7 + -0x10)" (( "(") (binary_expression "(long)puVar7 + -0x10" (cast_expression "(long)puVar7" (( "(") (type_descriptor "long" (sized_type_specifier "long" (long "long"))) () ")") (identifier "puVar7")) (+ "+") (number_literal "-0x10")) () ")")))) (= "=") (number_literal "0x100124")) (; ";")) (if_statement "if (iVar3 == 0) {\n    if (*(int *)((long)puVar7 + -0xc) != 0) goto LAB_00100061;\n    iVar3 = 7;\n  }" (if "if") (parenthesized_expression "(iVar3 == 0)" (( "(") (binary_expression "iVar3 == 0" (identifier "iVar3") (== "==") (number_literal "0")) () ")")) (compound_statement "{\n    if (*(int *)((long)puVar7 + -0xc) != 0) goto LAB_00100061;\n    iVar3 = 7;\n  }" ({ "{") (if_statement "if (*(int *)((long)puVar7 + -0xc) != 0) goto LAB_00100061;" (if "if") (parenthesized_expression "(*(int *)((long)puVar7 + -0xc) != 0)" (( "(") (binary_expression "*(int *)((long)puVar7 + -0xc) != 0" (pointer_expression "*(int *)((long)puVar7 + -0xc)" (* "*") (cast_expression "(int *)((long)puVar7 + -0xc)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "((long)puVar7 + -0xc)" (( "(") (binary_expression "(long)puVar7 + -0xc" (cast_expression "(long)puVar7" (( "(") (type_descriptor "long" (sized_type_specifier "long" (long "long"))) () ")") (identifier "puVar7")) (+ "+") (number_literal "-0xc")) () ")")))) (!= "!=") (number_literal "0")) () ")")) (goto_statement "goto LAB_00100061;" (goto "goto") (statement_identifier "LAB_00100061") (; ";"))) (expression_statement "iVar3 = 7;" (assignment_expression "iVar3 = 7" (identifier "iVar3") (= "=") (number_literal "7")) (; ";")) (} "}"))) (expression_statement "puVar4 = (undefined1 *)((long)puVar7 + -0x18);" (assignment_expression "puVar4 = (undefined1 *)((long)puVar7 + -0x18)" (identifier "puVar4") (= "=") (cast_expression "(undefined1 *)((long)puVar7 + -0x18)" (( "(") (type_descriptor "undefined1 *" (type_identifier "undefined1") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "((long)puVar7 + -0x18)" (( "(") (binary_expression "(long)puVar7 + -0x18" (cast_expression "(long)puVar7" (( "(") (type_descriptor "long" (sized_type_specifier "long" (long "long"))) () ")") (identifier "puVar7")) (+ "+") (number_literal "-0x18")) () ")")))) (; ";")) (expression_statement "*(undefined8 *)((long)puVar7 + -0x18) = 0x100142;" (assignment_expression "*(undefined8 *)((long)puVar7 + -0x18) = 0x100142" (pointer_expression "*(undefined8 *)((long)puVar7 + -0x18)" (* "*") (cast_expression "(undefined8 *)((long)puVar7 + -0x18)" (( "(") (type_descriptor "undefined8 *" (type_identifier "undefined8") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "((long)puVar7 + -0x18)" (( "(") (binary_expression "(long)puVar7 + -0x18" (cast_expression "(long)puVar7" (( "(") (type_descriptor "long" (sized_type_specifier "long" (long "long"))) () ")") (identifier "puVar7")) (+ "+") (number_literal "-0x18")) () ")")))) (= "=") (number_literal "0x100142")) (; ";")) (labeled_statement "LAB_00100061:\n  if (*(long *)(puVar4 + 8) != *(long *)(in_FS_OFFSET + 0x28)) {\n    *(undefined1 **)(puVar4 + -8) = &LAB_0010014c;\n                    \n    halt_baddata();\n  }" (statement_identifier "LAB_00100061") (: ":") (if_statement "if (*(long *)(puVar4 + 8) != *(long *)(in_FS_OFFSET + 0x28)) {\n    *(undefined1 **)(puVar4 + -8) = &LAB_0010014c;\n                    \n    halt_baddata();\n  }" (if "if") (parenthesized_expression "(*(long *)(puVar4 + 8) != *(long *)(in_FS_OFFSET + 0x28))" (( "(") (binary_expression "*(long *)(puVar4 + 8) != *(long *)(in_FS_OFFSET + 0x28)" (pointer_expression "*(long *)(puVar4 + 8)" (* "*") (cast_expression "(long *)(puVar4 + 8)" (( "(") (type_descriptor "long *" (sized_type_specifier "long" (long "long")) (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(puVar4 + 8)" (( "(") (binary_expression "puVar4 + 8" (identifier "puVar4") (+ "+") (number_literal "8")) () ")")))) (!= "!=") (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    *(undefined1 **)(puVar4 + -8) = &LAB_0010014c;\n                    \n    halt_baddata();\n  }" ({ "{") (expression_statement "*(undefined1 **)(puVar4 + -8) = &LAB_0010014c;" (assignment_expression "*(undefined1 **)(puVar4 + -8) = &LAB_0010014c" (pointer_expression "*(undefined1 **)(puVar4 + -8)" (* "*") (cast_expression "(undefined1 **)(puVar4 + -8)" (( "(") (type_descriptor "undefined1 **" (type_identifier "undefined1") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (parenthesized_expression "(puVar4 + -8)" (( "(") (binary_expression "puVar4 + -8" (identifier "puVar4") (+ "+") (number_literal "-8")) () ")")))) (= "=") (pointer_expression "&LAB_0010014c" (& "&") (identifier "LAB_0010014c"))) (; ";")) (expression_statement "halt_baddata();" (call_expression "halt_baddata()" (identifier "halt_baddata") (argument_list "()" (( "(") () ")"))) (; ";")) (} "}")))) (return_statement "return iVar3;" (return "return") (identifier "iVar3") (; ";")) (} "}")))

/* WARNING: Globals starting with '_' overlap smaller symbols at the same address */
/* WARNING: Unknown calling convention */

int function_1(type_1 *var_2,type_2 dsaparamlen,type_3 *var_4)

{
  int var_7;
  type_3 *unaff_RBX;
  type_1 *unaff_R12;
  type_2 unaff_R13;
  long var_1;
  int var_10;
  long var_12;
  
  var_12 = *(long *)(var_1 + 0x28);
  if (var_2 == (type_1 *)0x0) {
    var_3("dsaparam != NULL","src/pk/dsa/dsa_set_pqg_dsaparam.c",0x1d);
LAB_0010009a:
    var_3("key != NULL","src/pk/dsa/dsa_set_pqg_dsaparam.c",0x1e);
LAB_001000b2:
    var_3("ltc_mp.name != NULL","src/pk/dsa/dsa_set_pqg_dsaparam.c",0x1f);
  }
  else {
    unaff_RBX = var_4;
    unaff_R12 = var_2;
    unaff_R13 = dsaparamlen;
    if (var_4 == (type_3 *)0x0) goto LAB_0010009a;
    if (var_5 == 0) goto LAB_001000b2;
    var_7 = var_6(&var_4->p,&var_4->g,&var_4->q,&var_4->x,&var_4->y,0);
    if (var_7 != 0) goto LAB_00100061;
  }
  var_7 = var_8
                    (unaff_R12,unaff_R13,2,1,unaff_RBX->p,2,1,unaff_RBX->q,2,1,unaff_RBX->g,0,0,0);
  if (var_7 == 0) {
    var_7 = (*_DAT_00101090)(unaff_RBX->q);
    unaff_RBX->qord = var_7;
    var_7 = var_9(unaff_RBX,&var_10);
    if (var_7 == 0) {
      if (var_10 != 0) goto LAB_00100061;
      var_7 = 7;
    }
  }
  var_11(unaff_RBX);
LAB_00100061:
  if (var_12 == *(long *)(var_1 + 0x28)) {
    return var_7;
  }
                    /* WARNING: Subroutine does not return */
  var_13();
}


(translation_unit (function_definition type: (primitive_type) 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: (sized_type_specifier) declarator: (identifier)))) body: (compound_statement (declaration type: (type_identifier) declarator: (identifier)) (declaration type: (type_identifier) declarator: (identifier)) (declaration type: (primitive_type) declarator: (identifier)) (declaration type: (sized_type_specifier) declarator: (identifier)) (declaration type: (type_identifier) declarator: (pointer_declarator declarator: (identifier))) (declaration type: (type_identifier) declarator: (pointer_declarator declarator: (identifier))) (declaration type: (type_identifier) declarator: (pointer_declarator declarator: (identifier))) (declaration type: (type_identifier) declarator: (pointer_declarator declarator: (identifier))) (declaration type: (type_identifier) declarator: (identifier)) (declaration type: (sized_type_specifier) declarator: (identifier)) (declaration type: (sized_type_specifier) declarator: (array_declarator declarator: (identifier) size: (number_literal))) (declaration type: (primitive_type) declarator: (identifier)) (declaration type: (type_identifier) declarator: (array_declarator declarator: (identifier) size: (number_literal))) (declaration type: (type_identifier) declarator: (array_declarator declarator: (identifier) size: (number_literal))) (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: (identifier)))) (expression_statement (assignment_expression left: (identifier) right: (identifier))) (expression_statement (assignment_expression left: (identifier) right: (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))))))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))) consequence: (compound_statement (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (identifier) right: (number_literal)))) (expression_statement (assignment_expression left: (subscript_expression argument: (identifier) index: (number_literal)) right: (number_literal))) (labeled_statement label: (statement_identifier) (expression_statement (assignment_expression left: (identifier) right: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (cast_expression type: (type_descriptor type: (sized_type_specifier)) value: (identifier)) right: (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: (cast_expression type: (type_descriptor type: (sized_type_specifier)) value: (identifier)) right: (number_literal))))) right: (number_literal))) (labeled_statement label: (statement_identifier) (expression_statement (assignment_expression left: (identifier) right: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (identifier) right: (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: (number_literal)))) alternative: (else_clause (compound_statement (expression_statement (assignment_expression left: (identifier) right: (identifier))) (expression_statement (assignment_expression left: (identifier) right: (identifier))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))) consequence: (goto_statement label: (statement_identifier))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))) consequence: (goto_statement label: (statement_identifier))) (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (identifier) right: (number_literal)))) (expression_statement (assignment_expression left: (subscript_expression argument: (identifier) index: (number_literal)) right: (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: (cast_expression type: (type_descriptor type: (sized_type_specifier)) value: (identifier)) right: (number_literal))))) right: (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: (cast_expression type: (type_descriptor type: (sized_type_specifier)) value: (identifier)) right: (number_literal))))) right: (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: (cast_expression type: (type_descriptor type: (sized_type_specifier)) value: (identifier)) right: (number_literal))))) right: (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: (cast_expression type: (type_descriptor type: (sized_type_specifier)) value: (identifier)) right: (number_literal))))) right: (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))))))) (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: (cast_expression type: (type_descriptor type: (sized_type_specifier)) value: (identifier)) right: (number_literal))))) right: (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: (cast_expression type: (type_descriptor type: (sized_type_specifier)) value: (identifier)) right: (number_literal))))) right: (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: (cast_expression type: (type_descriptor type: (sized_type_specifier)) value: (identifier)) right: (number_literal))))) right: (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))))))) (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: (cast_expression type: (type_descriptor type: (sized_type_specifier)) value: (identifier)) right: (number_literal))))) right: (number_literal))) (expression_statement (assignment_expression left: (identifier) right: (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))))))) (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: (cast_expression type: (type_descriptor type: (sized_type_specifier)) value: (identifier)) right: (number_literal))))) right: (number_literal))) (expression_statement (assignment_expression left: (identifier) right: (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))))))) (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: (cast_expression type: (type_descriptor type: (sized_type_specifier)) value: (identifier)) right: (number_literal))))) right: (number_literal))) (expression_statement (assignment_expression left: (identifier) right: (call_expression function: (parenthesized_expression (pointer_expression argument: (identifier))) arguments: (argument_list (identifier) (identifier) (number_literal) (number_literal) (identifier) (number_literal))))) (expression_statement (assignment_expression left: (pointer_expression argument: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))))) right: (identifier))) (expression_statement (assignment_expression left: (identifier) right: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (cast_expression type: (type_descriptor type: (sized_type_specifier)) value: (identifier)) right: (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: (cast_expression type: (type_descriptor type: (sized_type_specifier)) value: (identifier)) right: (number_literal))))) right: (number_literal))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))) consequence: (compound_statement (if_statement condition: (parenthesized_expression (binary_expression left: (pointer_expression argument: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (cast_expression type: (type_descriptor type: (sized_type_specifier)) value: (identifier)) right: (number_literal))))) right: (number_literal))) consequence: (goto_statement label: (statement_identifier))) (expression_statement (assignment_expression left: (identifier) right: (number_literal))))) (expression_statement (assignment_expression left: (identifier) right: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (cast_expression type: (type_descriptor type: (sized_type_specifier)) value: (identifier)) right: (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: (cast_expression type: (type_descriptor type: (sized_type_specifier)) value: (identifier)) right: (number_literal))))) right: (number_literal))) (labeled_statement label: (statement_identifier) (if_statement condition: (parenthesized_expression (binary_expression left: (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))))) 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 (expression_statement (assignment_expression left: (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))))) right: (pointer_expression argument: (identifier)))) (expression_statement (call_expression function: (identifier) arguments: (argument_list)))))) (return_statement (identifier)))))

/* WARNING: Control flow encountered bad instruction data */

int MASKED(long param_1,undefined8 param_2,long param_3)

{
  undefined8 uVar1;
  undefined8 uVar2;
  int iVar3;
  long unaff_RBX;
  undefined1 *puVar4;
  undefined8 *puVar5;
  undefined1 *puVar6;
  undefined8 *puVar7;
  undefined8 unaff_R13;
  long in_FS_OFFSET;
  long alStack_98 [7];
  int iStack_5c;
  undefined8 auStack_58 [4];
  undefined1 local_38 [8];
  undefined8 local_30;
  
  puVar5 = (undefined8 *)local_38;
  puVar6 = local_38;
  local_30 = *(undefined8 *)(in_FS_OFFSET + 0x28);
  if (param_1 == 0) {
    puVar5 = auStack_58 + 3;
    auStack_58[3] = 0x10009a;
LAB_0010009a:
    puVar6 = (undefined1 *)((long)puVar5 + -8);
    *(undefined8 *)((long)puVar5 + -8) = 0x1000b2;
LAB_001000b2:
    puVar7 = (undefined8 *)(puVar6 + -8);
    *(undefined8 *)(puVar6 + -8) = 0x1000ca;
  }
  else {
    unaff_RBX = param_3;
    unaff_R13 = param_2;
    if (param_3 == 0) goto LAB_0010009a;
    if (lRam0000000000100035 == 0) goto LAB_001000b2;
    puVar7 = auStack_58 + 3;
    auStack_58[3] = 0x10005b;
  }
  *(undefined8 *)((long)puVar7 + -8) = 0;
  *(undefined8 *)((long)puVar7 + -0x10) = 0;
  *(undefined8 *)((long)puVar7 + -0x18) = 0;
  *(undefined8 *)((long)puVar7 + -0x20) = *(undefined8 *)(unaff_RBX + 8);
  *(undefined8 *)((long)puVar7 + -0x28) = 1;
  *(undefined8 *)((long)puVar7 + -0x30) = 2;
  *(undefined8 *)((long)puVar7 + -0x38) = *(undefined8 *)(unaff_RBX + 0x10);
  *(undefined8 *)((long)puVar7 + -0x40) = 1;
  uVar1 = *(undefined8 *)(unaff_RBX + 0x18);
  *(undefined8 *)((long)puVar7 + -0x48) = 0x100100;
  uVar2 = *(undefined8 *)(unaff_RBX + 0x10);
  *(undefined8 *)((long)puVar7 + -0x10) = 0x100114;
  iVar3 = (*pcRam0000000000100114)(uVar2,unaff_R13,2,1,uVar1,2);
  *(int *)(unaff_RBX + 4) = iVar3;
  puVar4 = (undefined1 *)((long)puVar7 + -0x10);
  *(undefined8 *)((long)puVar7 + -0x10) = 0x100124;
  if (iVar3 == 0) {
    if (*(int *)((long)puVar7 + -0xc) != 0) goto LAB_00100061;
    iVar3 = 7;
  }
  puVar4 = (undefined1 *)((long)puVar7 + -0x18);
  *(undefined8 *)((long)puVar7 + -0x18) = 0x100142;
LAB_00100061:
  if (*(long *)(puVar4 + 8) != *(long *)(in_FS_OFFSET + 0x28)) {
    *(undefined1 **)(puVar4 + -8) = &LAB_0010014c;
                    /* WARNING: Bad instruction - Truncating control flow here */
    halt_baddata();
  }
  return iVar3;
}

