
/* WARNING: Function: __x86.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */

int __regparm3
compress_frag(z_stream_s *strm,char *contents,int in_size,fragS **last_newf,obstack *ob)

{
  offsetT *poVar1;
  int *piVar2;
  offsetT oVar3;
  uint uVar4;
  char *pcVar5;
  fragS *pfVar6;
  char *pcVar7;
  int iVar8;
  int local_34;
  char *local_30 [3];
  char *next_out;
  int avail_out;
  undefined4 uStack_14;
  
  iVar8 = 0;
  uStack_14 = 0x3f85b;
  pfVar6 = *last_newf;
  local_34 = in_size;
  local_30[0] = contents;
  do {
    if (local_34 < 1) {
      return iVar8;
    }
    while( true ) {
      pcVar7 = ob->chunk_limit;
      pcVar5 = ob->next_free;
      avail_out = (int)pcVar7 - (int)pcVar5;
      if (avail_out < 1) {
        if (pcVar5 == ob->object_base) {
          ob->field_0x28 = ob->field_0x28 | 2;
        }
        pcVar5 = (char *)((uint)(pcVar5 + ob->alignment_mask) & ~ob->alignment_mask);
        ob->next_free = pcVar5;
        if ((uint)((int)pcVar7 - (int)ob->chunk) < (uint)((int)pcVar5 - (int)ob->chunk)) {
          ob->next_free = pcVar7;
          pcVar5 = pcVar7;
        }
        ob->object_base = pcVar5;
        pfVar6 = frag_alloc(ob);
        pcVar7 = ob->chunk_limit;
        pfVar6->fr_type = rs_fill;
        (*last_newf)->fr_next = pfVar6;
        *last_newf = pfVar6;
        pcVar5 = ob->next_free;
        avail_out = (int)pcVar7 - (int)pcVar5;
        if (avail_out < 1) {
          pcVar7 = (char *)dcgettext(0,"can\'t extend frag",5);
                    /* WARNING: Subroutine does not return */
          as_fatal(pcVar7);
        }
      }
      ob->next_free = pcVar5 + avail_out;
      next_out = pcVar5;
      uVar4 = compress_data(strm,local_30,&local_34,&next_out,&avail_out);
      if ((int)uVar4 < 0) {
        return -1;
      }
      poVar1 = &pfVar6->fr_fix;
      oVar3 = *poVar1;
      *(uint *)poVar1 = (int)*poVar1 + uVar4;
      piVar2 = (int *)((int)&pfVar6->fr_fix + 4);
      *piVar2 = *piVar2 + ((int)uVar4 >> 0x1f) + (uint)CARRY4((uint)oVar3,uVar4);
      iVar8 = iVar8 + uVar4;
      if (avail_out < 1) break;
      ob->next_free = ob->next_free + -avail_out;
      if (local_34 < 1) {
        return iVar8;
      }
    }
  } while( true );
}



/* WARNING: Function: __i686.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */

int __regparm3
FUN_0003f850(undefined4 param_1,undefined4 param_2,int param_3,int *param_4,int param_5)

{
  uint *puVar1;
  int iVar2;
  uint uVar3;
  uint uVar4;
  int iVar5;
  undefined4 uVar6;
  int iVar7;
  int local_34;
  undefined4 local_30 [3];
  int local_24;
  int local_20 [3];
  undefined4 uStack_14;
  
  iVar7 = 0;
  uStack_14 = 0x3f85b;
  iVar5 = *param_4;
  local_34 = param_3;
  local_30[0] = param_2;
  do {
    if (local_34 < 1) {
      return iVar7;
    }
    while( true ) {
      uVar3 = *(uint *)(param_5 + 0x10);
      iVar2 = *(int *)(param_5 + 0xc);
      local_20[0] = uVar3 - iVar2;
      if (local_20[0] < 1) {
        if (iVar2 == *(int *)(param_5 + 8)) {
          *(byte *)(param_5 + 0x28) = *(byte *)(param_5 + 0x28) | 2;
        }
        uVar4 = iVar2 + *(uint *)(param_5 + 0x18) & ~*(uint *)(param_5 + 0x18);
        *(uint *)(param_5 + 0xc) = uVar4;
        if (uVar3 - *(int *)(param_5 + 4) < uVar4 - *(int *)(param_5 + 4)) {
          *(uint *)(param_5 + 0xc) = uVar3;
          uVar4 = uVar3;
        }
        *(uint *)(param_5 + 8) = uVar4;
        iVar5 = FUN_00027650(param_5);
        local_20[0] = *(int *)(param_5 + 0x10);
        *(undefined4 *)(iVar5 + 0x44) = 1;
        *(int *)(*param_4 + 0x30) = iVar5;
        *param_4 = iVar5;
        iVar2 = *(int *)(param_5 + 0xc);
        local_20[0] = local_20[0] - iVar2;
        if (local_20[0] < 1) {
          uVar6 = dcgettext(0,"can\'t extend frag",5);
                    /* WARNING: Subroutine does not return */
          FUN_0002ed30(uVar6);
        }
      }
      *(int *)(param_5 + 0xc) = iVar2 + local_20[0];
      local_24 = iVar2;
      uVar3 = FUN_0001b550(param_1,local_30,&local_34,&local_24,local_20);
      if ((int)uVar3 < 0) {
        return -1;
      }
      puVar1 = (uint *)(iVar5 + 0x10);
      uVar4 = *puVar1;
      *puVar1 = *puVar1 + uVar3;
      *(int *)(iVar5 + 0x14) =
           *(int *)(iVar5 + 0x14) + ((int)uVar3 >> 0x1f) + (uint)CARRY4(uVar4,uVar3);
      iVar7 = iVar7 + uVar3;
      if (local_20[0] < 1) break;
      *(int *)(param_5 + 0xc) = *(int *)(param_5 + 0xc) - local_20[0];
      if (local_34 < 1) {
        return iVar7;
      }
    }
  } while( true );
}


PUSH EBP
XOR EBP,EBP
PUSH EDI
PUSH ESI
PUSH EBX
CALL 0x00018ff0
ADD EBX,0x407a5
SUB ESP,0x3c
MOV dword ptr [ESP + 0xc],EAX
MOV EAX,dword ptr [ESP + 0x50]
MOV dword ptr [ESP + 0x1c],EDX
MOV ESI,dword ptr [ESP + 0x54]
MOV EDI,dword ptr [EAX]
LEA EAX,[ESP + 0x2c]
MOV dword ptr [ESP + 0x18],ECX
MOV dword ptr [ESP + 0x10],EAX
LEA EAX,[ESP + 0x28]
MOV dword ptr [ESP + 0x8],EBX
MOV dword ptr [ESP + 0x14],EAX
NOP
MOV EAX,dword ptr [ESP + 0x18]
TEST EAX,EAX
JLE 0x0003f900
MOV ECX,dword ptr [ESI + 0x10]
MOV EAX,dword ptr [ESI + 0xc]
MOV EDX,ECX
SUB EDX,EAX
MOV dword ptr [ESP + 0x2c],EDX
TEST EDX,EDX
JLE 0x0003f910
MOV dword ptr [ESP + 0x28],EAX
SUB ESP,0xc
ADD EAX,EDX
MOV dword ptr [ESI + 0xc],EAX
PUSH dword ptr [ESP + 0x1c]
PUSH dword ptr [ESP + 0x24]
LEA EAX,[ESP + 0x2c]
PUSH EAX
LEA EAX,[ESP + 0x34]
PUSH EAX
PUSH dword ptr [ESP + 0x28]
MOV EBX,dword ptr [ESP + 0x28]
CALL 0x0001b550
ADD ESP,0x20
TEST EAX,EAX
JS 0x0003f9b0
MOV EBX,EAX
SAR EBX,0x1f
ADD dword ptr [EDI + 0x10],EAX
ADC dword ptr [EDI + 0x14],EBX
ADD EBP,EAX
MOV EAX,dword ptr [ESP + 0x2c]
TEST EAX,EAX
JLE 0x0003f890
SUB dword ptr [ESI + 0xc],EAX
MOV EAX,dword ptr [ESP + 0x18]
TEST EAX,EAX
JG 0x0003f898
ADD ESP,0x3c
MOV EAX,EBP
POP EBX
POP ESI
POP EDI
POP EBP
RET
CMP EAX,dword ptr [ESI + 0x8]
JZ 0x0003f9a0
MOV EDX,dword ptr [ESI + 0x18]
MOV EDI,ECX
ADD EAX,EDX
NOT EDX
AND EAX,EDX
MOV EDX,dword ptr [ESI + 0x4]
MOV EBX,EAX
MOV dword ptr [ESI + 0xc],EAX
SUB EBX,EDX
SUB EDI,EDX
CMP EBX,EDI
JBE 0x0003f939
MOV dword ptr [ESI + 0xc],ECX
MOV EAX,ECX
SUB ESP,0xc
MOV dword ptr [ESI + 0x8],EAX
PUSH ESI
MOV EBX,dword ptr [ESP + 0x18]
CALL 0x00027650
MOV EDX,dword ptr [ESI + 0x10]
MOV EDI,EAX
MOV dword ptr [EAX + 0x44],0x1
MOV EAX,dword ptr [ESP + 0x60]
MOV EAX,dword ptr [EAX]
MOV dword ptr [EAX + 0x30],EDI
MOV EAX,dword ptr [ESP + 0x60]
MOV dword ptr [EAX],EDI
MOV EAX,dword ptr [ESI + 0xc]
SUB EDX,EAX
MOV dword ptr [ESP + 0x3c],EDX
ADD ESP,0x10
TEST EDX,EDX
JG 0x0003f8aa
SUB ESP,0x4
PUSH 0x5
MOV EDI,dword ptr [ESP + 0x10]
LEA EAX,[EDI + 0xfffdf8ea]
MOV EBX,EDI
PUSH EAX
PUSH 0x0
CALL 0x000171a0
MOV dword ptr [ESP],EAX
CALL 0x0002ed30
OR byte ptr [ESI + 0x28],0x2
JMP 0x0003f919
ADD ESP,0x3c
MOV EBP,0xffffffff
POP EBX
MOV EAX,EBP
POP ESI
POP EDI
POP EBP
RET
(translation_unit "/* WARNING: Function: __i686.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */\n\nint __regparm3\nFUN_0003f850(undefined4 param_1,undefined4 param_2,int param_3,int *param_4,int param_5)\n\n{\n  uint *puVar1;\n  int iVar2;\n  uint uVar3;\n  uint uVar4;\n  int iVar5;\n  undefined4 uVar6;\n  int iVar7;\n  int local_34;\n  undefined4 local_30 [3];\n  int local_24;\n  int local_20 [3];\n  undefined4 uStack_14;\n  \n  iVar7 = 0;\n  uStack_14 = 0x3f85b;\n  iVar5 = *param_4;\n  local_34 = param_3;\n  local_30[0] = param_2;\n  do {\n    if (local_34 < 1) {\n      return iVar7;\n    }\n    while( true ) {\n      uVar3 = *(uint *)(param_5 + 0x10);\n      iVar2 = *(int *)(param_5 + 0xc);\n      local_20[0] = uVar3 - iVar2;\n      if (local_20[0] < 1) {\n        if (iVar2 == *(int *)(param_5 + 8)) {\n          *(byte *)(param_5 + 0x28) = *(byte *)(param_5 + 0x28) | 2;\n        }\n        uVar4 = iVar2 + *(uint *)(param_5 + 0x18) & ~*(uint *)(param_5 + 0x18);\n        *(uint *)(param_5 + 0xc) = uVar4;\n        if (uVar3 - *(int *)(param_5 + 4) < uVar4 - *(int *)(param_5 + 4)) {\n          *(uint *)(param_5 + 0xc) = uVar3;\n          uVar4 = uVar3;\n        }\n        *(uint *)(param_5 + 8) = uVar4;\n        iVar5 = FUN_00027650(param_5);\n        local_20[0] = *(int *)(param_5 + 0x10);\n        *(undefined4 *)(iVar5 + 0x44) = 1;\n        *(int *)(*param_4 + 0x30) = iVar5;\n        *param_4 = iVar5;\n        iVar2 = *(int *)(param_5 + 0xc);\n        local_20[0] = local_20[0] - iVar2;\n        if (local_20[0] < 1) {\n          uVar6 = dcgettext(0,"can\'t extend frag",5);\n                    /* WARNING: Subroutine does not return */\n          FUN_0002ed30(uVar6);\n        }\n      }\n      *(int *)(param_5 + 0xc) = iVar2 + local_20[0];\n      local_24 = iVar2;\n      uVar3 = FUN_0001b550(param_1,local_30,&local_34,&local_24,local_20);\n      if ((int)uVar3 < 0) {\n        return -1;\n      }\n      puVar1 = (uint *)(iVar5 + 0x10);\n      uVar4 = *puVar1;\n      *puVar1 = *puVar1 + uVar3;\n      *(int *)(iVar5 + 0x14) =\n           *(int *)(iVar5 + 0x14) + ((int)uVar3 >> 0x1f) + (uint)CARRY4(uVar4,uVar3);\n      iVar7 = iVar7 + uVar3;\n      if (local_20[0] < 1) break;\n      *(int *)(param_5 + 0xc) = *(int *)(param_5 + 0xc) - local_20[0];\n      if (local_34 < 1) {\n        return iVar7;\n      }\n    }\n  } while( true );\n}\n\n" comment (function_definition "int __regparm3\nFUN_0003f850(undefined4 param_1,undefined4 param_2,int param_3,int *param_4,int param_5)\n\n{\n  uint *puVar1;\n  int iVar2;\n  uint uVar3;\n  uint uVar4;\n  int iVar5;\n  undefined4 uVar6;\n  int iVar7;\n  int local_34;\n  undefined4 local_30 [3];\n  int local_24;\n  int local_20 [3];\n  undefined4 uStack_14;\n  \n  iVar7 = 0;\n  uStack_14 = 0x3f85b;\n  iVar5 = *param_4;\n  local_34 = param_3;\n  local_30[0] = param_2;\n  do {\n    if (local_34 < 1) {\n      return iVar7;\n    }\n    while( true ) {\n      uVar3 = *(uint *)(param_5 + 0x10);\n      iVar2 = *(int *)(param_5 + 0xc);\n      local_20[0] = uVar3 - iVar2;\n      if (local_20[0] < 1) {\n        if (iVar2 == *(int *)(param_5 + 8)) {\n          *(byte *)(param_5 + 0x28) = *(byte *)(param_5 + 0x28) | 2;\n        }\n        uVar4 = iVar2 + *(uint *)(param_5 + 0x18) & ~*(uint *)(param_5 + 0x18);\n        *(uint *)(param_5 + 0xc) = uVar4;\n        if (uVar3 - *(int *)(param_5 + 4) < uVar4 - *(int *)(param_5 + 4)) {\n          *(uint *)(param_5 + 0xc) = uVar3;\n          uVar4 = uVar3;\n        }\n        *(uint *)(param_5 + 8) = uVar4;\n        iVar5 = FUN_00027650(param_5);\n        local_20[0] = *(int *)(param_5 + 0x10);\n        *(undefined4 *)(iVar5 + 0x44) = 1;\n        *(int *)(*param_4 + 0x30) = iVar5;\n        *param_4 = iVar5;\n        iVar2 = *(int *)(param_5 + 0xc);\n        local_20[0] = local_20[0] - iVar2;\n        if (local_20[0] < 1) {\n          uVar6 = dcgettext(0,"can\'t extend frag",5);\n                    /* WARNING: Subroutine does not return */\n          FUN_0002ed30(uVar6);\n        }\n      }\n      *(int *)(param_5 + 0xc) = iVar2 + local_20[0];\n      local_24 = iVar2;\n      uVar3 = FUN_0001b550(param_1,local_30,&local_34,&local_24,local_20);\n      if ((int)uVar3 < 0) {\n        return -1;\n      }\n      puVar1 = (uint *)(iVar5 + 0x10);\n      uVar4 = *puVar1;\n      *puVar1 = *puVar1 + uVar3;\n      *(int *)(iVar5 + 0x14) =\n           *(int *)(iVar5 + 0x14) + ((int)uVar3 >> 0x1f) + (uint)CARRY4(uVar4,uVar3);\n      iVar7 = iVar7 + uVar3;\n      if (local_20[0] < 1) break;\n      *(int *)(param_5 + 0xc) = *(int *)(param_5 + 0xc) - local_20[0];\n      if (local_34 < 1) {\n        return iVar7;\n      }\n    }\n  } while( true );\n}" primitive_type (ERROR "__regparm3" identifier) (function_declarator "FUN_0003f850(undefined4 param_1,undefined4 param_2,int param_3,int *param_4,int param_5)" identifier (parameter_list "(undefined4 param_1,undefined4 param_2,int param_3,int *param_4,int param_5)" ( (parameter_declaration "undefined4 param_1" type_identifier identifier) , (parameter_declaration "undefined4 param_2" type_identifier identifier) , (parameter_declaration "int param_3" primitive_type identifier) , (parameter_declaration "int *param_4" primitive_type (pointer_declarator "*param_4" * identifier)) , (parameter_declaration "int param_5" primitive_type identifier) ))) (compound_statement "{\n  uint *puVar1;\n  int iVar2;\n  uint uVar3;\n  uint uVar4;\n  int iVar5;\n  undefined4 uVar6;\n  int iVar7;\n  int local_34;\n  undefined4 local_30 [3];\n  int local_24;\n  int local_20 [3];\n  undefined4 uStack_14;\n  \n  iVar7 = 0;\n  uStack_14 = 0x3f85b;\n  iVar5 = *param_4;\n  local_34 = param_3;\n  local_30[0] = param_2;\n  do {\n    if (local_34 < 1) {\n      return iVar7;\n    }\n    while( true ) {\n      uVar3 = *(uint *)(param_5 + 0x10);\n      iVar2 = *(int *)(param_5 + 0xc);\n      local_20[0] = uVar3 - iVar2;\n      if (local_20[0] < 1) {\n        if (iVar2 == *(int *)(param_5 + 8)) {\n          *(byte *)(param_5 + 0x28) = *(byte *)(param_5 + 0x28) | 2;\n        }\n        uVar4 = iVar2 + *(uint *)(param_5 + 0x18) & ~*(uint *)(param_5 + 0x18);\n        *(uint *)(param_5 + 0xc) = uVar4;\n        if (uVar3 - *(int *)(param_5 + 4) < uVar4 - *(int *)(param_5 + 4)) {\n          *(uint *)(param_5 + 0xc) = uVar3;\n          uVar4 = uVar3;\n        }\n        *(uint *)(param_5 + 8) = uVar4;\n        iVar5 = FUN_00027650(param_5);\n        local_20[0] = *(int *)(param_5 + 0x10);\n        *(undefined4 *)(iVar5 + 0x44) = 1;\n        *(int *)(*param_4 + 0x30) = iVar5;\n        *param_4 = iVar5;\n        iVar2 = *(int *)(param_5 + 0xc);\n        local_20[0] = local_20[0] - iVar2;\n        if (local_20[0] < 1) {\n          uVar6 = dcgettext(0,"can\'t extend frag",5);\n                    /* WARNING: Subroutine does not return */\n          FUN_0002ed30(uVar6);\n        }\n      }\n      *(int *)(param_5 + 0xc) = iVar2 + local_20[0];\n      local_24 = iVar2;\n      uVar3 = FUN_0001b550(param_1,local_30,&local_34,&local_24,local_20);\n      if ((int)uVar3 < 0) {\n        return -1;\n      }\n      puVar1 = (uint *)(iVar5 + 0x10);\n      uVar4 = *puVar1;\n      *puVar1 = *puVar1 + uVar3;\n      *(int *)(iVar5 + 0x14) =\n           *(int *)(iVar5 + 0x14) + ((int)uVar3 >> 0x1f) + (uint)CARRY4(uVar4,uVar3);\n      iVar7 = iVar7 + uVar3;\n      if (local_20[0] < 1) break;\n      *(int *)(param_5 + 0xc) = *(int *)(param_5 + 0xc) - local_20[0];\n      if (local_34 < 1) {\n        return iVar7;\n      }\n    }\n  } while( true );\n}" { (declaration "uint *puVar1;" type_identifier (pointer_declarator "*puVar1" * identifier) ;) (declaration "int iVar2;" primitive_type identifier ;) (declaration "uint uVar3;" type_identifier identifier ;) (declaration "uint uVar4;" type_identifier identifier ;) (declaration "int iVar5;" primitive_type identifier ;) (declaration "undefined4 uVar6;" type_identifier identifier ;) (declaration "int iVar7;" primitive_type identifier ;) (declaration "int local_34;" primitive_type identifier ;) (declaration "undefined4 local_30 [3];" type_identifier (array_declarator "local_30 [3]" identifier [ number_literal ]) ;) (declaration "int local_24;" primitive_type identifier ;) (declaration "int local_20 [3];" primitive_type (array_declarator "local_20 [3]" identifier [ number_literal ]) ;) (declaration "undefined4 uStack_14;" type_identifier identifier ;) (expression_statement "iVar7 = 0;" (assignment_expression "iVar7 = 0" identifier = number_literal) ;) (expression_statement "uStack_14 = 0x3f85b;" (assignment_expression "uStack_14 = 0x3f85b" identifier = number_literal) ;) (expression_statement "iVar5 = *param_4;" (assignment_expression "iVar5 = *param_4" identifier = (pointer_expression "*param_4" * identifier)) ;) (expression_statement "local_34 = param_3;" (assignment_expression "local_34 = param_3" identifier = identifier) ;) (expression_statement "local_30[0] = param_2;" (assignment_expression "local_30[0] = param_2" (subscript_expression "local_30[0]" identifier [ number_literal ]) = identifier) ;) (do_statement "do {\n    if (local_34 < 1) {\n      return iVar7;\n    }\n    while( true ) {\n      uVar3 = *(uint *)(param_5 + 0x10);\n      iVar2 = *(int *)(param_5 + 0xc);\n      local_20[0] = uVar3 - iVar2;\n      if (local_20[0] < 1) {\n        if (iVar2 == *(int *)(param_5 + 8)) {\n          *(byte *)(param_5 + 0x28) = *(byte *)(param_5 + 0x28) | 2;\n        }\n        uVar4 = iVar2 + *(uint *)(param_5 + 0x18) & ~*(uint *)(param_5 + 0x18);\n        *(uint *)(param_5 + 0xc) = uVar4;\n        if (uVar3 - *(int *)(param_5 + 4) < uVar4 - *(int *)(param_5 + 4)) {\n          *(uint *)(param_5 + 0xc) = uVar3;\n          uVar4 = uVar3;\n        }\n        *(uint *)(param_5 + 8) = uVar4;\n        iVar5 = FUN_00027650(param_5);\n        local_20[0] = *(int *)(param_5 + 0x10);\n        *(undefined4 *)(iVar5 + 0x44) = 1;\n        *(int *)(*param_4 + 0x30) = iVar5;\n        *param_4 = iVar5;\n        iVar2 = *(int *)(param_5 + 0xc);\n        local_20[0] = local_20[0] - iVar2;\n        if (local_20[0] < 1) {\n          uVar6 = dcgettext(0,"can\'t extend frag",5);\n                    /* WARNING: Subroutine does not return */\n          FUN_0002ed30(uVar6);\n        }\n      }\n      *(int *)(param_5 + 0xc) = iVar2 + local_20[0];\n      local_24 = iVar2;\n      uVar3 = FUN_0001b550(param_1,local_30,&local_34,&local_24,local_20);\n      if ((int)uVar3 < 0) {\n        return -1;\n      }\n      puVar1 = (uint *)(iVar5 + 0x10);\n      uVar4 = *puVar1;\n      *puVar1 = *puVar1 + uVar3;\n      *(int *)(iVar5 + 0x14) =\n           *(int *)(iVar5 + 0x14) + ((int)uVar3 >> 0x1f) + (uint)CARRY4(uVar4,uVar3);\n      iVar7 = iVar7 + uVar3;\n      if (local_20[0] < 1) break;\n      *(int *)(param_5 + 0xc) = *(int *)(param_5 + 0xc) - local_20[0];\n      if (local_34 < 1) {\n        return iVar7;\n      }\n    }\n  } while( true );" do (compound_statement "{\n    if (local_34 < 1) {\n      return iVar7;\n    }\n    while( true ) {\n      uVar3 = *(uint *)(param_5 + 0x10);\n      iVar2 = *(int *)(param_5 + 0xc);\n      local_20[0] = uVar3 - iVar2;\n      if (local_20[0] < 1) {\n        if (iVar2 == *(int *)(param_5 + 8)) {\n          *(byte *)(param_5 + 0x28) = *(byte *)(param_5 + 0x28) | 2;\n        }\n        uVar4 = iVar2 + *(uint *)(param_5 + 0x18) & ~*(uint *)(param_5 + 0x18);\n        *(uint *)(param_5 + 0xc) = uVar4;\n        if (uVar3 - *(int *)(param_5 + 4) < uVar4 - *(int *)(param_5 + 4)) {\n          *(uint *)(param_5 + 0xc) = uVar3;\n          uVar4 = uVar3;\n        }\n        *(uint *)(param_5 + 8) = uVar4;\n        iVar5 = FUN_00027650(param_5);\n        local_20[0] = *(int *)(param_5 + 0x10);\n        *(undefined4 *)(iVar5 + 0x44) = 1;\n        *(int *)(*param_4 + 0x30) = iVar5;\n        *param_4 = iVar5;\n        iVar2 = *(int *)(param_5 + 0xc);\n        local_20[0] = local_20[0] - iVar2;\n        if (local_20[0] < 1) {\n          uVar6 = dcgettext(0,"can\'t extend frag",5);\n                    /* WARNING: Subroutine does not return */\n          FUN_0002ed30(uVar6);\n        }\n      }\n      *(int *)(param_5 + 0xc) = iVar2 + local_20[0];\n      local_24 = iVar2;\n      uVar3 = FUN_0001b550(param_1,local_30,&local_34,&local_24,local_20);\n      if ((int)uVar3 < 0) {\n        return -1;\n      }\n      puVar1 = (uint *)(iVar5 + 0x10);\n      uVar4 = *puVar1;\n      *puVar1 = *puVar1 + uVar3;\n      *(int *)(iVar5 + 0x14) =\n           *(int *)(iVar5 + 0x14) + ((int)uVar3 >> 0x1f) + (uint)CARRY4(uVar4,uVar3);\n      iVar7 = iVar7 + uVar3;\n      if (local_20[0] < 1) break;\n      *(int *)(param_5 + 0xc) = *(int *)(param_5 + 0xc) - local_20[0];\n      if (local_34 < 1) {\n        return iVar7;\n      }\n    }\n  }" { (if_statement "if (local_34 < 1) {\n      return iVar7;\n    }" if (parenthesized_expression "(local_34 < 1)" ( (binary_expression "local_34 < 1" identifier < number_literal) )) (compound_statement "{\n      return iVar7;\n    }" { (return_statement "return iVar7;" return identifier ;) })) (while_statement "while( true ) {\n      uVar3 = *(uint *)(param_5 + 0x10);\n      iVar2 = *(int *)(param_5 + 0xc);\n      local_20[0] = uVar3 - iVar2;\n      if (local_20[0] < 1) {\n        if (iVar2 == *(int *)(param_5 + 8)) {\n          *(byte *)(param_5 + 0x28) = *(byte *)(param_5 + 0x28) | 2;\n        }\n        uVar4 = iVar2 + *(uint *)(param_5 + 0x18) & ~*(uint *)(param_5 + 0x18);\n        *(uint *)(param_5 + 0xc) = uVar4;\n        if (uVar3 - *(int *)(param_5 + 4) < uVar4 - *(int *)(param_5 + 4)) {\n          *(uint *)(param_5 + 0xc) = uVar3;\n          uVar4 = uVar3;\n        }\n        *(uint *)(param_5 + 8) = uVar4;\n        iVar5 = FUN_00027650(param_5);\n        local_20[0] = *(int *)(param_5 + 0x10);\n        *(undefined4 *)(iVar5 + 0x44) = 1;\n        *(int *)(*param_4 + 0x30) = iVar5;\n        *param_4 = iVar5;\n        iVar2 = *(int *)(param_5 + 0xc);\n        local_20[0] = local_20[0] - iVar2;\n        if (local_20[0] < 1) {\n          uVar6 = dcgettext(0,"can\'t extend frag",5);\n                    /* WARNING: Subroutine does not return */\n          FUN_0002ed30(uVar6);\n        }\n      }\n      *(int *)(param_5 + 0xc) = iVar2 + local_20[0];\n      local_24 = iVar2;\n      uVar3 = FUN_0001b550(param_1,local_30,&local_34,&local_24,local_20);\n      if ((int)uVar3 < 0) {\n        return -1;\n      }\n      puVar1 = (uint *)(iVar5 + 0x10);\n      uVar4 = *puVar1;\n      *puVar1 = *puVar1 + uVar3;\n      *(int *)(iVar5 + 0x14) =\n           *(int *)(iVar5 + 0x14) + ((int)uVar3 >> 0x1f) + (uint)CARRY4(uVar4,uVar3);\n      iVar7 = iVar7 + uVar3;\n      if (local_20[0] < 1) break;\n      *(int *)(param_5 + 0xc) = *(int *)(param_5 + 0xc) - local_20[0];\n      if (local_34 < 1) {\n        return iVar7;\n      }\n    }" while (parenthesized_expression "( true )" ( true )) (compound_statement "{\n      uVar3 = *(uint *)(param_5 + 0x10);\n      iVar2 = *(int *)(param_5 + 0xc);\n      local_20[0] = uVar3 - iVar2;\n      if (local_20[0] < 1) {\n        if (iVar2 == *(int *)(param_5 + 8)) {\n          *(byte *)(param_5 + 0x28) = *(byte *)(param_5 + 0x28) | 2;\n        }\n        uVar4 = iVar2 + *(uint *)(param_5 + 0x18) & ~*(uint *)(param_5 + 0x18);\n        *(uint *)(param_5 + 0xc) = uVar4;\n        if (uVar3 - *(int *)(param_5 + 4) < uVar4 - *(int *)(param_5 + 4)) {\n          *(uint *)(param_5 + 0xc) = uVar3;\n          uVar4 = uVar3;\n        }\n        *(uint *)(param_5 + 8) = uVar4;\n        iVar5 = FUN_00027650(param_5);\n        local_20[0] = *(int *)(param_5 + 0x10);\n        *(undefined4 *)(iVar5 + 0x44) = 1;\n        *(int *)(*param_4 + 0x30) = iVar5;\n        *param_4 = iVar5;\n        iVar2 = *(int *)(param_5 + 0xc);\n        local_20[0] = local_20[0] - iVar2;\n        if (local_20[0] < 1) {\n          uVar6 = dcgettext(0,"can\'t extend frag",5);\n                    /* WARNING: Subroutine does not return */\n          FUN_0002ed30(uVar6);\n        }\n      }\n      *(int *)(param_5 + 0xc) = iVar2 + local_20[0];\n      local_24 = iVar2;\n      uVar3 = FUN_0001b550(param_1,local_30,&local_34,&local_24,local_20);\n      if ((int)uVar3 < 0) {\n        return -1;\n      }\n      puVar1 = (uint *)(iVar5 + 0x10);\n      uVar4 = *puVar1;\n      *puVar1 = *puVar1 + uVar3;\n      *(int *)(iVar5 + 0x14) =\n           *(int *)(iVar5 + 0x14) + ((int)uVar3 >> 0x1f) + (uint)CARRY4(uVar4,uVar3);\n      iVar7 = iVar7 + uVar3;\n      if (local_20[0] < 1) break;\n      *(int *)(param_5 + 0xc) = *(int *)(param_5 + 0xc) - local_20[0];\n      if (local_34 < 1) {\n        return iVar7;\n      }\n    }" { (expression_statement "uVar3 = *(uint *)(param_5 + 0x10);" (assignment_expression "uVar3 = *(uint *)(param_5 + 0x10)" identifier = (pointer_expression "*(uint *)(param_5 + 0x10)" * (cast_expression "(uint *)(param_5 + 0x10)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_5 + 0x10)" ( (binary_expression "param_5 + 0x10" identifier + number_literal) ))))) ;) (expression_statement "iVar2 = *(int *)(param_5 + 0xc);" (assignment_expression "iVar2 = *(int *)(param_5 + 0xc)" identifier = (pointer_expression "*(int *)(param_5 + 0xc)" * (cast_expression "(int *)(param_5 + 0xc)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_5 + 0xc)" ( (binary_expression "param_5 + 0xc" identifier + number_literal) ))))) ;) (expression_statement "local_20[0] = uVar3 - iVar2;" (assignment_expression "local_20[0] = uVar3 - iVar2" (subscript_expression "local_20[0]" identifier [ number_literal ]) = (binary_expression "uVar3 - iVar2" identifier - identifier)) ;) (if_statement "if (local_20[0] < 1) {\n        if (iVar2 == *(int *)(param_5 + 8)) {\n          *(byte *)(param_5 + 0x28) = *(byte *)(param_5 + 0x28) | 2;\n        }\n        uVar4 = iVar2 + *(uint *)(param_5 + 0x18) & ~*(uint *)(param_5 + 0x18);\n        *(uint *)(param_5 + 0xc) = uVar4;\n        if (uVar3 - *(int *)(param_5 + 4) < uVar4 - *(int *)(param_5 + 4)) {\n          *(uint *)(param_5 + 0xc) = uVar3;\n          uVar4 = uVar3;\n        }\n        *(uint *)(param_5 + 8) = uVar4;\n        iVar5 = FUN_00027650(param_5);\n        local_20[0] = *(int *)(param_5 + 0x10);\n        *(undefined4 *)(iVar5 + 0x44) = 1;\n        *(int *)(*param_4 + 0x30) = iVar5;\n        *param_4 = iVar5;\n        iVar2 = *(int *)(param_5 + 0xc);\n        local_20[0] = local_20[0] - iVar2;\n        if (local_20[0] < 1) {\n          uVar6 = dcgettext(0,"can\'t extend frag",5);\n                    /* WARNING: Subroutine does not return */\n          FUN_0002ed30(uVar6);\n        }\n      }" if (parenthesized_expression "(local_20[0] < 1)" ( (binary_expression "local_20[0] < 1" (subscript_expression "local_20[0]" identifier [ number_literal ]) < number_literal) )) (compound_statement "{\n        if (iVar2 == *(int *)(param_5 + 8)) {\n          *(byte *)(param_5 + 0x28) = *(byte *)(param_5 + 0x28) | 2;\n        }\n        uVar4 = iVar2 + *(uint *)(param_5 + 0x18) & ~*(uint *)(param_5 + 0x18);\n        *(uint *)(param_5 + 0xc) = uVar4;\n        if (uVar3 - *(int *)(param_5 + 4) < uVar4 - *(int *)(param_5 + 4)) {\n          *(uint *)(param_5 + 0xc) = uVar3;\n          uVar4 = uVar3;\n        }\n        *(uint *)(param_5 + 8) = uVar4;\n        iVar5 = FUN_00027650(param_5);\n        local_20[0] = *(int *)(param_5 + 0x10);\n        *(undefined4 *)(iVar5 + 0x44) = 1;\n        *(int *)(*param_4 + 0x30) = iVar5;\n        *param_4 = iVar5;\n        iVar2 = *(int *)(param_5 + 0xc);\n        local_20[0] = local_20[0] - iVar2;\n        if (local_20[0] < 1) {\n          uVar6 = dcgettext(0,"can\'t extend frag",5);\n                    /* WARNING: Subroutine does not return */\n          FUN_0002ed30(uVar6);\n        }\n      }" { (if_statement "if (iVar2 == *(int *)(param_5 + 8)) {\n          *(byte *)(param_5 + 0x28) = *(byte *)(param_5 + 0x28) | 2;\n        }" if (parenthesized_expression "(iVar2 == *(int *)(param_5 + 8))" ( (binary_expression "iVar2 == *(int *)(param_5 + 8)" identifier == (pointer_expression "*(int *)(param_5 + 8)" * (cast_expression "(int *)(param_5 + 8)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_5 + 8)" ( (binary_expression "param_5 + 8" identifier + number_literal) ))))) )) (compound_statement "{\n          *(byte *)(param_5 + 0x28) = *(byte *)(param_5 + 0x28) | 2;\n        }" { (expression_statement "*(byte *)(param_5 + 0x28) = *(byte *)(param_5 + 0x28) | 2;" (assignment_expression "*(byte *)(param_5 + 0x28) = *(byte *)(param_5 + 0x28) | 2" (pointer_expression "*(byte *)(param_5 + 0x28)" * (cast_expression "(byte *)(param_5 + 0x28)" ( (type_descriptor "byte *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_5 + 0x28)" ( (binary_expression "param_5 + 0x28" identifier + number_literal) )))) = (binary_expression "*(byte *)(param_5 + 0x28) | 2" (pointer_expression "*(byte *)(param_5 + 0x28)" * (cast_expression "(byte *)(param_5 + 0x28)" ( (type_descriptor "byte *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_5 + 0x28)" ( (binary_expression "param_5 + 0x28" identifier + number_literal) )))) | number_literal)) ;) })) (expression_statement "uVar4 = iVar2 + *(uint *)(param_5 + 0x18) & ~*(uint *)(param_5 + 0x18);" (assignment_expression "uVar4 = iVar2 + *(uint *)(param_5 + 0x18) & ~*(uint *)(param_5 + 0x18)" identifier = (binary_expression "iVar2 + *(uint *)(param_5 + 0x18) & ~*(uint *)(param_5 + 0x18)" (binary_expression "iVar2 + *(uint *)(param_5 + 0x18)" identifier + (pointer_expression "*(uint *)(param_5 + 0x18)" * (cast_expression "(uint *)(param_5 + 0x18)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_5 + 0x18)" ( (binary_expression "param_5 + 0x18" identifier + number_literal) ))))) & (unary_expression "~*(uint *)(param_5 + 0x18)" ~ (pointer_expression "*(uint *)(param_5 + 0x18)" * (cast_expression "(uint *)(param_5 + 0x18)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_5 + 0x18)" ( (binary_expression "param_5 + 0x18" identifier + number_literal) ))))))) ;) (expression_statement "*(uint *)(param_5 + 0xc) = uVar4;" (assignment_expression "*(uint *)(param_5 + 0xc) = uVar4" (pointer_expression "*(uint *)(param_5 + 0xc)" * (cast_expression "(uint *)(param_5 + 0xc)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_5 + 0xc)" ( (binary_expression "param_5 + 0xc" identifier + number_literal) )))) = identifier) ;) (if_statement "if (uVar3 - *(int *)(param_5 + 4) < uVar4 - *(int *)(param_5 + 4)) {\n          *(uint *)(param_5 + 0xc) = uVar3;\n          uVar4 = uVar3;\n        }" if (parenthesized_expression "(uVar3 - *(int *)(param_5 + 4) < uVar4 - *(int *)(param_5 + 4))" ( (binary_expression "uVar3 - *(int *)(param_5 + 4) < uVar4 - *(int *)(param_5 + 4)" (binary_expression "uVar3 - *(int *)(param_5 + 4)" identifier - (pointer_expression "*(int *)(param_5 + 4)" * (cast_expression "(int *)(param_5 + 4)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_5 + 4)" ( (binary_expression "param_5 + 4" identifier + number_literal) ))))) < (binary_expression "uVar4 - *(int *)(param_5 + 4)" identifier - (pointer_expression "*(int *)(param_5 + 4)" * (cast_expression "(int *)(param_5 + 4)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_5 + 4)" ( (binary_expression "param_5 + 4" identifier + number_literal) )))))) )) (compound_statement "{\n          *(uint *)(param_5 + 0xc) = uVar3;\n          uVar4 = uVar3;\n        }" { (expression_statement "*(uint *)(param_5 + 0xc) = uVar3;" (assignment_expression "*(uint *)(param_5 + 0xc) = uVar3" (pointer_expression "*(uint *)(param_5 + 0xc)" * (cast_expression "(uint *)(param_5 + 0xc)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_5 + 0xc)" ( (binary_expression "param_5 + 0xc" identifier + number_literal) )))) = identifier) ;) (expression_statement "uVar4 = uVar3;" (assignment_expression "uVar4 = uVar3" identifier = identifier) ;) })) (expression_statement "*(uint *)(param_5 + 8) = uVar4;" (assignment_expression "*(uint *)(param_5 + 8) = uVar4" (pointer_expression "*(uint *)(param_5 + 8)" * (cast_expression "(uint *)(param_5 + 8)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_5 + 8)" ( (binary_expression "param_5 + 8" identifier + number_literal) )))) = identifier) ;) (expression_statement "iVar5 = FUN_00027650(param_5);" (assignment_expression "iVar5 = FUN_00027650(param_5)" identifier = (call_expression "FUN_00027650(param_5)" identifier (argument_list "(param_5)" ( identifier )))) ;) (expression_statement "local_20[0] = *(int *)(param_5 + 0x10);" (assignment_expression "local_20[0] = *(int *)(param_5 + 0x10)" (subscript_expression "local_20[0]" identifier [ number_literal ]) = (pointer_expression "*(int *)(param_5 + 0x10)" * (cast_expression "(int *)(param_5 + 0x10)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_5 + 0x10)" ( (binary_expression "param_5 + 0x10" identifier + number_literal) ))))) ;) (expression_statement "*(undefined4 *)(iVar5 + 0x44) = 1;" (assignment_expression "*(undefined4 *)(iVar5 + 0x44) = 1" (pointer_expression "*(undefined4 *)(iVar5 + 0x44)" * (cast_expression "(undefined4 *)(iVar5 + 0x44)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar5 + 0x44)" ( (binary_expression "iVar5 + 0x44" identifier + number_literal) )))) = number_literal) ;) (expression_statement "*(int *)(*param_4 + 0x30) = iVar5;" (assignment_expression "*(int *)(*param_4 + 0x30) = iVar5" (pointer_expression "*(int *)(*param_4 + 0x30)" * (cast_expression "(int *)(*param_4 + 0x30)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(*param_4 + 0x30)" ( (binary_expression "*param_4 + 0x30" (pointer_expression "*param_4" * identifier) + number_literal) )))) = identifier) ;) (expression_statement "*param_4 = iVar5;" (assignment_expression "*param_4 = iVar5" (pointer_expression "*param_4" * identifier) = identifier) ;) (expression_statement "iVar2 = *(int *)(param_5 + 0xc);" (assignment_expression "iVar2 = *(int *)(param_5 + 0xc)" identifier = (pointer_expression "*(int *)(param_5 + 0xc)" * (cast_expression "(int *)(param_5 + 0xc)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_5 + 0xc)" ( (binary_expression "param_5 + 0xc" identifier + number_literal) ))))) ;) (expression_statement "local_20[0] = local_20[0] - iVar2;" (assignment_expression "local_20[0] = local_20[0] - iVar2" (subscript_expression "local_20[0]" identifier [ number_literal ]) = (binary_expression "local_20[0] - iVar2" (subscript_expression "local_20[0]" identifier [ number_literal ]) - identifier)) ;) (if_statement "if (local_20[0] < 1) {\n          uVar6 = dcgettext(0,"can\'t extend frag",5);\n                    /* WARNING: Subroutine does not return */\n          FUN_0002ed30(uVar6);\n        }" if (parenthesized_expression "(local_20[0] < 1)" ( (binary_expression "local_20[0] < 1" (subscript_expression "local_20[0]" identifier [ number_literal ]) < number_literal) )) (compound_statement "{\n          uVar6 = dcgettext(0,"can\'t extend frag",5);\n                    /* WARNING: Subroutine does not return */\n          FUN_0002ed30(uVar6);\n        }" { (expression_statement "uVar6 = dcgettext(0,"can\'t extend frag",5);" (assignment_expression "uVar6 = dcgettext(0,"can\'t extend frag",5)" identifier = (call_expression "dcgettext(0,"can\'t extend frag",5)" identifier (argument_list "(0,"can\'t extend frag",5)" ( number_literal , (string_literal ""can\'t extend frag"" " string_content escape_sequence string_content ") , number_literal )))) ;) comment (expression_statement "FUN_0002ed30(uVar6);" (call_expression "FUN_0002ed30(uVar6)" identifier (argument_list "(uVar6)" ( identifier ))) ;) })) })) (expression_statement "*(int *)(param_5 + 0xc) = iVar2 + local_20[0];" (assignment_expression "*(int *)(param_5 + 0xc) = iVar2 + local_20[0]" (pointer_expression "*(int *)(param_5 + 0xc)" * (cast_expression "(int *)(param_5 + 0xc)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_5 + 0xc)" ( (binary_expression "param_5 + 0xc" identifier + number_literal) )))) = (binary_expression "iVar2 + local_20[0]" identifier + (subscript_expression "local_20[0]" identifier [ number_literal ]))) ;) (expression_statement "local_24 = iVar2;" (assignment_expression "local_24 = iVar2" identifier = identifier) ;) (expression_statement "uVar3 = FUN_0001b550(param_1,local_30,&local_34,&local_24,local_20);" (assignment_expression "uVar3 = FUN_0001b550(param_1,local_30,&local_34,&local_24,local_20)" identifier = (call_expression "FUN_0001b550(param_1,local_30,&local_34,&local_24,local_20)" identifier (argument_list "(param_1,local_30,&local_34,&local_24,local_20)" ( identifier , identifier , (pointer_expression "&local_34" & identifier) , (pointer_expression "&local_24" & identifier) , identifier )))) ;) (if_statement "if ((int)uVar3 < 0) {\n        return -1;\n      }" if (parenthesized_expression "((int)uVar3 < 0)" ( (binary_expression "(int)uVar3 < 0" (cast_expression "(int)uVar3" ( (type_descriptor "int" primitive_type) ) identifier) < number_literal) )) (compound_statement "{\n        return -1;\n      }" { (return_statement "return -1;" return number_literal ;) })) (expression_statement "puVar1 = (uint *)(iVar5 + 0x10);" (assignment_expression "puVar1 = (uint *)(iVar5 + 0x10)" identifier = (cast_expression "(uint *)(iVar5 + 0x10)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar5 + 0x10)" ( (binary_expression "iVar5 + 0x10" identifier + number_literal) )))) ;) (expression_statement "uVar4 = *puVar1;" (assignment_expression "uVar4 = *puVar1" identifier = (pointer_expression "*puVar1" * identifier)) ;) (expression_statement "*puVar1 = *puVar1 + uVar3;" (assignment_expression "*puVar1 = *puVar1 + uVar3" (pointer_expression "*puVar1" * identifier) = (binary_expression "*puVar1 + uVar3" (pointer_expression "*puVar1" * identifier) + identifier)) ;) (expression_statement "*(int *)(iVar5 + 0x14) =\n           *(int *)(iVar5 + 0x14) + ((int)uVar3 >> 0x1f) + (uint)CARRY4(uVar4,uVar3);" (assignment_expression "*(int *)(iVar5 + 0x14) =\n           *(int *)(iVar5 + 0x14) + ((int)uVar3 >> 0x1f) + (uint)CARRY4(uVar4,uVar3)" (pointer_expression "*(int *)(iVar5 + 0x14)" * (cast_expression "(int *)(iVar5 + 0x14)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar5 + 0x14)" ( (binary_expression "iVar5 + 0x14" identifier + number_literal) )))) = (binary_expression "*(int *)(iVar5 + 0x14) + ((int)uVar3 >> 0x1f) + (uint)CARRY4(uVar4,uVar3)" (binary_expression "*(int *)(iVar5 + 0x14) + ((int)uVar3 >> 0x1f)" (pointer_expression "*(int *)(iVar5 + 0x14)" * (cast_expression "(int *)(iVar5 + 0x14)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar5 + 0x14)" ( (binary_expression "iVar5 + 0x14" identifier + number_literal) )))) + (parenthesized_expression "((int)uVar3 >> 0x1f)" ( (binary_expression "(int)uVar3 >> 0x1f" (cast_expression "(int)uVar3" ( (type_descriptor "int" primitive_type) ) identifier) >> number_literal) ))) + (cast_expression "(uint)CARRY4(uVar4,uVar3)" ( (type_descriptor "uint" type_identifier) ) (call_expression "CARRY4(uVar4,uVar3)" identifier (argument_list "(uVar4,uVar3)" ( identifier , identifier )))))) ;) (expression_statement "iVar7 = iVar7 + uVar3;" (assignment_expression "iVar7 = iVar7 + uVar3" identifier = (binary_expression "iVar7 + uVar3" identifier + identifier)) ;) (if_statement "if (local_20[0] < 1) break;" if (parenthesized_expression "(local_20[0] < 1)" ( (binary_expression "local_20[0] < 1" (subscript_expression "local_20[0]" identifier [ number_literal ]) < number_literal) )) (break_statement "break;" break ;)) (expression_statement "*(int *)(param_5 + 0xc) = *(int *)(param_5 + 0xc) - local_20[0];" (assignment_expression "*(int *)(param_5 + 0xc) = *(int *)(param_5 + 0xc) - local_20[0]" (pointer_expression "*(int *)(param_5 + 0xc)" * (cast_expression "(int *)(param_5 + 0xc)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_5 + 0xc)" ( (binary_expression "param_5 + 0xc" identifier + number_literal) )))) = (binary_expression "*(int *)(param_5 + 0xc) - local_20[0]" (pointer_expression "*(int *)(param_5 + 0xc)" * (cast_expression "(int *)(param_5 + 0xc)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_5 + 0xc)" ( (binary_expression "param_5 + 0xc" identifier + number_literal) )))) - (subscript_expression "local_20[0]" identifier [ number_literal ]))) ;) (if_statement "if (local_34 < 1) {\n        return iVar7;\n      }" if (parenthesized_expression "(local_34 < 1)" ( (binary_expression "local_34 < 1" identifier < number_literal) )) (compound_statement "{\n        return iVar7;\n      }" { (return_statement "return iVar7;" return identifier ;) })) })) }) while (parenthesized_expression "( true )" ( true )) ;) })))
(translation_unit "/* WARNING: Function: __x86.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */\n\nint __regparm3\ncompress_frag(z_stream_s *strm,char *contents,int in_size,fragS **last_newf,obstack *ob)\n\n{\n  offsetT *poVar1;\n  int *piVar2;\n  offsetT oVar3;\n  uint uVar4;\n  char *pcVar5;\n  fragS *pfVar6;\n  char *pcVar7;\n  int iVar8;\n  int local_34;\n  char *local_30 [3];\n  char *next_out;\n  int avail_out;\n  undefined4 uStack_14;\n  \n  iVar8 = 0;\n  uStack_14 = 0x3f85b;\n  pfVar6 = *last_newf;\n  local_34 = in_size;\n  local_30[0] = contents;\n  do {\n    if (local_34 < 1) {\n      return iVar8;\n    }\n    while( true ) {\n      pcVar7 = ob->chunk_limit;\n      pcVar5 = ob->next_free;\n      avail_out = (int)pcVar7 - (int)pcVar5;\n      if (avail_out < 1) {\n        if (pcVar5 == ob->object_base) {\n          ob->field_0x28 = ob->field_0x28 | 2;\n        }\n        pcVar5 = (char *)((uint)(pcVar5 + ob->alignment_mask) & ~ob->alignment_mask);\n        ob->next_free = pcVar5;\n        if ((uint)((int)pcVar7 - (int)ob->chunk) < (uint)((int)pcVar5 - (int)ob->chunk)) {\n          ob->next_free = pcVar7;\n          pcVar5 = pcVar7;\n        }\n        ob->object_base = pcVar5;\n        pfVar6 = frag_alloc(ob);\n        pcVar7 = ob->chunk_limit;\n        pfVar6->fr_type = rs_fill;\n        (*last_newf)->fr_next = pfVar6;\n        *last_newf = pfVar6;\n        pcVar5 = ob->next_free;\n        avail_out = (int)pcVar7 - (int)pcVar5;\n        if (avail_out < 1) {\n          pcVar7 = (char *)dcgettext(0,"can\'t extend frag",5);\n                    /* WARNING: Subroutine does not return */\n          as_fatal(pcVar7);\n        }\n      }\n      ob->next_free = pcVar5 + avail_out;\n      next_out = pcVar5;\n      uVar4 = compress_data(strm,local_30,&local_34,&next_out,&avail_out);\n      if ((int)uVar4 < 0) {\n        return -1;\n      }\n      poVar1 = &pfVar6->fr_fix;\n      oVar3 = *poVar1;\n      *(uint *)poVar1 = (int)*poVar1 + uVar4;\n      piVar2 = (int *)((int)&pfVar6->fr_fix + 4);\n      *piVar2 = *piVar2 + ((int)uVar4 >> 0x1f) + (uint)CARRY4((uint)oVar3,uVar4);\n      iVar8 = iVar8 + uVar4;\n      if (avail_out < 1) break;\n      ob->next_free = ob->next_free + -avail_out;\n      if (local_34 < 1) {\n        return iVar8;\n      }\n    }\n  } while( true );\n}\n\n" comment (function_definition "int __regparm3\ncompress_frag(z_stream_s *strm,char *contents,int in_size,fragS **last_newf,obstack *ob)\n\n{\n  offsetT *poVar1;\n  int *piVar2;\n  offsetT oVar3;\n  uint uVar4;\n  char *pcVar5;\n  fragS *pfVar6;\n  char *pcVar7;\n  int iVar8;\n  int local_34;\n  char *local_30 [3];\n  char *next_out;\n  int avail_out;\n  undefined4 uStack_14;\n  \n  iVar8 = 0;\n  uStack_14 = 0x3f85b;\n  pfVar6 = *last_newf;\n  local_34 = in_size;\n  local_30[0] = contents;\n  do {\n    if (local_34 < 1) {\n      return iVar8;\n    }\n    while( true ) {\n      pcVar7 = ob->chunk_limit;\n      pcVar5 = ob->next_free;\n      avail_out = (int)pcVar7 - (int)pcVar5;\n      if (avail_out < 1) {\n        if (pcVar5 == ob->object_base) {\n          ob->field_0x28 = ob->field_0x28 | 2;\n        }\n        pcVar5 = (char *)((uint)(pcVar5 + ob->alignment_mask) & ~ob->alignment_mask);\n        ob->next_free = pcVar5;\n        if ((uint)((int)pcVar7 - (int)ob->chunk) < (uint)((int)pcVar5 - (int)ob->chunk)) {\n          ob->next_free = pcVar7;\n          pcVar5 = pcVar7;\n        }\n        ob->object_base = pcVar5;\n        pfVar6 = frag_alloc(ob);\n        pcVar7 = ob->chunk_limit;\n        pfVar6->fr_type = rs_fill;\n        (*last_newf)->fr_next = pfVar6;\n        *last_newf = pfVar6;\n        pcVar5 = ob->next_free;\n        avail_out = (int)pcVar7 - (int)pcVar5;\n        if (avail_out < 1) {\n          pcVar7 = (char *)dcgettext(0,"can\'t extend frag",5);\n                    /* WARNING: Subroutine does not return */\n          as_fatal(pcVar7);\n        }\n      }\n      ob->next_free = pcVar5 + avail_out;\n      next_out = pcVar5;\n      uVar4 = compress_data(strm,local_30,&local_34,&next_out,&avail_out);\n      if ((int)uVar4 < 0) {\n        return -1;\n      }\n      poVar1 = &pfVar6->fr_fix;\n      oVar3 = *poVar1;\n      *(uint *)poVar1 = (int)*poVar1 + uVar4;\n      piVar2 = (int *)((int)&pfVar6->fr_fix + 4);\n      *piVar2 = *piVar2 + ((int)uVar4 >> 0x1f) + (uint)CARRY4((uint)oVar3,uVar4);\n      iVar8 = iVar8 + uVar4;\n      if (avail_out < 1) break;\n      ob->next_free = ob->next_free + -avail_out;\n      if (local_34 < 1) {\n        return iVar8;\n      }\n    }\n  } while( true );\n}" primitive_type (ERROR "__regparm3" identifier) (function_declarator "compress_frag(z_stream_s *strm,char *contents,int in_size,fragS **last_newf,obstack *ob)" identifier (parameter_list "(z_stream_s *strm,char *contents,int in_size,fragS **last_newf,obstack *ob)" ( (parameter_declaration "z_stream_s *strm" type_identifier (pointer_declarator "*strm" * identifier)) , (parameter_declaration "char *contents" primitive_type (pointer_declarator "*contents" * identifier)) , (parameter_declaration "int in_size" primitive_type identifier) , (parameter_declaration "fragS **last_newf" type_identifier (pointer_declarator "**last_newf" * (pointer_declarator "*last_newf" * identifier))) , (parameter_declaration "obstack *ob" type_identifier (pointer_declarator "*ob" * identifier)) ))) (compound_statement "{\n  offsetT *poVar1;\n  int *piVar2;\n  offsetT oVar3;\n  uint uVar4;\n  char *pcVar5;\n  fragS *pfVar6;\n  char *pcVar7;\n  int iVar8;\n  int local_34;\n  char *local_30 [3];\n  char *next_out;\n  int avail_out;\n  undefined4 uStack_14;\n  \n  iVar8 = 0;\n  uStack_14 = 0x3f85b;\n  pfVar6 = *last_newf;\n  local_34 = in_size;\n  local_30[0] = contents;\n  do {\n    if (local_34 < 1) {\n      return iVar8;\n    }\n    while( true ) {\n      pcVar7 = ob->chunk_limit;\n      pcVar5 = ob->next_free;\n      avail_out = (int)pcVar7 - (int)pcVar5;\n      if (avail_out < 1) {\n        if (pcVar5 == ob->object_base) {\n          ob->field_0x28 = ob->field_0x28 | 2;\n        }\n        pcVar5 = (char *)((uint)(pcVar5 + ob->alignment_mask) & ~ob->alignment_mask);\n        ob->next_free = pcVar5;\n        if ((uint)((int)pcVar7 - (int)ob->chunk) < (uint)((int)pcVar5 - (int)ob->chunk)) {\n          ob->next_free = pcVar7;\n          pcVar5 = pcVar7;\n        }\n        ob->object_base = pcVar5;\n        pfVar6 = frag_alloc(ob);\n        pcVar7 = ob->chunk_limit;\n        pfVar6->fr_type = rs_fill;\n        (*last_newf)->fr_next = pfVar6;\n        *last_newf = pfVar6;\n        pcVar5 = ob->next_free;\n        avail_out = (int)pcVar7 - (int)pcVar5;\n        if (avail_out < 1) {\n          pcVar7 = (char *)dcgettext(0,"can\'t extend frag",5);\n                    /* WARNING: Subroutine does not return */\n          as_fatal(pcVar7);\n        }\n      }\n      ob->next_free = pcVar5 + avail_out;\n      next_out = pcVar5;\n      uVar4 = compress_data(strm,local_30,&local_34,&next_out,&avail_out);\n      if ((int)uVar4 < 0) {\n        return -1;\n      }\n      poVar1 = &pfVar6->fr_fix;\n      oVar3 = *poVar1;\n      *(uint *)poVar1 = (int)*poVar1 + uVar4;\n      piVar2 = (int *)((int)&pfVar6->fr_fix + 4);\n      *piVar2 = *piVar2 + ((int)uVar4 >> 0x1f) + (uint)CARRY4((uint)oVar3,uVar4);\n      iVar8 = iVar8 + uVar4;\n      if (avail_out < 1) break;\n      ob->next_free = ob->next_free + -avail_out;\n      if (local_34 < 1) {\n        return iVar8;\n      }\n    }\n  } while( true );\n}" { (declaration "offsetT *poVar1;" type_identifier (pointer_declarator "*poVar1" * identifier) ;) (declaration "int *piVar2;" primitive_type (pointer_declarator "*piVar2" * identifier) ;) (declaration "offsetT oVar3;" type_identifier identifier ;) (declaration "uint uVar4;" type_identifier identifier ;) (declaration "char *pcVar5;" primitive_type (pointer_declarator "*pcVar5" * identifier) ;) (declaration "fragS *pfVar6;" type_identifier (pointer_declarator "*pfVar6" * identifier) ;) (declaration "char *pcVar7;" primitive_type (pointer_declarator "*pcVar7" * identifier) ;) (declaration "int iVar8;" primitive_type identifier ;) (declaration "int local_34;" primitive_type identifier ;) (declaration "char *local_30 [3];" primitive_type (pointer_declarator "*local_30 [3]" * (array_declarator "local_30 [3]" identifier [ number_literal ])) ;) (declaration "char *next_out;" primitive_type (pointer_declarator "*next_out" * identifier) ;) (declaration "int avail_out;" primitive_type identifier ;) (declaration "undefined4 uStack_14;" type_identifier identifier ;) (expression_statement "iVar8 = 0;" (assignment_expression "iVar8 = 0" identifier = number_literal) ;) (expression_statement "uStack_14 = 0x3f85b;" (assignment_expression "uStack_14 = 0x3f85b" identifier = number_literal) ;) (expression_statement "pfVar6 = *last_newf;" (assignment_expression "pfVar6 = *last_newf" identifier = (pointer_expression "*last_newf" * identifier)) ;) (expression_statement "local_34 = in_size;" (assignment_expression "local_34 = in_size" identifier = identifier) ;) (expression_statement "local_30[0] = contents;" (assignment_expression "local_30[0] = contents" (subscript_expression "local_30[0]" identifier [ number_literal ]) = identifier) ;) (do_statement "do {\n    if (local_34 < 1) {\n      return iVar8;\n    }\n    while( true ) {\n      pcVar7 = ob->chunk_limit;\n      pcVar5 = ob->next_free;\n      avail_out = (int)pcVar7 - (int)pcVar5;\n      if (avail_out < 1) {\n        if (pcVar5 == ob->object_base) {\n          ob->field_0x28 = ob->field_0x28 | 2;\n        }\n        pcVar5 = (char *)((uint)(pcVar5 + ob->alignment_mask) & ~ob->alignment_mask);\n        ob->next_free = pcVar5;\n        if ((uint)((int)pcVar7 - (int)ob->chunk) < (uint)((int)pcVar5 - (int)ob->chunk)) {\n          ob->next_free = pcVar7;\n          pcVar5 = pcVar7;\n        }\n        ob->object_base = pcVar5;\n        pfVar6 = frag_alloc(ob);\n        pcVar7 = ob->chunk_limit;\n        pfVar6->fr_type = rs_fill;\n        (*last_newf)->fr_next = pfVar6;\n        *last_newf = pfVar6;\n        pcVar5 = ob->next_free;\n        avail_out = (int)pcVar7 - (int)pcVar5;\n        if (avail_out < 1) {\n          pcVar7 = (char *)dcgettext(0,"can\'t extend frag",5);\n                    /* WARNING: Subroutine does not return */\n          as_fatal(pcVar7);\n        }\n      }\n      ob->next_free = pcVar5 + avail_out;\n      next_out = pcVar5;\n      uVar4 = compress_data(strm,local_30,&local_34,&next_out,&avail_out);\n      if ((int)uVar4 < 0) {\n        return -1;\n      }\n      poVar1 = &pfVar6->fr_fix;\n      oVar3 = *poVar1;\n      *(uint *)poVar1 = (int)*poVar1 + uVar4;\n      piVar2 = (int *)((int)&pfVar6->fr_fix + 4);\n      *piVar2 = *piVar2 + ((int)uVar4 >> 0x1f) + (uint)CARRY4((uint)oVar3,uVar4);\n      iVar8 = iVar8 + uVar4;\n      if (avail_out < 1) break;\n      ob->next_free = ob->next_free + -avail_out;\n      if (local_34 < 1) {\n        return iVar8;\n      }\n    }\n  } while( true );" do (compound_statement "{\n    if (local_34 < 1) {\n      return iVar8;\n    }\n    while( true ) {\n      pcVar7 = ob->chunk_limit;\n      pcVar5 = ob->next_free;\n      avail_out = (int)pcVar7 - (int)pcVar5;\n      if (avail_out < 1) {\n        if (pcVar5 == ob->object_base) {\n          ob->field_0x28 = ob->field_0x28 | 2;\n        }\n        pcVar5 = (char *)((uint)(pcVar5 + ob->alignment_mask) & ~ob->alignment_mask);\n        ob->next_free = pcVar5;\n        if ((uint)((int)pcVar7 - (int)ob->chunk) < (uint)((int)pcVar5 - (int)ob->chunk)) {\n          ob->next_free = pcVar7;\n          pcVar5 = pcVar7;\n        }\n        ob->object_base = pcVar5;\n        pfVar6 = frag_alloc(ob);\n        pcVar7 = ob->chunk_limit;\n        pfVar6->fr_type = rs_fill;\n        (*last_newf)->fr_next = pfVar6;\n        *last_newf = pfVar6;\n        pcVar5 = ob->next_free;\n        avail_out = (int)pcVar7 - (int)pcVar5;\n        if (avail_out < 1) {\n          pcVar7 = (char *)dcgettext(0,"can\'t extend frag",5);\n                    /* WARNING: Subroutine does not return */\n          as_fatal(pcVar7);\n        }\n      }\n      ob->next_free = pcVar5 + avail_out;\n      next_out = pcVar5;\n      uVar4 = compress_data(strm,local_30,&local_34,&next_out,&avail_out);\n      if ((int)uVar4 < 0) {\n        return -1;\n      }\n      poVar1 = &pfVar6->fr_fix;\n      oVar3 = *poVar1;\n      *(uint *)poVar1 = (int)*poVar1 + uVar4;\n      piVar2 = (int *)((int)&pfVar6->fr_fix + 4);\n      *piVar2 = *piVar2 + ((int)uVar4 >> 0x1f) + (uint)CARRY4((uint)oVar3,uVar4);\n      iVar8 = iVar8 + uVar4;\n      if (avail_out < 1) break;\n      ob->next_free = ob->next_free + -avail_out;\n      if (local_34 < 1) {\n        return iVar8;\n      }\n    }\n  }" { (if_statement "if (local_34 < 1) {\n      return iVar8;\n    }" if (parenthesized_expression "(local_34 < 1)" ( (binary_expression "local_34 < 1" identifier < number_literal) )) (compound_statement "{\n      return iVar8;\n    }" { (return_statement "return iVar8;" return identifier ;) })) (while_statement "while( true ) {\n      pcVar7 = ob->chunk_limit;\n      pcVar5 = ob->next_free;\n      avail_out = (int)pcVar7 - (int)pcVar5;\n      if (avail_out < 1) {\n        if (pcVar5 == ob->object_base) {\n          ob->field_0x28 = ob->field_0x28 | 2;\n        }\n        pcVar5 = (char *)((uint)(pcVar5 + ob->alignment_mask) & ~ob->alignment_mask);\n        ob->next_free = pcVar5;\n        if ((uint)((int)pcVar7 - (int)ob->chunk) < (uint)((int)pcVar5 - (int)ob->chunk)) {\n          ob->next_free = pcVar7;\n          pcVar5 = pcVar7;\n        }\n        ob->object_base = pcVar5;\n        pfVar6 = frag_alloc(ob);\n        pcVar7 = ob->chunk_limit;\n        pfVar6->fr_type = rs_fill;\n        (*last_newf)->fr_next = pfVar6;\n        *last_newf = pfVar6;\n        pcVar5 = ob->next_free;\n        avail_out = (int)pcVar7 - (int)pcVar5;\n        if (avail_out < 1) {\n          pcVar7 = (char *)dcgettext(0,"can\'t extend frag",5);\n                    /* WARNING: Subroutine does not return */\n          as_fatal(pcVar7);\n        }\n      }\n      ob->next_free = pcVar5 + avail_out;\n      next_out = pcVar5;\n      uVar4 = compress_data(strm,local_30,&local_34,&next_out,&avail_out);\n      if ((int)uVar4 < 0) {\n        return -1;\n      }\n      poVar1 = &pfVar6->fr_fix;\n      oVar3 = *poVar1;\n      *(uint *)poVar1 = (int)*poVar1 + uVar4;\n      piVar2 = (int *)((int)&pfVar6->fr_fix + 4);\n      *piVar2 = *piVar2 + ((int)uVar4 >> 0x1f) + (uint)CARRY4((uint)oVar3,uVar4);\n      iVar8 = iVar8 + uVar4;\n      if (avail_out < 1) break;\n      ob->next_free = ob->next_free + -avail_out;\n      if (local_34 < 1) {\n        return iVar8;\n      }\n    }" while (parenthesized_expression "( true )" ( true )) (compound_statement "{\n      pcVar7 = ob->chunk_limit;\n      pcVar5 = ob->next_free;\n      avail_out = (int)pcVar7 - (int)pcVar5;\n      if (avail_out < 1) {\n        if (pcVar5 == ob->object_base) {\n          ob->field_0x28 = ob->field_0x28 | 2;\n        }\n        pcVar5 = (char *)((uint)(pcVar5 + ob->alignment_mask) & ~ob->alignment_mask);\n        ob->next_free = pcVar5;\n        if ((uint)((int)pcVar7 - (int)ob->chunk) < (uint)((int)pcVar5 - (int)ob->chunk)) {\n          ob->next_free = pcVar7;\n          pcVar5 = pcVar7;\n        }\n        ob->object_base = pcVar5;\n        pfVar6 = frag_alloc(ob);\n        pcVar7 = ob->chunk_limit;\n        pfVar6->fr_type = rs_fill;\n        (*last_newf)->fr_next = pfVar6;\n        *last_newf = pfVar6;\n        pcVar5 = ob->next_free;\n        avail_out = (int)pcVar7 - (int)pcVar5;\n        if (avail_out < 1) {\n          pcVar7 = (char *)dcgettext(0,"can\'t extend frag",5);\n                    /* WARNING: Subroutine does not return */\n          as_fatal(pcVar7);\n        }\n      }\n      ob->next_free = pcVar5 + avail_out;\n      next_out = pcVar5;\n      uVar4 = compress_data(strm,local_30,&local_34,&next_out,&avail_out);\n      if ((int)uVar4 < 0) {\n        return -1;\n      }\n      poVar1 = &pfVar6->fr_fix;\n      oVar3 = *poVar1;\n      *(uint *)poVar1 = (int)*poVar1 + uVar4;\n      piVar2 = (int *)((int)&pfVar6->fr_fix + 4);\n      *piVar2 = *piVar2 + ((int)uVar4 >> 0x1f) + (uint)CARRY4((uint)oVar3,uVar4);\n      iVar8 = iVar8 + uVar4;\n      if (avail_out < 1) break;\n      ob->next_free = ob->next_free + -avail_out;\n      if (local_34 < 1) {\n        return iVar8;\n      }\n    }" { (expression_statement "pcVar7 = ob->chunk_limit;" (assignment_expression "pcVar7 = ob->chunk_limit" identifier = (field_expression "ob->chunk_limit" identifier -> field_identifier)) ;) (expression_statement "pcVar5 = ob->next_free;" (assignment_expression "pcVar5 = ob->next_free" identifier = (field_expression "ob->next_free" identifier -> field_identifier)) ;) (expression_statement "avail_out = (int)pcVar7 - (int)pcVar5;" (assignment_expression "avail_out = (int)pcVar7 - (int)pcVar5" identifier = (binary_expression "(int)pcVar7 - (int)pcVar5" (cast_expression "(int)pcVar7" ( (type_descriptor "int" primitive_type) ) identifier) - (cast_expression "(int)pcVar5" ( (type_descriptor "int" primitive_type) ) identifier))) ;) (if_statement "if (avail_out < 1) {\n        if (pcVar5 == ob->object_base) {\n          ob->field_0x28 = ob->field_0x28 | 2;\n        }\n        pcVar5 = (char *)((uint)(pcVar5 + ob->alignment_mask) & ~ob->alignment_mask);\n        ob->next_free = pcVar5;\n        if ((uint)((int)pcVar7 - (int)ob->chunk) < (uint)((int)pcVar5 - (int)ob->chunk)) {\n          ob->next_free = pcVar7;\n          pcVar5 = pcVar7;\n        }\n        ob->object_base = pcVar5;\n        pfVar6 = frag_alloc(ob);\n        pcVar7 = ob->chunk_limit;\n        pfVar6->fr_type = rs_fill;\n        (*last_newf)->fr_next = pfVar6;\n        *last_newf = pfVar6;\n        pcVar5 = ob->next_free;\n        avail_out = (int)pcVar7 - (int)pcVar5;\n        if (avail_out < 1) {\n          pcVar7 = (char *)dcgettext(0,"can\'t extend frag",5);\n                    /* WARNING: Subroutine does not return */\n          as_fatal(pcVar7);\n        }\n      }" if (parenthesized_expression "(avail_out < 1)" ( (binary_expression "avail_out < 1" identifier < number_literal) )) (compound_statement "{\n        if (pcVar5 == ob->object_base) {\n          ob->field_0x28 = ob->field_0x28 | 2;\n        }\n        pcVar5 = (char *)((uint)(pcVar5 + ob->alignment_mask) & ~ob->alignment_mask);\n        ob->next_free = pcVar5;\n        if ((uint)((int)pcVar7 - (int)ob->chunk) < (uint)((int)pcVar5 - (int)ob->chunk)) {\n          ob->next_free = pcVar7;\n          pcVar5 = pcVar7;\n        }\n        ob->object_base = pcVar5;\n        pfVar6 = frag_alloc(ob);\n        pcVar7 = ob->chunk_limit;\n        pfVar6->fr_type = rs_fill;\n        (*last_newf)->fr_next = pfVar6;\n        *last_newf = pfVar6;\n        pcVar5 = ob->next_free;\n        avail_out = (int)pcVar7 - (int)pcVar5;\n        if (avail_out < 1) {\n          pcVar7 = (char *)dcgettext(0,"can\'t extend frag",5);\n                    /* WARNING: Subroutine does not return */\n          as_fatal(pcVar7);\n        }\n      }" { (if_statement "if (pcVar5 == ob->object_base) {\n          ob->field_0x28 = ob->field_0x28 | 2;\n        }" if (parenthesized_expression "(pcVar5 == ob->object_base)" ( (binary_expression "pcVar5 == ob->object_base" identifier == (field_expression "ob->object_base" identifier -> field_identifier)) )) (compound_statement "{\n          ob->field_0x28 = ob->field_0x28 | 2;\n        }" { (expression_statement "ob->field_0x28 = ob->field_0x28 | 2;" (assignment_expression "ob->field_0x28 = ob->field_0x28 | 2" (field_expression "ob->field_0x28" identifier -> field_identifier) = (binary_expression "ob->field_0x28 | 2" (field_expression "ob->field_0x28" identifier -> field_identifier) | number_literal)) ;) })) (expression_statement "pcVar5 = (char *)((uint)(pcVar5 + ob->alignment_mask) & ~ob->alignment_mask);" (assignment_expression "pcVar5 = (char *)((uint)(pcVar5 + ob->alignment_mask) & ~ob->alignment_mask)" identifier = (cast_expression "(char *)((uint)(pcVar5 + ob->alignment_mask) & ~ob->alignment_mask)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((uint)(pcVar5 + ob->alignment_mask) & ~ob->alignment_mask)" ( (binary_expression "(uint)(pcVar5 + ob->alignment_mask) & ~ob->alignment_mask" (call_expression "(uint)(pcVar5 + ob->alignment_mask)" (parenthesized_expression "(uint)" ( identifier )) (argument_list "(pcVar5 + ob->alignment_mask)" ( (binary_expression "pcVar5 + ob->alignment_mask" identifier + (field_expression "ob->alignment_mask" identifier -> field_identifier)) ))) & (unary_expression "~ob->alignment_mask" ~ (field_expression "ob->alignment_mask" identifier -> field_identifier))) )))) ;) (expression_statement "ob->next_free = pcVar5;" (assignment_expression "ob->next_free = pcVar5" (field_expression "ob->next_free" identifier -> field_identifier) = identifier) ;) (if_statement "if ((uint)((int)pcVar7 - (int)ob->chunk) < (uint)((int)pcVar5 - (int)ob->chunk)) {\n          ob->next_free = pcVar7;\n          pcVar5 = pcVar7;\n        }" if (parenthesized_expression "((uint)((int)pcVar7 - (int)ob->chunk) < (uint)((int)pcVar5 - (int)ob->chunk))" ( (binary_expression "(uint)((int)pcVar7 - (int)ob->chunk) < (uint)((int)pcVar5 - (int)ob->chunk)" (call_expression "(uint)((int)pcVar7 - (int)ob->chunk)" (parenthesized_expression "(uint)" ( identifier )) (argument_list "((int)pcVar7 - (int)ob->chunk)" ( (binary_expression "(int)pcVar7 - (int)ob->chunk" (cast_expression "(int)pcVar7" ( (type_descriptor "int" primitive_type) ) identifier) - (cast_expression "(int)ob->chunk" ( (type_descriptor "int" primitive_type) ) (field_expression "ob->chunk" identifier -> field_identifier))) ))) < (call_expression "(uint)((int)pcVar5 - (int)ob->chunk)" (parenthesized_expression "(uint)" ( identifier )) (argument_list "((int)pcVar5 - (int)ob->chunk)" ( (binary_expression "(int)pcVar5 - (int)ob->chunk" (cast_expression "(int)pcVar5" ( (type_descriptor "int" primitive_type) ) identifier) - (cast_expression "(int)ob->chunk" ( (type_descriptor "int" primitive_type) ) (field_expression "ob->chunk" identifier -> field_identifier))) )))) )) (compound_statement "{\n          ob->next_free = pcVar7;\n          pcVar5 = pcVar7;\n        }" { (expression_statement "ob->next_free = pcVar7;" (assignment_expression "ob->next_free = pcVar7" (field_expression "ob->next_free" identifier -> field_identifier) = identifier) ;) (expression_statement "pcVar5 = pcVar7;" (assignment_expression "pcVar5 = pcVar7" identifier = identifier) ;) })) (expression_statement "ob->object_base = pcVar5;" (assignment_expression "ob->object_base = pcVar5" (field_expression "ob->object_base" identifier -> field_identifier) = identifier) ;) (expression_statement "pfVar6 = frag_alloc(ob);" (assignment_expression "pfVar6 = frag_alloc(ob)" identifier = (call_expression "frag_alloc(ob)" identifier (argument_list "(ob)" ( identifier )))) ;) (expression_statement "pcVar7 = ob->chunk_limit;" (assignment_expression "pcVar7 = ob->chunk_limit" identifier = (field_expression "ob->chunk_limit" identifier -> field_identifier)) ;) (expression_statement "pfVar6->fr_type = rs_fill;" (assignment_expression "pfVar6->fr_type = rs_fill" (field_expression "pfVar6->fr_type" identifier -> field_identifier) = identifier) ;) (expression_statement "(*last_newf)->fr_next = pfVar6;" (assignment_expression "(*last_newf)->fr_next = pfVar6" (field_expression "(*last_newf)->fr_next" (parenthesized_expression "(*last_newf)" ( (pointer_expression "*last_newf" * identifier) )) -> field_identifier) = identifier) ;) (expression_statement "*last_newf = pfVar6;" (assignment_expression "*last_newf = pfVar6" (pointer_expression "*last_newf" * identifier) = identifier) ;) (expression_statement "pcVar5 = ob->next_free;" (assignment_expression "pcVar5 = ob->next_free" identifier = (field_expression "ob->next_free" identifier -> field_identifier)) ;) (expression_statement "avail_out = (int)pcVar7 - (int)pcVar5;" (assignment_expression "avail_out = (int)pcVar7 - (int)pcVar5" identifier = (binary_expression "(int)pcVar7 - (int)pcVar5" (cast_expression "(int)pcVar7" ( (type_descriptor "int" primitive_type) ) identifier) - (cast_expression "(int)pcVar5" ( (type_descriptor "int" primitive_type) ) identifier))) ;) (if_statement "if (avail_out < 1) {\n          pcVar7 = (char *)dcgettext(0,"can\'t extend frag",5);\n                    /* WARNING: Subroutine does not return */\n          as_fatal(pcVar7);\n        }" if (parenthesized_expression "(avail_out < 1)" ( (binary_expression "avail_out < 1" identifier < number_literal) )) (compound_statement "{\n          pcVar7 = (char *)dcgettext(0,"can\'t extend frag",5);\n                    /* WARNING: Subroutine does not return */\n          as_fatal(pcVar7);\n        }" { (expression_statement "pcVar7 = (char *)dcgettext(0,"can\'t extend frag",5);" (assignment_expression "pcVar7 = (char *)dcgettext(0,"can\'t extend frag",5)" identifier = (cast_expression "(char *)dcgettext(0,"can\'t extend frag",5)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (call_expression "dcgettext(0,"can\'t extend frag",5)" identifier (argument_list "(0,"can\'t extend frag",5)" ( number_literal , (string_literal ""can\'t extend frag"" " string_content escape_sequence string_content ") , number_literal ))))) ;) comment (expression_statement "as_fatal(pcVar7);" (call_expression "as_fatal(pcVar7)" identifier (argument_list "(pcVar7)" ( identifier ))) ;) })) })) (expression_statement "ob->next_free = pcVar5 + avail_out;" (assignment_expression "ob->next_free = pcVar5 + avail_out" (field_expression "ob->next_free" identifier -> field_identifier) = (binary_expression "pcVar5 + avail_out" identifier + identifier)) ;) (expression_statement "next_out = pcVar5;" (assignment_expression "next_out = pcVar5" identifier = identifier) ;) (expression_statement "uVar4 = compress_data(strm,local_30,&local_34,&next_out,&avail_out);" (assignment_expression "uVar4 = compress_data(strm,local_30,&local_34,&next_out,&avail_out)" identifier = (call_expression "compress_data(strm,local_30,&local_34,&next_out,&avail_out)" identifier (argument_list "(strm,local_30,&local_34,&next_out,&avail_out)" ( identifier , identifier , (pointer_expression "&local_34" & identifier) , (pointer_expression "&next_out" & identifier) , (pointer_expression "&avail_out" & identifier) )))) ;) (if_statement "if ((int)uVar4 < 0) {\n        return -1;\n      }" if (parenthesized_expression "((int)uVar4 < 0)" ( (binary_expression "(int)uVar4 < 0" (cast_expression "(int)uVar4" ( (type_descriptor "int" primitive_type) ) identifier) < number_literal) )) (compound_statement "{\n        return -1;\n      }" { (return_statement "return -1;" return number_literal ;) })) (expression_statement "poVar1 = &pfVar6->fr_fix;" (assignment_expression "poVar1 = &pfVar6->fr_fix" identifier = (pointer_expression "&pfVar6->fr_fix" & (field_expression "pfVar6->fr_fix" identifier -> field_identifier))) ;) (expression_statement "oVar3 = *poVar1;" (assignment_expression "oVar3 = *poVar1" identifier = (pointer_expression "*poVar1" * identifier)) ;) (expression_statement "*(uint *)poVar1 = (int)*poVar1 + uVar4;" (assignment_expression "*(uint *)poVar1 = (int)*poVar1 + uVar4" (pointer_expression "*(uint *)poVar1" * (cast_expression "(uint *)poVar1" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) = (binary_expression "(int)*poVar1 + uVar4" (cast_expression "(int)*poVar1" ( (type_descriptor "int" primitive_type) ) (pointer_expression "*poVar1" * identifier)) + identifier)) ;) (expression_statement "piVar2 = (int *)((int)&pfVar6->fr_fix + 4);" (assignment_expression "piVar2 = (int *)((int)&pfVar6->fr_fix + 4)" identifier = (cast_expression "(int *)((int)&pfVar6->fr_fix + 4)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)&pfVar6->fr_fix + 4)" ( (binary_expression "(int)&pfVar6->fr_fix + 4" (cast_expression "(int)&pfVar6->fr_fix" ( (type_descriptor "int" primitive_type) ) (pointer_expression "&pfVar6->fr_fix" & (field_expression "pfVar6->fr_fix" identifier -> field_identifier))) + number_literal) )))) ;) (expression_statement "*piVar2 = *piVar2 + ((int)uVar4 >> 0x1f) + (uint)CARRY4((uint)oVar3,uVar4);" (assignment_expression "*piVar2 = *piVar2 + ((int)uVar4 >> 0x1f) + (uint)CARRY4((uint)oVar3,uVar4)" (pointer_expression "*piVar2" * identifier) = (binary_expression "*piVar2 + ((int)uVar4 >> 0x1f) + (uint)CARRY4((uint)oVar3,uVar4)" (binary_expression "*piVar2 + ((int)uVar4 >> 0x1f)" (pointer_expression "*piVar2" * identifier) + (parenthesized_expression "((int)uVar4 >> 0x1f)" ( (binary_expression "(int)uVar4 >> 0x1f" (cast_expression "(int)uVar4" ( (type_descriptor "int" primitive_type) ) identifier) >> number_literal) ))) + (cast_expression "(uint)CARRY4((uint)oVar3,uVar4)" ( (type_descriptor "uint" type_identifier) ) (call_expression "CARRY4((uint)oVar3,uVar4)" identifier (argument_list "((uint)oVar3,uVar4)" ( (cast_expression "(uint)oVar3" ( (type_descriptor "uint" type_identifier) ) identifier) , identifier )))))) ;) (expression_statement "iVar8 = iVar8 + uVar4;" (assignment_expression "iVar8 = iVar8 + uVar4" identifier = (binary_expression "iVar8 + uVar4" identifier + identifier)) ;) (if_statement "if (avail_out < 1) break;" if (parenthesized_expression "(avail_out < 1)" ( (binary_expression "avail_out < 1" identifier < number_literal) )) (break_statement "break;" break ;)) (expression_statement "ob->next_free = ob->next_free + -avail_out;" (assignment_expression "ob->next_free = ob->next_free + -avail_out" (field_expression "ob->next_free" identifier -> field_identifier) = (binary_expression "ob->next_free + -avail_out" (field_expression "ob->next_free" identifier -> field_identifier) + (unary_expression "-avail_out" - identifier))) ;) (if_statement "if (local_34 < 1) {\n        return iVar8;\n      }" if (parenthesized_expression "(local_34 < 1)" ( (binary_expression "local_34 < 1" identifier < number_literal) )) (compound_statement "{\n        return iVar8;\n      }" { (return_statement "return iVar8;" return identifier ;) })) })) }) while (parenthesized_expression "( true )" ( true )) ;) })))
(translation_unit "int __regparm3\nFUN_0003f850(undefined4 param_1,undefined4 param_2,int param_3,int *param_4,int param_5)\n\n{\n  uint *puVar1;\n  int iVar2;\n  uint uVar3;\n  uint uVar4;\n  int iVar5;\n  undefined4 uVar6;\n  int iVar7;\n  int local_34;\n  undefined4 local_30 [3];\n  int local_24;\n  int local_20 [3];\n  undefined4 uStack_14;\n  \n  iVar7 = 0;\n  uStack_14 = 0x3f85b;\n  iVar5 = *param_4;\n  local_34 = param_3;\n  local_30[0] = param_2;\n  do {\n    if (local_34 < 1) {\n      return iVar7;\n    }\n    while( true ) {\n      uVar3 = *(uint *)(param_5 + 0x10);\n      iVar2 = *(int *)(param_5 + 0xc);\n      local_20[0] = uVar3 - iVar2;\n      if (local_20[0] < 1) {\n        if (iVar2 == *(int *)(param_5 + 8)) {\n          *(byte *)(param_5 + 0x28) = *(byte *)(param_5 + 0x28) | 2;\n        }\n        uVar4 = iVar2 + *(uint *)(param_5 + 0x18) & ~*(uint *)(param_5 + 0x18);\n        *(uint *)(param_5 + 0xc) = uVar4;\n        if (uVar3 - *(int *)(param_5 + 4) < uVar4 - *(int *)(param_5 + 4)) {\n          *(uint *)(param_5 + 0xc) = uVar3;\n          uVar4 = uVar3;\n        }\n        *(uint *)(param_5 + 8) = uVar4;\n        iVar5 = FUN_00027650(param_5);\n        local_20[0] = *(int *)(param_5 + 0x10);\n        *(undefined4 *)(iVar5 + 0x44) = 1;\n        *(int *)(*param_4 + 0x30) = iVar5;\n        *param_4 = iVar5;\n        iVar2 = *(int *)(param_5 + 0xc);\n        local_20[0] = local_20[0] - iVar2;\n        if (local_20[0] < 1) {\n          uVar6 = dcgettext(0,"can\'t extend frag",5);\n                    \n          FUN_0002ed30(uVar6);\n        }\n      }\n      *(int *)(param_5 + 0xc) = iVar2 + local_20[0];\n      local_24 = iVar2;\n      uVar3 = FUN_0001b550(param_1,local_30,&local_34,&local_24,local_20);\n      if ((int)uVar3 < 0) {\n        return -1;\n      }\n      puVar1 = (uint *)(iVar5 + 0x10);\n      uVar4 = *puVar1;\n      *puVar1 = *puVar1 + uVar3;\n      *(int *)(iVar5 + 0x14) =\n           *(int *)(iVar5 + 0x14) + ((int)uVar3 >> 0x1f) + (uint)CARRY4(uVar4,uVar3);\n      iVar7 = iVar7 + uVar3;\n      if (local_20[0] < 1) break;\n      *(int *)(param_5 + 0xc) = *(int *)(param_5 + 0xc) - local_20[0];\n      if (local_34 < 1) {\n        return iVar7;\n      }\n    }\n  } while( true );\n}\n\n" (function_definition "int __regparm3\nFUN_0003f850(undefined4 param_1,undefined4 param_2,int param_3,int *param_4,int param_5)\n\n{\n  uint *puVar1;\n  int iVar2;\n  uint uVar3;\n  uint uVar4;\n  int iVar5;\n  undefined4 uVar6;\n  int iVar7;\n  int local_34;\n  undefined4 local_30 [3];\n  int local_24;\n  int local_20 [3];\n  undefined4 uStack_14;\n  \n  iVar7 = 0;\n  uStack_14 = 0x3f85b;\n  iVar5 = *param_4;\n  local_34 = param_3;\n  local_30[0] = param_2;\n  do {\n    if (local_34 < 1) {\n      return iVar7;\n    }\n    while( true ) {\n      uVar3 = *(uint *)(param_5 + 0x10);\n      iVar2 = *(int *)(param_5 + 0xc);\n      local_20[0] = uVar3 - iVar2;\n      if (local_20[0] < 1) {\n        if (iVar2 == *(int *)(param_5 + 8)) {\n          *(byte *)(param_5 + 0x28) = *(byte *)(param_5 + 0x28) | 2;\n        }\n        uVar4 = iVar2 + *(uint *)(param_5 + 0x18) & ~*(uint *)(param_5 + 0x18);\n        *(uint *)(param_5 + 0xc) = uVar4;\n        if (uVar3 - *(int *)(param_5 + 4) < uVar4 - *(int *)(param_5 + 4)) {\n          *(uint *)(param_5 + 0xc) = uVar3;\n          uVar4 = uVar3;\n        }\n        *(uint *)(param_5 + 8) = uVar4;\n        iVar5 = FUN_00027650(param_5);\n        local_20[0] = *(int *)(param_5 + 0x10);\n        *(undefined4 *)(iVar5 + 0x44) = 1;\n        *(int *)(*param_4 + 0x30) = iVar5;\n        *param_4 = iVar5;\n        iVar2 = *(int *)(param_5 + 0xc);\n        local_20[0] = local_20[0] - iVar2;\n        if (local_20[0] < 1) {\n          uVar6 = dcgettext(0,"can\'t extend frag",5);\n                    \n          FUN_0002ed30(uVar6);\n        }\n      }\n      *(int *)(param_5 + 0xc) = iVar2 + local_20[0];\n      local_24 = iVar2;\n      uVar3 = FUN_0001b550(param_1,local_30,&local_34,&local_24,local_20);\n      if ((int)uVar3 < 0) {\n        return -1;\n      }\n      puVar1 = (uint *)(iVar5 + 0x10);\n      uVar4 = *puVar1;\n      *puVar1 = *puVar1 + uVar3;\n      *(int *)(iVar5 + 0x14) =\n           *(int *)(iVar5 + 0x14) + ((int)uVar3 >> 0x1f) + (uint)CARRY4(uVar4,uVar3);\n      iVar7 = iVar7 + uVar3;\n      if (local_20[0] < 1) break;\n      *(int *)(param_5 + 0xc) = *(int *)(param_5 + 0xc) - local_20[0];\n      if (local_34 < 1) {\n        return iVar7;\n      }\n    }\n  } while( true );\n}" primitive_type (ERROR "__regparm3" identifier) (function_declarator "FUN_0003f850(undefined4 param_1,undefined4 param_2,int param_3,int *param_4,int param_5)" identifier (parameter_list "(undefined4 param_1,undefined4 param_2,int param_3,int *param_4,int param_5)" ( (parameter_declaration "undefined4 param_1" type_identifier identifier) , (parameter_declaration "undefined4 param_2" type_identifier identifier) , (parameter_declaration "int param_3" primitive_type identifier) , (parameter_declaration "int *param_4" primitive_type (pointer_declarator "*param_4" * identifier)) , (parameter_declaration "int param_5" primitive_type identifier) ))) (compound_statement "{\n  uint *puVar1;\n  int iVar2;\n  uint uVar3;\n  uint uVar4;\n  int iVar5;\n  undefined4 uVar6;\n  int iVar7;\n  int local_34;\n  undefined4 local_30 [3];\n  int local_24;\n  int local_20 [3];\n  undefined4 uStack_14;\n  \n  iVar7 = 0;\n  uStack_14 = 0x3f85b;\n  iVar5 = *param_4;\n  local_34 = param_3;\n  local_30[0] = param_2;\n  do {\n    if (local_34 < 1) {\n      return iVar7;\n    }\n    while( true ) {\n      uVar3 = *(uint *)(param_5 + 0x10);\n      iVar2 = *(int *)(param_5 + 0xc);\n      local_20[0] = uVar3 - iVar2;\n      if (local_20[0] < 1) {\n        if (iVar2 == *(int *)(param_5 + 8)) {\n          *(byte *)(param_5 + 0x28) = *(byte *)(param_5 + 0x28) | 2;\n        }\n        uVar4 = iVar2 + *(uint *)(param_5 + 0x18) & ~*(uint *)(param_5 + 0x18);\n        *(uint *)(param_5 + 0xc) = uVar4;\n        if (uVar3 - *(int *)(param_5 + 4) < uVar4 - *(int *)(param_5 + 4)) {\n          *(uint *)(param_5 + 0xc) = uVar3;\n          uVar4 = uVar3;\n        }\n        *(uint *)(param_5 + 8) = uVar4;\n        iVar5 = FUN_00027650(param_5);\n        local_20[0] = *(int *)(param_5 + 0x10);\n        *(undefined4 *)(iVar5 + 0x44) = 1;\n        *(int *)(*param_4 + 0x30) = iVar5;\n        *param_4 = iVar5;\n        iVar2 = *(int *)(param_5 + 0xc);\n        local_20[0] = local_20[0] - iVar2;\n        if (local_20[0] < 1) {\n          uVar6 = dcgettext(0,"can\'t extend frag",5);\n                    \n          FUN_0002ed30(uVar6);\n        }\n      }\n      *(int *)(param_5 + 0xc) = iVar2 + local_20[0];\n      local_24 = iVar2;\n      uVar3 = FUN_0001b550(param_1,local_30,&local_34,&local_24,local_20);\n      if ((int)uVar3 < 0) {\n        return -1;\n      }\n      puVar1 = (uint *)(iVar5 + 0x10);\n      uVar4 = *puVar1;\n      *puVar1 = *puVar1 + uVar3;\n      *(int *)(iVar5 + 0x14) =\n           *(int *)(iVar5 + 0x14) + ((int)uVar3 >> 0x1f) + (uint)CARRY4(uVar4,uVar3);\n      iVar7 = iVar7 + uVar3;\n      if (local_20[0] < 1) break;\n      *(int *)(param_5 + 0xc) = *(int *)(param_5 + 0xc) - local_20[0];\n      if (local_34 < 1) {\n        return iVar7;\n      }\n    }\n  } while( true );\n}" { (declaration "uint *puVar1;" type_identifier (pointer_declarator "*puVar1" * identifier) ;) (declaration "int iVar2;" primitive_type identifier ;) (declaration "uint uVar3;" type_identifier identifier ;) (declaration "uint uVar4;" type_identifier identifier ;) (declaration "int iVar5;" primitive_type identifier ;) (declaration "undefined4 uVar6;" type_identifier identifier ;) (declaration "int iVar7;" primitive_type identifier ;) (declaration "int local_34;" primitive_type identifier ;) (declaration "undefined4 local_30 [3];" type_identifier (array_declarator "local_30 [3]" identifier [ number_literal ]) ;) (declaration "int local_24;" primitive_type identifier ;) (declaration "int local_20 [3];" primitive_type (array_declarator "local_20 [3]" identifier [ number_literal ]) ;) (declaration "undefined4 uStack_14;" type_identifier identifier ;) (expression_statement "iVar7 = 0;" (assignment_expression "iVar7 = 0" identifier = number_literal) ;) (expression_statement "uStack_14 = 0x3f85b;" (assignment_expression "uStack_14 = 0x3f85b" identifier = number_literal) ;) (expression_statement "iVar5 = *param_4;" (assignment_expression "iVar5 = *param_4" identifier = (pointer_expression "*param_4" * identifier)) ;) (expression_statement "local_34 = param_3;" (assignment_expression "local_34 = param_3" identifier = identifier) ;) (expression_statement "local_30[0] = param_2;" (assignment_expression "local_30[0] = param_2" (subscript_expression "local_30[0]" identifier [ number_literal ]) = identifier) ;) (do_statement "do {\n    if (local_34 < 1) {\n      return iVar7;\n    }\n    while( true ) {\n      uVar3 = *(uint *)(param_5 + 0x10);\n      iVar2 = *(int *)(param_5 + 0xc);\n      local_20[0] = uVar3 - iVar2;\n      if (local_20[0] < 1) {\n        if (iVar2 == *(int *)(param_5 + 8)) {\n          *(byte *)(param_5 + 0x28) = *(byte *)(param_5 + 0x28) | 2;\n        }\n        uVar4 = iVar2 + *(uint *)(param_5 + 0x18) & ~*(uint *)(param_5 + 0x18);\n        *(uint *)(param_5 + 0xc) = uVar4;\n        if (uVar3 - *(int *)(param_5 + 4) < uVar4 - *(int *)(param_5 + 4)) {\n          *(uint *)(param_5 + 0xc) = uVar3;\n          uVar4 = uVar3;\n        }\n        *(uint *)(param_5 + 8) = uVar4;\n        iVar5 = FUN_00027650(param_5);\n        local_20[0] = *(int *)(param_5 + 0x10);\n        *(undefined4 *)(iVar5 + 0x44) = 1;\n        *(int *)(*param_4 + 0x30) = iVar5;\n        *param_4 = iVar5;\n        iVar2 = *(int *)(param_5 + 0xc);\n        local_20[0] = local_20[0] - iVar2;\n        if (local_20[0] < 1) {\n          uVar6 = dcgettext(0,"can\'t extend frag",5);\n                    \n          FUN_0002ed30(uVar6);\n        }\n      }\n      *(int *)(param_5 + 0xc) = iVar2 + local_20[0];\n      local_24 = iVar2;\n      uVar3 = FUN_0001b550(param_1,local_30,&local_34,&local_24,local_20);\n      if ((int)uVar3 < 0) {\n        return -1;\n      }\n      puVar1 = (uint *)(iVar5 + 0x10);\n      uVar4 = *puVar1;\n      *puVar1 = *puVar1 + uVar3;\n      *(int *)(iVar5 + 0x14) =\n           *(int *)(iVar5 + 0x14) + ((int)uVar3 >> 0x1f) + (uint)CARRY4(uVar4,uVar3);\n      iVar7 = iVar7 + uVar3;\n      if (local_20[0] < 1) break;\n      *(int *)(param_5 + 0xc) = *(int *)(param_5 + 0xc) - local_20[0];\n      if (local_34 < 1) {\n        return iVar7;\n      }\n    }\n  } while( true );" do (compound_statement "{\n    if (local_34 < 1) {\n      return iVar7;\n    }\n    while( true ) {\n      uVar3 = *(uint *)(param_5 + 0x10);\n      iVar2 = *(int *)(param_5 + 0xc);\n      local_20[0] = uVar3 - iVar2;\n      if (local_20[0] < 1) {\n        if (iVar2 == *(int *)(param_5 + 8)) {\n          *(byte *)(param_5 + 0x28) = *(byte *)(param_5 + 0x28) | 2;\n        }\n        uVar4 = iVar2 + *(uint *)(param_5 + 0x18) & ~*(uint *)(param_5 + 0x18);\n        *(uint *)(param_5 + 0xc) = uVar4;\n        if (uVar3 - *(int *)(param_5 + 4) < uVar4 - *(int *)(param_5 + 4)) {\n          *(uint *)(param_5 + 0xc) = uVar3;\n          uVar4 = uVar3;\n        }\n        *(uint *)(param_5 + 8) = uVar4;\n        iVar5 = FUN_00027650(param_5);\n        local_20[0] = *(int *)(param_5 + 0x10);\n        *(undefined4 *)(iVar5 + 0x44) = 1;\n        *(int *)(*param_4 + 0x30) = iVar5;\n        *param_4 = iVar5;\n        iVar2 = *(int *)(param_5 + 0xc);\n        local_20[0] = local_20[0] - iVar2;\n        if (local_20[0] < 1) {\n          uVar6 = dcgettext(0,"can\'t extend frag",5);\n                    \n          FUN_0002ed30(uVar6);\n        }\n      }\n      *(int *)(param_5 + 0xc) = iVar2 + local_20[0];\n      local_24 = iVar2;\n      uVar3 = FUN_0001b550(param_1,local_30,&local_34,&local_24,local_20);\n      if ((int)uVar3 < 0) {\n        return -1;\n      }\n      puVar1 = (uint *)(iVar5 + 0x10);\n      uVar4 = *puVar1;\n      *puVar1 = *puVar1 + uVar3;\n      *(int *)(iVar5 + 0x14) =\n           *(int *)(iVar5 + 0x14) + ((int)uVar3 >> 0x1f) + (uint)CARRY4(uVar4,uVar3);\n      iVar7 = iVar7 + uVar3;\n      if (local_20[0] < 1) break;\n      *(int *)(param_5 + 0xc) = *(int *)(param_5 + 0xc) - local_20[0];\n      if (local_34 < 1) {\n        return iVar7;\n      }\n    }\n  }" { (if_statement "if (local_34 < 1) {\n      return iVar7;\n    }" if (parenthesized_expression "(local_34 < 1)" ( (binary_expression "local_34 < 1" identifier < number_literal) )) (compound_statement "{\n      return iVar7;\n    }" { (return_statement "return iVar7;" return identifier ;) })) (while_statement "while( true ) {\n      uVar3 = *(uint *)(param_5 + 0x10);\n      iVar2 = *(int *)(param_5 + 0xc);\n      local_20[0] = uVar3 - iVar2;\n      if (local_20[0] < 1) {\n        if (iVar2 == *(int *)(param_5 + 8)) {\n          *(byte *)(param_5 + 0x28) = *(byte *)(param_5 + 0x28) | 2;\n        }\n        uVar4 = iVar2 + *(uint *)(param_5 + 0x18) & ~*(uint *)(param_5 + 0x18);\n        *(uint *)(param_5 + 0xc) = uVar4;\n        if (uVar3 - *(int *)(param_5 + 4) < uVar4 - *(int *)(param_5 + 4)) {\n          *(uint *)(param_5 + 0xc) = uVar3;\n          uVar4 = uVar3;\n        }\n        *(uint *)(param_5 + 8) = uVar4;\n        iVar5 = FUN_00027650(param_5);\n        local_20[0] = *(int *)(param_5 + 0x10);\n        *(undefined4 *)(iVar5 + 0x44) = 1;\n        *(int *)(*param_4 + 0x30) = iVar5;\n        *param_4 = iVar5;\n        iVar2 = *(int *)(param_5 + 0xc);\n        local_20[0] = local_20[0] - iVar2;\n        if (local_20[0] < 1) {\n          uVar6 = dcgettext(0,"can\'t extend frag",5);\n                    \n          FUN_0002ed30(uVar6);\n        }\n      }\n      *(int *)(param_5 + 0xc) = iVar2 + local_20[0];\n      local_24 = iVar2;\n      uVar3 = FUN_0001b550(param_1,local_30,&local_34,&local_24,local_20);\n      if ((int)uVar3 < 0) {\n        return -1;\n      }\n      puVar1 = (uint *)(iVar5 + 0x10);\n      uVar4 = *puVar1;\n      *puVar1 = *puVar1 + uVar3;\n      *(int *)(iVar5 + 0x14) =\n           *(int *)(iVar5 + 0x14) + ((int)uVar3 >> 0x1f) + (uint)CARRY4(uVar4,uVar3);\n      iVar7 = iVar7 + uVar3;\n      if (local_20[0] < 1) break;\n      *(int *)(param_5 + 0xc) = *(int *)(param_5 + 0xc) - local_20[0];\n      if (local_34 < 1) {\n        return iVar7;\n      }\n    }" while (parenthesized_expression "( true )" ( true )) (compound_statement "{\n      uVar3 = *(uint *)(param_5 + 0x10);\n      iVar2 = *(int *)(param_5 + 0xc);\n      local_20[0] = uVar3 - iVar2;\n      if (local_20[0] < 1) {\n        if (iVar2 == *(int *)(param_5 + 8)) {\n          *(byte *)(param_5 + 0x28) = *(byte *)(param_5 + 0x28) | 2;\n        }\n        uVar4 = iVar2 + *(uint *)(param_5 + 0x18) & ~*(uint *)(param_5 + 0x18);\n        *(uint *)(param_5 + 0xc) = uVar4;\n        if (uVar3 - *(int *)(param_5 + 4) < uVar4 - *(int *)(param_5 + 4)) {\n          *(uint *)(param_5 + 0xc) = uVar3;\n          uVar4 = uVar3;\n        }\n        *(uint *)(param_5 + 8) = uVar4;\n        iVar5 = FUN_00027650(param_5);\n        local_20[0] = *(int *)(param_5 + 0x10);\n        *(undefined4 *)(iVar5 + 0x44) = 1;\n        *(int *)(*param_4 + 0x30) = iVar5;\n        *param_4 = iVar5;\n        iVar2 = *(int *)(param_5 + 0xc);\n        local_20[0] = local_20[0] - iVar2;\n        if (local_20[0] < 1) {\n          uVar6 = dcgettext(0,"can\'t extend frag",5);\n                    \n          FUN_0002ed30(uVar6);\n        }\n      }\n      *(int *)(param_5 + 0xc) = iVar2 + local_20[0];\n      local_24 = iVar2;\n      uVar3 = FUN_0001b550(param_1,local_30,&local_34,&local_24,local_20);\n      if ((int)uVar3 < 0) {\n        return -1;\n      }\n      puVar1 = (uint *)(iVar5 + 0x10);\n      uVar4 = *puVar1;\n      *puVar1 = *puVar1 + uVar3;\n      *(int *)(iVar5 + 0x14) =\n           *(int *)(iVar5 + 0x14) + ((int)uVar3 >> 0x1f) + (uint)CARRY4(uVar4,uVar3);\n      iVar7 = iVar7 + uVar3;\n      if (local_20[0] < 1) break;\n      *(int *)(param_5 + 0xc) = *(int *)(param_5 + 0xc) - local_20[0];\n      if (local_34 < 1) {\n        return iVar7;\n      }\n    }" { (expression_statement "uVar3 = *(uint *)(param_5 + 0x10);" (assignment_expression "uVar3 = *(uint *)(param_5 + 0x10)" identifier = (pointer_expression "*(uint *)(param_5 + 0x10)" * (cast_expression "(uint *)(param_5 + 0x10)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_5 + 0x10)" ( (binary_expression "param_5 + 0x10" identifier + number_literal) ))))) ;) (expression_statement "iVar2 = *(int *)(param_5 + 0xc);" (assignment_expression "iVar2 = *(int *)(param_5 + 0xc)" identifier = (pointer_expression "*(int *)(param_5 + 0xc)" * (cast_expression "(int *)(param_5 + 0xc)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_5 + 0xc)" ( (binary_expression "param_5 + 0xc" identifier + number_literal) ))))) ;) (expression_statement "local_20[0] = uVar3 - iVar2;" (assignment_expression "local_20[0] = uVar3 - iVar2" (subscript_expression "local_20[0]" identifier [ number_literal ]) = (binary_expression "uVar3 - iVar2" identifier - identifier)) ;) (if_statement "if (local_20[0] < 1) {\n        if (iVar2 == *(int *)(param_5 + 8)) {\n          *(byte *)(param_5 + 0x28) = *(byte *)(param_5 + 0x28) | 2;\n        }\n        uVar4 = iVar2 + *(uint *)(param_5 + 0x18) & ~*(uint *)(param_5 + 0x18);\n        *(uint *)(param_5 + 0xc) = uVar4;\n        if (uVar3 - *(int *)(param_5 + 4) < uVar4 - *(int *)(param_5 + 4)) {\n          *(uint *)(param_5 + 0xc) = uVar3;\n          uVar4 = uVar3;\n        }\n        *(uint *)(param_5 + 8) = uVar4;\n        iVar5 = FUN_00027650(param_5);\n        local_20[0] = *(int *)(param_5 + 0x10);\n        *(undefined4 *)(iVar5 + 0x44) = 1;\n        *(int *)(*param_4 + 0x30) = iVar5;\n        *param_4 = iVar5;\n        iVar2 = *(int *)(param_5 + 0xc);\n        local_20[0] = local_20[0] - iVar2;\n        if (local_20[0] < 1) {\n          uVar6 = dcgettext(0,"can\'t extend frag",5);\n                    \n          FUN_0002ed30(uVar6);\n        }\n      }" if (parenthesized_expression "(local_20[0] < 1)" ( (binary_expression "local_20[0] < 1" (subscript_expression "local_20[0]" identifier [ number_literal ]) < number_literal) )) (compound_statement "{\n        if (iVar2 == *(int *)(param_5 + 8)) {\n          *(byte *)(param_5 + 0x28) = *(byte *)(param_5 + 0x28) | 2;\n        }\n        uVar4 = iVar2 + *(uint *)(param_5 + 0x18) & ~*(uint *)(param_5 + 0x18);\n        *(uint *)(param_5 + 0xc) = uVar4;\n        if (uVar3 - *(int *)(param_5 + 4) < uVar4 - *(int *)(param_5 + 4)) {\n          *(uint *)(param_5 + 0xc) = uVar3;\n          uVar4 = uVar3;\n        }\n        *(uint *)(param_5 + 8) = uVar4;\n        iVar5 = FUN_00027650(param_5);\n        local_20[0] = *(int *)(param_5 + 0x10);\n        *(undefined4 *)(iVar5 + 0x44) = 1;\n        *(int *)(*param_4 + 0x30) = iVar5;\n        *param_4 = iVar5;\n        iVar2 = *(int *)(param_5 + 0xc);\n        local_20[0] = local_20[0] - iVar2;\n        if (local_20[0] < 1) {\n          uVar6 = dcgettext(0,"can\'t extend frag",5);\n                    \n          FUN_0002ed30(uVar6);\n        }\n      }" { (if_statement "if (iVar2 == *(int *)(param_5 + 8)) {\n          *(byte *)(param_5 + 0x28) = *(byte *)(param_5 + 0x28) | 2;\n        }" if (parenthesized_expression "(iVar2 == *(int *)(param_5 + 8))" ( (binary_expression "iVar2 == *(int *)(param_5 + 8)" identifier == (pointer_expression "*(int *)(param_5 + 8)" * (cast_expression "(int *)(param_5 + 8)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_5 + 8)" ( (binary_expression "param_5 + 8" identifier + number_literal) ))))) )) (compound_statement "{\n          *(byte *)(param_5 + 0x28) = *(byte *)(param_5 + 0x28) | 2;\n        }" { (expression_statement "*(byte *)(param_5 + 0x28) = *(byte *)(param_5 + 0x28) | 2;" (assignment_expression "*(byte *)(param_5 + 0x28) = *(byte *)(param_5 + 0x28) | 2" (pointer_expression "*(byte *)(param_5 + 0x28)" * (cast_expression "(byte *)(param_5 + 0x28)" ( (type_descriptor "byte *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_5 + 0x28)" ( (binary_expression "param_5 + 0x28" identifier + number_literal) )))) = (binary_expression "*(byte *)(param_5 + 0x28) | 2" (pointer_expression "*(byte *)(param_5 + 0x28)" * (cast_expression "(byte *)(param_5 + 0x28)" ( (type_descriptor "byte *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_5 + 0x28)" ( (binary_expression "param_5 + 0x28" identifier + number_literal) )))) | number_literal)) ;) })) (expression_statement "uVar4 = iVar2 + *(uint *)(param_5 + 0x18) & ~*(uint *)(param_5 + 0x18);" (assignment_expression "uVar4 = iVar2 + *(uint *)(param_5 + 0x18) & ~*(uint *)(param_5 + 0x18)" identifier = (binary_expression "iVar2 + *(uint *)(param_5 + 0x18) & ~*(uint *)(param_5 + 0x18)" (binary_expression "iVar2 + *(uint *)(param_5 + 0x18)" identifier + (pointer_expression "*(uint *)(param_5 + 0x18)" * (cast_expression "(uint *)(param_5 + 0x18)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_5 + 0x18)" ( (binary_expression "param_5 + 0x18" identifier + number_literal) ))))) & (unary_expression "~*(uint *)(param_5 + 0x18)" ~ (pointer_expression "*(uint *)(param_5 + 0x18)" * (cast_expression "(uint *)(param_5 + 0x18)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_5 + 0x18)" ( (binary_expression "param_5 + 0x18" identifier + number_literal) ))))))) ;) (expression_statement "*(uint *)(param_5 + 0xc) = uVar4;" (assignment_expression "*(uint *)(param_5 + 0xc) = uVar4" (pointer_expression "*(uint *)(param_5 + 0xc)" * (cast_expression "(uint *)(param_5 + 0xc)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_5 + 0xc)" ( (binary_expression "param_5 + 0xc" identifier + number_literal) )))) = identifier) ;) (if_statement "if (uVar3 - *(int *)(param_5 + 4) < uVar4 - *(int *)(param_5 + 4)) {\n          *(uint *)(param_5 + 0xc) = uVar3;\n          uVar4 = uVar3;\n        }" if (parenthesized_expression "(uVar3 - *(int *)(param_5 + 4) < uVar4 - *(int *)(param_5 + 4))" ( (binary_expression "uVar3 - *(int *)(param_5 + 4) < uVar4 - *(int *)(param_5 + 4)" (binary_expression "uVar3 - *(int *)(param_5 + 4)" identifier - (pointer_expression "*(int *)(param_5 + 4)" * (cast_expression "(int *)(param_5 + 4)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_5 + 4)" ( (binary_expression "param_5 + 4" identifier + number_literal) ))))) < (binary_expression "uVar4 - *(int *)(param_5 + 4)" identifier - (pointer_expression "*(int *)(param_5 + 4)" * (cast_expression "(int *)(param_5 + 4)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_5 + 4)" ( (binary_expression "param_5 + 4" identifier + number_literal) )))))) )) (compound_statement "{\n          *(uint *)(param_5 + 0xc) = uVar3;\n          uVar4 = uVar3;\n        }" { (expression_statement "*(uint *)(param_5 + 0xc) = uVar3;" (assignment_expression "*(uint *)(param_5 + 0xc) = uVar3" (pointer_expression "*(uint *)(param_5 + 0xc)" * (cast_expression "(uint *)(param_5 + 0xc)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_5 + 0xc)" ( (binary_expression "param_5 + 0xc" identifier + number_literal) )))) = identifier) ;) (expression_statement "uVar4 = uVar3;" (assignment_expression "uVar4 = uVar3" identifier = identifier) ;) })) (expression_statement "*(uint *)(param_5 + 8) = uVar4;" (assignment_expression "*(uint *)(param_5 + 8) = uVar4" (pointer_expression "*(uint *)(param_5 + 8)" * (cast_expression "(uint *)(param_5 + 8)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_5 + 8)" ( (binary_expression "param_5 + 8" identifier + number_literal) )))) = identifier) ;) (expression_statement "iVar5 = FUN_00027650(param_5);" (assignment_expression "iVar5 = FUN_00027650(param_5)" identifier = (call_expression "FUN_00027650(param_5)" identifier (argument_list "(param_5)" ( identifier )))) ;) (expression_statement "local_20[0] = *(int *)(param_5 + 0x10);" (assignment_expression "local_20[0] = *(int *)(param_5 + 0x10)" (subscript_expression "local_20[0]" identifier [ number_literal ]) = (pointer_expression "*(int *)(param_5 + 0x10)" * (cast_expression "(int *)(param_5 + 0x10)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_5 + 0x10)" ( (binary_expression "param_5 + 0x10" identifier + number_literal) ))))) ;) (expression_statement "*(undefined4 *)(iVar5 + 0x44) = 1;" (assignment_expression "*(undefined4 *)(iVar5 + 0x44) = 1" (pointer_expression "*(undefined4 *)(iVar5 + 0x44)" * (cast_expression "(undefined4 *)(iVar5 + 0x44)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar5 + 0x44)" ( (binary_expression "iVar5 + 0x44" identifier + number_literal) )))) = number_literal) ;) (expression_statement "*(int *)(*param_4 + 0x30) = iVar5;" (assignment_expression "*(int *)(*param_4 + 0x30) = iVar5" (pointer_expression "*(int *)(*param_4 + 0x30)" * (cast_expression "(int *)(*param_4 + 0x30)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(*param_4 + 0x30)" ( (binary_expression "*param_4 + 0x30" (pointer_expression "*param_4" * identifier) + number_literal) )))) = identifier) ;) (expression_statement "*param_4 = iVar5;" (assignment_expression "*param_4 = iVar5" (pointer_expression "*param_4" * identifier) = identifier) ;) (expression_statement "iVar2 = *(int *)(param_5 + 0xc);" (assignment_expression "iVar2 = *(int *)(param_5 + 0xc)" identifier = (pointer_expression "*(int *)(param_5 + 0xc)" * (cast_expression "(int *)(param_5 + 0xc)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_5 + 0xc)" ( (binary_expression "param_5 + 0xc" identifier + number_literal) ))))) ;) (expression_statement "local_20[0] = local_20[0] - iVar2;" (assignment_expression "local_20[0] = local_20[0] - iVar2" (subscript_expression "local_20[0]" identifier [ number_literal ]) = (binary_expression "local_20[0] - iVar2" (subscript_expression "local_20[0]" identifier [ number_literal ]) - identifier)) ;) (if_statement "if (local_20[0] < 1) {\n          uVar6 = dcgettext(0,"can\'t extend frag",5);\n                    \n          FUN_0002ed30(uVar6);\n        }" if (parenthesized_expression "(local_20[0] < 1)" ( (binary_expression "local_20[0] < 1" (subscript_expression "local_20[0]" identifier [ number_literal ]) < number_literal) )) (compound_statement "{\n          uVar6 = dcgettext(0,"can\'t extend frag",5);\n                    \n          FUN_0002ed30(uVar6);\n        }" { (expression_statement "uVar6 = dcgettext(0,"can\'t extend frag",5);" (assignment_expression "uVar6 = dcgettext(0,"can\'t extend frag",5)" identifier = (call_expression "dcgettext(0,"can\'t extend frag",5)" identifier (argument_list "(0,"can\'t extend frag",5)" ( number_literal , (string_literal ""can\'t extend frag"" " string_content escape_sequence string_content ") , number_literal )))) ;) (expression_statement "FUN_0002ed30(uVar6);" (call_expression "FUN_0002ed30(uVar6)" identifier (argument_list "(uVar6)" ( identifier ))) ;) })) })) (expression_statement "*(int *)(param_5 + 0xc) = iVar2 + local_20[0];" (assignment_expression "*(int *)(param_5 + 0xc) = iVar2 + local_20[0]" (pointer_expression "*(int *)(param_5 + 0xc)" * (cast_expression "(int *)(param_5 + 0xc)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_5 + 0xc)" ( (binary_expression "param_5 + 0xc" identifier + number_literal) )))) = (binary_expression "iVar2 + local_20[0]" identifier + (subscript_expression "local_20[0]" identifier [ number_literal ]))) ;) (expression_statement "local_24 = iVar2;" (assignment_expression "local_24 = iVar2" identifier = identifier) ;) (expression_statement "uVar3 = FUN_0001b550(param_1,local_30,&local_34,&local_24,local_20);" (assignment_expression "uVar3 = FUN_0001b550(param_1,local_30,&local_34,&local_24,local_20)" identifier = (call_expression "FUN_0001b550(param_1,local_30,&local_34,&local_24,local_20)" identifier (argument_list "(param_1,local_30,&local_34,&local_24,local_20)" ( identifier , identifier , (pointer_expression "&local_34" & identifier) , (pointer_expression "&local_24" & identifier) , identifier )))) ;) (if_statement "if ((int)uVar3 < 0) {\n        return -1;\n      }" if (parenthesized_expression "((int)uVar3 < 0)" ( (binary_expression "(int)uVar3 < 0" (cast_expression "(int)uVar3" ( (type_descriptor "int" primitive_type) ) identifier) < number_literal) )) (compound_statement "{\n        return -1;\n      }" { (return_statement "return -1;" return number_literal ;) })) (expression_statement "puVar1 = (uint *)(iVar5 + 0x10);" (assignment_expression "puVar1 = (uint *)(iVar5 + 0x10)" identifier = (cast_expression "(uint *)(iVar5 + 0x10)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar5 + 0x10)" ( (binary_expression "iVar5 + 0x10" identifier + number_literal) )))) ;) (expression_statement "uVar4 = *puVar1;" (assignment_expression "uVar4 = *puVar1" identifier = (pointer_expression "*puVar1" * identifier)) ;) (expression_statement "*puVar1 = *puVar1 + uVar3;" (assignment_expression "*puVar1 = *puVar1 + uVar3" (pointer_expression "*puVar1" * identifier) = (binary_expression "*puVar1 + uVar3" (pointer_expression "*puVar1" * identifier) + identifier)) ;) (expression_statement "*(int *)(iVar5 + 0x14) =\n           *(int *)(iVar5 + 0x14) + ((int)uVar3 >> 0x1f) + (uint)CARRY4(uVar4,uVar3);" (assignment_expression "*(int *)(iVar5 + 0x14) =\n           *(int *)(iVar5 + 0x14) + ((int)uVar3 >> 0x1f) + (uint)CARRY4(uVar4,uVar3)" (pointer_expression "*(int *)(iVar5 + 0x14)" * (cast_expression "(int *)(iVar5 + 0x14)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar5 + 0x14)" ( (binary_expression "iVar5 + 0x14" identifier + number_literal) )))) = (binary_expression "*(int *)(iVar5 + 0x14) + ((int)uVar3 >> 0x1f) + (uint)CARRY4(uVar4,uVar3)" (binary_expression "*(int *)(iVar5 + 0x14) + ((int)uVar3 >> 0x1f)" (pointer_expression "*(int *)(iVar5 + 0x14)" * (cast_expression "(int *)(iVar5 + 0x14)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar5 + 0x14)" ( (binary_expression "iVar5 + 0x14" identifier + number_literal) )))) + (parenthesized_expression "((int)uVar3 >> 0x1f)" ( (binary_expression "(int)uVar3 >> 0x1f" (cast_expression "(int)uVar3" ( (type_descriptor "int" primitive_type) ) identifier) >> number_literal) ))) + (cast_expression "(uint)CARRY4(uVar4,uVar3)" ( (type_descriptor "uint" type_identifier) ) (call_expression "CARRY4(uVar4,uVar3)" identifier (argument_list "(uVar4,uVar3)" ( identifier , identifier )))))) ;) (expression_statement "iVar7 = iVar7 + uVar3;" (assignment_expression "iVar7 = iVar7 + uVar3" identifier = (binary_expression "iVar7 + uVar3" identifier + identifier)) ;) (if_statement "if (local_20[0] < 1) break;" if (parenthesized_expression "(local_20[0] < 1)" ( (binary_expression "local_20[0] < 1" (subscript_expression "local_20[0]" identifier [ number_literal ]) < number_literal) )) (break_statement "break;" break ;)) (expression_statement "*(int *)(param_5 + 0xc) = *(int *)(param_5 + 0xc) - local_20[0];" (assignment_expression "*(int *)(param_5 + 0xc) = *(int *)(param_5 + 0xc) - local_20[0]" (pointer_expression "*(int *)(param_5 + 0xc)" * (cast_expression "(int *)(param_5 + 0xc)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_5 + 0xc)" ( (binary_expression "param_5 + 0xc" identifier + number_literal) )))) = (binary_expression "*(int *)(param_5 + 0xc) - local_20[0]" (pointer_expression "*(int *)(param_5 + 0xc)" * (cast_expression "(int *)(param_5 + 0xc)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_5 + 0xc)" ( (binary_expression "param_5 + 0xc" identifier + number_literal) )))) - (subscript_expression "local_20[0]" identifier [ number_literal ]))) ;) (if_statement "if (local_34 < 1) {\n        return iVar7;\n      }" if (parenthesized_expression "(local_34 < 1)" ( (binary_expression "local_34 < 1" identifier < number_literal) )) (compound_statement "{\n        return iVar7;\n      }" { (return_statement "return iVar7;" return identifier ;) })) })) }) while (parenthesized_expression "( true )" ( true )) ;) })))
(translation_unit (function_definition TYPE (ERROR IDENT) (function_declarator IDENT (parameter_list ( (parameter_declaration TYPE IDENT) , (parameter_declaration TYPE IDENT) , (parameter_declaration TYPE IDENT) , (parameter_declaration TYPE (pointer_declarator * IDENT)) , (parameter_declaration TYPE IDENT) ))) (compound_statement { (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE (array_declarator IDENT [ LIT ]) ;) (declaration TYPE IDENT ;) (declaration TYPE (array_declarator IDENT [ LIT ]) ;) (declaration TYPE IDENT ;) (expression_statement (assignment_expression IDENT = LIT) ;) (expression_statement (assignment_expression IDENT = LIT) ;) (expression_statement (assignment_expression IDENT = (pointer_expression * IDENT)) ;) (expression_statement (assignment_expression IDENT = IDENT) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = IDENT) ;) (do_statement do (compound_statement { (if_statement if (parenthesized_expression ( (binary_expression IDENT < LIT) )) (compound_statement { (return_statement return IDENT ;) })) (while_statement while (parenthesized_expression ( BOOL )) (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 (subscript_expression IDENT [ LIT ]) = (binary_expression IDENT - IDENT)) ;) (if_statement if (parenthesized_expression ( (binary_expression (subscript_expression IDENT [ LIT ]) < LIT) )) (compound_statement { (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 (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)) ;) })) (expression_statement (assignment_expression IDENT = (binary_expression (binary_expression IDENT + (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) & (unary_expression ~ (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) )))) = IDENT) ;) (if_statement if (parenthesized_expression ( (binary_expression (binary_expression IDENT - (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) < (binary_expression IDENT - (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))))) )) (compound_statement { (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) = IDENT) ;) (expression_statement (assignment_expression 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 = (call_expression IDENT (argument_list ( IDENT )))) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) ;) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) = LIT) ;) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression (pointer_expression * IDENT) + LIT) )))) = IDENT) ;) (expression_statement (assignment_expression (pointer_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 (assignment_expression (subscript_expression IDENT [ LIT ]) = (binary_expression (subscript_expression IDENT [ LIT ]) - IDENT)) ;) (if_statement if (parenthesized_expression ( (binary_expression (subscript_expression IDENT [ LIT ]) < LIT) )) (compound_statement { (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( LIT , (string_literal " string_content escape_sequence string_content ") , LIT )))) ;) (expression_statement (call_expression IDENT (argument_list ( IDENT ))) ;) })) })) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) = (binary_expression IDENT + (subscript_expression IDENT [ LIT ]))) ;) (expression_statement (assignment_expression IDENT = IDENT) ;) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( IDENT , IDENT , (pointer_expression & IDENT) , (pointer_expression & IDENT) , IDENT )))) ;) (if_statement if (parenthesized_expression ( (binary_expression (cast_expression ( (type_descriptor TYPE) ) IDENT) < LIT) )) (compound_statement { (return_statement return LIT ;) })) (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) ;) (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 (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) = (binary_expression (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) + (parenthesized_expression ( (binary_expression (cast_expression ( (type_descriptor TYPE) ) IDENT) >> LIT) ))) + (cast_expression ( (type_descriptor TYPE) ) (call_expression IDENT (argument_list ( IDENT , IDENT )))))) ;) (expression_statement (assignment_expression IDENT = (binary_expression IDENT + IDENT)) ;) (if_statement if (parenthesized_expression ( (binary_expression (subscript_expression IDENT [ LIT ]) < LIT) )) (break_statement break ;)) (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) )))) - (subscript_expression IDENT [ LIT ]))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT < LIT) )) (compound_statement { (return_statement return IDENT ;) })) })) }) while (parenthesized_expression ( BOOL )) ;) })))
(function_definition "int __regparm3\nFUN_0003f850(undefined4 param_1,undefined4 param_2,int param_3,int *param_4,int param_5)\n\n{\n  uint *puVar1;\n  int iVar2;\n  uint uVar3;\n  uint uVar4;\n  int iVar5;\n  undefined4 uVar6;\n  int iVar7;\n  int local_34;\n  undefined4 local_30 [3];\n  int local_24;\n  int local_20 [3];\n  undefined4 uStack_14;\n  \n  iVar7 = 0;\n  uStack_14 = 0x3f85b;\n  iVar5 = *param_4;\n  local_34 = param_3;\n  local_30[0] = param_2;\n  do {\n    if (local_34 < 1) {\n      return iVar7;\n    }\n    while( true ) {\n      uVar3 = *(uint *)(param_5 + 0x10);\n      iVar2 = *(int *)(param_5 + 0xc);\n      local_20[0] = uVar3 - iVar2;\n      if (local_20[0] < 1) {\n        if (iVar2 == *(int *)(param_5 + 8)) {\n          *(byte *)(param_5 + 0x28) = *(byte *)(param_5 + 0x28) | 2;\n        }\n        uVar4 = iVar2 + *(uint *)(param_5 + 0x18) & ~*(uint *)(param_5 + 0x18);\n        *(uint *)(param_5 + 0xc) = uVar4;\n        if (uVar3 - *(int *)(param_5 + 4) < uVar4 - *(int *)(param_5 + 4)) {\n          *(uint *)(param_5 + 0xc) = uVar3;\n          uVar4 = uVar3;\n        }\n        *(uint *)(param_5 + 8) = uVar4;\n        iVar5 = FUN_00027650(param_5);\n        local_20[0] = *(int *)(param_5 + 0x10);\n        *(undefined4 *)(iVar5 + 0x44) = 1;\n        *(int *)(*param_4 + 0x30) = iVar5;\n        *param_4 = iVar5;\n        iVar2 = *(int *)(param_5 + 0xc);\n        local_20[0] = local_20[0] - iVar2;\n        if (local_20[0] < 1) {\n          uVar6 = dcgettext(0,"can\'t extend frag",5);\n                    \n          FUN_0002ed30(uVar6);\n        }\n      }\n      *(int *)(param_5 + 0xc) = iVar2 + local_20[0];\n      local_24 = iVar2;\n      uVar3 = FUN_0001b550(param_1,local_30,&local_34,&local_24,local_20);\n      if ((int)uVar3 < 0) {\n        return -1;\n      }\n      puVar1 = (uint *)(iVar5 + 0x10);\n      uVar4 = *puVar1;\n      *puVar1 = *puVar1 + uVar3;\n      *(int *)(iVar5 + 0x14) =\n           *(int *)(iVar5 + 0x14) + ((int)uVar3 >> 0x1f) + (uint)CARRY4(uVar4,uVar3);\n      iVar7 = iVar7 + uVar3;\n      if (local_20[0] < 1) break;\n      *(int *)(param_5 + 0xc) = *(int *)(param_5 + 0xc) - local_20[0];\n      if (local_34 < 1) {\n        return iVar7;\n      }\n    }\n  } while( true );\n}" (primitive_type "int") (ERROR "__regparm3" (identifier "__regparm3")) (function_declarator "FUN_0003f850(undefined4 param_1,undefined4 param_2,int param_3,int *param_4,int param_5)" (identifier "FUN_0003f850") (parameter_list "(undefined4 param_1,undefined4 param_2,int param_3,int *param_4,int param_5)" (( "(") (parameter_declaration "undefined4 param_1" (type_identifier "undefined4") (identifier "param_1")) (, ",") (parameter_declaration "undefined4 param_2" (type_identifier "undefined4") (identifier "param_2")) (, ",") (parameter_declaration "int param_3" (primitive_type "int") (identifier "param_3")) (, ",") (parameter_declaration "int *param_4" (primitive_type "int") (pointer_declarator "*param_4" (* "*") (identifier "param_4"))) (, ",") (parameter_declaration "int param_5" (primitive_type "int") (identifier "param_5")) () ")"))) (compound_statement "{\n  uint *puVar1;\n  int iVar2;\n  uint uVar3;\n  uint uVar4;\n  int iVar5;\n  undefined4 uVar6;\n  int iVar7;\n  int local_34;\n  undefined4 local_30 [3];\n  int local_24;\n  int local_20 [3];\n  undefined4 uStack_14;\n  \n  iVar7 = 0;\n  uStack_14 = 0x3f85b;\n  iVar5 = *param_4;\n  local_34 = param_3;\n  local_30[0] = param_2;\n  do {\n    if (local_34 < 1) {\n      return iVar7;\n    }\n    while( true ) {\n      uVar3 = *(uint *)(param_5 + 0x10);\n      iVar2 = *(int *)(param_5 + 0xc);\n      local_20[0] = uVar3 - iVar2;\n      if (local_20[0] < 1) {\n        if (iVar2 == *(int *)(param_5 + 8)) {\n          *(byte *)(param_5 + 0x28) = *(byte *)(param_5 + 0x28) | 2;\n        }\n        uVar4 = iVar2 + *(uint *)(param_5 + 0x18) & ~*(uint *)(param_5 + 0x18);\n        *(uint *)(param_5 + 0xc) = uVar4;\n        if (uVar3 - *(int *)(param_5 + 4) < uVar4 - *(int *)(param_5 + 4)) {\n          *(uint *)(param_5 + 0xc) = uVar3;\n          uVar4 = uVar3;\n        }\n        *(uint *)(param_5 + 8) = uVar4;\n        iVar5 = FUN_00027650(param_5);\n        local_20[0] = *(int *)(param_5 + 0x10);\n        *(undefined4 *)(iVar5 + 0x44) = 1;\n        *(int *)(*param_4 + 0x30) = iVar5;\n        *param_4 = iVar5;\n        iVar2 = *(int *)(param_5 + 0xc);\n        local_20[0] = local_20[0] - iVar2;\n        if (local_20[0] < 1) {\n          uVar6 = dcgettext(0,"can\'t extend frag",5);\n                    \n          FUN_0002ed30(uVar6);\n        }\n      }\n      *(int *)(param_5 + 0xc) = iVar2 + local_20[0];\n      local_24 = iVar2;\n      uVar3 = FUN_0001b550(param_1,local_30,&local_34,&local_24,local_20);\n      if ((int)uVar3 < 0) {\n        return -1;\n      }\n      puVar1 = (uint *)(iVar5 + 0x10);\n      uVar4 = *puVar1;\n      *puVar1 = *puVar1 + uVar3;\n      *(int *)(iVar5 + 0x14) =\n           *(int *)(iVar5 + 0x14) + ((int)uVar3 >> 0x1f) + (uint)CARRY4(uVar4,uVar3);\n      iVar7 = iVar7 + uVar3;\n      if (local_20[0] < 1) break;\n      *(int *)(param_5 + 0xc) = *(int *)(param_5 + 0xc) - local_20[0];\n      if (local_34 < 1) {\n        return iVar7;\n      }\n    }\n  } while( true );\n}" ({ "{") (declaration "uint *puVar1;" (type_identifier "uint") (pointer_declarator "*puVar1" (* "*") (identifier "puVar1")) (; ";")) (declaration "int iVar2;" (primitive_type "int") (identifier "iVar2") (; ";")) (declaration "uint uVar3;" (type_identifier "uint") (identifier "uVar3") (; ";")) (declaration "uint uVar4;" (type_identifier "uint") (identifier "uVar4") (; ";")) (declaration "int iVar5;" (primitive_type "int") (identifier "iVar5") (; ";")) (declaration "undefined4 uVar6;" (type_identifier "undefined4") (identifier "uVar6") (; ";")) (declaration "int iVar7;" (primitive_type "int") (identifier "iVar7") (; ";")) (declaration "int local_34;" (primitive_type "int") (identifier "local_34") (; ";")) (declaration "undefined4 local_30 [3];" (type_identifier "undefined4") (array_declarator "local_30 [3]" (identifier "local_30") ([ "[") (number_literal "3") (] "]")) (; ";")) (declaration "int local_24;" (primitive_type "int") (identifier "local_24") (; ";")) (declaration "int local_20 [3];" (primitive_type "int") (array_declarator "local_20 [3]" (identifier "local_20") ([ "[") (number_literal "3") (] "]")) (; ";")) (declaration "undefined4 uStack_14;" (type_identifier "undefined4") (identifier "uStack_14") (; ";")) (expression_statement "iVar7 = 0;" (assignment_expression "iVar7 = 0" (identifier "iVar7") (= "=") (number_literal "0")) (; ";")) (expression_statement "uStack_14 = 0x3f85b;" (assignment_expression "uStack_14 = 0x3f85b" (identifier "uStack_14") (= "=") (number_literal "0x3f85b")) (; ";")) (expression_statement "iVar5 = *param_4;" (assignment_expression "iVar5 = *param_4" (identifier "iVar5") (= "=") (pointer_expression "*param_4" (* "*") (identifier "param_4"))) (; ";")) (expression_statement "local_34 = param_3;" (assignment_expression "local_34 = param_3" (identifier "local_34") (= "=") (identifier "param_3")) (; ";")) (expression_statement "local_30[0] = param_2;" (assignment_expression "local_30[0] = param_2" (subscript_expression "local_30[0]" (identifier "local_30") ([ "[") (number_literal "0") (] "]")) (= "=") (identifier "param_2")) (; ";")) (do_statement "do {\n    if (local_34 < 1) {\n      return iVar7;\n    }\n    while( true ) {\n      uVar3 = *(uint *)(param_5 + 0x10);\n      iVar2 = *(int *)(param_5 + 0xc);\n      local_20[0] = uVar3 - iVar2;\n      if (local_20[0] < 1) {\n        if (iVar2 == *(int *)(param_5 + 8)) {\n          *(byte *)(param_5 + 0x28) = *(byte *)(param_5 + 0x28) | 2;\n        }\n        uVar4 = iVar2 + *(uint *)(param_5 + 0x18) & ~*(uint *)(param_5 + 0x18);\n        *(uint *)(param_5 + 0xc) = uVar4;\n        if (uVar3 - *(int *)(param_5 + 4) < uVar4 - *(int *)(param_5 + 4)) {\n          *(uint *)(param_5 + 0xc) = uVar3;\n          uVar4 = uVar3;\n        }\n        *(uint *)(param_5 + 8) = uVar4;\n        iVar5 = FUN_00027650(param_5);\n        local_20[0] = *(int *)(param_5 + 0x10);\n        *(undefined4 *)(iVar5 + 0x44) = 1;\n        *(int *)(*param_4 + 0x30) = iVar5;\n        *param_4 = iVar5;\n        iVar2 = *(int *)(param_5 + 0xc);\n        local_20[0] = local_20[0] - iVar2;\n        if (local_20[0] < 1) {\n          uVar6 = dcgettext(0,"can\'t extend frag",5);\n                    \n          FUN_0002ed30(uVar6);\n        }\n      }\n      *(int *)(param_5 + 0xc) = iVar2 + local_20[0];\n      local_24 = iVar2;\n      uVar3 = FUN_0001b550(param_1,local_30,&local_34,&local_24,local_20);\n      if ((int)uVar3 < 0) {\n        return -1;\n      }\n      puVar1 = (uint *)(iVar5 + 0x10);\n      uVar4 = *puVar1;\n      *puVar1 = *puVar1 + uVar3;\n      *(int *)(iVar5 + 0x14) =\n           *(int *)(iVar5 + 0x14) + ((int)uVar3 >> 0x1f) + (uint)CARRY4(uVar4,uVar3);\n      iVar7 = iVar7 + uVar3;\n      if (local_20[0] < 1) break;\n      *(int *)(param_5 + 0xc) = *(int *)(param_5 + 0xc) - local_20[0];\n      if (local_34 < 1) {\n        return iVar7;\n      }\n    }\n  } while( true );" (do "do") (compound_statement "{\n    if (local_34 < 1) {\n      return iVar7;\n    }\n    while( true ) {\n      uVar3 = *(uint *)(param_5 + 0x10);\n      iVar2 = *(int *)(param_5 + 0xc);\n      local_20[0] = uVar3 - iVar2;\n      if (local_20[0] < 1) {\n        if (iVar2 == *(int *)(param_5 + 8)) {\n          *(byte *)(param_5 + 0x28) = *(byte *)(param_5 + 0x28) | 2;\n        }\n        uVar4 = iVar2 + *(uint *)(param_5 + 0x18) & ~*(uint *)(param_5 + 0x18);\n        *(uint *)(param_5 + 0xc) = uVar4;\n        if (uVar3 - *(int *)(param_5 + 4) < uVar4 - *(int *)(param_5 + 4)) {\n          *(uint *)(param_5 + 0xc) = uVar3;\n          uVar4 = uVar3;\n        }\n        *(uint *)(param_5 + 8) = uVar4;\n        iVar5 = FUN_00027650(param_5);\n        local_20[0] = *(int *)(param_5 + 0x10);\n        *(undefined4 *)(iVar5 + 0x44) = 1;\n        *(int *)(*param_4 + 0x30) = iVar5;\n        *param_4 = iVar5;\n        iVar2 = *(int *)(param_5 + 0xc);\n        local_20[0] = local_20[0] - iVar2;\n        if (local_20[0] < 1) {\n          uVar6 = dcgettext(0,"can\'t extend frag",5);\n                    \n          FUN_0002ed30(uVar6);\n        }\n      }\n      *(int *)(param_5 + 0xc) = iVar2 + local_20[0];\n      local_24 = iVar2;\n      uVar3 = FUN_0001b550(param_1,local_30,&local_34,&local_24,local_20);\n      if ((int)uVar3 < 0) {\n        return -1;\n      }\n      puVar1 = (uint *)(iVar5 + 0x10);\n      uVar4 = *puVar1;\n      *puVar1 = *puVar1 + uVar3;\n      *(int *)(iVar5 + 0x14) =\n           *(int *)(iVar5 + 0x14) + ((int)uVar3 >> 0x1f) + (uint)CARRY4(uVar4,uVar3);\n      iVar7 = iVar7 + uVar3;\n      if (local_20[0] < 1) break;\n      *(int *)(param_5 + 0xc) = *(int *)(param_5 + 0xc) - local_20[0];\n      if (local_34 < 1) {\n        return iVar7;\n      }\n    }\n  }" ({ "{") (if_statement "if (local_34 < 1) {\n      return iVar7;\n    }" (if "if") (parenthesized_expression "(local_34 < 1)" (( "(") (binary_expression "local_34 < 1" (identifier "local_34") (< "<") (number_literal "1")) () ")")) (compound_statement "{\n      return iVar7;\n    }" ({ "{") (return_statement "return iVar7;" (return "return") (identifier "iVar7") (; ";")) (} "}"))) (while_statement "while( true ) {\n      uVar3 = *(uint *)(param_5 + 0x10);\n      iVar2 = *(int *)(param_5 + 0xc);\n      local_20[0] = uVar3 - iVar2;\n      if (local_20[0] < 1) {\n        if (iVar2 == *(int *)(param_5 + 8)) {\n          *(byte *)(param_5 + 0x28) = *(byte *)(param_5 + 0x28) | 2;\n        }\n        uVar4 = iVar2 + *(uint *)(param_5 + 0x18) & ~*(uint *)(param_5 + 0x18);\n        *(uint *)(param_5 + 0xc) = uVar4;\n        if (uVar3 - *(int *)(param_5 + 4) < uVar4 - *(int *)(param_5 + 4)) {\n          *(uint *)(param_5 + 0xc) = uVar3;\n          uVar4 = uVar3;\n        }\n        *(uint *)(param_5 + 8) = uVar4;\n        iVar5 = FUN_00027650(param_5);\n        local_20[0] = *(int *)(param_5 + 0x10);\n        *(undefined4 *)(iVar5 + 0x44) = 1;\n        *(int *)(*param_4 + 0x30) = iVar5;\n        *param_4 = iVar5;\n        iVar2 = *(int *)(param_5 + 0xc);\n        local_20[0] = local_20[0] - iVar2;\n        if (local_20[0] < 1) {\n          uVar6 = dcgettext(0,"can\'t extend frag",5);\n                    \n          FUN_0002ed30(uVar6);\n        }\n      }\n      *(int *)(param_5 + 0xc) = iVar2 + local_20[0];\n      local_24 = iVar2;\n      uVar3 = FUN_0001b550(param_1,local_30,&local_34,&local_24,local_20);\n      if ((int)uVar3 < 0) {\n        return -1;\n      }\n      puVar1 = (uint *)(iVar5 + 0x10);\n      uVar4 = *puVar1;\n      *puVar1 = *puVar1 + uVar3;\n      *(int *)(iVar5 + 0x14) =\n           *(int *)(iVar5 + 0x14) + ((int)uVar3 >> 0x1f) + (uint)CARRY4(uVar4,uVar3);\n      iVar7 = iVar7 + uVar3;\n      if (local_20[0] < 1) break;\n      *(int *)(param_5 + 0xc) = *(int *)(param_5 + 0xc) - local_20[0];\n      if (local_34 < 1) {\n        return iVar7;\n      }\n    }" (while "while") (parenthesized_expression "( true )" (( "(") (true "true") () ")")) (compound_statement "{\n      uVar3 = *(uint *)(param_5 + 0x10);\n      iVar2 = *(int *)(param_5 + 0xc);\n      local_20[0] = uVar3 - iVar2;\n      if (local_20[0] < 1) {\n        if (iVar2 == *(int *)(param_5 + 8)) {\n          *(byte *)(param_5 + 0x28) = *(byte *)(param_5 + 0x28) | 2;\n        }\n        uVar4 = iVar2 + *(uint *)(param_5 + 0x18) & ~*(uint *)(param_5 + 0x18);\n        *(uint *)(param_5 + 0xc) = uVar4;\n        if (uVar3 - *(int *)(param_5 + 4) < uVar4 - *(int *)(param_5 + 4)) {\n          *(uint *)(param_5 + 0xc) = uVar3;\n          uVar4 = uVar3;\n        }\n        *(uint *)(param_5 + 8) = uVar4;\n        iVar5 = FUN_00027650(param_5);\n        local_20[0] = *(int *)(param_5 + 0x10);\n        *(undefined4 *)(iVar5 + 0x44) = 1;\n        *(int *)(*param_4 + 0x30) = iVar5;\n        *param_4 = iVar5;\n        iVar2 = *(int *)(param_5 + 0xc);\n        local_20[0] = local_20[0] - iVar2;\n        if (local_20[0] < 1) {\n          uVar6 = dcgettext(0,"can\'t extend frag",5);\n                    \n          FUN_0002ed30(uVar6);\n        }\n      }\n      *(int *)(param_5 + 0xc) = iVar2 + local_20[0];\n      local_24 = iVar2;\n      uVar3 = FUN_0001b550(param_1,local_30,&local_34,&local_24,local_20);\n      if ((int)uVar3 < 0) {\n        return -1;\n      }\n      puVar1 = (uint *)(iVar5 + 0x10);\n      uVar4 = *puVar1;\n      *puVar1 = *puVar1 + uVar3;\n      *(int *)(iVar5 + 0x14) =\n           *(int *)(iVar5 + 0x14) + ((int)uVar3 >> 0x1f) + (uint)CARRY4(uVar4,uVar3);\n      iVar7 = iVar7 + uVar3;\n      if (local_20[0] < 1) break;\n      *(int *)(param_5 + 0xc) = *(int *)(param_5 + 0xc) - local_20[0];\n      if (local_34 < 1) {\n        return iVar7;\n      }\n    }" ({ "{") (expression_statement "uVar3 = *(uint *)(param_5 + 0x10);" (assignment_expression "uVar3 = *(uint *)(param_5 + 0x10)" (identifier "uVar3") (= "=") (pointer_expression "*(uint *)(param_5 + 0x10)" (* "*") (cast_expression "(uint *)(param_5 + 0x10)" (( "(") (type_descriptor "uint *" (type_identifier "uint") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_5 + 0x10)" (( "(") (binary_expression "param_5 + 0x10" (identifier "param_5") (+ "+") (number_literal "0x10")) () ")"))))) (; ";")) (expression_statement "iVar2 = *(int *)(param_5 + 0xc);" (assignment_expression "iVar2 = *(int *)(param_5 + 0xc)" (identifier "iVar2") (= "=") (pointer_expression "*(int *)(param_5 + 0xc)" (* "*") (cast_expression "(int *)(param_5 + 0xc)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_5 + 0xc)" (( "(") (binary_expression "param_5 + 0xc" (identifier "param_5") (+ "+") (number_literal "0xc")) () ")"))))) (; ";")) (expression_statement "local_20[0] = uVar3 - iVar2;" (assignment_expression "local_20[0] = uVar3 - iVar2" (subscript_expression "local_20[0]" (identifier "local_20") ([ "[") (number_literal "0") (] "]")) (= "=") (binary_expression "uVar3 - iVar2" (identifier "uVar3") (- "-") (identifier "iVar2"))) (; ";")) (if_statement "if (local_20[0] < 1) {\n        if (iVar2 == *(int *)(param_5 + 8)) {\n          *(byte *)(param_5 + 0x28) = *(byte *)(param_5 + 0x28) | 2;\n        }\n        uVar4 = iVar2 + *(uint *)(param_5 + 0x18) & ~*(uint *)(param_5 + 0x18);\n        *(uint *)(param_5 + 0xc) = uVar4;\n        if (uVar3 - *(int *)(param_5 + 4) < uVar4 - *(int *)(param_5 + 4)) {\n          *(uint *)(param_5 + 0xc) = uVar3;\n          uVar4 = uVar3;\n        }\n        *(uint *)(param_5 + 8) = uVar4;\n        iVar5 = FUN_00027650(param_5);\n        local_20[0] = *(int *)(param_5 + 0x10);\n        *(undefined4 *)(iVar5 + 0x44) = 1;\n        *(int *)(*param_4 + 0x30) = iVar5;\n        *param_4 = iVar5;\n        iVar2 = *(int *)(param_5 + 0xc);\n        local_20[0] = local_20[0] - iVar2;\n        if (local_20[0] < 1) {\n          uVar6 = dcgettext(0,"can\'t extend frag",5);\n                    \n          FUN_0002ed30(uVar6);\n        }\n      }" (if "if") (parenthesized_expression "(local_20[0] < 1)" (( "(") (binary_expression "local_20[0] < 1" (subscript_expression "local_20[0]" (identifier "local_20") ([ "[") (number_literal "0") (] "]")) (< "<") (number_literal "1")) () ")")) (compound_statement "{\n        if (iVar2 == *(int *)(param_5 + 8)) {\n          *(byte *)(param_5 + 0x28) = *(byte *)(param_5 + 0x28) | 2;\n        }\n        uVar4 = iVar2 + *(uint *)(param_5 + 0x18) & ~*(uint *)(param_5 + 0x18);\n        *(uint *)(param_5 + 0xc) = uVar4;\n        if (uVar3 - *(int *)(param_5 + 4) < uVar4 - *(int *)(param_5 + 4)) {\n          *(uint *)(param_5 + 0xc) = uVar3;\n          uVar4 = uVar3;\n        }\n        *(uint *)(param_5 + 8) = uVar4;\n        iVar5 = FUN_00027650(param_5);\n        local_20[0] = *(int *)(param_5 + 0x10);\n        *(undefined4 *)(iVar5 + 0x44) = 1;\n        *(int *)(*param_4 + 0x30) = iVar5;\n        *param_4 = iVar5;\n        iVar2 = *(int *)(param_5 + 0xc);\n        local_20[0] = local_20[0] - iVar2;\n        if (local_20[0] < 1) {\n          uVar6 = dcgettext(0,"can\'t extend frag",5);\n                    \n          FUN_0002ed30(uVar6);\n        }\n      }" ({ "{") (if_statement "if (iVar2 == *(int *)(param_5 + 8)) {\n          *(byte *)(param_5 + 0x28) = *(byte *)(param_5 + 0x28) | 2;\n        }" (if "if") (parenthesized_expression "(iVar2 == *(int *)(param_5 + 8))" (( "(") (binary_expression "iVar2 == *(int *)(param_5 + 8)" (identifier "iVar2") (== "==") (pointer_expression "*(int *)(param_5 + 8)" (* "*") (cast_expression "(int *)(param_5 + 8)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_5 + 8)" (( "(") (binary_expression "param_5 + 8" (identifier "param_5") (+ "+") (number_literal "8")) () ")"))))) () ")")) (compound_statement "{\n          *(byte *)(param_5 + 0x28) = *(byte *)(param_5 + 0x28) | 2;\n        }" ({ "{") (expression_statement "*(byte *)(param_5 + 0x28) = *(byte *)(param_5 + 0x28) | 2;" (assignment_expression "*(byte *)(param_5 + 0x28) = *(byte *)(param_5 + 0x28) | 2" (pointer_expression "*(byte *)(param_5 + 0x28)" (* "*") (cast_expression "(byte *)(param_5 + 0x28)" (( "(") (type_descriptor "byte *" (type_identifier "byte") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_5 + 0x28)" (( "(") (binary_expression "param_5 + 0x28" (identifier "param_5") (+ "+") (number_literal "0x28")) () ")")))) (= "=") (binary_expression "*(byte *)(param_5 + 0x28) | 2" (pointer_expression "*(byte *)(param_5 + 0x28)" (* "*") (cast_expression "(byte *)(param_5 + 0x28)" (( "(") (type_descriptor "byte *" (type_identifier "byte") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_5 + 0x28)" (( "(") (binary_expression "param_5 + 0x28" (identifier "param_5") (+ "+") (number_literal "0x28")) () ")")))) (| "|") (number_literal "2"))) (; ";")) (} "}"))) (expression_statement "uVar4 = iVar2 + *(uint *)(param_5 + 0x18) & ~*(uint *)(param_5 + 0x18);" (assignment_expression "uVar4 = iVar2 + *(uint *)(param_5 + 0x18) & ~*(uint *)(param_5 + 0x18)" (identifier "uVar4") (= "=") (binary_expression "iVar2 + *(uint *)(param_5 + 0x18) & ~*(uint *)(param_5 + 0x18)" (binary_expression "iVar2 + *(uint *)(param_5 + 0x18)" (identifier "iVar2") (+ "+") (pointer_expression "*(uint *)(param_5 + 0x18)" (* "*") (cast_expression "(uint *)(param_5 + 0x18)" (( "(") (type_descriptor "uint *" (type_identifier "uint") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_5 + 0x18)" (( "(") (binary_expression "param_5 + 0x18" (identifier "param_5") (+ "+") (number_literal "0x18")) () ")"))))) (& "&") (unary_expression "~*(uint *)(param_5 + 0x18)" (~ "~") (pointer_expression "*(uint *)(param_5 + 0x18)" (* "*") (cast_expression "(uint *)(param_5 + 0x18)" (( "(") (type_descriptor "uint *" (type_identifier "uint") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_5 + 0x18)" (( "(") (binary_expression "param_5 + 0x18" (identifier "param_5") (+ "+") (number_literal "0x18")) () ")"))))))) (; ";")) (expression_statement "*(uint *)(param_5 + 0xc) = uVar4;" (assignment_expression "*(uint *)(param_5 + 0xc) = uVar4" (pointer_expression "*(uint *)(param_5 + 0xc)" (* "*") (cast_expression "(uint *)(param_5 + 0xc)" (( "(") (type_descriptor "uint *" (type_identifier "uint") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_5 + 0xc)" (( "(") (binary_expression "param_5 + 0xc" (identifier "param_5") (+ "+") (number_literal "0xc")) () ")")))) (= "=") (identifier "uVar4")) (; ";")) (if_statement "if (uVar3 - *(int *)(param_5 + 4) < uVar4 - *(int *)(param_5 + 4)) {\n          *(uint *)(param_5 + 0xc) = uVar3;\n          uVar4 = uVar3;\n        }" (if "if") (parenthesized_expression "(uVar3 - *(int *)(param_5 + 4) < uVar4 - *(int *)(param_5 + 4))" (( "(") (binary_expression "uVar3 - *(int *)(param_5 + 4) < uVar4 - *(int *)(param_5 + 4)" (binary_expression "uVar3 - *(int *)(param_5 + 4)" (identifier "uVar3") (- "-") (pointer_expression "*(int *)(param_5 + 4)" (* "*") (cast_expression "(int *)(param_5 + 4)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_5 + 4)" (( "(") (binary_expression "param_5 + 4" (identifier "param_5") (+ "+") (number_literal "4")) () ")"))))) (< "<") (binary_expression "uVar4 - *(int *)(param_5 + 4)" (identifier "uVar4") (- "-") (pointer_expression "*(int *)(param_5 + 4)" (* "*") (cast_expression "(int *)(param_5 + 4)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_5 + 4)" (( "(") (binary_expression "param_5 + 4" (identifier "param_5") (+ "+") (number_literal "4")) () ")")))))) () ")")) (compound_statement "{\n          *(uint *)(param_5 + 0xc) = uVar3;\n          uVar4 = uVar3;\n        }" ({ "{") (expression_statement "*(uint *)(param_5 + 0xc) = uVar3;" (assignment_expression "*(uint *)(param_5 + 0xc) = uVar3" (pointer_expression "*(uint *)(param_5 + 0xc)" (* "*") (cast_expression "(uint *)(param_5 + 0xc)" (( "(") (type_descriptor "uint *" (type_identifier "uint") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_5 + 0xc)" (( "(") (binary_expression "param_5 + 0xc" (identifier "param_5") (+ "+") (number_literal "0xc")) () ")")))) (= "=") (identifier "uVar3")) (; ";")) (expression_statement "uVar4 = uVar3;" (assignment_expression "uVar4 = uVar3" (identifier "uVar4") (= "=") (identifier "uVar3")) (; ";")) (} "}"))) (expression_statement "*(uint *)(param_5 + 8) = uVar4;" (assignment_expression "*(uint *)(param_5 + 8) = uVar4" (pointer_expression "*(uint *)(param_5 + 8)" (* "*") (cast_expression "(uint *)(param_5 + 8)" (( "(") (type_descriptor "uint *" (type_identifier "uint") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_5 + 8)" (( "(") (binary_expression "param_5 + 8" (identifier "param_5") (+ "+") (number_literal "8")) () ")")))) (= "=") (identifier "uVar4")) (; ";")) (expression_statement "iVar5 = FUN_00027650(param_5);" (assignment_expression "iVar5 = FUN_00027650(param_5)" (identifier "iVar5") (= "=") (call_expression "FUN_00027650(param_5)" (identifier "FUN_00027650") (argument_list "(param_5)" (( "(") (identifier "param_5") () ")")))) (; ";")) (expression_statement "local_20[0] = *(int *)(param_5 + 0x10);" (assignment_expression "local_20[0] = *(int *)(param_5 + 0x10)" (subscript_expression "local_20[0]" (identifier "local_20") ([ "[") (number_literal "0") (] "]")) (= "=") (pointer_expression "*(int *)(param_5 + 0x10)" (* "*") (cast_expression "(int *)(param_5 + 0x10)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_5 + 0x10)" (( "(") (binary_expression "param_5 + 0x10" (identifier "param_5") (+ "+") (number_literal "0x10")) () ")"))))) (; ";")) (expression_statement "*(undefined4 *)(iVar5 + 0x44) = 1;" (assignment_expression "*(undefined4 *)(iVar5 + 0x44) = 1" (pointer_expression "*(undefined4 *)(iVar5 + 0x44)" (* "*") (cast_expression "(undefined4 *)(iVar5 + 0x44)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar5 + 0x44)" (( "(") (binary_expression "iVar5 + 0x44" (identifier "iVar5") (+ "+") (number_literal "0x44")) () ")")))) (= "=") (number_literal "1")) (; ";")) (expression_statement "*(int *)(*param_4 + 0x30) = iVar5;" (assignment_expression "*(int *)(*param_4 + 0x30) = iVar5" (pointer_expression "*(int *)(*param_4 + 0x30)" (* "*") (cast_expression "(int *)(*param_4 + 0x30)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(*param_4 + 0x30)" (( "(") (binary_expression "*param_4 + 0x30" (pointer_expression "*param_4" (* "*") (identifier "param_4")) (+ "+") (number_literal "0x30")) () ")")))) (= "=") (identifier "iVar5")) (; ";")) (expression_statement "*param_4 = iVar5;" (assignment_expression "*param_4 = iVar5" (pointer_expression "*param_4" (* "*") (identifier "param_4")) (= "=") (identifier "iVar5")) (; ";")) (expression_statement "iVar2 = *(int *)(param_5 + 0xc);" (assignment_expression "iVar2 = *(int *)(param_5 + 0xc)" (identifier "iVar2") (= "=") (pointer_expression "*(int *)(param_5 + 0xc)" (* "*") (cast_expression "(int *)(param_5 + 0xc)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_5 + 0xc)" (( "(") (binary_expression "param_5 + 0xc" (identifier "param_5") (+ "+") (number_literal "0xc")) () ")"))))) (; ";")) (expression_statement "local_20[0] = local_20[0] - iVar2;" (assignment_expression "local_20[0] = local_20[0] - iVar2" (subscript_expression "local_20[0]" (identifier "local_20") ([ "[") (number_literal "0") (] "]")) (= "=") (binary_expression "local_20[0] - iVar2" (subscript_expression "local_20[0]" (identifier "local_20") ([ "[") (number_literal "0") (] "]")) (- "-") (identifier "iVar2"))) (; ";")) (if_statement "if (local_20[0] < 1) {\n          uVar6 = dcgettext(0,"can\'t extend frag",5);\n                    \n          FUN_0002ed30(uVar6);\n        }" (if "if") (parenthesized_expression "(local_20[0] < 1)" (( "(") (binary_expression "local_20[0] < 1" (subscript_expression "local_20[0]" (identifier "local_20") ([ "[") (number_literal "0") (] "]")) (< "<") (number_literal "1")) () ")")) (compound_statement "{\n          uVar6 = dcgettext(0,"can\'t extend frag",5);\n                    \n          FUN_0002ed30(uVar6);\n        }" ({ "{") (expression_statement "uVar6 = dcgettext(0,"can\'t extend frag",5);" (assignment_expression "uVar6 = dcgettext(0,"can\'t extend frag",5)" (identifier "uVar6") (= "=") (call_expression "dcgettext(0,"can\'t extend frag",5)" (identifier "dcgettext") (argument_list "(0,"can\'t extend frag",5)" (( "(") (number_literal "0") (, ",") (string_literal ""can\'t extend frag"" (" """) (string_content "can") (escape_sequence "\'") (string_content "t extend frag") (" """)) (, ",") (number_literal "5") () ")")))) (; ";")) (expression_statement "FUN_0002ed30(uVar6);" (call_expression "FUN_0002ed30(uVar6)" (identifier "FUN_0002ed30") (argument_list "(uVar6)" (( "(") (identifier "uVar6") () ")"))) (; ";")) (} "}"))) (} "}"))) (expression_statement "*(int *)(param_5 + 0xc) = iVar2 + local_20[0];" (assignment_expression "*(int *)(param_5 + 0xc) = iVar2 + local_20[0]" (pointer_expression "*(int *)(param_5 + 0xc)" (* "*") (cast_expression "(int *)(param_5 + 0xc)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_5 + 0xc)" (( "(") (binary_expression "param_5 + 0xc" (identifier "param_5") (+ "+") (number_literal "0xc")) () ")")))) (= "=") (binary_expression "iVar2 + local_20[0]" (identifier "iVar2") (+ "+") (subscript_expression "local_20[0]" (identifier "local_20") ([ "[") (number_literal "0") (] "]")))) (; ";")) (expression_statement "local_24 = iVar2;" (assignment_expression "local_24 = iVar2" (identifier "local_24") (= "=") (identifier "iVar2")) (; ";")) (expression_statement "uVar3 = FUN_0001b550(param_1,local_30,&local_34,&local_24,local_20);" (assignment_expression "uVar3 = FUN_0001b550(param_1,local_30,&local_34,&local_24,local_20)" (identifier "uVar3") (= "=") (call_expression "FUN_0001b550(param_1,local_30,&local_34,&local_24,local_20)" (identifier "FUN_0001b550") (argument_list "(param_1,local_30,&local_34,&local_24,local_20)" (( "(") (identifier "param_1") (, ",") (identifier "local_30") (, ",") (pointer_expression "&local_34" (& "&") (identifier "local_34")) (, ",") (pointer_expression "&local_24" (& "&") (identifier "local_24")) (, ",") (identifier "local_20") () ")")))) (; ";")) (if_statement "if ((int)uVar3 < 0) {\n        return -1;\n      }" (if "if") (parenthesized_expression "((int)uVar3 < 0)" (( "(") (binary_expression "(int)uVar3 < 0" (cast_expression "(int)uVar3" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (identifier "uVar3")) (< "<") (number_literal "0")) () ")")) (compound_statement "{\n        return -1;\n      }" ({ "{") (return_statement "return -1;" (return "return") (number_literal "-1") (; ";")) (} "}"))) (expression_statement "puVar1 = (uint *)(iVar5 + 0x10);" (assignment_expression "puVar1 = (uint *)(iVar5 + 0x10)" (identifier "puVar1") (= "=") (cast_expression "(uint *)(iVar5 + 0x10)" (( "(") (type_descriptor "uint *" (type_identifier "uint") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar5 + 0x10)" (( "(") (binary_expression "iVar5 + 0x10" (identifier "iVar5") (+ "+") (number_literal "0x10")) () ")")))) (; ";")) (expression_statement "uVar4 = *puVar1;" (assignment_expression "uVar4 = *puVar1" (identifier "uVar4") (= "=") (pointer_expression "*puVar1" (* "*") (identifier "puVar1"))) (; ";")) (expression_statement "*puVar1 = *puVar1 + uVar3;" (assignment_expression "*puVar1 = *puVar1 + uVar3" (pointer_expression "*puVar1" (* "*") (identifier "puVar1")) (= "=") (binary_expression "*puVar1 + uVar3" (pointer_expression "*puVar1" (* "*") (identifier "puVar1")) (+ "+") (identifier "uVar3"))) (; ";")) (expression_statement "*(int *)(iVar5 + 0x14) =\n           *(int *)(iVar5 + 0x14) + ((int)uVar3 >> 0x1f) + (uint)CARRY4(uVar4,uVar3);" (assignment_expression "*(int *)(iVar5 + 0x14) =\n           *(int *)(iVar5 + 0x14) + ((int)uVar3 >> 0x1f) + (uint)CARRY4(uVar4,uVar3)" (pointer_expression "*(int *)(iVar5 + 0x14)" (* "*") (cast_expression "(int *)(iVar5 + 0x14)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar5 + 0x14)" (( "(") (binary_expression "iVar5 + 0x14" (identifier "iVar5") (+ "+") (number_literal "0x14")) () ")")))) (= "=") (binary_expression "*(int *)(iVar5 + 0x14) + ((int)uVar3 >> 0x1f) + (uint)CARRY4(uVar4,uVar3)" (binary_expression "*(int *)(iVar5 + 0x14) + ((int)uVar3 >> 0x1f)" (pointer_expression "*(int *)(iVar5 + 0x14)" (* "*") (cast_expression "(int *)(iVar5 + 0x14)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar5 + 0x14)" (( "(") (binary_expression "iVar5 + 0x14" (identifier "iVar5") (+ "+") (number_literal "0x14")) () ")")))) (+ "+") (parenthesized_expression "((int)uVar3 >> 0x1f)" (( "(") (binary_expression "(int)uVar3 >> 0x1f" (cast_expression "(int)uVar3" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (identifier "uVar3")) (>> ">>") (number_literal "0x1f")) () ")"))) (+ "+") (cast_expression "(uint)CARRY4(uVar4,uVar3)" (( "(") (type_descriptor "uint" (type_identifier "uint")) () ")") (call_expression "CARRY4(uVar4,uVar3)" (identifier "CARRY4") (argument_list "(uVar4,uVar3)" (( "(") (identifier "uVar4") (, ",") (identifier "uVar3") () ")")))))) (; ";")) (expression_statement "iVar7 = iVar7 + uVar3;" (assignment_expression "iVar7 = iVar7 + uVar3" (identifier "iVar7") (= "=") (binary_expression "iVar7 + uVar3" (identifier "iVar7") (+ "+") (identifier "uVar3"))) (; ";")) (if_statement "if (local_20[0] < 1) break;" (if "if") (parenthesized_expression "(local_20[0] < 1)" (( "(") (binary_expression "local_20[0] < 1" (subscript_expression "local_20[0]" (identifier "local_20") ([ "[") (number_literal "0") (] "]")) (< "<") (number_literal "1")) () ")")) (break_statement "break;" (break "break") (; ";"))) (expression_statement "*(int *)(param_5 + 0xc) = *(int *)(param_5 + 0xc) - local_20[0];" (assignment_expression "*(int *)(param_5 + 0xc) = *(int *)(param_5 + 0xc) - local_20[0]" (pointer_expression "*(int *)(param_5 + 0xc)" (* "*") (cast_expression "(int *)(param_5 + 0xc)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_5 + 0xc)" (( "(") (binary_expression "param_5 + 0xc" (identifier "param_5") (+ "+") (number_literal "0xc")) () ")")))) (= "=") (binary_expression "*(int *)(param_5 + 0xc) - local_20[0]" (pointer_expression "*(int *)(param_5 + 0xc)" (* "*") (cast_expression "(int *)(param_5 + 0xc)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_5 + 0xc)" (( "(") (binary_expression "param_5 + 0xc" (identifier "param_5") (+ "+") (number_literal "0xc")) () ")")))) (- "-") (subscript_expression "local_20[0]" (identifier "local_20") ([ "[") (number_literal "0") (] "]")))) (; ";")) (if_statement "if (local_34 < 1) {\n        return iVar7;\n      }" (if "if") (parenthesized_expression "(local_34 < 1)" (( "(") (binary_expression "local_34 < 1" (identifier "local_34") (< "<") (number_literal "1")) () ")")) (compound_statement "{\n        return iVar7;\n      }" ({ "{") (return_statement "return iVar7;" (return "return") (identifier "iVar7") (; ";")) (} "}"))) (} "}"))) (} "}")) (while "while") (parenthesized_expression "( true )" (( "(") (true "true") () ")")) (; ";")) (} "}")))

/* WARNING: Function: __x86.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */

int __regparm3
function_1(type_1 *strm,char *contents,int in_size,type_2 **last_newf,type_3 *ob)

{
  type_4 *poVar1;
  int *piVar2;
  type_4 oVar3;
  type_5 var_8;
  char *var_3;
  type_2 *pfVar6;
  char *pcVar7;
  int var_10;
  int var_1;
  char *local_30 [3];
  char *next_out;
  int var_2;
  type_6 uStack_14;
  
  var_10 = 0;
  uStack_14 = 0x3f85b;
  pfVar6 = *last_newf;
  var_1 = in_size;
  local_30[0] = contents;
  do {
    if (var_1 < 1) {
      return var_10;
    }
    while( true ) {
      pcVar7 = ob->chunk_limit;
      var_3 = ob->next_free;
      var_2 = (int)pcVar7 - (int)var_3;
      if (var_2 < 1) {
        if (var_3 == ob->object_base) {
          ob->field_0x28 = ob->field_0x28 | 2;
        }
        var_3 = (char *)((type_5)(var_3 + ob->alignment_mask) & ~ob->alignment_mask);
        ob->next_free = var_3;
        if ((type_5)((int)pcVar7 - (int)ob->chunk) < (type_5)((int)var_3 - (int)ob->chunk)) {
          ob->next_free = pcVar7;
          var_3 = pcVar7;
        }
        ob->object_base = var_3;
        pfVar6 = var_4(ob);
        pcVar7 = ob->chunk_limit;
        pfVar6->fr_type = rs_fill;
        (*last_newf)->fr_next = pfVar6;
        *last_newf = pfVar6;
        var_3 = ob->next_free;
        var_2 = (int)pcVar7 - (int)var_3;
        if (var_2 < 1) {
          pcVar7 = (char *)var_5(0,"can\'t extend frag",5);
                    /* WARNING: Subroutine does not return */
          var_6(pcVar7);
        }
      }
      ob->next_free = var_3 + var_2;
      next_out = var_3;
      var_8 = var_7(strm,local_30,&var_1,&next_out,&var_2);
      if ((int)var_8 < 0) {
        return -1;
      }
      poVar1 = &pfVar6->fr_fix;
      oVar3 = *poVar1;
      *(type_5 *)poVar1 = (int)*poVar1 + var_8;
      piVar2 = (int *)((int)&pfVar6->fr_fix + 4);
      *piVar2 = *piVar2 + ((int)var_8 >> 0x1f) + (type_5)var_9((type_5)oVar3,var_8);
      var_10 = var_10 + var_8;
      if (var_2 < 1) break;
      ob->next_free = ob->next_free + -var_2;
      if (var_1 < 1) {
        return var_10;
      }
    }
  } while( true );
}


(translation_unit (function_definition type: (primitive_type) (ERROR (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: (primitive_type) declarator: (identifier)) (parameter_declaration type: (primitive_type) declarator: (pointer_declarator declarator: (identifier))) (parameter_declaration type: (primitive_type) declarator: (identifier)))) body: (compound_statement (declaration type: (type_identifier) declarator: (pointer_declarator declarator: (identifier))) (declaration type: (primitive_type) declarator: (identifier)) (declaration type: (type_identifier) declarator: (identifier)) (declaration type: (type_identifier) declarator: (identifier)) (declaration type: (primitive_type) declarator: (identifier)) (declaration type: (type_identifier) declarator: (identifier)) (declaration type: (primitive_type) declarator: (identifier)) (declaration type: (primitive_type) declarator: (identifier)) (declaration type: (type_identifier) declarator: (array_declarator declarator: (identifier) size: (number_literal))) (declaration type: (primitive_type) declarator: (identifier)) (declaration type: (primitive_type) declarator: (array_declarator declarator: (identifier) size: (number_literal))) (declaration type: (type_identifier) declarator: (identifier)) (expression_statement (assignment_expression left: (identifier) right: (number_literal))) (expression_statement (assignment_expression left: (identifier) right: (number_literal))) (expression_statement (assignment_expression left: (identifier) right: (pointer_expression argument: (identifier)))) (expression_statement (assignment_expression left: (identifier) right: (identifier))) (expression_statement (assignment_expression left: (subscript_expression argument: (identifier) index: (number_literal)) right: (identifier))) (do_statement body: (compound_statement (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))) consequence: (compound_statement (return_statement (identifier)))) (while_statement condition: (parenthesized_expression (true)) body: (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: (primitive_type) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))))))) (expression_statement (assignment_expression left: (subscript_expression argument: (identifier) index: (number_literal)) right: (binary_expression left: (identifier) right: (identifier)))) (if_statement condition: (parenthesized_expression (binary_expression left: (subscript_expression argument: (identifier) index: (number_literal)) right: (number_literal))) consequence: (compound_statement (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 (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)))))) (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (binary_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)))))) right: (unary_expression argument: (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: (identifier))) (if_statement condition: (parenthesized_expression (binary_expression left: (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)))))) right: (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 (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: (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: (call_expression function: (identifier) arguments: (argument_list (identifier))))) (expression_statement (assignment_expression left: (subscript_expression argument: (identifier) index: (number_literal)) 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))))))) (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: (primitive_type) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (pointer_expression argument: (identifier)) right: (number_literal))))) right: (identifier))) (expression_statement (assignment_expression left: (pointer_expression argument: (identifier)) right: (identifier))) (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))))))) (expression_statement (assignment_expression left: (subscript_expression argument: (identifier) index: (number_literal)) right: (binary_expression left: (subscript_expression argument: (identifier) index: (number_literal)) right: (identifier)))) (if_statement condition: (parenthesized_expression (binary_expression left: (subscript_expression argument: (identifier) index: (number_literal)) right: (number_literal))) consequence: (compound_statement (expression_statement (assignment_expression left: (identifier) right: (call_expression function: (identifier) arguments: (argument_list (number_literal) (string_literal (string_content) (escape_sequence) (string_content)) (number_literal))))) (expression_statement (call_expression function: (identifier) arguments: (argument_list (identifier)))))))) (expression_statement (assignment_expression left: (pointer_expression argument: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))))) right: (binary_expression left: (identifier) right: (subscript_expression argument: (identifier) index: (number_literal))))) (expression_statement (assignment_expression left: (identifier) right: (identifier))) (expression_statement (assignment_expression left: (identifier) right: (call_expression function: (identifier) arguments: (argument_list (identifier) (identifier) (pointer_expression argument: (identifier)) (pointer_expression argument: (identifier)) (identifier))))) (if_statement condition: (parenthesized_expression (binary_expression left: (cast_expression type: (type_descriptor type: (primitive_type)) value: (identifier)) right: (number_literal))) consequence: (compound_statement (return_statement (number_literal)))) (expression_statement (assignment_expression left: (identifier) right: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal)))))) (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: (pointer_expression argument: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))))) right: (binary_expression left: (binary_expression left: (pointer_expression argument: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))))) right: (parenthesized_expression (binary_expression left: (cast_expression type: (type_descriptor type: (primitive_type)) value: (identifier)) right: (number_literal)))) right: (cast_expression type: (type_descriptor type: (type_identifier)) value: (call_expression function: (identifier) arguments: (argument_list (identifier) (identifier))))))) (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (identifier) right: (identifier)))) (if_statement condition: (parenthesized_expression (binary_expression left: (subscript_expression argument: (identifier) index: (number_literal)) right: (number_literal))) consequence: (break_statement)) (expression_statement (assignment_expression left: (pointer_expression argument: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))))) right: (binary_expression left: (pointer_expression argument: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))))) right: (subscript_expression argument: (identifier) index: (number_literal))))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))) consequence: (compound_statement (return_statement (identifier))))))) condition: (parenthesized_expression (true))))))

/* WARNING: Function: __i686.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */

int __regparm3
MASKED(undefined4 param_1,undefined4 param_2,int param_3,int *param_4,int param_5)

{
  uint *puVar1;
  int iVar2;
  uint uVar3;
  uint uVar4;
  int iVar5;
  undefined4 uVar6;
  int iVar7;
  int local_34;
  undefined4 local_30 [3];
  int local_24;
  int local_20 [3];
  undefined4 uStack_14;
  
  iVar7 = 0;
  uStack_14 = 0x3f85b;
  iVar5 = *param_4;
  local_34 = param_3;
  local_30[0] = param_2;
  do {
    if (local_34 < 1) {
      return iVar7;
    }
    while( true ) {
      uVar3 = *(uint *)(param_5 + 0x10);
      iVar2 = *(int *)(param_5 + 0xc);
      local_20[0] = uVar3 - iVar2;
      if (local_20[0] < 1) {
        if (iVar2 == *(int *)(param_5 + 8)) {
          *(byte *)(param_5 + 0x28) = *(byte *)(param_5 + 0x28) | 2;
        }
        uVar4 = iVar2 + *(uint *)(param_5 + 0x18) & ~*(uint *)(param_5 + 0x18);
        *(uint *)(param_5 + 0xc) = uVar4;
        if (uVar3 - *(int *)(param_5 + 4) < uVar4 - *(int *)(param_5 + 4)) {
          *(uint *)(param_5 + 0xc) = uVar3;
          uVar4 = uVar3;
        }
        *(uint *)(param_5 + 8) = uVar4;
        iVar5 = FUN_00027650(param_5);
        local_20[0] = *(int *)(param_5 + 0x10);
        *(undefined4 *)(iVar5 + 0x44) = 1;
        *(int *)(*param_4 + 0x30) = iVar5;
        *param_4 = iVar5;
        iVar2 = *(int *)(param_5 + 0xc);
        local_20[0] = local_20[0] - iVar2;
        if (local_20[0] < 1) {
          uVar6 = dcgettext(0,"can\'t extend frag",5);
                    /* WARNING: Subroutine does not return */
          FUN_0002ed30(uVar6);
        }
      }
      *(int *)(param_5 + 0xc) = iVar2 + local_20[0];
      local_24 = iVar2;
      uVar3 = FUN_0001b550(param_1,local_30,&local_34,&local_24,local_20);
      if ((int)uVar3 < 0) {
        return -1;
      }
      puVar1 = (uint *)(iVar5 + 0x10);
      uVar4 = *puVar1;
      *puVar1 = *puVar1 + uVar3;
      *(int *)(iVar5 + 0x14) =
           *(int *)(iVar5 + 0x14) + ((int)uVar3 >> 0x1f) + (uint)CARRY4(uVar4,uVar3);
      iVar7 = iVar7 + uVar3;
      if (local_20[0] < 1) break;
      *(int *)(param_5 + 0xc) = *(int *)(param_5 + 0xc) - local_20[0];
      if (local_34 < 1) {
        return iVar7;
      }
    }
  } while( true );
}

