
BcStatus zbc_num_s(BcNum *a,BcNum *b,BcNum *c,size_t sub)

{
  _Bool _Var1;
  ulong uVar2;
  ssize_t sVar3;
  ulong uVar4;
  BcNum *pBVar5;
  long lVar6;
  byte bVar7;
  
  if (a->len == 0) {
    bc_num_copy(c,b);
    if ((sub != 0) && (c->len != 0)) {
      c->neg = (_Bool)(c->neg ^ 1);
    }
  }
  else if (b->len == 0) {
    bc_num_copy(c,a);
  }
  else {
    _Var1 = a->neg;
    bVar7 = b->neg;
    b->neg = false;
    a->neg = false;
    sVar3 = bc_num_cmp(a,b);
    a->neg = _Var1;
    b->neg = (_Bool)bVar7;
    if (sVar3 == 0) {
      uVar4 = a->rdx;
      if (a->rdx <= b->rdx) {
        uVar4 = b->rdx;
      }
      c->len = 0;
      c->neg = false;
      c->rdx = uVar4;
    }
    else {
      if (sVar3 < 1) {
        pBVar5 = a;
        if (sub != 0) {
          bVar7 = bVar7 ^ 1;
        }
      }
      else {
        pBVar5 = b;
        b = a;
        bVar7 = a->neg;
      }
      bc_num_copy(c,b);
      c->neg = (_Bool)bVar7;
      uVar4 = c->rdx;
      uVar2 = pBVar5->rdx;
      lVar6 = uVar4 - uVar2;
      if (uVar4 < uVar2) {
        bc_num_extend(c,uVar2 - uVar4);
        lVar6 = 0;
      }
      bc_num_subArrays(c->num + lVar6,pBVar5->num,pBVar5->len);
      bc_num_clean(c);
    }
  }
  return BC_STATUS_SUCCESS;
}



undefined8 FUN_00113c9b(undefined8 *param_1,undefined8 *param_2,long *param_3,long param_4)

{
  undefined1 uVar1;
  ulong uVar2;
  long lVar3;
  ulong uVar4;
  undefined8 *puVar5;
  byte bVar6;
  
  if (param_1[2] == 0) {
    FUN_0011283a(param_3);
    if ((param_4 != 0) && (param_3[2] != 0)) {
      *(byte *)(param_3 + 4) = *(byte *)(param_3 + 4) ^ 1;
    }
  }
  else if (param_2[2] == 0) {
    FUN_0011283a(param_3,param_1);
  }
  else {
    uVar1 = *(undefined1 *)(param_1 + 4);
    bVar6 = *(byte *)(param_2 + 4);
    *(undefined1 *)(param_2 + 4) = 0;
    *(undefined1 *)(param_1 + 4) = 0;
    lVar3 = FUN_00111835();
    *(undefined1 *)(param_1 + 4) = uVar1;
    *(byte *)(param_2 + 4) = bVar6;
    if (lVar3 == 0) {
      uVar4 = param_1[1];
      if ((ulong)param_1[1] <= (ulong)param_2[1]) {
        uVar4 = param_2[1];
      }
      param_3[2] = 0;
      *(undefined1 *)(param_3 + 4) = 0;
      param_3[1] = uVar4;
    }
    else {
      if (lVar3 < 1) {
        puVar5 = param_1;
        if (param_4 != 0) {
          bVar6 = bVar6 ^ 1;
        }
      }
      else {
        puVar5 = param_2;
        param_2 = param_1;
        bVar6 = *(byte *)(param_1 + 4);
      }
      FUN_0011283a(param_3,param_2);
      *(byte *)(param_3 + 4) = bVar6;
      uVar4 = param_3[1];
      uVar2 = puVar5[1];
      lVar3 = uVar4 - uVar2;
      if (uVar4 < uVar2) {
        FUN_00112121(param_3,uVar2 - uVar4);
        lVar3 = 0;
      }
      FUN_001117c6(lVar3 + *param_3,*puVar5,puVar5[2]);
      FUN_00111983(param_3);
    }
  }
  return 0;
}


PUSH R15
PUSH R14
PUSH R13
PUSH R12
PUSH RBP
PUSH RBX
SUB RSP,0x8
MOV R12,RSI
MOV RBX,RDX
MOV R14,RCX
CMP qword ptr [RDI + 0x10],0x0
JNZ 0x00113ce5
MOV RDI,RDX
CALL 0x0011283a
TEST R14,R14
JZ 0x00113cd1
CMP qword ptr [RBX + 0x10],0x0
JZ 0x00113cd1
XOR byte ptr [RBX + 0x20],0x1
MOV EAX,0x0
ADD RSP,0x8
POP RBX
POP RBP
POP R12
POP R13
POP R14
POP R15
RET
MOV RBP,RDI
CMP qword ptr [RSI + 0x10],0x0
JNZ 0x00113cfc
MOV RSI,RDI
MOV RDI,RDX
CALL 0x0011283a
JMP 0x00113cd1
MOVZX R15D,byte ptr [RDI + 0x20]
MOVZX R13D,byte ptr [RSI + 0x20]
MOV byte ptr [RSI + 0x20],0x0
MOV byte ptr [RDI + 0x20],0x0
CALL 0x00111835
MOV byte ptr [RBP + 0x20],R15B
MOV byte ptr [R12 + 0x20],R13B
TEST RAX,RAX
JNZ 0x00113d42
MOV RAX,qword ptr [RBP + 0x8]
CMP qword ptr [R12 + 0x8],RAX
CMOVNC RAX,qword ptr [R12 + 0x8]
MOV qword ptr [RBX + 0x10],0x0
MOV byte ptr [RBX + 0x20],0x0
MOV qword ptr [RBX + 0x8],RAX
JMP 0x00113cd1
JLE 0x00113da1
MOVZX R13D,byte ptr [RBP + 0x20]
MOV RAX,R12
MOV R12,RBP
MOV RBP,RAX
MOV RSI,R12
MOV RDI,RBX
CALL 0x0011283a
MOV byte ptr [RBX + 0x20],R13B
MOV RAX,qword ptr [RBX + 0x8]
MOV RSI,qword ptr [RBP + 0x8]
MOV RDI,RAX
SUB RDI,RSI
CMP RAX,RSI
JNC 0x00113d84
SUB RSI,RAX
MOV RDI,RBX
CALL 0x00112121
MOV EDI,0x0
MOV RDX,qword ptr [RBP + 0x10]
ADD RDI,qword ptr [RBX]
MOV RSI,qword ptr [RBP]
CALL 0x001117c6
MOV RDI,RBX
CALL 0x00111983
JMP 0x00113cd1
MOV EAX,R13D
XOR EAX,0x1
TEST R14,R14
CMOVNZ R13D,EAX
JMP 0x00113d52
(translation_unit "undefined8 FUN_00113c9b(undefined8 *param_1,undefined8 *param_2,long *param_3,long param_4)\n\n{\n  undefined1 uVar1;\n  ulong uVar2;\n  long lVar3;\n  ulong uVar4;\n  undefined8 *puVar5;\n  byte bVar6;\n  \n  if (param_1[2] == 0) {\n    FUN_0011283a(param_3);\n    if ((param_4 != 0) && (param_3[2] != 0)) {\n      *(byte *)(param_3 + 4) = *(byte *)(param_3 + 4) ^ 1;\n    }\n  }\n  else if (param_2[2] == 0) {\n    FUN_0011283a(param_3,param_1);\n  }\n  else {\n    uVar1 = *(undefined1 *)(param_1 + 4);\n    bVar6 = *(byte *)(param_2 + 4);\n    *(undefined1 *)(param_2 + 4) = 0;\n    *(undefined1 *)(param_1 + 4) = 0;\n    lVar3 = FUN_00111835();\n    *(undefined1 *)(param_1 + 4) = uVar1;\n    *(byte *)(param_2 + 4) = bVar6;\n    if (lVar3 == 0) {\n      uVar4 = param_1[1];\n      if ((ulong)param_1[1] <= (ulong)param_2[1]) {\n        uVar4 = param_2[1];\n      }\n      param_3[2] = 0;\n      *(undefined1 *)(param_3 + 4) = 0;\n      param_3[1] = uVar4;\n    }\n    else {\n      if (lVar3 < 1) {\n        puVar5 = param_1;\n        if (param_4 != 0) {\n          bVar6 = bVar6 ^ 1;\n        }\n      }\n      else {\n        puVar5 = param_2;\n        param_2 = param_1;\n        bVar6 = *(byte *)(param_1 + 4);\n      }\n      FUN_0011283a(param_3,param_2);\n      *(byte *)(param_3 + 4) = bVar6;\n      uVar4 = param_3[1];\n      uVar2 = puVar5[1];\n      lVar3 = uVar4 - uVar2;\n      if (uVar4 < uVar2) {\n        FUN_00112121(param_3,uVar2 - uVar4);\n        lVar3 = 0;\n      }\n      FUN_001117c6(lVar3 + *param_3,*puVar5,puVar5[2]);\n      FUN_00111983(param_3);\n    }\n  }\n  return 0;\n}\n\n" (function_definition "undefined8 FUN_00113c9b(undefined8 *param_1,undefined8 *param_2,long *param_3,long param_4)\n\n{\n  undefined1 uVar1;\n  ulong uVar2;\n  long lVar3;\n  ulong uVar4;\n  undefined8 *puVar5;\n  byte bVar6;\n  \n  if (param_1[2] == 0) {\n    FUN_0011283a(param_3);\n    if ((param_4 != 0) && (param_3[2] != 0)) {\n      *(byte *)(param_3 + 4) = *(byte *)(param_3 + 4) ^ 1;\n    }\n  }\n  else if (param_2[2] == 0) {\n    FUN_0011283a(param_3,param_1);\n  }\n  else {\n    uVar1 = *(undefined1 *)(param_1 + 4);\n    bVar6 = *(byte *)(param_2 + 4);\n    *(undefined1 *)(param_2 + 4) = 0;\n    *(undefined1 *)(param_1 + 4) = 0;\n    lVar3 = FUN_00111835();\n    *(undefined1 *)(param_1 + 4) = uVar1;\n    *(byte *)(param_2 + 4) = bVar6;\n    if (lVar3 == 0) {\n      uVar4 = param_1[1];\n      if ((ulong)param_1[1] <= (ulong)param_2[1]) {\n        uVar4 = param_2[1];\n      }\n      param_3[2] = 0;\n      *(undefined1 *)(param_3 + 4) = 0;\n      param_3[1] = uVar4;\n    }\n    else {\n      if (lVar3 < 1) {\n        puVar5 = param_1;\n        if (param_4 != 0) {\n          bVar6 = bVar6 ^ 1;\n        }\n      }\n      else {\n        puVar5 = param_2;\n        param_2 = param_1;\n        bVar6 = *(byte *)(param_1 + 4);\n      }\n      FUN_0011283a(param_3,param_2);\n      *(byte *)(param_3 + 4) = bVar6;\n      uVar4 = param_3[1];\n      uVar2 = puVar5[1];\n      lVar3 = uVar4 - uVar2;\n      if (uVar4 < uVar2) {\n        FUN_00112121(param_3,uVar2 - uVar4);\n        lVar3 = 0;\n      }\n      FUN_001117c6(lVar3 + *param_3,*puVar5,puVar5[2]);\n      FUN_00111983(param_3);\n    }\n  }\n  return 0;\n}" type_identifier (function_declarator "FUN_00113c9b(undefined8 *param_1,undefined8 *param_2,long *param_3,long param_4)" identifier (parameter_list "(undefined8 *param_1,undefined8 *param_2,long *param_3,long param_4)" ( (parameter_declaration "undefined8 *param_1" type_identifier (pointer_declarator "*param_1" * identifier)) , (parameter_declaration "undefined8 *param_2" type_identifier (pointer_declarator "*param_2" * identifier)) , (parameter_declaration "long *param_3" (sized_type_specifier "long" long) (pointer_declarator "*param_3" * identifier)) , (parameter_declaration "long param_4" (sized_type_specifier "long" long) identifier) ))) (compound_statement "{\n  undefined1 uVar1;\n  ulong uVar2;\n  long lVar3;\n  ulong uVar4;\n  undefined8 *puVar5;\n  byte bVar6;\n  \n  if (param_1[2] == 0) {\n    FUN_0011283a(param_3);\n    if ((param_4 != 0) && (param_3[2] != 0)) {\n      *(byte *)(param_3 + 4) = *(byte *)(param_3 + 4) ^ 1;\n    }\n  }\n  else if (param_2[2] == 0) {\n    FUN_0011283a(param_3,param_1);\n  }\n  else {\n    uVar1 = *(undefined1 *)(param_1 + 4);\n    bVar6 = *(byte *)(param_2 + 4);\n    *(undefined1 *)(param_2 + 4) = 0;\n    *(undefined1 *)(param_1 + 4) = 0;\n    lVar3 = FUN_00111835();\n    *(undefined1 *)(param_1 + 4) = uVar1;\n    *(byte *)(param_2 + 4) = bVar6;\n    if (lVar3 == 0) {\n      uVar4 = param_1[1];\n      if ((ulong)param_1[1] <= (ulong)param_2[1]) {\n        uVar4 = param_2[1];\n      }\n      param_3[2] = 0;\n      *(undefined1 *)(param_3 + 4) = 0;\n      param_3[1] = uVar4;\n    }\n    else {\n      if (lVar3 < 1) {\n        puVar5 = param_1;\n        if (param_4 != 0) {\n          bVar6 = bVar6 ^ 1;\n        }\n      }\n      else {\n        puVar5 = param_2;\n        param_2 = param_1;\n        bVar6 = *(byte *)(param_1 + 4);\n      }\n      FUN_0011283a(param_3,param_2);\n      *(byte *)(param_3 + 4) = bVar6;\n      uVar4 = param_3[1];\n      uVar2 = puVar5[1];\n      lVar3 = uVar4 - uVar2;\n      if (uVar4 < uVar2) {\n        FUN_00112121(param_3,uVar2 - uVar4);\n        lVar3 = 0;\n      }\n      FUN_001117c6(lVar3 + *param_3,*puVar5,puVar5[2]);\n      FUN_00111983(param_3);\n    }\n  }\n  return 0;\n}" { (declaration "undefined1 uVar1;" type_identifier identifier ;) (declaration "ulong uVar2;" type_identifier identifier ;) (declaration "long lVar3;" (sized_type_specifier "long" long) identifier ;) (declaration "ulong uVar4;" type_identifier identifier ;) (declaration "undefined8 *puVar5;" type_identifier (pointer_declarator "*puVar5" * identifier) ;) (declaration "byte bVar6;" type_identifier identifier ;) (if_statement "if (param_1[2] == 0) {\n    FUN_0011283a(param_3);\n    if ((param_4 != 0) && (param_3[2] != 0)) {\n      *(byte *)(param_3 + 4) = *(byte *)(param_3 + 4) ^ 1;\n    }\n  }\n  else if (param_2[2] == 0) {\n    FUN_0011283a(param_3,param_1);\n  }\n  else {\n    uVar1 = *(undefined1 *)(param_1 + 4);\n    bVar6 = *(byte *)(param_2 + 4);\n    *(undefined1 *)(param_2 + 4) = 0;\n    *(undefined1 *)(param_1 + 4) = 0;\n    lVar3 = FUN_00111835();\n    *(undefined1 *)(param_1 + 4) = uVar1;\n    *(byte *)(param_2 + 4) = bVar6;\n    if (lVar3 == 0) {\n      uVar4 = param_1[1];\n      if ((ulong)param_1[1] <= (ulong)param_2[1]) {\n        uVar4 = param_2[1];\n      }\n      param_3[2] = 0;\n      *(undefined1 *)(param_3 + 4) = 0;\n      param_3[1] = uVar4;\n    }\n    else {\n      if (lVar3 < 1) {\n        puVar5 = param_1;\n        if (param_4 != 0) {\n          bVar6 = bVar6 ^ 1;\n        }\n      }\n      else {\n        puVar5 = param_2;\n        param_2 = param_1;\n        bVar6 = *(byte *)(param_1 + 4);\n      }\n      FUN_0011283a(param_3,param_2);\n      *(byte *)(param_3 + 4) = bVar6;\n      uVar4 = param_3[1];\n      uVar2 = puVar5[1];\n      lVar3 = uVar4 - uVar2;\n      if (uVar4 < uVar2) {\n        FUN_00112121(param_3,uVar2 - uVar4);\n        lVar3 = 0;\n      }\n      FUN_001117c6(lVar3 + *param_3,*puVar5,puVar5[2]);\n      FUN_00111983(param_3);\n    }\n  }" if (parenthesized_expression "(param_1[2] == 0)" ( (binary_expression "param_1[2] == 0" (subscript_expression "param_1[2]" identifier [ number_literal ]) == number_literal) )) (compound_statement "{\n    FUN_0011283a(param_3);\n    if ((param_4 != 0) && (param_3[2] != 0)) {\n      *(byte *)(param_3 + 4) = *(byte *)(param_3 + 4) ^ 1;\n    }\n  }" { (expression_statement "FUN_0011283a(param_3);" (call_expression "FUN_0011283a(param_3)" identifier (argument_list "(param_3)" ( identifier ))) ;) (if_statement "if ((param_4 != 0) && (param_3[2] != 0)) {\n      *(byte *)(param_3 + 4) = *(byte *)(param_3 + 4) ^ 1;\n    }" if (parenthesized_expression "((param_4 != 0) && (param_3[2] != 0))" ( (binary_expression "(param_4 != 0) && (param_3[2] != 0)" (parenthesized_expression "(param_4 != 0)" ( (binary_expression "param_4 != 0" identifier != number_literal) )) && (parenthesized_expression "(param_3[2] != 0)" ( (binary_expression "param_3[2] != 0" (subscript_expression "param_3[2]" identifier [ number_literal ]) != number_literal) ))) )) (compound_statement "{\n      *(byte *)(param_3 + 4) = *(byte *)(param_3 + 4) ^ 1;\n    }" { (expression_statement "*(byte *)(param_3 + 4) = *(byte *)(param_3 + 4) ^ 1;" (assignment_expression "*(byte *)(param_3 + 4) = *(byte *)(param_3 + 4) ^ 1" (pointer_expression "*(byte *)(param_3 + 4)" * (cast_expression "(byte *)(param_3 + 4)" ( (type_descriptor "byte *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_3 + 4)" ( (binary_expression "param_3 + 4" identifier + number_literal) )))) = (binary_expression "*(byte *)(param_3 + 4) ^ 1" (pointer_expression "*(byte *)(param_3 + 4)" * (cast_expression "(byte *)(param_3 + 4)" ( (type_descriptor "byte *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_3 + 4)" ( (binary_expression "param_3 + 4" identifier + number_literal) )))) ^ number_literal)) ;) })) }) (else_clause "else if (param_2[2] == 0) {\n    FUN_0011283a(param_3,param_1);\n  }\n  else {\n    uVar1 = *(undefined1 *)(param_1 + 4);\n    bVar6 = *(byte *)(param_2 + 4);\n    *(undefined1 *)(param_2 + 4) = 0;\n    *(undefined1 *)(param_1 + 4) = 0;\n    lVar3 = FUN_00111835();\n    *(undefined1 *)(param_1 + 4) = uVar1;\n    *(byte *)(param_2 + 4) = bVar6;\n    if (lVar3 == 0) {\n      uVar4 = param_1[1];\n      if ((ulong)param_1[1] <= (ulong)param_2[1]) {\n        uVar4 = param_2[1];\n      }\n      param_3[2] = 0;\n      *(undefined1 *)(param_3 + 4) = 0;\n      param_3[1] = uVar4;\n    }\n    else {\n      if (lVar3 < 1) {\n        puVar5 = param_1;\n        if (param_4 != 0) {\n          bVar6 = bVar6 ^ 1;\n        }\n      }\n      else {\n        puVar5 = param_2;\n        param_2 = param_1;\n        bVar6 = *(byte *)(param_1 + 4);\n      }\n      FUN_0011283a(param_3,param_2);\n      *(byte *)(param_3 + 4) = bVar6;\n      uVar4 = param_3[1];\n      uVar2 = puVar5[1];\n      lVar3 = uVar4 - uVar2;\n      if (uVar4 < uVar2) {\n        FUN_00112121(param_3,uVar2 - uVar4);\n        lVar3 = 0;\n      }\n      FUN_001117c6(lVar3 + *param_3,*puVar5,puVar5[2]);\n      FUN_00111983(param_3);\n    }\n  }" else (if_statement "if (param_2[2] == 0) {\n    FUN_0011283a(param_3,param_1);\n  }\n  else {\n    uVar1 = *(undefined1 *)(param_1 + 4);\n    bVar6 = *(byte *)(param_2 + 4);\n    *(undefined1 *)(param_2 + 4) = 0;\n    *(undefined1 *)(param_1 + 4) = 0;\n    lVar3 = FUN_00111835();\n    *(undefined1 *)(param_1 + 4) = uVar1;\n    *(byte *)(param_2 + 4) = bVar6;\n    if (lVar3 == 0) {\n      uVar4 = param_1[1];\n      if ((ulong)param_1[1] <= (ulong)param_2[1]) {\n        uVar4 = param_2[1];\n      }\n      param_3[2] = 0;\n      *(undefined1 *)(param_3 + 4) = 0;\n      param_3[1] = uVar4;\n    }\n    else {\n      if (lVar3 < 1) {\n        puVar5 = param_1;\n        if (param_4 != 0) {\n          bVar6 = bVar6 ^ 1;\n        }\n      }\n      else {\n        puVar5 = param_2;\n        param_2 = param_1;\n        bVar6 = *(byte *)(param_1 + 4);\n      }\n      FUN_0011283a(param_3,param_2);\n      *(byte *)(param_3 + 4) = bVar6;\n      uVar4 = param_3[1];\n      uVar2 = puVar5[1];\n      lVar3 = uVar4 - uVar2;\n      if (uVar4 < uVar2) {\n        FUN_00112121(param_3,uVar2 - uVar4);\n        lVar3 = 0;\n      }\n      FUN_001117c6(lVar3 + *param_3,*puVar5,puVar5[2]);\n      FUN_00111983(param_3);\n    }\n  }" if (parenthesized_expression "(param_2[2] == 0)" ( (binary_expression "param_2[2] == 0" (subscript_expression "param_2[2]" identifier [ number_literal ]) == number_literal) )) (compound_statement "{\n    FUN_0011283a(param_3,param_1);\n  }" { (expression_statement "FUN_0011283a(param_3,param_1);" (call_expression "FUN_0011283a(param_3,param_1)" identifier (argument_list "(param_3,param_1)" ( identifier , identifier ))) ;) }) (else_clause "else {\n    uVar1 = *(undefined1 *)(param_1 + 4);\n    bVar6 = *(byte *)(param_2 + 4);\n    *(undefined1 *)(param_2 + 4) = 0;\n    *(undefined1 *)(param_1 + 4) = 0;\n    lVar3 = FUN_00111835();\n    *(undefined1 *)(param_1 + 4) = uVar1;\n    *(byte *)(param_2 + 4) = bVar6;\n    if (lVar3 == 0) {\n      uVar4 = param_1[1];\n      if ((ulong)param_1[1] <= (ulong)param_2[1]) {\n        uVar4 = param_2[1];\n      }\n      param_3[2] = 0;\n      *(undefined1 *)(param_3 + 4) = 0;\n      param_3[1] = uVar4;\n    }\n    else {\n      if (lVar3 < 1) {\n        puVar5 = param_1;\n        if (param_4 != 0) {\n          bVar6 = bVar6 ^ 1;\n        }\n      }\n      else {\n        puVar5 = param_2;\n        param_2 = param_1;\n        bVar6 = *(byte *)(param_1 + 4);\n      }\n      FUN_0011283a(param_3,param_2);\n      *(byte *)(param_3 + 4) = bVar6;\n      uVar4 = param_3[1];\n      uVar2 = puVar5[1];\n      lVar3 = uVar4 - uVar2;\n      if (uVar4 < uVar2) {\n        FUN_00112121(param_3,uVar2 - uVar4);\n        lVar3 = 0;\n      }\n      FUN_001117c6(lVar3 + *param_3,*puVar5,puVar5[2]);\n      FUN_00111983(param_3);\n    }\n  }" else (compound_statement "{\n    uVar1 = *(undefined1 *)(param_1 + 4);\n    bVar6 = *(byte *)(param_2 + 4);\n    *(undefined1 *)(param_2 + 4) = 0;\n    *(undefined1 *)(param_1 + 4) = 0;\n    lVar3 = FUN_00111835();\n    *(undefined1 *)(param_1 + 4) = uVar1;\n    *(byte *)(param_2 + 4) = bVar6;\n    if (lVar3 == 0) {\n      uVar4 = param_1[1];\n      if ((ulong)param_1[1] <= (ulong)param_2[1]) {\n        uVar4 = param_2[1];\n      }\n      param_3[2] = 0;\n      *(undefined1 *)(param_3 + 4) = 0;\n      param_3[1] = uVar4;\n    }\n    else {\n      if (lVar3 < 1) {\n        puVar5 = param_1;\n        if (param_4 != 0) {\n          bVar6 = bVar6 ^ 1;\n        }\n      }\n      else {\n        puVar5 = param_2;\n        param_2 = param_1;\n        bVar6 = *(byte *)(param_1 + 4);\n      }\n      FUN_0011283a(param_3,param_2);\n      *(byte *)(param_3 + 4) = bVar6;\n      uVar4 = param_3[1];\n      uVar2 = puVar5[1];\n      lVar3 = uVar4 - uVar2;\n      if (uVar4 < uVar2) {\n        FUN_00112121(param_3,uVar2 - uVar4);\n        lVar3 = 0;\n      }\n      FUN_001117c6(lVar3 + *param_3,*puVar5,puVar5[2]);\n      FUN_00111983(param_3);\n    }\n  }" { (expression_statement "uVar1 = *(undefined1 *)(param_1 + 4);" (assignment_expression "uVar1 = *(undefined1 *)(param_1 + 4)" identifier = (pointer_expression "*(undefined1 *)(param_1 + 4)" * (cast_expression "(undefined1 *)(param_1 + 4)" ( (type_descriptor "undefined1 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 4)" ( (binary_expression "param_1 + 4" identifier + number_literal) ))))) ;) (expression_statement "bVar6 = *(byte *)(param_2 + 4);" (assignment_expression "bVar6 = *(byte *)(param_2 + 4)" identifier = (pointer_expression "*(byte *)(param_2 + 4)" * (cast_expression "(byte *)(param_2 + 4)" ( (type_descriptor "byte *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_2 + 4)" ( (binary_expression "param_2 + 4" identifier + number_literal) ))))) ;) (expression_statement "*(undefined1 *)(param_2 + 4) = 0;" (assignment_expression "*(undefined1 *)(param_2 + 4) = 0" (pointer_expression "*(undefined1 *)(param_2 + 4)" * (cast_expression "(undefined1 *)(param_2 + 4)" ( (type_descriptor "undefined1 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_2 + 4)" ( (binary_expression "param_2 + 4" identifier + number_literal) )))) = number_literal) ;) (expression_statement "*(undefined1 *)(param_1 + 4) = 0;" (assignment_expression "*(undefined1 *)(param_1 + 4) = 0" (pointer_expression "*(undefined1 *)(param_1 + 4)" * (cast_expression "(undefined1 *)(param_1 + 4)" ( (type_descriptor "undefined1 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 4)" ( (binary_expression "param_1 + 4" identifier + number_literal) )))) = number_literal) ;) (expression_statement "lVar3 = FUN_00111835();" (assignment_expression "lVar3 = FUN_00111835()" identifier = (call_expression "FUN_00111835()" identifier (argument_list "()" ( )))) ;) (expression_statement "*(undefined1 *)(param_1 + 4) = uVar1;" (assignment_expression "*(undefined1 *)(param_1 + 4) = uVar1" (pointer_expression "*(undefined1 *)(param_1 + 4)" * (cast_expression "(undefined1 *)(param_1 + 4)" ( (type_descriptor "undefined1 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 4)" ( (binary_expression "param_1 + 4" identifier + number_literal) )))) = identifier) ;) (expression_statement "*(byte *)(param_2 + 4) = bVar6;" (assignment_expression "*(byte *)(param_2 + 4) = bVar6" (pointer_expression "*(byte *)(param_2 + 4)" * (cast_expression "(byte *)(param_2 + 4)" ( (type_descriptor "byte *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_2 + 4)" ( (binary_expression "param_2 + 4" identifier + number_literal) )))) = identifier) ;) (if_statement "if (lVar3 == 0) {\n      uVar4 = param_1[1];\n      if ((ulong)param_1[1] <= (ulong)param_2[1]) {\n        uVar4 = param_2[1];\n      }\n      param_3[2] = 0;\n      *(undefined1 *)(param_3 + 4) = 0;\n      param_3[1] = uVar4;\n    }\n    else {\n      if (lVar3 < 1) {\n        puVar5 = param_1;\n        if (param_4 != 0) {\n          bVar6 = bVar6 ^ 1;\n        }\n      }\n      else {\n        puVar5 = param_2;\n        param_2 = param_1;\n        bVar6 = *(byte *)(param_1 + 4);\n      }\n      FUN_0011283a(param_3,param_2);\n      *(byte *)(param_3 + 4) = bVar6;\n      uVar4 = param_3[1];\n      uVar2 = puVar5[1];\n      lVar3 = uVar4 - uVar2;\n      if (uVar4 < uVar2) {\n        FUN_00112121(param_3,uVar2 - uVar4);\n        lVar3 = 0;\n      }\n      FUN_001117c6(lVar3 + *param_3,*puVar5,puVar5[2]);\n      FUN_00111983(param_3);\n    }" if (parenthesized_expression "(lVar3 == 0)" ( (binary_expression "lVar3 == 0" identifier == number_literal) )) (compound_statement "{\n      uVar4 = param_1[1];\n      if ((ulong)param_1[1] <= (ulong)param_2[1]) {\n        uVar4 = param_2[1];\n      }\n      param_3[2] = 0;\n      *(undefined1 *)(param_3 + 4) = 0;\n      param_3[1] = uVar4;\n    }" { (expression_statement "uVar4 = param_1[1];" (assignment_expression "uVar4 = param_1[1]" identifier = (subscript_expression "param_1[1]" identifier [ number_literal ])) ;) (if_statement "if ((ulong)param_1[1] <= (ulong)param_2[1]) {\n        uVar4 = param_2[1];\n      }" if (parenthesized_expression "((ulong)param_1[1] <= (ulong)param_2[1])" ( (binary_expression "(ulong)param_1[1] <= (ulong)param_2[1]" (cast_expression "(ulong)param_1[1]" ( (type_descriptor "ulong" type_identifier) ) (subscript_expression "param_1[1]" identifier [ number_literal ])) <= (cast_expression "(ulong)param_2[1]" ( (type_descriptor "ulong" type_identifier) ) (subscript_expression "param_2[1]" identifier [ number_literal ]))) )) (compound_statement "{\n        uVar4 = param_2[1];\n      }" { (expression_statement "uVar4 = param_2[1];" (assignment_expression "uVar4 = param_2[1]" identifier = (subscript_expression "param_2[1]" identifier [ number_literal ])) ;) })) (expression_statement "param_3[2] = 0;" (assignment_expression "param_3[2] = 0" (subscript_expression "param_3[2]" identifier [ number_literal ]) = number_literal) ;) (expression_statement "*(undefined1 *)(param_3 + 4) = 0;" (assignment_expression "*(undefined1 *)(param_3 + 4) = 0" (pointer_expression "*(undefined1 *)(param_3 + 4)" * (cast_expression "(undefined1 *)(param_3 + 4)" ( (type_descriptor "undefined1 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_3 + 4)" ( (binary_expression "param_3 + 4" identifier + number_literal) )))) = number_literal) ;) (expression_statement "param_3[1] = uVar4;" (assignment_expression "param_3[1] = uVar4" (subscript_expression "param_3[1]" identifier [ number_literal ]) = identifier) ;) }) (else_clause "else {\n      if (lVar3 < 1) {\n        puVar5 = param_1;\n        if (param_4 != 0) {\n          bVar6 = bVar6 ^ 1;\n        }\n      }\n      else {\n        puVar5 = param_2;\n        param_2 = param_1;\n        bVar6 = *(byte *)(param_1 + 4);\n      }\n      FUN_0011283a(param_3,param_2);\n      *(byte *)(param_3 + 4) = bVar6;\n      uVar4 = param_3[1];\n      uVar2 = puVar5[1];\n      lVar3 = uVar4 - uVar2;\n      if (uVar4 < uVar2) {\n        FUN_00112121(param_3,uVar2 - uVar4);\n        lVar3 = 0;\n      }\n      FUN_001117c6(lVar3 + *param_3,*puVar5,puVar5[2]);\n      FUN_00111983(param_3);\n    }" else (compound_statement "{\n      if (lVar3 < 1) {\n        puVar5 = param_1;\n        if (param_4 != 0) {\n          bVar6 = bVar6 ^ 1;\n        }\n      }\n      else {\n        puVar5 = param_2;\n        param_2 = param_1;\n        bVar6 = *(byte *)(param_1 + 4);\n      }\n      FUN_0011283a(param_3,param_2);\n      *(byte *)(param_3 + 4) = bVar6;\n      uVar4 = param_3[1];\n      uVar2 = puVar5[1];\n      lVar3 = uVar4 - uVar2;\n      if (uVar4 < uVar2) {\n        FUN_00112121(param_3,uVar2 - uVar4);\n        lVar3 = 0;\n      }\n      FUN_001117c6(lVar3 + *param_3,*puVar5,puVar5[2]);\n      FUN_00111983(param_3);\n    }" { (if_statement "if (lVar3 < 1) {\n        puVar5 = param_1;\n        if (param_4 != 0) {\n          bVar6 = bVar6 ^ 1;\n        }\n      }\n      else {\n        puVar5 = param_2;\n        param_2 = param_1;\n        bVar6 = *(byte *)(param_1 + 4);\n      }" if (parenthesized_expression "(lVar3 < 1)" ( (binary_expression "lVar3 < 1" identifier < number_literal) )) (compound_statement "{\n        puVar5 = param_1;\n        if (param_4 != 0) {\n          bVar6 = bVar6 ^ 1;\n        }\n      }" { (expression_statement "puVar5 = param_1;" (assignment_expression "puVar5 = param_1" identifier = identifier) ;) (if_statement "if (param_4 != 0) {\n          bVar6 = bVar6 ^ 1;\n        }" if (parenthesized_expression "(param_4 != 0)" ( (binary_expression "param_4 != 0" identifier != number_literal) )) (compound_statement "{\n          bVar6 = bVar6 ^ 1;\n        }" { (expression_statement "bVar6 = bVar6 ^ 1;" (assignment_expression "bVar6 = bVar6 ^ 1" identifier = (binary_expression "bVar6 ^ 1" identifier ^ number_literal)) ;) })) }) (else_clause "else {\n        puVar5 = param_2;\n        param_2 = param_1;\n        bVar6 = *(byte *)(param_1 + 4);\n      }" else (compound_statement "{\n        puVar5 = param_2;\n        param_2 = param_1;\n        bVar6 = *(byte *)(param_1 + 4);\n      }" { (expression_statement "puVar5 = param_2;" (assignment_expression "puVar5 = param_2" identifier = identifier) ;) (expression_statement "param_2 = param_1;" (assignment_expression "param_2 = param_1" identifier = identifier) ;) (expression_statement "bVar6 = *(byte *)(param_1 + 4);" (assignment_expression "bVar6 = *(byte *)(param_1 + 4)" identifier = (pointer_expression "*(byte *)(param_1 + 4)" * (cast_expression "(byte *)(param_1 + 4)" ( (type_descriptor "byte *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 4)" ( (binary_expression "param_1 + 4" identifier + number_literal) ))))) ;) }))) (expression_statement "FUN_0011283a(param_3,param_2);" (call_expression "FUN_0011283a(param_3,param_2)" identifier (argument_list "(param_3,param_2)" ( identifier , identifier ))) ;) (expression_statement "*(byte *)(param_3 + 4) = bVar6;" (assignment_expression "*(byte *)(param_3 + 4) = bVar6" (pointer_expression "*(byte *)(param_3 + 4)" * (cast_expression "(byte *)(param_3 + 4)" ( (type_descriptor "byte *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_3 + 4)" ( (binary_expression "param_3 + 4" identifier + number_literal) )))) = identifier) ;) (expression_statement "uVar4 = param_3[1];" (assignment_expression "uVar4 = param_3[1]" identifier = (subscript_expression "param_3[1]" identifier [ number_literal ])) ;) (expression_statement "uVar2 = puVar5[1];" (assignment_expression "uVar2 = puVar5[1]" identifier = (subscript_expression "puVar5[1]" identifier [ number_literal ])) ;) (expression_statement "lVar3 = uVar4 - uVar2;" (assignment_expression "lVar3 = uVar4 - uVar2" identifier = (binary_expression "uVar4 - uVar2" identifier - identifier)) ;) (if_statement "if (uVar4 < uVar2) {\n        FUN_00112121(param_3,uVar2 - uVar4);\n        lVar3 = 0;\n      }" if (parenthesized_expression "(uVar4 < uVar2)" ( (binary_expression "uVar4 < uVar2" identifier < identifier) )) (compound_statement "{\n        FUN_00112121(param_3,uVar2 - uVar4);\n        lVar3 = 0;\n      }" { (expression_statement "FUN_00112121(param_3,uVar2 - uVar4);" (call_expression "FUN_00112121(param_3,uVar2 - uVar4)" identifier (argument_list "(param_3,uVar2 - uVar4)" ( identifier , (binary_expression "uVar2 - uVar4" identifier - identifier) ))) ;) (expression_statement "lVar3 = 0;" (assignment_expression "lVar3 = 0" identifier = number_literal) ;) })) (expression_statement "FUN_001117c6(lVar3 + *param_3,*puVar5,puVar5[2]);" (call_expression "FUN_001117c6(lVar3 + *param_3,*puVar5,puVar5[2])" identifier (argument_list "(lVar3 + *param_3,*puVar5,puVar5[2])" ( (binary_expression "lVar3 + *param_3" identifier + (pointer_expression "*param_3" * identifier)) , (pointer_expression "*puVar5" * identifier) , (subscript_expression "puVar5[2]" identifier [ number_literal ]) ))) ;) (expression_statement "FUN_00111983(param_3);" (call_expression "FUN_00111983(param_3)" identifier (argument_list "(param_3)" ( identifier ))) ;) }))) }))))) (return_statement "return 0;" return number_literal ;) })))
(translation_unit "BcStatus zbc_num_s(BcNum *a,BcNum *b,BcNum *c,size_t sub)\n\n{\n  _Bool _Var1;\n  ulong uVar2;\n  ssize_t sVar3;\n  ulong uVar4;\n  BcNum *pBVar5;\n  long lVar6;\n  byte bVar7;\n  \n  if (a->len == 0) {\n    bc_num_copy(c,b);\n    if ((sub != 0) && (c->len != 0)) {\n      c->neg = (_Bool)(c->neg ^ 1);\n    }\n  }\n  else if (b->len == 0) {\n    bc_num_copy(c,a);\n  }\n  else {\n    _Var1 = a->neg;\n    bVar7 = b->neg;\n    b->neg = false;\n    a->neg = false;\n    sVar3 = bc_num_cmp(a,b);\n    a->neg = _Var1;\n    b->neg = (_Bool)bVar7;\n    if (sVar3 == 0) {\n      uVar4 = a->rdx;\n      if (a->rdx <= b->rdx) {\n        uVar4 = b->rdx;\n      }\n      c->len = 0;\n      c->neg = false;\n      c->rdx = uVar4;\n    }\n    else {\n      if (sVar3 < 1) {\n        pBVar5 = a;\n        if (sub != 0) {\n          bVar7 = bVar7 ^ 1;\n        }\n      }\n      else {\n        pBVar5 = b;\n        b = a;\n        bVar7 = a->neg;\n      }\n      bc_num_copy(c,b);\n      c->neg = (_Bool)bVar7;\n      uVar4 = c->rdx;\n      uVar2 = pBVar5->rdx;\n      lVar6 = uVar4 - uVar2;\n      if (uVar4 < uVar2) {\n        bc_num_extend(c,uVar2 - uVar4);\n        lVar6 = 0;\n      }\n      bc_num_subArrays(c->num + lVar6,pBVar5->num,pBVar5->len);\n      bc_num_clean(c);\n    }\n  }\n  return BC_STATUS_SUCCESS;\n}\n\n" (function_definition "BcStatus zbc_num_s(BcNum *a,BcNum *b,BcNum *c,size_t sub)\n\n{\n  _Bool _Var1;\n  ulong uVar2;\n  ssize_t sVar3;\n  ulong uVar4;\n  BcNum *pBVar5;\n  long lVar6;\n  byte bVar7;\n  \n  if (a->len == 0) {\n    bc_num_copy(c,b);\n    if ((sub != 0) && (c->len != 0)) {\n      c->neg = (_Bool)(c->neg ^ 1);\n    }\n  }\n  else if (b->len == 0) {\n    bc_num_copy(c,a);\n  }\n  else {\n    _Var1 = a->neg;\n    bVar7 = b->neg;\n    b->neg = false;\n    a->neg = false;\n    sVar3 = bc_num_cmp(a,b);\n    a->neg = _Var1;\n    b->neg = (_Bool)bVar7;\n    if (sVar3 == 0) {\n      uVar4 = a->rdx;\n      if (a->rdx <= b->rdx) {\n        uVar4 = b->rdx;\n      }\n      c->len = 0;\n      c->neg = false;\n      c->rdx = uVar4;\n    }\n    else {\n      if (sVar3 < 1) {\n        pBVar5 = a;\n        if (sub != 0) {\n          bVar7 = bVar7 ^ 1;\n        }\n      }\n      else {\n        pBVar5 = b;\n        b = a;\n        bVar7 = a->neg;\n      }\n      bc_num_copy(c,b);\n      c->neg = (_Bool)bVar7;\n      uVar4 = c->rdx;\n      uVar2 = pBVar5->rdx;\n      lVar6 = uVar4 - uVar2;\n      if (uVar4 < uVar2) {\n        bc_num_extend(c,uVar2 - uVar4);\n        lVar6 = 0;\n      }\n      bc_num_subArrays(c->num + lVar6,pBVar5->num,pBVar5->len);\n      bc_num_clean(c);\n    }\n  }\n  return BC_STATUS_SUCCESS;\n}" type_identifier (function_declarator "zbc_num_s(BcNum *a,BcNum *b,BcNum *c,size_t sub)" identifier (parameter_list "(BcNum *a,BcNum *b,BcNum *c,size_t sub)" ( (parameter_declaration "BcNum *a" type_identifier (pointer_declarator "*a" * identifier)) , (parameter_declaration "BcNum *b" type_identifier (pointer_declarator "*b" * identifier)) , (parameter_declaration "BcNum *c" type_identifier (pointer_declarator "*c" * identifier)) , (parameter_declaration "size_t sub" primitive_type identifier) ))) (compound_statement "{\n  _Bool _Var1;\n  ulong uVar2;\n  ssize_t sVar3;\n  ulong uVar4;\n  BcNum *pBVar5;\n  long lVar6;\n  byte bVar7;\n  \n  if (a->len == 0) {\n    bc_num_copy(c,b);\n    if ((sub != 0) && (c->len != 0)) {\n      c->neg = (_Bool)(c->neg ^ 1);\n    }\n  }\n  else if (b->len == 0) {\n    bc_num_copy(c,a);\n  }\n  else {\n    _Var1 = a->neg;\n    bVar7 = b->neg;\n    b->neg = false;\n    a->neg = false;\n    sVar3 = bc_num_cmp(a,b);\n    a->neg = _Var1;\n    b->neg = (_Bool)bVar7;\n    if (sVar3 == 0) {\n      uVar4 = a->rdx;\n      if (a->rdx <= b->rdx) {\n        uVar4 = b->rdx;\n      }\n      c->len = 0;\n      c->neg = false;\n      c->rdx = uVar4;\n    }\n    else {\n      if (sVar3 < 1) {\n        pBVar5 = a;\n        if (sub != 0) {\n          bVar7 = bVar7 ^ 1;\n        }\n      }\n      else {\n        pBVar5 = b;\n        b = a;\n        bVar7 = a->neg;\n      }\n      bc_num_copy(c,b);\n      c->neg = (_Bool)bVar7;\n      uVar4 = c->rdx;\n      uVar2 = pBVar5->rdx;\n      lVar6 = uVar4 - uVar2;\n      if (uVar4 < uVar2) {\n        bc_num_extend(c,uVar2 - uVar4);\n        lVar6 = 0;\n      }\n      bc_num_subArrays(c->num + lVar6,pBVar5->num,pBVar5->len);\n      bc_num_clean(c);\n    }\n  }\n  return BC_STATUS_SUCCESS;\n}" { (declaration "_Bool _Var1;" type_identifier identifier ;) (declaration "ulong uVar2;" type_identifier identifier ;) (declaration "ssize_t sVar3;" primitive_type identifier ;) (declaration "ulong uVar4;" type_identifier identifier ;) (declaration "BcNum *pBVar5;" type_identifier (pointer_declarator "*pBVar5" * identifier) ;) (declaration "long lVar6;" (sized_type_specifier "long" long) identifier ;) (declaration "byte bVar7;" type_identifier identifier ;) (if_statement "if (a->len == 0) {\n    bc_num_copy(c,b);\n    if ((sub != 0) && (c->len != 0)) {\n      c->neg = (_Bool)(c->neg ^ 1);\n    }\n  }\n  else if (b->len == 0) {\n    bc_num_copy(c,a);\n  }\n  else {\n    _Var1 = a->neg;\n    bVar7 = b->neg;\n    b->neg = false;\n    a->neg = false;\n    sVar3 = bc_num_cmp(a,b);\n    a->neg = _Var1;\n    b->neg = (_Bool)bVar7;\n    if (sVar3 == 0) {\n      uVar4 = a->rdx;\n      if (a->rdx <= b->rdx) {\n        uVar4 = b->rdx;\n      }\n      c->len = 0;\n      c->neg = false;\n      c->rdx = uVar4;\n    }\n    else {\n      if (sVar3 < 1) {\n        pBVar5 = a;\n        if (sub != 0) {\n          bVar7 = bVar7 ^ 1;\n        }\n      }\n      else {\n        pBVar5 = b;\n        b = a;\n        bVar7 = a->neg;\n      }\n      bc_num_copy(c,b);\n      c->neg = (_Bool)bVar7;\n      uVar4 = c->rdx;\n      uVar2 = pBVar5->rdx;\n      lVar6 = uVar4 - uVar2;\n      if (uVar4 < uVar2) {\n        bc_num_extend(c,uVar2 - uVar4);\n        lVar6 = 0;\n      }\n      bc_num_subArrays(c->num + lVar6,pBVar5->num,pBVar5->len);\n      bc_num_clean(c);\n    }\n  }" if (parenthesized_expression "(a->len == 0)" ( (binary_expression "a->len == 0" (field_expression "a->len" identifier -> field_identifier) == number_literal) )) (compound_statement "{\n    bc_num_copy(c,b);\n    if ((sub != 0) && (c->len != 0)) {\n      c->neg = (_Bool)(c->neg ^ 1);\n    }\n  }" { (expression_statement "bc_num_copy(c,b);" (call_expression "bc_num_copy(c,b)" identifier (argument_list "(c,b)" ( identifier , identifier ))) ;) (if_statement "if ((sub != 0) && (c->len != 0)) {\n      c->neg = (_Bool)(c->neg ^ 1);\n    }" if (parenthesized_expression "((sub != 0) && (c->len != 0))" ( (binary_expression "(sub != 0) && (c->len != 0)" (parenthesized_expression "(sub != 0)" ( (binary_expression "sub != 0" identifier != number_literal) )) && (parenthesized_expression "(c->len != 0)" ( (binary_expression "c->len != 0" (field_expression "c->len" identifier -> field_identifier) != number_literal) ))) )) (compound_statement "{\n      c->neg = (_Bool)(c->neg ^ 1);\n    }" { (expression_statement "c->neg = (_Bool)(c->neg ^ 1);" (assignment_expression "c->neg = (_Bool)(c->neg ^ 1)" (field_expression "c->neg" identifier -> field_identifier) = (call_expression "(_Bool)(c->neg ^ 1)" (parenthesized_expression "(_Bool)" ( identifier )) (argument_list "(c->neg ^ 1)" ( (binary_expression "c->neg ^ 1" (field_expression "c->neg" identifier -> field_identifier) ^ number_literal) )))) ;) })) }) (else_clause "else if (b->len == 0) {\n    bc_num_copy(c,a);\n  }\n  else {\n    _Var1 = a->neg;\n    bVar7 = b->neg;\n    b->neg = false;\n    a->neg = false;\n    sVar3 = bc_num_cmp(a,b);\n    a->neg = _Var1;\n    b->neg = (_Bool)bVar7;\n    if (sVar3 == 0) {\n      uVar4 = a->rdx;\n      if (a->rdx <= b->rdx) {\n        uVar4 = b->rdx;\n      }\n      c->len = 0;\n      c->neg = false;\n      c->rdx = uVar4;\n    }\n    else {\n      if (sVar3 < 1) {\n        pBVar5 = a;\n        if (sub != 0) {\n          bVar7 = bVar7 ^ 1;\n        }\n      }\n      else {\n        pBVar5 = b;\n        b = a;\n        bVar7 = a->neg;\n      }\n      bc_num_copy(c,b);\n      c->neg = (_Bool)bVar7;\n      uVar4 = c->rdx;\n      uVar2 = pBVar5->rdx;\n      lVar6 = uVar4 - uVar2;\n      if (uVar4 < uVar2) {\n        bc_num_extend(c,uVar2 - uVar4);\n        lVar6 = 0;\n      }\n      bc_num_subArrays(c->num + lVar6,pBVar5->num,pBVar5->len);\n      bc_num_clean(c);\n    }\n  }" else (if_statement "if (b->len == 0) {\n    bc_num_copy(c,a);\n  }\n  else {\n    _Var1 = a->neg;\n    bVar7 = b->neg;\n    b->neg = false;\n    a->neg = false;\n    sVar3 = bc_num_cmp(a,b);\n    a->neg = _Var1;\n    b->neg = (_Bool)bVar7;\n    if (sVar3 == 0) {\n      uVar4 = a->rdx;\n      if (a->rdx <= b->rdx) {\n        uVar4 = b->rdx;\n      }\n      c->len = 0;\n      c->neg = false;\n      c->rdx = uVar4;\n    }\n    else {\n      if (sVar3 < 1) {\n        pBVar5 = a;\n        if (sub != 0) {\n          bVar7 = bVar7 ^ 1;\n        }\n      }\n      else {\n        pBVar5 = b;\n        b = a;\n        bVar7 = a->neg;\n      }\n      bc_num_copy(c,b);\n      c->neg = (_Bool)bVar7;\n      uVar4 = c->rdx;\n      uVar2 = pBVar5->rdx;\n      lVar6 = uVar4 - uVar2;\n      if (uVar4 < uVar2) {\n        bc_num_extend(c,uVar2 - uVar4);\n        lVar6 = 0;\n      }\n      bc_num_subArrays(c->num + lVar6,pBVar5->num,pBVar5->len);\n      bc_num_clean(c);\n    }\n  }" if (parenthesized_expression "(b->len == 0)" ( (binary_expression "b->len == 0" (field_expression "b->len" identifier -> field_identifier) == number_literal) )) (compound_statement "{\n    bc_num_copy(c,a);\n  }" { (expression_statement "bc_num_copy(c,a);" (call_expression "bc_num_copy(c,a)" identifier (argument_list "(c,a)" ( identifier , identifier ))) ;) }) (else_clause "else {\n    _Var1 = a->neg;\n    bVar7 = b->neg;\n    b->neg = false;\n    a->neg = false;\n    sVar3 = bc_num_cmp(a,b);\n    a->neg = _Var1;\n    b->neg = (_Bool)bVar7;\n    if (sVar3 == 0) {\n      uVar4 = a->rdx;\n      if (a->rdx <= b->rdx) {\n        uVar4 = b->rdx;\n      }\n      c->len = 0;\n      c->neg = false;\n      c->rdx = uVar4;\n    }\n    else {\n      if (sVar3 < 1) {\n        pBVar5 = a;\n        if (sub != 0) {\n          bVar7 = bVar7 ^ 1;\n        }\n      }\n      else {\n        pBVar5 = b;\n        b = a;\n        bVar7 = a->neg;\n      }\n      bc_num_copy(c,b);\n      c->neg = (_Bool)bVar7;\n      uVar4 = c->rdx;\n      uVar2 = pBVar5->rdx;\n      lVar6 = uVar4 - uVar2;\n      if (uVar4 < uVar2) {\n        bc_num_extend(c,uVar2 - uVar4);\n        lVar6 = 0;\n      }\n      bc_num_subArrays(c->num + lVar6,pBVar5->num,pBVar5->len);\n      bc_num_clean(c);\n    }\n  }" else (compound_statement "{\n    _Var1 = a->neg;\n    bVar7 = b->neg;\n    b->neg = false;\n    a->neg = false;\n    sVar3 = bc_num_cmp(a,b);\n    a->neg = _Var1;\n    b->neg = (_Bool)bVar7;\n    if (sVar3 == 0) {\n      uVar4 = a->rdx;\n      if (a->rdx <= b->rdx) {\n        uVar4 = b->rdx;\n      }\n      c->len = 0;\n      c->neg = false;\n      c->rdx = uVar4;\n    }\n    else {\n      if (sVar3 < 1) {\n        pBVar5 = a;\n        if (sub != 0) {\n          bVar7 = bVar7 ^ 1;\n        }\n      }\n      else {\n        pBVar5 = b;\n        b = a;\n        bVar7 = a->neg;\n      }\n      bc_num_copy(c,b);\n      c->neg = (_Bool)bVar7;\n      uVar4 = c->rdx;\n      uVar2 = pBVar5->rdx;\n      lVar6 = uVar4 - uVar2;\n      if (uVar4 < uVar2) {\n        bc_num_extend(c,uVar2 - uVar4);\n        lVar6 = 0;\n      }\n      bc_num_subArrays(c->num + lVar6,pBVar5->num,pBVar5->len);\n      bc_num_clean(c);\n    }\n  }" { (expression_statement "_Var1 = a->neg;" (assignment_expression "_Var1 = a->neg" identifier = (field_expression "a->neg" identifier -> field_identifier)) ;) (expression_statement "bVar7 = b->neg;" (assignment_expression "bVar7 = b->neg" identifier = (field_expression "b->neg" identifier -> field_identifier)) ;) (expression_statement "b->neg = false;" (assignment_expression "b->neg = false" (field_expression "b->neg" identifier -> field_identifier) = false) ;) (expression_statement "a->neg = false;" (assignment_expression "a->neg = false" (field_expression "a->neg" identifier -> field_identifier) = false) ;) (expression_statement "sVar3 = bc_num_cmp(a,b);" (assignment_expression "sVar3 = bc_num_cmp(a,b)" identifier = (call_expression "bc_num_cmp(a,b)" identifier (argument_list "(a,b)" ( identifier , identifier )))) ;) (expression_statement "a->neg = _Var1;" (assignment_expression "a->neg = _Var1" (field_expression "a->neg" identifier -> field_identifier) = identifier) ;) (expression_statement "b->neg = (_Bool)bVar7;" (assignment_expression "b->neg = (_Bool)bVar7" (field_expression "b->neg" identifier -> field_identifier) = (cast_expression "(_Bool)bVar7" ( (type_descriptor "_Bool" type_identifier) ) identifier)) ;) (if_statement "if (sVar3 == 0) {\n      uVar4 = a->rdx;\n      if (a->rdx <= b->rdx) {\n        uVar4 = b->rdx;\n      }\n      c->len = 0;\n      c->neg = false;\n      c->rdx = uVar4;\n    }\n    else {\n      if (sVar3 < 1) {\n        pBVar5 = a;\n        if (sub != 0) {\n          bVar7 = bVar7 ^ 1;\n        }\n      }\n      else {\n        pBVar5 = b;\n        b = a;\n        bVar7 = a->neg;\n      }\n      bc_num_copy(c,b);\n      c->neg = (_Bool)bVar7;\n      uVar4 = c->rdx;\n      uVar2 = pBVar5->rdx;\n      lVar6 = uVar4 - uVar2;\n      if (uVar4 < uVar2) {\n        bc_num_extend(c,uVar2 - uVar4);\n        lVar6 = 0;\n      }\n      bc_num_subArrays(c->num + lVar6,pBVar5->num,pBVar5->len);\n      bc_num_clean(c);\n    }" if (parenthesized_expression "(sVar3 == 0)" ( (binary_expression "sVar3 == 0" identifier == number_literal) )) (compound_statement "{\n      uVar4 = a->rdx;\n      if (a->rdx <= b->rdx) {\n        uVar4 = b->rdx;\n      }\n      c->len = 0;\n      c->neg = false;\n      c->rdx = uVar4;\n    }" { (expression_statement "uVar4 = a->rdx;" (assignment_expression "uVar4 = a->rdx" identifier = (field_expression "a->rdx" identifier -> field_identifier)) ;) (if_statement "if (a->rdx <= b->rdx) {\n        uVar4 = b->rdx;\n      }" if (parenthesized_expression "(a->rdx <= b->rdx)" ( (binary_expression "a->rdx <= b->rdx" (field_expression "a->rdx" identifier -> field_identifier) <= (field_expression "b->rdx" identifier -> field_identifier)) )) (compound_statement "{\n        uVar4 = b->rdx;\n      }" { (expression_statement "uVar4 = b->rdx;" (assignment_expression "uVar4 = b->rdx" identifier = (field_expression "b->rdx" identifier -> field_identifier)) ;) })) (expression_statement "c->len = 0;" (assignment_expression "c->len = 0" (field_expression "c->len" identifier -> field_identifier) = number_literal) ;) (expression_statement "c->neg = false;" (assignment_expression "c->neg = false" (field_expression "c->neg" identifier -> field_identifier) = false) ;) (expression_statement "c->rdx = uVar4;" (assignment_expression "c->rdx = uVar4" (field_expression "c->rdx" identifier -> field_identifier) = identifier) ;) }) (else_clause "else {\n      if (sVar3 < 1) {\n        pBVar5 = a;\n        if (sub != 0) {\n          bVar7 = bVar7 ^ 1;\n        }\n      }\n      else {\n        pBVar5 = b;\n        b = a;\n        bVar7 = a->neg;\n      }\n      bc_num_copy(c,b);\n      c->neg = (_Bool)bVar7;\n      uVar4 = c->rdx;\n      uVar2 = pBVar5->rdx;\n      lVar6 = uVar4 - uVar2;\n      if (uVar4 < uVar2) {\n        bc_num_extend(c,uVar2 - uVar4);\n        lVar6 = 0;\n      }\n      bc_num_subArrays(c->num + lVar6,pBVar5->num,pBVar5->len);\n      bc_num_clean(c);\n    }" else (compound_statement "{\n      if (sVar3 < 1) {\n        pBVar5 = a;\n        if (sub != 0) {\n          bVar7 = bVar7 ^ 1;\n        }\n      }\n      else {\n        pBVar5 = b;\n        b = a;\n        bVar7 = a->neg;\n      }\n      bc_num_copy(c,b);\n      c->neg = (_Bool)bVar7;\n      uVar4 = c->rdx;\n      uVar2 = pBVar5->rdx;\n      lVar6 = uVar4 - uVar2;\n      if (uVar4 < uVar2) {\n        bc_num_extend(c,uVar2 - uVar4);\n        lVar6 = 0;\n      }\n      bc_num_subArrays(c->num + lVar6,pBVar5->num,pBVar5->len);\n      bc_num_clean(c);\n    }" { (if_statement "if (sVar3 < 1) {\n        pBVar5 = a;\n        if (sub != 0) {\n          bVar7 = bVar7 ^ 1;\n        }\n      }\n      else {\n        pBVar5 = b;\n        b = a;\n        bVar7 = a->neg;\n      }" if (parenthesized_expression "(sVar3 < 1)" ( (binary_expression "sVar3 < 1" identifier < number_literal) )) (compound_statement "{\n        pBVar5 = a;\n        if (sub != 0) {\n          bVar7 = bVar7 ^ 1;\n        }\n      }" { (expression_statement "pBVar5 = a;" (assignment_expression "pBVar5 = a" identifier = identifier) ;) (if_statement "if (sub != 0) {\n          bVar7 = bVar7 ^ 1;\n        }" if (parenthesized_expression "(sub != 0)" ( (binary_expression "sub != 0" identifier != number_literal) )) (compound_statement "{\n          bVar7 = bVar7 ^ 1;\n        }" { (expression_statement "bVar7 = bVar7 ^ 1;" (assignment_expression "bVar7 = bVar7 ^ 1" identifier = (binary_expression "bVar7 ^ 1" identifier ^ number_literal)) ;) })) }) (else_clause "else {\n        pBVar5 = b;\n        b = a;\n        bVar7 = a->neg;\n      }" else (compound_statement "{\n        pBVar5 = b;\n        b = a;\n        bVar7 = a->neg;\n      }" { (expression_statement "pBVar5 = b;" (assignment_expression "pBVar5 = b" identifier = identifier) ;) (expression_statement "b = a;" (assignment_expression "b = a" identifier = identifier) ;) (expression_statement "bVar7 = a->neg;" (assignment_expression "bVar7 = a->neg" identifier = (field_expression "a->neg" identifier -> field_identifier)) ;) }))) (expression_statement "bc_num_copy(c,b);" (call_expression "bc_num_copy(c,b)" identifier (argument_list "(c,b)" ( identifier , identifier ))) ;) (expression_statement "c->neg = (_Bool)bVar7;" (assignment_expression "c->neg = (_Bool)bVar7" (field_expression "c->neg" identifier -> field_identifier) = (cast_expression "(_Bool)bVar7" ( (type_descriptor "_Bool" type_identifier) ) identifier)) ;) (expression_statement "uVar4 = c->rdx;" (assignment_expression "uVar4 = c->rdx" identifier = (field_expression "c->rdx" identifier -> field_identifier)) ;) (expression_statement "uVar2 = pBVar5->rdx;" (assignment_expression "uVar2 = pBVar5->rdx" identifier = (field_expression "pBVar5->rdx" identifier -> field_identifier)) ;) (expression_statement "lVar6 = uVar4 - uVar2;" (assignment_expression "lVar6 = uVar4 - uVar2" identifier = (binary_expression "uVar4 - uVar2" identifier - identifier)) ;) (if_statement "if (uVar4 < uVar2) {\n        bc_num_extend(c,uVar2 - uVar4);\n        lVar6 = 0;\n      }" if (parenthesized_expression "(uVar4 < uVar2)" ( (binary_expression "uVar4 < uVar2" identifier < identifier) )) (compound_statement "{\n        bc_num_extend(c,uVar2 - uVar4);\n        lVar6 = 0;\n      }" { (expression_statement "bc_num_extend(c,uVar2 - uVar4);" (call_expression "bc_num_extend(c,uVar2 - uVar4)" identifier (argument_list "(c,uVar2 - uVar4)" ( identifier , (binary_expression "uVar2 - uVar4" identifier - identifier) ))) ;) (expression_statement "lVar6 = 0;" (assignment_expression "lVar6 = 0" identifier = number_literal) ;) })) (expression_statement "bc_num_subArrays(c->num + lVar6,pBVar5->num,pBVar5->len);" (call_expression "bc_num_subArrays(c->num + lVar6,pBVar5->num,pBVar5->len)" identifier (argument_list "(c->num + lVar6,pBVar5->num,pBVar5->len)" ( (binary_expression "c->num + lVar6" (field_expression "c->num" identifier -> field_identifier) + identifier) , (field_expression "pBVar5->num" identifier -> field_identifier) , (field_expression "pBVar5->len" identifier -> field_identifier) ))) ;) (expression_statement "bc_num_clean(c);" (call_expression "bc_num_clean(c)" identifier (argument_list "(c)" ( identifier ))) ;) }))) }))))) (return_statement "return BC_STATUS_SUCCESS;" return identifier ;) })))
(translation_unit "undefined8 FUN_00113c9b(undefined8 *param_1,undefined8 *param_2,long *param_3,long param_4)\n\n{\n  undefined1 uVar1;\n  ulong uVar2;\n  long lVar3;\n  ulong uVar4;\n  undefined8 *puVar5;\n  byte bVar6;\n  \n  if (param_1[2] == 0) {\n    FUN_0011283a(param_3);\n    if ((param_4 != 0) && (param_3[2] != 0)) {\n      *(byte *)(param_3 + 4) = *(byte *)(param_3 + 4) ^ 1;\n    }\n  }\n  else if (param_2[2] == 0) {\n    FUN_0011283a(param_3,param_1);\n  }\n  else {\n    uVar1 = *(undefined1 *)(param_1 + 4);\n    bVar6 = *(byte *)(param_2 + 4);\n    *(undefined1 *)(param_2 + 4) = 0;\n    *(undefined1 *)(param_1 + 4) = 0;\n    lVar3 = FUN_00111835();\n    *(undefined1 *)(param_1 + 4) = uVar1;\n    *(byte *)(param_2 + 4) = bVar6;\n    if (lVar3 == 0) {\n      uVar4 = param_1[1];\n      if ((ulong)param_1[1] <= (ulong)param_2[1]) {\n        uVar4 = param_2[1];\n      }\n      param_3[2] = 0;\n      *(undefined1 *)(param_3 + 4) = 0;\n      param_3[1] = uVar4;\n    }\n    else {\n      if (lVar3 < 1) {\n        puVar5 = param_1;\n        if (param_4 != 0) {\n          bVar6 = bVar6 ^ 1;\n        }\n      }\n      else {\n        puVar5 = param_2;\n        param_2 = param_1;\n        bVar6 = *(byte *)(param_1 + 4);\n      }\n      FUN_0011283a(param_3,param_2);\n      *(byte *)(param_3 + 4) = bVar6;\n      uVar4 = param_3[1];\n      uVar2 = puVar5[1];\n      lVar3 = uVar4 - uVar2;\n      if (uVar4 < uVar2) {\n        FUN_00112121(param_3,uVar2 - uVar4);\n        lVar3 = 0;\n      }\n      FUN_001117c6(lVar3 + *param_3,*puVar5,puVar5[2]);\n      FUN_00111983(param_3);\n    }\n  }\n  return 0;\n}\n\n" (function_definition "undefined8 FUN_00113c9b(undefined8 *param_1,undefined8 *param_2,long *param_3,long param_4)\n\n{\n  undefined1 uVar1;\n  ulong uVar2;\n  long lVar3;\n  ulong uVar4;\n  undefined8 *puVar5;\n  byte bVar6;\n  \n  if (param_1[2] == 0) {\n    FUN_0011283a(param_3);\n    if ((param_4 != 0) && (param_3[2] != 0)) {\n      *(byte *)(param_3 + 4) = *(byte *)(param_3 + 4) ^ 1;\n    }\n  }\n  else if (param_2[2] == 0) {\n    FUN_0011283a(param_3,param_1);\n  }\n  else {\n    uVar1 = *(undefined1 *)(param_1 + 4);\n    bVar6 = *(byte *)(param_2 + 4);\n    *(undefined1 *)(param_2 + 4) = 0;\n    *(undefined1 *)(param_1 + 4) = 0;\n    lVar3 = FUN_00111835();\n    *(undefined1 *)(param_1 + 4) = uVar1;\n    *(byte *)(param_2 + 4) = bVar6;\n    if (lVar3 == 0) {\n      uVar4 = param_1[1];\n      if ((ulong)param_1[1] <= (ulong)param_2[1]) {\n        uVar4 = param_2[1];\n      }\n      param_3[2] = 0;\n      *(undefined1 *)(param_3 + 4) = 0;\n      param_3[1] = uVar4;\n    }\n    else {\n      if (lVar3 < 1) {\n        puVar5 = param_1;\n        if (param_4 != 0) {\n          bVar6 = bVar6 ^ 1;\n        }\n      }\n      else {\n        puVar5 = param_2;\n        param_2 = param_1;\n        bVar6 = *(byte *)(param_1 + 4);\n      }\n      FUN_0011283a(param_3,param_2);\n      *(byte *)(param_3 + 4) = bVar6;\n      uVar4 = param_3[1];\n      uVar2 = puVar5[1];\n      lVar3 = uVar4 - uVar2;\n      if (uVar4 < uVar2) {\n        FUN_00112121(param_3,uVar2 - uVar4);\n        lVar3 = 0;\n      }\n      FUN_001117c6(lVar3 + *param_3,*puVar5,puVar5[2]);\n      FUN_00111983(param_3);\n    }\n  }\n  return 0;\n}" type_identifier (function_declarator "FUN_00113c9b(undefined8 *param_1,undefined8 *param_2,long *param_3,long param_4)" identifier (parameter_list "(undefined8 *param_1,undefined8 *param_2,long *param_3,long param_4)" ( (parameter_declaration "undefined8 *param_1" type_identifier (pointer_declarator "*param_1" * identifier)) , (parameter_declaration "undefined8 *param_2" type_identifier (pointer_declarator "*param_2" * identifier)) , (parameter_declaration "long *param_3" (sized_type_specifier "long" long) (pointer_declarator "*param_3" * identifier)) , (parameter_declaration "long param_4" (sized_type_specifier "long" long) identifier) ))) (compound_statement "{\n  undefined1 uVar1;\n  ulong uVar2;\n  long lVar3;\n  ulong uVar4;\n  undefined8 *puVar5;\n  byte bVar6;\n  \n  if (param_1[2] == 0) {\n    FUN_0011283a(param_3);\n    if ((param_4 != 0) && (param_3[2] != 0)) {\n      *(byte *)(param_3 + 4) = *(byte *)(param_3 + 4) ^ 1;\n    }\n  }\n  else if (param_2[2] == 0) {\n    FUN_0011283a(param_3,param_1);\n  }\n  else {\n    uVar1 = *(undefined1 *)(param_1 + 4);\n    bVar6 = *(byte *)(param_2 + 4);\n    *(undefined1 *)(param_2 + 4) = 0;\n    *(undefined1 *)(param_1 + 4) = 0;\n    lVar3 = FUN_00111835();\n    *(undefined1 *)(param_1 + 4) = uVar1;\n    *(byte *)(param_2 + 4) = bVar6;\n    if (lVar3 == 0) {\n      uVar4 = param_1[1];\n      if ((ulong)param_1[1] <= (ulong)param_2[1]) {\n        uVar4 = param_2[1];\n      }\n      param_3[2] = 0;\n      *(undefined1 *)(param_3 + 4) = 0;\n      param_3[1] = uVar4;\n    }\n    else {\n      if (lVar3 < 1) {\n        puVar5 = param_1;\n        if (param_4 != 0) {\n          bVar6 = bVar6 ^ 1;\n        }\n      }\n      else {\n        puVar5 = param_2;\n        param_2 = param_1;\n        bVar6 = *(byte *)(param_1 + 4);\n      }\n      FUN_0011283a(param_3,param_2);\n      *(byte *)(param_3 + 4) = bVar6;\n      uVar4 = param_3[1];\n      uVar2 = puVar5[1];\n      lVar3 = uVar4 - uVar2;\n      if (uVar4 < uVar2) {\n        FUN_00112121(param_3,uVar2 - uVar4);\n        lVar3 = 0;\n      }\n      FUN_001117c6(lVar3 + *param_3,*puVar5,puVar5[2]);\n      FUN_00111983(param_3);\n    }\n  }\n  return 0;\n}" { (declaration "undefined1 uVar1;" type_identifier identifier ;) (declaration "ulong uVar2;" type_identifier identifier ;) (declaration "long lVar3;" (sized_type_specifier "long" long) identifier ;) (declaration "ulong uVar4;" type_identifier identifier ;) (declaration "undefined8 *puVar5;" type_identifier (pointer_declarator "*puVar5" * identifier) ;) (declaration "byte bVar6;" type_identifier identifier ;) (if_statement "if (param_1[2] == 0) {\n    FUN_0011283a(param_3);\n    if ((param_4 != 0) && (param_3[2] != 0)) {\n      *(byte *)(param_3 + 4) = *(byte *)(param_3 + 4) ^ 1;\n    }\n  }\n  else if (param_2[2] == 0) {\n    FUN_0011283a(param_3,param_1);\n  }\n  else {\n    uVar1 = *(undefined1 *)(param_1 + 4);\n    bVar6 = *(byte *)(param_2 + 4);\n    *(undefined1 *)(param_2 + 4) = 0;\n    *(undefined1 *)(param_1 + 4) = 0;\n    lVar3 = FUN_00111835();\n    *(undefined1 *)(param_1 + 4) = uVar1;\n    *(byte *)(param_2 + 4) = bVar6;\n    if (lVar3 == 0) {\n      uVar4 = param_1[1];\n      if ((ulong)param_1[1] <= (ulong)param_2[1]) {\n        uVar4 = param_2[1];\n      }\n      param_3[2] = 0;\n      *(undefined1 *)(param_3 + 4) = 0;\n      param_3[1] = uVar4;\n    }\n    else {\n      if (lVar3 < 1) {\n        puVar5 = param_1;\n        if (param_4 != 0) {\n          bVar6 = bVar6 ^ 1;\n        }\n      }\n      else {\n        puVar5 = param_2;\n        param_2 = param_1;\n        bVar6 = *(byte *)(param_1 + 4);\n      }\n      FUN_0011283a(param_3,param_2);\n      *(byte *)(param_3 + 4) = bVar6;\n      uVar4 = param_3[1];\n      uVar2 = puVar5[1];\n      lVar3 = uVar4 - uVar2;\n      if (uVar4 < uVar2) {\n        FUN_00112121(param_3,uVar2 - uVar4);\n        lVar3 = 0;\n      }\n      FUN_001117c6(lVar3 + *param_3,*puVar5,puVar5[2]);\n      FUN_00111983(param_3);\n    }\n  }" if (parenthesized_expression "(param_1[2] == 0)" ( (binary_expression "param_1[2] == 0" (subscript_expression "param_1[2]" identifier [ number_literal ]) == number_literal) )) (compound_statement "{\n    FUN_0011283a(param_3);\n    if ((param_4 != 0) && (param_3[2] != 0)) {\n      *(byte *)(param_3 + 4) = *(byte *)(param_3 + 4) ^ 1;\n    }\n  }" { (expression_statement "FUN_0011283a(param_3);" (call_expression "FUN_0011283a(param_3)" identifier (argument_list "(param_3)" ( identifier ))) ;) (if_statement "if ((param_4 != 0) && (param_3[2] != 0)) {\n      *(byte *)(param_3 + 4) = *(byte *)(param_3 + 4) ^ 1;\n    }" if (parenthesized_expression "((param_4 != 0) && (param_3[2] != 0))" ( (binary_expression "(param_4 != 0) && (param_3[2] != 0)" (parenthesized_expression "(param_4 != 0)" ( (binary_expression "param_4 != 0" identifier != number_literal) )) && (parenthesized_expression "(param_3[2] != 0)" ( (binary_expression "param_3[2] != 0" (subscript_expression "param_3[2]" identifier [ number_literal ]) != number_literal) ))) )) (compound_statement "{\n      *(byte *)(param_3 + 4) = *(byte *)(param_3 + 4) ^ 1;\n    }" { (expression_statement "*(byte *)(param_3 + 4) = *(byte *)(param_3 + 4) ^ 1;" (assignment_expression "*(byte *)(param_3 + 4) = *(byte *)(param_3 + 4) ^ 1" (pointer_expression "*(byte *)(param_3 + 4)" * (cast_expression "(byte *)(param_3 + 4)" ( (type_descriptor "byte *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_3 + 4)" ( (binary_expression "param_3 + 4" identifier + number_literal) )))) = (binary_expression "*(byte *)(param_3 + 4) ^ 1" (pointer_expression "*(byte *)(param_3 + 4)" * (cast_expression "(byte *)(param_3 + 4)" ( (type_descriptor "byte *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_3 + 4)" ( (binary_expression "param_3 + 4" identifier + number_literal) )))) ^ number_literal)) ;) })) }) (else_clause "else if (param_2[2] == 0) {\n    FUN_0011283a(param_3,param_1);\n  }\n  else {\n    uVar1 = *(undefined1 *)(param_1 + 4);\n    bVar6 = *(byte *)(param_2 + 4);\n    *(undefined1 *)(param_2 + 4) = 0;\n    *(undefined1 *)(param_1 + 4) = 0;\n    lVar3 = FUN_00111835();\n    *(undefined1 *)(param_1 + 4) = uVar1;\n    *(byte *)(param_2 + 4) = bVar6;\n    if (lVar3 == 0) {\n      uVar4 = param_1[1];\n      if ((ulong)param_1[1] <= (ulong)param_2[1]) {\n        uVar4 = param_2[1];\n      }\n      param_3[2] = 0;\n      *(undefined1 *)(param_3 + 4) = 0;\n      param_3[1] = uVar4;\n    }\n    else {\n      if (lVar3 < 1) {\n        puVar5 = param_1;\n        if (param_4 != 0) {\n          bVar6 = bVar6 ^ 1;\n        }\n      }\n      else {\n        puVar5 = param_2;\n        param_2 = param_1;\n        bVar6 = *(byte *)(param_1 + 4);\n      }\n      FUN_0011283a(param_3,param_2);\n      *(byte *)(param_3 + 4) = bVar6;\n      uVar4 = param_3[1];\n      uVar2 = puVar5[1];\n      lVar3 = uVar4 - uVar2;\n      if (uVar4 < uVar2) {\n        FUN_00112121(param_3,uVar2 - uVar4);\n        lVar3 = 0;\n      }\n      FUN_001117c6(lVar3 + *param_3,*puVar5,puVar5[2]);\n      FUN_00111983(param_3);\n    }\n  }" else (if_statement "if (param_2[2] == 0) {\n    FUN_0011283a(param_3,param_1);\n  }\n  else {\n    uVar1 = *(undefined1 *)(param_1 + 4);\n    bVar6 = *(byte *)(param_2 + 4);\n    *(undefined1 *)(param_2 + 4) = 0;\n    *(undefined1 *)(param_1 + 4) = 0;\n    lVar3 = FUN_00111835();\n    *(undefined1 *)(param_1 + 4) = uVar1;\n    *(byte *)(param_2 + 4) = bVar6;\n    if (lVar3 == 0) {\n      uVar4 = param_1[1];\n      if ((ulong)param_1[1] <= (ulong)param_2[1]) {\n        uVar4 = param_2[1];\n      }\n      param_3[2] = 0;\n      *(undefined1 *)(param_3 + 4) = 0;\n      param_3[1] = uVar4;\n    }\n    else {\n      if (lVar3 < 1) {\n        puVar5 = param_1;\n        if (param_4 != 0) {\n          bVar6 = bVar6 ^ 1;\n        }\n      }\n      else {\n        puVar5 = param_2;\n        param_2 = param_1;\n        bVar6 = *(byte *)(param_1 + 4);\n      }\n      FUN_0011283a(param_3,param_2);\n      *(byte *)(param_3 + 4) = bVar6;\n      uVar4 = param_3[1];\n      uVar2 = puVar5[1];\n      lVar3 = uVar4 - uVar2;\n      if (uVar4 < uVar2) {\n        FUN_00112121(param_3,uVar2 - uVar4);\n        lVar3 = 0;\n      }\n      FUN_001117c6(lVar3 + *param_3,*puVar5,puVar5[2]);\n      FUN_00111983(param_3);\n    }\n  }" if (parenthesized_expression "(param_2[2] == 0)" ( (binary_expression "param_2[2] == 0" (subscript_expression "param_2[2]" identifier [ number_literal ]) == number_literal) )) (compound_statement "{\n    FUN_0011283a(param_3,param_1);\n  }" { (expression_statement "FUN_0011283a(param_3,param_1);" (call_expression "FUN_0011283a(param_3,param_1)" identifier (argument_list "(param_3,param_1)" ( identifier , identifier ))) ;) }) (else_clause "else {\n    uVar1 = *(undefined1 *)(param_1 + 4);\n    bVar6 = *(byte *)(param_2 + 4);\n    *(undefined1 *)(param_2 + 4) = 0;\n    *(undefined1 *)(param_1 + 4) = 0;\n    lVar3 = FUN_00111835();\n    *(undefined1 *)(param_1 + 4) = uVar1;\n    *(byte *)(param_2 + 4) = bVar6;\n    if (lVar3 == 0) {\n      uVar4 = param_1[1];\n      if ((ulong)param_1[1] <= (ulong)param_2[1]) {\n        uVar4 = param_2[1];\n      }\n      param_3[2] = 0;\n      *(undefined1 *)(param_3 + 4) = 0;\n      param_3[1] = uVar4;\n    }\n    else {\n      if (lVar3 < 1) {\n        puVar5 = param_1;\n        if (param_4 != 0) {\n          bVar6 = bVar6 ^ 1;\n        }\n      }\n      else {\n        puVar5 = param_2;\n        param_2 = param_1;\n        bVar6 = *(byte *)(param_1 + 4);\n      }\n      FUN_0011283a(param_3,param_2);\n      *(byte *)(param_3 + 4) = bVar6;\n      uVar4 = param_3[1];\n      uVar2 = puVar5[1];\n      lVar3 = uVar4 - uVar2;\n      if (uVar4 < uVar2) {\n        FUN_00112121(param_3,uVar2 - uVar4);\n        lVar3 = 0;\n      }\n      FUN_001117c6(lVar3 + *param_3,*puVar5,puVar5[2]);\n      FUN_00111983(param_3);\n    }\n  }" else (compound_statement "{\n    uVar1 = *(undefined1 *)(param_1 + 4);\n    bVar6 = *(byte *)(param_2 + 4);\n    *(undefined1 *)(param_2 + 4) = 0;\n    *(undefined1 *)(param_1 + 4) = 0;\n    lVar3 = FUN_00111835();\n    *(undefined1 *)(param_1 + 4) = uVar1;\n    *(byte *)(param_2 + 4) = bVar6;\n    if (lVar3 == 0) {\n      uVar4 = param_1[1];\n      if ((ulong)param_1[1] <= (ulong)param_2[1]) {\n        uVar4 = param_2[1];\n      }\n      param_3[2] = 0;\n      *(undefined1 *)(param_3 + 4) = 0;\n      param_3[1] = uVar4;\n    }\n    else {\n      if (lVar3 < 1) {\n        puVar5 = param_1;\n        if (param_4 != 0) {\n          bVar6 = bVar6 ^ 1;\n        }\n      }\n      else {\n        puVar5 = param_2;\n        param_2 = param_1;\n        bVar6 = *(byte *)(param_1 + 4);\n      }\n      FUN_0011283a(param_3,param_2);\n      *(byte *)(param_3 + 4) = bVar6;\n      uVar4 = param_3[1];\n      uVar2 = puVar5[1];\n      lVar3 = uVar4 - uVar2;\n      if (uVar4 < uVar2) {\n        FUN_00112121(param_3,uVar2 - uVar4);\n        lVar3 = 0;\n      }\n      FUN_001117c6(lVar3 + *param_3,*puVar5,puVar5[2]);\n      FUN_00111983(param_3);\n    }\n  }" { (expression_statement "uVar1 = *(undefined1 *)(param_1 + 4);" (assignment_expression "uVar1 = *(undefined1 *)(param_1 + 4)" identifier = (pointer_expression "*(undefined1 *)(param_1 + 4)" * (cast_expression "(undefined1 *)(param_1 + 4)" ( (type_descriptor "undefined1 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 4)" ( (binary_expression "param_1 + 4" identifier + number_literal) ))))) ;) (expression_statement "bVar6 = *(byte *)(param_2 + 4);" (assignment_expression "bVar6 = *(byte *)(param_2 + 4)" identifier = (pointer_expression "*(byte *)(param_2 + 4)" * (cast_expression "(byte *)(param_2 + 4)" ( (type_descriptor "byte *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_2 + 4)" ( (binary_expression "param_2 + 4" identifier + number_literal) ))))) ;) (expression_statement "*(undefined1 *)(param_2 + 4) = 0;" (assignment_expression "*(undefined1 *)(param_2 + 4) = 0" (pointer_expression "*(undefined1 *)(param_2 + 4)" * (cast_expression "(undefined1 *)(param_2 + 4)" ( (type_descriptor "undefined1 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_2 + 4)" ( (binary_expression "param_2 + 4" identifier + number_literal) )))) = number_literal) ;) (expression_statement "*(undefined1 *)(param_1 + 4) = 0;" (assignment_expression "*(undefined1 *)(param_1 + 4) = 0" (pointer_expression "*(undefined1 *)(param_1 + 4)" * (cast_expression "(undefined1 *)(param_1 + 4)" ( (type_descriptor "undefined1 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 4)" ( (binary_expression "param_1 + 4" identifier + number_literal) )))) = number_literal) ;) (expression_statement "lVar3 = FUN_00111835();" (assignment_expression "lVar3 = FUN_00111835()" identifier = (call_expression "FUN_00111835()" identifier (argument_list "()" ( )))) ;) (expression_statement "*(undefined1 *)(param_1 + 4) = uVar1;" (assignment_expression "*(undefined1 *)(param_1 + 4) = uVar1" (pointer_expression "*(undefined1 *)(param_1 + 4)" * (cast_expression "(undefined1 *)(param_1 + 4)" ( (type_descriptor "undefined1 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 4)" ( (binary_expression "param_1 + 4" identifier + number_literal) )))) = identifier) ;) (expression_statement "*(byte *)(param_2 + 4) = bVar6;" (assignment_expression "*(byte *)(param_2 + 4) = bVar6" (pointer_expression "*(byte *)(param_2 + 4)" * (cast_expression "(byte *)(param_2 + 4)" ( (type_descriptor "byte *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_2 + 4)" ( (binary_expression "param_2 + 4" identifier + number_literal) )))) = identifier) ;) (if_statement "if (lVar3 == 0) {\n      uVar4 = param_1[1];\n      if ((ulong)param_1[1] <= (ulong)param_2[1]) {\n        uVar4 = param_2[1];\n      }\n      param_3[2] = 0;\n      *(undefined1 *)(param_3 + 4) = 0;\n      param_3[1] = uVar4;\n    }\n    else {\n      if (lVar3 < 1) {\n        puVar5 = param_1;\n        if (param_4 != 0) {\n          bVar6 = bVar6 ^ 1;\n        }\n      }\n      else {\n        puVar5 = param_2;\n        param_2 = param_1;\n        bVar6 = *(byte *)(param_1 + 4);\n      }\n      FUN_0011283a(param_3,param_2);\n      *(byte *)(param_3 + 4) = bVar6;\n      uVar4 = param_3[1];\n      uVar2 = puVar5[1];\n      lVar3 = uVar4 - uVar2;\n      if (uVar4 < uVar2) {\n        FUN_00112121(param_3,uVar2 - uVar4);\n        lVar3 = 0;\n      }\n      FUN_001117c6(lVar3 + *param_3,*puVar5,puVar5[2]);\n      FUN_00111983(param_3);\n    }" if (parenthesized_expression "(lVar3 == 0)" ( (binary_expression "lVar3 == 0" identifier == number_literal) )) (compound_statement "{\n      uVar4 = param_1[1];\n      if ((ulong)param_1[1] <= (ulong)param_2[1]) {\n        uVar4 = param_2[1];\n      }\n      param_3[2] = 0;\n      *(undefined1 *)(param_3 + 4) = 0;\n      param_3[1] = uVar4;\n    }" { (expression_statement "uVar4 = param_1[1];" (assignment_expression "uVar4 = param_1[1]" identifier = (subscript_expression "param_1[1]" identifier [ number_literal ])) ;) (if_statement "if ((ulong)param_1[1] <= (ulong)param_2[1]) {\n        uVar4 = param_2[1];\n      }" if (parenthesized_expression "((ulong)param_1[1] <= (ulong)param_2[1])" ( (binary_expression "(ulong)param_1[1] <= (ulong)param_2[1]" (cast_expression "(ulong)param_1[1]" ( (type_descriptor "ulong" type_identifier) ) (subscript_expression "param_1[1]" identifier [ number_literal ])) <= (cast_expression "(ulong)param_2[1]" ( (type_descriptor "ulong" type_identifier) ) (subscript_expression "param_2[1]" identifier [ number_literal ]))) )) (compound_statement "{\n        uVar4 = param_2[1];\n      }" { (expression_statement "uVar4 = param_2[1];" (assignment_expression "uVar4 = param_2[1]" identifier = (subscript_expression "param_2[1]" identifier [ number_literal ])) ;) })) (expression_statement "param_3[2] = 0;" (assignment_expression "param_3[2] = 0" (subscript_expression "param_3[2]" identifier [ number_literal ]) = number_literal) ;) (expression_statement "*(undefined1 *)(param_3 + 4) = 0;" (assignment_expression "*(undefined1 *)(param_3 + 4) = 0" (pointer_expression "*(undefined1 *)(param_3 + 4)" * (cast_expression "(undefined1 *)(param_3 + 4)" ( (type_descriptor "undefined1 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_3 + 4)" ( (binary_expression "param_3 + 4" identifier + number_literal) )))) = number_literal) ;) (expression_statement "param_3[1] = uVar4;" (assignment_expression "param_3[1] = uVar4" (subscript_expression "param_3[1]" identifier [ number_literal ]) = identifier) ;) }) (else_clause "else {\n      if (lVar3 < 1) {\n        puVar5 = param_1;\n        if (param_4 != 0) {\n          bVar6 = bVar6 ^ 1;\n        }\n      }\n      else {\n        puVar5 = param_2;\n        param_2 = param_1;\n        bVar6 = *(byte *)(param_1 + 4);\n      }\n      FUN_0011283a(param_3,param_2);\n      *(byte *)(param_3 + 4) = bVar6;\n      uVar4 = param_3[1];\n      uVar2 = puVar5[1];\n      lVar3 = uVar4 - uVar2;\n      if (uVar4 < uVar2) {\n        FUN_00112121(param_3,uVar2 - uVar4);\n        lVar3 = 0;\n      }\n      FUN_001117c6(lVar3 + *param_3,*puVar5,puVar5[2]);\n      FUN_00111983(param_3);\n    }" else (compound_statement "{\n      if (lVar3 < 1) {\n        puVar5 = param_1;\n        if (param_4 != 0) {\n          bVar6 = bVar6 ^ 1;\n        }\n      }\n      else {\n        puVar5 = param_2;\n        param_2 = param_1;\n        bVar6 = *(byte *)(param_1 + 4);\n      }\n      FUN_0011283a(param_3,param_2);\n      *(byte *)(param_3 + 4) = bVar6;\n      uVar4 = param_3[1];\n      uVar2 = puVar5[1];\n      lVar3 = uVar4 - uVar2;\n      if (uVar4 < uVar2) {\n        FUN_00112121(param_3,uVar2 - uVar4);\n        lVar3 = 0;\n      }\n      FUN_001117c6(lVar3 + *param_3,*puVar5,puVar5[2]);\n      FUN_00111983(param_3);\n    }" { (if_statement "if (lVar3 < 1) {\n        puVar5 = param_1;\n        if (param_4 != 0) {\n          bVar6 = bVar6 ^ 1;\n        }\n      }\n      else {\n        puVar5 = param_2;\n        param_2 = param_1;\n        bVar6 = *(byte *)(param_1 + 4);\n      }" if (parenthesized_expression "(lVar3 < 1)" ( (binary_expression "lVar3 < 1" identifier < number_literal) )) (compound_statement "{\n        puVar5 = param_1;\n        if (param_4 != 0) {\n          bVar6 = bVar6 ^ 1;\n        }\n      }" { (expression_statement "puVar5 = param_1;" (assignment_expression "puVar5 = param_1" identifier = identifier) ;) (if_statement "if (param_4 != 0) {\n          bVar6 = bVar6 ^ 1;\n        }" if (parenthesized_expression "(param_4 != 0)" ( (binary_expression "param_4 != 0" identifier != number_literal) )) (compound_statement "{\n          bVar6 = bVar6 ^ 1;\n        }" { (expression_statement "bVar6 = bVar6 ^ 1;" (assignment_expression "bVar6 = bVar6 ^ 1" identifier = (binary_expression "bVar6 ^ 1" identifier ^ number_literal)) ;) })) }) (else_clause "else {\n        puVar5 = param_2;\n        param_2 = param_1;\n        bVar6 = *(byte *)(param_1 + 4);\n      }" else (compound_statement "{\n        puVar5 = param_2;\n        param_2 = param_1;\n        bVar6 = *(byte *)(param_1 + 4);\n      }" { (expression_statement "puVar5 = param_2;" (assignment_expression "puVar5 = param_2" identifier = identifier) ;) (expression_statement "param_2 = param_1;" (assignment_expression "param_2 = param_1" identifier = identifier) ;) (expression_statement "bVar6 = *(byte *)(param_1 + 4);" (assignment_expression "bVar6 = *(byte *)(param_1 + 4)" identifier = (pointer_expression "*(byte *)(param_1 + 4)" * (cast_expression "(byte *)(param_1 + 4)" ( (type_descriptor "byte *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 4)" ( (binary_expression "param_1 + 4" identifier + number_literal) ))))) ;) }))) (expression_statement "FUN_0011283a(param_3,param_2);" (call_expression "FUN_0011283a(param_3,param_2)" identifier (argument_list "(param_3,param_2)" ( identifier , identifier ))) ;) (expression_statement "*(byte *)(param_3 + 4) = bVar6;" (assignment_expression "*(byte *)(param_3 + 4) = bVar6" (pointer_expression "*(byte *)(param_3 + 4)" * (cast_expression "(byte *)(param_3 + 4)" ( (type_descriptor "byte *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_3 + 4)" ( (binary_expression "param_3 + 4" identifier + number_literal) )))) = identifier) ;) (expression_statement "uVar4 = param_3[1];" (assignment_expression "uVar4 = param_3[1]" identifier = (subscript_expression "param_3[1]" identifier [ number_literal ])) ;) (expression_statement "uVar2 = puVar5[1];" (assignment_expression "uVar2 = puVar5[1]" identifier = (subscript_expression "puVar5[1]" identifier [ number_literal ])) ;) (expression_statement "lVar3 = uVar4 - uVar2;" (assignment_expression "lVar3 = uVar4 - uVar2" identifier = (binary_expression "uVar4 - uVar2" identifier - identifier)) ;) (if_statement "if (uVar4 < uVar2) {\n        FUN_00112121(param_3,uVar2 - uVar4);\n        lVar3 = 0;\n      }" if (parenthesized_expression "(uVar4 < uVar2)" ( (binary_expression "uVar4 < uVar2" identifier < identifier) )) (compound_statement "{\n        FUN_00112121(param_3,uVar2 - uVar4);\n        lVar3 = 0;\n      }" { (expression_statement "FUN_00112121(param_3,uVar2 - uVar4);" (call_expression "FUN_00112121(param_3,uVar2 - uVar4)" identifier (argument_list "(param_3,uVar2 - uVar4)" ( identifier , (binary_expression "uVar2 - uVar4" identifier - identifier) ))) ;) (expression_statement "lVar3 = 0;" (assignment_expression "lVar3 = 0" identifier = number_literal) ;) })) (expression_statement "FUN_001117c6(lVar3 + *param_3,*puVar5,puVar5[2]);" (call_expression "FUN_001117c6(lVar3 + *param_3,*puVar5,puVar5[2])" identifier (argument_list "(lVar3 + *param_3,*puVar5,puVar5[2])" ( (binary_expression "lVar3 + *param_3" identifier + (pointer_expression "*param_3" * identifier)) , (pointer_expression "*puVar5" * identifier) , (subscript_expression "puVar5[2]" identifier [ number_literal ]) ))) ;) (expression_statement "FUN_00111983(param_3);" (call_expression "FUN_00111983(param_3)" identifier (argument_list "(param_3)" ( identifier ))) ;) }))) }))))) (return_statement "return 0;" return number_literal ;) })))
(translation_unit (function_definition TYPE (function_declarator IDENT (parameter_list ( (parameter_declaration TYPE (pointer_declarator * IDENT)) , (parameter_declaration TYPE (pointer_declarator * IDENT)) , (parameter_declaration (sized_type_specifier long) (pointer_declarator * IDENT)) , (parameter_declaration (sized_type_specifier long) IDENT) ))) (compound_statement { (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration (sized_type_specifier long) IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE IDENT ;) (if_statement if (parenthesized_expression ( (binary_expression (subscript_expression IDENT [ LIT ]) == LIT) )) (compound_statement { (expression_statement (call_expression IDENT (argument_list ( IDENT ))) ;) (if_statement if (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression IDENT != LIT) )) && (parenthesized_expression ( (binary_expression (subscript_expression IDENT [ LIT ]) != LIT) ))) )) (compound_statement { (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) = (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) ^ LIT)) ;) })) }) (else_clause else (if_statement if (parenthesized_expression ( (binary_expression (subscript_expression IDENT [ LIT ]) == LIT) )) (compound_statement { (expression_statement (call_expression IDENT (argument_list ( IDENT , IDENT ))) ;) }) (else_clause else (compound_statement { (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 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 IDENT + LIT) )))) = LIT) ;) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) = LIT) ;) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( )))) ;) (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 (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) = IDENT) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT == LIT) )) (compound_statement { (expression_statement (assignment_expression IDENT = (subscript_expression IDENT [ LIT ])) ;) (if_statement if (parenthesized_expression ( (binary_expression (cast_expression ( (type_descriptor TYPE) ) (subscript_expression IDENT [ LIT ])) <= (cast_expression ( (type_descriptor TYPE) ) (subscript_expression IDENT [ LIT ]))) )) (compound_statement { (expression_statement (assignment_expression IDENT = (subscript_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 IDENT + LIT) )))) = LIT) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = IDENT) ;) }) (else_clause else (compound_statement { (if_statement if (parenthesized_expression ( (binary_expression IDENT < LIT) )) (compound_statement { (expression_statement (assignment_expression IDENT = IDENT) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT != LIT) )) (compound_statement { (expression_statement (assignment_expression IDENT = (binary_expression IDENT ^ LIT)) ;) })) }) (else_clause else (compound_statement { (expression_statement (assignment_expression IDENT = 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) ))))) ;) }))) (expression_statement (call_expression IDENT (argument_list ( IDENT , IDENT ))) ;) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) = IDENT) ;) (expression_statement (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 IDENT < IDENT) )) (compound_statement { (expression_statement (call_expression IDENT (argument_list ( IDENT , (binary_expression IDENT - IDENT) ))) ;) (expression_statement (assignment_expression IDENT = LIT) ;) })) (expression_statement (call_expression IDENT (argument_list ( (binary_expression IDENT + (pointer_expression * IDENT)) , (pointer_expression * IDENT) , (subscript_expression IDENT [ LIT ]) ))) ;) (expression_statement (call_expression IDENT (argument_list ( IDENT ))) ;) }))) }))))) (return_statement return LIT ;) })))
(function_definition "undefined8 FUN_00113c9b(undefined8 *param_1,undefined8 *param_2,long *param_3,long param_4)\n\n{\n  undefined1 uVar1;\n  ulong uVar2;\n  long lVar3;\n  ulong uVar4;\n  undefined8 *puVar5;\n  byte bVar6;\n  \n  if (param_1[2] == 0) {\n    FUN_0011283a(param_3);\n    if ((param_4 != 0) && (param_3[2] != 0)) {\n      *(byte *)(param_3 + 4) = *(byte *)(param_3 + 4) ^ 1;\n    }\n  }\n  else if (param_2[2] == 0) {\n    FUN_0011283a(param_3,param_1);\n  }\n  else {\n    uVar1 = *(undefined1 *)(param_1 + 4);\n    bVar6 = *(byte *)(param_2 + 4);\n    *(undefined1 *)(param_2 + 4) = 0;\n    *(undefined1 *)(param_1 + 4) = 0;\n    lVar3 = FUN_00111835();\n    *(undefined1 *)(param_1 + 4) = uVar1;\n    *(byte *)(param_2 + 4) = bVar6;\n    if (lVar3 == 0) {\n      uVar4 = param_1[1];\n      if ((ulong)param_1[1] <= (ulong)param_2[1]) {\n        uVar4 = param_2[1];\n      }\n      param_3[2] = 0;\n      *(undefined1 *)(param_3 + 4) = 0;\n      param_3[1] = uVar4;\n    }\n    else {\n      if (lVar3 < 1) {\n        puVar5 = param_1;\n        if (param_4 != 0) {\n          bVar6 = bVar6 ^ 1;\n        }\n      }\n      else {\n        puVar5 = param_2;\n        param_2 = param_1;\n        bVar6 = *(byte *)(param_1 + 4);\n      }\n      FUN_0011283a(param_3,param_2);\n      *(byte *)(param_3 + 4) = bVar6;\n      uVar4 = param_3[1];\n      uVar2 = puVar5[1];\n      lVar3 = uVar4 - uVar2;\n      if (uVar4 < uVar2) {\n        FUN_00112121(param_3,uVar2 - uVar4);\n        lVar3 = 0;\n      }\n      FUN_001117c6(lVar3 + *param_3,*puVar5,puVar5[2]);\n      FUN_00111983(param_3);\n    }\n  }\n  return 0;\n}" (type_identifier "undefined8") (function_declarator "FUN_00113c9b(undefined8 *param_1,undefined8 *param_2,long *param_3,long param_4)" (identifier "FUN_00113c9b") (parameter_list "(undefined8 *param_1,undefined8 *param_2,long *param_3,long param_4)" (( "(") (parameter_declaration "undefined8 *param_1" (type_identifier "undefined8") (pointer_declarator "*param_1" (* "*") (identifier "param_1"))) (, ",") (parameter_declaration "undefined8 *param_2" (type_identifier "undefined8") (pointer_declarator "*param_2" (* "*") (identifier "param_2"))) (, ",") (parameter_declaration "long *param_3" (sized_type_specifier "long" (long "long")) (pointer_declarator "*param_3" (* "*") (identifier "param_3"))) (, ",") (parameter_declaration "long param_4" (sized_type_specifier "long" (long "long")) (identifier "param_4")) () ")"))) (compound_statement "{\n  undefined1 uVar1;\n  ulong uVar2;\n  long lVar3;\n  ulong uVar4;\n  undefined8 *puVar5;\n  byte bVar6;\n  \n  if (param_1[2] == 0) {\n    FUN_0011283a(param_3);\n    if ((param_4 != 0) && (param_3[2] != 0)) {\n      *(byte *)(param_3 + 4) = *(byte *)(param_3 + 4) ^ 1;\n    }\n  }\n  else if (param_2[2] == 0) {\n    FUN_0011283a(param_3,param_1);\n  }\n  else {\n    uVar1 = *(undefined1 *)(param_1 + 4);\n    bVar6 = *(byte *)(param_2 + 4);\n    *(undefined1 *)(param_2 + 4) = 0;\n    *(undefined1 *)(param_1 + 4) = 0;\n    lVar3 = FUN_00111835();\n    *(undefined1 *)(param_1 + 4) = uVar1;\n    *(byte *)(param_2 + 4) = bVar6;\n    if (lVar3 == 0) {\n      uVar4 = param_1[1];\n      if ((ulong)param_1[1] <= (ulong)param_2[1]) {\n        uVar4 = param_2[1];\n      }\n      param_3[2] = 0;\n      *(undefined1 *)(param_3 + 4) = 0;\n      param_3[1] = uVar4;\n    }\n    else {\n      if (lVar3 < 1) {\n        puVar5 = param_1;\n        if (param_4 != 0) {\n          bVar6 = bVar6 ^ 1;\n        }\n      }\n      else {\n        puVar5 = param_2;\n        param_2 = param_1;\n        bVar6 = *(byte *)(param_1 + 4);\n      }\n      FUN_0011283a(param_3,param_2);\n      *(byte *)(param_3 + 4) = bVar6;\n      uVar4 = param_3[1];\n      uVar2 = puVar5[1];\n      lVar3 = uVar4 - uVar2;\n      if (uVar4 < uVar2) {\n        FUN_00112121(param_3,uVar2 - uVar4);\n        lVar3 = 0;\n      }\n      FUN_001117c6(lVar3 + *param_3,*puVar5,puVar5[2]);\n      FUN_00111983(param_3);\n    }\n  }\n  return 0;\n}" ({ "{") (declaration "undefined1 uVar1;" (type_identifier "undefined1") (identifier "uVar1") (; ";")) (declaration "ulong uVar2;" (type_identifier "ulong") (identifier "uVar2") (; ";")) (declaration "long lVar3;" (sized_type_specifier "long" (long "long")) (identifier "lVar3") (; ";")) (declaration "ulong uVar4;" (type_identifier "ulong") (identifier "uVar4") (; ";")) (declaration "undefined8 *puVar5;" (type_identifier "undefined8") (pointer_declarator "*puVar5" (* "*") (identifier "puVar5")) (; ";")) (declaration "byte bVar6;" (type_identifier "byte") (identifier "bVar6") (; ";")) (if_statement "if (param_1[2] == 0) {\n    FUN_0011283a(param_3);\n    if ((param_4 != 0) && (param_3[2] != 0)) {\n      *(byte *)(param_3 + 4) = *(byte *)(param_3 + 4) ^ 1;\n    }\n  }\n  else if (param_2[2] == 0) {\n    FUN_0011283a(param_3,param_1);\n  }\n  else {\n    uVar1 = *(undefined1 *)(param_1 + 4);\n    bVar6 = *(byte *)(param_2 + 4);\n    *(undefined1 *)(param_2 + 4) = 0;\n    *(undefined1 *)(param_1 + 4) = 0;\n    lVar3 = FUN_00111835();\n    *(undefined1 *)(param_1 + 4) = uVar1;\n    *(byte *)(param_2 + 4) = bVar6;\n    if (lVar3 == 0) {\n      uVar4 = param_1[1];\n      if ((ulong)param_1[1] <= (ulong)param_2[1]) {\n        uVar4 = param_2[1];\n      }\n      param_3[2] = 0;\n      *(undefined1 *)(param_3 + 4) = 0;\n      param_3[1] = uVar4;\n    }\n    else {\n      if (lVar3 < 1) {\n        puVar5 = param_1;\n        if (param_4 != 0) {\n          bVar6 = bVar6 ^ 1;\n        }\n      }\n      else {\n        puVar5 = param_2;\n        param_2 = param_1;\n        bVar6 = *(byte *)(param_1 + 4);\n      }\n      FUN_0011283a(param_3,param_2);\n      *(byte *)(param_3 + 4) = bVar6;\n      uVar4 = param_3[1];\n      uVar2 = puVar5[1];\n      lVar3 = uVar4 - uVar2;\n      if (uVar4 < uVar2) {\n        FUN_00112121(param_3,uVar2 - uVar4);\n        lVar3 = 0;\n      }\n      FUN_001117c6(lVar3 + *param_3,*puVar5,puVar5[2]);\n      FUN_00111983(param_3);\n    }\n  }" (if "if") (parenthesized_expression "(param_1[2] == 0)" (( "(") (binary_expression "param_1[2] == 0" (subscript_expression "param_1[2]" (identifier "param_1") ([ "[") (number_literal "2") (] "]")) (== "==") (number_literal "0")) () ")")) (compound_statement "{\n    FUN_0011283a(param_3);\n    if ((param_4 != 0) && (param_3[2] != 0)) {\n      *(byte *)(param_3 + 4) = *(byte *)(param_3 + 4) ^ 1;\n    }\n  }" ({ "{") (expression_statement "FUN_0011283a(param_3);" (call_expression "FUN_0011283a(param_3)" (identifier "FUN_0011283a") (argument_list "(param_3)" (( "(") (identifier "param_3") () ")"))) (; ";")) (if_statement "if ((param_4 != 0) && (param_3[2] != 0)) {\n      *(byte *)(param_3 + 4) = *(byte *)(param_3 + 4) ^ 1;\n    }" (if "if") (parenthesized_expression "((param_4 != 0) && (param_3[2] != 0))" (( "(") (binary_expression "(param_4 != 0) && (param_3[2] != 0)" (parenthesized_expression "(param_4 != 0)" (( "(") (binary_expression "param_4 != 0" (identifier "param_4") (!= "!=") (number_literal "0")) () ")")) (&& "&&") (parenthesized_expression "(param_3[2] != 0)" (( "(") (binary_expression "param_3[2] != 0" (subscript_expression "param_3[2]" (identifier "param_3") ([ "[") (number_literal "2") (] "]")) (!= "!=") (number_literal "0")) () ")"))) () ")")) (compound_statement "{\n      *(byte *)(param_3 + 4) = *(byte *)(param_3 + 4) ^ 1;\n    }" ({ "{") (expression_statement "*(byte *)(param_3 + 4) = *(byte *)(param_3 + 4) ^ 1;" (assignment_expression "*(byte *)(param_3 + 4) = *(byte *)(param_3 + 4) ^ 1" (pointer_expression "*(byte *)(param_3 + 4)" (* "*") (cast_expression "(byte *)(param_3 + 4)" (( "(") (type_descriptor "byte *" (type_identifier "byte") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_3 + 4)" (( "(") (binary_expression "param_3 + 4" (identifier "param_3") (+ "+") (number_literal "4")) () ")")))) (= "=") (binary_expression "*(byte *)(param_3 + 4) ^ 1" (pointer_expression "*(byte *)(param_3 + 4)" (* "*") (cast_expression "(byte *)(param_3 + 4)" (( "(") (type_descriptor "byte *" (type_identifier "byte") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_3 + 4)" (( "(") (binary_expression "param_3 + 4" (identifier "param_3") (+ "+") (number_literal "4")) () ")")))) (^ "^") (number_literal "1"))) (; ";")) (} "}"))) (} "}")) (else_clause "else if (param_2[2] == 0) {\n    FUN_0011283a(param_3,param_1);\n  }\n  else {\n    uVar1 = *(undefined1 *)(param_1 + 4);\n    bVar6 = *(byte *)(param_2 + 4);\n    *(undefined1 *)(param_2 + 4) = 0;\n    *(undefined1 *)(param_1 + 4) = 0;\n    lVar3 = FUN_00111835();\n    *(undefined1 *)(param_1 + 4) = uVar1;\n    *(byte *)(param_2 + 4) = bVar6;\n    if (lVar3 == 0) {\n      uVar4 = param_1[1];\n      if ((ulong)param_1[1] <= (ulong)param_2[1]) {\n        uVar4 = param_2[1];\n      }\n      param_3[2] = 0;\n      *(undefined1 *)(param_3 + 4) = 0;\n      param_3[1] = uVar4;\n    }\n    else {\n      if (lVar3 < 1) {\n        puVar5 = param_1;\n        if (param_4 != 0) {\n          bVar6 = bVar6 ^ 1;\n        }\n      }\n      else {\n        puVar5 = param_2;\n        param_2 = param_1;\n        bVar6 = *(byte *)(param_1 + 4);\n      }\n      FUN_0011283a(param_3,param_2);\n      *(byte *)(param_3 + 4) = bVar6;\n      uVar4 = param_3[1];\n      uVar2 = puVar5[1];\n      lVar3 = uVar4 - uVar2;\n      if (uVar4 < uVar2) {\n        FUN_00112121(param_3,uVar2 - uVar4);\n        lVar3 = 0;\n      }\n      FUN_001117c6(lVar3 + *param_3,*puVar5,puVar5[2]);\n      FUN_00111983(param_3);\n    }\n  }" (else "else") (if_statement "if (param_2[2] == 0) {\n    FUN_0011283a(param_3,param_1);\n  }\n  else {\n    uVar1 = *(undefined1 *)(param_1 + 4);\n    bVar6 = *(byte *)(param_2 + 4);\n    *(undefined1 *)(param_2 + 4) = 0;\n    *(undefined1 *)(param_1 + 4) = 0;\n    lVar3 = FUN_00111835();\n    *(undefined1 *)(param_1 + 4) = uVar1;\n    *(byte *)(param_2 + 4) = bVar6;\n    if (lVar3 == 0) {\n      uVar4 = param_1[1];\n      if ((ulong)param_1[1] <= (ulong)param_2[1]) {\n        uVar4 = param_2[1];\n      }\n      param_3[2] = 0;\n      *(undefined1 *)(param_3 + 4) = 0;\n      param_3[1] = uVar4;\n    }\n    else {\n      if (lVar3 < 1) {\n        puVar5 = param_1;\n        if (param_4 != 0) {\n          bVar6 = bVar6 ^ 1;\n        }\n      }\n      else {\n        puVar5 = param_2;\n        param_2 = param_1;\n        bVar6 = *(byte *)(param_1 + 4);\n      }\n      FUN_0011283a(param_3,param_2);\n      *(byte *)(param_3 + 4) = bVar6;\n      uVar4 = param_3[1];\n      uVar2 = puVar5[1];\n      lVar3 = uVar4 - uVar2;\n      if (uVar4 < uVar2) {\n        FUN_00112121(param_3,uVar2 - uVar4);\n        lVar3 = 0;\n      }\n      FUN_001117c6(lVar3 + *param_3,*puVar5,puVar5[2]);\n      FUN_00111983(param_3);\n    }\n  }" (if "if") (parenthesized_expression "(param_2[2] == 0)" (( "(") (binary_expression "param_2[2] == 0" (subscript_expression "param_2[2]" (identifier "param_2") ([ "[") (number_literal "2") (] "]")) (== "==") (number_literal "0")) () ")")) (compound_statement "{\n    FUN_0011283a(param_3,param_1);\n  }" ({ "{") (expression_statement "FUN_0011283a(param_3,param_1);" (call_expression "FUN_0011283a(param_3,param_1)" (identifier "FUN_0011283a") (argument_list "(param_3,param_1)" (( "(") (identifier "param_3") (, ",") (identifier "param_1") () ")"))) (; ";")) (} "}")) (else_clause "else {\n    uVar1 = *(undefined1 *)(param_1 + 4);\n    bVar6 = *(byte *)(param_2 + 4);\n    *(undefined1 *)(param_2 + 4) = 0;\n    *(undefined1 *)(param_1 + 4) = 0;\n    lVar3 = FUN_00111835();\n    *(undefined1 *)(param_1 + 4) = uVar1;\n    *(byte *)(param_2 + 4) = bVar6;\n    if (lVar3 == 0) {\n      uVar4 = param_1[1];\n      if ((ulong)param_1[1] <= (ulong)param_2[1]) {\n        uVar4 = param_2[1];\n      }\n      param_3[2] = 0;\n      *(undefined1 *)(param_3 + 4) = 0;\n      param_3[1] = uVar4;\n    }\n    else {\n      if (lVar3 < 1) {\n        puVar5 = param_1;\n        if (param_4 != 0) {\n          bVar6 = bVar6 ^ 1;\n        }\n      }\n      else {\n        puVar5 = param_2;\n        param_2 = param_1;\n        bVar6 = *(byte *)(param_1 + 4);\n      }\n      FUN_0011283a(param_3,param_2);\n      *(byte *)(param_3 + 4) = bVar6;\n      uVar4 = param_3[1];\n      uVar2 = puVar5[1];\n      lVar3 = uVar4 - uVar2;\n      if (uVar4 < uVar2) {\n        FUN_00112121(param_3,uVar2 - uVar4);\n        lVar3 = 0;\n      }\n      FUN_001117c6(lVar3 + *param_3,*puVar5,puVar5[2]);\n      FUN_00111983(param_3);\n    }\n  }" (else "else") (compound_statement "{\n    uVar1 = *(undefined1 *)(param_1 + 4);\n    bVar6 = *(byte *)(param_2 + 4);\n    *(undefined1 *)(param_2 + 4) = 0;\n    *(undefined1 *)(param_1 + 4) = 0;\n    lVar3 = FUN_00111835();\n    *(undefined1 *)(param_1 + 4) = uVar1;\n    *(byte *)(param_2 + 4) = bVar6;\n    if (lVar3 == 0) {\n      uVar4 = param_1[1];\n      if ((ulong)param_1[1] <= (ulong)param_2[1]) {\n        uVar4 = param_2[1];\n      }\n      param_3[2] = 0;\n      *(undefined1 *)(param_3 + 4) = 0;\n      param_3[1] = uVar4;\n    }\n    else {\n      if (lVar3 < 1) {\n        puVar5 = param_1;\n        if (param_4 != 0) {\n          bVar6 = bVar6 ^ 1;\n        }\n      }\n      else {\n        puVar5 = param_2;\n        param_2 = param_1;\n        bVar6 = *(byte *)(param_1 + 4);\n      }\n      FUN_0011283a(param_3,param_2);\n      *(byte *)(param_3 + 4) = bVar6;\n      uVar4 = param_3[1];\n      uVar2 = puVar5[1];\n      lVar3 = uVar4 - uVar2;\n      if (uVar4 < uVar2) {\n        FUN_00112121(param_3,uVar2 - uVar4);\n        lVar3 = 0;\n      }\n      FUN_001117c6(lVar3 + *param_3,*puVar5,puVar5[2]);\n      FUN_00111983(param_3);\n    }\n  }" ({ "{") (expression_statement "uVar1 = *(undefined1 *)(param_1 + 4);" (assignment_expression "uVar1 = *(undefined1 *)(param_1 + 4)" (identifier "uVar1") (= "=") (pointer_expression "*(undefined1 *)(param_1 + 4)" (* "*") (cast_expression "(undefined1 *)(param_1 + 4)" (( "(") (type_descriptor "undefined1 *" (type_identifier "undefined1") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 4)" (( "(") (binary_expression "param_1 + 4" (identifier "param_1") (+ "+") (number_literal "4")) () ")"))))) (; ";")) (expression_statement "bVar6 = *(byte *)(param_2 + 4);" (assignment_expression "bVar6 = *(byte *)(param_2 + 4)" (identifier "bVar6") (= "=") (pointer_expression "*(byte *)(param_2 + 4)" (* "*") (cast_expression "(byte *)(param_2 + 4)" (( "(") (type_descriptor "byte *" (type_identifier "byte") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_2 + 4)" (( "(") (binary_expression "param_2 + 4" (identifier "param_2") (+ "+") (number_literal "4")) () ")"))))) (; ";")) (expression_statement "*(undefined1 *)(param_2 + 4) = 0;" (assignment_expression "*(undefined1 *)(param_2 + 4) = 0" (pointer_expression "*(undefined1 *)(param_2 + 4)" (* "*") (cast_expression "(undefined1 *)(param_2 + 4)" (( "(") (type_descriptor "undefined1 *" (type_identifier "undefined1") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_2 + 4)" (( "(") (binary_expression "param_2 + 4" (identifier "param_2") (+ "+") (number_literal "4")) () ")")))) (= "=") (number_literal "0")) (; ";")) (expression_statement "*(undefined1 *)(param_1 + 4) = 0;" (assignment_expression "*(undefined1 *)(param_1 + 4) = 0" (pointer_expression "*(undefined1 *)(param_1 + 4)" (* "*") (cast_expression "(undefined1 *)(param_1 + 4)" (( "(") (type_descriptor "undefined1 *" (type_identifier "undefined1") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 4)" (( "(") (binary_expression "param_1 + 4" (identifier "param_1") (+ "+") (number_literal "4")) () ")")))) (= "=") (number_literal "0")) (; ";")) (expression_statement "lVar3 = FUN_00111835();" (assignment_expression "lVar3 = FUN_00111835()" (identifier "lVar3") (= "=") (call_expression "FUN_00111835()" (identifier "FUN_00111835") (argument_list "()" (( "(") () ")")))) (; ";")) (expression_statement "*(undefined1 *)(param_1 + 4) = uVar1;" (assignment_expression "*(undefined1 *)(param_1 + 4) = uVar1" (pointer_expression "*(undefined1 *)(param_1 + 4)" (* "*") (cast_expression "(undefined1 *)(param_1 + 4)" (( "(") (type_descriptor "undefined1 *" (type_identifier "undefined1") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 4)" (( "(") (binary_expression "param_1 + 4" (identifier "param_1") (+ "+") (number_literal "4")) () ")")))) (= "=") (identifier "uVar1")) (; ";")) (expression_statement "*(byte *)(param_2 + 4) = bVar6;" (assignment_expression "*(byte *)(param_2 + 4) = bVar6" (pointer_expression "*(byte *)(param_2 + 4)" (* "*") (cast_expression "(byte *)(param_2 + 4)" (( "(") (type_descriptor "byte *" (type_identifier "byte") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_2 + 4)" (( "(") (binary_expression "param_2 + 4" (identifier "param_2") (+ "+") (number_literal "4")) () ")")))) (= "=") (identifier "bVar6")) (; ";")) (if_statement "if (lVar3 == 0) {\n      uVar4 = param_1[1];\n      if ((ulong)param_1[1] <= (ulong)param_2[1]) {\n        uVar4 = param_2[1];\n      }\n      param_3[2] = 0;\n      *(undefined1 *)(param_3 + 4) = 0;\n      param_3[1] = uVar4;\n    }\n    else {\n      if (lVar3 < 1) {\n        puVar5 = param_1;\n        if (param_4 != 0) {\n          bVar6 = bVar6 ^ 1;\n        }\n      }\n      else {\n        puVar5 = param_2;\n        param_2 = param_1;\n        bVar6 = *(byte *)(param_1 + 4);\n      }\n      FUN_0011283a(param_3,param_2);\n      *(byte *)(param_3 + 4) = bVar6;\n      uVar4 = param_3[1];\n      uVar2 = puVar5[1];\n      lVar3 = uVar4 - uVar2;\n      if (uVar4 < uVar2) {\n        FUN_00112121(param_3,uVar2 - uVar4);\n        lVar3 = 0;\n      }\n      FUN_001117c6(lVar3 + *param_3,*puVar5,puVar5[2]);\n      FUN_00111983(param_3);\n    }" (if "if") (parenthesized_expression "(lVar3 == 0)" (( "(") (binary_expression "lVar3 == 0" (identifier "lVar3") (== "==") (number_literal "0")) () ")")) (compound_statement "{\n      uVar4 = param_1[1];\n      if ((ulong)param_1[1] <= (ulong)param_2[1]) {\n        uVar4 = param_2[1];\n      }\n      param_3[2] = 0;\n      *(undefined1 *)(param_3 + 4) = 0;\n      param_3[1] = uVar4;\n    }" ({ "{") (expression_statement "uVar4 = param_1[1];" (assignment_expression "uVar4 = param_1[1]" (identifier "uVar4") (= "=") (subscript_expression "param_1[1]" (identifier "param_1") ([ "[") (number_literal "1") (] "]"))) (; ";")) (if_statement "if ((ulong)param_1[1] <= (ulong)param_2[1]) {\n        uVar4 = param_2[1];\n      }" (if "if") (parenthesized_expression "((ulong)param_1[1] <= (ulong)param_2[1])" (( "(") (binary_expression "(ulong)param_1[1] <= (ulong)param_2[1]" (cast_expression "(ulong)param_1[1]" (( "(") (type_descriptor "ulong" (type_identifier "ulong")) () ")") (subscript_expression "param_1[1]" (identifier "param_1") ([ "[") (number_literal "1") (] "]"))) (<= "<=") (cast_expression "(ulong)param_2[1]" (( "(") (type_descriptor "ulong" (type_identifier "ulong")) () ")") (subscript_expression "param_2[1]" (identifier "param_2") ([ "[") (number_literal "1") (] "]")))) () ")")) (compound_statement "{\n        uVar4 = param_2[1];\n      }" ({ "{") (expression_statement "uVar4 = param_2[1];" (assignment_expression "uVar4 = param_2[1]" (identifier "uVar4") (= "=") (subscript_expression "param_2[1]" (identifier "param_2") ([ "[") (number_literal "1") (] "]"))) (; ";")) (} "}"))) (expression_statement "param_3[2] = 0;" (assignment_expression "param_3[2] = 0" (subscript_expression "param_3[2]" (identifier "param_3") ([ "[") (number_literal "2") (] "]")) (= "=") (number_literal "0")) (; ";")) (expression_statement "*(undefined1 *)(param_3 + 4) = 0;" (assignment_expression "*(undefined1 *)(param_3 + 4) = 0" (pointer_expression "*(undefined1 *)(param_3 + 4)" (* "*") (cast_expression "(undefined1 *)(param_3 + 4)" (( "(") (type_descriptor "undefined1 *" (type_identifier "undefined1") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_3 + 4)" (( "(") (binary_expression "param_3 + 4" (identifier "param_3") (+ "+") (number_literal "4")) () ")")))) (= "=") (number_literal "0")) (; ";")) (expression_statement "param_3[1] = uVar4;" (assignment_expression "param_3[1] = uVar4" (subscript_expression "param_3[1]" (identifier "param_3") ([ "[") (number_literal "1") (] "]")) (= "=") (identifier "uVar4")) (; ";")) (} "}")) (else_clause "else {\n      if (lVar3 < 1) {\n        puVar5 = param_1;\n        if (param_4 != 0) {\n          bVar6 = bVar6 ^ 1;\n        }\n      }\n      else {\n        puVar5 = param_2;\n        param_2 = param_1;\n        bVar6 = *(byte *)(param_1 + 4);\n      }\n      FUN_0011283a(param_3,param_2);\n      *(byte *)(param_3 + 4) = bVar6;\n      uVar4 = param_3[1];\n      uVar2 = puVar5[1];\n      lVar3 = uVar4 - uVar2;\n      if (uVar4 < uVar2) {\n        FUN_00112121(param_3,uVar2 - uVar4);\n        lVar3 = 0;\n      }\n      FUN_001117c6(lVar3 + *param_3,*puVar5,puVar5[2]);\n      FUN_00111983(param_3);\n    }" (else "else") (compound_statement "{\n      if (lVar3 < 1) {\n        puVar5 = param_1;\n        if (param_4 != 0) {\n          bVar6 = bVar6 ^ 1;\n        }\n      }\n      else {\n        puVar5 = param_2;\n        param_2 = param_1;\n        bVar6 = *(byte *)(param_1 + 4);\n      }\n      FUN_0011283a(param_3,param_2);\n      *(byte *)(param_3 + 4) = bVar6;\n      uVar4 = param_3[1];\n      uVar2 = puVar5[1];\n      lVar3 = uVar4 - uVar2;\n      if (uVar4 < uVar2) {\n        FUN_00112121(param_3,uVar2 - uVar4);\n        lVar3 = 0;\n      }\n      FUN_001117c6(lVar3 + *param_3,*puVar5,puVar5[2]);\n      FUN_00111983(param_3);\n    }" ({ "{") (if_statement "if (lVar3 < 1) {\n        puVar5 = param_1;\n        if (param_4 != 0) {\n          bVar6 = bVar6 ^ 1;\n        }\n      }\n      else {\n        puVar5 = param_2;\n        param_2 = param_1;\n        bVar6 = *(byte *)(param_1 + 4);\n      }" (if "if") (parenthesized_expression "(lVar3 < 1)" (( "(") (binary_expression "lVar3 < 1" (identifier "lVar3") (< "<") (number_literal "1")) () ")")) (compound_statement "{\n        puVar5 = param_1;\n        if (param_4 != 0) {\n          bVar6 = bVar6 ^ 1;\n        }\n      }" ({ "{") (expression_statement "puVar5 = param_1;" (assignment_expression "puVar5 = param_1" (identifier "puVar5") (= "=") (identifier "param_1")) (; ";")) (if_statement "if (param_4 != 0) {\n          bVar6 = bVar6 ^ 1;\n        }" (if "if") (parenthesized_expression "(param_4 != 0)" (( "(") (binary_expression "param_4 != 0" (identifier "param_4") (!= "!=") (number_literal "0")) () ")")) (compound_statement "{\n          bVar6 = bVar6 ^ 1;\n        }" ({ "{") (expression_statement "bVar6 = bVar6 ^ 1;" (assignment_expression "bVar6 = bVar6 ^ 1" (identifier "bVar6") (= "=") (binary_expression "bVar6 ^ 1" (identifier "bVar6") (^ "^") (number_literal "1"))) (; ";")) (} "}"))) (} "}")) (else_clause "else {\n        puVar5 = param_2;\n        param_2 = param_1;\n        bVar6 = *(byte *)(param_1 + 4);\n      }" (else "else") (compound_statement "{\n        puVar5 = param_2;\n        param_2 = param_1;\n        bVar6 = *(byte *)(param_1 + 4);\n      }" ({ "{") (expression_statement "puVar5 = param_2;" (assignment_expression "puVar5 = param_2" (identifier "puVar5") (= "=") (identifier "param_2")) (; ";")) (expression_statement "param_2 = param_1;" (assignment_expression "param_2 = param_1" (identifier "param_2") (= "=") (identifier "param_1")) (; ";")) (expression_statement "bVar6 = *(byte *)(param_1 + 4);" (assignment_expression "bVar6 = *(byte *)(param_1 + 4)" (identifier "bVar6") (= "=") (pointer_expression "*(byte *)(param_1 + 4)" (* "*") (cast_expression "(byte *)(param_1 + 4)" (( "(") (type_descriptor "byte *" (type_identifier "byte") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 4)" (( "(") (binary_expression "param_1 + 4" (identifier "param_1") (+ "+") (number_literal "4")) () ")"))))) (; ";")) (} "}")))) (expression_statement "FUN_0011283a(param_3,param_2);" (call_expression "FUN_0011283a(param_3,param_2)" (identifier "FUN_0011283a") (argument_list "(param_3,param_2)" (( "(") (identifier "param_3") (, ",") (identifier "param_2") () ")"))) (; ";")) (expression_statement "*(byte *)(param_3 + 4) = bVar6;" (assignment_expression "*(byte *)(param_3 + 4) = bVar6" (pointer_expression "*(byte *)(param_3 + 4)" (* "*") (cast_expression "(byte *)(param_3 + 4)" (( "(") (type_descriptor "byte *" (type_identifier "byte") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_3 + 4)" (( "(") (binary_expression "param_3 + 4" (identifier "param_3") (+ "+") (number_literal "4")) () ")")))) (= "=") (identifier "bVar6")) (; ";")) (expression_statement "uVar4 = param_3[1];" (assignment_expression "uVar4 = param_3[1]" (identifier "uVar4") (= "=") (subscript_expression "param_3[1]" (identifier "param_3") ([ "[") (number_literal "1") (] "]"))) (; ";")) (expression_statement "uVar2 = puVar5[1];" (assignment_expression "uVar2 = puVar5[1]" (identifier "uVar2") (= "=") (subscript_expression "puVar5[1]" (identifier "puVar5") ([ "[") (number_literal "1") (] "]"))) (; ";")) (expression_statement "lVar3 = uVar4 - uVar2;" (assignment_expression "lVar3 = uVar4 - uVar2" (identifier "lVar3") (= "=") (binary_expression "uVar4 - uVar2" (identifier "uVar4") (- "-") (identifier "uVar2"))) (; ";")) (if_statement "if (uVar4 < uVar2) {\n        FUN_00112121(param_3,uVar2 - uVar4);\n        lVar3 = 0;\n      }" (if "if") (parenthesized_expression "(uVar4 < uVar2)" (( "(") (binary_expression "uVar4 < uVar2" (identifier "uVar4") (< "<") (identifier "uVar2")) () ")")) (compound_statement "{\n        FUN_00112121(param_3,uVar2 - uVar4);\n        lVar3 = 0;\n      }" ({ "{") (expression_statement "FUN_00112121(param_3,uVar2 - uVar4);" (call_expression "FUN_00112121(param_3,uVar2 - uVar4)" (identifier "FUN_00112121") (argument_list "(param_3,uVar2 - uVar4)" (( "(") (identifier "param_3") (, ",") (binary_expression "uVar2 - uVar4" (identifier "uVar2") (- "-") (identifier "uVar4")) () ")"))) (; ";")) (expression_statement "lVar3 = 0;" (assignment_expression "lVar3 = 0" (identifier "lVar3") (= "=") (number_literal "0")) (; ";")) (} "}"))) (expression_statement "FUN_001117c6(lVar3 + *param_3,*puVar5,puVar5[2]);" (call_expression "FUN_001117c6(lVar3 + *param_3,*puVar5,puVar5[2])" (identifier "FUN_001117c6") (argument_list "(lVar3 + *param_3,*puVar5,puVar5[2])" (( "(") (binary_expression "lVar3 + *param_3" (identifier "lVar3") (+ "+") (pointer_expression "*param_3" (* "*") (identifier "param_3"))) (, ",") (pointer_expression "*puVar5" (* "*") (identifier "puVar5")) (, ",") (subscript_expression "puVar5[2]" (identifier "puVar5") ([ "[") (number_literal "2") (] "]")) () ")"))) (; ";")) (expression_statement "FUN_00111983(param_3);" (call_expression "FUN_00111983(param_3)" (identifier "FUN_00111983") (argument_list "(param_3)" (( "(") (identifier "param_3") () ")"))) (; ";")) (} "}")))) (} "}")))))) (return_statement "return 0;" (return "return") (number_literal "0") (; ";")) (} "}")))

type_1 function_1(type_2 *a,type_2 *b,type_2 *c,size_t var_2)

{
  type_3 _Var1;
  type_4 var_7;
  ssize_t var_4;
  type_4 var_6;
  type_2 *pBVar5;
  long var_10;
  type_5 var_5;
  
  if (a->len == 0) {
    var_1(c,b);
    if ((var_2 != 0) && (c->len != 0)) {
      c->neg = (type_3)(c->neg ^ 1);
    }
  }
  else if (b->len == 0) {
    var_1(c,a);
  }
  else {
    _Var1 = a->neg;
    var_5 = b->neg;
    b->neg = false;
    a->neg = false;
    var_4 = var_3(a,b);
    a->neg = _Var1;
    b->neg = (type_3)var_5;
    if (var_4 == 0) {
      var_6 = a->rdx;
      if (a->rdx <= b->rdx) {
        var_6 = b->rdx;
      }
      c->len = 0;
      c->neg = false;
      c->rdx = var_6;
    }
    else {
      if (var_4 < 1) {
        pBVar5 = a;
        if (var_2 != 0) {
          var_5 = var_5 ^ 1;
        }
      }
      else {
        pBVar5 = b;
        b = a;
        var_5 = a->neg;
      }
      var_1(c,b);
      c->neg = (type_3)var_5;
      var_6 = c->rdx;
      var_7 = pBVar5->rdx;
      var_10 = var_6 - var_7;
      if (var_6 < var_7) {
        var_8(c,var_7 - var_6);
        var_10 = 0;
      }
      var_9(c->num + var_10,pBVar5->num,pBVar5->len);
      var_11(c);
    }
  }
  return BC_STATUS_SUCCESS;
}


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

undefined8 MASKED(undefined8 *param_1,undefined8 *param_2,long *param_3,long param_4)

{
  undefined1 uVar1;
  ulong uVar2;
  long lVar3;
  ulong uVar4;
  undefined8 *puVar5;
  byte bVar6;
  
  if (param_1[2] == 0) {
    FUN_0011283a(param_3);
    if ((param_4 != 0) && (param_3[2] != 0)) {
      *(byte *)(param_3 + 4) = *(byte *)(param_3 + 4) ^ 1;
    }
  }
  else if (param_2[2] == 0) {
    FUN_0011283a(param_3,param_1);
  }
  else {
    uVar1 = *(undefined1 *)(param_1 + 4);
    bVar6 = *(byte *)(param_2 + 4);
    *(undefined1 *)(param_2 + 4) = 0;
    *(undefined1 *)(param_1 + 4) = 0;
    lVar3 = FUN_00111835();
    *(undefined1 *)(param_1 + 4) = uVar1;
    *(byte *)(param_2 + 4) = bVar6;
    if (lVar3 == 0) {
      uVar4 = param_1[1];
      if ((ulong)param_1[1] <= (ulong)param_2[1]) {
        uVar4 = param_2[1];
      }
      param_3[2] = 0;
      *(undefined1 *)(param_3 + 4) = 0;
      param_3[1] = uVar4;
    }
    else {
      if (lVar3 < 1) {
        puVar5 = param_1;
        if (param_4 != 0) {
          bVar6 = bVar6 ^ 1;
        }
      }
      else {
        puVar5 = param_2;
        param_2 = param_1;
        bVar6 = *(byte *)(param_1 + 4);
      }
      FUN_0011283a(param_3,param_2);
      *(byte *)(param_3 + 4) = bVar6;
      uVar4 = param_3[1];
      uVar2 = puVar5[1];
      lVar3 = uVar4 - uVar2;
      if (uVar4 < uVar2) {
        FUN_00112121(param_3,uVar2 - uVar4);
        lVar3 = 0;
      }
      FUN_001117c6(lVar3 + *param_3,*puVar5,puVar5[2]);
      FUN_00111983(param_3);
    }
  }
  return 0;
}

