
void d_append_buffer(d_print_info *dpi,char *s,size_t l)

{
  char *pcVar1;
  char cVar2;
  void *pvVar3;
  size_t sVar4;
  size_t sVar5;
  
  if (l != 0) {
    pcVar1 = s + l;
    sVar4 = dpi->len;
    do {
      cVar2 = *s;
      if (sVar4 == 0xff) {
        pvVar3 = dpi->opaque;
        dpi->buf[0xff] = '\0';
        (*dpi->callback)(dpi->buf,0xff,pvVar3);
        dpi->flush_count = dpi->flush_count + 1;
        sVar5 = 1;
        sVar4 = 0;
      }
      else {
        sVar5 = sVar4 + 1;
      }
      s = s + 1;
      dpi->len = sVar5;
      dpi->buf[sVar4] = cVar2;
      dpi->last_char = cVar2;
      sVar4 = sVar5;
    } while (s != pcVar1);
    return;
  }
  return;
}



void FUN_002c9320(long param_1,undefined1 *param_2,long param_3)

{
  undefined1 *puVar1;
  undefined1 uVar2;
  long lVar3;
  long lVar4;
  
  if (param_3 != 0) {
    puVar1 = param_2 + param_3;
    lVar3 = *(long *)(param_1 + 0x100);
    do {
      uVar2 = *param_2;
      if (lVar3 == 0xff) {
        *(undefined1 *)(param_1 + 0xff) = 0;
        (**(code **)(param_1 + 0x110))(param_1,0xff,*(undefined8 *)(param_1 + 0x118));
        *(long *)(param_1 + 0x140) = *(long *)(param_1 + 0x140) + 1;
        lVar4 = 1;
        lVar3 = 0;
      }
      else {
        lVar4 = lVar3 + 1;
      }
      param_2 = param_2 + 1;
      *(long *)(param_1 + 0x100) = lVar4;
      *(undefined1 *)(param_1 + lVar3) = uVar2;
      *(undefined1 *)(param_1 + 0x108) = uVar2;
      lVar3 = lVar4;
    } while (param_2 != puVar1);
    return;
  }
  return;
}


TEST RDX,RDX
JZ 0x002c93c0
PUSH R13
LEA R13,[RSI + RDX*0x1]
PUSH R12
PUSH RBP
MOV RBP,RSI
PUSH RBX
MOV RBX,RDI
SUB RSP,0x8
MOV RAX,qword ptr [RDI + 0x100]
JMP 0x002c9372
MOV RDX,RAX
ADD RAX,0x1
ADD RBP,0x1
MOV qword ptr [RBX + 0x100],RAX
MOV byte ptr [RBX + RDX*0x1],R12B
MOV byte ptr [RBX + 0x108],R12B
CMP RBP,R13
JZ 0x002c93b0
MOVZX R12D,byte ptr [RBP]
CMP RAX,0xff
JNZ 0x002c9350
MOV RDX,qword ptr [RBX + 0x118]
MOV byte ptr [RBX + 0xff],0x0
MOV ESI,0xff
MOV RDI,RBX
CALL qword ptr [RBX + 0x110]
ADD qword ptr [RBX + 0x140],0x1
MOV EAX,0x1
XOR EDX,EDX
JMP 0x002c9357
ADD RSP,0x8
POP RBX
POP RBP
POP R12
POP R13
RET
RET
(translation_unit "void FUN_002c9320(long param_1,undefined1 *param_2,long param_3)\n\n{\n  undefined1 *puVar1;\n  undefined1 uVar2;\n  long lVar3;\n  long lVar4;\n  \n  if (param_3 != 0) {\n    puVar1 = param_2 + param_3;\n    lVar3 = *(long *)(param_1 + 0x100);\n    do {\n      uVar2 = *param_2;\n      if (lVar3 == 0xff) {\n        *(undefined1 *)(param_1 + 0xff) = 0;\n        (**(code **)(param_1 + 0x110))(param_1,0xff,*(undefined8 *)(param_1 + 0x118));\n        *(long *)(param_1 + 0x140) = *(long *)(param_1 + 0x140) + 1;\n        lVar4 = 1;\n        lVar3 = 0;\n      }\n      else {\n        lVar4 = lVar3 + 1;\n      }\n      param_2 = param_2 + 1;\n      *(long *)(param_1 + 0x100) = lVar4;\n      *(undefined1 *)(param_1 + lVar3) = uVar2;\n      *(undefined1 *)(param_1 + 0x108) = uVar2;\n      lVar3 = lVar4;\n    } while (param_2 != puVar1);\n    return;\n  }\n  return;\n}\n\n" (function_definition "void FUN_002c9320(long param_1,undefined1 *param_2,long param_3)\n\n{\n  undefined1 *puVar1;\n  undefined1 uVar2;\n  long lVar3;\n  long lVar4;\n  \n  if (param_3 != 0) {\n    puVar1 = param_2 + param_3;\n    lVar3 = *(long *)(param_1 + 0x100);\n    do {\n      uVar2 = *param_2;\n      if (lVar3 == 0xff) {\n        *(undefined1 *)(param_1 + 0xff) = 0;\n        (**(code **)(param_1 + 0x110))(param_1,0xff,*(undefined8 *)(param_1 + 0x118));\n        *(long *)(param_1 + 0x140) = *(long *)(param_1 + 0x140) + 1;\n        lVar4 = 1;\n        lVar3 = 0;\n      }\n      else {\n        lVar4 = lVar3 + 1;\n      }\n      param_2 = param_2 + 1;\n      *(long *)(param_1 + 0x100) = lVar4;\n      *(undefined1 *)(param_1 + lVar3) = uVar2;\n      *(undefined1 *)(param_1 + 0x108) = uVar2;\n      lVar3 = lVar4;\n    } while (param_2 != puVar1);\n    return;\n  }\n  return;\n}" primitive_type (function_declarator "FUN_002c9320(long param_1,undefined1 *param_2,long param_3)" identifier (parameter_list "(long param_1,undefined1 *param_2,long param_3)" ( (parameter_declaration "long param_1" (sized_type_specifier "long" long) identifier) , (parameter_declaration "undefined1 *param_2" type_identifier (pointer_declarator "*param_2" * identifier)) , (parameter_declaration "long param_3" (sized_type_specifier "long" long) identifier) ))) (compound_statement "{\n  undefined1 *puVar1;\n  undefined1 uVar2;\n  long lVar3;\n  long lVar4;\n  \n  if (param_3 != 0) {\n    puVar1 = param_2 + param_3;\n    lVar3 = *(long *)(param_1 + 0x100);\n    do {\n      uVar2 = *param_2;\n      if (lVar3 == 0xff) {\n        *(undefined1 *)(param_1 + 0xff) = 0;\n        (**(code **)(param_1 + 0x110))(param_1,0xff,*(undefined8 *)(param_1 + 0x118));\n        *(long *)(param_1 + 0x140) = *(long *)(param_1 + 0x140) + 1;\n        lVar4 = 1;\n        lVar3 = 0;\n      }\n      else {\n        lVar4 = lVar3 + 1;\n      }\n      param_2 = param_2 + 1;\n      *(long *)(param_1 + 0x100) = lVar4;\n      *(undefined1 *)(param_1 + lVar3) = uVar2;\n      *(undefined1 *)(param_1 + 0x108) = uVar2;\n      lVar3 = lVar4;\n    } while (param_2 != puVar1);\n    return;\n  }\n  return;\n}" { (declaration "undefined1 *puVar1;" type_identifier (pointer_declarator "*puVar1" * identifier) ;) (declaration "undefined1 uVar2;" type_identifier identifier ;) (declaration "long lVar3;" (sized_type_specifier "long" long) identifier ;) (declaration "long lVar4;" (sized_type_specifier "long" long) identifier ;) (if_statement "if (param_3 != 0) {\n    puVar1 = param_2 + param_3;\n    lVar3 = *(long *)(param_1 + 0x100);\n    do {\n      uVar2 = *param_2;\n      if (lVar3 == 0xff) {\n        *(undefined1 *)(param_1 + 0xff) = 0;\n        (**(code **)(param_1 + 0x110))(param_1,0xff,*(undefined8 *)(param_1 + 0x118));\n        *(long *)(param_1 + 0x140) = *(long *)(param_1 + 0x140) + 1;\n        lVar4 = 1;\n        lVar3 = 0;\n      }\n      else {\n        lVar4 = lVar3 + 1;\n      }\n      param_2 = param_2 + 1;\n      *(long *)(param_1 + 0x100) = lVar4;\n      *(undefined1 *)(param_1 + lVar3) = uVar2;\n      *(undefined1 *)(param_1 + 0x108) = uVar2;\n      lVar3 = lVar4;\n    } while (param_2 != puVar1);\n    return;\n  }" if (parenthesized_expression "(param_3 != 0)" ( (binary_expression "param_3 != 0" identifier != number_literal) )) (compound_statement "{\n    puVar1 = param_2 + param_3;\n    lVar3 = *(long *)(param_1 + 0x100);\n    do {\n      uVar2 = *param_2;\n      if (lVar3 == 0xff) {\n        *(undefined1 *)(param_1 + 0xff) = 0;\n        (**(code **)(param_1 + 0x110))(param_1,0xff,*(undefined8 *)(param_1 + 0x118));\n        *(long *)(param_1 + 0x140) = *(long *)(param_1 + 0x140) + 1;\n        lVar4 = 1;\n        lVar3 = 0;\n      }\n      else {\n        lVar4 = lVar3 + 1;\n      }\n      param_2 = param_2 + 1;\n      *(long *)(param_1 + 0x100) = lVar4;\n      *(undefined1 *)(param_1 + lVar3) = uVar2;\n      *(undefined1 *)(param_1 + 0x108) = uVar2;\n      lVar3 = lVar4;\n    } while (param_2 != puVar1);\n    return;\n  }" { (expression_statement "puVar1 = param_2 + param_3;" (assignment_expression "puVar1 = param_2 + param_3" identifier = (binary_expression "param_2 + param_3" identifier + identifier)) ;) (expression_statement "lVar3 = *(long *)(param_1 + 0x100);" (assignment_expression "lVar3 = *(long *)(param_1 + 0x100)" identifier = (pointer_expression "*(long *)(param_1 + 0x100)" * (cast_expression "(long *)(param_1 + 0x100)" ( (type_descriptor "long *" (sized_type_specifier "long" long) (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x100)" ( (binary_expression "param_1 + 0x100" identifier + number_literal) ))))) ;) (do_statement "do {\n      uVar2 = *param_2;\n      if (lVar3 == 0xff) {\n        *(undefined1 *)(param_1 + 0xff) = 0;\n        (**(code **)(param_1 + 0x110))(param_1,0xff,*(undefined8 *)(param_1 + 0x118));\n        *(long *)(param_1 + 0x140) = *(long *)(param_1 + 0x140) + 1;\n        lVar4 = 1;\n        lVar3 = 0;\n      }\n      else {\n        lVar4 = lVar3 + 1;\n      }\n      param_2 = param_2 + 1;\n      *(long *)(param_1 + 0x100) = lVar4;\n      *(undefined1 *)(param_1 + lVar3) = uVar2;\n      *(undefined1 *)(param_1 + 0x108) = uVar2;\n      lVar3 = lVar4;\n    } while (param_2 != puVar1);" do (compound_statement "{\n      uVar2 = *param_2;\n      if (lVar3 == 0xff) {\n        *(undefined1 *)(param_1 + 0xff) = 0;\n        (**(code **)(param_1 + 0x110))(param_1,0xff,*(undefined8 *)(param_1 + 0x118));\n        *(long *)(param_1 + 0x140) = *(long *)(param_1 + 0x140) + 1;\n        lVar4 = 1;\n        lVar3 = 0;\n      }\n      else {\n        lVar4 = lVar3 + 1;\n      }\n      param_2 = param_2 + 1;\n      *(long *)(param_1 + 0x100) = lVar4;\n      *(undefined1 *)(param_1 + lVar3) = uVar2;\n      *(undefined1 *)(param_1 + 0x108) = uVar2;\n      lVar3 = lVar4;\n    }" { (expression_statement "uVar2 = *param_2;" (assignment_expression "uVar2 = *param_2" identifier = (pointer_expression "*param_2" * identifier)) ;) (if_statement "if (lVar3 == 0xff) {\n        *(undefined1 *)(param_1 + 0xff) = 0;\n        (**(code **)(param_1 + 0x110))(param_1,0xff,*(undefined8 *)(param_1 + 0x118));\n        *(long *)(param_1 + 0x140) = *(long *)(param_1 + 0x140) + 1;\n        lVar4 = 1;\n        lVar3 = 0;\n      }\n      else {\n        lVar4 = lVar3 + 1;\n      }" if (parenthesized_expression "(lVar3 == 0xff)" ( (binary_expression "lVar3 == 0xff" identifier == number_literal) )) (compound_statement "{\n        *(undefined1 *)(param_1 + 0xff) = 0;\n        (**(code **)(param_1 + 0x110))(param_1,0xff,*(undefined8 *)(param_1 + 0x118));\n        *(long *)(param_1 + 0x140) = *(long *)(param_1 + 0x140) + 1;\n        lVar4 = 1;\n        lVar3 = 0;\n      }" { (expression_statement "*(undefined1 *)(param_1 + 0xff) = 0;" (assignment_expression "*(undefined1 *)(param_1 + 0xff) = 0" (pointer_expression "*(undefined1 *)(param_1 + 0xff)" * (cast_expression "(undefined1 *)(param_1 + 0xff)" ( (type_descriptor "undefined1 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0xff)" ( (binary_expression "param_1 + 0xff" identifier + number_literal) )))) = number_literal) ;) (expression_statement "(**(code **)(param_1 + 0x110))(param_1,0xff,*(undefined8 *)(param_1 + 0x118));" (call_expression "(**(code **)(param_1 + 0x110))(param_1,0xff,*(undefined8 *)(param_1 + 0x118))" (parenthesized_expression "(**(code **)(param_1 + 0x110))" ( (pointer_expression "**(code **)(param_1 + 0x110)" * (pointer_expression "*(code **)(param_1 + 0x110)" * (cast_expression "(code **)(param_1 + 0x110)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(param_1 + 0x110)" ( (binary_expression "param_1 + 0x110" identifier + number_literal) ))))) )) (argument_list "(param_1,0xff,*(undefined8 *)(param_1 + 0x118))" ( identifier , number_literal , (pointer_expression "*(undefined8 *)(param_1 + 0x118)" * (cast_expression "(undefined8 *)(param_1 + 0x118)" ( (type_descriptor "undefined8 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x118)" ( (binary_expression "param_1 + 0x118" identifier + number_literal) )))) ))) ;) (expression_statement "*(long *)(param_1 + 0x140) = *(long *)(param_1 + 0x140) + 1;" (assignment_expression "*(long *)(param_1 + 0x140) = *(long *)(param_1 + 0x140) + 1" (pointer_expression "*(long *)(param_1 + 0x140)" * (cast_expression "(long *)(param_1 + 0x140)" ( (type_descriptor "long *" (sized_type_specifier "long" long) (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x140)" ( (binary_expression "param_1 + 0x140" identifier + number_literal) )))) = (binary_expression "*(long *)(param_1 + 0x140) + 1" (pointer_expression "*(long *)(param_1 + 0x140)" * (cast_expression "(long *)(param_1 + 0x140)" ( (type_descriptor "long *" (sized_type_specifier "long" long) (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x140)" ( (binary_expression "param_1 + 0x140" identifier + number_literal) )))) + number_literal)) ;) (expression_statement "lVar4 = 1;" (assignment_expression "lVar4 = 1" identifier = number_literal) ;) (expression_statement "lVar3 = 0;" (assignment_expression "lVar3 = 0" identifier = number_literal) ;) }) (else_clause "else {\n        lVar4 = lVar3 + 1;\n      }" else (compound_statement "{\n        lVar4 = lVar3 + 1;\n      }" { (expression_statement "lVar4 = lVar3 + 1;" (assignment_expression "lVar4 = lVar3 + 1" identifier = (binary_expression "lVar3 + 1" identifier + number_literal)) ;) }))) (expression_statement "param_2 = param_2 + 1;" (assignment_expression "param_2 = param_2 + 1" identifier = (binary_expression "param_2 + 1" identifier + number_literal)) ;) (expression_statement "*(long *)(param_1 + 0x100) = lVar4;" (assignment_expression "*(long *)(param_1 + 0x100) = lVar4" (pointer_expression "*(long *)(param_1 + 0x100)" * (cast_expression "(long *)(param_1 + 0x100)" ( (type_descriptor "long *" (sized_type_specifier "long" long) (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x100)" ( (binary_expression "param_1 + 0x100" identifier + number_literal) )))) = identifier) ;) (expression_statement "*(undefined1 *)(param_1 + lVar3) = uVar2;" (assignment_expression "*(undefined1 *)(param_1 + lVar3) = uVar2" (pointer_expression "*(undefined1 *)(param_1 + lVar3)" * (cast_expression "(undefined1 *)(param_1 + lVar3)" ( (type_descriptor "undefined1 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + lVar3)" ( (binary_expression "param_1 + lVar3" identifier + identifier) )))) = identifier) ;) (expression_statement "*(undefined1 *)(param_1 + 0x108) = uVar2;" (assignment_expression "*(undefined1 *)(param_1 + 0x108) = uVar2" (pointer_expression "*(undefined1 *)(param_1 + 0x108)" * (cast_expression "(undefined1 *)(param_1 + 0x108)" ( (type_descriptor "undefined1 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x108)" ( (binary_expression "param_1 + 0x108" identifier + number_literal) )))) = identifier) ;) (expression_statement "lVar3 = lVar4;" (assignment_expression "lVar3 = lVar4" identifier = identifier) ;) }) while (parenthesized_expression "(param_2 != puVar1)" ( (binary_expression "param_2 != puVar1" identifier != identifier) )) ;) (return_statement "return;" return ;) })) (return_statement "return;" return ;) })))
(translation_unit "void d_append_buffer(d_print_info *dpi,char *s,size_t l)\n\n{\n  char *pcVar1;\n  char cVar2;\n  void *pvVar3;\n  size_t sVar4;\n  size_t sVar5;\n  \n  if (l != 0) {\n    pcVar1 = s + l;\n    sVar4 = dpi->len;\n    do {\n      cVar2 = *s;\n      if (sVar4 == 0xff) {\n        pvVar3 = dpi->opaque;\n        dpi->buf[0xff] = '\0';\n        (*dpi->callback)(dpi->buf,0xff,pvVar3);\n        dpi->flush_count = dpi->flush_count + 1;\n        sVar5 = 1;\n        sVar4 = 0;\n      }\n      else {\n        sVar5 = sVar4 + 1;\n      }\n      s = s + 1;\n      dpi->len = sVar5;\n      dpi->buf[sVar4] = cVar2;\n      dpi->last_char = cVar2;\n      sVar4 = sVar5;\n    } while (s != pcVar1);\n    return;\n  }\n  return;\n}\n\n" (function_definition "void d_append_buffer(d_print_info *dpi,char *s,size_t l)\n\n{\n  char *pcVar1;\n  char cVar2;\n  void *pvVar3;\n  size_t sVar4;\n  size_t sVar5;\n  \n  if (l != 0) {\n    pcVar1 = s + l;\n    sVar4 = dpi->len;\n    do {\n      cVar2 = *s;\n      if (sVar4 == 0xff) {\n        pvVar3 = dpi->opaque;\n        dpi->buf[0xff] = '\0';\n        (*dpi->callback)(dpi->buf,0xff,pvVar3);\n        dpi->flush_count = dpi->flush_count + 1;\n        sVar5 = 1;\n        sVar4 = 0;\n      }\n      else {\n        sVar5 = sVar4 + 1;\n      }\n      s = s + 1;\n      dpi->len = sVar5;\n      dpi->buf[sVar4] = cVar2;\n      dpi->last_char = cVar2;\n      sVar4 = sVar5;\n    } while (s != pcVar1);\n    return;\n  }\n  return;\n}" primitive_type (function_declarator "d_append_buffer(d_print_info *dpi,char *s,size_t l)" identifier (parameter_list "(d_print_info *dpi,char *s,size_t l)" ( (parameter_declaration "d_print_info *dpi" type_identifier (pointer_declarator "*dpi" * identifier)) , (parameter_declaration "char *s" primitive_type (pointer_declarator "*s" * identifier)) , (parameter_declaration "size_t l" primitive_type identifier) ))) (compound_statement "{\n  char *pcVar1;\n  char cVar2;\n  void *pvVar3;\n  size_t sVar4;\n  size_t sVar5;\n  \n  if (l != 0) {\n    pcVar1 = s + l;\n    sVar4 = dpi->len;\n    do {\n      cVar2 = *s;\n      if (sVar4 == 0xff) {\n        pvVar3 = dpi->opaque;\n        dpi->buf[0xff] = '\0';\n        (*dpi->callback)(dpi->buf,0xff,pvVar3);\n        dpi->flush_count = dpi->flush_count + 1;\n        sVar5 = 1;\n        sVar4 = 0;\n      }\n      else {\n        sVar5 = sVar4 + 1;\n      }\n      s = s + 1;\n      dpi->len = sVar5;\n      dpi->buf[sVar4] = cVar2;\n      dpi->last_char = cVar2;\n      sVar4 = sVar5;\n    } while (s != pcVar1);\n    return;\n  }\n  return;\n}" { (declaration "char *pcVar1;" primitive_type (pointer_declarator "*pcVar1" * identifier) ;) (declaration "char cVar2;" primitive_type identifier ;) (declaration "void *pvVar3;" primitive_type (pointer_declarator "*pvVar3" * identifier) ;) (declaration "size_t sVar4;" primitive_type identifier ;) (declaration "size_t sVar5;" primitive_type identifier ;) (if_statement "if (l != 0) {\n    pcVar1 = s + l;\n    sVar4 = dpi->len;\n    do {\n      cVar2 = *s;\n      if (sVar4 == 0xff) {\n        pvVar3 = dpi->opaque;\n        dpi->buf[0xff] = '\0';\n        (*dpi->callback)(dpi->buf,0xff,pvVar3);\n        dpi->flush_count = dpi->flush_count + 1;\n        sVar5 = 1;\n        sVar4 = 0;\n      }\n      else {\n        sVar5 = sVar4 + 1;\n      }\n      s = s + 1;\n      dpi->len = sVar5;\n      dpi->buf[sVar4] = cVar2;\n      dpi->last_char = cVar2;\n      sVar4 = sVar5;\n    } while (s != pcVar1);\n    return;\n  }" if (parenthesized_expression "(l != 0)" ( (binary_expression "l != 0" identifier != number_literal) )) (compound_statement "{\n    pcVar1 = s + l;\n    sVar4 = dpi->len;\n    do {\n      cVar2 = *s;\n      if (sVar4 == 0xff) {\n        pvVar3 = dpi->opaque;\n        dpi->buf[0xff] = '\0';\n        (*dpi->callback)(dpi->buf,0xff,pvVar3);\n        dpi->flush_count = dpi->flush_count + 1;\n        sVar5 = 1;\n        sVar4 = 0;\n      }\n      else {\n        sVar5 = sVar4 + 1;\n      }\n      s = s + 1;\n      dpi->len = sVar5;\n      dpi->buf[sVar4] = cVar2;\n      dpi->last_char = cVar2;\n      sVar4 = sVar5;\n    } while (s != pcVar1);\n    return;\n  }" { (expression_statement "pcVar1 = s + l;" (assignment_expression "pcVar1 = s + l" identifier = (binary_expression "s + l" identifier + identifier)) ;) (expression_statement "sVar4 = dpi->len;" (assignment_expression "sVar4 = dpi->len" identifier = (field_expression "dpi->len" identifier -> field_identifier)) ;) (do_statement "do {\n      cVar2 = *s;\n      if (sVar4 == 0xff) {\n        pvVar3 = dpi->opaque;\n        dpi->buf[0xff] = '\0';\n        (*dpi->callback)(dpi->buf,0xff,pvVar3);\n        dpi->flush_count = dpi->flush_count + 1;\n        sVar5 = 1;\n        sVar4 = 0;\n      }\n      else {\n        sVar5 = sVar4 + 1;\n      }\n      s = s + 1;\n      dpi->len = sVar5;\n      dpi->buf[sVar4] = cVar2;\n      dpi->last_char = cVar2;\n      sVar4 = sVar5;\n    } while (s != pcVar1);" do (compound_statement "{\n      cVar2 = *s;\n      if (sVar4 == 0xff) {\n        pvVar3 = dpi->opaque;\n        dpi->buf[0xff] = '\0';\n        (*dpi->callback)(dpi->buf,0xff,pvVar3);\n        dpi->flush_count = dpi->flush_count + 1;\n        sVar5 = 1;\n        sVar4 = 0;\n      }\n      else {\n        sVar5 = sVar4 + 1;\n      }\n      s = s + 1;\n      dpi->len = sVar5;\n      dpi->buf[sVar4] = cVar2;\n      dpi->last_char = cVar2;\n      sVar4 = sVar5;\n    }" { (expression_statement "cVar2 = *s;" (assignment_expression "cVar2 = *s" identifier = (pointer_expression "*s" * identifier)) ;) (if_statement "if (sVar4 == 0xff) {\n        pvVar3 = dpi->opaque;\n        dpi->buf[0xff] = '\0';\n        (*dpi->callback)(dpi->buf,0xff,pvVar3);\n        dpi->flush_count = dpi->flush_count + 1;\n        sVar5 = 1;\n        sVar4 = 0;\n      }\n      else {\n        sVar5 = sVar4 + 1;\n      }" if (parenthesized_expression "(sVar4 == 0xff)" ( (binary_expression "sVar4 == 0xff" identifier == number_literal) )) (compound_statement "{\n        pvVar3 = dpi->opaque;\n        dpi->buf[0xff] = '\0';\n        (*dpi->callback)(dpi->buf,0xff,pvVar3);\n        dpi->flush_count = dpi->flush_count + 1;\n        sVar5 = 1;\n        sVar4 = 0;\n      }" { (expression_statement "pvVar3 = dpi->opaque;" (assignment_expression "pvVar3 = dpi->opaque" identifier = (field_expression "dpi->opaque" identifier -> field_identifier)) ;) (expression_statement "dpi->buf[0xff] = '\0';" (assignment_expression "dpi->buf[0xff] = '\0'" (subscript_expression "dpi->buf[0xff]" (field_expression "dpi->buf" identifier -> field_identifier) [ number_literal ]) = (char_literal "'\0'" ' escape_sequence ')) ;) (expression_statement "(*dpi->callback)(dpi->buf,0xff,pvVar3);" (call_expression "(*dpi->callback)(dpi->buf,0xff,pvVar3)" (parenthesized_expression "(*dpi->callback)" ( (pointer_expression "*dpi->callback" * (field_expression "dpi->callback" identifier -> field_identifier)) )) (argument_list "(dpi->buf,0xff,pvVar3)" ( (field_expression "dpi->buf" identifier -> field_identifier) , number_literal , identifier ))) ;) (expression_statement "dpi->flush_count = dpi->flush_count + 1;" (assignment_expression "dpi->flush_count = dpi->flush_count + 1" (field_expression "dpi->flush_count" identifier -> field_identifier) = (binary_expression "dpi->flush_count + 1" (field_expression "dpi->flush_count" identifier -> field_identifier) + number_literal)) ;) (expression_statement "sVar5 = 1;" (assignment_expression "sVar5 = 1" identifier = number_literal) ;) (expression_statement "sVar4 = 0;" (assignment_expression "sVar4 = 0" identifier = number_literal) ;) }) (else_clause "else {\n        sVar5 = sVar4 + 1;\n      }" else (compound_statement "{\n        sVar5 = sVar4 + 1;\n      }" { (expression_statement "sVar5 = sVar4 + 1;" (assignment_expression "sVar5 = sVar4 + 1" identifier = (binary_expression "sVar4 + 1" identifier + number_literal)) ;) }))) (expression_statement "s = s + 1;" (assignment_expression "s = s + 1" identifier = (binary_expression "s + 1" identifier + number_literal)) ;) (expression_statement "dpi->len = sVar5;" (assignment_expression "dpi->len = sVar5" (field_expression "dpi->len" identifier -> field_identifier) = identifier) ;) (expression_statement "dpi->buf[sVar4] = cVar2;" (assignment_expression "dpi->buf[sVar4] = cVar2" (subscript_expression "dpi->buf[sVar4]" (field_expression "dpi->buf" identifier -> field_identifier) [ identifier ]) = identifier) ;) (expression_statement "dpi->last_char = cVar2;" (assignment_expression "dpi->last_char = cVar2" (field_expression "dpi->last_char" identifier -> field_identifier) = identifier) ;) (expression_statement "sVar4 = sVar5;" (assignment_expression "sVar4 = sVar5" identifier = identifier) ;) }) while (parenthesized_expression "(s != pcVar1)" ( (binary_expression "s != pcVar1" identifier != identifier) )) ;) (return_statement "return;" return ;) })) (return_statement "return;" return ;) })))
(translation_unit "void FUN_002c9320(long param_1,undefined1 *param_2,long param_3)\n\n{\n  undefined1 *puVar1;\n  undefined1 uVar2;\n  long lVar3;\n  long lVar4;\n  \n  if (param_3 != 0) {\n    puVar1 = param_2 + param_3;\n    lVar3 = *(long *)(param_1 + 0x100);\n    do {\n      uVar2 = *param_2;\n      if (lVar3 == 0xff) {\n        *(undefined1 *)(param_1 + 0xff) = 0;\n        (**(code **)(param_1 + 0x110))(param_1,0xff,*(undefined8 *)(param_1 + 0x118));\n        *(long *)(param_1 + 0x140) = *(long *)(param_1 + 0x140) + 1;\n        lVar4 = 1;\n        lVar3 = 0;\n      }\n      else {\n        lVar4 = lVar3 + 1;\n      }\n      param_2 = param_2 + 1;\n      *(long *)(param_1 + 0x100) = lVar4;\n      *(undefined1 *)(param_1 + lVar3) = uVar2;\n      *(undefined1 *)(param_1 + 0x108) = uVar2;\n      lVar3 = lVar4;\n    } while (param_2 != puVar1);\n    return;\n  }\n  return;\n}\n\n" (function_definition "void FUN_002c9320(long param_1,undefined1 *param_2,long param_3)\n\n{\n  undefined1 *puVar1;\n  undefined1 uVar2;\n  long lVar3;\n  long lVar4;\n  \n  if (param_3 != 0) {\n    puVar1 = param_2 + param_3;\n    lVar3 = *(long *)(param_1 + 0x100);\n    do {\n      uVar2 = *param_2;\n      if (lVar3 == 0xff) {\n        *(undefined1 *)(param_1 + 0xff) = 0;\n        (**(code **)(param_1 + 0x110))(param_1,0xff,*(undefined8 *)(param_1 + 0x118));\n        *(long *)(param_1 + 0x140) = *(long *)(param_1 + 0x140) + 1;\n        lVar4 = 1;\n        lVar3 = 0;\n      }\n      else {\n        lVar4 = lVar3 + 1;\n      }\n      param_2 = param_2 + 1;\n      *(long *)(param_1 + 0x100) = lVar4;\n      *(undefined1 *)(param_1 + lVar3) = uVar2;\n      *(undefined1 *)(param_1 + 0x108) = uVar2;\n      lVar3 = lVar4;\n    } while (param_2 != puVar1);\n    return;\n  }\n  return;\n}" primitive_type (function_declarator "FUN_002c9320(long param_1,undefined1 *param_2,long param_3)" identifier (parameter_list "(long param_1,undefined1 *param_2,long param_3)" ( (parameter_declaration "long param_1" (sized_type_specifier "long" long) identifier) , (parameter_declaration "undefined1 *param_2" type_identifier (pointer_declarator "*param_2" * identifier)) , (parameter_declaration "long param_3" (sized_type_specifier "long" long) identifier) ))) (compound_statement "{\n  undefined1 *puVar1;\n  undefined1 uVar2;\n  long lVar3;\n  long lVar4;\n  \n  if (param_3 != 0) {\n    puVar1 = param_2 + param_3;\n    lVar3 = *(long *)(param_1 + 0x100);\n    do {\n      uVar2 = *param_2;\n      if (lVar3 == 0xff) {\n        *(undefined1 *)(param_1 + 0xff) = 0;\n        (**(code **)(param_1 + 0x110))(param_1,0xff,*(undefined8 *)(param_1 + 0x118));\n        *(long *)(param_1 + 0x140) = *(long *)(param_1 + 0x140) + 1;\n        lVar4 = 1;\n        lVar3 = 0;\n      }\n      else {\n        lVar4 = lVar3 + 1;\n      }\n      param_2 = param_2 + 1;\n      *(long *)(param_1 + 0x100) = lVar4;\n      *(undefined1 *)(param_1 + lVar3) = uVar2;\n      *(undefined1 *)(param_1 + 0x108) = uVar2;\n      lVar3 = lVar4;\n    } while (param_2 != puVar1);\n    return;\n  }\n  return;\n}" { (declaration "undefined1 *puVar1;" type_identifier (pointer_declarator "*puVar1" * identifier) ;) (declaration "undefined1 uVar2;" type_identifier identifier ;) (declaration "long lVar3;" (sized_type_specifier "long" long) identifier ;) (declaration "long lVar4;" (sized_type_specifier "long" long) identifier ;) (if_statement "if (param_3 != 0) {\n    puVar1 = param_2 + param_3;\n    lVar3 = *(long *)(param_1 + 0x100);\n    do {\n      uVar2 = *param_2;\n      if (lVar3 == 0xff) {\n        *(undefined1 *)(param_1 + 0xff) = 0;\n        (**(code **)(param_1 + 0x110))(param_1,0xff,*(undefined8 *)(param_1 + 0x118));\n        *(long *)(param_1 + 0x140) = *(long *)(param_1 + 0x140) + 1;\n        lVar4 = 1;\n        lVar3 = 0;\n      }\n      else {\n        lVar4 = lVar3 + 1;\n      }\n      param_2 = param_2 + 1;\n      *(long *)(param_1 + 0x100) = lVar4;\n      *(undefined1 *)(param_1 + lVar3) = uVar2;\n      *(undefined1 *)(param_1 + 0x108) = uVar2;\n      lVar3 = lVar4;\n    } while (param_2 != puVar1);\n    return;\n  }" if (parenthesized_expression "(param_3 != 0)" ( (binary_expression "param_3 != 0" identifier != number_literal) )) (compound_statement "{\n    puVar1 = param_2 + param_3;\n    lVar3 = *(long *)(param_1 + 0x100);\n    do {\n      uVar2 = *param_2;\n      if (lVar3 == 0xff) {\n        *(undefined1 *)(param_1 + 0xff) = 0;\n        (**(code **)(param_1 + 0x110))(param_1,0xff,*(undefined8 *)(param_1 + 0x118));\n        *(long *)(param_1 + 0x140) = *(long *)(param_1 + 0x140) + 1;\n        lVar4 = 1;\n        lVar3 = 0;\n      }\n      else {\n        lVar4 = lVar3 + 1;\n      }\n      param_2 = param_2 + 1;\n      *(long *)(param_1 + 0x100) = lVar4;\n      *(undefined1 *)(param_1 + lVar3) = uVar2;\n      *(undefined1 *)(param_1 + 0x108) = uVar2;\n      lVar3 = lVar4;\n    } while (param_2 != puVar1);\n    return;\n  }" { (expression_statement "puVar1 = param_2 + param_3;" (assignment_expression "puVar1 = param_2 + param_3" identifier = (binary_expression "param_2 + param_3" identifier + identifier)) ;) (expression_statement "lVar3 = *(long *)(param_1 + 0x100);" (assignment_expression "lVar3 = *(long *)(param_1 + 0x100)" identifier = (pointer_expression "*(long *)(param_1 + 0x100)" * (cast_expression "(long *)(param_1 + 0x100)" ( (type_descriptor "long *" (sized_type_specifier "long" long) (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x100)" ( (binary_expression "param_1 + 0x100" identifier + number_literal) ))))) ;) (do_statement "do {\n      uVar2 = *param_2;\n      if (lVar3 == 0xff) {\n        *(undefined1 *)(param_1 + 0xff) = 0;\n        (**(code **)(param_1 + 0x110))(param_1,0xff,*(undefined8 *)(param_1 + 0x118));\n        *(long *)(param_1 + 0x140) = *(long *)(param_1 + 0x140) + 1;\n        lVar4 = 1;\n        lVar3 = 0;\n      }\n      else {\n        lVar4 = lVar3 + 1;\n      }\n      param_2 = param_2 + 1;\n      *(long *)(param_1 + 0x100) = lVar4;\n      *(undefined1 *)(param_1 + lVar3) = uVar2;\n      *(undefined1 *)(param_1 + 0x108) = uVar2;\n      lVar3 = lVar4;\n    } while (param_2 != puVar1);" do (compound_statement "{\n      uVar2 = *param_2;\n      if (lVar3 == 0xff) {\n        *(undefined1 *)(param_1 + 0xff) = 0;\n        (**(code **)(param_1 + 0x110))(param_1,0xff,*(undefined8 *)(param_1 + 0x118));\n        *(long *)(param_1 + 0x140) = *(long *)(param_1 + 0x140) + 1;\n        lVar4 = 1;\n        lVar3 = 0;\n      }\n      else {\n        lVar4 = lVar3 + 1;\n      }\n      param_2 = param_2 + 1;\n      *(long *)(param_1 + 0x100) = lVar4;\n      *(undefined1 *)(param_1 + lVar3) = uVar2;\n      *(undefined1 *)(param_1 + 0x108) = uVar2;\n      lVar3 = lVar4;\n    }" { (expression_statement "uVar2 = *param_2;" (assignment_expression "uVar2 = *param_2" identifier = (pointer_expression "*param_2" * identifier)) ;) (if_statement "if (lVar3 == 0xff) {\n        *(undefined1 *)(param_1 + 0xff) = 0;\n        (**(code **)(param_1 + 0x110))(param_1,0xff,*(undefined8 *)(param_1 + 0x118));\n        *(long *)(param_1 + 0x140) = *(long *)(param_1 + 0x140) + 1;\n        lVar4 = 1;\n        lVar3 = 0;\n      }\n      else {\n        lVar4 = lVar3 + 1;\n      }" if (parenthesized_expression "(lVar3 == 0xff)" ( (binary_expression "lVar3 == 0xff" identifier == number_literal) )) (compound_statement "{\n        *(undefined1 *)(param_1 + 0xff) = 0;\n        (**(code **)(param_1 + 0x110))(param_1,0xff,*(undefined8 *)(param_1 + 0x118));\n        *(long *)(param_1 + 0x140) = *(long *)(param_1 + 0x140) + 1;\n        lVar4 = 1;\n        lVar3 = 0;\n      }" { (expression_statement "*(undefined1 *)(param_1 + 0xff) = 0;" (assignment_expression "*(undefined1 *)(param_1 + 0xff) = 0" (pointer_expression "*(undefined1 *)(param_1 + 0xff)" * (cast_expression "(undefined1 *)(param_1 + 0xff)" ( (type_descriptor "undefined1 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0xff)" ( (binary_expression "param_1 + 0xff" identifier + number_literal) )))) = number_literal) ;) (expression_statement "(**(code **)(param_1 + 0x110))(param_1,0xff,*(undefined8 *)(param_1 + 0x118));" (call_expression "(**(code **)(param_1 + 0x110))(param_1,0xff,*(undefined8 *)(param_1 + 0x118))" (parenthesized_expression "(**(code **)(param_1 + 0x110))" ( (pointer_expression "**(code **)(param_1 + 0x110)" * (pointer_expression "*(code **)(param_1 + 0x110)" * (cast_expression "(code **)(param_1 + 0x110)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(param_1 + 0x110)" ( (binary_expression "param_1 + 0x110" identifier + number_literal) ))))) )) (argument_list "(param_1,0xff,*(undefined8 *)(param_1 + 0x118))" ( identifier , number_literal , (pointer_expression "*(undefined8 *)(param_1 + 0x118)" * (cast_expression "(undefined8 *)(param_1 + 0x118)" ( (type_descriptor "undefined8 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x118)" ( (binary_expression "param_1 + 0x118" identifier + number_literal) )))) ))) ;) (expression_statement "*(long *)(param_1 + 0x140) = *(long *)(param_1 + 0x140) + 1;" (assignment_expression "*(long *)(param_1 + 0x140) = *(long *)(param_1 + 0x140) + 1" (pointer_expression "*(long *)(param_1 + 0x140)" * (cast_expression "(long *)(param_1 + 0x140)" ( (type_descriptor "long *" (sized_type_specifier "long" long) (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x140)" ( (binary_expression "param_1 + 0x140" identifier + number_literal) )))) = (binary_expression "*(long *)(param_1 + 0x140) + 1" (pointer_expression "*(long *)(param_1 + 0x140)" * (cast_expression "(long *)(param_1 + 0x140)" ( (type_descriptor "long *" (sized_type_specifier "long" long) (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x140)" ( (binary_expression "param_1 + 0x140" identifier + number_literal) )))) + number_literal)) ;) (expression_statement "lVar4 = 1;" (assignment_expression "lVar4 = 1" identifier = number_literal) ;) (expression_statement "lVar3 = 0;" (assignment_expression "lVar3 = 0" identifier = number_literal) ;) }) (else_clause "else {\n        lVar4 = lVar3 + 1;\n      }" else (compound_statement "{\n        lVar4 = lVar3 + 1;\n      }" { (expression_statement "lVar4 = lVar3 + 1;" (assignment_expression "lVar4 = lVar3 + 1" identifier = (binary_expression "lVar3 + 1" identifier + number_literal)) ;) }))) (expression_statement "param_2 = param_2 + 1;" (assignment_expression "param_2 = param_2 + 1" identifier = (binary_expression "param_2 + 1" identifier + number_literal)) ;) (expression_statement "*(long *)(param_1 + 0x100) = lVar4;" (assignment_expression "*(long *)(param_1 + 0x100) = lVar4" (pointer_expression "*(long *)(param_1 + 0x100)" * (cast_expression "(long *)(param_1 + 0x100)" ( (type_descriptor "long *" (sized_type_specifier "long" long) (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x100)" ( (binary_expression "param_1 + 0x100" identifier + number_literal) )))) = identifier) ;) (expression_statement "*(undefined1 *)(param_1 + lVar3) = uVar2;" (assignment_expression "*(undefined1 *)(param_1 + lVar3) = uVar2" (pointer_expression "*(undefined1 *)(param_1 + lVar3)" * (cast_expression "(undefined1 *)(param_1 + lVar3)" ( (type_descriptor "undefined1 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + lVar3)" ( (binary_expression "param_1 + lVar3" identifier + identifier) )))) = identifier) ;) (expression_statement "*(undefined1 *)(param_1 + 0x108) = uVar2;" (assignment_expression "*(undefined1 *)(param_1 + 0x108) = uVar2" (pointer_expression "*(undefined1 *)(param_1 + 0x108)" * (cast_expression "(undefined1 *)(param_1 + 0x108)" ( (type_descriptor "undefined1 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x108)" ( (binary_expression "param_1 + 0x108" identifier + number_literal) )))) = identifier) ;) (expression_statement "lVar3 = lVar4;" (assignment_expression "lVar3 = lVar4" identifier = identifier) ;) }) while (parenthesized_expression "(param_2 != puVar1)" ( (binary_expression "param_2 != puVar1" identifier != identifier) )) ;) (return_statement "return;" return ;) })) (return_statement "return;" return ;) })))
(translation_unit (function_definition TYPE (function_declarator IDENT (parameter_list ( (parameter_declaration (sized_type_specifier long) IDENT) , (parameter_declaration TYPE (pointer_declarator * IDENT)) , (parameter_declaration (sized_type_specifier long) IDENT) ))) (compound_statement { (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE IDENT ;) (declaration (sized_type_specifier long) IDENT ;) (declaration (sized_type_specifier long) IDENT ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT != LIT) )) (compound_statement { (expression_statement (assignment_expression IDENT = (binary_expression IDENT + IDENT)) ;) (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor (sized_type_specifier long) (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) ;) (do_statement do (compound_statement { (expression_statement (assignment_expression IDENT = (pointer_expression * IDENT)) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT == LIT) )) (compound_statement { (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) = LIT) ;) (expression_statement (call_expression (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 , LIT , (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) ))) ;) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor (sized_type_specifier long) (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) = (binary_expression (pointer_expression * (cast_expression ( (type_descriptor (sized_type_specifier long) (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) + LIT)) ;) (expression_statement (assignment_expression IDENT = LIT) ;) (expression_statement (assignment_expression IDENT = LIT) ;) }) (else_clause else (compound_statement { (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) }))) (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor (sized_type_specifier long) (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) = IDENT) ;) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + IDENT) )))) = IDENT) ;) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) = IDENT) ;) (expression_statement (assignment_expression IDENT = IDENT) ;) }) while (parenthesized_expression ( (binary_expression IDENT != IDENT) )) ;) (return_statement return ;) })) (return_statement return ;) })))
(function_definition "void FUN_002c9320(long param_1,undefined1 *param_2,long param_3)\n\n{\n  undefined1 *puVar1;\n  undefined1 uVar2;\n  long lVar3;\n  long lVar4;\n  \n  if (param_3 != 0) {\n    puVar1 = param_2 + param_3;\n    lVar3 = *(long *)(param_1 + 0x100);\n    do {\n      uVar2 = *param_2;\n      if (lVar3 == 0xff) {\n        *(undefined1 *)(param_1 + 0xff) = 0;\n        (**(code **)(param_1 + 0x110))(param_1,0xff,*(undefined8 *)(param_1 + 0x118));\n        *(long *)(param_1 + 0x140) = *(long *)(param_1 + 0x140) + 1;\n        lVar4 = 1;\n        lVar3 = 0;\n      }\n      else {\n        lVar4 = lVar3 + 1;\n      }\n      param_2 = param_2 + 1;\n      *(long *)(param_1 + 0x100) = lVar4;\n      *(undefined1 *)(param_1 + lVar3) = uVar2;\n      *(undefined1 *)(param_1 + 0x108) = uVar2;\n      lVar3 = lVar4;\n    } while (param_2 != puVar1);\n    return;\n  }\n  return;\n}" (primitive_type "void") (function_declarator "FUN_002c9320(long param_1,undefined1 *param_2,long param_3)" (identifier "FUN_002c9320") (parameter_list "(long param_1,undefined1 *param_2,long param_3)" (( "(") (parameter_declaration "long param_1" (sized_type_specifier "long" (long "long")) (identifier "param_1")) (, ",") (parameter_declaration "undefined1 *param_2" (type_identifier "undefined1") (pointer_declarator "*param_2" (* "*") (identifier "param_2"))) (, ",") (parameter_declaration "long param_3" (sized_type_specifier "long" (long "long")) (identifier "param_3")) () ")"))) (compound_statement "{\n  undefined1 *puVar1;\n  undefined1 uVar2;\n  long lVar3;\n  long lVar4;\n  \n  if (param_3 != 0) {\n    puVar1 = param_2 + param_3;\n    lVar3 = *(long *)(param_1 + 0x100);\n    do {\n      uVar2 = *param_2;\n      if (lVar3 == 0xff) {\n        *(undefined1 *)(param_1 + 0xff) = 0;\n        (**(code **)(param_1 + 0x110))(param_1,0xff,*(undefined8 *)(param_1 + 0x118));\n        *(long *)(param_1 + 0x140) = *(long *)(param_1 + 0x140) + 1;\n        lVar4 = 1;\n        lVar3 = 0;\n      }\n      else {\n        lVar4 = lVar3 + 1;\n      }\n      param_2 = param_2 + 1;\n      *(long *)(param_1 + 0x100) = lVar4;\n      *(undefined1 *)(param_1 + lVar3) = uVar2;\n      *(undefined1 *)(param_1 + 0x108) = uVar2;\n      lVar3 = lVar4;\n    } while (param_2 != puVar1);\n    return;\n  }\n  return;\n}" ({ "{") (declaration "undefined1 *puVar1;" (type_identifier "undefined1") (pointer_declarator "*puVar1" (* "*") (identifier "puVar1")) (; ";")) (declaration "undefined1 uVar2;" (type_identifier "undefined1") (identifier "uVar2") (; ";")) (declaration "long lVar3;" (sized_type_specifier "long" (long "long")) (identifier "lVar3") (; ";")) (declaration "long lVar4;" (sized_type_specifier "long" (long "long")) (identifier "lVar4") (; ";")) (if_statement "if (param_3 != 0) {\n    puVar1 = param_2 + param_3;\n    lVar3 = *(long *)(param_1 + 0x100);\n    do {\n      uVar2 = *param_2;\n      if (lVar3 == 0xff) {\n        *(undefined1 *)(param_1 + 0xff) = 0;\n        (**(code **)(param_1 + 0x110))(param_1,0xff,*(undefined8 *)(param_1 + 0x118));\n        *(long *)(param_1 + 0x140) = *(long *)(param_1 + 0x140) + 1;\n        lVar4 = 1;\n        lVar3 = 0;\n      }\n      else {\n        lVar4 = lVar3 + 1;\n      }\n      param_2 = param_2 + 1;\n      *(long *)(param_1 + 0x100) = lVar4;\n      *(undefined1 *)(param_1 + lVar3) = uVar2;\n      *(undefined1 *)(param_1 + 0x108) = uVar2;\n      lVar3 = lVar4;\n    } while (param_2 != puVar1);\n    return;\n  }" (if "if") (parenthesized_expression "(param_3 != 0)" (( "(") (binary_expression "param_3 != 0" (identifier "param_3") (!= "!=") (number_literal "0")) () ")")) (compound_statement "{\n    puVar1 = param_2 + param_3;\n    lVar3 = *(long *)(param_1 + 0x100);\n    do {\n      uVar2 = *param_2;\n      if (lVar3 == 0xff) {\n        *(undefined1 *)(param_1 + 0xff) = 0;\n        (**(code **)(param_1 + 0x110))(param_1,0xff,*(undefined8 *)(param_1 + 0x118));\n        *(long *)(param_1 + 0x140) = *(long *)(param_1 + 0x140) + 1;\n        lVar4 = 1;\n        lVar3 = 0;\n      }\n      else {\n        lVar4 = lVar3 + 1;\n      }\n      param_2 = param_2 + 1;\n      *(long *)(param_1 + 0x100) = lVar4;\n      *(undefined1 *)(param_1 + lVar3) = uVar2;\n      *(undefined1 *)(param_1 + 0x108) = uVar2;\n      lVar3 = lVar4;\n    } while (param_2 != puVar1);\n    return;\n  }" ({ "{") (expression_statement "puVar1 = param_2 + param_3;" (assignment_expression "puVar1 = param_2 + param_3" (identifier "puVar1") (= "=") (binary_expression "param_2 + param_3" (identifier "param_2") (+ "+") (identifier "param_3"))) (; ";")) (expression_statement "lVar3 = *(long *)(param_1 + 0x100);" (assignment_expression "lVar3 = *(long *)(param_1 + 0x100)" (identifier "lVar3") (= "=") (pointer_expression "*(long *)(param_1 + 0x100)" (* "*") (cast_expression "(long *)(param_1 + 0x100)" (( "(") (type_descriptor "long *" (sized_type_specifier "long" (long "long")) (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x100)" (( "(") (binary_expression "param_1 + 0x100" (identifier "param_1") (+ "+") (number_literal "0x100")) () ")"))))) (; ";")) (do_statement "do {\n      uVar2 = *param_2;\n      if (lVar3 == 0xff) {\n        *(undefined1 *)(param_1 + 0xff) = 0;\n        (**(code **)(param_1 + 0x110))(param_1,0xff,*(undefined8 *)(param_1 + 0x118));\n        *(long *)(param_1 + 0x140) = *(long *)(param_1 + 0x140) + 1;\n        lVar4 = 1;\n        lVar3 = 0;\n      }\n      else {\n        lVar4 = lVar3 + 1;\n      }\n      param_2 = param_2 + 1;\n      *(long *)(param_1 + 0x100) = lVar4;\n      *(undefined1 *)(param_1 + lVar3) = uVar2;\n      *(undefined1 *)(param_1 + 0x108) = uVar2;\n      lVar3 = lVar4;\n    } while (param_2 != puVar1);" (do "do") (compound_statement "{\n      uVar2 = *param_2;\n      if (lVar3 == 0xff) {\n        *(undefined1 *)(param_1 + 0xff) = 0;\n        (**(code **)(param_1 + 0x110))(param_1,0xff,*(undefined8 *)(param_1 + 0x118));\n        *(long *)(param_1 + 0x140) = *(long *)(param_1 + 0x140) + 1;\n        lVar4 = 1;\n        lVar3 = 0;\n      }\n      else {\n        lVar4 = lVar3 + 1;\n      }\n      param_2 = param_2 + 1;\n      *(long *)(param_1 + 0x100) = lVar4;\n      *(undefined1 *)(param_1 + lVar3) = uVar2;\n      *(undefined1 *)(param_1 + 0x108) = uVar2;\n      lVar3 = lVar4;\n    }" ({ "{") (expression_statement "uVar2 = *param_2;" (assignment_expression "uVar2 = *param_2" (identifier "uVar2") (= "=") (pointer_expression "*param_2" (* "*") (identifier "param_2"))) (; ";")) (if_statement "if (lVar3 == 0xff) {\n        *(undefined1 *)(param_1 + 0xff) = 0;\n        (**(code **)(param_1 + 0x110))(param_1,0xff,*(undefined8 *)(param_1 + 0x118));\n        *(long *)(param_1 + 0x140) = *(long *)(param_1 + 0x140) + 1;\n        lVar4 = 1;\n        lVar3 = 0;\n      }\n      else {\n        lVar4 = lVar3 + 1;\n      }" (if "if") (parenthesized_expression "(lVar3 == 0xff)" (( "(") (binary_expression "lVar3 == 0xff" (identifier "lVar3") (== "==") (number_literal "0xff")) () ")")) (compound_statement "{\n        *(undefined1 *)(param_1 + 0xff) = 0;\n        (**(code **)(param_1 + 0x110))(param_1,0xff,*(undefined8 *)(param_1 + 0x118));\n        *(long *)(param_1 + 0x140) = *(long *)(param_1 + 0x140) + 1;\n        lVar4 = 1;\n        lVar3 = 0;\n      }" ({ "{") (expression_statement "*(undefined1 *)(param_1 + 0xff) = 0;" (assignment_expression "*(undefined1 *)(param_1 + 0xff) = 0" (pointer_expression "*(undefined1 *)(param_1 + 0xff)" (* "*") (cast_expression "(undefined1 *)(param_1 + 0xff)" (( "(") (type_descriptor "undefined1 *" (type_identifier "undefined1") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0xff)" (( "(") (binary_expression "param_1 + 0xff" (identifier "param_1") (+ "+") (number_literal "0xff")) () ")")))) (= "=") (number_literal "0")) (; ";")) (expression_statement "(**(code **)(param_1 + 0x110))(param_1,0xff,*(undefined8 *)(param_1 + 0x118));" (call_expression "(**(code **)(param_1 + 0x110))(param_1,0xff,*(undefined8 *)(param_1 + 0x118))" (parenthesized_expression "(**(code **)(param_1 + 0x110))" (( "(") (pointer_expression "**(code **)(param_1 + 0x110)" (* "*") (pointer_expression "*(code **)(param_1 + 0x110)" (* "*") (cast_expression "(code **)(param_1 + 0x110)" (( "(") (type_descriptor "code **" (type_identifier "code") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (parenthesized_expression "(param_1 + 0x110)" (( "(") (binary_expression "param_1 + 0x110" (identifier "param_1") (+ "+") (number_literal "0x110")) () ")"))))) () ")")) (argument_list "(param_1,0xff,*(undefined8 *)(param_1 + 0x118))" (( "(") (identifier "param_1") (, ",") (number_literal "0xff") (, ",") (pointer_expression "*(undefined8 *)(param_1 + 0x118)" (* "*") (cast_expression "(undefined8 *)(param_1 + 0x118)" (( "(") (type_descriptor "undefined8 *" (type_identifier "undefined8") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x118)" (( "(") (binary_expression "param_1 + 0x118" (identifier "param_1") (+ "+") (number_literal "0x118")) () ")")))) () ")"))) (; ";")) (expression_statement "*(long *)(param_1 + 0x140) = *(long *)(param_1 + 0x140) + 1;" (assignment_expression "*(long *)(param_1 + 0x140) = *(long *)(param_1 + 0x140) + 1" (pointer_expression "*(long *)(param_1 + 0x140)" (* "*") (cast_expression "(long *)(param_1 + 0x140)" (( "(") (type_descriptor "long *" (sized_type_specifier "long" (long "long")) (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x140)" (( "(") (binary_expression "param_1 + 0x140" (identifier "param_1") (+ "+") (number_literal "0x140")) () ")")))) (= "=") (binary_expression "*(long *)(param_1 + 0x140) + 1" (pointer_expression "*(long *)(param_1 + 0x140)" (* "*") (cast_expression "(long *)(param_1 + 0x140)" (( "(") (type_descriptor "long *" (sized_type_specifier "long" (long "long")) (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x140)" (( "(") (binary_expression "param_1 + 0x140" (identifier "param_1") (+ "+") (number_literal "0x140")) () ")")))) (+ "+") (number_literal "1"))) (; ";")) (expression_statement "lVar4 = 1;" (assignment_expression "lVar4 = 1" (identifier "lVar4") (= "=") (number_literal "1")) (; ";")) (expression_statement "lVar3 = 0;" (assignment_expression "lVar3 = 0" (identifier "lVar3") (= "=") (number_literal "0")) (; ";")) (} "}")) (else_clause "else {\n        lVar4 = lVar3 + 1;\n      }" (else "else") (compound_statement "{\n        lVar4 = lVar3 + 1;\n      }" ({ "{") (expression_statement "lVar4 = lVar3 + 1;" (assignment_expression "lVar4 = lVar3 + 1" (identifier "lVar4") (= "=") (binary_expression "lVar3 + 1" (identifier "lVar3") (+ "+") (number_literal "1"))) (; ";")) (} "}")))) (expression_statement "param_2 = param_2 + 1;" (assignment_expression "param_2 = param_2 + 1" (identifier "param_2") (= "=") (binary_expression "param_2 + 1" (identifier "param_2") (+ "+") (number_literal "1"))) (; ";")) (expression_statement "*(long *)(param_1 + 0x100) = lVar4;" (assignment_expression "*(long *)(param_1 + 0x100) = lVar4" (pointer_expression "*(long *)(param_1 + 0x100)" (* "*") (cast_expression "(long *)(param_1 + 0x100)" (( "(") (type_descriptor "long *" (sized_type_specifier "long" (long "long")) (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x100)" (( "(") (binary_expression "param_1 + 0x100" (identifier "param_1") (+ "+") (number_literal "0x100")) () ")")))) (= "=") (identifier "lVar4")) (; ";")) (expression_statement "*(undefined1 *)(param_1 + lVar3) = uVar2;" (assignment_expression "*(undefined1 *)(param_1 + lVar3) = uVar2" (pointer_expression "*(undefined1 *)(param_1 + lVar3)" (* "*") (cast_expression "(undefined1 *)(param_1 + lVar3)" (( "(") (type_descriptor "undefined1 *" (type_identifier "undefined1") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + lVar3)" (( "(") (binary_expression "param_1 + lVar3" (identifier "param_1") (+ "+") (identifier "lVar3")) () ")")))) (= "=") (identifier "uVar2")) (; ";")) (expression_statement "*(undefined1 *)(param_1 + 0x108) = uVar2;" (assignment_expression "*(undefined1 *)(param_1 + 0x108) = uVar2" (pointer_expression "*(undefined1 *)(param_1 + 0x108)" (* "*") (cast_expression "(undefined1 *)(param_1 + 0x108)" (( "(") (type_descriptor "undefined1 *" (type_identifier "undefined1") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x108)" (( "(") (binary_expression "param_1 + 0x108" (identifier "param_1") (+ "+") (number_literal "0x108")) () ")")))) (= "=") (identifier "uVar2")) (; ";")) (expression_statement "lVar3 = lVar4;" (assignment_expression "lVar3 = lVar4" (identifier "lVar3") (= "=") (identifier "lVar4")) (; ";")) (} "}")) (while "while") (parenthesized_expression "(param_2 != puVar1)" (( "(") (binary_expression "param_2 != puVar1" (identifier "param_2") (!= "!=") (identifier "puVar1")) () ")")) (; ";")) (return_statement "return;" (return "return") (; ";")) (} "}"))) (return_statement "return;" (return "return") (; ";")) (} "}")))

void function_1(type_1 *dpi,char *var_2,size_t var_1)

{
  char *var_4;
  char cVar2;
  void *pvVar3;
  size_t var_3;
  size_t sVar5;
  
  if (var_1 != 0) {
    var_4 = var_2 + var_1;
    var_3 = dpi->len;
    do {
      cVar2 = *var_2;
      if (var_3 == 0xff) {
        pvVar3 = dpi->opaque;
        dpi->buf[0xff] = '\0';
        (*dpi->callback)(dpi->buf,0xff,pvVar3);
        dpi->flush_count = dpi->flush_count + 1;
        sVar5 = 1;
        var_3 = 0;
      }
      else {
        sVar5 = var_3 + 1;
      }
      var_2 = var_2 + 1;
      dpi->len = sVar5;
      dpi->buf[var_3] = cVar2;
      dpi->last_char = cVar2;
      var_3 = sVar5;
    } while (var_2 != var_4);
    return;
  }
  return;
}


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

void MASKED(long param_1,undefined1 *param_2,long param_3)

{
  undefined1 *puVar1;
  undefined1 uVar2;
  long lVar3;
  long lVar4;
  
  if (param_3 != 0) {
    puVar1 = param_2 + param_3;
    lVar3 = *(long *)(param_1 + 0x100);
    do {
      uVar2 = *param_2;
      if (lVar3 == 0xff) {
        *(undefined1 *)(param_1 + 0xff) = 0;
        (**(code **)(param_1 + 0x110))(param_1,0xff,*(undefined8 *)(param_1 + 0x118));
        *(long *)(param_1 + 0x140) = *(long *)(param_1 + 0x140) + 1;
        lVar4 = 1;
        lVar3 = 0;
      }
      else {
        lVar4 = lVar3 + 1;
      }
      param_2 = param_2 + 1;
      *(long *)(param_1 + 0x100) = lVar4;
      *(undefined1 *)(param_1 + lVar3) = uVar2;
      *(undefined1 *)(param_1 + 0x108) = uVar2;
      lVar3 = lVar4;
    } while (param_2 != puVar1);
    return;
  }
  return;
}

