
/* DWARF original prototype: int read_token(FILE_and_pos_t * ft, token_t tok, FILE_and_pos_t * ft)
    */

int read_token(FILE_and_pos_t *ft,token_t tok,FILE_and_pos_t *ft_1)

{
  undefined *puVar1;
  byte *pbVar2;
  uint uVar3;
  uint uVar4;
  FILE *pFVar5;
  uint uVar6;
  uint uVar7;
  bool bVar8;
  uint uVar9;
  
  puVar1 = PTR_option_mask32_0012a334;
  uVar9 = (uint)ft_1 | 0x200;
  do {
    do {
      if ((uVar9 & 0x800) != 0) {
        return uVar9;
      }
      pFVar5 = ft->ft_fp;
      pbVar2 = (byte *)pFVar5->_IO_read_ptr;
      if (pbVar2 < pFVar5->_IO_read_end) {
        pFVar5->_IO_read_ptr = (char *)(pbVar2 + 1);
        uVar3 = (uint)*pbVar2;
        uVar4 = uVar3;
LAB_000d21d0:
        uVar6 = *(uint *)(tok + 4);
        uVar4 = uVar4 - 9 & 0xff;
        uVar7 = uVar6 + 1;
        *(uint *)(tok + 4) = uVar7;
        *(uint *)tok = (uint)(uVar7 < uVar6) + *(int *)tok;
        bVar8 = uVar4 == 0x17 || uVar4 < 5;
        uVar4 = *(uint *)puVar1;
        uVar9 = uVar9 | uVar3 & 0xc00;
        if (uVar3 == 10) {
          uVar9 = uVar9 | 0x800;
        }
        else if (((uVar4 & 8) != 0) && (uVar3 - 0x41 < 0x1a)) {
          uVar3 = uVar3 + 0x20;
        }
      }
      else {
        uVar3 = (*(code *)PTR___uflow_0012adec)();
        uVar4 = uVar3 & 0xff;
        if (uVar3 != 0xffffffff) goto LAB_000d21d0;
        uVar4 = *(uint *)puVar1;
        uVar9 = uVar9 | 0xc00;
        bVar8 = true;
      }
    } while (((uVar4 & 0x2000) != 0) && (bVar8));
    uVar3 = uVar3 & 0x1ff;
    if ((uVar4 & 2) == 0) goto LAB_000d224c;
    if ((uVar9 & 0x1000) == 0) {
      if (bVar8) {
        uVar3 = 0x1020;
      }
      return uVar9 & 0xfffffc00 | uVar3;
    }
  } while (bVar8);
  uVar9 = uVar9 & 0xffffefff;
LAB_000d224c:
  return uVar9 & 0xfffffc00 | uVar3;
}



uint FUN_000d2150(int *param_1,int *param_2,uint param_3)

{
  undefined *puVar1;
  byte *pbVar2;
  uint uVar3;
  uint uVar4;
  int iVar5;
  uint uVar6;
  uint uVar7;
  bool bVar8;
  
  puVar1 = PTR_DAT_0012a334;
  param_3 = param_3 | 0x200;
  do {
    do {
      if ((param_3 & 0x800) != 0) {
        return param_3;
      }
      iVar5 = *param_1;
      pbVar2 = *(byte **)(iVar5 + 4);
      if (pbVar2 < *(byte **)(iVar5 + 8)) {
        *(byte **)(iVar5 + 4) = pbVar2 + 1;
        uVar3 = (uint)*pbVar2;
        uVar4 = uVar3;
LAB_000d21d0:
        uVar6 = param_2[1];
        uVar4 = uVar4 - 9 & 0xff;
        uVar7 = uVar6 + 1;
        param_2[1] = uVar7;
        *param_2 = (uint)(uVar7 < uVar6) + *param_2;
        bVar8 = uVar4 == 0x17 || uVar4 < 5;
        uVar4 = *(uint *)puVar1;
        param_3 = param_3 | uVar3 & 0xc00;
        if (uVar3 == 10) {
          param_3 = param_3 | 0x800;
        }
        else if (((uVar4 & 8) != 0) && (uVar3 - 0x41 < 0x1a)) {
          uVar3 = uVar3 + 0x20;
        }
      }
      else {
        uVar3 = (*(code *)PTR___uflow_0012adec)();
        uVar4 = uVar3 & 0xff;
        if (uVar3 != 0xffffffff) goto LAB_000d21d0;
        uVar4 = *(uint *)puVar1;
        param_3 = param_3 | 0xc00;
        bVar8 = true;
      }
    } while (((uVar4 & 0x2000) != 0) && (bVar8));
    uVar3 = uVar3 & 0x1ff;
    if ((uVar4 & 2) == 0) goto LAB_000d224c;
    if ((param_3 & 0x1000) == 0) {
      if (bVar8) {
        uVar3 = 0x1020;
      }
      return param_3 & 0xfffffc00 | uVar3;
    }
  } while (bVar8);
  param_3 = param_3 & 0xffffefff;
LAB_000d224c:
  return param_3 & 0xfffffc00 | uVar3;
}


lui gp,0x6
addiu gp,gp,0x0
addu gp,gp,t9
addiu sp,sp,-0x38
sw s2,0x20(sp)
sw s6,0x30(sp)
li s6,0x17
sw s5,0x2c(sp)
li s5,0xa
sw s3,0x24(sp)
li s3,-0x1
sw s4,0x28(sp)
or s4,a0,zero
sw s1,0x1c(sp)
or s1,a1,zero
sw s0,0x18(sp)
ori s0,a2,0x200
sw gp,0x10(sp)
sw ra,0x34(sp)
lw s2,-0x7e1c(gp)
andi v0,s0,0x800
bne v0,zero,0x000d225c
_lw ra,0x34(sp)
lw a0,0x0(s4)
lw v0,0x4(a0)
lw v1,0x8(a0)
sltu v1,v0,v1
beq v1,zero,0x000d22cc
_addiu v1,v0,0x1
sw v1,0x4(a0)
lbu v1,0x0(v0)
or v0,v1,zero
lw a0,0x4(s1)
addiu v1,v1,-0x9
lw a2,0x0(s1)
andi v1,v1,0xff
addiu a1,a0,0x1
sltu a0,a1,a0
sw a1,0x4(s1)
addu a0,a0,a2
beq v1,s6,0x000d22c0
_sw a0,0x0(s1)
sltiu v1,v1,0x5
or a1,v1,zero
andi a2,v0,0xc00
lw a0,0x0(s2)
bne v0,s5,0x000d2284
_or s0,s0,a2
ori s0,s0,0x800
andi a2,a0,0x2000
beq a2,zero,0x000d2228
_nop
bne a1,zero,0x000d21a0
_nop
andi a0,a0,0x2
beq a0,zero,0x000d224c
_andi v0,v0,0x1ff
andi a0,s0,0x1000
beq a0,zero,0x000d22ac
_li a2,-0x400
bne a1,zero,0x000d21a0
_li v1,-0x1001
and s0,s0,v1
li a2,-0x400
and s0,s0,a2
or s0,s0,v0
lw ra,0x34(sp)
or v0,s0,zero
lw s6,0x30(sp)
lw s5,0x2c(sp)
lw s4,0x28(sp)
lw s3,0x24(sp)
lw s2,0x20(sp)
lw s1,0x1c(sp)
lw s0,0x18(sp)
jr ra
_addiu sp,sp,0x38
andi a2,a0,0x8
beq a2,zero,0x000d2214
_addiu a2,v0,-0x41
sltiu a2,a2,0x1a
beq a2,zero,0x000d2214
_andi a2,a0,0x2000
beq a2,zero,0x000d2228
_addiu v0,v0,0x20
b 0x000d2220
_nop
li a0,0x1020
movn v0,a0,v1
and s0,s0,a2
b 0x000d2258
_or s0,s0,v0
li v1,0x1
b 0x000d2200
_li a1,0x1
lw t9,-0x7364(gp)
jalr t9
_nop
lw gp,0x10(sp)
bne v0,s3,0x000d21d0
_andi v1,v0,0xff
lw a0,0x0(s2)
ori s0,s0,0xc00
li v1,0x1
andi a2,a0,0x2000
beq a2,zero,0x000d2228
_li a1,0x1
b 0x000d2220
_nop
(translation_unit "uint FUN_000d2150(int *param_1,int *param_2,uint param_3)\n\n{\n  undefined *puVar1;\n  byte *pbVar2;\n  uint uVar3;\n  uint uVar4;\n  int iVar5;\n  uint uVar6;\n  uint uVar7;\n  bool bVar8;\n  \n  puVar1 = PTR_DAT_0012a334;\n  param_3 = param_3 | 0x200;\n  do {\n    do {\n      if ((param_3 & 0x800) != 0) {\n        return param_3;\n      }\n      iVar5 = *param_1;\n      pbVar2 = *(byte **)(iVar5 + 4);\n      if (pbVar2 < *(byte **)(iVar5 + 8)) {\n        *(byte **)(iVar5 + 4) = pbVar2 + 1;\n        uVar3 = (uint)*pbVar2;\n        uVar4 = uVar3;\nLAB_000d21d0:\n        uVar6 = param_2[1];\n        uVar4 = uVar4 - 9 & 0xff;\n        uVar7 = uVar6 + 1;\n        param_2[1] = uVar7;\n        *param_2 = (uint)(uVar7 < uVar6) + *param_2;\n        bVar8 = uVar4 == 0x17 || uVar4 < 5;\n        uVar4 = *(uint *)puVar1;\n        param_3 = param_3 | uVar3 & 0xc00;\n        if (uVar3 == 10) {\n          param_3 = param_3 | 0x800;\n        }\n        else if (((uVar4 & 8) != 0) && (uVar3 - 0x41 < 0x1a)) {\n          uVar3 = uVar3 + 0x20;\n        }\n      }\n      else {\n        uVar3 = (*(code *)PTR___uflow_0012adec)();\n        uVar4 = uVar3 & 0xff;\n        if (uVar3 != 0xffffffff) goto LAB_000d21d0;\n        uVar4 = *(uint *)puVar1;\n        param_3 = param_3 | 0xc00;\n        bVar8 = true;\n      }\n    } while (((uVar4 & 0x2000) != 0) && (bVar8));\n    uVar3 = uVar3 & 0x1ff;\n    if ((uVar4 & 2) == 0) goto LAB_000d224c;\n    if ((param_3 & 0x1000) == 0) {\n      if (bVar8) {\n        uVar3 = 0x1020;\n      }\n      return param_3 & 0xfffffc00 | uVar3;\n    }\n  } while (bVar8);\n  param_3 = param_3 & 0xffffefff;\nLAB_000d224c:\n  return param_3 & 0xfffffc00 | uVar3;\n}\n\n" (function_definition "uint FUN_000d2150(int *param_1,int *param_2,uint param_3)\n\n{\n  undefined *puVar1;\n  byte *pbVar2;\n  uint uVar3;\n  uint uVar4;\n  int iVar5;\n  uint uVar6;\n  uint uVar7;\n  bool bVar8;\n  \n  puVar1 = PTR_DAT_0012a334;\n  param_3 = param_3 | 0x200;\n  do {\n    do {\n      if ((param_3 & 0x800) != 0) {\n        return param_3;\n      }\n      iVar5 = *param_1;\n      pbVar2 = *(byte **)(iVar5 + 4);\n      if (pbVar2 < *(byte **)(iVar5 + 8)) {\n        *(byte **)(iVar5 + 4) = pbVar2 + 1;\n        uVar3 = (uint)*pbVar2;\n        uVar4 = uVar3;\nLAB_000d21d0:\n        uVar6 = param_2[1];\n        uVar4 = uVar4 - 9 & 0xff;\n        uVar7 = uVar6 + 1;\n        param_2[1] = uVar7;\n        *param_2 = (uint)(uVar7 < uVar6) + *param_2;\n        bVar8 = uVar4 == 0x17 || uVar4 < 5;\n        uVar4 = *(uint *)puVar1;\n        param_3 = param_3 | uVar3 & 0xc00;\n        if (uVar3 == 10) {\n          param_3 = param_3 | 0x800;\n        }\n        else if (((uVar4 & 8) != 0) && (uVar3 - 0x41 < 0x1a)) {\n          uVar3 = uVar3 + 0x20;\n        }\n      }\n      else {\n        uVar3 = (*(code *)PTR___uflow_0012adec)();\n        uVar4 = uVar3 & 0xff;\n        if (uVar3 != 0xffffffff) goto LAB_000d21d0;\n        uVar4 = *(uint *)puVar1;\n        param_3 = param_3 | 0xc00;\n        bVar8 = true;\n      }\n    } while (((uVar4 & 0x2000) != 0) && (bVar8));\n    uVar3 = uVar3 & 0x1ff;\n    if ((uVar4 & 2) == 0) goto LAB_000d224c;\n    if ((param_3 & 0x1000) == 0) {\n      if (bVar8) {\n        uVar3 = 0x1020;\n      }\n      return param_3 & 0xfffffc00 | uVar3;\n    }\n  } while (bVar8);\n  param_3 = param_3 & 0xffffefff;\nLAB_000d224c:\n  return param_3 & 0xfffffc00 | uVar3;\n}" type_identifier (function_declarator "FUN_000d2150(int *param_1,int *param_2,uint param_3)" identifier (parameter_list "(int *param_1,int *param_2,uint param_3)" ( (parameter_declaration "int *param_1" primitive_type (pointer_declarator "*param_1" * identifier)) , (parameter_declaration "int *param_2" primitive_type (pointer_declarator "*param_2" * identifier)) , (parameter_declaration "uint param_3" type_identifier identifier) ))) (compound_statement "{\n  undefined *puVar1;\n  byte *pbVar2;\n  uint uVar3;\n  uint uVar4;\n  int iVar5;\n  uint uVar6;\n  uint uVar7;\n  bool bVar8;\n  \n  puVar1 = PTR_DAT_0012a334;\n  param_3 = param_3 | 0x200;\n  do {\n    do {\n      if ((param_3 & 0x800) != 0) {\n        return param_3;\n      }\n      iVar5 = *param_1;\n      pbVar2 = *(byte **)(iVar5 + 4);\n      if (pbVar2 < *(byte **)(iVar5 + 8)) {\n        *(byte **)(iVar5 + 4) = pbVar2 + 1;\n        uVar3 = (uint)*pbVar2;\n        uVar4 = uVar3;\nLAB_000d21d0:\n        uVar6 = param_2[1];\n        uVar4 = uVar4 - 9 & 0xff;\n        uVar7 = uVar6 + 1;\n        param_2[1] = uVar7;\n        *param_2 = (uint)(uVar7 < uVar6) + *param_2;\n        bVar8 = uVar4 == 0x17 || uVar4 < 5;\n        uVar4 = *(uint *)puVar1;\n        param_3 = param_3 | uVar3 & 0xc00;\n        if (uVar3 == 10) {\n          param_3 = param_3 | 0x800;\n        }\n        else if (((uVar4 & 8) != 0) && (uVar3 - 0x41 < 0x1a)) {\n          uVar3 = uVar3 + 0x20;\n        }\n      }\n      else {\n        uVar3 = (*(code *)PTR___uflow_0012adec)();\n        uVar4 = uVar3 & 0xff;\n        if (uVar3 != 0xffffffff) goto LAB_000d21d0;\n        uVar4 = *(uint *)puVar1;\n        param_3 = param_3 | 0xc00;\n        bVar8 = true;\n      }\n    } while (((uVar4 & 0x2000) != 0) && (bVar8));\n    uVar3 = uVar3 & 0x1ff;\n    if ((uVar4 & 2) == 0) goto LAB_000d224c;\n    if ((param_3 & 0x1000) == 0) {\n      if (bVar8) {\n        uVar3 = 0x1020;\n      }\n      return param_3 & 0xfffffc00 | uVar3;\n    }\n  } while (bVar8);\n  param_3 = param_3 & 0xffffefff;\nLAB_000d224c:\n  return param_3 & 0xfffffc00 | uVar3;\n}" { (declaration "undefined *puVar1;" type_identifier (pointer_declarator "*puVar1" * identifier) ;) (declaration "byte *pbVar2;" type_identifier (pointer_declarator "*pbVar2" * identifier) ;) (declaration "uint uVar3;" type_identifier identifier ;) (declaration "uint uVar4;" type_identifier identifier ;) (declaration "int iVar5;" primitive_type identifier ;) (declaration "uint uVar6;" type_identifier identifier ;) (declaration "uint uVar7;" type_identifier identifier ;) (declaration "bool bVar8;" primitive_type identifier ;) (expression_statement "puVar1 = PTR_DAT_0012a334;" (assignment_expression "puVar1 = PTR_DAT_0012a334" identifier = identifier) ;) (expression_statement "param_3 = param_3 | 0x200;" (assignment_expression "param_3 = param_3 | 0x200" identifier = (binary_expression "param_3 | 0x200" identifier | number_literal)) ;) (do_statement "do {\n    do {\n      if ((param_3 & 0x800) != 0) {\n        return param_3;\n      }\n      iVar5 = *param_1;\n      pbVar2 = *(byte **)(iVar5 + 4);\n      if (pbVar2 < *(byte **)(iVar5 + 8)) {\n        *(byte **)(iVar5 + 4) = pbVar2 + 1;\n        uVar3 = (uint)*pbVar2;\n        uVar4 = uVar3;\nLAB_000d21d0:\n        uVar6 = param_2[1];\n        uVar4 = uVar4 - 9 & 0xff;\n        uVar7 = uVar6 + 1;\n        param_2[1] = uVar7;\n        *param_2 = (uint)(uVar7 < uVar6) + *param_2;\n        bVar8 = uVar4 == 0x17 || uVar4 < 5;\n        uVar4 = *(uint *)puVar1;\n        param_3 = param_3 | uVar3 & 0xc00;\n        if (uVar3 == 10) {\n          param_3 = param_3 | 0x800;\n        }\n        else if (((uVar4 & 8) != 0) && (uVar3 - 0x41 < 0x1a)) {\n          uVar3 = uVar3 + 0x20;\n        }\n      }\n      else {\n        uVar3 = (*(code *)PTR___uflow_0012adec)();\n        uVar4 = uVar3 & 0xff;\n        if (uVar3 != 0xffffffff) goto LAB_000d21d0;\n        uVar4 = *(uint *)puVar1;\n        param_3 = param_3 | 0xc00;\n        bVar8 = true;\n      }\n    } while (((uVar4 & 0x2000) != 0) && (bVar8));\n    uVar3 = uVar3 & 0x1ff;\n    if ((uVar4 & 2) == 0) goto LAB_000d224c;\n    if ((param_3 & 0x1000) == 0) {\n      if (bVar8) {\n        uVar3 = 0x1020;\n      }\n      return param_3 & 0xfffffc00 | uVar3;\n    }\n  } while (bVar8);" do (compound_statement "{\n    do {\n      if ((param_3 & 0x800) != 0) {\n        return param_3;\n      }\n      iVar5 = *param_1;\n      pbVar2 = *(byte **)(iVar5 + 4);\n      if (pbVar2 < *(byte **)(iVar5 + 8)) {\n        *(byte **)(iVar5 + 4) = pbVar2 + 1;\n        uVar3 = (uint)*pbVar2;\n        uVar4 = uVar3;\nLAB_000d21d0:\n        uVar6 = param_2[1];\n        uVar4 = uVar4 - 9 & 0xff;\n        uVar7 = uVar6 + 1;\n        param_2[1] = uVar7;\n        *param_2 = (uint)(uVar7 < uVar6) + *param_2;\n        bVar8 = uVar4 == 0x17 || uVar4 < 5;\n        uVar4 = *(uint *)puVar1;\n        param_3 = param_3 | uVar3 & 0xc00;\n        if (uVar3 == 10) {\n          param_3 = param_3 | 0x800;\n        }\n        else if (((uVar4 & 8) != 0) && (uVar3 - 0x41 < 0x1a)) {\n          uVar3 = uVar3 + 0x20;\n        }\n      }\n      else {\n        uVar3 = (*(code *)PTR___uflow_0012adec)();\n        uVar4 = uVar3 & 0xff;\n        if (uVar3 != 0xffffffff) goto LAB_000d21d0;\n        uVar4 = *(uint *)puVar1;\n        param_3 = param_3 | 0xc00;\n        bVar8 = true;\n      }\n    } while (((uVar4 & 0x2000) != 0) && (bVar8));\n    uVar3 = uVar3 & 0x1ff;\n    if ((uVar4 & 2) == 0) goto LAB_000d224c;\n    if ((param_3 & 0x1000) == 0) {\n      if (bVar8) {\n        uVar3 = 0x1020;\n      }\n      return param_3 & 0xfffffc00 | uVar3;\n    }\n  }" { (do_statement "do {\n      if ((param_3 & 0x800) != 0) {\n        return param_3;\n      }\n      iVar5 = *param_1;\n      pbVar2 = *(byte **)(iVar5 + 4);\n      if (pbVar2 < *(byte **)(iVar5 + 8)) {\n        *(byte **)(iVar5 + 4) = pbVar2 + 1;\n        uVar3 = (uint)*pbVar2;\n        uVar4 = uVar3;\nLAB_000d21d0:\n        uVar6 = param_2[1];\n        uVar4 = uVar4 - 9 & 0xff;\n        uVar7 = uVar6 + 1;\n        param_2[1] = uVar7;\n        *param_2 = (uint)(uVar7 < uVar6) + *param_2;\n        bVar8 = uVar4 == 0x17 || uVar4 < 5;\n        uVar4 = *(uint *)puVar1;\n        param_3 = param_3 | uVar3 & 0xc00;\n        if (uVar3 == 10) {\n          param_3 = param_3 | 0x800;\n        }\n        else if (((uVar4 & 8) != 0) && (uVar3 - 0x41 < 0x1a)) {\n          uVar3 = uVar3 + 0x20;\n        }\n      }\n      else {\n        uVar3 = (*(code *)PTR___uflow_0012adec)();\n        uVar4 = uVar3 & 0xff;\n        if (uVar3 != 0xffffffff) goto LAB_000d21d0;\n        uVar4 = *(uint *)puVar1;\n        param_3 = param_3 | 0xc00;\n        bVar8 = true;\n      }\n    } while (((uVar4 & 0x2000) != 0) && (bVar8));" do (compound_statement "{\n      if ((param_3 & 0x800) != 0) {\n        return param_3;\n      }\n      iVar5 = *param_1;\n      pbVar2 = *(byte **)(iVar5 + 4);\n      if (pbVar2 < *(byte **)(iVar5 + 8)) {\n        *(byte **)(iVar5 + 4) = pbVar2 + 1;\n        uVar3 = (uint)*pbVar2;\n        uVar4 = uVar3;\nLAB_000d21d0:\n        uVar6 = param_2[1];\n        uVar4 = uVar4 - 9 & 0xff;\n        uVar7 = uVar6 + 1;\n        param_2[1] = uVar7;\n        *param_2 = (uint)(uVar7 < uVar6) + *param_2;\n        bVar8 = uVar4 == 0x17 || uVar4 < 5;\n        uVar4 = *(uint *)puVar1;\n        param_3 = param_3 | uVar3 & 0xc00;\n        if (uVar3 == 10) {\n          param_3 = param_3 | 0x800;\n        }\n        else if (((uVar4 & 8) != 0) && (uVar3 - 0x41 < 0x1a)) {\n          uVar3 = uVar3 + 0x20;\n        }\n      }\n      else {\n        uVar3 = (*(code *)PTR___uflow_0012adec)();\n        uVar4 = uVar3 & 0xff;\n        if (uVar3 != 0xffffffff) goto LAB_000d21d0;\n        uVar4 = *(uint *)puVar1;\n        param_3 = param_3 | 0xc00;\n        bVar8 = true;\n      }\n    }" { (if_statement "if ((param_3 & 0x800) != 0) {\n        return param_3;\n      }" if (parenthesized_expression "((param_3 & 0x800) != 0)" ( (binary_expression "(param_3 & 0x800) != 0" (parenthesized_expression "(param_3 & 0x800)" ( (binary_expression "param_3 & 0x800" identifier & number_literal) )) != number_literal) )) (compound_statement "{\n        return param_3;\n      }" { (return_statement "return param_3;" return identifier ;) })) (expression_statement "iVar5 = *param_1;" (assignment_expression "iVar5 = *param_1" identifier = (pointer_expression "*param_1" * identifier)) ;) (expression_statement "pbVar2 = *(byte **)(iVar5 + 4);" (assignment_expression "pbVar2 = *(byte **)(iVar5 + 4)" identifier = (pointer_expression "*(byte **)(iVar5 + 4)" * (cast_expression "(byte **)(iVar5 + 4)" ( (type_descriptor "byte **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(iVar5 + 4)" ( (binary_expression "iVar5 + 4" identifier + number_literal) ))))) ;) (if_statement "if (pbVar2 < *(byte **)(iVar5 + 8)) {\n        *(byte **)(iVar5 + 4) = pbVar2 + 1;\n        uVar3 = (uint)*pbVar2;\n        uVar4 = uVar3;\nLAB_000d21d0:\n        uVar6 = param_2[1];\n        uVar4 = uVar4 - 9 & 0xff;\n        uVar7 = uVar6 + 1;\n        param_2[1] = uVar7;\n        *param_2 = (uint)(uVar7 < uVar6) + *param_2;\n        bVar8 = uVar4 == 0x17 || uVar4 < 5;\n        uVar4 = *(uint *)puVar1;\n        param_3 = param_3 | uVar3 & 0xc00;\n        if (uVar3 == 10) {\n          param_3 = param_3 | 0x800;\n        }\n        else if (((uVar4 & 8) != 0) && (uVar3 - 0x41 < 0x1a)) {\n          uVar3 = uVar3 + 0x20;\n        }\n      }\n      else {\n        uVar3 = (*(code *)PTR___uflow_0012adec)();\n        uVar4 = uVar3 & 0xff;\n        if (uVar3 != 0xffffffff) goto LAB_000d21d0;\n        uVar4 = *(uint *)puVar1;\n        param_3 = param_3 | 0xc00;\n        bVar8 = true;\n      }" if (parenthesized_expression "(pbVar2 < *(byte **)(iVar5 + 8))" ( (binary_expression "pbVar2 < *(byte **)(iVar5 + 8)" identifier < (pointer_expression "*(byte **)(iVar5 + 8)" * (cast_expression "(byte **)(iVar5 + 8)" ( (type_descriptor "byte **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(iVar5 + 8)" ( (binary_expression "iVar5 + 8" identifier + number_literal) ))))) )) (compound_statement "{\n        *(byte **)(iVar5 + 4) = pbVar2 + 1;\n        uVar3 = (uint)*pbVar2;\n        uVar4 = uVar3;\nLAB_000d21d0:\n        uVar6 = param_2[1];\n        uVar4 = uVar4 - 9 & 0xff;\n        uVar7 = uVar6 + 1;\n        param_2[1] = uVar7;\n        *param_2 = (uint)(uVar7 < uVar6) + *param_2;\n        bVar8 = uVar4 == 0x17 || uVar4 < 5;\n        uVar4 = *(uint *)puVar1;\n        param_3 = param_3 | uVar3 & 0xc00;\n        if (uVar3 == 10) {\n          param_3 = param_3 | 0x800;\n        }\n        else if (((uVar4 & 8) != 0) && (uVar3 - 0x41 < 0x1a)) {\n          uVar3 = uVar3 + 0x20;\n        }\n      }" { (expression_statement "*(byte **)(iVar5 + 4) = pbVar2 + 1;" (assignment_expression "*(byte **)(iVar5 + 4) = pbVar2 + 1" (pointer_expression "*(byte **)(iVar5 + 4)" * (cast_expression "(byte **)(iVar5 + 4)" ( (type_descriptor "byte **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(iVar5 + 4)" ( (binary_expression "iVar5 + 4" identifier + number_literal) )))) = (binary_expression "pbVar2 + 1" identifier + number_literal)) ;) (expression_statement "uVar3 = (uint)*pbVar2;" (assignment_expression "uVar3 = (uint)*pbVar2" identifier = (binary_expression "(uint)*pbVar2" (parenthesized_expression "(uint)" ( identifier )) * identifier)) ;) (expression_statement "uVar4 = uVar3;" (assignment_expression "uVar4 = uVar3" identifier = identifier) ;) (labeled_statement "LAB_000d21d0:\n        uVar6 = param_2[1];" statement_identifier : (expression_statement "uVar6 = param_2[1];" (assignment_expression "uVar6 = param_2[1]" identifier = (subscript_expression "param_2[1]" identifier [ number_literal ])) ;)) (expression_statement "uVar4 = uVar4 - 9 & 0xff;" (assignment_expression "uVar4 = uVar4 - 9 & 0xff" identifier = (binary_expression "uVar4 - 9 & 0xff" (binary_expression "uVar4 - 9" identifier - number_literal) & number_literal)) ;) (expression_statement "uVar7 = uVar6 + 1;" (assignment_expression "uVar7 = uVar6 + 1" identifier = (binary_expression "uVar6 + 1" identifier + number_literal)) ;) (expression_statement "param_2[1] = uVar7;" (assignment_expression "param_2[1] = uVar7" (subscript_expression "param_2[1]" identifier [ number_literal ]) = identifier) ;) (expression_statement "*param_2 = (uint)(uVar7 < uVar6) + *param_2;" (assignment_expression "*param_2 = (uint)(uVar7 < uVar6) + *param_2" (pointer_expression "*param_2" * identifier) = (binary_expression "(uint)(uVar7 < uVar6) + *param_2" (call_expression "(uint)(uVar7 < uVar6)" (parenthesized_expression "(uint)" ( identifier )) (argument_list "(uVar7 < uVar6)" ( (binary_expression "uVar7 < uVar6" identifier < identifier) ))) + (pointer_expression "*param_2" * identifier))) ;) (expression_statement "bVar8 = uVar4 == 0x17 || uVar4 < 5;" (assignment_expression "bVar8 = uVar4 == 0x17 || uVar4 < 5" identifier = (binary_expression "uVar4 == 0x17 || uVar4 < 5" (binary_expression "uVar4 == 0x17" identifier == number_literal) || (binary_expression "uVar4 < 5" identifier < number_literal))) ;) (expression_statement "uVar4 = *(uint *)puVar1;" (assignment_expression "uVar4 = *(uint *)puVar1" identifier = (pointer_expression "*(uint *)puVar1" * (cast_expression "(uint *)puVar1" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier))) ;) (expression_statement "param_3 = param_3 | uVar3 & 0xc00;" (assignment_expression "param_3 = param_3 | uVar3 & 0xc00" identifier = (binary_expression "param_3 | uVar3 & 0xc00" identifier | (binary_expression "uVar3 & 0xc00" identifier & number_literal))) ;) (if_statement "if (uVar3 == 10) {\n          param_3 = param_3 | 0x800;\n        }\n        else if (((uVar4 & 8) != 0) && (uVar3 - 0x41 < 0x1a)) {\n          uVar3 = uVar3 + 0x20;\n        }" if (parenthesized_expression "(uVar3 == 10)" ( (binary_expression "uVar3 == 10" identifier == number_literal) )) (compound_statement "{\n          param_3 = param_3 | 0x800;\n        }" { (expression_statement "param_3 = param_3 | 0x800;" (assignment_expression "param_3 = param_3 | 0x800" identifier = (binary_expression "param_3 | 0x800" identifier | number_literal)) ;) }) (else_clause "else if (((uVar4 & 8) != 0) && (uVar3 - 0x41 < 0x1a)) {\n          uVar3 = uVar3 + 0x20;\n        }" else (if_statement "if (((uVar4 & 8) != 0) && (uVar3 - 0x41 < 0x1a)) {\n          uVar3 = uVar3 + 0x20;\n        }" if (parenthesized_expression "(((uVar4 & 8) != 0) && (uVar3 - 0x41 < 0x1a))" ( (binary_expression "((uVar4 & 8) != 0) && (uVar3 - 0x41 < 0x1a)" (parenthesized_expression "((uVar4 & 8) != 0)" ( (binary_expression "(uVar4 & 8) != 0" (parenthesized_expression "(uVar4 & 8)" ( (binary_expression "uVar4 & 8" identifier & number_literal) )) != number_literal) )) && (parenthesized_expression "(uVar3 - 0x41 < 0x1a)" ( (binary_expression "uVar3 - 0x41 < 0x1a" (binary_expression "uVar3 - 0x41" identifier - number_literal) < number_literal) ))) )) (compound_statement "{\n          uVar3 = uVar3 + 0x20;\n        }" { (expression_statement "uVar3 = uVar3 + 0x20;" (assignment_expression "uVar3 = uVar3 + 0x20" identifier = (binary_expression "uVar3 + 0x20" identifier + number_literal)) ;) })))) }) (else_clause "else {\n        uVar3 = (*(code *)PTR___uflow_0012adec)();\n        uVar4 = uVar3 & 0xff;\n        if (uVar3 != 0xffffffff) goto LAB_000d21d0;\n        uVar4 = *(uint *)puVar1;\n        param_3 = param_3 | 0xc00;\n        bVar8 = true;\n      }" else (compound_statement "{\n        uVar3 = (*(code *)PTR___uflow_0012adec)();\n        uVar4 = uVar3 & 0xff;\n        if (uVar3 != 0xffffffff) goto LAB_000d21d0;\n        uVar4 = *(uint *)puVar1;\n        param_3 = param_3 | 0xc00;\n        bVar8 = true;\n      }" { (expression_statement "uVar3 = (*(code *)PTR___uflow_0012adec)();" (assignment_expression "uVar3 = (*(code *)PTR___uflow_0012adec)()" identifier = (call_expression "(*(code *)PTR___uflow_0012adec)()" (parenthesized_expression "(*(code *)PTR___uflow_0012adec)" ( (pointer_expression "*(code *)PTR___uflow_0012adec" * (cast_expression "(code *)PTR___uflow_0012adec" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "()" ( )))) ;) (expression_statement "uVar4 = uVar3 & 0xff;" (assignment_expression "uVar4 = uVar3 & 0xff" identifier = (binary_expression "uVar3 & 0xff" identifier & number_literal)) ;) (if_statement "if (uVar3 != 0xffffffff) goto LAB_000d21d0;" if (parenthesized_expression "(uVar3 != 0xffffffff)" ( (binary_expression "uVar3 != 0xffffffff" identifier != number_literal) )) (goto_statement "goto LAB_000d21d0;" goto statement_identifier ;)) (expression_statement "uVar4 = *(uint *)puVar1;" (assignment_expression "uVar4 = *(uint *)puVar1" identifier = (pointer_expression "*(uint *)puVar1" * (cast_expression "(uint *)puVar1" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier))) ;) (expression_statement "param_3 = param_3 | 0xc00;" (assignment_expression "param_3 = param_3 | 0xc00" identifier = (binary_expression "param_3 | 0xc00" identifier | number_literal)) ;) (expression_statement "bVar8 = true;" (assignment_expression "bVar8 = true" identifier = true) ;) }))) }) while (parenthesized_expression "(((uVar4 & 0x2000) != 0) && (bVar8))" ( (binary_expression "((uVar4 & 0x2000) != 0) && (bVar8)" (parenthesized_expression "((uVar4 & 0x2000) != 0)" ( (binary_expression "(uVar4 & 0x2000) != 0" (parenthesized_expression "(uVar4 & 0x2000)" ( (binary_expression "uVar4 & 0x2000" identifier & number_literal) )) != number_literal) )) && (parenthesized_expression "(bVar8)" ( identifier ))) )) ;) (expression_statement "uVar3 = uVar3 & 0x1ff;" (assignment_expression "uVar3 = uVar3 & 0x1ff" identifier = (binary_expression "uVar3 & 0x1ff" identifier & number_literal)) ;) (if_statement "if ((uVar4 & 2) == 0) goto LAB_000d224c;" if (parenthesized_expression "((uVar4 & 2) == 0)" ( (binary_expression "(uVar4 & 2) == 0" (parenthesized_expression "(uVar4 & 2)" ( (binary_expression "uVar4 & 2" identifier & number_literal) )) == number_literal) )) (goto_statement "goto LAB_000d224c;" goto statement_identifier ;)) (if_statement "if ((param_3 & 0x1000) == 0) {\n      if (bVar8) {\n        uVar3 = 0x1020;\n      }\n      return param_3 & 0xfffffc00 | uVar3;\n    }" if (parenthesized_expression "((param_3 & 0x1000) == 0)" ( (binary_expression "(param_3 & 0x1000) == 0" (parenthesized_expression "(param_3 & 0x1000)" ( (binary_expression "param_3 & 0x1000" identifier & number_literal) )) == number_literal) )) (compound_statement "{\n      if (bVar8) {\n        uVar3 = 0x1020;\n      }\n      return param_3 & 0xfffffc00 | uVar3;\n    }" { (if_statement "if (bVar8) {\n        uVar3 = 0x1020;\n      }" if (parenthesized_expression "(bVar8)" ( identifier )) (compound_statement "{\n        uVar3 = 0x1020;\n      }" { (expression_statement "uVar3 = 0x1020;" (assignment_expression "uVar3 = 0x1020" identifier = number_literal) ;) })) (return_statement "return param_3 & 0xfffffc00 | uVar3;" return (binary_expression "param_3 & 0xfffffc00 | uVar3" (binary_expression "param_3 & 0xfffffc00" identifier & number_literal) | identifier) ;) })) }) while (parenthesized_expression "(bVar8)" ( identifier )) ;) (expression_statement "param_3 = param_3 & 0xffffefff;" (assignment_expression "param_3 = param_3 & 0xffffefff" identifier = (binary_expression "param_3 & 0xffffefff" identifier & number_literal)) ;) (labeled_statement "LAB_000d224c:\n  return param_3 & 0xfffffc00 | uVar3;" statement_identifier : (return_statement "return param_3 & 0xfffffc00 | uVar3;" return (binary_expression "param_3 & 0xfffffc00 | uVar3" (binary_expression "param_3 & 0xfffffc00" identifier & number_literal) | identifier) ;)) })))
(translation_unit "/* DWARF original prototype: int read_token(FILE_and_pos_t * ft, token_t tok, FILE_and_pos_t * ft)\n    */\n\nint read_token(FILE_and_pos_t *ft,token_t tok,FILE_and_pos_t *ft_1)\n\n{\n  undefined *puVar1;\n  byte *pbVar2;\n  uint uVar3;\n  uint uVar4;\n  FILE *pFVar5;\n  uint uVar6;\n  uint uVar7;\n  bool bVar8;\n  uint uVar9;\n  \n  puVar1 = PTR_option_mask32_0012a334;\n  uVar9 = (uint)ft_1 | 0x200;\n  do {\n    do {\n      if ((uVar9 & 0x800) != 0) {\n        return uVar9;\n      }\n      pFVar5 = ft->ft_fp;\n      pbVar2 = (byte *)pFVar5->_IO_read_ptr;\n      if (pbVar2 < pFVar5->_IO_read_end) {\n        pFVar5->_IO_read_ptr = (char *)(pbVar2 + 1);\n        uVar3 = (uint)*pbVar2;\n        uVar4 = uVar3;\nLAB_000d21d0:\n        uVar6 = *(uint *)(tok + 4);\n        uVar4 = uVar4 - 9 & 0xff;\n        uVar7 = uVar6 + 1;\n        *(uint *)(tok + 4) = uVar7;\n        *(uint *)tok = (uint)(uVar7 < uVar6) + *(int *)tok;\n        bVar8 = uVar4 == 0x17 || uVar4 < 5;\n        uVar4 = *(uint *)puVar1;\n        uVar9 = uVar9 | uVar3 & 0xc00;\n        if (uVar3 == 10) {\n          uVar9 = uVar9 | 0x800;\n        }\n        else if (((uVar4 & 8) != 0) && (uVar3 - 0x41 < 0x1a)) {\n          uVar3 = uVar3 + 0x20;\n        }\n      }\n      else {\n        uVar3 = (*(code *)PTR___uflow_0012adec)();\n        uVar4 = uVar3 & 0xff;\n        if (uVar3 != 0xffffffff) goto LAB_000d21d0;\n        uVar4 = *(uint *)puVar1;\n        uVar9 = uVar9 | 0xc00;\n        bVar8 = true;\n      }\n    } while (((uVar4 & 0x2000) != 0) && (bVar8));\n    uVar3 = uVar3 & 0x1ff;\n    if ((uVar4 & 2) == 0) goto LAB_000d224c;\n    if ((uVar9 & 0x1000) == 0) {\n      if (bVar8) {\n        uVar3 = 0x1020;\n      }\n      return uVar9 & 0xfffffc00 | uVar3;\n    }\n  } while (bVar8);\n  uVar9 = uVar9 & 0xffffefff;\nLAB_000d224c:\n  return uVar9 & 0xfffffc00 | uVar3;\n}\n\n" comment (function_definition "int read_token(FILE_and_pos_t *ft,token_t tok,FILE_and_pos_t *ft_1)\n\n{\n  undefined *puVar1;\n  byte *pbVar2;\n  uint uVar3;\n  uint uVar4;\n  FILE *pFVar5;\n  uint uVar6;\n  uint uVar7;\n  bool bVar8;\n  uint uVar9;\n  \n  puVar1 = PTR_option_mask32_0012a334;\n  uVar9 = (uint)ft_1 | 0x200;\n  do {\n    do {\n      if ((uVar9 & 0x800) != 0) {\n        return uVar9;\n      }\n      pFVar5 = ft->ft_fp;\n      pbVar2 = (byte *)pFVar5->_IO_read_ptr;\n      if (pbVar2 < pFVar5->_IO_read_end) {\n        pFVar5->_IO_read_ptr = (char *)(pbVar2 + 1);\n        uVar3 = (uint)*pbVar2;\n        uVar4 = uVar3;\nLAB_000d21d0:\n        uVar6 = *(uint *)(tok + 4);\n        uVar4 = uVar4 - 9 & 0xff;\n        uVar7 = uVar6 + 1;\n        *(uint *)(tok + 4) = uVar7;\n        *(uint *)tok = (uint)(uVar7 < uVar6) + *(int *)tok;\n        bVar8 = uVar4 == 0x17 || uVar4 < 5;\n        uVar4 = *(uint *)puVar1;\n        uVar9 = uVar9 | uVar3 & 0xc00;\n        if (uVar3 == 10) {\n          uVar9 = uVar9 | 0x800;\n        }\n        else if (((uVar4 & 8) != 0) && (uVar3 - 0x41 < 0x1a)) {\n          uVar3 = uVar3 + 0x20;\n        }\n      }\n      else {\n        uVar3 = (*(code *)PTR___uflow_0012adec)();\n        uVar4 = uVar3 & 0xff;\n        if (uVar3 != 0xffffffff) goto LAB_000d21d0;\n        uVar4 = *(uint *)puVar1;\n        uVar9 = uVar9 | 0xc00;\n        bVar8 = true;\n      }\n    } while (((uVar4 & 0x2000) != 0) && (bVar8));\n    uVar3 = uVar3 & 0x1ff;\n    if ((uVar4 & 2) == 0) goto LAB_000d224c;\n    if ((uVar9 & 0x1000) == 0) {\n      if (bVar8) {\n        uVar3 = 0x1020;\n      }\n      return uVar9 & 0xfffffc00 | uVar3;\n    }\n  } while (bVar8);\n  uVar9 = uVar9 & 0xffffefff;\nLAB_000d224c:\n  return uVar9 & 0xfffffc00 | uVar3;\n}" primitive_type (function_declarator "read_token(FILE_and_pos_t *ft,token_t tok,FILE_and_pos_t *ft_1)" identifier (parameter_list "(FILE_and_pos_t *ft,token_t tok,FILE_and_pos_t *ft_1)" ( (parameter_declaration "FILE_and_pos_t *ft" type_identifier (pointer_declarator "*ft" * identifier)) , (parameter_declaration "token_t tok" type_identifier identifier) , (parameter_declaration "FILE_and_pos_t *ft_1" type_identifier (pointer_declarator "*ft_1" * identifier)) ))) (compound_statement "{\n  undefined *puVar1;\n  byte *pbVar2;\n  uint uVar3;\n  uint uVar4;\n  FILE *pFVar5;\n  uint uVar6;\n  uint uVar7;\n  bool bVar8;\n  uint uVar9;\n  \n  puVar1 = PTR_option_mask32_0012a334;\n  uVar9 = (uint)ft_1 | 0x200;\n  do {\n    do {\n      if ((uVar9 & 0x800) != 0) {\n        return uVar9;\n      }\n      pFVar5 = ft->ft_fp;\n      pbVar2 = (byte *)pFVar5->_IO_read_ptr;\n      if (pbVar2 < pFVar5->_IO_read_end) {\n        pFVar5->_IO_read_ptr = (char *)(pbVar2 + 1);\n        uVar3 = (uint)*pbVar2;\n        uVar4 = uVar3;\nLAB_000d21d0:\n        uVar6 = *(uint *)(tok + 4);\n        uVar4 = uVar4 - 9 & 0xff;\n        uVar7 = uVar6 + 1;\n        *(uint *)(tok + 4) = uVar7;\n        *(uint *)tok = (uint)(uVar7 < uVar6) + *(int *)tok;\n        bVar8 = uVar4 == 0x17 || uVar4 < 5;\n        uVar4 = *(uint *)puVar1;\n        uVar9 = uVar9 | uVar3 & 0xc00;\n        if (uVar3 == 10) {\n          uVar9 = uVar9 | 0x800;\n        }\n        else if (((uVar4 & 8) != 0) && (uVar3 - 0x41 < 0x1a)) {\n          uVar3 = uVar3 + 0x20;\n        }\n      }\n      else {\n        uVar3 = (*(code *)PTR___uflow_0012adec)();\n        uVar4 = uVar3 & 0xff;\n        if (uVar3 != 0xffffffff) goto LAB_000d21d0;\n        uVar4 = *(uint *)puVar1;\n        uVar9 = uVar9 | 0xc00;\n        bVar8 = true;\n      }\n    } while (((uVar4 & 0x2000) != 0) && (bVar8));\n    uVar3 = uVar3 & 0x1ff;\n    if ((uVar4 & 2) == 0) goto LAB_000d224c;\n    if ((uVar9 & 0x1000) == 0) {\n      if (bVar8) {\n        uVar3 = 0x1020;\n      }\n      return uVar9 & 0xfffffc00 | uVar3;\n    }\n  } while (bVar8);\n  uVar9 = uVar9 & 0xffffefff;\nLAB_000d224c:\n  return uVar9 & 0xfffffc00 | uVar3;\n}" { (declaration "undefined *puVar1;" type_identifier (pointer_declarator "*puVar1" * identifier) ;) (declaration "byte *pbVar2;" type_identifier (pointer_declarator "*pbVar2" * identifier) ;) (declaration "uint uVar3;" type_identifier identifier ;) (declaration "uint uVar4;" type_identifier identifier ;) (declaration "FILE *pFVar5;" type_identifier (pointer_declarator "*pFVar5" * identifier) ;) (declaration "uint uVar6;" type_identifier identifier ;) (declaration "uint uVar7;" type_identifier identifier ;) (declaration "bool bVar8;" primitive_type identifier ;) (declaration "uint uVar9;" type_identifier identifier ;) (expression_statement "puVar1 = PTR_option_mask32_0012a334;" (assignment_expression "puVar1 = PTR_option_mask32_0012a334" identifier = identifier) ;) (expression_statement "uVar9 = (uint)ft_1 | 0x200;" (assignment_expression "uVar9 = (uint)ft_1 | 0x200" identifier = (binary_expression "(uint)ft_1 | 0x200" (cast_expression "(uint)ft_1" ( (type_descriptor "uint" type_identifier) ) identifier) | number_literal)) ;) (do_statement "do {\n    do {\n      if ((uVar9 & 0x800) != 0) {\n        return uVar9;\n      }\n      pFVar5 = ft->ft_fp;\n      pbVar2 = (byte *)pFVar5->_IO_read_ptr;\n      if (pbVar2 < pFVar5->_IO_read_end) {\n        pFVar5->_IO_read_ptr = (char *)(pbVar2 + 1);\n        uVar3 = (uint)*pbVar2;\n        uVar4 = uVar3;\nLAB_000d21d0:\n        uVar6 = *(uint *)(tok + 4);\n        uVar4 = uVar4 - 9 & 0xff;\n        uVar7 = uVar6 + 1;\n        *(uint *)(tok + 4) = uVar7;\n        *(uint *)tok = (uint)(uVar7 < uVar6) + *(int *)tok;\n        bVar8 = uVar4 == 0x17 || uVar4 < 5;\n        uVar4 = *(uint *)puVar1;\n        uVar9 = uVar9 | uVar3 & 0xc00;\n        if (uVar3 == 10) {\n          uVar9 = uVar9 | 0x800;\n        }\n        else if (((uVar4 & 8) != 0) && (uVar3 - 0x41 < 0x1a)) {\n          uVar3 = uVar3 + 0x20;\n        }\n      }\n      else {\n        uVar3 = (*(code *)PTR___uflow_0012adec)();\n        uVar4 = uVar3 & 0xff;\n        if (uVar3 != 0xffffffff) goto LAB_000d21d0;\n        uVar4 = *(uint *)puVar1;\n        uVar9 = uVar9 | 0xc00;\n        bVar8 = true;\n      }\n    } while (((uVar4 & 0x2000) != 0) && (bVar8));\n    uVar3 = uVar3 & 0x1ff;\n    if ((uVar4 & 2) == 0) goto LAB_000d224c;\n    if ((uVar9 & 0x1000) == 0) {\n      if (bVar8) {\n        uVar3 = 0x1020;\n      }\n      return uVar9 & 0xfffffc00 | uVar3;\n    }\n  } while (bVar8);" do (compound_statement "{\n    do {\n      if ((uVar9 & 0x800) != 0) {\n        return uVar9;\n      }\n      pFVar5 = ft->ft_fp;\n      pbVar2 = (byte *)pFVar5->_IO_read_ptr;\n      if (pbVar2 < pFVar5->_IO_read_end) {\n        pFVar5->_IO_read_ptr = (char *)(pbVar2 + 1);\n        uVar3 = (uint)*pbVar2;\n        uVar4 = uVar3;\nLAB_000d21d0:\n        uVar6 = *(uint *)(tok + 4);\n        uVar4 = uVar4 - 9 & 0xff;\n        uVar7 = uVar6 + 1;\n        *(uint *)(tok + 4) = uVar7;\n        *(uint *)tok = (uint)(uVar7 < uVar6) + *(int *)tok;\n        bVar8 = uVar4 == 0x17 || uVar4 < 5;\n        uVar4 = *(uint *)puVar1;\n        uVar9 = uVar9 | uVar3 & 0xc00;\n        if (uVar3 == 10) {\n          uVar9 = uVar9 | 0x800;\n        }\n        else if (((uVar4 & 8) != 0) && (uVar3 - 0x41 < 0x1a)) {\n          uVar3 = uVar3 + 0x20;\n        }\n      }\n      else {\n        uVar3 = (*(code *)PTR___uflow_0012adec)();\n        uVar4 = uVar3 & 0xff;\n        if (uVar3 != 0xffffffff) goto LAB_000d21d0;\n        uVar4 = *(uint *)puVar1;\n        uVar9 = uVar9 | 0xc00;\n        bVar8 = true;\n      }\n    } while (((uVar4 & 0x2000) != 0) && (bVar8));\n    uVar3 = uVar3 & 0x1ff;\n    if ((uVar4 & 2) == 0) goto LAB_000d224c;\n    if ((uVar9 & 0x1000) == 0) {\n      if (bVar8) {\n        uVar3 = 0x1020;\n      }\n      return uVar9 & 0xfffffc00 | uVar3;\n    }\n  }" { (do_statement "do {\n      if ((uVar9 & 0x800) != 0) {\n        return uVar9;\n      }\n      pFVar5 = ft->ft_fp;\n      pbVar2 = (byte *)pFVar5->_IO_read_ptr;\n      if (pbVar2 < pFVar5->_IO_read_end) {\n        pFVar5->_IO_read_ptr = (char *)(pbVar2 + 1);\n        uVar3 = (uint)*pbVar2;\n        uVar4 = uVar3;\nLAB_000d21d0:\n        uVar6 = *(uint *)(tok + 4);\n        uVar4 = uVar4 - 9 & 0xff;\n        uVar7 = uVar6 + 1;\n        *(uint *)(tok + 4) = uVar7;\n        *(uint *)tok = (uint)(uVar7 < uVar6) + *(int *)tok;\n        bVar8 = uVar4 == 0x17 || uVar4 < 5;\n        uVar4 = *(uint *)puVar1;\n        uVar9 = uVar9 | uVar3 & 0xc00;\n        if (uVar3 == 10) {\n          uVar9 = uVar9 | 0x800;\n        }\n        else if (((uVar4 & 8) != 0) && (uVar3 - 0x41 < 0x1a)) {\n          uVar3 = uVar3 + 0x20;\n        }\n      }\n      else {\n        uVar3 = (*(code *)PTR___uflow_0012adec)();\n        uVar4 = uVar3 & 0xff;\n        if (uVar3 != 0xffffffff) goto LAB_000d21d0;\n        uVar4 = *(uint *)puVar1;\n        uVar9 = uVar9 | 0xc00;\n        bVar8 = true;\n      }\n    } while (((uVar4 & 0x2000) != 0) && (bVar8));" do (compound_statement "{\n      if ((uVar9 & 0x800) != 0) {\n        return uVar9;\n      }\n      pFVar5 = ft->ft_fp;\n      pbVar2 = (byte *)pFVar5->_IO_read_ptr;\n      if (pbVar2 < pFVar5->_IO_read_end) {\n        pFVar5->_IO_read_ptr = (char *)(pbVar2 + 1);\n        uVar3 = (uint)*pbVar2;\n        uVar4 = uVar3;\nLAB_000d21d0:\n        uVar6 = *(uint *)(tok + 4);\n        uVar4 = uVar4 - 9 & 0xff;\n        uVar7 = uVar6 + 1;\n        *(uint *)(tok + 4) = uVar7;\n        *(uint *)tok = (uint)(uVar7 < uVar6) + *(int *)tok;\n        bVar8 = uVar4 == 0x17 || uVar4 < 5;\n        uVar4 = *(uint *)puVar1;\n        uVar9 = uVar9 | uVar3 & 0xc00;\n        if (uVar3 == 10) {\n          uVar9 = uVar9 | 0x800;\n        }\n        else if (((uVar4 & 8) != 0) && (uVar3 - 0x41 < 0x1a)) {\n          uVar3 = uVar3 + 0x20;\n        }\n      }\n      else {\n        uVar3 = (*(code *)PTR___uflow_0012adec)();\n        uVar4 = uVar3 & 0xff;\n        if (uVar3 != 0xffffffff) goto LAB_000d21d0;\n        uVar4 = *(uint *)puVar1;\n        uVar9 = uVar9 | 0xc00;\n        bVar8 = true;\n      }\n    }" { (if_statement "if ((uVar9 & 0x800) != 0) {\n        return uVar9;\n      }" if (parenthesized_expression "((uVar9 & 0x800) != 0)" ( (binary_expression "(uVar9 & 0x800) != 0" (parenthesized_expression "(uVar9 & 0x800)" ( (binary_expression "uVar9 & 0x800" identifier & number_literal) )) != number_literal) )) (compound_statement "{\n        return uVar9;\n      }" { (return_statement "return uVar9;" return identifier ;) })) (expression_statement "pFVar5 = ft->ft_fp;" (assignment_expression "pFVar5 = ft->ft_fp" identifier = (field_expression "ft->ft_fp" identifier -> field_identifier)) ;) (expression_statement "pbVar2 = (byte *)pFVar5->_IO_read_ptr;" (assignment_expression "pbVar2 = (byte *)pFVar5->_IO_read_ptr" identifier = (cast_expression "(byte *)pFVar5->_IO_read_ptr" ( (type_descriptor "byte *" type_identifier (abstract_pointer_declarator "*" *)) ) (field_expression "pFVar5->_IO_read_ptr" identifier -> field_identifier))) ;) (if_statement "if (pbVar2 < pFVar5->_IO_read_end) {\n        pFVar5->_IO_read_ptr = (char *)(pbVar2 + 1);\n        uVar3 = (uint)*pbVar2;\n        uVar4 = uVar3;\nLAB_000d21d0:\n        uVar6 = *(uint *)(tok + 4);\n        uVar4 = uVar4 - 9 & 0xff;\n        uVar7 = uVar6 + 1;\n        *(uint *)(tok + 4) = uVar7;\n        *(uint *)tok = (uint)(uVar7 < uVar6) + *(int *)tok;\n        bVar8 = uVar4 == 0x17 || uVar4 < 5;\n        uVar4 = *(uint *)puVar1;\n        uVar9 = uVar9 | uVar3 & 0xc00;\n        if (uVar3 == 10) {\n          uVar9 = uVar9 | 0x800;\n        }\n        else if (((uVar4 & 8) != 0) && (uVar3 - 0x41 < 0x1a)) {\n          uVar3 = uVar3 + 0x20;\n        }\n      }\n      else {\n        uVar3 = (*(code *)PTR___uflow_0012adec)();\n        uVar4 = uVar3 & 0xff;\n        if (uVar3 != 0xffffffff) goto LAB_000d21d0;\n        uVar4 = *(uint *)puVar1;\n        uVar9 = uVar9 | 0xc00;\n        bVar8 = true;\n      }" if (parenthesized_expression "(pbVar2 < pFVar5->_IO_read_end)" ( (binary_expression "pbVar2 < pFVar5->_IO_read_end" identifier < (field_expression "pFVar5->_IO_read_end" identifier -> field_identifier)) )) (compound_statement "{\n        pFVar5->_IO_read_ptr = (char *)(pbVar2 + 1);\n        uVar3 = (uint)*pbVar2;\n        uVar4 = uVar3;\nLAB_000d21d0:\n        uVar6 = *(uint *)(tok + 4);\n        uVar4 = uVar4 - 9 & 0xff;\n        uVar7 = uVar6 + 1;\n        *(uint *)(tok + 4) = uVar7;\n        *(uint *)tok = (uint)(uVar7 < uVar6) + *(int *)tok;\n        bVar8 = uVar4 == 0x17 || uVar4 < 5;\n        uVar4 = *(uint *)puVar1;\n        uVar9 = uVar9 | uVar3 & 0xc00;\n        if (uVar3 == 10) {\n          uVar9 = uVar9 | 0x800;\n        }\n        else if (((uVar4 & 8) != 0) && (uVar3 - 0x41 < 0x1a)) {\n          uVar3 = uVar3 + 0x20;\n        }\n      }" { (expression_statement "pFVar5->_IO_read_ptr = (char *)(pbVar2 + 1);" (assignment_expression "pFVar5->_IO_read_ptr = (char *)(pbVar2 + 1)" (field_expression "pFVar5->_IO_read_ptr" identifier -> field_identifier) = (cast_expression "(char *)(pbVar2 + 1)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(pbVar2 + 1)" ( (binary_expression "pbVar2 + 1" identifier + number_literal) )))) ;) (expression_statement "uVar3 = (uint)*pbVar2;" (assignment_expression "uVar3 = (uint)*pbVar2" identifier = (binary_expression "(uint)*pbVar2" (parenthesized_expression "(uint)" ( identifier )) * identifier)) ;) (expression_statement "uVar4 = uVar3;" (assignment_expression "uVar4 = uVar3" identifier = identifier) ;) (labeled_statement "LAB_000d21d0:\n        uVar6 = *(uint *)(tok + 4);" statement_identifier : (expression_statement "uVar6 = *(uint *)(tok + 4);" (assignment_expression "uVar6 = *(uint *)(tok + 4)" identifier = (pointer_expression "*(uint *)(tok + 4)" * (cast_expression "(uint *)(tok + 4)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(tok + 4)" ( (binary_expression "tok + 4" identifier + number_literal) ))))) ;)) (expression_statement "uVar4 = uVar4 - 9 & 0xff;" (assignment_expression "uVar4 = uVar4 - 9 & 0xff" identifier = (binary_expression "uVar4 - 9 & 0xff" (binary_expression "uVar4 - 9" identifier - number_literal) & number_literal)) ;) (expression_statement "uVar7 = uVar6 + 1;" (assignment_expression "uVar7 = uVar6 + 1" identifier = (binary_expression "uVar6 + 1" identifier + number_literal)) ;) (expression_statement "*(uint *)(tok + 4) = uVar7;" (assignment_expression "*(uint *)(tok + 4) = uVar7" (pointer_expression "*(uint *)(tok + 4)" * (cast_expression "(uint *)(tok + 4)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(tok + 4)" ( (binary_expression "tok + 4" identifier + number_literal) )))) = identifier) ;) (expression_statement "*(uint *)tok = (uint)(uVar7 < uVar6) + *(int *)tok;" (assignment_expression "*(uint *)tok = (uint)(uVar7 < uVar6) + *(int *)tok" (pointer_expression "*(uint *)tok" * (cast_expression "(uint *)tok" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) = (binary_expression "(uint)(uVar7 < uVar6) + *(int *)tok" (call_expression "(uint)(uVar7 < uVar6)" (parenthesized_expression "(uint)" ( identifier )) (argument_list "(uVar7 < uVar6)" ( (binary_expression "uVar7 < uVar6" identifier < identifier) ))) + (pointer_expression "*(int *)tok" * (cast_expression "(int *)tok" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) identifier)))) ;) (expression_statement "bVar8 = uVar4 == 0x17 || uVar4 < 5;" (assignment_expression "bVar8 = uVar4 == 0x17 || uVar4 < 5" identifier = (binary_expression "uVar4 == 0x17 || uVar4 < 5" (binary_expression "uVar4 == 0x17" identifier == number_literal) || (binary_expression "uVar4 < 5" identifier < number_literal))) ;) (expression_statement "uVar4 = *(uint *)puVar1;" (assignment_expression "uVar4 = *(uint *)puVar1" identifier = (pointer_expression "*(uint *)puVar1" * (cast_expression "(uint *)puVar1" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier))) ;) (expression_statement "uVar9 = uVar9 | uVar3 & 0xc00;" (assignment_expression "uVar9 = uVar9 | uVar3 & 0xc00" identifier = (binary_expression "uVar9 | uVar3 & 0xc00" identifier | (binary_expression "uVar3 & 0xc00" identifier & number_literal))) ;) (if_statement "if (uVar3 == 10) {\n          uVar9 = uVar9 | 0x800;\n        }\n        else if (((uVar4 & 8) != 0) && (uVar3 - 0x41 < 0x1a)) {\n          uVar3 = uVar3 + 0x20;\n        }" if (parenthesized_expression "(uVar3 == 10)" ( (binary_expression "uVar3 == 10" identifier == number_literal) )) (compound_statement "{\n          uVar9 = uVar9 | 0x800;\n        }" { (expression_statement "uVar9 = uVar9 | 0x800;" (assignment_expression "uVar9 = uVar9 | 0x800" identifier = (binary_expression "uVar9 | 0x800" identifier | number_literal)) ;) }) (else_clause "else if (((uVar4 & 8) != 0) && (uVar3 - 0x41 < 0x1a)) {\n          uVar3 = uVar3 + 0x20;\n        }" else (if_statement "if (((uVar4 & 8) != 0) && (uVar3 - 0x41 < 0x1a)) {\n          uVar3 = uVar3 + 0x20;\n        }" if (parenthesized_expression "(((uVar4 & 8) != 0) && (uVar3 - 0x41 < 0x1a))" ( (binary_expression "((uVar4 & 8) != 0) && (uVar3 - 0x41 < 0x1a)" (parenthesized_expression "((uVar4 & 8) != 0)" ( (binary_expression "(uVar4 & 8) != 0" (parenthesized_expression "(uVar4 & 8)" ( (binary_expression "uVar4 & 8" identifier & number_literal) )) != number_literal) )) && (parenthesized_expression "(uVar3 - 0x41 < 0x1a)" ( (binary_expression "uVar3 - 0x41 < 0x1a" (binary_expression "uVar3 - 0x41" identifier - number_literal) < number_literal) ))) )) (compound_statement "{\n          uVar3 = uVar3 + 0x20;\n        }" { (expression_statement "uVar3 = uVar3 + 0x20;" (assignment_expression "uVar3 = uVar3 + 0x20" identifier = (binary_expression "uVar3 + 0x20" identifier + number_literal)) ;) })))) }) (else_clause "else {\n        uVar3 = (*(code *)PTR___uflow_0012adec)();\n        uVar4 = uVar3 & 0xff;\n        if (uVar3 != 0xffffffff) goto LAB_000d21d0;\n        uVar4 = *(uint *)puVar1;\n        uVar9 = uVar9 | 0xc00;\n        bVar8 = true;\n      }" else (compound_statement "{\n        uVar3 = (*(code *)PTR___uflow_0012adec)();\n        uVar4 = uVar3 & 0xff;\n        if (uVar3 != 0xffffffff) goto LAB_000d21d0;\n        uVar4 = *(uint *)puVar1;\n        uVar9 = uVar9 | 0xc00;\n        bVar8 = true;\n      }" { (expression_statement "uVar3 = (*(code *)PTR___uflow_0012adec)();" (assignment_expression "uVar3 = (*(code *)PTR___uflow_0012adec)()" identifier = (call_expression "(*(code *)PTR___uflow_0012adec)()" (parenthesized_expression "(*(code *)PTR___uflow_0012adec)" ( (pointer_expression "*(code *)PTR___uflow_0012adec" * (cast_expression "(code *)PTR___uflow_0012adec" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "()" ( )))) ;) (expression_statement "uVar4 = uVar3 & 0xff;" (assignment_expression "uVar4 = uVar3 & 0xff" identifier = (binary_expression "uVar3 & 0xff" identifier & number_literal)) ;) (if_statement "if (uVar3 != 0xffffffff) goto LAB_000d21d0;" if (parenthesized_expression "(uVar3 != 0xffffffff)" ( (binary_expression "uVar3 != 0xffffffff" identifier != number_literal) )) (goto_statement "goto LAB_000d21d0;" goto statement_identifier ;)) (expression_statement "uVar4 = *(uint *)puVar1;" (assignment_expression "uVar4 = *(uint *)puVar1" identifier = (pointer_expression "*(uint *)puVar1" * (cast_expression "(uint *)puVar1" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier))) ;) (expression_statement "uVar9 = uVar9 | 0xc00;" (assignment_expression "uVar9 = uVar9 | 0xc00" identifier = (binary_expression "uVar9 | 0xc00" identifier | number_literal)) ;) (expression_statement "bVar8 = true;" (assignment_expression "bVar8 = true" identifier = true) ;) }))) }) while (parenthesized_expression "(((uVar4 & 0x2000) != 0) && (bVar8))" ( (binary_expression "((uVar4 & 0x2000) != 0) && (bVar8)" (parenthesized_expression "((uVar4 & 0x2000) != 0)" ( (binary_expression "(uVar4 & 0x2000) != 0" (parenthesized_expression "(uVar4 & 0x2000)" ( (binary_expression "uVar4 & 0x2000" identifier & number_literal) )) != number_literal) )) && (parenthesized_expression "(bVar8)" ( identifier ))) )) ;) (expression_statement "uVar3 = uVar3 & 0x1ff;" (assignment_expression "uVar3 = uVar3 & 0x1ff" identifier = (binary_expression "uVar3 & 0x1ff" identifier & number_literal)) ;) (if_statement "if ((uVar4 & 2) == 0) goto LAB_000d224c;" if (parenthesized_expression "((uVar4 & 2) == 0)" ( (binary_expression "(uVar4 & 2) == 0" (parenthesized_expression "(uVar4 & 2)" ( (binary_expression "uVar4 & 2" identifier & number_literal) )) == number_literal) )) (goto_statement "goto LAB_000d224c;" goto statement_identifier ;)) (if_statement "if ((uVar9 & 0x1000) == 0) {\n      if (bVar8) {\n        uVar3 = 0x1020;\n      }\n      return uVar9 & 0xfffffc00 | uVar3;\n    }" if (parenthesized_expression "((uVar9 & 0x1000) == 0)" ( (binary_expression "(uVar9 & 0x1000) == 0" (parenthesized_expression "(uVar9 & 0x1000)" ( (binary_expression "uVar9 & 0x1000" identifier & number_literal) )) == number_literal) )) (compound_statement "{\n      if (bVar8) {\n        uVar3 = 0x1020;\n      }\n      return uVar9 & 0xfffffc00 | uVar3;\n    }" { (if_statement "if (bVar8) {\n        uVar3 = 0x1020;\n      }" if (parenthesized_expression "(bVar8)" ( identifier )) (compound_statement "{\n        uVar3 = 0x1020;\n      }" { (expression_statement "uVar3 = 0x1020;" (assignment_expression "uVar3 = 0x1020" identifier = number_literal) ;) })) (return_statement "return uVar9 & 0xfffffc00 | uVar3;" return (binary_expression "uVar9 & 0xfffffc00 | uVar3" (binary_expression "uVar9 & 0xfffffc00" identifier & number_literal) | identifier) ;) })) }) while (parenthesized_expression "(bVar8)" ( identifier )) ;) (expression_statement "uVar9 = uVar9 & 0xffffefff;" (assignment_expression "uVar9 = uVar9 & 0xffffefff" identifier = (binary_expression "uVar9 & 0xffffefff" identifier & number_literal)) ;) (labeled_statement "LAB_000d224c:\n  return uVar9 & 0xfffffc00 | uVar3;" statement_identifier : (return_statement "return uVar9 & 0xfffffc00 | uVar3;" return (binary_expression "uVar9 & 0xfffffc00 | uVar3" (binary_expression "uVar9 & 0xfffffc00" identifier & number_literal) | identifier) ;)) })))
(translation_unit "uint FUN_000d2150(int *param_1,int *param_2,uint param_3)\n\n{\n  undefined *puVar1;\n  byte *pbVar2;\n  uint uVar3;\n  uint uVar4;\n  int iVar5;\n  uint uVar6;\n  uint uVar7;\n  bool bVar8;\n  \n  puVar1 = PTR_DAT_0012a334;\n  param_3 = param_3 | 0x200;\n  do {\n    do {\n      if ((param_3 & 0x800) != 0) {\n        return param_3;\n      }\n      iVar5 = *param_1;\n      pbVar2 = *(byte **)(iVar5 + 4);\n      if (pbVar2 < *(byte **)(iVar5 + 8)) {\n        *(byte **)(iVar5 + 4) = pbVar2 + 1;\n        uVar3 = (uint)*pbVar2;\n        uVar4 = uVar3;\nLAB_000d21d0:\n        uVar6 = param_2[1];\n        uVar4 = uVar4 - 9 & 0xff;\n        uVar7 = uVar6 + 1;\n        param_2[1] = uVar7;\n        *param_2 = (uint)(uVar7 < uVar6) + *param_2;\n        bVar8 = uVar4 == 0x17 || uVar4 < 5;\n        uVar4 = *(uint *)puVar1;\n        param_3 = param_3 | uVar3 & 0xc00;\n        if (uVar3 == 10) {\n          param_3 = param_3 | 0x800;\n        }\n        else if (((uVar4 & 8) != 0) && (uVar3 - 0x41 < 0x1a)) {\n          uVar3 = uVar3 + 0x20;\n        }\n      }\n      else {\n        uVar3 = (*(code *)PTR___uflow_0012adec)();\n        uVar4 = uVar3 & 0xff;\n        if (uVar3 != 0xffffffff) goto LAB_000d21d0;\n        uVar4 = *(uint *)puVar1;\n        param_3 = param_3 | 0xc00;\n        bVar8 = true;\n      }\n    } while (((uVar4 & 0x2000) != 0) && (bVar8));\n    uVar3 = uVar3 & 0x1ff;\n    if ((uVar4 & 2) == 0) goto LAB_000d224c;\n    if ((param_3 & 0x1000) == 0) {\n      if (bVar8) {\n        uVar3 = 0x1020;\n      }\n      return param_3 & 0xfffffc00 | uVar3;\n    }\n  } while (bVar8);\n  param_3 = param_3 & 0xffffefff;\nLAB_000d224c:\n  return param_3 & 0xfffffc00 | uVar3;\n}\n\n" (function_definition "uint FUN_000d2150(int *param_1,int *param_2,uint param_3)\n\n{\n  undefined *puVar1;\n  byte *pbVar2;\n  uint uVar3;\n  uint uVar4;\n  int iVar5;\n  uint uVar6;\n  uint uVar7;\n  bool bVar8;\n  \n  puVar1 = PTR_DAT_0012a334;\n  param_3 = param_3 | 0x200;\n  do {\n    do {\n      if ((param_3 & 0x800) != 0) {\n        return param_3;\n      }\n      iVar5 = *param_1;\n      pbVar2 = *(byte **)(iVar5 + 4);\n      if (pbVar2 < *(byte **)(iVar5 + 8)) {\n        *(byte **)(iVar5 + 4) = pbVar2 + 1;\n        uVar3 = (uint)*pbVar2;\n        uVar4 = uVar3;\nLAB_000d21d0:\n        uVar6 = param_2[1];\n        uVar4 = uVar4 - 9 & 0xff;\n        uVar7 = uVar6 + 1;\n        param_2[1] = uVar7;\n        *param_2 = (uint)(uVar7 < uVar6) + *param_2;\n        bVar8 = uVar4 == 0x17 || uVar4 < 5;\n        uVar4 = *(uint *)puVar1;\n        param_3 = param_3 | uVar3 & 0xc00;\n        if (uVar3 == 10) {\n          param_3 = param_3 | 0x800;\n        }\n        else if (((uVar4 & 8) != 0) && (uVar3 - 0x41 < 0x1a)) {\n          uVar3 = uVar3 + 0x20;\n        }\n      }\n      else {\n        uVar3 = (*(code *)PTR___uflow_0012adec)();\n        uVar4 = uVar3 & 0xff;\n        if (uVar3 != 0xffffffff) goto LAB_000d21d0;\n        uVar4 = *(uint *)puVar1;\n        param_3 = param_3 | 0xc00;\n        bVar8 = true;\n      }\n    } while (((uVar4 & 0x2000) != 0) && (bVar8));\n    uVar3 = uVar3 & 0x1ff;\n    if ((uVar4 & 2) == 0) goto LAB_000d224c;\n    if ((param_3 & 0x1000) == 0) {\n      if (bVar8) {\n        uVar3 = 0x1020;\n      }\n      return param_3 & 0xfffffc00 | uVar3;\n    }\n  } while (bVar8);\n  param_3 = param_3 & 0xffffefff;\nLAB_000d224c:\n  return param_3 & 0xfffffc00 | uVar3;\n}" type_identifier (function_declarator "FUN_000d2150(int *param_1,int *param_2,uint param_3)" identifier (parameter_list "(int *param_1,int *param_2,uint param_3)" ( (parameter_declaration "int *param_1" primitive_type (pointer_declarator "*param_1" * identifier)) , (parameter_declaration "int *param_2" primitive_type (pointer_declarator "*param_2" * identifier)) , (parameter_declaration "uint param_3" type_identifier identifier) ))) (compound_statement "{\n  undefined *puVar1;\n  byte *pbVar2;\n  uint uVar3;\n  uint uVar4;\n  int iVar5;\n  uint uVar6;\n  uint uVar7;\n  bool bVar8;\n  \n  puVar1 = PTR_DAT_0012a334;\n  param_3 = param_3 | 0x200;\n  do {\n    do {\n      if ((param_3 & 0x800) != 0) {\n        return param_3;\n      }\n      iVar5 = *param_1;\n      pbVar2 = *(byte **)(iVar5 + 4);\n      if (pbVar2 < *(byte **)(iVar5 + 8)) {\n        *(byte **)(iVar5 + 4) = pbVar2 + 1;\n        uVar3 = (uint)*pbVar2;\n        uVar4 = uVar3;\nLAB_000d21d0:\n        uVar6 = param_2[1];\n        uVar4 = uVar4 - 9 & 0xff;\n        uVar7 = uVar6 + 1;\n        param_2[1] = uVar7;\n        *param_2 = (uint)(uVar7 < uVar6) + *param_2;\n        bVar8 = uVar4 == 0x17 || uVar4 < 5;\n        uVar4 = *(uint *)puVar1;\n        param_3 = param_3 | uVar3 & 0xc00;\n        if (uVar3 == 10) {\n          param_3 = param_3 | 0x800;\n        }\n        else if (((uVar4 & 8) != 0) && (uVar3 - 0x41 < 0x1a)) {\n          uVar3 = uVar3 + 0x20;\n        }\n      }\n      else {\n        uVar3 = (*(code *)PTR___uflow_0012adec)();\n        uVar4 = uVar3 & 0xff;\n        if (uVar3 != 0xffffffff) goto LAB_000d21d0;\n        uVar4 = *(uint *)puVar1;\n        param_3 = param_3 | 0xc00;\n        bVar8 = true;\n      }\n    } while (((uVar4 & 0x2000) != 0) && (bVar8));\n    uVar3 = uVar3 & 0x1ff;\n    if ((uVar4 & 2) == 0) goto LAB_000d224c;\n    if ((param_3 & 0x1000) == 0) {\n      if (bVar8) {\n        uVar3 = 0x1020;\n      }\n      return param_3 & 0xfffffc00 | uVar3;\n    }\n  } while (bVar8);\n  param_3 = param_3 & 0xffffefff;\nLAB_000d224c:\n  return param_3 & 0xfffffc00 | uVar3;\n}" { (declaration "undefined *puVar1;" type_identifier (pointer_declarator "*puVar1" * identifier) ;) (declaration "byte *pbVar2;" type_identifier (pointer_declarator "*pbVar2" * identifier) ;) (declaration "uint uVar3;" type_identifier identifier ;) (declaration "uint uVar4;" type_identifier identifier ;) (declaration "int iVar5;" primitive_type identifier ;) (declaration "uint uVar6;" type_identifier identifier ;) (declaration "uint uVar7;" type_identifier identifier ;) (declaration "bool bVar8;" primitive_type identifier ;) (expression_statement "puVar1 = PTR_DAT_0012a334;" (assignment_expression "puVar1 = PTR_DAT_0012a334" identifier = identifier) ;) (expression_statement "param_3 = param_3 | 0x200;" (assignment_expression "param_3 = param_3 | 0x200" identifier = (binary_expression "param_3 | 0x200" identifier | number_literal)) ;) (do_statement "do {\n    do {\n      if ((param_3 & 0x800) != 0) {\n        return param_3;\n      }\n      iVar5 = *param_1;\n      pbVar2 = *(byte **)(iVar5 + 4);\n      if (pbVar2 < *(byte **)(iVar5 + 8)) {\n        *(byte **)(iVar5 + 4) = pbVar2 + 1;\n        uVar3 = (uint)*pbVar2;\n        uVar4 = uVar3;\nLAB_000d21d0:\n        uVar6 = param_2[1];\n        uVar4 = uVar4 - 9 & 0xff;\n        uVar7 = uVar6 + 1;\n        param_2[1] = uVar7;\n        *param_2 = (uint)(uVar7 < uVar6) + *param_2;\n        bVar8 = uVar4 == 0x17 || uVar4 < 5;\n        uVar4 = *(uint *)puVar1;\n        param_3 = param_3 | uVar3 & 0xc00;\n        if (uVar3 == 10) {\n          param_3 = param_3 | 0x800;\n        }\n        else if (((uVar4 & 8) != 0) && (uVar3 - 0x41 < 0x1a)) {\n          uVar3 = uVar3 + 0x20;\n        }\n      }\n      else {\n        uVar3 = (*(code *)PTR___uflow_0012adec)();\n        uVar4 = uVar3 & 0xff;\n        if (uVar3 != 0xffffffff) goto LAB_000d21d0;\n        uVar4 = *(uint *)puVar1;\n        param_3 = param_3 | 0xc00;\n        bVar8 = true;\n      }\n    } while (((uVar4 & 0x2000) != 0) && (bVar8));\n    uVar3 = uVar3 & 0x1ff;\n    if ((uVar4 & 2) == 0) goto LAB_000d224c;\n    if ((param_3 & 0x1000) == 0) {\n      if (bVar8) {\n        uVar3 = 0x1020;\n      }\n      return param_3 & 0xfffffc00 | uVar3;\n    }\n  } while (bVar8);" do (compound_statement "{\n    do {\n      if ((param_3 & 0x800) != 0) {\n        return param_3;\n      }\n      iVar5 = *param_1;\n      pbVar2 = *(byte **)(iVar5 + 4);\n      if (pbVar2 < *(byte **)(iVar5 + 8)) {\n        *(byte **)(iVar5 + 4) = pbVar2 + 1;\n        uVar3 = (uint)*pbVar2;\n        uVar4 = uVar3;\nLAB_000d21d0:\n        uVar6 = param_2[1];\n        uVar4 = uVar4 - 9 & 0xff;\n        uVar7 = uVar6 + 1;\n        param_2[1] = uVar7;\n        *param_2 = (uint)(uVar7 < uVar6) + *param_2;\n        bVar8 = uVar4 == 0x17 || uVar4 < 5;\n        uVar4 = *(uint *)puVar1;\n        param_3 = param_3 | uVar3 & 0xc00;\n        if (uVar3 == 10) {\n          param_3 = param_3 | 0x800;\n        }\n        else if (((uVar4 & 8) != 0) && (uVar3 - 0x41 < 0x1a)) {\n          uVar3 = uVar3 + 0x20;\n        }\n      }\n      else {\n        uVar3 = (*(code *)PTR___uflow_0012adec)();\n        uVar4 = uVar3 & 0xff;\n        if (uVar3 != 0xffffffff) goto LAB_000d21d0;\n        uVar4 = *(uint *)puVar1;\n        param_3 = param_3 | 0xc00;\n        bVar8 = true;\n      }\n    } while (((uVar4 & 0x2000) != 0) && (bVar8));\n    uVar3 = uVar3 & 0x1ff;\n    if ((uVar4 & 2) == 0) goto LAB_000d224c;\n    if ((param_3 & 0x1000) == 0) {\n      if (bVar8) {\n        uVar3 = 0x1020;\n      }\n      return param_3 & 0xfffffc00 | uVar3;\n    }\n  }" { (do_statement "do {\n      if ((param_3 & 0x800) != 0) {\n        return param_3;\n      }\n      iVar5 = *param_1;\n      pbVar2 = *(byte **)(iVar5 + 4);\n      if (pbVar2 < *(byte **)(iVar5 + 8)) {\n        *(byte **)(iVar5 + 4) = pbVar2 + 1;\n        uVar3 = (uint)*pbVar2;\n        uVar4 = uVar3;\nLAB_000d21d0:\n        uVar6 = param_2[1];\n        uVar4 = uVar4 - 9 & 0xff;\n        uVar7 = uVar6 + 1;\n        param_2[1] = uVar7;\n        *param_2 = (uint)(uVar7 < uVar6) + *param_2;\n        bVar8 = uVar4 == 0x17 || uVar4 < 5;\n        uVar4 = *(uint *)puVar1;\n        param_3 = param_3 | uVar3 & 0xc00;\n        if (uVar3 == 10) {\n          param_3 = param_3 | 0x800;\n        }\n        else if (((uVar4 & 8) != 0) && (uVar3 - 0x41 < 0x1a)) {\n          uVar3 = uVar3 + 0x20;\n        }\n      }\n      else {\n        uVar3 = (*(code *)PTR___uflow_0012adec)();\n        uVar4 = uVar3 & 0xff;\n        if (uVar3 != 0xffffffff) goto LAB_000d21d0;\n        uVar4 = *(uint *)puVar1;\n        param_3 = param_3 | 0xc00;\n        bVar8 = true;\n      }\n    } while (((uVar4 & 0x2000) != 0) && (bVar8));" do (compound_statement "{\n      if ((param_3 & 0x800) != 0) {\n        return param_3;\n      }\n      iVar5 = *param_1;\n      pbVar2 = *(byte **)(iVar5 + 4);\n      if (pbVar2 < *(byte **)(iVar5 + 8)) {\n        *(byte **)(iVar5 + 4) = pbVar2 + 1;\n        uVar3 = (uint)*pbVar2;\n        uVar4 = uVar3;\nLAB_000d21d0:\n        uVar6 = param_2[1];\n        uVar4 = uVar4 - 9 & 0xff;\n        uVar7 = uVar6 + 1;\n        param_2[1] = uVar7;\n        *param_2 = (uint)(uVar7 < uVar6) + *param_2;\n        bVar8 = uVar4 == 0x17 || uVar4 < 5;\n        uVar4 = *(uint *)puVar1;\n        param_3 = param_3 | uVar3 & 0xc00;\n        if (uVar3 == 10) {\n          param_3 = param_3 | 0x800;\n        }\n        else if (((uVar4 & 8) != 0) && (uVar3 - 0x41 < 0x1a)) {\n          uVar3 = uVar3 + 0x20;\n        }\n      }\n      else {\n        uVar3 = (*(code *)PTR___uflow_0012adec)();\n        uVar4 = uVar3 & 0xff;\n        if (uVar3 != 0xffffffff) goto LAB_000d21d0;\n        uVar4 = *(uint *)puVar1;\n        param_3 = param_3 | 0xc00;\n        bVar8 = true;\n      }\n    }" { (if_statement "if ((param_3 & 0x800) != 0) {\n        return param_3;\n      }" if (parenthesized_expression "((param_3 & 0x800) != 0)" ( (binary_expression "(param_3 & 0x800) != 0" (parenthesized_expression "(param_3 & 0x800)" ( (binary_expression "param_3 & 0x800" identifier & number_literal) )) != number_literal) )) (compound_statement "{\n        return param_3;\n      }" { (return_statement "return param_3;" return identifier ;) })) (expression_statement "iVar5 = *param_1;" (assignment_expression "iVar5 = *param_1" identifier = (pointer_expression "*param_1" * identifier)) ;) (expression_statement "pbVar2 = *(byte **)(iVar5 + 4);" (assignment_expression "pbVar2 = *(byte **)(iVar5 + 4)" identifier = (pointer_expression "*(byte **)(iVar5 + 4)" * (cast_expression "(byte **)(iVar5 + 4)" ( (type_descriptor "byte **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(iVar5 + 4)" ( (binary_expression "iVar5 + 4" identifier + number_literal) ))))) ;) (if_statement "if (pbVar2 < *(byte **)(iVar5 + 8)) {\n        *(byte **)(iVar5 + 4) = pbVar2 + 1;\n        uVar3 = (uint)*pbVar2;\n        uVar4 = uVar3;\nLAB_000d21d0:\n        uVar6 = param_2[1];\n        uVar4 = uVar4 - 9 & 0xff;\n        uVar7 = uVar6 + 1;\n        param_2[1] = uVar7;\n        *param_2 = (uint)(uVar7 < uVar6) + *param_2;\n        bVar8 = uVar4 == 0x17 || uVar4 < 5;\n        uVar4 = *(uint *)puVar1;\n        param_3 = param_3 | uVar3 & 0xc00;\n        if (uVar3 == 10) {\n          param_3 = param_3 | 0x800;\n        }\n        else if (((uVar4 & 8) != 0) && (uVar3 - 0x41 < 0x1a)) {\n          uVar3 = uVar3 + 0x20;\n        }\n      }\n      else {\n        uVar3 = (*(code *)PTR___uflow_0012adec)();\n        uVar4 = uVar3 & 0xff;\n        if (uVar3 != 0xffffffff) goto LAB_000d21d0;\n        uVar4 = *(uint *)puVar1;\n        param_3 = param_3 | 0xc00;\n        bVar8 = true;\n      }" if (parenthesized_expression "(pbVar2 < *(byte **)(iVar5 + 8))" ( (binary_expression "pbVar2 < *(byte **)(iVar5 + 8)" identifier < (pointer_expression "*(byte **)(iVar5 + 8)" * (cast_expression "(byte **)(iVar5 + 8)" ( (type_descriptor "byte **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(iVar5 + 8)" ( (binary_expression "iVar5 + 8" identifier + number_literal) ))))) )) (compound_statement "{\n        *(byte **)(iVar5 + 4) = pbVar2 + 1;\n        uVar3 = (uint)*pbVar2;\n        uVar4 = uVar3;\nLAB_000d21d0:\n        uVar6 = param_2[1];\n        uVar4 = uVar4 - 9 & 0xff;\n        uVar7 = uVar6 + 1;\n        param_2[1] = uVar7;\n        *param_2 = (uint)(uVar7 < uVar6) + *param_2;\n        bVar8 = uVar4 == 0x17 || uVar4 < 5;\n        uVar4 = *(uint *)puVar1;\n        param_3 = param_3 | uVar3 & 0xc00;\n        if (uVar3 == 10) {\n          param_3 = param_3 | 0x800;\n        }\n        else if (((uVar4 & 8) != 0) && (uVar3 - 0x41 < 0x1a)) {\n          uVar3 = uVar3 + 0x20;\n        }\n      }" { (expression_statement "*(byte **)(iVar5 + 4) = pbVar2 + 1;" (assignment_expression "*(byte **)(iVar5 + 4) = pbVar2 + 1" (pointer_expression "*(byte **)(iVar5 + 4)" * (cast_expression "(byte **)(iVar5 + 4)" ( (type_descriptor "byte **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(iVar5 + 4)" ( (binary_expression "iVar5 + 4" identifier + number_literal) )))) = (binary_expression "pbVar2 + 1" identifier + number_literal)) ;) (expression_statement "uVar3 = (uint)*pbVar2;" (assignment_expression "uVar3 = (uint)*pbVar2" identifier = (binary_expression "(uint)*pbVar2" (parenthesized_expression "(uint)" ( identifier )) * identifier)) ;) (expression_statement "uVar4 = uVar3;" (assignment_expression "uVar4 = uVar3" identifier = identifier) ;) (labeled_statement "LAB_000d21d0:\n        uVar6 = param_2[1];" statement_identifier : (expression_statement "uVar6 = param_2[1];" (assignment_expression "uVar6 = param_2[1]" identifier = (subscript_expression "param_2[1]" identifier [ number_literal ])) ;)) (expression_statement "uVar4 = uVar4 - 9 & 0xff;" (assignment_expression "uVar4 = uVar4 - 9 & 0xff" identifier = (binary_expression "uVar4 - 9 & 0xff" (binary_expression "uVar4 - 9" identifier - number_literal) & number_literal)) ;) (expression_statement "uVar7 = uVar6 + 1;" (assignment_expression "uVar7 = uVar6 + 1" identifier = (binary_expression "uVar6 + 1" identifier + number_literal)) ;) (expression_statement "param_2[1] = uVar7;" (assignment_expression "param_2[1] = uVar7" (subscript_expression "param_2[1]" identifier [ number_literal ]) = identifier) ;) (expression_statement "*param_2 = (uint)(uVar7 < uVar6) + *param_2;" (assignment_expression "*param_2 = (uint)(uVar7 < uVar6) + *param_2" (pointer_expression "*param_2" * identifier) = (binary_expression "(uint)(uVar7 < uVar6) + *param_2" (call_expression "(uint)(uVar7 < uVar6)" (parenthesized_expression "(uint)" ( identifier )) (argument_list "(uVar7 < uVar6)" ( (binary_expression "uVar7 < uVar6" identifier < identifier) ))) + (pointer_expression "*param_2" * identifier))) ;) (expression_statement "bVar8 = uVar4 == 0x17 || uVar4 < 5;" (assignment_expression "bVar8 = uVar4 == 0x17 || uVar4 < 5" identifier = (binary_expression "uVar4 == 0x17 || uVar4 < 5" (binary_expression "uVar4 == 0x17" identifier == number_literal) || (binary_expression "uVar4 < 5" identifier < number_literal))) ;) (expression_statement "uVar4 = *(uint *)puVar1;" (assignment_expression "uVar4 = *(uint *)puVar1" identifier = (pointer_expression "*(uint *)puVar1" * (cast_expression "(uint *)puVar1" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier))) ;) (expression_statement "param_3 = param_3 | uVar3 & 0xc00;" (assignment_expression "param_3 = param_3 | uVar3 & 0xc00" identifier = (binary_expression "param_3 | uVar3 & 0xc00" identifier | (binary_expression "uVar3 & 0xc00" identifier & number_literal))) ;) (if_statement "if (uVar3 == 10) {\n          param_3 = param_3 | 0x800;\n        }\n        else if (((uVar4 & 8) != 0) && (uVar3 - 0x41 < 0x1a)) {\n          uVar3 = uVar3 + 0x20;\n        }" if (parenthesized_expression "(uVar3 == 10)" ( (binary_expression "uVar3 == 10" identifier == number_literal) )) (compound_statement "{\n          param_3 = param_3 | 0x800;\n        }" { (expression_statement "param_3 = param_3 | 0x800;" (assignment_expression "param_3 = param_3 | 0x800" identifier = (binary_expression "param_3 | 0x800" identifier | number_literal)) ;) }) (else_clause "else if (((uVar4 & 8) != 0) && (uVar3 - 0x41 < 0x1a)) {\n          uVar3 = uVar3 + 0x20;\n        }" else (if_statement "if (((uVar4 & 8) != 0) && (uVar3 - 0x41 < 0x1a)) {\n          uVar3 = uVar3 + 0x20;\n        }" if (parenthesized_expression "(((uVar4 & 8) != 0) && (uVar3 - 0x41 < 0x1a))" ( (binary_expression "((uVar4 & 8) != 0) && (uVar3 - 0x41 < 0x1a)" (parenthesized_expression "((uVar4 & 8) != 0)" ( (binary_expression "(uVar4 & 8) != 0" (parenthesized_expression "(uVar4 & 8)" ( (binary_expression "uVar4 & 8" identifier & number_literal) )) != number_literal) )) && (parenthesized_expression "(uVar3 - 0x41 < 0x1a)" ( (binary_expression "uVar3 - 0x41 < 0x1a" (binary_expression "uVar3 - 0x41" identifier - number_literal) < number_literal) ))) )) (compound_statement "{\n          uVar3 = uVar3 + 0x20;\n        }" { (expression_statement "uVar3 = uVar3 + 0x20;" (assignment_expression "uVar3 = uVar3 + 0x20" identifier = (binary_expression "uVar3 + 0x20" identifier + number_literal)) ;) })))) }) (else_clause "else {\n        uVar3 = (*(code *)PTR___uflow_0012adec)();\n        uVar4 = uVar3 & 0xff;\n        if (uVar3 != 0xffffffff) goto LAB_000d21d0;\n        uVar4 = *(uint *)puVar1;\n        param_3 = param_3 | 0xc00;\n        bVar8 = true;\n      }" else (compound_statement "{\n        uVar3 = (*(code *)PTR___uflow_0012adec)();\n        uVar4 = uVar3 & 0xff;\n        if (uVar3 != 0xffffffff) goto LAB_000d21d0;\n        uVar4 = *(uint *)puVar1;\n        param_3 = param_3 | 0xc00;\n        bVar8 = true;\n      }" { (expression_statement "uVar3 = (*(code *)PTR___uflow_0012adec)();" (assignment_expression "uVar3 = (*(code *)PTR___uflow_0012adec)()" identifier = (call_expression "(*(code *)PTR___uflow_0012adec)()" (parenthesized_expression "(*(code *)PTR___uflow_0012adec)" ( (pointer_expression "*(code *)PTR___uflow_0012adec" * (cast_expression "(code *)PTR___uflow_0012adec" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "()" ( )))) ;) (expression_statement "uVar4 = uVar3 & 0xff;" (assignment_expression "uVar4 = uVar3 & 0xff" identifier = (binary_expression "uVar3 & 0xff" identifier & number_literal)) ;) (if_statement "if (uVar3 != 0xffffffff) goto LAB_000d21d0;" if (parenthesized_expression "(uVar3 != 0xffffffff)" ( (binary_expression "uVar3 != 0xffffffff" identifier != number_literal) )) (goto_statement "goto LAB_000d21d0;" goto statement_identifier ;)) (expression_statement "uVar4 = *(uint *)puVar1;" (assignment_expression "uVar4 = *(uint *)puVar1" identifier = (pointer_expression "*(uint *)puVar1" * (cast_expression "(uint *)puVar1" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier))) ;) (expression_statement "param_3 = param_3 | 0xc00;" (assignment_expression "param_3 = param_3 | 0xc00" identifier = (binary_expression "param_3 | 0xc00" identifier | number_literal)) ;) (expression_statement "bVar8 = true;" (assignment_expression "bVar8 = true" identifier = true) ;) }))) }) while (parenthesized_expression "(((uVar4 & 0x2000) != 0) && (bVar8))" ( (binary_expression "((uVar4 & 0x2000) != 0) && (bVar8)" (parenthesized_expression "((uVar4 & 0x2000) != 0)" ( (binary_expression "(uVar4 & 0x2000) != 0" (parenthesized_expression "(uVar4 & 0x2000)" ( (binary_expression "uVar4 & 0x2000" identifier & number_literal) )) != number_literal) )) && (parenthesized_expression "(bVar8)" ( identifier ))) )) ;) (expression_statement "uVar3 = uVar3 & 0x1ff;" (assignment_expression "uVar3 = uVar3 & 0x1ff" identifier = (binary_expression "uVar3 & 0x1ff" identifier & number_literal)) ;) (if_statement "if ((uVar4 & 2) == 0) goto LAB_000d224c;" if (parenthesized_expression "((uVar4 & 2) == 0)" ( (binary_expression "(uVar4 & 2) == 0" (parenthesized_expression "(uVar4 & 2)" ( (binary_expression "uVar4 & 2" identifier & number_literal) )) == number_literal) )) (goto_statement "goto LAB_000d224c;" goto statement_identifier ;)) (if_statement "if ((param_3 & 0x1000) == 0) {\n      if (bVar8) {\n        uVar3 = 0x1020;\n      }\n      return param_3 & 0xfffffc00 | uVar3;\n    }" if (parenthesized_expression "((param_3 & 0x1000) == 0)" ( (binary_expression "(param_3 & 0x1000) == 0" (parenthesized_expression "(param_3 & 0x1000)" ( (binary_expression "param_3 & 0x1000" identifier & number_literal) )) == number_literal) )) (compound_statement "{\n      if (bVar8) {\n        uVar3 = 0x1020;\n      }\n      return param_3 & 0xfffffc00 | uVar3;\n    }" { (if_statement "if (bVar8) {\n        uVar3 = 0x1020;\n      }" if (parenthesized_expression "(bVar8)" ( identifier )) (compound_statement "{\n        uVar3 = 0x1020;\n      }" { (expression_statement "uVar3 = 0x1020;" (assignment_expression "uVar3 = 0x1020" identifier = number_literal) ;) })) (return_statement "return param_3 & 0xfffffc00 | uVar3;" return (binary_expression "param_3 & 0xfffffc00 | uVar3" (binary_expression "param_3 & 0xfffffc00" identifier & number_literal) | identifier) ;) })) }) while (parenthesized_expression "(bVar8)" ( identifier )) ;) (expression_statement "param_3 = param_3 & 0xffffefff;" (assignment_expression "param_3 = param_3 & 0xffffefff" identifier = (binary_expression "param_3 & 0xffffefff" identifier & number_literal)) ;) (labeled_statement "LAB_000d224c:\n  return param_3 & 0xfffffc00 | uVar3;" statement_identifier : (return_statement "return param_3 & 0xfffffc00 | uVar3;" return (binary_expression "param_3 & 0xfffffc00 | uVar3" (binary_expression "param_3 & 0xfffffc00" identifier & number_literal) | identifier) ;)) })))
(translation_unit (function_definition TYPE (function_declarator IDENT (parameter_list ( (parameter_declaration TYPE (pointer_declarator * IDENT)) , (parameter_declaration TYPE (pointer_declarator * IDENT)) , (parameter_declaration TYPE IDENT) ))) (compound_statement { (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (expression_statement (assignment_expression IDENT = IDENT) ;) (expression_statement (assignment_expression IDENT = (binary_expression IDENT | LIT)) ;) (do_statement do (compound_statement { (do_statement do (compound_statement { (if_statement if (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression IDENT & LIT) )) != LIT) )) (compound_statement { (return_statement return IDENT ;) })) (expression_statement (assignment_expression IDENT = (pointer_expression * IDENT)) ;) (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator * (abstract_pointer_declarator *))) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT < (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator * (abstract_pointer_declarator *))) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) )) (compound_statement { (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator * (abstract_pointer_declarator *))) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) = (binary_expression IDENT + LIT)) ;) (expression_statement (assignment_expression IDENT = (binary_expression (parenthesized_expression ( IDENT )) * IDENT)) ;) (expression_statement (assignment_expression IDENT = IDENT) ;) (labeled_statement statement_identifier : (expression_statement (assignment_expression IDENT = (subscript_expression IDENT [ LIT ])) ;)) (expression_statement (assignment_expression IDENT = (binary_expression (binary_expression IDENT - LIT) & LIT)) ;) (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = IDENT) ;) (expression_statement (assignment_expression (pointer_expression * IDENT) = (binary_expression (call_expression (parenthesized_expression ( IDENT )) (argument_list ( (binary_expression IDENT < IDENT) ))) + (pointer_expression * IDENT))) ;) (expression_statement (assignment_expression IDENT = (binary_expression (binary_expression IDENT == LIT) || (binary_expression IDENT < LIT))) ;) (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT))) ;) (expression_statement (assignment_expression IDENT = (binary_expression IDENT | (binary_expression IDENT & LIT))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT == LIT) )) (compound_statement { (expression_statement (assignment_expression IDENT = (binary_expression IDENT | LIT)) ;) }) (else_clause else (if_statement if (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression IDENT & LIT) )) != LIT) )) && (parenthesized_expression ( (binary_expression (binary_expression IDENT - LIT) < LIT) ))) )) (compound_statement { (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) })))) }) (else_clause else (compound_statement { (expression_statement (assignment_expression IDENT = (call_expression (parenthesized_expression ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT)) )) (argument_list ( )))) ;) (expression_statement (assignment_expression IDENT = (binary_expression IDENT & LIT)) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT != LIT) )) (goto_statement goto statement_identifier ;)) (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT))) ;) (expression_statement (assignment_expression IDENT = (binary_expression IDENT | LIT)) ;) (expression_statement (assignment_expression IDENT = BOOL) ;) }))) }) while (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression IDENT & LIT) )) != LIT) )) && (parenthesized_expression ( IDENT ))) )) ;) (expression_statement (assignment_expression IDENT = (binary_expression IDENT & LIT)) ;) (if_statement if (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression IDENT & LIT) )) == LIT) )) (goto_statement goto statement_identifier ;)) (if_statement if (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression IDENT & LIT) )) == LIT) )) (compound_statement { (if_statement if (parenthesized_expression ( IDENT )) (compound_statement { (expression_statement (assignment_expression IDENT = LIT) ;) })) (return_statement return (binary_expression (binary_expression IDENT & LIT) | IDENT) ;) })) }) while (parenthesized_expression ( IDENT )) ;) (expression_statement (assignment_expression IDENT = (binary_expression IDENT & LIT)) ;) (labeled_statement statement_identifier : (return_statement return (binary_expression (binary_expression IDENT & LIT) | IDENT) ;)) })))
(function_definition "uint FUN_000d2150(int *param_1,int *param_2,uint param_3)\n\n{\n  undefined *puVar1;\n  byte *pbVar2;\n  uint uVar3;\n  uint uVar4;\n  int iVar5;\n  uint uVar6;\n  uint uVar7;\n  bool bVar8;\n  \n  puVar1 = PTR_DAT_0012a334;\n  param_3 = param_3 | 0x200;\n  do {\n    do {\n      if ((param_3 & 0x800) != 0) {\n        return param_3;\n      }\n      iVar5 = *param_1;\n      pbVar2 = *(byte **)(iVar5 + 4);\n      if (pbVar2 < *(byte **)(iVar5 + 8)) {\n        *(byte **)(iVar5 + 4) = pbVar2 + 1;\n        uVar3 = (uint)*pbVar2;\n        uVar4 = uVar3;\nLAB_000d21d0:\n        uVar6 = param_2[1];\n        uVar4 = uVar4 - 9 & 0xff;\n        uVar7 = uVar6 + 1;\n        param_2[1] = uVar7;\n        *param_2 = (uint)(uVar7 < uVar6) + *param_2;\n        bVar8 = uVar4 == 0x17 || uVar4 < 5;\n        uVar4 = *(uint *)puVar1;\n        param_3 = param_3 | uVar3 & 0xc00;\n        if (uVar3 == 10) {\n          param_3 = param_3 | 0x800;\n        }\n        else if (((uVar4 & 8) != 0) && (uVar3 - 0x41 < 0x1a)) {\n          uVar3 = uVar3 + 0x20;\n        }\n      }\n      else {\n        uVar3 = (*(code *)PTR___uflow_0012adec)();\n        uVar4 = uVar3 & 0xff;\n        if (uVar3 != 0xffffffff) goto LAB_000d21d0;\n        uVar4 = *(uint *)puVar1;\n        param_3 = param_3 | 0xc00;\n        bVar8 = true;\n      }\n    } while (((uVar4 & 0x2000) != 0) && (bVar8));\n    uVar3 = uVar3 & 0x1ff;\n    if ((uVar4 & 2) == 0) goto LAB_000d224c;\n    if ((param_3 & 0x1000) == 0) {\n      if (bVar8) {\n        uVar3 = 0x1020;\n      }\n      return param_3 & 0xfffffc00 | uVar3;\n    }\n  } while (bVar8);\n  param_3 = param_3 & 0xffffefff;\nLAB_000d224c:\n  return param_3 & 0xfffffc00 | uVar3;\n}" (type_identifier "uint") (function_declarator "FUN_000d2150(int *param_1,int *param_2,uint param_3)" (identifier "FUN_000d2150") (parameter_list "(int *param_1,int *param_2,uint param_3)" (( "(") (parameter_declaration "int *param_1" (primitive_type "int") (pointer_declarator "*param_1" (* "*") (identifier "param_1"))) (, ",") (parameter_declaration "int *param_2" (primitive_type "int") (pointer_declarator "*param_2" (* "*") (identifier "param_2"))) (, ",") (parameter_declaration "uint param_3" (type_identifier "uint") (identifier "param_3")) () ")"))) (compound_statement "{\n  undefined *puVar1;\n  byte *pbVar2;\n  uint uVar3;\n  uint uVar4;\n  int iVar5;\n  uint uVar6;\n  uint uVar7;\n  bool bVar8;\n  \n  puVar1 = PTR_DAT_0012a334;\n  param_3 = param_3 | 0x200;\n  do {\n    do {\n      if ((param_3 & 0x800) != 0) {\n        return param_3;\n      }\n      iVar5 = *param_1;\n      pbVar2 = *(byte **)(iVar5 + 4);\n      if (pbVar2 < *(byte **)(iVar5 + 8)) {\n        *(byte **)(iVar5 + 4) = pbVar2 + 1;\n        uVar3 = (uint)*pbVar2;\n        uVar4 = uVar3;\nLAB_000d21d0:\n        uVar6 = param_2[1];\n        uVar4 = uVar4 - 9 & 0xff;\n        uVar7 = uVar6 + 1;\n        param_2[1] = uVar7;\n        *param_2 = (uint)(uVar7 < uVar6) + *param_2;\n        bVar8 = uVar4 == 0x17 || uVar4 < 5;\n        uVar4 = *(uint *)puVar1;\n        param_3 = param_3 | uVar3 & 0xc00;\n        if (uVar3 == 10) {\n          param_3 = param_3 | 0x800;\n        }\n        else if (((uVar4 & 8) != 0) && (uVar3 - 0x41 < 0x1a)) {\n          uVar3 = uVar3 + 0x20;\n        }\n      }\n      else {\n        uVar3 = (*(code *)PTR___uflow_0012adec)();\n        uVar4 = uVar3 & 0xff;\n        if (uVar3 != 0xffffffff) goto LAB_000d21d0;\n        uVar4 = *(uint *)puVar1;\n        param_3 = param_3 | 0xc00;\n        bVar8 = true;\n      }\n    } while (((uVar4 & 0x2000) != 0) && (bVar8));\n    uVar3 = uVar3 & 0x1ff;\n    if ((uVar4 & 2) == 0) goto LAB_000d224c;\n    if ((param_3 & 0x1000) == 0) {\n      if (bVar8) {\n        uVar3 = 0x1020;\n      }\n      return param_3 & 0xfffffc00 | uVar3;\n    }\n  } while (bVar8);\n  param_3 = param_3 & 0xffffefff;\nLAB_000d224c:\n  return param_3 & 0xfffffc00 | uVar3;\n}" ({ "{") (declaration "undefined *puVar1;" (type_identifier "undefined") (pointer_declarator "*puVar1" (* "*") (identifier "puVar1")) (; ";")) (declaration "byte *pbVar2;" (type_identifier "byte") (pointer_declarator "*pbVar2" (* "*") (identifier "pbVar2")) (; ";")) (declaration "uint uVar3;" (type_identifier "uint") (identifier "uVar3") (; ";")) (declaration "uint uVar4;" (type_identifier "uint") (identifier "uVar4") (; ";")) (declaration "int iVar5;" (primitive_type "int") (identifier "iVar5") (; ";")) (declaration "uint uVar6;" (type_identifier "uint") (identifier "uVar6") (; ";")) (declaration "uint uVar7;" (type_identifier "uint") (identifier "uVar7") (; ";")) (declaration "bool bVar8;" (primitive_type "bool") (identifier "bVar8") (; ";")) (expression_statement "puVar1 = PTR_DAT_0012a334;" (assignment_expression "puVar1 = PTR_DAT_0012a334" (identifier "puVar1") (= "=") (identifier "PTR_DAT_0012a334")) (; ";")) (expression_statement "param_3 = param_3 | 0x200;" (assignment_expression "param_3 = param_3 | 0x200" (identifier "param_3") (= "=") (binary_expression "param_3 | 0x200" (identifier "param_3") (| "|") (number_literal "0x200"))) (; ";")) (do_statement "do {\n    do {\n      if ((param_3 & 0x800) != 0) {\n        return param_3;\n      }\n      iVar5 = *param_1;\n      pbVar2 = *(byte **)(iVar5 + 4);\n      if (pbVar2 < *(byte **)(iVar5 + 8)) {\n        *(byte **)(iVar5 + 4) = pbVar2 + 1;\n        uVar3 = (uint)*pbVar2;\n        uVar4 = uVar3;\nLAB_000d21d0:\n        uVar6 = param_2[1];\n        uVar4 = uVar4 - 9 & 0xff;\n        uVar7 = uVar6 + 1;\n        param_2[1] = uVar7;\n        *param_2 = (uint)(uVar7 < uVar6) + *param_2;\n        bVar8 = uVar4 == 0x17 || uVar4 < 5;\n        uVar4 = *(uint *)puVar1;\n        param_3 = param_3 | uVar3 & 0xc00;\n        if (uVar3 == 10) {\n          param_3 = param_3 | 0x800;\n        }\n        else if (((uVar4 & 8) != 0) && (uVar3 - 0x41 < 0x1a)) {\n          uVar3 = uVar3 + 0x20;\n        }\n      }\n      else {\n        uVar3 = (*(code *)PTR___uflow_0012adec)();\n        uVar4 = uVar3 & 0xff;\n        if (uVar3 != 0xffffffff) goto LAB_000d21d0;\n        uVar4 = *(uint *)puVar1;\n        param_3 = param_3 | 0xc00;\n        bVar8 = true;\n      }\n    } while (((uVar4 & 0x2000) != 0) && (bVar8));\n    uVar3 = uVar3 & 0x1ff;\n    if ((uVar4 & 2) == 0) goto LAB_000d224c;\n    if ((param_3 & 0x1000) == 0) {\n      if (bVar8) {\n        uVar3 = 0x1020;\n      }\n      return param_3 & 0xfffffc00 | uVar3;\n    }\n  } while (bVar8);" (do "do") (compound_statement "{\n    do {\n      if ((param_3 & 0x800) != 0) {\n        return param_3;\n      }\n      iVar5 = *param_1;\n      pbVar2 = *(byte **)(iVar5 + 4);\n      if (pbVar2 < *(byte **)(iVar5 + 8)) {\n        *(byte **)(iVar5 + 4) = pbVar2 + 1;\n        uVar3 = (uint)*pbVar2;\n        uVar4 = uVar3;\nLAB_000d21d0:\n        uVar6 = param_2[1];\n        uVar4 = uVar4 - 9 & 0xff;\n        uVar7 = uVar6 + 1;\n        param_2[1] = uVar7;\n        *param_2 = (uint)(uVar7 < uVar6) + *param_2;\n        bVar8 = uVar4 == 0x17 || uVar4 < 5;\n        uVar4 = *(uint *)puVar1;\n        param_3 = param_3 | uVar3 & 0xc00;\n        if (uVar3 == 10) {\n          param_3 = param_3 | 0x800;\n        }\n        else if (((uVar4 & 8) != 0) && (uVar3 - 0x41 < 0x1a)) {\n          uVar3 = uVar3 + 0x20;\n        }\n      }\n      else {\n        uVar3 = (*(code *)PTR___uflow_0012adec)();\n        uVar4 = uVar3 & 0xff;\n        if (uVar3 != 0xffffffff) goto LAB_000d21d0;\n        uVar4 = *(uint *)puVar1;\n        param_3 = param_3 | 0xc00;\n        bVar8 = true;\n      }\n    } while (((uVar4 & 0x2000) != 0) && (bVar8));\n    uVar3 = uVar3 & 0x1ff;\n    if ((uVar4 & 2) == 0) goto LAB_000d224c;\n    if ((param_3 & 0x1000) == 0) {\n      if (bVar8) {\n        uVar3 = 0x1020;\n      }\n      return param_3 & 0xfffffc00 | uVar3;\n    }\n  }" ({ "{") (do_statement "do {\n      if ((param_3 & 0x800) != 0) {\n        return param_3;\n      }\n      iVar5 = *param_1;\n      pbVar2 = *(byte **)(iVar5 + 4);\n      if (pbVar2 < *(byte **)(iVar5 + 8)) {\n        *(byte **)(iVar5 + 4) = pbVar2 + 1;\n        uVar3 = (uint)*pbVar2;\n        uVar4 = uVar3;\nLAB_000d21d0:\n        uVar6 = param_2[1];\n        uVar4 = uVar4 - 9 & 0xff;\n        uVar7 = uVar6 + 1;\n        param_2[1] = uVar7;\n        *param_2 = (uint)(uVar7 < uVar6) + *param_2;\n        bVar8 = uVar4 == 0x17 || uVar4 < 5;\n        uVar4 = *(uint *)puVar1;\n        param_3 = param_3 | uVar3 & 0xc00;\n        if (uVar3 == 10) {\n          param_3 = param_3 | 0x800;\n        }\n        else if (((uVar4 & 8) != 0) && (uVar3 - 0x41 < 0x1a)) {\n          uVar3 = uVar3 + 0x20;\n        }\n      }\n      else {\n        uVar3 = (*(code *)PTR___uflow_0012adec)();\n        uVar4 = uVar3 & 0xff;\n        if (uVar3 != 0xffffffff) goto LAB_000d21d0;\n        uVar4 = *(uint *)puVar1;\n        param_3 = param_3 | 0xc00;\n        bVar8 = true;\n      }\n    } while (((uVar4 & 0x2000) != 0) && (bVar8));" (do "do") (compound_statement "{\n      if ((param_3 & 0x800) != 0) {\n        return param_3;\n      }\n      iVar5 = *param_1;\n      pbVar2 = *(byte **)(iVar5 + 4);\n      if (pbVar2 < *(byte **)(iVar5 + 8)) {\n        *(byte **)(iVar5 + 4) = pbVar2 + 1;\n        uVar3 = (uint)*pbVar2;\n        uVar4 = uVar3;\nLAB_000d21d0:\n        uVar6 = param_2[1];\n        uVar4 = uVar4 - 9 & 0xff;\n        uVar7 = uVar6 + 1;\n        param_2[1] = uVar7;\n        *param_2 = (uint)(uVar7 < uVar6) + *param_2;\n        bVar8 = uVar4 == 0x17 || uVar4 < 5;\n        uVar4 = *(uint *)puVar1;\n        param_3 = param_3 | uVar3 & 0xc00;\n        if (uVar3 == 10) {\n          param_3 = param_3 | 0x800;\n        }\n        else if (((uVar4 & 8) != 0) && (uVar3 - 0x41 < 0x1a)) {\n          uVar3 = uVar3 + 0x20;\n        }\n      }\n      else {\n        uVar3 = (*(code *)PTR___uflow_0012adec)();\n        uVar4 = uVar3 & 0xff;\n        if (uVar3 != 0xffffffff) goto LAB_000d21d0;\n        uVar4 = *(uint *)puVar1;\n        param_3 = param_3 | 0xc00;\n        bVar8 = true;\n      }\n    }" ({ "{") (if_statement "if ((param_3 & 0x800) != 0) {\n        return param_3;\n      }" (if "if") (parenthesized_expression "((param_3 & 0x800) != 0)" (( "(") (binary_expression "(param_3 & 0x800) != 0" (parenthesized_expression "(param_3 & 0x800)" (( "(") (binary_expression "param_3 & 0x800" (identifier "param_3") (& "&") (number_literal "0x800")) () ")")) (!= "!=") (number_literal "0")) () ")")) (compound_statement "{\n        return param_3;\n      }" ({ "{") (return_statement "return param_3;" (return "return") (identifier "param_3") (; ";")) (} "}"))) (expression_statement "iVar5 = *param_1;" (assignment_expression "iVar5 = *param_1" (identifier "iVar5") (= "=") (pointer_expression "*param_1" (* "*") (identifier "param_1"))) (; ";")) (expression_statement "pbVar2 = *(byte **)(iVar5 + 4);" (assignment_expression "pbVar2 = *(byte **)(iVar5 + 4)" (identifier "pbVar2") (= "=") (pointer_expression "*(byte **)(iVar5 + 4)" (* "*") (cast_expression "(byte **)(iVar5 + 4)" (( "(") (type_descriptor "byte **" (type_identifier "byte") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (parenthesized_expression "(iVar5 + 4)" (( "(") (binary_expression "iVar5 + 4" (identifier "iVar5") (+ "+") (number_literal "4")) () ")"))))) (; ";")) (if_statement "if (pbVar2 < *(byte **)(iVar5 + 8)) {\n        *(byte **)(iVar5 + 4) = pbVar2 + 1;\n        uVar3 = (uint)*pbVar2;\n        uVar4 = uVar3;\nLAB_000d21d0:\n        uVar6 = param_2[1];\n        uVar4 = uVar4 - 9 & 0xff;\n        uVar7 = uVar6 + 1;\n        param_2[1] = uVar7;\n        *param_2 = (uint)(uVar7 < uVar6) + *param_2;\n        bVar8 = uVar4 == 0x17 || uVar4 < 5;\n        uVar4 = *(uint *)puVar1;\n        param_3 = param_3 | uVar3 & 0xc00;\n        if (uVar3 == 10) {\n          param_3 = param_3 | 0x800;\n        }\n        else if (((uVar4 & 8) != 0) && (uVar3 - 0x41 < 0x1a)) {\n          uVar3 = uVar3 + 0x20;\n        }\n      }\n      else {\n        uVar3 = (*(code *)PTR___uflow_0012adec)();\n        uVar4 = uVar3 & 0xff;\n        if (uVar3 != 0xffffffff) goto LAB_000d21d0;\n        uVar4 = *(uint *)puVar1;\n        param_3 = param_3 | 0xc00;\n        bVar8 = true;\n      }" (if "if") (parenthesized_expression "(pbVar2 < *(byte **)(iVar5 + 8))" (( "(") (binary_expression "pbVar2 < *(byte **)(iVar5 + 8)" (identifier "pbVar2") (< "<") (pointer_expression "*(byte **)(iVar5 + 8)" (* "*") (cast_expression "(byte **)(iVar5 + 8)" (( "(") (type_descriptor "byte **" (type_identifier "byte") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (parenthesized_expression "(iVar5 + 8)" (( "(") (binary_expression "iVar5 + 8" (identifier "iVar5") (+ "+") (number_literal "8")) () ")"))))) () ")")) (compound_statement "{\n        *(byte **)(iVar5 + 4) = pbVar2 + 1;\n        uVar3 = (uint)*pbVar2;\n        uVar4 = uVar3;\nLAB_000d21d0:\n        uVar6 = param_2[1];\n        uVar4 = uVar4 - 9 & 0xff;\n        uVar7 = uVar6 + 1;\n        param_2[1] = uVar7;\n        *param_2 = (uint)(uVar7 < uVar6) + *param_2;\n        bVar8 = uVar4 == 0x17 || uVar4 < 5;\n        uVar4 = *(uint *)puVar1;\n        param_3 = param_3 | uVar3 & 0xc00;\n        if (uVar3 == 10) {\n          param_3 = param_3 | 0x800;\n        }\n        else if (((uVar4 & 8) != 0) && (uVar3 - 0x41 < 0x1a)) {\n          uVar3 = uVar3 + 0x20;\n        }\n      }" ({ "{") (expression_statement "*(byte **)(iVar5 + 4) = pbVar2 + 1;" (assignment_expression "*(byte **)(iVar5 + 4) = pbVar2 + 1" (pointer_expression "*(byte **)(iVar5 + 4)" (* "*") (cast_expression "(byte **)(iVar5 + 4)" (( "(") (type_descriptor "byte **" (type_identifier "byte") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (parenthesized_expression "(iVar5 + 4)" (( "(") (binary_expression "iVar5 + 4" (identifier "iVar5") (+ "+") (number_literal "4")) () ")")))) (= "=") (binary_expression "pbVar2 + 1" (identifier "pbVar2") (+ "+") (number_literal "1"))) (; ";")) (expression_statement "uVar3 = (uint)*pbVar2;" (assignment_expression "uVar3 = (uint)*pbVar2" (identifier "uVar3") (= "=") (binary_expression "(uint)*pbVar2" (parenthesized_expression "(uint)" (( "(") (identifier "uint") () ")")) (* "*") (identifier "pbVar2"))) (; ";")) (expression_statement "uVar4 = uVar3;" (assignment_expression "uVar4 = uVar3" (identifier "uVar4") (= "=") (identifier "uVar3")) (; ";")) (labeled_statement "LAB_000d21d0:\n        uVar6 = param_2[1];" (statement_identifier "LAB_000d21d0") (: ":") (expression_statement "uVar6 = param_2[1];" (assignment_expression "uVar6 = param_2[1]" (identifier "uVar6") (= "=") (subscript_expression "param_2[1]" (identifier "param_2") ([ "[") (number_literal "1") (] "]"))) (; ";"))) (expression_statement "uVar4 = uVar4 - 9 & 0xff;" (assignment_expression "uVar4 = uVar4 - 9 & 0xff" (identifier "uVar4") (= "=") (binary_expression "uVar4 - 9 & 0xff" (binary_expression "uVar4 - 9" (identifier "uVar4") (- "-") (number_literal "9")) (& "&") (number_literal "0xff"))) (; ";")) (expression_statement "uVar7 = uVar6 + 1;" (assignment_expression "uVar7 = uVar6 + 1" (identifier "uVar7") (= "=") (binary_expression "uVar6 + 1" (identifier "uVar6") (+ "+") (number_literal "1"))) (; ";")) (expression_statement "param_2[1] = uVar7;" (assignment_expression "param_2[1] = uVar7" (subscript_expression "param_2[1]" (identifier "param_2") ([ "[") (number_literal "1") (] "]")) (= "=") (identifier "uVar7")) (; ";")) (expression_statement "*param_2 = (uint)(uVar7 < uVar6) + *param_2;" (assignment_expression "*param_2 = (uint)(uVar7 < uVar6) + *param_2" (pointer_expression "*param_2" (* "*") (identifier "param_2")) (= "=") (binary_expression "(uint)(uVar7 < uVar6) + *param_2" (call_expression "(uint)(uVar7 < uVar6)" (parenthesized_expression "(uint)" (( "(") (identifier "uint") () ")")) (argument_list "(uVar7 < uVar6)" (( "(") (binary_expression "uVar7 < uVar6" (identifier "uVar7") (< "<") (identifier "uVar6")) () ")"))) (+ "+") (pointer_expression "*param_2" (* "*") (identifier "param_2")))) (; ";")) (expression_statement "bVar8 = uVar4 == 0x17 || uVar4 < 5;" (assignment_expression "bVar8 = uVar4 == 0x17 || uVar4 < 5" (identifier "bVar8") (= "=") (binary_expression "uVar4 == 0x17 || uVar4 < 5" (binary_expression "uVar4 == 0x17" (identifier "uVar4") (== "==") (number_literal "0x17")) (|| "||") (binary_expression "uVar4 < 5" (identifier "uVar4") (< "<") (number_literal "5")))) (; ";")) (expression_statement "uVar4 = *(uint *)puVar1;" (assignment_expression "uVar4 = *(uint *)puVar1" (identifier "uVar4") (= "=") (pointer_expression "*(uint *)puVar1" (* "*") (cast_expression "(uint *)puVar1" (( "(") (type_descriptor "uint *" (type_identifier "uint") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "puVar1")))) (; ";")) (expression_statement "param_3 = param_3 | uVar3 & 0xc00;" (assignment_expression "param_3 = param_3 | uVar3 & 0xc00" (identifier "param_3") (= "=") (binary_expression "param_3 | uVar3 & 0xc00" (identifier "param_3") (| "|") (binary_expression "uVar3 & 0xc00" (identifier "uVar3") (& "&") (number_literal "0xc00")))) (; ";")) (if_statement "if (uVar3 == 10) {\n          param_3 = param_3 | 0x800;\n        }\n        else if (((uVar4 & 8) != 0) && (uVar3 - 0x41 < 0x1a)) {\n          uVar3 = uVar3 + 0x20;\n        }" (if "if") (parenthesized_expression "(uVar3 == 10)" (( "(") (binary_expression "uVar3 == 10" (identifier "uVar3") (== "==") (number_literal "10")) () ")")) (compound_statement "{\n          param_3 = param_3 | 0x800;\n        }" ({ "{") (expression_statement "param_3 = param_3 | 0x800;" (assignment_expression "param_3 = param_3 | 0x800" (identifier "param_3") (= "=") (binary_expression "param_3 | 0x800" (identifier "param_3") (| "|") (number_literal "0x800"))) (; ";")) (} "}")) (else_clause "else if (((uVar4 & 8) != 0) && (uVar3 - 0x41 < 0x1a)) {\n          uVar3 = uVar3 + 0x20;\n        }" (else "else") (if_statement "if (((uVar4 & 8) != 0) && (uVar3 - 0x41 < 0x1a)) {\n          uVar3 = uVar3 + 0x20;\n        }" (if "if") (parenthesized_expression "(((uVar4 & 8) != 0) && (uVar3 - 0x41 < 0x1a))" (( "(") (binary_expression "((uVar4 & 8) != 0) && (uVar3 - 0x41 < 0x1a)" (parenthesized_expression "((uVar4 & 8) != 0)" (( "(") (binary_expression "(uVar4 & 8) != 0" (parenthesized_expression "(uVar4 & 8)" (( "(") (binary_expression "uVar4 & 8" (identifier "uVar4") (& "&") (number_literal "8")) () ")")) (!= "!=") (number_literal "0")) () ")")) (&& "&&") (parenthesized_expression "(uVar3 - 0x41 < 0x1a)" (( "(") (binary_expression "uVar3 - 0x41 < 0x1a" (binary_expression "uVar3 - 0x41" (identifier "uVar3") (- "-") (number_literal "0x41")) (< "<") (number_literal "0x1a")) () ")"))) () ")")) (compound_statement "{\n          uVar3 = uVar3 + 0x20;\n        }" ({ "{") (expression_statement "uVar3 = uVar3 + 0x20;" (assignment_expression "uVar3 = uVar3 + 0x20" (identifier "uVar3") (= "=") (binary_expression "uVar3 + 0x20" (identifier "uVar3") (+ "+") (number_literal "0x20"))) (; ";")) (} "}"))))) (} "}")) (else_clause "else {\n        uVar3 = (*(code *)PTR___uflow_0012adec)();\n        uVar4 = uVar3 & 0xff;\n        if (uVar3 != 0xffffffff) goto LAB_000d21d0;\n        uVar4 = *(uint *)puVar1;\n        param_3 = param_3 | 0xc00;\n        bVar8 = true;\n      }" (else "else") (compound_statement "{\n        uVar3 = (*(code *)PTR___uflow_0012adec)();\n        uVar4 = uVar3 & 0xff;\n        if (uVar3 != 0xffffffff) goto LAB_000d21d0;\n        uVar4 = *(uint *)puVar1;\n        param_3 = param_3 | 0xc00;\n        bVar8 = true;\n      }" ({ "{") (expression_statement "uVar3 = (*(code *)PTR___uflow_0012adec)();" (assignment_expression "uVar3 = (*(code *)PTR___uflow_0012adec)()" (identifier "uVar3") (= "=") (call_expression "(*(code *)PTR___uflow_0012adec)()" (parenthesized_expression "(*(code *)PTR___uflow_0012adec)" (( "(") (pointer_expression "*(code *)PTR___uflow_0012adec" (* "*") (cast_expression "(code *)PTR___uflow_0012adec" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR___uflow_0012adec"))) () ")")) (argument_list "()" (( "(") () ")")))) (; ";")) (expression_statement "uVar4 = uVar3 & 0xff;" (assignment_expression "uVar4 = uVar3 & 0xff" (identifier "uVar4") (= "=") (binary_expression "uVar3 & 0xff" (identifier "uVar3") (& "&") (number_literal "0xff"))) (; ";")) (if_statement "if (uVar3 != 0xffffffff) goto LAB_000d21d0;" (if "if") (parenthesized_expression "(uVar3 != 0xffffffff)" (( "(") (binary_expression "uVar3 != 0xffffffff" (identifier "uVar3") (!= "!=") (number_literal "0xffffffff")) () ")")) (goto_statement "goto LAB_000d21d0;" (goto "goto") (statement_identifier "LAB_000d21d0") (; ";"))) (expression_statement "uVar4 = *(uint *)puVar1;" (assignment_expression "uVar4 = *(uint *)puVar1" (identifier "uVar4") (= "=") (pointer_expression "*(uint *)puVar1" (* "*") (cast_expression "(uint *)puVar1" (( "(") (type_descriptor "uint *" (type_identifier "uint") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "puVar1")))) (; ";")) (expression_statement "param_3 = param_3 | 0xc00;" (assignment_expression "param_3 = param_3 | 0xc00" (identifier "param_3") (= "=") (binary_expression "param_3 | 0xc00" (identifier "param_3") (| "|") (number_literal "0xc00"))) (; ";")) (expression_statement "bVar8 = true;" (assignment_expression "bVar8 = true" (identifier "bVar8") (= "=") (true "true")) (; ";")) (} "}")))) (} "}")) (while "while") (parenthesized_expression "(((uVar4 & 0x2000) != 0) && (bVar8))" (( "(") (binary_expression "((uVar4 & 0x2000) != 0) && (bVar8)" (parenthesized_expression "((uVar4 & 0x2000) != 0)" (( "(") (binary_expression "(uVar4 & 0x2000) != 0" (parenthesized_expression "(uVar4 & 0x2000)" (( "(") (binary_expression "uVar4 & 0x2000" (identifier "uVar4") (& "&") (number_literal "0x2000")) () ")")) (!= "!=") (number_literal "0")) () ")")) (&& "&&") (parenthesized_expression "(bVar8)" (( "(") (identifier "bVar8") () ")"))) () ")")) (; ";")) (expression_statement "uVar3 = uVar3 & 0x1ff;" (assignment_expression "uVar3 = uVar3 & 0x1ff" (identifier "uVar3") (= "=") (binary_expression "uVar3 & 0x1ff" (identifier "uVar3") (& "&") (number_literal "0x1ff"))) (; ";")) (if_statement "if ((uVar4 & 2) == 0) goto LAB_000d224c;" (if "if") (parenthesized_expression "((uVar4 & 2) == 0)" (( "(") (binary_expression "(uVar4 & 2) == 0" (parenthesized_expression "(uVar4 & 2)" (( "(") (binary_expression "uVar4 & 2" (identifier "uVar4") (& "&") (number_literal "2")) () ")")) (== "==") (number_literal "0")) () ")")) (goto_statement "goto LAB_000d224c;" (goto "goto") (statement_identifier "LAB_000d224c") (; ";"))) (if_statement "if ((param_3 & 0x1000) == 0) {\n      if (bVar8) {\n        uVar3 = 0x1020;\n      }\n      return param_3 & 0xfffffc00 | uVar3;\n    }" (if "if") (parenthesized_expression "((param_3 & 0x1000) == 0)" (( "(") (binary_expression "(param_3 & 0x1000) == 0" (parenthesized_expression "(param_3 & 0x1000)" (( "(") (binary_expression "param_3 & 0x1000" (identifier "param_3") (& "&") (number_literal "0x1000")) () ")")) (== "==") (number_literal "0")) () ")")) (compound_statement "{\n      if (bVar8) {\n        uVar3 = 0x1020;\n      }\n      return param_3 & 0xfffffc00 | uVar3;\n    }" ({ "{") (if_statement "if (bVar8) {\n        uVar3 = 0x1020;\n      }" (if "if") (parenthesized_expression "(bVar8)" (( "(") (identifier "bVar8") () ")")) (compound_statement "{\n        uVar3 = 0x1020;\n      }" ({ "{") (expression_statement "uVar3 = 0x1020;" (assignment_expression "uVar3 = 0x1020" (identifier "uVar3") (= "=") (number_literal "0x1020")) (; ";")) (} "}"))) (return_statement "return param_3 & 0xfffffc00 | uVar3;" (return "return") (binary_expression "param_3 & 0xfffffc00 | uVar3" (binary_expression "param_3 & 0xfffffc00" (identifier "param_3") (& "&") (number_literal "0xfffffc00")) (| "|") (identifier "uVar3")) (; ";")) (} "}"))) (} "}")) (while "while") (parenthesized_expression "(bVar8)" (( "(") (identifier "bVar8") () ")")) (; ";")) (expression_statement "param_3 = param_3 & 0xffffefff;" (assignment_expression "param_3 = param_3 & 0xffffefff" (identifier "param_3") (= "=") (binary_expression "param_3 & 0xffffefff" (identifier "param_3") (& "&") (number_literal "0xffffefff"))) (; ";")) (labeled_statement "LAB_000d224c:\n  return param_3 & 0xfffffc00 | uVar3;" (statement_identifier "LAB_000d224c") (: ":") (return_statement "return param_3 & 0xfffffc00 | uVar3;" (return "return") (binary_expression "param_3 & 0xfffffc00 | uVar3" (binary_expression "param_3 & 0xfffffc00" (identifier "param_3") (& "&") (number_literal "0xfffffc00")) (| "|") (identifier "uVar3")) (; ";"))) (} "}")))

/* DWARF original prototype: int read_token(FILE_and_pos_t * ft, token_t tok, FILE_and_pos_t * ft)
    */

int function_1(type_1 *ft,type_2 var_3,type_1 *ft_1)

{
  type_3 *puVar1;
  type_4 *var_2;
  type_5 var_7;
  type_5 var_4;
  type_6 *pFVar5;
  type_5 var_5;
  type_5 var_6;
  bool bVar8;
  type_5 var_1;
  
  puVar1 = PTR_option_mask32_0012a334;
  var_1 = (type_5)ft_1 | 0x200;
  do {
    do {
      if ((var_1 & 0x800) != 0) {
        return var_1;
      }
      pFVar5 = ft->ft_fp;
      var_2 = (type_4 *)pFVar5->_IO_read_ptr;
      if (var_2 < pFVar5->_IO_read_end) {
        pFVar5->_IO_read_ptr = (char *)(var_2 + 1);
        var_7 = (type_5)*var_2;
        var_4 = var_7;
LAB_000d21d0:
        var_5 = *(type_5 *)(var_3 + 4);
        var_4 = var_4 - 9 & 0xff;
        var_6 = var_5 + 1;
        *(type_5 *)(var_3 + 4) = var_6;
        *(type_5 *)var_3 = (type_5)(var_6 < var_5) + *(int *)var_3;
        bVar8 = var_4 == 0x17 || var_4 < 5;
        var_4 = *(type_5 *)puVar1;
        var_1 = var_1 | var_7 & 0xc00;
        if (var_7 == 10) {
          var_1 = var_1 | 0x800;
        }
        else if (((var_4 & 8) != 0) && (var_7 - 0x41 < 0x1a)) {
          var_7 = var_7 + 0x20;
        }
      }
      else {
        var_7 = (*(type_7 *)PTR___uflow_0012adec)();
        var_4 = var_7 & 0xff;
        if (var_7 != 0xffffffff) goto LAB_000d21d0;
        var_4 = *(type_5 *)puVar1;
        var_1 = var_1 | 0xc00;
        bVar8 = true;
      }
    } while (((var_4 & 0x2000) != 0) && (bVar8));
    var_7 = var_7 & 0x1ff;
    if ((var_4 & 2) == 0) goto LAB_000d224c;
    if ((var_1 & 0x1000) == 0) {
      if (bVar8) {
        var_7 = 0x1020;
      }
      return var_1 & 0xfffffc00 | var_7;
    }
  } while (bVar8);
  var_1 = var_1 & 0xffffefff;
LAB_000d224c:
  return var_1 & 0xfffffc00 | var_7;
}


(translation_unit (function_definition type: (type_identifier) declarator: (function_declarator declarator: (identifier) parameters: (parameter_list (parameter_declaration type: (primitive_type) declarator: (pointer_declarator declarator: (identifier))) (parameter_declaration type: (primitive_type) declarator: (pointer_declarator declarator: (identifier))) (parameter_declaration type: (type_identifier) declarator: (identifier)))) body: (compound_statement (declaration type: (type_identifier) declarator: (pointer_declarator declarator: (identifier))) (declaration type: (type_identifier) declarator: (pointer_declarator declarator: (identifier))) (declaration type: (type_identifier) declarator: (identifier)) (declaration type: (type_identifier) declarator: (identifier)) (declaration type: (primitive_type) declarator: (identifier)) (declaration type: (type_identifier) declarator: (identifier)) (declaration type: (type_identifier) declarator: (identifier)) (declaration type: (primitive_type) declarator: (identifier)) (expression_statement (assignment_expression left: (identifier) right: (identifier))) (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (identifier) right: (number_literal)))) (do_statement body: (compound_statement (do_statement body: (compound_statement (if_statement condition: (parenthesized_expression (binary_expression left: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))) right: (number_literal))) consequence: (compound_statement (return_statement (identifier)))) (expression_statement (assignment_expression left: (identifier) right: (pointer_expression argument: (identifier)))) (expression_statement (assignment_expression left: (identifier) right: (pointer_expression argument: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator declarator: (abstract_pointer_declarator))) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))))))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (pointer_expression argument: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator declarator: (abstract_pointer_declarator))) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))))))) consequence: (compound_statement (expression_statement (assignment_expression left: (pointer_expression argument: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator declarator: (abstract_pointer_declarator))) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))))) right: (binary_expression left: (identifier) right: (number_literal)))) (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (parenthesized_expression (identifier)) right: (identifier)))) (expression_statement (assignment_expression left: (identifier) right: (identifier))) (labeled_statement label: (statement_identifier) (expression_statement (assignment_expression left: (identifier) right: (subscript_expression argument: (identifier) index: (number_literal))))) (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (binary_expression left: (identifier) right: (number_literal)) right: (number_literal)))) (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (identifier) right: (number_literal)))) (expression_statement (assignment_expression left: (subscript_expression argument: (identifier) index: (number_literal)) right: (identifier))) (expression_statement (assignment_expression left: (pointer_expression argument: (identifier)) right: (binary_expression left: (call_expression function: (parenthesized_expression (identifier)) arguments: (argument_list (binary_expression left: (identifier) right: (identifier)))) right: (pointer_expression argument: (identifier))))) (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (binary_expression left: (identifier) right: (number_literal)) right: (binary_expression left: (identifier) right: (number_literal))))) (expression_statement (assignment_expression left: (identifier) right: (pointer_expression argument: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (identifier))))) (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (identifier) right: (binary_expression left: (identifier) right: (number_literal))))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))) consequence: (compound_statement (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (identifier) right: (number_literal))))) alternative: (else_clause (if_statement condition: (parenthesized_expression (binary_expression left: (parenthesized_expression (binary_expression left: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))) right: (number_literal))) right: (parenthesized_expression (binary_expression left: (binary_expression left: (identifier) right: (number_literal)) right: (number_literal))))) consequence: (compound_statement (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (identifier) right: (number_literal))))))))) alternative: (else_clause (compound_statement (expression_statement (assignment_expression left: (identifier) right: (call_expression function: (parenthesized_expression (pointer_expression argument: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (identifier)))) arguments: (argument_list)))) (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (identifier) right: (number_literal)))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))) consequence: (goto_statement label: (statement_identifier))) (expression_statement (assignment_expression left: (identifier) right: (pointer_expression argument: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (identifier))))) (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (identifier) right: (number_literal)))) (expression_statement (assignment_expression left: (identifier) right: (true))))))) condition: (parenthesized_expression (binary_expression left: (parenthesized_expression (binary_expression left: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))) right: (number_literal))) right: (parenthesized_expression (identifier))))) (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (identifier) right: (number_literal)))) (if_statement condition: (parenthesized_expression (binary_expression left: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))) right: (number_literal))) consequence: (goto_statement label: (statement_identifier))) (if_statement condition: (parenthesized_expression (binary_expression left: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))) right: (number_literal))) consequence: (compound_statement (if_statement condition: (parenthesized_expression (identifier)) consequence: (compound_statement (expression_statement (assignment_expression left: (identifier) right: (number_literal))))) (return_statement (binary_expression left: (binary_expression left: (identifier) right: (number_literal)) right: (identifier)))))) condition: (parenthesized_expression (identifier))) (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (identifier) right: (number_literal)))) (labeled_statement label: (statement_identifier) (return_statement (binary_expression left: (binary_expression left: (identifier) right: (number_literal)) right: (identifier)))))))

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

{
  undefined *puVar1;
  byte *pbVar2;
  uint uVar3;
  uint uVar4;
  int iVar5;
  uint uVar6;
  uint uVar7;
  bool bVar8;
  
  puVar1 = PTR_DAT_0012a334;
  param_3 = param_3 | 0x200;
  do {
    do {
      if ((param_3 & 0x800) != 0) {
        return param_3;
      }
      iVar5 = *param_1;
      pbVar2 = *(byte **)(iVar5 + 4);
      if (pbVar2 < *(byte **)(iVar5 + 8)) {
        *(byte **)(iVar5 + 4) = pbVar2 + 1;
        uVar3 = (uint)*pbVar2;
        uVar4 = uVar3;
LAB_000d21d0:
        uVar6 = param_2[1];
        uVar4 = uVar4 - 9 & 0xff;
        uVar7 = uVar6 + 1;
        param_2[1] = uVar7;
        *param_2 = (uint)(uVar7 < uVar6) + *param_2;
        bVar8 = uVar4 == 0x17 || uVar4 < 5;
        uVar4 = *(uint *)puVar1;
        param_3 = param_3 | uVar3 & 0xc00;
        if (uVar3 == 10) {
          param_3 = param_3 | 0x800;
        }
        else if (((uVar4 & 8) != 0) && (uVar3 - 0x41 < 0x1a)) {
          uVar3 = uVar3 + 0x20;
        }
      }
      else {
        uVar3 = (*(code *)PTR___uflow_0012adec)();
        uVar4 = uVar3 & 0xff;
        if (uVar3 != 0xffffffff) goto LAB_000d21d0;
        uVar4 = *(uint *)puVar1;
        param_3 = param_3 | 0xc00;
        bVar8 = true;
      }
    } while (((uVar4 & 0x2000) != 0) && (bVar8));
    uVar3 = uVar3 & 0x1ff;
    if ((uVar4 & 2) == 0) goto LAB_000d224c;
    if ((param_3 & 0x1000) == 0) {
      if (bVar8) {
        uVar3 = 0x1020;
      }
      return param_3 & 0xfffffc00 | uVar3;
    }
  } while (bVar8);
  param_3 = param_3 & 0xffffefff;
LAB_000d224c:
  return param_3 & 0xfffffc00 | uVar3;
}

