
int __regparm2 sqlite3Fts5PoslistWriterAppend(Fts5Buffer *pBuf,Fts5PoslistWriter *pWriter,i64 iPos)

{
  Fts5Buffer *pBuf_1;
  int iVar1;
  int iVar2;
  int in_GS_OFFSET;
  int rc;
  int local_20;
  
  local_20 = *(int *)(in_GS_OFFSET + 0x14);
  rc = 0;
  pBuf_1 = (Fts5Buffer *)(pBuf->n + 0xf);
  if ((pBuf_1 <= (Fts5Buffer *)pBuf->nSpace) ||
     (iVar1 = sqlite3Fts5BufferSize(&rc,pBuf,(u32)&pBuf->nSpace,pBuf_1), iVar2 = rc, iVar1 == 0)) {
    sqlite3Fts5PoslistSafeAppend(pBuf,(i64 *)&pBuf->n,iPos,(Fts5Buffer *)pWriter);
    iVar2 = 0;
  }
  if (local_20 != *(int *)(in_GS_OFFSET + 0x14)) {
                    /* WARNING: Subroutine does not return */
    __stack_chk_fail_local();
  }
  return iVar2;
}



undefined4 __regparm1 FUN_00067ab0(int param_1,undefined4 param_2,undefined4 param_3)

{
  uint uVar1;
  int iVar2;
  int iVar3;
  int in_GS_OFFSET;
  
  iVar2 = *(int *)(in_GS_OFFSET + 0x14);
  uVar1 = *(int *)(param_1 + 4) + 0xf;
  if ((uVar1 <= *(uint *)(param_1 + 8)) || (iVar3 = FUN_000678b0(uVar1), iVar3 == 0)) {
    FUN_00035090(param_2,param_3);
  }
  if (iVar2 != *(int *)(in_GS_OFFSET + 0x14)) {
                    /* WARNING: Subroutine does not return */
    FUN_000f4bf0();
  }
  return 0;
}


PUSH EBP
MOV EBP,EDX
PUSH EDI
PUSH ESI
PUSH EBX
MOV EBX,EAX
SUB ESP,0x1c
MOV EAX,GS:[0x14]
MOV dword ptr [ESP + 0xc],EAX
XOR EAX,EAX
MOV EAX,dword ptr [EBX + 0x4]
MOV ESI,dword ptr [ESP + 0x30]
MOV dword ptr [ESP + 0x8],0x0
MOV EDI,dword ptr [ESP + 0x34]
LEA EDX,[EAX + 0xf]
CMP EDX,dword ptr [EBX + 0x8]
JBE 0x00067afb
LEA EAX,[ESP + 0x8]
SUB ESP,0xc
LEA ECX,[EBX + 0x8]
PUSH EDX
MOV EDX,EBX
CALL 0x000678b0
ADD ESP,0x10
TEST EAX,EAX
JNZ 0x00067b30
SUB ESP,0x8
MOV EAX,EBX
LEA EDX,[EBX + 0x4]
MOV ECX,EBP
PUSH EDI
PUSH ESI
CALL 0x00035090
ADD ESP,0x10
XOR EAX,EAX
MOV EDI,dword ptr [ESP + 0xc]
XOR EDI,dword ptr GS:[0x14]
JNZ 0x00067b36
ADD ESP,0x1c
POP EBX
POP ESI
POP EDI
POP EBP
RET
MOV EAX,dword ptr [ESP + 0x8]
JMP 0x00067b11
CALL 0x000f4bf0
(translation_unit "undefined4 __regparm1 FUN_00067ab0(int param_1,undefined4 param_2,undefined4 param_3)\n\n{\n  uint uVar1;\n  int iVar2;\n  int iVar3;\n  int in_GS_OFFSET;\n  \n  iVar2 = *(int *)(in_GS_OFFSET + 0x14);\n  uVar1 = *(int *)(param_1 + 4) + 0xf;\n  if ((uVar1 <= *(uint *)(param_1 + 8)) || (iVar3 = FUN_000678b0(uVar1), iVar3 == 0)) {\n    FUN_00035090(param_2,param_3);\n  }\n  if (iVar2 != *(int *)(in_GS_OFFSET + 0x14)) {\n                    /* WARNING: Subroutine does not return */\n    FUN_000f4bf0();\n  }\n  return 0;\n}\n\n" (function_definition "undefined4 __regparm1 FUN_00067ab0(int param_1,undefined4 param_2,undefined4 param_3)\n\n{\n  uint uVar1;\n  int iVar2;\n  int iVar3;\n  int in_GS_OFFSET;\n  \n  iVar2 = *(int *)(in_GS_OFFSET + 0x14);\n  uVar1 = *(int *)(param_1 + 4) + 0xf;\n  if ((uVar1 <= *(uint *)(param_1 + 8)) || (iVar3 = FUN_000678b0(uVar1), iVar3 == 0)) {\n    FUN_00035090(param_2,param_3);\n  }\n  if (iVar2 != *(int *)(in_GS_OFFSET + 0x14)) {\n                    /* WARNING: Subroutine does not return */\n    FUN_000f4bf0();\n  }\n  return 0;\n}" type_identifier (ERROR "__regparm1" identifier) (function_declarator "FUN_00067ab0(int param_1,undefined4 param_2,undefined4 param_3)" identifier (parameter_list "(int param_1,undefined4 param_2,undefined4 param_3)" ( (parameter_declaration "int param_1" primitive_type identifier) , (parameter_declaration "undefined4 param_2" type_identifier identifier) , (parameter_declaration "undefined4 param_3" type_identifier identifier) ))) (compound_statement "{\n  uint uVar1;\n  int iVar2;\n  int iVar3;\n  int in_GS_OFFSET;\n  \n  iVar2 = *(int *)(in_GS_OFFSET + 0x14);\n  uVar1 = *(int *)(param_1 + 4) + 0xf;\n  if ((uVar1 <= *(uint *)(param_1 + 8)) || (iVar3 = FUN_000678b0(uVar1), iVar3 == 0)) {\n    FUN_00035090(param_2,param_3);\n  }\n  if (iVar2 != *(int *)(in_GS_OFFSET + 0x14)) {\n                    /* WARNING: Subroutine does not return */\n    FUN_000f4bf0();\n  }\n  return 0;\n}" { (declaration "uint uVar1;" type_identifier identifier ;) (declaration "int iVar2;" primitive_type identifier ;) (declaration "int iVar3;" primitive_type identifier ;) (declaration "int in_GS_OFFSET;" primitive_type identifier ;) (expression_statement "iVar2 = *(int *)(in_GS_OFFSET + 0x14);" (assignment_expression "iVar2 = *(int *)(in_GS_OFFSET + 0x14)" identifier = (pointer_expression "*(int *)(in_GS_OFFSET + 0x14)" * (cast_expression "(int *)(in_GS_OFFSET + 0x14)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(in_GS_OFFSET + 0x14)" ( (binary_expression "in_GS_OFFSET + 0x14" identifier + number_literal) ))))) ;) (expression_statement "uVar1 = *(int *)(param_1 + 4) + 0xf;" (assignment_expression "uVar1 = *(int *)(param_1 + 4) + 0xf" identifier = (binary_expression "*(int *)(param_1 + 4) + 0xf" (pointer_expression "*(int *)(param_1 + 4)" * (cast_expression "(int *)(param_1 + 4)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 4)" ( (binary_expression "param_1 + 4" identifier + number_literal) )))) + number_literal)) ;) (if_statement "if ((uVar1 <= *(uint *)(param_1 + 8)) || (iVar3 = FUN_000678b0(uVar1), iVar3 == 0)) {\n    FUN_00035090(param_2,param_3);\n  }" if (parenthesized_expression "((uVar1 <= *(uint *)(param_1 + 8)) || (iVar3 = FUN_000678b0(uVar1), iVar3 == 0))" ( (binary_expression "(uVar1 <= *(uint *)(param_1 + 8)) || (iVar3 = FUN_000678b0(uVar1), iVar3 == 0)" (parenthesized_expression "(uVar1 <= *(uint *)(param_1 + 8))" ( (binary_expression "uVar1 <= *(uint *)(param_1 + 8)" identifier <= (pointer_expression "*(uint *)(param_1 + 8)" * (cast_expression "(uint *)(param_1 + 8)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 8)" ( (binary_expression "param_1 + 8" identifier + number_literal) ))))) )) || (parenthesized_expression "(iVar3 = FUN_000678b0(uVar1), iVar3 == 0)" ( (comma_expression "iVar3 = FUN_000678b0(uVar1), iVar3 == 0" (assignment_expression "iVar3 = FUN_000678b0(uVar1)" identifier = (call_expression "FUN_000678b0(uVar1)" identifier (argument_list "(uVar1)" ( identifier )))) , (binary_expression "iVar3 == 0" identifier == number_literal)) ))) )) (compound_statement "{\n    FUN_00035090(param_2,param_3);\n  }" { (expression_statement "FUN_00035090(param_2,param_3);" (call_expression "FUN_00035090(param_2,param_3)" identifier (argument_list "(param_2,param_3)" ( identifier , identifier ))) ;) })) (if_statement "if (iVar2 != *(int *)(in_GS_OFFSET + 0x14)) {\n                    /* WARNING: Subroutine does not return */\n    FUN_000f4bf0();\n  }" if (parenthesized_expression "(iVar2 != *(int *)(in_GS_OFFSET + 0x14))" ( (binary_expression "iVar2 != *(int *)(in_GS_OFFSET + 0x14)" identifier != (pointer_expression "*(int *)(in_GS_OFFSET + 0x14)" * (cast_expression "(int *)(in_GS_OFFSET + 0x14)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(in_GS_OFFSET + 0x14)" ( (binary_expression "in_GS_OFFSET + 0x14" identifier + number_literal) ))))) )) (compound_statement "{\n                    /* WARNING: Subroutine does not return */\n    FUN_000f4bf0();\n  }" { comment (expression_statement "FUN_000f4bf0();" (call_expression "FUN_000f4bf0()" identifier (argument_list "()" ( ))) ;) })) (return_statement "return 0;" return number_literal ;) })))
(translation_unit "int __regparm2 sqlite3Fts5PoslistWriterAppend(Fts5Buffer *pBuf,Fts5PoslistWriter *pWriter,i64 iPos)\n\n{\n  Fts5Buffer *pBuf_1;\n  int iVar1;\n  int iVar2;\n  int in_GS_OFFSET;\n  int rc;\n  int local_20;\n  \n  local_20 = *(int *)(in_GS_OFFSET + 0x14);\n  rc = 0;\n  pBuf_1 = (Fts5Buffer *)(pBuf->n + 0xf);\n  if ((pBuf_1 <= (Fts5Buffer *)pBuf->nSpace) ||\n     (iVar1 = sqlite3Fts5BufferSize(&rc,pBuf,(u32)&pBuf->nSpace,pBuf_1), iVar2 = rc, iVar1 == 0)) {\n    sqlite3Fts5PoslistSafeAppend(pBuf,(i64 *)&pBuf->n,iPos,(Fts5Buffer *)pWriter);\n    iVar2 = 0;\n  }\n  if (local_20 != *(int *)(in_GS_OFFSET + 0x14)) {\n                    /* WARNING: Subroutine does not return */\n    __stack_chk_fail_local();\n  }\n  return iVar2;\n}\n\n" (function_definition "int __regparm2 sqlite3Fts5PoslistWriterAppend(Fts5Buffer *pBuf,Fts5PoslistWriter *pWriter,i64 iPos)\n\n{\n  Fts5Buffer *pBuf_1;\n  int iVar1;\n  int iVar2;\n  int in_GS_OFFSET;\n  int rc;\n  int local_20;\n  \n  local_20 = *(int *)(in_GS_OFFSET + 0x14);\n  rc = 0;\n  pBuf_1 = (Fts5Buffer *)(pBuf->n + 0xf);\n  if ((pBuf_1 <= (Fts5Buffer *)pBuf->nSpace) ||\n     (iVar1 = sqlite3Fts5BufferSize(&rc,pBuf,(u32)&pBuf->nSpace,pBuf_1), iVar2 = rc, iVar1 == 0)) {\n    sqlite3Fts5PoslistSafeAppend(pBuf,(i64 *)&pBuf->n,iPos,(Fts5Buffer *)pWriter);\n    iVar2 = 0;\n  }\n  if (local_20 != *(int *)(in_GS_OFFSET + 0x14)) {\n                    /* WARNING: Subroutine does not return */\n    __stack_chk_fail_local();\n  }\n  return iVar2;\n}" primitive_type (ERROR "__regparm2" identifier) (function_declarator "sqlite3Fts5PoslistWriterAppend(Fts5Buffer *pBuf,Fts5PoslistWriter *pWriter,i64 iPos)" identifier (parameter_list "(Fts5Buffer *pBuf,Fts5PoslistWriter *pWriter,i64 iPos)" ( (parameter_declaration "Fts5Buffer *pBuf" type_identifier (pointer_declarator "*pBuf" * identifier)) , (parameter_declaration "Fts5PoslistWriter *pWriter" type_identifier (pointer_declarator "*pWriter" * identifier)) , (parameter_declaration "i64 iPos" type_identifier identifier) ))) (compound_statement "{\n  Fts5Buffer *pBuf_1;\n  int iVar1;\n  int iVar2;\n  int in_GS_OFFSET;\n  int rc;\n  int local_20;\n  \n  local_20 = *(int *)(in_GS_OFFSET + 0x14);\n  rc = 0;\n  pBuf_1 = (Fts5Buffer *)(pBuf->n + 0xf);\n  if ((pBuf_1 <= (Fts5Buffer *)pBuf->nSpace) ||\n     (iVar1 = sqlite3Fts5BufferSize(&rc,pBuf,(u32)&pBuf->nSpace,pBuf_1), iVar2 = rc, iVar1 == 0)) {\n    sqlite3Fts5PoslistSafeAppend(pBuf,(i64 *)&pBuf->n,iPos,(Fts5Buffer *)pWriter);\n    iVar2 = 0;\n  }\n  if (local_20 != *(int *)(in_GS_OFFSET + 0x14)) {\n                    /* WARNING: Subroutine does not return */\n    __stack_chk_fail_local();\n  }\n  return iVar2;\n}" { (declaration "Fts5Buffer *pBuf_1;" type_identifier (pointer_declarator "*pBuf_1" * identifier) ;) (declaration "int iVar1;" primitive_type identifier ;) (declaration "int iVar2;" primitive_type identifier ;) (declaration "int in_GS_OFFSET;" primitive_type identifier ;) (declaration "int rc;" primitive_type identifier ;) (declaration "int local_20;" primitive_type identifier ;) (expression_statement "local_20 = *(int *)(in_GS_OFFSET + 0x14);" (assignment_expression "local_20 = *(int *)(in_GS_OFFSET + 0x14)" identifier = (pointer_expression "*(int *)(in_GS_OFFSET + 0x14)" * (cast_expression "(int *)(in_GS_OFFSET + 0x14)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(in_GS_OFFSET + 0x14)" ( (binary_expression "in_GS_OFFSET + 0x14" identifier + number_literal) ))))) ;) (expression_statement "rc = 0;" (assignment_expression "rc = 0" identifier = number_literal) ;) (expression_statement "pBuf_1 = (Fts5Buffer *)(pBuf->n + 0xf);" (assignment_expression "pBuf_1 = (Fts5Buffer *)(pBuf->n + 0xf)" identifier = (cast_expression "(Fts5Buffer *)(pBuf->n + 0xf)" ( (type_descriptor "Fts5Buffer *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(pBuf->n + 0xf)" ( (binary_expression "pBuf->n + 0xf" (field_expression "pBuf->n" identifier -> field_identifier) + number_literal) )))) ;) (if_statement "if ((pBuf_1 <= (Fts5Buffer *)pBuf->nSpace) ||\n     (iVar1 = sqlite3Fts5BufferSize(&rc,pBuf,(u32)&pBuf->nSpace,pBuf_1), iVar2 = rc, iVar1 == 0)) {\n    sqlite3Fts5PoslistSafeAppend(pBuf,(i64 *)&pBuf->n,iPos,(Fts5Buffer *)pWriter);\n    iVar2 = 0;\n  }" if (parenthesized_expression "((pBuf_1 <= (Fts5Buffer *)pBuf->nSpace) ||\n     (iVar1 = sqlite3Fts5BufferSize(&rc,pBuf,(u32)&pBuf->nSpace,pBuf_1), iVar2 = rc, iVar1 == 0))" ( (binary_expression "(pBuf_1 <= (Fts5Buffer *)pBuf->nSpace) ||\n     (iVar1 = sqlite3Fts5BufferSize(&rc,pBuf,(u32)&pBuf->nSpace,pBuf_1), iVar2 = rc, iVar1 == 0)" (parenthesized_expression "(pBuf_1 <= (Fts5Buffer *)pBuf->nSpace)" ( (binary_expression "pBuf_1 <= (Fts5Buffer *)pBuf->nSpace" identifier <= (cast_expression "(Fts5Buffer *)pBuf->nSpace" ( (type_descriptor "Fts5Buffer *" type_identifier (abstract_pointer_declarator "*" *)) ) (field_expression "pBuf->nSpace" identifier -> field_identifier))) )) || (parenthesized_expression "(iVar1 = sqlite3Fts5BufferSize(&rc,pBuf,(u32)&pBuf->nSpace,pBuf_1), iVar2 = rc, iVar1 == 0)" ( (comma_expression "iVar1 = sqlite3Fts5BufferSize(&rc,pBuf,(u32)&pBuf->nSpace,pBuf_1), iVar2 = rc, iVar1 == 0" (assignment_expression "iVar1 = sqlite3Fts5BufferSize(&rc,pBuf,(u32)&pBuf->nSpace,pBuf_1)" identifier = (call_expression "sqlite3Fts5BufferSize(&rc,pBuf,(u32)&pBuf->nSpace,pBuf_1)" identifier (argument_list "(&rc,pBuf,(u32)&pBuf->nSpace,pBuf_1)" ( (pointer_expression "&rc" & identifier) , identifier , (binary_expression "(u32)&pBuf->nSpace" (parenthesized_expression "(u32)" ( identifier )) & (field_expression "pBuf->nSpace" identifier -> field_identifier)) , identifier )))) , (comma_expression "iVar2 = rc, iVar1 == 0" (assignment_expression "iVar2 = rc" identifier = identifier) , (binary_expression "iVar1 == 0" identifier == number_literal))) ))) )) (compound_statement "{\n    sqlite3Fts5PoslistSafeAppend(pBuf,(i64 *)&pBuf->n,iPos,(Fts5Buffer *)pWriter);\n    iVar2 = 0;\n  }" { (expression_statement "sqlite3Fts5PoslistSafeAppend(pBuf,(i64 *)&pBuf->n,iPos,(Fts5Buffer *)pWriter);" (call_expression "sqlite3Fts5PoslistSafeAppend(pBuf,(i64 *)&pBuf->n,iPos,(Fts5Buffer *)pWriter)" identifier (argument_list "(pBuf,(i64 *)&pBuf->n,iPos,(Fts5Buffer *)pWriter)" ( identifier , (cast_expression "(i64 *)&pBuf->n" ( (type_descriptor "i64 *" type_identifier (abstract_pointer_declarator "*" *)) ) (pointer_expression "&pBuf->n" & (field_expression "pBuf->n" identifier -> field_identifier))) , identifier , (cast_expression "(Fts5Buffer *)pWriter" ( (type_descriptor "Fts5Buffer *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier) ))) ;) (expression_statement "iVar2 = 0;" (assignment_expression "iVar2 = 0" identifier = number_literal) ;) })) (if_statement "if (local_20 != *(int *)(in_GS_OFFSET + 0x14)) {\n                    /* WARNING: Subroutine does not return */\n    __stack_chk_fail_local();\n  }" if (parenthesized_expression "(local_20 != *(int *)(in_GS_OFFSET + 0x14))" ( (binary_expression "local_20 != *(int *)(in_GS_OFFSET + 0x14)" identifier != (pointer_expression "*(int *)(in_GS_OFFSET + 0x14)" * (cast_expression "(int *)(in_GS_OFFSET + 0x14)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(in_GS_OFFSET + 0x14)" ( (binary_expression "in_GS_OFFSET + 0x14" identifier + number_literal) ))))) )) (compound_statement "{\n                    /* WARNING: Subroutine does not return */\n    __stack_chk_fail_local();\n  }" { comment (expression_statement "__stack_chk_fail_local();" (call_expression "__stack_chk_fail_local()" identifier (argument_list "()" ( ))) ;) })) (return_statement "return iVar2;" return identifier ;) })))
(translation_unit "undefined4 __regparm1 FUN_00067ab0(int param_1,undefined4 param_2,undefined4 param_3)\n\n{\n  uint uVar1;\n  int iVar2;\n  int iVar3;\n  int in_GS_OFFSET;\n  \n  iVar2 = *(int *)(in_GS_OFFSET + 0x14);\n  uVar1 = *(int *)(param_1 + 4) + 0xf;\n  if ((uVar1 <= *(uint *)(param_1 + 8)) || (iVar3 = FUN_000678b0(uVar1), iVar3 == 0)) {\n    FUN_00035090(param_2,param_3);\n  }\n  if (iVar2 != *(int *)(in_GS_OFFSET + 0x14)) {\n                    \n    FUN_000f4bf0();\n  }\n  return 0;\n}\n\n" (function_definition "undefined4 __regparm1 FUN_00067ab0(int param_1,undefined4 param_2,undefined4 param_3)\n\n{\n  uint uVar1;\n  int iVar2;\n  int iVar3;\n  int in_GS_OFFSET;\n  \n  iVar2 = *(int *)(in_GS_OFFSET + 0x14);\n  uVar1 = *(int *)(param_1 + 4) + 0xf;\n  if ((uVar1 <= *(uint *)(param_1 + 8)) || (iVar3 = FUN_000678b0(uVar1), iVar3 == 0)) {\n    FUN_00035090(param_2,param_3);\n  }\n  if (iVar2 != *(int *)(in_GS_OFFSET + 0x14)) {\n                    \n    FUN_000f4bf0();\n  }\n  return 0;\n}" type_identifier (ERROR "__regparm1" identifier) (function_declarator "FUN_00067ab0(int param_1,undefined4 param_2,undefined4 param_3)" identifier (parameter_list "(int param_1,undefined4 param_2,undefined4 param_3)" ( (parameter_declaration "int param_1" primitive_type identifier) , (parameter_declaration "undefined4 param_2" type_identifier identifier) , (parameter_declaration "undefined4 param_3" type_identifier identifier) ))) (compound_statement "{\n  uint uVar1;\n  int iVar2;\n  int iVar3;\n  int in_GS_OFFSET;\n  \n  iVar2 = *(int *)(in_GS_OFFSET + 0x14);\n  uVar1 = *(int *)(param_1 + 4) + 0xf;\n  if ((uVar1 <= *(uint *)(param_1 + 8)) || (iVar3 = FUN_000678b0(uVar1), iVar3 == 0)) {\n    FUN_00035090(param_2,param_3);\n  }\n  if (iVar2 != *(int *)(in_GS_OFFSET + 0x14)) {\n                    \n    FUN_000f4bf0();\n  }\n  return 0;\n}" { (declaration "uint uVar1;" type_identifier identifier ;) (declaration "int iVar2;" primitive_type identifier ;) (declaration "int iVar3;" primitive_type identifier ;) (declaration "int in_GS_OFFSET;" primitive_type identifier ;) (expression_statement "iVar2 = *(int *)(in_GS_OFFSET + 0x14);" (assignment_expression "iVar2 = *(int *)(in_GS_OFFSET + 0x14)" identifier = (pointer_expression "*(int *)(in_GS_OFFSET + 0x14)" * (cast_expression "(int *)(in_GS_OFFSET + 0x14)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(in_GS_OFFSET + 0x14)" ( (binary_expression "in_GS_OFFSET + 0x14" identifier + number_literal) ))))) ;) (expression_statement "uVar1 = *(int *)(param_1 + 4) + 0xf;" (assignment_expression "uVar1 = *(int *)(param_1 + 4) + 0xf" identifier = (binary_expression "*(int *)(param_1 + 4) + 0xf" (pointer_expression "*(int *)(param_1 + 4)" * (cast_expression "(int *)(param_1 + 4)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 4)" ( (binary_expression "param_1 + 4" identifier + number_literal) )))) + number_literal)) ;) (if_statement "if ((uVar1 <= *(uint *)(param_1 + 8)) || (iVar3 = FUN_000678b0(uVar1), iVar3 == 0)) {\n    FUN_00035090(param_2,param_3);\n  }" if (parenthesized_expression "((uVar1 <= *(uint *)(param_1 + 8)) || (iVar3 = FUN_000678b0(uVar1), iVar3 == 0))" ( (binary_expression "(uVar1 <= *(uint *)(param_1 + 8)) || (iVar3 = FUN_000678b0(uVar1), iVar3 == 0)" (parenthesized_expression "(uVar1 <= *(uint *)(param_1 + 8))" ( (binary_expression "uVar1 <= *(uint *)(param_1 + 8)" identifier <= (pointer_expression "*(uint *)(param_1 + 8)" * (cast_expression "(uint *)(param_1 + 8)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 8)" ( (binary_expression "param_1 + 8" identifier + number_literal) ))))) )) || (parenthesized_expression "(iVar3 = FUN_000678b0(uVar1), iVar3 == 0)" ( (comma_expression "iVar3 = FUN_000678b0(uVar1), iVar3 == 0" (assignment_expression "iVar3 = FUN_000678b0(uVar1)" identifier = (call_expression "FUN_000678b0(uVar1)" identifier (argument_list "(uVar1)" ( identifier )))) , (binary_expression "iVar3 == 0" identifier == number_literal)) ))) )) (compound_statement "{\n    FUN_00035090(param_2,param_3);\n  }" { (expression_statement "FUN_00035090(param_2,param_3);" (call_expression "FUN_00035090(param_2,param_3)" identifier (argument_list "(param_2,param_3)" ( identifier , identifier ))) ;) })) (if_statement "if (iVar2 != *(int *)(in_GS_OFFSET + 0x14)) {\n                    \n    FUN_000f4bf0();\n  }" if (parenthesized_expression "(iVar2 != *(int *)(in_GS_OFFSET + 0x14))" ( (binary_expression "iVar2 != *(int *)(in_GS_OFFSET + 0x14)" identifier != (pointer_expression "*(int *)(in_GS_OFFSET + 0x14)" * (cast_expression "(int *)(in_GS_OFFSET + 0x14)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(in_GS_OFFSET + 0x14)" ( (binary_expression "in_GS_OFFSET + 0x14" identifier + number_literal) ))))) )) (compound_statement "{\n                    \n    FUN_000f4bf0();\n  }" { (expression_statement "FUN_000f4bf0();" (call_expression "FUN_000f4bf0()" identifier (argument_list "()" ( ))) ;) })) (return_statement "return 0;" return number_literal ;) })))
(translation_unit (function_definition TYPE (ERROR IDENT) (function_declarator IDENT (parameter_list ( (parameter_declaration TYPE IDENT) , (parameter_declaration TYPE IDENT) , (parameter_declaration TYPE IDENT) ))) (compound_statement { (declaration TYPE 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 *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) ;) (expression_statement (assignment_expression IDENT = (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) + LIT)) ;) (if_statement if (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression IDENT <= (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) )) || (parenthesized_expression ( (comma_expression (assignment_expression IDENT = (call_expression IDENT (argument_list ( IDENT )))) , (binary_expression IDENT == LIT)) ))) )) (compound_statement { (expression_statement (call_expression IDENT (argument_list ( IDENT , IDENT ))) ;) })) (if_statement if (parenthesized_expression ( (binary_expression IDENT != (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) )) (compound_statement { (expression_statement (call_expression IDENT (argument_list ( ))) ;) })) (return_statement return LIT ;) })))
(function_definition "undefined4 __regparm1 FUN_00067ab0(int param_1,undefined4 param_2,undefined4 param_3)\n\n{\n  uint uVar1;\n  int iVar2;\n  int iVar3;\n  int in_GS_OFFSET;\n  \n  iVar2 = *(int *)(in_GS_OFFSET + 0x14);\n  uVar1 = *(int *)(param_1 + 4) + 0xf;\n  if ((uVar1 <= *(uint *)(param_1 + 8)) || (iVar3 = FUN_000678b0(uVar1), iVar3 == 0)) {\n    FUN_00035090(param_2,param_3);\n  }\n  if (iVar2 != *(int *)(in_GS_OFFSET + 0x14)) {\n                    \n    FUN_000f4bf0();\n  }\n  return 0;\n}" (type_identifier "undefined4") (ERROR "__regparm1" (identifier "__regparm1")) (function_declarator "FUN_00067ab0(int param_1,undefined4 param_2,undefined4 param_3)" (identifier "FUN_00067ab0") (parameter_list "(int param_1,undefined4 param_2,undefined4 param_3)" (( "(") (parameter_declaration "int param_1" (primitive_type "int") (identifier "param_1")) (, ",") (parameter_declaration "undefined4 param_2" (type_identifier "undefined4") (identifier "param_2")) (, ",") (parameter_declaration "undefined4 param_3" (type_identifier "undefined4") (identifier "param_3")) () ")"))) (compound_statement "{\n  uint uVar1;\n  int iVar2;\n  int iVar3;\n  int in_GS_OFFSET;\n  \n  iVar2 = *(int *)(in_GS_OFFSET + 0x14);\n  uVar1 = *(int *)(param_1 + 4) + 0xf;\n  if ((uVar1 <= *(uint *)(param_1 + 8)) || (iVar3 = FUN_000678b0(uVar1), iVar3 == 0)) {\n    FUN_00035090(param_2,param_3);\n  }\n  if (iVar2 != *(int *)(in_GS_OFFSET + 0x14)) {\n                    \n    FUN_000f4bf0();\n  }\n  return 0;\n}" ({ "{") (declaration "uint uVar1;" (type_identifier "uint") (identifier "uVar1") (; ";")) (declaration "int iVar2;" (primitive_type "int") (identifier "iVar2") (; ";")) (declaration "int iVar3;" (primitive_type "int") (identifier "iVar3") (; ";")) (declaration "int in_GS_OFFSET;" (primitive_type "int") (identifier "in_GS_OFFSET") (; ";")) (expression_statement "iVar2 = *(int *)(in_GS_OFFSET + 0x14);" (assignment_expression "iVar2 = *(int *)(in_GS_OFFSET + 0x14)" (identifier "iVar2") (= "=") (pointer_expression "*(int *)(in_GS_OFFSET + 0x14)" (* "*") (cast_expression "(int *)(in_GS_OFFSET + 0x14)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(in_GS_OFFSET + 0x14)" (( "(") (binary_expression "in_GS_OFFSET + 0x14" (identifier "in_GS_OFFSET") (+ "+") (number_literal "0x14")) () ")"))))) (; ";")) (expression_statement "uVar1 = *(int *)(param_1 + 4) + 0xf;" (assignment_expression "uVar1 = *(int *)(param_1 + 4) + 0xf" (identifier "uVar1") (= "=") (binary_expression "*(int *)(param_1 + 4) + 0xf" (pointer_expression "*(int *)(param_1 + 4)" (* "*") (cast_expression "(int *)(param_1 + 4)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 4)" (( "(") (binary_expression "param_1 + 4" (identifier "param_1") (+ "+") (number_literal "4")) () ")")))) (+ "+") (number_literal "0xf"))) (; ";")) (if_statement "if ((uVar1 <= *(uint *)(param_1 + 8)) || (iVar3 = FUN_000678b0(uVar1), iVar3 == 0)) {\n    FUN_00035090(param_2,param_3);\n  }" (if "if") (parenthesized_expression "((uVar1 <= *(uint *)(param_1 + 8)) || (iVar3 = FUN_000678b0(uVar1), iVar3 == 0))" (( "(") (binary_expression "(uVar1 <= *(uint *)(param_1 + 8)) || (iVar3 = FUN_000678b0(uVar1), iVar3 == 0)" (parenthesized_expression "(uVar1 <= *(uint *)(param_1 + 8))" (( "(") (binary_expression "uVar1 <= *(uint *)(param_1 + 8)" (identifier "uVar1") (<= "<=") (pointer_expression "*(uint *)(param_1 + 8)" (* "*") (cast_expression "(uint *)(param_1 + 8)" (( "(") (type_descriptor "uint *" (type_identifier "uint") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 8)" (( "(") (binary_expression "param_1 + 8" (identifier "param_1") (+ "+") (number_literal "8")) () ")"))))) () ")")) (|| "||") (parenthesized_expression "(iVar3 = FUN_000678b0(uVar1), iVar3 == 0)" (( "(") (comma_expression "iVar3 = FUN_000678b0(uVar1), iVar3 == 0" (assignment_expression "iVar3 = FUN_000678b0(uVar1)" (identifier "iVar3") (= "=") (call_expression "FUN_000678b0(uVar1)" (identifier "FUN_000678b0") (argument_list "(uVar1)" (( "(") (identifier "uVar1") () ")")))) (, ",") (binary_expression "iVar3 == 0" (identifier "iVar3") (== "==") (number_literal "0"))) () ")"))) () ")")) (compound_statement "{\n    FUN_00035090(param_2,param_3);\n  }" ({ "{") (expression_statement "FUN_00035090(param_2,param_3);" (call_expression "FUN_00035090(param_2,param_3)" (identifier "FUN_00035090") (argument_list "(param_2,param_3)" (( "(") (identifier "param_2") (, ",") (identifier "param_3") () ")"))) (; ";")) (} "}"))) (if_statement "if (iVar2 != *(int *)(in_GS_OFFSET + 0x14)) {\n                    \n    FUN_000f4bf0();\n  }" (if "if") (parenthesized_expression "(iVar2 != *(int *)(in_GS_OFFSET + 0x14))" (( "(") (binary_expression "iVar2 != *(int *)(in_GS_OFFSET + 0x14)" (identifier "iVar2") (!= "!=") (pointer_expression "*(int *)(in_GS_OFFSET + 0x14)" (* "*") (cast_expression "(int *)(in_GS_OFFSET + 0x14)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(in_GS_OFFSET + 0x14)" (( "(") (binary_expression "in_GS_OFFSET + 0x14" (identifier "in_GS_OFFSET") (+ "+") (number_literal "0x14")) () ")"))))) () ")")) (compound_statement "{\n                    \n    FUN_000f4bf0();\n  }" ({ "{") (expression_statement "FUN_000f4bf0();" (call_expression "FUN_000f4bf0()" (identifier "FUN_000f4bf0") (argument_list "()" (( "(") () ")"))) (; ";")) (} "}"))) (return_statement "return 0;" (return "return") (number_literal "0") (; ";")) (} "}")))

int __regparm2 function_1(type_1 *pBuf,type_2 *pWriter,type_3 iPos)

{
  type_1 *var_2;
  int var_4;
  int iVar2;
  int var_1;
  int rc;
  int var_6;
  
  var_6 = *(int *)(var_1 + 0x14);
  rc = 0;
  var_2 = (type_1 *)(pBuf->n + 0xf);
  if ((var_2 <= (type_1 *)pBuf->nSpace) ||
     (var_4 = var_3(&rc,pBuf,(u32)&pBuf->nSpace,var_2), iVar2 = rc, var_4 == 0)) {
    var_5(pBuf,(type_3 *)&pBuf->n,iPos,(type_1 *)pWriter);
    iVar2 = 0;
  }
  if (var_6 != *(int *)(var_1 + 0x14)) {
                    /* WARNING: Subroutine does not return */
    var_7();
  }
  return iVar2;
}


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

undefined4 __regparm1 MASKED(int param_1,undefined4 param_2,undefined4 param_3)

{
  uint uVar1;
  int iVar2;
  int iVar3;
  int in_GS_OFFSET;
  
  iVar2 = *(int *)(in_GS_OFFSET + 0x14);
  uVar1 = *(int *)(param_1 + 4) + 0xf;
  if ((uVar1 <= *(uint *)(param_1 + 8)) || (iVar3 = FUN_000678b0(uVar1), iVar3 == 0)) {
    FUN_00035090(param_2,param_3);
  }
  if (iVar2 != *(int *)(in_GS_OFFSET + 0x14)) {
                    /* WARNING: Subroutine does not return */
    FUN_000f4bf0();
  }
  return 0;
}

