
arith_t ash_arith(char *s)

{
  int iVar1;
  char *s_00;
  undefined4 *puVar2;
  undefined *puVar3;
  arith_t aVar4;
  arith_state_t math_state;
  
  puVar3 = PTR___stack_chk_guard_0012b14c;
  iVar1 = *(int *)PTR___stack_chk_guard_0012b14c;
  math_state.setvar = (arith_var_set_t)(PTR_LAB_0012a814 + -0xb88);
  math_state.lookupvar = (arith_var_lookup_t)(PTR_LAB_0012a814 + 0x154c);
  *(int *)(*(int *)PTR_ash_ptr_to_globals_misc_0012a84c + 0x24) =
       *(int *)(*(int *)PTR_ash_ptr_to_globals_misc_0012a84c + 0x24) + 1;
  aVar4 = arith(&math_state,s);
  if (math_state.errmsg != (char *)0x0) {
                    /* WARNING: Subroutine does not return */
    ash_msg_and_raise_error(math_state.errmsg);
  }
  int_on();
  if (iVar1 == *(int *)puVar3) {
    return aVar4;
  }
  puVar3 = PTR___stack_chk_fail_0012b0c8;
  (*(code *)PTR___stack_chk_fail_0012b0c8)();
  s_00 = *(char **)(iVar1 + 4);
  if (s_00 != (char *)0x0) {
    puVar2 = (undefined4 *)(iVar1 + 4);
    do {
      puVar2 = puVar2 + 1;
      aVar4 = ash_arith(s_00);
      s_00 = (char *)*puVar2;
    } while (s_00 != (char *)0x0);
    return (arith_t)CONCAT14(aVar4 == 0,(int)aVar4);
  }
                    /* WARNING: Subroutine does not return */
  ash_msg_and_raise_error((char *)(*(int *)(puVar3 + 0xb690c) + 0x760c));
}



ulonglong FUN_000737b8(undefined4 param_1)

{
  ulonglong uVar1;
  int iVar2;
  int *piVar3;
  undefined *puVar4;
  longlong lVar5;
  int local_1c;
  undefined *local_18;
  undefined *local_14;
  int local_c;
  
  puVar4 = PTR___stack_chk_guard_0012b14c;
  local_c = *(int *)PTR___stack_chk_guard_0012b14c;
  local_14 = PTR_LAB_0012a814 + -0xb88;
  local_18 = PTR_LAB_0012a814 + 0x154c;
  *(int *)(*(int *)PTR_ash_ptr_to_globals_misc_0012a84c + 0x24) =
       *(int *)(*(int *)PTR_ash_ptr_to_globals_misc_0012a84c + 0x24) + 1;
  uVar1 = FUN_00083fb4(&local_1c,param_1);
  if (local_1c != 0) {
                    /* WARNING: Subroutine does not return */
    FUN_0006ee68();
  }
  FUN_0006d568();
  if (local_c == *(int *)puVar4) {
    return uVar1;
  }
  iVar2 = local_c;
  puVar4 = PTR___stack_chk_fail_0012b0c8;
  (*(code *)PTR___stack_chk_fail_0012b0c8)();
  if (*(int *)(iVar2 + 4) != 0) {
    piVar3 = (int *)(iVar2 + 4);
    do {
      piVar3 = piVar3 + 1;
      lVar5 = FUN_000737b8();
    } while (*piVar3 != 0);
    return (ulonglong)CONCAT14(lVar5 == 0,(int)lVar5);
  }
                    /* WARNING: Subroutine does not return */
  FUN_0006ee68(*(int *)(puVar4 + 0xb690c) + 0x760c);
}


lui gp,0xc
addiu gp,gp,-0x1668
addu gp,gp,t9
addiu sp,sp,-0x40
lw v1,-0x7904(gp)
or a1,a0,zero
sw s0,0x38(sp)
lw s0,-0x7004(gp)
lw a0,0x0(v1)
lw v1,-0x793c(gp)
sw gp,0x10(sp)
lw v0,0x0(s0)
addiu v1,v1,-0xb88
sw ra,0x3c(sp)
sw v0,0x34(sp)
lw v0,-0x793c(gp)
sw v1,0x2c(sp)
addiu v0,v0,0x154c
sw v0,0x28(sp)
lw v0,0x24(a0)
addiu v0,v0,0x1
sw v0,0x24(a0)
lw t9,-0x78c8(gp)
bal 0x00083fb4
_addiu a0,sp,0x24
lw a0,0x24(sp)
beq a0,zero,0x00073838
_lw gp,0x10(sp)
lw t9,-0x793c(gp)
addiu t9,t9,-0x1198
bal 0x0006ee68
_nop
lw t9,-0x793c(gp)
sw v1,0x1c(sp)
addiu t9,t9,-0x2a98
bal 0x0006d568
_sw v0,0x18(sp)
lw a1,0x34(sp)
lw a0,0x0(s0)
lw gp,0x10(sp)
lw v1,0x1c(sp)
bne a1,a0,0x00073874
_lw v0,0x18(sp)
lw ra,0x3c(sp)
lw s0,0x38(sp)
jr ra
_addiu sp,sp,0x40
lw t9,-0x7088(gp)
jalr t9
_nop
lui gp,0xc
addiu gp,gp,-0x1730
addu gp,gp,t9
addiu sp,sp,-0x28
lw a0,0x4(a1)
sw gp,0x10(sp)
sw ra,0x24(sp)
sw s1,0x20(sp)
beq a0,zero,0x000738e4
_sw s0,0x1c(sp)
lw s1,-0x793c(gp)
addiu s0,a1,0x4
addiu s1,s1,0x37b8
or t9,s1,zero
bal 0x000737b8
_addiu s0,s0,0x4
lw a0,0x0(s0)
bne a0,zero,0x000738b4
_lw ra,0x24(sp)
or v0,v0,v1
lw s1,0x20(sp)
sltiu v0,v0,0x1
lw s0,0x1c(sp)
jr ra
_addiu sp,sp,0x28
lw a0,-0x7fc4(gp)
lw t9,-0x793c(gp)
addiu t9,t9,-0x1198
bal 0x0006ee68
_addiu a0,a0,0x760c
(translation_unit "ulonglong FUN_000737b8(undefined4 param_1)\n\n{\n  ulonglong uVar1;\n  int iVar2;\n  int *piVar3;\n  undefined *puVar4;\n  longlong lVar5;\n  int local_1c;\n  undefined *local_18;\n  undefined *local_14;\n  int local_c;\n  \n  puVar4 = PTR___stack_chk_guard_0012b14c;\n  local_c = *(int *)PTR___stack_chk_guard_0012b14c;\n  local_14 = PTR_LAB_0012a814 + -0xb88;\n  local_18 = PTR_LAB_0012a814 + 0x154c;\n  *(int *)(*(int *)PTR_ash_ptr_to_globals_misc_0012a84c + 0x24) =\n       *(int *)(*(int *)PTR_ash_ptr_to_globals_misc_0012a84c + 0x24) + 1;\n  uVar1 = FUN_00083fb4(&local_1c,param_1);\n  if (local_1c != 0) {\n                    /* WARNING: Subroutine does not return */\n    FUN_0006ee68();\n  }\n  FUN_0006d568();\n  if (local_c == *(int *)puVar4) {\n    return uVar1;\n  }\n  iVar2 = local_c;\n  puVar4 = PTR___stack_chk_fail_0012b0c8;\n  (*(code *)PTR___stack_chk_fail_0012b0c8)();\n  if (*(int *)(iVar2 + 4) != 0) {\n    piVar3 = (int *)(iVar2 + 4);\n    do {\n      piVar3 = piVar3 + 1;\n      lVar5 = FUN_000737b8();\n    } while (*piVar3 != 0);\n    return (ulonglong)CONCAT14(lVar5 == 0,(int)lVar5);\n  }\n                    /* WARNING: Subroutine does not return */\n  FUN_0006ee68(*(int *)(puVar4 + 0xb690c) + 0x760c);\n}\n\n" (function_definition "ulonglong FUN_000737b8(undefined4 param_1)\n\n{\n  ulonglong uVar1;\n  int iVar2;\n  int *piVar3;\n  undefined *puVar4;\n  longlong lVar5;\n  int local_1c;\n  undefined *local_18;\n  undefined *local_14;\n  int local_c;\n  \n  puVar4 = PTR___stack_chk_guard_0012b14c;\n  local_c = *(int *)PTR___stack_chk_guard_0012b14c;\n  local_14 = PTR_LAB_0012a814 + -0xb88;\n  local_18 = PTR_LAB_0012a814 + 0x154c;\n  *(int *)(*(int *)PTR_ash_ptr_to_globals_misc_0012a84c + 0x24) =\n       *(int *)(*(int *)PTR_ash_ptr_to_globals_misc_0012a84c + 0x24) + 1;\n  uVar1 = FUN_00083fb4(&local_1c,param_1);\n  if (local_1c != 0) {\n                    /* WARNING: Subroutine does not return */\n    FUN_0006ee68();\n  }\n  FUN_0006d568();\n  if (local_c == *(int *)puVar4) {\n    return uVar1;\n  }\n  iVar2 = local_c;\n  puVar4 = PTR___stack_chk_fail_0012b0c8;\n  (*(code *)PTR___stack_chk_fail_0012b0c8)();\n  if (*(int *)(iVar2 + 4) != 0) {\n    piVar3 = (int *)(iVar2 + 4);\n    do {\n      piVar3 = piVar3 + 1;\n      lVar5 = FUN_000737b8();\n    } while (*piVar3 != 0);\n    return (ulonglong)CONCAT14(lVar5 == 0,(int)lVar5);\n  }\n                    /* WARNING: Subroutine does not return */\n  FUN_0006ee68(*(int *)(puVar4 + 0xb690c) + 0x760c);\n}" type_identifier (function_declarator "FUN_000737b8(undefined4 param_1)" identifier (parameter_list "(undefined4 param_1)" ( (parameter_declaration "undefined4 param_1" type_identifier identifier) ))) (compound_statement "{\n  ulonglong uVar1;\n  int iVar2;\n  int *piVar3;\n  undefined *puVar4;\n  longlong lVar5;\n  int local_1c;\n  undefined *local_18;\n  undefined *local_14;\n  int local_c;\n  \n  puVar4 = PTR___stack_chk_guard_0012b14c;\n  local_c = *(int *)PTR___stack_chk_guard_0012b14c;\n  local_14 = PTR_LAB_0012a814 + -0xb88;\n  local_18 = PTR_LAB_0012a814 + 0x154c;\n  *(int *)(*(int *)PTR_ash_ptr_to_globals_misc_0012a84c + 0x24) =\n       *(int *)(*(int *)PTR_ash_ptr_to_globals_misc_0012a84c + 0x24) + 1;\n  uVar1 = FUN_00083fb4(&local_1c,param_1);\n  if (local_1c != 0) {\n                    /* WARNING: Subroutine does not return */\n    FUN_0006ee68();\n  }\n  FUN_0006d568();\n  if (local_c == *(int *)puVar4) {\n    return uVar1;\n  }\n  iVar2 = local_c;\n  puVar4 = PTR___stack_chk_fail_0012b0c8;\n  (*(code *)PTR___stack_chk_fail_0012b0c8)();\n  if (*(int *)(iVar2 + 4) != 0) {\n    piVar3 = (int *)(iVar2 + 4);\n    do {\n      piVar3 = piVar3 + 1;\n      lVar5 = FUN_000737b8();\n    } while (*piVar3 != 0);\n    return (ulonglong)CONCAT14(lVar5 == 0,(int)lVar5);\n  }\n                    /* WARNING: Subroutine does not return */\n  FUN_0006ee68(*(int *)(puVar4 + 0xb690c) + 0x760c);\n}" { (declaration "ulonglong uVar1;" type_identifier identifier ;) (declaration "int iVar2;" primitive_type identifier ;) (declaration "int *piVar3;" primitive_type (pointer_declarator "*piVar3" * identifier) ;) (declaration "undefined *puVar4;" type_identifier (pointer_declarator "*puVar4" * identifier) ;) (declaration "longlong lVar5;" type_identifier identifier ;) (declaration "int local_1c;" primitive_type identifier ;) (declaration "undefined *local_18;" type_identifier (pointer_declarator "*local_18" * identifier) ;) (declaration "undefined *local_14;" type_identifier (pointer_declarator "*local_14" * identifier) ;) (declaration "int local_c;" primitive_type identifier ;) (expression_statement "puVar4 = PTR___stack_chk_guard_0012b14c;" (assignment_expression "puVar4 = PTR___stack_chk_guard_0012b14c" identifier = identifier) ;) (expression_statement "local_c = *(int *)PTR___stack_chk_guard_0012b14c;" (assignment_expression "local_c = *(int *)PTR___stack_chk_guard_0012b14c" identifier = (pointer_expression "*(int *)PTR___stack_chk_guard_0012b14c" * (cast_expression "(int *)PTR___stack_chk_guard_0012b14c" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) identifier))) ;) (expression_statement "local_14 = PTR_LAB_0012a814 + -0xb88;" (assignment_expression "local_14 = PTR_LAB_0012a814 + -0xb88" identifier = (binary_expression "PTR_LAB_0012a814 + -0xb88" identifier + number_literal)) ;) (expression_statement "local_18 = PTR_LAB_0012a814 + 0x154c;" (assignment_expression "local_18 = PTR_LAB_0012a814 + 0x154c" identifier = (binary_expression "PTR_LAB_0012a814 + 0x154c" identifier + number_literal)) ;) (expression_statement "*(int *)(*(int *)PTR_ash_ptr_to_globals_misc_0012a84c + 0x24) =\n       *(int *)(*(int *)PTR_ash_ptr_to_globals_misc_0012a84c + 0x24) + 1;" (assignment_expression "*(int *)(*(int *)PTR_ash_ptr_to_globals_misc_0012a84c + 0x24) =\n       *(int *)(*(int *)PTR_ash_ptr_to_globals_misc_0012a84c + 0x24) + 1" (pointer_expression "*(int *)(*(int *)PTR_ash_ptr_to_globals_misc_0012a84c + 0x24)" * (cast_expression "(int *)(*(int *)PTR_ash_ptr_to_globals_misc_0012a84c + 0x24)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(*(int *)PTR_ash_ptr_to_globals_misc_0012a84c + 0x24)" ( (binary_expression "*(int *)PTR_ash_ptr_to_globals_misc_0012a84c + 0x24" (pointer_expression "*(int *)PTR_ash_ptr_to_globals_misc_0012a84c" * (cast_expression "(int *)PTR_ash_ptr_to_globals_misc_0012a84c" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) identifier)) + number_literal) )))) = (binary_expression "*(int *)(*(int *)PTR_ash_ptr_to_globals_misc_0012a84c + 0x24) + 1" (pointer_expression "*(int *)(*(int *)PTR_ash_ptr_to_globals_misc_0012a84c + 0x24)" * (cast_expression "(int *)(*(int *)PTR_ash_ptr_to_globals_misc_0012a84c + 0x24)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(*(int *)PTR_ash_ptr_to_globals_misc_0012a84c + 0x24)" ( (binary_expression "*(int *)PTR_ash_ptr_to_globals_misc_0012a84c + 0x24" (pointer_expression "*(int *)PTR_ash_ptr_to_globals_misc_0012a84c" * (cast_expression "(int *)PTR_ash_ptr_to_globals_misc_0012a84c" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) identifier)) + number_literal) )))) + number_literal)) ;) (expression_statement "uVar1 = FUN_00083fb4(&local_1c,param_1);" (assignment_expression "uVar1 = FUN_00083fb4(&local_1c,param_1)" identifier = (call_expression "FUN_00083fb4(&local_1c,param_1)" identifier (argument_list "(&local_1c,param_1)" ( (pointer_expression "&local_1c" & identifier) , identifier )))) ;) (if_statement "if (local_1c != 0) {\n                    /* WARNING: Subroutine does not return */\n    FUN_0006ee68();\n  }" if (parenthesized_expression "(local_1c != 0)" ( (binary_expression "local_1c != 0" identifier != number_literal) )) (compound_statement "{\n                    /* WARNING: Subroutine does not return */\n    FUN_0006ee68();\n  }" { comment (expression_statement "FUN_0006ee68();" (call_expression "FUN_0006ee68()" identifier (argument_list "()" ( ))) ;) })) (expression_statement "FUN_0006d568();" (call_expression "FUN_0006d568()" identifier (argument_list "()" ( ))) ;) (if_statement "if (local_c == *(int *)puVar4) {\n    return uVar1;\n  }" if (parenthesized_expression "(local_c == *(int *)puVar4)" ( (binary_expression "local_c == *(int *)puVar4" identifier == (pointer_expression "*(int *)puVar4" * (cast_expression "(int *)puVar4" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) identifier))) )) (compound_statement "{\n    return uVar1;\n  }" { (return_statement "return uVar1;" return identifier ;) })) (expression_statement "iVar2 = local_c;" (assignment_expression "iVar2 = local_c" identifier = identifier) ;) (expression_statement "puVar4 = PTR___stack_chk_fail_0012b0c8;" (assignment_expression "puVar4 = PTR___stack_chk_fail_0012b0c8" identifier = identifier) ;) (expression_statement "(*(code *)PTR___stack_chk_fail_0012b0c8)();" (call_expression "(*(code *)PTR___stack_chk_fail_0012b0c8)()" (parenthesized_expression "(*(code *)PTR___stack_chk_fail_0012b0c8)" ( (pointer_expression "*(code *)PTR___stack_chk_fail_0012b0c8" * (cast_expression "(code *)PTR___stack_chk_fail_0012b0c8" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "()" ( ))) ;) (if_statement "if (*(int *)(iVar2 + 4) != 0) {\n    piVar3 = (int *)(iVar2 + 4);\n    do {\n      piVar3 = piVar3 + 1;\n      lVar5 = FUN_000737b8();\n    } while (*piVar3 != 0);\n    return (ulonglong)CONCAT14(lVar5 == 0,(int)lVar5);\n  }" if (parenthesized_expression "(*(int *)(iVar2 + 4) != 0)" ( (binary_expression "*(int *)(iVar2 + 4) != 0" (pointer_expression "*(int *)(iVar2 + 4)" * (cast_expression "(int *)(iVar2 + 4)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar2 + 4)" ( (binary_expression "iVar2 + 4" identifier + number_literal) )))) != number_literal) )) (compound_statement "{\n    piVar3 = (int *)(iVar2 + 4);\n    do {\n      piVar3 = piVar3 + 1;\n      lVar5 = FUN_000737b8();\n    } while (*piVar3 != 0);\n    return (ulonglong)CONCAT14(lVar5 == 0,(int)lVar5);\n  }" { (expression_statement "piVar3 = (int *)(iVar2 + 4);" (assignment_expression "piVar3 = (int *)(iVar2 + 4)" identifier = (cast_expression "(int *)(iVar2 + 4)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar2 + 4)" ( (binary_expression "iVar2 + 4" identifier + number_literal) )))) ;) (do_statement "do {\n      piVar3 = piVar3 + 1;\n      lVar5 = FUN_000737b8();\n    } while (*piVar3 != 0);" do (compound_statement "{\n      piVar3 = piVar3 + 1;\n      lVar5 = FUN_000737b8();\n    }" { (expression_statement "piVar3 = piVar3 + 1;" (assignment_expression "piVar3 = piVar3 + 1" identifier = (binary_expression "piVar3 + 1" identifier + number_literal)) ;) (expression_statement "lVar5 = FUN_000737b8();" (assignment_expression "lVar5 = FUN_000737b8()" identifier = (call_expression "FUN_000737b8()" identifier (argument_list "()" ( )))) ;) }) while (parenthesized_expression "(*piVar3 != 0)" ( (binary_expression "*piVar3 != 0" (pointer_expression "*piVar3" * identifier) != number_literal) )) ;) (return_statement "return (ulonglong)CONCAT14(lVar5 == 0,(int)lVar5);" return (cast_expression "(ulonglong)CONCAT14(lVar5 == 0,(int)lVar5)" ( (type_descriptor "ulonglong" type_identifier) ) (call_expression "CONCAT14(lVar5 == 0,(int)lVar5)" identifier (argument_list "(lVar5 == 0,(int)lVar5)" ( (binary_expression "lVar5 == 0" identifier == number_literal) , (cast_expression "(int)lVar5" ( (type_descriptor "int" primitive_type) ) identifier) )))) ;) })) comment (expression_statement "FUN_0006ee68(*(int *)(puVar4 + 0xb690c) + 0x760c);" (call_expression "FUN_0006ee68(*(int *)(puVar4 + 0xb690c) + 0x760c)" identifier (argument_list "(*(int *)(puVar4 + 0xb690c) + 0x760c)" ( (binary_expression "*(int *)(puVar4 + 0xb690c) + 0x760c" (pointer_expression "*(int *)(puVar4 + 0xb690c)" * (cast_expression "(int *)(puVar4 + 0xb690c)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(puVar4 + 0xb690c)" ( (binary_expression "puVar4 + 0xb690c" identifier + number_literal) )))) + number_literal) ))) ;) })))
(translation_unit "arith_t ash_arith(char *s)\n\n{\n  int iVar1;\n  char *s_00;\n  undefined4 *puVar2;\n  undefined *puVar3;\n  arith_t aVar4;\n  arith_state_t math_state;\n  \n  puVar3 = PTR___stack_chk_guard_0012b14c;\n  iVar1 = *(int *)PTR___stack_chk_guard_0012b14c;\n  math_state.setvar = (arith_var_set_t)(PTR_LAB_0012a814 + -0xb88);\n  math_state.lookupvar = (arith_var_lookup_t)(PTR_LAB_0012a814 + 0x154c);\n  *(int *)(*(int *)PTR_ash_ptr_to_globals_misc_0012a84c + 0x24) =\n       *(int *)(*(int *)PTR_ash_ptr_to_globals_misc_0012a84c + 0x24) + 1;\n  aVar4 = arith(&math_state,s);\n  if (math_state.errmsg != (char *)0x0) {\n                    /* WARNING: Subroutine does not return */\n    ash_msg_and_raise_error(math_state.errmsg);\n  }\n  int_on();\n  if (iVar1 == *(int *)puVar3) {\n    return aVar4;\n  }\n  puVar3 = PTR___stack_chk_fail_0012b0c8;\n  (*(code *)PTR___stack_chk_fail_0012b0c8)();\n  s_00 = *(char **)(iVar1 + 4);\n  if (s_00 != (char *)0x0) {\n    puVar2 = (undefined4 *)(iVar1 + 4);\n    do {\n      puVar2 = puVar2 + 1;\n      aVar4 = ash_arith(s_00);\n      s_00 = (char *)*puVar2;\n    } while (s_00 != (char *)0x0);\n    return (arith_t)CONCAT14(aVar4 == 0,(int)aVar4);\n  }\n                    /* WARNING: Subroutine does not return */\n  ash_msg_and_raise_error((char *)(*(int *)(puVar3 + 0xb690c) + 0x760c));\n}\n\n" (function_definition "arith_t ash_arith(char *s)\n\n{\n  int iVar1;\n  char *s_00;\n  undefined4 *puVar2;\n  undefined *puVar3;\n  arith_t aVar4;\n  arith_state_t math_state;\n  \n  puVar3 = PTR___stack_chk_guard_0012b14c;\n  iVar1 = *(int *)PTR___stack_chk_guard_0012b14c;\n  math_state.setvar = (arith_var_set_t)(PTR_LAB_0012a814 + -0xb88);\n  math_state.lookupvar = (arith_var_lookup_t)(PTR_LAB_0012a814 + 0x154c);\n  *(int *)(*(int *)PTR_ash_ptr_to_globals_misc_0012a84c + 0x24) =\n       *(int *)(*(int *)PTR_ash_ptr_to_globals_misc_0012a84c + 0x24) + 1;\n  aVar4 = arith(&math_state,s);\n  if (math_state.errmsg != (char *)0x0) {\n                    /* WARNING: Subroutine does not return */\n    ash_msg_and_raise_error(math_state.errmsg);\n  }\n  int_on();\n  if (iVar1 == *(int *)puVar3) {\n    return aVar4;\n  }\n  puVar3 = PTR___stack_chk_fail_0012b0c8;\n  (*(code *)PTR___stack_chk_fail_0012b0c8)();\n  s_00 = *(char **)(iVar1 + 4);\n  if (s_00 != (char *)0x0) {\n    puVar2 = (undefined4 *)(iVar1 + 4);\n    do {\n      puVar2 = puVar2 + 1;\n      aVar4 = ash_arith(s_00);\n      s_00 = (char *)*puVar2;\n    } while (s_00 != (char *)0x0);\n    return (arith_t)CONCAT14(aVar4 == 0,(int)aVar4);\n  }\n                    /* WARNING: Subroutine does not return */\n  ash_msg_and_raise_error((char *)(*(int *)(puVar3 + 0xb690c) + 0x760c));\n}" type_identifier (function_declarator "ash_arith(char *s)" identifier (parameter_list "(char *s)" ( (parameter_declaration "char *s" primitive_type (pointer_declarator "*s" * identifier)) ))) (compound_statement "{\n  int iVar1;\n  char *s_00;\n  undefined4 *puVar2;\n  undefined *puVar3;\n  arith_t aVar4;\n  arith_state_t math_state;\n  \n  puVar3 = PTR___stack_chk_guard_0012b14c;\n  iVar1 = *(int *)PTR___stack_chk_guard_0012b14c;\n  math_state.setvar = (arith_var_set_t)(PTR_LAB_0012a814 + -0xb88);\n  math_state.lookupvar = (arith_var_lookup_t)(PTR_LAB_0012a814 + 0x154c);\n  *(int *)(*(int *)PTR_ash_ptr_to_globals_misc_0012a84c + 0x24) =\n       *(int *)(*(int *)PTR_ash_ptr_to_globals_misc_0012a84c + 0x24) + 1;\n  aVar4 = arith(&math_state,s);\n  if (math_state.errmsg != (char *)0x0) {\n                    /* WARNING: Subroutine does not return */\n    ash_msg_and_raise_error(math_state.errmsg);\n  }\n  int_on();\n  if (iVar1 == *(int *)puVar3) {\n    return aVar4;\n  }\n  puVar3 = PTR___stack_chk_fail_0012b0c8;\n  (*(code *)PTR___stack_chk_fail_0012b0c8)();\n  s_00 = *(char **)(iVar1 + 4);\n  if (s_00 != (char *)0x0) {\n    puVar2 = (undefined4 *)(iVar1 + 4);\n    do {\n      puVar2 = puVar2 + 1;\n      aVar4 = ash_arith(s_00);\n      s_00 = (char *)*puVar2;\n    } while (s_00 != (char *)0x0);\n    return (arith_t)CONCAT14(aVar4 == 0,(int)aVar4);\n  }\n                    /* WARNING: Subroutine does not return */\n  ash_msg_and_raise_error((char *)(*(int *)(puVar3 + 0xb690c) + 0x760c));\n}" { (declaration "int iVar1;" primitive_type identifier ;) (declaration "char *s_00;" primitive_type (pointer_declarator "*s_00" * identifier) ;) (declaration "undefined4 *puVar2;" type_identifier (pointer_declarator "*puVar2" * identifier) ;) (declaration "undefined *puVar3;" type_identifier (pointer_declarator "*puVar3" * identifier) ;) (declaration "arith_t aVar4;" type_identifier identifier ;) (declaration "arith_state_t math_state;" type_identifier identifier ;) (expression_statement "puVar3 = PTR___stack_chk_guard_0012b14c;" (assignment_expression "puVar3 = PTR___stack_chk_guard_0012b14c" identifier = identifier) ;) (expression_statement "iVar1 = *(int *)PTR___stack_chk_guard_0012b14c;" (assignment_expression "iVar1 = *(int *)PTR___stack_chk_guard_0012b14c" identifier = (pointer_expression "*(int *)PTR___stack_chk_guard_0012b14c" * (cast_expression "(int *)PTR___stack_chk_guard_0012b14c" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) identifier))) ;) (expression_statement "math_state.setvar = (arith_var_set_t)(PTR_LAB_0012a814 + -0xb88);" (assignment_expression "math_state.setvar = (arith_var_set_t)(PTR_LAB_0012a814 + -0xb88)" (field_expression "math_state.setvar" identifier . field_identifier) = (call_expression "(arith_var_set_t)(PTR_LAB_0012a814 + -0xb88)" (parenthesized_expression "(arith_var_set_t)" ( identifier )) (argument_list "(PTR_LAB_0012a814 + -0xb88)" ( (binary_expression "PTR_LAB_0012a814 + -0xb88" identifier + number_literal) )))) ;) (expression_statement "math_state.lookupvar = (arith_var_lookup_t)(PTR_LAB_0012a814 + 0x154c);" (assignment_expression "math_state.lookupvar = (arith_var_lookup_t)(PTR_LAB_0012a814 + 0x154c)" (field_expression "math_state.lookupvar" identifier . field_identifier) = (call_expression "(arith_var_lookup_t)(PTR_LAB_0012a814 + 0x154c)" (parenthesized_expression "(arith_var_lookup_t)" ( identifier )) (argument_list "(PTR_LAB_0012a814 + 0x154c)" ( (binary_expression "PTR_LAB_0012a814 + 0x154c" identifier + number_literal) )))) ;) (expression_statement "*(int *)(*(int *)PTR_ash_ptr_to_globals_misc_0012a84c + 0x24) =\n       *(int *)(*(int *)PTR_ash_ptr_to_globals_misc_0012a84c + 0x24) + 1;" (assignment_expression "*(int *)(*(int *)PTR_ash_ptr_to_globals_misc_0012a84c + 0x24) =\n       *(int *)(*(int *)PTR_ash_ptr_to_globals_misc_0012a84c + 0x24) + 1" (pointer_expression "*(int *)(*(int *)PTR_ash_ptr_to_globals_misc_0012a84c + 0x24)" * (cast_expression "(int *)(*(int *)PTR_ash_ptr_to_globals_misc_0012a84c + 0x24)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(*(int *)PTR_ash_ptr_to_globals_misc_0012a84c + 0x24)" ( (binary_expression "*(int *)PTR_ash_ptr_to_globals_misc_0012a84c + 0x24" (pointer_expression "*(int *)PTR_ash_ptr_to_globals_misc_0012a84c" * (cast_expression "(int *)PTR_ash_ptr_to_globals_misc_0012a84c" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) identifier)) + number_literal) )))) = (binary_expression "*(int *)(*(int *)PTR_ash_ptr_to_globals_misc_0012a84c + 0x24) + 1" (pointer_expression "*(int *)(*(int *)PTR_ash_ptr_to_globals_misc_0012a84c + 0x24)" * (cast_expression "(int *)(*(int *)PTR_ash_ptr_to_globals_misc_0012a84c + 0x24)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(*(int *)PTR_ash_ptr_to_globals_misc_0012a84c + 0x24)" ( (binary_expression "*(int *)PTR_ash_ptr_to_globals_misc_0012a84c + 0x24" (pointer_expression "*(int *)PTR_ash_ptr_to_globals_misc_0012a84c" * (cast_expression "(int *)PTR_ash_ptr_to_globals_misc_0012a84c" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) identifier)) + number_literal) )))) + number_literal)) ;) (expression_statement "aVar4 = arith(&math_state,s);" (assignment_expression "aVar4 = arith(&math_state,s)" identifier = (call_expression "arith(&math_state,s)" identifier (argument_list "(&math_state,s)" ( (pointer_expression "&math_state" & identifier) , identifier )))) ;) (if_statement "if (math_state.errmsg != (char *)0x0) {\n                    /* WARNING: Subroutine does not return */\n    ash_msg_and_raise_error(math_state.errmsg);\n  }" if (parenthesized_expression "(math_state.errmsg != (char *)0x0)" ( (binary_expression "math_state.errmsg != (char *)0x0" (field_expression "math_state.errmsg" identifier . field_identifier) != (cast_expression "(char *)0x0" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n                    /* WARNING: Subroutine does not return */\n    ash_msg_and_raise_error(math_state.errmsg);\n  }" { comment (expression_statement "ash_msg_and_raise_error(math_state.errmsg);" (call_expression "ash_msg_and_raise_error(math_state.errmsg)" identifier (argument_list "(math_state.errmsg)" ( (field_expression "math_state.errmsg" identifier . field_identifier) ))) ;) })) (expression_statement "int_on();" (call_expression "int_on()" identifier (argument_list "()" ( ))) ;) (if_statement "if (iVar1 == *(int *)puVar3) {\n    return aVar4;\n  }" if (parenthesized_expression "(iVar1 == *(int *)puVar3)" ( (binary_expression "iVar1 == *(int *)puVar3" identifier == (pointer_expression "*(int *)puVar3" * (cast_expression "(int *)puVar3" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) identifier))) )) (compound_statement "{\n    return aVar4;\n  }" { (return_statement "return aVar4;" return identifier ;) })) (expression_statement "puVar3 = PTR___stack_chk_fail_0012b0c8;" (assignment_expression "puVar3 = PTR___stack_chk_fail_0012b0c8" identifier = identifier) ;) (expression_statement "(*(code *)PTR___stack_chk_fail_0012b0c8)();" (call_expression "(*(code *)PTR___stack_chk_fail_0012b0c8)()" (parenthesized_expression "(*(code *)PTR___stack_chk_fail_0012b0c8)" ( (pointer_expression "*(code *)PTR___stack_chk_fail_0012b0c8" * (cast_expression "(code *)PTR___stack_chk_fail_0012b0c8" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "()" ( ))) ;) (expression_statement "s_00 = *(char **)(iVar1 + 4);" (assignment_expression "s_00 = *(char **)(iVar1 + 4)" identifier = (pointer_expression "*(char **)(iVar1 + 4)" * (cast_expression "(char **)(iVar1 + 4)" ( (type_descriptor "char **" primitive_type (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(iVar1 + 4)" ( (binary_expression "iVar1 + 4" identifier + number_literal) ))))) ;) (if_statement "if (s_00 != (char *)0x0) {\n    puVar2 = (undefined4 *)(iVar1 + 4);\n    do {\n      puVar2 = puVar2 + 1;\n      aVar4 = ash_arith(s_00);\n      s_00 = (char *)*puVar2;\n    } while (s_00 != (char *)0x0);\n    return (arith_t)CONCAT14(aVar4 == 0,(int)aVar4);\n  }" if (parenthesized_expression "(s_00 != (char *)0x0)" ( (binary_expression "s_00 != (char *)0x0" identifier != (cast_expression "(char *)0x0" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n    puVar2 = (undefined4 *)(iVar1 + 4);\n    do {\n      puVar2 = puVar2 + 1;\n      aVar4 = ash_arith(s_00);\n      s_00 = (char *)*puVar2;\n    } while (s_00 != (char *)0x0);\n    return (arith_t)CONCAT14(aVar4 == 0,(int)aVar4);\n  }" { (expression_statement "puVar2 = (undefined4 *)(iVar1 + 4);" (assignment_expression "puVar2 = (undefined4 *)(iVar1 + 4)" identifier = (cast_expression "(undefined4 *)(iVar1 + 4)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar1 + 4)" ( (binary_expression "iVar1 + 4" identifier + number_literal) )))) ;) (do_statement "do {\n      puVar2 = puVar2 + 1;\n      aVar4 = ash_arith(s_00);\n      s_00 = (char *)*puVar2;\n    } while (s_00 != (char *)0x0);" do (compound_statement "{\n      puVar2 = puVar2 + 1;\n      aVar4 = ash_arith(s_00);\n      s_00 = (char *)*puVar2;\n    }" { (expression_statement "puVar2 = puVar2 + 1;" (assignment_expression "puVar2 = puVar2 + 1" identifier = (binary_expression "puVar2 + 1" identifier + number_literal)) ;) (expression_statement "aVar4 = ash_arith(s_00);" (assignment_expression "aVar4 = ash_arith(s_00)" identifier = (call_expression "ash_arith(s_00)" identifier (argument_list "(s_00)" ( identifier )))) ;) (expression_statement "s_00 = (char *)*puVar2;" (assignment_expression "s_00 = (char *)*puVar2" identifier = (cast_expression "(char *)*puVar2" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (pointer_expression "*puVar2" * identifier))) ;) }) while (parenthesized_expression "(s_00 != (char *)0x0)" ( (binary_expression "s_00 != (char *)0x0" identifier != (cast_expression "(char *)0x0" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) ;) (return_statement "return (arith_t)CONCAT14(aVar4 == 0,(int)aVar4);" return (cast_expression "(arith_t)CONCAT14(aVar4 == 0,(int)aVar4)" ( (type_descriptor "arith_t" type_identifier) ) (call_expression "CONCAT14(aVar4 == 0,(int)aVar4)" identifier (argument_list "(aVar4 == 0,(int)aVar4)" ( (binary_expression "aVar4 == 0" identifier == number_literal) , (cast_expression "(int)aVar4" ( (type_descriptor "int" primitive_type) ) identifier) )))) ;) })) comment (expression_statement "ash_msg_and_raise_error((char *)(*(int *)(puVar3 + 0xb690c) + 0x760c));" (call_expression "ash_msg_and_raise_error((char *)(*(int *)(puVar3 + 0xb690c) + 0x760c))" identifier (argument_list "((char *)(*(int *)(puVar3 + 0xb690c) + 0x760c))" ( (cast_expression "(char *)(*(int *)(puVar3 + 0xb690c) + 0x760c)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(*(int *)(puVar3 + 0xb690c) + 0x760c)" ( (binary_expression "*(int *)(puVar3 + 0xb690c) + 0x760c" (pointer_expression "*(int *)(puVar3 + 0xb690c)" * (cast_expression "(int *)(puVar3 + 0xb690c)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(puVar3 + 0xb690c)" ( (binary_expression "puVar3 + 0xb690c" identifier + number_literal) )))) + number_literal) ))) ))) ;) })))
(translation_unit "ulonglong FUN_000737b8(undefined4 param_1)\n\n{\n  ulonglong uVar1;\n  int iVar2;\n  int *piVar3;\n  undefined *puVar4;\n  longlong lVar5;\n  int local_1c;\n  undefined *local_18;\n  undefined *local_14;\n  int local_c;\n  \n  puVar4 = PTR___stack_chk_guard_0012b14c;\n  local_c = *(int *)PTR___stack_chk_guard_0012b14c;\n  local_14 = PTR_LAB_0012a814 + -0xb88;\n  local_18 = PTR_LAB_0012a814 + 0x154c;\n  *(int *)(*(int *)PTR_ash_ptr_to_globals_misc_0012a84c + 0x24) =\n       *(int *)(*(int *)PTR_ash_ptr_to_globals_misc_0012a84c + 0x24) + 1;\n  uVar1 = FUN_00083fb4(&local_1c,param_1);\n  if (local_1c != 0) {\n                    \n    FUN_0006ee68();\n  }\n  FUN_0006d568();\n  if (local_c == *(int *)puVar4) {\n    return uVar1;\n  }\n  iVar2 = local_c;\n  puVar4 = PTR___stack_chk_fail_0012b0c8;\n  (*(code *)PTR___stack_chk_fail_0012b0c8)();\n  if (*(int *)(iVar2 + 4) != 0) {\n    piVar3 = (int *)(iVar2 + 4);\n    do {\n      piVar3 = piVar3 + 1;\n      lVar5 = FUN_000737b8();\n    } while (*piVar3 != 0);\n    return (ulonglong)CONCAT14(lVar5 == 0,(int)lVar5);\n  }\n                    \n  FUN_0006ee68(*(int *)(puVar4 + 0xb690c) + 0x760c);\n}\n\n" (function_definition "ulonglong FUN_000737b8(undefined4 param_1)\n\n{\n  ulonglong uVar1;\n  int iVar2;\n  int *piVar3;\n  undefined *puVar4;\n  longlong lVar5;\n  int local_1c;\n  undefined *local_18;\n  undefined *local_14;\n  int local_c;\n  \n  puVar4 = PTR___stack_chk_guard_0012b14c;\n  local_c = *(int *)PTR___stack_chk_guard_0012b14c;\n  local_14 = PTR_LAB_0012a814 + -0xb88;\n  local_18 = PTR_LAB_0012a814 + 0x154c;\n  *(int *)(*(int *)PTR_ash_ptr_to_globals_misc_0012a84c + 0x24) =\n       *(int *)(*(int *)PTR_ash_ptr_to_globals_misc_0012a84c + 0x24) + 1;\n  uVar1 = FUN_00083fb4(&local_1c,param_1);\n  if (local_1c != 0) {\n                    \n    FUN_0006ee68();\n  }\n  FUN_0006d568();\n  if (local_c == *(int *)puVar4) {\n    return uVar1;\n  }\n  iVar2 = local_c;\n  puVar4 = PTR___stack_chk_fail_0012b0c8;\n  (*(code *)PTR___stack_chk_fail_0012b0c8)();\n  if (*(int *)(iVar2 + 4) != 0) {\n    piVar3 = (int *)(iVar2 + 4);\n    do {\n      piVar3 = piVar3 + 1;\n      lVar5 = FUN_000737b8();\n    } while (*piVar3 != 0);\n    return (ulonglong)CONCAT14(lVar5 == 0,(int)lVar5);\n  }\n                    \n  FUN_0006ee68(*(int *)(puVar4 + 0xb690c) + 0x760c);\n}" type_identifier (function_declarator "FUN_000737b8(undefined4 param_1)" identifier (parameter_list "(undefined4 param_1)" ( (parameter_declaration "undefined4 param_1" type_identifier identifier) ))) (compound_statement "{\n  ulonglong uVar1;\n  int iVar2;\n  int *piVar3;\n  undefined *puVar4;\n  longlong lVar5;\n  int local_1c;\n  undefined *local_18;\n  undefined *local_14;\n  int local_c;\n  \n  puVar4 = PTR___stack_chk_guard_0012b14c;\n  local_c = *(int *)PTR___stack_chk_guard_0012b14c;\n  local_14 = PTR_LAB_0012a814 + -0xb88;\n  local_18 = PTR_LAB_0012a814 + 0x154c;\n  *(int *)(*(int *)PTR_ash_ptr_to_globals_misc_0012a84c + 0x24) =\n       *(int *)(*(int *)PTR_ash_ptr_to_globals_misc_0012a84c + 0x24) + 1;\n  uVar1 = FUN_00083fb4(&local_1c,param_1);\n  if (local_1c != 0) {\n                    \n    FUN_0006ee68();\n  }\n  FUN_0006d568();\n  if (local_c == *(int *)puVar4) {\n    return uVar1;\n  }\n  iVar2 = local_c;\n  puVar4 = PTR___stack_chk_fail_0012b0c8;\n  (*(code *)PTR___stack_chk_fail_0012b0c8)();\n  if (*(int *)(iVar2 + 4) != 0) {\n    piVar3 = (int *)(iVar2 + 4);\n    do {\n      piVar3 = piVar3 + 1;\n      lVar5 = FUN_000737b8();\n    } while (*piVar3 != 0);\n    return (ulonglong)CONCAT14(lVar5 == 0,(int)lVar5);\n  }\n                    \n  FUN_0006ee68(*(int *)(puVar4 + 0xb690c) + 0x760c);\n}" { (declaration "ulonglong uVar1;" type_identifier identifier ;) (declaration "int iVar2;" primitive_type identifier ;) (declaration "int *piVar3;" primitive_type (pointer_declarator "*piVar3" * identifier) ;) (declaration "undefined *puVar4;" type_identifier (pointer_declarator "*puVar4" * identifier) ;) (declaration "longlong lVar5;" type_identifier identifier ;) (declaration "int local_1c;" primitive_type identifier ;) (declaration "undefined *local_18;" type_identifier (pointer_declarator "*local_18" * identifier) ;) (declaration "undefined *local_14;" type_identifier (pointer_declarator "*local_14" * identifier) ;) (declaration "int local_c;" primitive_type identifier ;) (expression_statement "puVar4 = PTR___stack_chk_guard_0012b14c;" (assignment_expression "puVar4 = PTR___stack_chk_guard_0012b14c" identifier = identifier) ;) (expression_statement "local_c = *(int *)PTR___stack_chk_guard_0012b14c;" (assignment_expression "local_c = *(int *)PTR___stack_chk_guard_0012b14c" identifier = (pointer_expression "*(int *)PTR___stack_chk_guard_0012b14c" * (cast_expression "(int *)PTR___stack_chk_guard_0012b14c" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) identifier))) ;) (expression_statement "local_14 = PTR_LAB_0012a814 + -0xb88;" (assignment_expression "local_14 = PTR_LAB_0012a814 + -0xb88" identifier = (binary_expression "PTR_LAB_0012a814 + -0xb88" identifier + number_literal)) ;) (expression_statement "local_18 = PTR_LAB_0012a814 + 0x154c;" (assignment_expression "local_18 = PTR_LAB_0012a814 + 0x154c" identifier = (binary_expression "PTR_LAB_0012a814 + 0x154c" identifier + number_literal)) ;) (expression_statement "*(int *)(*(int *)PTR_ash_ptr_to_globals_misc_0012a84c + 0x24) =\n       *(int *)(*(int *)PTR_ash_ptr_to_globals_misc_0012a84c + 0x24) + 1;" (assignment_expression "*(int *)(*(int *)PTR_ash_ptr_to_globals_misc_0012a84c + 0x24) =\n       *(int *)(*(int *)PTR_ash_ptr_to_globals_misc_0012a84c + 0x24) + 1" (pointer_expression "*(int *)(*(int *)PTR_ash_ptr_to_globals_misc_0012a84c + 0x24)" * (cast_expression "(int *)(*(int *)PTR_ash_ptr_to_globals_misc_0012a84c + 0x24)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(*(int *)PTR_ash_ptr_to_globals_misc_0012a84c + 0x24)" ( (binary_expression "*(int *)PTR_ash_ptr_to_globals_misc_0012a84c + 0x24" (pointer_expression "*(int *)PTR_ash_ptr_to_globals_misc_0012a84c" * (cast_expression "(int *)PTR_ash_ptr_to_globals_misc_0012a84c" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) identifier)) + number_literal) )))) = (binary_expression "*(int *)(*(int *)PTR_ash_ptr_to_globals_misc_0012a84c + 0x24) + 1" (pointer_expression "*(int *)(*(int *)PTR_ash_ptr_to_globals_misc_0012a84c + 0x24)" * (cast_expression "(int *)(*(int *)PTR_ash_ptr_to_globals_misc_0012a84c + 0x24)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(*(int *)PTR_ash_ptr_to_globals_misc_0012a84c + 0x24)" ( (binary_expression "*(int *)PTR_ash_ptr_to_globals_misc_0012a84c + 0x24" (pointer_expression "*(int *)PTR_ash_ptr_to_globals_misc_0012a84c" * (cast_expression "(int *)PTR_ash_ptr_to_globals_misc_0012a84c" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) identifier)) + number_literal) )))) + number_literal)) ;) (expression_statement "uVar1 = FUN_00083fb4(&local_1c,param_1);" (assignment_expression "uVar1 = FUN_00083fb4(&local_1c,param_1)" identifier = (call_expression "FUN_00083fb4(&local_1c,param_1)" identifier (argument_list "(&local_1c,param_1)" ( (pointer_expression "&local_1c" & identifier) , identifier )))) ;) (if_statement "if (local_1c != 0) {\n                    \n    FUN_0006ee68();\n  }" if (parenthesized_expression "(local_1c != 0)" ( (binary_expression "local_1c != 0" identifier != number_literal) )) (compound_statement "{\n                    \n    FUN_0006ee68();\n  }" { (expression_statement "FUN_0006ee68();" (call_expression "FUN_0006ee68()" identifier (argument_list "()" ( ))) ;) })) (expression_statement "FUN_0006d568();" (call_expression "FUN_0006d568()" identifier (argument_list "()" ( ))) ;) (if_statement "if (local_c == *(int *)puVar4) {\n    return uVar1;\n  }" if (parenthesized_expression "(local_c == *(int *)puVar4)" ( (binary_expression "local_c == *(int *)puVar4" identifier == (pointer_expression "*(int *)puVar4" * (cast_expression "(int *)puVar4" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) identifier))) )) (compound_statement "{\n    return uVar1;\n  }" { (return_statement "return uVar1;" return identifier ;) })) (expression_statement "iVar2 = local_c;" (assignment_expression "iVar2 = local_c" identifier = identifier) ;) (expression_statement "puVar4 = PTR___stack_chk_fail_0012b0c8;" (assignment_expression "puVar4 = PTR___stack_chk_fail_0012b0c8" identifier = identifier) ;) (expression_statement "(*(code *)PTR___stack_chk_fail_0012b0c8)();" (call_expression "(*(code *)PTR___stack_chk_fail_0012b0c8)()" (parenthesized_expression "(*(code *)PTR___stack_chk_fail_0012b0c8)" ( (pointer_expression "*(code *)PTR___stack_chk_fail_0012b0c8" * (cast_expression "(code *)PTR___stack_chk_fail_0012b0c8" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "()" ( ))) ;) (if_statement "if (*(int *)(iVar2 + 4) != 0) {\n    piVar3 = (int *)(iVar2 + 4);\n    do {\n      piVar3 = piVar3 + 1;\n      lVar5 = FUN_000737b8();\n    } while (*piVar3 != 0);\n    return (ulonglong)CONCAT14(lVar5 == 0,(int)lVar5);\n  }" if (parenthesized_expression "(*(int *)(iVar2 + 4) != 0)" ( (binary_expression "*(int *)(iVar2 + 4) != 0" (pointer_expression "*(int *)(iVar2 + 4)" * (cast_expression "(int *)(iVar2 + 4)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar2 + 4)" ( (binary_expression "iVar2 + 4" identifier + number_literal) )))) != number_literal) )) (compound_statement "{\n    piVar3 = (int *)(iVar2 + 4);\n    do {\n      piVar3 = piVar3 + 1;\n      lVar5 = FUN_000737b8();\n    } while (*piVar3 != 0);\n    return (ulonglong)CONCAT14(lVar5 == 0,(int)lVar5);\n  }" { (expression_statement "piVar3 = (int *)(iVar2 + 4);" (assignment_expression "piVar3 = (int *)(iVar2 + 4)" identifier = (cast_expression "(int *)(iVar2 + 4)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar2 + 4)" ( (binary_expression "iVar2 + 4" identifier + number_literal) )))) ;) (do_statement "do {\n      piVar3 = piVar3 + 1;\n      lVar5 = FUN_000737b8();\n    } while (*piVar3 != 0);" do (compound_statement "{\n      piVar3 = piVar3 + 1;\n      lVar5 = FUN_000737b8();\n    }" { (expression_statement "piVar3 = piVar3 + 1;" (assignment_expression "piVar3 = piVar3 + 1" identifier = (binary_expression "piVar3 + 1" identifier + number_literal)) ;) (expression_statement "lVar5 = FUN_000737b8();" (assignment_expression "lVar5 = FUN_000737b8()" identifier = (call_expression "FUN_000737b8()" identifier (argument_list "()" ( )))) ;) }) while (parenthesized_expression "(*piVar3 != 0)" ( (binary_expression "*piVar3 != 0" (pointer_expression "*piVar3" * identifier) != number_literal) )) ;) (return_statement "return (ulonglong)CONCAT14(lVar5 == 0,(int)lVar5);" return (cast_expression "(ulonglong)CONCAT14(lVar5 == 0,(int)lVar5)" ( (type_descriptor "ulonglong" type_identifier) ) (call_expression "CONCAT14(lVar5 == 0,(int)lVar5)" identifier (argument_list "(lVar5 == 0,(int)lVar5)" ( (binary_expression "lVar5 == 0" identifier == number_literal) , (cast_expression "(int)lVar5" ( (type_descriptor "int" primitive_type) ) identifier) )))) ;) })) (expression_statement "FUN_0006ee68(*(int *)(puVar4 + 0xb690c) + 0x760c);" (call_expression "FUN_0006ee68(*(int *)(puVar4 + 0xb690c) + 0x760c)" identifier (argument_list "(*(int *)(puVar4 + 0xb690c) + 0x760c)" ( (binary_expression "*(int *)(puVar4 + 0xb690c) + 0x760c" (pointer_expression "*(int *)(puVar4 + 0xb690c)" * (cast_expression "(int *)(puVar4 + 0xb690c)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(puVar4 + 0xb690c)" ( (binary_expression "puVar4 + 0xb690c" identifier + number_literal) )))) + number_literal) ))) ;) })))
(translation_unit (function_definition TYPE (function_declarator IDENT (parameter_list ( (parameter_declaration TYPE IDENT) ))) (compound_statement { (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE IDENT ;) (expression_statement (assignment_expression IDENT = IDENT) ;) (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 = (binary_expression IDENT + LIT)) ;) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT)) + LIT) )))) = (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT)) + LIT) )))) + LIT)) ;) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( (pointer_expression & IDENT) , IDENT )))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT != LIT) )) (compound_statement { (expression_statement (call_expression IDENT (argument_list ( ))) ;) })) (expression_statement (call_expression IDENT (argument_list ( ))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT == (pointer_expression * (cast_expression ( (type_descriptor TYPE (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 ( ))) ;) (if_statement if (parenthesized_expression ( (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) != LIT) )) (compound_statement { (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) ;) (do_statement do (compound_statement { (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( )))) ;) }) while (parenthesized_expression ( (binary_expression (pointer_expression * IDENT) != LIT) )) ;) (return_statement return (cast_expression ( (type_descriptor TYPE) ) (call_expression IDENT (argument_list ( (binary_expression IDENT == LIT) , (cast_expression ( (type_descriptor TYPE) ) IDENT) )))) ;) })) (expression_statement (call_expression IDENT (argument_list ( (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) + LIT) ))) ;) })))
(function_definition "ulonglong FUN_000737b8(undefined4 param_1)\n\n{\n  ulonglong uVar1;\n  int iVar2;\n  int *piVar3;\n  undefined *puVar4;\n  longlong lVar5;\n  int local_1c;\n  undefined *local_18;\n  undefined *local_14;\n  int local_c;\n  \n  puVar4 = PTR___stack_chk_guard_0012b14c;\n  local_c = *(int *)PTR___stack_chk_guard_0012b14c;\n  local_14 = PTR_LAB_0012a814 + -0xb88;\n  local_18 = PTR_LAB_0012a814 + 0x154c;\n  *(int *)(*(int *)PTR_ash_ptr_to_globals_misc_0012a84c + 0x24) =\n       *(int *)(*(int *)PTR_ash_ptr_to_globals_misc_0012a84c + 0x24) + 1;\n  uVar1 = FUN_00083fb4(&local_1c,param_1);\n  if (local_1c != 0) {\n                    \n    FUN_0006ee68();\n  }\n  FUN_0006d568();\n  if (local_c == *(int *)puVar4) {\n    return uVar1;\n  }\n  iVar2 = local_c;\n  puVar4 = PTR___stack_chk_fail_0012b0c8;\n  (*(code *)PTR___stack_chk_fail_0012b0c8)();\n  if (*(int *)(iVar2 + 4) != 0) {\n    piVar3 = (int *)(iVar2 + 4);\n    do {\n      piVar3 = piVar3 + 1;\n      lVar5 = FUN_000737b8();\n    } while (*piVar3 != 0);\n    return (ulonglong)CONCAT14(lVar5 == 0,(int)lVar5);\n  }\n                    \n  FUN_0006ee68(*(int *)(puVar4 + 0xb690c) + 0x760c);\n}" (type_identifier "ulonglong") (function_declarator "FUN_000737b8(undefined4 param_1)" (identifier "FUN_000737b8") (parameter_list "(undefined4 param_1)" (( "(") (parameter_declaration "undefined4 param_1" (type_identifier "undefined4") (identifier "param_1")) () ")"))) (compound_statement "{\n  ulonglong uVar1;\n  int iVar2;\n  int *piVar3;\n  undefined *puVar4;\n  longlong lVar5;\n  int local_1c;\n  undefined *local_18;\n  undefined *local_14;\n  int local_c;\n  \n  puVar4 = PTR___stack_chk_guard_0012b14c;\n  local_c = *(int *)PTR___stack_chk_guard_0012b14c;\n  local_14 = PTR_LAB_0012a814 + -0xb88;\n  local_18 = PTR_LAB_0012a814 + 0x154c;\n  *(int *)(*(int *)PTR_ash_ptr_to_globals_misc_0012a84c + 0x24) =\n       *(int *)(*(int *)PTR_ash_ptr_to_globals_misc_0012a84c + 0x24) + 1;\n  uVar1 = FUN_00083fb4(&local_1c,param_1);\n  if (local_1c != 0) {\n                    \n    FUN_0006ee68();\n  }\n  FUN_0006d568();\n  if (local_c == *(int *)puVar4) {\n    return uVar1;\n  }\n  iVar2 = local_c;\n  puVar4 = PTR___stack_chk_fail_0012b0c8;\n  (*(code *)PTR___stack_chk_fail_0012b0c8)();\n  if (*(int *)(iVar2 + 4) != 0) {\n    piVar3 = (int *)(iVar2 + 4);\n    do {\n      piVar3 = piVar3 + 1;\n      lVar5 = FUN_000737b8();\n    } while (*piVar3 != 0);\n    return (ulonglong)CONCAT14(lVar5 == 0,(int)lVar5);\n  }\n                    \n  FUN_0006ee68(*(int *)(puVar4 + 0xb690c) + 0x760c);\n}" ({ "{") (declaration "ulonglong uVar1;" (type_identifier "ulonglong") (identifier "uVar1") (; ";")) (declaration "int iVar2;" (primitive_type "int") (identifier "iVar2") (; ";")) (declaration "int *piVar3;" (primitive_type "int") (pointer_declarator "*piVar3" (* "*") (identifier "piVar3")) (; ";")) (declaration "undefined *puVar4;" (type_identifier "undefined") (pointer_declarator "*puVar4" (* "*") (identifier "puVar4")) (; ";")) (declaration "longlong lVar5;" (type_identifier "longlong") (identifier "lVar5") (; ";")) (declaration "int local_1c;" (primitive_type "int") (identifier "local_1c") (; ";")) (declaration "undefined *local_18;" (type_identifier "undefined") (pointer_declarator "*local_18" (* "*") (identifier "local_18")) (; ";")) (declaration "undefined *local_14;" (type_identifier "undefined") (pointer_declarator "*local_14" (* "*") (identifier "local_14")) (; ";")) (declaration "int local_c;" (primitive_type "int") (identifier "local_c") (; ";")) (expression_statement "puVar4 = PTR___stack_chk_guard_0012b14c;" (assignment_expression "puVar4 = PTR___stack_chk_guard_0012b14c" (identifier "puVar4") (= "=") (identifier "PTR___stack_chk_guard_0012b14c")) (; ";")) (expression_statement "local_c = *(int *)PTR___stack_chk_guard_0012b14c;" (assignment_expression "local_c = *(int *)PTR___stack_chk_guard_0012b14c" (identifier "local_c") (= "=") (pointer_expression "*(int *)PTR___stack_chk_guard_0012b14c" (* "*") (cast_expression "(int *)PTR___stack_chk_guard_0012b14c" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR___stack_chk_guard_0012b14c")))) (; ";")) (expression_statement "local_14 = PTR_LAB_0012a814 + -0xb88;" (assignment_expression "local_14 = PTR_LAB_0012a814 + -0xb88" (identifier "local_14") (= "=") (binary_expression "PTR_LAB_0012a814 + -0xb88" (identifier "PTR_LAB_0012a814") (+ "+") (number_literal "-0xb88"))) (; ";")) (expression_statement "local_18 = PTR_LAB_0012a814 + 0x154c;" (assignment_expression "local_18 = PTR_LAB_0012a814 + 0x154c" (identifier "local_18") (= "=") (binary_expression "PTR_LAB_0012a814 + 0x154c" (identifier "PTR_LAB_0012a814") (+ "+") (number_literal "0x154c"))) (; ";")) (expression_statement "*(int *)(*(int *)PTR_ash_ptr_to_globals_misc_0012a84c + 0x24) =\n       *(int *)(*(int *)PTR_ash_ptr_to_globals_misc_0012a84c + 0x24) + 1;" (assignment_expression "*(int *)(*(int *)PTR_ash_ptr_to_globals_misc_0012a84c + 0x24) =\n       *(int *)(*(int *)PTR_ash_ptr_to_globals_misc_0012a84c + 0x24) + 1" (pointer_expression "*(int *)(*(int *)PTR_ash_ptr_to_globals_misc_0012a84c + 0x24)" (* "*") (cast_expression "(int *)(*(int *)PTR_ash_ptr_to_globals_misc_0012a84c + 0x24)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(*(int *)PTR_ash_ptr_to_globals_misc_0012a84c + 0x24)" (( "(") (binary_expression "*(int *)PTR_ash_ptr_to_globals_misc_0012a84c + 0x24" (pointer_expression "*(int *)PTR_ash_ptr_to_globals_misc_0012a84c" (* "*") (cast_expression "(int *)PTR_ash_ptr_to_globals_misc_0012a84c" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR_ash_ptr_to_globals_misc_0012a84c"))) (+ "+") (number_literal "0x24")) () ")")))) (= "=") (binary_expression "*(int *)(*(int *)PTR_ash_ptr_to_globals_misc_0012a84c + 0x24) + 1" (pointer_expression "*(int *)(*(int *)PTR_ash_ptr_to_globals_misc_0012a84c + 0x24)" (* "*") (cast_expression "(int *)(*(int *)PTR_ash_ptr_to_globals_misc_0012a84c + 0x24)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(*(int *)PTR_ash_ptr_to_globals_misc_0012a84c + 0x24)" (( "(") (binary_expression "*(int *)PTR_ash_ptr_to_globals_misc_0012a84c + 0x24" (pointer_expression "*(int *)PTR_ash_ptr_to_globals_misc_0012a84c" (* "*") (cast_expression "(int *)PTR_ash_ptr_to_globals_misc_0012a84c" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR_ash_ptr_to_globals_misc_0012a84c"))) (+ "+") (number_literal "0x24")) () ")")))) (+ "+") (number_literal "1"))) (; ";")) (expression_statement "uVar1 = FUN_00083fb4(&local_1c,param_1);" (assignment_expression "uVar1 = FUN_00083fb4(&local_1c,param_1)" (identifier "uVar1") (= "=") (call_expression "FUN_00083fb4(&local_1c,param_1)" (identifier "FUN_00083fb4") (argument_list "(&local_1c,param_1)" (( "(") (pointer_expression "&local_1c" (& "&") (identifier "local_1c")) (, ",") (identifier "param_1") () ")")))) (; ";")) (if_statement "if (local_1c != 0) {\n                    \n    FUN_0006ee68();\n  }" (if "if") (parenthesized_expression "(local_1c != 0)" (( "(") (binary_expression "local_1c != 0" (identifier "local_1c") (!= "!=") (number_literal "0")) () ")")) (compound_statement "{\n                    \n    FUN_0006ee68();\n  }" ({ "{") (expression_statement "FUN_0006ee68();" (call_expression "FUN_0006ee68()" (identifier "FUN_0006ee68") (argument_list "()" (( "(") () ")"))) (; ";")) (} "}"))) (expression_statement "FUN_0006d568();" (call_expression "FUN_0006d568()" (identifier "FUN_0006d568") (argument_list "()" (( "(") () ")"))) (; ";")) (if_statement "if (local_c == *(int *)puVar4) {\n    return uVar1;\n  }" (if "if") (parenthesized_expression "(local_c == *(int *)puVar4)" (( "(") (binary_expression "local_c == *(int *)puVar4" (identifier "local_c") (== "==") (pointer_expression "*(int *)puVar4" (* "*") (cast_expression "(int *)puVar4" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "puVar4")))) () ")")) (compound_statement "{\n    return uVar1;\n  }" ({ "{") (return_statement "return uVar1;" (return "return") (identifier "uVar1") (; ";")) (} "}"))) (expression_statement "iVar2 = local_c;" (assignment_expression "iVar2 = local_c" (identifier "iVar2") (= "=") (identifier "local_c")) (; ";")) (expression_statement "puVar4 = PTR___stack_chk_fail_0012b0c8;" (assignment_expression "puVar4 = PTR___stack_chk_fail_0012b0c8" (identifier "puVar4") (= "=") (identifier "PTR___stack_chk_fail_0012b0c8")) (; ";")) (expression_statement "(*(code *)PTR___stack_chk_fail_0012b0c8)();" (call_expression "(*(code *)PTR___stack_chk_fail_0012b0c8)()" (parenthesized_expression "(*(code *)PTR___stack_chk_fail_0012b0c8)" (( "(") (pointer_expression "*(code *)PTR___stack_chk_fail_0012b0c8" (* "*") (cast_expression "(code *)PTR___stack_chk_fail_0012b0c8" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR___stack_chk_fail_0012b0c8"))) () ")")) (argument_list "()" (( "(") () ")"))) (; ";")) (if_statement "if (*(int *)(iVar2 + 4) != 0) {\n    piVar3 = (int *)(iVar2 + 4);\n    do {\n      piVar3 = piVar3 + 1;\n      lVar5 = FUN_000737b8();\n    } while (*piVar3 != 0);\n    return (ulonglong)CONCAT14(lVar5 == 0,(int)lVar5);\n  }" (if "if") (parenthesized_expression "(*(int *)(iVar2 + 4) != 0)" (( "(") (binary_expression "*(int *)(iVar2 + 4) != 0" (pointer_expression "*(int *)(iVar2 + 4)" (* "*") (cast_expression "(int *)(iVar2 + 4)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar2 + 4)" (( "(") (binary_expression "iVar2 + 4" (identifier "iVar2") (+ "+") (number_literal "4")) () ")")))) (!= "!=") (number_literal "0")) () ")")) (compound_statement "{\n    piVar3 = (int *)(iVar2 + 4);\n    do {\n      piVar3 = piVar3 + 1;\n      lVar5 = FUN_000737b8();\n    } while (*piVar3 != 0);\n    return (ulonglong)CONCAT14(lVar5 == 0,(int)lVar5);\n  }" ({ "{") (expression_statement "piVar3 = (int *)(iVar2 + 4);" (assignment_expression "piVar3 = (int *)(iVar2 + 4)" (identifier "piVar3") (= "=") (cast_expression "(int *)(iVar2 + 4)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar2 + 4)" (( "(") (binary_expression "iVar2 + 4" (identifier "iVar2") (+ "+") (number_literal "4")) () ")")))) (; ";")) (do_statement "do {\n      piVar3 = piVar3 + 1;\n      lVar5 = FUN_000737b8();\n    } while (*piVar3 != 0);" (do "do") (compound_statement "{\n      piVar3 = piVar3 + 1;\n      lVar5 = FUN_000737b8();\n    }" ({ "{") (expression_statement "piVar3 = piVar3 + 1;" (assignment_expression "piVar3 = piVar3 + 1" (identifier "piVar3") (= "=") (binary_expression "piVar3 + 1" (identifier "piVar3") (+ "+") (number_literal "1"))) (; ";")) (expression_statement "lVar5 = FUN_000737b8();" (assignment_expression "lVar5 = FUN_000737b8()" (identifier "lVar5") (= "=") (call_expression "FUN_000737b8()" (identifier "FUN_000737b8") (argument_list "()" (( "(") () ")")))) (; ";")) (} "}")) (while "while") (parenthesized_expression "(*piVar3 != 0)" (( "(") (binary_expression "*piVar3 != 0" (pointer_expression "*piVar3" (* "*") (identifier "piVar3")) (!= "!=") (number_literal "0")) () ")")) (; ";")) (return_statement "return (ulonglong)CONCAT14(lVar5 == 0,(int)lVar5);" (return "return") (cast_expression "(ulonglong)CONCAT14(lVar5 == 0,(int)lVar5)" (( "(") (type_descriptor "ulonglong" (type_identifier "ulonglong")) () ")") (call_expression "CONCAT14(lVar5 == 0,(int)lVar5)" (identifier "CONCAT14") (argument_list "(lVar5 == 0,(int)lVar5)" (( "(") (binary_expression "lVar5 == 0" (identifier "lVar5") (== "==") (number_literal "0")) (, ",") (cast_expression "(int)lVar5" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (identifier "lVar5")) () ")")))) (; ";")) (} "}"))) (expression_statement "FUN_0006ee68(*(int *)(puVar4 + 0xb690c) + 0x760c);" (call_expression "FUN_0006ee68(*(int *)(puVar4 + 0xb690c) + 0x760c)" (identifier "FUN_0006ee68") (argument_list "(*(int *)(puVar4 + 0xb690c) + 0x760c)" (( "(") (binary_expression "*(int *)(puVar4 + 0xb690c) + 0x760c" (pointer_expression "*(int *)(puVar4 + 0xb690c)" (* "*") (cast_expression "(int *)(puVar4 + 0xb690c)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(puVar4 + 0xb690c)" (( "(") (binary_expression "puVar4 + 0xb690c" (identifier "puVar4") (+ "+") (number_literal "0xb690c")) () ")")))) (+ "+") (number_literal "0x760c")) () ")"))) (; ";")) (} "}")))

type_1 function_1(char *s)

{
  int var_5;
  char *var_6;
  type_2 *var_7;
  type_3 *var_10;
  type_1 var_9;
  type_4 math_state;
  
  var_10 = PTR___stack_chk_guard_0012b14c;
  var_5 = *(int *)PTR___stack_chk_guard_0012b14c;
  math_state.setvar = (arith_var_set_t)(var_1 + -0xb88);
  math_state.lookupvar = (arith_var_lookup_t)(var_1 + 0x154c);
  *(int *)(*(int *)PTR_ash_ptr_to_globals_misc_0012a84c + 0x24) =
       *(int *)(*(int *)PTR_ash_ptr_to_globals_misc_0012a84c + 0x24) + 1;
  var_9 = var_2(&math_state,s);
  if (math_state.errmsg != (char *)0x0) {
                    /* WARNING: Subroutine does not return */
    var_3(math_state.errmsg);
  }
  var_4();
  if (var_5 == *(int *)var_10) {
    return var_9;
  }
  var_10 = PTR___stack_chk_fail_0012b0c8;
  (*(type_5 *)PTR___stack_chk_fail_0012b0c8)();
  var_6 = *(char **)(var_5 + 4);
  if (var_6 != (char *)0x0) {
    var_7 = (type_2 *)(var_5 + 4);
    do {
      var_7 = var_7 + 1;
      var_9 = function_1(var_6);
      var_6 = (char *)*var_7;
    } while (var_6 != (char *)0x0);
    return (type_1)var_8(var_9 == 0,(int)var_9);
  }
                    /* WARNING: Subroutine does not return */
  var_3((char *)(*(int *)(var_10 + 0xb690c) + 0x760c));
}


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

ulonglong MASKED(undefined4 param_1)

{
  ulonglong uVar1;
  int iVar2;
  int *piVar3;
  undefined *puVar4;
  longlong lVar5;
  int local_1c;
  undefined *local_18;
  undefined *local_14;
  int local_c;
  
  puVar4 = PTR___stack_chk_guard_0012b14c;
  local_c = *(int *)PTR___stack_chk_guard_0012b14c;
  local_14 = PTR_LAB_0012a814 + -0xb88;
  local_18 = PTR_LAB_0012a814 + 0x154c;
  *(int *)(*(int *)PTR_ash_ptr_to_globals_misc_0012a84c + 0x24) =
       *(int *)(*(int *)PTR_ash_ptr_to_globals_misc_0012a84c + 0x24) + 1;
  uVar1 = FUN_00083fb4(&local_1c,param_1);
  if (local_1c != 0) {
                    /* WARNING: Subroutine does not return */
    FUN_0006ee68();
  }
  FUN_0006d568();
  if (local_c == *(int *)puVar4) {
    return uVar1;
  }
  iVar2 = local_c;
  puVar4 = PTR___stack_chk_fail_0012b0c8;
  (*(code *)PTR___stack_chk_fail_0012b0c8)();
  if (*(int *)(iVar2 + 4) != 0) {
    piVar3 = (int *)(iVar2 + 4);
    do {
      piVar3 = piVar3 + 1;
      lVar5 = MASKED();
    } while (*piVar3 != 0);
    return (ulonglong)CONCAT14(lVar5 == 0,(int)lVar5);
  }
                    /* WARNING: Subroutine does not return */
  FUN_0006ee68(*(int *)(puVar4 + 0xb690c) + 0x760c);
}

