
int fts5PorterTokenize(Fts5Tokenizer *pTokenizer,void *pCtx,int flags,char *pText,int nText,
                      _func_int_void_ptr_int_char_ptr_int_int_int *xToken)

{
  int iVar1;
  uint uVar2;
  byte *pbVar3;
  PorterContext *pPVar4;
  undefined *puVar5;
  PorterContext sCtx;
  
  puVar5 = PTR___stack_chk_guard_00190e24;
  sCtx.aBuf = (char *)(pTokenizer + 0x10);
  pbVar3 = *(byte **)PTR___stack_chk_guard_00190e24;
  pPVar4 = &sCtx;
  sCtx.xToken = xToken;
  sCtx.pCtx = pCtx;
  iVar1 = (**(code **)(pTokenizer + 8))(*(undefined4 *)(pTokenizer + 0xc));
  if (pbVar3 == *(byte **)puVar5) {
    return iVar1;
  }
  puVar5 = PTR___stack_chk_fail_00190df8;
  (*(code *)PTR___stack_chk_fail_00190df8)();
  *(undefined1 *)&pPVar4->pCtx = 1;
  uVar2 = *pbVar3 - 0x43 & 0xff;
  if (uVar2 < 0x18) {
                    /* WARNING: Could not recover jumptable at 0x000478c8. Too many branches */
                    /* WARNING: Treating indirect jump as call */
    iVar1 = (*(code *)(puVar5 + *(int *)(*(int *)(puVar5 + 0x1490d4) + 0x28f0 + uVar2 * 4) +
                                0x151098))();
    return iVar1;
  }
  return 0;
}



undefined4 FUN_000477fc(int param_1,undefined4 param_2)

{
  undefined4 uVar1;
  uint uVar2;
  byte *pbVar3;
  undefined4 *puVar4;
  undefined *puVar5;
  undefined4 in_stack_00000014;
  undefined4 local_18;
  undefined4 local_14;
  int local_10;
  byte *local_c;
  
  puVar5 = PTR___stack_chk_guard_00190e24;
  local_10 = param_1 + 0x10;
  local_c = *(byte **)PTR___stack_chk_guard_00190e24;
  puVar4 = &local_18;
  local_14 = in_stack_00000014;
  local_18 = param_2;
  uVar1 = (**(code **)(param_1 + 8))(*(undefined4 *)(param_1 + 0xc));
  if (local_c == *(byte **)puVar5) {
    return uVar1;
  }
  pbVar3 = local_c;
  puVar5 = PTR___stack_chk_fail_00190df8;
  (*(code *)PTR___stack_chk_fail_00190df8)();
  *(undefined1 *)puVar4 = 1;
  uVar2 = *pbVar3 - 0x43 & 0xff;
  if (uVar2 < 0x18) {
                    /* WARNING: Could not recover jumptable at 0x000478c8. Too many branches */
                    /* WARNING: Treating indirect jump as call */
    uVar1 = (*(code *)(puVar5 + *(int *)(*(int *)(puVar5 + 0x1490d4) + 0x28f0 + uVar2 * 4) +
                                0x151098))();
    return uVar1;
  }
  return 0;
}


lui gp,0x15
addiu gp,gp,0x1124
addu gp,gp,t9
addiu sp,sp,-0x38
addiu v0,a0,0x10
sw v0,0x28(sp)
sw s0,0x30(sp)
sw gp,0x18(sp)
sw ra,0x34(sp)
lw v0,-0x7d7c(gp)
lw s0,-0x7afc(gp)
lw t9,0x8(a0)
addiu v0,v0,0x4174
lw a0,0xc(a0)
lw t0,0x4c(sp)
lw v1,0x0(s0)
sw v0,0x14(sp)
sw a1,0x20(sp)
addiu a1,sp,0x20
sw v1,0x2c(sp)
sw t0,0x24(sp)
lw v0,0x48(sp)
jalr t9
_sw v0,0x10(sp)
lw a0,0x2c(sp)
lw v1,0x0(s0)
bne a0,v1,0x0004787c
_lw gp,0x18(sp)
lw ra,0x34(sp)
lw s0,0x30(sp)
jr ra
_addiu sp,sp,0x38
lw t9,-0x7b28(gp)
jalr t9
_nop
lui gp,0x15
addiu gp,gp,0x1098
addu gp,gp,t9
li v0,0x1
sb v0,0x0(a1)
lbu v0,0x0(a0)
addiu v0,v0,-0x43
andi v0,v0,0xff
sltiu v1,v0,0x18
beq v1,zero,0x00047a64
_lw v1,-0x7fc4(gp)
sll v0,v0,0x2
addiu v1,v1,0x28f0
addu v0,v1,v0
lw v0,0x0(v0)
addu v0,v0,gp
jr v0
_nop
jr ra
_or v0,zero,zero
(translation_unit "undefined4 FUN_000477fc(int param_1,undefined4 param_2)\n\n{\n  undefined4 uVar1;\n  uint uVar2;\n  byte *pbVar3;\n  undefined4 *puVar4;\n  undefined *puVar5;\n  undefined4 in_stack_00000014;\n  undefined4 local_18;\n  undefined4 local_14;\n  int local_10;\n  byte *local_c;\n  \n  puVar5 = PTR___stack_chk_guard_00190e24;\n  local_10 = param_1 + 0x10;\n  local_c = *(byte **)PTR___stack_chk_guard_00190e24;\n  puVar4 = &local_18;\n  local_14 = in_stack_00000014;\n  local_18 = param_2;\n  uVar1 = (**(code **)(param_1 + 8))(*(undefined4 *)(param_1 + 0xc));\n  if (local_c == *(byte **)puVar5) {\n    return uVar1;\n  }\n  pbVar3 = local_c;\n  puVar5 = PTR___stack_chk_fail_00190df8;\n  (*(code *)PTR___stack_chk_fail_00190df8)();\n  *(undefined1 *)puVar4 = 1;\n  uVar2 = *pbVar3 - 0x43 & 0xff;\n  if (uVar2 < 0x18) {\n                    /* WARNING: Could not recover jumptable at 0x000478c8. Too many branches */\n                    /* WARNING: Treating indirect jump as call */\n    uVar1 = (*(code *)(puVar5 + *(int *)(*(int *)(puVar5 + 0x1490d4) + 0x28f0 + uVar2 * 4) +\n                                0x151098))();\n    return uVar1;\n  }\n  return 0;\n}\n\n" (function_definition "undefined4 FUN_000477fc(int param_1,undefined4 param_2)\n\n{\n  undefined4 uVar1;\n  uint uVar2;\n  byte *pbVar3;\n  undefined4 *puVar4;\n  undefined *puVar5;\n  undefined4 in_stack_00000014;\n  undefined4 local_18;\n  undefined4 local_14;\n  int local_10;\n  byte *local_c;\n  \n  puVar5 = PTR___stack_chk_guard_00190e24;\n  local_10 = param_1 + 0x10;\n  local_c = *(byte **)PTR___stack_chk_guard_00190e24;\n  puVar4 = &local_18;\n  local_14 = in_stack_00000014;\n  local_18 = param_2;\n  uVar1 = (**(code **)(param_1 + 8))(*(undefined4 *)(param_1 + 0xc));\n  if (local_c == *(byte **)puVar5) {\n    return uVar1;\n  }\n  pbVar3 = local_c;\n  puVar5 = PTR___stack_chk_fail_00190df8;\n  (*(code *)PTR___stack_chk_fail_00190df8)();\n  *(undefined1 *)puVar4 = 1;\n  uVar2 = *pbVar3 - 0x43 & 0xff;\n  if (uVar2 < 0x18) {\n                    /* WARNING: Could not recover jumptable at 0x000478c8. Too many branches */\n                    /* WARNING: Treating indirect jump as call */\n    uVar1 = (*(code *)(puVar5 + *(int *)(*(int *)(puVar5 + 0x1490d4) + 0x28f0 + uVar2 * 4) +\n                                0x151098))();\n    return uVar1;\n  }\n  return 0;\n}" type_identifier (function_declarator "FUN_000477fc(int param_1,undefined4 param_2)" identifier (parameter_list "(int param_1,undefined4 param_2)" ( (parameter_declaration "int param_1" primitive_type identifier) , (parameter_declaration "undefined4 param_2" type_identifier identifier) ))) (compound_statement "{\n  undefined4 uVar1;\n  uint uVar2;\n  byte *pbVar3;\n  undefined4 *puVar4;\n  undefined *puVar5;\n  undefined4 in_stack_00000014;\n  undefined4 local_18;\n  undefined4 local_14;\n  int local_10;\n  byte *local_c;\n  \n  puVar5 = PTR___stack_chk_guard_00190e24;\n  local_10 = param_1 + 0x10;\n  local_c = *(byte **)PTR___stack_chk_guard_00190e24;\n  puVar4 = &local_18;\n  local_14 = in_stack_00000014;\n  local_18 = param_2;\n  uVar1 = (**(code **)(param_1 + 8))(*(undefined4 *)(param_1 + 0xc));\n  if (local_c == *(byte **)puVar5) {\n    return uVar1;\n  }\n  pbVar3 = local_c;\n  puVar5 = PTR___stack_chk_fail_00190df8;\n  (*(code *)PTR___stack_chk_fail_00190df8)();\n  *(undefined1 *)puVar4 = 1;\n  uVar2 = *pbVar3 - 0x43 & 0xff;\n  if (uVar2 < 0x18) {\n                    /* WARNING: Could not recover jumptable at 0x000478c8. Too many branches */\n                    /* WARNING: Treating indirect jump as call */\n    uVar1 = (*(code *)(puVar5 + *(int *)(*(int *)(puVar5 + 0x1490d4) + 0x28f0 + uVar2 * 4) +\n                                0x151098))();\n    return uVar1;\n  }\n  return 0;\n}" { (declaration "undefined4 uVar1;" type_identifier identifier ;) (declaration "uint uVar2;" type_identifier identifier ;) (declaration "byte *pbVar3;" type_identifier (pointer_declarator "*pbVar3" * identifier) ;) (declaration "undefined4 *puVar4;" type_identifier (pointer_declarator "*puVar4" * identifier) ;) (declaration "undefined *puVar5;" type_identifier (pointer_declarator "*puVar5" * identifier) ;) (declaration "undefined4 in_stack_00000014;" type_identifier identifier ;) (declaration "undefined4 local_18;" type_identifier identifier ;) (declaration "undefined4 local_14;" type_identifier identifier ;) (declaration "int local_10;" primitive_type identifier ;) (declaration "byte *local_c;" type_identifier (pointer_declarator "*local_c" * identifier) ;) (expression_statement "puVar5 = PTR___stack_chk_guard_00190e24;" (assignment_expression "puVar5 = PTR___stack_chk_guard_00190e24" identifier = identifier) ;) (expression_statement "local_10 = param_1 + 0x10;" (assignment_expression "local_10 = param_1 + 0x10" identifier = (binary_expression "param_1 + 0x10" identifier + number_literal)) ;) (expression_statement "local_c = *(byte **)PTR___stack_chk_guard_00190e24;" (assignment_expression "local_c = *(byte **)PTR___stack_chk_guard_00190e24" identifier = (pointer_expression "*(byte **)PTR___stack_chk_guard_00190e24" * (cast_expression "(byte **)PTR___stack_chk_guard_00190e24" ( (type_descriptor "byte **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) identifier))) ;) (expression_statement "puVar4 = &local_18;" (assignment_expression "puVar4 = &local_18" identifier = (pointer_expression "&local_18" & identifier)) ;) (expression_statement "local_14 = in_stack_00000014;" (assignment_expression "local_14 = in_stack_00000014" identifier = identifier) ;) (expression_statement "local_18 = param_2;" (assignment_expression "local_18 = param_2" identifier = identifier) ;) (expression_statement "uVar1 = (**(code **)(param_1 + 8))(*(undefined4 *)(param_1 + 0xc));" (assignment_expression "uVar1 = (**(code **)(param_1 + 8))(*(undefined4 *)(param_1 + 0xc))" identifier = (call_expression "(**(code **)(param_1 + 8))(*(undefined4 *)(param_1 + 0xc))" (parenthesized_expression "(**(code **)(param_1 + 8))" ( (pointer_expression "**(code **)(param_1 + 8)" * (pointer_expression "*(code **)(param_1 + 8)" * (cast_expression "(code **)(param_1 + 8)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(param_1 + 8)" ( (binary_expression "param_1 + 8" identifier + number_literal) ))))) )) (argument_list "(*(undefined4 *)(param_1 + 0xc))" ( (pointer_expression "*(undefined4 *)(param_1 + 0xc)" * (cast_expression "(undefined4 *)(param_1 + 0xc)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0xc)" ( (binary_expression "param_1 + 0xc" identifier + number_literal) )))) )))) ;) (if_statement "if (local_c == *(byte **)puVar5) {\n    return uVar1;\n  }" if (parenthesized_expression "(local_c == *(byte **)puVar5)" ( (binary_expression "local_c == *(byte **)puVar5" identifier == (pointer_expression "*(byte **)puVar5" * (cast_expression "(byte **)puVar5" ( (type_descriptor "byte **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) identifier))) )) (compound_statement "{\n    return uVar1;\n  }" { (return_statement "return uVar1;" return identifier ;) })) (expression_statement "pbVar3 = local_c;" (assignment_expression "pbVar3 = local_c" identifier = identifier) ;) (expression_statement "puVar5 = PTR___stack_chk_fail_00190df8;" (assignment_expression "puVar5 = PTR___stack_chk_fail_00190df8" identifier = identifier) ;) (expression_statement "(*(code *)PTR___stack_chk_fail_00190df8)();" (call_expression "(*(code *)PTR___stack_chk_fail_00190df8)()" (parenthesized_expression "(*(code *)PTR___stack_chk_fail_00190df8)" ( (pointer_expression "*(code *)PTR___stack_chk_fail_00190df8" * (cast_expression "(code *)PTR___stack_chk_fail_00190df8" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "()" ( ))) ;) (expression_statement "*(undefined1 *)puVar4 = 1;" (assignment_expression "*(undefined1 *)puVar4 = 1" (pointer_expression "*(undefined1 *)puVar4" * (cast_expression "(undefined1 *)puVar4" ( (type_descriptor "undefined1 *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) = number_literal) ;) (expression_statement "uVar2 = *pbVar3 - 0x43 & 0xff;" (assignment_expression "uVar2 = *pbVar3 - 0x43 & 0xff" identifier = (binary_expression "*pbVar3 - 0x43 & 0xff" (binary_expression "*pbVar3 - 0x43" (pointer_expression "*pbVar3" * identifier) - number_literal) & number_literal)) ;) (if_statement "if (uVar2 < 0x18) {\n                    /* WARNING: Could not recover jumptable at 0x000478c8. Too many branches */\n                    /* WARNING: Treating indirect jump as call */\n    uVar1 = (*(code *)(puVar5 + *(int *)(*(int *)(puVar5 + 0x1490d4) + 0x28f0 + uVar2 * 4) +\n                                0x151098))();\n    return uVar1;\n  }" if (parenthesized_expression "(uVar2 < 0x18)" ( (binary_expression "uVar2 < 0x18" identifier < number_literal) )) (compound_statement "{\n                    /* WARNING: Could not recover jumptable at 0x000478c8. Too many branches */\n                    /* WARNING: Treating indirect jump as call */\n    uVar1 = (*(code *)(puVar5 + *(int *)(*(int *)(puVar5 + 0x1490d4) + 0x28f0 + uVar2 * 4) +\n                                0x151098))();\n    return uVar1;\n  }" { comment comment (expression_statement "uVar1 = (*(code *)(puVar5 + *(int *)(*(int *)(puVar5 + 0x1490d4) + 0x28f0 + uVar2 * 4) +\n                                0x151098))();" (assignment_expression "uVar1 = (*(code *)(puVar5 + *(int *)(*(int *)(puVar5 + 0x1490d4) + 0x28f0 + uVar2 * 4) +\n                                0x151098))()" identifier = (call_expression "(*(code *)(puVar5 + *(int *)(*(int *)(puVar5 + 0x1490d4) + 0x28f0 + uVar2 * 4) +\n                                0x151098))()" (parenthesized_expression "(*(code *)(puVar5 + *(int *)(*(int *)(puVar5 + 0x1490d4) + 0x28f0 + uVar2 * 4) +\n                                0x151098))" ( (pointer_expression "*(code *)(puVar5 + *(int *)(*(int *)(puVar5 + 0x1490d4) + 0x28f0 + uVar2 * 4) +\n                                0x151098)" * (cast_expression "(code *)(puVar5 + *(int *)(*(int *)(puVar5 + 0x1490d4) + 0x28f0 + uVar2 * 4) +\n                                0x151098)" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(puVar5 + *(int *)(*(int *)(puVar5 + 0x1490d4) + 0x28f0 + uVar2 * 4) +\n                                0x151098)" ( (binary_expression "puVar5 + *(int *)(*(int *)(puVar5 + 0x1490d4) + 0x28f0 + uVar2 * 4) +\n                                0x151098" (binary_expression "puVar5 + *(int *)(*(int *)(puVar5 + 0x1490d4) + 0x28f0 + uVar2 * 4)" identifier + (pointer_expression "*(int *)(*(int *)(puVar5 + 0x1490d4) + 0x28f0 + uVar2 * 4)" * (cast_expression "(int *)(*(int *)(puVar5 + 0x1490d4) + 0x28f0 + uVar2 * 4)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(*(int *)(puVar5 + 0x1490d4) + 0x28f0 + uVar2 * 4)" ( (binary_expression "*(int *)(puVar5 + 0x1490d4) + 0x28f0 + uVar2 * 4" (binary_expression "*(int *)(puVar5 + 0x1490d4) + 0x28f0" (pointer_expression "*(int *)(puVar5 + 0x1490d4)" * (cast_expression "(int *)(puVar5 + 0x1490d4)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(puVar5 + 0x1490d4)" ( (binary_expression "puVar5 + 0x1490d4" identifier + number_literal) )))) + number_literal) + (binary_expression "uVar2 * 4" identifier * number_literal)) ))))) + number_literal) )))) )) (argument_list "()" ( )))) ;) (return_statement "return uVar1;" return identifier ;) })) (return_statement "return 0;" return number_literal ;) })))
(translation_unit "int fts5PorterTokenize(Fts5Tokenizer *pTokenizer,void *pCtx,int flags,char *pText,int nText,\n                      _func_int_void_ptr_int_char_ptr_int_int_int *xToken)\n\n{\n  int iVar1;\n  uint uVar2;\n  byte *pbVar3;\n  PorterContext *pPVar4;\n  undefined *puVar5;\n  PorterContext sCtx;\n  \n  puVar5 = PTR___stack_chk_guard_00190e24;\n  sCtx.aBuf = (char *)(pTokenizer + 0x10);\n  pbVar3 = *(byte **)PTR___stack_chk_guard_00190e24;\n  pPVar4 = &sCtx;\n  sCtx.xToken = xToken;\n  sCtx.pCtx = pCtx;\n  iVar1 = (**(code **)(pTokenizer + 8))(*(undefined4 *)(pTokenizer + 0xc));\n  if (pbVar3 == *(byte **)puVar5) {\n    return iVar1;\n  }\n  puVar5 = PTR___stack_chk_fail_00190df8;\n  (*(code *)PTR___stack_chk_fail_00190df8)();\n  *(undefined1 *)&pPVar4->pCtx = 1;\n  uVar2 = *pbVar3 - 0x43 & 0xff;\n  if (uVar2 < 0x18) {\n                    /* WARNING: Could not recover jumptable at 0x000478c8. Too many branches */\n                    /* WARNING: Treating indirect jump as call */\n    iVar1 = (*(code *)(puVar5 + *(int *)(*(int *)(puVar5 + 0x1490d4) + 0x28f0 + uVar2 * 4) +\n                                0x151098))();\n    return iVar1;\n  }\n  return 0;\n}\n\n" (function_definition "int fts5PorterTokenize(Fts5Tokenizer *pTokenizer,void *pCtx,int flags,char *pText,int nText,\n                      _func_int_void_ptr_int_char_ptr_int_int_int *xToken)\n\n{\n  int iVar1;\n  uint uVar2;\n  byte *pbVar3;\n  PorterContext *pPVar4;\n  undefined *puVar5;\n  PorterContext sCtx;\n  \n  puVar5 = PTR___stack_chk_guard_00190e24;\n  sCtx.aBuf = (char *)(pTokenizer + 0x10);\n  pbVar3 = *(byte **)PTR___stack_chk_guard_00190e24;\n  pPVar4 = &sCtx;\n  sCtx.xToken = xToken;\n  sCtx.pCtx = pCtx;\n  iVar1 = (**(code **)(pTokenizer + 8))(*(undefined4 *)(pTokenizer + 0xc));\n  if (pbVar3 == *(byte **)puVar5) {\n    return iVar1;\n  }\n  puVar5 = PTR___stack_chk_fail_00190df8;\n  (*(code *)PTR___stack_chk_fail_00190df8)();\n  *(undefined1 *)&pPVar4->pCtx = 1;\n  uVar2 = *pbVar3 - 0x43 & 0xff;\n  if (uVar2 < 0x18) {\n                    /* WARNING: Could not recover jumptable at 0x000478c8. Too many branches */\n                    /* WARNING: Treating indirect jump as call */\n    iVar1 = (*(code *)(puVar5 + *(int *)(*(int *)(puVar5 + 0x1490d4) + 0x28f0 + uVar2 * 4) +\n                                0x151098))();\n    return iVar1;\n  }\n  return 0;\n}" primitive_type (function_declarator "fts5PorterTokenize(Fts5Tokenizer *pTokenizer,void *pCtx,int flags,char *pText,int nText,\n                      _func_int_void_ptr_int_char_ptr_int_int_int *xToken)" identifier (parameter_list "(Fts5Tokenizer *pTokenizer,void *pCtx,int flags,char *pText,int nText,\n                      _func_int_void_ptr_int_char_ptr_int_int_int *xToken)" ( (parameter_declaration "Fts5Tokenizer *pTokenizer" type_identifier (pointer_declarator "*pTokenizer" * identifier)) , (parameter_declaration "void *pCtx" primitive_type (pointer_declarator "*pCtx" * identifier)) , (parameter_declaration "int flags" primitive_type identifier) , (parameter_declaration "char *pText" primitive_type (pointer_declarator "*pText" * identifier)) , (parameter_declaration "int nText" primitive_type identifier) , (parameter_declaration "_func_int_void_ptr_int_char_ptr_int_int_int *xToken" type_identifier (pointer_declarator "*xToken" * identifier)) ))) (compound_statement "{\n  int iVar1;\n  uint uVar2;\n  byte *pbVar3;\n  PorterContext *pPVar4;\n  undefined *puVar5;\n  PorterContext sCtx;\n  \n  puVar5 = PTR___stack_chk_guard_00190e24;\n  sCtx.aBuf = (char *)(pTokenizer + 0x10);\n  pbVar3 = *(byte **)PTR___stack_chk_guard_00190e24;\n  pPVar4 = &sCtx;\n  sCtx.xToken = xToken;\n  sCtx.pCtx = pCtx;\n  iVar1 = (**(code **)(pTokenizer + 8))(*(undefined4 *)(pTokenizer + 0xc));\n  if (pbVar3 == *(byte **)puVar5) {\n    return iVar1;\n  }\n  puVar5 = PTR___stack_chk_fail_00190df8;\n  (*(code *)PTR___stack_chk_fail_00190df8)();\n  *(undefined1 *)&pPVar4->pCtx = 1;\n  uVar2 = *pbVar3 - 0x43 & 0xff;\n  if (uVar2 < 0x18) {\n                    /* WARNING: Could not recover jumptable at 0x000478c8. Too many branches */\n                    /* WARNING: Treating indirect jump as call */\n    iVar1 = (*(code *)(puVar5 + *(int *)(*(int *)(puVar5 + 0x1490d4) + 0x28f0 + uVar2 * 4) +\n                                0x151098))();\n    return iVar1;\n  }\n  return 0;\n}" { (declaration "int iVar1;" primitive_type identifier ;) (declaration "uint uVar2;" type_identifier identifier ;) (declaration "byte *pbVar3;" type_identifier (pointer_declarator "*pbVar3" * identifier) ;) (declaration "PorterContext *pPVar4;" type_identifier (pointer_declarator "*pPVar4" * identifier) ;) (declaration "undefined *puVar5;" type_identifier (pointer_declarator "*puVar5" * identifier) ;) (declaration "PorterContext sCtx;" type_identifier identifier ;) (expression_statement "puVar5 = PTR___stack_chk_guard_00190e24;" (assignment_expression "puVar5 = PTR___stack_chk_guard_00190e24" identifier = identifier) ;) (expression_statement "sCtx.aBuf = (char *)(pTokenizer + 0x10);" (assignment_expression "sCtx.aBuf = (char *)(pTokenizer + 0x10)" (field_expression "sCtx.aBuf" identifier . field_identifier) = (cast_expression "(char *)(pTokenizer + 0x10)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(pTokenizer + 0x10)" ( (binary_expression "pTokenizer + 0x10" identifier + number_literal) )))) ;) (expression_statement "pbVar3 = *(byte **)PTR___stack_chk_guard_00190e24;" (assignment_expression "pbVar3 = *(byte **)PTR___stack_chk_guard_00190e24" identifier = (pointer_expression "*(byte **)PTR___stack_chk_guard_00190e24" * (cast_expression "(byte **)PTR___stack_chk_guard_00190e24" ( (type_descriptor "byte **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) identifier))) ;) (expression_statement "pPVar4 = &sCtx;" (assignment_expression "pPVar4 = &sCtx" identifier = (pointer_expression "&sCtx" & identifier)) ;) (expression_statement "sCtx.xToken = xToken;" (assignment_expression "sCtx.xToken = xToken" (field_expression "sCtx.xToken" identifier . field_identifier) = identifier) ;) (expression_statement "sCtx.pCtx = pCtx;" (assignment_expression "sCtx.pCtx = pCtx" (field_expression "sCtx.pCtx" identifier . field_identifier) = identifier) ;) (expression_statement "iVar1 = (**(code **)(pTokenizer + 8))(*(undefined4 *)(pTokenizer + 0xc));" (assignment_expression "iVar1 = (**(code **)(pTokenizer + 8))(*(undefined4 *)(pTokenizer + 0xc))" identifier = (call_expression "(**(code **)(pTokenizer + 8))(*(undefined4 *)(pTokenizer + 0xc))" (parenthesized_expression "(**(code **)(pTokenizer + 8))" ( (pointer_expression "**(code **)(pTokenizer + 8)" * (pointer_expression "*(code **)(pTokenizer + 8)" * (cast_expression "(code **)(pTokenizer + 8)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(pTokenizer + 8)" ( (binary_expression "pTokenizer + 8" identifier + number_literal) ))))) )) (argument_list "(*(undefined4 *)(pTokenizer + 0xc))" ( (pointer_expression "*(undefined4 *)(pTokenizer + 0xc)" * (cast_expression "(undefined4 *)(pTokenizer + 0xc)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(pTokenizer + 0xc)" ( (binary_expression "pTokenizer + 0xc" identifier + number_literal) )))) )))) ;) (if_statement "if (pbVar3 == *(byte **)puVar5) {\n    return iVar1;\n  }" if (parenthesized_expression "(pbVar3 == *(byte **)puVar5)" ( (binary_expression "pbVar3 == *(byte **)puVar5" identifier == (pointer_expression "*(byte **)puVar5" * (cast_expression "(byte **)puVar5" ( (type_descriptor "byte **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) identifier))) )) (compound_statement "{\n    return iVar1;\n  }" { (return_statement "return iVar1;" return identifier ;) })) (expression_statement "puVar5 = PTR___stack_chk_fail_00190df8;" (assignment_expression "puVar5 = PTR___stack_chk_fail_00190df8" identifier = identifier) ;) (expression_statement "(*(code *)PTR___stack_chk_fail_00190df8)();" (call_expression "(*(code *)PTR___stack_chk_fail_00190df8)()" (parenthesized_expression "(*(code *)PTR___stack_chk_fail_00190df8)" ( (pointer_expression "*(code *)PTR___stack_chk_fail_00190df8" * (cast_expression "(code *)PTR___stack_chk_fail_00190df8" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "()" ( ))) ;) (expression_statement "*(undefined1 *)&pPVar4->pCtx = 1;" (assignment_expression "*(undefined1 *)&pPVar4->pCtx = 1" (pointer_expression "*(undefined1 *)&pPVar4->pCtx" * (cast_expression "(undefined1 *)&pPVar4->pCtx" ( (type_descriptor "undefined1 *" type_identifier (abstract_pointer_declarator "*" *)) ) (pointer_expression "&pPVar4->pCtx" & (field_expression "pPVar4->pCtx" identifier -> field_identifier)))) = number_literal) ;) (expression_statement "uVar2 = *pbVar3 - 0x43 & 0xff;" (assignment_expression "uVar2 = *pbVar3 - 0x43 & 0xff" identifier = (binary_expression "*pbVar3 - 0x43 & 0xff" (binary_expression "*pbVar3 - 0x43" (pointer_expression "*pbVar3" * identifier) - number_literal) & number_literal)) ;) (if_statement "if (uVar2 < 0x18) {\n                    /* WARNING: Could not recover jumptable at 0x000478c8. Too many branches */\n                    /* WARNING: Treating indirect jump as call */\n    iVar1 = (*(code *)(puVar5 + *(int *)(*(int *)(puVar5 + 0x1490d4) + 0x28f0 + uVar2 * 4) +\n                                0x151098))();\n    return iVar1;\n  }" if (parenthesized_expression "(uVar2 < 0x18)" ( (binary_expression "uVar2 < 0x18" identifier < number_literal) )) (compound_statement "{\n                    /* WARNING: Could not recover jumptable at 0x000478c8. Too many branches */\n                    /* WARNING: Treating indirect jump as call */\n    iVar1 = (*(code *)(puVar5 + *(int *)(*(int *)(puVar5 + 0x1490d4) + 0x28f0 + uVar2 * 4) +\n                                0x151098))();\n    return iVar1;\n  }" { comment comment (expression_statement "iVar1 = (*(code *)(puVar5 + *(int *)(*(int *)(puVar5 + 0x1490d4) + 0x28f0 + uVar2 * 4) +\n                                0x151098))();" (assignment_expression "iVar1 = (*(code *)(puVar5 + *(int *)(*(int *)(puVar5 + 0x1490d4) + 0x28f0 + uVar2 * 4) +\n                                0x151098))()" identifier = (call_expression "(*(code *)(puVar5 + *(int *)(*(int *)(puVar5 + 0x1490d4) + 0x28f0 + uVar2 * 4) +\n                                0x151098))()" (parenthesized_expression "(*(code *)(puVar5 + *(int *)(*(int *)(puVar5 + 0x1490d4) + 0x28f0 + uVar2 * 4) +\n                                0x151098))" ( (pointer_expression "*(code *)(puVar5 + *(int *)(*(int *)(puVar5 + 0x1490d4) + 0x28f0 + uVar2 * 4) +\n                                0x151098)" * (cast_expression "(code *)(puVar5 + *(int *)(*(int *)(puVar5 + 0x1490d4) + 0x28f0 + uVar2 * 4) +\n                                0x151098)" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(puVar5 + *(int *)(*(int *)(puVar5 + 0x1490d4) + 0x28f0 + uVar2 * 4) +\n                                0x151098)" ( (binary_expression "puVar5 + *(int *)(*(int *)(puVar5 + 0x1490d4) + 0x28f0 + uVar2 * 4) +\n                                0x151098" (binary_expression "puVar5 + *(int *)(*(int *)(puVar5 + 0x1490d4) + 0x28f0 + uVar2 * 4)" identifier + (pointer_expression "*(int *)(*(int *)(puVar5 + 0x1490d4) + 0x28f0 + uVar2 * 4)" * (cast_expression "(int *)(*(int *)(puVar5 + 0x1490d4) + 0x28f0 + uVar2 * 4)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(*(int *)(puVar5 + 0x1490d4) + 0x28f0 + uVar2 * 4)" ( (binary_expression "*(int *)(puVar5 + 0x1490d4) + 0x28f0 + uVar2 * 4" (binary_expression "*(int *)(puVar5 + 0x1490d4) + 0x28f0" (pointer_expression "*(int *)(puVar5 + 0x1490d4)" * (cast_expression "(int *)(puVar5 + 0x1490d4)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(puVar5 + 0x1490d4)" ( (binary_expression "puVar5 + 0x1490d4" identifier + number_literal) )))) + number_literal) + (binary_expression "uVar2 * 4" identifier * number_literal)) ))))) + number_literal) )))) )) (argument_list "()" ( )))) ;) (return_statement "return iVar1;" return identifier ;) })) (return_statement "return 0;" return number_literal ;) })))
(translation_unit "undefined4 FUN_000477fc(int param_1,undefined4 param_2)\n\n{\n  undefined4 uVar1;\n  uint uVar2;\n  byte *pbVar3;\n  undefined4 *puVar4;\n  undefined *puVar5;\n  undefined4 in_stack_00000014;\n  undefined4 local_18;\n  undefined4 local_14;\n  int local_10;\n  byte *local_c;\n  \n  puVar5 = PTR___stack_chk_guard_00190e24;\n  local_10 = param_1 + 0x10;\n  local_c = *(byte **)PTR___stack_chk_guard_00190e24;\n  puVar4 = &local_18;\n  local_14 = in_stack_00000014;\n  local_18 = param_2;\n  uVar1 = (**(code **)(param_1 + 8))(*(undefined4 *)(param_1 + 0xc));\n  if (local_c == *(byte **)puVar5) {\n    return uVar1;\n  }\n  pbVar3 = local_c;\n  puVar5 = PTR___stack_chk_fail_00190df8;\n  (*(code *)PTR___stack_chk_fail_00190df8)();\n  *(undefined1 *)puVar4 = 1;\n  uVar2 = *pbVar3 - 0x43 & 0xff;\n  if (uVar2 < 0x18) {\n                    \n                    \n    uVar1 = (*(code *)(puVar5 + *(int *)(*(int *)(puVar5 + 0x1490d4) + 0x28f0 + uVar2 * 4) +\n                                0x151098))();\n    return uVar1;\n  }\n  return 0;\n}\n\n" (function_definition "undefined4 FUN_000477fc(int param_1,undefined4 param_2)\n\n{\n  undefined4 uVar1;\n  uint uVar2;\n  byte *pbVar3;\n  undefined4 *puVar4;\n  undefined *puVar5;\n  undefined4 in_stack_00000014;\n  undefined4 local_18;\n  undefined4 local_14;\n  int local_10;\n  byte *local_c;\n  \n  puVar5 = PTR___stack_chk_guard_00190e24;\n  local_10 = param_1 + 0x10;\n  local_c = *(byte **)PTR___stack_chk_guard_00190e24;\n  puVar4 = &local_18;\n  local_14 = in_stack_00000014;\n  local_18 = param_2;\n  uVar1 = (**(code **)(param_1 + 8))(*(undefined4 *)(param_1 + 0xc));\n  if (local_c == *(byte **)puVar5) {\n    return uVar1;\n  }\n  pbVar3 = local_c;\n  puVar5 = PTR___stack_chk_fail_00190df8;\n  (*(code *)PTR___stack_chk_fail_00190df8)();\n  *(undefined1 *)puVar4 = 1;\n  uVar2 = *pbVar3 - 0x43 & 0xff;\n  if (uVar2 < 0x18) {\n                    \n                    \n    uVar1 = (*(code *)(puVar5 + *(int *)(*(int *)(puVar5 + 0x1490d4) + 0x28f0 + uVar2 * 4) +\n                                0x151098))();\n    return uVar1;\n  }\n  return 0;\n}" type_identifier (function_declarator "FUN_000477fc(int param_1,undefined4 param_2)" identifier (parameter_list "(int param_1,undefined4 param_2)" ( (parameter_declaration "int param_1" primitive_type identifier) , (parameter_declaration "undefined4 param_2" type_identifier identifier) ))) (compound_statement "{\n  undefined4 uVar1;\n  uint uVar2;\n  byte *pbVar3;\n  undefined4 *puVar4;\n  undefined *puVar5;\n  undefined4 in_stack_00000014;\n  undefined4 local_18;\n  undefined4 local_14;\n  int local_10;\n  byte *local_c;\n  \n  puVar5 = PTR___stack_chk_guard_00190e24;\n  local_10 = param_1 + 0x10;\n  local_c = *(byte **)PTR___stack_chk_guard_00190e24;\n  puVar4 = &local_18;\n  local_14 = in_stack_00000014;\n  local_18 = param_2;\n  uVar1 = (**(code **)(param_1 + 8))(*(undefined4 *)(param_1 + 0xc));\n  if (local_c == *(byte **)puVar5) {\n    return uVar1;\n  }\n  pbVar3 = local_c;\n  puVar5 = PTR___stack_chk_fail_00190df8;\n  (*(code *)PTR___stack_chk_fail_00190df8)();\n  *(undefined1 *)puVar4 = 1;\n  uVar2 = *pbVar3 - 0x43 & 0xff;\n  if (uVar2 < 0x18) {\n                    \n                    \n    uVar1 = (*(code *)(puVar5 + *(int *)(*(int *)(puVar5 + 0x1490d4) + 0x28f0 + uVar2 * 4) +\n                                0x151098))();\n    return uVar1;\n  }\n  return 0;\n}" { (declaration "undefined4 uVar1;" type_identifier identifier ;) (declaration "uint uVar2;" type_identifier identifier ;) (declaration "byte *pbVar3;" type_identifier (pointer_declarator "*pbVar3" * identifier) ;) (declaration "undefined4 *puVar4;" type_identifier (pointer_declarator "*puVar4" * identifier) ;) (declaration "undefined *puVar5;" type_identifier (pointer_declarator "*puVar5" * identifier) ;) (declaration "undefined4 in_stack_00000014;" type_identifier identifier ;) (declaration "undefined4 local_18;" type_identifier identifier ;) (declaration "undefined4 local_14;" type_identifier identifier ;) (declaration "int local_10;" primitive_type identifier ;) (declaration "byte *local_c;" type_identifier (pointer_declarator "*local_c" * identifier) ;) (expression_statement "puVar5 = PTR___stack_chk_guard_00190e24;" (assignment_expression "puVar5 = PTR___stack_chk_guard_00190e24" identifier = identifier) ;) (expression_statement "local_10 = param_1 + 0x10;" (assignment_expression "local_10 = param_1 + 0x10" identifier = (binary_expression "param_1 + 0x10" identifier + number_literal)) ;) (expression_statement "local_c = *(byte **)PTR___stack_chk_guard_00190e24;" (assignment_expression "local_c = *(byte **)PTR___stack_chk_guard_00190e24" identifier = (pointer_expression "*(byte **)PTR___stack_chk_guard_00190e24" * (cast_expression "(byte **)PTR___stack_chk_guard_00190e24" ( (type_descriptor "byte **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) identifier))) ;) (expression_statement "puVar4 = &local_18;" (assignment_expression "puVar4 = &local_18" identifier = (pointer_expression "&local_18" & identifier)) ;) (expression_statement "local_14 = in_stack_00000014;" (assignment_expression "local_14 = in_stack_00000014" identifier = identifier) ;) (expression_statement "local_18 = param_2;" (assignment_expression "local_18 = param_2" identifier = identifier) ;) (expression_statement "uVar1 = (**(code **)(param_1 + 8))(*(undefined4 *)(param_1 + 0xc));" (assignment_expression "uVar1 = (**(code **)(param_1 + 8))(*(undefined4 *)(param_1 + 0xc))" identifier = (call_expression "(**(code **)(param_1 + 8))(*(undefined4 *)(param_1 + 0xc))" (parenthesized_expression "(**(code **)(param_1 + 8))" ( (pointer_expression "**(code **)(param_1 + 8)" * (pointer_expression "*(code **)(param_1 + 8)" * (cast_expression "(code **)(param_1 + 8)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(param_1 + 8)" ( (binary_expression "param_1 + 8" identifier + number_literal) ))))) )) (argument_list "(*(undefined4 *)(param_1 + 0xc))" ( (pointer_expression "*(undefined4 *)(param_1 + 0xc)" * (cast_expression "(undefined4 *)(param_1 + 0xc)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0xc)" ( (binary_expression "param_1 + 0xc" identifier + number_literal) )))) )))) ;) (if_statement "if (local_c == *(byte **)puVar5) {\n    return uVar1;\n  }" if (parenthesized_expression "(local_c == *(byte **)puVar5)" ( (binary_expression "local_c == *(byte **)puVar5" identifier == (pointer_expression "*(byte **)puVar5" * (cast_expression "(byte **)puVar5" ( (type_descriptor "byte **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) identifier))) )) (compound_statement "{\n    return uVar1;\n  }" { (return_statement "return uVar1;" return identifier ;) })) (expression_statement "pbVar3 = local_c;" (assignment_expression "pbVar3 = local_c" identifier = identifier) ;) (expression_statement "puVar5 = PTR___stack_chk_fail_00190df8;" (assignment_expression "puVar5 = PTR___stack_chk_fail_00190df8" identifier = identifier) ;) (expression_statement "(*(code *)PTR___stack_chk_fail_00190df8)();" (call_expression "(*(code *)PTR___stack_chk_fail_00190df8)()" (parenthesized_expression "(*(code *)PTR___stack_chk_fail_00190df8)" ( (pointer_expression "*(code *)PTR___stack_chk_fail_00190df8" * (cast_expression "(code *)PTR___stack_chk_fail_00190df8" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "()" ( ))) ;) (expression_statement "*(undefined1 *)puVar4 = 1;" (assignment_expression "*(undefined1 *)puVar4 = 1" (pointer_expression "*(undefined1 *)puVar4" * (cast_expression "(undefined1 *)puVar4" ( (type_descriptor "undefined1 *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) = number_literal) ;) (expression_statement "uVar2 = *pbVar3 - 0x43 & 0xff;" (assignment_expression "uVar2 = *pbVar3 - 0x43 & 0xff" identifier = (binary_expression "*pbVar3 - 0x43 & 0xff" (binary_expression "*pbVar3 - 0x43" (pointer_expression "*pbVar3" * identifier) - number_literal) & number_literal)) ;) (if_statement "if (uVar2 < 0x18) {\n                    \n                    \n    uVar1 = (*(code *)(puVar5 + *(int *)(*(int *)(puVar5 + 0x1490d4) + 0x28f0 + uVar2 * 4) +\n                                0x151098))();\n    return uVar1;\n  }" if (parenthesized_expression "(uVar2 < 0x18)" ( (binary_expression "uVar2 < 0x18" identifier < number_literal) )) (compound_statement "{\n                    \n                    \n    uVar1 = (*(code *)(puVar5 + *(int *)(*(int *)(puVar5 + 0x1490d4) + 0x28f0 + uVar2 * 4) +\n                                0x151098))();\n    return uVar1;\n  }" { (expression_statement "uVar1 = (*(code *)(puVar5 + *(int *)(*(int *)(puVar5 + 0x1490d4) + 0x28f0 + uVar2 * 4) +\n                                0x151098))();" (assignment_expression "uVar1 = (*(code *)(puVar5 + *(int *)(*(int *)(puVar5 + 0x1490d4) + 0x28f0 + uVar2 * 4) +\n                                0x151098))()" identifier = (call_expression "(*(code *)(puVar5 + *(int *)(*(int *)(puVar5 + 0x1490d4) + 0x28f0 + uVar2 * 4) +\n                                0x151098))()" (parenthesized_expression "(*(code *)(puVar5 + *(int *)(*(int *)(puVar5 + 0x1490d4) + 0x28f0 + uVar2 * 4) +\n                                0x151098))" ( (pointer_expression "*(code *)(puVar5 + *(int *)(*(int *)(puVar5 + 0x1490d4) + 0x28f0 + uVar2 * 4) +\n                                0x151098)" * (cast_expression "(code *)(puVar5 + *(int *)(*(int *)(puVar5 + 0x1490d4) + 0x28f0 + uVar2 * 4) +\n                                0x151098)" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(puVar5 + *(int *)(*(int *)(puVar5 + 0x1490d4) + 0x28f0 + uVar2 * 4) +\n                                0x151098)" ( (binary_expression "puVar5 + *(int *)(*(int *)(puVar5 + 0x1490d4) + 0x28f0 + uVar2 * 4) +\n                                0x151098" (binary_expression "puVar5 + *(int *)(*(int *)(puVar5 + 0x1490d4) + 0x28f0 + uVar2 * 4)" identifier + (pointer_expression "*(int *)(*(int *)(puVar5 + 0x1490d4) + 0x28f0 + uVar2 * 4)" * (cast_expression "(int *)(*(int *)(puVar5 + 0x1490d4) + 0x28f0 + uVar2 * 4)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(*(int *)(puVar5 + 0x1490d4) + 0x28f0 + uVar2 * 4)" ( (binary_expression "*(int *)(puVar5 + 0x1490d4) + 0x28f0 + uVar2 * 4" (binary_expression "*(int *)(puVar5 + 0x1490d4) + 0x28f0" (pointer_expression "*(int *)(puVar5 + 0x1490d4)" * (cast_expression "(int *)(puVar5 + 0x1490d4)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(puVar5 + 0x1490d4)" ( (binary_expression "puVar5 + 0x1490d4" identifier + number_literal) )))) + number_literal) + (binary_expression "uVar2 * 4" identifier * number_literal)) ))))) + number_literal) )))) )) (argument_list "()" ( )))) ;) (return_statement "return uVar1;" return identifier ;) })) (return_statement "return 0;" return number_literal ;) })))
(translation_unit (function_definition TYPE (function_declarator IDENT (parameter_list ( (parameter_declaration TYPE IDENT) , (parameter_declaration TYPE IDENT) ))) (compound_statement { (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE (pointer_declarator * IDENT) ;) (expression_statement (assignment_expression IDENT = IDENT) ;) (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator * (abstract_pointer_declarator *))) ) IDENT))) ;) (expression_statement (assignment_expression IDENT = (pointer_expression & IDENT)) ;) (expression_statement (assignment_expression IDENT = IDENT) ;) (expression_statement (assignment_expression IDENT = IDENT) ;) (expression_statement (assignment_expression IDENT = (call_expression (parenthesized_expression ( (pointer_expression * (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator * (abstract_pointer_declarator *))) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) )) (argument_list ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (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 *))) ) IDENT))) )) (compound_statement { (return_statement return IDENT ;) })) (expression_statement (assignment_expression IDENT = IDENT) ;) (expression_statement (assignment_expression IDENT = IDENT) ;) (expression_statement (call_expression (parenthesized_expression ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT)) )) (argument_list ( ))) ;) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT)) = LIT) ;) (expression_statement (assignment_expression IDENT = (binary_expression (binary_expression (pointer_expression * IDENT) - LIT) & LIT)) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT < LIT) )) (compound_statement { (expression_statement (assignment_expression IDENT = (call_expression (parenthesized_expression ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression (binary_expression IDENT + (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) + LIT) + (binary_expression IDENT * LIT)) ))))) + LIT) )))) )) (argument_list ( )))) ;) (return_statement return IDENT ;) })) (return_statement return LIT ;) })))
(function_definition "undefined4 FUN_000477fc(int param_1,undefined4 param_2)\n\n{\n  undefined4 uVar1;\n  uint uVar2;\n  byte *pbVar3;\n  undefined4 *puVar4;\n  undefined *puVar5;\n  undefined4 in_stack_00000014;\n  undefined4 local_18;\n  undefined4 local_14;\n  int local_10;\n  byte *local_c;\n  \n  puVar5 = PTR___stack_chk_guard_00190e24;\n  local_10 = param_1 + 0x10;\n  local_c = *(byte **)PTR___stack_chk_guard_00190e24;\n  puVar4 = &local_18;\n  local_14 = in_stack_00000014;\n  local_18 = param_2;\n  uVar1 = (**(code **)(param_1 + 8))(*(undefined4 *)(param_1 + 0xc));\n  if (local_c == *(byte **)puVar5) {\n    return uVar1;\n  }\n  pbVar3 = local_c;\n  puVar5 = PTR___stack_chk_fail_00190df8;\n  (*(code *)PTR___stack_chk_fail_00190df8)();\n  *(undefined1 *)puVar4 = 1;\n  uVar2 = *pbVar3 - 0x43 & 0xff;\n  if (uVar2 < 0x18) {\n                    \n                    \n    uVar1 = (*(code *)(puVar5 + *(int *)(*(int *)(puVar5 + 0x1490d4) + 0x28f0 + uVar2 * 4) +\n                                0x151098))();\n    return uVar1;\n  }\n  return 0;\n}" (type_identifier "undefined4") (function_declarator "FUN_000477fc(int param_1,undefined4 param_2)" (identifier "FUN_000477fc") (parameter_list "(int param_1,undefined4 param_2)" (( "(") (parameter_declaration "int param_1" (primitive_type "int") (identifier "param_1")) (, ",") (parameter_declaration "undefined4 param_2" (type_identifier "undefined4") (identifier "param_2")) () ")"))) (compound_statement "{\n  undefined4 uVar1;\n  uint uVar2;\n  byte *pbVar3;\n  undefined4 *puVar4;\n  undefined *puVar5;\n  undefined4 in_stack_00000014;\n  undefined4 local_18;\n  undefined4 local_14;\n  int local_10;\n  byte *local_c;\n  \n  puVar5 = PTR___stack_chk_guard_00190e24;\n  local_10 = param_1 + 0x10;\n  local_c = *(byte **)PTR___stack_chk_guard_00190e24;\n  puVar4 = &local_18;\n  local_14 = in_stack_00000014;\n  local_18 = param_2;\n  uVar1 = (**(code **)(param_1 + 8))(*(undefined4 *)(param_1 + 0xc));\n  if (local_c == *(byte **)puVar5) {\n    return uVar1;\n  }\n  pbVar3 = local_c;\n  puVar5 = PTR___stack_chk_fail_00190df8;\n  (*(code *)PTR___stack_chk_fail_00190df8)();\n  *(undefined1 *)puVar4 = 1;\n  uVar2 = *pbVar3 - 0x43 & 0xff;\n  if (uVar2 < 0x18) {\n                    \n                    \n    uVar1 = (*(code *)(puVar5 + *(int *)(*(int *)(puVar5 + 0x1490d4) + 0x28f0 + uVar2 * 4) +\n                                0x151098))();\n    return uVar1;\n  }\n  return 0;\n}" ({ "{") (declaration "undefined4 uVar1;" (type_identifier "undefined4") (identifier "uVar1") (; ";")) (declaration "uint uVar2;" (type_identifier "uint") (identifier "uVar2") (; ";")) (declaration "byte *pbVar3;" (type_identifier "byte") (pointer_declarator "*pbVar3" (* "*") (identifier "pbVar3")) (; ";")) (declaration "undefined4 *puVar4;" (type_identifier "undefined4") (pointer_declarator "*puVar4" (* "*") (identifier "puVar4")) (; ";")) (declaration "undefined *puVar5;" (type_identifier "undefined") (pointer_declarator "*puVar5" (* "*") (identifier "puVar5")) (; ";")) (declaration "undefined4 in_stack_00000014;" (type_identifier "undefined4") (identifier "in_stack_00000014") (; ";")) (declaration "undefined4 local_18;" (type_identifier "undefined4") (identifier "local_18") (; ";")) (declaration "undefined4 local_14;" (type_identifier "undefined4") (identifier "local_14") (; ";")) (declaration "int local_10;" (primitive_type "int") (identifier "local_10") (; ";")) (declaration "byte *local_c;" (type_identifier "byte") (pointer_declarator "*local_c" (* "*") (identifier "local_c")) (; ";")) (expression_statement "puVar5 = PTR___stack_chk_guard_00190e24;" (assignment_expression "puVar5 = PTR___stack_chk_guard_00190e24" (identifier "puVar5") (= "=") (identifier "PTR___stack_chk_guard_00190e24")) (; ";")) (expression_statement "local_10 = param_1 + 0x10;" (assignment_expression "local_10 = param_1 + 0x10" (identifier "local_10") (= "=") (binary_expression "param_1 + 0x10" (identifier "param_1") (+ "+") (number_literal "0x10"))) (; ";")) (expression_statement "local_c = *(byte **)PTR___stack_chk_guard_00190e24;" (assignment_expression "local_c = *(byte **)PTR___stack_chk_guard_00190e24" (identifier "local_c") (= "=") (pointer_expression "*(byte **)PTR___stack_chk_guard_00190e24" (* "*") (cast_expression "(byte **)PTR___stack_chk_guard_00190e24" (( "(") (type_descriptor "byte **" (type_identifier "byte") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (identifier "PTR___stack_chk_guard_00190e24")))) (; ";")) (expression_statement "puVar4 = &local_18;" (assignment_expression "puVar4 = &local_18" (identifier "puVar4") (= "=") (pointer_expression "&local_18" (& "&") (identifier "local_18"))) (; ";")) (expression_statement "local_14 = in_stack_00000014;" (assignment_expression "local_14 = in_stack_00000014" (identifier "local_14") (= "=") (identifier "in_stack_00000014")) (; ";")) (expression_statement "local_18 = param_2;" (assignment_expression "local_18 = param_2" (identifier "local_18") (= "=") (identifier "param_2")) (; ";")) (expression_statement "uVar1 = (**(code **)(param_1 + 8))(*(undefined4 *)(param_1 + 0xc));" (assignment_expression "uVar1 = (**(code **)(param_1 + 8))(*(undefined4 *)(param_1 + 0xc))" (identifier "uVar1") (= "=") (call_expression "(**(code **)(param_1 + 8))(*(undefined4 *)(param_1 + 0xc))" (parenthesized_expression "(**(code **)(param_1 + 8))" (( "(") (pointer_expression "**(code **)(param_1 + 8)" (* "*") (pointer_expression "*(code **)(param_1 + 8)" (* "*") (cast_expression "(code **)(param_1 + 8)" (( "(") (type_descriptor "code **" (type_identifier "code") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (parenthesized_expression "(param_1 + 8)" (( "(") (binary_expression "param_1 + 8" (identifier "param_1") (+ "+") (number_literal "8")) () ")"))))) () ")")) (argument_list "(*(undefined4 *)(param_1 + 0xc))" (( "(") (pointer_expression "*(undefined4 *)(param_1 + 0xc)" (* "*") (cast_expression "(undefined4 *)(param_1 + 0xc)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0xc)" (( "(") (binary_expression "param_1 + 0xc" (identifier "param_1") (+ "+") (number_literal "0xc")) () ")")))) () ")")))) (; ";")) (if_statement "if (local_c == *(byte **)puVar5) {\n    return uVar1;\n  }" (if "if") (parenthesized_expression "(local_c == *(byte **)puVar5)" (( "(") (binary_expression "local_c == *(byte **)puVar5" (identifier "local_c") (== "==") (pointer_expression "*(byte **)puVar5" (* "*") (cast_expression "(byte **)puVar5" (( "(") (type_descriptor "byte **" (type_identifier "byte") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (identifier "puVar5")))) () ")")) (compound_statement "{\n    return uVar1;\n  }" ({ "{") (return_statement "return uVar1;" (return "return") (identifier "uVar1") (; ";")) (} "}"))) (expression_statement "pbVar3 = local_c;" (assignment_expression "pbVar3 = local_c" (identifier "pbVar3") (= "=") (identifier "local_c")) (; ";")) (expression_statement "puVar5 = PTR___stack_chk_fail_00190df8;" (assignment_expression "puVar5 = PTR___stack_chk_fail_00190df8" (identifier "puVar5") (= "=") (identifier "PTR___stack_chk_fail_00190df8")) (; ";")) (expression_statement "(*(code *)PTR___stack_chk_fail_00190df8)();" (call_expression "(*(code *)PTR___stack_chk_fail_00190df8)()" (parenthesized_expression "(*(code *)PTR___stack_chk_fail_00190df8)" (( "(") (pointer_expression "*(code *)PTR___stack_chk_fail_00190df8" (* "*") (cast_expression "(code *)PTR___stack_chk_fail_00190df8" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR___stack_chk_fail_00190df8"))) () ")")) (argument_list "()" (( "(") () ")"))) (; ";")) (expression_statement "*(undefined1 *)puVar4 = 1;" (assignment_expression "*(undefined1 *)puVar4 = 1" (pointer_expression "*(undefined1 *)puVar4" (* "*") (cast_expression "(undefined1 *)puVar4" (( "(") (type_descriptor "undefined1 *" (type_identifier "undefined1") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "puVar4"))) (= "=") (number_literal "1")) (; ";")) (expression_statement "uVar2 = *pbVar3 - 0x43 & 0xff;" (assignment_expression "uVar2 = *pbVar3 - 0x43 & 0xff" (identifier "uVar2") (= "=") (binary_expression "*pbVar3 - 0x43 & 0xff" (binary_expression "*pbVar3 - 0x43" (pointer_expression "*pbVar3" (* "*") (identifier "pbVar3")) (- "-") (number_literal "0x43")) (& "&") (number_literal "0xff"))) (; ";")) (if_statement "if (uVar2 < 0x18) {\n                    \n                    \n    uVar1 = (*(code *)(puVar5 + *(int *)(*(int *)(puVar5 + 0x1490d4) + 0x28f0 + uVar2 * 4) +\n                                0x151098))();\n    return uVar1;\n  }" (if "if") (parenthesized_expression "(uVar2 < 0x18)" (( "(") (binary_expression "uVar2 < 0x18" (identifier "uVar2") (< "<") (number_literal "0x18")) () ")")) (compound_statement "{\n                    \n                    \n    uVar1 = (*(code *)(puVar5 + *(int *)(*(int *)(puVar5 + 0x1490d4) + 0x28f0 + uVar2 * 4) +\n                                0x151098))();\n    return uVar1;\n  }" ({ "{") (expression_statement "uVar1 = (*(code *)(puVar5 + *(int *)(*(int *)(puVar5 + 0x1490d4) + 0x28f0 + uVar2 * 4) +\n                                0x151098))();" (assignment_expression "uVar1 = (*(code *)(puVar5 + *(int *)(*(int *)(puVar5 + 0x1490d4) + 0x28f0 + uVar2 * 4) +\n                                0x151098))()" (identifier "uVar1") (= "=") (call_expression "(*(code *)(puVar5 + *(int *)(*(int *)(puVar5 + 0x1490d4) + 0x28f0 + uVar2 * 4) +\n                                0x151098))()" (parenthesized_expression "(*(code *)(puVar5 + *(int *)(*(int *)(puVar5 + 0x1490d4) + 0x28f0 + uVar2 * 4) +\n                                0x151098))" (( "(") (pointer_expression "*(code *)(puVar5 + *(int *)(*(int *)(puVar5 + 0x1490d4) + 0x28f0 + uVar2 * 4) +\n                                0x151098)" (* "*") (cast_expression "(code *)(puVar5 + *(int *)(*(int *)(puVar5 + 0x1490d4) + 0x28f0 + uVar2 * 4) +\n                                0x151098)" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(puVar5 + *(int *)(*(int *)(puVar5 + 0x1490d4) + 0x28f0 + uVar2 * 4) +\n                                0x151098)" (( "(") (binary_expression "puVar5 + *(int *)(*(int *)(puVar5 + 0x1490d4) + 0x28f0 + uVar2 * 4) +\n                                0x151098" (binary_expression "puVar5 + *(int *)(*(int *)(puVar5 + 0x1490d4) + 0x28f0 + uVar2 * 4)" (identifier "puVar5") (+ "+") (pointer_expression "*(int *)(*(int *)(puVar5 + 0x1490d4) + 0x28f0 + uVar2 * 4)" (* "*") (cast_expression "(int *)(*(int *)(puVar5 + 0x1490d4) + 0x28f0 + uVar2 * 4)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(*(int *)(puVar5 + 0x1490d4) + 0x28f0 + uVar2 * 4)" (( "(") (binary_expression "*(int *)(puVar5 + 0x1490d4) + 0x28f0 + uVar2 * 4" (binary_expression "*(int *)(puVar5 + 0x1490d4) + 0x28f0" (pointer_expression "*(int *)(puVar5 + 0x1490d4)" (* "*") (cast_expression "(int *)(puVar5 + 0x1490d4)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(puVar5 + 0x1490d4)" (( "(") (binary_expression "puVar5 + 0x1490d4" (identifier "puVar5") (+ "+") (number_literal "0x1490d4")) () ")")))) (+ "+") (number_literal "0x28f0")) (+ "+") (binary_expression "uVar2 * 4" (identifier "uVar2") (* "*") (number_literal "4"))) () ")"))))) (+ "+") (number_literal "0x151098")) () ")")))) () ")")) (argument_list "()" (( "(") () ")")))) (; ";")) (return_statement "return uVar1;" (return "return") (identifier "uVar1") (; ";")) (} "}"))) (return_statement "return 0;" (return "return") (number_literal "0") (; ";")) (} "}")))

int function_1(type_1 *var_1,void *pCtx,int flags,char *pText,int nText,
                      type_2 *xToken)

{
  int iVar1;
  type_3 var_3;
  type_4 *var_2;
  type_5 *pPVar4;
  type_6 *var_4;
  type_5 sCtx;
  
  var_4 = PTR___stack_chk_guard_00190e24;
  sCtx.aBuf = (char *)(var_1 + 0x10);
  var_2 = *(type_4 **)PTR___stack_chk_guard_00190e24;
  pPVar4 = &sCtx;
  sCtx.xToken = xToken;
  sCtx.pCtx = pCtx;
  iVar1 = (**(type_7 **)(var_1 + 8))(*(type_8 *)(var_1 + 0xc));
  if (var_2 == *(type_4 **)var_4) {
    return iVar1;
  }
  var_4 = PTR___stack_chk_fail_00190df8;
  (*(type_7 *)PTR___stack_chk_fail_00190df8)();
  *(type_9 *)&pPVar4->pCtx = 1;
  var_3 = *var_2 - 0x43 & 0xff;
  if (var_3 < 0x18) {
                    /* WARNING: Could not recover jumptable at 0x000478c8. Too many branches */
                    /* WARNING: Treating indirect jump as call */
    iVar1 = (*(type_7 *)(var_4 + *(int *)(*(int *)(var_4 + 0x1490d4) + 0x28f0 + var_3 * 4) +
                                0x151098))();
    return iVar1;
  }
  return 0;
}


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

undefined4 MASKED(int param_1,undefined4 param_2)

{
  undefined4 uVar1;
  uint uVar2;
  byte *pbVar3;
  undefined4 *puVar4;
  undefined *puVar5;
  undefined4 in_stack_00000014;
  undefined4 local_18;
  undefined4 local_14;
  int local_10;
  byte *local_c;
  
  puVar5 = PTR___stack_chk_guard_00190e24;
  local_10 = param_1 + 0x10;
  local_c = *(byte **)PTR___stack_chk_guard_00190e24;
  puVar4 = &local_18;
  local_14 = in_stack_00000014;
  local_18 = param_2;
  uVar1 = (**(code **)(param_1 + 8))(*(undefined4 *)(param_1 + 0xc));
  if (local_c == *(byte **)puVar5) {
    return uVar1;
  }
  pbVar3 = local_c;
  puVar5 = PTR___stack_chk_fail_00190df8;
  (*(code *)PTR___stack_chk_fail_00190df8)();
  *(undefined1 *)puVar4 = 1;
  uVar2 = *pbVar3 - 0x43 & 0xff;
  if (uVar2 < 0x18) {
                    /* WARNING: Could not recover jumptable at 0x000478c8. Too many branches */
                    /* WARNING: Treating indirect jump as call */
    uVar1 = (*(code *)(puVar5 + *(int *)(*(int *)(puVar5 + 0x1490d4) + 0x28f0 + uVar2 * 4) +
                                0x151098))();
    return uVar1;
  }
  return 0;
}

