
len_and_sockaddr * __regparm3 get_lsa(int fd,_func_int_int_sockaddr_ptr_socklen_t_ptr *get_name)

{
  int iVar1;
  int iVar2;
  int in_GS_OFFSET;
  len_and_sockaddr lsa;
  
  iVar1 = *(int *)(in_GS_OFFSET + 0x14);
  lsa.len = 0x1c;
  iVar2 = (*get_name)(fd,(sockaddr *)&lsa.u,&lsa.len);
  if (iVar2 == 0) {
                    /* WARNING: Subroutine does not return */
    xzalloc(lsa.len + 4);
  }
  if (iVar1 == *(int *)(in_GS_OFFSET + 0x14)) {
    return (len_and_sockaddr *)0x0;
  }
                    /* WARNING: Subroutine does not return */
  __stack_chk_fail_local();
}



uint * __regparm3 FUN_000b3616(undefined4 param_1,code *param_2)

{
  int iVar1;
  uint *puVar2;
  uint *puVar3;
  uint *puVar4;
  int in_GS_OFFSET;
  byte bVar5;
  uint local_40;
  undefined1 local_3c [28];
  int local_20;
  
  bVar5 = 0;
  local_20 = *(int *)(in_GS_OFFSET + 0x14);
  local_40 = 0x1c;
  iVar1 = (*param_2)(param_1,local_3c,&local_40);
  puVar2 = (uint *)0x0;
  if (iVar1 == 0) {
    puVar2 = (uint *)FUN_00019b89();
    if (local_40 < 0x1d) {
      puVar3 = &local_40;
      puVar4 = puVar2;
      for (iVar1 = local_40 + 4; iVar1 != 0; iVar1 = iVar1 + -1) {
        *(char *)puVar4 = (char)*puVar3;
        puVar3 = (uint *)((int)puVar3 + (uint)bVar5 * -2 + 1);
        puVar4 = (uint *)((int)puVar4 + (uint)bVar5 * -2 + 1);
      }
    }
    else {
      *puVar2 = local_40;
      (*param_2)(param_1,puVar2 + 1,puVar2,puVar2);
    }
  }
  if (local_20 == *(int *)(in_GS_OFFSET + 0x14)) {
    return puVar2;
  }
                    /* WARNING: Subroutine does not return */
  FUN_00017e10();
}


PUSH EBP
PUSH EDI
PUSH ESI
PUSH EBX
SUB ESP,0x40
MOV EDI,EAX
MOV EBP,EDX
MOV EAX,GS:[0x14]
MOV dword ptr [ESP + 0x30],EAX
XOR EAX,EAX
MOV dword ptr [ESP + 0x10],0x1c
LEA ESI,[ESP + 0x10]
PUSH ESI
LEA EAX,[ESP + 0x18]
PUSH EAX
PUSH EDI
CALL EDX
ADD ESP,0x10
XOR EBX,EBX
TEST EAX,EAX
JNZ 0x000b3669
MOV EAX,dword ptr [ESP + 0xc]
ADD EAX,0x4
CALL 0x00019b89
MOV EBX,EAX
MOV ECX,dword ptr [ESP + 0xc]
CMP ECX,0x1c
JA 0x000b3685
ADD ECX,0x4
MOV EDI,EAX
MOVSB.REP ES:EDI,ESI
MOV EAX,EBX
MOV EDX,dword ptr [ESP + 0x2c]
XOR EDX,dword ptr GS:[0x14]
JNZ 0x000b3680
ADD ESP,0x3c
POP EBX
POP ESI
POP EDI
POP EBP
RET
CALL 0x00017e10
MOV dword ptr [EAX],ECX
PUSH EAX
PUSH EBX
LEA EAX,[EBX + 0x4]
PUSH EAX
PUSH EDI
CALL EBP
ADD ESP,0x10
JMP 0x000b3669
(translation_unit "uint * __regparm3 FUN_000b3616(undefined4 param_1,code *param_2)\n\n{\n  int iVar1;\n  uint *puVar2;\n  uint *puVar3;\n  uint *puVar4;\n  int in_GS_OFFSET;\n  byte bVar5;\n  uint local_40;\n  undefined1 local_3c [28];\n  int local_20;\n  \n  bVar5 = 0;\n  local_20 = *(int *)(in_GS_OFFSET + 0x14);\n  local_40 = 0x1c;\n  iVar1 = (*param_2)(param_1,local_3c,&local_40);\n  puVar2 = (uint *)0x0;\n  if (iVar1 == 0) {\n    puVar2 = (uint *)FUN_00019b89();\n    if (local_40 < 0x1d) {\n      puVar3 = &local_40;\n      puVar4 = puVar2;\n      for (iVar1 = local_40 + 4; iVar1 != 0; iVar1 = iVar1 + -1) {\n        *(char *)puVar4 = (char)*puVar3;\n        puVar3 = (uint *)((int)puVar3 + (uint)bVar5 * -2 + 1);\n        puVar4 = (uint *)((int)puVar4 + (uint)bVar5 * -2 + 1);\n      }\n    }\n    else {\n      *puVar2 = local_40;\n      (*param_2)(param_1,puVar2 + 1,puVar2,puVar2);\n    }\n  }\n  if (local_20 == *(int *)(in_GS_OFFSET + 0x14)) {\n    return puVar2;\n  }\n                    /* WARNING: Subroutine does not return */\n  FUN_00017e10();\n}\n\n" (ERROR "uint * __regparm3 FUN_000b3616(undefined4 param_1,code *param_2)" (binary_expression "uint * __regparm3 FUN_000b3616(undefined4 param_1,code *param_2)" identifier * (ERROR "__regparm3" identifier) (call_expression "FUN_000b3616(undefined4 param_1,code *param_2)" identifier (argument_list "(undefined4 param_1,code *param_2)" ( identifier (ERROR "param_1" identifier) , (binary_expression "code *param_2" identifier * identifier) ))))) (compound_statement "{\n  int iVar1;\n  uint *puVar2;\n  uint *puVar3;\n  uint *puVar4;\n  int in_GS_OFFSET;\n  byte bVar5;\n  uint local_40;\n  undefined1 local_3c [28];\n  int local_20;\n  \n  bVar5 = 0;\n  local_20 = *(int *)(in_GS_OFFSET + 0x14);\n  local_40 = 0x1c;\n  iVar1 = (*param_2)(param_1,local_3c,&local_40);\n  puVar2 = (uint *)0x0;\n  if (iVar1 == 0) {\n    puVar2 = (uint *)FUN_00019b89();\n    if (local_40 < 0x1d) {\n      puVar3 = &local_40;\n      puVar4 = puVar2;\n      for (iVar1 = local_40 + 4; iVar1 != 0; iVar1 = iVar1 + -1) {\n        *(char *)puVar4 = (char)*puVar3;\n        puVar3 = (uint *)((int)puVar3 + (uint)bVar5 * -2 + 1);\n        puVar4 = (uint *)((int)puVar4 + (uint)bVar5 * -2 + 1);\n      }\n    }\n    else {\n      *puVar2 = local_40;\n      (*param_2)(param_1,puVar2 + 1,puVar2,puVar2);\n    }\n  }\n  if (local_20 == *(int *)(in_GS_OFFSET + 0x14)) {\n    return puVar2;\n  }\n                    /* WARNING: Subroutine does not return */\n  FUN_00017e10();\n}" { (declaration "int iVar1;" primitive_type identifier ;) (declaration "uint *puVar2;" type_identifier (pointer_declarator "*puVar2" * identifier) ;) (declaration "uint *puVar3;" type_identifier (pointer_declarator "*puVar3" * identifier) ;) (declaration "uint *puVar4;" type_identifier (pointer_declarator "*puVar4" * identifier) ;) (declaration "int in_GS_OFFSET;" primitive_type identifier ;) (declaration "byte bVar5;" type_identifier identifier ;) (declaration "uint local_40;" type_identifier identifier ;) (declaration "undefined1 local_3c [28];" type_identifier (array_declarator "local_3c [28]" identifier [ number_literal ]) ;) (declaration "int local_20;" primitive_type identifier ;) (expression_statement "bVar5 = 0;" (assignment_expression "bVar5 = 0" 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 "local_40 = 0x1c;" (assignment_expression "local_40 = 0x1c" identifier = number_literal) ;) (expression_statement "iVar1 = (*param_2)(param_1,local_3c,&local_40);" (assignment_expression "iVar1 = (*param_2)(param_1,local_3c,&local_40)" identifier = (call_expression "(*param_2)(param_1,local_3c,&local_40)" (parenthesized_expression "(*param_2)" ( (pointer_expression "*param_2" * identifier) )) (argument_list "(param_1,local_3c,&local_40)" ( identifier , identifier , (pointer_expression "&local_40" & identifier) )))) ;) (expression_statement "puVar2 = (uint *)0x0;" (assignment_expression "puVar2 = (uint *)0x0" identifier = (cast_expression "(uint *)0x0" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) ;) (if_statement "if (iVar1 == 0) {\n    puVar2 = (uint *)FUN_00019b89();\n    if (local_40 < 0x1d) {\n      puVar3 = &local_40;\n      puVar4 = puVar2;\n      for (iVar1 = local_40 + 4; iVar1 != 0; iVar1 = iVar1 + -1) {\n        *(char *)puVar4 = (char)*puVar3;\n        puVar3 = (uint *)((int)puVar3 + (uint)bVar5 * -2 + 1);\n        puVar4 = (uint *)((int)puVar4 + (uint)bVar5 * -2 + 1);\n      }\n    }\n    else {\n      *puVar2 = local_40;\n      (*param_2)(param_1,puVar2 + 1,puVar2,puVar2);\n    }\n  }" if (parenthesized_expression "(iVar1 == 0)" ( (binary_expression "iVar1 == 0" identifier == number_literal) )) (compound_statement "{\n    puVar2 = (uint *)FUN_00019b89();\n    if (local_40 < 0x1d) {\n      puVar3 = &local_40;\n      puVar4 = puVar2;\n      for (iVar1 = local_40 + 4; iVar1 != 0; iVar1 = iVar1 + -1) {\n        *(char *)puVar4 = (char)*puVar3;\n        puVar3 = (uint *)((int)puVar3 + (uint)bVar5 * -2 + 1);\n        puVar4 = (uint *)((int)puVar4 + (uint)bVar5 * -2 + 1);\n      }\n    }\n    else {\n      *puVar2 = local_40;\n      (*param_2)(param_1,puVar2 + 1,puVar2,puVar2);\n    }\n  }" { (expression_statement "puVar2 = (uint *)FUN_00019b89();" (assignment_expression "puVar2 = (uint *)FUN_00019b89()" identifier = (cast_expression "(uint *)FUN_00019b89()" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (call_expression "FUN_00019b89()" identifier (argument_list "()" ( ))))) ;) (if_statement "if (local_40 < 0x1d) {\n      puVar3 = &local_40;\n      puVar4 = puVar2;\n      for (iVar1 = local_40 + 4; iVar1 != 0; iVar1 = iVar1 + -1) {\n        *(char *)puVar4 = (char)*puVar3;\n        puVar3 = (uint *)((int)puVar3 + (uint)bVar5 * -2 + 1);\n        puVar4 = (uint *)((int)puVar4 + (uint)bVar5 * -2 + 1);\n      }\n    }\n    else {\n      *puVar2 = local_40;\n      (*param_2)(param_1,puVar2 + 1,puVar2,puVar2);\n    }" if (parenthesized_expression "(local_40 < 0x1d)" ( (binary_expression "local_40 < 0x1d" identifier < number_literal) )) (compound_statement "{\n      puVar3 = &local_40;\n      puVar4 = puVar2;\n      for (iVar1 = local_40 + 4; iVar1 != 0; iVar1 = iVar1 + -1) {\n        *(char *)puVar4 = (char)*puVar3;\n        puVar3 = (uint *)((int)puVar3 + (uint)bVar5 * -2 + 1);\n        puVar4 = (uint *)((int)puVar4 + (uint)bVar5 * -2 + 1);\n      }\n    }" { (expression_statement "puVar3 = &local_40;" (assignment_expression "puVar3 = &local_40" identifier = (pointer_expression "&local_40" & identifier)) ;) (expression_statement "puVar4 = puVar2;" (assignment_expression "puVar4 = puVar2" identifier = identifier) ;) (for_statement "for (iVar1 = local_40 + 4; iVar1 != 0; iVar1 = iVar1 + -1) {\n        *(char *)puVar4 = (char)*puVar3;\n        puVar3 = (uint *)((int)puVar3 + (uint)bVar5 * -2 + 1);\n        puVar4 = (uint *)((int)puVar4 + (uint)bVar5 * -2 + 1);\n      }" for ( (assignment_expression "iVar1 = local_40 + 4" identifier = (binary_expression "local_40 + 4" identifier + number_literal)) ; (binary_expression "iVar1 != 0" identifier != number_literal) ; (assignment_expression "iVar1 = iVar1 + -1" identifier = (binary_expression "iVar1 + -1" identifier + number_literal)) ) (compound_statement "{\n        *(char *)puVar4 = (char)*puVar3;\n        puVar3 = (uint *)((int)puVar3 + (uint)bVar5 * -2 + 1);\n        puVar4 = (uint *)((int)puVar4 + (uint)bVar5 * -2 + 1);\n      }" { (expression_statement "*(char *)puVar4 = (char)*puVar3;" (assignment_expression "*(char *)puVar4 = (char)*puVar3" (pointer_expression "*(char *)puVar4" * (cast_expression "(char *)puVar4" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) identifier)) = (cast_expression "(char)*puVar3" ( (type_descriptor "char" primitive_type) ) (pointer_expression "*puVar3" * identifier))) ;) (expression_statement "puVar3 = (uint *)((int)puVar3 + (uint)bVar5 * -2 + 1);" (assignment_expression "puVar3 = (uint *)((int)puVar3 + (uint)bVar5 * -2 + 1)" identifier = (cast_expression "(uint *)((int)puVar3 + (uint)bVar5 * -2 + 1)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)puVar3 + (uint)bVar5 * -2 + 1)" ( (binary_expression "(int)puVar3 + (uint)bVar5 * -2 + 1" (binary_expression "(int)puVar3 + (uint)bVar5 * -2" (cast_expression "(int)puVar3" ( (type_descriptor "int" primitive_type) ) identifier) + (binary_expression "(uint)bVar5 * -2" (cast_expression "(uint)bVar5" ( (type_descriptor "uint" type_identifier) ) identifier) * number_literal)) + number_literal) )))) ;) (expression_statement "puVar4 = (uint *)((int)puVar4 + (uint)bVar5 * -2 + 1);" (assignment_expression "puVar4 = (uint *)((int)puVar4 + (uint)bVar5 * -2 + 1)" identifier = (cast_expression "(uint *)((int)puVar4 + (uint)bVar5 * -2 + 1)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)puVar4 + (uint)bVar5 * -2 + 1)" ( (binary_expression "(int)puVar4 + (uint)bVar5 * -2 + 1" (binary_expression "(int)puVar4 + (uint)bVar5 * -2" (cast_expression "(int)puVar4" ( (type_descriptor "int" primitive_type) ) identifier) + (binary_expression "(uint)bVar5 * -2" (cast_expression "(uint)bVar5" ( (type_descriptor "uint" type_identifier) ) identifier) * number_literal)) + number_literal) )))) ;) })) }) (else_clause "else {\n      *puVar2 = local_40;\n      (*param_2)(param_1,puVar2 + 1,puVar2,puVar2);\n    }" else (compound_statement "{\n      *puVar2 = local_40;\n      (*param_2)(param_1,puVar2 + 1,puVar2,puVar2);\n    }" { (expression_statement "*puVar2 = local_40;" (assignment_expression "*puVar2 = local_40" (pointer_expression "*puVar2" * identifier) = identifier) ;) (expression_statement "(*param_2)(param_1,puVar2 + 1,puVar2,puVar2);" (call_expression "(*param_2)(param_1,puVar2 + 1,puVar2,puVar2)" (parenthesized_expression "(*param_2)" ( (pointer_expression "*param_2" * identifier) )) (argument_list "(param_1,puVar2 + 1,puVar2,puVar2)" ( identifier , (binary_expression "puVar2 + 1" identifier + number_literal) , identifier , identifier ))) ;) }))) })) (if_statement "if (local_20 == *(int *)(in_GS_OFFSET + 0x14)) {\n    return puVar2;\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    return puVar2;\n  }" { (return_statement "return puVar2;" return identifier ;) })) comment (expression_statement "FUN_00017e10();" (call_expression "FUN_00017e10()" identifier (argument_list "()" ( ))) ;) }))
(translation_unit "len_and_sockaddr * __regparm3 get_lsa(int fd,_func_int_int_sockaddr_ptr_socklen_t_ptr *get_name)\n\n{\n  int iVar1;\n  int iVar2;\n  int in_GS_OFFSET;\n  len_and_sockaddr lsa;\n  \n  iVar1 = *(int *)(in_GS_OFFSET + 0x14);\n  lsa.len = 0x1c;\n  iVar2 = (*get_name)(fd,(sockaddr *)&lsa.u,&lsa.len);\n  if (iVar2 == 0) {\n                    /* WARNING: Subroutine does not return */\n    xzalloc(lsa.len + 4);\n  }\n  if (iVar1 == *(int *)(in_GS_OFFSET + 0x14)) {\n    return (len_and_sockaddr *)0x0;\n  }\n                    /* WARNING: Subroutine does not return */\n  __stack_chk_fail_local();\n}\n\n" (ERROR "len_and_sockaddr * __regparm3 get_lsa(int fd,_func_int_int_sockaddr_ptr_socklen_t_ptr *get_name)" (binary_expression "len_and_sockaddr * __regparm3 get_lsa(int fd,_func_int_int_sockaddr_ptr_socklen_t_ptr *get_name)" identifier * (ERROR "__regparm3" identifier) (call_expression "get_lsa(int fd,_func_int_int_sockaddr_ptr_socklen_t_ptr *get_name)" identifier (argument_list "(int fd,_func_int_int_sockaddr_ptr_socklen_t_ptr *get_name)" ( identifier (ERROR "fd" identifier) , (binary_expression "_func_int_int_sockaddr_ptr_socklen_t_ptr *get_name" identifier * identifier) ))))) (compound_statement "{\n  int iVar1;\n  int iVar2;\n  int in_GS_OFFSET;\n  len_and_sockaddr lsa;\n  \n  iVar1 = *(int *)(in_GS_OFFSET + 0x14);\n  lsa.len = 0x1c;\n  iVar2 = (*get_name)(fd,(sockaddr *)&lsa.u,&lsa.len);\n  if (iVar2 == 0) {\n                    /* WARNING: Subroutine does not return */\n    xzalloc(lsa.len + 4);\n  }\n  if (iVar1 == *(int *)(in_GS_OFFSET + 0x14)) {\n    return (len_and_sockaddr *)0x0;\n  }\n                    /* WARNING: Subroutine does not return */\n  __stack_chk_fail_local();\n}" { (declaration "int iVar1;" primitive_type identifier ;) (declaration "int iVar2;" primitive_type identifier ;) (declaration "int in_GS_OFFSET;" primitive_type identifier ;) (declaration "len_and_sockaddr lsa;" type_identifier identifier ;) (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 "lsa.len = 0x1c;" (assignment_expression "lsa.len = 0x1c" (field_expression "lsa.len" identifier . field_identifier) = number_literal) ;) (expression_statement "iVar2 = (*get_name)(fd,(sockaddr *)&lsa.u,&lsa.len);" (assignment_expression "iVar2 = (*get_name)(fd,(sockaddr *)&lsa.u,&lsa.len)" identifier = (call_expression "(*get_name)(fd,(sockaddr *)&lsa.u,&lsa.len)" (parenthesized_expression "(*get_name)" ( (pointer_expression "*get_name" * identifier) )) (argument_list "(fd,(sockaddr *)&lsa.u,&lsa.len)" ( identifier , (cast_expression "(sockaddr *)&lsa.u" ( (type_descriptor "sockaddr *" type_identifier (abstract_pointer_declarator "*" *)) ) (pointer_expression "&lsa.u" & (field_expression "lsa.u" identifier . field_identifier))) , (pointer_expression "&lsa.len" & (field_expression "lsa.len" identifier . field_identifier)) )))) ;) (if_statement "if (iVar2 == 0) {\n                    /* WARNING: Subroutine does not return */\n    xzalloc(lsa.len + 4);\n  }" if (parenthesized_expression "(iVar2 == 0)" ( (binary_expression "iVar2 == 0" identifier == number_literal) )) (compound_statement "{\n                    /* WARNING: Subroutine does not return */\n    xzalloc(lsa.len + 4);\n  }" { comment (expression_statement "xzalloc(lsa.len + 4);" (call_expression "xzalloc(lsa.len + 4)" identifier (argument_list "(lsa.len + 4)" ( (binary_expression "lsa.len + 4" (field_expression "lsa.len" identifier . field_identifier) + number_literal) ))) ;) })) (if_statement "if (iVar1 == *(int *)(in_GS_OFFSET + 0x14)) {\n    return (len_and_sockaddr *)0x0;\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    return (len_and_sockaddr *)0x0;\n  }" { (return_statement "return (len_and_sockaddr *)0x0;" return (cast_expression "(len_and_sockaddr *)0x0" ( (type_descriptor "len_and_sockaddr *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal) ;) })) comment (expression_statement "__stack_chk_fail_local();" (call_expression "__stack_chk_fail_local()" identifier (argument_list "()" ( ))) ;) }))
(translation_unit "uint * __regparm3 FUN_000b3616(undefined4 param_1,code *param_2)\n\n{\n  int iVar1;\n  uint *puVar2;\n  uint *puVar3;\n  uint *puVar4;\n  int in_GS_OFFSET;\n  byte bVar5;\n  uint local_40;\n  undefined1 local_3c [28];\n  int local_20;\n  \n  bVar5 = 0;\n  local_20 = *(int *)(in_GS_OFFSET + 0x14);\n  local_40 = 0x1c;\n  iVar1 = (*param_2)(param_1,local_3c,&local_40);\n  puVar2 = (uint *)0x0;\n  if (iVar1 == 0) {\n    puVar2 = (uint *)FUN_00019b89();\n    if (local_40 < 0x1d) {\n      puVar3 = &local_40;\n      puVar4 = puVar2;\n      for (iVar1 = local_40 + 4; iVar1 != 0; iVar1 = iVar1 + -1) {\n        *(char *)puVar4 = (char)*puVar3;\n        puVar3 = (uint *)((int)puVar3 + (uint)bVar5 * -2 + 1);\n        puVar4 = (uint *)((int)puVar4 + (uint)bVar5 * -2 + 1);\n      }\n    }\n    else {\n      *puVar2 = local_40;\n      (*param_2)(param_1,puVar2 + 1,puVar2,puVar2);\n    }\n  }\n  if (local_20 == *(int *)(in_GS_OFFSET + 0x14)) {\n    return puVar2;\n  }\n                    \n  FUN_00017e10();\n}\n\n" (ERROR "uint * __regparm3 FUN_000b3616(undefined4 param_1,code *param_2)" (binary_expression "uint * __regparm3 FUN_000b3616(undefined4 param_1,code *param_2)" identifier * (ERROR "__regparm3" identifier) (call_expression "FUN_000b3616(undefined4 param_1,code *param_2)" identifier (argument_list "(undefined4 param_1,code *param_2)" ( identifier (ERROR "param_1" identifier) , (binary_expression "code *param_2" identifier * identifier) ))))) (compound_statement "{\n  int iVar1;\n  uint *puVar2;\n  uint *puVar3;\n  uint *puVar4;\n  int in_GS_OFFSET;\n  byte bVar5;\n  uint local_40;\n  undefined1 local_3c [28];\n  int local_20;\n  \n  bVar5 = 0;\n  local_20 = *(int *)(in_GS_OFFSET + 0x14);\n  local_40 = 0x1c;\n  iVar1 = (*param_2)(param_1,local_3c,&local_40);\n  puVar2 = (uint *)0x0;\n  if (iVar1 == 0) {\n    puVar2 = (uint *)FUN_00019b89();\n    if (local_40 < 0x1d) {\n      puVar3 = &local_40;\n      puVar4 = puVar2;\n      for (iVar1 = local_40 + 4; iVar1 != 0; iVar1 = iVar1 + -1) {\n        *(char *)puVar4 = (char)*puVar3;\n        puVar3 = (uint *)((int)puVar3 + (uint)bVar5 * -2 + 1);\n        puVar4 = (uint *)((int)puVar4 + (uint)bVar5 * -2 + 1);\n      }\n    }\n    else {\n      *puVar2 = local_40;\n      (*param_2)(param_1,puVar2 + 1,puVar2,puVar2);\n    }\n  }\n  if (local_20 == *(int *)(in_GS_OFFSET + 0x14)) {\n    return puVar2;\n  }\n                    \n  FUN_00017e10();\n}" { (declaration "int iVar1;" primitive_type identifier ;) (declaration "uint *puVar2;" type_identifier (pointer_declarator "*puVar2" * identifier) ;) (declaration "uint *puVar3;" type_identifier (pointer_declarator "*puVar3" * identifier) ;) (declaration "uint *puVar4;" type_identifier (pointer_declarator "*puVar4" * identifier) ;) (declaration "int in_GS_OFFSET;" primitive_type identifier ;) (declaration "byte bVar5;" type_identifier identifier ;) (declaration "uint local_40;" type_identifier identifier ;) (declaration "undefined1 local_3c [28];" type_identifier (array_declarator "local_3c [28]" identifier [ number_literal ]) ;) (declaration "int local_20;" primitive_type identifier ;) (expression_statement "bVar5 = 0;" (assignment_expression "bVar5 = 0" 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 "local_40 = 0x1c;" (assignment_expression "local_40 = 0x1c" identifier = number_literal) ;) (expression_statement "iVar1 = (*param_2)(param_1,local_3c,&local_40);" (assignment_expression "iVar1 = (*param_2)(param_1,local_3c,&local_40)" identifier = (call_expression "(*param_2)(param_1,local_3c,&local_40)" (parenthesized_expression "(*param_2)" ( (pointer_expression "*param_2" * identifier) )) (argument_list "(param_1,local_3c,&local_40)" ( identifier , identifier , (pointer_expression "&local_40" & identifier) )))) ;) (expression_statement "puVar2 = (uint *)0x0;" (assignment_expression "puVar2 = (uint *)0x0" identifier = (cast_expression "(uint *)0x0" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) ;) (if_statement "if (iVar1 == 0) {\n    puVar2 = (uint *)FUN_00019b89();\n    if (local_40 < 0x1d) {\n      puVar3 = &local_40;\n      puVar4 = puVar2;\n      for (iVar1 = local_40 + 4; iVar1 != 0; iVar1 = iVar1 + -1) {\n        *(char *)puVar4 = (char)*puVar3;\n        puVar3 = (uint *)((int)puVar3 + (uint)bVar5 * -2 + 1);\n        puVar4 = (uint *)((int)puVar4 + (uint)bVar5 * -2 + 1);\n      }\n    }\n    else {\n      *puVar2 = local_40;\n      (*param_2)(param_1,puVar2 + 1,puVar2,puVar2);\n    }\n  }" if (parenthesized_expression "(iVar1 == 0)" ( (binary_expression "iVar1 == 0" identifier == number_literal) )) (compound_statement "{\n    puVar2 = (uint *)FUN_00019b89();\n    if (local_40 < 0x1d) {\n      puVar3 = &local_40;\n      puVar4 = puVar2;\n      for (iVar1 = local_40 + 4; iVar1 != 0; iVar1 = iVar1 + -1) {\n        *(char *)puVar4 = (char)*puVar3;\n        puVar3 = (uint *)((int)puVar3 + (uint)bVar5 * -2 + 1);\n        puVar4 = (uint *)((int)puVar4 + (uint)bVar5 * -2 + 1);\n      }\n    }\n    else {\n      *puVar2 = local_40;\n      (*param_2)(param_1,puVar2 + 1,puVar2,puVar2);\n    }\n  }" { (expression_statement "puVar2 = (uint *)FUN_00019b89();" (assignment_expression "puVar2 = (uint *)FUN_00019b89()" identifier = (cast_expression "(uint *)FUN_00019b89()" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (call_expression "FUN_00019b89()" identifier (argument_list "()" ( ))))) ;) (if_statement "if (local_40 < 0x1d) {\n      puVar3 = &local_40;\n      puVar4 = puVar2;\n      for (iVar1 = local_40 + 4; iVar1 != 0; iVar1 = iVar1 + -1) {\n        *(char *)puVar4 = (char)*puVar3;\n        puVar3 = (uint *)((int)puVar3 + (uint)bVar5 * -2 + 1);\n        puVar4 = (uint *)((int)puVar4 + (uint)bVar5 * -2 + 1);\n      }\n    }\n    else {\n      *puVar2 = local_40;\n      (*param_2)(param_1,puVar2 + 1,puVar2,puVar2);\n    }" if (parenthesized_expression "(local_40 < 0x1d)" ( (binary_expression "local_40 < 0x1d" identifier < number_literal) )) (compound_statement "{\n      puVar3 = &local_40;\n      puVar4 = puVar2;\n      for (iVar1 = local_40 + 4; iVar1 != 0; iVar1 = iVar1 + -1) {\n        *(char *)puVar4 = (char)*puVar3;\n        puVar3 = (uint *)((int)puVar3 + (uint)bVar5 * -2 + 1);\n        puVar4 = (uint *)((int)puVar4 + (uint)bVar5 * -2 + 1);\n      }\n    }" { (expression_statement "puVar3 = &local_40;" (assignment_expression "puVar3 = &local_40" identifier = (pointer_expression "&local_40" & identifier)) ;) (expression_statement "puVar4 = puVar2;" (assignment_expression "puVar4 = puVar2" identifier = identifier) ;) (for_statement "for (iVar1 = local_40 + 4; iVar1 != 0; iVar1 = iVar1 + -1) {\n        *(char *)puVar4 = (char)*puVar3;\n        puVar3 = (uint *)((int)puVar3 + (uint)bVar5 * -2 + 1);\n        puVar4 = (uint *)((int)puVar4 + (uint)bVar5 * -2 + 1);\n      }" for ( (assignment_expression "iVar1 = local_40 + 4" identifier = (binary_expression "local_40 + 4" identifier + number_literal)) ; (binary_expression "iVar1 != 0" identifier != number_literal) ; (assignment_expression "iVar1 = iVar1 + -1" identifier = (binary_expression "iVar1 + -1" identifier + number_literal)) ) (compound_statement "{\n        *(char *)puVar4 = (char)*puVar3;\n        puVar3 = (uint *)((int)puVar3 + (uint)bVar5 * -2 + 1);\n        puVar4 = (uint *)((int)puVar4 + (uint)bVar5 * -2 + 1);\n      }" { (expression_statement "*(char *)puVar4 = (char)*puVar3;" (assignment_expression "*(char *)puVar4 = (char)*puVar3" (pointer_expression "*(char *)puVar4" * (cast_expression "(char *)puVar4" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) identifier)) = (cast_expression "(char)*puVar3" ( (type_descriptor "char" primitive_type) ) (pointer_expression "*puVar3" * identifier))) ;) (expression_statement "puVar3 = (uint *)((int)puVar3 + (uint)bVar5 * -2 + 1);" (assignment_expression "puVar3 = (uint *)((int)puVar3 + (uint)bVar5 * -2 + 1)" identifier = (cast_expression "(uint *)((int)puVar3 + (uint)bVar5 * -2 + 1)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)puVar3 + (uint)bVar5 * -2 + 1)" ( (binary_expression "(int)puVar3 + (uint)bVar5 * -2 + 1" (binary_expression "(int)puVar3 + (uint)bVar5 * -2" (cast_expression "(int)puVar3" ( (type_descriptor "int" primitive_type) ) identifier) + (binary_expression "(uint)bVar5 * -2" (cast_expression "(uint)bVar5" ( (type_descriptor "uint" type_identifier) ) identifier) * number_literal)) + number_literal) )))) ;) (expression_statement "puVar4 = (uint *)((int)puVar4 + (uint)bVar5 * -2 + 1);" (assignment_expression "puVar4 = (uint *)((int)puVar4 + (uint)bVar5 * -2 + 1)" identifier = (cast_expression "(uint *)((int)puVar4 + (uint)bVar5 * -2 + 1)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)puVar4 + (uint)bVar5 * -2 + 1)" ( (binary_expression "(int)puVar4 + (uint)bVar5 * -2 + 1" (binary_expression "(int)puVar4 + (uint)bVar5 * -2" (cast_expression "(int)puVar4" ( (type_descriptor "int" primitive_type) ) identifier) + (binary_expression "(uint)bVar5 * -2" (cast_expression "(uint)bVar5" ( (type_descriptor "uint" type_identifier) ) identifier) * number_literal)) + number_literal) )))) ;) })) }) (else_clause "else {\n      *puVar2 = local_40;\n      (*param_2)(param_1,puVar2 + 1,puVar2,puVar2);\n    }" else (compound_statement "{\n      *puVar2 = local_40;\n      (*param_2)(param_1,puVar2 + 1,puVar2,puVar2);\n    }" { (expression_statement "*puVar2 = local_40;" (assignment_expression "*puVar2 = local_40" (pointer_expression "*puVar2" * identifier) = identifier) ;) (expression_statement "(*param_2)(param_1,puVar2 + 1,puVar2,puVar2);" (call_expression "(*param_2)(param_1,puVar2 + 1,puVar2,puVar2)" (parenthesized_expression "(*param_2)" ( (pointer_expression "*param_2" * identifier) )) (argument_list "(param_1,puVar2 + 1,puVar2,puVar2)" ( identifier , (binary_expression "puVar2 + 1" identifier + number_literal) , identifier , identifier ))) ;) }))) })) (if_statement "if (local_20 == *(int *)(in_GS_OFFSET + 0x14)) {\n    return puVar2;\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    return puVar2;\n  }" { (return_statement "return puVar2;" return identifier ;) })) (expression_statement "FUN_00017e10();" (call_expression "FUN_00017e10()" identifier (argument_list "()" ( ))) ;) }))
(translation_unit (ERROR (binary_expression IDENT * (ERROR IDENT) (call_expression IDENT (argument_list ( IDENT (ERROR IDENT) , (binary_expression IDENT * IDENT) ))))) (compound_statement { (declaration TYPE IDENT ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE (array_declarator IDENT [ LIT ]) ;) (declaration TYPE IDENT ;) (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 = LIT) ;) (expression_statement (assignment_expression IDENT = (call_expression (parenthesized_expression ( (pointer_expression * IDENT) )) (argument_list ( IDENT , IDENT , (pointer_expression & IDENT) )))) ;) (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) LIT)) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT == LIT) )) (compound_statement { (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (call_expression IDENT (argument_list ( ))))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT < LIT) )) (compound_statement { (expression_statement (assignment_expression IDENT = (pointer_expression & IDENT)) ;) (expression_statement (assignment_expression IDENT = IDENT) ;) (for_statement for ( (assignment_expression IDENT = (binary_expression IDENT + LIT)) ; (binary_expression IDENT != LIT) ; (assignment_expression IDENT = (binary_expression IDENT + LIT)) ) (compound_statement { (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT)) = (cast_expression ( (type_descriptor TYPE) ) (pointer_expression * IDENT))) ;) (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression (binary_expression (cast_expression ( (type_descriptor TYPE) ) IDENT) + (binary_expression (cast_expression ( (type_descriptor TYPE) ) IDENT) * LIT)) + LIT) )))) ;) (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression (binary_expression (cast_expression ( (type_descriptor TYPE) ) IDENT) + (binary_expression (cast_expression ( (type_descriptor TYPE) ) IDENT) * LIT)) + LIT) )))) ;) })) }) (else_clause else (compound_statement { (expression_statement (assignment_expression (pointer_expression * IDENT) = IDENT) ;) (expression_statement (call_expression (parenthesized_expression ( (pointer_expression * IDENT) )) (argument_list ( IDENT , (binary_expression IDENT + LIT) , IDENT , IDENT ))) ;) }))) })) (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 { (return_statement return IDENT ;) })) (expression_statement (call_expression IDENT (argument_list ( ))) ;) }))
(ERROR "uint * __regparm3 FUN_000b3616(undefined4 param_1,code *param_2)" (binary_expression "uint * __regparm3 FUN_000b3616(undefined4 param_1,code *param_2)" (identifier "uint") (* "*") (ERROR "__regparm3" (identifier "__regparm3")) (call_expression "FUN_000b3616(undefined4 param_1,code *param_2)" (identifier "FUN_000b3616") (argument_list "(undefined4 param_1,code *param_2)" (( "(") (identifier "undefined4") (ERROR "param_1" (identifier "param_1")) (, ",") (binary_expression "code *param_2" (identifier "code") (* "*") (identifier "param_2")) () ")"))))) (compound_statement "{\n  int iVar1;\n  uint *puVar2;\n  uint *puVar3;\n  uint *puVar4;\n  int in_GS_OFFSET;\n  byte bVar5;\n  uint local_40;\n  undefined1 local_3c [28];\n  int local_20;\n  \n  bVar5 = 0;\n  local_20 = *(int *)(in_GS_OFFSET + 0x14);\n  local_40 = 0x1c;\n  iVar1 = (*param_2)(param_1,local_3c,&local_40);\n  puVar2 = (uint *)0x0;\n  if (iVar1 == 0) {\n    puVar2 = (uint *)FUN_00019b89();\n    if (local_40 < 0x1d) {\n      puVar3 = &local_40;\n      puVar4 = puVar2;\n      for (iVar1 = local_40 + 4; iVar1 != 0; iVar1 = iVar1 + -1) {\n        *(char *)puVar4 = (char)*puVar3;\n        puVar3 = (uint *)((int)puVar3 + (uint)bVar5 * -2 + 1);\n        puVar4 = (uint *)((int)puVar4 + (uint)bVar5 * -2 + 1);\n      }\n    }\n    else {\n      *puVar2 = local_40;\n      (*param_2)(param_1,puVar2 + 1,puVar2,puVar2);\n    }\n  }\n  if (local_20 == *(int *)(in_GS_OFFSET + 0x14)) {\n    return puVar2;\n  }\n                    \n  FUN_00017e10();\n}" ({ "{") (declaration "int iVar1;" (primitive_type "int") (identifier "iVar1") (; ";")) (declaration "uint *puVar2;" (type_identifier "uint") (pointer_declarator "*puVar2" (* "*") (identifier "puVar2")) (; ";")) (declaration "uint *puVar3;" (type_identifier "uint") (pointer_declarator "*puVar3" (* "*") (identifier "puVar3")) (; ";")) (declaration "uint *puVar4;" (type_identifier "uint") (pointer_declarator "*puVar4" (* "*") (identifier "puVar4")) (; ";")) (declaration "int in_GS_OFFSET;" (primitive_type "int") (identifier "in_GS_OFFSET") (; ";")) (declaration "byte bVar5;" (type_identifier "byte") (identifier "bVar5") (; ";")) (declaration "uint local_40;" (type_identifier "uint") (identifier "local_40") (; ";")) (declaration "undefined1 local_3c [28];" (type_identifier "undefined1") (array_declarator "local_3c [28]" (identifier "local_3c") ([ "[") (number_literal "28") (] "]")) (; ";")) (declaration "int local_20;" (primitive_type "int") (identifier "local_20") (; ";")) (expression_statement "bVar5 = 0;" (assignment_expression "bVar5 = 0" (identifier "bVar5") (= "=") (number_literal "0")) (; ";")) (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 "local_40 = 0x1c;" (assignment_expression "local_40 = 0x1c" (identifier "local_40") (= "=") (number_literal "0x1c")) (; ";")) (expression_statement "iVar1 = (*param_2)(param_1,local_3c,&local_40);" (assignment_expression "iVar1 = (*param_2)(param_1,local_3c,&local_40)" (identifier "iVar1") (= "=") (call_expression "(*param_2)(param_1,local_3c,&local_40)" (parenthesized_expression "(*param_2)" (( "(") (pointer_expression "*param_2" (* "*") (identifier "param_2")) () ")")) (argument_list "(param_1,local_3c,&local_40)" (( "(") (identifier "param_1") (, ",") (identifier "local_3c") (, ",") (pointer_expression "&local_40" (& "&") (identifier "local_40")) () ")")))) (; ";")) (expression_statement "puVar2 = (uint *)0x0;" (assignment_expression "puVar2 = (uint *)0x0" (identifier "puVar2") (= "=") (cast_expression "(uint *)0x0" (( "(") (type_descriptor "uint *" (type_identifier "uint") (abstract_pointer_declarator "*" (* "*"))) () ")") (number_literal "0x0"))) (; ";")) (if_statement "if (iVar1 == 0) {\n    puVar2 = (uint *)FUN_00019b89();\n    if (local_40 < 0x1d) {\n      puVar3 = &local_40;\n      puVar4 = puVar2;\n      for (iVar1 = local_40 + 4; iVar1 != 0; iVar1 = iVar1 + -1) {\n        *(char *)puVar4 = (char)*puVar3;\n        puVar3 = (uint *)((int)puVar3 + (uint)bVar5 * -2 + 1);\n        puVar4 = (uint *)((int)puVar4 + (uint)bVar5 * -2 + 1);\n      }\n    }\n    else {\n      *puVar2 = local_40;\n      (*param_2)(param_1,puVar2 + 1,puVar2,puVar2);\n    }\n  }" (if "if") (parenthesized_expression "(iVar1 == 0)" (( "(") (binary_expression "iVar1 == 0" (identifier "iVar1") (== "==") (number_literal "0")) () ")")) (compound_statement "{\n    puVar2 = (uint *)FUN_00019b89();\n    if (local_40 < 0x1d) {\n      puVar3 = &local_40;\n      puVar4 = puVar2;\n      for (iVar1 = local_40 + 4; iVar1 != 0; iVar1 = iVar1 + -1) {\n        *(char *)puVar4 = (char)*puVar3;\n        puVar3 = (uint *)((int)puVar3 + (uint)bVar5 * -2 + 1);\n        puVar4 = (uint *)((int)puVar4 + (uint)bVar5 * -2 + 1);\n      }\n    }\n    else {\n      *puVar2 = local_40;\n      (*param_2)(param_1,puVar2 + 1,puVar2,puVar2);\n    }\n  }" ({ "{") (expression_statement "puVar2 = (uint *)FUN_00019b89();" (assignment_expression "puVar2 = (uint *)FUN_00019b89()" (identifier "puVar2") (= "=") (cast_expression "(uint *)FUN_00019b89()" (( "(") (type_descriptor "uint *" (type_identifier "uint") (abstract_pointer_declarator "*" (* "*"))) () ")") (call_expression "FUN_00019b89()" (identifier "FUN_00019b89") (argument_list "()" (( "(") () ")"))))) (; ";")) (if_statement "if (local_40 < 0x1d) {\n      puVar3 = &local_40;\n      puVar4 = puVar2;\n      for (iVar1 = local_40 + 4; iVar1 != 0; iVar1 = iVar1 + -1) {\n        *(char *)puVar4 = (char)*puVar3;\n        puVar3 = (uint *)((int)puVar3 + (uint)bVar5 * -2 + 1);\n        puVar4 = (uint *)((int)puVar4 + (uint)bVar5 * -2 + 1);\n      }\n    }\n    else {\n      *puVar2 = local_40;\n      (*param_2)(param_1,puVar2 + 1,puVar2,puVar2);\n    }" (if "if") (parenthesized_expression "(local_40 < 0x1d)" (( "(") (binary_expression "local_40 < 0x1d" (identifier "local_40") (< "<") (number_literal "0x1d")) () ")")) (compound_statement "{\n      puVar3 = &local_40;\n      puVar4 = puVar2;\n      for (iVar1 = local_40 + 4; iVar1 != 0; iVar1 = iVar1 + -1) {\n        *(char *)puVar4 = (char)*puVar3;\n        puVar3 = (uint *)((int)puVar3 + (uint)bVar5 * -2 + 1);\n        puVar4 = (uint *)((int)puVar4 + (uint)bVar5 * -2 + 1);\n      }\n    }" ({ "{") (expression_statement "puVar3 = &local_40;" (assignment_expression "puVar3 = &local_40" (identifier "puVar3") (= "=") (pointer_expression "&local_40" (& "&") (identifier "local_40"))) (; ";")) (expression_statement "puVar4 = puVar2;" (assignment_expression "puVar4 = puVar2" (identifier "puVar4") (= "=") (identifier "puVar2")) (; ";")) (for_statement "for (iVar1 = local_40 + 4; iVar1 != 0; iVar1 = iVar1 + -1) {\n        *(char *)puVar4 = (char)*puVar3;\n        puVar3 = (uint *)((int)puVar3 + (uint)bVar5 * -2 + 1);\n        puVar4 = (uint *)((int)puVar4 + (uint)bVar5 * -2 + 1);\n      }" (for "for") (( "(") (assignment_expression "iVar1 = local_40 + 4" (identifier "iVar1") (= "=") (binary_expression "local_40 + 4" (identifier "local_40") (+ "+") (number_literal "4"))) (; ";") (binary_expression "iVar1 != 0" (identifier "iVar1") (!= "!=") (number_literal "0")) (; ";") (assignment_expression "iVar1 = iVar1 + -1" (identifier "iVar1") (= "=") (binary_expression "iVar1 + -1" (identifier "iVar1") (+ "+") (number_literal "-1"))) () ")") (compound_statement "{\n        *(char *)puVar4 = (char)*puVar3;\n        puVar3 = (uint *)((int)puVar3 + (uint)bVar5 * -2 + 1);\n        puVar4 = (uint *)((int)puVar4 + (uint)bVar5 * -2 + 1);\n      }" ({ "{") (expression_statement "*(char *)puVar4 = (char)*puVar3;" (assignment_expression "*(char *)puVar4 = (char)*puVar3" (pointer_expression "*(char *)puVar4" (* "*") (cast_expression "(char *)puVar4" (( "(") (type_descriptor "char *" (primitive_type "char") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "puVar4"))) (= "=") (cast_expression "(char)*puVar3" (( "(") (type_descriptor "char" (primitive_type "char")) () ")") (pointer_expression "*puVar3" (* "*") (identifier "puVar3")))) (; ";")) (expression_statement "puVar3 = (uint *)((int)puVar3 + (uint)bVar5 * -2 + 1);" (assignment_expression "puVar3 = (uint *)((int)puVar3 + (uint)bVar5 * -2 + 1)" (identifier "puVar3") (= "=") (cast_expression "(uint *)((int)puVar3 + (uint)bVar5 * -2 + 1)" (( "(") (type_descriptor "uint *" (type_identifier "uint") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "((int)puVar3 + (uint)bVar5 * -2 + 1)" (( "(") (binary_expression "(int)puVar3 + (uint)bVar5 * -2 + 1" (binary_expression "(int)puVar3 + (uint)bVar5 * -2" (cast_expression "(int)puVar3" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (identifier "puVar3")) (+ "+") (binary_expression "(uint)bVar5 * -2" (cast_expression "(uint)bVar5" (( "(") (type_descriptor "uint" (type_identifier "uint")) () ")") (identifier "bVar5")) (* "*") (number_literal "-2"))) (+ "+") (number_literal "1")) () ")")))) (; ";")) (expression_statement "puVar4 = (uint *)((int)puVar4 + (uint)bVar5 * -2 + 1);" (assignment_expression "puVar4 = (uint *)((int)puVar4 + (uint)bVar5 * -2 + 1)" (identifier "puVar4") (= "=") (cast_expression "(uint *)((int)puVar4 + (uint)bVar5 * -2 + 1)" (( "(") (type_descriptor "uint *" (type_identifier "uint") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "((int)puVar4 + (uint)bVar5 * -2 + 1)" (( "(") (binary_expression "(int)puVar4 + (uint)bVar5 * -2 + 1" (binary_expression "(int)puVar4 + (uint)bVar5 * -2" (cast_expression "(int)puVar4" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (identifier "puVar4")) (+ "+") (binary_expression "(uint)bVar5 * -2" (cast_expression "(uint)bVar5" (( "(") (type_descriptor "uint" (type_identifier "uint")) () ")") (identifier "bVar5")) (* "*") (number_literal "-2"))) (+ "+") (number_literal "1")) () ")")))) (; ";")) (} "}"))) (} "}")) (else_clause "else {\n      *puVar2 = local_40;\n      (*param_2)(param_1,puVar2 + 1,puVar2,puVar2);\n    }" (else "else") (compound_statement "{\n      *puVar2 = local_40;\n      (*param_2)(param_1,puVar2 + 1,puVar2,puVar2);\n    }" ({ "{") (expression_statement "*puVar2 = local_40;" (assignment_expression "*puVar2 = local_40" (pointer_expression "*puVar2" (* "*") (identifier "puVar2")) (= "=") (identifier "local_40")) (; ";")) (expression_statement "(*param_2)(param_1,puVar2 + 1,puVar2,puVar2);" (call_expression "(*param_2)(param_1,puVar2 + 1,puVar2,puVar2)" (parenthesized_expression "(*param_2)" (( "(") (pointer_expression "*param_2" (* "*") (identifier "param_2")) () ")")) (argument_list "(param_1,puVar2 + 1,puVar2,puVar2)" (( "(") (identifier "param_1") (, ",") (binary_expression "puVar2 + 1" (identifier "puVar2") (+ "+") (number_literal "1")) (, ",") (identifier "puVar2") (, ",") (identifier "puVar2") () ")"))) (; ";")) (} "}")))) (} "}"))) (if_statement "if (local_20 == *(int *)(in_GS_OFFSET + 0x14)) {\n    return puVar2;\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    return puVar2;\n  }" ({ "{") (return_statement "return puVar2;" (return "return") (identifier "puVar2") (; ";")) (} "}"))) (expression_statement "FUN_00017e10();" (call_expression "FUN_00017e10()" (identifier "FUN_00017e10") (argument_list "()" (( "(") () ")"))) (; ";")) (} "}"))

type_1 * __regparm3 get_lsa(int fd,_func_int_int_sockaddr_ptr_socklen_t_ptr *get_name)

{
  int var_4;
  int var_2;
  int var_1;
  type_1 lsa;
  
  var_4 = *(int *)(var_1 + 0x14);
  lsa.len = 0x1c;
  var_2 = (*get_name)(fd,(type_2 *)&lsa.u,&lsa.len);
  if (var_2 == 0) {
                    /* WARNING: Subroutine does not return */
    var_3(lsa.len + 4);
  }
  if (var_4 == *(int *)(var_1 + 0x14)) {
    return (type_1 *)0x0;
  }
                    /* WARNING: Subroutine does not return */
  var_5();
}


(translation_unit (ERROR (binary_expression left: (identifier) (ERROR (identifier)) right: (call_expression function: (identifier) arguments: (argument_list (identifier) (ERROR (identifier)) (binary_expression left: (identifier) right: (identifier)))))) (compound_statement (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: (type_identifier) declarator: (pointer_declarator declarator: (identifier))) (declaration type: (primitive_type) declarator: (identifier)) (declaration type: (type_identifier) declarator: (identifier)) (declaration type: (type_identifier) declarator: (identifier)) (declaration type: (type_identifier) declarator: (array_declarator declarator: (identifier) size: (number_literal))) (declaration type: (primitive_type) declarator: (identifier)) (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: (number_literal))) (expression_statement (assignment_expression left: (identifier) right: (call_expression function: (parenthesized_expression (pointer_expression argument: (identifier))) arguments: (argument_list (identifier) (identifier) (pointer_expression argument: (identifier)))))) (expression_statement (assignment_expression left: (identifier) right: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (number_literal)))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))) consequence: (compound_statement (expression_statement (assignment_expression left: (identifier) right: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (call_expression function: (identifier) arguments: (argument_list))))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))) consequence: (compound_statement (expression_statement (assignment_expression left: (identifier) right: (pointer_expression argument: (identifier)))) (expression_statement (assignment_expression left: (identifier) right: (identifier))) (for_statement initializer: (assignment_expression left: (identifier) right: (binary_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: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (identifier))) right: (cast_expression type: (type_descriptor type: (primitive_type)) value: (pointer_expression argument: (identifier))))) (expression_statement (assignment_expression left: (identifier) right: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (binary_expression left: (cast_expression type: (type_descriptor type: (primitive_type)) value: (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: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (binary_expression left: (cast_expression type: (type_descriptor type: (primitive_type)) value: (identifier)) right: (binary_expression left: (cast_expression type: (type_descriptor type: (type_identifier)) value: (identifier)) right: (number_literal))) right: (number_literal))))))))) alternative: (else_clause (compound_statement (expression_statement (assignment_expression left: (pointer_expression argument: (identifier)) right: (identifier))) (expression_statement (call_expression function: (parenthesized_expression (pointer_expression argument: (identifier))) arguments: (argument_list (identifier) (binary_expression left: (identifier) right: (number_literal)) (identifier) (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 (return_statement (identifier)))) (expression_statement (call_expression function: (identifier) arguments: (argument_list)))))

uint * __regparm3 MASKED(undefined4 param_1,code *param_2)

{
  int iVar1;
  uint *puVar2;
  uint *puVar3;
  uint *puVar4;
  int in_GS_OFFSET;
  byte bVar5;
  uint local_40;
  undefined1 local_3c [28];
  int local_20;
  
  bVar5 = 0;
  local_20 = *(int *)(in_GS_OFFSET + 0x14);
  local_40 = 0x1c;
  iVar1 = (*param_2)(param_1,local_3c,&local_40);
  puVar2 = (uint *)0x0;
  if (iVar1 == 0) {
    puVar2 = (uint *)FUN_00019b89();
    if (local_40 < 0x1d) {
      puVar3 = &local_40;
      puVar4 = puVar2;
      for (iVar1 = local_40 + 4; iVar1 != 0; iVar1 = iVar1 + -1) {
        *(char *)puVar4 = (char)*puVar3;
        puVar3 = (uint *)((int)puVar3 + (uint)bVar5 * -2 + 1);
        puVar4 = (uint *)((int)puVar4 + (uint)bVar5 * -2 + 1);
      }
    }
    else {
      *puVar2 = local_40;
      (*param_2)(param_1,puVar2 + 1,puVar2,puVar2);
    }
  }
  if (local_20 == *(int *)(in_GS_OFFSET + 0x14)) {
    return puVar2;
  }
                    /* WARNING: Subroutine does not return */
  FUN_00017e10();
}

