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

int __regparm3
call_handlers(MHD_Connection *con,_Bool read_ready,_Bool write_ready,_Bool force_close)

{
  MHD_Daemon *pMVar1;
  int iVar2;
  MHD_ConnectionEventLoopInfo MVar3;
  MHD_CONNECTION_STATE MVar4;
  
  MVar4 = con->state;
  if (con->tls_read_ready == false) {
    if (force_close) goto LAB_000192c0;
    MVar3 = con->event_loop_info;
    if (MVar3 != MHD_EVENT_LOOP_INFO_READ) goto LAB_0001926e;
    if (read_ready) goto LAB_000191f8;
LAB_0001927b:
    iVar2 = MHD_connection_handle_idle(con);
    goto LAB_00019287;
  }
  if (force_close) {
LAB_000192c0:
    MHD_connection_close_(con,MHD_REQUEST_TERMINATED_WITH_ERROR);
    iVar2 = MHD_connection_handle_idle(con);
    return iVar2;
  }
  MVar3 = con->event_loop_info;
  if (MVar3 == MHD_EVENT_LOOP_INFO_READ) {
LAB_000191f8:
    MHD_connection_handle_read(con);
    iVar2 = MHD_connection_handle_idle(con);
    if ((con->event_loop_info == MHD_EVENT_LOOP_INFO_WRITE) && (write_ready)) goto LAB_00019300;
  }
  else {
LAB_0001926e:
    if ((MVar3 != MHD_EVENT_LOOP_INFO_WRITE) || (!write_ready)) goto LAB_0001927b;
LAB_00019300:
    MHD_connection_handle_write(con);
    iVar2 = MHD_connection_handle_idle(con);
  }
  if ((MVar4 == MHD_CONNECTION_INIT) && (con->sk_nonblck != false)) {
    MVar4 = con->state;
    if (MVar4 == MHD_CONNECTION_HEADERS_SENDING) {
      MHD_connection_handle_write(con);
      iVar2 = MHD_connection_handle_idle(con);
      MVar4 = con->state;
    }
    if ((MVar4 & ~MHD_CONNECTION_HEADER_PART_RECEIVED) == MHD_CONNECTION_NORMAL_BODY_READY) {
      MHD_connection_handle_write(con);
      iVar2 = MHD_connection_handle_idle(con);
    }
  }
LAB_00019287:
  pMVar1 = con->daemon;
  if (((pMVar1->data_already_pending == false) &&
      ((pMVar1->options & MHD_USE_THREAD_PER_CONNECTION) == MHD_NO_FLAG)) &&
     ((con->event_loop_info == MHD_EVENT_LOOP_INFO_BLOCK ||
      ((con->tls_read_ready != false && (con->event_loop_info == MHD_EVENT_LOOP_INFO_READ)))))) {
    pMVar1->data_already_pending = true;
    return iVar2;
  }
  return iVar2;
}



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

void __regparm3 FUN_000191c0(int param_1,char param_2,char param_3,char param_4)

{
  int iVar1;
  int iVar2;
  uint uVar3;
  
  iVar1 = *(int *)(param_1 + 0xb4);
  if (*(char *)(param_1 + 0xf0) == '\0') {
    if (param_4 != '\0') goto LAB_000192c0;
    iVar2 = *(int *)(param_1 + 0xb8);
    if (iVar2 != 0) goto LAB_0001926e;
    if (param_2 != '\0') goto LAB_000191f8;
LAB_0001927b:
    FUN_00016a50(param_1);
    goto LAB_00019287;
  }
  if (param_4 != '\0') {
LAB_000192c0:
    FUN_00015170(param_1,1);
    FUN_00016a50(param_1);
    return;
  }
  iVar2 = *(int *)(param_1 + 0xb8);
  if (iVar2 == 0) {
LAB_000191f8:
    FUN_00015810(param_1);
    FUN_00016a50(param_1);
    if ((*(int *)(param_1 + 0xb8) == 1) && (param_3 != '\0')) goto LAB_00019300;
  }
  else {
LAB_0001926e:
    if ((iVar2 != 1) || (param_3 == '\0')) goto LAB_0001927b;
LAB_00019300:
    FUN_000159b0(param_1);
    FUN_00016a50(param_1);
  }
  if ((iVar1 == 0) && (*(char *)(param_1 + 0xa8) != '\0')) {
    uVar3 = *(uint *)(param_1 + 0xb4);
    if (uVar3 == 10) {
      FUN_000159b0(param_1);
      FUN_00016a50(param_1);
      uVar3 = *(uint *)(param_1 + 0xb4);
    }
    if ((uVar3 & 0xfffffffd) == 0xc) {
      FUN_000159b0(param_1);
      FUN_00016a50(param_1);
    }
  }
LAB_00019287:
  iVar1 = *(int *)(param_1 + 0x18);
  if (((*(char *)(iVar1 + 0xe4) == '\0') && ((*(byte *)(iVar1 + 0xf8) & 4) == 0)) &&
     ((*(int *)(param_1 + 0xb8) == 2 ||
      ((*(char *)(param_1 + 0xf0) != '\0' && (*(int *)(param_1 + 0xb8) == 0)))))) {
    *(undefined1 *)(iVar1 + 0xe4) = 1;
    return;
  }
  return;
}


PUSH EDI
PUSH ESI
MOV ESI,EAX
PUSH EBX
CALL 0x00013810
ADD EBX,0x1ac16
SUB ESP,0x10
CMP byte ptr [ESI + 0xf0],0x0
MOV EDI,dword ptr [ESI + 0xb4]
MOV EAX,dword ptr [ESP + 0x20]
JZ 0x00019260
TEST AL,AL
JNZ 0x000192c0
MOV EAX,dword ptr [ESI + 0xb8]
TEST EAX,EAX
JNZ 0x0001926e
MOV dword ptr [ESP + 0xc],ECX
SUB ESP,0xc
PUSH ESI
CALL 0x00015810
MOV dword ptr [ESP],ESI
CALL 0x00016a50
ADD ESP,0x10
CMP dword ptr [ESI + 0xb8],0x1
JNZ 0x00019225
MOV ECX,dword ptr [ESP + 0xc]
TEST CL,CL
JNZ 0x00019300
TEST EDI,EDI
JNZ 0x00019287
CMP byte ptr [ESI + 0xa8],0x0
JZ 0x00019287
MOV EDX,dword ptr [ESI + 0xb4]
CMP EDX,0xa
JZ 0x00019320
AND EDX,0xfffffffd
CMP EDX,0xc
JNZ 0x00019287
SUB ESP,0xc
PUSH ESI
CALL 0x000159b0
MOV dword ptr [ESP],ESI
CALL 0x00016a50
ADD ESP,0x10
JMP 0x00019287
TEST AL,AL
JNZ 0x000192c0
MOV EAX,dword ptr [ESI + 0xb8]
TEST EAX,EAX
JZ 0x000192e0
CMP EAX,0x1
JNZ 0x0001927b
TEST CL,CL
JNZ 0x00019300
SUB ESP,0xc
PUSH ESI
CALL 0x00016a50
ADD ESP,0x10
MOV EDX,dword ptr [ESI + 0x18]
CMP byte ptr [EDX + 0xe4],0x0
JNZ 0x000192b4
TEST byte ptr [EDX + 0xf8],0x4
JNZ 0x000192b4
MOV ECX,dword ptr [ESI + 0xb8]
CMP ECX,0x2
JZ 0x000192f0
CMP byte ptr [ESI + 0xf0],0x0
JZ 0x000192b4
TEST ECX,ECX
JZ 0x000192f0
ADD ESP,0x10
POP EBX
POP ESI
POP EDI
RET
SUB ESP,0x8
PUSH 0x1
PUSH ESI
CALL 0x00015170
MOV dword ptr [ESP],ESI
CALL 0x00016a50
ADD ESP,0x10
ADD ESP,0x10
POP EBX
POP ESI
POP EDI
RET
TEST DL,DL
JZ 0x0001927b
JMP 0x000191f8
MOV byte ptr [EDX + 0xe4],0x1
ADD ESP,0x10
POP EBX
POP ESI
POP EDI
RET
SUB ESP,0xc
PUSH ESI
CALL 0x000159b0
MOV dword ptr [ESP],ESI
CALL 0x00016a50
ADD ESP,0x10
JMP 0x00019225
SUB ESP,0xc
PUSH ESI
CALL 0x000159b0
MOV dword ptr [ESP],ESI
CALL 0x00016a50
MOV EDX,dword ptr [ESI + 0xb4]
ADD ESP,0x10
JMP 0x00019241
(translation_unit "/* WARNING: Function: __i686.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */\n\nvoid __regparm3 FUN_000191c0(int param_1,char param_2,char param_3,char param_4)\n\n{\n  int iVar1;\n  int iVar2;\n  uint uVar3;\n  \n  iVar1 = *(int *)(param_1 + 0xb4);\n  if (*(char *)(param_1 + 0xf0) == '\0') {\n    if (param_4 != '\0') goto LAB_000192c0;\n    iVar2 = *(int *)(param_1 + 0xb8);\n    if (iVar2 != 0) goto LAB_0001926e;\n    if (param_2 != '\0') goto LAB_000191f8;\nLAB_0001927b:\n    FUN_00016a50(param_1);\n    goto LAB_00019287;\n  }\n  if (param_4 != '\0') {\nLAB_000192c0:\n    FUN_00015170(param_1,1);\n    FUN_00016a50(param_1);\n    return;\n  }\n  iVar2 = *(int *)(param_1 + 0xb8);\n  if (iVar2 == 0) {\nLAB_000191f8:\n    FUN_00015810(param_1);\n    FUN_00016a50(param_1);\n    if ((*(int *)(param_1 + 0xb8) == 1) && (param_3 != '\0')) goto LAB_00019300;\n  }\n  else {\nLAB_0001926e:\n    if ((iVar2 != 1) || (param_3 == '\0')) goto LAB_0001927b;\nLAB_00019300:\n    FUN_000159b0(param_1);\n    FUN_00016a50(param_1);\n  }\n  if ((iVar1 == 0) && (*(char *)(param_1 + 0xa8) != '\0')) {\n    uVar3 = *(uint *)(param_1 + 0xb4);\n    if (uVar3 == 10) {\n      FUN_000159b0(param_1);\n      FUN_00016a50(param_1);\n      uVar3 = *(uint *)(param_1 + 0xb4);\n    }\n    if ((uVar3 & 0xfffffffd) == 0xc) {\n      FUN_000159b0(param_1);\n      FUN_00016a50(param_1);\n    }\n  }\nLAB_00019287:\n  iVar1 = *(int *)(param_1 + 0x18);\n  if (((*(char *)(iVar1 + 0xe4) == '\0') && ((*(byte *)(iVar1 + 0xf8) & 4) == 0)) &&\n     ((*(int *)(param_1 + 0xb8) == 2 ||\n      ((*(char *)(param_1 + 0xf0) != '\0' && (*(int *)(param_1 + 0xb8) == 0)))))) {\n    *(undefined1 *)(iVar1 + 0xe4) = 1;\n    return;\n  }\n  return;\n}\n\n" comment (function_definition "void __regparm3 FUN_000191c0(int param_1,char param_2,char param_3,char param_4)\n\n{\n  int iVar1;\n  int iVar2;\n  uint uVar3;\n  \n  iVar1 = *(int *)(param_1 + 0xb4);\n  if (*(char *)(param_1 + 0xf0) == '\0') {\n    if (param_4 != '\0') goto LAB_000192c0;\n    iVar2 = *(int *)(param_1 + 0xb8);\n    if (iVar2 != 0) goto LAB_0001926e;\n    if (param_2 != '\0') goto LAB_000191f8;\nLAB_0001927b:\n    FUN_00016a50(param_1);\n    goto LAB_00019287;\n  }\n  if (param_4 != '\0') {\nLAB_000192c0:\n    FUN_00015170(param_1,1);\n    FUN_00016a50(param_1);\n    return;\n  }\n  iVar2 = *(int *)(param_1 + 0xb8);\n  if (iVar2 == 0) {\nLAB_000191f8:\n    FUN_00015810(param_1);\n    FUN_00016a50(param_1);\n    if ((*(int *)(param_1 + 0xb8) == 1) && (param_3 != '\0')) goto LAB_00019300;\n  }\n  else {\nLAB_0001926e:\n    if ((iVar2 != 1) || (param_3 == '\0')) goto LAB_0001927b;\nLAB_00019300:\n    FUN_000159b0(param_1);\n    FUN_00016a50(param_1);\n  }\n  if ((iVar1 == 0) && (*(char *)(param_1 + 0xa8) != '\0')) {\n    uVar3 = *(uint *)(param_1 + 0xb4);\n    if (uVar3 == 10) {\n      FUN_000159b0(param_1);\n      FUN_00016a50(param_1);\n      uVar3 = *(uint *)(param_1 + 0xb4);\n    }\n    if ((uVar3 & 0xfffffffd) == 0xc) {\n      FUN_000159b0(param_1);\n      FUN_00016a50(param_1);\n    }\n  }\nLAB_00019287:\n  iVar1 = *(int *)(param_1 + 0x18);\n  if (((*(char *)(iVar1 + 0xe4) == '\0') && ((*(byte *)(iVar1 + 0xf8) & 4) == 0)) &&\n     ((*(int *)(param_1 + 0xb8) == 2 ||\n      ((*(char *)(param_1 + 0xf0) != '\0' && (*(int *)(param_1 + 0xb8) == 0)))))) {\n    *(undefined1 *)(iVar1 + 0xe4) = 1;\n    return;\n  }\n  return;\n}" primitive_type (ERROR "__regparm3" identifier) (function_declarator "FUN_000191c0(int param_1,char param_2,char param_3,char param_4)" identifier (parameter_list "(int param_1,char param_2,char param_3,char param_4)" ( (parameter_declaration "int param_1" primitive_type identifier) , (parameter_declaration "char param_2" primitive_type identifier) , (parameter_declaration "char param_3" primitive_type identifier) , (parameter_declaration "char param_4" primitive_type identifier) ))) (compound_statement "{\n  int iVar1;\n  int iVar2;\n  uint uVar3;\n  \n  iVar1 = *(int *)(param_1 + 0xb4);\n  if (*(char *)(param_1 + 0xf0) == '\0') {\n    if (param_4 != '\0') goto LAB_000192c0;\n    iVar2 = *(int *)(param_1 + 0xb8);\n    if (iVar2 != 0) goto LAB_0001926e;\n    if (param_2 != '\0') goto LAB_000191f8;\nLAB_0001927b:\n    FUN_00016a50(param_1);\n    goto LAB_00019287;\n  }\n  if (param_4 != '\0') {\nLAB_000192c0:\n    FUN_00015170(param_1,1);\n    FUN_00016a50(param_1);\n    return;\n  }\n  iVar2 = *(int *)(param_1 + 0xb8);\n  if (iVar2 == 0) {\nLAB_000191f8:\n    FUN_00015810(param_1);\n    FUN_00016a50(param_1);\n    if ((*(int *)(param_1 + 0xb8) == 1) && (param_3 != '\0')) goto LAB_00019300;\n  }\n  else {\nLAB_0001926e:\n    if ((iVar2 != 1) || (param_3 == '\0')) goto LAB_0001927b;\nLAB_00019300:\n    FUN_000159b0(param_1);\n    FUN_00016a50(param_1);\n  }\n  if ((iVar1 == 0) && (*(char *)(param_1 + 0xa8) != '\0')) {\n    uVar3 = *(uint *)(param_1 + 0xb4);\n    if (uVar3 == 10) {\n      FUN_000159b0(param_1);\n      FUN_00016a50(param_1);\n      uVar3 = *(uint *)(param_1 + 0xb4);\n    }\n    if ((uVar3 & 0xfffffffd) == 0xc) {\n      FUN_000159b0(param_1);\n      FUN_00016a50(param_1);\n    }\n  }\nLAB_00019287:\n  iVar1 = *(int *)(param_1 + 0x18);\n  if (((*(char *)(iVar1 + 0xe4) == '\0') && ((*(byte *)(iVar1 + 0xf8) & 4) == 0)) &&\n     ((*(int *)(param_1 + 0xb8) == 2 ||\n      ((*(char *)(param_1 + 0xf0) != '\0' && (*(int *)(param_1 + 0xb8) == 0)))))) {\n    *(undefined1 *)(iVar1 + 0xe4) = 1;\n    return;\n  }\n  return;\n}" { (declaration "int iVar1;" primitive_type identifier ;) (declaration "int iVar2;" primitive_type identifier ;) (declaration "uint uVar3;" type_identifier identifier ;) (expression_statement "iVar1 = *(int *)(param_1 + 0xb4);" (assignment_expression "iVar1 = *(int *)(param_1 + 0xb4)" identifier = (pointer_expression "*(int *)(param_1 + 0xb4)" * (cast_expression "(int *)(param_1 + 0xb4)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0xb4)" ( (binary_expression "param_1 + 0xb4" identifier + number_literal) ))))) ;) (if_statement "if (*(char *)(param_1 + 0xf0) == '\0') {\n    if (param_4 != '\0') goto LAB_000192c0;\n    iVar2 = *(int *)(param_1 + 0xb8);\n    if (iVar2 != 0) goto LAB_0001926e;\n    if (param_2 != '\0') goto LAB_000191f8;\nLAB_0001927b:\n    FUN_00016a50(param_1);\n    goto LAB_00019287;\n  }" if (parenthesized_expression "(*(char *)(param_1 + 0xf0) == '\0')" ( (binary_expression "*(char *)(param_1 + 0xf0) == '\0'" (pointer_expression "*(char *)(param_1 + 0xf0)" * (cast_expression "(char *)(param_1 + 0xf0)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0xf0)" ( (binary_expression "param_1 + 0xf0" identifier + number_literal) )))) == (char_literal "'\0'" ' escape_sequence ')) )) (compound_statement "{\n    if (param_4 != '\0') goto LAB_000192c0;\n    iVar2 = *(int *)(param_1 + 0xb8);\n    if (iVar2 != 0) goto LAB_0001926e;\n    if (param_2 != '\0') goto LAB_000191f8;\nLAB_0001927b:\n    FUN_00016a50(param_1);\n    goto LAB_00019287;\n  }" { (if_statement "if (param_4 != '\0') goto LAB_000192c0;" if (parenthesized_expression "(param_4 != '\0')" ( (binary_expression "param_4 != '\0'" identifier != (char_literal "'\0'" ' escape_sequence ')) )) (goto_statement "goto LAB_000192c0;" goto statement_identifier ;)) (expression_statement "iVar2 = *(int *)(param_1 + 0xb8);" (assignment_expression "iVar2 = *(int *)(param_1 + 0xb8)" identifier = (pointer_expression "*(int *)(param_1 + 0xb8)" * (cast_expression "(int *)(param_1 + 0xb8)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0xb8)" ( (binary_expression "param_1 + 0xb8" identifier + number_literal) ))))) ;) (if_statement "if (iVar2 != 0) goto LAB_0001926e;" if (parenthesized_expression "(iVar2 != 0)" ( (binary_expression "iVar2 != 0" identifier != number_literal) )) (goto_statement "goto LAB_0001926e;" goto statement_identifier ;)) (if_statement "if (param_2 != '\0') goto LAB_000191f8;" if (parenthesized_expression "(param_2 != '\0')" ( (binary_expression "param_2 != '\0'" identifier != (char_literal "'\0'" ' escape_sequence ')) )) (goto_statement "goto LAB_000191f8;" goto statement_identifier ;)) (labeled_statement "LAB_0001927b:\n    FUN_00016a50(param_1);" statement_identifier : (expression_statement "FUN_00016a50(param_1);" (call_expression "FUN_00016a50(param_1)" identifier (argument_list "(param_1)" ( identifier ))) ;)) (goto_statement "goto LAB_00019287;" goto statement_identifier ;) })) (if_statement "if (param_4 != '\0') {\nLAB_000192c0:\n    FUN_00015170(param_1,1);\n    FUN_00016a50(param_1);\n    return;\n  }" if (parenthesized_expression "(param_4 != '\0')" ( (binary_expression "param_4 != '\0'" identifier != (char_literal "'\0'" ' escape_sequence ')) )) (compound_statement "{\nLAB_000192c0:\n    FUN_00015170(param_1,1);\n    FUN_00016a50(param_1);\n    return;\n  }" { (labeled_statement "LAB_000192c0:\n    FUN_00015170(param_1,1);" statement_identifier : (expression_statement "FUN_00015170(param_1,1);" (call_expression "FUN_00015170(param_1,1)" identifier (argument_list "(param_1,1)" ( identifier , number_literal ))) ;)) (expression_statement "FUN_00016a50(param_1);" (call_expression "FUN_00016a50(param_1)" identifier (argument_list "(param_1)" ( identifier ))) ;) (return_statement "return;" return ;) })) (expression_statement "iVar2 = *(int *)(param_1 + 0xb8);" (assignment_expression "iVar2 = *(int *)(param_1 + 0xb8)" identifier = (pointer_expression "*(int *)(param_1 + 0xb8)" * (cast_expression "(int *)(param_1 + 0xb8)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0xb8)" ( (binary_expression "param_1 + 0xb8" identifier + number_literal) ))))) ;) (if_statement "if (iVar2 == 0) {\nLAB_000191f8:\n    FUN_00015810(param_1);\n    FUN_00016a50(param_1);\n    if ((*(int *)(param_1 + 0xb8) == 1) && (param_3 != '\0')) goto LAB_00019300;\n  }\n  else {\nLAB_0001926e:\n    if ((iVar2 != 1) || (param_3 == '\0')) goto LAB_0001927b;\nLAB_00019300:\n    FUN_000159b0(param_1);\n    FUN_00016a50(param_1);\n  }" if (parenthesized_expression "(iVar2 == 0)" ( (binary_expression "iVar2 == 0" identifier == number_literal) )) (compound_statement "{\nLAB_000191f8:\n    FUN_00015810(param_1);\n    FUN_00016a50(param_1);\n    if ((*(int *)(param_1 + 0xb8) == 1) && (param_3 != '\0')) goto LAB_00019300;\n  }" { (labeled_statement "LAB_000191f8:\n    FUN_00015810(param_1);" statement_identifier : (expression_statement "FUN_00015810(param_1);" (call_expression "FUN_00015810(param_1)" identifier (argument_list "(param_1)" ( identifier ))) ;)) (expression_statement "FUN_00016a50(param_1);" (call_expression "FUN_00016a50(param_1)" identifier (argument_list "(param_1)" ( identifier ))) ;) (if_statement "if ((*(int *)(param_1 + 0xb8) == 1) && (param_3 != '\0')) goto LAB_00019300;" if (parenthesized_expression "((*(int *)(param_1 + 0xb8) == 1) && (param_3 != '\0'))" ( (binary_expression "(*(int *)(param_1 + 0xb8) == 1) && (param_3 != '\0')" (parenthesized_expression "(*(int *)(param_1 + 0xb8) == 1)" ( (binary_expression "*(int *)(param_1 + 0xb8) == 1" (pointer_expression "*(int *)(param_1 + 0xb8)" * (cast_expression "(int *)(param_1 + 0xb8)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0xb8)" ( (binary_expression "param_1 + 0xb8" identifier + number_literal) )))) == number_literal) )) && (parenthesized_expression "(param_3 != '\0')" ( (binary_expression "param_3 != '\0'" identifier != (char_literal "'\0'" ' escape_sequence ')) ))) )) (goto_statement "goto LAB_00019300;" goto statement_identifier ;)) }) (else_clause "else {\nLAB_0001926e:\n    if ((iVar2 != 1) || (param_3 == '\0')) goto LAB_0001927b;\nLAB_00019300:\n    FUN_000159b0(param_1);\n    FUN_00016a50(param_1);\n  }" else (compound_statement "{\nLAB_0001926e:\n    if ((iVar2 != 1) || (param_3 == '\0')) goto LAB_0001927b;\nLAB_00019300:\n    FUN_000159b0(param_1);\n    FUN_00016a50(param_1);\n  }" { (labeled_statement "LAB_0001926e:\n    if ((iVar2 != 1) || (param_3 == '\0')) goto LAB_0001927b;" statement_identifier : (if_statement "if ((iVar2 != 1) || (param_3 == '\0')) goto LAB_0001927b;" if (parenthesized_expression "((iVar2 != 1) || (param_3 == '\0'))" ( (binary_expression "(iVar2 != 1) || (param_3 == '\0')" (parenthesized_expression "(iVar2 != 1)" ( (binary_expression "iVar2 != 1" identifier != number_literal) )) || (parenthesized_expression "(param_3 == '\0')" ( (binary_expression "param_3 == '\0'" identifier == (char_literal "'\0'" ' escape_sequence ')) ))) )) (goto_statement "goto LAB_0001927b;" goto statement_identifier ;))) (labeled_statement "LAB_00019300:\n    FUN_000159b0(param_1);" statement_identifier : (expression_statement "FUN_000159b0(param_1);" (call_expression "FUN_000159b0(param_1)" identifier (argument_list "(param_1)" ( identifier ))) ;)) (expression_statement "FUN_00016a50(param_1);" (call_expression "FUN_00016a50(param_1)" identifier (argument_list "(param_1)" ( identifier ))) ;) }))) (if_statement "if ((iVar1 == 0) && (*(char *)(param_1 + 0xa8) != '\0')) {\n    uVar3 = *(uint *)(param_1 + 0xb4);\n    if (uVar3 == 10) {\n      FUN_000159b0(param_1);\n      FUN_00016a50(param_1);\n      uVar3 = *(uint *)(param_1 + 0xb4);\n    }\n    if ((uVar3 & 0xfffffffd) == 0xc) {\n      FUN_000159b0(param_1);\n      FUN_00016a50(param_1);\n    }\n  }" if (parenthesized_expression "((iVar1 == 0) && (*(char *)(param_1 + 0xa8) != '\0'))" ( (binary_expression "(iVar1 == 0) && (*(char *)(param_1 + 0xa8) != '\0')" (parenthesized_expression "(iVar1 == 0)" ( (binary_expression "iVar1 == 0" identifier == number_literal) )) && (parenthesized_expression "(*(char *)(param_1 + 0xa8) != '\0')" ( (binary_expression "*(char *)(param_1 + 0xa8) != '\0'" (pointer_expression "*(char *)(param_1 + 0xa8)" * (cast_expression "(char *)(param_1 + 0xa8)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0xa8)" ( (binary_expression "param_1 + 0xa8" identifier + number_literal) )))) != (char_literal "'\0'" ' escape_sequence ')) ))) )) (compound_statement "{\n    uVar3 = *(uint *)(param_1 + 0xb4);\n    if (uVar3 == 10) {\n      FUN_000159b0(param_1);\n      FUN_00016a50(param_1);\n      uVar3 = *(uint *)(param_1 + 0xb4);\n    }\n    if ((uVar3 & 0xfffffffd) == 0xc) {\n      FUN_000159b0(param_1);\n      FUN_00016a50(param_1);\n    }\n  }" { (expression_statement "uVar3 = *(uint *)(param_1 + 0xb4);" (assignment_expression "uVar3 = *(uint *)(param_1 + 0xb4)" identifier = (pointer_expression "*(uint *)(param_1 + 0xb4)" * (cast_expression "(uint *)(param_1 + 0xb4)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0xb4)" ( (binary_expression "param_1 + 0xb4" identifier + number_literal) ))))) ;) (if_statement "if (uVar3 == 10) {\n      FUN_000159b0(param_1);\n      FUN_00016a50(param_1);\n      uVar3 = *(uint *)(param_1 + 0xb4);\n    }" if (parenthesized_expression "(uVar3 == 10)" ( (binary_expression "uVar3 == 10" identifier == number_literal) )) (compound_statement "{\n      FUN_000159b0(param_1);\n      FUN_00016a50(param_1);\n      uVar3 = *(uint *)(param_1 + 0xb4);\n    }" { (expression_statement "FUN_000159b0(param_1);" (call_expression "FUN_000159b0(param_1)" identifier (argument_list "(param_1)" ( identifier ))) ;) (expression_statement "FUN_00016a50(param_1);" (call_expression "FUN_00016a50(param_1)" identifier (argument_list "(param_1)" ( identifier ))) ;) (expression_statement "uVar3 = *(uint *)(param_1 + 0xb4);" (assignment_expression "uVar3 = *(uint *)(param_1 + 0xb4)" identifier = (pointer_expression "*(uint *)(param_1 + 0xb4)" * (cast_expression "(uint *)(param_1 + 0xb4)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0xb4)" ( (binary_expression "param_1 + 0xb4" identifier + number_literal) ))))) ;) })) (if_statement "if ((uVar3 & 0xfffffffd) == 0xc) {\n      FUN_000159b0(param_1);\n      FUN_00016a50(param_1);\n    }" if (parenthesized_expression "((uVar3 & 0xfffffffd) == 0xc)" ( (binary_expression "(uVar3 & 0xfffffffd) == 0xc" (parenthesized_expression "(uVar3 & 0xfffffffd)" ( (binary_expression "uVar3 & 0xfffffffd" identifier & number_literal) )) == number_literal) )) (compound_statement "{\n      FUN_000159b0(param_1);\n      FUN_00016a50(param_1);\n    }" { (expression_statement "FUN_000159b0(param_1);" (call_expression "FUN_000159b0(param_1)" identifier (argument_list "(param_1)" ( identifier ))) ;) (expression_statement "FUN_00016a50(param_1);" (call_expression "FUN_00016a50(param_1)" identifier (argument_list "(param_1)" ( identifier ))) ;) })) })) (labeled_statement "LAB_00019287:\n  iVar1 = *(int *)(param_1 + 0x18);" statement_identifier : (expression_statement "iVar1 = *(int *)(param_1 + 0x18);" (assignment_expression "iVar1 = *(int *)(param_1 + 0x18)" identifier = (pointer_expression "*(int *)(param_1 + 0x18)" * (cast_expression "(int *)(param_1 + 0x18)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x18)" ( (binary_expression "param_1 + 0x18" identifier + number_literal) ))))) ;)) (if_statement "if (((*(char *)(iVar1 + 0xe4) == '\0') && ((*(byte *)(iVar1 + 0xf8) & 4) == 0)) &&\n     ((*(int *)(param_1 + 0xb8) == 2 ||\n      ((*(char *)(param_1 + 0xf0) != '\0' && (*(int *)(param_1 + 0xb8) == 0)))))) {\n    *(undefined1 *)(iVar1 + 0xe4) = 1;\n    return;\n  }" if (parenthesized_expression "(((*(char *)(iVar1 + 0xe4) == '\0') && ((*(byte *)(iVar1 + 0xf8) & 4) == 0)) &&\n     ((*(int *)(param_1 + 0xb8) == 2 ||\n      ((*(char *)(param_1 + 0xf0) != '\0' && (*(int *)(param_1 + 0xb8) == 0))))))" ( (binary_expression "((*(char *)(iVar1 + 0xe4) == '\0') && ((*(byte *)(iVar1 + 0xf8) & 4) == 0)) &&\n     ((*(int *)(param_1 + 0xb8) == 2 ||\n      ((*(char *)(param_1 + 0xf0) != '\0' && (*(int *)(param_1 + 0xb8) == 0)))))" (parenthesized_expression "((*(char *)(iVar1 + 0xe4) == '\0') && ((*(byte *)(iVar1 + 0xf8) & 4) == 0))" ( (binary_expression "(*(char *)(iVar1 + 0xe4) == '\0') && ((*(byte *)(iVar1 + 0xf8) & 4) == 0)" (parenthesized_expression "(*(char *)(iVar1 + 0xe4) == '\0')" ( (binary_expression "*(char *)(iVar1 + 0xe4) == '\0'" (pointer_expression "*(char *)(iVar1 + 0xe4)" * (cast_expression "(char *)(iVar1 + 0xe4)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar1 + 0xe4)" ( (binary_expression "iVar1 + 0xe4" identifier + number_literal) )))) == (char_literal "'\0'" ' escape_sequence ')) )) && (parenthesized_expression "((*(byte *)(iVar1 + 0xf8) & 4) == 0)" ( (binary_expression "(*(byte *)(iVar1 + 0xf8) & 4) == 0" (parenthesized_expression "(*(byte *)(iVar1 + 0xf8) & 4)" ( (binary_expression "*(byte *)(iVar1 + 0xf8) & 4" (pointer_expression "*(byte *)(iVar1 + 0xf8)" * (cast_expression "(byte *)(iVar1 + 0xf8)" ( (type_descriptor "byte *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar1 + 0xf8)" ( (binary_expression "iVar1 + 0xf8" identifier + number_literal) )))) & number_literal) )) == number_literal) ))) )) && (parenthesized_expression "((*(int *)(param_1 + 0xb8) == 2 ||\n      ((*(char *)(param_1 + 0xf0) != '\0' && (*(int *)(param_1 + 0xb8) == 0)))))" ( (parenthesized_expression "(*(int *)(param_1 + 0xb8) == 2 ||\n      ((*(char *)(param_1 + 0xf0) != '\0' && (*(int *)(param_1 + 0xb8) == 0))))" ( (binary_expression "*(int *)(param_1 + 0xb8) == 2 ||\n      ((*(char *)(param_1 + 0xf0) != '\0' && (*(int *)(param_1 + 0xb8) == 0)))" (binary_expression "*(int *)(param_1 + 0xb8) == 2" (pointer_expression "*(int *)(param_1 + 0xb8)" * (cast_expression "(int *)(param_1 + 0xb8)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0xb8)" ( (binary_expression "param_1 + 0xb8" identifier + number_literal) )))) == number_literal) || (parenthesized_expression "((*(char *)(param_1 + 0xf0) != '\0' && (*(int *)(param_1 + 0xb8) == 0)))" ( (parenthesized_expression "(*(char *)(param_1 + 0xf0) != '\0' && (*(int *)(param_1 + 0xb8) == 0))" ( (binary_expression "*(char *)(param_1 + 0xf0) != '\0' && (*(int *)(param_1 + 0xb8) == 0)" (binary_expression "*(char *)(param_1 + 0xf0) != '\0'" (pointer_expression "*(char *)(param_1 + 0xf0)" * (cast_expression "(char *)(param_1 + 0xf0)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0xf0)" ( (binary_expression "param_1 + 0xf0" identifier + number_literal) )))) != (char_literal "'\0'" ' escape_sequence ')) && (parenthesized_expression "(*(int *)(param_1 + 0xb8) == 0)" ( (binary_expression "*(int *)(param_1 + 0xb8) == 0" (pointer_expression "*(int *)(param_1 + 0xb8)" * (cast_expression "(int *)(param_1 + 0xb8)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0xb8)" ( (binary_expression "param_1 + 0xb8" identifier + number_literal) )))) == number_literal) ))) )) ))) )) ))) )) (compound_statement "{\n    *(undefined1 *)(iVar1 + 0xe4) = 1;\n    return;\n  }" { (expression_statement "*(undefined1 *)(iVar1 + 0xe4) = 1;" (assignment_expression "*(undefined1 *)(iVar1 + 0xe4) = 1" (pointer_expression "*(undefined1 *)(iVar1 + 0xe4)" * (cast_expression "(undefined1 *)(iVar1 + 0xe4)" ( (type_descriptor "undefined1 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar1 + 0xe4)" ( (binary_expression "iVar1 + 0xe4" identifier + number_literal) )))) = number_literal) ;) (return_statement "return;" return ;) })) (return_statement "return;" return ;) })))
(translation_unit "/* WARNING: Function: __x86.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */\n/* WARNING: Enum "MHD_FLAG": Some values do not have unique names */\n/* WARNING: Enum "gnutls_pk_algorithm_t": Some values do not have unique names */\n/* WARNING: Enum "gnutls_certificate_type_t": Some values do not have unique names */\n\nint __regparm3\ncall_handlers(MHD_Connection *con,_Bool read_ready,_Bool write_ready,_Bool force_close)\n\n{\n  MHD_Daemon *pMVar1;\n  int iVar2;\n  MHD_ConnectionEventLoopInfo MVar3;\n  MHD_CONNECTION_STATE MVar4;\n  \n  MVar4 = con->state;\n  if (con->tls_read_ready == false) {\n    if (force_close) goto LAB_000192c0;\n    MVar3 = con->event_loop_info;\n    if (MVar3 != MHD_EVENT_LOOP_INFO_READ) goto LAB_0001926e;\n    if (read_ready) goto LAB_000191f8;\nLAB_0001927b:\n    iVar2 = MHD_connection_handle_idle(con);\n    goto LAB_00019287;\n  }\n  if (force_close) {\nLAB_000192c0:\n    MHD_connection_close_(con,MHD_REQUEST_TERMINATED_WITH_ERROR);\n    iVar2 = MHD_connection_handle_idle(con);\n    return iVar2;\n  }\n  MVar3 = con->event_loop_info;\n  if (MVar3 == MHD_EVENT_LOOP_INFO_READ) {\nLAB_000191f8:\n    MHD_connection_handle_read(con);\n    iVar2 = MHD_connection_handle_idle(con);\n    if ((con->event_loop_info == MHD_EVENT_LOOP_INFO_WRITE) && (write_ready)) goto LAB_00019300;\n  }\n  else {\nLAB_0001926e:\n    if ((MVar3 != MHD_EVENT_LOOP_INFO_WRITE) || (!write_ready)) goto LAB_0001927b;\nLAB_00019300:\n    MHD_connection_handle_write(con);\n    iVar2 = MHD_connection_handle_idle(con);\n  }\n  if ((MVar4 == MHD_CONNECTION_INIT) && (con->sk_nonblck != false)) {\n    MVar4 = con->state;\n    if (MVar4 == MHD_CONNECTION_HEADERS_SENDING) {\n      MHD_connection_handle_write(con);\n      iVar2 = MHD_connection_handle_idle(con);\n      MVar4 = con->state;\n    }\n    if ((MVar4 & ~MHD_CONNECTION_HEADER_PART_RECEIVED) == MHD_CONNECTION_NORMAL_BODY_READY) {\n      MHD_connection_handle_write(con);\n      iVar2 = MHD_connection_handle_idle(con);\n    }\n  }\nLAB_00019287:\n  pMVar1 = con->daemon;\n  if (((pMVar1->data_already_pending == false) &&\n      ((pMVar1->options & MHD_USE_THREAD_PER_CONNECTION) == MHD_NO_FLAG)) &&\n     ((con->event_loop_info == MHD_EVENT_LOOP_INFO_BLOCK ||\n      ((con->tls_read_ready != false && (con->event_loop_info == MHD_EVENT_LOOP_INFO_READ)))))) {\n    pMVar1->data_already_pending = true;\n    return iVar2;\n  }\n  return iVar2;\n}\n\n" comment comment comment comment (function_definition "int __regparm3\ncall_handlers(MHD_Connection *con,_Bool read_ready,_Bool write_ready,_Bool force_close)\n\n{\n  MHD_Daemon *pMVar1;\n  int iVar2;\n  MHD_ConnectionEventLoopInfo MVar3;\n  MHD_CONNECTION_STATE MVar4;\n  \n  MVar4 = con->state;\n  if (con->tls_read_ready == false) {\n    if (force_close) goto LAB_000192c0;\n    MVar3 = con->event_loop_info;\n    if (MVar3 != MHD_EVENT_LOOP_INFO_READ) goto LAB_0001926e;\n    if (read_ready) goto LAB_000191f8;\nLAB_0001927b:\n    iVar2 = MHD_connection_handle_idle(con);\n    goto LAB_00019287;\n  }\n  if (force_close) {\nLAB_000192c0:\n    MHD_connection_close_(con,MHD_REQUEST_TERMINATED_WITH_ERROR);\n    iVar2 = MHD_connection_handle_idle(con);\n    return iVar2;\n  }\n  MVar3 = con->event_loop_info;\n  if (MVar3 == MHD_EVENT_LOOP_INFO_READ) {\nLAB_000191f8:\n    MHD_connection_handle_read(con);\n    iVar2 = MHD_connection_handle_idle(con);\n    if ((con->event_loop_info == MHD_EVENT_LOOP_INFO_WRITE) && (write_ready)) goto LAB_00019300;\n  }\n  else {\nLAB_0001926e:\n    if ((MVar3 != MHD_EVENT_LOOP_INFO_WRITE) || (!write_ready)) goto LAB_0001927b;\nLAB_00019300:\n    MHD_connection_handle_write(con);\n    iVar2 = MHD_connection_handle_idle(con);\n  }\n  if ((MVar4 == MHD_CONNECTION_INIT) && (con->sk_nonblck != false)) {\n    MVar4 = con->state;\n    if (MVar4 == MHD_CONNECTION_HEADERS_SENDING) {\n      MHD_connection_handle_write(con);\n      iVar2 = MHD_connection_handle_idle(con);\n      MVar4 = con->state;\n    }\n    if ((MVar4 & ~MHD_CONNECTION_HEADER_PART_RECEIVED) == MHD_CONNECTION_NORMAL_BODY_READY) {\n      MHD_connection_handle_write(con);\n      iVar2 = MHD_connection_handle_idle(con);\n    }\n  }\nLAB_00019287:\n  pMVar1 = con->daemon;\n  if (((pMVar1->data_already_pending == false) &&\n      ((pMVar1->options & MHD_USE_THREAD_PER_CONNECTION) == MHD_NO_FLAG)) &&\n     ((con->event_loop_info == MHD_EVENT_LOOP_INFO_BLOCK ||\n      ((con->tls_read_ready != false && (con->event_loop_info == MHD_EVENT_LOOP_INFO_READ)))))) {\n    pMVar1->data_already_pending = true;\n    return iVar2;\n  }\n  return iVar2;\n}" primitive_type (ERROR "__regparm3" identifier) (function_declarator "call_handlers(MHD_Connection *con,_Bool read_ready,_Bool write_ready,_Bool force_close)" identifier (parameter_list "(MHD_Connection *con,_Bool read_ready,_Bool write_ready,_Bool force_close)" ( (parameter_declaration "MHD_Connection *con" type_identifier (pointer_declarator "*con" * identifier)) , (parameter_declaration "_Bool read_ready" type_identifier identifier) , (parameter_declaration "_Bool write_ready" type_identifier identifier) , (parameter_declaration "_Bool force_close" type_identifier identifier) ))) (compound_statement "{\n  MHD_Daemon *pMVar1;\n  int iVar2;\n  MHD_ConnectionEventLoopInfo MVar3;\n  MHD_CONNECTION_STATE MVar4;\n  \n  MVar4 = con->state;\n  if (con->tls_read_ready == false) {\n    if (force_close) goto LAB_000192c0;\n    MVar3 = con->event_loop_info;\n    if (MVar3 != MHD_EVENT_LOOP_INFO_READ) goto LAB_0001926e;\n    if (read_ready) goto LAB_000191f8;\nLAB_0001927b:\n    iVar2 = MHD_connection_handle_idle(con);\n    goto LAB_00019287;\n  }\n  if (force_close) {\nLAB_000192c0:\n    MHD_connection_close_(con,MHD_REQUEST_TERMINATED_WITH_ERROR);\n    iVar2 = MHD_connection_handle_idle(con);\n    return iVar2;\n  }\n  MVar3 = con->event_loop_info;\n  if (MVar3 == MHD_EVENT_LOOP_INFO_READ) {\nLAB_000191f8:\n    MHD_connection_handle_read(con);\n    iVar2 = MHD_connection_handle_idle(con);\n    if ((con->event_loop_info == MHD_EVENT_LOOP_INFO_WRITE) && (write_ready)) goto LAB_00019300;\n  }\n  else {\nLAB_0001926e:\n    if ((MVar3 != MHD_EVENT_LOOP_INFO_WRITE) || (!write_ready)) goto LAB_0001927b;\nLAB_00019300:\n    MHD_connection_handle_write(con);\n    iVar2 = MHD_connection_handle_idle(con);\n  }\n  if ((MVar4 == MHD_CONNECTION_INIT) && (con->sk_nonblck != false)) {\n    MVar4 = con->state;\n    if (MVar4 == MHD_CONNECTION_HEADERS_SENDING) {\n      MHD_connection_handle_write(con);\n      iVar2 = MHD_connection_handle_idle(con);\n      MVar4 = con->state;\n    }\n    if ((MVar4 & ~MHD_CONNECTION_HEADER_PART_RECEIVED) == MHD_CONNECTION_NORMAL_BODY_READY) {\n      MHD_connection_handle_write(con);\n      iVar2 = MHD_connection_handle_idle(con);\n    }\n  }\nLAB_00019287:\n  pMVar1 = con->daemon;\n  if (((pMVar1->data_already_pending == false) &&\n      ((pMVar1->options & MHD_USE_THREAD_PER_CONNECTION) == MHD_NO_FLAG)) &&\n     ((con->event_loop_info == MHD_EVENT_LOOP_INFO_BLOCK ||\n      ((con->tls_read_ready != false && (con->event_loop_info == MHD_EVENT_LOOP_INFO_READ)))))) {\n    pMVar1->data_already_pending = true;\n    return iVar2;\n  }\n  return iVar2;\n}" { (declaration "MHD_Daemon *pMVar1;" type_identifier (pointer_declarator "*pMVar1" * identifier) ;) (declaration "int iVar2;" primitive_type identifier ;) (declaration "MHD_ConnectionEventLoopInfo MVar3;" type_identifier identifier ;) (declaration "MHD_CONNECTION_STATE MVar4;" type_identifier identifier ;) (expression_statement "MVar4 = con->state;" (assignment_expression "MVar4 = con->state" identifier = (field_expression "con->state" identifier -> field_identifier)) ;) (if_statement "if (con->tls_read_ready == false) {\n    if (force_close) goto LAB_000192c0;\n    MVar3 = con->event_loop_info;\n    if (MVar3 != MHD_EVENT_LOOP_INFO_READ) goto LAB_0001926e;\n    if (read_ready) goto LAB_000191f8;\nLAB_0001927b:\n    iVar2 = MHD_connection_handle_idle(con);\n    goto LAB_00019287;\n  }" if (parenthesized_expression "(con->tls_read_ready == false)" ( (binary_expression "con->tls_read_ready == false" (field_expression "con->tls_read_ready" identifier -> field_identifier) == false) )) (compound_statement "{\n    if (force_close) goto LAB_000192c0;\n    MVar3 = con->event_loop_info;\n    if (MVar3 != MHD_EVENT_LOOP_INFO_READ) goto LAB_0001926e;\n    if (read_ready) goto LAB_000191f8;\nLAB_0001927b:\n    iVar2 = MHD_connection_handle_idle(con);\n    goto LAB_00019287;\n  }" { (if_statement "if (force_close) goto LAB_000192c0;" if (parenthesized_expression "(force_close)" ( identifier )) (goto_statement "goto LAB_000192c0;" goto statement_identifier ;)) (expression_statement "MVar3 = con->event_loop_info;" (assignment_expression "MVar3 = con->event_loop_info" identifier = (field_expression "con->event_loop_info" identifier -> field_identifier)) ;) (if_statement "if (MVar3 != MHD_EVENT_LOOP_INFO_READ) goto LAB_0001926e;" if (parenthesized_expression "(MVar3 != MHD_EVENT_LOOP_INFO_READ)" ( (binary_expression "MVar3 != MHD_EVENT_LOOP_INFO_READ" identifier != identifier) )) (goto_statement "goto LAB_0001926e;" goto statement_identifier ;)) (if_statement "if (read_ready) goto LAB_000191f8;" if (parenthesized_expression "(read_ready)" ( identifier )) (goto_statement "goto LAB_000191f8;" goto statement_identifier ;)) (labeled_statement "LAB_0001927b:\n    iVar2 = MHD_connection_handle_idle(con);" statement_identifier : (expression_statement "iVar2 = MHD_connection_handle_idle(con);" (assignment_expression "iVar2 = MHD_connection_handle_idle(con)" identifier = (call_expression "MHD_connection_handle_idle(con)" identifier (argument_list "(con)" ( identifier )))) ;)) (goto_statement "goto LAB_00019287;" goto statement_identifier ;) })) (if_statement "if (force_close) {\nLAB_000192c0:\n    MHD_connection_close_(con,MHD_REQUEST_TERMINATED_WITH_ERROR);\n    iVar2 = MHD_connection_handle_idle(con);\n    return iVar2;\n  }" if (parenthesized_expression "(force_close)" ( identifier )) (compound_statement "{\nLAB_000192c0:\n    MHD_connection_close_(con,MHD_REQUEST_TERMINATED_WITH_ERROR);\n    iVar2 = MHD_connection_handle_idle(con);\n    return iVar2;\n  }" { (labeled_statement "LAB_000192c0:\n    MHD_connection_close_(con,MHD_REQUEST_TERMINATED_WITH_ERROR);" statement_identifier : (expression_statement "MHD_connection_close_(con,MHD_REQUEST_TERMINATED_WITH_ERROR);" (call_expression "MHD_connection_close_(con,MHD_REQUEST_TERMINATED_WITH_ERROR)" identifier (argument_list "(con,MHD_REQUEST_TERMINATED_WITH_ERROR)" ( identifier , identifier ))) ;)) (expression_statement "iVar2 = MHD_connection_handle_idle(con);" (assignment_expression "iVar2 = MHD_connection_handle_idle(con)" identifier = (call_expression "MHD_connection_handle_idle(con)" identifier (argument_list "(con)" ( identifier )))) ;) (return_statement "return iVar2;" return identifier ;) })) (expression_statement "MVar3 = con->event_loop_info;" (assignment_expression "MVar3 = con->event_loop_info" identifier = (field_expression "con->event_loop_info" identifier -> field_identifier)) ;) (if_statement "if (MVar3 == MHD_EVENT_LOOP_INFO_READ) {\nLAB_000191f8:\n    MHD_connection_handle_read(con);\n    iVar2 = MHD_connection_handle_idle(con);\n    if ((con->event_loop_info == MHD_EVENT_LOOP_INFO_WRITE) && (write_ready)) goto LAB_00019300;\n  }\n  else {\nLAB_0001926e:\n    if ((MVar3 != MHD_EVENT_LOOP_INFO_WRITE) || (!write_ready)) goto LAB_0001927b;\nLAB_00019300:\n    MHD_connection_handle_write(con);\n    iVar2 = MHD_connection_handle_idle(con);\n  }" if (parenthesized_expression "(MVar3 == MHD_EVENT_LOOP_INFO_READ)" ( (binary_expression "MVar3 == MHD_EVENT_LOOP_INFO_READ" identifier == identifier) )) (compound_statement "{\nLAB_000191f8:\n    MHD_connection_handle_read(con);\n    iVar2 = MHD_connection_handle_idle(con);\n    if ((con->event_loop_info == MHD_EVENT_LOOP_INFO_WRITE) && (write_ready)) goto LAB_00019300;\n  }" { (labeled_statement "LAB_000191f8:\n    MHD_connection_handle_read(con);" statement_identifier : (expression_statement "MHD_connection_handle_read(con);" (call_expression "MHD_connection_handle_read(con)" identifier (argument_list "(con)" ( identifier ))) ;)) (expression_statement "iVar2 = MHD_connection_handle_idle(con);" (assignment_expression "iVar2 = MHD_connection_handle_idle(con)" identifier = (call_expression "MHD_connection_handle_idle(con)" identifier (argument_list "(con)" ( identifier )))) ;) (if_statement "if ((con->event_loop_info == MHD_EVENT_LOOP_INFO_WRITE) && (write_ready)) goto LAB_00019300;" if (parenthesized_expression "((con->event_loop_info == MHD_EVENT_LOOP_INFO_WRITE) && (write_ready))" ( (binary_expression "(con->event_loop_info == MHD_EVENT_LOOP_INFO_WRITE) && (write_ready)" (parenthesized_expression "(con->event_loop_info == MHD_EVENT_LOOP_INFO_WRITE)" ( (binary_expression "con->event_loop_info == MHD_EVENT_LOOP_INFO_WRITE" (field_expression "con->event_loop_info" identifier -> field_identifier) == identifier) )) && (parenthesized_expression "(write_ready)" ( identifier ))) )) (goto_statement "goto LAB_00019300;" goto statement_identifier ;)) }) (else_clause "else {\nLAB_0001926e:\n    if ((MVar3 != MHD_EVENT_LOOP_INFO_WRITE) || (!write_ready)) goto LAB_0001927b;\nLAB_00019300:\n    MHD_connection_handle_write(con);\n    iVar2 = MHD_connection_handle_idle(con);\n  }" else (compound_statement "{\nLAB_0001926e:\n    if ((MVar3 != MHD_EVENT_LOOP_INFO_WRITE) || (!write_ready)) goto LAB_0001927b;\nLAB_00019300:\n    MHD_connection_handle_write(con);\n    iVar2 = MHD_connection_handle_idle(con);\n  }" { (labeled_statement "LAB_0001926e:\n    if ((MVar3 != MHD_EVENT_LOOP_INFO_WRITE) || (!write_ready)) goto LAB_0001927b;" statement_identifier : (if_statement "if ((MVar3 != MHD_EVENT_LOOP_INFO_WRITE) || (!write_ready)) goto LAB_0001927b;" if (parenthesized_expression "((MVar3 != MHD_EVENT_LOOP_INFO_WRITE) || (!write_ready))" ( (binary_expression "(MVar3 != MHD_EVENT_LOOP_INFO_WRITE) || (!write_ready)" (parenthesized_expression "(MVar3 != MHD_EVENT_LOOP_INFO_WRITE)" ( (binary_expression "MVar3 != MHD_EVENT_LOOP_INFO_WRITE" identifier != identifier) )) || (parenthesized_expression "(!write_ready)" ( (unary_expression "!write_ready" ! identifier) ))) )) (goto_statement "goto LAB_0001927b;" goto statement_identifier ;))) (labeled_statement "LAB_00019300:\n    MHD_connection_handle_write(con);" statement_identifier : (expression_statement "MHD_connection_handle_write(con);" (call_expression "MHD_connection_handle_write(con)" identifier (argument_list "(con)" ( identifier ))) ;)) (expression_statement "iVar2 = MHD_connection_handle_idle(con);" (assignment_expression "iVar2 = MHD_connection_handle_idle(con)" identifier = (call_expression "MHD_connection_handle_idle(con)" identifier (argument_list "(con)" ( identifier )))) ;) }))) (if_statement "if ((MVar4 == MHD_CONNECTION_INIT) && (con->sk_nonblck != false)) {\n    MVar4 = con->state;\n    if (MVar4 == MHD_CONNECTION_HEADERS_SENDING) {\n      MHD_connection_handle_write(con);\n      iVar2 = MHD_connection_handle_idle(con);\n      MVar4 = con->state;\n    }\n    if ((MVar4 & ~MHD_CONNECTION_HEADER_PART_RECEIVED) == MHD_CONNECTION_NORMAL_BODY_READY) {\n      MHD_connection_handle_write(con);\n      iVar2 = MHD_connection_handle_idle(con);\n    }\n  }" if (parenthesized_expression "((MVar4 == MHD_CONNECTION_INIT) && (con->sk_nonblck != false))" ( (binary_expression "(MVar4 == MHD_CONNECTION_INIT) && (con->sk_nonblck != false)" (parenthesized_expression "(MVar4 == MHD_CONNECTION_INIT)" ( (binary_expression "MVar4 == MHD_CONNECTION_INIT" identifier == identifier) )) && (parenthesized_expression "(con->sk_nonblck != false)" ( (binary_expression "con->sk_nonblck != false" (field_expression "con->sk_nonblck" identifier -> field_identifier) != false) ))) )) (compound_statement "{\n    MVar4 = con->state;\n    if (MVar4 == MHD_CONNECTION_HEADERS_SENDING) {\n      MHD_connection_handle_write(con);\n      iVar2 = MHD_connection_handle_idle(con);\n      MVar4 = con->state;\n    }\n    if ((MVar4 & ~MHD_CONNECTION_HEADER_PART_RECEIVED) == MHD_CONNECTION_NORMAL_BODY_READY) {\n      MHD_connection_handle_write(con);\n      iVar2 = MHD_connection_handle_idle(con);\n    }\n  }" { (expression_statement "MVar4 = con->state;" (assignment_expression "MVar4 = con->state" identifier = (field_expression "con->state" identifier -> field_identifier)) ;) (if_statement "if (MVar4 == MHD_CONNECTION_HEADERS_SENDING) {\n      MHD_connection_handle_write(con);\n      iVar2 = MHD_connection_handle_idle(con);\n      MVar4 = con->state;\n    }" if (parenthesized_expression "(MVar4 == MHD_CONNECTION_HEADERS_SENDING)" ( (binary_expression "MVar4 == MHD_CONNECTION_HEADERS_SENDING" identifier == identifier) )) (compound_statement "{\n      MHD_connection_handle_write(con);\n      iVar2 = MHD_connection_handle_idle(con);\n      MVar4 = con->state;\n    }" { (expression_statement "MHD_connection_handle_write(con);" (call_expression "MHD_connection_handle_write(con)" identifier (argument_list "(con)" ( identifier ))) ;) (expression_statement "iVar2 = MHD_connection_handle_idle(con);" (assignment_expression "iVar2 = MHD_connection_handle_idle(con)" identifier = (call_expression "MHD_connection_handle_idle(con)" identifier (argument_list "(con)" ( identifier )))) ;) (expression_statement "MVar4 = con->state;" (assignment_expression "MVar4 = con->state" identifier = (field_expression "con->state" identifier -> field_identifier)) ;) })) (if_statement "if ((MVar4 & ~MHD_CONNECTION_HEADER_PART_RECEIVED) == MHD_CONNECTION_NORMAL_BODY_READY) {\n      MHD_connection_handle_write(con);\n      iVar2 = MHD_connection_handle_idle(con);\n    }" if (parenthesized_expression "((MVar4 & ~MHD_CONNECTION_HEADER_PART_RECEIVED) == MHD_CONNECTION_NORMAL_BODY_READY)" ( (binary_expression "(MVar4 & ~MHD_CONNECTION_HEADER_PART_RECEIVED) == MHD_CONNECTION_NORMAL_BODY_READY" (parenthesized_expression "(MVar4 & ~MHD_CONNECTION_HEADER_PART_RECEIVED)" ( (binary_expression "MVar4 & ~MHD_CONNECTION_HEADER_PART_RECEIVED" identifier & (unary_expression "~MHD_CONNECTION_HEADER_PART_RECEIVED" ~ identifier)) )) == identifier) )) (compound_statement "{\n      MHD_connection_handle_write(con);\n      iVar2 = MHD_connection_handle_idle(con);\n    }" { (expression_statement "MHD_connection_handle_write(con);" (call_expression "MHD_connection_handle_write(con)" identifier (argument_list "(con)" ( identifier ))) ;) (expression_statement "iVar2 = MHD_connection_handle_idle(con);" (assignment_expression "iVar2 = MHD_connection_handle_idle(con)" identifier = (call_expression "MHD_connection_handle_idle(con)" identifier (argument_list "(con)" ( identifier )))) ;) })) })) (labeled_statement "LAB_00019287:\n  pMVar1 = con->daemon;" statement_identifier : (expression_statement "pMVar1 = con->daemon;" (assignment_expression "pMVar1 = con->daemon" identifier = (field_expression "con->daemon" identifier -> field_identifier)) ;)) (if_statement "if (((pMVar1->data_already_pending == false) &&\n      ((pMVar1->options & MHD_USE_THREAD_PER_CONNECTION) == MHD_NO_FLAG)) &&\n     ((con->event_loop_info == MHD_EVENT_LOOP_INFO_BLOCK ||\n      ((con->tls_read_ready != false && (con->event_loop_info == MHD_EVENT_LOOP_INFO_READ)))))) {\n    pMVar1->data_already_pending = true;\n    return iVar2;\n  }" if (parenthesized_expression "(((pMVar1->data_already_pending == false) &&\n      ((pMVar1->options & MHD_USE_THREAD_PER_CONNECTION) == MHD_NO_FLAG)) &&\n     ((con->event_loop_info == MHD_EVENT_LOOP_INFO_BLOCK ||\n      ((con->tls_read_ready != false && (con->event_loop_info == MHD_EVENT_LOOP_INFO_READ))))))" ( (binary_expression "((pMVar1->data_already_pending == false) &&\n      ((pMVar1->options & MHD_USE_THREAD_PER_CONNECTION) == MHD_NO_FLAG)) &&\n     ((con->event_loop_info == MHD_EVENT_LOOP_INFO_BLOCK ||\n      ((con->tls_read_ready != false && (con->event_loop_info == MHD_EVENT_LOOP_INFO_READ)))))" (parenthesized_expression "((pMVar1->data_already_pending == false) &&\n      ((pMVar1->options & MHD_USE_THREAD_PER_CONNECTION) == MHD_NO_FLAG))" ( (binary_expression "(pMVar1->data_already_pending == false) &&\n      ((pMVar1->options & MHD_USE_THREAD_PER_CONNECTION) == MHD_NO_FLAG)" (parenthesized_expression "(pMVar1->data_already_pending == false)" ( (binary_expression "pMVar1->data_already_pending == false" (field_expression "pMVar1->data_already_pending" identifier -> field_identifier) == false) )) && (parenthesized_expression "((pMVar1->options & MHD_USE_THREAD_PER_CONNECTION) == MHD_NO_FLAG)" ( (binary_expression "(pMVar1->options & MHD_USE_THREAD_PER_CONNECTION) == MHD_NO_FLAG" (parenthesized_expression "(pMVar1->options & MHD_USE_THREAD_PER_CONNECTION)" ( (binary_expression "pMVar1->options & MHD_USE_THREAD_PER_CONNECTION" (field_expression "pMVar1->options" identifier -> field_identifier) & identifier) )) == identifier) ))) )) && (parenthesized_expression "((con->event_loop_info == MHD_EVENT_LOOP_INFO_BLOCK ||\n      ((con->tls_read_ready != false && (con->event_loop_info == MHD_EVENT_LOOP_INFO_READ)))))" ( (parenthesized_expression "(con->event_loop_info == MHD_EVENT_LOOP_INFO_BLOCK ||\n      ((con->tls_read_ready != false && (con->event_loop_info == MHD_EVENT_LOOP_INFO_READ))))" ( (binary_expression "con->event_loop_info == MHD_EVENT_LOOP_INFO_BLOCK ||\n      ((con->tls_read_ready != false && (con->event_loop_info == MHD_EVENT_LOOP_INFO_READ)))" (binary_expression "con->event_loop_info == MHD_EVENT_LOOP_INFO_BLOCK" (field_expression "con->event_loop_info" identifier -> field_identifier) == identifier) || (parenthesized_expression "((con->tls_read_ready != false && (con->event_loop_info == MHD_EVENT_LOOP_INFO_READ)))" ( (parenthesized_expression "(con->tls_read_ready != false && (con->event_loop_info == MHD_EVENT_LOOP_INFO_READ))" ( (binary_expression "con->tls_read_ready != false && (con->event_loop_info == MHD_EVENT_LOOP_INFO_READ)" (binary_expression "con->tls_read_ready != false" (field_expression "con->tls_read_ready" identifier -> field_identifier) != false) && (parenthesized_expression "(con->event_loop_info == MHD_EVENT_LOOP_INFO_READ)" ( (binary_expression "con->event_loop_info == MHD_EVENT_LOOP_INFO_READ" (field_expression "con->event_loop_info" identifier -> field_identifier) == identifier) ))) )) ))) )) ))) )) (compound_statement "{\n    pMVar1->data_already_pending = true;\n    return iVar2;\n  }" { (expression_statement "pMVar1->data_already_pending = true;" (assignment_expression "pMVar1->data_already_pending = true" (field_expression "pMVar1->data_already_pending" identifier -> field_identifier) = true) ;) (return_statement "return iVar2;" return identifier ;) })) (return_statement "return iVar2;" return identifier ;) })))
(translation_unit "void __regparm3 FUN_000191c0(int param_1,char param_2,char param_3,char param_4)\n\n{\n  int iVar1;\n  int iVar2;\n  uint uVar3;\n  \n  iVar1 = *(int *)(param_1 + 0xb4);\n  if (*(char *)(param_1 + 0xf0) == '\0') {\n    if (param_4 != '\0') goto LAB_000192c0;\n    iVar2 = *(int *)(param_1 + 0xb8);\n    if (iVar2 != 0) goto LAB_0001926e;\n    if (param_2 != '\0') goto LAB_000191f8;\nLAB_0001927b:\n    FUN_00016a50(param_1);\n    goto LAB_00019287;\n  }\n  if (param_4 != '\0') {\nLAB_000192c0:\n    FUN_00015170(param_1,1);\n    FUN_00016a50(param_1);\n    return;\n  }\n  iVar2 = *(int *)(param_1 + 0xb8);\n  if (iVar2 == 0) {\nLAB_000191f8:\n    FUN_00015810(param_1);\n    FUN_00016a50(param_1);\n    if ((*(int *)(param_1 + 0xb8) == 1) && (param_3 != '\0')) goto LAB_00019300;\n  }\n  else {\nLAB_0001926e:\n    if ((iVar2 != 1) || (param_3 == '\0')) goto LAB_0001927b;\nLAB_00019300:\n    FUN_000159b0(param_1);\n    FUN_00016a50(param_1);\n  }\n  if ((iVar1 == 0) && (*(char *)(param_1 + 0xa8) != '\0')) {\n    uVar3 = *(uint *)(param_1 + 0xb4);\n    if (uVar3 == 10) {\n      FUN_000159b0(param_1);\n      FUN_00016a50(param_1);\n      uVar3 = *(uint *)(param_1 + 0xb4);\n    }\n    if ((uVar3 & 0xfffffffd) == 0xc) {\n      FUN_000159b0(param_1);\n      FUN_00016a50(param_1);\n    }\n  }\nLAB_00019287:\n  iVar1 = *(int *)(param_1 + 0x18);\n  if (((*(char *)(iVar1 + 0xe4) == '\0') && ((*(byte *)(iVar1 + 0xf8) & 4) == 0)) &&\n     ((*(int *)(param_1 + 0xb8) == 2 ||\n      ((*(char *)(param_1 + 0xf0) != '\0' && (*(int *)(param_1 + 0xb8) == 0)))))) {\n    *(undefined1 *)(iVar1 + 0xe4) = 1;\n    return;\n  }\n  return;\n}\n\n" (function_definition "void __regparm3 FUN_000191c0(int param_1,char param_2,char param_3,char param_4)\n\n{\n  int iVar1;\n  int iVar2;\n  uint uVar3;\n  \n  iVar1 = *(int *)(param_1 + 0xb4);\n  if (*(char *)(param_1 + 0xf0) == '\0') {\n    if (param_4 != '\0') goto LAB_000192c0;\n    iVar2 = *(int *)(param_1 + 0xb8);\n    if (iVar2 != 0) goto LAB_0001926e;\n    if (param_2 != '\0') goto LAB_000191f8;\nLAB_0001927b:\n    FUN_00016a50(param_1);\n    goto LAB_00019287;\n  }\n  if (param_4 != '\0') {\nLAB_000192c0:\n    FUN_00015170(param_1,1);\n    FUN_00016a50(param_1);\n    return;\n  }\n  iVar2 = *(int *)(param_1 + 0xb8);\n  if (iVar2 == 0) {\nLAB_000191f8:\n    FUN_00015810(param_1);\n    FUN_00016a50(param_1);\n    if ((*(int *)(param_1 + 0xb8) == 1) && (param_3 != '\0')) goto LAB_00019300;\n  }\n  else {\nLAB_0001926e:\n    if ((iVar2 != 1) || (param_3 == '\0')) goto LAB_0001927b;\nLAB_00019300:\n    FUN_000159b0(param_1);\n    FUN_00016a50(param_1);\n  }\n  if ((iVar1 == 0) && (*(char *)(param_1 + 0xa8) != '\0')) {\n    uVar3 = *(uint *)(param_1 + 0xb4);\n    if (uVar3 == 10) {\n      FUN_000159b0(param_1);\n      FUN_00016a50(param_1);\n      uVar3 = *(uint *)(param_1 + 0xb4);\n    }\n    if ((uVar3 & 0xfffffffd) == 0xc) {\n      FUN_000159b0(param_1);\n      FUN_00016a50(param_1);\n    }\n  }\nLAB_00019287:\n  iVar1 = *(int *)(param_1 + 0x18);\n  if (((*(char *)(iVar1 + 0xe4) == '\0') && ((*(byte *)(iVar1 + 0xf8) & 4) == 0)) &&\n     ((*(int *)(param_1 + 0xb8) == 2 ||\n      ((*(char *)(param_1 + 0xf0) != '\0' && (*(int *)(param_1 + 0xb8) == 0)))))) {\n    *(undefined1 *)(iVar1 + 0xe4) = 1;\n    return;\n  }\n  return;\n}" primitive_type (ERROR "__regparm3" identifier) (function_declarator "FUN_000191c0(int param_1,char param_2,char param_3,char param_4)" identifier (parameter_list "(int param_1,char param_2,char param_3,char param_4)" ( (parameter_declaration "int param_1" primitive_type identifier) , (parameter_declaration "char param_2" primitive_type identifier) , (parameter_declaration "char param_3" primitive_type identifier) , (parameter_declaration "char param_4" primitive_type identifier) ))) (compound_statement "{\n  int iVar1;\n  int iVar2;\n  uint uVar3;\n  \n  iVar1 = *(int *)(param_1 + 0xb4);\n  if (*(char *)(param_1 + 0xf0) == '\0') {\n    if (param_4 != '\0') goto LAB_000192c0;\n    iVar2 = *(int *)(param_1 + 0xb8);\n    if (iVar2 != 0) goto LAB_0001926e;\n    if (param_2 != '\0') goto LAB_000191f8;\nLAB_0001927b:\n    FUN_00016a50(param_1);\n    goto LAB_00019287;\n  }\n  if (param_4 != '\0') {\nLAB_000192c0:\n    FUN_00015170(param_1,1);\n    FUN_00016a50(param_1);\n    return;\n  }\n  iVar2 = *(int *)(param_1 + 0xb8);\n  if (iVar2 == 0) {\nLAB_000191f8:\n    FUN_00015810(param_1);\n    FUN_00016a50(param_1);\n    if ((*(int *)(param_1 + 0xb8) == 1) && (param_3 != '\0')) goto LAB_00019300;\n  }\n  else {\nLAB_0001926e:\n    if ((iVar2 != 1) || (param_3 == '\0')) goto LAB_0001927b;\nLAB_00019300:\n    FUN_000159b0(param_1);\n    FUN_00016a50(param_1);\n  }\n  if ((iVar1 == 0) && (*(char *)(param_1 + 0xa8) != '\0')) {\n    uVar3 = *(uint *)(param_1 + 0xb4);\n    if (uVar3 == 10) {\n      FUN_000159b0(param_1);\n      FUN_00016a50(param_1);\n      uVar3 = *(uint *)(param_1 + 0xb4);\n    }\n    if ((uVar3 & 0xfffffffd) == 0xc) {\n      FUN_000159b0(param_1);\n      FUN_00016a50(param_1);\n    }\n  }\nLAB_00019287:\n  iVar1 = *(int *)(param_1 + 0x18);\n  if (((*(char *)(iVar1 + 0xe4) == '\0') && ((*(byte *)(iVar1 + 0xf8) & 4) == 0)) &&\n     ((*(int *)(param_1 + 0xb8) == 2 ||\n      ((*(char *)(param_1 + 0xf0) != '\0' && (*(int *)(param_1 + 0xb8) == 0)))))) {\n    *(undefined1 *)(iVar1 + 0xe4) = 1;\n    return;\n  }\n  return;\n}" { (declaration "int iVar1;" primitive_type identifier ;) (declaration "int iVar2;" primitive_type identifier ;) (declaration "uint uVar3;" type_identifier identifier ;) (expression_statement "iVar1 = *(int *)(param_1 + 0xb4);" (assignment_expression "iVar1 = *(int *)(param_1 + 0xb4)" identifier = (pointer_expression "*(int *)(param_1 + 0xb4)" * (cast_expression "(int *)(param_1 + 0xb4)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0xb4)" ( (binary_expression "param_1 + 0xb4" identifier + number_literal) ))))) ;) (if_statement "if (*(char *)(param_1 + 0xf0) == '\0') {\n    if (param_4 != '\0') goto LAB_000192c0;\n    iVar2 = *(int *)(param_1 + 0xb8);\n    if (iVar2 != 0) goto LAB_0001926e;\n    if (param_2 != '\0') goto LAB_000191f8;\nLAB_0001927b:\n    FUN_00016a50(param_1);\n    goto LAB_00019287;\n  }" if (parenthesized_expression "(*(char *)(param_1 + 0xf0) == '\0')" ( (binary_expression "*(char *)(param_1 + 0xf0) == '\0'" (pointer_expression "*(char *)(param_1 + 0xf0)" * (cast_expression "(char *)(param_1 + 0xf0)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0xf0)" ( (binary_expression "param_1 + 0xf0" identifier + number_literal) )))) == (char_literal "'\0'" ' escape_sequence ')) )) (compound_statement "{\n    if (param_4 != '\0') goto LAB_000192c0;\n    iVar2 = *(int *)(param_1 + 0xb8);\n    if (iVar2 != 0) goto LAB_0001926e;\n    if (param_2 != '\0') goto LAB_000191f8;\nLAB_0001927b:\n    FUN_00016a50(param_1);\n    goto LAB_00019287;\n  }" { (if_statement "if (param_4 != '\0') goto LAB_000192c0;" if (parenthesized_expression "(param_4 != '\0')" ( (binary_expression "param_4 != '\0'" identifier != (char_literal "'\0'" ' escape_sequence ')) )) (goto_statement "goto LAB_000192c0;" goto statement_identifier ;)) (expression_statement "iVar2 = *(int *)(param_1 + 0xb8);" (assignment_expression "iVar2 = *(int *)(param_1 + 0xb8)" identifier = (pointer_expression "*(int *)(param_1 + 0xb8)" * (cast_expression "(int *)(param_1 + 0xb8)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0xb8)" ( (binary_expression "param_1 + 0xb8" identifier + number_literal) ))))) ;) (if_statement "if (iVar2 != 0) goto LAB_0001926e;" if (parenthesized_expression "(iVar2 != 0)" ( (binary_expression "iVar2 != 0" identifier != number_literal) )) (goto_statement "goto LAB_0001926e;" goto statement_identifier ;)) (if_statement "if (param_2 != '\0') goto LAB_000191f8;" if (parenthesized_expression "(param_2 != '\0')" ( (binary_expression "param_2 != '\0'" identifier != (char_literal "'\0'" ' escape_sequence ')) )) (goto_statement "goto LAB_000191f8;" goto statement_identifier ;)) (labeled_statement "LAB_0001927b:\n    FUN_00016a50(param_1);" statement_identifier : (expression_statement "FUN_00016a50(param_1);" (call_expression "FUN_00016a50(param_1)" identifier (argument_list "(param_1)" ( identifier ))) ;)) (goto_statement "goto LAB_00019287;" goto statement_identifier ;) })) (if_statement "if (param_4 != '\0') {\nLAB_000192c0:\n    FUN_00015170(param_1,1);\n    FUN_00016a50(param_1);\n    return;\n  }" if (parenthesized_expression "(param_4 != '\0')" ( (binary_expression "param_4 != '\0'" identifier != (char_literal "'\0'" ' escape_sequence ')) )) (compound_statement "{\nLAB_000192c0:\n    FUN_00015170(param_1,1);\n    FUN_00016a50(param_1);\n    return;\n  }" { (labeled_statement "LAB_000192c0:\n    FUN_00015170(param_1,1);" statement_identifier : (expression_statement "FUN_00015170(param_1,1);" (call_expression "FUN_00015170(param_1,1)" identifier (argument_list "(param_1,1)" ( identifier , number_literal ))) ;)) (expression_statement "FUN_00016a50(param_1);" (call_expression "FUN_00016a50(param_1)" identifier (argument_list "(param_1)" ( identifier ))) ;) (return_statement "return;" return ;) })) (expression_statement "iVar2 = *(int *)(param_1 + 0xb8);" (assignment_expression "iVar2 = *(int *)(param_1 + 0xb8)" identifier = (pointer_expression "*(int *)(param_1 + 0xb8)" * (cast_expression "(int *)(param_1 + 0xb8)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0xb8)" ( (binary_expression "param_1 + 0xb8" identifier + number_literal) ))))) ;) (if_statement "if (iVar2 == 0) {\nLAB_000191f8:\n    FUN_00015810(param_1);\n    FUN_00016a50(param_1);\n    if ((*(int *)(param_1 + 0xb8) == 1) && (param_3 != '\0')) goto LAB_00019300;\n  }\n  else {\nLAB_0001926e:\n    if ((iVar2 != 1) || (param_3 == '\0')) goto LAB_0001927b;\nLAB_00019300:\n    FUN_000159b0(param_1);\n    FUN_00016a50(param_1);\n  }" if (parenthesized_expression "(iVar2 == 0)" ( (binary_expression "iVar2 == 0" identifier == number_literal) )) (compound_statement "{\nLAB_000191f8:\n    FUN_00015810(param_1);\n    FUN_00016a50(param_1);\n    if ((*(int *)(param_1 + 0xb8) == 1) && (param_3 != '\0')) goto LAB_00019300;\n  }" { (labeled_statement "LAB_000191f8:\n    FUN_00015810(param_1);" statement_identifier : (expression_statement "FUN_00015810(param_1);" (call_expression "FUN_00015810(param_1)" identifier (argument_list "(param_1)" ( identifier ))) ;)) (expression_statement "FUN_00016a50(param_1);" (call_expression "FUN_00016a50(param_1)" identifier (argument_list "(param_1)" ( identifier ))) ;) (if_statement "if ((*(int *)(param_1 + 0xb8) == 1) && (param_3 != '\0')) goto LAB_00019300;" if (parenthesized_expression "((*(int *)(param_1 + 0xb8) == 1) && (param_3 != '\0'))" ( (binary_expression "(*(int *)(param_1 + 0xb8) == 1) && (param_3 != '\0')" (parenthesized_expression "(*(int *)(param_1 + 0xb8) == 1)" ( (binary_expression "*(int *)(param_1 + 0xb8) == 1" (pointer_expression "*(int *)(param_1 + 0xb8)" * (cast_expression "(int *)(param_1 + 0xb8)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0xb8)" ( (binary_expression "param_1 + 0xb8" identifier + number_literal) )))) == number_literal) )) && (parenthesized_expression "(param_3 != '\0')" ( (binary_expression "param_3 != '\0'" identifier != (char_literal "'\0'" ' escape_sequence ')) ))) )) (goto_statement "goto LAB_00019300;" goto statement_identifier ;)) }) (else_clause "else {\nLAB_0001926e:\n    if ((iVar2 != 1) || (param_3 == '\0')) goto LAB_0001927b;\nLAB_00019300:\n    FUN_000159b0(param_1);\n    FUN_00016a50(param_1);\n  }" else (compound_statement "{\nLAB_0001926e:\n    if ((iVar2 != 1) || (param_3 == '\0')) goto LAB_0001927b;\nLAB_00019300:\n    FUN_000159b0(param_1);\n    FUN_00016a50(param_1);\n  }" { (labeled_statement "LAB_0001926e:\n    if ((iVar2 != 1) || (param_3 == '\0')) goto LAB_0001927b;" statement_identifier : (if_statement "if ((iVar2 != 1) || (param_3 == '\0')) goto LAB_0001927b;" if (parenthesized_expression "((iVar2 != 1) || (param_3 == '\0'))" ( (binary_expression "(iVar2 != 1) || (param_3 == '\0')" (parenthesized_expression "(iVar2 != 1)" ( (binary_expression "iVar2 != 1" identifier != number_literal) )) || (parenthesized_expression "(param_3 == '\0')" ( (binary_expression "param_3 == '\0'" identifier == (char_literal "'\0'" ' escape_sequence ')) ))) )) (goto_statement "goto LAB_0001927b;" goto statement_identifier ;))) (labeled_statement "LAB_00019300:\n    FUN_000159b0(param_1);" statement_identifier : (expression_statement "FUN_000159b0(param_1);" (call_expression "FUN_000159b0(param_1)" identifier (argument_list "(param_1)" ( identifier ))) ;)) (expression_statement "FUN_00016a50(param_1);" (call_expression "FUN_00016a50(param_1)" identifier (argument_list "(param_1)" ( identifier ))) ;) }))) (if_statement "if ((iVar1 == 0) && (*(char *)(param_1 + 0xa8) != '\0')) {\n    uVar3 = *(uint *)(param_1 + 0xb4);\n    if (uVar3 == 10) {\n      FUN_000159b0(param_1);\n      FUN_00016a50(param_1);\n      uVar3 = *(uint *)(param_1 + 0xb4);\n    }\n    if ((uVar3 & 0xfffffffd) == 0xc) {\n      FUN_000159b0(param_1);\n      FUN_00016a50(param_1);\n    }\n  }" if (parenthesized_expression "((iVar1 == 0) && (*(char *)(param_1 + 0xa8) != '\0'))" ( (binary_expression "(iVar1 == 0) && (*(char *)(param_1 + 0xa8) != '\0')" (parenthesized_expression "(iVar1 == 0)" ( (binary_expression "iVar1 == 0" identifier == number_literal) )) && (parenthesized_expression "(*(char *)(param_1 + 0xa8) != '\0')" ( (binary_expression "*(char *)(param_1 + 0xa8) != '\0'" (pointer_expression "*(char *)(param_1 + 0xa8)" * (cast_expression "(char *)(param_1 + 0xa8)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0xa8)" ( (binary_expression "param_1 + 0xa8" identifier + number_literal) )))) != (char_literal "'\0'" ' escape_sequence ')) ))) )) (compound_statement "{\n    uVar3 = *(uint *)(param_1 + 0xb4);\n    if (uVar3 == 10) {\n      FUN_000159b0(param_1);\n      FUN_00016a50(param_1);\n      uVar3 = *(uint *)(param_1 + 0xb4);\n    }\n    if ((uVar3 & 0xfffffffd) == 0xc) {\n      FUN_000159b0(param_1);\n      FUN_00016a50(param_1);\n    }\n  }" { (expression_statement "uVar3 = *(uint *)(param_1 + 0xb4);" (assignment_expression "uVar3 = *(uint *)(param_1 + 0xb4)" identifier = (pointer_expression "*(uint *)(param_1 + 0xb4)" * (cast_expression "(uint *)(param_1 + 0xb4)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0xb4)" ( (binary_expression "param_1 + 0xb4" identifier + number_literal) ))))) ;) (if_statement "if (uVar3 == 10) {\n      FUN_000159b0(param_1);\n      FUN_00016a50(param_1);\n      uVar3 = *(uint *)(param_1 + 0xb4);\n    }" if (parenthesized_expression "(uVar3 == 10)" ( (binary_expression "uVar3 == 10" identifier == number_literal) )) (compound_statement "{\n      FUN_000159b0(param_1);\n      FUN_00016a50(param_1);\n      uVar3 = *(uint *)(param_1 + 0xb4);\n    }" { (expression_statement "FUN_000159b0(param_1);" (call_expression "FUN_000159b0(param_1)" identifier (argument_list "(param_1)" ( identifier ))) ;) (expression_statement "FUN_00016a50(param_1);" (call_expression "FUN_00016a50(param_1)" identifier (argument_list "(param_1)" ( identifier ))) ;) (expression_statement "uVar3 = *(uint *)(param_1 + 0xb4);" (assignment_expression "uVar3 = *(uint *)(param_1 + 0xb4)" identifier = (pointer_expression "*(uint *)(param_1 + 0xb4)" * (cast_expression "(uint *)(param_1 + 0xb4)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0xb4)" ( (binary_expression "param_1 + 0xb4" identifier + number_literal) ))))) ;) })) (if_statement "if ((uVar3 & 0xfffffffd) == 0xc) {\n      FUN_000159b0(param_1);\n      FUN_00016a50(param_1);\n    }" if (parenthesized_expression "((uVar3 & 0xfffffffd) == 0xc)" ( (binary_expression "(uVar3 & 0xfffffffd) == 0xc" (parenthesized_expression "(uVar3 & 0xfffffffd)" ( (binary_expression "uVar3 & 0xfffffffd" identifier & number_literal) )) == number_literal) )) (compound_statement "{\n      FUN_000159b0(param_1);\n      FUN_00016a50(param_1);\n    }" { (expression_statement "FUN_000159b0(param_1);" (call_expression "FUN_000159b0(param_1)" identifier (argument_list "(param_1)" ( identifier ))) ;) (expression_statement "FUN_00016a50(param_1);" (call_expression "FUN_00016a50(param_1)" identifier (argument_list "(param_1)" ( identifier ))) ;) })) })) (labeled_statement "LAB_00019287:\n  iVar1 = *(int *)(param_1 + 0x18);" statement_identifier : (expression_statement "iVar1 = *(int *)(param_1 + 0x18);" (assignment_expression "iVar1 = *(int *)(param_1 + 0x18)" identifier = (pointer_expression "*(int *)(param_1 + 0x18)" * (cast_expression "(int *)(param_1 + 0x18)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x18)" ( (binary_expression "param_1 + 0x18" identifier + number_literal) ))))) ;)) (if_statement "if (((*(char *)(iVar1 + 0xe4) == '\0') && ((*(byte *)(iVar1 + 0xf8) & 4) == 0)) &&\n     ((*(int *)(param_1 + 0xb8) == 2 ||\n      ((*(char *)(param_1 + 0xf0) != '\0' && (*(int *)(param_1 + 0xb8) == 0)))))) {\n    *(undefined1 *)(iVar1 + 0xe4) = 1;\n    return;\n  }" if (parenthesized_expression "(((*(char *)(iVar1 + 0xe4) == '\0') && ((*(byte *)(iVar1 + 0xf8) & 4) == 0)) &&\n     ((*(int *)(param_1 + 0xb8) == 2 ||\n      ((*(char *)(param_1 + 0xf0) != '\0' && (*(int *)(param_1 + 0xb8) == 0))))))" ( (binary_expression "((*(char *)(iVar1 + 0xe4) == '\0') && ((*(byte *)(iVar1 + 0xf8) & 4) == 0)) &&\n     ((*(int *)(param_1 + 0xb8) == 2 ||\n      ((*(char *)(param_1 + 0xf0) != '\0' && (*(int *)(param_1 + 0xb8) == 0)))))" (parenthesized_expression "((*(char *)(iVar1 + 0xe4) == '\0') && ((*(byte *)(iVar1 + 0xf8) & 4) == 0))" ( (binary_expression "(*(char *)(iVar1 + 0xe4) == '\0') && ((*(byte *)(iVar1 + 0xf8) & 4) == 0)" (parenthesized_expression "(*(char *)(iVar1 + 0xe4) == '\0')" ( (binary_expression "*(char *)(iVar1 + 0xe4) == '\0'" (pointer_expression "*(char *)(iVar1 + 0xe4)" * (cast_expression "(char *)(iVar1 + 0xe4)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar1 + 0xe4)" ( (binary_expression "iVar1 + 0xe4" identifier + number_literal) )))) == (char_literal "'\0'" ' escape_sequence ')) )) && (parenthesized_expression "((*(byte *)(iVar1 + 0xf8) & 4) == 0)" ( (binary_expression "(*(byte *)(iVar1 + 0xf8) & 4) == 0" (parenthesized_expression "(*(byte *)(iVar1 + 0xf8) & 4)" ( (binary_expression "*(byte *)(iVar1 + 0xf8) & 4" (pointer_expression "*(byte *)(iVar1 + 0xf8)" * (cast_expression "(byte *)(iVar1 + 0xf8)" ( (type_descriptor "byte *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar1 + 0xf8)" ( (binary_expression "iVar1 + 0xf8" identifier + number_literal) )))) & number_literal) )) == number_literal) ))) )) && (parenthesized_expression "((*(int *)(param_1 + 0xb8) == 2 ||\n      ((*(char *)(param_1 + 0xf0) != '\0' && (*(int *)(param_1 + 0xb8) == 0)))))" ( (parenthesized_expression "(*(int *)(param_1 + 0xb8) == 2 ||\n      ((*(char *)(param_1 + 0xf0) != '\0' && (*(int *)(param_1 + 0xb8) == 0))))" ( (binary_expression "*(int *)(param_1 + 0xb8) == 2 ||\n      ((*(char *)(param_1 + 0xf0) != '\0' && (*(int *)(param_1 + 0xb8) == 0)))" (binary_expression "*(int *)(param_1 + 0xb8) == 2" (pointer_expression "*(int *)(param_1 + 0xb8)" * (cast_expression "(int *)(param_1 + 0xb8)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0xb8)" ( (binary_expression "param_1 + 0xb8" identifier + number_literal) )))) == number_literal) || (parenthesized_expression "((*(char *)(param_1 + 0xf0) != '\0' && (*(int *)(param_1 + 0xb8) == 0)))" ( (parenthesized_expression "(*(char *)(param_1 + 0xf0) != '\0' && (*(int *)(param_1 + 0xb8) == 0))" ( (binary_expression "*(char *)(param_1 + 0xf0) != '\0' && (*(int *)(param_1 + 0xb8) == 0)" (binary_expression "*(char *)(param_1 + 0xf0) != '\0'" (pointer_expression "*(char *)(param_1 + 0xf0)" * (cast_expression "(char *)(param_1 + 0xf0)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0xf0)" ( (binary_expression "param_1 + 0xf0" identifier + number_literal) )))) != (char_literal "'\0'" ' escape_sequence ')) && (parenthesized_expression "(*(int *)(param_1 + 0xb8) == 0)" ( (binary_expression "*(int *)(param_1 + 0xb8) == 0" (pointer_expression "*(int *)(param_1 + 0xb8)" * (cast_expression "(int *)(param_1 + 0xb8)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0xb8)" ( (binary_expression "param_1 + 0xb8" identifier + number_literal) )))) == number_literal) ))) )) ))) )) ))) )) (compound_statement "{\n    *(undefined1 *)(iVar1 + 0xe4) = 1;\n    return;\n  }" { (expression_statement "*(undefined1 *)(iVar1 + 0xe4) = 1;" (assignment_expression "*(undefined1 *)(iVar1 + 0xe4) = 1" (pointer_expression "*(undefined1 *)(iVar1 + 0xe4)" * (cast_expression "(undefined1 *)(iVar1 + 0xe4)" ( (type_descriptor "undefined1 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar1 + 0xe4)" ( (binary_expression "iVar1 + 0xe4" identifier + number_literal) )))) = number_literal) ;) (return_statement "return;" return ;) })) (return_statement "return;" return ;) })))
(translation_unit (function_definition TYPE (ERROR IDENT) (function_declarator IDENT (parameter_list ( (parameter_declaration TYPE IDENT) , (parameter_declaration TYPE IDENT) , (parameter_declaration TYPE IDENT) , (parameter_declaration TYPE IDENT) ))) (compound_statement { (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) ;) (if_statement if (parenthesized_expression ( (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) == (char_literal ' escape_sequence ')) )) (compound_statement { (if_statement if (parenthesized_expression ( (binary_expression IDENT != (char_literal ' escape_sequence ')) )) (goto_statement goto statement_identifier ;)) (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT != LIT) )) (goto_statement goto statement_identifier ;)) (if_statement if (parenthesized_expression ( (binary_expression IDENT != (char_literal ' escape_sequence ')) )) (goto_statement goto statement_identifier ;)) (labeled_statement statement_identifier : (expression_statement (call_expression IDENT (argument_list ( IDENT ))) ;)) (goto_statement goto statement_identifier ;) })) (if_statement if (parenthesized_expression ( (binary_expression IDENT != (char_literal ' escape_sequence ')) )) (compound_statement { (labeled_statement statement_identifier : (expression_statement (call_expression IDENT (argument_list ( IDENT , LIT ))) ;)) (expression_statement (call_expression IDENT (argument_list ( IDENT ))) ;) (return_statement return ;) })) (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT == LIT) )) (compound_statement { (labeled_statement statement_identifier : (expression_statement (call_expression IDENT (argument_list ( IDENT ))) ;)) (expression_statement (call_expression IDENT (argument_list ( IDENT ))) ;) (if_statement if (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) == LIT) )) && (parenthesized_expression ( (binary_expression IDENT != (char_literal ' escape_sequence ')) ))) )) (goto_statement goto statement_identifier ;)) }) (else_clause else (compound_statement { (labeled_statement statement_identifier : (if_statement if (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression IDENT != LIT) )) || (parenthesized_expression ( (binary_expression IDENT == (char_literal ' escape_sequence ')) ))) )) (goto_statement goto statement_identifier ;))) (labeled_statement statement_identifier : (expression_statement (call_expression IDENT (argument_list ( IDENT ))) ;)) (expression_statement (call_expression IDENT (argument_list ( IDENT ))) ;) }))) (if_statement if (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression IDENT == LIT) )) && (parenthesized_expression ( (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) != (char_literal ' escape_sequence ')) ))) )) (compound_statement { (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT == LIT) )) (compound_statement { (expression_statement (call_expression IDENT (argument_list ( IDENT ))) ;) (expression_statement (call_expression IDENT (argument_list ( IDENT ))) ;) (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) ;) })) (if_statement if (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression IDENT & LIT) )) == LIT) )) (compound_statement { (expression_statement (call_expression IDENT (argument_list ( IDENT ))) ;) (expression_statement (call_expression IDENT (argument_list ( IDENT ))) ;) })) })) (labeled_statement statement_identifier : (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) ;)) (if_statement if (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) == (char_literal ' escape_sequence ')) )) && (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) & LIT) )) == LIT) ))) )) && (parenthesized_expression ( (parenthesized_expression ( (binary_expression (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) == LIT) || (parenthesized_expression ( (parenthesized_expression ( (binary_expression (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) != (char_literal ' escape_sequence ')) && (parenthesized_expression ( (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) == LIT) ))) )) ))) )) ))) )) (compound_statement { (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) = LIT) ;) (return_statement return ;) })) (return_statement return ;) })))
(function_definition "void __regparm3 FUN_000191c0(int param_1,char param_2,char param_3,char param_4)\n\n{\n  int iVar1;\n  int iVar2;\n  uint uVar3;\n  \n  iVar1 = *(int *)(param_1 + 0xb4);\n  if (*(char *)(param_1 + 0xf0) == '\0') {\n    if (param_4 != '\0') goto LAB_000192c0;\n    iVar2 = *(int *)(param_1 + 0xb8);\n    if (iVar2 != 0) goto LAB_0001926e;\n    if (param_2 != '\0') goto LAB_000191f8;\nLAB_0001927b:\n    FUN_00016a50(param_1);\n    goto LAB_00019287;\n  }\n  if (param_4 != '\0') {\nLAB_000192c0:\n    FUN_00015170(param_1,1);\n    FUN_00016a50(param_1);\n    return;\n  }\n  iVar2 = *(int *)(param_1 + 0xb8);\n  if (iVar2 == 0) {\nLAB_000191f8:\n    FUN_00015810(param_1);\n    FUN_00016a50(param_1);\n    if ((*(int *)(param_1 + 0xb8) == 1) && (param_3 != '\0')) goto LAB_00019300;\n  }\n  else {\nLAB_0001926e:\n    if ((iVar2 != 1) || (param_3 == '\0')) goto LAB_0001927b;\nLAB_00019300:\n    FUN_000159b0(param_1);\n    FUN_00016a50(param_1);\n  }\n  if ((iVar1 == 0) && (*(char *)(param_1 + 0xa8) != '\0')) {\n    uVar3 = *(uint *)(param_1 + 0xb4);\n    if (uVar3 == 10) {\n      FUN_000159b0(param_1);\n      FUN_00016a50(param_1);\n      uVar3 = *(uint *)(param_1 + 0xb4);\n    }\n    if ((uVar3 & 0xfffffffd) == 0xc) {\n      FUN_000159b0(param_1);\n      FUN_00016a50(param_1);\n    }\n  }\nLAB_00019287:\n  iVar1 = *(int *)(param_1 + 0x18);\n  if (((*(char *)(iVar1 + 0xe4) == '\0') && ((*(byte *)(iVar1 + 0xf8) & 4) == 0)) &&\n     ((*(int *)(param_1 + 0xb8) == 2 ||\n      ((*(char *)(param_1 + 0xf0) != '\0' && (*(int *)(param_1 + 0xb8) == 0)))))) {\n    *(undefined1 *)(iVar1 + 0xe4) = 1;\n    return;\n  }\n  return;\n}" (primitive_type "void") (ERROR "__regparm3" (identifier "__regparm3")) (function_declarator "FUN_000191c0(int param_1,char param_2,char param_3,char param_4)" (identifier "FUN_000191c0") (parameter_list "(int param_1,char param_2,char param_3,char param_4)" (( "(") (parameter_declaration "int param_1" (primitive_type "int") (identifier "param_1")) (, ",") (parameter_declaration "char param_2" (primitive_type "char") (identifier "param_2")) (, ",") (parameter_declaration "char param_3" (primitive_type "char") (identifier "param_3")) (, ",") (parameter_declaration "char param_4" (primitive_type "char") (identifier "param_4")) () ")"))) (compound_statement "{\n  int iVar1;\n  int iVar2;\n  uint uVar3;\n  \n  iVar1 = *(int *)(param_1 + 0xb4);\n  if (*(char *)(param_1 + 0xf0) == '\0') {\n    if (param_4 != '\0') goto LAB_000192c0;\n    iVar2 = *(int *)(param_1 + 0xb8);\n    if (iVar2 != 0) goto LAB_0001926e;\n    if (param_2 != '\0') goto LAB_000191f8;\nLAB_0001927b:\n    FUN_00016a50(param_1);\n    goto LAB_00019287;\n  }\n  if (param_4 != '\0') {\nLAB_000192c0:\n    FUN_00015170(param_1,1);\n    FUN_00016a50(param_1);\n    return;\n  }\n  iVar2 = *(int *)(param_1 + 0xb8);\n  if (iVar2 == 0) {\nLAB_000191f8:\n    FUN_00015810(param_1);\n    FUN_00016a50(param_1);\n    if ((*(int *)(param_1 + 0xb8) == 1) && (param_3 != '\0')) goto LAB_00019300;\n  }\n  else {\nLAB_0001926e:\n    if ((iVar2 != 1) || (param_3 == '\0')) goto LAB_0001927b;\nLAB_00019300:\n    FUN_000159b0(param_1);\n    FUN_00016a50(param_1);\n  }\n  if ((iVar1 == 0) && (*(char *)(param_1 + 0xa8) != '\0')) {\n    uVar3 = *(uint *)(param_1 + 0xb4);\n    if (uVar3 == 10) {\n      FUN_000159b0(param_1);\n      FUN_00016a50(param_1);\n      uVar3 = *(uint *)(param_1 + 0xb4);\n    }\n    if ((uVar3 & 0xfffffffd) == 0xc) {\n      FUN_000159b0(param_1);\n      FUN_00016a50(param_1);\n    }\n  }\nLAB_00019287:\n  iVar1 = *(int *)(param_1 + 0x18);\n  if (((*(char *)(iVar1 + 0xe4) == '\0') && ((*(byte *)(iVar1 + 0xf8) & 4) == 0)) &&\n     ((*(int *)(param_1 + 0xb8) == 2 ||\n      ((*(char *)(param_1 + 0xf0) != '\0' && (*(int *)(param_1 + 0xb8) == 0)))))) {\n    *(undefined1 *)(iVar1 + 0xe4) = 1;\n    return;\n  }\n  return;\n}" ({ "{") (declaration "int iVar1;" (primitive_type "int") (identifier "iVar1") (; ";")) (declaration "int iVar2;" (primitive_type "int") (identifier "iVar2") (; ";")) (declaration "uint uVar3;" (type_identifier "uint") (identifier "uVar3") (; ";")) (expression_statement "iVar1 = *(int *)(param_1 + 0xb4);" (assignment_expression "iVar1 = *(int *)(param_1 + 0xb4)" (identifier "iVar1") (= "=") (pointer_expression "*(int *)(param_1 + 0xb4)" (* "*") (cast_expression "(int *)(param_1 + 0xb4)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0xb4)" (( "(") (binary_expression "param_1 + 0xb4" (identifier "param_1") (+ "+") (number_literal "0xb4")) () ")"))))) (; ";")) (if_statement "if (*(char *)(param_1 + 0xf0) == '\0') {\n    if (param_4 != '\0') goto LAB_000192c0;\n    iVar2 = *(int *)(param_1 + 0xb8);\n    if (iVar2 != 0) goto LAB_0001926e;\n    if (param_2 != '\0') goto LAB_000191f8;\nLAB_0001927b:\n    FUN_00016a50(param_1);\n    goto LAB_00019287;\n  }" (if "if") (parenthesized_expression "(*(char *)(param_1 + 0xf0) == '\0')" (( "(") (binary_expression "*(char *)(param_1 + 0xf0) == '\0'" (pointer_expression "*(char *)(param_1 + 0xf0)" (* "*") (cast_expression "(char *)(param_1 + 0xf0)" (( "(") (type_descriptor "char *" (primitive_type "char") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0xf0)" (( "(") (binary_expression "param_1 + 0xf0" (identifier "param_1") (+ "+") (number_literal "0xf0")) () ")")))) (== "==") (char_literal "'\0'" (' "'") (escape_sequence "\0") (' "'"))) () ")")) (compound_statement "{\n    if (param_4 != '\0') goto LAB_000192c0;\n    iVar2 = *(int *)(param_1 + 0xb8);\n    if (iVar2 != 0) goto LAB_0001926e;\n    if (param_2 != '\0') goto LAB_000191f8;\nLAB_0001927b:\n    FUN_00016a50(param_1);\n    goto LAB_00019287;\n  }" ({ "{") (if_statement "if (param_4 != '\0') goto LAB_000192c0;" (if "if") (parenthesized_expression "(param_4 != '\0')" (( "(") (binary_expression "param_4 != '\0'" (identifier "param_4") (!= "!=") (char_literal "'\0'" (' "'") (escape_sequence "\0") (' "'"))) () ")")) (goto_statement "goto LAB_000192c0;" (goto "goto") (statement_identifier "LAB_000192c0") (; ";"))) (expression_statement "iVar2 = *(int *)(param_1 + 0xb8);" (assignment_expression "iVar2 = *(int *)(param_1 + 0xb8)" (identifier "iVar2") (= "=") (pointer_expression "*(int *)(param_1 + 0xb8)" (* "*") (cast_expression "(int *)(param_1 + 0xb8)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0xb8)" (( "(") (binary_expression "param_1 + 0xb8" (identifier "param_1") (+ "+") (number_literal "0xb8")) () ")"))))) (; ";")) (if_statement "if (iVar2 != 0) goto LAB_0001926e;" (if "if") (parenthesized_expression "(iVar2 != 0)" (( "(") (binary_expression "iVar2 != 0" (identifier "iVar2") (!= "!=") (number_literal "0")) () ")")) (goto_statement "goto LAB_0001926e;" (goto "goto") (statement_identifier "LAB_0001926e") (; ";"))) (if_statement "if (param_2 != '\0') goto LAB_000191f8;" (if "if") (parenthesized_expression "(param_2 != '\0')" (( "(") (binary_expression "param_2 != '\0'" (identifier "param_2") (!= "!=") (char_literal "'\0'" (' "'") (escape_sequence "\0") (' "'"))) () ")")) (goto_statement "goto LAB_000191f8;" (goto "goto") (statement_identifier "LAB_000191f8") (; ";"))) (labeled_statement "LAB_0001927b:\n    FUN_00016a50(param_1);" (statement_identifier "LAB_0001927b") (: ":") (expression_statement "FUN_00016a50(param_1);" (call_expression "FUN_00016a50(param_1)" (identifier "FUN_00016a50") (argument_list "(param_1)" (( "(") (identifier "param_1") () ")"))) (; ";"))) (goto_statement "goto LAB_00019287;" (goto "goto") (statement_identifier "LAB_00019287") (; ";")) (} "}"))) (if_statement "if (param_4 != '\0') {\nLAB_000192c0:\n    FUN_00015170(param_1,1);\n    FUN_00016a50(param_1);\n    return;\n  }" (if "if") (parenthesized_expression "(param_4 != '\0')" (( "(") (binary_expression "param_4 != '\0'" (identifier "param_4") (!= "!=") (char_literal "'\0'" (' "'") (escape_sequence "\0") (' "'"))) () ")")) (compound_statement "{\nLAB_000192c0:\n    FUN_00015170(param_1,1);\n    FUN_00016a50(param_1);\n    return;\n  }" ({ "{") (labeled_statement "LAB_000192c0:\n    FUN_00015170(param_1,1);" (statement_identifier "LAB_000192c0") (: ":") (expression_statement "FUN_00015170(param_1,1);" (call_expression "FUN_00015170(param_1,1)" (identifier "FUN_00015170") (argument_list "(param_1,1)" (( "(") (identifier "param_1") (, ",") (number_literal "1") () ")"))) (; ";"))) (expression_statement "FUN_00016a50(param_1);" (call_expression "FUN_00016a50(param_1)" (identifier "FUN_00016a50") (argument_list "(param_1)" (( "(") (identifier "param_1") () ")"))) (; ";")) (return_statement "return;" (return "return") (; ";")) (} "}"))) (expression_statement "iVar2 = *(int *)(param_1 + 0xb8);" (assignment_expression "iVar2 = *(int *)(param_1 + 0xb8)" (identifier "iVar2") (= "=") (pointer_expression "*(int *)(param_1 + 0xb8)" (* "*") (cast_expression "(int *)(param_1 + 0xb8)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0xb8)" (( "(") (binary_expression "param_1 + 0xb8" (identifier "param_1") (+ "+") (number_literal "0xb8")) () ")"))))) (; ";")) (if_statement "if (iVar2 == 0) {\nLAB_000191f8:\n    FUN_00015810(param_1);\n    FUN_00016a50(param_1);\n    if ((*(int *)(param_1 + 0xb8) == 1) && (param_3 != '\0')) goto LAB_00019300;\n  }\n  else {\nLAB_0001926e:\n    if ((iVar2 != 1) || (param_3 == '\0')) goto LAB_0001927b;\nLAB_00019300:\n    FUN_000159b0(param_1);\n    FUN_00016a50(param_1);\n  }" (if "if") (parenthesized_expression "(iVar2 == 0)" (( "(") (binary_expression "iVar2 == 0" (identifier "iVar2") (== "==") (number_literal "0")) () ")")) (compound_statement "{\nLAB_000191f8:\n    FUN_00015810(param_1);\n    FUN_00016a50(param_1);\n    if ((*(int *)(param_1 + 0xb8) == 1) && (param_3 != '\0')) goto LAB_00019300;\n  }" ({ "{") (labeled_statement "LAB_000191f8:\n    FUN_00015810(param_1);" (statement_identifier "LAB_000191f8") (: ":") (expression_statement "FUN_00015810(param_1);" (call_expression "FUN_00015810(param_1)" (identifier "FUN_00015810") (argument_list "(param_1)" (( "(") (identifier "param_1") () ")"))) (; ";"))) (expression_statement "FUN_00016a50(param_1);" (call_expression "FUN_00016a50(param_1)" (identifier "FUN_00016a50") (argument_list "(param_1)" (( "(") (identifier "param_1") () ")"))) (; ";")) (if_statement "if ((*(int *)(param_1 + 0xb8) == 1) && (param_3 != '\0')) goto LAB_00019300;" (if "if") (parenthesized_expression "((*(int *)(param_1 + 0xb8) == 1) && (param_3 != '\0'))" (( "(") (binary_expression "(*(int *)(param_1 + 0xb8) == 1) && (param_3 != '\0')" (parenthesized_expression "(*(int *)(param_1 + 0xb8) == 1)" (( "(") (binary_expression "*(int *)(param_1 + 0xb8) == 1" (pointer_expression "*(int *)(param_1 + 0xb8)" (* "*") (cast_expression "(int *)(param_1 + 0xb8)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0xb8)" (( "(") (binary_expression "param_1 + 0xb8" (identifier "param_1") (+ "+") (number_literal "0xb8")) () ")")))) (== "==") (number_literal "1")) () ")")) (&& "&&") (parenthesized_expression "(param_3 != '\0')" (( "(") (binary_expression "param_3 != '\0'" (identifier "param_3") (!= "!=") (char_literal "'\0'" (' "'") (escape_sequence "\0") (' "'"))) () ")"))) () ")")) (goto_statement "goto LAB_00019300;" (goto "goto") (statement_identifier "LAB_00019300") (; ";"))) (} "}")) (else_clause "else {\nLAB_0001926e:\n    if ((iVar2 != 1) || (param_3 == '\0')) goto LAB_0001927b;\nLAB_00019300:\n    FUN_000159b0(param_1);\n    FUN_00016a50(param_1);\n  }" (else "else") (compound_statement "{\nLAB_0001926e:\n    if ((iVar2 != 1) || (param_3 == '\0')) goto LAB_0001927b;\nLAB_00019300:\n    FUN_000159b0(param_1);\n    FUN_00016a50(param_1);\n  }" ({ "{") (labeled_statement "LAB_0001926e:\n    if ((iVar2 != 1) || (param_3 == '\0')) goto LAB_0001927b;" (statement_identifier "LAB_0001926e") (: ":") (if_statement "if ((iVar2 != 1) || (param_3 == '\0')) goto LAB_0001927b;" (if "if") (parenthesized_expression "((iVar2 != 1) || (param_3 == '\0'))" (( "(") (binary_expression "(iVar2 != 1) || (param_3 == '\0')" (parenthesized_expression "(iVar2 != 1)" (( "(") (binary_expression "iVar2 != 1" (identifier "iVar2") (!= "!=") (number_literal "1")) () ")")) (|| "||") (parenthesized_expression "(param_3 == '\0')" (( "(") (binary_expression "param_3 == '\0'" (identifier "param_3") (== "==") (char_literal "'\0'" (' "'") (escape_sequence "\0") (' "'"))) () ")"))) () ")")) (goto_statement "goto LAB_0001927b;" (goto "goto") (statement_identifier "LAB_0001927b") (; ";")))) (labeled_statement "LAB_00019300:\n    FUN_000159b0(param_1);" (statement_identifier "LAB_00019300") (: ":") (expression_statement "FUN_000159b0(param_1);" (call_expression "FUN_000159b0(param_1)" (identifier "FUN_000159b0") (argument_list "(param_1)" (( "(") (identifier "param_1") () ")"))) (; ";"))) (expression_statement "FUN_00016a50(param_1);" (call_expression "FUN_00016a50(param_1)" (identifier "FUN_00016a50") (argument_list "(param_1)" (( "(") (identifier "param_1") () ")"))) (; ";")) (} "}")))) (if_statement "if ((iVar1 == 0) && (*(char *)(param_1 + 0xa8) != '\0')) {\n    uVar3 = *(uint *)(param_1 + 0xb4);\n    if (uVar3 == 10) {\n      FUN_000159b0(param_1);\n      FUN_00016a50(param_1);\n      uVar3 = *(uint *)(param_1 + 0xb4);\n    }\n    if ((uVar3 & 0xfffffffd) == 0xc) {\n      FUN_000159b0(param_1);\n      FUN_00016a50(param_1);\n    }\n  }" (if "if") (parenthesized_expression "((iVar1 == 0) && (*(char *)(param_1 + 0xa8) != '\0'))" (( "(") (binary_expression "(iVar1 == 0) && (*(char *)(param_1 + 0xa8) != '\0')" (parenthesized_expression "(iVar1 == 0)" (( "(") (binary_expression "iVar1 == 0" (identifier "iVar1") (== "==") (number_literal "0")) () ")")) (&& "&&") (parenthesized_expression "(*(char *)(param_1 + 0xa8) != '\0')" (( "(") (binary_expression "*(char *)(param_1 + 0xa8) != '\0'" (pointer_expression "*(char *)(param_1 + 0xa8)" (* "*") (cast_expression "(char *)(param_1 + 0xa8)" (( "(") (type_descriptor "char *" (primitive_type "char") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0xa8)" (( "(") (binary_expression "param_1 + 0xa8" (identifier "param_1") (+ "+") (number_literal "0xa8")) () ")")))) (!= "!=") (char_literal "'\0'" (' "'") (escape_sequence "\0") (' "'"))) () ")"))) () ")")) (compound_statement "{\n    uVar3 = *(uint *)(param_1 + 0xb4);\n    if (uVar3 == 10) {\n      FUN_000159b0(param_1);\n      FUN_00016a50(param_1);\n      uVar3 = *(uint *)(param_1 + 0xb4);\n    }\n    if ((uVar3 & 0xfffffffd) == 0xc) {\n      FUN_000159b0(param_1);\n      FUN_00016a50(param_1);\n    }\n  }" ({ "{") (expression_statement "uVar3 = *(uint *)(param_1 + 0xb4);" (assignment_expression "uVar3 = *(uint *)(param_1 + 0xb4)" (identifier "uVar3") (= "=") (pointer_expression "*(uint *)(param_1 + 0xb4)" (* "*") (cast_expression "(uint *)(param_1 + 0xb4)" (( "(") (type_descriptor "uint *" (type_identifier "uint") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0xb4)" (( "(") (binary_expression "param_1 + 0xb4" (identifier "param_1") (+ "+") (number_literal "0xb4")) () ")"))))) (; ";")) (if_statement "if (uVar3 == 10) {\n      FUN_000159b0(param_1);\n      FUN_00016a50(param_1);\n      uVar3 = *(uint *)(param_1 + 0xb4);\n    }" (if "if") (parenthesized_expression "(uVar3 == 10)" (( "(") (binary_expression "uVar3 == 10" (identifier "uVar3") (== "==") (number_literal "10")) () ")")) (compound_statement "{\n      FUN_000159b0(param_1);\n      FUN_00016a50(param_1);\n      uVar3 = *(uint *)(param_1 + 0xb4);\n    }" ({ "{") (expression_statement "FUN_000159b0(param_1);" (call_expression "FUN_000159b0(param_1)" (identifier "FUN_000159b0") (argument_list "(param_1)" (( "(") (identifier "param_1") () ")"))) (; ";")) (expression_statement "FUN_00016a50(param_1);" (call_expression "FUN_00016a50(param_1)" (identifier "FUN_00016a50") (argument_list "(param_1)" (( "(") (identifier "param_1") () ")"))) (; ";")) (expression_statement "uVar3 = *(uint *)(param_1 + 0xb4);" (assignment_expression "uVar3 = *(uint *)(param_1 + 0xb4)" (identifier "uVar3") (= "=") (pointer_expression "*(uint *)(param_1 + 0xb4)" (* "*") (cast_expression "(uint *)(param_1 + 0xb4)" (( "(") (type_descriptor "uint *" (type_identifier "uint") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0xb4)" (( "(") (binary_expression "param_1 + 0xb4" (identifier "param_1") (+ "+") (number_literal "0xb4")) () ")"))))) (; ";")) (} "}"))) (if_statement "if ((uVar3 & 0xfffffffd) == 0xc) {\n      FUN_000159b0(param_1);\n      FUN_00016a50(param_1);\n    }" (if "if") (parenthesized_expression "((uVar3 & 0xfffffffd) == 0xc)" (( "(") (binary_expression "(uVar3 & 0xfffffffd) == 0xc" (parenthesized_expression "(uVar3 & 0xfffffffd)" (( "(") (binary_expression "uVar3 & 0xfffffffd" (identifier "uVar3") (& "&") (number_literal "0xfffffffd")) () ")")) (== "==") (number_literal "0xc")) () ")")) (compound_statement "{\n      FUN_000159b0(param_1);\n      FUN_00016a50(param_1);\n    }" ({ "{") (expression_statement "FUN_000159b0(param_1);" (call_expression "FUN_000159b0(param_1)" (identifier "FUN_000159b0") (argument_list "(param_1)" (( "(") (identifier "param_1") () ")"))) (; ";")) (expression_statement "FUN_00016a50(param_1);" (call_expression "FUN_00016a50(param_1)" (identifier "FUN_00016a50") (argument_list "(param_1)" (( "(") (identifier "param_1") () ")"))) (; ";")) (} "}"))) (} "}"))) (labeled_statement "LAB_00019287:\n  iVar1 = *(int *)(param_1 + 0x18);" (statement_identifier "LAB_00019287") (: ":") (expression_statement "iVar1 = *(int *)(param_1 + 0x18);" (assignment_expression "iVar1 = *(int *)(param_1 + 0x18)" (identifier "iVar1") (= "=") (pointer_expression "*(int *)(param_1 + 0x18)" (* "*") (cast_expression "(int *)(param_1 + 0x18)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x18)" (( "(") (binary_expression "param_1 + 0x18" (identifier "param_1") (+ "+") (number_literal "0x18")) () ")"))))) (; ";"))) (if_statement "if (((*(char *)(iVar1 + 0xe4) == '\0') && ((*(byte *)(iVar1 + 0xf8) & 4) == 0)) &&\n     ((*(int *)(param_1 + 0xb8) == 2 ||\n      ((*(char *)(param_1 + 0xf0) != '\0' && (*(int *)(param_1 + 0xb8) == 0)))))) {\n    *(undefined1 *)(iVar1 + 0xe4) = 1;\n    return;\n  }" (if "if") (parenthesized_expression "(((*(char *)(iVar1 + 0xe4) == '\0') && ((*(byte *)(iVar1 + 0xf8) & 4) == 0)) &&\n     ((*(int *)(param_1 + 0xb8) == 2 ||\n      ((*(char *)(param_1 + 0xf0) != '\0' && (*(int *)(param_1 + 0xb8) == 0))))))" (( "(") (binary_expression "((*(char *)(iVar1 + 0xe4) == '\0') && ((*(byte *)(iVar1 + 0xf8) & 4) == 0)) &&\n     ((*(int *)(param_1 + 0xb8) == 2 ||\n      ((*(char *)(param_1 + 0xf0) != '\0' && (*(int *)(param_1 + 0xb8) == 0)))))" (parenthesized_expression "((*(char *)(iVar1 + 0xe4) == '\0') && ((*(byte *)(iVar1 + 0xf8) & 4) == 0))" (( "(") (binary_expression "(*(char *)(iVar1 + 0xe4) == '\0') && ((*(byte *)(iVar1 + 0xf8) & 4) == 0)" (parenthesized_expression "(*(char *)(iVar1 + 0xe4) == '\0')" (( "(") (binary_expression "*(char *)(iVar1 + 0xe4) == '\0'" (pointer_expression "*(char *)(iVar1 + 0xe4)" (* "*") (cast_expression "(char *)(iVar1 + 0xe4)" (( "(") (type_descriptor "char *" (primitive_type "char") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar1 + 0xe4)" (( "(") (binary_expression "iVar1 + 0xe4" (identifier "iVar1") (+ "+") (number_literal "0xe4")) () ")")))) (== "==") (char_literal "'\0'" (' "'") (escape_sequence "\0") (' "'"))) () ")")) (&& "&&") (parenthesized_expression "((*(byte *)(iVar1 + 0xf8) & 4) == 0)" (( "(") (binary_expression "(*(byte *)(iVar1 + 0xf8) & 4) == 0" (parenthesized_expression "(*(byte *)(iVar1 + 0xf8) & 4)" (( "(") (binary_expression "*(byte *)(iVar1 + 0xf8) & 4" (pointer_expression "*(byte *)(iVar1 + 0xf8)" (* "*") (cast_expression "(byte *)(iVar1 + 0xf8)" (( "(") (type_descriptor "byte *" (type_identifier "byte") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar1 + 0xf8)" (( "(") (binary_expression "iVar1 + 0xf8" (identifier "iVar1") (+ "+") (number_literal "0xf8")) () ")")))) (& "&") (number_literal "4")) () ")")) (== "==") (number_literal "0")) () ")"))) () ")")) (&& "&&") (parenthesized_expression "((*(int *)(param_1 + 0xb8) == 2 ||\n      ((*(char *)(param_1 + 0xf0) != '\0' && (*(int *)(param_1 + 0xb8) == 0)))))" (( "(") (parenthesized_expression "(*(int *)(param_1 + 0xb8) == 2 ||\n      ((*(char *)(param_1 + 0xf0) != '\0' && (*(int *)(param_1 + 0xb8) == 0))))" (( "(") (binary_expression "*(int *)(param_1 + 0xb8) == 2 ||\n      ((*(char *)(param_1 + 0xf0) != '\0' && (*(int *)(param_1 + 0xb8) == 0)))" (binary_expression "*(int *)(param_1 + 0xb8) == 2" (pointer_expression "*(int *)(param_1 + 0xb8)" (* "*") (cast_expression "(int *)(param_1 + 0xb8)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0xb8)" (( "(") (binary_expression "param_1 + 0xb8" (identifier "param_1") (+ "+") (number_literal "0xb8")) () ")")))) (== "==") (number_literal "2")) (|| "||") (parenthesized_expression "((*(char *)(param_1 + 0xf0) != '\0' && (*(int *)(param_1 + 0xb8) == 0)))" (( "(") (parenthesized_expression "(*(char *)(param_1 + 0xf0) != '\0' && (*(int *)(param_1 + 0xb8) == 0))" (( "(") (binary_expression "*(char *)(param_1 + 0xf0) != '\0' && (*(int *)(param_1 + 0xb8) == 0)" (binary_expression "*(char *)(param_1 + 0xf0) != '\0'" (pointer_expression "*(char *)(param_1 + 0xf0)" (* "*") (cast_expression "(char *)(param_1 + 0xf0)" (( "(") (type_descriptor "char *" (primitive_type "char") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0xf0)" (( "(") (binary_expression "param_1 + 0xf0" (identifier "param_1") (+ "+") (number_literal "0xf0")) () ")")))) (!= "!=") (char_literal "'\0'" (' "'") (escape_sequence "\0") (' "'"))) (&& "&&") (parenthesized_expression "(*(int *)(param_1 + 0xb8) == 0)" (( "(") (binary_expression "*(int *)(param_1 + 0xb8) == 0" (pointer_expression "*(int *)(param_1 + 0xb8)" (* "*") (cast_expression "(int *)(param_1 + 0xb8)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0xb8)" (( "(") (binary_expression "param_1 + 0xb8" (identifier "param_1") (+ "+") (number_literal "0xb8")) () ")")))) (== "==") (number_literal "0")) () ")"))) () ")")) () ")"))) () ")")) () ")"))) () ")")) (compound_statement "{\n    *(undefined1 *)(iVar1 + 0xe4) = 1;\n    return;\n  }" ({ "{") (expression_statement "*(undefined1 *)(iVar1 + 0xe4) = 1;" (assignment_expression "*(undefined1 *)(iVar1 + 0xe4) = 1" (pointer_expression "*(undefined1 *)(iVar1 + 0xe4)" (* "*") (cast_expression "(undefined1 *)(iVar1 + 0xe4)" (( "(") (type_descriptor "undefined1 *" (type_identifier "undefined1") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar1 + 0xe4)" (( "(") (binary_expression "iVar1 + 0xe4" (identifier "iVar1") (+ "+") (number_literal "0xe4")) () ")")))) (= "=") (number_literal "1")) (; ";")) (return_statement "return;" (return "return") (; ";")) (} "}"))) (return_statement "return;" (return "return") (; ";")) (} "}")))

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

int __regparm3
function_1(type_1 *con,type_2 read_ready,type_2 write_ready,type_2 force_close)

{
  type_3 *pMVar1;
  int iVar2;
  type_4 var_1;
  type_5 var_8;
  
  var_8 = con->state;
  if (con->tls_read_ready == false) {
    if (force_close) goto LAB_000192c0;
    var_1 = con->event_loop_info;
    if (var_1 != var_2) goto LAB_0001926e;
    if (read_ready) goto LAB_000191f8;
LAB_0001927b:
    iVar2 = var_3(con);
    goto LAB_00019287;
  }
  if (force_close) {
LAB_000192c0:
    var_4(con,MHD_REQUEST_TERMINATED_WITH_ERROR);
    iVar2 = var_3(con);
    return iVar2;
  }
  var_1 = con->event_loop_info;
  if (var_1 == var_2) {
LAB_000191f8:
    var_5(con);
    iVar2 = var_3(con);
    if ((con->event_loop_info == var_6) && (write_ready)) goto LAB_00019300;
  }
  else {
LAB_0001926e:
    if ((var_1 != var_6) || (!write_ready)) goto LAB_0001927b;
LAB_00019300:
    var_7(con);
    iVar2 = var_3(con);
  }
  if ((var_8 == var_9) && (con->sk_nonblck != false)) {
    var_8 = con->state;
    if (var_8 == var_10) {
      var_7(con);
      iVar2 = var_3(con);
      var_8 = con->state;
    }
    if ((var_8 & ~MHD_CONNECTION_HEADER_PART_RECEIVED) == var_11) {
      var_7(con);
      iVar2 = var_3(con);
    }
  }
LAB_00019287:
  pMVar1 = con->daemon;
  if (((pMVar1->data_already_pending == false) &&
      ((pMVar1->options & var_12) == var_13)) &&
     ((con->event_loop_info == var_14 ||
      ((con->tls_read_ready != false && (con->event_loop_info == var_2)))))) {
    pMVar1->data_already_pending = true;
    return iVar2;
  }
  return iVar2;
}


(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)) (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: (primitive_type) declarator: (identifier)) (declaration type: (type_identifier) declarator: (identifier)) (expression_statement (assignment_expression left: (identifier) right: (pointer_expression argument: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))))))) (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: (char_literal (escape_sequence)))) consequence: (compound_statement (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (char_literal (escape_sequence)))) consequence: (goto_statement label: (statement_identifier))) (expression_statement (assignment_expression left: (identifier) right: (pointer_expression argument: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))))))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))) consequence: (goto_statement label: (statement_identifier))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (char_literal (escape_sequence)))) consequence: (goto_statement label: (statement_identifier))) (labeled_statement label: (statement_identifier) (expression_statement (call_expression function: (identifier) arguments: (argument_list (identifier))))) (goto_statement label: (statement_identifier)))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (char_literal (escape_sequence)))) consequence: (compound_statement (labeled_statement label: (statement_identifier) (expression_statement (call_expression function: (identifier) arguments: (argument_list (identifier) (number_literal))))) (expression_statement (call_expression function: (identifier) arguments: (argument_list (identifier)))) (return_statement))) (expression_statement (assignment_expression left: (identifier) right: (pointer_expression argument: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))))))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))) consequence: (compound_statement (labeled_statement label: (statement_identifier) (expression_statement (call_expression function: (identifier) arguments: (argument_list (identifier))))) (expression_statement (call_expression function: (identifier) arguments: (argument_list (identifier)))) (if_statement condition: (parenthesized_expression (binary_expression left: (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))) right: (parenthesized_expression (binary_expression left: (identifier) right: (char_literal (escape_sequence)))))) consequence: (goto_statement label: (statement_identifier)))) alternative: (else_clause (compound_statement (labeled_statement label: (statement_identifier) (if_statement condition: (parenthesized_expression (binary_expression left: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))) right: (parenthesized_expression (binary_expression left: (identifier) right: (char_literal (escape_sequence)))))) consequence: (goto_statement label: (statement_identifier)))) (labeled_statement label: (statement_identifier) (expression_statement (call_expression function: (identifier) arguments: (argument_list (identifier))))) (expression_statement (call_expression function: (identifier) arguments: (argument_list (identifier))))))) (if_statement condition: (parenthesized_expression (binary_expression left: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))) right: (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: (char_literal (escape_sequence)))))) consequence: (compound_statement (expression_statement (assignment_expression left: (identifier) right: (pointer_expression argument: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))))))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))) consequence: (compound_statement (expression_statement (call_expression function: (identifier) arguments: (argument_list (identifier)))) (expression_statement (call_expression function: (identifier) arguments: (argument_list (identifier)))) (expression_statement (assignment_expression left: (identifier) right: (pointer_expression argument: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))))))))) (if_statement condition: (parenthesized_expression (binary_expression left: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))) right: (number_literal))) consequence: (compound_statement (expression_statement (call_expression function: (identifier) arguments: (argument_list (identifier)))) (expression_statement (call_expression function: (identifier) arguments: (argument_list (identifier)))))))) (labeled_statement label: (statement_identifier) (expression_statement (assignment_expression left: (identifier) right: (pointer_expression argument: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal)))))))) (if_statement condition: (parenthesized_expression (binary_expression left: (parenthesized_expression (binary_expression left: (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: (char_literal (escape_sequence)))) right: (parenthesized_expression (binary_expression left: (parenthesized_expression (binary_expression left: (pointer_expression argument: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))))) right: (number_literal))) right: (number_literal))))) right: (parenthesized_expression (parenthesized_expression (binary_expression left: (binary_expression left: (pointer_expression argument: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))))) right: (number_literal)) right: (parenthesized_expression (parenthesized_expression (binary_expression left: (binary_expression left: (pointer_expression argument: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))))) right: (char_literal (escape_sequence))) right: (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: (compound_statement (expression_statement (assignment_expression left: (pointer_expression argument: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))))) right: (number_literal))) (return_statement))) (return_statement))))

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

void __regparm3 MASKED(int param_1,char param_2,char param_3,char param_4)

{
  int iVar1;
  int iVar2;
  uint uVar3;
  
  iVar1 = *(int *)(param_1 + 0xb4);
  if (*(char *)(param_1 + 0xf0) == '\0') {
    if (param_4 != '\0') goto LAB_000192c0;
    iVar2 = *(int *)(param_1 + 0xb8);
    if (iVar2 != 0) goto LAB_0001926e;
    if (param_2 != '\0') goto LAB_000191f8;
LAB_0001927b:
    FUN_00016a50(param_1);
    goto LAB_00019287;
  }
  if (param_4 != '\0') {
LAB_000192c0:
    FUN_00015170(param_1,1);
    FUN_00016a50(param_1);
    return;
  }
  iVar2 = *(int *)(param_1 + 0xb8);
  if (iVar2 == 0) {
LAB_000191f8:
    FUN_00015810(param_1);
    FUN_00016a50(param_1);
    if ((*(int *)(param_1 + 0xb8) == 1) && (param_3 != '\0')) goto LAB_00019300;
  }
  else {
LAB_0001926e:
    if ((iVar2 != 1) || (param_3 == '\0')) goto LAB_0001927b;
LAB_00019300:
    FUN_000159b0(param_1);
    FUN_00016a50(param_1);
  }
  if ((iVar1 == 0) && (*(char *)(param_1 + 0xa8) != '\0')) {
    uVar3 = *(uint *)(param_1 + 0xb4);
    if (uVar3 == 10) {
      FUN_000159b0(param_1);
      FUN_00016a50(param_1);
      uVar3 = *(uint *)(param_1 + 0xb4);
    }
    if ((uVar3 & 0xfffffffd) == 0xc) {
      FUN_000159b0(param_1);
      FUN_00016a50(param_1);
    }
  }
LAB_00019287:
  iVar1 = *(int *)(param_1 + 0x18);
  if (((*(char *)(iVar1 + 0xe4) == '\0') && ((*(byte *)(iVar1 + 0xf8) & 4) == 0)) &&
     ((*(int *)(param_1 + 0xb8) == 2 ||
      ((*(char *)(param_1 + 0xf0) != '\0' && (*(int *)(param_1 + 0xb8) == 0)))))) {
    *(undefined1 *)(iVar1 + 0xe4) = 1;
    return;
  }
  return;
}

