
int sqlite3HasExplicitNulls(Parse *pParse,ExprList *pList)

{
  int iVar1;
  u8 uVar2;
  ExprList_item *pEVar3;
  int iVar4;
  undefined *puVar5;
  
  if (pList->nExpr < 1) {
    return 0;
  }
  iVar1 = -((*(int *)&pList->a[0].sortFlags << 0xd) >> 0x1f);
  if (iVar1 == 0) {
    do {
      iVar4 = iVar1 * 0x10 + 0x10;
      if (iVar1 + 1 == pList->nExpr) {
        return 0;
      }
      pEVar3 = pList[1].a + iVar1;
      iVar1 = iVar1 + 1;
    } while (-1 < (int)pEVar3->zEName << 0xd);
  }
  else {
    iVar4 = 0;
  }
  uVar2 = (&pList->a[0].sortFlags)[iVar4];
  if ((uVar2 == '\0') || (uVar2 == '\x03')) {
    puVar5 = PTR_LAB_000f52cc + 0x7660;
  }
  else {
    puVar5 = PTR_LAB_000f52cc + 0x7668;
  }
  sqlite3ErrorMsg(pParse,PTR_LAB_000f52cc + 0x7670,puVar5);
  return 1;
}



undefined4 FUN_0004aefc(undefined4 param_1,int *param_2)

{
  int iVar1;
  undefined4 uVar2;
  undefined *puVar3;
  
  if (0 < *param_2) {
    iVar1 = -((param_2[3] << 0xd) >> 0x1f);
    if (iVar1 != 0) {
      uVar2 = FUN_0004af50(param_1,param_2,0);
      return uVar2;
    }
    while( true ) {
      iVar1 = iVar1 + 1;
      if (iVar1 == *param_2) break;
      if (param_2[iVar1 * 4 + 3] << 0xd < 0) {
        if ((*(char *)(param_2 + iVar1 * 4 + 3) == '\0') ||
           (*(char *)(param_2 + iVar1 * 4 + 3) == '\x03')) {
          puVar3 = PTR_LAB_000f52cc + 0x7660;
        }
        else {
          puVar3 = PTR_LAB_000f52cc + 0x7668;
        }
        FUN_00049e28(param_1,PTR_LAB_000f52cc + 0x7670,puVar3);
        return 1;
      }
    }
  }
  return 0;
}


lui gp,0xb
addiu gp,gp,0x23a4
addu gp,gp,t9
lw a3,0x0(a1)
blez a3,0x0004af48
_nop
lw v0,0xc(a1)
ext v0,v0,0x12,0x1
beq v0,zero,0x0004af40
_addiu v0,v0,0x1
b 0x0004af50
_or a2,zero,zero
addu v1,a1,a2
lw v1,0xc(v1)
ext v1,v1,0x12,0x1
bne v1,zero,0x0004af50
_addiu v0,v0,0x1
bne v0,a3,0x0004af2c
_sll a2,v0,0x4
jr ra
_or v0,zero,zero
(translation_unit "undefined4 FUN_0004aefc(undefined4 param_1,int *param_2)\n\n{\n  int iVar1;\n  undefined4 uVar2;\n  undefined *puVar3;\n  \n  if (0 < *param_2) {\n    iVar1 = -((param_2[3] << 0xd) >> 0x1f);\n    if (iVar1 != 0) {\n      uVar2 = FUN_0004af50(param_1,param_2,0);\n      return uVar2;\n    }\n    while( true ) {\n      iVar1 = iVar1 + 1;\n      if (iVar1 == *param_2) break;\n      if (param_2[iVar1 * 4 + 3] << 0xd < 0) {\n        if ((*(char *)(param_2 + iVar1 * 4 + 3) == '\0') ||\n           (*(char *)(param_2 + iVar1 * 4 + 3) == '\x03')) {\n          puVar3 = PTR_LAB_000f52cc + 0x7660;\n        }\n        else {\n          puVar3 = PTR_LAB_000f52cc + 0x7668;\n        }\n        FUN_00049e28(param_1,PTR_LAB_000f52cc + 0x7670,puVar3);\n        return 1;\n      }\n    }\n  }\n  return 0;\n}\n\n" (function_definition "undefined4 FUN_0004aefc(undefined4 param_1,int *param_2)\n\n{\n  int iVar1;\n  undefined4 uVar2;\n  undefined *puVar3;\n  \n  if (0 < *param_2) {\n    iVar1 = -((param_2[3] << 0xd) >> 0x1f);\n    if (iVar1 != 0) {\n      uVar2 = FUN_0004af50(param_1,param_2,0);\n      return uVar2;\n    }\n    while( true ) {\n      iVar1 = iVar1 + 1;\n      if (iVar1 == *param_2) break;\n      if (param_2[iVar1 * 4 + 3] << 0xd < 0) {\n        if ((*(char *)(param_2 + iVar1 * 4 + 3) == '\0') ||\n           (*(char *)(param_2 + iVar1 * 4 + 3) == '\x03')) {\n          puVar3 = PTR_LAB_000f52cc + 0x7660;\n        }\n        else {\n          puVar3 = PTR_LAB_000f52cc + 0x7668;\n        }\n        FUN_00049e28(param_1,PTR_LAB_000f52cc + 0x7670,puVar3);\n        return 1;\n      }\n    }\n  }\n  return 0;\n}" type_identifier (function_declarator "FUN_0004aefc(undefined4 param_1,int *param_2)" identifier (parameter_list "(undefined4 param_1,int *param_2)" ( (parameter_declaration "undefined4 param_1" type_identifier identifier) , (parameter_declaration "int *param_2" primitive_type (pointer_declarator "*param_2" * identifier)) ))) (compound_statement "{\n  int iVar1;\n  undefined4 uVar2;\n  undefined *puVar3;\n  \n  if (0 < *param_2) {\n    iVar1 = -((param_2[3] << 0xd) >> 0x1f);\n    if (iVar1 != 0) {\n      uVar2 = FUN_0004af50(param_1,param_2,0);\n      return uVar2;\n    }\n    while( true ) {\n      iVar1 = iVar1 + 1;\n      if (iVar1 == *param_2) break;\n      if (param_2[iVar1 * 4 + 3] << 0xd < 0) {\n        if ((*(char *)(param_2 + iVar1 * 4 + 3) == '\0') ||\n           (*(char *)(param_2 + iVar1 * 4 + 3) == '\x03')) {\n          puVar3 = PTR_LAB_000f52cc + 0x7660;\n        }\n        else {\n          puVar3 = PTR_LAB_000f52cc + 0x7668;\n        }\n        FUN_00049e28(param_1,PTR_LAB_000f52cc + 0x7670,puVar3);\n        return 1;\n      }\n    }\n  }\n  return 0;\n}" { (declaration "int iVar1;" primitive_type identifier ;) (declaration "undefined4 uVar2;" type_identifier identifier ;) (declaration "undefined *puVar3;" type_identifier (pointer_declarator "*puVar3" * identifier) ;) (if_statement "if (0 < *param_2) {\n    iVar1 = -((param_2[3] << 0xd) >> 0x1f);\n    if (iVar1 != 0) {\n      uVar2 = FUN_0004af50(param_1,param_2,0);\n      return uVar2;\n    }\n    while( true ) {\n      iVar1 = iVar1 + 1;\n      if (iVar1 == *param_2) break;\n      if (param_2[iVar1 * 4 + 3] << 0xd < 0) {\n        if ((*(char *)(param_2 + iVar1 * 4 + 3) == '\0') ||\n           (*(char *)(param_2 + iVar1 * 4 + 3) == '\x03')) {\n          puVar3 = PTR_LAB_000f52cc + 0x7660;\n        }\n        else {\n          puVar3 = PTR_LAB_000f52cc + 0x7668;\n        }\n        FUN_00049e28(param_1,PTR_LAB_000f52cc + 0x7670,puVar3);\n        return 1;\n      }\n    }\n  }" if (parenthesized_expression "(0 < *param_2)" ( (binary_expression "0 < *param_2" number_literal < (pointer_expression "*param_2" * identifier)) )) (compound_statement "{\n    iVar1 = -((param_2[3] << 0xd) >> 0x1f);\n    if (iVar1 != 0) {\n      uVar2 = FUN_0004af50(param_1,param_2,0);\n      return uVar2;\n    }\n    while( true ) {\n      iVar1 = iVar1 + 1;\n      if (iVar1 == *param_2) break;\n      if (param_2[iVar1 * 4 + 3] << 0xd < 0) {\n        if ((*(char *)(param_2 + iVar1 * 4 + 3) == '\0') ||\n           (*(char *)(param_2 + iVar1 * 4 + 3) == '\x03')) {\n          puVar3 = PTR_LAB_000f52cc + 0x7660;\n        }\n        else {\n          puVar3 = PTR_LAB_000f52cc + 0x7668;\n        }\n        FUN_00049e28(param_1,PTR_LAB_000f52cc + 0x7670,puVar3);\n        return 1;\n      }\n    }\n  }" { (expression_statement "iVar1 = -((param_2[3] << 0xd) >> 0x1f);" (assignment_expression "iVar1 = -((param_2[3] << 0xd) >> 0x1f)" identifier = (unary_expression "-((param_2[3] << 0xd) >> 0x1f)" - (parenthesized_expression "((param_2[3] << 0xd) >> 0x1f)" ( (binary_expression "(param_2[3] << 0xd) >> 0x1f" (parenthesized_expression "(param_2[3] << 0xd)" ( (binary_expression "param_2[3] << 0xd" (subscript_expression "param_2[3]" identifier [ number_literal ]) << number_literal) )) >> number_literal) )))) ;) (if_statement "if (iVar1 != 0) {\n      uVar2 = FUN_0004af50(param_1,param_2,0);\n      return uVar2;\n    }" if (parenthesized_expression "(iVar1 != 0)" ( (binary_expression "iVar1 != 0" identifier != number_literal) )) (compound_statement "{\n      uVar2 = FUN_0004af50(param_1,param_2,0);\n      return uVar2;\n    }" { (expression_statement "uVar2 = FUN_0004af50(param_1,param_2,0);" (assignment_expression "uVar2 = FUN_0004af50(param_1,param_2,0)" identifier = (call_expression "FUN_0004af50(param_1,param_2,0)" identifier (argument_list "(param_1,param_2,0)" ( identifier , identifier , number_literal )))) ;) (return_statement "return uVar2;" return identifier ;) })) (while_statement "while( true ) {\n      iVar1 = iVar1 + 1;\n      if (iVar1 == *param_2) break;\n      if (param_2[iVar1 * 4 + 3] << 0xd < 0) {\n        if ((*(char *)(param_2 + iVar1 * 4 + 3) == '\0') ||\n           (*(char *)(param_2 + iVar1 * 4 + 3) == '\x03')) {\n          puVar3 = PTR_LAB_000f52cc + 0x7660;\n        }\n        else {\n          puVar3 = PTR_LAB_000f52cc + 0x7668;\n        }\n        FUN_00049e28(param_1,PTR_LAB_000f52cc + 0x7670,puVar3);\n        return 1;\n      }\n    }" while (parenthesized_expression "( true )" ( true )) (compound_statement "{\n      iVar1 = iVar1 + 1;\n      if (iVar1 == *param_2) break;\n      if (param_2[iVar1 * 4 + 3] << 0xd < 0) {\n        if ((*(char *)(param_2 + iVar1 * 4 + 3) == '\0') ||\n           (*(char *)(param_2 + iVar1 * 4 + 3) == '\x03')) {\n          puVar3 = PTR_LAB_000f52cc + 0x7660;\n        }\n        else {\n          puVar3 = PTR_LAB_000f52cc + 0x7668;\n        }\n        FUN_00049e28(param_1,PTR_LAB_000f52cc + 0x7670,puVar3);\n        return 1;\n      }\n    }" { (expression_statement "iVar1 = iVar1 + 1;" (assignment_expression "iVar1 = iVar1 + 1" identifier = (binary_expression "iVar1 + 1" identifier + number_literal)) ;) (if_statement "if (iVar1 == *param_2) break;" if (parenthesized_expression "(iVar1 == *param_2)" ( (binary_expression "iVar1 == *param_2" identifier == (pointer_expression "*param_2" * identifier)) )) (break_statement "break;" break ;)) (if_statement "if (param_2[iVar1 * 4 + 3] << 0xd < 0) {\n        if ((*(char *)(param_2 + iVar1 * 4 + 3) == '\0') ||\n           (*(char *)(param_2 + iVar1 * 4 + 3) == '\x03')) {\n          puVar3 = PTR_LAB_000f52cc + 0x7660;\n        }\n        else {\n          puVar3 = PTR_LAB_000f52cc + 0x7668;\n        }\n        FUN_00049e28(param_1,PTR_LAB_000f52cc + 0x7670,puVar3);\n        return 1;\n      }" if (parenthesized_expression "(param_2[iVar1 * 4 + 3] << 0xd < 0)" ( (binary_expression "param_2[iVar1 * 4 + 3] << 0xd < 0" (binary_expression "param_2[iVar1 * 4 + 3] << 0xd" (subscript_expression "param_2[iVar1 * 4 + 3]" identifier [ (binary_expression "iVar1 * 4 + 3" (binary_expression "iVar1 * 4" identifier * number_literal) + number_literal) ]) << number_literal) < number_literal) )) (compound_statement "{\n        if ((*(char *)(param_2 + iVar1 * 4 + 3) == '\0') ||\n           (*(char *)(param_2 + iVar1 * 4 + 3) == '\x03')) {\n          puVar3 = PTR_LAB_000f52cc + 0x7660;\n        }\n        else {\n          puVar3 = PTR_LAB_000f52cc + 0x7668;\n        }\n        FUN_00049e28(param_1,PTR_LAB_000f52cc + 0x7670,puVar3);\n        return 1;\n      }" { (if_statement "if ((*(char *)(param_2 + iVar1 * 4 + 3) == '\0') ||\n           (*(char *)(param_2 + iVar1 * 4 + 3) == '\x03')) {\n          puVar3 = PTR_LAB_000f52cc + 0x7660;\n        }\n        else {\n          puVar3 = PTR_LAB_000f52cc + 0x7668;\n        }" if (parenthesized_expression "((*(char *)(param_2 + iVar1 * 4 + 3) == '\0') ||\n           (*(char *)(param_2 + iVar1 * 4 + 3) == '\x03'))" ( (binary_expression "(*(char *)(param_2 + iVar1 * 4 + 3) == '\0') ||\n           (*(char *)(param_2 + iVar1 * 4 + 3) == '\x03')" (parenthesized_expression "(*(char *)(param_2 + iVar1 * 4 + 3) == '\0')" ( (binary_expression "*(char *)(param_2 + iVar1 * 4 + 3) == '\0'" (pointer_expression "*(char *)(param_2 + iVar1 * 4 + 3)" * (cast_expression "(char *)(param_2 + iVar1 * 4 + 3)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_2 + iVar1 * 4 + 3)" ( (binary_expression "param_2 + iVar1 * 4 + 3" (binary_expression "param_2 + iVar1 * 4" identifier + (binary_expression "iVar1 * 4" identifier * number_literal)) + number_literal) )))) == (char_literal "'\0'" ' escape_sequence ')) )) || (parenthesized_expression "(*(char *)(param_2 + iVar1 * 4 + 3) == '\x03')" ( (binary_expression "*(char *)(param_2 + iVar1 * 4 + 3) == '\x03'" (pointer_expression "*(char *)(param_2 + iVar1 * 4 + 3)" * (cast_expression "(char *)(param_2 + iVar1 * 4 + 3)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_2 + iVar1 * 4 + 3)" ( (binary_expression "param_2 + iVar1 * 4 + 3" (binary_expression "param_2 + iVar1 * 4" identifier + (binary_expression "iVar1 * 4" identifier * number_literal)) + number_literal) )))) == (char_literal "'\x03'" ' escape_sequence ')) ))) )) (compound_statement "{\n          puVar3 = PTR_LAB_000f52cc + 0x7660;\n        }" { (expression_statement "puVar3 = PTR_LAB_000f52cc + 0x7660;" (assignment_expression "puVar3 = PTR_LAB_000f52cc + 0x7660" identifier = (binary_expression "PTR_LAB_000f52cc + 0x7660" identifier + number_literal)) ;) }) (else_clause "else {\n          puVar3 = PTR_LAB_000f52cc + 0x7668;\n        }" else (compound_statement "{\n          puVar3 = PTR_LAB_000f52cc + 0x7668;\n        }" { (expression_statement "puVar3 = PTR_LAB_000f52cc + 0x7668;" (assignment_expression "puVar3 = PTR_LAB_000f52cc + 0x7668" identifier = (binary_expression "PTR_LAB_000f52cc + 0x7668" identifier + number_literal)) ;) }))) (expression_statement "FUN_00049e28(param_1,PTR_LAB_000f52cc + 0x7670,puVar3);" (call_expression "FUN_00049e28(param_1,PTR_LAB_000f52cc + 0x7670,puVar3)" identifier (argument_list "(param_1,PTR_LAB_000f52cc + 0x7670,puVar3)" ( identifier , (binary_expression "PTR_LAB_000f52cc + 0x7670" identifier + number_literal) , identifier ))) ;) (return_statement "return 1;" return number_literal ;) })) })) })) (return_statement "return 0;" return number_literal ;) })))
(translation_unit "int sqlite3HasExplicitNulls(Parse *pParse,ExprList *pList)\n\n{\n  int iVar1;\n  u8 uVar2;\n  ExprList_item *pEVar3;\n  int iVar4;\n  undefined *puVar5;\n  \n  if (pList->nExpr < 1) {\n    return 0;\n  }\n  iVar1 = -((*(int *)&pList->a[0].sortFlags << 0xd) >> 0x1f);\n  if (iVar1 == 0) {\n    do {\n      iVar4 = iVar1 * 0x10 + 0x10;\n      if (iVar1 + 1 == pList->nExpr) {\n        return 0;\n      }\n      pEVar3 = pList[1].a + iVar1;\n      iVar1 = iVar1 + 1;\n    } while (-1 < (int)pEVar3->zEName << 0xd);\n  }\n  else {\n    iVar4 = 0;\n  }\n  uVar2 = (&pList->a[0].sortFlags)[iVar4];\n  if ((uVar2 == '\0') || (uVar2 == '\x03')) {\n    puVar5 = PTR_LAB_000f52cc + 0x7660;\n  }\n  else {\n    puVar5 = PTR_LAB_000f52cc + 0x7668;\n  }\n  sqlite3ErrorMsg(pParse,PTR_LAB_000f52cc + 0x7670,puVar5);\n  return 1;\n}\n\n" (function_definition "int sqlite3HasExplicitNulls(Parse *pParse,ExprList *pList)\n\n{\n  int iVar1;\n  u8 uVar2;\n  ExprList_item *pEVar3;\n  int iVar4;\n  undefined *puVar5;\n  \n  if (pList->nExpr < 1) {\n    return 0;\n  }\n  iVar1 = -((*(int *)&pList->a[0].sortFlags << 0xd) >> 0x1f);\n  if (iVar1 == 0) {\n    do {\n      iVar4 = iVar1 * 0x10 + 0x10;\n      if (iVar1 + 1 == pList->nExpr) {\n        return 0;\n      }\n      pEVar3 = pList[1].a + iVar1;\n      iVar1 = iVar1 + 1;\n    } while (-1 < (int)pEVar3->zEName << 0xd);\n  }\n  else {\n    iVar4 = 0;\n  }\n  uVar2 = (&pList->a[0].sortFlags)[iVar4];\n  if ((uVar2 == '\0') || (uVar2 == '\x03')) {\n    puVar5 = PTR_LAB_000f52cc + 0x7660;\n  }\n  else {\n    puVar5 = PTR_LAB_000f52cc + 0x7668;\n  }\n  sqlite3ErrorMsg(pParse,PTR_LAB_000f52cc + 0x7670,puVar5);\n  return 1;\n}" primitive_type (function_declarator "sqlite3HasExplicitNulls(Parse *pParse,ExprList *pList)" identifier (parameter_list "(Parse *pParse,ExprList *pList)" ( (parameter_declaration "Parse *pParse" type_identifier (pointer_declarator "*pParse" * identifier)) , (parameter_declaration "ExprList *pList" type_identifier (pointer_declarator "*pList" * identifier)) ))) (compound_statement "{\n  int iVar1;\n  u8 uVar2;\n  ExprList_item *pEVar3;\n  int iVar4;\n  undefined *puVar5;\n  \n  if (pList->nExpr < 1) {\n    return 0;\n  }\n  iVar1 = -((*(int *)&pList->a[0].sortFlags << 0xd) >> 0x1f);\n  if (iVar1 == 0) {\n    do {\n      iVar4 = iVar1 * 0x10 + 0x10;\n      if (iVar1 + 1 == pList->nExpr) {\n        return 0;\n      }\n      pEVar3 = pList[1].a + iVar1;\n      iVar1 = iVar1 + 1;\n    } while (-1 < (int)pEVar3->zEName << 0xd);\n  }\n  else {\n    iVar4 = 0;\n  }\n  uVar2 = (&pList->a[0].sortFlags)[iVar4];\n  if ((uVar2 == '\0') || (uVar2 == '\x03')) {\n    puVar5 = PTR_LAB_000f52cc + 0x7660;\n  }\n  else {\n    puVar5 = PTR_LAB_000f52cc + 0x7668;\n  }\n  sqlite3ErrorMsg(pParse,PTR_LAB_000f52cc + 0x7670,puVar5);\n  return 1;\n}" { (declaration "int iVar1;" primitive_type identifier ;) (declaration "u8 uVar2;" type_identifier identifier ;) (declaration "ExprList_item *pEVar3;" type_identifier (pointer_declarator "*pEVar3" * identifier) ;) (declaration "int iVar4;" primitive_type identifier ;) (declaration "undefined *puVar5;" type_identifier (pointer_declarator "*puVar5" * identifier) ;) (if_statement "if (pList->nExpr < 1) {\n    return 0;\n  }" if (parenthesized_expression "(pList->nExpr < 1)" ( (binary_expression "pList->nExpr < 1" (field_expression "pList->nExpr" identifier -> field_identifier) < number_literal) )) (compound_statement "{\n    return 0;\n  }" { (return_statement "return 0;" return number_literal ;) })) (expression_statement "iVar1 = -((*(int *)&pList->a[0].sortFlags << 0xd) >> 0x1f);" (assignment_expression "iVar1 = -((*(int *)&pList->a[0].sortFlags << 0xd) >> 0x1f)" identifier = (unary_expression "-((*(int *)&pList->a[0].sortFlags << 0xd) >> 0x1f)" - (parenthesized_expression "((*(int *)&pList->a[0].sortFlags << 0xd) >> 0x1f)" ( (binary_expression "(*(int *)&pList->a[0].sortFlags << 0xd) >> 0x1f" (parenthesized_expression "(*(int *)&pList->a[0].sortFlags << 0xd)" ( (binary_expression "*(int *)&pList->a[0].sortFlags << 0xd" (pointer_expression "*(int *)&pList->a[0].sortFlags" * (cast_expression "(int *)&pList->a[0].sortFlags" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (pointer_expression "&pList->a[0].sortFlags" & (field_expression "pList->a[0].sortFlags" (subscript_expression "pList->a[0]" (field_expression "pList->a" identifier -> field_identifier) [ number_literal ]) . field_identifier)))) << number_literal) )) >> number_literal) )))) ;) (if_statement "if (iVar1 == 0) {\n    do {\n      iVar4 = iVar1 * 0x10 + 0x10;\n      if (iVar1 + 1 == pList->nExpr) {\n        return 0;\n      }\n      pEVar3 = pList[1].a + iVar1;\n      iVar1 = iVar1 + 1;\n    } while (-1 < (int)pEVar3->zEName << 0xd);\n  }\n  else {\n    iVar4 = 0;\n  }" if (parenthesized_expression "(iVar1 == 0)" ( (binary_expression "iVar1 == 0" identifier == number_literal) )) (compound_statement "{\n    do {\n      iVar4 = iVar1 * 0x10 + 0x10;\n      if (iVar1 + 1 == pList->nExpr) {\n        return 0;\n      }\n      pEVar3 = pList[1].a + iVar1;\n      iVar1 = iVar1 + 1;\n    } while (-1 < (int)pEVar3->zEName << 0xd);\n  }" { (do_statement "do {\n      iVar4 = iVar1 * 0x10 + 0x10;\n      if (iVar1 + 1 == pList->nExpr) {\n        return 0;\n      }\n      pEVar3 = pList[1].a + iVar1;\n      iVar1 = iVar1 + 1;\n    } while (-1 < (int)pEVar3->zEName << 0xd);" do (compound_statement "{\n      iVar4 = iVar1 * 0x10 + 0x10;\n      if (iVar1 + 1 == pList->nExpr) {\n        return 0;\n      }\n      pEVar3 = pList[1].a + iVar1;\n      iVar1 = iVar1 + 1;\n    }" { (expression_statement "iVar4 = iVar1 * 0x10 + 0x10;" (assignment_expression "iVar4 = iVar1 * 0x10 + 0x10" identifier = (binary_expression "iVar1 * 0x10 + 0x10" (binary_expression "iVar1 * 0x10" identifier * number_literal) + number_literal)) ;) (if_statement "if (iVar1 + 1 == pList->nExpr) {\n        return 0;\n      }" if (parenthesized_expression "(iVar1 + 1 == pList->nExpr)" ( (binary_expression "iVar1 + 1 == pList->nExpr" (binary_expression "iVar1 + 1" identifier + number_literal) == (field_expression "pList->nExpr" identifier -> field_identifier)) )) (compound_statement "{\n        return 0;\n      }" { (return_statement "return 0;" return number_literal ;) })) (expression_statement "pEVar3 = pList[1].a + iVar1;" (assignment_expression "pEVar3 = pList[1].a + iVar1" identifier = (binary_expression "pList[1].a + iVar1" (field_expression "pList[1].a" (subscript_expression "pList[1]" identifier [ number_literal ]) . field_identifier) + identifier)) ;) (expression_statement "iVar1 = iVar1 + 1;" (assignment_expression "iVar1 = iVar1 + 1" identifier = (binary_expression "iVar1 + 1" identifier + number_literal)) ;) }) while (parenthesized_expression "(-1 < (int)pEVar3->zEName << 0xd)" ( (binary_expression "-1 < (int)pEVar3->zEName << 0xd" number_literal < (binary_expression "(int)pEVar3->zEName << 0xd" (cast_expression "(int)pEVar3->zEName" ( (type_descriptor "int" primitive_type) ) (field_expression "pEVar3->zEName" identifier -> field_identifier)) << number_literal)) )) ;) }) (else_clause "else {\n    iVar4 = 0;\n  }" else (compound_statement "{\n    iVar4 = 0;\n  }" { (expression_statement "iVar4 = 0;" (assignment_expression "iVar4 = 0" identifier = number_literal) ;) }))) (expression_statement "uVar2 = (&pList->a[0].sortFlags)[iVar4];" (assignment_expression "uVar2 = (&pList->a[0].sortFlags)[iVar4]" identifier = (subscript_expression "(&pList->a[0].sortFlags)[iVar4]" (parenthesized_expression "(&pList->a[0].sortFlags)" ( (pointer_expression "&pList->a[0].sortFlags" & (field_expression "pList->a[0].sortFlags" (subscript_expression "pList->a[0]" (field_expression "pList->a" identifier -> field_identifier) [ number_literal ]) . field_identifier)) )) [ identifier ])) ;) (if_statement "if ((uVar2 == '\0') || (uVar2 == '\x03')) {\n    puVar5 = PTR_LAB_000f52cc + 0x7660;\n  }\n  else {\n    puVar5 = PTR_LAB_000f52cc + 0x7668;\n  }" if (parenthesized_expression "((uVar2 == '\0') || (uVar2 == '\x03'))" ( (binary_expression "(uVar2 == '\0') || (uVar2 == '\x03')" (parenthesized_expression "(uVar2 == '\0')" ( (binary_expression "uVar2 == '\0'" identifier == (char_literal "'\0'" ' escape_sequence ')) )) || (parenthesized_expression "(uVar2 == '\x03')" ( (binary_expression "uVar2 == '\x03'" identifier == (char_literal "'\x03'" ' escape_sequence ')) ))) )) (compound_statement "{\n    puVar5 = PTR_LAB_000f52cc + 0x7660;\n  }" { (expression_statement "puVar5 = PTR_LAB_000f52cc + 0x7660;" (assignment_expression "puVar5 = PTR_LAB_000f52cc + 0x7660" identifier = (binary_expression "PTR_LAB_000f52cc + 0x7660" identifier + number_literal)) ;) }) (else_clause "else {\n    puVar5 = PTR_LAB_000f52cc + 0x7668;\n  }" else (compound_statement "{\n    puVar5 = PTR_LAB_000f52cc + 0x7668;\n  }" { (expression_statement "puVar5 = PTR_LAB_000f52cc + 0x7668;" (assignment_expression "puVar5 = PTR_LAB_000f52cc + 0x7668" identifier = (binary_expression "PTR_LAB_000f52cc + 0x7668" identifier + number_literal)) ;) }))) (expression_statement "sqlite3ErrorMsg(pParse,PTR_LAB_000f52cc + 0x7670,puVar5);" (call_expression "sqlite3ErrorMsg(pParse,PTR_LAB_000f52cc + 0x7670,puVar5)" identifier (argument_list "(pParse,PTR_LAB_000f52cc + 0x7670,puVar5)" ( identifier , (binary_expression "PTR_LAB_000f52cc + 0x7670" identifier + number_literal) , identifier ))) ;) (return_statement "return 1;" return number_literal ;) })))
(translation_unit "undefined4 FUN_0004aefc(undefined4 param_1,int *param_2)\n\n{\n  int iVar1;\n  undefined4 uVar2;\n  undefined *puVar3;\n  \n  if (0 < *param_2) {\n    iVar1 = -((param_2[3] << 0xd) >> 0x1f);\n    if (iVar1 != 0) {\n      uVar2 = FUN_0004af50(param_1,param_2,0);\n      return uVar2;\n    }\n    while( true ) {\n      iVar1 = iVar1 + 1;\n      if (iVar1 == *param_2) break;\n      if (param_2[iVar1 * 4 + 3] << 0xd < 0) {\n        if ((*(char *)(param_2 + iVar1 * 4 + 3) == '\0') ||\n           (*(char *)(param_2 + iVar1 * 4 + 3) == '\x03')) {\n          puVar3 = PTR_LAB_000f52cc + 0x7660;\n        }\n        else {\n          puVar3 = PTR_LAB_000f52cc + 0x7668;\n        }\n        FUN_00049e28(param_1,PTR_LAB_000f52cc + 0x7670,puVar3);\n        return 1;\n      }\n    }\n  }\n  return 0;\n}\n\n" (function_definition "undefined4 FUN_0004aefc(undefined4 param_1,int *param_2)\n\n{\n  int iVar1;\n  undefined4 uVar2;\n  undefined *puVar3;\n  \n  if (0 < *param_2) {\n    iVar1 = -((param_2[3] << 0xd) >> 0x1f);\n    if (iVar1 != 0) {\n      uVar2 = FUN_0004af50(param_1,param_2,0);\n      return uVar2;\n    }\n    while( true ) {\n      iVar1 = iVar1 + 1;\n      if (iVar1 == *param_2) break;\n      if (param_2[iVar1 * 4 + 3] << 0xd < 0) {\n        if ((*(char *)(param_2 + iVar1 * 4 + 3) == '\0') ||\n           (*(char *)(param_2 + iVar1 * 4 + 3) == '\x03')) {\n          puVar3 = PTR_LAB_000f52cc + 0x7660;\n        }\n        else {\n          puVar3 = PTR_LAB_000f52cc + 0x7668;\n        }\n        FUN_00049e28(param_1,PTR_LAB_000f52cc + 0x7670,puVar3);\n        return 1;\n      }\n    }\n  }\n  return 0;\n}" type_identifier (function_declarator "FUN_0004aefc(undefined4 param_1,int *param_2)" identifier (parameter_list "(undefined4 param_1,int *param_2)" ( (parameter_declaration "undefined4 param_1" type_identifier identifier) , (parameter_declaration "int *param_2" primitive_type (pointer_declarator "*param_2" * identifier)) ))) (compound_statement "{\n  int iVar1;\n  undefined4 uVar2;\n  undefined *puVar3;\n  \n  if (0 < *param_2) {\n    iVar1 = -((param_2[3] << 0xd) >> 0x1f);\n    if (iVar1 != 0) {\n      uVar2 = FUN_0004af50(param_1,param_2,0);\n      return uVar2;\n    }\n    while( true ) {\n      iVar1 = iVar1 + 1;\n      if (iVar1 == *param_2) break;\n      if (param_2[iVar1 * 4 + 3] << 0xd < 0) {\n        if ((*(char *)(param_2 + iVar1 * 4 + 3) == '\0') ||\n           (*(char *)(param_2 + iVar1 * 4 + 3) == '\x03')) {\n          puVar3 = PTR_LAB_000f52cc + 0x7660;\n        }\n        else {\n          puVar3 = PTR_LAB_000f52cc + 0x7668;\n        }\n        FUN_00049e28(param_1,PTR_LAB_000f52cc + 0x7670,puVar3);\n        return 1;\n      }\n    }\n  }\n  return 0;\n}" { (declaration "int iVar1;" primitive_type identifier ;) (declaration "undefined4 uVar2;" type_identifier identifier ;) (declaration "undefined *puVar3;" type_identifier (pointer_declarator "*puVar3" * identifier) ;) (if_statement "if (0 < *param_2) {\n    iVar1 = -((param_2[3] << 0xd) >> 0x1f);\n    if (iVar1 != 0) {\n      uVar2 = FUN_0004af50(param_1,param_2,0);\n      return uVar2;\n    }\n    while( true ) {\n      iVar1 = iVar1 + 1;\n      if (iVar1 == *param_2) break;\n      if (param_2[iVar1 * 4 + 3] << 0xd < 0) {\n        if ((*(char *)(param_2 + iVar1 * 4 + 3) == '\0') ||\n           (*(char *)(param_2 + iVar1 * 4 + 3) == '\x03')) {\n          puVar3 = PTR_LAB_000f52cc + 0x7660;\n        }\n        else {\n          puVar3 = PTR_LAB_000f52cc + 0x7668;\n        }\n        FUN_00049e28(param_1,PTR_LAB_000f52cc + 0x7670,puVar3);\n        return 1;\n      }\n    }\n  }" if (parenthesized_expression "(0 < *param_2)" ( (binary_expression "0 < *param_2" number_literal < (pointer_expression "*param_2" * identifier)) )) (compound_statement "{\n    iVar1 = -((param_2[3] << 0xd) >> 0x1f);\n    if (iVar1 != 0) {\n      uVar2 = FUN_0004af50(param_1,param_2,0);\n      return uVar2;\n    }\n    while( true ) {\n      iVar1 = iVar1 + 1;\n      if (iVar1 == *param_2) break;\n      if (param_2[iVar1 * 4 + 3] << 0xd < 0) {\n        if ((*(char *)(param_2 + iVar1 * 4 + 3) == '\0') ||\n           (*(char *)(param_2 + iVar1 * 4 + 3) == '\x03')) {\n          puVar3 = PTR_LAB_000f52cc + 0x7660;\n        }\n        else {\n          puVar3 = PTR_LAB_000f52cc + 0x7668;\n        }\n        FUN_00049e28(param_1,PTR_LAB_000f52cc + 0x7670,puVar3);\n        return 1;\n      }\n    }\n  }" { (expression_statement "iVar1 = -((param_2[3] << 0xd) >> 0x1f);" (assignment_expression "iVar1 = -((param_2[3] << 0xd) >> 0x1f)" identifier = (unary_expression "-((param_2[3] << 0xd) >> 0x1f)" - (parenthesized_expression "((param_2[3] << 0xd) >> 0x1f)" ( (binary_expression "(param_2[3] << 0xd) >> 0x1f" (parenthesized_expression "(param_2[3] << 0xd)" ( (binary_expression "param_2[3] << 0xd" (subscript_expression "param_2[3]" identifier [ number_literal ]) << number_literal) )) >> number_literal) )))) ;) (if_statement "if (iVar1 != 0) {\n      uVar2 = FUN_0004af50(param_1,param_2,0);\n      return uVar2;\n    }" if (parenthesized_expression "(iVar1 != 0)" ( (binary_expression "iVar1 != 0" identifier != number_literal) )) (compound_statement "{\n      uVar2 = FUN_0004af50(param_1,param_2,0);\n      return uVar2;\n    }" { (expression_statement "uVar2 = FUN_0004af50(param_1,param_2,0);" (assignment_expression "uVar2 = FUN_0004af50(param_1,param_2,0)" identifier = (call_expression "FUN_0004af50(param_1,param_2,0)" identifier (argument_list "(param_1,param_2,0)" ( identifier , identifier , number_literal )))) ;) (return_statement "return uVar2;" return identifier ;) })) (while_statement "while( true ) {\n      iVar1 = iVar1 + 1;\n      if (iVar1 == *param_2) break;\n      if (param_2[iVar1 * 4 + 3] << 0xd < 0) {\n        if ((*(char *)(param_2 + iVar1 * 4 + 3) == '\0') ||\n           (*(char *)(param_2 + iVar1 * 4 + 3) == '\x03')) {\n          puVar3 = PTR_LAB_000f52cc + 0x7660;\n        }\n        else {\n          puVar3 = PTR_LAB_000f52cc + 0x7668;\n        }\n        FUN_00049e28(param_1,PTR_LAB_000f52cc + 0x7670,puVar3);\n        return 1;\n      }\n    }" while (parenthesized_expression "( true )" ( true )) (compound_statement "{\n      iVar1 = iVar1 + 1;\n      if (iVar1 == *param_2) break;\n      if (param_2[iVar1 * 4 + 3] << 0xd < 0) {\n        if ((*(char *)(param_2 + iVar1 * 4 + 3) == '\0') ||\n           (*(char *)(param_2 + iVar1 * 4 + 3) == '\x03')) {\n          puVar3 = PTR_LAB_000f52cc + 0x7660;\n        }\n        else {\n          puVar3 = PTR_LAB_000f52cc + 0x7668;\n        }\n        FUN_00049e28(param_1,PTR_LAB_000f52cc + 0x7670,puVar3);\n        return 1;\n      }\n    }" { (expression_statement "iVar1 = iVar1 + 1;" (assignment_expression "iVar1 = iVar1 + 1" identifier = (binary_expression "iVar1 + 1" identifier + number_literal)) ;) (if_statement "if (iVar1 == *param_2) break;" if (parenthesized_expression "(iVar1 == *param_2)" ( (binary_expression "iVar1 == *param_2" identifier == (pointer_expression "*param_2" * identifier)) )) (break_statement "break;" break ;)) (if_statement "if (param_2[iVar1 * 4 + 3] << 0xd < 0) {\n        if ((*(char *)(param_2 + iVar1 * 4 + 3) == '\0') ||\n           (*(char *)(param_2 + iVar1 * 4 + 3) == '\x03')) {\n          puVar3 = PTR_LAB_000f52cc + 0x7660;\n        }\n        else {\n          puVar3 = PTR_LAB_000f52cc + 0x7668;\n        }\n        FUN_00049e28(param_1,PTR_LAB_000f52cc + 0x7670,puVar3);\n        return 1;\n      }" if (parenthesized_expression "(param_2[iVar1 * 4 + 3] << 0xd < 0)" ( (binary_expression "param_2[iVar1 * 4 + 3] << 0xd < 0" (binary_expression "param_2[iVar1 * 4 + 3] << 0xd" (subscript_expression "param_2[iVar1 * 4 + 3]" identifier [ (binary_expression "iVar1 * 4 + 3" (binary_expression "iVar1 * 4" identifier * number_literal) + number_literal) ]) << number_literal) < number_literal) )) (compound_statement "{\n        if ((*(char *)(param_2 + iVar1 * 4 + 3) == '\0') ||\n           (*(char *)(param_2 + iVar1 * 4 + 3) == '\x03')) {\n          puVar3 = PTR_LAB_000f52cc + 0x7660;\n        }\n        else {\n          puVar3 = PTR_LAB_000f52cc + 0x7668;\n        }\n        FUN_00049e28(param_1,PTR_LAB_000f52cc + 0x7670,puVar3);\n        return 1;\n      }" { (if_statement "if ((*(char *)(param_2 + iVar1 * 4 + 3) == '\0') ||\n           (*(char *)(param_2 + iVar1 * 4 + 3) == '\x03')) {\n          puVar3 = PTR_LAB_000f52cc + 0x7660;\n        }\n        else {\n          puVar3 = PTR_LAB_000f52cc + 0x7668;\n        }" if (parenthesized_expression "((*(char *)(param_2 + iVar1 * 4 + 3) == '\0') ||\n           (*(char *)(param_2 + iVar1 * 4 + 3) == '\x03'))" ( (binary_expression "(*(char *)(param_2 + iVar1 * 4 + 3) == '\0') ||\n           (*(char *)(param_2 + iVar1 * 4 + 3) == '\x03')" (parenthesized_expression "(*(char *)(param_2 + iVar1 * 4 + 3) == '\0')" ( (binary_expression "*(char *)(param_2 + iVar1 * 4 + 3) == '\0'" (pointer_expression "*(char *)(param_2 + iVar1 * 4 + 3)" * (cast_expression "(char *)(param_2 + iVar1 * 4 + 3)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_2 + iVar1 * 4 + 3)" ( (binary_expression "param_2 + iVar1 * 4 + 3" (binary_expression "param_2 + iVar1 * 4" identifier + (binary_expression "iVar1 * 4" identifier * number_literal)) + number_literal) )))) == (char_literal "'\0'" ' escape_sequence ')) )) || (parenthesized_expression "(*(char *)(param_2 + iVar1 * 4 + 3) == '\x03')" ( (binary_expression "*(char *)(param_2 + iVar1 * 4 + 3) == '\x03'" (pointer_expression "*(char *)(param_2 + iVar1 * 4 + 3)" * (cast_expression "(char *)(param_2 + iVar1 * 4 + 3)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_2 + iVar1 * 4 + 3)" ( (binary_expression "param_2 + iVar1 * 4 + 3" (binary_expression "param_2 + iVar1 * 4" identifier + (binary_expression "iVar1 * 4" identifier * number_literal)) + number_literal) )))) == (char_literal "'\x03'" ' escape_sequence ')) ))) )) (compound_statement "{\n          puVar3 = PTR_LAB_000f52cc + 0x7660;\n        }" { (expression_statement "puVar3 = PTR_LAB_000f52cc + 0x7660;" (assignment_expression "puVar3 = PTR_LAB_000f52cc + 0x7660" identifier = (binary_expression "PTR_LAB_000f52cc + 0x7660" identifier + number_literal)) ;) }) (else_clause "else {\n          puVar3 = PTR_LAB_000f52cc + 0x7668;\n        }" else (compound_statement "{\n          puVar3 = PTR_LAB_000f52cc + 0x7668;\n        }" { (expression_statement "puVar3 = PTR_LAB_000f52cc + 0x7668;" (assignment_expression "puVar3 = PTR_LAB_000f52cc + 0x7668" identifier = (binary_expression "PTR_LAB_000f52cc + 0x7668" identifier + number_literal)) ;) }))) (expression_statement "FUN_00049e28(param_1,PTR_LAB_000f52cc + 0x7670,puVar3);" (call_expression "FUN_00049e28(param_1,PTR_LAB_000f52cc + 0x7670,puVar3)" identifier (argument_list "(param_1,PTR_LAB_000f52cc + 0x7670,puVar3)" ( identifier , (binary_expression "PTR_LAB_000f52cc + 0x7670" identifier + number_literal) , identifier ))) ;) (return_statement "return 1;" return number_literal ;) })) })) })) (return_statement "return 0;" return number_literal ;) })))
(translation_unit (function_definition TYPE (function_declarator IDENT (parameter_list ( (parameter_declaration TYPE IDENT) , (parameter_declaration TYPE (pointer_declarator * IDENT)) ))) (compound_statement { (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE (pointer_declarator * IDENT) ;) (if_statement if (parenthesized_expression ( (binary_expression LIT < (pointer_expression * IDENT)) )) (compound_statement { (expression_statement (assignment_expression IDENT = (unary_expression - (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression (subscript_expression IDENT [ LIT ]) << LIT) )) >> LIT) )))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT != LIT) )) (compound_statement { (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( IDENT , IDENT , LIT )))) ;) (return_statement return IDENT ;) })) (while_statement while (parenthesized_expression ( BOOL )) (compound_statement { (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT == (pointer_expression * IDENT)) )) (break_statement break ;)) (if_statement if (parenthesized_expression ( (binary_expression (binary_expression (subscript_expression IDENT [ (binary_expression (binary_expression IDENT * LIT) + LIT) ]) << LIT) < LIT) )) (compound_statement { (if_statement if (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression (binary_expression IDENT + (binary_expression IDENT * LIT)) + LIT) )))) == (char_literal ' escape_sequence ')) )) || (parenthesized_expression ( (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression (binary_expression IDENT + (binary_expression IDENT * LIT)) + LIT) )))) == (char_literal ' escape_sequence ')) ))) )) (compound_statement { (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) }) (else_clause else (compound_statement { (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) }))) (expression_statement (call_expression IDENT (argument_list ( IDENT , (binary_expression IDENT + LIT) , IDENT ))) ;) (return_statement return LIT ;) })) })) })) (return_statement return LIT ;) })))
(function_definition "undefined4 FUN_0004aefc(undefined4 param_1,int *param_2)\n\n{\n  int iVar1;\n  undefined4 uVar2;\n  undefined *puVar3;\n  \n  if (0 < *param_2) {\n    iVar1 = -((param_2[3] << 0xd) >> 0x1f);\n    if (iVar1 != 0) {\n      uVar2 = FUN_0004af50(param_1,param_2,0);\n      return uVar2;\n    }\n    while( true ) {\n      iVar1 = iVar1 + 1;\n      if (iVar1 == *param_2) break;\n      if (param_2[iVar1 * 4 + 3] << 0xd < 0) {\n        if ((*(char *)(param_2 + iVar1 * 4 + 3) == '\0') ||\n           (*(char *)(param_2 + iVar1 * 4 + 3) == '\x03')) {\n          puVar3 = PTR_LAB_000f52cc + 0x7660;\n        }\n        else {\n          puVar3 = PTR_LAB_000f52cc + 0x7668;\n        }\n        FUN_00049e28(param_1,PTR_LAB_000f52cc + 0x7670,puVar3);\n        return 1;\n      }\n    }\n  }\n  return 0;\n}" (type_identifier "undefined4") (function_declarator "FUN_0004aefc(undefined4 param_1,int *param_2)" (identifier "FUN_0004aefc") (parameter_list "(undefined4 param_1,int *param_2)" (( "(") (parameter_declaration "undefined4 param_1" (type_identifier "undefined4") (identifier "param_1")) (, ",") (parameter_declaration "int *param_2" (primitive_type "int") (pointer_declarator "*param_2" (* "*") (identifier "param_2"))) () ")"))) (compound_statement "{\n  int iVar1;\n  undefined4 uVar2;\n  undefined *puVar3;\n  \n  if (0 < *param_2) {\n    iVar1 = -((param_2[3] << 0xd) >> 0x1f);\n    if (iVar1 != 0) {\n      uVar2 = FUN_0004af50(param_1,param_2,0);\n      return uVar2;\n    }\n    while( true ) {\n      iVar1 = iVar1 + 1;\n      if (iVar1 == *param_2) break;\n      if (param_2[iVar1 * 4 + 3] << 0xd < 0) {\n        if ((*(char *)(param_2 + iVar1 * 4 + 3) == '\0') ||\n           (*(char *)(param_2 + iVar1 * 4 + 3) == '\x03')) {\n          puVar3 = PTR_LAB_000f52cc + 0x7660;\n        }\n        else {\n          puVar3 = PTR_LAB_000f52cc + 0x7668;\n        }\n        FUN_00049e28(param_1,PTR_LAB_000f52cc + 0x7670,puVar3);\n        return 1;\n      }\n    }\n  }\n  return 0;\n}" ({ "{") (declaration "int iVar1;" (primitive_type "int") (identifier "iVar1") (; ";")) (declaration "undefined4 uVar2;" (type_identifier "undefined4") (identifier "uVar2") (; ";")) (declaration "undefined *puVar3;" (type_identifier "undefined") (pointer_declarator "*puVar3" (* "*") (identifier "puVar3")) (; ";")) (if_statement "if (0 < *param_2) {\n    iVar1 = -((param_2[3] << 0xd) >> 0x1f);\n    if (iVar1 != 0) {\n      uVar2 = FUN_0004af50(param_1,param_2,0);\n      return uVar2;\n    }\n    while( true ) {\n      iVar1 = iVar1 + 1;\n      if (iVar1 == *param_2) break;\n      if (param_2[iVar1 * 4 + 3] << 0xd < 0) {\n        if ((*(char *)(param_2 + iVar1 * 4 + 3) == '\0') ||\n           (*(char *)(param_2 + iVar1 * 4 + 3) == '\x03')) {\n          puVar3 = PTR_LAB_000f52cc + 0x7660;\n        }\n        else {\n          puVar3 = PTR_LAB_000f52cc + 0x7668;\n        }\n        FUN_00049e28(param_1,PTR_LAB_000f52cc + 0x7670,puVar3);\n        return 1;\n      }\n    }\n  }" (if "if") (parenthesized_expression "(0 < *param_2)" (( "(") (binary_expression "0 < *param_2" (number_literal "0") (< "<") (pointer_expression "*param_2" (* "*") (identifier "param_2"))) () ")")) (compound_statement "{\n    iVar1 = -((param_2[3] << 0xd) >> 0x1f);\n    if (iVar1 != 0) {\n      uVar2 = FUN_0004af50(param_1,param_2,0);\n      return uVar2;\n    }\n    while( true ) {\n      iVar1 = iVar1 + 1;\n      if (iVar1 == *param_2) break;\n      if (param_2[iVar1 * 4 + 3] << 0xd < 0) {\n        if ((*(char *)(param_2 + iVar1 * 4 + 3) == '\0') ||\n           (*(char *)(param_2 + iVar1 * 4 + 3) == '\x03')) {\n          puVar3 = PTR_LAB_000f52cc + 0x7660;\n        }\n        else {\n          puVar3 = PTR_LAB_000f52cc + 0x7668;\n        }\n        FUN_00049e28(param_1,PTR_LAB_000f52cc + 0x7670,puVar3);\n        return 1;\n      }\n    }\n  }" ({ "{") (expression_statement "iVar1 = -((param_2[3] << 0xd) >> 0x1f);" (assignment_expression "iVar1 = -((param_2[3] << 0xd) >> 0x1f)" (identifier "iVar1") (= "=") (unary_expression "-((param_2[3] << 0xd) >> 0x1f)" (- "-") (parenthesized_expression "((param_2[3] << 0xd) >> 0x1f)" (( "(") (binary_expression "(param_2[3] << 0xd) >> 0x1f" (parenthesized_expression "(param_2[3] << 0xd)" (( "(") (binary_expression "param_2[3] << 0xd" (subscript_expression "param_2[3]" (identifier "param_2") ([ "[") (number_literal "3") (] "]")) (<< "<<") (number_literal "0xd")) () ")")) (>> ">>") (number_literal "0x1f")) () ")")))) (; ";")) (if_statement "if (iVar1 != 0) {\n      uVar2 = FUN_0004af50(param_1,param_2,0);\n      return uVar2;\n    }" (if "if") (parenthesized_expression "(iVar1 != 0)" (( "(") (binary_expression "iVar1 != 0" (identifier "iVar1") (!= "!=") (number_literal "0")) () ")")) (compound_statement "{\n      uVar2 = FUN_0004af50(param_1,param_2,0);\n      return uVar2;\n    }" ({ "{") (expression_statement "uVar2 = FUN_0004af50(param_1,param_2,0);" (assignment_expression "uVar2 = FUN_0004af50(param_1,param_2,0)" (identifier "uVar2") (= "=") (call_expression "FUN_0004af50(param_1,param_2,0)" (identifier "FUN_0004af50") (argument_list "(param_1,param_2,0)" (( "(") (identifier "param_1") (, ",") (identifier "param_2") (, ",") (number_literal "0") () ")")))) (; ";")) (return_statement "return uVar2;" (return "return") (identifier "uVar2") (; ";")) (} "}"))) (while_statement "while( true ) {\n      iVar1 = iVar1 + 1;\n      if (iVar1 == *param_2) break;\n      if (param_2[iVar1 * 4 + 3] << 0xd < 0) {\n        if ((*(char *)(param_2 + iVar1 * 4 + 3) == '\0') ||\n           (*(char *)(param_2 + iVar1 * 4 + 3) == '\x03')) {\n          puVar3 = PTR_LAB_000f52cc + 0x7660;\n        }\n        else {\n          puVar3 = PTR_LAB_000f52cc + 0x7668;\n        }\n        FUN_00049e28(param_1,PTR_LAB_000f52cc + 0x7670,puVar3);\n        return 1;\n      }\n    }" (while "while") (parenthesized_expression "( true )" (( "(") (true "true") () ")")) (compound_statement "{\n      iVar1 = iVar1 + 1;\n      if (iVar1 == *param_2) break;\n      if (param_2[iVar1 * 4 + 3] << 0xd < 0) {\n        if ((*(char *)(param_2 + iVar1 * 4 + 3) == '\0') ||\n           (*(char *)(param_2 + iVar1 * 4 + 3) == '\x03')) {\n          puVar3 = PTR_LAB_000f52cc + 0x7660;\n        }\n        else {\n          puVar3 = PTR_LAB_000f52cc + 0x7668;\n        }\n        FUN_00049e28(param_1,PTR_LAB_000f52cc + 0x7670,puVar3);\n        return 1;\n      }\n    }" ({ "{") (expression_statement "iVar1 = iVar1 + 1;" (assignment_expression "iVar1 = iVar1 + 1" (identifier "iVar1") (= "=") (binary_expression "iVar1 + 1" (identifier "iVar1") (+ "+") (number_literal "1"))) (; ";")) (if_statement "if (iVar1 == *param_2) break;" (if "if") (parenthesized_expression "(iVar1 == *param_2)" (( "(") (binary_expression "iVar1 == *param_2" (identifier "iVar1") (== "==") (pointer_expression "*param_2" (* "*") (identifier "param_2"))) () ")")) (break_statement "break;" (break "break") (; ";"))) (if_statement "if (param_2[iVar1 * 4 + 3] << 0xd < 0) {\n        if ((*(char *)(param_2 + iVar1 * 4 + 3) == '\0') ||\n           (*(char *)(param_2 + iVar1 * 4 + 3) == '\x03')) {\n          puVar3 = PTR_LAB_000f52cc + 0x7660;\n        }\n        else {\n          puVar3 = PTR_LAB_000f52cc + 0x7668;\n        }\n        FUN_00049e28(param_1,PTR_LAB_000f52cc + 0x7670,puVar3);\n        return 1;\n      }" (if "if") (parenthesized_expression "(param_2[iVar1 * 4 + 3] << 0xd < 0)" (( "(") (binary_expression "param_2[iVar1 * 4 + 3] << 0xd < 0" (binary_expression "param_2[iVar1 * 4 + 3] << 0xd" (subscript_expression "param_2[iVar1 * 4 + 3]" (identifier "param_2") ([ "[") (binary_expression "iVar1 * 4 + 3" (binary_expression "iVar1 * 4" (identifier "iVar1") (* "*") (number_literal "4")) (+ "+") (number_literal "3")) (] "]")) (<< "<<") (number_literal "0xd")) (< "<") (number_literal "0")) () ")")) (compound_statement "{\n        if ((*(char *)(param_2 + iVar1 * 4 + 3) == '\0') ||\n           (*(char *)(param_2 + iVar1 * 4 + 3) == '\x03')) {\n          puVar3 = PTR_LAB_000f52cc + 0x7660;\n        }\n        else {\n          puVar3 = PTR_LAB_000f52cc + 0x7668;\n        }\n        FUN_00049e28(param_1,PTR_LAB_000f52cc + 0x7670,puVar3);\n        return 1;\n      }" ({ "{") (if_statement "if ((*(char *)(param_2 + iVar1 * 4 + 3) == '\0') ||\n           (*(char *)(param_2 + iVar1 * 4 + 3) == '\x03')) {\n          puVar3 = PTR_LAB_000f52cc + 0x7660;\n        }\n        else {\n          puVar3 = PTR_LAB_000f52cc + 0x7668;\n        }" (if "if") (parenthesized_expression "((*(char *)(param_2 + iVar1 * 4 + 3) == '\0') ||\n           (*(char *)(param_2 + iVar1 * 4 + 3) == '\x03'))" (( "(") (binary_expression "(*(char *)(param_2 + iVar1 * 4 + 3) == '\0') ||\n           (*(char *)(param_2 + iVar1 * 4 + 3) == '\x03')" (parenthesized_expression "(*(char *)(param_2 + iVar1 * 4 + 3) == '\0')" (( "(") (binary_expression "*(char *)(param_2 + iVar1 * 4 + 3) == '\0'" (pointer_expression "*(char *)(param_2 + iVar1 * 4 + 3)" (* "*") (cast_expression "(char *)(param_2 + iVar1 * 4 + 3)" (( "(") (type_descriptor "char *" (primitive_type "char") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_2 + iVar1 * 4 + 3)" (( "(") (binary_expression "param_2 + iVar1 * 4 + 3" (binary_expression "param_2 + iVar1 * 4" (identifier "param_2") (+ "+") (binary_expression "iVar1 * 4" (identifier "iVar1") (* "*") (number_literal "4"))) (+ "+") (number_literal "3")) () ")")))) (== "==") (char_literal "'\0'" (' "'") (escape_sequence "\0") (' "'"))) () ")")) (|| "||") (parenthesized_expression "(*(char *)(param_2 + iVar1 * 4 + 3) == '\x03')" (( "(") (binary_expression "*(char *)(param_2 + iVar1 * 4 + 3) == '\x03'" (pointer_expression "*(char *)(param_2 + iVar1 * 4 + 3)" (* "*") (cast_expression "(char *)(param_2 + iVar1 * 4 + 3)" (( "(") (type_descriptor "char *" (primitive_type "char") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_2 + iVar1 * 4 + 3)" (( "(") (binary_expression "param_2 + iVar1 * 4 + 3" (binary_expression "param_2 + iVar1 * 4" (identifier "param_2") (+ "+") (binary_expression "iVar1 * 4" (identifier "iVar1") (* "*") (number_literal "4"))) (+ "+") (number_literal "3")) () ")")))) (== "==") (char_literal "'\x03'" (' "'") (escape_sequence "\x03") (' "'"))) () ")"))) () ")")) (compound_statement "{\n          puVar3 = PTR_LAB_000f52cc + 0x7660;\n        }" ({ "{") (expression_statement "puVar3 = PTR_LAB_000f52cc + 0x7660;" (assignment_expression "puVar3 = PTR_LAB_000f52cc + 0x7660" (identifier "puVar3") (= "=") (binary_expression "PTR_LAB_000f52cc + 0x7660" (identifier "PTR_LAB_000f52cc") (+ "+") (number_literal "0x7660"))) (; ";")) (} "}")) (else_clause "else {\n          puVar3 = PTR_LAB_000f52cc + 0x7668;\n        }" (else "else") (compound_statement "{\n          puVar3 = PTR_LAB_000f52cc + 0x7668;\n        }" ({ "{") (expression_statement "puVar3 = PTR_LAB_000f52cc + 0x7668;" (assignment_expression "puVar3 = PTR_LAB_000f52cc + 0x7668" (identifier "puVar3") (= "=") (binary_expression "PTR_LAB_000f52cc + 0x7668" (identifier "PTR_LAB_000f52cc") (+ "+") (number_literal "0x7668"))) (; ";")) (} "}")))) (expression_statement "FUN_00049e28(param_1,PTR_LAB_000f52cc + 0x7670,puVar3);" (call_expression "FUN_00049e28(param_1,PTR_LAB_000f52cc + 0x7670,puVar3)" (identifier "FUN_00049e28") (argument_list "(param_1,PTR_LAB_000f52cc + 0x7670,puVar3)" (( "(") (identifier "param_1") (, ",") (binary_expression "PTR_LAB_000f52cc + 0x7670" (identifier "PTR_LAB_000f52cc") (+ "+") (number_literal "0x7670")) (, ",") (identifier "puVar3") () ")"))) (; ";")) (return_statement "return 1;" (return "return") (number_literal "1") (; ";")) (} "}"))) (} "}"))) (} "}"))) (return_statement "return 0;" (return "return") (number_literal "0") (; ";")) (} "}")))
(translation_unit (function_definition type: (type_identifier) declarator: (function_declarator declarator: (identifier) parameters: (parameter_list (parameter_declaration type: (type_identifier) declarator: (identifier)) (parameter_declaration type: (primitive_type) declarator: (pointer_declarator declarator: (identifier))))) body: (compound_statement (declaration type: (primitive_type) declarator: (identifier)) (declaration type: (type_identifier) declarator: (identifier)) (declaration type: (type_identifier) declarator: (pointer_declarator declarator: (identifier))) (if_statement condition: (parenthesized_expression (binary_expression left: (number_literal) right: (pointer_expression argument: (identifier)))) consequence: (compound_statement (expression_statement (assignment_expression left: (identifier) right: (unary_expression argument: (parenthesized_expression (binary_expression left: (parenthesized_expression (binary_expression left: (subscript_expression argument: (identifier) index: (number_literal)) right: (number_literal))) right: (number_literal)))))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))) consequence: (compound_statement (expression_statement (assignment_expression left: (identifier) right: (call_expression function: (identifier) arguments: (argument_list (identifier) (identifier) (number_literal))))) (return_statement (identifier)))) (while_statement condition: (parenthesized_expression (true)) body: (compound_statement (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (identifier) right: (number_literal)))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (pointer_expression argument: (identifier)))) consequence: (break_statement)) (if_statement condition: (parenthesized_expression (binary_expression left: (binary_expression left: (subscript_expression argument: (identifier) index: (binary_expression left: (binary_expression left: (identifier) right: (number_literal)) right: (number_literal))) right: (number_literal)) right: (number_literal))) consequence: (compound_statement (if_statement condition: (parenthesized_expression (binary_expression left: (parenthesized_expression (binary_expression left: (pointer_expression argument: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (binary_expression left: (identifier) right: (binary_expression left: (identifier) right: (number_literal))) right: (number_literal))))) right: (char_literal (escape_sequence)))) right: (parenthesized_expression (binary_expression left: (pointer_expression argument: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (binary_expression left: (identifier) right: (binary_expression left: (identifier) right: (number_literal))) right: (number_literal))))) right: (char_literal (escape_sequence)))))) consequence: (compound_statement (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (identifier) right: (number_literal))))) alternative: (else_clause (compound_statement (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (identifier) right: (number_literal))))))) (expression_statement (call_expression function: (identifier) arguments: (argument_list (identifier) (binary_expression left: (identifier) right: (number_literal)) (identifier)))) (return_statement (number_literal)))))))) (return_statement (number_literal)))))

undefined4 MASKED(undefined4 param_1,int *param_2)

{
  int iVar1;
  undefined4 uVar2;
  undefined *puVar3;
  
  if (0 < *param_2) {
    iVar1 = -((param_2[3] << 0xd) >> 0x1f);
    if (iVar1 != 0) {
      uVar2 = FUN_0004af50(param_1,param_2,0);
      return uVar2;
    }
    while( true ) {
      iVar1 = iVar1 + 1;
      if (iVar1 == *param_2) break;
      if (param_2[iVar1 * 4 + 3] << 0xd < 0) {
        if ((*(char *)(param_2 + iVar1 * 4 + 3) == '\0') ||
           (*(char *)(param_2 + iVar1 * 4 + 3) == '\x03')) {
          puVar3 = PTR_LAB_000f52cc + 0x7660;
        }
        else {
          puVar3 = PTR_LAB_000f52cc + 0x7668;
        }
        FUN_00049e28(param_1,PTR_LAB_000f52cc + 0x7670,puVar3);
        return 1;
      }
    }
  }
  return 0;
}

