
void bc_multiply(bc_num n1,bc_num n2,bc_num *prod,int scale)

{
  int iVar1;
  int iVar2;
  int iVar3;
  bc_num pbVar4;
  char cVar5;
  int vlen;
  int ulen;
  long in_FS_OFFSET;
  bc_num pval;
  long local_40;
  
  local_40 = *(long *)(in_FS_OFFSET + 0x28);
  iVar2 = n1->n_scale;
  ulen = iVar2 + n1->n_len;
  iVar3 = n2->n_scale;
  vlen = iVar3 + n2->n_len;
  iVar1 = iVar2 + iVar3;
  if (scale <= iVar3) {
    scale = iVar3;
  }
  if (scale < iVar2) {
    scale = iVar2;
  }
  if (iVar1 < scale) {
    scale = iVar1;
  }
  _bc_rec_mul(n1,ulen,n2,vlen,&pval);
  pval->n_sign = (uint)(n1->n_sign != n2->n_sign);
  pval->n_value = pval->n_ptr;
  pval->n_len = (ulen + 1 + vlen) - iVar1;
  pval->n_scale = scale;
  _bc_rm_leading_zeros(pval);
  pbVar4 = pval;
  cVar5 = bc_is_zero(pval);
  if (cVar5 != '\0') {
    pbVar4->n_sign = PLUS;
  }
  bc_free_num(prod);
  *prod = pval;
  if (local_40 == *(long *)(in_FS_OFFSET + 0x28)) {
    return;
  }
                    /* WARNING: Subroutine does not return */
  __stack_chk_fail();
}



void FUN_00106e75(int *param_1,int *param_2,undefined8 *param_3,uint param_4)

{
  uint uVar1;
  uint uVar2;
  int iVar3;
  uint uVar4;
  int iVar5;
  uint *puVar6;
  char cVar7;
  long in_FS_OFFSET;
  uint *local_48;
  long local_40;
  
  local_40 = *(long *)(in_FS_OFFSET + 0x28);
  uVar2 = param_1[2];
  iVar3 = param_1[1];
  uVar4 = param_2[2];
  iVar5 = param_2[1];
  uVar1 = uVar2 + uVar4;
  if ((int)param_4 <= (int)uVar4) {
    param_4 = uVar4;
  }
  if ((int)param_4 < (int)uVar2) {
    param_4 = uVar2;
  }
  if ((int)uVar1 < (int)param_4) {
    param_4 = uVar1;
  }
  FUN_00106835(param_1,uVar2 + iVar3,param_2,uVar4 + iVar5,&local_48);
  *local_48 = (uint)(*param_1 != *param_2);
  *(undefined8 *)(local_48 + 8) = *(undefined8 *)(local_48 + 6);
  local_48[1] = (uVar2 + iVar3 + 1 + uVar4 + iVar5) - uVar1;
  local_48[2] = param_4;
  FUN_00105d4b();
  puVar6 = local_48;
  cVar7 = FUN_001066d4(local_48);
  if (cVar7 != '\0') {
    *puVar6 = 0;
  }
  FUN_00106604(param_3);
  *param_3 = local_48;
  if (local_40 == *(long *)(in_FS_OFFSET + 0x28)) {
    return;
  }
                    /* WARNING: Subroutine does not return */
  __stack_chk_fail();
}


PUSH R15
PUSH R14
PUSH R13
PUSH R12
PUSH RBP
PUSH RBX
SUB RSP,0x28
MOV R12,RDI
MOV RBP,RSI
MOV qword ptr [RSP + 0x8],RDX
MOV RAX,qword ptr FS:[0x28]
MOV qword ptr [RSP + 0x18],RAX
XOR EAX,EAX
MOV EDX,dword ptr [RDI + 0x8]
MOV R15D,EDX
ADD R15D,dword ptr [RDI + 0x4]
MOV EAX,dword ptr [RSI + 0x8]
MOV R14D,EAX
ADD R14D,dword ptr [RSI + 0x4]
LEA R13D,[RDX + RAX*0x1]
CMP EAX,ECX
CMOVGE ECX,EAX
MOV EBX,ECX
CMP ECX,EDX
CMOVL EBX,EDX
CMP EBX,R13D
CMOVG EBX,R13D
LEA R8,[RSP + 0x10]
MOV ECX,R14D
MOV RDX,RSI
MOV ESI,R15D
CALL 0x00106835
MOV EAX,dword ptr [RBP]
CMP dword ptr [R12],EAX
SETNZ DL
MOVZX EDX,DL
MOV RAX,qword ptr [RSP + 0x10]
MOV dword ptr [RAX],EDX
MOV RAX,qword ptr [RSP + 0x10]
MOV RDX,qword ptr [RAX + 0x18]
MOV qword ptr [RAX + 0x20],RDX
LEA EDX,[R15 + R14*0x1 + 0x1]
SUB EDX,R13D
MOV dword ptr [RAX + 0x4],EDX
MOV RDI,qword ptr [RSP + 0x10]
MOV dword ptr [RDI + 0x8],EBX
CALL 0x00105d4b
MOV RBX,qword ptr [RSP + 0x10]
MOV RDI,RBX
CALL 0x001066d4
TEST AL,AL
JZ 0x00106f2c
MOV dword ptr [RBX],0x0
MOV RBX,qword ptr [RSP + 0x8]
MOV RDI,RBX
CALL 0x00106604
MOV RAX,qword ptr [RSP + 0x10]
MOV qword ptr [RBX],RAX
MOV RAX,qword ptr [RSP + 0x18]
XOR RAX,qword ptr FS:[0x28]
JNZ 0x00106f60
ADD RSP,0x28
POP RBX
POP RBP
POP R12
POP R13
POP R14
POP R15
RET
CALL 0x001020f0
(translation_unit "void FUN_00106e75(int *param_1,int *param_2,undefined8 *param_3,uint param_4)\n\n{\n  uint uVar1;\n  uint uVar2;\n  int iVar3;\n  uint uVar4;\n  int iVar5;\n  uint *puVar6;\n  char cVar7;\n  long in_FS_OFFSET;\n  uint *local_48;\n  long local_40;\n  \n  local_40 = *(long *)(in_FS_OFFSET + 0x28);\n  uVar2 = param_1[2];\n  iVar3 = param_1[1];\n  uVar4 = param_2[2];\n  iVar5 = param_2[1];\n  uVar1 = uVar2 + uVar4;\n  if ((int)param_4 <= (int)uVar4) {\n    param_4 = uVar4;\n  }\n  if ((int)param_4 < (int)uVar2) {\n    param_4 = uVar2;\n  }\n  if ((int)uVar1 < (int)param_4) {\n    param_4 = uVar1;\n  }\n  FUN_00106835(param_1,uVar2 + iVar3,param_2,uVar4 + iVar5,&local_48);\n  *local_48 = (uint)(*param_1 != *param_2);\n  *(undefined8 *)(local_48 + 8) = *(undefined8 *)(local_48 + 6);\n  local_48[1] = (uVar2 + iVar3 + 1 + uVar4 + iVar5) - uVar1;\n  local_48[2] = param_4;\n  FUN_00105d4b();\n  puVar6 = local_48;\n  cVar7 = FUN_001066d4(local_48);\n  if (cVar7 != '\0') {\n    *puVar6 = 0;\n  }\n  FUN_00106604(param_3);\n  *param_3 = local_48;\n  if (local_40 == *(long *)(in_FS_OFFSET + 0x28)) {\n    return;\n  }\n                    /* WARNING: Subroutine does not return */\n  __stack_chk_fail();\n}\n\n" (function_definition "void FUN_00106e75(int *param_1,int *param_2,undefined8 *param_3,uint param_4)\n\n{\n  uint uVar1;\n  uint uVar2;\n  int iVar3;\n  uint uVar4;\n  int iVar5;\n  uint *puVar6;\n  char cVar7;\n  long in_FS_OFFSET;\n  uint *local_48;\n  long local_40;\n  \n  local_40 = *(long *)(in_FS_OFFSET + 0x28);\n  uVar2 = param_1[2];\n  iVar3 = param_1[1];\n  uVar4 = param_2[2];\n  iVar5 = param_2[1];\n  uVar1 = uVar2 + uVar4;\n  if ((int)param_4 <= (int)uVar4) {\n    param_4 = uVar4;\n  }\n  if ((int)param_4 < (int)uVar2) {\n    param_4 = uVar2;\n  }\n  if ((int)uVar1 < (int)param_4) {\n    param_4 = uVar1;\n  }\n  FUN_00106835(param_1,uVar2 + iVar3,param_2,uVar4 + iVar5,&local_48);\n  *local_48 = (uint)(*param_1 != *param_2);\n  *(undefined8 *)(local_48 + 8) = *(undefined8 *)(local_48 + 6);\n  local_48[1] = (uVar2 + iVar3 + 1 + uVar4 + iVar5) - uVar1;\n  local_48[2] = param_4;\n  FUN_00105d4b();\n  puVar6 = local_48;\n  cVar7 = FUN_001066d4(local_48);\n  if (cVar7 != '\0') {\n    *puVar6 = 0;\n  }\n  FUN_00106604(param_3);\n  *param_3 = local_48;\n  if (local_40 == *(long *)(in_FS_OFFSET + 0x28)) {\n    return;\n  }\n                    /* WARNING: Subroutine does not return */\n  __stack_chk_fail();\n}" primitive_type (function_declarator "FUN_00106e75(int *param_1,int *param_2,undefined8 *param_3,uint param_4)" identifier (parameter_list "(int *param_1,int *param_2,undefined8 *param_3,uint param_4)" ( (parameter_declaration "int *param_1" primitive_type (pointer_declarator "*param_1" * identifier)) , (parameter_declaration "int *param_2" primitive_type (pointer_declarator "*param_2" * identifier)) , (parameter_declaration "undefined8 *param_3" type_identifier (pointer_declarator "*param_3" * identifier)) , (parameter_declaration "uint param_4" type_identifier identifier) ))) (compound_statement "{\n  uint uVar1;\n  uint uVar2;\n  int iVar3;\n  uint uVar4;\n  int iVar5;\n  uint *puVar6;\n  char cVar7;\n  long in_FS_OFFSET;\n  uint *local_48;\n  long local_40;\n  \n  local_40 = *(long *)(in_FS_OFFSET + 0x28);\n  uVar2 = param_1[2];\n  iVar3 = param_1[1];\n  uVar4 = param_2[2];\n  iVar5 = param_2[1];\n  uVar1 = uVar2 + uVar4;\n  if ((int)param_4 <= (int)uVar4) {\n    param_4 = uVar4;\n  }\n  if ((int)param_4 < (int)uVar2) {\n    param_4 = uVar2;\n  }\n  if ((int)uVar1 < (int)param_4) {\n    param_4 = uVar1;\n  }\n  FUN_00106835(param_1,uVar2 + iVar3,param_2,uVar4 + iVar5,&local_48);\n  *local_48 = (uint)(*param_1 != *param_2);\n  *(undefined8 *)(local_48 + 8) = *(undefined8 *)(local_48 + 6);\n  local_48[1] = (uVar2 + iVar3 + 1 + uVar4 + iVar5) - uVar1;\n  local_48[2] = param_4;\n  FUN_00105d4b();\n  puVar6 = local_48;\n  cVar7 = FUN_001066d4(local_48);\n  if (cVar7 != '\0') {\n    *puVar6 = 0;\n  }\n  FUN_00106604(param_3);\n  *param_3 = local_48;\n  if (local_40 == *(long *)(in_FS_OFFSET + 0x28)) {\n    return;\n  }\n                    /* WARNING: Subroutine does not return */\n  __stack_chk_fail();\n}" { (declaration "uint uVar1;" type_identifier identifier ;) (declaration "uint uVar2;" type_identifier identifier ;) (declaration "int iVar3;" primitive_type identifier ;) (declaration "uint uVar4;" type_identifier identifier ;) (declaration "int iVar5;" primitive_type identifier ;) (declaration "uint *puVar6;" type_identifier (pointer_declarator "*puVar6" * identifier) ;) (declaration "char cVar7;" primitive_type identifier ;) (declaration "long in_FS_OFFSET;" (sized_type_specifier "long" long) identifier ;) (declaration "uint *local_48;" type_identifier (pointer_declarator "*local_48" * identifier) ;) (declaration "long local_40;" (sized_type_specifier "long" long) identifier ;) (expression_statement "local_40 = *(long *)(in_FS_OFFSET + 0x28);" (assignment_expression "local_40 = *(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) ))))) ;) (expression_statement "uVar2 = param_1[2];" (assignment_expression "uVar2 = param_1[2]" identifier = (subscript_expression "param_1[2]" identifier [ number_literal ])) ;) (expression_statement "iVar3 = param_1[1];" (assignment_expression "iVar3 = param_1[1]" identifier = (subscript_expression "param_1[1]" identifier [ number_literal ])) ;) (expression_statement "uVar4 = param_2[2];" (assignment_expression "uVar4 = param_2[2]" identifier = (subscript_expression "param_2[2]" identifier [ number_literal ])) ;) (expression_statement "iVar5 = param_2[1];" (assignment_expression "iVar5 = param_2[1]" identifier = (subscript_expression "param_2[1]" identifier [ number_literal ])) ;) (expression_statement "uVar1 = uVar2 + uVar4;" (assignment_expression "uVar1 = uVar2 + uVar4" identifier = (binary_expression "uVar2 + uVar4" identifier + identifier)) ;) (if_statement "if ((int)param_4 <= (int)uVar4) {\n    param_4 = uVar4;\n  }" if (parenthesized_expression "((int)param_4 <= (int)uVar4)" ( (binary_expression "(int)param_4 <= (int)uVar4" (cast_expression "(int)param_4" ( (type_descriptor "int" primitive_type) ) identifier) <= (cast_expression "(int)uVar4" ( (type_descriptor "int" primitive_type) ) identifier)) )) (compound_statement "{\n    param_4 = uVar4;\n  }" { (expression_statement "param_4 = uVar4;" (assignment_expression "param_4 = uVar4" identifier = identifier) ;) })) (if_statement "if ((int)param_4 < (int)uVar2) {\n    param_4 = uVar2;\n  }" if (parenthesized_expression "((int)param_4 < (int)uVar2)" ( (binary_expression "(int)param_4 < (int)uVar2" (cast_expression "(int)param_4" ( (type_descriptor "int" primitive_type) ) identifier) < (cast_expression "(int)uVar2" ( (type_descriptor "int" primitive_type) ) identifier)) )) (compound_statement "{\n    param_4 = uVar2;\n  }" { (expression_statement "param_4 = uVar2;" (assignment_expression "param_4 = uVar2" identifier = identifier) ;) })) (if_statement "if ((int)uVar1 < (int)param_4) {\n    param_4 = uVar1;\n  }" if (parenthesized_expression "((int)uVar1 < (int)param_4)" ( (binary_expression "(int)uVar1 < (int)param_4" (cast_expression "(int)uVar1" ( (type_descriptor "int" primitive_type) ) identifier) < (cast_expression "(int)param_4" ( (type_descriptor "int" primitive_type) ) identifier)) )) (compound_statement "{\n    param_4 = uVar1;\n  }" { (expression_statement "param_4 = uVar1;" (assignment_expression "param_4 = uVar1" identifier = identifier) ;) })) (expression_statement "FUN_00106835(param_1,uVar2 + iVar3,param_2,uVar4 + iVar5,&local_48);" (call_expression "FUN_00106835(param_1,uVar2 + iVar3,param_2,uVar4 + iVar5,&local_48)" identifier (argument_list "(param_1,uVar2 + iVar3,param_2,uVar4 + iVar5,&local_48)" ( identifier , (binary_expression "uVar2 + iVar3" identifier + identifier) , identifier , (binary_expression "uVar4 + iVar5" identifier + identifier) , (pointer_expression "&local_48" & identifier) ))) ;) (expression_statement "*local_48 = (uint)(*param_1 != *param_2);" (assignment_expression "*local_48 = (uint)(*param_1 != *param_2)" (pointer_expression "*local_48" * identifier) = (call_expression "(uint)(*param_1 != *param_2)" (parenthesized_expression "(uint)" ( identifier )) (argument_list "(*param_1 != *param_2)" ( (binary_expression "*param_1 != *param_2" (pointer_expression "*param_1" * identifier) != (pointer_expression "*param_2" * identifier)) )))) ;) (expression_statement "*(undefined8 *)(local_48 + 8) = *(undefined8 *)(local_48 + 6);" (assignment_expression "*(undefined8 *)(local_48 + 8) = *(undefined8 *)(local_48 + 6)" (pointer_expression "*(undefined8 *)(local_48 + 8)" * (cast_expression "(undefined8 *)(local_48 + 8)" ( (type_descriptor "undefined8 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(local_48 + 8)" ( (binary_expression "local_48 + 8" identifier + number_literal) )))) = (pointer_expression "*(undefined8 *)(local_48 + 6)" * (cast_expression "(undefined8 *)(local_48 + 6)" ( (type_descriptor "undefined8 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(local_48 + 6)" ( (binary_expression "local_48 + 6" identifier + number_literal) ))))) ;) (expression_statement "local_48[1] = (uVar2 + iVar3 + 1 + uVar4 + iVar5) - uVar1;" (assignment_expression "local_48[1] = (uVar2 + iVar3 + 1 + uVar4 + iVar5) - uVar1" (subscript_expression "local_48[1]" identifier [ number_literal ]) = (binary_expression "(uVar2 + iVar3 + 1 + uVar4 + iVar5) - uVar1" (parenthesized_expression "(uVar2 + iVar3 + 1 + uVar4 + iVar5)" ( (binary_expression "uVar2 + iVar3 + 1 + uVar4 + iVar5" (binary_expression "uVar2 + iVar3 + 1 + uVar4" (binary_expression "uVar2 + iVar3 + 1" (binary_expression "uVar2 + iVar3" identifier + identifier) + number_literal) + identifier) + identifier) )) - identifier)) ;) (expression_statement "local_48[2] = param_4;" (assignment_expression "local_48[2] = param_4" (subscript_expression "local_48[2]" identifier [ number_literal ]) = identifier) ;) (expression_statement "FUN_00105d4b();" (call_expression "FUN_00105d4b()" identifier (argument_list "()" ( ))) ;) (expression_statement "puVar6 = local_48;" (assignment_expression "puVar6 = local_48" identifier = identifier) ;) (expression_statement "cVar7 = FUN_001066d4(local_48);" (assignment_expression "cVar7 = FUN_001066d4(local_48)" identifier = (call_expression "FUN_001066d4(local_48)" identifier (argument_list "(local_48)" ( identifier )))) ;) (if_statement "if (cVar7 != '\0') {\n    *puVar6 = 0;\n  }" if (parenthesized_expression "(cVar7 != '\0')" ( (binary_expression "cVar7 != '\0'" identifier != (char_literal "'\0'" ' escape_sequence ')) )) (compound_statement "{\n    *puVar6 = 0;\n  }" { (expression_statement "*puVar6 = 0;" (assignment_expression "*puVar6 = 0" (pointer_expression "*puVar6" * identifier) = number_literal) ;) })) (expression_statement "FUN_00106604(param_3);" (call_expression "FUN_00106604(param_3)" identifier (argument_list "(param_3)" ( identifier ))) ;) (expression_statement "*param_3 = local_48;" (assignment_expression "*param_3 = local_48" (pointer_expression "*param_3" * identifier) = identifier) ;) (if_statement "if (local_40 == *(long *)(in_FS_OFFSET + 0x28)) {\n    return;\n  }" if (parenthesized_expression "(local_40 == *(long *)(in_FS_OFFSET + 0x28))" ( (binary_expression "local_40 == *(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;\n  }" { (return_statement "return;" return ;) })) comment (expression_statement "__stack_chk_fail();" (call_expression "__stack_chk_fail()" identifier (argument_list "()" ( ))) ;) })))
(translation_unit "void bc_multiply(bc_num n1,bc_num n2,bc_num *prod,int scale)\n\n{\n  int iVar1;\n  int iVar2;\n  int iVar3;\n  bc_num pbVar4;\n  char cVar5;\n  int vlen;\n  int ulen;\n  long in_FS_OFFSET;\n  bc_num pval;\n  long local_40;\n  \n  local_40 = *(long *)(in_FS_OFFSET + 0x28);\n  iVar2 = n1->n_scale;\n  ulen = iVar2 + n1->n_len;\n  iVar3 = n2->n_scale;\n  vlen = iVar3 + n2->n_len;\n  iVar1 = iVar2 + iVar3;\n  if (scale <= iVar3) {\n    scale = iVar3;\n  }\n  if (scale < iVar2) {\n    scale = iVar2;\n  }\n  if (iVar1 < scale) {\n    scale = iVar1;\n  }\n  _bc_rec_mul(n1,ulen,n2,vlen,&pval);\n  pval->n_sign = (uint)(n1->n_sign != n2->n_sign);\n  pval->n_value = pval->n_ptr;\n  pval->n_len = (ulen + 1 + vlen) - iVar1;\n  pval->n_scale = scale;\n  _bc_rm_leading_zeros(pval);\n  pbVar4 = pval;\n  cVar5 = bc_is_zero(pval);\n  if (cVar5 != '\0') {\n    pbVar4->n_sign = PLUS;\n  }\n  bc_free_num(prod);\n  *prod = pval;\n  if (local_40 == *(long *)(in_FS_OFFSET + 0x28)) {\n    return;\n  }\n                    /* WARNING: Subroutine does not return */\n  __stack_chk_fail();\n}\n\n" (function_definition "void bc_multiply(bc_num n1,bc_num n2,bc_num *prod,int scale)\n\n{\n  int iVar1;\n  int iVar2;\n  int iVar3;\n  bc_num pbVar4;\n  char cVar5;\n  int vlen;\n  int ulen;\n  long in_FS_OFFSET;\n  bc_num pval;\n  long local_40;\n  \n  local_40 = *(long *)(in_FS_OFFSET + 0x28);\n  iVar2 = n1->n_scale;\n  ulen = iVar2 + n1->n_len;\n  iVar3 = n2->n_scale;\n  vlen = iVar3 + n2->n_len;\n  iVar1 = iVar2 + iVar3;\n  if (scale <= iVar3) {\n    scale = iVar3;\n  }\n  if (scale < iVar2) {\n    scale = iVar2;\n  }\n  if (iVar1 < scale) {\n    scale = iVar1;\n  }\n  _bc_rec_mul(n1,ulen,n2,vlen,&pval);\n  pval->n_sign = (uint)(n1->n_sign != n2->n_sign);\n  pval->n_value = pval->n_ptr;\n  pval->n_len = (ulen + 1 + vlen) - iVar1;\n  pval->n_scale = scale;\n  _bc_rm_leading_zeros(pval);\n  pbVar4 = pval;\n  cVar5 = bc_is_zero(pval);\n  if (cVar5 != '\0') {\n    pbVar4->n_sign = PLUS;\n  }\n  bc_free_num(prod);\n  *prod = pval;\n  if (local_40 == *(long *)(in_FS_OFFSET + 0x28)) {\n    return;\n  }\n                    /* WARNING: Subroutine does not return */\n  __stack_chk_fail();\n}" primitive_type (function_declarator "bc_multiply(bc_num n1,bc_num n2,bc_num *prod,int scale)" identifier (parameter_list "(bc_num n1,bc_num n2,bc_num *prod,int scale)" ( (parameter_declaration "bc_num n1" type_identifier identifier) , (parameter_declaration "bc_num n2" type_identifier identifier) , (parameter_declaration "bc_num *prod" type_identifier (pointer_declarator "*prod" * identifier)) , (parameter_declaration "int scale" primitive_type identifier) ))) (compound_statement "{\n  int iVar1;\n  int iVar2;\n  int iVar3;\n  bc_num pbVar4;\n  char cVar5;\n  int vlen;\n  int ulen;\n  long in_FS_OFFSET;\n  bc_num pval;\n  long local_40;\n  \n  local_40 = *(long *)(in_FS_OFFSET + 0x28);\n  iVar2 = n1->n_scale;\n  ulen = iVar2 + n1->n_len;\n  iVar3 = n2->n_scale;\n  vlen = iVar3 + n2->n_len;\n  iVar1 = iVar2 + iVar3;\n  if (scale <= iVar3) {\n    scale = iVar3;\n  }\n  if (scale < iVar2) {\n    scale = iVar2;\n  }\n  if (iVar1 < scale) {\n    scale = iVar1;\n  }\n  _bc_rec_mul(n1,ulen,n2,vlen,&pval);\n  pval->n_sign = (uint)(n1->n_sign != n2->n_sign);\n  pval->n_value = pval->n_ptr;\n  pval->n_len = (ulen + 1 + vlen) - iVar1;\n  pval->n_scale = scale;\n  _bc_rm_leading_zeros(pval);\n  pbVar4 = pval;\n  cVar5 = bc_is_zero(pval);\n  if (cVar5 != '\0') {\n    pbVar4->n_sign = PLUS;\n  }\n  bc_free_num(prod);\n  *prod = pval;\n  if (local_40 == *(long *)(in_FS_OFFSET + 0x28)) {\n    return;\n  }\n                    /* WARNING: Subroutine does not return */\n  __stack_chk_fail();\n}" { (declaration "int iVar1;" primitive_type identifier ;) (declaration "int iVar2;" primitive_type identifier ;) (declaration "int iVar3;" primitive_type identifier ;) (declaration "bc_num pbVar4;" type_identifier identifier ;) (declaration "char cVar5;" primitive_type identifier ;) (declaration "int vlen;" primitive_type identifier ;) (declaration "int ulen;" primitive_type identifier ;) (declaration "long in_FS_OFFSET;" (sized_type_specifier "long" long) identifier ;) (declaration "bc_num pval;" type_identifier identifier ;) (declaration "long local_40;" (sized_type_specifier "long" long) identifier ;) (expression_statement "local_40 = *(long *)(in_FS_OFFSET + 0x28);" (assignment_expression "local_40 = *(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) ))))) ;) (expression_statement "iVar2 = n1->n_scale;" (assignment_expression "iVar2 = n1->n_scale" identifier = (field_expression "n1->n_scale" identifier -> field_identifier)) ;) (expression_statement "ulen = iVar2 + n1->n_len;" (assignment_expression "ulen = iVar2 + n1->n_len" identifier = (binary_expression "iVar2 + n1->n_len" identifier + (field_expression "n1->n_len" identifier -> field_identifier))) ;) (expression_statement "iVar3 = n2->n_scale;" (assignment_expression "iVar3 = n2->n_scale" identifier = (field_expression "n2->n_scale" identifier -> field_identifier)) ;) (expression_statement "vlen = iVar3 + n2->n_len;" (assignment_expression "vlen = iVar3 + n2->n_len" identifier = (binary_expression "iVar3 + n2->n_len" identifier + (field_expression "n2->n_len" identifier -> field_identifier))) ;) (expression_statement "iVar1 = iVar2 + iVar3;" (assignment_expression "iVar1 = iVar2 + iVar3" identifier = (binary_expression "iVar2 + iVar3" identifier + identifier)) ;) (if_statement "if (scale <= iVar3) {\n    scale = iVar3;\n  }" if (parenthesized_expression "(scale <= iVar3)" ( (binary_expression "scale <= iVar3" identifier <= identifier) )) (compound_statement "{\n    scale = iVar3;\n  }" { (expression_statement "scale = iVar3;" (assignment_expression "scale = iVar3" identifier = identifier) ;) })) (if_statement "if (scale < iVar2) {\n    scale = iVar2;\n  }" if (parenthesized_expression "(scale < iVar2)" ( (binary_expression "scale < iVar2" identifier < identifier) )) (compound_statement "{\n    scale = iVar2;\n  }" { (expression_statement "scale = iVar2;" (assignment_expression "scale = iVar2" identifier = identifier) ;) })) (if_statement "if (iVar1 < scale) {\n    scale = iVar1;\n  }" if (parenthesized_expression "(iVar1 < scale)" ( (binary_expression "iVar1 < scale" identifier < identifier) )) (compound_statement "{\n    scale = iVar1;\n  }" { (expression_statement "scale = iVar1;" (assignment_expression "scale = iVar1" identifier = identifier) ;) })) (expression_statement "_bc_rec_mul(n1,ulen,n2,vlen,&pval);" (call_expression "_bc_rec_mul(n1,ulen,n2,vlen,&pval)" identifier (argument_list "(n1,ulen,n2,vlen,&pval)" ( identifier , identifier , identifier , identifier , (pointer_expression "&pval" & identifier) ))) ;) (expression_statement "pval->n_sign = (uint)(n1->n_sign != n2->n_sign);" (assignment_expression "pval->n_sign = (uint)(n1->n_sign != n2->n_sign)" (field_expression "pval->n_sign" identifier -> field_identifier) = (call_expression "(uint)(n1->n_sign != n2->n_sign)" (parenthesized_expression "(uint)" ( identifier )) (argument_list "(n1->n_sign != n2->n_sign)" ( (binary_expression "n1->n_sign != n2->n_sign" (field_expression "n1->n_sign" identifier -> field_identifier) != (field_expression "n2->n_sign" identifier -> field_identifier)) )))) ;) (expression_statement "pval->n_value = pval->n_ptr;" (assignment_expression "pval->n_value = pval->n_ptr" (field_expression "pval->n_value" identifier -> field_identifier) = (field_expression "pval->n_ptr" identifier -> field_identifier)) ;) (expression_statement "pval->n_len = (ulen + 1 + vlen) - iVar1;" (assignment_expression "pval->n_len = (ulen + 1 + vlen) - iVar1" (field_expression "pval->n_len" identifier -> field_identifier) = (binary_expression "(ulen + 1 + vlen) - iVar1" (parenthesized_expression "(ulen + 1 + vlen)" ( (binary_expression "ulen + 1 + vlen" (binary_expression "ulen + 1" identifier + number_literal) + identifier) )) - identifier)) ;) (expression_statement "pval->n_scale = scale;" (assignment_expression "pval->n_scale = scale" (field_expression "pval->n_scale" identifier -> field_identifier) = identifier) ;) (expression_statement "_bc_rm_leading_zeros(pval);" (call_expression "_bc_rm_leading_zeros(pval)" identifier (argument_list "(pval)" ( identifier ))) ;) (expression_statement "pbVar4 = pval;" (assignment_expression "pbVar4 = pval" identifier = identifier) ;) (expression_statement "cVar5 = bc_is_zero(pval);" (assignment_expression "cVar5 = bc_is_zero(pval)" identifier = (call_expression "bc_is_zero(pval)" identifier (argument_list "(pval)" ( identifier )))) ;) (if_statement "if (cVar5 != '\0') {\n    pbVar4->n_sign = PLUS;\n  }" if (parenthesized_expression "(cVar5 != '\0')" ( (binary_expression "cVar5 != '\0'" identifier != (char_literal "'\0'" ' escape_sequence ')) )) (compound_statement "{\n    pbVar4->n_sign = PLUS;\n  }" { (expression_statement "pbVar4->n_sign = PLUS;" (assignment_expression "pbVar4->n_sign = PLUS" (field_expression "pbVar4->n_sign" identifier -> field_identifier) = identifier) ;) })) (expression_statement "bc_free_num(prod);" (call_expression "bc_free_num(prod)" identifier (argument_list "(prod)" ( identifier ))) ;) (expression_statement "*prod = pval;" (assignment_expression "*prod = pval" (pointer_expression "*prod" * identifier) = identifier) ;) (if_statement "if (local_40 == *(long *)(in_FS_OFFSET + 0x28)) {\n    return;\n  }" if (parenthesized_expression "(local_40 == *(long *)(in_FS_OFFSET + 0x28))" ( (binary_expression "local_40 == *(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;\n  }" { (return_statement "return;" return ;) })) comment (expression_statement "__stack_chk_fail();" (call_expression "__stack_chk_fail()" identifier (argument_list "()" ( ))) ;) })))
(translation_unit "void FUN_00106e75(int *param_1,int *param_2,undefined8 *param_3,uint param_4)\n\n{\n  uint uVar1;\n  uint uVar2;\n  int iVar3;\n  uint uVar4;\n  int iVar5;\n  uint *puVar6;\n  char cVar7;\n  long in_FS_OFFSET;\n  uint *local_48;\n  long local_40;\n  \n  local_40 = *(long *)(in_FS_OFFSET + 0x28);\n  uVar2 = param_1[2];\n  iVar3 = param_1[1];\n  uVar4 = param_2[2];\n  iVar5 = param_2[1];\n  uVar1 = uVar2 + uVar4;\n  if ((int)param_4 <= (int)uVar4) {\n    param_4 = uVar4;\n  }\n  if ((int)param_4 < (int)uVar2) {\n    param_4 = uVar2;\n  }\n  if ((int)uVar1 < (int)param_4) {\n    param_4 = uVar1;\n  }\n  FUN_00106835(param_1,uVar2 + iVar3,param_2,uVar4 + iVar5,&local_48);\n  *local_48 = (uint)(*param_1 != *param_2);\n  *(undefined8 *)(local_48 + 8) = *(undefined8 *)(local_48 + 6);\n  local_48[1] = (uVar2 + iVar3 + 1 + uVar4 + iVar5) - uVar1;\n  local_48[2] = param_4;\n  FUN_00105d4b();\n  puVar6 = local_48;\n  cVar7 = FUN_001066d4(local_48);\n  if (cVar7 != '\0') {\n    *puVar6 = 0;\n  }\n  FUN_00106604(param_3);\n  *param_3 = local_48;\n  if (local_40 == *(long *)(in_FS_OFFSET + 0x28)) {\n    return;\n  }\n                    \n  __stack_chk_fail();\n}\n\n" (function_definition "void FUN_00106e75(int *param_1,int *param_2,undefined8 *param_3,uint param_4)\n\n{\n  uint uVar1;\n  uint uVar2;\n  int iVar3;\n  uint uVar4;\n  int iVar5;\n  uint *puVar6;\n  char cVar7;\n  long in_FS_OFFSET;\n  uint *local_48;\n  long local_40;\n  \n  local_40 = *(long *)(in_FS_OFFSET + 0x28);\n  uVar2 = param_1[2];\n  iVar3 = param_1[1];\n  uVar4 = param_2[2];\n  iVar5 = param_2[1];\n  uVar1 = uVar2 + uVar4;\n  if ((int)param_4 <= (int)uVar4) {\n    param_4 = uVar4;\n  }\n  if ((int)param_4 < (int)uVar2) {\n    param_4 = uVar2;\n  }\n  if ((int)uVar1 < (int)param_4) {\n    param_4 = uVar1;\n  }\n  FUN_00106835(param_1,uVar2 + iVar3,param_2,uVar4 + iVar5,&local_48);\n  *local_48 = (uint)(*param_1 != *param_2);\n  *(undefined8 *)(local_48 + 8) = *(undefined8 *)(local_48 + 6);\n  local_48[1] = (uVar2 + iVar3 + 1 + uVar4 + iVar5) - uVar1;\n  local_48[2] = param_4;\n  FUN_00105d4b();\n  puVar6 = local_48;\n  cVar7 = FUN_001066d4(local_48);\n  if (cVar7 != '\0') {\n    *puVar6 = 0;\n  }\n  FUN_00106604(param_3);\n  *param_3 = local_48;\n  if (local_40 == *(long *)(in_FS_OFFSET + 0x28)) {\n    return;\n  }\n                    \n  __stack_chk_fail();\n}" primitive_type (function_declarator "FUN_00106e75(int *param_1,int *param_2,undefined8 *param_3,uint param_4)" identifier (parameter_list "(int *param_1,int *param_2,undefined8 *param_3,uint param_4)" ( (parameter_declaration "int *param_1" primitive_type (pointer_declarator "*param_1" * identifier)) , (parameter_declaration "int *param_2" primitive_type (pointer_declarator "*param_2" * identifier)) , (parameter_declaration "undefined8 *param_3" type_identifier (pointer_declarator "*param_3" * identifier)) , (parameter_declaration "uint param_4" type_identifier identifier) ))) (compound_statement "{\n  uint uVar1;\n  uint uVar2;\n  int iVar3;\n  uint uVar4;\n  int iVar5;\n  uint *puVar6;\n  char cVar7;\n  long in_FS_OFFSET;\n  uint *local_48;\n  long local_40;\n  \n  local_40 = *(long *)(in_FS_OFFSET + 0x28);\n  uVar2 = param_1[2];\n  iVar3 = param_1[1];\n  uVar4 = param_2[2];\n  iVar5 = param_2[1];\n  uVar1 = uVar2 + uVar4;\n  if ((int)param_4 <= (int)uVar4) {\n    param_4 = uVar4;\n  }\n  if ((int)param_4 < (int)uVar2) {\n    param_4 = uVar2;\n  }\n  if ((int)uVar1 < (int)param_4) {\n    param_4 = uVar1;\n  }\n  FUN_00106835(param_1,uVar2 + iVar3,param_2,uVar4 + iVar5,&local_48);\n  *local_48 = (uint)(*param_1 != *param_2);\n  *(undefined8 *)(local_48 + 8) = *(undefined8 *)(local_48 + 6);\n  local_48[1] = (uVar2 + iVar3 + 1 + uVar4 + iVar5) - uVar1;\n  local_48[2] = param_4;\n  FUN_00105d4b();\n  puVar6 = local_48;\n  cVar7 = FUN_001066d4(local_48);\n  if (cVar7 != '\0') {\n    *puVar6 = 0;\n  }\n  FUN_00106604(param_3);\n  *param_3 = local_48;\n  if (local_40 == *(long *)(in_FS_OFFSET + 0x28)) {\n    return;\n  }\n                    \n  __stack_chk_fail();\n}" { (declaration "uint uVar1;" type_identifier identifier ;) (declaration "uint uVar2;" type_identifier identifier ;) (declaration "int iVar3;" primitive_type identifier ;) (declaration "uint uVar4;" type_identifier identifier ;) (declaration "int iVar5;" primitive_type identifier ;) (declaration "uint *puVar6;" type_identifier (pointer_declarator "*puVar6" * identifier) ;) (declaration "char cVar7;" primitive_type identifier ;) (declaration "long in_FS_OFFSET;" (sized_type_specifier "long" long) identifier ;) (declaration "uint *local_48;" type_identifier (pointer_declarator "*local_48" * identifier) ;) (declaration "long local_40;" (sized_type_specifier "long" long) identifier ;) (expression_statement "local_40 = *(long *)(in_FS_OFFSET + 0x28);" (assignment_expression "local_40 = *(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) ))))) ;) (expression_statement "uVar2 = param_1[2];" (assignment_expression "uVar2 = param_1[2]" identifier = (subscript_expression "param_1[2]" identifier [ number_literal ])) ;) (expression_statement "iVar3 = param_1[1];" (assignment_expression "iVar3 = param_1[1]" identifier = (subscript_expression "param_1[1]" identifier [ number_literal ])) ;) (expression_statement "uVar4 = param_2[2];" (assignment_expression "uVar4 = param_2[2]" identifier = (subscript_expression "param_2[2]" identifier [ number_literal ])) ;) (expression_statement "iVar5 = param_2[1];" (assignment_expression "iVar5 = param_2[1]" identifier = (subscript_expression "param_2[1]" identifier [ number_literal ])) ;) (expression_statement "uVar1 = uVar2 + uVar4;" (assignment_expression "uVar1 = uVar2 + uVar4" identifier = (binary_expression "uVar2 + uVar4" identifier + identifier)) ;) (if_statement "if ((int)param_4 <= (int)uVar4) {\n    param_4 = uVar4;\n  }" if (parenthesized_expression "((int)param_4 <= (int)uVar4)" ( (binary_expression "(int)param_4 <= (int)uVar4" (cast_expression "(int)param_4" ( (type_descriptor "int" primitive_type) ) identifier) <= (cast_expression "(int)uVar4" ( (type_descriptor "int" primitive_type) ) identifier)) )) (compound_statement "{\n    param_4 = uVar4;\n  }" { (expression_statement "param_4 = uVar4;" (assignment_expression "param_4 = uVar4" identifier = identifier) ;) })) (if_statement "if ((int)param_4 < (int)uVar2) {\n    param_4 = uVar2;\n  }" if (parenthesized_expression "((int)param_4 < (int)uVar2)" ( (binary_expression "(int)param_4 < (int)uVar2" (cast_expression "(int)param_4" ( (type_descriptor "int" primitive_type) ) identifier) < (cast_expression "(int)uVar2" ( (type_descriptor "int" primitive_type) ) identifier)) )) (compound_statement "{\n    param_4 = uVar2;\n  }" { (expression_statement "param_4 = uVar2;" (assignment_expression "param_4 = uVar2" identifier = identifier) ;) })) (if_statement "if ((int)uVar1 < (int)param_4) {\n    param_4 = uVar1;\n  }" if (parenthesized_expression "((int)uVar1 < (int)param_4)" ( (binary_expression "(int)uVar1 < (int)param_4" (cast_expression "(int)uVar1" ( (type_descriptor "int" primitive_type) ) identifier) < (cast_expression "(int)param_4" ( (type_descriptor "int" primitive_type) ) identifier)) )) (compound_statement "{\n    param_4 = uVar1;\n  }" { (expression_statement "param_4 = uVar1;" (assignment_expression "param_4 = uVar1" identifier = identifier) ;) })) (expression_statement "FUN_00106835(param_1,uVar2 + iVar3,param_2,uVar4 + iVar5,&local_48);" (call_expression "FUN_00106835(param_1,uVar2 + iVar3,param_2,uVar4 + iVar5,&local_48)" identifier (argument_list "(param_1,uVar2 + iVar3,param_2,uVar4 + iVar5,&local_48)" ( identifier , (binary_expression "uVar2 + iVar3" identifier + identifier) , identifier , (binary_expression "uVar4 + iVar5" identifier + identifier) , (pointer_expression "&local_48" & identifier) ))) ;) (expression_statement "*local_48 = (uint)(*param_1 != *param_2);" (assignment_expression "*local_48 = (uint)(*param_1 != *param_2)" (pointer_expression "*local_48" * identifier) = (call_expression "(uint)(*param_1 != *param_2)" (parenthesized_expression "(uint)" ( identifier )) (argument_list "(*param_1 != *param_2)" ( (binary_expression "*param_1 != *param_2" (pointer_expression "*param_1" * identifier) != (pointer_expression "*param_2" * identifier)) )))) ;) (expression_statement "*(undefined8 *)(local_48 + 8) = *(undefined8 *)(local_48 + 6);" (assignment_expression "*(undefined8 *)(local_48 + 8) = *(undefined8 *)(local_48 + 6)" (pointer_expression "*(undefined8 *)(local_48 + 8)" * (cast_expression "(undefined8 *)(local_48 + 8)" ( (type_descriptor "undefined8 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(local_48 + 8)" ( (binary_expression "local_48 + 8" identifier + number_literal) )))) = (pointer_expression "*(undefined8 *)(local_48 + 6)" * (cast_expression "(undefined8 *)(local_48 + 6)" ( (type_descriptor "undefined8 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(local_48 + 6)" ( (binary_expression "local_48 + 6" identifier + number_literal) ))))) ;) (expression_statement "local_48[1] = (uVar2 + iVar3 + 1 + uVar4 + iVar5) - uVar1;" (assignment_expression "local_48[1] = (uVar2 + iVar3 + 1 + uVar4 + iVar5) - uVar1" (subscript_expression "local_48[1]" identifier [ number_literal ]) = (binary_expression "(uVar2 + iVar3 + 1 + uVar4 + iVar5) - uVar1" (parenthesized_expression "(uVar2 + iVar3 + 1 + uVar4 + iVar5)" ( (binary_expression "uVar2 + iVar3 + 1 + uVar4 + iVar5" (binary_expression "uVar2 + iVar3 + 1 + uVar4" (binary_expression "uVar2 + iVar3 + 1" (binary_expression "uVar2 + iVar3" identifier + identifier) + number_literal) + identifier) + identifier) )) - identifier)) ;) (expression_statement "local_48[2] = param_4;" (assignment_expression "local_48[2] = param_4" (subscript_expression "local_48[2]" identifier [ number_literal ]) = identifier) ;) (expression_statement "FUN_00105d4b();" (call_expression "FUN_00105d4b()" identifier (argument_list "()" ( ))) ;) (expression_statement "puVar6 = local_48;" (assignment_expression "puVar6 = local_48" identifier = identifier) ;) (expression_statement "cVar7 = FUN_001066d4(local_48);" (assignment_expression "cVar7 = FUN_001066d4(local_48)" identifier = (call_expression "FUN_001066d4(local_48)" identifier (argument_list "(local_48)" ( identifier )))) ;) (if_statement "if (cVar7 != '\0') {\n    *puVar6 = 0;\n  }" if (parenthesized_expression "(cVar7 != '\0')" ( (binary_expression "cVar7 != '\0'" identifier != (char_literal "'\0'" ' escape_sequence ')) )) (compound_statement "{\n    *puVar6 = 0;\n  }" { (expression_statement "*puVar6 = 0;" (assignment_expression "*puVar6 = 0" (pointer_expression "*puVar6" * identifier) = number_literal) ;) })) (expression_statement "FUN_00106604(param_3);" (call_expression "FUN_00106604(param_3)" identifier (argument_list "(param_3)" ( identifier ))) ;) (expression_statement "*param_3 = local_48;" (assignment_expression "*param_3 = local_48" (pointer_expression "*param_3" * identifier) = identifier) ;) (if_statement "if (local_40 == *(long *)(in_FS_OFFSET + 0x28)) {\n    return;\n  }" if (parenthesized_expression "(local_40 == *(long *)(in_FS_OFFSET + 0x28))" ( (binary_expression "local_40 == *(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;\n  }" { (return_statement "return;" return ;) })) (expression_statement "__stack_chk_fail();" (call_expression "__stack_chk_fail()" identifier (argument_list "()" ( ))) ;) })))
(translation_unit (function_definition TYPE (function_declarator IDENT (parameter_list ( (parameter_declaration TYPE (pointer_declarator * IDENT)) , (parameter_declaration TYPE (pointer_declarator * IDENT)) , (parameter_declaration TYPE (pointer_declarator * IDENT)) , (parameter_declaration TYPE IDENT) ))) (compound_statement { (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE IDENT ;) (declaration (sized_type_specifier long) IDENT ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration (sized_type_specifier long) IDENT ;) (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor (sized_type_specifier long) (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) ;) (expression_statement (assignment_expression IDENT = (subscript_expression IDENT [ LIT ])) ;) (expression_statement (assignment_expression IDENT = (subscript_expression IDENT [ LIT ])) ;) (expression_statement (assignment_expression IDENT = (subscript_expression IDENT [ LIT ])) ;) (expression_statement (assignment_expression IDENT = (subscript_expression IDENT [ LIT ])) ;) (expression_statement (assignment_expression IDENT = (binary_expression IDENT + IDENT)) ;) (if_statement if (parenthesized_expression ( (binary_expression (cast_expression ( (type_descriptor TYPE) ) IDENT) <= (cast_expression ( (type_descriptor TYPE) ) IDENT)) )) (compound_statement { (expression_statement (assignment_expression IDENT = IDENT) ;) })) (if_statement if (parenthesized_expression ( (binary_expression (cast_expression ( (type_descriptor TYPE) ) IDENT) < (cast_expression ( (type_descriptor TYPE) ) IDENT)) )) (compound_statement { (expression_statement (assignment_expression IDENT = IDENT) ;) })) (if_statement if (parenthesized_expression ( (binary_expression (cast_expression ( (type_descriptor TYPE) ) IDENT) < (cast_expression ( (type_descriptor TYPE) ) IDENT)) )) (compound_statement { (expression_statement (assignment_expression IDENT = IDENT) ;) })) (expression_statement (call_expression IDENT (argument_list ( IDENT , (binary_expression IDENT + IDENT) , IDENT , (binary_expression IDENT + IDENT) , (pointer_expression & IDENT) ))) ;) (expression_statement (assignment_expression (pointer_expression * IDENT) = (call_expression (parenthesized_expression ( IDENT )) (argument_list ( (binary_expression (pointer_expression * IDENT) != (pointer_expression * IDENT)) )))) ;) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = (binary_expression (parenthesized_expression ( (binary_expression (binary_expression (binary_expression (binary_expression IDENT + IDENT) + LIT) + IDENT) + IDENT) )) - IDENT)) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = IDENT) ;) (expression_statement (call_expression IDENT (argument_list ( ))) ;) (expression_statement (assignment_expression IDENT = IDENT) ;) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( IDENT )))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT != (char_literal ' escape_sequence ')) )) (compound_statement { (expression_statement (assignment_expression (pointer_expression * IDENT) = LIT) ;) })) (expression_statement (call_expression IDENT (argument_list ( IDENT ))) ;) (expression_statement (assignment_expression (pointer_expression * IDENT) = IDENT) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT == (pointer_expression * (cast_expression ( (type_descriptor (sized_type_specifier long) (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) )) (compound_statement { (return_statement return ;) })) (expression_statement (call_expression IDENT (argument_list ( ))) ;) })))
(function_definition "void FUN_00106e75(int *param_1,int *param_2,undefined8 *param_3,uint param_4)\n\n{\n  uint uVar1;\n  uint uVar2;\n  int iVar3;\n  uint uVar4;\n  int iVar5;\n  uint *puVar6;\n  char cVar7;\n  long in_FS_OFFSET;\n  uint *local_48;\n  long local_40;\n  \n  local_40 = *(long *)(in_FS_OFFSET + 0x28);\n  uVar2 = param_1[2];\n  iVar3 = param_1[1];\n  uVar4 = param_2[2];\n  iVar5 = param_2[1];\n  uVar1 = uVar2 + uVar4;\n  if ((int)param_4 <= (int)uVar4) {\n    param_4 = uVar4;\n  }\n  if ((int)param_4 < (int)uVar2) {\n    param_4 = uVar2;\n  }\n  if ((int)uVar1 < (int)param_4) {\n    param_4 = uVar1;\n  }\n  FUN_00106835(param_1,uVar2 + iVar3,param_2,uVar4 + iVar5,&local_48);\n  *local_48 = (uint)(*param_1 != *param_2);\n  *(undefined8 *)(local_48 + 8) = *(undefined8 *)(local_48 + 6);\n  local_48[1] = (uVar2 + iVar3 + 1 + uVar4 + iVar5) - uVar1;\n  local_48[2] = param_4;\n  FUN_00105d4b();\n  puVar6 = local_48;\n  cVar7 = FUN_001066d4(local_48);\n  if (cVar7 != '\0') {\n    *puVar6 = 0;\n  }\n  FUN_00106604(param_3);\n  *param_3 = local_48;\n  if (local_40 == *(long *)(in_FS_OFFSET + 0x28)) {\n    return;\n  }\n                    \n  __stack_chk_fail();\n}" (primitive_type "void") (function_declarator "FUN_00106e75(int *param_1,int *param_2,undefined8 *param_3,uint param_4)" (identifier "FUN_00106e75") (parameter_list "(int *param_1,int *param_2,undefined8 *param_3,uint param_4)" (( "(") (parameter_declaration "int *param_1" (primitive_type "int") (pointer_declarator "*param_1" (* "*") (identifier "param_1"))) (, ",") (parameter_declaration "int *param_2" (primitive_type "int") (pointer_declarator "*param_2" (* "*") (identifier "param_2"))) (, ",") (parameter_declaration "undefined8 *param_3" (type_identifier "undefined8") (pointer_declarator "*param_3" (* "*") (identifier "param_3"))) (, ",") (parameter_declaration "uint param_4" (type_identifier "uint") (identifier "param_4")) () ")"))) (compound_statement "{\n  uint uVar1;\n  uint uVar2;\n  int iVar3;\n  uint uVar4;\n  int iVar5;\n  uint *puVar6;\n  char cVar7;\n  long in_FS_OFFSET;\n  uint *local_48;\n  long local_40;\n  \n  local_40 = *(long *)(in_FS_OFFSET + 0x28);\n  uVar2 = param_1[2];\n  iVar3 = param_1[1];\n  uVar4 = param_2[2];\n  iVar5 = param_2[1];\n  uVar1 = uVar2 + uVar4;\n  if ((int)param_4 <= (int)uVar4) {\n    param_4 = uVar4;\n  }\n  if ((int)param_4 < (int)uVar2) {\n    param_4 = uVar2;\n  }\n  if ((int)uVar1 < (int)param_4) {\n    param_4 = uVar1;\n  }\n  FUN_00106835(param_1,uVar2 + iVar3,param_2,uVar4 + iVar5,&local_48);\n  *local_48 = (uint)(*param_1 != *param_2);\n  *(undefined8 *)(local_48 + 8) = *(undefined8 *)(local_48 + 6);\n  local_48[1] = (uVar2 + iVar3 + 1 + uVar4 + iVar5) - uVar1;\n  local_48[2] = param_4;\n  FUN_00105d4b();\n  puVar6 = local_48;\n  cVar7 = FUN_001066d4(local_48);\n  if (cVar7 != '\0') {\n    *puVar6 = 0;\n  }\n  FUN_00106604(param_3);\n  *param_3 = local_48;\n  if (local_40 == *(long *)(in_FS_OFFSET + 0x28)) {\n    return;\n  }\n                    \n  __stack_chk_fail();\n}" ({ "{") (declaration "uint uVar1;" (type_identifier "uint") (identifier "uVar1") (; ";")) (declaration "uint uVar2;" (type_identifier "uint") (identifier "uVar2") (; ";")) (declaration "int iVar3;" (primitive_type "int") (identifier "iVar3") (; ";")) (declaration "uint uVar4;" (type_identifier "uint") (identifier "uVar4") (; ";")) (declaration "int iVar5;" (primitive_type "int") (identifier "iVar5") (; ";")) (declaration "uint *puVar6;" (type_identifier "uint") (pointer_declarator "*puVar6" (* "*") (identifier "puVar6")) (; ";")) (declaration "char cVar7;" (primitive_type "char") (identifier "cVar7") (; ";")) (declaration "long in_FS_OFFSET;" (sized_type_specifier "long" (long "long")) (identifier "in_FS_OFFSET") (; ";")) (declaration "uint *local_48;" (type_identifier "uint") (pointer_declarator "*local_48" (* "*") (identifier "local_48")) (; ";")) (declaration "long local_40;" (sized_type_specifier "long" (long "long")) (identifier "local_40") (; ";")) (expression_statement "local_40 = *(long *)(in_FS_OFFSET + 0x28);" (assignment_expression "local_40 = *(long *)(in_FS_OFFSET + 0x28)" (identifier "local_40") (= "=") (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")) () ")"))))) (; ";")) (expression_statement "uVar2 = param_1[2];" (assignment_expression "uVar2 = param_1[2]" (identifier "uVar2") (= "=") (subscript_expression "param_1[2]" (identifier "param_1") ([ "[") (number_literal "2") (] "]"))) (; ";")) (expression_statement "iVar3 = param_1[1];" (assignment_expression "iVar3 = param_1[1]" (identifier "iVar3") (= "=") (subscript_expression "param_1[1]" (identifier "param_1") ([ "[") (number_literal "1") (] "]"))) (; ";")) (expression_statement "uVar4 = param_2[2];" (assignment_expression "uVar4 = param_2[2]" (identifier "uVar4") (= "=") (subscript_expression "param_2[2]" (identifier "param_2") ([ "[") (number_literal "2") (] "]"))) (; ";")) (expression_statement "iVar5 = param_2[1];" (assignment_expression "iVar5 = param_2[1]" (identifier "iVar5") (= "=") (subscript_expression "param_2[1]" (identifier "param_2") ([ "[") (number_literal "1") (] "]"))) (; ";")) (expression_statement "uVar1 = uVar2 + uVar4;" (assignment_expression "uVar1 = uVar2 + uVar4" (identifier "uVar1") (= "=") (binary_expression "uVar2 + uVar4" (identifier "uVar2") (+ "+") (identifier "uVar4"))) (; ";")) (if_statement "if ((int)param_4 <= (int)uVar4) {\n    param_4 = uVar4;\n  }" (if "if") (parenthesized_expression "((int)param_4 <= (int)uVar4)" (( "(") (binary_expression "(int)param_4 <= (int)uVar4" (cast_expression "(int)param_4" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (identifier "param_4")) (<= "<=") (cast_expression "(int)uVar4" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (identifier "uVar4"))) () ")")) (compound_statement "{\n    param_4 = uVar4;\n  }" ({ "{") (expression_statement "param_4 = uVar4;" (assignment_expression "param_4 = uVar4" (identifier "param_4") (= "=") (identifier "uVar4")) (; ";")) (} "}"))) (if_statement "if ((int)param_4 < (int)uVar2) {\n    param_4 = uVar2;\n  }" (if "if") (parenthesized_expression "((int)param_4 < (int)uVar2)" (( "(") (binary_expression "(int)param_4 < (int)uVar2" (cast_expression "(int)param_4" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (identifier "param_4")) (< "<") (cast_expression "(int)uVar2" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (identifier "uVar2"))) () ")")) (compound_statement "{\n    param_4 = uVar2;\n  }" ({ "{") (expression_statement "param_4 = uVar2;" (assignment_expression "param_4 = uVar2" (identifier "param_4") (= "=") (identifier "uVar2")) (; ";")) (} "}"))) (if_statement "if ((int)uVar1 < (int)param_4) {\n    param_4 = uVar1;\n  }" (if "if") (parenthesized_expression "((int)uVar1 < (int)param_4)" (( "(") (binary_expression "(int)uVar1 < (int)param_4" (cast_expression "(int)uVar1" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (identifier "uVar1")) (< "<") (cast_expression "(int)param_4" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (identifier "param_4"))) () ")")) (compound_statement "{\n    param_4 = uVar1;\n  }" ({ "{") (expression_statement "param_4 = uVar1;" (assignment_expression "param_4 = uVar1" (identifier "param_4") (= "=") (identifier "uVar1")) (; ";")) (} "}"))) (expression_statement "FUN_00106835(param_1,uVar2 + iVar3,param_2,uVar4 + iVar5,&local_48);" (call_expression "FUN_00106835(param_1,uVar2 + iVar3,param_2,uVar4 + iVar5,&local_48)" (identifier "FUN_00106835") (argument_list "(param_1,uVar2 + iVar3,param_2,uVar4 + iVar5,&local_48)" (( "(") (identifier "param_1") (, ",") (binary_expression "uVar2 + iVar3" (identifier "uVar2") (+ "+") (identifier "iVar3")) (, ",") (identifier "param_2") (, ",") (binary_expression "uVar4 + iVar5" (identifier "uVar4") (+ "+") (identifier "iVar5")) (, ",") (pointer_expression "&local_48" (& "&") (identifier "local_48")) () ")"))) (; ";")) (expression_statement "*local_48 = (uint)(*param_1 != *param_2);" (assignment_expression "*local_48 = (uint)(*param_1 != *param_2)" (pointer_expression "*local_48" (* "*") (identifier "local_48")) (= "=") (call_expression "(uint)(*param_1 != *param_2)" (parenthesized_expression "(uint)" (( "(") (identifier "uint") () ")")) (argument_list "(*param_1 != *param_2)" (( "(") (binary_expression "*param_1 != *param_2" (pointer_expression "*param_1" (* "*") (identifier "param_1")) (!= "!=") (pointer_expression "*param_2" (* "*") (identifier "param_2"))) () ")")))) (; ";")) (expression_statement "*(undefined8 *)(local_48 + 8) = *(undefined8 *)(local_48 + 6);" (assignment_expression "*(undefined8 *)(local_48 + 8) = *(undefined8 *)(local_48 + 6)" (pointer_expression "*(undefined8 *)(local_48 + 8)" (* "*") (cast_expression "(undefined8 *)(local_48 + 8)" (( "(") (type_descriptor "undefined8 *" (type_identifier "undefined8") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(local_48 + 8)" (( "(") (binary_expression "local_48 + 8" (identifier "local_48") (+ "+") (number_literal "8")) () ")")))) (= "=") (pointer_expression "*(undefined8 *)(local_48 + 6)" (* "*") (cast_expression "(undefined8 *)(local_48 + 6)" (( "(") (type_descriptor "undefined8 *" (type_identifier "undefined8") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(local_48 + 6)" (( "(") (binary_expression "local_48 + 6" (identifier "local_48") (+ "+") (number_literal "6")) () ")"))))) (; ";")) (expression_statement "local_48[1] = (uVar2 + iVar3 + 1 + uVar4 + iVar5) - uVar1;" (assignment_expression "local_48[1] = (uVar2 + iVar3 + 1 + uVar4 + iVar5) - uVar1" (subscript_expression "local_48[1]" (identifier "local_48") ([ "[") (number_literal "1") (] "]")) (= "=") (binary_expression "(uVar2 + iVar3 + 1 + uVar4 + iVar5) - uVar1" (parenthesized_expression "(uVar2 + iVar3 + 1 + uVar4 + iVar5)" (( "(") (binary_expression "uVar2 + iVar3 + 1 + uVar4 + iVar5" (binary_expression "uVar2 + iVar3 + 1 + uVar4" (binary_expression "uVar2 + iVar3 + 1" (binary_expression "uVar2 + iVar3" (identifier "uVar2") (+ "+") (identifier "iVar3")) (+ "+") (number_literal "1")) (+ "+") (identifier "uVar4")) (+ "+") (identifier "iVar5")) () ")")) (- "-") (identifier "uVar1"))) (; ";")) (expression_statement "local_48[2] = param_4;" (assignment_expression "local_48[2] = param_4" (subscript_expression "local_48[2]" (identifier "local_48") ([ "[") (number_literal "2") (] "]")) (= "=") (identifier "param_4")) (; ";")) (expression_statement "FUN_00105d4b();" (call_expression "FUN_00105d4b()" (identifier "FUN_00105d4b") (argument_list "()" (( "(") () ")"))) (; ";")) (expression_statement "puVar6 = local_48;" (assignment_expression "puVar6 = local_48" (identifier "puVar6") (= "=") (identifier "local_48")) (; ";")) (expression_statement "cVar7 = FUN_001066d4(local_48);" (assignment_expression "cVar7 = FUN_001066d4(local_48)" (identifier "cVar7") (= "=") (call_expression "FUN_001066d4(local_48)" (identifier "FUN_001066d4") (argument_list "(local_48)" (( "(") (identifier "local_48") () ")")))) (; ";")) (if_statement "if (cVar7 != '\0') {\n    *puVar6 = 0;\n  }" (if "if") (parenthesized_expression "(cVar7 != '\0')" (( "(") (binary_expression "cVar7 != '\0'" (identifier "cVar7") (!= "!=") (char_literal "'\0'" (' "'") (escape_sequence "\0") (' "'"))) () ")")) (compound_statement "{\n    *puVar6 = 0;\n  }" ({ "{") (expression_statement "*puVar6 = 0;" (assignment_expression "*puVar6 = 0" (pointer_expression "*puVar6" (* "*") (identifier "puVar6")) (= "=") (number_literal "0")) (; ";")) (} "}"))) (expression_statement "FUN_00106604(param_3);" (call_expression "FUN_00106604(param_3)" (identifier "FUN_00106604") (argument_list "(param_3)" (( "(") (identifier "param_3") () ")"))) (; ";")) (expression_statement "*param_3 = local_48;" (assignment_expression "*param_3 = local_48" (pointer_expression "*param_3" (* "*") (identifier "param_3")) (= "=") (identifier "local_48")) (; ";")) (if_statement "if (local_40 == *(long *)(in_FS_OFFSET + 0x28)) {\n    return;\n  }" (if "if") (parenthesized_expression "(local_40 == *(long *)(in_FS_OFFSET + 0x28))" (( "(") (binary_expression "local_40 == *(long *)(in_FS_OFFSET + 0x28)" (identifier "local_40") (== "==") (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    return;\n  }" ({ "{") (return_statement "return;" (return "return") (; ";")) (} "}"))) (expression_statement "__stack_chk_fail();" (call_expression "__stack_chk_fail()" (identifier "__stack_chk_fail") (argument_list "()" (( "(") () ")"))) (; ";")) (} "}")))

void function_1(type_1 n1,type_1 n2,type_1 *prod,int var_4)

{
  int var_5;
  int var_2;
  int var_3;
  type_1 pbVar4;
  char var_11;
  int var_8;
  int var_7;
  long var_1;
  type_1 pval;
  long var_13;
  
  var_13 = *(long *)(var_1 + 0x28);
  var_2 = n1->n_scale;
  var_7 = var_2 + n1->n_len;
  var_3 = n2->n_scale;
  var_8 = var_3 + n2->n_len;
  var_5 = var_2 + var_3;
  if (var_4 <= var_3) {
    var_4 = var_3;
  }
  if (var_4 < var_2) {
    var_4 = var_2;
  }
  if (var_5 < var_4) {
    var_4 = var_5;
  }
  var_6(n1,var_7,n2,var_8,&pval);
  pval->n_sign = (uint)(n1->n_sign != n2->n_sign);
  pval->n_value = pval->n_ptr;
  pval->n_len = (var_7 + 1 + var_8) - var_5;
  pval->n_scale = var_4;
  var_9(pval);
  pbVar4 = pval;
  var_11 = var_10(pval);
  if (var_11 != '\0') {
    pbVar4->n_sign = PLUS;
  }
  var_12(prod);
  *prod = pval;
  if (var_13 == *(long *)(var_1 + 0x28)) {
    return;
  }
                    /* WARNING: Subroutine does not return */
  var_14();
}


(translation_unit (function_definition type: (primitive_type) declarator: (function_declarator declarator: (identifier) parameters: (parameter_list (parameter_declaration type: (primitive_type) declarator: (pointer_declarator declarator: (identifier))) (parameter_declaration type: (primitive_type) declarator: (pointer_declarator declarator: (identifier))) (parameter_declaration type: (type_identifier) declarator: (pointer_declarator declarator: (identifier))) (parameter_declaration type: (type_identifier) 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: (type_identifier) declarator: (identifier)) (declaration type: (primitive_type) declarator: (identifier)) (declaration type: (type_identifier) declarator: (pointer_declarator 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: (sized_type_specifier) declarator: (identifier)) (expression_statement (assignment_expression left: (identifier) 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))))))) (expression_statement (assignment_expression left: (identifier) right: (subscript_expression argument: (identifier) index: (number_literal)))) (expression_statement (assignment_expression left: (identifier) right: (subscript_expression argument: (identifier) index: (number_literal)))) (expression_statement (assignment_expression left: (identifier) right: (subscript_expression argument: (identifier) index: (number_literal)))) (expression_statement (assignment_expression left: (identifier) right: (subscript_expression argument: (identifier) index: (number_literal)))) (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (identifier) right: (identifier)))) (if_statement condition: (parenthesized_expression (binary_expression left: (cast_expression type: (type_descriptor type: (primitive_type)) value: (identifier)) right: (cast_expression type: (type_descriptor type: (primitive_type)) value: (identifier)))) consequence: (compound_statement (expression_statement (assignment_expression left: (identifier) right: (identifier))))) (if_statement condition: (parenthesized_expression (binary_expression left: (cast_expression type: (type_descriptor type: (primitive_type)) value: (identifier)) right: (cast_expression type: (type_descriptor type: (primitive_type)) value: (identifier)))) consequence: (compound_statement (expression_statement (assignment_expression left: (identifier) right: (identifier))))) (if_statement condition: (parenthesized_expression (binary_expression left: (cast_expression type: (type_descriptor type: (primitive_type)) value: (identifier)) right: (cast_expression type: (type_descriptor type: (primitive_type)) value: (identifier)))) consequence: (compound_statement (expression_statement (assignment_expression left: (identifier) right: (identifier))))) (expression_statement (call_expression function: (identifier) arguments: (argument_list (identifier) (binary_expression left: (identifier) right: (identifier)) (identifier) (binary_expression left: (identifier) right: (identifier)) (pointer_expression argument: (identifier))))) (expression_statement (assignment_expression left: (pointer_expression argument: (identifier)) right: (call_expression function: (parenthesized_expression (identifier)) arguments: (argument_list (binary_expression left: (pointer_expression argument: (identifier)) right: (pointer_expression argument: (identifier))))))) (expression_statement (assignment_expression left: (pointer_expression argument: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))))) right: (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: (subscript_expression argument: (identifier) index: (number_literal)) right: (binary_expression left: (parenthesized_expression (binary_expression left: (binary_expression left: (binary_expression left: (binary_expression left: (identifier) right: (identifier)) right: (number_literal)) right: (identifier)) right: (identifier))) right: (identifier)))) (expression_statement (assignment_expression left: (subscript_expression argument: (identifier) index: (number_literal)) right: (identifier))) (expression_statement (call_expression function: (identifier) arguments: (argument_list))) (expression_statement (assignment_expression left: (identifier) right: (identifier))) (expression_statement (assignment_expression left: (identifier) right: (call_expression function: (identifier) arguments: (argument_list (identifier))))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (char_literal (escape_sequence)))) consequence: (compound_statement (expression_statement (assignment_expression left: (pointer_expression argument: (identifier)) right: (number_literal))))) (expression_statement (call_expression function: (identifier) arguments: (argument_list (identifier)))) (expression_statement (assignment_expression left: (pointer_expression argument: (identifier)) right: (identifier))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) 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 (return_statement))) (expression_statement (call_expression function: (identifier) arguments: (argument_list))))))

void MASKED(int *param_1,int *param_2,undefined8 *param_3,uint param_4)

{
  uint uVar1;
  uint uVar2;
  int iVar3;
  uint uVar4;
  int iVar5;
  uint *puVar6;
  char cVar7;
  long in_FS_OFFSET;
  uint *local_48;
  long local_40;
  
  local_40 = *(long *)(in_FS_OFFSET + 0x28);
  uVar2 = param_1[2];
  iVar3 = param_1[1];
  uVar4 = param_2[2];
  iVar5 = param_2[1];
  uVar1 = uVar2 + uVar4;
  if ((int)param_4 <= (int)uVar4) {
    param_4 = uVar4;
  }
  if ((int)param_4 < (int)uVar2) {
    param_4 = uVar2;
  }
  if ((int)uVar1 < (int)param_4) {
    param_4 = uVar1;
  }
  FUN_00106835(param_1,uVar2 + iVar3,param_2,uVar4 + iVar5,&local_48);
  *local_48 = (uint)(*param_1 != *param_2);
  *(undefined8 *)(local_48 + 8) = *(undefined8 *)(local_48 + 6);
  local_48[1] = (uVar2 + iVar3 + 1 + uVar4 + iVar5) - uVar1;
  local_48[2] = param_4;
  FUN_00105d4b();
  puVar6 = local_48;
  cVar7 = FUN_001066d4(local_48);
  if (cVar7 != '\0') {
    *puVar6 = 0;
  }
  FUN_00106604(param_3);
  *param_3 = local_48;
  if (local_40 == *(long *)(in_FS_OFFSET + 0x28)) {
    return;
  }
                    /* WARNING: Subroutine does not return */
  __stack_chk_fail();
}

