
void decode_mode_policy_vpd(uint8_t *buff,int len,int do_hex)

{
  byte bVar1;
  int iVar2;
  undefined *puVar3;
  undefined *puVar4;
  undefined *puVar5;
  byte *pbVar6;
  int iVar7;
  int iVar8;
  int iVar9;
  undefined *puVar10;
  
  puVar4 = PTR_LAB_0003b948;
  puVar3 = PTR_DAT_0003b938;
  if (do_hex != 1) {
    if (do_hex < 3) {
      iVar9 = len + -4;
      if (len < 4) {
        (*(code *)PTR_pr2serr_0003ba44)(PTR_LAB_0003b948 + 0x2914);
        return;
      }
      pbVar6 = buff + 4;
      if (iVar9 < 1) {
        return;
      }
      if (iVar9 < 4) {
        iVar2 = 0;
      }
      else {
        puVar10 = PTR_LAB_0003b948 + 0x2984;
        puVar5 = PTR_LAB_0003b948 + 0x29b8;
        iVar8 = 4;
        do {
          if (do_hex == 2) {
            (*(code *)PTR_hex2stdout_0003ba2c)(pbVar6,4,1);
          }
          else {
            (*(code *)PTR___printf_chk_0003b9d8)(1,puVar10,*pbVar6 & 0x3f);
            if (pbVar6[1] == 0) {
              (*(code *)PTR_putchar_0003b9f0)(10);
            }
            else {
              (*(code *)PTR___printf_chk_0003b9d8)(1,puVar4 + 0x29a0);
            }
            if (((iVar8 == 4) && ((*pbVar6 & 0x3f) == 0x3f)) && (pbVar6[1] == 0xff)) {
              (*(code *)PTR_puts_0003ba28)(puVar5);
              bVar1 = pbVar6[2];
            }
            else {
              bVar1 = pbVar6[2];
            }
            (*(code *)PTR___printf_chk_0003b9d8)
                      (1,puVar4 + 0x29f8,bVar1 >> 7,
                       *(undefined4 *)(puVar3 + (bVar1 & 3) * 4 + -0x513c));
          }
          pbVar6 = pbVar6 + 4;
          if (iVar9 <= iVar8) {
            return;
          }
          iVar7 = iVar8 + 4;
          iVar2 = -iVar8;
          iVar8 = iVar7;
        } while (iVar7 <= iVar9);
      }
      (*(code *)PTR_pr2serr_0003ba44)(PTR_LAB_0003b948 + 0x2944,4,iVar9 + iVar2);
      return;
    }
    do_hex = -1;
  }
  (*(code *)PTR_hex2stdout_0003ba2c)(buff,len,do_hex);
  return;
}



void FUN_000124c8(int param_1,int param_2,int param_3)

{
  byte bVar1;
  int iVar2;
  undefined *puVar3;
  undefined *puVar4;
  undefined *puVar5;
  byte *pbVar6;
  int iVar7;
  int iVar8;
  int iVar9;
  undefined *puVar10;
  
  puVar4 = PTR_LAB_0003b948;
  puVar3 = PTR_DAT_0003b938;
  if (param_3 != 1) {
    if (param_3 < 3) {
      iVar9 = param_2 + -4;
      if (param_2 < 4) {
        (*(code *)PTR_pr2serr_0003ba44)(PTR_LAB_0003b948 + 0x2914);
        return;
      }
      pbVar6 = (byte *)(param_1 + 4);
      if (iVar9 < 1) {
        return;
      }
      if (iVar9 < 4) {
        iVar2 = 0;
      }
      else {
        puVar10 = PTR_LAB_0003b948 + 0x2984;
        puVar5 = PTR_LAB_0003b948 + 0x29b8;
        iVar8 = 4;
        do {
          if (param_3 == 2) {
            (*(code *)PTR_hex2stdout_0003ba2c)(pbVar6,4,1);
          }
          else {
            (*(code *)PTR___printf_chk_0003b9d8)(1,puVar10,*pbVar6 & 0x3f);
            if (pbVar6[1] == 0) {
              (*(code *)PTR_putchar_0003b9f0)(10);
            }
            else {
              (*(code *)PTR___printf_chk_0003b9d8)(1,puVar4 + 0x29a0);
            }
            if (((iVar8 == 4) && ((*pbVar6 & 0x3f) == 0x3f)) && (pbVar6[1] == 0xff)) {
              (*(code *)PTR_puts_0003ba28)(puVar5);
              bVar1 = pbVar6[2];
            }
            else {
              bVar1 = pbVar6[2];
            }
            (*(code *)PTR___printf_chk_0003b9d8)
                      (1,puVar4 + 0x29f8,bVar1 >> 7,
                       *(undefined4 *)(puVar3 + (bVar1 & 3) * 4 + -0x513c));
          }
          pbVar6 = pbVar6 + 4;
          if (iVar9 <= iVar8) {
            return;
          }
          iVar7 = iVar8 + 4;
          iVar2 = -iVar8;
          iVar8 = iVar7;
        } while (iVar7 <= iVar9);
      }
      (*(code *)PTR_pr2serr_0003ba44)(PTR_LAB_0003b948 + 0x2944,4,iVar9 + iVar2);
      return;
    }
    param_3 = -1;
  }
  (*(code *)PTR_hex2stdout_0003ba2c)(param_1,param_2,param_3);
  return;
}


lui gp,0x3
addiu gp,gp,0x1448
addu gp,gp,t9
addiu sp,sp,-0x48
sw ra,0x44(sp)
sw s8,0x40(sp)
sw s7,0x3c(sp)
sw s6,0x38(sp)
sw s5,0x34(sp)
sw s4,0x30(sp)
sw s3,0x2c(sp)
sw s2,0x28(sp)
sw s1,0x24(sp)
sw s0,0x20(sp)
sw gp,0x10(sp)
li v0,0x1
beq a2,v0,0x00012564
_or s4,a2,zero
slti v0,a2,0x3
beq v0,zero,0x00012560
_slti v0,a1,0x4
bne v0,zero,0x000125a8
_addiu s2,a1,-0x4
blez s2,0x00012578
_addiu s0,a0,0x4
slti v0,s2,0x4
bne v0,zero,0x000125c8
_li s1,0x4
lw s6,-0x7fc8(gp)
addiu s6,s6,0x2984
lw s5,-0x7fd8(gp)
addiu s5,s5,-0x513c
lw s7,-0x7fc8(gp)
lw v0,-0x7fc8(gp)
addiu v0,v0,0x29b8
sw v0,0x1c(sp)
b 0x00012690
_lw s8,-0x7fc8(gp)
li s4,-0x1
or a2,s4,zero
lw t9,-0x7ee4(gp)
jalr t9
_nop
lw gp,0x10(sp)
lw ra,0x44(sp)
lw s8,0x40(sp)
lw s7,0x3c(sp)
lw s6,0x38(sp)
lw s5,0x34(sp)
lw s4,0x30(sp)
lw s3,0x2c(sp)
lw s2,0x28(sp)
lw s1,0x24(sp)
lw s0,0x20(sp)
jr ra
_addiu sp,sp,0x48
lw a0,-0x7fc8(gp)
addiu a0,a0,0x2914
lw t9,-0x7ecc(gp)
jalr t9
_nop
lw gp,0x10(sp)
b 0x0001257c
_lw ra,0x44(sp)
or s3,zero,zero
subu a2,s2,s3
li a1,0x4
lw a0,-0x7fc8(gp)
addiu a0,a0,0x2944
lw t9,-0x7ecc(gp)
jalr t9
_nop
lw gp,0x10(sp)
b 0x0001257c
_lw ra,0x44(sp)
lbu a2,0x0(s0)
andi a2,a2,0x3f
or a1,s6,zero
li a0,0x1
lw t9,-0x7f38(gp)
jalr t9
_nop
lw gp,0x10(sp)
lbu a2,0x1(s0)
beq a2,zero,0x000126c0
_li a0,0xa
addiu a1,s8,0x29a0
li a0,0x1
lw t9,-0x7f38(gp)
jalr t9
_nop
lw gp,0x10(sp)
li v0,0x4
beq s1,v0,0x000126d8
_li v1,0x3f
lbu a2,0x2(s0)
andi v0,a2,0x3
sll v0,v0,0x2
addu v0,v0,s5
lw a3,0x0(v0)
srl a2,a2,0x7
addiu a1,s7,0x29f8
li a0,0x1
lw t9,-0x7f38(gp)
jalr t9
_nop
lw gp,0x10(sp)
slt v0,s3,s2
beq v0,zero,0x00012578
_addiu s0,s0,0x4
addiu s1,s1,0x4
slt v0,s2,s1
bne v0,zero,0x000125d0
_subu a2,s2,s3
li v0,0x2
bne s4,v0,0x000125f4
_or s3,s1,zero
li a2,0x1
li a1,0x4
or a0,s0,zero
lw t9,-0x7ee4(gp)
jalr t9
_nop
lw gp,0x10(sp)
b 0x00012678
_slt v0,s3,s2
lw t9,-0x7f20(gp)
jalr t9
_nop
lw gp,0x10(sp)
b 0x0001263c
_li v0,0x4
lbu v0,0x0(s0)
andi v0,v0,0x3f
bne v0,v1,0x00012644
_li v0,0xff
lbu v1,0x1(s0)
bne v1,v0,0x00012644
_lw a0,0x1c(sp)
lw t9,-0x7ee8(gp)
jalr t9
_nop
lw gp,0x10(sp)
b 0x00012648
_lbu a2,0x2(s0)
(translation_unit "void FUN_000124c8(int param_1,int param_2,int param_3)\n\n{\n  byte bVar1;\n  int iVar2;\n  undefined *puVar3;\n  undefined *puVar4;\n  undefined *puVar5;\n  byte *pbVar6;\n  int iVar7;\n  int iVar8;\n  int iVar9;\n  undefined *puVar10;\n  \n  puVar4 = PTR_LAB_0003b948;\n  puVar3 = PTR_DAT_0003b938;\n  if (param_3 != 1) {\n    if (param_3 < 3) {\n      iVar9 = param_2 + -4;\n      if (param_2 < 4) {\n        (*(code *)PTR_pr2serr_0003ba44)(PTR_LAB_0003b948 + 0x2914);\n        return;\n      }\n      pbVar6 = (byte *)(param_1 + 4);\n      if (iVar9 < 1) {\n        return;\n      }\n      if (iVar9 < 4) {\n        iVar2 = 0;\n      }\n      else {\n        puVar10 = PTR_LAB_0003b948 + 0x2984;\n        puVar5 = PTR_LAB_0003b948 + 0x29b8;\n        iVar8 = 4;\n        do {\n          if (param_3 == 2) {\n            (*(code *)PTR_hex2stdout_0003ba2c)(pbVar6,4,1);\n          }\n          else {\n            (*(code *)PTR___printf_chk_0003b9d8)(1,puVar10,*pbVar6 & 0x3f);\n            if (pbVar6[1] == 0) {\n              (*(code *)PTR_putchar_0003b9f0)(10);\n            }\n            else {\n              (*(code *)PTR___printf_chk_0003b9d8)(1,puVar4 + 0x29a0);\n            }\n            if (((iVar8 == 4) && ((*pbVar6 & 0x3f) == 0x3f)) && (pbVar6[1] == 0xff)) {\n              (*(code *)PTR_puts_0003ba28)(puVar5);\n              bVar1 = pbVar6[2];\n            }\n            else {\n              bVar1 = pbVar6[2];\n            }\n            (*(code *)PTR___printf_chk_0003b9d8)\n                      (1,puVar4 + 0x29f8,bVar1 >> 7,\n                       *(undefined4 *)(puVar3 + (bVar1 & 3) * 4 + -0x513c));\n          }\n          pbVar6 = pbVar6 + 4;\n          if (iVar9 <= iVar8) {\n            return;\n          }\n          iVar7 = iVar8 + 4;\n          iVar2 = -iVar8;\n          iVar8 = iVar7;\n        } while (iVar7 <= iVar9);\n      }\n      (*(code *)PTR_pr2serr_0003ba44)(PTR_LAB_0003b948 + 0x2944,4,iVar9 + iVar2);\n      return;\n    }\n    param_3 = -1;\n  }\n  (*(code *)PTR_hex2stdout_0003ba2c)(param_1,param_2,param_3);\n  return;\n}\n\n" (function_definition "void FUN_000124c8(int param_1,int param_2,int param_3)\n\n{\n  byte bVar1;\n  int iVar2;\n  undefined *puVar3;\n  undefined *puVar4;\n  undefined *puVar5;\n  byte *pbVar6;\n  int iVar7;\n  int iVar8;\n  int iVar9;\n  undefined *puVar10;\n  \n  puVar4 = PTR_LAB_0003b948;\n  puVar3 = PTR_DAT_0003b938;\n  if (param_3 != 1) {\n    if (param_3 < 3) {\n      iVar9 = param_2 + -4;\n      if (param_2 < 4) {\n        (*(code *)PTR_pr2serr_0003ba44)(PTR_LAB_0003b948 + 0x2914);\n        return;\n      }\n      pbVar6 = (byte *)(param_1 + 4);\n      if (iVar9 < 1) {\n        return;\n      }\n      if (iVar9 < 4) {\n        iVar2 = 0;\n      }\n      else {\n        puVar10 = PTR_LAB_0003b948 + 0x2984;\n        puVar5 = PTR_LAB_0003b948 + 0x29b8;\n        iVar8 = 4;\n        do {\n          if (param_3 == 2) {\n            (*(code *)PTR_hex2stdout_0003ba2c)(pbVar6,4,1);\n          }\n          else {\n            (*(code *)PTR___printf_chk_0003b9d8)(1,puVar10,*pbVar6 & 0x3f);\n            if (pbVar6[1] == 0) {\n              (*(code *)PTR_putchar_0003b9f0)(10);\n            }\n            else {\n              (*(code *)PTR___printf_chk_0003b9d8)(1,puVar4 + 0x29a0);\n            }\n            if (((iVar8 == 4) && ((*pbVar6 & 0x3f) == 0x3f)) && (pbVar6[1] == 0xff)) {\n              (*(code *)PTR_puts_0003ba28)(puVar5);\n              bVar1 = pbVar6[2];\n            }\n            else {\n              bVar1 = pbVar6[2];\n            }\n            (*(code *)PTR___printf_chk_0003b9d8)\n                      (1,puVar4 + 0x29f8,bVar1 >> 7,\n                       *(undefined4 *)(puVar3 + (bVar1 & 3) * 4 + -0x513c));\n          }\n          pbVar6 = pbVar6 + 4;\n          if (iVar9 <= iVar8) {\n            return;\n          }\n          iVar7 = iVar8 + 4;\n          iVar2 = -iVar8;\n          iVar8 = iVar7;\n        } while (iVar7 <= iVar9);\n      }\n      (*(code *)PTR_pr2serr_0003ba44)(PTR_LAB_0003b948 + 0x2944,4,iVar9 + iVar2);\n      return;\n    }\n    param_3 = -1;\n  }\n  (*(code *)PTR_hex2stdout_0003ba2c)(param_1,param_2,param_3);\n  return;\n}" primitive_type (function_declarator "FUN_000124c8(int param_1,int param_2,int param_3)" identifier (parameter_list "(int param_1,int param_2,int param_3)" ( (parameter_declaration "int param_1" primitive_type identifier) , (parameter_declaration "int param_2" primitive_type identifier) , (parameter_declaration "int param_3" primitive_type identifier) ))) (compound_statement "{\n  byte bVar1;\n  int iVar2;\n  undefined *puVar3;\n  undefined *puVar4;\n  undefined *puVar5;\n  byte *pbVar6;\n  int iVar7;\n  int iVar8;\n  int iVar9;\n  undefined *puVar10;\n  \n  puVar4 = PTR_LAB_0003b948;\n  puVar3 = PTR_DAT_0003b938;\n  if (param_3 != 1) {\n    if (param_3 < 3) {\n      iVar9 = param_2 + -4;\n      if (param_2 < 4) {\n        (*(code *)PTR_pr2serr_0003ba44)(PTR_LAB_0003b948 + 0x2914);\n        return;\n      }\n      pbVar6 = (byte *)(param_1 + 4);\n      if (iVar9 < 1) {\n        return;\n      }\n      if (iVar9 < 4) {\n        iVar2 = 0;\n      }\n      else {\n        puVar10 = PTR_LAB_0003b948 + 0x2984;\n        puVar5 = PTR_LAB_0003b948 + 0x29b8;\n        iVar8 = 4;\n        do {\n          if (param_3 == 2) {\n            (*(code *)PTR_hex2stdout_0003ba2c)(pbVar6,4,1);\n          }\n          else {\n            (*(code *)PTR___printf_chk_0003b9d8)(1,puVar10,*pbVar6 & 0x3f);\n            if (pbVar6[1] == 0) {\n              (*(code *)PTR_putchar_0003b9f0)(10);\n            }\n            else {\n              (*(code *)PTR___printf_chk_0003b9d8)(1,puVar4 + 0x29a0);\n            }\n            if (((iVar8 == 4) && ((*pbVar6 & 0x3f) == 0x3f)) && (pbVar6[1] == 0xff)) {\n              (*(code *)PTR_puts_0003ba28)(puVar5);\n              bVar1 = pbVar6[2];\n            }\n            else {\n              bVar1 = pbVar6[2];\n            }\n            (*(code *)PTR___printf_chk_0003b9d8)\n                      (1,puVar4 + 0x29f8,bVar1 >> 7,\n                       *(undefined4 *)(puVar3 + (bVar1 & 3) * 4 + -0x513c));\n          }\n          pbVar6 = pbVar6 + 4;\n          if (iVar9 <= iVar8) {\n            return;\n          }\n          iVar7 = iVar8 + 4;\n          iVar2 = -iVar8;\n          iVar8 = iVar7;\n        } while (iVar7 <= iVar9);\n      }\n      (*(code *)PTR_pr2serr_0003ba44)(PTR_LAB_0003b948 + 0x2944,4,iVar9 + iVar2);\n      return;\n    }\n    param_3 = -1;\n  }\n  (*(code *)PTR_hex2stdout_0003ba2c)(param_1,param_2,param_3);\n  return;\n}" { (declaration "byte bVar1;" type_identifier identifier ;) (declaration "int iVar2;" primitive_type identifier ;) (declaration "undefined *puVar3;" type_identifier (pointer_declarator "*puVar3" * identifier) ;) (declaration "undefined *puVar4;" type_identifier (pointer_declarator "*puVar4" * identifier) ;) (declaration "undefined *puVar5;" type_identifier (pointer_declarator "*puVar5" * identifier) ;) (declaration "byte *pbVar6;" type_identifier (pointer_declarator "*pbVar6" * identifier) ;) (declaration "int iVar7;" primitive_type identifier ;) (declaration "int iVar8;" primitive_type identifier ;) (declaration "int iVar9;" primitive_type identifier ;) (declaration "undefined *puVar10;" type_identifier (pointer_declarator "*puVar10" * identifier) ;) (expression_statement "puVar4 = PTR_LAB_0003b948;" (assignment_expression "puVar4 = PTR_LAB_0003b948" identifier = identifier) ;) (expression_statement "puVar3 = PTR_DAT_0003b938;" (assignment_expression "puVar3 = PTR_DAT_0003b938" identifier = identifier) ;) (if_statement "if (param_3 != 1) {\n    if (param_3 < 3) {\n      iVar9 = param_2 + -4;\n      if (param_2 < 4) {\n        (*(code *)PTR_pr2serr_0003ba44)(PTR_LAB_0003b948 + 0x2914);\n        return;\n      }\n      pbVar6 = (byte *)(param_1 + 4);\n      if (iVar9 < 1) {\n        return;\n      }\n      if (iVar9 < 4) {\n        iVar2 = 0;\n      }\n      else {\n        puVar10 = PTR_LAB_0003b948 + 0x2984;\n        puVar5 = PTR_LAB_0003b948 + 0x29b8;\n        iVar8 = 4;\n        do {\n          if (param_3 == 2) {\n            (*(code *)PTR_hex2stdout_0003ba2c)(pbVar6,4,1);\n          }\n          else {\n            (*(code *)PTR___printf_chk_0003b9d8)(1,puVar10,*pbVar6 & 0x3f);\n            if (pbVar6[1] == 0) {\n              (*(code *)PTR_putchar_0003b9f0)(10);\n            }\n            else {\n              (*(code *)PTR___printf_chk_0003b9d8)(1,puVar4 + 0x29a0);\n            }\n            if (((iVar8 == 4) && ((*pbVar6 & 0x3f) == 0x3f)) && (pbVar6[1] == 0xff)) {\n              (*(code *)PTR_puts_0003ba28)(puVar5);\n              bVar1 = pbVar6[2];\n            }\n            else {\n              bVar1 = pbVar6[2];\n            }\n            (*(code *)PTR___printf_chk_0003b9d8)\n                      (1,puVar4 + 0x29f8,bVar1 >> 7,\n                       *(undefined4 *)(puVar3 + (bVar1 & 3) * 4 + -0x513c));\n          }\n          pbVar6 = pbVar6 + 4;\n          if (iVar9 <= iVar8) {\n            return;\n          }\n          iVar7 = iVar8 + 4;\n          iVar2 = -iVar8;\n          iVar8 = iVar7;\n        } while (iVar7 <= iVar9);\n      }\n      (*(code *)PTR_pr2serr_0003ba44)(PTR_LAB_0003b948 + 0x2944,4,iVar9 + iVar2);\n      return;\n    }\n    param_3 = -1;\n  }" if (parenthesized_expression "(param_3 != 1)" ( (binary_expression "param_3 != 1" identifier != number_literal) )) (compound_statement "{\n    if (param_3 < 3) {\n      iVar9 = param_2 + -4;\n      if (param_2 < 4) {\n        (*(code *)PTR_pr2serr_0003ba44)(PTR_LAB_0003b948 + 0x2914);\n        return;\n      }\n      pbVar6 = (byte *)(param_1 + 4);\n      if (iVar9 < 1) {\n        return;\n      }\n      if (iVar9 < 4) {\n        iVar2 = 0;\n      }\n      else {\n        puVar10 = PTR_LAB_0003b948 + 0x2984;\n        puVar5 = PTR_LAB_0003b948 + 0x29b8;\n        iVar8 = 4;\n        do {\n          if (param_3 == 2) {\n            (*(code *)PTR_hex2stdout_0003ba2c)(pbVar6,4,1);\n          }\n          else {\n            (*(code *)PTR___printf_chk_0003b9d8)(1,puVar10,*pbVar6 & 0x3f);\n            if (pbVar6[1] == 0) {\n              (*(code *)PTR_putchar_0003b9f0)(10);\n            }\n            else {\n              (*(code *)PTR___printf_chk_0003b9d8)(1,puVar4 + 0x29a0);\n            }\n            if (((iVar8 == 4) && ((*pbVar6 & 0x3f) == 0x3f)) && (pbVar6[1] == 0xff)) {\n              (*(code *)PTR_puts_0003ba28)(puVar5);\n              bVar1 = pbVar6[2];\n            }\n            else {\n              bVar1 = pbVar6[2];\n            }\n            (*(code *)PTR___printf_chk_0003b9d8)\n                      (1,puVar4 + 0x29f8,bVar1 >> 7,\n                       *(undefined4 *)(puVar3 + (bVar1 & 3) * 4 + -0x513c));\n          }\n          pbVar6 = pbVar6 + 4;\n          if (iVar9 <= iVar8) {\n            return;\n          }\n          iVar7 = iVar8 + 4;\n          iVar2 = -iVar8;\n          iVar8 = iVar7;\n        } while (iVar7 <= iVar9);\n      }\n      (*(code *)PTR_pr2serr_0003ba44)(PTR_LAB_0003b948 + 0x2944,4,iVar9 + iVar2);\n      return;\n    }\n    param_3 = -1;\n  }" { (if_statement "if (param_3 < 3) {\n      iVar9 = param_2 + -4;\n      if (param_2 < 4) {\n        (*(code *)PTR_pr2serr_0003ba44)(PTR_LAB_0003b948 + 0x2914);\n        return;\n      }\n      pbVar6 = (byte *)(param_1 + 4);\n      if (iVar9 < 1) {\n        return;\n      }\n      if (iVar9 < 4) {\n        iVar2 = 0;\n      }\n      else {\n        puVar10 = PTR_LAB_0003b948 + 0x2984;\n        puVar5 = PTR_LAB_0003b948 + 0x29b8;\n        iVar8 = 4;\n        do {\n          if (param_3 == 2) {\n            (*(code *)PTR_hex2stdout_0003ba2c)(pbVar6,4,1);\n          }\n          else {\n            (*(code *)PTR___printf_chk_0003b9d8)(1,puVar10,*pbVar6 & 0x3f);\n            if (pbVar6[1] == 0) {\n              (*(code *)PTR_putchar_0003b9f0)(10);\n            }\n            else {\n              (*(code *)PTR___printf_chk_0003b9d8)(1,puVar4 + 0x29a0);\n            }\n            if (((iVar8 == 4) && ((*pbVar6 & 0x3f) == 0x3f)) && (pbVar6[1] == 0xff)) {\n              (*(code *)PTR_puts_0003ba28)(puVar5);\n              bVar1 = pbVar6[2];\n            }\n            else {\n              bVar1 = pbVar6[2];\n            }\n            (*(code *)PTR___printf_chk_0003b9d8)\n                      (1,puVar4 + 0x29f8,bVar1 >> 7,\n                       *(undefined4 *)(puVar3 + (bVar1 & 3) * 4 + -0x513c));\n          }\n          pbVar6 = pbVar6 + 4;\n          if (iVar9 <= iVar8) {\n            return;\n          }\n          iVar7 = iVar8 + 4;\n          iVar2 = -iVar8;\n          iVar8 = iVar7;\n        } while (iVar7 <= iVar9);\n      }\n      (*(code *)PTR_pr2serr_0003ba44)(PTR_LAB_0003b948 + 0x2944,4,iVar9 + iVar2);\n      return;\n    }" if (parenthesized_expression "(param_3 < 3)" ( (binary_expression "param_3 < 3" identifier < number_literal) )) (compound_statement "{\n      iVar9 = param_2 + -4;\n      if (param_2 < 4) {\n        (*(code *)PTR_pr2serr_0003ba44)(PTR_LAB_0003b948 + 0x2914);\n        return;\n      }\n      pbVar6 = (byte *)(param_1 + 4);\n      if (iVar9 < 1) {\n        return;\n      }\n      if (iVar9 < 4) {\n        iVar2 = 0;\n      }\n      else {\n        puVar10 = PTR_LAB_0003b948 + 0x2984;\n        puVar5 = PTR_LAB_0003b948 + 0x29b8;\n        iVar8 = 4;\n        do {\n          if (param_3 == 2) {\n            (*(code *)PTR_hex2stdout_0003ba2c)(pbVar6,4,1);\n          }\n          else {\n            (*(code *)PTR___printf_chk_0003b9d8)(1,puVar10,*pbVar6 & 0x3f);\n            if (pbVar6[1] == 0) {\n              (*(code *)PTR_putchar_0003b9f0)(10);\n            }\n            else {\n              (*(code *)PTR___printf_chk_0003b9d8)(1,puVar4 + 0x29a0);\n            }\n            if (((iVar8 == 4) && ((*pbVar6 & 0x3f) == 0x3f)) && (pbVar6[1] == 0xff)) {\n              (*(code *)PTR_puts_0003ba28)(puVar5);\n              bVar1 = pbVar6[2];\n            }\n            else {\n              bVar1 = pbVar6[2];\n            }\n            (*(code *)PTR___printf_chk_0003b9d8)\n                      (1,puVar4 + 0x29f8,bVar1 >> 7,\n                       *(undefined4 *)(puVar3 + (bVar1 & 3) * 4 + -0x513c));\n          }\n          pbVar6 = pbVar6 + 4;\n          if (iVar9 <= iVar8) {\n            return;\n          }\n          iVar7 = iVar8 + 4;\n          iVar2 = -iVar8;\n          iVar8 = iVar7;\n        } while (iVar7 <= iVar9);\n      }\n      (*(code *)PTR_pr2serr_0003ba44)(PTR_LAB_0003b948 + 0x2944,4,iVar9 + iVar2);\n      return;\n    }" { (expression_statement "iVar9 = param_2 + -4;" (assignment_expression "iVar9 = param_2 + -4" identifier = (binary_expression "param_2 + -4" identifier + number_literal)) ;) (if_statement "if (param_2 < 4) {\n        (*(code *)PTR_pr2serr_0003ba44)(PTR_LAB_0003b948 + 0x2914);\n        return;\n      }" if (parenthesized_expression "(param_2 < 4)" ( (binary_expression "param_2 < 4" identifier < number_literal) )) (compound_statement "{\n        (*(code *)PTR_pr2serr_0003ba44)(PTR_LAB_0003b948 + 0x2914);\n        return;\n      }" { (expression_statement "(*(code *)PTR_pr2serr_0003ba44)(PTR_LAB_0003b948 + 0x2914);" (call_expression "(*(code *)PTR_pr2serr_0003ba44)(PTR_LAB_0003b948 + 0x2914)" (parenthesized_expression "(*(code *)PTR_pr2serr_0003ba44)" ( (pointer_expression "*(code *)PTR_pr2serr_0003ba44" * (cast_expression "(code *)PTR_pr2serr_0003ba44" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(PTR_LAB_0003b948 + 0x2914)" ( (binary_expression "PTR_LAB_0003b948 + 0x2914" identifier + number_literal) ))) ;) (return_statement "return;" return ;) })) (expression_statement "pbVar6 = (byte *)(param_1 + 4);" (assignment_expression "pbVar6 = (byte *)(param_1 + 4)" identifier = (cast_expression "(byte *)(param_1 + 4)" ( (type_descriptor "byte *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 4)" ( (binary_expression "param_1 + 4" identifier + number_literal) )))) ;) (if_statement "if (iVar9 < 1) {\n        return;\n      }" if (parenthesized_expression "(iVar9 < 1)" ( (binary_expression "iVar9 < 1" identifier < number_literal) )) (compound_statement "{\n        return;\n      }" { (return_statement "return;" return ;) })) (if_statement "if (iVar9 < 4) {\n        iVar2 = 0;\n      }\n      else {\n        puVar10 = PTR_LAB_0003b948 + 0x2984;\n        puVar5 = PTR_LAB_0003b948 + 0x29b8;\n        iVar8 = 4;\n        do {\n          if (param_3 == 2) {\n            (*(code *)PTR_hex2stdout_0003ba2c)(pbVar6,4,1);\n          }\n          else {\n            (*(code *)PTR___printf_chk_0003b9d8)(1,puVar10,*pbVar6 & 0x3f);\n            if (pbVar6[1] == 0) {\n              (*(code *)PTR_putchar_0003b9f0)(10);\n            }\n            else {\n              (*(code *)PTR___printf_chk_0003b9d8)(1,puVar4 + 0x29a0);\n            }\n            if (((iVar8 == 4) && ((*pbVar6 & 0x3f) == 0x3f)) && (pbVar6[1] == 0xff)) {\n              (*(code *)PTR_puts_0003ba28)(puVar5);\n              bVar1 = pbVar6[2];\n            }\n            else {\n              bVar1 = pbVar6[2];\n            }\n            (*(code *)PTR___printf_chk_0003b9d8)\n                      (1,puVar4 + 0x29f8,bVar1 >> 7,\n                       *(undefined4 *)(puVar3 + (bVar1 & 3) * 4 + -0x513c));\n          }\n          pbVar6 = pbVar6 + 4;\n          if (iVar9 <= iVar8) {\n            return;\n          }\n          iVar7 = iVar8 + 4;\n          iVar2 = -iVar8;\n          iVar8 = iVar7;\n        } while (iVar7 <= iVar9);\n      }" if (parenthesized_expression "(iVar9 < 4)" ( (binary_expression "iVar9 < 4" identifier < number_literal) )) (compound_statement "{\n        iVar2 = 0;\n      }" { (expression_statement "iVar2 = 0;" (assignment_expression "iVar2 = 0" identifier = number_literal) ;) }) (else_clause "else {\n        puVar10 = PTR_LAB_0003b948 + 0x2984;\n        puVar5 = PTR_LAB_0003b948 + 0x29b8;\n        iVar8 = 4;\n        do {\n          if (param_3 == 2) {\n            (*(code *)PTR_hex2stdout_0003ba2c)(pbVar6,4,1);\n          }\n          else {\n            (*(code *)PTR___printf_chk_0003b9d8)(1,puVar10,*pbVar6 & 0x3f);\n            if (pbVar6[1] == 0) {\n              (*(code *)PTR_putchar_0003b9f0)(10);\n            }\n            else {\n              (*(code *)PTR___printf_chk_0003b9d8)(1,puVar4 + 0x29a0);\n            }\n            if (((iVar8 == 4) && ((*pbVar6 & 0x3f) == 0x3f)) && (pbVar6[1] == 0xff)) {\n              (*(code *)PTR_puts_0003ba28)(puVar5);\n              bVar1 = pbVar6[2];\n            }\n            else {\n              bVar1 = pbVar6[2];\n            }\n            (*(code *)PTR___printf_chk_0003b9d8)\n                      (1,puVar4 + 0x29f8,bVar1 >> 7,\n                       *(undefined4 *)(puVar3 + (bVar1 & 3) * 4 + -0x513c));\n          }\n          pbVar6 = pbVar6 + 4;\n          if (iVar9 <= iVar8) {\n            return;\n          }\n          iVar7 = iVar8 + 4;\n          iVar2 = -iVar8;\n          iVar8 = iVar7;\n        } while (iVar7 <= iVar9);\n      }" else (compound_statement "{\n        puVar10 = PTR_LAB_0003b948 + 0x2984;\n        puVar5 = PTR_LAB_0003b948 + 0x29b8;\n        iVar8 = 4;\n        do {\n          if (param_3 == 2) {\n            (*(code *)PTR_hex2stdout_0003ba2c)(pbVar6,4,1);\n          }\n          else {\n            (*(code *)PTR___printf_chk_0003b9d8)(1,puVar10,*pbVar6 & 0x3f);\n            if (pbVar6[1] == 0) {\n              (*(code *)PTR_putchar_0003b9f0)(10);\n            }\n            else {\n              (*(code *)PTR___printf_chk_0003b9d8)(1,puVar4 + 0x29a0);\n            }\n            if (((iVar8 == 4) && ((*pbVar6 & 0x3f) == 0x3f)) && (pbVar6[1] == 0xff)) {\n              (*(code *)PTR_puts_0003ba28)(puVar5);\n              bVar1 = pbVar6[2];\n            }\n            else {\n              bVar1 = pbVar6[2];\n            }\n            (*(code *)PTR___printf_chk_0003b9d8)\n                      (1,puVar4 + 0x29f8,bVar1 >> 7,\n                       *(undefined4 *)(puVar3 + (bVar1 & 3) * 4 + -0x513c));\n          }\n          pbVar6 = pbVar6 + 4;\n          if (iVar9 <= iVar8) {\n            return;\n          }\n          iVar7 = iVar8 + 4;\n          iVar2 = -iVar8;\n          iVar8 = iVar7;\n        } while (iVar7 <= iVar9);\n      }" { (expression_statement "puVar10 = PTR_LAB_0003b948 + 0x2984;" (assignment_expression "puVar10 = PTR_LAB_0003b948 + 0x2984" identifier = (binary_expression "PTR_LAB_0003b948 + 0x2984" identifier + number_literal)) ;) (expression_statement "puVar5 = PTR_LAB_0003b948 + 0x29b8;" (assignment_expression "puVar5 = PTR_LAB_0003b948 + 0x29b8" identifier = (binary_expression "PTR_LAB_0003b948 + 0x29b8" identifier + number_literal)) ;) (expression_statement "iVar8 = 4;" (assignment_expression "iVar8 = 4" identifier = number_literal) ;) (do_statement "do {\n          if (param_3 == 2) {\n            (*(code *)PTR_hex2stdout_0003ba2c)(pbVar6,4,1);\n          }\n          else {\n            (*(code *)PTR___printf_chk_0003b9d8)(1,puVar10,*pbVar6 & 0x3f);\n            if (pbVar6[1] == 0) {\n              (*(code *)PTR_putchar_0003b9f0)(10);\n            }\n            else {\n              (*(code *)PTR___printf_chk_0003b9d8)(1,puVar4 + 0x29a0);\n            }\n            if (((iVar8 == 4) && ((*pbVar6 & 0x3f) == 0x3f)) && (pbVar6[1] == 0xff)) {\n              (*(code *)PTR_puts_0003ba28)(puVar5);\n              bVar1 = pbVar6[2];\n            }\n            else {\n              bVar1 = pbVar6[2];\n            }\n            (*(code *)PTR___printf_chk_0003b9d8)\n                      (1,puVar4 + 0x29f8,bVar1 >> 7,\n                       *(undefined4 *)(puVar3 + (bVar1 & 3) * 4 + -0x513c));\n          }\n          pbVar6 = pbVar6 + 4;\n          if (iVar9 <= iVar8) {\n            return;\n          }\n          iVar7 = iVar8 + 4;\n          iVar2 = -iVar8;\n          iVar8 = iVar7;\n        } while (iVar7 <= iVar9);" do (compound_statement "{\n          if (param_3 == 2) {\n            (*(code *)PTR_hex2stdout_0003ba2c)(pbVar6,4,1);\n          }\n          else {\n            (*(code *)PTR___printf_chk_0003b9d8)(1,puVar10,*pbVar6 & 0x3f);\n            if (pbVar6[1] == 0) {\n              (*(code *)PTR_putchar_0003b9f0)(10);\n            }\n            else {\n              (*(code *)PTR___printf_chk_0003b9d8)(1,puVar4 + 0x29a0);\n            }\n            if (((iVar8 == 4) && ((*pbVar6 & 0x3f) == 0x3f)) && (pbVar6[1] == 0xff)) {\n              (*(code *)PTR_puts_0003ba28)(puVar5);\n              bVar1 = pbVar6[2];\n            }\n            else {\n              bVar1 = pbVar6[2];\n            }\n            (*(code *)PTR___printf_chk_0003b9d8)\n                      (1,puVar4 + 0x29f8,bVar1 >> 7,\n                       *(undefined4 *)(puVar3 + (bVar1 & 3) * 4 + -0x513c));\n          }\n          pbVar6 = pbVar6 + 4;\n          if (iVar9 <= iVar8) {\n            return;\n          }\n          iVar7 = iVar8 + 4;\n          iVar2 = -iVar8;\n          iVar8 = iVar7;\n        }" { (if_statement "if (param_3 == 2) {\n            (*(code *)PTR_hex2stdout_0003ba2c)(pbVar6,4,1);\n          }\n          else {\n            (*(code *)PTR___printf_chk_0003b9d8)(1,puVar10,*pbVar6 & 0x3f);\n            if (pbVar6[1] == 0) {\n              (*(code *)PTR_putchar_0003b9f0)(10);\n            }\n            else {\n              (*(code *)PTR___printf_chk_0003b9d8)(1,puVar4 + 0x29a0);\n            }\n            if (((iVar8 == 4) && ((*pbVar6 & 0x3f) == 0x3f)) && (pbVar6[1] == 0xff)) {\n              (*(code *)PTR_puts_0003ba28)(puVar5);\n              bVar1 = pbVar6[2];\n            }\n            else {\n              bVar1 = pbVar6[2];\n            }\n            (*(code *)PTR___printf_chk_0003b9d8)\n                      (1,puVar4 + 0x29f8,bVar1 >> 7,\n                       *(undefined4 *)(puVar3 + (bVar1 & 3) * 4 + -0x513c));\n          }" if (parenthesized_expression "(param_3 == 2)" ( (binary_expression "param_3 == 2" identifier == number_literal) )) (compound_statement "{\n            (*(code *)PTR_hex2stdout_0003ba2c)(pbVar6,4,1);\n          }" { (expression_statement "(*(code *)PTR_hex2stdout_0003ba2c)(pbVar6,4,1);" (call_expression "(*(code *)PTR_hex2stdout_0003ba2c)(pbVar6,4,1)" (parenthesized_expression "(*(code *)PTR_hex2stdout_0003ba2c)" ( (pointer_expression "*(code *)PTR_hex2stdout_0003ba2c" * (cast_expression "(code *)PTR_hex2stdout_0003ba2c" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(pbVar6,4,1)" ( identifier , number_literal , number_literal ))) ;) }) (else_clause "else {\n            (*(code *)PTR___printf_chk_0003b9d8)(1,puVar10,*pbVar6 & 0x3f);\n            if (pbVar6[1] == 0) {\n              (*(code *)PTR_putchar_0003b9f0)(10);\n            }\n            else {\n              (*(code *)PTR___printf_chk_0003b9d8)(1,puVar4 + 0x29a0);\n            }\n            if (((iVar8 == 4) && ((*pbVar6 & 0x3f) == 0x3f)) && (pbVar6[1] == 0xff)) {\n              (*(code *)PTR_puts_0003ba28)(puVar5);\n              bVar1 = pbVar6[2];\n            }\n            else {\n              bVar1 = pbVar6[2];\n            }\n            (*(code *)PTR___printf_chk_0003b9d8)\n                      (1,puVar4 + 0x29f8,bVar1 >> 7,\n                       *(undefined4 *)(puVar3 + (bVar1 & 3) * 4 + -0x513c));\n          }" else (compound_statement "{\n            (*(code *)PTR___printf_chk_0003b9d8)(1,puVar10,*pbVar6 & 0x3f);\n            if (pbVar6[1] == 0) {\n              (*(code *)PTR_putchar_0003b9f0)(10);\n            }\n            else {\n              (*(code *)PTR___printf_chk_0003b9d8)(1,puVar4 + 0x29a0);\n            }\n            if (((iVar8 == 4) && ((*pbVar6 & 0x3f) == 0x3f)) && (pbVar6[1] == 0xff)) {\n              (*(code *)PTR_puts_0003ba28)(puVar5);\n              bVar1 = pbVar6[2];\n            }\n            else {\n              bVar1 = pbVar6[2];\n            }\n            (*(code *)PTR___printf_chk_0003b9d8)\n                      (1,puVar4 + 0x29f8,bVar1 >> 7,\n                       *(undefined4 *)(puVar3 + (bVar1 & 3) * 4 + -0x513c));\n          }" { (expression_statement "(*(code *)PTR___printf_chk_0003b9d8)(1,puVar10,*pbVar6 & 0x3f);" (call_expression "(*(code *)PTR___printf_chk_0003b9d8)(1,puVar10,*pbVar6 & 0x3f)" (parenthesized_expression "(*(code *)PTR___printf_chk_0003b9d8)" ( (pointer_expression "*(code *)PTR___printf_chk_0003b9d8" * (cast_expression "(code *)PTR___printf_chk_0003b9d8" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(1,puVar10,*pbVar6 & 0x3f)" ( number_literal , identifier , (binary_expression "*pbVar6 & 0x3f" (pointer_expression "*pbVar6" * identifier) & number_literal) ))) ;) (if_statement "if (pbVar6[1] == 0) {\n              (*(code *)PTR_putchar_0003b9f0)(10);\n            }\n            else {\n              (*(code *)PTR___printf_chk_0003b9d8)(1,puVar4 + 0x29a0);\n            }" if (parenthesized_expression "(pbVar6[1] == 0)" ( (binary_expression "pbVar6[1] == 0" (subscript_expression "pbVar6[1]" identifier [ number_literal ]) == number_literal) )) (compound_statement "{\n              (*(code *)PTR_putchar_0003b9f0)(10);\n            }" { (expression_statement "(*(code *)PTR_putchar_0003b9f0)(10);" (call_expression "(*(code *)PTR_putchar_0003b9f0)(10)" (parenthesized_expression "(*(code *)PTR_putchar_0003b9f0)" ( (pointer_expression "*(code *)PTR_putchar_0003b9f0" * (cast_expression "(code *)PTR_putchar_0003b9f0" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(10)" ( number_literal ))) ;) }) (else_clause "else {\n              (*(code *)PTR___printf_chk_0003b9d8)(1,puVar4 + 0x29a0);\n            }" else (compound_statement "{\n              (*(code *)PTR___printf_chk_0003b9d8)(1,puVar4 + 0x29a0);\n            }" { (expression_statement "(*(code *)PTR___printf_chk_0003b9d8)(1,puVar4 + 0x29a0);" (call_expression "(*(code *)PTR___printf_chk_0003b9d8)(1,puVar4 + 0x29a0)" (parenthesized_expression "(*(code *)PTR___printf_chk_0003b9d8)" ( (pointer_expression "*(code *)PTR___printf_chk_0003b9d8" * (cast_expression "(code *)PTR___printf_chk_0003b9d8" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(1,puVar4 + 0x29a0)" ( number_literal , (binary_expression "puVar4 + 0x29a0" identifier + number_literal) ))) ;) }))) (if_statement "if (((iVar8 == 4) && ((*pbVar6 & 0x3f) == 0x3f)) && (pbVar6[1] == 0xff)) {\n              (*(code *)PTR_puts_0003ba28)(puVar5);\n              bVar1 = pbVar6[2];\n            }\n            else {\n              bVar1 = pbVar6[2];\n            }" if (parenthesized_expression "(((iVar8 == 4) && ((*pbVar6 & 0x3f) == 0x3f)) && (pbVar6[1] == 0xff))" ( (binary_expression "((iVar8 == 4) && ((*pbVar6 & 0x3f) == 0x3f)) && (pbVar6[1] == 0xff)" (parenthesized_expression "((iVar8 == 4) && ((*pbVar6 & 0x3f) == 0x3f))" ( (binary_expression "(iVar8 == 4) && ((*pbVar6 & 0x3f) == 0x3f)" (parenthesized_expression "(iVar8 == 4)" ( (binary_expression "iVar8 == 4" identifier == number_literal) )) && (parenthesized_expression "((*pbVar6 & 0x3f) == 0x3f)" ( (binary_expression "(*pbVar6 & 0x3f) == 0x3f" (parenthesized_expression "(*pbVar6 & 0x3f)" ( (binary_expression "*pbVar6 & 0x3f" (pointer_expression "*pbVar6" * identifier) & number_literal) )) == number_literal) ))) )) && (parenthesized_expression "(pbVar6[1] == 0xff)" ( (binary_expression "pbVar6[1] == 0xff" (subscript_expression "pbVar6[1]" identifier [ number_literal ]) == number_literal) ))) )) (compound_statement "{\n              (*(code *)PTR_puts_0003ba28)(puVar5);\n              bVar1 = pbVar6[2];\n            }" { (expression_statement "(*(code *)PTR_puts_0003ba28)(puVar5);" (call_expression "(*(code *)PTR_puts_0003ba28)(puVar5)" (parenthesized_expression "(*(code *)PTR_puts_0003ba28)" ( (pointer_expression "*(code *)PTR_puts_0003ba28" * (cast_expression "(code *)PTR_puts_0003ba28" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(puVar5)" ( identifier ))) ;) (expression_statement "bVar1 = pbVar6[2];" (assignment_expression "bVar1 = pbVar6[2]" identifier = (subscript_expression "pbVar6[2]" identifier [ number_literal ])) ;) }) (else_clause "else {\n              bVar1 = pbVar6[2];\n            }" else (compound_statement "{\n              bVar1 = pbVar6[2];\n            }" { (expression_statement "bVar1 = pbVar6[2];" (assignment_expression "bVar1 = pbVar6[2]" identifier = (subscript_expression "pbVar6[2]" identifier [ number_literal ])) ;) }))) (expression_statement "(*(code *)PTR___printf_chk_0003b9d8)\n                      (1,puVar4 + 0x29f8,bVar1 >> 7,\n                       *(undefined4 *)(puVar3 + (bVar1 & 3) * 4 + -0x513c));" (call_expression "(*(code *)PTR___printf_chk_0003b9d8)\n                      (1,puVar4 + 0x29f8,bVar1 >> 7,\n                       *(undefined4 *)(puVar3 + (bVar1 & 3) * 4 + -0x513c))" (parenthesized_expression "(*(code *)PTR___printf_chk_0003b9d8)" ( (pointer_expression "*(code *)PTR___printf_chk_0003b9d8" * (cast_expression "(code *)PTR___printf_chk_0003b9d8" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(1,puVar4 + 0x29f8,bVar1 >> 7,\n                       *(undefined4 *)(puVar3 + (bVar1 & 3) * 4 + -0x513c))" ( number_literal , (binary_expression "puVar4 + 0x29f8" identifier + number_literal) , (binary_expression "bVar1 >> 7" identifier >> number_literal) , (pointer_expression "*(undefined4 *)(puVar3 + (bVar1 & 3) * 4 + -0x513c)" * (cast_expression "(undefined4 *)(puVar3 + (bVar1 & 3) * 4 + -0x513c)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(puVar3 + (bVar1 & 3) * 4 + -0x513c)" ( (binary_expression "puVar3 + (bVar1 & 3) * 4 + -0x513c" (binary_expression "puVar3 + (bVar1 & 3) * 4" identifier + (binary_expression "(bVar1 & 3) * 4" (parenthesized_expression "(bVar1 & 3)" ( (binary_expression "bVar1 & 3" identifier & number_literal) )) * number_literal)) + number_literal) )))) ))) ;) }))) (expression_statement "pbVar6 = pbVar6 + 4;" (assignment_expression "pbVar6 = pbVar6 + 4" identifier = (binary_expression "pbVar6 + 4" identifier + number_literal)) ;) (if_statement "if (iVar9 <= iVar8) {\n            return;\n          }" if (parenthesized_expression "(iVar9 <= iVar8)" ( (binary_expression "iVar9 <= iVar8" identifier <= identifier) )) (compound_statement "{\n            return;\n          }" { (return_statement "return;" return ;) })) (expression_statement "iVar7 = iVar8 + 4;" (assignment_expression "iVar7 = iVar8 + 4" identifier = (binary_expression "iVar8 + 4" identifier + number_literal)) ;) (expression_statement "iVar2 = -iVar8;" (assignment_expression "iVar2 = -iVar8" identifier = (unary_expression "-iVar8" - identifier)) ;) (expression_statement "iVar8 = iVar7;" (assignment_expression "iVar8 = iVar7" identifier = identifier) ;) }) while (parenthesized_expression "(iVar7 <= iVar9)" ( (binary_expression "iVar7 <= iVar9" identifier <= identifier) )) ;) }))) (expression_statement "(*(code *)PTR_pr2serr_0003ba44)(PTR_LAB_0003b948 + 0x2944,4,iVar9 + iVar2);" (call_expression "(*(code *)PTR_pr2serr_0003ba44)(PTR_LAB_0003b948 + 0x2944,4,iVar9 + iVar2)" (parenthesized_expression "(*(code *)PTR_pr2serr_0003ba44)" ( (pointer_expression "*(code *)PTR_pr2serr_0003ba44" * (cast_expression "(code *)PTR_pr2serr_0003ba44" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(PTR_LAB_0003b948 + 0x2944,4,iVar9 + iVar2)" ( (binary_expression "PTR_LAB_0003b948 + 0x2944" identifier + number_literal) , number_literal , (binary_expression "iVar9 + iVar2" identifier + identifier) ))) ;) (return_statement "return;" return ;) })) (expression_statement "param_3 = -1;" (assignment_expression "param_3 = -1" identifier = number_literal) ;) })) (expression_statement "(*(code *)PTR_hex2stdout_0003ba2c)(param_1,param_2,param_3);" (call_expression "(*(code *)PTR_hex2stdout_0003ba2c)(param_1,param_2,param_3)" (parenthesized_expression "(*(code *)PTR_hex2stdout_0003ba2c)" ( (pointer_expression "*(code *)PTR_hex2stdout_0003ba2c" * (cast_expression "(code *)PTR_hex2stdout_0003ba2c" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(param_1,param_2,param_3)" ( identifier , identifier , identifier ))) ;) (return_statement "return;" return ;) })))
(translation_unit "void decode_mode_policy_vpd(uint8_t *buff,int len,int do_hex)\n\n{\n  byte bVar1;\n  int iVar2;\n  undefined *puVar3;\n  undefined *puVar4;\n  undefined *puVar5;\n  byte *pbVar6;\n  int iVar7;\n  int iVar8;\n  int iVar9;\n  undefined *puVar10;\n  \n  puVar4 = PTR_LAB_0003b948;\n  puVar3 = PTR_DAT_0003b938;\n  if (do_hex != 1) {\n    if (do_hex < 3) {\n      iVar9 = len + -4;\n      if (len < 4) {\n        (*(code *)PTR_pr2serr_0003ba44)(PTR_LAB_0003b948 + 0x2914);\n        return;\n      }\n      pbVar6 = buff + 4;\n      if (iVar9 < 1) {\n        return;\n      }\n      if (iVar9 < 4) {\n        iVar2 = 0;\n      }\n      else {\n        puVar10 = PTR_LAB_0003b948 + 0x2984;\n        puVar5 = PTR_LAB_0003b948 + 0x29b8;\n        iVar8 = 4;\n        do {\n          if (do_hex == 2) {\n            (*(code *)PTR_hex2stdout_0003ba2c)(pbVar6,4,1);\n          }\n          else {\n            (*(code *)PTR___printf_chk_0003b9d8)(1,puVar10,*pbVar6 & 0x3f);\n            if (pbVar6[1] == 0) {\n              (*(code *)PTR_putchar_0003b9f0)(10);\n            }\n            else {\n              (*(code *)PTR___printf_chk_0003b9d8)(1,puVar4 + 0x29a0);\n            }\n            if (((iVar8 == 4) && ((*pbVar6 & 0x3f) == 0x3f)) && (pbVar6[1] == 0xff)) {\n              (*(code *)PTR_puts_0003ba28)(puVar5);\n              bVar1 = pbVar6[2];\n            }\n            else {\n              bVar1 = pbVar6[2];\n            }\n            (*(code *)PTR___printf_chk_0003b9d8)\n                      (1,puVar4 + 0x29f8,bVar1 >> 7,\n                       *(undefined4 *)(puVar3 + (bVar1 & 3) * 4 + -0x513c));\n          }\n          pbVar6 = pbVar6 + 4;\n          if (iVar9 <= iVar8) {\n            return;\n          }\n          iVar7 = iVar8 + 4;\n          iVar2 = -iVar8;\n          iVar8 = iVar7;\n        } while (iVar7 <= iVar9);\n      }\n      (*(code *)PTR_pr2serr_0003ba44)(PTR_LAB_0003b948 + 0x2944,4,iVar9 + iVar2);\n      return;\n    }\n    do_hex = -1;\n  }\n  (*(code *)PTR_hex2stdout_0003ba2c)(buff,len,do_hex);\n  return;\n}\n\n" (function_definition "void decode_mode_policy_vpd(uint8_t *buff,int len,int do_hex)\n\n{\n  byte bVar1;\n  int iVar2;\n  undefined *puVar3;\n  undefined *puVar4;\n  undefined *puVar5;\n  byte *pbVar6;\n  int iVar7;\n  int iVar8;\n  int iVar9;\n  undefined *puVar10;\n  \n  puVar4 = PTR_LAB_0003b948;\n  puVar3 = PTR_DAT_0003b938;\n  if (do_hex != 1) {\n    if (do_hex < 3) {\n      iVar9 = len + -4;\n      if (len < 4) {\n        (*(code *)PTR_pr2serr_0003ba44)(PTR_LAB_0003b948 + 0x2914);\n        return;\n      }\n      pbVar6 = buff + 4;\n      if (iVar9 < 1) {\n        return;\n      }\n      if (iVar9 < 4) {\n        iVar2 = 0;\n      }\n      else {\n        puVar10 = PTR_LAB_0003b948 + 0x2984;\n        puVar5 = PTR_LAB_0003b948 + 0x29b8;\n        iVar8 = 4;\n        do {\n          if (do_hex == 2) {\n            (*(code *)PTR_hex2stdout_0003ba2c)(pbVar6,4,1);\n          }\n          else {\n            (*(code *)PTR___printf_chk_0003b9d8)(1,puVar10,*pbVar6 & 0x3f);\n            if (pbVar6[1] == 0) {\n              (*(code *)PTR_putchar_0003b9f0)(10);\n            }\n            else {\n              (*(code *)PTR___printf_chk_0003b9d8)(1,puVar4 + 0x29a0);\n            }\n            if (((iVar8 == 4) && ((*pbVar6 & 0x3f) == 0x3f)) && (pbVar6[1] == 0xff)) {\n              (*(code *)PTR_puts_0003ba28)(puVar5);\n              bVar1 = pbVar6[2];\n            }\n            else {\n              bVar1 = pbVar6[2];\n            }\n            (*(code *)PTR___printf_chk_0003b9d8)\n                      (1,puVar4 + 0x29f8,bVar1 >> 7,\n                       *(undefined4 *)(puVar3 + (bVar1 & 3) * 4 + -0x513c));\n          }\n          pbVar6 = pbVar6 + 4;\n          if (iVar9 <= iVar8) {\n            return;\n          }\n          iVar7 = iVar8 + 4;\n          iVar2 = -iVar8;\n          iVar8 = iVar7;\n        } while (iVar7 <= iVar9);\n      }\n      (*(code *)PTR_pr2serr_0003ba44)(PTR_LAB_0003b948 + 0x2944,4,iVar9 + iVar2);\n      return;\n    }\n    do_hex = -1;\n  }\n  (*(code *)PTR_hex2stdout_0003ba2c)(buff,len,do_hex);\n  return;\n}" primitive_type (function_declarator "decode_mode_policy_vpd(uint8_t *buff,int len,int do_hex)" identifier (parameter_list "(uint8_t *buff,int len,int do_hex)" ( (parameter_declaration "uint8_t *buff" primitive_type (pointer_declarator "*buff" * identifier)) , (parameter_declaration "int len" primitive_type identifier) , (parameter_declaration "int do_hex" primitive_type identifier) ))) (compound_statement "{\n  byte bVar1;\n  int iVar2;\n  undefined *puVar3;\n  undefined *puVar4;\n  undefined *puVar5;\n  byte *pbVar6;\n  int iVar7;\n  int iVar8;\n  int iVar9;\n  undefined *puVar10;\n  \n  puVar4 = PTR_LAB_0003b948;\n  puVar3 = PTR_DAT_0003b938;\n  if (do_hex != 1) {\n    if (do_hex < 3) {\n      iVar9 = len + -4;\n      if (len < 4) {\n        (*(code *)PTR_pr2serr_0003ba44)(PTR_LAB_0003b948 + 0x2914);\n        return;\n      }\n      pbVar6 = buff + 4;\n      if (iVar9 < 1) {\n        return;\n      }\n      if (iVar9 < 4) {\n        iVar2 = 0;\n      }\n      else {\n        puVar10 = PTR_LAB_0003b948 + 0x2984;\n        puVar5 = PTR_LAB_0003b948 + 0x29b8;\n        iVar8 = 4;\n        do {\n          if (do_hex == 2) {\n            (*(code *)PTR_hex2stdout_0003ba2c)(pbVar6,4,1);\n          }\n          else {\n            (*(code *)PTR___printf_chk_0003b9d8)(1,puVar10,*pbVar6 & 0x3f);\n            if (pbVar6[1] == 0) {\n              (*(code *)PTR_putchar_0003b9f0)(10);\n            }\n            else {\n              (*(code *)PTR___printf_chk_0003b9d8)(1,puVar4 + 0x29a0);\n            }\n            if (((iVar8 == 4) && ((*pbVar6 & 0x3f) == 0x3f)) && (pbVar6[1] == 0xff)) {\n              (*(code *)PTR_puts_0003ba28)(puVar5);\n              bVar1 = pbVar6[2];\n            }\n            else {\n              bVar1 = pbVar6[2];\n            }\n            (*(code *)PTR___printf_chk_0003b9d8)\n                      (1,puVar4 + 0x29f8,bVar1 >> 7,\n                       *(undefined4 *)(puVar3 + (bVar1 & 3) * 4 + -0x513c));\n          }\n          pbVar6 = pbVar6 + 4;\n          if (iVar9 <= iVar8) {\n            return;\n          }\n          iVar7 = iVar8 + 4;\n          iVar2 = -iVar8;\n          iVar8 = iVar7;\n        } while (iVar7 <= iVar9);\n      }\n      (*(code *)PTR_pr2serr_0003ba44)(PTR_LAB_0003b948 + 0x2944,4,iVar9 + iVar2);\n      return;\n    }\n    do_hex = -1;\n  }\n  (*(code *)PTR_hex2stdout_0003ba2c)(buff,len,do_hex);\n  return;\n}" { (declaration "byte bVar1;" type_identifier identifier ;) (declaration "int iVar2;" primitive_type identifier ;) (declaration "undefined *puVar3;" type_identifier (pointer_declarator "*puVar3" * identifier) ;) (declaration "undefined *puVar4;" type_identifier (pointer_declarator "*puVar4" * identifier) ;) (declaration "undefined *puVar5;" type_identifier (pointer_declarator "*puVar5" * identifier) ;) (declaration "byte *pbVar6;" type_identifier (pointer_declarator "*pbVar6" * identifier) ;) (declaration "int iVar7;" primitive_type identifier ;) (declaration "int iVar8;" primitive_type identifier ;) (declaration "int iVar9;" primitive_type identifier ;) (declaration "undefined *puVar10;" type_identifier (pointer_declarator "*puVar10" * identifier) ;) (expression_statement "puVar4 = PTR_LAB_0003b948;" (assignment_expression "puVar4 = PTR_LAB_0003b948" identifier = identifier) ;) (expression_statement "puVar3 = PTR_DAT_0003b938;" (assignment_expression "puVar3 = PTR_DAT_0003b938" identifier = identifier) ;) (if_statement "if (do_hex != 1) {\n    if (do_hex < 3) {\n      iVar9 = len + -4;\n      if (len < 4) {\n        (*(code *)PTR_pr2serr_0003ba44)(PTR_LAB_0003b948 + 0x2914);\n        return;\n      }\n      pbVar6 = buff + 4;\n      if (iVar9 < 1) {\n        return;\n      }\n      if (iVar9 < 4) {\n        iVar2 = 0;\n      }\n      else {\n        puVar10 = PTR_LAB_0003b948 + 0x2984;\n        puVar5 = PTR_LAB_0003b948 + 0x29b8;\n        iVar8 = 4;\n        do {\n          if (do_hex == 2) {\n            (*(code *)PTR_hex2stdout_0003ba2c)(pbVar6,4,1);\n          }\n          else {\n            (*(code *)PTR___printf_chk_0003b9d8)(1,puVar10,*pbVar6 & 0x3f);\n            if (pbVar6[1] == 0) {\n              (*(code *)PTR_putchar_0003b9f0)(10);\n            }\n            else {\n              (*(code *)PTR___printf_chk_0003b9d8)(1,puVar4 + 0x29a0);\n            }\n            if (((iVar8 == 4) && ((*pbVar6 & 0x3f) == 0x3f)) && (pbVar6[1] == 0xff)) {\n              (*(code *)PTR_puts_0003ba28)(puVar5);\n              bVar1 = pbVar6[2];\n            }\n            else {\n              bVar1 = pbVar6[2];\n            }\n            (*(code *)PTR___printf_chk_0003b9d8)\n                      (1,puVar4 + 0x29f8,bVar1 >> 7,\n                       *(undefined4 *)(puVar3 + (bVar1 & 3) * 4 + -0x513c));\n          }\n          pbVar6 = pbVar6 + 4;\n          if (iVar9 <= iVar8) {\n            return;\n          }\n          iVar7 = iVar8 + 4;\n          iVar2 = -iVar8;\n          iVar8 = iVar7;\n        } while (iVar7 <= iVar9);\n      }\n      (*(code *)PTR_pr2serr_0003ba44)(PTR_LAB_0003b948 + 0x2944,4,iVar9 + iVar2);\n      return;\n    }\n    do_hex = -1;\n  }" if (parenthesized_expression "(do_hex != 1)" ( (binary_expression "do_hex != 1" identifier != number_literal) )) (compound_statement "{\n    if (do_hex < 3) {\n      iVar9 = len + -4;\n      if (len < 4) {\n        (*(code *)PTR_pr2serr_0003ba44)(PTR_LAB_0003b948 + 0x2914);\n        return;\n      }\n      pbVar6 = buff + 4;\n      if (iVar9 < 1) {\n        return;\n      }\n      if (iVar9 < 4) {\n        iVar2 = 0;\n      }\n      else {\n        puVar10 = PTR_LAB_0003b948 + 0x2984;\n        puVar5 = PTR_LAB_0003b948 + 0x29b8;\n        iVar8 = 4;\n        do {\n          if (do_hex == 2) {\n            (*(code *)PTR_hex2stdout_0003ba2c)(pbVar6,4,1);\n          }\n          else {\n            (*(code *)PTR___printf_chk_0003b9d8)(1,puVar10,*pbVar6 & 0x3f);\n            if (pbVar6[1] == 0) {\n              (*(code *)PTR_putchar_0003b9f0)(10);\n            }\n            else {\n              (*(code *)PTR___printf_chk_0003b9d8)(1,puVar4 + 0x29a0);\n            }\n            if (((iVar8 == 4) && ((*pbVar6 & 0x3f) == 0x3f)) && (pbVar6[1] == 0xff)) {\n              (*(code *)PTR_puts_0003ba28)(puVar5);\n              bVar1 = pbVar6[2];\n            }\n            else {\n              bVar1 = pbVar6[2];\n            }\n            (*(code *)PTR___printf_chk_0003b9d8)\n                      (1,puVar4 + 0x29f8,bVar1 >> 7,\n                       *(undefined4 *)(puVar3 + (bVar1 & 3) * 4 + -0x513c));\n          }\n          pbVar6 = pbVar6 + 4;\n          if (iVar9 <= iVar8) {\n            return;\n          }\n          iVar7 = iVar8 + 4;\n          iVar2 = -iVar8;\n          iVar8 = iVar7;\n        } while (iVar7 <= iVar9);\n      }\n      (*(code *)PTR_pr2serr_0003ba44)(PTR_LAB_0003b948 + 0x2944,4,iVar9 + iVar2);\n      return;\n    }\n    do_hex = -1;\n  }" { (if_statement "if (do_hex < 3) {\n      iVar9 = len + -4;\n      if (len < 4) {\n        (*(code *)PTR_pr2serr_0003ba44)(PTR_LAB_0003b948 + 0x2914);\n        return;\n      }\n      pbVar6 = buff + 4;\n      if (iVar9 < 1) {\n        return;\n      }\n      if (iVar9 < 4) {\n        iVar2 = 0;\n      }\n      else {\n        puVar10 = PTR_LAB_0003b948 + 0x2984;\n        puVar5 = PTR_LAB_0003b948 + 0x29b8;\n        iVar8 = 4;\n        do {\n          if (do_hex == 2) {\n            (*(code *)PTR_hex2stdout_0003ba2c)(pbVar6,4,1);\n          }\n          else {\n            (*(code *)PTR___printf_chk_0003b9d8)(1,puVar10,*pbVar6 & 0x3f);\n            if (pbVar6[1] == 0) {\n              (*(code *)PTR_putchar_0003b9f0)(10);\n            }\n            else {\n              (*(code *)PTR___printf_chk_0003b9d8)(1,puVar4 + 0x29a0);\n            }\n            if (((iVar8 == 4) && ((*pbVar6 & 0x3f) == 0x3f)) && (pbVar6[1] == 0xff)) {\n              (*(code *)PTR_puts_0003ba28)(puVar5);\n              bVar1 = pbVar6[2];\n            }\n            else {\n              bVar1 = pbVar6[2];\n            }\n            (*(code *)PTR___printf_chk_0003b9d8)\n                      (1,puVar4 + 0x29f8,bVar1 >> 7,\n                       *(undefined4 *)(puVar3 + (bVar1 & 3) * 4 + -0x513c));\n          }\n          pbVar6 = pbVar6 + 4;\n          if (iVar9 <= iVar8) {\n            return;\n          }\n          iVar7 = iVar8 + 4;\n          iVar2 = -iVar8;\n          iVar8 = iVar7;\n        } while (iVar7 <= iVar9);\n      }\n      (*(code *)PTR_pr2serr_0003ba44)(PTR_LAB_0003b948 + 0x2944,4,iVar9 + iVar2);\n      return;\n    }" if (parenthesized_expression "(do_hex < 3)" ( (binary_expression "do_hex < 3" identifier < number_literal) )) (compound_statement "{\n      iVar9 = len + -4;\n      if (len < 4) {\n        (*(code *)PTR_pr2serr_0003ba44)(PTR_LAB_0003b948 + 0x2914);\n        return;\n      }\n      pbVar6 = buff + 4;\n      if (iVar9 < 1) {\n        return;\n      }\n      if (iVar9 < 4) {\n        iVar2 = 0;\n      }\n      else {\n        puVar10 = PTR_LAB_0003b948 + 0x2984;\n        puVar5 = PTR_LAB_0003b948 + 0x29b8;\n        iVar8 = 4;\n        do {\n          if (do_hex == 2) {\n            (*(code *)PTR_hex2stdout_0003ba2c)(pbVar6,4,1);\n          }\n          else {\n            (*(code *)PTR___printf_chk_0003b9d8)(1,puVar10,*pbVar6 & 0x3f);\n            if (pbVar6[1] == 0) {\n              (*(code *)PTR_putchar_0003b9f0)(10);\n            }\n            else {\n              (*(code *)PTR___printf_chk_0003b9d8)(1,puVar4 + 0x29a0);\n            }\n            if (((iVar8 == 4) && ((*pbVar6 & 0x3f) == 0x3f)) && (pbVar6[1] == 0xff)) {\n              (*(code *)PTR_puts_0003ba28)(puVar5);\n              bVar1 = pbVar6[2];\n            }\n            else {\n              bVar1 = pbVar6[2];\n            }\n            (*(code *)PTR___printf_chk_0003b9d8)\n                      (1,puVar4 + 0x29f8,bVar1 >> 7,\n                       *(undefined4 *)(puVar3 + (bVar1 & 3) * 4 + -0x513c));\n          }\n          pbVar6 = pbVar6 + 4;\n          if (iVar9 <= iVar8) {\n            return;\n          }\n          iVar7 = iVar8 + 4;\n          iVar2 = -iVar8;\n          iVar8 = iVar7;\n        } while (iVar7 <= iVar9);\n      }\n      (*(code *)PTR_pr2serr_0003ba44)(PTR_LAB_0003b948 + 0x2944,4,iVar9 + iVar2);\n      return;\n    }" { (expression_statement "iVar9 = len + -4;" (assignment_expression "iVar9 = len + -4" identifier = (binary_expression "len + -4" identifier + number_literal)) ;) (if_statement "if (len < 4) {\n        (*(code *)PTR_pr2serr_0003ba44)(PTR_LAB_0003b948 + 0x2914);\n        return;\n      }" if (parenthesized_expression "(len < 4)" ( (binary_expression "len < 4" identifier < number_literal) )) (compound_statement "{\n        (*(code *)PTR_pr2serr_0003ba44)(PTR_LAB_0003b948 + 0x2914);\n        return;\n      }" { (expression_statement "(*(code *)PTR_pr2serr_0003ba44)(PTR_LAB_0003b948 + 0x2914);" (call_expression "(*(code *)PTR_pr2serr_0003ba44)(PTR_LAB_0003b948 + 0x2914)" (parenthesized_expression "(*(code *)PTR_pr2serr_0003ba44)" ( (pointer_expression "*(code *)PTR_pr2serr_0003ba44" * (cast_expression "(code *)PTR_pr2serr_0003ba44" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(PTR_LAB_0003b948 + 0x2914)" ( (binary_expression "PTR_LAB_0003b948 + 0x2914" identifier + number_literal) ))) ;) (return_statement "return;" return ;) })) (expression_statement "pbVar6 = buff + 4;" (assignment_expression "pbVar6 = buff + 4" identifier = (binary_expression "buff + 4" identifier + number_literal)) ;) (if_statement "if (iVar9 < 1) {\n        return;\n      }" if (parenthesized_expression "(iVar9 < 1)" ( (binary_expression "iVar9 < 1" identifier < number_literal) )) (compound_statement "{\n        return;\n      }" { (return_statement "return;" return ;) })) (if_statement "if (iVar9 < 4) {\n        iVar2 = 0;\n      }\n      else {\n        puVar10 = PTR_LAB_0003b948 + 0x2984;\n        puVar5 = PTR_LAB_0003b948 + 0x29b8;\n        iVar8 = 4;\n        do {\n          if (do_hex == 2) {\n            (*(code *)PTR_hex2stdout_0003ba2c)(pbVar6,4,1);\n          }\n          else {\n            (*(code *)PTR___printf_chk_0003b9d8)(1,puVar10,*pbVar6 & 0x3f);\n            if (pbVar6[1] == 0) {\n              (*(code *)PTR_putchar_0003b9f0)(10);\n            }\n            else {\n              (*(code *)PTR___printf_chk_0003b9d8)(1,puVar4 + 0x29a0);\n            }\n            if (((iVar8 == 4) && ((*pbVar6 & 0x3f) == 0x3f)) && (pbVar6[1] == 0xff)) {\n              (*(code *)PTR_puts_0003ba28)(puVar5);\n              bVar1 = pbVar6[2];\n            }\n            else {\n              bVar1 = pbVar6[2];\n            }\n            (*(code *)PTR___printf_chk_0003b9d8)\n                      (1,puVar4 + 0x29f8,bVar1 >> 7,\n                       *(undefined4 *)(puVar3 + (bVar1 & 3) * 4 + -0x513c));\n          }\n          pbVar6 = pbVar6 + 4;\n          if (iVar9 <= iVar8) {\n            return;\n          }\n          iVar7 = iVar8 + 4;\n          iVar2 = -iVar8;\n          iVar8 = iVar7;\n        } while (iVar7 <= iVar9);\n      }" if (parenthesized_expression "(iVar9 < 4)" ( (binary_expression "iVar9 < 4" identifier < number_literal) )) (compound_statement "{\n        iVar2 = 0;\n      }" { (expression_statement "iVar2 = 0;" (assignment_expression "iVar2 = 0" identifier = number_literal) ;) }) (else_clause "else {\n        puVar10 = PTR_LAB_0003b948 + 0x2984;\n        puVar5 = PTR_LAB_0003b948 + 0x29b8;\n        iVar8 = 4;\n        do {\n          if (do_hex == 2) {\n            (*(code *)PTR_hex2stdout_0003ba2c)(pbVar6,4,1);\n          }\n          else {\n            (*(code *)PTR___printf_chk_0003b9d8)(1,puVar10,*pbVar6 & 0x3f);\n            if (pbVar6[1] == 0) {\n              (*(code *)PTR_putchar_0003b9f0)(10);\n            }\n            else {\n              (*(code *)PTR___printf_chk_0003b9d8)(1,puVar4 + 0x29a0);\n            }\n            if (((iVar8 == 4) && ((*pbVar6 & 0x3f) == 0x3f)) && (pbVar6[1] == 0xff)) {\n              (*(code *)PTR_puts_0003ba28)(puVar5);\n              bVar1 = pbVar6[2];\n            }\n            else {\n              bVar1 = pbVar6[2];\n            }\n            (*(code *)PTR___printf_chk_0003b9d8)\n                      (1,puVar4 + 0x29f8,bVar1 >> 7,\n                       *(undefined4 *)(puVar3 + (bVar1 & 3) * 4 + -0x513c));\n          }\n          pbVar6 = pbVar6 + 4;\n          if (iVar9 <= iVar8) {\n            return;\n          }\n          iVar7 = iVar8 + 4;\n          iVar2 = -iVar8;\n          iVar8 = iVar7;\n        } while (iVar7 <= iVar9);\n      }" else (compound_statement "{\n        puVar10 = PTR_LAB_0003b948 + 0x2984;\n        puVar5 = PTR_LAB_0003b948 + 0x29b8;\n        iVar8 = 4;\n        do {\n          if (do_hex == 2) {\n            (*(code *)PTR_hex2stdout_0003ba2c)(pbVar6,4,1);\n          }\n          else {\n            (*(code *)PTR___printf_chk_0003b9d8)(1,puVar10,*pbVar6 & 0x3f);\n            if (pbVar6[1] == 0) {\n              (*(code *)PTR_putchar_0003b9f0)(10);\n            }\n            else {\n              (*(code *)PTR___printf_chk_0003b9d8)(1,puVar4 + 0x29a0);\n            }\n            if (((iVar8 == 4) && ((*pbVar6 & 0x3f) == 0x3f)) && (pbVar6[1] == 0xff)) {\n              (*(code *)PTR_puts_0003ba28)(puVar5);\n              bVar1 = pbVar6[2];\n            }\n            else {\n              bVar1 = pbVar6[2];\n            }\n            (*(code *)PTR___printf_chk_0003b9d8)\n                      (1,puVar4 + 0x29f8,bVar1 >> 7,\n                       *(undefined4 *)(puVar3 + (bVar1 & 3) * 4 + -0x513c));\n          }\n          pbVar6 = pbVar6 + 4;\n          if (iVar9 <= iVar8) {\n            return;\n          }\n          iVar7 = iVar8 + 4;\n          iVar2 = -iVar8;\n          iVar8 = iVar7;\n        } while (iVar7 <= iVar9);\n      }" { (expression_statement "puVar10 = PTR_LAB_0003b948 + 0x2984;" (assignment_expression "puVar10 = PTR_LAB_0003b948 + 0x2984" identifier = (binary_expression "PTR_LAB_0003b948 + 0x2984" identifier + number_literal)) ;) (expression_statement "puVar5 = PTR_LAB_0003b948 + 0x29b8;" (assignment_expression "puVar5 = PTR_LAB_0003b948 + 0x29b8" identifier = (binary_expression "PTR_LAB_0003b948 + 0x29b8" identifier + number_literal)) ;) (expression_statement "iVar8 = 4;" (assignment_expression "iVar8 = 4" identifier = number_literal) ;) (do_statement "do {\n          if (do_hex == 2) {\n            (*(code *)PTR_hex2stdout_0003ba2c)(pbVar6,4,1);\n          }\n          else {\n            (*(code *)PTR___printf_chk_0003b9d8)(1,puVar10,*pbVar6 & 0x3f);\n            if (pbVar6[1] == 0) {\n              (*(code *)PTR_putchar_0003b9f0)(10);\n            }\n            else {\n              (*(code *)PTR___printf_chk_0003b9d8)(1,puVar4 + 0x29a0);\n            }\n            if (((iVar8 == 4) && ((*pbVar6 & 0x3f) == 0x3f)) && (pbVar6[1] == 0xff)) {\n              (*(code *)PTR_puts_0003ba28)(puVar5);\n              bVar1 = pbVar6[2];\n            }\n            else {\n              bVar1 = pbVar6[2];\n            }\n            (*(code *)PTR___printf_chk_0003b9d8)\n                      (1,puVar4 + 0x29f8,bVar1 >> 7,\n                       *(undefined4 *)(puVar3 + (bVar1 & 3) * 4 + -0x513c));\n          }\n          pbVar6 = pbVar6 + 4;\n          if (iVar9 <= iVar8) {\n            return;\n          }\n          iVar7 = iVar8 + 4;\n          iVar2 = -iVar8;\n          iVar8 = iVar7;\n        } while (iVar7 <= iVar9);" do (compound_statement "{\n          if (do_hex == 2) {\n            (*(code *)PTR_hex2stdout_0003ba2c)(pbVar6,4,1);\n          }\n          else {\n            (*(code *)PTR___printf_chk_0003b9d8)(1,puVar10,*pbVar6 & 0x3f);\n            if (pbVar6[1] == 0) {\n              (*(code *)PTR_putchar_0003b9f0)(10);\n            }\n            else {\n              (*(code *)PTR___printf_chk_0003b9d8)(1,puVar4 + 0x29a0);\n            }\n            if (((iVar8 == 4) && ((*pbVar6 & 0x3f) == 0x3f)) && (pbVar6[1] == 0xff)) {\n              (*(code *)PTR_puts_0003ba28)(puVar5);\n              bVar1 = pbVar6[2];\n            }\n            else {\n              bVar1 = pbVar6[2];\n            }\n            (*(code *)PTR___printf_chk_0003b9d8)\n                      (1,puVar4 + 0x29f8,bVar1 >> 7,\n                       *(undefined4 *)(puVar3 + (bVar1 & 3) * 4 + -0x513c));\n          }\n          pbVar6 = pbVar6 + 4;\n          if (iVar9 <= iVar8) {\n            return;\n          }\n          iVar7 = iVar8 + 4;\n          iVar2 = -iVar8;\n          iVar8 = iVar7;\n        }" { (if_statement "if (do_hex == 2) {\n            (*(code *)PTR_hex2stdout_0003ba2c)(pbVar6,4,1);\n          }\n          else {\n            (*(code *)PTR___printf_chk_0003b9d8)(1,puVar10,*pbVar6 & 0x3f);\n            if (pbVar6[1] == 0) {\n              (*(code *)PTR_putchar_0003b9f0)(10);\n            }\n            else {\n              (*(code *)PTR___printf_chk_0003b9d8)(1,puVar4 + 0x29a0);\n            }\n            if (((iVar8 == 4) && ((*pbVar6 & 0x3f) == 0x3f)) && (pbVar6[1] == 0xff)) {\n              (*(code *)PTR_puts_0003ba28)(puVar5);\n              bVar1 = pbVar6[2];\n            }\n            else {\n              bVar1 = pbVar6[2];\n            }\n            (*(code *)PTR___printf_chk_0003b9d8)\n                      (1,puVar4 + 0x29f8,bVar1 >> 7,\n                       *(undefined4 *)(puVar3 + (bVar1 & 3) * 4 + -0x513c));\n          }" if (parenthesized_expression "(do_hex == 2)" ( (binary_expression "do_hex == 2" identifier == number_literal) )) (compound_statement "{\n            (*(code *)PTR_hex2stdout_0003ba2c)(pbVar6,4,1);\n          }" { (expression_statement "(*(code *)PTR_hex2stdout_0003ba2c)(pbVar6,4,1);" (call_expression "(*(code *)PTR_hex2stdout_0003ba2c)(pbVar6,4,1)" (parenthesized_expression "(*(code *)PTR_hex2stdout_0003ba2c)" ( (pointer_expression "*(code *)PTR_hex2stdout_0003ba2c" * (cast_expression "(code *)PTR_hex2stdout_0003ba2c" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(pbVar6,4,1)" ( identifier , number_literal , number_literal ))) ;) }) (else_clause "else {\n            (*(code *)PTR___printf_chk_0003b9d8)(1,puVar10,*pbVar6 & 0x3f);\n            if (pbVar6[1] == 0) {\n              (*(code *)PTR_putchar_0003b9f0)(10);\n            }\n            else {\n              (*(code *)PTR___printf_chk_0003b9d8)(1,puVar4 + 0x29a0);\n            }\n            if (((iVar8 == 4) && ((*pbVar6 & 0x3f) == 0x3f)) && (pbVar6[1] == 0xff)) {\n              (*(code *)PTR_puts_0003ba28)(puVar5);\n              bVar1 = pbVar6[2];\n            }\n            else {\n              bVar1 = pbVar6[2];\n            }\n            (*(code *)PTR___printf_chk_0003b9d8)\n                      (1,puVar4 + 0x29f8,bVar1 >> 7,\n                       *(undefined4 *)(puVar3 + (bVar1 & 3) * 4 + -0x513c));\n          }" else (compound_statement "{\n            (*(code *)PTR___printf_chk_0003b9d8)(1,puVar10,*pbVar6 & 0x3f);\n            if (pbVar6[1] == 0) {\n              (*(code *)PTR_putchar_0003b9f0)(10);\n            }\n            else {\n              (*(code *)PTR___printf_chk_0003b9d8)(1,puVar4 + 0x29a0);\n            }\n            if (((iVar8 == 4) && ((*pbVar6 & 0x3f) == 0x3f)) && (pbVar6[1] == 0xff)) {\n              (*(code *)PTR_puts_0003ba28)(puVar5);\n              bVar1 = pbVar6[2];\n            }\n            else {\n              bVar1 = pbVar6[2];\n            }\n            (*(code *)PTR___printf_chk_0003b9d8)\n                      (1,puVar4 + 0x29f8,bVar1 >> 7,\n                       *(undefined4 *)(puVar3 + (bVar1 & 3) * 4 + -0x513c));\n          }" { (expression_statement "(*(code *)PTR___printf_chk_0003b9d8)(1,puVar10,*pbVar6 & 0x3f);" (call_expression "(*(code *)PTR___printf_chk_0003b9d8)(1,puVar10,*pbVar6 & 0x3f)" (parenthesized_expression "(*(code *)PTR___printf_chk_0003b9d8)" ( (pointer_expression "*(code *)PTR___printf_chk_0003b9d8" * (cast_expression "(code *)PTR___printf_chk_0003b9d8" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(1,puVar10,*pbVar6 & 0x3f)" ( number_literal , identifier , (binary_expression "*pbVar6 & 0x3f" (pointer_expression "*pbVar6" * identifier) & number_literal) ))) ;) (if_statement "if (pbVar6[1] == 0) {\n              (*(code *)PTR_putchar_0003b9f0)(10);\n            }\n            else {\n              (*(code *)PTR___printf_chk_0003b9d8)(1,puVar4 + 0x29a0);\n            }" if (parenthesized_expression "(pbVar6[1] == 0)" ( (binary_expression "pbVar6[1] == 0" (subscript_expression "pbVar6[1]" identifier [ number_literal ]) == number_literal) )) (compound_statement "{\n              (*(code *)PTR_putchar_0003b9f0)(10);\n            }" { (expression_statement "(*(code *)PTR_putchar_0003b9f0)(10);" (call_expression "(*(code *)PTR_putchar_0003b9f0)(10)" (parenthesized_expression "(*(code *)PTR_putchar_0003b9f0)" ( (pointer_expression "*(code *)PTR_putchar_0003b9f0" * (cast_expression "(code *)PTR_putchar_0003b9f0" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(10)" ( number_literal ))) ;) }) (else_clause "else {\n              (*(code *)PTR___printf_chk_0003b9d8)(1,puVar4 + 0x29a0);\n            }" else (compound_statement "{\n              (*(code *)PTR___printf_chk_0003b9d8)(1,puVar4 + 0x29a0);\n            }" { (expression_statement "(*(code *)PTR___printf_chk_0003b9d8)(1,puVar4 + 0x29a0);" (call_expression "(*(code *)PTR___printf_chk_0003b9d8)(1,puVar4 + 0x29a0)" (parenthesized_expression "(*(code *)PTR___printf_chk_0003b9d8)" ( (pointer_expression "*(code *)PTR___printf_chk_0003b9d8" * (cast_expression "(code *)PTR___printf_chk_0003b9d8" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(1,puVar4 + 0x29a0)" ( number_literal , (binary_expression "puVar4 + 0x29a0" identifier + number_literal) ))) ;) }))) (if_statement "if (((iVar8 == 4) && ((*pbVar6 & 0x3f) == 0x3f)) && (pbVar6[1] == 0xff)) {\n              (*(code *)PTR_puts_0003ba28)(puVar5);\n              bVar1 = pbVar6[2];\n            }\n            else {\n              bVar1 = pbVar6[2];\n            }" if (parenthesized_expression "(((iVar8 == 4) && ((*pbVar6 & 0x3f) == 0x3f)) && (pbVar6[1] == 0xff))" ( (binary_expression "((iVar8 == 4) && ((*pbVar6 & 0x3f) == 0x3f)) && (pbVar6[1] == 0xff)" (parenthesized_expression "((iVar8 == 4) && ((*pbVar6 & 0x3f) == 0x3f))" ( (binary_expression "(iVar8 == 4) && ((*pbVar6 & 0x3f) == 0x3f)" (parenthesized_expression "(iVar8 == 4)" ( (binary_expression "iVar8 == 4" identifier == number_literal) )) && (parenthesized_expression "((*pbVar6 & 0x3f) == 0x3f)" ( (binary_expression "(*pbVar6 & 0x3f) == 0x3f" (parenthesized_expression "(*pbVar6 & 0x3f)" ( (binary_expression "*pbVar6 & 0x3f" (pointer_expression "*pbVar6" * identifier) & number_literal) )) == number_literal) ))) )) && (parenthesized_expression "(pbVar6[1] == 0xff)" ( (binary_expression "pbVar6[1] == 0xff" (subscript_expression "pbVar6[1]" identifier [ number_literal ]) == number_literal) ))) )) (compound_statement "{\n              (*(code *)PTR_puts_0003ba28)(puVar5);\n              bVar1 = pbVar6[2];\n            }" { (expression_statement "(*(code *)PTR_puts_0003ba28)(puVar5);" (call_expression "(*(code *)PTR_puts_0003ba28)(puVar5)" (parenthesized_expression "(*(code *)PTR_puts_0003ba28)" ( (pointer_expression "*(code *)PTR_puts_0003ba28" * (cast_expression "(code *)PTR_puts_0003ba28" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(puVar5)" ( identifier ))) ;) (expression_statement "bVar1 = pbVar6[2];" (assignment_expression "bVar1 = pbVar6[2]" identifier = (subscript_expression "pbVar6[2]" identifier [ number_literal ])) ;) }) (else_clause "else {\n              bVar1 = pbVar6[2];\n            }" else (compound_statement "{\n              bVar1 = pbVar6[2];\n            }" { (expression_statement "bVar1 = pbVar6[2];" (assignment_expression "bVar1 = pbVar6[2]" identifier = (subscript_expression "pbVar6[2]" identifier [ number_literal ])) ;) }))) (expression_statement "(*(code *)PTR___printf_chk_0003b9d8)\n                      (1,puVar4 + 0x29f8,bVar1 >> 7,\n                       *(undefined4 *)(puVar3 + (bVar1 & 3) * 4 + -0x513c));" (call_expression "(*(code *)PTR___printf_chk_0003b9d8)\n                      (1,puVar4 + 0x29f8,bVar1 >> 7,\n                       *(undefined4 *)(puVar3 + (bVar1 & 3) * 4 + -0x513c))" (parenthesized_expression "(*(code *)PTR___printf_chk_0003b9d8)" ( (pointer_expression "*(code *)PTR___printf_chk_0003b9d8" * (cast_expression "(code *)PTR___printf_chk_0003b9d8" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(1,puVar4 + 0x29f8,bVar1 >> 7,\n                       *(undefined4 *)(puVar3 + (bVar1 & 3) * 4 + -0x513c))" ( number_literal , (binary_expression "puVar4 + 0x29f8" identifier + number_literal) , (binary_expression "bVar1 >> 7" identifier >> number_literal) , (pointer_expression "*(undefined4 *)(puVar3 + (bVar1 & 3) * 4 + -0x513c)" * (cast_expression "(undefined4 *)(puVar3 + (bVar1 & 3) * 4 + -0x513c)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(puVar3 + (bVar1 & 3) * 4 + -0x513c)" ( (binary_expression "puVar3 + (bVar1 & 3) * 4 + -0x513c" (binary_expression "puVar3 + (bVar1 & 3) * 4" identifier + (binary_expression "(bVar1 & 3) * 4" (parenthesized_expression "(bVar1 & 3)" ( (binary_expression "bVar1 & 3" identifier & number_literal) )) * number_literal)) + number_literal) )))) ))) ;) }))) (expression_statement "pbVar6 = pbVar6 + 4;" (assignment_expression "pbVar6 = pbVar6 + 4" identifier = (binary_expression "pbVar6 + 4" identifier + number_literal)) ;) (if_statement "if (iVar9 <= iVar8) {\n            return;\n          }" if (parenthesized_expression "(iVar9 <= iVar8)" ( (binary_expression "iVar9 <= iVar8" identifier <= identifier) )) (compound_statement "{\n            return;\n          }" { (return_statement "return;" return ;) })) (expression_statement "iVar7 = iVar8 + 4;" (assignment_expression "iVar7 = iVar8 + 4" identifier = (binary_expression "iVar8 + 4" identifier + number_literal)) ;) (expression_statement "iVar2 = -iVar8;" (assignment_expression "iVar2 = -iVar8" identifier = (unary_expression "-iVar8" - identifier)) ;) (expression_statement "iVar8 = iVar7;" (assignment_expression "iVar8 = iVar7" identifier = identifier) ;) }) while (parenthesized_expression "(iVar7 <= iVar9)" ( (binary_expression "iVar7 <= iVar9" identifier <= identifier) )) ;) }))) (expression_statement "(*(code *)PTR_pr2serr_0003ba44)(PTR_LAB_0003b948 + 0x2944,4,iVar9 + iVar2);" (call_expression "(*(code *)PTR_pr2serr_0003ba44)(PTR_LAB_0003b948 + 0x2944,4,iVar9 + iVar2)" (parenthesized_expression "(*(code *)PTR_pr2serr_0003ba44)" ( (pointer_expression "*(code *)PTR_pr2serr_0003ba44" * (cast_expression "(code *)PTR_pr2serr_0003ba44" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(PTR_LAB_0003b948 + 0x2944,4,iVar9 + iVar2)" ( (binary_expression "PTR_LAB_0003b948 + 0x2944" identifier + number_literal) , number_literal , (binary_expression "iVar9 + iVar2" identifier + identifier) ))) ;) (return_statement "return;" return ;) })) (expression_statement "do_hex = -1;" (assignment_expression "do_hex = -1" identifier = number_literal) ;) })) (expression_statement "(*(code *)PTR_hex2stdout_0003ba2c)(buff,len,do_hex);" (call_expression "(*(code *)PTR_hex2stdout_0003ba2c)(buff,len,do_hex)" (parenthesized_expression "(*(code *)PTR_hex2stdout_0003ba2c)" ( (pointer_expression "*(code *)PTR_hex2stdout_0003ba2c" * (cast_expression "(code *)PTR_hex2stdout_0003ba2c" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(buff,len,do_hex)" ( identifier , identifier , identifier ))) ;) (return_statement "return;" return ;) })))
(translation_unit "void FUN_000124c8(int param_1,int param_2,int param_3)\n\n{\n  byte bVar1;\n  int iVar2;\n  undefined *puVar3;\n  undefined *puVar4;\n  undefined *puVar5;\n  byte *pbVar6;\n  int iVar7;\n  int iVar8;\n  int iVar9;\n  undefined *puVar10;\n  \n  puVar4 = PTR_LAB_0003b948;\n  puVar3 = PTR_DAT_0003b938;\n  if (param_3 != 1) {\n    if (param_3 < 3) {\n      iVar9 = param_2 + -4;\n      if (param_2 < 4) {\n        (*(code *)PTR_pr2serr_0003ba44)(PTR_LAB_0003b948 + 0x2914);\n        return;\n      }\n      pbVar6 = (byte *)(param_1 + 4);\n      if (iVar9 < 1) {\n        return;\n      }\n      if (iVar9 < 4) {\n        iVar2 = 0;\n      }\n      else {\n        puVar10 = PTR_LAB_0003b948 + 0x2984;\n        puVar5 = PTR_LAB_0003b948 + 0x29b8;\n        iVar8 = 4;\n        do {\n          if (param_3 == 2) {\n            (*(code *)PTR_hex2stdout_0003ba2c)(pbVar6,4,1);\n          }\n          else {\n            (*(code *)PTR___printf_chk_0003b9d8)(1,puVar10,*pbVar6 & 0x3f);\n            if (pbVar6[1] == 0) {\n              (*(code *)PTR_putchar_0003b9f0)(10);\n            }\n            else {\n              (*(code *)PTR___printf_chk_0003b9d8)(1,puVar4 + 0x29a0);\n            }\n            if (((iVar8 == 4) && ((*pbVar6 & 0x3f) == 0x3f)) && (pbVar6[1] == 0xff)) {\n              (*(code *)PTR_puts_0003ba28)(puVar5);\n              bVar1 = pbVar6[2];\n            }\n            else {\n              bVar1 = pbVar6[2];\n            }\n            (*(code *)PTR___printf_chk_0003b9d8)\n                      (1,puVar4 + 0x29f8,bVar1 >> 7,\n                       *(undefined4 *)(puVar3 + (bVar1 & 3) * 4 + -0x513c));\n          }\n          pbVar6 = pbVar6 + 4;\n          if (iVar9 <= iVar8) {\n            return;\n          }\n          iVar7 = iVar8 + 4;\n          iVar2 = -iVar8;\n          iVar8 = iVar7;\n        } while (iVar7 <= iVar9);\n      }\n      (*(code *)PTR_pr2serr_0003ba44)(PTR_LAB_0003b948 + 0x2944,4,iVar9 + iVar2);\n      return;\n    }\n    param_3 = -1;\n  }\n  (*(code *)PTR_hex2stdout_0003ba2c)(param_1,param_2,param_3);\n  return;\n}\n\n" (function_definition "void FUN_000124c8(int param_1,int param_2,int param_3)\n\n{\n  byte bVar1;\n  int iVar2;\n  undefined *puVar3;\n  undefined *puVar4;\n  undefined *puVar5;\n  byte *pbVar6;\n  int iVar7;\n  int iVar8;\n  int iVar9;\n  undefined *puVar10;\n  \n  puVar4 = PTR_LAB_0003b948;\n  puVar3 = PTR_DAT_0003b938;\n  if (param_3 != 1) {\n    if (param_3 < 3) {\n      iVar9 = param_2 + -4;\n      if (param_2 < 4) {\n        (*(code *)PTR_pr2serr_0003ba44)(PTR_LAB_0003b948 + 0x2914);\n        return;\n      }\n      pbVar6 = (byte *)(param_1 + 4);\n      if (iVar9 < 1) {\n        return;\n      }\n      if (iVar9 < 4) {\n        iVar2 = 0;\n      }\n      else {\n        puVar10 = PTR_LAB_0003b948 + 0x2984;\n        puVar5 = PTR_LAB_0003b948 + 0x29b8;\n        iVar8 = 4;\n        do {\n          if (param_3 == 2) {\n            (*(code *)PTR_hex2stdout_0003ba2c)(pbVar6,4,1);\n          }\n          else {\n            (*(code *)PTR___printf_chk_0003b9d8)(1,puVar10,*pbVar6 & 0x3f);\n            if (pbVar6[1] == 0) {\n              (*(code *)PTR_putchar_0003b9f0)(10);\n            }\n            else {\n              (*(code *)PTR___printf_chk_0003b9d8)(1,puVar4 + 0x29a0);\n            }\n            if (((iVar8 == 4) && ((*pbVar6 & 0x3f) == 0x3f)) && (pbVar6[1] == 0xff)) {\n              (*(code *)PTR_puts_0003ba28)(puVar5);\n              bVar1 = pbVar6[2];\n            }\n            else {\n              bVar1 = pbVar6[2];\n            }\n            (*(code *)PTR___printf_chk_0003b9d8)\n                      (1,puVar4 + 0x29f8,bVar1 >> 7,\n                       *(undefined4 *)(puVar3 + (bVar1 & 3) * 4 + -0x513c));\n          }\n          pbVar6 = pbVar6 + 4;\n          if (iVar9 <= iVar8) {\n            return;\n          }\n          iVar7 = iVar8 + 4;\n          iVar2 = -iVar8;\n          iVar8 = iVar7;\n        } while (iVar7 <= iVar9);\n      }\n      (*(code *)PTR_pr2serr_0003ba44)(PTR_LAB_0003b948 + 0x2944,4,iVar9 + iVar2);\n      return;\n    }\n    param_3 = -1;\n  }\n  (*(code *)PTR_hex2stdout_0003ba2c)(param_1,param_2,param_3);\n  return;\n}" primitive_type (function_declarator "FUN_000124c8(int param_1,int param_2,int param_3)" identifier (parameter_list "(int param_1,int param_2,int param_3)" ( (parameter_declaration "int param_1" primitive_type identifier) , (parameter_declaration "int param_2" primitive_type identifier) , (parameter_declaration "int param_3" primitive_type identifier) ))) (compound_statement "{\n  byte bVar1;\n  int iVar2;\n  undefined *puVar3;\n  undefined *puVar4;\n  undefined *puVar5;\n  byte *pbVar6;\n  int iVar7;\n  int iVar8;\n  int iVar9;\n  undefined *puVar10;\n  \n  puVar4 = PTR_LAB_0003b948;\n  puVar3 = PTR_DAT_0003b938;\n  if (param_3 != 1) {\n    if (param_3 < 3) {\n      iVar9 = param_2 + -4;\n      if (param_2 < 4) {\n        (*(code *)PTR_pr2serr_0003ba44)(PTR_LAB_0003b948 + 0x2914);\n        return;\n      }\n      pbVar6 = (byte *)(param_1 + 4);\n      if (iVar9 < 1) {\n        return;\n      }\n      if (iVar9 < 4) {\n        iVar2 = 0;\n      }\n      else {\n        puVar10 = PTR_LAB_0003b948 + 0x2984;\n        puVar5 = PTR_LAB_0003b948 + 0x29b8;\n        iVar8 = 4;\n        do {\n          if (param_3 == 2) {\n            (*(code *)PTR_hex2stdout_0003ba2c)(pbVar6,4,1);\n          }\n          else {\n            (*(code *)PTR___printf_chk_0003b9d8)(1,puVar10,*pbVar6 & 0x3f);\n            if (pbVar6[1] == 0) {\n              (*(code *)PTR_putchar_0003b9f0)(10);\n            }\n            else {\n              (*(code *)PTR___printf_chk_0003b9d8)(1,puVar4 + 0x29a0);\n            }\n            if (((iVar8 == 4) && ((*pbVar6 & 0x3f) == 0x3f)) && (pbVar6[1] == 0xff)) {\n              (*(code *)PTR_puts_0003ba28)(puVar5);\n              bVar1 = pbVar6[2];\n            }\n            else {\n              bVar1 = pbVar6[2];\n            }\n            (*(code *)PTR___printf_chk_0003b9d8)\n                      (1,puVar4 + 0x29f8,bVar1 >> 7,\n                       *(undefined4 *)(puVar3 + (bVar1 & 3) * 4 + -0x513c));\n          }\n          pbVar6 = pbVar6 + 4;\n          if (iVar9 <= iVar8) {\n            return;\n          }\n          iVar7 = iVar8 + 4;\n          iVar2 = -iVar8;\n          iVar8 = iVar7;\n        } while (iVar7 <= iVar9);\n      }\n      (*(code *)PTR_pr2serr_0003ba44)(PTR_LAB_0003b948 + 0x2944,4,iVar9 + iVar2);\n      return;\n    }\n    param_3 = -1;\n  }\n  (*(code *)PTR_hex2stdout_0003ba2c)(param_1,param_2,param_3);\n  return;\n}" { (declaration "byte bVar1;" type_identifier identifier ;) (declaration "int iVar2;" primitive_type identifier ;) (declaration "undefined *puVar3;" type_identifier (pointer_declarator "*puVar3" * identifier) ;) (declaration "undefined *puVar4;" type_identifier (pointer_declarator "*puVar4" * identifier) ;) (declaration "undefined *puVar5;" type_identifier (pointer_declarator "*puVar5" * identifier) ;) (declaration "byte *pbVar6;" type_identifier (pointer_declarator "*pbVar6" * identifier) ;) (declaration "int iVar7;" primitive_type identifier ;) (declaration "int iVar8;" primitive_type identifier ;) (declaration "int iVar9;" primitive_type identifier ;) (declaration "undefined *puVar10;" type_identifier (pointer_declarator "*puVar10" * identifier) ;) (expression_statement "puVar4 = PTR_LAB_0003b948;" (assignment_expression "puVar4 = PTR_LAB_0003b948" identifier = identifier) ;) (expression_statement "puVar3 = PTR_DAT_0003b938;" (assignment_expression "puVar3 = PTR_DAT_0003b938" identifier = identifier) ;) (if_statement "if (param_3 != 1) {\n    if (param_3 < 3) {\n      iVar9 = param_2 + -4;\n      if (param_2 < 4) {\n        (*(code *)PTR_pr2serr_0003ba44)(PTR_LAB_0003b948 + 0x2914);\n        return;\n      }\n      pbVar6 = (byte *)(param_1 + 4);\n      if (iVar9 < 1) {\n        return;\n      }\n      if (iVar9 < 4) {\n        iVar2 = 0;\n      }\n      else {\n        puVar10 = PTR_LAB_0003b948 + 0x2984;\n        puVar5 = PTR_LAB_0003b948 + 0x29b8;\n        iVar8 = 4;\n        do {\n          if (param_3 == 2) {\n            (*(code *)PTR_hex2stdout_0003ba2c)(pbVar6,4,1);\n          }\n          else {\n            (*(code *)PTR___printf_chk_0003b9d8)(1,puVar10,*pbVar6 & 0x3f);\n            if (pbVar6[1] == 0) {\n              (*(code *)PTR_putchar_0003b9f0)(10);\n            }\n            else {\n              (*(code *)PTR___printf_chk_0003b9d8)(1,puVar4 + 0x29a0);\n            }\n            if (((iVar8 == 4) && ((*pbVar6 & 0x3f) == 0x3f)) && (pbVar6[1] == 0xff)) {\n              (*(code *)PTR_puts_0003ba28)(puVar5);\n              bVar1 = pbVar6[2];\n            }\n            else {\n              bVar1 = pbVar6[2];\n            }\n            (*(code *)PTR___printf_chk_0003b9d8)\n                      (1,puVar4 + 0x29f8,bVar1 >> 7,\n                       *(undefined4 *)(puVar3 + (bVar1 & 3) * 4 + -0x513c));\n          }\n          pbVar6 = pbVar6 + 4;\n          if (iVar9 <= iVar8) {\n            return;\n          }\n          iVar7 = iVar8 + 4;\n          iVar2 = -iVar8;\n          iVar8 = iVar7;\n        } while (iVar7 <= iVar9);\n      }\n      (*(code *)PTR_pr2serr_0003ba44)(PTR_LAB_0003b948 + 0x2944,4,iVar9 + iVar2);\n      return;\n    }\n    param_3 = -1;\n  }" if (parenthesized_expression "(param_3 != 1)" ( (binary_expression "param_3 != 1" identifier != number_literal) )) (compound_statement "{\n    if (param_3 < 3) {\n      iVar9 = param_2 + -4;\n      if (param_2 < 4) {\n        (*(code *)PTR_pr2serr_0003ba44)(PTR_LAB_0003b948 + 0x2914);\n        return;\n      }\n      pbVar6 = (byte *)(param_1 + 4);\n      if (iVar9 < 1) {\n        return;\n      }\n      if (iVar9 < 4) {\n        iVar2 = 0;\n      }\n      else {\n        puVar10 = PTR_LAB_0003b948 + 0x2984;\n        puVar5 = PTR_LAB_0003b948 + 0x29b8;\n        iVar8 = 4;\n        do {\n          if (param_3 == 2) {\n            (*(code *)PTR_hex2stdout_0003ba2c)(pbVar6,4,1);\n          }\n          else {\n            (*(code *)PTR___printf_chk_0003b9d8)(1,puVar10,*pbVar6 & 0x3f);\n            if (pbVar6[1] == 0) {\n              (*(code *)PTR_putchar_0003b9f0)(10);\n            }\n            else {\n              (*(code *)PTR___printf_chk_0003b9d8)(1,puVar4 + 0x29a0);\n            }\n            if (((iVar8 == 4) && ((*pbVar6 & 0x3f) == 0x3f)) && (pbVar6[1] == 0xff)) {\n              (*(code *)PTR_puts_0003ba28)(puVar5);\n              bVar1 = pbVar6[2];\n            }\n            else {\n              bVar1 = pbVar6[2];\n            }\n            (*(code *)PTR___printf_chk_0003b9d8)\n                      (1,puVar4 + 0x29f8,bVar1 >> 7,\n                       *(undefined4 *)(puVar3 + (bVar1 & 3) * 4 + -0x513c));\n          }\n          pbVar6 = pbVar6 + 4;\n          if (iVar9 <= iVar8) {\n            return;\n          }\n          iVar7 = iVar8 + 4;\n          iVar2 = -iVar8;\n          iVar8 = iVar7;\n        } while (iVar7 <= iVar9);\n      }\n      (*(code *)PTR_pr2serr_0003ba44)(PTR_LAB_0003b948 + 0x2944,4,iVar9 + iVar2);\n      return;\n    }\n    param_3 = -1;\n  }" { (if_statement "if (param_3 < 3) {\n      iVar9 = param_2 + -4;\n      if (param_2 < 4) {\n        (*(code *)PTR_pr2serr_0003ba44)(PTR_LAB_0003b948 + 0x2914);\n        return;\n      }\n      pbVar6 = (byte *)(param_1 + 4);\n      if (iVar9 < 1) {\n        return;\n      }\n      if (iVar9 < 4) {\n        iVar2 = 0;\n      }\n      else {\n        puVar10 = PTR_LAB_0003b948 + 0x2984;\n        puVar5 = PTR_LAB_0003b948 + 0x29b8;\n        iVar8 = 4;\n        do {\n          if (param_3 == 2) {\n            (*(code *)PTR_hex2stdout_0003ba2c)(pbVar6,4,1);\n          }\n          else {\n            (*(code *)PTR___printf_chk_0003b9d8)(1,puVar10,*pbVar6 & 0x3f);\n            if (pbVar6[1] == 0) {\n              (*(code *)PTR_putchar_0003b9f0)(10);\n            }\n            else {\n              (*(code *)PTR___printf_chk_0003b9d8)(1,puVar4 + 0x29a0);\n            }\n            if (((iVar8 == 4) && ((*pbVar6 & 0x3f) == 0x3f)) && (pbVar6[1] == 0xff)) {\n              (*(code *)PTR_puts_0003ba28)(puVar5);\n              bVar1 = pbVar6[2];\n            }\n            else {\n              bVar1 = pbVar6[2];\n            }\n            (*(code *)PTR___printf_chk_0003b9d8)\n                      (1,puVar4 + 0x29f8,bVar1 >> 7,\n                       *(undefined4 *)(puVar3 + (bVar1 & 3) * 4 + -0x513c));\n          }\n          pbVar6 = pbVar6 + 4;\n          if (iVar9 <= iVar8) {\n            return;\n          }\n          iVar7 = iVar8 + 4;\n          iVar2 = -iVar8;\n          iVar8 = iVar7;\n        } while (iVar7 <= iVar9);\n      }\n      (*(code *)PTR_pr2serr_0003ba44)(PTR_LAB_0003b948 + 0x2944,4,iVar9 + iVar2);\n      return;\n    }" if (parenthesized_expression "(param_3 < 3)" ( (binary_expression "param_3 < 3" identifier < number_literal) )) (compound_statement "{\n      iVar9 = param_2 + -4;\n      if (param_2 < 4) {\n        (*(code *)PTR_pr2serr_0003ba44)(PTR_LAB_0003b948 + 0x2914);\n        return;\n      }\n      pbVar6 = (byte *)(param_1 + 4);\n      if (iVar9 < 1) {\n        return;\n      }\n      if (iVar9 < 4) {\n        iVar2 = 0;\n      }\n      else {\n        puVar10 = PTR_LAB_0003b948 + 0x2984;\n        puVar5 = PTR_LAB_0003b948 + 0x29b8;\n        iVar8 = 4;\n        do {\n          if (param_3 == 2) {\n            (*(code *)PTR_hex2stdout_0003ba2c)(pbVar6,4,1);\n          }\n          else {\n            (*(code *)PTR___printf_chk_0003b9d8)(1,puVar10,*pbVar6 & 0x3f);\n            if (pbVar6[1] == 0) {\n              (*(code *)PTR_putchar_0003b9f0)(10);\n            }\n            else {\n              (*(code *)PTR___printf_chk_0003b9d8)(1,puVar4 + 0x29a0);\n            }\n            if (((iVar8 == 4) && ((*pbVar6 & 0x3f) == 0x3f)) && (pbVar6[1] == 0xff)) {\n              (*(code *)PTR_puts_0003ba28)(puVar5);\n              bVar1 = pbVar6[2];\n            }\n            else {\n              bVar1 = pbVar6[2];\n            }\n            (*(code *)PTR___printf_chk_0003b9d8)\n                      (1,puVar4 + 0x29f8,bVar1 >> 7,\n                       *(undefined4 *)(puVar3 + (bVar1 & 3) * 4 + -0x513c));\n          }\n          pbVar6 = pbVar6 + 4;\n          if (iVar9 <= iVar8) {\n            return;\n          }\n          iVar7 = iVar8 + 4;\n          iVar2 = -iVar8;\n          iVar8 = iVar7;\n        } while (iVar7 <= iVar9);\n      }\n      (*(code *)PTR_pr2serr_0003ba44)(PTR_LAB_0003b948 + 0x2944,4,iVar9 + iVar2);\n      return;\n    }" { (expression_statement "iVar9 = param_2 + -4;" (assignment_expression "iVar9 = param_2 + -4" identifier = (binary_expression "param_2 + -4" identifier + number_literal)) ;) (if_statement "if (param_2 < 4) {\n        (*(code *)PTR_pr2serr_0003ba44)(PTR_LAB_0003b948 + 0x2914);\n        return;\n      }" if (parenthesized_expression "(param_2 < 4)" ( (binary_expression "param_2 < 4" identifier < number_literal) )) (compound_statement "{\n        (*(code *)PTR_pr2serr_0003ba44)(PTR_LAB_0003b948 + 0x2914);\n        return;\n      }" { (expression_statement "(*(code *)PTR_pr2serr_0003ba44)(PTR_LAB_0003b948 + 0x2914);" (call_expression "(*(code *)PTR_pr2serr_0003ba44)(PTR_LAB_0003b948 + 0x2914)" (parenthesized_expression "(*(code *)PTR_pr2serr_0003ba44)" ( (pointer_expression "*(code *)PTR_pr2serr_0003ba44" * (cast_expression "(code *)PTR_pr2serr_0003ba44" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(PTR_LAB_0003b948 + 0x2914)" ( (binary_expression "PTR_LAB_0003b948 + 0x2914" identifier + number_literal) ))) ;) (return_statement "return;" return ;) })) (expression_statement "pbVar6 = (byte *)(param_1 + 4);" (assignment_expression "pbVar6 = (byte *)(param_1 + 4)" identifier = (cast_expression "(byte *)(param_1 + 4)" ( (type_descriptor "byte *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 4)" ( (binary_expression "param_1 + 4" identifier + number_literal) )))) ;) (if_statement "if (iVar9 < 1) {\n        return;\n      }" if (parenthesized_expression "(iVar9 < 1)" ( (binary_expression "iVar9 < 1" identifier < number_literal) )) (compound_statement "{\n        return;\n      }" { (return_statement "return;" return ;) })) (if_statement "if (iVar9 < 4) {\n        iVar2 = 0;\n      }\n      else {\n        puVar10 = PTR_LAB_0003b948 + 0x2984;\n        puVar5 = PTR_LAB_0003b948 + 0x29b8;\n        iVar8 = 4;\n        do {\n          if (param_3 == 2) {\n            (*(code *)PTR_hex2stdout_0003ba2c)(pbVar6,4,1);\n          }\n          else {\n            (*(code *)PTR___printf_chk_0003b9d8)(1,puVar10,*pbVar6 & 0x3f);\n            if (pbVar6[1] == 0) {\n              (*(code *)PTR_putchar_0003b9f0)(10);\n            }\n            else {\n              (*(code *)PTR___printf_chk_0003b9d8)(1,puVar4 + 0x29a0);\n            }\n            if (((iVar8 == 4) && ((*pbVar6 & 0x3f) == 0x3f)) && (pbVar6[1] == 0xff)) {\n              (*(code *)PTR_puts_0003ba28)(puVar5);\n              bVar1 = pbVar6[2];\n            }\n            else {\n              bVar1 = pbVar6[2];\n            }\n            (*(code *)PTR___printf_chk_0003b9d8)\n                      (1,puVar4 + 0x29f8,bVar1 >> 7,\n                       *(undefined4 *)(puVar3 + (bVar1 & 3) * 4 + -0x513c));\n          }\n          pbVar6 = pbVar6 + 4;\n          if (iVar9 <= iVar8) {\n            return;\n          }\n          iVar7 = iVar8 + 4;\n          iVar2 = -iVar8;\n          iVar8 = iVar7;\n        } while (iVar7 <= iVar9);\n      }" if (parenthesized_expression "(iVar9 < 4)" ( (binary_expression "iVar9 < 4" identifier < number_literal) )) (compound_statement "{\n        iVar2 = 0;\n      }" { (expression_statement "iVar2 = 0;" (assignment_expression "iVar2 = 0" identifier = number_literal) ;) }) (else_clause "else {\n        puVar10 = PTR_LAB_0003b948 + 0x2984;\n        puVar5 = PTR_LAB_0003b948 + 0x29b8;\n        iVar8 = 4;\n        do {\n          if (param_3 == 2) {\n            (*(code *)PTR_hex2stdout_0003ba2c)(pbVar6,4,1);\n          }\n          else {\n            (*(code *)PTR___printf_chk_0003b9d8)(1,puVar10,*pbVar6 & 0x3f);\n            if (pbVar6[1] == 0) {\n              (*(code *)PTR_putchar_0003b9f0)(10);\n            }\n            else {\n              (*(code *)PTR___printf_chk_0003b9d8)(1,puVar4 + 0x29a0);\n            }\n            if (((iVar8 == 4) && ((*pbVar6 & 0x3f) == 0x3f)) && (pbVar6[1] == 0xff)) {\n              (*(code *)PTR_puts_0003ba28)(puVar5);\n              bVar1 = pbVar6[2];\n            }\n            else {\n              bVar1 = pbVar6[2];\n            }\n            (*(code *)PTR___printf_chk_0003b9d8)\n                      (1,puVar4 + 0x29f8,bVar1 >> 7,\n                       *(undefined4 *)(puVar3 + (bVar1 & 3) * 4 + -0x513c));\n          }\n          pbVar6 = pbVar6 + 4;\n          if (iVar9 <= iVar8) {\n            return;\n          }\n          iVar7 = iVar8 + 4;\n          iVar2 = -iVar8;\n          iVar8 = iVar7;\n        } while (iVar7 <= iVar9);\n      }" else (compound_statement "{\n        puVar10 = PTR_LAB_0003b948 + 0x2984;\n        puVar5 = PTR_LAB_0003b948 + 0x29b8;\n        iVar8 = 4;\n        do {\n          if (param_3 == 2) {\n            (*(code *)PTR_hex2stdout_0003ba2c)(pbVar6,4,1);\n          }\n          else {\n            (*(code *)PTR___printf_chk_0003b9d8)(1,puVar10,*pbVar6 & 0x3f);\n            if (pbVar6[1] == 0) {\n              (*(code *)PTR_putchar_0003b9f0)(10);\n            }\n            else {\n              (*(code *)PTR___printf_chk_0003b9d8)(1,puVar4 + 0x29a0);\n            }\n            if (((iVar8 == 4) && ((*pbVar6 & 0x3f) == 0x3f)) && (pbVar6[1] == 0xff)) {\n              (*(code *)PTR_puts_0003ba28)(puVar5);\n              bVar1 = pbVar6[2];\n            }\n            else {\n              bVar1 = pbVar6[2];\n            }\n            (*(code *)PTR___printf_chk_0003b9d8)\n                      (1,puVar4 + 0x29f8,bVar1 >> 7,\n                       *(undefined4 *)(puVar3 + (bVar1 & 3) * 4 + -0x513c));\n          }\n          pbVar6 = pbVar6 + 4;\n          if (iVar9 <= iVar8) {\n            return;\n          }\n          iVar7 = iVar8 + 4;\n          iVar2 = -iVar8;\n          iVar8 = iVar7;\n        } while (iVar7 <= iVar9);\n      }" { (expression_statement "puVar10 = PTR_LAB_0003b948 + 0x2984;" (assignment_expression "puVar10 = PTR_LAB_0003b948 + 0x2984" identifier = (binary_expression "PTR_LAB_0003b948 + 0x2984" identifier + number_literal)) ;) (expression_statement "puVar5 = PTR_LAB_0003b948 + 0x29b8;" (assignment_expression "puVar5 = PTR_LAB_0003b948 + 0x29b8" identifier = (binary_expression "PTR_LAB_0003b948 + 0x29b8" identifier + number_literal)) ;) (expression_statement "iVar8 = 4;" (assignment_expression "iVar8 = 4" identifier = number_literal) ;) (do_statement "do {\n          if (param_3 == 2) {\n            (*(code *)PTR_hex2stdout_0003ba2c)(pbVar6,4,1);\n          }\n          else {\n            (*(code *)PTR___printf_chk_0003b9d8)(1,puVar10,*pbVar6 & 0x3f);\n            if (pbVar6[1] == 0) {\n              (*(code *)PTR_putchar_0003b9f0)(10);\n            }\n            else {\n              (*(code *)PTR___printf_chk_0003b9d8)(1,puVar4 + 0x29a0);\n            }\n            if (((iVar8 == 4) && ((*pbVar6 & 0x3f) == 0x3f)) && (pbVar6[1] == 0xff)) {\n              (*(code *)PTR_puts_0003ba28)(puVar5);\n              bVar1 = pbVar6[2];\n            }\n            else {\n              bVar1 = pbVar6[2];\n            }\n            (*(code *)PTR___printf_chk_0003b9d8)\n                      (1,puVar4 + 0x29f8,bVar1 >> 7,\n                       *(undefined4 *)(puVar3 + (bVar1 & 3) * 4 + -0x513c));\n          }\n          pbVar6 = pbVar6 + 4;\n          if (iVar9 <= iVar8) {\n            return;\n          }\n          iVar7 = iVar8 + 4;\n          iVar2 = -iVar8;\n          iVar8 = iVar7;\n        } while (iVar7 <= iVar9);" do (compound_statement "{\n          if (param_3 == 2) {\n            (*(code *)PTR_hex2stdout_0003ba2c)(pbVar6,4,1);\n          }\n          else {\n            (*(code *)PTR___printf_chk_0003b9d8)(1,puVar10,*pbVar6 & 0x3f);\n            if (pbVar6[1] == 0) {\n              (*(code *)PTR_putchar_0003b9f0)(10);\n            }\n            else {\n              (*(code *)PTR___printf_chk_0003b9d8)(1,puVar4 + 0x29a0);\n            }\n            if (((iVar8 == 4) && ((*pbVar6 & 0x3f) == 0x3f)) && (pbVar6[1] == 0xff)) {\n              (*(code *)PTR_puts_0003ba28)(puVar5);\n              bVar1 = pbVar6[2];\n            }\n            else {\n              bVar1 = pbVar6[2];\n            }\n            (*(code *)PTR___printf_chk_0003b9d8)\n                      (1,puVar4 + 0x29f8,bVar1 >> 7,\n                       *(undefined4 *)(puVar3 + (bVar1 & 3) * 4 + -0x513c));\n          }\n          pbVar6 = pbVar6 + 4;\n          if (iVar9 <= iVar8) {\n            return;\n          }\n          iVar7 = iVar8 + 4;\n          iVar2 = -iVar8;\n          iVar8 = iVar7;\n        }" { (if_statement "if (param_3 == 2) {\n            (*(code *)PTR_hex2stdout_0003ba2c)(pbVar6,4,1);\n          }\n          else {\n            (*(code *)PTR___printf_chk_0003b9d8)(1,puVar10,*pbVar6 & 0x3f);\n            if (pbVar6[1] == 0) {\n              (*(code *)PTR_putchar_0003b9f0)(10);\n            }\n            else {\n              (*(code *)PTR___printf_chk_0003b9d8)(1,puVar4 + 0x29a0);\n            }\n            if (((iVar8 == 4) && ((*pbVar6 & 0x3f) == 0x3f)) && (pbVar6[1] == 0xff)) {\n              (*(code *)PTR_puts_0003ba28)(puVar5);\n              bVar1 = pbVar6[2];\n            }\n            else {\n              bVar1 = pbVar6[2];\n            }\n            (*(code *)PTR___printf_chk_0003b9d8)\n                      (1,puVar4 + 0x29f8,bVar1 >> 7,\n                       *(undefined4 *)(puVar3 + (bVar1 & 3) * 4 + -0x513c));\n          }" if (parenthesized_expression "(param_3 == 2)" ( (binary_expression "param_3 == 2" identifier == number_literal) )) (compound_statement "{\n            (*(code *)PTR_hex2stdout_0003ba2c)(pbVar6,4,1);\n          }" { (expression_statement "(*(code *)PTR_hex2stdout_0003ba2c)(pbVar6,4,1);" (call_expression "(*(code *)PTR_hex2stdout_0003ba2c)(pbVar6,4,1)" (parenthesized_expression "(*(code *)PTR_hex2stdout_0003ba2c)" ( (pointer_expression "*(code *)PTR_hex2stdout_0003ba2c" * (cast_expression "(code *)PTR_hex2stdout_0003ba2c" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(pbVar6,4,1)" ( identifier , number_literal , number_literal ))) ;) }) (else_clause "else {\n            (*(code *)PTR___printf_chk_0003b9d8)(1,puVar10,*pbVar6 & 0x3f);\n            if (pbVar6[1] == 0) {\n              (*(code *)PTR_putchar_0003b9f0)(10);\n            }\n            else {\n              (*(code *)PTR___printf_chk_0003b9d8)(1,puVar4 + 0x29a0);\n            }\n            if (((iVar8 == 4) && ((*pbVar6 & 0x3f) == 0x3f)) && (pbVar6[1] == 0xff)) {\n              (*(code *)PTR_puts_0003ba28)(puVar5);\n              bVar1 = pbVar6[2];\n            }\n            else {\n              bVar1 = pbVar6[2];\n            }\n            (*(code *)PTR___printf_chk_0003b9d8)\n                      (1,puVar4 + 0x29f8,bVar1 >> 7,\n                       *(undefined4 *)(puVar3 + (bVar1 & 3) * 4 + -0x513c));\n          }" else (compound_statement "{\n            (*(code *)PTR___printf_chk_0003b9d8)(1,puVar10,*pbVar6 & 0x3f);\n            if (pbVar6[1] == 0) {\n              (*(code *)PTR_putchar_0003b9f0)(10);\n            }\n            else {\n              (*(code *)PTR___printf_chk_0003b9d8)(1,puVar4 + 0x29a0);\n            }\n            if (((iVar8 == 4) && ((*pbVar6 & 0x3f) == 0x3f)) && (pbVar6[1] == 0xff)) {\n              (*(code *)PTR_puts_0003ba28)(puVar5);\n              bVar1 = pbVar6[2];\n            }\n            else {\n              bVar1 = pbVar6[2];\n            }\n            (*(code *)PTR___printf_chk_0003b9d8)\n                      (1,puVar4 + 0x29f8,bVar1 >> 7,\n                       *(undefined4 *)(puVar3 + (bVar1 & 3) * 4 + -0x513c));\n          }" { (expression_statement "(*(code *)PTR___printf_chk_0003b9d8)(1,puVar10,*pbVar6 & 0x3f);" (call_expression "(*(code *)PTR___printf_chk_0003b9d8)(1,puVar10,*pbVar6 & 0x3f)" (parenthesized_expression "(*(code *)PTR___printf_chk_0003b9d8)" ( (pointer_expression "*(code *)PTR___printf_chk_0003b9d8" * (cast_expression "(code *)PTR___printf_chk_0003b9d8" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(1,puVar10,*pbVar6 & 0x3f)" ( number_literal , identifier , (binary_expression "*pbVar6 & 0x3f" (pointer_expression "*pbVar6" * identifier) & number_literal) ))) ;) (if_statement "if (pbVar6[1] == 0) {\n              (*(code *)PTR_putchar_0003b9f0)(10);\n            }\n            else {\n              (*(code *)PTR___printf_chk_0003b9d8)(1,puVar4 + 0x29a0);\n            }" if (parenthesized_expression "(pbVar6[1] == 0)" ( (binary_expression "pbVar6[1] == 0" (subscript_expression "pbVar6[1]" identifier [ number_literal ]) == number_literal) )) (compound_statement "{\n              (*(code *)PTR_putchar_0003b9f0)(10);\n            }" { (expression_statement "(*(code *)PTR_putchar_0003b9f0)(10);" (call_expression "(*(code *)PTR_putchar_0003b9f0)(10)" (parenthesized_expression "(*(code *)PTR_putchar_0003b9f0)" ( (pointer_expression "*(code *)PTR_putchar_0003b9f0" * (cast_expression "(code *)PTR_putchar_0003b9f0" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(10)" ( number_literal ))) ;) }) (else_clause "else {\n              (*(code *)PTR___printf_chk_0003b9d8)(1,puVar4 + 0x29a0);\n            }" else (compound_statement "{\n              (*(code *)PTR___printf_chk_0003b9d8)(1,puVar4 + 0x29a0);\n            }" { (expression_statement "(*(code *)PTR___printf_chk_0003b9d8)(1,puVar4 + 0x29a0);" (call_expression "(*(code *)PTR___printf_chk_0003b9d8)(1,puVar4 + 0x29a0)" (parenthesized_expression "(*(code *)PTR___printf_chk_0003b9d8)" ( (pointer_expression "*(code *)PTR___printf_chk_0003b9d8" * (cast_expression "(code *)PTR___printf_chk_0003b9d8" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(1,puVar4 + 0x29a0)" ( number_literal , (binary_expression "puVar4 + 0x29a0" identifier + number_literal) ))) ;) }))) (if_statement "if (((iVar8 == 4) && ((*pbVar6 & 0x3f) == 0x3f)) && (pbVar6[1] == 0xff)) {\n              (*(code *)PTR_puts_0003ba28)(puVar5);\n              bVar1 = pbVar6[2];\n            }\n            else {\n              bVar1 = pbVar6[2];\n            }" if (parenthesized_expression "(((iVar8 == 4) && ((*pbVar6 & 0x3f) == 0x3f)) && (pbVar6[1] == 0xff))" ( (binary_expression "((iVar8 == 4) && ((*pbVar6 & 0x3f) == 0x3f)) && (pbVar6[1] == 0xff)" (parenthesized_expression "((iVar8 == 4) && ((*pbVar6 & 0x3f) == 0x3f))" ( (binary_expression "(iVar8 == 4) && ((*pbVar6 & 0x3f) == 0x3f)" (parenthesized_expression "(iVar8 == 4)" ( (binary_expression "iVar8 == 4" identifier == number_literal) )) && (parenthesized_expression "((*pbVar6 & 0x3f) == 0x3f)" ( (binary_expression "(*pbVar6 & 0x3f) == 0x3f" (parenthesized_expression "(*pbVar6 & 0x3f)" ( (binary_expression "*pbVar6 & 0x3f" (pointer_expression "*pbVar6" * identifier) & number_literal) )) == number_literal) ))) )) && (parenthesized_expression "(pbVar6[1] == 0xff)" ( (binary_expression "pbVar6[1] == 0xff" (subscript_expression "pbVar6[1]" identifier [ number_literal ]) == number_literal) ))) )) (compound_statement "{\n              (*(code *)PTR_puts_0003ba28)(puVar5);\n              bVar1 = pbVar6[2];\n            }" { (expression_statement "(*(code *)PTR_puts_0003ba28)(puVar5);" (call_expression "(*(code *)PTR_puts_0003ba28)(puVar5)" (parenthesized_expression "(*(code *)PTR_puts_0003ba28)" ( (pointer_expression "*(code *)PTR_puts_0003ba28" * (cast_expression "(code *)PTR_puts_0003ba28" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(puVar5)" ( identifier ))) ;) (expression_statement "bVar1 = pbVar6[2];" (assignment_expression "bVar1 = pbVar6[2]" identifier = (subscript_expression "pbVar6[2]" identifier [ number_literal ])) ;) }) (else_clause "else {\n              bVar1 = pbVar6[2];\n            }" else (compound_statement "{\n              bVar1 = pbVar6[2];\n            }" { (expression_statement "bVar1 = pbVar6[2];" (assignment_expression "bVar1 = pbVar6[2]" identifier = (subscript_expression "pbVar6[2]" identifier [ number_literal ])) ;) }))) (expression_statement "(*(code *)PTR___printf_chk_0003b9d8)\n                      (1,puVar4 + 0x29f8,bVar1 >> 7,\n                       *(undefined4 *)(puVar3 + (bVar1 & 3) * 4 + -0x513c));" (call_expression "(*(code *)PTR___printf_chk_0003b9d8)\n                      (1,puVar4 + 0x29f8,bVar1 >> 7,\n                       *(undefined4 *)(puVar3 + (bVar1 & 3) * 4 + -0x513c))" (parenthesized_expression "(*(code *)PTR___printf_chk_0003b9d8)" ( (pointer_expression "*(code *)PTR___printf_chk_0003b9d8" * (cast_expression "(code *)PTR___printf_chk_0003b9d8" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(1,puVar4 + 0x29f8,bVar1 >> 7,\n                       *(undefined4 *)(puVar3 + (bVar1 & 3) * 4 + -0x513c))" ( number_literal , (binary_expression "puVar4 + 0x29f8" identifier + number_literal) , (binary_expression "bVar1 >> 7" identifier >> number_literal) , (pointer_expression "*(undefined4 *)(puVar3 + (bVar1 & 3) * 4 + -0x513c)" * (cast_expression "(undefined4 *)(puVar3 + (bVar1 & 3) * 4 + -0x513c)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(puVar3 + (bVar1 & 3) * 4 + -0x513c)" ( (binary_expression "puVar3 + (bVar1 & 3) * 4 + -0x513c" (binary_expression "puVar3 + (bVar1 & 3) * 4" identifier + (binary_expression "(bVar1 & 3) * 4" (parenthesized_expression "(bVar1 & 3)" ( (binary_expression "bVar1 & 3" identifier & number_literal) )) * number_literal)) + number_literal) )))) ))) ;) }))) (expression_statement "pbVar6 = pbVar6 + 4;" (assignment_expression "pbVar6 = pbVar6 + 4" identifier = (binary_expression "pbVar6 + 4" identifier + number_literal)) ;) (if_statement "if (iVar9 <= iVar8) {\n            return;\n          }" if (parenthesized_expression "(iVar9 <= iVar8)" ( (binary_expression "iVar9 <= iVar8" identifier <= identifier) )) (compound_statement "{\n            return;\n          }" { (return_statement "return;" return ;) })) (expression_statement "iVar7 = iVar8 + 4;" (assignment_expression "iVar7 = iVar8 + 4" identifier = (binary_expression "iVar8 + 4" identifier + number_literal)) ;) (expression_statement "iVar2 = -iVar8;" (assignment_expression "iVar2 = -iVar8" identifier = (unary_expression "-iVar8" - identifier)) ;) (expression_statement "iVar8 = iVar7;" (assignment_expression "iVar8 = iVar7" identifier = identifier) ;) }) while (parenthesized_expression "(iVar7 <= iVar9)" ( (binary_expression "iVar7 <= iVar9" identifier <= identifier) )) ;) }))) (expression_statement "(*(code *)PTR_pr2serr_0003ba44)(PTR_LAB_0003b948 + 0x2944,4,iVar9 + iVar2);" (call_expression "(*(code *)PTR_pr2serr_0003ba44)(PTR_LAB_0003b948 + 0x2944,4,iVar9 + iVar2)" (parenthesized_expression "(*(code *)PTR_pr2serr_0003ba44)" ( (pointer_expression "*(code *)PTR_pr2serr_0003ba44" * (cast_expression "(code *)PTR_pr2serr_0003ba44" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(PTR_LAB_0003b948 + 0x2944,4,iVar9 + iVar2)" ( (binary_expression "PTR_LAB_0003b948 + 0x2944" identifier + number_literal) , number_literal , (binary_expression "iVar9 + iVar2" identifier + identifier) ))) ;) (return_statement "return;" return ;) })) (expression_statement "param_3 = -1;" (assignment_expression "param_3 = -1" identifier = number_literal) ;) })) (expression_statement "(*(code *)PTR_hex2stdout_0003ba2c)(param_1,param_2,param_3);" (call_expression "(*(code *)PTR_hex2stdout_0003ba2c)(param_1,param_2,param_3)" (parenthesized_expression "(*(code *)PTR_hex2stdout_0003ba2c)" ( (pointer_expression "*(code *)PTR_hex2stdout_0003ba2c" * (cast_expression "(code *)PTR_hex2stdout_0003ba2c" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(param_1,param_2,param_3)" ( identifier , identifier , identifier ))) ;) (return_statement "return;" return ;) })))
(translation_unit (function_definition TYPE (function_declarator IDENT (parameter_list ( (parameter_declaration TYPE IDENT) , (parameter_declaration TYPE IDENT) , (parameter_declaration TYPE IDENT) ))) (compound_statement { (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE (pointer_declarator * IDENT) ;) (expression_statement (assignment_expression IDENT = IDENT) ;) (expression_statement (assignment_expression IDENT = IDENT) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT != LIT) )) (compound_statement { (if_statement if (parenthesized_expression ( (binary_expression IDENT < LIT) )) (compound_statement { (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT < LIT) )) (compound_statement { (expression_statement (call_expression (parenthesized_expression ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT)) )) (argument_list ( (binary_expression IDENT + LIT) ))) ;) (return_statement return ;) })) (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT < LIT) )) (compound_statement { (return_statement return ;) })) (if_statement if (parenthesized_expression ( (binary_expression IDENT < LIT) )) (compound_statement { (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 IDENT = LIT) ;) (do_statement do (compound_statement { (if_statement if (parenthesized_expression ( (binary_expression IDENT == LIT) )) (compound_statement { (expression_statement (call_expression (parenthesized_expression ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT)) )) (argument_list ( IDENT , LIT , LIT ))) ;) }) (else_clause else (compound_statement { (expression_statement (call_expression (parenthesized_expression ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT)) )) (argument_list ( LIT , IDENT , (binary_expression (pointer_expression * IDENT) & LIT) ))) ;) (if_statement if (parenthesized_expression ( (binary_expression (subscript_expression IDENT [ LIT ]) == LIT) )) (compound_statement { (expression_statement (call_expression (parenthesized_expression ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT)) )) (argument_list ( LIT ))) ;) }) (else_clause else (compound_statement { (expression_statement (call_expression (parenthesized_expression ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT)) )) (argument_list ( LIT , (binary_expression IDENT + LIT) ))) ;) }))) (if_statement if (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression IDENT == LIT) )) && (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression (pointer_expression * IDENT) & LIT) )) == LIT) ))) )) && (parenthesized_expression ( (binary_expression (subscript_expression IDENT [ LIT ]) == LIT) ))) )) (compound_statement { (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 = (subscript_expression IDENT [ LIT ])) ;) }) (else_clause else (compound_statement { (expression_statement (assignment_expression IDENT = (subscript_expression IDENT [ LIT ])) ;) }))) (expression_statement (call_expression (parenthesized_expression ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT)) )) (argument_list ( LIT , (binary_expression IDENT + LIT) , (binary_expression IDENT >> LIT) , (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression (binary_expression IDENT + (binary_expression (parenthesized_expression ( (binary_expression IDENT & LIT) )) * LIT)) + LIT) )))) ))) ;) }))) (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT <= IDENT) )) (compound_statement { (return_statement return ;) })) (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) (expression_statement (assignment_expression IDENT = (unary_expression - IDENT)) ;) (expression_statement (assignment_expression IDENT = IDENT) ;) }) while (parenthesized_expression ( (binary_expression IDENT <= IDENT) )) ;) }))) (expression_statement (call_expression (parenthesized_expression ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT)) )) (argument_list ( (binary_expression IDENT + LIT) , LIT , (binary_expression IDENT + IDENT) ))) ;) (return_statement return ;) })) (expression_statement (assignment_expression IDENT = LIT) ;) })) (expression_statement (call_expression (parenthesized_expression ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT)) )) (argument_list ( IDENT , IDENT , IDENT ))) ;) (return_statement return ;) })))
(function_definition "void FUN_000124c8(int param_1,int param_2,int param_3)\n\n{\n  byte bVar1;\n  int iVar2;\n  undefined *puVar3;\n  undefined *puVar4;\n  undefined *puVar5;\n  byte *pbVar6;\n  int iVar7;\n  int iVar8;\n  int iVar9;\n  undefined *puVar10;\n  \n  puVar4 = PTR_LAB_0003b948;\n  puVar3 = PTR_DAT_0003b938;\n  if (param_3 != 1) {\n    if (param_3 < 3) {\n      iVar9 = param_2 + -4;\n      if (param_2 < 4) {\n        (*(code *)PTR_pr2serr_0003ba44)(PTR_LAB_0003b948 + 0x2914);\n        return;\n      }\n      pbVar6 = (byte *)(param_1 + 4);\n      if (iVar9 < 1) {\n        return;\n      }\n      if (iVar9 < 4) {\n        iVar2 = 0;\n      }\n      else {\n        puVar10 = PTR_LAB_0003b948 + 0x2984;\n        puVar5 = PTR_LAB_0003b948 + 0x29b8;\n        iVar8 = 4;\n        do {\n          if (param_3 == 2) {\n            (*(code *)PTR_hex2stdout_0003ba2c)(pbVar6,4,1);\n          }\n          else {\n            (*(code *)PTR___printf_chk_0003b9d8)(1,puVar10,*pbVar6 & 0x3f);\n            if (pbVar6[1] == 0) {\n              (*(code *)PTR_putchar_0003b9f0)(10);\n            }\n            else {\n              (*(code *)PTR___printf_chk_0003b9d8)(1,puVar4 + 0x29a0);\n            }\n            if (((iVar8 == 4) && ((*pbVar6 & 0x3f) == 0x3f)) && (pbVar6[1] == 0xff)) {\n              (*(code *)PTR_puts_0003ba28)(puVar5);\n              bVar1 = pbVar6[2];\n            }\n            else {\n              bVar1 = pbVar6[2];\n            }\n            (*(code *)PTR___printf_chk_0003b9d8)\n                      (1,puVar4 + 0x29f8,bVar1 >> 7,\n                       *(undefined4 *)(puVar3 + (bVar1 & 3) * 4 + -0x513c));\n          }\n          pbVar6 = pbVar6 + 4;\n          if (iVar9 <= iVar8) {\n            return;\n          }\n          iVar7 = iVar8 + 4;\n          iVar2 = -iVar8;\n          iVar8 = iVar7;\n        } while (iVar7 <= iVar9);\n      }\n      (*(code *)PTR_pr2serr_0003ba44)(PTR_LAB_0003b948 + 0x2944,4,iVar9 + iVar2);\n      return;\n    }\n    param_3 = -1;\n  }\n  (*(code *)PTR_hex2stdout_0003ba2c)(param_1,param_2,param_3);\n  return;\n}" (primitive_type "void") (function_declarator "FUN_000124c8(int param_1,int param_2,int param_3)" (identifier "FUN_000124c8") (parameter_list "(int param_1,int param_2,int param_3)" (( "(") (parameter_declaration "int param_1" (primitive_type "int") (identifier "param_1")) (, ",") (parameter_declaration "int param_2" (primitive_type "int") (identifier "param_2")) (, ",") (parameter_declaration "int param_3" (primitive_type "int") (identifier "param_3")) () ")"))) (compound_statement "{\n  byte bVar1;\n  int iVar2;\n  undefined *puVar3;\n  undefined *puVar4;\n  undefined *puVar5;\n  byte *pbVar6;\n  int iVar7;\n  int iVar8;\n  int iVar9;\n  undefined *puVar10;\n  \n  puVar4 = PTR_LAB_0003b948;\n  puVar3 = PTR_DAT_0003b938;\n  if (param_3 != 1) {\n    if (param_3 < 3) {\n      iVar9 = param_2 + -4;\n      if (param_2 < 4) {\n        (*(code *)PTR_pr2serr_0003ba44)(PTR_LAB_0003b948 + 0x2914);\n        return;\n      }\n      pbVar6 = (byte *)(param_1 + 4);\n      if (iVar9 < 1) {\n        return;\n      }\n      if (iVar9 < 4) {\n        iVar2 = 0;\n      }\n      else {\n        puVar10 = PTR_LAB_0003b948 + 0x2984;\n        puVar5 = PTR_LAB_0003b948 + 0x29b8;\n        iVar8 = 4;\n        do {\n          if (param_3 == 2) {\n            (*(code *)PTR_hex2stdout_0003ba2c)(pbVar6,4,1);\n          }\n          else {\n            (*(code *)PTR___printf_chk_0003b9d8)(1,puVar10,*pbVar6 & 0x3f);\n            if (pbVar6[1] == 0) {\n              (*(code *)PTR_putchar_0003b9f0)(10);\n            }\n            else {\n              (*(code *)PTR___printf_chk_0003b9d8)(1,puVar4 + 0x29a0);\n            }\n            if (((iVar8 == 4) && ((*pbVar6 & 0x3f) == 0x3f)) && (pbVar6[1] == 0xff)) {\n              (*(code *)PTR_puts_0003ba28)(puVar5);\n              bVar1 = pbVar6[2];\n            }\n            else {\n              bVar1 = pbVar6[2];\n            }\n            (*(code *)PTR___printf_chk_0003b9d8)\n                      (1,puVar4 + 0x29f8,bVar1 >> 7,\n                       *(undefined4 *)(puVar3 + (bVar1 & 3) * 4 + -0x513c));\n          }\n          pbVar6 = pbVar6 + 4;\n          if (iVar9 <= iVar8) {\n            return;\n          }\n          iVar7 = iVar8 + 4;\n          iVar2 = -iVar8;\n          iVar8 = iVar7;\n        } while (iVar7 <= iVar9);\n      }\n      (*(code *)PTR_pr2serr_0003ba44)(PTR_LAB_0003b948 + 0x2944,4,iVar9 + iVar2);\n      return;\n    }\n    param_3 = -1;\n  }\n  (*(code *)PTR_hex2stdout_0003ba2c)(param_1,param_2,param_3);\n  return;\n}" ({ "{") (declaration "byte bVar1;" (type_identifier "byte") (identifier "bVar1") (; ";")) (declaration "int iVar2;" (primitive_type "int") (identifier "iVar2") (; ";")) (declaration "undefined *puVar3;" (type_identifier "undefined") (pointer_declarator "*puVar3" (* "*") (identifier "puVar3")) (; ";")) (declaration "undefined *puVar4;" (type_identifier "undefined") (pointer_declarator "*puVar4" (* "*") (identifier "puVar4")) (; ";")) (declaration "undefined *puVar5;" (type_identifier "undefined") (pointer_declarator "*puVar5" (* "*") (identifier "puVar5")) (; ";")) (declaration "byte *pbVar6;" (type_identifier "byte") (pointer_declarator "*pbVar6" (* "*") (identifier "pbVar6")) (; ";")) (declaration "int iVar7;" (primitive_type "int") (identifier "iVar7") (; ";")) (declaration "int iVar8;" (primitive_type "int") (identifier "iVar8") (; ";")) (declaration "int iVar9;" (primitive_type "int") (identifier "iVar9") (; ";")) (declaration "undefined *puVar10;" (type_identifier "undefined") (pointer_declarator "*puVar10" (* "*") (identifier "puVar10")) (; ";")) (expression_statement "puVar4 = PTR_LAB_0003b948;" (assignment_expression "puVar4 = PTR_LAB_0003b948" (identifier "puVar4") (= "=") (identifier "PTR_LAB_0003b948")) (; ";")) (expression_statement "puVar3 = PTR_DAT_0003b938;" (assignment_expression "puVar3 = PTR_DAT_0003b938" (identifier "puVar3") (= "=") (identifier "PTR_DAT_0003b938")) (; ";")) (if_statement "if (param_3 != 1) {\n    if (param_3 < 3) {\n      iVar9 = param_2 + -4;\n      if (param_2 < 4) {\n        (*(code *)PTR_pr2serr_0003ba44)(PTR_LAB_0003b948 + 0x2914);\n        return;\n      }\n      pbVar6 = (byte *)(param_1 + 4);\n      if (iVar9 < 1) {\n        return;\n      }\n      if (iVar9 < 4) {\n        iVar2 = 0;\n      }\n      else {\n        puVar10 = PTR_LAB_0003b948 + 0x2984;\n        puVar5 = PTR_LAB_0003b948 + 0x29b8;\n        iVar8 = 4;\n        do {\n          if (param_3 == 2) {\n            (*(code *)PTR_hex2stdout_0003ba2c)(pbVar6,4,1);\n          }\n          else {\n            (*(code *)PTR___printf_chk_0003b9d8)(1,puVar10,*pbVar6 & 0x3f);\n            if (pbVar6[1] == 0) {\n              (*(code *)PTR_putchar_0003b9f0)(10);\n            }\n            else {\n              (*(code *)PTR___printf_chk_0003b9d8)(1,puVar4 + 0x29a0);\n            }\n            if (((iVar8 == 4) && ((*pbVar6 & 0x3f) == 0x3f)) && (pbVar6[1] == 0xff)) {\n              (*(code *)PTR_puts_0003ba28)(puVar5);\n              bVar1 = pbVar6[2];\n            }\n            else {\n              bVar1 = pbVar6[2];\n            }\n            (*(code *)PTR___printf_chk_0003b9d8)\n                      (1,puVar4 + 0x29f8,bVar1 >> 7,\n                       *(undefined4 *)(puVar3 + (bVar1 & 3) * 4 + -0x513c));\n          }\n          pbVar6 = pbVar6 + 4;\n          if (iVar9 <= iVar8) {\n            return;\n          }\n          iVar7 = iVar8 + 4;\n          iVar2 = -iVar8;\n          iVar8 = iVar7;\n        } while (iVar7 <= iVar9);\n      }\n      (*(code *)PTR_pr2serr_0003ba44)(PTR_LAB_0003b948 + 0x2944,4,iVar9 + iVar2);\n      return;\n    }\n    param_3 = -1;\n  }" (if "if") (parenthesized_expression "(param_3 != 1)" (( "(") (binary_expression "param_3 != 1" (identifier "param_3") (!= "!=") (number_literal "1")) () ")")) (compound_statement "{\n    if (param_3 < 3) {\n      iVar9 = param_2 + -4;\n      if (param_2 < 4) {\n        (*(code *)PTR_pr2serr_0003ba44)(PTR_LAB_0003b948 + 0x2914);\n        return;\n      }\n      pbVar6 = (byte *)(param_1 + 4);\n      if (iVar9 < 1) {\n        return;\n      }\n      if (iVar9 < 4) {\n        iVar2 = 0;\n      }\n      else {\n        puVar10 = PTR_LAB_0003b948 + 0x2984;\n        puVar5 = PTR_LAB_0003b948 + 0x29b8;\n        iVar8 = 4;\n        do {\n          if (param_3 == 2) {\n            (*(code *)PTR_hex2stdout_0003ba2c)(pbVar6,4,1);\n          }\n          else {\n            (*(code *)PTR___printf_chk_0003b9d8)(1,puVar10,*pbVar6 & 0x3f);\n            if (pbVar6[1] == 0) {\n              (*(code *)PTR_putchar_0003b9f0)(10);\n            }\n            else {\n              (*(code *)PTR___printf_chk_0003b9d8)(1,puVar4 + 0x29a0);\n            }\n            if (((iVar8 == 4) && ((*pbVar6 & 0x3f) == 0x3f)) && (pbVar6[1] == 0xff)) {\n              (*(code *)PTR_puts_0003ba28)(puVar5);\n              bVar1 = pbVar6[2];\n            }\n            else {\n              bVar1 = pbVar6[2];\n            }\n            (*(code *)PTR___printf_chk_0003b9d8)\n                      (1,puVar4 + 0x29f8,bVar1 >> 7,\n                       *(undefined4 *)(puVar3 + (bVar1 & 3) * 4 + -0x513c));\n          }\n          pbVar6 = pbVar6 + 4;\n          if (iVar9 <= iVar8) {\n            return;\n          }\n          iVar7 = iVar8 + 4;\n          iVar2 = -iVar8;\n          iVar8 = iVar7;\n        } while (iVar7 <= iVar9);\n      }\n      (*(code *)PTR_pr2serr_0003ba44)(PTR_LAB_0003b948 + 0x2944,4,iVar9 + iVar2);\n      return;\n    }\n    param_3 = -1;\n  }" ({ "{") (if_statement "if (param_3 < 3) {\n      iVar9 = param_2 + -4;\n      if (param_2 < 4) {\n        (*(code *)PTR_pr2serr_0003ba44)(PTR_LAB_0003b948 + 0x2914);\n        return;\n      }\n      pbVar6 = (byte *)(param_1 + 4);\n      if (iVar9 < 1) {\n        return;\n      }\n      if (iVar9 < 4) {\n        iVar2 = 0;\n      }\n      else {\n        puVar10 = PTR_LAB_0003b948 + 0x2984;\n        puVar5 = PTR_LAB_0003b948 + 0x29b8;\n        iVar8 = 4;\n        do {\n          if (param_3 == 2) {\n            (*(code *)PTR_hex2stdout_0003ba2c)(pbVar6,4,1);\n          }\n          else {\n            (*(code *)PTR___printf_chk_0003b9d8)(1,puVar10,*pbVar6 & 0x3f);\n            if (pbVar6[1] == 0) {\n              (*(code *)PTR_putchar_0003b9f0)(10);\n            }\n            else {\n              (*(code *)PTR___printf_chk_0003b9d8)(1,puVar4 + 0x29a0);\n            }\n            if (((iVar8 == 4) && ((*pbVar6 & 0x3f) == 0x3f)) && (pbVar6[1] == 0xff)) {\n              (*(code *)PTR_puts_0003ba28)(puVar5);\n              bVar1 = pbVar6[2];\n            }\n            else {\n              bVar1 = pbVar6[2];\n            }\n            (*(code *)PTR___printf_chk_0003b9d8)\n                      (1,puVar4 + 0x29f8,bVar1 >> 7,\n                       *(undefined4 *)(puVar3 + (bVar1 & 3) * 4 + -0x513c));\n          }\n          pbVar6 = pbVar6 + 4;\n          if (iVar9 <= iVar8) {\n            return;\n          }\n          iVar7 = iVar8 + 4;\n          iVar2 = -iVar8;\n          iVar8 = iVar7;\n        } while (iVar7 <= iVar9);\n      }\n      (*(code *)PTR_pr2serr_0003ba44)(PTR_LAB_0003b948 + 0x2944,4,iVar9 + iVar2);\n      return;\n    }" (if "if") (parenthesized_expression "(param_3 < 3)" (( "(") (binary_expression "param_3 < 3" (identifier "param_3") (< "<") (number_literal "3")) () ")")) (compound_statement "{\n      iVar9 = param_2 + -4;\n      if (param_2 < 4) {\n        (*(code *)PTR_pr2serr_0003ba44)(PTR_LAB_0003b948 + 0x2914);\n        return;\n      }\n      pbVar6 = (byte *)(param_1 + 4);\n      if (iVar9 < 1) {\n        return;\n      }\n      if (iVar9 < 4) {\n        iVar2 = 0;\n      }\n      else {\n        puVar10 = PTR_LAB_0003b948 + 0x2984;\n        puVar5 = PTR_LAB_0003b948 + 0x29b8;\n        iVar8 = 4;\n        do {\n          if (param_3 == 2) {\n            (*(code *)PTR_hex2stdout_0003ba2c)(pbVar6,4,1);\n          }\n          else {\n            (*(code *)PTR___printf_chk_0003b9d8)(1,puVar10,*pbVar6 & 0x3f);\n            if (pbVar6[1] == 0) {\n              (*(code *)PTR_putchar_0003b9f0)(10);\n            }\n            else {\n              (*(code *)PTR___printf_chk_0003b9d8)(1,puVar4 + 0x29a0);\n            }\n            if (((iVar8 == 4) && ((*pbVar6 & 0x3f) == 0x3f)) && (pbVar6[1] == 0xff)) {\n              (*(code *)PTR_puts_0003ba28)(puVar5);\n              bVar1 = pbVar6[2];\n            }\n            else {\n              bVar1 = pbVar6[2];\n            }\n            (*(code *)PTR___printf_chk_0003b9d8)\n                      (1,puVar4 + 0x29f8,bVar1 >> 7,\n                       *(undefined4 *)(puVar3 + (bVar1 & 3) * 4 + -0x513c));\n          }\n          pbVar6 = pbVar6 + 4;\n          if (iVar9 <= iVar8) {\n            return;\n          }\n          iVar7 = iVar8 + 4;\n          iVar2 = -iVar8;\n          iVar8 = iVar7;\n        } while (iVar7 <= iVar9);\n      }\n      (*(code *)PTR_pr2serr_0003ba44)(PTR_LAB_0003b948 + 0x2944,4,iVar9 + iVar2);\n      return;\n    }" ({ "{") (expression_statement "iVar9 = param_2 + -4;" (assignment_expression "iVar9 = param_2 + -4" (identifier "iVar9") (= "=") (binary_expression "param_2 + -4" (identifier "param_2") (+ "+") (number_literal "-4"))) (; ";")) (if_statement "if (param_2 < 4) {\n        (*(code *)PTR_pr2serr_0003ba44)(PTR_LAB_0003b948 + 0x2914);\n        return;\n      }" (if "if") (parenthesized_expression "(param_2 < 4)" (( "(") (binary_expression "param_2 < 4" (identifier "param_2") (< "<") (number_literal "4")) () ")")) (compound_statement "{\n        (*(code *)PTR_pr2serr_0003ba44)(PTR_LAB_0003b948 + 0x2914);\n        return;\n      }" ({ "{") (expression_statement "(*(code *)PTR_pr2serr_0003ba44)(PTR_LAB_0003b948 + 0x2914);" (call_expression "(*(code *)PTR_pr2serr_0003ba44)(PTR_LAB_0003b948 + 0x2914)" (parenthesized_expression "(*(code *)PTR_pr2serr_0003ba44)" (( "(") (pointer_expression "*(code *)PTR_pr2serr_0003ba44" (* "*") (cast_expression "(code *)PTR_pr2serr_0003ba44" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR_pr2serr_0003ba44"))) () ")")) (argument_list "(PTR_LAB_0003b948 + 0x2914)" (( "(") (binary_expression "PTR_LAB_0003b948 + 0x2914" (identifier "PTR_LAB_0003b948") (+ "+") (number_literal "0x2914")) () ")"))) (; ";")) (return_statement "return;" (return "return") (; ";")) (} "}"))) (expression_statement "pbVar6 = (byte *)(param_1 + 4);" (assignment_expression "pbVar6 = (byte *)(param_1 + 4)" (identifier "pbVar6") (= "=") (cast_expression "(byte *)(param_1 + 4)" (( "(") (type_descriptor "byte *" (type_identifier "byte") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 4)" (( "(") (binary_expression "param_1 + 4" (identifier "param_1") (+ "+") (number_literal "4")) () ")")))) (; ";")) (if_statement "if (iVar9 < 1) {\n        return;\n      }" (if "if") (parenthesized_expression "(iVar9 < 1)" (( "(") (binary_expression "iVar9 < 1" (identifier "iVar9") (< "<") (number_literal "1")) () ")")) (compound_statement "{\n        return;\n      }" ({ "{") (return_statement "return;" (return "return") (; ";")) (} "}"))) (if_statement "if (iVar9 < 4) {\n        iVar2 = 0;\n      }\n      else {\n        puVar10 = PTR_LAB_0003b948 + 0x2984;\n        puVar5 = PTR_LAB_0003b948 + 0x29b8;\n        iVar8 = 4;\n        do {\n          if (param_3 == 2) {\n            (*(code *)PTR_hex2stdout_0003ba2c)(pbVar6,4,1);\n          }\n          else {\n            (*(code *)PTR___printf_chk_0003b9d8)(1,puVar10,*pbVar6 & 0x3f);\n            if (pbVar6[1] == 0) {\n              (*(code *)PTR_putchar_0003b9f0)(10);\n            }\n            else {\n              (*(code *)PTR___printf_chk_0003b9d8)(1,puVar4 + 0x29a0);\n            }\n            if (((iVar8 == 4) && ((*pbVar6 & 0x3f) == 0x3f)) && (pbVar6[1] == 0xff)) {\n              (*(code *)PTR_puts_0003ba28)(puVar5);\n              bVar1 = pbVar6[2];\n            }\n            else {\n              bVar1 = pbVar6[2];\n            }\n            (*(code *)PTR___printf_chk_0003b9d8)\n                      (1,puVar4 + 0x29f8,bVar1 >> 7,\n                       *(undefined4 *)(puVar3 + (bVar1 & 3) * 4 + -0x513c));\n          }\n          pbVar6 = pbVar6 + 4;\n          if (iVar9 <= iVar8) {\n            return;\n          }\n          iVar7 = iVar8 + 4;\n          iVar2 = -iVar8;\n          iVar8 = iVar7;\n        } while (iVar7 <= iVar9);\n      }" (if "if") (parenthesized_expression "(iVar9 < 4)" (( "(") (binary_expression "iVar9 < 4" (identifier "iVar9") (< "<") (number_literal "4")) () ")")) (compound_statement "{\n        iVar2 = 0;\n      }" ({ "{") (expression_statement "iVar2 = 0;" (assignment_expression "iVar2 = 0" (identifier "iVar2") (= "=") (number_literal "0")) (; ";")) (} "}")) (else_clause "else {\n        puVar10 = PTR_LAB_0003b948 + 0x2984;\n        puVar5 = PTR_LAB_0003b948 + 0x29b8;\n        iVar8 = 4;\n        do {\n          if (param_3 == 2) {\n            (*(code *)PTR_hex2stdout_0003ba2c)(pbVar6,4,1);\n          }\n          else {\n            (*(code *)PTR___printf_chk_0003b9d8)(1,puVar10,*pbVar6 & 0x3f);\n            if (pbVar6[1] == 0) {\n              (*(code *)PTR_putchar_0003b9f0)(10);\n            }\n            else {\n              (*(code *)PTR___printf_chk_0003b9d8)(1,puVar4 + 0x29a0);\n            }\n            if (((iVar8 == 4) && ((*pbVar6 & 0x3f) == 0x3f)) && (pbVar6[1] == 0xff)) {\n              (*(code *)PTR_puts_0003ba28)(puVar5);\n              bVar1 = pbVar6[2];\n            }\n            else {\n              bVar1 = pbVar6[2];\n            }\n            (*(code *)PTR___printf_chk_0003b9d8)\n                      (1,puVar4 + 0x29f8,bVar1 >> 7,\n                       *(undefined4 *)(puVar3 + (bVar1 & 3) * 4 + -0x513c));\n          }\n          pbVar6 = pbVar6 + 4;\n          if (iVar9 <= iVar8) {\n            return;\n          }\n          iVar7 = iVar8 + 4;\n          iVar2 = -iVar8;\n          iVar8 = iVar7;\n        } while (iVar7 <= iVar9);\n      }" (else "else") (compound_statement "{\n        puVar10 = PTR_LAB_0003b948 + 0x2984;\n        puVar5 = PTR_LAB_0003b948 + 0x29b8;\n        iVar8 = 4;\n        do {\n          if (param_3 == 2) {\n            (*(code *)PTR_hex2stdout_0003ba2c)(pbVar6,4,1);\n          }\n          else {\n            (*(code *)PTR___printf_chk_0003b9d8)(1,puVar10,*pbVar6 & 0x3f);\n            if (pbVar6[1] == 0) {\n              (*(code *)PTR_putchar_0003b9f0)(10);\n            }\n            else {\n              (*(code *)PTR___printf_chk_0003b9d8)(1,puVar4 + 0x29a0);\n            }\n            if (((iVar8 == 4) && ((*pbVar6 & 0x3f) == 0x3f)) && (pbVar6[1] == 0xff)) {\n              (*(code *)PTR_puts_0003ba28)(puVar5);\n              bVar1 = pbVar6[2];\n            }\n            else {\n              bVar1 = pbVar6[2];\n            }\n            (*(code *)PTR___printf_chk_0003b9d8)\n                      (1,puVar4 + 0x29f8,bVar1 >> 7,\n                       *(undefined4 *)(puVar3 + (bVar1 & 3) * 4 + -0x513c));\n          }\n          pbVar6 = pbVar6 + 4;\n          if (iVar9 <= iVar8) {\n            return;\n          }\n          iVar7 = iVar8 + 4;\n          iVar2 = -iVar8;\n          iVar8 = iVar7;\n        } while (iVar7 <= iVar9);\n      }" ({ "{") (expression_statement "puVar10 = PTR_LAB_0003b948 + 0x2984;" (assignment_expression "puVar10 = PTR_LAB_0003b948 + 0x2984" (identifier "puVar10") (= "=") (binary_expression "PTR_LAB_0003b948 + 0x2984" (identifier "PTR_LAB_0003b948") (+ "+") (number_literal "0x2984"))) (; ";")) (expression_statement "puVar5 = PTR_LAB_0003b948 + 0x29b8;" (assignment_expression "puVar5 = PTR_LAB_0003b948 + 0x29b8" (identifier "puVar5") (= "=") (binary_expression "PTR_LAB_0003b948 + 0x29b8" (identifier "PTR_LAB_0003b948") (+ "+") (number_literal "0x29b8"))) (; ";")) (expression_statement "iVar8 = 4;" (assignment_expression "iVar8 = 4" (identifier "iVar8") (= "=") (number_literal "4")) (; ";")) (do_statement "do {\n          if (param_3 == 2) {\n            (*(code *)PTR_hex2stdout_0003ba2c)(pbVar6,4,1);\n          }\n          else {\n            (*(code *)PTR___printf_chk_0003b9d8)(1,puVar10,*pbVar6 & 0x3f);\n            if (pbVar6[1] == 0) {\n              (*(code *)PTR_putchar_0003b9f0)(10);\n            }\n            else {\n              (*(code *)PTR___printf_chk_0003b9d8)(1,puVar4 + 0x29a0);\n            }\n            if (((iVar8 == 4) && ((*pbVar6 & 0x3f) == 0x3f)) && (pbVar6[1] == 0xff)) {\n              (*(code *)PTR_puts_0003ba28)(puVar5);\n              bVar1 = pbVar6[2];\n            }\n            else {\n              bVar1 = pbVar6[2];\n            }\n            (*(code *)PTR___printf_chk_0003b9d8)\n                      (1,puVar4 + 0x29f8,bVar1 >> 7,\n                       *(undefined4 *)(puVar3 + (bVar1 & 3) * 4 + -0x513c));\n          }\n          pbVar6 = pbVar6 + 4;\n          if (iVar9 <= iVar8) {\n            return;\n          }\n          iVar7 = iVar8 + 4;\n          iVar2 = -iVar8;\n          iVar8 = iVar7;\n        } while (iVar7 <= iVar9);" (do "do") (compound_statement "{\n          if (param_3 == 2) {\n            (*(code *)PTR_hex2stdout_0003ba2c)(pbVar6,4,1);\n          }\n          else {\n            (*(code *)PTR___printf_chk_0003b9d8)(1,puVar10,*pbVar6 & 0x3f);\n            if (pbVar6[1] == 0) {\n              (*(code *)PTR_putchar_0003b9f0)(10);\n            }\n            else {\n              (*(code *)PTR___printf_chk_0003b9d8)(1,puVar4 + 0x29a0);\n            }\n            if (((iVar8 == 4) && ((*pbVar6 & 0x3f) == 0x3f)) && (pbVar6[1] == 0xff)) {\n              (*(code *)PTR_puts_0003ba28)(puVar5);\n              bVar1 = pbVar6[2];\n            }\n            else {\n              bVar1 = pbVar6[2];\n            }\n            (*(code *)PTR___printf_chk_0003b9d8)\n                      (1,puVar4 + 0x29f8,bVar1 >> 7,\n                       *(undefined4 *)(puVar3 + (bVar1 & 3) * 4 + -0x513c));\n          }\n          pbVar6 = pbVar6 + 4;\n          if (iVar9 <= iVar8) {\n            return;\n          }\n          iVar7 = iVar8 + 4;\n          iVar2 = -iVar8;\n          iVar8 = iVar7;\n        }" ({ "{") (if_statement "if (param_3 == 2) {\n            (*(code *)PTR_hex2stdout_0003ba2c)(pbVar6,4,1);\n          }\n          else {\n            (*(code *)PTR___printf_chk_0003b9d8)(1,puVar10,*pbVar6 & 0x3f);\n            if (pbVar6[1] == 0) {\n              (*(code *)PTR_putchar_0003b9f0)(10);\n            }\n            else {\n              (*(code *)PTR___printf_chk_0003b9d8)(1,puVar4 + 0x29a0);\n            }\n            if (((iVar8 == 4) && ((*pbVar6 & 0x3f) == 0x3f)) && (pbVar6[1] == 0xff)) {\n              (*(code *)PTR_puts_0003ba28)(puVar5);\n              bVar1 = pbVar6[2];\n            }\n            else {\n              bVar1 = pbVar6[2];\n            }\n            (*(code *)PTR___printf_chk_0003b9d8)\n                      (1,puVar4 + 0x29f8,bVar1 >> 7,\n                       *(undefined4 *)(puVar3 + (bVar1 & 3) * 4 + -0x513c));\n          }" (if "if") (parenthesized_expression "(param_3 == 2)" (( "(") (binary_expression "param_3 == 2" (identifier "param_3") (== "==") (number_literal "2")) () ")")) (compound_statement "{\n            (*(code *)PTR_hex2stdout_0003ba2c)(pbVar6,4,1);\n          }" ({ "{") (expression_statement "(*(code *)PTR_hex2stdout_0003ba2c)(pbVar6,4,1);" (call_expression "(*(code *)PTR_hex2stdout_0003ba2c)(pbVar6,4,1)" (parenthesized_expression "(*(code *)PTR_hex2stdout_0003ba2c)" (( "(") (pointer_expression "*(code *)PTR_hex2stdout_0003ba2c" (* "*") (cast_expression "(code *)PTR_hex2stdout_0003ba2c" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR_hex2stdout_0003ba2c"))) () ")")) (argument_list "(pbVar6,4,1)" (( "(") (identifier "pbVar6") (, ",") (number_literal "4") (, ",") (number_literal "1") () ")"))) (; ";")) (} "}")) (else_clause "else {\n            (*(code *)PTR___printf_chk_0003b9d8)(1,puVar10,*pbVar6 & 0x3f);\n            if (pbVar6[1] == 0) {\n              (*(code *)PTR_putchar_0003b9f0)(10);\n            }\n            else {\n              (*(code *)PTR___printf_chk_0003b9d8)(1,puVar4 + 0x29a0);\n            }\n            if (((iVar8 == 4) && ((*pbVar6 & 0x3f) == 0x3f)) && (pbVar6[1] == 0xff)) {\n              (*(code *)PTR_puts_0003ba28)(puVar5);\n              bVar1 = pbVar6[2];\n            }\n            else {\n              bVar1 = pbVar6[2];\n            }\n            (*(code *)PTR___printf_chk_0003b9d8)\n                      (1,puVar4 + 0x29f8,bVar1 >> 7,\n                       *(undefined4 *)(puVar3 + (bVar1 & 3) * 4 + -0x513c));\n          }" (else "else") (compound_statement "{\n            (*(code *)PTR___printf_chk_0003b9d8)(1,puVar10,*pbVar6 & 0x3f);\n            if (pbVar6[1] == 0) {\n              (*(code *)PTR_putchar_0003b9f0)(10);\n            }\n            else {\n              (*(code *)PTR___printf_chk_0003b9d8)(1,puVar4 + 0x29a0);\n            }\n            if (((iVar8 == 4) && ((*pbVar6 & 0x3f) == 0x3f)) && (pbVar6[1] == 0xff)) {\n              (*(code *)PTR_puts_0003ba28)(puVar5);\n              bVar1 = pbVar6[2];\n            }\n            else {\n              bVar1 = pbVar6[2];\n            }\n            (*(code *)PTR___printf_chk_0003b9d8)\n                      (1,puVar4 + 0x29f8,bVar1 >> 7,\n                       *(undefined4 *)(puVar3 + (bVar1 & 3) * 4 + -0x513c));\n          }" ({ "{") (expression_statement "(*(code *)PTR___printf_chk_0003b9d8)(1,puVar10,*pbVar6 & 0x3f);" (call_expression "(*(code *)PTR___printf_chk_0003b9d8)(1,puVar10,*pbVar6 & 0x3f)" (parenthesized_expression "(*(code *)PTR___printf_chk_0003b9d8)" (( "(") (pointer_expression "*(code *)PTR___printf_chk_0003b9d8" (* "*") (cast_expression "(code *)PTR___printf_chk_0003b9d8" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR___printf_chk_0003b9d8"))) () ")")) (argument_list "(1,puVar10,*pbVar6 & 0x3f)" (( "(") (number_literal "1") (, ",") (identifier "puVar10") (, ",") (binary_expression "*pbVar6 & 0x3f" (pointer_expression "*pbVar6" (* "*") (identifier "pbVar6")) (& "&") (number_literal "0x3f")) () ")"))) (; ";")) (if_statement "if (pbVar6[1] == 0) {\n              (*(code *)PTR_putchar_0003b9f0)(10);\n            }\n            else {\n              (*(code *)PTR___printf_chk_0003b9d8)(1,puVar4 + 0x29a0);\n            }" (if "if") (parenthesized_expression "(pbVar6[1] == 0)" (( "(") (binary_expression "pbVar6[1] == 0" (subscript_expression "pbVar6[1]" (identifier "pbVar6") ([ "[") (number_literal "1") (] "]")) (== "==") (number_literal "0")) () ")")) (compound_statement "{\n              (*(code *)PTR_putchar_0003b9f0)(10);\n            }" ({ "{") (expression_statement "(*(code *)PTR_putchar_0003b9f0)(10);" (call_expression "(*(code *)PTR_putchar_0003b9f0)(10)" (parenthesized_expression "(*(code *)PTR_putchar_0003b9f0)" (( "(") (pointer_expression "*(code *)PTR_putchar_0003b9f0" (* "*") (cast_expression "(code *)PTR_putchar_0003b9f0" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR_putchar_0003b9f0"))) () ")")) (argument_list "(10)" (( "(") (number_literal "10") () ")"))) (; ";")) (} "}")) (else_clause "else {\n              (*(code *)PTR___printf_chk_0003b9d8)(1,puVar4 + 0x29a0);\n            }" (else "else") (compound_statement "{\n              (*(code *)PTR___printf_chk_0003b9d8)(1,puVar4 + 0x29a0);\n            }" ({ "{") (expression_statement "(*(code *)PTR___printf_chk_0003b9d8)(1,puVar4 + 0x29a0);" (call_expression "(*(code *)PTR___printf_chk_0003b9d8)(1,puVar4 + 0x29a0)" (parenthesized_expression "(*(code *)PTR___printf_chk_0003b9d8)" (( "(") (pointer_expression "*(code *)PTR___printf_chk_0003b9d8" (* "*") (cast_expression "(code *)PTR___printf_chk_0003b9d8" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR___printf_chk_0003b9d8"))) () ")")) (argument_list "(1,puVar4 + 0x29a0)" (( "(") (number_literal "1") (, ",") (binary_expression "puVar4 + 0x29a0" (identifier "puVar4") (+ "+") (number_literal "0x29a0")) () ")"))) (; ";")) (} "}")))) (if_statement "if (((iVar8 == 4) && ((*pbVar6 & 0x3f) == 0x3f)) && (pbVar6[1] == 0xff)) {\n              (*(code *)PTR_puts_0003ba28)(puVar5);\n              bVar1 = pbVar6[2];\n            }\n            else {\n              bVar1 = pbVar6[2];\n            }" (if "if") (parenthesized_expression "(((iVar8 == 4) && ((*pbVar6 & 0x3f) == 0x3f)) && (pbVar6[1] == 0xff))" (( "(") (binary_expression "((iVar8 == 4) && ((*pbVar6 & 0x3f) == 0x3f)) && (pbVar6[1] == 0xff)" (parenthesized_expression "((iVar8 == 4) && ((*pbVar6 & 0x3f) == 0x3f))" (( "(") (binary_expression "(iVar8 == 4) && ((*pbVar6 & 0x3f) == 0x3f)" (parenthesized_expression "(iVar8 == 4)" (( "(") (binary_expression "iVar8 == 4" (identifier "iVar8") (== "==") (number_literal "4")) () ")")) (&& "&&") (parenthesized_expression "((*pbVar6 & 0x3f) == 0x3f)" (( "(") (binary_expression "(*pbVar6 & 0x3f) == 0x3f" (parenthesized_expression "(*pbVar6 & 0x3f)" (( "(") (binary_expression "*pbVar6 & 0x3f" (pointer_expression "*pbVar6" (* "*") (identifier "pbVar6")) (& "&") (number_literal "0x3f")) () ")")) (== "==") (number_literal "0x3f")) () ")"))) () ")")) (&& "&&") (parenthesized_expression "(pbVar6[1] == 0xff)" (( "(") (binary_expression "pbVar6[1] == 0xff" (subscript_expression "pbVar6[1]" (identifier "pbVar6") ([ "[") (number_literal "1") (] "]")) (== "==") (number_literal "0xff")) () ")"))) () ")")) (compound_statement "{\n              (*(code *)PTR_puts_0003ba28)(puVar5);\n              bVar1 = pbVar6[2];\n            }" ({ "{") (expression_statement "(*(code *)PTR_puts_0003ba28)(puVar5);" (call_expression "(*(code *)PTR_puts_0003ba28)(puVar5)" (parenthesized_expression "(*(code *)PTR_puts_0003ba28)" (( "(") (pointer_expression "*(code *)PTR_puts_0003ba28" (* "*") (cast_expression "(code *)PTR_puts_0003ba28" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR_puts_0003ba28"))) () ")")) (argument_list "(puVar5)" (( "(") (identifier "puVar5") () ")"))) (; ";")) (expression_statement "bVar1 = pbVar6[2];" (assignment_expression "bVar1 = pbVar6[2]" (identifier "bVar1") (= "=") (subscript_expression "pbVar6[2]" (identifier "pbVar6") ([ "[") (number_literal "2") (] "]"))) (; ";")) (} "}")) (else_clause "else {\n              bVar1 = pbVar6[2];\n            }" (else "else") (compound_statement "{\n              bVar1 = pbVar6[2];\n            }" ({ "{") (expression_statement "bVar1 = pbVar6[2];" (assignment_expression "bVar1 = pbVar6[2]" (identifier "bVar1") (= "=") (subscript_expression "pbVar6[2]" (identifier "pbVar6") ([ "[") (number_literal "2") (] "]"))) (; ";")) (} "}")))) (expression_statement "(*(code *)PTR___printf_chk_0003b9d8)\n                      (1,puVar4 + 0x29f8,bVar1 >> 7,\n                       *(undefined4 *)(puVar3 + (bVar1 & 3) * 4 + -0x513c));" (call_expression "(*(code *)PTR___printf_chk_0003b9d8)\n                      (1,puVar4 + 0x29f8,bVar1 >> 7,\n                       *(undefined4 *)(puVar3 + (bVar1 & 3) * 4 + -0x513c))" (parenthesized_expression "(*(code *)PTR___printf_chk_0003b9d8)" (( "(") (pointer_expression "*(code *)PTR___printf_chk_0003b9d8" (* "*") (cast_expression "(code *)PTR___printf_chk_0003b9d8" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR___printf_chk_0003b9d8"))) () ")")) (argument_list "(1,puVar4 + 0x29f8,bVar1 >> 7,\n                       *(undefined4 *)(puVar3 + (bVar1 & 3) * 4 + -0x513c))" (( "(") (number_literal "1") (, ",") (binary_expression "puVar4 + 0x29f8" (identifier "puVar4") (+ "+") (number_literal "0x29f8")) (, ",") (binary_expression "bVar1 >> 7" (identifier "bVar1") (>> ">>") (number_literal "7")) (, ",") (pointer_expression "*(undefined4 *)(puVar3 + (bVar1 & 3) * 4 + -0x513c)" (* "*") (cast_expression "(undefined4 *)(puVar3 + (bVar1 & 3) * 4 + -0x513c)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(puVar3 + (bVar1 & 3) * 4 + -0x513c)" (( "(") (binary_expression "puVar3 + (bVar1 & 3) * 4 + -0x513c" (binary_expression "puVar3 + (bVar1 & 3) * 4" (identifier "puVar3") (+ "+") (binary_expression "(bVar1 & 3) * 4" (parenthesized_expression "(bVar1 & 3)" (( "(") (binary_expression "bVar1 & 3" (identifier "bVar1") (& "&") (number_literal "3")) () ")")) (* "*") (number_literal "4"))) (+ "+") (number_literal "-0x513c")) () ")")))) () ")"))) (; ";")) (} "}")))) (expression_statement "pbVar6 = pbVar6 + 4;" (assignment_expression "pbVar6 = pbVar6 + 4" (identifier "pbVar6") (= "=") (binary_expression "pbVar6 + 4" (identifier "pbVar6") (+ "+") (number_literal "4"))) (; ";")) (if_statement "if (iVar9 <= iVar8) {\n            return;\n          }" (if "if") (parenthesized_expression "(iVar9 <= iVar8)" (( "(") (binary_expression "iVar9 <= iVar8" (identifier "iVar9") (<= "<=") (identifier "iVar8")) () ")")) (compound_statement "{\n            return;\n          }" ({ "{") (return_statement "return;" (return "return") (; ";")) (} "}"))) (expression_statement "iVar7 = iVar8 + 4;" (assignment_expression "iVar7 = iVar8 + 4" (identifier "iVar7") (= "=") (binary_expression "iVar8 + 4" (identifier "iVar8") (+ "+") (number_literal "4"))) (; ";")) (expression_statement "iVar2 = -iVar8;" (assignment_expression "iVar2 = -iVar8" (identifier "iVar2") (= "=") (unary_expression "-iVar8" (- "-") (identifier "iVar8"))) (; ";")) (expression_statement "iVar8 = iVar7;" (assignment_expression "iVar8 = iVar7" (identifier "iVar8") (= "=") (identifier "iVar7")) (; ";")) (} "}")) (while "while") (parenthesized_expression "(iVar7 <= iVar9)" (( "(") (binary_expression "iVar7 <= iVar9" (identifier "iVar7") (<= "<=") (identifier "iVar9")) () ")")) (; ";")) (} "}")))) (expression_statement "(*(code *)PTR_pr2serr_0003ba44)(PTR_LAB_0003b948 + 0x2944,4,iVar9 + iVar2);" (call_expression "(*(code *)PTR_pr2serr_0003ba44)(PTR_LAB_0003b948 + 0x2944,4,iVar9 + iVar2)" (parenthesized_expression "(*(code *)PTR_pr2serr_0003ba44)" (( "(") (pointer_expression "*(code *)PTR_pr2serr_0003ba44" (* "*") (cast_expression "(code *)PTR_pr2serr_0003ba44" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR_pr2serr_0003ba44"))) () ")")) (argument_list "(PTR_LAB_0003b948 + 0x2944,4,iVar9 + iVar2)" (( "(") (binary_expression "PTR_LAB_0003b948 + 0x2944" (identifier "PTR_LAB_0003b948") (+ "+") (number_literal "0x2944")) (, ",") (number_literal "4") (, ",") (binary_expression "iVar9 + iVar2" (identifier "iVar9") (+ "+") (identifier "iVar2")) () ")"))) (; ";")) (return_statement "return;" (return "return") (; ";")) (} "}"))) (expression_statement "param_3 = -1;" (assignment_expression "param_3 = -1" (identifier "param_3") (= "=") (number_literal "-1")) (; ";")) (} "}"))) (expression_statement "(*(code *)PTR_hex2stdout_0003ba2c)(param_1,param_2,param_3);" (call_expression "(*(code *)PTR_hex2stdout_0003ba2c)(param_1,param_2,param_3)" (parenthesized_expression "(*(code *)PTR_hex2stdout_0003ba2c)" (( "(") (pointer_expression "*(code *)PTR_hex2stdout_0003ba2c" (* "*") (cast_expression "(code *)PTR_hex2stdout_0003ba2c" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR_hex2stdout_0003ba2c"))) () ")")) (argument_list "(param_1,param_2,param_3)" (( "(") (identifier "param_1") (, ",") (identifier "param_2") (, ",") (identifier "param_3") () ")"))) (; ";")) (return_statement "return;" (return "return") (; ";")) (} "}")))
(translation_unit (function_definition type: (primitive_type) declarator: (function_declarator declarator: (identifier) parameters: (parameter_list (parameter_declaration type: (primitive_type) declarator: (identifier)) (parameter_declaration type: (primitive_type) declarator: (identifier)) (parameter_declaration type: (primitive_type) declarator: (identifier)))) body: (compound_statement (declaration type: (type_identifier) declarator: (identifier)) (declaration type: (primitive_type) declarator: (identifier)) (declaration type: (type_identifier) declarator: (pointer_declarator declarator: (identifier))) (declaration type: (type_identifier) declarator: (pointer_declarator declarator: (identifier))) (declaration type: (type_identifier) declarator: (pointer_declarator declarator: (identifier))) (declaration type: (type_identifier) declarator: (pointer_declarator 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: (pointer_declarator declarator: (identifier))) (expression_statement (assignment_expression left: (identifier) right: (identifier))) (expression_statement (assignment_expression left: (identifier) right: (identifier))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))) consequence: (compound_statement (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: (number_literal)))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))) consequence: (compound_statement (expression_statement (call_expression function: (parenthesized_expression (pointer_expression argument: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (identifier)))) arguments: (argument_list (binary_expression left: (identifier) right: (number_literal))))) (return_statement))) (expression_statement (assignment_expression left: (identifier) right: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal)))))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))) consequence: (compound_statement (return_statement))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))) consequence: (compound_statement (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: (identifier) right: (number_literal))) (do_statement body: (compound_statement (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))) consequence: (compound_statement (expression_statement (call_expression function: (parenthesized_expression (pointer_expression argument: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (identifier)))) arguments: (argument_list (identifier) (number_literal) (number_literal))))) alternative: (else_clause (compound_statement (expression_statement (call_expression function: (parenthesized_expression (pointer_expression argument: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (identifier)))) arguments: (argument_list (number_literal) (identifier) (binary_expression left: (pointer_expression argument: (identifier)) right: (number_literal))))) (if_statement condition: (parenthesized_expression (binary_expression left: (subscript_expression argument: (identifier) index: (number_literal)) right: (number_literal))) consequence: (compound_statement (expression_statement (call_expression function: (parenthesized_expression (pointer_expression argument: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (identifier)))) arguments: (argument_list (number_literal))))) alternative: (else_clause (compound_statement (expression_statement (call_expression function: (parenthesized_expression (pointer_expression argument: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (identifier)))) arguments: (argument_list (number_literal) (binary_expression left: (identifier) right: (number_literal)))))))) (if_statement condition: (parenthesized_expression (binary_expression left: (parenthesized_expression (binary_expression left: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))) right: (parenthesized_expression (binary_expression left: (parenthesized_expression (binary_expression left: (pointer_expression argument: (identifier)) right: (number_literal))) right: (number_literal))))) right: (parenthesized_expression (binary_expression left: (subscript_expression argument: (identifier) index: (number_literal)) right: (number_literal))))) consequence: (compound_statement (expression_statement (call_expression function: (parenthesized_expression (pointer_expression argument: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (identifier)))) arguments: (argument_list (identifier)))) (expression_statement (assignment_expression left: (identifier) right: (subscript_expression argument: (identifier) index: (number_literal))))) alternative: (else_clause (compound_statement (expression_statement (assignment_expression left: (identifier) right: (subscript_expression argument: (identifier) index: (number_literal))))))) (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 (number_literal) (binary_expression left: (identifier) right: (number_literal)) (binary_expression left: (identifier) right: (number_literal)) (pointer_expression argument: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (binary_expression left: (identifier) right: (binary_expression left: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))) right: (number_literal))) right: (number_literal))))))))))) (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (identifier) right: (number_literal)))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (identifier))) consequence: (compound_statement (return_statement))) (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (identifier) right: (number_literal)))) (expression_statement (assignment_expression left: (identifier) right: (unary_expression argument: (identifier)))) (expression_statement (assignment_expression left: (identifier) right: (identifier)))) condition: (parenthesized_expression (binary_expression left: (identifier) right: (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 (binary_expression left: (identifier) right: (number_literal)) (number_literal) (binary_expression left: (identifier) right: (identifier))))) (return_statement))) (expression_statement (assignment_expression left: (identifier) right: (number_literal))))) (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) (identifier) (identifier)))) (return_statement))))

void MASKED(int param_1,int param_2,int param_3)

{
  byte bVar1;
  int iVar2;
  undefined *puVar3;
  undefined *puVar4;
  undefined *puVar5;
  byte *pbVar6;
  int iVar7;
  int iVar8;
  int iVar9;
  undefined *puVar10;
  
  puVar4 = PTR_LAB_0003b948;
  puVar3 = PTR_DAT_0003b938;
  if (param_3 != 1) {
    if (param_3 < 3) {
      iVar9 = param_2 + -4;
      if (param_2 < 4) {
        (*(code *)PTR_pr2serr_0003ba44)(PTR_LAB_0003b948 + 0x2914);
        return;
      }
      pbVar6 = (byte *)(param_1 + 4);
      if (iVar9 < 1) {
        return;
      }
      if (iVar9 < 4) {
        iVar2 = 0;
      }
      else {
        puVar10 = PTR_LAB_0003b948 + 0x2984;
        puVar5 = PTR_LAB_0003b948 + 0x29b8;
        iVar8 = 4;
        do {
          if (param_3 == 2) {
            (*(code *)PTR_hex2stdout_0003ba2c)(pbVar6,4,1);
          }
          else {
            (*(code *)PTR___printf_chk_0003b9d8)(1,puVar10,*pbVar6 & 0x3f);
            if (pbVar6[1] == 0) {
              (*(code *)PTR_putchar_0003b9f0)(10);
            }
            else {
              (*(code *)PTR___printf_chk_0003b9d8)(1,puVar4 + 0x29a0);
            }
            if (((iVar8 == 4) && ((*pbVar6 & 0x3f) == 0x3f)) && (pbVar6[1] == 0xff)) {
              (*(code *)PTR_puts_0003ba28)(puVar5);
              bVar1 = pbVar6[2];
            }
            else {
              bVar1 = pbVar6[2];
            }
            (*(code *)PTR___printf_chk_0003b9d8)
                      (1,puVar4 + 0x29f8,bVar1 >> 7,
                       *(undefined4 *)(puVar3 + (bVar1 & 3) * 4 + -0x513c));
          }
          pbVar6 = pbVar6 + 4;
          if (iVar9 <= iVar8) {
            return;
          }
          iVar7 = iVar8 + 4;
          iVar2 = -iVar8;
          iVar8 = iVar7;
        } while (iVar7 <= iVar9);
      }
      (*(code *)PTR_pr2serr_0003ba44)(PTR_LAB_0003b948 + 0x2944,4,iVar9 + iVar2);
      return;
    }
    param_3 = -1;
  }
  (*(code *)PTR_hex2stdout_0003ba2c)(param_1,param_2,param_3);
  return;
}

