
SorterRecord * vdbeSorterMerge(SortSubtask *pTask,SorterRecord *p1,SorterRecord *p2)

{
  undefined *puVar1;
  int iVar2;
  SorterRecord *pSVar3;
  SorterRecord *pSVar4;
  anon_union_4_2_0134e7e8_for_u *paVar5;
  SorterRecord *pSVar6;
  SorterRecord *pFinal;
  int bCached;
  int iStack_2c;
  
  puVar1 = PTR___stack_chk_guard_00190e24;
  pSVar6 = p1 + 1;
  pSVar4 = p2 + 1;
  paVar5 = (anon_union_4_2_0134e7e8_for_u *)&pFinal;
  pFinal = (SorterRecord *)0x0;
  bCached = 0;
  iStack_2c = *(int *)PTR___stack_chk_guard_00190e24;
  do {
    while( true ) {
      iVar2 = (*pTask->xCompare)(pTask,&bCached,pSVar6,p1->nVal,pSVar4,p2->nVal);
      if (0 < iVar2) break;
      paVar5->pNext = p1;
      pSVar3 = (p1->u).pNext;
      paVar5 = &p1->u;
      if (pSVar3 == (SorterRecord *)0x0) {
        (p1->u).pNext = p2;
LAB_00041e8c:
        if (iStack_2c == *(int *)puVar1) {
          return pFinal;
        }
        pSVar4 = (SorterRecord *)(*(code *)PTR___stack_chk_fail_00190df8)();
        return pSVar4;
      }
      pSVar6 = pSVar3 + 1;
      p1 = pSVar3;
    }
    paVar5->pNext = p2;
    bCached = 0;
    pSVar3 = (p2->u).pNext;
    paVar5 = &p2->u;
    if (pSVar3 == (SorterRecord *)0x0) {
      (p2->u).pNext = p1;
      goto LAB_00041e8c;
    }
    pSVar4 = pSVar3 + 1;
    p2 = pSVar3;
  } while( true );
}



undefined4 FUN_00041db8(int param_1,undefined4 *param_2,undefined4 *param_3)

{
  undefined *puVar1;
  int iVar2;
  undefined4 *puVar3;
  undefined4 *puVar4;
  undefined4 uVar5;
  undefined4 *puVar6;
  undefined4 *puVar7;
  undefined4 *puVar8;
  undefined4 local_34;
  undefined4 local_30;
  int local_2c;
  
  puVar1 = PTR___stack_chk_guard_00190e24;
  puVar8 = param_2 + 2;
  puVar7 = param_3 + 2;
  puVar6 = &local_34;
  local_34 = 0;
  local_30 = 0;
  local_2c = *(int *)PTR___stack_chk_guard_00190e24;
  do {
    while( true ) {
      puVar4 = &local_30;
      iVar2 = (**(code **)(param_1 + 0x20))(param_1,&local_30,puVar8,*param_2,puVar7,*param_3);
      if (0 < iVar2) break;
      *puVar6 = param_2;
      puVar3 = (undefined4 *)param_2[1];
      puVar6 = param_2 + 1;
      if (puVar3 == (undefined4 *)0x0) {
        param_2[1] = param_3;
LAB_00041e8c:
        if (local_2c == *(int *)puVar1) {
          return local_34;
        }
        (*(code *)PTR___stack_chk_fail_00190df8)();
        uVar5 = *(undefined4 *)(local_2c + 0x18);
        puVar4[1] = *(undefined4 *)(local_2c + 0x1c);
        *puVar4 = uVar5;
        return 0;
      }
      puVar8 = puVar3 + 2;
      param_2 = puVar3;
    }
    *puVar6 = param_3;
    local_30 = 0;
    puVar3 = (undefined4 *)param_3[1];
    puVar6 = param_3 + 1;
    if (puVar3 == (undefined4 *)0x0) {
      param_3[1] = param_2;
      goto LAB_00041e8c;
    }
    puVar7 = puVar3 + 2;
    param_3 = puVar3;
  } while( true );
}


lui gp,0x15
addiu gp,gp,0x6b68
addu gp,gp,t9
addiu sp,sp,-0x58
sw s6,0x4c(sp)
sw s7,0x50(sp)
addiu s7,sp,0x28
sw s5,0x48(sp)
addiu s5,a1,0x8
sw s4,0x44(sp)
addiu s4,a2,0x8
sw s3,0x40(sp)
or s3,a0,zero
sw s2,0x3c(sp)
addiu s2,sp,0x24
sw s1,0x38(sp)
or s1,a1,zero
sw s0,0x34(sp)
or s0,a2,zero
sw gp,0x18(sp)
sw ra,0x54(sp)
lw s6,-0x7afc(gp)
sw zero,0x24(sp)
sw zero,0x28(sp)
lw v0,0x0(s6)
sw v0,0x2c(sp)
lw v0,0x0(s0)
or a2,s5,zero
lw a3,0x0(s1)
or a1,s7,zero
lw t9,0x20(s3)
or a0,s3,zero
sw s4,0x10(sp)
jalr t9
_sw v0,0x14(sp)
blez v0,0x00041e6c
_lw gp,0x18(sp)
sw s0,0x0(s2)
sw zero,0x28(sp)
lw v0,0x4(s0)
beq v0,zero,0x00041e88
_addiu s2,s0,0x4
or s0,v0,zero
b 0x00041e20
_addiu s4,v0,0x8
sw s1,0x0(s2)
lw v0,0x4(s1)
beq v0,zero,0x00041ec8
_addiu s2,s1,0x4
or s1,v0,zero
b 0x00041e20
_addiu s5,v0,0x8
sw s1,0x4(s0)
lw a0,0x2c(sp)
lw v1,0x0(s6)
bne a0,v1,0x00041ed0
_lw v0,0x24(sp)
lw ra,0x54(sp)
lw s7,0x50(sp)
lw s6,0x4c(sp)
lw s5,0x48(sp)
lw s4,0x44(sp)
lw s3,0x40(sp)
lw s2,0x3c(sp)
lw s1,0x38(sp)
lw s0,0x34(sp)
jr ra
_addiu sp,sp,0x58
b 0x00041e8c
_sw s0,0x4(s1)
lw t9,-0x7b28(gp)
jalr t9
_nop
lw a3,0x1c(a0)
or v0,zero,zero
lw a2,0x18(a0)
sw a3,0x4(a1)
jr ra
_sw a2,0x0(a1)
(translation_unit "undefined4 FUN_00041db8(int param_1,undefined4 *param_2,undefined4 *param_3)\n\n{\n  undefined *puVar1;\n  int iVar2;\n  undefined4 *puVar3;\n  undefined4 *puVar4;\n  undefined4 uVar5;\n  undefined4 *puVar6;\n  undefined4 *puVar7;\n  undefined4 *puVar8;\n  undefined4 local_34;\n  undefined4 local_30;\n  int local_2c;\n  \n  puVar1 = PTR___stack_chk_guard_00190e24;\n  puVar8 = param_2 + 2;\n  puVar7 = param_3 + 2;\n  puVar6 = &local_34;\n  local_34 = 0;\n  local_30 = 0;\n  local_2c = *(int *)PTR___stack_chk_guard_00190e24;\n  do {\n    while( true ) {\n      puVar4 = &local_30;\n      iVar2 = (**(code **)(param_1 + 0x20))(param_1,&local_30,puVar8,*param_2,puVar7,*param_3);\n      if (0 < iVar2) break;\n      *puVar6 = param_2;\n      puVar3 = (undefined4 *)param_2[1];\n      puVar6 = param_2 + 1;\n      if (puVar3 == (undefined4 *)0x0) {\n        param_2[1] = param_3;\nLAB_00041e8c:\n        if (local_2c == *(int *)puVar1) {\n          return local_34;\n        }\n        (*(code *)PTR___stack_chk_fail_00190df8)();\n        uVar5 = *(undefined4 *)(local_2c + 0x18);\n        puVar4[1] = *(undefined4 *)(local_2c + 0x1c);\n        *puVar4 = uVar5;\n        return 0;\n      }\n      puVar8 = puVar3 + 2;\n      param_2 = puVar3;\n    }\n    *puVar6 = param_3;\n    local_30 = 0;\n    puVar3 = (undefined4 *)param_3[1];\n    puVar6 = param_3 + 1;\n    if (puVar3 == (undefined4 *)0x0) {\n      param_3[1] = param_2;\n      goto LAB_00041e8c;\n    }\n    puVar7 = puVar3 + 2;\n    param_3 = puVar3;\n  } while( true );\n}\n\n" (function_definition "undefined4 FUN_00041db8(int param_1,undefined4 *param_2,undefined4 *param_3)\n\n{\n  undefined *puVar1;\n  int iVar2;\n  undefined4 *puVar3;\n  undefined4 *puVar4;\n  undefined4 uVar5;\n  undefined4 *puVar6;\n  undefined4 *puVar7;\n  undefined4 *puVar8;\n  undefined4 local_34;\n  undefined4 local_30;\n  int local_2c;\n  \n  puVar1 = PTR___stack_chk_guard_00190e24;\n  puVar8 = param_2 + 2;\n  puVar7 = param_3 + 2;\n  puVar6 = &local_34;\n  local_34 = 0;\n  local_30 = 0;\n  local_2c = *(int *)PTR___stack_chk_guard_00190e24;\n  do {\n    while( true ) {\n      puVar4 = &local_30;\n      iVar2 = (**(code **)(param_1 + 0x20))(param_1,&local_30,puVar8,*param_2,puVar7,*param_3);\n      if (0 < iVar2) break;\n      *puVar6 = param_2;\n      puVar3 = (undefined4 *)param_2[1];\n      puVar6 = param_2 + 1;\n      if (puVar3 == (undefined4 *)0x0) {\n        param_2[1] = param_3;\nLAB_00041e8c:\n        if (local_2c == *(int *)puVar1) {\n          return local_34;\n        }\n        (*(code *)PTR___stack_chk_fail_00190df8)();\n        uVar5 = *(undefined4 *)(local_2c + 0x18);\n        puVar4[1] = *(undefined4 *)(local_2c + 0x1c);\n        *puVar4 = uVar5;\n        return 0;\n      }\n      puVar8 = puVar3 + 2;\n      param_2 = puVar3;\n    }\n    *puVar6 = param_3;\n    local_30 = 0;\n    puVar3 = (undefined4 *)param_3[1];\n    puVar6 = param_3 + 1;\n    if (puVar3 == (undefined4 *)0x0) {\n      param_3[1] = param_2;\n      goto LAB_00041e8c;\n    }\n    puVar7 = puVar3 + 2;\n    param_3 = puVar3;\n  } while( true );\n}" type_identifier (function_declarator "FUN_00041db8(int param_1,undefined4 *param_2,undefined4 *param_3)" identifier (parameter_list "(int param_1,undefined4 *param_2,undefined4 *param_3)" ( (parameter_declaration "int param_1" primitive_type identifier) , (parameter_declaration "undefined4 *param_2" type_identifier (pointer_declarator "*param_2" * identifier)) , (parameter_declaration "undefined4 *param_3" type_identifier (pointer_declarator "*param_3" * identifier)) ))) (compound_statement "{\n  undefined *puVar1;\n  int iVar2;\n  undefined4 *puVar3;\n  undefined4 *puVar4;\n  undefined4 uVar5;\n  undefined4 *puVar6;\n  undefined4 *puVar7;\n  undefined4 *puVar8;\n  undefined4 local_34;\n  undefined4 local_30;\n  int local_2c;\n  \n  puVar1 = PTR___stack_chk_guard_00190e24;\n  puVar8 = param_2 + 2;\n  puVar7 = param_3 + 2;\n  puVar6 = &local_34;\n  local_34 = 0;\n  local_30 = 0;\n  local_2c = *(int *)PTR___stack_chk_guard_00190e24;\n  do {\n    while( true ) {\n      puVar4 = &local_30;\n      iVar2 = (**(code **)(param_1 + 0x20))(param_1,&local_30,puVar8,*param_2,puVar7,*param_3);\n      if (0 < iVar2) break;\n      *puVar6 = param_2;\n      puVar3 = (undefined4 *)param_2[1];\n      puVar6 = param_2 + 1;\n      if (puVar3 == (undefined4 *)0x0) {\n        param_2[1] = param_3;\nLAB_00041e8c:\n        if (local_2c == *(int *)puVar1) {\n          return local_34;\n        }\n        (*(code *)PTR___stack_chk_fail_00190df8)();\n        uVar5 = *(undefined4 *)(local_2c + 0x18);\n        puVar4[1] = *(undefined4 *)(local_2c + 0x1c);\n        *puVar4 = uVar5;\n        return 0;\n      }\n      puVar8 = puVar3 + 2;\n      param_2 = puVar3;\n    }\n    *puVar6 = param_3;\n    local_30 = 0;\n    puVar3 = (undefined4 *)param_3[1];\n    puVar6 = param_3 + 1;\n    if (puVar3 == (undefined4 *)0x0) {\n      param_3[1] = param_2;\n      goto LAB_00041e8c;\n    }\n    puVar7 = puVar3 + 2;\n    param_3 = puVar3;\n  } while( true );\n}" { (declaration "undefined *puVar1;" type_identifier (pointer_declarator "*puVar1" * identifier) ;) (declaration "int iVar2;" primitive_type identifier ;) (declaration "undefined4 *puVar3;" type_identifier (pointer_declarator "*puVar3" * identifier) ;) (declaration "undefined4 *puVar4;" type_identifier (pointer_declarator "*puVar4" * identifier) ;) (declaration "undefined4 uVar5;" type_identifier identifier ;) (declaration "undefined4 *puVar6;" type_identifier (pointer_declarator "*puVar6" * identifier) ;) (declaration "undefined4 *puVar7;" type_identifier (pointer_declarator "*puVar7" * identifier) ;) (declaration "undefined4 *puVar8;" type_identifier (pointer_declarator "*puVar8" * identifier) ;) (declaration "undefined4 local_34;" type_identifier identifier ;) (declaration "undefined4 local_30;" type_identifier 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 "puVar8 = param_2 + 2;" (assignment_expression "puVar8 = param_2 + 2" identifier = (binary_expression "param_2 + 2" identifier + number_literal)) ;) (expression_statement "puVar7 = param_3 + 2;" (assignment_expression "puVar7 = param_3 + 2" identifier = (binary_expression "param_3 + 2" identifier + number_literal)) ;) (expression_statement "puVar6 = &local_34;" (assignment_expression "puVar6 = &local_34" identifier = (pointer_expression "&local_34" & identifier)) ;) (expression_statement "local_34 = 0;" (assignment_expression "local_34 = 0" identifier = number_literal) ;) (expression_statement "local_30 = 0;" (assignment_expression "local_30 = 0" identifier = number_literal) ;) (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))) ;) (do_statement "do {\n    while( true ) {\n      puVar4 = &local_30;\n      iVar2 = (**(code **)(param_1 + 0x20))(param_1,&local_30,puVar8,*param_2,puVar7,*param_3);\n      if (0 < iVar2) break;\n      *puVar6 = param_2;\n      puVar3 = (undefined4 *)param_2[1];\n      puVar6 = param_2 + 1;\n      if (puVar3 == (undefined4 *)0x0) {\n        param_2[1] = param_3;\nLAB_00041e8c:\n        if (local_2c == *(int *)puVar1) {\n          return local_34;\n        }\n        (*(code *)PTR___stack_chk_fail_00190df8)();\n        uVar5 = *(undefined4 *)(local_2c + 0x18);\n        puVar4[1] = *(undefined4 *)(local_2c + 0x1c);\n        *puVar4 = uVar5;\n        return 0;\n      }\n      puVar8 = puVar3 + 2;\n      param_2 = puVar3;\n    }\n    *puVar6 = param_3;\n    local_30 = 0;\n    puVar3 = (undefined4 *)param_3[1];\n    puVar6 = param_3 + 1;\n    if (puVar3 == (undefined4 *)0x0) {\n      param_3[1] = param_2;\n      goto LAB_00041e8c;\n    }\n    puVar7 = puVar3 + 2;\n    param_3 = puVar3;\n  } while( true );" do (compound_statement "{\n    while( true ) {\n      puVar4 = &local_30;\n      iVar2 = (**(code **)(param_1 + 0x20))(param_1,&local_30,puVar8,*param_2,puVar7,*param_3);\n      if (0 < iVar2) break;\n      *puVar6 = param_2;\n      puVar3 = (undefined4 *)param_2[1];\n      puVar6 = param_2 + 1;\n      if (puVar3 == (undefined4 *)0x0) {\n        param_2[1] = param_3;\nLAB_00041e8c:\n        if (local_2c == *(int *)puVar1) {\n          return local_34;\n        }\n        (*(code *)PTR___stack_chk_fail_00190df8)();\n        uVar5 = *(undefined4 *)(local_2c + 0x18);\n        puVar4[1] = *(undefined4 *)(local_2c + 0x1c);\n        *puVar4 = uVar5;\n        return 0;\n      }\n      puVar8 = puVar3 + 2;\n      param_2 = puVar3;\n    }\n    *puVar6 = param_3;\n    local_30 = 0;\n    puVar3 = (undefined4 *)param_3[1];\n    puVar6 = param_3 + 1;\n    if (puVar3 == (undefined4 *)0x0) {\n      param_3[1] = param_2;\n      goto LAB_00041e8c;\n    }\n    puVar7 = puVar3 + 2;\n    param_3 = puVar3;\n  }" { (while_statement "while( true ) {\n      puVar4 = &local_30;\n      iVar2 = (**(code **)(param_1 + 0x20))(param_1,&local_30,puVar8,*param_2,puVar7,*param_3);\n      if (0 < iVar2) break;\n      *puVar6 = param_2;\n      puVar3 = (undefined4 *)param_2[1];\n      puVar6 = param_2 + 1;\n      if (puVar3 == (undefined4 *)0x0) {\n        param_2[1] = param_3;\nLAB_00041e8c:\n        if (local_2c == *(int *)puVar1) {\n          return local_34;\n        }\n        (*(code *)PTR___stack_chk_fail_00190df8)();\n        uVar5 = *(undefined4 *)(local_2c + 0x18);\n        puVar4[1] = *(undefined4 *)(local_2c + 0x1c);\n        *puVar4 = uVar5;\n        return 0;\n      }\n      puVar8 = puVar3 + 2;\n      param_2 = puVar3;\n    }" while (parenthesized_expression "( true )" ( true )) (compound_statement "{\n      puVar4 = &local_30;\n      iVar2 = (**(code **)(param_1 + 0x20))(param_1,&local_30,puVar8,*param_2,puVar7,*param_3);\n      if (0 < iVar2) break;\n      *puVar6 = param_2;\n      puVar3 = (undefined4 *)param_2[1];\n      puVar6 = param_2 + 1;\n      if (puVar3 == (undefined4 *)0x0) {\n        param_2[1] = param_3;\nLAB_00041e8c:\n        if (local_2c == *(int *)puVar1) {\n          return local_34;\n        }\n        (*(code *)PTR___stack_chk_fail_00190df8)();\n        uVar5 = *(undefined4 *)(local_2c + 0x18);\n        puVar4[1] = *(undefined4 *)(local_2c + 0x1c);\n        *puVar4 = uVar5;\n        return 0;\n      }\n      puVar8 = puVar3 + 2;\n      param_2 = puVar3;\n    }" { (expression_statement "puVar4 = &local_30;" (assignment_expression "puVar4 = &local_30" identifier = (pointer_expression "&local_30" & identifier)) ;) (expression_statement "iVar2 = (**(code **)(param_1 + 0x20))(param_1,&local_30,puVar8,*param_2,puVar7,*param_3);" (assignment_expression "iVar2 = (**(code **)(param_1 + 0x20))(param_1,&local_30,puVar8,*param_2,puVar7,*param_3)" identifier = (call_expression "(**(code **)(param_1 + 0x20))(param_1,&local_30,puVar8,*param_2,puVar7,*param_3)" (parenthesized_expression "(**(code **)(param_1 + 0x20))" ( (pointer_expression "**(code **)(param_1 + 0x20)" * (pointer_expression "*(code **)(param_1 + 0x20)" * (cast_expression "(code **)(param_1 + 0x20)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(param_1 + 0x20)" ( (binary_expression "param_1 + 0x20" identifier + number_literal) ))))) )) (argument_list "(param_1,&local_30,puVar8,*param_2,puVar7,*param_3)" ( identifier , (pointer_expression "&local_30" & identifier) , identifier , (pointer_expression "*param_2" * identifier) , identifier , (pointer_expression "*param_3" * identifier) )))) ;) (if_statement "if (0 < iVar2) break;" if (parenthesized_expression "(0 < iVar2)" ( (binary_expression "0 < iVar2" number_literal < identifier) )) (break_statement "break;" break ;)) (expression_statement "*puVar6 = param_2;" (assignment_expression "*puVar6 = param_2" (pointer_expression "*puVar6" * identifier) = identifier) ;) (expression_statement "puVar3 = (undefined4 *)param_2[1];" (assignment_expression "puVar3 = (undefined4 *)param_2[1]" identifier = (cast_expression "(undefined4 *)param_2[1]" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (subscript_expression "param_2[1]" identifier [ number_literal ]))) ;) (expression_statement "puVar6 = param_2 + 1;" (assignment_expression "puVar6 = param_2 + 1" identifier = (binary_expression "param_2 + 1" identifier + number_literal)) ;) (if_statement "if (puVar3 == (undefined4 *)0x0) {\n        param_2[1] = param_3;\nLAB_00041e8c:\n        if (local_2c == *(int *)puVar1) {\n          return local_34;\n        }\n        (*(code *)PTR___stack_chk_fail_00190df8)();\n        uVar5 = *(undefined4 *)(local_2c + 0x18);\n        puVar4[1] = *(undefined4 *)(local_2c + 0x1c);\n        *puVar4 = uVar5;\n        return 0;\n      }" if (parenthesized_expression "(puVar3 == (undefined4 *)0x0)" ( (binary_expression "puVar3 == (undefined4 *)0x0" identifier == (cast_expression "(undefined4 *)0x0" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n        param_2[1] = param_3;\nLAB_00041e8c:\n        if (local_2c == *(int *)puVar1) {\n          return local_34;\n        }\n        (*(code *)PTR___stack_chk_fail_00190df8)();\n        uVar5 = *(undefined4 *)(local_2c + 0x18);\n        puVar4[1] = *(undefined4 *)(local_2c + 0x1c);\n        *puVar4 = uVar5;\n        return 0;\n      }" { (expression_statement "param_2[1] = param_3;" (assignment_expression "param_2[1] = param_3" (subscript_expression "param_2[1]" identifier [ number_literal ]) = identifier) ;) (labeled_statement "LAB_00041e8c:\n        if (local_2c == *(int *)puVar1) {\n          return local_34;\n        }" statement_identifier : (if_statement "if (local_2c == *(int *)puVar1) {\n          return local_34;\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          return local_34;\n        }" { (return_statement "return local_34;" return identifier ;) }))) (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 "()" ( ))) ;) (expression_statement "uVar5 = *(undefined4 *)(local_2c + 0x18);" (assignment_expression "uVar5 = *(undefined4 *)(local_2c + 0x18)" identifier = (pointer_expression "*(undefined4 *)(local_2c + 0x18)" * (cast_expression "(undefined4 *)(local_2c + 0x18)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(local_2c + 0x18)" ( (binary_expression "local_2c + 0x18" identifier + number_literal) ))))) ;) (expression_statement "puVar4[1] = *(undefined4 *)(local_2c + 0x1c);" (assignment_expression "puVar4[1] = *(undefined4 *)(local_2c + 0x1c)" (subscript_expression "puVar4[1]" identifier [ number_literal ]) = (pointer_expression "*(undefined4 *)(local_2c + 0x1c)" * (cast_expression "(undefined4 *)(local_2c + 0x1c)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(local_2c + 0x1c)" ( (binary_expression "local_2c + 0x1c" identifier + number_literal) ))))) ;) (expression_statement "*puVar4 = uVar5;" (assignment_expression "*puVar4 = uVar5" (pointer_expression "*puVar4" * identifier) = identifier) ;) (return_statement "return 0;" return number_literal ;) })) (expression_statement "puVar8 = puVar3 + 2;" (assignment_expression "puVar8 = puVar3 + 2" identifier = (binary_expression "puVar3 + 2" identifier + number_literal)) ;) (expression_statement "param_2 = puVar3;" (assignment_expression "param_2 = puVar3" identifier = identifier) ;) })) (expression_statement "*puVar6 = param_3;" (assignment_expression "*puVar6 = param_3" (pointer_expression "*puVar6" * identifier) = identifier) ;) (expression_statement "local_30 = 0;" (assignment_expression "local_30 = 0" identifier = number_literal) ;) (expression_statement "puVar3 = (undefined4 *)param_3[1];" (assignment_expression "puVar3 = (undefined4 *)param_3[1]" identifier = (cast_expression "(undefined4 *)param_3[1]" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (subscript_expression "param_3[1]" identifier [ number_literal ]))) ;) (expression_statement "puVar6 = param_3 + 1;" (assignment_expression "puVar6 = param_3 + 1" identifier = (binary_expression "param_3 + 1" identifier + number_literal)) ;) (if_statement "if (puVar3 == (undefined4 *)0x0) {\n      param_3[1] = param_2;\n      goto LAB_00041e8c;\n    }" if (parenthesized_expression "(puVar3 == (undefined4 *)0x0)" ( (binary_expression "puVar3 == (undefined4 *)0x0" identifier == (cast_expression "(undefined4 *)0x0" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n      param_3[1] = param_2;\n      goto LAB_00041e8c;\n    }" { (expression_statement "param_3[1] = param_2;" (assignment_expression "param_3[1] = param_2" (subscript_expression "param_3[1]" identifier [ number_literal ]) = identifier) ;) (goto_statement "goto LAB_00041e8c;" goto statement_identifier ;) })) (expression_statement "puVar7 = puVar3 + 2;" (assignment_expression "puVar7 = puVar3 + 2" identifier = (binary_expression "puVar3 + 2" identifier + number_literal)) ;) (expression_statement "param_3 = puVar3;" (assignment_expression "param_3 = puVar3" identifier = identifier) ;) }) while (parenthesized_expression "( true )" ( true )) ;) })))
(translation_unit "SorterRecord * vdbeSorterMerge(SortSubtask *pTask,SorterRecord *p1,SorterRecord *p2)\n\n{\n  undefined *puVar1;\n  int iVar2;\n  SorterRecord *pSVar3;\n  SorterRecord *pSVar4;\n  anon_union_4_2_0134e7e8_for_u *paVar5;\n  SorterRecord *pSVar6;\n  SorterRecord *pFinal;\n  int bCached;\n  int iStack_2c;\n  \n  puVar1 = PTR___stack_chk_guard_00190e24;\n  pSVar6 = p1 + 1;\n  pSVar4 = p2 + 1;\n  paVar5 = (anon_union_4_2_0134e7e8_for_u *)&pFinal;\n  pFinal = (SorterRecord *)0x0;\n  bCached = 0;\n  iStack_2c = *(int *)PTR___stack_chk_guard_00190e24;\n  do {\n    while( true ) {\n      iVar2 = (*pTask->xCompare)(pTask,&bCached,pSVar6,p1->nVal,pSVar4,p2->nVal);\n      if (0 < iVar2) break;\n      paVar5->pNext = p1;\n      pSVar3 = (p1->u).pNext;\n      paVar5 = &p1->u;\n      if (pSVar3 == (SorterRecord *)0x0) {\n        (p1->u).pNext = p2;\nLAB_00041e8c:\n        if (iStack_2c == *(int *)puVar1) {\n          return pFinal;\n        }\n        pSVar4 = (SorterRecord *)(*(code *)PTR___stack_chk_fail_00190df8)();\n        return pSVar4;\n      }\n      pSVar6 = pSVar3 + 1;\n      p1 = pSVar3;\n    }\n    paVar5->pNext = p2;\n    bCached = 0;\n    pSVar3 = (p2->u).pNext;\n    paVar5 = &p2->u;\n    if (pSVar3 == (SorterRecord *)0x0) {\n      (p2->u).pNext = p1;\n      goto LAB_00041e8c;\n    }\n    pSVar4 = pSVar3 + 1;\n    p2 = pSVar3;\n  } while( true );\n}\n\n" (function_definition "SorterRecord * vdbeSorterMerge(SortSubtask *pTask,SorterRecord *p1,SorterRecord *p2)\n\n{\n  undefined *puVar1;\n  int iVar2;\n  SorterRecord *pSVar3;\n  SorterRecord *pSVar4;\n  anon_union_4_2_0134e7e8_for_u *paVar5;\n  SorterRecord *pSVar6;\n  SorterRecord *pFinal;\n  int bCached;\n  int iStack_2c;\n  \n  puVar1 = PTR___stack_chk_guard_00190e24;\n  pSVar6 = p1 + 1;\n  pSVar4 = p2 + 1;\n  paVar5 = (anon_union_4_2_0134e7e8_for_u *)&pFinal;\n  pFinal = (SorterRecord *)0x0;\n  bCached = 0;\n  iStack_2c = *(int *)PTR___stack_chk_guard_00190e24;\n  do {\n    while( true ) {\n      iVar2 = (*pTask->xCompare)(pTask,&bCached,pSVar6,p1->nVal,pSVar4,p2->nVal);\n      if (0 < iVar2) break;\n      paVar5->pNext = p1;\n      pSVar3 = (p1->u).pNext;\n      paVar5 = &p1->u;\n      if (pSVar3 == (SorterRecord *)0x0) {\n        (p1->u).pNext = p2;\nLAB_00041e8c:\n        if (iStack_2c == *(int *)puVar1) {\n          return pFinal;\n        }\n        pSVar4 = (SorterRecord *)(*(code *)PTR___stack_chk_fail_00190df8)();\n        return pSVar4;\n      }\n      pSVar6 = pSVar3 + 1;\n      p1 = pSVar3;\n    }\n    paVar5->pNext = p2;\n    bCached = 0;\n    pSVar3 = (p2->u).pNext;\n    paVar5 = &p2->u;\n    if (pSVar3 == (SorterRecord *)0x0) {\n      (p2->u).pNext = p1;\n      goto LAB_00041e8c;\n    }\n    pSVar4 = pSVar3 + 1;\n    p2 = pSVar3;\n  } while( true );\n}" type_identifier (pointer_declarator "* vdbeSorterMerge(SortSubtask *pTask,SorterRecord *p1,SorterRecord *p2)" * (function_declarator "vdbeSorterMerge(SortSubtask *pTask,SorterRecord *p1,SorterRecord *p2)" identifier (parameter_list "(SortSubtask *pTask,SorterRecord *p1,SorterRecord *p2)" ( (parameter_declaration "SortSubtask *pTask" type_identifier (pointer_declarator "*pTask" * identifier)) , (parameter_declaration "SorterRecord *p1" type_identifier (pointer_declarator "*p1" * identifier)) , (parameter_declaration "SorterRecord *p2" type_identifier (pointer_declarator "*p2" * identifier)) )))) (compound_statement "{\n  undefined *puVar1;\n  int iVar2;\n  SorterRecord *pSVar3;\n  SorterRecord *pSVar4;\n  anon_union_4_2_0134e7e8_for_u *paVar5;\n  SorterRecord *pSVar6;\n  SorterRecord *pFinal;\n  int bCached;\n  int iStack_2c;\n  \n  puVar1 = PTR___stack_chk_guard_00190e24;\n  pSVar6 = p1 + 1;\n  pSVar4 = p2 + 1;\n  paVar5 = (anon_union_4_2_0134e7e8_for_u *)&pFinal;\n  pFinal = (SorterRecord *)0x0;\n  bCached = 0;\n  iStack_2c = *(int *)PTR___stack_chk_guard_00190e24;\n  do {\n    while( true ) {\n      iVar2 = (*pTask->xCompare)(pTask,&bCached,pSVar6,p1->nVal,pSVar4,p2->nVal);\n      if (0 < iVar2) break;\n      paVar5->pNext = p1;\n      pSVar3 = (p1->u).pNext;\n      paVar5 = &p1->u;\n      if (pSVar3 == (SorterRecord *)0x0) {\n        (p1->u).pNext = p2;\nLAB_00041e8c:\n        if (iStack_2c == *(int *)puVar1) {\n          return pFinal;\n        }\n        pSVar4 = (SorterRecord *)(*(code *)PTR___stack_chk_fail_00190df8)();\n        return pSVar4;\n      }\n      pSVar6 = pSVar3 + 1;\n      p1 = pSVar3;\n    }\n    paVar5->pNext = p2;\n    bCached = 0;\n    pSVar3 = (p2->u).pNext;\n    paVar5 = &p2->u;\n    if (pSVar3 == (SorterRecord *)0x0) {\n      (p2->u).pNext = p1;\n      goto LAB_00041e8c;\n    }\n    pSVar4 = pSVar3 + 1;\n    p2 = pSVar3;\n  } while( true );\n}" { (declaration "undefined *puVar1;" type_identifier (pointer_declarator "*puVar1" * identifier) ;) (declaration "int iVar2;" primitive_type identifier ;) (declaration "SorterRecord *pSVar3;" type_identifier (pointer_declarator "*pSVar3" * identifier) ;) (declaration "SorterRecord *pSVar4;" type_identifier (pointer_declarator "*pSVar4" * identifier) ;) (declaration "anon_union_4_2_0134e7e8_for_u *paVar5;" type_identifier (pointer_declarator "*paVar5" * identifier) ;) (declaration "SorterRecord *pSVar6;" type_identifier (pointer_declarator "*pSVar6" * identifier) ;) (declaration "SorterRecord *pFinal;" type_identifier (pointer_declarator "*pFinal" * identifier) ;) (declaration "int bCached;" primitive_type 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 "pSVar6 = p1 + 1;" (assignment_expression "pSVar6 = p1 + 1" identifier = (binary_expression "p1 + 1" identifier + number_literal)) ;) (expression_statement "pSVar4 = p2 + 1;" (assignment_expression "pSVar4 = p2 + 1" identifier = (binary_expression "p2 + 1" identifier + number_literal)) ;) (expression_statement "paVar5 = (anon_union_4_2_0134e7e8_for_u *)&pFinal;" (assignment_expression "paVar5 = (anon_union_4_2_0134e7e8_for_u *)&pFinal" identifier = (cast_expression "(anon_union_4_2_0134e7e8_for_u *)&pFinal" ( (type_descriptor "anon_union_4_2_0134e7e8_for_u *" type_identifier (abstract_pointer_declarator "*" *)) ) (pointer_expression "&pFinal" & identifier))) ;) (expression_statement "pFinal = (SorterRecord *)0x0;" (assignment_expression "pFinal = (SorterRecord *)0x0" identifier = (cast_expression "(SorterRecord *)0x0" ( (type_descriptor "SorterRecord *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) ;) (expression_statement "bCached = 0;" (assignment_expression "bCached = 0" identifier = number_literal) ;) (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))) ;) (do_statement "do {\n    while( true ) {\n      iVar2 = (*pTask->xCompare)(pTask,&bCached,pSVar6,p1->nVal,pSVar4,p2->nVal);\n      if (0 < iVar2) break;\n      paVar5->pNext = p1;\n      pSVar3 = (p1->u).pNext;\n      paVar5 = &p1->u;\n      if (pSVar3 == (SorterRecord *)0x0) {\n        (p1->u).pNext = p2;\nLAB_00041e8c:\n        if (iStack_2c == *(int *)puVar1) {\n          return pFinal;\n        }\n        pSVar4 = (SorterRecord *)(*(code *)PTR___stack_chk_fail_00190df8)();\n        return pSVar4;\n      }\n      pSVar6 = pSVar3 + 1;\n      p1 = pSVar3;\n    }\n    paVar5->pNext = p2;\n    bCached = 0;\n    pSVar3 = (p2->u).pNext;\n    paVar5 = &p2->u;\n    if (pSVar3 == (SorterRecord *)0x0) {\n      (p2->u).pNext = p1;\n      goto LAB_00041e8c;\n    }\n    pSVar4 = pSVar3 + 1;\n    p2 = pSVar3;\n  } while( true );" do (compound_statement "{\n    while( true ) {\n      iVar2 = (*pTask->xCompare)(pTask,&bCached,pSVar6,p1->nVal,pSVar4,p2->nVal);\n      if (0 < iVar2) break;\n      paVar5->pNext = p1;\n      pSVar3 = (p1->u).pNext;\n      paVar5 = &p1->u;\n      if (pSVar3 == (SorterRecord *)0x0) {\n        (p1->u).pNext = p2;\nLAB_00041e8c:\n        if (iStack_2c == *(int *)puVar1) {\n          return pFinal;\n        }\n        pSVar4 = (SorterRecord *)(*(code *)PTR___stack_chk_fail_00190df8)();\n        return pSVar4;\n      }\n      pSVar6 = pSVar3 + 1;\n      p1 = pSVar3;\n    }\n    paVar5->pNext = p2;\n    bCached = 0;\n    pSVar3 = (p2->u).pNext;\n    paVar5 = &p2->u;\n    if (pSVar3 == (SorterRecord *)0x0) {\n      (p2->u).pNext = p1;\n      goto LAB_00041e8c;\n    }\n    pSVar4 = pSVar3 + 1;\n    p2 = pSVar3;\n  }" { (while_statement "while( true ) {\n      iVar2 = (*pTask->xCompare)(pTask,&bCached,pSVar6,p1->nVal,pSVar4,p2->nVal);\n      if (0 < iVar2) break;\n      paVar5->pNext = p1;\n      pSVar3 = (p1->u).pNext;\n      paVar5 = &p1->u;\n      if (pSVar3 == (SorterRecord *)0x0) {\n        (p1->u).pNext = p2;\nLAB_00041e8c:\n        if (iStack_2c == *(int *)puVar1) {\n          return pFinal;\n        }\n        pSVar4 = (SorterRecord *)(*(code *)PTR___stack_chk_fail_00190df8)();\n        return pSVar4;\n      }\n      pSVar6 = pSVar3 + 1;\n      p1 = pSVar3;\n    }" while (parenthesized_expression "( true )" ( true )) (compound_statement "{\n      iVar2 = (*pTask->xCompare)(pTask,&bCached,pSVar6,p1->nVal,pSVar4,p2->nVal);\n      if (0 < iVar2) break;\n      paVar5->pNext = p1;\n      pSVar3 = (p1->u).pNext;\n      paVar5 = &p1->u;\n      if (pSVar3 == (SorterRecord *)0x0) {\n        (p1->u).pNext = p2;\nLAB_00041e8c:\n        if (iStack_2c == *(int *)puVar1) {\n          return pFinal;\n        }\n        pSVar4 = (SorterRecord *)(*(code *)PTR___stack_chk_fail_00190df8)();\n        return pSVar4;\n      }\n      pSVar6 = pSVar3 + 1;\n      p1 = pSVar3;\n    }" { (expression_statement "iVar2 = (*pTask->xCompare)(pTask,&bCached,pSVar6,p1->nVal,pSVar4,p2->nVal);" (assignment_expression "iVar2 = (*pTask->xCompare)(pTask,&bCached,pSVar6,p1->nVal,pSVar4,p2->nVal)" identifier = (call_expression "(*pTask->xCompare)(pTask,&bCached,pSVar6,p1->nVal,pSVar4,p2->nVal)" (parenthesized_expression "(*pTask->xCompare)" ( (pointer_expression "*pTask->xCompare" * (field_expression "pTask->xCompare" identifier -> field_identifier)) )) (argument_list "(pTask,&bCached,pSVar6,p1->nVal,pSVar4,p2->nVal)" ( identifier , (pointer_expression "&bCached" & identifier) , identifier , (field_expression "p1->nVal" identifier -> field_identifier) , identifier , (field_expression "p2->nVal" identifier -> field_identifier) )))) ;) (if_statement "if (0 < iVar2) break;" if (parenthesized_expression "(0 < iVar2)" ( (binary_expression "0 < iVar2" number_literal < identifier) )) (break_statement "break;" break ;)) (expression_statement "paVar5->pNext = p1;" (assignment_expression "paVar5->pNext = p1" (field_expression "paVar5->pNext" identifier -> field_identifier) = identifier) ;) (expression_statement "pSVar3 = (p1->u).pNext;" (assignment_expression "pSVar3 = (p1->u).pNext" identifier = (field_expression "(p1->u).pNext" (parenthesized_expression "(p1->u)" ( (field_expression "p1->u" identifier -> field_identifier) )) . field_identifier)) ;) (expression_statement "paVar5 = &p1->u;" (assignment_expression "paVar5 = &p1->u" identifier = (pointer_expression "&p1->u" & (field_expression "p1->u" identifier -> field_identifier))) ;) (if_statement "if (pSVar3 == (SorterRecord *)0x0) {\n        (p1->u).pNext = p2;\nLAB_00041e8c:\n        if (iStack_2c == *(int *)puVar1) {\n          return pFinal;\n        }\n        pSVar4 = (SorterRecord *)(*(code *)PTR___stack_chk_fail_00190df8)();\n        return pSVar4;\n      }" if (parenthesized_expression "(pSVar3 == (SorterRecord *)0x0)" ( (binary_expression "pSVar3 == (SorterRecord *)0x0" identifier == (cast_expression "(SorterRecord *)0x0" ( (type_descriptor "SorterRecord *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n        (p1->u).pNext = p2;\nLAB_00041e8c:\n        if (iStack_2c == *(int *)puVar1) {\n          return pFinal;\n        }\n        pSVar4 = (SorterRecord *)(*(code *)PTR___stack_chk_fail_00190df8)();\n        return pSVar4;\n      }" { (expression_statement "(p1->u).pNext = p2;" (assignment_expression "(p1->u).pNext = p2" (field_expression "(p1->u).pNext" (parenthesized_expression "(p1->u)" ( (field_expression "p1->u" identifier -> field_identifier) )) . field_identifier) = identifier) ;) (labeled_statement "LAB_00041e8c:\n        if (iStack_2c == *(int *)puVar1) {\n          return pFinal;\n        }" statement_identifier : (if_statement "if (iStack_2c == *(int *)puVar1) {\n          return pFinal;\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          return pFinal;\n        }" { (return_statement "return pFinal;" return identifier ;) }))) (expression_statement "pSVar4 = (SorterRecord *)(*(code *)PTR___stack_chk_fail_00190df8)();" (assignment_expression "pSVar4 = (SorterRecord *)(*(code *)PTR___stack_chk_fail_00190df8)()" identifier = (cast_expression "(SorterRecord *)(*(code *)PTR___stack_chk_fail_00190df8)()" ( (type_descriptor "SorterRecord *" type_identifier (abstract_pointer_declarator "*" *)) ) (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 pSVar4;" return identifier ;) })) (expression_statement "pSVar6 = pSVar3 + 1;" (assignment_expression "pSVar6 = pSVar3 + 1" identifier = (binary_expression "pSVar3 + 1" identifier + number_literal)) ;) (expression_statement "p1 = pSVar3;" (assignment_expression "p1 = pSVar3" identifier = identifier) ;) })) (expression_statement "paVar5->pNext = p2;" (assignment_expression "paVar5->pNext = p2" (field_expression "paVar5->pNext" identifier -> field_identifier) = identifier) ;) (expression_statement "bCached = 0;" (assignment_expression "bCached = 0" identifier = number_literal) ;) (expression_statement "pSVar3 = (p2->u).pNext;" (assignment_expression "pSVar3 = (p2->u).pNext" identifier = (field_expression "(p2->u).pNext" (parenthesized_expression "(p2->u)" ( (field_expression "p2->u" identifier -> field_identifier) )) . field_identifier)) ;) (expression_statement "paVar5 = &p2->u;" (assignment_expression "paVar5 = &p2->u" identifier = (pointer_expression "&p2->u" & (field_expression "p2->u" identifier -> field_identifier))) ;) (if_statement "if (pSVar3 == (SorterRecord *)0x0) {\n      (p2->u).pNext = p1;\n      goto LAB_00041e8c;\n    }" if (parenthesized_expression "(pSVar3 == (SorterRecord *)0x0)" ( (binary_expression "pSVar3 == (SorterRecord *)0x0" identifier == (cast_expression "(SorterRecord *)0x0" ( (type_descriptor "SorterRecord *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n      (p2->u).pNext = p1;\n      goto LAB_00041e8c;\n    }" { (expression_statement "(p2->u).pNext = p1;" (assignment_expression "(p2->u).pNext = p1" (field_expression "(p2->u).pNext" (parenthesized_expression "(p2->u)" ( (field_expression "p2->u" identifier -> field_identifier) )) . field_identifier) = identifier) ;) (goto_statement "goto LAB_00041e8c;" goto statement_identifier ;) })) (expression_statement "pSVar4 = pSVar3 + 1;" (assignment_expression "pSVar4 = pSVar3 + 1" identifier = (binary_expression "pSVar3 + 1" identifier + number_literal)) ;) (expression_statement "p2 = pSVar3;" (assignment_expression "p2 = pSVar3" identifier = identifier) ;) }) while (parenthesized_expression "( true )" ( true )) ;) })))
(translation_unit "undefined4 FUN_00041db8(int param_1,undefined4 *param_2,undefined4 *param_3)\n\n{\n  undefined *puVar1;\n  int iVar2;\n  undefined4 *puVar3;\n  undefined4 *puVar4;\n  undefined4 uVar5;\n  undefined4 *puVar6;\n  undefined4 *puVar7;\n  undefined4 *puVar8;\n  undefined4 local_34;\n  undefined4 local_30;\n  int local_2c;\n  \n  puVar1 = PTR___stack_chk_guard_00190e24;\n  puVar8 = param_2 + 2;\n  puVar7 = param_3 + 2;\n  puVar6 = &local_34;\n  local_34 = 0;\n  local_30 = 0;\n  local_2c = *(int *)PTR___stack_chk_guard_00190e24;\n  do {\n    while( true ) {\n      puVar4 = &local_30;\n      iVar2 = (**(code **)(param_1 + 0x20))(param_1,&local_30,puVar8,*param_2,puVar7,*param_3);\n      if (0 < iVar2) break;\n      *puVar6 = param_2;\n      puVar3 = (undefined4 *)param_2[1];\n      puVar6 = param_2 + 1;\n      if (puVar3 == (undefined4 *)0x0) {\n        param_2[1] = param_3;\nLAB_00041e8c:\n        if (local_2c == *(int *)puVar1) {\n          return local_34;\n        }\n        (*(code *)PTR___stack_chk_fail_00190df8)();\n        uVar5 = *(undefined4 *)(local_2c + 0x18);\n        puVar4[1] = *(undefined4 *)(local_2c + 0x1c);\n        *puVar4 = uVar5;\n        return 0;\n      }\n      puVar8 = puVar3 + 2;\n      param_2 = puVar3;\n    }\n    *puVar6 = param_3;\n    local_30 = 0;\n    puVar3 = (undefined4 *)param_3[1];\n    puVar6 = param_3 + 1;\n    if (puVar3 == (undefined4 *)0x0) {\n      param_3[1] = param_2;\n      goto LAB_00041e8c;\n    }\n    puVar7 = puVar3 + 2;\n    param_3 = puVar3;\n  } while( true );\n}\n\n" (function_definition "undefined4 FUN_00041db8(int param_1,undefined4 *param_2,undefined4 *param_3)\n\n{\n  undefined *puVar1;\n  int iVar2;\n  undefined4 *puVar3;\n  undefined4 *puVar4;\n  undefined4 uVar5;\n  undefined4 *puVar6;\n  undefined4 *puVar7;\n  undefined4 *puVar8;\n  undefined4 local_34;\n  undefined4 local_30;\n  int local_2c;\n  \n  puVar1 = PTR___stack_chk_guard_00190e24;\n  puVar8 = param_2 + 2;\n  puVar7 = param_3 + 2;\n  puVar6 = &local_34;\n  local_34 = 0;\n  local_30 = 0;\n  local_2c = *(int *)PTR___stack_chk_guard_00190e24;\n  do {\n    while( true ) {\n      puVar4 = &local_30;\n      iVar2 = (**(code **)(param_1 + 0x20))(param_1,&local_30,puVar8,*param_2,puVar7,*param_3);\n      if (0 < iVar2) break;\n      *puVar6 = param_2;\n      puVar3 = (undefined4 *)param_2[1];\n      puVar6 = param_2 + 1;\n      if (puVar3 == (undefined4 *)0x0) {\n        param_2[1] = param_3;\nLAB_00041e8c:\n        if (local_2c == *(int *)puVar1) {\n          return local_34;\n        }\n        (*(code *)PTR___stack_chk_fail_00190df8)();\n        uVar5 = *(undefined4 *)(local_2c + 0x18);\n        puVar4[1] = *(undefined4 *)(local_2c + 0x1c);\n        *puVar4 = uVar5;\n        return 0;\n      }\n      puVar8 = puVar3 + 2;\n      param_2 = puVar3;\n    }\n    *puVar6 = param_3;\n    local_30 = 0;\n    puVar3 = (undefined4 *)param_3[1];\n    puVar6 = param_3 + 1;\n    if (puVar3 == (undefined4 *)0x0) {\n      param_3[1] = param_2;\n      goto LAB_00041e8c;\n    }\n    puVar7 = puVar3 + 2;\n    param_3 = puVar3;\n  } while( true );\n}" type_identifier (function_declarator "FUN_00041db8(int param_1,undefined4 *param_2,undefined4 *param_3)" identifier (parameter_list "(int param_1,undefined4 *param_2,undefined4 *param_3)" ( (parameter_declaration "int param_1" primitive_type identifier) , (parameter_declaration "undefined4 *param_2" type_identifier (pointer_declarator "*param_2" * identifier)) , (parameter_declaration "undefined4 *param_3" type_identifier (pointer_declarator "*param_3" * identifier)) ))) (compound_statement "{\n  undefined *puVar1;\n  int iVar2;\n  undefined4 *puVar3;\n  undefined4 *puVar4;\n  undefined4 uVar5;\n  undefined4 *puVar6;\n  undefined4 *puVar7;\n  undefined4 *puVar8;\n  undefined4 local_34;\n  undefined4 local_30;\n  int local_2c;\n  \n  puVar1 = PTR___stack_chk_guard_00190e24;\n  puVar8 = param_2 + 2;\n  puVar7 = param_3 + 2;\n  puVar6 = &local_34;\n  local_34 = 0;\n  local_30 = 0;\n  local_2c = *(int *)PTR___stack_chk_guard_00190e24;\n  do {\n    while( true ) {\n      puVar4 = &local_30;\n      iVar2 = (**(code **)(param_1 + 0x20))(param_1,&local_30,puVar8,*param_2,puVar7,*param_3);\n      if (0 < iVar2) break;\n      *puVar6 = param_2;\n      puVar3 = (undefined4 *)param_2[1];\n      puVar6 = param_2 + 1;\n      if (puVar3 == (undefined4 *)0x0) {\n        param_2[1] = param_3;\nLAB_00041e8c:\n        if (local_2c == *(int *)puVar1) {\n          return local_34;\n        }\n        (*(code *)PTR___stack_chk_fail_00190df8)();\n        uVar5 = *(undefined4 *)(local_2c + 0x18);\n        puVar4[1] = *(undefined4 *)(local_2c + 0x1c);\n        *puVar4 = uVar5;\n        return 0;\n      }\n      puVar8 = puVar3 + 2;\n      param_2 = puVar3;\n    }\n    *puVar6 = param_3;\n    local_30 = 0;\n    puVar3 = (undefined4 *)param_3[1];\n    puVar6 = param_3 + 1;\n    if (puVar3 == (undefined4 *)0x0) {\n      param_3[1] = param_2;\n      goto LAB_00041e8c;\n    }\n    puVar7 = puVar3 + 2;\n    param_3 = puVar3;\n  } while( true );\n}" { (declaration "undefined *puVar1;" type_identifier (pointer_declarator "*puVar1" * identifier) ;) (declaration "int iVar2;" primitive_type identifier ;) (declaration "undefined4 *puVar3;" type_identifier (pointer_declarator "*puVar3" * identifier) ;) (declaration "undefined4 *puVar4;" type_identifier (pointer_declarator "*puVar4" * identifier) ;) (declaration "undefined4 uVar5;" type_identifier identifier ;) (declaration "undefined4 *puVar6;" type_identifier (pointer_declarator "*puVar6" * identifier) ;) (declaration "undefined4 *puVar7;" type_identifier (pointer_declarator "*puVar7" * identifier) ;) (declaration "undefined4 *puVar8;" type_identifier (pointer_declarator "*puVar8" * identifier) ;) (declaration "undefined4 local_34;" type_identifier identifier ;) (declaration "undefined4 local_30;" type_identifier 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 "puVar8 = param_2 + 2;" (assignment_expression "puVar8 = param_2 + 2" identifier = (binary_expression "param_2 + 2" identifier + number_literal)) ;) (expression_statement "puVar7 = param_3 + 2;" (assignment_expression "puVar7 = param_3 + 2" identifier = (binary_expression "param_3 + 2" identifier + number_literal)) ;) (expression_statement "puVar6 = &local_34;" (assignment_expression "puVar6 = &local_34" identifier = (pointer_expression "&local_34" & identifier)) ;) (expression_statement "local_34 = 0;" (assignment_expression "local_34 = 0" identifier = number_literal) ;) (expression_statement "local_30 = 0;" (assignment_expression "local_30 = 0" identifier = number_literal) ;) (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))) ;) (do_statement "do {\n    while( true ) {\n      puVar4 = &local_30;\n      iVar2 = (**(code **)(param_1 + 0x20))(param_1,&local_30,puVar8,*param_2,puVar7,*param_3);\n      if (0 < iVar2) break;\n      *puVar6 = param_2;\n      puVar3 = (undefined4 *)param_2[1];\n      puVar6 = param_2 + 1;\n      if (puVar3 == (undefined4 *)0x0) {\n        param_2[1] = param_3;\nLAB_00041e8c:\n        if (local_2c == *(int *)puVar1) {\n          return local_34;\n        }\n        (*(code *)PTR___stack_chk_fail_00190df8)();\n        uVar5 = *(undefined4 *)(local_2c + 0x18);\n        puVar4[1] = *(undefined4 *)(local_2c + 0x1c);\n        *puVar4 = uVar5;\n        return 0;\n      }\n      puVar8 = puVar3 + 2;\n      param_2 = puVar3;\n    }\n    *puVar6 = param_3;\n    local_30 = 0;\n    puVar3 = (undefined4 *)param_3[1];\n    puVar6 = param_3 + 1;\n    if (puVar3 == (undefined4 *)0x0) {\n      param_3[1] = param_2;\n      goto LAB_00041e8c;\n    }\n    puVar7 = puVar3 + 2;\n    param_3 = puVar3;\n  } while( true );" do (compound_statement "{\n    while( true ) {\n      puVar4 = &local_30;\n      iVar2 = (**(code **)(param_1 + 0x20))(param_1,&local_30,puVar8,*param_2,puVar7,*param_3);\n      if (0 < iVar2) break;\n      *puVar6 = param_2;\n      puVar3 = (undefined4 *)param_2[1];\n      puVar6 = param_2 + 1;\n      if (puVar3 == (undefined4 *)0x0) {\n        param_2[1] = param_3;\nLAB_00041e8c:\n        if (local_2c == *(int *)puVar1) {\n          return local_34;\n        }\n        (*(code *)PTR___stack_chk_fail_00190df8)();\n        uVar5 = *(undefined4 *)(local_2c + 0x18);\n        puVar4[1] = *(undefined4 *)(local_2c + 0x1c);\n        *puVar4 = uVar5;\n        return 0;\n      }\n      puVar8 = puVar3 + 2;\n      param_2 = puVar3;\n    }\n    *puVar6 = param_3;\n    local_30 = 0;\n    puVar3 = (undefined4 *)param_3[1];\n    puVar6 = param_3 + 1;\n    if (puVar3 == (undefined4 *)0x0) {\n      param_3[1] = param_2;\n      goto LAB_00041e8c;\n    }\n    puVar7 = puVar3 + 2;\n    param_3 = puVar3;\n  }" { (while_statement "while( true ) {\n      puVar4 = &local_30;\n      iVar2 = (**(code **)(param_1 + 0x20))(param_1,&local_30,puVar8,*param_2,puVar7,*param_3);\n      if (0 < iVar2) break;\n      *puVar6 = param_2;\n      puVar3 = (undefined4 *)param_2[1];\n      puVar6 = param_2 + 1;\n      if (puVar3 == (undefined4 *)0x0) {\n        param_2[1] = param_3;\nLAB_00041e8c:\n        if (local_2c == *(int *)puVar1) {\n          return local_34;\n        }\n        (*(code *)PTR___stack_chk_fail_00190df8)();\n        uVar5 = *(undefined4 *)(local_2c + 0x18);\n        puVar4[1] = *(undefined4 *)(local_2c + 0x1c);\n        *puVar4 = uVar5;\n        return 0;\n      }\n      puVar8 = puVar3 + 2;\n      param_2 = puVar3;\n    }" while (parenthesized_expression "( true )" ( true )) (compound_statement "{\n      puVar4 = &local_30;\n      iVar2 = (**(code **)(param_1 + 0x20))(param_1,&local_30,puVar8,*param_2,puVar7,*param_3);\n      if (0 < iVar2) break;\n      *puVar6 = param_2;\n      puVar3 = (undefined4 *)param_2[1];\n      puVar6 = param_2 + 1;\n      if (puVar3 == (undefined4 *)0x0) {\n        param_2[1] = param_3;\nLAB_00041e8c:\n        if (local_2c == *(int *)puVar1) {\n          return local_34;\n        }\n        (*(code *)PTR___stack_chk_fail_00190df8)();\n        uVar5 = *(undefined4 *)(local_2c + 0x18);\n        puVar4[1] = *(undefined4 *)(local_2c + 0x1c);\n        *puVar4 = uVar5;\n        return 0;\n      }\n      puVar8 = puVar3 + 2;\n      param_2 = puVar3;\n    }" { (expression_statement "puVar4 = &local_30;" (assignment_expression "puVar4 = &local_30" identifier = (pointer_expression "&local_30" & identifier)) ;) (expression_statement "iVar2 = (**(code **)(param_1 + 0x20))(param_1,&local_30,puVar8,*param_2,puVar7,*param_3);" (assignment_expression "iVar2 = (**(code **)(param_1 + 0x20))(param_1,&local_30,puVar8,*param_2,puVar7,*param_3)" identifier = (call_expression "(**(code **)(param_1 + 0x20))(param_1,&local_30,puVar8,*param_2,puVar7,*param_3)" (parenthesized_expression "(**(code **)(param_1 + 0x20))" ( (pointer_expression "**(code **)(param_1 + 0x20)" * (pointer_expression "*(code **)(param_1 + 0x20)" * (cast_expression "(code **)(param_1 + 0x20)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(param_1 + 0x20)" ( (binary_expression "param_1 + 0x20" identifier + number_literal) ))))) )) (argument_list "(param_1,&local_30,puVar8,*param_2,puVar7,*param_3)" ( identifier , (pointer_expression "&local_30" & identifier) , identifier , (pointer_expression "*param_2" * identifier) , identifier , (pointer_expression "*param_3" * identifier) )))) ;) (if_statement "if (0 < iVar2) break;" if (parenthesized_expression "(0 < iVar2)" ( (binary_expression "0 < iVar2" number_literal < identifier) )) (break_statement "break;" break ;)) (expression_statement "*puVar6 = param_2;" (assignment_expression "*puVar6 = param_2" (pointer_expression "*puVar6" * identifier) = identifier) ;) (expression_statement "puVar3 = (undefined4 *)param_2[1];" (assignment_expression "puVar3 = (undefined4 *)param_2[1]" identifier = (cast_expression "(undefined4 *)param_2[1]" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (subscript_expression "param_2[1]" identifier [ number_literal ]))) ;) (expression_statement "puVar6 = param_2 + 1;" (assignment_expression "puVar6 = param_2 + 1" identifier = (binary_expression "param_2 + 1" identifier + number_literal)) ;) (if_statement "if (puVar3 == (undefined4 *)0x0) {\n        param_2[1] = param_3;\nLAB_00041e8c:\n        if (local_2c == *(int *)puVar1) {\n          return local_34;\n        }\n        (*(code *)PTR___stack_chk_fail_00190df8)();\n        uVar5 = *(undefined4 *)(local_2c + 0x18);\n        puVar4[1] = *(undefined4 *)(local_2c + 0x1c);\n        *puVar4 = uVar5;\n        return 0;\n      }" if (parenthesized_expression "(puVar3 == (undefined4 *)0x0)" ( (binary_expression "puVar3 == (undefined4 *)0x0" identifier == (cast_expression "(undefined4 *)0x0" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n        param_2[1] = param_3;\nLAB_00041e8c:\n        if (local_2c == *(int *)puVar1) {\n          return local_34;\n        }\n        (*(code *)PTR___stack_chk_fail_00190df8)();\n        uVar5 = *(undefined4 *)(local_2c + 0x18);\n        puVar4[1] = *(undefined4 *)(local_2c + 0x1c);\n        *puVar4 = uVar5;\n        return 0;\n      }" { (expression_statement "param_2[1] = param_3;" (assignment_expression "param_2[1] = param_3" (subscript_expression "param_2[1]" identifier [ number_literal ]) = identifier) ;) (labeled_statement "LAB_00041e8c:\n        if (local_2c == *(int *)puVar1) {\n          return local_34;\n        }" statement_identifier : (if_statement "if (local_2c == *(int *)puVar1) {\n          return local_34;\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          return local_34;\n        }" { (return_statement "return local_34;" return identifier ;) }))) (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 "()" ( ))) ;) (expression_statement "uVar5 = *(undefined4 *)(local_2c + 0x18);" (assignment_expression "uVar5 = *(undefined4 *)(local_2c + 0x18)" identifier = (pointer_expression "*(undefined4 *)(local_2c + 0x18)" * (cast_expression "(undefined4 *)(local_2c + 0x18)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(local_2c + 0x18)" ( (binary_expression "local_2c + 0x18" identifier + number_literal) ))))) ;) (expression_statement "puVar4[1] = *(undefined4 *)(local_2c + 0x1c);" (assignment_expression "puVar4[1] = *(undefined4 *)(local_2c + 0x1c)" (subscript_expression "puVar4[1]" identifier [ number_literal ]) = (pointer_expression "*(undefined4 *)(local_2c + 0x1c)" * (cast_expression "(undefined4 *)(local_2c + 0x1c)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(local_2c + 0x1c)" ( (binary_expression "local_2c + 0x1c" identifier + number_literal) ))))) ;) (expression_statement "*puVar4 = uVar5;" (assignment_expression "*puVar4 = uVar5" (pointer_expression "*puVar4" * identifier) = identifier) ;) (return_statement "return 0;" return number_literal ;) })) (expression_statement "puVar8 = puVar3 + 2;" (assignment_expression "puVar8 = puVar3 + 2" identifier = (binary_expression "puVar3 + 2" identifier + number_literal)) ;) (expression_statement "param_2 = puVar3;" (assignment_expression "param_2 = puVar3" identifier = identifier) ;) })) (expression_statement "*puVar6 = param_3;" (assignment_expression "*puVar6 = param_3" (pointer_expression "*puVar6" * identifier) = identifier) ;) (expression_statement "local_30 = 0;" (assignment_expression "local_30 = 0" identifier = number_literal) ;) (expression_statement "puVar3 = (undefined4 *)param_3[1];" (assignment_expression "puVar3 = (undefined4 *)param_3[1]" identifier = (cast_expression "(undefined4 *)param_3[1]" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (subscript_expression "param_3[1]" identifier [ number_literal ]))) ;) (expression_statement "puVar6 = param_3 + 1;" (assignment_expression "puVar6 = param_3 + 1" identifier = (binary_expression "param_3 + 1" identifier + number_literal)) ;) (if_statement "if (puVar3 == (undefined4 *)0x0) {\n      param_3[1] = param_2;\n      goto LAB_00041e8c;\n    }" if (parenthesized_expression "(puVar3 == (undefined4 *)0x0)" ( (binary_expression "puVar3 == (undefined4 *)0x0" identifier == (cast_expression "(undefined4 *)0x0" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n      param_3[1] = param_2;\n      goto LAB_00041e8c;\n    }" { (expression_statement "param_3[1] = param_2;" (assignment_expression "param_3[1] = param_2" (subscript_expression "param_3[1]" identifier [ number_literal ]) = identifier) ;) (goto_statement "goto LAB_00041e8c;" goto statement_identifier ;) })) (expression_statement "puVar7 = puVar3 + 2;" (assignment_expression "puVar7 = puVar3 + 2" identifier = (binary_expression "puVar3 + 2" identifier + number_literal)) ;) (expression_statement "param_3 = puVar3;" (assignment_expression "param_3 = puVar3" identifier = identifier) ;) }) while (parenthesized_expression "( true )" ( true )) ;) })))
(translation_unit (function_definition TYPE (function_declarator IDENT (parameter_list ( (parameter_declaration TYPE IDENT) , (parameter_declaration TYPE (pointer_declarator * IDENT)) , (parameter_declaration TYPE (pointer_declarator * IDENT)) ))) (compound_statement { (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE IDENT ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE IDENT ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (expression_statement (assignment_expression IDENT = IDENT) ;) (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) (expression_statement (assignment_expression IDENT = (pointer_expression & IDENT)) ;) (expression_statement (assignment_expression IDENT = LIT) ;) (expression_statement (assignment_expression IDENT = LIT) ;) (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT))) ;) (do_statement do (compound_statement { (while_statement while (parenthesized_expression ( BOOL )) (compound_statement { (expression_statement (assignment_expression IDENT = (pointer_expression & IDENT)) ;) (expression_statement (assignment_expression IDENT = (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 ( IDENT , (pointer_expression & IDENT) , IDENT , (pointer_expression * IDENT) , IDENT , (pointer_expression * IDENT) )))) ;) (if_statement if (parenthesized_expression ( (binary_expression LIT < IDENT) )) (break_statement break ;)) (expression_statement (assignment_expression (pointer_expression * IDENT) = IDENT) ;) (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (subscript_expression IDENT [ LIT ]))) ;) (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT == (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) LIT)) )) (compound_statement { (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = IDENT) ;) (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 { (return_statement return IDENT ;) }))) (expression_statement (call_expression (parenthesized_expression ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT)) )) (argument_list ( ))) ;) (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) ;) (expression_statement (assignment_expression (pointer_expression * IDENT) = IDENT) ;) (return_statement return LIT ;) })) (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) (expression_statement (assignment_expression IDENT = IDENT) ;) })) (expression_statement (assignment_expression (pointer_expression * IDENT) = IDENT) ;) (expression_statement (assignment_expression IDENT = LIT) ;) (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (subscript_expression IDENT [ LIT ]))) ;) (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT == (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) LIT)) )) (compound_statement { (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = IDENT) ;) (goto_statement goto statement_identifier ;) })) (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) (expression_statement (assignment_expression IDENT = IDENT) ;) }) while (parenthesized_expression ( BOOL )) ;) })))
(function_definition "undefined4 FUN_00041db8(int param_1,undefined4 *param_2,undefined4 *param_3)\n\n{\n  undefined *puVar1;\n  int iVar2;\n  undefined4 *puVar3;\n  undefined4 *puVar4;\n  undefined4 uVar5;\n  undefined4 *puVar6;\n  undefined4 *puVar7;\n  undefined4 *puVar8;\n  undefined4 local_34;\n  undefined4 local_30;\n  int local_2c;\n  \n  puVar1 = PTR___stack_chk_guard_00190e24;\n  puVar8 = param_2 + 2;\n  puVar7 = param_3 + 2;\n  puVar6 = &local_34;\n  local_34 = 0;\n  local_30 = 0;\n  local_2c = *(int *)PTR___stack_chk_guard_00190e24;\n  do {\n    while( true ) {\n      puVar4 = &local_30;\n      iVar2 = (**(code **)(param_1 + 0x20))(param_1,&local_30,puVar8,*param_2,puVar7,*param_3);\n      if (0 < iVar2) break;\n      *puVar6 = param_2;\n      puVar3 = (undefined4 *)param_2[1];\n      puVar6 = param_2 + 1;\n      if (puVar3 == (undefined4 *)0x0) {\n        param_2[1] = param_3;\nLAB_00041e8c:\n        if (local_2c == *(int *)puVar1) {\n          return local_34;\n        }\n        (*(code *)PTR___stack_chk_fail_00190df8)();\n        uVar5 = *(undefined4 *)(local_2c + 0x18);\n        puVar4[1] = *(undefined4 *)(local_2c + 0x1c);\n        *puVar4 = uVar5;\n        return 0;\n      }\n      puVar8 = puVar3 + 2;\n      param_2 = puVar3;\n    }\n    *puVar6 = param_3;\n    local_30 = 0;\n    puVar3 = (undefined4 *)param_3[1];\n    puVar6 = param_3 + 1;\n    if (puVar3 == (undefined4 *)0x0) {\n      param_3[1] = param_2;\n      goto LAB_00041e8c;\n    }\n    puVar7 = puVar3 + 2;\n    param_3 = puVar3;\n  } while( true );\n}" (type_identifier "undefined4") (function_declarator "FUN_00041db8(int param_1,undefined4 *param_2,undefined4 *param_3)" (identifier "FUN_00041db8") (parameter_list "(int param_1,undefined4 *param_2,undefined4 *param_3)" (( "(") (parameter_declaration "int param_1" (primitive_type "int") (identifier "param_1")) (, ",") (parameter_declaration "undefined4 *param_2" (type_identifier "undefined4") (pointer_declarator "*param_2" (* "*") (identifier "param_2"))) (, ",") (parameter_declaration "undefined4 *param_3" (type_identifier "undefined4") (pointer_declarator "*param_3" (* "*") (identifier "param_3"))) () ")"))) (compound_statement "{\n  undefined *puVar1;\n  int iVar2;\n  undefined4 *puVar3;\n  undefined4 *puVar4;\n  undefined4 uVar5;\n  undefined4 *puVar6;\n  undefined4 *puVar7;\n  undefined4 *puVar8;\n  undefined4 local_34;\n  undefined4 local_30;\n  int local_2c;\n  \n  puVar1 = PTR___stack_chk_guard_00190e24;\n  puVar8 = param_2 + 2;\n  puVar7 = param_3 + 2;\n  puVar6 = &local_34;\n  local_34 = 0;\n  local_30 = 0;\n  local_2c = *(int *)PTR___stack_chk_guard_00190e24;\n  do {\n    while( true ) {\n      puVar4 = &local_30;\n      iVar2 = (**(code **)(param_1 + 0x20))(param_1,&local_30,puVar8,*param_2,puVar7,*param_3);\n      if (0 < iVar2) break;\n      *puVar6 = param_2;\n      puVar3 = (undefined4 *)param_2[1];\n      puVar6 = param_2 + 1;\n      if (puVar3 == (undefined4 *)0x0) {\n        param_2[1] = param_3;\nLAB_00041e8c:\n        if (local_2c == *(int *)puVar1) {\n          return local_34;\n        }\n        (*(code *)PTR___stack_chk_fail_00190df8)();\n        uVar5 = *(undefined4 *)(local_2c + 0x18);\n        puVar4[1] = *(undefined4 *)(local_2c + 0x1c);\n        *puVar4 = uVar5;\n        return 0;\n      }\n      puVar8 = puVar3 + 2;\n      param_2 = puVar3;\n    }\n    *puVar6 = param_3;\n    local_30 = 0;\n    puVar3 = (undefined4 *)param_3[1];\n    puVar6 = param_3 + 1;\n    if (puVar3 == (undefined4 *)0x0) {\n      param_3[1] = param_2;\n      goto LAB_00041e8c;\n    }\n    puVar7 = puVar3 + 2;\n    param_3 = puVar3;\n  } while( true );\n}" ({ "{") (declaration "undefined *puVar1;" (type_identifier "undefined") (pointer_declarator "*puVar1" (* "*") (identifier "puVar1")) (; ";")) (declaration "int iVar2;" (primitive_type "int") (identifier "iVar2") (; ";")) (declaration "undefined4 *puVar3;" (type_identifier "undefined4") (pointer_declarator "*puVar3" (* "*") (identifier "puVar3")) (; ";")) (declaration "undefined4 *puVar4;" (type_identifier "undefined4") (pointer_declarator "*puVar4" (* "*") (identifier "puVar4")) (; ";")) (declaration "undefined4 uVar5;" (type_identifier "undefined4") (identifier "uVar5") (; ";")) (declaration "undefined4 *puVar6;" (type_identifier "undefined4") (pointer_declarator "*puVar6" (* "*") (identifier "puVar6")) (; ";")) (declaration "undefined4 *puVar7;" (type_identifier "undefined4") (pointer_declarator "*puVar7" (* "*") (identifier "puVar7")) (; ";")) (declaration "undefined4 *puVar8;" (type_identifier "undefined4") (pointer_declarator "*puVar8" (* "*") (identifier "puVar8")) (; ";")) (declaration "undefined4 local_34;" (type_identifier "undefined4") (identifier "local_34") (; ";")) (declaration "undefined4 local_30;" (type_identifier "undefined4") (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 "puVar8 = param_2 + 2;" (assignment_expression "puVar8 = param_2 + 2" (identifier "puVar8") (= "=") (binary_expression "param_2 + 2" (identifier "param_2") (+ "+") (number_literal "2"))) (; ";")) (expression_statement "puVar7 = param_3 + 2;" (assignment_expression "puVar7 = param_3 + 2" (identifier "puVar7") (= "=") (binary_expression "param_3 + 2" (identifier "param_3") (+ "+") (number_literal "2"))) (; ";")) (expression_statement "puVar6 = &local_34;" (assignment_expression "puVar6 = &local_34" (identifier "puVar6") (= "=") (pointer_expression "&local_34" (& "&") (identifier "local_34"))) (; ";")) (expression_statement "local_34 = 0;" (assignment_expression "local_34 = 0" (identifier "local_34") (= "=") (number_literal "0")) (; ";")) (expression_statement "local_30 = 0;" (assignment_expression "local_30 = 0" (identifier "local_30") (= "=") (number_literal "0")) (; ";")) (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")))) (; ";")) (do_statement "do {\n    while( true ) {\n      puVar4 = &local_30;\n      iVar2 = (**(code **)(param_1 + 0x20))(param_1,&local_30,puVar8,*param_2,puVar7,*param_3);\n      if (0 < iVar2) break;\n      *puVar6 = param_2;\n      puVar3 = (undefined4 *)param_2[1];\n      puVar6 = param_2 + 1;\n      if (puVar3 == (undefined4 *)0x0) {\n        param_2[1] = param_3;\nLAB_00041e8c:\n        if (local_2c == *(int *)puVar1) {\n          return local_34;\n        }\n        (*(code *)PTR___stack_chk_fail_00190df8)();\n        uVar5 = *(undefined4 *)(local_2c + 0x18);\n        puVar4[1] = *(undefined4 *)(local_2c + 0x1c);\n        *puVar4 = uVar5;\n        return 0;\n      }\n      puVar8 = puVar3 + 2;\n      param_2 = puVar3;\n    }\n    *puVar6 = param_3;\n    local_30 = 0;\n    puVar3 = (undefined4 *)param_3[1];\n    puVar6 = param_3 + 1;\n    if (puVar3 == (undefined4 *)0x0) {\n      param_3[1] = param_2;\n      goto LAB_00041e8c;\n    }\n    puVar7 = puVar3 + 2;\n    param_3 = puVar3;\n  } while( true );" (do "do") (compound_statement "{\n    while( true ) {\n      puVar4 = &local_30;\n      iVar2 = (**(code **)(param_1 + 0x20))(param_1,&local_30,puVar8,*param_2,puVar7,*param_3);\n      if (0 < iVar2) break;\n      *puVar6 = param_2;\n      puVar3 = (undefined4 *)param_2[1];\n      puVar6 = param_2 + 1;\n      if (puVar3 == (undefined4 *)0x0) {\n        param_2[1] = param_3;\nLAB_00041e8c:\n        if (local_2c == *(int *)puVar1) {\n          return local_34;\n        }\n        (*(code *)PTR___stack_chk_fail_00190df8)();\n        uVar5 = *(undefined4 *)(local_2c + 0x18);\n        puVar4[1] = *(undefined4 *)(local_2c + 0x1c);\n        *puVar4 = uVar5;\n        return 0;\n      }\n      puVar8 = puVar3 + 2;\n      param_2 = puVar3;\n    }\n    *puVar6 = param_3;\n    local_30 = 0;\n    puVar3 = (undefined4 *)param_3[1];\n    puVar6 = param_3 + 1;\n    if (puVar3 == (undefined4 *)0x0) {\n      param_3[1] = param_2;\n      goto LAB_00041e8c;\n    }\n    puVar7 = puVar3 + 2;\n    param_3 = puVar3;\n  }" ({ "{") (while_statement "while( true ) {\n      puVar4 = &local_30;\n      iVar2 = (**(code **)(param_1 + 0x20))(param_1,&local_30,puVar8,*param_2,puVar7,*param_3);\n      if (0 < iVar2) break;\n      *puVar6 = param_2;\n      puVar3 = (undefined4 *)param_2[1];\n      puVar6 = param_2 + 1;\n      if (puVar3 == (undefined4 *)0x0) {\n        param_2[1] = param_3;\nLAB_00041e8c:\n        if (local_2c == *(int *)puVar1) {\n          return local_34;\n        }\n        (*(code *)PTR___stack_chk_fail_00190df8)();\n        uVar5 = *(undefined4 *)(local_2c + 0x18);\n        puVar4[1] = *(undefined4 *)(local_2c + 0x1c);\n        *puVar4 = uVar5;\n        return 0;\n      }\n      puVar8 = puVar3 + 2;\n      param_2 = puVar3;\n    }" (while "while") (parenthesized_expression "( true )" (( "(") (true "true") () ")")) (compound_statement "{\n      puVar4 = &local_30;\n      iVar2 = (**(code **)(param_1 + 0x20))(param_1,&local_30,puVar8,*param_2,puVar7,*param_3);\n      if (0 < iVar2) break;\n      *puVar6 = param_2;\n      puVar3 = (undefined4 *)param_2[1];\n      puVar6 = param_2 + 1;\n      if (puVar3 == (undefined4 *)0x0) {\n        param_2[1] = param_3;\nLAB_00041e8c:\n        if (local_2c == *(int *)puVar1) {\n          return local_34;\n        }\n        (*(code *)PTR___stack_chk_fail_00190df8)();\n        uVar5 = *(undefined4 *)(local_2c + 0x18);\n        puVar4[1] = *(undefined4 *)(local_2c + 0x1c);\n        *puVar4 = uVar5;\n        return 0;\n      }\n      puVar8 = puVar3 + 2;\n      param_2 = puVar3;\n    }" ({ "{") (expression_statement "puVar4 = &local_30;" (assignment_expression "puVar4 = &local_30" (identifier "puVar4") (= "=") (pointer_expression "&local_30" (& "&") (identifier "local_30"))) (; ";")) (expression_statement "iVar2 = (**(code **)(param_1 + 0x20))(param_1,&local_30,puVar8,*param_2,puVar7,*param_3);" (assignment_expression "iVar2 = (**(code **)(param_1 + 0x20))(param_1,&local_30,puVar8,*param_2,puVar7,*param_3)" (identifier "iVar2") (= "=") (call_expression "(**(code **)(param_1 + 0x20))(param_1,&local_30,puVar8,*param_2,puVar7,*param_3)" (parenthesized_expression "(**(code **)(param_1 + 0x20))" (( "(") (pointer_expression "**(code **)(param_1 + 0x20)" (* "*") (pointer_expression "*(code **)(param_1 + 0x20)" (* "*") (cast_expression "(code **)(param_1 + 0x20)" (( "(") (type_descriptor "code **" (type_identifier "code") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (parenthesized_expression "(param_1 + 0x20)" (( "(") (binary_expression "param_1 + 0x20" (identifier "param_1") (+ "+") (number_literal "0x20")) () ")"))))) () ")")) (argument_list "(param_1,&local_30,puVar8,*param_2,puVar7,*param_3)" (( "(") (identifier "param_1") (, ",") (pointer_expression "&local_30" (& "&") (identifier "local_30")) (, ",") (identifier "puVar8") (, ",") (pointer_expression "*param_2" (* "*") (identifier "param_2")) (, ",") (identifier "puVar7") (, ",") (pointer_expression "*param_3" (* "*") (identifier "param_3")) () ")")))) (; ";")) (if_statement "if (0 < iVar2) break;" (if "if") (parenthesized_expression "(0 < iVar2)" (( "(") (binary_expression "0 < iVar2" (number_literal "0") (< "<") (identifier "iVar2")) () ")")) (break_statement "break;" (break "break") (; ";"))) (expression_statement "*puVar6 = param_2;" (assignment_expression "*puVar6 = param_2" (pointer_expression "*puVar6" (* "*") (identifier "puVar6")) (= "=") (identifier "param_2")) (; ";")) (expression_statement "puVar3 = (undefined4 *)param_2[1];" (assignment_expression "puVar3 = (undefined4 *)param_2[1]" (identifier "puVar3") (= "=") (cast_expression "(undefined4 *)param_2[1]" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (subscript_expression "param_2[1]" (identifier "param_2") ([ "[") (number_literal "1") (] "]")))) (; ";")) (expression_statement "puVar6 = param_2 + 1;" (assignment_expression "puVar6 = param_2 + 1" (identifier "puVar6") (= "=") (binary_expression "param_2 + 1" (identifier "param_2") (+ "+") (number_literal "1"))) (; ";")) (if_statement "if (puVar3 == (undefined4 *)0x0) {\n        param_2[1] = param_3;\nLAB_00041e8c:\n        if (local_2c == *(int *)puVar1) {\n          return local_34;\n        }\n        (*(code *)PTR___stack_chk_fail_00190df8)();\n        uVar5 = *(undefined4 *)(local_2c + 0x18);\n        puVar4[1] = *(undefined4 *)(local_2c + 0x1c);\n        *puVar4 = uVar5;\n        return 0;\n      }" (if "if") (parenthesized_expression "(puVar3 == (undefined4 *)0x0)" (( "(") (binary_expression "puVar3 == (undefined4 *)0x0" (identifier "puVar3") (== "==") (cast_expression "(undefined4 *)0x0" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (number_literal "0x0"))) () ")")) (compound_statement "{\n        param_2[1] = param_3;\nLAB_00041e8c:\n        if (local_2c == *(int *)puVar1) {\n          return local_34;\n        }\n        (*(code *)PTR___stack_chk_fail_00190df8)();\n        uVar5 = *(undefined4 *)(local_2c + 0x18);\n        puVar4[1] = *(undefined4 *)(local_2c + 0x1c);\n        *puVar4 = uVar5;\n        return 0;\n      }" ({ "{") (expression_statement "param_2[1] = param_3;" (assignment_expression "param_2[1] = param_3" (subscript_expression "param_2[1]" (identifier "param_2") ([ "[") (number_literal "1") (] "]")) (= "=") (identifier "param_3")) (; ";")) (labeled_statement "LAB_00041e8c:\n        if (local_2c == *(int *)puVar1) {\n          return local_34;\n        }" (statement_identifier "LAB_00041e8c") (: ":") (if_statement "if (local_2c == *(int *)puVar1) {\n          return local_34;\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          return local_34;\n        }" ({ "{") (return_statement "return local_34;" (return "return") (identifier "local_34") (; ";")) (} "}")))) (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 "()" (( "(") () ")"))) (; ";")) (expression_statement "uVar5 = *(undefined4 *)(local_2c + 0x18);" (assignment_expression "uVar5 = *(undefined4 *)(local_2c + 0x18)" (identifier "uVar5") (= "=") (pointer_expression "*(undefined4 *)(local_2c + 0x18)" (* "*") (cast_expression "(undefined4 *)(local_2c + 0x18)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(local_2c + 0x18)" (( "(") (binary_expression "local_2c + 0x18" (identifier "local_2c") (+ "+") (number_literal "0x18")) () ")"))))) (; ";")) (expression_statement "puVar4[1] = *(undefined4 *)(local_2c + 0x1c);" (assignment_expression "puVar4[1] = *(undefined4 *)(local_2c + 0x1c)" (subscript_expression "puVar4[1]" (identifier "puVar4") ([ "[") (number_literal "1") (] "]")) (= "=") (pointer_expression "*(undefined4 *)(local_2c + 0x1c)" (* "*") (cast_expression "(undefined4 *)(local_2c + 0x1c)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(local_2c + 0x1c)" (( "(") (binary_expression "local_2c + 0x1c" (identifier "local_2c") (+ "+") (number_literal "0x1c")) () ")"))))) (; ";")) (expression_statement "*puVar4 = uVar5;" (assignment_expression "*puVar4 = uVar5" (pointer_expression "*puVar4" (* "*") (identifier "puVar4")) (= "=") (identifier "uVar5")) (; ";")) (return_statement "return 0;" (return "return") (number_literal "0") (; ";")) (} "}"))) (expression_statement "puVar8 = puVar3 + 2;" (assignment_expression "puVar8 = puVar3 + 2" (identifier "puVar8") (= "=") (binary_expression "puVar3 + 2" (identifier "puVar3") (+ "+") (number_literal "2"))) (; ";")) (expression_statement "param_2 = puVar3;" (assignment_expression "param_2 = puVar3" (identifier "param_2") (= "=") (identifier "puVar3")) (; ";")) (} "}"))) (expression_statement "*puVar6 = param_3;" (assignment_expression "*puVar6 = param_3" (pointer_expression "*puVar6" (* "*") (identifier "puVar6")) (= "=") (identifier "param_3")) (; ";")) (expression_statement "local_30 = 0;" (assignment_expression "local_30 = 0" (identifier "local_30") (= "=") (number_literal "0")) (; ";")) (expression_statement "puVar3 = (undefined4 *)param_3[1];" (assignment_expression "puVar3 = (undefined4 *)param_3[1]" (identifier "puVar3") (= "=") (cast_expression "(undefined4 *)param_3[1]" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (subscript_expression "param_3[1]" (identifier "param_3") ([ "[") (number_literal "1") (] "]")))) (; ";")) (expression_statement "puVar6 = param_3 + 1;" (assignment_expression "puVar6 = param_3 + 1" (identifier "puVar6") (= "=") (binary_expression "param_3 + 1" (identifier "param_3") (+ "+") (number_literal "1"))) (; ";")) (if_statement "if (puVar3 == (undefined4 *)0x0) {\n      param_3[1] = param_2;\n      goto LAB_00041e8c;\n    }" (if "if") (parenthesized_expression "(puVar3 == (undefined4 *)0x0)" (( "(") (binary_expression "puVar3 == (undefined4 *)0x0" (identifier "puVar3") (== "==") (cast_expression "(undefined4 *)0x0" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (number_literal "0x0"))) () ")")) (compound_statement "{\n      param_3[1] = param_2;\n      goto LAB_00041e8c;\n    }" ({ "{") (expression_statement "param_3[1] = param_2;" (assignment_expression "param_3[1] = param_2" (subscript_expression "param_3[1]" (identifier "param_3") ([ "[") (number_literal "1") (] "]")) (= "=") (identifier "param_2")) (; ";")) (goto_statement "goto LAB_00041e8c;" (goto "goto") (statement_identifier "LAB_00041e8c") (; ";")) (} "}"))) (expression_statement "puVar7 = puVar3 + 2;" (assignment_expression "puVar7 = puVar3 + 2" (identifier "puVar7") (= "=") (binary_expression "puVar3 + 2" (identifier "puVar3") (+ "+") (number_literal "2"))) (; ";")) (expression_statement "param_3 = puVar3;" (assignment_expression "param_3 = puVar3" (identifier "param_3") (= "=") (identifier "puVar3")) (; ";")) (} "}")) (while "while") (parenthesized_expression "( true )" (( "(") (true "true") () ")")) (; ";")) (} "}")))

type_1 * function_1(type_2 *pTask,type_1 *var_1,type_1 *var_2)

{
  type_3 *puVar1;
  int var_3;
  type_1 *var_4;
  type_1 *pSVar4;
  type_4 *paVar5;
  type_1 *pSVar6;
  type_1 *pFinal;
  int bCached;
  int var_5;
  
  puVar1 = PTR___stack_chk_guard_00190e24;
  pSVar6 = var_1 + 1;
  pSVar4 = var_2 + 1;
  paVar5 = (type_4 *)&pFinal;
  pFinal = (type_1 *)0x0;
  bCached = 0;
  var_5 = *(int *)PTR___stack_chk_guard_00190e24;
  do {
    while( true ) {
      var_3 = (*pTask->xCompare)(pTask,&bCached,pSVar6,var_1->nVal,pSVar4,var_2->nVal);
      if (0 < var_3) break;
      paVar5->pNext = var_1;
      var_4 = (var_1->u).pNext;
      paVar5 = &var_1->u;
      if (var_4 == (type_1 *)0x0) {
        (var_1->u).pNext = var_2;
LAB_00041e8c:
        if (var_5 == *(int *)puVar1) {
          return pFinal;
        }
        pSVar4 = (type_1 *)(*(type_5 *)PTR___stack_chk_fail_00190df8)();
        return pSVar4;
      }
      pSVar6 = var_4 + 1;
      var_1 = var_4;
    }
    paVar5->pNext = var_2;
    bCached = 0;
    var_4 = (var_2->u).pNext;
    paVar5 = &var_2->u;
    if (var_4 == (type_1 *)0x0) {
      (var_2->u).pNext = var_1;
      goto LAB_00041e8c;
    }
    pSVar4 = var_4 + 1;
    var_2 = var_4;
  } while( true );
}


(translation_unit (function_definition type: (type_identifier) declarator: (function_declarator declarator: (identifier) parameters: (parameter_list (parameter_declaration type: (primitive_type) declarator: (identifier)) (parameter_declaration type: (type_identifier) declarator: (pointer_declarator declarator: (identifier))) (parameter_declaration type: (type_identifier) declarator: (pointer_declarator declarator: (identifier))))) body: (compound_statement (declaration type: (type_identifier) declarator: (pointer_declarator declarator: (identifier))) (declaration type: (primitive_type) declarator: (identifier)) (declaration type: (type_identifier) declarator: (pointer_declarator declarator: (identifier))) (declaration type: (type_identifier) declarator: (pointer_declarator declarator: (identifier))) (declaration type: (type_identifier) declarator: (identifier)) (declaration type: (type_identifier) declarator: (pointer_declarator declarator: (identifier))) (declaration type: (type_identifier) declarator: (pointer_declarator declarator: (identifier))) (declaration type: (type_identifier) declarator: (pointer_declarator declarator: (identifier))) (declaration type: (type_identifier) declarator: (identifier)) (declaration type: (type_identifier) declarator: (identifier)) (declaration type: (primitive_type) declarator: (identifier)) (expression_statement (assignment_expression left: (identifier) right: (identifier))) (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (identifier) right: (number_literal)))) (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (identifier) right: (number_literal)))) (expression_statement (assignment_expression left: (identifier) right: (pointer_expression argument: (identifier)))) (expression_statement (assignment_expression left: (identifier) right: (number_literal))) (expression_statement (assignment_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: (identifier))))) (do_statement body: (compound_statement (while_statement condition: (parenthesized_expression (true)) body: (compound_statement (expression_statement (assignment_expression left: (identifier) right: (pointer_expression argument: (identifier)))) (expression_statement (assignment_expression left: (identifier) right: (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 (identifier) (pointer_expression argument: (identifier)) (identifier) (pointer_expression argument: (identifier)) (identifier) (pointer_expression argument: (identifier)))))) (if_statement condition: (parenthesized_expression (binary_expression left: (number_literal) right: (identifier))) consequence: (break_statement)) (expression_statement (assignment_expression left: (pointer_expression argument: (identifier)) right: (identifier))) (expression_statement (assignment_expression left: (identifier) right: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (subscript_expression argument: (identifier) index: (number_literal))))) (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (identifier) right: (number_literal)))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (number_literal)))) consequence: (compound_statement (expression_statement (assignment_expression left: (subscript_expression argument: (identifier) index: (number_literal)) right: (identifier))) (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 (return_statement (identifier))))) (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))) (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 (assignment_expression left: (subscript_expression argument: (identifier) index: (number_literal)) 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 (assignment_expression left: (pointer_expression argument: (identifier)) right: (identifier))) (return_statement (number_literal)))) (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (identifier) right: (number_literal)))) (expression_statement (assignment_expression left: (identifier) right: (identifier))))) (expression_statement (assignment_expression left: (pointer_expression argument: (identifier)) right: (identifier))) (expression_statement (assignment_expression left: (identifier) right: (number_literal))) (expression_statement (assignment_expression left: (identifier) right: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (subscript_expression argument: (identifier) index: (number_literal))))) (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (identifier) right: (number_literal)))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (number_literal)))) consequence: (compound_statement (expression_statement (assignment_expression left: (subscript_expression argument: (identifier) index: (number_literal)) right: (identifier))) (goto_statement label: (statement_identifier)))) (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (identifier) right: (number_literal)))) (expression_statement (assignment_expression left: (identifier) right: (identifier)))) condition: (parenthesized_expression (true))))))

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

{
  undefined *puVar1;
  int iVar2;
  undefined4 *puVar3;
  undefined4 *puVar4;
  undefined4 uVar5;
  undefined4 *puVar6;
  undefined4 *puVar7;
  undefined4 *puVar8;
  undefined4 local_34;
  undefined4 local_30;
  int local_2c;
  
  puVar1 = PTR___stack_chk_guard_00190e24;
  puVar8 = param_2 + 2;
  puVar7 = param_3 + 2;
  puVar6 = &local_34;
  local_34 = 0;
  local_30 = 0;
  local_2c = *(int *)PTR___stack_chk_guard_00190e24;
  do {
    while( true ) {
      puVar4 = &local_30;
      iVar2 = (**(code **)(param_1 + 0x20))(param_1,&local_30,puVar8,*param_2,puVar7,*param_3);
      if (0 < iVar2) break;
      *puVar6 = param_2;
      puVar3 = (undefined4 *)param_2[1];
      puVar6 = param_2 + 1;
      if (puVar3 == (undefined4 *)0x0) {
        param_2[1] = param_3;
LAB_00041e8c:
        if (local_2c == *(int *)puVar1) {
          return local_34;
        }
        (*(code *)PTR___stack_chk_fail_00190df8)();
        uVar5 = *(undefined4 *)(local_2c + 0x18);
        puVar4[1] = *(undefined4 *)(local_2c + 0x1c);
        *puVar4 = uVar5;
        return 0;
      }
      puVar8 = puVar3 + 2;
      param_2 = puVar3;
    }
    *puVar6 = param_3;
    local_30 = 0;
    puVar3 = (undefined4 *)param_3[1];
    puVar6 = param_3 + 1;
    if (puVar3 == (undefined4 *)0x0) {
      param_3[1] = param_2;
      goto LAB_00041e8c;
    }
    puVar7 = puVar3 + 2;
    param_3 = puVar3;
  } while( true );
}

