
int start_bytes(char *pretty_filename,int fd,uintmax_t n_bytes,uintmax_t *read_pos)

{
  uint uVar1;
  int iVar2;
  char *pcVar3;
  int iVar4;
  undefined4 uVar5;
  int *piVar6;
  int unaff_EDI;
  int in_GS_OFFSET;
  bool bVar7;
  undefined8 uVar8;
  char buffer [8192];
  
  uVar8 = __x86_get_pc_thunk_di();
  iVar2 = *(int *)(in_GS_OFFSET + 0x14);
  if (fd != 0 || pretty_filename != (char *)0x0) {
    do {
      pcVar3 = (char *)safe_read((int)((ulonglong)uVar8 >> 0x20),buffer,0x2000);
      if (pcVar3 == (char *)0x0) {
        iVar4 = -1;
        goto LAB_00015c2a;
      }
      if (pcVar3 == (char *)0xffffffff) {
        pcVar3 = quotearg_style(shell_escape_always_quoting_style,(char *)uVar8);
        uVar5 = dcgettext(0,unaff_EDI + 0xa4c1,5);
        piVar6 = __errno_location();
                    /* WARNING: Subroutine does not return */
        error(0,*piVar6,uVar5,pcVar3);
      }
      uVar1 = *(uint *)n_bytes;
      *(uint *)n_bytes = (uint)(pcVar3 + *(uint *)n_bytes);
      ((uint *)n_bytes)[1] = ((uint *)n_bytes)[1] + (uint)CARRY4(uVar1,(uint)pcVar3);
      if ((uint)fd < (uint)(pretty_filename < pcVar3)) {
        if ((int)pcVar3 - (int)pretty_filename != 0) {
          xwrite_stdout(buffer + (int)pretty_filename,(int)pcVar3 - (int)pretty_filename);
        }
        break;
      }
      bVar7 = pretty_filename < pcVar3;
      pretty_filename = pretty_filename + -(int)pcVar3;
      fd = fd - (uint)bVar7;
    } while (fd != 0 || pretty_filename != (char *)0x0);
  }
  iVar4 = 0;
LAB_00015c2a:
  if (iVar2 != *(int *)(in_GS_OFFSET + 0x14)) {
                    /* WARNING: Subroutine does not return */
    __stack_chk_fail_local();
  }
  return iVar4;
}



undefined4 FUN_00015b70(uint param_1,uint param_2,uint *param_3)

{
  uint uVar1;
  uint uVar2;
  undefined4 uVar3;
  undefined4 uVar4;
  int *piVar5;
  int unaff_EDI;
  int in_GS_OFFSET;
  bool bVar6;
  undefined8 uVar7;
  undefined1 local_2020 [8192];
  int local_20;
  
  uVar7 = FUN_00017e7d();
  local_20 = *(int *)(in_GS_OFFSET + 0x14);
  if (param_2 != 0 || param_1 != 0) {
    do {
      uVar2 = FUN_0001bd30((int)((ulonglong)uVar7 >> 0x20),local_2020,0x2000);
      if (uVar2 == 0) {
        uVar3 = 0xffffffff;
        goto LAB_00015c2a;
      }
      if (uVar2 == 0xffffffff) {
        uVar3 = FUN_0001b880(4,(int)uVar7);
        uVar4 = dcgettext(0,unaff_EDI + 0xa4c1,5);
        piVar5 = __errno_location();
                    /* WARNING: Subroutine does not return */
        error(0,*piVar5,uVar4,uVar3);
      }
      uVar1 = *param_3;
      *param_3 = *param_3 + uVar2;
      param_3[1] = param_3[1] + (uint)CARRY4(uVar1,uVar2);
      if (param_2 < (param_1 < uVar2)) {
        if (uVar2 != param_1) {
          FUN_000159a0();
        }
        break;
      }
      bVar6 = param_1 < uVar2;
      param_1 = param_1 - uVar2;
      param_2 = param_2 - bVar6;
    } while (param_2 != 0 || param_1 != 0);
  }
  uVar3 = 0;
LAB_00015c2a:
  if (local_20 != *(int *)(in_GS_OFFSET + 0x14)) {
                    /* WARNING: Subroutine does not return */
    FUN_0001f5c0();
  }
  return uVar3;
}


PUSH EBP
PUSH EDI
CALL 0x00017e7d
ADD EDI,0x12489
PUSH ESI
PUSH EBX
SUB ESP,0x202c
MOV dword ptr [ESP + 0x8],EDX
MOV ESI,dword ptr [ESP + 0x2040]
LEA EBX,[ESP + 0x1c]
MOV dword ptr [ESP],EDI
MOV EDI,dword ptr [ESP + 0x2044]
MOV dword ptr [ESP + 0xc],EAX
MOV EBP,dword ptr [ESP + 0x2048]
MOV EDX,EDI
MOV EAX,GS:[0x14]
MOV dword ptr [ESP + 0x201c],EAX
XOR EAX,EAX
OR EDX,ESI
MOV dword ptr [ESP + 0x4],EBX
JNZ 0x00015be7
JMP 0x00015c28
CMP EAX,-0x1
JZ 0x00015c48
XOR EBX,EBX
MOV EDX,EDI
ADD dword ptr [EBP],EAX
ADC dword ptr [EBP + 0x4],EBX
CMP ESI,EAX
SBB EDX,EBX
JC 0x00015c10
SUB ESI,EAX
SBB EDI,EBX
MOV EDX,EDI
OR EDX,ESI
JZ 0x00015c28
SUB ESP,0x4
PUSH 0x2000
PUSH dword ptr [ESP + 0xc]
PUSH dword ptr [ESP + 0x14]
MOV EBX,dword ptr [ESP + 0x10]
CALL 0x0001bd30
ADD ESP,0x10
TEST EAX,EAX
JNZ 0x00015bc8
MOV EAX,0xffffffff
JMP 0x00015c2a
SUB EAX,ESI
MOV EDX,EAX
JZ 0x00015c28
MOV EAX,dword ptr [ESP + 0x4]
ADD EAX,ESI
CALL 0x000159a0
LEA ESI,[ESI]
XOR EAX,EAX
MOV EDI,dword ptr [ESP + 0x201c]
XOR EDI,dword ptr GS:[0x14]
JNZ 0x00015c8d
ADD ESP,0x202c
POP EBX
POP ESI
POP EDI
POP EBP
RET
SUB ESP,0x8
PUSH dword ptr [ESP + 0x14]
PUSH 0x4
MOV EBP,dword ptr [ESP + 0x10]
MOV EBX,EBP
CALL 0x0001b880
ADD ESP,0xc
MOV EDI,EAX
LEA EAX,[EBP + 0xffff8038]
PUSH 0x5
PUSH EAX
PUSH 0x0
CALL 0x00012130
MOV ESI,EAX
CALL 0x00012310
PUSH EDI
PUSH ESI
PUSH dword ptr [EAX]
PUSH 0x0
CALL 0x00012200
CALL 0x0001f5c0
(translation_unit "undefined4 FUN_00015b70(uint param_1,uint param_2,uint *param_3)\n\n{\n  uint uVar1;\n  uint uVar2;\n  undefined4 uVar3;\n  undefined4 uVar4;\n  int *piVar5;\n  int unaff_EDI;\n  int in_GS_OFFSET;\n  bool bVar6;\n  undefined8 uVar7;\n  undefined1 local_2020 [8192];\n  int local_20;\n  \n  uVar7 = FUN_00017e7d();\n  local_20 = *(int *)(in_GS_OFFSET + 0x14);\n  if (param_2 != 0 || param_1 != 0) {\n    do {\n      uVar2 = FUN_0001bd30((int)((ulonglong)uVar7 >> 0x20),local_2020,0x2000);\n      if (uVar2 == 0) {\n        uVar3 = 0xffffffff;\n        goto LAB_00015c2a;\n      }\n      if (uVar2 == 0xffffffff) {\n        uVar3 = FUN_0001b880(4,(int)uVar7);\n        uVar4 = dcgettext(0,unaff_EDI + 0xa4c1,5);\n        piVar5 = __errno_location();\n                    /* WARNING: Subroutine does not return */\n        error(0,*piVar5,uVar4,uVar3);\n      }\n      uVar1 = *param_3;\n      *param_3 = *param_3 + uVar2;\n      param_3[1] = param_3[1] + (uint)CARRY4(uVar1,uVar2);\n      if (param_2 < (param_1 < uVar2)) {\n        if (uVar2 != param_1) {\n          FUN_000159a0();\n        }\n        break;\n      }\n      bVar6 = param_1 < uVar2;\n      param_1 = param_1 - uVar2;\n      param_2 = param_2 - bVar6;\n    } while (param_2 != 0 || param_1 != 0);\n  }\n  uVar3 = 0;\nLAB_00015c2a:\n  if (local_20 != *(int *)(in_GS_OFFSET + 0x14)) {\n                    /* WARNING: Subroutine does not return */\n    FUN_0001f5c0();\n  }\n  return uVar3;\n}\n\n" (function_definition "undefined4 FUN_00015b70(uint param_1,uint param_2,uint *param_3)\n\n{\n  uint uVar1;\n  uint uVar2;\n  undefined4 uVar3;\n  undefined4 uVar4;\n  int *piVar5;\n  int unaff_EDI;\n  int in_GS_OFFSET;\n  bool bVar6;\n  undefined8 uVar7;\n  undefined1 local_2020 [8192];\n  int local_20;\n  \n  uVar7 = FUN_00017e7d();\n  local_20 = *(int *)(in_GS_OFFSET + 0x14);\n  if (param_2 != 0 || param_1 != 0) {\n    do {\n      uVar2 = FUN_0001bd30((int)((ulonglong)uVar7 >> 0x20),local_2020,0x2000);\n      if (uVar2 == 0) {\n        uVar3 = 0xffffffff;\n        goto LAB_00015c2a;\n      }\n      if (uVar2 == 0xffffffff) {\n        uVar3 = FUN_0001b880(4,(int)uVar7);\n        uVar4 = dcgettext(0,unaff_EDI + 0xa4c1,5);\n        piVar5 = __errno_location();\n                    /* WARNING: Subroutine does not return */\n        error(0,*piVar5,uVar4,uVar3);\n      }\n      uVar1 = *param_3;\n      *param_3 = *param_3 + uVar2;\n      param_3[1] = param_3[1] + (uint)CARRY4(uVar1,uVar2);\n      if (param_2 < (param_1 < uVar2)) {\n        if (uVar2 != param_1) {\n          FUN_000159a0();\n        }\n        break;\n      }\n      bVar6 = param_1 < uVar2;\n      param_1 = param_1 - uVar2;\n      param_2 = param_2 - bVar6;\n    } while (param_2 != 0 || param_1 != 0);\n  }\n  uVar3 = 0;\nLAB_00015c2a:\n  if (local_20 != *(int *)(in_GS_OFFSET + 0x14)) {\n                    /* WARNING: Subroutine does not return */\n    FUN_0001f5c0();\n  }\n  return uVar3;\n}" type_identifier (function_declarator "FUN_00015b70(uint param_1,uint param_2,uint *param_3)" identifier (parameter_list "(uint param_1,uint param_2,uint *param_3)" ( (parameter_declaration "uint param_1" type_identifier identifier) , (parameter_declaration "uint param_2" type_identifier identifier) , (parameter_declaration "uint *param_3" type_identifier (pointer_declarator "*param_3" * identifier)) ))) (compound_statement "{\n  uint uVar1;\n  uint uVar2;\n  undefined4 uVar3;\n  undefined4 uVar4;\n  int *piVar5;\n  int unaff_EDI;\n  int in_GS_OFFSET;\n  bool bVar6;\n  undefined8 uVar7;\n  undefined1 local_2020 [8192];\n  int local_20;\n  \n  uVar7 = FUN_00017e7d();\n  local_20 = *(int *)(in_GS_OFFSET + 0x14);\n  if (param_2 != 0 || param_1 != 0) {\n    do {\n      uVar2 = FUN_0001bd30((int)((ulonglong)uVar7 >> 0x20),local_2020,0x2000);\n      if (uVar2 == 0) {\n        uVar3 = 0xffffffff;\n        goto LAB_00015c2a;\n      }\n      if (uVar2 == 0xffffffff) {\n        uVar3 = FUN_0001b880(4,(int)uVar7);\n        uVar4 = dcgettext(0,unaff_EDI + 0xa4c1,5);\n        piVar5 = __errno_location();\n                    /* WARNING: Subroutine does not return */\n        error(0,*piVar5,uVar4,uVar3);\n      }\n      uVar1 = *param_3;\n      *param_3 = *param_3 + uVar2;\n      param_3[1] = param_3[1] + (uint)CARRY4(uVar1,uVar2);\n      if (param_2 < (param_1 < uVar2)) {\n        if (uVar2 != param_1) {\n          FUN_000159a0();\n        }\n        break;\n      }\n      bVar6 = param_1 < uVar2;\n      param_1 = param_1 - uVar2;\n      param_2 = param_2 - bVar6;\n    } while (param_2 != 0 || param_1 != 0);\n  }\n  uVar3 = 0;\nLAB_00015c2a:\n  if (local_20 != *(int *)(in_GS_OFFSET + 0x14)) {\n                    /* WARNING: Subroutine does not return */\n    FUN_0001f5c0();\n  }\n  return uVar3;\n}" { (declaration "uint uVar1;" type_identifier identifier ;) (declaration "uint uVar2;" type_identifier identifier ;) (declaration "undefined4 uVar3;" type_identifier identifier ;) (declaration "undefined4 uVar4;" type_identifier identifier ;) (declaration "int *piVar5;" primitive_type (pointer_declarator "*piVar5" * identifier) ;) (declaration "int unaff_EDI;" primitive_type identifier ;) (declaration "int in_GS_OFFSET;" primitive_type identifier ;) (declaration "bool bVar6;" primitive_type identifier ;) (declaration "undefined8 uVar7;" type_identifier identifier ;) (declaration "undefined1 local_2020 [8192];" type_identifier (array_declarator "local_2020 [8192]" identifier [ number_literal ]) ;) (declaration "int local_20;" primitive_type identifier ;) (expression_statement "uVar7 = FUN_00017e7d();" (assignment_expression "uVar7 = FUN_00017e7d()" identifier = (call_expression "FUN_00017e7d()" identifier (argument_list "()" ( )))) ;) (expression_statement "local_20 = *(int *)(in_GS_OFFSET + 0x14);" (assignment_expression "local_20 = *(int *)(in_GS_OFFSET + 0x14)" identifier = (pointer_expression "*(int *)(in_GS_OFFSET + 0x14)" * (cast_expression "(int *)(in_GS_OFFSET + 0x14)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(in_GS_OFFSET + 0x14)" ( (binary_expression "in_GS_OFFSET + 0x14" identifier + number_literal) ))))) ;) (if_statement "if (param_2 != 0 || param_1 != 0) {\n    do {\n      uVar2 = FUN_0001bd30((int)((ulonglong)uVar7 >> 0x20),local_2020,0x2000);\n      if (uVar2 == 0) {\n        uVar3 = 0xffffffff;\n        goto LAB_00015c2a;\n      }\n      if (uVar2 == 0xffffffff) {\n        uVar3 = FUN_0001b880(4,(int)uVar7);\n        uVar4 = dcgettext(0,unaff_EDI + 0xa4c1,5);\n        piVar5 = __errno_location();\n                    /* WARNING: Subroutine does not return */\n        error(0,*piVar5,uVar4,uVar3);\n      }\n      uVar1 = *param_3;\n      *param_3 = *param_3 + uVar2;\n      param_3[1] = param_3[1] + (uint)CARRY4(uVar1,uVar2);\n      if (param_2 < (param_1 < uVar2)) {\n        if (uVar2 != param_1) {\n          FUN_000159a0();\n        }\n        break;\n      }\n      bVar6 = param_1 < uVar2;\n      param_1 = param_1 - uVar2;\n      param_2 = param_2 - bVar6;\n    } while (param_2 != 0 || param_1 != 0);\n  }" if (parenthesized_expression "(param_2 != 0 || param_1 != 0)" ( (binary_expression "param_2 != 0 || param_1 != 0" (binary_expression "param_2 != 0" identifier != number_literal) || (binary_expression "param_1 != 0" identifier != number_literal)) )) (compound_statement "{\n    do {\n      uVar2 = FUN_0001bd30((int)((ulonglong)uVar7 >> 0x20),local_2020,0x2000);\n      if (uVar2 == 0) {\n        uVar3 = 0xffffffff;\n        goto LAB_00015c2a;\n      }\n      if (uVar2 == 0xffffffff) {\n        uVar3 = FUN_0001b880(4,(int)uVar7);\n        uVar4 = dcgettext(0,unaff_EDI + 0xa4c1,5);\n        piVar5 = __errno_location();\n                    /* WARNING: Subroutine does not return */\n        error(0,*piVar5,uVar4,uVar3);\n      }\n      uVar1 = *param_3;\n      *param_3 = *param_3 + uVar2;\n      param_3[1] = param_3[1] + (uint)CARRY4(uVar1,uVar2);\n      if (param_2 < (param_1 < uVar2)) {\n        if (uVar2 != param_1) {\n          FUN_000159a0();\n        }\n        break;\n      }\n      bVar6 = param_1 < uVar2;\n      param_1 = param_1 - uVar2;\n      param_2 = param_2 - bVar6;\n    } while (param_2 != 0 || param_1 != 0);\n  }" { (do_statement "do {\n      uVar2 = FUN_0001bd30((int)((ulonglong)uVar7 >> 0x20),local_2020,0x2000);\n      if (uVar2 == 0) {\n        uVar3 = 0xffffffff;\n        goto LAB_00015c2a;\n      }\n      if (uVar2 == 0xffffffff) {\n        uVar3 = FUN_0001b880(4,(int)uVar7);\n        uVar4 = dcgettext(0,unaff_EDI + 0xa4c1,5);\n        piVar5 = __errno_location();\n                    /* WARNING: Subroutine does not return */\n        error(0,*piVar5,uVar4,uVar3);\n      }\n      uVar1 = *param_3;\n      *param_3 = *param_3 + uVar2;\n      param_3[1] = param_3[1] + (uint)CARRY4(uVar1,uVar2);\n      if (param_2 < (param_1 < uVar2)) {\n        if (uVar2 != param_1) {\n          FUN_000159a0();\n        }\n        break;\n      }\n      bVar6 = param_1 < uVar2;\n      param_1 = param_1 - uVar2;\n      param_2 = param_2 - bVar6;\n    } while (param_2 != 0 || param_1 != 0);" do (compound_statement "{\n      uVar2 = FUN_0001bd30((int)((ulonglong)uVar7 >> 0x20),local_2020,0x2000);\n      if (uVar2 == 0) {\n        uVar3 = 0xffffffff;\n        goto LAB_00015c2a;\n      }\n      if (uVar2 == 0xffffffff) {\n        uVar3 = FUN_0001b880(4,(int)uVar7);\n        uVar4 = dcgettext(0,unaff_EDI + 0xa4c1,5);\n        piVar5 = __errno_location();\n                    /* WARNING: Subroutine does not return */\n        error(0,*piVar5,uVar4,uVar3);\n      }\n      uVar1 = *param_3;\n      *param_3 = *param_3 + uVar2;\n      param_3[1] = param_3[1] + (uint)CARRY4(uVar1,uVar2);\n      if (param_2 < (param_1 < uVar2)) {\n        if (uVar2 != param_1) {\n          FUN_000159a0();\n        }\n        break;\n      }\n      bVar6 = param_1 < uVar2;\n      param_1 = param_1 - uVar2;\n      param_2 = param_2 - bVar6;\n    }" { (expression_statement "uVar2 = FUN_0001bd30((int)((ulonglong)uVar7 >> 0x20),local_2020,0x2000);" (assignment_expression "uVar2 = FUN_0001bd30((int)((ulonglong)uVar7 >> 0x20),local_2020,0x2000)" identifier = (call_expression "FUN_0001bd30((int)((ulonglong)uVar7 >> 0x20),local_2020,0x2000)" identifier (argument_list "((int)((ulonglong)uVar7 >> 0x20),local_2020,0x2000)" ( (cast_expression "(int)((ulonglong)uVar7 >> 0x20)" ( (type_descriptor "int" primitive_type) ) (parenthesized_expression "((ulonglong)uVar7 >> 0x20)" ( (binary_expression "(ulonglong)uVar7 >> 0x20" (cast_expression "(ulonglong)uVar7" ( (type_descriptor "ulonglong" type_identifier) ) identifier) >> number_literal) ))) , identifier , number_literal )))) ;) (if_statement "if (uVar2 == 0) {\n        uVar3 = 0xffffffff;\n        goto LAB_00015c2a;\n      }" if (parenthesized_expression "(uVar2 == 0)" ( (binary_expression "uVar2 == 0" identifier == number_literal) )) (compound_statement "{\n        uVar3 = 0xffffffff;\n        goto LAB_00015c2a;\n      }" { (expression_statement "uVar3 = 0xffffffff;" (assignment_expression "uVar3 = 0xffffffff" identifier = number_literal) ;) (goto_statement "goto LAB_00015c2a;" goto statement_identifier ;) })) (if_statement "if (uVar2 == 0xffffffff) {\n        uVar3 = FUN_0001b880(4,(int)uVar7);\n        uVar4 = dcgettext(0,unaff_EDI + 0xa4c1,5);\n        piVar5 = __errno_location();\n                    /* WARNING: Subroutine does not return */\n        error(0,*piVar5,uVar4,uVar3);\n      }" if (parenthesized_expression "(uVar2 == 0xffffffff)" ( (binary_expression "uVar2 == 0xffffffff" identifier == number_literal) )) (compound_statement "{\n        uVar3 = FUN_0001b880(4,(int)uVar7);\n        uVar4 = dcgettext(0,unaff_EDI + 0xa4c1,5);\n        piVar5 = __errno_location();\n                    /* WARNING: Subroutine does not return */\n        error(0,*piVar5,uVar4,uVar3);\n      }" { (expression_statement "uVar3 = FUN_0001b880(4,(int)uVar7);" (assignment_expression "uVar3 = FUN_0001b880(4,(int)uVar7)" identifier = (call_expression "FUN_0001b880(4,(int)uVar7)" identifier (argument_list "(4,(int)uVar7)" ( number_literal , (cast_expression "(int)uVar7" ( (type_descriptor "int" primitive_type) ) identifier) )))) ;) (expression_statement "uVar4 = dcgettext(0,unaff_EDI + 0xa4c1,5);" (assignment_expression "uVar4 = dcgettext(0,unaff_EDI + 0xa4c1,5)" identifier = (call_expression "dcgettext(0,unaff_EDI + 0xa4c1,5)" identifier (argument_list "(0,unaff_EDI + 0xa4c1,5)" ( number_literal , (binary_expression "unaff_EDI + 0xa4c1" identifier + number_literal) , number_literal )))) ;) (expression_statement "piVar5 = __errno_location();" (assignment_expression "piVar5 = __errno_location()" identifier = (call_expression "__errno_location()" identifier (argument_list "()" ( )))) ;) comment (expression_statement "error(0,*piVar5,uVar4,uVar3);" (call_expression "error(0,*piVar5,uVar4,uVar3)" identifier (argument_list "(0,*piVar5,uVar4,uVar3)" ( number_literal , (pointer_expression "*piVar5" * identifier) , identifier , identifier ))) ;) })) (expression_statement "uVar1 = *param_3;" (assignment_expression "uVar1 = *param_3" identifier = (pointer_expression "*param_3" * identifier)) ;) (expression_statement "*param_3 = *param_3 + uVar2;" (assignment_expression "*param_3 = *param_3 + uVar2" (pointer_expression "*param_3" * identifier) = (binary_expression "*param_3 + uVar2" (pointer_expression "*param_3" * identifier) + identifier)) ;) (expression_statement "param_3[1] = param_3[1] + (uint)CARRY4(uVar1,uVar2);" (assignment_expression "param_3[1] = param_3[1] + (uint)CARRY4(uVar1,uVar2)" (subscript_expression "param_3[1]" identifier [ number_literal ]) = (binary_expression "param_3[1] + (uint)CARRY4(uVar1,uVar2)" (subscript_expression "param_3[1]" identifier [ number_literal ]) + (cast_expression "(uint)CARRY4(uVar1,uVar2)" ( (type_descriptor "uint" type_identifier) ) (call_expression "CARRY4(uVar1,uVar2)" identifier (argument_list "(uVar1,uVar2)" ( identifier , identifier )))))) ;) (if_statement "if (param_2 < (param_1 < uVar2)) {\n        if (uVar2 != param_1) {\n          FUN_000159a0();\n        }\n        break;\n      }" if (parenthesized_expression "(param_2 < (param_1 < uVar2))" ( (binary_expression "param_2 < (param_1 < uVar2)" identifier < (parenthesized_expression "(param_1 < uVar2)" ( (binary_expression "param_1 < uVar2" identifier < identifier) ))) )) (compound_statement "{\n        if (uVar2 != param_1) {\n          FUN_000159a0();\n        }\n        break;\n      }" { (if_statement "if (uVar2 != param_1) {\n          FUN_000159a0();\n        }" if (parenthesized_expression "(uVar2 != param_1)" ( (binary_expression "uVar2 != param_1" identifier != identifier) )) (compound_statement "{\n          FUN_000159a0();\n        }" { (expression_statement "FUN_000159a0();" (call_expression "FUN_000159a0()" identifier (argument_list "()" ( ))) ;) })) (break_statement "break;" break ;) })) (expression_statement "bVar6 = param_1 < uVar2;" (assignment_expression "bVar6 = param_1 < uVar2" identifier = (binary_expression "param_1 < uVar2" identifier < identifier)) ;) (expression_statement "param_1 = param_1 - uVar2;" (assignment_expression "param_1 = param_1 - uVar2" identifier = (binary_expression "param_1 - uVar2" identifier - identifier)) ;) (expression_statement "param_2 = param_2 - bVar6;" (assignment_expression "param_2 = param_2 - bVar6" identifier = (binary_expression "param_2 - bVar6" identifier - identifier)) ;) }) while (parenthesized_expression "(param_2 != 0 || param_1 != 0)" ( (binary_expression "param_2 != 0 || param_1 != 0" (binary_expression "param_2 != 0" identifier != number_literal) || (binary_expression "param_1 != 0" identifier != number_literal)) )) ;) })) (expression_statement "uVar3 = 0;" (assignment_expression "uVar3 = 0" identifier = number_literal) ;) (labeled_statement "LAB_00015c2a:\n  if (local_20 != *(int *)(in_GS_OFFSET + 0x14)) {\n                    /* WARNING: Subroutine does not return */\n    FUN_0001f5c0();\n  }" statement_identifier : (if_statement "if (local_20 != *(int *)(in_GS_OFFSET + 0x14)) {\n                    /* WARNING: Subroutine does not return */\n    FUN_0001f5c0();\n  }" if (parenthesized_expression "(local_20 != *(int *)(in_GS_OFFSET + 0x14))" ( (binary_expression "local_20 != *(int *)(in_GS_OFFSET + 0x14)" identifier != (pointer_expression "*(int *)(in_GS_OFFSET + 0x14)" * (cast_expression "(int *)(in_GS_OFFSET + 0x14)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(in_GS_OFFSET + 0x14)" ( (binary_expression "in_GS_OFFSET + 0x14" identifier + number_literal) ))))) )) (compound_statement "{\n                    /* WARNING: Subroutine does not return */\n    FUN_0001f5c0();\n  }" { comment (expression_statement "FUN_0001f5c0();" (call_expression "FUN_0001f5c0()" identifier (argument_list "()" ( ))) ;) }))) (return_statement "return uVar3;" return identifier ;) })))
(translation_unit "int start_bytes(char *pretty_filename,int fd,uintmax_t n_bytes,uintmax_t *read_pos)\n\n{\n  uint uVar1;\n  int iVar2;\n  char *pcVar3;\n  int iVar4;\n  undefined4 uVar5;\n  int *piVar6;\n  int unaff_EDI;\n  int in_GS_OFFSET;\n  bool bVar7;\n  undefined8 uVar8;\n  char buffer [8192];\n  \n  uVar8 = __x86_get_pc_thunk_di();\n  iVar2 = *(int *)(in_GS_OFFSET + 0x14);\n  if (fd != 0 || pretty_filename != (char *)0x0) {\n    do {\n      pcVar3 = (char *)safe_read((int)((ulonglong)uVar8 >> 0x20),buffer,0x2000);\n      if (pcVar3 == (char *)0x0) {\n        iVar4 = -1;\n        goto LAB_00015c2a;\n      }\n      if (pcVar3 == (char *)0xffffffff) {\n        pcVar3 = quotearg_style(shell_escape_always_quoting_style,(char *)uVar8);\n        uVar5 = dcgettext(0,unaff_EDI + 0xa4c1,5);\n        piVar6 = __errno_location();\n                    /* WARNING: Subroutine does not return */\n        error(0,*piVar6,uVar5,pcVar3);\n      }\n      uVar1 = *(uint *)n_bytes;\n      *(uint *)n_bytes = (uint)(pcVar3 + *(uint *)n_bytes);\n      ((uint *)n_bytes)[1] = ((uint *)n_bytes)[1] + (uint)CARRY4(uVar1,(uint)pcVar3);\n      if ((uint)fd < (uint)(pretty_filename < pcVar3)) {\n        if ((int)pcVar3 - (int)pretty_filename != 0) {\n          xwrite_stdout(buffer + (int)pretty_filename,(int)pcVar3 - (int)pretty_filename);\n        }\n        break;\n      }\n      bVar7 = pretty_filename < pcVar3;\n      pretty_filename = pretty_filename + -(int)pcVar3;\n      fd = fd - (uint)bVar7;\n    } while (fd != 0 || pretty_filename != (char *)0x0);\n  }\n  iVar4 = 0;\nLAB_00015c2a:\n  if (iVar2 != *(int *)(in_GS_OFFSET + 0x14)) {\n                    /* WARNING: Subroutine does not return */\n    __stack_chk_fail_local();\n  }\n  return iVar4;\n}\n\n" (function_definition "int start_bytes(char *pretty_filename,int fd,uintmax_t n_bytes,uintmax_t *read_pos)\n\n{\n  uint uVar1;\n  int iVar2;\n  char *pcVar3;\n  int iVar4;\n  undefined4 uVar5;\n  int *piVar6;\n  int unaff_EDI;\n  int in_GS_OFFSET;\n  bool bVar7;\n  undefined8 uVar8;\n  char buffer [8192];\n  \n  uVar8 = __x86_get_pc_thunk_di();\n  iVar2 = *(int *)(in_GS_OFFSET + 0x14);\n  if (fd != 0 || pretty_filename != (char *)0x0) {\n    do {\n      pcVar3 = (char *)safe_read((int)((ulonglong)uVar8 >> 0x20),buffer,0x2000);\n      if (pcVar3 == (char *)0x0) {\n        iVar4 = -1;\n        goto LAB_00015c2a;\n      }\n      if (pcVar3 == (char *)0xffffffff) {\n        pcVar3 = quotearg_style(shell_escape_always_quoting_style,(char *)uVar8);\n        uVar5 = dcgettext(0,unaff_EDI + 0xa4c1,5);\n        piVar6 = __errno_location();\n                    /* WARNING: Subroutine does not return */\n        error(0,*piVar6,uVar5,pcVar3);\n      }\n      uVar1 = *(uint *)n_bytes;\n      *(uint *)n_bytes = (uint)(pcVar3 + *(uint *)n_bytes);\n      ((uint *)n_bytes)[1] = ((uint *)n_bytes)[1] + (uint)CARRY4(uVar1,(uint)pcVar3);\n      if ((uint)fd < (uint)(pretty_filename < pcVar3)) {\n        if ((int)pcVar3 - (int)pretty_filename != 0) {\n          xwrite_stdout(buffer + (int)pretty_filename,(int)pcVar3 - (int)pretty_filename);\n        }\n        break;\n      }\n      bVar7 = pretty_filename < pcVar3;\n      pretty_filename = pretty_filename + -(int)pcVar3;\n      fd = fd - (uint)bVar7;\n    } while (fd != 0 || pretty_filename != (char *)0x0);\n  }\n  iVar4 = 0;\nLAB_00015c2a:\n  if (iVar2 != *(int *)(in_GS_OFFSET + 0x14)) {\n                    /* WARNING: Subroutine does not return */\n    __stack_chk_fail_local();\n  }\n  return iVar4;\n}" primitive_type (function_declarator "start_bytes(char *pretty_filename,int fd,uintmax_t n_bytes,uintmax_t *read_pos)" identifier (parameter_list "(char *pretty_filename,int fd,uintmax_t n_bytes,uintmax_t *read_pos)" ( (parameter_declaration "char *pretty_filename" primitive_type (pointer_declarator "*pretty_filename" * identifier)) , (parameter_declaration "int fd" primitive_type identifier) , (parameter_declaration "uintmax_t n_bytes" type_identifier identifier) , (parameter_declaration "uintmax_t *read_pos" type_identifier (pointer_declarator "*read_pos" * identifier)) ))) (compound_statement "{\n  uint uVar1;\n  int iVar2;\n  char *pcVar3;\n  int iVar4;\n  undefined4 uVar5;\n  int *piVar6;\n  int unaff_EDI;\n  int in_GS_OFFSET;\n  bool bVar7;\n  undefined8 uVar8;\n  char buffer [8192];\n  \n  uVar8 = __x86_get_pc_thunk_di();\n  iVar2 = *(int *)(in_GS_OFFSET + 0x14);\n  if (fd != 0 || pretty_filename != (char *)0x0) {\n    do {\n      pcVar3 = (char *)safe_read((int)((ulonglong)uVar8 >> 0x20),buffer,0x2000);\n      if (pcVar3 == (char *)0x0) {\n        iVar4 = -1;\n        goto LAB_00015c2a;\n      }\n      if (pcVar3 == (char *)0xffffffff) {\n        pcVar3 = quotearg_style(shell_escape_always_quoting_style,(char *)uVar8);\n        uVar5 = dcgettext(0,unaff_EDI + 0xa4c1,5);\n        piVar6 = __errno_location();\n                    /* WARNING: Subroutine does not return */\n        error(0,*piVar6,uVar5,pcVar3);\n      }\n      uVar1 = *(uint *)n_bytes;\n      *(uint *)n_bytes = (uint)(pcVar3 + *(uint *)n_bytes);\n      ((uint *)n_bytes)[1] = ((uint *)n_bytes)[1] + (uint)CARRY4(uVar1,(uint)pcVar3);\n      if ((uint)fd < (uint)(pretty_filename < pcVar3)) {\n        if ((int)pcVar3 - (int)pretty_filename != 0) {\n          xwrite_stdout(buffer + (int)pretty_filename,(int)pcVar3 - (int)pretty_filename);\n        }\n        break;\n      }\n      bVar7 = pretty_filename < pcVar3;\n      pretty_filename = pretty_filename + -(int)pcVar3;\n      fd = fd - (uint)bVar7;\n    } while (fd != 0 || pretty_filename != (char *)0x0);\n  }\n  iVar4 = 0;\nLAB_00015c2a:\n  if (iVar2 != *(int *)(in_GS_OFFSET + 0x14)) {\n                    /* WARNING: Subroutine does not return */\n    __stack_chk_fail_local();\n  }\n  return iVar4;\n}" { (declaration "uint uVar1;" type_identifier identifier ;) (declaration "int iVar2;" primitive_type identifier ;) (declaration "char *pcVar3;" primitive_type (pointer_declarator "*pcVar3" * identifier) ;) (declaration "int iVar4;" primitive_type identifier ;) (declaration "undefined4 uVar5;" type_identifier identifier ;) (declaration "int *piVar6;" primitive_type (pointer_declarator "*piVar6" * identifier) ;) (declaration "int unaff_EDI;" primitive_type identifier ;) (declaration "int in_GS_OFFSET;" primitive_type identifier ;) (declaration "bool bVar7;" primitive_type identifier ;) (declaration "undefined8 uVar8;" type_identifier identifier ;) (declaration "char buffer [8192];" primitive_type (array_declarator "buffer [8192]" identifier [ number_literal ]) ;) (expression_statement "uVar8 = __x86_get_pc_thunk_di();" (assignment_expression "uVar8 = __x86_get_pc_thunk_di()" identifier = (call_expression "__x86_get_pc_thunk_di()" identifier (argument_list "()" ( )))) ;) (expression_statement "iVar2 = *(int *)(in_GS_OFFSET + 0x14);" (assignment_expression "iVar2 = *(int *)(in_GS_OFFSET + 0x14)" identifier = (pointer_expression "*(int *)(in_GS_OFFSET + 0x14)" * (cast_expression "(int *)(in_GS_OFFSET + 0x14)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(in_GS_OFFSET + 0x14)" ( (binary_expression "in_GS_OFFSET + 0x14" identifier + number_literal) ))))) ;) (if_statement "if (fd != 0 || pretty_filename != (char *)0x0) {\n    do {\n      pcVar3 = (char *)safe_read((int)((ulonglong)uVar8 >> 0x20),buffer,0x2000);\n      if (pcVar3 == (char *)0x0) {\n        iVar4 = -1;\n        goto LAB_00015c2a;\n      }\n      if (pcVar3 == (char *)0xffffffff) {\n        pcVar3 = quotearg_style(shell_escape_always_quoting_style,(char *)uVar8);\n        uVar5 = dcgettext(0,unaff_EDI + 0xa4c1,5);\n        piVar6 = __errno_location();\n                    /* WARNING: Subroutine does not return */\n        error(0,*piVar6,uVar5,pcVar3);\n      }\n      uVar1 = *(uint *)n_bytes;\n      *(uint *)n_bytes = (uint)(pcVar3 + *(uint *)n_bytes);\n      ((uint *)n_bytes)[1] = ((uint *)n_bytes)[1] + (uint)CARRY4(uVar1,(uint)pcVar3);\n      if ((uint)fd < (uint)(pretty_filename < pcVar3)) {\n        if ((int)pcVar3 - (int)pretty_filename != 0) {\n          xwrite_stdout(buffer + (int)pretty_filename,(int)pcVar3 - (int)pretty_filename);\n        }\n        break;\n      }\n      bVar7 = pretty_filename < pcVar3;\n      pretty_filename = pretty_filename + -(int)pcVar3;\n      fd = fd - (uint)bVar7;\n    } while (fd != 0 || pretty_filename != (char *)0x0);\n  }" if (parenthesized_expression "(fd != 0 || pretty_filename != (char *)0x0)" ( (binary_expression "fd != 0 || pretty_filename != (char *)0x0" (binary_expression "fd != 0" identifier != number_literal) || (binary_expression "pretty_filename != (char *)0x0" identifier != (cast_expression "(char *)0x0" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal))) )) (compound_statement "{\n    do {\n      pcVar3 = (char *)safe_read((int)((ulonglong)uVar8 >> 0x20),buffer,0x2000);\n      if (pcVar3 == (char *)0x0) {\n        iVar4 = -1;\n        goto LAB_00015c2a;\n      }\n      if (pcVar3 == (char *)0xffffffff) {\n        pcVar3 = quotearg_style(shell_escape_always_quoting_style,(char *)uVar8);\n        uVar5 = dcgettext(0,unaff_EDI + 0xa4c1,5);\n        piVar6 = __errno_location();\n                    /* WARNING: Subroutine does not return */\n        error(0,*piVar6,uVar5,pcVar3);\n      }\n      uVar1 = *(uint *)n_bytes;\n      *(uint *)n_bytes = (uint)(pcVar3 + *(uint *)n_bytes);\n      ((uint *)n_bytes)[1] = ((uint *)n_bytes)[1] + (uint)CARRY4(uVar1,(uint)pcVar3);\n      if ((uint)fd < (uint)(pretty_filename < pcVar3)) {\n        if ((int)pcVar3 - (int)pretty_filename != 0) {\n          xwrite_stdout(buffer + (int)pretty_filename,(int)pcVar3 - (int)pretty_filename);\n        }\n        break;\n      }\n      bVar7 = pretty_filename < pcVar3;\n      pretty_filename = pretty_filename + -(int)pcVar3;\n      fd = fd - (uint)bVar7;\n    } while (fd != 0 || pretty_filename != (char *)0x0);\n  }" { (do_statement "do {\n      pcVar3 = (char *)safe_read((int)((ulonglong)uVar8 >> 0x20),buffer,0x2000);\n      if (pcVar3 == (char *)0x0) {\n        iVar4 = -1;\n        goto LAB_00015c2a;\n      }\n      if (pcVar3 == (char *)0xffffffff) {\n        pcVar3 = quotearg_style(shell_escape_always_quoting_style,(char *)uVar8);\n        uVar5 = dcgettext(0,unaff_EDI + 0xa4c1,5);\n        piVar6 = __errno_location();\n                    /* WARNING: Subroutine does not return */\n        error(0,*piVar6,uVar5,pcVar3);\n      }\n      uVar1 = *(uint *)n_bytes;\n      *(uint *)n_bytes = (uint)(pcVar3 + *(uint *)n_bytes);\n      ((uint *)n_bytes)[1] = ((uint *)n_bytes)[1] + (uint)CARRY4(uVar1,(uint)pcVar3);\n      if ((uint)fd < (uint)(pretty_filename < pcVar3)) {\n        if ((int)pcVar3 - (int)pretty_filename != 0) {\n          xwrite_stdout(buffer + (int)pretty_filename,(int)pcVar3 - (int)pretty_filename);\n        }\n        break;\n      }\n      bVar7 = pretty_filename < pcVar3;\n      pretty_filename = pretty_filename + -(int)pcVar3;\n      fd = fd - (uint)bVar7;\n    } while (fd != 0 || pretty_filename != (char *)0x0);" do (compound_statement "{\n      pcVar3 = (char *)safe_read((int)((ulonglong)uVar8 >> 0x20),buffer,0x2000);\n      if (pcVar3 == (char *)0x0) {\n        iVar4 = -1;\n        goto LAB_00015c2a;\n      }\n      if (pcVar3 == (char *)0xffffffff) {\n        pcVar3 = quotearg_style(shell_escape_always_quoting_style,(char *)uVar8);\n        uVar5 = dcgettext(0,unaff_EDI + 0xa4c1,5);\n        piVar6 = __errno_location();\n                    /* WARNING: Subroutine does not return */\n        error(0,*piVar6,uVar5,pcVar3);\n      }\n      uVar1 = *(uint *)n_bytes;\n      *(uint *)n_bytes = (uint)(pcVar3 + *(uint *)n_bytes);\n      ((uint *)n_bytes)[1] = ((uint *)n_bytes)[1] + (uint)CARRY4(uVar1,(uint)pcVar3);\n      if ((uint)fd < (uint)(pretty_filename < pcVar3)) {\n        if ((int)pcVar3 - (int)pretty_filename != 0) {\n          xwrite_stdout(buffer + (int)pretty_filename,(int)pcVar3 - (int)pretty_filename);\n        }\n        break;\n      }\n      bVar7 = pretty_filename < pcVar3;\n      pretty_filename = pretty_filename + -(int)pcVar3;\n      fd = fd - (uint)bVar7;\n    }" { (expression_statement "pcVar3 = (char *)safe_read((int)((ulonglong)uVar8 >> 0x20),buffer,0x2000);" (assignment_expression "pcVar3 = (char *)safe_read((int)((ulonglong)uVar8 >> 0x20),buffer,0x2000)" identifier = (cast_expression "(char *)safe_read((int)((ulonglong)uVar8 >> 0x20),buffer,0x2000)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (call_expression "safe_read((int)((ulonglong)uVar8 >> 0x20),buffer,0x2000)" identifier (argument_list "((int)((ulonglong)uVar8 >> 0x20),buffer,0x2000)" ( (cast_expression "(int)((ulonglong)uVar8 >> 0x20)" ( (type_descriptor "int" primitive_type) ) (parenthesized_expression "((ulonglong)uVar8 >> 0x20)" ( (binary_expression "(ulonglong)uVar8 >> 0x20" (cast_expression "(ulonglong)uVar8" ( (type_descriptor "ulonglong" type_identifier) ) identifier) >> number_literal) ))) , identifier , number_literal ))))) ;) (if_statement "if (pcVar3 == (char *)0x0) {\n        iVar4 = -1;\n        goto LAB_00015c2a;\n      }" if (parenthesized_expression "(pcVar3 == (char *)0x0)" ( (binary_expression "pcVar3 == (char *)0x0" identifier == (cast_expression "(char *)0x0" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n        iVar4 = -1;\n        goto LAB_00015c2a;\n      }" { (expression_statement "iVar4 = -1;" (assignment_expression "iVar4 = -1" identifier = number_literal) ;) (goto_statement "goto LAB_00015c2a;" goto statement_identifier ;) })) (if_statement "if (pcVar3 == (char *)0xffffffff) {\n        pcVar3 = quotearg_style(shell_escape_always_quoting_style,(char *)uVar8);\n        uVar5 = dcgettext(0,unaff_EDI + 0xa4c1,5);\n        piVar6 = __errno_location();\n                    /* WARNING: Subroutine does not return */\n        error(0,*piVar6,uVar5,pcVar3);\n      }" if (parenthesized_expression "(pcVar3 == (char *)0xffffffff)" ( (binary_expression "pcVar3 == (char *)0xffffffff" identifier == (cast_expression "(char *)0xffffffff" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n        pcVar3 = quotearg_style(shell_escape_always_quoting_style,(char *)uVar8);\n        uVar5 = dcgettext(0,unaff_EDI + 0xa4c1,5);\n        piVar6 = __errno_location();\n                    /* WARNING: Subroutine does not return */\n        error(0,*piVar6,uVar5,pcVar3);\n      }" { (expression_statement "pcVar3 = quotearg_style(shell_escape_always_quoting_style,(char *)uVar8);" (assignment_expression "pcVar3 = quotearg_style(shell_escape_always_quoting_style,(char *)uVar8)" identifier = (call_expression "quotearg_style(shell_escape_always_quoting_style,(char *)uVar8)" identifier (argument_list "(shell_escape_always_quoting_style,(char *)uVar8)" ( identifier , (cast_expression "(char *)uVar8" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) identifier) )))) ;) (expression_statement "uVar5 = dcgettext(0,unaff_EDI + 0xa4c1,5);" (assignment_expression "uVar5 = dcgettext(0,unaff_EDI + 0xa4c1,5)" identifier = (call_expression "dcgettext(0,unaff_EDI + 0xa4c1,5)" identifier (argument_list "(0,unaff_EDI + 0xa4c1,5)" ( number_literal , (binary_expression "unaff_EDI + 0xa4c1" identifier + number_literal) , number_literal )))) ;) (expression_statement "piVar6 = __errno_location();" (assignment_expression "piVar6 = __errno_location()" identifier = (call_expression "__errno_location()" identifier (argument_list "()" ( )))) ;) comment (expression_statement "error(0,*piVar6,uVar5,pcVar3);" (call_expression "error(0,*piVar6,uVar5,pcVar3)" identifier (argument_list "(0,*piVar6,uVar5,pcVar3)" ( number_literal , (pointer_expression "*piVar6" * identifier) , identifier , identifier ))) ;) })) (expression_statement "uVar1 = *(uint *)n_bytes;" (assignment_expression "uVar1 = *(uint *)n_bytes" identifier = (pointer_expression "*(uint *)n_bytes" * (cast_expression "(uint *)n_bytes" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier))) ;) (expression_statement "*(uint *)n_bytes = (uint)(pcVar3 + *(uint *)n_bytes);" (assignment_expression "*(uint *)n_bytes = (uint)(pcVar3 + *(uint *)n_bytes)" (pointer_expression "*(uint *)n_bytes" * (cast_expression "(uint *)n_bytes" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) = (call_expression "(uint)(pcVar3 + *(uint *)n_bytes)" (parenthesized_expression "(uint)" ( identifier )) (argument_list "(pcVar3 + *(uint *)n_bytes)" ( (binary_expression "pcVar3 + *(uint *)n_bytes" identifier + (pointer_expression "*(uint *)n_bytes" * (cast_expression "(uint *)n_bytes" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier))) )))) ;) (expression_statement "((uint *)n_bytes)[1] = ((uint *)n_bytes)[1] + (uint)CARRY4(uVar1,(uint)pcVar3);" (assignment_expression "((uint *)n_bytes)[1] = ((uint *)n_bytes)[1] + (uint)CARRY4(uVar1,(uint)pcVar3)" (subscript_expression "((uint *)n_bytes)[1]" (parenthesized_expression "((uint *)n_bytes)" ( (cast_expression "(uint *)n_bytes" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier) )) [ number_literal ]) = (binary_expression "((uint *)n_bytes)[1] + (uint)CARRY4(uVar1,(uint)pcVar3)" (subscript_expression "((uint *)n_bytes)[1]" (parenthesized_expression "((uint *)n_bytes)" ( (cast_expression "(uint *)n_bytes" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier) )) [ number_literal ]) + (cast_expression "(uint)CARRY4(uVar1,(uint)pcVar3)" ( (type_descriptor "uint" type_identifier) ) (call_expression "CARRY4(uVar1,(uint)pcVar3)" identifier (argument_list "(uVar1,(uint)pcVar3)" ( identifier , (cast_expression "(uint)pcVar3" ( (type_descriptor "uint" type_identifier) ) identifier) )))))) ;) (if_statement "if ((uint)fd < (uint)(pretty_filename < pcVar3)) {\n        if ((int)pcVar3 - (int)pretty_filename != 0) {\n          xwrite_stdout(buffer + (int)pretty_filename,(int)pcVar3 - (int)pretty_filename);\n        }\n        break;\n      }" if (parenthesized_expression "((uint)fd < (uint)(pretty_filename < pcVar3))" ( (binary_expression "(uint)fd < (uint)(pretty_filename < pcVar3)" (cast_expression "(uint)fd" ( (type_descriptor "uint" type_identifier) ) identifier) < (call_expression "(uint)(pretty_filename < pcVar3)" (parenthesized_expression "(uint)" ( identifier )) (argument_list "(pretty_filename < pcVar3)" ( (binary_expression "pretty_filename < pcVar3" identifier < identifier) )))) )) (compound_statement "{\n        if ((int)pcVar3 - (int)pretty_filename != 0) {\n          xwrite_stdout(buffer + (int)pretty_filename,(int)pcVar3 - (int)pretty_filename);\n        }\n        break;\n      }" { (if_statement "if ((int)pcVar3 - (int)pretty_filename != 0) {\n          xwrite_stdout(buffer + (int)pretty_filename,(int)pcVar3 - (int)pretty_filename);\n        }" if (parenthesized_expression "((int)pcVar3 - (int)pretty_filename != 0)" ( (binary_expression "(int)pcVar3 - (int)pretty_filename != 0" (binary_expression "(int)pcVar3 - (int)pretty_filename" (cast_expression "(int)pcVar3" ( (type_descriptor "int" primitive_type) ) identifier) - (cast_expression "(int)pretty_filename" ( (type_descriptor "int" primitive_type) ) identifier)) != number_literal) )) (compound_statement "{\n          xwrite_stdout(buffer + (int)pretty_filename,(int)pcVar3 - (int)pretty_filename);\n        }" { (expression_statement "xwrite_stdout(buffer + (int)pretty_filename,(int)pcVar3 - (int)pretty_filename);" (call_expression "xwrite_stdout(buffer + (int)pretty_filename,(int)pcVar3 - (int)pretty_filename)" identifier (argument_list "(buffer + (int)pretty_filename,(int)pcVar3 - (int)pretty_filename)" ( (binary_expression "buffer + (int)pretty_filename" identifier + (cast_expression "(int)pretty_filename" ( (type_descriptor "int" primitive_type) ) identifier)) , (binary_expression "(int)pcVar3 - (int)pretty_filename" (cast_expression "(int)pcVar3" ( (type_descriptor "int" primitive_type) ) identifier) - (cast_expression "(int)pretty_filename" ( (type_descriptor "int" primitive_type) ) identifier)) ))) ;) })) (break_statement "break;" break ;) })) (expression_statement "bVar7 = pretty_filename < pcVar3;" (assignment_expression "bVar7 = pretty_filename < pcVar3" identifier = (binary_expression "pretty_filename < pcVar3" identifier < identifier)) ;) (expression_statement "pretty_filename = pretty_filename + -(int)pcVar3;" (assignment_expression "pretty_filename = pretty_filename + -(int)pcVar3" identifier = (binary_expression "pretty_filename + -(int)pcVar3" identifier + (unary_expression "-(int)pcVar3" - (cast_expression "(int)pcVar3" ( (type_descriptor "int" primitive_type) ) identifier)))) ;) (expression_statement "fd = fd - (uint)bVar7;" (assignment_expression "fd = fd - (uint)bVar7" identifier = (binary_expression "fd - (uint)bVar7" identifier - (cast_expression "(uint)bVar7" ( (type_descriptor "uint" type_identifier) ) identifier))) ;) }) while (parenthesized_expression "(fd != 0 || pretty_filename != (char *)0x0)" ( (binary_expression "fd != 0 || pretty_filename != (char *)0x0" (binary_expression "fd != 0" identifier != number_literal) || (binary_expression "pretty_filename != (char *)0x0" identifier != (cast_expression "(char *)0x0" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal))) )) ;) })) (expression_statement "iVar4 = 0;" (assignment_expression "iVar4 = 0" identifier = number_literal) ;) (labeled_statement "LAB_00015c2a:\n  if (iVar2 != *(int *)(in_GS_OFFSET + 0x14)) {\n                    /* WARNING: Subroutine does not return */\n    __stack_chk_fail_local();\n  }" statement_identifier : (if_statement "if (iVar2 != *(int *)(in_GS_OFFSET + 0x14)) {\n                    /* WARNING: Subroutine does not return */\n    __stack_chk_fail_local();\n  }" if (parenthesized_expression "(iVar2 != *(int *)(in_GS_OFFSET + 0x14))" ( (binary_expression "iVar2 != *(int *)(in_GS_OFFSET + 0x14)" identifier != (pointer_expression "*(int *)(in_GS_OFFSET + 0x14)" * (cast_expression "(int *)(in_GS_OFFSET + 0x14)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(in_GS_OFFSET + 0x14)" ( (binary_expression "in_GS_OFFSET + 0x14" identifier + number_literal) ))))) )) (compound_statement "{\n                    /* WARNING: Subroutine does not return */\n    __stack_chk_fail_local();\n  }" { comment (expression_statement "__stack_chk_fail_local();" (call_expression "__stack_chk_fail_local()" identifier (argument_list "()" ( ))) ;) }))) (return_statement "return iVar4;" return identifier ;) })))
(translation_unit "undefined4 FUN_00015b70(uint param_1,uint param_2,uint *param_3)\n\n{\n  uint uVar1;\n  uint uVar2;\n  undefined4 uVar3;\n  undefined4 uVar4;\n  int *piVar5;\n  int unaff_EDI;\n  int in_GS_OFFSET;\n  bool bVar6;\n  undefined8 uVar7;\n  undefined1 local_2020 [8192];\n  int local_20;\n  \n  uVar7 = FUN_00017e7d();\n  local_20 = *(int *)(in_GS_OFFSET + 0x14);\n  if (param_2 != 0 || param_1 != 0) {\n    do {\n      uVar2 = FUN_0001bd30((int)((ulonglong)uVar7 >> 0x20),local_2020,0x2000);\n      if (uVar2 == 0) {\n        uVar3 = 0xffffffff;\n        goto LAB_00015c2a;\n      }\n      if (uVar2 == 0xffffffff) {\n        uVar3 = FUN_0001b880(4,(int)uVar7);\n        uVar4 = dcgettext(0,unaff_EDI + 0xa4c1,5);\n        piVar5 = __errno_location();\n                    \n        error(0,*piVar5,uVar4,uVar3);\n      }\n      uVar1 = *param_3;\n      *param_3 = *param_3 + uVar2;\n      param_3[1] = param_3[1] + (uint)CARRY4(uVar1,uVar2);\n      if (param_2 < (param_1 < uVar2)) {\n        if (uVar2 != param_1) {\n          FUN_000159a0();\n        }\n        break;\n      }\n      bVar6 = param_1 < uVar2;\n      param_1 = param_1 - uVar2;\n      param_2 = param_2 - bVar6;\n    } while (param_2 != 0 || param_1 != 0);\n  }\n  uVar3 = 0;\nLAB_00015c2a:\n  if (local_20 != *(int *)(in_GS_OFFSET + 0x14)) {\n                    \n    FUN_0001f5c0();\n  }\n  return uVar3;\n}\n\n" (function_definition "undefined4 FUN_00015b70(uint param_1,uint param_2,uint *param_3)\n\n{\n  uint uVar1;\n  uint uVar2;\n  undefined4 uVar3;\n  undefined4 uVar4;\n  int *piVar5;\n  int unaff_EDI;\n  int in_GS_OFFSET;\n  bool bVar6;\n  undefined8 uVar7;\n  undefined1 local_2020 [8192];\n  int local_20;\n  \n  uVar7 = FUN_00017e7d();\n  local_20 = *(int *)(in_GS_OFFSET + 0x14);\n  if (param_2 != 0 || param_1 != 0) {\n    do {\n      uVar2 = FUN_0001bd30((int)((ulonglong)uVar7 >> 0x20),local_2020,0x2000);\n      if (uVar2 == 0) {\n        uVar3 = 0xffffffff;\n        goto LAB_00015c2a;\n      }\n      if (uVar2 == 0xffffffff) {\n        uVar3 = FUN_0001b880(4,(int)uVar7);\n        uVar4 = dcgettext(0,unaff_EDI + 0xa4c1,5);\n        piVar5 = __errno_location();\n                    \n        error(0,*piVar5,uVar4,uVar3);\n      }\n      uVar1 = *param_3;\n      *param_3 = *param_3 + uVar2;\n      param_3[1] = param_3[1] + (uint)CARRY4(uVar1,uVar2);\n      if (param_2 < (param_1 < uVar2)) {\n        if (uVar2 != param_1) {\n          FUN_000159a0();\n        }\n        break;\n      }\n      bVar6 = param_1 < uVar2;\n      param_1 = param_1 - uVar2;\n      param_2 = param_2 - bVar6;\n    } while (param_2 != 0 || param_1 != 0);\n  }\n  uVar3 = 0;\nLAB_00015c2a:\n  if (local_20 != *(int *)(in_GS_OFFSET + 0x14)) {\n                    \n    FUN_0001f5c0();\n  }\n  return uVar3;\n}" type_identifier (function_declarator "FUN_00015b70(uint param_1,uint param_2,uint *param_3)" identifier (parameter_list "(uint param_1,uint param_2,uint *param_3)" ( (parameter_declaration "uint param_1" type_identifier identifier) , (parameter_declaration "uint param_2" type_identifier identifier) , (parameter_declaration "uint *param_3" type_identifier (pointer_declarator "*param_3" * identifier)) ))) (compound_statement "{\n  uint uVar1;\n  uint uVar2;\n  undefined4 uVar3;\n  undefined4 uVar4;\n  int *piVar5;\n  int unaff_EDI;\n  int in_GS_OFFSET;\n  bool bVar6;\n  undefined8 uVar7;\n  undefined1 local_2020 [8192];\n  int local_20;\n  \n  uVar7 = FUN_00017e7d();\n  local_20 = *(int *)(in_GS_OFFSET + 0x14);\n  if (param_2 != 0 || param_1 != 0) {\n    do {\n      uVar2 = FUN_0001bd30((int)((ulonglong)uVar7 >> 0x20),local_2020,0x2000);\n      if (uVar2 == 0) {\n        uVar3 = 0xffffffff;\n        goto LAB_00015c2a;\n      }\n      if (uVar2 == 0xffffffff) {\n        uVar3 = FUN_0001b880(4,(int)uVar7);\n        uVar4 = dcgettext(0,unaff_EDI + 0xa4c1,5);\n        piVar5 = __errno_location();\n                    \n        error(0,*piVar5,uVar4,uVar3);\n      }\n      uVar1 = *param_3;\n      *param_3 = *param_3 + uVar2;\n      param_3[1] = param_3[1] + (uint)CARRY4(uVar1,uVar2);\n      if (param_2 < (param_1 < uVar2)) {\n        if (uVar2 != param_1) {\n          FUN_000159a0();\n        }\n        break;\n      }\n      bVar6 = param_1 < uVar2;\n      param_1 = param_1 - uVar2;\n      param_2 = param_2 - bVar6;\n    } while (param_2 != 0 || param_1 != 0);\n  }\n  uVar3 = 0;\nLAB_00015c2a:\n  if (local_20 != *(int *)(in_GS_OFFSET + 0x14)) {\n                    \n    FUN_0001f5c0();\n  }\n  return uVar3;\n}" { (declaration "uint uVar1;" type_identifier identifier ;) (declaration "uint uVar2;" type_identifier identifier ;) (declaration "undefined4 uVar3;" type_identifier identifier ;) (declaration "undefined4 uVar4;" type_identifier identifier ;) (declaration "int *piVar5;" primitive_type (pointer_declarator "*piVar5" * identifier) ;) (declaration "int unaff_EDI;" primitive_type identifier ;) (declaration "int in_GS_OFFSET;" primitive_type identifier ;) (declaration "bool bVar6;" primitive_type identifier ;) (declaration "undefined8 uVar7;" type_identifier identifier ;) (declaration "undefined1 local_2020 [8192];" type_identifier (array_declarator "local_2020 [8192]" identifier [ number_literal ]) ;) (declaration "int local_20;" primitive_type identifier ;) (expression_statement "uVar7 = FUN_00017e7d();" (assignment_expression "uVar7 = FUN_00017e7d()" identifier = (call_expression "FUN_00017e7d()" identifier (argument_list "()" ( )))) ;) (expression_statement "local_20 = *(int *)(in_GS_OFFSET + 0x14);" (assignment_expression "local_20 = *(int *)(in_GS_OFFSET + 0x14)" identifier = (pointer_expression "*(int *)(in_GS_OFFSET + 0x14)" * (cast_expression "(int *)(in_GS_OFFSET + 0x14)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(in_GS_OFFSET + 0x14)" ( (binary_expression "in_GS_OFFSET + 0x14" identifier + number_literal) ))))) ;) (if_statement "if (param_2 != 0 || param_1 != 0) {\n    do {\n      uVar2 = FUN_0001bd30((int)((ulonglong)uVar7 >> 0x20),local_2020,0x2000);\n      if (uVar2 == 0) {\n        uVar3 = 0xffffffff;\n        goto LAB_00015c2a;\n      }\n      if (uVar2 == 0xffffffff) {\n        uVar3 = FUN_0001b880(4,(int)uVar7);\n        uVar4 = dcgettext(0,unaff_EDI + 0xa4c1,5);\n        piVar5 = __errno_location();\n                    \n        error(0,*piVar5,uVar4,uVar3);\n      }\n      uVar1 = *param_3;\n      *param_3 = *param_3 + uVar2;\n      param_3[1] = param_3[1] + (uint)CARRY4(uVar1,uVar2);\n      if (param_2 < (param_1 < uVar2)) {\n        if (uVar2 != param_1) {\n          FUN_000159a0();\n        }\n        break;\n      }\n      bVar6 = param_1 < uVar2;\n      param_1 = param_1 - uVar2;\n      param_2 = param_2 - bVar6;\n    } while (param_2 != 0 || param_1 != 0);\n  }" if (parenthesized_expression "(param_2 != 0 || param_1 != 0)" ( (binary_expression "param_2 != 0 || param_1 != 0" (binary_expression "param_2 != 0" identifier != number_literal) || (binary_expression "param_1 != 0" identifier != number_literal)) )) (compound_statement "{\n    do {\n      uVar2 = FUN_0001bd30((int)((ulonglong)uVar7 >> 0x20),local_2020,0x2000);\n      if (uVar2 == 0) {\n        uVar3 = 0xffffffff;\n        goto LAB_00015c2a;\n      }\n      if (uVar2 == 0xffffffff) {\n        uVar3 = FUN_0001b880(4,(int)uVar7);\n        uVar4 = dcgettext(0,unaff_EDI + 0xa4c1,5);\n        piVar5 = __errno_location();\n                    \n        error(0,*piVar5,uVar4,uVar3);\n      }\n      uVar1 = *param_3;\n      *param_3 = *param_3 + uVar2;\n      param_3[1] = param_3[1] + (uint)CARRY4(uVar1,uVar2);\n      if (param_2 < (param_1 < uVar2)) {\n        if (uVar2 != param_1) {\n          FUN_000159a0();\n        }\n        break;\n      }\n      bVar6 = param_1 < uVar2;\n      param_1 = param_1 - uVar2;\n      param_2 = param_2 - bVar6;\n    } while (param_2 != 0 || param_1 != 0);\n  }" { (do_statement "do {\n      uVar2 = FUN_0001bd30((int)((ulonglong)uVar7 >> 0x20),local_2020,0x2000);\n      if (uVar2 == 0) {\n        uVar3 = 0xffffffff;\n        goto LAB_00015c2a;\n      }\n      if (uVar2 == 0xffffffff) {\n        uVar3 = FUN_0001b880(4,(int)uVar7);\n        uVar4 = dcgettext(0,unaff_EDI + 0xa4c1,5);\n        piVar5 = __errno_location();\n                    \n        error(0,*piVar5,uVar4,uVar3);\n      }\n      uVar1 = *param_3;\n      *param_3 = *param_3 + uVar2;\n      param_3[1] = param_3[1] + (uint)CARRY4(uVar1,uVar2);\n      if (param_2 < (param_1 < uVar2)) {\n        if (uVar2 != param_1) {\n          FUN_000159a0();\n        }\n        break;\n      }\n      bVar6 = param_1 < uVar2;\n      param_1 = param_1 - uVar2;\n      param_2 = param_2 - bVar6;\n    } while (param_2 != 0 || param_1 != 0);" do (compound_statement "{\n      uVar2 = FUN_0001bd30((int)((ulonglong)uVar7 >> 0x20),local_2020,0x2000);\n      if (uVar2 == 0) {\n        uVar3 = 0xffffffff;\n        goto LAB_00015c2a;\n      }\n      if (uVar2 == 0xffffffff) {\n        uVar3 = FUN_0001b880(4,(int)uVar7);\n        uVar4 = dcgettext(0,unaff_EDI + 0xa4c1,5);\n        piVar5 = __errno_location();\n                    \n        error(0,*piVar5,uVar4,uVar3);\n      }\n      uVar1 = *param_3;\n      *param_3 = *param_3 + uVar2;\n      param_3[1] = param_3[1] + (uint)CARRY4(uVar1,uVar2);\n      if (param_2 < (param_1 < uVar2)) {\n        if (uVar2 != param_1) {\n          FUN_000159a0();\n        }\n        break;\n      }\n      bVar6 = param_1 < uVar2;\n      param_1 = param_1 - uVar2;\n      param_2 = param_2 - bVar6;\n    }" { (expression_statement "uVar2 = FUN_0001bd30((int)((ulonglong)uVar7 >> 0x20),local_2020,0x2000);" (assignment_expression "uVar2 = FUN_0001bd30((int)((ulonglong)uVar7 >> 0x20),local_2020,0x2000)" identifier = (call_expression "FUN_0001bd30((int)((ulonglong)uVar7 >> 0x20),local_2020,0x2000)" identifier (argument_list "((int)((ulonglong)uVar7 >> 0x20),local_2020,0x2000)" ( (cast_expression "(int)((ulonglong)uVar7 >> 0x20)" ( (type_descriptor "int" primitive_type) ) (parenthesized_expression "((ulonglong)uVar7 >> 0x20)" ( (binary_expression "(ulonglong)uVar7 >> 0x20" (cast_expression "(ulonglong)uVar7" ( (type_descriptor "ulonglong" type_identifier) ) identifier) >> number_literal) ))) , identifier , number_literal )))) ;) (if_statement "if (uVar2 == 0) {\n        uVar3 = 0xffffffff;\n        goto LAB_00015c2a;\n      }" if (parenthesized_expression "(uVar2 == 0)" ( (binary_expression "uVar2 == 0" identifier == number_literal) )) (compound_statement "{\n        uVar3 = 0xffffffff;\n        goto LAB_00015c2a;\n      }" { (expression_statement "uVar3 = 0xffffffff;" (assignment_expression "uVar3 = 0xffffffff" identifier = number_literal) ;) (goto_statement "goto LAB_00015c2a;" goto statement_identifier ;) })) (if_statement "if (uVar2 == 0xffffffff) {\n        uVar3 = FUN_0001b880(4,(int)uVar7);\n        uVar4 = dcgettext(0,unaff_EDI + 0xa4c1,5);\n        piVar5 = __errno_location();\n                    \n        error(0,*piVar5,uVar4,uVar3);\n      }" if (parenthesized_expression "(uVar2 == 0xffffffff)" ( (binary_expression "uVar2 == 0xffffffff" identifier == number_literal) )) (compound_statement "{\n        uVar3 = FUN_0001b880(4,(int)uVar7);\n        uVar4 = dcgettext(0,unaff_EDI + 0xa4c1,5);\n        piVar5 = __errno_location();\n                    \n        error(0,*piVar5,uVar4,uVar3);\n      }" { (expression_statement "uVar3 = FUN_0001b880(4,(int)uVar7);" (assignment_expression "uVar3 = FUN_0001b880(4,(int)uVar7)" identifier = (call_expression "FUN_0001b880(4,(int)uVar7)" identifier (argument_list "(4,(int)uVar7)" ( number_literal , (cast_expression "(int)uVar7" ( (type_descriptor "int" primitive_type) ) identifier) )))) ;) (expression_statement "uVar4 = dcgettext(0,unaff_EDI + 0xa4c1,5);" (assignment_expression "uVar4 = dcgettext(0,unaff_EDI + 0xa4c1,5)" identifier = (call_expression "dcgettext(0,unaff_EDI + 0xa4c1,5)" identifier (argument_list "(0,unaff_EDI + 0xa4c1,5)" ( number_literal , (binary_expression "unaff_EDI + 0xa4c1" identifier + number_literal) , number_literal )))) ;) (expression_statement "piVar5 = __errno_location();" (assignment_expression "piVar5 = __errno_location()" identifier = (call_expression "__errno_location()" identifier (argument_list "()" ( )))) ;) (expression_statement "error(0,*piVar5,uVar4,uVar3);" (call_expression "error(0,*piVar5,uVar4,uVar3)" identifier (argument_list "(0,*piVar5,uVar4,uVar3)" ( number_literal , (pointer_expression "*piVar5" * identifier) , identifier , identifier ))) ;) })) (expression_statement "uVar1 = *param_3;" (assignment_expression "uVar1 = *param_3" identifier = (pointer_expression "*param_3" * identifier)) ;) (expression_statement "*param_3 = *param_3 + uVar2;" (assignment_expression "*param_3 = *param_3 + uVar2" (pointer_expression "*param_3" * identifier) = (binary_expression "*param_3 + uVar2" (pointer_expression "*param_3" * identifier) + identifier)) ;) (expression_statement "param_3[1] = param_3[1] + (uint)CARRY4(uVar1,uVar2);" (assignment_expression "param_3[1] = param_3[1] + (uint)CARRY4(uVar1,uVar2)" (subscript_expression "param_3[1]" identifier [ number_literal ]) = (binary_expression "param_3[1] + (uint)CARRY4(uVar1,uVar2)" (subscript_expression "param_3[1]" identifier [ number_literal ]) + (cast_expression "(uint)CARRY4(uVar1,uVar2)" ( (type_descriptor "uint" type_identifier) ) (call_expression "CARRY4(uVar1,uVar2)" identifier (argument_list "(uVar1,uVar2)" ( identifier , identifier )))))) ;) (if_statement "if (param_2 < (param_1 < uVar2)) {\n        if (uVar2 != param_1) {\n          FUN_000159a0();\n        }\n        break;\n      }" if (parenthesized_expression "(param_2 < (param_1 < uVar2))" ( (binary_expression "param_2 < (param_1 < uVar2)" identifier < (parenthesized_expression "(param_1 < uVar2)" ( (binary_expression "param_1 < uVar2" identifier < identifier) ))) )) (compound_statement "{\n        if (uVar2 != param_1) {\n          FUN_000159a0();\n        }\n        break;\n      }" { (if_statement "if (uVar2 != param_1) {\n          FUN_000159a0();\n        }" if (parenthesized_expression "(uVar2 != param_1)" ( (binary_expression "uVar2 != param_1" identifier != identifier) )) (compound_statement "{\n          FUN_000159a0();\n        }" { (expression_statement "FUN_000159a0();" (call_expression "FUN_000159a0()" identifier (argument_list "()" ( ))) ;) })) (break_statement "break;" break ;) })) (expression_statement "bVar6 = param_1 < uVar2;" (assignment_expression "bVar6 = param_1 < uVar2" identifier = (binary_expression "param_1 < uVar2" identifier < identifier)) ;) (expression_statement "param_1 = param_1 - uVar2;" (assignment_expression "param_1 = param_1 - uVar2" identifier = (binary_expression "param_1 - uVar2" identifier - identifier)) ;) (expression_statement "param_2 = param_2 - bVar6;" (assignment_expression "param_2 = param_2 - bVar6" identifier = (binary_expression "param_2 - bVar6" identifier - identifier)) ;) }) while (parenthesized_expression "(param_2 != 0 || param_1 != 0)" ( (binary_expression "param_2 != 0 || param_1 != 0" (binary_expression "param_2 != 0" identifier != number_literal) || (binary_expression "param_1 != 0" identifier != number_literal)) )) ;) })) (expression_statement "uVar3 = 0;" (assignment_expression "uVar3 = 0" identifier = number_literal) ;) (labeled_statement "LAB_00015c2a:\n  if (local_20 != *(int *)(in_GS_OFFSET + 0x14)) {\n                    \n    FUN_0001f5c0();\n  }" statement_identifier : (if_statement "if (local_20 != *(int *)(in_GS_OFFSET + 0x14)) {\n                    \n    FUN_0001f5c0();\n  }" if (parenthesized_expression "(local_20 != *(int *)(in_GS_OFFSET + 0x14))" ( (binary_expression "local_20 != *(int *)(in_GS_OFFSET + 0x14)" identifier != (pointer_expression "*(int *)(in_GS_OFFSET + 0x14)" * (cast_expression "(int *)(in_GS_OFFSET + 0x14)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(in_GS_OFFSET + 0x14)" ( (binary_expression "in_GS_OFFSET + 0x14" identifier + number_literal) ))))) )) (compound_statement "{\n                    \n    FUN_0001f5c0();\n  }" { (expression_statement "FUN_0001f5c0();" (call_expression "FUN_0001f5c0()" identifier (argument_list "()" ( ))) ;) }))) (return_statement "return uVar3;" return identifier ;) })))
(translation_unit (function_definition TYPE (function_declarator IDENT (parameter_list ( (parameter_declaration TYPE IDENT) , (parameter_declaration TYPE IDENT) , (parameter_declaration TYPE (pointer_declarator * IDENT)) ))) (compound_statement { (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE (array_declarator IDENT [ LIT ]) ;) (declaration TYPE IDENT ;) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( )))) ;) (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) ;) (if_statement if (parenthesized_expression ( (binary_expression (binary_expression IDENT != LIT) || (binary_expression IDENT != LIT)) )) (compound_statement { (do_statement do (compound_statement { (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( (cast_expression ( (type_descriptor TYPE) ) (parenthesized_expression ( (binary_expression (cast_expression ( (type_descriptor TYPE) ) IDENT) >> LIT) ))) , IDENT , LIT )))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT == LIT) )) (compound_statement { (expression_statement (assignment_expression IDENT = LIT) ;) (goto_statement goto statement_identifier ;) })) (if_statement if (parenthesized_expression ( (binary_expression IDENT == LIT) )) (compound_statement { (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( LIT , (cast_expression ( (type_descriptor TYPE) ) IDENT) )))) ;) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( LIT , (binary_expression IDENT + LIT) , LIT )))) ;) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( )))) ;) (expression_statement (call_expression IDENT (argument_list ( LIT , (pointer_expression * IDENT) , IDENT , IDENT ))) ;) })) (expression_statement (assignment_expression IDENT = (pointer_expression * IDENT)) ;) (expression_statement (assignment_expression (pointer_expression * IDENT) = (binary_expression (pointer_expression * IDENT) + IDENT)) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = (binary_expression (subscript_expression IDENT [ LIT ]) + (cast_expression ( (type_descriptor TYPE) ) (call_expression IDENT (argument_list ( IDENT , IDENT )))))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT < (parenthesized_expression ( (binary_expression IDENT < IDENT) ))) )) (compound_statement { (if_statement if (parenthesized_expression ( (binary_expression IDENT != IDENT) )) (compound_statement { (expression_statement (call_expression IDENT (argument_list ( ))) ;) })) (break_statement break ;) })) (expression_statement (assignment_expression IDENT = (binary_expression IDENT < IDENT)) ;) (expression_statement (assignment_expression IDENT = (binary_expression IDENT - IDENT)) ;) (expression_statement (assignment_expression IDENT = (binary_expression IDENT - IDENT)) ;) }) while (parenthesized_expression ( (binary_expression (binary_expression IDENT != LIT) || (binary_expression IDENT != LIT)) )) ;) })) (expression_statement (assignment_expression IDENT = LIT) ;) (labeled_statement statement_identifier : (if_statement if (parenthesized_expression ( (binary_expression IDENT != (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) )) (compound_statement { (expression_statement (call_expression IDENT (argument_list ( ))) ;) }))) (return_statement return IDENT ;) })))
(function_definition "undefined4 FUN_00015b70(uint param_1,uint param_2,uint *param_3)\n\n{\n  uint uVar1;\n  uint uVar2;\n  undefined4 uVar3;\n  undefined4 uVar4;\n  int *piVar5;\n  int unaff_EDI;\n  int in_GS_OFFSET;\n  bool bVar6;\n  undefined8 uVar7;\n  undefined1 local_2020 [8192];\n  int local_20;\n  \n  uVar7 = FUN_00017e7d();\n  local_20 = *(int *)(in_GS_OFFSET + 0x14);\n  if (param_2 != 0 || param_1 != 0) {\n    do {\n      uVar2 = FUN_0001bd30((int)((ulonglong)uVar7 >> 0x20),local_2020,0x2000);\n      if (uVar2 == 0) {\n        uVar3 = 0xffffffff;\n        goto LAB_00015c2a;\n      }\n      if (uVar2 == 0xffffffff) {\n        uVar3 = FUN_0001b880(4,(int)uVar7);\n        uVar4 = dcgettext(0,unaff_EDI + 0xa4c1,5);\n        piVar5 = __errno_location();\n                    \n        error(0,*piVar5,uVar4,uVar3);\n      }\n      uVar1 = *param_3;\n      *param_3 = *param_3 + uVar2;\n      param_3[1] = param_3[1] + (uint)CARRY4(uVar1,uVar2);\n      if (param_2 < (param_1 < uVar2)) {\n        if (uVar2 != param_1) {\n          FUN_000159a0();\n        }\n        break;\n      }\n      bVar6 = param_1 < uVar2;\n      param_1 = param_1 - uVar2;\n      param_2 = param_2 - bVar6;\n    } while (param_2 != 0 || param_1 != 0);\n  }\n  uVar3 = 0;\nLAB_00015c2a:\n  if (local_20 != *(int *)(in_GS_OFFSET + 0x14)) {\n                    \n    FUN_0001f5c0();\n  }\n  return uVar3;\n}" (type_identifier "undefined4") (function_declarator "FUN_00015b70(uint param_1,uint param_2,uint *param_3)" (identifier "FUN_00015b70") (parameter_list "(uint param_1,uint param_2,uint *param_3)" (( "(") (parameter_declaration "uint param_1" (type_identifier "uint") (identifier "param_1")) (, ",") (parameter_declaration "uint param_2" (type_identifier "uint") (identifier "param_2")) (, ",") (parameter_declaration "uint *param_3" (type_identifier "uint") (pointer_declarator "*param_3" (* "*") (identifier "param_3"))) () ")"))) (compound_statement "{\n  uint uVar1;\n  uint uVar2;\n  undefined4 uVar3;\n  undefined4 uVar4;\n  int *piVar5;\n  int unaff_EDI;\n  int in_GS_OFFSET;\n  bool bVar6;\n  undefined8 uVar7;\n  undefined1 local_2020 [8192];\n  int local_20;\n  \n  uVar7 = FUN_00017e7d();\n  local_20 = *(int *)(in_GS_OFFSET + 0x14);\n  if (param_2 != 0 || param_1 != 0) {\n    do {\n      uVar2 = FUN_0001bd30((int)((ulonglong)uVar7 >> 0x20),local_2020,0x2000);\n      if (uVar2 == 0) {\n        uVar3 = 0xffffffff;\n        goto LAB_00015c2a;\n      }\n      if (uVar2 == 0xffffffff) {\n        uVar3 = FUN_0001b880(4,(int)uVar7);\n        uVar4 = dcgettext(0,unaff_EDI + 0xa4c1,5);\n        piVar5 = __errno_location();\n                    \n        error(0,*piVar5,uVar4,uVar3);\n      }\n      uVar1 = *param_3;\n      *param_3 = *param_3 + uVar2;\n      param_3[1] = param_3[1] + (uint)CARRY4(uVar1,uVar2);\n      if (param_2 < (param_1 < uVar2)) {\n        if (uVar2 != param_1) {\n          FUN_000159a0();\n        }\n        break;\n      }\n      bVar6 = param_1 < uVar2;\n      param_1 = param_1 - uVar2;\n      param_2 = param_2 - bVar6;\n    } while (param_2 != 0 || param_1 != 0);\n  }\n  uVar3 = 0;\nLAB_00015c2a:\n  if (local_20 != *(int *)(in_GS_OFFSET + 0x14)) {\n                    \n    FUN_0001f5c0();\n  }\n  return uVar3;\n}" ({ "{") (declaration "uint uVar1;" (type_identifier "uint") (identifier "uVar1") (; ";")) (declaration "uint uVar2;" (type_identifier "uint") (identifier "uVar2") (; ";")) (declaration "undefined4 uVar3;" (type_identifier "undefined4") (identifier "uVar3") (; ";")) (declaration "undefined4 uVar4;" (type_identifier "undefined4") (identifier "uVar4") (; ";")) (declaration "int *piVar5;" (primitive_type "int") (pointer_declarator "*piVar5" (* "*") (identifier "piVar5")) (; ";")) (declaration "int unaff_EDI;" (primitive_type "int") (identifier "unaff_EDI") (; ";")) (declaration "int in_GS_OFFSET;" (primitive_type "int") (identifier "in_GS_OFFSET") (; ";")) (declaration "bool bVar6;" (primitive_type "bool") (identifier "bVar6") (; ";")) (declaration "undefined8 uVar7;" (type_identifier "undefined8") (identifier "uVar7") (; ";")) (declaration "undefined1 local_2020 [8192];" (type_identifier "undefined1") (array_declarator "local_2020 [8192]" (identifier "local_2020") ([ "[") (number_literal "8192") (] "]")) (; ";")) (declaration "int local_20;" (primitive_type "int") (identifier "local_20") (; ";")) (expression_statement "uVar7 = FUN_00017e7d();" (assignment_expression "uVar7 = FUN_00017e7d()" (identifier "uVar7") (= "=") (call_expression "FUN_00017e7d()" (identifier "FUN_00017e7d") (argument_list "()" (( "(") () ")")))) (; ";")) (expression_statement "local_20 = *(int *)(in_GS_OFFSET + 0x14);" (assignment_expression "local_20 = *(int *)(in_GS_OFFSET + 0x14)" (identifier "local_20") (= "=") (pointer_expression "*(int *)(in_GS_OFFSET + 0x14)" (* "*") (cast_expression "(int *)(in_GS_OFFSET + 0x14)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(in_GS_OFFSET + 0x14)" (( "(") (binary_expression "in_GS_OFFSET + 0x14" (identifier "in_GS_OFFSET") (+ "+") (number_literal "0x14")) () ")"))))) (; ";")) (if_statement "if (param_2 != 0 || param_1 != 0) {\n    do {\n      uVar2 = FUN_0001bd30((int)((ulonglong)uVar7 >> 0x20),local_2020,0x2000);\n      if (uVar2 == 0) {\n        uVar3 = 0xffffffff;\n        goto LAB_00015c2a;\n      }\n      if (uVar2 == 0xffffffff) {\n        uVar3 = FUN_0001b880(4,(int)uVar7);\n        uVar4 = dcgettext(0,unaff_EDI + 0xa4c1,5);\n        piVar5 = __errno_location();\n                    \n        error(0,*piVar5,uVar4,uVar3);\n      }\n      uVar1 = *param_3;\n      *param_3 = *param_3 + uVar2;\n      param_3[1] = param_3[1] + (uint)CARRY4(uVar1,uVar2);\n      if (param_2 < (param_1 < uVar2)) {\n        if (uVar2 != param_1) {\n          FUN_000159a0();\n        }\n        break;\n      }\n      bVar6 = param_1 < uVar2;\n      param_1 = param_1 - uVar2;\n      param_2 = param_2 - bVar6;\n    } while (param_2 != 0 || param_1 != 0);\n  }" (if "if") (parenthesized_expression "(param_2 != 0 || param_1 != 0)" (( "(") (binary_expression "param_2 != 0 || param_1 != 0" (binary_expression "param_2 != 0" (identifier "param_2") (!= "!=") (number_literal "0")) (|| "||") (binary_expression "param_1 != 0" (identifier "param_1") (!= "!=") (number_literal "0"))) () ")")) (compound_statement "{\n    do {\n      uVar2 = FUN_0001bd30((int)((ulonglong)uVar7 >> 0x20),local_2020,0x2000);\n      if (uVar2 == 0) {\n        uVar3 = 0xffffffff;\n        goto LAB_00015c2a;\n      }\n      if (uVar2 == 0xffffffff) {\n        uVar3 = FUN_0001b880(4,(int)uVar7);\n        uVar4 = dcgettext(0,unaff_EDI + 0xa4c1,5);\n        piVar5 = __errno_location();\n                    \n        error(0,*piVar5,uVar4,uVar3);\n      }\n      uVar1 = *param_3;\n      *param_3 = *param_3 + uVar2;\n      param_3[1] = param_3[1] + (uint)CARRY4(uVar1,uVar2);\n      if (param_2 < (param_1 < uVar2)) {\n        if (uVar2 != param_1) {\n          FUN_000159a0();\n        }\n        break;\n      }\n      bVar6 = param_1 < uVar2;\n      param_1 = param_1 - uVar2;\n      param_2 = param_2 - bVar6;\n    } while (param_2 != 0 || param_1 != 0);\n  }" ({ "{") (do_statement "do {\n      uVar2 = FUN_0001bd30((int)((ulonglong)uVar7 >> 0x20),local_2020,0x2000);\n      if (uVar2 == 0) {\n        uVar3 = 0xffffffff;\n        goto LAB_00015c2a;\n      }\n      if (uVar2 == 0xffffffff) {\n        uVar3 = FUN_0001b880(4,(int)uVar7);\n        uVar4 = dcgettext(0,unaff_EDI + 0xa4c1,5);\n        piVar5 = __errno_location();\n                    \n        error(0,*piVar5,uVar4,uVar3);\n      }\n      uVar1 = *param_3;\n      *param_3 = *param_3 + uVar2;\n      param_3[1] = param_3[1] + (uint)CARRY4(uVar1,uVar2);\n      if (param_2 < (param_1 < uVar2)) {\n        if (uVar2 != param_1) {\n          FUN_000159a0();\n        }\n        break;\n      }\n      bVar6 = param_1 < uVar2;\n      param_1 = param_1 - uVar2;\n      param_2 = param_2 - bVar6;\n    } while (param_2 != 0 || param_1 != 0);" (do "do") (compound_statement "{\n      uVar2 = FUN_0001bd30((int)((ulonglong)uVar7 >> 0x20),local_2020,0x2000);\n      if (uVar2 == 0) {\n        uVar3 = 0xffffffff;\n        goto LAB_00015c2a;\n      }\n      if (uVar2 == 0xffffffff) {\n        uVar3 = FUN_0001b880(4,(int)uVar7);\n        uVar4 = dcgettext(0,unaff_EDI + 0xa4c1,5);\n        piVar5 = __errno_location();\n                    \n        error(0,*piVar5,uVar4,uVar3);\n      }\n      uVar1 = *param_3;\n      *param_3 = *param_3 + uVar2;\n      param_3[1] = param_3[1] + (uint)CARRY4(uVar1,uVar2);\n      if (param_2 < (param_1 < uVar2)) {\n        if (uVar2 != param_1) {\n          FUN_000159a0();\n        }\n        break;\n      }\n      bVar6 = param_1 < uVar2;\n      param_1 = param_1 - uVar2;\n      param_2 = param_2 - bVar6;\n    }" ({ "{") (expression_statement "uVar2 = FUN_0001bd30((int)((ulonglong)uVar7 >> 0x20),local_2020,0x2000);" (assignment_expression "uVar2 = FUN_0001bd30((int)((ulonglong)uVar7 >> 0x20),local_2020,0x2000)" (identifier "uVar2") (= "=") (call_expression "FUN_0001bd30((int)((ulonglong)uVar7 >> 0x20),local_2020,0x2000)" (identifier "FUN_0001bd30") (argument_list "((int)((ulonglong)uVar7 >> 0x20),local_2020,0x2000)" (( "(") (cast_expression "(int)((ulonglong)uVar7 >> 0x20)" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (parenthesized_expression "((ulonglong)uVar7 >> 0x20)" (( "(") (binary_expression "(ulonglong)uVar7 >> 0x20" (cast_expression "(ulonglong)uVar7" (( "(") (type_descriptor "ulonglong" (type_identifier "ulonglong")) () ")") (identifier "uVar7")) (>> ">>") (number_literal "0x20")) () ")"))) (, ",") (identifier "local_2020") (, ",") (number_literal "0x2000") () ")")))) (; ";")) (if_statement "if (uVar2 == 0) {\n        uVar3 = 0xffffffff;\n        goto LAB_00015c2a;\n      }" (if "if") (parenthesized_expression "(uVar2 == 0)" (( "(") (binary_expression "uVar2 == 0" (identifier "uVar2") (== "==") (number_literal "0")) () ")")) (compound_statement "{\n        uVar3 = 0xffffffff;\n        goto LAB_00015c2a;\n      }" ({ "{") (expression_statement "uVar3 = 0xffffffff;" (assignment_expression "uVar3 = 0xffffffff" (identifier "uVar3") (= "=") (number_literal "0xffffffff")) (; ";")) (goto_statement "goto LAB_00015c2a;" (goto "goto") (statement_identifier "LAB_00015c2a") (; ";")) (} "}"))) (if_statement "if (uVar2 == 0xffffffff) {\n        uVar3 = FUN_0001b880(4,(int)uVar7);\n        uVar4 = dcgettext(0,unaff_EDI + 0xa4c1,5);\n        piVar5 = __errno_location();\n                    \n        error(0,*piVar5,uVar4,uVar3);\n      }" (if "if") (parenthesized_expression "(uVar2 == 0xffffffff)" (( "(") (binary_expression "uVar2 == 0xffffffff" (identifier "uVar2") (== "==") (number_literal "0xffffffff")) () ")")) (compound_statement "{\n        uVar3 = FUN_0001b880(4,(int)uVar7);\n        uVar4 = dcgettext(0,unaff_EDI + 0xa4c1,5);\n        piVar5 = __errno_location();\n                    \n        error(0,*piVar5,uVar4,uVar3);\n      }" ({ "{") (expression_statement "uVar3 = FUN_0001b880(4,(int)uVar7);" (assignment_expression "uVar3 = FUN_0001b880(4,(int)uVar7)" (identifier "uVar3") (= "=") (call_expression "FUN_0001b880(4,(int)uVar7)" (identifier "FUN_0001b880") (argument_list "(4,(int)uVar7)" (( "(") (number_literal "4") (, ",") (cast_expression "(int)uVar7" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (identifier "uVar7")) () ")")))) (; ";")) (expression_statement "uVar4 = dcgettext(0,unaff_EDI + 0xa4c1,5);" (assignment_expression "uVar4 = dcgettext(0,unaff_EDI + 0xa4c1,5)" (identifier "uVar4") (= "=") (call_expression "dcgettext(0,unaff_EDI + 0xa4c1,5)" (identifier "dcgettext") (argument_list "(0,unaff_EDI + 0xa4c1,5)" (( "(") (number_literal "0") (, ",") (binary_expression "unaff_EDI + 0xa4c1" (identifier "unaff_EDI") (+ "+") (number_literal "0xa4c1")) (, ",") (number_literal "5") () ")")))) (; ";")) (expression_statement "piVar5 = __errno_location();" (assignment_expression "piVar5 = __errno_location()" (identifier "piVar5") (= "=") (call_expression "__errno_location()" (identifier "__errno_location") (argument_list "()" (( "(") () ")")))) (; ";")) (expression_statement "error(0,*piVar5,uVar4,uVar3);" (call_expression "error(0,*piVar5,uVar4,uVar3)" (identifier "error") (argument_list "(0,*piVar5,uVar4,uVar3)" (( "(") (number_literal "0") (, ",") (pointer_expression "*piVar5" (* "*") (identifier "piVar5")) (, ",") (identifier "uVar4") (, ",") (identifier "uVar3") () ")"))) (; ";")) (} "}"))) (expression_statement "uVar1 = *param_3;" (assignment_expression "uVar1 = *param_3" (identifier "uVar1") (= "=") (pointer_expression "*param_3" (* "*") (identifier "param_3"))) (; ";")) (expression_statement "*param_3 = *param_3 + uVar2;" (assignment_expression "*param_3 = *param_3 + uVar2" (pointer_expression "*param_3" (* "*") (identifier "param_3")) (= "=") (binary_expression "*param_3 + uVar2" (pointer_expression "*param_3" (* "*") (identifier "param_3")) (+ "+") (identifier "uVar2"))) (; ";")) (expression_statement "param_3[1] = param_3[1] + (uint)CARRY4(uVar1,uVar2);" (assignment_expression "param_3[1] = param_3[1] + (uint)CARRY4(uVar1,uVar2)" (subscript_expression "param_3[1]" (identifier "param_3") ([ "[") (number_literal "1") (] "]")) (= "=") (binary_expression "param_3[1] + (uint)CARRY4(uVar1,uVar2)" (subscript_expression "param_3[1]" (identifier "param_3") ([ "[") (number_literal "1") (] "]")) (+ "+") (cast_expression "(uint)CARRY4(uVar1,uVar2)" (( "(") (type_descriptor "uint" (type_identifier "uint")) () ")") (call_expression "CARRY4(uVar1,uVar2)" (identifier "CARRY4") (argument_list "(uVar1,uVar2)" (( "(") (identifier "uVar1") (, ",") (identifier "uVar2") () ")")))))) (; ";")) (if_statement "if (param_2 < (param_1 < uVar2)) {\n        if (uVar2 != param_1) {\n          FUN_000159a0();\n        }\n        break;\n      }" (if "if") (parenthesized_expression "(param_2 < (param_1 < uVar2))" (( "(") (binary_expression "param_2 < (param_1 < uVar2)" (identifier "param_2") (< "<") (parenthesized_expression "(param_1 < uVar2)" (( "(") (binary_expression "param_1 < uVar2" (identifier "param_1") (< "<") (identifier "uVar2")) () ")"))) () ")")) (compound_statement "{\n        if (uVar2 != param_1) {\n          FUN_000159a0();\n        }\n        break;\n      }" ({ "{") (if_statement "if (uVar2 != param_1) {\n          FUN_000159a0();\n        }" (if "if") (parenthesized_expression "(uVar2 != param_1)" (( "(") (binary_expression "uVar2 != param_1" (identifier "uVar2") (!= "!=") (identifier "param_1")) () ")")) (compound_statement "{\n          FUN_000159a0();\n        }" ({ "{") (expression_statement "FUN_000159a0();" (call_expression "FUN_000159a0()" (identifier "FUN_000159a0") (argument_list "()" (( "(") () ")"))) (; ";")) (} "}"))) (break_statement "break;" (break "break") (; ";")) (} "}"))) (expression_statement "bVar6 = param_1 < uVar2;" (assignment_expression "bVar6 = param_1 < uVar2" (identifier "bVar6") (= "=") (binary_expression "param_1 < uVar2" (identifier "param_1") (< "<") (identifier "uVar2"))) (; ";")) (expression_statement "param_1 = param_1 - uVar2;" (assignment_expression "param_1 = param_1 - uVar2" (identifier "param_1") (= "=") (binary_expression "param_1 - uVar2" (identifier "param_1") (- "-") (identifier "uVar2"))) (; ";")) (expression_statement "param_2 = param_2 - bVar6;" (assignment_expression "param_2 = param_2 - bVar6" (identifier "param_2") (= "=") (binary_expression "param_2 - bVar6" (identifier "param_2") (- "-") (identifier "bVar6"))) (; ";")) (} "}")) (while "while") (parenthesized_expression "(param_2 != 0 || param_1 != 0)" (( "(") (binary_expression "param_2 != 0 || param_1 != 0" (binary_expression "param_2 != 0" (identifier "param_2") (!= "!=") (number_literal "0")) (|| "||") (binary_expression "param_1 != 0" (identifier "param_1") (!= "!=") (number_literal "0"))) () ")")) (; ";")) (} "}"))) (expression_statement "uVar3 = 0;" (assignment_expression "uVar3 = 0" (identifier "uVar3") (= "=") (number_literal "0")) (; ";")) (labeled_statement "LAB_00015c2a:\n  if (local_20 != *(int *)(in_GS_OFFSET + 0x14)) {\n                    \n    FUN_0001f5c0();\n  }" (statement_identifier "LAB_00015c2a") (: ":") (if_statement "if (local_20 != *(int *)(in_GS_OFFSET + 0x14)) {\n                    \n    FUN_0001f5c0();\n  }" (if "if") (parenthesized_expression "(local_20 != *(int *)(in_GS_OFFSET + 0x14))" (( "(") (binary_expression "local_20 != *(int *)(in_GS_OFFSET + 0x14)" (identifier "local_20") (!= "!=") (pointer_expression "*(int *)(in_GS_OFFSET + 0x14)" (* "*") (cast_expression "(int *)(in_GS_OFFSET + 0x14)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(in_GS_OFFSET + 0x14)" (( "(") (binary_expression "in_GS_OFFSET + 0x14" (identifier "in_GS_OFFSET") (+ "+") (number_literal "0x14")) () ")"))))) () ")")) (compound_statement "{\n                    \n    FUN_0001f5c0();\n  }" ({ "{") (expression_statement "FUN_0001f5c0();" (call_expression "FUN_0001f5c0()" (identifier "FUN_0001f5c0") (argument_list "()" (( "(") () ")"))) (; ";")) (} "}")))) (return_statement "return uVar3;" (return "return") (identifier "uVar3") (; ";")) (} "}")))

int function_1(char *var_4,int var_3,type_1 n_bytes,type_1 *read_pos)

{
  type_2 uVar1;
  int var_15;
  char *var_6;
  int iVar4;
  type_3 uVar5;
  int *piVar6;
  int var_9;
  int var_2;
  bool bVar7;
  type_4 uVar8;
  char var_14 [8192];
  
  uVar8 = var_1();
  var_15 = *(int *)(var_2 + 0x14);
  if (var_3 != 0 || var_4 != (char *)0x0) {
    do {
      var_6 = (char *)var_5((int)((type_5)uVar8 >> 0x20),var_14,0x2000);
      if (var_6 == (char *)0x0) {
        iVar4 = -1;
        goto LAB_00015c2a;
      }
      if (var_6 == (char *)0xffffffff) {
        var_6 = var_7(shell_escape_always_quoting_style,(char *)uVar8);
        uVar5 = var_8(0,var_9 + 0xa4c1,5);
        piVar6 = var_10();
                    /* WARNING: Subroutine does not return */
        var_11(0,*piVar6,uVar5,var_6);
      }
      uVar1 = *(type_2 *)n_bytes;
      *(type_2 *)n_bytes = (type_2)(var_6 + *(type_2 *)n_bytes);
      ((type_2 *)n_bytes)[1] = ((type_2 *)n_bytes)[1] + (type_2)var_12(uVar1,(type_2)var_6);
      if ((type_2)var_3 < (type_2)(var_4 < var_6)) {
        if ((int)var_6 - (int)var_4 != 0) {
          var_13(var_14 + (int)var_4,(int)var_6 - (int)var_4);
        }
        break;
      }
      bVar7 = var_4 < var_6;
      var_4 = var_4 + -(int)var_6;
      var_3 = var_3 - (type_2)bVar7;
    } while (var_3 != 0 || var_4 != (char *)0x0);
  }
  iVar4 = 0;
LAB_00015c2a:
  if (var_15 != *(int *)(var_2 + 0x14)) {
                    /* WARNING: Subroutine does not return */
    var_16();
  }
  return iVar4;
}


(translation_unit (function_definition type: (type_identifier) declarator: (function_declarator declarator: (identifier) parameters: (parameter_list (parameter_declaration type: (type_identifier) declarator: (identifier)) (parameter_declaration type: (type_identifier) declarator: (identifier)) (parameter_declaration type: (type_identifier) declarator: (pointer_declarator declarator: (identifier))))) body: (compound_statement (declaration type: (type_identifier) declarator: (identifier)) (declaration type: (type_identifier) declarator: (identifier)) (declaration type: (type_identifier) declarator: (identifier)) (declaration type: (type_identifier) declarator: (identifier)) (declaration type: (primitive_type) declarator: (pointer_declarator declarator: (identifier))) (declaration type: (primitive_type) declarator: (identifier)) (declaration type: (primitive_type) declarator: (identifier)) (declaration type: (primitive_type) declarator: (identifier)) (declaration type: (type_identifier) declarator: (identifier)) (declaration type: (type_identifier) declarator: (array_declarator declarator: (identifier) size: (number_literal))) (declaration type: (primitive_type) declarator: (identifier)) (expression_statement (assignment_expression left: (identifier) right: (call_expression function: (identifier) arguments: (argument_list)))) (expression_statement (assignment_expression left: (identifier) right: (pointer_expression argument: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))))))) (if_statement condition: (parenthesized_expression (binary_expression left: (binary_expression left: (identifier) right: (number_literal)) right: (binary_expression left: (identifier) right: (number_literal)))) consequence: (compound_statement (do_statement body: (compound_statement (expression_statement (assignment_expression left: (identifier) right: (call_expression function: (identifier) arguments: (argument_list (cast_expression type: (type_descriptor type: (primitive_type)) value: (parenthesized_expression (binary_expression left: (cast_expression type: (type_descriptor type: (type_identifier)) value: (identifier)) right: (number_literal)))) (identifier) (number_literal))))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))) consequence: (compound_statement (expression_statement (assignment_expression left: (identifier) right: (number_literal))) (goto_statement label: (statement_identifier)))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))) consequence: (compound_statement (expression_statement (assignment_expression left: (identifier) right: (call_expression function: (identifier) arguments: (argument_list (number_literal) (cast_expression type: (type_descriptor type: (primitive_type)) value: (identifier)))))) (expression_statement (assignment_expression left: (identifier) right: (call_expression function: (identifier) arguments: (argument_list (number_literal) (binary_expression left: (identifier) right: (number_literal)) (number_literal))))) (expression_statement (assignment_expression left: (identifier) right: (call_expression function: (identifier) arguments: (argument_list)))) (expression_statement (call_expression function: (identifier) arguments: (argument_list (number_literal) (pointer_expression argument: (identifier)) (identifier) (identifier)))))) (expression_statement (assignment_expression left: (identifier) right: (pointer_expression argument: (identifier)))) (expression_statement (assignment_expression left: (pointer_expression argument: (identifier)) right: (binary_expression left: (pointer_expression argument: (identifier)) right: (identifier)))) (expression_statement (assignment_expression left: (subscript_expression argument: (identifier) index: (number_literal)) right: (binary_expression left: (subscript_expression argument: (identifier) index: (number_literal)) right: (cast_expression type: (type_descriptor type: (type_identifier)) value: (call_expression function: (identifier) arguments: (argument_list (identifier) (identifier))))))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (parenthesized_expression (binary_expression left: (identifier) right: (identifier))))) consequence: (compound_statement (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (identifier))) consequence: (compound_statement (expression_statement (call_expression function: (identifier) arguments: (argument_list))))) (break_statement))) (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (identifier) right: (identifier)))) (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (identifier) right: (identifier)))) (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (identifier) right: (identifier))))) condition: (parenthesized_expression (binary_expression left: (binary_expression left: (identifier) right: (number_literal)) right: (binary_expression left: (identifier) right: (number_literal))))))) (expression_statement (assignment_expression left: (identifier) right: (number_literal))) (labeled_statement label: (statement_identifier) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (pointer_expression argument: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))))))) consequence: (compound_statement (expression_statement (call_expression function: (identifier) arguments: (argument_list)))))) (return_statement (identifier)))))

undefined4 MASKED(uint param_1,uint param_2,uint *param_3)

{
  uint uVar1;
  uint uVar2;
  undefined4 uVar3;
  undefined4 uVar4;
  int *piVar5;
  int unaff_EDI;
  int in_GS_OFFSET;
  bool bVar6;
  undefined8 uVar7;
  undefined1 local_2020 [8192];
  int local_20;
  
  uVar7 = FUN_00017e7d();
  local_20 = *(int *)(in_GS_OFFSET + 0x14);
  if (param_2 != 0 || param_1 != 0) {
    do {
      uVar2 = FUN_0001bd30((int)((ulonglong)uVar7 >> 0x20),local_2020,0x2000);
      if (uVar2 == 0) {
        uVar3 = 0xffffffff;
        goto LAB_00015c2a;
      }
      if (uVar2 == 0xffffffff) {
        uVar3 = FUN_0001b880(4,(int)uVar7);
        uVar4 = dcgettext(0,unaff_EDI + 0xa4c1,5);
        piVar5 = __errno_location();
                    /* WARNING: Subroutine does not return */
        error(0,*piVar5,uVar4,uVar3);
      }
      uVar1 = *param_3;
      *param_3 = *param_3 + uVar2;
      param_3[1] = param_3[1] + (uint)CARRY4(uVar1,uVar2);
      if (param_2 < (param_1 < uVar2)) {
        if (uVar2 != param_1) {
          FUN_000159a0();
        }
        break;
      }
      bVar6 = param_1 < uVar2;
      param_1 = param_1 - uVar2;
      param_2 = param_2 - bVar6;
    } while (param_2 != 0 || param_1 != 0);
  }
  uVar3 = 0;
LAB_00015c2a:
  if (local_20 != *(int *)(in_GS_OFFSET + 0x14)) {
                    /* WARNING: Subroutine does not return */
    FUN_0001f5c0();
  }
  return uVar3;
}

