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

int sqlite3_bind_double(sqlite3_stmt *pStmt,int i,double rValue)

{
  Mem *p;
  int iVar1;
  
  iVar1 = vdbeUnbind((Vdbe *)pStmt,i);
  if (iVar1 == 0) {
    p = (Mem *)(*(int *)(pStmt + 0x60) + -0x28 + i * 0x28);
    if ((p->flags & 0x2400) == 0) {
      p->flags = 1;
    }
    else {
      vdbeMemClearExternAndSetNull(p);
    }
    if (!NAN(rValue)) {
      (p->u).r = rValue;
      p->flags = 8;
    }
    sqlite3_mutex_leave(*(sqlite3_mutex **)(*(int *)pStmt + 0xc));
  }
  return iVar1;
}



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

int FUN_00057bb0(int *param_1,int param_2,double param_3)

{
  double *pdVar1;
  int iVar2;
  
  iVar2 = FUN_00057780();
  if (iVar2 == 0) {
    pdVar1 = (double *)(param_1[0x18] + -0x28 + param_2 * 0x28);
    if (((ulonglong)pdVar1[1] & 0x2400) == 0) {
      *(undefined2 *)(pdVar1 + 1) = 1;
    }
    else {
      FUN_00026710();
    }
    if (!NAN(param_3)) {
      *pdVar1 = param_3;
      *(undefined2 *)(pdVar1 + 1) = 8;
    }
    FUN_0001b000(*(undefined4 *)(*param_1 + 0xc));
  }
  return iVar2;
}


PUSH EBP
PUSH EDI
PUSH ESI
PUSH EBX
CALL 0x00014d20
ADD EBX,0xf331b
SUB ESP,0x1c
MOV EDI,dword ptr [ESP + 0x30]
MOV EBP,dword ptr [ESP + 0x34]
FLD qword ptr [ESP + 0x38]
MOV EDX,EBP
MOV EAX,EDI
FSTP qword ptr [ESP + 0x8]
CALL 0x00057780
MOV ESI,EAX
TEST EAX,EAX
JNZ 0x00057c30
MOV EAX,dword ptr [EDI + 0x60]
LEA EDX,[EBP + EBP*0x4]
FLD qword ptr [ESP + 0x8]
LEA EBP,[EAX + EDX*0x8 + -0x28]
TEST word ptr [EBP + 0x8],0x2400
JNZ 0x00057c40
MOV EDX,0x1
MOV word ptr [EBP + 0x8],DX
FUCOMI ST0,ST0
JP 0x00057c18
MOV EAX,0x8
FSTP qword ptr [EBP]
MOV word ptr [EBP + 0x8],AX
JMP 0x00057c20
FSTP ST0
LEA ESI,[ESI]
MOV EAX,dword ptr [EDI]
SUB ESP,0xc
PUSH dword ptr [EAX + 0xc]
CALL 0x0001b000
ADD ESP,0x10
ADD ESP,0x1c
MOV EAX,ESI
POP EBX
POP ESI
POP EDI
POP EBP
RET
FSTP ST0
MOV EAX,EBP
CALL 0x00026710
FLD qword ptr [ESP + 0x8]
JMP 0x00057c01
(translation_unit "/* WARNING: Function: __i686.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */\n\nint FUN_00057bb0(int *param_1,int param_2,double param_3)\n\n{\n  double *pdVar1;\n  int iVar2;\n  \n  iVar2 = FUN_00057780();\n  if (iVar2 == 0) {\n    pdVar1 = (double *)(param_1[0x18] + -0x28 + param_2 * 0x28);\n    if (((ulonglong)pdVar1[1] & 0x2400) == 0) {\n      *(undefined2 *)(pdVar1 + 1) = 1;\n    }\n    else {\n      FUN_00026710();\n    }\n    if (!NAN(param_3)) {\n      *pdVar1 = param_3;\n      *(undefined2 *)(pdVar1 + 1) = 8;\n    }\n    FUN_0001b000(*(undefined4 *)(*param_1 + 0xc));\n  }\n  return iVar2;\n}\n\n" comment (function_definition "int FUN_00057bb0(int *param_1,int param_2,double param_3)\n\n{\n  double *pdVar1;\n  int iVar2;\n  \n  iVar2 = FUN_00057780();\n  if (iVar2 == 0) {\n    pdVar1 = (double *)(param_1[0x18] + -0x28 + param_2 * 0x28);\n    if (((ulonglong)pdVar1[1] & 0x2400) == 0) {\n      *(undefined2 *)(pdVar1 + 1) = 1;\n    }\n    else {\n      FUN_00026710();\n    }\n    if (!NAN(param_3)) {\n      *pdVar1 = param_3;\n      *(undefined2 *)(pdVar1 + 1) = 8;\n    }\n    FUN_0001b000(*(undefined4 *)(*param_1 + 0xc));\n  }\n  return iVar2;\n}" primitive_type (function_declarator "FUN_00057bb0(int *param_1,int param_2,double param_3)" identifier (parameter_list "(int *param_1,int param_2,double param_3)" ( (parameter_declaration "int *param_1" primitive_type (pointer_declarator "*param_1" * identifier)) , (parameter_declaration "int param_2" primitive_type identifier) , (parameter_declaration "double param_3" primitive_type identifier) ))) (compound_statement "{\n  double *pdVar1;\n  int iVar2;\n  \n  iVar2 = FUN_00057780();\n  if (iVar2 == 0) {\n    pdVar1 = (double *)(param_1[0x18] + -0x28 + param_2 * 0x28);\n    if (((ulonglong)pdVar1[1] & 0x2400) == 0) {\n      *(undefined2 *)(pdVar1 + 1) = 1;\n    }\n    else {\n      FUN_00026710();\n    }\n    if (!NAN(param_3)) {\n      *pdVar1 = param_3;\n      *(undefined2 *)(pdVar1 + 1) = 8;\n    }\n    FUN_0001b000(*(undefined4 *)(*param_1 + 0xc));\n  }\n  return iVar2;\n}" { (declaration "double *pdVar1;" primitive_type (pointer_declarator "*pdVar1" * identifier) ;) (declaration "int iVar2;" primitive_type identifier ;) (expression_statement "iVar2 = FUN_00057780();" (assignment_expression "iVar2 = FUN_00057780()" identifier = (call_expression "FUN_00057780()" identifier (argument_list "()" ( )))) ;) (if_statement "if (iVar2 == 0) {\n    pdVar1 = (double *)(param_1[0x18] + -0x28 + param_2 * 0x28);\n    if (((ulonglong)pdVar1[1] & 0x2400) == 0) {\n      *(undefined2 *)(pdVar1 + 1) = 1;\n    }\n    else {\n      FUN_00026710();\n    }\n    if (!NAN(param_3)) {\n      *pdVar1 = param_3;\n      *(undefined2 *)(pdVar1 + 1) = 8;\n    }\n    FUN_0001b000(*(undefined4 *)(*param_1 + 0xc));\n  }" if (parenthesized_expression "(iVar2 == 0)" ( (binary_expression "iVar2 == 0" identifier == number_literal) )) (compound_statement "{\n    pdVar1 = (double *)(param_1[0x18] + -0x28 + param_2 * 0x28);\n    if (((ulonglong)pdVar1[1] & 0x2400) == 0) {\n      *(undefined2 *)(pdVar1 + 1) = 1;\n    }\n    else {\n      FUN_00026710();\n    }\n    if (!NAN(param_3)) {\n      *pdVar1 = param_3;\n      *(undefined2 *)(pdVar1 + 1) = 8;\n    }\n    FUN_0001b000(*(undefined4 *)(*param_1 + 0xc));\n  }" { (expression_statement "pdVar1 = (double *)(param_1[0x18] + -0x28 + param_2 * 0x28);" (assignment_expression "pdVar1 = (double *)(param_1[0x18] + -0x28 + param_2 * 0x28)" identifier = (cast_expression "(double *)(param_1[0x18] + -0x28 + param_2 * 0x28)" ( (type_descriptor "double *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1[0x18] + -0x28 + param_2 * 0x28)" ( (binary_expression "param_1[0x18] + -0x28 + param_2 * 0x28" (binary_expression "param_1[0x18] + -0x28" (subscript_expression "param_1[0x18]" identifier [ number_literal ]) + number_literal) + (binary_expression "param_2 * 0x28" identifier * number_literal)) )))) ;) (if_statement "if (((ulonglong)pdVar1[1] & 0x2400) == 0) {\n      *(undefined2 *)(pdVar1 + 1) = 1;\n    }\n    else {\n      FUN_00026710();\n    }" if (parenthesized_expression "(((ulonglong)pdVar1[1] & 0x2400) == 0)" ( (binary_expression "((ulonglong)pdVar1[1] & 0x2400) == 0" (parenthesized_expression "((ulonglong)pdVar1[1] & 0x2400)" ( (binary_expression "(ulonglong)pdVar1[1] & 0x2400" (cast_expression "(ulonglong)pdVar1[1]" ( (type_descriptor "ulonglong" type_identifier) ) (subscript_expression "pdVar1[1]" identifier [ number_literal ])) & number_literal) )) == number_literal) )) (compound_statement "{\n      *(undefined2 *)(pdVar1 + 1) = 1;\n    }" { (expression_statement "*(undefined2 *)(pdVar1 + 1) = 1;" (assignment_expression "*(undefined2 *)(pdVar1 + 1) = 1" (pointer_expression "*(undefined2 *)(pdVar1 + 1)" * (cast_expression "(undefined2 *)(pdVar1 + 1)" ( (type_descriptor "undefined2 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(pdVar1 + 1)" ( (binary_expression "pdVar1 + 1" identifier + number_literal) )))) = number_literal) ;) }) (else_clause "else {\n      FUN_00026710();\n    }" else (compound_statement "{\n      FUN_00026710();\n    }" { (expression_statement "FUN_00026710();" (call_expression "FUN_00026710()" identifier (argument_list "()" ( ))) ;) }))) (if_statement "if (!NAN(param_3)) {\n      *pdVar1 = param_3;\n      *(undefined2 *)(pdVar1 + 1) = 8;\n    }" if (parenthesized_expression "(!NAN(param_3))" ( (unary_expression "!NAN(param_3)" ! (call_expression "NAN(param_3)" identifier (argument_list "(param_3)" ( identifier )))) )) (compound_statement "{\n      *pdVar1 = param_3;\n      *(undefined2 *)(pdVar1 + 1) = 8;\n    }" { (expression_statement "*pdVar1 = param_3;" (assignment_expression "*pdVar1 = param_3" (pointer_expression "*pdVar1" * identifier) = identifier) ;) (expression_statement "*(undefined2 *)(pdVar1 + 1) = 8;" (assignment_expression "*(undefined2 *)(pdVar1 + 1) = 8" (pointer_expression "*(undefined2 *)(pdVar1 + 1)" * (cast_expression "(undefined2 *)(pdVar1 + 1)" ( (type_descriptor "undefined2 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(pdVar1 + 1)" ( (binary_expression "pdVar1 + 1" identifier + number_literal) )))) = number_literal) ;) })) (expression_statement "FUN_0001b000(*(undefined4 *)(*param_1 + 0xc));" (call_expression "FUN_0001b000(*(undefined4 *)(*param_1 + 0xc))" identifier (argument_list "(*(undefined4 *)(*param_1 + 0xc))" ( (pointer_expression "*(undefined4 *)(*param_1 + 0xc)" * (cast_expression "(undefined4 *)(*param_1 + 0xc)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(*param_1 + 0xc)" ( (binary_expression "*param_1 + 0xc" (pointer_expression "*param_1" * identifier) + number_literal) )))) ))) ;) })) (return_statement "return iVar2;" return identifier ;) })))
(translation_unit "/* WARNING: Function: __x86.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */\n/* WARNING: Unknown calling convention */\n\nint sqlite3_bind_double(sqlite3_stmt *pStmt,int i,double rValue)\n\n{\n  Mem *p;\n  int iVar1;\n  \n  iVar1 = vdbeUnbind((Vdbe *)pStmt,i);\n  if (iVar1 == 0) {\n    p = (Mem *)(*(int *)(pStmt + 0x60) + -0x28 + i * 0x28);\n    if ((p->flags & 0x2400) == 0) {\n      p->flags = 1;\n    }\n    else {\n      vdbeMemClearExternAndSetNull(p);\n    }\n    if (!NAN(rValue)) {\n      (p->u).r = rValue;\n      p->flags = 8;\n    }\n    sqlite3_mutex_leave(*(sqlite3_mutex **)(*(int *)pStmt + 0xc));\n  }\n  return iVar1;\n}\n\n" comment comment (function_definition "int sqlite3_bind_double(sqlite3_stmt *pStmt,int i,double rValue)\n\n{\n  Mem *p;\n  int iVar1;\n  \n  iVar1 = vdbeUnbind((Vdbe *)pStmt,i);\n  if (iVar1 == 0) {\n    p = (Mem *)(*(int *)(pStmt + 0x60) + -0x28 + i * 0x28);\n    if ((p->flags & 0x2400) == 0) {\n      p->flags = 1;\n    }\n    else {\n      vdbeMemClearExternAndSetNull(p);\n    }\n    if (!NAN(rValue)) {\n      (p->u).r = rValue;\n      p->flags = 8;\n    }\n    sqlite3_mutex_leave(*(sqlite3_mutex **)(*(int *)pStmt + 0xc));\n  }\n  return iVar1;\n}" primitive_type (function_declarator "sqlite3_bind_double(sqlite3_stmt *pStmt,int i,double rValue)" identifier (parameter_list "(sqlite3_stmt *pStmt,int i,double rValue)" ( (parameter_declaration "sqlite3_stmt *pStmt" type_identifier (pointer_declarator "*pStmt" * identifier)) , (parameter_declaration "int i" primitive_type identifier) , (parameter_declaration "double rValue" primitive_type identifier) ))) (compound_statement "{\n  Mem *p;\n  int iVar1;\n  \n  iVar1 = vdbeUnbind((Vdbe *)pStmt,i);\n  if (iVar1 == 0) {\n    p = (Mem *)(*(int *)(pStmt + 0x60) + -0x28 + i * 0x28);\n    if ((p->flags & 0x2400) == 0) {\n      p->flags = 1;\n    }\n    else {\n      vdbeMemClearExternAndSetNull(p);\n    }\n    if (!NAN(rValue)) {\n      (p->u).r = rValue;\n      p->flags = 8;\n    }\n    sqlite3_mutex_leave(*(sqlite3_mutex **)(*(int *)pStmt + 0xc));\n  }\n  return iVar1;\n}" { (declaration "Mem *p;" type_identifier (pointer_declarator "*p" * identifier) ;) (declaration "int iVar1;" primitive_type identifier ;) (expression_statement "iVar1 = vdbeUnbind((Vdbe *)pStmt,i);" (assignment_expression "iVar1 = vdbeUnbind((Vdbe *)pStmt,i)" identifier = (call_expression "vdbeUnbind((Vdbe *)pStmt,i)" identifier (argument_list "((Vdbe *)pStmt,i)" ( (cast_expression "(Vdbe *)pStmt" ( (type_descriptor "Vdbe *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier) , identifier )))) ;) (if_statement "if (iVar1 == 0) {\n    p = (Mem *)(*(int *)(pStmt + 0x60) + -0x28 + i * 0x28);\n    if ((p->flags & 0x2400) == 0) {\n      p->flags = 1;\n    }\n    else {\n      vdbeMemClearExternAndSetNull(p);\n    }\n    if (!NAN(rValue)) {\n      (p->u).r = rValue;\n      p->flags = 8;\n    }\n    sqlite3_mutex_leave(*(sqlite3_mutex **)(*(int *)pStmt + 0xc));\n  }" if (parenthesized_expression "(iVar1 == 0)" ( (binary_expression "iVar1 == 0" identifier == number_literal) )) (compound_statement "{\n    p = (Mem *)(*(int *)(pStmt + 0x60) + -0x28 + i * 0x28);\n    if ((p->flags & 0x2400) == 0) {\n      p->flags = 1;\n    }\n    else {\n      vdbeMemClearExternAndSetNull(p);\n    }\n    if (!NAN(rValue)) {\n      (p->u).r = rValue;\n      p->flags = 8;\n    }\n    sqlite3_mutex_leave(*(sqlite3_mutex **)(*(int *)pStmt + 0xc));\n  }" { (expression_statement "p = (Mem *)(*(int *)(pStmt + 0x60) + -0x28 + i * 0x28);" (assignment_expression "p = (Mem *)(*(int *)(pStmt + 0x60) + -0x28 + i * 0x28)" identifier = (cast_expression "(Mem *)(*(int *)(pStmt + 0x60) + -0x28 + i * 0x28)" ( (type_descriptor "Mem *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(*(int *)(pStmt + 0x60) + -0x28 + i * 0x28)" ( (binary_expression "*(int *)(pStmt + 0x60) + -0x28 + i * 0x28" (binary_expression "*(int *)(pStmt + 0x60) + -0x28" (pointer_expression "*(int *)(pStmt + 0x60)" * (cast_expression "(int *)(pStmt + 0x60)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(pStmt + 0x60)" ( (binary_expression "pStmt + 0x60" identifier + number_literal) )))) + number_literal) + (binary_expression "i * 0x28" identifier * number_literal)) )))) ;) (if_statement "if ((p->flags & 0x2400) == 0) {\n      p->flags = 1;\n    }\n    else {\n      vdbeMemClearExternAndSetNull(p);\n    }" if (parenthesized_expression "((p->flags & 0x2400) == 0)" ( (binary_expression "(p->flags & 0x2400) == 0" (parenthesized_expression "(p->flags & 0x2400)" ( (binary_expression "p->flags & 0x2400" (field_expression "p->flags" identifier -> field_identifier) & number_literal) )) == number_literal) )) (compound_statement "{\n      p->flags = 1;\n    }" { (expression_statement "p->flags = 1;" (assignment_expression "p->flags = 1" (field_expression "p->flags" identifier -> field_identifier) = number_literal) ;) }) (else_clause "else {\n      vdbeMemClearExternAndSetNull(p);\n    }" else (compound_statement "{\n      vdbeMemClearExternAndSetNull(p);\n    }" { (expression_statement "vdbeMemClearExternAndSetNull(p);" (call_expression "vdbeMemClearExternAndSetNull(p)" identifier (argument_list "(p)" ( identifier ))) ;) }))) (if_statement "if (!NAN(rValue)) {\n      (p->u).r = rValue;\n      p->flags = 8;\n    }" if (parenthesized_expression "(!NAN(rValue))" ( (unary_expression "!NAN(rValue)" ! (call_expression "NAN(rValue)" identifier (argument_list "(rValue)" ( identifier )))) )) (compound_statement "{\n      (p->u).r = rValue;\n      p->flags = 8;\n    }" { (expression_statement "(p->u).r = rValue;" (assignment_expression "(p->u).r = rValue" (field_expression "(p->u).r" (parenthesized_expression "(p->u)" ( (field_expression "p->u" identifier -> field_identifier) )) . field_identifier) = identifier) ;) (expression_statement "p->flags = 8;" (assignment_expression "p->flags = 8" (field_expression "p->flags" identifier -> field_identifier) = number_literal) ;) })) (expression_statement "sqlite3_mutex_leave(*(sqlite3_mutex **)(*(int *)pStmt + 0xc));" (call_expression "sqlite3_mutex_leave(*(sqlite3_mutex **)(*(int *)pStmt + 0xc))" identifier (argument_list "(*(sqlite3_mutex **)(*(int *)pStmt + 0xc))" ( (pointer_expression "*(sqlite3_mutex **)(*(int *)pStmt + 0xc)" * (cast_expression "(sqlite3_mutex **)(*(int *)pStmt + 0xc)" ( (type_descriptor "sqlite3_mutex **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(*(int *)pStmt + 0xc)" ( (binary_expression "*(int *)pStmt + 0xc" (pointer_expression "*(int *)pStmt" * (cast_expression "(int *)pStmt" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) identifier)) + number_literal) )))) ))) ;) })) (return_statement "return iVar1;" return identifier ;) })))
(translation_unit "int FUN_00057bb0(int *param_1,int param_2,double param_3)\n\n{\n  double *pdVar1;\n  int iVar2;\n  \n  iVar2 = FUN_00057780();\n  if (iVar2 == 0) {\n    pdVar1 = (double *)(param_1[0x18] + -0x28 + param_2 * 0x28);\n    if (((ulonglong)pdVar1[1] & 0x2400) == 0) {\n      *(undefined2 *)(pdVar1 + 1) = 1;\n    }\n    else {\n      FUN_00026710();\n    }\n    if (!NAN(param_3)) {\n      *pdVar1 = param_3;\n      *(undefined2 *)(pdVar1 + 1) = 8;\n    }\n    FUN_0001b000(*(undefined4 *)(*param_1 + 0xc));\n  }\n  return iVar2;\n}\n\n" (function_definition "int FUN_00057bb0(int *param_1,int param_2,double param_3)\n\n{\n  double *pdVar1;\n  int iVar2;\n  \n  iVar2 = FUN_00057780();\n  if (iVar2 == 0) {\n    pdVar1 = (double *)(param_1[0x18] + -0x28 + param_2 * 0x28);\n    if (((ulonglong)pdVar1[1] & 0x2400) == 0) {\n      *(undefined2 *)(pdVar1 + 1) = 1;\n    }\n    else {\n      FUN_00026710();\n    }\n    if (!NAN(param_3)) {\n      *pdVar1 = param_3;\n      *(undefined2 *)(pdVar1 + 1) = 8;\n    }\n    FUN_0001b000(*(undefined4 *)(*param_1 + 0xc));\n  }\n  return iVar2;\n}" primitive_type (function_declarator "FUN_00057bb0(int *param_1,int param_2,double param_3)" identifier (parameter_list "(int *param_1,int param_2,double param_3)" ( (parameter_declaration "int *param_1" primitive_type (pointer_declarator "*param_1" * identifier)) , (parameter_declaration "int param_2" primitive_type identifier) , (parameter_declaration "double param_3" primitive_type identifier) ))) (compound_statement "{\n  double *pdVar1;\n  int iVar2;\n  \n  iVar2 = FUN_00057780();\n  if (iVar2 == 0) {\n    pdVar1 = (double *)(param_1[0x18] + -0x28 + param_2 * 0x28);\n    if (((ulonglong)pdVar1[1] & 0x2400) == 0) {\n      *(undefined2 *)(pdVar1 + 1) = 1;\n    }\n    else {\n      FUN_00026710();\n    }\n    if (!NAN(param_3)) {\n      *pdVar1 = param_3;\n      *(undefined2 *)(pdVar1 + 1) = 8;\n    }\n    FUN_0001b000(*(undefined4 *)(*param_1 + 0xc));\n  }\n  return iVar2;\n}" { (declaration "double *pdVar1;" primitive_type (pointer_declarator "*pdVar1" * identifier) ;) (declaration "int iVar2;" primitive_type identifier ;) (expression_statement "iVar2 = FUN_00057780();" (assignment_expression "iVar2 = FUN_00057780()" identifier = (call_expression "FUN_00057780()" identifier (argument_list "()" ( )))) ;) (if_statement "if (iVar2 == 0) {\n    pdVar1 = (double *)(param_1[0x18] + -0x28 + param_2 * 0x28);\n    if (((ulonglong)pdVar1[1] & 0x2400) == 0) {\n      *(undefined2 *)(pdVar1 + 1) = 1;\n    }\n    else {\n      FUN_00026710();\n    }\n    if (!NAN(param_3)) {\n      *pdVar1 = param_3;\n      *(undefined2 *)(pdVar1 + 1) = 8;\n    }\n    FUN_0001b000(*(undefined4 *)(*param_1 + 0xc));\n  }" if (parenthesized_expression "(iVar2 == 0)" ( (binary_expression "iVar2 == 0" identifier == number_literal) )) (compound_statement "{\n    pdVar1 = (double *)(param_1[0x18] + -0x28 + param_2 * 0x28);\n    if (((ulonglong)pdVar1[1] & 0x2400) == 0) {\n      *(undefined2 *)(pdVar1 + 1) = 1;\n    }\n    else {\n      FUN_00026710();\n    }\n    if (!NAN(param_3)) {\n      *pdVar1 = param_3;\n      *(undefined2 *)(pdVar1 + 1) = 8;\n    }\n    FUN_0001b000(*(undefined4 *)(*param_1 + 0xc));\n  }" { (expression_statement "pdVar1 = (double *)(param_1[0x18] + -0x28 + param_2 * 0x28);" (assignment_expression "pdVar1 = (double *)(param_1[0x18] + -0x28 + param_2 * 0x28)" identifier = (cast_expression "(double *)(param_1[0x18] + -0x28 + param_2 * 0x28)" ( (type_descriptor "double *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1[0x18] + -0x28 + param_2 * 0x28)" ( (binary_expression "param_1[0x18] + -0x28 + param_2 * 0x28" (binary_expression "param_1[0x18] + -0x28" (subscript_expression "param_1[0x18]" identifier [ number_literal ]) + number_literal) + (binary_expression "param_2 * 0x28" identifier * number_literal)) )))) ;) (if_statement "if (((ulonglong)pdVar1[1] & 0x2400) == 0) {\n      *(undefined2 *)(pdVar1 + 1) = 1;\n    }\n    else {\n      FUN_00026710();\n    }" if (parenthesized_expression "(((ulonglong)pdVar1[1] & 0x2400) == 0)" ( (binary_expression "((ulonglong)pdVar1[1] & 0x2400) == 0" (parenthesized_expression "((ulonglong)pdVar1[1] & 0x2400)" ( (binary_expression "(ulonglong)pdVar1[1] & 0x2400" (cast_expression "(ulonglong)pdVar1[1]" ( (type_descriptor "ulonglong" type_identifier) ) (subscript_expression "pdVar1[1]" identifier [ number_literal ])) & number_literal) )) == number_literal) )) (compound_statement "{\n      *(undefined2 *)(pdVar1 + 1) = 1;\n    }" { (expression_statement "*(undefined2 *)(pdVar1 + 1) = 1;" (assignment_expression "*(undefined2 *)(pdVar1 + 1) = 1" (pointer_expression "*(undefined2 *)(pdVar1 + 1)" * (cast_expression "(undefined2 *)(pdVar1 + 1)" ( (type_descriptor "undefined2 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(pdVar1 + 1)" ( (binary_expression "pdVar1 + 1" identifier + number_literal) )))) = number_literal) ;) }) (else_clause "else {\n      FUN_00026710();\n    }" else (compound_statement "{\n      FUN_00026710();\n    }" { (expression_statement "FUN_00026710();" (call_expression "FUN_00026710()" identifier (argument_list "()" ( ))) ;) }))) (if_statement "if (!NAN(param_3)) {\n      *pdVar1 = param_3;\n      *(undefined2 *)(pdVar1 + 1) = 8;\n    }" if (parenthesized_expression "(!NAN(param_3))" ( (unary_expression "!NAN(param_3)" ! (call_expression "NAN(param_3)" identifier (argument_list "(param_3)" ( identifier )))) )) (compound_statement "{\n      *pdVar1 = param_3;\n      *(undefined2 *)(pdVar1 + 1) = 8;\n    }" { (expression_statement "*pdVar1 = param_3;" (assignment_expression "*pdVar1 = param_3" (pointer_expression "*pdVar1" * identifier) = identifier) ;) (expression_statement "*(undefined2 *)(pdVar1 + 1) = 8;" (assignment_expression "*(undefined2 *)(pdVar1 + 1) = 8" (pointer_expression "*(undefined2 *)(pdVar1 + 1)" * (cast_expression "(undefined2 *)(pdVar1 + 1)" ( (type_descriptor "undefined2 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(pdVar1 + 1)" ( (binary_expression "pdVar1 + 1" identifier + number_literal) )))) = number_literal) ;) })) (expression_statement "FUN_0001b000(*(undefined4 *)(*param_1 + 0xc));" (call_expression "FUN_0001b000(*(undefined4 *)(*param_1 + 0xc))" identifier (argument_list "(*(undefined4 *)(*param_1 + 0xc))" ( (pointer_expression "*(undefined4 *)(*param_1 + 0xc)" * (cast_expression "(undefined4 *)(*param_1 + 0xc)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(*param_1 + 0xc)" ( (binary_expression "*param_1 + 0xc" (pointer_expression "*param_1" * identifier) + number_literal) )))) ))) ;) })) (return_statement "return iVar2;" return identifier ;) })))
(translation_unit (function_definition TYPE (function_declarator IDENT (parameter_list ( (parameter_declaration TYPE (pointer_declarator * IDENT)) , (parameter_declaration TYPE IDENT) , (parameter_declaration TYPE IDENT) ))) (compound_statement { (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE IDENT ;) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( )))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT == LIT) )) (compound_statement { (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression (binary_expression (subscript_expression IDENT [ LIT ]) + LIT) + (binary_expression IDENT * LIT)) )))) ;) (if_statement if (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression (cast_expression ( (type_descriptor TYPE) ) (subscript_expression IDENT [ LIT ])) & 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) ;) }) (else_clause else (compound_statement { (expression_statement (call_expression IDENT (argument_list ( ))) ;) }))) (if_statement if (parenthesized_expression ( (unary_expression ! (call_expression IDENT (argument_list ( IDENT )))) )) (compound_statement { (expression_statement (assignment_expression (pointer_expression * IDENT) = IDENT) ;) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) = LIT) ;) })) (expression_statement (call_expression IDENT (argument_list ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression (pointer_expression * IDENT) + LIT) )))) ))) ;) })) (return_statement return IDENT ;) })))
(function_definition "int FUN_00057bb0(int *param_1,int param_2,double param_3)\n\n{\n  double *pdVar1;\n  int iVar2;\n  \n  iVar2 = FUN_00057780();\n  if (iVar2 == 0) {\n    pdVar1 = (double *)(param_1[0x18] + -0x28 + param_2 * 0x28);\n    if (((ulonglong)pdVar1[1] & 0x2400) == 0) {\n      *(undefined2 *)(pdVar1 + 1) = 1;\n    }\n    else {\n      FUN_00026710();\n    }\n    if (!NAN(param_3)) {\n      *pdVar1 = param_3;\n      *(undefined2 *)(pdVar1 + 1) = 8;\n    }\n    FUN_0001b000(*(undefined4 *)(*param_1 + 0xc));\n  }\n  return iVar2;\n}" (primitive_type "int") (function_declarator "FUN_00057bb0(int *param_1,int param_2,double param_3)" (identifier "FUN_00057bb0") (parameter_list "(int *param_1,int param_2,double param_3)" (( "(") (parameter_declaration "int *param_1" (primitive_type "int") (pointer_declarator "*param_1" (* "*") (identifier "param_1"))) (, ",") (parameter_declaration "int param_2" (primitive_type "int") (identifier "param_2")) (, ",") (parameter_declaration "double param_3" (primitive_type "double") (identifier "param_3")) () ")"))) (compound_statement "{\n  double *pdVar1;\n  int iVar2;\n  \n  iVar2 = FUN_00057780();\n  if (iVar2 == 0) {\n    pdVar1 = (double *)(param_1[0x18] + -0x28 + param_2 * 0x28);\n    if (((ulonglong)pdVar1[1] & 0x2400) == 0) {\n      *(undefined2 *)(pdVar1 + 1) = 1;\n    }\n    else {\n      FUN_00026710();\n    }\n    if (!NAN(param_3)) {\n      *pdVar1 = param_3;\n      *(undefined2 *)(pdVar1 + 1) = 8;\n    }\n    FUN_0001b000(*(undefined4 *)(*param_1 + 0xc));\n  }\n  return iVar2;\n}" ({ "{") (declaration "double *pdVar1;" (primitive_type "double") (pointer_declarator "*pdVar1" (* "*") (identifier "pdVar1")) (; ";")) (declaration "int iVar2;" (primitive_type "int") (identifier "iVar2") (; ";")) (expression_statement "iVar2 = FUN_00057780();" (assignment_expression "iVar2 = FUN_00057780()" (identifier "iVar2") (= "=") (call_expression "FUN_00057780()" (identifier "FUN_00057780") (argument_list "()" (( "(") () ")")))) (; ";")) (if_statement "if (iVar2 == 0) {\n    pdVar1 = (double *)(param_1[0x18] + -0x28 + param_2 * 0x28);\n    if (((ulonglong)pdVar1[1] & 0x2400) == 0) {\n      *(undefined2 *)(pdVar1 + 1) = 1;\n    }\n    else {\n      FUN_00026710();\n    }\n    if (!NAN(param_3)) {\n      *pdVar1 = param_3;\n      *(undefined2 *)(pdVar1 + 1) = 8;\n    }\n    FUN_0001b000(*(undefined4 *)(*param_1 + 0xc));\n  }" (if "if") (parenthesized_expression "(iVar2 == 0)" (( "(") (binary_expression "iVar2 == 0" (identifier "iVar2") (== "==") (number_literal "0")) () ")")) (compound_statement "{\n    pdVar1 = (double *)(param_1[0x18] + -0x28 + param_2 * 0x28);\n    if (((ulonglong)pdVar1[1] & 0x2400) == 0) {\n      *(undefined2 *)(pdVar1 + 1) = 1;\n    }\n    else {\n      FUN_00026710();\n    }\n    if (!NAN(param_3)) {\n      *pdVar1 = param_3;\n      *(undefined2 *)(pdVar1 + 1) = 8;\n    }\n    FUN_0001b000(*(undefined4 *)(*param_1 + 0xc));\n  }" ({ "{") (expression_statement "pdVar1 = (double *)(param_1[0x18] + -0x28 + param_2 * 0x28);" (assignment_expression "pdVar1 = (double *)(param_1[0x18] + -0x28 + param_2 * 0x28)" (identifier "pdVar1") (= "=") (cast_expression "(double *)(param_1[0x18] + -0x28 + param_2 * 0x28)" (( "(") (type_descriptor "double *" (primitive_type "double") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1[0x18] + -0x28 + param_2 * 0x28)" (( "(") (binary_expression "param_1[0x18] + -0x28 + param_2 * 0x28" (binary_expression "param_1[0x18] + -0x28" (subscript_expression "param_1[0x18]" (identifier "param_1") ([ "[") (number_literal "0x18") (] "]")) (+ "+") (number_literal "-0x28")) (+ "+") (binary_expression "param_2 * 0x28" (identifier "param_2") (* "*") (number_literal "0x28"))) () ")")))) (; ";")) (if_statement "if (((ulonglong)pdVar1[1] & 0x2400) == 0) {\n      *(undefined2 *)(pdVar1 + 1) = 1;\n    }\n    else {\n      FUN_00026710();\n    }" (if "if") (parenthesized_expression "(((ulonglong)pdVar1[1] & 0x2400) == 0)" (( "(") (binary_expression "((ulonglong)pdVar1[1] & 0x2400) == 0" (parenthesized_expression "((ulonglong)pdVar1[1] & 0x2400)" (( "(") (binary_expression "(ulonglong)pdVar1[1] & 0x2400" (cast_expression "(ulonglong)pdVar1[1]" (( "(") (type_descriptor "ulonglong" (type_identifier "ulonglong")) () ")") (subscript_expression "pdVar1[1]" (identifier "pdVar1") ([ "[") (number_literal "1") (] "]"))) (& "&") (number_literal "0x2400")) () ")")) (== "==") (number_literal "0")) () ")")) (compound_statement "{\n      *(undefined2 *)(pdVar1 + 1) = 1;\n    }" ({ "{") (expression_statement "*(undefined2 *)(pdVar1 + 1) = 1;" (assignment_expression "*(undefined2 *)(pdVar1 + 1) = 1" (pointer_expression "*(undefined2 *)(pdVar1 + 1)" (* "*") (cast_expression "(undefined2 *)(pdVar1 + 1)" (( "(") (type_descriptor "undefined2 *" (type_identifier "undefined2") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(pdVar1 + 1)" (( "(") (binary_expression "pdVar1 + 1" (identifier "pdVar1") (+ "+") (number_literal "1")) () ")")))) (= "=") (number_literal "1")) (; ";")) (} "}")) (else_clause "else {\n      FUN_00026710();\n    }" (else "else") (compound_statement "{\n      FUN_00026710();\n    }" ({ "{") (expression_statement "FUN_00026710();" (call_expression "FUN_00026710()" (identifier "FUN_00026710") (argument_list "()" (( "(") () ")"))) (; ";")) (} "}")))) (if_statement "if (!NAN(param_3)) {\n      *pdVar1 = param_3;\n      *(undefined2 *)(pdVar1 + 1) = 8;\n    }" (if "if") (parenthesized_expression "(!NAN(param_3))" (( "(") (unary_expression "!NAN(param_3)" (! "!") (call_expression "NAN(param_3)" (identifier "NAN") (argument_list "(param_3)" (( "(") (identifier "param_3") () ")")))) () ")")) (compound_statement "{\n      *pdVar1 = param_3;\n      *(undefined2 *)(pdVar1 + 1) = 8;\n    }" ({ "{") (expression_statement "*pdVar1 = param_3;" (assignment_expression "*pdVar1 = param_3" (pointer_expression "*pdVar1" (* "*") (identifier "pdVar1")) (= "=") (identifier "param_3")) (; ";")) (expression_statement "*(undefined2 *)(pdVar1 + 1) = 8;" (assignment_expression "*(undefined2 *)(pdVar1 + 1) = 8" (pointer_expression "*(undefined2 *)(pdVar1 + 1)" (* "*") (cast_expression "(undefined2 *)(pdVar1 + 1)" (( "(") (type_descriptor "undefined2 *" (type_identifier "undefined2") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(pdVar1 + 1)" (( "(") (binary_expression "pdVar1 + 1" (identifier "pdVar1") (+ "+") (number_literal "1")) () ")")))) (= "=") (number_literal "8")) (; ";")) (} "}"))) (expression_statement "FUN_0001b000(*(undefined4 *)(*param_1 + 0xc));" (call_expression "FUN_0001b000(*(undefined4 *)(*param_1 + 0xc))" (identifier "FUN_0001b000") (argument_list "(*(undefined4 *)(*param_1 + 0xc))" (( "(") (pointer_expression "*(undefined4 *)(*param_1 + 0xc)" (* "*") (cast_expression "(undefined4 *)(*param_1 + 0xc)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(*param_1 + 0xc)" (( "(") (binary_expression "*param_1 + 0xc" (pointer_expression "*param_1" (* "*") (identifier "param_1")) (+ "+") (number_literal "0xc")) () ")")))) () ")"))) (; ";")) (} "}"))) (return_statement "return iVar2;" (return "return") (identifier "iVar2") (; ";")) (} "}")))

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

int function_1(type_1 *var_3,int var_4,double rValue)

{
  type_2 *p;
  int var_2;
  
  var_2 = var_1((type_3 *)var_3,var_4);
  if (var_2 == 0) {
    p = (type_2 *)(*(int *)(var_3 + 0x60) + -0x28 + var_4 * 0x28);
    if ((p->flags & 0x2400) == 0) {
      p->flags = 1;
    }
    else {
      var_5(p);
    }
    if (!var_6(rValue)) {
      (p->u).r = rValue;
      p->flags = 8;
    }
    var_7(*(type_4 **)(*(int *)var_3 + 0xc));
  }
  return var_2;
}


(translation_unit (function_definition type: (primitive_type) declarator: (function_declarator declarator: (identifier) parameters: (parameter_list (parameter_declaration type: (primitive_type) declarator: (pointer_declarator declarator: (identifier))) (parameter_declaration type: (primitive_type) declarator: (identifier)) (parameter_declaration type: (primitive_type) declarator: (identifier)))) body: (compound_statement (declaration type: (primitive_type) declarator: (pointer_declarator declarator: (identifier))) (declaration type: (primitive_type) declarator: (identifier)) (expression_statement (assignment_expression left: (identifier) right: (call_expression function: (identifier) arguments: (argument_list)))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))) consequence: (compound_statement (expression_statement (assignment_expression left: (identifier) right: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (binary_expression left: (subscript_expression argument: (identifier) index: (number_literal)) right: (number_literal)) right: (binary_expression left: (identifier) right: (number_literal))))))) (if_statement condition: (parenthesized_expression (binary_expression left: (parenthesized_expression (binary_expression left: (cast_expression type: (type_descriptor type: (type_identifier)) value: (subscript_expression argument: (identifier) index: (number_literal))) 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)))) alternative: (else_clause (compound_statement (expression_statement (call_expression function: (identifier) arguments: (argument_list)))))) (if_statement condition: (parenthesized_expression (unary_expression argument: (call_expression function: (identifier) arguments: (argument_list (identifier))))) consequence: (compound_statement (expression_statement (assignment_expression left: (pointer_expression argument: (identifier)) right: (identifier))) (expression_statement (assignment_expression left: (pointer_expression argument: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))))) right: (number_literal))))) (expression_statement (call_expression function: (identifier) arguments: (argument_list (pointer_expression argument: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (pointer_expression argument: (identifier)) right: (number_literal)))))))))) (return_statement (identifier)))))

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

int MASKED(int *param_1,int param_2,double param_3)

{
  double *pdVar1;
  int iVar2;
  
  iVar2 = FUN_00057780();
  if (iVar2 == 0) {
    pdVar1 = (double *)(param_1[0x18] + -0x28 + param_2 * 0x28);
    if (((ulonglong)pdVar1[1] & 0x2400) == 0) {
      *(undefined2 *)(pdVar1 + 1) = 1;
    }
    else {
      FUN_00026710();
    }
    if (!NAN(param_3)) {
      *pdVar1 = param_3;
      *(undefined2 *)(pdVar1 + 1) = 8;
    }
    FUN_0001b000(*(undefined4 *)(*param_1 + 0xc));
  }
  return iVar2;
}

