
int vdbeSorterJoinAll(VdbeSorter *pSorter,int rcin)

{
  undefined *puVar1;
  SortSubtask *pSVar2;
  SortSubtask *pSVar3;
  i64 *piVar4;
  void *pRet;
  int iStack_2c;
  
  puVar1 = PTR___stack_chk_guard_00190e24;
  iStack_2c = *(int *)PTR___stack_chk_guard_00190e24;
  if (pSorter->nTask != 0) {
    piVar4 = &pSorter[-1].aTask[0].file2.iEof;
    pSVar3 = pSorter->aTask + (pSorter->nTask - 1);
    do {
      while (pSVar3->pThread != (SQLiteThread *)0x0) {
        pRet = (void *)0x1;
        sqlite3ThreadJoin(pSVar3->pThread,&pRet);
        pSVar2 = pSVar3 + -1;
        if ((void *)rcin == (void *)0x0) {
          rcin = (int)pRet;
        }
        pSVar3->bDone = 0;
        pSVar3->pThread = (SQLiteThread *)0x0;
        pSVar3 = pSVar2;
        if (pSVar2 == (SortSubtask *)piVar4) goto LAB_0006a2ec;
      }
      pSVar3 = pSVar3 + -1;
      if ((void *)rcin == (void *)0x0) {
        rcin = 0;
      }
    } while (pSVar3 != (SortSubtask *)piVar4);
  }
LAB_0006a2ec:
  if (iStack_2c != *(int *)puVar1) {
    (*(code *)PTR___stack_chk_fail_00190df8)();
    return 0;
  }
  return (int)(void *)rcin;
}



int FUN_0006a20c(int param_1,int param_2)

{
  undefined *puVar1;
  int *piVar2;
  int *piVar3;
  int local_30;
  int local_2c;
  
  puVar1 = PTR___stack_chk_guard_00190e24;
  local_2c = *(int *)PTR___stack_chk_guard_00190e24;
  if (*(byte *)(param_1 + 0x3b) != 0) {
    piVar3 = (int *)(param_1 + (*(byte *)(param_1 + 0x3b) - 1) * 0x48 + 0x40);
    do {
      while (*piVar3 != 0) {
        local_30 = 1;
        FUN_00069e24(*piVar3,&local_30);
        piVar2 = piVar3 + -0x12;
        if (param_2 == 0) {
          param_2 = local_30;
        }
        piVar3[1] = 0;
        *piVar3 = 0;
        piVar3 = piVar2;
        if (piVar2 == (int *)(param_1 + -8)) goto LAB_0006a2ec;
      }
      piVar3 = piVar3 + -0x12;
      if (param_2 == 0) {
        param_2 = 0;
      }
    } while (piVar3 != (int *)(param_1 + -8));
  }
LAB_0006a2ec:
  if (local_2c != *(int *)puVar1) {
    (*(code *)PTR___stack_chk_fail_00190df8)();
    return 0;
  }
  return param_2;
}


lui gp,0x13
addiu gp,gp,-0x18ec
addu gp,gp,t9
addiu sp,sp,-0x48
sw s5,0x34(sp)
sw gp,0x10(sp)
sw ra,0x44(sp)
sw s8,0x40(sp)
sw s7,0x3c(sp)
sw s6,0x38(sp)
sw s4,0x30(sp)
sw s3,0x2c(sp)
sw s2,0x28(sp)
sw s1,0x24(sp)
sw s0,0x20(sp)
lw s5,-0x7afc(gp)
lbu v0,0x3b(a0)
lw a2,0x0(s5)
sw a2,0x1c(sp)
beq v0,zero,0x0006a32c
_addiu v1,v0,-0x1
lw s3,-0x7d68(gp)
sll s2,v0,0x3
sll s0,v1,0x3
addu s2,s2,v0
addu s0,s0,v1
sll s2,s2,0x3
sll s0,s0,0x3
addiu s7,a0,-0x8
addiu s0,s0,0x40
subu s6,zero,s2
addu s0,a0,s0
li s4,0x1
addiu s8,sp,0x18
addiu s3,s3,-0x61dc
b 0x0006a2d0
_or s1,a1,zero
or t9,s3,zero
bal 0x00069e24
_sw s4,0x18(sp)
addu v0,s0,s6
lw v1,0x18(sp)
addiu s0,s0,-0x48
addu v0,v0,s2
lw gp,0x10(sp)
movz s1,v1,s1
sw zero,0x4(v0)
beq s0,s7,0x0006a2ec
_sw zero,0x48(s0)
lw a0,0x0(s0)
bne a0,zero,0x0006a2a0
_or a1,s8,zero
or v1,zero,zero
addiu s0,s0,-0x48
bne s0,s7,0x0006a2d0
_movz s1,v1,s1
lw a0,0x1c(sp)
or v0,s1,zero
lw v1,0x0(s5)
bne a0,v1,0x0006a334
_lw ra,0x44(sp)
lw s8,0x40(sp)
lw s7,0x3c(sp)
lw s6,0x38(sp)
lw s5,0x34(sp)
lw s4,0x30(sp)
lw s3,0x2c(sp)
lw s2,0x28(sp)
lw s1,0x24(sp)
lw s0,0x20(sp)
jr ra
_addiu sp,sp,0x48
b 0x0006a2ec
_or s1,a1,zero
lw t9,-0x7b28(gp)
jalr t9
_nop
jr ra
_or v0,zero,zero
(translation_unit "int FUN_0006a20c(int param_1,int param_2)\n\n{\n  undefined *puVar1;\n  int *piVar2;\n  int *piVar3;\n  int local_30;\n  int local_2c;\n  \n  puVar1 = PTR___stack_chk_guard_00190e24;\n  local_2c = *(int *)PTR___stack_chk_guard_00190e24;\n  if (*(byte *)(param_1 + 0x3b) != 0) {\n    piVar3 = (int *)(param_1 + (*(byte *)(param_1 + 0x3b) - 1) * 0x48 + 0x40);\n    do {\n      while (*piVar3 != 0) {\n        local_30 = 1;\n        FUN_00069e24(*piVar3,&local_30);\n        piVar2 = piVar3 + -0x12;\n        if (param_2 == 0) {\n          param_2 = local_30;\n        }\n        piVar3[1] = 0;\n        *piVar3 = 0;\n        piVar3 = piVar2;\n        if (piVar2 == (int *)(param_1 + -8)) goto LAB_0006a2ec;\n      }\n      piVar3 = piVar3 + -0x12;\n      if (param_2 == 0) {\n        param_2 = 0;\n      }\n    } while (piVar3 != (int *)(param_1 + -8));\n  }\nLAB_0006a2ec:\n  if (local_2c != *(int *)puVar1) {\n    (*(code *)PTR___stack_chk_fail_00190df8)();\n    return 0;\n  }\n  return param_2;\n}\n\n" (function_definition "int FUN_0006a20c(int param_1,int param_2)\n\n{\n  undefined *puVar1;\n  int *piVar2;\n  int *piVar3;\n  int local_30;\n  int local_2c;\n  \n  puVar1 = PTR___stack_chk_guard_00190e24;\n  local_2c = *(int *)PTR___stack_chk_guard_00190e24;\n  if (*(byte *)(param_1 + 0x3b) != 0) {\n    piVar3 = (int *)(param_1 + (*(byte *)(param_1 + 0x3b) - 1) * 0x48 + 0x40);\n    do {\n      while (*piVar3 != 0) {\n        local_30 = 1;\n        FUN_00069e24(*piVar3,&local_30);\n        piVar2 = piVar3 + -0x12;\n        if (param_2 == 0) {\n          param_2 = local_30;\n        }\n        piVar3[1] = 0;\n        *piVar3 = 0;\n        piVar3 = piVar2;\n        if (piVar2 == (int *)(param_1 + -8)) goto LAB_0006a2ec;\n      }\n      piVar3 = piVar3 + -0x12;\n      if (param_2 == 0) {\n        param_2 = 0;\n      }\n    } while (piVar3 != (int *)(param_1 + -8));\n  }\nLAB_0006a2ec:\n  if (local_2c != *(int *)puVar1) {\n    (*(code *)PTR___stack_chk_fail_00190df8)();\n    return 0;\n  }\n  return param_2;\n}" primitive_type (function_declarator "FUN_0006a20c(int param_1,int param_2)" identifier (parameter_list "(int param_1,int param_2)" ( (parameter_declaration "int param_1" primitive_type identifier) , (parameter_declaration "int param_2" primitive_type identifier) ))) (compound_statement "{\n  undefined *puVar1;\n  int *piVar2;\n  int *piVar3;\n  int local_30;\n  int local_2c;\n  \n  puVar1 = PTR___stack_chk_guard_00190e24;\n  local_2c = *(int *)PTR___stack_chk_guard_00190e24;\n  if (*(byte *)(param_1 + 0x3b) != 0) {\n    piVar3 = (int *)(param_1 + (*(byte *)(param_1 + 0x3b) - 1) * 0x48 + 0x40);\n    do {\n      while (*piVar3 != 0) {\n        local_30 = 1;\n        FUN_00069e24(*piVar3,&local_30);\n        piVar2 = piVar3 + -0x12;\n        if (param_2 == 0) {\n          param_2 = local_30;\n        }\n        piVar3[1] = 0;\n        *piVar3 = 0;\n        piVar3 = piVar2;\n        if (piVar2 == (int *)(param_1 + -8)) goto LAB_0006a2ec;\n      }\n      piVar3 = piVar3 + -0x12;\n      if (param_2 == 0) {\n        param_2 = 0;\n      }\n    } while (piVar3 != (int *)(param_1 + -8));\n  }\nLAB_0006a2ec:\n  if (local_2c != *(int *)puVar1) {\n    (*(code *)PTR___stack_chk_fail_00190df8)();\n    return 0;\n  }\n  return param_2;\n}" { (declaration "undefined *puVar1;" type_identifier (pointer_declarator "*puVar1" * identifier) ;) (declaration "int *piVar2;" primitive_type (pointer_declarator "*piVar2" * identifier) ;) (declaration "int *piVar3;" primitive_type (pointer_declarator "*piVar3" * identifier) ;) (declaration "int local_30;" primitive_type identifier ;) (declaration "int local_2c;" primitive_type identifier ;) (expression_statement "puVar1 = PTR___stack_chk_guard_00190e24;" (assignment_expression "puVar1 = PTR___stack_chk_guard_00190e24" identifier = identifier) ;) (expression_statement "local_2c = *(int *)PTR___stack_chk_guard_00190e24;" (assignment_expression "local_2c = *(int *)PTR___stack_chk_guard_00190e24" identifier = (pointer_expression "*(int *)PTR___stack_chk_guard_00190e24" * (cast_expression "(int *)PTR___stack_chk_guard_00190e24" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) identifier))) ;) (if_statement "if (*(byte *)(param_1 + 0x3b) != 0) {\n    piVar3 = (int *)(param_1 + (*(byte *)(param_1 + 0x3b) - 1) * 0x48 + 0x40);\n    do {\n      while (*piVar3 != 0) {\n        local_30 = 1;\n        FUN_00069e24(*piVar3,&local_30);\n        piVar2 = piVar3 + -0x12;\n        if (param_2 == 0) {\n          param_2 = local_30;\n        }\n        piVar3[1] = 0;\n        *piVar3 = 0;\n        piVar3 = piVar2;\n        if (piVar2 == (int *)(param_1 + -8)) goto LAB_0006a2ec;\n      }\n      piVar3 = piVar3 + -0x12;\n      if (param_2 == 0) {\n        param_2 = 0;\n      }\n    } while (piVar3 != (int *)(param_1 + -8));\n  }" if (parenthesized_expression "(*(byte *)(param_1 + 0x3b) != 0)" ( (binary_expression "*(byte *)(param_1 + 0x3b) != 0" (pointer_expression "*(byte *)(param_1 + 0x3b)" * (cast_expression "(byte *)(param_1 + 0x3b)" ( (type_descriptor "byte *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x3b)" ( (binary_expression "param_1 + 0x3b" identifier + number_literal) )))) != number_literal) )) (compound_statement "{\n    piVar3 = (int *)(param_1 + (*(byte *)(param_1 + 0x3b) - 1) * 0x48 + 0x40);\n    do {\n      while (*piVar3 != 0) {\n        local_30 = 1;\n        FUN_00069e24(*piVar3,&local_30);\n        piVar2 = piVar3 + -0x12;\n        if (param_2 == 0) {\n          param_2 = local_30;\n        }\n        piVar3[1] = 0;\n        *piVar3 = 0;\n        piVar3 = piVar2;\n        if (piVar2 == (int *)(param_1 + -8)) goto LAB_0006a2ec;\n      }\n      piVar3 = piVar3 + -0x12;\n      if (param_2 == 0) {\n        param_2 = 0;\n      }\n    } while (piVar3 != (int *)(param_1 + -8));\n  }" { (expression_statement "piVar3 = (int *)(param_1 + (*(byte *)(param_1 + 0x3b) - 1) * 0x48 + 0x40);" (assignment_expression "piVar3 = (int *)(param_1 + (*(byte *)(param_1 + 0x3b) - 1) * 0x48 + 0x40)" identifier = (cast_expression "(int *)(param_1 + (*(byte *)(param_1 + 0x3b) - 1) * 0x48 + 0x40)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + (*(byte *)(param_1 + 0x3b) - 1) * 0x48 + 0x40)" ( (binary_expression "param_1 + (*(byte *)(param_1 + 0x3b) - 1) * 0x48 + 0x40" (binary_expression "param_1 + (*(byte *)(param_1 + 0x3b) - 1) * 0x48" identifier + (binary_expression "(*(byte *)(param_1 + 0x3b) - 1) * 0x48" (parenthesized_expression "(*(byte *)(param_1 + 0x3b) - 1)" ( (binary_expression "*(byte *)(param_1 + 0x3b) - 1" (pointer_expression "*(byte *)(param_1 + 0x3b)" * (cast_expression "(byte *)(param_1 + 0x3b)" ( (type_descriptor "byte *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x3b)" ( (binary_expression "param_1 + 0x3b" identifier + number_literal) )))) - number_literal) )) * number_literal)) + number_literal) )))) ;) (do_statement "do {\n      while (*piVar3 != 0) {\n        local_30 = 1;\n        FUN_00069e24(*piVar3,&local_30);\n        piVar2 = piVar3 + -0x12;\n        if (param_2 == 0) {\n          param_2 = local_30;\n        }\n        piVar3[1] = 0;\n        *piVar3 = 0;\n        piVar3 = piVar2;\n        if (piVar2 == (int *)(param_1 + -8)) goto LAB_0006a2ec;\n      }\n      piVar3 = piVar3 + -0x12;\n      if (param_2 == 0) {\n        param_2 = 0;\n      }\n    } while (piVar3 != (int *)(param_1 + -8));" do (compound_statement "{\n      while (*piVar3 != 0) {\n        local_30 = 1;\n        FUN_00069e24(*piVar3,&local_30);\n        piVar2 = piVar3 + -0x12;\n        if (param_2 == 0) {\n          param_2 = local_30;\n        }\n        piVar3[1] = 0;\n        *piVar3 = 0;\n        piVar3 = piVar2;\n        if (piVar2 == (int *)(param_1 + -8)) goto LAB_0006a2ec;\n      }\n      piVar3 = piVar3 + -0x12;\n      if (param_2 == 0) {\n        param_2 = 0;\n      }\n    }" { (while_statement "while (*piVar3 != 0) {\n        local_30 = 1;\n        FUN_00069e24(*piVar3,&local_30);\n        piVar2 = piVar3 + -0x12;\n        if (param_2 == 0) {\n          param_2 = local_30;\n        }\n        piVar3[1] = 0;\n        *piVar3 = 0;\n        piVar3 = piVar2;\n        if (piVar2 == (int *)(param_1 + -8)) goto LAB_0006a2ec;\n      }" while (parenthesized_expression "(*piVar3 != 0)" ( (binary_expression "*piVar3 != 0" (pointer_expression "*piVar3" * identifier) != number_literal) )) (compound_statement "{\n        local_30 = 1;\n        FUN_00069e24(*piVar3,&local_30);\n        piVar2 = piVar3 + -0x12;\n        if (param_2 == 0) {\n          param_2 = local_30;\n        }\n        piVar3[1] = 0;\n        *piVar3 = 0;\n        piVar3 = piVar2;\n        if (piVar2 == (int *)(param_1 + -8)) goto LAB_0006a2ec;\n      }" { (expression_statement "local_30 = 1;" (assignment_expression "local_30 = 1" identifier = number_literal) ;) (expression_statement "FUN_00069e24(*piVar3,&local_30);" (call_expression "FUN_00069e24(*piVar3,&local_30)" identifier (argument_list "(*piVar3,&local_30)" ( (pointer_expression "*piVar3" * identifier) , (pointer_expression "&local_30" & identifier) ))) ;) (expression_statement "piVar2 = piVar3 + -0x12;" (assignment_expression "piVar2 = piVar3 + -0x12" identifier = (binary_expression "piVar3 + -0x12" identifier + number_literal)) ;) (if_statement "if (param_2 == 0) {\n          param_2 = local_30;\n        }" if (parenthesized_expression "(param_2 == 0)" ( (binary_expression "param_2 == 0" identifier == number_literal) )) (compound_statement "{\n          param_2 = local_30;\n        }" { (expression_statement "param_2 = local_30;" (assignment_expression "param_2 = local_30" identifier = identifier) ;) })) (expression_statement "piVar3[1] = 0;" (assignment_expression "piVar3[1] = 0" (subscript_expression "piVar3[1]" identifier [ number_literal ]) = number_literal) ;) (expression_statement "*piVar3 = 0;" (assignment_expression "*piVar3 = 0" (pointer_expression "*piVar3" * identifier) = number_literal) ;) (expression_statement "piVar3 = piVar2;" (assignment_expression "piVar3 = piVar2" identifier = identifier) ;) (if_statement "if (piVar2 == (int *)(param_1 + -8)) goto LAB_0006a2ec;" if (parenthesized_expression "(piVar2 == (int *)(param_1 + -8))" ( (binary_expression "piVar2 == (int *)(param_1 + -8)" identifier == (cast_expression "(int *)(param_1 + -8)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + -8)" ( (binary_expression "param_1 + -8" identifier + number_literal) )))) )) (goto_statement "goto LAB_0006a2ec;" goto statement_identifier ;)) })) (expression_statement "piVar3 = piVar3 + -0x12;" (assignment_expression "piVar3 = piVar3 + -0x12" identifier = (binary_expression "piVar3 + -0x12" identifier + number_literal)) ;) (if_statement "if (param_2 == 0) {\n        param_2 = 0;\n      }" if (parenthesized_expression "(param_2 == 0)" ( (binary_expression "param_2 == 0" identifier == number_literal) )) (compound_statement "{\n        param_2 = 0;\n      }" { (expression_statement "param_2 = 0;" (assignment_expression "param_2 = 0" identifier = number_literal) ;) })) }) while (parenthesized_expression "(piVar3 != (int *)(param_1 + -8))" ( (binary_expression "piVar3 != (int *)(param_1 + -8)" identifier != (cast_expression "(int *)(param_1 + -8)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + -8)" ( (binary_expression "param_1 + -8" identifier + number_literal) )))) )) ;) })) (labeled_statement "LAB_0006a2ec:\n  if (local_2c != *(int *)puVar1) {\n    (*(code *)PTR___stack_chk_fail_00190df8)();\n    return 0;\n  }" statement_identifier : (if_statement "if (local_2c != *(int *)puVar1) {\n    (*(code *)PTR___stack_chk_fail_00190df8)();\n    return 0;\n  }" if (parenthesized_expression "(local_2c != *(int *)puVar1)" ( (binary_expression "local_2c != *(int *)puVar1" identifier != (pointer_expression "*(int *)puVar1" * (cast_expression "(int *)puVar1" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) identifier))) )) (compound_statement "{\n    (*(code *)PTR___stack_chk_fail_00190df8)();\n    return 0;\n  }" { (expression_statement "(*(code *)PTR___stack_chk_fail_00190df8)();" (call_expression "(*(code *)PTR___stack_chk_fail_00190df8)()" (parenthesized_expression "(*(code *)PTR___stack_chk_fail_00190df8)" ( (pointer_expression "*(code *)PTR___stack_chk_fail_00190df8" * (cast_expression "(code *)PTR___stack_chk_fail_00190df8" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "()" ( ))) ;) (return_statement "return 0;" return number_literal ;) }))) (return_statement "return param_2;" return identifier ;) })))
(translation_unit "int vdbeSorterJoinAll(VdbeSorter *pSorter,int rcin)\n\n{\n  undefined *puVar1;\n  SortSubtask *pSVar2;\n  SortSubtask *pSVar3;\n  i64 *piVar4;\n  void *pRet;\n  int iStack_2c;\n  \n  puVar1 = PTR___stack_chk_guard_00190e24;\n  iStack_2c = *(int *)PTR___stack_chk_guard_00190e24;\n  if (pSorter->nTask != 0) {\n    piVar4 = &pSorter[-1].aTask[0].file2.iEof;\n    pSVar3 = pSorter->aTask + (pSorter->nTask - 1);\n    do {\n      while (pSVar3->pThread != (SQLiteThread *)0x0) {\n        pRet = (void *)0x1;\n        sqlite3ThreadJoin(pSVar3->pThread,&pRet);\n        pSVar2 = pSVar3 + -1;\n        if ((void *)rcin == (void *)0x0) {\n          rcin = (int)pRet;\n        }\n        pSVar3->bDone = 0;\n        pSVar3->pThread = (SQLiteThread *)0x0;\n        pSVar3 = pSVar2;\n        if (pSVar2 == (SortSubtask *)piVar4) goto LAB_0006a2ec;\n      }\n      pSVar3 = pSVar3 + -1;\n      if ((void *)rcin == (void *)0x0) {\n        rcin = 0;\n      }\n    } while (pSVar3 != (SortSubtask *)piVar4);\n  }\nLAB_0006a2ec:\n  if (iStack_2c != *(int *)puVar1) {\n    (*(code *)PTR___stack_chk_fail_00190df8)();\n    return 0;\n  }\n  return (int)(void *)rcin;\n}\n\n" (function_definition "int vdbeSorterJoinAll(VdbeSorter *pSorter,int rcin)\n\n{\n  undefined *puVar1;\n  SortSubtask *pSVar2;\n  SortSubtask *pSVar3;\n  i64 *piVar4;\n  void *pRet;\n  int iStack_2c;\n  \n  puVar1 = PTR___stack_chk_guard_00190e24;\n  iStack_2c = *(int *)PTR___stack_chk_guard_00190e24;\n  if (pSorter->nTask != 0) {\n    piVar4 = &pSorter[-1].aTask[0].file2.iEof;\n    pSVar3 = pSorter->aTask + (pSorter->nTask - 1);\n    do {\n      while (pSVar3->pThread != (SQLiteThread *)0x0) {\n        pRet = (void *)0x1;\n        sqlite3ThreadJoin(pSVar3->pThread,&pRet);\n        pSVar2 = pSVar3 + -1;\n        if ((void *)rcin == (void *)0x0) {\n          rcin = (int)pRet;\n        }\n        pSVar3->bDone = 0;\n        pSVar3->pThread = (SQLiteThread *)0x0;\n        pSVar3 = pSVar2;\n        if (pSVar2 == (SortSubtask *)piVar4) goto LAB_0006a2ec;\n      }\n      pSVar3 = pSVar3 + -1;\n      if ((void *)rcin == (void *)0x0) {\n        rcin = 0;\n      }\n    } while (pSVar3 != (SortSubtask *)piVar4);\n  }\nLAB_0006a2ec:\n  if (iStack_2c != *(int *)puVar1) {\n    (*(code *)PTR___stack_chk_fail_00190df8)();\n    return 0;\n  }\n  return (int)(void *)rcin;\n}" primitive_type (function_declarator "vdbeSorterJoinAll(VdbeSorter *pSorter,int rcin)" identifier (parameter_list "(VdbeSorter *pSorter,int rcin)" ( (parameter_declaration "VdbeSorter *pSorter" type_identifier (pointer_declarator "*pSorter" * identifier)) , (parameter_declaration "int rcin" primitive_type identifier) ))) (compound_statement "{\n  undefined *puVar1;\n  SortSubtask *pSVar2;\n  SortSubtask *pSVar3;\n  i64 *piVar4;\n  void *pRet;\n  int iStack_2c;\n  \n  puVar1 = PTR___stack_chk_guard_00190e24;\n  iStack_2c = *(int *)PTR___stack_chk_guard_00190e24;\n  if (pSorter->nTask != 0) {\n    piVar4 = &pSorter[-1].aTask[0].file2.iEof;\n    pSVar3 = pSorter->aTask + (pSorter->nTask - 1);\n    do {\n      while (pSVar3->pThread != (SQLiteThread *)0x0) {\n        pRet = (void *)0x1;\n        sqlite3ThreadJoin(pSVar3->pThread,&pRet);\n        pSVar2 = pSVar3 + -1;\n        if ((void *)rcin == (void *)0x0) {\n          rcin = (int)pRet;\n        }\n        pSVar3->bDone = 0;\n        pSVar3->pThread = (SQLiteThread *)0x0;\n        pSVar3 = pSVar2;\n        if (pSVar2 == (SortSubtask *)piVar4) goto LAB_0006a2ec;\n      }\n      pSVar3 = pSVar3 + -1;\n      if ((void *)rcin == (void *)0x0) {\n        rcin = 0;\n      }\n    } while (pSVar3 != (SortSubtask *)piVar4);\n  }\nLAB_0006a2ec:\n  if (iStack_2c != *(int *)puVar1) {\n    (*(code *)PTR___stack_chk_fail_00190df8)();\n    return 0;\n  }\n  return (int)(void *)rcin;\n}" { (declaration "undefined *puVar1;" type_identifier (pointer_declarator "*puVar1" * identifier) ;) (declaration "SortSubtask *pSVar2;" type_identifier (pointer_declarator "*pSVar2" * identifier) ;) (declaration "SortSubtask *pSVar3;" type_identifier (pointer_declarator "*pSVar3" * identifier) ;) (declaration "i64 *piVar4;" type_identifier (pointer_declarator "*piVar4" * identifier) ;) (declaration "void *pRet;" primitive_type (pointer_declarator "*pRet" * identifier) ;) (declaration "int iStack_2c;" primitive_type identifier ;) (expression_statement "puVar1 = PTR___stack_chk_guard_00190e24;" (assignment_expression "puVar1 = PTR___stack_chk_guard_00190e24" identifier = identifier) ;) (expression_statement "iStack_2c = *(int *)PTR___stack_chk_guard_00190e24;" (assignment_expression "iStack_2c = *(int *)PTR___stack_chk_guard_00190e24" identifier = (pointer_expression "*(int *)PTR___stack_chk_guard_00190e24" * (cast_expression "(int *)PTR___stack_chk_guard_00190e24" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) identifier))) ;) (if_statement "if (pSorter->nTask != 0) {\n    piVar4 = &pSorter[-1].aTask[0].file2.iEof;\n    pSVar3 = pSorter->aTask + (pSorter->nTask - 1);\n    do {\n      while (pSVar3->pThread != (SQLiteThread *)0x0) {\n        pRet = (void *)0x1;\n        sqlite3ThreadJoin(pSVar3->pThread,&pRet);\n        pSVar2 = pSVar3 + -1;\n        if ((void *)rcin == (void *)0x0) {\n          rcin = (int)pRet;\n        }\n        pSVar3->bDone = 0;\n        pSVar3->pThread = (SQLiteThread *)0x0;\n        pSVar3 = pSVar2;\n        if (pSVar2 == (SortSubtask *)piVar4) goto LAB_0006a2ec;\n      }\n      pSVar3 = pSVar3 + -1;\n      if ((void *)rcin == (void *)0x0) {\n        rcin = 0;\n      }\n    } while (pSVar3 != (SortSubtask *)piVar4);\n  }" if (parenthesized_expression "(pSorter->nTask != 0)" ( (binary_expression "pSorter->nTask != 0" (field_expression "pSorter->nTask" identifier -> field_identifier) != number_literal) )) (compound_statement "{\n    piVar4 = &pSorter[-1].aTask[0].file2.iEof;\n    pSVar3 = pSorter->aTask + (pSorter->nTask - 1);\n    do {\n      while (pSVar3->pThread != (SQLiteThread *)0x0) {\n        pRet = (void *)0x1;\n        sqlite3ThreadJoin(pSVar3->pThread,&pRet);\n        pSVar2 = pSVar3 + -1;\n        if ((void *)rcin == (void *)0x0) {\n          rcin = (int)pRet;\n        }\n        pSVar3->bDone = 0;\n        pSVar3->pThread = (SQLiteThread *)0x0;\n        pSVar3 = pSVar2;\n        if (pSVar2 == (SortSubtask *)piVar4) goto LAB_0006a2ec;\n      }\n      pSVar3 = pSVar3 + -1;\n      if ((void *)rcin == (void *)0x0) {\n        rcin = 0;\n      }\n    } while (pSVar3 != (SortSubtask *)piVar4);\n  }" { (expression_statement "piVar4 = &pSorter[-1].aTask[0].file2.iEof;" (assignment_expression "piVar4 = &pSorter[-1].aTask[0].file2.iEof" identifier = (pointer_expression "&pSorter[-1].aTask[0].file2.iEof" & (field_expression "pSorter[-1].aTask[0].file2.iEof" (field_expression "pSorter[-1].aTask[0].file2" (subscript_expression "pSorter[-1].aTask[0]" (field_expression "pSorter[-1].aTask" (subscript_expression "pSorter[-1]" identifier [ number_literal ]) . field_identifier) [ number_literal ]) . field_identifier) . field_identifier))) ;) (expression_statement "pSVar3 = pSorter->aTask + (pSorter->nTask - 1);" (assignment_expression "pSVar3 = pSorter->aTask + (pSorter->nTask - 1)" identifier = (binary_expression "pSorter->aTask + (pSorter->nTask - 1)" (field_expression "pSorter->aTask" identifier -> field_identifier) + (parenthesized_expression "(pSorter->nTask - 1)" ( (binary_expression "pSorter->nTask - 1" (field_expression "pSorter->nTask" identifier -> field_identifier) - number_literal) )))) ;) (do_statement "do {\n      while (pSVar3->pThread != (SQLiteThread *)0x0) {\n        pRet = (void *)0x1;\n        sqlite3ThreadJoin(pSVar3->pThread,&pRet);\n        pSVar2 = pSVar3 + -1;\n        if ((void *)rcin == (void *)0x0) {\n          rcin = (int)pRet;\n        }\n        pSVar3->bDone = 0;\n        pSVar3->pThread = (SQLiteThread *)0x0;\n        pSVar3 = pSVar2;\n        if (pSVar2 == (SortSubtask *)piVar4) goto LAB_0006a2ec;\n      }\n      pSVar3 = pSVar3 + -1;\n      if ((void *)rcin == (void *)0x0) {\n        rcin = 0;\n      }\n    } while (pSVar3 != (SortSubtask *)piVar4);" do (compound_statement "{\n      while (pSVar3->pThread != (SQLiteThread *)0x0) {\n        pRet = (void *)0x1;\n        sqlite3ThreadJoin(pSVar3->pThread,&pRet);\n        pSVar2 = pSVar3 + -1;\n        if ((void *)rcin == (void *)0x0) {\n          rcin = (int)pRet;\n        }\n        pSVar3->bDone = 0;\n        pSVar3->pThread = (SQLiteThread *)0x0;\n        pSVar3 = pSVar2;\n        if (pSVar2 == (SortSubtask *)piVar4) goto LAB_0006a2ec;\n      }\n      pSVar3 = pSVar3 + -1;\n      if ((void *)rcin == (void *)0x0) {\n        rcin = 0;\n      }\n    }" { (while_statement "while (pSVar3->pThread != (SQLiteThread *)0x0) {\n        pRet = (void *)0x1;\n        sqlite3ThreadJoin(pSVar3->pThread,&pRet);\n        pSVar2 = pSVar3 + -1;\n        if ((void *)rcin == (void *)0x0) {\n          rcin = (int)pRet;\n        }\n        pSVar3->bDone = 0;\n        pSVar3->pThread = (SQLiteThread *)0x0;\n        pSVar3 = pSVar2;\n        if (pSVar2 == (SortSubtask *)piVar4) goto LAB_0006a2ec;\n      }" while (parenthesized_expression "(pSVar3->pThread != (SQLiteThread *)0x0)" ( (binary_expression "pSVar3->pThread != (SQLiteThread *)0x0" (field_expression "pSVar3->pThread" identifier -> field_identifier) != (cast_expression "(SQLiteThread *)0x0" ( (type_descriptor "SQLiteThread *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n        pRet = (void *)0x1;\n        sqlite3ThreadJoin(pSVar3->pThread,&pRet);\n        pSVar2 = pSVar3 + -1;\n        if ((void *)rcin == (void *)0x0) {\n          rcin = (int)pRet;\n        }\n        pSVar3->bDone = 0;\n        pSVar3->pThread = (SQLiteThread *)0x0;\n        pSVar3 = pSVar2;\n        if (pSVar2 == (SortSubtask *)piVar4) goto LAB_0006a2ec;\n      }" { (expression_statement "pRet = (void *)0x1;" (assignment_expression "pRet = (void *)0x1" identifier = (cast_expression "(void *)0x1" ( (type_descriptor "void *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) ;) (expression_statement "sqlite3ThreadJoin(pSVar3->pThread,&pRet);" (call_expression "sqlite3ThreadJoin(pSVar3->pThread,&pRet)" identifier (argument_list "(pSVar3->pThread,&pRet)" ( (field_expression "pSVar3->pThread" identifier -> field_identifier) , (pointer_expression "&pRet" & identifier) ))) ;) (expression_statement "pSVar2 = pSVar3 + -1;" (assignment_expression "pSVar2 = pSVar3 + -1" identifier = (binary_expression "pSVar3 + -1" identifier + number_literal)) ;) (if_statement "if ((void *)rcin == (void *)0x0) {\n          rcin = (int)pRet;\n        }" if (parenthesized_expression "((void *)rcin == (void *)0x0)" ( (binary_expression "(void *)rcin == (void *)0x0" (cast_expression "(void *)rcin" ( (type_descriptor "void *" primitive_type (abstract_pointer_declarator "*" *)) ) identifier) == (cast_expression "(void *)0x0" ( (type_descriptor "void *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n          rcin = (int)pRet;\n        }" { (expression_statement "rcin = (int)pRet;" (assignment_expression "rcin = (int)pRet" identifier = (cast_expression "(int)pRet" ( (type_descriptor "int" primitive_type) ) identifier)) ;) })) (expression_statement "pSVar3->bDone = 0;" (assignment_expression "pSVar3->bDone = 0" (field_expression "pSVar3->bDone" identifier -> field_identifier) = number_literal) ;) (expression_statement "pSVar3->pThread = (SQLiteThread *)0x0;" (assignment_expression "pSVar3->pThread = (SQLiteThread *)0x0" (field_expression "pSVar3->pThread" identifier -> field_identifier) = (cast_expression "(SQLiteThread *)0x0" ( (type_descriptor "SQLiteThread *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) ;) (expression_statement "pSVar3 = pSVar2;" (assignment_expression "pSVar3 = pSVar2" identifier = identifier) ;) (if_statement "if (pSVar2 == (SortSubtask *)piVar4) goto LAB_0006a2ec;" if (parenthesized_expression "(pSVar2 == (SortSubtask *)piVar4)" ( (binary_expression "pSVar2 == (SortSubtask *)piVar4" identifier == (cast_expression "(SortSubtask *)piVar4" ( (type_descriptor "SortSubtask *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (goto_statement "goto LAB_0006a2ec;" goto statement_identifier ;)) })) (expression_statement "pSVar3 = pSVar3 + -1;" (assignment_expression "pSVar3 = pSVar3 + -1" identifier = (binary_expression "pSVar3 + -1" identifier + number_literal)) ;) (if_statement "if ((void *)rcin == (void *)0x0) {\n        rcin = 0;\n      }" if (parenthesized_expression "((void *)rcin == (void *)0x0)" ( (binary_expression "(void *)rcin == (void *)0x0" (cast_expression "(void *)rcin" ( (type_descriptor "void *" primitive_type (abstract_pointer_declarator "*" *)) ) identifier) == (cast_expression "(void *)0x0" ( (type_descriptor "void *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n        rcin = 0;\n      }" { (expression_statement "rcin = 0;" (assignment_expression "rcin = 0" identifier = number_literal) ;) })) }) while (parenthesized_expression "(pSVar3 != (SortSubtask *)piVar4)" ( (binary_expression "pSVar3 != (SortSubtask *)piVar4" identifier != (cast_expression "(SortSubtask *)piVar4" ( (type_descriptor "SortSubtask *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) ;) })) (labeled_statement "LAB_0006a2ec:\n  if (iStack_2c != *(int *)puVar1) {\n    (*(code *)PTR___stack_chk_fail_00190df8)();\n    return 0;\n  }" statement_identifier : (if_statement "if (iStack_2c != *(int *)puVar1) {\n    (*(code *)PTR___stack_chk_fail_00190df8)();\n    return 0;\n  }" if (parenthesized_expression "(iStack_2c != *(int *)puVar1)" ( (binary_expression "iStack_2c != *(int *)puVar1" identifier != (pointer_expression "*(int *)puVar1" * (cast_expression "(int *)puVar1" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) identifier))) )) (compound_statement "{\n    (*(code *)PTR___stack_chk_fail_00190df8)();\n    return 0;\n  }" { (expression_statement "(*(code *)PTR___stack_chk_fail_00190df8)();" (call_expression "(*(code *)PTR___stack_chk_fail_00190df8)()" (parenthesized_expression "(*(code *)PTR___stack_chk_fail_00190df8)" ( (pointer_expression "*(code *)PTR___stack_chk_fail_00190df8" * (cast_expression "(code *)PTR___stack_chk_fail_00190df8" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "()" ( ))) ;) (return_statement "return 0;" return number_literal ;) }))) (return_statement "return (int)(void *)rcin;" return (cast_expression "(int)(void *)rcin" ( (type_descriptor "int" primitive_type) ) (cast_expression "(void *)rcin" ( (type_descriptor "void *" primitive_type (abstract_pointer_declarator "*" *)) ) identifier)) ;) })))
(translation_unit "int FUN_0006a20c(int param_1,int param_2)\n\n{\n  undefined *puVar1;\n  int *piVar2;\n  int *piVar3;\n  int local_30;\n  int local_2c;\n  \n  puVar1 = PTR___stack_chk_guard_00190e24;\n  local_2c = *(int *)PTR___stack_chk_guard_00190e24;\n  if (*(byte *)(param_1 + 0x3b) != 0) {\n    piVar3 = (int *)(param_1 + (*(byte *)(param_1 + 0x3b) - 1) * 0x48 + 0x40);\n    do {\n      while (*piVar3 != 0) {\n        local_30 = 1;\n        FUN_00069e24(*piVar3,&local_30);\n        piVar2 = piVar3 + -0x12;\n        if (param_2 == 0) {\n          param_2 = local_30;\n        }\n        piVar3[1] = 0;\n        *piVar3 = 0;\n        piVar3 = piVar2;\n        if (piVar2 == (int *)(param_1 + -8)) goto LAB_0006a2ec;\n      }\n      piVar3 = piVar3 + -0x12;\n      if (param_2 == 0) {\n        param_2 = 0;\n      }\n    } while (piVar3 != (int *)(param_1 + -8));\n  }\nLAB_0006a2ec:\n  if (local_2c != *(int *)puVar1) {\n    (*(code *)PTR___stack_chk_fail_00190df8)();\n    return 0;\n  }\n  return param_2;\n}\n\n" (function_definition "int FUN_0006a20c(int param_1,int param_2)\n\n{\n  undefined *puVar1;\n  int *piVar2;\n  int *piVar3;\n  int local_30;\n  int local_2c;\n  \n  puVar1 = PTR___stack_chk_guard_00190e24;\n  local_2c = *(int *)PTR___stack_chk_guard_00190e24;\n  if (*(byte *)(param_1 + 0x3b) != 0) {\n    piVar3 = (int *)(param_1 + (*(byte *)(param_1 + 0x3b) - 1) * 0x48 + 0x40);\n    do {\n      while (*piVar3 != 0) {\n        local_30 = 1;\n        FUN_00069e24(*piVar3,&local_30);\n        piVar2 = piVar3 + -0x12;\n        if (param_2 == 0) {\n          param_2 = local_30;\n        }\n        piVar3[1] = 0;\n        *piVar3 = 0;\n        piVar3 = piVar2;\n        if (piVar2 == (int *)(param_1 + -8)) goto LAB_0006a2ec;\n      }\n      piVar3 = piVar3 + -0x12;\n      if (param_2 == 0) {\n        param_2 = 0;\n      }\n    } while (piVar3 != (int *)(param_1 + -8));\n  }\nLAB_0006a2ec:\n  if (local_2c != *(int *)puVar1) {\n    (*(code *)PTR___stack_chk_fail_00190df8)();\n    return 0;\n  }\n  return param_2;\n}" primitive_type (function_declarator "FUN_0006a20c(int param_1,int param_2)" identifier (parameter_list "(int param_1,int param_2)" ( (parameter_declaration "int param_1" primitive_type identifier) , (parameter_declaration "int param_2" primitive_type identifier) ))) (compound_statement "{\n  undefined *puVar1;\n  int *piVar2;\n  int *piVar3;\n  int local_30;\n  int local_2c;\n  \n  puVar1 = PTR___stack_chk_guard_00190e24;\n  local_2c = *(int *)PTR___stack_chk_guard_00190e24;\n  if (*(byte *)(param_1 + 0x3b) != 0) {\n    piVar3 = (int *)(param_1 + (*(byte *)(param_1 + 0x3b) - 1) * 0x48 + 0x40);\n    do {\n      while (*piVar3 != 0) {\n        local_30 = 1;\n        FUN_00069e24(*piVar3,&local_30);\n        piVar2 = piVar3 + -0x12;\n        if (param_2 == 0) {\n          param_2 = local_30;\n        }\n        piVar3[1] = 0;\n        *piVar3 = 0;\n        piVar3 = piVar2;\n        if (piVar2 == (int *)(param_1 + -8)) goto LAB_0006a2ec;\n      }\n      piVar3 = piVar3 + -0x12;\n      if (param_2 == 0) {\n        param_2 = 0;\n      }\n    } while (piVar3 != (int *)(param_1 + -8));\n  }\nLAB_0006a2ec:\n  if (local_2c != *(int *)puVar1) {\n    (*(code *)PTR___stack_chk_fail_00190df8)();\n    return 0;\n  }\n  return param_2;\n}" { (declaration "undefined *puVar1;" type_identifier (pointer_declarator "*puVar1" * identifier) ;) (declaration "int *piVar2;" primitive_type (pointer_declarator "*piVar2" * identifier) ;) (declaration "int *piVar3;" primitive_type (pointer_declarator "*piVar3" * identifier) ;) (declaration "int local_30;" primitive_type identifier ;) (declaration "int local_2c;" primitive_type identifier ;) (expression_statement "puVar1 = PTR___stack_chk_guard_00190e24;" (assignment_expression "puVar1 = PTR___stack_chk_guard_00190e24" identifier = identifier) ;) (expression_statement "local_2c = *(int *)PTR___stack_chk_guard_00190e24;" (assignment_expression "local_2c = *(int *)PTR___stack_chk_guard_00190e24" identifier = (pointer_expression "*(int *)PTR___stack_chk_guard_00190e24" * (cast_expression "(int *)PTR___stack_chk_guard_00190e24" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) identifier))) ;) (if_statement "if (*(byte *)(param_1 + 0x3b) != 0) {\n    piVar3 = (int *)(param_1 + (*(byte *)(param_1 + 0x3b) - 1) * 0x48 + 0x40);\n    do {\n      while (*piVar3 != 0) {\n        local_30 = 1;\n        FUN_00069e24(*piVar3,&local_30);\n        piVar2 = piVar3 + -0x12;\n        if (param_2 == 0) {\n          param_2 = local_30;\n        }\n        piVar3[1] = 0;\n        *piVar3 = 0;\n        piVar3 = piVar2;\n        if (piVar2 == (int *)(param_1 + -8)) goto LAB_0006a2ec;\n      }\n      piVar3 = piVar3 + -0x12;\n      if (param_2 == 0) {\n        param_2 = 0;\n      }\n    } while (piVar3 != (int *)(param_1 + -8));\n  }" if (parenthesized_expression "(*(byte *)(param_1 + 0x3b) != 0)" ( (binary_expression "*(byte *)(param_1 + 0x3b) != 0" (pointer_expression "*(byte *)(param_1 + 0x3b)" * (cast_expression "(byte *)(param_1 + 0x3b)" ( (type_descriptor "byte *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x3b)" ( (binary_expression "param_1 + 0x3b" identifier + number_literal) )))) != number_literal) )) (compound_statement "{\n    piVar3 = (int *)(param_1 + (*(byte *)(param_1 + 0x3b) - 1) * 0x48 + 0x40);\n    do {\n      while (*piVar3 != 0) {\n        local_30 = 1;\n        FUN_00069e24(*piVar3,&local_30);\n        piVar2 = piVar3 + -0x12;\n        if (param_2 == 0) {\n          param_2 = local_30;\n        }\n        piVar3[1] = 0;\n        *piVar3 = 0;\n        piVar3 = piVar2;\n        if (piVar2 == (int *)(param_1 + -8)) goto LAB_0006a2ec;\n      }\n      piVar3 = piVar3 + -0x12;\n      if (param_2 == 0) {\n        param_2 = 0;\n      }\n    } while (piVar3 != (int *)(param_1 + -8));\n  }" { (expression_statement "piVar3 = (int *)(param_1 + (*(byte *)(param_1 + 0x3b) - 1) * 0x48 + 0x40);" (assignment_expression "piVar3 = (int *)(param_1 + (*(byte *)(param_1 + 0x3b) - 1) * 0x48 + 0x40)" identifier = (cast_expression "(int *)(param_1 + (*(byte *)(param_1 + 0x3b) - 1) * 0x48 + 0x40)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + (*(byte *)(param_1 + 0x3b) - 1) * 0x48 + 0x40)" ( (binary_expression "param_1 + (*(byte *)(param_1 + 0x3b) - 1) * 0x48 + 0x40" (binary_expression "param_1 + (*(byte *)(param_1 + 0x3b) - 1) * 0x48" identifier + (binary_expression "(*(byte *)(param_1 + 0x3b) - 1) * 0x48" (parenthesized_expression "(*(byte *)(param_1 + 0x3b) - 1)" ( (binary_expression "*(byte *)(param_1 + 0x3b) - 1" (pointer_expression "*(byte *)(param_1 + 0x3b)" * (cast_expression "(byte *)(param_1 + 0x3b)" ( (type_descriptor "byte *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x3b)" ( (binary_expression "param_1 + 0x3b" identifier + number_literal) )))) - number_literal) )) * number_literal)) + number_literal) )))) ;) (do_statement "do {\n      while (*piVar3 != 0) {\n        local_30 = 1;\n        FUN_00069e24(*piVar3,&local_30);\n        piVar2 = piVar3 + -0x12;\n        if (param_2 == 0) {\n          param_2 = local_30;\n        }\n        piVar3[1] = 0;\n        *piVar3 = 0;\n        piVar3 = piVar2;\n        if (piVar2 == (int *)(param_1 + -8)) goto LAB_0006a2ec;\n      }\n      piVar3 = piVar3 + -0x12;\n      if (param_2 == 0) {\n        param_2 = 0;\n      }\n    } while (piVar3 != (int *)(param_1 + -8));" do (compound_statement "{\n      while (*piVar3 != 0) {\n        local_30 = 1;\n        FUN_00069e24(*piVar3,&local_30);\n        piVar2 = piVar3 + -0x12;\n        if (param_2 == 0) {\n          param_2 = local_30;\n        }\n        piVar3[1] = 0;\n        *piVar3 = 0;\n        piVar3 = piVar2;\n        if (piVar2 == (int *)(param_1 + -8)) goto LAB_0006a2ec;\n      }\n      piVar3 = piVar3 + -0x12;\n      if (param_2 == 0) {\n        param_2 = 0;\n      }\n    }" { (while_statement "while (*piVar3 != 0) {\n        local_30 = 1;\n        FUN_00069e24(*piVar3,&local_30);\n        piVar2 = piVar3 + -0x12;\n        if (param_2 == 0) {\n          param_2 = local_30;\n        }\n        piVar3[1] = 0;\n        *piVar3 = 0;\n        piVar3 = piVar2;\n        if (piVar2 == (int *)(param_1 + -8)) goto LAB_0006a2ec;\n      }" while (parenthesized_expression "(*piVar3 != 0)" ( (binary_expression "*piVar3 != 0" (pointer_expression "*piVar3" * identifier) != number_literal) )) (compound_statement "{\n        local_30 = 1;\n        FUN_00069e24(*piVar3,&local_30);\n        piVar2 = piVar3 + -0x12;\n        if (param_2 == 0) {\n          param_2 = local_30;\n        }\n        piVar3[1] = 0;\n        *piVar3 = 0;\n        piVar3 = piVar2;\n        if (piVar2 == (int *)(param_1 + -8)) goto LAB_0006a2ec;\n      }" { (expression_statement "local_30 = 1;" (assignment_expression "local_30 = 1" identifier = number_literal) ;) (expression_statement "FUN_00069e24(*piVar3,&local_30);" (call_expression "FUN_00069e24(*piVar3,&local_30)" identifier (argument_list "(*piVar3,&local_30)" ( (pointer_expression "*piVar3" * identifier) , (pointer_expression "&local_30" & identifier) ))) ;) (expression_statement "piVar2 = piVar3 + -0x12;" (assignment_expression "piVar2 = piVar3 + -0x12" identifier = (binary_expression "piVar3 + -0x12" identifier + number_literal)) ;) (if_statement "if (param_2 == 0) {\n          param_2 = local_30;\n        }" if (parenthesized_expression "(param_2 == 0)" ( (binary_expression "param_2 == 0" identifier == number_literal) )) (compound_statement "{\n          param_2 = local_30;\n        }" { (expression_statement "param_2 = local_30;" (assignment_expression "param_2 = local_30" identifier = identifier) ;) })) (expression_statement "piVar3[1] = 0;" (assignment_expression "piVar3[1] = 0" (subscript_expression "piVar3[1]" identifier [ number_literal ]) = number_literal) ;) (expression_statement "*piVar3 = 0;" (assignment_expression "*piVar3 = 0" (pointer_expression "*piVar3" * identifier) = number_literal) ;) (expression_statement "piVar3 = piVar2;" (assignment_expression "piVar3 = piVar2" identifier = identifier) ;) (if_statement "if (piVar2 == (int *)(param_1 + -8)) goto LAB_0006a2ec;" if (parenthesized_expression "(piVar2 == (int *)(param_1 + -8))" ( (binary_expression "piVar2 == (int *)(param_1 + -8)" identifier == (cast_expression "(int *)(param_1 + -8)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + -8)" ( (binary_expression "param_1 + -8" identifier + number_literal) )))) )) (goto_statement "goto LAB_0006a2ec;" goto statement_identifier ;)) })) (expression_statement "piVar3 = piVar3 + -0x12;" (assignment_expression "piVar3 = piVar3 + -0x12" identifier = (binary_expression "piVar3 + -0x12" identifier + number_literal)) ;) (if_statement "if (param_2 == 0) {\n        param_2 = 0;\n      }" if (parenthesized_expression "(param_2 == 0)" ( (binary_expression "param_2 == 0" identifier == number_literal) )) (compound_statement "{\n        param_2 = 0;\n      }" { (expression_statement "param_2 = 0;" (assignment_expression "param_2 = 0" identifier = number_literal) ;) })) }) while (parenthesized_expression "(piVar3 != (int *)(param_1 + -8))" ( (binary_expression "piVar3 != (int *)(param_1 + -8)" identifier != (cast_expression "(int *)(param_1 + -8)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + -8)" ( (binary_expression "param_1 + -8" identifier + number_literal) )))) )) ;) })) (labeled_statement "LAB_0006a2ec:\n  if (local_2c != *(int *)puVar1) {\n    (*(code *)PTR___stack_chk_fail_00190df8)();\n    return 0;\n  }" statement_identifier : (if_statement "if (local_2c != *(int *)puVar1) {\n    (*(code *)PTR___stack_chk_fail_00190df8)();\n    return 0;\n  }" if (parenthesized_expression "(local_2c != *(int *)puVar1)" ( (binary_expression "local_2c != *(int *)puVar1" identifier != (pointer_expression "*(int *)puVar1" * (cast_expression "(int *)puVar1" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) identifier))) )) (compound_statement "{\n    (*(code *)PTR___stack_chk_fail_00190df8)();\n    return 0;\n  }" { (expression_statement "(*(code *)PTR___stack_chk_fail_00190df8)();" (call_expression "(*(code *)PTR___stack_chk_fail_00190df8)()" (parenthesized_expression "(*(code *)PTR___stack_chk_fail_00190df8)" ( (pointer_expression "*(code *)PTR___stack_chk_fail_00190df8" * (cast_expression "(code *)PTR___stack_chk_fail_00190df8" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "()" ( ))) ;) (return_statement "return 0;" return number_literal ;) }))) (return_statement "return param_2;" return identifier ;) })))
(translation_unit (function_definition TYPE (function_declarator IDENT (parameter_list ( (parameter_declaration TYPE IDENT) , (parameter_declaration TYPE IDENT) ))) (compound_statement { (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (expression_statement (assignment_expression IDENT = IDENT) ;) (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT))) ;) (if_statement if (parenthesized_expression ( (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) != LIT) )) (compound_statement { (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression (binary_expression IDENT + (binary_expression (parenthesized_expression ( (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) - LIT) )) * LIT)) + LIT) )))) ;) (do_statement do (compound_statement { (while_statement while (parenthesized_expression ( (binary_expression (pointer_expression * IDENT) != LIT) )) (compound_statement { (expression_statement (assignment_expression IDENT = LIT) ;) (expression_statement (call_expression IDENT (argument_list ( (pointer_expression * IDENT) , (pointer_expression & IDENT) ))) ;) (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT == LIT) )) (compound_statement { (expression_statement (assignment_expression IDENT = IDENT) ;) })) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = LIT) ;) (expression_statement (assignment_expression (pointer_expression * IDENT) = LIT) ;) (expression_statement (assignment_expression IDENT = IDENT) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT == (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) )) (goto_statement goto statement_identifier ;)) })) (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT == LIT) )) (compound_statement { (expression_statement (assignment_expression IDENT = LIT) ;) })) }) while (parenthesized_expression ( (binary_expression IDENT != (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) )) ;) })) (labeled_statement statement_identifier : (if_statement if (parenthesized_expression ( (binary_expression IDENT != (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT))) )) (compound_statement { (expression_statement (call_expression (parenthesized_expression ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT)) )) (argument_list ( ))) ;) (return_statement return LIT ;) }))) (return_statement return IDENT ;) })))
(function_definition "int FUN_0006a20c(int param_1,int param_2)\n\n{\n  undefined *puVar1;\n  int *piVar2;\n  int *piVar3;\n  int local_30;\n  int local_2c;\n  \n  puVar1 = PTR___stack_chk_guard_00190e24;\n  local_2c = *(int *)PTR___stack_chk_guard_00190e24;\n  if (*(byte *)(param_1 + 0x3b) != 0) {\n    piVar3 = (int *)(param_1 + (*(byte *)(param_1 + 0x3b) - 1) * 0x48 + 0x40);\n    do {\n      while (*piVar3 != 0) {\n        local_30 = 1;\n        FUN_00069e24(*piVar3,&local_30);\n        piVar2 = piVar3 + -0x12;\n        if (param_2 == 0) {\n          param_2 = local_30;\n        }\n        piVar3[1] = 0;\n        *piVar3 = 0;\n        piVar3 = piVar2;\n        if (piVar2 == (int *)(param_1 + -8)) goto LAB_0006a2ec;\n      }\n      piVar3 = piVar3 + -0x12;\n      if (param_2 == 0) {\n        param_2 = 0;\n      }\n    } while (piVar3 != (int *)(param_1 + -8));\n  }\nLAB_0006a2ec:\n  if (local_2c != *(int *)puVar1) {\n    (*(code *)PTR___stack_chk_fail_00190df8)();\n    return 0;\n  }\n  return param_2;\n}" (primitive_type "int") (function_declarator "FUN_0006a20c(int param_1,int param_2)" (identifier "FUN_0006a20c") (parameter_list "(int param_1,int param_2)" (( "(") (parameter_declaration "int param_1" (primitive_type "int") (identifier "param_1")) (, ",") (parameter_declaration "int param_2" (primitive_type "int") (identifier "param_2")) () ")"))) (compound_statement "{\n  undefined *puVar1;\n  int *piVar2;\n  int *piVar3;\n  int local_30;\n  int local_2c;\n  \n  puVar1 = PTR___stack_chk_guard_00190e24;\n  local_2c = *(int *)PTR___stack_chk_guard_00190e24;\n  if (*(byte *)(param_1 + 0x3b) != 0) {\n    piVar3 = (int *)(param_1 + (*(byte *)(param_1 + 0x3b) - 1) * 0x48 + 0x40);\n    do {\n      while (*piVar3 != 0) {\n        local_30 = 1;\n        FUN_00069e24(*piVar3,&local_30);\n        piVar2 = piVar3 + -0x12;\n        if (param_2 == 0) {\n          param_2 = local_30;\n        }\n        piVar3[1] = 0;\n        *piVar3 = 0;\n        piVar3 = piVar2;\n        if (piVar2 == (int *)(param_1 + -8)) goto LAB_0006a2ec;\n      }\n      piVar3 = piVar3 + -0x12;\n      if (param_2 == 0) {\n        param_2 = 0;\n      }\n    } while (piVar3 != (int *)(param_1 + -8));\n  }\nLAB_0006a2ec:\n  if (local_2c != *(int *)puVar1) {\n    (*(code *)PTR___stack_chk_fail_00190df8)();\n    return 0;\n  }\n  return param_2;\n}" ({ "{") (declaration "undefined *puVar1;" (type_identifier "undefined") (pointer_declarator "*puVar1" (* "*") (identifier "puVar1")) (; ";")) (declaration "int *piVar2;" (primitive_type "int") (pointer_declarator "*piVar2" (* "*") (identifier "piVar2")) (; ";")) (declaration "int *piVar3;" (primitive_type "int") (pointer_declarator "*piVar3" (* "*") (identifier "piVar3")) (; ";")) (declaration "int local_30;" (primitive_type "int") (identifier "local_30") (; ";")) (declaration "int local_2c;" (primitive_type "int") (identifier "local_2c") (; ";")) (expression_statement "puVar1 = PTR___stack_chk_guard_00190e24;" (assignment_expression "puVar1 = PTR___stack_chk_guard_00190e24" (identifier "puVar1") (= "=") (identifier "PTR___stack_chk_guard_00190e24")) (; ";")) (expression_statement "local_2c = *(int *)PTR___stack_chk_guard_00190e24;" (assignment_expression "local_2c = *(int *)PTR___stack_chk_guard_00190e24" (identifier "local_2c") (= "=") (pointer_expression "*(int *)PTR___stack_chk_guard_00190e24" (* "*") (cast_expression "(int *)PTR___stack_chk_guard_00190e24" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR___stack_chk_guard_00190e24")))) (; ";")) (if_statement "if (*(byte *)(param_1 + 0x3b) != 0) {\n    piVar3 = (int *)(param_1 + (*(byte *)(param_1 + 0x3b) - 1) * 0x48 + 0x40);\n    do {\n      while (*piVar3 != 0) {\n        local_30 = 1;\n        FUN_00069e24(*piVar3,&local_30);\n        piVar2 = piVar3 + -0x12;\n        if (param_2 == 0) {\n          param_2 = local_30;\n        }\n        piVar3[1] = 0;\n        *piVar3 = 0;\n        piVar3 = piVar2;\n        if (piVar2 == (int *)(param_1 + -8)) goto LAB_0006a2ec;\n      }\n      piVar3 = piVar3 + -0x12;\n      if (param_2 == 0) {\n        param_2 = 0;\n      }\n    } while (piVar3 != (int *)(param_1 + -8));\n  }" (if "if") (parenthesized_expression "(*(byte *)(param_1 + 0x3b) != 0)" (( "(") (binary_expression "*(byte *)(param_1 + 0x3b) != 0" (pointer_expression "*(byte *)(param_1 + 0x3b)" (* "*") (cast_expression "(byte *)(param_1 + 0x3b)" (( "(") (type_descriptor "byte *" (type_identifier "byte") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x3b)" (( "(") (binary_expression "param_1 + 0x3b" (identifier "param_1") (+ "+") (number_literal "0x3b")) () ")")))) (!= "!=") (number_literal "0")) () ")")) (compound_statement "{\n    piVar3 = (int *)(param_1 + (*(byte *)(param_1 + 0x3b) - 1) * 0x48 + 0x40);\n    do {\n      while (*piVar3 != 0) {\n        local_30 = 1;\n        FUN_00069e24(*piVar3,&local_30);\n        piVar2 = piVar3 + -0x12;\n        if (param_2 == 0) {\n          param_2 = local_30;\n        }\n        piVar3[1] = 0;\n        *piVar3 = 0;\n        piVar3 = piVar2;\n        if (piVar2 == (int *)(param_1 + -8)) goto LAB_0006a2ec;\n      }\n      piVar3 = piVar3 + -0x12;\n      if (param_2 == 0) {\n        param_2 = 0;\n      }\n    } while (piVar3 != (int *)(param_1 + -8));\n  }" ({ "{") (expression_statement "piVar3 = (int *)(param_1 + (*(byte *)(param_1 + 0x3b) - 1) * 0x48 + 0x40);" (assignment_expression "piVar3 = (int *)(param_1 + (*(byte *)(param_1 + 0x3b) - 1) * 0x48 + 0x40)" (identifier "piVar3") (= "=") (cast_expression "(int *)(param_1 + (*(byte *)(param_1 + 0x3b) - 1) * 0x48 + 0x40)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + (*(byte *)(param_1 + 0x3b) - 1) * 0x48 + 0x40)" (( "(") (binary_expression "param_1 + (*(byte *)(param_1 + 0x3b) - 1) * 0x48 + 0x40" (binary_expression "param_1 + (*(byte *)(param_1 + 0x3b) - 1) * 0x48" (identifier "param_1") (+ "+") (binary_expression "(*(byte *)(param_1 + 0x3b) - 1) * 0x48" (parenthesized_expression "(*(byte *)(param_1 + 0x3b) - 1)" (( "(") (binary_expression "*(byte *)(param_1 + 0x3b) - 1" (pointer_expression "*(byte *)(param_1 + 0x3b)" (* "*") (cast_expression "(byte *)(param_1 + 0x3b)" (( "(") (type_descriptor "byte *" (type_identifier "byte") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x3b)" (( "(") (binary_expression "param_1 + 0x3b" (identifier "param_1") (+ "+") (number_literal "0x3b")) () ")")))) (- "-") (number_literal "1")) () ")")) (* "*") (number_literal "0x48"))) (+ "+") (number_literal "0x40")) () ")")))) (; ";")) (do_statement "do {\n      while (*piVar3 != 0) {\n        local_30 = 1;\n        FUN_00069e24(*piVar3,&local_30);\n        piVar2 = piVar3 + -0x12;\n        if (param_2 == 0) {\n          param_2 = local_30;\n        }\n        piVar3[1] = 0;\n        *piVar3 = 0;\n        piVar3 = piVar2;\n        if (piVar2 == (int *)(param_1 + -8)) goto LAB_0006a2ec;\n      }\n      piVar3 = piVar3 + -0x12;\n      if (param_2 == 0) {\n        param_2 = 0;\n      }\n    } while (piVar3 != (int *)(param_1 + -8));" (do "do") (compound_statement "{\n      while (*piVar3 != 0) {\n        local_30 = 1;\n        FUN_00069e24(*piVar3,&local_30);\n        piVar2 = piVar3 + -0x12;\n        if (param_2 == 0) {\n          param_2 = local_30;\n        }\n        piVar3[1] = 0;\n        *piVar3 = 0;\n        piVar3 = piVar2;\n        if (piVar2 == (int *)(param_1 + -8)) goto LAB_0006a2ec;\n      }\n      piVar3 = piVar3 + -0x12;\n      if (param_2 == 0) {\n        param_2 = 0;\n      }\n    }" ({ "{") (while_statement "while (*piVar3 != 0) {\n        local_30 = 1;\n        FUN_00069e24(*piVar3,&local_30);\n        piVar2 = piVar3 + -0x12;\n        if (param_2 == 0) {\n          param_2 = local_30;\n        }\n        piVar3[1] = 0;\n        *piVar3 = 0;\n        piVar3 = piVar2;\n        if (piVar2 == (int *)(param_1 + -8)) goto LAB_0006a2ec;\n      }" (while "while") (parenthesized_expression "(*piVar3 != 0)" (( "(") (binary_expression "*piVar3 != 0" (pointer_expression "*piVar3" (* "*") (identifier "piVar3")) (!= "!=") (number_literal "0")) () ")")) (compound_statement "{\n        local_30 = 1;\n        FUN_00069e24(*piVar3,&local_30);\n        piVar2 = piVar3 + -0x12;\n        if (param_2 == 0) {\n          param_2 = local_30;\n        }\n        piVar3[1] = 0;\n        *piVar3 = 0;\n        piVar3 = piVar2;\n        if (piVar2 == (int *)(param_1 + -8)) goto LAB_0006a2ec;\n      }" ({ "{") (expression_statement "local_30 = 1;" (assignment_expression "local_30 = 1" (identifier "local_30") (= "=") (number_literal "1")) (; ";")) (expression_statement "FUN_00069e24(*piVar3,&local_30);" (call_expression "FUN_00069e24(*piVar3,&local_30)" (identifier "FUN_00069e24") (argument_list "(*piVar3,&local_30)" (( "(") (pointer_expression "*piVar3" (* "*") (identifier "piVar3")) (, ",") (pointer_expression "&local_30" (& "&") (identifier "local_30")) () ")"))) (; ";")) (expression_statement "piVar2 = piVar3 + -0x12;" (assignment_expression "piVar2 = piVar3 + -0x12" (identifier "piVar2") (= "=") (binary_expression "piVar3 + -0x12" (identifier "piVar3") (+ "+") (number_literal "-0x12"))) (; ";")) (if_statement "if (param_2 == 0) {\n          param_2 = local_30;\n        }" (if "if") (parenthesized_expression "(param_2 == 0)" (( "(") (binary_expression "param_2 == 0" (identifier "param_2") (== "==") (number_literal "0")) () ")")) (compound_statement "{\n          param_2 = local_30;\n        }" ({ "{") (expression_statement "param_2 = local_30;" (assignment_expression "param_2 = local_30" (identifier "param_2") (= "=") (identifier "local_30")) (; ";")) (} "}"))) (expression_statement "piVar3[1] = 0;" (assignment_expression "piVar3[1] = 0" (subscript_expression "piVar3[1]" (identifier "piVar3") ([ "[") (number_literal "1") (] "]")) (= "=") (number_literal "0")) (; ";")) (expression_statement "*piVar3 = 0;" (assignment_expression "*piVar3 = 0" (pointer_expression "*piVar3" (* "*") (identifier "piVar3")) (= "=") (number_literal "0")) (; ";")) (expression_statement "piVar3 = piVar2;" (assignment_expression "piVar3 = piVar2" (identifier "piVar3") (= "=") (identifier "piVar2")) (; ";")) (if_statement "if (piVar2 == (int *)(param_1 + -8)) goto LAB_0006a2ec;" (if "if") (parenthesized_expression "(piVar2 == (int *)(param_1 + -8))" (( "(") (binary_expression "piVar2 == (int *)(param_1 + -8)" (identifier "piVar2") (== "==") (cast_expression "(int *)(param_1 + -8)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + -8)" (( "(") (binary_expression "param_1 + -8" (identifier "param_1") (+ "+") (number_literal "-8")) () ")")))) () ")")) (goto_statement "goto LAB_0006a2ec;" (goto "goto") (statement_identifier "LAB_0006a2ec") (; ";"))) (} "}"))) (expression_statement "piVar3 = piVar3 + -0x12;" (assignment_expression "piVar3 = piVar3 + -0x12" (identifier "piVar3") (= "=") (binary_expression "piVar3 + -0x12" (identifier "piVar3") (+ "+") (number_literal "-0x12"))) (; ";")) (if_statement "if (param_2 == 0) {\n        param_2 = 0;\n      }" (if "if") (parenthesized_expression "(param_2 == 0)" (( "(") (binary_expression "param_2 == 0" (identifier "param_2") (== "==") (number_literal "0")) () ")")) (compound_statement "{\n        param_2 = 0;\n      }" ({ "{") (expression_statement "param_2 = 0;" (assignment_expression "param_2 = 0" (identifier "param_2") (= "=") (number_literal "0")) (; ";")) (} "}"))) (} "}")) (while "while") (parenthesized_expression "(piVar3 != (int *)(param_1 + -8))" (( "(") (binary_expression "piVar3 != (int *)(param_1 + -8)" (identifier "piVar3") (!= "!=") (cast_expression "(int *)(param_1 + -8)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + -8)" (( "(") (binary_expression "param_1 + -8" (identifier "param_1") (+ "+") (number_literal "-8")) () ")")))) () ")")) (; ";")) (} "}"))) (labeled_statement "LAB_0006a2ec:\n  if (local_2c != *(int *)puVar1) {\n    (*(code *)PTR___stack_chk_fail_00190df8)();\n    return 0;\n  }" (statement_identifier "LAB_0006a2ec") (: ":") (if_statement "if (local_2c != *(int *)puVar1) {\n    (*(code *)PTR___stack_chk_fail_00190df8)();\n    return 0;\n  }" (if "if") (parenthesized_expression "(local_2c != *(int *)puVar1)" (( "(") (binary_expression "local_2c != *(int *)puVar1" (identifier "local_2c") (!= "!=") (pointer_expression "*(int *)puVar1" (* "*") (cast_expression "(int *)puVar1" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "puVar1")))) () ")")) (compound_statement "{\n    (*(code *)PTR___stack_chk_fail_00190df8)();\n    return 0;\n  }" ({ "{") (expression_statement "(*(code *)PTR___stack_chk_fail_00190df8)();" (call_expression "(*(code *)PTR___stack_chk_fail_00190df8)()" (parenthesized_expression "(*(code *)PTR___stack_chk_fail_00190df8)" (( "(") (pointer_expression "*(code *)PTR___stack_chk_fail_00190df8" (* "*") (cast_expression "(code *)PTR___stack_chk_fail_00190df8" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR___stack_chk_fail_00190df8"))) () ")")) (argument_list "()" (( "(") () ")"))) (; ";")) (return_statement "return 0;" (return "return") (number_literal "0") (; ";")) (} "}")))) (return_statement "return param_2;" (return "return") (identifier "param_2") (; ";")) (} "}")))
(translation_unit (function_definition type: (primitive_type) declarator: (function_declarator declarator: (identifier) parameters: (parameter_list (parameter_declaration type: (primitive_type) declarator: (identifier)) (parameter_declaration type: (primitive_type) declarator: (identifier)))) body: (compound_statement (declaration type: (type_identifier) declarator: (pointer_declarator declarator: (identifier))) (declaration type: (primitive_type) declarator: (pointer_declarator declarator: (identifier))) (declaration type: (primitive_type) declarator: (pointer_declarator declarator: (identifier))) (declaration type: (primitive_type) declarator: (identifier)) (declaration type: (primitive_type) declarator: (identifier)) (expression_statement (assignment_expression left: (identifier) right: (identifier))) (expression_statement (assignment_expression left: (identifier) right: (pointer_expression argument: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (identifier))))) (if_statement condition: (parenthesized_expression (binary_expression left: (pointer_expression argument: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))))) right: (number_literal))) 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: (identifier) right: (binary_expression left: (parenthesized_expression (binary_expression left: (pointer_expression argument: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))))) right: (number_literal))) right: (number_literal))) right: (number_literal)))))) (do_statement body: (compound_statement (while_statement condition: (parenthesized_expression (binary_expression left: (pointer_expression argument: (identifier)) right: (number_literal))) body: (compound_statement (expression_statement (assignment_expression left: (identifier) right: (number_literal))) (expression_statement (call_expression function: (identifier) arguments: (argument_list (pointer_expression argument: (identifier)) (pointer_expression argument: (identifier))))) (expression_statement (assignment_expression left: (identifier) right: (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: (identifier))))) (expression_statement (assignment_expression left: (subscript_expression argument: (identifier) index: (number_literal)) right: (number_literal))) (expression_statement (assignment_expression left: (pointer_expression argument: (identifier)) right: (number_literal))) (expression_statement (assignment_expression left: (identifier) right: (identifier))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal)))))) consequence: (goto_statement label: (statement_identifier))))) (expression_statement (assignment_expression left: (identifier) right: (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: (number_literal)))))) condition: (parenthesized_expression (binary_expression left: (identifier) right: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))))))))) (labeled_statement label: (statement_identifier) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (pointer_expression argument: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (identifier))))) consequence: (compound_statement (expression_statement (call_expression function: (parenthesized_expression (pointer_expression argument: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (identifier)))) arguments: (argument_list))) (return_statement (number_literal))))) (return_statement (identifier)))))

int MASKED(int param_1,int param_2)

{
  undefined *puVar1;
  int *piVar2;
  int *piVar3;
  int local_30;
  int local_2c;
  
  puVar1 = PTR___stack_chk_guard_00190e24;
  local_2c = *(int *)PTR___stack_chk_guard_00190e24;
  if (*(byte *)(param_1 + 0x3b) != 0) {
    piVar3 = (int *)(param_1 + (*(byte *)(param_1 + 0x3b) - 1) * 0x48 + 0x40);
    do {
      while (*piVar3 != 0) {
        local_30 = 1;
        FUN_00069e24(*piVar3,&local_30);
        piVar2 = piVar3 + -0x12;
        if (param_2 == 0) {
          param_2 = local_30;
        }
        piVar3[1] = 0;
        *piVar3 = 0;
        piVar3 = piVar2;
        if (piVar2 == (int *)(param_1 + -8)) goto LAB_0006a2ec;
      }
      piVar3 = piVar3 + -0x12;
      if (param_2 == 0) {
        param_2 = 0;
      }
    } while (piVar3 != (int *)(param_1 + -8));
  }
LAB_0006a2ec:
  if (local_2c != *(int *)puVar1) {
    (*(code *)PTR___stack_chk_fail_00190df8)();
    return 0;
  }
  return param_2;
}

