
/* WARNING: Function: __x86.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */
/* WARNING: Enum "anon_enum_32": Some values do not have unique names */

void __regparm3 sk_proxy_set_frozen(Socket s,int is_frozen)

{
  bufchain *ch;
  int iVar1;
  int iVar2;
  undefined4 *puVar3;
  char *pcVar4;
  int in_GS_OFFSET;
  byte bVar5;
  void *data;
  int len;
  char databuf [512];
  
  bVar5 = 0;
  iVar1 = *(int *)(in_GS_OFFSET + 0x14);
  ch = (bufchain *)(s + 0xd);
  iVar2 = bufchain_size(ch);
  if (iVar2 < 1) {
LAB_0001faa7:
    (**(code **)(s[2]->plug + 0x18))(s[2],is_frozen);
  }
  else {
    s[0x12] = (socket_function_table *)is_frozen;
    if (is_frozen == 0) {
      do {
        while( true ) {
          iVar2 = bufchain_size(ch);
          if (iVar2 < 1) {
            if (s[0x12] == (socket_function_table *)0x0) goto LAB_0001faa7;
            goto LAB_0001fa80;
          }
          bufchain_prefix(ch,&data,&len);
          iVar2 = len;
          if (0x200 < (uint)len) break;
          __memcpy_chk(databuf,data,len,0x200);
          bufchain_consume(ch,iVar2);
          (**(code **)(s[3]->plug + 8))(s[3],0,databuf,len);
          if (s[0x12] != (socket_function_table *)0x0) goto LAB_0001fa80;
        }
        len = 0x200;
        puVar3 = (undefined4 *)data;
        pcVar4 = databuf;
        for (iVar2 = 0x80; iVar2 != 0; iVar2 = iVar2 + -1) {
          *(undefined4 *)pcVar4 = *puVar3;
          puVar3 = puVar3 + (uint)bVar5 * -2 + 1;
          pcVar4 = pcVar4 + (uint)bVar5 * -8 + 4;
        }
        bufchain_consume(ch,0x200);
        (**(code **)(s[3]->plug + 8))(s[3],0,databuf,len);
      } while (s[0x12] == (socket_function_table *)0x0);
    }
  }
LAB_0001fa80:
  if (iVar1 != *(int *)(in_GS_OFFSET + 0x14)) {
                    /* WARNING: Subroutine does not return */
    __stack_chk_fail_local();
  }
  return;
}



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

void __regparm3 FUN_0001f960(int param_1,int param_2)

{
  int iVar1;
  uint uVar2;
  int iVar3;
  undefined4 *puVar4;
  undefined4 *puVar5;
  int in_GS_OFFSET;
  byte bVar6;
  undefined4 *local_228;
  uint local_224;
  undefined4 local_220 [128];
  int local_20;
  undefined4 uStack_14;
  
  bVar6 = 0;
  uStack_14 = 0x1f96b;
  local_20 = *(int *)(in_GS_OFFSET + 0x14);
  iVar1 = param_1 + 0x34;
  iVar3 = FUN_0001d890(iVar1);
  if (iVar3 < 1) {
LAB_0001faa7:
    (**(code **)(**(int **)(param_1 + 8) + 0x18))(*(int **)(param_1 + 8),param_2);
  }
  else {
    *(int *)(param_1 + 0x48) = param_2;
    if (param_2 == 0) {
      do {
        while( true ) {
          iVar3 = FUN_0001d890(iVar1);
          if (iVar3 < 1) {
            if (*(int *)(param_1 + 0x48) == 0) goto LAB_0001faa7;
            goto LAB_0001fa80;
          }
          FUN_0001dac0(iVar1,&local_228,&local_224);
          uVar2 = local_224;
          if (0x200 < local_224) break;
          __memcpy_chk(local_220,local_228,local_224,0x200);
          FUN_0001da00(iVar1,uVar2);
          (**(code **)(**(int **)(param_1 + 0xc) + 8))
                    (*(int **)(param_1 + 0xc),0,local_220,local_224);
          if (*(int *)(param_1 + 0x48) != 0) goto LAB_0001fa80;
        }
        local_224 = 0x200;
        puVar4 = local_228;
        puVar5 = local_220;
        for (iVar3 = 0x80; iVar3 != 0; iVar3 = iVar3 + -1) {
          *puVar5 = *puVar4;
          puVar4 = puVar4 + (uint)bVar6 * -2 + 1;
          puVar5 = puVar5 + (uint)bVar6 * -2 + 1;
        }
        FUN_0001da00(iVar1,0x200);
        (**(code **)(**(int **)(param_1 + 0xc) + 8))(*(int **)(param_1 + 0xc),0,local_220,local_224)
        ;
      } while (*(int *)(param_1 + 0x48) == 0);
    }
  }
LAB_0001fa80:
  if (local_20 != *(int *)(in_GS_OFFSET + 0x14)) {
                    /* WARNING: Subroutine does not return */
    FUN_0008d800();
  }
  return;
}


PUSH EBP
MOV EBP,EAX
PUSH EDI
PUSH ESI
PUSH EBX
CALL 0x000149a0
ADD EBX,0xad405
SUB ESP,0x238
MOV dword ptr [ESP + 0x18],EDX
MOV EAX,GS:[0x14]
MOV dword ptr [ESP + 0x228],EAX
XOR EAX,EAX
LEA EAX,[EBP + 0x34]
MOV dword ptr [ESP + 0xc],EAX
PUSH EAX
CALL 0x0001d890
ADD ESP,0x10
TEST EAX,EAX
JLE 0x0001faa7
LEA ECX,[ESP + 0x18]
MOV EAX,dword ptr [ESP + 0xc]
MOV dword ptr [ESP + 0x4],ECX
LEA ECX,[ESP + 0x14]
MOV dword ptr [EBP + 0x48],EAX
MOV dword ptr [ESP + 0x8],ECX
TEST EAX,EAX
JZ 0x0001fa0e
JMP 0x0001fa80
MOV dword ptr [ESP + 0x18],0x200
MOV ESI,dword ptr [ESP + 0x14]
LEA EDI,[ESP + 0x1c]
SUB ESP,0x8
MOV ECX,0x80
MOVSD.REP ES:EDI,ESI
PUSH 0x200
PUSH dword ptr [ESP + 0xc]
CALL 0x0001da00
MOV EAX,dword ptr [EBP + 0xc]
MOV EDX,dword ptr [EAX]
PUSH dword ptr [ESP + 0x28]
LEA ECX,[ESP + 0x30]
PUSH ECX
PUSH 0x0
PUSH EAX
CALL dword ptr [EDX + 0x8]
MOV EDX,dword ptr [EBP + 0x48]
ADD ESP,0x20
TEST EDX,EDX
JNZ 0x0001fa80
SUB ESP,0xc
PUSH dword ptr [ESP + 0xc]
CALL 0x0001d890
ADD ESP,0x10
TEST EAX,EAX
JLE 0x0001faa0
SUB ESP,0x4
PUSH dword ptr [ESP + 0x8]
PUSH dword ptr [ESP + 0x10]
PUSH dword ptr [ESP + 0xc]
CALL 0x0001dac0
MOV ESI,dword ptr [ESP + 0x28]
ADD ESP,0x10
CMP ESI,0x200
JA 0x0001f9c8
PUSH 0x200
PUSH ESI
PUSH dword ptr [ESP + 0x1c]
LEA EDI,[ESP + 0x28]
PUSH EDI
CALL 0x00014390
POP ECX
POP EAX
PUSH ESI
PUSH dword ptr [ESP + 0xc]
CALL 0x0001da00
MOV EAX,dword ptr [EBP + 0xc]
MOV EDX,dword ptr [EAX]
PUSH dword ptr [ESP + 0x28]
PUSH EDI
PUSH 0x0
PUSH EAX
CALL dword ptr [EDX + 0x8]
MOV EDX,dword ptr [EBP + 0x48]
ADD ESP,0x20
TEST EDX,EDX
JZ 0x0001fa0e
NOP
MOV EAX,dword ptr [ESP + 0x21c]
XOR EAX,dword ptr GS:[0x14]
JNZ 0x0001fabc
ADD ESP,0x22c
POP EBX
POP ESI
POP EDI
POP EBP
RET
MOV EAX,dword ptr [EBP + 0x48]
TEST EAX,EAX
JNZ 0x0001fa80
MOV EAX,dword ptr [EBP + 0x8]
SUB ESP,0x8
MOV EDX,dword ptr [EAX]
PUSH dword ptr [ESP + 0x14]
PUSH EAX
CALL dword ptr [EDX + 0x18]
ADD ESP,0x10
JMP 0x0001fa80
CALL 0x0008d800
(translation_unit "/* WARNING: Function: __i686.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */\n\nvoid __regparm3 FUN_0001f960(int param_1,int param_2)\n\n{\n  int iVar1;\n  uint uVar2;\n  int iVar3;\n  undefined4 *puVar4;\n  undefined4 *puVar5;\n  int in_GS_OFFSET;\n  byte bVar6;\n  undefined4 *local_228;\n  uint local_224;\n  undefined4 local_220 [128];\n  int local_20;\n  undefined4 uStack_14;\n  \n  bVar6 = 0;\n  uStack_14 = 0x1f96b;\n  local_20 = *(int *)(in_GS_OFFSET + 0x14);\n  iVar1 = param_1 + 0x34;\n  iVar3 = FUN_0001d890(iVar1);\n  if (iVar3 < 1) {\nLAB_0001faa7:\n    (**(code **)(**(int **)(param_1 + 8) + 0x18))(*(int **)(param_1 + 8),param_2);\n  }\n  else {\n    *(int *)(param_1 + 0x48) = param_2;\n    if (param_2 == 0) {\n      do {\n        while( true ) {\n          iVar3 = FUN_0001d890(iVar1);\n          if (iVar3 < 1) {\n            if (*(int *)(param_1 + 0x48) == 0) goto LAB_0001faa7;\n            goto LAB_0001fa80;\n          }\n          FUN_0001dac0(iVar1,&local_228,&local_224);\n          uVar2 = local_224;\n          if (0x200 < local_224) break;\n          __memcpy_chk(local_220,local_228,local_224,0x200);\n          FUN_0001da00(iVar1,uVar2);\n          (**(code **)(**(int **)(param_1 + 0xc) + 8))\n                    (*(int **)(param_1 + 0xc),0,local_220,local_224);\n          if (*(int *)(param_1 + 0x48) != 0) goto LAB_0001fa80;\n        }\n        local_224 = 0x200;\n        puVar4 = local_228;\n        puVar5 = local_220;\n        for (iVar3 = 0x80; iVar3 != 0; iVar3 = iVar3 + -1) {\n          *puVar5 = *puVar4;\n          puVar4 = puVar4 + (uint)bVar6 * -2 + 1;\n          puVar5 = puVar5 + (uint)bVar6 * -2 + 1;\n        }\n        FUN_0001da00(iVar1,0x200);\n        (**(code **)(**(int **)(param_1 + 0xc) + 8))(*(int **)(param_1 + 0xc),0,local_220,local_224)\n        ;\n      } while (*(int *)(param_1 + 0x48) == 0);\n    }\n  }\nLAB_0001fa80:\n  if (local_20 != *(int *)(in_GS_OFFSET + 0x14)) {\n                    /* WARNING: Subroutine does not return */\n    FUN_0008d800();\n  }\n  return;\n}\n\n" comment (function_definition "void __regparm3 FUN_0001f960(int param_1,int param_2)\n\n{\n  int iVar1;\n  uint uVar2;\n  int iVar3;\n  undefined4 *puVar4;\n  undefined4 *puVar5;\n  int in_GS_OFFSET;\n  byte bVar6;\n  undefined4 *local_228;\n  uint local_224;\n  undefined4 local_220 [128];\n  int local_20;\n  undefined4 uStack_14;\n  \n  bVar6 = 0;\n  uStack_14 = 0x1f96b;\n  local_20 = *(int *)(in_GS_OFFSET + 0x14);\n  iVar1 = param_1 + 0x34;\n  iVar3 = FUN_0001d890(iVar1);\n  if (iVar3 < 1) {\nLAB_0001faa7:\n    (**(code **)(**(int **)(param_1 + 8) + 0x18))(*(int **)(param_1 + 8),param_2);\n  }\n  else {\n    *(int *)(param_1 + 0x48) = param_2;\n    if (param_2 == 0) {\n      do {\n        while( true ) {\n          iVar3 = FUN_0001d890(iVar1);\n          if (iVar3 < 1) {\n            if (*(int *)(param_1 + 0x48) == 0) goto LAB_0001faa7;\n            goto LAB_0001fa80;\n          }\n          FUN_0001dac0(iVar1,&local_228,&local_224);\n          uVar2 = local_224;\n          if (0x200 < local_224) break;\n          __memcpy_chk(local_220,local_228,local_224,0x200);\n          FUN_0001da00(iVar1,uVar2);\n          (**(code **)(**(int **)(param_1 + 0xc) + 8))\n                    (*(int **)(param_1 + 0xc),0,local_220,local_224);\n          if (*(int *)(param_1 + 0x48) != 0) goto LAB_0001fa80;\n        }\n        local_224 = 0x200;\n        puVar4 = local_228;\n        puVar5 = local_220;\n        for (iVar3 = 0x80; iVar3 != 0; iVar3 = iVar3 + -1) {\n          *puVar5 = *puVar4;\n          puVar4 = puVar4 + (uint)bVar6 * -2 + 1;\n          puVar5 = puVar5 + (uint)bVar6 * -2 + 1;\n        }\n        FUN_0001da00(iVar1,0x200);\n        (**(code **)(**(int **)(param_1 + 0xc) + 8))(*(int **)(param_1 + 0xc),0,local_220,local_224)\n        ;\n      } while (*(int *)(param_1 + 0x48) == 0);\n    }\n  }\nLAB_0001fa80:\n  if (local_20 != *(int *)(in_GS_OFFSET + 0x14)) {\n                    /* WARNING: Subroutine does not return */\n    FUN_0008d800();\n  }\n  return;\n}" primitive_type (ERROR "__regparm3" identifier) (function_declarator "FUN_0001f960(int param_1,int param_2)" identifier (parameter_list "(int param_1,int param_2)" ( (parameter_declaration "int param_1" primitive_type identifier) , (parameter_declaration "int param_2" primitive_type identifier) ))) (compound_statement "{\n  int iVar1;\n  uint uVar2;\n  int iVar3;\n  undefined4 *puVar4;\n  undefined4 *puVar5;\n  int in_GS_OFFSET;\n  byte bVar6;\n  undefined4 *local_228;\n  uint local_224;\n  undefined4 local_220 [128];\n  int local_20;\n  undefined4 uStack_14;\n  \n  bVar6 = 0;\n  uStack_14 = 0x1f96b;\n  local_20 = *(int *)(in_GS_OFFSET + 0x14);\n  iVar1 = param_1 + 0x34;\n  iVar3 = FUN_0001d890(iVar1);\n  if (iVar3 < 1) {\nLAB_0001faa7:\n    (**(code **)(**(int **)(param_1 + 8) + 0x18))(*(int **)(param_1 + 8),param_2);\n  }\n  else {\n    *(int *)(param_1 + 0x48) = param_2;\n    if (param_2 == 0) {\n      do {\n        while( true ) {\n          iVar3 = FUN_0001d890(iVar1);\n          if (iVar3 < 1) {\n            if (*(int *)(param_1 + 0x48) == 0) goto LAB_0001faa7;\n            goto LAB_0001fa80;\n          }\n          FUN_0001dac0(iVar1,&local_228,&local_224);\n          uVar2 = local_224;\n          if (0x200 < local_224) break;\n          __memcpy_chk(local_220,local_228,local_224,0x200);\n          FUN_0001da00(iVar1,uVar2);\n          (**(code **)(**(int **)(param_1 + 0xc) + 8))\n                    (*(int **)(param_1 + 0xc),0,local_220,local_224);\n          if (*(int *)(param_1 + 0x48) != 0) goto LAB_0001fa80;\n        }\n        local_224 = 0x200;\n        puVar4 = local_228;\n        puVar5 = local_220;\n        for (iVar3 = 0x80; iVar3 != 0; iVar3 = iVar3 + -1) {\n          *puVar5 = *puVar4;\n          puVar4 = puVar4 + (uint)bVar6 * -2 + 1;\n          puVar5 = puVar5 + (uint)bVar6 * -2 + 1;\n        }\n        FUN_0001da00(iVar1,0x200);\n        (**(code **)(**(int **)(param_1 + 0xc) + 8))(*(int **)(param_1 + 0xc),0,local_220,local_224)\n        ;\n      } while (*(int *)(param_1 + 0x48) == 0);\n    }\n  }\nLAB_0001fa80:\n  if (local_20 != *(int *)(in_GS_OFFSET + 0x14)) {\n                    /* WARNING: Subroutine does not return */\n    FUN_0008d800();\n  }\n  return;\n}" { (declaration "int iVar1;" primitive_type identifier ;) (declaration "uint uVar2;" type_identifier identifier ;) (declaration "int iVar3;" primitive_type identifier ;) (declaration "undefined4 *puVar4;" type_identifier (pointer_declarator "*puVar4" * identifier) ;) (declaration "undefined4 *puVar5;" type_identifier (pointer_declarator "*puVar5" * identifier) ;) (declaration "int in_GS_OFFSET;" primitive_type identifier ;) (declaration "byte bVar6;" type_identifier identifier ;) (declaration "undefined4 *local_228;" type_identifier (pointer_declarator "*local_228" * identifier) ;) (declaration "uint local_224;" type_identifier identifier ;) (declaration "undefined4 local_220 [128];" type_identifier (array_declarator "local_220 [128]" identifier [ number_literal ]) ;) (declaration "int local_20;" primitive_type identifier ;) (declaration "undefined4 uStack_14;" type_identifier identifier ;) (expression_statement "bVar6 = 0;" (assignment_expression "bVar6 = 0" identifier = number_literal) ;) (expression_statement "uStack_14 = 0x1f96b;" (assignment_expression "uStack_14 = 0x1f96b" identifier = number_literal) ;) (expression_statement "local_20 = *(int *)(in_GS_OFFSET + 0x14);" (assignment_expression "local_20 = *(int *)(in_GS_OFFSET + 0x14)" identifier = (pointer_expression "*(int *)(in_GS_OFFSET + 0x14)" * (cast_expression "(int *)(in_GS_OFFSET + 0x14)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(in_GS_OFFSET + 0x14)" ( (binary_expression "in_GS_OFFSET + 0x14" identifier + number_literal) ))))) ;) (expression_statement "iVar1 = param_1 + 0x34;" (assignment_expression "iVar1 = param_1 + 0x34" identifier = (binary_expression "param_1 + 0x34" identifier + number_literal)) ;) (expression_statement "iVar3 = FUN_0001d890(iVar1);" (assignment_expression "iVar3 = FUN_0001d890(iVar1)" identifier = (call_expression "FUN_0001d890(iVar1)" identifier (argument_list "(iVar1)" ( identifier )))) ;) (if_statement "if (iVar3 < 1) {\nLAB_0001faa7:\n    (**(code **)(**(int **)(param_1 + 8) + 0x18))(*(int **)(param_1 + 8),param_2);\n  }\n  else {\n    *(int *)(param_1 + 0x48) = param_2;\n    if (param_2 == 0) {\n      do {\n        while( true ) {\n          iVar3 = FUN_0001d890(iVar1);\n          if (iVar3 < 1) {\n            if (*(int *)(param_1 + 0x48) == 0) goto LAB_0001faa7;\n            goto LAB_0001fa80;\n          }\n          FUN_0001dac0(iVar1,&local_228,&local_224);\n          uVar2 = local_224;\n          if (0x200 < local_224) break;\n          __memcpy_chk(local_220,local_228,local_224,0x200);\n          FUN_0001da00(iVar1,uVar2);\n          (**(code **)(**(int **)(param_1 + 0xc) + 8))\n                    (*(int **)(param_1 + 0xc),0,local_220,local_224);\n          if (*(int *)(param_1 + 0x48) != 0) goto LAB_0001fa80;\n        }\n        local_224 = 0x200;\n        puVar4 = local_228;\n        puVar5 = local_220;\n        for (iVar3 = 0x80; iVar3 != 0; iVar3 = iVar3 + -1) {\n          *puVar5 = *puVar4;\n          puVar4 = puVar4 + (uint)bVar6 * -2 + 1;\n          puVar5 = puVar5 + (uint)bVar6 * -2 + 1;\n        }\n        FUN_0001da00(iVar1,0x200);\n        (**(code **)(**(int **)(param_1 + 0xc) + 8))(*(int **)(param_1 + 0xc),0,local_220,local_224)\n        ;\n      } while (*(int *)(param_1 + 0x48) == 0);\n    }\n  }" if (parenthesized_expression "(iVar3 < 1)" ( (binary_expression "iVar3 < 1" identifier < number_literal) )) (compound_statement "{\nLAB_0001faa7:\n    (**(code **)(**(int **)(param_1 + 8) + 0x18))(*(int **)(param_1 + 8),param_2);\n  }" { (labeled_statement "LAB_0001faa7:\n    (**(code **)(**(int **)(param_1 + 8) + 0x18))(*(int **)(param_1 + 8),param_2);" statement_identifier : (expression_statement "(**(code **)(**(int **)(param_1 + 8) + 0x18))(*(int **)(param_1 + 8),param_2);" (call_expression "(**(code **)(**(int **)(param_1 + 8) + 0x18))(*(int **)(param_1 + 8),param_2)" (parenthesized_expression "(**(code **)(**(int **)(param_1 + 8) + 0x18))" ( (pointer_expression "**(code **)(**(int **)(param_1 + 8) + 0x18)" * (pointer_expression "*(code **)(**(int **)(param_1 + 8) + 0x18)" * (cast_expression "(code **)(**(int **)(param_1 + 8) + 0x18)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(**(int **)(param_1 + 8) + 0x18)" ( (binary_expression "**(int **)(param_1 + 8) + 0x18" (pointer_expression "**(int **)(param_1 + 8)" * (pointer_expression "*(int **)(param_1 + 8)" * (cast_expression "(int **)(param_1 + 8)" ( (type_descriptor "int **" primitive_type (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(param_1 + 8)" ( (binary_expression "param_1 + 8" identifier + number_literal) ))))) + number_literal) ))))) )) (argument_list "(*(int **)(param_1 + 8),param_2)" ( (pointer_expression "*(int **)(param_1 + 8)" * (cast_expression "(int **)(param_1 + 8)" ( (type_descriptor "int **" primitive_type (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(param_1 + 8)" ( (binary_expression "param_1 + 8" identifier + number_literal) )))) , identifier ))) ;)) }) (else_clause "else {\n    *(int *)(param_1 + 0x48) = param_2;\n    if (param_2 == 0) {\n      do {\n        while( true ) {\n          iVar3 = FUN_0001d890(iVar1);\n          if (iVar3 < 1) {\n            if (*(int *)(param_1 + 0x48) == 0) goto LAB_0001faa7;\n            goto LAB_0001fa80;\n          }\n          FUN_0001dac0(iVar1,&local_228,&local_224);\n          uVar2 = local_224;\n          if (0x200 < local_224) break;\n          __memcpy_chk(local_220,local_228,local_224,0x200);\n          FUN_0001da00(iVar1,uVar2);\n          (**(code **)(**(int **)(param_1 + 0xc) + 8))\n                    (*(int **)(param_1 + 0xc),0,local_220,local_224);\n          if (*(int *)(param_1 + 0x48) != 0) goto LAB_0001fa80;\n        }\n        local_224 = 0x200;\n        puVar4 = local_228;\n        puVar5 = local_220;\n        for (iVar3 = 0x80; iVar3 != 0; iVar3 = iVar3 + -1) {\n          *puVar5 = *puVar4;\n          puVar4 = puVar4 + (uint)bVar6 * -2 + 1;\n          puVar5 = puVar5 + (uint)bVar6 * -2 + 1;\n        }\n        FUN_0001da00(iVar1,0x200);\n        (**(code **)(**(int **)(param_1 + 0xc) + 8))(*(int **)(param_1 + 0xc),0,local_220,local_224)\n        ;\n      } while (*(int *)(param_1 + 0x48) == 0);\n    }\n  }" else (compound_statement "{\n    *(int *)(param_1 + 0x48) = param_2;\n    if (param_2 == 0) {\n      do {\n        while( true ) {\n          iVar3 = FUN_0001d890(iVar1);\n          if (iVar3 < 1) {\n            if (*(int *)(param_1 + 0x48) == 0) goto LAB_0001faa7;\n            goto LAB_0001fa80;\n          }\n          FUN_0001dac0(iVar1,&local_228,&local_224);\n          uVar2 = local_224;\n          if (0x200 < local_224) break;\n          __memcpy_chk(local_220,local_228,local_224,0x200);\n          FUN_0001da00(iVar1,uVar2);\n          (**(code **)(**(int **)(param_1 + 0xc) + 8))\n                    (*(int **)(param_1 + 0xc),0,local_220,local_224);\n          if (*(int *)(param_1 + 0x48) != 0) goto LAB_0001fa80;\n        }\n        local_224 = 0x200;\n        puVar4 = local_228;\n        puVar5 = local_220;\n        for (iVar3 = 0x80; iVar3 != 0; iVar3 = iVar3 + -1) {\n          *puVar5 = *puVar4;\n          puVar4 = puVar4 + (uint)bVar6 * -2 + 1;\n          puVar5 = puVar5 + (uint)bVar6 * -2 + 1;\n        }\n        FUN_0001da00(iVar1,0x200);\n        (**(code **)(**(int **)(param_1 + 0xc) + 8))(*(int **)(param_1 + 0xc),0,local_220,local_224)\n        ;\n      } while (*(int *)(param_1 + 0x48) == 0);\n    }\n  }" { (expression_statement "*(int *)(param_1 + 0x48) = param_2;" (assignment_expression "*(int *)(param_1 + 0x48) = param_2" (pointer_expression "*(int *)(param_1 + 0x48)" * (cast_expression "(int *)(param_1 + 0x48)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x48)" ( (binary_expression "param_1 + 0x48" identifier + number_literal) )))) = identifier) ;) (if_statement "if (param_2 == 0) {\n      do {\n        while( true ) {\n          iVar3 = FUN_0001d890(iVar1);\n          if (iVar3 < 1) {\n            if (*(int *)(param_1 + 0x48) == 0) goto LAB_0001faa7;\n            goto LAB_0001fa80;\n          }\n          FUN_0001dac0(iVar1,&local_228,&local_224);\n          uVar2 = local_224;\n          if (0x200 < local_224) break;\n          __memcpy_chk(local_220,local_228,local_224,0x200);\n          FUN_0001da00(iVar1,uVar2);\n          (**(code **)(**(int **)(param_1 + 0xc) + 8))\n                    (*(int **)(param_1 + 0xc),0,local_220,local_224);\n          if (*(int *)(param_1 + 0x48) != 0) goto LAB_0001fa80;\n        }\n        local_224 = 0x200;\n        puVar4 = local_228;\n        puVar5 = local_220;\n        for (iVar3 = 0x80; iVar3 != 0; iVar3 = iVar3 + -1) {\n          *puVar5 = *puVar4;\n          puVar4 = puVar4 + (uint)bVar6 * -2 + 1;\n          puVar5 = puVar5 + (uint)bVar6 * -2 + 1;\n        }\n        FUN_0001da00(iVar1,0x200);\n        (**(code **)(**(int **)(param_1 + 0xc) + 8))(*(int **)(param_1 + 0xc),0,local_220,local_224)\n        ;\n      } while (*(int *)(param_1 + 0x48) == 0);\n    }" if (parenthesized_expression "(param_2 == 0)" ( (binary_expression "param_2 == 0" identifier == number_literal) )) (compound_statement "{\n      do {\n        while( true ) {\n          iVar3 = FUN_0001d890(iVar1);\n          if (iVar3 < 1) {\n            if (*(int *)(param_1 + 0x48) == 0) goto LAB_0001faa7;\n            goto LAB_0001fa80;\n          }\n          FUN_0001dac0(iVar1,&local_228,&local_224);\n          uVar2 = local_224;\n          if (0x200 < local_224) break;\n          __memcpy_chk(local_220,local_228,local_224,0x200);\n          FUN_0001da00(iVar1,uVar2);\n          (**(code **)(**(int **)(param_1 + 0xc) + 8))\n                    (*(int **)(param_1 + 0xc),0,local_220,local_224);\n          if (*(int *)(param_1 + 0x48) != 0) goto LAB_0001fa80;\n        }\n        local_224 = 0x200;\n        puVar4 = local_228;\n        puVar5 = local_220;\n        for (iVar3 = 0x80; iVar3 != 0; iVar3 = iVar3 + -1) {\n          *puVar5 = *puVar4;\n          puVar4 = puVar4 + (uint)bVar6 * -2 + 1;\n          puVar5 = puVar5 + (uint)bVar6 * -2 + 1;\n        }\n        FUN_0001da00(iVar1,0x200);\n        (**(code **)(**(int **)(param_1 + 0xc) + 8))(*(int **)(param_1 + 0xc),0,local_220,local_224)\n        ;\n      } while (*(int *)(param_1 + 0x48) == 0);\n    }" { (do_statement "do {\n        while( true ) {\n          iVar3 = FUN_0001d890(iVar1);\n          if (iVar3 < 1) {\n            if (*(int *)(param_1 + 0x48) == 0) goto LAB_0001faa7;\n            goto LAB_0001fa80;\n          }\n          FUN_0001dac0(iVar1,&local_228,&local_224);\n          uVar2 = local_224;\n          if (0x200 < local_224) break;\n          __memcpy_chk(local_220,local_228,local_224,0x200);\n          FUN_0001da00(iVar1,uVar2);\n          (**(code **)(**(int **)(param_1 + 0xc) + 8))\n                    (*(int **)(param_1 + 0xc),0,local_220,local_224);\n          if (*(int *)(param_1 + 0x48) != 0) goto LAB_0001fa80;\n        }\n        local_224 = 0x200;\n        puVar4 = local_228;\n        puVar5 = local_220;\n        for (iVar3 = 0x80; iVar3 != 0; iVar3 = iVar3 + -1) {\n          *puVar5 = *puVar4;\n          puVar4 = puVar4 + (uint)bVar6 * -2 + 1;\n          puVar5 = puVar5 + (uint)bVar6 * -2 + 1;\n        }\n        FUN_0001da00(iVar1,0x200);\n        (**(code **)(**(int **)(param_1 + 0xc) + 8))(*(int **)(param_1 + 0xc),0,local_220,local_224)\n        ;\n      } while (*(int *)(param_1 + 0x48) == 0);" do (compound_statement "{\n        while( true ) {\n          iVar3 = FUN_0001d890(iVar1);\n          if (iVar3 < 1) {\n            if (*(int *)(param_1 + 0x48) == 0) goto LAB_0001faa7;\n            goto LAB_0001fa80;\n          }\n          FUN_0001dac0(iVar1,&local_228,&local_224);\n          uVar2 = local_224;\n          if (0x200 < local_224) break;\n          __memcpy_chk(local_220,local_228,local_224,0x200);\n          FUN_0001da00(iVar1,uVar2);\n          (**(code **)(**(int **)(param_1 + 0xc) + 8))\n                    (*(int **)(param_1 + 0xc),0,local_220,local_224);\n          if (*(int *)(param_1 + 0x48) != 0) goto LAB_0001fa80;\n        }\n        local_224 = 0x200;\n        puVar4 = local_228;\n        puVar5 = local_220;\n        for (iVar3 = 0x80; iVar3 != 0; iVar3 = iVar3 + -1) {\n          *puVar5 = *puVar4;\n          puVar4 = puVar4 + (uint)bVar6 * -2 + 1;\n          puVar5 = puVar5 + (uint)bVar6 * -2 + 1;\n        }\n        FUN_0001da00(iVar1,0x200);\n        (**(code **)(**(int **)(param_1 + 0xc) + 8))(*(int **)(param_1 + 0xc),0,local_220,local_224)\n        ;\n      }" { (while_statement "while( true ) {\n          iVar3 = FUN_0001d890(iVar1);\n          if (iVar3 < 1) {\n            if (*(int *)(param_1 + 0x48) == 0) goto LAB_0001faa7;\n            goto LAB_0001fa80;\n          }\n          FUN_0001dac0(iVar1,&local_228,&local_224);\n          uVar2 = local_224;\n          if (0x200 < local_224) break;\n          __memcpy_chk(local_220,local_228,local_224,0x200);\n          FUN_0001da00(iVar1,uVar2);\n          (**(code **)(**(int **)(param_1 + 0xc) + 8))\n                    (*(int **)(param_1 + 0xc),0,local_220,local_224);\n          if (*(int *)(param_1 + 0x48) != 0) goto LAB_0001fa80;\n        }" while (parenthesized_expression "( true )" ( true )) (compound_statement "{\n          iVar3 = FUN_0001d890(iVar1);\n          if (iVar3 < 1) {\n            if (*(int *)(param_1 + 0x48) == 0) goto LAB_0001faa7;\n            goto LAB_0001fa80;\n          }\n          FUN_0001dac0(iVar1,&local_228,&local_224);\n          uVar2 = local_224;\n          if (0x200 < local_224) break;\n          __memcpy_chk(local_220,local_228,local_224,0x200);\n          FUN_0001da00(iVar1,uVar2);\n          (**(code **)(**(int **)(param_1 + 0xc) + 8))\n                    (*(int **)(param_1 + 0xc),0,local_220,local_224);\n          if (*(int *)(param_1 + 0x48) != 0) goto LAB_0001fa80;\n        }" { (expression_statement "iVar3 = FUN_0001d890(iVar1);" (assignment_expression "iVar3 = FUN_0001d890(iVar1)" identifier = (call_expression "FUN_0001d890(iVar1)" identifier (argument_list "(iVar1)" ( identifier )))) ;) (if_statement "if (iVar3 < 1) {\n            if (*(int *)(param_1 + 0x48) == 0) goto LAB_0001faa7;\n            goto LAB_0001fa80;\n          }" if (parenthesized_expression "(iVar3 < 1)" ( (binary_expression "iVar3 < 1" identifier < number_literal) )) (compound_statement "{\n            if (*(int *)(param_1 + 0x48) == 0) goto LAB_0001faa7;\n            goto LAB_0001fa80;\n          }" { (if_statement "if (*(int *)(param_1 + 0x48) == 0) goto LAB_0001faa7;" if (parenthesized_expression "(*(int *)(param_1 + 0x48) == 0)" ( (binary_expression "*(int *)(param_1 + 0x48) == 0" (pointer_expression "*(int *)(param_1 + 0x48)" * (cast_expression "(int *)(param_1 + 0x48)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x48)" ( (binary_expression "param_1 + 0x48" identifier + number_literal) )))) == number_literal) )) (goto_statement "goto LAB_0001faa7;" goto statement_identifier ;)) (goto_statement "goto LAB_0001fa80;" goto statement_identifier ;) })) (expression_statement "FUN_0001dac0(iVar1,&local_228,&local_224);" (call_expression "FUN_0001dac0(iVar1,&local_228,&local_224)" identifier (argument_list "(iVar1,&local_228,&local_224)" ( identifier , (pointer_expression "&local_228" & identifier) , (pointer_expression "&local_224" & identifier) ))) ;) (expression_statement "uVar2 = local_224;" (assignment_expression "uVar2 = local_224" identifier = identifier) ;) (if_statement "if (0x200 < local_224) break;" if (parenthesized_expression "(0x200 < local_224)" ( (binary_expression "0x200 < local_224" number_literal < identifier) )) (break_statement "break;" break ;)) (expression_statement "__memcpy_chk(local_220,local_228,local_224,0x200);" (call_expression "__memcpy_chk(local_220,local_228,local_224,0x200)" identifier (argument_list "(local_220,local_228,local_224,0x200)" ( identifier , identifier , identifier , number_literal ))) ;) (expression_statement "FUN_0001da00(iVar1,uVar2);" (call_expression "FUN_0001da00(iVar1,uVar2)" identifier (argument_list "(iVar1,uVar2)" ( identifier , identifier ))) ;) (expression_statement "(**(code **)(**(int **)(param_1 + 0xc) + 8))\n                    (*(int **)(param_1 + 0xc),0,local_220,local_224);" (call_expression "(**(code **)(**(int **)(param_1 + 0xc) + 8))\n                    (*(int **)(param_1 + 0xc),0,local_220,local_224)" (parenthesized_expression "(**(code **)(**(int **)(param_1 + 0xc) + 8))" ( (pointer_expression "**(code **)(**(int **)(param_1 + 0xc) + 8)" * (pointer_expression "*(code **)(**(int **)(param_1 + 0xc) + 8)" * (cast_expression "(code **)(**(int **)(param_1 + 0xc) + 8)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(**(int **)(param_1 + 0xc) + 8)" ( (binary_expression "**(int **)(param_1 + 0xc) + 8" (pointer_expression "**(int **)(param_1 + 0xc)" * (pointer_expression "*(int **)(param_1 + 0xc)" * (cast_expression "(int **)(param_1 + 0xc)" ( (type_descriptor "int **" primitive_type (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(param_1 + 0xc)" ( (binary_expression "param_1 + 0xc" identifier + number_literal) ))))) + number_literal) ))))) )) (argument_list "(*(int **)(param_1 + 0xc),0,local_220,local_224)" ( (pointer_expression "*(int **)(param_1 + 0xc)" * (cast_expression "(int **)(param_1 + 0xc)" ( (type_descriptor "int **" primitive_type (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(param_1 + 0xc)" ( (binary_expression "param_1 + 0xc" identifier + number_literal) )))) , number_literal , identifier , identifier ))) ;) (if_statement "if (*(int *)(param_1 + 0x48) != 0) goto LAB_0001fa80;" if (parenthesized_expression "(*(int *)(param_1 + 0x48) != 0)" ( (binary_expression "*(int *)(param_1 + 0x48) != 0" (pointer_expression "*(int *)(param_1 + 0x48)" * (cast_expression "(int *)(param_1 + 0x48)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x48)" ( (binary_expression "param_1 + 0x48" identifier + number_literal) )))) != number_literal) )) (goto_statement "goto LAB_0001fa80;" goto statement_identifier ;)) })) (expression_statement "local_224 = 0x200;" (assignment_expression "local_224 = 0x200" identifier = number_literal) ;) (expression_statement "puVar4 = local_228;" (assignment_expression "puVar4 = local_228" identifier = identifier) ;) (expression_statement "puVar5 = local_220;" (assignment_expression "puVar5 = local_220" identifier = identifier) ;) (for_statement "for (iVar3 = 0x80; iVar3 != 0; iVar3 = iVar3 + -1) {\n          *puVar5 = *puVar4;\n          puVar4 = puVar4 + (uint)bVar6 * -2 + 1;\n          puVar5 = puVar5 + (uint)bVar6 * -2 + 1;\n        }" for ( (assignment_expression "iVar3 = 0x80" identifier = number_literal) ; (binary_expression "iVar3 != 0" identifier != number_literal) ; (assignment_expression "iVar3 = iVar3 + -1" identifier = (binary_expression "iVar3 + -1" identifier + number_literal)) ) (compound_statement "{\n          *puVar5 = *puVar4;\n          puVar4 = puVar4 + (uint)bVar6 * -2 + 1;\n          puVar5 = puVar5 + (uint)bVar6 * -2 + 1;\n        }" { (expression_statement "*puVar5 = *puVar4;" (assignment_expression "*puVar5 = *puVar4" (pointer_expression "*puVar5" * identifier) = (pointer_expression "*puVar4" * identifier)) ;) (expression_statement "puVar4 = puVar4 + (uint)bVar6 * -2 + 1;" (assignment_expression "puVar4 = puVar4 + (uint)bVar6 * -2 + 1" identifier = (binary_expression "puVar4 + (uint)bVar6 * -2 + 1" (binary_expression "puVar4 + (uint)bVar6 * -2" identifier + (binary_expression "(uint)bVar6 * -2" (cast_expression "(uint)bVar6" ( (type_descriptor "uint" type_identifier) ) identifier) * number_literal)) + number_literal)) ;) (expression_statement "puVar5 = puVar5 + (uint)bVar6 * -2 + 1;" (assignment_expression "puVar5 = puVar5 + (uint)bVar6 * -2 + 1" identifier = (binary_expression "puVar5 + (uint)bVar6 * -2 + 1" (binary_expression "puVar5 + (uint)bVar6 * -2" identifier + (binary_expression "(uint)bVar6 * -2" (cast_expression "(uint)bVar6" ( (type_descriptor "uint" type_identifier) ) identifier) * number_literal)) + number_literal)) ;) })) (expression_statement "FUN_0001da00(iVar1,0x200);" (call_expression "FUN_0001da00(iVar1,0x200)" identifier (argument_list "(iVar1,0x200)" ( identifier , number_literal ))) ;) (expression_statement "(**(code **)(**(int **)(param_1 + 0xc) + 8))(*(int **)(param_1 + 0xc),0,local_220,local_224)\n        ;" (call_expression "(**(code **)(**(int **)(param_1 + 0xc) + 8))(*(int **)(param_1 + 0xc),0,local_220,local_224)" (parenthesized_expression "(**(code **)(**(int **)(param_1 + 0xc) + 8))" ( (pointer_expression "**(code **)(**(int **)(param_1 + 0xc) + 8)" * (pointer_expression "*(code **)(**(int **)(param_1 + 0xc) + 8)" * (cast_expression "(code **)(**(int **)(param_1 + 0xc) + 8)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(**(int **)(param_1 + 0xc) + 8)" ( (binary_expression "**(int **)(param_1 + 0xc) + 8" (pointer_expression "**(int **)(param_1 + 0xc)" * (pointer_expression "*(int **)(param_1 + 0xc)" * (cast_expression "(int **)(param_1 + 0xc)" ( (type_descriptor "int **" primitive_type (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(param_1 + 0xc)" ( (binary_expression "param_1 + 0xc" identifier + number_literal) ))))) + number_literal) ))))) )) (argument_list "(*(int **)(param_1 + 0xc),0,local_220,local_224)" ( (pointer_expression "*(int **)(param_1 + 0xc)" * (cast_expression "(int **)(param_1 + 0xc)" ( (type_descriptor "int **" primitive_type (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(param_1 + 0xc)" ( (binary_expression "param_1 + 0xc" identifier + number_literal) )))) , number_literal , identifier , identifier ))) ;) }) while (parenthesized_expression "(*(int *)(param_1 + 0x48) == 0)" ( (binary_expression "*(int *)(param_1 + 0x48) == 0" (pointer_expression "*(int *)(param_1 + 0x48)" * (cast_expression "(int *)(param_1 + 0x48)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x48)" ( (binary_expression "param_1 + 0x48" identifier + number_literal) )))) == number_literal) )) ;) })) }))) (labeled_statement "LAB_0001fa80:\n  if (local_20 != *(int *)(in_GS_OFFSET + 0x14)) {\n                    /* WARNING: Subroutine does not return */\n    FUN_0008d800();\n  }" statement_identifier : (if_statement "if (local_20 != *(int *)(in_GS_OFFSET + 0x14)) {\n                    /* WARNING: Subroutine does not return */\n    FUN_0008d800();\n  }" if (parenthesized_expression "(local_20 != *(int *)(in_GS_OFFSET + 0x14))" ( (binary_expression "local_20 != *(int *)(in_GS_OFFSET + 0x14)" identifier != (pointer_expression "*(int *)(in_GS_OFFSET + 0x14)" * (cast_expression "(int *)(in_GS_OFFSET + 0x14)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(in_GS_OFFSET + 0x14)" ( (binary_expression "in_GS_OFFSET + 0x14" identifier + number_literal) ))))) )) (compound_statement "{\n                    /* WARNING: Subroutine does not return */\n    FUN_0008d800();\n  }" { comment (expression_statement "FUN_0008d800();" (call_expression "FUN_0008d800()" identifier (argument_list "()" ( ))) ;) }))) (return_statement "return;" return ;) })))
(translation_unit "/* WARNING: Function: __x86.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */\n/* WARNING: Enum "anon_enum_32": Some values do not have unique names */\n\nvoid __regparm3 sk_proxy_set_frozen(Socket s,int is_frozen)\n\n{\n  bufchain *ch;\n  int iVar1;\n  int iVar2;\n  undefined4 *puVar3;\n  char *pcVar4;\n  int in_GS_OFFSET;\n  byte bVar5;\n  void *data;\n  int len;\n  char databuf [512];\n  \n  bVar5 = 0;\n  iVar1 = *(int *)(in_GS_OFFSET + 0x14);\n  ch = (bufchain *)(s + 0xd);\n  iVar2 = bufchain_size(ch);\n  if (iVar2 < 1) {\nLAB_0001faa7:\n    (**(code **)(s[2]->plug + 0x18))(s[2],is_frozen);\n  }\n  else {\n    s[0x12] = (socket_function_table *)is_frozen;\n    if (is_frozen == 0) {\n      do {\n        while( true ) {\n          iVar2 = bufchain_size(ch);\n          if (iVar2 < 1) {\n            if (s[0x12] == (socket_function_table *)0x0) goto LAB_0001faa7;\n            goto LAB_0001fa80;\n          }\n          bufchain_prefix(ch,&data,&len);\n          iVar2 = len;\n          if (0x200 < (uint)len) break;\n          __memcpy_chk(databuf,data,len,0x200);\n          bufchain_consume(ch,iVar2);\n          (**(code **)(s[3]->plug + 8))(s[3],0,databuf,len);\n          if (s[0x12] != (socket_function_table *)0x0) goto LAB_0001fa80;\n        }\n        len = 0x200;\n        puVar3 = (undefined4 *)data;\n        pcVar4 = databuf;\n        for (iVar2 = 0x80; iVar2 != 0; iVar2 = iVar2 + -1) {\n          *(undefined4 *)pcVar4 = *puVar3;\n          puVar3 = puVar3 + (uint)bVar5 * -2 + 1;\n          pcVar4 = pcVar4 + (uint)bVar5 * -8 + 4;\n        }\n        bufchain_consume(ch,0x200);\n        (**(code **)(s[3]->plug + 8))(s[3],0,databuf,len);\n      } while (s[0x12] == (socket_function_table *)0x0);\n    }\n  }\nLAB_0001fa80:\n  if (iVar1 != *(int *)(in_GS_OFFSET + 0x14)) {\n                    /* WARNING: Subroutine does not return */\n    __stack_chk_fail_local();\n  }\n  return;\n}\n\n" comment comment (function_definition "void __regparm3 sk_proxy_set_frozen(Socket s,int is_frozen)\n\n{\n  bufchain *ch;\n  int iVar1;\n  int iVar2;\n  undefined4 *puVar3;\n  char *pcVar4;\n  int in_GS_OFFSET;\n  byte bVar5;\n  void *data;\n  int len;\n  char databuf [512];\n  \n  bVar5 = 0;\n  iVar1 = *(int *)(in_GS_OFFSET + 0x14);\n  ch = (bufchain *)(s + 0xd);\n  iVar2 = bufchain_size(ch);\n  if (iVar2 < 1) {\nLAB_0001faa7:\n    (**(code **)(s[2]->plug + 0x18))(s[2],is_frozen);\n  }\n  else {\n    s[0x12] = (socket_function_table *)is_frozen;\n    if (is_frozen == 0) {\n      do {\n        while( true ) {\n          iVar2 = bufchain_size(ch);\n          if (iVar2 < 1) {\n            if (s[0x12] == (socket_function_table *)0x0) goto LAB_0001faa7;\n            goto LAB_0001fa80;\n          }\n          bufchain_prefix(ch,&data,&len);\n          iVar2 = len;\n          if (0x200 < (uint)len) break;\n          __memcpy_chk(databuf,data,len,0x200);\n          bufchain_consume(ch,iVar2);\n          (**(code **)(s[3]->plug + 8))(s[3],0,databuf,len);\n          if (s[0x12] != (socket_function_table *)0x0) goto LAB_0001fa80;\n        }\n        len = 0x200;\n        puVar3 = (undefined4 *)data;\n        pcVar4 = databuf;\n        for (iVar2 = 0x80; iVar2 != 0; iVar2 = iVar2 + -1) {\n          *(undefined4 *)pcVar4 = *puVar3;\n          puVar3 = puVar3 + (uint)bVar5 * -2 + 1;\n          pcVar4 = pcVar4 + (uint)bVar5 * -8 + 4;\n        }\n        bufchain_consume(ch,0x200);\n        (**(code **)(s[3]->plug + 8))(s[3],0,databuf,len);\n      } while (s[0x12] == (socket_function_table *)0x0);\n    }\n  }\nLAB_0001fa80:\n  if (iVar1 != *(int *)(in_GS_OFFSET + 0x14)) {\n                    /* WARNING: Subroutine does not return */\n    __stack_chk_fail_local();\n  }\n  return;\n}" primitive_type (ERROR "__regparm3" identifier) (function_declarator "sk_proxy_set_frozen(Socket s,int is_frozen)" identifier (parameter_list "(Socket s,int is_frozen)" ( (parameter_declaration "Socket s" type_identifier identifier) , (parameter_declaration "int is_frozen" primitive_type identifier) ))) (compound_statement "{\n  bufchain *ch;\n  int iVar1;\n  int iVar2;\n  undefined4 *puVar3;\n  char *pcVar4;\n  int in_GS_OFFSET;\n  byte bVar5;\n  void *data;\n  int len;\n  char databuf [512];\n  \n  bVar5 = 0;\n  iVar1 = *(int *)(in_GS_OFFSET + 0x14);\n  ch = (bufchain *)(s + 0xd);\n  iVar2 = bufchain_size(ch);\n  if (iVar2 < 1) {\nLAB_0001faa7:\n    (**(code **)(s[2]->plug + 0x18))(s[2],is_frozen);\n  }\n  else {\n    s[0x12] = (socket_function_table *)is_frozen;\n    if (is_frozen == 0) {\n      do {\n        while( true ) {\n          iVar2 = bufchain_size(ch);\n          if (iVar2 < 1) {\n            if (s[0x12] == (socket_function_table *)0x0) goto LAB_0001faa7;\n            goto LAB_0001fa80;\n          }\n          bufchain_prefix(ch,&data,&len);\n          iVar2 = len;\n          if (0x200 < (uint)len) break;\n          __memcpy_chk(databuf,data,len,0x200);\n          bufchain_consume(ch,iVar2);\n          (**(code **)(s[3]->plug + 8))(s[3],0,databuf,len);\n          if (s[0x12] != (socket_function_table *)0x0) goto LAB_0001fa80;\n        }\n        len = 0x200;\n        puVar3 = (undefined4 *)data;\n        pcVar4 = databuf;\n        for (iVar2 = 0x80; iVar2 != 0; iVar2 = iVar2 + -1) {\n          *(undefined4 *)pcVar4 = *puVar3;\n          puVar3 = puVar3 + (uint)bVar5 * -2 + 1;\n          pcVar4 = pcVar4 + (uint)bVar5 * -8 + 4;\n        }\n        bufchain_consume(ch,0x200);\n        (**(code **)(s[3]->plug + 8))(s[3],0,databuf,len);\n      } while (s[0x12] == (socket_function_table *)0x0);\n    }\n  }\nLAB_0001fa80:\n  if (iVar1 != *(int *)(in_GS_OFFSET + 0x14)) {\n                    /* WARNING: Subroutine does not return */\n    __stack_chk_fail_local();\n  }\n  return;\n}" { (declaration "bufchain *ch;" type_identifier (pointer_declarator "*ch" * identifier) ;) (declaration "int iVar1;" primitive_type identifier ;) (declaration "int iVar2;" primitive_type identifier ;) (declaration "undefined4 *puVar3;" type_identifier (pointer_declarator "*puVar3" * identifier) ;) (declaration "char *pcVar4;" primitive_type (pointer_declarator "*pcVar4" * identifier) ;) (declaration "int in_GS_OFFSET;" primitive_type identifier ;) (declaration "byte bVar5;" type_identifier identifier ;) (declaration "void *data;" primitive_type (pointer_declarator "*data" * identifier) ;) (declaration "int len;" primitive_type identifier ;) (declaration "char databuf [512];" primitive_type (array_declarator "databuf [512]" identifier [ number_literal ]) ;) (expression_statement "bVar5 = 0;" (assignment_expression "bVar5 = 0" identifier = number_literal) ;) (expression_statement "iVar1 = *(int *)(in_GS_OFFSET + 0x14);" (assignment_expression "iVar1 = *(int *)(in_GS_OFFSET + 0x14)" identifier = (pointer_expression "*(int *)(in_GS_OFFSET + 0x14)" * (cast_expression "(int *)(in_GS_OFFSET + 0x14)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(in_GS_OFFSET + 0x14)" ( (binary_expression "in_GS_OFFSET + 0x14" identifier + number_literal) ))))) ;) (expression_statement "ch = (bufchain *)(s + 0xd);" (assignment_expression "ch = (bufchain *)(s + 0xd)" identifier = (cast_expression "(bufchain *)(s + 0xd)" ( (type_descriptor "bufchain *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(s + 0xd)" ( (binary_expression "s + 0xd" identifier + number_literal) )))) ;) (expression_statement "iVar2 = bufchain_size(ch);" (assignment_expression "iVar2 = bufchain_size(ch)" identifier = (call_expression "bufchain_size(ch)" identifier (argument_list "(ch)" ( identifier )))) ;) (if_statement "if (iVar2 < 1) {\nLAB_0001faa7:\n    (**(code **)(s[2]->plug + 0x18))(s[2],is_frozen);\n  }\n  else {\n    s[0x12] = (socket_function_table *)is_frozen;\n    if (is_frozen == 0) {\n      do {\n        while( true ) {\n          iVar2 = bufchain_size(ch);\n          if (iVar2 < 1) {\n            if (s[0x12] == (socket_function_table *)0x0) goto LAB_0001faa7;\n            goto LAB_0001fa80;\n          }\n          bufchain_prefix(ch,&data,&len);\n          iVar2 = len;\n          if (0x200 < (uint)len) break;\n          __memcpy_chk(databuf,data,len,0x200);\n          bufchain_consume(ch,iVar2);\n          (**(code **)(s[3]->plug + 8))(s[3],0,databuf,len);\n          if (s[0x12] != (socket_function_table *)0x0) goto LAB_0001fa80;\n        }\n        len = 0x200;\n        puVar3 = (undefined4 *)data;\n        pcVar4 = databuf;\n        for (iVar2 = 0x80; iVar2 != 0; iVar2 = iVar2 + -1) {\n          *(undefined4 *)pcVar4 = *puVar3;\n          puVar3 = puVar3 + (uint)bVar5 * -2 + 1;\n          pcVar4 = pcVar4 + (uint)bVar5 * -8 + 4;\n        }\n        bufchain_consume(ch,0x200);\n        (**(code **)(s[3]->plug + 8))(s[3],0,databuf,len);\n      } while (s[0x12] == (socket_function_table *)0x0);\n    }\n  }" if (parenthesized_expression "(iVar2 < 1)" ( (binary_expression "iVar2 < 1" identifier < number_literal) )) (compound_statement "{\nLAB_0001faa7:\n    (**(code **)(s[2]->plug + 0x18))(s[2],is_frozen);\n  }" { (labeled_statement "LAB_0001faa7:\n    (**(code **)(s[2]->plug + 0x18))(s[2],is_frozen);" statement_identifier : (expression_statement "(**(code **)(s[2]->plug + 0x18))(s[2],is_frozen);" (call_expression "(**(code **)(s[2]->plug + 0x18))(s[2],is_frozen)" (parenthesized_expression "(**(code **)(s[2]->plug + 0x18))" ( (pointer_expression "**(code **)(s[2]->plug + 0x18)" * (pointer_expression "*(code **)(s[2]->plug + 0x18)" * (cast_expression "(code **)(s[2]->plug + 0x18)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(s[2]->plug + 0x18)" ( (binary_expression "s[2]->plug + 0x18" (field_expression "s[2]->plug" (subscript_expression "s[2]" identifier [ number_literal ]) -> field_identifier) + number_literal) ))))) )) (argument_list "(s[2],is_frozen)" ( (subscript_expression "s[2]" identifier [ number_literal ]) , identifier ))) ;)) }) (else_clause "else {\n    s[0x12] = (socket_function_table *)is_frozen;\n    if (is_frozen == 0) {\n      do {\n        while( true ) {\n          iVar2 = bufchain_size(ch);\n          if (iVar2 < 1) {\n            if (s[0x12] == (socket_function_table *)0x0) goto LAB_0001faa7;\n            goto LAB_0001fa80;\n          }\n          bufchain_prefix(ch,&data,&len);\n          iVar2 = len;\n          if (0x200 < (uint)len) break;\n          __memcpy_chk(databuf,data,len,0x200);\n          bufchain_consume(ch,iVar2);\n          (**(code **)(s[3]->plug + 8))(s[3],0,databuf,len);\n          if (s[0x12] != (socket_function_table *)0x0) goto LAB_0001fa80;\n        }\n        len = 0x200;\n        puVar3 = (undefined4 *)data;\n        pcVar4 = databuf;\n        for (iVar2 = 0x80; iVar2 != 0; iVar2 = iVar2 + -1) {\n          *(undefined4 *)pcVar4 = *puVar3;\n          puVar3 = puVar3 + (uint)bVar5 * -2 + 1;\n          pcVar4 = pcVar4 + (uint)bVar5 * -8 + 4;\n        }\n        bufchain_consume(ch,0x200);\n        (**(code **)(s[3]->plug + 8))(s[3],0,databuf,len);\n      } while (s[0x12] == (socket_function_table *)0x0);\n    }\n  }" else (compound_statement "{\n    s[0x12] = (socket_function_table *)is_frozen;\n    if (is_frozen == 0) {\n      do {\n        while( true ) {\n          iVar2 = bufchain_size(ch);\n          if (iVar2 < 1) {\n            if (s[0x12] == (socket_function_table *)0x0) goto LAB_0001faa7;\n            goto LAB_0001fa80;\n          }\n          bufchain_prefix(ch,&data,&len);\n          iVar2 = len;\n          if (0x200 < (uint)len) break;\n          __memcpy_chk(databuf,data,len,0x200);\n          bufchain_consume(ch,iVar2);\n          (**(code **)(s[3]->plug + 8))(s[3],0,databuf,len);\n          if (s[0x12] != (socket_function_table *)0x0) goto LAB_0001fa80;\n        }\n        len = 0x200;\n        puVar3 = (undefined4 *)data;\n        pcVar4 = databuf;\n        for (iVar2 = 0x80; iVar2 != 0; iVar2 = iVar2 + -1) {\n          *(undefined4 *)pcVar4 = *puVar3;\n          puVar3 = puVar3 + (uint)bVar5 * -2 + 1;\n          pcVar4 = pcVar4 + (uint)bVar5 * -8 + 4;\n        }\n        bufchain_consume(ch,0x200);\n        (**(code **)(s[3]->plug + 8))(s[3],0,databuf,len);\n      } while (s[0x12] == (socket_function_table *)0x0);\n    }\n  }" { (expression_statement "s[0x12] = (socket_function_table *)is_frozen;" (assignment_expression "s[0x12] = (socket_function_table *)is_frozen" (subscript_expression "s[0x12]" identifier [ number_literal ]) = (cast_expression "(socket_function_table *)is_frozen" ( (type_descriptor "socket_function_table *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) ;) (if_statement "if (is_frozen == 0) {\n      do {\n        while( true ) {\n          iVar2 = bufchain_size(ch);\n          if (iVar2 < 1) {\n            if (s[0x12] == (socket_function_table *)0x0) goto LAB_0001faa7;\n            goto LAB_0001fa80;\n          }\n          bufchain_prefix(ch,&data,&len);\n          iVar2 = len;\n          if (0x200 < (uint)len) break;\n          __memcpy_chk(databuf,data,len,0x200);\n          bufchain_consume(ch,iVar2);\n          (**(code **)(s[3]->plug + 8))(s[3],0,databuf,len);\n          if (s[0x12] != (socket_function_table *)0x0) goto LAB_0001fa80;\n        }\n        len = 0x200;\n        puVar3 = (undefined4 *)data;\n        pcVar4 = databuf;\n        for (iVar2 = 0x80; iVar2 != 0; iVar2 = iVar2 + -1) {\n          *(undefined4 *)pcVar4 = *puVar3;\n          puVar3 = puVar3 + (uint)bVar5 * -2 + 1;\n          pcVar4 = pcVar4 + (uint)bVar5 * -8 + 4;\n        }\n        bufchain_consume(ch,0x200);\n        (**(code **)(s[3]->plug + 8))(s[3],0,databuf,len);\n      } while (s[0x12] == (socket_function_table *)0x0);\n    }" if (parenthesized_expression "(is_frozen == 0)" ( (binary_expression "is_frozen == 0" identifier == number_literal) )) (compound_statement "{\n      do {\n        while( true ) {\n          iVar2 = bufchain_size(ch);\n          if (iVar2 < 1) {\n            if (s[0x12] == (socket_function_table *)0x0) goto LAB_0001faa7;\n            goto LAB_0001fa80;\n          }\n          bufchain_prefix(ch,&data,&len);\n          iVar2 = len;\n          if (0x200 < (uint)len) break;\n          __memcpy_chk(databuf,data,len,0x200);\n          bufchain_consume(ch,iVar2);\n          (**(code **)(s[3]->plug + 8))(s[3],0,databuf,len);\n          if (s[0x12] != (socket_function_table *)0x0) goto LAB_0001fa80;\n        }\n        len = 0x200;\n        puVar3 = (undefined4 *)data;\n        pcVar4 = databuf;\n        for (iVar2 = 0x80; iVar2 != 0; iVar2 = iVar2 + -1) {\n          *(undefined4 *)pcVar4 = *puVar3;\n          puVar3 = puVar3 + (uint)bVar5 * -2 + 1;\n          pcVar4 = pcVar4 + (uint)bVar5 * -8 + 4;\n        }\n        bufchain_consume(ch,0x200);\n        (**(code **)(s[3]->plug + 8))(s[3],0,databuf,len);\n      } while (s[0x12] == (socket_function_table *)0x0);\n    }" { (do_statement "do {\n        while( true ) {\n          iVar2 = bufchain_size(ch);\n          if (iVar2 < 1) {\n            if (s[0x12] == (socket_function_table *)0x0) goto LAB_0001faa7;\n            goto LAB_0001fa80;\n          }\n          bufchain_prefix(ch,&data,&len);\n          iVar2 = len;\n          if (0x200 < (uint)len) break;\n          __memcpy_chk(databuf,data,len,0x200);\n          bufchain_consume(ch,iVar2);\n          (**(code **)(s[3]->plug + 8))(s[3],0,databuf,len);\n          if (s[0x12] != (socket_function_table *)0x0) goto LAB_0001fa80;\n        }\n        len = 0x200;\n        puVar3 = (undefined4 *)data;\n        pcVar4 = databuf;\n        for (iVar2 = 0x80; iVar2 != 0; iVar2 = iVar2 + -1) {\n          *(undefined4 *)pcVar4 = *puVar3;\n          puVar3 = puVar3 + (uint)bVar5 * -2 + 1;\n          pcVar4 = pcVar4 + (uint)bVar5 * -8 + 4;\n        }\n        bufchain_consume(ch,0x200);\n        (**(code **)(s[3]->plug + 8))(s[3],0,databuf,len);\n      } while (s[0x12] == (socket_function_table *)0x0);" do (compound_statement "{\n        while( true ) {\n          iVar2 = bufchain_size(ch);\n          if (iVar2 < 1) {\n            if (s[0x12] == (socket_function_table *)0x0) goto LAB_0001faa7;\n            goto LAB_0001fa80;\n          }\n          bufchain_prefix(ch,&data,&len);\n          iVar2 = len;\n          if (0x200 < (uint)len) break;\n          __memcpy_chk(databuf,data,len,0x200);\n          bufchain_consume(ch,iVar2);\n          (**(code **)(s[3]->plug + 8))(s[3],0,databuf,len);\n          if (s[0x12] != (socket_function_table *)0x0) goto LAB_0001fa80;\n        }\n        len = 0x200;\n        puVar3 = (undefined4 *)data;\n        pcVar4 = databuf;\n        for (iVar2 = 0x80; iVar2 != 0; iVar2 = iVar2 + -1) {\n          *(undefined4 *)pcVar4 = *puVar3;\n          puVar3 = puVar3 + (uint)bVar5 * -2 + 1;\n          pcVar4 = pcVar4 + (uint)bVar5 * -8 + 4;\n        }\n        bufchain_consume(ch,0x200);\n        (**(code **)(s[3]->plug + 8))(s[3],0,databuf,len);\n      }" { (while_statement "while( true ) {\n          iVar2 = bufchain_size(ch);\n          if (iVar2 < 1) {\n            if (s[0x12] == (socket_function_table *)0x0) goto LAB_0001faa7;\n            goto LAB_0001fa80;\n          }\n          bufchain_prefix(ch,&data,&len);\n          iVar2 = len;\n          if (0x200 < (uint)len) break;\n          __memcpy_chk(databuf,data,len,0x200);\n          bufchain_consume(ch,iVar2);\n          (**(code **)(s[3]->plug + 8))(s[3],0,databuf,len);\n          if (s[0x12] != (socket_function_table *)0x0) goto LAB_0001fa80;\n        }" while (parenthesized_expression "( true )" ( true )) (compound_statement "{\n          iVar2 = bufchain_size(ch);\n          if (iVar2 < 1) {\n            if (s[0x12] == (socket_function_table *)0x0) goto LAB_0001faa7;\n            goto LAB_0001fa80;\n          }\n          bufchain_prefix(ch,&data,&len);\n          iVar2 = len;\n          if (0x200 < (uint)len) break;\n          __memcpy_chk(databuf,data,len,0x200);\n          bufchain_consume(ch,iVar2);\n          (**(code **)(s[3]->plug + 8))(s[3],0,databuf,len);\n          if (s[0x12] != (socket_function_table *)0x0) goto LAB_0001fa80;\n        }" { (expression_statement "iVar2 = bufchain_size(ch);" (assignment_expression "iVar2 = bufchain_size(ch)" identifier = (call_expression "bufchain_size(ch)" identifier (argument_list "(ch)" ( identifier )))) ;) (if_statement "if (iVar2 < 1) {\n            if (s[0x12] == (socket_function_table *)0x0) goto LAB_0001faa7;\n            goto LAB_0001fa80;\n          }" if (parenthesized_expression "(iVar2 < 1)" ( (binary_expression "iVar2 < 1" identifier < number_literal) )) (compound_statement "{\n            if (s[0x12] == (socket_function_table *)0x0) goto LAB_0001faa7;\n            goto LAB_0001fa80;\n          }" { (if_statement "if (s[0x12] == (socket_function_table *)0x0) goto LAB_0001faa7;" if (parenthesized_expression "(s[0x12] == (socket_function_table *)0x0)" ( (binary_expression "s[0x12] == (socket_function_table *)0x0" (subscript_expression "s[0x12]" identifier [ number_literal ]) == (cast_expression "(socket_function_table *)0x0" ( (type_descriptor "socket_function_table *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (goto_statement "goto LAB_0001faa7;" goto statement_identifier ;)) (goto_statement "goto LAB_0001fa80;" goto statement_identifier ;) })) (expression_statement "bufchain_prefix(ch,&data,&len);" (call_expression "bufchain_prefix(ch,&data,&len)" identifier (argument_list "(ch,&data,&len)" ( identifier , (pointer_expression "&data" & identifier) , (pointer_expression "&len" & identifier) ))) ;) (expression_statement "iVar2 = len;" (assignment_expression "iVar2 = len" identifier = identifier) ;) (if_statement "if (0x200 < (uint)len) break;" if (parenthesized_expression "(0x200 < (uint)len)" ( (binary_expression "0x200 < (uint)len" number_literal < (cast_expression "(uint)len" ( (type_descriptor "uint" type_identifier) ) identifier)) )) (break_statement "break;" break ;)) (expression_statement "__memcpy_chk(databuf,data,len,0x200);" (call_expression "__memcpy_chk(databuf,data,len,0x200)" identifier (argument_list "(databuf,data,len,0x200)" ( identifier , identifier , identifier , number_literal ))) ;) (expression_statement "bufchain_consume(ch,iVar2);" (call_expression "bufchain_consume(ch,iVar2)" identifier (argument_list "(ch,iVar2)" ( identifier , identifier ))) ;) (expression_statement "(**(code **)(s[3]->plug + 8))(s[3],0,databuf,len);" (call_expression "(**(code **)(s[3]->plug + 8))(s[3],0,databuf,len)" (parenthesized_expression "(**(code **)(s[3]->plug + 8))" ( (pointer_expression "**(code **)(s[3]->plug + 8)" * (pointer_expression "*(code **)(s[3]->plug + 8)" * (cast_expression "(code **)(s[3]->plug + 8)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(s[3]->plug + 8)" ( (binary_expression "s[3]->plug + 8" (field_expression "s[3]->plug" (subscript_expression "s[3]" identifier [ number_literal ]) -> field_identifier) + number_literal) ))))) )) (argument_list "(s[3],0,databuf,len)" ( (subscript_expression "s[3]" identifier [ number_literal ]) , number_literal , identifier , identifier ))) ;) (if_statement "if (s[0x12] != (socket_function_table *)0x0) goto LAB_0001fa80;" if (parenthesized_expression "(s[0x12] != (socket_function_table *)0x0)" ( (binary_expression "s[0x12] != (socket_function_table *)0x0" (subscript_expression "s[0x12]" identifier [ number_literal ]) != (cast_expression "(socket_function_table *)0x0" ( (type_descriptor "socket_function_table *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (goto_statement "goto LAB_0001fa80;" goto statement_identifier ;)) })) (expression_statement "len = 0x200;" (assignment_expression "len = 0x200" identifier = number_literal) ;) (expression_statement "puVar3 = (undefined4 *)data;" (assignment_expression "puVar3 = (undefined4 *)data" identifier = (cast_expression "(undefined4 *)data" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) ;) (expression_statement "pcVar4 = databuf;" (assignment_expression "pcVar4 = databuf" identifier = identifier) ;) (for_statement "for (iVar2 = 0x80; iVar2 != 0; iVar2 = iVar2 + -1) {\n          *(undefined4 *)pcVar4 = *puVar3;\n          puVar3 = puVar3 + (uint)bVar5 * -2 + 1;\n          pcVar4 = pcVar4 + (uint)bVar5 * -8 + 4;\n        }" for ( (assignment_expression "iVar2 = 0x80" identifier = number_literal) ; (binary_expression "iVar2 != 0" identifier != number_literal) ; (assignment_expression "iVar2 = iVar2 + -1" identifier = (binary_expression "iVar2 + -1" identifier + number_literal)) ) (compound_statement "{\n          *(undefined4 *)pcVar4 = *puVar3;\n          puVar3 = puVar3 + (uint)bVar5 * -2 + 1;\n          pcVar4 = pcVar4 + (uint)bVar5 * -8 + 4;\n        }" { (expression_statement "*(undefined4 *)pcVar4 = *puVar3;" (assignment_expression "*(undefined4 *)pcVar4 = *puVar3" (pointer_expression "*(undefined4 *)pcVar4" * (cast_expression "(undefined4 *)pcVar4" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) = (pointer_expression "*puVar3" * identifier)) ;) (expression_statement "puVar3 = puVar3 + (uint)bVar5 * -2 + 1;" (assignment_expression "puVar3 = puVar3 + (uint)bVar5 * -2 + 1" identifier = (binary_expression "puVar3 + (uint)bVar5 * -2 + 1" (binary_expression "puVar3 + (uint)bVar5 * -2" identifier + (binary_expression "(uint)bVar5 * -2" (cast_expression "(uint)bVar5" ( (type_descriptor "uint" type_identifier) ) identifier) * number_literal)) + number_literal)) ;) (expression_statement "pcVar4 = pcVar4 + (uint)bVar5 * -8 + 4;" (assignment_expression "pcVar4 = pcVar4 + (uint)bVar5 * -8 + 4" identifier = (binary_expression "pcVar4 + (uint)bVar5 * -8 + 4" (binary_expression "pcVar4 + (uint)bVar5 * -8" identifier + (binary_expression "(uint)bVar5 * -8" (cast_expression "(uint)bVar5" ( (type_descriptor "uint" type_identifier) ) identifier) * number_literal)) + number_literal)) ;) })) (expression_statement "bufchain_consume(ch,0x200);" (call_expression "bufchain_consume(ch,0x200)" identifier (argument_list "(ch,0x200)" ( identifier , number_literal ))) ;) (expression_statement "(**(code **)(s[3]->plug + 8))(s[3],0,databuf,len);" (call_expression "(**(code **)(s[3]->plug + 8))(s[3],0,databuf,len)" (parenthesized_expression "(**(code **)(s[3]->plug + 8))" ( (pointer_expression "**(code **)(s[3]->plug + 8)" * (pointer_expression "*(code **)(s[3]->plug + 8)" * (cast_expression "(code **)(s[3]->plug + 8)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(s[3]->plug + 8)" ( (binary_expression "s[3]->plug + 8" (field_expression "s[3]->plug" (subscript_expression "s[3]" identifier [ number_literal ]) -> field_identifier) + number_literal) ))))) )) (argument_list "(s[3],0,databuf,len)" ( (subscript_expression "s[3]" identifier [ number_literal ]) , number_literal , identifier , identifier ))) ;) }) while (parenthesized_expression "(s[0x12] == (socket_function_table *)0x0)" ( (binary_expression "s[0x12] == (socket_function_table *)0x0" (subscript_expression "s[0x12]" identifier [ number_literal ]) == (cast_expression "(socket_function_table *)0x0" ( (type_descriptor "socket_function_table *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) ;) })) }))) (labeled_statement "LAB_0001fa80:\n  if (iVar1 != *(int *)(in_GS_OFFSET + 0x14)) {\n                    /* WARNING: Subroutine does not return */\n    __stack_chk_fail_local();\n  }" statement_identifier : (if_statement "if (iVar1 != *(int *)(in_GS_OFFSET + 0x14)) {\n                    /* WARNING: Subroutine does not return */\n    __stack_chk_fail_local();\n  }" if (parenthesized_expression "(iVar1 != *(int *)(in_GS_OFFSET + 0x14))" ( (binary_expression "iVar1 != *(int *)(in_GS_OFFSET + 0x14)" identifier != (pointer_expression "*(int *)(in_GS_OFFSET + 0x14)" * (cast_expression "(int *)(in_GS_OFFSET + 0x14)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(in_GS_OFFSET + 0x14)" ( (binary_expression "in_GS_OFFSET + 0x14" identifier + number_literal) ))))) )) (compound_statement "{\n                    /* WARNING: Subroutine does not return */\n    __stack_chk_fail_local();\n  }" { comment (expression_statement "__stack_chk_fail_local();" (call_expression "__stack_chk_fail_local()" identifier (argument_list "()" ( ))) ;) }))) (return_statement "return;" return ;) })))
(translation_unit "void __regparm3 FUN_0001f960(int param_1,int param_2)\n\n{\n  int iVar1;\n  uint uVar2;\n  int iVar3;\n  undefined4 *puVar4;\n  undefined4 *puVar5;\n  int in_GS_OFFSET;\n  byte bVar6;\n  undefined4 *local_228;\n  uint local_224;\n  undefined4 local_220 [128];\n  int local_20;\n  undefined4 uStack_14;\n  \n  bVar6 = 0;\n  uStack_14 = 0x1f96b;\n  local_20 = *(int *)(in_GS_OFFSET + 0x14);\n  iVar1 = param_1 + 0x34;\n  iVar3 = FUN_0001d890(iVar1);\n  if (iVar3 < 1) {\nLAB_0001faa7:\n    (**(code **)(**(int **)(param_1 + 8) + 0x18))(*(int **)(param_1 + 8),param_2);\n  }\n  else {\n    *(int *)(param_1 + 0x48) = param_2;\n    if (param_2 == 0) {\n      do {\n        while( true ) {\n          iVar3 = FUN_0001d890(iVar1);\n          if (iVar3 < 1) {\n            if (*(int *)(param_1 + 0x48) == 0) goto LAB_0001faa7;\n            goto LAB_0001fa80;\n          }\n          FUN_0001dac0(iVar1,&local_228,&local_224);\n          uVar2 = local_224;\n          if (0x200 < local_224) break;\n          __memcpy_chk(local_220,local_228,local_224,0x200);\n          FUN_0001da00(iVar1,uVar2);\n          (**(code **)(**(int **)(param_1 + 0xc) + 8))\n                    (*(int **)(param_1 + 0xc),0,local_220,local_224);\n          if (*(int *)(param_1 + 0x48) != 0) goto LAB_0001fa80;\n        }\n        local_224 = 0x200;\n        puVar4 = local_228;\n        puVar5 = local_220;\n        for (iVar3 = 0x80; iVar3 != 0; iVar3 = iVar3 + -1) {\n          *puVar5 = *puVar4;\n          puVar4 = puVar4 + (uint)bVar6 * -2 + 1;\n          puVar5 = puVar5 + (uint)bVar6 * -2 + 1;\n        }\n        FUN_0001da00(iVar1,0x200);\n        (**(code **)(**(int **)(param_1 + 0xc) + 8))(*(int **)(param_1 + 0xc),0,local_220,local_224)\n        ;\n      } while (*(int *)(param_1 + 0x48) == 0);\n    }\n  }\nLAB_0001fa80:\n  if (local_20 != *(int *)(in_GS_OFFSET + 0x14)) {\n                    \n    FUN_0008d800();\n  }\n  return;\n}\n\n" (function_definition "void __regparm3 FUN_0001f960(int param_1,int param_2)\n\n{\n  int iVar1;\n  uint uVar2;\n  int iVar3;\n  undefined4 *puVar4;\n  undefined4 *puVar5;\n  int in_GS_OFFSET;\n  byte bVar6;\n  undefined4 *local_228;\n  uint local_224;\n  undefined4 local_220 [128];\n  int local_20;\n  undefined4 uStack_14;\n  \n  bVar6 = 0;\n  uStack_14 = 0x1f96b;\n  local_20 = *(int *)(in_GS_OFFSET + 0x14);\n  iVar1 = param_1 + 0x34;\n  iVar3 = FUN_0001d890(iVar1);\n  if (iVar3 < 1) {\nLAB_0001faa7:\n    (**(code **)(**(int **)(param_1 + 8) + 0x18))(*(int **)(param_1 + 8),param_2);\n  }\n  else {\n    *(int *)(param_1 + 0x48) = param_2;\n    if (param_2 == 0) {\n      do {\n        while( true ) {\n          iVar3 = FUN_0001d890(iVar1);\n          if (iVar3 < 1) {\n            if (*(int *)(param_1 + 0x48) == 0) goto LAB_0001faa7;\n            goto LAB_0001fa80;\n          }\n          FUN_0001dac0(iVar1,&local_228,&local_224);\n          uVar2 = local_224;\n          if (0x200 < local_224) break;\n          __memcpy_chk(local_220,local_228,local_224,0x200);\n          FUN_0001da00(iVar1,uVar2);\n          (**(code **)(**(int **)(param_1 + 0xc) + 8))\n                    (*(int **)(param_1 + 0xc),0,local_220,local_224);\n          if (*(int *)(param_1 + 0x48) != 0) goto LAB_0001fa80;\n        }\n        local_224 = 0x200;\n        puVar4 = local_228;\n        puVar5 = local_220;\n        for (iVar3 = 0x80; iVar3 != 0; iVar3 = iVar3 + -1) {\n          *puVar5 = *puVar4;\n          puVar4 = puVar4 + (uint)bVar6 * -2 + 1;\n          puVar5 = puVar5 + (uint)bVar6 * -2 + 1;\n        }\n        FUN_0001da00(iVar1,0x200);\n        (**(code **)(**(int **)(param_1 + 0xc) + 8))(*(int **)(param_1 + 0xc),0,local_220,local_224)\n        ;\n      } while (*(int *)(param_1 + 0x48) == 0);\n    }\n  }\nLAB_0001fa80:\n  if (local_20 != *(int *)(in_GS_OFFSET + 0x14)) {\n                    \n    FUN_0008d800();\n  }\n  return;\n}" primitive_type (ERROR "__regparm3" identifier) (function_declarator "FUN_0001f960(int param_1,int param_2)" identifier (parameter_list "(int param_1,int param_2)" ( (parameter_declaration "int param_1" primitive_type identifier) , (parameter_declaration "int param_2" primitive_type identifier) ))) (compound_statement "{\n  int iVar1;\n  uint uVar2;\n  int iVar3;\n  undefined4 *puVar4;\n  undefined4 *puVar5;\n  int in_GS_OFFSET;\n  byte bVar6;\n  undefined4 *local_228;\n  uint local_224;\n  undefined4 local_220 [128];\n  int local_20;\n  undefined4 uStack_14;\n  \n  bVar6 = 0;\n  uStack_14 = 0x1f96b;\n  local_20 = *(int *)(in_GS_OFFSET + 0x14);\n  iVar1 = param_1 + 0x34;\n  iVar3 = FUN_0001d890(iVar1);\n  if (iVar3 < 1) {\nLAB_0001faa7:\n    (**(code **)(**(int **)(param_1 + 8) + 0x18))(*(int **)(param_1 + 8),param_2);\n  }\n  else {\n    *(int *)(param_1 + 0x48) = param_2;\n    if (param_2 == 0) {\n      do {\n        while( true ) {\n          iVar3 = FUN_0001d890(iVar1);\n          if (iVar3 < 1) {\n            if (*(int *)(param_1 + 0x48) == 0) goto LAB_0001faa7;\n            goto LAB_0001fa80;\n          }\n          FUN_0001dac0(iVar1,&local_228,&local_224);\n          uVar2 = local_224;\n          if (0x200 < local_224) break;\n          __memcpy_chk(local_220,local_228,local_224,0x200);\n          FUN_0001da00(iVar1,uVar2);\n          (**(code **)(**(int **)(param_1 + 0xc) + 8))\n                    (*(int **)(param_1 + 0xc),0,local_220,local_224);\n          if (*(int *)(param_1 + 0x48) != 0) goto LAB_0001fa80;\n        }\n        local_224 = 0x200;\n        puVar4 = local_228;\n        puVar5 = local_220;\n        for (iVar3 = 0x80; iVar3 != 0; iVar3 = iVar3 + -1) {\n          *puVar5 = *puVar4;\n          puVar4 = puVar4 + (uint)bVar6 * -2 + 1;\n          puVar5 = puVar5 + (uint)bVar6 * -2 + 1;\n        }\n        FUN_0001da00(iVar1,0x200);\n        (**(code **)(**(int **)(param_1 + 0xc) + 8))(*(int **)(param_1 + 0xc),0,local_220,local_224)\n        ;\n      } while (*(int *)(param_1 + 0x48) == 0);\n    }\n  }\nLAB_0001fa80:\n  if (local_20 != *(int *)(in_GS_OFFSET + 0x14)) {\n                    \n    FUN_0008d800();\n  }\n  return;\n}" { (declaration "int iVar1;" primitive_type identifier ;) (declaration "uint uVar2;" type_identifier identifier ;) (declaration "int iVar3;" primitive_type identifier ;) (declaration "undefined4 *puVar4;" type_identifier (pointer_declarator "*puVar4" * identifier) ;) (declaration "undefined4 *puVar5;" type_identifier (pointer_declarator "*puVar5" * identifier) ;) (declaration "int in_GS_OFFSET;" primitive_type identifier ;) (declaration "byte bVar6;" type_identifier identifier ;) (declaration "undefined4 *local_228;" type_identifier (pointer_declarator "*local_228" * identifier) ;) (declaration "uint local_224;" type_identifier identifier ;) (declaration "undefined4 local_220 [128];" type_identifier (array_declarator "local_220 [128]" identifier [ number_literal ]) ;) (declaration "int local_20;" primitive_type identifier ;) (declaration "undefined4 uStack_14;" type_identifier identifier ;) (expression_statement "bVar6 = 0;" (assignment_expression "bVar6 = 0" identifier = number_literal) ;) (expression_statement "uStack_14 = 0x1f96b;" (assignment_expression "uStack_14 = 0x1f96b" identifier = number_literal) ;) (expression_statement "local_20 = *(int *)(in_GS_OFFSET + 0x14);" (assignment_expression "local_20 = *(int *)(in_GS_OFFSET + 0x14)" identifier = (pointer_expression "*(int *)(in_GS_OFFSET + 0x14)" * (cast_expression "(int *)(in_GS_OFFSET + 0x14)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(in_GS_OFFSET + 0x14)" ( (binary_expression "in_GS_OFFSET + 0x14" identifier + number_literal) ))))) ;) (expression_statement "iVar1 = param_1 + 0x34;" (assignment_expression "iVar1 = param_1 + 0x34" identifier = (binary_expression "param_1 + 0x34" identifier + number_literal)) ;) (expression_statement "iVar3 = FUN_0001d890(iVar1);" (assignment_expression "iVar3 = FUN_0001d890(iVar1)" identifier = (call_expression "FUN_0001d890(iVar1)" identifier (argument_list "(iVar1)" ( identifier )))) ;) (if_statement "if (iVar3 < 1) {\nLAB_0001faa7:\n    (**(code **)(**(int **)(param_1 + 8) + 0x18))(*(int **)(param_1 + 8),param_2);\n  }\n  else {\n    *(int *)(param_1 + 0x48) = param_2;\n    if (param_2 == 0) {\n      do {\n        while( true ) {\n          iVar3 = FUN_0001d890(iVar1);\n          if (iVar3 < 1) {\n            if (*(int *)(param_1 + 0x48) == 0) goto LAB_0001faa7;\n            goto LAB_0001fa80;\n          }\n          FUN_0001dac0(iVar1,&local_228,&local_224);\n          uVar2 = local_224;\n          if (0x200 < local_224) break;\n          __memcpy_chk(local_220,local_228,local_224,0x200);\n          FUN_0001da00(iVar1,uVar2);\n          (**(code **)(**(int **)(param_1 + 0xc) + 8))\n                    (*(int **)(param_1 + 0xc),0,local_220,local_224);\n          if (*(int *)(param_1 + 0x48) != 0) goto LAB_0001fa80;\n        }\n        local_224 = 0x200;\n        puVar4 = local_228;\n        puVar5 = local_220;\n        for (iVar3 = 0x80; iVar3 != 0; iVar3 = iVar3 + -1) {\n          *puVar5 = *puVar4;\n          puVar4 = puVar4 + (uint)bVar6 * -2 + 1;\n          puVar5 = puVar5 + (uint)bVar6 * -2 + 1;\n        }\n        FUN_0001da00(iVar1,0x200);\n        (**(code **)(**(int **)(param_1 + 0xc) + 8))(*(int **)(param_1 + 0xc),0,local_220,local_224)\n        ;\n      } while (*(int *)(param_1 + 0x48) == 0);\n    }\n  }" if (parenthesized_expression "(iVar3 < 1)" ( (binary_expression "iVar3 < 1" identifier < number_literal) )) (compound_statement "{\nLAB_0001faa7:\n    (**(code **)(**(int **)(param_1 + 8) + 0x18))(*(int **)(param_1 + 8),param_2);\n  }" { (labeled_statement "LAB_0001faa7:\n    (**(code **)(**(int **)(param_1 + 8) + 0x18))(*(int **)(param_1 + 8),param_2);" statement_identifier : (expression_statement "(**(code **)(**(int **)(param_1 + 8) + 0x18))(*(int **)(param_1 + 8),param_2);" (call_expression "(**(code **)(**(int **)(param_1 + 8) + 0x18))(*(int **)(param_1 + 8),param_2)" (parenthesized_expression "(**(code **)(**(int **)(param_1 + 8) + 0x18))" ( (pointer_expression "**(code **)(**(int **)(param_1 + 8) + 0x18)" * (pointer_expression "*(code **)(**(int **)(param_1 + 8) + 0x18)" * (cast_expression "(code **)(**(int **)(param_1 + 8) + 0x18)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(**(int **)(param_1 + 8) + 0x18)" ( (binary_expression "**(int **)(param_1 + 8) + 0x18" (pointer_expression "**(int **)(param_1 + 8)" * (pointer_expression "*(int **)(param_1 + 8)" * (cast_expression "(int **)(param_1 + 8)" ( (type_descriptor "int **" primitive_type (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(param_1 + 8)" ( (binary_expression "param_1 + 8" identifier + number_literal) ))))) + number_literal) ))))) )) (argument_list "(*(int **)(param_1 + 8),param_2)" ( (pointer_expression "*(int **)(param_1 + 8)" * (cast_expression "(int **)(param_1 + 8)" ( (type_descriptor "int **" primitive_type (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(param_1 + 8)" ( (binary_expression "param_1 + 8" identifier + number_literal) )))) , identifier ))) ;)) }) (else_clause "else {\n    *(int *)(param_1 + 0x48) = param_2;\n    if (param_2 == 0) {\n      do {\n        while( true ) {\n          iVar3 = FUN_0001d890(iVar1);\n          if (iVar3 < 1) {\n            if (*(int *)(param_1 + 0x48) == 0) goto LAB_0001faa7;\n            goto LAB_0001fa80;\n          }\n          FUN_0001dac0(iVar1,&local_228,&local_224);\n          uVar2 = local_224;\n          if (0x200 < local_224) break;\n          __memcpy_chk(local_220,local_228,local_224,0x200);\n          FUN_0001da00(iVar1,uVar2);\n          (**(code **)(**(int **)(param_1 + 0xc) + 8))\n                    (*(int **)(param_1 + 0xc),0,local_220,local_224);\n          if (*(int *)(param_1 + 0x48) != 0) goto LAB_0001fa80;\n        }\n        local_224 = 0x200;\n        puVar4 = local_228;\n        puVar5 = local_220;\n        for (iVar3 = 0x80; iVar3 != 0; iVar3 = iVar3 + -1) {\n          *puVar5 = *puVar4;\n          puVar4 = puVar4 + (uint)bVar6 * -2 + 1;\n          puVar5 = puVar5 + (uint)bVar6 * -2 + 1;\n        }\n        FUN_0001da00(iVar1,0x200);\n        (**(code **)(**(int **)(param_1 + 0xc) + 8))(*(int **)(param_1 + 0xc),0,local_220,local_224)\n        ;\n      } while (*(int *)(param_1 + 0x48) == 0);\n    }\n  }" else (compound_statement "{\n    *(int *)(param_1 + 0x48) = param_2;\n    if (param_2 == 0) {\n      do {\n        while( true ) {\n          iVar3 = FUN_0001d890(iVar1);\n          if (iVar3 < 1) {\n            if (*(int *)(param_1 + 0x48) == 0) goto LAB_0001faa7;\n            goto LAB_0001fa80;\n          }\n          FUN_0001dac0(iVar1,&local_228,&local_224);\n          uVar2 = local_224;\n          if (0x200 < local_224) break;\n          __memcpy_chk(local_220,local_228,local_224,0x200);\n          FUN_0001da00(iVar1,uVar2);\n          (**(code **)(**(int **)(param_1 + 0xc) + 8))\n                    (*(int **)(param_1 + 0xc),0,local_220,local_224);\n          if (*(int *)(param_1 + 0x48) != 0) goto LAB_0001fa80;\n        }\n        local_224 = 0x200;\n        puVar4 = local_228;\n        puVar5 = local_220;\n        for (iVar3 = 0x80; iVar3 != 0; iVar3 = iVar3 + -1) {\n          *puVar5 = *puVar4;\n          puVar4 = puVar4 + (uint)bVar6 * -2 + 1;\n          puVar5 = puVar5 + (uint)bVar6 * -2 + 1;\n        }\n        FUN_0001da00(iVar1,0x200);\n        (**(code **)(**(int **)(param_1 + 0xc) + 8))(*(int **)(param_1 + 0xc),0,local_220,local_224)\n        ;\n      } while (*(int *)(param_1 + 0x48) == 0);\n    }\n  }" { (expression_statement "*(int *)(param_1 + 0x48) = param_2;" (assignment_expression "*(int *)(param_1 + 0x48) = param_2" (pointer_expression "*(int *)(param_1 + 0x48)" * (cast_expression "(int *)(param_1 + 0x48)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x48)" ( (binary_expression "param_1 + 0x48" identifier + number_literal) )))) = identifier) ;) (if_statement "if (param_2 == 0) {\n      do {\n        while( true ) {\n          iVar3 = FUN_0001d890(iVar1);\n          if (iVar3 < 1) {\n            if (*(int *)(param_1 + 0x48) == 0) goto LAB_0001faa7;\n            goto LAB_0001fa80;\n          }\n          FUN_0001dac0(iVar1,&local_228,&local_224);\n          uVar2 = local_224;\n          if (0x200 < local_224) break;\n          __memcpy_chk(local_220,local_228,local_224,0x200);\n          FUN_0001da00(iVar1,uVar2);\n          (**(code **)(**(int **)(param_1 + 0xc) + 8))\n                    (*(int **)(param_1 + 0xc),0,local_220,local_224);\n          if (*(int *)(param_1 + 0x48) != 0) goto LAB_0001fa80;\n        }\n        local_224 = 0x200;\n        puVar4 = local_228;\n        puVar5 = local_220;\n        for (iVar3 = 0x80; iVar3 != 0; iVar3 = iVar3 + -1) {\n          *puVar5 = *puVar4;\n          puVar4 = puVar4 + (uint)bVar6 * -2 + 1;\n          puVar5 = puVar5 + (uint)bVar6 * -2 + 1;\n        }\n        FUN_0001da00(iVar1,0x200);\n        (**(code **)(**(int **)(param_1 + 0xc) + 8))(*(int **)(param_1 + 0xc),0,local_220,local_224)\n        ;\n      } while (*(int *)(param_1 + 0x48) == 0);\n    }" if (parenthesized_expression "(param_2 == 0)" ( (binary_expression "param_2 == 0" identifier == number_literal) )) (compound_statement "{\n      do {\n        while( true ) {\n          iVar3 = FUN_0001d890(iVar1);\n          if (iVar3 < 1) {\n            if (*(int *)(param_1 + 0x48) == 0) goto LAB_0001faa7;\n            goto LAB_0001fa80;\n          }\n          FUN_0001dac0(iVar1,&local_228,&local_224);\n          uVar2 = local_224;\n          if (0x200 < local_224) break;\n          __memcpy_chk(local_220,local_228,local_224,0x200);\n          FUN_0001da00(iVar1,uVar2);\n          (**(code **)(**(int **)(param_1 + 0xc) + 8))\n                    (*(int **)(param_1 + 0xc),0,local_220,local_224);\n          if (*(int *)(param_1 + 0x48) != 0) goto LAB_0001fa80;\n        }\n        local_224 = 0x200;\n        puVar4 = local_228;\n        puVar5 = local_220;\n        for (iVar3 = 0x80; iVar3 != 0; iVar3 = iVar3 + -1) {\n          *puVar5 = *puVar4;\n          puVar4 = puVar4 + (uint)bVar6 * -2 + 1;\n          puVar5 = puVar5 + (uint)bVar6 * -2 + 1;\n        }\n        FUN_0001da00(iVar1,0x200);\n        (**(code **)(**(int **)(param_1 + 0xc) + 8))(*(int **)(param_1 + 0xc),0,local_220,local_224)\n        ;\n      } while (*(int *)(param_1 + 0x48) == 0);\n    }" { (do_statement "do {\n        while( true ) {\n          iVar3 = FUN_0001d890(iVar1);\n          if (iVar3 < 1) {\n            if (*(int *)(param_1 + 0x48) == 0) goto LAB_0001faa7;\n            goto LAB_0001fa80;\n          }\n          FUN_0001dac0(iVar1,&local_228,&local_224);\n          uVar2 = local_224;\n          if (0x200 < local_224) break;\n          __memcpy_chk(local_220,local_228,local_224,0x200);\n          FUN_0001da00(iVar1,uVar2);\n          (**(code **)(**(int **)(param_1 + 0xc) + 8))\n                    (*(int **)(param_1 + 0xc),0,local_220,local_224);\n          if (*(int *)(param_1 + 0x48) != 0) goto LAB_0001fa80;\n        }\n        local_224 = 0x200;\n        puVar4 = local_228;\n        puVar5 = local_220;\n        for (iVar3 = 0x80; iVar3 != 0; iVar3 = iVar3 + -1) {\n          *puVar5 = *puVar4;\n          puVar4 = puVar4 + (uint)bVar6 * -2 + 1;\n          puVar5 = puVar5 + (uint)bVar6 * -2 + 1;\n        }\n        FUN_0001da00(iVar1,0x200);\n        (**(code **)(**(int **)(param_1 + 0xc) + 8))(*(int **)(param_1 + 0xc),0,local_220,local_224)\n        ;\n      } while (*(int *)(param_1 + 0x48) == 0);" do (compound_statement "{\n        while( true ) {\n          iVar3 = FUN_0001d890(iVar1);\n          if (iVar3 < 1) {\n            if (*(int *)(param_1 + 0x48) == 0) goto LAB_0001faa7;\n            goto LAB_0001fa80;\n          }\n          FUN_0001dac0(iVar1,&local_228,&local_224);\n          uVar2 = local_224;\n          if (0x200 < local_224) break;\n          __memcpy_chk(local_220,local_228,local_224,0x200);\n          FUN_0001da00(iVar1,uVar2);\n          (**(code **)(**(int **)(param_1 + 0xc) + 8))\n                    (*(int **)(param_1 + 0xc),0,local_220,local_224);\n          if (*(int *)(param_1 + 0x48) != 0) goto LAB_0001fa80;\n        }\n        local_224 = 0x200;\n        puVar4 = local_228;\n        puVar5 = local_220;\n        for (iVar3 = 0x80; iVar3 != 0; iVar3 = iVar3 + -1) {\n          *puVar5 = *puVar4;\n          puVar4 = puVar4 + (uint)bVar6 * -2 + 1;\n          puVar5 = puVar5 + (uint)bVar6 * -2 + 1;\n        }\n        FUN_0001da00(iVar1,0x200);\n        (**(code **)(**(int **)(param_1 + 0xc) + 8))(*(int **)(param_1 + 0xc),0,local_220,local_224)\n        ;\n      }" { (while_statement "while( true ) {\n          iVar3 = FUN_0001d890(iVar1);\n          if (iVar3 < 1) {\n            if (*(int *)(param_1 + 0x48) == 0) goto LAB_0001faa7;\n            goto LAB_0001fa80;\n          }\n          FUN_0001dac0(iVar1,&local_228,&local_224);\n          uVar2 = local_224;\n          if (0x200 < local_224) break;\n          __memcpy_chk(local_220,local_228,local_224,0x200);\n          FUN_0001da00(iVar1,uVar2);\n          (**(code **)(**(int **)(param_1 + 0xc) + 8))\n                    (*(int **)(param_1 + 0xc),0,local_220,local_224);\n          if (*(int *)(param_1 + 0x48) != 0) goto LAB_0001fa80;\n        }" while (parenthesized_expression "( true )" ( true )) (compound_statement "{\n          iVar3 = FUN_0001d890(iVar1);\n          if (iVar3 < 1) {\n            if (*(int *)(param_1 + 0x48) == 0) goto LAB_0001faa7;\n            goto LAB_0001fa80;\n          }\n          FUN_0001dac0(iVar1,&local_228,&local_224);\n          uVar2 = local_224;\n          if (0x200 < local_224) break;\n          __memcpy_chk(local_220,local_228,local_224,0x200);\n          FUN_0001da00(iVar1,uVar2);\n          (**(code **)(**(int **)(param_1 + 0xc) + 8))\n                    (*(int **)(param_1 + 0xc),0,local_220,local_224);\n          if (*(int *)(param_1 + 0x48) != 0) goto LAB_0001fa80;\n        }" { (expression_statement "iVar3 = FUN_0001d890(iVar1);" (assignment_expression "iVar3 = FUN_0001d890(iVar1)" identifier = (call_expression "FUN_0001d890(iVar1)" identifier (argument_list "(iVar1)" ( identifier )))) ;) (if_statement "if (iVar3 < 1) {\n            if (*(int *)(param_1 + 0x48) == 0) goto LAB_0001faa7;\n            goto LAB_0001fa80;\n          }" if (parenthesized_expression "(iVar3 < 1)" ( (binary_expression "iVar3 < 1" identifier < number_literal) )) (compound_statement "{\n            if (*(int *)(param_1 + 0x48) == 0) goto LAB_0001faa7;\n            goto LAB_0001fa80;\n          }" { (if_statement "if (*(int *)(param_1 + 0x48) == 0) goto LAB_0001faa7;" if (parenthesized_expression "(*(int *)(param_1 + 0x48) == 0)" ( (binary_expression "*(int *)(param_1 + 0x48) == 0" (pointer_expression "*(int *)(param_1 + 0x48)" * (cast_expression "(int *)(param_1 + 0x48)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x48)" ( (binary_expression "param_1 + 0x48" identifier + number_literal) )))) == number_literal) )) (goto_statement "goto LAB_0001faa7;" goto statement_identifier ;)) (goto_statement "goto LAB_0001fa80;" goto statement_identifier ;) })) (expression_statement "FUN_0001dac0(iVar1,&local_228,&local_224);" (call_expression "FUN_0001dac0(iVar1,&local_228,&local_224)" identifier (argument_list "(iVar1,&local_228,&local_224)" ( identifier , (pointer_expression "&local_228" & identifier) , (pointer_expression "&local_224" & identifier) ))) ;) (expression_statement "uVar2 = local_224;" (assignment_expression "uVar2 = local_224" identifier = identifier) ;) (if_statement "if (0x200 < local_224) break;" if (parenthesized_expression "(0x200 < local_224)" ( (binary_expression "0x200 < local_224" number_literal < identifier) )) (break_statement "break;" break ;)) (expression_statement "__memcpy_chk(local_220,local_228,local_224,0x200);" (call_expression "__memcpy_chk(local_220,local_228,local_224,0x200)" identifier (argument_list "(local_220,local_228,local_224,0x200)" ( identifier , identifier , identifier , number_literal ))) ;) (expression_statement "FUN_0001da00(iVar1,uVar2);" (call_expression "FUN_0001da00(iVar1,uVar2)" identifier (argument_list "(iVar1,uVar2)" ( identifier , identifier ))) ;) (expression_statement "(**(code **)(**(int **)(param_1 + 0xc) + 8))\n                    (*(int **)(param_1 + 0xc),0,local_220,local_224);" (call_expression "(**(code **)(**(int **)(param_1 + 0xc) + 8))\n                    (*(int **)(param_1 + 0xc),0,local_220,local_224)" (parenthesized_expression "(**(code **)(**(int **)(param_1 + 0xc) + 8))" ( (pointer_expression "**(code **)(**(int **)(param_1 + 0xc) + 8)" * (pointer_expression "*(code **)(**(int **)(param_1 + 0xc) + 8)" * (cast_expression "(code **)(**(int **)(param_1 + 0xc) + 8)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(**(int **)(param_1 + 0xc) + 8)" ( (binary_expression "**(int **)(param_1 + 0xc) + 8" (pointer_expression "**(int **)(param_1 + 0xc)" * (pointer_expression "*(int **)(param_1 + 0xc)" * (cast_expression "(int **)(param_1 + 0xc)" ( (type_descriptor "int **" primitive_type (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(param_1 + 0xc)" ( (binary_expression "param_1 + 0xc" identifier + number_literal) ))))) + number_literal) ))))) )) (argument_list "(*(int **)(param_1 + 0xc),0,local_220,local_224)" ( (pointer_expression "*(int **)(param_1 + 0xc)" * (cast_expression "(int **)(param_1 + 0xc)" ( (type_descriptor "int **" primitive_type (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(param_1 + 0xc)" ( (binary_expression "param_1 + 0xc" identifier + number_literal) )))) , number_literal , identifier , identifier ))) ;) (if_statement "if (*(int *)(param_1 + 0x48) != 0) goto LAB_0001fa80;" if (parenthesized_expression "(*(int *)(param_1 + 0x48) != 0)" ( (binary_expression "*(int *)(param_1 + 0x48) != 0" (pointer_expression "*(int *)(param_1 + 0x48)" * (cast_expression "(int *)(param_1 + 0x48)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x48)" ( (binary_expression "param_1 + 0x48" identifier + number_literal) )))) != number_literal) )) (goto_statement "goto LAB_0001fa80;" goto statement_identifier ;)) })) (expression_statement "local_224 = 0x200;" (assignment_expression "local_224 = 0x200" identifier = number_literal) ;) (expression_statement "puVar4 = local_228;" (assignment_expression "puVar4 = local_228" identifier = identifier) ;) (expression_statement "puVar5 = local_220;" (assignment_expression "puVar5 = local_220" identifier = identifier) ;) (for_statement "for (iVar3 = 0x80; iVar3 != 0; iVar3 = iVar3 + -1) {\n          *puVar5 = *puVar4;\n          puVar4 = puVar4 + (uint)bVar6 * -2 + 1;\n          puVar5 = puVar5 + (uint)bVar6 * -2 + 1;\n        }" for ( (assignment_expression "iVar3 = 0x80" identifier = number_literal) ; (binary_expression "iVar3 != 0" identifier != number_literal) ; (assignment_expression "iVar3 = iVar3 + -1" identifier = (binary_expression "iVar3 + -1" identifier + number_literal)) ) (compound_statement "{\n          *puVar5 = *puVar4;\n          puVar4 = puVar4 + (uint)bVar6 * -2 + 1;\n          puVar5 = puVar5 + (uint)bVar6 * -2 + 1;\n        }" { (expression_statement "*puVar5 = *puVar4;" (assignment_expression "*puVar5 = *puVar4" (pointer_expression "*puVar5" * identifier) = (pointer_expression "*puVar4" * identifier)) ;) (expression_statement "puVar4 = puVar4 + (uint)bVar6 * -2 + 1;" (assignment_expression "puVar4 = puVar4 + (uint)bVar6 * -2 + 1" identifier = (binary_expression "puVar4 + (uint)bVar6 * -2 + 1" (binary_expression "puVar4 + (uint)bVar6 * -2" identifier + (binary_expression "(uint)bVar6 * -2" (cast_expression "(uint)bVar6" ( (type_descriptor "uint" type_identifier) ) identifier) * number_literal)) + number_literal)) ;) (expression_statement "puVar5 = puVar5 + (uint)bVar6 * -2 + 1;" (assignment_expression "puVar5 = puVar5 + (uint)bVar6 * -2 + 1" identifier = (binary_expression "puVar5 + (uint)bVar6 * -2 + 1" (binary_expression "puVar5 + (uint)bVar6 * -2" identifier + (binary_expression "(uint)bVar6 * -2" (cast_expression "(uint)bVar6" ( (type_descriptor "uint" type_identifier) ) identifier) * number_literal)) + number_literal)) ;) })) (expression_statement "FUN_0001da00(iVar1,0x200);" (call_expression "FUN_0001da00(iVar1,0x200)" identifier (argument_list "(iVar1,0x200)" ( identifier , number_literal ))) ;) (expression_statement "(**(code **)(**(int **)(param_1 + 0xc) + 8))(*(int **)(param_1 + 0xc),0,local_220,local_224)\n        ;" (call_expression "(**(code **)(**(int **)(param_1 + 0xc) + 8))(*(int **)(param_1 + 0xc),0,local_220,local_224)" (parenthesized_expression "(**(code **)(**(int **)(param_1 + 0xc) + 8))" ( (pointer_expression "**(code **)(**(int **)(param_1 + 0xc) + 8)" * (pointer_expression "*(code **)(**(int **)(param_1 + 0xc) + 8)" * (cast_expression "(code **)(**(int **)(param_1 + 0xc) + 8)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(**(int **)(param_1 + 0xc) + 8)" ( (binary_expression "**(int **)(param_1 + 0xc) + 8" (pointer_expression "**(int **)(param_1 + 0xc)" * (pointer_expression "*(int **)(param_1 + 0xc)" * (cast_expression "(int **)(param_1 + 0xc)" ( (type_descriptor "int **" primitive_type (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(param_1 + 0xc)" ( (binary_expression "param_1 + 0xc" identifier + number_literal) ))))) + number_literal) ))))) )) (argument_list "(*(int **)(param_1 + 0xc),0,local_220,local_224)" ( (pointer_expression "*(int **)(param_1 + 0xc)" * (cast_expression "(int **)(param_1 + 0xc)" ( (type_descriptor "int **" primitive_type (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(param_1 + 0xc)" ( (binary_expression "param_1 + 0xc" identifier + number_literal) )))) , number_literal , identifier , identifier ))) ;) }) while (parenthesized_expression "(*(int *)(param_1 + 0x48) == 0)" ( (binary_expression "*(int *)(param_1 + 0x48) == 0" (pointer_expression "*(int *)(param_1 + 0x48)" * (cast_expression "(int *)(param_1 + 0x48)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x48)" ( (binary_expression "param_1 + 0x48" identifier + number_literal) )))) == number_literal) )) ;) })) }))) (labeled_statement "LAB_0001fa80:\n  if (local_20 != *(int *)(in_GS_OFFSET + 0x14)) {\n                    \n    FUN_0008d800();\n  }" statement_identifier : (if_statement "if (local_20 != *(int *)(in_GS_OFFSET + 0x14)) {\n                    \n    FUN_0008d800();\n  }" if (parenthesized_expression "(local_20 != *(int *)(in_GS_OFFSET + 0x14))" ( (binary_expression "local_20 != *(int *)(in_GS_OFFSET + 0x14)" identifier != (pointer_expression "*(int *)(in_GS_OFFSET + 0x14)" * (cast_expression "(int *)(in_GS_OFFSET + 0x14)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(in_GS_OFFSET + 0x14)" ( (binary_expression "in_GS_OFFSET + 0x14" identifier + number_literal) ))))) )) (compound_statement "{\n                    \n    FUN_0008d800();\n  }" { (expression_statement "FUN_0008d800();" (call_expression "FUN_0008d800()" identifier (argument_list "()" ( ))) ;) }))) (return_statement "return;" return ;) })))
(translation_unit (function_definition TYPE (ERROR IDENT) (function_declarator IDENT (parameter_list ( (parameter_declaration TYPE IDENT) , (parameter_declaration TYPE IDENT) ))) (compound_statement { (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE IDENT ;) (declaration TYPE (array_declarator IDENT [ LIT ]) ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (expression_statement (assignment_expression IDENT = LIT) ;) (expression_statement (assignment_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 IDENT = (binary_expression IDENT + LIT)) ;) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( IDENT )))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT < LIT) )) (compound_statement { (labeled_statement statement_identifier : (expression_statement (call_expression (parenthesized_expression ( (pointer_expression * (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator * (abstract_pointer_declarator *))) ) (parenthesized_expression ( (binary_expression (pointer_expression * (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator * (abstract_pointer_declarator *))) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) + LIT) ))))) )) (argument_list ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator * (abstract_pointer_declarator *))) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) , IDENT ))) ;)) }) (else_clause else (compound_statement { (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) = IDENT) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT == LIT) )) (compound_statement { (do_statement do (compound_statement { (while_statement while (parenthesized_expression ( BOOL )) (compound_statement { (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( IDENT )))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT < LIT) )) (compound_statement { (if_statement if (parenthesized_expression ( (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) == LIT) )) (goto_statement goto statement_identifier ;)) (goto_statement goto statement_identifier ;) })) (expression_statement (call_expression IDENT (argument_list ( IDENT , (pointer_expression & IDENT) , (pointer_expression & IDENT) ))) ;) (expression_statement (assignment_expression IDENT = IDENT) ;) (if_statement if (parenthesized_expression ( (binary_expression LIT < IDENT) )) (break_statement break ;)) (expression_statement (call_expression IDENT (argument_list ( IDENT , IDENT , IDENT , LIT ))) ;) (expression_statement (call_expression IDENT (argument_list ( IDENT , IDENT ))) ;) (expression_statement (call_expression (parenthesized_expression ( (pointer_expression * (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator * (abstract_pointer_declarator *))) ) (parenthesized_expression ( (binary_expression (pointer_expression * (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator * (abstract_pointer_declarator *))) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) + LIT) ))))) )) (argument_list ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator * (abstract_pointer_declarator *))) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) , LIT , IDENT , IDENT ))) ;) (if_statement if (parenthesized_expression ( (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) != LIT) )) (goto_statement goto statement_identifier ;)) })) (expression_statement (assignment_expression IDENT = LIT) ;) (expression_statement (assignment_expression IDENT = IDENT) ;) (expression_statement (assignment_expression IDENT = IDENT) ;) (for_statement for ( (assignment_expression IDENT = LIT) ; (binary_expression IDENT != LIT) ; (assignment_expression IDENT = (binary_expression IDENT + LIT)) ) (compound_statement { (expression_statement (assignment_expression (pointer_expression * IDENT) = (pointer_expression * IDENT)) ;) (expression_statement (assignment_expression IDENT = (binary_expression (binary_expression IDENT + (binary_expression (cast_expression ( (type_descriptor TYPE) ) IDENT) * LIT)) + LIT)) ;) (expression_statement (assignment_expression IDENT = (binary_expression (binary_expression IDENT + (binary_expression (cast_expression ( (type_descriptor TYPE) ) IDENT) * LIT)) + LIT)) ;) })) (expression_statement (call_expression IDENT (argument_list ( IDENT , LIT ))) ;) (expression_statement (call_expression (parenthesized_expression ( (pointer_expression * (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator * (abstract_pointer_declarator *))) ) (parenthesized_expression ( (binary_expression (pointer_expression * (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator * (abstract_pointer_declarator *))) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) + LIT) ))))) )) (argument_list ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator * (abstract_pointer_declarator *))) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) , LIT , IDENT , IDENT ))) ;) }) while (parenthesized_expression ( (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) == LIT) )) ;) })) }))) (labeled_statement statement_identifier : (if_statement if (parenthesized_expression ( (binary_expression IDENT != (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) )) (compound_statement { (expression_statement (call_expression IDENT (argument_list ( ))) ;) }))) (return_statement return ;) })))
(function_definition "void __regparm3 FUN_0001f960(int param_1,int param_2)\n\n{\n  int iVar1;\n  uint uVar2;\n  int iVar3;\n  undefined4 *puVar4;\n  undefined4 *puVar5;\n  int in_GS_OFFSET;\n  byte bVar6;\n  undefined4 *local_228;\n  uint local_224;\n  undefined4 local_220 [128];\n  int local_20;\n  undefined4 uStack_14;\n  \n  bVar6 = 0;\n  uStack_14 = 0x1f96b;\n  local_20 = *(int *)(in_GS_OFFSET + 0x14);\n  iVar1 = param_1 + 0x34;\n  iVar3 = FUN_0001d890(iVar1);\n  if (iVar3 < 1) {\nLAB_0001faa7:\n    (**(code **)(**(int **)(param_1 + 8) + 0x18))(*(int **)(param_1 + 8),param_2);\n  }\n  else {\n    *(int *)(param_1 + 0x48) = param_2;\n    if (param_2 == 0) {\n      do {\n        while( true ) {\n          iVar3 = FUN_0001d890(iVar1);\n          if (iVar3 < 1) {\n            if (*(int *)(param_1 + 0x48) == 0) goto LAB_0001faa7;\n            goto LAB_0001fa80;\n          }\n          FUN_0001dac0(iVar1,&local_228,&local_224);\n          uVar2 = local_224;\n          if (0x200 < local_224) break;\n          __memcpy_chk(local_220,local_228,local_224,0x200);\n          FUN_0001da00(iVar1,uVar2);\n          (**(code **)(**(int **)(param_1 + 0xc) + 8))\n                    (*(int **)(param_1 + 0xc),0,local_220,local_224);\n          if (*(int *)(param_1 + 0x48) != 0) goto LAB_0001fa80;\n        }\n        local_224 = 0x200;\n        puVar4 = local_228;\n        puVar5 = local_220;\n        for (iVar3 = 0x80; iVar3 != 0; iVar3 = iVar3 + -1) {\n          *puVar5 = *puVar4;\n          puVar4 = puVar4 + (uint)bVar6 * -2 + 1;\n          puVar5 = puVar5 + (uint)bVar6 * -2 + 1;\n        }\n        FUN_0001da00(iVar1,0x200);\n        (**(code **)(**(int **)(param_1 + 0xc) + 8))(*(int **)(param_1 + 0xc),0,local_220,local_224)\n        ;\n      } while (*(int *)(param_1 + 0x48) == 0);\n    }\n  }\nLAB_0001fa80:\n  if (local_20 != *(int *)(in_GS_OFFSET + 0x14)) {\n                    \n    FUN_0008d800();\n  }\n  return;\n}" (primitive_type "void") (ERROR "__regparm3" (identifier "__regparm3")) (function_declarator "FUN_0001f960(int param_1,int param_2)" (identifier "FUN_0001f960") (parameter_list "(int param_1,int param_2)" (( "(") (parameter_declaration "int param_1" (primitive_type "int") (identifier "param_1")) (, ",") (parameter_declaration "int param_2" (primitive_type "int") (identifier "param_2")) () ")"))) (compound_statement "{\n  int iVar1;\n  uint uVar2;\n  int iVar3;\n  undefined4 *puVar4;\n  undefined4 *puVar5;\n  int in_GS_OFFSET;\n  byte bVar6;\n  undefined4 *local_228;\n  uint local_224;\n  undefined4 local_220 [128];\n  int local_20;\n  undefined4 uStack_14;\n  \n  bVar6 = 0;\n  uStack_14 = 0x1f96b;\n  local_20 = *(int *)(in_GS_OFFSET + 0x14);\n  iVar1 = param_1 + 0x34;\n  iVar3 = FUN_0001d890(iVar1);\n  if (iVar3 < 1) {\nLAB_0001faa7:\n    (**(code **)(**(int **)(param_1 + 8) + 0x18))(*(int **)(param_1 + 8),param_2);\n  }\n  else {\n    *(int *)(param_1 + 0x48) = param_2;\n    if (param_2 == 0) {\n      do {\n        while( true ) {\n          iVar3 = FUN_0001d890(iVar1);\n          if (iVar3 < 1) {\n            if (*(int *)(param_1 + 0x48) == 0) goto LAB_0001faa7;\n            goto LAB_0001fa80;\n          }\n          FUN_0001dac0(iVar1,&local_228,&local_224);\n          uVar2 = local_224;\n          if (0x200 < local_224) break;\n          __memcpy_chk(local_220,local_228,local_224,0x200);\n          FUN_0001da00(iVar1,uVar2);\n          (**(code **)(**(int **)(param_1 + 0xc) + 8))\n                    (*(int **)(param_1 + 0xc),0,local_220,local_224);\n          if (*(int *)(param_1 + 0x48) != 0) goto LAB_0001fa80;\n        }\n        local_224 = 0x200;\n        puVar4 = local_228;\n        puVar5 = local_220;\n        for (iVar3 = 0x80; iVar3 != 0; iVar3 = iVar3 + -1) {\n          *puVar5 = *puVar4;\n          puVar4 = puVar4 + (uint)bVar6 * -2 + 1;\n          puVar5 = puVar5 + (uint)bVar6 * -2 + 1;\n        }\n        FUN_0001da00(iVar1,0x200);\n        (**(code **)(**(int **)(param_1 + 0xc) + 8))(*(int **)(param_1 + 0xc),0,local_220,local_224)\n        ;\n      } while (*(int *)(param_1 + 0x48) == 0);\n    }\n  }\nLAB_0001fa80:\n  if (local_20 != *(int *)(in_GS_OFFSET + 0x14)) {\n                    \n    FUN_0008d800();\n  }\n  return;\n}" ({ "{") (declaration "int iVar1;" (primitive_type "int") (identifier "iVar1") (; ";")) (declaration "uint uVar2;" (type_identifier "uint") (identifier "uVar2") (; ";")) (declaration "int iVar3;" (primitive_type "int") (identifier "iVar3") (; ";")) (declaration "undefined4 *puVar4;" (type_identifier "undefined4") (pointer_declarator "*puVar4" (* "*") (identifier "puVar4")) (; ";")) (declaration "undefined4 *puVar5;" (type_identifier "undefined4") (pointer_declarator "*puVar5" (* "*") (identifier "puVar5")) (; ";")) (declaration "int in_GS_OFFSET;" (primitive_type "int") (identifier "in_GS_OFFSET") (; ";")) (declaration "byte bVar6;" (type_identifier "byte") (identifier "bVar6") (; ";")) (declaration "undefined4 *local_228;" (type_identifier "undefined4") (pointer_declarator "*local_228" (* "*") (identifier "local_228")) (; ";")) (declaration "uint local_224;" (type_identifier "uint") (identifier "local_224") (; ";")) (declaration "undefined4 local_220 [128];" (type_identifier "undefined4") (array_declarator "local_220 [128]" (identifier "local_220") ([ "[") (number_literal "128") (] "]")) (; ";")) (declaration "int local_20;" (primitive_type "int") (identifier "local_20") (; ";")) (declaration "undefined4 uStack_14;" (type_identifier "undefined4") (identifier "uStack_14") (; ";")) (expression_statement "bVar6 = 0;" (assignment_expression "bVar6 = 0" (identifier "bVar6") (= "=") (number_literal "0")) (; ";")) (expression_statement "uStack_14 = 0x1f96b;" (assignment_expression "uStack_14 = 0x1f96b" (identifier "uStack_14") (= "=") (number_literal "0x1f96b")) (; ";")) (expression_statement "local_20 = *(int *)(in_GS_OFFSET + 0x14);" (assignment_expression "local_20 = *(int *)(in_GS_OFFSET + 0x14)" (identifier "local_20") (= "=") (pointer_expression "*(int *)(in_GS_OFFSET + 0x14)" (* "*") (cast_expression "(int *)(in_GS_OFFSET + 0x14)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(in_GS_OFFSET + 0x14)" (( "(") (binary_expression "in_GS_OFFSET + 0x14" (identifier "in_GS_OFFSET") (+ "+") (number_literal "0x14")) () ")"))))) (; ";")) (expression_statement "iVar1 = param_1 + 0x34;" (assignment_expression "iVar1 = param_1 + 0x34" (identifier "iVar1") (= "=") (binary_expression "param_1 + 0x34" (identifier "param_1") (+ "+") (number_literal "0x34"))) (; ";")) (expression_statement "iVar3 = FUN_0001d890(iVar1);" (assignment_expression "iVar3 = FUN_0001d890(iVar1)" (identifier "iVar3") (= "=") (call_expression "FUN_0001d890(iVar1)" (identifier "FUN_0001d890") (argument_list "(iVar1)" (( "(") (identifier "iVar1") () ")")))) (; ";")) (if_statement "if (iVar3 < 1) {\nLAB_0001faa7:\n    (**(code **)(**(int **)(param_1 + 8) + 0x18))(*(int **)(param_1 + 8),param_2);\n  }\n  else {\n    *(int *)(param_1 + 0x48) = param_2;\n    if (param_2 == 0) {\n      do {\n        while( true ) {\n          iVar3 = FUN_0001d890(iVar1);\n          if (iVar3 < 1) {\n            if (*(int *)(param_1 + 0x48) == 0) goto LAB_0001faa7;\n            goto LAB_0001fa80;\n          }\n          FUN_0001dac0(iVar1,&local_228,&local_224);\n          uVar2 = local_224;\n          if (0x200 < local_224) break;\n          __memcpy_chk(local_220,local_228,local_224,0x200);\n          FUN_0001da00(iVar1,uVar2);\n          (**(code **)(**(int **)(param_1 + 0xc) + 8))\n                    (*(int **)(param_1 + 0xc),0,local_220,local_224);\n          if (*(int *)(param_1 + 0x48) != 0) goto LAB_0001fa80;\n        }\n        local_224 = 0x200;\n        puVar4 = local_228;\n        puVar5 = local_220;\n        for (iVar3 = 0x80; iVar3 != 0; iVar3 = iVar3 + -1) {\n          *puVar5 = *puVar4;\n          puVar4 = puVar4 + (uint)bVar6 * -2 + 1;\n          puVar5 = puVar5 + (uint)bVar6 * -2 + 1;\n        }\n        FUN_0001da00(iVar1,0x200);\n        (**(code **)(**(int **)(param_1 + 0xc) + 8))(*(int **)(param_1 + 0xc),0,local_220,local_224)\n        ;\n      } while (*(int *)(param_1 + 0x48) == 0);\n    }\n  }" (if "if") (parenthesized_expression "(iVar3 < 1)" (( "(") (binary_expression "iVar3 < 1" (identifier "iVar3") (< "<") (number_literal "1")) () ")")) (compound_statement "{\nLAB_0001faa7:\n    (**(code **)(**(int **)(param_1 + 8) + 0x18))(*(int **)(param_1 + 8),param_2);\n  }" ({ "{") (labeled_statement "LAB_0001faa7:\n    (**(code **)(**(int **)(param_1 + 8) + 0x18))(*(int **)(param_1 + 8),param_2);" (statement_identifier "LAB_0001faa7") (: ":") (expression_statement "(**(code **)(**(int **)(param_1 + 8) + 0x18))(*(int **)(param_1 + 8),param_2);" (call_expression "(**(code **)(**(int **)(param_1 + 8) + 0x18))(*(int **)(param_1 + 8),param_2)" (parenthesized_expression "(**(code **)(**(int **)(param_1 + 8) + 0x18))" (( "(") (pointer_expression "**(code **)(**(int **)(param_1 + 8) + 0x18)" (* "*") (pointer_expression "*(code **)(**(int **)(param_1 + 8) + 0x18)" (* "*") (cast_expression "(code **)(**(int **)(param_1 + 8) + 0x18)" (( "(") (type_descriptor "code **" (type_identifier "code") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (parenthesized_expression "(**(int **)(param_1 + 8) + 0x18)" (( "(") (binary_expression "**(int **)(param_1 + 8) + 0x18" (pointer_expression "**(int **)(param_1 + 8)" (* "*") (pointer_expression "*(int **)(param_1 + 8)" (* "*") (cast_expression "(int **)(param_1 + 8)" (( "(") (type_descriptor "int **" (primitive_type "int") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (parenthesized_expression "(param_1 + 8)" (( "(") (binary_expression "param_1 + 8" (identifier "param_1") (+ "+") (number_literal "8")) () ")"))))) (+ "+") (number_literal "0x18")) () ")"))))) () ")")) (argument_list "(*(int **)(param_1 + 8),param_2)" (( "(") (pointer_expression "*(int **)(param_1 + 8)" (* "*") (cast_expression "(int **)(param_1 + 8)" (( "(") (type_descriptor "int **" (primitive_type "int") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (parenthesized_expression "(param_1 + 8)" (( "(") (binary_expression "param_1 + 8" (identifier "param_1") (+ "+") (number_literal "8")) () ")")))) (, ",") (identifier "param_2") () ")"))) (; ";"))) (} "}")) (else_clause "else {\n    *(int *)(param_1 + 0x48) = param_2;\n    if (param_2 == 0) {\n      do {\n        while( true ) {\n          iVar3 = FUN_0001d890(iVar1);\n          if (iVar3 < 1) {\n            if (*(int *)(param_1 + 0x48) == 0) goto LAB_0001faa7;\n            goto LAB_0001fa80;\n          }\n          FUN_0001dac0(iVar1,&local_228,&local_224);\n          uVar2 = local_224;\n          if (0x200 < local_224) break;\n          __memcpy_chk(local_220,local_228,local_224,0x200);\n          FUN_0001da00(iVar1,uVar2);\n          (**(code **)(**(int **)(param_1 + 0xc) + 8))\n                    (*(int **)(param_1 + 0xc),0,local_220,local_224);\n          if (*(int *)(param_1 + 0x48) != 0) goto LAB_0001fa80;\n        }\n        local_224 = 0x200;\n        puVar4 = local_228;\n        puVar5 = local_220;\n        for (iVar3 = 0x80; iVar3 != 0; iVar3 = iVar3 + -1) {\n          *puVar5 = *puVar4;\n          puVar4 = puVar4 + (uint)bVar6 * -2 + 1;\n          puVar5 = puVar5 + (uint)bVar6 * -2 + 1;\n        }\n        FUN_0001da00(iVar1,0x200);\n        (**(code **)(**(int **)(param_1 + 0xc) + 8))(*(int **)(param_1 + 0xc),0,local_220,local_224)\n        ;\n      } while (*(int *)(param_1 + 0x48) == 0);\n    }\n  }" (else "else") (compound_statement "{\n    *(int *)(param_1 + 0x48) = param_2;\n    if (param_2 == 0) {\n      do {\n        while( true ) {\n          iVar3 = FUN_0001d890(iVar1);\n          if (iVar3 < 1) {\n            if (*(int *)(param_1 + 0x48) == 0) goto LAB_0001faa7;\n            goto LAB_0001fa80;\n          }\n          FUN_0001dac0(iVar1,&local_228,&local_224);\n          uVar2 = local_224;\n          if (0x200 < local_224) break;\n          __memcpy_chk(local_220,local_228,local_224,0x200);\n          FUN_0001da00(iVar1,uVar2);\n          (**(code **)(**(int **)(param_1 + 0xc) + 8))\n                    (*(int **)(param_1 + 0xc),0,local_220,local_224);\n          if (*(int *)(param_1 + 0x48) != 0) goto LAB_0001fa80;\n        }\n        local_224 = 0x200;\n        puVar4 = local_228;\n        puVar5 = local_220;\n        for (iVar3 = 0x80; iVar3 != 0; iVar3 = iVar3 + -1) {\n          *puVar5 = *puVar4;\n          puVar4 = puVar4 + (uint)bVar6 * -2 + 1;\n          puVar5 = puVar5 + (uint)bVar6 * -2 + 1;\n        }\n        FUN_0001da00(iVar1,0x200);\n        (**(code **)(**(int **)(param_1 + 0xc) + 8))(*(int **)(param_1 + 0xc),0,local_220,local_224)\n        ;\n      } while (*(int *)(param_1 + 0x48) == 0);\n    }\n  }" ({ "{") (expression_statement "*(int *)(param_1 + 0x48) = param_2;" (assignment_expression "*(int *)(param_1 + 0x48) = param_2" (pointer_expression "*(int *)(param_1 + 0x48)" (* "*") (cast_expression "(int *)(param_1 + 0x48)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x48)" (( "(") (binary_expression "param_1 + 0x48" (identifier "param_1") (+ "+") (number_literal "0x48")) () ")")))) (= "=") (identifier "param_2")) (; ";")) (if_statement "if (param_2 == 0) {\n      do {\n        while( true ) {\n          iVar3 = FUN_0001d890(iVar1);\n          if (iVar3 < 1) {\n            if (*(int *)(param_1 + 0x48) == 0) goto LAB_0001faa7;\n            goto LAB_0001fa80;\n          }\n          FUN_0001dac0(iVar1,&local_228,&local_224);\n          uVar2 = local_224;\n          if (0x200 < local_224) break;\n          __memcpy_chk(local_220,local_228,local_224,0x200);\n          FUN_0001da00(iVar1,uVar2);\n          (**(code **)(**(int **)(param_1 + 0xc) + 8))\n                    (*(int **)(param_1 + 0xc),0,local_220,local_224);\n          if (*(int *)(param_1 + 0x48) != 0) goto LAB_0001fa80;\n        }\n        local_224 = 0x200;\n        puVar4 = local_228;\n        puVar5 = local_220;\n        for (iVar3 = 0x80; iVar3 != 0; iVar3 = iVar3 + -1) {\n          *puVar5 = *puVar4;\n          puVar4 = puVar4 + (uint)bVar6 * -2 + 1;\n          puVar5 = puVar5 + (uint)bVar6 * -2 + 1;\n        }\n        FUN_0001da00(iVar1,0x200);\n        (**(code **)(**(int **)(param_1 + 0xc) + 8))(*(int **)(param_1 + 0xc),0,local_220,local_224)\n        ;\n      } while (*(int *)(param_1 + 0x48) == 0);\n    }" (if "if") (parenthesized_expression "(param_2 == 0)" (( "(") (binary_expression "param_2 == 0" (identifier "param_2") (== "==") (number_literal "0")) () ")")) (compound_statement "{\n      do {\n        while( true ) {\n          iVar3 = FUN_0001d890(iVar1);\n          if (iVar3 < 1) {\n            if (*(int *)(param_1 + 0x48) == 0) goto LAB_0001faa7;\n            goto LAB_0001fa80;\n          }\n          FUN_0001dac0(iVar1,&local_228,&local_224);\n          uVar2 = local_224;\n          if (0x200 < local_224) break;\n          __memcpy_chk(local_220,local_228,local_224,0x200);\n          FUN_0001da00(iVar1,uVar2);\n          (**(code **)(**(int **)(param_1 + 0xc) + 8))\n                    (*(int **)(param_1 + 0xc),0,local_220,local_224);\n          if (*(int *)(param_1 + 0x48) != 0) goto LAB_0001fa80;\n        }\n        local_224 = 0x200;\n        puVar4 = local_228;\n        puVar5 = local_220;\n        for (iVar3 = 0x80; iVar3 != 0; iVar3 = iVar3 + -1) {\n          *puVar5 = *puVar4;\n          puVar4 = puVar4 + (uint)bVar6 * -2 + 1;\n          puVar5 = puVar5 + (uint)bVar6 * -2 + 1;\n        }\n        FUN_0001da00(iVar1,0x200);\n        (**(code **)(**(int **)(param_1 + 0xc) + 8))(*(int **)(param_1 + 0xc),0,local_220,local_224)\n        ;\n      } while (*(int *)(param_1 + 0x48) == 0);\n    }" ({ "{") (do_statement "do {\n        while( true ) {\n          iVar3 = FUN_0001d890(iVar1);\n          if (iVar3 < 1) {\n            if (*(int *)(param_1 + 0x48) == 0) goto LAB_0001faa7;\n            goto LAB_0001fa80;\n          }\n          FUN_0001dac0(iVar1,&local_228,&local_224);\n          uVar2 = local_224;\n          if (0x200 < local_224) break;\n          __memcpy_chk(local_220,local_228,local_224,0x200);\n          FUN_0001da00(iVar1,uVar2);\n          (**(code **)(**(int **)(param_1 + 0xc) + 8))\n                    (*(int **)(param_1 + 0xc),0,local_220,local_224);\n          if (*(int *)(param_1 + 0x48) != 0) goto LAB_0001fa80;\n        }\n        local_224 = 0x200;\n        puVar4 = local_228;\n        puVar5 = local_220;\n        for (iVar3 = 0x80; iVar3 != 0; iVar3 = iVar3 + -1) {\n          *puVar5 = *puVar4;\n          puVar4 = puVar4 + (uint)bVar6 * -2 + 1;\n          puVar5 = puVar5 + (uint)bVar6 * -2 + 1;\n        }\n        FUN_0001da00(iVar1,0x200);\n        (**(code **)(**(int **)(param_1 + 0xc) + 8))(*(int **)(param_1 + 0xc),0,local_220,local_224)\n        ;\n      } while (*(int *)(param_1 + 0x48) == 0);" (do "do") (compound_statement "{\n        while( true ) {\n          iVar3 = FUN_0001d890(iVar1);\n          if (iVar3 < 1) {\n            if (*(int *)(param_1 + 0x48) == 0) goto LAB_0001faa7;\n            goto LAB_0001fa80;\n          }\n          FUN_0001dac0(iVar1,&local_228,&local_224);\n          uVar2 = local_224;\n          if (0x200 < local_224) break;\n          __memcpy_chk(local_220,local_228,local_224,0x200);\n          FUN_0001da00(iVar1,uVar2);\n          (**(code **)(**(int **)(param_1 + 0xc) + 8))\n                    (*(int **)(param_1 + 0xc),0,local_220,local_224);\n          if (*(int *)(param_1 + 0x48) != 0) goto LAB_0001fa80;\n        }\n        local_224 = 0x200;\n        puVar4 = local_228;\n        puVar5 = local_220;\n        for (iVar3 = 0x80; iVar3 != 0; iVar3 = iVar3 + -1) {\n          *puVar5 = *puVar4;\n          puVar4 = puVar4 + (uint)bVar6 * -2 + 1;\n          puVar5 = puVar5 + (uint)bVar6 * -2 + 1;\n        }\n        FUN_0001da00(iVar1,0x200);\n        (**(code **)(**(int **)(param_1 + 0xc) + 8))(*(int **)(param_1 + 0xc),0,local_220,local_224)\n        ;\n      }" ({ "{") (while_statement "while( true ) {\n          iVar3 = FUN_0001d890(iVar1);\n          if (iVar3 < 1) {\n            if (*(int *)(param_1 + 0x48) == 0) goto LAB_0001faa7;\n            goto LAB_0001fa80;\n          }\n          FUN_0001dac0(iVar1,&local_228,&local_224);\n          uVar2 = local_224;\n          if (0x200 < local_224) break;\n          __memcpy_chk(local_220,local_228,local_224,0x200);\n          FUN_0001da00(iVar1,uVar2);\n          (**(code **)(**(int **)(param_1 + 0xc) + 8))\n                    (*(int **)(param_1 + 0xc),0,local_220,local_224);\n          if (*(int *)(param_1 + 0x48) != 0) goto LAB_0001fa80;\n        }" (while "while") (parenthesized_expression "( true )" (( "(") (true "true") () ")")) (compound_statement "{\n          iVar3 = FUN_0001d890(iVar1);\n          if (iVar3 < 1) {\n            if (*(int *)(param_1 + 0x48) == 0) goto LAB_0001faa7;\n            goto LAB_0001fa80;\n          }\n          FUN_0001dac0(iVar1,&local_228,&local_224);\n          uVar2 = local_224;\n          if (0x200 < local_224) break;\n          __memcpy_chk(local_220,local_228,local_224,0x200);\n          FUN_0001da00(iVar1,uVar2);\n          (**(code **)(**(int **)(param_1 + 0xc) + 8))\n                    (*(int **)(param_1 + 0xc),0,local_220,local_224);\n          if (*(int *)(param_1 + 0x48) != 0) goto LAB_0001fa80;\n        }" ({ "{") (expression_statement "iVar3 = FUN_0001d890(iVar1);" (assignment_expression "iVar3 = FUN_0001d890(iVar1)" (identifier "iVar3") (= "=") (call_expression "FUN_0001d890(iVar1)" (identifier "FUN_0001d890") (argument_list "(iVar1)" (( "(") (identifier "iVar1") () ")")))) (; ";")) (if_statement "if (iVar3 < 1) {\n            if (*(int *)(param_1 + 0x48) == 0) goto LAB_0001faa7;\n            goto LAB_0001fa80;\n          }" (if "if") (parenthesized_expression "(iVar3 < 1)" (( "(") (binary_expression "iVar3 < 1" (identifier "iVar3") (< "<") (number_literal "1")) () ")")) (compound_statement "{\n            if (*(int *)(param_1 + 0x48) == 0) goto LAB_0001faa7;\n            goto LAB_0001fa80;\n          }" ({ "{") (if_statement "if (*(int *)(param_1 + 0x48) == 0) goto LAB_0001faa7;" (if "if") (parenthesized_expression "(*(int *)(param_1 + 0x48) == 0)" (( "(") (binary_expression "*(int *)(param_1 + 0x48) == 0" (pointer_expression "*(int *)(param_1 + 0x48)" (* "*") (cast_expression "(int *)(param_1 + 0x48)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x48)" (( "(") (binary_expression "param_1 + 0x48" (identifier "param_1") (+ "+") (number_literal "0x48")) () ")")))) (== "==") (number_literal "0")) () ")")) (goto_statement "goto LAB_0001faa7;" (goto "goto") (statement_identifier "LAB_0001faa7") (; ";"))) (goto_statement "goto LAB_0001fa80;" (goto "goto") (statement_identifier "LAB_0001fa80") (; ";")) (} "}"))) (expression_statement "FUN_0001dac0(iVar1,&local_228,&local_224);" (call_expression "FUN_0001dac0(iVar1,&local_228,&local_224)" (identifier "FUN_0001dac0") (argument_list "(iVar1,&local_228,&local_224)" (( "(") (identifier "iVar1") (, ",") (pointer_expression "&local_228" (& "&") (identifier "local_228")) (, ",") (pointer_expression "&local_224" (& "&") (identifier "local_224")) () ")"))) (; ";")) (expression_statement "uVar2 = local_224;" (assignment_expression "uVar2 = local_224" (identifier "uVar2") (= "=") (identifier "local_224")) (; ";")) (if_statement "if (0x200 < local_224) break;" (if "if") (parenthesized_expression "(0x200 < local_224)" (( "(") (binary_expression "0x200 < local_224" (number_literal "0x200") (< "<") (identifier "local_224")) () ")")) (break_statement "break;" (break "break") (; ";"))) (expression_statement "__memcpy_chk(local_220,local_228,local_224,0x200);" (call_expression "__memcpy_chk(local_220,local_228,local_224,0x200)" (identifier "__memcpy_chk") (argument_list "(local_220,local_228,local_224,0x200)" (( "(") (identifier "local_220") (, ",") (identifier "local_228") (, ",") (identifier "local_224") (, ",") (number_literal "0x200") () ")"))) (; ";")) (expression_statement "FUN_0001da00(iVar1,uVar2);" (call_expression "FUN_0001da00(iVar1,uVar2)" (identifier "FUN_0001da00") (argument_list "(iVar1,uVar2)" (( "(") (identifier "iVar1") (, ",") (identifier "uVar2") () ")"))) (; ";")) (expression_statement "(**(code **)(**(int **)(param_1 + 0xc) + 8))\n                    (*(int **)(param_1 + 0xc),0,local_220,local_224);" (call_expression "(**(code **)(**(int **)(param_1 + 0xc) + 8))\n                    (*(int **)(param_1 + 0xc),0,local_220,local_224)" (parenthesized_expression "(**(code **)(**(int **)(param_1 + 0xc) + 8))" (( "(") (pointer_expression "**(code **)(**(int **)(param_1 + 0xc) + 8)" (* "*") (pointer_expression "*(code **)(**(int **)(param_1 + 0xc) + 8)" (* "*") (cast_expression "(code **)(**(int **)(param_1 + 0xc) + 8)" (( "(") (type_descriptor "code **" (type_identifier "code") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (parenthesized_expression "(**(int **)(param_1 + 0xc) + 8)" (( "(") (binary_expression "**(int **)(param_1 + 0xc) + 8" (pointer_expression "**(int **)(param_1 + 0xc)" (* "*") (pointer_expression "*(int **)(param_1 + 0xc)" (* "*") (cast_expression "(int **)(param_1 + 0xc)" (( "(") (type_descriptor "int **" (primitive_type "int") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (parenthesized_expression "(param_1 + 0xc)" (( "(") (binary_expression "param_1 + 0xc" (identifier "param_1") (+ "+") (number_literal "0xc")) () ")"))))) (+ "+") (number_literal "8")) () ")"))))) () ")")) (argument_list "(*(int **)(param_1 + 0xc),0,local_220,local_224)" (( "(") (pointer_expression "*(int **)(param_1 + 0xc)" (* "*") (cast_expression "(int **)(param_1 + 0xc)" (( "(") (type_descriptor "int **" (primitive_type "int") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (parenthesized_expression "(param_1 + 0xc)" (( "(") (binary_expression "param_1 + 0xc" (identifier "param_1") (+ "+") (number_literal "0xc")) () ")")))) (, ",") (number_literal "0") (, ",") (identifier "local_220") (, ",") (identifier "local_224") () ")"))) (; ";")) (if_statement "if (*(int *)(param_1 + 0x48) != 0) goto LAB_0001fa80;" (if "if") (parenthesized_expression "(*(int *)(param_1 + 0x48) != 0)" (( "(") (binary_expression "*(int *)(param_1 + 0x48) != 0" (pointer_expression "*(int *)(param_1 + 0x48)" (* "*") (cast_expression "(int *)(param_1 + 0x48)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x48)" (( "(") (binary_expression "param_1 + 0x48" (identifier "param_1") (+ "+") (number_literal "0x48")) () ")")))) (!= "!=") (number_literal "0")) () ")")) (goto_statement "goto LAB_0001fa80;" (goto "goto") (statement_identifier "LAB_0001fa80") (; ";"))) (} "}"))) (expression_statement "local_224 = 0x200;" (assignment_expression "local_224 = 0x200" (identifier "local_224") (= "=") (number_literal "0x200")) (; ";")) (expression_statement "puVar4 = local_228;" (assignment_expression "puVar4 = local_228" (identifier "puVar4") (= "=") (identifier "local_228")) (; ";")) (expression_statement "puVar5 = local_220;" (assignment_expression "puVar5 = local_220" (identifier "puVar5") (= "=") (identifier "local_220")) (; ";")) (for_statement "for (iVar3 = 0x80; iVar3 != 0; iVar3 = iVar3 + -1) {\n          *puVar5 = *puVar4;\n          puVar4 = puVar4 + (uint)bVar6 * -2 + 1;\n          puVar5 = puVar5 + (uint)bVar6 * -2 + 1;\n        }" (for "for") (( "(") (assignment_expression "iVar3 = 0x80" (identifier "iVar3") (= "=") (number_literal "0x80")) (; ";") (binary_expression "iVar3 != 0" (identifier "iVar3") (!= "!=") (number_literal "0")) (; ";") (assignment_expression "iVar3 = iVar3 + -1" (identifier "iVar3") (= "=") (binary_expression "iVar3 + -1" (identifier "iVar3") (+ "+") (number_literal "-1"))) () ")") (compound_statement "{\n          *puVar5 = *puVar4;\n          puVar4 = puVar4 + (uint)bVar6 * -2 + 1;\n          puVar5 = puVar5 + (uint)bVar6 * -2 + 1;\n        }" ({ "{") (expression_statement "*puVar5 = *puVar4;" (assignment_expression "*puVar5 = *puVar4" (pointer_expression "*puVar5" (* "*") (identifier "puVar5")) (= "=") (pointer_expression "*puVar4" (* "*") (identifier "puVar4"))) (; ";")) (expression_statement "puVar4 = puVar4 + (uint)bVar6 * -2 + 1;" (assignment_expression "puVar4 = puVar4 + (uint)bVar6 * -2 + 1" (identifier "puVar4") (= "=") (binary_expression "puVar4 + (uint)bVar6 * -2 + 1" (binary_expression "puVar4 + (uint)bVar6 * -2" (identifier "puVar4") (+ "+") (binary_expression "(uint)bVar6 * -2" (cast_expression "(uint)bVar6" (( "(") (type_descriptor "uint" (type_identifier "uint")) () ")") (identifier "bVar6")) (* "*") (number_literal "-2"))) (+ "+") (number_literal "1"))) (; ";")) (expression_statement "puVar5 = puVar5 + (uint)bVar6 * -2 + 1;" (assignment_expression "puVar5 = puVar5 + (uint)bVar6 * -2 + 1" (identifier "puVar5") (= "=") (binary_expression "puVar5 + (uint)bVar6 * -2 + 1" (binary_expression "puVar5 + (uint)bVar6 * -2" (identifier "puVar5") (+ "+") (binary_expression "(uint)bVar6 * -2" (cast_expression "(uint)bVar6" (( "(") (type_descriptor "uint" (type_identifier "uint")) () ")") (identifier "bVar6")) (* "*") (number_literal "-2"))) (+ "+") (number_literal "1"))) (; ";")) (} "}"))) (expression_statement "FUN_0001da00(iVar1,0x200);" (call_expression "FUN_0001da00(iVar1,0x200)" (identifier "FUN_0001da00") (argument_list "(iVar1,0x200)" (( "(") (identifier "iVar1") (, ",") (number_literal "0x200") () ")"))) (; ";")) (expression_statement "(**(code **)(**(int **)(param_1 + 0xc) + 8))(*(int **)(param_1 + 0xc),0,local_220,local_224)\n        ;" (call_expression "(**(code **)(**(int **)(param_1 + 0xc) + 8))(*(int **)(param_1 + 0xc),0,local_220,local_224)" (parenthesized_expression "(**(code **)(**(int **)(param_1 + 0xc) + 8))" (( "(") (pointer_expression "**(code **)(**(int **)(param_1 + 0xc) + 8)" (* "*") (pointer_expression "*(code **)(**(int **)(param_1 + 0xc) + 8)" (* "*") (cast_expression "(code **)(**(int **)(param_1 + 0xc) + 8)" (( "(") (type_descriptor "code **" (type_identifier "code") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (parenthesized_expression "(**(int **)(param_1 + 0xc) + 8)" (( "(") (binary_expression "**(int **)(param_1 + 0xc) + 8" (pointer_expression "**(int **)(param_1 + 0xc)" (* "*") (pointer_expression "*(int **)(param_1 + 0xc)" (* "*") (cast_expression "(int **)(param_1 + 0xc)" (( "(") (type_descriptor "int **" (primitive_type "int") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (parenthesized_expression "(param_1 + 0xc)" (( "(") (binary_expression "param_1 + 0xc" (identifier "param_1") (+ "+") (number_literal "0xc")) () ")"))))) (+ "+") (number_literal "8")) () ")"))))) () ")")) (argument_list "(*(int **)(param_1 + 0xc),0,local_220,local_224)" (( "(") (pointer_expression "*(int **)(param_1 + 0xc)" (* "*") (cast_expression "(int **)(param_1 + 0xc)" (( "(") (type_descriptor "int **" (primitive_type "int") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (parenthesized_expression "(param_1 + 0xc)" (( "(") (binary_expression "param_1 + 0xc" (identifier "param_1") (+ "+") (number_literal "0xc")) () ")")))) (, ",") (number_literal "0") (, ",") (identifier "local_220") (, ",") (identifier "local_224") () ")"))) (; ";")) (} "}")) (while "while") (parenthesized_expression "(*(int *)(param_1 + 0x48) == 0)" (( "(") (binary_expression "*(int *)(param_1 + 0x48) == 0" (pointer_expression "*(int *)(param_1 + 0x48)" (* "*") (cast_expression "(int *)(param_1 + 0x48)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x48)" (( "(") (binary_expression "param_1 + 0x48" (identifier "param_1") (+ "+") (number_literal "0x48")) () ")")))) (== "==") (number_literal "0")) () ")")) (; ";")) (} "}"))) (} "}")))) (labeled_statement "LAB_0001fa80:\n  if (local_20 != *(int *)(in_GS_OFFSET + 0x14)) {\n                    \n    FUN_0008d800();\n  }" (statement_identifier "LAB_0001fa80") (: ":") (if_statement "if (local_20 != *(int *)(in_GS_OFFSET + 0x14)) {\n                    \n    FUN_0008d800();\n  }" (if "if") (parenthesized_expression "(local_20 != *(int *)(in_GS_OFFSET + 0x14))" (( "(") (binary_expression "local_20 != *(int *)(in_GS_OFFSET + 0x14)" (identifier "local_20") (!= "!=") (pointer_expression "*(int *)(in_GS_OFFSET + 0x14)" (* "*") (cast_expression "(int *)(in_GS_OFFSET + 0x14)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(in_GS_OFFSET + 0x14)" (( "(") (binary_expression "in_GS_OFFSET + 0x14" (identifier "in_GS_OFFSET") (+ "+") (number_literal "0x14")) () ")"))))) () ")")) (compound_statement "{\n                    \n    FUN_0008d800();\n  }" ({ "{") (expression_statement "FUN_0008d800();" (call_expression "FUN_0008d800()" (identifier "FUN_0008d800") (argument_list "()" (( "(") () ")"))) (; ";")) (} "}")))) (return_statement "return;" (return "return") (; ";")) (} "}")))

/* WARNING: Function: __x86.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */
/* WARNING: Enum "anon_enum_32": Some values do not have unique names */

void __regparm3 function_1(type_1 var_2,int var_5)

{
  type_2 *ch;
  int var_11;
  int var_4;
  type_3 *var_9;
  char *var_10;
  int var_1;
  type_4 bVar5;
  void *data;
  int len;
  char databuf [512];
  
  bVar5 = 0;
  var_11 = *(int *)(var_1 + 0x14);
  ch = (type_2 *)(var_2 + 0xd);
  var_4 = var_3(ch);
  if (var_4 < 1) {
LAB_0001faa7:
    (**(type_5 **)(var_2[2]->plug + 0x18))(var_2[2],var_5);
  }
  else {
    var_2[0x12] = (type_6 *)var_5;
    if (var_5 == 0) {
      do {
        while( true ) {
          var_4 = var_3(ch);
          if (var_4 < 1) {
            if (var_2[0x12] == (type_6 *)0x0) goto LAB_0001faa7;
            goto LAB_0001fa80;
          }
          var_6(ch,&data,&len);
          var_4 = len;
          if (0x200 < (type_7)len) break;
          var_7(databuf,data,len,0x200);
          var_8(ch,var_4);
          (**(type_5 **)(var_2[3]->plug + 8))(var_2[3],0,databuf,len);
          if (var_2[0x12] != (type_6 *)0x0) goto LAB_0001fa80;
        }
        len = 0x200;
        var_9 = (type_3 *)data;
        var_10 = databuf;
        for (var_4 = 0x80; var_4 != 0; var_4 = var_4 + -1) {
          *(type_3 *)var_10 = *var_9;
          var_9 = var_9 + (type_7)bVar5 * -2 + 1;
          var_10 = var_10 + (type_7)bVar5 * -8 + 4;
        }
        var_8(ch,0x200);
        (**(type_5 **)(var_2[3]->plug + 8))(var_2[3],0,databuf,len);
      } while (var_2[0x12] == (type_6 *)0x0);
    }
  }
LAB_0001fa80:
  if (var_11 != *(int *)(var_1 + 0x14)) {
                    /* WARNING: Subroutine does not return */
    var_12();
  }
  return;
}


(translation_unit (function_definition type: (primitive_type) (ERROR (identifier)) declarator: (function_declarator declarator: (identifier) parameters: (parameter_list (parameter_declaration type: (primitive_type) declarator: (identifier)) (parameter_declaration type: (primitive_type) declarator: (identifier)))) body: (compound_statement (declaration type: (primitive_type) declarator: (identifier)) (declaration type: (type_identifier) declarator: (identifier)) (declaration type: (primitive_type) declarator: (identifier)) (declaration type: (type_identifier) declarator: (pointer_declarator declarator: (identifier))) (declaration type: (type_identifier) declarator: (pointer_declarator declarator: (identifier))) (declaration type: (primitive_type) declarator: (identifier)) (declaration type: (type_identifier) declarator: (identifier)) (declaration type: (type_identifier) declarator: (pointer_declarator declarator: (identifier))) (declaration type: (type_identifier) declarator: (identifier)) (declaration type: (type_identifier) declarator: (array_declarator declarator: (identifier) size: (number_literal))) (declaration type: (primitive_type) declarator: (identifier)) (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: (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: (identifier) right: (binary_expression left: (identifier) right: (number_literal)))) (expression_statement (assignment_expression left: (identifier) right: (call_expression function: (identifier) arguments: (argument_list (identifier))))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))) consequence: (compound_statement (labeled_statement label: (statement_identifier) (expression_statement (call_expression function: (parenthesized_expression (pointer_expression argument: (pointer_expression argument: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator declarator: (abstract_pointer_declarator))) value: (parenthesized_expression (binary_expression left: (pointer_expression argument: (pointer_expression argument: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator declarator: (abstract_pointer_declarator))) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal)))))) right: (number_literal))))))) arguments: (argument_list (pointer_expression argument: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator declarator: (abstract_pointer_declarator))) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))))) (identifier)))))) alternative: (else_clause (compound_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: (identifier))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))) consequence: (compound_statement (do_statement body: (compound_statement (while_statement condition: (parenthesized_expression (true)) body: (compound_statement (expression_statement (assignment_expression left: (identifier) right: (call_expression function: (identifier) arguments: (argument_list (identifier))))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))) consequence: (compound_statement (if_statement condition: (parenthesized_expression (binary_expression left: (pointer_expression argument: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))))) right: (number_literal))) consequence: (goto_statement label: (statement_identifier))) (goto_statement label: (statement_identifier)))) (expression_statement (call_expression function: (identifier) arguments: (argument_list (identifier) (pointer_expression argument: (identifier)) (pointer_expression argument: (identifier))))) (expression_statement (assignment_expression left: (identifier) right: (identifier))) (if_statement condition: (parenthesized_expression (binary_expression left: (number_literal) right: (identifier))) consequence: (break_statement)) (expression_statement (call_expression function: (identifier) arguments: (argument_list (identifier) (identifier) (identifier) (number_literal)))) (expression_statement (call_expression function: (identifier) arguments: (argument_list (identifier) (identifier)))) (expression_statement (call_expression function: (parenthesized_expression (pointer_expression argument: (pointer_expression argument: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator declarator: (abstract_pointer_declarator))) value: (parenthesized_expression (binary_expression left: (pointer_expression argument: (pointer_expression argument: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator declarator: (abstract_pointer_declarator))) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal)))))) right: (number_literal))))))) arguments: (argument_list (pointer_expression argument: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator declarator: (abstract_pointer_declarator))) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))))) (number_literal) (identifier) (identifier)))) (if_statement condition: (parenthesized_expression (binary_expression left: (pointer_expression argument: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))))) right: (number_literal))) consequence: (goto_statement label: (statement_identifier))))) (expression_statement (assignment_expression left: (identifier) right: (number_literal))) (expression_statement (assignment_expression left: (identifier) right: (identifier))) (expression_statement (assignment_expression left: (identifier) right: (identifier))) (for_statement initializer: (assignment_expression left: (identifier) right: (number_literal)) condition: (binary_expression left: (identifier) right: (number_literal)) update: (assignment_expression left: (identifier) right: (binary_expression left: (identifier) right: (number_literal))) body: (compound_statement (expression_statement (assignment_expression left: (pointer_expression argument: (identifier)) right: (pointer_expression argument: (identifier)))) (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (binary_expression left: (identifier) right: (binary_expression left: (cast_expression type: (type_descriptor type: (type_identifier)) value: (identifier)) right: (number_literal))) right: (number_literal)))) (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (binary_expression left: (identifier) right: (binary_expression left: (cast_expression type: (type_descriptor type: (type_identifier)) value: (identifier)) right: (number_literal))) right: (number_literal)))))) (expression_statement (call_expression function: (identifier) arguments: (argument_list (identifier) (number_literal)))) (expression_statement (call_expression function: (parenthesized_expression (pointer_expression argument: (pointer_expression argument: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator declarator: (abstract_pointer_declarator))) value: (parenthesized_expression (binary_expression left: (pointer_expression argument: (pointer_expression argument: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator declarator: (abstract_pointer_declarator))) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal)))))) right: (number_literal))))))) arguments: (argument_list (pointer_expression argument: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator declarator: (abstract_pointer_declarator))) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))))) (number_literal) (identifier) (identifier))))) condition: (parenthesized_expression (binary_expression left: (pointer_expression argument: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))))) right: (number_literal))))))))) (labeled_statement label: (statement_identifier) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (pointer_expression argument: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))))))) consequence: (compound_statement (expression_statement (call_expression function: (identifier) arguments: (argument_list)))))) (return_statement))))

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

void __regparm3 MASKED(int param_1,int param_2)

{
  int iVar1;
  uint uVar2;
  int iVar3;
  undefined4 *puVar4;
  undefined4 *puVar5;
  int in_GS_OFFSET;
  byte bVar6;
  undefined4 *local_228;
  uint local_224;
  undefined4 local_220 [128];
  int local_20;
  undefined4 uStack_14;
  
  bVar6 = 0;
  uStack_14 = 0x1f96b;
  local_20 = *(int *)(in_GS_OFFSET + 0x14);
  iVar1 = param_1 + 0x34;
  iVar3 = FUN_0001d890(iVar1);
  if (iVar3 < 1) {
LAB_0001faa7:
    (**(code **)(**(int **)(param_1 + 8) + 0x18))(*(int **)(param_1 + 8),param_2);
  }
  else {
    *(int *)(param_1 + 0x48) = param_2;
    if (param_2 == 0) {
      do {
        while( true ) {
          iVar3 = FUN_0001d890(iVar1);
          if (iVar3 < 1) {
            if (*(int *)(param_1 + 0x48) == 0) goto LAB_0001faa7;
            goto LAB_0001fa80;
          }
          FUN_0001dac0(iVar1,&local_228,&local_224);
          uVar2 = local_224;
          if (0x200 < local_224) break;
          __memcpy_chk(local_220,local_228,local_224,0x200);
          FUN_0001da00(iVar1,uVar2);
          (**(code **)(**(int **)(param_1 + 0xc) + 8))
                    (*(int **)(param_1 + 0xc),0,local_220,local_224);
          if (*(int *)(param_1 + 0x48) != 0) goto LAB_0001fa80;
        }
        local_224 = 0x200;
        puVar4 = local_228;
        puVar5 = local_220;
        for (iVar3 = 0x80; iVar3 != 0; iVar3 = iVar3 + -1) {
          *puVar5 = *puVar4;
          puVar4 = puVar4 + (uint)bVar6 * -2 + 1;
          puVar5 = puVar5 + (uint)bVar6 * -2 + 1;
        }
        FUN_0001da00(iVar1,0x200);
        (**(code **)(**(int **)(param_1 + 0xc) + 8))(*(int **)(param_1 + 0xc),0,local_220,local_224)
        ;
      } while (*(int *)(param_1 + 0x48) == 0);
    }
  }
LAB_0001fa80:
  if (local_20 != *(int *)(in_GS_OFFSET + 0x14)) {
                    /* WARNING: Subroutine does not return */
    FUN_0008d800();
  }
  return;
}

