
int png_sig_cmp(png_const_bytep sig,size_t start,size_t num_to_check)

{
  int iVar1;
  int iVar2;
  undefined4 in_a3;
  undefined *puVar3;
  png_byte png_signature [8];
  
  iVar2 = *(int *)PTR___stack_chk_guard_000564c0;
  png_signature._0_4_ = *(undefined4 *)(PTR_LAB_0005601c + 0x17d0);
  png_signature._4_4_ = *(undefined4 *)(PTR_LAB_0005601c + 0x17d4);
  if (num_to_check < 9) {
    if (num_to_check == 0) {
      iVar1 = -1;
      goto LAB_00014524;
    }
  }
  else {
    num_to_check = 8;
  }
  if (start < 8) {
    if (8 < num_to_check + start) {
      num_to_check = 8 - start;
    }
    iVar1 = (*(code *)PTR_memcmp_0005649c)(sig + start,png_signature + start,num_to_check);
  }
  else {
    iVar1 = -1;
  }
LAB_00014524:
  if (iVar2 == *(int *)PTR___stack_chk_guard_000564c0) {
    return iVar1;
  }
  puVar3 = PTR___stack_chk_fail_00056488;
  (*(code *)PTR___stack_chk_fail_00056488)();
  iVar1 = (**(code **)(puVar3 + 0x41f70))(0,0,0,in_a3,puVar3 + 0x49a9c);
  *(int *)(iVar2 + 0x1e8) = iVar1;
  return iVar1;
}



undefined4 png_sig_cmp(int param_1,uint param_2,uint param_3,undefined4 param_4)

{
  undefined4 uVar1;
  int iVar2;
  undefined *puVar3;
  undefined4 local_14;
  undefined4 local_10;
  int local_c;
  
  local_c = *(int *)PTR___stack_chk_guard_000564c0;
  local_14 = *(undefined4 *)(PTR_LAB_0005601c + 0x17d0);
  local_10 = *(undefined4 *)(PTR_LAB_0005601c + 0x17d4);
  if (param_3 < 9) {
    if (param_3 == 0) {
      uVar1 = 0xffffffff;
      goto LAB_00014524;
    }
  }
  else {
    param_3 = 8;
  }
  if (param_2 < 8) {
    if (8 < param_3 + param_2) {
      param_3 = 8 - param_2;
    }
    uVar1 = (*(code *)PTR_memcmp_0005649c)(param_1 + param_2,(int)&local_14 + param_2,param_3);
  }
  else {
    uVar1 = 0xffffffff;
  }
LAB_00014524:
  if (local_c == *(int *)PTR___stack_chk_guard_000564c0) {
    return uVar1;
  }
  iVar2 = local_c;
  puVar3 = PTR___stack_chk_fail_00056488;
  (*(code *)PTR___stack_chk_fail_00056488)();
  uVar1 = (**(code **)(puVar3 + 0x41f70))(0,0,0,param_4,puVar3 + 0x49a9c);
  *(undefined4 *)(iVar2 + 0x1e8) = uVar1;
  return uVar1;
}


lui gp,0x5
addiu gp,gp,-0x64a0
addu gp,gp,t9
addiu sp,sp,-0x30
sw ra,0x2c(sp)
sw gp,0x10(sp)
or v0,a1,zero
lw v1,-0x7b30(gp)
lw v1,0x0(v1)
sw v1,0x24(sp)
lw v1,-0x7fd4(gp)
lw a1,0x17d0(v1)
addiu v1,v1,0x17d0
lw v1,0x4(v1)
sw a1,0x1c(sp)
sw v1,0x20(sp)
sltiu v1,a2,0x9
beq v1,zero,0x000144ec
_sltiu v1,v0,0x8
bne a2,zero,0x000144f0
_nop
b 0x00014524
_li v0,-0x1
li a2,0x8
beq v1,zero,0x00014540
_addu v1,a2,v0
sltiu v1,v1,0x9
bne v1,zero,0x0001450c
_addiu a1,sp,0x1c
li a2,0x8
subu a2,a2,v0
addu a1,a1,v0
addu a0,a0,v0
lw t9,-0x7b54(gp)
jalr t9
_nop
lw gp,0x10(sp)
lw a0,0x24(sp)
lw v1,-0x7b30(gp)
lw v1,0x0(v1)
bne a0,v1,0x00014548
_lw ra,0x2c(sp)
jr ra
_addiu sp,sp,0x30
b 0x00014524
_li v0,-0x1
lw t9,-0x7b68(gp)
jalr t9
_nop
(translation_unit "undefined4 png_sig_cmp(int param_1,uint param_2,uint param_3,undefined4 param_4)\n\n{\n  undefined4 uVar1;\n  int iVar2;\n  undefined *puVar3;\n  undefined4 local_14;\n  undefined4 local_10;\n  int local_c;\n  \n  local_c = *(int *)PTR___stack_chk_guard_000564c0;\n  local_14 = *(undefined4 *)(PTR_LAB_0005601c + 0x17d0);\n  local_10 = *(undefined4 *)(PTR_LAB_0005601c + 0x17d4);\n  if (param_3 < 9) {\n    if (param_3 == 0) {\n      uVar1 = 0xffffffff;\n      goto LAB_00014524;\n    }\n  }\n  else {\n    param_3 = 8;\n  }\n  if (param_2 < 8) {\n    if (8 < param_3 + param_2) {\n      param_3 = 8 - param_2;\n    }\n    uVar1 = (*(code *)PTR_memcmp_0005649c)(param_1 + param_2,(int)&local_14 + param_2,param_3);\n  }\n  else {\n    uVar1 = 0xffffffff;\n  }\nLAB_00014524:\n  if (local_c == *(int *)PTR___stack_chk_guard_000564c0) {\n    return uVar1;\n  }\n  iVar2 = local_c;\n  puVar3 = PTR___stack_chk_fail_00056488;\n  (*(code *)PTR___stack_chk_fail_00056488)();\n  uVar1 = (**(code **)(puVar3 + 0x41f70))(0,0,0,param_4,puVar3 + 0x49a9c);\n  *(undefined4 *)(iVar2 + 0x1e8) = uVar1;\n  return uVar1;\n}\n\n" (function_definition "undefined4 png_sig_cmp(int param_1,uint param_2,uint param_3,undefined4 param_4)\n\n{\n  undefined4 uVar1;\n  int iVar2;\n  undefined *puVar3;\n  undefined4 local_14;\n  undefined4 local_10;\n  int local_c;\n  \n  local_c = *(int *)PTR___stack_chk_guard_000564c0;\n  local_14 = *(undefined4 *)(PTR_LAB_0005601c + 0x17d0);\n  local_10 = *(undefined4 *)(PTR_LAB_0005601c + 0x17d4);\n  if (param_3 < 9) {\n    if (param_3 == 0) {\n      uVar1 = 0xffffffff;\n      goto LAB_00014524;\n    }\n  }\n  else {\n    param_3 = 8;\n  }\n  if (param_2 < 8) {\n    if (8 < param_3 + param_2) {\n      param_3 = 8 - param_2;\n    }\n    uVar1 = (*(code *)PTR_memcmp_0005649c)(param_1 + param_2,(int)&local_14 + param_2,param_3);\n  }\n  else {\n    uVar1 = 0xffffffff;\n  }\nLAB_00014524:\n  if (local_c == *(int *)PTR___stack_chk_guard_000564c0) {\n    return uVar1;\n  }\n  iVar2 = local_c;\n  puVar3 = PTR___stack_chk_fail_00056488;\n  (*(code *)PTR___stack_chk_fail_00056488)();\n  uVar1 = (**(code **)(puVar3 + 0x41f70))(0,0,0,param_4,puVar3 + 0x49a9c);\n  *(undefined4 *)(iVar2 + 0x1e8) = uVar1;\n  return uVar1;\n}" type_identifier (function_declarator "png_sig_cmp(int param_1,uint param_2,uint param_3,undefined4 param_4)" identifier (parameter_list "(int param_1,uint param_2,uint param_3,undefined4 param_4)" ( (parameter_declaration "int param_1" primitive_type identifier) , (parameter_declaration "uint param_2" type_identifier identifier) , (parameter_declaration "uint param_3" type_identifier identifier) , (parameter_declaration "undefined4 param_4" type_identifier identifier) ))) (compound_statement "{\n  undefined4 uVar1;\n  int iVar2;\n  undefined *puVar3;\n  undefined4 local_14;\n  undefined4 local_10;\n  int local_c;\n  \n  local_c = *(int *)PTR___stack_chk_guard_000564c0;\n  local_14 = *(undefined4 *)(PTR_LAB_0005601c + 0x17d0);\n  local_10 = *(undefined4 *)(PTR_LAB_0005601c + 0x17d4);\n  if (param_3 < 9) {\n    if (param_3 == 0) {\n      uVar1 = 0xffffffff;\n      goto LAB_00014524;\n    }\n  }\n  else {\n    param_3 = 8;\n  }\n  if (param_2 < 8) {\n    if (8 < param_3 + param_2) {\n      param_3 = 8 - param_2;\n    }\n    uVar1 = (*(code *)PTR_memcmp_0005649c)(param_1 + param_2,(int)&local_14 + param_2,param_3);\n  }\n  else {\n    uVar1 = 0xffffffff;\n  }\nLAB_00014524:\n  if (local_c == *(int *)PTR___stack_chk_guard_000564c0) {\n    return uVar1;\n  }\n  iVar2 = local_c;\n  puVar3 = PTR___stack_chk_fail_00056488;\n  (*(code *)PTR___stack_chk_fail_00056488)();\n  uVar1 = (**(code **)(puVar3 + 0x41f70))(0,0,0,param_4,puVar3 + 0x49a9c);\n  *(undefined4 *)(iVar2 + 0x1e8) = uVar1;\n  return uVar1;\n}" { (declaration "undefined4 uVar1;" type_identifier identifier ;) (declaration "int iVar2;" primitive_type identifier ;) (declaration "undefined *puVar3;" type_identifier (pointer_declarator "*puVar3" * identifier) ;) (declaration "undefined4 local_14;" type_identifier identifier ;) (declaration "undefined4 local_10;" type_identifier identifier ;) (declaration "int local_c;" primitive_type identifier ;) (expression_statement "local_c = *(int *)PTR___stack_chk_guard_000564c0;" (assignment_expression "local_c = *(int *)PTR___stack_chk_guard_000564c0" identifier = (pointer_expression "*(int *)PTR___stack_chk_guard_000564c0" * (cast_expression "(int *)PTR___stack_chk_guard_000564c0" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) identifier))) ;) (expression_statement "local_14 = *(undefined4 *)(PTR_LAB_0005601c + 0x17d0);" (assignment_expression "local_14 = *(undefined4 *)(PTR_LAB_0005601c + 0x17d0)" identifier = (pointer_expression "*(undefined4 *)(PTR_LAB_0005601c + 0x17d0)" * (cast_expression "(undefined4 *)(PTR_LAB_0005601c + 0x17d0)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(PTR_LAB_0005601c + 0x17d0)" ( (binary_expression "PTR_LAB_0005601c + 0x17d0" identifier + number_literal) ))))) ;) (expression_statement "local_10 = *(undefined4 *)(PTR_LAB_0005601c + 0x17d4);" (assignment_expression "local_10 = *(undefined4 *)(PTR_LAB_0005601c + 0x17d4)" identifier = (pointer_expression "*(undefined4 *)(PTR_LAB_0005601c + 0x17d4)" * (cast_expression "(undefined4 *)(PTR_LAB_0005601c + 0x17d4)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(PTR_LAB_0005601c + 0x17d4)" ( (binary_expression "PTR_LAB_0005601c + 0x17d4" identifier + number_literal) ))))) ;) (if_statement "if (param_3 < 9) {\n    if (param_3 == 0) {\n      uVar1 = 0xffffffff;\n      goto LAB_00014524;\n    }\n  }\n  else {\n    param_3 = 8;\n  }" if (parenthesized_expression "(param_3 < 9)" ( (binary_expression "param_3 < 9" identifier < number_literal) )) (compound_statement "{\n    if (param_3 == 0) {\n      uVar1 = 0xffffffff;\n      goto LAB_00014524;\n    }\n  }" { (if_statement "if (param_3 == 0) {\n      uVar1 = 0xffffffff;\n      goto LAB_00014524;\n    }" if (parenthesized_expression "(param_3 == 0)" ( (binary_expression "param_3 == 0" identifier == number_literal) )) (compound_statement "{\n      uVar1 = 0xffffffff;\n      goto LAB_00014524;\n    }" { (expression_statement "uVar1 = 0xffffffff;" (assignment_expression "uVar1 = 0xffffffff" identifier = number_literal) ;) (goto_statement "goto LAB_00014524;" goto statement_identifier ;) })) }) (else_clause "else {\n    param_3 = 8;\n  }" else (compound_statement "{\n    param_3 = 8;\n  }" { (expression_statement "param_3 = 8;" (assignment_expression "param_3 = 8" identifier = number_literal) ;) }))) (if_statement "if (param_2 < 8) {\n    if (8 < param_3 + param_2) {\n      param_3 = 8 - param_2;\n    }\n    uVar1 = (*(code *)PTR_memcmp_0005649c)(param_1 + param_2,(int)&local_14 + param_2,param_3);\n  }\n  else {\n    uVar1 = 0xffffffff;\n  }" if (parenthesized_expression "(param_2 < 8)" ( (binary_expression "param_2 < 8" identifier < number_literal) )) (compound_statement "{\n    if (8 < param_3 + param_2) {\n      param_3 = 8 - param_2;\n    }\n    uVar1 = (*(code *)PTR_memcmp_0005649c)(param_1 + param_2,(int)&local_14 + param_2,param_3);\n  }" { (if_statement "if (8 < param_3 + param_2) {\n      param_3 = 8 - param_2;\n    }" if (parenthesized_expression "(8 < param_3 + param_2)" ( (binary_expression "8 < param_3 + param_2" number_literal < (binary_expression "param_3 + param_2" identifier + identifier)) )) (compound_statement "{\n      param_3 = 8 - param_2;\n    }" { (expression_statement "param_3 = 8 - param_2;" (assignment_expression "param_3 = 8 - param_2" identifier = (binary_expression "8 - param_2" number_literal - identifier)) ;) })) (expression_statement "uVar1 = (*(code *)PTR_memcmp_0005649c)(param_1 + param_2,(int)&local_14 + param_2,param_3);" (assignment_expression "uVar1 = (*(code *)PTR_memcmp_0005649c)(param_1 + param_2,(int)&local_14 + param_2,param_3)" identifier = (call_expression "(*(code *)PTR_memcmp_0005649c)(param_1 + param_2,(int)&local_14 + param_2,param_3)" (parenthesized_expression "(*(code *)PTR_memcmp_0005649c)" ( (pointer_expression "*(code *)PTR_memcmp_0005649c" * (cast_expression "(code *)PTR_memcmp_0005649c" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(param_1 + param_2,(int)&local_14 + param_2,param_3)" ( (binary_expression "param_1 + param_2" identifier + identifier) , (binary_expression "(int)&local_14 + param_2" (cast_expression "(int)&local_14" ( (type_descriptor "int" primitive_type) ) (pointer_expression "&local_14" & identifier)) + identifier) , identifier )))) ;) }) (else_clause "else {\n    uVar1 = 0xffffffff;\n  }" else (compound_statement "{\n    uVar1 = 0xffffffff;\n  }" { (expression_statement "uVar1 = 0xffffffff;" (assignment_expression "uVar1 = 0xffffffff" identifier = number_literal) ;) }))) (labeled_statement "LAB_00014524:\n  if (local_c == *(int *)PTR___stack_chk_guard_000564c0) {\n    return uVar1;\n  }" statement_identifier : (if_statement "if (local_c == *(int *)PTR___stack_chk_guard_000564c0) {\n    return uVar1;\n  }" if (parenthesized_expression "(local_c == *(int *)PTR___stack_chk_guard_000564c0)" ( (binary_expression "local_c == *(int *)PTR___stack_chk_guard_000564c0" identifier == (pointer_expression "*(int *)PTR___stack_chk_guard_000564c0" * (cast_expression "(int *)PTR___stack_chk_guard_000564c0" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) identifier))) )) (compound_statement "{\n    return uVar1;\n  }" { (return_statement "return uVar1;" return identifier ;) }))) (expression_statement "iVar2 = local_c;" (assignment_expression "iVar2 = local_c" identifier = identifier) ;) (expression_statement "puVar3 = PTR___stack_chk_fail_00056488;" (assignment_expression "puVar3 = PTR___stack_chk_fail_00056488" identifier = identifier) ;) (expression_statement "(*(code *)PTR___stack_chk_fail_00056488)();" (call_expression "(*(code *)PTR___stack_chk_fail_00056488)()" (parenthesized_expression "(*(code *)PTR___stack_chk_fail_00056488)" ( (pointer_expression "*(code *)PTR___stack_chk_fail_00056488" * (cast_expression "(code *)PTR___stack_chk_fail_00056488" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "()" ( ))) ;) (expression_statement "uVar1 = (**(code **)(puVar3 + 0x41f70))(0,0,0,param_4,puVar3 + 0x49a9c);" (assignment_expression "uVar1 = (**(code **)(puVar3 + 0x41f70))(0,0,0,param_4,puVar3 + 0x49a9c)" identifier = (call_expression "(**(code **)(puVar3 + 0x41f70))(0,0,0,param_4,puVar3 + 0x49a9c)" (parenthesized_expression "(**(code **)(puVar3 + 0x41f70))" ( (pointer_expression "**(code **)(puVar3 + 0x41f70)" * (pointer_expression "*(code **)(puVar3 + 0x41f70)" * (cast_expression "(code **)(puVar3 + 0x41f70)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(puVar3 + 0x41f70)" ( (binary_expression "puVar3 + 0x41f70" identifier + number_literal) ))))) )) (argument_list "(0,0,0,param_4,puVar3 + 0x49a9c)" ( number_literal , number_literal , number_literal , identifier , (binary_expression "puVar3 + 0x49a9c" identifier + number_literal) )))) ;) (expression_statement "*(undefined4 *)(iVar2 + 0x1e8) = uVar1;" (assignment_expression "*(undefined4 *)(iVar2 + 0x1e8) = uVar1" (pointer_expression "*(undefined4 *)(iVar2 + 0x1e8)" * (cast_expression "(undefined4 *)(iVar2 + 0x1e8)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar2 + 0x1e8)" ( (binary_expression "iVar2 + 0x1e8" identifier + number_literal) )))) = identifier) ;) (return_statement "return uVar1;" return identifier ;) })))
(translation_unit "int png_sig_cmp(png_const_bytep sig,size_t start,size_t num_to_check)\n\n{\n  int iVar1;\n  int iVar2;\n  undefined4 in_a3;\n  undefined *puVar3;\n  png_byte png_signature [8];\n  \n  iVar2 = *(int *)PTR___stack_chk_guard_000564c0;\n  png_signature._0_4_ = *(undefined4 *)(PTR_LAB_0005601c + 0x17d0);\n  png_signature._4_4_ = *(undefined4 *)(PTR_LAB_0005601c + 0x17d4);\n  if (num_to_check < 9) {\n    if (num_to_check == 0) {\n      iVar1 = -1;\n      goto LAB_00014524;\n    }\n  }\n  else {\n    num_to_check = 8;\n  }\n  if (start < 8) {\n    if (8 < num_to_check + start) {\n      num_to_check = 8 - start;\n    }\n    iVar1 = (*(code *)PTR_memcmp_0005649c)(sig + start,png_signature + start,num_to_check);\n  }\n  else {\n    iVar1 = -1;\n  }\nLAB_00014524:\n  if (iVar2 == *(int *)PTR___stack_chk_guard_000564c0) {\n    return iVar1;\n  }\n  puVar3 = PTR___stack_chk_fail_00056488;\n  (*(code *)PTR___stack_chk_fail_00056488)();\n  iVar1 = (**(code **)(puVar3 + 0x41f70))(0,0,0,in_a3,puVar3 + 0x49a9c);\n  *(int *)(iVar2 + 0x1e8) = iVar1;\n  return iVar1;\n}\n\n" (function_definition "int png_sig_cmp(png_const_bytep sig,size_t start,size_t num_to_check)\n\n{\n  int iVar1;\n  int iVar2;\n  undefined4 in_a3;\n  undefined *puVar3;\n  png_byte png_signature [8];\n  \n  iVar2 = *(int *)PTR___stack_chk_guard_000564c0;\n  png_signature._0_4_ = *(undefined4 *)(PTR_LAB_0005601c + 0x17d0);\n  png_signature._4_4_ = *(undefined4 *)(PTR_LAB_0005601c + 0x17d4);\n  if (num_to_check < 9) {\n    if (num_to_check == 0) {\n      iVar1 = -1;\n      goto LAB_00014524;\n    }\n  }\n  else {\n    num_to_check = 8;\n  }\n  if (start < 8) {\n    if (8 < num_to_check + start) {\n      num_to_check = 8 - start;\n    }\n    iVar1 = (*(code *)PTR_memcmp_0005649c)(sig + start,png_signature + start,num_to_check);\n  }\n  else {\n    iVar1 = -1;\n  }\nLAB_00014524:\n  if (iVar2 == *(int *)PTR___stack_chk_guard_000564c0) {\n    return iVar1;\n  }\n  puVar3 = PTR___stack_chk_fail_00056488;\n  (*(code *)PTR___stack_chk_fail_00056488)();\n  iVar1 = (**(code **)(puVar3 + 0x41f70))(0,0,0,in_a3,puVar3 + 0x49a9c);\n  *(int *)(iVar2 + 0x1e8) = iVar1;\n  return iVar1;\n}" primitive_type (function_declarator "png_sig_cmp(png_const_bytep sig,size_t start,size_t num_to_check)" identifier (parameter_list "(png_const_bytep sig,size_t start,size_t num_to_check)" ( (parameter_declaration "png_const_bytep sig" type_identifier identifier) , (parameter_declaration "size_t start" primitive_type identifier) , (parameter_declaration "size_t num_to_check" primitive_type identifier) ))) (compound_statement "{\n  int iVar1;\n  int iVar2;\n  undefined4 in_a3;\n  undefined *puVar3;\n  png_byte png_signature [8];\n  \n  iVar2 = *(int *)PTR___stack_chk_guard_000564c0;\n  png_signature._0_4_ = *(undefined4 *)(PTR_LAB_0005601c + 0x17d0);\n  png_signature._4_4_ = *(undefined4 *)(PTR_LAB_0005601c + 0x17d4);\n  if (num_to_check < 9) {\n    if (num_to_check == 0) {\n      iVar1 = -1;\n      goto LAB_00014524;\n    }\n  }\n  else {\n    num_to_check = 8;\n  }\n  if (start < 8) {\n    if (8 < num_to_check + start) {\n      num_to_check = 8 - start;\n    }\n    iVar1 = (*(code *)PTR_memcmp_0005649c)(sig + start,png_signature + start,num_to_check);\n  }\n  else {\n    iVar1 = -1;\n  }\nLAB_00014524:\n  if (iVar2 == *(int *)PTR___stack_chk_guard_000564c0) {\n    return iVar1;\n  }\n  puVar3 = PTR___stack_chk_fail_00056488;\n  (*(code *)PTR___stack_chk_fail_00056488)();\n  iVar1 = (**(code **)(puVar3 + 0x41f70))(0,0,0,in_a3,puVar3 + 0x49a9c);\n  *(int *)(iVar2 + 0x1e8) = iVar1;\n  return iVar1;\n}" { (declaration "int iVar1;" primitive_type identifier ;) (declaration "int iVar2;" primitive_type identifier ;) (declaration "undefined4 in_a3;" type_identifier identifier ;) (declaration "undefined *puVar3;" type_identifier (pointer_declarator "*puVar3" * identifier) ;) (declaration "png_byte png_signature [8];" type_identifier (array_declarator "png_signature [8]" identifier [ number_literal ]) ;) (expression_statement "iVar2 = *(int *)PTR___stack_chk_guard_000564c0;" (assignment_expression "iVar2 = *(int *)PTR___stack_chk_guard_000564c0" identifier = (pointer_expression "*(int *)PTR___stack_chk_guard_000564c0" * (cast_expression "(int *)PTR___stack_chk_guard_000564c0" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) identifier))) ;) (expression_statement "png_signature._0_4_ = *(undefined4 *)(PTR_LAB_0005601c + 0x17d0);" (assignment_expression "png_signature._0_4_ = *(undefined4 *)(PTR_LAB_0005601c + 0x17d0)" (field_expression "png_signature._0_4_" identifier . field_identifier) = (pointer_expression "*(undefined4 *)(PTR_LAB_0005601c + 0x17d0)" * (cast_expression "(undefined4 *)(PTR_LAB_0005601c + 0x17d0)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(PTR_LAB_0005601c + 0x17d0)" ( (binary_expression "PTR_LAB_0005601c + 0x17d0" identifier + number_literal) ))))) ;) (expression_statement "png_signature._4_4_ = *(undefined4 *)(PTR_LAB_0005601c + 0x17d4);" (assignment_expression "png_signature._4_4_ = *(undefined4 *)(PTR_LAB_0005601c + 0x17d4)" (field_expression "png_signature._4_4_" identifier . field_identifier) = (pointer_expression "*(undefined4 *)(PTR_LAB_0005601c + 0x17d4)" * (cast_expression "(undefined4 *)(PTR_LAB_0005601c + 0x17d4)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(PTR_LAB_0005601c + 0x17d4)" ( (binary_expression "PTR_LAB_0005601c + 0x17d4" identifier + number_literal) ))))) ;) (if_statement "if (num_to_check < 9) {\n    if (num_to_check == 0) {\n      iVar1 = -1;\n      goto LAB_00014524;\n    }\n  }\n  else {\n    num_to_check = 8;\n  }" if (parenthesized_expression "(num_to_check < 9)" ( (binary_expression "num_to_check < 9" identifier < number_literal) )) (compound_statement "{\n    if (num_to_check == 0) {\n      iVar1 = -1;\n      goto LAB_00014524;\n    }\n  }" { (if_statement "if (num_to_check == 0) {\n      iVar1 = -1;\n      goto LAB_00014524;\n    }" if (parenthesized_expression "(num_to_check == 0)" ( (binary_expression "num_to_check == 0" identifier == number_literal) )) (compound_statement "{\n      iVar1 = -1;\n      goto LAB_00014524;\n    }" { (expression_statement "iVar1 = -1;" (assignment_expression "iVar1 = -1" identifier = number_literal) ;) (goto_statement "goto LAB_00014524;" goto statement_identifier ;) })) }) (else_clause "else {\n    num_to_check = 8;\n  }" else (compound_statement "{\n    num_to_check = 8;\n  }" { (expression_statement "num_to_check = 8;" (assignment_expression "num_to_check = 8" identifier = number_literal) ;) }))) (if_statement "if (start < 8) {\n    if (8 < num_to_check + start) {\n      num_to_check = 8 - start;\n    }\n    iVar1 = (*(code *)PTR_memcmp_0005649c)(sig + start,png_signature + start,num_to_check);\n  }\n  else {\n    iVar1 = -1;\n  }" if (parenthesized_expression "(start < 8)" ( (binary_expression "start < 8" identifier < number_literal) )) (compound_statement "{\n    if (8 < num_to_check + start) {\n      num_to_check = 8 - start;\n    }\n    iVar1 = (*(code *)PTR_memcmp_0005649c)(sig + start,png_signature + start,num_to_check);\n  }" { (if_statement "if (8 < num_to_check + start) {\n      num_to_check = 8 - start;\n    }" if (parenthesized_expression "(8 < num_to_check + start)" ( (binary_expression "8 < num_to_check + start" number_literal < (binary_expression "num_to_check + start" identifier + identifier)) )) (compound_statement "{\n      num_to_check = 8 - start;\n    }" { (expression_statement "num_to_check = 8 - start;" (assignment_expression "num_to_check = 8 - start" identifier = (binary_expression "8 - start" number_literal - identifier)) ;) })) (expression_statement "iVar1 = (*(code *)PTR_memcmp_0005649c)(sig + start,png_signature + start,num_to_check);" (assignment_expression "iVar1 = (*(code *)PTR_memcmp_0005649c)(sig + start,png_signature + start,num_to_check)" identifier = (call_expression "(*(code *)PTR_memcmp_0005649c)(sig + start,png_signature + start,num_to_check)" (parenthesized_expression "(*(code *)PTR_memcmp_0005649c)" ( (pointer_expression "*(code *)PTR_memcmp_0005649c" * (cast_expression "(code *)PTR_memcmp_0005649c" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(sig + start,png_signature + start,num_to_check)" ( (binary_expression "sig + start" identifier + identifier) , (binary_expression "png_signature + start" identifier + identifier) , identifier )))) ;) }) (else_clause "else {\n    iVar1 = -1;\n  }" else (compound_statement "{\n    iVar1 = -1;\n  }" { (expression_statement "iVar1 = -1;" (assignment_expression "iVar1 = -1" identifier = number_literal) ;) }))) (labeled_statement "LAB_00014524:\n  if (iVar2 == *(int *)PTR___stack_chk_guard_000564c0) {\n    return iVar1;\n  }" statement_identifier : (if_statement "if (iVar2 == *(int *)PTR___stack_chk_guard_000564c0) {\n    return iVar1;\n  }" if (parenthesized_expression "(iVar2 == *(int *)PTR___stack_chk_guard_000564c0)" ( (binary_expression "iVar2 == *(int *)PTR___stack_chk_guard_000564c0" identifier == (pointer_expression "*(int *)PTR___stack_chk_guard_000564c0" * (cast_expression "(int *)PTR___stack_chk_guard_000564c0" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) identifier))) )) (compound_statement "{\n    return iVar1;\n  }" { (return_statement "return iVar1;" return identifier ;) }))) (expression_statement "puVar3 = PTR___stack_chk_fail_00056488;" (assignment_expression "puVar3 = PTR___stack_chk_fail_00056488" identifier = identifier) ;) (expression_statement "(*(code *)PTR___stack_chk_fail_00056488)();" (call_expression "(*(code *)PTR___stack_chk_fail_00056488)()" (parenthesized_expression "(*(code *)PTR___stack_chk_fail_00056488)" ( (pointer_expression "*(code *)PTR___stack_chk_fail_00056488" * (cast_expression "(code *)PTR___stack_chk_fail_00056488" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "()" ( ))) ;) (expression_statement "iVar1 = (**(code **)(puVar3 + 0x41f70))(0,0,0,in_a3,puVar3 + 0x49a9c);" (assignment_expression "iVar1 = (**(code **)(puVar3 + 0x41f70))(0,0,0,in_a3,puVar3 + 0x49a9c)" identifier = (call_expression "(**(code **)(puVar3 + 0x41f70))(0,0,0,in_a3,puVar3 + 0x49a9c)" (parenthesized_expression "(**(code **)(puVar3 + 0x41f70))" ( (pointer_expression "**(code **)(puVar3 + 0x41f70)" * (pointer_expression "*(code **)(puVar3 + 0x41f70)" * (cast_expression "(code **)(puVar3 + 0x41f70)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(puVar3 + 0x41f70)" ( (binary_expression "puVar3 + 0x41f70" identifier + number_literal) ))))) )) (argument_list "(0,0,0,in_a3,puVar3 + 0x49a9c)" ( number_literal , number_literal , number_literal , identifier , (binary_expression "puVar3 + 0x49a9c" identifier + number_literal) )))) ;) (expression_statement "*(int *)(iVar2 + 0x1e8) = iVar1;" (assignment_expression "*(int *)(iVar2 + 0x1e8) = iVar1" (pointer_expression "*(int *)(iVar2 + 0x1e8)" * (cast_expression "(int *)(iVar2 + 0x1e8)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar2 + 0x1e8)" ( (binary_expression "iVar2 + 0x1e8" identifier + number_literal) )))) = identifier) ;) (return_statement "return iVar1;" return identifier ;) })))
(translation_unit "undefined4 png_sig_cmp(int param_1,uint param_2,uint param_3,undefined4 param_4)\n\n{\n  undefined4 uVar1;\n  int iVar2;\n  undefined *puVar3;\n  undefined4 local_14;\n  undefined4 local_10;\n  int local_c;\n  \n  local_c = *(int *)PTR___stack_chk_guard_000564c0;\n  local_14 = *(undefined4 *)(PTR_LAB_0005601c + 0x17d0);\n  local_10 = *(undefined4 *)(PTR_LAB_0005601c + 0x17d4);\n  if (param_3 < 9) {\n    if (param_3 == 0) {\n      uVar1 = 0xffffffff;\n      goto LAB_00014524;\n    }\n  }\n  else {\n    param_3 = 8;\n  }\n  if (param_2 < 8) {\n    if (8 < param_3 + param_2) {\n      param_3 = 8 - param_2;\n    }\n    uVar1 = (*(code *)PTR_memcmp_0005649c)(param_1 + param_2,(int)&local_14 + param_2,param_3);\n  }\n  else {\n    uVar1 = 0xffffffff;\n  }\nLAB_00014524:\n  if (local_c == *(int *)PTR___stack_chk_guard_000564c0) {\n    return uVar1;\n  }\n  iVar2 = local_c;\n  puVar3 = PTR___stack_chk_fail_00056488;\n  (*(code *)PTR___stack_chk_fail_00056488)();\n  uVar1 = (**(code **)(puVar3 + 0x41f70))(0,0,0,param_4,puVar3 + 0x49a9c);\n  *(undefined4 *)(iVar2 + 0x1e8) = uVar1;\n  return uVar1;\n}\n\n" (function_definition "undefined4 png_sig_cmp(int param_1,uint param_2,uint param_3,undefined4 param_4)\n\n{\n  undefined4 uVar1;\n  int iVar2;\n  undefined *puVar3;\n  undefined4 local_14;\n  undefined4 local_10;\n  int local_c;\n  \n  local_c = *(int *)PTR___stack_chk_guard_000564c0;\n  local_14 = *(undefined4 *)(PTR_LAB_0005601c + 0x17d0);\n  local_10 = *(undefined4 *)(PTR_LAB_0005601c + 0x17d4);\n  if (param_3 < 9) {\n    if (param_3 == 0) {\n      uVar1 = 0xffffffff;\n      goto LAB_00014524;\n    }\n  }\n  else {\n    param_3 = 8;\n  }\n  if (param_2 < 8) {\n    if (8 < param_3 + param_2) {\n      param_3 = 8 - param_2;\n    }\n    uVar1 = (*(code *)PTR_memcmp_0005649c)(param_1 + param_2,(int)&local_14 + param_2,param_3);\n  }\n  else {\n    uVar1 = 0xffffffff;\n  }\nLAB_00014524:\n  if (local_c == *(int *)PTR___stack_chk_guard_000564c0) {\n    return uVar1;\n  }\n  iVar2 = local_c;\n  puVar3 = PTR___stack_chk_fail_00056488;\n  (*(code *)PTR___stack_chk_fail_00056488)();\n  uVar1 = (**(code **)(puVar3 + 0x41f70))(0,0,0,param_4,puVar3 + 0x49a9c);\n  *(undefined4 *)(iVar2 + 0x1e8) = uVar1;\n  return uVar1;\n}" type_identifier (function_declarator "png_sig_cmp(int param_1,uint param_2,uint param_3,undefined4 param_4)" identifier (parameter_list "(int param_1,uint param_2,uint param_3,undefined4 param_4)" ( (parameter_declaration "int param_1" primitive_type identifier) , (parameter_declaration "uint param_2" type_identifier identifier) , (parameter_declaration "uint param_3" type_identifier identifier) , (parameter_declaration "undefined4 param_4" type_identifier identifier) ))) (compound_statement "{\n  undefined4 uVar1;\n  int iVar2;\n  undefined *puVar3;\n  undefined4 local_14;\n  undefined4 local_10;\n  int local_c;\n  \n  local_c = *(int *)PTR___stack_chk_guard_000564c0;\n  local_14 = *(undefined4 *)(PTR_LAB_0005601c + 0x17d0);\n  local_10 = *(undefined4 *)(PTR_LAB_0005601c + 0x17d4);\n  if (param_3 < 9) {\n    if (param_3 == 0) {\n      uVar1 = 0xffffffff;\n      goto LAB_00014524;\n    }\n  }\n  else {\n    param_3 = 8;\n  }\n  if (param_2 < 8) {\n    if (8 < param_3 + param_2) {\n      param_3 = 8 - param_2;\n    }\n    uVar1 = (*(code *)PTR_memcmp_0005649c)(param_1 + param_2,(int)&local_14 + param_2,param_3);\n  }\n  else {\n    uVar1 = 0xffffffff;\n  }\nLAB_00014524:\n  if (local_c == *(int *)PTR___stack_chk_guard_000564c0) {\n    return uVar1;\n  }\n  iVar2 = local_c;\n  puVar3 = PTR___stack_chk_fail_00056488;\n  (*(code *)PTR___stack_chk_fail_00056488)();\n  uVar1 = (**(code **)(puVar3 + 0x41f70))(0,0,0,param_4,puVar3 + 0x49a9c);\n  *(undefined4 *)(iVar2 + 0x1e8) = uVar1;\n  return uVar1;\n}" { (declaration "undefined4 uVar1;" type_identifier identifier ;) (declaration "int iVar2;" primitive_type identifier ;) (declaration "undefined *puVar3;" type_identifier (pointer_declarator "*puVar3" * identifier) ;) (declaration "undefined4 local_14;" type_identifier identifier ;) (declaration "undefined4 local_10;" type_identifier identifier ;) (declaration "int local_c;" primitive_type identifier ;) (expression_statement "local_c = *(int *)PTR___stack_chk_guard_000564c0;" (assignment_expression "local_c = *(int *)PTR___stack_chk_guard_000564c0" identifier = (pointer_expression "*(int *)PTR___stack_chk_guard_000564c0" * (cast_expression "(int *)PTR___stack_chk_guard_000564c0" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) identifier))) ;) (expression_statement "local_14 = *(undefined4 *)(PTR_LAB_0005601c + 0x17d0);" (assignment_expression "local_14 = *(undefined4 *)(PTR_LAB_0005601c + 0x17d0)" identifier = (pointer_expression "*(undefined4 *)(PTR_LAB_0005601c + 0x17d0)" * (cast_expression "(undefined4 *)(PTR_LAB_0005601c + 0x17d0)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(PTR_LAB_0005601c + 0x17d0)" ( (binary_expression "PTR_LAB_0005601c + 0x17d0" identifier + number_literal) ))))) ;) (expression_statement "local_10 = *(undefined4 *)(PTR_LAB_0005601c + 0x17d4);" (assignment_expression "local_10 = *(undefined4 *)(PTR_LAB_0005601c + 0x17d4)" identifier = (pointer_expression "*(undefined4 *)(PTR_LAB_0005601c + 0x17d4)" * (cast_expression "(undefined4 *)(PTR_LAB_0005601c + 0x17d4)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(PTR_LAB_0005601c + 0x17d4)" ( (binary_expression "PTR_LAB_0005601c + 0x17d4" identifier + number_literal) ))))) ;) (if_statement "if (param_3 < 9) {\n    if (param_3 == 0) {\n      uVar1 = 0xffffffff;\n      goto LAB_00014524;\n    }\n  }\n  else {\n    param_3 = 8;\n  }" if (parenthesized_expression "(param_3 < 9)" ( (binary_expression "param_3 < 9" identifier < number_literal) )) (compound_statement "{\n    if (param_3 == 0) {\n      uVar1 = 0xffffffff;\n      goto LAB_00014524;\n    }\n  }" { (if_statement "if (param_3 == 0) {\n      uVar1 = 0xffffffff;\n      goto LAB_00014524;\n    }" if (parenthesized_expression "(param_3 == 0)" ( (binary_expression "param_3 == 0" identifier == number_literal) )) (compound_statement "{\n      uVar1 = 0xffffffff;\n      goto LAB_00014524;\n    }" { (expression_statement "uVar1 = 0xffffffff;" (assignment_expression "uVar1 = 0xffffffff" identifier = number_literal) ;) (goto_statement "goto LAB_00014524;" goto statement_identifier ;) })) }) (else_clause "else {\n    param_3 = 8;\n  }" else (compound_statement "{\n    param_3 = 8;\n  }" { (expression_statement "param_3 = 8;" (assignment_expression "param_3 = 8" identifier = number_literal) ;) }))) (if_statement "if (param_2 < 8) {\n    if (8 < param_3 + param_2) {\n      param_3 = 8 - param_2;\n    }\n    uVar1 = (*(code *)PTR_memcmp_0005649c)(param_1 + param_2,(int)&local_14 + param_2,param_3);\n  }\n  else {\n    uVar1 = 0xffffffff;\n  }" if (parenthesized_expression "(param_2 < 8)" ( (binary_expression "param_2 < 8" identifier < number_literal) )) (compound_statement "{\n    if (8 < param_3 + param_2) {\n      param_3 = 8 - param_2;\n    }\n    uVar1 = (*(code *)PTR_memcmp_0005649c)(param_1 + param_2,(int)&local_14 + param_2,param_3);\n  }" { (if_statement "if (8 < param_3 + param_2) {\n      param_3 = 8 - param_2;\n    }" if (parenthesized_expression "(8 < param_3 + param_2)" ( (binary_expression "8 < param_3 + param_2" number_literal < (binary_expression "param_3 + param_2" identifier + identifier)) )) (compound_statement "{\n      param_3 = 8 - param_2;\n    }" { (expression_statement "param_3 = 8 - param_2;" (assignment_expression "param_3 = 8 - param_2" identifier = (binary_expression "8 - param_2" number_literal - identifier)) ;) })) (expression_statement "uVar1 = (*(code *)PTR_memcmp_0005649c)(param_1 + param_2,(int)&local_14 + param_2,param_3);" (assignment_expression "uVar1 = (*(code *)PTR_memcmp_0005649c)(param_1 + param_2,(int)&local_14 + param_2,param_3)" identifier = (call_expression "(*(code *)PTR_memcmp_0005649c)(param_1 + param_2,(int)&local_14 + param_2,param_3)" (parenthesized_expression "(*(code *)PTR_memcmp_0005649c)" ( (pointer_expression "*(code *)PTR_memcmp_0005649c" * (cast_expression "(code *)PTR_memcmp_0005649c" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(param_1 + param_2,(int)&local_14 + param_2,param_3)" ( (binary_expression "param_1 + param_2" identifier + identifier) , (binary_expression "(int)&local_14 + param_2" (cast_expression "(int)&local_14" ( (type_descriptor "int" primitive_type) ) (pointer_expression "&local_14" & identifier)) + identifier) , identifier )))) ;) }) (else_clause "else {\n    uVar1 = 0xffffffff;\n  }" else (compound_statement "{\n    uVar1 = 0xffffffff;\n  }" { (expression_statement "uVar1 = 0xffffffff;" (assignment_expression "uVar1 = 0xffffffff" identifier = number_literal) ;) }))) (labeled_statement "LAB_00014524:\n  if (local_c == *(int *)PTR___stack_chk_guard_000564c0) {\n    return uVar1;\n  }" statement_identifier : (if_statement "if (local_c == *(int *)PTR___stack_chk_guard_000564c0) {\n    return uVar1;\n  }" if (parenthesized_expression "(local_c == *(int *)PTR___stack_chk_guard_000564c0)" ( (binary_expression "local_c == *(int *)PTR___stack_chk_guard_000564c0" identifier == (pointer_expression "*(int *)PTR___stack_chk_guard_000564c0" * (cast_expression "(int *)PTR___stack_chk_guard_000564c0" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) identifier))) )) (compound_statement "{\n    return uVar1;\n  }" { (return_statement "return uVar1;" return identifier ;) }))) (expression_statement "iVar2 = local_c;" (assignment_expression "iVar2 = local_c" identifier = identifier) ;) (expression_statement "puVar3 = PTR___stack_chk_fail_00056488;" (assignment_expression "puVar3 = PTR___stack_chk_fail_00056488" identifier = identifier) ;) (expression_statement "(*(code *)PTR___stack_chk_fail_00056488)();" (call_expression "(*(code *)PTR___stack_chk_fail_00056488)()" (parenthesized_expression "(*(code *)PTR___stack_chk_fail_00056488)" ( (pointer_expression "*(code *)PTR___stack_chk_fail_00056488" * (cast_expression "(code *)PTR___stack_chk_fail_00056488" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "()" ( ))) ;) (expression_statement "uVar1 = (**(code **)(puVar3 + 0x41f70))(0,0,0,param_4,puVar3 + 0x49a9c);" (assignment_expression "uVar1 = (**(code **)(puVar3 + 0x41f70))(0,0,0,param_4,puVar3 + 0x49a9c)" identifier = (call_expression "(**(code **)(puVar3 + 0x41f70))(0,0,0,param_4,puVar3 + 0x49a9c)" (parenthesized_expression "(**(code **)(puVar3 + 0x41f70))" ( (pointer_expression "**(code **)(puVar3 + 0x41f70)" * (pointer_expression "*(code **)(puVar3 + 0x41f70)" * (cast_expression "(code **)(puVar3 + 0x41f70)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(puVar3 + 0x41f70)" ( (binary_expression "puVar3 + 0x41f70" identifier + number_literal) ))))) )) (argument_list "(0,0,0,param_4,puVar3 + 0x49a9c)" ( number_literal , number_literal , number_literal , identifier , (binary_expression "puVar3 + 0x49a9c" identifier + number_literal) )))) ;) (expression_statement "*(undefined4 *)(iVar2 + 0x1e8) = uVar1;" (assignment_expression "*(undefined4 *)(iVar2 + 0x1e8) = uVar1" (pointer_expression "*(undefined4 *)(iVar2 + 0x1e8)" * (cast_expression "(undefined4 *)(iVar2 + 0x1e8)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar2 + 0x1e8)" ( (binary_expression "iVar2 + 0x1e8" identifier + number_literal) )))) = identifier) ;) (return_statement "return uVar1;" return identifier ;) })))
(translation_unit (function_definition TYPE (function_declarator IDENT (parameter_list ( (parameter_declaration TYPE IDENT) , (parameter_declaration TYPE IDENT) , (parameter_declaration TYPE IDENT) , (parameter_declaration TYPE IDENT) ))) (compound_statement { (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT))) ;) (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) ;) (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT < LIT) )) (compound_statement { (if_statement if (parenthesized_expression ( (binary_expression IDENT == LIT) )) (compound_statement { (expression_statement (assignment_expression IDENT = LIT) ;) (goto_statement goto statement_identifier ;) })) }) (else_clause else (compound_statement { (expression_statement (assignment_expression IDENT = LIT) ;) }))) (if_statement if (parenthesized_expression ( (binary_expression IDENT < LIT) )) (compound_statement { (if_statement if (parenthesized_expression ( (binary_expression LIT < (binary_expression IDENT + IDENT)) )) (compound_statement { (expression_statement (assignment_expression IDENT = (binary_expression LIT - IDENT)) ;) })) (expression_statement (assignment_expression IDENT = (call_expression (parenthesized_expression ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT)) )) (argument_list ( (binary_expression IDENT + IDENT) , (binary_expression (cast_expression ( (type_descriptor TYPE) ) (pointer_expression & IDENT)) + IDENT) , IDENT )))) ;) }) (else_clause else (compound_statement { (expression_statement (assignment_expression IDENT = LIT) ;) }))) (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 ( ))) ;) (expression_statement (assignment_expression IDENT = (call_expression (parenthesized_expression ( (pointer_expression * (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator * (abstract_pointer_declarator *))) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) )) (argument_list ( LIT , LIT , LIT , IDENT , (binary_expression IDENT + LIT) )))) ;) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) = IDENT) ;) (return_statement return IDENT ;) })))
(function_definition "undefined4 png_sig_cmp(int param_1,uint param_2,uint param_3,undefined4 param_4)\n\n{\n  undefined4 uVar1;\n  int iVar2;\n  undefined *puVar3;\n  undefined4 local_14;\n  undefined4 local_10;\n  int local_c;\n  \n  local_c = *(int *)PTR___stack_chk_guard_000564c0;\n  local_14 = *(undefined4 *)(PTR_LAB_0005601c + 0x17d0);\n  local_10 = *(undefined4 *)(PTR_LAB_0005601c + 0x17d4);\n  if (param_3 < 9) {\n    if (param_3 == 0) {\n      uVar1 = 0xffffffff;\n      goto LAB_00014524;\n    }\n  }\n  else {\n    param_3 = 8;\n  }\n  if (param_2 < 8) {\n    if (8 < param_3 + param_2) {\n      param_3 = 8 - param_2;\n    }\n    uVar1 = (*(code *)PTR_memcmp_0005649c)(param_1 + param_2,(int)&local_14 + param_2,param_3);\n  }\n  else {\n    uVar1 = 0xffffffff;\n  }\nLAB_00014524:\n  if (local_c == *(int *)PTR___stack_chk_guard_000564c0) {\n    return uVar1;\n  }\n  iVar2 = local_c;\n  puVar3 = PTR___stack_chk_fail_00056488;\n  (*(code *)PTR___stack_chk_fail_00056488)();\n  uVar1 = (**(code **)(puVar3 + 0x41f70))(0,0,0,param_4,puVar3 + 0x49a9c);\n  *(undefined4 *)(iVar2 + 0x1e8) = uVar1;\n  return uVar1;\n}" (type_identifier "undefined4") (function_declarator "png_sig_cmp(int param_1,uint param_2,uint param_3,undefined4 param_4)" (identifier "png_sig_cmp") (parameter_list "(int param_1,uint param_2,uint param_3,undefined4 param_4)" (( "(") (parameter_declaration "int param_1" (primitive_type "int") (identifier "param_1")) (, ",") (parameter_declaration "uint param_2" (type_identifier "uint") (identifier "param_2")) (, ",") (parameter_declaration "uint param_3" (type_identifier "uint") (identifier "param_3")) (, ",") (parameter_declaration "undefined4 param_4" (type_identifier "undefined4") (identifier "param_4")) () ")"))) (compound_statement "{\n  undefined4 uVar1;\n  int iVar2;\n  undefined *puVar3;\n  undefined4 local_14;\n  undefined4 local_10;\n  int local_c;\n  \n  local_c = *(int *)PTR___stack_chk_guard_000564c0;\n  local_14 = *(undefined4 *)(PTR_LAB_0005601c + 0x17d0);\n  local_10 = *(undefined4 *)(PTR_LAB_0005601c + 0x17d4);\n  if (param_3 < 9) {\n    if (param_3 == 0) {\n      uVar1 = 0xffffffff;\n      goto LAB_00014524;\n    }\n  }\n  else {\n    param_3 = 8;\n  }\n  if (param_2 < 8) {\n    if (8 < param_3 + param_2) {\n      param_3 = 8 - param_2;\n    }\n    uVar1 = (*(code *)PTR_memcmp_0005649c)(param_1 + param_2,(int)&local_14 + param_2,param_3);\n  }\n  else {\n    uVar1 = 0xffffffff;\n  }\nLAB_00014524:\n  if (local_c == *(int *)PTR___stack_chk_guard_000564c0) {\n    return uVar1;\n  }\n  iVar2 = local_c;\n  puVar3 = PTR___stack_chk_fail_00056488;\n  (*(code *)PTR___stack_chk_fail_00056488)();\n  uVar1 = (**(code **)(puVar3 + 0x41f70))(0,0,0,param_4,puVar3 + 0x49a9c);\n  *(undefined4 *)(iVar2 + 0x1e8) = uVar1;\n  return uVar1;\n}" ({ "{") (declaration "undefined4 uVar1;" (type_identifier "undefined4") (identifier "uVar1") (; ";")) (declaration "int iVar2;" (primitive_type "int") (identifier "iVar2") (; ";")) (declaration "undefined *puVar3;" (type_identifier "undefined") (pointer_declarator "*puVar3" (* "*") (identifier "puVar3")) (; ";")) (declaration "undefined4 local_14;" (type_identifier "undefined4") (identifier "local_14") (; ";")) (declaration "undefined4 local_10;" (type_identifier "undefined4") (identifier "local_10") (; ";")) (declaration "int local_c;" (primitive_type "int") (identifier "local_c") (; ";")) (expression_statement "local_c = *(int *)PTR___stack_chk_guard_000564c0;" (assignment_expression "local_c = *(int *)PTR___stack_chk_guard_000564c0" (identifier "local_c") (= "=") (pointer_expression "*(int *)PTR___stack_chk_guard_000564c0" (* "*") (cast_expression "(int *)PTR___stack_chk_guard_000564c0" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR___stack_chk_guard_000564c0")))) (; ";")) (expression_statement "local_14 = *(undefined4 *)(PTR_LAB_0005601c + 0x17d0);" (assignment_expression "local_14 = *(undefined4 *)(PTR_LAB_0005601c + 0x17d0)" (identifier "local_14") (= "=") (pointer_expression "*(undefined4 *)(PTR_LAB_0005601c + 0x17d0)" (* "*") (cast_expression "(undefined4 *)(PTR_LAB_0005601c + 0x17d0)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(PTR_LAB_0005601c + 0x17d0)" (( "(") (binary_expression "PTR_LAB_0005601c + 0x17d0" (identifier "PTR_LAB_0005601c") (+ "+") (number_literal "0x17d0")) () ")"))))) (; ";")) (expression_statement "local_10 = *(undefined4 *)(PTR_LAB_0005601c + 0x17d4);" (assignment_expression "local_10 = *(undefined4 *)(PTR_LAB_0005601c + 0x17d4)" (identifier "local_10") (= "=") (pointer_expression "*(undefined4 *)(PTR_LAB_0005601c + 0x17d4)" (* "*") (cast_expression "(undefined4 *)(PTR_LAB_0005601c + 0x17d4)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(PTR_LAB_0005601c + 0x17d4)" (( "(") (binary_expression "PTR_LAB_0005601c + 0x17d4" (identifier "PTR_LAB_0005601c") (+ "+") (number_literal "0x17d4")) () ")"))))) (; ";")) (if_statement "if (param_3 < 9) {\n    if (param_3 == 0) {\n      uVar1 = 0xffffffff;\n      goto LAB_00014524;\n    }\n  }\n  else {\n    param_3 = 8;\n  }" (if "if") (parenthesized_expression "(param_3 < 9)" (( "(") (binary_expression "param_3 < 9" (identifier "param_3") (< "<") (number_literal "9")) () ")")) (compound_statement "{\n    if (param_3 == 0) {\n      uVar1 = 0xffffffff;\n      goto LAB_00014524;\n    }\n  }" ({ "{") (if_statement "if (param_3 == 0) {\n      uVar1 = 0xffffffff;\n      goto LAB_00014524;\n    }" (if "if") (parenthesized_expression "(param_3 == 0)" (( "(") (binary_expression "param_3 == 0" (identifier "param_3") (== "==") (number_literal "0")) () ")")) (compound_statement "{\n      uVar1 = 0xffffffff;\n      goto LAB_00014524;\n    }" ({ "{") (expression_statement "uVar1 = 0xffffffff;" (assignment_expression "uVar1 = 0xffffffff" (identifier "uVar1") (= "=") (number_literal "0xffffffff")) (; ";")) (goto_statement "goto LAB_00014524;" (goto "goto") (statement_identifier "LAB_00014524") (; ";")) (} "}"))) (} "}")) (else_clause "else {\n    param_3 = 8;\n  }" (else "else") (compound_statement "{\n    param_3 = 8;\n  }" ({ "{") (expression_statement "param_3 = 8;" (assignment_expression "param_3 = 8" (identifier "param_3") (= "=") (number_literal "8")) (; ";")) (} "}")))) (if_statement "if (param_2 < 8) {\n    if (8 < param_3 + param_2) {\n      param_3 = 8 - param_2;\n    }\n    uVar1 = (*(code *)PTR_memcmp_0005649c)(param_1 + param_2,(int)&local_14 + param_2,param_3);\n  }\n  else {\n    uVar1 = 0xffffffff;\n  }" (if "if") (parenthesized_expression "(param_2 < 8)" (( "(") (binary_expression "param_2 < 8" (identifier "param_2") (< "<") (number_literal "8")) () ")")) (compound_statement "{\n    if (8 < param_3 + param_2) {\n      param_3 = 8 - param_2;\n    }\n    uVar1 = (*(code *)PTR_memcmp_0005649c)(param_1 + param_2,(int)&local_14 + param_2,param_3);\n  }" ({ "{") (if_statement "if (8 < param_3 + param_2) {\n      param_3 = 8 - param_2;\n    }" (if "if") (parenthesized_expression "(8 < param_3 + param_2)" (( "(") (binary_expression "8 < param_3 + param_2" (number_literal "8") (< "<") (binary_expression "param_3 + param_2" (identifier "param_3") (+ "+") (identifier "param_2"))) () ")")) (compound_statement "{\n      param_3 = 8 - param_2;\n    }" ({ "{") (expression_statement "param_3 = 8 - param_2;" (assignment_expression "param_3 = 8 - param_2" (identifier "param_3") (= "=") (binary_expression "8 - param_2" (number_literal "8") (- "-") (identifier "param_2"))) (; ";")) (} "}"))) (expression_statement "uVar1 = (*(code *)PTR_memcmp_0005649c)(param_1 + param_2,(int)&local_14 + param_2,param_3);" (assignment_expression "uVar1 = (*(code *)PTR_memcmp_0005649c)(param_1 + param_2,(int)&local_14 + param_2,param_3)" (identifier "uVar1") (= "=") (call_expression "(*(code *)PTR_memcmp_0005649c)(param_1 + param_2,(int)&local_14 + param_2,param_3)" (parenthesized_expression "(*(code *)PTR_memcmp_0005649c)" (( "(") (pointer_expression "*(code *)PTR_memcmp_0005649c" (* "*") (cast_expression "(code *)PTR_memcmp_0005649c" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR_memcmp_0005649c"))) () ")")) (argument_list "(param_1 + param_2,(int)&local_14 + param_2,param_3)" (( "(") (binary_expression "param_1 + param_2" (identifier "param_1") (+ "+") (identifier "param_2")) (, ",") (binary_expression "(int)&local_14 + param_2" (cast_expression "(int)&local_14" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (pointer_expression "&local_14" (& "&") (identifier "local_14"))) (+ "+") (identifier "param_2")) (, ",") (identifier "param_3") () ")")))) (; ";")) (} "}")) (else_clause "else {\n    uVar1 = 0xffffffff;\n  }" (else "else") (compound_statement "{\n    uVar1 = 0xffffffff;\n  }" ({ "{") (expression_statement "uVar1 = 0xffffffff;" (assignment_expression "uVar1 = 0xffffffff" (identifier "uVar1") (= "=") (number_literal "0xffffffff")) (; ";")) (} "}")))) (labeled_statement "LAB_00014524:\n  if (local_c == *(int *)PTR___stack_chk_guard_000564c0) {\n    return uVar1;\n  }" (statement_identifier "LAB_00014524") (: ":") (if_statement "if (local_c == *(int *)PTR___stack_chk_guard_000564c0) {\n    return uVar1;\n  }" (if "if") (parenthesized_expression "(local_c == *(int *)PTR___stack_chk_guard_000564c0)" (( "(") (binary_expression "local_c == *(int *)PTR___stack_chk_guard_000564c0" (identifier "local_c") (== "==") (pointer_expression "*(int *)PTR___stack_chk_guard_000564c0" (* "*") (cast_expression "(int *)PTR___stack_chk_guard_000564c0" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR___stack_chk_guard_000564c0")))) () ")")) (compound_statement "{\n    return uVar1;\n  }" ({ "{") (return_statement "return uVar1;" (return "return") (identifier "uVar1") (; ";")) (} "}")))) (expression_statement "iVar2 = local_c;" (assignment_expression "iVar2 = local_c" (identifier "iVar2") (= "=") (identifier "local_c")) (; ";")) (expression_statement "puVar3 = PTR___stack_chk_fail_00056488;" (assignment_expression "puVar3 = PTR___stack_chk_fail_00056488" (identifier "puVar3") (= "=") (identifier "PTR___stack_chk_fail_00056488")) (; ";")) (expression_statement "(*(code *)PTR___stack_chk_fail_00056488)();" (call_expression "(*(code *)PTR___stack_chk_fail_00056488)()" (parenthesized_expression "(*(code *)PTR___stack_chk_fail_00056488)" (( "(") (pointer_expression "*(code *)PTR___stack_chk_fail_00056488" (* "*") (cast_expression "(code *)PTR___stack_chk_fail_00056488" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR___stack_chk_fail_00056488"))) () ")")) (argument_list "()" (( "(") () ")"))) (; ";")) (expression_statement "uVar1 = (**(code **)(puVar3 + 0x41f70))(0,0,0,param_4,puVar3 + 0x49a9c);" (assignment_expression "uVar1 = (**(code **)(puVar3 + 0x41f70))(0,0,0,param_4,puVar3 + 0x49a9c)" (identifier "uVar1") (= "=") (call_expression "(**(code **)(puVar3 + 0x41f70))(0,0,0,param_4,puVar3 + 0x49a9c)" (parenthesized_expression "(**(code **)(puVar3 + 0x41f70))" (( "(") (pointer_expression "**(code **)(puVar3 + 0x41f70)" (* "*") (pointer_expression "*(code **)(puVar3 + 0x41f70)" (* "*") (cast_expression "(code **)(puVar3 + 0x41f70)" (( "(") (type_descriptor "code **" (type_identifier "code") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (parenthesized_expression "(puVar3 + 0x41f70)" (( "(") (binary_expression "puVar3 + 0x41f70" (identifier "puVar3") (+ "+") (number_literal "0x41f70")) () ")"))))) () ")")) (argument_list "(0,0,0,param_4,puVar3 + 0x49a9c)" (( "(") (number_literal "0") (, ",") (number_literal "0") (, ",") (number_literal "0") (, ",") (identifier "param_4") (, ",") (binary_expression "puVar3 + 0x49a9c" (identifier "puVar3") (+ "+") (number_literal "0x49a9c")) () ")")))) (; ";")) (expression_statement "*(undefined4 *)(iVar2 + 0x1e8) = uVar1;" (assignment_expression "*(undefined4 *)(iVar2 + 0x1e8) = uVar1" (pointer_expression "*(undefined4 *)(iVar2 + 0x1e8)" (* "*") (cast_expression "(undefined4 *)(iVar2 + 0x1e8)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar2 + 0x1e8)" (( "(") (binary_expression "iVar2 + 0x1e8" (identifier "iVar2") (+ "+") (number_literal "0x1e8")) () ")")))) (= "=") (identifier "uVar1")) (; ";")) (return_statement "return uVar1;" (return "return") (identifier "uVar1") (; ";")) (} "}")))

int function_1(type_1 var_4,size_t var_3,size_t var_2)

{
  int iVar1;
  int var_6;
  type_2 in_a3;
  type_3 *var_7;
  type_4 var_5 [8];
  
  var_6 = *(int *)PTR___stack_chk_guard_000564c0;
  var_5._0_4_ = *(type_2 *)(var_1 + 0x17d0);
  var_5._4_4_ = *(type_2 *)(var_1 + 0x17d4);
  if (var_2 < 9) {
    if (var_2 == 0) {
      iVar1 = -1;
      goto LAB_00014524;
    }
  }
  else {
    var_2 = 8;
  }
  if (var_3 < 8) {
    if (8 < var_2 + var_3) {
      var_2 = 8 - var_3;
    }
    iVar1 = (*(type_5 *)PTR_memcmp_0005649c)(var_4 + var_3,var_5 + var_3,var_2);
  }
  else {
    iVar1 = -1;
  }
LAB_00014524:
  if (var_6 == *(int *)PTR___stack_chk_guard_000564c0) {
    return iVar1;
  }
  var_7 = PTR___stack_chk_fail_00056488;
  (*(type_5 *)PTR___stack_chk_fail_00056488)();
  iVar1 = (**(type_5 **)(var_7 + 0x41f70))(0,0,0,in_a3,var_7 + 0x49a9c);
  *(int *)(var_6 + 0x1e8) = iVar1;
  return iVar1;
}


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

undefined4 MASKED(int param_1,uint param_2,uint param_3,undefined4 param_4)

{
  undefined4 uVar1;
  int iVar2;
  undefined *puVar3;
  undefined4 local_14;
  undefined4 local_10;
  int local_c;
  
  local_c = *(int *)PTR___stack_chk_guard_000564c0;
  local_14 = *(undefined4 *)(PTR_LAB_0005601c + 0x17d0);
  local_10 = *(undefined4 *)(PTR_LAB_0005601c + 0x17d4);
  if (param_3 < 9) {
    if (param_3 == 0) {
      uVar1 = 0xffffffff;
      goto LAB_00014524;
    }
  }
  else {
    param_3 = 8;
  }
  if (param_2 < 8) {
    if (8 < param_3 + param_2) {
      param_3 = 8 - param_2;
    }
    uVar1 = (*(code *)PTR_memcmp_0005649c)(param_1 + param_2,(int)&local_14 + param_2,param_3);
  }
  else {
    uVar1 = 0xffffffff;
  }
LAB_00014524:
  if (local_c == *(int *)PTR___stack_chk_guard_000564c0) {
    return uVar1;
  }
  iVar2 = local_c;
  puVar3 = PTR___stack_chk_fail_00056488;
  (*(code *)PTR___stack_chk_fail_00056488)();
  uVar1 = (**(code **)(puVar3 + 0x41f70))(0,0,0,param_4,puVar3 + 0x49a9c);
  *(undefined4 *)(iVar2 + 0x1e8) = uVar1;
  return uVar1;
}

