
/* WARNING: Enum "anon_enum_32": Some values do not have unique names */

SockAddr_tag * __regparm3
sk_extractaddr_tmp(SockAddr_tag *__return_storage_ptr__,SockAddr addr,SockAddrStep *step)

{
  anon_enum_32 aVar1;
  SockAddr_tag *toret;
  int iVar2;
  addrinfo *paVar3;
  SockAddr pSVar4;
  SockAddr_tag *pSVar5;
  
  aVar1 = addr->superfamily;
  pSVar4 = addr;
  pSVar5 = __return_storage_ptr__;
  for (iVar2 = 0x84; iVar2 != 0; iVar2 = iVar2 + -1) {
    pSVar5->refcount = pSVar4->refcount;
    pSVar4 = (SockAddr)&pSVar4->error;
    pSVar5 = (SockAddr_tag *)&pSVar5->error;
  }
  paVar3 = addr->ais;
  if (aVar1 == ADDRTYPE_IPV6) {
    paVar3 = step->ai;
  }
  __return_storage_ptr__->refcount = 1;
  __return_storage_ptr__->ais = paVar3;
  return __return_storage_ptr__;
}



void __regparm3 FUN_00042420(undefined4 *param_1,undefined4 *param_2,undefined4 *param_3)

{
  int iVar1;
  int iVar2;
  undefined4 uVar3;
  undefined4 *puVar4;
  undefined4 *puVar5;
  
  iVar1 = param_2[2];
  puVar4 = param_2;
  puVar5 = param_1;
  for (iVar2 = 0x84; iVar2 != 0; iVar2 = iVar2 + -1) {
    *puVar5 = *puVar4;
    puVar4 = puVar4 + 1;
    puVar5 = puVar5 + 1;
  }
  uVar3 = param_2[3];
  if (iVar1 == 2) {
    uVar3 = *param_3;
  }
  *param_1 = 1;
  param_1[3] = uVar3;
  return;
}


CMP dword ptr [EDX + 0x8],0x2
PUSH EDI
MOV EDI,EAX
PUSH ESI
MOV ESI,EDX
PUSH EBX
MOV EBX,ECX
MOV ECX,0x84
MOVSD.REP ES:EDI,ESI
MOV ECX,dword ptr [EDX + 0xc]
JNZ 0x0004243b
MOV ECX,dword ptr [EBX]
POP EBX
POP ESI
MOV dword ptr [EAX],0x1
MOV dword ptr [EAX + 0xc],ECX
POP EDI
RET
(translation_unit "void __regparm3 FUN_00042420(undefined4 *param_1,undefined4 *param_2,undefined4 *param_3)\n\n{\n  int iVar1;\n  int iVar2;\n  undefined4 uVar3;\n  undefined4 *puVar4;\n  undefined4 *puVar5;\n  \n  iVar1 = param_2[2];\n  puVar4 = param_2;\n  puVar5 = param_1;\n  for (iVar2 = 0x84; iVar2 != 0; iVar2 = iVar2 + -1) {\n    *puVar5 = *puVar4;\n    puVar4 = puVar4 + 1;\n    puVar5 = puVar5 + 1;\n  }\n  uVar3 = param_2[3];\n  if (iVar1 == 2) {\n    uVar3 = *param_3;\n  }\n  *param_1 = 1;\n  param_1[3] = uVar3;\n  return;\n}\n\n" (function_definition "void __regparm3 FUN_00042420(undefined4 *param_1,undefined4 *param_2,undefined4 *param_3)\n\n{\n  int iVar1;\n  int iVar2;\n  undefined4 uVar3;\n  undefined4 *puVar4;\n  undefined4 *puVar5;\n  \n  iVar1 = param_2[2];\n  puVar4 = param_2;\n  puVar5 = param_1;\n  for (iVar2 = 0x84; iVar2 != 0; iVar2 = iVar2 + -1) {\n    *puVar5 = *puVar4;\n    puVar4 = puVar4 + 1;\n    puVar5 = puVar5 + 1;\n  }\n  uVar3 = param_2[3];\n  if (iVar1 == 2) {\n    uVar3 = *param_3;\n  }\n  *param_1 = 1;\n  param_1[3] = uVar3;\n  return;\n}" primitive_type (ERROR "__regparm3" identifier) (function_declarator "FUN_00042420(undefined4 *param_1,undefined4 *param_2,undefined4 *param_3)" identifier (parameter_list "(undefined4 *param_1,undefined4 *param_2,undefined4 *param_3)" ( (parameter_declaration "undefined4 *param_1" type_identifier (pointer_declarator "*param_1" * identifier)) , (parameter_declaration "undefined4 *param_2" type_identifier (pointer_declarator "*param_2" * identifier)) , (parameter_declaration "undefined4 *param_3" type_identifier (pointer_declarator "*param_3" * identifier)) ))) (compound_statement "{\n  int iVar1;\n  int iVar2;\n  undefined4 uVar3;\n  undefined4 *puVar4;\n  undefined4 *puVar5;\n  \n  iVar1 = param_2[2];\n  puVar4 = param_2;\n  puVar5 = param_1;\n  for (iVar2 = 0x84; iVar2 != 0; iVar2 = iVar2 + -1) {\n    *puVar5 = *puVar4;\n    puVar4 = puVar4 + 1;\n    puVar5 = puVar5 + 1;\n  }\n  uVar3 = param_2[3];\n  if (iVar1 == 2) {\n    uVar3 = *param_3;\n  }\n  *param_1 = 1;\n  param_1[3] = uVar3;\n  return;\n}" { (declaration "int iVar1;" primitive_type identifier ;) (declaration "int iVar2;" primitive_type identifier ;) (declaration "undefined4 uVar3;" type_identifier identifier ;) (declaration "undefined4 *puVar4;" type_identifier (pointer_declarator "*puVar4" * identifier) ;) (declaration "undefined4 *puVar5;" type_identifier (pointer_declarator "*puVar5" * identifier) ;) (expression_statement "iVar1 = param_2[2];" (assignment_expression "iVar1 = param_2[2]" identifier = (subscript_expression "param_2[2]" identifier [ number_literal ])) ;) (expression_statement "puVar4 = param_2;" (assignment_expression "puVar4 = param_2" identifier = identifier) ;) (expression_statement "puVar5 = param_1;" (assignment_expression "puVar5 = param_1" identifier = identifier) ;) (for_statement "for (iVar2 = 0x84; iVar2 != 0; iVar2 = iVar2 + -1) {\n    *puVar5 = *puVar4;\n    puVar4 = puVar4 + 1;\n    puVar5 = puVar5 + 1;\n  }" for ( (assignment_expression "iVar2 = 0x84" 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    *puVar5 = *puVar4;\n    puVar4 = puVar4 + 1;\n    puVar5 = puVar5 + 1;\n  }" { (expression_statement "*puVar5 = *puVar4;" (assignment_expression "*puVar5 = *puVar4" (pointer_expression "*puVar5" * identifier) = (pointer_expression "*puVar4" * identifier)) ;) (expression_statement "puVar4 = puVar4 + 1;" (assignment_expression "puVar4 = puVar4 + 1" identifier = (binary_expression "puVar4 + 1" identifier + number_literal)) ;) (expression_statement "puVar5 = puVar5 + 1;" (assignment_expression "puVar5 = puVar5 + 1" identifier = (binary_expression "puVar5 + 1" identifier + number_literal)) ;) })) (expression_statement "uVar3 = param_2[3];" (assignment_expression "uVar3 = param_2[3]" identifier = (subscript_expression "param_2[3]" identifier [ number_literal ])) ;) (if_statement "if (iVar1 == 2) {\n    uVar3 = *param_3;\n  }" if (parenthesized_expression "(iVar1 == 2)" ( (binary_expression "iVar1 == 2" identifier == number_literal) )) (compound_statement "{\n    uVar3 = *param_3;\n  }" { (expression_statement "uVar3 = *param_3;" (assignment_expression "uVar3 = *param_3" identifier = (pointer_expression "*param_3" * identifier)) ;) })) (expression_statement "*param_1 = 1;" (assignment_expression "*param_1 = 1" (pointer_expression "*param_1" * identifier) = number_literal) ;) (expression_statement "param_1[3] = uVar3;" (assignment_expression "param_1[3] = uVar3" (subscript_expression "param_1[3]" identifier [ number_literal ]) = identifier) ;) (return_statement "return;" return ;) })))
(translation_unit "/* WARNING: Enum "anon_enum_32": Some values do not have unique names */\n\nSockAddr_tag * __regparm3\nsk_extractaddr_tmp(SockAddr_tag *__return_storage_ptr__,SockAddr addr,SockAddrStep *step)\n\n{\n  anon_enum_32 aVar1;\n  SockAddr_tag *toret;\n  int iVar2;\n  addrinfo *paVar3;\n  SockAddr pSVar4;\n  SockAddr_tag *pSVar5;\n  \n  aVar1 = addr->superfamily;\n  pSVar4 = addr;\n  pSVar5 = __return_storage_ptr__;\n  for (iVar2 = 0x84; iVar2 != 0; iVar2 = iVar2 + -1) {\n    pSVar5->refcount = pSVar4->refcount;\n    pSVar4 = (SockAddr)&pSVar4->error;\n    pSVar5 = (SockAddr_tag *)&pSVar5->error;\n  }\n  paVar3 = addr->ais;\n  if (aVar1 == ADDRTYPE_IPV6) {\n    paVar3 = step->ai;\n  }\n  __return_storage_ptr__->refcount = 1;\n  __return_storage_ptr__->ais = paVar3;\n  return __return_storage_ptr__;\n}\n\n" comment (ERROR "SockAddr_tag * __regparm3\nsk_extractaddr_tmp(SockAddr_tag *__return_storage_ptr__,SockAddr addr,SockAddrStep *step)" (binary_expression "SockAddr_tag * __regparm3\nsk_extractaddr_tmp(SockAddr_tag *__return_storage_ptr__,SockAddr addr,SockAddrStep *step)" identifier * (ERROR "__regparm3" identifier) (call_expression "sk_extractaddr_tmp(SockAddr_tag *__return_storage_ptr__,SockAddr addr,SockAddrStep *step)" identifier (argument_list "(SockAddr_tag *__return_storage_ptr__,SockAddr addr,SockAddrStep *step)" ( (binary_expression "SockAddr_tag *__return_storage_ptr__" identifier * identifier) , identifier (ERROR "addr" identifier) , (binary_expression "SockAddrStep *step" identifier * identifier) ))))) (compound_statement "{\n  anon_enum_32 aVar1;\n  SockAddr_tag *toret;\n  int iVar2;\n  addrinfo *paVar3;\n  SockAddr pSVar4;\n  SockAddr_tag *pSVar5;\n  \n  aVar1 = addr->superfamily;\n  pSVar4 = addr;\n  pSVar5 = __return_storage_ptr__;\n  for (iVar2 = 0x84; iVar2 != 0; iVar2 = iVar2 + -1) {\n    pSVar5->refcount = pSVar4->refcount;\n    pSVar4 = (SockAddr)&pSVar4->error;\n    pSVar5 = (SockAddr_tag *)&pSVar5->error;\n  }\n  paVar3 = addr->ais;\n  if (aVar1 == ADDRTYPE_IPV6) {\n    paVar3 = step->ai;\n  }\n  __return_storage_ptr__->refcount = 1;\n  __return_storage_ptr__->ais = paVar3;\n  return __return_storage_ptr__;\n}" { (declaration "anon_enum_32 aVar1;" type_identifier identifier ;) (declaration "SockAddr_tag *toret;" type_identifier (pointer_declarator "*toret" * identifier) ;) (declaration "int iVar2;" primitive_type identifier ;) (declaration "addrinfo *paVar3;" type_identifier (pointer_declarator "*paVar3" * identifier) ;) (declaration "SockAddr pSVar4;" type_identifier identifier ;) (declaration "SockAddr_tag *pSVar5;" type_identifier (pointer_declarator "*pSVar5" * identifier) ;) (expression_statement "aVar1 = addr->superfamily;" (assignment_expression "aVar1 = addr->superfamily" identifier = (field_expression "addr->superfamily" identifier -> field_identifier)) ;) (expression_statement "pSVar4 = addr;" (assignment_expression "pSVar4 = addr" identifier = identifier) ;) (expression_statement "pSVar5 = __return_storage_ptr__;" (assignment_expression "pSVar5 = __return_storage_ptr__" identifier = identifier) ;) (for_statement "for (iVar2 = 0x84; iVar2 != 0; iVar2 = iVar2 + -1) {\n    pSVar5->refcount = pSVar4->refcount;\n    pSVar4 = (SockAddr)&pSVar4->error;\n    pSVar5 = (SockAddr_tag *)&pSVar5->error;\n  }" for ( (assignment_expression "iVar2 = 0x84" 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    pSVar5->refcount = pSVar4->refcount;\n    pSVar4 = (SockAddr)&pSVar4->error;\n    pSVar5 = (SockAddr_tag *)&pSVar5->error;\n  }" { (expression_statement "pSVar5->refcount = pSVar4->refcount;" (assignment_expression "pSVar5->refcount = pSVar4->refcount" (field_expression "pSVar5->refcount" identifier -> field_identifier) = (field_expression "pSVar4->refcount" identifier -> field_identifier)) ;) (expression_statement "pSVar4 = (SockAddr)&pSVar4->error;" (assignment_expression "pSVar4 = (SockAddr)&pSVar4->error" identifier = (binary_expression "(SockAddr)&pSVar4->error" (parenthesized_expression "(SockAddr)" ( identifier )) & (field_expression "pSVar4->error" identifier -> field_identifier))) ;) (expression_statement "pSVar5 = (SockAddr_tag *)&pSVar5->error;" (assignment_expression "pSVar5 = (SockAddr_tag *)&pSVar5->error" identifier = (cast_expression "(SockAddr_tag *)&pSVar5->error" ( (type_descriptor "SockAddr_tag *" type_identifier (abstract_pointer_declarator "*" *)) ) (pointer_expression "&pSVar5->error" & (field_expression "pSVar5->error" identifier -> field_identifier)))) ;) })) (expression_statement "paVar3 = addr->ais;" (assignment_expression "paVar3 = addr->ais" identifier = (field_expression "addr->ais" identifier -> field_identifier)) ;) (if_statement "if (aVar1 == ADDRTYPE_IPV6) {\n    paVar3 = step->ai;\n  }" if (parenthesized_expression "(aVar1 == ADDRTYPE_IPV6)" ( (binary_expression "aVar1 == ADDRTYPE_IPV6" identifier == identifier) )) (compound_statement "{\n    paVar3 = step->ai;\n  }" { (expression_statement "paVar3 = step->ai;" (assignment_expression "paVar3 = step->ai" identifier = (field_expression "step->ai" identifier -> field_identifier)) ;) })) (expression_statement "__return_storage_ptr__->refcount = 1;" (assignment_expression "__return_storage_ptr__->refcount = 1" (field_expression "__return_storage_ptr__->refcount" identifier -> field_identifier) = number_literal) ;) (expression_statement "__return_storage_ptr__->ais = paVar3;" (assignment_expression "__return_storage_ptr__->ais = paVar3" (field_expression "__return_storage_ptr__->ais" identifier -> field_identifier) = identifier) ;) (return_statement "return __return_storage_ptr__;" return identifier ;) }))
(translation_unit "void __regparm3 FUN_00042420(undefined4 *param_1,undefined4 *param_2,undefined4 *param_3)\n\n{\n  int iVar1;\n  int iVar2;\n  undefined4 uVar3;\n  undefined4 *puVar4;\n  undefined4 *puVar5;\n  \n  iVar1 = param_2[2];\n  puVar4 = param_2;\n  puVar5 = param_1;\n  for (iVar2 = 0x84; iVar2 != 0; iVar2 = iVar2 + -1) {\n    *puVar5 = *puVar4;\n    puVar4 = puVar4 + 1;\n    puVar5 = puVar5 + 1;\n  }\n  uVar3 = param_2[3];\n  if (iVar1 == 2) {\n    uVar3 = *param_3;\n  }\n  *param_1 = 1;\n  param_1[3] = uVar3;\n  return;\n}\n\n" (function_definition "void __regparm3 FUN_00042420(undefined4 *param_1,undefined4 *param_2,undefined4 *param_3)\n\n{\n  int iVar1;\n  int iVar2;\n  undefined4 uVar3;\n  undefined4 *puVar4;\n  undefined4 *puVar5;\n  \n  iVar1 = param_2[2];\n  puVar4 = param_2;\n  puVar5 = param_1;\n  for (iVar2 = 0x84; iVar2 != 0; iVar2 = iVar2 + -1) {\n    *puVar5 = *puVar4;\n    puVar4 = puVar4 + 1;\n    puVar5 = puVar5 + 1;\n  }\n  uVar3 = param_2[3];\n  if (iVar1 == 2) {\n    uVar3 = *param_3;\n  }\n  *param_1 = 1;\n  param_1[3] = uVar3;\n  return;\n}" primitive_type (ERROR "__regparm3" identifier) (function_declarator "FUN_00042420(undefined4 *param_1,undefined4 *param_2,undefined4 *param_3)" identifier (parameter_list "(undefined4 *param_1,undefined4 *param_2,undefined4 *param_3)" ( (parameter_declaration "undefined4 *param_1" type_identifier (pointer_declarator "*param_1" * identifier)) , (parameter_declaration "undefined4 *param_2" type_identifier (pointer_declarator "*param_2" * identifier)) , (parameter_declaration "undefined4 *param_3" type_identifier (pointer_declarator "*param_3" * identifier)) ))) (compound_statement "{\n  int iVar1;\n  int iVar2;\n  undefined4 uVar3;\n  undefined4 *puVar4;\n  undefined4 *puVar5;\n  \n  iVar1 = param_2[2];\n  puVar4 = param_2;\n  puVar5 = param_1;\n  for (iVar2 = 0x84; iVar2 != 0; iVar2 = iVar2 + -1) {\n    *puVar5 = *puVar4;\n    puVar4 = puVar4 + 1;\n    puVar5 = puVar5 + 1;\n  }\n  uVar3 = param_2[3];\n  if (iVar1 == 2) {\n    uVar3 = *param_3;\n  }\n  *param_1 = 1;\n  param_1[3] = uVar3;\n  return;\n}" { (declaration "int iVar1;" primitive_type identifier ;) (declaration "int iVar2;" primitive_type identifier ;) (declaration "undefined4 uVar3;" type_identifier identifier ;) (declaration "undefined4 *puVar4;" type_identifier (pointer_declarator "*puVar4" * identifier) ;) (declaration "undefined4 *puVar5;" type_identifier (pointer_declarator "*puVar5" * identifier) ;) (expression_statement "iVar1 = param_2[2];" (assignment_expression "iVar1 = param_2[2]" identifier = (subscript_expression "param_2[2]" identifier [ number_literal ])) ;) (expression_statement "puVar4 = param_2;" (assignment_expression "puVar4 = param_2" identifier = identifier) ;) (expression_statement "puVar5 = param_1;" (assignment_expression "puVar5 = param_1" identifier = identifier) ;) (for_statement "for (iVar2 = 0x84; iVar2 != 0; iVar2 = iVar2 + -1) {\n    *puVar5 = *puVar4;\n    puVar4 = puVar4 + 1;\n    puVar5 = puVar5 + 1;\n  }" for ( (assignment_expression "iVar2 = 0x84" 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    *puVar5 = *puVar4;\n    puVar4 = puVar4 + 1;\n    puVar5 = puVar5 + 1;\n  }" { (expression_statement "*puVar5 = *puVar4;" (assignment_expression "*puVar5 = *puVar4" (pointer_expression "*puVar5" * identifier) = (pointer_expression "*puVar4" * identifier)) ;) (expression_statement "puVar4 = puVar4 + 1;" (assignment_expression "puVar4 = puVar4 + 1" identifier = (binary_expression "puVar4 + 1" identifier + number_literal)) ;) (expression_statement "puVar5 = puVar5 + 1;" (assignment_expression "puVar5 = puVar5 + 1" identifier = (binary_expression "puVar5 + 1" identifier + number_literal)) ;) })) (expression_statement "uVar3 = param_2[3];" (assignment_expression "uVar3 = param_2[3]" identifier = (subscript_expression "param_2[3]" identifier [ number_literal ])) ;) (if_statement "if (iVar1 == 2) {\n    uVar3 = *param_3;\n  }" if (parenthesized_expression "(iVar1 == 2)" ( (binary_expression "iVar1 == 2" identifier == number_literal) )) (compound_statement "{\n    uVar3 = *param_3;\n  }" { (expression_statement "uVar3 = *param_3;" (assignment_expression "uVar3 = *param_3" identifier = (pointer_expression "*param_3" * identifier)) ;) })) (expression_statement "*param_1 = 1;" (assignment_expression "*param_1 = 1" (pointer_expression "*param_1" * identifier) = number_literal) ;) (expression_statement "param_1[3] = uVar3;" (assignment_expression "param_1[3] = uVar3" (subscript_expression "param_1[3]" identifier [ number_literal ]) = identifier) ;) (return_statement "return;" return ;) })))
(translation_unit (function_definition TYPE (ERROR IDENT) (function_declarator IDENT (parameter_list ( (parameter_declaration TYPE (pointer_declarator * IDENT)) , (parameter_declaration TYPE (pointer_declarator * IDENT)) , (parameter_declaration TYPE (pointer_declarator * IDENT)) ))) (compound_statement { (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE (pointer_declarator * IDENT) ;) (expression_statement (assignment_expression IDENT = (subscript_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 IDENT + LIT)) ;) (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) })) (expression_statement (assignment_expression IDENT = (subscript_expression IDENT [ LIT ])) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT == LIT) )) (compound_statement { (expression_statement (assignment_expression IDENT = (pointer_expression * IDENT)) ;) })) (expression_statement (assignment_expression (pointer_expression * IDENT) = LIT) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = IDENT) ;) (return_statement return ;) })))
(function_definition "void __regparm3 FUN_00042420(undefined4 *param_1,undefined4 *param_2,undefined4 *param_3)\n\n{\n  int iVar1;\n  int iVar2;\n  undefined4 uVar3;\n  undefined4 *puVar4;\n  undefined4 *puVar5;\n  \n  iVar1 = param_2[2];\n  puVar4 = param_2;\n  puVar5 = param_1;\n  for (iVar2 = 0x84; iVar2 != 0; iVar2 = iVar2 + -1) {\n    *puVar5 = *puVar4;\n    puVar4 = puVar4 + 1;\n    puVar5 = puVar5 + 1;\n  }\n  uVar3 = param_2[3];\n  if (iVar1 == 2) {\n    uVar3 = *param_3;\n  }\n  *param_1 = 1;\n  param_1[3] = uVar3;\n  return;\n}" (primitive_type "void") (ERROR "__regparm3" (identifier "__regparm3")) (function_declarator "FUN_00042420(undefined4 *param_1,undefined4 *param_2,undefined4 *param_3)" (identifier "FUN_00042420") (parameter_list "(undefined4 *param_1,undefined4 *param_2,undefined4 *param_3)" (( "(") (parameter_declaration "undefined4 *param_1" (type_identifier "undefined4") (pointer_declarator "*param_1" (* "*") (identifier "param_1"))) (, ",") (parameter_declaration "undefined4 *param_2" (type_identifier "undefined4") (pointer_declarator "*param_2" (* "*") (identifier "param_2"))) (, ",") (parameter_declaration "undefined4 *param_3" (type_identifier "undefined4") (pointer_declarator "*param_3" (* "*") (identifier "param_3"))) () ")"))) (compound_statement "{\n  int iVar1;\n  int iVar2;\n  undefined4 uVar3;\n  undefined4 *puVar4;\n  undefined4 *puVar5;\n  \n  iVar1 = param_2[2];\n  puVar4 = param_2;\n  puVar5 = param_1;\n  for (iVar2 = 0x84; iVar2 != 0; iVar2 = iVar2 + -1) {\n    *puVar5 = *puVar4;\n    puVar4 = puVar4 + 1;\n    puVar5 = puVar5 + 1;\n  }\n  uVar3 = param_2[3];\n  if (iVar1 == 2) {\n    uVar3 = *param_3;\n  }\n  *param_1 = 1;\n  param_1[3] = uVar3;\n  return;\n}" ({ "{") (declaration "int iVar1;" (primitive_type "int") (identifier "iVar1") (; ";")) (declaration "int iVar2;" (primitive_type "int") (identifier "iVar2") (; ";")) (declaration "undefined4 uVar3;" (type_identifier "undefined4") (identifier "uVar3") (; ";")) (declaration "undefined4 *puVar4;" (type_identifier "undefined4") (pointer_declarator "*puVar4" (* "*") (identifier "puVar4")) (; ";")) (declaration "undefined4 *puVar5;" (type_identifier "undefined4") (pointer_declarator "*puVar5" (* "*") (identifier "puVar5")) (; ";")) (expression_statement "iVar1 = param_2[2];" (assignment_expression "iVar1 = param_2[2]" (identifier "iVar1") (= "=") (subscript_expression "param_2[2]" (identifier "param_2") ([ "[") (number_literal "2") (] "]"))) (; ";")) (expression_statement "puVar4 = param_2;" (assignment_expression "puVar4 = param_2" (identifier "puVar4") (= "=") (identifier "param_2")) (; ";")) (expression_statement "puVar5 = param_1;" (assignment_expression "puVar5 = param_1" (identifier "puVar5") (= "=") (identifier "param_1")) (; ";")) (for_statement "for (iVar2 = 0x84; iVar2 != 0; iVar2 = iVar2 + -1) {\n    *puVar5 = *puVar4;\n    puVar4 = puVar4 + 1;\n    puVar5 = puVar5 + 1;\n  }" (for "for") (( "(") (assignment_expression "iVar2 = 0x84" (identifier "iVar2") (= "=") (number_literal "0x84")) (; ";") (binary_expression "iVar2 != 0" (identifier "iVar2") (!= "!=") (number_literal "0")) (; ";") (assignment_expression "iVar2 = iVar2 + -1" (identifier "iVar2") (= "=") (binary_expression "iVar2 + -1" (identifier "iVar2") (+ "+") (number_literal "-1"))) () ")") (compound_statement "{\n    *puVar5 = *puVar4;\n    puVar4 = puVar4 + 1;\n    puVar5 = puVar5 + 1;\n  }" ({ "{") (expression_statement "*puVar5 = *puVar4;" (assignment_expression "*puVar5 = *puVar4" (pointer_expression "*puVar5" (* "*") (identifier "puVar5")) (= "=") (pointer_expression "*puVar4" (* "*") (identifier "puVar4"))) (; ";")) (expression_statement "puVar4 = puVar4 + 1;" (assignment_expression "puVar4 = puVar4 + 1" (identifier "puVar4") (= "=") (binary_expression "puVar4 + 1" (identifier "puVar4") (+ "+") (number_literal "1"))) (; ";")) (expression_statement "puVar5 = puVar5 + 1;" (assignment_expression "puVar5 = puVar5 + 1" (identifier "puVar5") (= "=") (binary_expression "puVar5 + 1" (identifier "puVar5") (+ "+") (number_literal "1"))) (; ";")) (} "}"))) (expression_statement "uVar3 = param_2[3];" (assignment_expression "uVar3 = param_2[3]" (identifier "uVar3") (= "=") (subscript_expression "param_2[3]" (identifier "param_2") ([ "[") (number_literal "3") (] "]"))) (; ";")) (if_statement "if (iVar1 == 2) {\n    uVar3 = *param_3;\n  }" (if "if") (parenthesized_expression "(iVar1 == 2)" (( "(") (binary_expression "iVar1 == 2" (identifier "iVar1") (== "==") (number_literal "2")) () ")")) (compound_statement "{\n    uVar3 = *param_3;\n  }" ({ "{") (expression_statement "uVar3 = *param_3;" (assignment_expression "uVar3 = *param_3" (identifier "uVar3") (= "=") (pointer_expression "*param_3" (* "*") (identifier "param_3"))) (; ";")) (} "}"))) (expression_statement "*param_1 = 1;" (assignment_expression "*param_1 = 1" (pointer_expression "*param_1" (* "*") (identifier "param_1")) (= "=") (number_literal "1")) (; ";")) (expression_statement "param_1[3] = uVar3;" (assignment_expression "param_1[3] = uVar3" (subscript_expression "param_1[3]" (identifier "param_1") ([ "[") (number_literal "3") (] "]")) (= "=") (identifier "uVar3")) (; ";")) (return_statement "return;" (return "return") (; ";")) (} "}")))

/* WARNING: Enum "anon_enum_32": Some values do not have unique names */

type_2 * __regparm3
sk_extractaddr_tmp(type_2 *__return_storage_ptr__,type_4 addr,SockAddrStep *step)

{
  type_1 var_2;
  type_2 *toret;
  int var_1;
  type_3 *paVar3;
  type_4 pSVar4;
  type_2 *pSVar5;
  
  var_2 = addr->superfamily;
  pSVar4 = addr;
  pSVar5 = __return_storage_ptr__;
  for (var_1 = 0x84; var_1 != 0; var_1 = var_1 + -1) {
    pSVar5->refcount = pSVar4->refcount;
    pSVar4 = (type_4)&pSVar4->error;
    pSVar5 = (type_2 *)&pSVar5->error;
  }
  paVar3 = addr->ais;
  if (var_2 == var_3) {
    paVar3 = step->ai;
  }
  __return_storage_ptr__->refcount = 1;
  __return_storage_ptr__->ais = paVar3;
  return __return_storage_ptr__;
}


(translation_unit (function_definition type: (primitive_type) (ERROR (identifier)) declarator: (function_declarator declarator: (identifier) parameters: (parameter_list (parameter_declaration type: (type_identifier) declarator: (pointer_declarator declarator: (identifier))) (parameter_declaration type: (type_identifier) declarator: (pointer_declarator declarator: (identifier))) (parameter_declaration type: (type_identifier) declarator: (pointer_declarator declarator: (identifier))))) body: (compound_statement (declaration type: (primitive_type) 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: (pointer_declarator declarator: (identifier))) (expression_statement (assignment_expression left: (identifier) right: (subscript_expression argument: (identifier) index: (number_literal)))) (expression_statement (assignment_expression left: (identifier) right: (identifier))) (expression_statement (assignment_expression left: (identifier) right: (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: (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: (subscript_expression argument: (identifier) index: (number_literal)))) (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: (pointer_expression argument: (identifier)) right: (number_literal))) (expression_statement (assignment_expression left: (subscript_expression argument: (identifier) index: (number_literal)) right: (identifier))) (return_statement))))

void __regparm3 MASKED(undefined4 *param_1,undefined4 *param_2,undefined4 *param_3)

{
  int iVar1;
  int iVar2;
  undefined4 uVar3;
  undefined4 *puVar4;
  undefined4 *puVar5;
  
  iVar1 = param_2[2];
  puVar4 = param_2;
  puVar5 = param_1;
  for (iVar2 = 0x84; iVar2 != 0; iVar2 = iVar2 + -1) {
    *puVar5 = *puVar4;
    puVar4 = puVar4 + 1;
    puVar5 = puVar5 + 1;
  }
  uVar3 = param_2[3];
  if (iVar1 == 2) {
    uVar3 = *param_3;
  }
  *param_1 = 1;
  param_1[3] = uVar3;
  return;
}

