
void * sqlite3_column_blob(sqlite3_stmt *pStmt,int i)

{
  ushort uVar1;
  sqlite3 *db;
  char *pcVar2;
  void *pvVar3;
  int iVar4;
  uint extraout_EDX;
  uint extraout_EDX_00;
  uint uVar5;
  uint extraout_EDX_01;
  Mem *pOut;
  sqlite3_value *pMem;
  int unaff_EDI;
  
  __x86_get_pc_thunk_di();
  if (pStmt == (sqlite3_stmt *)0x0) {
    pMem = (sqlite3_value *)(unaff_EDI + 0xe02fa);
    uVar5 = extraout_EDX;
LAB_00082aba:
    pvVar3 = sqlite3ValueText(pMem,(u8)uVar5);
    columnMallocFailure(pStmt);
    return pvVar3;
  }
  uVar5 = extraout_EDX;
  if (*(int *)(*(int *)pStmt + 0xc) != 0) {
    (**(code **)(unaff_EDI + 0x1389d6))(*(int *)(*(int *)pStmt + 0xc));
    uVar5 = extraout_EDX_00;
  }
  if ((*(int *)(pStmt + 0x74) == 0) || (uVar5 = (uint)*(ushort *)(pStmt + 0x88), uVar5 <= (uint)i))
  {
    db = *(sqlite3 **)pStmt;
    pMem = (sqlite3_value *)(unaff_EDI + 0xe02fa);
    db->errCode = 0x19;
    sqlite3ErrorFinish(db,uVar5);
    uVar5 = extraout_EDX_01;
    goto LAB_00082aba;
  }
  uVar5 = i * 5;
  pMem = (sqlite3_value *)(*(int *)(pStmt + 0x74) + i * 0x28);
  uVar1 = pMem->flags;
  if ((uVar1 & 0x12) == 0) goto LAB_00082aba;
  if ((uVar1 & 0x4000) == 0) {
    pMem->flags = uVar1 | 0x10;
    iVar4 = pMem->n;
  }
  else {
    iVar4 = sqlite3VdbeMemExpandBlob(pMem);
    if (iVar4 != 0) goto LAB_00082b25;
    pMem->flags = pMem->flags | 0x10;
    iVar4 = pMem->n;
  }
  if (iVar4 != 0) {
    pcVar2 = pMem->z;
    columnMallocFailure(pStmt);
    return pcVar2;
  }
LAB_00082b25:
  columnMallocFailure(pStmt);
  return (void *)0x0;
}



undefined4 FUN_00082a60(int *param_1,uint param_2)

{
  int iVar1;
  ushort uVar2;
  undefined4 uVar3;
  int iVar4;
  int unaff_EDI;
  
  FUN_0003a401();
  if (param_1 == (int *)0x0) {
LAB_00082aba:
    uVar3 = FUN_0007f6d0();
    FUN_0004c6c0();
    return uVar3;
  }
  if (*(int *)(*param_1 + 0xc) != 0) {
    (**(code **)(unaff_EDI + 0x1389d6))(*(int *)(*param_1 + 0xc));
  }
  if ((param_1[0x1d] == 0) || (*(ushort *)(param_1 + 0x22) <= param_2)) {
    *(undefined4 *)(*param_1 + 0x3c) = 0x19;
    FUN_0004c5a0();
    goto LAB_00082aba;
  }
  iVar1 = param_1[0x1d] + param_2 * 0x28;
  uVar2 = *(ushort *)(iVar1 + 8);
  if ((uVar2 & 0x12) == 0) goto LAB_00082aba;
  if ((uVar2 & 0x4000) == 0) {
    *(ushort *)(iVar1 + 8) = uVar2 | 0x10;
    iVar4 = *(int *)(iVar1 + 0xc);
  }
  else {
    iVar4 = FUN_0006e0b0();
    if (iVar4 != 0) goto LAB_00082b25;
    *(ushort *)(iVar1 + 8) = *(ushort *)(iVar1 + 8) | 0x10;
    iVar4 = *(int *)(iVar1 + 0xc);
  }
  if (iVar4 != 0) {
    uVar3 = *(undefined4 *)(iVar1 + 0x10);
    FUN_0004c6c0();
    return uVar3;
  }
LAB_00082b25:
  FUN_0004c6c0();
  return 0;
}


PUSH EDI
CALL 0x0003a401
ADD EDI,0x1383c2
PUSH ESI
PUSH EBX
MOV EBX,dword ptr [ESP + 0x10]
MOV ESI,dword ptr [ESP + 0x14]
TEST EBX,EBX
JZ 0x00082b38
MOV EAX,dword ptr [EBX]
MOV EAX,dword ptr [EAX + 0xc]
TEST EAX,EAX
JZ 0x00082a94
SUB ESP,0xc
PUSH EAX
CALL dword ptr [EDI + 0x614]
ADD ESP,0x10
MOV EAX,dword ptr [EBX + 0x74]
TEST EAX,EAX
JZ 0x00082aa6
MOVZX EDX,word ptr [EBX + 0x88]
CMP ESI,EDX
JC 0x00082ad0
MOV EAX,dword ptr [EBX]
LEA ESI,[EDI + 0xfffa7f38]
MOV dword ptr [EAX + 0x3c],0x19
CALL 0x0004c5a0
MOV EAX,ESI
CALL 0x0007f6d0
MOV ESI,EAX
MOV EAX,EBX
CALL 0x0004c6c0
MOV EAX,ESI
POP EBX
POP ESI
POP EDI
RET
LEA EDX,[ESI + ESI*0x4]
LEA ESI,[EAX + EDX*0x8]
MOVZX EAX,word ptr [ESI + 0x8]
TEST AL,0x12
JZ 0x00082aba
TEST AH,0x40
JNZ 0x00082b08
OR EAX,0x10
MOV word ptr [ESI + 0x8],AX
MOV EAX,dword ptr [ESI + 0xc]
TEST EAX,EAX
JZ 0x00082b25
MOV ESI,dword ptr [ESI + 0x10]
MOV EAX,EBX
CALL 0x0004c6c0
POP EBX
MOV EAX,ESI
POP ESI
POP EDI
RET
MOV EAX,ESI
CALL 0x0006e0b0
TEST EAX,EAX
JNZ 0x00082b25
MOVZX EAX,word ptr [ESI + 0x8]
OR EAX,0x10
MOV word ptr [ESI + 0x8],AX
MOV EAX,dword ptr [ESI + 0xc]
TEST EAX,EAX
JNZ 0x00082af1
MOV EAX,EBX
XOR ESI,ESI
CALL 0x0004c6c0
MOV EAX,ESI
POP EBX
POP ESI
POP EDI
RET
LEA ESI,[EDI + 0xfffa7f38]
JMP 0x00082aba
(translation_unit "undefined4 FUN_00082a60(int *param_1,uint param_2)\n\n{\n  int iVar1;\n  ushort uVar2;\n  undefined4 uVar3;\n  int iVar4;\n  int unaff_EDI;\n  \n  FUN_0003a401();\n  if (param_1 == (int *)0x0) {\nLAB_00082aba:\n    uVar3 = FUN_0007f6d0();\n    FUN_0004c6c0();\n    return uVar3;\n  }\n  if (*(int *)(*param_1 + 0xc) != 0) {\n    (**(code **)(unaff_EDI + 0x1389d6))(*(int *)(*param_1 + 0xc));\n  }\n  if ((param_1[0x1d] == 0) || (*(ushort *)(param_1 + 0x22) <= param_2)) {\n    *(undefined4 *)(*param_1 + 0x3c) = 0x19;\n    FUN_0004c5a0();\n    goto LAB_00082aba;\n  }\n  iVar1 = param_1[0x1d] + param_2 * 0x28;\n  uVar2 = *(ushort *)(iVar1 + 8);\n  if ((uVar2 & 0x12) == 0) goto LAB_00082aba;\n  if ((uVar2 & 0x4000) == 0) {\n    *(ushort *)(iVar1 + 8) = uVar2 | 0x10;\n    iVar4 = *(int *)(iVar1 + 0xc);\n  }\n  else {\n    iVar4 = FUN_0006e0b0();\n    if (iVar4 != 0) goto LAB_00082b25;\n    *(ushort *)(iVar1 + 8) = *(ushort *)(iVar1 + 8) | 0x10;\n    iVar4 = *(int *)(iVar1 + 0xc);\n  }\n  if (iVar4 != 0) {\n    uVar3 = *(undefined4 *)(iVar1 + 0x10);\n    FUN_0004c6c0();\n    return uVar3;\n  }\nLAB_00082b25:\n  FUN_0004c6c0();\n  return 0;\n}\n\n" (function_definition "undefined4 FUN_00082a60(int *param_1,uint param_2)\n\n{\n  int iVar1;\n  ushort uVar2;\n  undefined4 uVar3;\n  int iVar4;\n  int unaff_EDI;\n  \n  FUN_0003a401();\n  if (param_1 == (int *)0x0) {\nLAB_00082aba:\n    uVar3 = FUN_0007f6d0();\n    FUN_0004c6c0();\n    return uVar3;\n  }\n  if (*(int *)(*param_1 + 0xc) != 0) {\n    (**(code **)(unaff_EDI + 0x1389d6))(*(int *)(*param_1 + 0xc));\n  }\n  if ((param_1[0x1d] == 0) || (*(ushort *)(param_1 + 0x22) <= param_2)) {\n    *(undefined4 *)(*param_1 + 0x3c) = 0x19;\n    FUN_0004c5a0();\n    goto LAB_00082aba;\n  }\n  iVar1 = param_1[0x1d] + param_2 * 0x28;\n  uVar2 = *(ushort *)(iVar1 + 8);\n  if ((uVar2 & 0x12) == 0) goto LAB_00082aba;\n  if ((uVar2 & 0x4000) == 0) {\n    *(ushort *)(iVar1 + 8) = uVar2 | 0x10;\n    iVar4 = *(int *)(iVar1 + 0xc);\n  }\n  else {\n    iVar4 = FUN_0006e0b0();\n    if (iVar4 != 0) goto LAB_00082b25;\n    *(ushort *)(iVar1 + 8) = *(ushort *)(iVar1 + 8) | 0x10;\n    iVar4 = *(int *)(iVar1 + 0xc);\n  }\n  if (iVar4 != 0) {\n    uVar3 = *(undefined4 *)(iVar1 + 0x10);\n    FUN_0004c6c0();\n    return uVar3;\n  }\nLAB_00082b25:\n  FUN_0004c6c0();\n  return 0;\n}" type_identifier (function_declarator "FUN_00082a60(int *param_1,uint param_2)" identifier (parameter_list "(int *param_1,uint param_2)" ( (parameter_declaration "int *param_1" primitive_type (pointer_declarator "*param_1" * identifier)) , (parameter_declaration "uint param_2" type_identifier identifier) ))) (compound_statement "{\n  int iVar1;\n  ushort uVar2;\n  undefined4 uVar3;\n  int iVar4;\n  int unaff_EDI;\n  \n  FUN_0003a401();\n  if (param_1 == (int *)0x0) {\nLAB_00082aba:\n    uVar3 = FUN_0007f6d0();\n    FUN_0004c6c0();\n    return uVar3;\n  }\n  if (*(int *)(*param_1 + 0xc) != 0) {\n    (**(code **)(unaff_EDI + 0x1389d6))(*(int *)(*param_1 + 0xc));\n  }\n  if ((param_1[0x1d] == 0) || (*(ushort *)(param_1 + 0x22) <= param_2)) {\n    *(undefined4 *)(*param_1 + 0x3c) = 0x19;\n    FUN_0004c5a0();\n    goto LAB_00082aba;\n  }\n  iVar1 = param_1[0x1d] + param_2 * 0x28;\n  uVar2 = *(ushort *)(iVar1 + 8);\n  if ((uVar2 & 0x12) == 0) goto LAB_00082aba;\n  if ((uVar2 & 0x4000) == 0) {\n    *(ushort *)(iVar1 + 8) = uVar2 | 0x10;\n    iVar4 = *(int *)(iVar1 + 0xc);\n  }\n  else {\n    iVar4 = FUN_0006e0b0();\n    if (iVar4 != 0) goto LAB_00082b25;\n    *(ushort *)(iVar1 + 8) = *(ushort *)(iVar1 + 8) | 0x10;\n    iVar4 = *(int *)(iVar1 + 0xc);\n  }\n  if (iVar4 != 0) {\n    uVar3 = *(undefined4 *)(iVar1 + 0x10);\n    FUN_0004c6c0();\n    return uVar3;\n  }\nLAB_00082b25:\n  FUN_0004c6c0();\n  return 0;\n}" { (declaration "int iVar1;" primitive_type identifier ;) (declaration "ushort uVar2;" type_identifier identifier ;) (declaration "undefined4 uVar3;" type_identifier identifier ;) (declaration "int iVar4;" primitive_type identifier ;) (declaration "int unaff_EDI;" primitive_type identifier ;) (expression_statement "FUN_0003a401();" (call_expression "FUN_0003a401()" identifier (argument_list "()" ( ))) ;) (if_statement "if (param_1 == (int *)0x0) {\nLAB_00082aba:\n    uVar3 = FUN_0007f6d0();\n    FUN_0004c6c0();\n    return uVar3;\n  }" if (parenthesized_expression "(param_1 == (int *)0x0)" ( (binary_expression "param_1 == (int *)0x0" identifier == (cast_expression "(int *)0x0" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\nLAB_00082aba:\n    uVar3 = FUN_0007f6d0();\n    FUN_0004c6c0();\n    return uVar3;\n  }" { (labeled_statement "LAB_00082aba:\n    uVar3 = FUN_0007f6d0();" statement_identifier : (expression_statement "uVar3 = FUN_0007f6d0();" (assignment_expression "uVar3 = FUN_0007f6d0()" identifier = (call_expression "FUN_0007f6d0()" identifier (argument_list "()" ( )))) ;)) (expression_statement "FUN_0004c6c0();" (call_expression "FUN_0004c6c0()" identifier (argument_list "()" ( ))) ;) (return_statement "return uVar3;" return identifier ;) })) (if_statement "if (*(int *)(*param_1 + 0xc) != 0) {\n    (**(code **)(unaff_EDI + 0x1389d6))(*(int *)(*param_1 + 0xc));\n  }" if (parenthesized_expression "(*(int *)(*param_1 + 0xc) != 0)" ( (binary_expression "*(int *)(*param_1 + 0xc) != 0" (pointer_expression "*(int *)(*param_1 + 0xc)" * (cast_expression "(int *)(*param_1 + 0xc)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(*param_1 + 0xc)" ( (binary_expression "*param_1 + 0xc" (pointer_expression "*param_1" * identifier) + number_literal) )))) != number_literal) )) (compound_statement "{\n    (**(code **)(unaff_EDI + 0x1389d6))(*(int *)(*param_1 + 0xc));\n  }" { (expression_statement "(**(code **)(unaff_EDI + 0x1389d6))(*(int *)(*param_1 + 0xc));" (call_expression "(**(code **)(unaff_EDI + 0x1389d6))(*(int *)(*param_1 + 0xc))" (parenthesized_expression "(**(code **)(unaff_EDI + 0x1389d6))" ( (pointer_expression "**(code **)(unaff_EDI + 0x1389d6)" * (pointer_expression "*(code **)(unaff_EDI + 0x1389d6)" * (cast_expression "(code **)(unaff_EDI + 0x1389d6)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(unaff_EDI + 0x1389d6)" ( (binary_expression "unaff_EDI + 0x1389d6" identifier + number_literal) ))))) )) (argument_list "(*(int *)(*param_1 + 0xc))" ( (pointer_expression "*(int *)(*param_1 + 0xc)" * (cast_expression "(int *)(*param_1 + 0xc)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(*param_1 + 0xc)" ( (binary_expression "*param_1 + 0xc" (pointer_expression "*param_1" * identifier) + number_literal) )))) ))) ;) })) (if_statement "if ((param_1[0x1d] == 0) || (*(ushort *)(param_1 + 0x22) <= param_2)) {\n    *(undefined4 *)(*param_1 + 0x3c) = 0x19;\n    FUN_0004c5a0();\n    goto LAB_00082aba;\n  }" if (parenthesized_expression "((param_1[0x1d] == 0) || (*(ushort *)(param_1 + 0x22) <= param_2))" ( (binary_expression "(param_1[0x1d] == 0) || (*(ushort *)(param_1 + 0x22) <= param_2)" (parenthesized_expression "(param_1[0x1d] == 0)" ( (binary_expression "param_1[0x1d] == 0" (subscript_expression "param_1[0x1d]" identifier [ number_literal ]) == number_literal) )) || (parenthesized_expression "(*(ushort *)(param_1 + 0x22) <= param_2)" ( (binary_expression "*(ushort *)(param_1 + 0x22) <= param_2" (pointer_expression "*(ushort *)(param_1 + 0x22)" * (cast_expression "(ushort *)(param_1 + 0x22)" ( (type_descriptor "ushort *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x22)" ( (binary_expression "param_1 + 0x22" identifier + number_literal) )))) <= identifier) ))) )) (compound_statement "{\n    *(undefined4 *)(*param_1 + 0x3c) = 0x19;\n    FUN_0004c5a0();\n    goto LAB_00082aba;\n  }" { (expression_statement "*(undefined4 *)(*param_1 + 0x3c) = 0x19;" (assignment_expression "*(undefined4 *)(*param_1 + 0x3c) = 0x19" (pointer_expression "*(undefined4 *)(*param_1 + 0x3c)" * (cast_expression "(undefined4 *)(*param_1 + 0x3c)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(*param_1 + 0x3c)" ( (binary_expression "*param_1 + 0x3c" (pointer_expression "*param_1" * identifier) + number_literal) )))) = number_literal) ;) (expression_statement "FUN_0004c5a0();" (call_expression "FUN_0004c5a0()" identifier (argument_list "()" ( ))) ;) (goto_statement "goto LAB_00082aba;" goto statement_identifier ;) })) (expression_statement "iVar1 = param_1[0x1d] + param_2 * 0x28;" (assignment_expression "iVar1 = param_1[0x1d] + param_2 * 0x28" identifier = (binary_expression "param_1[0x1d] + param_2 * 0x28" (subscript_expression "param_1[0x1d]" identifier [ number_literal ]) + (binary_expression "param_2 * 0x28" identifier * number_literal))) ;) (expression_statement "uVar2 = *(ushort *)(iVar1 + 8);" (assignment_expression "uVar2 = *(ushort *)(iVar1 + 8)" identifier = (pointer_expression "*(ushort *)(iVar1 + 8)" * (cast_expression "(ushort *)(iVar1 + 8)" ( (type_descriptor "ushort *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar1 + 8)" ( (binary_expression "iVar1 + 8" identifier + number_literal) ))))) ;) (if_statement "if ((uVar2 & 0x12) == 0) goto LAB_00082aba;" if (parenthesized_expression "((uVar2 & 0x12) == 0)" ( (binary_expression "(uVar2 & 0x12) == 0" (parenthesized_expression "(uVar2 & 0x12)" ( (binary_expression "uVar2 & 0x12" identifier & number_literal) )) == number_literal) )) (goto_statement "goto LAB_00082aba;" goto statement_identifier ;)) (if_statement "if ((uVar2 & 0x4000) == 0) {\n    *(ushort *)(iVar1 + 8) = uVar2 | 0x10;\n    iVar4 = *(int *)(iVar1 + 0xc);\n  }\n  else {\n    iVar4 = FUN_0006e0b0();\n    if (iVar4 != 0) goto LAB_00082b25;\n    *(ushort *)(iVar1 + 8) = *(ushort *)(iVar1 + 8) | 0x10;\n    iVar4 = *(int *)(iVar1 + 0xc);\n  }" if (parenthesized_expression "((uVar2 & 0x4000) == 0)" ( (binary_expression "(uVar2 & 0x4000) == 0" (parenthesized_expression "(uVar2 & 0x4000)" ( (binary_expression "uVar2 & 0x4000" identifier & number_literal) )) == number_literal) )) (compound_statement "{\n    *(ushort *)(iVar1 + 8) = uVar2 | 0x10;\n    iVar4 = *(int *)(iVar1 + 0xc);\n  }" { (expression_statement "*(ushort *)(iVar1 + 8) = uVar2 | 0x10;" (assignment_expression "*(ushort *)(iVar1 + 8) = uVar2 | 0x10" (pointer_expression "*(ushort *)(iVar1 + 8)" * (cast_expression "(ushort *)(iVar1 + 8)" ( (type_descriptor "ushort *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar1 + 8)" ( (binary_expression "iVar1 + 8" identifier + number_literal) )))) = (binary_expression "uVar2 | 0x10" identifier | number_literal)) ;) (expression_statement "iVar4 = *(int *)(iVar1 + 0xc);" (assignment_expression "iVar4 = *(int *)(iVar1 + 0xc)" identifier = (pointer_expression "*(int *)(iVar1 + 0xc)" * (cast_expression "(int *)(iVar1 + 0xc)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar1 + 0xc)" ( (binary_expression "iVar1 + 0xc" identifier + number_literal) ))))) ;) }) (else_clause "else {\n    iVar4 = FUN_0006e0b0();\n    if (iVar4 != 0) goto LAB_00082b25;\n    *(ushort *)(iVar1 + 8) = *(ushort *)(iVar1 + 8) | 0x10;\n    iVar4 = *(int *)(iVar1 + 0xc);\n  }" else (compound_statement "{\n    iVar4 = FUN_0006e0b0();\n    if (iVar4 != 0) goto LAB_00082b25;\n    *(ushort *)(iVar1 + 8) = *(ushort *)(iVar1 + 8) | 0x10;\n    iVar4 = *(int *)(iVar1 + 0xc);\n  }" { (expression_statement "iVar4 = FUN_0006e0b0();" (assignment_expression "iVar4 = FUN_0006e0b0()" identifier = (call_expression "FUN_0006e0b0()" identifier (argument_list "()" ( )))) ;) (if_statement "if (iVar4 != 0) goto LAB_00082b25;" if (parenthesized_expression "(iVar4 != 0)" ( (binary_expression "iVar4 != 0" identifier != number_literal) )) (goto_statement "goto LAB_00082b25;" goto statement_identifier ;)) (expression_statement "*(ushort *)(iVar1 + 8) = *(ushort *)(iVar1 + 8) | 0x10;" (assignment_expression "*(ushort *)(iVar1 + 8) = *(ushort *)(iVar1 + 8) | 0x10" (pointer_expression "*(ushort *)(iVar1 + 8)" * (cast_expression "(ushort *)(iVar1 + 8)" ( (type_descriptor "ushort *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar1 + 8)" ( (binary_expression "iVar1 + 8" identifier + number_literal) )))) = (binary_expression "*(ushort *)(iVar1 + 8) | 0x10" (pointer_expression "*(ushort *)(iVar1 + 8)" * (cast_expression "(ushort *)(iVar1 + 8)" ( (type_descriptor "ushort *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar1 + 8)" ( (binary_expression "iVar1 + 8" identifier + number_literal) )))) | number_literal)) ;) (expression_statement "iVar4 = *(int *)(iVar1 + 0xc);" (assignment_expression "iVar4 = *(int *)(iVar1 + 0xc)" identifier = (pointer_expression "*(int *)(iVar1 + 0xc)" * (cast_expression "(int *)(iVar1 + 0xc)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar1 + 0xc)" ( (binary_expression "iVar1 + 0xc" identifier + number_literal) ))))) ;) }))) (if_statement "if (iVar4 != 0) {\n    uVar3 = *(undefined4 *)(iVar1 + 0x10);\n    FUN_0004c6c0();\n    return uVar3;\n  }" if (parenthesized_expression "(iVar4 != 0)" ( (binary_expression "iVar4 != 0" identifier != number_literal) )) (compound_statement "{\n    uVar3 = *(undefined4 *)(iVar1 + 0x10);\n    FUN_0004c6c0();\n    return uVar3;\n  }" { (expression_statement "uVar3 = *(undefined4 *)(iVar1 + 0x10);" (assignment_expression "uVar3 = *(undefined4 *)(iVar1 + 0x10)" identifier = (pointer_expression "*(undefined4 *)(iVar1 + 0x10)" * (cast_expression "(undefined4 *)(iVar1 + 0x10)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar1 + 0x10)" ( (binary_expression "iVar1 + 0x10" identifier + number_literal) ))))) ;) (expression_statement "FUN_0004c6c0();" (call_expression "FUN_0004c6c0()" identifier (argument_list "()" ( ))) ;) (return_statement "return uVar3;" return identifier ;) })) (labeled_statement "LAB_00082b25:\n  FUN_0004c6c0();" statement_identifier : (expression_statement "FUN_0004c6c0();" (call_expression "FUN_0004c6c0()" identifier (argument_list "()" ( ))) ;)) (return_statement "return 0;" return number_literal ;) })))
(translation_unit "void * sqlite3_column_blob(sqlite3_stmt *pStmt,int i)\n\n{\n  ushort uVar1;\n  sqlite3 *db;\n  char *pcVar2;\n  void *pvVar3;\n  int iVar4;\n  uint extraout_EDX;\n  uint extraout_EDX_00;\n  uint uVar5;\n  uint extraout_EDX_01;\n  Mem *pOut;\n  sqlite3_value *pMem;\n  int unaff_EDI;\n  \n  __x86_get_pc_thunk_di();\n  if (pStmt == (sqlite3_stmt *)0x0) {\n    pMem = (sqlite3_value *)(unaff_EDI + 0xe02fa);\n    uVar5 = extraout_EDX;\nLAB_00082aba:\n    pvVar3 = sqlite3ValueText(pMem,(u8)uVar5);\n    columnMallocFailure(pStmt);\n    return pvVar3;\n  }\n  uVar5 = extraout_EDX;\n  if (*(int *)(*(int *)pStmt + 0xc) != 0) {\n    (**(code **)(unaff_EDI + 0x1389d6))(*(int *)(*(int *)pStmt + 0xc));\n    uVar5 = extraout_EDX_00;\n  }\n  if ((*(int *)(pStmt + 0x74) == 0) || (uVar5 = (uint)*(ushort *)(pStmt + 0x88), uVar5 <= (uint)i))\n  {\n    db = *(sqlite3 **)pStmt;\n    pMem = (sqlite3_value *)(unaff_EDI + 0xe02fa);\n    db->errCode = 0x19;\n    sqlite3ErrorFinish(db,uVar5);\n    uVar5 = extraout_EDX_01;\n    goto LAB_00082aba;\n  }\n  uVar5 = i * 5;\n  pMem = (sqlite3_value *)(*(int *)(pStmt + 0x74) + i * 0x28);\n  uVar1 = pMem->flags;\n  if ((uVar1 & 0x12) == 0) goto LAB_00082aba;\n  if ((uVar1 & 0x4000) == 0) {\n    pMem->flags = uVar1 | 0x10;\n    iVar4 = pMem->n;\n  }\n  else {\n    iVar4 = sqlite3VdbeMemExpandBlob(pMem);\n    if (iVar4 != 0) goto LAB_00082b25;\n    pMem->flags = pMem->flags | 0x10;\n    iVar4 = pMem->n;\n  }\n  if (iVar4 != 0) {\n    pcVar2 = pMem->z;\n    columnMallocFailure(pStmt);\n    return pcVar2;\n  }\nLAB_00082b25:\n  columnMallocFailure(pStmt);\n  return (void *)0x0;\n}\n\n" (function_definition "void * sqlite3_column_blob(sqlite3_stmt *pStmt,int i)\n\n{\n  ushort uVar1;\n  sqlite3 *db;\n  char *pcVar2;\n  void *pvVar3;\n  int iVar4;\n  uint extraout_EDX;\n  uint extraout_EDX_00;\n  uint uVar5;\n  uint extraout_EDX_01;\n  Mem *pOut;\n  sqlite3_value *pMem;\n  int unaff_EDI;\n  \n  __x86_get_pc_thunk_di();\n  if (pStmt == (sqlite3_stmt *)0x0) {\n    pMem = (sqlite3_value *)(unaff_EDI + 0xe02fa);\n    uVar5 = extraout_EDX;\nLAB_00082aba:\n    pvVar3 = sqlite3ValueText(pMem,(u8)uVar5);\n    columnMallocFailure(pStmt);\n    return pvVar3;\n  }\n  uVar5 = extraout_EDX;\n  if (*(int *)(*(int *)pStmt + 0xc) != 0) {\n    (**(code **)(unaff_EDI + 0x1389d6))(*(int *)(*(int *)pStmt + 0xc));\n    uVar5 = extraout_EDX_00;\n  }\n  if ((*(int *)(pStmt + 0x74) == 0) || (uVar5 = (uint)*(ushort *)(pStmt + 0x88), uVar5 <= (uint)i))\n  {\n    db = *(sqlite3 **)pStmt;\n    pMem = (sqlite3_value *)(unaff_EDI + 0xe02fa);\n    db->errCode = 0x19;\n    sqlite3ErrorFinish(db,uVar5);\n    uVar5 = extraout_EDX_01;\n    goto LAB_00082aba;\n  }\n  uVar5 = i * 5;\n  pMem = (sqlite3_value *)(*(int *)(pStmt + 0x74) + i * 0x28);\n  uVar1 = pMem->flags;\n  if ((uVar1 & 0x12) == 0) goto LAB_00082aba;\n  if ((uVar1 & 0x4000) == 0) {\n    pMem->flags = uVar1 | 0x10;\n    iVar4 = pMem->n;\n  }\n  else {\n    iVar4 = sqlite3VdbeMemExpandBlob(pMem);\n    if (iVar4 != 0) goto LAB_00082b25;\n    pMem->flags = pMem->flags | 0x10;\n    iVar4 = pMem->n;\n  }\n  if (iVar4 != 0) {\n    pcVar2 = pMem->z;\n    columnMallocFailure(pStmt);\n    return pcVar2;\n  }\nLAB_00082b25:\n  columnMallocFailure(pStmt);\n  return (void *)0x0;\n}" primitive_type (pointer_declarator "* sqlite3_column_blob(sqlite3_stmt *pStmt,int i)" * (function_declarator "sqlite3_column_blob(sqlite3_stmt *pStmt,int i)" identifier (parameter_list "(sqlite3_stmt *pStmt,int i)" ( (parameter_declaration "sqlite3_stmt *pStmt" type_identifier (pointer_declarator "*pStmt" * identifier)) , (parameter_declaration "int i" primitive_type identifier) )))) (compound_statement "{\n  ushort uVar1;\n  sqlite3 *db;\n  char *pcVar2;\n  void *pvVar3;\n  int iVar4;\n  uint extraout_EDX;\n  uint extraout_EDX_00;\n  uint uVar5;\n  uint extraout_EDX_01;\n  Mem *pOut;\n  sqlite3_value *pMem;\n  int unaff_EDI;\n  \n  __x86_get_pc_thunk_di();\n  if (pStmt == (sqlite3_stmt *)0x0) {\n    pMem = (sqlite3_value *)(unaff_EDI + 0xe02fa);\n    uVar5 = extraout_EDX;\nLAB_00082aba:\n    pvVar3 = sqlite3ValueText(pMem,(u8)uVar5);\n    columnMallocFailure(pStmt);\n    return pvVar3;\n  }\n  uVar5 = extraout_EDX;\n  if (*(int *)(*(int *)pStmt + 0xc) != 0) {\n    (**(code **)(unaff_EDI + 0x1389d6))(*(int *)(*(int *)pStmt + 0xc));\n    uVar5 = extraout_EDX_00;\n  }\n  if ((*(int *)(pStmt + 0x74) == 0) || (uVar5 = (uint)*(ushort *)(pStmt + 0x88), uVar5 <= (uint)i))\n  {\n    db = *(sqlite3 **)pStmt;\n    pMem = (sqlite3_value *)(unaff_EDI + 0xe02fa);\n    db->errCode = 0x19;\n    sqlite3ErrorFinish(db,uVar5);\n    uVar5 = extraout_EDX_01;\n    goto LAB_00082aba;\n  }\n  uVar5 = i * 5;\n  pMem = (sqlite3_value *)(*(int *)(pStmt + 0x74) + i * 0x28);\n  uVar1 = pMem->flags;\n  if ((uVar1 & 0x12) == 0) goto LAB_00082aba;\n  if ((uVar1 & 0x4000) == 0) {\n    pMem->flags = uVar1 | 0x10;\n    iVar4 = pMem->n;\n  }\n  else {\n    iVar4 = sqlite3VdbeMemExpandBlob(pMem);\n    if (iVar4 != 0) goto LAB_00082b25;\n    pMem->flags = pMem->flags | 0x10;\n    iVar4 = pMem->n;\n  }\n  if (iVar4 != 0) {\n    pcVar2 = pMem->z;\n    columnMallocFailure(pStmt);\n    return pcVar2;\n  }\nLAB_00082b25:\n  columnMallocFailure(pStmt);\n  return (void *)0x0;\n}" { (declaration "ushort uVar1;" type_identifier identifier ;) (declaration "sqlite3 *db;" type_identifier (pointer_declarator "*db" * identifier) ;) (declaration "char *pcVar2;" primitive_type (pointer_declarator "*pcVar2" * identifier) ;) (declaration "void *pvVar3;" primitive_type (pointer_declarator "*pvVar3" * identifier) ;) (declaration "int iVar4;" primitive_type identifier ;) (declaration "uint extraout_EDX;" type_identifier identifier ;) (declaration "uint extraout_EDX_00;" type_identifier identifier ;) (declaration "uint uVar5;" type_identifier identifier ;) (declaration "uint extraout_EDX_01;" type_identifier identifier ;) (declaration "Mem *pOut;" type_identifier (pointer_declarator "*pOut" * identifier) ;) (declaration "sqlite3_value *pMem;" type_identifier (pointer_declarator "*pMem" * identifier) ;) (declaration "int unaff_EDI;" primitive_type identifier ;) (expression_statement "__x86_get_pc_thunk_di();" (call_expression "__x86_get_pc_thunk_di()" identifier (argument_list "()" ( ))) ;) (if_statement "if (pStmt == (sqlite3_stmt *)0x0) {\n    pMem = (sqlite3_value *)(unaff_EDI + 0xe02fa);\n    uVar5 = extraout_EDX;\nLAB_00082aba:\n    pvVar3 = sqlite3ValueText(pMem,(u8)uVar5);\n    columnMallocFailure(pStmt);\n    return pvVar3;\n  }" if (parenthesized_expression "(pStmt == (sqlite3_stmt *)0x0)" ( (binary_expression "pStmt == (sqlite3_stmt *)0x0" identifier == (cast_expression "(sqlite3_stmt *)0x0" ( (type_descriptor "sqlite3_stmt *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n    pMem = (sqlite3_value *)(unaff_EDI + 0xe02fa);\n    uVar5 = extraout_EDX;\nLAB_00082aba:\n    pvVar3 = sqlite3ValueText(pMem,(u8)uVar5);\n    columnMallocFailure(pStmt);\n    return pvVar3;\n  }" { (expression_statement "pMem = (sqlite3_value *)(unaff_EDI + 0xe02fa);" (assignment_expression "pMem = (sqlite3_value *)(unaff_EDI + 0xe02fa)" identifier = (cast_expression "(sqlite3_value *)(unaff_EDI + 0xe02fa)" ( (type_descriptor "sqlite3_value *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(unaff_EDI + 0xe02fa)" ( (binary_expression "unaff_EDI + 0xe02fa" identifier + number_literal) )))) ;) (expression_statement "uVar5 = extraout_EDX;" (assignment_expression "uVar5 = extraout_EDX" identifier = identifier) ;) (labeled_statement "LAB_00082aba:\n    pvVar3 = sqlite3ValueText(pMem,(u8)uVar5);" statement_identifier : (expression_statement "pvVar3 = sqlite3ValueText(pMem,(u8)uVar5);" (assignment_expression "pvVar3 = sqlite3ValueText(pMem,(u8)uVar5)" identifier = (call_expression "sqlite3ValueText(pMem,(u8)uVar5)" identifier (argument_list "(pMem,(u8)uVar5)" ( identifier , (cast_expression "(u8)uVar5" ( (type_descriptor "u8" type_identifier) ) identifier) )))) ;)) (expression_statement "columnMallocFailure(pStmt);" (call_expression "columnMallocFailure(pStmt)" identifier (argument_list "(pStmt)" ( identifier ))) ;) (return_statement "return pvVar3;" return identifier ;) })) (expression_statement "uVar5 = extraout_EDX;" (assignment_expression "uVar5 = extraout_EDX" identifier = identifier) ;) (if_statement "if (*(int *)(*(int *)pStmt + 0xc) != 0) {\n    (**(code **)(unaff_EDI + 0x1389d6))(*(int *)(*(int *)pStmt + 0xc));\n    uVar5 = extraout_EDX_00;\n  }" if (parenthesized_expression "(*(int *)(*(int *)pStmt + 0xc) != 0)" ( (binary_expression "*(int *)(*(int *)pStmt + 0xc) != 0" (pointer_expression "*(int *)(*(int *)pStmt + 0xc)" * (cast_expression "(int *)(*(int *)pStmt + 0xc)" ( (type_descriptor "int *" primitive_type (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) )))) != number_literal) )) (compound_statement "{\n    (**(code **)(unaff_EDI + 0x1389d6))(*(int *)(*(int *)pStmt + 0xc));\n    uVar5 = extraout_EDX_00;\n  }" { (expression_statement "(**(code **)(unaff_EDI + 0x1389d6))(*(int *)(*(int *)pStmt + 0xc));" (call_expression "(**(code **)(unaff_EDI + 0x1389d6))(*(int *)(*(int *)pStmt + 0xc))" (parenthesized_expression "(**(code **)(unaff_EDI + 0x1389d6))" ( (pointer_expression "**(code **)(unaff_EDI + 0x1389d6)" * (pointer_expression "*(code **)(unaff_EDI + 0x1389d6)" * (cast_expression "(code **)(unaff_EDI + 0x1389d6)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(unaff_EDI + 0x1389d6)" ( (binary_expression "unaff_EDI + 0x1389d6" identifier + number_literal) ))))) )) (argument_list "(*(int *)(*(int *)pStmt + 0xc))" ( (pointer_expression "*(int *)(*(int *)pStmt + 0xc)" * (cast_expression "(int *)(*(int *)pStmt + 0xc)" ( (type_descriptor "int *" primitive_type (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) )))) ))) ;) (expression_statement "uVar5 = extraout_EDX_00;" (assignment_expression "uVar5 = extraout_EDX_00" identifier = identifier) ;) })) (if_statement "if ((*(int *)(pStmt + 0x74) == 0) || (uVar5 = (uint)*(ushort *)(pStmt + 0x88), uVar5 <= (uint)i))\n  {\n    db = *(sqlite3 **)pStmt;\n    pMem = (sqlite3_value *)(unaff_EDI + 0xe02fa);\n    db->errCode = 0x19;\n    sqlite3ErrorFinish(db,uVar5);\n    uVar5 = extraout_EDX_01;\n    goto LAB_00082aba;\n  }" if (parenthesized_expression "((*(int *)(pStmt + 0x74) == 0) || (uVar5 = (uint)*(ushort *)(pStmt + 0x88), uVar5 <= (uint)i))" ( (binary_expression "(*(int *)(pStmt + 0x74) == 0) || (uVar5 = (uint)*(ushort *)(pStmt + 0x88), uVar5 <= (uint)i)" (parenthesized_expression "(*(int *)(pStmt + 0x74) == 0)" ( (binary_expression "*(int *)(pStmt + 0x74) == 0" (pointer_expression "*(int *)(pStmt + 0x74)" * (cast_expression "(int *)(pStmt + 0x74)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(pStmt + 0x74)" ( (binary_expression "pStmt + 0x74" identifier + number_literal) )))) == number_literal) )) || (parenthesized_expression "(uVar5 = (uint)*(ushort *)(pStmt + 0x88), uVar5 <= (uint)i)" ( (comma_expression "uVar5 = (uint)*(ushort *)(pStmt + 0x88), uVar5 <= (uint)i" (assignment_expression "uVar5 = (uint)*(ushort *)(pStmt + 0x88)" identifier = (binary_expression "(uint)*(ushort *)(pStmt + 0x88)" (parenthesized_expression "(uint)" ( identifier )) * (cast_expression "(ushort *)(pStmt + 0x88)" ( (type_descriptor "ushort *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(pStmt + 0x88)" ( (binary_expression "pStmt + 0x88" identifier + number_literal) ))))) , (binary_expression "uVar5 <= (uint)i" identifier <= (cast_expression "(uint)i" ( (type_descriptor "uint" type_identifier) ) identifier))) ))) )) (compound_statement "{\n    db = *(sqlite3 **)pStmt;\n    pMem = (sqlite3_value *)(unaff_EDI + 0xe02fa);\n    db->errCode = 0x19;\n    sqlite3ErrorFinish(db,uVar5);\n    uVar5 = extraout_EDX_01;\n    goto LAB_00082aba;\n  }" { (expression_statement "db = *(sqlite3 **)pStmt;" (assignment_expression "db = *(sqlite3 **)pStmt" identifier = (pointer_expression "*(sqlite3 **)pStmt" * (cast_expression "(sqlite3 **)pStmt" ( (type_descriptor "sqlite3 **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) identifier))) ;) (expression_statement "pMem = (sqlite3_value *)(unaff_EDI + 0xe02fa);" (assignment_expression "pMem = (sqlite3_value *)(unaff_EDI + 0xe02fa)" identifier = (cast_expression "(sqlite3_value *)(unaff_EDI + 0xe02fa)" ( (type_descriptor "sqlite3_value *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(unaff_EDI + 0xe02fa)" ( (binary_expression "unaff_EDI + 0xe02fa" identifier + number_literal) )))) ;) (expression_statement "db->errCode = 0x19;" (assignment_expression "db->errCode = 0x19" (field_expression "db->errCode" identifier -> field_identifier) = number_literal) ;) (expression_statement "sqlite3ErrorFinish(db,uVar5);" (call_expression "sqlite3ErrorFinish(db,uVar5)" identifier (argument_list "(db,uVar5)" ( identifier , identifier ))) ;) (expression_statement "uVar5 = extraout_EDX_01;" (assignment_expression "uVar5 = extraout_EDX_01" identifier = identifier) ;) (goto_statement "goto LAB_00082aba;" goto statement_identifier ;) })) (expression_statement "uVar5 = i * 5;" (assignment_expression "uVar5 = i * 5" identifier = (binary_expression "i * 5" identifier * number_literal)) ;) (expression_statement "pMem = (sqlite3_value *)(*(int *)(pStmt + 0x74) + i * 0x28);" (assignment_expression "pMem = (sqlite3_value *)(*(int *)(pStmt + 0x74) + i * 0x28)" identifier = (cast_expression "(sqlite3_value *)(*(int *)(pStmt + 0x74) + i * 0x28)" ( (type_descriptor "sqlite3_value *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(*(int *)(pStmt + 0x74) + i * 0x28)" ( (binary_expression "*(int *)(pStmt + 0x74) + i * 0x28" (pointer_expression "*(int *)(pStmt + 0x74)" * (cast_expression "(int *)(pStmt + 0x74)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(pStmt + 0x74)" ( (binary_expression "pStmt + 0x74" identifier + number_literal) )))) + (binary_expression "i * 0x28" identifier * number_literal)) )))) ;) (expression_statement "uVar1 = pMem->flags;" (assignment_expression "uVar1 = pMem->flags" identifier = (field_expression "pMem->flags" identifier -> field_identifier)) ;) (if_statement "if ((uVar1 & 0x12) == 0) goto LAB_00082aba;" if (parenthesized_expression "((uVar1 & 0x12) == 0)" ( (binary_expression "(uVar1 & 0x12) == 0" (parenthesized_expression "(uVar1 & 0x12)" ( (binary_expression "uVar1 & 0x12" identifier & number_literal) )) == number_literal) )) (goto_statement "goto LAB_00082aba;" goto statement_identifier ;)) (if_statement "if ((uVar1 & 0x4000) == 0) {\n    pMem->flags = uVar1 | 0x10;\n    iVar4 = pMem->n;\n  }\n  else {\n    iVar4 = sqlite3VdbeMemExpandBlob(pMem);\n    if (iVar4 != 0) goto LAB_00082b25;\n    pMem->flags = pMem->flags | 0x10;\n    iVar4 = pMem->n;\n  }" if (parenthesized_expression "((uVar1 & 0x4000) == 0)" ( (binary_expression "(uVar1 & 0x4000) == 0" (parenthesized_expression "(uVar1 & 0x4000)" ( (binary_expression "uVar1 & 0x4000" identifier & number_literal) )) == number_literal) )) (compound_statement "{\n    pMem->flags = uVar1 | 0x10;\n    iVar4 = pMem->n;\n  }" { (expression_statement "pMem->flags = uVar1 | 0x10;" (assignment_expression "pMem->flags = uVar1 | 0x10" (field_expression "pMem->flags" identifier -> field_identifier) = (binary_expression "uVar1 | 0x10" identifier | number_literal)) ;) (expression_statement "iVar4 = pMem->n;" (assignment_expression "iVar4 = pMem->n" identifier = (field_expression "pMem->n" identifier -> field_identifier)) ;) }) (else_clause "else {\n    iVar4 = sqlite3VdbeMemExpandBlob(pMem);\n    if (iVar4 != 0) goto LAB_00082b25;\n    pMem->flags = pMem->flags | 0x10;\n    iVar4 = pMem->n;\n  }" else (compound_statement "{\n    iVar4 = sqlite3VdbeMemExpandBlob(pMem);\n    if (iVar4 != 0) goto LAB_00082b25;\n    pMem->flags = pMem->flags | 0x10;\n    iVar4 = pMem->n;\n  }" { (expression_statement "iVar4 = sqlite3VdbeMemExpandBlob(pMem);" (assignment_expression "iVar4 = sqlite3VdbeMemExpandBlob(pMem)" identifier = (call_expression "sqlite3VdbeMemExpandBlob(pMem)" identifier (argument_list "(pMem)" ( identifier )))) ;) (if_statement "if (iVar4 != 0) goto LAB_00082b25;" if (parenthesized_expression "(iVar4 != 0)" ( (binary_expression "iVar4 != 0" identifier != number_literal) )) (goto_statement "goto LAB_00082b25;" goto statement_identifier ;)) (expression_statement "pMem->flags = pMem->flags | 0x10;" (assignment_expression "pMem->flags = pMem->flags | 0x10" (field_expression "pMem->flags" identifier -> field_identifier) = (binary_expression "pMem->flags | 0x10" (field_expression "pMem->flags" identifier -> field_identifier) | number_literal)) ;) (expression_statement "iVar4 = pMem->n;" (assignment_expression "iVar4 = pMem->n" identifier = (field_expression "pMem->n" identifier -> field_identifier)) ;) }))) (if_statement "if (iVar4 != 0) {\n    pcVar2 = pMem->z;\n    columnMallocFailure(pStmt);\n    return pcVar2;\n  }" if (parenthesized_expression "(iVar4 != 0)" ( (binary_expression "iVar4 != 0" identifier != number_literal) )) (compound_statement "{\n    pcVar2 = pMem->z;\n    columnMallocFailure(pStmt);\n    return pcVar2;\n  }" { (expression_statement "pcVar2 = pMem->z;" (assignment_expression "pcVar2 = pMem->z" identifier = (field_expression "pMem->z" identifier -> field_identifier)) ;) (expression_statement "columnMallocFailure(pStmt);" (call_expression "columnMallocFailure(pStmt)" identifier (argument_list "(pStmt)" ( identifier ))) ;) (return_statement "return pcVar2;" return identifier ;) })) (labeled_statement "LAB_00082b25:\n  columnMallocFailure(pStmt);" statement_identifier : (expression_statement "columnMallocFailure(pStmt);" (call_expression "columnMallocFailure(pStmt)" identifier (argument_list "(pStmt)" ( identifier ))) ;)) (return_statement "return (void *)0x0;" return (cast_expression "(void *)0x0" ( (type_descriptor "void *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal) ;) })))
(translation_unit "undefined4 FUN_00082a60(int *param_1,uint param_2)\n\n{\n  int iVar1;\n  ushort uVar2;\n  undefined4 uVar3;\n  int iVar4;\n  int unaff_EDI;\n  \n  FUN_0003a401();\n  if (param_1 == (int *)0x0) {\nLAB_00082aba:\n    uVar3 = FUN_0007f6d0();\n    FUN_0004c6c0();\n    return uVar3;\n  }\n  if (*(int *)(*param_1 + 0xc) != 0) {\n    (**(code **)(unaff_EDI + 0x1389d6))(*(int *)(*param_1 + 0xc));\n  }\n  if ((param_1[0x1d] == 0) || (*(ushort *)(param_1 + 0x22) <= param_2)) {\n    *(undefined4 *)(*param_1 + 0x3c) = 0x19;\n    FUN_0004c5a0();\n    goto LAB_00082aba;\n  }\n  iVar1 = param_1[0x1d] + param_2 * 0x28;\n  uVar2 = *(ushort *)(iVar1 + 8);\n  if ((uVar2 & 0x12) == 0) goto LAB_00082aba;\n  if ((uVar2 & 0x4000) == 0) {\n    *(ushort *)(iVar1 + 8) = uVar2 | 0x10;\n    iVar4 = *(int *)(iVar1 + 0xc);\n  }\n  else {\n    iVar4 = FUN_0006e0b0();\n    if (iVar4 != 0) goto LAB_00082b25;\n    *(ushort *)(iVar1 + 8) = *(ushort *)(iVar1 + 8) | 0x10;\n    iVar4 = *(int *)(iVar1 + 0xc);\n  }\n  if (iVar4 != 0) {\n    uVar3 = *(undefined4 *)(iVar1 + 0x10);\n    FUN_0004c6c0();\n    return uVar3;\n  }\nLAB_00082b25:\n  FUN_0004c6c0();\n  return 0;\n}\n\n" (function_definition "undefined4 FUN_00082a60(int *param_1,uint param_2)\n\n{\n  int iVar1;\n  ushort uVar2;\n  undefined4 uVar3;\n  int iVar4;\n  int unaff_EDI;\n  \n  FUN_0003a401();\n  if (param_1 == (int *)0x0) {\nLAB_00082aba:\n    uVar3 = FUN_0007f6d0();\n    FUN_0004c6c0();\n    return uVar3;\n  }\n  if (*(int *)(*param_1 + 0xc) != 0) {\n    (**(code **)(unaff_EDI + 0x1389d6))(*(int *)(*param_1 + 0xc));\n  }\n  if ((param_1[0x1d] == 0) || (*(ushort *)(param_1 + 0x22) <= param_2)) {\n    *(undefined4 *)(*param_1 + 0x3c) = 0x19;\n    FUN_0004c5a0();\n    goto LAB_00082aba;\n  }\n  iVar1 = param_1[0x1d] + param_2 * 0x28;\n  uVar2 = *(ushort *)(iVar1 + 8);\n  if ((uVar2 & 0x12) == 0) goto LAB_00082aba;\n  if ((uVar2 & 0x4000) == 0) {\n    *(ushort *)(iVar1 + 8) = uVar2 | 0x10;\n    iVar4 = *(int *)(iVar1 + 0xc);\n  }\n  else {\n    iVar4 = FUN_0006e0b0();\n    if (iVar4 != 0) goto LAB_00082b25;\n    *(ushort *)(iVar1 + 8) = *(ushort *)(iVar1 + 8) | 0x10;\n    iVar4 = *(int *)(iVar1 + 0xc);\n  }\n  if (iVar4 != 0) {\n    uVar3 = *(undefined4 *)(iVar1 + 0x10);\n    FUN_0004c6c0();\n    return uVar3;\n  }\nLAB_00082b25:\n  FUN_0004c6c0();\n  return 0;\n}" type_identifier (function_declarator "FUN_00082a60(int *param_1,uint param_2)" identifier (parameter_list "(int *param_1,uint param_2)" ( (parameter_declaration "int *param_1" primitive_type (pointer_declarator "*param_1" * identifier)) , (parameter_declaration "uint param_2" type_identifier identifier) ))) (compound_statement "{\n  int iVar1;\n  ushort uVar2;\n  undefined4 uVar3;\n  int iVar4;\n  int unaff_EDI;\n  \n  FUN_0003a401();\n  if (param_1 == (int *)0x0) {\nLAB_00082aba:\n    uVar3 = FUN_0007f6d0();\n    FUN_0004c6c0();\n    return uVar3;\n  }\n  if (*(int *)(*param_1 + 0xc) != 0) {\n    (**(code **)(unaff_EDI + 0x1389d6))(*(int *)(*param_1 + 0xc));\n  }\n  if ((param_1[0x1d] == 0) || (*(ushort *)(param_1 + 0x22) <= param_2)) {\n    *(undefined4 *)(*param_1 + 0x3c) = 0x19;\n    FUN_0004c5a0();\n    goto LAB_00082aba;\n  }\n  iVar1 = param_1[0x1d] + param_2 * 0x28;\n  uVar2 = *(ushort *)(iVar1 + 8);\n  if ((uVar2 & 0x12) == 0) goto LAB_00082aba;\n  if ((uVar2 & 0x4000) == 0) {\n    *(ushort *)(iVar1 + 8) = uVar2 | 0x10;\n    iVar4 = *(int *)(iVar1 + 0xc);\n  }\n  else {\n    iVar4 = FUN_0006e0b0();\n    if (iVar4 != 0) goto LAB_00082b25;\n    *(ushort *)(iVar1 + 8) = *(ushort *)(iVar1 + 8) | 0x10;\n    iVar4 = *(int *)(iVar1 + 0xc);\n  }\n  if (iVar4 != 0) {\n    uVar3 = *(undefined4 *)(iVar1 + 0x10);\n    FUN_0004c6c0();\n    return uVar3;\n  }\nLAB_00082b25:\n  FUN_0004c6c0();\n  return 0;\n}" { (declaration "int iVar1;" primitive_type identifier ;) (declaration "ushort uVar2;" type_identifier identifier ;) (declaration "undefined4 uVar3;" type_identifier identifier ;) (declaration "int iVar4;" primitive_type identifier ;) (declaration "int unaff_EDI;" primitive_type identifier ;) (expression_statement "FUN_0003a401();" (call_expression "FUN_0003a401()" identifier (argument_list "()" ( ))) ;) (if_statement "if (param_1 == (int *)0x0) {\nLAB_00082aba:\n    uVar3 = FUN_0007f6d0();\n    FUN_0004c6c0();\n    return uVar3;\n  }" if (parenthesized_expression "(param_1 == (int *)0x0)" ( (binary_expression "param_1 == (int *)0x0" identifier == (cast_expression "(int *)0x0" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\nLAB_00082aba:\n    uVar3 = FUN_0007f6d0();\n    FUN_0004c6c0();\n    return uVar3;\n  }" { (labeled_statement "LAB_00082aba:\n    uVar3 = FUN_0007f6d0();" statement_identifier : (expression_statement "uVar3 = FUN_0007f6d0();" (assignment_expression "uVar3 = FUN_0007f6d0()" identifier = (call_expression "FUN_0007f6d0()" identifier (argument_list "()" ( )))) ;)) (expression_statement "FUN_0004c6c0();" (call_expression "FUN_0004c6c0()" identifier (argument_list "()" ( ))) ;) (return_statement "return uVar3;" return identifier ;) })) (if_statement "if (*(int *)(*param_1 + 0xc) != 0) {\n    (**(code **)(unaff_EDI + 0x1389d6))(*(int *)(*param_1 + 0xc));\n  }" if (parenthesized_expression "(*(int *)(*param_1 + 0xc) != 0)" ( (binary_expression "*(int *)(*param_1 + 0xc) != 0" (pointer_expression "*(int *)(*param_1 + 0xc)" * (cast_expression "(int *)(*param_1 + 0xc)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(*param_1 + 0xc)" ( (binary_expression "*param_1 + 0xc" (pointer_expression "*param_1" * identifier) + number_literal) )))) != number_literal) )) (compound_statement "{\n    (**(code **)(unaff_EDI + 0x1389d6))(*(int *)(*param_1 + 0xc));\n  }" { (expression_statement "(**(code **)(unaff_EDI + 0x1389d6))(*(int *)(*param_1 + 0xc));" (call_expression "(**(code **)(unaff_EDI + 0x1389d6))(*(int *)(*param_1 + 0xc))" (parenthesized_expression "(**(code **)(unaff_EDI + 0x1389d6))" ( (pointer_expression "**(code **)(unaff_EDI + 0x1389d6)" * (pointer_expression "*(code **)(unaff_EDI + 0x1389d6)" * (cast_expression "(code **)(unaff_EDI + 0x1389d6)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(unaff_EDI + 0x1389d6)" ( (binary_expression "unaff_EDI + 0x1389d6" identifier + number_literal) ))))) )) (argument_list "(*(int *)(*param_1 + 0xc))" ( (pointer_expression "*(int *)(*param_1 + 0xc)" * (cast_expression "(int *)(*param_1 + 0xc)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(*param_1 + 0xc)" ( (binary_expression "*param_1 + 0xc" (pointer_expression "*param_1" * identifier) + number_literal) )))) ))) ;) })) (if_statement "if ((param_1[0x1d] == 0) || (*(ushort *)(param_1 + 0x22) <= param_2)) {\n    *(undefined4 *)(*param_1 + 0x3c) = 0x19;\n    FUN_0004c5a0();\n    goto LAB_00082aba;\n  }" if (parenthesized_expression "((param_1[0x1d] == 0) || (*(ushort *)(param_1 + 0x22) <= param_2))" ( (binary_expression "(param_1[0x1d] == 0) || (*(ushort *)(param_1 + 0x22) <= param_2)" (parenthesized_expression "(param_1[0x1d] == 0)" ( (binary_expression "param_1[0x1d] == 0" (subscript_expression "param_1[0x1d]" identifier [ number_literal ]) == number_literal) )) || (parenthesized_expression "(*(ushort *)(param_1 + 0x22) <= param_2)" ( (binary_expression "*(ushort *)(param_1 + 0x22) <= param_2" (pointer_expression "*(ushort *)(param_1 + 0x22)" * (cast_expression "(ushort *)(param_1 + 0x22)" ( (type_descriptor "ushort *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x22)" ( (binary_expression "param_1 + 0x22" identifier + number_literal) )))) <= identifier) ))) )) (compound_statement "{\n    *(undefined4 *)(*param_1 + 0x3c) = 0x19;\n    FUN_0004c5a0();\n    goto LAB_00082aba;\n  }" { (expression_statement "*(undefined4 *)(*param_1 + 0x3c) = 0x19;" (assignment_expression "*(undefined4 *)(*param_1 + 0x3c) = 0x19" (pointer_expression "*(undefined4 *)(*param_1 + 0x3c)" * (cast_expression "(undefined4 *)(*param_1 + 0x3c)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(*param_1 + 0x3c)" ( (binary_expression "*param_1 + 0x3c" (pointer_expression "*param_1" * identifier) + number_literal) )))) = number_literal) ;) (expression_statement "FUN_0004c5a0();" (call_expression "FUN_0004c5a0()" identifier (argument_list "()" ( ))) ;) (goto_statement "goto LAB_00082aba;" goto statement_identifier ;) })) (expression_statement "iVar1 = param_1[0x1d] + param_2 * 0x28;" (assignment_expression "iVar1 = param_1[0x1d] + param_2 * 0x28" identifier = (binary_expression "param_1[0x1d] + param_2 * 0x28" (subscript_expression "param_1[0x1d]" identifier [ number_literal ]) + (binary_expression "param_2 * 0x28" identifier * number_literal))) ;) (expression_statement "uVar2 = *(ushort *)(iVar1 + 8);" (assignment_expression "uVar2 = *(ushort *)(iVar1 + 8)" identifier = (pointer_expression "*(ushort *)(iVar1 + 8)" * (cast_expression "(ushort *)(iVar1 + 8)" ( (type_descriptor "ushort *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar1 + 8)" ( (binary_expression "iVar1 + 8" identifier + number_literal) ))))) ;) (if_statement "if ((uVar2 & 0x12) == 0) goto LAB_00082aba;" if (parenthesized_expression "((uVar2 & 0x12) == 0)" ( (binary_expression "(uVar2 & 0x12) == 0" (parenthesized_expression "(uVar2 & 0x12)" ( (binary_expression "uVar2 & 0x12" identifier & number_literal) )) == number_literal) )) (goto_statement "goto LAB_00082aba;" goto statement_identifier ;)) (if_statement "if ((uVar2 & 0x4000) == 0) {\n    *(ushort *)(iVar1 + 8) = uVar2 | 0x10;\n    iVar4 = *(int *)(iVar1 + 0xc);\n  }\n  else {\n    iVar4 = FUN_0006e0b0();\n    if (iVar4 != 0) goto LAB_00082b25;\n    *(ushort *)(iVar1 + 8) = *(ushort *)(iVar1 + 8) | 0x10;\n    iVar4 = *(int *)(iVar1 + 0xc);\n  }" if (parenthesized_expression "((uVar2 & 0x4000) == 0)" ( (binary_expression "(uVar2 & 0x4000) == 0" (parenthesized_expression "(uVar2 & 0x4000)" ( (binary_expression "uVar2 & 0x4000" identifier & number_literal) )) == number_literal) )) (compound_statement "{\n    *(ushort *)(iVar1 + 8) = uVar2 | 0x10;\n    iVar4 = *(int *)(iVar1 + 0xc);\n  }" { (expression_statement "*(ushort *)(iVar1 + 8) = uVar2 | 0x10;" (assignment_expression "*(ushort *)(iVar1 + 8) = uVar2 | 0x10" (pointer_expression "*(ushort *)(iVar1 + 8)" * (cast_expression "(ushort *)(iVar1 + 8)" ( (type_descriptor "ushort *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar1 + 8)" ( (binary_expression "iVar1 + 8" identifier + number_literal) )))) = (binary_expression "uVar2 | 0x10" identifier | number_literal)) ;) (expression_statement "iVar4 = *(int *)(iVar1 + 0xc);" (assignment_expression "iVar4 = *(int *)(iVar1 + 0xc)" identifier = (pointer_expression "*(int *)(iVar1 + 0xc)" * (cast_expression "(int *)(iVar1 + 0xc)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar1 + 0xc)" ( (binary_expression "iVar1 + 0xc" identifier + number_literal) ))))) ;) }) (else_clause "else {\n    iVar4 = FUN_0006e0b0();\n    if (iVar4 != 0) goto LAB_00082b25;\n    *(ushort *)(iVar1 + 8) = *(ushort *)(iVar1 + 8) | 0x10;\n    iVar4 = *(int *)(iVar1 + 0xc);\n  }" else (compound_statement "{\n    iVar4 = FUN_0006e0b0();\n    if (iVar4 != 0) goto LAB_00082b25;\n    *(ushort *)(iVar1 + 8) = *(ushort *)(iVar1 + 8) | 0x10;\n    iVar4 = *(int *)(iVar1 + 0xc);\n  }" { (expression_statement "iVar4 = FUN_0006e0b0();" (assignment_expression "iVar4 = FUN_0006e0b0()" identifier = (call_expression "FUN_0006e0b0()" identifier (argument_list "()" ( )))) ;) (if_statement "if (iVar4 != 0) goto LAB_00082b25;" if (parenthesized_expression "(iVar4 != 0)" ( (binary_expression "iVar4 != 0" identifier != number_literal) )) (goto_statement "goto LAB_00082b25;" goto statement_identifier ;)) (expression_statement "*(ushort *)(iVar1 + 8) = *(ushort *)(iVar1 + 8) | 0x10;" (assignment_expression "*(ushort *)(iVar1 + 8) = *(ushort *)(iVar1 + 8) | 0x10" (pointer_expression "*(ushort *)(iVar1 + 8)" * (cast_expression "(ushort *)(iVar1 + 8)" ( (type_descriptor "ushort *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar1 + 8)" ( (binary_expression "iVar1 + 8" identifier + number_literal) )))) = (binary_expression "*(ushort *)(iVar1 + 8) | 0x10" (pointer_expression "*(ushort *)(iVar1 + 8)" * (cast_expression "(ushort *)(iVar1 + 8)" ( (type_descriptor "ushort *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar1 + 8)" ( (binary_expression "iVar1 + 8" identifier + number_literal) )))) | number_literal)) ;) (expression_statement "iVar4 = *(int *)(iVar1 + 0xc);" (assignment_expression "iVar4 = *(int *)(iVar1 + 0xc)" identifier = (pointer_expression "*(int *)(iVar1 + 0xc)" * (cast_expression "(int *)(iVar1 + 0xc)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar1 + 0xc)" ( (binary_expression "iVar1 + 0xc" identifier + number_literal) ))))) ;) }))) (if_statement "if (iVar4 != 0) {\n    uVar3 = *(undefined4 *)(iVar1 + 0x10);\n    FUN_0004c6c0();\n    return uVar3;\n  }" if (parenthesized_expression "(iVar4 != 0)" ( (binary_expression "iVar4 != 0" identifier != number_literal) )) (compound_statement "{\n    uVar3 = *(undefined4 *)(iVar1 + 0x10);\n    FUN_0004c6c0();\n    return uVar3;\n  }" { (expression_statement "uVar3 = *(undefined4 *)(iVar1 + 0x10);" (assignment_expression "uVar3 = *(undefined4 *)(iVar1 + 0x10)" identifier = (pointer_expression "*(undefined4 *)(iVar1 + 0x10)" * (cast_expression "(undefined4 *)(iVar1 + 0x10)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar1 + 0x10)" ( (binary_expression "iVar1 + 0x10" identifier + number_literal) ))))) ;) (expression_statement "FUN_0004c6c0();" (call_expression "FUN_0004c6c0()" identifier (argument_list "()" ( ))) ;) (return_statement "return uVar3;" return identifier ;) })) (labeled_statement "LAB_00082b25:\n  FUN_0004c6c0();" statement_identifier : (expression_statement "FUN_0004c6c0();" (call_expression "FUN_0004c6c0()" identifier (argument_list "()" ( ))) ;)) (return_statement "return 0;" return number_literal ;) })))
(translation_unit (function_definition TYPE (function_declarator IDENT (parameter_list ( (parameter_declaration TYPE (pointer_declarator * IDENT)) , (parameter_declaration TYPE IDENT) ))) (compound_statement { (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (expression_statement (call_expression IDENT (argument_list ( ))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT == (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) LIT)) )) (compound_statement { (labeled_statement statement_identifier : (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( )))) ;)) (expression_statement (call_expression IDENT (argument_list ( ))) ;) (return_statement return IDENT ;) })) (if_statement if (parenthesized_expression ( (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression (pointer_expression * IDENT) + LIT) )))) != LIT) )) (compound_statement { (expression_statement (call_expression (parenthesized_expression ( (pointer_expression * (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator * (abstract_pointer_declarator *))) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) )) (argument_list ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression (pointer_expression * IDENT) + LIT) )))) ))) ;) })) (if_statement if (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression (subscript_expression IDENT [ LIT ]) == LIT) )) || (parenthesized_expression ( (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) <= IDENT) ))) )) (compound_statement { (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression (pointer_expression * IDENT) + LIT) )))) = LIT) ;) (expression_statement (call_expression IDENT (argument_list ( ))) ;) (goto_statement goto statement_identifier ;) })) (expression_statement (assignment_expression IDENT = (binary_expression (subscript_expression IDENT [ LIT ]) + (binary_expression IDENT * LIT))) ;) (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) )) (goto_statement goto statement_identifier ;)) (if_statement if (parenthesized_expression ( (binary_expression (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) )))) = (binary_expression IDENT | LIT)) ;) (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) ;) }) (else_clause else (compound_statement { (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( )))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT != LIT) )) (goto_statement goto statement_identifier ;)) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) = (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) | LIT)) ;) (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 (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) ;) (expression_statement (call_expression IDENT (argument_list ( ))) ;) (return_statement return IDENT ;) })) (labeled_statement statement_identifier : (expression_statement (call_expression IDENT (argument_list ( ))) ;)) (return_statement return LIT ;) })))
(function_definition "undefined4 FUN_00082a60(int *param_1,uint param_2)\n\n{\n  int iVar1;\n  ushort uVar2;\n  undefined4 uVar3;\n  int iVar4;\n  int unaff_EDI;\n  \n  FUN_0003a401();\n  if (param_1 == (int *)0x0) {\nLAB_00082aba:\n    uVar3 = FUN_0007f6d0();\n    FUN_0004c6c0();\n    return uVar3;\n  }\n  if (*(int *)(*param_1 + 0xc) != 0) {\n    (**(code **)(unaff_EDI + 0x1389d6))(*(int *)(*param_1 + 0xc));\n  }\n  if ((param_1[0x1d] == 0) || (*(ushort *)(param_1 + 0x22) <= param_2)) {\n    *(undefined4 *)(*param_1 + 0x3c) = 0x19;\n    FUN_0004c5a0();\n    goto LAB_00082aba;\n  }\n  iVar1 = param_1[0x1d] + param_2 * 0x28;\n  uVar2 = *(ushort *)(iVar1 + 8);\n  if ((uVar2 & 0x12) == 0) goto LAB_00082aba;\n  if ((uVar2 & 0x4000) == 0) {\n    *(ushort *)(iVar1 + 8) = uVar2 | 0x10;\n    iVar4 = *(int *)(iVar1 + 0xc);\n  }\n  else {\n    iVar4 = FUN_0006e0b0();\n    if (iVar4 != 0) goto LAB_00082b25;\n    *(ushort *)(iVar1 + 8) = *(ushort *)(iVar1 + 8) | 0x10;\n    iVar4 = *(int *)(iVar1 + 0xc);\n  }\n  if (iVar4 != 0) {\n    uVar3 = *(undefined4 *)(iVar1 + 0x10);\n    FUN_0004c6c0();\n    return uVar3;\n  }\nLAB_00082b25:\n  FUN_0004c6c0();\n  return 0;\n}" (type_identifier "undefined4") (function_declarator "FUN_00082a60(int *param_1,uint param_2)" (identifier "FUN_00082a60") (parameter_list "(int *param_1,uint param_2)" (( "(") (parameter_declaration "int *param_1" (primitive_type "int") (pointer_declarator "*param_1" (* "*") (identifier "param_1"))) (, ",") (parameter_declaration "uint param_2" (type_identifier "uint") (identifier "param_2")) () ")"))) (compound_statement "{\n  int iVar1;\n  ushort uVar2;\n  undefined4 uVar3;\n  int iVar4;\n  int unaff_EDI;\n  \n  FUN_0003a401();\n  if (param_1 == (int *)0x0) {\nLAB_00082aba:\n    uVar3 = FUN_0007f6d0();\n    FUN_0004c6c0();\n    return uVar3;\n  }\n  if (*(int *)(*param_1 + 0xc) != 0) {\n    (**(code **)(unaff_EDI + 0x1389d6))(*(int *)(*param_1 + 0xc));\n  }\n  if ((param_1[0x1d] == 0) || (*(ushort *)(param_1 + 0x22) <= param_2)) {\n    *(undefined4 *)(*param_1 + 0x3c) = 0x19;\n    FUN_0004c5a0();\n    goto LAB_00082aba;\n  }\n  iVar1 = param_1[0x1d] + param_2 * 0x28;\n  uVar2 = *(ushort *)(iVar1 + 8);\n  if ((uVar2 & 0x12) == 0) goto LAB_00082aba;\n  if ((uVar2 & 0x4000) == 0) {\n    *(ushort *)(iVar1 + 8) = uVar2 | 0x10;\n    iVar4 = *(int *)(iVar1 + 0xc);\n  }\n  else {\n    iVar4 = FUN_0006e0b0();\n    if (iVar4 != 0) goto LAB_00082b25;\n    *(ushort *)(iVar1 + 8) = *(ushort *)(iVar1 + 8) | 0x10;\n    iVar4 = *(int *)(iVar1 + 0xc);\n  }\n  if (iVar4 != 0) {\n    uVar3 = *(undefined4 *)(iVar1 + 0x10);\n    FUN_0004c6c0();\n    return uVar3;\n  }\nLAB_00082b25:\n  FUN_0004c6c0();\n  return 0;\n}" ({ "{") (declaration "int iVar1;" (primitive_type "int") (identifier "iVar1") (; ";")) (declaration "ushort uVar2;" (type_identifier "ushort") (identifier "uVar2") (; ";")) (declaration "undefined4 uVar3;" (type_identifier "undefined4") (identifier "uVar3") (; ";")) (declaration "int iVar4;" (primitive_type "int") (identifier "iVar4") (; ";")) (declaration "int unaff_EDI;" (primitive_type "int") (identifier "unaff_EDI") (; ";")) (expression_statement "FUN_0003a401();" (call_expression "FUN_0003a401()" (identifier "FUN_0003a401") (argument_list "()" (( "(") () ")"))) (; ";")) (if_statement "if (param_1 == (int *)0x0) {\nLAB_00082aba:\n    uVar3 = FUN_0007f6d0();\n    FUN_0004c6c0();\n    return uVar3;\n  }" (if "if") (parenthesized_expression "(param_1 == (int *)0x0)" (( "(") (binary_expression "param_1 == (int *)0x0" (identifier "param_1") (== "==") (cast_expression "(int *)0x0" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (number_literal "0x0"))) () ")")) (compound_statement "{\nLAB_00082aba:\n    uVar3 = FUN_0007f6d0();\n    FUN_0004c6c0();\n    return uVar3;\n  }" ({ "{") (labeled_statement "LAB_00082aba:\n    uVar3 = FUN_0007f6d0();" (statement_identifier "LAB_00082aba") (: ":") (expression_statement "uVar3 = FUN_0007f6d0();" (assignment_expression "uVar3 = FUN_0007f6d0()" (identifier "uVar3") (= "=") (call_expression "FUN_0007f6d0()" (identifier "FUN_0007f6d0") (argument_list "()" (( "(") () ")")))) (; ";"))) (expression_statement "FUN_0004c6c0();" (call_expression "FUN_0004c6c0()" (identifier "FUN_0004c6c0") (argument_list "()" (( "(") () ")"))) (; ";")) (return_statement "return uVar3;" (return "return") (identifier "uVar3") (; ";")) (} "}"))) (if_statement "if (*(int *)(*param_1 + 0xc) != 0) {\n    (**(code **)(unaff_EDI + 0x1389d6))(*(int *)(*param_1 + 0xc));\n  }" (if "if") (parenthesized_expression "(*(int *)(*param_1 + 0xc) != 0)" (( "(") (binary_expression "*(int *)(*param_1 + 0xc) != 0" (pointer_expression "*(int *)(*param_1 + 0xc)" (* "*") (cast_expression "(int *)(*param_1 + 0xc)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(*param_1 + 0xc)" (( "(") (binary_expression "*param_1 + 0xc" (pointer_expression "*param_1" (* "*") (identifier "param_1")) (+ "+") (number_literal "0xc")) () ")")))) (!= "!=") (number_literal "0")) () ")")) (compound_statement "{\n    (**(code **)(unaff_EDI + 0x1389d6))(*(int *)(*param_1 + 0xc));\n  }" ({ "{") (expression_statement "(**(code **)(unaff_EDI + 0x1389d6))(*(int *)(*param_1 + 0xc));" (call_expression "(**(code **)(unaff_EDI + 0x1389d6))(*(int *)(*param_1 + 0xc))" (parenthesized_expression "(**(code **)(unaff_EDI + 0x1389d6))" (( "(") (pointer_expression "**(code **)(unaff_EDI + 0x1389d6)" (* "*") (pointer_expression "*(code **)(unaff_EDI + 0x1389d6)" (* "*") (cast_expression "(code **)(unaff_EDI + 0x1389d6)" (( "(") (type_descriptor "code **" (type_identifier "code") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (parenthesized_expression "(unaff_EDI + 0x1389d6)" (( "(") (binary_expression "unaff_EDI + 0x1389d6" (identifier "unaff_EDI") (+ "+") (number_literal "0x1389d6")) () ")"))))) () ")")) (argument_list "(*(int *)(*param_1 + 0xc))" (( "(") (pointer_expression "*(int *)(*param_1 + 0xc)" (* "*") (cast_expression "(int *)(*param_1 + 0xc)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(*param_1 + 0xc)" (( "(") (binary_expression "*param_1 + 0xc" (pointer_expression "*param_1" (* "*") (identifier "param_1")) (+ "+") (number_literal "0xc")) () ")")))) () ")"))) (; ";")) (} "}"))) (if_statement "if ((param_1[0x1d] == 0) || (*(ushort *)(param_1 + 0x22) <= param_2)) {\n    *(undefined4 *)(*param_1 + 0x3c) = 0x19;\n    FUN_0004c5a0();\n    goto LAB_00082aba;\n  }" (if "if") (parenthesized_expression "((param_1[0x1d] == 0) || (*(ushort *)(param_1 + 0x22) <= param_2))" (( "(") (binary_expression "(param_1[0x1d] == 0) || (*(ushort *)(param_1 + 0x22) <= param_2)" (parenthesized_expression "(param_1[0x1d] == 0)" (( "(") (binary_expression "param_1[0x1d] == 0" (subscript_expression "param_1[0x1d]" (identifier "param_1") ([ "[") (number_literal "0x1d") (] "]")) (== "==") (number_literal "0")) () ")")) (|| "||") (parenthesized_expression "(*(ushort *)(param_1 + 0x22) <= param_2)" (( "(") (binary_expression "*(ushort *)(param_1 + 0x22) <= param_2" (pointer_expression "*(ushort *)(param_1 + 0x22)" (* "*") (cast_expression "(ushort *)(param_1 + 0x22)" (( "(") (type_descriptor "ushort *" (type_identifier "ushort") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x22)" (( "(") (binary_expression "param_1 + 0x22" (identifier "param_1") (+ "+") (number_literal "0x22")) () ")")))) (<= "<=") (identifier "param_2")) () ")"))) () ")")) (compound_statement "{\n    *(undefined4 *)(*param_1 + 0x3c) = 0x19;\n    FUN_0004c5a0();\n    goto LAB_00082aba;\n  }" ({ "{") (expression_statement "*(undefined4 *)(*param_1 + 0x3c) = 0x19;" (assignment_expression "*(undefined4 *)(*param_1 + 0x3c) = 0x19" (pointer_expression "*(undefined4 *)(*param_1 + 0x3c)" (* "*") (cast_expression "(undefined4 *)(*param_1 + 0x3c)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(*param_1 + 0x3c)" (( "(") (binary_expression "*param_1 + 0x3c" (pointer_expression "*param_1" (* "*") (identifier "param_1")) (+ "+") (number_literal "0x3c")) () ")")))) (= "=") (number_literal "0x19")) (; ";")) (expression_statement "FUN_0004c5a0();" (call_expression "FUN_0004c5a0()" (identifier "FUN_0004c5a0") (argument_list "()" (( "(") () ")"))) (; ";")) (goto_statement "goto LAB_00082aba;" (goto "goto") (statement_identifier "LAB_00082aba") (; ";")) (} "}"))) (expression_statement "iVar1 = param_1[0x1d] + param_2 * 0x28;" (assignment_expression "iVar1 = param_1[0x1d] + param_2 * 0x28" (identifier "iVar1") (= "=") (binary_expression "param_1[0x1d] + param_2 * 0x28" (subscript_expression "param_1[0x1d]" (identifier "param_1") ([ "[") (number_literal "0x1d") (] "]")) (+ "+") (binary_expression "param_2 * 0x28" (identifier "param_2") (* "*") (number_literal "0x28")))) (; ";")) (expression_statement "uVar2 = *(ushort *)(iVar1 + 8);" (assignment_expression "uVar2 = *(ushort *)(iVar1 + 8)" (identifier "uVar2") (= "=") (pointer_expression "*(ushort *)(iVar1 + 8)" (* "*") (cast_expression "(ushort *)(iVar1 + 8)" (( "(") (type_descriptor "ushort *" (type_identifier "ushort") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar1 + 8)" (( "(") (binary_expression "iVar1 + 8" (identifier "iVar1") (+ "+") (number_literal "8")) () ")"))))) (; ";")) (if_statement "if ((uVar2 & 0x12) == 0) goto LAB_00082aba;" (if "if") (parenthesized_expression "((uVar2 & 0x12) == 0)" (( "(") (binary_expression "(uVar2 & 0x12) == 0" (parenthesized_expression "(uVar2 & 0x12)" (( "(") (binary_expression "uVar2 & 0x12" (identifier "uVar2") (& "&") (number_literal "0x12")) () ")")) (== "==") (number_literal "0")) () ")")) (goto_statement "goto LAB_00082aba;" (goto "goto") (statement_identifier "LAB_00082aba") (; ";"))) (if_statement "if ((uVar2 & 0x4000) == 0) {\n    *(ushort *)(iVar1 + 8) = uVar2 | 0x10;\n    iVar4 = *(int *)(iVar1 + 0xc);\n  }\n  else {\n    iVar4 = FUN_0006e0b0();\n    if (iVar4 != 0) goto LAB_00082b25;\n    *(ushort *)(iVar1 + 8) = *(ushort *)(iVar1 + 8) | 0x10;\n    iVar4 = *(int *)(iVar1 + 0xc);\n  }" (if "if") (parenthesized_expression "((uVar2 & 0x4000) == 0)" (( "(") (binary_expression "(uVar2 & 0x4000) == 0" (parenthesized_expression "(uVar2 & 0x4000)" (( "(") (binary_expression "uVar2 & 0x4000" (identifier "uVar2") (& "&") (number_literal "0x4000")) () ")")) (== "==") (number_literal "0")) () ")")) (compound_statement "{\n    *(ushort *)(iVar1 + 8) = uVar2 | 0x10;\n    iVar4 = *(int *)(iVar1 + 0xc);\n  }" ({ "{") (expression_statement "*(ushort *)(iVar1 + 8) = uVar2 | 0x10;" (assignment_expression "*(ushort *)(iVar1 + 8) = uVar2 | 0x10" (pointer_expression "*(ushort *)(iVar1 + 8)" (* "*") (cast_expression "(ushort *)(iVar1 + 8)" (( "(") (type_descriptor "ushort *" (type_identifier "ushort") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar1 + 8)" (( "(") (binary_expression "iVar1 + 8" (identifier "iVar1") (+ "+") (number_literal "8")) () ")")))) (= "=") (binary_expression "uVar2 | 0x10" (identifier "uVar2") (| "|") (number_literal "0x10"))) (; ";")) (expression_statement "iVar4 = *(int *)(iVar1 + 0xc);" (assignment_expression "iVar4 = *(int *)(iVar1 + 0xc)" (identifier "iVar4") (= "=") (pointer_expression "*(int *)(iVar1 + 0xc)" (* "*") (cast_expression "(int *)(iVar1 + 0xc)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar1 + 0xc)" (( "(") (binary_expression "iVar1 + 0xc" (identifier "iVar1") (+ "+") (number_literal "0xc")) () ")"))))) (; ";")) (} "}")) (else_clause "else {\n    iVar4 = FUN_0006e0b0();\n    if (iVar4 != 0) goto LAB_00082b25;\n    *(ushort *)(iVar1 + 8) = *(ushort *)(iVar1 + 8) | 0x10;\n    iVar4 = *(int *)(iVar1 + 0xc);\n  }" (else "else") (compound_statement "{\n    iVar4 = FUN_0006e0b0();\n    if (iVar4 != 0) goto LAB_00082b25;\n    *(ushort *)(iVar1 + 8) = *(ushort *)(iVar1 + 8) | 0x10;\n    iVar4 = *(int *)(iVar1 + 0xc);\n  }" ({ "{") (expression_statement "iVar4 = FUN_0006e0b0();" (assignment_expression "iVar4 = FUN_0006e0b0()" (identifier "iVar4") (= "=") (call_expression "FUN_0006e0b0()" (identifier "FUN_0006e0b0") (argument_list "()" (( "(") () ")")))) (; ";")) (if_statement "if (iVar4 != 0) goto LAB_00082b25;" (if "if") (parenthesized_expression "(iVar4 != 0)" (( "(") (binary_expression "iVar4 != 0" (identifier "iVar4") (!= "!=") (number_literal "0")) () ")")) (goto_statement "goto LAB_00082b25;" (goto "goto") (statement_identifier "LAB_00082b25") (; ";"))) (expression_statement "*(ushort *)(iVar1 + 8) = *(ushort *)(iVar1 + 8) | 0x10;" (assignment_expression "*(ushort *)(iVar1 + 8) = *(ushort *)(iVar1 + 8) | 0x10" (pointer_expression "*(ushort *)(iVar1 + 8)" (* "*") (cast_expression "(ushort *)(iVar1 + 8)" (( "(") (type_descriptor "ushort *" (type_identifier "ushort") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar1 + 8)" (( "(") (binary_expression "iVar1 + 8" (identifier "iVar1") (+ "+") (number_literal "8")) () ")")))) (= "=") (binary_expression "*(ushort *)(iVar1 + 8) | 0x10" (pointer_expression "*(ushort *)(iVar1 + 8)" (* "*") (cast_expression "(ushort *)(iVar1 + 8)" (( "(") (type_descriptor "ushort *" (type_identifier "ushort") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar1 + 8)" (( "(") (binary_expression "iVar1 + 8" (identifier "iVar1") (+ "+") (number_literal "8")) () ")")))) (| "|") (number_literal "0x10"))) (; ";")) (expression_statement "iVar4 = *(int *)(iVar1 + 0xc);" (assignment_expression "iVar4 = *(int *)(iVar1 + 0xc)" (identifier "iVar4") (= "=") (pointer_expression "*(int *)(iVar1 + 0xc)" (* "*") (cast_expression "(int *)(iVar1 + 0xc)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar1 + 0xc)" (( "(") (binary_expression "iVar1 + 0xc" (identifier "iVar1") (+ "+") (number_literal "0xc")) () ")"))))) (; ";")) (} "}")))) (if_statement "if (iVar4 != 0) {\n    uVar3 = *(undefined4 *)(iVar1 + 0x10);\n    FUN_0004c6c0();\n    return uVar3;\n  }" (if "if") (parenthesized_expression "(iVar4 != 0)" (( "(") (binary_expression "iVar4 != 0" (identifier "iVar4") (!= "!=") (number_literal "0")) () ")")) (compound_statement "{\n    uVar3 = *(undefined4 *)(iVar1 + 0x10);\n    FUN_0004c6c0();\n    return uVar3;\n  }" ({ "{") (expression_statement "uVar3 = *(undefined4 *)(iVar1 + 0x10);" (assignment_expression "uVar3 = *(undefined4 *)(iVar1 + 0x10)" (identifier "uVar3") (= "=") (pointer_expression "*(undefined4 *)(iVar1 + 0x10)" (* "*") (cast_expression "(undefined4 *)(iVar1 + 0x10)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar1 + 0x10)" (( "(") (binary_expression "iVar1 + 0x10" (identifier "iVar1") (+ "+") (number_literal "0x10")) () ")"))))) (; ";")) (expression_statement "FUN_0004c6c0();" (call_expression "FUN_0004c6c0()" (identifier "FUN_0004c6c0") (argument_list "()" (( "(") () ")"))) (; ";")) (return_statement "return uVar3;" (return "return") (identifier "uVar3") (; ";")) (} "}"))) (labeled_statement "LAB_00082b25:\n  FUN_0004c6c0();" (statement_identifier "LAB_00082b25") (: ":") (expression_statement "FUN_0004c6c0();" (call_expression "FUN_0004c6c0()" (identifier "FUN_0004c6c0") (argument_list "()" (( "(") () ")"))) (; ";"))) (return_statement "return 0;" (return "return") (number_literal "0") (; ";")) (} "}")))

void * function_1(type_1 *var_2,int var_8)

{
  type_2 var_9;
  type_3 *db;
  char *pcVar2;
  void *pvVar3;
  int var_11;
  type_4 extraout_EDX;
  type_4 extraout_EDX_00;
  type_4 var_6;
  type_4 extraout_EDX_01;
  type_5 *pOut;
  type_6 *pMem;
  int var_3;
  
  var_1();
  if (var_2 == (type_1 *)0x0) {
    pMem = (type_6 *)(var_3 + 0xe02fa);
    var_6 = extraout_EDX;
LAB_00082aba:
    pvVar3 = var_4(pMem,(type_7)var_6);
    var_5(var_2);
    return pvVar3;
  }
  var_6 = extraout_EDX;
  if (*(int *)(*(int *)var_2 + 0xc) != 0) {
    (**(type_8 **)(var_3 + 0x1389d6))(*(int *)(*(int *)var_2 + 0xc));
    var_6 = extraout_EDX_00;
  }
  if ((*(int *)(var_2 + 0x74) == 0) || (var_6 = (type_4)*(type_2 *)(var_2 + 0x88), var_6 <= (type_4)var_8))
  {
    db = *(type_3 **)var_2;
    pMem = (type_6 *)(var_3 + 0xe02fa);
    db->errCode = 0x19;
    var_7(db,var_6);
    var_6 = extraout_EDX_01;
    goto LAB_00082aba;
  }
  var_6 = var_8 * 5;
  pMem = (type_6 *)(*(int *)(var_2 + 0x74) + var_8 * 0x28);
  var_9 = pMem->flags;
  if ((var_9 & 0x12) == 0) goto LAB_00082aba;
  if ((var_9 & 0x4000) == 0) {
    pMem->flags = var_9 | 0x10;
    var_11 = pMem->n;
  }
  else {
    var_11 = var_10(pMem);
    if (var_11 != 0) goto LAB_00082b25;
    pMem->flags = pMem->flags | 0x10;
    var_11 = pMem->n;
  }
  if (var_11 != 0) {
    pcVar2 = pMem->z;
    var_5(var_2);
    return pcVar2;
  }
LAB_00082b25:
  var_5(var_2);
  return (void *)0x0;
}


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

undefined4 MASKED(int *param_1,uint param_2)

{
  int iVar1;
  ushort uVar2;
  undefined4 uVar3;
  int iVar4;
  int unaff_EDI;
  
  FUN_0003a401();
  if (param_1 == (int *)0x0) {
LAB_00082aba:
    uVar3 = FUN_0007f6d0();
    FUN_0004c6c0();
    return uVar3;
  }
  if (*(int *)(*param_1 + 0xc) != 0) {
    (**(code **)(unaff_EDI + 0x1389d6))(*(int *)(*param_1 + 0xc));
  }
  if ((param_1[0x1d] == 0) || (*(ushort *)(param_1 + 0x22) <= param_2)) {
    *(undefined4 *)(*param_1 + 0x3c) = 0x19;
    FUN_0004c5a0();
    goto LAB_00082aba;
  }
  iVar1 = param_1[0x1d] + param_2 * 0x28;
  uVar2 = *(ushort *)(iVar1 + 8);
  if ((uVar2 & 0x12) == 0) goto LAB_00082aba;
  if ((uVar2 & 0x4000) == 0) {
    *(ushort *)(iVar1 + 8) = uVar2 | 0x10;
    iVar4 = *(int *)(iVar1 + 0xc);
  }
  else {
    iVar4 = FUN_0006e0b0();
    if (iVar4 != 0) goto LAB_00082b25;
    *(ushort *)(iVar1 + 8) = *(ushort *)(iVar1 + 8) | 0x10;
    iVar4 = *(int *)(iVar1 + 0xc);
  }
  if (iVar4 != 0) {
    uVar3 = *(undefined4 *)(iVar1 + 0x10);
    FUN_0004c6c0();
    return uVar3;
  }
LAB_00082b25:
  FUN_0004c6c0();
  return 0;
}

