
int rl_transpose_words(int count,int key)

{
  undefined *puVar1;
  char *string;
  char *string_00;
  int from;
  int to;
  int from_00;
  int to_00;
  undefined4 uVar2;
  
  puVar1 = PTR_rl_point_001575f0;
  if (count != 0) {
    uVar2 = *(undefined4 *)PTR_rl_point_001575f0;
    rl_forward_word(count,key);
    to_00 = *(int *)puVar1;
    rl_backward_word(1,key);
    from_00 = *(int *)puVar1;
    rl_backward_word(count,key);
    from = *(int *)puVar1;
    rl_forward_word(1,key);
    to = *(int *)puVar1;
    if ((from_00 == from) || (from_00 < to)) {
      rl_ding();
      *(undefined4 *)PTR_rl_point_001575f0 = uVar2;
      count = 1;
    }
    else {
      string = rl_copy_text(from,to);
      string_00 = rl_copy_text(from_00,to_00);
      rl_begin_undo_group();
      puVar1 = PTR_rl_point_001575f0;
      *(int *)PTR_rl_point_001575f0 = from_00;
      rl_delete_text(from_00,to_00);
      rl_insert_text(string);
      *(int *)puVar1 = from;
      rl_delete_text(from,to);
      rl_insert_text(string_00);
      *(int *)puVar1 = to_00;
      rl_end_undo_group();
      (*(code *)PTR_xfree_00156bb4)(string);
      (*(code *)PTR_xfree_00156bb4)(string_00);
      count = 0;
    }
  }
  return count;
}



int rl_transpose_words(int param_1,undefined4 param_2)

{
  undefined *puVar1;
  undefined4 uVar2;
  int iVar3;
  int iVar4;
  int iVar5;
  undefined4 uVar6;
  undefined4 uVar7;
  
  puVar1 = PTR_rl_point_001575f0;
  if (param_1 != 0) {
    uVar7 = *(undefined4 *)PTR_rl_point_001575f0;
    rl_forward_word();
    uVar6 = *(undefined4 *)puVar1;
    rl_backward_word(1,param_2);
    iVar5 = *(int *)puVar1;
    rl_backward_word(param_1,param_2);
    iVar3 = *(int *)puVar1;
    rl_forward_word(1,param_2);
    iVar4 = *(int *)puVar1;
    if ((iVar5 == iVar3) || (iVar5 < iVar4)) {
      rl_ding();
      *(undefined4 *)PTR_rl_point_001575f0 = uVar7;
      param_1 = 1;
    }
    else {
      uVar7 = rl_copy_text(iVar3,iVar4);
      uVar2 = rl_copy_text(iVar5,uVar6);
      rl_begin_undo_group();
      puVar1 = PTR_rl_point_001575f0;
      *(int *)PTR_rl_point_001575f0 = iVar5;
      rl_delete_text(iVar5,uVar6);
      rl_insert_text(uVar7);
      *(int *)puVar1 = iVar3;
      rl_delete_text(iVar3,iVar4);
      rl_insert_text(uVar2);
      *(undefined4 *)puVar1 = uVar6;
      rl_end_undo_group();
      (*(code *)PTR_xfree_00156bb4)(uVar7);
      (*(code *)PTR_xfree_00156bb4)(uVar2);
      param_1 = 0;
    }
  }
  return param_1;
}


lui gp,0x4
addiu gp,gp,0x560c
addu gp,gp,t9
addiu sp,sp,-0x40
sw ra,0x3c(sp)
sw s7,0x38(sp)
sw s6,0x34(sp)
sw s5,0x30(sp)
sw s4,0x2c(sp)
sw s3,0x28(sp)
sw s2,0x24(sp)
sw s1,0x20(sp)
sw s0,0x1c(sp)
sw gp,0x10(sp)
bne a0,zero,0x00118fa4
_or s0,a0,zero
or v0,s0,zero
lw ra,0x3c(sp)
lw s7,0x38(sp)
lw s6,0x34(sp)
lw s5,0x30(sp)
lw s4,0x2c(sp)
lw s3,0x28(sp)
lw s2,0x24(sp)
lw s1,0x20(sp)
lw s0,0x1c(sp)
jr ra
_addiu sp,sp,0x40
or s1,a1,zero
lw s2,-0x6f50(gp)
lw s7,0x0(s2)
lw s4,-0x6ec4(gp)
or t9,s4,zero
bal 0x00116b20
_nop
lw gp,0x10(sp)
lw s6,0x0(s2)
or a1,s1,zero
li a0,0x1
lw s5,-0x68e0(gp)
or t9,s5,zero
bal 0x001168b8
_nop
lw gp,0x10(sp)
lw s3,0x0(s2)
or a1,s1,zero
or a0,s0,zero
or t9,s5,zero
bal 0x001168b8
_nop
lw gp,0x10(sp)
lw s0,0x0(s2)
or a1,s1,zero
li a0,0x1
or t9,s4,zero
bal 0x00116b20
_nop
lw gp,0x10(sp)
beq s3,s0,0x00119030
_lw s1,0x0(s2)
slt v0,s3,s1
beq v0,zero,0x00119050
_lw t9,-0x6548(gp)
lw t9,-0x6e80(gp)
bal 0x00115b18
_nop
lw gp,0x10(sp)
lw v0,-0x6f50(gp)
sw s7,0x0(v0)
b 0x00118f74
_li s0,0x1
or a1,s1,zero
or a0,s0,zero
bal 0x0010fd38
_nop
lw gp,0x10(sp)
or s5,v0,zero
or a1,s6,zero
or a0,s3,zero
lw t9,-0x6548(gp)
bal 0x0010fd38
_nop
lw gp,0x10(sp)
or s4,v0,zero
lw t9,-0x674c(gp)
bal 0x001123e8
_nop
lw gp,0x10(sp)
lw s2,-0x6f50(gp)
sw s3,0x0(s2)
or a1,s6,zero
or a0,s3,zero
lw s7,-0x6ed0(gp)
or t9,s7,zero
bal 0x00115f88
_nop
lw gp,0x10(sp)
or a0,s5,zero
lw s3,-0x6ec8(gp)
or t9,s3,zero
bal 0x00115db0
_nop
lw gp,0x10(sp)
sw s0,0x0(s2)
or a1,s1,zero
or a0,s0,zero
or t9,s7,zero
bal 0x00115f88
_nop
lw gp,0x10(sp)
or a0,s4,zero
or t9,s3,zero
bal 0x00115db0
_nop
lw gp,0x10(sp)
sw s6,0x0(s2)
lw t9,-0x6748(gp)
bal 0x00112440
_nop
lw gp,0x10(sp)
or a0,s5,zero
lw t9,-0x798c(gp)
jalr t9
_nop
lw gp,0x10(sp)
or a0,s4,zero
lw t9,-0x798c(gp)
jalr t9
_nop
lw gp,0x10(sp)
b 0x00118f74
_or s0,zero,zero
(translation_unit "int rl_transpose_words(int param_1,undefined4 param_2)\n\n{\n  undefined *puVar1;\n  undefined4 uVar2;\n  int iVar3;\n  int iVar4;\n  int iVar5;\n  undefined4 uVar6;\n  undefined4 uVar7;\n  \n  puVar1 = PTR_rl_point_001575f0;\n  if (param_1 != 0) {\n    uVar7 = *(undefined4 *)PTR_rl_point_001575f0;\n    rl_forward_word();\n    uVar6 = *(undefined4 *)puVar1;\n    rl_backward_word(1,param_2);\n    iVar5 = *(int *)puVar1;\n    rl_backward_word(param_1,param_2);\n    iVar3 = *(int *)puVar1;\n    rl_forward_word(1,param_2);\n    iVar4 = *(int *)puVar1;\n    if ((iVar5 == iVar3) || (iVar5 < iVar4)) {\n      rl_ding();\n      *(undefined4 *)PTR_rl_point_001575f0 = uVar7;\n      param_1 = 1;\n    }\n    else {\n      uVar7 = rl_copy_text(iVar3,iVar4);\n      uVar2 = rl_copy_text(iVar5,uVar6);\n      rl_begin_undo_group();\n      puVar1 = PTR_rl_point_001575f0;\n      *(int *)PTR_rl_point_001575f0 = iVar5;\n      rl_delete_text(iVar5,uVar6);\n      rl_insert_text(uVar7);\n      *(int *)puVar1 = iVar3;\n      rl_delete_text(iVar3,iVar4);\n      rl_insert_text(uVar2);\n      *(undefined4 *)puVar1 = uVar6;\n      rl_end_undo_group();\n      (*(code *)PTR_xfree_00156bb4)(uVar7);\n      (*(code *)PTR_xfree_00156bb4)(uVar2);\n      param_1 = 0;\n    }\n  }\n  return param_1;\n}\n\n" (function_definition "int rl_transpose_words(int param_1,undefined4 param_2)\n\n{\n  undefined *puVar1;\n  undefined4 uVar2;\n  int iVar3;\n  int iVar4;\n  int iVar5;\n  undefined4 uVar6;\n  undefined4 uVar7;\n  \n  puVar1 = PTR_rl_point_001575f0;\n  if (param_1 != 0) {\n    uVar7 = *(undefined4 *)PTR_rl_point_001575f0;\n    rl_forward_word();\n    uVar6 = *(undefined4 *)puVar1;\n    rl_backward_word(1,param_2);\n    iVar5 = *(int *)puVar1;\n    rl_backward_word(param_1,param_2);\n    iVar3 = *(int *)puVar1;\n    rl_forward_word(1,param_2);\n    iVar4 = *(int *)puVar1;\n    if ((iVar5 == iVar3) || (iVar5 < iVar4)) {\n      rl_ding();\n      *(undefined4 *)PTR_rl_point_001575f0 = uVar7;\n      param_1 = 1;\n    }\n    else {\n      uVar7 = rl_copy_text(iVar3,iVar4);\n      uVar2 = rl_copy_text(iVar5,uVar6);\n      rl_begin_undo_group();\n      puVar1 = PTR_rl_point_001575f0;\n      *(int *)PTR_rl_point_001575f0 = iVar5;\n      rl_delete_text(iVar5,uVar6);\n      rl_insert_text(uVar7);\n      *(int *)puVar1 = iVar3;\n      rl_delete_text(iVar3,iVar4);\n      rl_insert_text(uVar2);\n      *(undefined4 *)puVar1 = uVar6;\n      rl_end_undo_group();\n      (*(code *)PTR_xfree_00156bb4)(uVar7);\n      (*(code *)PTR_xfree_00156bb4)(uVar2);\n      param_1 = 0;\n    }\n  }\n  return param_1;\n}" primitive_type (function_declarator "rl_transpose_words(int param_1,undefined4 param_2)" identifier (parameter_list "(int param_1,undefined4 param_2)" ( (parameter_declaration "int param_1" primitive_type identifier) , (parameter_declaration "undefined4 param_2" type_identifier identifier) ))) (compound_statement "{\n  undefined *puVar1;\n  undefined4 uVar2;\n  int iVar3;\n  int iVar4;\n  int iVar5;\n  undefined4 uVar6;\n  undefined4 uVar7;\n  \n  puVar1 = PTR_rl_point_001575f0;\n  if (param_1 != 0) {\n    uVar7 = *(undefined4 *)PTR_rl_point_001575f0;\n    rl_forward_word();\n    uVar6 = *(undefined4 *)puVar1;\n    rl_backward_word(1,param_2);\n    iVar5 = *(int *)puVar1;\n    rl_backward_word(param_1,param_2);\n    iVar3 = *(int *)puVar1;\n    rl_forward_word(1,param_2);\n    iVar4 = *(int *)puVar1;\n    if ((iVar5 == iVar3) || (iVar5 < iVar4)) {\n      rl_ding();\n      *(undefined4 *)PTR_rl_point_001575f0 = uVar7;\n      param_1 = 1;\n    }\n    else {\n      uVar7 = rl_copy_text(iVar3,iVar4);\n      uVar2 = rl_copy_text(iVar5,uVar6);\n      rl_begin_undo_group();\n      puVar1 = PTR_rl_point_001575f0;\n      *(int *)PTR_rl_point_001575f0 = iVar5;\n      rl_delete_text(iVar5,uVar6);\n      rl_insert_text(uVar7);\n      *(int *)puVar1 = iVar3;\n      rl_delete_text(iVar3,iVar4);\n      rl_insert_text(uVar2);\n      *(undefined4 *)puVar1 = uVar6;\n      rl_end_undo_group();\n      (*(code *)PTR_xfree_00156bb4)(uVar7);\n      (*(code *)PTR_xfree_00156bb4)(uVar2);\n      param_1 = 0;\n    }\n  }\n  return param_1;\n}" { (declaration "undefined *puVar1;" type_identifier (pointer_declarator "*puVar1" * identifier) ;) (declaration "undefined4 uVar2;" type_identifier identifier ;) (declaration "int iVar3;" primitive_type identifier ;) (declaration "int iVar4;" primitive_type identifier ;) (declaration "int iVar5;" primitive_type identifier ;) (declaration "undefined4 uVar6;" type_identifier identifier ;) (declaration "undefined4 uVar7;" type_identifier identifier ;) (expression_statement "puVar1 = PTR_rl_point_001575f0;" (assignment_expression "puVar1 = PTR_rl_point_001575f0" identifier = identifier) ;) (if_statement "if (param_1 != 0) {\n    uVar7 = *(undefined4 *)PTR_rl_point_001575f0;\n    rl_forward_word();\n    uVar6 = *(undefined4 *)puVar1;\n    rl_backward_word(1,param_2);\n    iVar5 = *(int *)puVar1;\n    rl_backward_word(param_1,param_2);\n    iVar3 = *(int *)puVar1;\n    rl_forward_word(1,param_2);\n    iVar4 = *(int *)puVar1;\n    if ((iVar5 == iVar3) || (iVar5 < iVar4)) {\n      rl_ding();\n      *(undefined4 *)PTR_rl_point_001575f0 = uVar7;\n      param_1 = 1;\n    }\n    else {\n      uVar7 = rl_copy_text(iVar3,iVar4);\n      uVar2 = rl_copy_text(iVar5,uVar6);\n      rl_begin_undo_group();\n      puVar1 = PTR_rl_point_001575f0;\n      *(int *)PTR_rl_point_001575f0 = iVar5;\n      rl_delete_text(iVar5,uVar6);\n      rl_insert_text(uVar7);\n      *(int *)puVar1 = iVar3;\n      rl_delete_text(iVar3,iVar4);\n      rl_insert_text(uVar2);\n      *(undefined4 *)puVar1 = uVar6;\n      rl_end_undo_group();\n      (*(code *)PTR_xfree_00156bb4)(uVar7);\n      (*(code *)PTR_xfree_00156bb4)(uVar2);\n      param_1 = 0;\n    }\n  }" if (parenthesized_expression "(param_1 != 0)" ( (binary_expression "param_1 != 0" identifier != number_literal) )) (compound_statement "{\n    uVar7 = *(undefined4 *)PTR_rl_point_001575f0;\n    rl_forward_word();\n    uVar6 = *(undefined4 *)puVar1;\n    rl_backward_word(1,param_2);\n    iVar5 = *(int *)puVar1;\n    rl_backward_word(param_1,param_2);\n    iVar3 = *(int *)puVar1;\n    rl_forward_word(1,param_2);\n    iVar4 = *(int *)puVar1;\n    if ((iVar5 == iVar3) || (iVar5 < iVar4)) {\n      rl_ding();\n      *(undefined4 *)PTR_rl_point_001575f0 = uVar7;\n      param_1 = 1;\n    }\n    else {\n      uVar7 = rl_copy_text(iVar3,iVar4);\n      uVar2 = rl_copy_text(iVar5,uVar6);\n      rl_begin_undo_group();\n      puVar1 = PTR_rl_point_001575f0;\n      *(int *)PTR_rl_point_001575f0 = iVar5;\n      rl_delete_text(iVar5,uVar6);\n      rl_insert_text(uVar7);\n      *(int *)puVar1 = iVar3;\n      rl_delete_text(iVar3,iVar4);\n      rl_insert_text(uVar2);\n      *(undefined4 *)puVar1 = uVar6;\n      rl_end_undo_group();\n      (*(code *)PTR_xfree_00156bb4)(uVar7);\n      (*(code *)PTR_xfree_00156bb4)(uVar2);\n      param_1 = 0;\n    }\n  }" { (expression_statement "uVar7 = *(undefined4 *)PTR_rl_point_001575f0;" (assignment_expression "uVar7 = *(undefined4 *)PTR_rl_point_001575f0" identifier = (pointer_expression "*(undefined4 *)PTR_rl_point_001575f0" * (cast_expression "(undefined4 *)PTR_rl_point_001575f0" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier))) ;) (expression_statement "rl_forward_word();" (call_expression "rl_forward_word()" identifier (argument_list "()" ( ))) ;) (expression_statement "uVar6 = *(undefined4 *)puVar1;" (assignment_expression "uVar6 = *(undefined4 *)puVar1" identifier = (pointer_expression "*(undefined4 *)puVar1" * (cast_expression "(undefined4 *)puVar1" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier))) ;) (expression_statement "rl_backward_word(1,param_2);" (call_expression "rl_backward_word(1,param_2)" identifier (argument_list "(1,param_2)" ( number_literal , identifier ))) ;) (expression_statement "iVar5 = *(int *)puVar1;" (assignment_expression "iVar5 = *(int *)puVar1" identifier = (pointer_expression "*(int *)puVar1" * (cast_expression "(int *)puVar1" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) identifier))) ;) (expression_statement "rl_backward_word(param_1,param_2);" (call_expression "rl_backward_word(param_1,param_2)" identifier (argument_list "(param_1,param_2)" ( identifier , identifier ))) ;) (expression_statement "iVar3 = *(int *)puVar1;" (assignment_expression "iVar3 = *(int *)puVar1" identifier = (pointer_expression "*(int *)puVar1" * (cast_expression "(int *)puVar1" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) identifier))) ;) (expression_statement "rl_forward_word(1,param_2);" (call_expression "rl_forward_word(1,param_2)" identifier (argument_list "(1,param_2)" ( number_literal , identifier ))) ;) (expression_statement "iVar4 = *(int *)puVar1;" (assignment_expression "iVar4 = *(int *)puVar1" identifier = (pointer_expression "*(int *)puVar1" * (cast_expression "(int *)puVar1" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) identifier))) ;) (if_statement "if ((iVar5 == iVar3) || (iVar5 < iVar4)) {\n      rl_ding();\n      *(undefined4 *)PTR_rl_point_001575f0 = uVar7;\n      param_1 = 1;\n    }\n    else {\n      uVar7 = rl_copy_text(iVar3,iVar4);\n      uVar2 = rl_copy_text(iVar5,uVar6);\n      rl_begin_undo_group();\n      puVar1 = PTR_rl_point_001575f0;\n      *(int *)PTR_rl_point_001575f0 = iVar5;\n      rl_delete_text(iVar5,uVar6);\n      rl_insert_text(uVar7);\n      *(int *)puVar1 = iVar3;\n      rl_delete_text(iVar3,iVar4);\n      rl_insert_text(uVar2);\n      *(undefined4 *)puVar1 = uVar6;\n      rl_end_undo_group();\n      (*(code *)PTR_xfree_00156bb4)(uVar7);\n      (*(code *)PTR_xfree_00156bb4)(uVar2);\n      param_1 = 0;\n    }" if (parenthesized_expression "((iVar5 == iVar3) || (iVar5 < iVar4))" ( (binary_expression "(iVar5 == iVar3) || (iVar5 < iVar4)" (parenthesized_expression "(iVar5 == iVar3)" ( (binary_expression "iVar5 == iVar3" identifier == identifier) )) || (parenthesized_expression "(iVar5 < iVar4)" ( (binary_expression "iVar5 < iVar4" identifier < identifier) ))) )) (compound_statement "{\n      rl_ding();\n      *(undefined4 *)PTR_rl_point_001575f0 = uVar7;\n      param_1 = 1;\n    }" { (expression_statement "rl_ding();" (call_expression "rl_ding()" identifier (argument_list "()" ( ))) ;) (expression_statement "*(undefined4 *)PTR_rl_point_001575f0 = uVar7;" (assignment_expression "*(undefined4 *)PTR_rl_point_001575f0 = uVar7" (pointer_expression "*(undefined4 *)PTR_rl_point_001575f0" * (cast_expression "(undefined4 *)PTR_rl_point_001575f0" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) = identifier) ;) (expression_statement "param_1 = 1;" (assignment_expression "param_1 = 1" identifier = number_literal) ;) }) (else_clause "else {\n      uVar7 = rl_copy_text(iVar3,iVar4);\n      uVar2 = rl_copy_text(iVar5,uVar6);\n      rl_begin_undo_group();\n      puVar1 = PTR_rl_point_001575f0;\n      *(int *)PTR_rl_point_001575f0 = iVar5;\n      rl_delete_text(iVar5,uVar6);\n      rl_insert_text(uVar7);\n      *(int *)puVar1 = iVar3;\n      rl_delete_text(iVar3,iVar4);\n      rl_insert_text(uVar2);\n      *(undefined4 *)puVar1 = uVar6;\n      rl_end_undo_group();\n      (*(code *)PTR_xfree_00156bb4)(uVar7);\n      (*(code *)PTR_xfree_00156bb4)(uVar2);\n      param_1 = 0;\n    }" else (compound_statement "{\n      uVar7 = rl_copy_text(iVar3,iVar4);\n      uVar2 = rl_copy_text(iVar5,uVar6);\n      rl_begin_undo_group();\n      puVar1 = PTR_rl_point_001575f0;\n      *(int *)PTR_rl_point_001575f0 = iVar5;\n      rl_delete_text(iVar5,uVar6);\n      rl_insert_text(uVar7);\n      *(int *)puVar1 = iVar3;\n      rl_delete_text(iVar3,iVar4);\n      rl_insert_text(uVar2);\n      *(undefined4 *)puVar1 = uVar6;\n      rl_end_undo_group();\n      (*(code *)PTR_xfree_00156bb4)(uVar7);\n      (*(code *)PTR_xfree_00156bb4)(uVar2);\n      param_1 = 0;\n    }" { (expression_statement "uVar7 = rl_copy_text(iVar3,iVar4);" (assignment_expression "uVar7 = rl_copy_text(iVar3,iVar4)" identifier = (call_expression "rl_copy_text(iVar3,iVar4)" identifier (argument_list "(iVar3,iVar4)" ( identifier , identifier )))) ;) (expression_statement "uVar2 = rl_copy_text(iVar5,uVar6);" (assignment_expression "uVar2 = rl_copy_text(iVar5,uVar6)" identifier = (call_expression "rl_copy_text(iVar5,uVar6)" identifier (argument_list "(iVar5,uVar6)" ( identifier , identifier )))) ;) (expression_statement "rl_begin_undo_group();" (call_expression "rl_begin_undo_group()" identifier (argument_list "()" ( ))) ;) (expression_statement "puVar1 = PTR_rl_point_001575f0;" (assignment_expression "puVar1 = PTR_rl_point_001575f0" identifier = identifier) ;) (expression_statement "*(int *)PTR_rl_point_001575f0 = iVar5;" (assignment_expression "*(int *)PTR_rl_point_001575f0 = iVar5" (pointer_expression "*(int *)PTR_rl_point_001575f0" * (cast_expression "(int *)PTR_rl_point_001575f0" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) identifier)) = identifier) ;) (expression_statement "rl_delete_text(iVar5,uVar6);" (call_expression "rl_delete_text(iVar5,uVar6)" identifier (argument_list "(iVar5,uVar6)" ( identifier , identifier ))) ;) (expression_statement "rl_insert_text(uVar7);" (call_expression "rl_insert_text(uVar7)" identifier (argument_list "(uVar7)" ( identifier ))) ;) (expression_statement "*(int *)puVar1 = iVar3;" (assignment_expression "*(int *)puVar1 = iVar3" (pointer_expression "*(int *)puVar1" * (cast_expression "(int *)puVar1" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) identifier)) = identifier) ;) (expression_statement "rl_delete_text(iVar3,iVar4);" (call_expression "rl_delete_text(iVar3,iVar4)" identifier (argument_list "(iVar3,iVar4)" ( identifier , identifier ))) ;) (expression_statement "rl_insert_text(uVar2);" (call_expression "rl_insert_text(uVar2)" identifier (argument_list "(uVar2)" ( identifier ))) ;) (expression_statement "*(undefined4 *)puVar1 = uVar6;" (assignment_expression "*(undefined4 *)puVar1 = uVar6" (pointer_expression "*(undefined4 *)puVar1" * (cast_expression "(undefined4 *)puVar1" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) = identifier) ;) (expression_statement "rl_end_undo_group();" (call_expression "rl_end_undo_group()" identifier (argument_list "()" ( ))) ;) (expression_statement "(*(code *)PTR_xfree_00156bb4)(uVar7);" (call_expression "(*(code *)PTR_xfree_00156bb4)(uVar7)" (parenthesized_expression "(*(code *)PTR_xfree_00156bb4)" ( (pointer_expression "*(code *)PTR_xfree_00156bb4" * (cast_expression "(code *)PTR_xfree_00156bb4" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(uVar7)" ( identifier ))) ;) (expression_statement "(*(code *)PTR_xfree_00156bb4)(uVar2);" (call_expression "(*(code *)PTR_xfree_00156bb4)(uVar2)" (parenthesized_expression "(*(code *)PTR_xfree_00156bb4)" ( (pointer_expression "*(code *)PTR_xfree_00156bb4" * (cast_expression "(code *)PTR_xfree_00156bb4" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(uVar2)" ( identifier ))) ;) (expression_statement "param_1 = 0;" (assignment_expression "param_1 = 0" identifier = number_literal) ;) }))) })) (return_statement "return param_1;" return identifier ;) })))
(translation_unit "int rl_transpose_words(int count,int key)\n\n{\n  undefined *puVar1;\n  char *string;\n  char *string_00;\n  int from;\n  int to;\n  int from_00;\n  int to_00;\n  undefined4 uVar2;\n  \n  puVar1 = PTR_rl_point_001575f0;\n  if (count != 0) {\n    uVar2 = *(undefined4 *)PTR_rl_point_001575f0;\n    rl_forward_word(count,key);\n    to_00 = *(int *)puVar1;\n    rl_backward_word(1,key);\n    from_00 = *(int *)puVar1;\n    rl_backward_word(count,key);\n    from = *(int *)puVar1;\n    rl_forward_word(1,key);\n    to = *(int *)puVar1;\n    if ((from_00 == from) || (from_00 < to)) {\n      rl_ding();\n      *(undefined4 *)PTR_rl_point_001575f0 = uVar2;\n      count = 1;\n    }\n    else {\n      string = rl_copy_text(from,to);\n      string_00 = rl_copy_text(from_00,to_00);\n      rl_begin_undo_group();\n      puVar1 = PTR_rl_point_001575f0;\n      *(int *)PTR_rl_point_001575f0 = from_00;\n      rl_delete_text(from_00,to_00);\n      rl_insert_text(string);\n      *(int *)puVar1 = from;\n      rl_delete_text(from,to);\n      rl_insert_text(string_00);\n      *(int *)puVar1 = to_00;\n      rl_end_undo_group();\n      (*(code *)PTR_xfree_00156bb4)(string);\n      (*(code *)PTR_xfree_00156bb4)(string_00);\n      count = 0;\n    }\n  }\n  return count;\n}\n\n" (function_definition "int rl_transpose_words(int count,int key)\n\n{\n  undefined *puVar1;\n  char *string;\n  char *string_00;\n  int from;\n  int to;\n  int from_00;\n  int to_00;\n  undefined4 uVar2;\n  \n  puVar1 = PTR_rl_point_001575f0;\n  if (count != 0) {\n    uVar2 = *(undefined4 *)PTR_rl_point_001575f0;\n    rl_forward_word(count,key);\n    to_00 = *(int *)puVar1;\n    rl_backward_word(1,key);\n    from_00 = *(int *)puVar1;\n    rl_backward_word(count,key);\n    from = *(int *)puVar1;\n    rl_forward_word(1,key);\n    to = *(int *)puVar1;\n    if ((from_00 == from) || (from_00 < to)) {\n      rl_ding();\n      *(undefined4 *)PTR_rl_point_001575f0 = uVar2;\n      count = 1;\n    }\n    else {\n      string = rl_copy_text(from,to);\n      string_00 = rl_copy_text(from_00,to_00);\n      rl_begin_undo_group();\n      puVar1 = PTR_rl_point_001575f0;\n      *(int *)PTR_rl_point_001575f0 = from_00;\n      rl_delete_text(from_00,to_00);\n      rl_insert_text(string);\n      *(int *)puVar1 = from;\n      rl_delete_text(from,to);\n      rl_insert_text(string_00);\n      *(int *)puVar1 = to_00;\n      rl_end_undo_group();\n      (*(code *)PTR_xfree_00156bb4)(string);\n      (*(code *)PTR_xfree_00156bb4)(string_00);\n      count = 0;\n    }\n  }\n  return count;\n}" primitive_type (function_declarator "rl_transpose_words(int count,int key)" identifier (parameter_list "(int count,int key)" ( (parameter_declaration "int count" primitive_type identifier) , (parameter_declaration "int key" primitive_type identifier) ))) (compound_statement "{\n  undefined *puVar1;\n  char *string;\n  char *string_00;\n  int from;\n  int to;\n  int from_00;\n  int to_00;\n  undefined4 uVar2;\n  \n  puVar1 = PTR_rl_point_001575f0;\n  if (count != 0) {\n    uVar2 = *(undefined4 *)PTR_rl_point_001575f0;\n    rl_forward_word(count,key);\n    to_00 = *(int *)puVar1;\n    rl_backward_word(1,key);\n    from_00 = *(int *)puVar1;\n    rl_backward_word(count,key);\n    from = *(int *)puVar1;\n    rl_forward_word(1,key);\n    to = *(int *)puVar1;\n    if ((from_00 == from) || (from_00 < to)) {\n      rl_ding();\n      *(undefined4 *)PTR_rl_point_001575f0 = uVar2;\n      count = 1;\n    }\n    else {\n      string = rl_copy_text(from,to);\n      string_00 = rl_copy_text(from_00,to_00);\n      rl_begin_undo_group();\n      puVar1 = PTR_rl_point_001575f0;\n      *(int *)PTR_rl_point_001575f0 = from_00;\n      rl_delete_text(from_00,to_00);\n      rl_insert_text(string);\n      *(int *)puVar1 = from;\n      rl_delete_text(from,to);\n      rl_insert_text(string_00);\n      *(int *)puVar1 = to_00;\n      rl_end_undo_group();\n      (*(code *)PTR_xfree_00156bb4)(string);\n      (*(code *)PTR_xfree_00156bb4)(string_00);\n      count = 0;\n    }\n  }\n  return count;\n}" { (declaration "undefined *puVar1;" type_identifier (pointer_declarator "*puVar1" * identifier) ;) (declaration "char *string;" primitive_type (pointer_declarator "*string" * identifier) ;) (declaration "char *string_00;" primitive_type (pointer_declarator "*string_00" * identifier) ;) (declaration "int from;" primitive_type identifier ;) (declaration "int to;" primitive_type identifier ;) (declaration "int from_00;" primitive_type identifier ;) (declaration "int to_00;" primitive_type identifier ;) (declaration "undefined4 uVar2;" type_identifier identifier ;) (expression_statement "puVar1 = PTR_rl_point_001575f0;" (assignment_expression "puVar1 = PTR_rl_point_001575f0" identifier = identifier) ;) (if_statement "if (count != 0) {\n    uVar2 = *(undefined4 *)PTR_rl_point_001575f0;\n    rl_forward_word(count,key);\n    to_00 = *(int *)puVar1;\n    rl_backward_word(1,key);\n    from_00 = *(int *)puVar1;\n    rl_backward_word(count,key);\n    from = *(int *)puVar1;\n    rl_forward_word(1,key);\n    to = *(int *)puVar1;\n    if ((from_00 == from) || (from_00 < to)) {\n      rl_ding();\n      *(undefined4 *)PTR_rl_point_001575f0 = uVar2;\n      count = 1;\n    }\n    else {\n      string = rl_copy_text(from,to);\n      string_00 = rl_copy_text(from_00,to_00);\n      rl_begin_undo_group();\n      puVar1 = PTR_rl_point_001575f0;\n      *(int *)PTR_rl_point_001575f0 = from_00;\n      rl_delete_text(from_00,to_00);\n      rl_insert_text(string);\n      *(int *)puVar1 = from;\n      rl_delete_text(from,to);\n      rl_insert_text(string_00);\n      *(int *)puVar1 = to_00;\n      rl_end_undo_group();\n      (*(code *)PTR_xfree_00156bb4)(string);\n      (*(code *)PTR_xfree_00156bb4)(string_00);\n      count = 0;\n    }\n  }" if (parenthesized_expression "(count != 0)" ( (binary_expression "count != 0" identifier != number_literal) )) (compound_statement "{\n    uVar2 = *(undefined4 *)PTR_rl_point_001575f0;\n    rl_forward_word(count,key);\n    to_00 = *(int *)puVar1;\n    rl_backward_word(1,key);\n    from_00 = *(int *)puVar1;\n    rl_backward_word(count,key);\n    from = *(int *)puVar1;\n    rl_forward_word(1,key);\n    to = *(int *)puVar1;\n    if ((from_00 == from) || (from_00 < to)) {\n      rl_ding();\n      *(undefined4 *)PTR_rl_point_001575f0 = uVar2;\n      count = 1;\n    }\n    else {\n      string = rl_copy_text(from,to);\n      string_00 = rl_copy_text(from_00,to_00);\n      rl_begin_undo_group();\n      puVar1 = PTR_rl_point_001575f0;\n      *(int *)PTR_rl_point_001575f0 = from_00;\n      rl_delete_text(from_00,to_00);\n      rl_insert_text(string);\n      *(int *)puVar1 = from;\n      rl_delete_text(from,to);\n      rl_insert_text(string_00);\n      *(int *)puVar1 = to_00;\n      rl_end_undo_group();\n      (*(code *)PTR_xfree_00156bb4)(string);\n      (*(code *)PTR_xfree_00156bb4)(string_00);\n      count = 0;\n    }\n  }" { (expression_statement "uVar2 = *(undefined4 *)PTR_rl_point_001575f0;" (assignment_expression "uVar2 = *(undefined4 *)PTR_rl_point_001575f0" identifier = (pointer_expression "*(undefined4 *)PTR_rl_point_001575f0" * (cast_expression "(undefined4 *)PTR_rl_point_001575f0" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier))) ;) (expression_statement "rl_forward_word(count,key);" (call_expression "rl_forward_word(count,key)" identifier (argument_list "(count,key)" ( identifier , identifier ))) ;) (expression_statement "to_00 = *(int *)puVar1;" (assignment_expression "to_00 = *(int *)puVar1" identifier = (pointer_expression "*(int *)puVar1" * (cast_expression "(int *)puVar1" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) identifier))) ;) (expression_statement "rl_backward_word(1,key);" (call_expression "rl_backward_word(1,key)" identifier (argument_list "(1,key)" ( number_literal , identifier ))) ;) (expression_statement "from_00 = *(int *)puVar1;" (assignment_expression "from_00 = *(int *)puVar1" identifier = (pointer_expression "*(int *)puVar1" * (cast_expression "(int *)puVar1" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) identifier))) ;) (expression_statement "rl_backward_word(count,key);" (call_expression "rl_backward_word(count,key)" identifier (argument_list "(count,key)" ( identifier , identifier ))) ;) (expression_statement "from = *(int *)puVar1;" (assignment_expression "from = *(int *)puVar1" identifier = (pointer_expression "*(int *)puVar1" * (cast_expression "(int *)puVar1" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) identifier))) ;) (expression_statement "rl_forward_word(1,key);" (call_expression "rl_forward_word(1,key)" identifier (argument_list "(1,key)" ( number_literal , identifier ))) ;) (expression_statement "to = *(int *)puVar1;" (assignment_expression "to = *(int *)puVar1" identifier = (pointer_expression "*(int *)puVar1" * (cast_expression "(int *)puVar1" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) identifier))) ;) (if_statement "if ((from_00 == from) || (from_00 < to)) {\n      rl_ding();\n      *(undefined4 *)PTR_rl_point_001575f0 = uVar2;\n      count = 1;\n    }\n    else {\n      string = rl_copy_text(from,to);\n      string_00 = rl_copy_text(from_00,to_00);\n      rl_begin_undo_group();\n      puVar1 = PTR_rl_point_001575f0;\n      *(int *)PTR_rl_point_001575f0 = from_00;\n      rl_delete_text(from_00,to_00);\n      rl_insert_text(string);\n      *(int *)puVar1 = from;\n      rl_delete_text(from,to);\n      rl_insert_text(string_00);\n      *(int *)puVar1 = to_00;\n      rl_end_undo_group();\n      (*(code *)PTR_xfree_00156bb4)(string);\n      (*(code *)PTR_xfree_00156bb4)(string_00);\n      count = 0;\n    }" if (parenthesized_expression "((from_00 == from) || (from_00 < to))" ( (binary_expression "(from_00 == from) || (from_00 < to)" (parenthesized_expression "(from_00 == from)" ( (binary_expression "from_00 == from" identifier == identifier) )) || (parenthesized_expression "(from_00 < to)" ( (binary_expression "from_00 < to" identifier < identifier) ))) )) (compound_statement "{\n      rl_ding();\n      *(undefined4 *)PTR_rl_point_001575f0 = uVar2;\n      count = 1;\n    }" { (expression_statement "rl_ding();" (call_expression "rl_ding()" identifier (argument_list "()" ( ))) ;) (expression_statement "*(undefined4 *)PTR_rl_point_001575f0 = uVar2;" (assignment_expression "*(undefined4 *)PTR_rl_point_001575f0 = uVar2" (pointer_expression "*(undefined4 *)PTR_rl_point_001575f0" * (cast_expression "(undefined4 *)PTR_rl_point_001575f0" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) = identifier) ;) (expression_statement "count = 1;" (assignment_expression "count = 1" identifier = number_literal) ;) }) (else_clause "else {\n      string = rl_copy_text(from,to);\n      string_00 = rl_copy_text(from_00,to_00);\n      rl_begin_undo_group();\n      puVar1 = PTR_rl_point_001575f0;\n      *(int *)PTR_rl_point_001575f0 = from_00;\n      rl_delete_text(from_00,to_00);\n      rl_insert_text(string);\n      *(int *)puVar1 = from;\n      rl_delete_text(from,to);\n      rl_insert_text(string_00);\n      *(int *)puVar1 = to_00;\n      rl_end_undo_group();\n      (*(code *)PTR_xfree_00156bb4)(string);\n      (*(code *)PTR_xfree_00156bb4)(string_00);\n      count = 0;\n    }" else (compound_statement "{\n      string = rl_copy_text(from,to);\n      string_00 = rl_copy_text(from_00,to_00);\n      rl_begin_undo_group();\n      puVar1 = PTR_rl_point_001575f0;\n      *(int *)PTR_rl_point_001575f0 = from_00;\n      rl_delete_text(from_00,to_00);\n      rl_insert_text(string);\n      *(int *)puVar1 = from;\n      rl_delete_text(from,to);\n      rl_insert_text(string_00);\n      *(int *)puVar1 = to_00;\n      rl_end_undo_group();\n      (*(code *)PTR_xfree_00156bb4)(string);\n      (*(code *)PTR_xfree_00156bb4)(string_00);\n      count = 0;\n    }" { (expression_statement "string = rl_copy_text(from,to);" (assignment_expression "string = rl_copy_text(from,to)" identifier = (call_expression "rl_copy_text(from,to)" identifier (argument_list "(from,to)" ( identifier , identifier )))) ;) (expression_statement "string_00 = rl_copy_text(from_00,to_00);" (assignment_expression "string_00 = rl_copy_text(from_00,to_00)" identifier = (call_expression "rl_copy_text(from_00,to_00)" identifier (argument_list "(from_00,to_00)" ( identifier , identifier )))) ;) (expression_statement "rl_begin_undo_group();" (call_expression "rl_begin_undo_group()" identifier (argument_list "()" ( ))) ;) (expression_statement "puVar1 = PTR_rl_point_001575f0;" (assignment_expression "puVar1 = PTR_rl_point_001575f0" identifier = identifier) ;) (expression_statement "*(int *)PTR_rl_point_001575f0 = from_00;" (assignment_expression "*(int *)PTR_rl_point_001575f0 = from_00" (pointer_expression "*(int *)PTR_rl_point_001575f0" * (cast_expression "(int *)PTR_rl_point_001575f0" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) identifier)) = identifier) ;) (expression_statement "rl_delete_text(from_00,to_00);" (call_expression "rl_delete_text(from_00,to_00)" identifier (argument_list "(from_00,to_00)" ( identifier , identifier ))) ;) (expression_statement "rl_insert_text(string);" (call_expression "rl_insert_text(string)" identifier (argument_list "(string)" ( identifier ))) ;) (expression_statement "*(int *)puVar1 = from;" (assignment_expression "*(int *)puVar1 = from" (pointer_expression "*(int *)puVar1" * (cast_expression "(int *)puVar1" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) identifier)) = identifier) ;) (expression_statement "rl_delete_text(from,to);" (call_expression "rl_delete_text(from,to)" identifier (argument_list "(from,to)" ( identifier , identifier ))) ;) (expression_statement "rl_insert_text(string_00);" (call_expression "rl_insert_text(string_00)" identifier (argument_list "(string_00)" ( identifier ))) ;) (expression_statement "*(int *)puVar1 = to_00;" (assignment_expression "*(int *)puVar1 = to_00" (pointer_expression "*(int *)puVar1" * (cast_expression "(int *)puVar1" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) identifier)) = identifier) ;) (expression_statement "rl_end_undo_group();" (call_expression "rl_end_undo_group()" identifier (argument_list "()" ( ))) ;) (expression_statement "(*(code *)PTR_xfree_00156bb4)(string);" (call_expression "(*(code *)PTR_xfree_00156bb4)(string)" (parenthesized_expression "(*(code *)PTR_xfree_00156bb4)" ( (pointer_expression "*(code *)PTR_xfree_00156bb4" * (cast_expression "(code *)PTR_xfree_00156bb4" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(string)" ( identifier ))) ;) (expression_statement "(*(code *)PTR_xfree_00156bb4)(string_00);" (call_expression "(*(code *)PTR_xfree_00156bb4)(string_00)" (parenthesized_expression "(*(code *)PTR_xfree_00156bb4)" ( (pointer_expression "*(code *)PTR_xfree_00156bb4" * (cast_expression "(code *)PTR_xfree_00156bb4" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(string_00)" ( identifier ))) ;) (expression_statement "count = 0;" (assignment_expression "count = 0" identifier = number_literal) ;) }))) })) (return_statement "return count;" return identifier ;) })))
(translation_unit "int rl_transpose_words(int param_1,undefined4 param_2)\n\n{\n  undefined *puVar1;\n  undefined4 uVar2;\n  int iVar3;\n  int iVar4;\n  int iVar5;\n  undefined4 uVar6;\n  undefined4 uVar7;\n  \n  puVar1 = PTR_rl_point_001575f0;\n  if (param_1 != 0) {\n    uVar7 = *(undefined4 *)PTR_rl_point_001575f0;\n    rl_forward_word();\n    uVar6 = *(undefined4 *)puVar1;\n    rl_backward_word(1,param_2);\n    iVar5 = *(int *)puVar1;\n    rl_backward_word(param_1,param_2);\n    iVar3 = *(int *)puVar1;\n    rl_forward_word(1,param_2);\n    iVar4 = *(int *)puVar1;\n    if ((iVar5 == iVar3) || (iVar5 < iVar4)) {\n      rl_ding();\n      *(undefined4 *)PTR_rl_point_001575f0 = uVar7;\n      param_1 = 1;\n    }\n    else {\n      uVar7 = rl_copy_text(iVar3,iVar4);\n      uVar2 = rl_copy_text(iVar5,uVar6);\n      rl_begin_undo_group();\n      puVar1 = PTR_rl_point_001575f0;\n      *(int *)PTR_rl_point_001575f0 = iVar5;\n      rl_delete_text(iVar5,uVar6);\n      rl_insert_text(uVar7);\n      *(int *)puVar1 = iVar3;\n      rl_delete_text(iVar3,iVar4);\n      rl_insert_text(uVar2);\n      *(undefined4 *)puVar1 = uVar6;\n      rl_end_undo_group();\n      (*(code *)PTR_xfree_00156bb4)(uVar7);\n      (*(code *)PTR_xfree_00156bb4)(uVar2);\n      param_1 = 0;\n    }\n  }\n  return param_1;\n}\n\n" (function_definition "int rl_transpose_words(int param_1,undefined4 param_2)\n\n{\n  undefined *puVar1;\n  undefined4 uVar2;\n  int iVar3;\n  int iVar4;\n  int iVar5;\n  undefined4 uVar6;\n  undefined4 uVar7;\n  \n  puVar1 = PTR_rl_point_001575f0;\n  if (param_1 != 0) {\n    uVar7 = *(undefined4 *)PTR_rl_point_001575f0;\n    rl_forward_word();\n    uVar6 = *(undefined4 *)puVar1;\n    rl_backward_word(1,param_2);\n    iVar5 = *(int *)puVar1;\n    rl_backward_word(param_1,param_2);\n    iVar3 = *(int *)puVar1;\n    rl_forward_word(1,param_2);\n    iVar4 = *(int *)puVar1;\n    if ((iVar5 == iVar3) || (iVar5 < iVar4)) {\n      rl_ding();\n      *(undefined4 *)PTR_rl_point_001575f0 = uVar7;\n      param_1 = 1;\n    }\n    else {\n      uVar7 = rl_copy_text(iVar3,iVar4);\n      uVar2 = rl_copy_text(iVar5,uVar6);\n      rl_begin_undo_group();\n      puVar1 = PTR_rl_point_001575f0;\n      *(int *)PTR_rl_point_001575f0 = iVar5;\n      rl_delete_text(iVar5,uVar6);\n      rl_insert_text(uVar7);\n      *(int *)puVar1 = iVar3;\n      rl_delete_text(iVar3,iVar4);\n      rl_insert_text(uVar2);\n      *(undefined4 *)puVar1 = uVar6;\n      rl_end_undo_group();\n      (*(code *)PTR_xfree_00156bb4)(uVar7);\n      (*(code *)PTR_xfree_00156bb4)(uVar2);\n      param_1 = 0;\n    }\n  }\n  return param_1;\n}" primitive_type (function_declarator "rl_transpose_words(int param_1,undefined4 param_2)" identifier (parameter_list "(int param_1,undefined4 param_2)" ( (parameter_declaration "int param_1" primitive_type identifier) , (parameter_declaration "undefined4 param_2" type_identifier identifier) ))) (compound_statement "{\n  undefined *puVar1;\n  undefined4 uVar2;\n  int iVar3;\n  int iVar4;\n  int iVar5;\n  undefined4 uVar6;\n  undefined4 uVar7;\n  \n  puVar1 = PTR_rl_point_001575f0;\n  if (param_1 != 0) {\n    uVar7 = *(undefined4 *)PTR_rl_point_001575f0;\n    rl_forward_word();\n    uVar6 = *(undefined4 *)puVar1;\n    rl_backward_word(1,param_2);\n    iVar5 = *(int *)puVar1;\n    rl_backward_word(param_1,param_2);\n    iVar3 = *(int *)puVar1;\n    rl_forward_word(1,param_2);\n    iVar4 = *(int *)puVar1;\n    if ((iVar5 == iVar3) || (iVar5 < iVar4)) {\n      rl_ding();\n      *(undefined4 *)PTR_rl_point_001575f0 = uVar7;\n      param_1 = 1;\n    }\n    else {\n      uVar7 = rl_copy_text(iVar3,iVar4);\n      uVar2 = rl_copy_text(iVar5,uVar6);\n      rl_begin_undo_group();\n      puVar1 = PTR_rl_point_001575f0;\n      *(int *)PTR_rl_point_001575f0 = iVar5;\n      rl_delete_text(iVar5,uVar6);\n      rl_insert_text(uVar7);\n      *(int *)puVar1 = iVar3;\n      rl_delete_text(iVar3,iVar4);\n      rl_insert_text(uVar2);\n      *(undefined4 *)puVar1 = uVar6;\n      rl_end_undo_group();\n      (*(code *)PTR_xfree_00156bb4)(uVar7);\n      (*(code *)PTR_xfree_00156bb4)(uVar2);\n      param_1 = 0;\n    }\n  }\n  return param_1;\n}" { (declaration "undefined *puVar1;" type_identifier (pointer_declarator "*puVar1" * identifier) ;) (declaration "undefined4 uVar2;" type_identifier identifier ;) (declaration "int iVar3;" primitive_type identifier ;) (declaration "int iVar4;" primitive_type identifier ;) (declaration "int iVar5;" primitive_type identifier ;) (declaration "undefined4 uVar6;" type_identifier identifier ;) (declaration "undefined4 uVar7;" type_identifier identifier ;) (expression_statement "puVar1 = PTR_rl_point_001575f0;" (assignment_expression "puVar1 = PTR_rl_point_001575f0" identifier = identifier) ;) (if_statement "if (param_1 != 0) {\n    uVar7 = *(undefined4 *)PTR_rl_point_001575f0;\n    rl_forward_word();\n    uVar6 = *(undefined4 *)puVar1;\n    rl_backward_word(1,param_2);\n    iVar5 = *(int *)puVar1;\n    rl_backward_word(param_1,param_2);\n    iVar3 = *(int *)puVar1;\n    rl_forward_word(1,param_2);\n    iVar4 = *(int *)puVar1;\n    if ((iVar5 == iVar3) || (iVar5 < iVar4)) {\n      rl_ding();\n      *(undefined4 *)PTR_rl_point_001575f0 = uVar7;\n      param_1 = 1;\n    }\n    else {\n      uVar7 = rl_copy_text(iVar3,iVar4);\n      uVar2 = rl_copy_text(iVar5,uVar6);\n      rl_begin_undo_group();\n      puVar1 = PTR_rl_point_001575f0;\n      *(int *)PTR_rl_point_001575f0 = iVar5;\n      rl_delete_text(iVar5,uVar6);\n      rl_insert_text(uVar7);\n      *(int *)puVar1 = iVar3;\n      rl_delete_text(iVar3,iVar4);\n      rl_insert_text(uVar2);\n      *(undefined4 *)puVar1 = uVar6;\n      rl_end_undo_group();\n      (*(code *)PTR_xfree_00156bb4)(uVar7);\n      (*(code *)PTR_xfree_00156bb4)(uVar2);\n      param_1 = 0;\n    }\n  }" if (parenthesized_expression "(param_1 != 0)" ( (binary_expression "param_1 != 0" identifier != number_literal) )) (compound_statement "{\n    uVar7 = *(undefined4 *)PTR_rl_point_001575f0;\n    rl_forward_word();\n    uVar6 = *(undefined4 *)puVar1;\n    rl_backward_word(1,param_2);\n    iVar5 = *(int *)puVar1;\n    rl_backward_word(param_1,param_2);\n    iVar3 = *(int *)puVar1;\n    rl_forward_word(1,param_2);\n    iVar4 = *(int *)puVar1;\n    if ((iVar5 == iVar3) || (iVar5 < iVar4)) {\n      rl_ding();\n      *(undefined4 *)PTR_rl_point_001575f0 = uVar7;\n      param_1 = 1;\n    }\n    else {\n      uVar7 = rl_copy_text(iVar3,iVar4);\n      uVar2 = rl_copy_text(iVar5,uVar6);\n      rl_begin_undo_group();\n      puVar1 = PTR_rl_point_001575f0;\n      *(int *)PTR_rl_point_001575f0 = iVar5;\n      rl_delete_text(iVar5,uVar6);\n      rl_insert_text(uVar7);\n      *(int *)puVar1 = iVar3;\n      rl_delete_text(iVar3,iVar4);\n      rl_insert_text(uVar2);\n      *(undefined4 *)puVar1 = uVar6;\n      rl_end_undo_group();\n      (*(code *)PTR_xfree_00156bb4)(uVar7);\n      (*(code *)PTR_xfree_00156bb4)(uVar2);\n      param_1 = 0;\n    }\n  }" { (expression_statement "uVar7 = *(undefined4 *)PTR_rl_point_001575f0;" (assignment_expression "uVar7 = *(undefined4 *)PTR_rl_point_001575f0" identifier = (pointer_expression "*(undefined4 *)PTR_rl_point_001575f0" * (cast_expression "(undefined4 *)PTR_rl_point_001575f0" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier))) ;) (expression_statement "rl_forward_word();" (call_expression "rl_forward_word()" identifier (argument_list "()" ( ))) ;) (expression_statement "uVar6 = *(undefined4 *)puVar1;" (assignment_expression "uVar6 = *(undefined4 *)puVar1" identifier = (pointer_expression "*(undefined4 *)puVar1" * (cast_expression "(undefined4 *)puVar1" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier))) ;) (expression_statement "rl_backward_word(1,param_2);" (call_expression "rl_backward_word(1,param_2)" identifier (argument_list "(1,param_2)" ( number_literal , identifier ))) ;) (expression_statement "iVar5 = *(int *)puVar1;" (assignment_expression "iVar5 = *(int *)puVar1" identifier = (pointer_expression "*(int *)puVar1" * (cast_expression "(int *)puVar1" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) identifier))) ;) (expression_statement "rl_backward_word(param_1,param_2);" (call_expression "rl_backward_word(param_1,param_2)" identifier (argument_list "(param_1,param_2)" ( identifier , identifier ))) ;) (expression_statement "iVar3 = *(int *)puVar1;" (assignment_expression "iVar3 = *(int *)puVar1" identifier = (pointer_expression "*(int *)puVar1" * (cast_expression "(int *)puVar1" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) identifier))) ;) (expression_statement "rl_forward_word(1,param_2);" (call_expression "rl_forward_word(1,param_2)" identifier (argument_list "(1,param_2)" ( number_literal , identifier ))) ;) (expression_statement "iVar4 = *(int *)puVar1;" (assignment_expression "iVar4 = *(int *)puVar1" identifier = (pointer_expression "*(int *)puVar1" * (cast_expression "(int *)puVar1" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) identifier))) ;) (if_statement "if ((iVar5 == iVar3) || (iVar5 < iVar4)) {\n      rl_ding();\n      *(undefined4 *)PTR_rl_point_001575f0 = uVar7;\n      param_1 = 1;\n    }\n    else {\n      uVar7 = rl_copy_text(iVar3,iVar4);\n      uVar2 = rl_copy_text(iVar5,uVar6);\n      rl_begin_undo_group();\n      puVar1 = PTR_rl_point_001575f0;\n      *(int *)PTR_rl_point_001575f0 = iVar5;\n      rl_delete_text(iVar5,uVar6);\n      rl_insert_text(uVar7);\n      *(int *)puVar1 = iVar3;\n      rl_delete_text(iVar3,iVar4);\n      rl_insert_text(uVar2);\n      *(undefined4 *)puVar1 = uVar6;\n      rl_end_undo_group();\n      (*(code *)PTR_xfree_00156bb4)(uVar7);\n      (*(code *)PTR_xfree_00156bb4)(uVar2);\n      param_1 = 0;\n    }" if (parenthesized_expression "((iVar5 == iVar3) || (iVar5 < iVar4))" ( (binary_expression "(iVar5 == iVar3) || (iVar5 < iVar4)" (parenthesized_expression "(iVar5 == iVar3)" ( (binary_expression "iVar5 == iVar3" identifier == identifier) )) || (parenthesized_expression "(iVar5 < iVar4)" ( (binary_expression "iVar5 < iVar4" identifier < identifier) ))) )) (compound_statement "{\n      rl_ding();\n      *(undefined4 *)PTR_rl_point_001575f0 = uVar7;\n      param_1 = 1;\n    }" { (expression_statement "rl_ding();" (call_expression "rl_ding()" identifier (argument_list "()" ( ))) ;) (expression_statement "*(undefined4 *)PTR_rl_point_001575f0 = uVar7;" (assignment_expression "*(undefined4 *)PTR_rl_point_001575f0 = uVar7" (pointer_expression "*(undefined4 *)PTR_rl_point_001575f0" * (cast_expression "(undefined4 *)PTR_rl_point_001575f0" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) = identifier) ;) (expression_statement "param_1 = 1;" (assignment_expression "param_1 = 1" identifier = number_literal) ;) }) (else_clause "else {\n      uVar7 = rl_copy_text(iVar3,iVar4);\n      uVar2 = rl_copy_text(iVar5,uVar6);\n      rl_begin_undo_group();\n      puVar1 = PTR_rl_point_001575f0;\n      *(int *)PTR_rl_point_001575f0 = iVar5;\n      rl_delete_text(iVar5,uVar6);\n      rl_insert_text(uVar7);\n      *(int *)puVar1 = iVar3;\n      rl_delete_text(iVar3,iVar4);\n      rl_insert_text(uVar2);\n      *(undefined4 *)puVar1 = uVar6;\n      rl_end_undo_group();\n      (*(code *)PTR_xfree_00156bb4)(uVar7);\n      (*(code *)PTR_xfree_00156bb4)(uVar2);\n      param_1 = 0;\n    }" else (compound_statement "{\n      uVar7 = rl_copy_text(iVar3,iVar4);\n      uVar2 = rl_copy_text(iVar5,uVar6);\n      rl_begin_undo_group();\n      puVar1 = PTR_rl_point_001575f0;\n      *(int *)PTR_rl_point_001575f0 = iVar5;\n      rl_delete_text(iVar5,uVar6);\n      rl_insert_text(uVar7);\n      *(int *)puVar1 = iVar3;\n      rl_delete_text(iVar3,iVar4);\n      rl_insert_text(uVar2);\n      *(undefined4 *)puVar1 = uVar6;\n      rl_end_undo_group();\n      (*(code *)PTR_xfree_00156bb4)(uVar7);\n      (*(code *)PTR_xfree_00156bb4)(uVar2);\n      param_1 = 0;\n    }" { (expression_statement "uVar7 = rl_copy_text(iVar3,iVar4);" (assignment_expression "uVar7 = rl_copy_text(iVar3,iVar4)" identifier = (call_expression "rl_copy_text(iVar3,iVar4)" identifier (argument_list "(iVar3,iVar4)" ( identifier , identifier )))) ;) (expression_statement "uVar2 = rl_copy_text(iVar5,uVar6);" (assignment_expression "uVar2 = rl_copy_text(iVar5,uVar6)" identifier = (call_expression "rl_copy_text(iVar5,uVar6)" identifier (argument_list "(iVar5,uVar6)" ( identifier , identifier )))) ;) (expression_statement "rl_begin_undo_group();" (call_expression "rl_begin_undo_group()" identifier (argument_list "()" ( ))) ;) (expression_statement "puVar1 = PTR_rl_point_001575f0;" (assignment_expression "puVar1 = PTR_rl_point_001575f0" identifier = identifier) ;) (expression_statement "*(int *)PTR_rl_point_001575f0 = iVar5;" (assignment_expression "*(int *)PTR_rl_point_001575f0 = iVar5" (pointer_expression "*(int *)PTR_rl_point_001575f0" * (cast_expression "(int *)PTR_rl_point_001575f0" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) identifier)) = identifier) ;) (expression_statement "rl_delete_text(iVar5,uVar6);" (call_expression "rl_delete_text(iVar5,uVar6)" identifier (argument_list "(iVar5,uVar6)" ( identifier , identifier ))) ;) (expression_statement "rl_insert_text(uVar7);" (call_expression "rl_insert_text(uVar7)" identifier (argument_list "(uVar7)" ( identifier ))) ;) (expression_statement "*(int *)puVar1 = iVar3;" (assignment_expression "*(int *)puVar1 = iVar3" (pointer_expression "*(int *)puVar1" * (cast_expression "(int *)puVar1" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) identifier)) = identifier) ;) (expression_statement "rl_delete_text(iVar3,iVar4);" (call_expression "rl_delete_text(iVar3,iVar4)" identifier (argument_list "(iVar3,iVar4)" ( identifier , identifier ))) ;) (expression_statement "rl_insert_text(uVar2);" (call_expression "rl_insert_text(uVar2)" identifier (argument_list "(uVar2)" ( identifier ))) ;) (expression_statement "*(undefined4 *)puVar1 = uVar6;" (assignment_expression "*(undefined4 *)puVar1 = uVar6" (pointer_expression "*(undefined4 *)puVar1" * (cast_expression "(undefined4 *)puVar1" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) = identifier) ;) (expression_statement "rl_end_undo_group();" (call_expression "rl_end_undo_group()" identifier (argument_list "()" ( ))) ;) (expression_statement "(*(code *)PTR_xfree_00156bb4)(uVar7);" (call_expression "(*(code *)PTR_xfree_00156bb4)(uVar7)" (parenthesized_expression "(*(code *)PTR_xfree_00156bb4)" ( (pointer_expression "*(code *)PTR_xfree_00156bb4" * (cast_expression "(code *)PTR_xfree_00156bb4" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(uVar7)" ( identifier ))) ;) (expression_statement "(*(code *)PTR_xfree_00156bb4)(uVar2);" (call_expression "(*(code *)PTR_xfree_00156bb4)(uVar2)" (parenthesized_expression "(*(code *)PTR_xfree_00156bb4)" ( (pointer_expression "*(code *)PTR_xfree_00156bb4" * (cast_expression "(code *)PTR_xfree_00156bb4" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(uVar2)" ( identifier ))) ;) (expression_statement "param_1 = 0;" (assignment_expression "param_1 = 0" identifier = number_literal) ;) }))) })) (return_statement "return param_1;" 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 IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (expression_statement (assignment_expression IDENT = IDENT) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT != LIT) )) (compound_statement { (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT))) ;) (expression_statement (call_expression IDENT (argument_list ( ))) ;) (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT))) ;) (expression_statement (call_expression IDENT (argument_list ( LIT , IDENT ))) ;) (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT))) ;) (expression_statement (call_expression IDENT (argument_list ( IDENT , IDENT ))) ;) (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT))) ;) (expression_statement (call_expression IDENT (argument_list ( LIT , IDENT ))) ;) (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT))) ;) (if_statement if (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression IDENT == IDENT) )) || (parenthesized_expression ( (binary_expression IDENT < IDENT) ))) )) (compound_statement { (expression_statement (call_expression IDENT (argument_list ( ))) ;) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT)) = IDENT) ;) (expression_statement (assignment_expression IDENT = LIT) ;) }) (else_clause else (compound_statement { (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( IDENT , IDENT )))) ;) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( IDENT , IDENT )))) ;) (expression_statement (call_expression IDENT (argument_list ( ))) ;) (expression_statement (assignment_expression IDENT = IDENT) ;) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT)) = IDENT) ;) (expression_statement (call_expression IDENT (argument_list ( IDENT , IDENT ))) ;) (expression_statement (call_expression IDENT (argument_list ( IDENT ))) ;) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT)) = IDENT) ;) (expression_statement (call_expression IDENT (argument_list ( IDENT , IDENT ))) ;) (expression_statement (call_expression IDENT (argument_list ( IDENT ))) ;) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT)) = IDENT) ;) (expression_statement (call_expression IDENT (argument_list ( ))) ;) (expression_statement (call_expression (parenthesized_expression ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT)) )) (argument_list ( IDENT ))) ;) (expression_statement (call_expression (parenthesized_expression ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT)) )) (argument_list ( IDENT ))) ;) (expression_statement (assignment_expression IDENT = LIT) ;) }))) })) (return_statement return IDENT ;) })))
(function_definition "int rl_transpose_words(int param_1,undefined4 param_2)\n\n{\n  undefined *puVar1;\n  undefined4 uVar2;\n  int iVar3;\n  int iVar4;\n  int iVar5;\n  undefined4 uVar6;\n  undefined4 uVar7;\n  \n  puVar1 = PTR_rl_point_001575f0;\n  if (param_1 != 0) {\n    uVar7 = *(undefined4 *)PTR_rl_point_001575f0;\n    rl_forward_word();\n    uVar6 = *(undefined4 *)puVar1;\n    rl_backward_word(1,param_2);\n    iVar5 = *(int *)puVar1;\n    rl_backward_word(param_1,param_2);\n    iVar3 = *(int *)puVar1;\n    rl_forward_word(1,param_2);\n    iVar4 = *(int *)puVar1;\n    if ((iVar5 == iVar3) || (iVar5 < iVar4)) {\n      rl_ding();\n      *(undefined4 *)PTR_rl_point_001575f0 = uVar7;\n      param_1 = 1;\n    }\n    else {\n      uVar7 = rl_copy_text(iVar3,iVar4);\n      uVar2 = rl_copy_text(iVar5,uVar6);\n      rl_begin_undo_group();\n      puVar1 = PTR_rl_point_001575f0;\n      *(int *)PTR_rl_point_001575f0 = iVar5;\n      rl_delete_text(iVar5,uVar6);\n      rl_insert_text(uVar7);\n      *(int *)puVar1 = iVar3;\n      rl_delete_text(iVar3,iVar4);\n      rl_insert_text(uVar2);\n      *(undefined4 *)puVar1 = uVar6;\n      rl_end_undo_group();\n      (*(code *)PTR_xfree_00156bb4)(uVar7);\n      (*(code *)PTR_xfree_00156bb4)(uVar2);\n      param_1 = 0;\n    }\n  }\n  return param_1;\n}" (primitive_type "int") (function_declarator "rl_transpose_words(int param_1,undefined4 param_2)" (identifier "rl_transpose_words") (parameter_list "(int param_1,undefined4 param_2)" (( "(") (parameter_declaration "int param_1" (primitive_type "int") (identifier "param_1")) (, ",") (parameter_declaration "undefined4 param_2" (type_identifier "undefined4") (identifier "param_2")) () ")"))) (compound_statement "{\n  undefined *puVar1;\n  undefined4 uVar2;\n  int iVar3;\n  int iVar4;\n  int iVar5;\n  undefined4 uVar6;\n  undefined4 uVar7;\n  \n  puVar1 = PTR_rl_point_001575f0;\n  if (param_1 != 0) {\n    uVar7 = *(undefined4 *)PTR_rl_point_001575f0;\n    rl_forward_word();\n    uVar6 = *(undefined4 *)puVar1;\n    rl_backward_word(1,param_2);\n    iVar5 = *(int *)puVar1;\n    rl_backward_word(param_1,param_2);\n    iVar3 = *(int *)puVar1;\n    rl_forward_word(1,param_2);\n    iVar4 = *(int *)puVar1;\n    if ((iVar5 == iVar3) || (iVar5 < iVar4)) {\n      rl_ding();\n      *(undefined4 *)PTR_rl_point_001575f0 = uVar7;\n      param_1 = 1;\n    }\n    else {\n      uVar7 = rl_copy_text(iVar3,iVar4);\n      uVar2 = rl_copy_text(iVar5,uVar6);\n      rl_begin_undo_group();\n      puVar1 = PTR_rl_point_001575f0;\n      *(int *)PTR_rl_point_001575f0 = iVar5;\n      rl_delete_text(iVar5,uVar6);\n      rl_insert_text(uVar7);\n      *(int *)puVar1 = iVar3;\n      rl_delete_text(iVar3,iVar4);\n      rl_insert_text(uVar2);\n      *(undefined4 *)puVar1 = uVar6;\n      rl_end_undo_group();\n      (*(code *)PTR_xfree_00156bb4)(uVar7);\n      (*(code *)PTR_xfree_00156bb4)(uVar2);\n      param_1 = 0;\n    }\n  }\n  return param_1;\n}" ({ "{") (declaration "undefined *puVar1;" (type_identifier "undefined") (pointer_declarator "*puVar1" (* "*") (identifier "puVar1")) (; ";")) (declaration "undefined4 uVar2;" (type_identifier "undefined4") (identifier "uVar2") (; ";")) (declaration "int iVar3;" (primitive_type "int") (identifier "iVar3") (; ";")) (declaration "int iVar4;" (primitive_type "int") (identifier "iVar4") (; ";")) (declaration "int iVar5;" (primitive_type "int") (identifier "iVar5") (; ";")) (declaration "undefined4 uVar6;" (type_identifier "undefined4") (identifier "uVar6") (; ";")) (declaration "undefined4 uVar7;" (type_identifier "undefined4") (identifier "uVar7") (; ";")) (expression_statement "puVar1 = PTR_rl_point_001575f0;" (assignment_expression "puVar1 = PTR_rl_point_001575f0" (identifier "puVar1") (= "=") (identifier "PTR_rl_point_001575f0")) (; ";")) (if_statement "if (param_1 != 0) {\n    uVar7 = *(undefined4 *)PTR_rl_point_001575f0;\n    rl_forward_word();\n    uVar6 = *(undefined4 *)puVar1;\n    rl_backward_word(1,param_2);\n    iVar5 = *(int *)puVar1;\n    rl_backward_word(param_1,param_2);\n    iVar3 = *(int *)puVar1;\n    rl_forward_word(1,param_2);\n    iVar4 = *(int *)puVar1;\n    if ((iVar5 == iVar3) || (iVar5 < iVar4)) {\n      rl_ding();\n      *(undefined4 *)PTR_rl_point_001575f0 = uVar7;\n      param_1 = 1;\n    }\n    else {\n      uVar7 = rl_copy_text(iVar3,iVar4);\n      uVar2 = rl_copy_text(iVar5,uVar6);\n      rl_begin_undo_group();\n      puVar1 = PTR_rl_point_001575f0;\n      *(int *)PTR_rl_point_001575f0 = iVar5;\n      rl_delete_text(iVar5,uVar6);\n      rl_insert_text(uVar7);\n      *(int *)puVar1 = iVar3;\n      rl_delete_text(iVar3,iVar4);\n      rl_insert_text(uVar2);\n      *(undefined4 *)puVar1 = uVar6;\n      rl_end_undo_group();\n      (*(code *)PTR_xfree_00156bb4)(uVar7);\n      (*(code *)PTR_xfree_00156bb4)(uVar2);\n      param_1 = 0;\n    }\n  }" (if "if") (parenthesized_expression "(param_1 != 0)" (( "(") (binary_expression "param_1 != 0" (identifier "param_1") (!= "!=") (number_literal "0")) () ")")) (compound_statement "{\n    uVar7 = *(undefined4 *)PTR_rl_point_001575f0;\n    rl_forward_word();\n    uVar6 = *(undefined4 *)puVar1;\n    rl_backward_word(1,param_2);\n    iVar5 = *(int *)puVar1;\n    rl_backward_word(param_1,param_2);\n    iVar3 = *(int *)puVar1;\n    rl_forward_word(1,param_2);\n    iVar4 = *(int *)puVar1;\n    if ((iVar5 == iVar3) || (iVar5 < iVar4)) {\n      rl_ding();\n      *(undefined4 *)PTR_rl_point_001575f0 = uVar7;\n      param_1 = 1;\n    }\n    else {\n      uVar7 = rl_copy_text(iVar3,iVar4);\n      uVar2 = rl_copy_text(iVar5,uVar6);\n      rl_begin_undo_group();\n      puVar1 = PTR_rl_point_001575f0;\n      *(int *)PTR_rl_point_001575f0 = iVar5;\n      rl_delete_text(iVar5,uVar6);\n      rl_insert_text(uVar7);\n      *(int *)puVar1 = iVar3;\n      rl_delete_text(iVar3,iVar4);\n      rl_insert_text(uVar2);\n      *(undefined4 *)puVar1 = uVar6;\n      rl_end_undo_group();\n      (*(code *)PTR_xfree_00156bb4)(uVar7);\n      (*(code *)PTR_xfree_00156bb4)(uVar2);\n      param_1 = 0;\n    }\n  }" ({ "{") (expression_statement "uVar7 = *(undefined4 *)PTR_rl_point_001575f0;" (assignment_expression "uVar7 = *(undefined4 *)PTR_rl_point_001575f0" (identifier "uVar7") (= "=") (pointer_expression "*(undefined4 *)PTR_rl_point_001575f0" (* "*") (cast_expression "(undefined4 *)PTR_rl_point_001575f0" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR_rl_point_001575f0")))) (; ";")) (expression_statement "rl_forward_word();" (call_expression "rl_forward_word()" (identifier "rl_forward_word") (argument_list "()" (( "(") () ")"))) (; ";")) (expression_statement "uVar6 = *(undefined4 *)puVar1;" (assignment_expression "uVar6 = *(undefined4 *)puVar1" (identifier "uVar6") (= "=") (pointer_expression "*(undefined4 *)puVar1" (* "*") (cast_expression "(undefined4 *)puVar1" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "puVar1")))) (; ";")) (expression_statement "rl_backward_word(1,param_2);" (call_expression "rl_backward_word(1,param_2)" (identifier "rl_backward_word") (argument_list "(1,param_2)" (( "(") (number_literal "1") (, ",") (identifier "param_2") () ")"))) (; ";")) (expression_statement "iVar5 = *(int *)puVar1;" (assignment_expression "iVar5 = *(int *)puVar1" (identifier "iVar5") (= "=") (pointer_expression "*(int *)puVar1" (* "*") (cast_expression "(int *)puVar1" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "puVar1")))) (; ";")) (expression_statement "rl_backward_word(param_1,param_2);" (call_expression "rl_backward_word(param_1,param_2)" (identifier "rl_backward_word") (argument_list "(param_1,param_2)" (( "(") (identifier "param_1") (, ",") (identifier "param_2") () ")"))) (; ";")) (expression_statement "iVar3 = *(int *)puVar1;" (assignment_expression "iVar3 = *(int *)puVar1" (identifier "iVar3") (= "=") (pointer_expression "*(int *)puVar1" (* "*") (cast_expression "(int *)puVar1" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "puVar1")))) (; ";")) (expression_statement "rl_forward_word(1,param_2);" (call_expression "rl_forward_word(1,param_2)" (identifier "rl_forward_word") (argument_list "(1,param_2)" (( "(") (number_literal "1") (, ",") (identifier "param_2") () ")"))) (; ";")) (expression_statement "iVar4 = *(int *)puVar1;" (assignment_expression "iVar4 = *(int *)puVar1" (identifier "iVar4") (= "=") (pointer_expression "*(int *)puVar1" (* "*") (cast_expression "(int *)puVar1" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "puVar1")))) (; ";")) (if_statement "if ((iVar5 == iVar3) || (iVar5 < iVar4)) {\n      rl_ding();\n      *(undefined4 *)PTR_rl_point_001575f0 = uVar7;\n      param_1 = 1;\n    }\n    else {\n      uVar7 = rl_copy_text(iVar3,iVar4);\n      uVar2 = rl_copy_text(iVar5,uVar6);\n      rl_begin_undo_group();\n      puVar1 = PTR_rl_point_001575f0;\n      *(int *)PTR_rl_point_001575f0 = iVar5;\n      rl_delete_text(iVar5,uVar6);\n      rl_insert_text(uVar7);\n      *(int *)puVar1 = iVar3;\n      rl_delete_text(iVar3,iVar4);\n      rl_insert_text(uVar2);\n      *(undefined4 *)puVar1 = uVar6;\n      rl_end_undo_group();\n      (*(code *)PTR_xfree_00156bb4)(uVar7);\n      (*(code *)PTR_xfree_00156bb4)(uVar2);\n      param_1 = 0;\n    }" (if "if") (parenthesized_expression "((iVar5 == iVar3) || (iVar5 < iVar4))" (( "(") (binary_expression "(iVar5 == iVar3) || (iVar5 < iVar4)" (parenthesized_expression "(iVar5 == iVar3)" (( "(") (binary_expression "iVar5 == iVar3" (identifier "iVar5") (== "==") (identifier "iVar3")) () ")")) (|| "||") (parenthesized_expression "(iVar5 < iVar4)" (( "(") (binary_expression "iVar5 < iVar4" (identifier "iVar5") (< "<") (identifier "iVar4")) () ")"))) () ")")) (compound_statement "{\n      rl_ding();\n      *(undefined4 *)PTR_rl_point_001575f0 = uVar7;\n      param_1 = 1;\n    }" ({ "{") (expression_statement "rl_ding();" (call_expression "rl_ding()" (identifier "rl_ding") (argument_list "()" (( "(") () ")"))) (; ";")) (expression_statement "*(undefined4 *)PTR_rl_point_001575f0 = uVar7;" (assignment_expression "*(undefined4 *)PTR_rl_point_001575f0 = uVar7" (pointer_expression "*(undefined4 *)PTR_rl_point_001575f0" (* "*") (cast_expression "(undefined4 *)PTR_rl_point_001575f0" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR_rl_point_001575f0"))) (= "=") (identifier "uVar7")) (; ";")) (expression_statement "param_1 = 1;" (assignment_expression "param_1 = 1" (identifier "param_1") (= "=") (number_literal "1")) (; ";")) (} "}")) (else_clause "else {\n      uVar7 = rl_copy_text(iVar3,iVar4);\n      uVar2 = rl_copy_text(iVar5,uVar6);\n      rl_begin_undo_group();\n      puVar1 = PTR_rl_point_001575f0;\n      *(int *)PTR_rl_point_001575f0 = iVar5;\n      rl_delete_text(iVar5,uVar6);\n      rl_insert_text(uVar7);\n      *(int *)puVar1 = iVar3;\n      rl_delete_text(iVar3,iVar4);\n      rl_insert_text(uVar2);\n      *(undefined4 *)puVar1 = uVar6;\n      rl_end_undo_group();\n      (*(code *)PTR_xfree_00156bb4)(uVar7);\n      (*(code *)PTR_xfree_00156bb4)(uVar2);\n      param_1 = 0;\n    }" (else "else") (compound_statement "{\n      uVar7 = rl_copy_text(iVar3,iVar4);\n      uVar2 = rl_copy_text(iVar5,uVar6);\n      rl_begin_undo_group();\n      puVar1 = PTR_rl_point_001575f0;\n      *(int *)PTR_rl_point_001575f0 = iVar5;\n      rl_delete_text(iVar5,uVar6);\n      rl_insert_text(uVar7);\n      *(int *)puVar1 = iVar3;\n      rl_delete_text(iVar3,iVar4);\n      rl_insert_text(uVar2);\n      *(undefined4 *)puVar1 = uVar6;\n      rl_end_undo_group();\n      (*(code *)PTR_xfree_00156bb4)(uVar7);\n      (*(code *)PTR_xfree_00156bb4)(uVar2);\n      param_1 = 0;\n    }" ({ "{") (expression_statement "uVar7 = rl_copy_text(iVar3,iVar4);" (assignment_expression "uVar7 = rl_copy_text(iVar3,iVar4)" (identifier "uVar7") (= "=") (call_expression "rl_copy_text(iVar3,iVar4)" (identifier "rl_copy_text") (argument_list "(iVar3,iVar4)" (( "(") (identifier "iVar3") (, ",") (identifier "iVar4") () ")")))) (; ";")) (expression_statement "uVar2 = rl_copy_text(iVar5,uVar6);" (assignment_expression "uVar2 = rl_copy_text(iVar5,uVar6)" (identifier "uVar2") (= "=") (call_expression "rl_copy_text(iVar5,uVar6)" (identifier "rl_copy_text") (argument_list "(iVar5,uVar6)" (( "(") (identifier "iVar5") (, ",") (identifier "uVar6") () ")")))) (; ";")) (expression_statement "rl_begin_undo_group();" (call_expression "rl_begin_undo_group()" (identifier "rl_begin_undo_group") (argument_list "()" (( "(") () ")"))) (; ";")) (expression_statement "puVar1 = PTR_rl_point_001575f0;" (assignment_expression "puVar1 = PTR_rl_point_001575f0" (identifier "puVar1") (= "=") (identifier "PTR_rl_point_001575f0")) (; ";")) (expression_statement "*(int *)PTR_rl_point_001575f0 = iVar5;" (assignment_expression "*(int *)PTR_rl_point_001575f0 = iVar5" (pointer_expression "*(int *)PTR_rl_point_001575f0" (* "*") (cast_expression "(int *)PTR_rl_point_001575f0" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR_rl_point_001575f0"))) (= "=") (identifier "iVar5")) (; ";")) (expression_statement "rl_delete_text(iVar5,uVar6);" (call_expression "rl_delete_text(iVar5,uVar6)" (identifier "rl_delete_text") (argument_list "(iVar5,uVar6)" (( "(") (identifier "iVar5") (, ",") (identifier "uVar6") () ")"))) (; ";")) (expression_statement "rl_insert_text(uVar7);" (call_expression "rl_insert_text(uVar7)" (identifier "rl_insert_text") (argument_list "(uVar7)" (( "(") (identifier "uVar7") () ")"))) (; ";")) (expression_statement "*(int *)puVar1 = iVar3;" (assignment_expression "*(int *)puVar1 = iVar3" (pointer_expression "*(int *)puVar1" (* "*") (cast_expression "(int *)puVar1" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "puVar1"))) (= "=") (identifier "iVar3")) (; ";")) (expression_statement "rl_delete_text(iVar3,iVar4);" (call_expression "rl_delete_text(iVar3,iVar4)" (identifier "rl_delete_text") (argument_list "(iVar3,iVar4)" (( "(") (identifier "iVar3") (, ",") (identifier "iVar4") () ")"))) (; ";")) (expression_statement "rl_insert_text(uVar2);" (call_expression "rl_insert_text(uVar2)" (identifier "rl_insert_text") (argument_list "(uVar2)" (( "(") (identifier "uVar2") () ")"))) (; ";")) (expression_statement "*(undefined4 *)puVar1 = uVar6;" (assignment_expression "*(undefined4 *)puVar1 = uVar6" (pointer_expression "*(undefined4 *)puVar1" (* "*") (cast_expression "(undefined4 *)puVar1" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "puVar1"))) (= "=") (identifier "uVar6")) (; ";")) (expression_statement "rl_end_undo_group();" (call_expression "rl_end_undo_group()" (identifier "rl_end_undo_group") (argument_list "()" (( "(") () ")"))) (; ";")) (expression_statement "(*(code *)PTR_xfree_00156bb4)(uVar7);" (call_expression "(*(code *)PTR_xfree_00156bb4)(uVar7)" (parenthesized_expression "(*(code *)PTR_xfree_00156bb4)" (( "(") (pointer_expression "*(code *)PTR_xfree_00156bb4" (* "*") (cast_expression "(code *)PTR_xfree_00156bb4" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR_xfree_00156bb4"))) () ")")) (argument_list "(uVar7)" (( "(") (identifier "uVar7") () ")"))) (; ";")) (expression_statement "(*(code *)PTR_xfree_00156bb4)(uVar2);" (call_expression "(*(code *)PTR_xfree_00156bb4)(uVar2)" (parenthesized_expression "(*(code *)PTR_xfree_00156bb4)" (( "(") (pointer_expression "*(code *)PTR_xfree_00156bb4" (* "*") (cast_expression "(code *)PTR_xfree_00156bb4" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR_xfree_00156bb4"))) () ")")) (argument_list "(uVar2)" (( "(") (identifier "uVar2") () ")"))) (; ";")) (expression_statement "param_1 = 0;" (assignment_expression "param_1 = 0" (identifier "param_1") (= "=") (number_literal "0")) (; ";")) (} "}")))) (} "}"))) (return_statement "return param_1;" (return "return") (identifier "param_1") (; ";")) (} "}")))

int function_1(int var_1,int key)

{
  type_1 *puVar1;
  char *string;
  char *string_00;
  int var_5;
  int var_6;
  int var_4;
  int to_00;
  type_2 uVar2;
  
  puVar1 = PTR_rl_point_001575f0;
  if (var_1 != 0) {
    uVar2 = *(type_2 *)PTR_rl_point_001575f0;
    var_2(var_1,key);
    to_00 = *(int *)puVar1;
    var_3(1,key);
    var_4 = *(int *)puVar1;
    var_3(var_1,key);
    var_5 = *(int *)puVar1;
    var_2(1,key);
    var_6 = *(int *)puVar1;
    if ((var_4 == var_5) || (var_4 < var_6)) {
      var_7();
      *(type_2 *)PTR_rl_point_001575f0 = uVar2;
      var_1 = 1;
    }
    else {
      string = var_8(var_5,var_6);
      string_00 = var_8(var_4,to_00);
      var_9();
      puVar1 = PTR_rl_point_001575f0;
      *(int *)PTR_rl_point_001575f0 = var_4;
      var_10(var_4,to_00);
      var_11(string);
      *(int *)puVar1 = var_5;
      var_10(var_5,var_6);
      var_11(string_00);
      *(int *)puVar1 = to_00;
      var_12();
      (*(type_3 *)PTR_xfree_00156bb4)(string);
      (*(type_3 *)PTR_xfree_00156bb4)(string_00);
      var_1 = 0;
    }
  }
  return var_1;
}


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

int MASKED(int param_1,undefined4 param_2)

{
  undefined *puVar1;
  undefined4 uVar2;
  int iVar3;
  int iVar4;
  int iVar5;
  undefined4 uVar6;
  undefined4 uVar7;
  
  puVar1 = PTR_rl_point_001575f0;
  if (param_1 != 0) {
    uVar7 = *(undefined4 *)PTR_rl_point_001575f0;
    rl_forward_word();
    uVar6 = *(undefined4 *)puVar1;
    rl_backward_word(1,param_2);
    iVar5 = *(int *)puVar1;
    rl_backward_word(param_1,param_2);
    iVar3 = *(int *)puVar1;
    rl_forward_word(1,param_2);
    iVar4 = *(int *)puVar1;
    if ((iVar5 == iVar3) || (iVar5 < iVar4)) {
      rl_ding();
      *(undefined4 *)PTR_rl_point_001575f0 = uVar7;
      param_1 = 1;
    }
    else {
      uVar7 = rl_copy_text(iVar3,iVar4);
      uVar2 = rl_copy_text(iVar5,uVar6);
      rl_begin_undo_group();
      puVar1 = PTR_rl_point_001575f0;
      *(int *)PTR_rl_point_001575f0 = iVar5;
      rl_delete_text(iVar5,uVar6);
      rl_insert_text(uVar7);
      *(int *)puVar1 = iVar3;
      rl_delete_text(iVar3,iVar4);
      rl_insert_text(uVar2);
      *(undefined4 *)puVar1 = uVar6;
      rl_end_undo_group();
      (*(code *)PTR_xfree_00156bb4)(uVar7);
      (*(code *)PTR_xfree_00156bb4)(uVar2);
      param_1 = 0;
    }
  }
  return param_1;
}

