
CURLofft curlx_strtoofft(char *str,char **endp,int base,curl_off_t *num)

{
  char cVar1;
  int *piVar2;
  int iVar3;
  CURLofft CVar4;
  uint uVar5;
  undefined *puVar6;
  curl_off_t cVar7;
  char *end;
  uint local_24;
  
  puVar6 = PTR___stack_chk_guard_000a6fe0;
  local_24 = *(uint *)PTR___stack_chk_guard_000a6fe0;
  piVar2 = (int *)(*(code *)PTR___errno_location_000a6dcc)();
  *piVar2 = 0;
  *(undefined4 *)((int)num + 4) = 0;
  *(undefined4 *)num = 0;
  cVar1 = *str;
  do {
    if (cVar1 == '\0') {
LAB_0004a634:
      cVar7 = (*(code *)PTR_strtoll_000a6ab4)(str,&end,base);
      if (endp != (char **)0x0) {
        *endp = end;
      }
      CVar4 = CURL_OFFT_FLOW;
      if ((*piVar2 != 0x22) && (CVar4 = CURL_OFFT_INVAL, str != end)) {
        CVar4 = CURL_OFFT_OK;
        *num = cVar7;
      }
LAB_0004a680:
      if (local_24 == *(uint *)puVar6) {
        return CVar4;
      }
      uVar5 = local_24;
      puVar6 = PTR___stack_chk_fail_000a6c54;
      (*(code *)PTR___stack_chk_fail_000a6c54)();
      if (uVar5 < 0x5e) {
                    /* WARNING: Could not recover jumptable at 0x0004a6f0. Too many branches */
                    /* WARNING: Treating indirect jump as call */
        CVar4 = (*(code *)(puVar6 + *(int *)(*(int *)(puVar6 + 0x5bad4) + -0x2300 + uVar5 * 4) +
                                    0x63a50))();
        return CVar4;
      }
      return *(int *)(puVar6 + 0x5bad4) - 0x3018;
    }
    iVar3 = (*(code *)PTR_Curl_isspace_000a62bc)(cVar1);
    if (iVar3 == 0) {
      if (*str == '-') {
        if (endp != (char **)0x0) {
          *endp = str;
        }
        CVar4 = CURL_OFFT_INVAL;
        goto LAB_0004a680;
      }
      goto LAB_0004a634;
    }
    str = str + 1;
    cVar1 = *str;
  } while( true );
}



int FUN_0004a560(byte *param_1,undefined4 *param_2,undefined4 param_3,undefined8 *param_4)

{
  byte bVar1;
  int *piVar2;
  int iVar3;
  uint uVar4;
  undefined *puVar5;
  undefined8 uVar6;
  byte *local_28;
  uint local_24;
  
  puVar5 = PTR___stack_chk_guard_000a6fe0;
  local_24 = *(uint *)PTR___stack_chk_guard_000a6fe0;
  piVar2 = (int *)(*(code *)PTR___errno_location_000a6dcc)();
  *piVar2 = 0;
  *(undefined4 *)((int)param_4 + 4) = 0;
  *(undefined4 *)param_4 = 0;
  bVar1 = *param_1;
  do {
    if (bVar1 == 0) {
LAB_0004a634:
      uVar6 = (*(code *)PTR_strtoll_000a6ab4)(param_1,&local_28,param_3);
      if (param_2 != (undefined4 *)0x0) {
        *param_2 = local_28;
      }
      iVar3 = 1;
      if ((*piVar2 != 0x22) && (iVar3 = 2, param_1 != local_28)) {
        iVar3 = 0;
        *param_4 = uVar6;
      }
LAB_0004a680:
      if (local_24 == *(uint *)puVar5) {
        return iVar3;
      }
      uVar4 = local_24;
      puVar5 = PTR___stack_chk_fail_000a6c54;
      (*(code *)PTR___stack_chk_fail_000a6c54)();
      if (uVar4 < 0x5e) {
                    /* WARNING: Could not recover jumptable at 0x0004a6f0. Too many branches */
                    /* WARNING: Treating indirect jump as call */
        iVar3 = (*(code *)(puVar5 + *(int *)(*(int *)(puVar5 + 0x5bad4) + -0x2300 + uVar4 * 4) +
                                    0x63a50))();
        return iVar3;
      }
      return *(int *)(puVar5 + 0x5bad4) + -0x3018;
    }
    iVar3 = (*(code *)PTR_FUN_000a62bc)(bVar1);
    if (iVar3 == 0) {
      if (*param_1 == 0x2d) {
        if (param_2 != (undefined4 *)0x0) {
          *param_2 = param_1;
        }
        iVar3 = 2;
        goto LAB_0004a680;
      }
      goto LAB_0004a634;
    }
    param_1 = param_1 + 1;
    bVar1 = *param_1;
  } while( true );
}


lui gp,0x6
addiu gp,gp,0x3bb0
addu gp,gp,t9
addiu sp,sp,-0x40
lw t9,-0x7344(gp)
sw s1,0x28(sp)
lw s1,-0x7130(gp)
sw gp,0x10(sp)
sw s5,0x38(sp)
or s5,a2,zero
sw s4,0x34(sp)
or s4,a3,zero
sw s3,0x30(sp)
or s3,a1,zero
sw s2,0x2c(sp)
sw s0,0x24(sp)
or s0,a0,zero
sw ra,0x3c(sp)
lw v0,0x0(s1)
sw v0,0x1c(sp)
jalr t9
_nop
or v1,zero,zero
lw gp,0x10(sp)
or s2,v0,zero
sw zero,0x0(v0)
or v0,zero,zero
sw v1,0x4(s4)
sw v0,0x0(s4)
lb a0,0x0(s0)
bne a0,zero,0x0004a5f8
_lw t9,-0x765c(gp)
b 0x0004a634
_addiu a1,sp,0x18
addiu s0,s0,0x1
lb a0,0x0(s0)
beq a0,zero,0x0004a630
_lw t9,-0x765c(gp)
lw t9,-0x7e54(gp)
jalr t9
_andi a0,a0,0xff
bne v0,zero,0x0004a5e8
_lw gp,0x10(sp)
lb v1,0x0(s0)
li v0,0x2d
bne v1,v0,0x0004a630
_lw t9,-0x765c(gp)
beq s3,zero,0x0004a628
_nop
sw s0,0x0(s3)
b 0x0004a680
_li v0,0x2
addiu a1,sp,0x18
or a2,s5,zero
jalr t9
_or a0,s0,zero
lw gp,0x10(sp)
or a3,v1,zero
beq s3,zero,0x0004a658
_or a2,v0,zero
lw v0,0x18(sp)
sw v0,0x0(s3)
lw a0,0x0(s2)
li v1,0x22
beq a0,v1,0x0004a680
_li v0,0x1
lw v0,0x18(sp)
beq s0,v0,0x0004a680
_li v0,0x2
or v0,zero,zero
sw a3,0x4(s4)
sw a2,0x0(s4)
lw a0,0x1c(sp)
lw v1,0x0(s1)
bne a0,v1,0x0004a6b0
_lw ra,0x3c(sp)
lw s5,0x38(sp)
lw s4,0x34(sp)
lw s3,0x30(sp)
lw s2,0x2c(sp)
lw s1,0x28(sp)
lw s0,0x24(sp)
jr ra
_addiu sp,sp,0x40
lw t9,-0x74bc(gp)
jalr t9
_nop
nop
(translation_unit "int FUN_0004a560(byte *param_1,undefined4 *param_2,undefined4 param_3,undefined8 *param_4)\n\n{\n  byte bVar1;\n  int *piVar2;\n  int iVar3;\n  uint uVar4;\n  undefined *puVar5;\n  undefined8 uVar6;\n  byte *local_28;\n  uint local_24;\n  \n  puVar5 = PTR___stack_chk_guard_000a6fe0;\n  local_24 = *(uint *)PTR___stack_chk_guard_000a6fe0;\n  piVar2 = (int *)(*(code *)PTR___errno_location_000a6dcc)();\n  *piVar2 = 0;\n  *(undefined4 *)((int)param_4 + 4) = 0;\n  *(undefined4 *)param_4 = 0;\n  bVar1 = *param_1;\n  do {\n    if (bVar1 == 0) {\nLAB_0004a634:\n      uVar6 = (*(code *)PTR_strtoll_000a6ab4)(param_1,&local_28,param_3);\n      if (param_2 != (undefined4 *)0x0) {\n        *param_2 = local_28;\n      }\n      iVar3 = 1;\n      if ((*piVar2 != 0x22) && (iVar3 = 2, param_1 != local_28)) {\n        iVar3 = 0;\n        *param_4 = uVar6;\n      }\nLAB_0004a680:\n      if (local_24 == *(uint *)puVar5) {\n        return iVar3;\n      }\n      uVar4 = local_24;\n      puVar5 = PTR___stack_chk_fail_000a6c54;\n      (*(code *)PTR___stack_chk_fail_000a6c54)();\n      if (uVar4 < 0x5e) {\n                    /* WARNING: Could not recover jumptable at 0x0004a6f0. Too many branches */\n                    /* WARNING: Treating indirect jump as call */\n        iVar3 = (*(code *)(puVar5 + *(int *)(*(int *)(puVar5 + 0x5bad4) + -0x2300 + uVar4 * 4) +\n                                    0x63a50))();\n        return iVar3;\n      }\n      return *(int *)(puVar5 + 0x5bad4) + -0x3018;\n    }\n    iVar3 = (*(code *)PTR_FUN_000a62bc)(bVar1);\n    if (iVar3 == 0) {\n      if (*param_1 == 0x2d) {\n        if (param_2 != (undefined4 *)0x0) {\n          *param_2 = param_1;\n        }\n        iVar3 = 2;\n        goto LAB_0004a680;\n      }\n      goto LAB_0004a634;\n    }\n    param_1 = param_1 + 1;\n    bVar1 = *param_1;\n  } while( true );\n}\n\n" (function_definition "int FUN_0004a560(byte *param_1,undefined4 *param_2,undefined4 param_3,undefined8 *param_4)\n\n{\n  byte bVar1;\n  int *piVar2;\n  int iVar3;\n  uint uVar4;\n  undefined *puVar5;\n  undefined8 uVar6;\n  byte *local_28;\n  uint local_24;\n  \n  puVar5 = PTR___stack_chk_guard_000a6fe0;\n  local_24 = *(uint *)PTR___stack_chk_guard_000a6fe0;\n  piVar2 = (int *)(*(code *)PTR___errno_location_000a6dcc)();\n  *piVar2 = 0;\n  *(undefined4 *)((int)param_4 + 4) = 0;\n  *(undefined4 *)param_4 = 0;\n  bVar1 = *param_1;\n  do {\n    if (bVar1 == 0) {\nLAB_0004a634:\n      uVar6 = (*(code *)PTR_strtoll_000a6ab4)(param_1,&local_28,param_3);\n      if (param_2 != (undefined4 *)0x0) {\n        *param_2 = local_28;\n      }\n      iVar3 = 1;\n      if ((*piVar2 != 0x22) && (iVar3 = 2, param_1 != local_28)) {\n        iVar3 = 0;\n        *param_4 = uVar6;\n      }\nLAB_0004a680:\n      if (local_24 == *(uint *)puVar5) {\n        return iVar3;\n      }\n      uVar4 = local_24;\n      puVar5 = PTR___stack_chk_fail_000a6c54;\n      (*(code *)PTR___stack_chk_fail_000a6c54)();\n      if (uVar4 < 0x5e) {\n                    /* WARNING: Could not recover jumptable at 0x0004a6f0. Too many branches */\n                    /* WARNING: Treating indirect jump as call */\n        iVar3 = (*(code *)(puVar5 + *(int *)(*(int *)(puVar5 + 0x5bad4) + -0x2300 + uVar4 * 4) +\n                                    0x63a50))();\n        return iVar3;\n      }\n      return *(int *)(puVar5 + 0x5bad4) + -0x3018;\n    }\n    iVar3 = (*(code *)PTR_FUN_000a62bc)(bVar1);\n    if (iVar3 == 0) {\n      if (*param_1 == 0x2d) {\n        if (param_2 != (undefined4 *)0x0) {\n          *param_2 = param_1;\n        }\n        iVar3 = 2;\n        goto LAB_0004a680;\n      }\n      goto LAB_0004a634;\n    }\n    param_1 = param_1 + 1;\n    bVar1 = *param_1;\n  } while( true );\n}" primitive_type (function_declarator "FUN_0004a560(byte *param_1,undefined4 *param_2,undefined4 param_3,undefined8 *param_4)" identifier (parameter_list "(byte *param_1,undefined4 *param_2,undefined4 param_3,undefined8 *param_4)" ( (parameter_declaration "byte *param_1" type_identifier (pointer_declarator "*param_1" * identifier)) , (parameter_declaration "undefined4 *param_2" type_identifier (pointer_declarator "*param_2" * identifier)) , (parameter_declaration "undefined4 param_3" type_identifier identifier) , (parameter_declaration "undefined8 *param_4" type_identifier (pointer_declarator "*param_4" * identifier)) ))) (compound_statement "{\n  byte bVar1;\n  int *piVar2;\n  int iVar3;\n  uint uVar4;\n  undefined *puVar5;\n  undefined8 uVar6;\n  byte *local_28;\n  uint local_24;\n  \n  puVar5 = PTR___stack_chk_guard_000a6fe0;\n  local_24 = *(uint *)PTR___stack_chk_guard_000a6fe0;\n  piVar2 = (int *)(*(code *)PTR___errno_location_000a6dcc)();\n  *piVar2 = 0;\n  *(undefined4 *)((int)param_4 + 4) = 0;\n  *(undefined4 *)param_4 = 0;\n  bVar1 = *param_1;\n  do {\n    if (bVar1 == 0) {\nLAB_0004a634:\n      uVar6 = (*(code *)PTR_strtoll_000a6ab4)(param_1,&local_28,param_3);\n      if (param_2 != (undefined4 *)0x0) {\n        *param_2 = local_28;\n      }\n      iVar3 = 1;\n      if ((*piVar2 != 0x22) && (iVar3 = 2, param_1 != local_28)) {\n        iVar3 = 0;\n        *param_4 = uVar6;\n      }\nLAB_0004a680:\n      if (local_24 == *(uint *)puVar5) {\n        return iVar3;\n      }\n      uVar4 = local_24;\n      puVar5 = PTR___stack_chk_fail_000a6c54;\n      (*(code *)PTR___stack_chk_fail_000a6c54)();\n      if (uVar4 < 0x5e) {\n                    /* WARNING: Could not recover jumptable at 0x0004a6f0. Too many branches */\n                    /* WARNING: Treating indirect jump as call */\n        iVar3 = (*(code *)(puVar5 + *(int *)(*(int *)(puVar5 + 0x5bad4) + -0x2300 + uVar4 * 4) +\n                                    0x63a50))();\n        return iVar3;\n      }\n      return *(int *)(puVar5 + 0x5bad4) + -0x3018;\n    }\n    iVar3 = (*(code *)PTR_FUN_000a62bc)(bVar1);\n    if (iVar3 == 0) {\n      if (*param_1 == 0x2d) {\n        if (param_2 != (undefined4 *)0x0) {\n          *param_2 = param_1;\n        }\n        iVar3 = 2;\n        goto LAB_0004a680;\n      }\n      goto LAB_0004a634;\n    }\n    param_1 = param_1 + 1;\n    bVar1 = *param_1;\n  } while( true );\n}" { (declaration "byte bVar1;" type_identifier identifier ;) (declaration "int *piVar2;" primitive_type (pointer_declarator "*piVar2" * identifier) ;) (declaration "int iVar3;" primitive_type identifier ;) (declaration "uint uVar4;" type_identifier identifier ;) (declaration "undefined *puVar5;" type_identifier (pointer_declarator "*puVar5" * identifier) ;) (declaration "undefined8 uVar6;" type_identifier identifier ;) (declaration "byte *local_28;" type_identifier (pointer_declarator "*local_28" * identifier) ;) (declaration "uint local_24;" type_identifier identifier ;) (expression_statement "puVar5 = PTR___stack_chk_guard_000a6fe0;" (assignment_expression "puVar5 = PTR___stack_chk_guard_000a6fe0" identifier = identifier) ;) (expression_statement "local_24 = *(uint *)PTR___stack_chk_guard_000a6fe0;" (assignment_expression "local_24 = *(uint *)PTR___stack_chk_guard_000a6fe0" identifier = (pointer_expression "*(uint *)PTR___stack_chk_guard_000a6fe0" * (cast_expression "(uint *)PTR___stack_chk_guard_000a6fe0" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier))) ;) (expression_statement "piVar2 = (int *)(*(code *)PTR___errno_location_000a6dcc)();" (assignment_expression "piVar2 = (int *)(*(code *)PTR___errno_location_000a6dcc)()" identifier = (cast_expression "(int *)(*(code *)PTR___errno_location_000a6dcc)()" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (call_expression "(*(code *)PTR___errno_location_000a6dcc)()" (parenthesized_expression "(*(code *)PTR___errno_location_000a6dcc)" ( (pointer_expression "*(code *)PTR___errno_location_000a6dcc" * (cast_expression "(code *)PTR___errno_location_000a6dcc" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "()" ( ))))) ;) (expression_statement "*piVar2 = 0;" (assignment_expression "*piVar2 = 0" (pointer_expression "*piVar2" * identifier) = number_literal) ;) (expression_statement "*(undefined4 *)((int)param_4 + 4) = 0;" (assignment_expression "*(undefined4 *)((int)param_4 + 4) = 0" (pointer_expression "*(undefined4 *)((int)param_4 + 4)" * (cast_expression "(undefined4 *)((int)param_4 + 4)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)param_4 + 4)" ( (binary_expression "(int)param_4 + 4" (cast_expression "(int)param_4" ( (type_descriptor "int" primitive_type) ) identifier) + number_literal) )))) = number_literal) ;) (expression_statement "*(undefined4 *)param_4 = 0;" (assignment_expression "*(undefined4 *)param_4 = 0" (pointer_expression "*(undefined4 *)param_4" * (cast_expression "(undefined4 *)param_4" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) = number_literal) ;) (expression_statement "bVar1 = *param_1;" (assignment_expression "bVar1 = *param_1" identifier = (pointer_expression "*param_1" * identifier)) ;) (do_statement "do {\n    if (bVar1 == 0) {\nLAB_0004a634:\n      uVar6 = (*(code *)PTR_strtoll_000a6ab4)(param_1,&local_28,param_3);\n      if (param_2 != (undefined4 *)0x0) {\n        *param_2 = local_28;\n      }\n      iVar3 = 1;\n      if ((*piVar2 != 0x22) && (iVar3 = 2, param_1 != local_28)) {\n        iVar3 = 0;\n        *param_4 = uVar6;\n      }\nLAB_0004a680:\n      if (local_24 == *(uint *)puVar5) {\n        return iVar3;\n      }\n      uVar4 = local_24;\n      puVar5 = PTR___stack_chk_fail_000a6c54;\n      (*(code *)PTR___stack_chk_fail_000a6c54)();\n      if (uVar4 < 0x5e) {\n                    /* WARNING: Could not recover jumptable at 0x0004a6f0. Too many branches */\n                    /* WARNING: Treating indirect jump as call */\n        iVar3 = (*(code *)(puVar5 + *(int *)(*(int *)(puVar5 + 0x5bad4) + -0x2300 + uVar4 * 4) +\n                                    0x63a50))();\n        return iVar3;\n      }\n      return *(int *)(puVar5 + 0x5bad4) + -0x3018;\n    }\n    iVar3 = (*(code *)PTR_FUN_000a62bc)(bVar1);\n    if (iVar3 == 0) {\n      if (*param_1 == 0x2d) {\n        if (param_2 != (undefined4 *)0x0) {\n          *param_2 = param_1;\n        }\n        iVar3 = 2;\n        goto LAB_0004a680;\n      }\n      goto LAB_0004a634;\n    }\n    param_1 = param_1 + 1;\n    bVar1 = *param_1;\n  } while( true );" do (compound_statement "{\n    if (bVar1 == 0) {\nLAB_0004a634:\n      uVar6 = (*(code *)PTR_strtoll_000a6ab4)(param_1,&local_28,param_3);\n      if (param_2 != (undefined4 *)0x0) {\n        *param_2 = local_28;\n      }\n      iVar3 = 1;\n      if ((*piVar2 != 0x22) && (iVar3 = 2, param_1 != local_28)) {\n        iVar3 = 0;\n        *param_4 = uVar6;\n      }\nLAB_0004a680:\n      if (local_24 == *(uint *)puVar5) {\n        return iVar3;\n      }\n      uVar4 = local_24;\n      puVar5 = PTR___stack_chk_fail_000a6c54;\n      (*(code *)PTR___stack_chk_fail_000a6c54)();\n      if (uVar4 < 0x5e) {\n                    /* WARNING: Could not recover jumptable at 0x0004a6f0. Too many branches */\n                    /* WARNING: Treating indirect jump as call */\n        iVar3 = (*(code *)(puVar5 + *(int *)(*(int *)(puVar5 + 0x5bad4) + -0x2300 + uVar4 * 4) +\n                                    0x63a50))();\n        return iVar3;\n      }\n      return *(int *)(puVar5 + 0x5bad4) + -0x3018;\n    }\n    iVar3 = (*(code *)PTR_FUN_000a62bc)(bVar1);\n    if (iVar3 == 0) {\n      if (*param_1 == 0x2d) {\n        if (param_2 != (undefined4 *)0x0) {\n          *param_2 = param_1;\n        }\n        iVar3 = 2;\n        goto LAB_0004a680;\n      }\n      goto LAB_0004a634;\n    }\n    param_1 = param_1 + 1;\n    bVar1 = *param_1;\n  }" { (if_statement "if (bVar1 == 0) {\nLAB_0004a634:\n      uVar6 = (*(code *)PTR_strtoll_000a6ab4)(param_1,&local_28,param_3);\n      if (param_2 != (undefined4 *)0x0) {\n        *param_2 = local_28;\n      }\n      iVar3 = 1;\n      if ((*piVar2 != 0x22) && (iVar3 = 2, param_1 != local_28)) {\n        iVar3 = 0;\n        *param_4 = uVar6;\n      }\nLAB_0004a680:\n      if (local_24 == *(uint *)puVar5) {\n        return iVar3;\n      }\n      uVar4 = local_24;\n      puVar5 = PTR___stack_chk_fail_000a6c54;\n      (*(code *)PTR___stack_chk_fail_000a6c54)();\n      if (uVar4 < 0x5e) {\n                    /* WARNING: Could not recover jumptable at 0x0004a6f0. Too many branches */\n                    /* WARNING: Treating indirect jump as call */\n        iVar3 = (*(code *)(puVar5 + *(int *)(*(int *)(puVar5 + 0x5bad4) + -0x2300 + uVar4 * 4) +\n                                    0x63a50))();\n        return iVar3;\n      }\n      return *(int *)(puVar5 + 0x5bad4) + -0x3018;\n    }" if (parenthesized_expression "(bVar1 == 0)" ( (binary_expression "bVar1 == 0" identifier == number_literal) )) (compound_statement "{\nLAB_0004a634:\n      uVar6 = (*(code *)PTR_strtoll_000a6ab4)(param_1,&local_28,param_3);\n      if (param_2 != (undefined4 *)0x0) {\n        *param_2 = local_28;\n      }\n      iVar3 = 1;\n      if ((*piVar2 != 0x22) && (iVar3 = 2, param_1 != local_28)) {\n        iVar3 = 0;\n        *param_4 = uVar6;\n      }\nLAB_0004a680:\n      if (local_24 == *(uint *)puVar5) {\n        return iVar3;\n      }\n      uVar4 = local_24;\n      puVar5 = PTR___stack_chk_fail_000a6c54;\n      (*(code *)PTR___stack_chk_fail_000a6c54)();\n      if (uVar4 < 0x5e) {\n                    /* WARNING: Could not recover jumptable at 0x0004a6f0. Too many branches */\n                    /* WARNING: Treating indirect jump as call */\n        iVar3 = (*(code *)(puVar5 + *(int *)(*(int *)(puVar5 + 0x5bad4) + -0x2300 + uVar4 * 4) +\n                                    0x63a50))();\n        return iVar3;\n      }\n      return *(int *)(puVar5 + 0x5bad4) + -0x3018;\n    }" { (labeled_statement "LAB_0004a634:\n      uVar6 = (*(code *)PTR_strtoll_000a6ab4)(param_1,&local_28,param_3);" statement_identifier : (expression_statement "uVar6 = (*(code *)PTR_strtoll_000a6ab4)(param_1,&local_28,param_3);" (assignment_expression "uVar6 = (*(code *)PTR_strtoll_000a6ab4)(param_1,&local_28,param_3)" identifier = (call_expression "(*(code *)PTR_strtoll_000a6ab4)(param_1,&local_28,param_3)" (parenthesized_expression "(*(code *)PTR_strtoll_000a6ab4)" ( (pointer_expression "*(code *)PTR_strtoll_000a6ab4" * (cast_expression "(code *)PTR_strtoll_000a6ab4" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(param_1,&local_28,param_3)" ( identifier , (pointer_expression "&local_28" & identifier) , identifier )))) ;)) (if_statement "if (param_2 != (undefined4 *)0x0) {\n        *param_2 = local_28;\n      }" if (parenthesized_expression "(param_2 != (undefined4 *)0x0)" ( (binary_expression "param_2 != (undefined4 *)0x0" identifier != (cast_expression "(undefined4 *)0x0" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n        *param_2 = local_28;\n      }" { (expression_statement "*param_2 = local_28;" (assignment_expression "*param_2 = local_28" (pointer_expression "*param_2" * identifier) = identifier) ;) })) (expression_statement "iVar3 = 1;" (assignment_expression "iVar3 = 1" identifier = number_literal) ;) (if_statement "if ((*piVar2 != 0x22) && (iVar3 = 2, param_1 != local_28)) {\n        iVar3 = 0;\n        *param_4 = uVar6;\n      }" if (parenthesized_expression "((*piVar2 != 0x22) && (iVar3 = 2, param_1 != local_28))" ( (binary_expression "(*piVar2 != 0x22) && (iVar3 = 2, param_1 != local_28)" (parenthesized_expression "(*piVar2 != 0x22)" ( (binary_expression "*piVar2 != 0x22" (pointer_expression "*piVar2" * identifier) != number_literal) )) && (parenthesized_expression "(iVar3 = 2, param_1 != local_28)" ( (comma_expression "iVar3 = 2, param_1 != local_28" (assignment_expression "iVar3 = 2" identifier = number_literal) , (binary_expression "param_1 != local_28" identifier != identifier)) ))) )) (compound_statement "{\n        iVar3 = 0;\n        *param_4 = uVar6;\n      }" { (expression_statement "iVar3 = 0;" (assignment_expression "iVar3 = 0" identifier = number_literal) ;) (expression_statement "*param_4 = uVar6;" (assignment_expression "*param_4 = uVar6" (pointer_expression "*param_4" * identifier) = identifier) ;) })) (labeled_statement "LAB_0004a680:\n      if (local_24 == *(uint *)puVar5) {\n        return iVar3;\n      }" statement_identifier : (if_statement "if (local_24 == *(uint *)puVar5) {\n        return iVar3;\n      }" if (parenthesized_expression "(local_24 == *(uint *)puVar5)" ( (binary_expression "local_24 == *(uint *)puVar5" identifier == (pointer_expression "*(uint *)puVar5" * (cast_expression "(uint *)puVar5" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier))) )) (compound_statement "{\n        return iVar3;\n      }" { (return_statement "return iVar3;" return identifier ;) }))) (expression_statement "uVar4 = local_24;" (assignment_expression "uVar4 = local_24" identifier = identifier) ;) (expression_statement "puVar5 = PTR___stack_chk_fail_000a6c54;" (assignment_expression "puVar5 = PTR___stack_chk_fail_000a6c54" identifier = identifier) ;) (expression_statement "(*(code *)PTR___stack_chk_fail_000a6c54)();" (call_expression "(*(code *)PTR___stack_chk_fail_000a6c54)()" (parenthesized_expression "(*(code *)PTR___stack_chk_fail_000a6c54)" ( (pointer_expression "*(code *)PTR___stack_chk_fail_000a6c54" * (cast_expression "(code *)PTR___stack_chk_fail_000a6c54" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "()" ( ))) ;) (if_statement "if (uVar4 < 0x5e) {\n                    /* WARNING: Could not recover jumptable at 0x0004a6f0. Too many branches */\n                    /* WARNING: Treating indirect jump as call */\n        iVar3 = (*(code *)(puVar5 + *(int *)(*(int *)(puVar5 + 0x5bad4) + -0x2300 + uVar4 * 4) +\n                                    0x63a50))();\n        return iVar3;\n      }" if (parenthesized_expression "(uVar4 < 0x5e)" ( (binary_expression "uVar4 < 0x5e" identifier < number_literal) )) (compound_statement "{\n                    /* WARNING: Could not recover jumptable at 0x0004a6f0. Too many branches */\n                    /* WARNING: Treating indirect jump as call */\n        iVar3 = (*(code *)(puVar5 + *(int *)(*(int *)(puVar5 + 0x5bad4) + -0x2300 + uVar4 * 4) +\n                                    0x63a50))();\n        return iVar3;\n      }" { comment comment (expression_statement "iVar3 = (*(code *)(puVar5 + *(int *)(*(int *)(puVar5 + 0x5bad4) + -0x2300 + uVar4 * 4) +\n                                    0x63a50))();" (assignment_expression "iVar3 = (*(code *)(puVar5 + *(int *)(*(int *)(puVar5 + 0x5bad4) + -0x2300 + uVar4 * 4) +\n                                    0x63a50))()" identifier = (call_expression "(*(code *)(puVar5 + *(int *)(*(int *)(puVar5 + 0x5bad4) + -0x2300 + uVar4 * 4) +\n                                    0x63a50))()" (parenthesized_expression "(*(code *)(puVar5 + *(int *)(*(int *)(puVar5 + 0x5bad4) + -0x2300 + uVar4 * 4) +\n                                    0x63a50))" ( (pointer_expression "*(code *)(puVar5 + *(int *)(*(int *)(puVar5 + 0x5bad4) + -0x2300 + uVar4 * 4) +\n                                    0x63a50)" * (cast_expression "(code *)(puVar5 + *(int *)(*(int *)(puVar5 + 0x5bad4) + -0x2300 + uVar4 * 4) +\n                                    0x63a50)" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(puVar5 + *(int *)(*(int *)(puVar5 + 0x5bad4) + -0x2300 + uVar4 * 4) +\n                                    0x63a50)" ( (binary_expression "puVar5 + *(int *)(*(int *)(puVar5 + 0x5bad4) + -0x2300 + uVar4 * 4) +\n                                    0x63a50" (binary_expression "puVar5 + *(int *)(*(int *)(puVar5 + 0x5bad4) + -0x2300 + uVar4 * 4)" identifier + (pointer_expression "*(int *)(*(int *)(puVar5 + 0x5bad4) + -0x2300 + uVar4 * 4)" * (cast_expression "(int *)(*(int *)(puVar5 + 0x5bad4) + -0x2300 + uVar4 * 4)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(*(int *)(puVar5 + 0x5bad4) + -0x2300 + uVar4 * 4)" ( (binary_expression "*(int *)(puVar5 + 0x5bad4) + -0x2300 + uVar4 * 4" (binary_expression "*(int *)(puVar5 + 0x5bad4) + -0x2300" (pointer_expression "*(int *)(puVar5 + 0x5bad4)" * (cast_expression "(int *)(puVar5 + 0x5bad4)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(puVar5 + 0x5bad4)" ( (binary_expression "puVar5 + 0x5bad4" identifier + number_literal) )))) + number_literal) + (binary_expression "uVar4 * 4" identifier * number_literal)) ))))) + number_literal) )))) )) (argument_list "()" ( )))) ;) (return_statement "return iVar3;" return identifier ;) })) (return_statement "return *(int *)(puVar5 + 0x5bad4) + -0x3018;" return (binary_expression "*(int *)(puVar5 + 0x5bad4) + -0x3018" (pointer_expression "*(int *)(puVar5 + 0x5bad4)" * (cast_expression "(int *)(puVar5 + 0x5bad4)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(puVar5 + 0x5bad4)" ( (binary_expression "puVar5 + 0x5bad4" identifier + number_literal) )))) + number_literal) ;) })) (expression_statement "iVar3 = (*(code *)PTR_FUN_000a62bc)(bVar1);" (assignment_expression "iVar3 = (*(code *)PTR_FUN_000a62bc)(bVar1)" identifier = (call_expression "(*(code *)PTR_FUN_000a62bc)(bVar1)" (parenthesized_expression "(*(code *)PTR_FUN_000a62bc)" ( (pointer_expression "*(code *)PTR_FUN_000a62bc" * (cast_expression "(code *)PTR_FUN_000a62bc" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(bVar1)" ( identifier )))) ;) (if_statement "if (iVar3 == 0) {\n      if (*param_1 == 0x2d) {\n        if (param_2 != (undefined4 *)0x0) {\n          *param_2 = param_1;\n        }\n        iVar3 = 2;\n        goto LAB_0004a680;\n      }\n      goto LAB_0004a634;\n    }" if (parenthesized_expression "(iVar3 == 0)" ( (binary_expression "iVar3 == 0" identifier == number_literal) )) (compound_statement "{\n      if (*param_1 == 0x2d) {\n        if (param_2 != (undefined4 *)0x0) {\n          *param_2 = param_1;\n        }\n        iVar3 = 2;\n        goto LAB_0004a680;\n      }\n      goto LAB_0004a634;\n    }" { (if_statement "if (*param_1 == 0x2d) {\n        if (param_2 != (undefined4 *)0x0) {\n          *param_2 = param_1;\n        }\n        iVar3 = 2;\n        goto LAB_0004a680;\n      }" if (parenthesized_expression "(*param_1 == 0x2d)" ( (binary_expression "*param_1 == 0x2d" (pointer_expression "*param_1" * identifier) == number_literal) )) (compound_statement "{\n        if (param_2 != (undefined4 *)0x0) {\n          *param_2 = param_1;\n        }\n        iVar3 = 2;\n        goto LAB_0004a680;\n      }" { (if_statement "if (param_2 != (undefined4 *)0x0) {\n          *param_2 = param_1;\n        }" if (parenthesized_expression "(param_2 != (undefined4 *)0x0)" ( (binary_expression "param_2 != (undefined4 *)0x0" identifier != (cast_expression "(undefined4 *)0x0" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n          *param_2 = param_1;\n        }" { (expression_statement "*param_2 = param_1;" (assignment_expression "*param_2 = param_1" (pointer_expression "*param_2" * identifier) = identifier) ;) })) (expression_statement "iVar3 = 2;" (assignment_expression "iVar3 = 2" identifier = number_literal) ;) (goto_statement "goto LAB_0004a680;" goto statement_identifier ;) })) (goto_statement "goto LAB_0004a634;" goto statement_identifier ;) })) (expression_statement "param_1 = param_1 + 1;" (assignment_expression "param_1 = param_1 + 1" identifier = (binary_expression "param_1 + 1" identifier + number_literal)) ;) (expression_statement "bVar1 = *param_1;" (assignment_expression "bVar1 = *param_1" identifier = (pointer_expression "*param_1" * identifier)) ;) }) while (parenthesized_expression "( true )" ( true )) ;) })))
(translation_unit "CURLofft curlx_strtoofft(char *str,char **endp,int base,curl_off_t *num)\n\n{\n  char cVar1;\n  int *piVar2;\n  int iVar3;\n  CURLofft CVar4;\n  uint uVar5;\n  undefined *puVar6;\n  curl_off_t cVar7;\n  char *end;\n  uint local_24;\n  \n  puVar6 = PTR___stack_chk_guard_000a6fe0;\n  local_24 = *(uint *)PTR___stack_chk_guard_000a6fe0;\n  piVar2 = (int *)(*(code *)PTR___errno_location_000a6dcc)();\n  *piVar2 = 0;\n  *(undefined4 *)((int)num + 4) = 0;\n  *(undefined4 *)num = 0;\n  cVar1 = *str;\n  do {\n    if (cVar1 == '\0') {\nLAB_0004a634:\n      cVar7 = (*(code *)PTR_strtoll_000a6ab4)(str,&end,base);\n      if (endp != (char **)0x0) {\n        *endp = end;\n      }\n      CVar4 = CURL_OFFT_FLOW;\n      if ((*piVar2 != 0x22) && (CVar4 = CURL_OFFT_INVAL, str != end)) {\n        CVar4 = CURL_OFFT_OK;\n        *num = cVar7;\n      }\nLAB_0004a680:\n      if (local_24 == *(uint *)puVar6) {\n        return CVar4;\n      }\n      uVar5 = local_24;\n      puVar6 = PTR___stack_chk_fail_000a6c54;\n      (*(code *)PTR___stack_chk_fail_000a6c54)();\n      if (uVar5 < 0x5e) {\n                    /* WARNING: Could not recover jumptable at 0x0004a6f0. Too many branches */\n                    /* WARNING: Treating indirect jump as call */\n        CVar4 = (*(code *)(puVar6 + *(int *)(*(int *)(puVar6 + 0x5bad4) + -0x2300 + uVar5 * 4) +\n                                    0x63a50))();\n        return CVar4;\n      }\n      return *(int *)(puVar6 + 0x5bad4) - 0x3018;\n    }\n    iVar3 = (*(code *)PTR_Curl_isspace_000a62bc)(cVar1);\n    if (iVar3 == 0) {\n      if (*str == '-') {\n        if (endp != (char **)0x0) {\n          *endp = str;\n        }\n        CVar4 = CURL_OFFT_INVAL;\n        goto LAB_0004a680;\n      }\n      goto LAB_0004a634;\n    }\n    str = str + 1;\n    cVar1 = *str;\n  } while( true );\n}\n\n" (function_definition "CURLofft curlx_strtoofft(char *str,char **endp,int base,curl_off_t *num)\n\n{\n  char cVar1;\n  int *piVar2;\n  int iVar3;\n  CURLofft CVar4;\n  uint uVar5;\n  undefined *puVar6;\n  curl_off_t cVar7;\n  char *end;\n  uint local_24;\n  \n  puVar6 = PTR___stack_chk_guard_000a6fe0;\n  local_24 = *(uint *)PTR___stack_chk_guard_000a6fe0;\n  piVar2 = (int *)(*(code *)PTR___errno_location_000a6dcc)();\n  *piVar2 = 0;\n  *(undefined4 *)((int)num + 4) = 0;\n  *(undefined4 *)num = 0;\n  cVar1 = *str;\n  do {\n    if (cVar1 == '\0') {\nLAB_0004a634:\n      cVar7 = (*(code *)PTR_strtoll_000a6ab4)(str,&end,base);\n      if (endp != (char **)0x0) {\n        *endp = end;\n      }\n      CVar4 = CURL_OFFT_FLOW;\n      if ((*piVar2 != 0x22) && (CVar4 = CURL_OFFT_INVAL, str != end)) {\n        CVar4 = CURL_OFFT_OK;\n        *num = cVar7;\n      }\nLAB_0004a680:\n      if (local_24 == *(uint *)puVar6) {\n        return CVar4;\n      }\n      uVar5 = local_24;\n      puVar6 = PTR___stack_chk_fail_000a6c54;\n      (*(code *)PTR___stack_chk_fail_000a6c54)();\n      if (uVar5 < 0x5e) {\n                    /* WARNING: Could not recover jumptable at 0x0004a6f0. Too many branches */\n                    /* WARNING: Treating indirect jump as call */\n        CVar4 = (*(code *)(puVar6 + *(int *)(*(int *)(puVar6 + 0x5bad4) + -0x2300 + uVar5 * 4) +\n                                    0x63a50))();\n        return CVar4;\n      }\n      return *(int *)(puVar6 + 0x5bad4) - 0x3018;\n    }\n    iVar3 = (*(code *)PTR_Curl_isspace_000a62bc)(cVar1);\n    if (iVar3 == 0) {\n      if (*str == '-') {\n        if (endp != (char **)0x0) {\n          *endp = str;\n        }\n        CVar4 = CURL_OFFT_INVAL;\n        goto LAB_0004a680;\n      }\n      goto LAB_0004a634;\n    }\n    str = str + 1;\n    cVar1 = *str;\n  } while( true );\n}" type_identifier (function_declarator "curlx_strtoofft(char *str,char **endp,int base,curl_off_t *num)" identifier (parameter_list "(char *str,char **endp,int base,curl_off_t *num)" ( (parameter_declaration "char *str" primitive_type (pointer_declarator "*str" * identifier)) , (parameter_declaration "char **endp" primitive_type (pointer_declarator "**endp" * (pointer_declarator "*endp" * identifier))) , (parameter_declaration "int base" primitive_type identifier) , (parameter_declaration "curl_off_t *num" type_identifier (pointer_declarator "*num" * identifier)) ))) (compound_statement "{\n  char cVar1;\n  int *piVar2;\n  int iVar3;\n  CURLofft CVar4;\n  uint uVar5;\n  undefined *puVar6;\n  curl_off_t cVar7;\n  char *end;\n  uint local_24;\n  \n  puVar6 = PTR___stack_chk_guard_000a6fe0;\n  local_24 = *(uint *)PTR___stack_chk_guard_000a6fe0;\n  piVar2 = (int *)(*(code *)PTR___errno_location_000a6dcc)();\n  *piVar2 = 0;\n  *(undefined4 *)((int)num + 4) = 0;\n  *(undefined4 *)num = 0;\n  cVar1 = *str;\n  do {\n    if (cVar1 == '\0') {\nLAB_0004a634:\n      cVar7 = (*(code *)PTR_strtoll_000a6ab4)(str,&end,base);\n      if (endp != (char **)0x0) {\n        *endp = end;\n      }\n      CVar4 = CURL_OFFT_FLOW;\n      if ((*piVar2 != 0x22) && (CVar4 = CURL_OFFT_INVAL, str != end)) {\n        CVar4 = CURL_OFFT_OK;\n        *num = cVar7;\n      }\nLAB_0004a680:\n      if (local_24 == *(uint *)puVar6) {\n        return CVar4;\n      }\n      uVar5 = local_24;\n      puVar6 = PTR___stack_chk_fail_000a6c54;\n      (*(code *)PTR___stack_chk_fail_000a6c54)();\n      if (uVar5 < 0x5e) {\n                    /* WARNING: Could not recover jumptable at 0x0004a6f0. Too many branches */\n                    /* WARNING: Treating indirect jump as call */\n        CVar4 = (*(code *)(puVar6 + *(int *)(*(int *)(puVar6 + 0x5bad4) + -0x2300 + uVar5 * 4) +\n                                    0x63a50))();\n        return CVar4;\n      }\n      return *(int *)(puVar6 + 0x5bad4) - 0x3018;\n    }\n    iVar3 = (*(code *)PTR_Curl_isspace_000a62bc)(cVar1);\n    if (iVar3 == 0) {\n      if (*str == '-') {\n        if (endp != (char **)0x0) {\n          *endp = str;\n        }\n        CVar4 = CURL_OFFT_INVAL;\n        goto LAB_0004a680;\n      }\n      goto LAB_0004a634;\n    }\n    str = str + 1;\n    cVar1 = *str;\n  } while( true );\n}" { (declaration "char cVar1;" primitive_type identifier ;) (declaration "int *piVar2;" primitive_type (pointer_declarator "*piVar2" * identifier) ;) (declaration "int iVar3;" primitive_type identifier ;) (declaration "CURLofft CVar4;" type_identifier identifier ;) (declaration "uint uVar5;" type_identifier identifier ;) (declaration "undefined *puVar6;" type_identifier (pointer_declarator "*puVar6" * identifier) ;) (declaration "curl_off_t cVar7;" type_identifier identifier ;) (declaration "char *end;" primitive_type (pointer_declarator "*end" * identifier) ;) (declaration "uint local_24;" type_identifier identifier ;) (expression_statement "puVar6 = PTR___stack_chk_guard_000a6fe0;" (assignment_expression "puVar6 = PTR___stack_chk_guard_000a6fe0" identifier = identifier) ;) (expression_statement "local_24 = *(uint *)PTR___stack_chk_guard_000a6fe0;" (assignment_expression "local_24 = *(uint *)PTR___stack_chk_guard_000a6fe0" identifier = (pointer_expression "*(uint *)PTR___stack_chk_guard_000a6fe0" * (cast_expression "(uint *)PTR___stack_chk_guard_000a6fe0" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier))) ;) (expression_statement "piVar2 = (int *)(*(code *)PTR___errno_location_000a6dcc)();" (assignment_expression "piVar2 = (int *)(*(code *)PTR___errno_location_000a6dcc)()" identifier = (cast_expression "(int *)(*(code *)PTR___errno_location_000a6dcc)()" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (call_expression "(*(code *)PTR___errno_location_000a6dcc)()" (parenthesized_expression "(*(code *)PTR___errno_location_000a6dcc)" ( (pointer_expression "*(code *)PTR___errno_location_000a6dcc" * (cast_expression "(code *)PTR___errno_location_000a6dcc" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "()" ( ))))) ;) (expression_statement "*piVar2 = 0;" (assignment_expression "*piVar2 = 0" (pointer_expression "*piVar2" * identifier) = number_literal) ;) (expression_statement "*(undefined4 *)((int)num + 4) = 0;" (assignment_expression "*(undefined4 *)((int)num + 4) = 0" (pointer_expression "*(undefined4 *)((int)num + 4)" * (cast_expression "(undefined4 *)((int)num + 4)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)num + 4)" ( (binary_expression "(int)num + 4" (cast_expression "(int)num" ( (type_descriptor "int" primitive_type) ) identifier) + number_literal) )))) = number_literal) ;) (expression_statement "*(undefined4 *)num = 0;" (assignment_expression "*(undefined4 *)num = 0" (pointer_expression "*(undefined4 *)num" * (cast_expression "(undefined4 *)num" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) = number_literal) ;) (expression_statement "cVar1 = *str;" (assignment_expression "cVar1 = *str" identifier = (pointer_expression "*str" * identifier)) ;) (do_statement "do {\n    if (cVar1 == '\0') {\nLAB_0004a634:\n      cVar7 = (*(code *)PTR_strtoll_000a6ab4)(str,&end,base);\n      if (endp != (char **)0x0) {\n        *endp = end;\n      }\n      CVar4 = CURL_OFFT_FLOW;\n      if ((*piVar2 != 0x22) && (CVar4 = CURL_OFFT_INVAL, str != end)) {\n        CVar4 = CURL_OFFT_OK;\n        *num = cVar7;\n      }\nLAB_0004a680:\n      if (local_24 == *(uint *)puVar6) {\n        return CVar4;\n      }\n      uVar5 = local_24;\n      puVar6 = PTR___stack_chk_fail_000a6c54;\n      (*(code *)PTR___stack_chk_fail_000a6c54)();\n      if (uVar5 < 0x5e) {\n                    /* WARNING: Could not recover jumptable at 0x0004a6f0. Too many branches */\n                    /* WARNING: Treating indirect jump as call */\n        CVar4 = (*(code *)(puVar6 + *(int *)(*(int *)(puVar6 + 0x5bad4) + -0x2300 + uVar5 * 4) +\n                                    0x63a50))();\n        return CVar4;\n      }\n      return *(int *)(puVar6 + 0x5bad4) - 0x3018;\n    }\n    iVar3 = (*(code *)PTR_Curl_isspace_000a62bc)(cVar1);\n    if (iVar3 == 0) {\n      if (*str == '-') {\n        if (endp != (char **)0x0) {\n          *endp = str;\n        }\n        CVar4 = CURL_OFFT_INVAL;\n        goto LAB_0004a680;\n      }\n      goto LAB_0004a634;\n    }\n    str = str + 1;\n    cVar1 = *str;\n  } while( true );" do (compound_statement "{\n    if (cVar1 == '\0') {\nLAB_0004a634:\n      cVar7 = (*(code *)PTR_strtoll_000a6ab4)(str,&end,base);\n      if (endp != (char **)0x0) {\n        *endp = end;\n      }\n      CVar4 = CURL_OFFT_FLOW;\n      if ((*piVar2 != 0x22) && (CVar4 = CURL_OFFT_INVAL, str != end)) {\n        CVar4 = CURL_OFFT_OK;\n        *num = cVar7;\n      }\nLAB_0004a680:\n      if (local_24 == *(uint *)puVar6) {\n        return CVar4;\n      }\n      uVar5 = local_24;\n      puVar6 = PTR___stack_chk_fail_000a6c54;\n      (*(code *)PTR___stack_chk_fail_000a6c54)();\n      if (uVar5 < 0x5e) {\n                    /* WARNING: Could not recover jumptable at 0x0004a6f0. Too many branches */\n                    /* WARNING: Treating indirect jump as call */\n        CVar4 = (*(code *)(puVar6 + *(int *)(*(int *)(puVar6 + 0x5bad4) + -0x2300 + uVar5 * 4) +\n                                    0x63a50))();\n        return CVar4;\n      }\n      return *(int *)(puVar6 + 0x5bad4) - 0x3018;\n    }\n    iVar3 = (*(code *)PTR_Curl_isspace_000a62bc)(cVar1);\n    if (iVar3 == 0) {\n      if (*str == '-') {\n        if (endp != (char **)0x0) {\n          *endp = str;\n        }\n        CVar4 = CURL_OFFT_INVAL;\n        goto LAB_0004a680;\n      }\n      goto LAB_0004a634;\n    }\n    str = str + 1;\n    cVar1 = *str;\n  }" { (if_statement "if (cVar1 == '\0') {\nLAB_0004a634:\n      cVar7 = (*(code *)PTR_strtoll_000a6ab4)(str,&end,base);\n      if (endp != (char **)0x0) {\n        *endp = end;\n      }\n      CVar4 = CURL_OFFT_FLOW;\n      if ((*piVar2 != 0x22) && (CVar4 = CURL_OFFT_INVAL, str != end)) {\n        CVar4 = CURL_OFFT_OK;\n        *num = cVar7;\n      }\nLAB_0004a680:\n      if (local_24 == *(uint *)puVar6) {\n        return CVar4;\n      }\n      uVar5 = local_24;\n      puVar6 = PTR___stack_chk_fail_000a6c54;\n      (*(code *)PTR___stack_chk_fail_000a6c54)();\n      if (uVar5 < 0x5e) {\n                    /* WARNING: Could not recover jumptable at 0x0004a6f0. Too many branches */\n                    /* WARNING: Treating indirect jump as call */\n        CVar4 = (*(code *)(puVar6 + *(int *)(*(int *)(puVar6 + 0x5bad4) + -0x2300 + uVar5 * 4) +\n                                    0x63a50))();\n        return CVar4;\n      }\n      return *(int *)(puVar6 + 0x5bad4) - 0x3018;\n    }" if (parenthesized_expression "(cVar1 == '\0')" ( (binary_expression "cVar1 == '\0'" identifier == (char_literal "'\0'" ' escape_sequence ')) )) (compound_statement "{\nLAB_0004a634:\n      cVar7 = (*(code *)PTR_strtoll_000a6ab4)(str,&end,base);\n      if (endp != (char **)0x0) {\n        *endp = end;\n      }\n      CVar4 = CURL_OFFT_FLOW;\n      if ((*piVar2 != 0x22) && (CVar4 = CURL_OFFT_INVAL, str != end)) {\n        CVar4 = CURL_OFFT_OK;\n        *num = cVar7;\n      }\nLAB_0004a680:\n      if (local_24 == *(uint *)puVar6) {\n        return CVar4;\n      }\n      uVar5 = local_24;\n      puVar6 = PTR___stack_chk_fail_000a6c54;\n      (*(code *)PTR___stack_chk_fail_000a6c54)();\n      if (uVar5 < 0x5e) {\n                    /* WARNING: Could not recover jumptable at 0x0004a6f0. Too many branches */\n                    /* WARNING: Treating indirect jump as call */\n        CVar4 = (*(code *)(puVar6 + *(int *)(*(int *)(puVar6 + 0x5bad4) + -0x2300 + uVar5 * 4) +\n                                    0x63a50))();\n        return CVar4;\n      }\n      return *(int *)(puVar6 + 0x5bad4) - 0x3018;\n    }" { (labeled_statement "LAB_0004a634:\n      cVar7 = (*(code *)PTR_strtoll_000a6ab4)(str,&end,base);" statement_identifier : (expression_statement "cVar7 = (*(code *)PTR_strtoll_000a6ab4)(str,&end,base);" (assignment_expression "cVar7 = (*(code *)PTR_strtoll_000a6ab4)(str,&end,base)" identifier = (call_expression "(*(code *)PTR_strtoll_000a6ab4)(str,&end,base)" (parenthesized_expression "(*(code *)PTR_strtoll_000a6ab4)" ( (pointer_expression "*(code *)PTR_strtoll_000a6ab4" * (cast_expression "(code *)PTR_strtoll_000a6ab4" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(str,&end,base)" ( identifier , (pointer_expression "&end" & identifier) , identifier )))) ;)) (if_statement "if (endp != (char **)0x0) {\n        *endp = end;\n      }" if (parenthesized_expression "(endp != (char **)0x0)" ( (binary_expression "endp != (char **)0x0" identifier != (cast_expression "(char **)0x0" ( (type_descriptor "char **" primitive_type (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) number_literal)) )) (compound_statement "{\n        *endp = end;\n      }" { (expression_statement "*endp = end;" (assignment_expression "*endp = end" (pointer_expression "*endp" * identifier) = identifier) ;) })) (expression_statement "CVar4 = CURL_OFFT_FLOW;" (assignment_expression "CVar4 = CURL_OFFT_FLOW" identifier = identifier) ;) (if_statement "if ((*piVar2 != 0x22) && (CVar4 = CURL_OFFT_INVAL, str != end)) {\n        CVar4 = CURL_OFFT_OK;\n        *num = cVar7;\n      }" if (parenthesized_expression "((*piVar2 != 0x22) && (CVar4 = CURL_OFFT_INVAL, str != end))" ( (binary_expression "(*piVar2 != 0x22) && (CVar4 = CURL_OFFT_INVAL, str != end)" (parenthesized_expression "(*piVar2 != 0x22)" ( (binary_expression "*piVar2 != 0x22" (pointer_expression "*piVar2" * identifier) != number_literal) )) && (parenthesized_expression "(CVar4 = CURL_OFFT_INVAL, str != end)" ( (comma_expression "CVar4 = CURL_OFFT_INVAL, str != end" (assignment_expression "CVar4 = CURL_OFFT_INVAL" identifier = identifier) , (binary_expression "str != end" identifier != identifier)) ))) )) (compound_statement "{\n        CVar4 = CURL_OFFT_OK;\n        *num = cVar7;\n      }" { (expression_statement "CVar4 = CURL_OFFT_OK;" (assignment_expression "CVar4 = CURL_OFFT_OK" identifier = identifier) ;) (expression_statement "*num = cVar7;" (assignment_expression "*num = cVar7" (pointer_expression "*num" * identifier) = identifier) ;) })) (labeled_statement "LAB_0004a680:\n      if (local_24 == *(uint *)puVar6) {\n        return CVar4;\n      }" statement_identifier : (if_statement "if (local_24 == *(uint *)puVar6) {\n        return CVar4;\n      }" if (parenthesized_expression "(local_24 == *(uint *)puVar6)" ( (binary_expression "local_24 == *(uint *)puVar6" identifier == (pointer_expression "*(uint *)puVar6" * (cast_expression "(uint *)puVar6" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier))) )) (compound_statement "{\n        return CVar4;\n      }" { (return_statement "return CVar4;" return identifier ;) }))) (expression_statement "uVar5 = local_24;" (assignment_expression "uVar5 = local_24" identifier = identifier) ;) (expression_statement "puVar6 = PTR___stack_chk_fail_000a6c54;" (assignment_expression "puVar6 = PTR___stack_chk_fail_000a6c54" identifier = identifier) ;) (expression_statement "(*(code *)PTR___stack_chk_fail_000a6c54)();" (call_expression "(*(code *)PTR___stack_chk_fail_000a6c54)()" (parenthesized_expression "(*(code *)PTR___stack_chk_fail_000a6c54)" ( (pointer_expression "*(code *)PTR___stack_chk_fail_000a6c54" * (cast_expression "(code *)PTR___stack_chk_fail_000a6c54" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "()" ( ))) ;) (if_statement "if (uVar5 < 0x5e) {\n                    /* WARNING: Could not recover jumptable at 0x0004a6f0. Too many branches */\n                    /* WARNING: Treating indirect jump as call */\n        CVar4 = (*(code *)(puVar6 + *(int *)(*(int *)(puVar6 + 0x5bad4) + -0x2300 + uVar5 * 4) +\n                                    0x63a50))();\n        return CVar4;\n      }" if (parenthesized_expression "(uVar5 < 0x5e)" ( (binary_expression "uVar5 < 0x5e" identifier < number_literal) )) (compound_statement "{\n                    /* WARNING: Could not recover jumptable at 0x0004a6f0. Too many branches */\n                    /* WARNING: Treating indirect jump as call */\n        CVar4 = (*(code *)(puVar6 + *(int *)(*(int *)(puVar6 + 0x5bad4) + -0x2300 + uVar5 * 4) +\n                                    0x63a50))();\n        return CVar4;\n      }" { comment comment (expression_statement "CVar4 = (*(code *)(puVar6 + *(int *)(*(int *)(puVar6 + 0x5bad4) + -0x2300 + uVar5 * 4) +\n                                    0x63a50))();" (assignment_expression "CVar4 = (*(code *)(puVar6 + *(int *)(*(int *)(puVar6 + 0x5bad4) + -0x2300 + uVar5 * 4) +\n                                    0x63a50))()" identifier = (call_expression "(*(code *)(puVar6 + *(int *)(*(int *)(puVar6 + 0x5bad4) + -0x2300 + uVar5 * 4) +\n                                    0x63a50))()" (parenthesized_expression "(*(code *)(puVar6 + *(int *)(*(int *)(puVar6 + 0x5bad4) + -0x2300 + uVar5 * 4) +\n                                    0x63a50))" ( (pointer_expression "*(code *)(puVar6 + *(int *)(*(int *)(puVar6 + 0x5bad4) + -0x2300 + uVar5 * 4) +\n                                    0x63a50)" * (cast_expression "(code *)(puVar6 + *(int *)(*(int *)(puVar6 + 0x5bad4) + -0x2300 + uVar5 * 4) +\n                                    0x63a50)" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(puVar6 + *(int *)(*(int *)(puVar6 + 0x5bad4) + -0x2300 + uVar5 * 4) +\n                                    0x63a50)" ( (binary_expression "puVar6 + *(int *)(*(int *)(puVar6 + 0x5bad4) + -0x2300 + uVar5 * 4) +\n                                    0x63a50" (binary_expression "puVar6 + *(int *)(*(int *)(puVar6 + 0x5bad4) + -0x2300 + uVar5 * 4)" identifier + (pointer_expression "*(int *)(*(int *)(puVar6 + 0x5bad4) + -0x2300 + uVar5 * 4)" * (cast_expression "(int *)(*(int *)(puVar6 + 0x5bad4) + -0x2300 + uVar5 * 4)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(*(int *)(puVar6 + 0x5bad4) + -0x2300 + uVar5 * 4)" ( (binary_expression "*(int *)(puVar6 + 0x5bad4) + -0x2300 + uVar5 * 4" (binary_expression "*(int *)(puVar6 + 0x5bad4) + -0x2300" (pointer_expression "*(int *)(puVar6 + 0x5bad4)" * (cast_expression "(int *)(puVar6 + 0x5bad4)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(puVar6 + 0x5bad4)" ( (binary_expression "puVar6 + 0x5bad4" identifier + number_literal) )))) + number_literal) + (binary_expression "uVar5 * 4" identifier * number_literal)) ))))) + number_literal) )))) )) (argument_list "()" ( )))) ;) (return_statement "return CVar4;" return identifier ;) })) (return_statement "return *(int *)(puVar6 + 0x5bad4) - 0x3018;" return (binary_expression "*(int *)(puVar6 + 0x5bad4) - 0x3018" (pointer_expression "*(int *)(puVar6 + 0x5bad4)" * (cast_expression "(int *)(puVar6 + 0x5bad4)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(puVar6 + 0x5bad4)" ( (binary_expression "puVar6 + 0x5bad4" identifier + number_literal) )))) - number_literal) ;) })) (expression_statement "iVar3 = (*(code *)PTR_Curl_isspace_000a62bc)(cVar1);" (assignment_expression "iVar3 = (*(code *)PTR_Curl_isspace_000a62bc)(cVar1)" identifier = (call_expression "(*(code *)PTR_Curl_isspace_000a62bc)(cVar1)" (parenthesized_expression "(*(code *)PTR_Curl_isspace_000a62bc)" ( (pointer_expression "*(code *)PTR_Curl_isspace_000a62bc" * (cast_expression "(code *)PTR_Curl_isspace_000a62bc" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(cVar1)" ( identifier )))) ;) (if_statement "if (iVar3 == 0) {\n      if (*str == '-') {\n        if (endp != (char **)0x0) {\n          *endp = str;\n        }\n        CVar4 = CURL_OFFT_INVAL;\n        goto LAB_0004a680;\n      }\n      goto LAB_0004a634;\n    }" if (parenthesized_expression "(iVar3 == 0)" ( (binary_expression "iVar3 == 0" identifier == number_literal) )) (compound_statement "{\n      if (*str == '-') {\n        if (endp != (char **)0x0) {\n          *endp = str;\n        }\n        CVar4 = CURL_OFFT_INVAL;\n        goto LAB_0004a680;\n      }\n      goto LAB_0004a634;\n    }" { (if_statement "if (*str == '-') {\n        if (endp != (char **)0x0) {\n          *endp = str;\n        }\n        CVar4 = CURL_OFFT_INVAL;\n        goto LAB_0004a680;\n      }" if (parenthesized_expression "(*str == '-')" ( (binary_expression "*str == '-'" (pointer_expression "*str" * identifier) == (char_literal "'-'" ' character ')) )) (compound_statement "{\n        if (endp != (char **)0x0) {\n          *endp = str;\n        }\n        CVar4 = CURL_OFFT_INVAL;\n        goto LAB_0004a680;\n      }" { (if_statement "if (endp != (char **)0x0) {\n          *endp = str;\n        }" if (parenthesized_expression "(endp != (char **)0x0)" ( (binary_expression "endp != (char **)0x0" identifier != (cast_expression "(char **)0x0" ( (type_descriptor "char **" primitive_type (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) number_literal)) )) (compound_statement "{\n          *endp = str;\n        }" { (expression_statement "*endp = str;" (assignment_expression "*endp = str" (pointer_expression "*endp" * identifier) = identifier) ;) })) (expression_statement "CVar4 = CURL_OFFT_INVAL;" (assignment_expression "CVar4 = CURL_OFFT_INVAL" identifier = identifier) ;) (goto_statement "goto LAB_0004a680;" goto statement_identifier ;) })) (goto_statement "goto LAB_0004a634;" goto statement_identifier ;) })) (expression_statement "str = str + 1;" (assignment_expression "str = str + 1" identifier = (binary_expression "str + 1" identifier + number_literal)) ;) (expression_statement "cVar1 = *str;" (assignment_expression "cVar1 = *str" identifier = (pointer_expression "*str" * identifier)) ;) }) while (parenthesized_expression "( true )" ( true )) ;) })))
(translation_unit "int FUN_0004a560(byte *param_1,undefined4 *param_2,undefined4 param_3,undefined8 *param_4)\n\n{\n  byte bVar1;\n  int *piVar2;\n  int iVar3;\n  uint uVar4;\n  undefined *puVar5;\n  undefined8 uVar6;\n  byte *local_28;\n  uint local_24;\n  \n  puVar5 = PTR___stack_chk_guard_000a6fe0;\n  local_24 = *(uint *)PTR___stack_chk_guard_000a6fe0;\n  piVar2 = (int *)(*(code *)PTR___errno_location_000a6dcc)();\n  *piVar2 = 0;\n  *(undefined4 *)((int)param_4 + 4) = 0;\n  *(undefined4 *)param_4 = 0;\n  bVar1 = *param_1;\n  do {\n    if (bVar1 == 0) {\nLAB_0004a634:\n      uVar6 = (*(code *)PTR_strtoll_000a6ab4)(param_1,&local_28,param_3);\n      if (param_2 != (undefined4 *)0x0) {\n        *param_2 = local_28;\n      }\n      iVar3 = 1;\n      if ((*piVar2 != 0x22) && (iVar3 = 2, param_1 != local_28)) {\n        iVar3 = 0;\n        *param_4 = uVar6;\n      }\nLAB_0004a680:\n      if (local_24 == *(uint *)puVar5) {\n        return iVar3;\n      }\n      uVar4 = local_24;\n      puVar5 = PTR___stack_chk_fail_000a6c54;\n      (*(code *)PTR___stack_chk_fail_000a6c54)();\n      if (uVar4 < 0x5e) {\n                    \n                    \n        iVar3 = (*(code *)(puVar5 + *(int *)(*(int *)(puVar5 + 0x5bad4) + -0x2300 + uVar4 * 4) +\n                                    0x63a50))();\n        return iVar3;\n      }\n      return *(int *)(puVar5 + 0x5bad4) + -0x3018;\n    }\n    iVar3 = (*(code *)PTR_FUN_000a62bc)(bVar1);\n    if (iVar3 == 0) {\n      if (*param_1 == 0x2d) {\n        if (param_2 != (undefined4 *)0x0) {\n          *param_2 = param_1;\n        }\n        iVar3 = 2;\n        goto LAB_0004a680;\n      }\n      goto LAB_0004a634;\n    }\n    param_1 = param_1 + 1;\n    bVar1 = *param_1;\n  } while( true );\n}\n\n" (function_definition "int FUN_0004a560(byte *param_1,undefined4 *param_2,undefined4 param_3,undefined8 *param_4)\n\n{\n  byte bVar1;\n  int *piVar2;\n  int iVar3;\n  uint uVar4;\n  undefined *puVar5;\n  undefined8 uVar6;\n  byte *local_28;\n  uint local_24;\n  \n  puVar5 = PTR___stack_chk_guard_000a6fe0;\n  local_24 = *(uint *)PTR___stack_chk_guard_000a6fe0;\n  piVar2 = (int *)(*(code *)PTR___errno_location_000a6dcc)();\n  *piVar2 = 0;\n  *(undefined4 *)((int)param_4 + 4) = 0;\n  *(undefined4 *)param_4 = 0;\n  bVar1 = *param_1;\n  do {\n    if (bVar1 == 0) {\nLAB_0004a634:\n      uVar6 = (*(code *)PTR_strtoll_000a6ab4)(param_1,&local_28,param_3);\n      if (param_2 != (undefined4 *)0x0) {\n        *param_2 = local_28;\n      }\n      iVar3 = 1;\n      if ((*piVar2 != 0x22) && (iVar3 = 2, param_1 != local_28)) {\n        iVar3 = 0;\n        *param_4 = uVar6;\n      }\nLAB_0004a680:\n      if (local_24 == *(uint *)puVar5) {\n        return iVar3;\n      }\n      uVar4 = local_24;\n      puVar5 = PTR___stack_chk_fail_000a6c54;\n      (*(code *)PTR___stack_chk_fail_000a6c54)();\n      if (uVar4 < 0x5e) {\n                    \n                    \n        iVar3 = (*(code *)(puVar5 + *(int *)(*(int *)(puVar5 + 0x5bad4) + -0x2300 + uVar4 * 4) +\n                                    0x63a50))();\n        return iVar3;\n      }\n      return *(int *)(puVar5 + 0x5bad4) + -0x3018;\n    }\n    iVar3 = (*(code *)PTR_FUN_000a62bc)(bVar1);\n    if (iVar3 == 0) {\n      if (*param_1 == 0x2d) {\n        if (param_2 != (undefined4 *)0x0) {\n          *param_2 = param_1;\n        }\n        iVar3 = 2;\n        goto LAB_0004a680;\n      }\n      goto LAB_0004a634;\n    }\n    param_1 = param_1 + 1;\n    bVar1 = *param_1;\n  } while( true );\n}" primitive_type (function_declarator "FUN_0004a560(byte *param_1,undefined4 *param_2,undefined4 param_3,undefined8 *param_4)" identifier (parameter_list "(byte *param_1,undefined4 *param_2,undefined4 param_3,undefined8 *param_4)" ( (parameter_declaration "byte *param_1" type_identifier (pointer_declarator "*param_1" * identifier)) , (parameter_declaration "undefined4 *param_2" type_identifier (pointer_declarator "*param_2" * identifier)) , (parameter_declaration "undefined4 param_3" type_identifier identifier) , (parameter_declaration "undefined8 *param_4" type_identifier (pointer_declarator "*param_4" * identifier)) ))) (compound_statement "{\n  byte bVar1;\n  int *piVar2;\n  int iVar3;\n  uint uVar4;\n  undefined *puVar5;\n  undefined8 uVar6;\n  byte *local_28;\n  uint local_24;\n  \n  puVar5 = PTR___stack_chk_guard_000a6fe0;\n  local_24 = *(uint *)PTR___stack_chk_guard_000a6fe0;\n  piVar2 = (int *)(*(code *)PTR___errno_location_000a6dcc)();\n  *piVar2 = 0;\n  *(undefined4 *)((int)param_4 + 4) = 0;\n  *(undefined4 *)param_4 = 0;\n  bVar1 = *param_1;\n  do {\n    if (bVar1 == 0) {\nLAB_0004a634:\n      uVar6 = (*(code *)PTR_strtoll_000a6ab4)(param_1,&local_28,param_3);\n      if (param_2 != (undefined4 *)0x0) {\n        *param_2 = local_28;\n      }\n      iVar3 = 1;\n      if ((*piVar2 != 0x22) && (iVar3 = 2, param_1 != local_28)) {\n        iVar3 = 0;\n        *param_4 = uVar6;\n      }\nLAB_0004a680:\n      if (local_24 == *(uint *)puVar5) {\n        return iVar3;\n      }\n      uVar4 = local_24;\n      puVar5 = PTR___stack_chk_fail_000a6c54;\n      (*(code *)PTR___stack_chk_fail_000a6c54)();\n      if (uVar4 < 0x5e) {\n                    \n                    \n        iVar3 = (*(code *)(puVar5 + *(int *)(*(int *)(puVar5 + 0x5bad4) + -0x2300 + uVar4 * 4) +\n                                    0x63a50))();\n        return iVar3;\n      }\n      return *(int *)(puVar5 + 0x5bad4) + -0x3018;\n    }\n    iVar3 = (*(code *)PTR_FUN_000a62bc)(bVar1);\n    if (iVar3 == 0) {\n      if (*param_1 == 0x2d) {\n        if (param_2 != (undefined4 *)0x0) {\n          *param_2 = param_1;\n        }\n        iVar3 = 2;\n        goto LAB_0004a680;\n      }\n      goto LAB_0004a634;\n    }\n    param_1 = param_1 + 1;\n    bVar1 = *param_1;\n  } while( true );\n}" { (declaration "byte bVar1;" type_identifier identifier ;) (declaration "int *piVar2;" primitive_type (pointer_declarator "*piVar2" * identifier) ;) (declaration "int iVar3;" primitive_type identifier ;) (declaration "uint uVar4;" type_identifier identifier ;) (declaration "undefined *puVar5;" type_identifier (pointer_declarator "*puVar5" * identifier) ;) (declaration "undefined8 uVar6;" type_identifier identifier ;) (declaration "byte *local_28;" type_identifier (pointer_declarator "*local_28" * identifier) ;) (declaration "uint local_24;" type_identifier identifier ;) (expression_statement "puVar5 = PTR___stack_chk_guard_000a6fe0;" (assignment_expression "puVar5 = PTR___stack_chk_guard_000a6fe0" identifier = identifier) ;) (expression_statement "local_24 = *(uint *)PTR___stack_chk_guard_000a6fe0;" (assignment_expression "local_24 = *(uint *)PTR___stack_chk_guard_000a6fe0" identifier = (pointer_expression "*(uint *)PTR___stack_chk_guard_000a6fe0" * (cast_expression "(uint *)PTR___stack_chk_guard_000a6fe0" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier))) ;) (expression_statement "piVar2 = (int *)(*(code *)PTR___errno_location_000a6dcc)();" (assignment_expression "piVar2 = (int *)(*(code *)PTR___errno_location_000a6dcc)()" identifier = (cast_expression "(int *)(*(code *)PTR___errno_location_000a6dcc)()" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (call_expression "(*(code *)PTR___errno_location_000a6dcc)()" (parenthesized_expression "(*(code *)PTR___errno_location_000a6dcc)" ( (pointer_expression "*(code *)PTR___errno_location_000a6dcc" * (cast_expression "(code *)PTR___errno_location_000a6dcc" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "()" ( ))))) ;) (expression_statement "*piVar2 = 0;" (assignment_expression "*piVar2 = 0" (pointer_expression "*piVar2" * identifier) = number_literal) ;) (expression_statement "*(undefined4 *)((int)param_4 + 4) = 0;" (assignment_expression "*(undefined4 *)((int)param_4 + 4) = 0" (pointer_expression "*(undefined4 *)((int)param_4 + 4)" * (cast_expression "(undefined4 *)((int)param_4 + 4)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)param_4 + 4)" ( (binary_expression "(int)param_4 + 4" (cast_expression "(int)param_4" ( (type_descriptor "int" primitive_type) ) identifier) + number_literal) )))) = number_literal) ;) (expression_statement "*(undefined4 *)param_4 = 0;" (assignment_expression "*(undefined4 *)param_4 = 0" (pointer_expression "*(undefined4 *)param_4" * (cast_expression "(undefined4 *)param_4" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) = number_literal) ;) (expression_statement "bVar1 = *param_1;" (assignment_expression "bVar1 = *param_1" identifier = (pointer_expression "*param_1" * identifier)) ;) (do_statement "do {\n    if (bVar1 == 0) {\nLAB_0004a634:\n      uVar6 = (*(code *)PTR_strtoll_000a6ab4)(param_1,&local_28,param_3);\n      if (param_2 != (undefined4 *)0x0) {\n        *param_2 = local_28;\n      }\n      iVar3 = 1;\n      if ((*piVar2 != 0x22) && (iVar3 = 2, param_1 != local_28)) {\n        iVar3 = 0;\n        *param_4 = uVar6;\n      }\nLAB_0004a680:\n      if (local_24 == *(uint *)puVar5) {\n        return iVar3;\n      }\n      uVar4 = local_24;\n      puVar5 = PTR___stack_chk_fail_000a6c54;\n      (*(code *)PTR___stack_chk_fail_000a6c54)();\n      if (uVar4 < 0x5e) {\n                    \n                    \n        iVar3 = (*(code *)(puVar5 + *(int *)(*(int *)(puVar5 + 0x5bad4) + -0x2300 + uVar4 * 4) +\n                                    0x63a50))();\n        return iVar3;\n      }\n      return *(int *)(puVar5 + 0x5bad4) + -0x3018;\n    }\n    iVar3 = (*(code *)PTR_FUN_000a62bc)(bVar1);\n    if (iVar3 == 0) {\n      if (*param_1 == 0x2d) {\n        if (param_2 != (undefined4 *)0x0) {\n          *param_2 = param_1;\n        }\n        iVar3 = 2;\n        goto LAB_0004a680;\n      }\n      goto LAB_0004a634;\n    }\n    param_1 = param_1 + 1;\n    bVar1 = *param_1;\n  } while( true );" do (compound_statement "{\n    if (bVar1 == 0) {\nLAB_0004a634:\n      uVar6 = (*(code *)PTR_strtoll_000a6ab4)(param_1,&local_28,param_3);\n      if (param_2 != (undefined4 *)0x0) {\n        *param_2 = local_28;\n      }\n      iVar3 = 1;\n      if ((*piVar2 != 0x22) && (iVar3 = 2, param_1 != local_28)) {\n        iVar3 = 0;\n        *param_4 = uVar6;\n      }\nLAB_0004a680:\n      if (local_24 == *(uint *)puVar5) {\n        return iVar3;\n      }\n      uVar4 = local_24;\n      puVar5 = PTR___stack_chk_fail_000a6c54;\n      (*(code *)PTR___stack_chk_fail_000a6c54)();\n      if (uVar4 < 0x5e) {\n                    \n                    \n        iVar3 = (*(code *)(puVar5 + *(int *)(*(int *)(puVar5 + 0x5bad4) + -0x2300 + uVar4 * 4) +\n                                    0x63a50))();\n        return iVar3;\n      }\n      return *(int *)(puVar5 + 0x5bad4) + -0x3018;\n    }\n    iVar3 = (*(code *)PTR_FUN_000a62bc)(bVar1);\n    if (iVar3 == 0) {\n      if (*param_1 == 0x2d) {\n        if (param_2 != (undefined4 *)0x0) {\n          *param_2 = param_1;\n        }\n        iVar3 = 2;\n        goto LAB_0004a680;\n      }\n      goto LAB_0004a634;\n    }\n    param_1 = param_1 + 1;\n    bVar1 = *param_1;\n  }" { (if_statement "if (bVar1 == 0) {\nLAB_0004a634:\n      uVar6 = (*(code *)PTR_strtoll_000a6ab4)(param_1,&local_28,param_3);\n      if (param_2 != (undefined4 *)0x0) {\n        *param_2 = local_28;\n      }\n      iVar3 = 1;\n      if ((*piVar2 != 0x22) && (iVar3 = 2, param_1 != local_28)) {\n        iVar3 = 0;\n        *param_4 = uVar6;\n      }\nLAB_0004a680:\n      if (local_24 == *(uint *)puVar5) {\n        return iVar3;\n      }\n      uVar4 = local_24;\n      puVar5 = PTR___stack_chk_fail_000a6c54;\n      (*(code *)PTR___stack_chk_fail_000a6c54)();\n      if (uVar4 < 0x5e) {\n                    \n                    \n        iVar3 = (*(code *)(puVar5 + *(int *)(*(int *)(puVar5 + 0x5bad4) + -0x2300 + uVar4 * 4) +\n                                    0x63a50))();\n        return iVar3;\n      }\n      return *(int *)(puVar5 + 0x5bad4) + -0x3018;\n    }" if (parenthesized_expression "(bVar1 == 0)" ( (binary_expression "bVar1 == 0" identifier == number_literal) )) (compound_statement "{\nLAB_0004a634:\n      uVar6 = (*(code *)PTR_strtoll_000a6ab4)(param_1,&local_28,param_3);\n      if (param_2 != (undefined4 *)0x0) {\n        *param_2 = local_28;\n      }\n      iVar3 = 1;\n      if ((*piVar2 != 0x22) && (iVar3 = 2, param_1 != local_28)) {\n        iVar3 = 0;\n        *param_4 = uVar6;\n      }\nLAB_0004a680:\n      if (local_24 == *(uint *)puVar5) {\n        return iVar3;\n      }\n      uVar4 = local_24;\n      puVar5 = PTR___stack_chk_fail_000a6c54;\n      (*(code *)PTR___stack_chk_fail_000a6c54)();\n      if (uVar4 < 0x5e) {\n                    \n                    \n        iVar3 = (*(code *)(puVar5 + *(int *)(*(int *)(puVar5 + 0x5bad4) + -0x2300 + uVar4 * 4) +\n                                    0x63a50))();\n        return iVar3;\n      }\n      return *(int *)(puVar5 + 0x5bad4) + -0x3018;\n    }" { (labeled_statement "LAB_0004a634:\n      uVar6 = (*(code *)PTR_strtoll_000a6ab4)(param_1,&local_28,param_3);" statement_identifier : (expression_statement "uVar6 = (*(code *)PTR_strtoll_000a6ab4)(param_1,&local_28,param_3);" (assignment_expression "uVar6 = (*(code *)PTR_strtoll_000a6ab4)(param_1,&local_28,param_3)" identifier = (call_expression "(*(code *)PTR_strtoll_000a6ab4)(param_1,&local_28,param_3)" (parenthesized_expression "(*(code *)PTR_strtoll_000a6ab4)" ( (pointer_expression "*(code *)PTR_strtoll_000a6ab4" * (cast_expression "(code *)PTR_strtoll_000a6ab4" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(param_1,&local_28,param_3)" ( identifier , (pointer_expression "&local_28" & identifier) , identifier )))) ;)) (if_statement "if (param_2 != (undefined4 *)0x0) {\n        *param_2 = local_28;\n      }" if (parenthesized_expression "(param_2 != (undefined4 *)0x0)" ( (binary_expression "param_2 != (undefined4 *)0x0" identifier != (cast_expression "(undefined4 *)0x0" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n        *param_2 = local_28;\n      }" { (expression_statement "*param_2 = local_28;" (assignment_expression "*param_2 = local_28" (pointer_expression "*param_2" * identifier) = identifier) ;) })) (expression_statement "iVar3 = 1;" (assignment_expression "iVar3 = 1" identifier = number_literal) ;) (if_statement "if ((*piVar2 != 0x22) && (iVar3 = 2, param_1 != local_28)) {\n        iVar3 = 0;\n        *param_4 = uVar6;\n      }" if (parenthesized_expression "((*piVar2 != 0x22) && (iVar3 = 2, param_1 != local_28))" ( (binary_expression "(*piVar2 != 0x22) && (iVar3 = 2, param_1 != local_28)" (parenthesized_expression "(*piVar2 != 0x22)" ( (binary_expression "*piVar2 != 0x22" (pointer_expression "*piVar2" * identifier) != number_literal) )) && (parenthesized_expression "(iVar3 = 2, param_1 != local_28)" ( (comma_expression "iVar3 = 2, param_1 != local_28" (assignment_expression "iVar3 = 2" identifier = number_literal) , (binary_expression "param_1 != local_28" identifier != identifier)) ))) )) (compound_statement "{\n        iVar3 = 0;\n        *param_4 = uVar6;\n      }" { (expression_statement "iVar3 = 0;" (assignment_expression "iVar3 = 0" identifier = number_literal) ;) (expression_statement "*param_4 = uVar6;" (assignment_expression "*param_4 = uVar6" (pointer_expression "*param_4" * identifier) = identifier) ;) })) (labeled_statement "LAB_0004a680:\n      if (local_24 == *(uint *)puVar5) {\n        return iVar3;\n      }" statement_identifier : (if_statement "if (local_24 == *(uint *)puVar5) {\n        return iVar3;\n      }" if (parenthesized_expression "(local_24 == *(uint *)puVar5)" ( (binary_expression "local_24 == *(uint *)puVar5" identifier == (pointer_expression "*(uint *)puVar5" * (cast_expression "(uint *)puVar5" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier))) )) (compound_statement "{\n        return iVar3;\n      }" { (return_statement "return iVar3;" return identifier ;) }))) (expression_statement "uVar4 = local_24;" (assignment_expression "uVar4 = local_24" identifier = identifier) ;) (expression_statement "puVar5 = PTR___stack_chk_fail_000a6c54;" (assignment_expression "puVar5 = PTR___stack_chk_fail_000a6c54" identifier = identifier) ;) (expression_statement "(*(code *)PTR___stack_chk_fail_000a6c54)();" (call_expression "(*(code *)PTR___stack_chk_fail_000a6c54)()" (parenthesized_expression "(*(code *)PTR___stack_chk_fail_000a6c54)" ( (pointer_expression "*(code *)PTR___stack_chk_fail_000a6c54" * (cast_expression "(code *)PTR___stack_chk_fail_000a6c54" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "()" ( ))) ;) (if_statement "if (uVar4 < 0x5e) {\n                    \n                    \n        iVar3 = (*(code *)(puVar5 + *(int *)(*(int *)(puVar5 + 0x5bad4) + -0x2300 + uVar4 * 4) +\n                                    0x63a50))();\n        return iVar3;\n      }" if (parenthesized_expression "(uVar4 < 0x5e)" ( (binary_expression "uVar4 < 0x5e" identifier < number_literal) )) (compound_statement "{\n                    \n                    \n        iVar3 = (*(code *)(puVar5 + *(int *)(*(int *)(puVar5 + 0x5bad4) + -0x2300 + uVar4 * 4) +\n                                    0x63a50))();\n        return iVar3;\n      }" { (expression_statement "iVar3 = (*(code *)(puVar5 + *(int *)(*(int *)(puVar5 + 0x5bad4) + -0x2300 + uVar4 * 4) +\n                                    0x63a50))();" (assignment_expression "iVar3 = (*(code *)(puVar5 + *(int *)(*(int *)(puVar5 + 0x5bad4) + -0x2300 + uVar4 * 4) +\n                                    0x63a50))()" identifier = (call_expression "(*(code *)(puVar5 + *(int *)(*(int *)(puVar5 + 0x5bad4) + -0x2300 + uVar4 * 4) +\n                                    0x63a50))()" (parenthesized_expression "(*(code *)(puVar5 + *(int *)(*(int *)(puVar5 + 0x5bad4) + -0x2300 + uVar4 * 4) +\n                                    0x63a50))" ( (pointer_expression "*(code *)(puVar5 + *(int *)(*(int *)(puVar5 + 0x5bad4) + -0x2300 + uVar4 * 4) +\n                                    0x63a50)" * (cast_expression "(code *)(puVar5 + *(int *)(*(int *)(puVar5 + 0x5bad4) + -0x2300 + uVar4 * 4) +\n                                    0x63a50)" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(puVar5 + *(int *)(*(int *)(puVar5 + 0x5bad4) + -0x2300 + uVar4 * 4) +\n                                    0x63a50)" ( (binary_expression "puVar5 + *(int *)(*(int *)(puVar5 + 0x5bad4) + -0x2300 + uVar4 * 4) +\n                                    0x63a50" (binary_expression "puVar5 + *(int *)(*(int *)(puVar5 + 0x5bad4) + -0x2300 + uVar4 * 4)" identifier + (pointer_expression "*(int *)(*(int *)(puVar5 + 0x5bad4) + -0x2300 + uVar4 * 4)" * (cast_expression "(int *)(*(int *)(puVar5 + 0x5bad4) + -0x2300 + uVar4 * 4)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(*(int *)(puVar5 + 0x5bad4) + -0x2300 + uVar4 * 4)" ( (binary_expression "*(int *)(puVar5 + 0x5bad4) + -0x2300 + uVar4 * 4" (binary_expression "*(int *)(puVar5 + 0x5bad4) + -0x2300" (pointer_expression "*(int *)(puVar5 + 0x5bad4)" * (cast_expression "(int *)(puVar5 + 0x5bad4)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(puVar5 + 0x5bad4)" ( (binary_expression "puVar5 + 0x5bad4" identifier + number_literal) )))) + number_literal) + (binary_expression "uVar4 * 4" identifier * number_literal)) ))))) + number_literal) )))) )) (argument_list "()" ( )))) ;) (return_statement "return iVar3;" return identifier ;) })) (return_statement "return *(int *)(puVar5 + 0x5bad4) + -0x3018;" return (binary_expression "*(int *)(puVar5 + 0x5bad4) + -0x3018" (pointer_expression "*(int *)(puVar5 + 0x5bad4)" * (cast_expression "(int *)(puVar5 + 0x5bad4)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(puVar5 + 0x5bad4)" ( (binary_expression "puVar5 + 0x5bad4" identifier + number_literal) )))) + number_literal) ;) })) (expression_statement "iVar3 = (*(code *)PTR_FUN_000a62bc)(bVar1);" (assignment_expression "iVar3 = (*(code *)PTR_FUN_000a62bc)(bVar1)" identifier = (call_expression "(*(code *)PTR_FUN_000a62bc)(bVar1)" (parenthesized_expression "(*(code *)PTR_FUN_000a62bc)" ( (pointer_expression "*(code *)PTR_FUN_000a62bc" * (cast_expression "(code *)PTR_FUN_000a62bc" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(bVar1)" ( identifier )))) ;) (if_statement "if (iVar3 == 0) {\n      if (*param_1 == 0x2d) {\n        if (param_2 != (undefined4 *)0x0) {\n          *param_2 = param_1;\n        }\n        iVar3 = 2;\n        goto LAB_0004a680;\n      }\n      goto LAB_0004a634;\n    }" if (parenthesized_expression "(iVar3 == 0)" ( (binary_expression "iVar3 == 0" identifier == number_literal) )) (compound_statement "{\n      if (*param_1 == 0x2d) {\n        if (param_2 != (undefined4 *)0x0) {\n          *param_2 = param_1;\n        }\n        iVar3 = 2;\n        goto LAB_0004a680;\n      }\n      goto LAB_0004a634;\n    }" { (if_statement "if (*param_1 == 0x2d) {\n        if (param_2 != (undefined4 *)0x0) {\n          *param_2 = param_1;\n        }\n        iVar3 = 2;\n        goto LAB_0004a680;\n      }" if (parenthesized_expression "(*param_1 == 0x2d)" ( (binary_expression "*param_1 == 0x2d" (pointer_expression "*param_1" * identifier) == number_literal) )) (compound_statement "{\n        if (param_2 != (undefined4 *)0x0) {\n          *param_2 = param_1;\n        }\n        iVar3 = 2;\n        goto LAB_0004a680;\n      }" { (if_statement "if (param_2 != (undefined4 *)0x0) {\n          *param_2 = param_1;\n        }" if (parenthesized_expression "(param_2 != (undefined4 *)0x0)" ( (binary_expression "param_2 != (undefined4 *)0x0" identifier != (cast_expression "(undefined4 *)0x0" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n          *param_2 = param_1;\n        }" { (expression_statement "*param_2 = param_1;" (assignment_expression "*param_2 = param_1" (pointer_expression "*param_2" * identifier) = identifier) ;) })) (expression_statement "iVar3 = 2;" (assignment_expression "iVar3 = 2" identifier = number_literal) ;) (goto_statement "goto LAB_0004a680;" goto statement_identifier ;) })) (goto_statement "goto LAB_0004a634;" goto statement_identifier ;) })) (expression_statement "param_1 = param_1 + 1;" (assignment_expression "param_1 = param_1 + 1" identifier = (binary_expression "param_1 + 1" identifier + number_literal)) ;) (expression_statement "bVar1 = *param_1;" (assignment_expression "bVar1 = *param_1" identifier = (pointer_expression "*param_1" * identifier)) ;) }) while (parenthesized_expression "( true )" ( true )) ;) })))
(translation_unit (function_definition TYPE (function_declarator IDENT (parameter_list ( (parameter_declaration TYPE (pointer_declarator * IDENT)) , (parameter_declaration TYPE (pointer_declarator * IDENT)) , (parameter_declaration TYPE IDENT) , (parameter_declaration TYPE (pointer_declarator * IDENT)) ))) (compound_statement { (declaration TYPE IDENT ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE 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 = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (call_expression (parenthesized_expression ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT)) )) (argument_list ( ))))) ;) (expression_statement (assignment_expression (pointer_expression * IDENT) = LIT) ;) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression (cast_expression ( (type_descriptor TYPE) ) IDENT) + LIT) )))) = LIT) ;) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT)) = LIT) ;) (expression_statement (assignment_expression IDENT = (pointer_expression * IDENT)) ;) (do_statement do (compound_statement { (if_statement if (parenthesized_expression ( (binary_expression IDENT == LIT) )) (compound_statement { (labeled_statement statement_identifier : (expression_statement (assignment_expression IDENT = (call_expression (parenthesized_expression ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT)) )) (argument_list ( IDENT , (pointer_expression & IDENT) , IDENT )))) ;)) (if_statement if (parenthesized_expression ( (binary_expression IDENT != (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) LIT)) )) (compound_statement { (expression_statement (assignment_expression (pointer_expression * IDENT) = IDENT) ;) })) (expression_statement (assignment_expression IDENT = LIT) ;) (if_statement if (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression (pointer_expression * IDENT) != LIT) )) && (parenthesized_expression ( (comma_expression (assignment_expression IDENT = LIT) , (binary_expression IDENT != IDENT)) ))) )) (compound_statement { (expression_statement (assignment_expression IDENT = LIT) ;) (expression_statement (assignment_expression (pointer_expression * IDENT) = IDENT) ;) })) (labeled_statement statement_identifier : (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 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 (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) + LIT) ;) })) (expression_statement (assignment_expression IDENT = (call_expression (parenthesized_expression ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT)) )) (argument_list ( IDENT )))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT == LIT) )) (compound_statement { (if_statement if (parenthesized_expression ( (binary_expression (pointer_expression * IDENT) == LIT) )) (compound_statement { (if_statement if (parenthesized_expression ( (binary_expression IDENT != (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) LIT)) )) (compound_statement { (expression_statement (assignment_expression (pointer_expression * IDENT) = IDENT) ;) })) (expression_statement (assignment_expression IDENT = LIT) ;) (goto_statement goto statement_identifier ;) })) (goto_statement goto statement_identifier ;) })) (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) (expression_statement (assignment_expression IDENT = (pointer_expression * IDENT)) ;) }) while (parenthesized_expression ( BOOL )) ;) })))
(function_definition "int FUN_0004a560(byte *param_1,undefined4 *param_2,undefined4 param_3,undefined8 *param_4)\n\n{\n  byte bVar1;\n  int *piVar2;\n  int iVar3;\n  uint uVar4;\n  undefined *puVar5;\n  undefined8 uVar6;\n  byte *local_28;\n  uint local_24;\n  \n  puVar5 = PTR___stack_chk_guard_000a6fe0;\n  local_24 = *(uint *)PTR___stack_chk_guard_000a6fe0;\n  piVar2 = (int *)(*(code *)PTR___errno_location_000a6dcc)();\n  *piVar2 = 0;\n  *(undefined4 *)((int)param_4 + 4) = 0;\n  *(undefined4 *)param_4 = 0;\n  bVar1 = *param_1;\n  do {\n    if (bVar1 == 0) {\nLAB_0004a634:\n      uVar6 = (*(code *)PTR_strtoll_000a6ab4)(param_1,&local_28,param_3);\n      if (param_2 != (undefined4 *)0x0) {\n        *param_2 = local_28;\n      }\n      iVar3 = 1;\n      if ((*piVar2 != 0x22) && (iVar3 = 2, param_1 != local_28)) {\n        iVar3 = 0;\n        *param_4 = uVar6;\n      }\nLAB_0004a680:\n      if (local_24 == *(uint *)puVar5) {\n        return iVar3;\n      }\n      uVar4 = local_24;\n      puVar5 = PTR___stack_chk_fail_000a6c54;\n      (*(code *)PTR___stack_chk_fail_000a6c54)();\n      if (uVar4 < 0x5e) {\n                    \n                    \n        iVar3 = (*(code *)(puVar5 + *(int *)(*(int *)(puVar5 + 0x5bad4) + -0x2300 + uVar4 * 4) +\n                                    0x63a50))();\n        return iVar3;\n      }\n      return *(int *)(puVar5 + 0x5bad4) + -0x3018;\n    }\n    iVar3 = (*(code *)PTR_FUN_000a62bc)(bVar1);\n    if (iVar3 == 0) {\n      if (*param_1 == 0x2d) {\n        if (param_2 != (undefined4 *)0x0) {\n          *param_2 = param_1;\n        }\n        iVar3 = 2;\n        goto LAB_0004a680;\n      }\n      goto LAB_0004a634;\n    }\n    param_1 = param_1 + 1;\n    bVar1 = *param_1;\n  } while( true );\n}" (primitive_type "int") (function_declarator "FUN_0004a560(byte *param_1,undefined4 *param_2,undefined4 param_3,undefined8 *param_4)" (identifier "FUN_0004a560") (parameter_list "(byte *param_1,undefined4 *param_2,undefined4 param_3,undefined8 *param_4)" (( "(") (parameter_declaration "byte *param_1" (type_identifier "byte") (pointer_declarator "*param_1" (* "*") (identifier "param_1"))) (, ",") (parameter_declaration "undefined4 *param_2" (type_identifier "undefined4") (pointer_declarator "*param_2" (* "*") (identifier "param_2"))) (, ",") (parameter_declaration "undefined4 param_3" (type_identifier "undefined4") (identifier "param_3")) (, ",") (parameter_declaration "undefined8 *param_4" (type_identifier "undefined8") (pointer_declarator "*param_4" (* "*") (identifier "param_4"))) () ")"))) (compound_statement "{\n  byte bVar1;\n  int *piVar2;\n  int iVar3;\n  uint uVar4;\n  undefined *puVar5;\n  undefined8 uVar6;\n  byte *local_28;\n  uint local_24;\n  \n  puVar5 = PTR___stack_chk_guard_000a6fe0;\n  local_24 = *(uint *)PTR___stack_chk_guard_000a6fe0;\n  piVar2 = (int *)(*(code *)PTR___errno_location_000a6dcc)();\n  *piVar2 = 0;\n  *(undefined4 *)((int)param_4 + 4) = 0;\n  *(undefined4 *)param_4 = 0;\n  bVar1 = *param_1;\n  do {\n    if (bVar1 == 0) {\nLAB_0004a634:\n      uVar6 = (*(code *)PTR_strtoll_000a6ab4)(param_1,&local_28,param_3);\n      if (param_2 != (undefined4 *)0x0) {\n        *param_2 = local_28;\n      }\n      iVar3 = 1;\n      if ((*piVar2 != 0x22) && (iVar3 = 2, param_1 != local_28)) {\n        iVar3 = 0;\n        *param_4 = uVar6;\n      }\nLAB_0004a680:\n      if (local_24 == *(uint *)puVar5) {\n        return iVar3;\n      }\n      uVar4 = local_24;\n      puVar5 = PTR___stack_chk_fail_000a6c54;\n      (*(code *)PTR___stack_chk_fail_000a6c54)();\n      if (uVar4 < 0x5e) {\n                    \n                    \n        iVar3 = (*(code *)(puVar5 + *(int *)(*(int *)(puVar5 + 0x5bad4) + -0x2300 + uVar4 * 4) +\n                                    0x63a50))();\n        return iVar3;\n      }\n      return *(int *)(puVar5 + 0x5bad4) + -0x3018;\n    }\n    iVar3 = (*(code *)PTR_FUN_000a62bc)(bVar1);\n    if (iVar3 == 0) {\n      if (*param_1 == 0x2d) {\n        if (param_2 != (undefined4 *)0x0) {\n          *param_2 = param_1;\n        }\n        iVar3 = 2;\n        goto LAB_0004a680;\n      }\n      goto LAB_0004a634;\n    }\n    param_1 = param_1 + 1;\n    bVar1 = *param_1;\n  } while( true );\n}" ({ "{") (declaration "byte bVar1;" (type_identifier "byte") (identifier "bVar1") (; ";")) (declaration "int *piVar2;" (primitive_type "int") (pointer_declarator "*piVar2" (* "*") (identifier "piVar2")) (; ";")) (declaration "int iVar3;" (primitive_type "int") (identifier "iVar3") (; ";")) (declaration "uint uVar4;" (type_identifier "uint") (identifier "uVar4") (; ";")) (declaration "undefined *puVar5;" (type_identifier "undefined") (pointer_declarator "*puVar5" (* "*") (identifier "puVar5")) (; ";")) (declaration "undefined8 uVar6;" (type_identifier "undefined8") (identifier "uVar6") (; ";")) (declaration "byte *local_28;" (type_identifier "byte") (pointer_declarator "*local_28" (* "*") (identifier "local_28")) (; ";")) (declaration "uint local_24;" (type_identifier "uint") (identifier "local_24") (; ";")) (expression_statement "puVar5 = PTR___stack_chk_guard_000a6fe0;" (assignment_expression "puVar5 = PTR___stack_chk_guard_000a6fe0" (identifier "puVar5") (= "=") (identifier "PTR___stack_chk_guard_000a6fe0")) (; ";")) (expression_statement "local_24 = *(uint *)PTR___stack_chk_guard_000a6fe0;" (assignment_expression "local_24 = *(uint *)PTR___stack_chk_guard_000a6fe0" (identifier "local_24") (= "=") (pointer_expression "*(uint *)PTR___stack_chk_guard_000a6fe0" (* "*") (cast_expression "(uint *)PTR___stack_chk_guard_000a6fe0" (( "(") (type_descriptor "uint *" (type_identifier "uint") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR___stack_chk_guard_000a6fe0")))) (; ";")) (expression_statement "piVar2 = (int *)(*(code *)PTR___errno_location_000a6dcc)();" (assignment_expression "piVar2 = (int *)(*(code *)PTR___errno_location_000a6dcc)()" (identifier "piVar2") (= "=") (cast_expression "(int *)(*(code *)PTR___errno_location_000a6dcc)()" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (call_expression "(*(code *)PTR___errno_location_000a6dcc)()" (parenthesized_expression "(*(code *)PTR___errno_location_000a6dcc)" (( "(") (pointer_expression "*(code *)PTR___errno_location_000a6dcc" (* "*") (cast_expression "(code *)PTR___errno_location_000a6dcc" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR___errno_location_000a6dcc"))) () ")")) (argument_list "()" (( "(") () ")"))))) (; ";")) (expression_statement "*piVar2 = 0;" (assignment_expression "*piVar2 = 0" (pointer_expression "*piVar2" (* "*") (identifier "piVar2")) (= "=") (number_literal "0")) (; ";")) (expression_statement "*(undefined4 *)((int)param_4 + 4) = 0;" (assignment_expression "*(undefined4 *)((int)param_4 + 4) = 0" (pointer_expression "*(undefined4 *)((int)param_4 + 4)" (* "*") (cast_expression "(undefined4 *)((int)param_4 + 4)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "((int)param_4 + 4)" (( "(") (binary_expression "(int)param_4 + 4" (cast_expression "(int)param_4" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (identifier "param_4")) (+ "+") (number_literal "4")) () ")")))) (= "=") (number_literal "0")) (; ";")) (expression_statement "*(undefined4 *)param_4 = 0;" (assignment_expression "*(undefined4 *)param_4 = 0" (pointer_expression "*(undefined4 *)param_4" (* "*") (cast_expression "(undefined4 *)param_4" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "param_4"))) (= "=") (number_literal "0")) (; ";")) (expression_statement "bVar1 = *param_1;" (assignment_expression "bVar1 = *param_1" (identifier "bVar1") (= "=") (pointer_expression "*param_1" (* "*") (identifier "param_1"))) (; ";")) (do_statement "do {\n    if (bVar1 == 0) {\nLAB_0004a634:\n      uVar6 = (*(code *)PTR_strtoll_000a6ab4)(param_1,&local_28,param_3);\n      if (param_2 != (undefined4 *)0x0) {\n        *param_2 = local_28;\n      }\n      iVar3 = 1;\n      if ((*piVar2 != 0x22) && (iVar3 = 2, param_1 != local_28)) {\n        iVar3 = 0;\n        *param_4 = uVar6;\n      }\nLAB_0004a680:\n      if (local_24 == *(uint *)puVar5) {\n        return iVar3;\n      }\n      uVar4 = local_24;\n      puVar5 = PTR___stack_chk_fail_000a6c54;\n      (*(code *)PTR___stack_chk_fail_000a6c54)();\n      if (uVar4 < 0x5e) {\n                    \n                    \n        iVar3 = (*(code *)(puVar5 + *(int *)(*(int *)(puVar5 + 0x5bad4) + -0x2300 + uVar4 * 4) +\n                                    0x63a50))();\n        return iVar3;\n      }\n      return *(int *)(puVar5 + 0x5bad4) + -0x3018;\n    }\n    iVar3 = (*(code *)PTR_FUN_000a62bc)(bVar1);\n    if (iVar3 == 0) {\n      if (*param_1 == 0x2d) {\n        if (param_2 != (undefined4 *)0x0) {\n          *param_2 = param_1;\n        }\n        iVar3 = 2;\n        goto LAB_0004a680;\n      }\n      goto LAB_0004a634;\n    }\n    param_1 = param_1 + 1;\n    bVar1 = *param_1;\n  } while( true );" (do "do") (compound_statement "{\n    if (bVar1 == 0) {\nLAB_0004a634:\n      uVar6 = (*(code *)PTR_strtoll_000a6ab4)(param_1,&local_28,param_3);\n      if (param_2 != (undefined4 *)0x0) {\n        *param_2 = local_28;\n      }\n      iVar3 = 1;\n      if ((*piVar2 != 0x22) && (iVar3 = 2, param_1 != local_28)) {\n        iVar3 = 0;\n        *param_4 = uVar6;\n      }\nLAB_0004a680:\n      if (local_24 == *(uint *)puVar5) {\n        return iVar3;\n      }\n      uVar4 = local_24;\n      puVar5 = PTR___stack_chk_fail_000a6c54;\n      (*(code *)PTR___stack_chk_fail_000a6c54)();\n      if (uVar4 < 0x5e) {\n                    \n                    \n        iVar3 = (*(code *)(puVar5 + *(int *)(*(int *)(puVar5 + 0x5bad4) + -0x2300 + uVar4 * 4) +\n                                    0x63a50))();\n        return iVar3;\n      }\n      return *(int *)(puVar5 + 0x5bad4) + -0x3018;\n    }\n    iVar3 = (*(code *)PTR_FUN_000a62bc)(bVar1);\n    if (iVar3 == 0) {\n      if (*param_1 == 0x2d) {\n        if (param_2 != (undefined4 *)0x0) {\n          *param_2 = param_1;\n        }\n        iVar3 = 2;\n        goto LAB_0004a680;\n      }\n      goto LAB_0004a634;\n    }\n    param_1 = param_1 + 1;\n    bVar1 = *param_1;\n  }" ({ "{") (if_statement "if (bVar1 == 0) {\nLAB_0004a634:\n      uVar6 = (*(code *)PTR_strtoll_000a6ab4)(param_1,&local_28,param_3);\n      if (param_2 != (undefined4 *)0x0) {\n        *param_2 = local_28;\n      }\n      iVar3 = 1;\n      if ((*piVar2 != 0x22) && (iVar3 = 2, param_1 != local_28)) {\n        iVar3 = 0;\n        *param_4 = uVar6;\n      }\nLAB_0004a680:\n      if (local_24 == *(uint *)puVar5) {\n        return iVar3;\n      }\n      uVar4 = local_24;\n      puVar5 = PTR___stack_chk_fail_000a6c54;\n      (*(code *)PTR___stack_chk_fail_000a6c54)();\n      if (uVar4 < 0x5e) {\n                    \n                    \n        iVar3 = (*(code *)(puVar5 + *(int *)(*(int *)(puVar5 + 0x5bad4) + -0x2300 + uVar4 * 4) +\n                                    0x63a50))();\n        return iVar3;\n      }\n      return *(int *)(puVar5 + 0x5bad4) + -0x3018;\n    }" (if "if") (parenthesized_expression "(bVar1 == 0)" (( "(") (binary_expression "bVar1 == 0" (identifier "bVar1") (== "==") (number_literal "0")) () ")")) (compound_statement "{\nLAB_0004a634:\n      uVar6 = (*(code *)PTR_strtoll_000a6ab4)(param_1,&local_28,param_3);\n      if (param_2 != (undefined4 *)0x0) {\n        *param_2 = local_28;\n      }\n      iVar3 = 1;\n      if ((*piVar2 != 0x22) && (iVar3 = 2, param_1 != local_28)) {\n        iVar3 = 0;\n        *param_4 = uVar6;\n      }\nLAB_0004a680:\n      if (local_24 == *(uint *)puVar5) {\n        return iVar3;\n      }\n      uVar4 = local_24;\n      puVar5 = PTR___stack_chk_fail_000a6c54;\n      (*(code *)PTR___stack_chk_fail_000a6c54)();\n      if (uVar4 < 0x5e) {\n                    \n                    \n        iVar3 = (*(code *)(puVar5 + *(int *)(*(int *)(puVar5 + 0x5bad4) + -0x2300 + uVar4 * 4) +\n                                    0x63a50))();\n        return iVar3;\n      }\n      return *(int *)(puVar5 + 0x5bad4) + -0x3018;\n    }" ({ "{") (labeled_statement "LAB_0004a634:\n      uVar6 = (*(code *)PTR_strtoll_000a6ab4)(param_1,&local_28,param_3);" (statement_identifier "LAB_0004a634") (: ":") (expression_statement "uVar6 = (*(code *)PTR_strtoll_000a6ab4)(param_1,&local_28,param_3);" (assignment_expression "uVar6 = (*(code *)PTR_strtoll_000a6ab4)(param_1,&local_28,param_3)" (identifier "uVar6") (= "=") (call_expression "(*(code *)PTR_strtoll_000a6ab4)(param_1,&local_28,param_3)" (parenthesized_expression "(*(code *)PTR_strtoll_000a6ab4)" (( "(") (pointer_expression "*(code *)PTR_strtoll_000a6ab4" (* "*") (cast_expression "(code *)PTR_strtoll_000a6ab4" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR_strtoll_000a6ab4"))) () ")")) (argument_list "(param_1,&local_28,param_3)" (( "(") (identifier "param_1") (, ",") (pointer_expression "&local_28" (& "&") (identifier "local_28")) (, ",") (identifier "param_3") () ")")))) (; ";"))) (if_statement "if (param_2 != (undefined4 *)0x0) {\n        *param_2 = local_28;\n      }" (if "if") (parenthesized_expression "(param_2 != (undefined4 *)0x0)" (( "(") (binary_expression "param_2 != (undefined4 *)0x0" (identifier "param_2") (!= "!=") (cast_expression "(undefined4 *)0x0" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (number_literal "0x0"))) () ")")) (compound_statement "{\n        *param_2 = local_28;\n      }" ({ "{") (expression_statement "*param_2 = local_28;" (assignment_expression "*param_2 = local_28" (pointer_expression "*param_2" (* "*") (identifier "param_2")) (= "=") (identifier "local_28")) (; ";")) (} "}"))) (expression_statement "iVar3 = 1;" (assignment_expression "iVar3 = 1" (identifier "iVar3") (= "=") (number_literal "1")) (; ";")) (if_statement "if ((*piVar2 != 0x22) && (iVar3 = 2, param_1 != local_28)) {\n        iVar3 = 0;\n        *param_4 = uVar6;\n      }" (if "if") (parenthesized_expression "((*piVar2 != 0x22) && (iVar3 = 2, param_1 != local_28))" (( "(") (binary_expression "(*piVar2 != 0x22) && (iVar3 = 2, param_1 != local_28)" (parenthesized_expression "(*piVar2 != 0x22)" (( "(") (binary_expression "*piVar2 != 0x22" (pointer_expression "*piVar2" (* "*") (identifier "piVar2")) (!= "!=") (number_literal "0x22")) () ")")) (&& "&&") (parenthesized_expression "(iVar3 = 2, param_1 != local_28)" (( "(") (comma_expression "iVar3 = 2, param_1 != local_28" (assignment_expression "iVar3 = 2" (identifier "iVar3") (= "=") (number_literal "2")) (, ",") (binary_expression "param_1 != local_28" (identifier "param_1") (!= "!=") (identifier "local_28"))) () ")"))) () ")")) (compound_statement "{\n        iVar3 = 0;\n        *param_4 = uVar6;\n      }" ({ "{") (expression_statement "iVar3 = 0;" (assignment_expression "iVar3 = 0" (identifier "iVar3") (= "=") (number_literal "0")) (; ";")) (expression_statement "*param_4 = uVar6;" (assignment_expression "*param_4 = uVar6" (pointer_expression "*param_4" (* "*") (identifier "param_4")) (= "=") (identifier "uVar6")) (; ";")) (} "}"))) (labeled_statement "LAB_0004a680:\n      if (local_24 == *(uint *)puVar5) {\n        return iVar3;\n      }" (statement_identifier "LAB_0004a680") (: ":") (if_statement "if (local_24 == *(uint *)puVar5) {\n        return iVar3;\n      }" (if "if") (parenthesized_expression "(local_24 == *(uint *)puVar5)" (( "(") (binary_expression "local_24 == *(uint *)puVar5" (identifier "local_24") (== "==") (pointer_expression "*(uint *)puVar5" (* "*") (cast_expression "(uint *)puVar5" (( "(") (type_descriptor "uint *" (type_identifier "uint") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "puVar5")))) () ")")) (compound_statement "{\n        return iVar3;\n      }" ({ "{") (return_statement "return iVar3;" (return "return") (identifier "iVar3") (; ";")) (} "}")))) (expression_statement "uVar4 = local_24;" (assignment_expression "uVar4 = local_24" (identifier "uVar4") (= "=") (identifier "local_24")) (; ";")) (expression_statement "puVar5 = PTR___stack_chk_fail_000a6c54;" (assignment_expression "puVar5 = PTR___stack_chk_fail_000a6c54" (identifier "puVar5") (= "=") (identifier "PTR___stack_chk_fail_000a6c54")) (; ";")) (expression_statement "(*(code *)PTR___stack_chk_fail_000a6c54)();" (call_expression "(*(code *)PTR___stack_chk_fail_000a6c54)()" (parenthesized_expression "(*(code *)PTR___stack_chk_fail_000a6c54)" (( "(") (pointer_expression "*(code *)PTR___stack_chk_fail_000a6c54" (* "*") (cast_expression "(code *)PTR___stack_chk_fail_000a6c54" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR___stack_chk_fail_000a6c54"))) () ")")) (argument_list "()" (( "(") () ")"))) (; ";")) (if_statement "if (uVar4 < 0x5e) {\n                    \n                    \n        iVar3 = (*(code *)(puVar5 + *(int *)(*(int *)(puVar5 + 0x5bad4) + -0x2300 + uVar4 * 4) +\n                                    0x63a50))();\n        return iVar3;\n      }" (if "if") (parenthesized_expression "(uVar4 < 0x5e)" (( "(") (binary_expression "uVar4 < 0x5e" (identifier "uVar4") (< "<") (number_literal "0x5e")) () ")")) (compound_statement "{\n                    \n                    \n        iVar3 = (*(code *)(puVar5 + *(int *)(*(int *)(puVar5 + 0x5bad4) + -0x2300 + uVar4 * 4) +\n                                    0x63a50))();\n        return iVar3;\n      }" ({ "{") (expression_statement "iVar3 = (*(code *)(puVar5 + *(int *)(*(int *)(puVar5 + 0x5bad4) + -0x2300 + uVar4 * 4) +\n                                    0x63a50))();" (assignment_expression "iVar3 = (*(code *)(puVar5 + *(int *)(*(int *)(puVar5 + 0x5bad4) + -0x2300 + uVar4 * 4) +\n                                    0x63a50))()" (identifier "iVar3") (= "=") (call_expression "(*(code *)(puVar5 + *(int *)(*(int *)(puVar5 + 0x5bad4) + -0x2300 + uVar4 * 4) +\n                                    0x63a50))()" (parenthesized_expression "(*(code *)(puVar5 + *(int *)(*(int *)(puVar5 + 0x5bad4) + -0x2300 + uVar4 * 4) +\n                                    0x63a50))" (( "(") (pointer_expression "*(code *)(puVar5 + *(int *)(*(int *)(puVar5 + 0x5bad4) + -0x2300 + uVar4 * 4) +\n                                    0x63a50)" (* "*") (cast_expression "(code *)(puVar5 + *(int *)(*(int *)(puVar5 + 0x5bad4) + -0x2300 + uVar4 * 4) +\n                                    0x63a50)" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(puVar5 + *(int *)(*(int *)(puVar5 + 0x5bad4) + -0x2300 + uVar4 * 4) +\n                                    0x63a50)" (( "(") (binary_expression "puVar5 + *(int *)(*(int *)(puVar5 + 0x5bad4) + -0x2300 + uVar4 * 4) +\n                                    0x63a50" (binary_expression "puVar5 + *(int *)(*(int *)(puVar5 + 0x5bad4) + -0x2300 + uVar4 * 4)" (identifier "puVar5") (+ "+") (pointer_expression "*(int *)(*(int *)(puVar5 + 0x5bad4) + -0x2300 + uVar4 * 4)" (* "*") (cast_expression "(int *)(*(int *)(puVar5 + 0x5bad4) + -0x2300 + uVar4 * 4)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(*(int *)(puVar5 + 0x5bad4) + -0x2300 + uVar4 * 4)" (( "(") (binary_expression "*(int *)(puVar5 + 0x5bad4) + -0x2300 + uVar4 * 4" (binary_expression "*(int *)(puVar5 + 0x5bad4) + -0x2300" (pointer_expression "*(int *)(puVar5 + 0x5bad4)" (* "*") (cast_expression "(int *)(puVar5 + 0x5bad4)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(puVar5 + 0x5bad4)" (( "(") (binary_expression "puVar5 + 0x5bad4" (identifier "puVar5") (+ "+") (number_literal "0x5bad4")) () ")")))) (+ "+") (number_literal "-0x2300")) (+ "+") (binary_expression "uVar4 * 4" (identifier "uVar4") (* "*") (number_literal "4"))) () ")"))))) (+ "+") (number_literal "0x63a50")) () ")")))) () ")")) (argument_list "()" (( "(") () ")")))) (; ";")) (return_statement "return iVar3;" (return "return") (identifier "iVar3") (; ";")) (} "}"))) (return_statement "return *(int *)(puVar5 + 0x5bad4) + -0x3018;" (return "return") (binary_expression "*(int *)(puVar5 + 0x5bad4) + -0x3018" (pointer_expression "*(int *)(puVar5 + 0x5bad4)" (* "*") (cast_expression "(int *)(puVar5 + 0x5bad4)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(puVar5 + 0x5bad4)" (( "(") (binary_expression "puVar5 + 0x5bad4" (identifier "puVar5") (+ "+") (number_literal "0x5bad4")) () ")")))) (+ "+") (number_literal "-0x3018")) (; ";")) (} "}"))) (expression_statement "iVar3 = (*(code *)PTR_FUN_000a62bc)(bVar1);" (assignment_expression "iVar3 = (*(code *)PTR_FUN_000a62bc)(bVar1)" (identifier "iVar3") (= "=") (call_expression "(*(code *)PTR_FUN_000a62bc)(bVar1)" (parenthesized_expression "(*(code *)PTR_FUN_000a62bc)" (( "(") (pointer_expression "*(code *)PTR_FUN_000a62bc" (* "*") (cast_expression "(code *)PTR_FUN_000a62bc" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR_FUN_000a62bc"))) () ")")) (argument_list "(bVar1)" (( "(") (identifier "bVar1") () ")")))) (; ";")) (if_statement "if (iVar3 == 0) {\n      if (*param_1 == 0x2d) {\n        if (param_2 != (undefined4 *)0x0) {\n          *param_2 = param_1;\n        }\n        iVar3 = 2;\n        goto LAB_0004a680;\n      }\n      goto LAB_0004a634;\n    }" (if "if") (parenthesized_expression "(iVar3 == 0)" (( "(") (binary_expression "iVar3 == 0" (identifier "iVar3") (== "==") (number_literal "0")) () ")")) (compound_statement "{\n      if (*param_1 == 0x2d) {\n        if (param_2 != (undefined4 *)0x0) {\n          *param_2 = param_1;\n        }\n        iVar3 = 2;\n        goto LAB_0004a680;\n      }\n      goto LAB_0004a634;\n    }" ({ "{") (if_statement "if (*param_1 == 0x2d) {\n        if (param_2 != (undefined4 *)0x0) {\n          *param_2 = param_1;\n        }\n        iVar3 = 2;\n        goto LAB_0004a680;\n      }" (if "if") (parenthesized_expression "(*param_1 == 0x2d)" (( "(") (binary_expression "*param_1 == 0x2d" (pointer_expression "*param_1" (* "*") (identifier "param_1")) (== "==") (number_literal "0x2d")) () ")")) (compound_statement "{\n        if (param_2 != (undefined4 *)0x0) {\n          *param_2 = param_1;\n        }\n        iVar3 = 2;\n        goto LAB_0004a680;\n      }" ({ "{") (if_statement "if (param_2 != (undefined4 *)0x0) {\n          *param_2 = param_1;\n        }" (if "if") (parenthesized_expression "(param_2 != (undefined4 *)0x0)" (( "(") (binary_expression "param_2 != (undefined4 *)0x0" (identifier "param_2") (!= "!=") (cast_expression "(undefined4 *)0x0" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (number_literal "0x0"))) () ")")) (compound_statement "{\n          *param_2 = param_1;\n        }" ({ "{") (expression_statement "*param_2 = param_1;" (assignment_expression "*param_2 = param_1" (pointer_expression "*param_2" (* "*") (identifier "param_2")) (= "=") (identifier "param_1")) (; ";")) (} "}"))) (expression_statement "iVar3 = 2;" (assignment_expression "iVar3 = 2" (identifier "iVar3") (= "=") (number_literal "2")) (; ";")) (goto_statement "goto LAB_0004a680;" (goto "goto") (statement_identifier "LAB_0004a680") (; ";")) (} "}"))) (goto_statement "goto LAB_0004a634;" (goto "goto") (statement_identifier "LAB_0004a634") (; ";")) (} "}"))) (expression_statement "param_1 = param_1 + 1;" (assignment_expression "param_1 = param_1 + 1" (identifier "param_1") (= "=") (binary_expression "param_1 + 1" (identifier "param_1") (+ "+") (number_literal "1"))) (; ";")) (expression_statement "bVar1 = *param_1;" (assignment_expression "bVar1 = *param_1" (identifier "bVar1") (= "=") (pointer_expression "*param_1" (* "*") (identifier "param_1"))) (; ";")) (} "}")) (while "while") (parenthesized_expression "( true )" (( "(") (true "true") () ")")) (; ";")) (} "}")))
(translation_unit (function_definition type: (primitive_type) declarator: (function_declarator declarator: (identifier) parameters: (parameter_list (parameter_declaration type: (type_identifier) declarator: (pointer_declarator declarator: (identifier))) (parameter_declaration type: (type_identifier) declarator: (pointer_declarator declarator: (identifier))) (parameter_declaration type: (type_identifier) declarator: (identifier)) (parameter_declaration type: (type_identifier) declarator: (pointer_declarator declarator: (identifier))))) body: (compound_statement (declaration type: (type_identifier) declarator: (identifier)) (declaration type: (primitive_type) declarator: (pointer_declarator declarator: (identifier))) (declaration type: (primitive_type) declarator: (identifier)) (declaration type: (type_identifier) declarator: (identifier)) (declaration type: (type_identifier) declarator: (pointer_declarator declarator: (identifier))) (declaration type: (type_identifier) declarator: (identifier)) (declaration type: (type_identifier) declarator: (pointer_declarator declarator: (identifier))) (declaration type: (type_identifier) 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: (type_identifier) declarator: (abstract_pointer_declarator)) value: (identifier))))) (expression_statement (assignment_expression left: (identifier) right: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (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: (identifier)) right: (number_literal))) (expression_statement (assignment_expression left: (pointer_expression argument: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (cast_expression type: (type_descriptor type: (primitive_type)) value: (identifier)) right: (number_literal))))) right: (number_literal))) (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: (pointer_expression argument: (identifier)))) (do_statement body: (compound_statement (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))) consequence: (compound_statement (labeled_statement label: (statement_identifier) (expression_statement (assignment_expression left: (identifier) right: (call_expression function: (parenthesized_expression (pointer_expression argument: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (identifier)))) arguments: (argument_list (identifier) (pointer_expression argument: (identifier)) (identifier)))))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (number_literal)))) consequence: (compound_statement (expression_statement (assignment_expression left: (pointer_expression argument: (identifier)) right: (identifier))))) (expression_statement (assignment_expression left: (identifier) right: (number_literal))) (if_statement condition: (parenthesized_expression (binary_expression left: (parenthesized_expression (binary_expression left: (pointer_expression argument: (identifier)) right: (number_literal))) right: (parenthesized_expression (comma_expression left: (assignment_expression left: (identifier) right: (number_literal)) right: (binary_expression left: (identifier) right: (identifier)))))) consequence: (compound_statement (expression_statement (assignment_expression left: (identifier) right: (number_literal))) (expression_statement (assignment_expression left: (pointer_expression argument: (identifier)) right: (identifier))))) (labeled_statement label: (statement_identifier) (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)) 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: (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 (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))))) (expression_statement (assignment_expression left: (identifier) right: (call_expression function: (parenthesized_expression (pointer_expression argument: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (identifier)))) arguments: (argument_list (identifier))))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))) consequence: (compound_statement (if_statement condition: (parenthesized_expression (binary_expression left: (pointer_expression argument: (identifier)) right: (number_literal))) consequence: (compound_statement (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (number_literal)))) consequence: (compound_statement (expression_statement (assignment_expression left: (pointer_expression argument: (identifier)) right: (identifier))))) (expression_statement (assignment_expression left: (identifier) right: (number_literal))) (goto_statement label: (statement_identifier)))) (goto_statement label: (statement_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: (identifier))))) condition: (parenthesized_expression (true))))))

int MASKED(byte *param_1,undefined4 *param_2,undefined4 param_3,undefined8 *param_4)

{
  byte bVar1;
  int *piVar2;
  int iVar3;
  uint uVar4;
  undefined *puVar5;
  undefined8 uVar6;
  byte *local_28;
  uint local_24;
  
  puVar5 = PTR___stack_chk_guard_000a6fe0;
  local_24 = *(uint *)PTR___stack_chk_guard_000a6fe0;
  piVar2 = (int *)(*(code *)PTR___errno_location_000a6dcc)();
  *piVar2 = 0;
  *(undefined4 *)((int)param_4 + 4) = 0;
  *(undefined4 *)param_4 = 0;
  bVar1 = *param_1;
  do {
    if (bVar1 == 0) {
LAB_0004a634:
      uVar6 = (*(code *)PTR_strtoll_000a6ab4)(param_1,&local_28,param_3);
      if (param_2 != (undefined4 *)0x0) {
        *param_2 = local_28;
      }
      iVar3 = 1;
      if ((*piVar2 != 0x22) && (iVar3 = 2, param_1 != local_28)) {
        iVar3 = 0;
        *param_4 = uVar6;
      }
LAB_0004a680:
      if (local_24 == *(uint *)puVar5) {
        return iVar3;
      }
      uVar4 = local_24;
      puVar5 = PTR___stack_chk_fail_000a6c54;
      (*(code *)PTR___stack_chk_fail_000a6c54)();
      if (uVar4 < 0x5e) {
                    /* WARNING: Could not recover jumptable at 0x0004a6f0. Too many branches */
                    /* WARNING: Treating indirect jump as call */
        iVar3 = (*(code *)(puVar5 + *(int *)(*(int *)(puVar5 + 0x5bad4) + -0x2300 + uVar4 * 4) +
                                    0x63a50))();
        return iVar3;
      }
      return *(int *)(puVar5 + 0x5bad4) + -0x3018;
    }
    iVar3 = (*(code *)PTR_FUN_000a62bc)(bVar1);
    if (iVar3 == 0) {
      if (*param_1 == 0x2d) {
        if (param_2 != (undefined4 *)0x0) {
          *param_2 = param_1;
        }
        iVar3 = 2;
        goto LAB_0004a680;
      }
      goto LAB_0004a634;
    }
    param_1 = param_1 + 1;
    bVar1 = *param_1;
  } while( true );
}

